summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-FE/client')
-rw-r--r--ecomp-portal-FE/client/.htaccess543
-rw-r--r--ecomp-portal-FE/client/.jshintrc36
-rw-r--r--ecomp-portal-FE/client/app/app.js120
-rw-r--r--ecomp-portal-FE/client/app/app.less78
-rw-r--r--ecomp-portal-FE/client/app/configurations.js5
-rw-r--r--ecomp-portal-FE/client/app/directives/auto-focus/auto-focus.directive.js46
-rw-r--r--ecomp-portal-FE/client/app/directives/image-upload/image-upload.directive.js222
-rw-r--r--ecomp-portal-FE/client/app/directives/left-menu/left-menu.directive.js96
-rw-r--r--ecomp-portal-FE/client/app/directives/left-menu/left-menu.less133
-rw-r--r--ecomp-portal-FE/client/app/directives/left-menu/left-menu.tpl.html57
-rw-r--r--ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.directive.js111
-rw-r--r--ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.less81
-rw-r--r--ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.tpl.html38
-rw-r--r--ecomp-portal-FE/client/app/directives/right-click-menu/right-click-menu.directive.js38
-rw-r--r--ecomp-portal-FE/client/app/directives/right-click/ng-right-click-directive.js32
-rw-r--r--ecomp-portal-FE/client/app/directives/right-menu/right-menu.directive.js140
-rw-r--r--ecomp-portal-FE/client/app/directives/right-menu/right-menu.less178
-rw-r--r--ecomp-portal-FE/client/app/directives/right-menu/right-menu.tpl.html40
-rw-r--r--ecomp-portal-FE/client/app/directives/scroll-top/scroll-top.directive.js35
-rw-r--r--ecomp-portal-FE/client/app/directives/search-users/search-users.controller.js161
-rw-r--r--ecomp-portal-FE/client/app/directives/search-users/search-users.controller.spec.js176
-rw-r--r--ecomp-portal-FE/client/app/directives/search-users/search-users.directive.js34
-rw-r--r--ecomp-portal-FE/client/app/directives/search-users/search-users.less154
-rw-r--r--ecomp-portal-FE/client/app/directives/search-users/search-users.tpl.html144
-rw-r--r--ecomp-portal-FE/client/app/filters/elipsis/elipsis.filter.js38
-rw-r--r--ecomp-portal-FE/client/app/filters/elipsis/elipsis.filter.spec.js58
-rw-r--r--ecomp-portal-FE/client/app/filters/trusted-url/trusted-url.filter.js26
-rw-r--r--ecomp-portal-FE/client/app/router.js528
-rw-r--r--ecomp-portal-FE/client/app/services/admins/admins.service.js176
-rw-r--r--ecomp-portal-FE/client/app/services/applications/applications.service.js346
-rw-r--r--ecomp-portal-FE/client/app/services/catalog/catalog.service.js95
-rw-r--r--ecomp-portal-FE/client/app/services/confirm-box/confirm-box.service.js153
-rw-r--r--ecomp-portal-FE/client/app/services/contact-us/contact-us.service.js247
-rw-r--r--ecomp-portal-FE/client/app/services/dashboard/dashboard.service.js185
-rw-r--r--ecomp-portal-FE/client/app/services/error-messages/error-messages.service.js23
-rw-r--r--ecomp-portal-FE/client/app/services/functionalMenu/functionalMenu.service.js253
-rw-r--r--ecomp-portal-FE/client/app/services/global-constants/global-constants.js21
-rw-r--r--ecomp-portal-FE/client/app/services/kpi-dashboard/kpi-dashboard.service.js185
-rw-r--r--ecomp-portal-FE/client/app/services/manifest/manifest.service.js64
-rw-r--r--ecomp-portal-FE/client/app/services/menus/menus.service.js145
-rw-r--r--ecomp-portal-FE/client/app/services/portal-admins/portal-admins.service.js107
-rw-r--r--ecomp-portal-FE/client/app/services/support/getAccess/get-access.service.js61
-rw-r--r--ecomp-portal-FE/client/app/services/support/session/session.service.js56
-rw-r--r--ecomp-portal-FE/client/app/services/userProfile/userProfile.service.js240
-rw-r--r--ecomp-portal-FE/client/app/services/userbar/userbar.update.service.js97
-rw-r--r--ecomp-portal-FE/client/app/services/users/users.service.js161
-rw-r--r--ecomp-portal-FE/client/app/services/utils/utils.service.js57
-rw-r--r--ecomp-portal-FE/client/app/services/widgets/widgets.service.js178
-rw-r--r--ecomp-portal-FE/client/app/styles/att-abs.less86
-rw-r--r--ecomp-portal-FE/client/app/styles/buttons.less72
-rw-r--r--ecomp-portal-FE/client/app/styles/ecomp-general.less76
-rw-r--r--ecomp-portal-FE/client/app/styles/fonts.less81
-rw-r--r--ecomp-portal-FE/client/app/styles/form.less189
-rw-r--r--ecomp-portal-FE/client/app/styles/kpi-dashboard.less111
-rw-r--r--ecomp-portal-FE/client/app/styles/mixins.less296
-rw-r--r--ecomp-portal-FE/client/app/styles/ng-dialog.less88
-rw-r--r--ecomp-portal-FE/client/app/styles/reset.less79
-rw-r--r--ecomp-portal-FE/client/app/styles/select2.less102
-rw-r--r--ecomp-portal-FE/client/app/styles/spinner.less56
-rw-r--r--ecomp-portal-FE/client/app/styles/sprites.less118
-rw-r--r--ecomp-portal-FE/client/app/styles/variables.less86
-rw-r--r--ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.controller.js214
-rw-r--r--ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.controller.spec.js130
-rw-r--r--ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.modal.html66
-rw-r--r--ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.modal.less99
-rw-r--r--ecomp-portal-FE/client/app/views/admins/admins.controller.js151
-rw-r--r--ecomp-portal-FE/client/app/views/admins/admins.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/admins/admins.less47
-rw-r--r--ecomp-portal-FE/client/app/views/admins/admins.tpl.html82
-rw-r--r--ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.controller.js244
-rw-r--r--ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.modal.html183
-rw-r--r--ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.modal.less122
-rw-r--r--ecomp-portal-FE/client/app/views/applications/applications.controller.js111
-rw-r--r--ecomp-portal-FE/client/app/views/applications/applications.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/applications/applications.less45
-rw-r--r--ecomp-portal-FE/client/app/views/applications/applications.tpl.html100
-rw-r--r--ecomp-portal-FE/client/app/views/catalog/catalog.controller.js166
-rw-r--r--ecomp-portal-FE/client/app/views/catalog/catalog.less439
-rw-r--r--ecomp-portal-FE/client/app/views/catalog/catalog.tpl.html91
-rw-r--r--ecomp-portal-FE/client/app/views/catalog/catalogconfirmation.controller.js62
-rw-r--r--ecomp-portal-FE/client/app/views/catalog/information-box.tpl.html42
-rw-r--r--ecomp-portal-FE/client/app/views/confirmation-box/admin-confirmation-box.tpl.html31
-rw-r--r--ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.controller.js41
-rw-r--r--ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.less53
-rw-r--r--ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.tpl.html28
-rw-r--r--ecomp-portal-FE/client/app/views/confirmation-box/dragdrop-confirmation-box.tpl.html31
-rw-r--r--ecomp-portal-FE/client/app/views/confirmation-box/information-box.tpl.html27
-rw-r--r--ecomp-portal-FE/client/app/views/dashboard/dashboard-widget-manage.html152
-rw-r--r--ecomp-portal-FE/client/app/views/dashboard/dashboard-widget.controller.js422
-rw-r--r--ecomp-portal-FE/client/app/views/dashboard/dashboard-widget.controller.less101
-rw-r--r--ecomp-portal-FE/client/app/views/dashboard/dashboard.controller.js312
-rw-r--r--ecomp-portal-FE/client/app/views/dashboard/dashboard.controller.spec.js78
-rw-r--r--ecomp-portal-FE/client/app/views/dashboard/dashboard.less766
-rw-r--r--ecomp-portal-FE/client/app/views/dashboard/dashboard.tpl.html346
-rw-r--r--ecomp-portal-FE/client/app/views/dashboard/newsticker.controller.js47
-rw-r--r--ecomp-portal-FE/client/app/views/errors/error.404.tpl.html31
-rw-r--r--ecomp-portal-FE/client/app/views/errors/error.controller.js36
-rw-r--r--ecomp-portal-FE/client/app/views/errors/error.tpl.html26
-rw-r--r--ecomp-portal-FE/client/app/views/footer/footer.controller.js49
-rw-r--r--ecomp-portal-FE/client/app/views/footer/footer.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/footer/footer.less53
-rw-r--r--ecomp-portal-FE/client/app/views/footer/footer.tpl.html36
-rw-r--r--ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.controller.js384
-rw-r--r--ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.delete.modal.html35
-rw-r--r--ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.modal.html106
-rw-r--r--ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/modal-details.modal.less103
-rw-r--r--ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.controller.js331
-rw-r--r--ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.less70
-rw-r--r--ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.tpl.html48
-rw-r--r--ecomp-portal-FE/client/app/views/functionalMenu/jqTreeContextMenu.js192
-rw-r--r--ecomp-portal-FE/client/app/views/header/header.controller.js419
-rw-r--r--ecomp-portal-FE/client/app/views/header/header.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/header/header.less380
-rw-r--r--ecomp-portal-FE/client/app/views/header/header.tpl.html277
-rw-r--r--ecomp-portal-FE/client/app/views/header/user-edit/edit-user.controller.js134
-rw-r--r--ecomp-portal-FE/client/app/views/header/user-edit/edit-user.less61
-rw-r--r--ecomp-portal-FE/client/app/views/header/user-edit/edit-user.tpl.html69
-rw-r--r--ecomp-portal-FE/client/app/views/home/applications-home/applications-home.controller.js244
-rw-r--r--ecomp-portal-FE/client/app/views/home/applications-home/applications-home.controller.spec.js77
-rw-r--r--ecomp-portal-FE/client/app/views/home/applications-home/applications-home.less164
-rw-r--r--ecomp-portal-FE/client/app/views/home/applications-home/applications-home.tpl.html59
-rw-r--r--ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.controller.js284
-rw-r--r--ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.controller.spec.js1
-rw-r--r--ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.less137
-rw-r--r--ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.tpl.html123
-rw-r--r--ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.controller.js85
-rw-r--r--ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.modal.html32
-rw-r--r--ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.modal.less99
-rw-r--r--ecomp-portal-FE/client/app/views/portal-admin/portal-admin-controller.js127
-rw-r--r--ecomp-portal-FE/client/app/views/portal-admin/portal-admin.tpl.html73
-rw-r--r--ecomp-portal-FE/client/app/views/portal-admin/portal-admins.less56
-rw-r--r--ecomp-portal-FE/client/app/views/search/search.controller.js184
-rw-r--r--ecomp-portal-FE/client/app/views/search/search.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/search/search.less55
-rw-r--r--ecomp-portal-FE/client/app/views/search/search.tpl.html82
-rw-r--r--ecomp-portal-FE/client/app/views/sidebar/sidebar.controller.js143
-rw-r--r--ecomp-portal-FE/client/app/views/sidebar/sidebar.less37
-rw-r--r--ecomp-portal-FE/client/app/views/sidebar/sidebar.tpl.html20
-rw-r--r--ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.js194
-rw-r--r--ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.less159
-rw-r--r--ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.html136
-rw-r--r--ecomp-portal-FE/client/app/views/support/contact-us/contact-us.controller.js166
-rw-r--r--ecomp-portal-FE/client/app/views/support/contact-us/contact-us.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/support/contact-us/contact-us.less104
-rw-r--r--ecomp-portal-FE/client/app/views/support/contact-us/contact-us.tpl.html125
-rw-r--r--ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.js70
-rw-r--r--ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/support/get-access/get-access.less67
-rw-r--r--ecomp-portal-FE/client/app/views/support/get-access/get-access.tpl.html88
-rw-r--r--ecomp-portal-FE/client/app/views/tabs/tabframe.html22
-rw-r--r--ecomp-portal-FE/client/app/views/tabs/tabs.controller.js231
-rw-r--r--ecomp-portal-FE/client/app/views/tabs/tabs.controller.spec.js80
-rw-r--r--ecomp-portal-FE/client/app/views/tabs/tabs.less658
-rw-r--r--ecomp-portal-FE/client/app/views/tabs/tabs.tpl.html46
-rw-r--r--ecomp-portal-FE/client/app/views/userbar/userbar.controller.js262
-rw-r--r--ecomp-portal-FE/client/app/views/userbar/userbar.less41
-rw-r--r--ecomp-portal-FE/client/app/views/userbar/userbar.tpl.html20
-rw-r--r--ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.controller.js211
-rw-r--r--ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.controller.spec.js222
-rw-r--r--ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.modal.html70
-rw-r--r--ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.modal.less126
-rw-r--r--ecomp-portal-FE/client/app/views/users/users.controller.js187
-rw-r--r--ecomp-portal-FE/client/app/views/users/users.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/users/users.less59
-rw-r--r--ecomp-portal-FE/client/app/views/users/users.tpl.html105
-rw-r--r--ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.controller.js202
-rw-r--r--ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.modal.html132
-rw-r--r--ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.modal.less94
-rw-r--r--ecomp-portal-FE/client/app/views/widgets/widgets.controller.js151
-rw-r--r--ecomp-portal-FE/client/app/views/widgets/widgets.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/widgets/widgets.less60
-rw-r--r--ecomp-portal-FE/client/app/views/widgets/widgets.tpl.html77
-rw-r--r--ecomp-portal-FE/client/assets/images/cloud.pngbin132244 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/assets/images/ecomp_logo.pngbin3868 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/assets/images/grips.pngbin951 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/assets/images/photo.pngbin835 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/assets/images/spinner.gifbin4178 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/assets/images/sprite.pngbin446 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-animate/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-animate/README.md68
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.js4121
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.min.js56
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.min.js.map8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-animate/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-animate/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-animate/package.json26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-aria/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-aria/README.md67
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.js398
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.min.js14
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.min.js.map8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-aria/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-aria/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-aria/package.json27
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/.bower.json31
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/.gitignore1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/.npmignore1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/README.md120
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/bower.json19
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/package.json23
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-csp.css115
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-tpls.js7715
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap.js7351
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap.min.js10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/.bower.json45
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/CHANGELOG.md353
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/LICENSE20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/README.md671
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md98
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/bower.json35
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/README.md1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js11
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/index.html11
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/README.md3
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/app.js9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/index.html14
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/main.js22
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/require.config.js6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/README.md1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/app.js8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/index.html11
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/webpack.config.js11
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/README.md1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/app.js8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/index.html11
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/webpack.config.js16
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/README.md1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/app.js8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/index.html11
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/webpack.config.js16
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/circle.yml6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.js1111
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.js.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.min.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.min.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/rollup.config.js22
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cache/scripts/postbuild.js21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cookies/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cookies/README.md68
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.js322
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.min.js9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.min.js.map8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cookies/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cookies/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-cookies/package.json26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-gestures/.bower.json32
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-gestures/LICENSE.md21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-gestures/README.md82
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-gestures/bower.json23
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-gestures/gestures.js158
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-gestures/gestures.min.js1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/.bower.json24
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/.gitignore5
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/CHANGELOG.md1543
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/LICENSE21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/README.md240
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/angular-material-mocks.js77
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/angular-material.css6795
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/angular-material.js13909
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/angular-material.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/angular-material.min.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/bower.json14
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy2.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/facebook.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/hangout.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/mail.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/message.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/print.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/share-arrow.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/twitter.svg2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/upload.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/chips/demoBasicUsage/style.scss39
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/chips/demoContactChips/style.scss47
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoBasicUsage/style.scss75
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoDynamicTiles/style.scss78
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoResponsiveUsage/style.scss0
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/addShoppingCart.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/android.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/cake.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/cake.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/core-icons.svg26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/social-icons.svg26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/addShoppingCart.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/android.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/cake.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/android.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/cake.svg1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/core-icons.svg26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_email_24px.svg4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_person_24px.svg4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_phone_24px.svg4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_place_24px.svg4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/style.scss18
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-0.jpegbin2331 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-1.jpegbin2816 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-2.jpegbin3389 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoDynamicHeight/style.scss13
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoDynamicTabs/style.scss44
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoStaticTabs/style.scss25
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/favorite.svg4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/menu.svg4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/more_vert.svg4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/index.js12
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete-default-theme.css24
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete.css220
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete.js794
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop-default-theme.css9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop.css59
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop.js38
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet-default-theme.css16
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.css170
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.js267
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button-default-theme.css94
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button.css158
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button.js135
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card-default-theme.css12
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card.css34
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card.js84
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox-default-theme.css47
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox.css125
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox.js166
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips-default-theme.css24
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips.css131
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips.js949
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content-default-theme.css9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content.css20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content.js84
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/core.css2590
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/core.js3779
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/default-theme.js4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog-default-theme.css12
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog.css111
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog.js713
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider-default-theme.css9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider.css14
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider.js45
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList-default-theme.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList.css68
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList.js762
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon-default-theme.css15
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon.css20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon.js787
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input-default-theme.css46
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input.css162
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input.js371
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list-default-theme.css23
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list.css147
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list.js273
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/menu/menu.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/menu/menu.js29
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular-default-theme.css36
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular.css1306
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular.js109
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear-default-theme.css27
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear.css287
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear.js126
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton-default-theme.css47
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton.css90
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton.js312
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select-default-theme.css42
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select.css168
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select.js1056
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav-default-theme.css9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav.css99
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav.js424
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider-default-theme.css56
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider.css220
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider.js403
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sticky/sticky.css21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sticky/sticky.js315
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader-default-theme.css16
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader.css63
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader.js93
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/swipe/swipe.js72
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch-default-theme.css33
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch.css110
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch.js169
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs-arrow.svg7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs-default-theme.css82
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs.css272
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs.js867
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField-default-theme.css30
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField.css111
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField.js145
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast-default-theme.css18
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast.css119
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast.js265
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar-default-theme.css20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar.css83
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar.js169
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip-default-theme.css11
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip.css72
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip.js267
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/whiteframe/whiteframe.css25
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/closure/whiteframe/whiteframe.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/css/angular-material-layout.css2375
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.css24
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.css220
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.js794
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.css9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.css59
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.js39
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.css16
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.css170
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.js267
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button-default-theme.css94
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.css158
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.js136
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card-default-theme.css12
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.css34
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.js85
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.css47
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.css125
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.js167
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips-default-theme.css24
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.css131
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.js949
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content-default-theme.css9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.css20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.js85
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.css2590
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.js3779
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.min.js10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/default-theme.js4
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css12
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.css111
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.js713
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider-default-theme.css9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.css14
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.js46
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.css68
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.js763
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon-default-theme.css15
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.css20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.js788
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input-default-theme.css46
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.css162
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.js372
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list-default-theme.css23
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.css147
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.js274
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/bower.json5
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.js27
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.css36
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.css1306
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.js110
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.css27
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.css287
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.js127
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.css47
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.css90
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.js313
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select-default-theme.css42
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.css168
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.js1056
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.css9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.css99
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.js424
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider-default-theme.css56
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.css220
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.js404
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.css21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.js315
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader-default-theme.css16
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.css63
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.js93
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/swipe.js73
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/swipe.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch-default-theme.css33
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.css110
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.js169
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs-default-theme.css82
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.css272
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.js867
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField-default-theme.css30
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.css111
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.js143
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast-default-theme.css18
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.css119
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.js265
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.css20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.css83
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.js169
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/bower.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.css11
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.css72
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.js268
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/bower.json5
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.css25
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.js16
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/package.json48
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/LICENSE.md21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/README.md68
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.js739
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.min.js12
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.min.js.map8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-messages/package.json32
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/LICENSE.md21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/README.md63
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/angular-mocks.js3170
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/ngAnimateMock.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/ngMock.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/ngMockE2E.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-mocks/package.json34
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-resource/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-resource/README.md68
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.js768
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.min.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.min.js.map8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-resource/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-resource/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-resource/package.json26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-route/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-route/README.md68
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-route/angular-route.js1016
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-route/angular-route.min.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-route/angular-route.min.js.map8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-route/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-route/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-route/package.json26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-sanitize/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-sanitize/README.md68
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.js717
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.min.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.min.js.map8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-sanitize/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-sanitize/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-sanitize/package.json26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-scenario/.bower.json20
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-scenario/LICENSE.md21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-scenario/README.md61
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-scenario/angular-scenario.js44994
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-scenario/bower.json10
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-scenario/jstd-scenario-adapter-config.js6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-scenario/jstd-scenario-adapter.js185
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-scenario/package.json33
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/.bower.json38
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/.gitignore7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/.travis.yml12
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/ISSUE_TEMPLATE.md15
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/bower.json29
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/changeLog.md175
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.js534
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.min.js6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.min.js.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/gulpFile.js60
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/package.json29
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/readme.md72
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/bottom.txt1
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/smart-table.module.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/stConfig.js26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/stPagination.js80
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/stPipe.js36
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSearch.js43
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSelectRow.js26
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSort.js82
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/stTable.js219
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-smart-table/src/top.txt2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/.bower.json34
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/CHANGELOG.md316
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/CONTRIBUTING.md65
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/LICENSE21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/README.md252
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/bower.json24
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/release/angular-ui-router.js4539
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/release/angular-ui-router.min.js8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/common.js293
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/resolve.js252
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/state.js1470
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/stateDirectives.js391
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/stateFilters.js39
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/templateFactory.js110
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/urlMatcherFactory.js1081
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/urlRouter.js431
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/view.js45
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/viewDirective.js351
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-ui-router/src/viewScroll.js52
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-uuid/.bower.json23
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-uuid/LICENCE19
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-uuid/bower.json13
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-uuid/uuid.js21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-uuid/uuid.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/.bower.json18
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/README.md64
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/angular-csp.css21
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/angular.js30428
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/angular.min.js307
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/angular.min.js.gzipbin54462 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/angular.min.js.map8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/bower.json9
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/angular/package.json25
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/.bower.json43
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/CHANGES404
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/CONTRIBUTORS.md27
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/LICENSE22
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/Makefile63
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/README.md190
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/bower.json33
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/component.json19
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.js563
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.js2065
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/package.json75
-rw-r--r--ecomp-portal-FE/client/bower_components/es5-shim/shims.json7
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/.bower.json27
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/CHANGELOG.md54
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/CONTRIBUTING.md41
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/LICENSE.md21
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/README.md51
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/bower.json16
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/changelog.js71
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/hammer.js2643
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.js.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/.bower.json28
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/.editorconfig12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/.gitignore2
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/.travis.yml12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/LICENSE202
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/README.md63
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_config.yml18
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/01_general.md7
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/02_introduction.md9
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/03_features.md15
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/04_demo.html34
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/05_requirements.md6
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/06_downloads.md9
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/07_tutorial.md77
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/08_examples.md8
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/09_usecases.md17
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/10_changelog.md233
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/11_options.md6
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/12_autoescape.md6
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/13_autoopen.md28
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/14_buttonleft.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/15_closedicon.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/16_data.md46
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/17_datafilter.md17
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/18_data-url.md45
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/19_draganddrop.md18
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/20_keyboardsupport.md14
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/21_oncanmove.md22
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/22_oncanmoveto.md22
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/23_oncanselectnode.md26
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md16
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md17
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/26_onloadfailed.md15
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md22
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/28_openedicon.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/29_openfolderdelay.md13
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/30_rtl.md18
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/31_savestate.md42
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/32_selectable.md18
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/33_slide.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/34_usecontextmenu.md14
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/35_functions.md6
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/36_addnodeafter.md20
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md20
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/37_addnodebefore.md8
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/38_appendnode.md50
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/39_closenode.md23
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/40_destroy.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md24
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/42_getnodebyid.md21
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/43_getnodebyhtmlelement.md29
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/44_getselectednode.md10
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md19
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/46_gettree.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md46
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/48_loaddatafromurl.md55
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/49_movedown.md8
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/50_movenode.md15
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/51_moveup.md8
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/52_opennode.md44
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/53_reload.md22
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/54_removenode.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md24
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/56_scrolltonode.md13
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/57_setoption.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/58_setstate.md8
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/59_toggle.md8
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/60_tojson.md13
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/61_updatenode.md50
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/62_events.md6
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/63_tree-click.md37
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/64_tree-close.md15
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/65_tree-contextmenu.md21
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/66_tree-dblclick.md19
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/67_tree-init.md15
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/68_tree-move.md73
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/69_tree-open.md15
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/70_tree-select.md28
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/71_multiple-selection.md9
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/72_add-to-selection.md11
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/73_get-selected-nodes.md10
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/74_is-node-selected.md11
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/75_remove-from-selection.md11
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/76_node-functions.md13
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/77_children.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/78_getdata.md17
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md13
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/80_getnextnode.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/81_getnextsibling.md10
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/82_getpreviousnode.md12
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/83_getprevioussibling.md10
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/84_parent.md10
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/insert.py46
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/renumber.py38
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/01_load_json_data.html47
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/02_load_json_data_from_server.html31
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/03_drag_and_drop.html44
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html52
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/05_load_on_demand.html70
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/06_autoescape.html47
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/07_autoscroll.html49
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/08_multiple_select.html72
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html68
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/10_icon_buttons.html28
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/11_right-to-left.html27
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_examples/12_button_on_right.html27
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_layouts/base.html49
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_layouts/frontpage.html20
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_layouts/page.html7
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/bower.json18
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/coffeelint.json122
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/gulpfile.coffee57
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/gulpfile.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/index.html48
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/jqtree-circle.pngbin239 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/jqtree.css132
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/jqtree.jquery.json23
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/jqtree.scss197
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/karma.conf.js59
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/drag_and_drop_handler.js489
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/elements_renderer.js220
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/key_handler.js120
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/mouse.widget.js191
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/node.js588
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/node_element.js226
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/save_state_handler.js238
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/scroll_handler.js137
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/select_node_handler.js111
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/simple.widget.js125
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/tree.jquery.js1101
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/util.js49
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/lib/version.js1
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/package.json51
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/phantomjs/runner.js193
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/phantomjs/server.js14
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/screenshot.pngbin31319 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/sitemap.txt13
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/drag_and_drop_handler.coffee491
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/elements_renderer.coffee237
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/header.txt17
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/key_handler.coffee107
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/mouse.widget.coffee184
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/node.coffee490
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/node_element.coffee170
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/save_state_handler.coffee208
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/scroll_handler.coffee114
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/select_node_handler.coffee84
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/simple.widget.coffee107
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/tree.jquery.coffee918
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/util.coffee48
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src/version.coffee1
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src_test/karma-test.js17
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src_test/test.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src_test/test_jqtree.js1390
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src_test/test_tree.js726
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src_test/test_util.js34
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/src_test/utils_for_test.js107
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower.json16
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/blanket/dist/qunit/blanket.js5299
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/css/bootstrap.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eotbin20127 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg288
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttfbin45404 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woffbin23424 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2bin18028 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/js/bootstrap.min.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/css/font-awesome.min.css4
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/FontAwesome.otfbin134808 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.eotbin165742 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.svg2671
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.ttfbin165548 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woffbin98024 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff2bin77160 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-1/dist/jquery.js11008
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-1/dist/jquery.min.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-2/dist/jquery.js9814
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-2/dist/jquery.min.js4
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-cookie/jquery.cookie.js117
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-mockjax/dist/jquery.mockjax.js1003
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery/dist/jquery.js10220
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery/dist/jquery.min.js4
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/json3/lib/json3.js902
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/pygments/css/monokai.css65
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/qunit/qunit/qunit.css431
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/qunit/qunit/qunit.js4366
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/documentation.css171
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/documentation.js51
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/example.css60
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/example.scss86
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/example_data.js128
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoescape.js19
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoscroll.js8
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/button-on-right.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js32
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/icon_buttons.js14
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data.js21
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data_from_server.js11
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_on_demand.js20
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/multiple_select.js27
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/right-to-left.js13
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/examples/save_state.js13
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/static/spinner.gifbin673 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/test/test.html24
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/test/test_build.js3267
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/test/test_jquery_1.html16
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/test/test_jquery_2.html16
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/tree.jquery.js3640
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery-mousewheel/.bower.json27
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery-mousewheel/ChangeLog.md147
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery-mousewheel/LICENSE.txt37
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery-mousewheel/README.md76
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery-mousewheel/bower.json17
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery-mousewheel/jquery.mousewheel.js221
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery-mousewheel/jquery.mousewheel.min.js8
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/.bower.json13
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/jquery.event.drag.js402
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/jquery.event.drag.live.js87
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/binding.js64
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/handlers.js160
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/index.html28
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/interaction.js198
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/live.js41
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js64
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/properties.js71
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js24
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/touch.js206
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.js302
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js93
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/binding.js32
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/handlers.js130
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/index.html32
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/interaction.js134
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/live.js60
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/method.js63
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/properties.js62
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js37
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/tolerance.js189
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/touch.js140
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.keyend/jquery.event.keyend.js20
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/jquery.event.linger.js190
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/binding.js45
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/handlers.js111
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/index.html24
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/interaction.js231
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/method.js43
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/requirements.js23
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.wheel/jquery.event.wheel.js50
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/jquery.fire.js171
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/custom.js61
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/form.js50
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/index.html26
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/key.js52
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mouse.js54
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mutation.js52
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/object.js50
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/requirements.js26
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/touch.js61
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.4.2.js6240
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.4.4.js7179
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.5b1.js8068
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.7.2.js9404
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery.js9404
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/qunit.css118
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/qunit.js1069
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.newstape/.bower.json34
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.newstape/bower.json24
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js1
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.newstape/gulpfile.js22
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.newstape/jquery.newstape.js135
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.newstape/package.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery.newstape/readme.md99
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/.bower.json25
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/AUTHORS.txt278
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/LICENSE.txt36
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/README.md65
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/bower.json14
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/dist/jquery.js9814
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/dist/jquery.min.js4
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/dist/jquery.min.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/external/sizzle/LICENSE.txt36
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.js2143
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.min.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.min.map1
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/.jshintrc29
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax.js845
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/jsonp.js100
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/load.js83
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/parseJSON.js13
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/parseXML.js27
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/script.js68
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/location.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/nonce.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/rquery.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/ajax/xhr.js167
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/attributes.js11
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/attributes/attr.js142
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/attributes/classes.js177
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/attributes/prop.js125
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/attributes/support.js36
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/attributes/val.js177
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/callbacks.js232
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/core.js494
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/core/access.js65
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/core/init.js134
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/core/parseHTML.js41
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/core/ready.js103
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/core/var/rsingleTag.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css.js502
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/addGetHookIf.js24
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/adjustCSS.js65
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/curCSS.js60
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/defaultDisplay.js72
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/hiddenVisibleSelectors.js18
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/showHide.js48
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/support.js121
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/var/cssExpand.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/var/isHidden.js16
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/var/rmargin.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/var/rnumnonpx.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/css/var/swap.js24
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/data.js187
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/data/Data.js200
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/data/var/acceptData.js18
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/data/var/dataPriv.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/data/var/dataUser.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/deferred.js158
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/deprecated.js32
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/dimensions.js54
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/effects.js629
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/effects/Tween.js121
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/effects/animatedSelector.js13
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/event.js711
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/event/ajax.js20
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/event/alias.js27
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/event/focusin.js53
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/event/support.js9
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/event/trigger.js183
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/exports/amd.js24
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/exports/global.js26
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/intro.js44
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/jquery.js37
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation.js481
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/_evalUrl.js20
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/buildFragment.js102
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/getAll.js21
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/setGlobalEval.js20
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/support.js33
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rcheckableType.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rscriptType.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rtagName.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/manipulation/wrapMap.js27
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/offset.js218
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/outro.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/queue.js143
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/queue/delay.js22
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/selector-native.js211
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/selector-sizzle.js14
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/selector.js1
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/serialize.js125
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/traversing.js175
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/traversing/findFilter.js100
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/dir.js20
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/rneedsContext.js6
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/siblings.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/arr.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/class2type.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/concat.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/document.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/documentElement.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/hasOwn.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/indexOf.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/pnum.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/push.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/rcssNum.js7
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/rnotwhite.js3
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/slice.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/support.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/var/toString.js5
-rw-r--r--ecomp-portal-FE/client/bower_components/jquery/src/wrap.js79
-rw-r--r--ecomp-portal-FE/client/bower_components/json3/.bower.json47
-rw-r--r--ecomp-portal-FE/client/bower_components/json3/CHANGELOG.md44
-rw-r--r--ecomp-portal-FE/client/bower_components/json3/CONTRIBUTING.md3
-rw-r--r--ecomp-portal-FE/client/bower_components/json3/LICENSE20
-rw-r--r--ecomp-portal-FE/client/bower_components/json3/README.md152
-rw-r--r--ecomp-portal-FE/client/bower_components/json3/bower.json38
-rw-r--r--ecomp-portal-FE/client/bower_components/json3/lib/json3.js902
-rw-r--r--ecomp-portal-FE/client/bower_components/json3/lib/json3.min.js17
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/.bower.json14
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/.editorconfig12
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/.gitattributes1
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/.github/CONTRIBUTING.md78
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/.gitignore9
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/.jscsrc97
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/.markdown-doctest-setup.js48
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/.travis.yml86
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/LICENSE47
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/README.md46
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/dist/lodash.core.js3830
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/dist/lodash.core.min.js28
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/dist/lodash.fp.js879
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/dist/lodash.fp.min.js17
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/dist/lodash.js16404
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/dist/lodash.min.js127
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/dist/mapping.fp.js371
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/doc/README.md10897
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/fp/_baseConvert.js466
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/fp/_convertBrowser.js18
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/fp/_mapping.js309
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/fp/placeholder.js6
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/common/file.js71
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/common/mapping.js9
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/common/minify.js39
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/common/uglify.options.js23
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/common/util.js27
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-dist.js55
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-doc.js65
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-modules.js120
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/doc/wiki.jst227
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_falseOptions.jst7
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_util.jst14
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/alias.jst1
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/category.jst2
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/convert.jst18
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/fp.jst2
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/module.jst5
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/thru.jst5
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js30
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/main/build-doc.js55
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lib/main/build-modules.js34
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/lodash.js16404
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/package.json55
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/perf/asset/perf-ui.js131
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/perf/index.html69
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/perf/perf.js1977
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/asset/test-ui.js170
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/asset/worker.js15
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/backbone.html170
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/fp.html41
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/index.html351
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/remove.js27
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/saucelabs.js914
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/test-fp.js2173
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/test.js26729
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/test/underscore.html484
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/LICENSE22
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/backbone.js1920
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/collection.js1998
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/events.js706
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/model.js1418
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js13
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/router.js1062
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/dom-setup.js4
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/environment.js45
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/sync.js239
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/view.js495
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/license.txt30
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/blank.gifbin43 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/buttonBg.pngbin167 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/buttonBgHover.pngbin171 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/debugger.css331
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/detach.pngbin655 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/detachHover.pngbin586 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disable.gifbin340 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disable.pngbin543 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disableHover.gifbin344 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disableHover.pngbin512 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/down.pngbin637 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/downActive.pngbin543 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/downHover.pngbin526 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon-sm.pngbin447 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon.gifbin365 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon.pngbin457 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug-1.3a2.css817
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.IE6.css20
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.css3147
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.html215
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.pngbin1167 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/group.gifbin158 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/html.css272
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/infoIcon.gifbin359 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/infoIcon.pngbin524 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/loading_16.gifbin1553 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/min.pngbin552 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/minHover.pngbin485 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/off.pngbin742 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/offHover.pngbin680 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/pixel_transparent.gifbin43 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/roundCorner.svg6
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/search.gifbin550 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/search.pngbin685 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadow.gifbin4364 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadow2.gifbin3093 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadowAlpha.pngbin3403 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/sprite.pngbin40027 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverLeft.pngbin438 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverMid.pngbin261 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverRight.pngbin436 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabLeft.pngbin449 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuCheckbox.pngbin220 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuPin.pngbin207 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuRadio.pngbin192 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuTarget.pngbin142 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuTargetHover.pngbin148 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMid.pngbin262 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabRight.pngbin448 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorBorders.gifbin117 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorBorders.pngbin3144 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorCorners.gifbin1821 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorCorners.pngbin3960 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/titlebarMid.pngbin273 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/toolbarMid.pngbin242 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tree_close.gifbin300 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tree_open.gifbin202 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/twistyClosed.pngbin334 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/twistyOpen.pngbin309 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/up.pngbin619 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/upActive.pngbin551 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/upHover.pngbin526 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/warningIcon.gifbin357 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/warningIcon.pngbin516 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/src/firebug-lite-debug.js31176
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/json-js/json2.js519
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/LICENSE23
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/arrays.js555
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/chaining.js99
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/collections.js896
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/cross-document.js141
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/functions.js728
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/objects.js1102
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/utility.js420
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/underscore-min.js6
-rw-r--r--ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/underscore.js1620
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/.bower.json53
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/CHANGELOG.md106
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/CONTRIBUTING.md37
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/README.md701
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/bower.json43
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-custom-width.css3
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-default.css191
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-default.min.css1
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-plain.css131
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-plain.min.css1
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog.css114
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog.min.css1
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/js/ngDialog.js895
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/js/ngDialog.min.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/karma.conf.js46
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/package.json65
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js75
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/server.js9
-rw-r--r--ecomp-portal-FE/client/bower_components/ng-dialog/yarn.lock3281
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/.bower.json41
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/CHANGELOG.md180
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/CONTRIBUTING.md161
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/LICENSE20
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/README.md57
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/bower.json31
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/composer.json29
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/deploy-docs.sh31
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/dist/select.css271
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/dist/select.js2217
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/dist/select.min.css7
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/dist/select.min.js9
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/docs/assets/app.js1
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/docs/assets/demo.js461
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/docs/assets/docs.css339
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/docs/assets/plunkr.js110
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/docs/index.html191
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/docs/partials/_footer.html2
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/docs/partials/_header.html64
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/index.js2
-rw-r--r--ecomp-portal-FE/client/bower_components/ui-select/package.json61
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular-att-gridster/angular-gridster.js2240
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular-att-gridster/css/angular-gridster.css173
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular-att-gridster/styles/angular-gridster.css173
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular-att-gridster/styles/ui-gridster.css116
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js86
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls.js164
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster.js131
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/CHANGELOG.md1190
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/README.md70
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.js20422
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.min.js22
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/base.css1
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/btn.css1
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/demo.css2
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/dtpk.css9
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/frms.css1
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/ie/backgroundsize.min.htc12
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/down.pngbin1059 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/up.pngbin1064 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/upanddown.pngbin1033 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/pages/iconography.css2
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/sldr.css1
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/style.css1
-rw-r--r--ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/tbs.css1
-rw-r--r--ecomp-portal-FE/client/bower_components_external/bowser/bowser.js559
-rw-r--r--ecomp-portal-FE/client/bower_components_external/bowser/useragents.js1267
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/.gitignore4
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/LICENSE21
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/css/ionicons.css1480
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/css/ionicons.min.css11
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.eotbin120724 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.svg2230
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.ttfbin188508 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.woffbin67904 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/readme.md60
-rw-r--r--ecomp-portal-FE/client/configurations/dev.json65
-rw-r--r--ecomp-portal-FE/client/configurations/devServer.json48
-rw-r--r--ecomp-portal-FE/client/configurations/integ.json65
-rw-r--r--ecomp-portal-FE/client/configurations/mock.json51
-rw-r--r--ecomp-portal-FE/client/favicon.icobin1150 -> 0 bytes
-rw-r--r--ecomp-portal-FE/client/index.html279
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/AAI-controller.js48
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/APPC-controller.js48
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/ASDC-controller.js45
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/Closedloop-controller.js48
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/DCAE-controller.js375
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/DMaaP-controller.js48
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/ECOMP-controller.js25
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/ECOMP_Portal-controller.js48
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/InfrastructurePortal-controller.js48
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/MSO-controller.js48
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/Policy-controller.js48
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/controllers/kpi-whitelist.js22
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_KPI.html204
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_Metrics.html41
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations.csv10
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations.html431
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations1.csv7
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/d3.v3.min.js24
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/leaflet.css497
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/leaflet.js28
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/static/visjs/legend_v2.js85
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/ECOMP.html30
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_KPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_Metrics.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_UserDefinedKPI.html33
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/sec-level-tabs.html29
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/top-level-tabs.html44
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/userapi-edit.html71
-rw-r--r--ecomp-portal-FE/client/kpi-dashboard/views/userstory-edit.html102
-rw-r--r--ecomp-portal-FE/client/robots.txt3
-rw-r--r--ecomp-portal-FE/client/utils/test-utils/test-utils.js51
1420 files changed, 0 insertions, 530921 deletions
diff --git a/ecomp-portal-FE/client/.htaccess b/ecomp-portal-FE/client/.htaccess
deleted file mode 100644
index cb84cb91..00000000
--- a/ecomp-portal-FE/client/.htaccess
+++ /dev/null
@@ -1,543 +0,0 @@
-# Apache Configuration File
-
-# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
-# to the main server config file (usually called `httpd.conf`), you should add
-# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html.
-
-# ##############################################################################
-# # CROSS-ORIGIN RESOURCE SHARING (CORS) #
-# ##############################################################################
-
-# ------------------------------------------------------------------------------
-# | Cross-domain AJAX requests |
-# ------------------------------------------------------------------------------
-
-# Enable cross-origin AJAX requests.
-# http://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
-# http://enable-cors.org/
-
-# <IfModule mod_headers.c>
-# Header set Access-Control-Allow-Origin "*"
-# </IfModule>
-
-# ------------------------------------------------------------------------------
-# | CORS-enabled images |
-# ------------------------------------------------------------------------------
-
-# Send the CORS header for images when browsers request it.
-# https://developer.mozilla.org/en/CORS_Enabled_Image
-# http://blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
-# http://hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
-
-<IfModule mod_setenvif.c>
- <IfModule mod_headers.c>
- <FilesMatch "\.(gif|ico|jpe?g|png|svg|svgz|webp)$">
- SetEnvIf Origin ":" IS_CORS
- Header set Access-Control-Allow-Origin "*" env=IS_CORS
- </FilesMatch>
- </IfModule>
-</IfModule>
-
-# ------------------------------------------------------------------------------
-# | Web fonts access |
-# ------------------------------------------------------------------------------
-
-# Allow access from all domains for web fonts
-
-<IfModule mod_headers.c>
- <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
- Header set Access-Control-Allow-Origin "*"
- </FilesMatch>
-</IfModule>
-
-
-# ##############################################################################
-# # ERRORS #
-# ##############################################################################
-
-# ------------------------------------------------------------------------------
-# | 404 error prevention for non-existing redirected folders |
-# ------------------------------------------------------------------------------
-
-# Prevent Apache from returning a 404 error for a rewrite if a directory
-# with the same name does not exist.
-# http://httpd.apache.org/docs/current/content-negotiation.html#multiviews
-# http://www.webmasterworld.com/apache/3808792.htm
-
-Options -MultiViews
-
-# ------------------------------------------------------------------------------
-# | Custom error messages / pages |
-# ------------------------------------------------------------------------------
-
-# You can customize what Apache returns to the client in case of an error (see
-# http://httpd.apache.org/docs/current/mod/core.html#errordocument), e.g.:
-
-ErrorDocument 404 /404.html
-
-
-# ##############################################################################
-# # INTERNET EXPLORER #
-# ##############################################################################
-
-# ------------------------------------------------------------------------------
-# | Better website experience |
-# ------------------------------------------------------------------------------
-
-# Force IE to render pages in the highest available mode in the various
-# cases when it may not: http://hsivonen.iki.fi/doctype/ie-mode.pdf.
-
-<IfModule mod_headers.c>
- Header set X-UA-Compatible "IE=edge"
- # `mod_headers` can't match based on the content-type, however, we only
- # want to send this header for HTML pages and not for the other resources
- <FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$">
- Header unset X-UA-Compatible
- </FilesMatch>
-</IfModule>
-
-# ------------------------------------------------------------------------------
-# | Cookie setting from iframes |
-# ------------------------------------------------------------------------------
-
-# Allow cookies to be set from iframes in IE.
-
-# <IfModule mod_headers.c>
-# Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""
-# </IfModule>
-
-# ------------------------------------------------------------------------------
-# | Screen flicker |
-# ------------------------------------------------------------------------------
-
-# Stop screen flicker in IE on CSS rollovers (this only works in
-# combination with the `ExpiresByType` directives for images from below).
-
-# BrowserMatch "MSIE" brokenvary=1
-# BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
-# BrowserMatch "Opera" !brokenvary
-# SetEnvIf brokenvary 1 force-no-vary
-
-
-# ##############################################################################
-# # MIME TYPES AND ENCODING #
-# ##############################################################################
-
-# ------------------------------------------------------------------------------
-# | Proper MIME types for all files |
-# ------------------------------------------------------------------------------
-
-<IfModule mod_mime.c>
-
- # Audio
- AddType audio/mp4 m4a f4a f4b
- AddType audio/ogg oga ogg
-
- # JavaScript
- # Normalize to standard type (it's sniffed in IE anyways):
- # http://tools.ietf.org/html/rfc4329#section-7.2
- AddType application/javascript js jsonp
- AddType application/json json
-
- # Video
- AddType video/mp4 mp4 m4v f4v f4p
- AddType video/ogg ogv
- AddType video/webm webm
- AddType video/x-flv flv
-
- # Web fonts
- AddType application/font-woff woff
- AddType application/vnd.ms-fontobject eot
-
- # Browsers usually ignore the font MIME types and sniff the content,
- # however, Chrome shows a warning if other MIME types are used for the
- # following fonts.
- AddType application/x-font-ttf ttc ttf
- AddType font/opentype otf
-
- # Make SVGZ fonts work on iPad:
- # https://twitter.com/FontSquirrel/status/14855840545
- AddType image/svg+xml svg svgz
- AddEncoding gzip svgz
-
- # Other
- AddType application/octet-stream safariextz
- AddType application/x-chrome-extension crx
- AddType application/x-opera-extension oex
- AddType application/x-shockwave-flash swf
- AddType application/x-web-app-manifest+json webapp
- AddType application/x-xpinstall xpi
- AddType application/xml atom rdf rss xml
- AddType image/webp webp
- AddType image/x-icon ico
- AddType text/cache-manifest appcache manifest
- AddType text/vtt vtt
- AddType text/x-component htc
- AddType text/x-vcard vcf
-
-</IfModule>
-
-# ------------------------------------------------------------------------------
-# | UTF-8 encoding |
-# ------------------------------------------------------------------------------
-
-# Use UTF-8 encoding for anything served as `text/html` or `text/plain`.
-AddDefaultCharset utf-8
-
-# Force UTF-8 for certain file formats.
-<IfModule mod_mime.c>
- AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml
-</IfModule>
-
-
-# ##############################################################################
-# # URL REWRITES #
-# ##############################################################################
-
-# ------------------------------------------------------------------------------
-# | Rewrite engine |
-# ------------------------------------------------------------------------------
-
-# Turning on the rewrite engine and enabling the `FollowSymLinks` option is
-# necessary for the following directives to work.
-
-# If your web host doesn't allow the `FollowSymlinks` option, you may need to
-# comment it out and use `Options +SymLinksIfOwnerMatch` but, be aware of the
-# performance impact: http://httpd.apache.org/docs/current/misc/perf-tuning.html#symlinks
-
-# Also, some cloud hosting services require `RewriteBase` to be set:
-# http://www.rackspace.com/knowledge_center/frequently-asked-question/why-is-mod-rewrite-not-working-on-my-site
-
-<IfModule mod_rewrite.c>
- Options +FollowSymlinks
- # Options +SymLinksIfOwnerMatch
- RewriteEngine On
- # RewriteBase /
-</IfModule>
-
-# ------------------------------------------------------------------------------
-# | Suppressing / Forcing the "www." at the beginning of URLs |
-# ------------------------------------------------------------------------------
-
-# The same content should never be available under two different URLs especially
-# not with and without "www." at the beginning. This can cause SEO problems
-# (duplicate content), therefore, you should choose one of the alternatives and
-# redirect the other one.
-
-# By default option 1 (no "www.") is activated:
-# http://no-www.org/faq.php?q=class_b
-
-# If you'd prefer to use option 2, just comment out all the lines from option 1
-# and uncomment the ones from option 2.
-
-# IMPORTANT: NEVER USE BOTH RULES AT THE SAME TIME!
-
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-# Option 1: rewrite www.example.com → example.com
-
-<IfModule mod_rewrite.c>
- RewriteCond %{HTTPS} !=on
- RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
- RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
-</IfModule>
-
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-# Option 2: rewrite example.com → www.example.com
-
-# Be aware that the following might not be a good idea if you use "real"
-# subdomains for certain parts of your website.
-
-# <IfModule mod_rewrite.c>
-# RewriteCond %{HTTPS} !=on
-# RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
-# RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
-# </IfModule>
-
-
-# ##############################################################################
-# # SECURITY #
-# ##############################################################################
-
-# ------------------------------------------------------------------------------
-# | Content Security Policy (CSP) |
-# ------------------------------------------------------------------------------
-
-# You can mitigate the risk of cross-site scripting and other content-injection
-# attacks by setting a Content Security Policy which whitelists trusted sources
-# of content for your site.
-
-# The example header below allows ONLY scripts that are loaded from the current
-# site's origin (no inline scripts, no CDN, etc). This almost certainly won't
-# work as-is for your site!
-
-# To get all the details you'll need to craft a reasonable policy for your site,
-# read: http://html5rocks.com/en/tutorials/security/content-security-policy (or
-# see the specification: http://w3.org/TR/CSP).
-
-# <IfModule mod_headers.c>
-# Header set Content-Security-Policy "script-src 'self'; object-src 'self'"
-# <FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$">
-# Header unset Content-Security-Policy
-# </FilesMatch>
-# </IfModule>
-
-# ------------------------------------------------------------------------------
-# | File access |
-# ------------------------------------------------------------------------------
-
-# Block access to directories without a default document.
-# Usually you should leave this uncommented because you shouldn't allow anyone
-# to surf through every directory on your server (which may includes rather
-# private places like the CMS's directories).
-
-<IfModule mod_autoindex.c>
- Options -Indexes
-</IfModule>
-
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-# Block access to hidden files and directories.
-# This includes directories used by version control systems such as Git and SVN.
-
-<IfModule mod_rewrite.c>
- RewriteCond %{SCRIPT_FILENAME} -d [OR]
- RewriteCond %{SCRIPT_FILENAME} -f
- RewriteRule "(^|/)\." - [F]
-</IfModule>
-
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-# Block access to backup and source files.
-# These files may be left by some text editors and can pose a great security
-# danger when anyone has access to them.
-
-<FilesMatch "(^#.*#|\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|sw[op])|~)$">
- Order allow,deny
- Deny from all
- Satisfy All
-</FilesMatch>
-
-# ------------------------------------------------------------------------------
-# | Secure Sockets Layer (SSL) |
-# ------------------------------------------------------------------------------
-
-# Rewrite secure requests properly to prevent SSL certificate warnings, e.g.:
-# prevent `https://www.example.com` when your certificate only allows
-# `https://secure.example.com`.
-
-# <IfModule mod_rewrite.c>
-# RewriteCond %{SERVER_PORT} !^443
-# RewriteRule ^ https://example-domain-please-change-me.com%{REQUEST_URI} [R=301,L]
-# </IfModule>
-
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-# Force client-side SSL redirection.
-
-# If a user types "example.com" in his browser, the above rule will redirect him
-# to the secure version of the site. That still leaves a window of opportunity
-# (the initial HTTP connection) for an attacker to downgrade or redirect the
-# request. The following header ensures that browser will ONLY connect to your
-# server via HTTPS, regardless of what the users type in the address bar.
-# http://www.html5rocks.com/en/tutorials/security/transport-layer-security/
-
-# <IfModule mod_headers.c>
-# Header set Strict-Transport-Security max-age=16070400;
-# </IfModule>
-
-# ------------------------------------------------------------------------------
-# | Server software information |
-# ------------------------------------------------------------------------------
-
-# Avoid displaying the exact Apache version number, the description of the
-# generic OS-type and the information about Apache's compiled-in modules.
-
-# ADD THIS DIRECTIVE IN THE `httpd.conf` AS IT WILL NOT WORK IN THE `.htaccess`!
-
-# ServerTokens Prod
-
-
-# ##############################################################################
-# # WEB PERFORMANCE #
-# ##############################################################################
-
-# ------------------------------------------------------------------------------
-# | Compression |
-# ------------------------------------------------------------------------------
-
-<IfModule mod_deflate.c>
-
- # Force compression for mangled headers.
- # http://developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping
- <IfModule mod_setenvif.c>
- <IfModule mod_headers.c>
- SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
- RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
- </IfModule>
- </IfModule>
-
- # Compress all output labeled with one of the following MIME-types
- # (for Apache versions below 2.3.7, you don't need to enable `mod_filter`
- # and can remove the `<IfModule mod_filter.c>` and `</IfModule>` lines
- # as `AddOutputFilterByType` is still in the core directives).
- <IfModule mod_filter.c>
- AddOutputFilterByType DEFLATE application/atom+xml \
- application/javascript \
- application/json \
- application/rss+xml \
- application/vnd.ms-fontobject \
- application/x-font-ttf \
- application/x-web-app-manifest+json \
- application/xhtml+xml \
- application/xml \
- font/opentype \
- image/svg+xml \
- image/x-icon \
- text/css \
- text/html \
- text/plain \
- text/x-component \
- text/xml
- </IfModule>
-
-</IfModule>
-
-# ------------------------------------------------------------------------------
-# | Content transformations |
-# ------------------------------------------------------------------------------
-
-# Prevent some of the mobile network providers from modifying the content of
-# your site: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.5.
-
-# <IfModule mod_headers.c>
-# Header set Cache-Control "no-transform"
-# </IfModule>
-
-# ------------------------------------------------------------------------------
-# | ETag removal |
-# ------------------------------------------------------------------------------
-
-# Since we're sending far-future expires headers (see below), ETags can
-# be removed: http://developer.yahoo.com/performance/rules.html#etags.
-
-# `FileETag None` is not enough for every server.
-<IfModule mod_headers.c>
- Header unset ETag
-</IfModule>
-
-FileETag None
-
-# ------------------------------------------------------------------------------
-# | Expires headers (for better cache control) |
-# ------------------------------------------------------------------------------
-
-# The following expires headers are set pretty far in the future. If you don't
-# control versioning with filename-based cache busting, consider lowering the
-# cache time for resources like CSS and JS to something like 1 week.
-
-<IfModule mod_expires.c>
-
- ExpiresActive on
- ExpiresDefault "access plus 1 month"
-
- # CSS
- ExpiresByType text/css "access plus 1 year"
-
- # Data interchange
- ExpiresByType application/json "access plus 0 seconds"
- ExpiresByType application/xml "access plus 0 seconds"
- ExpiresByType text/xml "access plus 0 seconds"
-
- # Favicon (cannot be renamed!)
- ExpiresByType image/x-icon "access plus 1 week"
-
- # HTML components (HTCs)
- ExpiresByType text/x-component "access plus 1 month"
-
- # HTML
- ExpiresByType text/html "access plus 0 seconds"
-
- # JavaScript
- ExpiresByType application/javascript "access plus 1 year"
-
- # Manifest files
- ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
- ExpiresByType text/cache-manifest "access plus 0 seconds"
-
- # Media
- ExpiresByType audio/ogg "access plus 1 month"
- ExpiresByType image/gif "access plus 1 month"
- ExpiresByType image/jpeg "access plus 1 month"
- ExpiresByType image/png "access plus 1 month"
- ExpiresByType video/mp4 "access plus 1 month"
- ExpiresByType video/ogg "access plus 1 month"
- ExpiresByType video/webm "access plus 1 month"
-
- # Web feeds
- ExpiresByType application/atom+xml "access plus 1 hour"
- ExpiresByType application/rss+xml "access plus 1 hour"
-
- # Web fonts
- ExpiresByType application/font-woff "access plus 1 month"
- ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
- ExpiresByType application/x-font-ttf "access plus 1 month"
- ExpiresByType font/opentype "access plus 1 month"
- ExpiresByType image/svg+xml "access plus 1 month"
-
-</IfModule>
-
-# ------------------------------------------------------------------------------
-# | Filename-based cache busting |
-# ------------------------------------------------------------------------------
-
-# If you're not using a build process to manage your filename version revving,
-# you might want to consider enabling the following directives to route all
-# requests such as `/css/style.12345.css` to `/css/style.css`.
-
-# To understand why this is important and a better idea than `*.css?v231`, read:
-# http://stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring
-
-# <IfModule mod_rewrite.c>
-# RewriteCond %{REQUEST_FILENAME} !-f
-# RewriteCond %{REQUEST_FILENAME} !-d
-# RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
-# </IfModule>
-
-# ------------------------------------------------------------------------------
-# | File concatenation |
-# ------------------------------------------------------------------------------
-
-# Allow concatenation from within specific CSS and JS files, e.g.:
-# Inside of `script.combined.js` you could have
-# <!--#include file="libs/jquery.js" -->
-# <!--#include file="plugins/jquery.idletimer.js" -->
-# and they would be included into this single file.
-
-# <IfModule mod_include.c>
-# <FilesMatch "\.combined\.js$">
-# Options +Includes
-# AddOutputFilterByType INCLUDES application/javascript application/json
-# SetOutputFilter INCLUDES
-# </FilesMatch>
-# <FilesMatch "\.combined\.css$">
-# Options +Includes
-# AddOutputFilterByType INCLUDES text/css
-# SetOutputFilter INCLUDES
-# </FilesMatch>
-# </IfModule>
-
-# ------------------------------------------------------------------------------
-# | Persistent connections |
-# ------------------------------------------------------------------------------
-
-# Allow multiple requests to be sent over the same TCP connection:
-# http://httpd.apache.org/docs/current/en/mod/core.html#keepalive.
-
-# Enable if you serve a lot of static content but, be aware of the
-# possible disadvantages!
-
-# <IfModule mod_headers.c>
-# Header set Connection Keep-Alive
-# </IfModule>
diff --git a/ecomp-portal-FE/client/.jshintrc b/ecomp-portal-FE/client/.jshintrc
deleted file mode 100644
index 8c5c42c0..00000000
--- a/ecomp-portal-FE/client/.jshintrc
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "node": true,
- "browser": true,
- "esnext": true,
- "bitwise": true,
- "camelcase": true,
- "curly": true,
- "eqeqeq": true,
- "immed": true,
- "latedef": true,
- "newcap": true,
- "noarg": true,
- "quotmark": "single",
- "undef": true,
- "unused": true,
- "strict": true,
- "trailing": true,
- "smarttabs": true,
- "globals": {
- "jQuery": true,
- "angular": true,
- "console": true,
- "$": true,
- "_": true,
- "moment": true,
- "describe": true,
- "beforeEach": true,
- "module": true,
- "inject": true,
- "it": true,
- "expect": true,
- "browser": true,
- "element": true,
- "by": true
- }
-}
diff --git a/ecomp-portal-FE/client/app/app.js b/ecomp-portal-FE/client/app/app.js
deleted file mode 100644
index ea06d9aa..00000000
--- a/ecomp-portal-FE/client/app/app.js
+++ /dev/null
@@ -1,120 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-var app = angular.module('ecompApp', [
- 'ngCookies',
- 'ngResource',
- 'ngSanitize',
- 'ui.router',
- 'ecomp.conf',
- 'ngMessages',
- 'ui.select',
- 'angular-cache',
- 'ngDialog',
- 'att.abs',
- 'att.gridster',
- 'uuid',
- 'ui.bootstrap',
- 'ngMaterial'
- ])
- .config(($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider, ngDialogProvider) => {
- $urlRouterProvider.otherwise('/error404');
- $locationProvider.html5Mode(true);
-
- //initialize get if not there
- if (!$httpProvider.defaults.headers.get) {
- $httpProvider.defaults.headers.get = {};
- }
-
- //withCredentials flag on the XHR object - add cookie to XHR requests
- $httpProvider.defaults.withCredentials = true;
- $httpProvider.defaults.useXDoain = true;
- $httpProvider.defaults.timeout = 30000;
-
- //default configuration for ngDialog modal
- ngDialogProvider.setDefaults({
- className: 'ngdialog-theme-default',
- showClose: true,
- closeByDocument: false,
- closeByEscape: false
- });
-
-
- var myHostName;
- myHostName = location.host;
-
- if (!(myHostName.includes("localhost"))) {
- $httpProvider.defaults.headers.get['If-Modified-Since'] = 'Mon, 26 Jul 1997 05:00:00 GMT';
- $httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache';
- $httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
- }
-
-
- //interceptor here:
- var interceptor = function ($q, $injector, $log) {
- return {
- 'responseError': function (rejection) {
- $log.error('Interceptor rejection: ' + JSON.stringify(rejection));
- var $state = $injector.get('$state');
- switch (rejection.status) {
- case 401:
- var globalLoginUrl = rejection.headers()['global-login-url'];
- if (globalLoginUrl) {
- window.location = globalLoginUrl +
- (globalLoginUrl.indexOf('?') === -1 ? '?' : '') +
- '&retUrl=' + encodeURI(window.location);
- return;
- }
- break;
- case 403:
- // $state.go('root.applicationsHome');
- //handle forbidden error
- break;
- // case 404:
- // $state.go('/login.htm');
- // //handle forbidden error
- // break;
- default:
- //handle internal server error
- }
- return $q.reject(rejection);
- }
- };
- };
- $httpProvider.interceptors.push(interceptor);
-
- }).run(($http, CacheFactory) => {
- //default configuration for cache factory
- $http.defaults.cache = CacheFactory('defaultCache', {
- maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes
- cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour
- deleteOnExpire: 'aggressive' // Items will be deleted from this cache when they expire
- });
- });
-
-
-angular.module( 'ecompApp' ).config( [
-'$compileProvider',
-function( $compileProvider )
-{
- $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|chrome-extension):/);
-}
-]);
diff --git a/ecomp-portal-FE/client/app/app.less b/ecomp-portal-FE/client/app/app.less
deleted file mode 100644
index 4c8ac018..00000000
--- a/ecomp-portal-FE/client/app/app.less
+++ /dev/null
@@ -1,78 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-// injector
-@import 'directives/left-menu/left-menu.less';
-@import 'directives/multiple-select/multiple-select.less';
-@import 'directives/right-menu/right-menu.less';
-@import 'directives/search-users/search-users.less';
-@import 'styles/att-abs.less';
-@import 'styles/buttons.less';
-@import 'styles/ecomp-general.less';
-@import 'styles/fonts.less';
-@import 'styles/form.less';
-@import 'styles/kpi-dashboard.less';
-@import 'styles/mixins.less';
-@import 'styles/ng-dialog.less';
-@import 'styles/reset.less';
-@import 'styles/select2.less';
-@import 'styles/spinner.less';
-@import 'styles/sprites.less';
-@import 'styles/variables.less';
-@import 'views/admins/add-admin-dialogs/new-admin.modal.less';
-@import 'views/admins/admins.less';
-@import 'views/applications/application-details-dialog/application-details.modal.less';
-@import 'views/applications/applications.less';
-@import 'views/catalog/catalog.less';
-@import 'views/confirmation-box/confirmation-box.less';
-@import 'views/dashboard/dashboard-widget.controller.less';
-@import 'views/dashboard/dashboard.less';
-@import 'views/footer/footer.less';
-@import 'views/functionalMenu/functionalMenu-dialog/modal-details.modal.less';
-@import 'views/functionalMenu/functionalMenu.less';
-@import 'views/header/header.less';
-@import 'views/home/applications-home/applications-home.less';
-@import 'views/home/widgets-home/widgets-home.less';
-@import 'views/portal-admin/new-portal-admin/new-portal-admin.modal.less';
-@import 'views/portal-admin/portal-admins.less';
-@import 'views/search/search.less';
-@import 'views/sidebar/sidebar.less';
-@import 'views/support/contact-us/contact-us-manage/contact-us-manage.controller.less';
-@import 'views/support/contact-us/contact-us.less';
-@import 'views/support/get-access/get-access.less';
-@import 'views/tabs/tabs.less';
-@import 'views/userbar/userbar.less';
-@import 'views/users/new-user-dialogs/new-user.modal.less';
-@import 'views/users/users.less';
-@import 'views/widgets/widget-details-dialog/widget-details.modal.less';
-@import 'views/widgets/widgets.less';
-// endinjector
-
-html { height: 100%; overflow-y: hidden;}
-* { box-sizing: border-box; }
-body {
- font: normal 12px arial;
-}
-
-/* Responsive: Portrait tablets and up */
-@media screen and (min-width: 768px) {
- .container {
- //max-width: 730px;
- }
-}
diff --git a/ecomp-portal-FE/client/app/configurations.js b/ecomp-portal-FE/client/app/configurations.js
deleted file mode 100644
index 0c417914..00000000
--- a/ecomp-portal-FE/client/app/configurations.js
+++ /dev/null
@@ -1,5 +0,0 @@
-angular.module('ecomp.conf', [])
-
-.constant('conf', {api:{userApps:'http://www.ecomp.att.com:8080/ecompportal/portalApi/userApps',persUserApps:'http://www.ecomp.att.com:8080/ecompportal/portalApi/persUserApps',appCatalog:'http://www.ecomp.att.com:8080/ecompportal/portalApi/appCatalog',accountAdmins:'http://www.ecomp.att.com:8080/ecompportal/portalApi/accountAdmins',availableApps:'http://www.ecomp.att.com:8080/ecompportal/portalApi/availableApps',allAvailableApps:'http://www.ecomp.att.com:8080/ecompportal/portalApi/allAvailableApps',userProfile:'http://www.ecomp.att.com:8080/ecompportal/portalApi/userProfile',currentUserProfile:'http://www.ecomp.att.com:8080/ecompportal/portalApi/currentUserProfile',queryUsers:'http://www.ecomp.att.com:8080/ecompportal/portalApi/queryUsers',adminAppsRoles:'http://www.ecomp.att.com:8080/ecompportal/portalApi/adminAppsRoles',adminApps:'http://www.ecomp.att.com:8080/ecompportal/portalApi/adminApps',appsForSuperAdminAndAccountAdmin:'http://www.ecomp.att.com:8080/ecompportal/portalApi/appsForSuperAdminAndAccountAdmin',accountUsers:'http://www.ecomp.att.com:8080/ecompportal/portalApi/app/:appId/users',saveNewUser:'http://www.ecomp.att.com:8080/ecompportal/portalApi/saveNewUser',userAppRoles:'http://www.ecomp.att.com:8080/ecompportal/portalApi/userAppRoles',updateRemoteUserProfile:'http://www.ecomp.att.com:8080/ecompportal/portalApi/updateRemoteUserProfile',onboardingApps:'http://www.ecomp.att.com:8080/ecompportal/portalApi/onboardingApps',widgets:'http://www.ecomp.att.com:8080/ecompportal/portalApi/widgets',widgetsValidation:'http://www.ecomp.att.com:8080/ecompportal/portalApi/widgets/validation',functionalMenuForAuthUser:'http://www.ecomp.att.com:8080/ecompportal/portalApi/functionalMenuForAuthUser',functionalMenuForEditing:'http://www.ecomp.att.com:8080/ecompportal/portalApi/functionalMenuForEditing',functionalMenu:'http://www.ecomp.att.com:8080/ecompportal/portalApi/functionalMenu',functionalMenuItemDetails:'http://www.ecomp.att.com:8080/ecompportal/portalApi/functionalMenuItemDetails/:menuId',appRoles:'http://www.ecomp.att.com:8080/ecompportal/portalApi/appRoles/:appId',functionalMenuItem:'http://www.ecomp.att.com:8080/ecompportal/portalApi/functionalMenuItem',regenerateFunctionalMenuAncestors:'http://www.ecomp.att.com:8080/ecompportal/portalApi/regenerateFunctionalMenuAncestors',listOfApp:'http://www.ecomp.att.com:8080/ecompportal/portalApi/getAppList',setFavoriteItem:'http://www.ecomp.att.com:8080/ecompportal/portalApi/setFavoriteItem',getFavoriteItems:'http://www.ecomp.att.com:8080/ecompportal/portalApi/getFavoriteItems',removeFavoriteItem:'http://www.ecomp.att.com:8080/ecompportal/portalApi/removeFavoriteItem/:menuId',ping:'http://www.ecomp.att.com:8080/ecompportal/portalApi/ping',functionalMenuStaticInfo:'http://www.ecomp.att.com:8080/ecompportal/portalApi/functionalMenuStaticInfo',resetFunctionalMenuStaticInfo:'http://www.ecomp.att.com:8080/ecompportal/portalApi/resetFunctionalMenuStaticInfo',portalAdmins:'http://www.ecomp.att.com:8080/ecompportal/portalApi/portalAdmins',portalAdmin:'http://www.ecomp.att.com:8080/ecompportal/portalApi/portalAdmin',getKpiDashUserStoriesStats:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_user_stories_stats',getKpiDashUserApiStats:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_user_api_stats',getKpiDashLocStats:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_loc_stats',getKpiDashLocStatsCat:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_loc_stats_cat',getKpiDashServiceSupported:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_kpi_service_supported',getKpiDashPublishedDelivered:'http://www.ecomp.att.com:8080/ecompportal/portalApi/execute_get_published_delivered',getKpiDashFeedStats:'http://www.ecomp.att.com:8080/ecompportal/portalApi/execute_get_feed_stats',getKpiDashUserApis:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_user_api_stats',getKpiDashGeoMapUrl:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_geo_map_url',getKpiDashRCloudAUrl:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_rcloud_a_url',getKpiDashGeoMapApiUrl:'http://www.ecomp.att.com:8080/ecompportal/portalApi/get_geo_map_api_url',getManifest:'http://www.ecomp.att.com:8080/ecompportal/portalApi/manifest',getActiveUser:'http://www.ecomp.att.com:8080/ecompportal/portalApi/dashboard/activeUsers',getSearchAllByStringResults:'http://www.ecomp.att.com:8080/ecompportal/portalApi/dashboard/search',commonWidget:'http://www.ecomp.att.com:8080/ecompportal/portalApi/dashboard/widgetData',deleteCommonWidget:'http://www.ecomp.att.com:8080/ecompportal/portalApi/dashboard/deleteData',getContactUS:'http://www.ecomp.att.com:8080/ecompportal/portalApi/contactus/list',getAppsAndContacts:'http://www.ecomp.att.com:8080/ecompportal/portalApi/contactus/allapps',saveContactUS:'http://www.ecomp.att.com:8080/ecompportal/portalApi/contactus/save',deleteContactUS:'http://www.ecomp.att.com:8080/ecompportal/portalApi/contactus/delete',getContactUSPortalDetails:'http://www.ecomp.att.com:8080/ecompportal/portalApi/contactus/feedback',getAppCategoryFunctions:'http://www.ecomp.att.com:8080/ecompportal/portalApi/contactus/functions',onlineUserUpdateRate:'http://www.ecomp.att.com:8080/ecompportal/portalApi/dashboard/onlineUserUpdateRate',getWidthThresholdLeftMenu:'http://www.ecomp.att.com:8080/ecompportal/portalApi/dashboard/windowWidthThresholdLeftMenu',getWidthThresholdRightMenu:'http://www.ecomp.att.com:8080/ecompportal/portalApi/dashboard/windowWidthThresholdRightMenu'},cookieDomain:'att.com'})
-
-; \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/directives/auto-focus/auto-focus.directive.js b/ecomp-portal-FE/client/app/directives/auto-focus/auto-focus.directive.js
deleted file mode 100644
index 73964115..00000000
--- a/ecomp-portal-FE/client/app/directives/auto-focus/auto-focus.directive.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-
-
-//angular.module('ecompApp')
-// .directive('autoFocus', function () {
-// return {
-// restrict: 'A',
-// scope: {},
-// link: function (scope, element) {
-// element[0].focus();
-// }
-// };
-// });
-
-/* istanbul ignore next */
-(function(){
- class AutoFocusDirective{
- constructor(){
- this.restrict = 'A';
- this.link = this._link.bind(this);
- }
- _link(scope, element){
- element[0].focus();
- }
- }
- angular.module('ecompApp').directive('autoFocus', () => new AutoFocusDirective());
-})();
diff --git a/ecomp-portal-FE/client/app/directives/image-upload/image-upload.directive.js b/ecomp-portal-FE/client/app/directives/image-upload/image-upload.directive.js
deleted file mode 100644
index 90c88c50..00000000
--- a/ecomp-portal-FE/client/app/directives/image-upload/image-upload.directive.js
+++ /dev/null
@@ -1,222 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-angular.module('ecompApp').directive('imageUpload', function factory($q) {
- var imageMimeRgx = /^image\/[a-zA-Z0-9]*$/;
-
- var URL = window.URL || window.webkitURL;
-
- var getResizeArea = function () {
- var resizeAreaId = 'fileupload-resize-area';
-
- var resizeArea = document.getElementById(resizeAreaId);
-
- if (!resizeArea) {
- resizeArea = document.createElement('canvas');
- resizeArea.id = resizeAreaId;
- resizeArea.style.visibility = 'hidden';
- document.body.appendChild(resizeArea);
- }
-
- return resizeArea;
- };
-
- var resizeImage = function (origImage, options) {
- var maxHeight = options.resizeMaxHeight || 300;
- var maxWidth = options.resizeMaxWidth || 250;
- var quality = options.resizeQuality || 0.7;
- var type = options.resizeType || 'image/jpg';
-
- var canvas = getResizeArea();
-
- var height = origImage.height;
- var width = origImage.width;
-
- //image redraw starting points
- var x0, y0;
-
- // calculate the width and height, constraining the proportions
- if (width > height) {
- if (width > maxWidth) {
- height = Math.round(height *= maxWidth / width);
- width = maxWidth;
-
- x0 = 0;
- y0 = Math.round((maxHeight - height)/2);
- }else{
- maxHeight = height;
- maxWidth = width;
- x0 = 0;
- y0 = 0;
- }
- } else {
- if (height > maxHeight) {
- width = Math.round(width *= maxHeight / height);
- height = maxHeight;
-
- x0 = Math.round((maxWidth - width)/2);
- y0 = 0;
- }else{
- maxHeight = height;
- maxWidth = width;
- x0 = 0;
- y0 = 0;
- }
- }
-
- canvas.width = maxWidth;
- canvas.height = maxHeight;
-
- //draw image on canvas
- var ctx = canvas.getContext("2d");
-
- //set background color
- if(options.backgroundColor){
- ctx.fillStyle = options.backgroundColor;
- ctx.fillRect(0,0,maxWidth,maxHeight);
- }
-
-
- ctx.drawImage(origImage, x0, y0, width, height);
-
- // get the data from canvas as 70% jpg (or specified type).
- return canvas.toDataURL(type, quality);
- };
-
- var createImage = function(url, callback) {
- var image = new Image();
- image.onload = function() {
- callback(image);
- };
- image.src = url;
- };
-
- var fileToDataURL = function (file) {
- var deferred = $q.defer();
- var reader = new FileReader();
- reader.onload = function (e) {
- deferred.resolve(e.target.result);
- };
- reader.readAsDataURL(file);
- return deferred.promise;
- };
-
- return {
- restrict: 'A',
- require: '^form',
- scope: {
- image: '=imageUpload',
- resizeMaxHeight: '@?imageUploadResizeMaxHeight',
- resizeMaxWidth: '@?imageUploadResizeMaxWidth',
- resizeQuality: '@?imageUploadResizeQuality',
- resizeType: '@?imageUploadResizeType',
- imageApi: '=?imageUploadApi',
- backgroundColor: '@?imageUploadBackgroundColor'
- },
- compile: function compile(tElement, tAttrs, transclude) {
- return function postLink(scope, iElement, iAttrs, formCtrl) {
- var doResizing = function(imageResult, callback) {
- createImage(imageResult.url, function(image) {
- var dataURL = resizeImage(image, scope);
- imageResult.resized = {
- dataURL: dataURL,
- type: dataURL.match(/:(.+\/.+);/)[1]
- };
- callback(imageResult);
- });
- };
-
- var applyScope = function(imageResult) {
- scope.$apply(function() {
- //console.log(imageResult);
- if(iAttrs.multiple)
- scope.image.push(imageResult);
- else
- scope.image = imageResult;
- });
- };
-
- iElement.bind('change', function (evt) {
- //when multiple always return an array of images
- if(iAttrs.multiple)
- scope.image = [];
-
- var files = evt.target.files;
- for(var i = 0; i < files.length; i++) {
- setInputValidity(files[i]);
-
- //create a result object for each file in files
- var imageResult = {
- file: files[i],
- url: URL.createObjectURL(files[i])
- };
-
- fileToDataURL(files[i]).then(function (dataURL) {
- imageResult.dataURL = dataURL;
- });
-
- if(scope.resizeMaxHeight || scope.resizeMaxWidth) { //resize image
- doResizing(imageResult, function(imageResult) {
- applyScope(imageResult);
- });
- }
- else { //no resizing
- applyScope(imageResult);
- }
- }
- });
-
- //API for otter actions
- scope.imageApi = scope.imageApi || {};
- scope.imageApi.clearFile = () => {
- iElement[0].value = "";
- setInputValidity();
- };
-
-
- let setInputValidity = file => {
- //if form validation supported
-
- if(formCtrl && iAttrs.name && formCtrl[iAttrs.name]){
- formCtrl[iAttrs.name].$setDirty();
- if(file && file.type && !imageMimeRgx.test(file.type)){
- //set form invalid
- formCtrl[iAttrs.name].$setValidity('mimeType', false);
- applyScope();
- return;
- }
- if(file && file.size && file.size > 1000000){
- //set form invalid
- formCtrl[iAttrs.name].$setValidity('imageSize', false);
- applyScope();
- return;
- }
- //set valid
- formCtrl[iAttrs.name].$setValidity('mimeType', true);
- formCtrl[iAttrs.name].$setValidity('imageSize', true);
- }
-
- }
- }
- }
- }
-});
diff --git a/ecomp-portal-FE/client/app/directives/left-menu/left-menu.directive.js b/ecomp-portal-FE/client/app/directives/left-menu/left-menu.directive.js
deleted file mode 100644
index 363485fe..00000000
--- a/ecomp-portal-FE/client/app/directives/left-menu/left-menu.directive.js
+++ /dev/null
@@ -1,96 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-(function () {
- class LeftMenu {
- constructor($rootScope, $log, userbarUpdateService) {
- this.templateUrl = 'app/directives/left-menu/left-menu.tpl.html';
- this.restrict = 'AE';
- this.$rootScope = $rootScope;
- this.$log = $log;
- this.userbarUpdateService = userbarUpdateService;
- this.link = this._link.bind(this);
- this.scope = {
- sidebarModel: '='
- }
- }
-
- _link(scope) {
- let init = () => {
- scope.isOpen = true;
- };
-
- init();
-
- scope.refreshOnlineUsers = () => {
- this.userbarUpdateService.setRefreshCount(this.userbarUpdateService.maxCount);
- };
-
- scope.toggleSidebar = () => {
- scope.isOpen = !scope.isOpen;
- if(scope.isOpen)
- setContentPos(1);
- else
- setContentPos(0);
-
- };
-
- scope.isBrowserInternetExplorer = false;
- scope.browserName = bowser.name;
-
- if (bowser.msie || bowser.msedge) {
- scope.isBrowserInternetExplorer = true;
- } else {
- scope.isBrowserInternetExplorer = false;
- }
-
- let log = this.$log;
-
- this.userbarUpdateService.getWidthThresholdLeftMenu().then(function (res) {
- if (res == null || res.response == null) {
- log.error('userbarUpdateService: failed to get window width threshold for collapsing left menu; please make sure "window_width_threshold_left_menu" is specified in system.properties file.');
- } else {
- var leftMenuCollapseWidthThreshold = parseInt(res.response.windowWidth);
- if ($(window).width()<leftMenuCollapseWidthThreshold) {
- scope.toggleSidebar();
- }
- }
- })['catch'](function (err) {
- log.error('LeftMenu Controller:: getWidthThresholdLeftMenu() failed: ' + err);
- });
-
-
-
- this.$rootScope.$on('$stateChangeStart', () => {
- scope.isOpen = true;
- });
- }
- }
- angular.module('ecompApp').directive('leftMenu', ($rootScope,$log,userbarUpdateService) => new LeftMenu($rootScope,$log,userbarUpdateService));
-})();
-
-function setContentPos(open) {
- if(open==1){
- $("#contentId" ).css( "padding-left", "210px" );
- }else{
- $("#contentId" ).css( "padding-left", "50px" );
- }
-
-}
diff --git a/ecomp-portal-FE/client/app/directives/left-menu/left-menu.less b/ecomp-portal-FE/client/app/directives/left-menu/left-menu.less
deleted file mode 100644
index 276fb409..00000000
--- a/ecomp-portal-FE/client/app/directives/left-menu/left-menu.less
+++ /dev/null
@@ -1,133 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-@sidebar-width: 200px;
-@transition-duration: 0.25s;
-@overlayer-opacity: 0.65;
-
-
-.close-button {
- .a24r;
- font-size: 3em;
- line-height: 18px;
- position: absolute;
- cursor: pointer;
- vertical-align: middle;
- top: @second-level-top;
- left: 0;
- -webkit-font-smoothing: antialiased;
- height: 53px;
- z-index: 101;
-}
-.ecomp-sidebar-container {
- position: absolute;
- display: block;
- left: 0;
- z-index: 100;
- transition: left @transition-duration;
- margin-top: -15px;
-
- .ecomp-sidebar-main {
- position: absolute;
- margin-top: 65px;
- width: @sidebar-width;
- height: 100vh;
- .bg_u;
- box-shadow: 0 4px 5px rgba(0, 0, 0, .2);
-
- padding-right: 10px;
- padding-left: 10px;
-
- .accordion-container{
- margin-top: 45px;
- overflow-y:auto;
- overflow-x:hidden;
- }
- .att-accordion-font{
- font-size: .875rem;
- color: #666;
- display: inline-block;
- font-family: arial;
-
- }
-
- .att-accordion-active{
- color: #199DDF !important;
- }
-
- .sub-item{
- .att-accordion-font;
- cursor: pointer;
- height: 37px;
- line-height: 37px;
- padding-left: 20px;
- padding-bottom: 10px;
- vertical-align: middle;
- width: 100%;
- }
- .sub-item:hover{
- .att-accordion-active;
- }
-
- .parent-item{
- .att-accordion-font;
- border-bottom: 1px solid #bbb;
- cursor: pointer;
- height: 37px;
- line-height: 37px;
- padding-bottom: 10px;
- vertical-align: middle;
- width: 100%;
- }
- .parent-item:hover{
- .att-accordion-active;
- }
-
- }
-}
-
-.open-sidebar {
- left: 0;
-}
-
-.close-sidebar {
- left: -@sidebar-width;
-}
-
-.content-overlayed {
- position: fixed;
- top: 110px;
- right: 0;
- bottom: 0;
- left: 0;
- background: none repeat scroll 0 0 rgb(242, 242, 242);
- z-index: 9999;
-}
-.fade-animation{
- opacity: @overlayer-opacity;
- transition: opacity @transition-duration ease-in-out;
-}
-.fade-animation.ng-hide {
- opacity:0;
- transition: opacity @transition-duration ease-in-out;
-}
-
-#contentId{
- padding-left:210px
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/directives/left-menu/left-menu.tpl.html b/ecomp-portal-FE/client/app/directives/left-menu/left-menu.tpl.html
deleted file mode 100644
index 0059d6a4..00000000
--- a/ecomp-portal-FE/client/app/directives/left-menu/left-menu.tpl.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="close-button" ng-click="toggleSidebar()">
- <span id="icon-hamburger" class="ion-navicon-round" ></span>
-</div>
-<div id="ecomp-sidebar-container" class="ecomp-sidebar-container" ng-class="isOpen ? 'open-sidebar': 'close-sidebar'">
- <div class="ecomp-sidebar-main" >
- <div class="accordion-container" id="accordion-container">
- <accordion close-others="true" css="att-accordion--no-box">
- <div ng-repeat="parent in sidebarModel.navItems">
- <div ng-click="refreshOnlineUsers()" id="parent-item-{{parent.name.split(' ').join('-')}}"
- class="parent-item"
- ng-if="!parent.subMenu"
- class="child-row"
- ui-sref="{{parent.state}}" ui-sref-active="att-accordion-active">
- <i id="icon-image-{{parent.name.split(' ').join('-')}}" ng-class="parent.imageSrc" class=\"pull-left\"></i>
- &nbsp;&nbsp;{{parent.name}}
- </div>
-
- <accordion-group
- id="accordion-group"
- ng-if="parent.subMenu"
- heading="{{parent.name}}"
- image-source="{{parent.imageSrc}}" >
- <div id="sub-item-{{child.name.split(' ').join('-')}}"
- class="sub-item"
- ng-repeat="child in parent.subMenu"
- class="child-row"
- ui-sref="{{child.state}}" ui-sref-active="att-accordion-active"
- image-source="{{parent.imageSrc}}">
- <i id="child-item-{{child.name.split(' ').join('-')}}" ng-class="child.imageSrc" class=\"pull-left\"></i>&nbsp;&nbsp;{{child.name}}
- </div>
- </accordion-group>
-
- </div>
- </accordion>
-
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.directive.js b/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.directive.js
deleted file mode 100644
index e8f6ed94..00000000
--- a/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.directive.js
+++ /dev/null
@@ -1,111 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-angular.module('ecompApp')
- .directive('multipleSelect', function ($window) {
- return {
- restrict: 'E',
- templateUrl: 'app/directives/multiple-select/multiple-select.tpl.html',
- scope: {
- onChange: '&',
- nameAttr: '@',
- valueAttr: '@',
- ngModel: '=',
- placeholder: '@',
- uniqueData: '@?',
- onDropdownClose: '&?'
- },
- link: function(scope, elm, attrs){
- scope.isExpanded = false;
-
- scope.isDisabled = !scope.ngModel || !scope.ngModel.length;
- scope.$watch('ngModel', function(newVal){
- scope.isDisabled = !newVal || !newVal.length;
- });
-
-
- let startListening = () => {
- console.log('listening on $window!');
- angular.element($window).on('click', function () {
- stopListening();
- });
-
- angular.element('multiple-select').on('click', function(e) {
- if($(e.target).closest('multiple-select')[0].attributes['unique-data'].value === attrs.uniqueData){
- console.log('ignored that..:', attrs.uniqueData);
- e.stopPropagation();
- }else{
- console.log('shouldnt ignore, close expanded!:', attrs.uniqueData);
- scope.isExpanded = false;
- scope.$applyAsync();
- }
- });
- };
-
- let stopListening = function() {
- if(scope.onDropdownClose){
- scope.onDropdownClose();
- }
- scope.isExpanded = false;
- scope.$applyAsync();
- console.log('stop listening on $window and multiple-element!');
- angular.element($window).off('click');
- angular.element('multiple-select').off('click');
- };
-
- scope.showCheckboxes = function(){
- scope.isExpanded = !scope.isExpanded;
- if(scope.isExpanded){
- startListening();
- }else{
- stopListening();
- if(scope.onDropdownClose){
- scope.onDropdownClose();
- }
- }
- };
-
- scope.onCheckboxClicked = function() {
- console.log('checkbox clicked; unique data: ',attrs.uniqueData);
- if(scope.onChange) {
- scope.onChange();
- }
- }
-
- scope.getTitle = function(){
- var disp = "";
- if(!scope.ngModel || !scope.ngModel.length) {
- return disp;
- }
- scope.ngModel.forEach(function(item){
- if(item[scope.valueAttr]){
- disp+=item[scope.nameAttr] + ",";
- }
- });
- if(disp!==""){
- disp = disp.slice(0,disp.length-1);
- }else{
- disp = scope.placeholder;
- }
- return disp;
- };
- }
- };
- });
diff --git a/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.less b/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.less
deleted file mode 100644
index 6e54c8b6..00000000
--- a/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.less
+++ /dev/null
@@ -1,81 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .multiple-select{
- position: relative;
- width: 100%;
-
- .selectBox{
- cursor: pointer;
- position: relative;
- border: 1px solid @o;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- line-height: 30px;
- height: 30px;
- padding-left: 10px;
- padding-right: 10px;
-
- &.open::after{
- content: '';
- .arrow_up;
- display: block;
- position: absolute;
- top: 12px;
- right: 4px;
- }
- &.closed::after{
- content: '';
- .arrow_down;
- display: block;
- position: absolute;
- top: 12px;
- right: 4px;
- }
- &.disabled{
- cursor: default;
- background: #CCCCCC;
- }
-
- }
-
- .checkboxes{
- z-index: 99999;
- padding-left: 8px;
- padding-right: 8px;
- position: absolute;
- top: 30px;
- width: 100%;
- background: white;
-
- display: block;
- border: 1px #dadada solid;
-
- label{
- cursor: pointer;
- display: block;
- }
- input{
- cursor: pointer;
- }
-
-
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.tpl.html b/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.tpl.html
deleted file mode 100644
index e55e844c..00000000
--- a/ecomp-portal-FE/client/app/directives/multiple-select/multiple-select.tpl.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
- <div class="dropdown-container" style="height:30px;">
- <div class="right_arrow_down" style="left:185px"></div>
- <div class="multiple-select">
- <div class="selectBox"
- ng-click="isDisabled || showCheckboxes()"
- title="{{getTitle()}}"
- ng-bind="getTitle()"
- ng-class="{open: isExpanded, closed: !isExpanded, disabled: isDisabled}"></div>
-
- <div class="checkboxes" ng-show="isExpanded">
- <div ng-repeat="item in ngModel">
- <label>
- <input type="checkbox" ng-model="item[valueAttr]" ng-change="onCheckboxClicked()">
- {{item[nameAttr]}}
- </label>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/directives/right-click-menu/right-click-menu.directive.js b/ecomp-portal-FE/client/app/directives/right-click-menu/right-click-menu.directive.js
deleted file mode 100644
index 358cc56f..00000000
--- a/ecomp-portal-FE/client/app/directives/right-click-menu/right-click-menu.directive.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-angular.module('ecompApp').directive( "contextMenu", function($compile){
- contextMenu = {};
- contextMenu.restrict = "AE";
- contextMenu.link = function( lScope, lElem, lAttr ){
- lElem.on("contextmenu", function (e) {
- e.preventDefault();
- lElem.append( $compile( lScope[ lAttr.contextMenu ])(lScope) );
- $("#contextmenu-node").css("left", e.clientX);
- $("#contextmenu-node").css("top", e.clientY);
- });
- lElem.on("mouseleave", function(e){
- console.log("Leaved the div");
- if($("#contextmenu-node") )
- $("#contextmenu-node").remove();
- });
- };
- return contextMenu;
-});
diff --git a/ecomp-portal-FE/client/app/directives/right-click/ng-right-click-directive.js b/ecomp-portal-FE/client/app/directives/right-click/ng-right-click-directive.js
deleted file mode 100644
index 075ea3ac..00000000
--- a/ecomp-portal-FE/client/app/directives/right-click/ng-right-click-directive.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-angular.module('ecompApp').
- directive('ngRightClick', function($parse) {
- return function(scope, element, attrs)
- {
- var fn = $parse(attrs.ngRightClick);
- element.bind('contextmenu', function(event) {
- scope.$apply(function() {
- event.preventDefault();
- fn(scope, {$event:event});
- });
- });
- };
- });
diff --git a/ecomp-portal-FE/client/app/directives/right-menu/right-menu.directive.js b/ecomp-portal-FE/client/app/directives/right-menu/right-menu.directive.js
deleted file mode 100644
index b778ce7b..00000000
--- a/ecomp-portal-FE/client/app/directives/right-menu/right-menu.directive.js
+++ /dev/null
@@ -1,140 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-/**
- * Created by nnaffar on 1/28/16.
- */
-(function () {
- class RightMenu {
- constructor($rootScope,$window,$log,userbarUpdateService) {
- this.templateUrl = 'app/directives/right-menu/right-menu.tpl.html';
- this.restrict = 'AE';
- this.$rootScope = $rootScope;
- this.userbarUpdateService = userbarUpdateService;
- this.$window = $window;
- this.$log = $log;
- this.link = this._link.bind(this);
- this.scope = {
- userList :'='
- }
- }
-
-
-
- _link(scope) {
- let init = () => {
- scope.isOpen = true;
- scope.rightSideToggleBtn = 'Collapse';
-
- scope.openInNewTab = (url) => {
- if(url == "self") {
- alert("Cannot chat with self!");
- } else {
- var win = window.open(url, '_blank');
- setCookie(url.split("chat_id=")[1], 'source', 1);
- //window.localStorage.setItem(url.split("chat_id=")[1],'source');
- win.focus();
- }
- };
-
- };
-
- function setCookie(cname,cvalue,exdays) {
- var d = new Date();
- d.setTime(d.getTime() + (exdays*24*60*60*1000));
- var expires = "expires=" + d.toGMTString();
- document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
- }
-
- function getCookie(cname) {
- var name = cname + "=";
- var decodedCookie = decodeURIComponent(document.cookie);
- var ca = decodedCookie.split(';');
- for(var i = 0; i < ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') {
- c = c.substring(1);
- }
- if (c.indexOf(name) == 0) {
- return c.substring(name.length, c.length);
- }
- }
- return "";
- }
-
-
-
- init();
-
- /***Getting the list of the users***/
- scope.toggleSidebar = () => {
- scope.isOpen = !scope.isOpen;
- if(scope.isOpen){
- scope.rightSideToggleBtn = 'Collapse';
- }else{
- scope.rightSideToggleBtn = 'Expand';
- }
- };
-
- scope.isBrowserInternetExplorer = false;
- scope.browserName = bowser.name;
-
- if (bowser.msie || bowser.msedge) {
- scope.isBrowserInternetExplorer = true;
- } else {
- scope.isBrowserInternetExplorer = false;
- }
-
-
-
-
- scope.calculateUserBarHeight = () => {
- var footerOff = $('#online-userbar').offset().top;
- var headOff = $('#footer').offset().top;
- var userbarHeight= parseInt($(".online-user-container").css('height'),10);
- var defaultOffSet = 45;
- // console.log(headOff - footerOff-defaultOffSet);
- $(".online-user-container").css({
- "height" : headOff - footerOff-defaultOffSet
- });
- };
-
- let log = this.$log;
-
- this.userbarUpdateService.getWidthThresholdRightMenu().then(function (res) {
- if (res.status=="ERROR") {
- log.error('userbarUpdateService: failed to get window width threshold for collapsing right menu; please make sure "window_width_threshold_right_menu" is specified in system.properties file.');
- } else {
- var rightMenuCollapseWidthThreshold = parseInt(res.response.windowWidth);
- if ($(window).width()<rightMenuCollapseWidthThreshold) {
- scope.toggleSidebar();
- }
- }
- })['catch'](function (err) {
- log.error('LeftMenu Controller:: getWidthThresholdLeftMenu() failed: ' + err);
- });
-
- angular.element(this.$window).bind('resize', function(){
- scope.calculateUserBarHeight();
- });
- }
-
- }
- angular.module('ecompApp').directive('rightMenu', ($rootScope,$window,$log,userbarUpdateService) => new RightMenu($rootScope,$window,$log,userbarUpdateService));
-})();
diff --git a/ecomp-portal-FE/client/app/directives/right-menu/right-menu.less b/ecomp-portal-FE/client/app/directives/right-menu/right-menu.less
deleted file mode 100644
index bc23b614..00000000
--- a/ecomp-portal-FE/client/app/directives/right-menu/right-menu.less
+++ /dev/null
@@ -1,178 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- /**
- * Created by nnaffar on 1/28/16.
- */
-@sidebar-width: 200px;
-@transition-duration: 0.25s;
-@overlayer-opacity: 0.65;
-
-
-.close-button {
- //width: @sidebar-width;
- .a24r;
- //.bg_u;
- font-size: 3em;
- line-height: 18px;
- position: absolute;
- cursor: pointer;
- vertical-align: middle;
- top: @second-level-top;
- left: 0;
- -webkit-font-smoothing: antialiased;
- height: 53px;
- z-index: 101;
- //box-shadow: 0 4px 5px rgba(0, 0, 0, .2);
-
-}
-.ecomp-right-sidebar-container{
- position: absolute;
- display: block;
- left: 0;
- z-index: 100;
- transition: left @transition-duration;
- margin-top: -15px;
-
- .ecomp-sidebar-main {
- //background-color: ;
- position: absolute;
- margin-top: 65px;
- width: @sidebar-width;
- height: 100vh;
- .bg_u;//white for 1610
- //.bg_w; // gray for 1702
- box-shadow: 0 4px 5px rgba(0, 0, 0, .2);
-
- padding-right: 10px;
- padding-left: 10px;
-
- .accordion-container{
- margin-top: 45px;
- }
- .att-accordion-font{
- font-size: .875rem;
- color: #666;
- display: inline-block;
- font-family: arial;
-
- }
-
- .att-accordion-active{
- color: #199DDF !important;
- }
-
- .sub-item{
- .att-accordion-font;
- cursor: pointer;
- height: 37px;
- line-height: 37px;
- padding-left: 20px;
- padding-bottom: 10px;
- vertical-align: middle;
- width: 100%;
- }
- .sub-item:hover{
- .att-accordion-active;
- }
-
- .parent-item{
- .att-accordion-font;
- border-bottom: 1px solid #bbb;
- cursor: pointer;
- height: 37px;
- line-height: 37px;
- padding-bottom: 10px;
- vertical-align: middle;
- width: 100%;
- }
- .parent-item:hover{
- .att-accordion-active;
- }
-
- }
-}
-
-.open-sidebar {
- right: 0;
- transition: right .25s ease-in-out;
- -moz-transition: right .25s ease-in-out;
- -webkit-transition: right .25s ease-in-out;
-}
-
-.close-sidebar {
- right: -@sidebar-width;
- transition: right .25s ease-in-out;
- -moz-transition: right .25s ease-in-out;
- -webkit-transition: right .25s ease-in-out;
-}
-
-.content-overlayed {
- position: fixed;
- top: 110px;
- right: 0;
- bottom: 0;
- left: 0;
- background: none repeat scroll 0 0 rgb(242, 242, 242);
- z-index: 9999;
-}
-.fade-animation{
- opacity: @overlayer-opacity;
- transition: opacity @transition-duration ease-in-out;
-}
-.fade-animation.ng-hide {
- opacity:0;
- transition: opacity @transition-duration ease-in-out;
-}
-
-.activeUserIcon {
- transition: all .2s ease-in-out;
- display: block;
- margin-left: auto; margin-right: auto; height:55px; width:55px; border-radius: 50%;
-
-}
-.activeUserIcon:hover { transform: scale(1.5); }
-
-.ecomp-right-sidebar-toggle{
- position: absolute;
- top: 400px;
- right: 35px;
-}
-
-.open-sidebar-toggle {
- // right: 0;
- transition: right .25s ease-in-out;
- -moz-transition: right .25s ease-in-out;
- -webkit-transition: right .25s ease-in-out;
-}
-
-.close-sidebar-toggle {
- right: -36px;
- transition: right .25s ease-in-out;
- -moz-transition: right .25s ease-in-out;
- -webkit-transition: right .25s ease-in-out;
-}
-
-.ecomp-right-sidebar-title{
- font-family: arial;
- font-size: 14px;
- color: #ef6f00;
- margin-bottom:20px;
- text-align: center;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/directives/right-menu/right-menu.tpl.html b/ecomp-portal-FE/client/app/directives/right-menu/right-menu.tpl.html
deleted file mode 100644
index 39eb7087..00000000
--- a/ecomp-portal-FE/client/app/directives/right-menu/right-menu.tpl.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div id="ecomp-right-sidebar-container" class="ecomp-sidebar-container" ng-class="isOpen ? 'open-sidebar': 'close-sidebar'">
- <div id="online-userbar" class="ecomp-sidebar-main" style="right: 0px; width:75px; padding:0px;" >
- <div class="online-user-container" id="online-user-container" style="margin-top:45px; overflow-y:auto; overflow-x:hidden">
- <div class="ecomp-right-sidebar-title">Online Users</div>
- <div ng-repeat="user in userList">
- <div class="child-row" style="height:85px;" ui-sref-active="att-accordion-active">
- <div>
- <a href="javascript:void(0)" ng-click="openInNewTab(user.linkQ)" ><img class="activeUserIcon" ng-src="assets/images/photo.png" alt="User Link" ></a>
- <div style="font-family: Arial; font-size:10px; text-align: center;" >{{user.userId}}</div>
- </div>
- </div>
- </div>
- </div>
- </div>
-</div>
-<div class="ecomp-right-sidebar-toggle" ng-class="isOpen ? 'open-sidebar-toggle': 'close-sidebar-toggle'">
- <a href="javascript:void(0)" ng-click="toggleSidebar()" style="transform: rotate(-90deg); position:relative; z-index:5" att-button btn-type="primary" size="small" att-accessibility-click="13,32">
- <span class="ion-chevron-down" ng-show="isOpen"></span>
- <span class="ion-chevron-up" ng-hide="isOpen"><span style="font-family: arial">Users</span></span>
- </a>
-</div>
diff --git a/ecomp-portal-FE/client/app/directives/scroll-top/scroll-top.directive.js b/ecomp-portal-FE/client/app/directives/scroll-top/scroll-top.directive.js
deleted file mode 100644
index 148660b5..00000000
--- a/ecomp-portal-FE/client/app/directives/scroll-top/scroll-top.directive.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-angular.module('ecompApp')
- .directive('scrollTop', function () {
- return {
- restrict: 'A',
- scope: {api: '=scrollTop'},
- link: function (scope, element) {
- scope.api = scope.api || {};
- scope.api.scrollTop = function() {
- element.animate({
- scrollTop : 0
- }, 500);
- };
- }
- };
- });
diff --git a/ecomp-portal-FE/client/app/directives/search-users/search-users.controller.js b/ecomp-portal-FE/client/app/directives/search-users/search-users.controller.js
deleted file mode 100644
index 649b3ab2..00000000
--- a/ecomp-portal-FE/client/app/directives/search-users/search-users.controller.js
+++ /dev/null
@@ -1,161 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-(function () {
- class SearchUsersCtrl {
-
- constructor($log, usersService,adminsService, $scope,confirmBoxService) {
-
- $scope.UserSearchsIsNull=false;
- $scope.userExist = false;
- this.scrollApi = {};//scrollTop directive
-
- this.showAddUser = false;
- this.showSearch = true;
- this.newUser ={
- firstName:'',
- lastName:'',
- emailAddress:'',
-
- middleName:'',
- loginId:'',
- loginPwd:'',
- loginPwdCheck:''
- };
-
- let activeRequests = [];
- let clearReq = (req) => {
- activeRequests.splice(activeRequests.indexOf(req), 1);
- };
-
- this.showAddUserSection = () => {
- this.showAddUser = true;
- this.showSearch = false;
- }
-
- this.addNewUserFun = () => {
- if (this.newUser.loginId =='' || this.newUser.loginPwd == '' || this.newUser.firstName == '' || this.newUser.lastName =='' || this.newUser.emailAddress ==''||this.newUser.loginPwd ==''){
- var warningMsg = "Please enter a value for all fields marked with *.";
- confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
- return;
- } else if (this.newUser.loginPwd != this.newUser.loginPwdCheck) {
- var warningMsg = "Passwords do not match, please try again.";
- confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
- return;
- }
- else {
- // check password length complexity.
- var warningMsg = adminsService.isComplexPassword(this.newUser.loginPwd);
- if (warningMsg != null) {
- confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
- return;
- }
- } // password
-
- adminsService.addNewUser(this.newUser,'Yes').then(res=> {
-
- if(res.message == 'Record already exist'){
-
- this.showAddUser = true;
- this.showSearch = false;
- $scope.userExist = true;
-
- }else{
-
- $scope.userExist = false;
- this.selectedUser = this.newUser;
- this.selectedUser.orgUserId = this.newUser.loginId;
- this.searchUsersResults = [];
- this.searchUsersResults.push(this.newUser);
- this.showAddUser = false;
- this.showSearch = true;
- this.newUser ={
- firstName:'',
- lastName:'',
- emailAdress:'',
- middleName:'',
- loginId:'',
- loginPwd:'',
- loginPwdCheck:''
- };
- this.searchUserString ='';
- $scope.UserSearchsIsNull = false;
- }
-
-
- }).catch(err=> {
- $log.error('adminsService: addNewUser error:: ', err);
- // $scope.errMsg=err;
- confirmBoxService.showInformation('Add New User failed: ' + err);
-
- }).finally(() => {
- //this.isLoadingTable = false;
-
- });
- }
-
- this.searchUsers = () => {
- this.isLoading = true;
- if(this.searchUsersInProgress){
- return;
- }
- this.selectedUser = null;
- this.searchUsersInProgress = true;
- this.searchUsersResults = null;
-
- let searchUsersReq = usersService.searchUsers(this.searchUserString);
- activeRequests.push(searchUsersReq);
- searchUsersReq.promise().then(usersList => {
- $log.debug('searchUsers found the following users: ', JSON.stringify(usersList));
- this.searchUsersResults = usersList;
- $scope.UserSearchsIsNull=false;
- }).catch(err => {
- $log.error('SearchUsersCtrl.searchUsers: ' + err);
- $scope.UserSearchsIsNull=true;
- }).finally(() => {
- this.scrollApi.scrollTop();
- this.searchUsersInProgress = false;
- clearReq(searchUsersReq);
- this.isLoading = false;
- });
- };
-
- let init = () => {
- this.isLoading = false;
- this.searchUsersInProgress = false;
- };
-
- this.setSelectedUser = user => {
- this.selectedUser = user;
- };
-
- init();
-
- $scope.$on('$destroy', () => {
- activeRequests.forEach(req => {
- req.cancel();
- });
- });
- }
- }
- SearchUsersCtrl.$inject = ['$log', 'usersService','adminsService', '$scope','confirmBoxService'];
- angular.module('ecompApp').controller('SearchUsersCtrl', SearchUsersCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/directives/search-users/search-users.controller.spec.js b/ecomp-portal-FE/client/app/directives/search-users/search-users.controller.spec.js
deleted file mode 100644
index 96f5b0df..00000000
--- a/ecomp-portal-FE/client/app/directives/search-users/search-users.controller.spec.js
+++ /dev/null
@@ -1,176 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-//'use strict';
-//
-//describe('Controller: NewAdminCtrl ', () => {
-// beforeEach(module('ecompApp'));
-//
-// //destroy $http default cache before starting to prevent the error 'default cache already exists'
-// beforeEach(inject((_CacheFactory_)=> {
-// _CacheFactory_.destroyAll();
-// }));
-//
-//
-// let newCtrl, $controller, $q, $rootScope, $log;
-//
-// beforeEach(inject((_$controller_, _$q_, _$rootScope_, _$log_)=> {
-// [$controller, $q, $rootScope, $log] = [_$controller_, _$q_, _$rootScope_, _$log_];
-// }));
-//
-// let deferredUsersList, deferredAdminAppsRoles, deferredUpdateRolesRes;
-// let usersServiceMock, adminsServiceMock;
-// beforeEach(()=> {
-// [deferredUsersList, deferredAdminAppsRoles, deferredUpdateRolesRes] = [$q.defer(), $q.defer(), $q.defer()];
-//
-// //usersServiceMock = jasmine.createSpyObj('usersServiceMock', ['searchUsers']);
-// usersServiceMock = {
-// searchUsers: () => {
-// var promise = () => {return deferredUsersList.promise};
-// var cancel = jasmine.createSpy();
-// return {
-// promise: promise,
-// cancel: cancel
-// }
-// }
-// };
-//
-// adminsServiceMock = jasmine.createSpyObj('adminsServiceMock', ['getAdminAppsRoles', 'updateAdminAppsRoles']);
-//
-// //usersServiceMock.searchUsers.and.returnValue(deferredUsersList.promise);
-// adminsServiceMock.getAdminAppsRoles.and.returnValue(deferredAdminAppsRoles.promise);
-// adminsServiceMock.updateAdminAppsRoles.and.returnValue(deferredUpdateRolesRes.promise);
-//
-// newCtrl = $controller('NewAdminModalCtrl', {
-// $log: $log,
-// usersService: usersServiceMock,
-// adminsService: adminsServiceMock,
-// $scope: $rootScope
-// });
-// });
-//
-// it('should init default values when loading the controller', ()=> {
-// //expect(newCtrl.searchUsersInProgress).toBe(false);
-// expect(newCtrl.dialogState).toBe(1);
-// expect(newCtrl.selectedUser).toBe(null);
-// });
-//
-// it('should populate retrieved users when search users service returns a list ', ()=> {
-// //spyOn(usersServiceMock, 'searchUsers');
-// let usersListRes = [{user: 1}, {user: 2}];
-// newCtrl.searchUserString = 'some user name';
-// deferredUsersList.resolve(usersListRes);
-// newCtrl.searchUsers();
-// $rootScope.$apply();
-//
-// //expect(usersServiceMock.searchUsers).toHaveBeenCalledWith(newCtrl.searchUserString);
-// expect(newCtrl.searchUsersResults).toEqual(usersListRes);
-// expect(newCtrl.searchUsersInProgress).toBe(false);
-// });
-//
-// it('should log the error when search users fails', ()=> {
-// spyOn($log, 'error');
-// deferredUsersList.reject('oh snap!');
-// newCtrl.searchUsers();
-// $rootScope.$apply();
-// expect($log.error).toHaveBeenCalled();
-// });
-//
-// it('should populate admin apps roles and move to the next screen when adminsService.getAdminAppsRoles succeeded', ()=> {
-// let userApps = {appsRoles: [{id: 1, isAdmin: false}, {id: 2, isAdmin: true}]};
-// deferredAdminAppsRoles.resolve(userApps);
-//
-// newCtrl.searchUsersInProgress = false;
-// newCtrl.selectedUser = {userId: 'userId'};
-//
-// newCtrl.getAdminAppsRoles();
-// $rootScope.$apply();
-//
-// expect(adminsServiceMock.getAdminAppsRoles).toHaveBeenCalledWith(newCtrl.selectedUser.userId);
-// expect(newCtrl.adminAppsRoles).toEqual(userApps.appsRoles);
-// expect(newCtrl.dialogState).toBe(2);
-// });
-//
-// it('should log the error when adminsService.getAdminAppsRoles fails', ()=> {
-// spyOn($log, 'error');
-// deferredAdminAppsRoles.reject('some error');
-//
-// newCtrl.searchUsersInProgress = false;
-// newCtrl.selectedUser = {userId: 'userId'};
-//
-// newCtrl.getAdminAppsRoles();
-// $rootScope.$apply();
-//
-// expect($log.error).toHaveBeenCalled();
-// });
-// it('should log the error when trying to getAdminAppsRoles without selecting user ', ()=> {
-// spyOn($log, 'error');
-//
-// newCtrl.searchUsersInProgress = false;
-// newCtrl.selectedUser = null;
-//
-// newCtrl.getAdminAppsRoles();
-// $rootScope.$apply();
-//
-// expect($log.error).toHaveBeenCalled();
-// });
-// //it('should setSelectedUser when choosing user', ()=> {
-// //
-// //});
-// //it('should set isAdmin as false when removing app from the administrated apps list', ()=> {
-// //});
-// it('should set isAdmin as true when adding app via the dropdown menu', ()=> {
-// newCtrl.adminAppsRoles = [{id: 1, isAdmin: false},{id: 2, isAdmin: true}];
-// //simulate UI change
-// $rootScope.$apply('newAdmin.selectedNewApp = null');
-// $rootScope.$apply('newAdmin.selectedNewApp = {id: 1, isAdmin: true}');
-//
-// expect(newCtrl.adminAppsRoles[0].isAdmin).toBe(true);
-// expect(newCtrl.selectedNewApp).toBe(null);
-// });
-//
-// it('should close the modal when updating apps roles succeeded', ()=> {
-// $rootScope.closeThisDialog = () => {};
-// spyOn($rootScope,'closeThisDialog');
-//
-// newCtrl.selectedUser = {userId: 'userId'};
-// newCtrl.adminAppsRoles = [{id: 1}];
-//
-// deferredUpdateRolesRes.resolve();
-// newCtrl.updateAdminAppsRoles();
-// $rootScope.$apply();
-//
-// expect(adminsServiceMock.updateAdminAppsRoles).toHaveBeenCalledWith({userId: newCtrl.selectedUser.userId, appsRoles: newCtrl.adminAppsRoles});
-// expect($rootScope.closeThisDialog).toHaveBeenCalled();
-// });
-// it('should log the error when updating apps roles fails', ()=> {
-// newCtrl.selectedUser = {userId: 'userId'};
-// newCtrl.adminAppsRoles = [{id: 1}];
-//
-// spyOn($log,'error');
-// deferredUpdateRolesRes.reject();
-// newCtrl.updateAdminAppsRoles();
-// $rootScope.$apply();
-// expect($log.error).toHaveBeenCalled();
-// });
-// //it('should display the add admin dropdown when clicking the add button', ()=> {
-// //});
-//
-//});
diff --git a/ecomp-portal-FE/client/app/directives/search-users/search-users.directive.js b/ecomp-portal-FE/client/app/directives/search-users/search-users.directive.js
deleted file mode 100644
index 4e5809f9..00000000
--- a/ecomp-portal-FE/client/app/directives/search-users/search-users.directive.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-angular.module('ecompApp')
- .directive('searchUsers', function () {
- return {
- restrict: 'E',
- templateUrl: 'app/directives/search-users/search-users.tpl.html',
- controller: 'SearchUsersCtrl',
- controllerAs: 'searchUsers',
- bindToController: true,
- scope: {
- selectedUser: '=',
- searchTitle: '@'
- }
- };
- });
diff --git a/ecomp-portal-FE/client/app/directives/search-users/search-users.less b/ecomp-portal-FE/client/app/directives/search-users/search-users.less
deleted file mode 100644
index 9c6de2b4..00000000
--- a/ecomp-portal-FE/client/app/directives/search-users/search-users.less
+++ /dev/null
@@ -1,154 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .search-users-directive{
- .title {
- .n18r;
- border-bottom: @a 3px solid;
-
- }
-
- .add-user-section{
- margin-top:0px;
- margin-left:10px;
- }
-
- .input-text-new-user {
- font-style: italic;
- padding: 7px 10px;
- width: 200px !important;
- display: inline-block;
- position: relative;
- margin-bottom: 10px;
- border-radius: 6px;
- border: 1px solid #d8d8d8;
- height: 32px;
- border-color: slategrey !important;
- }
-
- .input-new-user-div{
-
- margin-left:10px;
- }
-
- .add-user-button {
- cursor: pointer;
- float:right;
- width: 120px;
-
- margin-left : 5px;
-
- .btn-blue;
-
- line-height: 32px;
- height: 29px;
- text-align: center;
- vertical-align: middle;
- line-height: 28px;
-
- &::before {
- .ico_add_user;
- content: '\f211';
- font-family: "Ionicons";
- vertical-align: middle;
- display: inline-block;
- margin-right: 8px;
- line-height: 16px;
- }
- }
-
- .main {
- margin: 16px;
- .search-instructions {
- .n14r;
- margin-bottom: 8px;
- }
- .search {
- .input-field {
- display: inline-block;
- width: 250px;
- height: 30px;
- }
- .search-button {
- .btn-blue;
- width: 90px;
- display: inline-block;
- float: right;
- }
- }
-
- .search-results {
- margin-top: 10px;
- .results-title {
- .n14r;
- margin-bottom: 8px;
- }
-
- .results-container {
- height: 208px;
- overflow-y: auto;
- .user {
- padding-left: 10px;
- padding-top: 6px;
- height: 48px;
-
- border-top: 1px solid @p;
- border-right: 1px solid @p;
- border-left: 1px solid @p;
-
- &:last-child {
- border-bottom: 1px solid @p;
- }
-
- cursor: pointer;
- &:hover {
- background-color: @v;
- }
-
- &.selected {
- background-color: @v;
- }
-
- .main-name {
- .n14r;
-
- }
- .sub-job-title {
- .p13r;
-
- }
- }
-
- }
-
- }
- .error-text {
- margin-top: 25px;
- font-weight: 400;
- font-size: 16px;
- text-align: left;
- color: @err;
- }
-
- .no-user-found {
- margin-top: 16px;
- .n14r;
- }
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/directives/search-users/search-users.tpl.html b/ecomp-portal-FE/client/app/directives/search-users/search-users.tpl.html
deleted file mode 100644
index 6c275693..00000000
--- a/ecomp-portal-FE/client/app/directives/search-users/search-users.tpl.html
+++ /dev/null
@@ -1,144 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="search-users-directive">
- <form name="searchUsersForm" novalidate>
- <div class="title" ng-bind="searchUsers.searchTitle"></div>
- <div class="main">
- <div ng-if="searchUsers.showSearch">
- <div class="search-instructions">Enter first name, last name or User ID</div>
- <div class="search">
- <input id="input-user-search"
- class="input-field"
- autocomplete="off"
- type="text"
- name="searchString"
- placeholder="Search"
- ng-model="searchUsers.searchUserString"
- ng-keyup="$event.keyCode===13 && searchUsersForm.searchString.$valid && searchUsers.searchUsers()"
- pattern="[a-zA-Z0-9-'\s]{1,}"
- maxlength="80"
- required="true" auto-focus tabindex="0"/>
-
- <div id="Create-New-User-button" class="add-user-button" ng-click="searchUsers.showAddUserSection()">New User</div>
- <div id="button-search-users"
- class="search-button"
- tabindex="2"
- ng-class="{disabled: searchUsersForm.searchString.$invalid || searchUsers.searchUsersInProgress}"
- ng-click="searchUsersForm.searchString.$valid && searchUsers.searchUsers()">
- Search
- </div>
-
- </div>
-
- <span class="ecomp-spinner" ng-show="searchUsers.isLoading"></span>
- <div ng-show="UserSearchsIsNull===false">
- <div class="search-results"
- ng-show="!searchUsers.isLoading
- && searchUsers.searchUsersResults
- && searchUsers.searchUsersResults.length">
- <div id="search-results" ng-show="UserSearchsIsNull===false"
- class="results-title"
- ng-bind="'Showing ' + searchUsers.searchUsersResults.length + ' results'"></div>
- <div class="results-container" scroll-top="searchUsers.scrollApi">
- <div id="search-result-{{$index}}"
- class="user"
- ng-repeat="user in (searchUsers.searchUsersResults | orderBy:['firstName','lastName','orgUserId']) | limitTo: 100 track by $index"
- ng-click="searchUsers.setSelectedUser(user)"
- ng-class="{selected: user.orgUserId === searchUsers.selectedUser.orgUserId}">
- <div id="main-name-{{$index}}" class="main-name">
- <span id="result-first-name-{{$index}}" ng-bind="::user.firstName"></span>
- <span id="result-last-name-{{$index}}" ng-bind="::user.lastName"></span>
- <span id="result-uuid-{{$index}}" ng-bind="::user.orgUserId"></span></div>
- <div id="job-title-{{$index}}" class="sub-job-title" ng-bind="::user.jobTitle"></div>
- <br/>
- </div>
- </div>
- </div>
- </div>
-
- <div class="error-text"
- id="user-search-error-403"
- ng-show="UserSearchsIsNull===true">
- No match found.
- </div>
-
- <div id="no-user-found"
- class="no-user-found"
- ng-show="searchUsers.searchUsersResults && searchUsers.searchUsersResults.length===0 && !searchUsers.searchUsersInProgress">
- No users found
- </div>
- </div>
-
-
- <div id="addWidget" class="add-user-section" ng-if="searchUsers.showAddUser">
- <div>
- <div class="input-new-user-div" >
- <div class="">*First Name</div>
- <input class="input-text-new-user" type="text" ng-model="searchUsers.newUser.firstName"/>
- </div>
- <div class="input-new-user-div" >
- <div class="">Middle Name</div>
- <input class="input-text-new-user" type="text" ng-model="searchUsers.newUser.middleName"/>
- </div>
- <div class="input-new-user-div" >
- <div class="">*Last Name</div>
- <input class="input-text-new-user" type="text" ng-model="searchUsers.newUser.lastName"/>
- </div>
- <div class="input-new-user-div" >
- <div class="">*Email Address ID</div>
- <input class="input-text-new-user" type="text" ng-model="searchUsers.newUser.emailAddress"/>
- </div>
- <div class="input-new-user-div" >
- <div class="">*Login ID</div>
- <input class="input-text-new-user" type="text" ng-model="searchUsers.newUser.loginId"/>
- </div>
- <div class="input-new-user-div" >
- <div class="">*Login Password</div>
- <input class="input-text-new-user" type="password" ng-model="searchUsers.newUser.loginPwd"/>
- </div>
- <div class="input-new-user-div" >
- <div class="">*Confirm Login Password</div>
- <input class="input-text-new-user" type="password" ng-model="searchUsers.newUser.loginPwdCheck"/>
- </div>
- <div ng-show="searchUsers.newUser.loginPwdCheck.length>=searchUsers.newUser.loginPwd.length&&searchUsers.newUser.loginPwdCheck.length>0&&searchUsers.newUser.loginPwd!=searchUsers.newUser.loginPwdCheck"
- style="color: #cf2a2a; font-size: 12px;">
- <small
- style="position: absolute; margin-top: -6px;">The passwords do not match. Try again.
- </small>
- </div>
- <div ng-show="userExist==true"
- style="color: #cf2a2a; font-size: 12px;">
- <small
- style="position: absolute; margin-top: -6px;">User with same loginId already exists. Try again.
- </small>
- </div>
- </div>
- <div style="height:50px;">
- <a style="margin-right:10px;margin-top:20px;margin-bottom:5px" att-button btn-type="primary" class="button button--primary" size="small" ng-click="searchUsers.addNewUserFun()">Add New User</a>
- </div>
- </div>
-
-
- </div>
-
- </div>
-
- </form>
-</div>
diff --git a/ecomp-portal-FE/client/app/filters/elipsis/elipsis.filter.js b/ecomp-portal-FE/client/app/filters/elipsis/elipsis.filter.js
deleted file mode 100644
index 310649b3..00000000
--- a/ecomp-portal-FE/client/app/filters/elipsis/elipsis.filter.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-angular.module('ecompApp')
- .filter('elipsis', () => {
- return (val, limit) => {
- if (!val) {
- return val;
- }
- limit = parseInt(limit);
-
- if (!limit || val.length <= limit) {
- return val;
- }
-
- val = val.substr(0, limit);
-
- return val + '...';
- }
- });
diff --git a/ecomp-portal-FE/client/app/filters/elipsis/elipsis.filter.spec.js b/ecomp-portal-FE/client/app/filters/elipsis/elipsis.filter.spec.js
deleted file mode 100644
index a9dc7836..00000000
--- a/ecomp-portal-FE/client/app/filters/elipsis/elipsis.filter.spec.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-describe('Filter: elipsis', function () {
- 'use strict';
- let filter;
-
- beforeEach(function () {
- module('ecompApp');
- });
-
- beforeEach(inject((_CacheFactory_)=> {
- _CacheFactory_.destroyAll();
-
- }));
-
- it('should trim the text and return it with ... when the text length is greater than the limit"', inject(function (_$filter_) {
- filter = _$filter_;
- // given
- let text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
- et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
- ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
- nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim
- id est laborum`;
- let limit = 50;
-
- var result = filter('elipsis')(text, limit);
-
- expect(result).toBe(text.substr(0, 50) + '...');
- }));
-
- it("should return the exact string where there's no limit", inject(function (_$filter_) {
- filter = _$filter_;
-
- let text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore';
-
- let result = filter('elipsis')(text);
-
- expect(result).toEqual(text);
- }));
-
-});
diff --git a/ecomp-portal-FE/client/app/filters/trusted-url/trusted-url.filter.js b/ecomp-portal-FE/client/app/filters/trusted-url/trusted-url.filter.js
deleted file mode 100644
index a6e70d69..00000000
--- a/ecomp-portal-FE/client/app/filters/trusted-url/trusted-url.filter.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-angular.module('ecompApp')
- .filter('trusted', function($sce){
- return function(url) {
- return $sce.trustAsResourceUrl(url);
- };
- });
diff --git a/ecomp-portal-FE/client/app/router.js b/ecomp-portal-FE/client/app/router.js
deleted file mode 100644
index 8af5f171..00000000
--- a/ecomp-portal-FE/client/app/router.js
+++ /dev/null
@@ -1,528 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-angular.module('ecompApp')
- .config($stateProvider => {
- $stateProvider
- .state('root', {
- abstract: true,
- views: {
- 'header@': {
- templateUrl: 'app/views/header/header.tpl.html',
- controller: 'HeaderCtrl',
- controllerAs: 'header'
- },
- 'tabbar@': {
- templateUrl: 'app/views/tabs/tabs.tpl.html',
- controller: 'TabsCtrl',
- controllerAs: 'tabsHome'
- },
- 'sidebar@':{
- templateUrl: 'app/views/sidebar/sidebar.tpl.html',
- controller: 'SidebarCtrl',
- controllerAs: 'sidebar'
- },
- 'userbar@':{
- templateUrl: 'app/views/userbar/userbar.tpl.html',
- controller: 'UserbarCtrl',
- controllerAs: 'userbar'
- },
- 'footer@': {
- templateUrl: 'app/views/footer/footer.tpl.html',
- controller: 'FooterCtrl',
- controllerAs: 'footer' }
- }
-// }).state('root.applicationsHome', {
-// url: '/applicationsHome',
-// views: {
-// 'content@': {
-// templateUrl: 'app/views/home/applications-home/applications-home.tpl.html',
-// controller: 'ApplicationsHomeCtrl',
-// controllerAs: 'applicationsHome'
-// }
-// }
- }).state('root.applicationsHome', {
- url: '/applicationsHome',
- views: {
- 'content@': {
- templateUrl: 'app/views/dashboard/dashboard.tpl.html',
- controller: 'DashboardCtrl',
- controllerAs: 'dashboard'
- }
- }
- }).state('root.appCatalog', {
- url: '/appCatalog',
- views: {
- 'content@': {
- templateUrl: 'app/views/catalog/catalog.tpl.html',
- controller: 'CatalogCtrl',
- controllerAs: 'catalog'
- }
- }
- }).state('root.widgetsHome', {
- url: '/widgetsHome',
- views: {
- 'content@': {
- templateUrl: 'app/views/home/widgets-home/widgets-home.tpl.html',
- controller: 'WidgetsHomeCtrl',
- controllerAs: 'widgetsHome'
- }
- }
- }).state('root.admins', {
- url: '/admins',
- views: {
- 'content@': {
- templateUrl: 'app/views/admins/admins.tpl.html',
- controller: 'AdminsCtrl',
- controllerAs: 'admins'
- }
- }
- }).state('root.users', {
- url: '/users',
- views: {
- 'content@': {
- templateUrl: 'app/views/users/users.tpl.html',
- controller: 'UsersCtrl',
- controllerAs: 'users'
- }
- }
- }).state('root.applications', {
- url: '/applications',
- views: {
- 'content@': {
- templateUrl: 'app/views/applications/applications.tpl.html',
- controller: 'ApplicationsCtrl',
- controllerAs: 'apps'
- }
- }
- }).state('root.functionalMenu', {
- url: '/functionalMenu',
- views: {
- 'content@': {
- templateUrl: 'app/views/functionalMenu/functionalMenu.tpl.html',
- controller: 'FunctionalMenuCtrl',
- controllerAs: 'functionalMenu'
- }
- }
- }).state('root.getAccess', {
- url: '/getAccess',
- params: {
- appName: null,
- },
- views: {
- 'content@': {
- templateUrl: 'app/views/support/get-access/get-access.tpl.html',
- controller: 'GetAccessCtrl',
- controllerAs: 'access'
- }
- }
- }).state('root.contactUs', {
- url: '/contactUs',
- views: {
- 'content@': {
- templateUrl: 'app/views/support/contact-us/contact-us.tpl.html',
- controller: 'ContactUsCtrl',
- controllerAs: 'contact'
- }
- }
- }).state('root.widgets', {
- url: '/widgets',
- views: {
- 'content@': {
- templateUrl: 'app/views/widgets/widgets.tpl.html',
- controller: 'WidgetsCtrl',
- controllerAs: 'widgets'
- }
- }
- }).state('root.portalAdmins', {
- url: '/portalAdmins',
- views: {
- 'content@': {
- templateUrl: 'app/views/portal-admin/portal-admin.tpl.html',
- controller: 'PortalAdminsCtrl',
- controllerAs: 'portalAdmin'
- }
- }
- }).state('root.error404', {
- url: '/error404',
- views: {
- 'content@': {
- templateUrl: 'app/views/errors/error.404.tpl.html',
- controller: 'Error404Ctrl',
- controllerAs: 'error404'
- }
- }
- }).state('noUserError', {
- url: '/noUserError',
- views: {
- 'error@': {
- templateUrl: 'app/views/errors/error.tpl.html',
- controller: 'ErrorCtrl',
- controllerAs: 'error'
- }
- }
- }).state('unKnownError', {
- url: '/unKnownError',
- views: {
- 'error@': {
- templateUrl: 'app/views/errors/error.tpl.html',
- controller: 'ErrorCtrl',
- controllerAs: 'error'
- }
- }
- }).state('root.kpidash', {
- url: '/kpidash',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DCAE/DCAE_KPI.html',
- controller: 'DCAE_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_DCAE', {
- //url: '/kpidash_DCAE',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DCAE/DCAE_KPI.html',
- controller: 'DCAE_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_DCAE_KPI', {
- //url: '/kpidash_DCAE_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DCAE/DCAE_KPI.html',
- controller: 'DCAE_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_DCAE_UserDefinedKPI', {
- //url: '/kpidash_DCAE_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DCAE/DCAE_UserDefinedKPI.html',
- controller: 'DCAE_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_DCAE_Metrics', {
- //url: '/kpidash_DCAE_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DCAE/DCAE_Metrics.html',
- controller: 'DCAE_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_ECOMP', {
- //url: '/kpidash_ECOMP',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ECOMP.html',
- controller: 'ECOMP_Ctrl'
- }
- }
- }).state('root.kpidash_AAI', {
- //url: '/kpidash_AAI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/AAI/AAI_KPI.html',
- controller: 'AAI_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_AAI_KPI', {
- //url: '/kpidash_AAI_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/AAI/AAI_KPI.html',
- controller: 'AAI_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_AAI_UserDefinedKPI', {
- //url: '/kpidash_AAI_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/AAI/AAI_UserDefinedKPI.html',
- controller: 'AAI_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_AAI_Metrics', {
- //url: '/kpidash_AAI_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/AAI/AAI_Metrics.html',
- controller: 'AAI_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_APPC', {
- //url: '/kpidash_APPC',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/APPC/APPC_KPI.html',
- controller: 'APPC_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_APPC_KPI', {
- //url: '/kpidash_APPC_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/APPC/APPC_KPI.html',
- controller: 'APPC_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_APPC_UserDefinedKPI', {
- //url: '/kpidash_APPC_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/APPC/APPC_UserDefinedKPI.html',
- controller: 'APPC_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_APPC_Metrics', {
- //url: '/kpidash_APPC_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/APPC/APPC_Metrics.html',
- controller: 'APPC_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_ASDC', {
- //url: '/kpidash_ASDC',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ASDC/ASDC_KPI.html',
- controller: 'ASDC_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_ASDC_KPI', {
- //url: '/kpidash_ASDC_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ASDC/ASDC_KPI.html',
- controller: 'ASDC_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_ASDC_UserDefinedKPI', {
- //url: '/kpidash_ASDC_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ASDC/ASDC_UserDefinedKPI.html',
- controller: 'ASDC_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_ASDC_Metrics', {
- //url: '/kpidash_ASDC_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ASDC/ASDC_Metrics.html',
- controller: 'ASDC_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_Closedloop', {
- //url: '/kpidash_Closedloop',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/Closedloop/Closedloop_KPI.html',
- controller: 'Closedloop_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_Closedloop_KPI', {
- //url: '/kpidash_Closedloop_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/Closedloop/Closedloop_KPI.html',
- controller: 'Closedloop_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_Closedloop_UserDefinedKPI', {
- //url: '/kpidash_Closedloop_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/Closedloop/Closedloop_UserDefinedKPI.html',
- controller: 'Closedloop_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_Closedloop_Metrics', {
- //url: '/kpidash_Closedloop_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/Closedloop/Closedloop_Metrics.html',
- controller: 'Closedloop_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_DMaaP', {
- //url: '/kpidash_DMaaP',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DMaaP/DMaaP_KPI.html',
- controller: 'DMaaP_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_DMaaP_KPI', {
- //url: '/kpidash_DMaaP_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DMaaP/DMaaP_KPI.html',
- controller: 'DMaaP_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_DMaaP_UserDefinedKPI', {
- //url: '/kpidash_DMaaP_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DMaaP/DMaaP_UserDefinedKPI.html',
- controller: 'DMaaP_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_DMaaP_Metrics', {
- //url: '/kpidash_DMaaP_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/DMaaP/DMaaP_Metrics.html',
- controller: 'DMaaP_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_ECOMP_Portal', {
- //url: '/kpidash_ECOMP_Portal',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_KPI.html',
- controller: 'ECOMP_Portal_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_ECOMP_Portal_KPI', {
- //url: '/kpidash_ECOMP_Portal_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_KPI.html',
- controller: 'ECOMP_Portal_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_ECOMP_Portal_UserDefinedKPI', {
- //url: '/kpidash_ECOMP_Portal_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_UserDefinedKPI.html',
- controller: 'ECOMP_Portal_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_ECOMP_Portal_Metrics', {
- //url: '/kpidash_ECOMP_Portal_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_Metrics.html',
- controller: 'ECOMP_Portal_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_InfrastructurePortal', {
- //url: '/kpidash_InfrastructurePortal',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_KPI.html',
- controller: 'InfrastructurePortal_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_InfrastructurePortal_KPI', {
- //url: '/kpidash_InfrastructurePortal_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_KPI.html',
- controller: 'InfrastructurePortal_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_InfrastructurePortal_UserDefinedKPI', {
- //url: '/kpidash_InfrastructurePortal_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_UserDefinedKPI.html',
- controller: 'InfrastructurePortal_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_InfrastructurePortal_Metrics', {
- //url: '/kpidash_InfrastructurePortal_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_Metrics.html',
- controller: 'InfrastructurePortal_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_MSO', {
- //url: '/kpidash_MSO',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/MSO/MSO_KPI.html',
- controller: 'MSO_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_MSO_KPI', {
- //url: '/kpidash_MSO_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/MSO/MSO_KPI.html',
- controller: 'MSO_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_MSO_UserDefinedKPI', {
- //url: '/kpidash_MSO_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/MSO/MSO_UserDefinedKPI.html',
- controller: 'MSO_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_MSO_Metrics', {
- //url: '/kpidash_MSO_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/MSO/MSO_Metrics.html',
- controller: 'MSO_Ctrl_Metrics'
- }
- }
- }).state('root.kpidash_Policy', {
- //url: '/kpidash_Policy',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/Policy/Policy_KPI.html',
- controller: 'Policy_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_Policy_KPI', {
- //url: '/kpidash_Policy_KPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/Policy/Policy_KPI.html',
- controller: 'Policy_Ctrl_KPI'
- }
- }
- }).state('root.kpidash_Policy_UserDefinedKPI', {
- //url: '/kpidash_Policy_UserDefinedKPI',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/Policy/Policy_UserDefinedKPI.html',
- controller: 'Policy_Ctrl_UserDefinedKPI'
- }
- }
- }).state('root.kpidash_Policy_Metrics', {
- //url: '/kpidash_Policy_Metrics',
- views: {
- 'content@': {
- templateUrl: 'kpi-dashboard/views/Policy/Policy_Metrics.html',
- controller: 'Policy_Ctrl_Metrics'
- }
- }
- });
- });
diff --git a/ecomp-portal-FE/client/app/services/admins/admins.service.js b/ecomp-portal-FE/client/app/services/admins/admins.service.js
deleted file mode 100644
index ee742af8..00000000
--- a/ecomp-portal-FE/client/app/services/admins/admins.service.js
+++ /dev/null
@@ -1,176 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-(function () {
- class AdminsService {
- constructor($q, $log, $http, conf,uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
-
- getAccountAdmins() {
- let deferred = this.$q.defer();
- this.$log.info('AdminsService::get all applications admins list');
- this.$http({
- method: "GET",
- cache: false,
- url: this.conf.api.accountAdmins,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("AdminsService::getAccountAdmins Failed");
- } else {
- this.$log.info('AdminsService::getAccountAdmins Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
-
- return deferred.promise;
- }
-
- getAdminAppsRoles(orgUserId) {
- let deferred = this.$q.defer();
- this.$log.info('AdminsService::getAdminAppsRoles.adminAppsRoles');
-
- this.$http({
- method: "GET",
- url: this.conf.api.adminAppsRoles,
- params: {orgUserId: orgUserId},
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("AdminsService::getAdminAppsRoles.adminAppsRoles Failed");
- } else {
- this.$log.info('AdminsService::getAdminAppsRoles.adminAppsRoles Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
-
- return deferred.promise;
- }
-
- updateAdminAppsRoles(newAdminAppRoles) {
- let deferred = this.$q.defer();
- this.$log.info('AdminsService::updateAdminAppsRoles');
- this.$http({
- method: "PUT",
- url: this.conf.api.adminAppsRoles,
- data: newAdminAppRoles,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- deferred.resolve(res.data);
- })
- .catch( status => {
- deferred.reject(status);
- });
-
- return deferred.promise;
- }
-
- addNewUser(newUser,checkDuplicate) {
- // this.$log.info(newContactUs)
- let deferred = this.$q.defer();
- // this.$log.info('ContactUsService:: add Contact Us' + JSON.stringify(newContactUs));
-
- var newUserObj={
- firstName:newUser.firstName,
- middleInitial:newUser.middleName,
- lastName:newUser.lastName,
- email:newUser.emailAddress,
- loginId:newUser.loginId,
- loginPwd:newUser.loginPwd,
- };
- this.$http({
- url: this.conf.api.saveNewUser + "?isCheck=" + checkDuplicate,
- method: 'POST',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- },
- data: newUserObj
- }).then(res => {
- // this.$log.info('ContactUsService:: add Contact Us res' ,res);
- // If response comes back as a redirected HTML page which IS NOT a success
- if (res==null || Object.keys(res.data).length == 0 || res.data.message == 'failure') {
- deferred.reject("Add new User failed");
- this.$log.error('adminService:: add New User failed');
- } else {
- deferred.resolve(res.data);
- }
- }).catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- /**
- * Tests the specified password against complexity requirements.
- * Returns an explanation message if the test fails; null if it passes.
- */
- isComplexPassword(str) {
- let minLength = 8;
- let message = 'Password is too simple. Minimum length is '+ minLength + ', '
- + 'and it must use letters, digits and special characters.';
- if (str == null)
- return message;
-
- let hasLetter = false;
- let hasDigit = false;
- let hasSpecial = false;
- var code, i, len;
- for (i = 0, len = str.length; i < len; i++) {
- code = str.charCodeAt(i);
- if (code > 47 && code < 58) // numeric (0-9)
- hasDigit = true;
- else if ((code > 64 && code < 91) || (code > 96 && code < 123)) // A-Z, a-z
- hasLetter = true;
- else
- hasSpecial = true;
- } // for
-
- if (str.length < minLength || !hasLetter || !hasDigit || !hasSpecial)
- return message;
-
- // All is well.
- return null;
- }
-
- }
- AdminsService.$inject = ['$q', '$log', '$http', 'conf','uuid4'];
- angular.module('ecompApp').service('adminsService', AdminsService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/applications/applications.service.js b/ecomp-portal-FE/client/app/services/applications/applications.service.js
deleted file mode 100644
index 38cfd650..00000000
--- a/ecomp-portal-FE/client/app/services/applications/applications.service.js
+++ /dev/null
@@ -1,346 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class ApplicationsService {
- constructor($q, $log, $http, conf, uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
-
- getPersUserApps() {
- let deferred = this.$q.defer();
- // this.$log.info('ApplicationsService::getPersUserApps');
- this.$http.get(this.conf.api.persUserApps,
- {
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- // But don't declare an empty list to be an error.
- if (res == null || res.data == null) {
- deferred.reject("ApplicationsService::getPersUserApps Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getUserApps(){
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService::getUserApps');
- this.$http.get(this.conf.api.userApps,
- {
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ApplicationsService::getUserApps Failed");
- } else {
- this.$log.info('ApplicationsService::getUserApps Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
-
- return deferred.promise;
- }
-
- getAvailableApps() {
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService::getAvailableApps');
- this.$http(
- {
- method: "GET",
- url: this.conf.api.availableApps,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ApplicationsService::getAvailableApps Failed");
- } else {
- this.$log.info('ApplicationsService::getAvailableApps Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
-
- return deferred.promise;
- }
-
- getAdminApps(){
- let canceller = this.$q.defer();
- let isActive = false;
-
- let cancel = () => {
- if(isActive){
- this.$log.debug('ApplicationsService::getAdminApps: canceling the request');
- canceller.resolve();
- }
- };
-
- let promise = () => {
- isActive = true;
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService::getAdminApps: starting');
- this.$http({method: "GET",
- url: this.conf.api.adminApps,
- cache: false,
- timeout: canceller.promise,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- isActive = false;
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ApplicationsService::adminApps Failed");
- } else {
- this.$log.info('ApplicationsService::adminApps Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- isActive = false;
- deferred.reject(status);
- });
- return deferred.promise;
- };
-
- return {
- cancel: cancel,
- promise: promise
- };
- }
-
- getAppsForSuperAdminAndAccountAdmin(){
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService::getAppsForSuperAdminAndAccountAdmin');
- this.$http({method: "GET",
- url: this.conf.api.appsForSuperAdminAndAccountAdmin,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ApplicationsService::getAppsForSuperAdminAndAccountAdmin Failed");
- } else {
- this.$log.info('ApplicationsService::getAppsForSuperAdminAndAccountAdmin Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getAdminAppsSimpler(){
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService::getAdminApps');
- this.$http({method: "GET",
- url: this.conf.api.adminApps,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ApplicationsService::getAdminApps Failed");
- } else {
- this.$log.info('ApplicationsService::getAdminApps Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getOnboardingApps(){
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService::getOnboardingApps');
-
- this.$http.get(this.conf.api.onboardingApps,
- {
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ApplicationsService::getOnboardingApps Failed");
- } else {
- this.$log.info('ApplicationsService::getOnboardingApps Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
-
- return deferred.promise;
- }
-
- addOnboardingApp(newApp){
- let deferred = this.$q.defer();
- this.$log.info('applications-service::addOnboardingApp');
- this.$log.debug('applications-service::addOnboardingApp with:', newApp);
-
- this.$http({
- method: "POST",
- url: this.conf.api.onboardingApps,
- data: newApp,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ApplicationsService::addOnboardingApp Failed");
- } else {
- this.$log.info('ApplicationsService::addOnboardingApp Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- updateOnboardingApp(appData){
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService::addOnboardingApp');
- if(!appData.id){
- this.$log.error('ApplicationsService::addOnboardingApp: App id not found!');
- return deferred.reject('App id not found');
- }
-
- this.$http({
- method: "PUT",
- url: this.conf.api.onboardingApps,
- data: appData,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ApplicationsService::updateOnboardingApp Failed");
- } else {
- this.$log.info('ApplicationsService::updateOnboardingApp Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- deleteOnboardingApp(appId) {
- let deferred = this.$q.defer();
- let url = this.conf.api.onboardingApps + '/' + appId;
-
- this.$log.info('applications.service::deleteOnboardingApp' +appId);
-
- this.$http({
- method: "DELETE",
- url: url,
- cache: false,
- data:'',
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("applications.service::deleteOnboardingApp Failed");
- } else {
- this.$log.info('applications.service::deleteOnboardingApp succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- getTopMenuData(selectedApp) {
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService:getTopMenuData');
- this.$log.debug('ApplicationsService:getTopMenuData with:', selectedApp);
-
- }
-
- ping(){
- let deferred = this.$q.defer();
- this.$log.info('ApplicationsService::ping: ');
-
- this.$http.get(this.conf.api.ping,
- {
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .success( res => {
- if (Object.keys(res).length == 0) {
- deferred.reject("ApplicationsService::ping: Failed");
- } else {
- this.$log.info('ApplicationsService::ping: Succeeded');
- deferred.resolve(res);
- }
- })
- .error( status => {
- deferred.reject(status);
- });
-
- return deferred.promise;
- }
- }
- ApplicationsService.$inject = ['$q', '$log', '$http', 'conf','uuid4'];
- angular.module('ecompApp').service('applicationsService', ApplicationsService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/catalog/catalog.service.js b/ecomp-portal-FE/client/app/services/catalog/catalog.service.js
deleted file mode 100644
index 2ad594a2..00000000
--- a/ecomp-portal-FE/client/app/services/catalog/catalog.service.js
+++ /dev/null
@@ -1,95 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-(function () {
- class CatalogService {
-
- constructor($q, $log, $http, conf, uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
-
- getAppCatalog() {
- let deferred = this.$q.defer();
- this.$http(
- {
- method: "GET",
- url: this.conf.api.appCatalog,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- // Detect non-JSON
- if (res == null || res.data == null) {
- deferred.reject("CatalogService::getAppCatalog Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- this.$log.error('CatalogService:getAppCatalog failed: ' + status);
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- // Expects an object with fields matching model class AppCatalogSelection:
- // appId (number), select (boolean), pending (boolean).
- updateAppCatalog(appData) {
- let deferred = this.$q.defer();
- // Validate the request, maybe this is overkill
- if (appData == null || appData.appId == null || appData.select == null) {
- var msg = 'CatalogService::updateAppCatalog: field appId and/or select not found';
- this.$log.error(msg);
- return deferred.reject(msg);
- }
- this.$http({
- method: "PUT",
- url: this.conf.api.appCatalog,
- data: appData,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- // Detect non-JSON
- if (res == null || res.data == null) {
- deferred.reject("CatalogService::updateAppCatalog Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- this.$log.error('CatalogService:updateAppCatalog failed: ' + status);
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- }
-
- CatalogService.$inject = ['$q', '$log', '$http', 'conf','uuid4'];
- angular.module('ecompApp').service('catalogService', CatalogService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/confirm-box/confirm-box.service.js b/ecomp-portal-FE/client/app/services/confirm-box/confirm-box.service.js
deleted file mode 100644
index affc6d3f..00000000
--- a/ecomp-portal-FE/client/app/services/confirm-box/confirm-box.service.js
+++ /dev/null
@@ -1,153 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class ConfirmBoxService {
- constructor($q, $log, ngDialog) {
- this.$q = $q;
- this.$log = $log;
- this.ngDialog = ngDialog;
- }
-
- showInformation(message) {
- let deferred = this.$q.defer();
- this.ngDialog.open({
- templateUrl: 'app/views/confirmation-box/information-box.tpl.html',
- controller: 'ConfirmationBoxCtrl',
- controllerAs: 'confirmBox',
- className: 'confirm-box ngdialog-theme-default',
- showClose: false,
- data: {
- message: message
- }
- }).closePromise.then(confirmed => {
- deferred.resolve(confirmed.value);
- }).catch(err => {
- deferred.reject(err);
- });
- return deferred.promise;
- };
-
- confirm(message) {
- let deferred = this.$q.defer();
- this.ngDialog.open({
- templateUrl: 'app/views/confirmation-box/confirmation-box.tpl.html',
- controller: 'ConfirmationBoxCtrl',
- controllerAs: 'confirmBox',
- className: 'confirm-box ngdialog-theme-default',
- showClose: false,
- data: {
- message: message
- }
- }).closePromise.then(confirmed => {
- deferred.resolve(confirmed.value);
- }).catch(err => {
- deferred.reject(err);
- });
- return deferred.promise;
- };
-
-
- showDynamicInformation(message, templatePath, controller) {
- let deferred = this.$q.defer();
- this.ngDialog.open({
- templateUrl: templatePath,
- controller: controller,
- controllerAs: 'confirmBox',
- className: 'confirm-box ngdialog-theme-default',
- showClose: false,
- data: {
- message: message
- }
- }).closePromise.then(confirmed => {
- deferred.resolve(confirmed.value);
- }).catch(err => {
- deferred.reject(err);
- });
- return deferred.promise;
- };
-
- deleteItem(item) {
- let deferred = this.$q.defer();
- this.ngDialog.open({
- templateUrl: 'app/views/confirmation-box/confirmation-box.tpl.html',
- controller: 'ConfirmationBoxCtrl',
- controllerAs: 'confirmBox',
- className: 'confirm-box ngdialog-theme-default',
- showClose: false,
- data: {
- item: item,
- title: 'Functional Menu - Delete'
- }
- }).closePromise.then(confirmed => {
- deferred.resolve(confirmed.value);
- }).catch(err => {
- deferred.reject(err);
- });
- return deferred.promise;
- };
-
- moveMenuItem(message) {
- let deferred = this.$q.defer();
- this.ngDialog.open({
- templateUrl: 'app/views/confirmation-box/dragdrop-confirmation-box.tpl.html',
- controller: 'ConfirmationBoxCtrl',
- controllerAs: 'confirmBox',
- className: 'confirm-box ngdialog-theme-default',
- showClose: false,
- data: {
- message: message,
- title:'Functional Menu - Move'
- }
- }).closePromise.then(confirmed => {
- deferred.resolve(confirmed.value);
- }).catch(err => {
- deferred.reject(err);
- });
- return deferred.promise;
- };
-
- makeAdminChanges(message) {
- let deferred = this.$q.defer();
- this.ngDialog.open({
- templateUrl: 'app/views/confirmation-box/admin-confirmation-box.tpl.html',
- controller: 'ConfirmationBoxCtrl',
- controllerAs: 'confirmBox',
- className: 'confirm-box ngdialog-theme-default',
- showClose: false,
- data: {
- message: message,
- title: 'Admin Update'
- }
- }).closePromise.then(confirmed => {
- deferred.resolve(confirmed.value);
- }).catch(err => {
- deferred.reject(err);
- });
- return deferred.promise;
- };
-
-
- }
- ConfirmBoxService.$inject = ['$q', '$log', 'ngDialog'];
- angular.module('ecompApp').service('confirmBoxService', ConfirmBoxService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/contact-us/contact-us.service.js b/ecomp-portal-FE/client/app/services/contact-us/contact-us.service.js
deleted file mode 100644
index 241a12ab..00000000
--- a/ecomp-portal-FE/client/app/services/contact-us/contact-us.service.js
+++ /dev/null
@@ -1,247 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-/**
- * Created by robertlo on 10/10/2016.
- */
-'use strict';
-
-(function () {
- class ContactUsService {
- constructor($q, $log, $http, conf, uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
- getListOfApp() {
- // this.$log.info('ContactUsService::getListOfavailableApps: get all app list');
- let deferred = this.$q.defer();
- // this.$log.info('ContactUsService::getListOfavailableApps: ', this.conf.api.listOfApp);
- this.$http({
- method: "GET",
- url: this.conf.api.availableApps,
- cache: false
- }).then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- // this.$log.info('ContactUsService::getListOfavailableApps availableApps response: ', res);
- if (Object.keys(res).length == 0) {
- deferred.reject("ContactUsService::getListOfavailableApps: Failed");
- } else {
- // this.$log.debug('ContactUsService::getListOfavailableApps: Succeeded results: ', res);
- deferred.resolve(res);
- }
- }).catch( status => {
- this.$log.error('ContactUsService::getListOfavailableApps: query error: ',status);
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getContactUs() {
- let deferred = this.$q.defer();
- // this.$log.info('ContactUsService::get all Contact Us list');
- this.$http({
- url: this.conf.api.getContactUS,
- method: 'GET',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ContactUsService::getContactUs Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getAppsAndContacts() {
- let deferred = this.$q.defer();
- // this.$log.info('ContactUsService::getAppsAndContacts');
- this.$http({
- url: this.conf.api.getAppsAndContacts,
- method: 'GET',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ContactUsService::getAppsAndContacts Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getContactUSPortalDetails(){
- let deferred = this.$q.defer();
- // this.$log.info('ContactUsService::get all Contact Us Portal Details');
- this.$http({
- url: this.conf.api.getContactUSPortalDetails,
- method: 'GET',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ContactUsService::getContactUSPortalDetails Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getAppCategoryFunctions(){
- let deferred = this.$q.defer();
- // this.$log.info('ContactUsService::get all App Category Functions');
- this.$http({
- url: this.conf.api.getAppCategoryFunctions,
- method: 'GET',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ContactUsService::getAppCategoryFunctions Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- addContactUs(newContactUs) {
- // this.$log.info('ContactUsService::add a new Contact Us');
- // this.$log.info(newContactUs)
- let deferred = this.$q.defer();
- // this.$log.info('ContactUsService:: add Contact Us' + JSON.stringify(newContactUs));
-
- var contactUsObj={
- appId:newContactUs.app.value,
- appName:newContactUs.app.title,
- description:newContactUs.desc,
- contactName:newContactUs.name,
- contactEmail:newContactUs.email,
- url:newContactUs.url,
- };
- this.$http({
- url: this.conf.api.saveContactUS,
- method: 'POST',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- },
- data: contactUsObj
- }).then(res => {
- // this.$log.info('ContactUsService:: add Contact Us res' ,res);
- // If response comes back as a redirected HTML page which IS NOT a success
- if (res==null || Object.keys(res.data).length == 0 || res.data.message == 'failure') {
- deferred.reject("Add Contact Us failed");
- this.$log.error('ContactUsService:: add Contact Us failed');
- } else {
- deferred.resolve(res.data);
- }
- }).catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- modifyContactUs(contactUsObj) {
- // this.$log.info('ContactUsService::edit Contact Us',contactUsObj);
- let deferred = this.$q.defer();
- this.$http({
- url: this.conf.api.saveContactUS,
- method: 'POST',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- },
- data: contactUsObj
- }).then(res => {
- // this.$log.info('ContactUsService:: edit Contact Us res' ,res);
- // If response comes back as a redirected HTML page which IS NOT a success
- if (res==null || Object.keys(res.data).length == 0 || res.data.message == 'failure') {
- deferred.reject("Edit Contact Us failed");
- this.$log.error('ContactUsService:: edit Contact Us failed');
- } else {
- deferred.resolve(res.data);
- }
- }).catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- removeContactUs(id) {
- let deferred = this.$q.defer();
- let url = this.conf.api.deleteContactUS + '/' + id;
- // this.$log.info('ContactUsService:: remove Contact Us');
- this.$http({
- url: url,
- method: 'POST',
- cache: false,
- data: '',
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- // this.$log.info("ContactUsService::removeContactUs res",res);
- deferred.resolve(res.data);
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ContactUsService::removeContactUs Failed");
- } else {
- deferred.resolve(res.data);
- }
- }).catch(errRes => {
- deferred.reject(errRes);
- });
-
- return deferred.promise;
- }
- }
- ContactUsService.$inject = ['$q', '$log', '$http', 'conf', 'uuid4'];
- angular.module('ecompApp').service('contactUsService', ContactUsService)
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/services/dashboard/dashboard.service.js b/ecomp-portal-FE/client/app/services/dashboard/dashboard.service.js
deleted file mode 100644
index bc9c9cee..00000000
--- a/ecomp-portal-FE/client/app/services/dashboard/dashboard.service.js
+++ /dev/null
@@ -1,185 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-/**
- * Created by robertlo on 09/26/2016.
- */
-'use strict';
-
-(function () {
- class DashboardService {
- constructor($q, $log, $http, conf, uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.dashboardService = null;
- this.uuid = uuid;
- }
-
- getCommonWidgetData(widgetType) {
- // this.$log.info('ecomp::dashboard-service::getting news data');
- let deferred = this.$q.defer();
- let url = this.conf.api.commonWidget + '?resourceType=' + widgetType;
-
- this.$http({
- method: "GET",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- // this.$log.info('ecomp::dashboard-service::getting news data',res);
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0 || Object.keys(res.data.response) ==null || Object.keys(res.data.response.items) ==null) {
- deferred.reject("ecomp::dashboard-service::getNewsData Failed");
- } else {
- this.userProfile = res.data;
- // this.$log.info('ecomp::dashboard-service::getNewsData Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- saveCommonWidgetData(newData){
- let deferred = this.$q.defer();
- //this.$log.info('ecomp::dashboard-service::saveCommonWidgetData');
- //this.$log.debug('ecomp::dashboard-service::saveCommonWidgetData with:', newData);
-
- this.$http({
- method: "POST",
- url: this.conf.api.commonWidget,
- data: newData,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- // this.$log.info(res.data);
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ecomp::dashboard-service::saveCommonWidgetData Failed");
- } else {
- // this.$log.info('ecomp::dashboard-service::saveCommonWidgetData Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
-
-
- removeCommonWidgetData(widgetToRemove){
- let deferred = this.$q.defer();
- // this.$log.info('ecomp::dashboard-service::removeCommonWidgetData');
- // this.$log.debug('ecomp::dashboard-service::removeCommonWidgetData with:', widgetToRemove);
- this.$http({
- method: "POST",
- url: this.conf.api.deleteCommonWidget,
- data: widgetToRemove,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- // this.$log.info(res.data);
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ecomp::dashboard-service::saveCommonWidgetData Failed");
- } else {
- // this.$log.info('ecomp::dashboard-service::saveCommonWidgetData Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getSearchAllByStringResults(searchStr) {
- // this.$log.info('ecomp::getSearchAllByStringResults::getting search by string results');
- let deferred = this.$q.defer();
- let url = this.conf.api.getSearchAllByStringResults;
-
- this.$http({
- method: "GET",
- url : url,
- params : {
- 'searchString' : searchStr
- },
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ecomp::dashboard-service::getSearchAllByStringResults Failed");
- } else {
- //this.searchResults = res.data;
- // this.$log.info('ecomp::dashboard-service::getSearchAllByStringResults Succeeded');
- deferred.resolve(res.data.response);
- }
- }).catch( status => {
- this.$log.error('ecomp::getSearchAllByStringResults error');
- deferred.reject(status);
- });
- return deferred.promise;
-
- }
-
- getOnlineUserUpdateRate() {
- let deferred = this.$q.defer();
- let url = this.conf.api.onlineUserUpdateRate;
- this.$http({
- method: "GET",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ecomp::dashboard-service::getOnlineUserUpdateRate Failed");
- } else {
- this.$log.info('ecomp::dashboard-service::getOnlineUserUpdateRate Succeeded',res);
- deferred.resolve(res.data);
- }
- }).catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- }
-
- DashboardService.$inject = ['$q', '$log', '$http', 'conf', 'uuid4'];
- angular.module('ecompApp').service('dashboardService', DashboardService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/error-messages/error-messages.service.js b/ecomp-portal-FE/client/app/services/error-messages/error-messages.service.js
deleted file mode 100644
index 032fb803..00000000
--- a/ecomp-portal-FE/client/app/services/error-messages/error-messages.service.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-let errorMessageByCode = {1201: 'Value already exists'};
-angular.module('ecompApp').constant('errorMessageByCode', errorMessageByCode);
diff --git a/ecomp-portal-FE/client/app/services/functionalMenu/functionalMenu.service.js b/ecomp-portal-FE/client/app/services/functionalMenu/functionalMenu.service.js
deleted file mode 100644
index ec3bd387..00000000
--- a/ecomp-portal-FE/client/app/services/functionalMenu/functionalMenu.service.js
+++ /dev/null
@@ -1,253 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class FunctionalMenuService {
- constructor($q, $log, $http, conf,uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
-
-
- getManagedRolesMenu( appId )
- {
- let deferred = this.$q.defer();
- this.$log.info('FunctionalMenuService::getManagedRolesMenu');
- let url = this.conf.api.appRoles.replace(':appId', appId);
- this.$log.info("FunctionalMenuService::getManagedRolesMenu url: "+url);
-
- this.$http({
- method: "GET",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("functionalMenu.service::getManagedRolesMenu Failed");
- } else {
- this.$log.info('functionalMenu.service::getManagedRolesMenu succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getAvailableApplications()
- {
- let deferred = this.$q.defer();
- this.$log.info('FunctionalMenuService::getManagedRolesMenu:getAvailableApplications');
-
- this.$http({
- method: "GET",
-// url: this.conf.api.availableApps,
- url: this.conf.api.allAvailableApps,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("FunctionalMenuService::getManagedRolesMenu:getAvailableApplications Failed");
- } else {
- this.$log.info('FunctionalMenuService::getManagedRolesMenu:getAvailableApplications succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
- getMenuDetails( menuId )
- {
- let deferred = this.$q.defer();
- this.$log.info('FunctionalMenuService::getMenuDetails:getMenuDetails');
- let url = this.conf.api.functionalMenuItemDetails.replace(':menuId',menuId);
- this.$log.info("FunctionalMenuService::getMenuDetails url: "+url);
-
- this.$http({
- method: "GET",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("FunctionalMenuService::getMenuDetails:getMenuDetails Failed");
- } else {
- this.$log.info('FunctionalMenuService::getMenuDetails:getMenuDetails succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
-
- getManagedFunctionalMenu() {
- let deferred = this.$q.defer();
- this.$log.info('FunctionalMenuService::getMenuDetails:getManagedFunctionalMenu');
-
- this.$http({
- method: "GET",
- url: this.conf.api.functionalMenuForEditing,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("FunctionalMenuService::getManagedFunctionalMenu Failed");
- } else {
- this.$log.info('FunctionalMenuService::getManagedFunctionalMenu succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- regenerateFunctionalMenuAncestors() {
- let deferred = this.$q.defer();
- this.$log.info('FunctionalMenuService::regenerateFunctionalMenuAncestors');
-
- this.$http({
- method: "GET",
- url: this.conf.api.regenerateFunctionalMenuAncestors,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("FunctionalMenuService::regenerateFunctionalMenuAncestors Failed");
- } else {
- this.$log.info('FunctionalMenuService::regenerateFunctionalMenuAncestors succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- saveEditedMenuItem(menuData) {
- let deferred = this.$q.defer();
- this.$log.info('FunctionalMenuService::saveEditedMenuItem: ' + menuData);
-
- let url = this.conf.api.functionalMenuItem;
- this.$http({
- method: "PUT",
- url: url,
- cache: false,
- data: menuData,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("FunctionalMenuService::saveEditedMenuItem Failed");
- } else {
- this.$log.info('FunctionalMenuService::saveEditedMenuItem succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- saveMenuItem(menuData) {
- let deferred = this.$q.defer();
- this.$log.info('FunctionalMenuService::saveMenuItem: ' + JSON.stringify(menuData));
-
- let url = this.conf.api.functionalMenuItem;
- this.$http({
- method: "POST",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- },
- data: menuData
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("FunctionalMenuService::saveMenuItem: Failed");
- } else {
- this.$log.info('FunctionalMenuService::saveMenuItem: succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
-
- deleteMenuItem(menuId) {
- let deferred = this.$q.defer();
- let url = this.conf.api.functionalMenuItem + '/' + menuId;
-
- this.$log.info('FunctionalMenuService::deleteMenuItem: ' +menuId);
-
- this.$http({
- method: "DELETE",
- url: url,
- cache: false,
- data:'',
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("FunctionalMenuService::deleteMenuItem Failed");
- } else {
- this.$log.info('FunctionalMenuService::deleteMenuItem succeeded: ');
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
-}
- FunctionalMenuService.$inject = ['$q', '$log', '$http', 'conf','uuid4'];
- angular.module('ecompApp').service('functionalMenuService', FunctionalMenuService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/global-constants/global-constants.js b/ecomp-portal-FE/client/app/services/global-constants/global-constants.js
deleted file mode 100644
index fa13dae4..00000000
--- a/ecomp-portal-FE/client/app/services/global-constants/global-constants.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-angular.module('ecompApp').value('ECOMP_URL_REGEX', /^((?:https?\:\/\/|ftp?\:\/\/)?(w{3}.)?(?:[-a-z0-9]+\.)*[-a-z0-9]+.*)[^-_.]$/i);
diff --git a/ecomp-portal-FE/client/app/services/kpi-dashboard/kpi-dashboard.service.js b/ecomp-portal-FE/client/app/services/kpi-dashboard/kpi-dashboard.service.js
deleted file mode 100644
index ff9b66b8..00000000
--- a/ecomp-portal-FE/client/app/services/kpi-dashboard/kpi-dashboard.service.js
+++ /dev/null
@@ -1,185 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class KpiDashboardService {
- constructor($q, $log, $http, conf, uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- this.applicationsHomeUrl = 'kpidash';
- }
-
- kpiApiCall(ApiName) {
- let deferred = this.$q.defer();
- this.$log.info('KpiDashboardService::kpiApiCall: '+ApiName);
- this.$http({
- method: 'GET',
- url: this.conf.api[ApiName],
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- this.$log.debug("KpiDashboardService::kpiApiCall: response successfully retrieved");
- if (Object.keys(res.data).length == 0) {
- deferred.reject("KpiDashboardService::kpiApiCall: "+ ApiName+ " Failed");
- } else {
- deferred.resolve(res);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getKpiUserStoriesStats(){
- return this.kpiApiCall("getKpiDashUserStoriesStats");
- }
- getKpiUserApiStats(){
- return this.kpiApiCall("getKpiDashUserApiStats");
- }
- getKpiLocStats(){
- return this.kpiApiCall("getKpiDashLocStats");
- }
- getKpiLocStatsCat(){
- return this.kpiApiCall("getKpiDashLocStatsCat");
- }
- getKpiServiceSupported(){
- return this.kpiApiCall("getKpiDashServiceSupported");
- }
- getKpiPublishedDelivered(){
- return this.kpiApiCall("getKpiDashPublishedDelivered");
- }
- getKpiFeedStats(){
- return this.kpiApiCall("getKpiDashFeedStats");
- }
- getKpiUserApis(){
- return this.kpiApiCall("getKpiDashUserApis");
- }
- getKpiGeoMapUrl(){
- return this.kpiApiCall("getKpiDashGeoMapUrl");
- }
- getKpiRCloudAUrl(){
- return this.kpiApiCall("getKpiDashRCloudAUrl");
- }
- getKpiGeoMapApiUrl(){
- return this.kpiApiCall("getKpiDashGeoMapApiUrl");
- }
-
- getToplevelgTabs1() {
- var toplevelgTabs1=[{
- title : 'eCOMP',
- id : 'ECOMP',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_ECOMP'
- }]
- return toplevelgTabs1;
- }
-
- getToplevelgTabs2() {
- var toplevelgTabs2 = [ {
- title : 'A&AI',
- id : 'A&AI',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_AAI'
- }, {
- title : 'APP-C',
- id : 'APP-C',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_APPC'
- }, {
- title : 'ASDC',
- id : 'ASDC',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_ASDC'
- }, {
- title : 'DCAE',
- id : 'DCAE',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_DCAE'
- }, {
- title : 'OpenECOMP Portal',
- id : 'OpenECOMP Portal',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_ECOMP_Portal'
- }, {
- title : 'i-Portal',
- id : 'i-Portal',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_InfrastructurePortal'
- }, {
- title : 'MSO',
- id : 'MSO',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_MSO'
- }, {
- title : 'Policy',
- id : 'Policy',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_Policy'
- }];
- return toplevelgTabs2;
- }
-
- getToplevelgTabs3() {
- var toplevelgTabs3 = [ {
- title : 'Closed Loop',
- id : 'Closedloop',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_Closedloop'
- }, {
- title : 'eDMaaP',
- id : 'DMaaP',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_DMaaP'
- } ];
- return toplevelgTabs3;
- }
-
- getGenericTabs(activeTab) {
- var gTabs = [ {
- title : 'KPI',
- id : 'KPI',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_'+activeTab+'_KPI'
- }, {
- title : 'User Defined KPI',
- id : 'User Defined KPI',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_'+activeTab+'_UserDefinedKPI'
- }, {
- title : 'Metrics',
- id : 'Metrics',
- url : this.applicationsHomeUrl,
- state : 'root.kpidash_'+activeTab+'_Metrics'
- } ];
- return gTabs;
- }
- }
-
- KpiDashboardService.$inject = ['$q', '$log', '$http', 'conf', 'uuid4'];
- angular.module('ecompApp').service('KpiDashboardService', KpiDashboardService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/manifest/manifest.service.js b/ecomp-portal-FE/client/app/services/manifest/manifest.service.js
deleted file mode 100644
index 4341a138..00000000
--- a/ecomp-portal-FE/client/app/services/manifest/manifest.service.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-/**
- * Created by mlittle on 9/9/2016.
- */
-'use strict';
-
-(function () {
- class ManifestService {
- constructor($q, $log, $http, conf, uuid, utilsService) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- this.utilsService = utilsService;
- }
-
- getManifest() {
- let deferred = this.$q.defer();
- this.$http({
- method: "GET",
- url: this.conf.api.getManifest,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (this.utilsService.isValidJSON(res)== false) {
- this.$log.error('ManifestService.getManifest failed: ');
- deferred.reject('ManifestService.getManifest: response.data null or not object');
- } else {
- // this.$log.info('ManifestService.getManifest Succeeded');
- // this.$log.debug('ManifestService.getManifest: ', JSON.stringify(res))
- deferred.resolve(res.data);
- }
- }).catch( status => {
- this.$log.error('ManifestService.getManifest failed: ' + status.data);
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- }
- ManifestService.$inject = ['$q', '$log', '$http', 'conf', 'uuid4', 'utilsService'];
- angular.module('ecompApp').service('manifestService', ManifestService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/menus/menus.service.js b/ecomp-portal-FE/client/app/services/menus/menus.service.js
deleted file mode 100644
index 19bb385b..00000000
--- a/ecomp-portal-FE/client/app/services/menus/menus.service.js
+++ /dev/null
@@ -1,145 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class MenusService {
- constructor($q, $log, $http, conf, uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
-
- GetFunctionalMenuForUser() {
- let deferred = this.$q.defer();
- // this.$log.info('MenusService::GetFunctionalMenuForUser via REST API');
- this.$http({
- method: "GET",
- url: this.conf.api.functionalMenuForAuthUser,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("MenusService::GetFunctionalMenuForUser Failed");
- } else {
- this.$log.info('MenusService::GetFunctionalMenuForUser success:');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- this.$log.info('MenusService::rejection:' + status);
- deferred.reject(status);
- });
-
-
- return deferred.promise;
- }
-
- getFavoriteItems() {
- let deferred = this.$q.defer();
- // this.$log.info('MenusService::getFavoriteItems via REST API');
- this.$http({
- method: "GET",
- url: this.conf.api.getFavoriteItems +"?date="+new Date().getTime(),
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("MenusService::getFavoriteItems Failed");
- } else {
- this.$log.info('MenusService::getFavoriteItems success:');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- this.$log.error('MenusService::getFavoriteItems rejection:' + status);
- deferred.reject(status);
- });
-
-
- return deferred.promise;
- }
-
- setFavoriteItem(menuId) {
- let deferred = this.$q.defer();
- // this.$log.info('menus-service.service::setFavoriteItem via REST API' + menuId);
- let url = this.conf.api.setFavoriteItem;
- this.$http({
- method: "POST",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate(),
- 'Content-Type': 'application/json'
- },
- data: menuId
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("MenusService::setFavoriteItem Failed");
- } else {
- this.$log.info('MenusService::setFavoriteItem success:');
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- this.$log.error('MenusService::setFavoriteItem rejection:' + JSON.stringify(errRes));
- deferred.reject(errRes);
- });
-
- return deferred.promise;
- }
-
- removeFavoriteItem(menuId) {
- let deferred = this.$q.defer();
- // this.$log.info('menus-service.service::removeFavoriteItem via REST API');
- let url = this.conf.api.removeFavoriteItem.replace(':menuId', menuId);
- this.$http({
- method: "DELETE",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("MenusService::removeFavoriteItem Failed");
- } else {
- // this.$log.info('MenusService::removeFavoriteItem success:');
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- this.$log.error('MenusService::removeFavoriteItem rejection:' + status);
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- }
- MenusService.$inject = ['$q', '$log', '$http', 'conf', 'uuid4'];
- angular.module('ecompApp').service('menusService', MenusService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/portal-admins/portal-admins.service.js b/ecomp-portal-FE/client/app/services/portal-admins/portal-admins.service.js
deleted file mode 100644
index 683c0f02..00000000
--- a/ecomp-portal-FE/client/app/services/portal-admins/portal-admins.service.js
+++ /dev/null
@@ -1,107 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class PortalAdminsService {
- constructor($q, $log, $http, conf, uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
-
- getPortalAdmins() {
- let deferred = this.$q.defer();
- this.$log.info('PortalAdminsService::get all portal admins list');
- this.$http({
- url: this.conf.api.portalAdmins,
- method: 'GET',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("PortalAdminsService::getPortalAdmins Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- addPortalAdmin(userData) {
- let deferred = this.$q.defer();
- this.$log.info('PortalAdminsService:: add Portal Admin' + JSON.stringify(userData));
- this.$http({
- url: this.conf.api.portalAdmin,
- method: 'POST',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- },
- data: userData
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("PortalAdminsService::addPortalAdmin Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- removePortalAdmin(userId) {
- let deferred = this.$q.defer();
- let url = this.conf.api.portalAdmin + '/' + userId;
- this.$log.info('PortalAdminsService:: remove Portal Admin');
- this.$http({
- url: url,
- method: 'DELETE',
- cache: false,
- data: '',
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("PortalAdminsService::removePortalAdmin Failed");
- } else {
- deferred.resolve(res.data);
- }
- }).catch(errRes => {
- deferred.reject(errRes);
- });
-
- return deferred.promise;
- }
- }
- PortalAdminsService.$inject = ['$q', '$log', '$http', 'conf', 'uuid4'];
- angular.module('ecompApp').service('portalAdminsService', PortalAdminsService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/support/getAccess/get-access.service.js b/ecomp-portal-FE/client/app/services/support/getAccess/get-access.service.js
deleted file mode 100644
index 24b6945d..00000000
--- a/ecomp-portal-FE/client/app/services/support/getAccess/get-access.service.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class GetAccessService {
- constructor($q, $log, $http, conf,uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
- getListOfApp(searchStr) {
- //this.$log.info('GetAccessService::getListOfApp: get all app list');
- let deferred = this.$q.defer();
- //this.$log.info('GetAccessService::getListOfApp: searchStr', searchStr);
- //this.$log.info('GetAccessService::getListOfApp: ', this.conf.api.listOfApp);
- this.$http({
- method: "GET",
- url: this.conf.api.listOfApp,
- params: {search:searchStr},
- cache: false
- }).then( res => {
- // this.$log.info('GetAccessService::getListOfApp response: ', res);
- if (Object.keys(res).length == 0) {
- deferred.reject("GetAccessService::getListOfApp: Failed");
- } else {
- // this.$log.debug('GetAccessService::getListOfApp: query results: ', res);
- // this.$log.info('GetAccessService::getListOfApp Succeeded');
- deferred.resolve(res);
- }
- }).catch( status => {
- this.$log.error('GetAccessService::getListOfApp: query error: ',status);
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- }
- GetAccessService.$inject = ['$q', '$log', '$http', 'conf','uuid4'];
- angular.module('ecompApp').service('getAccessService', GetAccessService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/support/session/session.service.js b/ecomp-portal-FE/client/app/services/support/session/session.service.js
deleted file mode 100644
index d18c42a4..00000000
--- a/ecomp-portal-FE/client/app/services/support/session/session.service.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class SessionService {
- constructor($q, $log, $http, conf,uuid,$sce) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- this.$sce = $sce;
- }
-
- logout(appStr) {
- this.$log.info('SessionService::logout from App');
- let deferred = this.$q.defer();
- this.$log.info('SessionService appStr: ', appStr);
-
- var eaccessPattern = '\https?\:\/\/[^/]+/[^/]+/[^/]+';
- var standardPattern = '\https?\:\/\/[^/]+/[^/]+';
-
- if(appStr.includes("e-access")) {
- standardPattern = eaccessPattern;
- }
-
- var contextUrl = appStr.match(new RegExp(standardPattern));
- var logoutUrl = contextUrl + "/logout.htm" ;
- this.$sce.trustAsResourceUrl(logoutUrl);
- console.log('logoutUrl ' + logoutUrl);
- jQuery('#reg-logout-div').append("<iframe style='display:none' src='" + logoutUrl + "' />");
- }
-
- }
- SessionService.$inject = ['$q', '$log', '$http', 'conf','uuid4','$sce'];
- angular.module('ecompApp').service('sessionService', SessionService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/userProfile/userProfile.service.js b/ecomp-portal-FE/client/app/services/userProfile/userProfile.service.js
deleted file mode 100644
index 001e9ae4..00000000
--- a/ecomp-portal-FE/client/app/services/userProfile/userProfile.service.js
+++ /dev/null
@@ -1,240 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class UserProfileService {
- constructor($q, $log, $http, conf, uuid,$rootScope) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.userProfile = null;
- this.uuid = uuid;
- this.$rootScope = $rootScope;
- }
-
-
- broadCastUpdatedUserInfo() {
- this.$rootScope.$broadcast('handleUpdateUserInfo');
- }
-
- refreshUserBusinessCard(){
- this.$rootScope.$broadcast('refreshUserBusinessCard');
- }
-
- getUserProfile() {
- this.$log.info('UserProfileService::getUserProfile: get logged user profile');
- let deferred = this.$q.defer();
- let url = this.conf.api.userProfile;
- // if(this.userProfile){
- // return deferred.resolve(this.userProfile);
- // }
- this.$http({
- method: "GET",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- // this.$log.debug('Profile-service::getUserProfile: res: ', res);
- if (Object.keys(res.data).length == 0) {
- deferred.reject('UserProfileService::getUserProfile unexpected result: ', res);
- } else {
- this.userProfile = res.data;
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getSortedUserIdCombination(user1, user2) {
-
- var combination = "";
- if(user1<user2) {
- combination = user1+"-"+user2;
- } else if (user1>user2){
- combination = user2+"-"+user1;
- } else {
-
- return "self";
- }
-
- var collaborateUrl = 'opencollaboration?chat_id=' + combination ;
-
- return collaborateUrl;
-
-
-
- }
-
- getCurrentUserProfile(loginId) {
- this.$log.info('UserProfileService::getCurrentUserProfile: get logged user profile');
- let deferred = this.$q.defer();
- let url = this.conf.api.currentUserProfile + '/' + loginId;
- // if(this.userProfile){
- // return deferred.resolve(this.userProfile);
- // }
- this.$http({
- method: "GET",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- // this.$log.debug('Profile-service::getUserProfile: res: ', res);
- if (Object.keys(res.data).length == 0) {
- deferred.reject('UserProfileService::CurrentgetUserProfile unexpected result: ', res);
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- updateRemoteUserProfile(loginId,appId) {
- this.$log.info('UserProfileService::updateRemoteUserProfile: update remote user profile');
- let deferred = this.$q.defer();
- let url = this.conf.api.updateRemoteUserProfile + "?loginId=" + loginId + '&appId=' + appId;
- // if(this.userProfile){
- // return deferred.resolve(this.userProfile);
- // }
- this.$http({
- method: "GET",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- })
- .then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- // this.$log.debug('Profile-service::getUserProfile: res: ', res);
- if (Object.keys(res.data).length == 0) {
- deferred.reject('UserProfileService::update remote user profile unexpected result: ', res);
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getFunctionalMenuStaticInfo() {
- this.$log.info('UserProfileService::getFunctionalMenuStaticInfo: get logged user profile');
- let deferred = this.$q.defer();
- let url = this.conf.api.functionalMenuStaticInfo;
-
- this.$http({
- method: "GET",
- url : url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("UserProfileService::getFunctionalMenuStaticInfo Failed");
- } else {
- this.userProfile = res.data;
- this.$log.info('UserProfileService::getFunctionalMenuStaticInfo Succeeded');
- deferred.resolve(res.data);
- }
- }).catch( status => {
- this.$log.error('UserProfileService::getFunctionalMenuStaticInfo error');
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- resetFunctionalMenuStaticInfo() {
- this.$log.info('UserProfileService::getFunctionalMenuStaticInfo: get logged user profile');
- let deferred = this.$q.defer();
- let url = this.conf.api.resetFunctionalMenuStaticInfo;
-
- this.$http({
- method: "GET",
- url : url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (res.data.message != "success") {
- deferred.reject("UserProfileService::resetFunctionalMenuStaticInfo Failed");
- } else {
- this.userProfile = res.data;
- this.$log.info('UserProfileService::resetFunctionalMenuStaticInfo Succeeded');
- deferred.resolve(res.data);
- }
- }).catch( status => {
- this.$log.error('UserProfileService::resetFunctionalMenuStaticInfo error');
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
-
- getActiveUser() {
- this.$log.info('ecomp::getActiveUser::get active users');
- let deferred = this.$q.defer();
- let url = this.conf.api.getActiveUser;
-
- this.$http({
- method: "GET",
- url : url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("ecomp::userProfile-service::getActiveUser Failed");
- } else {
- this.$log.info('ecomp::userProfile-service::getActiveUser Succeeded');
- deferred.resolve(res.data);
- }
- }).catch( status => {
- this.$log.error('ecomp::getActiveUser error');
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- }
- UserProfileService.$inject = ['$q', '$log', '$http', 'conf', 'uuid4', '$rootScope'];
- angular.module('ecompApp').service('userProfileService', UserProfileService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/userbar/userbar.update.service.js b/ecomp-portal-FE/client/app/services/userbar/userbar.update.service.js
deleted file mode 100644
index 70899f29..00000000
--- a/ecomp-portal-FE/client/app/services/userbar/userbar.update.service.js
+++ /dev/null
@@ -1,97 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-(function () {
- class userbarUpdateService {
- constructor($q, $log, $http, conf, uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- this.refreshCount = 0;
- this.maxCount = 0;
- }
-
- getRefreshCount() {
- return this.refreshCount;
- }
- setRefreshCount(count){
- this.refreshCount = count;
- }
- setMaxRefreshCount(count){
- this.maxCount = count;
- }
- decrementRefreshCount(){
- this.refreshCount = this.refreshCount - 1;
- }
-
- getWidthThresholdLeftMenu() {
- let deferred = this.$q.defer();
- this.$log.info('userbarUpdateService::getWidthThresholdLeftMenu');
- this.$http({
- url: this.conf.api.getWidthThresholdLeftMenu,
- method: 'GET',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("userbarUpdateService::getWidthThresholdLeftMenu Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getWidthThresholdRightMenu() {
- let deferred = this.$q.defer();
- this.$log.info('userbarUpdateService::getWidthThresholdRightMenu');
- this.$http({
- url: this.conf.api.getWidthThresholdRightMenu,
- method: 'GET',
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("userbarUpdateService::getWidthThresholdRightMenu Failed");
- } else {
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
-
- }
- userbarUpdateService.$inject = ['$q', '$log', '$http', 'conf', 'uuid4'];
- angular.module('ecompApp').service('userbarUpdateService', userbarUpdateService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/users/users.service.js b/ecomp-portal-FE/client/app/services/users/users.service.js
deleted file mode 100644
index 79da9439..00000000
--- a/ecomp-portal-FE/client/app/services/users/users.service.js
+++ /dev/null
@@ -1,161 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class UsersService {
- constructor($q, $log, $http, conf,uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
-
-
- searchUsers(queryString) {
- let canceller = this.$q.defer();
- let isActive = false;
-
- let cancel = () => {
- if(isActive){
- this.$log.debug('UsersService::searchUsers: canceling the request');
- canceller.resolve();
- }
- };
-
- let promise = () => {
- let deferred = this.$q.defer();
- if(!queryString){
- return deferred.reject(new Error('query string is mandatory'));
- }
- isActive = true;
- this.$http({
- method: "GET",
- url: this.conf.api.queryUsers,
- params: {search: queryString},
- cache: false,
- timeout: canceller.promise,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("UsersService::queryUsers Failed");
- } else {
- this.$log.info('UsersService::queryUsers Succeeded');
- isActive = false;
- deferred.resolve(res.data);
- }
- }).catch( status => {
- isActive = false;
- deferred.reject('UsersService::searchUsers:: API Failed with status: ' + status);
- });
- return deferred.promise;
- };
-
- return {
- cancel: cancel,
- promise: promise
- };
-
- }
-
- getAccountUsers(appId) {
- let deferred = this.$q.defer();
- let log = this.$log;
- this.$log.debug('UsersService::getAccountUsers for appId: ' + appId);
-
- let url = this.conf.api.accountUsers.replace(':appId', appId);
- this.$http({
- method: "GET",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("UsersService::getAccountUsers for appId Failed");
- } else {
- log.info('UsersService::getAccountUsers(appId) Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- log.error('getAccountUsers(appId) $http error = ', status);
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getUserAppRoles(appid, orgUserId){
- let deferred = this.$q.defer();
- this.$log.info('UsersService::getUserAppRoles');
-
- this.$http({
- method: "GET",
- url: this.conf.api.userAppRoles,
- params: {orgUserId: orgUserId, app: appid},
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- if (Object.keys(res.data).length == 0) {
- deferred.reject("UsersService::getUserAppRoles: Failed");
- } else {
- this.$log.info('UsersService::getUserAppRoles: Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch( status => {
- this.$log.debug("UsersService::getUserAppRoles: status.headers(FEErrorString)");
- this.$log.debug('UsersService::getUserAppRoles status.headers(FEErrorString)', status.headers('FEErrorString'));
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- updateUserAppRoles(newUserAppRoles) {
- let deferred = this.$q.defer();
- this.$log.info('UsersService::updateUserAppRoles');
- this.$http({
- method: "PUT",
- url: this.conf.api.userAppRoles,
- data: newUserAppRoles,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then( res => {
- deferred.resolve(res.data);
- })
- .catch( status => {
- deferred.reject(status);
- });
-
- return deferred.promise;
- }
-
- }
- UsersService.$inject = ['$q', '$log', '$http', 'conf','uuid4'];
- angular.module('ecompApp').service('usersService', UsersService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/utils/utils.service.js b/ecomp-portal-FE/client/app/services/utils/utils.service.js
deleted file mode 100644
index 6473a0cb..00000000
--- a/ecomp-portal-FE/client/app/services/utils/utils.service.js
+++ /dev/null
@@ -1,57 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-(function () {
- class UtilsService {
- constructor($log) {
- this.$log = $log;
- }
-
- isRunningInLocalDevEnv() {
- var myHostName;
- myHostName = location.host;
- let myDebugServer = "www.mytesturl.com"
-
- if ((myHostName.includes(myDebugServer) || myHostName.includes("localhost"))) {
- return true;
- } else {
- return false;
- }
- }
-
- isValidJSON(json) {
- try {
- var checkJSON = JSON.parse(JSON.stringify(json));
- if (checkJSON && typeof checkJSON === 'object' && checkJSON !== null) {
- // this.$log.debug('UtilsService::isValidJSON: JSON is valid! REMOVE THIS BEFORE COMMIT');
- return true;
- }
- } catch (err) {
- this.$log.error('UtilsService::isValidJSON: json passed is not valid: '+ err);
- return false;
- }
- }
-
- }
- UtilsService.$inject = ['$log'];
- angular.module('ecompApp').service('utilsService', UtilsService)
-})();
diff --git a/ecomp-portal-FE/client/app/services/widgets/widgets.service.js b/ecomp-portal-FE/client/app/services/widgets/widgets.service.js
deleted file mode 100644
index fd749c46..00000000
--- a/ecomp-portal-FE/client/app/services/widgets/widgets.service.js
+++ /dev/null
@@ -1,178 +0,0 @@
-/**
- * Created by doritrieur on 12/3/15.
- */
-'use strict';
-
-(function () {
- class WidgetsService {
- constructor($q, $log, $http, conf,uuid) {
- this.$q = $q;
- this.$log = $log;
- this.$http = $http;
- this.conf = conf;
- this.uuid = uuid;
- }
-
- getUserWidgets() {
- let deferred = this.$q.defer();
- this.$log.info('WidgetsService::getUserWidgets');
- this.$http({
- method: "GET",
- url: this.conf.api.widgets,
- cache: false,
- headers: {
- 'X-Widgets-Type': 'all',
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (res == null || res.data==null) {
- deferred.reject("WidgetsService::getUserWidgets Failed");
- } else {
- this.$log.info('WidgetsService::getUserWidgets Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- getManagedWidgets() {
- let deferred = this.$q.defer();
- this.$log.info('WidgetsService::getManagedWidgets');
- this.$http({
- method: "GET",
- url: this.conf.api.widgets,
- cache: false,
- headers: {
- 'X-Widgets-Type': 'managed',
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("WidgetsService::getManagedWidgets Failed");
- } else {
- this.$log.info('WidgetsService::getManagedWidgets Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- createWidget(widgetData) {
- let deferred = this.$q.defer();
- this.$log.info('WidgetsService::createWidget');
- this.$http({
- method: "POST",
- url: this.conf.api.widgets,
- cache: false,
- data: widgetData,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("WidgetsService::createWidget Failed");
- } else {
- this.$log.info('WidgetsService::createWidget Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- updateWidget(widgetId, widgetData) {
- let deferred = this.$q.defer();
- this.$log.info('WidgetsService::updateWidget');
- let url = this.conf.api.widgets + '/' + widgetId;
- this.$http({
- method: "PUT",
- url: url,
- cache: false,
- data: widgetData,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("WidgetsService::updateWidget Failed");
- } else {
- this.$log.info('WidgetsService::updateWidget Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch(errRes => {
- deferred.reject(errRes);
- });
- return deferred.promise;
- }
-
- deleteWidget(widgetId) {
- let deferred = this.$q.defer();
- this.$log.info('WidgetsService::deleteWidget');
- let url = this.conf.api.widgets + '/' + widgetId;
- this.$http({
- method: "DELETE",
- url: url,
- cache: false,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(res => {
- // If response comes back as a redirected HTML page which IS NOT a success
- if (Object.keys(res.data).length == 0) {
- deferred.reject("WidgetsService::deleteWidget Failed");
- } else {
- this.$log.info('WidgetsService::deleteWidget Succeeded');
- deferred.resolve(res.data);
- }
- })
- .catch(status => {
- deferred.reject(status);
- });
- return deferred.promise;
- }
-
- checkIfWidgetUrlExists(urlToValidate) {
- let deferred = this.$q.defer();
- this.$log.info('WidgetsService::checkIfWidgetUrlExists:' + urlToValidate);
- let reqBody = {
- url: urlToValidate
- };
- this.$http({
- method: "POST",
- url: this.conf.api.widgetsValidation,
- cache: false,
- data: reqBody,
- headers: {
- 'X-ECOMP-RequestID':this.uuid.generate()
- }
- }).then(() => {
- //if exists return true
- deferred.resolve(true);
- })
- .catch(response => {
- if(response.data.status === 404){
- deferred.resolve(false);
- }else{
- deferred.reject(response.data);
- }
- });
- return deferred.promise;
- }
-
- }
- WidgetsService.$inject = ['$q', '$log', '$http', 'conf','uuid4'];
- angular.module('ecompApp').service('widgetsService', WidgetsService)
-})();
diff --git a/ecomp-portal-FE/client/app/styles/att-abs.less b/ecomp-portal-FE/client/app/styles/att-abs.less
deleted file mode 100644
index 45fab85d..00000000
--- a/ecomp-portal-FE/client/app/styles/att-abs.less
+++ /dev/null
@@ -1,86 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .c-ecomp-att-abs-table{
- width: 100%;
- height: 600px;
- overflow-x: auto;
- overflow-y: auto;
-
- .tablesorter-default {
- border: 1px solid @q;
-
- th,
- thead td {
- .n16m;
- color: @n;
- background-color: @r;
- border-collapse: collapse;
- //border-top-style: none;
- //border: 1px solid @q;
- padding: 0;
- font-weight: 700;
- height: 38px;
- }
-
- tbody tr td {
- .o16m;
- background-color: @u;
- border-left: 1px solid @q;
- background-color: @u;
- border-bottom: 1px solid @q;
- height: 32px;
- div {
- line-height: 32px;
- }
- }
-
- tbody tr.alt-row td {
- background: @t;
- padding: 12px 16px;
- }
- .tablesorter-search-highlight {
- font-weight: bold;
- }
- }
-}
-
-.c-ecomp-att-abs-select{
- width: @select-width;
- display: inline-block;
- margin-right: 10px;
- .select2-chosen{
- width: @select-width;
- line-height: 20px;
- }
- .select2-container .select2-choice {
- width: @select-width;
- border-radius: 6px;
- border-color: @q;
- }
-
- .select2-results {
- width: @select-width;
- background-color: @u;
- }
-
- .form-field, .form-field-input-container {
- width: @select-width;
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/styles/buttons.less b/ecomp-portal-FE/client/app/styles/buttons.less
deleted file mode 100644
index 5edf9385..00000000
--- a/ecomp-portal-FE/client/app/styles/buttons.less
+++ /dev/null
@@ -1,72 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .ecomp-btn {
- .u14m;
- border-style: solid;
- border-width: 1px;
- border-radius: 6px;
- box-shadow: 0px 1px 0.99px 0.01px rgba(2, 60, 89, 0.004);
- height: 29px;
- line-height: 29px;
- cursor: pointer;
- text-align: center;
-
- &:disabled {
- opacity: .5;
- cursor: default;
- }
- &:focus {
- outline: 0;
- border: 1px solid @k;
- }
-}
-.btn-green {
- .ecomp-btn;
- border-color: @green-border;
- background: @green-active;
- &:hover {
- &:disabled {
- background: @green-active;
- }
- background: @green-hover;
- }
-}
-.btn-blue {
- .ecomp-btn;
- background: @blue-active;
-
- &:hover {
- -webkit-transition: background-color .3s ease-out;
- -moz-transition: background-color .3s ease-out;
- transition: background-color .3s ease-out;
- background: @blue-hover;
- color : #f2f2f2;
- &.disabled {
- background: @blue-active;
- opacity: 0.5;
- cursor: default;
- }
- }
-
- &.disabled {
- opacity: 0.5;
- cursor: default;
- }
-}
diff --git a/ecomp-portal-FE/client/app/styles/ecomp-general.less b/ecomp-portal-FE/client/app/styles/ecomp-general.less
deleted file mode 100644
index 6de494ce..00000000
--- a/ecomp-portal-FE/client/app/styles/ecomp-general.less
+++ /dev/null
@@ -1,76 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-main-view-title {
- .a24r;
- margin: auto;
- .content_justify;
- margin-bottom: 15px;
-}
-
-input.table-search {
- font-style: italic;
- padding: 7px 10px;
- width: 440px;
- display: inline-block;
- position: relative;
- margin-bottom: 10px;
- border-radius: 6px;
- border: 1px solid @q;
- height: 32px;
- .form-field, .form-field-input-container {
- width: 440px;
- }
- &:focus{
- border-color: @blue-hover;
- }
- &:active{
- border-color: @q;
- }
-}
-
-.add-button {
- cursor: pointer;
- width: 120px;
- float: right;
-
- .btn-blue;
-
- line-height: 32px;
- height: 32px;
-
- &::before {
- .ico_add_user;
- content: '\f211';
- font-family: "Ionicons";
- vertical-align: middle;
- display: inline-block;
- margin-right: 10px;
- height:35px;
- }
-}
-
-.errors-text {
- .o14r;
-}
-
-.general-errors-text {
- .o14r;
- color: @err;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/styles/fonts.less b/ecomp-portal-FE/client/app/styles/fonts.less
deleted file mode 100644
index 40bb6ab1..00000000
--- a/ecomp-portal-FE/client/app/styles/fonts.less
+++ /dev/null
@@ -1,81 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- @font-face {
- font-family: OmnesATT2-Regular;
- src: url('../assets/fonts/omnesatt2-regular-webfont.eot');
- src: url('../assets/fonts/omnesatt2-regular-webfont.eot?#iefix') format('embedded-opentype'),
- url('../assets/fonts/omnesatt2-regular-webfont.ttf');
-}
-
-@font-face {
- font-family: OmnesATT2-Medium;
- src: url('../assets/fonts/omnesatt2-medium-webfont.eot');
- src: url('../assets/fonts/omnesatt2-medium-webfont.eot?#iefix') format('embedded-opentype'),
- url('../assets/fonts/omnesatt2-medium-webfont.ttf');
-}
-
-@font-face {
- font-family: OmnesATT2-Light;
- src: url('../assets/fonts/omnesatt2-light-webfont.eot');
- src: url('../assets/fonts/omnesatt2-light-webfont.eot?#iefix') format('embedded-opentype'),
- url('../assets/fonts/omnesatt2-light-webfont.ttf');
-}
-
-@font-face {
- font-family: OmnesATT2-RegularItalic;
- src: url('../assets/fonts/omnesatt2-regularitalic-webfont.eot');
- src: url('../assets/fonts/omnesatt2-regularitalic-webfont.eot?#iefix') format('embedded-opentype'),
- url('../assets/fonts/omnesatt2-regularitalic-webfont.ttf');
-}
-
-@font-face {
- font-family: OmnesATT2-Bold;
- src: url('../assets/fonts/omnesatt2-bold-webfont.eot');
- src: url('../assets/fonts/omnesatt2-bold-webfont.eot?#iefix') format('embedded-opentype'),
- url('../assets/fonts/omnesatt2-bold-webfont.ttf');
-}
-
-@font-face {
- font-family: ClearviewATT-Bold;
- src: url('../assets/fonts/ClearviewATT-Bd.eot');
- src: url('../assets/fonts/ClearviewATT-Bd?#iefix') format('embedded-opentype'),
- url('../assets/fonts/ClearviewATT-Bd.ttf');
-}
-
-@font-face {
- font-family: ;
- src: url('../assets/fonts/ClearviewATT-Bk.eot');
- src: url('../assets/fonts/ClearviewATT-Bk.eot?#iefix') format('embedded-opentype'),
- url('../assets/fonts/ClearviewATT-Bk.ttf');
-}
-
-@font-face {
- font-family: ClearviewATT-Light;
- src: url('../assets/fonts/ClearviewATT-Lt.eot');
- src: url('../assets/fonts/ClearviewATT-Lt.eot?#iefix') format('embedded-opentype'),
- url('../assets/fonts/ClearviewATT-Lt.ttf');
-}
-
-@font-face {
- font-family: ClearviewATT-RegularItalic;
- src: url('../assets/fonts/ClearviewATT-BkIt.eot');
- src: url('../assets/fonts/ClearviewATT-BkIt.eot?#iefix') format('embedded-opentype'),
- url('../assets/fonts/ClearviewATT-BkIt.ttf');
-}
diff --git a/ecomp-portal-FE/client/app/styles/form.less b/ecomp-portal-FE/client/app/styles/form.less
deleted file mode 100644
index 4c4e8c3f..00000000
--- a/ecomp-portal-FE/client/app/styles/form.less
+++ /dev/null
@@ -1,189 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .form {
- input, textarea, label , .multiple {
- .a14r;
- }
- input, textarea , .multiple {
- &:focus {
- outline: none;
- border: 1px solid @a;
- }
- border: 1px solid @a;
- padding: 8px;
- &:disabled {
- border: 1px solid @s;
- .bg_l;
- }
- &.ng-invalid.ng-touched {
- border: 1px solid @err;
- box-shadow: 0 0 2.55px 0.45px rgba(218,31,61,.5);
- &:focus {
- border: 1px solid @a;
- }
- }
- }
- input[type=number] {
- -moz-appearance:textfield;
- }
- textarea {
- min-height: 148px;
- max-width: @input-max-width;
- }
- .flex-group {
- display: flex;
- justify-content: space-between;
- }
- .form-group {
- margin: 0 0 18px;
- position: relative;
- }
- .checkbox {
- label {
- cursor: pointer;
- }
- }
- label {
- margin: 0 0 3px;
- display: block;
- }
- .text {
- width: 100%;
- display: block;
- }
- .short {
- width: 104px;
- }
- .multiple{
- padding: 0;
- }
- .error {
- color: @f;
- background: @err;
- border-radius: 0 5px 5px 0;
- font-size: 12px;
- line-height: 20px;
- text-align: center;
- width: 100%;
- position: absolute;
- top: 18px;
- margin-left: 75%;
- z-index: 100;
- height: 33px;
- padding: 8px;
- box-shadow: 0 0 2.55px 0.45px rgba(218,31,61,.5);
- &:before {
- content: '';
- width: 0;
- height: 0;
- position: absolute;
- left: -9px;
- top: 7px;
- border-top: 9px solid transparent;
- border-bottom: 9px solid transparent;
- border-right: 9px solid @err;
- }
- }
-}
-
-.required:before {
- color: red;
- margin-right: 2px;
- content: "* ";
- position: absolute;
- top: 28px;
- left: -10px;
-}
-
-.custom-input-field{
- padding-left: 6px;
- padding-top: 0;
-
- height: 30px;
- line-height: 30px;
- width: 100%;
- border: 1px solid #ccc;
- border-radius: 0;
- position: relative;
- padding-bottom: 0px;
-
-}
-.custom-select-field{
- padding-left: 6px;
- padding-top: 0;
-
- height: 30px;
- line-height: 30px;
- width: 100%;
- border: 1px solid #ccc;
- border-radius: 0;
- position: relative;
-}
-
-.dropdown-container{
- height:40px;
- // float:left;
- position:relative;
-}
-
-.select-input,
-.multiple-select,
-.right_arrow_down{
- position:absolute;
- height: 100%;
- width:100%;
- top: 0px;
-}
-
-.right_arrow_down{
- pointer-events:none;
- top: -1px;
- left:432px;
- float:right;
- width:16px;
- background: url('../assets/images/sprite.png') bottom right no-repeat;
- height:30px;
- background-size: 100% 90%;
- z-index:10;
-}
-
-.custom-select-wrap{
- width: 100%;
- position: relative;
- display: inline-block;
- vertical-align: middle;
-}
-.custom-select-wrap::after{
- content: '';
- .arrow_down;
- display: block;
- position: absolute;
- top: 12px;
- right: 10px;
- z-index: 999;
-}
-
-select{
- -webkit-appearance:none;
- -moz-appearance:none;
- appearance:none;
- text-indent: 0.01px;
- text-overflow: '';
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/styles/kpi-dashboard.less b/ecomp-portal-FE/client/app/styles/kpi-dashboard.less
deleted file mode 100644
index 2295e744..00000000
--- a/ecomp-portal-FE/client/app/styles/kpi-dashboard.less
+++ /dev/null
@@ -1,111 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .kpi-page-main {
-
- .bg_w;
-
- position: fixed;
- top: 100px;
- left: 0;
- right: 0;
- bottom: @footer-height;
- padding-top: 0px;
- overflow-y: scroll;
- padding-left: 50px;
- padding-bottom:30px;
-}
-
-.DCAE_KPI_class {
- .bg_w;
-
- font-size:16px;
-
- hr {
- border:none;
- border-top:1px dotted #f00;
- color:#D3D3D3;
- background-color:#fff;
- height:1px;
- width:100%;
- }
-
- table{
- padding: 10px;
- }
-
- table thead{
- border:none;
- border-bottom: 1px dashed #cccccc;
- }
-
- table tr {
- border: 1px dashed #cccccc;
- }
-
- table th {
- font-weight: bold;
- }
-
- .content {
- margin-left:100px;
- }
-
- h3{
- margin-top: 20px;
- padding: 25px;
- font-size:24px;
- }
-
- h4{
- padding: 15px;
- font-size:20px;
- }
-
- th{
- padding: 15px;
- }
-
- td{
- padding: 15px;
- }
-}
-
-.top-level-tabs-class {
- margin-top: -80px;
- padding-left:50px;
- width: 90%;
- float:right;
- padding-bottom:10px;
-}
-
-.sec-level-tabs-class {
- padding-left:50px;
- width: 90%;
- float:right;
-}
-
-.KPI_dash_text_class {
- margin-left: 300px;
- float:left;
-}
-
-.KPI_dash_text_class h3{
- font-size:24px;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/styles/mixins.less b/ecomp-portal-FE/client/app/styles/mixins.less
deleted file mode 100644
index a03d6ab7..00000000
--- a/ecomp-portal-FE/client/app/styles/mixins.less
+++ /dev/null
@@ -1,296 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- /*------------------------------- Backgrounds -------------------------------*/
-.bg_a {background-color: @a;}
-.bg_b {background-color: @b;}
-.bg_c {background-color: @c;}
-.bg_d {background-color: @d;}
-.bg_e {background-color: @e;}
-.bg_f {background-color: @f;}
-.bg_g {background-color: @g;}
-.bg_h {background-color: @h;}
-.bg_i {background-color: @i;}
-.bg_j {background-color: @j;}
-.bg_k {background-color: @k;}
-.bg_l {background-color: @l;}
-.bg_m {background-color: @m;}
-.bg_n {background-color: @n;}
-.bg_o {background-color: @o;}
-.bg_p {background-color: @p;}
-.bg_q {background-color: @q;}
-.bg_r {background-color: @r;}
-.bg_s {background-color: @s;}
-.bg_t {background-color: @t;}
-.bg_u {background-color: @u;}
-.bg_v {background-color: @v;}
-.bg_w {background-color: @bg;}
-
-/*------------------------------- Fonts -------------------------------*/
-
-/* font family */
-.omnes {
- .regular {
- font-family: @font-clearview-regular;
- }
- .medium {
- font-family: @font-omnes-medium;
- }
- .light {
- font-family: @font-clearview-light;
- }
- .regular-italic {
- font-family: @font-omnes-regular-italic;
- }
- .bold {
- font-family: @font-clearview-bold;
- }
-}
-.clearview {
- .regular {
- font-family: @font-omnes-regular;
- }
- .medium {
- font-family: @font-omnes-medium;
- }
- .light {
- font-family: @font-omnes-light;
- }
- .regular-italic {
- font-family: @font-omnes-regular-italic;
- }
- .bold {
- font-family: @font-omnes-bold;
- }
-}
-
-.a {color: @a;}
-.b {color: @b;}
-.c {color: @c;}
-.d {color: @d;}
-.e {color: @e;}
-.f {color: @f;}
-.g {color: @g;}
-.h {color: @h;}
-.i {color: @i;}
-.j {color: @j;}
-.k {color: @k;}
-.l {color: @l;}
-.m {color: @m;}
-.n {color: @n;}
-.o {color: @o;}
-.p {color: @p;}
-.q {color: @q;}
-.r {color: @r;}
-.s {color: @s;}
-.t {color: @t;}
-.u {color: @u;}
-.v {color: @v;}
-.z {color: @z;}
-
-._14rc {
- .clearview > .regular;
- font-size: 14px;
-}
-._12ic {
- .clearview > .regular-italic;
- font-size: 12px;
-}
-._16rc {
- .clearview > .regular;
- font-size: 16px;
-}
-._18rc {
- .clearview > .regular;
- font-size: 18px;
-}
-._18bc {
- .clearview > .bold;
- font-size: 18px;
-}
-._12r{
- .omnes > .regular;
- font-size: 12px;
-}
-._12r{
- .omnes > .regular;
- font-size: 12px;
-}
-._14m {
- .omnes > .medium;
- font-size: 14px;
-}
-._14r{
- .omnes > .regular;
- font-size: 14px;
-}
-._16r{
- .omnes > .regular;
- font-size: 16px;
-}
-._21r{
- .omnes > .regular;
- font-size: 21px;
-}
-._24r{
- .omnes > .regular;
- font-size: 24px;
-}
-._40r{
- .omnes > .regular;
- font-size: 40px;
-}
-._16m{
- .omnes > .medium;
- font-size: 16px;
-}
-._18r{
- .omnes > .regular;
- font-size: 18px;
-}
-._13r{
- .omnes > .regular;
- font-size: 13px;
-}
-
-.a14m{
- .a;
- ._14m;
-}
-.b14r{
- .b;
- ._14r;
-}
-.d14m{
- .d;
- ._14m;
-}
-.a14r{
- .a;
- ._14r;
-}
-.b14m{
- .b;
- ._14m;
-}
-.c16r{
- .c;
- ._16r;
-}
-.c18b{
- .c;
- ._18bc;
-}
-.a24r{
- .a;
- ._24r;
-}
-.d40r{
- .d;
- ._40r;
-}
-.d16r{
- .d;
- ._16r;
-}
-.b16r{
- .b;
- ._16m;
-}
-.u21r{
- .u;
- ._21r;
-}
-.u40r{
- .u;
- ._40r;
-}
-.u16r{
- .u;
- ._16r;
-}
-.u16m{
- .u;
- ._16m;
-}
-.u18r{
- .u;
- ._18r;
-}
-.o12r{
- .o;
- ._12r;
-}
-.o14r{
- .o;
- ._14r;
-}
-.o16m{
- .o;
- ._16m;
-}
-.o12i{
- .o;
- ._12ic
-}
-.u14m{
- .u;
- ._14m;
-}
-.u13r{
- .u;
- ._13r;
-}
-.n18r{
- .n;
- ._18r;
-}
-.n14r{
- .n;
- ._14r;
-}
-.n16r{
- .n;
- ._16r;
-}
-.n16m{
- .n;
- ._16m;
-}
-.n14r{
- .n;
- ._14r;
-}
-.n14m{
- .n;
- ._14m;
-}
-.n16m{
- .n;
- ._16m;
-}
-.p13r{
- .p;
- ._13r;
-}
-
-.content_justify {
- margin: 0 auto;
- width: 1170px;
-}
diff --git a/ecomp-portal-FE/client/app/styles/ng-dialog.less b/ecomp-portal-FE/client/app/styles/ng-dialog.less
deleted file mode 100644
index f0be7df0..00000000
--- a/ecomp-portal-FE/client/app/styles/ng-dialog.less
+++ /dev/null
@@ -1,88 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .ngdialog.ngdialog-theme-default.ng-scope {
-.ngdialog-content {
- background-color: @u;
- padding: 0;
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
- border-radius: 4px;
- top: -100px;
- .title {
- margin: 0 16px;
- height: 48px;
- line-height: 48px;
- }
-
- .ngdialog-close {
- top: 6px;
- right: 6px;
- }
- .app-roles-main {
- margin: 20px 16px 0;
- }
- }
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-content {
- width: 532px;
- padding: 16px;
-}
-
-.ngdialog.ngdialog-theme-default.confirm-box .ngdialog-content{
- @height: 160px;
- @width: 400px;
-
- width: @width;
- height: @height;
- padding: 20px;
- position: absolute;
- top: 300px;
- left: ~"calc(50% - @{width}/2)";
-}
-
-
-.dialog-control {
- position: absolute;
- bottom: 16px;
- right: 16px;
- .next-button {
- display: inline-block;
- .btn-blue;
- width: 90px;
- margin-right: 10px;
- }
- .cancel-button {
- display: inline-block;
- .btn-blue;
- width: 90px;
- }
- .save-button {
- display: inline-block;
- .btn-blue;
- width: 90px;
- }
- .back-button {
- display: inline-block;
- .btn-blue;
- width: 90px;
- margin-right: 10px;
- }
-
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/styles/reset.less b/ecomp-portal-FE/client/app/styles/reset.less
deleted file mode 100644
index 74b546da..00000000
--- a/ecomp-portal-FE/client/app/styles/reset.less
+++ /dev/null
@@ -1,79 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-b, u, i, center,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td,
-article, aside, canvas, details, embed,
-figure, figcaption, footer, header, hgroup,
-menu, nav, output, ruby, section, summary,
-time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
-}
-/* HTML5 display-role reset for older browsers */
-article, aside, details, figcaption, figure,
-footer, header, hgroup, menu, nav, section {
- display: block;
-}
-body {
- line-height: 1;
-}
-ol, ul {
- list-style: none;
-}
-blockquote, q {
- quotes: none;
-}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: '';
- content: none;
-}
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
-.clearfix:before,
-.clearfix:after { content: ""; display: table; }
-.clearfix:after { clear: both; }
-.clearfix { zoom: 1;}
-
-* {
- box-sizing: border-box;
-}
-
-input[type=number]::-webkit-inner-spin-button,
-input[type=number]::-webkit-outer-spin-button {
- -webkit-appearance: none;
- margin: 0;
-}
-input[type=number] {
- -moz-appearance:textfield;
-}
diff --git a/ecomp-portal-FE/client/app/styles/select2.less b/ecomp-portal-FE/client/app/styles/select2.less
deleted file mode 100644
index 80d1b369..00000000
--- a/ecomp-portal-FE/client/app/styles/select2.less
+++ /dev/null
@@ -1,102 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .select2-drop {
- border-radius: 0 0 2px 2px;
- outline: none;
-}
-
-.select2-container {
- margin-right: 8px;
-
- .select2-choice {
- border-color: #d8d8d8;
- border-radius: 2px;
- background-image: none;
- height: 32px;
- width: 100%;
- }
-
- &.select2-dropdown-open {
- .select2-choice {
- border-color: @a;
- }
- .select2-choice .select2-arrow b:after,
- &.select2-container-disabled .select2-choice .select2-arrow b:after,
- .select2-choice .select2-arrow b:after {
- .arrow_up;
- }
- }
-
- .select2-choice .select2-arrow b:after,
- &.select2-container-disabled .select2-choice .select2-arrow b:after,
- .select2-choice .select2-arrow b:after {
- .arrow_down;
- height: 10px;
- width: 10px;
- top: -2px;
- right: 10px;
-
- }
- .select2-chosen, .select2-container input {
- line-height: 32px;
- }
-}
-
-.select2-results {
- border-radius: 0 0 2px 2px;
- margin: -13px 0 0 0;
- .select2-result {
- &:first-child {
- margin-top: 14px;
- }
- &:hover {
- background-color: @t;
- }
- }
-
- .select2-result-label {
- outline: none;
- }
-}
-
-.select2-drop-above {
- &.select2-drop {
- border-radius: 2px 2px 0 0;
- }
-
- &.select2-dropdown-open .select2-choice {
- border-radius: 0 0 2px 2px !important;
- background: #fff;
- }
-}
-
-.select2-dropdown-open {
- .select2-choice {
- border-color: @q;
-
- .select2-arrow b:after {
-
- }
- }
-}
-
-.select2-drop-active {
- border-color: @a;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/styles/spinner.less b/ecomp-portal-FE/client/app/styles/spinner.less
deleted file mode 100644
index 1ceb7d1e..00000000
--- a/ecomp-portal-FE/client/app/styles/spinner.less
+++ /dev/null
@@ -1,56 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .ecomp-spinner{
- background: url('../assets/images/spinner.gif') top left no-repeat;
- @height: 32px;
- @width: 32px;
-
- width: @width;
- height: @height;
- position: absolute;
- top: 35%;
- left: ~"calc(50% - @{width}/2)";
-}
-
-.ecomp-save-spinner{
- background: url('../assets/images/spinner.gif') top left no-repeat;
- @resize: 25px;
- width: @resize;
- height: @resize;
- background-size: @resize;
- position: absolute;
- left: -50px;
- top: 2px;
-}
-
-.ecomp-small-spinner{
- background: url('../assets/images/spinner.gif') top left no-repeat;
- @resize: 25px;
- width: @resize;
- height: @resize;
- background-size: @resize;
- position: relative;
- display: inline-block;
- vertical-align: 2px;
- cursor: pointer;
- top: 6px;
- color: transparent;
- margin-left: 8px;
-}
diff --git a/ecomp-portal-FE/client/app/styles/sprites.less b/ecomp-portal-FE/client/app/styles/sprites.less
deleted file mode 100644
index d08e4ac0..00000000
--- a/ecomp-portal-FE/client/app/styles/sprites.less
+++ /dev/null
@@ -1,118 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .sprite-base {
- background: url('../assets/images/sprite.png') top left no-repeat;
-}
-
-.ecomp-logo {
- background: url('../assets/images/ecomp_logo.png');
- width: 58px;
- height: 28px;
-}
-
-.ico_user {
- .sprite-base;
- width: 16px;
- height: 19px;
- background-position: -10px -48px;
-}
-
-.ico_add_user {
- .sprite-base;
- width: 19px;
- height: 19px;
- background-position: -10px -78px;
-}
-
-.ico_dropdown {
- .sprite-base;
- width: 12px;
- height: 7px;
- background-position: -10px -107px;
-}
-
-.ico_search {
- .sprite-base;
- width: 14px;
- height: 14px;
- background-position: -10px -124px;
-}
-
-.ico_trash_default {
- background: url('../assets/images/deleteicon.png') no-repeat;
- width: 15px;
- height: 20px;
-}
-
-.ico_trash_disabled {
- .sprite-base;
- width: 12px;
- height: 15px;
- background-position: -10px -173px;
-}
-
-.arrow_down {
- .sprite-base;
- width: 12px;
- height: 5px;
- background-position: -10px -198px;
-}
-
-.arrow_up {
- .sprite-base;
- width: 12px;
- height: 5px;
- background-position: -10px -213px;
-}
-
-.checkbox_checked {
- .sprite-base;
- width: 14px;
- height: 14px;
- background-position: -10px -228px;
-}
-
-.checkbox_disabled {
- .sprite-base;
- width: 14px;
- height: 14px;
- background-position: -10px -252px;
-}
-
-.checkbox_unchecked {
- .sprite-base;
- width: 14px;
- height: 14px;
- background-position: -10px -276px;
-}
-
-.checkbox_unchecked_hover {
- .sprite-base;
- width: 14px;
- height: 14px;
- background-position: -10px -300px;
-}
-
-.default_upload_image{
- .sprite-base;
- width:150px;
- height:100px;
- background-position:-10px -324px;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/styles/variables.less b/ecomp-portal-FE/client/app/styles/variables.less
deleted file mode 100644
index afc35a0b..00000000
--- a/ecomp-portal-FE/client/app/styles/variables.less
+++ /dev/null
@@ -1,86 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- /*---------------------------------- General ----------------------------------------------------------------*/
-@font-omnes-regular: arial;
-@font-omnes-medium: arial;
-@font-omnes-light: arial;
-@font-omnes-regular-italic: arial;
-@font-omnes-bold: arial;
-@font-clearview-regular: arial;
-@font-clearview-bold: arial;
-@font-clearview-light: arial;
-@font-clearview-regular-italic: arial;
-
-@select-width: 440px;
-@header-height: 55px;
-@padding-left-side: 70px;
-@footer-height: 75px;
-
-/* Top of Pages */
-@padding-top: 10px;
-@page-main-top: 105px;
-@page-main-left: 0;
-@page-main-right: 0;
-@page-main-bottom: @footer-height;
-@page-main-position: fixed;
-@page-main-overflow-y: scroll;
-
-/* tables */
-@table-width: 1170px;
-@table-margin: auto;
-@table-dropdown-filter-width: 460px;
-@table-dropdown-filter-display: inline-block;
-
-@second-level-top: 57px;
-@err: #da1f3d;
-@input-max-width: 234px;
-/*------------------------------- Colors -------------------------------*/
-@a : #067ab4;
-@b : #156b97;
-@c : #0c2577;
-@d : #44c8f5;
-@e : #4ca90c;
-@f : #27a337;
-@g : #c4d82d;
-@h : #ef6f00;
-@i : #fbb313;
-@j : #b30a3c;
-@k : #e00000;
-@l : #81017e;
-@m : #da0081;
-@n : #333333;
-@o : #666666;
-@p : #999999;
-@q : #d8d8d8;
-@r : #eaeaea;
-@s : #f2f2f2;
-@t : #f8f8f8;
-@u : #ffffff;
-@v : #e6f6fb;
-@z : #199ddf;
-@bg : #F2F2F2;
-
-/*------------------------------- Buttons colors -------------------------------*/
-@green-active: #4CA90C;
-@green-hover: #209657;
-@green-border: #45a006;
-@blue-active: #067ab4;
-@blue-hover: #39b1ec;
-@blue-border: #036698;
diff --git a/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.controller.js b/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.controller.js
deleted file mode 100644
index 4d77a97c..00000000
--- a/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.controller.js
+++ /dev/null
@@ -1,214 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-(function () {
- class NewAdminModalCtrl {
- constructor($log, adminsService, $scope, confirmBoxService, utilsService, $location) {
-
- let init = () => {
- this.isSaving = false;
- this.originalApps = [];
- /* istanbul ignore if */
- if ($scope.ngDialogData && $scope.ngDialogData.selectedUser && $scope.ngDialogData.dialogState) {
- this.selectedUser = $scope.ngDialogData.selectedUser;
- this.dialogState = $scope.ngDialogData.dialogState;
- this.isShowBack = false;
- if (this.dialogState === 2) {
- this.getAdminAppsRoles();
- }
- } else {
- this.isShowBack = true;
- this.selectedUser = null;
- this.dialogState = 1;
- }
-
- $log.info('NewAdminModalCtrl::initiated');
- this.appsOrder = [];
- };
-
- let orderList = (apps) => {
- this.appsOrder = [];
- for (var i = 0; i < apps.length; i++) {
- if (apps[i].isAdmin) {
- this.appsOrder.push(apps[i].id);
- }
- }
- };
-
- this.orderFilter = app => {
- if (!app || !app.id || !this.appsOrder.length) {
- return;
- }
- return this.appsOrder.indexOf(app.id);
- };
-
- this.getAdminAppsRoles = () => {
- if (!this.selectedUser || !this.selectedUser.orgUserId) {
- $log.error('No user is selected / searchUsers is InProgress');
- this.dialogState = 1;
- return;
- }
- adminsService.getAdminAppsRoles(this.selectedUser.orgUserId).then(roles => {
- $log.debug('apps roles res: ', JSON.stringify(roles));
- if (!roles.appsRoles) {
- return;
- }
-
- this.adminAppsRoles = [];
- for (var i = 0; i < roles.appsRoles.length; i++) {
- if (!roles.appsRoles[i].restrictedApp) {
- $log.debug('pushing: {id: ', roles.appsRoles[i].id,
- 'name: ', roles.appsRoles[i].appName,
- 'restrictedApp: ', roles.appsRoles[i].restrictedApp,
- 'isAdmin: ', roles.appsRoles[i].isAdmin, '}');
- this.adminAppsRoles.push({
- id: roles.appsRoles[i].id,
- appName: roles.appsRoles[i].appName,
- isAdmin: roles.appsRoles[i].isAdmin,
- restrictedApp: roles.appsRoles[i].restrictedApp
- });
- }
- }
- this.dialogState = 2;
- this.adminAppsRoles = this.adminAppsRoles.sort(getSortOrder("appName"));
-
- orderList(roles.appsRoles);
- if (this.appsOrder != null) {
- for (var j = 0; j < this.appsOrder.length; j++) {
- this.originalApps.push(this.appsOrder[j]);
- }
- }
- }).catch(err => {
- $log.error(err);
- });
- };
-
- let getSortOrder = (prop) => {
- return function (a, b) {
- if (a[prop].toLowerCase() > b[prop].toLowerCase()) {
- return 1;
- } else if (a[prop].toLowerCase() < b[prop].toLowerCase()) {
- return -1;
- }
- return 0;
- }
- }
-
- this.setSelectedUser = (user) => {
- $log.debug('selected user: ', user);
- this.selectedUser = user;
- };
-
- this.unadminApp = (app) => {
- confirmBoxService.deleteItem(app.appName).then(confirmed => {
- if (confirmed === true) {
- app.isAdmin = false;
- this.appsOrder.splice(this.appsOrder.indexOf(app.id), 1);
- }
- }).catch(err => {
- $log(err);
- });
- };
-
- this.updateAdminAppsRoles = () => {
- if (!this.selectedUser || !this.selectedUser.orgUserId || !this.adminAppsRoles) {
- return;
- }
- this.isSaving = true;
- $log.debug('going to update user: ' + this.selectedUser.orgUserId + ' with app roles: ' + JSON.stringify(this.adminAppsRoles));
- confirmBoxService.makeAdminChanges('Are you sure you want to make these admin changes?')
- .then(confirmed => {
- adminsService.updateAdminAppsRoles({
- orgUserId: this.selectedUser.orgUserId,
- appsRoles: this.adminAppsRoles
- })
- .then(res => {
- $log.debug('Admin apps roles updated successfully!', res);
- this.remindToAddUserIfNecessary();
- $scope.closeThisDialog(true);
- }).catch(err => {
- $log.error('NewAdminModalCtrl.updateAdminAppsRoles:: Failed - ' + err);
- }).finally(()=> {
- this.isSaving = false;
- })
- });
- };
-
- this.navigateBack = () => {
- if (this.dialogState === 1) {
- }
- if (this.dialogState === 2) {
- this.dialogState = 1;
- }
- };
-
- init();
-
- $scope.$watch('newAdmin.selectedNewApp', (newVal) => {
- if (!newVal || newVal.isAdmin === undefined) {
- return;
- }
- let app = _.find(this.adminAppsRoles, {id: newVal.id});
- if (app) {
- app.isAdmin = true;
- this.appsOrder.push(app.id);
- }
- this.selectedNewApp = null;
- });
-
- $scope.$on('$stateChangeStart', e => {
- e.preventDefault();
- });
-
- this.remindToAddUserIfNecessary = () => {
- var adminAddedToNewApp = false;
- if ((this.originalApps != null) && (this.originalApps.length > 0)) {
- for (var i = 0; i < this.appsOrder.length; i++) {
- var foundApp = false;
- for (var j = 0; j < this.originalApps.length; j++) {
- if (this.originalApps[j] == this.appsOrder[i]) {
- foundApp = true;
- }
- }
- if (foundApp == false) {
- adminAddedToNewApp = true;
- break;
- }
- }
- } else {
- adminAddedToNewApp = true;
- }
-
- if (adminAddedToNewApp == true) {
- confirmBoxService.confirm('Add this person as an application user? This allows them to access the application from OpenECOMP Portal. Press OK to go to the Add Users page.')
- .then(confirmed => {
- if (confirmed == true) {
- $location.path('/users');
- }
- });
- }
- }
-
- }
- }
- NewAdminModalCtrl.$inject = ['$log', 'adminsService', '$scope', 'confirmBoxService', 'utilsService', '$location'];
- angular.module('ecompApp').controller('NewAdminModalCtrl', NewAdminModalCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.controller.spec.js b/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.controller.spec.js
deleted file mode 100644
index c0f73078..00000000
--- a/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.controller.spec.js
+++ /dev/null
@@ -1,130 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-describe('Controller: NewAdminCtrl ', () => {
- beforeEach(module('ecompApp'));
-
- beforeEach(inject((_CacheFactory_)=> {
- _CacheFactory_.destroyAll();
- }));
-
-
- let newCtrl, $controller, $q, $rootScope, $log;
-
- beforeEach(inject((_$controller_, _$q_, _$rootScope_, _$log_)=> {
- [$controller, $q, $rootScope, $log] = [_$controller_, _$q_, _$rootScope_, _$log_];
- }));
-
- let deferredAdminAppsRoles, deferredUpdateRolesRes;
- let adminsServiceMock;
- beforeEach(()=> {
- [deferredAdminAppsRoles, deferredUpdateRolesRes] = [$q.defer(), $q.defer()];
-
- adminsServiceMock = jasmine.createSpyObj('adminsServiceMock', ['getAdminAppsRoles', 'updateAdminAppsRoles']);
-
- adminsServiceMock.getAdminAppsRoles.and.returnValue(deferredAdminAppsRoles.promise);
- adminsServiceMock.updateAdminAppsRoles.and.returnValue(deferredUpdateRolesRes.promise);
-
- newCtrl = $controller('NewAdminModalCtrl', {
- $log: $log,
- adminsService: adminsServiceMock,
- $scope: $rootScope
- });
- });
-
- it('should init default values when loading the controller', ()=> {
- expect(newCtrl.dialogState).toBe(1);
- expect(newCtrl.selectedUser).toBe(null);
- });
-
- it('should populate admin apps roles and move to the next screen when adminsService.getAdminAppsRoles succeeded', ()=> {
- let userApps = {appsRoles: [{id: 1, isAdmin: false}, {id: 2, isAdmin: true}]};
- deferredAdminAppsRoles.resolve(userApps);
-
- newCtrl.selectedUser = {orgUserId: 'orgUserId'};
-
- newCtrl.getAdminAppsRoles();
- $rootScope.$apply();
-
- expect(adminsServiceMock.getAdminAppsRoles).toHaveBeenCalledWith(newCtrl.selectedUser.userId);
- expect(newCtrl.adminAppsRoles).toEqual(userApps.appsRoles);
- expect(newCtrl.dialogState).toBe(2);
- });
-
- it('should log the error when adminsService.getAdminAppsRoles fails', ()=> {
- spyOn($log, 'error');
- deferredAdminAppsRoles.reject('some error');
-
- newCtrl.searchUsersInProgress = false;
- newCtrl.selectedUser = {orgUserId: 'orgUserId'};
-
- newCtrl.getAdminAppsRoles();
- $rootScope.$apply();
-
- expect($log.error).toHaveBeenCalled();
- });
- it('should log the error when trying to getAdminAppsRoles without selecting user ', ()=> {
- spyOn($log, 'error');
-
- newCtrl.searchUsersInProgress = false;
- newCtrl.selectedUser = null;
-
- newCtrl.getAdminAppsRoles();
- $rootScope.$apply();
-
- expect($log.error).toHaveBeenCalled();
- });
-
- it('should set isAdmin as true when adding app via the dropdown menu', ()=> {
- newCtrl.adminAppsRoles = [{id: 1, isAdmin: false},{id: 2, isAdmin: true}];
- $rootScope.$apply('newAdmin.selectedNewApp = null');
- $rootScope.$apply('newAdmin.selectedNewApp = {id: 1, isAdmin: true}');
-
- expect(newCtrl.adminAppsRoles[0].isAdmin).toBe(true);
- expect(newCtrl.selectedNewApp).toBe(null);
- });
-
- it('should close the modal when updating apps roles succeeded', ()=> {
- $rootScope.closeThisDialog = () => {};
- spyOn($rootScope,'closeThisDialog');
-
- newCtrl.selectedUser = {orgUserId: 'orgUserId'};
- newCtrl.adminAppsRoles = [{id: 1}];
-
- deferredUpdateRolesRes.resolve();
- newCtrl.updateAdminAppsRoles();
- $rootScope.$apply();
-
- expect(adminsServiceMock.updateAdminAppsRoles).toHaveBeenCalledWith({userId: newCtrl.selectedUser.userId, appsRoles: newCtrl.adminAppsRoles});
- expect($rootScope.closeThisDialog).toHaveBeenCalled();
- });
- it('should log the error when updating apps roles fails', ()=> {
- newCtrl.selectedUser = {orgUserId: 'orgUserId'};
- newCtrl.adminAppsRoles = [{id: 1}];
-
- spyOn($log,'error');
- deferredUpdateRolesRes.reject();
- newCtrl.updateAdminAppsRoles();
- $rootScope.$apply();
- expect($log.error).toHaveBeenCalled();
- });
-});
diff --git a/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.modal.html b/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.modal.html
deleted file mode 100644
index 0a8fc727..00000000
--- a/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.modal.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="new-admin-modal">
- <div class="search-users" ng-show="newAdmin.dialogState===1">
- <search-users search-title="New Admin"
- selected-user="newAdmin.selectedUser"></search-users>
- <div class="dialog-control">
- <div id="search-users-button-next" class="next-button" ng-click="newAdmin.selectedUser && newAdmin.getAdminAppsRoles()"
- ng-class="{disabled: !newAdmin.selectedUser}">Next
- </div>
- <div id="search-users-button-cancel" class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
- </div>
- <div id="div-admin-app-roles" class="admin-app-roles" ng-show="newAdmin.dialogState===2">
- <div class="title" id="title"
- ng-bind="newAdmin.selectedUser.firstName + ' ' + newAdmin.selectedUser.lastName + ' (' + newAdmin.selectedUser.orgUserId + ')'"></div>
- <div class="app-roles-main">
- <div id="div-app-roles-main-title" class="app-roles-main-title">
- <span class="left">Administrates:</span>
- </div>
- <div class="dropdown-container">
- <div class ="right_arrow_down"></div>
- <div class="select-input custom-select-wrap">
- <select class="new-administrated-app" id="dropdown-select-app"
- ui-select2 ng-model="newAdmin.selectedNewApp"
- data-placeholder="Select application"
- ng-options="app as app.appName for app in (filteredApps = (newAdmin.adminAppsRoles | filter:{isAdmin:'false'})) track by app.id "
- ng-disabled="!filteredApps.length">
- <option id="option-select-app" value="" disabled style="display: none;">Select application</option>
- </select>
- </div>
- </div>
- <div class="admin-roles-list">
- <div ng-repeat="app in (newAdmin.adminAppsRoles | orderBy:newAdmin.orderFilter) track by app.id" ng-show="app.isAdmin">
- <div id="select-app-{{app.appName.split(' ').join('-')}}" class="administrated-application" ng-bind="app.appName | elipsis: 57"></div>
- <i id="i-delete-application" class="ion-trash-b" ng-click="newAdmin.unadminApp(app)"></i>
- </div>
- </div>
- <div class="dialog-control">
- <span class="ecomp-save-spinner" ng-show="newAdmin.isSaving"></span>
- <div id="button-back" ng-show="newAdmin.isShowBack" class="back-button" ng-click="newAdmin.navigateBack()">Back</div>
- <div id="div-updateAdminAppsRoles" class="next-button" ng-click="newAdmin.updateAdminAppsRoles()"
- ng-class="{disabled: false}">Save
- </div>
- <div id="div-cancel-button" class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.modal.less b/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.modal.less
deleted file mode 100644
index b992c928..00000000
--- a/ecomp-portal-FE/client/app/views/admins/add-admin-dialogs/new-admin.modal.less
+++ /dev/null
@@ -1,99 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .new-admin-modal {
- display:block;
- overflow:auto;
- min-height: 450px;
-
- .search-users {
- }
-
- .admin-app-roles {
- .title {
- .n18r;
- border-bottom: @a 3px solid;
-
- }
-
- .app-roles-main {
- margin-top: 16px;
- .app-roles-main-title {
- .n14r;
- margin-bottom: 8px;
- .left {
- display: inline-block;
- }
- .right {
- display: inline-block;
- color: @a;
- float: right;
- cursor: pointer;
- }
- }
-
- .select-input{
- width: 460px;
- }
-
- .new-administrated-app {
- height: 30px;
- line-height: 30px;
-
- border: 1px solid @p;
- margin-bottom: 8px;
- border-radius: 2px;
- padding-left: 6px;
- padding-top: 0;
- .o14r;
- }
-
- .admin-roles-list {
- height: 240px;
- overflow-y: auto;
- }
-
- .administrated-application {
- width: 460px;
- height: 30px;
- border: 1px solid @p;
- margin-bottom: 8px;
- border-radius: 2px;
- padding: 6px;
- .o14r;
- display: inline-block;
-
- }
-
- .delete-application {
- .ico_trash_default;
- display: inline-block;
- vertical-align: 4px;
- cursor: pointer;
- position: relative;
- top: 6px;
- color: transparent;
- margin-left: 8px;
- }
-
- }
-
- }
-}
-
diff --git a/ecomp-portal-FE/client/app/views/admins/admins.controller.js b/ecomp-portal-FE/client/app/views/admins/admins.controller.js
deleted file mode 100644
index 402ff9d6..00000000
--- a/ecomp-portal-FE/client/app/views/admins/admins.controller.js
+++ /dev/null
@@ -1,151 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class AdminsCtrl {
- constructor($log, adminsService, applicationsService, ngDialog) {
-
- let allPortalsFilterObject = {index: 0, title: 'All applications', value: ''};
-
- let updateTableData = () => {
- this.isLoadingTable = true;
- adminsService.getAccountAdmins().then(res=> {
- if (!res || !res.length) {
- $log.info('AdminsCtrl::updateTableData: no admins err handling');
- this.adminsTableData = [];
- return;
- }
- this.adminsTableData = res;
- }).catch(err=> {
- $log.error('AdminsCtrl::updateTableData error: ', err);
- }).finally(() => {
- this.isLoadingTable = false;
- });
- };
-
- let init = () => {
- $log.info('AdminsCtrl:: ::initializing...');
- this.isLoadingTable = false;
- this.availableApps = [allPortalsFilterObject];
- this.filterByApp = this.availableApps[0];
-
- /* Table general configuration params*/
- this.searchString= '';
- /*Table data*/
- this.adminsTableHeaders = ['First Name', 'Last Name', 'User ID', 'Applications'];
- this.adminsTableData = [];
- updateTableData();
- };
-
- applicationsService.getAvailableApps().then(res=> {
- this.availableApps = [allPortalsFilterObject];
- var res1 = res.sort(getSortOrder("title"));
- var realAppIndex = 1;
- for(let i=1; i<=res1.length; i++){
- if (!res1[i-1].restrictedApp) {
- $log.debug('AdminsCtrl:getAvailableApps:: pushing: {index: ', realAppIndex, 'title: ', res1[i - 1].title,
- '| value: ', res1[i -1].value, '}');
- this.availableApps.push({
- index: realAppIndex,
- title: res1[i - 1].title,
- value: res1[i - 1].value
- });
- realAppIndex = realAppIndex + 1;
- } else {
- $log.debug('AdminsCtrl:getAvailableApps:: Restricted/URL only App will not be used = ' + res1[i - 1].title);
- }
- }
- }).catch(err=> {
- $log.error(err);
- this.availableApps = [allPortalsFilterObject];
- });
-
- let getSortOrder = (prop) => {
- return function(a, b) {
- if (a[prop].toLowerCase() > b[prop].toLowerCase()) {
- return 1;
- } else if (a[prop].toLowerCase() < b[prop].toLowerCase()) {
- return -1;
- }
- return 0;
- }
- }
-
- init();
-
- this.portalsRowFilter = (input) => {
- if (this.filterByApp.value === '') {
- return true;
- }
- return _.find(input.apps, {appName: this.filterByApp.value}) !== undefined;
- };
-
- this.openAddNewAdminModal = (user) => {
- let data = null;
- if(user){
- data = {
- dialogState: 2,
- selectedUser:{
- orgUserId: user.orgUserId,
- firstName: user.firstName,
- lastName: user.lastName
- }
- }
- }
- ngDialog.open({
- templateUrl: 'app/views/admins/add-admin-dialogs/new-admin.modal.html',
- controller: 'NewAdminModalCtrl',
- controllerAs: 'newAdmin',
- data: data
- }).closePromise.then(needUpdate => {
- if(needUpdate.value === true){
- $log.debug('AdminsCtrl:openAddNewAdminModal:: updating table data...');
- updateTableData();
- }
- });
- };
-
- this.openEditUserModal = (loginId) => {
- var data = {
- loginId : loginId,
- updateRemoteApp : false,
- appId : this.selectedApp!=null?this.selectedApp.id:''
- }
- var modalInstance = ngDialog.open({
- templateUrl: 'app/views/header/user-edit/edit-user.tpl.html',
- controller: 'editUserController',
- data: data,
- resolve: {
- message: function message() {
- var message = {
- type: 'Contact',
- };
- return message;
- }
- }
- }).closePromise.then(needUpdate => {
- updateTableData();
- });
- }
- }
- }
- AdminsCtrl.$inject = ['$log', 'adminsService', 'applicationsService', 'ngDialog'];
- angular.module('ecompApp').controller('AdminsCtrl', AdminsCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/admins/admins.controller.spec.js b/ecomp-portal-FE/client/app/views/admins/admins.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/admins/admins.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/admins/admins.less b/ecomp-portal-FE/client/app/views/admins/admins.less
deleted file mode 100644
index cdf0c0f5..00000000
--- a/ecomp-portal-FE/client/app/views/admins/admins.less
+++ /dev/null
@@ -1,47 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .admins-page-main {
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
- .admins-table {
- width: @table-width;
- margin: @table-margin;
-
- .table-control {
- .table-dropdown-filter{
- width: @table-dropdown-filter-width;
- display: @table-dropdown-filter-display;
- }
- }
-
- .table-body {
- cursor: pointer;
- }
- }
-}
-
diff --git a/ecomp-portal-FE/client/app/views/admins/admins.tpl.html b/ecomp-portal-FE/client/app/views/admins/admins.tpl.html
deleted file mode 100644
index 543b9ead..00000000
--- a/ecomp-portal-FE/client/app/views/admins/admins.tpl.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-main">
- <div class="w-ecomp-main-container">
- <div class="admins-page-main" id="contentId">
- <div id="title" class="w-ecomp-main-view-title">Admins</div>
- <div class="admins-table">
- <div class="table-control">
- <div class="table-dropdown-filter">
- <div class="c-ecomp-att-abs-select default">
- <div class="form-field" id="dropdown-apps"
- att-select="admins.availableApps"
- ng-model="admins.filterByApp"></div>
- </div>
- </div>
- <input id="input-table-search" class="table-search" type="text"
- placeholder="Search in entire table"
- ng-model="admins.searchString"/>
- <div id="Add-Admin-button" class="add-button" ng-click="admins.openAddNewAdminModal()">Add Admin</div>
- </div>
- <span class="ecomp-spinner" ng-show="admins.isLoadingTable"></span>
- <div class="c-ecomp-att-abs-table default" ng-hide="admins.isLoadingTable">
- <table att-table
- table-data="admins.adminsTableData"
- search-string="admins.searchString"
- view-per-page="admins.viewPerPageIgnored"
- current-page="admins.currentPageIgnored"
- total-page="admins.totalPageIgnored">
- <thead att-table-row type="header">
- <tr>
- <th id="th-first-name" att-table-header key="firstName" default-sort="a">{{admins.adminsTableHeaders[0]}}</th>
- <th id="th-last-name" att-table-header key="lastName" sortable="true">{{admins.adminsTableHeaders[1]}}</th>
- <th id="th-userId" att-table-header key="userId" sortable="true">{{admins.adminsTableHeaders[2]}}</th>
- <th id="th-apps" att-table-header key="apps" sortable="false">{{admins.adminsTableHeaders[3]}}</th>
- </tr>
- </thead>
- <tbody att-table-row type="body"
- class="table-body"
- style="overflow-y:scroll"
- row-repeat="rowData in admins.adminsTableData | filter: admins.portalsRowFilter">
- <tr ng-click="admins.openAddNewAdminModal(rowData)" >
- <td att-table-body class="td-first">
- <div id="div-{{rowData.userId}}-{{rowData.firstName}}" ng-bind="rowData.firstName"></div>
- </td>
- <td att-table-body>
- <div id="div-{{rowData.userId}}-{{rowData.lastName}}" ng-bind="rowData.lastName"></div>
- </td>
- <td att-table-body>
- <div id="div-{{rowData.userId}}" style="float: left;" ng-bind="rowData.orgUserId"></div>
- <div>
- <span style="float: left; margin-left:15px" class="ion-person" ng-click="admins.openEditUserModal(rowData.orgUserId);$event.stopPropagation()"></span>
- </div>
- </td>
- <td att-table-body>
- <div id="apps-{{rowData.userId}}-{{app.appName}}" ng-repeat="app in rowData.apps" ng-bind="app.appName"></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
-
-</div>
diff --git a/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.controller.js b/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.controller.js
deleted file mode 100644
index 8c6ffe48..00000000
--- a/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.controller.js
+++ /dev/null
@@ -1,244 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class AppDetailsModalCtrl {
- constructor($scope, $log, applicationsService, errorMessageByCode,
- ECOMP_URL_REGEX,userProfileService, $cookies, confirmBoxService) {
- let emptyImg = null;
- this.emptyImgForPreview = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
-
- let newAppModel = {
- 'id': null,
- 'name': null,
- 'imageUrl': null,
- 'description': null,
- 'notes': null,
- 'url': null,
- 'alternateUrl': null,
- 'restUrl': null,
- 'isOpen': false,
- 'username': null,
- 'appPassword': null,
- 'thumbnail': emptyImg,
- 'isEnabled': true,
- 'restrictedApp': false
- };
-
- let init = () => {
- $log.info('AppDetailsModalCtrl::init');
- this.isSaving = false;
- if($scope.ngDialogData && $scope.ngDialogData.app){
- $log.debug('AppDetailsModalCtrl:init:: Edit app mode for', $scope.ngDialogData.app);
- this.isEditMode = true;
- this.app = _.clone($scope.ngDialogData.app);
- }else{
- $log.debug('AppDetailsModalCtrl:init:: New app mode');
- this.isEditMode = false;
- this.app = _.clone(newAppModel);
- }
- this.originalImage = null
- };
-
- this.ECOMP_URL_REGEX = ECOMP_URL_REGEX;
-
- this.imageApi = {};
- this.removeImage = () => {
- $log.debug('AppDetailsModalCtrl:removeImage:: entering removeImage');
-
- confirmBoxService.confirm("Are you sure you want to remove the image?").then(isConfirmed => {
- if(isConfirmed){
- this.imageApi.clearFile();
- this.app.thumbnail = emptyImg;
- this.originalImage = null;
- this.app.imageUrl = null;
- }
- }).catch(err => {
- $log.error('AppDetailsModalCtrl:removeImage error:: ',err);
- });
- };
-
- this.conflictMessages = {};
- this.scrollApi = {};
- let handleConflictErrors = err => {
- if(!err.data){
- return;
- }
- if(!err.data.length){
- err.data = [err.data]
- }
- _.forEach(err.data, item => {
- _.forEach(item.fields, field => {
- this.conflictMessages[field.name] = errorMessageByCode[item.errorCode];
- $scope.appForm[field.name].$setValidity('conflict', false);
- watchOnce[field.name]();
- });
- });
- this.scrollApi.scrollTop();
- };
-
- let resetConflict = fieldName => {
- delete this.conflictMessages[fieldName];
- if($scope.appForm[fieldName]){
- $scope.appForm[fieldName].$setValidity('conflict', true);
- }
- };
-
-
- let emptyCookies = () => {
- $log.debug('AppDetailsModalCtrl:emptyCookies:: entering emptyCookies');
- userProfileService.getUserProfile()
- .then(profile=> {
- $scope.userId = profile.orgUserId;
- $log.debug('AppDetailsModalCtrl:emptyCookies for the following userId: ' + profile.orgUserId);
- if ($cookies.getObject($scope.userId + '_apps') != undefined && $cookies.getObject($scope.userId + '_apps') != null) {
- $cookies.remove($scope.userId + '_apps');
- $log.debug('AppDetailsModalCtrl:emptyCookies removed: ' + $scope.userId + '_apps');
- }
- if ($cookies.getObject($scope.userId + '_widget') != undefined && $cookies.getObject($scope.userId + '_widget') != null) {
- $cookies.remove($scope.userId + '_widget');
- $log.debug('AppDetailsModalCtrl:emptyCookies removed: ' + $scope.userId + '_widget');
- }
- }).catch(err => {
- $log.error('AppDetailsModalCtrl:emptyCookies error:: '+ JSON.stringify(err));
- });
- };
-
-
- let watchOnce = {
- name: () => {
- let unregisterName = $scope.$watch('appDetails.app.name', (newVal, oldVal) => {
- if(newVal.toLowerCase() !== oldVal.toLowerCase()){
- resetConflict('name');
- unregisterName();
- }
- });
- },
- url: () => {
- let unregisterUrl = $scope.$watch('appDetails.app.url', (newVal, oldVal) => {
- if(newVal.toLowerCase() !== oldVal.toLowerCase()) {
- resetConflict('url');
- unregisterUrl();
- }
- });
- }
- };
-
- this.saveChanges = () => {
- if($scope.appForm.$invalid){
- return;
- }
- this.isSaving = true;
-
- if (this.app.restrictedApp) {
- this.app.restUrl = null;
- this.app.isOpen = true;
- this.app.username = null;
- this.app.appPassword = null;
- this.app.uebTopicName = null;
- this.app.uebKey = null;
- this.app.uebSecret = null;
- }
- if(this.isEditMode){
- applicationsService.updateOnboardingApp(this.app)
- .then(() => {
- $log.debug('AppDetailsModalCtrl:updateOnboardingApp:: App update succeeded!');
- $scope.closeThisDialog(true);
- emptyCookies();
- }).catch(err => {
- if(err.status === 409){
- handleConflictErrors(err);
- }
- if(err.status === 500){
- confirmBoxService.showInformation('There was a problem updating the application changes. ' +
- 'Please try again later.').then(isConfirmed => {});
- }
- if(err.status === 403){
- confirmBoxService.showInformation('There was a problem updating the application changes. ' +
- 'Please try again. If the problem persists, then try again later.').then(isConfirmed => {});
- }
- $log.error('applicationsService:updateOnboardingApp error status:: '+ err.status);
- $log.error('applicationsService:updateOnboardingApp error:: '+ JSON.stringify(err));
- }).finally(()=>{
- this.isSaving = false;
- var objOffsetVersion = objAgent.indexOf("MSIE");
- if (objOffsetVersion != -1) {
- $log.debug('AppDetailsModalCtrl:updateOnboardingApp:: Browser is IE, forcing Refresh');
- $window.location.reload();
- }
- });
- }else{
- applicationsService.addOnboardingApp(this.app)
- .then(() => {
- $log.debug('App creation succeeded!');
- $scope.closeThisDialog(true);
- emptyCookies();
- }).catch(err => {
- if(err.status === 409){
- handleConflictErrors(err);
- }
- if(err.status === 500){
- confirmBoxService.showInformation('There was a problem adding the application information. ' +
- 'Please try again later.').then(isConfirmed => {});
- }
- $log.error('applicationsService:addOnboardingApp error status:: '+ err.status);
- $log.error('applicationsService:addOnboardingApp error:: '+ JSON.stringify(err));
- }).finally(()=>{
- this.isSaving = false;
- var objOffsetVersion = objAgent.indexOf("MSIE");
- if (objOffsetVersion != -1) {
- $log.debug('applicationsService:addOnboardingApp:: Browser is IE, forcing Refresh');
- $window.location.reload();
- }
- });
- }
- };
-
-
- init();
-
- $scope.$watch('appDetails.originalImage', (newVal, oldVal) => {
- if((!newVal || !newVal.resized) && !this.app.imageUrl){
- if (!newVal) {
- $log.debug('applicationsService:$scope.$watch:: originalImage: newVal is null');
- } else {
- $log.debug('applicationsService:$scope.$watch:: originalImage: newVal is not resized and no imageUrl');
- }
- this.app.imageUrl = null;
- this.app.thumbnail = emptyImg;
- return;
- }
-
- if(!(_.isEqual(newVal, oldVal))){
- $log.debug('applicationsService:$scope.$watch:: thumbnail updated!');
- this.app.imageUrl = null;
- this.app.thumbnail = newVal.resized.dataURL;
- }
- });
-
- $scope.$on('$stateChangeStart', e => {
- e.preventDefault();
- });
- }
- }
- AppDetailsModalCtrl.$inject = ['$scope', '$log', 'applicationsService', 'errorMessageByCode',
- 'ECOMP_URL_REGEX','userProfileService','$cookies', 'confirmBoxService'];
- angular.module('ecompApp').controller('AppDetailsModalCtrl', AppDetailsModalCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.controller.spec.js b/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.modal.html b/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.modal.html
deleted file mode 100644
index 57f4e61d..00000000
--- a/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.modal.html
+++ /dev/null
@@ -1,183 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="application-details-modal">
- <div class="title">Application Details</div>
- <div class="app-properties-main" scroll-top="appDetails.scrollApi">
- <form name="appForm" novalidate autocomplete="off">
- <script type="text/javascript">
- document.getElementById("appForm").reset();
- </script>
- <div class="left-container">
- <div class="property">
- <input id="checkbox-app-is-restricted" type="checkbox" class="checkbox-field" ng-disabled="appDetails.isEditMode" ng-model="appDetails.app.restrictedApp" ng-checked="appDetails.app.restrictedApp"/>
- <div class="property-label checkbox-label">Hyperlink only application</div>
- </div>
- <div class="property required">
- <div class="property-label">Application Name</div>
- <input id="input-app-name" class="input-field" type="text"
- ng-model="appDetails.app.name"
- maxlength="100"
- name="name"
- ng-pattern="/^[a-zA-Z0-9_\-\s\&]*$/"
- required/>
- <div id="error-container-conflict" class="error-container" ng-show="appDetails.conflictMessages.name" id="conflictMessages-name">
- <small id="app-name-error-conflict" class="err-message" ng-bind="appDetails.conflictMessages.name"></small>
- </div>
- <div id="error-container-edit" class="error-container" ng-show="appForm.name.$dirty || appDetails.isEditMode">
- <div ng-messages="appForm.name.$error" class="error-container">
- <small id="app-name-error-required" class="err-message" ng-message="required">Application name is required</small>
- <small id="app-name-error-alpha-num" class="err-message" ng-message="pattern">Application name must be alphanumeric</small>
- </div>
- </div>
- </div>
- <div class="property required">
- <div id="url-property-label" class="property-label">URL</div>
- <input class="input-field" id="input-app-url"
- ng-model="appDetails.app.url"
- maxlength="256"
- name="url"
- type="url" placeholder="https://"
- ng-pattern="appDetails.ECOMP_URL_REGEX"
- required />
- <div class="error-container" ng-show="appDetails.conflictMessages.url" id="div-app-name-err-url">
- <small class="err-message" ng-bind="appDetails.conflictMessages.url"></small>
- </div>
- <div class="error-container" ng-show="appForm.url.$dirty || appDetails.isEditMode">
- <div ng-messages="appForm.url.$error" class="error-container">
- <small id="error-app-url-req" class="err-message" ng-message="required">Application URL is required</small>
- <small id="error-app-url-invalid" class="err-message" ng-show="appForm.url.$error.url">Application URL must be a valid URL</small>
- </div>
- </div>
- </div>
-
- <div class="property" ng-show="!appDetails.app.restrictedApp">
- <div class="property-label">Rest API URL</div>
- <input class="input-field" id="input-app-rest-url"
- ng-model="appDetails.app.restUrl"
- name="restUrl"
- type="url" placeholder="https://"
- ng-pattern="appDetails.ECOMP_URL_REGEX"
- maxlength="256"/>
- <div class="error-container" ng-show="appForm.restUrl.$dirty || appDetails.isEditMode">
- <div ng-messages="appForm.restUrl.$error" class="error-container">
- <small class="err-message" ng-show="appForm.restUrl.$error.url">Application REST URL must be a valid URL</small>
- </div>
- </div>
- </div>
-
- <div class="property required" ng-show="!appDetails.app.restrictedApp">
- <div id="username-property-label" class="property-label">Username</div>
- <input class="input-field" type="text"
- ng-model="appDetails.app.username"
- name="username"
- maxlength="256"
- ng-required="!appDetails.app.restrictedApp"/>
- <div class="error-container" ng-show="appForm.username.$dirty || appDetails.isEditMode">
- <div ng-messages="appForm.username.$error" class="error-container">
- <small id="error-appusername-reqd" class="err-message" ng-message="required">Rest Api Username is required</small>
- </div>
- </div>
- </div>
-
- <div class="property required" ng-show="!appDetails.app.restrictedApp">
- <div id="pwd-property-label" class="property-label">Password</div>
- <input class="input-field" type="password" id="input-mylogins-password"
- ng-model="appDetails.app.appPassword" autocomplete="new-password"
- name="appPassword"
- maxlength="256"
- ng-required="!appDetails.app.restrictedApp"/>
- <div class="error-container" ng-show="appForm.appPassword.$dirty || appDetails.isEditMode">
- <div ng-messages="appForm.appPassword.$error" class="error-container">
- <small id="error-mylogins-password-reqd" class="err-message" ng-message="required">Rest Api Password is required</small>
- </div>
- </div>
- </div>
-
-
- <div class="property" ng-show="!appDetails.app.restrictedApp">
- <div class="property-label">Communication Inbox</div>
- <input class="input-field" type="text" id="input-UEB-topicname"
- ng-model="appDetails.app.uebTopicName"
- name="uebTopicName" readonly="readonly"/>
- </div>
- <div class="property" ng-show="!appDetails.app.restrictedApp">
- <div class="property-label">Communication Key</div>
- <input class="input-field" type="text" id="input-UEB-communication-key"
- ng-model="appDetails.app.uebKey"
- name="uebKey" readonly="readonly" />
- </div>
- <div class="property" ng-show="!appDetails.app.restrictedApp">
- <div class="property-label">Communication Secret</div>
- <input class="input-field" type="text" id="input-UEB-communication-secret"
- ng-model="appDetails.app.uebSecret"
- name="uebSecret" readonly="readonly" />
- </div>
-
- </div>
- <div class="right-container">
- <div class="property">
- <div class="property-label">Upload Image</div>
- <input type="file" id="input-app-image-upload"
- class="input-file-field"
- accept="image/*"
- ng-model="appDetails.originalImage"
- name="appImage"
- image-upload="appDetails.originalImage"
- image-upload-resize-max-height="300"
- image-upload-resize-max-width="360"
- image-upload-resize-quality="0.7"
- image-upload-api="appDetails.imageApi"/>
-
- <div class="error-container" ng-show="appForm.appImage.$dirty">
- <div ng-messages="appForm.appImage.$error" class="error-container">
- <small id="error-app-invalid-image" class="err-message" ng-message="mimeType">Uploaded file must be an image</small>
- <small id="error-app-invalid-image-size" class="err-message" ng-message="imageSize">Image file must be smaller than 1MB</small>
- </div>
- </div>
- <div class="property-label preview">
- <span class="left-label">Preview</span>
- <span class="remove" ng-click="appDetails.removeImage()">Remove</span>
- </div>
- <img id="image-app-preview" class="image-preview" ng-src="{{appDetails.app.imageUrl || appDetails.app.thumbnail || appDetails.emptyImgForPreview}}"/>
-
- <div class="property">
- <input id="checkbox-app-is-open" type="checkbox" class="checkbox-field" ng-model="appDetails.app.isOpen" ng-checked="appDetails.app.isOpen || appDetails.app.restrictedApp" ng-disabled="appDetails.app.restrictedApp" />
- <div class="property-label checkbox-label">Allow guest access</div>
- </div>
- <div class="property">
- <input id="checkbox-app-is-enabled" type="checkbox" class="checkbox-field" ng-model="appDetails.app.isEnabled"/>
- <div class="property-label checkbox-label">Active</div>
- </div>
- </div>
- </div>
- </form>
- </div>
- <div class="dialog-control">
- <span class="ecomp-save-spinner" ng-show="appDetails.isSaving"></span>
- <div id="button-save-app" class="next-button" ng-class="{disabled: appForm.$invalid}" ng-click="appDetails.saveChanges()">Save</div>
- <div id="button-app-cancel" class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
-</div>
-
-<script type="application/javascript">
- $(document).ready(function(){
- $(".ngdialog-content").css("top","-150px")
- });
-</script>
diff --git a/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.modal.less b/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.modal.less
deleted file mode 100644
index 6db4845a..00000000
--- a/ecomp-portal-FE/client/app/views/applications/application-details-dialog/application-details.modal.less
+++ /dev/null
@@ -1,122 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .application-details-modal {
- height: 700px;
-
- .title {
- .n18r;
- border-bottom: @a 3px solid;
-
- }
-
- .app-properties-main{
- padding-left: 16px;
- padding-top: 16px;
- padding-bottom: 16px;
- height: 630px;
- overflow-y: auto;
-
-
- .left-container{
- display: inline-block;
- width: 48%;
-
- }
- .right-container{
- display: inline-block;
- width: 48%;
- float: right;
-
-
- }
-
- .property{
- position: relative;
- margin-bottom: 18px;
- .property-label{
- .o14r;
- }
- .checkbox-label{
- display: inline-block;
- padding-left: 3px;
- }
- .checkbox-field{
- padding: 0;
- margin: 0;
- vertical-align: middle;
- position: relative;
- top: -1px;
- }
- .preview{
- width: 220px;
- margin-top: 22px;
- display: block;
-
- .left-label{
- display:inline-block;
- float: left;
- }
- .remove{
- cursor: pointer;
- display: inline-block;
- float: right;
- .a14r;
- }
- }
-
- .input-field{
- .custom-input-field;
- width: 220px;
- }
-
- .input-file-field{
- width: 220px;
- }
- .select-field {
- .custom-select-field;
- }
-
- .image-preview{
- background: #f0f0f0;
- background-size: cover;
- width: 220px;
- height: 184px;
- margin-top: 10px;
- border: 2px solid #e8e8e8;
- border-radius: 4px;
- }
-
- .error-container{
- position: absolute;
- width: 220px;
- display: block;
- height: 12px;
- line-height: 12px;
-
- .err-message{
- color: red;
- font-size: 10px;
- }
- }
- }
-
- }
-
-}
diff --git a/ecomp-portal-FE/client/app/views/applications/applications.controller.js b/ecomp-portal-FE/client/app/views/applications/applications.controller.js
deleted file mode 100644
index 7214fd2d..00000000
--- a/ecomp-portal-FE/client/app/views/applications/applications.controller.js
+++ /dev/null
@@ -1,111 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class ApplicationsCtrl {
- constructor($log, applicationsService, confirmBoxService, ngDialog,userProfileService,$cookies) {
- $log.info('ApplicationsCtrl::init: Starting up');
-
- this.emptyImgForPreview = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
- let getOnboardingApps = () => {
- this.isLoadingTable = true;
- applicationsService.getOnboardingApps()
- .then(appsList => {
- this.appsList = appsList;
- }).catch(err => {
- $log.error(err);
- }).finally(()=> {
- this.isLoadingTable = false;
- });
- };
-
- let init = () => {
- this.isLoadingTable = false;
- getOnboardingApps();
-
- this.searchString = '';
- this.appsTableHeaders = [
- {name: 'Application Name', value: 'name', isSortable: true},
- {name: 'Active', value: 'isEnabled', isSortable: true},
- {name: 'Integration Type', value: 'restrictedApp', isSortable: true},
- {name: 'Guest Access', value: 'isOpen', isSortable: true},
- {name: 'URL', value: 'url', isSortable: true},
- {name: 'REST URL', value: 'restUrl', isSortable: true},
- {name: 'Communication Topic', value: 'uebTopicName', isSortable: true},
- {name: 'Communication Key', value: 'uebKey', isSortable: true},
- {name: 'Communication Secret', value: 'uebSecret', isSortable: true},
- ];
- this.appsList = [];
- };
-
- init();
-
- this.openAddNewAppModal = (selectedApp) => {
- let data = null;
- if (selectedApp) {
- if (!selectedApp.id) {
- $log.error('App id not found');
- return;
- }
- data = {
- app: selectedApp
- }
- }
- ngDialog.open({
- templateUrl: 'app/views/applications/application-details-dialog/application-details.modal.html',
- controller: 'AppDetailsModalCtrl',
- controllerAs: 'appDetails',
- data: data
- }).closePromise.then(needUpdate => {
- if (needUpdate.value === true) {
- $log.debug('ApplicationsCtrl:openAddNewAppModal:: updating table data...');
- getOnboardingApps();
- }
- });
-
-
- };
-
- this.deleteApp = application => {
- $log.debug('ApplicationsCtrl:deleteApp:: ', application.name);
-
- confirmBoxService.deleteItem(application.name).then(isConfirmed => {
- if(isConfirmed){
- if(!application || !application.id){
- $log.error('ApplicationsCtrl:deleteApp:: No application or ID... cannot delete');
- return;
- }
- applicationsService.deleteOnboardingApp(application.id).then(() => {
- this.appsList.splice(this.appsList.indexOf(application), 1);
- }).catch(err => {
- $log.error(err);
- });
- }
- }).catch(err => {
- $log.error('ApplicationsCtrl:deleteApp error:: ', err);
- });
-
- };
-
- }
- }
- ApplicationsCtrl.$inject = ['$log', 'applicationsService', 'confirmBoxService', 'ngDialog','userProfileService','$cookies'];
- angular.module('ecompApp').controller('ApplicationsCtrl', ApplicationsCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/applications/applications.controller.spec.js b/ecomp-portal-FE/client/app/views/applications/applications.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/applications/applications.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/applications/applications.less b/ecomp-portal-FE/client/app/views/applications/applications.less
deleted file mode 100644
index eed77ac2..00000000
--- a/ecomp-portal-FE/client/app/views/applications/applications.less
+++ /dev/null
@@ -1,45 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .applications-page-main{
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
- .apps-table {
- width: @table-width;
- margin: @table-margin;
-
- .delete-app{
- .ico_trash_default;
- }
- .small-thumbnail{
- width: 72px;
- height: 60px;
- border: 1px solid #d8d8d8;
- border-radius: 2px;
- }
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/applications/applications.tpl.html b/ecomp-portal-FE/client/app/views/applications/applications.tpl.html
deleted file mode 100644
index a27821b1..00000000
--- a/ecomp-portal-FE/client/app/views/applications/applications.tpl.html
+++ /dev/null
@@ -1,100 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-main">
- <div class="w-ecomp-main-container">
- <div class="applications-page-main" id="contentId">
- <div id='app-title' class="w-ecomp-main-view-title">Application Onboarding</div>
- <div class="apps-table">
- <div class="table-control">
- <input class="table-search"
- id="app-input-table-search"
- type="text"
- placeholder="Search by Application Name"
- ng-model="searchAppName"/>
- <div id="button-openAddNewApp" class="add-button" ng-click="apps.openAddNewAppModal()">Add App</div>
- </div>
- <span class="ecomp-spinner" ng-show="apps.isLoadingTable"></span>
- <div class="c-ecomp-att-abs-table default" ng-hide="apps.isLoadingTable" id="div-app-table">
- <table att-table id="app-onboarding-table"
- table-data="apps.appsList"
- search-string="apps.searchString"
- view-per-page="apps.viewPerPageIgnored"
- current-page="apps.currentPageIgnored"
- total-page="apps.totalPageIgnored">
- <thead att-table-row type="header" id="att-table-row">
- <tr>
- <th id="app-header-delete" att-table-header sortable="false">Delete</th>
- <th id="app-header-Thumbnail" att-table-header sortable="false">Thumbnail</th>
- <th id="app-header-AppName" att-table-header sortable="true">Application Name</th>
- <th id="app-header-Active" att-table-header sortable="false">Active?</th>
- <th id="app-header-IntType" att-table-header sortable="false">Integration Type</th>
- <th id="app-header-Guest" att-table-header sortable="false">Guest Access</th>
- <th id="app-header-URL" att-table-header sortable="false">URL</th>
- <th id="app-header-RESTURL" att-table-header sortable="false">REST URL</th>
- <th id="app-header-Topic" att-table-header sortable="false">Communication Topic</th>
- <th id="app-header-CommKey" att-table-header sortable="false">Communication Key</th>
- <th id="app-header-Secret" att-table-header sortable="false">Communication Secret</th>
- </tr>
- </thead>
- <tbody att-table-row type="body"
- class="table-body"
- row-repeat="rowData in apps.appsList | filter:{name:searchAppName} | orderBy: 'name'">
- <tr>
- <td ng-click="apps.deleteApp(rowData)">
- <div id="{{$index}}-app-delete" class="ion-trash-b"></div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <img id="{{$index}}-app-imageUrl" class="small-thumbnail" ng-src="{{rowData.imageUrl || apps.emptyImgForPreview}}">
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-name">{{rowData.name}}</div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-isEnabled">{{(rowData.isEnabled) ? 'yes' : 'no'}}</div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-restrictedApp">{{(rowData.restrictedApp) ? 'link' : 'standard'}}</div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-isOpen">{{(rowData.isOpen) ? 'yes' : 'no'}}</div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-url">{{rowData.url | elipsis: 27}}</div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-restUrl">{{rowData.restUrl | elipsis: 27}}</div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-uebTopicName">{{rowData.uebTopicName}}</div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-uebKey">{{rowData.uebKey}}</div>
- </td>
- <td ng-click="apps.openAddNewAppModal(rowData)">
- <div id="{{$index}}-uebSecret">{{rowData.uebSecret}}</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/catalog/catalog.controller.js b/ecomp-portal-FE/client/app/views/catalog/catalog.controller.js
deleted file mode 100644
index 652c0886..00000000
--- a/ecomp-portal-FE/client/app/views/catalog/catalog.controller.js
+++ /dev/null
@@ -1,166 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError('Cannot call a class as a function');
- }
-}
-
-(function() {
- var HTTP_PROTOCOL_RGX = /https?:\/\//;
-
- var CatalogCtrl = function CatalogCtrl(catalogService, confirmBoxService,
- $log, $window, userProfileService, $scope, $timeout, $interval,
- $modal, ngDialog) {
-
- var _this = this;
-
- _classCallCheck(this, CatalogCtrl);
-
- // activate spinner
- this.isLoading = true;
- $scope.getAppCatalogIsDone = false;
- $scope.radioValue = 'All';
- $scope.$watch('radioValue', function(newValue, oldValue) {
- var appCatalog = $scope.appCatalog;
- $scope.appCatalog = [];
- $scope.appCatalog = appCatalog;
-
-
- });
-
- this.catalogService = catalogService;
- this.userProfileService = userProfileService;
- $scope.demoNum = 1;
-
- this.getAccess = function(item) {
- if(!item.access)
- confirmBoxService.showDynamicInformation(item,
- 'app/views/catalog/information-box.tpl.html','CatalogConfirmationBoxCtrl'
- ).then(isConfirmed => {});
- };
-
- // Run this function when user clicks on checkbox.
- this.storeSelection = function(item) {
- // $log.debug('CatalogCtrl:storeSelection: item.id is ' + item.id + ', select is ' + item.select);
- var pendingFlag = false;
-
- if(item.access)
- pendingFlag = false;
- else
- pendingFlag = item.pending;
-
-
-
-
- var appData = {
- appId : item.id,
- select : item.select,
- pending : pendingFlag // TODO
- };
- catalogService.updateAppCatalog(appData).then(
- function(result) {
- // $log.debug('CatalogCtrl:storeSelection result is ', result);
- })['catch'](function(err) {
- $log.error('CatalogCtrl:storeSelection: exception: ', err);
- });
- };
-
- userProfileService
- .getUserProfile()
- .then(
- function(profile) {
- $scope.attuid = profile.attuid;
- $scope.appCatalog = [];
-
- // applicationsService.getUserApps()
- catalogService
- .getAppCatalog()
- .then(
- function(res) {
- // $log.info(res);
- _this.apps = res;
- var rowNo = 0;
- for (var i = 0; i < _this.apps.length; i++) {
- $scope.appCatalog[i] = {
- sizeX : 2,
- sizeY : 2,
- id : _this.apps[i].id,
- headerText : _this.apps[i].name,
- imageLink : _this.apps[i].thumbnail
- || _this.apps[i].imageUrl,
- url : _this.apps[i].url,
- restricted : _this.apps[i].restricted,
- select : (_this.apps[i].select || (_this.apps[i].access && _this.apps[i].pending)),
- access : _this.apps[i].access,
- pending: _this.apps[i].pending
- };
- }
- //$log.debug('CatalogCtrl: getAppCatalog count : '
- // + $scope.appCatalog.length);
- _this.isLoading = false;
- $scope.getAppCatalogIsDone = true;
- })['catch'](function(err) {
- $log.error('CatalogCtrl: failed to get app list: ', err);
- _this.isLoading = false;
- $scope.getAppCatalogIsDone = true;
- });
- });
-
- this.gridsterOpts = {
- columns : 12,
- colWidth : 95,
- rowHeight : 95,
- margins : [ 20, 20 ],
- outerMargin : true,
- pushing : true,
- floating : true,
- swapping : true,
- };
-
- if (getParameterByName('noUserError') != null) {
- if (getParameterByName('noUserError') == "Show") {
- $("#errorInfo").show();
- }
-
- }
- };
-
- CatalogCtrl.$inject = [ 'catalogService', 'confirmBoxService', '$log',
- '$window', 'userProfileService', '$scope', '$timeout', '$interval',
- '$modal', 'ngDialog' ];
- angular.module('ecompApp').controller('CatalogCtrl', CatalogCtrl);
-})();
-
-function getParameterByName(name, url) {
- if (!url)
- url = window.location.href;
- name = name.replace(/[\[\]]/g, "\\$&");
- var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex
- .exec(url);
- if (!results)
- return '';
- if (!results[2])
- return '';
- return results[2].replace(/\+/g, " ");
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/catalog/catalog.less b/ecomp-portal-FE/client/app/views/catalog/catalog.less
deleted file mode 100644
index 9385c8c5..00000000
--- a/ecomp-portal-FE/client/app/views/catalog/catalog.less
+++ /dev/null
@@ -1,439 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-.w-ecomp-app-catalog {
- //.bg_u;//white for 1702
- .bg_w; // gray for 1610
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
- .gridster-item-container .gridster-item-body {
- overflow-y:auto;
- overflow-x:hidden;
- }
-
- .app-catalog-container {
- .content_justify;
- position: relative;
- padding: 0 0 32px 0;
- width: 100%;
-
- .app-catalog-title {
- .a24r;
- margin: auto;
- .content_justify;
- }
- .app-catalog-list {
- min-height: 90vh;
- //display: flex;
- justify-content: center;
- flex-flow: row wrap;
- width: 1170px;
-
- margin: auto;
- margin-bottom: 63px;
-
- .app-gridster-header {
- background-color: @u;
- font-size:12px;
- overflow:hidden
- }
-
- .app-gridster-footer {
- background-color: @u;
- }
-
- }
- }
-}
-
-.build-number {
- .o12i;
-}
-
-@keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-.slide.ng-hide-add,
-.slide.ng-hide-remove,
-.slide.ng-enter,
-.slide.ng-leave {
- transition: all 0.5s ease;
-}
-.slide.ng-hide,
-.slide.ng-enter {
- transform: translate(-100%, 0);
-}
-.slide.ng-enter-active {
- transform: translate(0, 0);
-}
-.slide.ng-leave {
- transform: translate(0, 0);
-}
-.slide.ng-leave-active {
- transform: translate(+100%, 0);
-}
-.appCatalogue-boarder{
- // border: 2px solid #ccc!important;
- // border-radius: 16px!important;
- height: 800px;
- overflow: auto;
-}
-.app-visibility.false {
- opacity: 0.5;
-}
-
-.dock ul{
-display: inline-block;
-
-width: auto;
-margin: 0px;
-padding: 0px;
-list-style: none;
-
-}
-.dock ul li {
-width: auto;
-height: auto;
-display: inline-block;
-bottom: 0;
-vertical-align: bottom;
-margin-top: -43px;
-}
-.dock ul li a {
-display: block;
-height: 150px;
-width: 150px;
-position: relative;
--webkit-transition-property: width, height,margin-top;
--webkit-transition-duration: 0.5s;
--o-transition-property: width, height,margin-top;
--o-transition-duration: 0.5s;
--moz-transition-property: width, height,margin-top;
--moz-transition-duration: 0.5s;
-}
-.dock ul li a:hover {
-width: 200px;
-height: 200px;
-margin-top: -50px;
-}
-.dock ul li a img {
-width: 100%;
-position: absolute;
-bottom: 0;
-left: 0;
-border: none;
-padding: 0px 0px 0px 30px;
-}
-.dock_left{
-width: 31px;
--webkit-transform: rotate(33deg);
--moz-transform: rotate(33deg);
--o-transform: rotate(33deg);
-position: relative;
-background: #EEE;
-overflow: hidden;
-float: left;
-height: 100px;
-z-index: 2;
-margin: -18px;
-}
-.dock_right{
-width: 36px;
--webkit-transform: rotate(-33deg);
--moz-transform: rotate(-33deg);
--o-transform: rotate(-33deg);
-position: relative;
-background: #EEE;
-overflow: hidden;
-float: left;
-height: 100px;
-z-index: 2;
-margin: -18px;
-}
-
-
-
-
-/*Time for the CSS*/
-* {margin: 0; padding: 0;}
-body {background: #ccc;}
-
-.slider{
- width: 640px; /*Same as width of the large image*/
- position: relative;
- /*Instead of height we will use padding*/
- padding-top: 320px; /*That helps bring the labels down*/
-
- margin: 50px auto;
-
- /*Lets add a shadow*/
- box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75);
-}
-
-
-/*Last thing remaining is to add transitions*/
-.slider>img{
- position: absolute;
- left: 0; top: 0;
- transition: all 0.5s;
-}
-
-.slider input[name='slide_switch'] {
- display: none;
-}
-
-.slider label {
- /*Lets add some spacing for the thumbnails*/
- margin: 18px 0 0 18px;
- border: 3px solid #999;
-
- float: left;
- cursor: pointer;
- transition: all 0.5s;
-
- /*Default style = low opacity*/
- opacity: 0.6;
-}
-
-.slider label img{
- display: block;
-}
-
-/*Time to add the click effects*/
-.slider input[name='slide_switch']:checked+label {
- border-color: #666;
- opacity: 1;
-}
-/*Clicking any thumbnail now should change its opacity(style)*/
-/*Time to work on the main images*/
-.slider input[name='slide_switch'] ~ img {
- opacity: 0;
- transform: scale(1.1);
-}
-/*That hides all main images at a 110% size
-On click the images will be displayed at normal size to complete the effect
-*/
-.slider input[name='slide_switch']:checked+label+img {
- opacity: 1;
- transform: scale(1);
-}
-/*Clicking on any thumbnail now should activate the image related to it*/
-
-.caption {
- background: rgba(0, 0, 0, 0.5);
- position: absolute;
- bottom: 0;
- width: 640px
-}
-
-.caption a {
- display: block;
- color: #fff;
- text-decoration: none;
- font: normal 16px 'Lato', Helvetica, Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- padding: 15px;
-}
-
-
-/*widgets*/
-.singleBtnBorder {
- border-radius: 6px 6px 6px 6px;
-}
-
-.icon-anchor {
- color: #888;
-}
-
-.widgetHeaderBtn:hover, .widgetHeaderBtn:focus {
- background: rgba(0, 0, 0, 0);
- color: #3a7999;
- box-shadow: inset 0 0 0 2px #3a7999;
-}
-
-.box-one {
- -webkit-transition:all linear 0.4s;
- transition:all linear 0.4s;
- height:100px; width:200px; background:white; border: 2px solid #ccc!important;
- border-radius: 16px!important;
-}
-.box-one.ng-hide {
-display: block!important;
- opacity:0;
-}
-
-.gridsterContent{
- height:120px;
-}
-.gridsterAppContent{
- height:120px;
-
-}
-
- .gridsterImage{
- height:84px;
- width:168px;
- }
- .grider-content-ecomp{
- transition: transform 0.5s ease-out;
- }
- .grider-content-ecomp:hover{
- transform: scale(1.1);
-}
-
-/*application empty div*/
-.app-error-block {
- padding-top: 10px;
-}
-
-.text-center { text-align: center; }
-
-.text-right { text-align: right; }
-
-.text-justify { text-align: justify; }
-
-/*widget header*/
-.optionsMenu{
- position: absolute;
- list-style: none;
- top: 25px;
- right: 10px;
- border: 1px solid #067ab4;
- display: none;
- z-index: 2;
- border-radius: 6px 0px 6px 6px;
- background: #fff;
- width: 130px;
-}
-
-.optionsMenuLink {
- position: relative;
- padding-left: 8px;
- padding-right: 2px;
- font-size: 12px;
- line-height: 30px;
- color: #444444;
-}
-.optionsMenu > li:hover a {
- color: #ffffff !important;
-}
-.optionsMenu > li {
- width: 100%;
- text-align: left;
-}
-.optionsMenu > li:hover {
- background-color: #0faaf7;
- border-color: none !important;
- cursor: pointer;
-}
-
-.simulateCatGridHeader{
- position: relative;
- height: 70px !important;
- border: 1px solid #d3d3d3;
- border-bottom: 0;
- background-color: #E5E5E5;
- white-space: nowrap;
- text-overflow: ellipsis;
- z-index: 1;
-}
-
-.simulateCatGridHeaderTitle{
- line-height: 20px;
- margin-top: 10px;
- margin-left: 26px;
- font-family: arial;
- font-size: 18px;
- color: #444444;
- float: left;
-}
-
-.simulateCatGridHeaderRadio{
- line-height: 20px;
- margin-top: 10px;
- margin-left: 10px;
- font-family: arial;
- font-size: 12px;
- color: #444444;
- float: left;
-}
-
-.simulateCatGridHeaderDetails{
- line-height: 20px;
- margin-left: 10px;
- font-family: arial;
- font-size: 12px;
- color: #444444;
- float: left;
-}
-
-.simulateGridHeaderHandle{
- cursor: move;
- margin: 12px;
- position: absolute;
- top: 0;
- left: 0;
- border: 0;
- vertical-align: middle;
- -ms-interpolation-mode: bicubic;
- display: block;
-}
-
-.att-checkbox--on .att-checkbox__indicator, .att-radio--on .att-radio__indicator {
- opacity: 1;
-}
-
-.animate-enter,
-.animate-leave
-{
- -webkit-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
- -moz-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
- -ms-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
- -o-transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
- transition: 400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
- position: relative;
- display: block;
-}
-
-.animate-enter.animate-enter-active,
-.animate-leave {
- opacity: 1;
- top: 0;
- height: 30px;
-}
-
-.animate-leave.animate-leave-active,
-.animate-enter {
- opacity: 0;
- top: -50px;
- height: 0px;
-}
diff --git a/ecomp-portal-FE/client/app/views/catalog/catalog.tpl.html b/ecomp-portal-FE/client/app/views/catalog/catalog.tpl.html
deleted file mode 100644
index e169afa9..00000000
--- a/ecomp-portal-FE/client/app/views/catalog/catalog.tpl.html
+++ /dev/null
@@ -1,91 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-app-catalog" id="contentId">
- <div class="app-catalog-container">
- <div id="app-catalog-title" class="app-catalog-title">Application Catalog</div>
- <div class="app-catalog-list">
- <div class="simulateCatGridHeader">
- <span class="simulateCatGridHeaderDetails"> Click the check
- boxes below to choose which applications are shown on the <a
- href="applicationsHome">home page</a>.
- </span> <br>
- <br> <label class="simulateCatGridHeaderRadio"> Filter:
- <input type="radio" ng-model="radioValue" value="All"> All
- </label> <label class="simulateCatGridHeaderRadio"> <input
- type="radio" ng-model="radioValue" value="Accessible">
- Accessible
- </label> <label class="simulateCatGridHeaderRadio"> <input
- type="radio" ng-model="radioValue" value="Selected"> On
- Home Page
- </label>
-
- </div>
- <div class="appCatalogue-boarder">
- <div class="gridster-container override_background">
- <div att-gridster att-gridster-options="catalog.gridsterOpts">
- <div class="style_prevu_kit" att-gridster-item='item'
- ng-repeat="item in appCatalog" ng-animate="'animate'"
- ng-if="(item.select && radioValue=='Selected') || (item.access && radioValue=='Accessible') || (radioValue == 'All')"
- id="app-{{item.headerText.split(' ').join('-')}}">
-
- <div class="grider-content-ecomp app-visibility {{item.access}}"
- ng-show="(item.select && radioValue=='Selected') || (item.access && radioValue=='Accessible') || (radioValue == 'All')">
- <div id="grips-{{item.headerText.split(' ').join('-')}}"
- ng-hide="users.isLoadingTable && !users.getAppCatalogIsDone"
- att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text="{{item.headerText | elipsis: 15}}"
- class="app-gridster-header">
- <div ng-show="item.access || isAdminPortalAdmin">
- <input type="checkbox" ng-model="item.select"
- ng-change="catalog.storeSelection(item)">
- </div>
- <div ng-show="item.pending && !item.access">
- <i style="font-size: 8px">Pending Access</i>
- </div>
- </div>
- <div id="app-image-{{item.headerText.split(' ').join('-')}}"
- att-gridster-item-body
- ng-style="{'cursor':'pointer',
- 'background-image': 'url('+(item.imageLink)+')',
- 'order': item.order,
- 'background-color':'white',
- 'background-repeat': 'no-repeat',
- 'background-size': '170px 130px'}"
- ng-click="catalog.getAccess(item)"
- ng-hide="users.isLoadingTable && !users.getAppCatalogIsDone"
- class="gridsterContent"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <br>
-
- <div class="w-ecomp-main-disclaimer">
- To request access to an application, please visit the <a
- ng-href="getAccess">Get Access</a> page.
- </div>
-
- <br>
- </div>
-
- </div>
-</div> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/catalog/catalogconfirmation.controller.js b/ecomp-portal-FE/client/app/views/catalog/catalogconfirmation.controller.js
deleted file mode 100644
index 83438e9c..00000000
--- a/ecomp-portal-FE/client/app/views/catalog/catalogconfirmation.controller.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-(function () {
- class CatalogConfirmationBoxCtrl {
- constructor($scope,$state,catalogService) {
-
- let init = () => {
- let item = ($scope.ngDialogData && $scope.ngDialogData.item) || 'this';
- this.message = $scope.ngDialogData.message ? $scope.ngDialogData.message : `Are you sure you want to delete "${item}"?`;
- this.title = $scope.ngDialogData.title ? $scope.ngDialogData.title : '';
- };
-
- this.closeBox = isConfirmed => {
- $scope.closeThisDialog(isConfirmed);
- };
-
- this.goTo = (state, params) => {
- $scope.closeThisDialog(false);
- $state.go(state,params);
-
- };
-
- this.storeSelection = function(item) {
- // $log.debug('CatalogCtrl:storeSelection: item.id is ' + item.id + ', select is ' + item.select);
- var appData = {
- appId : item.id,
- select : item.select,
- pending : item.pending
- };
- catalogService.updateAppCatalog(appData).then(
- function(result) {
- // $log.debug('CatalogCtrl:storeSelection result is ', result);
- })['catch'](function(err) {
- $log.error('CatalogCtrl:storeSelection: exception: ', err);
- });
- };
-
- init();
- }
- }
- CatalogConfirmationBoxCtrl.$inject = ['$scope','$state','catalogService'];
- angular.module('ecompApp').controller('CatalogConfirmationBoxCtrl', CatalogConfirmationBoxCtrl);
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/catalog/information-box.tpl.html b/ecomp-portal-FE/client/app/views/catalog/information-box.tpl.html
deleted file mode 100644
index ccc0a9f5..00000000
--- a/ecomp-portal-FE/client/app/views/catalog/information-box.tpl.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="confirmation-box-container">
- <div class="confirmation-message-wrap">
- <div class="confirmation-message" >
- <div>
- You do not have access to this application.
- See the
- <a href="" ng-click="confirmBox.goTo('root.getAccess', {appName: confirmBox.message.headerText})">
- Get Access page</a> and request access.
- <br><br>
- You may check this box if access is pending:
- <input type="checkbox"
-
- ng-model="confirmBox.message.pending"
- ng-change="confirmBox.storeSelection(confirmBox.message)"
- >
- </div>
-
- </div>
- </div>
- <div class="dialog-control">
- <div class="cancel-button" ng-click="confirmBox.closeBox(false)">Close</div>
- </div>
-</div> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/confirmation-box/admin-confirmation-box.tpl.html b/ecomp-portal-FE/client/app/views/confirmation-box/admin-confirmation-box.tpl.html
deleted file mode 100644
index 61a812bc..00000000
--- a/ecomp-portal-FE/client/app/views/confirmation-box/admin-confirmation-box.tpl.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="confirmation-box-container">
- <div class="confirmation-title-wrap">
- <div class="confirmation-title" ng-bind="confirmBox.title"></div>
- </div>
- <div class="confirmation-message-wrap">
- <div class="confirmation-message" ng-bind="confirmBox.message"></div>
- </div>
- <div class="dialog-control">
- <div class="next-button" ng-click="confirmBox.closeBox(true)">Confirm</div>
- <div class="cancel-button" ng-click="confirmBox.closeBox(false)">Cancel</div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.controller.js b/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.controller.js
deleted file mode 100644
index 4f5e14b3..00000000
--- a/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.controller.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-(function () {
- class ConfirmationBoxCtrl {
- constructor($scope) {
-
- let init = () => {
- let item = ($scope.ngDialogData && $scope.ngDialogData.item) || 'this';
- this.message = $scope.ngDialogData.message ? $scope.ngDialogData.message : `Are you sure you want to delete "${item}"?`;
- this.title = $scope.ngDialogData.title ? $scope.ngDialogData.title : '';
- };
-
- this.closeBox = isConfirmed => {
- $scope.closeThisDialog(isConfirmed);
- };
-
- init();
- }
- }
- ConfirmationBoxCtrl.$inject = ['$scope'];
- angular.module('ecompApp').controller('ConfirmationBoxCtrl', ConfirmationBoxCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.less b/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.less
deleted file mode 100644
index 410d3967..00000000
--- a/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.less
+++ /dev/null
@@ -1,53 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .confirmation-box-container {
- .confirmation-message-wrap {
- display: table;
- height: 60px;
- width: 100%;
-
- .confirmation-message {
- .n14r;
- display: table-cell;
- vertical-align: middle;
- max-width: 100px;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
-
- .confirmation-title-wrap {
- display: table;
- height: 20px;
- width: 100%;
-
- .confirmation-title {
- .n14r;
- display: table-cell;
- vertical-align: middle;
- text-align: center;
- font-weight: bold;
- max-width: 100px;
- overflow: hidden;
- padding-bottom: 2px;
- text-overflow: ellipsis;
- }
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.tpl.html b/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.tpl.html
deleted file mode 100644
index 759bf137..00000000
--- a/ecomp-portal-FE/client/app/views/confirmation-box/confirmation-box.tpl.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="confirmation-box-container">
- <div class="confirmation-message-wrap">
- <div id="confirmation-message" class="confirmation-message" ng-bind="confirmBox.message"></div>
- </div>
- <div class="dialog-control">
- <div id="confirmation-button-next" class="next-button" ng-click="confirmBox.closeBox(true)">OK</div>
- <div id="confirmation-button-cancel" class="cancel-button" ng-click="confirmBox.closeBox(false)">Cancel</div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/confirmation-box/dragdrop-confirmation-box.tpl.html b/ecomp-portal-FE/client/app/views/confirmation-box/dragdrop-confirmation-box.tpl.html
deleted file mode 100644
index 61a812bc..00000000
--- a/ecomp-portal-FE/client/app/views/confirmation-box/dragdrop-confirmation-box.tpl.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="confirmation-box-container">
- <div class="confirmation-title-wrap">
- <div class="confirmation-title" ng-bind="confirmBox.title"></div>
- </div>
- <div class="confirmation-message-wrap">
- <div class="confirmation-message" ng-bind="confirmBox.message"></div>
- </div>
- <div class="dialog-control">
- <div class="next-button" ng-click="confirmBox.closeBox(true)">Confirm</div>
- <div class="cancel-button" ng-click="confirmBox.closeBox(false)">Cancel</div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/confirmation-box/information-box.tpl.html b/ecomp-portal-FE/client/app/views/confirmation-box/information-box.tpl.html
deleted file mode 100644
index 1e17e50a..00000000
--- a/ecomp-portal-FE/client/app/views/confirmation-box/information-box.tpl.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="confirmation-box-container">
- <div class="confirmation-message-wrap">
- <div class="confirmation-message" ng-bind="confirmBox.message"></div>
- </div>
- <div class="dialog-control">
- <div class="cancel-button" ng-click="confirmBox.closeBox(false)">Close</div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget-manage.html b/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget-manage.html
deleted file mode 100644
index 84ac2a44..00000000
--- a/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget-manage.html
+++ /dev/null
@@ -1,152 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div style="margin-top: 10px; margin-bottom: 10psx;">
- <h1 class="heading1"></h1>
-</div>
-<br />
-
-<div style="margin-top: 25px;">
- <div id="title" class="manage-contactUs-home-manageWidgets-title">Manage {{widgetTypeDisplay}} Widgets</div>
- <div class="widgets-popup-margin">
- <div class="get-access-table">
- <div class="table-control" style="margin:30px;">
- <div class="c-ecomp-att-abs-table" style="height:300px"">
- <table att-table id="table-main"
- table-data="ignoredTableData"
- current-page="ignoredCurrentPage">
- <thead att-table-row type="header">
- <tr>
- <th id="th-users-1" att-table-header key="title" sortable="true" >Title</th>
- <th id="th-users-2" att-table-header key="href" sortable="true" >URL</th>
- <th ng-show="{{widgetType=='EVENTS'}}" id="th-users-3" att-table-header key="event_date" sortable="true" >Date</th>
- <th ng-show="{{widgetType=='EVENTS'}}" id="th-users-4" att-table-header key="content" sortable="true" >Content</th>
- <th id="th-users-5" att-table-header key="sortOrder" sortable="true" >Order</th>
- <th id="th-users-6" att-table-header key="edit" sortable="false" >Edit</th>
- <th id="th-users-7" att-table-header key="delete" sortable="false" >Delete</th>
- </tr>
- </thead>
- <!-- Use track-by="UNIQUE KEY HERE" or leave out if no unique keys in data -->
- <tbody att-table-row type="body" class="table-body" track-by="$index" row-repeat="rowData in widgetData">
- <tr id="tr-rowData" ng-click="">
- <td att-table-body>
- <div id="widget-td-title" ng-hide="rowData.showEdit" ng-bind="rowData.title"></div>
- <input type="text" ng-show="rowData.showEdit" ng-model="widgetData[$index].title"/>
- </td>
- <td att-table-body>
- <div id="widget-td-href" ng-hide="rowData.showEdit" ng-bind="rowData.href"></div>
- <input type="text" ng-show="rowData.showEdit" ng-model="widgetData[$index].href"/>
- </td>
- <td ng-show="{{widgetType=='EVENTS'}}" att-table-body>
- <div id="widget-td-date" ng-hide="rowData.showEdit" ng-bind="rowData.eventDate"></div>
- <input type="text" ng-show="rowData.showEdit" ng-model="widgetData[$index].eventDate"/>
- </td>
- <td ng-show="{{widgetType=='EVENTS'}}" att-table-body>
- <div id="widget-td-content" ng-hide="rowData.showEdit">{{rowData.content | cut:true:20:' ...'}}</div>
- <input type="text" ng-show="rowData.showEdit" ng-model="widgetData[$index].content"/>
- </td>
- <td att-table-body>
- <div id="widget-td-order" ng-hide="rowData.showEdit" ng-bind="rowData.sortOrder"></div>
- <input type="text" ng-show="rowData.showEdit" ng-model="widgetData[$index].sortOrder"/>
- </td>
- <td att-table-body>
- <div class="delete-contact-us" ng-hide="rowData.showEdit" ng-click="setEdit($index);">
- <span class="ion-edit"></span>
- </div>
- <span ng-show="rowData.showEdit">
- <a att-button btn-type="primary" ng-click="modify($index);" class="button button--primary" size="small" >Save</a>
- </span>
- </td>
- <td att-table-body>
- <div class="delete-contact-us" ng-click="remove($index);">
- <span class="ion-trash-b"></span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div att-divider-lines></div>
- <div style="margin-top: 15px; margin-left: -80px;" >
- <form name = "widgetForm" novalidate>
- <div id="addWidgetHeader" class="contact-us-margin">
- <h1 style="font-size:18px;">Add</h1>
- <div class="errMsg">{{errMsg}}</div>
- <div class="sucessMsg" ng-bind="successMsg"></div>
- </div>
- <div id="addWidget" class="contact-us-margin">
- <div>
- <div>
- <div class="add-widget-field">
- <div id="mots-property-label" class="property-label">Title</div>
- <input class="input-text-area" type="text" ng-model="newWidgetObject.title" name="title" ng-required="true"/>
- </div>
- <div class="add-widget-field">
- <div class="property-label">URL</div>
- <input class="input-text-area" type="text" ng-model="newWidgetObject.href" type="url" size="3" name = "url" ng-required = "true"/>
- </div>
- <div class="add-widget-field" >
- <div class="property-label">Sort Order</div>
- <input class="input-text-area" type="text" ng-model="newWidgetObject.sortOrder"/>
- </div>
- </div>
- <div class="add-widget-field" ng-controller="DatePickerController" ng-show="{{widgetType=='EVENTS'}}">
- <h4>Event Date</h4>
- <div>
- <div>
- <p class="input-group">
- <input type="text" name = "eventDate" datetime="yyyy-MM-dd" class="input-text-area" uib-datepicker-popup="{{format}}"
- ng-model="newWidgetObject.eventDate" is-open="popup1.opened" datepicker-options="dateOptions" close-text="Close" alt-input-formats="altInputFormats"
- ng-focus="open1()"
- ng-required = "widgetType =='EVENTS'" />
- </p>
- </div>
- </div>
- </div>
-
- <div class="add-contact-us-field-des" ng-show="{{widgetType=='EVENTS'}}">
- <div class="property-label">Content</div>
- <textarea style="margin-top: 0px; margin-bottom: 0px; height: 150px" ng-model="newWidgetObject.content" name="content" ng-required = "widgetType =='EVENTS'">
- </textarea>
- </div>
- </div>
- <div style="height:50px;">
- <a style="float:right; margin-top:20px;" att-button btn-type="primary" class="button button--primary" size="small" ng-click="saveNew()">Add New</a>
-
- </div>
-
- <div att-divider-lines></div>
-
- </div>
- </form>
- </div>
- <div style="height:50px;">
- <a style="float:right;" att-button btn-type="primary" class="button button--primary" size="small" ng-click="closeDialog()">Close</a>
- </div>
- </div>
- </div>
- </div>
-</div>
-
-<script type="application/javascript">
- $(document).ready(function(){
- $(".ngdialog-content").css("width","85%")
- });
-</script>
diff --git a/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget.controller.js b/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget.controller.js
deleted file mode 100644
index d489ac42..00000000
--- a/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget.controller.js
+++ /dev/null
@@ -1,422 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-(function () {
- class CommonWidgetController {
- constructor(dashboardService, $scope, message, $q, $http, conf, $filter,confirmBoxService,$log) {
- $scope.widgetType = message.type;
- $scope.widgetTypeDisplay = message.type;
- $scope.modflag = false;
-
- switch (message.type) {
- case 'EVENTS':
- $scope.widgetTypeDisplay = 'Events'
- break;
- case 'NEWS':
- $scope.widgetTypeDisplay = 'News'
- break;
- case 'IMPORTANTRESOURCES':
- $scope.widgetTypeDisplay = 'Resources'
- break;
- }
-
- $scope.widgetData = [];
- dashboardService.getCommonWidgetData(message.type)
- .then(function (res) {
- // console.log('CommonWidgetController: result is ' + res);
- $scope.widgetData = res.response.items;
- });
-
-
-
- $scope.setEdit = function(index) {
-
- //for(var i=0; i<$scope.widgetData )
-
- if($scope.modflag === false){
- $scope.widgetData[index].showEdit = true;
- $scope.modflag = true;
- }
- }
-
- $scope.modify = function(index) {
-
- $scope.widgetObject = {};
- $scope.widgetObject.id = $scope.widgetData[parseInt(index)].id;
- $scope.widgetObject.category = $scope.widgetData[parseInt(index)].category;
- $scope.widgetObject.title = $scope.widgetData[parseInt(index)].title;
- $scope.widgetObject.href = $scope.widgetData[parseInt(index)].href;
- $scope.widgetObject.eventDate = $scope.widgetData[parseInt(index)].eventDate;
- $scope.widgetObject.content = $scope.widgetData[parseInt(index)].content;
- $scope.widgetObject.sortOrder = $scope.widgetData[parseInt(index)].sortOrder;
-
- var validateMsg = $scope.validateWidgetObject($scope.widgetObject);
- if (validateMsg) {
- confirmBoxService.showInformation(validateMsg).then(isConfirmed => {return;});
- return;
- }
-
- dashboardService.saveCommonWidgetData($scope.widgetObject)
- .then(function(res){
- if (res.status == 'OK') {
- dashboardService.getCommonWidgetData(message.type)
- .then(function(res){
- $scope.widgetData = res.response.items;
- $scope.modflag = false;
- $scope.cancelEdit(index);
- });
- }
- else {
- // Save failed
- confirmBoxService.showInformation("Save failed").then(isConfirmed => {return;});
- return;
- }
- });
-
- };
-
- $scope.newWidgetObject = {};
-
- // Answers string error if validation fails;
- // answers null if all is well.
- $scope.validateWidgetObject = function(wo) {
- if (wo.title == null || wo.title == '')
- return "Please enter a title.";
- if (wo.href == null || wo.href == '' || !validateUrl(wo.href))
- return "Please enter a valid URL that starts with http.";
- if (wo.sortOrder == null || wo.sortOrder == '' || isNaN(parseInt(wo.sortOrder)))
- return "Please enter a number for the sort order.";
- if (wo.category=='EVENTS') {
- if (wo.eventDate == null || wo.eventDate == '')
- return "Please enter a date for the event.";
- // Parses and normalizes the date with rollover.
- var filteredDate = $filter('date')(wo.eventDate, "yyyy-MM-dd");
- // $log.debug('dashboard-widget-controller: date filter yields ' + filteredDate);
- // The date picker shows mm/dd/yy.
- if (filteredDate == null || filteredDate.length != 10)
- return "Please enter a valid date as YYYY-MM-DD";
- if (wo.content==null || wo.content=='')
- return "Please enter content for the event.";
- }
- return null;
- };
-
- $scope.saveNew = function() {
- $scope.newWidgetObject.category = message.type;
- // $log.info($scope.newWidgetObject);
- var validateMsg = $scope.validateWidgetObject($scope.newWidgetObject);
- if (validateMsg) {
- confirmBoxService.showInformation(validateMsg).then(isConfirmed => {return;});
- return;
- }
- // Transform date into expected storage format
- $scope.newWidgetObject.eventDate = $filter('date')($scope.newWidgetObject.eventDate, "yyyy-MM-dd");
-
- dashboardService.saveCommonWidgetData($scope.newWidgetObject)
- .then(function(res){
- if (res.status == 'OK') {
- $scope.widgetForm.$setPristine();
- confirmBoxService.showInformation('You have added a new item').then(isConfirmed => {
- });
- dashboardService.getCommonWidgetData(message.type)
- .then(function(res){
- $scope.widgetData = res.response.items;
- $scope.newWidgetObject = {};
- });
- }
- else {
- confirmBoxService.showInformation("Save failed").then(isConfirmed => {return;});
- return;
- }
- });
- };
-
- $scope.remove = function(index) {
- var confirmMsg = 'Are you sure you want to delete this item from the list?' + ' Press OK to delete.';
- confirmBoxService.confirm(confirmMsg).then(function (confirmed) {
- if (confirmed == true) {
- $scope.widgetObject = {};
- $scope.widgetObject.id = $scope.widgetData[parseInt(index)].id;
- $scope.widgetObject.category = $scope.widgetData[parseInt(index)].category;
- $scope.widgetObject.title = $scope.widgetData[parseInt(index)].title;
- $scope.widgetObject.href = $scope.widgetData[parseInt(index)].href;
- $scope.widgetObject.sortOrder = $scope.widgetData[parseInt(index)].sortOrder;
-
-
- dashboardService.removeCommonWidgetData($scope.widgetObject)
- .then(function(res){
- dashboardService.getCommonWidgetData(message.type)
- .then(function(res){
- $scope.widgetData = res.response.items;
- $scope.cancelEdit(index);
- });
- });
- }
- });
-
- };
- $scope.closeDialog = function(){
- $scope.closeThisDialog( $scope.widgetData);
- }
- $scope.deleteSpeedDial = function(widget){
-
- }
-
- $scope.manage = function(index) {
- $scope.modflag = true;
-
- var thisdata = $scope.widgetData[index];
- $scope.editMode=true;
- var category = "#category"+index;
- var categoryEdit = "#categoryEdit"+index;
-
- var title = "#title"+index;
- var titleEdit = "#titleEdit"+index;
-
- var url = "#href"+index;
- var urlEdit = "#hrefEdit"+index;
-
- var order = "#order"+index;
- var orderEdit = "#orderEdit"+index;
-
- var eventDate = "#eventDate"+index;
- var eventDateEdit = "#eventDateEdit"+index;
-
-
- var dsavebutton ="#savebutton"+index;
- var dremovebutton="#removebutton"+index;
- var dmanagebutton="#managebutton"+index;
- var deditRbutton="#editRbutton"+index;
-
- $(title).css('display', 'none');
- $(titleEdit).css('display', 'inherit');
- $(url).css('display', 'none');
- $(urlEdit).css('display', 'inherit');
- $(order).css('display', 'none');
- $(orderEdit).css('display', 'inherit');
- $(eventDate).css('display', 'none');
- $(eventDateEdit).css('display', 'inherit');
-
- $(dsavebutton).css('display', 'inherit');
- $(dremovebutton).css('display', 'inherit');
- $(dmanagebutton).css('display', 'none');
- $(deditRbutton).css('display', 'inherit');
-
- };
-
- $scope.cancelEdit = function(index) {
-
- $scope.editMode=false;
- var category = "#category"+index;
- var categoryEdit = "#categoryEdit"+index;
-
- var title = "#title"+index;
- var titleEdit = "#titleEdit"+index;
-
- var url = "#href"+index;
- var urlEdit = "#hrefEdit"+index;
-
- var order = "#order"+index;
- var orderEdit = "#orderEdit"+index;
-
- var eventDate = "#eventDate"+index;
- var eventDateEdit = "#eventDateEdit"+index;
-
- var dsavebutton ="#savebutton"+index;
- var dremovebutton ="#removebutton"+index;
- var dmanagebutton="#managebutton"+index;
- var deditRbutton="#editRbutton"+index;
-
- $(title).css('display', 'inherit');
- $(titleEdit).css('display', 'none');
-
- $(url).css('display', 'inherit');
- $(urlEdit).css('display', 'none');
-
- $(order).css('display', 'inherit');
- $(orderEdit).css('display', 'none');
-
- $(eventDate).css('display', 'inherit');
- $(eventDateEdit).css('display', 'none');
-
- $(dsavebutton).css('display', 'none');
- $(dremovebutton).css('display', 'none');
- $(dmanagebutton).css('display', 'inherit');
- $(deditRbutton).css('display', 'none');
-
- };
-
- $scope.popupConfirmWin = function(title, msgBody, callback){
- modalService.popupConfirmWin.apply(null, arguments);
- };
- }
- }
- CommonWidgetController.$inject = ['dashboardService', '$scope', 'message', '$q', '$http', 'conf', '$filter','confirmBoxService','$log'];
- angular.module('ecompApp').controller('CommonWidgetController', CommonWidgetController);
-})();
-
-angular.module('ecompApp').filter('cut', function () {
- return function (value, wordwise, max, tail) {
- if (!value) return '';
-
- max = parseInt(max, 10);
- if (!max) return value;
- if (value.length <= max) return value;
-
- value = value.substr(0, max);
- if (wordwise) {
- var lastspace = value.lastIndexOf(' ');
- if (lastspace != -1) {
- //Also remove . and , so its gives a cleaner result.
- if (value.charAt(lastspace-1) == '.' || value.charAt(lastspace-1) == ',') {
- lastspace = lastspace - 1;
- }
- value = value.substr(0, lastspace);
- }
- }
-
- return value + (tail || ' …');
- };
-});
-
-angular.module('ecompApp').controller('DatePickerController', function ($scope, uibDateParser) {
- $scope.today = function() {
- $scope.dt = new Date();
- };
- $scope.today();
-
- $scope.clear = function() {
- $scope.dt = null;
- };
-
- $scope.inlineOptions = {
- customClass: getDayClass,
- minDate: new Date(),
- showWeeks: true
- };
-
- $scope.dateOptions = {
- dateDisabled: disabled,
- formatYear: 'yy',
- minDate: new Date(),
- startingDay: 1
- };
-
- // Disable weekend selection
- function disabled(data) {
- var date = data.date,
- mode = data.mode;
- return mode === 'day' && (date.getDay() === 0 || date.getDay() === 6);
- }
-
- $scope.toggleMin = function() {
- $scope.inlineOptions.minDate = $scope.inlineOptions.minDate ? null : new Date();
- $scope.dateOptions.minDate = $scope.inlineOptions.minDate;
- };
-
- $scope.toggleMin();
-
- $scope.open1 = function() {
- // console.log('In open1');
- $scope.popup1.opened = true;
- };
-
- $scope.open2 = function() {
- // console.log('In open2');
- $scope.popup2.opened = true;
- };
-
-
- $scope.setDate = function(year, month, day) {
- $scope.dt = new Date(year, month, day);
- };
-
- $scope.formats = ['dd-MMMM-yyyy', 'yyyy/MM/dd', 'dd.MM.yyyy', 'shortDate'];
- $scope.format = $scope.formats[3];
- $scope.altInputFormats = ['M!/d!/yyyy'];
-
- $scope.popup1 = {
- opened: false
- };
-
- $scope.popup2 = {
- opened: false
- };
-
- var tomorrow = new Date();
- tomorrow.setDate(tomorrow.getDate() + 1);
- var afterTomorrow = new Date();
- afterTomorrow.setDate(tomorrow.getDate() + 1);
- $scope.events = [
- {
- date: tomorrow,
- status: 'full'
- },
- {
- date: afterTomorrow,
- status: 'partially'
- }
- ];
-
- function getDayClass(data) {
- var date = data.date,
- mode = data.mode;
- if (mode === 'day') {
- var dayToCheck = new Date(date).setHours(0,0,0,0);
-
- for (var i = 0; i < $scope.events.length; i++) {
- var currentDay = new Date($scope.events[i].date).setHours(0,0,0,0);
-
- if (dayToCheck === currentDay) {
- return $scope.events[i].status;
- }
- }
- }
-
- return '';
- }
-});
-
-
-
-function toggleCollapsible(id, clickedIconId, subtitutingIconId){
- $("#"+id).toggle();
- $("#"+clickedIconId).toggle();
- $("#"+subtitutingIconId).toggle();
- setTimeout(function(){focusFirstEle(id);}, 1000);
-}
-
-function focusFirstEle(id){
- var focusItems = $("#"+id).find(":focusable");
- for(var i=0; i<focusItems.length; i++){
- if(!isHidden(focusItems[i])){
- var targetClassName = focusItems[i].className;
- if(targetClassName!='collapsibleArrow'){
- focusItems[i].focus();
- return;
- }
- }
- }
-}
-
-function validateUrl(value){
- return /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);
- }
diff --git a/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget.controller.less b/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget.controller.less
deleted file mode 100644
index dda8e300..00000000
--- a/ecomp-portal-FE/client/app/views/dashboard/dashboard-widget.controller.less
+++ /dev/null
@@ -1,101 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .searchLiHeader {
-font-weight: bold;
-color: #0574ac;
-font-size: 16px;
-padding-bottom: 10px;
-line-height: 1.5;
-font-family: arial;
-
-}
-
-.searchLiItems{
-cursor: pointer;
-font-weight: normal;
-font-size: 12px;
-color: #444444;
-font-family: arial;
-}
-
-.searchUl {
-list-style: none;
-border-bottom: 1px solid #bbb;
-padding-bottom: 20px;
-}
-
-#editWidgetsContent {
- height: 300px;
- width: 1770px;
-}
-
-#editWidgetsContent .scroll-viewport {
- height: 300px;
- width: 1770px;
-}
-
-.full button span {
- background-color: limegreen;
- border-radius: 32px;
- color: black;
-}
-
-.partially button span {
- background-color: orange;
- border-radius: 32px;
- color: black;
- }
-
- .add-widget-field{
- width:250px;
- display: inline-table;
- margin:10px;
-
- }
- .uib-datepicker-popup {
- th {
- vertical-align: middle !important;
- }
- }
-
- .input-text-area {
- font-style: italic;
- padding: 7px 10px;
- width: 250px !important;
- display: inline-block;
- position: relative;
- margin-bottom: 10px;
- border-radius: 6px;
- border: 1px solid #d8d8d8;
- height: 32px;
- border-color: slategrey !important;
- }
- .input-inline-edit-text {
- font-style: italic;
- padding: 7px 10px;
- display: inline-block;
- position: relative;
- margin-bottom: 10px;
- border-radius: 6px;
- border: 1px solid #d8d8d8;
- height: 32px;
- border-color: slategrey !important;
- width:100%;
- } \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/dashboard/dashboard.controller.js b/ecomp-portal-FE/client/app/views/dashboard/dashboard.controller.js
deleted file mode 100644
index 3228f636..00000000
--- a/ecomp-portal-FE/client/app/views/dashboard/dashboard.controller.js
+++ /dev/null
@@ -1,312 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError('Cannot call a class as a function');
- }
-}
-
-(function() {
- var HTTP_PROTOCOL_RGX = /https?:\/\//;
-
- var DashboardCtrl = function DashboardCtrl(applicationsService, $log,
- $window, userProfileService, $scope, $cookies, $timeout, $interval,
- $modal, $state, dashboardService,ngDialog) {
-
- var _this = this;
-
- _classCallCheck(this, DashboardCtrl);
-
- // activate spinner
- this.isLoading = true;
- $scope.getUserAppsIsDone = false;
- this.userProfileService = userProfileService;
- $scope.demoNum = 1;
- $scope.event_content_show = false;
- $scope.widgetData = [];
-
- $scope.editWidgetModalPopup = function(availableData, resourceType) {
- $scope.editData = JSON.stringify(availableData);
- $scope.availableDataTemp = $scope.availableData;
- ngDialog.open({
- templateUrl : 'app/views/dashboard/dashboard-widget-manage.html',
- controller : 'CommonWidgetController',
- resolve : {
- message : function message() {
- var message = {
- type : resourceType,
- availableData : $scope.editData
- };
- return message;
- }
- }
- }).closePromise.then(needUpdate => {
- if(resourceType=='NEWS'){
- $scope.updateNews();
- }else if(resourceType=='EVENTS'){
- $scope.updateEvents();
- }else if(resourceType=='IMPORTANTRESOURCES'){
- $scope.updateImportRes();
- }
- });
- };
-
- userProfileService.getUserProfile()
- .then(
- function(profile) {
- // $log.info(profile);
- $scope.attuid = profile.attuid;
- // $log.info('user has the following attuid: ' +
- // profile.attuid);
- $scope.appsView = [];
-
- applicationsService.getPersUserApps()
- .then(
- function(res) {
- // $log.info(res);
- _this.apps = res;
-
- for (var i = 0; i < _this.apps.length; i++) {
- $scope.appsView[i] = {
- sizeX : 2,
- sizeY : 2,
- headerText : _this.apps[i].name,
- subHeaderText : _this.apps[i].notes,
- imageLink : _this.apps[i].thumbnail || _this.apps[i].imageUrl,
- order : _this.apps[i].order,
- restrictedApp : _this.apps[i].restrictedApp,
- url : _this.apps[i].url
- };
- }
-
- // Append the show add/remove applications tile
- $scope.appsView[_this.apps.length] = {
- addRemoveApps : true,
- sizeX : 2,
- sizeY : 2,
- headerText : 'Add/Remove Applications',
- subHeaderText : '',
- imageLink : 'assets/images/cloud.png',
- order : '',
- restrictedApp : false,
- url : ''
- };
-
- // $log.info('getUserApps apps count : ' +
- // $scope.appsView.length);
- // Show 2 rows in the gridster if needed
- if ($scope.appsView.length > 6) {
- $(".dashboard-boarder").css({
- "height" : "400px"
- });
- }else{
- $(".dashboard-boarder").css({
- "height" : "210px"
- });
- }
- _this.isLoading = false;
- $scope.getUserAppsIsDone = true;
- })['catch']
- (function(err) {
- $log.error('DashboardCtlr: failed to get applications list', err);
- _this.isLoading = false;
- $scope.getUserAppsIsDone = true;
- });
- });
-
-
- /* Widget Gridster Section */
- $scope.newsGridsterItem = {
- sizeX : 4,
- sizeY : 4,
- headerText : 'News',
- subHeaderText : '',
- imageLink : '',
- order : '',
- url : ''
- };
-
- $scope.eventsGridsterItem = {
- sizeX : 4,
- sizeY : 4,
- headerText : 'Calendar Events',
- subHeaderText : '',
- imageLink : '',
- order : '',
- url : ''
- };
-
- $scope.impoResGridsterItem = {
- sizeX : 4,
- sizeY : 4,
- headerText : 'Resources',
- subHeaderText : '',
- imageLink : '',
- order : '',
- url : ''
- };
- this.gridsterOpts = {
- columns : 12,
- colWidth : 95,
- rowHeight : 95,
- margins : [ 20, 20 ],
- outerMargin : true,
- pushing : true,
- floating : true,
- swapping : true,
- draggable : {
- handle: 'img'
- }
- };
-
- this.emptyGridsterOpts = {
- columns : 24,
- colWidth : 190,
- rowHeight : 190,
- margins : [ 20, 20 ],
- outerMargin : true,
- pushing : true,
- floating : true,
- swapping : true,
- draggable : {
- handle: 'img'
- }
- };
-
- this.goToCatalog = function(item) {
- $state.go('root.appCatalog');
- }
-
- // navigate to application url in new tab
- this.goToPortal = function(item) {
- if (!item.url) {
- $log.error('No URL found for this application, doing nothing!');
- return;
- }
- if (item.restrictedApp) {
- // Link-based apps open in their own browser tab
- $window.open(item.url, '_blank');
- } else {
- // cache control so browsers load app page every time
- var ccParam = '?cc=' + new Date().getTime();
- var appUrl = null;
- var urlParts = item.url.split('#');
- if (urlParts.length < 2)
- appUrl = item.url + ccParam;
- else
- appUrl = urlParts[0] + ccParam + "#" + urlParts[1];
- // $log.debug('DashboardCtrlr::goToPortal: opening tab with URL
- // ' + appUrl);
- var tabContent = {
- id : new Date(),
- title : item.headerText,
- url : appUrl
- };
- $cookies.putObject('addTab', tabContent);
- }
- };
-
- /* News data */
- $scope.newsData = [];
- $scope.updateNews = function() {
- $scope.newsData.length=0;
- dashboardService.getCommonWidgetData('NEWS').then(function(res) {
- // $log.info(res.message);
- var newsDataJsonArray = res.response.items;
- for (var i = 0; i < newsDataJsonArray.length; i++) {
- $scope.newsData.push(newsDataJsonArray[i]);
- }
- })['catch'](function(err) {
- $log.error('dashboard controller: failed to get news list', err);
- _this.isLoading = false;
- });
- }
- $scope.updateNews();
-
- /* Events data */
- $scope.eventData = [];
- $scope.updateEvents = function() {
- $scope.eventData.length=0;
- dashboardService.getCommonWidgetData('EVENTS').then(function(res) {
- var eventDataJsonArray = res.response.items;
- for (var i = 0; i < eventDataJsonArray.length; i++) {
- if(eventDataJsonArray[i].eventDate !=null) {
- // yyyy-mm-dd
- eventDataJsonArray[i].year = eventDataJsonArray[i].eventDate.substring(2,4);
- eventDataJsonArray[i].mon = eventDataJsonArray[i].eventDate.substring(5,7);
- eventDataJsonArray[i].day = eventDataJsonArray[i].eventDate.substring(8,10);
- }
- $scope.eventData.push(eventDataJsonArray[i]);
- }
- })['catch'](function(err) {
- $log.error('dashboard controller: failed to get Events list', err);
- _this.isLoading = false;
- });
- }
- $scope.updateEvents();
-
- /* Important Resources data */
- $scope.importResData = [];
- $scope.updateImportRes = function() {
- $scope.importResData.length=0;
- dashboardService.getCommonWidgetData('IMPORTANTRESOURCES').then(
- function(res) {
- // $log.error('couldnt get important list...',
- // res.response.dataBlob);
- // $log.info(res);
- var importResDataJSONArray = res.response.items;
- for (var i = 0; i < importResDataJSONArray.length; i++) {
- $scope.importResData.push(importResDataJSONArray[i]);
- }
- })['catch'](function(err) {
- $log.error('dashboard controller: failed to get resources list...', err);
- _this.isLoading = false;
- });
- }
- $scope.updateImportRes();
-
- if (getParameterByName('noUserError') != null) {
- if (getParameterByName('noUserError') == "Show") {
- $("#errorInfo").show();
- }
- }
-
- };
-
- DashboardCtrl.$inject = [ 'applicationsService', '$log', '$window',
- 'userProfileService', '$scope', '$cookies', '$timeout',
- '$interval', '$modal', '$state', 'dashboardService','ngDialog'];
- angular.module('ecompApp').controller('DashboardCtrl', DashboardCtrl);
-})();
-
-function getParameterByName(name, url) {
- if (!url)
- url = window.location.href;
- name = name.replace(/[\[\]]/g, "\\$&");
- var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex
- .exec(url);
- if (!results)
- return '';
- if (!results[2])
- return '';
- return results[2].replace(/\+/g, " ");
-}
diff --git a/ecomp-portal-FE/client/app/views/dashboard/dashboard.controller.spec.js b/ecomp-portal-FE/client/app/views/dashboard/dashboard.controller.spec.js
deleted file mode 100644
index 0a2ddd3a..00000000
--- a/ecomp-portal-FE/client/app/views/dashboard/dashboard.controller.spec.js
+++ /dev/null
@@ -1,78 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-describe('Controller: DashboardCtrl ', function() {
- beforeEach(module('ecompApp'));
-
- let DashboardCtrl, $controller, $q, rootScope, $log, $window, $cookies, scope;
- let deferredApps, deferredUserProfile, applicationsServiceMock, userProfileServiceMock;
-
-
- beforeEach(inject( (_$controller_, _$q_, _$rootScope_, _$log_, _$window_, _$cookies_, _CacheFactory_)=>{
- rootScope = _$rootScope_;
- scope = rootScope.$new();
- $q = _$q_;
- $controller = _$controller_;
- $log = _$log_;
- $window = _$window_;
- $cookies = _$cookies_;
-
- _CacheFactory_.destroyAll();
-
- deferredApps = $q.defer();
- deferredUserProfile = $q.defer();
- applicationsServiceMock = jasmine.createSpyObj('applicationsServiceMock', ['getUserApps']);
- applicationsServiceMock.getUserApps.and.returnValue(deferredApps.promise);
-
- userProfileServiceMock = jasmine.createSpyObj('userProfileServiceMock',['getUserProfile']);
- userProfileServiceMock.getUserProfile.and.returnValue(deferredUserProfile.promise);
-
- DashboardCtrl = $controller('DashboardCtrl', {
- applicationsService: applicationsServiceMock,
- $log: $log,
- $window: $window,
- userProfileService: userProfileServiceMock,
- $scope: scope,
- $cookies: $cookies
- });
- scope.$digest();
- }));
-
- it('should populate this.apps with data from portals service getUserApps', inject(function ( _$q_) {
- $q = _$q_;
-
- let profile = {roles: 'superAdmin', userId: 'userid'};
-
- deferredUserProfile.resolve(profile)
- deferredApps.resolve([{name: 'portal1'},{name: 'portal2'},{name: 'portal3'}]);
- scope.$digest();
- expect(scope.appsViewData.length).toBe(3);
- }));
-
- it('should call $log error when getAllPortals fail', inject(function ( _$q_) {
- $q = _$q_;
- spyOn($log, 'error');
- deferredUserProfile.reject('something happened!');
- scope.$digest();
- expect($log.error).toHaveBeenCalled();
- }));
-
-});
diff --git a/ecomp-portal-FE/client/app/views/dashboard/dashboard.less b/ecomp-portal-FE/client/app/views/dashboard/dashboard.less
deleted file mode 100644
index 4dc1a6c8..00000000
--- a/ecomp-portal-FE/client/app/views/dashboard/dashboard.less
+++ /dev/null
@@ -1,766 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-applications-home {
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
- .gridster-item-container .gridster-item-body {
- overflow-y:auto;
- overflow-x:hidden;
- }
-
- .go-button {
- .btn-green;
- width: 96px;
- position: absolute;
- border-radius: 0px;
- }
-
- .applications-home-container {
- .content_justify;
- position: relative;
- padding: 15px 0 32px 0;
- width: 100%;
-
- .applications-home-title {
- .a24r;
- margin: auto;
- .content_justify;
- }
- .portals-list {
- min-height: 70vh;
- //display: flex;
- justify-content: center;
- flex-flow: row wrap;
- width: 1170px;
-
- margin: auto;
- margin-bottom: 63px;
-
- .app-gridster-header {
- background-color: @u;
- font-size:12px;
- overflow:hidden
- }
-
- .app-gridster-footer {
- background-color: @u;
- }
-
- .portals-list-item {
- background-color: @u;
- border-radius: 2px;
- box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.1);
- display: inline-block;
- width: 360px;
- height: 300px;
- background-size: cover;
- cursor: pointer;
- margin: 15px;
- overflow: hidden;
-
- .portals-item-info {
- background-color: @u;
- height: 120px;
- top: 180px;
- position: relative;
- box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.1);
- padding: 16px;
-
- .info-title {
- .a24r;
- margin-bottom: 4px;
-
- text-overflow: ellipsis;
- overflow: hidden;
- }
- .info-description {
- .c16r;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .info-button {
- .btn-green;
- width: 96px;
- position: absolute;
- bottom: 16px;
- left: 16px;
- }
-
- &:hover {
- opacity: .93;
- z-index: 3;
- }
- }
- }
- }
- }
-}
-.w-ecomp-main-error{
- .o14r;
- position: absolute;
- width: 100%;
- line-height: 1.5em;
-}
-.w-ecomp-main-disclaimer {
- text-align: center;
- .o14r;
- //position: absolute;
- bottom: -75px;
- line-height: 1.5em;
- margin: 0 auto;
- width:1170px;
- position: relative;
-
-}
-.build-number {
- .o12i;
-}
-
-@keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-.slide.ng-hide-add,
-.slide.ng-hide-remove,
-.slide.ng-enter,
-.slide.ng-leave {
- transition: all 0.5s ease;
-}
-.slide.ng-hide,
-.slide.ng-enter {
- transform: translate(-100%, 0);
-}
-.slide.ng-enter-active {
- transform: translate(0, 0);
-}
-.slide.ng-leave {
- transform: translate(0, 0);
-}
-.slide.ng-leave-active {
- transform: translate(+100%, 0);
-}
-.dashboard-boarder{
- height: 210px;
- overflow: auto;
-}
-.dashboard-information-boarder{
- border: 2px solid #ccc!important;
- border-radius: 16px!important;
-}
-
-#information-section {
- margin-top:50px;
-}
-
-.information-section-title{
- color: #0574ac;
- font-family: arial;
- font-size: 25px;
- margin: 20px;
- width: 1170px;
-}
-#left {
- float: left;
- width: 33%;
- height:300px;
- background-color:white;
-}
-
-#center {
- float: right;
- width: 33%;
- height:300px;
- background: white;
-}
-#right {
- margin-left:34%;
- margin-right:34%;
- height:300px;
- background:white;
-}
-
-
-.dock ul{
-display: inline-block;
-
-width: auto;
-margin: 0px;
-padding: 0px;
-list-style: none;
-
-}
-.dock ul li {
-width: auto;
-height: auto;
-display: inline-block;
-bottom: 0;
-vertical-align: bottom;
-margin-top: -43px;
-}
-.dock ul li a {
-display: block;
-height: 150px;
-width: 150px;
-position: relative;
--webkit-transition-property: width, height,margin-top;
--webkit-transition-duration: 0.5s;
--o-transition-property: width, height,margin-top;
--o-transition-duration: 0.5s;
--moz-transition-property: width, height,margin-top;
--moz-transition-duration: 0.5s;
-}
-.dock ul li a:hover {
-width: 200px;
-height: 200px;
-margin-top: -50px;
-}
-.dock ul li a img {
-width: 100%;
-position: absolute;
-bottom: 0;
-left: 0;
-border: none;
-padding: 0px 0px 0px 30px;
-}
-.dock_left{
-width: 31px;
--webkit-transform: rotate(33deg);
--moz-transform: rotate(33deg);
--o-transform: rotate(33deg);
-position: relative;
-background: #EEE;
-overflow: hidden;
-float: left;
-height: 100px;
-z-index: 2;
-margin: -18px;
-}
-.dock_right{
-width: 36px;
--webkit-transform: rotate(-33deg);
--moz-transform: rotate(-33deg);
--o-transform: rotate(-33deg);
-position: relative;
-background: #EEE;
-overflow: hidden;
-float: left;
-height: 100px;
-z-index: 2;
-margin: -18px;
-}
-
-
-
-
-* {margin: 0; padding: 0;}
-body {background: #ccc;}
-
-.slider{
- width: 640px;
- position: relative;
- padding-top: 320px;
-
- margin: 50px auto;
-
- box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75);
-}
-
-.slider>img{
- position: absolute;
- left: 0; top: 0;
- transition: all 0.5s;
-}
-
-.slider input[name='slide_switch'] {
- display: none;
-}
-
-.slider label {
- margin: 18px 0 0 18px;
- border: 3px solid #999;
-
- float: left;
- cursor: pointer;
- transition: all 0.5s;
-
- opacity: 0.6;
-}
-
-.slider label img{
- display: block;
-}
-
-.slider input[name='slide_switch']:checked+label {
- border-color: #666;
- opacity: 1;
-}
-
-.slider input[name='slide_switch'] ~ img {
- opacity: 0;
- transform: scale(1.1);
-}
-/*That hides all main images at a 110% size
-On click the images will be displayed at normal size to complete the effect
-*/
-.slider input[name='slide_switch']:checked+label+img {
- opacity: 1;
- transform: scale(1);
-}
-
-.accordion {
- width: 895px; height: 320px;
- overflow: hidden;
- box-shadow: 0 10px 6px -6px #111;
- margin: 20px auto
-}
-.accordion ul { width: 200% }
-
-.accordion li {
- position: relative;
- display: block;
- width: 160px;
- float: left;
- box-shadow: 0 0 30px 8px #222;
- transition: all 0.4s ease .300ms;
-}
-
-.accordion ul:hover li {width: 40px }
-.accordion ul li:hover {width: 640px }
-
-.caption {
- background: rgba(0, 0, 0, 0.5);
- position: absolute;
- bottom: 0;
- width: 640px
-}
-
-.caption a {
- display: block;
- color: #fff;
- text-decoration: none;
- font: normal 16px 'Lato', Helvetica, Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- padding: 15px;
-}
-
-
-
-/*events*/
-.events-date{
- margin-left: 10px;
- float:left;
- white-space: normal;
- display: inline-block;
- vertical-align: middle;
- width: 55px;
-}
-.event-title-div{
- float: left;
- width: 235px;
- line-height: 20px;
- padding: 5px;
- font-size: 14px;
- margin-left: 4px;
-}
-.events-date{
- height: 20px;
- margin-left: 4px;
- font-size: 14px;
-}
-.events-content{
- font-size: 14px;
- color: #444;
- margin-right: 10px;
-}
-.events-content-body{
- margin-top:5px;
- color:#444;
- margin-left:12px;
- line-height:1.5;
-}
-.events {
- border-radius: 4px;
- padding: 3px;
- -webkit-user-select: none;
-}
-.events ul {
- float: left;
- width:100%;
- -webkit-user-select: none
-}
-.events ul li {
- line-height: 30px;
- list-style: none;
- border-bottom: 2px solid grey;
- height: 100%;
- min-height: 42px;
-}
-.events ul li:hover {
- background: #ddd;
- cursor: pointer;
-}
-.events ul li a {
- color: black;
- text-decoration: none;
- font: 14px Helvetica, Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- -webkit-user-select: none;
- font-family: arial;
-}
-.events-link{
- color: #067ab4 !important;
-}
-
-
-
-/*widgets*/
-.singleBtnBorder {
- border-radius: 6px 6px 6px 6px;
-}
-
-.widgetHeaderBtn{
-
- height: 30px;
- background-color: #FFFFFF;
- position: relative;
- display: inline-block;
- -moz-background-clip: padding-box;
- -webkit-background-clip: padding-box;
- background-clip: padding-box;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- padding: 8px 20px;
- font-size: 14px;
- line-height: 14px;
- min-width: 60px;
- border: none;
- border-radius: 6px;
- background-color: #ffffff;
- background-image: none;
- color: #ffffff;
- vertical-align: middle;
- text-align: center;
- text-decoration: none;
- text-transform: capitalize;
- text-shadow: none;
- white-space: nowrap;
- cursor: pointer;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- -o-user-select: none;
- user-select: none;
- -webkit-transition: background-color 0.3s ease-out;
- -moz-transition: background-color 0.3s ease-out;
- transition: background-color 0.3s ease-out;
- }
-
-.widgetHeaderBtnPosition {
- width: 30px;
- min-width: 0px;
- border: 1px solid #AAAAAA;
- padding-left: 5px;
- padding-right: 5px;
- }
-
-.icon-anchor {
- color: #888;
-}
-
-.widgetHeaderBtn:hover, .widgetHeaderBtn:focus {
- background: rgba(0, 0, 0, 0);
- color: #3a7999;
- box-shadow: inset 0 0 0 2px #3a7999;
-}
-
-@keyframes ticker {
- 0% {margin-top: 0}
- 25% {margin-top: -55px}
- 50% {margin-top: -110px}
- 75% {margin-top: -165px}
- 100% {margin-top: 0}
-}
-
-body { background: #333; width: 100%; height: 100% }
-
-.news {
-
- width: 350px;
- height: 250px;
- margin: 0px auto;
- border-radius: 4px;
- padding: 3px;
- -webkit-user-select: none;
-
-}
-
-
-
-.news ul {
- float: left;
- width:100%;
- -webkit-user-select: none
-}
-
-.news ul li {line-height: 30px; list-style: none;
- border-bottom: 2px solid grey;
- min-height: 42px;
- }
-
-.news ul li:hover {
- background: #ddd;
- cursor: pointer;
-}
-
-.news ul li a {
- color: black;
- text-decoration: none;
- font-size: 14px;
- line-height: 1.5;
- display: inline-block;
- width:100%;
- min-height:40px;
- padding-top: 5px;
- padding-bottom: 5px;
- -webkit-font-smoothing: antialiased;
- -webkit-user-select: none;
-
- /* font-family: arial;*/
-}
-
-.news ul:hover { animation-play-state: paused }
-.news span:hover+ul { animation-play-state: paused }
-.resources {
-
- width: 350px;
- height: 200px;
- margin-left: 5px;
- border-radius: 4px;
- padding: 3px;
- -webkit-user-select: none;
-
-}
-
-
-
-.resources ul {
- float: left;
- width:100%;
-
- -webkit-user-select: none
-}
-
-.resources ul li {line-height: 30px; list-style: none;
- border-bottom: 2px solid grey;
- min-height: 42px;
- }
-
-.resources ul li:hover {
- background: #ddd;
- cursor: pointer;
-}
-
-.resources ul li a {
- color: black;
- text-decoration: none;
- font-size: 14px;
- line-height: 1.5;
- width:100%;
- min-height:40px;
- display: inline-block;
- padding-top: 5px;
- padding-bottom: 5px;
- -webkit-font-smoothing: antialiased;
- -webkit-user-select: none;
-}
-
-
-.blue { background: #347fd0 }
-.blue span { background: #2c66be }
-.red { background: #d23435 }
-.red span { background: #c22b2c }
-.green { background: #699B67 }
-.green span { background: #547d52 }
-.magenta { background: #b63ace }
-.magenta span { background: #842696 }
-
-
-.box-one {
- -webkit-transition:all linear 0.4s;
- transition:all linear 0.4s;
- height:100px; width:200px; background:white; border: 2px solid #ccc!important;
- border-radius: 16px!important;
-}
-.box-one.ng-hide {
-display: block!important;
- opacity:0;
-}
-
-.gridsterContent{
- height:120px;
-}
-.gridsterAppContent{
- height:120px;
-
-}
-
- .gridsterImage{
- height:84px;
- width:168px;
- }
- .grider-content-ecomp{
- transition: transform 0.5s ease-out;
- }
- .grider-content-ecomp:hover{
- transform: scale(1.1);
-}
-
-
-.information-section{
- /*margin-top:25px;*/
-}
-.information-section-gridsterContent{
- height:300px;
-}
-.information-sections-gridster-header{
- color: #0574ac;
- font-family: arial;
- font-size: 25px;
-
-}
-/*application empty div*/
-.app-error-block {
- padding-top: 10px;
-
-}
-.activity-error-block {
- padding-top: 60px;
-
-}
-
-.activity-error-msg1{
- text-align: center;
- margin-top: 20px;
- font-family: arial;
- color: #444;
- font-size: 20px;
-
-}
-
-.newstape {
- background: white;
- color: black;
- height: 400px;
- overflow: hidden;
-}
-
-.newstape-content {
- position: relative;
- padding: 15px;
-}
-
-.newstape-drag { cursor: ns-resize; }
-
-.text-center { text-align: center; }
-
-.text-right { text-align: right; }
-
-.text-justify { text-align: justify; }
-
-.optionsMenu{
- position: absolute;
- list-style: none;
- top: 25px;
- right: 10px;
- border: 1px solid #067ab4;
- display: none;
- z-index: 2;
- border-radius: 6px 0px 6px 6px;
- background: #fff;
- width: 130px;
-}
-
-.optionsMenuLink {
- position: relative;
- padding-left: 8px;
- padding-right: 2px;
- font-size: 12px;
- line-height: 30px;
- color: #444444;
-}
-.optionsMenu > li:hover a {
- color: #ffffff !important;
-}
-.optionsMenu > li {
- width: 100%;
- text-align: left;
-}
-.optionsMenu > li:hover {
- background-color: #0faaf7;
- border-color: none !important;
- cursor: pointer;
-}
-
-.simulateGridHeader{
- position: relative;
- height: 50px !important;
- border: 1px solid #d3d3d3;
- border-bottom: 0;
- background-color: #E5E5E5;
- white-space: nowrap;
- text-overflow: ellipsis;
- z-index: 1;
-}
-
-.simulateGridHeaderTitle{
- line-height: 44px;
- margin-left: 26px;
- font-family: arial;
- font-size: 18px;
- color: #444444;
- float: left;
-}
-
-.simulateGridHeaderHandle{
- cursor: move;
- margin: 12px;
- position: absolute;
- top: 0;
- left: 0;
- border: 0;
- vertical-align: middle;
- -ms-interpolation-mode: bicubic;
- display: block;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/dashboard/dashboard.tpl.html b/ecomp-portal-FE/client/app/views/dashboard/dashboard.tpl.html
deleted file mode 100644
index 0d96a585..00000000
--- a/ecomp-portal-FE/client/app/views/dashboard/dashboard.tpl.html
+++ /dev/null
@@ -1,346 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-applications-home" id="contentId">
- <div class="applications-home-container">
- <div align="center" id="errorInfo"
- style="display: none; font-size: 12px; margin-left: 5px">
- <span style="color: red">You don't have a user account in that
- application. Please ask the system administrator. </span>
- </div>
- <div class="portals-list" style="margin-bottom: 0px;">
- <div>
- <div class="simulateGridHeader">
- <span class="simulateGridHeaderTitle">Applications</span>
- </div>
- <div class="dashboard-boarder">
- <div class="gridster-container override_background">
-
- <div att-gridster att-gridster-options="dashboard.gridsterOpts">
-
- <div ng-if="appsView.length==1">
- <i class="ion-information-circled full-linear-ion-information-circled"
- style="margin-left: 50%; font-size: 90px; color: black"></i> <br>
- <div class="activity-error-msg1">
- <span>Click on the tile at the left to personalize your applications.</span>
- </div>
- </div>
-
- <div class="style_prevu_kit" att-gridster-item='item'
- ng-repeat="item in appsView"
- id="app-{{item.headerText.split(' ').join('-')}}">
- <!-- A regular application tile -->
- <div class="grider-content-ecomp" ng-if="item.addRemoveApps == null">
- <div id="grips-{{item.headerText.split(' ').join('-')}}"
- ng-hide="users.isLoadingTable && !users.getUserAppsIsDone"
- att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text="{{item.headerText | elipsis: 33}}"
- class="app-gridster-header"></div>
- <div id="app-image-{{item.headerText.split(' ').join('-')}}"
- att-gridster-item-body
- ng-style="{'cursor':'pointer',
- 'background-image': 'url('+(item.imageLink)+')',
- 'order': item.order,
- 'background-color':'white',
- 'background-repeat': 'no-repeat',
- 'background-size': '170px 130px'}"
- ng-click="dashboard.goToPortal(item)"
- ng-hide="users.isLoadingTable && !users.getUserAppsIsDone"
- class="gridsterContent"></div>
- </div>
- <!-- Format the special tile differently -->
- <div class="grider-content-ecomp" style="width: 170px" ng-if="item.addRemoveApps">
- <div id="grips-add-remove-applications-tile" att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text='Select applications..'
- ng-click="dashboard.goToCatalog()"
- ng-style="{'cursor':'pointer'}"
- class="app-gridster-header">
- </div>
- <div id="app-image-empty" att-gridster-item-body
- ng-style="{'cursor':'pointer',
- 'text-align':'center',
- 'order': item.order,
- 'background-color':'white',
- 'background-repeat': 'no-repeat',
- 'background-size': '170px 130px',
- 'width': '170px',
- 'height': '120px',
- 'opacity': '1'}"
- ng-click="dashboard.goToCatalog()" class="gridsterContent">
- <label style="font-size:12px">Click here to personalize <br> this applications page</label>
- <i class="ion-plus-circled" style="font-size:70px;color: #067ab4"></i>
- </div>
- </div>
- </div>
-
- </div>
-
- </div>
-
- </div>
- </div>
-
- <br>
- <br>
-
- <div class="information-section">
- <div id="news-gridster-container"
- class="gridster-container override_background">
- <div att-gridster att-gridster-options="dashboard.gridsterOpts">
-
- <div class="style_prevu_kit">
- <!-- News -->
- <div att-gridster-item='newsGridsterItem'>
- <div att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text="{{newsGridsterItem.headerText | elipsis: 33}}"
- header-icon="full-linear-icon-webwindow"
- sub-header-text="{{newsGridsterItem.subHeaderText | elipsis: 56}}"
- class="information-sections-gridster-header"
- style="font-size: 18px">
-
- <div ng-if="isAdminPortalAdmin == true"
- style="font-size: 20px;">
-
- <a id="widgetHeaderBtns"
- class="widgetHeaderBtn widgetHeaderBtnPosition singleBtnBorder"
- ng-mousedown="showNewsOption=!showNewsOption"
- ng-mouseleave="showNewsOption=false"
- ng-class="singleBtnBorder" role="button" alt="Settings"
- title="Settings" att-accessibility-click="13,32" tabindex="0">
- <span class="ion-more" style="color:#888"></span>
- </a>
- <ul class="optionsMenu"
- style="max-width: 130px; height: 32px; display: block"
- ng-show="showNewsOption" ng-mouseenter="showNewsOption=true"
- ng-mouseleave="showNewsOption=false">
- <!-- ngIf: widget.duplicateAllowed -->
- <li ng-click="editWidgetModalPopup(newsData, 'NEWS');"
- ddh-accessibility-click="13,32"><a
- class="optionsMenuLink" href="javascript:void(0)">Edit</a></li>
- <!-- end ngIf: widget.duplicateAllowed -->
-
- </ul>
- </div>
-
- </div>
- <div id="newsContainer" att-gridster-item-body
- class="information-section-gridsterContent">
- <div class="news">
- <ul id="newsContent" ng-show="newsData.length!=0">
- <li ng-repeat="news in newsData"><a href="{{news.href}}"
- target="_blank" ng-bind="news.title"></a></li>
- </ul>
- <div ng-hide="newsData.length!=0">
- <div class="activity-error-container"
- style="background: rgb(255, 255, 255); overflow: auto !important; width: 100%;">
- <div class="activity-error-block">
- <i class="ion-information-circled full-linear-ion-information-circled"
- style="margin-left: 125px; font-size: 90px"></i> <br>
- <div class="activity-error-msg1">There's currently no
- news available.</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Events -->
- <div att-gridster-item='eventsGridsterItem'>
- <div att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text="{{eventsGridsterItem.headerText | elipsis: 33}}"
- header-icon="full-linear-icon-calendar"
- sub-header-text="{{eventsGridsterItem.subHeaderText | elipsis: 56}}"
- class="information-sections-gridster-header"
- style="font-size: 18px">
- <div style="font-size: 20px;"
- ng-if="isAdminPortalAdmin == true" class="ng-scope"
- role="button" tabindex="0">
- <a id="widgetHeaderBtns"
- class="widgetHeaderBtn widgetHeaderBtnPosition singleBtnBorder"
- ng-mousedown="showEventsOption=!showEventsOption"
- ng-mouseleave="showEventsOption=false"
- ng-class="singleBtnBorder" role="button" alt="Settings"
- title="Settings" att-accessibility-click="13,32" tabindex="0">
- <span class="ion-more" style="color:#888"></span>
- </a>
- <ul class="optionsMenu"
- style="max-width: 130px; height: 32px; display: block"
- ng-show="showEventsOption"
- ng-mouseenter="showEventsOption=true"
- ng-mouseleave="showEventsOption=false">
- <!-- ngIf: widget.duplicateAllowed -->
- <li ng-click="editWidgetModalPopup(eventData, 'EVENTS');">
- <a class="optionsMenuLink" href="javascript:void(0)"
- ddh-accessibility-click="13,32">Edit</a>
- </li>
- <!-- end ngIf: widget.duplicateAllowed -->
- </ul>
- </div>
- </div>
- <div att-gridster-item-body
- class="information-section-gridsterContent">
- <div class="events">
- <ul ng-show="eventData.length!=0">
- <li ng-repeat="event in eventData">
- <div ng-click="event_content_show=!event_content_show">
- <div class="events-date">{{event.mon}}/{{event.day}}/{{event.year}}
- </div>
- <div>
- <div class="event-title-div">
- <p ng-bind="event.title"></p>
- </div>
- <div>
- <span class="ion-ios-arrow-up" ng-if="event_content_show"
- style="color: #888; font-size: 22px;"></span> <span
- class="ion-ios-arrow-down" ng-if="!event_content_show"
- style="color: #888; font-size: 22px;"></span>
-
- </div>
- <div style="clear: both;"></div>
- </div>
- </div>
- <div class="events-content" ng-show="event_content_show">
- <div class="events-content-body">
- <a class="events-link" ng-href="{{event.href}}"
- target="_blank"> <span ng-bind="event.content"></span>
- </a>
- </div>
- <div></div>
- </div>
- </li>
-
-
- </ul>
- <div ng-hide="eventData.length!=0">
- <div class="activity-error-container"
- style="background: rgb(255, 255, 255); overflow: hidden !important; width: 100%;">
- <div class="activity-error-block">
- <i class="ion-information-circled full-linear-ion-information-circled"
- style="margin-left: 125px; font-size: 90px"></i> <br>
- <div class="activity-error-msg1">There's currently no
- event available.</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- Important Resources -->
- <div att-gridster-item='impoResGridsterItem'>
- <div att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text="{{impoResGridsterItem.headerText | elipsis: 33}}"
- header-icon="full-linear-icon-cloud"
- sub-header-text="{{impoResGridsterItem.subHeaderText | elipsis: 56}}"
- class="information-sections-gridster-header"
- style="font-size: 18px">
- <!-- <span class="full-linear-icon-cloud" style="font-size: 33px; font-weight: bold; margin-right: 10px;"></span>
- -->
- <div style="font-size: 20px;"
- ng-if="isAdminPortalAdmin == true" class="ng-scope"
- role="button" tabindex="0">
- <a id="widgetHeaderBtns"
- class="widgetHeaderBtn widgetHeaderBtnPosition singleBtnBorder"
- ng-class="singleBtnBorder" role="button" alt="Settings"
- ng-mousedown="showImpResOption=!showImpResOption"
- ng-mouseleave="showImpResOption=false" title="Settings"
- att-accessibility-click="13,32" tabindex="0"> <span
- class="ion-more" style="color:#888"></span>
- </a>
-
- <ul class="optionsMenu"
- style="max-width: 130px; height: 32px; display: block"
- ng-show="showImpResOption"
- ng-mouseenter="showImpResOption=true"
- ng-mouseleave="showImpResOption=false">
- <!-- ngIf: widget.duplicateAllowed -->
- <li
- ng-click="editWidgetModalPopup(importResData, 'IMPORTANTRESOURCES');">
- <a class="optionsMenuLink" href="javascript:void(0)"
- ddh-accessibility-click="13,32">Edit</a>
- </li>
- <!-- end ngIf: widget.duplicateAllowed -->
-
- </ul>
- </div>
- </div>
- <div att-gridster-item-body
- class="information-section-gridsterContent">
- <div class="resources">
- <ul ng-show="importResData.length!=0">
-
- <li ng-repeat="item in importResData"><a
- href="{{item.href}}" target="_blanl">{{item.title}}</a></li>
- </ul>
- <div ng-hide="importResData.length!=0">
- <div class="activity-error-container"
- style="background: rgb(255, 255, 255); overflow: hidden !important; width: 100%;">
- <div class="activity-error-block">
- <i class="ion-information-circled full-linear-ion-information-circled"
- style="margin-left: 125px; font-size: 90px"></i> <br>
- <div class="activity-error-msg1">There's currently no
- links available.</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="style_prevu_kit" att-gridster-item='item'
- ng-repeat="item in widgetData">
- <div>
- <div att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text="{{item.headerText | elipsis: 33}}"
- sub-header-text="{{item.subHeaderText | elipsis: 56}}"
- class="app-gridster-header"></div>
- <div att-gridster-item-body></div>
- </div>
-
- </div>
-
- <div class="style_prevu_kit" att-gridster-item='item'
- ng-repeat="item in widgetData">
- <div>
- <div att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text="{{item.headerText | elipsis: 33}}"
- sub-header-text="{{item.subHeaderText | elipsis: 56}}"
- class="app-gridster-header"></div>
- <div att-gridster-item-body></div>
- </div>
-
- </div>
- </div>
- </div>
- </div>
-
- <div></div>
-
- </div>
-
- </div>
-</div> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/dashboard/newsticker.controller.js b/ecomp-portal-FE/client/app/views/dashboard/newsticker.controller.js
deleted file mode 100644
index 88e6942e..00000000
--- a/ecomp-portal-FE/client/app/views/dashboard/newsticker.controller.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class NewsTickerController {
- constructor($scope) {
- $scope.newstape = function(){
- jQuery('.newstape').newstape({
-
- period: 30,
-
- offset: 1,
-
- mousewheel: true,
-
- mousewheelRate: 30,
-
- dragable: true,
-
- heightSpy: true
-
- });
- };
- $scope.newstape();
-
- }
- }
- NewsTickerController.$inject = ['$scope'];
- angular.module('ecompApp').controller('NewsTickerController', NewsTickerController);
-})();
diff --git a/ecomp-portal-FE/client/app/views/errors/error.404.tpl.html b/ecomp-portal-FE/client/app/views/errors/error.404.tpl.html
deleted file mode 100644
index 255bfe36..00000000
--- a/ecomp-portal-FE/client/app/views/errors/error.404.tpl.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-main">
- <div class="w-ecomp-main-container">
- <div class="admins-page-main">
- <div id="404-title" class="w-ecomp-main-view-title">Page Not Found</div>
- <div class="admins-table">
- <span id="404-error-text" class="errors-text ">The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please select from the
- menu on the left to navigate to a valid page.
- </span>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/errors/error.controller.js b/ecomp-portal-FE/client/app/views/errors/error.controller.js
deleted file mode 100644
index 7bf86c24..00000000
--- a/ecomp-portal-FE/client/app/views/errors/error.controller.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class ErrorCtrl {
- constructor($scope, $window) {
-
- $scope.errorMsg = '';
-
- if(window.location.href.indexOf('noUserError') !== -1){
- $scope.errorMsg = 'You do not have a user account for this application. Please contact your system administrator';
- } else if(window.location.href.indexOf('unKnownError') !== -1){
- $scope.errorMsg = 'An unknown error has occurred. Please contact your system administrator';
- }
- }
- }
- ErrorCtrl.$inject = ['$scope','$window'];
- angular.module('ecompApp').controller('ErrorCtrl', ErrorCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/errors/error.tpl.html b/ecomp-portal-FE/client/app/views/errors/error.tpl.html
deleted file mode 100644
index 9de8084a..00000000
--- a/ecomp-portal-FE/client/app/views/errors/error.tpl.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-main">
- <div class="w-ecomp-main-container">
- <div >
- <div class="admins-table" align="center" id="errorInfo" style="font-size:12px;margin-left:5px"><span class="errors-text">{{errorMsg}}</span></div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/footer/footer.controller.js b/ecomp-portal-FE/client/app/views/footer/footer.controller.js
deleted file mode 100644
index adcd470a..00000000
--- a/ecomp-portal-FE/client/app/views/footer/footer.controller.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class FooterCtrl {
- constructor($scope, $rootScope, manifestService, $log) {
- this.manifestService = manifestService;
- this.$log = $log;
- this.$scope = $scope;
- this.$rootScope = $rootScope;
-
- $scope.buildinfo = null;
-
- $rootScope.showFooter = true;
- $scope.date = new Date();
-
- $scope.portalName = "OpenECOMP Portal Version: ";
-
- manifestService.getManifest().then( jsonObj => {
- // $log.debug('FooterCtrl.getManifest: ', JSON.stringify(jsonObj));
- $scope.buildInfo = jsonObj;
-
- }).catch(err=> {
- $log.error('FooterCtrl::updateTableData error :',err);
- });
- };
-
- }
-
- FooterCtrl.$inject = ['$scope', '$rootScope', 'manifestService', '$log'];
- angular.module('ecompApp').controller('FooterCtrl', FooterCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/footer/footer.controller.spec.js b/ecomp-portal-FE/client/app/views/footer/footer.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/footer/footer.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/footer/footer.less b/ecomp-portal-FE/client/app/views/footer/footer.less
deleted file mode 100644
index f8eee07d..00000000
--- a/ecomp-portal-FE/client/app/views/footer/footer.less
+++ /dev/null
@@ -1,53 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-footer {
- z-index: 101;
- background-color: rgb(6, 122, 180);
- position: absolute;
- bottom: 0;
- width: 100%;
- height: @footer-height;
- .o12r;
- color: white;
-
- a {
- color: white;
- }
-
- .footer-image {
- margin: auto;
-
- }
-
- .build-number {
- float: right;
- padding: 5px;
- color: white;
- }
- .footer-content {
- align-items: center;
- text-align: center;
- vertical-align: middle;
- display: flex;
- justify-content: center;
- //width: @table-width;
- margin: auto;
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/footer/footer.tpl.html b/ecomp-portal-FE/client/app/views/footer/footer.tpl.html
deleted file mode 100644
index a1788a3a..00000000
--- a/ecomp-portal-FE/client/app/views/footer/footer.tpl.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-footer" id="w-ecomp-footer" ng-style="{height: tabBottom}">
- <div id="footer" class="footer-content">
- <div >
- <img id="logo-image" class="footer-image">
- </div>
- <div >
- <p>
-
- </p>
- <p>
-
- </p>
- <p id="build-number" class="build-number" >OpenECOMP Portal Version: 1.0.0</p>
- <!-- <p id="build-number" class="build-number" >ECOMP Portal Version: {{buildInfo.manifest['Implementation-Version']}}.{{buildInfo.manifest['Build-Number']}}</p> -->
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.controller.js b/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.controller.js
deleted file mode 100644
index 0d27d868..00000000
--- a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.controller.js
+++ /dev/null
@@ -1,384 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class MenuDetailsModalCtrl {
- constructor($scope, $log, functionalMenuService, errorMessageByCode, ECOMP_URL_REGEX,$rootScope,confirmBoxService) {
- let newMenuModel = {
- name: null,
- menuId: null,
- parentMenuId: null,
- url: null
- };
-
- let getAvailableRoles = (appid) => {
- this.isSaving = true;
- if (appid != null) {
- $log.debug("MenuDetailsModalCtrl::getAvailableRoles: About to call getManagedRolesMenu");
- functionalMenuService.getManagedRolesMenu(appid).then(rolesObj => {
- $log.debug("MenuDetailsModalCtrl::getAvailableRoles: Roles returned = " + JSON.stringify(rolesObj))
- this.availableRoles = rolesObj;
- this.preSelectedRoles = {roles:[]};
-
- if(($scope.ngDialogData.source=='edit') && this.isMidLevelMenuItem()){
- this.preSelectedRoles = {roles:[]};
- }else if(!angular.isUndefined(this.menuItem.menuDetails) &&
- $scope.ngDialogData.source=='edit' && this.isLeafMenuItem() &&
- this.menuItem.menuDetails.appid!=appid) {
- this.preSelectedRoles = {roles:[]};
- }else{
- if((!angular.isUndefined(this.menuItem.menuDetails)) &&
- (!angular.isUndefined(this.menuItem.menuDetails.roles))){
- $log.debug('menuDetails.roles: ' + this.menuItem.menuDetails.roles);
- for(var i=0; i<this.menuItem.menuDetails.roles.length; i++){
- var role = {"roleId":this.menuItem.menuDetails.roles[i]};
- $log.debug('MenuDetailsModalCtrl::getAvailableRoles: adding role to preselected: ' + i + ': ' + JSON.stringify(role));
- this.preSelectedRoles.roles.push(role);
- }
- }
- }
- $rootScope.$broadcast('availableRolesReady');
- this.isSaving = false;
- }).catch(err => {
- $log.error("MenuDetailsModalCtrl::getAvailableRoles: error: " + err);
- });
- } else {
- $log.debug("MenuDetailsModalCtrl::getAvailableRoles: appid was null");
- }
- };
-
- let getAvailableApps = () => {
- functionalMenuService.getAvailableApplications().then(apps => {
- $log.debug("MenuDetailsModalCtrl::getAvailableApps: Apps returned = " + JSON.stringify(apps))
- this.availableApps = apps;
- if (angular.isDefined(this.selectedApp) && angular.isDefined(this.selectedApp.index)) {
- for (var i = 0; i < apps.length; i++) {
- if (apps[i].index === this.selectedApp.index) {
- $log.debug("MenuDetailsModalCtrl::getAvailableApps: found app with index: " + this.selectedApp.index);
- $log.debug("MenuDetailsModalCtrl::getAvailableApps: setting isDisabled to: " + !apps[i].enabled);
- this.selectedApp.isDisabled = !apps[i].enabled;
- break;
- }
- }
- $log.debug("didn't find index: " + this.selectedApp.index);
- }
- })['catch'](function (err) {
- $log.error("MenuDetailsModalCtrl::getAvailableApps: getAvailableApps error: " + err);
- }).finally(()=>{
- this.isSaving = false;
- });
- };
-
- let init = () => {
- $log.info('MenuDetailsModalCtrl::init');
- this.saveOrContinueBtnText = "Save";
- this.isSaving = false;
- this.displayRoles = $scope.ngDialogData.source=='view' ? true : false;
- this.formEditable = $scope.ngDialogData.source=='view' ? false : true;
- this.selectedRole = [];
- this.availableRoles = [];
- this.menuItem = _.clone($scope.ngDialogData.menuItem);
- $log.info('MenuDetailsModalCtrl::getAvailableApps: Within init, about to check menuDetails for defined');
- if(!angular.isUndefined(this.menuItem.menuDetails) &&
- ($scope.ngDialogData.source=='view' ||
- ($scope.ngDialogData.source=='edit') && this.isLeafMenuItem() )){
-
- $log.debug("MenuDetailsModalCtrl::init: menuItem: ");
- $log.debug('MenuDetailsModalCtrl::init: ',this.menuItem);
- this.menuItem.menu.url = this.menuItem.menuDetails.url;
- this.selectedApp={};
- this.selectedApp.index = this.menuItem.menuDetails.appid;
- getAvailableRoles(this.selectedApp.index);
-
- }
-
- if($scope.ngDialogData.source=='view' || $scope.ngDialogData.source=='edit'){
- this.menutitle = this.menuItem.menu.name;
- this.menuLocation = this.isParentMenuItem() ? this.menuItem.menu.name : this.menuItem.menu.parent.name;
- }else{
- this.menutitle = '';
- this.menuLocation = this.menuItem.menu.name;
- }
- getAvailableApps();
- $log.debug("MenuDetailsModalCtrl::init: Menu details: " + JSON.stringify(this.menuItem.menuDetails));
- };
-
-
- this.ECOMP_URL_REGEX = ECOMP_URL_REGEX;
-
- this.conflictMessages = {};
- this.scrollApi = {};
- let handleConflictErrors = err => {
- if(!err.data){
- return;
- }
- if(!err.data.length){
- err.data = [err.data]
- }
- $log.debug('MenuDetailsModalCtrl::handleConflictErrors: err.data = ' + JSON.stringify(err.data));
- _.forEach(err.data, item => {
- _.forEach(item.fields, field => {
- this.conflictMessages[field.name] = errorMessageByCode[item.errorCode];
- $log.debug('MenuDetailsModalCtrl::handleConflictErrors: fieldName = ' + field.name);
- $scope.functionalMenuForm[field.name].$setValidity('conflict', false);
- watchOnce[field.name]();
- });
- });
- this.scrollApi.scrollTop();
- };
-
- let resetConflict = fieldName => {
- delete this.conflictMessages[fieldName];
- $log.debug('MenuDetailsModalCtrl::resetConflict: $setValidity(true) = ' + fieldName);
- if($scope.functionalMenuForm[fieldName]){
- $scope.functionalMenuForm[fieldName].$setValidity('conflict', true);
- }
- };
-
- let watchOnce = {
- text: () => {
- let unregisterName = $scope.$watch('functionalMenuDetails.menutitle', (newVal, oldVal) => {
- if(newVal.toLowerCase() !== oldVal.toLowerCase()){
- resetConflict('text');
- unregisterName();
- }
- });
- },
- url: () => {
- let unregisterUrl = $scope.$watch('functionalMenuDetails.menuItem.menu.url', (newVal, oldVal) => {
- if(newVal.toLowerCase() !== oldVal.toLowerCase()){
- resetConflict('url');
- unregisterUrl();
- }
- });
- }
- };
-
- //***************************
-
- this.isLeafMenuItem = () => {
- return this.menuItem.menu.children.length>0 ? false : true;
- };
-
- this.isMidLevelMenuItem = () => {
- return this.menuItem.menu.parentMenuId!=null && this.menuItem.menu.children.length>0 ? true : false;
- };
-
- this.isParentMenuItem = () => {
- return this.menuItem.menu.parentMenuId!=null ? false : true;
- };
-
- this.updateSelectedApp = (appItem) => {
- if (!appItem) {
- return;
- }
- $log.debug('MenuDetailsModalCtrl::updateSelectedApp: drop down app item = ' + JSON.stringify(appItem.index));
- $log.debug("MenuDetailsModalCtrl::updateSelectedApp: appItem in updateSelectedApp: ");
- $log.debug('MenuDetailsModalCtrl::updateSelectedApp: ',appItem);
- this.selectedApp.isDisabled = ! appItem.enabled;
- $log.debug("MenuDetailsModalCtrl::updateSelectedApp: isDisabled: "+this.selectedApp.isDisabled);
- getAvailableRoles(appItem.index);
- };
-
- this.continue = () => {
- this.displayRoles = true;
- this.formEditable = false;
- };
-
- this.saveChanges = () => {
-
- if(!!this.menuItem.menu.url && (angular.isUndefined(this.selectedApp) || !this.selectedApp.index>0)) {
- confirmBoxService.showInformation('Please select the appropriate app, or remove the url').then(isConfirmed => {});
- return;
- }else if(!this.menuItem.menu.url && !angular.isUndefined(this.selectedApp) && this.selectedApp.index>0){
- confirmBoxService.showInformation('Please enter url, or select "No Application"').then(isConfirmed => {});
- return;
- }else if(!this.menutitle){
- confirmBoxService.showInformation('Please enter the Menu title').then(isConfirmed => {});
- return;
- }
-
- this.isSaving = true;
- var activeMenuItem = {};
-
- if ($scope.ngDialogData.source == 'edit') {
- $log.debug('MenuDetailsModalCtrl::saveChanges: Will be saving an edit menu item');
- activeMenuItem = {
- menuId:this.menuItem.menu.menuId,
- column:this.menuItem.menu.column,
- text:this.menutitle,
- parentMenuId:this.menuItem.menu.parentMenuId,
- url:this.menuItem.menu.url,
- appid: angular.isUndefined(this.selectedApp) ? null:this.selectedApp.index,
- roles:this.selectedRole
- };
- if (!activeMenuItem.appid && !activeMenuItem.url) {
- activeMenuItem.roles = null;
- }
- functionalMenuService.saveEditedMenuItem(activeMenuItem)
- .then(() => {
- $log.debug('MenuDetailsModalCtrl::saveChanges: Menu Item saved');
- $scope.closeThisDialog(true);
- }).catch(err => {
- if(err.status === 409){
- handleConflictErrors(err);
- }
- $log.error('MenuDetailsModalCtrl::saveChanges: error - ',err);
- }).finally(()=>{
- this.isSaving = false;
- });
-
- $log.debug("MenuDetailsModalCtrl::saveChanges: Edit Menu output will be: " + JSON.stringify(activeMenuItem));
- } else {
- $log.debug('MenuDetailsModalCtrl::saveChanges: Will be saving a New menu item');
- var newMenuItem = {
- menuId:null,
- column:this.menuItem.menu.column,
- text:this.menutitle,
- parentMenuId:this.menuItem.menu.menuId,
- url:this.menuItem.menu.url,
- appid: angular.isUndefined(this.selectedApp) ? null:this.selectedApp.index,
- roles:this.selectedRole
- };
-
- $log.debug("MenuDetailsModalCtrl::saveChanges: New Menu output will be: " + JSON.stringify(newMenuItem));
- functionalMenuService.saveMenuItem(newMenuItem)
- .then(() => {
- $log.debug('MenuDetailsModalCtrl::saveChanges: Menu Item saved');
- $scope.closeThisDialog(true);
- }).catch(err => {
- if(err.status === 409){//Conflict
- handleConflictErrors(err);
- }
- $log.error('MenuDetailsModalCtrl::saveChanges error: ', err);
- }).finally(()=>{
- this.isSaving = false;
- });
-
- }
- };
-
- init();
-
- $scope.$on('$stateChangeStart', e => {
- e.preventDefault();
- });
- }
- }
- MenuDetailsModalCtrl.$inject = ['$scope', '$log', 'functionalMenuService', 'errorMessageByCode', 'ECOMP_URL_REGEX','$rootScope','confirmBoxService'];
- angular.module('ecompApp').controller('MenuDetailsModalCtrl', MenuDetailsModalCtrl);
-
- angular.module('ecompApp').directive('dropdownMultiselect', ['functionalMenuService',function(){
- return {
- restrict: 'E',
- scope: {
- model: '=',
- options: '=',
- populated_roles: '=preSelected',
- dropdownTitle: '@',
- source: '='
- },
- template: "<div class='btn-group' data-ng-class='{open: open}'>" +
- "<button class='btn btn-medium'>{{dropdownTitle}}</button>" +
- "<button class='btn dropdown-toggle' data-ng-click='open=!open;openDropDown()'><span class='caret'></span></button>" +
- "<ul class='dropdown-menu dropdown-menu-medium' aria-labelledby='dropdownMenu'>" +
- "<li data-ng-repeat='option in options'> <input ng-disabled='setDisable(source)' type='checkbox' data-ng-change='setSelectedItem(option.roleId)' ng-model='selectedItems[option.roleId]'>{{option.rolename}}</li>" +
- "</ul>" +
- "</div>",
- controller: function ($scope) {
- $scope.selectedItems = {};
- $scope.checkAll = false;
- $scope.$on('availableRolesReady', function() {
- init();
- });
-
- function init() {
- console.log('dropdownMultiselect init');
- $scope.dropdownTitle = $scope.source =='view' ? 'View Roles' : 'Select Roles';
- console.log('$scope.populated_roles = ' + $scope.populated_roles);
- }
-
- $scope.$watch('populated_roles', function(){
- if ($scope.populated_roles && $scope.populated_roles.length>0) {
- for (var i = 0; i < $scope.populated_roles.length; i++) {
- $scope.model.push($scope.populated_roles[i].roleId);
- $scope.selectedItems[$scope.populated_roles[i].roleId] = true;
- }
- if ($scope.populated_roles.length == $scope.options.length) {
- $scope.checkAll = true;
- }
- }else{
- deselectAll();
- }
- });
-
- $scope.openDropDown = function () {
-
- };
-
- $scope.checkAllClicked = function () {
- if ($scope.checkAll) {
- selectAll();
- } else {
- deselectAll();
- }
- };
-
- function selectAll() {
- $scope.model = [];
- $scope.selectedItems = {};
- angular.forEach($scope.options, function (option) {
- $scope.model.push(option.roleId);
- });
- angular.forEach($scope.model, function (id) {
- $scope.selectedItems[id] = true;
- });
- console.log($scope.model);
- };
-
- function deselectAll() {
- $scope.model = [];
- $scope.selectedItems = {};
- console.log($scope.model);
- };
-
- $scope.setSelectedItem = function (id) {
- var filteredArray = [];
- if ($scope.selectedItems[id] == true) {
- $scope.model.push(id);
- } else {
- filteredArray = $scope.model.filter(function (value) {
- return value != id;
- });
- $scope.model = filteredArray;
- $scope.checkAll = false;
- }
- console.log(filteredArray);
- return false;
- };
-
- $scope.setDisable = function(source){
- return source =='view' ? true : false;
- }
- }
- }
- }]);
-
-})();
diff --git a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.delete.modal.html b/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.delete.modal.html
deleted file mode 100644
index 7157886b..00000000
--- a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.delete.modal.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="functionalMenu-details-modal">
- <div class="title">Delete Menu Item</div>
- <div class="functionalMenu-properties-main" scroll-top="functionalMenuDetails.scrollApi">
- <form name="functionalMenuForm" novalidate>
- <div class="confirmation-message-wrap">
- <div class="confirmation-message" ng-bind="confirmBox.message"></div>
- </div>
- </form>
- </div>
- <div class="dialog-control">
- <span class="ecomp-save-spinner" ng-show="functionalMenuDetails.isSaving"></span>
- <div id='menu-details-next-button' class="next-button"
- ng-class="{disabled: functionalMenuForm.$invalid}" ng-click="functionalMenuDetails.saveChanges()">Delete</div>
- <div class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.modal.html b/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.modal.html
deleted file mode 100644
index 58588ce5..00000000
--- a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/menu-details.modal.html
+++ /dev/null
@@ -1,106 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="functionalMenu-details-modal">
- <div class="title">{{ngDialogData.title}}</div>
- <div class="functionalMenu-properties-main" scroll-top="functionalMenuDetails.scrollApi">
- <form name="functionalMenuForm">
- <div class="item">
- <div class="item-label">Parent</div>
- <input id="input-parent" readonly="readonly" class="input-field"
- value="{{functionalMenuDetails.menuLocation}}" type="text" name="menuItem" required/>
- </div>
- <div class="item">
- <div class="item-label">Title</div>
- <input id="input-title" ng-readonly="!functionalMenuDetails.formEditable ? 'checked':'' "
- placeholder="Enter text" class="input-field" ng-model="functionalMenuDetails.menutitle" type="text" name="text"/>
- <div id="div-error-conflict" class="error-container" ng-show="functionalMenuDetails.conflictMessages.text">
- <small id="msg-error-conflict" id="functionalMenuDetails-input-title-conflict"
- class="err-message" ng-bind="functionalMenuDetails.conflictMessages.text"></small>
- </div>
- </div>
- <div class="item">
- <div class="left-item">
- <div class="item-label">URL</div>
- <input id="input-url" ng-readonly="!functionalMenuDetails.formEditable ? 'checked':'' "
- placeholder="http://" class="input-field" ng-model="functionalMenuDetails.menuItem.menu.url" type="url" name="url"/>
- <span id="error-url-conflict" class="err-message" ng-show="functionalMenuForm.url.$error.url"> Not valid URL!</span>
- </div>
- <div class="right-item">
- <div class="item-label">App</div>
- <div class="custom-select-wrap" ng-readonly="checked">
- <select id="select-app" class="select-field"
- ng-model="functionalMenuDetails.selectedApp"
- ng-change="functionalMenuDetails.updateSelectedApp(functionalMenuDetails.selectedApp);"
- ng-options="app.title for app in functionalMenuDetails.availableApps track by app.index"
- ng-disabled="!functionalMenuDetails.availableApps || !functionalMenuDetails.availableApps.length
- || !functionalMenuDetails.formEditable"
- name="app"
- required>
- <option value="" >No Application</option>
- </select>
- </div>
- </div>
- </div>
- <div class="item" ng-show="functionalMenuDetails.displayRoles==true">
- <div class="item-label">Roles</div>
- <dropdown-multiselect id="dropdown-roles" dropdown-title="Select Roles"
- pre-selected="functionalMenuDetails.preSelectedRoles.roles"
- model="functionalMenuDetails.selectedRole"
- options="functionalMenuDetails.availableRoles" source="ngDialogData.source">
- </dropdown-multiselect>
- </div>
- <div ng-show="functionalMenuDetails.selectedApp && functionalMenuDetails.selectedApp.isDisabled" class="err-message">Application is disabled</div>
- </form>
- </div>
- <div class="dialog-control">
- <div ng-if="ngDialogData.source!='view'">
- <span class="ecomp-save-spinner" ng-show="functionalMenuDetails.isSaving"></span>
- <span ng-if="ngDialogData.source=='edit' && functionalMenuDetails.isLeafMenuItem()">
- <button class="save-button" id="add-menu-button-save"
- ng-show="!functionalMenuDetails.menuItem.menu.url ||
- !(functionalMenuDetails.selectedApp.index>0) ||
- functionalMenuDetails.displayRoles"
- ng-disabled="!functionalMenuForm.text.$valid"
- ng-click="functionalMenuDetails.saveChanges()">Save</button>
- <button class="save-button" id="add-menu-button-continue"
- ng-show="!!functionalMenuDetails.menuItem.menu.url &&
- functionalMenuDetails.selectedApp.index>0 &&
- functionalMenuDetails.menutitle &&
- !functionalMenuDetails.displayRoles"
- ng-disabled="!functionalMenuForm.url.$valid" ng-click="functionalMenuDetails.continue()">Continue</button>
- </span>
- <span ng-if="ngDialogData.source=='add' || (ngDialogData.source=='edit' && !functionalMenuDetails.isLeafMenuItem())">
- <button id="button-save-add"
- class="save-button" ng-show="!functionalMenuDetails.menuItem.menu.url || !(functionalMenuDetails.selectedApp.index>0)
- || functionalMenuDetails.selectedRole.length>0 || !functionalMenuDetails.menutitle" ng-disabled="!functionalMenuForm.text.$valid || !functionalMenuDetails.menutitle"
- ng-click="functionalMenuDetails.saveChanges()">Save</button>
- <button id="button-save-continue" class="save-button"
- ng-show="!!functionalMenuDetails.menuItem.menu.url && functionalMenuDetails.selectedApp.index>0
- && functionalMenuDetails.menutitle
- && !functionalMenuDetails.selectedRole.length>0" ng-disabled="!functionalMenuForm.url.$valid"
- ng-click="functionalMenuDetails.continue()">Continue</button>
- </span>
- <button id="button-cancel-close-dialog" class="cancel-button" ng-click="closeThisDialog()">Cancel</button>
- </div>
- <div ng-if="ngDialogData.source=='view'">
- <div id="div-close-dialog" class="cancel-button" ng-click="closeThisDialog()">Close</div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/modal-details.modal.less b/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/modal-details.modal.less
deleted file mode 100644
index c322f453..00000000
--- a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu-dialog/modal-details.modal.less
+++ /dev/null
@@ -1,103 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .functionalMenu-details-modal {
- height: 430px;
-
- .title {
- .n18r;
- border-bottom: @a 3px solid;
-
- }
-
- .btn-medium{
- width:216px;
- }
- .dropdown-menu-medium{
- width:236px;
- max-height: 200px;
- overflow-y: auto;
- }
-
- .functionalMenu-properties-main {
- padding: 16px;
- height: 306px;
- overflow-y: visible;
-
- .item{
- position: relative;
- margin-bottom: 18px;
-
- .input-field{
- .custom-input-field;
- width: 100%;
- &.url{
- width: 78%;
- display: inline-block;
- }
- }
-
- .select-field {
- .custom-select-field;
- }
-
- .item-label{
- .o14r;
- }
-
- .right-item{
- position: relative;
- display: inline-block;
- width: 48%;
- float: right;
- }
- .left-item{
- display: inline-block;
- width: 48%;
- }
-
- .url-validation-button{
- .btn-blue;
- width: 20%;
- display: inline-block;
- float: right;
- }
-
- .error-container{
- position: absolute;
- width: 220px;
- display: block;
- height: 12px;
- line-height: 12px;
-
- .err-message{
- color: red;
- font-size: 9px;
- }
- .valid-message{
- color: green;
- font-size: 9px;
- }
- }
-
- }
-
- }
-
-}
diff --git a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.controller.js b/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.controller.js
deleted file mode 100644
index d17c4ab8..00000000
--- a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.controller.js
+++ /dev/null
@@ -1,331 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class FunctionalMenuCtrl {
- constructor($log, functionalMenuService, $scope,ngDialog, confirmBoxService) {
- $log.info('FunctionalMenuCtrl init');
-
- $scope.invokeDialog = () => {
- alert("click dialog");
- };
-
- this.regenerateFunctionalMenuAncestors = () => {
- functionalMenuService.regenerateFunctionalMenuAncestors().then(res => {
- $log.debug("FunctionalMenuCtrl:regenerateFunctionalMenuAncestors::returned from regenerateFunctionalMenuAncestors API call");
- confirmBoxService.showInformation('You have successfully regenerated the menu.').then(isConfirmed => {
- });
- })['catch'](function (err) {
- $log.error("FunctionalMenuCtrl:regenerateFunctionalMenuAncestors:: error: " + err);
- confirmBoxService.showInformation('There was an error while regenerating the menu.').then(isConfirmed => {
- });
- });
- };
-
- let getFunctionalMenu = () => {
- this.isLoadingTable = true;
- functionalMenuService.getManagedFunctionalMenu().then(res => {
-
- let actualData=[];
-
- for(let i = 0; i < res.length; i++){
- res[i].children=[];
- res[i].label=res[i].text;
- res[i].id=res[i].text;
-
- }
-
- for(let i = 0; i < res.length; i++){
-
- let parentId=res[i].menuId;
- for(let j = 0; j < res.length; j++){
- let childId=res[j].parentMenuId;
- if(parentId==childId){
- res[i].children.push(res[j]);
-
- }
- }
- }
-
- res.sort(function(a, b) {
- return a.column-b.column;
- })
-
- for(let i = 0; i < res.length; i++){
- res[i].children.sort(function(a, b){
- return a.column-b.column;
- })
- }
-
- for(let i = 0; i < res.length; i++){
- let parentId=res[i].parentMenuId;
- if(parentId==null){
- actualData.push(res[i]);
- }
- }
-
- $scope.treedata = actualData;
-
- }).catch(err => {
- $log.error('FunctionalMenuCtrl:getFunctionalMenu:: error ',err);
- }).finally(()=> {
- this.isLoadingTable = false;
- });
-
- };
-
-
- let init = () => {
- this.isLoadingTable = false;
- this.functionalMenu = [];
- getFunctionalMenu();
- this.searchString = '';
- };
-
- this.filterByDropdownValue = item => {
- if(this.filterByApp.value === ''){
- return true;
- }
- return item.appName === this.filterByApp.value;
- };
-
- let getDialogTitle = (source) => {
- switch (source) {
- case 'edit':
- return "Functional Menu - Edit";
- case 'view':
- return "Functional Menu - View";
- case 'add':
- return "Functional Menu - Add";
- default:
- return "Functional Menu";
- }
- }
-
- $scope.reloadTreeStructure = (selectedItem,source) => {
- getFunctionalMenu();
- };
- $scope.openMenuDetailsModal = (selectedItem,source) => {
- let data = null;
- let selectedMenuDetails = null;
- console.log('selectedItem: ', selectedItem);
-
- functionalMenuService.getMenuDetails(selectedItem.menuId)
- .then(function( resp ){
- selectedMenuDetails = resp;
- $log.info('FunctionalMenuCtrl::openMenuDetailsModal: getMenuDetails: ', resp );
-
- if(selectedItem){
- data = {
- menuItem: {menu: _.clone(selectedItem),menuDetails:_.clone(selectedMenuDetails)},
- source: source,
- title: getDialogTitle(source)
- }
- }
- ngDialog.open({
- templateUrl: 'app/views/functionalMenu/functionalMenu-dialog/menu-details.modal.html',
- controller: 'MenuDetailsModalCtrl',
- controllerAs: 'functionalMenuDetails',
- data: data
- }).closePromise.then(needUpdate => {
- if(needUpdate.value === true){
- $log.debug('FunctionalMenuCtrl::openMenuDetailsModal: updating table data...');
- if(source=="edit")
- init();
- }
- });
- });
- };
-
-
- $scope.createNewMenuItem = (selectedItem,source) => {
-
- if(selectedItem != null && selectedItem.getLevel() >= 4){
- confirmBoxService.showInformation('You are not allowed to have a menu item at a level greater than 4.').then(isConfirmed => {
-
- });
- return ;
- }
-
- let data = null;
- let selectedMenuDetails = null;
- functionalMenuService.getMenuDetails(selectedItem.menuId)
- .then(function( resp ){
- selectedMenuDetails = resp;
-
- if((selectedItem.children==null || !selectedItem.children.length>0) &&
- (!!selectedMenuDetails.url || !!selectedMenuDetails.appid || !!selectedMenuDetails.roles)){
- confirmBoxService.showInformation('Warning: the child menu item "' + selectedItem.name + '" is already configured with an application. You can create a new mid-level menu item, and move this item under it.').then(isConfirmed => {
- return;
- });
- }else{
- if(selectedItem){
- data = {
- menuItem: {menu: _.clone(selectedItem)},
- source:source,
- title: getDialogTitle(source)
- }
- }
-
- ngDialog.open({
- templateUrl: 'app/views/functionalMenu/functionalMenu-dialog/menu-details.modal.html',
- controller: 'MenuDetailsModalCtrl',
- controllerAs: 'functionalMenuDetails',
- data: data
- }).closePromise.then(needUpdate => {
- if(needUpdate.value === true){
- $log.debug('FunctionalMenuCtrl::getMenuDetails: updating table data...');
- init();
- }
- });
- }
- });
- };
-
- $scope.deleteMenuItem = (selectedItem,source) => {
- $log.info('FunctionalMenuCtrl:deleteMenuItem:: delete selectedItem: ', selectedItem);
-
- if(selectedItem.children!=null && selectedItem.children.length>0){
- confirmBoxService.showInformation('You are not allowed to delete a menu item that has children. You can only delete leaf menu items.').then(isConfirmed => {
-
- });
- }else{
- confirmBoxService.deleteItem(selectedItem.name).then(isConfirmed => {
- if(isConfirmed){
- $log.info('FunctionalMenuCtrl:deleteMenuItem:: Deleting Menu Item :: name: '+selectedItem.name+'; menuId: '+selectedItem.menuId);
- $log.info('FunctionalMenuCtrl:deleteMenuItem:: selectedItem: ', selectedItem);
-
- functionalMenuService.deleteMenuItem(selectedItem.menuId).then(() => {
- $log.info('FunctionalMenuCtrl:deleteMenuItem:: Removed Menu Item :: '+selectedItem.name);
- init();
- }).catch(err => {
- $log.error(err);
- });
- }
- }).catch(err => {
- $log.error(err);
- });
- }
- };
-
- init();
- }
- }
- FunctionalMenuCtrl.$inject = ['$log', 'functionalMenuService','$scope', 'ngDialog', 'confirmBoxService'];
- angular.module('ecompApp').controller('FunctionalMenuCtrl', FunctionalMenuCtrl);
-
- angular.module('ecompApp').directive('jqTree', ['functionalMenuService','$log','confirmBoxService',function(functionalMenuService,$log,confirmBoxService){
- return {
- templateUrl: 'jqtree-tmpl.html',
- link: function(scope, el, attrs){
-
- var $jqTree = el.find('#jqTree').tree({
- data: scope.treedata,
- autoOpen: false,
- dragAndDrop: true,
- onCreateLi: function(node, $li) {
- $li.attr('id', node.id.replace(/\s+/g,"_"));
- }
- });
-
- el.find('#jqTree').bind('tree.move', function(event){
- event.preventDefault();
- console.log('moved_node', event.move_info.moved_node);
- console.log('target_node', event.move_info.target_node);
- console.log('position', event.move_info.position);
- console.log('previous_parent', event.move_info.previous_parent);
-
-
-
- if(event.move_info.target_node != null &&
- ((event.move_info.position == 'after' && event.move_info.target_node.getLevel() > 4) ||
- (event.move_info.position == 'inside' && event.move_info.target_node.getLevel() > 3))){
- confirmBoxService.showInformation('You are not allowed to have a menu item at a level greater than 4.').then(isConfirmed => {
-
- });
- return ;
- }
-
- var confMsg = 'Are you sure you want to move "'+event.move_info.moved_node.name+'" ?';
- if ((event.move_info.position == "inside") && (event.move_info.target_node.url != "")) {
- confMsg = 'Warning: You are moving "'+event.move_info.moved_node.name+'" under "'+event.move_info.target_node.name+'", which has application information associated with it. This will cause all the application information from "'+event.move_info.target_node.name+'" to be deleted.';
- }
- confirmBoxService.moveMenuItem(confMsg).then(isConfirmed => {
- if(isConfirmed){
- var new_column = event.move_info.target_node.column;
- var old_column = event.move_info.moved_node.column;
- if ((event.move_info.moved_node.parentMenuId !=
- event.move_info.target_node.parentMenuId) ||
- (new_column < old_column)
- ) {
- new_column += 1;
- }
- var activeMenuItem = {
- menuId:event.move_info.moved_node.menuId,
- column:new_column,
- text:"",
- parentMenuId:event.move_info.target_node.parentMenuId,
- url:"",
- appid: null,
- roles:null
- };
-
- if (event.move_info.position == "inside") {
- console.log("special case: target_node is parent");
- activeMenuItem.column = 1;
- activeMenuItem.parentMenuId = event.move_info.target_node.menuId;
- }
-
- functionalMenuService.saveEditedMenuItem(activeMenuItem)
- .then(() => {
- $log.debug(' Menu Item moved');
- scope.reloadTreeStructure();
- }).catch(err => {
- $log.error(err);
- }).finally(()=>{
- });
- }
- }).catch(err => {
- $log.error(err);
- });
- });
-
-
- $jqTree.jqTreeContextMenu(el.find('ul.dropdown-menu'), {
- "view": function (node) {scope.openMenuDetailsModal(node,'view'); },
- "edit": function (node) {scope.openMenuDetailsModal(node,'edit'); },
- "delete": function (node) { scope.deleteMenuItem(node,'delete') },
- "add": function (node) { scope.createNewMenuItem(node,'add') }
- });
-
- scope.$watch('treedata', function(oldValue, newValue){
- if(oldValue !== newValue){
- console.log('FunctionalMenuCtrl:: Tree value has changed in some way');
- $jqTree.tree('loadData', scope.treedata);
- $jqTree.tree('reload', function() {
- console.log('FunctionalMenuCtrl:: Tree is reloaded');
- });
- }
- })
- }
- }
- }]);
-
-})();
diff --git a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.less b/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.less
deleted file mode 100644
index 24a91287..00000000
--- a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.less
+++ /dev/null
@@ -1,70 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .functional-admin-page-main{
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
- .u16r;
-
- .functional-admin-container {
- .content_justify;
- position: relative;
- padding: 0 0 32px;
- width: 1170px;
-
- .functional-admin-home-title {
- .a24r;
- padding-bottom: 20px;
- .content_justify;
- }
- .tree{
- }
- .functional-admin-button-container {
- padding-top: 10px;
- .btn-blue{
- height: 35px;
- width: 140px;
- }
- }
- }
- .error-text {
- width: 1170px;
- margin: auto;
- padding: 20px;
- left: 20px;
- font-weight: bold;
- font-size: 16px;
- text-align: left;
- color: @err;
- background-color: @u;
-
- .error-help {
- color: @o;
- font-weight: normal;
- }
- }
-
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.tpl.html b/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.tpl.html
deleted file mode 100644
index a04cfe4c..00000000
--- a/ecomp-portal-FE/client/app/views/functionalMenu/functionalMenu.tpl.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-main">
- <div class="w-ecomp-main-container">
- <div class="functional-admin-page-main" id="contentId">
- <div class="functional-admin-container">
- <div id="functional-admin-home-title" class="functional-admin-home-title">Edit Functional Menu</div>
- <div id="tree1">
- <div id="Service_Creation"></div>
- </div>
- <div id="jq-tree-div" jq-tree class="tree"></div>
- <script type="text/ng-template" id="jqtree-tmpl.html">
- <div id="jqTree"></div>
- <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
- <li id="functional-menu-view-li"><a id="functional-menu-view-href" ng-href="#view"><i class="ion-eye"></i> View</a></li>
- <li class="divider"></li>
- <li id="functional-menu-add-li"><a id="functional-menu-add-href" ng-href="#add"><i class="ion-plus-round"></i> Add</a></li>
- <li class="divider"></li>
- <li id="functional-menu-edit-li"><a id="functional-menu-edit-href" ng-href="#edit"><i class="ion-edit"></i> Edit</a></li>
- <li class="divider"></li>
- <li id="functional-menu-delete-li"><a id="functional-menu-delete-href" ng-href="#delete"><i class="ion-trash-b"></i> Delete</a></li>
- </ul>
- </script>
- <div class="functional-admin-button-container">
- <button class="btn-blue" ng-click="functionalMenu.regenerateFunctionalMenuAncestors()">Regenerate Menu</button>
- <span class="n16r">Click when you are done with your changes</span>
- </div>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/functionalMenu/jqTreeContextMenu.js b/ecomp-portal-FE/client/app/views/functionalMenu/jqTreeContextMenu.js
deleted file mode 100644
index 21e8454d..00000000
--- a/ecomp-portal-FE/client/app/views/functionalMenu/jqTreeContextMenu.js
+++ /dev/null
@@ -1,192 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-(function ($) {
- if (!$.fn.tree) {
- throw "Error jqTree is not loaded.";
- }
-
- $.fn.jqTreeContextMenu = function (menuElement, callbacks) {
-
- var self = this;
- var $el = this;
-
- var $menuEl = menuElement;
-
- var nodeToDisabledMenuItems = {};
-
- $menuEl.hide();
-
- $el.bind("contextmenu", function (e) {
- e.preventDefault();
- return false;
- });
-
- $el.bind('tree.contextmenu', function (event) {
- var x = event.click_event.pageX;
- var y = event.click_event.pageY;
- var yPadding = 5;
- var xPadding = 5;
- var menuHeight = $menuEl.height();
- var menuWidth = $menuEl.width();
- var windowHeight = $(window).height();
- var windowWidth = $(window).width();
-
- if (menuHeight + y + yPadding > windowHeight) {
- y = y - menuHeight;
- }
- if (menuWidth + x + xPadding > windowWidth) {
- x = x - menuWidth;
- }
-
- if (Object.keys(nodeToDisabledMenuItems).length > 0) {
- if (event.node.name in nodeToDisabledMenuItems) {
- var nodeName = event.node.name;
- var items = nodeToDisabledMenuItems[nodeName];
- if (items.length === 0) {
- $menuEl.find('li').addClass('disabled');
- $menuEl.find('li > a').unbind('click');
- } else {
- $menuEl.find('li > a').each(function () {
- $(this).closest('li').removeClass('disabled');
- var hrefValue = $(this).attr('href');
- var value = hrefValue.slice(hrefValue.indexOf("#") + 1, hrefValue.length)
- if ($.inArray(value, items) > -1) {
- $(this).closest('li').addClass('disabled');
- $(this).unbind('click');
- }
- });
- }
- } else {
- $menuEl.find('li.disabled').removeClass('disabled');
- }
- }
-
- $menuEl.show();
-
- $menuEl.offset({ left: x, top: y });
-
- var dismissContextMenu = function () {
- $(document).unbind('click.jqtreecontextmenu');
- $el.unbind('tree.click.jqtreecontextmenu');
- $menuEl.hide();
- }
-
- $(document).bind('click.jqtreecontextmenu', function () {
- dismissContextMenu();
- });
-
- $el.bind('tree.click.jqtreecontextmenu', function (e) {
- dismissContextMenu();
- });
-
- var selectedNode = $el.tree('getSelectedNode');
- if (selectedNode !== event.node) {
- $el.tree('selectNode', event.node);
- }
-
- var menuItems = $menuEl.find('li:not(.disabled) a');
- if (menuItems.length !== 0) {
- menuItems.unbind('click');
- menuItems.click(function (e) {
- e.stopImmediatePropagation();
- dismissContextMenu();
- var hrefAnchor = e.currentTarget.attributes.href.nodeValue;
- var funcKey = hrefAnchor.slice(hrefAnchor.indexOf("#") + 1, hrefAnchor.length)
- var callbackFn = callbacks[funcKey];
- if (callbackFn) {
- callbackFn(event.node);
- }
- return false;
- });
- }
- });
-
- this.disable = function () {
- if (arguments.length === 0) {
- $menuEl.find('li:not(.disabled)').addClass('disabled');
- $menuEl.find('li a').unbind('click');
- nodeToDisabledMenuItems = {};
- } else if (arguments.length === 1) {
- var items = arguments[0];
- if (typeof items !== 'object') {
- return;
- }
- $menuEl.find('li > a').each(function () {
- var hrefValue = $(this).attr('href');
- var value = hrefValue.slice(hrefValue.indexOf("#") + 1, hrefValue.length)
- if ($.inArray(value, items) > -1) {
- $(this).closest('li').addClass('disabled');
- $(this).unbind('click');
- }
- });
- nodeToDisabledMenuItems = {};
- } else if (arguments.length === 2) {
- var nodeName = arguments[0];
- var items = arguments[1];
- nodeToDisabledMenuItems[nodeName] = items;
- }
- };
-
- this.enable = function () {
- if (arguments.length === 0) {
- $menuEl.find('li.disabled').removeClass('disabled');
- nodeToDisabledMenuItems = {};
- } else if (arguments.length === 1) {
- var items = arguments[0];
- if (typeof items !== 'object') {
- return;
- }
-
- $menuEl.find('li > a').each(function () {
- var hrefValue = $(this).attr('href');
- var value = hrefValue.slice(hrefValue.indexOf("#") + 1, hrefValue.length)
- if ($.inArray(value, items) > -1) {
- $(this).closest('li').removeClass('disabled');
- }
- });
-
- nodeToDisabledMenuItems = {};
- } else if (arguments.length === 2) {
- var nodeName = arguments[0];
- var items = arguments[1];
- if (items.length === 0) {
- delete nodeToDisabledMenuItems[nodeName];
- } else {
- var disabledItems = nodeToDisabledMenuItems[nodeName];
- for (var i = 0; i < items.length; i++) {
- var idx = disabledItems.indexOf(items[i]);
- if (idx > -1) {
- disabledItems.splice(idx, 1);
- }
- }
- if (disabledItems.length === 0) {
- delete nodeToDisabledMenuItems[nodeName];
- } else {
- nodeToDisabledMenuItems[nodeName] = disabledItems;
- }
- }
- if (Object.keys(nodeToDisabledMenuItems).length === 0) {
- $menuEl.find('li.disabled').removeClass('disabled');
- }
- }
- };
- return this;
- };
-} (jQuery));
diff --git a/ecomp-portal-FE/client/app/views/header/header.controller.js b/ecomp-portal-FE/client/app/views/header/header.controller.js
deleted file mode 100644
index 8d3cab29..00000000
--- a/ecomp-portal-FE/client/app/views/header/header.controller.js
+++ /dev/null
@@ -1,419 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class HeaderCtrl {
- constructor($log, $window, userProfileService, menusService, $scope, ECOMP_URL_REGEX, $cookies, $state) {
- this.firstName = '';
- this.lastName = '';
- this.$log = $log;
- this.menusService = menusService;
- this.$scope = $scope;
- this.favoritesMenuItems = '';
- $scope.favoriteItemsCount = 0;
- $scope.favoritesMenuItems = '';
- $scope.showFavorites = false;
- $scope.emptyFavorites = false;
- $scope.favoritesWindow = false;
-
- $scope.showNotification = true;
-
- $scope.hideMenus = false;
-
- $scope.menuItems = [];
- $scope.activeClickSubMenu = {
- x: ''
- };
- $scope.activeClickMenu = {
- x: ''
- };
- $scope.megaMenuDataObject =[];
-
- this.isLoading = true;
- this.ECOMP_URL_REGEX = ECOMP_URL_REGEX;
-
- var menuStructureConvert = function(menuItems) {
- $scope.megaMenuDataObjectTemp = [
- {
- text: "Manage/Functions",
- children: [],
- },
- {
- text: "Help",
- children: [{
- restrictedApp: true,
- text:"Contact Us",
- url:""
- },
- {
- text:"Get Access",
- url:"root.access"
- }]
- }
-
- ];
- return $scope.megaMenuDataObjectTemp;
- };
-
- var unflatten = function( array, parent, tree ){
-
- tree = typeof tree !== 'undefined' ? tree : [];
- parent = typeof parent !== 'undefined' ? parent : { menuId: null };
- var children = _.filter( array, function(child){ return child.parentMenuId == parent.menuId; });
-
- if( !_.isEmpty( children ) ){
- if( parent.menuId === null ){
- tree = children;
- }else{
- parent['children'] = children
- }
- _.each( children, function( child ){ unflatten( array, child ) } );
- }
-
- return tree;
- }
-
- var self = this;
- $scope.$on('handleUpdateUserInfo', function () {
- userProfileService.resetFunctionalMenuStaticInfo()
- .then(reset_res=> {
- userProfileService.getFunctionalMenuStaticInfo()
- .then(res=> {
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: getting Functional Menu Static Info init');
- if(res==null || res.firstName==null || res.firstName=='' || res.lastName==null || res.lastName=='' ){
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: failed getting userinfo from shared context.. ');
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: getting userinfo from session ');
- userProfileService.getUserProfile()
- .then(profile=> {
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: getting userinfo from session success');
- self.firstName = profile.firstName;
- self.lastName = profile.lastName;
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: user has the following roles: ' + profile.roles);
- }).catch(err=> {
- $log.error('Header Controller:: getUserProfile() failed: ' + err);
- });
- }else{
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: getting Functional Menu Static Info successfully',res);
- self.firstName = res.firstName;
- self.lastName = res.lastName;
- $scope.contactUsURL = res.contact_us_link;
- }
-
- menusService.GetFunctionalMenuForUser()
- .then(jsonHeaderMenu=> {
- $scope.menuItems = unflatten( jsonHeaderMenu );
- $scope.megaMenuDataObject = $scope.menuItems;
- }).catch(err=> {
- $scope.megaMenuDataObject = menuStructureConvert('');
- $log.error('HeaderCtrl::GetFunctionalMenuForUser: HeaderCtrl json returned: ' + err);
- });
-
- userProfileService.refreshUserBusinessCard();
-
- }).catch(err=> {
- $log.error('HeaderCtrl::getFunctionalMenuStaticInfo failed: ' + err);
- });
- }).catch(err=> {
- $log.error('HeaderCtrl::resetFunctionalMenuStaticInfo failed: ' + err);
- })
-
-
- });
-
- userProfileService.getFunctionalMenuStaticInfo()
- .then(res=> {
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: getting Functional Menu Static Info init');
- if(res==null || res.firstName==null || res.firstName=='' || res.lastName==null || res.lastName=='' ){
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: failed getting userinfo from shared context.. ');
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: getting userinfo from session ');
- userProfileService.getUserProfile()
- .then(profile=> {
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: getting userinfo from session success');
- this.firstName = profile.firstName;
- this.lastName = profile.lastName;
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: user has the following roles: ' + profile.roles);
- }).catch(err=> {
- $log.error('Header Controller:: getUserProfile() failed: ' + err);
- });
- }else{
- $log.info('HeaderCtrl::getFunctionalMenuStaticInfo: getting Functional Menu Static Info successfully',res);
- this.firstName = res.firstName;
- this.lastName = res.lastName;
- $scope.contactUsURL = res.contact_us_link;
- }
-
- menusService.GetFunctionalMenuForUser()
- .then(jsonHeaderMenu=> {
- $scope.menuItems = unflatten( jsonHeaderMenu );
- $scope.megaMenuDataObject = $scope.menuItems;
- }).catch(err=> {
- $scope.megaMenuDataObject = menuStructureConvert('');
- $log.error('HeaderCtrl::GetFunctionalMenuForUser: HeaderCtrl json returned: ' + err);
- });
-
- }).catch(err=> {
- $log.error('HeaderCtrl::getFunctionalMenuStaticInfo failed: ' + err);
- });
-
-
- $scope.loadFavorites = function () {
- $scope.hideMenus = false;
- $log.debug('HeaderCtrl::loadFavorites: loadFavorites has happened.');
- if ($scope.favoritesMenuItems == '') {
- generateFavoriteItems();
- $log.debug('HeaderCtrl::loadFavorites: loadFavorites is calling generateFavoriteItems()');
- } else {
- $log.debug('HeaderCtrl::loadFavorites: loadFavorites is NOT calling generateFavoriteItems()');
- }
- }
-
- $scope.goToUrl = (item) => {
- $log.info('HeaderCtrl::goToUrl has started');
- let url = item.url;
- let restrictedApp = item.restrictedApp;
- if (!url) {
- $log.info('HeaderCtrl::goToUrl: No url found for this application, doing nothing..');
- return;
- }
- if (restrictedApp) {
- $window.open(url, '_blank');
- } else {
- if(item.url=="getAccess" || item.url=="contactUs"){
- // if (url = window.location.href)
- $state.go("root."+url);
- var tabContent = { id: new Date(), title: 'Home', url: item.url };
- $cookies.putObject('addTab', tabContent );
- } else {
- var tabContent = { id: new Date(), title: item.text, url: item.url };
- $cookies.putObject('addTab', tabContent );
- }
- $log.debug('HeaderCtrl::goToUrl: url = ', url);
- }
- $scope.hideMenus = true;
- }
-
-
-
- $scope.submenuLevelAction = function(index, column) {
- if ($scope.favoritesMenuItems == '') {
- generateFavoriteItems();
- $log.debug('HeaderCtrl::submenuLevelAction: submenuLevelAction is calling generateFavoriteItems()');
- }
- if (index=='Favorites' && $scope.favoriteItemsCount != 0) {
- $log.debug('HeaderCtrl::submenuLevelAction: Showing Favorites window');
- $scope.favoritesWindow = true;
- $scope.showFavorites = true;
- $scope.emptyFavorites = false;
- }
- if (index=='Favorites' && $scope.favoriteItemsCount == 0) {
- $log.debug('HeaderCtrl::submenuLevelAction: Hiding Favorites window in favor of No Favorites Window');
- $scope.favoritesWindow = true;
- $scope.showFavorites = false;
- $scope.emptyFavorites = true;
- }
- if (index!='Favorites' ) {
- $scope.favoritesWindow = false;
- $scope.showFavorites = false;
- $scope.emptyFavorites = false;
- }
-
- };
-
- $scope.hideFavoritesWindow = function() {
- $scope.showFavorites = false;
- $scope.emptyFavorites = false;
- }
-
- $scope.isUrlFavorite = function (menuId) {
- var jsonMenu = JSON.stringify($scope.favoritesMenuItems);
- var isMenuFavorite = jsonMenu.indexOf('menuId\":' + menuId);
- if (isMenuFavorite==-1) {
- return false;
- } else {
- return true;
- }
-
- }
-
- let generateFavoriteItems = () => {
- menusService.getFavoriteItems()
- .then(favorites=> {
- $scope.favoritesMenuItems = favorites;
- $scope.favoriteItemsCount = Object.keys(favorites).length;
- $log.info('HeaderCtrl.getFavoriteItems:: number of favorite menus: ' + $scope.favoriteItemsCount);
- }).catch(err=> {
- $log.error('HeaderCtrl.getFavoriteItems:: Error retrieving Favorites menus: ' + err);
- });
- }
-
- $scope.setAsFavoriteItem = function(event, menuId){
- var jsonMenuID = angular.toJson({'menuId': + menuId });
- $log.debug('HeaderCtrl::setFavoriteItems: ' + jsonMenuID + " - " + event.target.id);
-
- menusService.setFavoriteItem(jsonMenuID)
- .then(() => {
- angular.element('#' + event.target.id).css('color', '#fbb313');
- generateFavoriteItems();
- }).catch(err=> {
- $log.error('HeaderCtrl::setFavoriteItems:: API setFavoriteItem error: ' + err);
- });
- };
-
- $scope.removeAsFavoriteItem = function(event, menuId){
- $log.debug('-----------------------------removeAsFavoriteItem: ' + menuId + " - " + event.target.id);
- menusService.removeFavoriteItem(menuId)
- .then(() => {
- angular.element('#' + event.target.id).css('color', '#666666');
- generateFavoriteItems();
- }).catch(err=> {
- $log.error('HeaderCtrl::removeAsFavoriteItem: API removeFavoriteItem error: ' + err);
- });
- };
-
- $scope.goToPortal = (headerText, url) => {
- if (!url) {
- $log.info('HeaderCtrl::goToPortal: No url found for this application, doing nothing..');
- return;
- }
- if (!ECOMP_URL_REGEX.test(url)) {
- url = 'http://' + url;
- }
-
- if(headerText.startsWith("vUSP")) {
- window.open(url, '_blank');
- }
- else {
- var tabContent = { id: new Date(), title: headerText, url: url };
- $cookies.putObject('addTab', tabContent );
- }
- };
-
- }
- }
- class LoginSnippetCtrl {
- constructor($log, $scope, $cookies, $timeout, userProfileService, sessionService,ngDialog) {
- $scope.firstName="";
- $scope.lastName="";
-
- $scope.allAppsLogout = function(){
-
- var cookieTabs = $cookies.getObject('visInVisCookieTabs');
- if(cookieTabs!=null){
- for(var t in cookieTabs){
-
- var url = cookieTabs[t].content;
- if(url != "") {
- sessionService.logout(url);
- }
- }
- }
- // wait for individular applications to logoutout before the portal logout
- $timeout(function() {
- window.location = "logout.htm";
- }, 2000);
- }
-
- $scope.openEditUserModal = function(){
-
- var data = {
- loginId : $scope.loginSnippetUserId,
- updateRemoteApp : false,
- appId : $scope.selectedApp!=null?$scope.selectedApp.id:''
- }
- var modalInstance = ngDialog.open({
- templateUrl: 'app/views/header/user-edit/edit-user.tpl.html',
- controller: 'editUserController',
- data: data,
- resolve: {
- message: function message() {
- var message = {
- type: 'Contact',
- };
- return message;
- }
- }
- }).closePromise.then(needUpdate => {
- //updateContactUsTable();
- });
-
- }
-
- try {
- userProfileService.getFunctionalMenuStaticInfo()
- .then(res=> {
- $log.info('HeaderCtrl::LoginSnippetCtrl: Login information: ' + JSON.stringify(res));
- $scope.firstName = res.firstName;
- $scope.lastName = res.lastName;
- $scope.loginSnippetEmail = res.email;
- $scope.loginSnippetUserId = res.userId;
- $scope.lastLogin = res.last_login;
- }).catch(err=> {
- $log.error('HeaderCtrl::LoginSnippetCtrl: User Profile error: ' + err);
- });
- } catch (err) {
- $log.error('HeaderCtrl::LoginSnippetCtrl:getFunctionalMenuStaticInfo failed: ' + err);
- }
-
- $scope.$on('refreshUserBusinessCard', function () {
- try {
- userProfileService.getFunctionalMenuStaticInfo()
- .then(res=> {
- $log.info('HeaderCtrl::LoginSnippetCtrl: Login information: ' + JSON.stringify(res));
- $scope.firstName = res.firstName;
- $scope.lastName = res.lastName;
- $scope.loginSnippetEmail = res.email;
- $scope.loginSnippetUserId = res.userId;
- $scope.lastLogin = res.last_login;
- }).catch(err=> {
- $log.error('HeaderCtrl::LoginSnippetCtrl: User Profile error: ' + err);
- });
- } catch (err) {
- $log.error('HeaderCtrl::LoginSnippetCtrl:getFunctionalMenuStaticInfo failed: ' + err);
- }
- });
-
-
- }
- }
- class NotificationCtrl{
- constructor($log, $scope, $cookies, $timeout, sessionService) {
- $scope.notifications=[];
- for(var i=0;i<6;i++){
- var data ={
- content:'Notification '+i,
- time:'10:0'+i+'AM'
- };
- $scope.notifications.push(data);
- }
-
- $scope.deleteNotification = function(index){
-
- $scope.notifications.splice(index,1);
- }
- }
- }
- NotificationCtrl.$inject = ['$log', '$scope', '$cookies', '$timeout','userProfileService', 'sessionService'];
- LoginSnippetCtrl.$inject = ['$log', '$scope', '$cookies', '$timeout','userProfileService', 'sessionService','ngDialog'];
- HeaderCtrl.$inject = ['$log', '$window', 'userProfileService', 'menusService', '$scope', 'ECOMP_URL_REGEX','$cookies','$state'];
- angular.module('ecompApp').controller('HeaderCtrl', HeaderCtrl);
- angular.module('ecompApp').controller('loginSnippetCtrl', LoginSnippetCtrl);
- angular.module('ecompApp').controller('notificationCtrl', NotificationCtrl);
-
-})();
diff --git a/ecomp-portal-FE/client/app/views/header/header.controller.spec.js b/ecomp-portal-FE/client/app/views/header/header.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/header/header.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/header/header.less b/ecomp-portal-FE/client/app/views/header/header.less
deleted file mode 100644
index 19ea467a..00000000
--- a/ecomp-portal-FE/client/app/views/header/header.less
+++ /dev/null
@@ -1,380 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .header-section {
- position: relative;
- z-index: 999;
-}
-
-.logo-image {
- .ecomp-logo;
- display: inline-block;
- vertical-align: middle;
- margin-top: -3px;
- }
-
-.portal-title {
- font-weight: 400;
- font-family: arial !important;
- font-size: 18px;
-}
-
-
-.megamenu-tabs .megamenu__item {
- padding: 0 0;
-}
-.megamenu-tabs .megamenu__item span {
- font-size: 18px;
-}
-
-.submenu-tabs {
- line-height:50px;
-}
-.submenu-tabs .sub__menu{
- top:54px;
- padding-top: 10px;
-
- padding-left: 20px;
-
- .third-level-title{
- padding-left: 10px;
- margin-bottom: 10px;
- }
-}
-
-.submenu-tabs .sub__menu .tabsbid__item{
- width:100%
-}
-
-.top-megamenu .megamenu-tabs ul{
- width:98%;
- list-style: none;
-}
-
-.megaMenuContainer {
- margin-top: 0;
- min-height: 50px;
- overflow: visible;
-}
-
-.megaMenuDataObject {
- float: left;
- width: 100%;
-}
-
-.parentmenu-tabs {
- height: 55px;
-}
-
-.menu-section {
- float: left;
-}
-
-.controlCls{
- font-size: .975rem;
- color: #666;
- display: inline-block;
- font-family: arial;
- cursor: pointer;
- height: 37px;
- line-height: 37px;
- padding-bottom: 10px;
- vertical-align: middle;
- width: 100%;
-}
-
-
-.controlCls:hover{
- color:#199DDF !important;
-}
-
-.login-section {
- float: right;
- min-width:150px;
-}
-
-.login-snippet-text {
- display: inline-block;
- font-size: 12px;
- font-weight: bold;
- margin-left: 5px;
- overflow: hidden;
- max-height: 60px;
- max-width: 120px;
- padding-top: 20px;
- margin-top: 0;
- white-space: nowrap;
-}
-
-.megamenu__item {
- width: 100px;
-}
-
-.megamenu-item-top {
- line-height:55px;
-}
-
-
-.newrow {
- clear: left;
-}
-
-.header-columns{
- -webkit-column-count:4;
- -moz-column-rule: 1px outset #D3D3D3;
- -moz-column-count:4;
- column-count: 4;
- line-height: 12px;
- max-height: 500px;
- overflow-x: hidden;
- overflow-y:hidden;
- column-gap: 13px;
- column-rule: 1px outset #D3D3D3;
-
-
-}
-
-.header-columns li{
- -webkit-column-break-inside: avoid;
- break-inside: avoid;
- //-webkit-page-break-inside: avoid;
- page-break-inside: avoid;
-
- margin-top: 0px !important;
-
-}
-
-.header-columns-div{
- width:100%;
- margin-left: 12px;
- margin-top: 12px;
- &:hover{
- .level3-favorites-icon-inactive {
- opacity: 1;
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
- filter: alpha(opacity=100);
- -moz-opacity: 1;
- -khtml-opacity: 1;
- }
- }
-}
-
-
-.header-level4-div{
- width:100%;
- margin-left: 12px;
- margin-top: 12px;
- &:hover{
- .level4-favorites-icon-inactive {
- opacity: 1;
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
- filter: alpha(opacity=100);
- -moz-opacity: 1;
- -khtml-opacity: 1;
- }
- }
-}
-
-.favorites-icon-active {
- position: relative;
- margin-top: 5px;
- margin-left: 5px;
- top: 3px;
- color: @i;
-}
-
-.level3-favorites-icon-inactive {
- .favorites-icon-inactive;
- opacity: 0;
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
- filter: alpha(opacity=0);
- -moz-opacity: 0;
- -khtml-opacity: 0;
-}
-
-.level4-favorites-icon-inactive {
- .favorites-icon-inactive;
- opacity: 0;
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
- filter: alpha(opacity=0);
- -moz-opacity: 0;
- -khtml-opacity: 0;
-}
-
-.favorites-icon-inactive {
- position: relative;
- margin-top: 5px;
- margin-left: 5px;
- top: 3px;
- color: @o;
-}
-
-.favorites-window-empty {
- width: 100%;
- height: auto;
- display:flex;
- justify-content:center;
- align-items:center;
- margin: auto;
- text-align: center;
-
- .largeText {
- font-weight: 400;
- font-family: arial !important;
- font-size: 18px;
- text-align: center;
- color: @o;
- }
-
- .normal {
- color: @o;
- font-size: 14px;
- text-align: center;
- }
-
-
-}
-.favorites-window {
- width: 100%;
- height: auto;
- //margin: auto;
- font-size: 14px !important;
- display: flex;
- font-family: arial;
- margin-top: 25px;
- margin-left: 25px;
- z-index: 1000;
-
- .fav-links {
- margin-right: 25px;
- }
-
- .largeText {
- font-weight: 400;
- font-family: arial !important;
- font-size: 18px;
- text-align: center;
- color: @o;
- }
-
- a:link, a:active, a:hover {
- margin-left: 3px;
- margin-right: 20px;
- text-decoration: none;
- }
-
- a:hover {
- color: @z;
- }
-}
-
-
-
- .notifications-count
- {
- .border-radius(50%);
- background:#db3434;
- color: @colorWhite;
- font: normal .85em 'Lato';
- height: 16px;
-
- position: absolute;
- right: -7px;
- text-align: center;
- top: -8px;
- width: 16px;
- }
-
- .notification-header{
- border-bottom: 1px solid #b4b4b4;
- padding: 10px 40px 0px 40px;
- }
- .notification-heading{
- font-family: arial;
- font-size: 24px;
- padding-top: 15px;
- margin-bottom: 1rem;
- }
- .notificationBox{
- border-bottom: 1px solid #b4b4b4;
-
- }
-
- .notification-info-icon{
- padding-top: 41px;
- font-size: 47px;
- }
- .notification-text {
- line-height: 15px;
- margin: 0;
- padding: 0 0 24px 0;
- text-align: center;
- font-family: arial;
- font-size: 16px;
- }
-
-#icon-user-small{
- display: inline-block;
- vertical-align: middle;
- width: 20px;
- padding-top: 20px;
-}
-
-.notificationBox .icon-circle-action-close {
- cursor: pointer;
- font-size: 16px;
- }
-
- .notification-close {
- padding: 2px 2px 0px 0px;
- float: right;
- }
-
- #fav-icon{
- color: #ffb81c;
- font-size: 80px;
- }
-
- .edit-user-button{
- margin-top:5px;
- display: inline;
- margin-left:2px;
- width: 20px;
- }
-
- .log-out-button{
- margin-top:5px;
- display: inline;
- margin-left:10px;
- width: 20px;
- }
-
- .new-button {
- margin-left:5px;
- float: left;
- display: block;
- width: 80px;
- height: 25px;
- background: #0574ac!important;
- padding: 6px;
- text-align: center;
- border-radius: 5px;
- color: white;
- font-size:13px;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/header/header.tpl.html b/ecomp-portal-FE/client/app/views/header/header.tpl.html
deleted file mode 100644
index 1928cb64..00000000
--- a/ecomp-portal-FE/client/app/views/header/header.tpl.html
+++ /dev/null
@@ -1,277 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<style type="text/css">
-
- .att-popover .pop-over-caret.pop-over-caret--below{
- left: 5%;
- color:#fff;
- }
- .att-popover .pop-over-caret.pop-over-caret-border--below{
- left: 5%;
- }
-
- .popover-demo.att-popover{
- float: left;
- top: 44px;
- }
- .reg-profileDetails{
- outline:none !important;
- }
- #reg-header-snippet .reg-profileDetails {
- padding: 0px;
- min-height: 150px;
- }
- #reg-header-snippet .reg-profileDetails .reg-userEmail-label .reg-userEmail-label-spn {
- color: #0574ac; font-size: 13px; font-weight: bold;
- }
- #reg-header-snippet .reg-profileDetails .reg-userRole-label .reg-userRole-label-spn {
- color: #0574ac;font-size: 13px; font-weight: bold;
- }
-
-</style>
-<div class="header-section">
- <div class="headerContainer" id="headerContainer">
- <div id="megaMenuContainer" class="megaMenuContainer">
- <div>
-<!--for mega Menu-->
-<!-- Mega Menu parent-tab directive with three models menu-items, active-sub-menu, active-menu -->
- <div id="topMenu" class="top-megamenu" ng-mouseleave="activeClickSubMenu.x.active=false; activeClickMenu.x.active=false">
- <div class="megaMenuDataObject" parent-tab menu-items="megaMenuDataObject"
- active-sub-menu='activeClickSubMenu.x' active-menu='activeClickMenu.x'>
- <div parentmenu-tabs mega-menu="true" menu-items="megaMenuDataObject" class="parentmenu-tabs">
- <div class="menu-section">
-<!-- TITLE -->
- <li class="megamenu__item" style="line-height:55px;" onclick="window.location = 'applicationsHome'">
- <span id="logo-image" class="logo-image"></span>
- <span id="portal-title" class="portal-title" >OpenECOMP Portal</span>
- </li>
-<!-- MENUS --> <!-- MENUS -->
- <div id="menu-tabs-mega-menu"
- menu-tabs mega-menu="true"
- tab-name="item.text"
- menu-item="item"
- ng-mousedown="loadFavorites()"
- active-menu="activeClickMenu.x"
- ng-repeat="item in megaMenuDataObject" style="font-size: 18px;">
- <div id="parentmenu-tabs" parentmenu-tabs sub-menu="true"
- ng-show="activeClickMenu.x.active && item.active"
- menu-items="activeClickMenu.x.children">
-
-<!-- Second level menu --> <!-- Second level menu -->
- <div id="second-level-menus" menu-tabs sub-menu="true"
- menu-item="subItem" tab-name="subItem.text" tab-url="subItem.url"
- ng-repeat="subItem in activeClickMenu.x.children | orderBy : 'column'"
- active-menu="activeClickSubMenu.x"
- sub-item-active="{{subItem.active}}" style="float:left;"
- aria-label="{{subItem.text}} | orderBy : 'column'"
- ng-mousemove="submenuLevelAction(subItem.text,subItem.column)"
- ng-if="item.text!='Help' && item.text!='Support'"
- >
- <i ng-if="subItem.text=='Favorites'" id="favorite-star" data-size="large"
- class="ion-star favorites-icon-active">
- </i>
- </div>
- <div id="second-level-menus-help" menu-tabs sub-menu="true"
- menu-item="subItem"
- ng-repeat="subItem in activeClickMenu.x.children | orderBy : 'column'"
- ng-if="item.text=='Help' || item.text=='Support'"
- >
- <span ng-click="goToUrl(subItem)">{{subItem.text}}</span>
- </div>
-
-
- <div class="sub__menu" >
- <ul ng-show="activeClickSubMenu.x.active" role="menubar" class="header-columns">
-<!-- Third level menu --> <!-- Third level menu -->
- <div id="third-level-menus" class="header-columns-div"
- ng-hide='favoritesWindow || hideMenus'
- menu-tabs menu-item="subItem"
- ng-repeat="subItem in activeClickSubMenu.x.children | orderBy : 'column'"
- ng-show="activeClickSubMenu.x.active" >
- <i id="level3-star-inactive-{{subItem.menuId}}" ng-cloak
- class="ion-star level3-favorites-icon-inactive" data-size="large"
- data-ng-click="setAsFavoriteItem($event, subItem.menuId)"
- ng-if="subItem.url.length > 1 && isUrlFavorite(subItem.menuId)==false">
- </i>
- <i id="level3-star-active-{{subItem.menuId}}" ng-cloak
- ng-if="subItem.url.length > 1 && isUrlFavorite(subItem.menuId)"
- class="ion-star favorites-icon-active ng-cloak" data-size="large"
- data-ng-click="removeAsFavoriteItem($event, subItem.menuId)"
- >
- </i>
- <span class="title"
- aria-label="{{subItem.text | elipsis: 50}}"
- ng-click="goToUrl(subItem)">{{subItem.text}}</span>
-<!-- Fourth level menus - <!-- Fourth level menus -->
- <div class ="header-level4-div" att-links-list="" ng-repeat="tabValue in subItem.children" >
- <i id="level4-star-inactive-{{tabValue.menuId}}" ng-cloak
- class="ion-star level4-favorites-icon-inactive"
- data-ng-click="setAsFavoriteItem($event, tabValue.menuId)"
- ng-if="tabValue.url.length > 1 && isUrlFavorite(tabValue.menuId)==false">
- </i>
- <i id="level4-star-active-{{tabValue.menuId}}" ng-cloak
- class="ion-star favorites-icon-active"
- data-ng-click="removeAsFavoriteItem($event, tabValue.menuId)"
- ng-if="tabValue.url.length > 1 && isUrlFavorite(tabValue.menuId)">
-
- </i>
-
- <span ng-click="goToUrl(tabValue)"
- role="menuitem" att-links-list-item=""
- style="display: inline; padding-left: 8px"
- att-accessibility-click="13,32"
- title="{{tabValue.text}}"
- ng-class="{'disabled': tabValue.disabled}">{{tabValue.text | elipsis: 50}}</span>
- </div>
- <div att-divider-lines ng-show="!$last"></div>
- </div>
- </ul>
-<!-- Favorites level menu --> <!-- Favorites level menu -->
- <div class="header-columns-div" ng-show='favoritesWindow' ng-mouseleave="hideFavoritesWindow()">
- <div id="favorites-menu-items" att-links-list=""
- ng-show="showFavorites"
- ng-hide="hideMenus"
- ng-repeat="subItem in favoritesMenuItems"
- att-links-list="" >
-
- <div class="fav-links">
- <i id="favorite-selector-favorites-list"
- class="ion-star favorites-icon-active"
- style="font-size:18px"
- data-ng-click="removeAsFavoriteItem($event, subItem.menuId)"
- ng-mousedown="removeAsFavoriteItem($event, subItem.menuId)">
- </i>
- <a id="favorites-list" aria-label="{{subItem.text}}" style="color: #000"
- ng-click="goToUrl(subItem)">{{subItem.text}}
- </a>
- </div>
- </div>
- <!-- Favorites when empty -->
- <div id="favorites-empty"
- ng-show="emptyFavorites"
- class="favorites-window-empty" >
- <div>
- <span id="fav-icon" class="ion-ios-star" ></span>
- <p id="p-no-favs" class="largeText">No Favorites</p>
- <p id="p-no-favs-desc" class="normal">Add your favorite items for quick access.</p>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- </div >
- </div>
-
- <div class="login-section">
- <li id="bcLoginSnippet" class="megamenu__item" style="width: 140px;" >
- <div popover="loginSnippet.html" aria-label="Login Snippet" referby="loginSnippet" att-accessibility-click="13,32" popover-style="" popover-trigger="click" popover-placement="below" style="width: 150px; height: 55px; display: inline-flex">
- <div id="icon-user-small" class="ion-android-person login-snippet-icon"></div>
- <div id="login-snippet-text" class="login-snippet-text">{{header.firstName}}</div>
- </div>
- </li>
- </div>
- </div>
- </div>
- <div style="clear: both"></div>
- </div>
- </div>
- </div>
- </div>
-</div>
-<script type="text/ng-template" id="loginSnippet.html">
- <div ng-controller="loginSnippetCtrl" >
- <div id="reg-header-snippet">
- <div tabindex="0" class="reg-profileDetails" id="reg-profiledetails-id">
- <ul class="reg-Details-table" style="list-style: none; border-bottom: 1px solid #bbb; padding-bottom: 20px;" >
- <li>
- <div class="reg-userName-table">
- <div id="reg-userName-table-row">
- <div id="reg-userName-table-cell">
- <h3 class="att-global-fonts" style="font-size:18px; line-height:1.6 !important;" id="reg-userName" >
- {{firstName}} {{lastName}}&nbsp;</h3>
- <span>&nbsp;</span>
- </div>
- </div>
- </div>
- </li>
- <li><div class="reg-userEmail-label"><span class="reg-userEmail-label-spn">Email<span class="visuallyhidden">:
- </span></span></div></li>
- <li><div class="reg-userEmail-value"><span class="reg-userEmail-value-spn">
- {{loginSnippetEmail}}</span></div></li>
- <li>&nbsp;</li>
- <li><div class="reg-userRole-label"><span class="reg-userRole-label-spn">
- User ID<span class="visuallyhidden">:</span></span></div></li>
- <li><div class="reg-userRole-value"><span class="reg-userRole-value-spn">
- {{loginSnippetUserId}}<span class="visuallyhidden"></span></span></div></li>
-
- </ul>
- <div id="reg-logout-div" style="padding-top: 8px;">
- <p>Last login: <span ng-bind="lastLogin"></span></p>
- <div style="margin-top: 10px">
- <a href="javascript:void(0)" id="allLogout" ng-click="openEditUserModal()" style="" class="new-button">
- Profile
- </a>
- <a href="javascript:void(0)" id="allLogout" ng-click="allAppsLogout()" class="new-button">
- Log out
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
-
-</script>
-<script type="text/ng-template" id="notificationCtrl.html">
- <div style="line-height: normal; right: 167px; min-height: 122px; height: auto; width: auto; " ng-controller="notificationCtrl" >
- <div class="ng-scope">
- <div id="notification" class="notificationBox ">
- <div class="notification-header">
- <div style="float:left;">
- <p class="notification-heading">Notifications</p>
- </div>
- <!-- <div class="notification-close ng-isolate-scope" tabindex="0" ddh-accessibility-click="13,32" b2b-close-flyout="">
- <span class="icon-circle-action-close" aria-label="close button"></span>
- </div>-->
- <div style="clear:both;"></div>
- </div>
- <div class="notification-main">
- <div style="height:113px;">
- <div align="center" class="icon-information notification-info-icon"></div>
- </div>
- <div>
- <p class="notification-text">No New Notifications.</p>
- </div>
- </div>
- <div class="notification-main ng-hide" ng-show="showList">
- <!-- ngRepeat: notification in notifications track by $index -->
- </div>
- <div class="notification-footer">
- <div class="notification-links">
- <div style="clear:both;"></div>
- </div>
- </div>
- <!--/div -->
-
-
- </div>
- </div>
- </div>
-</script>
diff --git a/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.controller.js b/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.controller.js
deleted file mode 100644
index 507b3a0e..00000000
--- a/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.controller.js
+++ /dev/null
@@ -1,134 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-(function () {
- class EditUserController {
- constructor($scope,$log, message, $q, $http, conf,contactUsService,confirmBoxService,userProfileService,adminsService) {
-
- $scope.newUser ={
- firstName:'',
- lastName:'',
- emailAddress:'',
- middleName:'',
- loginId:'',
- loginPwd:'',
- };
-
- $scope.userId = $scope.ngDialogData.loginId;
- $scope.updateRemoteApp = $scope.ngDialogData.updateRemoteApp;
- try {
- userProfileService.getCurrentUserProfile($scope.userId)
- .then(res=> {
- $scope.newUser.firstName = res.firstName;
- $scope.newUser.lastName = res.lastName;
- $scope.newUser.emailAddress = res.email;
- $scope.newUser.middleName = res.middleInitial;
- $scope.newUser.loginId = res.loginId;
- $scope.newUser.loginPwd = res.loginPwd;
- $scope.newUser.loginPwdCheck = res.loginPwd;
-
- }).catch(err=> {
- $log.error('HeaderCtrl::LoginSnippetCtrl:get Current User Profile error: ' + err);
- });
- } catch (err) {
- $log.error('HeaderCtrl::LoginSnippetCtrl:getFunctionalMenuStaticInfo failed: ' + err);
- }
-
- $scope.changePwdText = function(){
- $scope.newUser.loginPwdCheck = '';
- }
-
- $scope.closeDialog = function(){
- $scope.closeThisDialog( $scope.widgetData);
- }
-
- $scope.updateUserFun = function(){
-
- if ($scope.newUser.firstName==''||$scope.newUser.lastName==''||$scope.newUser.loginPwd=='') {
- var warningMsg = "Please enter missing values";
- confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
- return;
- } else if ($scope.newUser.loginPwd != $scope.newUser.loginPwdCheck) {
- var warningMsg = "Passwords do not match, please try again.";
- confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
- return;
- } else {
-
- // check password length complexity.
- var warningMsg = adminsService.isComplexPassword($scope.newUser.loginPwd);
- if (warningMsg != null) {
- confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
- return;
- }
-
- adminsService.addNewUser($scope.newUser,'No').then(res=> {
-
- $scope.closeThisDialog();
-
- confirmBoxService.showInformation('Update User Info successfully');
- userProfileService.broadCastUpdatedUserInfo();
-
-
- if($scope.updateRemoteApp){
- //need update remote app's database
- var remoteAppId = $scope.ngDialogData.appId;
- if(remoteAppId!=null){
-
- userProfileService.updateRemoteUserProfile($scope.userId,remoteAppId).then(res=> {
-
-
- }).catch(err=> {
- $log.error('userProfileService: update user profile in remote app error:: ', err);
- confirmBoxService.showInformation('Update User in remote app failed: ' + err);
-
- }).finally(() => {
-
- });
-
-
- }
-
- }
-
- }).catch(err=> {
- $log.error('adminsService: addNewUser error:: ', err);
- // $scope.errMsg=err;
- confirmBoxService.showInformation('Add New User failed: ' + err);
-
- }).finally(() => {
- //this.isLoadingTable = false;
-
- });
-
- }
- }
-
-
- }
- }
- EditUserController.$inject = ['$scope','$log', 'message', '$q', '$http', 'conf','contactUsService','confirmBoxService','userProfileService','adminsService'];
- angular.module('ecompApp').controller('editUserController', EditUserController);
-
-
-})();
-function validateUrl(value){
- return /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);
- } \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.less b/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.less
deleted file mode 100644
index 853e48db..00000000
--- a/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.less
+++ /dev/null
@@ -1,61 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
- .main{
- padding:10px;
- margin-left: 40px;
-
- }
- .manage-user-home-title{
-
- margin-top:15px;
- color: #067ab4;
- font-family: arial;
- font-size: 24px;
- margin-left: 0px;
- width: 250px;
-
- }
-
- .input-text-edit-user {
- font-style: italic;
- padding: 7px 10px;
- width: 200px !important;
- display: inline-block;
- position: relative;
- margin-bottom: 10px;
- border-radius: 6px;
- border: 1px solid #d8d8d8;
- height: 32px;
- border-color: slategrey !important;
- }
-
- .input-edit-user-div{
- float: left;
- width: 300px;
- }
-
- .edit-user-section{
-
- margin-top:5px;
- margin-left:10px;
-
- }
- \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.tpl.html b/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.tpl.html
deleted file mode 100644
index 719f8bde..00000000
--- a/ecomp-portal-FE/client/app/views/header/user-edit/edit-user.tpl.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="main" style="margin-top: 5px; height: 350px;">
- <div id="title" class="manage-user-home-title">Profile</div>
-
- <div class="edit-user-section" >
- <div class="input-edit-user-div" >
- <div class="">*First Name</div>
- <input class="input-text-edit-user" type="text" ng-model="newUser.firstName"/>
- </div>
- <div class="input-edit-user-div" >
- <div class="">Middle Name</div>
- <input class="input-text-edit-user" type="text" ng-model="newUser.middleName"/>
- </div>
- <div class="input-edit-user-div" >
- <div class="">*Last Name</div>
- <input class="input-text-edit-user" type="text" ng-model="newUser.lastName"/>
- </div>
- <div class="input-edit-user-div" >
- <div class="">*Email Address ID</div>
- <input class="input-text-edit-user" type="text" disabled ng-model="newUser.emailAddress"/>
- </div>
- <div class="input-edit-user-div" >
- <div class="">*Login ID</div>
- <input class="input-text-edit-user" type="text" disabled ng-model="newUser.loginId"/>
- </div>
- <div class="input-edit-user-div" >
- <div class="">*Login Password</div>
- <input class="input-text-edit-user" type="password" ng-model="newUser.loginPwd" ng-change="changePwdText()"/>
- </div>
- <div class="input-edit-user-div" >
- <div class="">*Confirm Login Password</div>
- <input class="input-text-edit-user" type="password" ng-model="newUser.loginPwdCheck"/>
- </div>
- </div>
- <div style="bottom: 2px; height:50px;width:180px;margin-top:60px">
- <div class="dialog-control">
- <div id="div-updateAdminAppsRoles" class="next-button" ng-click="updateUserFun()"
- ng-class="{disabled: false}">Save
- </div>
- <div id="div-cancel-button" class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
- </div>
-
-
-</div>
-
-<script type="application/javascript">
- $(document).ready(function(){
- $(".ngdialog-content").css("width","85%")
- });
-</script> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.controller.js b/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.controller.js
deleted file mode 100644
index 2071f4cc..00000000
--- a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.controller.js
+++ /dev/null
@@ -1,244 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- const HTTP_PROTOCOL_RGX = /https?:\/\//;
- class ApplicationsHomeCtrl {
- constructor(applicationsService, $log, $window, userProfileService, $scope,$cookies, utilsService) {
- //activate spinner
- this.isLoading = true;
- $scope.getUserAppsIsDone = false;
- this.userProfileService = userProfileService;
- //get all user's applications on init
- $scope.buildNumber = "OpenECOMP Portal Version: 1.0.0"
-
- userProfileService.getUserProfile()
- .then(profile=> {
- $log.info('ApplicationsHomeCtrl::getUserProfile', profile);
- $scope.userId = profile.orgUserId;
- //$scope.appsViewData = ['notempty']; // initialize with length != 0
- $scope.appsViewData = [];
- $scope.appsView = [];
-
- //redirect to login.htm, if the EPService cookie is missing and logged in user is not a guest.
- if (!$cookies.get('EPService') && !profile.guestSession) {
- this.isLoading = false;
- var myHostName;
- myHostName = location.host;
- $log.info("EPService cookie is missing, so attempting to redirecting to login page.");
- if (utilsService.isRunningInLocalDevEnv()) {
- $log.info("Portal is running in local development and redirecting to 'http://localhost:8080/ecompportal/login.htm'.");
- $window.location.href = "http://localhost:8080/ecompportal/login.htm";
- } else {
- $log.info("Redirecting to 'login.htm'.");
- $window.location.href = "login.htm";
- }
- }
-
- applicationsService.getUserApps()
- .then(res => {
- $log.info('ApplicationsHomeCtrl::getUserApps: ', res);
- this.apps = res;
- let rowNo = 0;
- for (let i = 0; i < this.apps.length; i++) {
- $scope.appsView[i] = {
- sizeX: 2,
- sizeY: 2,
- headerText: '',
- subHeaderText: '',
- imageLink: '',
- order: '',
- url: ''
- };
- $scope.appsView[i].headerText = this.apps[i].name;
- $scope.appsView[i].subHeaderText = this.apps[i].notes;
- $scope.appsView[i].imageLink = this.apps[i].thumbnail || this.apps[i].imageUrl;
- $scope.appsView[i].order = this.apps[i].order;
- $scope.appsView[i].url = this.apps[i].url;
- $scope.appsView[i].restrictedApp = this.apps[i].restrictedApp;
- }
- $log.info('ApplicationsHomeCtrl::getUserApps: apps count : ' + $scope.appsView.length);
-
- if ($cookies.getObject($scope.userId+'_apps') == undefined || $cookies.getObject($scope.userId+'_apps') == null || $cookies.getObject($scope.userId+'_apps').length == 0) {
- if (($scope.appsView != undefined) && ($scope.appsView != null) && ($scope.appsView.length > 0)){
- $scope.appsViewData = $scope.appsView;
- $cookies.putObject($scope.userId + '_apps', $scope.appsView);
- }
- }
- else{
- this.listChanged = false;
- this.appsListFromCookie = $cookies.getObject($scope.userId+'_apps');
- this.finalAppsList = [];
- //
- // If an app is still valid for this user from backend(appsView) and
- // it was in the cookie already, put it in the list in the same order
- // it was in within the cookie.
- //
- let finalCount = 0;
- for (let i = 0; i < this.appsListFromCookie.length; i++) {
- this.foundAppInListFromBackend = false;
- for (let j = 0; j < $scope.appsView.length; j++) {
- if (this.appsListFromCookie[i].url == $scope.appsView[j].url) {
- this.finalAppsList[finalCount] = {
- sizeX: 2,
- sizeY: 2,
- headerText: '',
- subHeaderText: '',
- imageLink: '',
- order: '',
- url: ''
- };
- this.finalAppsList[finalCount].headerText = this.appsListFromCookie[i].headerText;
- this.finalAppsList[finalCount].subHeaderText = this.appsListFromCookie[i].subHeaderText;
- this.finalAppsList[finalCount].imageLink = this.appsListFromCookie[i].imageLink;
- this.finalAppsList[finalCount].order = this.appsListFromCookie[i].order;
- this.finalAppsList[finalCount].url = this.appsListFromCookie[i].url;
- this.finalAppsList[finalCount].restrictedApp = this.appsListFromCookie[i].restrictedApp;
- finalCount++;
- this.foundAppInListFromBackend = true;
- break;
- }
- }
- if (this.foundAppInListFromBackend == false) {
- this.listChanged = true;
- }
- }
-
- //
- // Fill in the rest of the list with the Apps retrieved from the backend that we did not already add. There could have been
- // new Apps configured for the user that are not in the cookie.
- //
- for (let i = 0; i < $scope.appsView.length; i++) {
- this.found = false;
- for (let j = 0; j < this.finalAppsList.length; j++) {
- if ($scope.appsView[i].url == this.finalAppsList[j].url) {
- // already present
- this.found = true;
- break;
- }
- }
- if (this.found == false) {
- this.finalAppsList[finalCount] = {
- sizeX: 2,
- sizeY: 2,
- headerText: '',
- subHeaderText: '',
- imageLink: '',
- order: '',
- url: ''
- };
- this.finalAppsList[finalCount].headerText = $scope.appsView[i].headerText;
- this.finalAppsList[finalCount].subHeaderText = $scope.appsView[i].subHeaderText;
- this.finalAppsList[finalCount].imageLink = $scope.appsView[i].imageLink;
- this.finalAppsList[finalCount].order = $scope.appsView[i].order;
- this.finalAppsList[finalCount].url = $scope.appsView[i].url;
- this.finalAppsList[finalCount].restrictedApp = $scope.appsView[i].restrictedApp;
- finalCount++;
- this.listChanged = true;
- }
- }
-
- if ((this.finalAppsList != undefined) && (this.finalAppsList != null) && (this.finalAppsList.length > 0)) {
- if (this.listChanged) {
- $scope.appsViewData = this.finalAppsList;
- $cookies.putObject($scope.userId + '_apps', this.finalAppsList);
- } else {
- $scope.appsViewData = $cookies.getObject($scope.userId+'_apps');
- }
- }
- this.isLoading = false;
- $scope.getUserAppsIsDone = true;
- }
- }).catch(err => {
- $log.error('oh no! couldnt get applications list...', err);
- this.isLoading = false;
- $scope.getUserAppsIsDone = true;
- });
- });
-
-
- this.gridsterOpts = {
- columns: 6,
- colWidth: 190,
- rowHeight: 190,
- margins: [20, 20],
- outerMargin: true,
- pushing: true,
- floating: true,
- swapping: true,
- draggable : {
- stop: function () {
- $cookies.putObject($scope.userId + '_apps', $scope.appsViewData);
- }
- }
- };
-
- //navigate to application url in new tab
- this.goToPortal = (item) => {
- $log.info("goToPortal called with item: " + item);
- let url = item.url;
- let restrictedApp = item.restrictedApp;
- if (!url) {
- $log.info('No url found for this application, doing nothing..');
- return;
- }
- if (!HTTP_PROTOCOL_RGX.test(url)) {
- url = 'http://' + url;
- }
- if (restrictedApp) {
- $window.open(url, '_blank');
- } else {
- var tabContent = { id: new Date(), title: item.headerText, url:item.url.split('#')[0] + '?' + (new Date).getTime() + "#" + item.url.split('#')[1]};
- $cookies.putObject('addTab', tabContent );
- }
-
- };
- // try {
- // userProfileService.getUserProfile()
- // .then(profile=> {
- // if (profile.roles.indexOf('superAdmin') > -1) {
- // $scope.buildNumber = "ECOMP Portal Version: 1610.0.2058"
- // }
- // }).catch(err=> {
- // $log.error('Applications Home:: getUserProfile() failed: ' + err);
- // });
- // } catch (err) {
- // $log.error('Applications Home:: getUserProfile() failed: ' + err);
- // }
- if(getParameterByName('noUserError')!=null){
- if(getParameterByName('noUserError')=="Show"){
- $("#errorInfo").show();
- }
- }
- }
- }
- ApplicationsHomeCtrl.$inject = ['applicationsService', '$log', '$window', 'userProfileService', '$scope','$cookies', 'utilsService'];
- angular.module('ecompApp').controller('ApplicationsHomeCtrl', ApplicationsHomeCtrl);
-})();
-
-function getParameterByName(name, url) {
- if (!url) url = window.location.href;
- name = name.replace(/[\[\]]/g, "\\$&");
- var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
- results = regex.exec(url);
- if (!results) return '';
- if (!results[2]) return '';
- return (results[2].replace(/\+/g, " "));
-}
diff --git a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.controller.spec.js b/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.controller.spec.js
deleted file mode 100644
index e3782ab2..00000000
--- a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.controller.spec.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-describe('Controller: ApplicationsHomeCtrl ', function() {
- beforeEach(module('ecompApp'));
-
- let ApplicationsHomeCtrl, $controller, $q, rootScope, $log, $window, $cookies, scope;
- let deferredApps, deferredUserProfile, applicationsServiceMock, userProfileServiceMock;
-
-
- beforeEach(inject( (_$controller_, _$q_, _$rootScope_, _$log_, _$window_, _$cookies_, _CacheFactory_)=>{
- rootScope = _$rootScope_;
- scope = rootScope.$new();
- $q = _$q_;
- $controller = _$controller_;
- $log = _$log_;
- $window = _$window_;
- $cookies = _$cookies_;
-
- _CacheFactory_.destroyAll();
-
- deferredApps = $q.defer();
- deferredUserProfile = $q.defer();
- applicationsServiceMock = jasmine.createSpyObj('applicationsServiceMock', ['getUserApps']);
- applicationsServiceMock.getUserApps.and.returnValue(deferredApps.promise);
-
- userProfileServiceMock = jasmine.createSpyObj('userProfileServiceMock',['getUserProfile']);
- userProfileServiceMock.getUserProfile.and.returnValue(deferredUserProfile.promise);
-
- ApplicationsHomeCtrl = $controller('ApplicationsHomeCtrl', {
- applicationsService: applicationsServiceMock,
- $log: $log,
- $window: $window,
- userProfileService: userProfileServiceMock,
- $scope: scope,
- $cookies: $cookies
- });
- scope.$digest();
- }));
-
- it('should populate this.apps with data from portals service getUserApps', inject(function ( _$q_) {
- $q = _$q_;
-
- let profile = {roles: 'superAdmin', userId: 'userid'};
-
- deferredUserProfile.resolve(profile)
- deferredApps.resolve([{name: 'portal1'},{name: 'portal2'},{name: 'portal3'}]);
- scope.$digest();
- expect(scope.appsViewData.length).toBe(3);
- }));
-
- it('should call $log error when getAllPortals fail', inject(function ( _$q_) {
- $q = _$q_;
- spyOn($log, 'error');
- deferredUserProfile.reject('something happened!');
- scope.$digest();
- expect($log.error).toHaveBeenCalled();
- }));
-
-});
diff --git a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.less b/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.less
deleted file mode 100644
index d91acc17..00000000
--- a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.less
+++ /dev/null
@@ -1,164 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-applications-home {
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
- .go-button {
- .btn-green;
- width: 96px;
- position: absolute;
- border-radius: 0px;
- }
-
- .applications-home-container {
- .content_justify;
- position: relative;
- padding: 15px 0 32px 0;
- width: 100%;
-
- .applications-home-title {
- .a24r;
- margin: auto;
- .content_justify;
- }
- .portals-list {
- min-height: 70vh;
- justify-content: center;
- flex-flow: row wrap;
- width: 1170px;
-
- margin: auto;
- margin-bottom: 63px;
-
- .app-gridster-header {
- background-color: @u;
- }
-
- .app-gridster-footer {
- background-color: @u;
- }
-
- .portals-list-item {
- background-color: @u;
- border-radius: 2px;
- box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.1);
- display: inline-block;
- width: 360px;
- height: 300px;
- background-size: cover;
- cursor: pointer;
- margin: 15px;
- overflow: hidden;
-
- .portals-item-info {
- background-color: @u;
- height: 120px;
- top: 180px;
- position: relative;
- box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.1);
- padding: 16px;
-
- .info-title {
- .a24r;
- margin-bottom: 4px;
-
- text-overflow: ellipsis;
- overflow: hidden;
- }
- .info-description {
- .c16r;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .info-button {
- .btn-green;
- width: 96px;
- position: absolute;
- bottom: 16px;
- left: 16px;
- }
-
- &:hover {
- opacity: .93;
- z-index: 3;
- }
- }
- }
- }
- }
-}
-.w-ecomp-main-error{
- .o14r;
- position: absolute;
- width: 100%;
- line-height: 1.5em;
-}
-.w-ecomp-main-disclaimer {
- text-align: center;
- .o14r;
- //position: absolute;
- bottom: -75px;
- line-height: 1.5em;
- margin: 0 auto;
- width:1170px;
- position: relative;
-
-}
-.build-number {
- .o12i;
-}
-
-@keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-.slide.ng-hide-add,
-.slide.ng-hide-remove,
-.slide.ng-enter,
-.slide.ng-leave {
- transition: all 0.5s ease;
-}
-.slide.ng-hide,
-.slide.ng-enter {
- transform: translate(-100%, 0);
-}
-.slide.ng-enter-active {
- transform: translate(0, 0);
-}
-.slide.ng-leave {
- transform: translate(0, 0);
-}
-.slide.ng-leave-active {
- transform: translate(+100%, 0);
-}
diff --git a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.tpl.html b/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.tpl.html
deleted file mode 100644
index 645807f6..00000000
--- a/ecomp-portal-FE/client/app/views/home/applications-home/applications-home.tpl.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-applications-home" ng-style="{bottom: tabBottom}">
- <div class="applications-home-container">
- <div id="app-home-title" class="applications-home-title" >Applications</div>
- <div align="center" id="errorInfo" style="display:none;font-size:12px;margin-left:5px">
- <span style="color:red">You don't have user account in that application.Please ask system administrator </span></div>
- <div class="portals-list">
- <div class="gridster-container override_background">
- <span class="ecomp-spinner" ng-show="applicationsHome.isLoading" ></span>
- <div att-gridster att-gridster-options="applicationsHome.gridsterOpts" >
- <div att-gridster-item='item' ng-repeat="item in appsViewData" id="app-{{item.headerText.split(' ').join('-')}}" >
- <div id="grips-{{item.headerText.split(' ').join('-')}}" ng-hide="users.isLoadingTable && !users.getUserAppsIsDone"
- att-gridster-item-header grips-img-path="assets/images/grips.png"
- header-text="{{item.headerText | elipsis: 33}}" sub-header-text="{{item.subHeaderText | elipsis: 56}}" class="app-gridster-header">
- </div>
- <div id="app-image-{{item.headerText.split(' ').join('-')}}"att-gridster-item-body
- ng-style="{'cursor':'pointer',
- 'background-image': 'url('+(item.imageLink)+')',
- 'order': item.order,
- 'background-repeat': 'no-repeat'}"
- ng-click="applicationsHome.goToPortal(item)" ng-hide="users.isLoadingTable && !users.getUserAppsIsDone">
- </div>
- <div att-gridster-item-footer class="app-gridster-footer" ng-hide="users.isLoadingTable && !users.getUserAppsIsDone">
- <span id="go-{{item.headerText.split(' ').join('-')}}" class="go-button" ng-click="applicationsHome.goToPortal(item)" >GO</span>
- </div>
- </div>
- </div>
- </div>
- <div>
- <div id="app-home-disclaimer" class="w-ecomp-main-error" ng-if="appsViewData.length==0" ng-hide="users.isLoadingTable && !users.getUserAppsIsDone">
- You do not have access to any application/functionality within OpenECOMP Portal. Please contact your administrator to get access to ECOMP Portal</a><br>
- </div>
- </div>
- </div>
- <div id="app-home-disclaimer-mylogins" class="w-ecomp-main-disclaimer">
-
- <p id="build-number" class="build-number" ng-bind-html="buildNumber"></p>
- </div>
-
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.controller.js b/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.controller.js
deleted file mode 100644
index 3f624117..00000000
--- a/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.controller.js
+++ /dev/null
@@ -1,284 +0,0 @@
-'use strict';
-(function () {
-
- class WidgetsHomeCtrl {
- constructor(widgetsService, $log, $cookies, $scope, userProfileService,dashboardService) {
- this.userProfileService = userProfileService;
- this.isLoading = true;
-
- userProfileService.getUserProfile()
- .then(profile=> {
- $log.info('WidgetsHomeCtrl::getUserProfile: ', profile);
- $scope.attuid = profile.attuid;
- $log.info('WidgetsHomeCtrl::getUserProfile: user has the following attuid: ' + profile.attuid);
- $scope.widgetsViewData = [];
- $scope.widgetsView = [];
-
- widgetsService.getUserWidgets()
- .then(widgets => {
- $log.info('WidgetsHomeCtrl::getUserWidgets', widgets);
- this.widgets = widgets;
- this.enlargeURL = "";
- this.isEnlarged = false;
- let rowNo = 0;
- for (let i = 0; i < this.widgets.length; i++) {
- $scope.widgetsView[i] = {
- sizeX: 2,
- sizeY: 2,
- headerText: '',
- width: '',
- height: '',
- url: '',
- selected:false
- };
- $scope.widgetsView[i].headerText = this.widgets[i].name;
- $scope.widgetsView[i].url = this.widgets[i].url;
- //$scope.widgetsView[i].width = this.widgets[i].width;
- //$scope.widgetsView[i].height = this.widgets[i].height;
- //$scope.widgetsView[i].sizeX = this.widgets[i].width/180;
- //$scope.widgetsView[i].sizeY = this.widgets[i].height/150;
- }
- /*News Events Resources*/
- $scope.widgetsView[this.widgets.length] = {
- sizeX: 2,
- sizeY: 2,
- headerText: 'News',
- width: '',
- height: '',
- url: '',
- selected:true
- };
- $scope.widgetsView[this.widgets.length+1] = {
- sizeX: 2,
- sizeY: 2,
- headerText: 'Events',
- width: '',
- height: '',
- url: '',
- selected:true
- };
- $scope.widgetsView[this.widgets.length+2] = {
- sizeX: 2,
- sizeY: 2,
- headerText: 'Resources',
- width: '',
- height: '',
- url: '',
- selected:true
- };
-
- /*Setting News data*/
- $scope.newsData = [];
- $scope.updateNews = function() {
- $scope.newsData.length=0;
- dashboardService.getCommonWidgetData('NEWS').then(function(res) {
- // $log.info(res.message);
- var newsDataJsonArray = res.response.items;
- for (var i = 0; i < newsDataJsonArray.length; i++) {
- $scope.newsData.push(newsDataJsonArray[i]);
- }
- })['catch'](function(err) {
- $log.error('dashboard controller: failed to get news list', err);
- _this.isLoading = false;
- });
- }
- $scope.updateNews();
- /*Setting Events data*/
-
- $scope.eventData = [];
-
- $scope.updateEvents = function() {
- $scope.eventData.length=0;
- dashboardService.getCommonWidgetData('EVENTS').then(function(res) {
- var eventDataJsonArray = res.response.items;
- for (var i = 0; i < eventDataJsonArray.length; i++) {
- if(eventDataJsonArray[i].eventDate !=null) {
- // yyyy-mm-dd
- eventDataJsonArray[i].year = eventDataJsonArray[i].eventDate.substring(2,4);
- eventDataJsonArray[i].mon = eventDataJsonArray[i].eventDate.substring(5,7);
- eventDataJsonArray[i].day = eventDataJsonArray[i].eventDate.substring(8,10);
- }
- $scope.eventData.push(eventDataJsonArray[i]);
- }
- })['catch'](function(err) {
- $log.error('dashboard controller: failed to get Events list', err);
- _this.isLoading = false;
- });
- }
- $scope.updateEvents();
- /*Setting Important Resources data*/
-
- $scope.importResData = [];
- $scope.updateImportRes = function() {
- $scope.importResData.length=0;
- dashboardService.getCommonWidgetData('IMPORTANTRESOURCES').then(
- function(res) {
- // $log.error('couldnt get important list...', res.response.dataBlob);
- $log.info(res);
- var importResDataJSONArray = res.response.items;
- for (var i = 0; i < importResDataJSONArray.length; i++) {
- $scope.importResData.push(importResDataJSONArray[i]);
- }
- })['catch'](function(err) {
- $log.error('dashboard controller: failed to get resources list...', err);
- _this.isLoading = false;
- });
- }
- $scope.updateImportRes();
-
- /********End hardcoded news events and resources****************/
-
-
- $log.info('WidgetsHomeCtrl::getUserWidgets count : ' + $scope.widgetsView.length);
-
- if ($cookies.getObject($scope.attuid + '_widget') == undefined || $cookies.getObject($scope.attuid + '_widget') == null || $cookies.getObject($scope.attuid + '_widget').length == 0) {
- if (($scope.widgetsView != undefined) && ($scope.widgetsView != null) && ($scope.widgetsView.length > 0)) {
- $scope.widgetsViewData = $scope.widgetsView;
- //$cookies.putObject($scope.attuid + '_widget', $scope.widgetsView);
- }
- }
- else {
- this.listChanged = false;
- this.listFromCookie = $cookies.getObject($scope.attuid + '_widget');
- this.finalList = [];
- //
- // If a widget is still valid for this user from backend and
- // it was in the cookie already, put it in the list in the same order
- // it was in within the cookie.
- //
- let finalCount = 0;
- for (let i = 0; i < this.listFromCookie.length; i++) {
- this.foundInListFromBackend = false;
- for (let j = 0; j < $scope.widgetsView.length; j++) {
- if ((this.listFromCookie[i].url == $scope.widgetsView[j].url) &&
- (this.listFromCookie[i].headerText == $scope.widgetsView[j].headerText)) {
- this.finalList[finalCount] = {
- sizeX: 2,
- sizeY: 2,
- headerText: '',
- width: '',
- height: '',
- url: '',
- selected:false
- };
- this.finalList[finalCount].headerText = this.listFromCookie[i].headerText;
- //this.finalList[finalCount].width = this.listFromCookie[i].width;
- //this.finalList[finalCount].height = this.listFromCookie[i].height;
- this.finalList[finalCount].url = this.listFromCookie[i].url;
- //this.finalList[finalCount].sizeX = this.listFromCookie[i].width/180;
- //this.finalList[finalCount].sizeY = this.listFromCookie[i].height/150;
- finalCount++;
- this.foundInListFromBackend = true;
- break;
- }
- }
- if (this.foundInListFromBackend == false) {
- this.listChanged = true;
- }
- }
-
- //
- // Fill in the rest of the list with the widgets retrieved from the backend that we did
- // not already add. There could have been
- // new widgets configured for the user that are not in the cookie.
- //
- for (let i = 0; i < $scope.widgetsView.length; i++) {
- this.found = false;
- for (let j = 0; j < this.finalList.length; j++) {
- if (($scope.widgetsView[i].url == this.finalList[j].url) &&
- ($scope.widgetsView[i].headerText == this.finalList[j].headerText)){
- // already present
- this.found = true;
- break;
- }
- }
- if (this.found == false) {
- this.finalList[finalCount] = {
- sizeX: 2,
- sizeY: 2,
- headerText: '',
- width: '',
- height: '',
- url: '',
- selected:false
- };
- this.finalList[finalCount].headerText = $scope.widgetsView[i].headerText;
- //this.finalList[finalCount].width = $scope.widgetsView[i].width;
- //this.finalList[finalCount].height = $scope.widgetsView[i].height;
- this.finalList[finalCount].url = $scope.widgetsView[i].url;
- //this.finalList[finalCount].sizeX = $scope.widgetsView[i].width/180;
- //this.finalList[finalCount].sizeY = $scope.widgetsView[i].height/150;
- finalCount++;
- this.listChanged = true;
- }
- }
-
- if ((this.finalList != undefined) && (this.finalList != null) && (this.finalList.length > 0)) {
- if (this.listChanged) {
- $scope.widgetsViewData = this.finalList;
- $cookies.putObject($scope.attuid + '_widget', this.finalList);
- } else {
- $scope.widgetsViewData = $cookies.getObject($scope.attuid + '_widget');
- }
- }
- this.isLoading = false;
- }
- }).catch(err => {
- $log.error('WidgetsHomeCtrl::getUserWidgets: oh no! couldnt get widgets list...', err);
- this.isLoading = false;
- });
- });
-
-
- this.gridsterOpts = {
- columns: 6,
- colWidth: 190,
- rowHeight: 190,
- margins: [20, 20],
- outerMargin: true,
- pushing: true,
- floating: true,
- swapping: true,
- draggable: {
- handle: 'img',
- stop: function () {
- $cookies.putObject($scope.attuid + '_widget', $scope.widgetsViewData);
- }
- }
- };
- }
- }
-
- WidgetsHomeCtrl.$inject = ['widgetsService', '$log', '$cookies', '$scope', 'userProfileService','dashboardService'];
- angular.module('ecompApp').controller('WidgetsHomeCtrl', WidgetsHomeCtrl);
-
- angular.module('ecompApp').constant('refreshInterval', '30000');
-
- angular.module('ecompApp').directive('refreshIframe', ['$interval', 'refreshInterval', function ($interval, refreshInterval) {
-
- function link(scope, element, attrs) {
- var timeoutId;
-
- function updateIframe() {
- if(attrs.isEnlarged == "false")
- {
- element.attr('src', element.attr('src'));
- }
- }
-
- element.on('$destroy', function () {
- $interval.cancel(timeoutId);
- });
-
- // start the UI update process; save the timeoutId for cancelling
- /*timeoutId = $interval(function () {
- updateIframe(); // update DOM
- }, refreshInterval);*/
- }
-
- return {
- link: link
- };
- } ]);
-
-})();
diff --git a/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.controller.spec.js b/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.controller.spec.js
deleted file mode 100644
index 8b137891..00000000
--- a/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.controller.spec.js
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.less b/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.less
deleted file mode 100644
index 46e5b1fd..00000000
--- a/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.less
+++ /dev/null
@@ -1,137 +0,0 @@
-.w-ecomp-widgets-home{
- //.bg_u;//white for 1702
- .bg_w; // gray for 1610
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
- .widget-gridster-header {
- background-color:#ffffff;
- }
-
- .widget-gridster-footer {
- background-color:#ffffff
- }
-
- .widget-iframe {
- width: 100%;
- height: 90%;
- }
-
- .widget-image {
- cursor: pointer;
- width: 20px;
- height: 25px;
- }
-
- .enlarge-content{
- top: 120px;
- left: 400px;
- width:1170px;
- height:600px;
- right: 0;
- bottom: 0;
- left: 0;
- background: none repeat scroll 0 0 #f2f2f2;
- }
-
- .enlarge-close-button{
- .btn-blue;
- position: relative;
- top : -20px;
- left : 1145px;
- width : 25px;
- }
-
- .widgets-home-container {
- .content_justify;
- position: relative;
- padding-right: 0;
- padding-left: 0;
- padding-bottom: 32px;
- width: 100%;
-
- .widgets-home-title {
- .a24r;
- margin: auto;
- .content_justify;
- }
- .portals-list {
- min-height: 70vh;
- //display: flex;
- justify-content: center;
- flex-flow: row wrap;
- width: 1170px;
-
- margin: auto;
- margin-bottom: 63px;
-
- .portals-list-item {
- background-color: @u;
- border-radius: 2px;
- box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.1);
- display: inline-block;
- width: 360px;
- height: 300px;
- background-size: cover;
- cursor: pointer;
- margin: 15px;
- overflow: hidden;
-
- .portals-item-info {
- background-color: @u;
- height: 50px;
- top: 180px;
- // position: relative;
- box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.1);
- padding: 16px;
-
- .info-title {
- .a24r;
- margin-bottom: 4px;
-
- text-overflow: ellipsis;
- overflow: hidden;
- }
- .info-description {
- .c16r;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .info-button {
- .btn-green;
- width: 96px;
- // position: absolute;
- bottom: 16px;
- left: 16px;
- }
-
- &:hover {
- opacity: .93;
- z-index: 3;
- }
- }
- }
- }
- }
-}
-
-.gridster-item-container .gridster-item-body{
- bottom:0px;
- overflow:hidden;
-}
-
-@keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.tpl.html b/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.tpl.html
deleted file mode 100644
index 8e385c1e..00000000
--- a/ecomp-portal-FE/client/app/views/home/widgets-home/widgets-home.tpl.html
+++ /dev/null
@@ -1,123 +0,0 @@
-<div class="w-ecomp-widgets-home" id="contentId">
- <div class="widgets-home-container">
- <div id="widgets-home-title" class="widgets-home-title">Widgets</div>
-
-
- <div class="portals-list">
- <div class="gridster-container override_background">
- <span class="ecomp-spinner" ng-show="widgetsHome.isLoading"></span>
- <div ng-hide="widgetsHome.isEnlarged" att-gridster
- att-gridster-options="widgetsHome.gridsterOpts" >
- <div att-gridster-item='item' ng-repeat="item in widgetsViewData">
- <div id="widget-grips-{{item.headerText.split(' ').join('-')}}"
- att-gridster-item-header
- grips-img-path="assets/images/grips.png"
- header-text={{item.headerText}}
- class="widget-gridster-header">
- </div>
- <div att-gridster-item-body ng-if="item.headerText=='News'">
- <div id="newsContainer" class="information-section-gridsterContent">
- <div class="news">
- <ul id="newsContent" ng-show="newsData.length!=0">
- <li ng-repeat="news in newsData"><a href="{{news.href}}" target="_blank" ng-bind="news.title"></a></li>
- </ul>
- <div ng-hide="newsData.length!=0">
- <div class="activity-error-container" style="background: rgb(255, 255, 255); overflow: auto!important; width: 100%;">
- <div class="activity-error-block">
- <i class="ion-information-circled full-linear-ion-information-circled" style="margin-left:125px; font-size: 90px"></i> <br>
- <div class="activity-error-msg1">There's currently no news available.</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div att-gridster-item-body ng-if="item.headerText=='Events'">
- <div class="information-section-gridsterContent">
- <div class="events">
- <ul ng-show="eventData.length!=0">
- <li ng-repeat="event in eventData">
- <div ng-click="event_content_show=!event_content_show">
- <div class="events-date">{{event.mon}}/{{event.day}}/{{event.year}} </div>
- <div>
- <div class="event-title-div">
- <p ng-bind="event.title"></p>
- </div>
- <div>
- <span class="ion-ios-arrow-up" ng-if="event_content_show" style="color: #888; font-size: 22px;"></span>
- <span class="ion-ios-arrow-down" ng-if="!event_content_show" style="color: #888; font-size: 22px;"></span>
-
- </div>
- <div style="clear: both;"></div>
- </div>
- </div>
- <div class="events-content" ng-show="event_content_show">
- <div class="events-content-body">
- <a class="events-link" ng-href="{{event.href}}" target="_blank">
- <span ng-bind="event.content"></span>
- </a>
- </div>
- <div></div>
- </div>
- </li>
-
-
- </ul>
- <div ng-hide="eventData.length!=0">
- <div class="activity-error-container" style="background: rgb(255, 255, 255); overflow: hidden!important; width: 100%;">
- <div class="activity-error-block">
- <i class="ion-information-circled full-linear-ion-information-circled" style="margin-left:125px; font-size: 90px"></i> <br>
- <div class="activity-error-msg1">There's currently no event available.</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div att-gridster-item-body ng-if="item.headerText=='Resources'">
- <div class="">
- <div class="resources">
- <ul ng-show="importResData.length!=0">
- <li ng-repeat="item in importResData"><a href="{{item.href}}" target="_blanl">{{item.title}}</a></li>
- </ul>
- <div ng-hide="importResData.length!=0">
- <div class="activity-error-container" style="background: rgb(255, 255, 255); overflow: hidden!important; width: 100%;">
- <div class="activity-error-block">
- <i class="ion-information-circled full-linear-ion-information-circled" style="margin-left:125px; font-size: 90px"></i> <br>
- <div class="activity-error-msg1">There's currently no links available.</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div att-gridster-item-body ng-if="item.headerText!='News' && item.headerText!='Events' && item.headerText!='Resources'">
- <iframe id="widget-iframe-{{item.headerText.split(' ').join('-')}}"
- class="widget-iframe"
- ng-src="{{item.url | trusted}}"
- refresh-iframe
- is-enlarged="{{widgetsHome.isEnlarged}}">
- </iframe>
- </div>
- <div id="widget-footer-{{item.headerText.split(' ').join('-')}}"
- att-gridster-item-footer class="widget-gridster-footer">
- </div>
- </div>
- </div>
- </div>
- <div ng-show="widgetsHome.isEnlarged" >
- <div id="widgets-button-enlarge-close" class="enlarge-close-button" ng-click="widgetsHome.isEnlarged=false">X</div>
- <iframe id="iframe-widget-enlarge-close" ng-src="{{widgetsHome.enlargeURL | trusted}}" class="enlarge-content" >
- </iframe>
- </div>
-
- </div>
-
- <div id="widgets-disclaimer" class="w-ecomp-main-disclaimer">
- To request access to an application, please visit the <a
- ng-href="getAccess">Get Access</a> page.
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.controller.js b/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.controller.js
deleted file mode 100644
index b5216101..00000000
--- a/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.controller.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class NewPortalAdminModalCtrl {
- constructor($log, portalAdminsService, $scope, confirmBoxService) {
-
- let init = () => {
- this.isSaving = false;
- if($scope.ngDialogData && $scope.ngDialogData.selectedUser && $scope.ngDialogData.dialogState){
- this.selectedUser = $scope.ngDialogData.selectedUser;
- this.dialogState = $scope.ngDialogData.dialogState;
- }else{
- this.selectedUser = null;
- this.dialogState = 1;
- }
- $log.info('NewPortalAdminModalCtrl:: initiated');
- };
-
- this.addNewPortalAdmin = () => {
- portalAdminsService.getPortalAdmins().then(result=> {
- var dupNameCheck = JSON.stringify(result).search(this.selectedUser.orgUserId);
- if (dupNameCheck != -1) {
- $log.error("NewPortalAdminModalCtrl::addNewPortalAdmin: userId already exists as a portal admin! dupNameCheck=",dupNameCheck);
- confirmBoxService.showInformation('This user already exists as a portal admin!').then(function (isConfirmed) {
- $scope.closeThisDialog(true);
- });
- } else {
- confirmBoxService.makeAdminChanges('Are you sure you want to add "' + this.selectedUser.firstName + ' ' + this.selectedUser.lastName + '" as a Portal Admin?')
- .then(isConfirmed => {
- if(isConfirmed) {
- if (!this.selectedUser || !this.selectedUser.orgUserId) {
- $log.error('NewPortalAdminModalCtrl::makeAdminChanges: No portal admin or ID... cannot add');
- return;
- }
- portalAdminsService.addPortalAdmin(this.selectedUser.orgUserId)
- .then(() => {
- $log.debug("NewPortalAdminModalCtrl::addNewPortalAdmin: portal admin added successfully");
- $scope.closeThisDialog(true);
- }).catch(err => {
- $log.error('NewPortalAdminModalCtrl::addNewPortalAdmin error status: ' + err.status);
- confirmBoxService.showInformation('There was a unknown problem adding the portal admin. ' + 'Please try again later. Error Status: '+ err.status).then(function (isConfirmed) {});
- });
- }
- }).catch(err => {
- $log.error('portalAdminsService.addPortalAdmin error status: '+ err.status);
- });
- }
- }).catch(err=> {
- $log.error('NewPortalAdminModalCtrl::addNewPortalAdmin error getting portal admins list:',err);
- });
- };
-
- this.setSelectedUser = (user) => {
- $log.debug('NewPortalAdminModalCtrl::setSelectedUser: selected user: ', user);
- this.selectedUser = user;
- };
-
- init();
-
- $scope.$on('$stateChangeStart', e => {
- e.preventDefault();
- });
- }
- }
- NewPortalAdminModalCtrl.$inject = ['$log', 'portalAdminsService', '$scope', 'confirmBoxService'];
- angular.module('ecompApp').controller('NewPortalAdminModalCtrl', NewPortalAdminModalCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.controller.spec.js b/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.modal.html b/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.modal.html
deleted file mode 100644
index f235b391..00000000
--- a/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.modal.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="new-admin-modal">
- <div class="search-users">
- <search-users search-title="Add New Portal Admin"
- selected-user="newPortalAdmin.selectedUser"></search-users>
- <div class="dialog-control">
- <div id="pa-search-users-button-save" class="save-button"
- ng-click="newPortalAdmin.selectedUser && newPortalAdmin.addNewPortalAdmin()"
- ng-class="{disabled: !newPortalAdmin.selectedUser}">Save
- </div>
- <div id="pa-search-users-button-cancel" class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.modal.less b/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.modal.less
deleted file mode 100644
index dcc4fc52..00000000
--- a/ecomp-portal-FE/client/app/views/portal-admin/new-portal-admin/new-portal-admin.modal.less
+++ /dev/null
@@ -1,99 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .new-portal-admin-modal {
- display:block;
- overflow:auto;
- min-height: 450px;
-
- .search-users {
- }
-
- .admin-app-roles {
- .title {
- .n18r;
- border-bottom: @a 3px solid;
-
- }
-
- .app-roles-main {
- margin-top: 16px;
- .app-roles-main-title {
- .n14r;
- margin-bottom: 8px;
- .left {
- display: inline-block;
- }
- .right {
- display: inline-block;
- color: @a;
- float: right;
- cursor: pointer;
- }
- }
-
- .select-input{
- width: 460px;
- }
-
- .new-administrated-app {
- height: 30px;
- line-height: 30px;
-
- border: 1px solid @p;
- margin-bottom: 8px;
- border-radius: 2px;
- padding-left: 6px;
- padding-top: 0;
- .o14r;
- }
-
- .admin-roles-list {
- height: 240px;
- overflow-y: auto;
- }
-
- .administrated-application {
- width: 460px;
- height: 30px;
- border: 1px solid @p;
- margin-bottom: 8px;
- border-radius: 2px;
- padding: 6px;
- .o14r;
- display: inline-block;
-
- }
-
- .delete-application {
- .ico_trash_default;
- display: inline-block;
- vertical-align: 4px;
- cursor: pointer;
- position: relative;
- top: 6px;
- color: transparent;
- margin-left: 8px;
- }
-
- }
-
- }
-}
-
diff --git a/ecomp-portal-FE/client/app/views/portal-admin/portal-admin-controller.js b/ecomp-portal-FE/client/app/views/portal-admin/portal-admin-controller.js
deleted file mode 100644
index 10043005..00000000
--- a/ecomp-portal-FE/client/app/views/portal-admin/portal-admin-controller.js
+++ /dev/null
@@ -1,127 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class PortalAdminsCtrl {
- constructor($log, portalAdminsService, ngDialog, confirmBoxService) {
-
- let updateTableData = () => {
- this.isLoadingTable = true;
- portalAdminsService.getPortalAdmins().then(result=> {
- $log.debug('PortalAdminsCtrl::updateTableData: result: ' + JSON.stringify(result));
- if (!result || !result.length) {
- $log.info('PortalAdminsCtrl::updateTableData: no Portal Admins err handling');
- this.portalAdminsTableData = [];
- return;
- }
- this.portalAdminsTableData = result;
- }).catch(err=> {
- $log.error('PortalAdminsCtrl::updateTableData error :',err);
- }).finally(() => {
- this.isLoadingTable = false;
- });
- };
-
- let init = () => {
- $log.info('portalAdminsService.getPortalAdmins::initializing...');
- this.isLoadingTable = false;
-
- this.searchString= '';
- this.portalAdminsTableHeaders = ['First Name', 'Last Name', 'User ID', 'Delete'];
- this.portalAdminsTableData = [];
- updateTableData();
- };
-
- init();
-
- this.removePortalAdmin = pAdmin => {
- $log.debug('pAdmin = ' + JSON.stringify(pAdmin));
- confirmBoxService.deleteItem(pAdmin.firstName + ' ' + pAdmin.lastName )
- .then(isConfirmed => {
- if(isConfirmed){
- if(!pAdmin || !pAdmin.userId){
- $log.error('PortalAdminsCtrl::removePortalAdmin No portal admin or ID... cannot delete');
- return;
- }
- portalAdminsService.removePortalAdmin(pAdmin.userId).then(() => {
- $log.info("PortalAdminsCtrl::removePortalAdmin removed admin");
- init();
- }).catch(err => {
- $log.error('PortalAdminsCtrl::removePortalAdmin.deleteItem error: '+ err);
- });
- }
- }).catch(err => {
- $log.error('PortalAdminsCtrl::removePortalAdmin.deleteItem error: '+ err);
- });
- };
-
- this.openAddNewPortalAdminModal = (user) => {
- let data = null;
- if(user){
- data = {
- dialogState: 2,
- selectedUser:{
- userId: user.orgUserId,
- firstName: user.firstName,
- lastName: user.lastName
- }
- }
- }
- ngDialog.open({
- templateUrl: 'app/views/portal-admin/new-portal-admin/new-portal-admin.modal.html',
- controller: 'NewPortalAdminModalCtrl',
- controllerAs: 'newPortalAdmin',
- data: data
- }).closePromise.then(needUpdate => {
- if(needUpdate.value === true){
- $log.debug('PortalAdminsCtrl::openAddNewPortalAdminModal: updating Portal Admin table data...');
- updateTableData();
- }
- });
- };
-
- this.openEditUserModal = (loginId) => {
- var data = {
- loginId : loginId,
- updateRemoteApp : false,
- appId : this.selectedApp!=null?this.selectedApp.id:''
- }
- var modalInstance = ngDialog.open({
- templateUrl: 'app/views/header/user-edit/edit-user.tpl.html',
- controller: 'editUserController',
- data: data,
- resolve: {
- message: function message() {
- var message = {
- type: 'Contact',
- };
- return message;
- }
- }
- }).closePromise.then(needUpdate => {
- updateTableData();
- });
- }
-
- }
- }
- PortalAdminsCtrl.$inject = ['$log', 'portalAdminsService', 'ngDialog', 'confirmBoxService'];
- angular.module('ecompApp').controller('PortalAdminsCtrl', PortalAdminsCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/portal-admin/portal-admin.tpl.html b/ecomp-portal-FE/client/app/views/portal-admin/portal-admin.tpl.html
deleted file mode 100644
index 05216f34..00000000
--- a/ecomp-portal-FE/client/app/views/portal-admin/portal-admin.tpl.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-main">
- <div class="w-ecomp-main-container">
- <div class="portal-admins-page-main" id="contentId">
- <div id="title" class="w-ecomp-main-view-title">Portal Admins</div>
- <div class="portal-admins-table">
- <div class="table-control">
- <input id="input-table-search" class="table-search" type="text"
- placeholder="Search in entire table"
- ng-model="portalAdmin.searchString"/>
- <div id="add-portal-admin-button" class="add-button portal-add-button" ng-click="portalAdmin.openAddNewPortalAdminModal()">Add Portal Admin</div>
- </div>
- <span class="ecomp-spinner" ng-show="portalAdmin.isLoadingTable"></span>
- <div class="c-ecomp-att-abs-table default" ng-hide="portalAdmin.isLoadingTable">
- <table att-table
- table-data="portalAdmin.portalAdminsTableData"
- search-string="portalAdmin.searchString"
- view-per-page="portalAdmin.viewPerPageIgnored"
- current-page="portalAdmin.currentPageIgnored"
- total-page="portalAdmin.totalPageIgnored">
- <thead att-table-row type="header">
- <tr>
- <th id="th-first-name" att-table-header key="firstName" default-sort="a">{{portalAdmin.portalAdminsTableHeaders[0]}}</th>
- <th id="th-last-name" att-table-header key="lastName" sortable="true">{{portalAdmin.portalAdminsTableHeaders[1]}}</th>
- <th id="th-userId" att-table-header key="userId" sortable="true">{{portalAdmin.portalAdminsTableHeaders[2]}}</th>
- <th id="portal-admin-th-header-delete" att-table-header sortable="{{false}}">{{portalAdmin.portalAdminsTableHeaders[3]}}</th>
- </tr>
- </thead>
- <tbody att-table-row type="body"
- class="table-body"
- row-repeat="rowData in portalAdmin.portalAdminsTableData | filter: portalAdmin.portalsRowFilter">
- <tr>
- <td att-table-body>
- <div id="div-{{rowData.userId}}-{{rowData.firstName}}" ng-bind="rowData.firstName"></div>
- </td>
- <td att-table-body>
- <div id="div-{{rowData.userId}}-{{rowData.lastName}}" ng-bind="rowData.lastName"></div>
- </td>
- <td att-table-body>
- <div id="div-{{rowData.userId}}" style="float: left;" ng-bind="rowData.loginId"></div>
- <div>
- <span style="float: left; margin-left:15px" class="ion-person" ng-click="portalAdmin.openEditUserModal(rowData.loginId);$event.stopPropagation()"></span>
- </div>
- </td>
- <td att-table-body>
- <div id="portal-admin-delete-{{$index}}" class="ion-trash-b" ng-click="portalAdmin.removePortalAdmin(rowData)"></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/portal-admin/portal-admins.less b/ecomp-portal-FE/client/app/views/portal-admin/portal-admins.less
deleted file mode 100644
index 29fd9e32..00000000
--- a/ecomp-portal-FE/client/app/views/portal-admin/portal-admins.less
+++ /dev/null
@@ -1,56 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .portal-admins-page-main {
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
-
- .portal-admins-table {
- width: @table-width;
- margin: @table-margin;
-
- .table-control {
- .table-dropdown-filter{
- width: @table-dropdown-filter-width;
- display: @table-dropdown-filter-display;
- }
- }
-
- .table-body {
- cursor: pointer;
- }
- }
-
- .delete-user{
- .ico_trash_default;
- }
-
- .portal-add-button {
- width: 160px;
- }
-}
-
diff --git a/ecomp-portal-FE/client/app/views/search/search.controller.js b/ecomp-portal-FE/client/app/views/search/search.controller.js
deleted file mode 100644
index 60e27593..00000000
--- a/ecomp-portal-FE/client/app/views/search/search.controller.js
+++ /dev/null
@@ -1,184 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
-
- class SearchCtrl {
- constructor($log, $scope, $cookies, $timeout, userProfileService, sessionService, dashboardService) {
- $scope.firstName="";
- $scope.lastName="";
-
- function showHideSearchSnippet() {
-
- setTimeout(function() {
- jQuery("#mainSearchSnippet").click();
- },500);
-
- setTimeout(function() {
- jQuery("#mainSearchText").focus();
- },1000);
- }
-
- jQuery("#mainSearchDiv").keyup(function(event){
- if(event.keyCode == 13){
- // there is a watch on this variable which will trigger the database pull
- dashboardService.searchString = jQuery("#mainSearchText").val();
-
- // opens the popup
- var popupDomObj = jQuery("[content='searchSnippet.html']");
- if(popupDomObj.length == 0) {
- showHideSearchSnippet();
- } else {
- jQuery("#mainSearchSnippet").click();
- showHideSearchSnippet();
- }
-
-
-
- }
- });
-
-
-
- }
-
-
- }
-
-
- class SearchSnippetCtrl {
- constructor($log, $scope, $cookies, $timeout, userProfileService, sessionService, dashboardService,applicationsService, $window, $state) {
- $scope.firstName="";
- $scope.lastName="";
- $scope.goToUrl = goToUrl;
- $scope.dService = dashboardService;
-
-
-
- function goToUrl (item, type) {
- $log.info("goToUrl called")
- $log.info(item + "/" + type);
-
-
- if(type == 'intra') {
-
- var intraSearcLink = "http://to_do_link.com";
- var intraSpecSearcLink = intraSearcLink + encodeURIComponent(dashboardService.searchString);
- $window.open(intraSpecSearcLink, '_blank');
-
- } else if (type == 'extra') {
- var extraSearcLink = "https://to_do_link.com";
- var extraSpecSearcLink = extraSearcLink + encodeURIComponent(dashboardService.searchString);
- $window.open(extraSpecSearcLink, '_blank');
- }
-
- let url = item.target;
- let restrictedApp = item.uuid;
- let getAccessState = "root.getAccess"
- if (!url) {
-
- applicationsService.goGetAccessAppName = item.name;
- if($state.current.name == getAccessState)
- $state.reload();
- else
- $state.go(getAccessState);
- //$log.info('No url found for this application, doing nothing..');
- return;
- }
-
- if (restrictedApp != "true") {
- $window.open(url, '_blank');
- } else {
- if(item.url=="root.access"){
- $state.go(url);
- var tabContent = { id: new Date(), title: 'Home', url: url };
- $cookies.putObject('addTab', tabContent );
- } else {
- var tabContent = { id: new Date(), title: item.name, url: url };
- $cookies.putObject('addTab', tabContent );
- }
- }
-
- }
-
- function getItems(searchString) {
-
- var items;
- var itemMap = dashboardService.getSearchAllByStringResults(searchString)
- .then(res => {
- $scope.items = res;
-
-
- }).catch(err => {
- $scope.items = [];
- $log.error('Couldnt get search results...', err)
- });
-
- }
-
- $scope.$watch('dService.searchString', function(searchString) {
- if(searchString != undefined )
- getItems(searchString);
-
- });
-
-
-
- }
-
-
-
- }
-
-
-
- SearchCtrl.$inject = ['$log', '$scope', '$cookies', '$timeout','userProfileService', 'sessionService', 'dashboardService'];
- SearchSnippetCtrl.$inject = ['$log', '$scope', '$cookies', '$timeout','userProfileService', 'sessionService', 'dashboardService','applicationsService', '$window','$state'];
- angular.module('ecompApp').controller('searchCtrl', SearchCtrl);
- angular.module('ecompApp').controller('searchSnippetCtrl', SearchSnippetCtrl);
- angular.module('ecompApp').directive('searchBox', function() {
- return {
- restrict: "E",
- templateUrl: 'app/views/search/search.tpl.html',
- link: function(scope, element) {
-
- //var iframeId = "#tabframe-" + scope.$parent.tab.title.split(' ').join('-');
- // jQuery(iframeId).load(function() {
- // alert("hello");
- // }); //.attr("src",'{{tab.content | trusted}}' ); //src='{{tab.content | trusted}}'
- // jQuery(iframeId).attr('src', '{{tab.content | trusted}}');
-
- //element.childNodes[0].on('load', function() {
- // alert('hello');
- //});
- }
- }
- });
- angular.module( 'ecompApp' ).config( [
- '$compileProvider',
- function( $compileProvider )
- {
- $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|chrome-extension|qto):/);
- }
- ]);
-
-})();
-
-
diff --git a/ecomp-portal-FE/client/app/views/search/search.controller.spec.js b/ecomp-portal-FE/client/app/views/search/search.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/search/search.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/search/search.less b/ecomp-portal-FE/client/app/views/search/search.less
deleted file mode 100644
index a21559ec..00000000
--- a/ecomp-portal-FE/client/app/views/search/search.less
+++ /dev/null
@@ -1,55 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .searchLiHeader {
-font-weight: bold;
-color: #0574ac;
-font-size: 16px;
-padding-bottom: 10px;
-line-height: 1.5;
-font-family: arial;
-
-}
-
-.searchLiItems{
-cursor: pointer;
-font-weight: normal;
-font-size: 12px;
-color: #444444;
-font-family: arial;
-}
-
-.searchUl {
-list-style: none;
-border-bottom: 1px solid #bbb;
-padding-bottom: 20px;
-}
-
-#contentVertical {
- height: 300px;
- width: 250px;
- }
-
-#contentVertical .scroll-viewport {
- height: 300px;
- width: 250px;
- }
-#mainSearchText::-ms-clear{
- display:none;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/search/search.tpl.html b/ecomp-portal-FE/client/app/views/search/search.tpl.html
deleted file mode 100644
index bd37f772..00000000
--- a/ecomp-portal-FE/client/app/views/search/search.tpl.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-
-<div class="col-md-12 font-clearview">
- <div class="form-field form-field__small" >
- <input id="mainSearchText" type="text" placeholder="What are you looking for?" class="form-field form-field__small" style="height:30px;border-radius: 10px;border: 2px solid rgb(250,250,250);" />
- <i class="ion-ios-search" id="search-icon" style="position:relative;line-height:10px;top:-30px;right:-250px">&nbsp;</i>
-
- <div id="mainSearchSnippet" popover="searchSnippet.html"
- aria-label="search Snippet" referby="searchSnippet" att-accessibility-click="13,32"
- popover-style="" popover-trigger="click" popover-placement="below" >
- </div>
- </div>
-
-</div>
-
-
-
-
-<script type="text/ng-template" id="searchSnippet.html">
- <div style="line-height: normal; right: 167px; min-height: 122px; height: auto; width: auto;" ng-controller="searchSnippetCtrl" >
- <div id="reg-header-snippet">
-
- <div tabindex="0" class="reg-profileDetails" id="reg-searchPop-id" >
- <div id="contentVertical" att-scrollbar="y" class="ng-scope vertical" style="position: relative;">
- <ul class="searchUl">
- <li>
- <a class="ion-android-apps"></a>
- <a id="searchItem" ng-click="goToUrl(item)" class="searchLiHeader">Applications:</a>
- </li>
- <li ng-repeat='item in items.application'>
- <a id="searchItem" ng-click="goToUrl(item)" class="searchLiItems">{{item.name}}</a>
- </li>
- </ul>
-
- <ul class="searchUl">
- <li>
- <a class="ion-android-apps"></a>
- <a id="searchItem" ng-click="goToUrl(item)" class="searchLiHeader">Functional Menus:</a>
- </li>
- <li ng-repeat='item in items.menu'>
- <a id="searchItem" ng-click="goToUrl(item)" class="searchLiItems">{{item.name}}</a>
- </li>
- </ul>
-
-
- <ul class="searchUl">
- <li>
- <a class="ion-ios-person-outline" style="font-size:16px;"></a>
- <a id="searchItem" ng-click="goToUrl(item)" class="searchLiHeader">Users:</a>
- </li>
- <li ng-repeat='item in items.user'>
- <a id="searchItem" ng-href="mailto:{{item.target}}" class="searchLiItems">{{item.name}}</a>
-
- </li>
- </ul>
-
-
- </div>
- </div>
- </div>
- </div>
-
-
-</script>
diff --git a/ecomp-portal-FE/client/app/views/sidebar/sidebar.controller.js b/ecomp-portal-FE/client/app/views/sidebar/sidebar.controller.js
deleted file mode 100644
index 76d5301c..00000000
--- a/ecomp-portal-FE/client/app/views/sidebar/sidebar.controller.js
+++ /dev/null
@@ -1,143 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class SidebarCtrl {
- constructor(userProfileService, $log, $rootScope) {
- this.$log = $log;
- this.userProfileService = userProfileService;
- this.$rootScope = $rootScope;
- $rootScope.isAdminPortalAdmin = false;
-
- //if (bowser.msie || bowser.msedge)
- // $log.debug('SidebarCtrl::init: Browser is: Internet Explorer or Edge');
- // else
- // $log.debug('SidebarCtrl::init: Browser is: ' + bowser.name + ': ' + bowser.version);
-
- userProfileService.getUserProfile()
- .then(profile=> {
- // $log.debug('SidebarCtrl::getUserProfile: profile.roles.indexOf(superAdmin) = ' + profile.roles.indexOf('superAdmin'));
- // $log.debug('SidebarCtrl::getUserProfile: profile.roles.indexOf(admin) = ' + profile.roles.indexOf('admin'));
- if (profile.roles.indexOf('superAdmin') > -1) {
- $rootScope.isAdminPortalAdmin = true;
- // this.$log.debug('SidebarCtrl::getUserProfile: user has the superAdmin role');
- this.sidebarModel = {
- label: 'ECOMP portal',
- navItems: [
- {
- name: 'Home',
- state: 'root.applicationsHome',
- imageSrc : 'ion-home'
- }, {
- name: 'Application Catalog',
- state: 'root.appCatalog',
- imageSrc : 'ion-grid'
- }, {
- name: 'Widgets',
- state: 'root.widgetsHome',
- imageSrc : 'ion-android-apps'
- }, {
- name: 'Admins',
- state: 'root.admins',
- imageSrc : 'ion-android-star'
- }, {
- name: 'Users',
- state: 'root.users',
- imageSrc : 'ion-person'
- },{
- name: 'Portal Admins',
- state: 'root.portalAdmins',
- imageSrc : 'ion-gear-a'
- }, {
- name: 'Application Onboarding',
- state: 'root.applications',
- imageSrc : 'ion-ios-upload-outline'
- }, {
- name: 'Widget Onboarding',
- state: 'root.widgets',
- imageSrc : 'ion-ios-upload-outline'
- },{
- name: 'Edit Functional Menu',
- state: 'root.functionalMenu',
- imageSrc : 'ion-compose'
- }
- ]
- };
- }
- else if (profile.roles.indexOf('admin') > -1) {
- // this.$log.debug('SidebarCtrl::getUserProfile: user has the admin role');
- this.sidebarModel = {
- label: 'ECOMP portal',
- navItems: [
- {
- name: 'Home',
- state: 'root.applicationsHome',
- imageSrc : 'ion-home'
- }, {
- name: 'Application Catalog',
- state: 'root.appCatalog',
- imageSrc : 'ion-grid'
- }, {
- name: 'Widgets',
- state: 'root.widgetsHome',
- imageSrc : 'ion-grid'
- }, {
- name: 'Users',
- state: 'root.users',
- imageSrc : 'ion-person'
- }, {
- name: 'Widget Onboarding',
- state: 'root.widgets',
- imageSrc : 'ion-grid'
- }
- ]
- };
- }
- else {
- $rootScope.isAdminPortalAdmin = false;
- // this.$log.debug('SidebarCtrl::getUserProfile: user is not superAdmin nor admin');
- this.sidebarModel = {
- label: 'ECOMP portal',
- navItems: [
- {
- name: 'Home',
- state: 'root.applicationsHome',
- imageSrc : 'ion-home'
- }, {
- name: 'Application Catalog',
- state: 'root.appCatalog',
- imageSrc : 'ion-grid'
- }, {
- name: 'Widgets',
- state: 'root.widgetsHome',
- imageSrc : 'ion-grid'
- }
- ]
- };
- }
- }).catch(err=> {
- $log.error('SidebarCtrl: failed to get user profile: ' + err);
- });
-
- }
- }
- SidebarCtrl.$inject = ['userProfileService', '$log', '$rootScope'];
- angular.module('ecompApp').controller('SidebarCtrl', SidebarCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/sidebar/sidebar.less b/ecomp-portal-FE/client/app/views/sidebar/sidebar.less
deleted file mode 100644
index 97650fed..00000000
--- a/ecomp-portal-FE/client/app/views/sidebar/sidebar.less
+++ /dev/null
@@ -1,37 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-sidebar {
- position: relative;
- left: 0;
- right: 0;
- top: 5px;
- padding-left: 0;
-}
-
- @media screen and (-webkit-min-device-pixel-ratio:0)
-{
- .w-ecomp-sidebar {
- position: relative;
- left: 0;
- right: 0;
- top: -5px;
- padding-left: 0;
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/sidebar/sidebar.tpl.html b/ecomp-portal-FE/client/app/views/sidebar/sidebar.tpl.html
deleted file mode 100644
index a5cbf8ff..00000000
--- a/ecomp-portal-FE/client/app/views/sidebar/sidebar.tpl.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<left-menu id="sidebar.sidebarModel" sidebar-model="sidebar.sidebarModel" class="w-ecomp-sidebar"></left-menu>
diff --git a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.js b/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.js
deleted file mode 100644
index 368f2fe3..00000000
--- a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.js
+++ /dev/null
@@ -1,194 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-(function () {
- class ContactUsManageController {
- constructor($scope,$log, message, $q, $http, conf,contactUsService,confirmBoxService) {
- $scope.contactUsList=[];
- $scope.contactUsAllAppList=[];
- $scope.errMsg='';
- $scope.newContactUs ={
- app:'',
- name:'',
- email:'',
- url:'',
- desc:''
- };
- /*Get the existing contact us first, then based on the existing, filter from all apps*/
- $scope.getContactUsList = function(){
- contactUsService.getContactUs().then(res=> {
- // $log.info('getting getContactUs',res.response);
- if(res!=null && res.response!=null){
- for(var i=0; i<res.response.length;i++){
- if(res.response[i].appId!=1)
- $scope.contactUsList.push(res.response[i]);
- }
- }
- /*get all the apps*/
- contactUsService.getListOfApp().then(res=> {
- var tableData=[];
- $scope.contactUsAllAppListTemp=[];
- // $log.info('contactUsService::getListOfApp: getting res');
- var result = (typeof(res.data) != "undefined" && res.data!=null)?res.data:null;
- // $log.info('contactUsService::getListOfApp: result',result);
- var res1 = result;
- var realAppIndex = 0;
- $scope.contactUsAllAppList.length=0;
- for (var i = 1; i <= res1.length; i++) {
- if (!res1[i - 1].restrictedApp) {
- var okToAdd = true;
- for(var j =0; j<$scope.contactUsList.length;j++){
- if(res1[i - 1].title==$scope.contactUsList[j].appName)
- okToAdd=false;
- }
- // not allowed to add(duplicate) another entry if the app is already available in the table
- if(okToAdd){
- if(res1[i - 1].title){
- $scope.contactUsAllAppList.push({
- index: realAppIndex,
- title: res1[i - 1].title,
- value: res1[i - 1].index
- });
- }
- realAppIndex = realAppIndex + 1;
- }
- } else {
- // $log.debug('contactUsService:getAvailableApps:: Restricted/URL only App will not be used = ' + res1[i - 1].title);
- }
- }
- }).catch(err=> {
- $log.error('contactUsService:error:: ', err);
-
-
- }).finally(() => {
- //this.isLoadingTable = false;
- });
- });
- }
-
- $scope.getContactUsList();
-
- $scope.closeDialog = function(){
- $scope.closeThisDialog( $scope.widgetData);
- }
-
- /*Add new Contact Us*/
- $scope.newContactUsFun = function(){
- if($scope.newContactUs.app.title==null || $scope.newContactUs.app.title=='' ){
- confirmBoxService.showInformation('Please select an App to add').then(isConfirmed => {
- return;
- });
- }
-
- if($scope.newContactUs.url !=null && $scope.newContactUs.url != '' && !validateUrl($scope.newContactUs.url)){
- var warningMsg = "Please enter a valid URL";
- confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
- return;
- }
-
- contactUsService.addContactUs($scope.newContactUs).then(res=> {
- // $log.info('contactUsService: add ContactUs successfully');
- $scope.contactUsList.length=0;
- // $log.info('contactUsService: refreshing the Contact US table');
- $scope.getContactUsList();
- $scope.errMsg='';
- /* confirmBoxService.showInformation('You have added a new Contact Us item').then(isConfirmed => { });*/
- var defaultSel={
- index: 0,
- title: '',
- value: ''
- }
- $scope.newContactUs ={
- app:defaultSel,
- name:'',
- email:'',
- url:'',
- desc:''
- };
-
- }).catch(err=> {
- $log.error('contactUsService: addContactUs error:: ', err);
- // $scope.errMsg=err;
- confirmBoxService.showInformation('Add Contact Us list failed: ' + err);
-
- }).finally(() => {
- //this.isLoadingTable = false;
- });
- }
- /* Edit Contact Us*/
- $scope.editContactUsFun = function(contactObj){
- // $log.info('contactUsService: edit ContactUs save successfully', contactObj);
- var contactUsObj={
- appId:contactObj.appId,
- appName:contactObj.appName,
- description:contactObj.description,
- contactName:contactObj.contactName,
- contactEmail:contactObj.contactEmail,
- url:contactObj.url,
- };
-
- contactUsService.modifyContactUs(contactUsObj).then(res=> {
- // $log.info('contactUsService: edit ContactUs successfully');
- // confirmBoxService.showInformation('You have saved the changes').then(isConfirmed => {});
- $scope.errMsg='';
-
- }).catch(err=> {
- $log.error('contactUsService: editContactUs error:: ', err);
- confirmBoxService.showInformation('Edit Contact Us list failed: ' + err);
- // $scope.errMsg=err;
- }).finally(() => {
- //this.isLoadingTable = false;
- });
-
- }
- /*del Contact Us*/
- $scope.delContactUsFun = function(appObj){
- var confirmMsg = 'Are you sure you want to delete '+appObj.appName +' from the list?' + ' Press OK to delete.';
- confirmBoxService.confirm(confirmMsg).then(function (confirmed) {
- if (confirmed == true) {
- contactUsService.removeContactUs(appObj.appId).then(res=> {
- // $log.info('delContactUsFun: delete ContactUs successfully',res);
- $scope.errMsg='';
- $scope.contactUsList.length=0;
- $scope.getContactUsList();
- confirmBoxService.showInformation('Item has been deleted').then(isConfirmed => {});
- }).catch(err=> {
- $log.error('contactUsService: addContactUs error:: ', err);
- confirmBoxService.showInformation('Deletion failed: ' + err);
- // $scope.errMsg=err;
- }).finally(() => {
- //this.isLoadingTable = false;
- });
- }
- });
-
- }
-
- }
- }
- ContactUsManageController.$inject = ['$scope','$log', 'message', '$q', '$http', 'conf','contactUsService','confirmBoxService'];
- angular.module('ecompApp').controller('ContactUsManageController', ContactUsManageController);
-
-
-})();
-function validateUrl(value){
- return /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);
- }
diff --git a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.less b/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.less
deleted file mode 100644
index ef8c88df..00000000
--- a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.less
+++ /dev/null
@@ -1,159 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .searchLiHeader {
-font-weight: bold;
-color: #0574ac;
-font-size: 16px;
-padding-bottom: 10px;
-line-height: 1.5;
-font-family: arial;
-
-}
-
-.searchLiItems{
-cursor: pointer;
-font-weight: normal;
-font-size: 12px;
-color: #444444;
-font-family: arial;
-}
-
-.searchUl {
-list-style: none;
-border-bottom: 1px solid #bbb;
-padding-bottom: 20px;
-}
-
-.manage-contactUs-home-title{
- color: #067ab4;
- font-family: arial;
- font-size: 24px;
- margin-left: 78px;
- width: 1170px;
- }
-
-.manage-contactUs-home-manageWidgets-title{
- color: #067ab4;
- font-family: arial;
- font-size: 24px;
- margin-left: 30px;
- width: 1170px;
- }
-
-#editWidgetsContent {
- height: 300px;
- width: 1250px;
- }
-
-#editWidgetsContent .scroll-viewport {
- height: 300px;
- width: 1250px;
- }
-
- .add-contact-us-field{
- width:250px;
- display: inline-block;
- margin:10px;
- }
- .add-contact-us-field-des{
- width:800px;
- margin:10px;
- }
-
-.errMsg{
- color:red;
-}
-.sucessMsg{
- color:green;
-}
-.contact-us-margin{
- margin-left: 80px;
- margin-right: 120px;
-}
-.contact-us-manage-table {
-
-
- .delete-contact-us{
- font-size:20px;
- }
-
- .portal-add-button {
- width: 160px;
- }
-}
-
-.select2-container .select2-chosen, .select2-container .select2-container input{
- line-height:39px;
-}
-.select2-container .select2-choice{
- -webkit-transition: border-color .2s ease-out;
- -moz-transition: border-color .2s ease-out;
- transition: border-color .2s ease-out;
- background: #fff;
- border-radius: 6px;
- display: block;
- border: 1px solid #888;
- box-shadow: none;
- filter: none;
- height: 32px !important;
- padding: 0;
- position: relative;
- z-index: 5;
- cursor: pointer;
-}
-
-.c-ecomp-att-abs-table .contactUs{
-
- height:300px;
-
-}
-
-.ngdialog-overlay {
- pointer-events: none !important;
-}
-
-.input-text-area {
- font-style: italic;
- padding: 7px 10px;
- width: 250px;
- display: inline-block;
- position: relative;
- margin-bottom: 10px;
- border-radius: 6px;
- border: 1px solid #d8d8d8;
- height: 32px !important;
- border-color: slategrey !important;
-}
-.input-inline-edit-text {
- font-style: italic;
- padding: 7px 10px;
- display: inline-block;
- position: relative;
- margin-bottom: 10px;
- border-radius: 6px;
- border: 1px solid #d8d8d8;
- height: 32px;
- border-color: slategrey !important;
- width:100%;
- }
-.glyphicon {
- position: relative !important;
- line-height: 0 !important;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.html b/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.html
deleted file mode 100644
index 257226a0..00000000
--- a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us-manage/contact-us-manage.html
+++ /dev/null
@@ -1,136 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div style="margin-top: 10px; margin-bottom: 10px;">
-
-</div>
-<br/>
-
-<div style="margin-top: 25px;">
- <div id="title" class="manage-contactUs-home-title">Manage Contact Us</div>
- <div class="contact-us-margin">
- <div class="get-access-table">
- <div class="table-control">
- <div class="c-ecomp-att-abs-table" style="height:300px"">
- <table att-table id="table-main" table-data="contactUsList" current-page="ignoredCurrentPage">
- <thead att-table-row type="header">
- <tr>
- <th id="th-users-0" att-table-header key="ecomp_function" default-sort="a" >App Name</th>
- <th id="th-users-1" att-table-header key="app_name" sortable="true" >Contact Name</th>
- <th id="th-users-2" att-table-header key="app_name" sortable="true" >Contact Email</th>
- <th id="th-users-3" att-table-header key="role_name" sortable="true">Contact URL</th>
- <th id="th-users-4" att-table-header key="role_name" sortable="true" >Description</th>
- <th id="th-users-5" att-table-header key="role_name" sortable="true" >Edit</th>
- <th id="th-users-6" att-table-header key="role_name" sortable="true" >Delete</th>
- </tr>
- </thead>
- <!-- Use track-by="UNIQUE KEY HERE" or leave out if no unique keys in data -->
- <tbody att-table-row type="body" class="table-body" track-by="$index" row-repeat="rowData in contactUsList">
- <tr id="tr-rowData" ng-click="">
- <td att-table-body>
- <div id="users-page-td-appName" ng-bind="rowData.appName"></div>
- </td>
- <td att-table-body>
- <div id="users-page-td-name" ng-hide="rowData.showEdit" ng-bind="rowData.contactName"></div>
- <input class="input-inline-edit-text" type="text" ng-show="rowData.showEdit" ng-model="contactUsList[$index].contactName"/>
- </td>
- <td att-table-body>
- <div id="users-page-td-email" ng-hide="rowData.showEdit" ng-bind="rowData.contactEmail"></div>
- <input class="input-inline-edit-text" type="text" ng-show="rowData.showEdit" ng-model="contactUsList[$index].contactEmail"/>
- </td>
- <td att-table-body>
- <div id="users-page-td-url" ng-hide="rowData.showEdit" ng-bind="rowData.url"></div>
- <input class="input-inline-edit-text" type="text" ng-show="rowData.showEdit" ng-model="contactUsList[$index].url"/>
- </td>
- <td att-table-body>
- <div id="users-page-td-descr" ng-hide="rowData.showEdit" ng-bind=" rowData.description"></div>
- <input class="input-inline-edit-text" type="text" ng-show="rowData.showEdit" ng-model="contactUsList[$index].description"/>
- </td>
- <td att-table-body>
- <div class="delete-contact-us" ng-hide="rowData.showEdit" ng-click="rowData.showEdit=true">
- <span class="ion-edit"></span>
- </div>
- <span ng-show="rowData.showEdit" >
- <a att-button btn-type="primary" ng-click="editContactUsFun(rowData); rowData.showEdit=false" class="button button--primary" size="small" >Save</a>
- </span>
- </td>
- <td att-table-body>
- <div class="delete-contact-us" ng-click="delContactUsFun(rowData)">
- <span class="ion-trash-b"></span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div att-divider-lines></div>
- <div style="margin-top: 15px; margin-left: -78px;">
- <div id="addWidgetHeader" class="contact-us-margin">
- <h1 style="font-size:18px;">Add Application Contact Information</h1>
- <!-- <div class="errMsg">{{errMsg}}</div> -->
- </div>
- <div id="addWidget" class="contact-us-margin">
- <div>
- <div class="add-contact-us-field">
- <div id="mots-property-label" class="property-label">App Name</div>
- <div class="form-field" att-select="contactUsAllAppList" ng-model="newContactUs.app" placeholder="Select an App"></div>
- </div>
- <br>
- <div class="add-contact-us-field" >
- <div class="property-label">Contact Name</div>
- <input class="input-text-area" type="text" ng-model="newContactUs.name"/>
- </div>
- <div class="add-contact-us-field" >
- <div class="property-label">Contact Email</div>
- <input class="input-text-area" type="text" ng-model="newContactUs.email"/>
- </div>
- <div class="add-contact-us-field" >
- <div class="property-label">Contact URL</div>
- <input class="input-text-area" type="text" ng-model="newContactUs.url"/>
- </div>
- <div class="add-contact-us-field-des">
- <div class="property-label">Description</div>
- <textarea style="margin-top: 0px; margin-bottom: 0px; height: 100px" ng-model="newContactUs.desc"></textarea>
- </div>
- </div>
- <div style="height:50px;">
- <a style="float:right; margin-top:20px" att-button btn-type="primary" class="button button--primary" size="small" ng-click="newContactUsFun()">Add New</a>
- </div>
-
- <div att-divider-lines></div>
-
- <div style="height:50px;">
- <a style="float:right; margin-right: -162px;" att-button btn-type="primary" class="button button--primary" size="small" ng-click="closeDialog()">Close</a>
- </div>
-
- </div>
-
- </div>
-
- </div>
- </div>
- </div>
-</div>
-
- <script type="application/javascript">
- $(document).ready(function(){
- $(".ngdialog-content").css("width","85%")
- });
-</script> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.controller.js b/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.controller.js
deleted file mode 100644
index 63e38a48..00000000
--- a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.controller.js
+++ /dev/null
@@ -1,166 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-(function () {
-
- class ContactUsCtrl {
- constructor($log, contactUsService, applicationsService, $modal, ngDialog, $state) {
-
- contactUsService.getContactUSPortalDetails().then(res => {
- // $log.info('ContactUsCtrl:: contactUsService getContactUSPortalDetails res',res);
- // $log.info('getting res',res);
- var result = (typeof(res.response) != "undefined" && res.response!=null)?res.response:null;
- // $log.info('result',result);
- // $log.info('done');
- var source = JSON.parse(result);
- // $log.info(source);
- this.ush_TicketInfoUrl = source.ush_ticket_url;
- this.portalInfo_Address = source.feedback_email_address;
- this.feedback_Url = source.portal_info_url;
- }).catch(err=> {
- $log.error('ContactUsCtrl:error:: ', err);
- }).finally(() => {
- });
-
- let init = () => {
- // $log.info('ecomp app::contact-us-controller::initializing...');
- this.appTable=[];
- this.functionalTableData=[];
- };
- init();
-
- let updateContactUsTable = () => {
- contactUsService.getAppsAndContacts().then(res=> {
- // $log.info('ContactUsCtrl:: contactUsService getAppsAndContacts res',res);
- var tableData=[];
- // $log.info('getting res',res);
- var result = (typeof(res.response) != "undefined" && res.response!=null)?res.response:null;
- // $log.info('result',result);
- // $log.info('done');
- var source = result;
- // $log.info(source);
- // Drop Portal app, empty name entries
- for(var i=0;i<source.length; i++) {
- var dataArr = source[i];
- if ( !dataArr.appName || dataArr.appId == 1) {
- continue;
- }
- var dataTemp={
- app_name: dataArr.appName,
- contact_name: dataArr.contactName,
- contact_email: dataArr.contactEmail,
- desc: dataArr.description,
- url_Info: dataArr.url,
- app_Id: dataArr.appId,
- }
- tableData.push(dataTemp);
- }
- this.appTable=tableData;
- }).catch(err=> {
- $log.error('ContactUsCtrl.updateContactUsTable:error:: ', err);
- })
- };
-
- contactUsService.getAppCategoryFunctions().then(res=> {
- // $log.info('ContactUsCtrl:: contactUsService getAppCategoryFunctionsthen res',res);
- var tablefunctionalData=[];
- // $log.info('getting res',res);
- var result = (typeof(res.response) != "undefined" && res.response!=null)?res.response:null;
- // $log.info('result',result);
- // $log.info('done');
- var source = result;
- // $log.info(source);
- for(var i=0;i<source.length; i++) {
- var datafunctionalArr = source[i];
- var datafuntionalTemp={
- category: datafunctionalArr.category,
- app_Name: datafunctionalArr.application,
- functions: datafunctionalArr.functions,
- app_Id: datafunctionalArr.appId,
- }
- tablefunctionalData.push(datafuntionalTemp);
- }
- this.functionalTableData=tablefunctionalData;
- }).catch(err=> {
- $log.error('ContactUsCtrl:error:: ', err);
- })
-
- updateContactUsTable();
- this.editContactUsModalPopup = () => {
- // $log.debug('ContactUsCtrl::editContactUsModalPopup updating table data...');
- var modalInstance = ngDialog.open({
- templateUrl: 'app/views/support/contact-us/contact-us-manage/contact-us-manage.html',
- controller: 'ContactUsManageController',
- resolve: {
- message: function message() {
- var message = {
- type: 'Contact',
- };
- return message;
- }
- }
- }).closePromise.then(needUpdate => {
- updateContactUsTable();
- });
- };
-
- this.goToSection = (id) => {
- var targetDiv = document.getElementById(id);
- var offSetHeight = 0;
- for(var i=0;i<this.appTable.length;i++){
- if(this.appTable[i].app_Id==id)
- break;
- if(this.appTable[i].showFlag==true){
- offSetHeight+=document.getElementById('collapse'+i).clientHeight;
- }
- }
- this.appTable.forEach(d => d.showFlag = false);
- // let index = this.appTable.findIndex(a => a.app_Id == id);
- var index =-1;
- for(var i=0; i<this.appTable.length;i++){
- if(this.appTable[i].app_Id==id){
- index = i;
- break;
- }
- }
- console.log(index);
- if (index > -1) {
- // setting the showFlag to true based on index comparing with the app_Id
- this.appTable[index].showFlag = true;
- $('#contentId').animate({
- scrollTop: targetDiv.offsetTop-offSetHeight + 'px'
- }, 'fast');
- }
-
- };
-
- // Take the user to the application on the get access page.
- this.goGetAccess = (appName) => {
- // $log.debug('ContactUsCtrl::goGetAccess received name ' + appName);
- applicationsService.goGetAccessAppName = appName;
- $state.go('root.getAccess');
- };
-
- }
- }
- ContactUsCtrl.$inject = ['$log','contactUsService', 'applicationsService', '$modal', 'ngDialog', '$state'];
- angular.module('ecompApp').controller('ContactUsCtrl', ContactUsCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.controller.spec.js b/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.less b/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.less
deleted file mode 100644
index b0c0af4f..00000000
--- a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.less
+++ /dev/null
@@ -1,104 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-contactUs-home {
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- padding-left: @padding-left-side;
-
- .contactUs-home-container {
- .content_justify;
- position: relative;
- //padding-top: 15px;
- padding-right: 0;
- padding-left: 0;
- padding-bottom: 32px;
- width: 100%;
-
- .contactUs-home-title {
- .a24r;
- margin: auto;
- .content_justify;
- }
-
- .contactUs-general-div {
- margin: auto;
- padding-top: 15px;
- padding-bottom: 15px;
- .content_justify;
- }
- }
-
-.collapsibleArrow {
- width: 30px;
- height: 30px;
- margin-left: 10px;
- }
-
-.contactUs-collapsible-panel {
- margin: auto;
- width: 1170px;
-
- }
-
- .contactUs-collapsible-table {
- margin: auto;
- width: 1170px;
- }
-
- .contactUs-txt {
- font-weight: normal;
- color: #666666;
- font-size: 15px;
- font-family: arial;
- margin:10px;
- }
-
-.contactUs-panel-header {
- font-weight: normal;
- color: #666666;
- font-size: 18px;
- font-family: sans-serif;
- border-top: 1px solid #ccc;
- outline : none;
- height: 35px;
- width: 1050px;
- }
-
- .contactUs-panel-header:hover{
- color: #428bca;
- background: #eae8e8;
- cursor: pointer; cursor: hand;
- }
-
-.contactUs-panel-labels {
- font-weight: normal;
- color: #666666;
- font-size: 15px;
- font-family: sans-serif;
- padding-top: 5px;
- padding-bottom: 5px;
-}
-
-}
diff --git a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.tpl.html b/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.tpl.html
deleted file mode 100644
index 0b403ece..00000000
--- a/ecomp-portal-FE/client/app/views/support/contact-us/contact-us.tpl.html
+++ /dev/null
@@ -1,125 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-contactUs-home">
- <div class="contactUs-home-container">
- <div class="admins-page-main" id="contentId">
- <div id="title" class="contactUs-home-title">Contact Us
- <span ng-if="isAdminPortalAdmin == true" class="ion-edit" style="float: right;" ng-click="contact.editContactUsModalPopup()"></span>
- </div>
-
- <div class="contactUs-general-div">
- <span class="contactUs-txt">To give feedback or report an issue to the OpenECOMP Portal team, send email to <a
- ng-href="mailto:{{contact.portalInfo_Address}}" target="_top">{{contact.portalInfo_Address}}</a>.
- </div>
-
- <br/>
- <!-- Function Categories -->
- <div id="appFunctionInfo" style="font-size: 20px;" class="contactUs-home-title"> Application Functions
- <div class="contactUs-general-div">
- <div style="width: 1050px; height:auto;" class="c-ecomp-att-abs-table default">
- <table att-table id="table-main"
- table-data="contact.functionalTableData"
- current-page="ignoredCurrentPage">
- <thead att-table-row type="header">
- <tr>
- <th id="th-functionalItem-0" style="width:20%;cursor: default" att-table-header sortable="false">Category</th>
- <th id="th-functionalItem-1" style="width:60%;cursor: default" att-table-header sortable="false">ECOMP Functions</th>
- <th id="th-functionalItem-2" style="cursor: default" att-table-header sortable="false">ECOMP Application</th>
- <!-- <th id="th-functionalItem-3" att-table-header >Contact</th> -->
- </tr>
- </thead>
- <!-- Use track-by="UNIQUE KEY HERE" or leave out if no unique keys in data -->
- <tbody att-table-row
- type="body"
- class="table-body"
- track-by="$index"
- row-repeat="rowData in contact.functionalTableData">
- <tr id="tr-rowData" ng-click="">
- <td att-table-body>
- <div id="functional-item-td-category"
- ng-show="$index == 0 || contact.functionalTableData[$index-1].category != rowData.category"
- ng-bind="rowData.category">
- </div>
- </td>
- <td att-table-body>
- <div id="functional-item-td-functions" ng-bind="rowData.functions"></div>
- </td>
- <td att-table-body>
- <a ng-click="contact.goToSection(rowData.app_Id, $index);">{{rowData.app_Name}}</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <br/>
- <!-- Display applicationInfo panels -->
- <div id="allAppInfo">
- <div style="font-size: 20px;" class="contactUs-home-title"> All Applications
- </div>
- <div ng-repeat="rowData in contact.appTable"
- class="contactUs-collapsible-panel">
- <div id="{{rowData.app_Id}}" style="height:60px; " class="contactUs-panel-header" ng-click="rowData.showFlag = !rowData.showFlag" >
- <span ng-bind="rowData.app_name" style="position:relative; top:20px"></span>
-
- <span style="float: right; margin-right: 30px; margin-top:20px;">
- <span ng-hide="rowData.showFlag" class="ion-ios-arrow-down" alt="Expand app contact section"> </span>
- <span ng-show="rowData.showFlag" class="ion-ios-arrow-up" alt="App contact section"> </span>
- </span>
- </div>
-
- <div id="collapse{{$index}}" ng-show="rowData.showFlag"
- class="contactUs-collapsible-panel">
- <div class="contactUs-txt" ng-hide="rowData.contact_name || rowData.contact_email || rowData.url_Info || rowData.desc">
- <span style="margin-bottom: 20px;"> No application information is available. Please use the links above to contact the OpenECOMP Portal team. </span>
- </div>
- <div class="contactUs-txt" ng-show="rowData.contact_name || rowData.contact_email || rowData.url_Info || rowData.desc">
- <table style="border-spacing: 10px 5px; max-width:950px; margin:10px;">
- <tr>
- <td class="contactUs-panel-labels" style="width: 120px;">Contact:</td>
- <td class="contactUs-panel-labels" style="width: 830px;">{{rowData.contact_name}}</td>
- </tr>
- <tr>
- <td class="contactUs-panel-labels">Email:</td>
- <td class="contactUs-panel-labels"><a ng-href="mailto:{{rowData.contact_email}}" target="_top">{{rowData.contact_email}}</a></td>
- </tr>
- <tr>
- <td class="contactUs-panel-labels">Info URL:</td>
- <td class="contactUs-panel-labels"><a ng-href="{{rowData.url_Info}}" target="_blank">{{rowData.url_Info}}</a></td>
- </tr>
- <tr>
- <td class="contactUs-panel-labels">Description:</td>
- <td class="contactUs-panel-labels">{{rowData.desc}}</td>
- </tr>
- <tr>
- <td class="contactUs-panel-labels">Get access:</td>
- <td class="contactUs-panel-labels"><a href="" ng-click="contact.goGetAccess(rowData.app_name);">Click for application and role information</a></td>
- </tr>
- </table>
- </div>
- </div>
-
- </div>
- </div>
-
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.js b/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.js
deleted file mode 100644
index b9b254ac..00000000
--- a/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class GetAccessCtrl {
- constructor($log, $stateParams, getAccessService,applicationsService, ngDialog) {
- // $log.debug('GetAccessCtrl: appService param is: ' + applicationsService.goGetAccessAppName);
-
- this.updateAppsList = () => {
- getAccessService.getListOfApp().then(res=> {
- var tableData=[];
- // $log.info('GetAccessCtrl::updateAppsList: getting res');
- var result = (typeof(res.data) != "undefined" && res.data!=null)?res.data:null;
- // $log.info('GetAccessCtrl::updateAppsList: result',result);
- // $log.info('GetAccessCtrl::updateAppsList: done');
- var source = result;
- // $log.info('GetAccessCtrl::updateAppsList source: ', source);
- for(var i=0;i<source.length; i++){
- var dataArr = source[i];
- var dataTemp={
- ecomp_function: dataArr.ecompFunction,
- app_name:dataArr.appName,
- role_name:dataArr.roleName
- }
- tableData.push(dataTemp);
- }
- this.appTable=tableData;
-
- if( $stateParams.appName != null)
- this.searchString = $stateParams.appName;
- else
- this.searchString = applicationsService.goGetAccessAppName;
- // the parameter has been used; clear the value.
- applicationsService.goGetAccessAppName = '';
- }).catch(err=> {
- $log.error('GetAccessCtrl:error:: ', err);
- }).finally(() => {
- this.isLoadingTable = false;
- });
- };
- let init = () => {
- // $log.info('GetAccessCtrl:: initializing...');
- this.searchString = '';
- this.getAccessTableHeaders = ['ECOMP Function', 'Application Name', 'Role Name'];
- this.appTable=[];
- this.updateAppsList();
- };
- init();
- }
- }
- GetAccessCtrl.$inject = ['$log', '$stateParams', 'getAccessService', 'applicationsService', 'ngDialog'];
- angular.module('ecompApp').controller('GetAccessCtrl', GetAccessCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.spec.js b/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/support/get-access/get-access.less b/ecomp-portal-FE/client/app/views/support/get-access/get-access.less
deleted file mode 100644
index 20b406e9..00000000
--- a/ecomp-portal-FE/client/app/views/support/get-access/get-access.less
+++ /dev/null
@@ -1,67 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-get-access-home {
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- padding-left: @padding-left-side;
-
- .get-access-home-container {
- .content_justify;
- position: relative;
- padding-right: 0;
- padding-left: 0;
- padding-bottom: 32px;
- width: 100%;
-
- .get-access-home-title {
- .a24r;
- margin: auto;
- .content_justify;
- }
-
- .get-access-general-div {
- margin: auto;
- padding-top: 15px;
- padding-bottom: 15px;
- .content_justify;
- }
- }
-
- .get-access-table {
- width: @table-width;
- margin: @table-margin;
-
- .table-control {
- .table-dropdown-filter {
- width: @table-dropdown-filter-width;
- display: @table-dropdown-filter-display;
- }
- }
-
- .table-body {
- cursor: pointer;
- }
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/support/get-access/get-access.tpl.html b/ecomp-portal-FE/client/app/views/support/get-access/get-access.tpl.html
deleted file mode 100644
index 3ed92f14..00000000
--- a/ecomp-portal-FE/client/app/views/support/get-access/get-access.tpl.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-get-access-home">
- <div class="get-access-home-container">
- <div class="admins-page-main" id="contentId">
- <div id="title" class="get-access-home-title">Get Access</div>
- <div class="get-access-general-div">
- <span>
- Request access for following functions by sending email to the Application's Admin. For Admin contact details, please <a href='contactUs'>click here</a>.
- </span>
- </div>
- <div class="get-access-table">
- <div class="table-control">
- <input id="input-table-search"
- class="table-search"
- type="text"
- placeholder="Search"
- ng-model="access.searchString"/>
- <span class="ecomp-spinner" ng-show="access.isLoadingTable"></span>
- <div style="height: auto;" class="c-ecomp-att-abs-table default" ng-hide="access.isLoadingTable">
- <!-- expects data to arrive sorted by first column: ecomp_function -->
- <table att-table id="table-main"
- table-data="access.appTable"
- search-string="access.searchString"
- view-per-page="access.viewPerPageIgnored"
- current-page="access.currentPageIgnored"
- total-page="access.totalPageIgnored">
- <thead att-table-row type="header">
- <tr>
- <th id="th-access-0" att-table-header key="ecomp_function" sortable="false">{{access.getAccessTableHeaders[0]}}</th>
- <th id="th-access-1" att-table-header key="app_name" sortable="false">{{access.getAccessTableHeaders[1]}}</th>
- <th id="th-access-2" att-table-header key="role_name" sortable="false">{{access.getAccessTableHeaders[2]}}</th>
- </tr>
- </thead>
- <!-- Use track-by="UNIQUE KEY HERE" or leave out if no unique keys in data -->
- <tbody att-table-row type="body"
- class="table-body"
- track-by="$index"
- row-repeat="rowData in access.appTable">
- <tr id="tr-rowData" ng-click="">
- <td att-table-body>
- <div id="access-page-function"
- ng-show="$index == 0 || access.appTable[$index-1].ecomp_function != rowData.ecomp_function"
- ng-bind="rowData.ecomp_function">
- </div>
- </td>
- <td att-table-body>
- <div id="access-page-appName"
- ng-show="$index == 0 || access.appTable[$index-1].app_name != rowData.app_name"
- ng-bind="rowData.app_name"></div>
- </td>
- <td att-table-body>
- <div id="access-page-roleName" ng-bind="rowData.role_name"></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
-</div>
-</div>
-<style>
-.tablesorter-default{
- cursor: default;
-}
-.admins-page-main .admins-table .table-body {
- cursor: default;
-}
-</style>
diff --git a/ecomp-portal-FE/client/app/views/tabs/tabframe.html b/ecomp-portal-FE/client/app/views/tabs/tabframe.html
deleted file mode 100644
index bc428832..00000000
--- a/ecomp-portal-FE/client/app/views/tabs/tabframe.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<iframe id= "tabframe-{{tab.title.split(' ').join('-')}}" scrolling='yes' frameBorder='0' width='100%' style='height: 90vh;'
-src='{{tab.content | trusted}}'
-></iframe>
diff --git a/ecomp-portal-FE/client/app/views/tabs/tabs.controller.js b/ecomp-portal-FE/client/app/views/tabs/tabs.controller.js
deleted file mode 100644
index 0c970f0e..00000000
--- a/ecomp-portal-FE/client/app/views/tabs/tabs.controller.js
+++ /dev/null
@@ -1,231 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- const HTTP_PROTOCOL_RGX = /https?:\/\//;
- class TabsCtrl {
- constructor(applicationsService, $log, $window, conf, userProfileService, $scope,$cookies,$rootScope,confirmBoxService) {
-
- var counter = 1;
- var tabLimit = 6;
- this.conf = conf;
- var cookieDomain = this.conf.cookieDomain;
- $scope.tabs = [];
- $scope.notificationShow=true;
- $rootScope.showFooter = "";
- console.log("****************** get cookie domain from config json file " + this.conf.cookieDomain);
- $cookies.putObject('show_app_header', false,{domain: cookieDomain, path : '/'});
-
-
- let noRefresh = function () {
- window.onbeforeunload = function(e) {
-
- var isQtoHref = false;
- try{
- isQtoHref = e.srcElement.activeElement.href.includes("mailto");
- } catch(err) {
-
- }
-
- if ($scope.tabs.length > 1 && isQtoHref == false) {
- return "Changes you made may not be saved. Are you sure you want to refresh?";
- } else {
- return null;
- }
- }
- }
- var addTab = function (title, content) {
- if($scope.tabs.length==tabLimit){
- confirmBoxService.showInformation('You have reached your maximum limit of tabs allowed.').then(isConfirmed => {});
- } else {
- if(title!=='Home' && content.indexOf('https') == -1){
- console.log('App URL: '+content+'. The application URL you are trying to open is not HTTPS. We recommend to use secured HTTPS URL while on-boarding the application.');
- }
-
- $scope.tabs.push({ title: title, content: content });
- counter++;
- $scope.selectedIndex = $scope.tabs.length - 1;
- if ($scope.tabs.length > 1) {
- noRefresh();
- }
- $cookies.putObject('cookieTabs', $scope.tabs,{domain: cookieDomain, path : '/'});
- $cookies.putObject('visInVisCookieTabs', $scope.tabs,{domain: cookieDomain, path : '/'});
- }
- };
-
- var adjustTitle = function (title) {
- var index = 15;
- var nonEmptyCharPattern = /(\s|\w)/;
- var adjustedTitle = title.substring(0,index);
- var ext = title.charAt(index).replace(nonEmptyCharPattern,'...');
- return adjustedTitle.concat(ext);
-
-
- };
-
- var removeTab = function (event, index) {
- event.preventDefault();
- event.stopPropagation();
- $scope.tabs.splice(index, 1);
- $cookies.putObject('cookieTabs', $scope.tabs,{domain: cookieDomain, path : '/'});
- };
-
- var selectTab = function (title) {
- if(title=='Home') {
- $rootScope.ContentModel.IsVisible=true;
- $rootScope.showFooter = true;
- $rootScope.tabBottom = 75;
- }
- else {
- $rootScope.ContentModel.IsVisible=false;
- $rootScope.showFooter = false;
- $rootScope.tabBottom = 0;
- }
- };
-
- $scope.addTab = addTab;
- $scope.removeTab = removeTab;
- $scope.selectTab = selectTab;
- $scope.adjustTitle = adjustTitle;
-
-
- $rootScope.ContentModel = {
- IsVisible : false,
- ViewUrl : null,
- };
-
-
- var sessionActive = applicationsService.ping()
- .then(sessionActive => {
- $log.debug('TabsCtrl::addTab: applicationsService.ping() = ' + JSON.stringify(sessionActive));
-
- var cookieTabs = $cookies.getObject('cookieTabs');
- if(cookieTabs!=null){
- for(var t in cookieTabs){
- console.log('TabsCtrl::addTab: cookieTabs title: '+cookieTabs[t].title);
- if(cookieTabs[t].title!=null && cookieTabs[t].title==='Home'){
- cookieTabs[t].content = "";
- $rootScope.ContentModel.IsVisible=true;
- }
-
- addTab( cookieTabs[t].title, cookieTabs[t].content) ;
- }
- } else {
- for (var i = 0; i < 1; i++) {
- var content="";
- var title="";
- if(i==0){
- title="Home";
- $rootScope.ContentModel.IsVisible=true;
- }
- addTab(title, content);
- }
- }
-
- $scope.selectedIndex = 0;
- });
-
- $scope.$watchCollection(function() { return $cookies.getObject('addTab'); }, function(newValue) {
- var tabContent = $cookies.getObject('addTab');
- if(tabContent!=null && tabContent.url!=null){
- var tabExists = false;
- for(var x in $scope.tabs){
- console.log($scope.tabs[x].content);
- if($scope.tabs[x].title==tabContent.title){
- tabExists = true;
- $scope.selectedIndex = x;
- }
- }
- if(!tabExists){
- addTab( tabContent.title, tabContent.url) ;
- }
- $cookies.remove('addTab');
- }
- });
-
-
- }
-
-
- }
-
- TabsCtrl.$inject = ['applicationsService', '$log', '$window', 'conf','userProfileService', '$scope','$cookies','$rootScope','confirmBoxService'];
- angular.module('ecompApp').controller('TabsCtrl', TabsCtrl);
-
- angular.module('ecompApp').directive('mainArea', function() {
- return {
- restrict: "E",
- templateUrl: 'app/views/tabs/tabframe.html',
- link: function(scope, element) {
-
- }
- }
- });
-
-
-
- angular.module('ecompApp').directive('tabHighlight', [function () {
- return {
- restrict: 'A',
- link: function (scope, element) {
- var x, y, initial_background = '#c3d5e6';
-
- element
- .removeAttr('style')
- .mousemove(function (e) {
- if(!element.hasClass('md-active'))
- {
- x = e.pageX - this.offsetLeft;
- y = e.pageY - this.offsetTop;
-
- element
- .css({ background: '-moz-radial-gradient(circle at ' + x + 'px ' + y + 'px, rgba(255,255,255,0.4) 0px, rgba(255,255,255,0.0) 45px), ' + initial_background })
- .css({ background: '-webkit-radial-gradient(circle at ' + x + 'px ' + y + 'px, rgba(255,255,255,0.4) 0px, rgba(255,255,255,0.0) 45px), ' + initial_background })
- .css({ background: 'radial-gradient(circle at ' + x + 'px ' + y + 'px, rgba(255,255,255,0.4) 0px, rgba(255,255,255,0.0) 45px), ' + initial_background });
- }
- })
- .mouseout(function () {
- element.removeAttr('style');
- });
- }
- };
- }]);
-
-
-
-})();
-
-function getParameterByName(name, url) {
- if (!url) url = window.location.href;
- name = name.replace(/[\[\]]/g, "\\$&");
- var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
- results = regex.exec(url);
- if (!results) return '';
- if (!results[2]) return '';
- return (results[2].replace(/\+/g, " "));
-}
-
-function isCascadeFrame(ref) {
- if (self != top) {
- var e = document.body;
- e.parentNode.removeChild(e);
- window.location = "unKnownError";
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/tabs/tabs.controller.spec.js b/ecomp-portal-FE/client/app/views/tabs/tabs.controller.spec.js
deleted file mode 100644
index 44aea239..00000000
--- a/ecomp-portal-FE/client/app/views/tabs/tabs.controller.spec.js
+++ /dev/null
@@ -1,80 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-describe('Controller: TabsCtrl ',() => {
- beforeEach(module('ecompApp'));
-
- beforeEach(inject((_CacheFactory_)=>{
- _CacheFactory_.destroyAll();
- }));
-
- let TabsCtrl, $controller, $q, $rootScope, $log, $window, $cookies,$scope;
-
- beforeEach(inject((_$controller_, _$q_, _$rootScope_, _$log_, _$window_, _$cookies_)=>{
- [$controller, $q, $rootScope, $log, $window, $cookies] = [_$controller_, _$q_, _$rootScope_, _$log_, _$window_, _$cookies_];
- }));
-
- var deferredApps, deferredUserProfile;
- beforeEach(()=>{
- deferredApps = $q.defer();
- deferredUserProfile = $q.defer();
- let applicationsServiceMock = jasmine.createSpyObj('applicationsServiceMock', ['getUserApps']);
- applicationsServiceMock.getUserApps.and.returnValue(deferredApps.promise);
-
- let userProfileServiceMock = jasmine.createSpyObj('userProfileServiceMock',['getUserProfile']);
- userProfileServiceMock.getUserProfile.and.returnValue(deferredUserProfile.promise);
-
- $scope = $rootScope.$new();
- TabsCtrl = $controller('TabsCtrl', {
- applicationsService: applicationsServiceMock,
- $log: $log,
- $window: $window,
- userProfileService: userProfileServiceMock,
- $scope: $scope,
- $cookies: $cookies,
- $rootScope: $rootScope
- });
- });
-
- it('should populate this.apps with data from portals service getUserApps', ()=>{
- var profile = {roles:'superAdmin',userId:'userid'};
- deferredUserProfile.resolve(profile);
- deferredApps.resolve([{name: 'portal1'},{name: 'portal2'},{name: 'portal3'}]);
- $rootScope.$apply();
- expect($scope.appsViewData.length).toBe(3);
- });
-
- it('should call $log error when getAllPortals fail', ()=>{
- spyOn($log, 'error');
- deferredUserProfile.reject('something happened!');
- $rootScope.$apply();
- expect($log.error).toHaveBeenCalled();
- });
-
- it('should open link in a new window when clicking app thumbnail', () => {
- spyOn($window, 'open');
- let someUrl = 'http://some/url/';
- TabsCtrl.goToPortal(someUrl);
- expect($window.open).toHaveBeenCalledWith(someUrl, '_self');
- });
-
-
-});
diff --git a/ecomp-portal-FE/client/app/views/tabs/tabs.less b/ecomp-portal-FE/client/app/views/tabs/tabs.less
deleted file mode 100644
index 0247e3d0..00000000
--- a/ecomp-portal-FE/client/app/views/tabs/tabs.less
+++ /dev/null
@@ -1,658 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-tabs {
- .bg_s;
-
- position: fixed;
- left: 0;
- right: 0;
- bottom: @footer-height;
- overflow-y: hidden;
- top: @header-height;
- padding-left: 0;
-
- .go-button {
- .btn-green;
- width: 96px;
- position: absolute;
- border-radius: 0px;
- }
-
- .tabs-container {
- .content_justify;
- position: relative;
- padding: 15px 0 32px 0;
- width: 100%;
-
- .tabs-title {
- .a24r;
- margin: auto;
- .content_justify;
- }
- .portals-list {
- min-height: 70vh;
- justify-content: center;
- flex-flow: row wrap;
- width: 1170px;
-
- margin: auto;
- margin-bottom: 63px;
-
- .app-gridster-header {
- background-color: @u;
- }
-
- .app-gridster-footer {
- background-color: @u;
- }
-
- .portals-list-item {
- background-color: @u;
- border-radius: 2px;
- box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.1);
- display: inline-block;
- width: 360px;
- height: 300px;
- background-size: cover;
- cursor: pointer;
- margin: 15px;
- overflow: hidden;
-
- .portals-item-info {
- background-color: @u;
- height: 120px;
- top: 180px;
- position: relative;
- box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.1);
- padding: 16px;
-
- .info-title {
- .a24r;
- margin-bottom: 4px;
-
- text-overflow: ellipsis;
- overflow: hidden;
- }
- .info-description {
- .c16r;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .info-button {
- .btn-green;
- width: 96px;
- position: absolute;
- bottom: 16px;
- left: 16px;
- }
-
- &:hover {
- opacity: .93;
- z-index: 3;
- }
- }
- }
- }
- }
-}
-
-
-.build-number {
- .o12i;
-}
-
-@keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-
-
-.tab-container {
- background: #8dc8fb;
- margin: 0;
- padding: 0;
- max-height: 40px;
-}
-.tab-container ul.nav-tabs {
- margin: 0;
- list-style-type: none;
- line-height: 40px;
- max-height: 40px;
- overflow: hidden;
- display: inline-block;
- display: -webkit-flex;
- display: flex;
- padding-right: 20px;
- border-bottom: 5px solid #f7f7f7;
-}
-.tab-container ul.nav-tabs > li {
- margin: 5px -14px 0;
- -moz-border-radius-topleft: 28px 145px;
- -webkit-border-top-left-radius: 28px 145px;
- border-top-left-radius: 28px 145px;
- -moz-border-radius-topright: 28px 145px;
- -webkit-border-top-right-radius: 28px 145px;
- border-top-right-radius: 28px 145px;
- padding: 0 30px 0 25px;
- height: 170px;
- background: #c3d5e6;
- position: relative;
- -moz-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
- -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
- width: 200px;
- max-width: 200px;
- min-width: 20px;
- border: 1px solid #aaa;
-}
-.tab-container ul.nav-tabs > li:first-child {
- margin-left: 0;
-}
-.tab-container ul.nav-tabs > li:last-of-type {
- margin-right: 0;
-}
-.tab-container ul.nav-tabs > li > a {
- display: block;
- max-width: 100%;
- text-decoration: none;
- color: #222;
- padding: 3px 7px;
-}
-.tab-container ul.nav-tabs > li > a span {
- overflow: hidden;
- white-space: nowrap;
- display: block;
-}
-.tab-container ul.nav-tabs > li > a:focus, .tab-container ul.nav-tabs > li > a:hover {
- background-color: transparent;
- border-color: transparent;
-}
-.tab-container ul.nav-tabs > li > a .glyphicon-remove {
- color: #777;
- display: inline-block;
- padding: 3px;
- font-size: 10px;
- position: absolute;
- z-index: 10;
- top: 7px;
- right: -10px;
- -moz-border-radius: 50%;
- -webkit-border-radius: 50%;
- border-radius: 50%;
-}
-.tab-container ul.nav-tabs > li > a .glyphicon-remove:hover {
- background: #d39ea3;
- color: white;
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
-}
-.tab-container ul.nav-tabs > li.active {
- z-index: 4;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2Y3ZjdmNyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
- background-size: 100%;
- background-image: -webkit-gradient(linear, 50% 0%, 50% 30, color-stop(0%, #ffffff), color-stop(100%, #f7f7f7));
- background-image: -moz-linear-gradient(#ffffff, #f7f7f7 30px);
- background-image: -webkit-linear-gradient(#ffffff, #f7f7f7 30px);
- background-image: linear-gradient(#ffffff, #f7f7f7 30px);
-}
-.tab-container ul.nav-tabs > li.active > a {
- background-color: transparent;
- border-color: transparent;
- border-bottom-color: transparent;
-}
-.tab-container ul.nav-tabs > li.active > a:focus, .tab-container ul.nav-tabs > li.active > a:hover {
- background-color: transparent;
- border-color: transparent;
- border-bottom-color: transparent;
-}
-.tab-container ul.nav-tabs .btn {
- float: left;
- height: 20px;
- width: 35px;
- min-width: 35px;
- max-width: 35px;
- margin: 10px 0 0 0;
- border-color: #71a0c9;
- outline: none;
- -moz-transform: skew(30deg);
- -ms-transform: skew(30deg);
- -webkit-transform: skew(30deg);
- transform: skew(30deg);
-}
-.tab-container ul.nav-tabs .btn.btn-default {
- background: #c3d5e6;
-}
-.tab-container ul.nav-tabs .btn.btn-default:hover {
- background: #d2deeb;
-}
-.tab-container ul.nav-tabs .btn.btn-default:active {
- background: #9cb5cc;
-}
-.tab-container .tab-pane {
- padding: 0px 0px;
- text-align: center;
-}
-.tab-container .tab-pane.active {
- border-top: 1px solid #ddd;
-}
-
-.tab-container md-content {
- background-color: transparent !important; }
- .tab-container md-content md-tabs {
- border: 1px solid #e1e1e1; }
- .tab-container md-content md-tabs md-tab-content {
- background: #f6f6f6; }
- .tab-container md-content md-tabs md-tabs-canvas {
- background: white; }
- .tab-container md-content h1:first-child {
- margin-top: 0; }
-.tab-container md-input-container {
- padding-bottom: 0; }
-.tab-container .remove-tab {
- margin-bottom: 40px; }
-.tab-container .demo-tab > div > div {
- padding: 25px;
- box-sizing: border-box; }
-.tab-container .edit-form input {
- width: 100%; }
-.tab-container md-tabs {
- border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
-.tab-container md-tab[disabled] {
- opacity: 0.5; }
-.tab-container label {
- text-align: left; }
-.tab-container .long > input {
- width: 264px; }
-.tab-container .md-button.add-tab {
- transform: translateY(5px); }
-
-.md-tab{
- font-size: 13px;
- line-height: 30px;
- margin: 5px -3px 0;
- border-top-left-radius: 88px 205px;
- border-top-right-radius: 88px 205px;
- padding: 0 30px 0 25px;
- height: 40px;
- background: #c3d5e6;
- position: relative;
- box-shadow: 0 4px 6px rgba(0,0,0,.5);
- width: 180px;
- max-width: 200px;
- min-width: 20px;
- border: 1px solid #aaa;
- text-transform: capitalize;
- text-align: left;
-}
-
-md-tabs .md-tab {
- color: #222;
-}
-
-md-tabs-canvas {
- border-bottom: 5px solid #f7f7f7;
- height: 40px;
-}
-.md-tab.md-active {
- z-index: 4;
- background-color: #f5f5f5 !important;
-}
-.md-tab:first-child{
- margin-left: 10px;
-}
-md-ink-bar{
- z-index: 5 !important;
-}
-
-.glyphicon {
- position: fixed;
- line-height: 4;
-}
-.close_button {
- font-size: x-small;width: 10px;margin-left: 130px;
-}
-@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
- .close_button {
- font-size: x-small;width: 10px;margin-left: 130px;margin-top: 55px;
- }
-}
-
-*,
-*:after,
-*:before
-{
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-
-
-.button-default
-{
- .transition(@transitionDefault color);
- background: transparent;
- border: none;
- cursor: pointer;
- margin: 0;
- outline: none;
- position: relative;
-}
-
-.show-notifications
-{
- position: relative;
-
- &:hover,
- &:focus,
- &.active
- {
- #icon-bell
- {
- fill: @colorWetAsphalt;
- }
- }
-
- #icon-bell
- {
- fill: @colorAsbestos;
- }
-
-
-
- &.active ~ .notifications
- {
- opacity: 1;
- top: 35px;
- }
-}
-.notifications_li{
- border-top: 1px solid #bdc3c7;
- color: #7f8c8d;
- cursor: default;
- display: block;
- padding: 10px;
- position: relative;
- white-space: nowrap;
- width: 350px;
-}
-.notifications_li:hover{
- background:#eee;
-}
-.notifications_detail{
- margin-left: 10px;
- white-space: normal;
- width: 280px;
- display: inline-block;
- vertical-align: middle;
-}
-
-.notifications_empty{
- display: none;
- text-align: center;
-}
-.notifications_title{
- display: block;
-}
-
-.notifications_date{
- color: #95a5a6;
- font-size: .85em;
- margin-top: 3px;
-}
-.notifications
-{
- .border-radius(@borderRadius);
- .transition(@transitionDefault opacity);
- background: @colorClouds;
- border: 1px solid @colorSilver;
- left: 10px;
- opacity: 0;
-
- &:after
- {
- border: 10px solid transparent;
- border-bottom-color: @colorPeterRiver;
- content: '';
- display: block;
- height: 0;
- left: 10px;
- position: absolute;
- top: -20px;
- width: 0;
- }
-
- h3,
- .show-all
- {
- background: @colorPeterRiver;
- color: @colorWhite;
- margin: 0;
- padding: 10px;
- width: 350px;
- }
-
- h3
- {
- cursor: default;
- font-size: 1.05em;
- font-weight: normal;
- }
-
- .show-all
- {
- display: block;
- text-align: center;
- text-decoration: none;
-
- &:hover,
- &:focus
- {
- text-decoration: underline;
- }
- }
-
- .notifications-list
- {
- list-style: none;
- margin: 0;
- overflow: hidden;
- padding: 0;
-
- .item
- {
- .transition-transform(@transitionDefault);
- border-top: 1px solid @colorSilver;
- color: @colorAsbestos;
- cursor: default;
- display: block;
- padding: 10px;
- position: relative;
- white-space: nowrap;
- width: 350px;
-
- &:before,
- .details,
- .button-dismiss
- {
- display: inline-block;
- vertical-align: middle;
- }
-
- &:before
- {
- .border-radius(50%);
- background: @colorPeterRiver;
- content: '';
- height: 8px;
- width: 8px;
- }
-
- .details
- {
- margin-left: 10px;
- white-space: normal;
- width: 280px;
-
- .title,
- .date
- {
- display: block;
- }
-
- .date
- {
- color: @colorConcrete;
- font-size: .85em;
- margin-top: 3px;
- }
- }
-
- .button-dismiss
- {
- color: @colorSilver;
- font-size: 2.25em;
-
- &:hover,
- &:focus
- {
- color: @colorConcrete;
- }
- }
-
- &.no-data
- {
- display: none;
- text-align: center;
-
- &:before
- {
- display: none;
- }
- }
-
- &.expired
- {
- color: @colorSilver;
-
- &:before
- {
- background: @colorSilver;
- }
-
- .details
- {
- .date
- {
- color: @colorSilver;
- }
- }
- }
-
- &.dismissed
- {
- .transform(translateX(100%));
- }
- }
- }
-
- &.empty
- {
- .notifications-list
- {
- .no-data
- {
- display: block;
- padding: 10px;
- }
- }
- }
-}
-
-/* variables */
-@colorClouds: #ecf0f1;
-@colorSilver: #bdc3c7;
-@colorWhite: #fefefe;
-@colorPeterRiver: #3498db;
-@colorConcrete: #95a5a6;
-@colorAsbestos: #7f8c8d;
-@colorWetAsphalt: #34495e;
-
-@borderRadius: 2px;
-
-@transitionDefault: 0.25s ease-out 0.10s;
-
-/* mixins */
-.background-clip(@value: border-box)
-{
- -moz-background-clip: @value;
- -webkit-background-clip: @value;
- background-clip: @value;
-}
-
-.border-radius(@value: 5px)
-{
- -moz-border-radius: @value;
- -webkit-border-radius: @value;
- border-radius: @value;
- .background-clip(padding-box);
-}
-
-.transform(@value)
-{
- -webkit-transform: @value;
- -moz-transform: @value;
- -ms-transform: @value;
- -o-transform: @value;
- transform: @value;
-}
-
-.transition(@value: all 0.25s ease-out)
-{
- -webkit-transition: @value;
- -moz-transition: @value;
- -o-transition: @value;
- transition: @value;
-}
-
-.transition-transform(@transition: 0.25s ease-out)
-{
- -webkit-transition: -webkit-transform @transition;
- -moz-transition: -moz-transform @transition;
- -o-transition: -o-transform @transition;
- transition: transform @transition;
-}
-
-.tab-cross-sign{
- position:relative;
- margin-left:130px;
- font-size:9px;
- top:-30px;
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
- top:-70px;
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/tabs/tabs.tpl.html b/ecomp-portal-FE/client/app/views/tabs/tabs.tpl.html
deleted file mode 100644
index 62af73e9..00000000
--- a/ecomp-portal-FE/client/app/views/tabs/tabs.tpl.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-tabs" ng-cloak ng-style="{bottom: tabBottom}">
- <div class="tab-container">
- <md-tabs md-selected="selectedIndex" md-dynamic-height="true" md-autoselect="true">
- <md-tab ng-repeat="tab in tabs" md-on-select="selectTab(tab.title)">
- <md-tab-label>
- <span style="overflow: hidden;white-space: nowrap;display: block;"
- id="tab-{{tab.title.split(' ').join('-')}}">
- <i tooltip="{{tab.title}}" tooltip-aria-label="Tooltip with HTML Content"
- tooltip-style="light" tooltip-placement="right" tooltip-trigger="mouseover">{{adjustTitle(tab.title)}}</i>
- </span>
- <span class="tab-cross-sign">
- <i class="ion-close-round" ng-click="removeTab($event, $index)" ng-show="'{{tab.title}}'!='Home'"></i>
- </span>
- </md-tab-label>
- <md-tab-body>
- <main-area id="tab-home" ng-show="'{{tab.title}}'!='Home'"></main-area>
- </md-tab-body>
- </md-tab>
- </md-tabs>
- </div>
- <div style=" position: fixed; right: 290px; top: 62px;">
-
- </div>
- <div ng-controller="searchCtrl" style=" position: fixed; right: 0; top: 58px;">
- <search-box id="mainSearchDiv" />
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/userbar/userbar.controller.js b/ecomp-portal-FE/client/app/views/userbar/userbar.controller.js
deleted file mode 100644
index 5dae2f86..00000000
--- a/ecomp-portal-FE/client/app/views/userbar/userbar.controller.js
+++ /dev/null
@@ -1,262 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-
-(function () {
-
- class UserbarCtrl {
- constructor(userProfileService,userbarUpdateService, $log, $rootScope , $interval,$scope,$timeout,dashboardService) {
- this.$log = $log;
- this.userProfileService = userProfileService;
- this.$rootScope = $rootScope;
- $rootScope.isAdminPortalAdmin = false;
- $scope.updateRate = 10000; //default online user bar refreshing rate
- var intervalPromise = null;
- $scope.myservice = userbarUpdateService;
- $scope.userList=this.userLists;
- var websocket = '';
- var currentUser = '';
- var remoteUser = '';
- var f = '';
-
-
- function socketSetup(initialPageVisit,_currentUser, _remoteUser, _f) {
-
-
-
- if( true) {
-
- var href = window.location.href;
- var hostPatt = new RegExp(window.location.host +"/[^/]*");
- var res = hostPatt.exec(href);
- var protocol = window.location.protocol.replace("http","ws");
- var signalingServerPath = protocol + "//" + res + "/opencontact";
- var wsUri = signalingServerPath;
- console.log("Connecting to " + wsUri);
- websocket = new WebSocket(wsUri);
- //localStorage.notifySocket = JSON.stringify(websocket);
- //window.top.notifySocket = websocket;
-
- currentUser = _currentUser;
- remoteUser = _remoteUser;
- f = socketSend;
-
-
- }
-
- //var websocket = JSON.parse(localStorage.notifySocket || "{}") ;
- if( websocket != null) {
- websocket.onopen = function(evt) { onOpen(evt); };
- websocket.onmessage = function(evt) { onMessage(evt); };
- websocket.onerror = function(evt) { onError(evt); };
-
- }
-
- //if(f != undefined)
- // f();
-
- //window.top.notifySocket.send("");
- }
-
- function socketSend(currentUser, remoteUser) {
-
-
-
- websocket.send(JSON.stringify({
- from: currentUser,
- to: remoteUser
- }));
-
- //window.top.notifySocket.send("");
- }
-
-
-
-
- function onOpen(evt) {
- console.log("onOpen");
- //writeToScreen("CONNECTED");
-
- if(f != undefined)
- f(currentUser, remoteUser);
-
- }
-
- function onMessage(evt) {
- if (typeof evt.data == "string") {
- writeToScreen("RECEIVED (text): " + evt.data);
- var chatObject = JSON.parse(evt.data);
- if(confirm("User " + chatObject.from + " is requesting a chat session with you. Please click ok to accept")== true) {
-
- var url = userProfileService.getSortedUserIdCombination(chatObject.from, chatObject.to);
- var win = window.open(url, '_blank');
- win.focus();
- } else {
- //
- }
-
-
- } else {
- writeToScreen("RECEIVED (binary): " + evt.data);
- }
- }
-
- function onError(evt) {
- writeToScreen('<span style="color: red;">ERROR:</span> ' + evt.data);
- }
-
- function writeToScreen(message) {
- console.log(message);
- }
-
- function callAtInterval() {
- userProfileService.getActiveUser()
- .then(res=> {
- $log.info('sasasasasa getting userinfo from shared context.. ');
- if(res==null){
- $log.info('failed getting userinfo from shared context.. ');
- $log.info('getting userinfo from session ');
- }else{
- $log.info('getting ActiveUser successfully',res);
- $scope.userList = [];
- for(var i=0;i<res.length;i++){
- var data= {
- userId:res[i][0],
- linkQ:userProfileService.getSortedUserIdCombination(userProfileService.userProfile.userId , res[i][0])
- }
- $scope.userList.push(data);
- }
- $log.info(' ActiveUser =',$scope.userList);
- }
- }).catch(err=> {
- $log.error('Header Controller:: getActiveUser() failed: ' + err);
- }).finally(() => {
- var footerOff = $('#online-userbar').offset().top;
- var headOff = $('#footer').offset().top;
- var userbarHeight= parseInt($(".online-user-container").css('height'),10);
- var defaultOffSet = 45;
- $(".online-user-container").css({
- "height" : headOff - footerOff-defaultOffSet
- });
- });
- }
-
-
- var intervalPromise;
- dashboardService.getOnlineUserUpdateRate().then(res=> {
- // $log.info('getting Online User Update Rate init***********************', res);
- if (res == null || res.response == null) {
- $log.error('UserbarCtlr: failed to get online user update rate!');
- } else {
- // $log.debug('UserbarCtlr: got online User Update Rate ' + res.response);
- var rate = parseInt(res.response.onlineUserUpdateRate);
- // var updateRate = parseInt(res.response.onlineUserUpdateRate);
- var duration = parseInt(res.response.onlineUserUpdateDuration);
- userbarUpdateService.setMaxRefreshCount(parseInt(duration/rate)+1);
- userbarUpdateService.setRefreshCount(userbarUpdateService.maxCount);
- // $scope.refreshCount = userbarUpdateService.getRefreshCount();
-
- if (rate != NaN && duration != NaN) {
- // $log.debug('UserbarCtlr: scheduling function at interval ' + millis);
- $scope.updateRate=rate;
- $scope.start($scope.updateRate);
- }
- }
- }).catch(err=> {
- $log.error('Header Controller:: getOnlineUserUpdateRate() failed: ' + err);
- });
-
- $scope.start = function(rate) {
- // stops any running interval to avoid two intervals running at the same time
- $scope.stop();
- // store the interval promise
- intervalPromise = $interval(updateActiveUsers, rate);
- };
-
- $scope.stop = function() {
- $interval.cancel(intervalPromise);
- };
-
- $scope.$watch('myservice.getRefreshCount()', function (newVal,oldVal) {
- //$log.info("refresh "+$scope.myservice.refreshCount + " more time(s)");
- if (newVal<=0) {
- // $log.info("UserbarCtrl: stopped refreshing online users");
- $scope.stop();
- } else if (newVal== $scope.myservice.maxCount){
- // $log.info("UserbarCtrl: start refreshing online users at every "+($scope.updateRate/1000)+" sec");
- // initial update of activate users
- userProfileService.getUserProfile().then(res=> {
- if (res == null || res.orgUserId == null) {
- $log.error('UserbarCtlr: failed to get profile of the user!');
- }
- else {
- updateActiveUsers();
- $scope.start($scope.updateRate);
- socketSetup(null, res.orgUserId, null, "socketSend");
- }
- });
-
-
- }
- });
- function updateActiveUsers() {
- userProfileService.getActiveUser()
- .then(res=> {
- $log.info('getting Active User init***********************');
- // decrement the counter every time updateActiveUser is called;
- userbarUpdateService.decrementRefreshCount();
-
- if(res==null ||res.status!='OK'){
- $log.error('failed updateActiveUsers res is null.. ');
-
- }else{
- $log.info('getting ActiveUser successfully',res);
- $scope.userList = [];
- var maxItems = 10;
- var users = res.response;
- if (users.length < maxItems)
- maxItems = users.length;
- for(var i=0;i<maxItems;i++){
- var data= {
- userId:users[i][0],
- linkQ:userProfileService.getSortedUserIdCombination(userProfileService.userProfile.orgUserId , users[i][0])
- }
- $scope.userList.push(data);
- }
-
- $log.info(' ActiveUser =',$scope.userList);
- }
- }).catch(err=> {
- $log.error('Header Controller:: getActiveUser() failed: ' + err);
- }).finally(() => {
- var footerOff = $('#online-userbar').offset().top;
- var headOff = $('#footer').offset().top;
- var userbarHeight= parseInt($(".online-user-container").css('height'),10);
- var defaultOffSet = 45;
- $(".online-user-container").css({
- "height" : headOff - footerOff-defaultOffSet
- });
- });
- }
- }
- }
- UserbarCtrl.$inject = ['userProfileService', 'userbarUpdateService', '$log', '$rootScope','$interval','$scope','$timeout','dashboardService'];
- angular.module('ecompApp').controller('UserbarCtrl', UserbarCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/userbar/userbar.less b/ecomp-portal-FE/client/app/views/userbar/userbar.less
deleted file mode 100644
index 489185f7..00000000
--- a/ecomp-portal-FE/client/app/views/userbar/userbar.less
+++ /dev/null
@@ -1,41 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-sidebar {
-
- position: relative;
- left: 0;
- right: 0;
- top: 5px;
- padding-left: 0;
-
- }
-
- @media screen and (-webkit-min-device-pixel-ratio:0)
-{
- .w-ecomp-sidebar {
-
- position: relative;
- left: 0;
- right: 0;
- top: -5px;
- padding-left: 0;
-
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/userbar/userbar.tpl.html b/ecomp-portal-FE/client/app/views/userbar/userbar.tpl.html
deleted file mode 100644
index dab62910..00000000
--- a/ecomp-portal-FE/client/app/views/userbar/userbar.tpl.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<right-menu id="userbar.userList" user-list="userList" class="w-ecomp-sidebar"></right-menu>
diff --git a/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.controller.js b/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.controller.js
deleted file mode 100644
index 182ffe8f..00000000
--- a/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.controller.js
+++ /dev/null
@@ -1,211 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-(function () {
- class NewUserModalCtrl {
- constructor($scope, $log, usersService, applicationsService, confirmBoxService) {
- let init = () => {
- $log.info('NewUserModalCtrl::init');
- this.isSaving = false;
- this.anyChanges = false;
- this.isGettingAdminApps = false;
- if($scope.ngDialogData && $scope.ngDialogData.selectedUser && $scope.ngDialogData.dialogState){
- this.selectedUser = $scope.ngDialogData.selectedUser;
- this.dialogState = $scope.ngDialogData.dialogState;
- this.isShowBack = false;
- if(this.dialogState === 3){
- this.getUserAppsRoles();
- }
- }else{
- this.isShowBack = true;
- this.selectedUser = null;
- this.dialogState = 1;
- }
- };
-
- this.appChanged = (index) => {
- let myApp = this.adminApps[index];
- $log.debug('NewUserModalCtrl::appChanged: index: ', index, '; app id: ', myApp.id, 'app name: ',myApp.name);
- myApp.isChanged = true;
- this.anyChanges = true;
- }
-
- this.deleteApp = (app) => {
- let appMessage = this.selectedUser.firstName + ' ' + this.selectedUser.lastName;
- confirmBoxService.deleteItem(appMessage).then(isConfirmed => {
- if(isConfirmed){
- app.isChanged = true;
- this.anyChanges = true;
- app.isDeleted = true;
- app.appRoles.forEach(function(role){
- role.isApplied = false;
- });
- }
- }).catch(err => {
- $log.error('NewUserModalCtrl::deleteApp error: ',err);
- });
- };
-
- this.getUserAppsRoles = () => {
- if (!this.selectedUser || !this.selectedUser.orgUserId) {
- $log.error('NewUserModalCtrl::getUserAppsRoles error: No user is selected');
- this.dialogState = 1;
- return;
- }
- $log.debug('NewUserModalCtrl::getUserAppsRoles: about to call getAdminAppsSimpler');
- this.isGettingAdminApps = true;
- applicationsService.getAdminAppsSimpler().then((apps) => {
- $log.debug('NewUserModalCtrl::getUserAppsRoles: beginning of then for getAdminAppsSimpler');
- this.isGettingAdminApps = false;
- if (!apps || !apps.length) {
- $log.error('NewUserModalCtrl::getUserAppsRoles error: no apps found');
- return null;
- }
- $log.debug('NewUserModalCtrl::getUserAppsRoles: then for getAdminAppsSimpler: step 2');
- $log.debug('NewUserModalCtrl::getUserAppsRoles: admin apps: ', apps);
- this.adminApps = apps;
- this.dialogState = 3;
- this.userAppRoles = {};
- this.numberAppsProcessed = 0;
- this.isLoading = true;
- apps.forEach(app => {
- $log.debug('NewUserModalCtrl::getUserAppsRoles: app: id: ', app.id, 'name: ',app.name);
- app.isChanged = false;
- app.isLoading = true;
- app.isError = false;
- app.isDeleted = false;
- app.printNoChanges = false;
- app.isUpdating = false;
- app.isErrorUpdating = false;
- app.isDoneUpdating = false;
- app.errorMessage = "";
- usersService.getUserAppRoles(app.id, this.selectedUser.orgUserId).then((userAppRolesResult) => {
- $log.debug('NewUserModalCtrl::getUserAppsRoles: got a result for app: ',app.id,': ',app.name,': ',userAppRolesResult);
- app.appRoles = userAppRolesResult;
- app.isLoading = false;
-
- }).catch(err => {
- $log.error(err);
- app.isError = true;
- app.isLoading = false;
- app.errorMessage = err.headers('FEErrorString');
- $log.debug('NewUserModalCtrl::getUserAppsRoles: in new-user.controller: response header: '+err.headers('FEErrorString'));
- }).finally(()=>{
- this.numberAppsProcessed++;
- if (this.numberAppsProcessed == this.adminApps.length) {
- this.isLoading = false;
- }
- });
- })
- return;
- }).catch(err => {
- $log.error(err);
- })
-
- }
-
- this.getAdminApps = () => {
- if (!this.selectedUser || !this.selectedUserorgUserId) {
- $log.error('NewUserModalCtrl::getAdminApps: No user is selected');
- this.dialogState = 1;
- return;
- }
- applicationsService.getAdminApps().promise().then(apps => {
- if (!apps || !apps.length) {
- $log.error('NewUserModalCtrl::getAdminApps: no apps found');
- return null;
- }
- $log.debug('NewUserModalCtrl::getAdminApps: admin apps: ', apps);
- this.adminApps = apps;
- this.dialogState = 3;
- return;
- }).catch(err => {
- $log.error('NewUserModalCtrl::getAdminApps: ', err);
- })
-
- }
-
- this.updateUserAppsRoles = () => {
- $log.debug('NewUserModalCtrl::updateUserAppsRoles: entering updateUserAppsRoles');
- if(!this.selectedUser || !this.selectedUser.orgUserId || !this.adminApps){
- $log.debug('NewUserModalCtrl::updateUserAppsRoles: returning early');
- return;
- }
- this.isSaving = true;
- $log.debug('NewUserModalCtrl::updateUserAppsRoles: going to update user: ' + this.selectedUser.orgUserId);
- this.numberAppsProcessed = 0;
- this.numberAppsSucceeded = 0;
- this.adminApps.forEach(app => {
- if (app.isChanged) {
- $log.debug('NewUserModalCtrl::updateUserAppsRoles: app roles have changed; going to update: id: ', app.id, '; name: ', app.name);
- app.isUpdating = true;
- usersService.updateUserAppRoles({orgUserId: this.selectedUser.orgUserId, appId: app.id, appRoles: app.appRoles})
- .then(res => {
- $log.debug('NewUserModalCtrl::updateUserAppsRoles: User app roles updated successfully on app: ',app.id);
- app.isUpdating = false;
- app.isDoneUpdating = true;
- this.numberAppsSucceeded++;
- }).catch(err => {
- $log.error(err);
- app.isErrorUpdating = true;
- }).finally(()=>{
- this.numberAppsProcessed++;
- if (this.numberAppsProcessed == this.adminApps.length) {
- this.isSaving = false;
- }
- if (this.numberAppsSucceeded == this.adminApps.length) {
- $scope.closeThisDialog(true);
- }
- })
- } else {
- $log.debug('NewUserModalCtrl::updateUserAppsRoles: app roles have NOT changed; NOT going to update: id: ', app.id, '; name: ', app.name);
- app.noChanges = true;
- app.isError = false;
- this.numberAppsProcessed++;
- this.numberAppsSucceeded++;
- if (this.numberAppsProcessed == this.adminApps.length) {
- this.isSaving = false;
- }
- if (this.numberAppsSucceeded == this.adminApps.length) {
- $scope.closeThisDialog(true);
- }
- }
- });
- };
-
- this.navigateBack = () => {
- if (this.dialogState === 1) {
- }
- if (this.dialogState === 3) {
- this.dialogState = 1;
- }
- };
-
- init();
-
- $scope.$on('$stateChangeStart', e => {
- e.preventDefault();
- });
- }
- }
- NewUserModalCtrl.$inject = ['$scope', '$log', 'usersService', 'applicationsService', 'confirmBoxService'];
- angular.module('ecompApp').controller('NewUserModalCtrl', NewUserModalCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.controller.spec.js b/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.controller.spec.js
deleted file mode 100644
index 54c564b7..00000000
--- a/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.controller.spec.js
+++ /dev/null
@@ -1,222 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-
-describe('Controller: NewUserModalCtrl ', () => {
- beforeEach(module('testUtils'));
- beforeEach(module('ecompApp'));
-
- let promisesTestUtils;
- beforeEach(inject((_CacheFactory_, _promisesTestUtils_)=> {
- _CacheFactory_.destroyAll();
- promisesTestUtils = _promisesTestUtils_;
- }));
-
- let newUser, $controller, $q, $rootScope, $log, $scope;
-
- let applicationsServiceMock, usersServiceMock, confirmBoxServiceMock;
- let deferredAdminApps, deferredUsersAccounts, deferredUsersAppRoles, deferredUsersAppRoleUpdate;
-
- beforeEach(inject((_$controller_, _$q_, _$rootScope_, _$log_)=> {
- $rootScope = _$rootScope_;
- $q = _$q_;
- $controller = _$controller_;
- $log = _$log_;
- }));
-
- beforeEach(()=> {
- [deferredAdminApps, deferredUsersAccounts, deferredUsersAppRoles, deferredUsersAppRoleUpdate] = [$q.defer(),$q.defer(), $q.defer(), $q.defer()];
-
- /*applicationsServiceMock = {
- getAdminApps: () => {
- var promise = () => {return deferredAdminApps.promise};
- var cancel = jasmine.createSpy();
- return {
- promise: promise,
- cancel: cancel
- }
- }
- };*/
-
- confirmBoxServiceMock = {
- deleteItem: () => {
- var promise = () => {return deferredAdminApps.promise};
- var cancel = jasmine.createSpy();
- return {
- promise: promise,
- cancel: cancel
- }
- }
- };
-
- applicationsServiceMock = jasmine.createSpyObj('applicationsServiceMock', ['getAdminAppsSimpler']);
- applicationsServiceMock.getAdminAppsSimpler.and.returnValue(deferredAdminApps.promise);
-
- usersServiceMock = jasmine.createSpyObj('usersServiceMock', ['getAccountUsers','getUserAppRoles','updateUserAppsRoles']);
-
- usersServiceMock.getAccountUsers.and.returnValue(deferredUsersAccounts.promise);
- usersServiceMock.getUserAppRoles.and.returnValue(deferredUsersAppRoles.promise);
- usersServiceMock.updateUserAppsRoles.and.returnValue(deferredUsersAppRoleUpdate.promise);
-
- $scope = $rootScope.$new();
- newUser = $controller('NewUserModalCtrl', {
- $scope: $scope,
- $log: $log,
- usersService: usersServiceMock,
- applicationsService: applicationsServiceMock,
- confirmBoxService: confirmBoxServiceMock
- });
- });
-
- it('should open modal window without user when no user is selected', ()=> {
- expect(newUser.selectedUser).toBe(null);
- });
-
- it('should open modal window with selectedUser apps roles when user is selected', ()=> {
- let roles = {apps: [{id: 1, appRoles: [{id: 3, isApplied: true}]}]};
- let someUser = {userId: 'asdfjl'};
-
- deferredUsersAppRoles.resolve(roles);
- deferredAdminApps.resolve(roles.apps);
-
- $scope.ngDialogData = {
- selectedUser: someUser,
- dialogState: 2
- };
-
- newUser = $controller('NewUserModalCtrl', {
- $scope: $scope,
- $log: $log,
- usersService: usersServiceMock,
- applicationsService: applicationsServiceMock,
- confirmBoxService: confirmBoxServiceMock
- });
-
- newUser.getUserAppsRoles();
- $scope.$apply();
-
- expect(newUser.selectedUser).toBe(someUser);
- expect(newUser.adminApps).toEqual(roles.apps);
- });
-
- it('should push to apps order list only apps that has applied roles when initializing', () => {
- let roles = {apps: [{appId: 13, appRoles: [{id: 3, isApplied: true}]},{appId: 20, appRoles: [{id: 3, isApplied: false}]}]};
- let someUser = {userId: 'asdfjl'};
-
- deferredUsersAppRoles.resolve(roles);
-
- $scope.ngDialogData = {
- selectedUser: someUser,
- dialogState: 2
- };
-
- newUser = $controller('NewUserModalCtrl', {
- $scope: $scope,
- $log: $log,
- usersService: usersServiceMock,
- applicationsService: applicationsServiceMock,
- confirmBoxService: confirmBoxServiceMock
- });
-
- $scope.$apply();
-
- });
-
- it('should push app to apps order list when applying at least one role to user from app', () => {
- let roles = {apps: [{appId: 13, appRoles: [{id: 3, isApplied: true}]},{appId: 20, appRoles: [{id: 3, isApplied: false}]}]};
- let someUser = {userId: 'asdfjl'};
-
- deferredUsersAppRoles.resolve(roles);
-
- $scope.ngDialogData = {
- selectedUser: someUser,
- dialogState: 2
- };
-
- newUser = $controller('NewUserModalCtrl', {
- $scope: $scope,
- $log: $log,
- usersService: usersServiceMock,
- applicationsService: applicationsServiceMock,
- confirmBoxService: confirmBoxServiceMock
- });
-
- $scope.$apply();
-
- });
-
-
- it('should remove app from list when removing all user roles in it', () => {
- let roles = {apps: [{appName: 'aaa', appId: 13, appRoles: [{id: 3, isApplied: true}]},{appName: 'vvv', appId: 20, appRoles: [{id: 3, isApplied: true}]}]};
- let someUser = {userId: 'asdfjl'};
-
- promisesTestUtils.resolvePromise(confirmBoxServiceMock, 'deleteItem', true);
-
- deferredUsersAppRoles.resolve(roles);
-
- $scope.ngDialogData = {
- selectedUser: someUser,
- dialogState: 2
- };
-
- newUser = $controller('NewUserModalCtrl', {
- $scope: $scope,
- $log: $log,
- usersService: usersServiceMock,
- applicationsService: applicationsServiceMock,
- confirmBoxService: confirmBoxServiceMock
- });
-
- $scope.$apply();
- newUser.deleteApp(roles.apps[0]);
- $scope.$apply();
-
- });
-
- it('should close the modal when update changes succeeded', () => {
- let roles = {apps: [{appName: 'aaa', appId: 13, appRoles: [{id: 3, isApplied: true}]},{appName: 'vvv', appId: 20, appRoles: [{id: 3, isApplied: true}]}]};
- let someUser = {userId: 'asdfjl'};
- deferredUsersAppRoles.resolve(roles);
- deferredUsersAppRoleUpdate.resolve();
- deferredAdminApps.resolve(roles.apps);
-
- $scope.ngDialogData = {
- selectedUser: someUser,
- dialogState: 2
- };
-
- newUser = $controller('NewUserModalCtrl', {
- $scope: $scope,
- $log: $log,
- usersService: usersServiceMock,
- applicationsService: applicationsServiceMock,
- confirmBoxService: confirmBoxServiceMock
- });
- $scope.closeThisDialog = function(){};
- spyOn($scope, 'closeThisDialog');
-
- newUser.getUserAppsRoles();
- $scope.$apply();
- newUser.updateUserAppsRoles();
- $scope.$apply();
- expect($scope.closeThisDialog).toHaveBeenCalledWith(true);
- });
- });
diff --git a/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.modal.html b/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.modal.html
deleted file mode 100644
index e50c9d4a..00000000
--- a/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.modal.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="new-user-modal">
- <div class="search-users" ng-show="newUser.dialogState===1">
- <search-users search-title="New User"
- selected-user="newUser.selectedUser"></search-users>
- <div class="dialog-control">
- <div id="search-user-next-button" class="next-button" ng-click="newUser.selectedUser && newUser.getUserAppsRoles()"
- ng-class="{disabled: !newUser.selectedUser}">Next
- </div>
- <div id="search-user-cancel-button" class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
- </div>
- <div class="user-apps-roles" ng-show="newUser.dialogState===3">
- <div class="title"
- ng-bind="newUser.selectedUser.firstName + ' ' + newUser.selectedUser.lastName + ' (' + newUser.selectedUser.orgUserId + ')'"></div>
- <div class="app-roles-main">
- <div class="app-roles-main-title">
- <span class="left">Access and roles:</span>
- </div>
- <div class="app-roles-list">
- <div class="app-item" ng-repeat="app in (newUser.adminApps) track by app.id" ng-show="!app.isDeleted">
- <div class="app-item-left" id="div-app-name-{{app.name.split(' ').join('-')}}">{{app.name | elipsis: 27}}</div>
- <div class="app-item-right" ng-show="!app.isError && !app.isLoading && !app.noChanges && !app.isUpdating && !app.isDoneUpdating && !app.isErrorUpdating">
- <multiple-select id="app-roles"
- unique-data="{{$index}}"
- placeholder="Select roles"
- ng-model="app.appRoles"
- on-change="newUser.appChanged($index)"
- name-attr="roleName"
- value-attr="isApplied"></multiple-select>
- </div>
- <div id="app-item-no-contact" class="app-item-right-error" ng-show="app.isError">{{app.errorMessage}}</div>
- <div id="app-item-contacting" class="app-item-right-contacting" ng-show="app.isLoading">Contacting application...</div>
- <div id="app-item-no-changes" class="app-item-right-contacting" ng-show="app.noChanges">No changes</div>
- <div id="app-item-no-updating" class="app-item-right-contacting" ng-show="app.isUpdating">Updating application...</div>
- <div id="app-item-done-updating" class="app-item-right-contacting" ng-show="app.isDoneUpdating">Finished updating application</div>
- <div id="app-item-cannot-update" class="app-item-right-error" ng-show="app.isErrorUpdating">Could not update application...</div>
- <i id="app-item-delete" class="ion-trash-b" ng-click="newUser.deleteApp(app)" ng-show="!app.isLoading && !app.isError"></i>
- <div id='ecomp-small-spinner' class="ecomp-small-spinner" ng-show="app.isLoading"></div>
- </div>
- </div>
- <div class="dialog-control">
- <span id="ecomp-save-spinner" class="ecomp-save-spinner" ng-show="newUser.isSaving || newUser.isGettingAdminApps"></span>
- <div id="new-user-back-button" ng-show="newUser.isShowBack" class="back-button" ng-click="newUser.navigateBack()">Back</div>
- <div id="new-user-next-button" class="next-button" ng-click="newUser.updateUserAppsRoles()"
- ng-class="{disabled: !newUser.anyChanges}">Save
- </div>
- <div id="new-user-cancel-button" class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.modal.less b/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.modal.less
deleted file mode 100644
index 9f86b022..00000000
--- a/ecomp-portal-FE/client/app/views/users/new-user-dialogs/new-user.modal.less
+++ /dev/null
@@ -1,126 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .new-user-modal {
- display:block;
- overflow:auto;
- min-height: 450px;
-
- .user-apps-roles{
- .title{
- .n18r;
- border-bottom: @a 3px solid;
- }
-
- .app-roles-list{
- height: 286px;
- overflow-y: auto;
-
- .app-item{
- border: 1px solid #d8d8d8;
- border-radius: 2px;
- background-color: #f8f8f8;
-
- padding: 10px;
- margin-top: 8px;
-
- .app-item-left{
- padding-top: 0;
- line-height: 30px;
- height: 30px;
- vertical-align: middle;
- display:inline-block;
- width: 45%;
- border-radius: 2px;
- border: 1px solid #d8d8d8;
- margin-right: 10px;
- padding-left: 4px;
- background: #fff;
- white-space: nowrap;
-
- }
- .app-item-right{
- display:inline-block;
- width: 45%;
- border-radius: 2px;
- border: 1px solid #d8d8d8;
- background: #fff;
- vertical-align: middle;
- }
-
- .app-item-right-error{
- .k;
- padding: 7px 7px 7px 7px;
- display:inline-block;
- width: 45%;
- border-radius: 2px;
- border: 1px solid #d8d8d8;
- background: #fff;
- vertical-align: middle;
- }
-
- .app-item-right-contacting{
- .e;
- padding: 7px 7px 7px 7px;
- display:inline-block;
- width: 45%;
- border-radius: 2px;
- border: 1px solid #d8d8d8;
- background: #fff;
- vertical-align: middle;
- }
-
- .app-select-left{
- width: 45%;
- margin-right: 10px;
- vertical-align: middle;
-
-
- .select-field{
- padding-top: 0;
- line-height: 30px;
- height: 30px;
- vertical-align: middle;
- border-radius: 2px;
- border: 1px solid #d8d8d8;
- margin-right: 10px;
- padding-left: 4px;
- background: #fff;
- display:inline-block;
- }
- }
-
-
- .app-item-delete{
- .ico_trash_default;
- display: inline-block;
- vertical-align: 2px;
- cursor: pointer;
- position: relative;
- top: 6px;
- color: transparent;
- margin-left: 8px;
-
- }
-
- }
- }
-
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/users/users.controller.js b/ecomp-portal-FE/client/app/views/users/users.controller.js
deleted file mode 100644
index 433b24e4..00000000
--- a/ecomp-portal-FE/client/app/views/users/users.controller.js
+++ /dev/null
@@ -1,187 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class UsersCtrl {
- constructor($log, applicationsService, usersService, $scope, ngDialog,$timeout) {
- this.$log = $log;
- $scope.adminAppsIsNull = false;
- $scope.appsIsDown = false;
-
- $log.info('UsersCtrl:: initializing...');
- let activeRequests = [];
- let clearReq = (req) => {
- activeRequests.splice(activeRequests.indexOf(req), 1);
- };
-
- let getAdminApps = () => {
- $log.debug('UsersCtrl::getAdminApps: - Starting getAdminApps');
- try {
- this.isLoadingTable = true;
- var adminAppsReq = applicationsService.getAdminApps();
-
- activeRequests.push(adminAppsReq);
- adminAppsReq.promise().then(apps => {
- $log.debug('UsersCtrl::getAdminApps: Apps for this user are: ' + JSON.stringify(apps));
- $log.debug('UsersCtrl::getAdminApps: Apps length: ' + apps.length);
- var res1 = apps.sort(getSortOrder("name"));
- if (!res1 || !res1.length) {
- $log.error('UsersCtrl::getAdminApps: - no apps found');
- return null;
- }
- for (let i = 0; i < apps.length; i++) {
- res1[i].index = i;
- res1[i].value = apps[i].name;
- res1[i].title = apps[i].name;
- }
-
- this.adminApps = apps;
- this.selectedApp = apps[0];
- clearReq(adminAppsReq);
- $scope.adminAppsIsNull = false;
- }).catch(e => {
- $scope.adminAppsIsNull = true;
- $log.error('UsersCtrl::getAdminApps: - getAdminApps() failed = '+ e.message);
- clearReq(adminAppsReq);
- }).finally(() => {
- this.isLoadingTable = false;
- });
- } catch (e) {
- $scope.adminAppsIsNull = true;
- $log.error('UsersCtrl::getAdminApps: - getAdminApps() failed!');
- this.isLoadingTable = false;
- }
- };
-
- let getSortOrder = (prop) => {
- return function(a, b) {
- if (a[prop] > b[prop]) {
- return 1;
- } else if (a[prop] < b[prop]) {
- return -1;
- }
- return 0;
- }
- }
-
- this.updateUsersList = () => {
- $scope.appsIsDown = false;
- $log.debug('UsersCtrl::updateUsersList: Starting updateUsersList');
- this.searchString = '';
- this.isAppSelectDisabled = true;
- this.isLoadingTable = true;
- usersService.getAccountUsers(this.selectedApp.id)
- .then(accountUsers => {
- $log.debug('UsersCtrl::updateUsersList length: '+ Object.keys(accountUsers).length);
- this.isAppSelectDisabled = false;
- this.accountUsers = accountUsers;
- }).catch(err => {
- this.isAppSelectDisabled = false;
- $log.error('UsersCtrl::updateUsersList: ' + err);
- $scope.appsIsDown = true;
- }).finally(() => {
- this.isLoadingTable = false;
- });
- };
-
-
- let init = () => {
- this.isLoadingTable = false;
- this.selectedApp = null;
- this.isAppSelectDisabled = false;
- getAdminApps();
-
- this.searchString = '';
- this.usersTableHeaders = ['First Name', 'Last Name', 'User ID', 'Roles'];
- this.accountUsers = [];
- };
-
- this.openAddNewUserModal = (user) => {
- let data = null;
- if (user) {
- data = {
- dialogState: 3,
- selectedUser: {
- orgUserId: user.orgUserId,
- firstName: user.firstName,
- lastName: user.lastName
- }
- }
- }
- ngDialog.open({
- templateUrl: 'app/views/users/new-user-dialogs/new-user.modal.html',
- controller: 'NewUserModalCtrl',
- controllerAs: 'newUser',
- data: data
- }).closePromise.then(needUpdate => {
- if (needUpdate.value === true) {
- $log.debug('UsersCtrl::openAddNewUserModal updating table data...');
- this.updateUsersList();
- }
- });
- };
-
- this.openEditUserModal = (loginId) => {
- var data = {
- loginId : loginId,
- updateRemoteApp : true,
- appId : this.selectedApp!=null?this.selectedApp.id:''
- }
- var modalInstance = ngDialog.open({
- templateUrl: 'app/views/header/user-edit/edit-user.tpl.html',
- controller: 'editUserController',
- data: data,
- resolve: {
- message: function message() {
- var message = {
- type: 'Contact',
- };
- return message;
- }
- }
- }).closePromise.then(needUpdate => {
- //update selected app's database for this user.
- console.log("'''''''''''''''''' now updating user list after update remote server");
- $timeout(this.updateUsersList, 1500);
- });
- }
-
-
- $scope.$watch('users.selectedApp', (newVal, oldVal) => {
- if (!newVal || _.isEqual(newVal, oldVal)) {
- return;
- }
- $log.debug('UsersCtrl::openAddNewUserModal:$watch selectedApp -> Fire with: ', newVal);
- this.accountUsers = [];
- this.updateUsersList();
- });
-
- $scope.$on('$destroy', () => {
- activeRequests.forEach(req => {
- req.cancel();
- });
- });
-
- init();
- }
- }
- UsersCtrl.$inject = ['$log', 'applicationsService', 'usersService', '$scope', 'ngDialog','$timeout'];
- angular.module('ecompApp').controller('UsersCtrl', UsersCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/users/users.controller.spec.js b/ecomp-portal-FE/client/app/views/users/users.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/users/users.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/users/users.less b/ecomp-portal-FE/client/app/views/users/users.less
deleted file mode 100644
index ff2d815f..00000000
--- a/ecomp-portal-FE/client/app/views/users/users.less
+++ /dev/null
@@ -1,59 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .users-page-main{
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
- .users-table {
- width: @table-width;
- margin: @table-margin;
-
- }
-
- .error-text {
- width: 1170px;
- margin: auto;
- padding: 20px;
- left: 20px;
- font-weight: bold;
- font-size: 16px;
- text-align: left;
- color: @err;
- background-color: @u;
-
- .error-help {
- color: @o;
- font-weight: normal;
- }
-
- .error-help-bold {
- color: @o;
- font-weight: bold;
- }
-
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/users/users.tpl.html b/ecomp-portal-FE/client/app/views/users/users.tpl.html
deleted file mode 100644
index 88a3b62d..00000000
--- a/ecomp-portal-FE/client/app/views/users/users.tpl.html
+++ /dev/null
@@ -1,105 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-main">
- <div class="w-ecomp-main-container">
- <div class="users-page-main" id="contentId">
- <div id="users-page-title" class="w-ecomp-main-view-title">Users</div>
- <div class="users-table">
-
-
- <div class="table-control">
- <div class="c-ecomp-att-abs-select default">
- <div class="form-field" id="form-field"
- att-select="users.adminApps"
- ng-model="users.selectedApp"
- ng-disabled="users.isAppSelectDisabled"
- ng-class="{disabled: users.isAppSelectDisabled}"></div>
- </div>
- <input class="table-search" type="text" id="input-search"
- placeholder="Search in entire table"
- ng-model="users.searchString"/>
-
- <div id="users-page-button-add" class="add-button" ng-click="users.openAddNewUserModal()">Add User</div>
- </div>
- <div ng-hide="users.isLoadingTable">
- <div class="error-text"
- id="div-error-app-down"
- ng-show="appsIsDown===true">
- <h1 class="error-help-bold">Attention:</h1>
- <p>&nbsp;</p>
- <p class="error-help">Select "Add User" in order to add User and Roles to the '{{users.selectedApp.name}}' Application.</p>
- </div>
- </div>
- <span class="ecomp-spinner" ng-show="users.isLoadingTable"></span>
- <div class="c-ecomp-att-abs-table default" ng-hide="users.isLoadingTable">
- <table att-table id="table-main"
- table-data="users.accountUsers"
- search-string="users.searchString"
- view-per-page="users.viewPerPageIgnored"
- current-page="users.currentPageIgnored"
- total-page="users.totalPageIgnored">
- <thead att-table-row type="header">
- <tr>
- <th id="th-users-0" att-table-header key="firstName" default-sort="a">{{users.usersTableHeaders[0]}}</th>
- <th id="th-users-1" att-table-header key="lastName" sortable="true">{{users.usersTableHeaders[1]}}</th>
- <th id="th-users-2" att-table-header key="userId" sortable="true">{{users.usersTableHeaders[2]}}</th>
- <th id="th-users-3" att-table-header key="roles" sortable="false">{{users.usersTableHeaders[3]}}</th>
- </tr>
- </thead>
- <tbody att-table-row type="body"
- class="table-body"
- track-by="$index"
- row-repeat="rowData in users.accountUsers">
- <tr id="tr-rowData" ng-click="users.openAddNewUserModal(rowData)">
- <td class="td-first" att-table-body>
- <div id="users-page-td-firstName-{{rowData.userId}}" ng-bind="rowData.firstName"></div>
- </td>
- <td att-table-body>
- <div id="users-page-td-lastName-{{rowData.userId}}" ng-bind="rowData.lastName"></div>
- </td>
- <td att-table-body>
- <div id="users-page-td-userId-{{rowData.userId}}" style="float: left;" ng-bind="rowData.orgUserId"></div>
- <div>
- <span style="float: left; margin-left:15px" class="ion-person" ng-click="users.openEditUserModal(rowData.orgUserId);$event.stopPropagation()"></span>
- </div>
- </td>
- <td>
- <div id="users-page-td-role-name-{{rowData.userId}}" ng-repeat="role in rowData.roles" ng-bind="role.name"></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- </div>
- <div class="error-text"
- id="div-error-403"
- ng-show="adminAppsIsNull==true">
- <h1>Attention:</h1>
- <p>&nbsp;</p>
- <p class="error-help">It appears that you have not been added as an admin yet to an application.</p>
- <p>&nbsp;</p>
- <p class="error-help">Click on the Admins link to the left and check and see if you are listed as an admin for an application.
- If not, you can add yourself to the appropriate application.</p>
- </div>
- </div>
- </div>
-
-</div>
diff --git a/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.controller.js b/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.controller.js
deleted file mode 100644
index f50e4683..00000000
--- a/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.controller.js
+++ /dev/null
@@ -1,202 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-
-'use strict';
-(function () {
- class WidgetDetailsModalCtrl {
- constructor($scope, $log, applicationsService, widgetsService, errorMessageByCode, ECOMP_URL_REGEX, $window,userProfileService,$cookies) {
-
- let newWidgetModel = {
- name: null,
- appId: null,
- appName: null,
- width: 360,
- height: 300,
- url: null
- };
-
- let getAvailableApps = () => {
- applicationsService.getAppsForSuperAdminAndAccountAdmin().then(apps => {
- this.availableApps=[];
- for(var i=0;i<apps.length;i++) {
- if (!apps[i].restrictedApp) {
- $log.debug('WidgetDetailsModalCtrl::getAvailableApps: pushing {id: ', apps[i].id, 'name: ', apps[i].name,
- 'restrictedApp: ', apps[i].restrictedApp, '}');
- this.availableApps.push({
- id: apps[i].id,
- name: apps[i].name,
- restrictedApp: apps[i].restrictedApp
- });
- }
- }
-
- if (this.isEditMode) {
- this.selectedApp = _.find(apps, {id: this.widget.appId});
- if(!this.selectedApp){
- $scope.widgetForm.app.$dirty = true;
- }
- } else {
- this.selectedApp = null;
- }
- this.updateSelectedApp();
- }).catch(err => {
- $log.error(err);
- });
- };
- /**/
-
- let init = () => {
- $log.info('AppDetailsModalCtrl::init');
- this.isSaving = false;
- if ($scope.ngDialogData && $scope.ngDialogData.widget) {
- $log.debug('WidgetDetailsModalCtrl::getAvailableApps: Edit widget mode for', $scope.ngDialogData.widget);
- this.isEditMode = true;
- this.widget = _.clone($scope.ngDialogData.widget);
- } else {
- $log.debug('WidgetDetailsModalCtrl::init: New app mode');
- this.isEditMode = false;
- this.widget = _.clone(newWidgetModel);
- }
- getAvailableApps();
- };
-
- this.ECOMP_URL_REGEX = ECOMP_URL_REGEX;
-
- this.conflictMessages = {};
- this.scrollApi = {};
- let handleConflictErrors = err => {
- if(!err.data){
- return;
- }
- if(!err.data.length){
- err.data = [err.data]
- }
- _.forEach(err.data, item => {
- _.forEach(item.fields, field => {
- this.conflictMessages[field.name] = errorMessageByCode[item.errorCode];
- $scope.widgetForm[field.name].$setValidity('conflict', false);
- watchOnce[field.name]();
- });
- });
- this.scrollApi.scrollTop();
- };
-
- let resetConflict = fieldName => {
- delete this.conflictMessages[fieldName];
- if($scope.widgetForm[fieldName]){
- $scope.widgetForm[fieldName].$setValidity('conflict', true);
- }
- };
-
- let watchOnce = {
- name: () => {
- let unregisterName = $scope.$watchGroup(['widgetDetails.selectedApp','widgetDetails.widget.name'], (newVal, oldVal) => {
- if(newVal.toLowerCase() !== oldVal.toLowerCase()){
- resetConflict('name');
- unregisterName();
- }
- });
- },
- url: () => {
- let unregisterUrl = $scope.$watch('widgetDetails.widget.url', (newVal, oldVal) => {
- if(newVal.toLowerCase() !== oldVal.toLowerCase()) {
- resetConflict('url');
- unregisterUrl();
- }
- });
- }
- };
-
- this.updateSelectedApp = () => {
- if (!this.selectedApp) {
- return;
- }
- this.widget.appId = this.selectedApp.id;
- this.widget.appName = this.selectedApp.name;
- };
-
- let emptyCookies = () => {
- userProfileService.getUserProfile()
- .then(profile=> {
- $log.info('AppDetailsModalCtrl::emptyCookies profile: ', profile);
- $scope.userId = profile.orgUserId;
- $log.info('user has the following userId: ' + profile.userId);
- if ($cookies.getObject($scope.userId + '_widget') != undefined && $cookies.getObject($scope.userId + '_widget') != null) {
- $cookies.remove($scope.userId + '_widget');
- }
- });
- };
-
- this.saveChanges = () => {
- if($scope.widgetForm.$invalid){
- return;
- }
- this.isSaving = true;
- if(this.isEditMode){
- widgetsService.updateWidget(this.widget.id, this.widget)
- .then(() => {
- $log.debug('WidgetDetailsModalCtrl::saveChanges: Widget update succeeded!');
- $scope.closeThisDialog(true);
- emptyCookies();
- }).catch(err => {
- if(err.status === 409){
- handleConflictErrors(err);
- }
- $log.error(err);
- }).finally(()=>{
- this.isSaving = false;
- var objOffsetVersion = objAgent.indexOf("MSIE");
- if (objOffsetVersion != -1) {
- $log.debug('WidgetDetailsModalCtrl::saveChanges: Browser is IE, forcing Refresh');
- $window.location.reload();
- }
- });
- }else{
- widgetsService.createWidget(this.widget)
- .then(() => {
- $log.debug('WidgetDetailsModalCtrl::createWidget: Widget creation succeeded!');
- $scope.closeThisDialog(true);
- emptyCookies();
- }).catch(err => {
- if(err.status === 409){
- handleConflictErrors('WidgetDetailsModalCtrl::createWidget error: ',err);
- }
- $log.error('WidgetDetailsModalCtrl::createWidget error: ',err);
- }).finally(()=>{
- this.isSaving = false;
- var objOffsetVersion = objAgent.indexOf("MSIE");
- if (objOffsetVersion != -1) {
- $log.debug('WidgetDetailsModalCtrl::createWidget: Browser is IE, forcing Refresh');
- $window.location.reload();
- }
- });
- }
- };
-
- init();
-
- $scope.$on('$stateChangeStart', e => {
- e.preventDefault();
- });
- }
- }
- WidgetDetailsModalCtrl.$inject = ['$scope', '$log', 'applicationsService', 'widgetsService', 'errorMessageByCode', 'ECOMP_URL_REGEX', '$window','userProfileService','$cookies'];
- angular.module('ecompApp').controller('WidgetDetailsModalCtrl', WidgetDetailsModalCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.controller.spec.js b/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.modal.html b/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.modal.html
deleted file mode 100644
index 87be6f15..00000000
--- a/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.modal.html
+++ /dev/null
@@ -1,132 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="widget-details-modal">
- <div id="'widgets-details-title" class="title">Widget Details</div>
- <div class="widget-properties-main" scroll-top="widgetDetails.scrollApi">
- <form id="widgets-details-form" name="widgetForm" novalidate autocomplete="off">
- <script type="text/javascript">
- document.getElementById("appForm").reset();
- </script>
- <div class="item required">
- <div class="item-label">Application Name</div>
- <div class="custom-select-wrap">
- <select id="widgets-details-select-app"
- class="select-field"
- ng-model="widgetDetails.selectedApp"
- ng-change="widgetDetails.updateSelectedApp();"
- ng-options="app.name for app in widgetDetails.availableApps track by app.id"
- ng-disabled="!widgetDetails.availableApps || !widgetDetails.availableApps.length"
- name="app"
- required>
- <option id="widgets-details-select-app-disabled" value="" disabled style="display: none;">Select application</option>
- </select>
- </div>
- <div class="error-container" ng-show="widgetForm.app.$dirty">
- <div ng-messages="widgetForm.app.$error" class="error-container">
- <small id="widgets-details-select-app-error-required" class="err-message" ng-message="required">Application is required</small>
- </div>
- </div>
- </div>
- <div class="item required">
- <div class="item-label">Widget Name</div>
- <input id="widgets-details-input-name"
- class="input-field"
- type="text"
- ng-model="widgetDetails.widget.name"
- name="name"
- maxlength="100"
- ng-pattern="/^[a-zA-Z0-9_\s\&]*$/"
- required/>
- <div class="error-container" ng-show="widgetDetails.conflictMessages.name">
- <small id="widgets-details-input-name-conflict" class="err-message" ng-bind="widgetDetails.conflictMessages.name"></small>
- </div>
- <div class="error-container" ng-show="widgetForm.name.$dirty || widgetDetails.isEditMode">
- <div ng-messages="widgetForm.name.$error" class="error-container">
- <small id="widgets-details-input-name-required" class="err-message" ng-message="required">Widget Name is required</small>
- <small id="widgets-details-input-name-pattern" class="err-message" ng-message="pattern">Widget Name must be letters, numbers, or underscore</small>
- </div>
- </div>
- </div>
- <div class="item required">
- <div class="left-item">
- <div class="item-label">Width</div>
- <input id="widgets-details-input-width"
- class="input-field"
- type="number"
- ng-model="widgetDetails.widget.width"
- name="width"
- min="300"
- required
- disabled/>
- <div class="error-container" ng-show="widgetForm.width.$dirty || widgetDetails.isEditMode">
- <div ng-messages="widgetForm.width.$error" class="error-container">
- <small id="widgets-details-input-width-required" class="err-message" ng-message="required">Widget width is required</small>
- <small id="widgets-details-input-min-width" class="err-message" ng-message="min">Minimum width is 300</small>
- </div>
- </div>
- </div>
- <div class="right-item required">
- <div class="item-label">Height</div>
- <input id="widgets-details-input-height"
- class="input-field"
- type="number"
- ng-model="widgetDetails.widget.height"
- name="height"
- min="200"
- required
- disabled/>
- <div class="error-container" ng-show="widgetForm.height.$dirty || widgetDetails.isEditMode">
- <div ng-messages="widgetForm.height.$error" class="error-container">
- <small id="widgets-details-input-height-required" class="err-message" ng-message="required">Widget height is required</small>
- <small id="widgets-details-input-height-minimum" class="err-message" ng-message="min">Minimum height is 200</small>
- </div>
- </div>
- </div>
- </div>
- <div class="item required">
- <div class="item-label">URL</div>
- <input id="widgets-details-input-URL"
- class="input-field"
- type="url"
- ng-model="widgetDetails.widget.url"
- name="url"
- maxlength="256"
- ng-pattern="widgetDetails.ECOMP_URL_REGEX"
- required/>
- <div class="error-container" ng-show="widgetDetails.conflictMessages.url">
- <small id="widgets-details-input-URL-conflict" class="err-message" ng-bind="widgetDetails.conflictMessages.url"></small>
- </div>
- <div class="error-container" ng-show="widgetForm.url.$dirty || widgetDetails.isEditMode">
- <div ng-messages="widgetForm.url.$error" class="error-container">
- <small id="widgets-details-input-URL-required" class="err-message" ng-message="required">Widget URL is required</small>
- <small id="widgets-details-input-URL-pattern" class="err-message" ng-message="pattern">Incorrect URL pattern</small>
- </div>
- </div>
-
- </div>
- </form>
- </div>
- <div class="dialog-control">
- <span class="ecomp-save-spinner" ng-show="widgetDetails.isSaving"></span>
- <div id="widgets-details-next-button" class="next-button"
- ng-class="{disabled: widgetForm.$invalid}" ng-click="widgetDetails.saveChanges()">Save</div>
- <div id="widgets-details-cancel-button" class="cancel-button" ng-click="closeThisDialog()">Cancel</div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.modal.less b/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.modal.less
deleted file mode 100644
index 6e031b1d..00000000
--- a/ecomp-portal-FE/client/app/views/widgets/widget-details-dialog/widget-details.modal.less
+++ /dev/null
@@ -1,94 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .widget-details-modal {
- height: 430px;
-
- .title {
- .n18r;
- border-bottom: @a 3px solid;
-
- }
-
- .widget-properties-main {
- padding: 16px;
- height: 306px;
- overflow-y: auto;
-
- .item{
- position: relative;
- margin-bottom: 18px;
-
- .input-field{
- .custom-input-field;
- width: 100%;
- &.url{
- width: 78%;
- display: inline-block;
- }
- }
-
- .select-field {
- .custom-select-field;
- }
-
- .item-label{
- .o14r;
- }
-
- .right-item{
- position: relative;
- display: inline-block;
- width: 48%;
- float: right;
- }
- .left-item{
- display: inline-block;
- width: 48%;
- }
-
- .url-validation-button{
- .btn-blue;
- width: 20%;
- display: inline-block;
- float: right;
- }
-
- .error-container{
- position: absolute;
- width: 280px;
- display: block;
- height: 12px;
- line-height: 12px;
-
- .err-message{
- color: red;
- font-size: 9px;
- }
- .valid-message{
- color: green;
- font-size: 9px;
- }
- }
-
- }
-
- }
-
-}
diff --git a/ecomp-portal-FE/client/app/views/widgets/widgets.controller.js b/ecomp-portal-FE/client/app/views/widgets/widgets.controller.js
deleted file mode 100644
index c24f49cd..00000000
--- a/ecomp-portal-FE/client/app/views/widgets/widgets.controller.js
+++ /dev/null
@@ -1,151 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class WidgetsCtrl {
- constructor($log, applicationsService, widgetsService, ngDialog, confirmBoxService,
- userProfileService, $cookies, $scope) {
- $log.info('WidgetsCtrl::init: Starting Up');
- $scope.infoMessage = true;
-
- let populateAvailableApps = widgets => {
- let allPortalsFilterObject = {index: 0, title: 'All applications', value: ''};
- this.availableApps = [allPortalsFilterObject];
- this.filterByApp = this.availableApps[0];
- applicationsService.getAppsForSuperAdminAndAccountAdmin().then(myApps => {
- var reSortedApp = myApps.sort(getSortOrder("name"));
- var realAppIndex = 1;
- for (let i = 1; i <= reSortedApp.length; i++) {
- if (!reSortedApp[i-1].restrictedApp) {
- $log.debug('WidgetsCtrl::populateAvailableApps: pushing {index: ', realAppIndex, 'title: ', reSortedApp[i - 1].name,
- 'value: ', reSortedApp[i - 1].name, '}');
- this.availableApps.push({
- index: realAppIndex,
- title: reSortedApp[i - 1].name,
- value: reSortedApp[i - 1].name
- })
- realAppIndex = realAppIndex + 1;
- }
- }
- }).catch(err => {
- $log.error(err);
- });
- };
-
- let getOnboardingWidgets = () => {
- this.isLoadingTable = true;
- widgetsService.getManagedWidgets().then(res => {
- var reSortedWidget = res.sort(getSortOrder("name"));
- this.widgetsList = reSortedWidget;
- populateAvailableApps(reSortedWidget);
- }).catch(err => {
- $log.error('WidgetsCtrl::getOnboardingWidgets error: ' + err);
- }).finally(()=> {
- this.isLoadingTable = false;
- });
- };
-
- let getSortOrder = (prop) => {
- return function(a, b) {
- if (a[prop].toLowerCase() > b[prop].toLowerCase()) {
- return 1;
- } else if (a[prop].toLowerCase() < b[prop].toLowerCase()) {
- return -1;
- }
- return 0;
- }
- }
-
- $scope.hideMe = function () {
- $scope.infoMessage = false;
- }
-
- let init = () => {
- this.isLoadingTable = false;
- getOnboardingWidgets();
-
-
- this.searchString = '';
-
- this.widgetsTableHeaders = [
- {name: 'Widget Name', value: 'name', isSortable: false},
- {name: 'Application', value: 'appName', isSortable: true},
- {name: 'Width', value: 'width', isSortable: false},
- {name: 'Height', value: 'height', isSortable: false}
- ];
- this.widgetsList = [];
- };
-
- this.filterByDropdownValue = item => {
- if(this.filterByApp.value === ''){
- return true;
- }
- return item.appName === this.filterByApp.value;
- };
-
- this.openWidgetDetailsModal = (selectedWidget) => {
- let data = null;
- if(selectedWidget){
- if(!selectedWidget.id){
- $log.error('Widget id not found');
- return;
- }
- data = {
- widget: selectedWidget
- }
- }
- ngDialog.open({
- templateUrl: 'app/views/widgets/widget-details-dialog/widget-details.modal.html',
- controller: 'WidgetDetailsModalCtrl',
- controllerAs: 'widgetDetails',
- data: data
- }).closePromise.then(needUpdate => {
- if(needUpdate.value === true){
- $log.debug('WidgetsCtrl::openWidgetDetailsModal: updating table data...');
- getOnboardingWidgets();
- }
- });
- };
-
- this.deleteWidget = widget => {
- confirmBoxService.deleteItem(widget.name).then(isConfirmed => {
- if(isConfirmed){
- if(!widget || !widget.id){
- $log.error('WidgetsCtrl::deleteWidget: No widget or ID... cannot delete');
- return;
- }
- widgetsService.deleteWidget(widget.id).then(() => {
- this.widgetsList.splice(this.widgetsList.indexOf(widget), 1);
- }).catch(err => {
- $log.error('WidgetsCtrl::deleteWidget error:',err);
- });
- }
- }).catch(err => {
- $log.error('WidgetsCtrl::deleteWidget error:',err);
- });
- };
-
- init();
- }
- }
- WidgetsCtrl.$inject = ['$log', 'applicationsService', 'widgetsService', 'ngDialog', 'confirmBoxService',
- 'userProfileService','$cookies', '$scope'];
- angular.module('ecompApp').controller('WidgetsCtrl', WidgetsCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/widgets/widgets.controller.spec.js b/ecomp-portal-FE/client/app/views/widgets/widgets.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/widgets/widgets.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/widgets/widgets.less b/ecomp-portal-FE/client/app/views/widgets/widgets.less
deleted file mode 100644
index 4b83b66f..00000000
--- a/ecomp-portal-FE/client/app/views/widgets/widgets.less
+++ /dev/null
@@ -1,60 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .widgets-page-main{
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- overflow-y: @page-main-overflow-y;
- padding-left: @padding-left-side;
-
- .widgets-table{
- width: @table-width;
- margin: @table-margin;
-
- .table-control{
-
- }
-
- .delete-widget{
- .ico_trash_default;
- }
- }
- .error-text {
- width: 1170px;
- margin: auto;
- padding: 20px;
- left: 20px;
- font-weight: bold;
- font-size: 16px;
- text-align: left;
- color: @err;
- background-color: @u;
-
- .error-help {
- color: @o;
- font-weight: normal;
- }
- }
-
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/app/views/widgets/widgets.tpl.html b/ecomp-portal-FE/client/app/views/widgets/widgets.tpl.html
deleted file mode 100644
index d255174f..00000000
--- a/ecomp-portal-FE/client/app/views/widgets/widgets.tpl.html
+++ /dev/null
@@ -1,77 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-main">
- <div class="w-ecomp-main-container">
- <div class="widgets-page-main" id="contentId">
- <div id="widget-onboarding-title" class="w-ecomp-main-view-title">Widget Onboarding</div>
- <div class="widgets-table">
- <div class="table-control">
- <div class="c-ecomp-att-abs-select default">
- <div class="form-field" id="widegets-available-apps"
- att-select="widgets.availableApps"
- ng-model="widgets.filterByApp"></div>
- </div>
- <input class="table-search" type="text" id="widget-onboarding-table-search"
- placeholder="Search in entire table"
- ng-model="widgets.searchString"/>
-
- <div id="widget-onboarding-button-add" class="add-button" ng-click="widgets.openWidgetDetailsModal()">Add Widget</div>
- </div>
- <div class="error-text" ng-show="infoMessage">
- <span class="error-help">Only widgets for active applications are displayed.</span>
- <button type="button" class="close" ng-click="hideMe()">&times;</button>
- </div>
-
- <span class="ecomp-spinner" ng-show="widgets.isLoadingTable"></span>
- <div class="c-ecomp-att-abs-table default" ng-hide="widgets.isLoadingTable">
- <table att-table
- table-data="widgets.widgetsList"
- search-string="widgets.searchString"
- view-per-page="widgets.viewPerPageIgnored"
- current-page="widgets.currentPageIgnored"
- total-page="widgets.totalPageIgnored">
- <thead att-table-row type="header">
- <tr>
- <th id="widget-onboarding-th-header-name" ng-repeat="header in widgets.widgetsTableHeaders" att-table-header key="{{header.value}}" sortable="{{header.isSortable}}">{{header.name}}</th>
- <th id="widget-onboarding-th-header-url" att-table-header key="url" sortable="{{false}}">URL</th>
- <th id="widget-onboarding-th-header-delete" att-table-header sortable="{{false}}">Delete</th>
- </tr>
- </thead>
- <tbody att-table-row type="body"
- class="table-body"
- row-repeat="rowData in widgets.widgetsList | filter:widgets.filterByDropdownValue">
- <tr >
- <td att-table-body ng-repeat="header in widgets.widgetsTableHeaders" ng-click="widgets.openWidgetDetailsModal(rowData)">
- <div id="widget-onboarding-div-{{rowData[header.value].split(' ').join('-')}}" ng-bind="rowData[header.value]"></div>
- </td>
- <td att-table-body ng-click="widgets.openWidgetDetailsModal(rowData)">
- <div id="widget-onboarding-div-url-{{rowData[header.value].split(' ').join('-')}}" ng-bind="rowData.url | trusted"></div>
- </td>
- <td att-table-body>
- <div id="widget-onboarding-div-delete-widget-{{$index}}" class="delete-widget" ng-click="widgets.deleteWidget(rowData)"><span class="ion-trash-b"></span></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/assets/images/cloud.png b/ecomp-portal-FE/client/assets/images/cloud.png
deleted file mode 100644
index 72e2f85c..00000000
--- a/ecomp-portal-FE/client/assets/images/cloud.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/assets/images/ecomp_logo.png b/ecomp-portal-FE/client/assets/images/ecomp_logo.png
deleted file mode 100644
index 609caa42..00000000
--- a/ecomp-portal-FE/client/assets/images/ecomp_logo.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/assets/images/grips.png b/ecomp-portal-FE/client/assets/images/grips.png
deleted file mode 100644
index 29b92cc5..00000000
--- a/ecomp-portal-FE/client/assets/images/grips.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/assets/images/photo.png b/ecomp-portal-FE/client/assets/images/photo.png
deleted file mode 100644
index 82603122..00000000
--- a/ecomp-portal-FE/client/assets/images/photo.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/assets/images/spinner.gif b/ecomp-portal-FE/client/assets/images/spinner.gif
deleted file mode 100644
index c97ec6ea..00000000
--- a/ecomp-portal-FE/client/assets/images/spinner.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/assets/images/sprite.png b/ecomp-portal-FE/client/assets/images/sprite.png
deleted file mode 100644
index 92046804..00000000
--- a/ecomp-portal-FE/client/assets/images/sprite.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/angular-animate/.bower.json b/ecomp-portal-FE/client/bower_components/angular-animate/.bower.json
deleted file mode 100644
index d74d0a71..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-animate/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-animate",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-animate.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- },
- "homepage": "https://github.com/angular/bower-angular-animate",
- "_release": "1.5.0",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.0",
- "commit": "19b035b16ccf4b1db231207b9453f4a8df0d4a09"
- },
- "_source": "https://github.com/angular/bower-angular-animate.git",
- "_target": "1.5.0",
- "_originalSource": "angular-animate"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-animate/README.md b/ecomp-portal-FE/client/bower_components/angular-animate/README.md
deleted file mode 100644
index 8313da67..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-animate/README.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# packaged angular-animate
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngAnimate).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-animate
-```
-
-Then add `ngAnimate` as a dependency for your app:
-
-```javascript
-angular.module('myApp', [require('angular-animate')]);
-```
-
-### bower
-
-```shell
-bower install angular-animate
-```
-
-Then add a `<script>` to your `index.html`:
-
-```html
-<script src="/bower_components/angular-animate/angular-animate.js"></script>
-```
-
-Then add `ngAnimate` as a dependency for your app:
-
-```javascript
-angular.module('myApp', ['ngAnimate']);
-```
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/api/ngAnimate).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.js b/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.js
deleted file mode 100644
index 2778fc56..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.js
+++ /dev/null
@@ -1,4121 +0,0 @@
-/**
- * @license AngularJS v1.5.0
- * (c) 2010-2016 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular, undefined) {'use strict';
-
-/* jshint ignore:start */
-var noop = angular.noop;
-var copy = angular.copy;
-var extend = angular.extend;
-var jqLite = angular.element;
-var forEach = angular.forEach;
-var isArray = angular.isArray;
-var isString = angular.isString;
-var isObject = angular.isObject;
-var isUndefined = angular.isUndefined;
-var isDefined = angular.isDefined;
-var isFunction = angular.isFunction;
-var isElement = angular.isElement;
-
-var ELEMENT_NODE = 1;
-var COMMENT_NODE = 8;
-
-var ADD_CLASS_SUFFIX = '-add';
-var REMOVE_CLASS_SUFFIX = '-remove';
-var EVENT_CLASS_PREFIX = 'ng-';
-var ACTIVE_CLASS_SUFFIX = '-active';
-var PREPARE_CLASS_SUFFIX = '-prepare';
-
-var NG_ANIMATE_CLASSNAME = 'ng-animate';
-var NG_ANIMATE_CHILDREN_DATA = '$$ngAnimateChildren';
-
-// Detect proper transitionend/animationend event names.
-var CSS_PREFIX = '', TRANSITION_PROP, TRANSITIONEND_EVENT, ANIMATION_PROP, ANIMATIONEND_EVENT;
-
-// If unprefixed events are not supported but webkit-prefixed are, use the latter.
-// Otherwise, just use W3C names, browsers not supporting them at all will just ignore them.
-// Note: Chrome implements `window.onwebkitanimationend` and doesn't implement `window.onanimationend`
-// but at the same time dispatches the `animationend` event and not `webkitAnimationEnd`.
-// Register both events in case `window.onanimationend` is not supported because of that,
-// do the same for `transitionend` as Safari is likely to exhibit similar behavior.
-// Also, the only modern browser that uses vendor prefixes for transitions/keyframes is webkit
-// therefore there is no reason to test anymore for other vendor prefixes:
-// http://caniuse.com/#search=transition
-if (isUndefined(window.ontransitionend) && isDefined(window.onwebkittransitionend)) {
- CSS_PREFIX = '-webkit-';
- TRANSITION_PROP = 'WebkitTransition';
- TRANSITIONEND_EVENT = 'webkitTransitionEnd transitionend';
-} else {
- TRANSITION_PROP = 'transition';
- TRANSITIONEND_EVENT = 'transitionend';
-}
-
-if (isUndefined(window.onanimationend) && isDefined(window.onwebkitanimationend)) {
- CSS_PREFIX = '-webkit-';
- ANIMATION_PROP = 'WebkitAnimation';
- ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend';
-} else {
- ANIMATION_PROP = 'animation';
- ANIMATIONEND_EVENT = 'animationend';
-}
-
-var DURATION_KEY = 'Duration';
-var PROPERTY_KEY = 'Property';
-var DELAY_KEY = 'Delay';
-var TIMING_KEY = 'TimingFunction';
-var ANIMATION_ITERATION_COUNT_KEY = 'IterationCount';
-var ANIMATION_PLAYSTATE_KEY = 'PlayState';
-var SAFE_FAST_FORWARD_DURATION_VALUE = 9999;
-
-var ANIMATION_DELAY_PROP = ANIMATION_PROP + DELAY_KEY;
-var ANIMATION_DURATION_PROP = ANIMATION_PROP + DURATION_KEY;
-var TRANSITION_DELAY_PROP = TRANSITION_PROP + DELAY_KEY;
-var TRANSITION_DURATION_PROP = TRANSITION_PROP + DURATION_KEY;
-
-var isPromiseLike = function(p) {
- return p && p.then ? true : false;
-};
-
-var ngMinErr = angular.$$minErr('ng');
-function assertArg(arg, name, reason) {
- if (!arg) {
- throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required"));
- }
- return arg;
-}
-
-function mergeClasses(a,b) {
- if (!a && !b) return '';
- if (!a) return b;
- if (!b) return a;
- if (isArray(a)) a = a.join(' ');
- if (isArray(b)) b = b.join(' ');
- return a + ' ' + b;
-}
-
-function packageStyles(options) {
- var styles = {};
- if (options && (options.to || options.from)) {
- styles.to = options.to;
- styles.from = options.from;
- }
- return styles;
-}
-
-function pendClasses(classes, fix, isPrefix) {
- var className = '';
- classes = isArray(classes)
- ? classes
- : classes && isString(classes) && classes.length
- ? classes.split(/\s+/)
- : [];
- forEach(classes, function(klass, i) {
- if (klass && klass.length > 0) {
- className += (i > 0) ? ' ' : '';
- className += isPrefix ? fix + klass
- : klass + fix;
- }
- });
- return className;
-}
-
-function removeFromArray(arr, val) {
- var index = arr.indexOf(val);
- if (val >= 0) {
- arr.splice(index, 1);
- }
-}
-
-function stripCommentsFromElement(element) {
- if (element instanceof jqLite) {
- switch (element.length) {
- case 0:
- return [];
- break;
-
- case 1:
- // there is no point of stripping anything if the element
- // is the only element within the jqLite wrapper.
- // (it's important that we retain the element instance.)
- if (element[0].nodeType === ELEMENT_NODE) {
- return element;
- }
- break;
-
- default:
- return jqLite(extractElementNode(element));
- break;
- }
- }
-
- if (element.nodeType === ELEMENT_NODE) {
- return jqLite(element);
- }
-}
-
-function extractElementNode(element) {
- if (!element[0]) return element;
- for (var i = 0; i < element.length; i++) {
- var elm = element[i];
- if (elm.nodeType == ELEMENT_NODE) {
- return elm;
- }
- }
-}
-
-function $$addClass($$jqLite, element, className) {
- forEach(element, function(elm) {
- $$jqLite.addClass(elm, className);
- });
-}
-
-function $$removeClass($$jqLite, element, className) {
- forEach(element, function(elm) {
- $$jqLite.removeClass(elm, className);
- });
-}
-
-function applyAnimationClassesFactory($$jqLite) {
- return function(element, options) {
- if (options.addClass) {
- $$addClass($$jqLite, element, options.addClass);
- options.addClass = null;
- }
- if (options.removeClass) {
- $$removeClass($$jqLite, element, options.removeClass);
- options.removeClass = null;
- }
- }
-}
-
-function prepareAnimationOptions(options) {
- options = options || {};
- if (!options.$$prepared) {
- var domOperation = options.domOperation || noop;
- options.domOperation = function() {
- options.$$domOperationFired = true;
- domOperation();
- domOperation = noop;
- };
- options.$$prepared = true;
- }
- return options;
-}
-
-function applyAnimationStyles(element, options) {
- applyAnimationFromStyles(element, options);
- applyAnimationToStyles(element, options);
-}
-
-function applyAnimationFromStyles(element, options) {
- if (options.from) {
- element.css(options.from);
- options.from = null;
- }
-}
-
-function applyAnimationToStyles(element, options) {
- if (options.to) {
- element.css(options.to);
- options.to = null;
- }
-}
-
-function mergeAnimationDetails(element, oldAnimation, newAnimation) {
- var target = oldAnimation.options || {};
- var newOptions = newAnimation.options || {};
-
- var toAdd = (target.addClass || '') + ' ' + (newOptions.addClass || '');
- var toRemove = (target.removeClass || '') + ' ' + (newOptions.removeClass || '');
- var classes = resolveElementClasses(element.attr('class'), toAdd, toRemove);
-
- if (newOptions.preparationClasses) {
- target.preparationClasses = concatWithSpace(newOptions.preparationClasses, target.preparationClasses);
- delete newOptions.preparationClasses;
- }
-
- // noop is basically when there is no callback; otherwise something has been set
- var realDomOperation = target.domOperation !== noop ? target.domOperation : null;
-
- extend(target, newOptions);
-
- // TODO(matsko or sreeramu): proper fix is to maintain all animation callback in array and call at last,but now only leave has the callback so no issue with this.
- if (realDomOperation) {
- target.domOperation = realDomOperation;
- }
-
- if (classes.addClass) {
- target.addClass = classes.addClass;
- } else {
- target.addClass = null;
- }
-
- if (classes.removeClass) {
- target.removeClass = classes.removeClass;
- } else {
- target.removeClass = null;
- }
-
- oldAnimation.addClass = target.addClass;
- oldAnimation.removeClass = target.removeClass;
-
- return target;
-}
-
-function resolveElementClasses(existing, toAdd, toRemove) {
- var ADD_CLASS = 1;
- var REMOVE_CLASS = -1;
-
- var flags = {};
- existing = splitClassesToLookup(existing);
-
- toAdd = splitClassesToLookup(toAdd);
- forEach(toAdd, function(value, key) {
- flags[key] = ADD_CLASS;
- });
-
- toRemove = splitClassesToLookup(toRemove);
- forEach(toRemove, function(value, key) {
- flags[key] = flags[key] === ADD_CLASS ? null : REMOVE_CLASS;
- });
-
- var classes = {
- addClass: '',
- removeClass: ''
- };
-
- forEach(flags, function(val, klass) {
- var prop, allow;
- if (val === ADD_CLASS) {
- prop = 'addClass';
- allow = !existing[klass];
- } else if (val === REMOVE_CLASS) {
- prop = 'removeClass';
- allow = existing[klass];
- }
- if (allow) {
- if (classes[prop].length) {
- classes[prop] += ' ';
- }
- classes[prop] += klass;
- }
- });
-
- function splitClassesToLookup(classes) {
- if (isString(classes)) {
- classes = classes.split(' ');
- }
-
- var obj = {};
- forEach(classes, function(klass) {
- // sometimes the split leaves empty string values
- // incase extra spaces were applied to the options
- if (klass.length) {
- obj[klass] = true;
- }
- });
- return obj;
- }
-
- return classes;
-}
-
-function getDomNode(element) {
- return (element instanceof angular.element) ? element[0] : element;
-}
-
-function applyGeneratedPreparationClasses(element, event, options) {
- var classes = '';
- if (event) {
- classes = pendClasses(event, EVENT_CLASS_PREFIX, true);
- }
- if (options.addClass) {
- classes = concatWithSpace(classes, pendClasses(options.addClass, ADD_CLASS_SUFFIX));
- }
- if (options.removeClass) {
- classes = concatWithSpace(classes, pendClasses(options.removeClass, REMOVE_CLASS_SUFFIX));
- }
- if (classes.length) {
- options.preparationClasses = classes;
- element.addClass(classes);
- }
-}
-
-function clearGeneratedClasses(element, options) {
- if (options.preparationClasses) {
- element.removeClass(options.preparationClasses);
- options.preparationClasses = null;
- }
- if (options.activeClasses) {
- element.removeClass(options.activeClasses);
- options.activeClasses = null;
- }
-}
-
-function blockTransitions(node, duration) {
- // we use a negative delay value since it performs blocking
- // yet it doesn't kill any existing transitions running on the
- // same element which makes this safe for class-based animations
- var value = duration ? '-' + duration + 's' : '';
- applyInlineStyle(node, [TRANSITION_DELAY_PROP, value]);
- return [TRANSITION_DELAY_PROP, value];
-}
-
-function blockKeyframeAnimations(node, applyBlock) {
- var value = applyBlock ? 'paused' : '';
- var key = ANIMATION_PROP + ANIMATION_PLAYSTATE_KEY;
- applyInlineStyle(node, [key, value]);
- return [key, value];
-}
-
-function applyInlineStyle(node, styleTuple) {
- var prop = styleTuple[0];
- var value = styleTuple[1];
- node.style[prop] = value;
-}
-
-function concatWithSpace(a,b) {
- if (!a) return b;
- if (!b) return a;
- return a + ' ' + b;
-}
-
-var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) {
- var queue, cancelFn;
-
- function scheduler(tasks) {
- // we make a copy since RAFScheduler mutates the state
- // of the passed in array variable and this would be difficult
- // to track down on the outside code
- queue = queue.concat(tasks);
- nextTick();
- }
-
- queue = scheduler.queue = [];
-
- /* waitUntilQuiet does two things:
- * 1. It will run the FINAL `fn` value only when an uncanceled RAF has passed through
- * 2. It will delay the next wave of tasks from running until the quiet `fn` has run.
- *
- * The motivation here is that animation code can request more time from the scheduler
- * before the next wave runs. This allows for certain DOM properties such as classes to
- * be resolved in time for the next animation to run.
- */
- scheduler.waitUntilQuiet = function(fn) {
- if (cancelFn) cancelFn();
-
- cancelFn = $$rAF(function() {
- cancelFn = null;
- fn();
- nextTick();
- });
- };
-
- return scheduler;
-
- function nextTick() {
- if (!queue.length) return;
-
- var items = queue.shift();
- for (var i = 0; i < items.length; i++) {
- items[i]();
- }
-
- if (!cancelFn) {
- $$rAF(function() {
- if (!cancelFn) nextTick();
- });
- }
- }
-}];
-
-/**
- * @ngdoc directive
- * @name ngAnimateChildren
- * @restrict AE
- * @element ANY
- *
- * @description
- *
- * ngAnimateChildren allows you to specify that children of this element should animate even if any
- * of the children's parents are currently animating. By default, when an element has an active `enter`, `leave`, or `move`
- * (structural) animation, child elements that also have an active structural animation are not animated.
- *
- * Note that even if `ngAnimteChildren` is set, no child animations will run when the parent element is removed from the DOM (`leave` animation).
- *
- *
- * @param {string} ngAnimateChildren If the value is empty, `true` or `on`,
- * then child animations are allowed. If the value is `false`, child animations are not allowed.
- *
- * @example
- * <example module="ngAnimateChildren" name="ngAnimateChildren" deps="angular-animate.js" animations="true">
- <file name="index.html">
- <div ng-controller="mainController as main">
- <label>Show container? <input type="checkbox" ng-model="main.enterElement" /></label>
- <label>Animate children? <input type="checkbox" ng-model="main.animateChildren" /></label>
- <hr>
- <div ng-animate-children="{{main.animateChildren}}">
- <div ng-if="main.enterElement" class="container">
- List of items:
- <div ng-repeat="item in [0, 1, 2, 3]" class="item">Item {{item}}</div>
- </div>
- </div>
- </div>
- </file>
- <file name="animations.css">
-
- .container.ng-enter,
- .container.ng-leave {
- transition: all ease 1.5s;
- }
-
- .container.ng-enter,
- .container.ng-leave-active {
- opacity: 0;
- }
-
- .container.ng-leave,
- .container.ng-enter-active {
- opacity: 1;
- }
-
- .item {
- background: firebrick;
- color: #FFF;
- margin-bottom: 10px;
- }
-
- .item.ng-enter,
- .item.ng-leave {
- transition: transform 1.5s ease;
- }
-
- .item.ng-enter {
- transform: translateX(50px);
- }
-
- .item.ng-enter-active {
- transform: translateX(0);
- }
- </file>
- <file name="script.js">
- angular.module('ngAnimateChildren', ['ngAnimate'])
- .controller('mainController', function() {
- this.animateChildren = false;
- this.enterElement = false;
- });
- </file>
- </example>
- */
-var $$AnimateChildrenDirective = ['$interpolate', function($interpolate) {
- return {
- link: function(scope, element, attrs) {
- var val = attrs.ngAnimateChildren;
- if (angular.isString(val) && val.length === 0) { //empty attribute
- element.data(NG_ANIMATE_CHILDREN_DATA, true);
- } else {
- // Interpolate and set the value, so that it is available to
- // animations that run right after compilation
- setData($interpolate(val)(scope));
- attrs.$observe('ngAnimateChildren', setData);
- }
-
- function setData(value) {
- value = value === 'on' || value === 'true';
- element.data(NG_ANIMATE_CHILDREN_DATA, value);
- }
- }
- };
-}];
-
-var ANIMATE_TIMER_KEY = '$$animateCss';
-
-/**
- * @ngdoc service
- * @name $animateCss
- * @kind object
- *
- * @description
- * The `$animateCss` service is a useful utility to trigger customized CSS-based transitions/keyframes
- * from a JavaScript-based animation or directly from a directive. The purpose of `$animateCss` is NOT
- * to side-step how `$animate` and ngAnimate work, but the goal is to allow pre-existing animations or
- * directives to create more complex animations that can be purely driven using CSS code.
- *
- * Note that only browsers that support CSS transitions and/or keyframe animations are capable of
- * rendering animations triggered via `$animateCss` (bad news for IE9 and lower).
- *
- * ## Usage
- * Once again, `$animateCss` is designed to be used inside of a registered JavaScript animation that
- * is powered by ngAnimate. It is possible to use `$animateCss` directly inside of a directive, however,
- * any automatic control over cancelling animations and/or preventing animations from being run on
- * child elements will not be handled by Angular. For this to work as expected, please use `$animate` to
- * trigger the animation and then setup a JavaScript animation that injects `$animateCss` to trigger
- * the CSS animation.
- *
- * The example below shows how we can create a folding animation on an element using `ng-if`:
- *
- * ```html
- * <!-- notice the `fold-animation` CSS class -->
- * <div ng-if="onOff" class="fold-animation">
- * This element will go BOOM
- * </div>
- * <button ng-click="onOff=true">Fold In</button>
- * ```
- *
- * Now we create the **JavaScript animation** that will trigger the CSS transition:
- *
- * ```js
- * ngModule.animation('.fold-animation', ['$animateCss', function($animateCss) {
- * return {
- * enter: function(element, doneFn) {
- * var height = element[0].offsetHeight;
- * return $animateCss(element, {
- * from: { height:'0px' },
- * to: { height:height + 'px' },
- * duration: 1 // one second
- * });
- * }
- * }
- * }]);
- * ```
- *
- * ## More Advanced Uses
- *
- * `$animateCss` is the underlying code that ngAnimate uses to power **CSS-based animations** behind the scenes. Therefore CSS hooks
- * like `.ng-EVENT`, `.ng-EVENT-active`, `.ng-EVENT-stagger` are all features that can be triggered using `$animateCss` via JavaScript code.
- *
- * This also means that just about any combination of adding classes, removing classes, setting styles, dynamically setting a keyframe animation,
- * applying a hardcoded duration or delay value, changing the animation easing or applying a stagger animation are all options that work with
- * `$animateCss`. The service itself is smart enough to figure out the combination of options and examine the element styling properties in order
- * to provide a working animation that will run in CSS.
- *
- * The example below showcases a more advanced version of the `.fold-animation` from the example above:
- *
- * ```js
- * ngModule.animation('.fold-animation', ['$animateCss', function($animateCss) {
- * return {
- * enter: function(element, doneFn) {
- * var height = element[0].offsetHeight;
- * return $animateCss(element, {
- * addClass: 'red large-text pulse-twice',
- * easing: 'ease-out',
- * from: { height:'0px' },
- * to: { height:height + 'px' },
- * duration: 1 // one second
- * });
- * }
- * }
- * }]);
- * ```
- *
- * Since we're adding/removing CSS classes then the CSS transition will also pick those up:
- *
- * ```css
- * /&#42; since a hardcoded duration value of 1 was provided in the JavaScript animation code,
- * the CSS classes below will be transitioned despite them being defined as regular CSS classes &#42;/
- * .red { background:red; }
- * .large-text { font-size:20px; }
- *
- * /&#42; we can also use a keyframe animation and $animateCss will make it work alongside the transition &#42;/
- * .pulse-twice {
- * animation: 0.5s pulse linear 2;
- * -webkit-animation: 0.5s pulse linear 2;
- * }
- *
- * @keyframes pulse {
- * from { transform: scale(0.5); }
- * to { transform: scale(1.5); }
- * }
- *
- * @-webkit-keyframes pulse {
- * from { -webkit-transform: scale(0.5); }
- * to { -webkit-transform: scale(1.5); }
- * }
- * ```
- *
- * Given this complex combination of CSS classes, styles and options, `$animateCss` will figure everything out and make the animation happen.
- *
- * ## How the Options are handled
- *
- * `$animateCss` is very versatile and intelligent when it comes to figuring out what configurations to apply to the element to ensure the animation
- * works with the options provided. Say for example we were adding a class that contained a keyframe value and we wanted to also animate some inline
- * styles using the `from` and `to` properties.
- *
- * ```js
- * var animator = $animateCss(element, {
- * from: { background:'red' },
- * to: { background:'blue' }
- * });
- * animator.start();
- * ```
- *
- * ```css
- * .rotating-animation {
- * animation:0.5s rotate linear;
- * -webkit-animation:0.5s rotate linear;
- * }
- *
- * @keyframes rotate {
- * from { transform: rotate(0deg); }
- * to { transform: rotate(360deg); }
- * }
- *
- * @-webkit-keyframes rotate {
- * from { -webkit-transform: rotate(0deg); }
- * to { -webkit-transform: rotate(360deg); }
- * }
- * ```
- *
- * The missing pieces here are that we do not have a transition set (within the CSS code nor within the `$animateCss` options) and the duration of the animation is
- * going to be detected from what the keyframe styles on the CSS class are. In this event, `$animateCss` will automatically create an inline transition
- * style matching the duration detected from the keyframe style (which is present in the CSS class that is being added) and then prepare both the transition
- * and keyframe animations to run in parallel on the element. Then when the animation is underway the provided `from` and `to` CSS styles will be applied
- * and spread across the transition and keyframe animation.
- *
- * ## What is returned
- *
- * `$animateCss` works in two stages: a preparation phase and an animation phase. Therefore when `$animateCss` is first called it will NOT actually
- * start the animation. All that is going on here is that the element is being prepared for the animation (which means that the generated CSS classes are
- * added and removed on the element). Once `$animateCss` is called it will return an object with the following properties:
- *
- * ```js
- * var animator = $animateCss(element, { ... });
- * ```
- *
- * Now what do the contents of our `animator` variable look like:
- *
- * ```js
- * {
- * // starts the animation
- * start: Function,
- *
- * // ends (aborts) the animation
- * end: Function
- * }
- * ```
- *
- * To actually start the animation we need to run `animation.start()` which will then return a promise that we can hook into to detect when the animation ends.
- * If we choose not to run the animation then we MUST run `animation.end()` to perform a cleanup on the element (since some CSS classes and styles may have been
- * applied to the element during the preparation phase). Note that all other properties such as duration, delay, transitions and keyframes are just properties
- * and that changing them will not reconfigure the parameters of the animation.
- *
- * ### runner.done() vs runner.then()
- * It is documented that `animation.start()` will return a promise object and this is true, however, there is also an additional method available on the
- * runner called `.done(callbackFn)`. The done method works the same as `.finally(callbackFn)`, however, it does **not trigger a digest to occur**.
- * Therefore, for performance reasons, it's always best to use `runner.done(callback)` instead of `runner.then()`, `runner.catch()` or `runner.finally()`
- * unless you really need a digest to kick off afterwards.
- *
- * Keep in mind that, to make this easier, ngAnimate has tweaked the JS animations API to recognize when a runner instance is returned from $animateCss
- * (so there is no need to call `runner.done(doneFn)` inside of your JavaScript animation code).
- * Check the {@link ngAnimate.$animateCss#usage animation code above} to see how this works.
- *
- * @param {DOMElement} element the element that will be animated
- * @param {object} options the animation-related options that will be applied during the animation
- *
- * * `event` - The DOM event (e.g. enter, leave, move). When used, a generated CSS class of `ng-EVENT` and `ng-EVENT-active` will be applied
- * to the element during the animation. Multiple events can be provided when spaces are used as a separator. (Note that this will not perform any DOM operation.)
- * * `structural` - Indicates that the `ng-` prefix will be added to the event class. Setting to `false` or omitting will turn `ng-EVENT` and
- * `ng-EVENT-active` in `EVENT` and `EVENT-active`. Unused if `event` is omitted.
- * * `easing` - The CSS easing value that will be applied to the transition or keyframe animation (or both).
- * * `transitionStyle` - The raw CSS transition style that will be used (e.g. `1s linear all`).
- * * `keyframeStyle` - The raw CSS keyframe animation style that will be used (e.g. `1s my_animation linear`).
- * * `from` - The starting CSS styles (a key/value object) that will be applied at the start of the animation.
- * * `to` - The ending CSS styles (a key/value object) that will be applied across the animation via a CSS transition.
- * * `addClass` - A space separated list of CSS classes that will be added to the element and spread across the animation.
- * * `removeClass` - A space separated list of CSS classes that will be removed from the element and spread across the animation.
- * * `duration` - A number value representing the total duration of the transition and/or keyframe (note that a value of 1 is 1000ms). If a value of `0`
- * is provided then the animation will be skipped entirely.
- * * `delay` - A number value representing the total delay of the transition and/or keyframe (note that a value of 1 is 1000ms). If a value of `true` is
- * used then whatever delay value is detected from the CSS classes will be mirrored on the elements styles (e.g. by setting delay true then the style value
- * of the element will be `transition-delay: DETECTED_VALUE`). Using `true` is useful when you want the CSS classes and inline styles to all share the same
- * CSS delay value.
- * * `stagger` - A numeric time value representing the delay between successively animated elements
- * ({@link ngAnimate#css-staggering-animations Click here to learn how CSS-based staggering works in ngAnimate.})
- * * `staggerIndex` - The numeric index representing the stagger item (e.g. a value of 5 is equal to the sixth item in the stagger; therefore when a
- * `stagger` option value of `0.1` is used then there will be a stagger delay of `600ms`)
- * * `applyClassesEarly` - Whether or not the classes being added or removed will be used when detecting the animation. This is set by `$animate` when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. (Note that this will prevent any transitions from occurring on the classes being added and removed.)
- * * `cleanupStyles` - Whether or not the provided `from` and `to` styles will be removed once
- * the animation is closed. This is useful for when the styles are used purely for the sake of
- * the animation and do not have a lasting visual effect on the element (e.g. a collapse and open animation).
- * By default this value is set to `false`.
- *
- * @return {object} an object with start and end methods and details about the animation.
- *
- * * `start` - The method to start the animation. This will return a `Promise` when called.
- * * `end` - This method will cancel the animation and remove all applied CSS classes and styles.
- */
-var ONE_SECOND = 1000;
-var BASE_TEN = 10;
-
-var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3;
-var CLOSING_TIME_BUFFER = 1.5;
-
-var DETECT_CSS_PROPERTIES = {
- transitionDuration: TRANSITION_DURATION_PROP,
- transitionDelay: TRANSITION_DELAY_PROP,
- transitionProperty: TRANSITION_PROP + PROPERTY_KEY,
- animationDuration: ANIMATION_DURATION_PROP,
- animationDelay: ANIMATION_DELAY_PROP,
- animationIterationCount: ANIMATION_PROP + ANIMATION_ITERATION_COUNT_KEY
-};
-
-var DETECT_STAGGER_CSS_PROPERTIES = {
- transitionDuration: TRANSITION_DURATION_PROP,
- transitionDelay: TRANSITION_DELAY_PROP,
- animationDuration: ANIMATION_DURATION_PROP,
- animationDelay: ANIMATION_DELAY_PROP
-};
-
-function getCssKeyframeDurationStyle(duration) {
- return [ANIMATION_DURATION_PROP, duration + 's'];
-}
-
-function getCssDelayStyle(delay, isKeyframeAnimation) {
- var prop = isKeyframeAnimation ? ANIMATION_DELAY_PROP : TRANSITION_DELAY_PROP;
- return [prop, delay + 's'];
-}
-
-function computeCssStyles($window, element, properties) {
- var styles = Object.create(null);
- var detectedStyles = $window.getComputedStyle(element) || {};
- forEach(properties, function(formalStyleName, actualStyleName) {
- var val = detectedStyles[formalStyleName];
- if (val) {
- var c = val.charAt(0);
-
- // only numerical-based values have a negative sign or digit as the first value
- if (c === '-' || c === '+' || c >= 0) {
- val = parseMaxTime(val);
- }
-
- // by setting this to null in the event that the delay is not set or is set directly as 0
- // then we can still allow for negative values to be used later on and not mistake this
- // value for being greater than any other negative value.
- if (val === 0) {
- val = null;
- }
- styles[actualStyleName] = val;
- }
- });
-
- return styles;
-}
-
-function parseMaxTime(str) {
- var maxValue = 0;
- var values = str.split(/\s*,\s*/);
- forEach(values, function(value) {
- // it's always safe to consider only second values and omit `ms` values since
- // getComputedStyle will always handle the conversion for us
- if (value.charAt(value.length - 1) == 's') {
- value = value.substring(0, value.length - 1);
- }
- value = parseFloat(value) || 0;
- maxValue = maxValue ? Math.max(value, maxValue) : value;
- });
- return maxValue;
-}
-
-function truthyTimingValue(val) {
- return val === 0 || val != null;
-}
-
-function getCssTransitionDurationStyle(duration, applyOnlyDuration) {
- var style = TRANSITION_PROP;
- var value = duration + 's';
- if (applyOnlyDuration) {
- style += DURATION_KEY;
- } else {
- value += ' linear all';
- }
- return [style, value];
-}
-
-function createLocalCacheLookup() {
- var cache = Object.create(null);
- return {
- flush: function() {
- cache = Object.create(null);
- },
-
- count: function(key) {
- var entry = cache[key];
- return entry ? entry.total : 0;
- },
-
- get: function(key) {
- var entry = cache[key];
- return entry && entry.value;
- },
-
- put: function(key, value) {
- if (!cache[key]) {
- cache[key] = { total: 1, value: value };
- } else {
- cache[key].total++;
- }
- }
- };
-}
-
-// we do not reassign an already present style value since
-// if we detect the style property value again we may be
-// detecting styles that were added via the `from` styles.
-// We make use of `isDefined` here since an empty string
-// or null value (which is what getPropertyValue will return
-// for a non-existing style) will still be marked as a valid
-// value for the style (a falsy value implies that the style
-// is to be removed at the end of the animation). If we had a simple
-// "OR" statement then it would not be enough to catch that.
-function registerRestorableStyles(backup, node, properties) {
- forEach(properties, function(prop) {
- backup[prop] = isDefined(backup[prop])
- ? backup[prop]
- : node.style.getPropertyValue(prop);
- });
-}
-
-var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
- var gcsLookup = createLocalCacheLookup();
- var gcsStaggerLookup = createLocalCacheLookup();
-
- this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout',
- '$$forceReflow', '$sniffer', '$$rAFScheduler', '$$animateQueue',
- function($window, $$jqLite, $$AnimateRunner, $timeout,
- $$forceReflow, $sniffer, $$rAFScheduler, $$animateQueue) {
-
- var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
-
- var parentCounter = 0;
- function gcsHashFn(node, extraClasses) {
- var KEY = "$$ngAnimateParentKey";
- var parentNode = node.parentNode;
- var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter);
- return parentID + '-' + node.getAttribute('class') + '-' + extraClasses;
- }
-
- function computeCachedCssStyles(node, className, cacheKey, properties) {
- var timings = gcsLookup.get(cacheKey);
-
- if (!timings) {
- timings = computeCssStyles($window, node, properties);
- if (timings.animationIterationCount === 'infinite') {
- timings.animationIterationCount = 1;
- }
- }
-
- // we keep putting this in multiple times even though the value and the cacheKey are the same
- // because we're keeping an internal tally of how many duplicate animations are detected.
- gcsLookup.put(cacheKey, timings);
- return timings;
- }
-
- function computeCachedCssStaggerStyles(node, className, cacheKey, properties) {
- var stagger;
-
- // if we have one or more existing matches of matching elements
- // containing the same parent + CSS styles (which is how cacheKey works)
- // then staggering is possible
- if (gcsLookup.count(cacheKey) > 0) {
- stagger = gcsStaggerLookup.get(cacheKey);
-
- if (!stagger) {
- var staggerClassName = pendClasses(className, '-stagger');
-
- $$jqLite.addClass(node, staggerClassName);
-
- stagger = computeCssStyles($window, node, properties);
-
- // force the conversion of a null value to zero incase not set
- stagger.animationDuration = Math.max(stagger.animationDuration, 0);
- stagger.transitionDuration = Math.max(stagger.transitionDuration, 0);
-
- $$jqLite.removeClass(node, staggerClassName);
-
- gcsStaggerLookup.put(cacheKey, stagger);
- }
- }
-
- return stagger || {};
- }
-
- var cancelLastRAFRequest;
- var rafWaitQueue = [];
- function waitUntilQuiet(callback) {
- rafWaitQueue.push(callback);
- $$rAFScheduler.waitUntilQuiet(function() {
- gcsLookup.flush();
- gcsStaggerLookup.flush();
-
- // DO NOT REMOVE THIS LINE OR REFACTOR OUT THE `pageWidth` variable.
- // PLEASE EXAMINE THE `$$forceReflow` service to understand why.
- var pageWidth = $$forceReflow();
-
- // we use a for loop to ensure that if the queue is changed
- // during this looping then it will consider new requests
- for (var i = 0; i < rafWaitQueue.length; i++) {
- rafWaitQueue[i](pageWidth);
- }
- rafWaitQueue.length = 0;
- });
- }
-
- function computeTimings(node, className, cacheKey) {
- var timings = computeCachedCssStyles(node, className, cacheKey, DETECT_CSS_PROPERTIES);
- var aD = timings.animationDelay;
- var tD = timings.transitionDelay;
- timings.maxDelay = aD && tD
- ? Math.max(aD, tD)
- : (aD || tD);
- timings.maxDuration = Math.max(
- timings.animationDuration * timings.animationIterationCount,
- timings.transitionDuration);
-
- return timings;
- }
-
- return function init(element, initialOptions) {
- // all of the animation functions should create
- // a copy of the options data, however, if a
- // parent service has already created a copy then
- // we should stick to using that
- var options = initialOptions || {};
- if (!options.$$prepared) {
- options = prepareAnimationOptions(copy(options));
- }
-
- var restoreStyles = {};
- var node = getDomNode(element);
- if (!node
- || !node.parentNode
- || !$$animateQueue.enabled()) {
- return closeAndReturnNoopAnimator();
- }
-
- var temporaryStyles = [];
- var classes = element.attr('class');
- var styles = packageStyles(options);
- var animationClosed;
- var animationPaused;
- var animationCompleted;
- var runner;
- var runnerHost;
- var maxDelay;
- var maxDelayTime;
- var maxDuration;
- var maxDurationTime;
- var startTime;
- var events = [];
-
- if (options.duration === 0 || (!$sniffer.animations && !$sniffer.transitions)) {
- return closeAndReturnNoopAnimator();
- }
-
- var method = options.event && isArray(options.event)
- ? options.event.join(' ')
- : options.event;
-
- var isStructural = method && options.structural;
- var structuralClassName = '';
- var addRemoveClassName = '';
-
- if (isStructural) {
- structuralClassName = pendClasses(method, EVENT_CLASS_PREFIX, true);
- } else if (method) {
- structuralClassName = method;
- }
-
- if (options.addClass) {
- addRemoveClassName += pendClasses(options.addClass, ADD_CLASS_SUFFIX);
- }
-
- if (options.removeClass) {
- if (addRemoveClassName.length) {
- addRemoveClassName += ' ';
- }
- addRemoveClassName += pendClasses(options.removeClass, REMOVE_CLASS_SUFFIX);
- }
-
- // there may be a situation where a structural animation is combined together
- // with CSS classes that need to resolve before the animation is computed.
- // However this means that there is no explicit CSS code to block the animation
- // from happening (by setting 0s none in the class name). If this is the case
- // we need to apply the classes before the first rAF so we know to continue if
- // there actually is a detected transition or keyframe animation
- if (options.applyClassesEarly && addRemoveClassName.length) {
- applyAnimationClasses(element, options);
- }
-
- var preparationClasses = [structuralClassName, addRemoveClassName].join(' ').trim();
- var fullClassName = classes + ' ' + preparationClasses;
- var activeClasses = pendClasses(preparationClasses, ACTIVE_CLASS_SUFFIX);
- var hasToStyles = styles.to && Object.keys(styles.to).length > 0;
- var containsKeyframeAnimation = (options.keyframeStyle || '').length > 0;
-
- // there is no way we can trigger an animation if no styles and
- // no classes are being applied which would then trigger a transition,
- // unless there a is raw keyframe value that is applied to the element.
- if (!containsKeyframeAnimation
- && !hasToStyles
- && !preparationClasses) {
- return closeAndReturnNoopAnimator();
- }
-
- var cacheKey, stagger;
- if (options.stagger > 0) {
- var staggerVal = parseFloat(options.stagger);
- stagger = {
- transitionDelay: staggerVal,
- animationDelay: staggerVal,
- transitionDuration: 0,
- animationDuration: 0
- };
- } else {
- cacheKey = gcsHashFn(node, fullClassName);
- stagger = computeCachedCssStaggerStyles(node, preparationClasses, cacheKey, DETECT_STAGGER_CSS_PROPERTIES);
- }
-
- if (!options.$$skipPreparationClasses) {
- $$jqLite.addClass(element, preparationClasses);
- }
-
- var applyOnlyDuration;
-
- if (options.transitionStyle) {
- var transitionStyle = [TRANSITION_PROP, options.transitionStyle];
- applyInlineStyle(node, transitionStyle);
- temporaryStyles.push(transitionStyle);
- }
-
- if (options.duration >= 0) {
- applyOnlyDuration = node.style[TRANSITION_PROP].length > 0;
- var durationStyle = getCssTransitionDurationStyle(options.duration, applyOnlyDuration);
-
- // we set the duration so that it will be picked up by getComputedStyle later
- applyInlineStyle(node, durationStyle);
- temporaryStyles.push(durationStyle);
- }
-
- if (options.keyframeStyle) {
- var keyframeStyle = [ANIMATION_PROP, options.keyframeStyle];
- applyInlineStyle(node, keyframeStyle);
- temporaryStyles.push(keyframeStyle);
- }
-
- var itemIndex = stagger
- ? options.staggerIndex >= 0
- ? options.staggerIndex
- : gcsLookup.count(cacheKey)
- : 0;
-
- var isFirst = itemIndex === 0;
-
- // this is a pre-emptive way of forcing the setup classes to be added and applied INSTANTLY
- // without causing any combination of transitions to kick in. By adding a negative delay value
- // it forces the setup class' transition to end immediately. We later then remove the negative
- // transition delay to allow for the transition to naturally do it's thing. The beauty here is
- // that if there is no transition defined then nothing will happen and this will also allow
- // other transitions to be stacked on top of each other without any chopping them out.
- if (isFirst && !options.skipBlocking) {
- blockTransitions(node, SAFE_FAST_FORWARD_DURATION_VALUE);
- }
-
- var timings = computeTimings(node, fullClassName, cacheKey);
- var relativeDelay = timings.maxDelay;
- maxDelay = Math.max(relativeDelay, 0);
- maxDuration = timings.maxDuration;
-
- var flags = {};
- flags.hasTransitions = timings.transitionDuration > 0;
- flags.hasAnimations = timings.animationDuration > 0;
- flags.hasTransitionAll = flags.hasTransitions && timings.transitionProperty == 'all';
- flags.applyTransitionDuration = hasToStyles && (
- (flags.hasTransitions && !flags.hasTransitionAll)
- || (flags.hasAnimations && !flags.hasTransitions));
- flags.applyAnimationDuration = options.duration && flags.hasAnimations;
- flags.applyTransitionDelay = truthyTimingValue(options.delay) && (flags.applyTransitionDuration || flags.hasTransitions);
- flags.applyAnimationDelay = truthyTimingValue(options.delay) && flags.hasAnimations;
- flags.recalculateTimingStyles = addRemoveClassName.length > 0;
-
- if (flags.applyTransitionDuration || flags.applyAnimationDuration) {
- maxDuration = options.duration ? parseFloat(options.duration) : maxDuration;
-
- if (flags.applyTransitionDuration) {
- flags.hasTransitions = true;
- timings.transitionDuration = maxDuration;
- applyOnlyDuration = node.style[TRANSITION_PROP + PROPERTY_KEY].length > 0;
- temporaryStyles.push(getCssTransitionDurationStyle(maxDuration, applyOnlyDuration));
- }
-
- if (flags.applyAnimationDuration) {
- flags.hasAnimations = true;
- timings.animationDuration = maxDuration;
- temporaryStyles.push(getCssKeyframeDurationStyle(maxDuration));
- }
- }
-
- if (maxDuration === 0 && !flags.recalculateTimingStyles) {
- return closeAndReturnNoopAnimator();
- }
-
- if (options.delay != null) {
- var delayStyle;
- if (typeof options.delay !== "boolean") {
- delayStyle = parseFloat(options.delay);
- // number in options.delay means we have to recalculate the delay for the closing timeout
- maxDelay = Math.max(delayStyle, 0);
- }
-
- if (flags.applyTransitionDelay) {
- temporaryStyles.push(getCssDelayStyle(delayStyle));
- }
-
- if (flags.applyAnimationDelay) {
- temporaryStyles.push(getCssDelayStyle(delayStyle, true));
- }
- }
-
- // we need to recalculate the delay value since we used a pre-emptive negative
- // delay value and the delay value is required for the final event checking. This
- // property will ensure that this will happen after the RAF phase has passed.
- if (options.duration == null && timings.transitionDuration > 0) {
- flags.recalculateTimingStyles = flags.recalculateTimingStyles || isFirst;
- }
-
- maxDelayTime = maxDelay * ONE_SECOND;
- maxDurationTime = maxDuration * ONE_SECOND;
- if (!options.skipBlocking) {
- flags.blockTransition = timings.transitionDuration > 0;
- flags.blockKeyframeAnimation = timings.animationDuration > 0 &&
- stagger.animationDelay > 0 &&
- stagger.animationDuration === 0;
- }
-
- if (options.from) {
- if (options.cleanupStyles) {
- registerRestorableStyles(restoreStyles, node, Object.keys(options.from));
- }
- applyAnimationFromStyles(element, options);
- }
-
- if (flags.blockTransition || flags.blockKeyframeAnimation) {
- applyBlocking(maxDuration);
- } else if (!options.skipBlocking) {
- blockTransitions(node, false);
- }
-
- // TODO(matsko): for 1.5 change this code to have an animator object for better debugging
- return {
- $$willAnimate: true,
- end: endFn,
- start: function() {
- if (animationClosed) return;
-
- runnerHost = {
- end: endFn,
- cancel: cancelFn,
- resume: null, //this will be set during the start() phase
- pause: null
- };
-
- runner = new $$AnimateRunner(runnerHost);
-
- waitUntilQuiet(start);
-
- // we don't have access to pause/resume the animation
- // since it hasn't run yet. AnimateRunner will therefore
- // set noop functions for resume and pause and they will
- // later be overridden once the animation is triggered
- return runner;
- }
- };
-
- function endFn() {
- close();
- }
-
- function cancelFn() {
- close(true);
- }
-
- function close(rejected) { // jshint ignore:line
- // if the promise has been called already then we shouldn't close
- // the animation again
- if (animationClosed || (animationCompleted && animationPaused)) return;
- animationClosed = true;
- animationPaused = false;
-
- if (!options.$$skipPreparationClasses) {
- $$jqLite.removeClass(element, preparationClasses);
- }
- $$jqLite.removeClass(element, activeClasses);
-
- blockKeyframeAnimations(node, false);
- blockTransitions(node, false);
-
- forEach(temporaryStyles, function(entry) {
- // There is only one way to remove inline style properties entirely from elements.
- // By using `removeProperty` this works, but we need to convert camel-cased CSS
- // styles down to hyphenated values.
- node.style[entry[0]] = '';
- });
-
- applyAnimationClasses(element, options);
- applyAnimationStyles(element, options);
-
- if (Object.keys(restoreStyles).length) {
- forEach(restoreStyles, function(value, prop) {
- value ? node.style.setProperty(prop, value)
- : node.style.removeProperty(prop);
- });
- }
-
- // the reason why we have this option is to allow a synchronous closing callback
- // that is fired as SOON as the animation ends (when the CSS is removed) or if
- // the animation never takes off at all. A good example is a leave animation since
- // the element must be removed just after the animation is over or else the element
- // will appear on screen for one animation frame causing an overbearing flicker.
- if (options.onDone) {
- options.onDone();
- }
-
- if (events && events.length) {
- // Remove the transitionend / animationend listener(s)
- element.off(events.join(' '), onAnimationProgress);
- }
-
- //Cancel the fallback closing timeout and remove the timer data
- var animationTimerData = element.data(ANIMATE_TIMER_KEY);
- if (animationTimerData) {
- $timeout.cancel(animationTimerData[0].timer);
- element.removeData(ANIMATE_TIMER_KEY);
- }
-
- // if the preparation function fails then the promise is not setup
- if (runner) {
- runner.complete(!rejected);
- }
- }
-
- function applyBlocking(duration) {
- if (flags.blockTransition) {
- blockTransitions(node, duration);
- }
-
- if (flags.blockKeyframeAnimation) {
- blockKeyframeAnimations(node, !!duration);
- }
- }
-
- function closeAndReturnNoopAnimator() {
- runner = new $$AnimateRunner({
- end: endFn,
- cancel: cancelFn
- });
-
- // should flush the cache animation
- waitUntilQuiet(noop);
- close();
-
- return {
- $$willAnimate: false,
- start: function() {
- return runner;
- },
- end: endFn
- };
- }
-
- function onAnimationProgress(event) {
- event.stopPropagation();
- var ev = event.originalEvent || event;
-
- // we now always use `Date.now()` due to the recent changes with
- // event.timeStamp in Firefox, Webkit and Chrome (see #13494 for more info)
- var timeStamp = ev.$manualTimeStamp || Date.now();
-
- /* Firefox (or possibly just Gecko) likes to not round values up
- * when a ms measurement is used for the animation */
- var elapsedTime = parseFloat(ev.elapsedTime.toFixed(ELAPSED_TIME_MAX_DECIMAL_PLACES));
-
- /* $manualTimeStamp is a mocked timeStamp value which is set
- * within browserTrigger(). This is only here so that tests can
- * mock animations properly. Real events fallback to event.timeStamp,
- * or, if they don't, then a timeStamp is automatically created for them.
- * We're checking to see if the timeStamp surpasses the expected delay,
- * but we're using elapsedTime instead of the timeStamp on the 2nd
- * pre-condition since animationPauseds sometimes close off early */
- if (Math.max(timeStamp - startTime, 0) >= maxDelayTime && elapsedTime >= maxDuration) {
- // we set this flag to ensure that if the transition is paused then, when resumed,
- // the animation will automatically close itself since transitions cannot be paused.
- animationCompleted = true;
- close();
- }
- }
-
- function start() {
- if (animationClosed) return;
- if (!node.parentNode) {
- close();
- return;
- }
-
- // even though we only pause keyframe animations here the pause flag
- // will still happen when transitions are used. Only the transition will
- // not be paused since that is not possible. If the animation ends when
- // paused then it will not complete until unpaused or cancelled.
- var playPause = function(playAnimation) {
- if (!animationCompleted) {
- animationPaused = !playAnimation;
- if (timings.animationDuration) {
- var value = blockKeyframeAnimations(node, animationPaused);
- animationPaused
- ? temporaryStyles.push(value)
- : removeFromArray(temporaryStyles, value);
- }
- } else if (animationPaused && playAnimation) {
- animationPaused = false;
- close();
- }
- };
-
- // checking the stagger duration prevents an accidentally cascade of the CSS delay style
- // being inherited from the parent. If the transition duration is zero then we can safely
- // rely that the delay value is an intentional stagger delay style.
- var maxStagger = itemIndex > 0
- && ((timings.transitionDuration && stagger.transitionDuration === 0) ||
- (timings.animationDuration && stagger.animationDuration === 0))
- && Math.max(stagger.animationDelay, stagger.transitionDelay);
- if (maxStagger) {
- $timeout(triggerAnimationStart,
- Math.floor(maxStagger * itemIndex * ONE_SECOND),
- false);
- } else {
- triggerAnimationStart();
- }
-
- // this will decorate the existing promise runner with pause/resume methods
- runnerHost.resume = function() {
- playPause(true);
- };
-
- runnerHost.pause = function() {
- playPause(false);
- };
-
- function triggerAnimationStart() {
- // just incase a stagger animation kicks in when the animation
- // itself was cancelled entirely
- if (animationClosed) return;
-
- applyBlocking(false);
-
- forEach(temporaryStyles, function(entry) {
- var key = entry[0];
- var value = entry[1];
- node.style[key] = value;
- });
-
- applyAnimationClasses(element, options);
- $$jqLite.addClass(element, activeClasses);
-
- if (flags.recalculateTimingStyles) {
- fullClassName = node.className + ' ' + preparationClasses;
- cacheKey = gcsHashFn(node, fullClassName);
-
- timings = computeTimings(node, fullClassName, cacheKey);
- relativeDelay = timings.maxDelay;
- maxDelay = Math.max(relativeDelay, 0);
- maxDuration = timings.maxDuration;
-
- if (maxDuration === 0) {
- close();
- return;
- }
-
- flags.hasTransitions = timings.transitionDuration > 0;
- flags.hasAnimations = timings.animationDuration > 0;
- }
-
- if (flags.applyAnimationDelay) {
- relativeDelay = typeof options.delay !== "boolean" && truthyTimingValue(options.delay)
- ? parseFloat(options.delay)
- : relativeDelay;
-
- maxDelay = Math.max(relativeDelay, 0);
- timings.animationDelay = relativeDelay;
- delayStyle = getCssDelayStyle(relativeDelay, true);
- temporaryStyles.push(delayStyle);
- node.style[delayStyle[0]] = delayStyle[1];
- }
-
- maxDelayTime = maxDelay * ONE_SECOND;
- maxDurationTime = maxDuration * ONE_SECOND;
-
- if (options.easing) {
- var easeProp, easeVal = options.easing;
- if (flags.hasTransitions) {
- easeProp = TRANSITION_PROP + TIMING_KEY;
- temporaryStyles.push([easeProp, easeVal]);
- node.style[easeProp] = easeVal;
- }
- if (flags.hasAnimations) {
- easeProp = ANIMATION_PROP + TIMING_KEY;
- temporaryStyles.push([easeProp, easeVal]);
- node.style[easeProp] = easeVal;
- }
- }
-
- if (timings.transitionDuration) {
- events.push(TRANSITIONEND_EVENT);
- }
-
- if (timings.animationDuration) {
- events.push(ANIMATIONEND_EVENT);
- }
-
- startTime = Date.now();
- var timerTime = maxDelayTime + CLOSING_TIME_BUFFER * maxDurationTime;
- var endTime = startTime + timerTime;
-
- var animationsData = element.data(ANIMATE_TIMER_KEY) || [];
- var setupFallbackTimer = true;
- if (animationsData.length) {
- var currentTimerData = animationsData[0];
- setupFallbackTimer = endTime > currentTimerData.expectedEndTime;
- if (setupFallbackTimer) {
- $timeout.cancel(currentTimerData.timer);
- } else {
- animationsData.push(close);
- }
- }
-
- if (setupFallbackTimer) {
- var timer = $timeout(onAnimationExpired, timerTime, false);
- animationsData[0] = {
- timer: timer,
- expectedEndTime: endTime
- };
- animationsData.push(close);
- element.data(ANIMATE_TIMER_KEY, animationsData);
- }
-
- if (events.length) {
- element.on(events.join(' '), onAnimationProgress);
- }
-
- if (options.to) {
- if (options.cleanupStyles) {
- registerRestorableStyles(restoreStyles, node, Object.keys(options.to));
- }
- applyAnimationToStyles(element, options);
- }
- }
-
- function onAnimationExpired() {
- var animationsData = element.data(ANIMATE_TIMER_KEY);
-
- // this will be false in the event that the element was
- // removed from the DOM (via a leave animation or something
- // similar)
- if (animationsData) {
- for (var i = 1; i < animationsData.length; i++) {
- animationsData[i]();
- }
- element.removeData(ANIMATE_TIMER_KEY);
- }
- }
- }
- };
- }];
-}];
-
-var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationProvider) {
- $$animationProvider.drivers.push('$$animateCssDriver');
-
- var NG_ANIMATE_SHIM_CLASS_NAME = 'ng-animate-shim';
- var NG_ANIMATE_ANCHOR_CLASS_NAME = 'ng-anchor';
-
- var NG_OUT_ANCHOR_CLASS_NAME = 'ng-anchor-out';
- var NG_IN_ANCHOR_CLASS_NAME = 'ng-anchor-in';
-
- function isDocumentFragment(node) {
- return node.parentNode && node.parentNode.nodeType === 11;
- }
-
- this.$get = ['$animateCss', '$rootScope', '$$AnimateRunner', '$rootElement', '$sniffer', '$$jqLite', '$document',
- function($animateCss, $rootScope, $$AnimateRunner, $rootElement, $sniffer, $$jqLite, $document) {
-
- // only browsers that support these properties can render animations
- if (!$sniffer.animations && !$sniffer.transitions) return noop;
-
- var bodyNode = $document[0].body;
- var rootNode = getDomNode($rootElement);
-
- var rootBodyElement = jqLite(
- // this is to avoid using something that exists outside of the body
- // we also special case the doc fragment case because our unit test code
- // appends the $rootElement to the body after the app has been bootstrapped
- isDocumentFragment(rootNode) || bodyNode.contains(rootNode) ? rootNode : bodyNode
- );
-
- var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
-
- return function initDriverFn(animationDetails) {
- return animationDetails.from && animationDetails.to
- ? prepareFromToAnchorAnimation(animationDetails.from,
- animationDetails.to,
- animationDetails.classes,
- animationDetails.anchors)
- : prepareRegularAnimation(animationDetails);
- };
-
- function filterCssClasses(classes) {
- //remove all the `ng-` stuff
- return classes.replace(/\bng-\S+\b/g, '');
- }
-
- function getUniqueValues(a, b) {
- if (isString(a)) a = a.split(' ');
- if (isString(b)) b = b.split(' ');
- return a.filter(function(val) {
- return b.indexOf(val) === -1;
- }).join(' ');
- }
-
- function prepareAnchoredAnimation(classes, outAnchor, inAnchor) {
- var clone = jqLite(getDomNode(outAnchor).cloneNode(true));
- var startingClasses = filterCssClasses(getClassVal(clone));
-
- outAnchor.addClass(NG_ANIMATE_SHIM_CLASS_NAME);
- inAnchor.addClass(NG_ANIMATE_SHIM_CLASS_NAME);
-
- clone.addClass(NG_ANIMATE_ANCHOR_CLASS_NAME);
-
- rootBodyElement.append(clone);
-
- var animatorIn, animatorOut = prepareOutAnimation();
-
- // the user may not end up using the `out` animation and
- // only making use of the `in` animation or vice-versa.
- // In either case we should allow this and not assume the
- // animation is over unless both animations are not used.
- if (!animatorOut) {
- animatorIn = prepareInAnimation();
- if (!animatorIn) {
- return end();
- }
- }
-
- var startingAnimator = animatorOut || animatorIn;
-
- return {
- start: function() {
- var runner;
-
- var currentAnimation = startingAnimator.start();
- currentAnimation.done(function() {
- currentAnimation = null;
- if (!animatorIn) {
- animatorIn = prepareInAnimation();
- if (animatorIn) {
- currentAnimation = animatorIn.start();
- currentAnimation.done(function() {
- currentAnimation = null;
- end();
- runner.complete();
- });
- return currentAnimation;
- }
- }
- // in the event that there is no `in` animation
- end();
- runner.complete();
- });
-
- runner = new $$AnimateRunner({
- end: endFn,
- cancel: endFn
- });
-
- return runner;
-
- function endFn() {
- if (currentAnimation) {
- currentAnimation.end();
- }
- }
- }
- };
-
- function calculateAnchorStyles(anchor) {
- var styles = {};
-
- var coords = getDomNode(anchor).getBoundingClientRect();
-
- // we iterate directly since safari messes up and doesn't return
- // all the keys for the coords object when iterated
- forEach(['width','height','top','left'], function(key) {
- var value = coords[key];
- switch (key) {
- case 'top':
- value += bodyNode.scrollTop;
- break;
- case 'left':
- value += bodyNode.scrollLeft;
- break;
- }
- styles[key] = Math.floor(value) + 'px';
- });
- return styles;
- }
-
- function prepareOutAnimation() {
- var animator = $animateCss(clone, {
- addClass: NG_OUT_ANCHOR_CLASS_NAME,
- delay: true,
- from: calculateAnchorStyles(outAnchor)
- });
-
- // read the comment within `prepareRegularAnimation` to understand
- // why this check is necessary
- return animator.$$willAnimate ? animator : null;
- }
-
- function getClassVal(element) {
- return element.attr('class') || '';
- }
-
- function prepareInAnimation() {
- var endingClasses = filterCssClasses(getClassVal(inAnchor));
- var toAdd = getUniqueValues(endingClasses, startingClasses);
- var toRemove = getUniqueValues(startingClasses, endingClasses);
-
- var animator = $animateCss(clone, {
- to: calculateAnchorStyles(inAnchor),
- addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd,
- removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove,
- delay: true
- });
-
- // read the comment within `prepareRegularAnimation` to understand
- // why this check is necessary
- return animator.$$willAnimate ? animator : null;
- }
-
- function end() {
- clone.remove();
- outAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME);
- inAnchor.removeClass(NG_ANIMATE_SHIM_CLASS_NAME);
- }
- }
-
- function prepareFromToAnchorAnimation(from, to, classes, anchors) {
- var fromAnimation = prepareRegularAnimation(from, noop);
- var toAnimation = prepareRegularAnimation(to, noop);
-
- var anchorAnimations = [];
- forEach(anchors, function(anchor) {
- var outElement = anchor['out'];
- var inElement = anchor['in'];
- var animator = prepareAnchoredAnimation(classes, outElement, inElement);
- if (animator) {
- anchorAnimations.push(animator);
- }
- });
-
- // no point in doing anything when there are no elements to animate
- if (!fromAnimation && !toAnimation && anchorAnimations.length === 0) return;
-
- return {
- start: function() {
- var animationRunners = [];
-
- if (fromAnimation) {
- animationRunners.push(fromAnimation.start());
- }
-
- if (toAnimation) {
- animationRunners.push(toAnimation.start());
- }
-
- forEach(anchorAnimations, function(animation) {
- animationRunners.push(animation.start());
- });
-
- var runner = new $$AnimateRunner({
- end: endFn,
- cancel: endFn // CSS-driven animations cannot be cancelled, only ended
- });
-
- $$AnimateRunner.all(animationRunners, function(status) {
- runner.complete(status);
- });
-
- return runner;
-
- function endFn() {
- forEach(animationRunners, function(runner) {
- runner.end();
- });
- }
- }
- };
- }
-
- function prepareRegularAnimation(animationDetails) {
- var element = animationDetails.element;
- var options = animationDetails.options || {};
-
- if (animationDetails.structural) {
- options.event = animationDetails.event;
- options.structural = true;
- options.applyClassesEarly = true;
-
- // we special case the leave animation since we want to ensure that
- // the element is removed as soon as the animation is over. Otherwise
- // a flicker might appear or the element may not be removed at all
- if (animationDetails.event === 'leave') {
- options.onDone = options.domOperation;
- }
- }
-
- // We assign the preparationClasses as the actual animation event since
- // the internals of $animateCss will just suffix the event token values
- // with `-active` to trigger the animation.
- if (options.preparationClasses) {
- options.event = concatWithSpace(options.event, options.preparationClasses);
- }
-
- var animator = $animateCss(element, options);
-
- // the driver lookup code inside of $$animation attempts to spawn a
- // driver one by one until a driver returns a.$$willAnimate animator object.
- // $animateCss will always return an object, however, it will pass in
- // a flag as a hint as to whether an animation was detected or not
- return animator.$$willAnimate ? animator : null;
- }
- }];
-}];
-
-// TODO(matsko): use caching here to speed things up for detection
-// TODO(matsko): add documentation
-// by the time...
-
-var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
- this.$get = ['$injector', '$$AnimateRunner', '$$jqLite',
- function($injector, $$AnimateRunner, $$jqLite) {
-
- var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
- // $animateJs(element, 'enter');
- return function(element, event, classes, options) {
- var animationClosed = false;
-
- // the `classes` argument is optional and if it is not used
- // then the classes will be resolved from the element's className
- // property as well as options.addClass/options.removeClass.
- if (arguments.length === 3 && isObject(classes)) {
- options = classes;
- classes = null;
- }
-
- options = prepareAnimationOptions(options);
- if (!classes) {
- classes = element.attr('class') || '';
- if (options.addClass) {
- classes += ' ' + options.addClass;
- }
- if (options.removeClass) {
- classes += ' ' + options.removeClass;
- }
- }
-
- var classesToAdd = options.addClass;
- var classesToRemove = options.removeClass;
-
- // the lookupAnimations function returns a series of animation objects that are
- // matched up with one or more of the CSS classes. These animation objects are
- // defined via the module.animation factory function. If nothing is detected then
- // we don't return anything which then makes $animation query the next driver.
- var animations = lookupAnimations(classes);
- var before, after;
- if (animations.length) {
- var afterFn, beforeFn;
- if (event == 'leave') {
- beforeFn = 'leave';
- afterFn = 'afterLeave'; // TODO(matsko): get rid of this
- } else {
- beforeFn = 'before' + event.charAt(0).toUpperCase() + event.substr(1);
- afterFn = event;
- }
-
- if (event !== 'enter' && event !== 'move') {
- before = packageAnimations(element, event, options, animations, beforeFn);
- }
- after = packageAnimations(element, event, options, animations, afterFn);
- }
-
- // no matching animations
- if (!before && !after) return;
-
- function applyOptions() {
- options.domOperation();
- applyAnimationClasses(element, options);
- }
-
- function close() {
- animationClosed = true;
- applyOptions();
- applyAnimationStyles(element, options);
- }
-
- var runner;
-
- return {
- $$willAnimate: true,
- end: function() {
- if (runner) {
- runner.end();
- } else {
- close();
- runner = new $$AnimateRunner();
- runner.complete(true);
- }
- return runner;
- },
- start: function() {
- if (runner) {
- return runner;
- }
-
- runner = new $$AnimateRunner();
- var closeActiveAnimations;
- var chain = [];
-
- if (before) {
- chain.push(function(fn) {
- closeActiveAnimations = before(fn);
- });
- }
-
- if (chain.length) {
- chain.push(function(fn) {
- applyOptions();
- fn(true);
- });
- } else {
- applyOptions();
- }
-
- if (after) {
- chain.push(function(fn) {
- closeActiveAnimations = after(fn);
- });
- }
-
- runner.setHost({
- end: function() {
- endAnimations();
- },
- cancel: function() {
- endAnimations(true);
- }
- });
-
- $$AnimateRunner.chain(chain, onComplete);
- return runner;
-
- function onComplete(success) {
- close(success);
- runner.complete(success);
- }
-
- function endAnimations(cancelled) {
- if (!animationClosed) {
- (closeActiveAnimations || noop)(cancelled);
- onComplete(cancelled);
- }
- }
- }
- };
-
- function executeAnimationFn(fn, element, event, options, onDone) {
- var args;
- switch (event) {
- case 'animate':
- args = [element, options.from, options.to, onDone];
- break;
-
- case 'setClass':
- args = [element, classesToAdd, classesToRemove, onDone];
- break;
-
- case 'addClass':
- args = [element, classesToAdd, onDone];
- break;
-
- case 'removeClass':
- args = [element, classesToRemove, onDone];
- break;
-
- default:
- args = [element, onDone];
- break;
- }
-
- args.push(options);
-
- var value = fn.apply(fn, args);
- if (value) {
- if (isFunction(value.start)) {
- value = value.start();
- }
-
- if (value instanceof $$AnimateRunner) {
- value.done(onDone);
- } else if (isFunction(value)) {
- // optional onEnd / onCancel callback
- return value;
- }
- }
-
- return noop;
- }
-
- function groupEventedAnimations(element, event, options, animations, fnName) {
- var operations = [];
- forEach(animations, function(ani) {
- var animation = ani[fnName];
- if (!animation) return;
-
- // note that all of these animations will run in parallel
- operations.push(function() {
- var runner;
- var endProgressCb;
-
- var resolved = false;
- var onAnimationComplete = function(rejected) {
- if (!resolved) {
- resolved = true;
- (endProgressCb || noop)(rejected);
- runner.complete(!rejected);
- }
- };
-
- runner = new $$AnimateRunner({
- end: function() {
- onAnimationComplete();
- },
- cancel: function() {
- onAnimationComplete(true);
- }
- });
-
- endProgressCb = executeAnimationFn(animation, element, event, options, function(result) {
- var cancelled = result === false;
- onAnimationComplete(cancelled);
- });
-
- return runner;
- });
- });
-
- return operations;
- }
-
- function packageAnimations(element, event, options, animations, fnName) {
- var operations = groupEventedAnimations(element, event, options, animations, fnName);
- if (operations.length === 0) {
- var a,b;
- if (fnName === 'beforeSetClass') {
- a = groupEventedAnimations(element, 'removeClass', options, animations, 'beforeRemoveClass');
- b = groupEventedAnimations(element, 'addClass', options, animations, 'beforeAddClass');
- } else if (fnName === 'setClass') {
- a = groupEventedAnimations(element, 'removeClass', options, animations, 'removeClass');
- b = groupEventedAnimations(element, 'addClass', options, animations, 'addClass');
- }
-
- if (a) {
- operations = operations.concat(a);
- }
- if (b) {
- operations = operations.concat(b);
- }
- }
-
- if (operations.length === 0) return;
-
- // TODO(matsko): add documentation
- return function startAnimation(callback) {
- var runners = [];
- if (operations.length) {
- forEach(operations, function(animateFn) {
- runners.push(animateFn());
- });
- }
-
- runners.length ? $$AnimateRunner.all(runners, callback) : callback();
-
- return function endFn(reject) {
- forEach(runners, function(runner) {
- reject ? runner.cancel() : runner.end();
- });
- };
- };
- }
- };
-
- function lookupAnimations(classes) {
- classes = isArray(classes) ? classes : classes.split(' ');
- var matches = [], flagMap = {};
- for (var i=0; i < classes.length; i++) {
- var klass = classes[i],
- animationFactory = $animateProvider.$$registeredAnimations[klass];
- if (animationFactory && !flagMap[klass]) {
- matches.push($injector.get(animationFactory));
- flagMap[klass] = true;
- }
- }
- return matches;
- }
- }];
-}];
-
-var $$AnimateJsDriverProvider = ['$$animationProvider', function($$animationProvider) {
- $$animationProvider.drivers.push('$$animateJsDriver');
- this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
- return function initDriverFn(animationDetails) {
- if (animationDetails.from && animationDetails.to) {
- var fromAnimation = prepareAnimation(animationDetails.from);
- var toAnimation = prepareAnimation(animationDetails.to);
- if (!fromAnimation && !toAnimation) return;
-
- return {
- start: function() {
- var animationRunners = [];
-
- if (fromAnimation) {
- animationRunners.push(fromAnimation.start());
- }
-
- if (toAnimation) {
- animationRunners.push(toAnimation.start());
- }
-
- $$AnimateRunner.all(animationRunners, done);
-
- var runner = new $$AnimateRunner({
- end: endFnFactory(),
- cancel: endFnFactory()
- });
-
- return runner;
-
- function endFnFactory() {
- return function() {
- forEach(animationRunners, function(runner) {
- // at this point we cannot cancel animations for groups just yet. 1.5+
- runner.end();
- });
- };
- }
-
- function done(status) {
- runner.complete(status);
- }
- }
- };
- } else {
- return prepareAnimation(animationDetails);
- }
- };
-
- function prepareAnimation(animationDetails) {
- // TODO(matsko): make sure to check for grouped animations and delegate down to normal animations
- var element = animationDetails.element;
- var event = animationDetails.event;
- var options = animationDetails.options;
- var classes = animationDetails.classes;
- return $$animateJs(element, event, classes, options);
- }
- }];
-}];
-
-var NG_ANIMATE_ATTR_NAME = 'data-ng-animate';
-var NG_ANIMATE_PIN_DATA = '$ngAnimatePin';
-var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
- var PRE_DIGEST_STATE = 1;
- var RUNNING_STATE = 2;
- var ONE_SPACE = ' ';
-
- var rules = this.rules = {
- skip: [],
- cancel: [],
- join: []
- };
-
- function makeTruthyCssClassMap(classString) {
- if (!classString) {
- return null;
- }
-
- var keys = classString.split(ONE_SPACE);
- var map = Object.create(null);
-
- forEach(keys, function(key) {
- map[key] = true;
- });
- return map;
- }
-
- function hasMatchingClasses(newClassString, currentClassString) {
- if (newClassString && currentClassString) {
- var currentClassMap = makeTruthyCssClassMap(currentClassString);
- return newClassString.split(ONE_SPACE).some(function(className) {
- return currentClassMap[className];
- });
- }
- }
-
- function isAllowed(ruleType, element, currentAnimation, previousAnimation) {
- return rules[ruleType].some(function(fn) {
- return fn(element, currentAnimation, previousAnimation);
- });
- }
-
- function hasAnimationClasses(animation, and) {
- var a = (animation.addClass || '').length > 0;
- var b = (animation.removeClass || '').length > 0;
- return and ? a && b : a || b;
- }
-
- rules.join.push(function(element, newAnimation, currentAnimation) {
- // if the new animation is class-based then we can just tack that on
- return !newAnimation.structural && hasAnimationClasses(newAnimation);
- });
-
- rules.skip.push(function(element, newAnimation, currentAnimation) {
- // there is no need to animate anything if no classes are being added and
- // there is no structural animation that will be triggered
- return !newAnimation.structural && !hasAnimationClasses(newAnimation);
- });
-
- rules.skip.push(function(element, newAnimation, currentAnimation) {
- // why should we trigger a new structural animation if the element will
- // be removed from the DOM anyway?
- return currentAnimation.event == 'leave' && newAnimation.structural;
- });
-
- rules.skip.push(function(element, newAnimation, currentAnimation) {
- // if there is an ongoing current animation then don't even bother running the class-based animation
- return currentAnimation.structural && currentAnimation.state === RUNNING_STATE && !newAnimation.structural;
- });
-
- rules.cancel.push(function(element, newAnimation, currentAnimation) {
- // there can never be two structural animations running at the same time
- return currentAnimation.structural && newAnimation.structural;
- });
-
- rules.cancel.push(function(element, newAnimation, currentAnimation) {
- // if the previous animation is already running, but the new animation will
- // be triggered, but the new animation is structural
- return currentAnimation.state === RUNNING_STATE && newAnimation.structural;
- });
-
- rules.cancel.push(function(element, newAnimation, currentAnimation) {
- var nA = newAnimation.addClass;
- var nR = newAnimation.removeClass;
- var cA = currentAnimation.addClass;
- var cR = currentAnimation.removeClass;
-
- // early detection to save the global CPU shortage :)
- if ((isUndefined(nA) && isUndefined(nR)) || (isUndefined(cA) && isUndefined(cR))) {
- return false;
- }
-
- return hasMatchingClasses(nA, cR) || hasMatchingClasses(nR, cA);
- });
-
- this.$get = ['$$rAF', '$rootScope', '$rootElement', '$document', '$$HashMap',
- '$$animation', '$$AnimateRunner', '$templateRequest', '$$jqLite', '$$forceReflow',
- function($$rAF, $rootScope, $rootElement, $document, $$HashMap,
- $$animation, $$AnimateRunner, $templateRequest, $$jqLite, $$forceReflow) {
-
- var activeAnimationsLookup = new $$HashMap();
- var disabledElementsLookup = new $$HashMap();
- var animationsEnabled = null;
-
- function postDigestTaskFactory() {
- var postDigestCalled = false;
- return function(fn) {
- // we only issue a call to postDigest before
- // it has first passed. This prevents any callbacks
- // from not firing once the animation has completed
- // since it will be out of the digest cycle.
- if (postDigestCalled) {
- fn();
- } else {
- $rootScope.$$postDigest(function() {
- postDigestCalled = true;
- fn();
- });
- }
- };
- }
-
- // Wait until all directive and route-related templates are downloaded and
- // compiled. The $templateRequest.totalPendingRequests variable keeps track of
- // all of the remote templates being currently downloaded. If there are no
- // templates currently downloading then the watcher will still fire anyway.
- var deregisterWatch = $rootScope.$watch(
- function() { return $templateRequest.totalPendingRequests === 0; },
- function(isEmpty) {
- if (!isEmpty) return;
- deregisterWatch();
-
- // Now that all templates have been downloaded, $animate will wait until
- // the post digest queue is empty before enabling animations. By having two
- // calls to $postDigest calls we can ensure that the flag is enabled at the
- // very end of the post digest queue. Since all of the animations in $animate
- // use $postDigest, it's important that the code below executes at the end.
- // This basically means that the page is fully downloaded and compiled before
- // any animations are triggered.
- $rootScope.$$postDigest(function() {
- $rootScope.$$postDigest(function() {
- // we check for null directly in the event that the application already called
- // .enabled() with whatever arguments that it provided it with
- if (animationsEnabled === null) {
- animationsEnabled = true;
- }
- });
- });
- }
- );
-
- var callbackRegistry = {};
-
- // remember that the classNameFilter is set during the provider/config
- // stage therefore we can optimize here and setup a helper function
- var classNameFilter = $animateProvider.classNameFilter();
- var isAnimatableClassName = !classNameFilter
- ? function() { return true; }
- : function(className) {
- return classNameFilter.test(className);
- };
-
- var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
-
- function normalizeAnimationDetails(element, animation) {
- return mergeAnimationDetails(element, animation, {});
- }
-
- // IE9-11 has no method "contains" in SVG element and in Node.prototype. Bug #10259.
- var contains = Node.prototype.contains || function(arg) {
- // jshint bitwise: false
- return this === arg || !!(this.compareDocumentPosition(arg) & 16);
- // jshint bitwise: true
- };
-
- function findCallbacks(parent, element, event) {
- var targetNode = getDomNode(element);
- var targetParentNode = getDomNode(parent);
-
- var matches = [];
- var entries = callbackRegistry[event];
- if (entries) {
- forEach(entries, function(entry) {
- if (contains.call(entry.node, targetNode)) {
- matches.push(entry.callback);
- } else if (event === 'leave' && contains.call(entry.node, targetParentNode)) {
- matches.push(entry.callback);
- }
- });
- }
-
- return matches;
- }
-
- return {
- on: function(event, container, callback) {
- var node = extractElementNode(container);
- callbackRegistry[event] = callbackRegistry[event] || [];
- callbackRegistry[event].push({
- node: node,
- callback: callback
- });
- },
-
- off: function(event, container, callback) {
- var entries = callbackRegistry[event];
- if (!entries) return;
-
- callbackRegistry[event] = arguments.length === 1
- ? null
- : filterFromRegistry(entries, container, callback);
-
- function filterFromRegistry(list, matchContainer, matchCallback) {
- var containerNode = extractElementNode(matchContainer);
- return list.filter(function(entry) {
- var isMatch = entry.node === containerNode &&
- (!matchCallback || entry.callback === matchCallback);
- return !isMatch;
- });
- }
- },
-
- pin: function(element, parentElement) {
- assertArg(isElement(element), 'element', 'not an element');
- assertArg(isElement(parentElement), 'parentElement', 'not an element');
- element.data(NG_ANIMATE_PIN_DATA, parentElement);
- },
-
- push: function(element, event, options, domOperation) {
- options = options || {};
- options.domOperation = domOperation;
- return queueAnimation(element, event, options);
- },
-
- // this method has four signatures:
- // () - global getter
- // (bool) - global setter
- // (element) - element getter
- // (element, bool) - element setter<F37>
- enabled: function(element, bool) {
- var argCount = arguments.length;
-
- if (argCount === 0) {
- // () - Global getter
- bool = !!animationsEnabled;
- } else {
- var hasElement = isElement(element);
-
- if (!hasElement) {
- // (bool) - Global setter
- bool = animationsEnabled = !!element;
- } else {
- var node = getDomNode(element);
- var recordExists = disabledElementsLookup.get(node);
-
- if (argCount === 1) {
- // (element) - Element getter
- bool = !recordExists;
- } else {
- // (element, bool) - Element setter
- disabledElementsLookup.put(node, !bool);
- }
- }
- }
-
- return bool;
- }
- };
-
- function queueAnimation(element, event, initialOptions) {
- // we always make a copy of the options since
- // there should never be any side effects on
- // the input data when running `$animateCss`.
- var options = copy(initialOptions);
-
- var node, parent;
- element = stripCommentsFromElement(element);
- if (element) {
- node = getDomNode(element);
- parent = element.parent();
- }
-
- options = prepareAnimationOptions(options);
-
- // we create a fake runner with a working promise.
- // These methods will become available after the digest has passed
- var runner = new $$AnimateRunner();
-
- // this is used to trigger callbacks in postDigest mode
- var runInNextPostDigestOrNow = postDigestTaskFactory();
-
- if (isArray(options.addClass)) {
- options.addClass = options.addClass.join(' ');
- }
-
- if (options.addClass && !isString(options.addClass)) {
- options.addClass = null;
- }
-
- if (isArray(options.removeClass)) {
- options.removeClass = options.removeClass.join(' ');
- }
-
- if (options.removeClass && !isString(options.removeClass)) {
- options.removeClass = null;
- }
-
- if (options.from && !isObject(options.from)) {
- options.from = null;
- }
-
- if (options.to && !isObject(options.to)) {
- options.to = null;
- }
-
- // there are situations where a directive issues an animation for
- // a jqLite wrapper that contains only comment nodes... If this
- // happens then there is no way we can perform an animation
- if (!node) {
- close();
- return runner;
- }
-
- var className = [node.className, options.addClass, options.removeClass].join(' ');
- if (!isAnimatableClassName(className)) {
- close();
- return runner;
- }
-
- var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0;
-
- // this is a hard disable of all animations for the application or on
- // the element itself, therefore there is no need to continue further
- // past this point if not enabled
- // Animations are also disabled if the document is currently hidden (page is not visible
- // to the user), because browsers slow down or do not flush calls to requestAnimationFrame
- var skipAnimations = !animationsEnabled || $document[0].hidden || disabledElementsLookup.get(node);
- var existingAnimation = (!skipAnimations && activeAnimationsLookup.get(node)) || {};
- var hasExistingAnimation = !!existingAnimation.state;
-
- // there is no point in traversing the same collection of parent ancestors if a followup
- // animation will be run on the same element that already did all that checking work
- if (!skipAnimations && (!hasExistingAnimation || existingAnimation.state != PRE_DIGEST_STATE)) {
- skipAnimations = !areAnimationsAllowed(element, parent, event);
- }
-
- if (skipAnimations) {
- close();
- return runner;
- }
-
- if (isStructural) {
- closeChildAnimations(element);
- }
-
- var newAnimation = {
- structural: isStructural,
- element: element,
- event: event,
- addClass: options.addClass,
- removeClass: options.removeClass,
- close: close,
- options: options,
- runner: runner
- };
-
- if (hasExistingAnimation) {
- var skipAnimationFlag = isAllowed('skip', element, newAnimation, existingAnimation);
- if (skipAnimationFlag) {
- if (existingAnimation.state === RUNNING_STATE) {
- close();
- return runner;
- } else {
- mergeAnimationDetails(element, existingAnimation, newAnimation);
- return existingAnimation.runner;
- }
- }
- var cancelAnimationFlag = isAllowed('cancel', element, newAnimation, existingAnimation);
- if (cancelAnimationFlag) {
- if (existingAnimation.state === RUNNING_STATE) {
- // this will end the animation right away and it is safe
- // to do so since the animation is already running and the
- // runner callback code will run in async
- existingAnimation.runner.end();
- } else if (existingAnimation.structural) {
- // this means that the animation is queued into a digest, but
- // hasn't started yet. Therefore it is safe to run the close
- // method which will call the runner methods in async.
- existingAnimation.close();
- } else {
- // this will merge the new animation options into existing animation options
- mergeAnimationDetails(element, existingAnimation, newAnimation);
-
- return existingAnimation.runner;
- }
- } else {
- // a joined animation means that this animation will take over the existing one
- // so an example would involve a leave animation taking over an enter. Then when
- // the postDigest kicks in the enter will be ignored.
- var joinAnimationFlag = isAllowed('join', element, newAnimation, existingAnimation);
- if (joinAnimationFlag) {
- if (existingAnimation.state === RUNNING_STATE) {
- normalizeAnimationDetails(element, newAnimation);
- } else {
- applyGeneratedPreparationClasses(element, isStructural ? event : null, options);
-
- event = newAnimation.event = existingAnimation.event;
- options = mergeAnimationDetails(element, existingAnimation, newAnimation);
-
- //we return the same runner since only the option values of this animation will
- //be fed into the `existingAnimation`.
- return existingAnimation.runner;
- }
- }
- }
- } else {
- // normalization in this case means that it removes redundant CSS classes that
- // already exist (addClass) or do not exist (removeClass) on the element
- normalizeAnimationDetails(element, newAnimation);
- }
-
- // when the options are merged and cleaned up we may end up not having to do
- // an animation at all, therefore we should check this before issuing a post
- // digest callback. Structural animations will always run no matter what.
- var isValidAnimation = newAnimation.structural;
- if (!isValidAnimation) {
- // animate (from/to) can be quickly checked first, otherwise we check if any classes are present
- isValidAnimation = (newAnimation.event === 'animate' && Object.keys(newAnimation.options.to || {}).length > 0)
- || hasAnimationClasses(newAnimation);
- }
-
- if (!isValidAnimation) {
- close();
- clearElementAnimationState(element);
- return runner;
- }
-
- // the counter keeps track of cancelled animations
- var counter = (existingAnimation.counter || 0) + 1;
- newAnimation.counter = counter;
-
- markElementAnimationState(element, PRE_DIGEST_STATE, newAnimation);
-
- $rootScope.$$postDigest(function() {
- var animationDetails = activeAnimationsLookup.get(node);
- var animationCancelled = !animationDetails;
- animationDetails = animationDetails || {};
-
- // if addClass/removeClass is called before something like enter then the
- // registered parent element may not be present. The code below will ensure
- // that a final value for parent element is obtained
- var parentElement = element.parent() || [];
-
- // animate/structural/class-based animations all have requirements. Otherwise there
- // is no point in performing an animation. The parent node must also be set.
- var isValidAnimation = parentElement.length > 0
- && (animationDetails.event === 'animate'
- || animationDetails.structural
- || hasAnimationClasses(animationDetails));
-
- // this means that the previous animation was cancelled
- // even if the follow-up animation is the same event
- if (animationCancelled || animationDetails.counter !== counter || !isValidAnimation) {
- // if another animation did not take over then we need
- // to make sure that the domOperation and options are
- // handled accordingly
- if (animationCancelled) {
- applyAnimationClasses(element, options);
- applyAnimationStyles(element, options);
- }
-
- // if the event changed from something like enter to leave then we do
- // it, otherwise if it's the same then the end result will be the same too
- if (animationCancelled || (isStructural && animationDetails.event !== event)) {
- options.domOperation();
- runner.end();
- }
-
- // in the event that the element animation was not cancelled or a follow-up animation
- // isn't allowed to animate from here then we need to clear the state of the element
- // so that any future animations won't read the expired animation data.
- if (!isValidAnimation) {
- clearElementAnimationState(element);
- }
-
- return;
- }
-
- // this combined multiple class to addClass / removeClass into a setClass event
- // so long as a structural event did not take over the animation
- event = !animationDetails.structural && hasAnimationClasses(animationDetails, true)
- ? 'setClass'
- : animationDetails.event;
-
- markElementAnimationState(element, RUNNING_STATE);
- var realRunner = $$animation(element, event, animationDetails.options);
-
- realRunner.done(function(status) {
- close(!status);
- var animationDetails = activeAnimationsLookup.get(node);
- if (animationDetails && animationDetails.counter === counter) {
- clearElementAnimationState(getDomNode(element));
- }
- notifyProgress(runner, event, 'close', {});
- });
-
- // this will update the runner's flow-control events based on
- // the `realRunner` object.
- runner.setHost(realRunner);
- notifyProgress(runner, event, 'start', {});
- });
-
- return runner;
-
- function notifyProgress(runner, event, phase, data) {
- runInNextPostDigestOrNow(function() {
- var callbacks = findCallbacks(parent, element, event);
- if (callbacks.length) {
- // do not optimize this call here to RAF because
- // we don't know how heavy the callback code here will
- // be and if this code is buffered then this can
- // lead to a performance regression.
- $$rAF(function() {
- forEach(callbacks, function(callback) {
- callback(element, phase, data);
- });
- });
- }
- });
- runner.progress(event, phase, data);
- }
-
- function close(reject) { // jshint ignore:line
- clearGeneratedClasses(element, options);
- applyAnimationClasses(element, options);
- applyAnimationStyles(element, options);
- options.domOperation();
- runner.complete(!reject);
- }
- }
-
- function closeChildAnimations(element) {
- var node = getDomNode(element);
- var children = node.querySelectorAll('[' + NG_ANIMATE_ATTR_NAME + ']');
- forEach(children, function(child) {
- var state = parseInt(child.getAttribute(NG_ANIMATE_ATTR_NAME));
- var animationDetails = activeAnimationsLookup.get(child);
- if (animationDetails) {
- switch (state) {
- case RUNNING_STATE:
- animationDetails.runner.end();
- /* falls through */
- case PRE_DIGEST_STATE:
- activeAnimationsLookup.remove(child);
- break;
- }
- }
- });
- }
-
- function clearElementAnimationState(element) {
- var node = getDomNode(element);
- node.removeAttribute(NG_ANIMATE_ATTR_NAME);
- activeAnimationsLookup.remove(node);
- }
-
- function isMatchingElement(nodeOrElmA, nodeOrElmB) {
- return getDomNode(nodeOrElmA) === getDomNode(nodeOrElmB);
- }
-
- /**
- * This fn returns false if any of the following is true:
- * a) animations on any parent element are disabled, and animations on the element aren't explicitly allowed
- * b) a parent element has an ongoing structural animation, and animateChildren is false
- * c) the element is not a child of the body
- * d) the element is not a child of the $rootElement
- */
- function areAnimationsAllowed(element, parentElement, event) {
- var bodyElement = jqLite($document[0].body);
- var bodyElementDetected = isMatchingElement(element, bodyElement) || element[0].nodeName === 'HTML';
- var rootElementDetected = isMatchingElement(element, $rootElement);
- var parentAnimationDetected = false;
- var animateChildren;
- var elementDisabled = disabledElementsLookup.get(getDomNode(element));
-
- var parentHost = element.data(NG_ANIMATE_PIN_DATA);
- if (parentHost) {
- parentElement = parentHost;
- }
-
- while (parentElement && parentElement.length) {
- if (!rootElementDetected) {
- // angular doesn't want to attempt to animate elements outside of the application
- // therefore we need to ensure that the rootElement is an ancestor of the current element
- rootElementDetected = isMatchingElement(parentElement, $rootElement);
- }
-
- var parentNode = parentElement[0];
- if (parentNode.nodeType !== ELEMENT_NODE) {
- // no point in inspecting the #document element
- break;
- }
-
- var details = activeAnimationsLookup.get(parentNode) || {};
- // either an enter, leave or move animation will commence
- // therefore we can't allow any animations to take place
- // but if a parent animation is class-based then that's ok
- if (!parentAnimationDetected) {
- var parentElementDisabled = disabledElementsLookup.get(parentNode);
-
- if (parentElementDisabled === true && elementDisabled !== false) {
- // disable animations if the user hasn't explicitly enabled animations on the
- // current element
- elementDisabled = true;
- // element is disabled via parent element, no need to check anything else
- break;
- } else if (parentElementDisabled === false) {
- elementDisabled = false;
- }
- parentAnimationDetected = details.structural;
- }
-
- if (isUndefined(animateChildren) || animateChildren === true) {
- var value = parentElement.data(NG_ANIMATE_CHILDREN_DATA);
- if (isDefined(value)) {
- animateChildren = value;
- }
- }
-
- // there is no need to continue traversing at this point
- if (parentAnimationDetected && animateChildren === false) break;
-
- if (!bodyElementDetected) {
- // we also need to ensure that the element is or will be a part of the body element
- // otherwise it is pointless to even issue an animation to be rendered
- bodyElementDetected = isMatchingElement(parentElement, bodyElement);
- }
-
- if (bodyElementDetected && rootElementDetected) {
- // If both body and root have been found, any other checks are pointless,
- // as no animation data should live outside the application
- break;
- }
-
- if (!rootElementDetected) {
- // If no rootElement is detected, check if the parentElement is pinned to another element
- parentHost = parentElement.data(NG_ANIMATE_PIN_DATA);
- if (parentHost) {
- // The pin target element becomes the next parent element
- parentElement = parentHost;
- continue;
- }
- }
-
- parentElement = parentElement.parent();
- }
-
- var allowAnimation = (!parentAnimationDetected || animateChildren) && elementDisabled !== true;
- return allowAnimation && rootElementDetected && bodyElementDetected;
- }
-
- function markElementAnimationState(element, state, details) {
- details = details || {};
- details.state = state;
-
- var node = getDomNode(element);
- node.setAttribute(NG_ANIMATE_ATTR_NAME, state);
-
- var oldValue = activeAnimationsLookup.get(node);
- var newValue = oldValue
- ? extend(oldValue, details)
- : details;
- activeAnimationsLookup.put(node, newValue);
- }
- }];
-}];
-
-var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
- var NG_ANIMATE_REF_ATTR = 'ng-animate-ref';
-
- var drivers = this.drivers = [];
-
- var RUNNER_STORAGE_KEY = '$$animationRunner';
-
- function setRunner(element, runner) {
- element.data(RUNNER_STORAGE_KEY, runner);
- }
-
- function removeRunner(element) {
- element.removeData(RUNNER_STORAGE_KEY);
- }
-
- function getRunner(element) {
- return element.data(RUNNER_STORAGE_KEY);
- }
-
- this.$get = ['$$jqLite', '$rootScope', '$injector', '$$AnimateRunner', '$$HashMap', '$$rAFScheduler',
- function($$jqLite, $rootScope, $injector, $$AnimateRunner, $$HashMap, $$rAFScheduler) {
-
- var animationQueue = [];
- var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
-
- function sortAnimations(animations) {
- var tree = { children: [] };
- var i, lookup = new $$HashMap();
-
- // this is done first beforehand so that the hashmap
- // is filled with a list of the elements that will be animated
- for (i = 0; i < animations.length; i++) {
- var animation = animations[i];
- lookup.put(animation.domNode, animations[i] = {
- domNode: animation.domNode,
- fn: animation.fn,
- children: []
- });
- }
-
- for (i = 0; i < animations.length; i++) {
- processNode(animations[i]);
- }
-
- return flatten(tree);
-
- function processNode(entry) {
- if (entry.processed) return entry;
- entry.processed = true;
-
- var elementNode = entry.domNode;
- var parentNode = elementNode.parentNode;
- lookup.put(elementNode, entry);
-
- var parentEntry;
- while (parentNode) {
- parentEntry = lookup.get(parentNode);
- if (parentEntry) {
- if (!parentEntry.processed) {
- parentEntry = processNode(parentEntry);
- }
- break;
- }
- parentNode = parentNode.parentNode;
- }
-
- (parentEntry || tree).children.push(entry);
- return entry;
- }
-
- function flatten(tree) {
- var result = [];
- var queue = [];
- var i;
-
- for (i = 0; i < tree.children.length; i++) {
- queue.push(tree.children[i]);
- }
-
- var remainingLevelEntries = queue.length;
- var nextLevelEntries = 0;
- var row = [];
-
- for (i = 0; i < queue.length; i++) {
- var entry = queue[i];
- if (remainingLevelEntries <= 0) {
- remainingLevelEntries = nextLevelEntries;
- nextLevelEntries = 0;
- result.push(row);
- row = [];
- }
- row.push(entry.fn);
- entry.children.forEach(function(childEntry) {
- nextLevelEntries++;
- queue.push(childEntry);
- });
- remainingLevelEntries--;
- }
-
- if (row.length) {
- result.push(row);
- }
-
- return result;
- }
- }
-
- // TODO(matsko): document the signature in a better way
- return function(element, event, options) {
- options = prepareAnimationOptions(options);
- var isStructural = ['enter', 'move', 'leave'].indexOf(event) >= 0;
-
- // there is no animation at the current moment, however
- // these runner methods will get later updated with the
- // methods leading into the driver's end/cancel methods
- // for now they just stop the animation from starting
- var runner = new $$AnimateRunner({
- end: function() { close(); },
- cancel: function() { close(true); }
- });
-
- if (!drivers.length) {
- close();
- return runner;
- }
-
- setRunner(element, runner);
-
- var classes = mergeClasses(element.attr('class'), mergeClasses(options.addClass, options.removeClass));
- var tempClasses = options.tempClasses;
- if (tempClasses) {
- classes += ' ' + tempClasses;
- options.tempClasses = null;
- }
-
- var prepareClassName;
- if (isStructural) {
- prepareClassName = 'ng-' + event + PREPARE_CLASS_SUFFIX;
- $$jqLite.addClass(element, prepareClassName);
- }
-
- animationQueue.push({
- // this data is used by the postDigest code and passed into
- // the driver step function
- element: element,
- classes: classes,
- event: event,
- structural: isStructural,
- options: options,
- beforeStart: beforeStart,
- close: close
- });
-
- element.on('$destroy', handleDestroyedElement);
-
- // we only want there to be one function called within the post digest
- // block. This way we can group animations for all the animations that
- // were apart of the same postDigest flush call.
- if (animationQueue.length > 1) return runner;
-
- $rootScope.$$postDigest(function() {
- var animations = [];
- forEach(animationQueue, function(entry) {
- // the element was destroyed early on which removed the runner
- // form its storage. This means we can't animate this element
- // at all and it already has been closed due to destruction.
- if (getRunner(entry.element)) {
- animations.push(entry);
- } else {
- entry.close();
- }
- });
-
- // now any future animations will be in another postDigest
- animationQueue.length = 0;
-
- var groupedAnimations = groupAnimations(animations);
- var toBeSortedAnimations = [];
-
- forEach(groupedAnimations, function(animationEntry) {
- toBeSortedAnimations.push({
- domNode: getDomNode(animationEntry.from ? animationEntry.from.element : animationEntry.element),
- fn: function triggerAnimationStart() {
- // it's important that we apply the `ng-animate` CSS class and the
- // temporary classes before we do any driver invoking since these
- // CSS classes may be required for proper CSS detection.
- animationEntry.beforeStart();
-
- var startAnimationFn, closeFn = animationEntry.close;
-
- // in the event that the element was removed before the digest runs or
- // during the RAF sequencing then we should not trigger the animation.
- var targetElement = animationEntry.anchors
- ? (animationEntry.from.element || animationEntry.to.element)
- : animationEntry.element;
-
- if (getRunner(targetElement)) {
- var operation = invokeFirstDriver(animationEntry);
- if (operation) {
- startAnimationFn = operation.start;
- }
- }
-
- if (!startAnimationFn) {
- closeFn();
- } else {
- var animationRunner = startAnimationFn();
- animationRunner.done(function(status) {
- closeFn(!status);
- });
- updateAnimationRunners(animationEntry, animationRunner);
- }
- }
- });
- });
-
- // we need to sort each of the animations in order of parent to child
- // relationships. This ensures that the child classes are applied at the
- // right time.
- $$rAFScheduler(sortAnimations(toBeSortedAnimations));
- });
-
- return runner;
-
- // TODO(matsko): change to reference nodes
- function getAnchorNodes(node) {
- var SELECTOR = '[' + NG_ANIMATE_REF_ATTR + ']';
- var items = node.hasAttribute(NG_ANIMATE_REF_ATTR)
- ? [node]
- : node.querySelectorAll(SELECTOR);
- var anchors = [];
- forEach(items, function(node) {
- var attr = node.getAttribute(NG_ANIMATE_REF_ATTR);
- if (attr && attr.length) {
- anchors.push(node);
- }
- });
- return anchors;
- }
-
- function groupAnimations(animations) {
- var preparedAnimations = [];
- var refLookup = {};
- forEach(animations, function(animation, index) {
- var element = animation.element;
- var node = getDomNode(element);
- var event = animation.event;
- var enterOrMove = ['enter', 'move'].indexOf(event) >= 0;
- var anchorNodes = animation.structural ? getAnchorNodes(node) : [];
-
- if (anchorNodes.length) {
- var direction = enterOrMove ? 'to' : 'from';
-
- forEach(anchorNodes, function(anchor) {
- var key = anchor.getAttribute(NG_ANIMATE_REF_ATTR);
- refLookup[key] = refLookup[key] || {};
- refLookup[key][direction] = {
- animationID: index,
- element: jqLite(anchor)
- };
- });
- } else {
- preparedAnimations.push(animation);
- }
- });
-
- var usedIndicesLookup = {};
- var anchorGroups = {};
- forEach(refLookup, function(operations, key) {
- var from = operations.from;
- var to = operations.to;
-
- if (!from || !to) {
- // only one of these is set therefore we can't have an
- // anchor animation since all three pieces are required
- var index = from ? from.animationID : to.animationID;
- var indexKey = index.toString();
- if (!usedIndicesLookup[indexKey]) {
- usedIndicesLookup[indexKey] = true;
- preparedAnimations.push(animations[index]);
- }
- return;
- }
-
- var fromAnimation = animations[from.animationID];
- var toAnimation = animations[to.animationID];
- var lookupKey = from.animationID.toString();
- if (!anchorGroups[lookupKey]) {
- var group = anchorGroups[lookupKey] = {
- structural: true,
- beforeStart: function() {
- fromAnimation.beforeStart();
- toAnimation.beforeStart();
- },
- close: function() {
- fromAnimation.close();
- toAnimation.close();
- },
- classes: cssClassesIntersection(fromAnimation.classes, toAnimation.classes),
- from: fromAnimation,
- to: toAnimation,
- anchors: [] // TODO(matsko): change to reference nodes
- };
-
- // the anchor animations require that the from and to elements both have at least
- // one shared CSS class which effectively marries the two elements together to use
- // the same animation driver and to properly sequence the anchor animation.
- if (group.classes.length) {
- preparedAnimations.push(group);
- } else {
- preparedAnimations.push(fromAnimation);
- preparedAnimations.push(toAnimation);
- }
- }
-
- anchorGroups[lookupKey].anchors.push({
- 'out': from.element, 'in': to.element
- });
- });
-
- return preparedAnimations;
- }
-
- function cssClassesIntersection(a,b) {
- a = a.split(' ');
- b = b.split(' ');
- var matches = [];
-
- for (var i = 0; i < a.length; i++) {
- var aa = a[i];
- if (aa.substring(0,3) === 'ng-') continue;
-
- for (var j = 0; j < b.length; j++) {
- if (aa === b[j]) {
- matches.push(aa);
- break;
- }
- }
- }
-
- return matches.join(' ');
- }
-
- function invokeFirstDriver(animationDetails) {
- // we loop in reverse order since the more general drivers (like CSS and JS)
- // may attempt more elements, but custom drivers are more particular
- for (var i = drivers.length - 1; i >= 0; i--) {
- var driverName = drivers[i];
- if (!$injector.has(driverName)) continue; // TODO(matsko): remove this check
-
- var factory = $injector.get(driverName);
- var driver = factory(animationDetails);
- if (driver) {
- return driver;
- }
- }
- }
-
- function beforeStart() {
- element.addClass(NG_ANIMATE_CLASSNAME);
- if (tempClasses) {
- $$jqLite.addClass(element, tempClasses);
- }
- if (prepareClassName) {
- $$jqLite.removeClass(element, prepareClassName);
- prepareClassName = null;
- }
- }
-
- function updateAnimationRunners(animation, newRunner) {
- if (animation.from && animation.to) {
- update(animation.from.element);
- update(animation.to.element);
- } else {
- update(animation.element);
- }
-
- function update(element) {
- getRunner(element).setHost(newRunner);
- }
- }
-
- function handleDestroyedElement() {
- var runner = getRunner(element);
- if (runner && (event !== 'leave' || !options.$$domOperationFired)) {
- runner.end();
- }
- }
-
- function close(rejected) { // jshint ignore:line
- element.off('$destroy', handleDestroyedElement);
- removeRunner(element);
-
- applyAnimationClasses(element, options);
- applyAnimationStyles(element, options);
- options.domOperation();
-
- if (tempClasses) {
- $$jqLite.removeClass(element, tempClasses);
- }
-
- element.removeClass(NG_ANIMATE_CLASSNAME);
- runner.complete(!rejected);
- }
- };
- }];
-}];
-
-/**
- * @ngdoc directive
- * @name ngAnimateSwap
- * @restrict A
- * @scope
- *
- * @description
- *
- * ngAnimateSwap is a animation-oriented directive that allows for the container to
- * be removed and entered in whenever the associated expression changes. A
- * common usecase for this directive is a rotating banner component which
- * contains one image being present at a time. When the active image changes
- * then the old image will perform a `leave` animation and the new element
- * will be inserted via an `enter` animation.
- *
- * @example
- * <example name="ngAnimateSwap-directive" module="ngAnimateSwapExample"
- * deps="angular-animate.js"
- * animations="true" fixBase="true">
- * <file name="index.html">
- * <div class="container" ng-controller="AppCtrl">
- * <div ng-animate-swap="number" class="cell swap-animation" ng-class="colorClass(number)">
- * {{ number }}
- * </div>
- * </div>
- * </file>
- * <file name="script.js">
- * angular.module('ngAnimateSwapExample', ['ngAnimate'])
- * .controller('AppCtrl', ['$scope', '$interval', function($scope, $interval) {
- * $scope.number = 0;
- * $interval(function() {
- * $scope.number++;
- * }, 1000);
- *
- * var colors = ['red','blue','green','yellow','orange'];
- * $scope.colorClass = function(number) {
- * return colors[number % colors.length];
- * };
- * }]);
- * </file>
- * <file name="animations.css">
- * .container {
- * height:250px;
- * width:250px;
- * position:relative;
- * overflow:hidden;
- * border:2px solid black;
- * }
- * .container .cell {
- * font-size:150px;
- * text-align:center;
- * line-height:250px;
- * position:absolute;
- * top:0;
- * left:0;
- * right:0;
- * border-bottom:2px solid black;
- * }
- * .swap-animation.ng-enter, .swap-animation.ng-leave {
- * transition:0.5s linear all;
- * }
- * .swap-animation.ng-enter {
- * top:-250px;
- * }
- * .swap-animation.ng-enter-active {
- * top:0px;
- * }
- * .swap-animation.ng-leave {
- * top:0px;
- * }
- * .swap-animation.ng-leave-active {
- * top:250px;
- * }
- * .red { background:red; }
- * .green { background:green; }
- * .blue { background:blue; }
- * .yellow { background:yellow; }
- * .orange { background:orange; }
- * </file>
- * </example>
- */
-var ngAnimateSwapDirective = ['$animate', '$rootScope', function($animate, $rootScope) {
- return {
- restrict: 'A',
- transclude: 'element',
- terminal: true,
- priority: 600, // we use 600 here to ensure that the directive is caught before others
- link: function(scope, $element, attrs, ctrl, $transclude) {
- var previousElement, previousScope;
- scope.$watchCollection(attrs.ngAnimateSwap || attrs['for'], function(value) {
- if (previousElement) {
- $animate.leave(previousElement);
- }
- if (previousScope) {
- previousScope.$destroy();
- previousScope = null;
- }
- if (value || value === 0) {
- previousScope = scope.$new();
- $transclude(previousScope, function(element) {
- previousElement = element;
- $animate.enter(element, null, $element);
- });
- }
- });
- }
- };
-}];
-
-/* global angularAnimateModule: true,
-
- ngAnimateSwapDirective,
- $$AnimateAsyncRunFactory,
- $$rAFSchedulerFactory,
- $$AnimateChildrenDirective,
- $$AnimateQueueProvider,
- $$AnimationProvider,
- $AnimateCssProvider,
- $$AnimateCssDriverProvider,
- $$AnimateJsProvider,
- $$AnimateJsDriverProvider,
-*/
-
-/**
- * @ngdoc module
- * @name ngAnimate
- * @description
- *
- * The `ngAnimate` module provides support for CSS-based animations (keyframes and transitions) as well as JavaScript-based animations via
- * callback hooks. Animations are not enabled by default, however, by including `ngAnimate` the animation hooks are enabled for an Angular app.
- *
- * <div doc-module-components="ngAnimate"></div>
- *
- * # Usage
- * Simply put, there are two ways to make use of animations when ngAnimate is used: by using **CSS** and **JavaScript**. The former works purely based
- * using CSS (by using matching CSS selectors/styles) and the latter triggers animations that are registered via `module.animation()`. For
- * both CSS and JS animations the sole requirement is to have a matching `CSS class` that exists both in the registered animation and within
- * the HTML element that the animation will be triggered on.
- *
- * ## Directive Support
- * The following directives are "animation aware":
- *
- * | Directive | Supported Animations |
- * |----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
- * | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave and move |
- * | {@link ngRoute.directive:ngView#animations ngView} | enter and leave |
- * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave |
- * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave |
- * | {@link ng.directive:ngIf#animations ngIf} | enter and leave |
- * | {@link ng.directive:ngClass#animations ngClass} | add and remove (the CSS class(es) present) |
- * | {@link ng.directive:ngShow#animations ngShow} & {@link ng.directive:ngHide#animations ngHide} | add and remove (the ng-hide class value) |
- * | {@link ng.directive:form#animation-hooks form} & {@link ng.directive:ngModel#animation-hooks ngModel} | add and remove (dirty, pristine, valid, invalid & all other validations) |
- * | {@link module:ngMessages#animations ngMessages} | add and remove (ng-active & ng-inactive) |
- * | {@link module:ngMessages#animations ngMessage} | enter and leave |
- *
- * (More information can be found by visiting each the documentation associated with each directive.)
- *
- * ## CSS-based Animations
- *
- * CSS-based animations with ngAnimate are unique since they require no JavaScript code at all. By using a CSS class that we reference between our HTML
- * and CSS code we can create an animation that will be picked up by Angular when an the underlying directive performs an operation.
- *
- * The example below shows how an `enter` animation can be made possible on an element using `ng-if`:
- *
- * ```html
- * <div ng-if="bool" class="fade">
- * Fade me in out
- * </div>
- * <button ng-click="bool=true">Fade In!</button>
- * <button ng-click="bool=false">Fade Out!</button>
- * ```
- *
- * Notice the CSS class **fade**? We can now create the CSS transition code that references this class:
- *
- * ```css
- * /&#42; The starting CSS styles for the enter animation &#42;/
- * .fade.ng-enter {
- * transition:0.5s linear all;
- * opacity:0;
- * }
- *
- * /&#42; The finishing CSS styles for the enter animation &#42;/
- * .fade.ng-enter.ng-enter-active {
- * opacity:1;
- * }
- * ```
- *
- * The key thing to remember here is that, depending on the animation event (which each of the directives above trigger depending on what's going on) two
- * generated CSS classes will be applied to the element; in the example above we have `.ng-enter` and `.ng-enter-active`. For CSS transitions, the transition
- * code **must** be defined within the starting CSS class (in this case `.ng-enter`). The destination class is what the transition will animate towards.
- *
- * If for example we wanted to create animations for `leave` and `move` (ngRepeat triggers move) then we can do so using the same CSS naming conventions:
- *
- * ```css
- * /&#42; now the element will fade out before it is removed from the DOM &#42;/
- * .fade.ng-leave {
- * transition:0.5s linear all;
- * opacity:1;
- * }
- * .fade.ng-leave.ng-leave-active {
- * opacity:0;
- * }
- * ```
- *
- * We can also make use of **CSS Keyframes** by referencing the keyframe animation within the starting CSS class:
- *
- * ```css
- * /&#42; there is no need to define anything inside of the destination
- * CSS class since the keyframe will take charge of the animation &#42;/
- * .fade.ng-leave {
- * animation: my_fade_animation 0.5s linear;
- * -webkit-animation: my_fade_animation 0.5s linear;
- * }
- *
- * @keyframes my_fade_animation {
- * from { opacity:1; }
- * to { opacity:0; }
- * }
- *
- * @-webkit-keyframes my_fade_animation {
- * from { opacity:1; }
- * to { opacity:0; }
- * }
- * ```
- *
- * Feel free also mix transitions and keyframes together as well as any other CSS classes on the same element.
- *
- * ### CSS Class-based Animations
- *
- * Class-based animations (animations that are triggered via `ngClass`, `ngShow`, `ngHide` and some other directives) have a slightly different
- * naming convention. Class-based animations are basic enough that a standard transition or keyframe can be referenced on the class being added
- * and removed.
- *
- * For example if we wanted to do a CSS animation for `ngHide` then we place an animation on the `.ng-hide` CSS class:
- *
- * ```html
- * <div ng-show="bool" class="fade">
- * Show and hide me
- * </div>
- * <button ng-click="bool=true">Toggle</button>
- *
- * <style>
- * .fade.ng-hide {
- * transition:0.5s linear all;
- * opacity:0;
- * }
- * </style>
- * ```
- *
- * All that is going on here with ngShow/ngHide behind the scenes is the `.ng-hide` class is added/removed (when the hidden state is valid). Since
- * ngShow and ngHide are animation aware then we can match up a transition and ngAnimate handles the rest.
- *
- * In addition the addition and removal of the CSS class, ngAnimate also provides two helper methods that we can use to further decorate the animation
- * with CSS styles.
- *
- * ```html
- * <div ng-class="{on:onOff}" class="highlight">
- * Highlight this box
- * </div>
- * <button ng-click="onOff=!onOff">Toggle</button>
- *
- * <style>
- * .highlight {
- * transition:0.5s linear all;
- * }
- * .highlight.on-add {
- * background:white;
- * }
- * .highlight.on {
- * background:yellow;
- * }
- * .highlight.on-remove {
- * background:black;
- * }
- * </style>
- * ```
- *
- * We can also make use of CSS keyframes by placing them within the CSS classes.
- *
- *
- * ### CSS Staggering Animations
- * A Staggering animation is a collection of animations that are issued with a slight delay in between each successive operation resulting in a
- * curtain-like effect. The ngAnimate module (versions >=1.2) supports staggering animations and the stagger effect can be
- * performed by creating a **ng-EVENT-stagger** CSS class and attaching that class to the base CSS class used for
- * the animation. The style property expected within the stagger class can either be a **transition-delay** or an
- * **animation-delay** property (or both if your animation contains both transitions and keyframe animations).
- *
- * ```css
- * .my-animation.ng-enter {
- * /&#42; standard transition code &#42;/
- * transition: 1s linear all;
- * opacity:0;
- * }
- * .my-animation.ng-enter-stagger {
- * /&#42; this will have a 100ms delay between each successive leave animation &#42;/
- * transition-delay: 0.1s;
- *
- * /&#42; As of 1.4.4, this must always be set: it signals ngAnimate
- * to not accidentally inherit a delay property from another CSS class &#42;/
- * transition-duration: 0s;
- * }
- * .my-animation.ng-enter.ng-enter-active {
- * /&#42; standard transition styles &#42;/
- * opacity:1;
- * }
- * ```
- *
- * Staggering animations work by default in ngRepeat (so long as the CSS class is defined). Outside of ngRepeat, to use staggering animations
- * on your own, they can be triggered by firing multiple calls to the same event on $animate. However, the restrictions surrounding this
- * are that each of the elements must have the same CSS className value as well as the same parent element. A stagger operation
- * will also be reset if one or more animation frames have passed since the multiple calls to `$animate` were fired.
- *
- * The following code will issue the **ng-leave-stagger** event on the element provided:
- *
- * ```js
- * var kids = parent.children();
- *
- * $animate.leave(kids[0]); //stagger index=0
- * $animate.leave(kids[1]); //stagger index=1
- * $animate.leave(kids[2]); //stagger index=2
- * $animate.leave(kids[3]); //stagger index=3
- * $animate.leave(kids[4]); //stagger index=4
- *
- * window.requestAnimationFrame(function() {
- * //stagger has reset itself
- * $animate.leave(kids[5]); //stagger index=0
- * $animate.leave(kids[6]); //stagger index=1
- *
- * $scope.$digest();
- * });
- * ```
- *
- * Stagger animations are currently only supported within CSS-defined animations.
- *
- * ### The `ng-animate` CSS class
- *
- * When ngAnimate is animating an element it will apply the `ng-animate` CSS class to the element for the duration of the animation.
- * This is a temporary CSS class and it will be removed once the animation is over (for both JavaScript and CSS-based animations).
- *
- * Therefore, animations can be applied to an element using this temporary class directly via CSS.
- *
- * ```css
- * .zipper.ng-animate {
- * transition:0.5s linear all;
- * }
- * .zipper.ng-enter {
- * opacity:0;
- * }
- * .zipper.ng-enter.ng-enter-active {
- * opacity:1;
- * }
- * .zipper.ng-leave {
- * opacity:1;
- * }
- * .zipper.ng-leave.ng-leave-active {
- * opacity:0;
- * }
- * ```
- *
- * (Note that the `ng-animate` CSS class is reserved and it cannot be applied on an element directly since ngAnimate will always remove
- * the CSS class once an animation has completed.)
- *
- *
- * ### The `ng-[event]-prepare` class
- *
- * This is a special class that can be used to prevent unwanted flickering / flash of content before
- * the actual animation starts. The class is added as soon as an animation is initialized, but removed
- * before the actual animation starts (after waiting for a $digest).
- * It is also only added for *structural* animations (`enter`, `move`, and `leave`).
- *
- * In practice, flickering can appear when nesting elements with structural animations such as `ngIf`
- * into elements that have class-based animations such as `ngClass`.
- *
- * ```html
- * <div ng-class="{red: myProp}">
- * <div ng-class="{blue: myProp}">
- * <div class="message" ng-if="myProp"></div>
- * </div>
- * </div>
- * ```
- *
- * It is possible that during the `enter` animation, the `.message` div will be briefly visible before it starts animating.
- * In that case, you can add styles to the CSS that make sure the element stays hidden before the animation starts:
- *
- * ```css
- * .message.ng-enter-prepare {
- * opacity: 0;
- * }
- *
- * ```
- *
- * ## JavaScript-based Animations
- *
- * ngAnimate also allows for animations to be consumed by JavaScript code. The approach is similar to CSS-based animations (where there is a shared
- * CSS class that is referenced in our HTML code) but in addition we need to register the JavaScript animation on the module. By making use of the
- * `module.animation()` module function we can register the animation.
- *
- * Let's see an example of a enter/leave animation using `ngRepeat`:
- *
- * ```html
- * <div ng-repeat="item in items" class="slide">
- * {{ item }}
- * </div>
- * ```
- *
- * See the **slide** CSS class? Let's use that class to define an animation that we'll structure in our module code by using `module.animation`:
- *
- * ```js
- * myModule.animation('.slide', [function() {
- * return {
- * // make note that other events (like addClass/removeClass)
- * // have different function input parameters
- * enter: function(element, doneFn) {
- * jQuery(element).fadeIn(1000, doneFn);
- *
- * // remember to call doneFn so that angular
- * // knows that the animation has concluded
- * },
- *
- * move: function(element, doneFn) {
- * jQuery(element).fadeIn(1000, doneFn);
- * },
- *
- * leave: function(element, doneFn) {
- * jQuery(element).fadeOut(1000, doneFn);
- * }
- * }
- * }]);
- * ```
- *
- * The nice thing about JS-based animations is that we can inject other services and make use of advanced animation libraries such as
- * greensock.js and velocity.js.
- *
- * If our animation code class-based (meaning that something like `ngClass`, `ngHide` and `ngShow` triggers it) then we can still define
- * our animations inside of the same registered animation, however, the function input arguments are a bit different:
- *
- * ```html
- * <div ng-class="color" class="colorful">
- * this box is moody
- * </div>
- * <button ng-click="color='red'">Change to red</button>
- * <button ng-click="color='blue'">Change to blue</button>
- * <button ng-click="color='green'">Change to green</button>
- * ```
- *
- * ```js
- * myModule.animation('.colorful', [function() {
- * return {
- * addClass: function(element, className, doneFn) {
- * // do some cool animation and call the doneFn
- * },
- * removeClass: function(element, className, doneFn) {
- * // do some cool animation and call the doneFn
- * },
- * setClass: function(element, addedClass, removedClass, doneFn) {
- * // do some cool animation and call the doneFn
- * }
- * }
- * }]);
- * ```
- *
- * ## CSS + JS Animations Together
- *
- * AngularJS 1.4 and higher has taken steps to make the amalgamation of CSS and JS animations more flexible. However, unlike earlier versions of Angular,
- * defining CSS and JS animations to work off of the same CSS class will not work anymore. Therefore the example below will only result in **JS animations taking
- * charge of the animation**:
- *
- * ```html
- * <div ng-if="bool" class="slide">
- * Slide in and out
- * </div>
- * ```
- *
- * ```js
- * myModule.animation('.slide', [function() {
- * return {
- * enter: function(element, doneFn) {
- * jQuery(element).slideIn(1000, doneFn);
- * }
- * }
- * }]);
- * ```
- *
- * ```css
- * .slide.ng-enter {
- * transition:0.5s linear all;
- * transform:translateY(-100px);
- * }
- * .slide.ng-enter.ng-enter-active {
- * transform:translateY(0);
- * }
- * ```
- *
- * Does this mean that CSS and JS animations cannot be used together? Do JS-based animations always have higher priority? We can make up for the
- * lack of CSS animations by using the `$animateCss` service to trigger our own tweaked-out, CSS-based animations directly from
- * our own JS-based animation code:
- *
- * ```js
- * myModule.animation('.slide', ['$animateCss', function($animateCss) {
- * return {
- * enter: function(element) {
-* // this will trigger `.slide.ng-enter` and `.slide.ng-enter-active`.
- * return $animateCss(element, {
- * event: 'enter',
- * structural: true
- * });
- * }
- * }
- * }]);
- * ```
- *
- * The nice thing here is that we can save bandwidth by sticking to our CSS-based animation code and we don't need to rely on a 3rd-party animation framework.
- *
- * The `$animateCss` service is very powerful since we can feed in all kinds of extra properties that will be evaluated and fed into a CSS transition or
- * keyframe animation. For example if we wanted to animate the height of an element while adding and removing classes then we can do so by providing that
- * data into `$animateCss` directly:
- *
- * ```js
- * myModule.animation('.slide', ['$animateCss', function($animateCss) {
- * return {
- * enter: function(element) {
- * return $animateCss(element, {
- * event: 'enter',
- * structural: true,
- * addClass: 'maroon-setting',
- * from: { height:0 },
- * to: { height: 200 }
- * });
- * }
- * }
- * }]);
- * ```
- *
- * Now we can fill in the rest via our transition CSS code:
- *
- * ```css
- * /&#42; the transition tells ngAnimate to make the animation happen &#42;/
- * .slide.ng-enter { transition:0.5s linear all; }
- *
- * /&#42; this extra CSS class will be absorbed into the transition
- * since the $animateCss code is adding the class &#42;/
- * .maroon-setting { background:red; }
- * ```
- *
- * And `$animateCss` will figure out the rest. Just make sure to have the `done()` callback fire the `doneFn` function to signal when the animation is over.
- *
- * To learn more about what's possible be sure to visit the {@link ngAnimate.$animateCss $animateCss service}.
- *
- * ## Animation Anchoring (via `ng-animate-ref`)
- *
- * ngAnimate in AngularJS 1.4 comes packed with the ability to cross-animate elements between
- * structural areas of an application (like views) by pairing up elements using an attribute
- * called `ng-animate-ref`.
- *
- * Let's say for example we have two views that are managed by `ng-view` and we want to show
- * that there is a relationship between two components situated in within these views. By using the
- * `ng-animate-ref` attribute we can identify that the two components are paired together and we
- * can then attach an animation, which is triggered when the view changes.
- *
- * Say for example we have the following template code:
- *
- * ```html
- * <!-- index.html -->
- * <div ng-view class="view-animation">
- * </div>
- *
- * <!-- home.html -->
- * <a href="#/banner-page">
- * <img src="./banner.jpg" class="banner" ng-animate-ref="banner">
- * </a>
- *
- * <!-- banner-page.html -->
- * <img src="./banner.jpg" class="banner" ng-animate-ref="banner">
- * ```
- *
- * Now, when the view changes (once the link is clicked), ngAnimate will examine the
- * HTML contents to see if there is a match reference between any components in the view
- * that is leaving and the view that is entering. It will scan both the view which is being
- * removed (leave) and inserted (enter) to see if there are any paired DOM elements that
- * contain a matching ref value.
- *
- * The two images match since they share the same ref value. ngAnimate will now create a
- * transport element (which is a clone of the first image element) and it will then attempt
- * to animate to the position of the second image element in the next view. For the animation to
- * work a special CSS class called `ng-anchor` will be added to the transported element.
- *
- * We can now attach a transition onto the `.banner.ng-anchor` CSS class and then
- * ngAnimate will handle the entire transition for us as well as the addition and removal of
- * any changes of CSS classes between the elements:
- *
- * ```css
- * .banner.ng-anchor {
- * /&#42; this animation will last for 1 second since there are
- * two phases to the animation (an `in` and an `out` phase) &#42;/
- * transition:0.5s linear all;
- * }
- * ```
- *
- * We also **must** include animations for the views that are being entered and removed
- * (otherwise anchoring wouldn't be possible since the new view would be inserted right away).
- *
- * ```css
- * .view-animation.ng-enter, .view-animation.ng-leave {
- * transition:0.5s linear all;
- * position:fixed;
- * left:0;
- * top:0;
- * width:100%;
- * }
- * .view-animation.ng-enter {
- * transform:translateX(100%);
- * }
- * .view-animation.ng-leave,
- * .view-animation.ng-enter.ng-enter-active {
- * transform:translateX(0%);
- * }
- * .view-animation.ng-leave.ng-leave-active {
- * transform:translateX(-100%);
- * }
- * ```
- *
- * Now we can jump back to the anchor animation. When the animation happens, there are two stages that occur:
- * an `out` and an `in` stage. The `out` stage happens first and that is when the element is animated away
- * from its origin. Once that animation is over then the `in` stage occurs which animates the
- * element to its destination. The reason why there are two animations is to give enough time
- * for the enter animation on the new element to be ready.
- *
- * The example above sets up a transition for both the in and out phases, but we can also target the out or
- * in phases directly via `ng-anchor-out` and `ng-anchor-in`.
- *
- * ```css
- * .banner.ng-anchor-out {
- * transition: 0.5s linear all;
- *
- * /&#42; the scale will be applied during the out animation,
- * but will be animated away when the in animation runs &#42;/
- * transform: scale(1.2);
- * }
- *
- * .banner.ng-anchor-in {
- * transition: 1s linear all;
- * }
- * ```
- *
- *
- *
- *
- * ### Anchoring Demo
- *
- <example module="anchoringExample"
- name="anchoringExample"
- id="anchoringExample"
- deps="angular-animate.js;angular-route.js"
- animations="true">
- <file name="index.html">
- <a href="#/">Home</a>
- <hr />
- <div class="view-container">
- <div ng-view class="view"></div>
- </div>
- </file>
- <file name="script.js">
- angular.module('anchoringExample', ['ngAnimate', 'ngRoute'])
- .config(['$routeProvider', function($routeProvider) {
- $routeProvider.when('/', {
- templateUrl: 'home.html',
- controller: 'HomeController as home'
- });
- $routeProvider.when('/profile/:id', {
- templateUrl: 'profile.html',
- controller: 'ProfileController as profile'
- });
- }])
- .run(['$rootScope', function($rootScope) {
- $rootScope.records = [
- { id:1, title: "Miss Beulah Roob" },
- { id:2, title: "Trent Morissette" },
- { id:3, title: "Miss Ava Pouros" },
- { id:4, title: "Rod Pouros" },
- { id:5, title: "Abdul Rice" },
- { id:6, title: "Laurie Rutherford Sr." },
- { id:7, title: "Nakia McLaughlin" },
- { id:8, title: "Jordon Blanda DVM" },
- { id:9, title: "Rhoda Hand" },
- { id:10, title: "Alexandrea Sauer" }
- ];
- }])
- .controller('HomeController', [function() {
- //empty
- }])
- .controller('ProfileController', ['$rootScope', '$routeParams', function($rootScope, $routeParams) {
- var index = parseInt($routeParams.id, 10);
- var record = $rootScope.records[index - 1];
-
- this.title = record.title;
- this.id = record.id;
- }]);
- </file>
- <file name="home.html">
- <h2>Welcome to the home page</h1>
- <p>Please click on an element</p>
- <a class="record"
- ng-href="#/profile/{{ record.id }}"
- ng-animate-ref="{{ record.id }}"
- ng-repeat="record in records">
- {{ record.title }}
- </a>
- </file>
- <file name="profile.html">
- <div class="profile record" ng-animate-ref="{{ profile.id }}">
- {{ profile.title }}
- </div>
- </file>
- <file name="animations.css">
- .record {
- display:block;
- font-size:20px;
- }
- .profile {
- background:black;
- color:white;
- font-size:100px;
- }
- .view-container {
- position:relative;
- }
- .view-container > .view.ng-animate {
- position:absolute;
- top:0;
- left:0;
- width:100%;
- min-height:500px;
- }
- .view.ng-enter, .view.ng-leave,
- .record.ng-anchor {
- transition:0.5s linear all;
- }
- .view.ng-enter {
- transform:translateX(100%);
- }
- .view.ng-enter.ng-enter-active, .view.ng-leave {
- transform:translateX(0%);
- }
- .view.ng-leave.ng-leave-active {
- transform:translateX(-100%);
- }
- .record.ng-anchor-out {
- background:red;
- }
- </file>
- </example>
- *
- * ### How is the element transported?
- *
- * When an anchor animation occurs, ngAnimate will clone the starting element and position it exactly where the starting
- * element is located on screen via absolute positioning. The cloned element will be placed inside of the root element
- * of the application (where ng-app was defined) and all of the CSS classes of the starting element will be applied. The
- * element will then animate into the `out` and `in` animations and will eventually reach the coordinates and match
- * the dimensions of the destination element. During the entire animation a CSS class of `.ng-animate-shim` will be applied
- * to both the starting and destination elements in order to hide them from being visible (the CSS styling for the class
- * is: `visibility:hidden`). Once the anchor reaches its destination then it will be removed and the destination element
- * will become visible since the shim class will be removed.
- *
- * ### How is the morphing handled?
- *
- * CSS Anchoring relies on transitions and keyframes and the internal code is intelligent enough to figure out
- * what CSS classes differ between the starting element and the destination element. These different CSS classes
- * will be added/removed on the anchor element and a transition will be applied (the transition that is provided
- * in the anchor class). Long story short, ngAnimate will figure out what classes to add and remove which will
- * make the transition of the element as smooth and automatic as possible. Be sure to use simple CSS classes that
- * do not rely on DOM nesting structure so that the anchor element appears the same as the starting element (since
- * the cloned element is placed inside of root element which is likely close to the body element).
- *
- * Note that if the root element is on the `<html>` element then the cloned node will be placed inside of body.
- *
- *
- * ## Using $animate in your directive code
- *
- * So far we've explored how to feed in animations into an Angular application, but how do we trigger animations within our own directives in our application?
- * By injecting the `$animate` service into our directive code, we can trigger structural and class-based hooks which can then be consumed by animations. Let's
- * imagine we have a greeting box that shows and hides itself when the data changes
- *
- * ```html
- * <greeting-box active="onOrOff">Hi there</greeting-box>
- * ```
- *
- * ```js
- * ngModule.directive('greetingBox', ['$animate', function($animate) {
- * return function(scope, element, attrs) {
- * attrs.$observe('active', function(value) {
- * value ? $animate.addClass(element, 'on') : $animate.removeClass(element, 'on');
- * });
- * });
- * }]);
- * ```
- *
- * Now the `on` CSS class is added and removed on the greeting box component. Now if we add a CSS class on top of the greeting box element
- * in our HTML code then we can trigger a CSS or JS animation to happen.
- *
- * ```css
- * /&#42; normally we would create a CSS class to reference on the element &#42;/
- * greeting-box.on { transition:0.5s linear all; background:green; color:white; }
- * ```
- *
- * The `$animate` service contains a variety of other methods like `enter`, `leave`, `animate` and `setClass`. To learn more about what's
- * possible be sure to visit the {@link ng.$animate $animate service API page}.
- *
- *
- * ### Preventing Collisions With Third Party Libraries
- *
- * Some third-party frameworks place animation duration defaults across many element or className
- * selectors in order to make their code small and reuseable. This can lead to issues with ngAnimate, which
- * is expecting actual animations on these elements and has to wait for their completion.
- *
- * You can prevent this unwanted behavior by using a prefix on all your animation classes:
- *
- * ```css
- * /&#42; prefixed with animate- &#42;/
- * .animate-fade-add.animate-fade-add-active {
- * transition:1s linear all;
- * opacity:0;
- * }
- * ```
- *
- * You then configure `$animate` to enforce this prefix:
- *
- * ```js
- * $animateProvider.classNameFilter(/animate-/);
- * ```
- *
- * This also may provide your application with a speed boost since only specific elements containing CSS class prefix
- * will be evaluated for animation when any DOM changes occur in the application.
- *
- * ## Callbacks and Promises
- *
- * When `$animate` is called it returns a promise that can be used to capture when the animation has ended. Therefore if we were to trigger
- * an animation (within our directive code) then we can continue performing directive and scope related activities after the animation has
- * ended by chaining onto the returned promise that animation method returns.
- *
- * ```js
- * // somewhere within the depths of the directive
- * $animate.enter(element, parent).then(function() {
- * //the animation has completed
- * });
- * ```
- *
- * (Note that earlier versions of Angular prior to v1.4 required the promise code to be wrapped using `$scope.$apply(...)`. This is not the case
- * anymore.)
- *
- * In addition to the animation promise, we can also make use of animation-related callbacks within our directives and controller code by registering
- * an event listener using the `$animate` service. Let's say for example that an animation was triggered on our view
- * routing controller to hook into that:
- *
- * ```js
- * ngModule.controller('HomePageController', ['$animate', function($animate) {
- * $animate.on('enter', ngViewElement, function(element) {
- * // the animation for this route has completed
- * }]);
- * }])
- * ```
- *
- * (Note that you will need to trigger a digest within the callback to get angular to notice any scope-related changes.)
- */
-
-/**
- * @ngdoc service
- * @name $animate
- * @kind object
- *
- * @description
- * The ngAnimate `$animate` service documentation is the same for the core `$animate` service.
- *
- * Click here {@link ng.$animate to learn more about animations with `$animate`}.
- */
-angular.module('ngAnimate', [])
- .directive('ngAnimateSwap', ngAnimateSwapDirective)
-
- .directive('ngAnimateChildren', $$AnimateChildrenDirective)
- .factory('$$rAFScheduler', $$rAFSchedulerFactory)
-
- .provider('$$animateQueue', $$AnimateQueueProvider)
- .provider('$$animation', $$AnimationProvider)
-
- .provider('$animateCss', $AnimateCssProvider)
- .provider('$$animateCssDriver', $$AnimateCssDriverProvider)
-
- .provider('$$animateJs', $$AnimateJsProvider)
- .provider('$$animateJsDriver', $$AnimateJsDriverProvider);
-
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.min.js b/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.min.js
deleted file mode 100644
index 8e8e41df..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.min.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- AngularJS v1.5.0
- (c) 2010-2016 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(D,r,Va){'use strict';function ya(a,b,c){if(!a)throw Ka("areq",b||"?",c||"required");return a}function za(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;ba(a)&&(a=a.join(" "));ba(b)&&(b=b.join(" "));return a+" "+b}function La(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function X(a,b,c){var d="";a=ba(a)?a:a&&R(a)&&a.length?a.split(/\s+/):[];s(a,function(a,g){a&&0<a.length&&(d+=0<g?" ":"",d+=c?b+a:a+b)});return d}function Ma(a){if(a instanceof I)switch(a.length){case 0:return[];
-case 1:if(1===a[0].nodeType)return a;break;default:return I(oa(a))}if(1===a.nodeType)return I(a)}function oa(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(1==c.nodeType)return c}}function Na(a,b,c){s(b,function(b){a.addClass(b,c)})}function Oa(a,b,c){s(b,function(b){a.removeClass(b,c)})}function U(a){return function(b,c){c.addClass&&(Na(a,b,c.addClass),c.addClass=null);c.removeClass&&(Oa(a,b,c.removeClass),c.removeClass=null)}}function ka(a){a=a||{};if(!a.$$prepared){var b=a.domOperation||
-Q;a.domOperation=function(){a.$$domOperationFired=!0;b();b=Q};a.$$prepared=!0}return a}function fa(a,b){Aa(a,b);Ba(a,b)}function Aa(a,b){b.from&&(a.css(b.from),b.from=null)}function Ba(a,b){b.to&&(a.css(b.to),b.to=null)}function V(a,b,c){var d=b.options||{};c=c.options||{};var e=(d.addClass||"")+" "+(c.addClass||""),g=(d.removeClass||"")+" "+(c.removeClass||"");a=Pa(a.attr("class"),e,g);c.preparationClasses&&(d.preparationClasses=ca(c.preparationClasses,d.preparationClasses),delete c.preparationClasses);
-e=d.domOperation!==Q?d.domOperation:null;Ca(d,c);e&&(d.domOperation=e);d.addClass=a.addClass?a.addClass:null;d.removeClass=a.removeClass?a.removeClass:null;b.addClass=d.addClass;b.removeClass=d.removeClass;return d}function Pa(a,b,c){function d(a){R(a)&&(a=a.split(" "));var b={};s(a,function(a){a.length&&(b[a]=!0)});return b}var e={};a=d(a);b=d(b);s(b,function(a,b){e[b]=1});c=d(c);s(c,function(a,b){e[b]=1===e[b]?null:-1});var g={addClass:"",removeClass:""};s(e,function(b,c){var d,e;1===b?(d="addClass",
-e=!a[c]):-1===b&&(d="removeClass",e=a[c]);e&&(g[d].length&&(g[d]+=" "),g[d]+=c)});return g}function G(a){return a instanceof r.element?a[0]:a}function Qa(a,b,c){var d="";b&&(d=X(b,"ng-",!0));c.addClass&&(d=ca(d,X(c.addClass,"-add")));c.removeClass&&(d=ca(d,X(c.removeClass,"-remove")));d.length&&(c.preparationClasses=d,a.addClass(d))}function la(a,b){var c=b?"-"+b+"s":"";ha(a,[ia,c]);return[ia,c]}function pa(a,b){var c=b?"paused":"",d=Y+"PlayState";ha(a,[d,c]);return[d,c]}function ha(a,b){a.style[b[0]]=
-b[1]}function ca(a,b){return a?b?a+" "+b:a:b}function Da(a,b,c){var d=Object.create(null),e=a.getComputedStyle(b)||{};s(c,function(a,b){var c=e[a];if(c){var C=c.charAt(0);if("-"===C||"+"===C||0<=C)c=Ra(c);0===c&&(c=null);d[b]=c}});return d}function Ra(a){var b=0;a=a.split(/\s*,\s*/);s(a,function(a){"s"==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));a=parseFloat(a)||0;b=b?Math.max(a,b):a});return b}function qa(a){return 0===a||null!=a}function Ea(a,b){var c=S,d=a+"s";b?c+="Duration":d+=" linear all";
-return[c,d]}function Fa(){var a=Object.create(null);return{flush:function(){a=Object.create(null)},count:function(b){return(b=a[b])?b.total:0},get:function(b){return(b=a[b])&&b.value},put:function(b,c){a[b]?a[b].total++:a[b]={total:1,value:c}}}}function Ga(a,b,c){s(c,function(c){a[c]=Z(a[c])?a[c]:b.style.getPropertyValue(c)})}var Q=r.noop,Ha=r.copy,Ca=r.extend,I=r.element,s=r.forEach,ba=r.isArray,R=r.isString,ra=r.isObject,P=r.isUndefined,Z=r.isDefined,Ia=r.isFunction,sa=r.isElement,S,ta,Y,ua;P(D.ontransitionend)&&
-Z(D.onwebkittransitionend)?(S="WebkitTransition",ta="webkitTransitionEnd transitionend"):(S="transition",ta="transitionend");P(D.onanimationend)&&Z(D.onwebkitanimationend)?(Y="WebkitAnimation",ua="webkitAnimationEnd animationend"):(Y="animation",ua="animationend");var ma=Y+"Delay",va=Y+"Duration",ia=S+"Delay";D=S+"Duration";var Ka=r.$$minErr("ng"),Sa={transitionDuration:D,transitionDelay:ia,transitionProperty:S+"Property",animationDuration:va,animationDelay:ma,animationIterationCount:Y+"IterationCount"},
-Ta={transitionDuration:D,transitionDelay:ia,animationDuration:va,animationDelay:ma};r.module("ngAnimate",[]).directive("ngAnimateSwap",["$animate","$rootScope",function(a,b){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(b,d,e,g,H){var A,C;b.$watchCollection(e.ngAnimateSwap||e["for"],function(e){A&&a.leave(A);C&&(C.$destroy(),C=null);if(e||0===e)C=b.$new(),H(C,function(b){A=b;a.enter(b,null,d)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(a){return{link:function(b,
-c,d){function e(a){c.data("$$ngAnimateChildren","on"===a||"true"===a)}var g=d.ngAnimateChildren;r.isString(g)&&0===g.length?c.data("$$ngAnimateChildren",!0):(e(a(g)(b)),d.$observe("ngAnimateChildren",e))}}}]).factory("$$rAFScheduler",["$$rAF",function(a){function b(a){d=d.concat(a);c()}function c(){if(d.length){for(var b=d.shift(),H=0;H<b.length;H++)b[H]();e||a(function(){e||c()})}}var d,e;d=b.queue=[];b.waitUntilQuiet=function(b){e&&e();e=a(function(){e=null;b();c()})};return b}]).provider("$$animateQueue",
-["$animateProvider",function(a){function b(a){if(!a)return null;a=a.split(" ");var b=Object.create(null);s(a,function(a){b[a]=!0});return b}function c(a,c){if(a&&c){var d=b(c);return a.split(" ").some(function(a){return d[a]})}}function d(a,b,c,d){return g[a].some(function(a){return a(b,c,d)})}function e(a,b){var c=0<(a.addClass||"").length,d=0<(a.removeClass||"").length;return b?c&&d:c||d}var g=this.rules={skip:[],cancel:[],join:[]};g.join.push(function(a,b,c){return!b.structural&&e(b)});g.skip.push(function(a,
-b,c){return!b.structural&&!e(b)});g.skip.push(function(a,b,c){return"leave"==c.event&&b.structural});g.skip.push(function(a,b,c){return c.structural&&2===c.state&&!b.structural});g.cancel.push(function(a,b,c){return c.structural&&b.structural});g.cancel.push(function(a,b,c){return 2===c.state&&b.structural});g.cancel.push(function(a,b,d){a=b.addClass;b=b.removeClass;var e=d.addClass;d=d.removeClass;return P(a)&&P(b)||P(e)&&P(d)?!1:c(a,d)||c(b,e)});this.$get=["$$rAF","$rootScope","$rootElement","$document",
-"$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(b,c,g,m,M,r,u,na,v,z){function K(){var a=!1;return function(b){a?b():c.$$postDigest(function(){a=!0;b()})}}function J(a,b,c){var f=G(b),d=G(a),h=[];(a=x[c])&&s(a,function(a){y.call(a.node,f)?h.push(a.callback):"leave"===c&&y.call(a.node,d)&&h.push(a.callback)});return h}function h(a,f,h){function l(c,f,d,h){g(function(){var c=J(y,a,f);c.length&&b(function(){s(c,function(b){b(a,d,h)})})});c.progress(f,
-d,h)}function x(b){var c=a,f=n;f.preparationClasses&&(c.removeClass(f.preparationClasses),f.preparationClasses=null);f.activeClasses&&(c.removeClass(f.activeClasses),f.activeClasses=null);Ja(a,n);fa(a,n);n.domOperation();k.complete(!b)}var n=Ha(h),z,y;if(a=Ma(a))z=G(a),y=a.parent();var n=ka(n),k=new u,g=K();ba(n.addClass)&&(n.addClass=n.addClass.join(" "));n.addClass&&!R(n.addClass)&&(n.addClass=null);ba(n.removeClass)&&(n.removeClass=n.removeClass.join(" "));n.removeClass&&!R(n.removeClass)&&(n.removeClass=
-null);n.from&&!ra(n.from)&&(n.from=null);n.to&&!ra(n.to)&&(n.to=null);if(!z)return x(),k;h=[z.className,n.addClass,n.removeClass].join(" ");if(!Ua(h))return x(),k;var C=0<=["enter","move","leave"].indexOf(f),w=!L||m[0].hidden||E.get(z);h=!w&&B.get(z)||{};var v=!!h.state;w||v&&1==h.state||(w=!q(a,y,f));if(w)return x(),k;C&&xa(a);w={structural:C,element:a,event:f,addClass:n.addClass,removeClass:n.removeClass,close:x,options:n,runner:k};if(v){if(d("skip",a,w,h)){if(2===h.state)return x(),k;V(a,h,w);
-return h.runner}if(d("cancel",a,w,h))if(2===h.state)h.runner.end();else if(h.structural)h.close();else return V(a,h,w),h.runner;else if(d("join",a,w,h))if(2===h.state)V(a,w,{});else return Qa(a,C?f:null,n),f=w.event=h.event,n=V(a,h,w),h.runner}else V(a,w,{});(v=w.structural)||(v="animate"===w.event&&0<Object.keys(w.options.to||{}).length||e(w));if(!v)return x(),N(a),k;var M=(h.counter||0)+1;w.counter=M;t(a,1,w);c.$$postDigest(function(){var b=B.get(z),c=!b,b=b||{},d=0<(a.parent()||[]).length&&("animate"===
-b.event||b.structural||e(b));if(c||b.counter!==M||!d){c&&(Ja(a,n),fa(a,n));if(c||C&&b.event!==f)n.domOperation(),k.end();d||N(a)}else f=!b.structural&&e(b,!0)?"setClass":b.event,t(a,2),b=r(a,f,b.options),b.done(function(b){x(!b);(b=B.get(z))&&b.counter===M&&N(G(a));l(k,f,"close",{})}),k.setHost(b),l(k,f,"start",{})});return k}function xa(a){a=G(a).querySelectorAll("[data-ng-animate]");s(a,function(a){var b=parseInt(a.getAttribute("data-ng-animate")),c=B.get(a);if(c)switch(b){case 2:c.runner.end();
-case 1:B.remove(a)}})}function N(a){a=G(a);a.removeAttribute("data-ng-animate");B.remove(a)}function k(a,b){return G(a)===G(b)}function q(a,b,c){c=I(m[0].body);var f=k(a,c)||"HTML"===a[0].nodeName,d=k(a,g),h=!1,l,e=E.get(G(a));for((a=a.data("$ngAnimatePin"))&&(b=a);b&&b.length;){d||(d=k(b,g));var x=b[0];if(1!==x.nodeType)break;a=B.get(x)||{};if(!h){x=E.get(x);if(!0===x&&!1!==e){e=!0;break}else!1===x&&(e=!1);h=a.structural}if(P(l)||!0===l)a=b.data("$$ngAnimateChildren"),Z(a)&&(l=a);if(h&&!1===l)break;
-f||(f=k(b,c));if(f&&d)break;if(!d&&(a=b.data("$ngAnimatePin"))){b=a;continue}b=b.parent()}return(!h||l)&&!0!==e&&d&&f}function t(a,b,c){c=c||{};c.state=b;a=G(a);a.setAttribute("data-ng-animate",b);c=(b=B.get(a))?Ca(b,c):c;B.put(a,c)}var B=new M,E=new M,L=null,f=c.$watch(function(){return 0===na.totalPendingRequests},function(a){a&&(f(),c.$$postDigest(function(){c.$$postDigest(function(){null===L&&(L=!0)})}))}),x={},l=a.classNameFilter(),Ua=l?function(a){return l.test(a)}:function(){return!0},Ja=U(v),
-y=Node.prototype.contains||function(a){return this===a||!!(this.compareDocumentPosition(a)&16)};return{on:function(a,b,c){b=oa(b);x[a]=x[a]||[];x[a].push({node:b,callback:c})},off:function(a,b,c){function f(a,b,c){var d=oa(b);return a.filter(function(a){return!(a.node===d&&(!c||a.callback===c))})}var d=x[a];d&&(x[a]=1===arguments.length?null:f(d,b,c))},pin:function(a,b){ya(sa(a),"element","not an element");ya(sa(b),"parentElement","not an element");a.data("$ngAnimatePin",b)},push:function(a,b,c,f){c=
-c||{};c.domOperation=f;return h(a,b,c)},enabled:function(a,b){var c=arguments.length;if(0===c)b=!!L;else if(sa(a)){var f=G(a),d=E.get(f);1===c?b=!d:E.put(f,!b)}else b=L=!!a;return b}}}]}]).provider("$$animation",["$animateProvider",function(a){function b(a){return a.data("$$animationRunner")}var c=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(a,e,g,H,A,C){function m(a){function b(a){if(a.processed)return a;a.processed=!0;var d=
-a.domNode,N=d.parentNode;e.put(d,a);for(var k;N;){if(k=e.get(N)){k.processed||(k=b(k));break}N=N.parentNode}(k||c).children.push(a);return a}var c={children:[]},d,e=new A;for(d=0;d<a.length;d++){var g=a[d];e.put(g.domNode,a[d]={domNode:g.domNode,fn:g.fn,children:[]})}for(d=0;d<a.length;d++)b(a[d]);return function(a){var b=[],c=[],d;for(d=0;d<a.children.length;d++)c.push(a.children[d]);a=c.length;var e=0,t=[];for(d=0;d<c.length;d++){var g=c[d];0>=a&&(a=e,e=0,b.push(t),t=[]);t.push(g.fn);g.children.forEach(function(a){e++;
-c.push(a)});a--}t.length&&b.push(t);return b}(c)}var M=[],r=U(a);return function(u,A,v){function z(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];s(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function K(a){var b=[],c={};s(a,function(a,f){var d=G(a.element),h=0<=["enter","move"].indexOf(a.event),d=a.structural?z(d):[];if(d.length){var e=h?"to":"from";s(d,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||
-{};c[b][e]={animationID:f,element:I(a)}})}else b.push(a)});var d={},h={};s(c,function(c,e){var l=c.from,t=c.to;if(l&&t){var g=a[l.animationID],E=a[t.animationID],k=l.animationID.toString();if(!h[k]){var z=h[k]={structural:!0,beforeStart:function(){g.beforeStart();E.beforeStart()},close:function(){g.close();E.close()},classes:J(g.classes,E.classes),from:g,to:E,anchors:[]};z.classes.length?b.push(z):(b.push(g),b.push(E))}h[k].anchors.push({out:l.element,"in":t.element})}else l=l?l.animationID:t.animationID,
-t=l.toString(),d[t]||(d[t]=!0,b.push(a[l]))});return b}function J(a,b){a=a.split(" ");b=b.split(" ");for(var c=[],d=0;d<a.length;d++){var h=a[d];if("ng-"!==h.substring(0,3))for(var e=0;e<b.length;e++)if(h===b[e]){c.push(h);break}}return c.join(" ")}function h(a){for(var b=c.length-1;0<=b;b--){var d=c[b];if(g.has(d)&&(d=g.get(d)(a)))return d}}function xa(a,c){a.from&&a.to?(b(a.from.element).setHost(c),b(a.to.element).setHost(c)):b(a.element).setHost(c)}function N(){var a=b(u);!a||"leave"===A&&v.$$domOperationFired||
-a.end()}function k(b){u.off("$destroy",N);u.removeData("$$animationRunner");r(u,v);fa(u,v);v.domOperation();E&&a.removeClass(u,E);u.removeClass("ng-animate");t.complete(!b)}v=ka(v);var q=0<=["enter","move","leave"].indexOf(A),t=new H({end:function(){k()},cancel:function(){k(!0)}});if(!c.length)return k(),t;u.data("$$animationRunner",t);var B=za(u.attr("class"),za(v.addClass,v.removeClass)),E=v.tempClasses;E&&(B+=" "+E,v.tempClasses=null);var L;q&&(L="ng-"+A+"-prepare",a.addClass(u,L));M.push({element:u,
-classes:B,event:A,structural:q,options:v,beforeStart:function(){u.addClass("ng-animate");E&&a.addClass(u,E);L&&(a.removeClass(u,L),L=null)},close:k});u.on("$destroy",N);if(1<M.length)return t;e.$$postDigest(function(){var a=[];s(M,function(c){b(c.element)?a.push(c):c.close()});M.length=0;var c=K(a),d=[];s(c,function(a){d.push({domNode:G(a.from?a.from.element:a.element),fn:function(){a.beforeStart();var c,d=a.close;if(b(a.anchors?a.from.element||a.to.element:a.element)){var f=h(a);f&&(c=f.start)}c?
-(c=c(),c.done(function(a){d(!a)}),xa(a,c)):d()}})});C(m(d))});return t}}]}]).provider("$animateCss",["$animateProvider",function(a){var b=Fa(),c=Fa();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(a,e,g,H,A,C,m,M){function r(a,b){var c=a.parentNode;return(c.$$ngAnimateParentKey||(c.$$ngAnimateParentKey=++K))+"-"+a.getAttribute("class")+"-"+b}function u(h,g,z,k){var q;0<b.count(z)&&(q=c.get(z),q||(g=X(g,"-stagger"),
-e.addClass(h,g),q=Da(a,h,k),q.animationDuration=Math.max(q.animationDuration,0),q.transitionDuration=Math.max(q.transitionDuration,0),e.removeClass(h,g),c.put(z,q)));return q||{}}function na(a){J.push(a);m.waitUntilQuiet(function(){b.flush();c.flush();for(var a=A(),d=0;d<J.length;d++)J[d](a);J.length=0})}function v(c,e,g){e=b.get(g);e||(e=Da(a,c,Sa),"infinite"===e.animationIterationCount&&(e.animationIterationCount=1));b.put(g,e);c=e;g=c.animationDelay;e=c.transitionDelay;c.maxDelay=g&&e?Math.max(g,
-e):g||e;c.maxDuration=Math.max(c.animationDuration*c.animationIterationCount,c.transitionDuration);return c}var z=U(e),K=0,J=[];return function(a,c){function d(){q()}function k(){q(!0)}function q(b){if(!(A||wa&&K)){A=!0;K=!1;f.$$skipPreparationClasses||e.removeClass(a,da);e.removeClass(a,ca);pa(l,!1);la(l,!1);s(m,function(a){l.style[a[0]]=""});z(a,f);fa(a,f);Object.keys(x).length&&s(x,function(a,b){a?l.style.setProperty(b,a):l.style.removeProperty(b)});if(f.onDone)f.onDone();ea&&ea.length&&a.off(ea.join(" "),
-E);var c=a.data("$$animateCss");c&&(H.cancel(c[0].timer),a.removeData("$$animateCss"));D&&D.complete(!b)}}function t(a){p.blockTransition&&la(l,a);p.blockKeyframeAnimation&&pa(l,!!a)}function B(){D=new g({end:d,cancel:k});na(Q);q();return{$$willAnimate:!1,start:function(){return D},end:d}}function E(a){a.stopPropagation();var b=a.originalEvent||a;a=b.$manualTimeStamp||Date.now();b=parseFloat(b.elapsedTime.toFixed(3));Math.max(a-U,0)>=P&&b>=O&&(wa=!0,q())}function L(){function b(){if(!A){t(!1);s(m,
-function(a){l.style[a[0]]=a[1]});z(a,f);e.addClass(a,ca);if(p.recalculateTimingStyles){ja=l.className+" "+da;ga=r(l,ja);F=v(l,ja,ga);$=F.maxDelay;n=Math.max($,0);O=F.maxDuration;if(0===O){q();return}p.hasTransitions=0<F.transitionDuration;p.hasAnimations=0<F.animationDuration}p.applyAnimationDelay&&($="boolean"!==typeof f.delay&&qa(f.delay)?parseFloat(f.delay):$,n=Math.max($,0),F.animationDelay=$,aa=[ma,$+"s"],m.push(aa),l.style[aa[0]]=aa[1]);P=1E3*n;R=1E3*O;if(f.easing){var d,g=f.easing;p.hasTransitions&&
-(d=S+"TimingFunction",m.push([d,g]),l.style[d]=g);p.hasAnimations&&(d=Y+"TimingFunction",m.push([d,g]),l.style[d]=g)}F.transitionDuration&&ea.push(ta);F.animationDuration&&ea.push(ua);U=Date.now();var k=P+1.5*R;d=U+k;var g=a.data("$$animateCss")||[],L=!0;if(g.length){var B=g[0];(L=d>B.expectedEndTime)?H.cancel(B.timer):g.push(q)}L&&(k=H(c,k,!1),g[0]={timer:k,expectedEndTime:d},g.push(q),a.data("$$animateCss",g));if(ea.length)a.on(ea.join(" "),E);f.to&&(f.cleanupStyles&&Ga(x,l,Object.keys(f.to)),Ba(a,
-f))}}function c(){var b=a.data("$$animateCss");if(b){for(var d=1;d<b.length;d++)b[d]();a.removeData("$$animateCss")}}if(!A)if(l.parentNode){var d=function(a){if(wa)K&&a&&(K=!1,q());else if(K=!a,F.animationDuration)if(a=pa(l,K),K)m.push(a);else{var b=m,c=b.indexOf(a);0<=a&&b.splice(c,1)}},g=0<Z&&(F.transitionDuration&&0===W.transitionDuration||F.animationDuration&&0===W.animationDuration)&&Math.max(W.animationDelay,W.transitionDelay);g?H(b,Math.floor(g*Z*1E3),!1):b();I.resume=function(){d(!0)};I.pause=
-function(){d(!1)}}else q()}var f=c||{};f.$$prepared||(f=ka(Ha(f)));var x={},l=G(a);if(!l||!l.parentNode||!M.enabled())return B();var m=[],J=a.attr("class"),y=La(f),A,K,wa,D,I,n,P,O,R,U,ea=[];if(0===f.duration||!C.animations&&!C.transitions)return B();var w=f.event&&ba(f.event)?f.event.join(" "):f.event,V="",T="";w&&f.structural?V=X(w,"ng-",!0):w&&(V=w);f.addClass&&(T+=X(f.addClass,"-add"));f.removeClass&&(T.length&&(T+=" "),T+=X(f.removeClass,"-remove"));f.applyClassesEarly&&T.length&&z(a,f);var da=
-[V,T].join(" ").trim(),ja=J+" "+da,ca=X(da,"-active"),J=y.to&&0<Object.keys(y.to).length;if(!(0<(f.keyframeStyle||"").length||J||da))return B();var ga,W;0<f.stagger?(y=parseFloat(f.stagger),W={transitionDelay:y,animationDelay:y,transitionDuration:0,animationDuration:0}):(ga=r(l,ja),W=u(l,da,ga,Ta));f.$$skipPreparationClasses||e.addClass(a,da);f.transitionStyle&&(y=[S,f.transitionStyle],ha(l,y),m.push(y));0<=f.duration&&(y=0<l.style[S].length,y=Ea(f.duration,y),ha(l,y),m.push(y));f.keyframeStyle&&
-(y=[Y,f.keyframeStyle],ha(l,y),m.push(y));var Z=W?0<=f.staggerIndex?f.staggerIndex:b.count(ga):0;(w=0===Z)&&!f.skipBlocking&&la(l,9999);var F=v(l,ja,ga),$=F.maxDelay;n=Math.max($,0);O=F.maxDuration;var p={};p.hasTransitions=0<F.transitionDuration;p.hasAnimations=0<F.animationDuration;p.hasTransitionAll=p.hasTransitions&&"all"==F.transitionProperty;p.applyTransitionDuration=J&&(p.hasTransitions&&!p.hasTransitionAll||p.hasAnimations&&!p.hasTransitions);p.applyAnimationDuration=f.duration&&p.hasAnimations;
-p.applyTransitionDelay=qa(f.delay)&&(p.applyTransitionDuration||p.hasTransitions);p.applyAnimationDelay=qa(f.delay)&&p.hasAnimations;p.recalculateTimingStyles=0<T.length;if(p.applyTransitionDuration||p.applyAnimationDuration)O=f.duration?parseFloat(f.duration):O,p.applyTransitionDuration&&(p.hasTransitions=!0,F.transitionDuration=O,y=0<l.style[S+"Property"].length,m.push(Ea(O,y))),p.applyAnimationDuration&&(p.hasAnimations=!0,F.animationDuration=O,m.push([va,O+"s"]));if(0===O&&!p.recalculateTimingStyles)return B();
-if(null!=f.delay){var aa;"boolean"!==typeof f.delay&&(aa=parseFloat(f.delay),n=Math.max(aa,0));p.applyTransitionDelay&&m.push([ia,aa+"s"]);p.applyAnimationDelay&&m.push([ma,aa+"s"])}null==f.duration&&0<F.transitionDuration&&(p.recalculateTimingStyles=p.recalculateTimingStyles||w);P=1E3*n;R=1E3*O;f.skipBlocking||(p.blockTransition=0<F.transitionDuration,p.blockKeyframeAnimation=0<F.animationDuration&&0<W.animationDelay&&0===W.animationDuration);f.from&&(f.cleanupStyles&&Ga(x,l,Object.keys(f.from)),
-Aa(a,f));p.blockTransition||p.blockKeyframeAnimation?t(O):f.skipBlocking||la(l,!1);return{$$willAnimate:!0,end:d,start:function(){if(!A)return I={end:d,cancel:k,resume:null,pause:null},D=new g(I),na(L),D}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(a,c,d,e,g,H,A){function C(a){return a.replace(/\bng-\S+\b/g,"")}function m(a,
-b){R(a)&&(a=a.split(" "));R(b)&&(b=b.split(" "));return a.filter(function(a){return-1===b.indexOf(a)}).join(" ")}function M(c,e,g){function h(a){var b={},c=G(a).getBoundingClientRect();s(["width","height","top","left"],function(a){var d=c[a];switch(a){case "top":d+=D.scrollTop;break;case "left":d+=D.scrollLeft}b[a]=Math.floor(d)+"px"});return b}function A(){var c=C(g.attr("class")||""),d=m(c,q),c=m(q,c),d=a(k,{to:h(g),addClass:"ng-anchor-in "+d,removeClass:"ng-anchor-out "+c,delay:!0});return d.$$willAnimate?
-d:null}function H(){k.remove();e.removeClass("ng-animate-shim");g.removeClass("ng-animate-shim")}var k=I(G(e).cloneNode(!0)),q=C(k.attr("class")||"");e.addClass("ng-animate-shim");g.addClass("ng-animate-shim");k.addClass("ng-anchor");v.append(k);var t;c=function(){var c=a(k,{addClass:"ng-anchor-out",delay:!0,from:h(e)});return c.$$willAnimate?c:null}();if(!c&&(t=A(),!t))return H();var B=c||t;return{start:function(){function a(){c&&c.end()}var b,c=B.start();c.done(function(){c=null;if(!t&&(t=A()))return c=
-t.start(),c.done(function(){c=null;H();b.complete()}),c;H();b.complete()});return b=new d({end:a,cancel:a})}}}function r(a,b,c,e){var g=u(a,Q),m=u(b,Q),k=[];s(e,function(a){(a=M(c,a.out,a["in"]))&&k.push(a)});if(g||m||0!==k.length)return{start:function(){function a(){s(b,function(a){a.end()})}var b=[];g&&b.push(g.start());m&&b.push(m.start());s(k,function(a){b.push(a.start())});var c=new d({end:a,cancel:a});d.all(b,function(a){c.complete(a)});return c}}}function u(c){var d=c.element,e=c.options||
-{};c.structural&&(e.event=c.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===c.event&&(e.onDone=e.domOperation));e.preparationClasses&&(e.event=ca(e.event,e.preparationClasses));c=a(d,e);return c.$$willAnimate?c:null}if(!g.animations&&!g.transitions)return Q;var D=A[0].body;c=G(e);var v=I(c.parentNode&&11===c.parentNode.nodeType||D.contains(c)?c:D);U(H);return function(a){return a.from&&a.to?r(a.from,a.to,a.classes,a.anchors):u(a)}}]}]).provider("$$animateJs",["$animateProvider",function(a){this.$get=
-["$injector","$$AnimateRunner","$$jqLite",function(b,c,d){function e(c){c=ba(c)?c:c.split(" ");for(var d=[],e={},g=0;g<c.length;g++){var s=c[g],r=a.$$registeredAnimations[s];r&&!e[s]&&(d.push(b.get(r)),e[s]=!0)}return d}var g=U(d);return function(a,b,d,m){function r(){m.domOperation();g(a,m)}function D(a,b,d,e,f){switch(d){case "animate":b=[b,e.from,e.to,f];break;case "setClass":b=[b,z,K,f];break;case "addClass":b=[b,z,f];break;case "removeClass":b=[b,K,f];break;default:b=[b,f]}b.push(e);if(a=a.apply(a,
-b))if(Ia(a.start)&&(a=a.start()),a instanceof c)a.done(f);else if(Ia(a))return a;return Q}function u(a,b,d,e,f){var g=[];s(e,function(e){var h=e[f];h&&g.push(function(){var e,f,g=!1,k=function(a){g||(g=!0,(f||Q)(a),e.complete(!a))};e=new c({end:function(){k()},cancel:function(){k(!0)}});f=D(h,a,b,d,function(a){k(!1===a)});return e})});return g}function G(a,b,d,e,f){var g=u(a,b,d,e,f);if(0===g.length){var h,k;"beforeSetClass"===f?(h=u(a,"removeClass",d,e,"beforeRemoveClass"),k=u(a,"addClass",d,e,"beforeAddClass")):
-"setClass"===f&&(h=u(a,"removeClass",d,e,"removeClass"),k=u(a,"addClass",d,e,"addClass"));h&&(g=g.concat(h));k&&(g=g.concat(k))}if(0!==g.length)return function(a){var b=[];g.length&&s(g,function(a){b.push(a())});b.length?c.all(b,a):a();return function(a){s(b,function(b){a?b.cancel():b.end()})}}}var v=!1;3===arguments.length&&ra(d)&&(m=d,d=null);m=ka(m);d||(d=a.attr("class")||"",m.addClass&&(d+=" "+m.addClass),m.removeClass&&(d+=" "+m.removeClass));var z=m.addClass,K=m.removeClass,J=e(d),h,I;if(J.length){var N,
-k;"leave"==b?(k="leave",N="afterLeave"):(k="before"+b.charAt(0).toUpperCase()+b.substr(1),N=b);"enter"!==b&&"move"!==b&&(h=G(a,b,m,J,k));I=G(a,b,m,J,N)}if(h||I){var q;return{$$willAnimate:!0,end:function(){q?q.end():(v=!0,r(),fa(a,m),q=new c,q.complete(!0));return q},start:function(){function b(c){v=!0;r();fa(a,m);q.complete(c)}if(q)return q;q=new c;var d,e=[];h&&e.push(function(a){d=h(a)});e.length?e.push(function(a){r();a(!0)}):r();I&&e.push(function(a){d=I(a)});q.setHost({end:function(){v||((d||
-Q)(void 0),b(void 0))},cancel:function(){v||((d||Q)(!0),b(!0))}});c.chain(e,b);return q}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(a,c){function d(c){return a(c.element,c.event,c.classes,c.options)}return function(a){if(a.from&&a.to){var b=d(a.from),r=d(a.to);if(b||r)return{start:function(){function a(){return function(){s(d,function(a){a.end()})}}var d=[];b&&d.push(b.start());r&&
-d.push(r.start());c.all(d,function(a){e.complete(a)});var e=new c({end:a(),cancel:a()});return e}}}else return d(a)}}]}])})(window,window.angular);
-//# sourceMappingURL=angular-animate.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.min.js.map b/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.min.js.map
deleted file mode 100644
index 1d4f7a68..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-animate/angular-animate.min.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-"version":3,
-"file":"angular-animate.min.js",
-"lineCount":55,
-"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,EAAlB,CAA6B,CA4EtCC,QAASA,GAAS,CAACC,CAAD,CAAMC,CAAN,CAAYC,CAAZ,CAAoB,CACpC,GAAKF,CAAAA,CAAL,CACE,KAAMG,GAAA,CAAS,MAAT,CAA2CF,CAA3C,EAAmD,GAAnD,CAA0DC,CAA1D,EAAoE,UAApE,CAAN,CAEF,MAAOF,EAJ6B,CAOtCI,QAASA,GAAY,CAACC,CAAD,CAAGC,CAAH,CAAM,CACzB,GAAKD,CAAAA,CAAL,EAAWC,CAAAA,CAAX,CAAc,MAAO,EACrB,IAAKD,CAAAA,CAAL,CAAQ,MAAOC,EACf,IAAKA,CAAAA,CAAL,CAAQ,MAAOD,EACXE,GAAA,CAAQF,CAAR,CAAJ,GAAgBA,CAAhB,CAAoBA,CAAAG,KAAA,CAAO,GAAP,CAApB,CACID,GAAA,CAAQD,CAAR,CAAJ,GAAgBA,CAAhB,CAAoBA,CAAAE,KAAA,CAAO,GAAP,CAApB,CACA,OAAOH,EAAP,CAAW,GAAX,CAAiBC,CANQ,CAS3BG,QAASA,GAAa,CAACC,CAAD,CAAU,CAC9B,IAAIC,EAAS,EACTD,EAAJ,GAAgBA,CAAAE,GAAhB,EAA8BF,CAAAG,KAA9B,IACEF,CAAAC,GACA,CADYF,CAAAE,GACZ,CAAAD,CAAAE,KAAA,CAAcH,CAAAG,KAFhB,CAIA,OAAOF,EANuB,CAShCG,QAASA,EAAW,CAACC,CAAD,CAAUC,CAAV,CAAeC,CAAf,CAAyB,CAC3C,IAAIC,EAAY,EAChBH,EAAA,CAAUR,EAAA,CAAQQ,CAAR,CAAA,CACJA,CADI,CAEJA,CAAA,EAAWI,CAAA,CAASJ,CAAT,CAAX,EAAgCA,CAAAK,OAAhC,CACIL,CAAAM,MAAA,CAAc,KAAd,CADJ,CAEI,EACVC,EAAA,CAAQP,CAAR,CAAiB,QAAQ,CAACQ,CAAD,CAAQC,CAAR,CAAW,CAC9BD,CAAJ,EAA4B,CAA5B,CAAaA,CAAAH,OAAb,GACEF,CACA,EADkB,CAAL,CAACM,CAAD,CAAU,GAAV,CAAgB,EAC7B,CAAAN,CAAA,EAAaD,CAAA,CAAWD,CAAX,CAAiBO,CAAjB,CACWA,CADX,CACmBP,CAHlC,CADkC,CAApC,CAOA,OAAOE,EAdoC,CAwB7CO,QAASA,GAAwB,CAACC,CAAD,CAAU,CACzC,GAAIA,CAAJ,WAAuBC,EAAvB,CACE,OAAQD,CAAAN,OAAR,EACE,KAAK,CAAL,CACE,MAAO,EAGT;KAAK,CAAL,CAIE,GAxHWQ,CAwHX,GAAIF,CAAA,CAAQ,CAAR,CAAAG,SAAJ,CACE,MAAOH,EAET,MAEF,SACE,MAAOC,EAAA,CAAOG,EAAA,CAAmBJ,CAAnB,CAAP,CAfX,CAoBF,GAnIiBE,CAmIjB,GAAIF,CAAAG,SAAJ,CACE,MAAOF,EAAA,CAAOD,CAAP,CAvBgC,CA2B3CI,QAASA,GAAkB,CAACJ,CAAD,CAAU,CACnC,GAAK,CAAAA,CAAA,CAAQ,CAAR,CAAL,CAAiB,MAAOA,EACxB,KAAS,IAAAF,EAAI,CAAb,CAAgBA,CAAhB,CAAoBE,CAAAN,OAApB,CAAoCI,CAAA,EAApC,CAAyC,CACvC,IAAIO,EAAML,CAAA,CAAQF,CAAR,CACV,IA5IeI,CA4If,EAAIG,CAAAF,SAAJ,CACE,MAAOE,EAH8B,CAFN,CAUrCC,QAASA,GAAU,CAACC,CAAD,CAAWP,CAAX,CAAoBR,CAApB,CAA+B,CAChDI,CAAA,CAAQI,CAAR,CAAiB,QAAQ,CAACK,CAAD,CAAM,CAC7BE,CAAAC,SAAA,CAAkBH,CAAlB,CAAuBb,CAAvB,CAD6B,CAA/B,CADgD,CAMlDiB,QAASA,GAAa,CAACF,CAAD,CAAWP,CAAX,CAAoBR,CAApB,CAA+B,CACnDI,CAAA,CAAQI,CAAR,CAAiB,QAAQ,CAACK,CAAD,CAAM,CAC7BE,CAAAG,YAAA,CAAqBL,CAArB,CAA0Bb,CAA1B,CAD6B,CAA/B,CADmD,CAMrDmB,QAASA,EAA4B,CAACJ,CAAD,CAAW,CAC9C,MAAO,SAAQ,CAACP,CAAD,CAAUhB,CAAV,CAAmB,CAC5BA,CAAAwB,SAAJ,GACEF,EAAA,CAAWC,CAAX,CAAqBP,CAArB,CAA8BhB,CAAAwB,SAA9B,CACA,CAAAxB,CAAAwB,SAAA,CAAmB,IAFrB,CAIIxB,EAAA0B,YAAJ,GACED,EAAA,CAAcF,CAAd,CAAwBP,CAAxB,CAAiChB,CAAA0B,YAAjC,CACA,CAAA1B,CAAA0B,YAAA,CAAsB,IAFxB,CALgC,CADY,CAahDE,QAASA,GAAuB,CAAC5B,CAAD,CAAU,CACxCA,CAAA,CAAUA,CAAV,EAAqB,EACrB,IAAK6B,CAAA7B,CAAA6B,WAAL,CAAyB,CACvB,IAAIC,EAAe9B,CAAA8B,aAAfA;AAAuCC,CAC3C/B,EAAA8B,aAAA,CAAuBE,QAAQ,EAAG,CAChChC,CAAAiC,oBAAA,CAA8B,CAAA,CAC9BH,EAAA,EACAA,EAAA,CAAeC,CAHiB,CAKlC/B,EAAA6B,WAAA,CAAqB,CAAA,CAPE,CASzB,MAAO7B,EAXiC,CAc1CkC,QAASA,GAAoB,CAAClB,CAAD,CAAUhB,CAAV,CAAmB,CAC9CmC,EAAA,CAAyBnB,CAAzB,CAAkChB,CAAlC,CACAoC,GAAA,CAAuBpB,CAAvB,CAAgChB,CAAhC,CAF8C,CAKhDmC,QAASA,GAAwB,CAACnB,CAAD,CAAUhB,CAAV,CAAmB,CAC9CA,CAAAG,KAAJ,GACEa,CAAAqB,IAAA,CAAYrC,CAAAG,KAAZ,CACA,CAAAH,CAAAG,KAAA,CAAe,IAFjB,CADkD,CAOpDiC,QAASA,GAAsB,CAACpB,CAAD,CAAUhB,CAAV,CAAmB,CAC5CA,CAAAE,GAAJ,GACEc,CAAAqB,IAAA,CAAYrC,CAAAE,GAAZ,CACA,CAAAF,CAAAE,GAAA,CAAa,IAFf,CADgD,CAOlDoC,QAASA,EAAqB,CAACtB,CAAD,CAAUuB,CAAV,CAAwBC,CAAxB,CAAsC,CAClE,IAAIC,EAASF,CAAAvC,QAATyC,EAAiC,EACjCC,EAAAA,CAAaF,CAAAxC,QAAb0C,EAAqC,EAEzC,KAAIC,GAASF,CAAAjB,SAATmB,EAA4B,EAA5BA,EAAkC,GAAlCA,EAAyCD,CAAAlB,SAAzCmB,EAAgE,EAAhEA,CAAJ,CACIC,GAAYH,CAAAf,YAAZkB,EAAkC,EAAlCA,EAAwC,GAAxCA,EAA+CF,CAAAhB,YAA/CkB,EAAyE,EAAzEA,CACAvC,EAAAA,CAAUwC,EAAA,CAAsB7B,CAAA8B,KAAA,CAAa,OAAb,CAAtB,CAA6CH,CAA7C,CAAoDC,CAApD,CAEVF,EAAAK,mBAAJ,GACEN,CAAAM,mBACA,CAD4BC,EAAA,CAAgBN,CAAAK,mBAAhB,CAA+CN,CAAAM,mBAA/C,CAC5B,CAAA,OAAOL,CAAAK,mBAFT,CAMIE;CAAAA,CAAmBR,CAAAX,aAAA,GAAwBC,CAAxB,CAA+BU,CAAAX,aAA/B,CAAqD,IAE5EoB,GAAA,CAAOT,CAAP,CAAeC,CAAf,CAGIO,EAAJ,GACER,CAAAX,aADF,CACwBmB,CADxB,CAKER,EAAAjB,SAAA,CADEnB,CAAAmB,SAAJ,CACoBnB,CAAAmB,SADpB,CAGoB,IAIlBiB,EAAAf,YAAA,CADErB,CAAAqB,YAAJ,CACuBrB,CAAAqB,YADvB,CAGuB,IAGvBa,EAAAf,SAAA,CAAwBiB,CAAAjB,SACxBe,EAAAb,YAAA,CAA2Be,CAAAf,YAE3B,OAAOe,EAtC2D,CAyCpEI,QAASA,GAAqB,CAACM,CAAD,CAAWR,CAAX,CAAkBC,CAAlB,CAA4B,CAuCxDQ,QAASA,EAAoB,CAAC/C,CAAD,CAAU,CACjCI,CAAA,CAASJ,CAAT,CAAJ,GACEA,CADF,CACYA,CAAAM,MAAA,CAAc,GAAd,CADZ,CAIA,KAAI0C,EAAM,EACVzC,EAAA,CAAQP,CAAR,CAAiB,QAAQ,CAACQ,CAAD,CAAQ,CAG3BA,CAAAH,OAAJ,GACE2C,CAAA,CAAIxC,CAAJ,CADF,CACe,CAAA,CADf,CAH+B,CAAjC,CAOA,OAAOwC,EAb8B,CAnCvC,IAAIC,EAAQ,EACZH,EAAA,CAAWC,CAAA,CAAqBD,CAArB,CAEXR,EAAA,CAAQS,CAAA,CAAqBT,CAArB,CACR/B,EAAA,CAAQ+B,CAAR,CAAe,QAAQ,CAACY,CAAD,CAAQC,CAAR,CAAa,CAClCF,CAAA,CAAME,CAAN,CAAA,CARcC,CAOoB,CAApC,CAIAb,EAAA,CAAWQ,CAAA,CAAqBR,CAArB,CACXhC,EAAA,CAAQgC,CAAR,CAAkB,QAAQ,CAACW,CAAD,CAAQC,CAAR,CAAa,CACrCF,CAAA,CAAME,CAAN,CAAA,CAbcC,CAaD,GAAAH,CAAA,CAAME,CAAN,CAAA,CAA2B,IAA3B,CAZKE,EAWmB,CAAvC,CAIA,KAAIrD,EAAU,CACZmB,SAAU,EADE,CAEZE,YAAa,EAFD,CAKdd,EAAA,CAAQ0C,CAAR,CAAe,QAAQ,CAACK,CAAD,CAAM9C,CAAN,CAAa,CAAA,IAC9B+C,CAD8B,CACxBC,CAtBIJ,EAuBd,GAAIE,CAAJ,EACEC,CACA,CADO,UACP;AAAAC,CAAA,CAAQ,CAACV,CAAA,CAAStC,CAAT,CAFX,EAtBkB6C,EAsBlB,GAGWC,CAHX,GAIEC,CACA,CADO,aACP,CAAAC,CAAA,CAAQV,CAAA,CAAStC,CAAT,CALV,CAOIgD,EAAJ,GACMxD,CAAA,CAAQuD,CAAR,CAAAlD,OAGJ,GAFEL,CAAA,CAAQuD,CAAR,CAEF,EAFmB,GAEnB,EAAAvD,CAAA,CAAQuD,CAAR,CAAA,EAAiB/C,CAJnB,CATkC,CAApC,CAiCA,OAAOR,EAvDiD,CA0D1DyD,QAASA,EAAU,CAAC9C,CAAD,CAAU,CAC3B,MAAQA,EAAD,WAAoB7B,EAAA6B,QAApB,CAAuCA,CAAA,CAAQ,CAAR,CAAvC,CAAoDA,CADhC,CAI7B+C,QAASA,GAAgC,CAAC/C,CAAD,CAAUgD,CAAV,CAAiBhE,CAAjB,CAA0B,CACjE,IAAIK,EAAU,EACV2D,EAAJ,GACE3D,CADF,CACYD,CAAA,CAAY4D,CAAZ,CAjTWC,KAiTX,CAAuC,CAAA,CAAvC,CADZ,CAGIjE,EAAAwB,SAAJ,GACEnB,CADF,CACY2C,EAAA,CAAgB3C,CAAhB,CAAyBD,CAAA,CAAYJ,CAAAwB,SAAZ,CAtThB0C,MAsTgB,CAAzB,CADZ,CAGIlE,EAAA0B,YAAJ,GACErB,CADF,CACY2C,EAAA,CAAgB3C,CAAhB,CAAyBD,CAAA,CAAYJ,CAAA0B,YAAZ,CAxTbyC,SAwTa,CAAzB,CADZ,CAGI9D,EAAAK,OAAJ,GACEV,CAAA+C,mBACA,CAD6B1C,CAC7B,CAAAW,CAAAQ,SAAA,CAAiBnB,CAAjB,CAFF,CAXiE,CA4BnE+D,QAASA,GAAgB,CAACC,CAAD,CAAOC,CAAP,CAAiB,CAIxC,IAAIf,EAAQe,CAAA,CAAW,GAAX,CAAiBA,CAAjB,CAA4B,GAA5B,CAAkC,EAC9CC,GAAA,CAAiBF,CAAjB,CAAuB,CAACG,EAAD,CAAwBjB,CAAxB,CAAvB,CACA,OAAO,CAACiB,EAAD,CAAwBjB,CAAxB,CANiC,CAS1CkB,QAASA,GAAuB,CAACJ,CAAD,CAAOK,CAAP,CAAmB,CACjD,IAAInB,EAAQmB,CAAA,CAAa,QAAb,CAAwB,EAApC,CACIlB,EAAMmB,CAANnB,CA3SwBoB,WA4S5BL,GAAA,CAAiBF,CAAjB,CAAuB,CAACb,CAAD,CAAMD,CAAN,CAAvB,CACA,OAAO,CAACC,CAAD,CAAMD,CAAN,CAJ0C,CAOnDgB,QAASA,GAAgB,CAACF,CAAD,CAAOQ,CAAP,CAAmB,CAG1CR,CAAAS,MAAA,CAFWD,CAAAjB,CAAW,CAAXA,CAEX,CAAA;AADYiB,CAAAtB,CAAW,CAAXA,CAF8B,CAM5CP,QAASA,GAAe,CAACrD,CAAD,CAAGC,CAAH,CAAM,CAC5B,MAAKD,EAAL,CACKC,CAAL,CACOD,CADP,CACW,GADX,CACiBC,CADjB,CAAeD,CADf,CAAeC,CADa,CAiZ9BmF,QAASA,GAAgB,CAACC,CAAD,CAAUhE,CAAV,CAAmBiE,CAAnB,CAA+B,CACtD,IAAIhF,EAASiF,MAAAC,OAAA,CAAc,IAAd,CAAb,CACIC,EAAiBJ,CAAAK,iBAAA,CAAyBrE,CAAzB,CAAjBoE,EAAsD,EAC1DxE,EAAA,CAAQqE,CAAR,CAAoB,QAAQ,CAACK,CAAD,CAAkBC,CAAlB,CAAmC,CAC7D,IAAI5B,EAAMyB,CAAA,CAAeE,CAAf,CACV,IAAI3B,CAAJ,CAAS,CACP,IAAI6B,EAAI7B,CAAA8B,OAAA,CAAW,CAAX,CAGR,IAAU,GAAV,GAAID,CAAJ,EAAuB,GAAvB,GAAiBA,CAAjB,EAAmC,CAAnC,EAA8BA,CAA9B,CACE7B,CAAA,CAAM+B,EAAA,CAAa/B,CAAb,CAMI,EAAZ,GAAIA,CAAJ,GACEA,CADF,CACQ,IADR,CAGA1D,EAAA,CAAOsF,CAAP,CAAA,CAA0B5B,CAdnB,CAFoD,CAA/D,CAoBA,OAAO1D,EAvB+C,CA0BxDyF,QAASA,GAAY,CAACC,CAAD,CAAM,CACzB,IAAIC,EAAW,CACXC,EAAAA,CAASF,CAAAhF,MAAA,CAAU,SAAV,CACbC,EAAA,CAAQiF,CAAR,CAAgB,QAAQ,CAACtC,CAAD,CAAQ,CAGQ,GAAtC,EAAIA,CAAAkC,OAAA,CAAalC,CAAA7C,OAAb,CAA4B,CAA5B,CAAJ,GACE6C,CADF,CACUA,CAAAuC,UAAA,CAAgB,CAAhB,CAAmBvC,CAAA7C,OAAnB,CAAkC,CAAlC,CADV,CAGA6C,EAAA,CAAQwC,UAAA,CAAWxC,CAAX,CAAR,EAA6B,CAC7BqC,EAAA,CAAWA,CAAA,CAAWI,IAAAC,IAAA,CAAS1C,CAAT,CAAgBqC,CAAhB,CAAX,CAAuCrC,CAPpB,CAAhC,CASA,OAAOqC,EAZkB,CAe3BM,QAASA,GAAiB,CAACvC,CAAD,CAAM,CAC9B,MAAe,EAAf,GAAOA,CAAP,EAA2B,IAA3B,EAAoBA,CADU,CAIhCwC,QAASA,GAA6B,CAAC7B,CAAD,CAAW8B,CAAX,CAA8B,CAClE,IAAItB,EAAQuB,CAAZ,CACI9C,EAAQe,CAARf,CAAmB,GACnB6C,EAAJ,CACEtB,CADF,EA5vBiBwB,UA4vBjB,CAGE/C,CAHF,EAGW,aAEX;MAAO,CAACuB,CAAD,CAAQvB,CAAR,CAR2D,CAWpEgD,QAASA,GAAsB,EAAG,CAChC,IAAIC,EAAQtB,MAAAC,OAAA,CAAc,IAAd,CACZ,OAAO,CACLsB,MAAOA,QAAQ,EAAG,CAChBD,CAAA,CAAQtB,MAAAC,OAAA,CAAc,IAAd,CADQ,CADb,CAKLuB,MAAOA,QAAQ,CAAClD,CAAD,CAAM,CAEnB,MAAO,CADHmD,CACG,CADKH,CAAA,CAAMhD,CAAN,CACL,EAAQmD,CAAAC,MAAR,CAAsB,CAFV,CALhB,CAULC,IAAKA,QAAQ,CAACrD,CAAD,CAAM,CAEjB,OADImD,CACJ,CADYH,CAAA,CAAMhD,CAAN,CACZ,GAAgBmD,CAAApD,MAFC,CAVd,CAeLuD,IAAKA,QAAQ,CAACtD,CAAD,CAAMD,CAAN,CAAa,CACnBiD,CAAA,CAAMhD,CAAN,CAAL,CAGEgD,CAAA,CAAMhD,CAAN,CAAAoD,MAAA,EAHF,CACEJ,CAAA,CAAMhD,CAAN,CADF,CACe,CAAEoD,MAAO,CAAT,CAAYrD,MAAOA,CAAnB,CAFS,CAfrB,CAFyB,CAoClCwD,QAASA,GAAwB,CAACC,CAAD,CAAS3C,CAAT,CAAeY,CAAf,CAA2B,CAC1DrE,CAAA,CAAQqE,CAAR,CAAoB,QAAQ,CAACrB,CAAD,CAAO,CACjCoD,CAAA,CAAOpD,CAAP,CAAA,CAAeqD,CAAA,CAAUD,CAAA,CAAOpD,CAAP,CAAV,CAAA,CACToD,CAAA,CAAOpD,CAAP,CADS,CAETS,CAAAS,MAAAoC,iBAAA,CAA4BtD,CAA5B,CAH2B,CAAnC,CAD0D,CA/1B5D,IAAI7B,EAAc5C,CAAA4C,KAAlB,CACIoF,GAAchI,CAAAgI,KADlB,CAEIjE,GAAc/D,CAAA+D,OAFlB,CAGIjC,EAAc9B,CAAA6B,QAHlB,CAIIJ,EAAczB,CAAAyB,QAJlB,CAKIf,GAAcV,CAAAU,QALlB,CAMIY,EAActB,CAAAsB,SANlB,CAOI2G,GAAcjI,CAAAiI,SAPlB,CAQIC,EAAclI,CAAAkI,YARlB,CASIJ,EAAc9H,CAAA8H,UATlB,CAUIK,GAAcnI,CAAAmI,WAVlB,CAWIC,GAAcpI,CAAAoI,UAXlB,CA0BqBlB,CA1BrB,CA0BsCmB,EA1BtC,CA0B2D7C,CA1B3D,CA0B2E8C,EAWvEJ,EAAA,CAAYnI,CAAAwI,gBAAZ,CAAJ;AAA2CT,CAAA,CAAU/H,CAAAyI,sBAAV,CAA3C,EAEEtB,CACA,CADkB,kBAClB,CAAAmB,EAAA,CAAsB,mCAHxB,GAKEnB,CACA,CADkB,YAClB,CAAAmB,EAAA,CAAsB,eANxB,CASIH,EAAA,CAAYnI,CAAA0I,eAAZ,CAAJ,EAA0CX,CAAA,CAAU/H,CAAA2I,qBAAV,CAA1C,EAEElD,CACA,CADiB,iBACjB,CAAA8C,EAAA,CAAqB,iCAHvB,GAKE9C,CACA,CADiB,WACjB,CAAA8C,EAAA,CAAqB,cANvB,CAiBA,KAAIK,GAAuBnD,CAAvBmD,CANYC,OAMhB,CACIC,GAA0BrD,CAA1BqD,CATe1B,UAQnB,CAEI9B,GAAwB6B,CAAxB7B,CARYuD,OASZE,EAAAA,CAA2B5B,CAA3B4B,CAXe3B,UAiBnB,KAAI7G,GAAWN,CAAA+I,SAAA,CAAiB,IAAjB,CAAf,CAkqBIC,GAAwB,CAC1BC,mBAAyBH,CADC,CAE1BI,gBAAyB7D,EAFC,CAG1B8D,mBAAyBjC,CAAzBiC,CArrBiBC,UAkrBS,CAI1BC,kBAAyBR,EAJC,CAK1BS,eAAyBX,EALC,CAM1BY,wBAAyB/D,CAAzB+D,CArrBkCC,gBA+qBR,CAlqB5B;AA2qBIC,GAAgC,CAClCR,mBAAyBH,CADS,CAElCI,gBAAyB7D,EAFS,CAGlCgE,kBAAyBR,EAHS,CAIlCS,eAAyBX,EAJS,CA6wGpC3I,EAAA0J,OAAA,CAAe,WAAf,CAA4B,EAA5B,CAAAC,UAAA,CACa,eADb,CAzxB6BC,CAAC,UAADA,CAAa,YAAbA,CAA2B,QAAQ,CAACC,CAAD,CAAWC,CAAX,CAAuB,CACrF,MAAO,CACLC,SAAU,GADL,CAELC,WAAY,SAFP,CAGLC,SAAU,CAAA,CAHL,CAILC,SAAU,GAJL,CAKLC,KAAMA,QAAQ,CAACC,CAAD,CAAQC,CAAR,CAAkBC,CAAlB,CAAyBC,CAAzB,CAA+BC,CAA/B,CAA4C,CAAA,IACpDC,CADoD,CACnCC,CACrBN,EAAAO,iBAAA,CAAuBL,CAAAM,cAAvB,EAA8CN,CAAA,CAAM,KAAN,CAA9C,CAA4D,QAAQ,CAAClG,CAAD,CAAQ,CACtEqG,CAAJ,EACEZ,CAAAgB,MAAA,CAAeJ,CAAf,CAEEC,EAAJ,GACEA,CAAAI,SAAA,EACA,CAAAJ,CAAA,CAAgB,IAFlB,CAIA,IAAItG,CAAJ,EAAuB,CAAvB,GAAaA,CAAb,CACEsG,CACA,CADgBN,CAAAW,KAAA,EAChB,CAAAP,CAAA,CAAYE,CAAZ,CAA2B,QAAQ,CAAC7I,CAAD,CAAU,CAC3C4I,CAAA,CAAkB5I,CAClBgI,EAAAmB,MAAA,CAAenJ,CAAf,CAAwB,IAAxB,CAA8BwI,CAA9B,CAF2C,CAA7C,CAVwE,CAA5E,CAFwD,CALrD,CAD8E,CAA1DT,CAyxB7B,CAAAD,UAAA,CAGa,mBAHb,CAzgHiCsB,CAAC,cAADA,CAAiB,QAAQ,CAACC,CAAD,CAAe,CACvE,MAAO,CACLf,KAAMA,QAAQ,CAACC,CAAD;AAAQvI,CAAR,CAAiByI,CAAjB,CAAwB,CAWpCa,QAASA,EAAO,CAAC/G,CAAD,CAAQ,CAEtBvC,CAAAuJ,KAAA,CA/euBC,qBA+evB,CADkB,IAClB,GADQjH,CACR,EADoC,MACpC,GAD0BA,CAC1B,CAFsB,CAVxB,IAAII,EAAM8F,CAAAgB,kBACNtL,EAAAsB,SAAA,CAAiBkD,CAAjB,CAAJ,EAA4C,CAA5C,GAA6BA,CAAAjD,OAA7B,CACEM,CAAAuJ,KAAA,CAreuBC,qBAqevB,CAAuC,CAAA,CAAvC,CADF,EAKEF,CAAA,CAAQD,CAAA,CAAa1G,CAAb,CAAA,CAAkB4F,CAAlB,CAAR,CACA,CAAAE,CAAAiB,SAAA,CAAe,mBAAf,CAAoCJ,CAApC,CANF,CAFoC,CADjC,CADgE,CAAxCF,CAygHjC,CAAAO,QAAA,CAIW,gBAJX,CAxoH4BC,CAAC,OAADA,CAAU,QAAQ,CAACC,CAAD,CAAQ,CAGpDC,QAASA,EAAS,CAACC,CAAD,CAAQ,CAIxBC,CAAA,CAAQA,CAAAC,OAAA,CAAaF,CAAb,CACRG,EAAA,EALwB,CA8B1BA,QAASA,EAAQ,EAAG,CAClB,GAAKF,CAAAtK,OAAL,CAAA,CAGA,IADA,IAAIyK,EAAQH,CAAAI,MAAA,EAAZ,CACStK,EAAI,CAAb,CAAgBA,CAAhB,CAAoBqK,CAAAzK,OAApB,CAAkCI,CAAA,EAAlC,CACEqK,CAAA,CAAMrK,CAAN,CAAA,EAGGuK,EAAL,EACER,CAAA,CAAM,QAAQ,EAAG,CACVQ,CAAL,EAAeH,CAAA,EADA,CAAjB,CARF,CADkB,CAjCgC,IAChDF,CADgD,CACzCK,CAUXL,EAAA,CAAQF,CAAAE,MAAR,CAA0B,EAU1BF,EAAAQ,eAAA,CAA2BC,QAAQ,CAACC,CAAD,CAAK,CAClCH,CAAJ,EAAcA,CAAA,EAEdA,EAAA,CAAWR,CAAA,CAAM,QAAQ,EAAG,CAC1BQ,CAAA,CAAW,IACXG,EAAA,EACAN,EAAA,EAH0B,CAAjB,CAH2B,CAUxC,OAAOJ,EA/B6C,CAA1BF,CAwoH5B,CAAAa,SAAA,CAMY,gBANZ;AAr6D6BC,CAAC,kBAADA,CAAqB,QAAQ,CAACC,CAAD,CAAmB,CAW3EC,QAASA,EAAqB,CAACC,CAAD,CAAc,CAC1C,GAAKA,CAAAA,CAAL,CACE,MAAO,KAGLC,EAAAA,CAAOD,CAAAlL,MAAA,CAbGoL,GAaH,CACX,KAAIC,EAAM9G,MAAAC,OAAA,CAAc,IAAd,CAEVvE,EAAA,CAAQkL,CAAR,CAAc,QAAQ,CAACtI,CAAD,CAAM,CAC1BwI,CAAA,CAAIxI,CAAJ,CAAA,CAAW,CAAA,CADe,CAA5B,CAGA,OAAOwI,EAXmC,CAc5CC,QAASA,EAAkB,CAACC,CAAD,CAAiBC,CAAjB,CAAqC,CAC9D,GAAID,CAAJ,EAAsBC,CAAtB,CAA0C,CACxC,IAAIC,EAAkBR,CAAA,CAAsBO,CAAtB,CACtB,OAAOD,EAAAvL,MAAA,CAzBKoL,GAyBL,CAAAM,KAAA,CAAqC,QAAQ,CAAC7L,CAAD,CAAY,CAC9D,MAAO4L,EAAA,CAAgB5L,CAAhB,CADuD,CAAzD,CAFiC,CADoB,CAShE8L,QAASA,EAAS,CAACC,CAAD,CAAWvL,CAAX,CAAoBwL,CAApB,CAAsCC,CAAtC,CAAyD,CACzE,MAAOC,EAAA,CAAMH,CAAN,CAAAF,KAAA,CAAqB,QAAQ,CAACb,CAAD,CAAK,CACvC,MAAOA,EAAA,CAAGxK,CAAH,CAAYwL,CAAZ,CAA8BC,CAA9B,CADgC,CAAlC,CADkE,CAM3EE,QAASA,EAAmB,CAACC,CAAD,CAAYC,CAAZ,CAAiB,CAC3C,IAAIlN,EAAwC,CAAxCA,CAAIe,CAACkM,CAAApL,SAADd,EAAuB,EAAvBA,QAAR,CACId,EAA2C,CAA3CA,CAAIc,CAACkM,CAAAlL,YAADhB,EAA0B,EAA1BA,QACR,OAAOmM,EAAA,CAAMlN,CAAN,EAAWC,CAAX,CAAeD,CAAf,EAAoBC,CAHgB,CAnC7C,IAAI8M,EAAQ,IAAAA,MAARA,CAAqB,CACvBI,KAAM,EADiB,CAEvBC,OAAQ,EAFe,CAGvBjN,KAAM,EAHiB,CAyCzB4M,EAAA5M,KAAAkN,KAAA,CAAgB,QAAQ,CAAChM,CAAD,CAAUwB,CAAV,CAAwBgK,CAAxB,CAA0C,CAEhE,MAAO,CAAChK,CAAAyK,WAAR,EAAmCN,CAAA,CAAoBnK,CAApB,CAF6B,CAAlE,CAKAkK,EAAAI,KAAAE,KAAA,CAAgB,QAAQ,CAAChM,CAAD;AAAUwB,CAAV,CAAwBgK,CAAxB,CAA0C,CAGhE,MAAO,CAAChK,CAAAyK,WAAR,EAAmC,CAACN,CAAA,CAAoBnK,CAApB,CAH4B,CAAlE,CAMAkK,EAAAI,KAAAE,KAAA,CAAgB,QAAQ,CAAChM,CAAD,CAAUwB,CAAV,CAAwBgK,CAAxB,CAA0C,CAGhE,MAAiC,OAAjC,EAAOA,CAAAxI,MAAP,EAA4CxB,CAAAyK,WAHoB,CAAlE,CAMAP,EAAAI,KAAAE,KAAA,CAAgB,QAAQ,CAAChM,CAAD,CAAUwB,CAAV,CAAwBgK,CAAxB,CAA0C,CAEhE,MAAOA,EAAAS,WAAP,EA/DkBC,CA+DlB,GAAsCV,CAAAW,MAAtC,EAAkF,CAAC3K,CAAAyK,WAFnB,CAAlE,CAKAP,EAAAK,OAAAC,KAAA,CAAkB,QAAQ,CAAChM,CAAD,CAAUwB,CAAV,CAAwBgK,CAAxB,CAA0C,CAElE,MAAOA,EAAAS,WAAP,EAAsCzK,CAAAyK,WAF4B,CAApE,CAKAP,EAAAK,OAAAC,KAAA,CAAkB,QAAQ,CAAChM,CAAD,CAAUwB,CAAV,CAAwBgK,CAAxB,CAA0C,CAGlE,MA1EkBU,EA0ElB,GAAOV,CAAAW,MAAP,EAAmD3K,CAAAyK,WAHe,CAApE,CAMAP,EAAAK,OAAAC,KAAA,CAAkB,QAAQ,CAAChM,CAAD,CAAUwB,CAAV,CAAwBgK,CAAxB,CAA0C,CAC9DY,CAAAA,CAAK5K,CAAAhB,SACL6L,EAAAA,CAAK7K,CAAAd,YACT,KAAI4L,EAAKd,CAAAhL,SACL+L,EAAAA,CAAKf,CAAA9K,YAGT,OAAK2F,EAAA,CAAY+F,CAAZ,CAAL,EAAwB/F,CAAA,CAAYgG,CAAZ,CAAxB,EAA6ChG,CAAA,CAAYiG,CAAZ,CAA7C,EAAgEjG,CAAA,CAAYkG,CAAZ,CAAhE,CACS,CAAA,CADT,CAIOtB,CAAA,CAAmBmB,CAAnB,CAAuBG,CAAvB,CAJP,EAIqCtB,CAAA,CAAmBoB,CAAnB,CAAuBC,CAAvB,CAX6B,CAApE,CAcA,KAAAE,KAAA,CAAY,CAAC,OAAD,CAAU,YAAV,CAAwB,cAAxB,CAAwC,WAAxC;AAAqD,WAArD,CACC,aADD,CACgB,iBADhB,CACmC,kBADnC,CACuD,UADvD,CACmE,eADnE,CAEP,QAAQ,CAAC3C,CAAD,CAAU5B,CAAV,CAAwBwE,CAAxB,CAAwCC,CAAxC,CAAqDC,CAArD,CACCC,CADD,CACgBC,CADhB,CACmCC,EADnC,CACuDvM,CADvD,CACmEwM,CADnE,CACkF,CAM7FC,QAASA,EAAqB,EAAG,CAC/B,IAAIC,EAAmB,CAAA,CACvB,OAAO,SAAQ,CAACzC,CAAD,CAAK,CAKdyC,CAAJ,CACEzC,CAAA,EADF,CAGEvC,CAAAiF,aAAA,CAAwB,QAAQ,EAAG,CACjCD,CAAA,CAAmB,CAAA,CACnBzC,EAAA,EAFiC,CAAnC,CARgB,CAFW,CAuEjC2C,QAASA,EAAa,CAACC,CAAD,CAASpN,CAAT,CAAkBgD,CAAlB,CAAyB,CAC7C,IAAIqK,EAAavK,CAAA,CAAW9C,CAAX,CAAjB,CACIsN,EAAmBxK,CAAA,CAAWsK,CAAX,CADvB,CAGIG,EAAU,EAEd,EADIC,CACJ,CADcC,CAAA,CAAiBzK,CAAjB,CACd,GACEpD,CAAA,CAAQ4N,CAAR,CAAiB,QAAQ,CAAC7H,CAAD,CAAQ,CAC3B+H,CAAAC,KAAA,CAAchI,CAAAtC,KAAd,CAA0BgK,CAA1B,CAAJ,CACEE,CAAAvB,KAAA,CAAarG,CAAAiI,SAAb,CADF,CAEqB,OAFrB,GAEW5K,CAFX,EAEgC0K,CAAAC,KAAA,CAAchI,CAAAtC,KAAd,CAA0BiK,CAA1B,CAFhC,EAGEC,CAAAvB,KAAA,CAAarG,CAAAiI,SAAb,CAJ6B,CAAjC,CASF,OAAOL,EAhBsC,CA8F/CM,QAASA,EAAc,CAAC7N,CAAD,CAAUgD,CAAV,CAAiB8K,CAAjB,CAAiC,CAqPtDC,QAASA,EAAc,CAACC,CAAD,CAAShL,CAAT,CAAgBiL,CAAhB,CAAuB1E,CAAvB,CAA6B,CAClD2E,CAAA,CAAyB,QAAQ,EAAG,CAClC,IAAIC,EAAYhB,CAAA,CAAcC,CAAd,CAAsBpN,CAAtB,CAA+BgD,CAA/B,CACZmL,EAAAzO,OAAJ,EAKEmK,CAAA,CAAM,QAAQ,EAAG,CACfjK,CAAA,CAAQuO,CAAR,CAAmB,QAAQ,CAACP,CAAD,CAAW,CACpCA,CAAA,CAAS5N,CAAT,CAAkBiO,CAAlB,CAAyB1E,CAAzB,CADoC,CAAtC,CADe,CAAjB,CAPgC,CAApC,CAcAyE,EAAAI,SAAA,CAAgBpL,CAAhB;AAAuBiL,CAAvB,CAA8B1E,CAA9B,CAfkD,CAkBpD8E,QAASA,EAAK,CAACC,CAAD,CAAS,CACCtO,IAAAA,EAAAA,CAAAA,CAAShB,EAAAA,CA5xEjCA,EAAA+C,mBAAJ,GACE/B,CAAAU,YAAA,CAAoB1B,CAAA+C,mBAApB,CACA,CAAA/C,CAAA+C,mBAAA,CAA6B,IAF/B,CAII/C,EAAAuP,cAAJ,GACEvO,CAAAU,YAAA,CAAoB1B,CAAAuP,cAApB,CACA,CAAAvP,CAAAuP,cAAA,CAAwB,IAF1B,CAyxEMC,GAAA,CAAsBxO,CAAtB,CAA+BhB,CAA/B,CACAkC,GAAA,CAAqBlB,CAArB,CAA8BhB,CAA9B,CACAA,EAAA8B,aAAA,EACAkN,EAAAS,SAAA,CAAgB,CAACH,CAAjB,CALqB,CAnQvB,IAAItP,EAAUmH,EAAA,CAAK2H,CAAL,CAAd,CAEIzK,CAFJ,CAEU+J,CAEV,IADApN,CACA,CADUD,EAAA,CAAyBC,CAAzB,CACV,CACEqD,CACA,CADOP,CAAA,CAAW9C,CAAX,CACP,CAAAoN,CAAA,CAASpN,CAAAoN,OAAA,EAGX,KAAApO,EAAU4B,EAAA,CAAwB5B,CAAxB,CAAV,CAIIgP,EAAS,IAAInB,CAJjB,CAOIqB,EAA2BlB,CAAA,EAE3BnO,GAAA,CAAQG,CAAAwB,SAAR,CAAJ,GACExB,CAAAwB,SADF,CACqBxB,CAAAwB,SAAA1B,KAAA,CAAsB,GAAtB,CADrB,CAIIE,EAAAwB,SAAJ,EAAyB,CAAAf,CAAA,CAAST,CAAAwB,SAAT,CAAzB,GACExB,CAAAwB,SADF,CACqB,IADrB,CAII3B,GAAA,CAAQG,CAAA0B,YAAR,CAAJ,GACE1B,CAAA0B,YADF,CACwB1B,CAAA0B,YAAA5B,KAAA,CAAyB,GAAzB,CADxB,CAIIE,EAAA0B,YAAJ,EAA4B,CAAAjB,CAAA,CAAST,CAAA0B,YAAT,CAA5B,GACE1B,CAAA0B,YADF;AACwB,IADxB,CAII1B,EAAAG,KAAJ,EAAqB,CAAAiH,EAAA,CAASpH,CAAAG,KAAT,CAArB,GACEH,CAAAG,KADF,CACiB,IADjB,CAIIH,EAAAE,GAAJ,EAAmB,CAAAkH,EAAA,CAASpH,CAAAE,GAAT,CAAnB,GACEF,CAAAE,GADF,CACe,IADf,CAOA,IAAKmE,CAAAA,CAAL,CAEE,MADAgL,EAAA,EACOL,CAAAA,CAGLxO,EAAAA,CAAY,CAAC6D,CAAA7D,UAAD,CAAiBR,CAAAwB,SAAjB,CAAmCxB,CAAA0B,YAAnC,CAAA5B,KAAA,CAA6D,GAA7D,CAChB,IAAK,CAAA4P,EAAA,CAAsBlP,CAAtB,CAAL,CAEE,MADA6O,EAAA,EACOL,CAAAA,CAGT,KAAIW,EAA4D,CAA5DA,EAAe,CAAC,OAAD,CAAU,MAAV,CAAkB,OAAlB,CAAAC,QAAA,CAAmC5L,CAAnC,CAAnB,CAOI6L,EAAiB,CAACC,CAAlBD,EAAuCnC,CAAA,CAAU,CAAV,CAAAqC,OAAvCF,EAA8DG,CAAAnJ,IAAA,CAA2BxC,CAA3B,CAC9D4L,EAAAA,CAAqB,CAACJ,CAAtBI,EAAwCC,CAAArJ,IAAA,CAA2BxC,CAA3B,CAAxC4L,EAA6E,EACjF,KAAIE,EAAuB,CAAEhD,CAAA8C,CAAA9C,MAIxB0C,EAAL,EAAyBM,CAAzB,EAnVmBC,CAmVnB,EAAiDH,CAAA9C,MAAjD,GACE0C,CADF,CACmB,CAACQ,CAAA,CAAqBrP,CAArB,CAA8BoN,CAA9B,CAAsCpK,CAAtC,CADpB,CAIA,IAAI6L,CAAJ,CAEE,MADAR,EAAA,EACOL,CAAAA,CAGLW,EAAJ,EACEW,EAAA,CAAqBtP,CAArB,CAGEwB,EAAAA,CAAe,CACjByK,WAAY0C,CADK,CAEjB3O,QAASA,CAFQ,CAGjBgD,MAAOA,CAHU,CAIjBxC,SAAUxB,CAAAwB,SAJO,CAKjBE,YAAa1B,CAAA0B,YALI,CAMjB2N,MAAOA,CANU,CAOjBrP,QAASA,CAPQ,CAQjBgP,OAAQA,CARS,CAWnB,IAAImB,CAAJ,CAA0B,CAExB,GADwB7D,CAAAiE,CAAU,MAAVA,CAAkBvP,CAAlBuP,CAA2B/N,CAA3B+N,CAAyCN,CAAzCM,CACxB,CAAuB,CACrB,GA7WYrD,CA6WZ,GAAI+C,CAAA9C,MAAJ,CAEE,MADAkC,EAAA,EACOL,CAAAA,CAEP1M,EAAA,CAAsBtB,CAAtB,CAA+BiP,CAA/B,CAAkDzN,CAAlD,CACA;MAAOyN,EAAAjB,OANY,CAUvB,GAD0B1C,CAAAkE,CAAU,QAAVA,CAAoBxP,CAApBwP,CAA6BhO,CAA7BgO,CAA2CP,CAA3CO,CAC1B,CACE,GAvXYtD,CAuXZ,GAAI+C,CAAA9C,MAAJ,CAIE8C,CAAAjB,OAAAyB,IAAA,EAJF,KAKO,IAAIR,CAAAhD,WAAJ,CAILgD,CAAAZ,MAAA,EAJK,KASL,OAFA/M,EAAA,CAAsBtB,CAAtB,CAA+BiP,CAA/B,CAAkDzN,CAAlD,CAEOwM,CAAAiB,CAAAjB,OAfX,KAsBE,IADwB1C,CAAAoE,CAAU,MAAVA,CAAkB1P,CAAlB0P,CAA2BlO,CAA3BkO,CAAyCT,CAAzCS,CACxB,CACE,GA7YUxD,CA6YV,GAAI+C,CAAA9C,MAAJ,CA5OC7K,CAAA,CA6O2BtB,CA7O3B,CA6OoCwB,CA7OpC,CAA0C,EAA1C,CA4OD,KAUE,OAPAuB,GAAA,CAAiC/C,CAAjC,CAA0C2O,CAAA,CAAe3L,CAAf,CAAuB,IAAjE,CAAuEhE,CAAvE,CAOOgP,CALPhL,CAKOgL,CALCxM,CAAAwB,MAKDgL,CALsBiB,CAAAjM,MAKtBgL,CAJPhP,CAIOgP,CAJG1M,CAAA,CAAsBtB,CAAtB,CAA+BiP,CAA/B,CAAkDzN,CAAlD,CAIHwM,CAAAiB,CAAAjB,OA7CW,CAA1B,IAzMO1M,EAAA,CA6PqBtB,CA7PrB,CA6P8BwB,CA7P9B,CAA0C,EAA1C,CAoQP,EADImO,CACJ,CADuBnO,CAAAyK,WACvB,IAEE0D,CAFF,CAE6C,SAF7C,GAEsBnO,CAAAwB,MAFtB,EAE8G,CAF9G,CAE0DkB,MAAA4G,KAAA,CAAYtJ,CAAAxC,QAAAE,GAAZ,EAAuC,EAAvC,CAAAQ,OAF1D,EAGyBiM,CAAA,CAAoBnK,CAApB,CAHzB,CAMA,IAAKmO,CAAAA,CAAL,CAGE,MAFAtB,EAAA,EAEOL,CADP4B,CAAA,CAA2B5P,CAA3B,CACOgO,CAAAA,CAIT,KAAI6B,GAAWZ,CAAAY,QAAXA,EAAwC,CAAxCA,EAA6C,CACjDrO,EAAAqO,QAAA,CAAuBA,CAEvBC,EAAA,CAA0B9P,CAA1B,CAtbmBoP,CAsbnB,CAAqD5N,CAArD,CAEAyG,EAAAiF,aAAA,CAAwB,QAAQ,EAAG,CACjC,IAAI6C,EAAmBb,CAAArJ,IAAA,CAA2BxC,CAA3B,CAAvB,CACI2M,EAAqB,CAACD,CAD1B,CAEAA,EAAmBA,CAAnBA,EAAuC,EAFvC,CAWIJ,EAA0C,CAA1CA,CAAmBjQ,CAJHM,CAAAoN,OAAA,EAIG1N,EAJiB,EAIjBA,QAAnBiQ,GACmD,SADnDA;AACwBI,CAAA/M,MADxB2M,EAE2BI,CAAA9D,WAF3B0D,EAG2BhE,CAAA,CAAoBoE,CAApB,CAH3BJ,CAOJ,IAAIK,CAAJ,EAA0BD,CAAAF,QAA1B,GAAuDA,CAAvD,EAAmEF,CAAAA,CAAnE,CAAqF,CAI/EK,CAAJ,GACExB,EAAA,CAAsBxO,CAAtB,CAA+BhB,CAA/B,CACA,CAAAkC,EAAA,CAAqBlB,CAArB,CAA8BhB,CAA9B,CAFF,CAOA,IAAIgR,CAAJ,EAA2BrB,CAA3B,EAA2CoB,CAAA/M,MAA3C,GAAsEA,CAAtE,CACEhE,CAAA8B,aAAA,EACA,CAAAkN,CAAAyB,IAAA,EAMGE,EAAL,EACEC,CAAA,CAA2B5P,CAA3B,CApBiF,CAArF,IA4BAgD,EAmBA,CAnBSiJ,CAAA8D,CAAA9D,WAAD,EAAgCN,CAAA,CAAoBoE,CAApB,CAAsC,CAAA,CAAtC,CAAhC,CACF,UADE,CAEFA,CAAA/M,MAiBN,CAfA8M,CAAA,CAA0B9P,CAA1B,CA1eckM,CA0ed,CAeA,CAdI+D,CAcJ,CAdiBrD,CAAA,CAAY5M,CAAZ,CAAqBgD,CAArB,CAA4B+M,CAAA/Q,QAA5B,CAcjB,CAZAiR,CAAAC,KAAA,CAAgB,QAAQ,CAACC,CAAD,CAAS,CAC/B9B,CAAA,CAAM,CAAC8B,CAAP,CAEA,EADIJ,CACJ,CADuBb,CAAArJ,IAAA,CAA2BxC,CAA3B,CACvB,GAAwB0M,CAAAF,QAAxB,GAAqDA,CAArD,EACED,CAAA,CAA2B9M,CAAA,CAAW9C,CAAX,CAA3B,CAEF+N,EAAA,CAAeC,CAAf,CAAuBhL,CAAvB,CAA8B,OAA9B,CAAuC,EAAvC,CAN+B,CAAjC,CAYA,CADAgL,CAAAoC,QAAA,CAAeH,CAAf,CACA,CAAAlC,CAAA,CAAeC,CAAf,CAAuBhL,CAAvB,CAA8B,OAA9B,CAAuC,EAAvC,CAlEiC,CAAnC,CAqEA,OAAOgL,EAnP+C,CAgRxDsB,QAASA,GAAoB,CAACtP,CAAD,CAAU,CAEjCqQ,CAAAA,CADOvN,CAAAO,CAAWrD,CAAXqD,CACIiN,iBAAA,CAAsB,mBAAtB,CACf1Q,EAAA,CAAQyQ,CAAR,CAAkB,QAAQ,CAACE,CAAD,CAAQ,CAChC,IAAIpE,EAAQqE,QAAA,CAASD,CAAAE,aAAA,CAjiBFC,iBAiiBE,CAAT,CAAZ,CACIX,EAAmBb,CAAArJ,IAAA,CAA2B0K,CAA3B,CACvB,IAAIR,CAAJ,CACE,OAAQ5D,CAAR,EACE,KAjiBUD,CAiiBV,CACE6D,CAAA/B,OAAAyB,IAAA,EAEF;KAriBaL,CAqiBb,CACEF,CAAAyB,OAAA,CAA8BJ,CAA9B,CALJ,CAJ8B,CAAlC,CAHqC,CAmBvCX,QAASA,EAA0B,CAAC5P,CAAD,CAAU,CACvCqD,CAAAA,CAAOP,CAAA,CAAW9C,CAAX,CACXqD,EAAAuN,gBAAA,CAljBqBF,iBAkjBrB,CACAxB,EAAAyB,OAAA,CAA8BtN,CAA9B,CAH2C,CAM7CwN,QAASA,EAAiB,CAACC,CAAD,CAAaC,CAAb,CAAyB,CACjD,MAAOjO,EAAA,CAAWgO,CAAX,CAAP,GAAkChO,CAAA,CAAWiO,CAAX,CADe,CAWnD1B,QAASA,EAAoB,CAACrP,CAAD,CAAUgR,CAAV,CAAyBhO,CAAzB,CAAgC,CACvDiO,CAAAA,CAAchR,CAAA,CAAOyM,CAAA,CAAU,CAAV,CAAAwE,KAAP,CAClB,KAAIC,EAAsBN,CAAA,CAAkB7Q,CAAlB,CAA2BiR,CAA3B,CAAtBE,EAAyF,MAAzFA,GAAiEnR,CAAA,CAAQ,CAAR,CAAAoR,SAArE,CACIC,EAAsBR,CAAA,CAAkB7Q,CAAlB,CAA2ByM,CAA3B,CAD1B,CAEI6E,EAA0B,CAAA,CAF9B,CAGIC,CAHJ,CAIIC,EAAkBxC,CAAAnJ,IAAA,CAA2B/C,CAAA,CAAW9C,CAAX,CAA3B,CAOtB,MALIyR,CAKJ,CALiBzR,CAAAuJ,KAAA,CAxkBGmI,eAwkBH,CAKjB,IAHEV,CAGF,CAHkBS,CAGlB,EAAOT,CAAP,EAAwBA,CAAAtR,OAAxB,CAAA,CAA8C,CACvC2R,CAAL,GAGEA,CAHF,CAGwBR,CAAA,CAAkBG,CAAlB,CAAiCvE,CAAjC,CAHxB,CAMA,KAAIkF,EAAaX,CAAA,CAAc,CAAd,CACjB,IAlqFW9Q,CAkqFX,GAAIyR,CAAAxR,SAAJ,CAEE,KAGEyR,EAAAA,CAAU1C,CAAArJ,IAAA,CAA2B8L,CAA3B,CAAVC,EAAoD,EAIxD,IAAKN,CAAAA,CAAL,CAA8B,CACxBO,CAAAA,CAAwB7C,CAAAnJ,IAAA,CAA2B8L,CAA3B,CAE5B,IAA8B,CAAA,CAA9B,GAAIE,CAAJ,EAA0D,CAAA,CAA1D,GAAsCL,CAAtC,CAAiE,CAG/DA,CAAA,CAAkB,CAAA,CAElB,MAL+D,CAAjE,IAMqC,CAAA,CAA9B,GAAIK,CAAJ,GACLL,CADK,CACa,CAAA,CADb,CAGPF,EAAA,CAA0BM,CAAA3F,WAZE,CAe9B,GAAI5F,CAAA,CAAYkL,CAAZ,CAAJ,EAAwD,CAAA,CAAxD,GAAoCA,CAApC,CACMhP,CACJ,CADYyO,CAAAzH,KAAA,CAjrFSC,qBAirFT,CACZ,CAAIvD,CAAA,CAAU1D,CAAV,CAAJ,GACEgP,CADF,CACoBhP,CADpB,CAMF,IAAI+O,CAAJ,EAAmD,CAAA,CAAnD,GAA+BC,CAA/B,CAA0D,KAErDJ;CAAL,GAGEA,CAHF,CAGwBN,CAAA,CAAkBG,CAAlB,CAAiCC,CAAjC,CAHxB,CAMA,IAAIE,CAAJ,EAA2BE,CAA3B,CAGE,KAGF,IAAKA,CAAAA,CAAL,GAEEI,CAFF,CAEeT,CAAAzH,KAAA,CAroBGmI,eAqoBH,CAFf,EAGkB,CAEdV,CAAA,CAAgBS,CAChB,SAHc,CAOlBT,CAAA,CAAgBA,CAAA5D,OAAA,EAhE4B,CAoE9C,OADsB,CAACkE,CACvB,EADkDC,CAClD,GAD0F,CAAA,CAC1F,GADsEC,CACtE,EAAyBH,CAAzB,EAAgDF,CAjFW,CAoF7DrB,QAASA,EAAyB,CAAC9P,CAAD,CAAUmM,CAAV,CAAiByF,CAAjB,CAA0B,CAC1DA,CAAA,CAAUA,CAAV,EAAqB,EACrBA,EAAAzF,MAAA,CAAgBA,CAEZ9I,EAAAA,CAAOP,CAAA,CAAW9C,CAAX,CACXqD,EAAAyO,aAAA,CA1pBqBpB,iBA0pBrB,CAAwCvE,CAAxC,CAGI4F,EAAAA,CAAW,CADXC,CACW,CADA9C,CAAArJ,IAAA,CAA2BxC,CAA3B,CACA,EACTnB,EAAA,CAAO8P,CAAP,CAAiBJ,CAAjB,CADS,CAETA,CACN1C,EAAApJ,IAAA,CAA2BzC,CAA3B,CAAiC0O,CAAjC,CAX0D,CAjjB5D,IAAI7C,EAAyB,IAAIvC,CAAjC,CACIqC,EAAyB,IAAIrC,CADjC,CAEImC,EAAoB,IAFxB,CA0BImD,EAAkBhK,CAAAiK,OAAA,CACpB,QAAQ,EAAG,CAAE,MAAiD,EAAjD,GAAOpF,EAAAqF,qBAAT,CADS,CAEpB,QAAQ,CAACC,CAAD,CAAU,CACXA,CAAL,GACAH,CAAA,EASA,CAAAhK,CAAAiF,aAAA,CAAwB,QAAQ,EAAG,CACjCjF,CAAAiF,aAAA,CAAwB,QAAQ,EAAG,CAGP,IAA1B,GAAI4B,CAAJ,GACEA,CADF,CACsB,CAAA,CADtB,CAHiC,CAAnC,CADiC,CAAnC,CAVA,CADgB,CAFE,CA1BtB,CAmDIrB,EAAmB,EAnDvB,CAuDI4E,EAAkB1H,CAAA0H,gBAAA,EAvDtB,CAwDI3D,GAAyB2D,CAAD,CAEhB,QAAQ,CAAC7S,CAAD,CAAY,CACpB,MAAO6S,EAAAC,KAAA,CAAqB9S,CAArB,CADa,CAFJ,CAChB,QAAQ,EAAG,CAAE,MAAO,CAAA,CAAT,CAzDvB,CA8DIgP,GAAwB7N,CAAA,CAA6BJ,CAA7B,CA9D5B;AAqEImN,EAAW6E,IAAAC,UAAA9E,SAAXA,EAAsC,QAAQ,CAACpP,CAAD,CAAM,CAEtD,MAAO,KAAP,GAAgBA,CAAhB,EAAuB,CAAG,EAAA,IAAAmU,wBAAA,CAA6BnU,CAA7B,CAAA,CAAoC,EAApC,CAF4B,CAyBxD,OAAO,CACLoU,GAAIA,QAAQ,CAAC1P,CAAD,CAAQ2P,CAAR,CAAmB/E,CAAnB,CAA6B,CACnCvK,CAAAA,CAAOjD,EAAA,CAAmBuS,CAAnB,CACXlF,EAAA,CAAiBzK,CAAjB,CAAA,CAA0ByK,CAAA,CAAiBzK,CAAjB,CAA1B,EAAqD,EACrDyK,EAAA,CAAiBzK,CAAjB,CAAAgJ,KAAA,CAA6B,CAC3B3I,KAAMA,CADqB,CAE3BuK,SAAUA,CAFiB,CAA7B,CAHuC,CADpC,CAULgF,IAAKA,QAAQ,CAAC5P,CAAD,CAAQ2P,CAAR,CAAmB/E,CAAnB,CAA6B,CAQxCiF,QAASA,EAAkB,CAACC,CAAD,CAAOC,CAAP,CAAuBC,CAAvB,CAAsC,CAC/D,IAAIC,EAAgB7S,EAAA,CAAmB2S,CAAnB,CACpB,OAAOD,EAAAI,OAAA,CAAY,QAAQ,CAACvN,CAAD,CAAQ,CAGjC,MAAO,EAFOA,CAAAtC,KAEP,GAFsB4P,CAEtB,GADWD,CAAAA,CACX,EAD4BrN,CAAAiI,SAC5B,GAD+CoF,CAC/C,EAH0B,CAA5B,CAFwD,CAPjE,IAAIxF,EAAUC,CAAA,CAAiBzK,CAAjB,CACTwK,EAAL,GAEAC,CAAA,CAAiBzK,CAAjB,CAFA,CAE+C,CAArB,GAAAmQ,SAAAzT,OAAA,CACpB,IADoB,CAEpBmT,CAAA,CAAmBrF,CAAnB,CAA4BmF,CAA5B,CAAuC/E,CAAvC,CAJN,CAFwC,CAVrC,CA4BLwF,IAAKA,QAAQ,CAACpT,CAAD,CAAUgR,CAAV,CAAyB,CACpC3S,EAAA,CAAUkI,EAAA,CAAUvG,CAAV,CAAV,CAA8B,SAA9B,CAAyC,gBAAzC,CACA3B,GAAA,CAAUkI,EAAA,CAAUyK,CAAV,CAAV,CAAoC,eAApC,CAAqD,gBAArD,CACAhR,EAAAuJ,KAAA,CAhOkBmI,eAgOlB,CAAkCV,CAAlC,CAHoC,CA5BjC,CAkCLhF,KAAMA,QAAQ,CAAChM,CAAD,CAAUgD,CAAV,CAAiBhE,CAAjB,CAA0B8B,CAA1B,CAAwC,CACpD9B,CAAA;AAAUA,CAAV,EAAqB,EACrBA,EAAA8B,aAAA,CAAuBA,CACvB,OAAO+M,EAAA,CAAe7N,CAAf,CAAwBgD,CAAxB,CAA+BhE,CAA/B,CAH6C,CAlCjD,CA6CLqU,QAASA,QAAQ,CAACrT,CAAD,CAAUsT,CAAV,CAAgB,CAC/B,IAAIC,EAAWJ,SAAAzT,OAEf,IAAiB,CAAjB,GAAI6T,CAAJ,CAEED,CAAA,CAAO,CAAExE,CAAAA,CAFX,KAME,IAFiBvI,EAAAiN,CAAUxT,CAAVwT,CAEjB,CAGO,CACL,IAAInQ,EAAOP,CAAA,CAAW9C,CAAX,CAAX,CACIyT,EAAezE,CAAAnJ,IAAA,CAA2BxC,CAA3B,CAEF,EAAjB,GAAIkQ,CAAJ,CAEED,CAFF,CAES,CAACG,CAFV,CAKEzE,CAAAlJ,IAAA,CAA2BzC,CAA3B,CAAiC,CAACiQ,CAAlC,CATG,CAHP,IAEEA,EAAA,CAAOxE,CAAP,CAA2B,CAAE9O,CAAAA,CAejC,OAAOsT,EA1BwB,CA7C5B,CAhGsF,CAHnF,CA7F+D,CAAhD5I,CAq6D7B,CAAAD,SAAA,CAOY,aAPZ,CAlwC0BiJ,CAAC,kBAADA,CAAqB,QAAQ,CAAC/I,CAAD,CAAmB,CAexEgJ,QAASA,EAAS,CAAC3T,CAAD,CAAU,CAC1B,MAAOA,EAAAuJ,KAAA,CAXgBqK,mBAWhB,CADmB,CAZ5B,IAAIC,EAAU,IAAAA,QAAVA,CAAyB,EAgB7B,KAAArH,KAAA,CAAY,CAAC,UAAD,CAAa,YAAb,CAA2B,WAA3B,CAAwC,iBAAxC,CAA2D,WAA3D,CAAwE,gBAAxE,CACP,QAAQ,CAACjM,CAAD,CAAa0H,CAAb,CAA2B6L,CAA3B,CAAwCjH,CAAxC,CAA2DF,CAA3D,CAAwEoH,CAAxE,CAAwF,CAKnGC,QAASA,EAAc,CAACC,CAAD,CAAa,CAqBlCC,QAASA,EAAW,CAACvO,CAAD,CAAQ,CAC1B,GAAIA,CAAAwO,UAAJ,CAAqB,MAAOxO,EAC5BA,EAAAwO,UAAA,CAAkB,CAAA,CAElB,KAAIC;AAAczO,CAAA0O,QAAlB,CACI1C,EAAayC,CAAAzC,WACjB2C,EAAAxO,IAAA,CAAWsO,CAAX,CAAwBzO,CAAxB,CAGA,KADA,IAAI4O,CACJ,CAAO5C,CAAP,CAAA,CAAmB,CAEjB,GADA4C,CACA,CADcD,CAAAzO,IAAA,CAAW8L,CAAX,CACd,CAAiB,CACV4C,CAAAJ,UAAL,GACEI,CADF,CACgBL,CAAA,CAAYK,CAAZ,CADhB,CAGA,MAJe,CAMjB5C,CAAA,CAAaA,CAAAA,WARI,CAWnBtB,CAACkE,CAADlE,EAAgBmE,CAAhBnE,UAAArE,KAAA,CAAoCrG,CAApC,CACA,OAAOA,EArBmB,CApB5B,IAAI6O,EAAO,CAAEnE,SAAU,EAAZ,CAAX,CACIvQ,CADJ,CACOwU,EAAS,IAAI3H,CAIpB,KAAK7M,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBmU,CAAAvU,OAAhB,CAAmCI,CAAA,EAAnC,CAAwC,CACtC,IAAI8L,EAAYqI,CAAA,CAAWnU,CAAX,CAChBwU,EAAAxO,IAAA,CAAW8F,CAAAyI,QAAX,CAA8BJ,CAAA,CAAWnU,CAAX,CAA9B,CAA8C,CAC5CuU,QAASzI,CAAAyI,QADmC,CAE5C7J,GAAIoB,CAAApB,GAFwC,CAG5C6F,SAAU,EAHkC,CAA9C,CAFsC,CASxC,IAAKvQ,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBmU,CAAAvU,OAAhB,CAAmCI,CAAA,EAAnC,CACEoU,CAAA,CAAYD,CAAA,CAAWnU,CAAX,CAAZ,CAGF,OA0BA2U,SAAgB,CAACD,CAAD,CAAO,CACrB,IAAIE,EAAS,EAAb,CACI1K,EAAQ,EADZ,CAEIlK,CAEJ,KAAKA,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgB0U,CAAAnE,SAAA3Q,OAAhB,CAAsCI,CAAA,EAAtC,CACEkK,CAAAgC,KAAA,CAAWwI,CAAAnE,SAAA,CAAcvQ,CAAd,CAAX,CAGE6U,EAAAA,CAAwB3K,CAAAtK,OAC5B,KAAIkV,EAAmB,CAAvB,CACIC,EAAM,EAEV,KAAK/U,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBkK,CAAAtK,OAAhB,CAA8BI,CAAA,EAA9B,CAAmC,CACjC,IAAI6F,EAAQqE,CAAA,CAAMlK,CAAN,CACiB,EAA7B,EAAI6U,CAAJ,GACEA,CAGA,CAHwBC,CAGxB,CAFAA,CAEA,CAFmB,CAEnB,CADAF,CAAA1I,KAAA,CAAY6I,CAAZ,CACA,CAAAA,CAAA,CAAM,EAJR,CAMAA,EAAA7I,KAAA,CAASrG,CAAA6E,GAAT,CACA7E,EAAA0K,SAAAzQ,QAAA,CAAuB,QAAQ,CAACkV,CAAD,CAAa,CAC1CF,CAAA,EACA5K;CAAAgC,KAAA,CAAW8I,CAAX,CAF0C,CAA5C,CAIAH,EAAA,EAbiC,CAgB/BE,CAAAnV,OAAJ,EACEgV,CAAA1I,KAAA,CAAY6I,CAAZ,CAGF,OAAOH,EAjCc,CA1BhB,CAAQF,CAAR,CAnB2B,CAHpC,IAAIO,EAAiB,EAArB,CACIvG,EAAwB7N,CAAA,CAA6BJ,CAA7B,CAqF5B,OAAO,SAAQ,CAACP,CAAD,CAAUgD,CAAV,CAAiBhE,CAAjB,CAA0B,CAqHvCgW,QAASA,EAAc,CAAC3R,CAAD,CAAO,CAExB8G,CAAAA,CAAQ9G,CAAA4R,aAAA,CAlOQC,gBAkOR,CAAA,CACJ,CAAC7R,CAAD,CADI,CAEJA,CAAAiN,iBAAA,CAHO6E,kBAGP,CACR,KAAIC,EAAU,EACdxV,EAAA,CAAQuK,CAAR,CAAe,QAAQ,CAAC9G,CAAD,CAAO,CAC5B,IAAIvB,EAAOuB,CAAAoN,aAAA,CAvOOyE,gBAuOP,CACPpT,EAAJ,EAAYA,CAAApC,OAAZ,EACE0V,CAAApJ,KAAA,CAAa3I,CAAb,CAH0B,CAA9B,CAMA,OAAO+R,EAZqB,CAe9BC,QAASA,EAAe,CAACpB,CAAD,CAAa,CACnC,IAAIqB,EAAqB,EAAzB,CACIC,EAAY,EAChB3V,EAAA,CAAQqU,CAAR,CAAoB,QAAQ,CAACrI,CAAD,CAAY4J,CAAZ,CAAmB,CAE7C,IAAInS,EAAOP,CAAA,CADG8I,CAAA5L,QACH,CAAX,CAEIyV,EAAkD,CAAlDA,EAAc,CAAC,OAAD,CAAU,MAAV,CAAA7G,QAAA,CADNhD,CAAA5I,MACM,CAFlB,CAGI0S,EAAc9J,CAAAK,WAAA,CAAuB+I,CAAA,CAAe3R,CAAf,CAAvB,CAA8C,EAEhE,IAAIqS,CAAAhW,OAAJ,CAAwB,CACtB,IAAIiW,EAAYF,CAAA,CAAc,IAAd,CAAqB,MAErC7V,EAAA,CAAQ8V,CAAR,CAAqB,QAAQ,CAACE,CAAD,CAAS,CACpC,IAAIpT,EAAMoT,CAAAnF,aAAA,CA7PIyE,gBA6PJ,CACVK,EAAA,CAAU/S,CAAV,CAAA,CAAiB+S,CAAA,CAAU/S,CAAV,CAAjB;AAAmC,EACnC+S,EAAA,CAAU/S,CAAV,CAAA,CAAemT,CAAf,CAAA,CAA4B,CAC1BE,YAAaL,CADa,CAE1BxV,QAASC,CAAA,CAAO2V,CAAP,CAFiB,CAHQ,CAAtC,CAHsB,CAAxB,IAYEN,EAAAtJ,KAAA,CAAwBJ,CAAxB,CAnB2C,CAA/C,CAuBA,KAAIkK,EAAoB,EAAxB,CACIC,EAAe,EACnBnW,EAAA,CAAQ2V,CAAR,CAAmB,QAAQ,CAACS,CAAD,CAAaxT,CAAb,CAAkB,CAC3C,IAAIrD,EAAO6W,CAAA7W,KAAX,CACID,EAAK8W,CAAA9W,GAET,IAAKC,CAAL,EAAcD,CAAd,CAAA,CAYA,IAAI+W,EAAgBhC,CAAA,CAAW9U,CAAA0W,YAAX,CAApB,CACIK,EAAcjC,CAAA,CAAW/U,CAAA2W,YAAX,CADlB,CAEIM,EAAYhX,CAAA0W,YAAAO,SAAA,EAChB,IAAK,CAAAL,CAAA,CAAaI,CAAb,CAAL,CAA8B,CAC5B,IAAIE,EAAQN,CAAA,CAAaI,CAAb,CAARE,CAAkC,CACpCpK,WAAY,CAAA,CADwB,CAEpCqK,YAAaA,QAAQ,EAAG,CACtBL,CAAAK,YAAA,EACAJ,EAAAI,YAAA,EAFsB,CAFY,CAMpCjI,MAAOA,QAAQ,EAAG,CAChB4H,CAAA5H,MAAA,EACA6H,EAAA7H,MAAA,EAFgB,CANkB,CAUpChP,QAASkX,CAAA,CAAuBN,CAAA5W,QAAvB,CAA8C6W,CAAA7W,QAA9C,CAV2B,CAWpCF,KAAM8W,CAX8B,CAYpC/W,GAAIgX,CAZgC,CAapCd,QAAS,EAb2B,CAmBlCiB,EAAAhX,QAAAK,OAAJ,CACE4V,CAAAtJ,KAAA,CAAwBqK,CAAxB,CADF,EAGEf,CAAAtJ,KAAA,CAAwBiK,CAAxB,CACA,CAAAX,CAAAtJ,KAAA,CAAwBkK,CAAxB,CAJF,CApB4B,CA4B9BH,CAAA,CAAaI,CAAb,CAAAf,QAAApJ,KAAA,CAAqC,CACnC,IAAO7M,CAAAa,QAD4B,CACd,KAAMd,CAAAc,QADQ,CAArC,CA3CA,CAAA,IAGMwV,EAEJ,CAFYrW,CAAA,CAAOA,CAAA0W,YAAP,CAA0B3W,CAAA2W,YAEtC;AADIW,CACJ,CADehB,CAAAY,SAAA,EACf,CAAKN,CAAA,CAAkBU,CAAlB,CAAL,GACEV,CAAA,CAAkBU,CAAlB,CACA,CAD8B,CAAA,CAC9B,CAAAlB,CAAAtJ,KAAA,CAAwBiI,CAAA,CAAWuB,CAAX,CAAxB,CAFF,CATyC,CAA7C,CAoDA,OAAOF,EAhF4B,CAmFrCiB,QAASA,EAAsB,CAAC5X,CAAD,CAAGC,CAAH,CAAM,CACnCD,CAAA,CAAIA,CAAAgB,MAAA,CAAQ,GAAR,CACJf,EAAA,CAAIA,CAAAe,MAAA,CAAQ,GAAR,CAGJ,KAFA,IAAI4N,EAAU,EAAd,CAESzN,EAAI,CAAb,CAAgBA,CAAhB,CAAoBnB,CAAAe,OAApB,CAA8BI,CAAA,EAA9B,CAAmC,CACjC,IAAI2W,EAAK9X,CAAA,CAAEmB,CAAF,CACT,IAA0B,KAA1B,GAAI2W,CAAA3R,UAAA,CAAa,CAAb,CAAe,CAAf,CAAJ,CAEA,IAAS,IAAA4R,EAAI,CAAb,CAAgBA,CAAhB,CAAoB9X,CAAAc,OAApB,CAA8BgX,CAAA,EAA9B,CACE,GAAID,CAAJ,GAAW7X,CAAA,CAAE8X,CAAF,CAAX,CAAiB,CACfnJ,CAAAvB,KAAA,CAAayK,CAAb,CACA,MAFe,CALc,CAYnC,MAAOlJ,EAAAzO,KAAA,CAAa,GAAb,CAjB4B,CAoBrC6X,QAASA,EAAiB,CAAC5G,CAAD,CAAmB,CAG3C,IAAS,IAAAjQ,EAAI+T,CAAAnU,OAAJI,CAAqB,CAA9B,CAAsC,CAAtC,EAAiCA,CAAjC,CAAyCA,CAAA,EAAzC,CAA8C,CAC5C,IAAI8W,EAAa/C,CAAA,CAAQ/T,CAAR,CACjB,IAAKgU,CAAA+C,IAAA,CAAcD,CAAd,CAAL,GAGIE,CAHJ,CAEchD,CAAAjO,IAAA8D,CAAciN,CAAdjN,CACD,CAAQoG,CAAR,CAHb,EAKE,MAAO+G,EAPmC,CAHH,CA0B7CC,QAASA,GAAsB,CAACnL,CAAD,CAAYoL,CAAZ,CAAuB,CAChDpL,CAAAzM,KAAJ,EAAsByM,CAAA1M,GAAtB,EAQEyU,CAAA,CAPO/H,CAAAzM,KAAAa,QAOP,CAAAoQ,QAAA,CAA2B4G,CAA3B,CAAA,CAAArD,CAAA,CANO/H,CAAA1M,GAAAc,QAMP,CAAAoQ,QAAA,CAA2B4G,CAA3B,CARF,EAQErD,CAAA,CAJO/H,CAAA5L,QAIP,CAAAoQ,QAAA,CAA2B4G,CAA3B,CATkD,CAatDC,QAASA,EAAsB,EAAG,CAChC,IAAIjJ,EAAS2F,CAAA,CAAU3T,CAAV,CACTgO,EAAAA,CAAJ,EAAyB,OAAzB,GAAehL,CAAf,EAAqChE,CAAAiC,oBAArC;AACE+M,CAAAyB,IAAA,EAH8B,CAOlCpB,QAASA,EAAK,CAAC6I,CAAD,CAAW,CACvBlX,CAAA4S,IAAA,CAAY,UAAZ,CAAwBqE,CAAxB,CACajX,EA3XjBmX,WAAA,CAPuBvD,mBAOvB,CA6XIpF,EAAA,CAAsBxO,CAAtB,CAA+BhB,CAA/B,CACAkC,GAAA,CAAqBlB,CAArB,CAA8BhB,CAA9B,CACAA,EAAA8B,aAAA,EAEIsW,EAAJ,EACE7W,CAAAG,YAAA,CAAqBV,CAArB,CAA8BoX,CAA9B,CAGFpX,EAAAU,YAAA,CAznGmB2W,YAynGnB,CACArJ,EAAAS,SAAA,CAAgB,CAACyI,CAAjB,CAbuB,CAxRzBlY,CAAA,CAAU4B,EAAA,CAAwB5B,CAAxB,CACV,KAAI2P,EAA4D,CAA5DA,EAAe,CAAC,OAAD,CAAU,MAAV,CAAkB,OAAlB,CAAAC,QAAA,CAAmC5L,CAAnC,CAAnB,CAMIgL,EAAS,IAAInB,CAAJ,CAAoB,CAC/B4C,IAAKA,QAAQ,EAAG,CAAEpB,CAAA,EAAF,CADe,CAE/BtC,OAAQA,QAAQ,EAAG,CAAEsC,CAAA,CAAM,CAAA,CAAN,CAAF,CAFY,CAApB,CAKb,IAAK3O,CAAAmU,CAAAnU,OAAL,CAEE,MADA2O,EAAA,EACOL,CAAAA,CAGChO,EAtHZuJ,KAAA,CAHuBqK,mBAGvB,CAsHqB5F,CAtHrB,CAwHE,KAAI3O,EAAUX,EAAA,CAAasB,CAAA8B,KAAA,CAAa,OAAb,CAAb,CAAoCpD,EAAA,CAAaM,CAAAwB,SAAb,CAA+BxB,CAAA0B,YAA/B,CAApC,CAAd,CACI0W,EAAcpY,CAAAoY,YACdA,EAAJ,GACE/X,CACA,EADW,GACX,CADiB+X,CACjB,CAAApY,CAAAoY,YAAA,CAAsB,IAFxB,CAKA,KAAIE,CACA3I,EAAJ,GACE2I,CACA,CADmB,KACnB,CAD2BtU,CAC3B,CAp3FmBuU,UAo3FnB,CAAAhX,CAAAC,SAAA,CAAkBR,CAAlB,CAA2BsX,CAA3B,CAFF,CAKAvC,EAAA/I,KAAA,CAAoB,CAGlBhM,QAASA,CAHS;AAIlBX,QAASA,CAJS,CAKlB2D,MAAOA,CALW,CAMlBiJ,WAAY0C,CANM,CAOlB3P,QAASA,CAPS,CAQlBsX,YAiNFA,QAAoB,EAAG,CACrBtW,CAAAQ,SAAA,CA/kGmB6W,YA+kGnB,CACID,EAAJ,EACE7W,CAAAC,SAAA,CAAkBR,CAAlB,CAA2BoX,CAA3B,CAEEE,EAAJ,GACE/W,CAAAG,YAAA,CAAqBV,CAArB,CAA8BsX,CAA9B,CACA,CAAAA,CAAA,CAAmB,IAFrB,CALqB,CAzNH,CASlBjJ,MAAOA,CATW,CAApB,CAYArO,EAAA0S,GAAA,CAAW,UAAX,CAAuBuE,CAAvB,CAKA,IAA4B,CAA5B,CAAIlC,CAAArV,OAAJ,CAA+B,MAAOsO,EAEtC/F,EAAAiF,aAAA,CAAwB,QAAQ,EAAG,CACjC,IAAI+G,EAAa,EACjBrU,EAAA,CAAQmV,CAAR,CAAwB,QAAQ,CAACpP,CAAD,CAAQ,CAIlCgO,CAAA,CAAUhO,CAAA3F,QAAV,CAAJ,CACEiU,CAAAjI,KAAA,CAAgBrG,CAAhB,CADF,CAGEA,CAAA0I,MAAA,EAPoC,CAAxC,CAYA0G,EAAArV,OAAA,CAAwB,CAExB,KAAI8X,EAAoBnC,CAAA,CAAgBpB,CAAhB,CAAxB,CACIwD,EAAuB,EAE3B7X,EAAA,CAAQ4X,CAAR,CAA2B,QAAQ,CAACE,CAAD,CAAiB,CAClDD,CAAAzL,KAAA,CAA0B,CACxBqI,QAASvR,CAAA,CAAW4U,CAAAvY,KAAA,CAAsBuY,CAAAvY,KAAAa,QAAtB,CAAoD0X,CAAA1X,QAA/D,CADe,CAExBwK,GAAImN,QAA8B,EAAG,CAInCD,CAAApB,YAAA,EAJmC,KAM/BsB,CAN+B,CAMbC,EAAUH,CAAArJ,MAQhC,IAAIsF,CAAA,CAJgB+D,CAAAtC,QAAA0C,CACbJ,CAAAvY,KAAAa,QADa8X,EACkBJ,CAAAxY,GAAAc,QADlB8X,CAEdJ,CAAA1X,QAEF,CAAJ,CAA8B,CAC5B,IAAI+X,EAAYpB,CAAA,CAAkBe,CAAlB,CACZK,EAAJ,GACEH,CADF,CACqBG,CAAAC,MADrB,CAF4B,CAOzBJ,CAAL;CAGMK,CAIJ,CAJsBL,CAAA,EAItB,CAHAK,CAAA/H,KAAA,CAAqB,QAAQ,CAACC,CAAD,CAAS,CACpC0H,CAAA,CAAQ,CAAC1H,CAAT,CADoC,CAAtC,CAGA,CAAA4G,EAAA,CAAuBW,CAAvB,CAAuCO,CAAvC,CAPF,EACEJ,CAAA,EAtBiC,CAFb,CAA1B,CADkD,CAApD,CAwCA9D,EAAA,CAAeC,CAAA,CAAeyD,CAAf,CAAf,CA3DiC,CAAnC,CA8DA,OAAOzJ,EAlHgC,CAxF0D,CADzF,CAnB4D,CAAhD0F,CAkwC1B,CAAAjJ,SAAA,CASY,aATZ,CAzpG0ByN,CAAC,kBAADA,CAAqB,QAAQ,CAACvN,CAAD,CAAmB,CACxE,IAAIwN,EAAY5S,EAAA,EAAhB,CACI6S,EAAmB7S,EAAA,EAEvB,KAAAiH,KAAA,CAAY,CAAC,SAAD,CAAY,UAAZ,CAAwB,iBAAxB,CAA2C,UAA3C,CACC,eADD,CACkB,UADlB,CAC8B,gBAD9B,CACgD,gBADhD,CAEP,QAAQ,CAACxI,CAAD,CAAYzD,CAAZ,CAAwBsM,CAAxB,CAA2CwL,CAA3C,CACCtL,CADD,CACkBuL,CADlB,CAC8BvE,CAD9B,CAC8CwE,CAD9C,CAC8D,CAKzEC,QAASA,EAAS,CAACnV,CAAD,CAAOoV,CAAP,CAAqB,CAErC,IAAI9G,EAAatO,CAAAsO,WAEjB,QADeA,CAAA,qBACf,GADmCA,CAAA,qBACnC,CADqD,EAAE+G,CACvD,GAAkB,GAAlB,CAAwBrV,CAAAoN,aAAA,CAAkB,OAAlB,CAAxB,CAAqD,GAArD,CAA2DgI,CAJtB,CAuBvCE,QAASA,EAA6B,CAACtV,CAAD,CAAO7D,CAAP,CAAkBoZ,CAAlB,CAA4B3U,CAA5B,CAAwC,CAC5E,IAAI4U,CAK4B,EAAhC,CAAIV,CAAAzS,MAAA,CAAgBkT,CAAhB,CAAJ,GACEC,CAEA,CAFUT,CAAAvS,IAAA,CAAqB+S,CAArB,CAEV,CAAKC,CAAL,GACMC,CAYJ,CAZuB1Z,CAAA,CAAYI,CAAZ,CAAuB,UAAvB,CAYvB;AAVAe,CAAAC,SAAA,CAAkB6C,CAAlB,CAAwByV,CAAxB,CAUA,CARAD,CAQA,CARU9U,EAAA,CAAiBC,CAAjB,CAA0BX,CAA1B,CAAgCY,CAAhC,CAQV,CALA4U,CAAArR,kBAKA,CAL4BxC,IAAAC,IAAA,CAAS4T,CAAArR,kBAAT,CAAoC,CAApC,CAK5B,CAJAqR,CAAAzR,mBAIA,CAJ6BpC,IAAAC,IAAA,CAAS4T,CAAAzR,mBAAT,CAAqC,CAArC,CAI7B,CAFA7G,CAAAG,YAAA,CAAqB2C,CAArB,CAA2ByV,CAA3B,CAEA,CAAAV,CAAAtS,IAAA,CAAqB8S,CAArB,CAA+BC,CAA/B,CAbF,CAHF,CAoBA,OAAOA,EAAP,EAAkB,EA1B0D,CA+B9EvO,QAASA,GAAc,CAACsD,CAAD,CAAW,CAChCmL,CAAA/M,KAAA,CAAkB4B,CAAlB,CACAmG,EAAAzJ,eAAA,CAA8B,QAAQ,EAAG,CACvC6N,CAAA1S,MAAA,EACA2S,EAAA3S,MAAA,EAQA,KAJA,IAAIuT,EAAYjM,CAAA,EAAhB,CAISjN,EAAI,CAAb,CAAgBA,CAAhB,CAAoBiZ,CAAArZ,OAApB,CAAyCI,CAAA,EAAzC,CACEiZ,CAAA,CAAajZ,CAAb,CAAA,CAAgBkZ,CAAhB,CAEFD,EAAArZ,OAAA,CAAsB,CAbiB,CAAzC,CAFgC,CAmBlCuZ,QAASA,EAAc,CAAC5V,CAAD,CAAO7D,CAAP,CAAkBoZ,CAAlB,CAA4B,CAjE7CM,CAAAA,CAAUf,CAAAtS,IAAA,CAkEwC+S,CAlExC,CAETM,EAAL,GACEA,CACA,CADUnV,EAAA,CAAiBC,CAAjB,CA+DyBX,CA/DzB,CA+DoD8D,EA/DpD,CACV,CAAwC,UAAxC,GAAI+R,CAAAxR,wBAAJ,GACEwR,CAAAxR,wBADF,CACoC,CADpC,CAFF,CASAyQ,EAAArS,IAAA,CAuDsD8S,CAvDtD,CAAwBM,CAAxB,CACA,EAAA,CAAOA,CAuDHC,EAAAA,CAAKD,CAAAzR,eACL2R,EAAAA,CAAKF,CAAA7R,gBACT6R,EAAAG,SAAA,CAAmBF,CAAA,EAAMC,CAAN,CACbpU,IAAAC,IAAA,CAASkU,CAAT;AAAaC,CAAb,CADa,CAEZD,CAFY,EAENC,CACbF,EAAAI,YAAA,CAAsBtU,IAAAC,IAAA,CAClBiU,CAAA1R,kBADkB,CACU0R,CAAAxR,wBADV,CAElBwR,CAAA9R,mBAFkB,CAItB,OAAO8R,EAX0C,CA5EnD,IAAI1K,EAAwB7N,CAAA,CAA6BJ,CAA7B,CAA5B,CAEImY,EAAgB,CAFpB,CAwDIK,EAAe,EAkCnB,OAAOQ,SAAa,CAACvZ,CAAD,CAAU8N,CAAV,CAA0B,CAgQ5C0L,QAASA,EAAK,EAAG,CACfnL,CAAA,EADe,CAIjBhE,QAASA,EAAQ,EAAG,CAClBgE,CAAA,CAAM,CAAA,CAAN,CADkB,CAIpBA,QAASA,EAAK,CAAC6I,CAAD,CAAW,CAGvB,GAAI,EAAAuC,CAAA,EAAoBC,EAApB,EAA0CC,CAA1C,CAAJ,CAAA,CACAF,CAAA,CAAkB,CAAA,CAClBE,EAAA,CAAkB,CAAA,CAEb3a,EAAA4a,yBAAL,EACErZ,CAAAG,YAAA,CAAqBV,CAArB,CAA8B+B,EAA9B,CAEFxB,EAAAG,YAAA,CAAqBV,CAArB,CAA8BuO,EAA9B,CAEA9K,GAAA,CAAwBJ,CAAxB,CAA8B,CAAA,CAA9B,CACAD,GAAA,CAAiBC,CAAjB,CAAuB,CAAA,CAAvB,CAEAzD,EAAA,CAAQia,CAAR,CAAyB,QAAQ,CAAClU,CAAD,CAAQ,CAIvCtC,CAAAS,MAAA,CAAW6B,CAAA,CAAM,CAAN,CAAX,CAAA,CAAuB,EAJgB,CAAzC,CAOA6I,EAAA,CAAsBxO,CAAtB,CAA+BhB,CAA/B,CACAkC,GAAA,CAAqBlB,CAArB,CAA8BhB,CAA9B,CAEIkF,OAAA4G,KAAA,CAAYgP,CAAZ,CAAApa,OAAJ,EACEE,CAAA,CAAQka,CAAR,CAAuB,QAAQ,CAACvX,CAAD,CAAQK,CAAR,CAAc,CAC3CL,CAAA,CAAQc,CAAAS,MAAAiW,YAAA,CAAuBnX,CAAvB,CAA6BL,CAA7B,CAAR,CACQc,CAAAS,MAAAkW,eAAA,CAA0BpX,CAA1B,CAFmC,CAA7C,CAWF,IAAI5D,CAAAib,OAAJ,CACEjb,CAAAib,OAAA,EAGEC,GAAJ,EAAcA,EAAAxa,OAAd,EAEEM,CAAA4S,IAAA,CAAYsH,EAAApb,KAAA,CAAY,GAAZ,CAAZ;AAA8Bqb,CAA9B,CAIF,KAAIC,EAAqBpa,CAAAuJ,KAAA,CArvBT8Q,cAqvBS,CACrBD,EAAJ,GACE/B,CAAAtM,OAAA,CAAgBqO,CAAA,CAAmB,CAAnB,CAAAE,MAAhB,CACA,CAAAta,CAAAmX,WAAA,CAxvBckD,cAwvBd,CAFF,CAMIrM,EAAJ,EACEA,CAAAS,SAAA,CAAgB,CAACyI,CAAjB,CApDF,CAHuB,CA2DzBqD,QAASA,EAAa,CAACjX,CAAD,CAAW,CAC3BhB,CAAAkY,gBAAJ,EACEpX,EAAA,CAAiBC,CAAjB,CAAuBC,CAAvB,CAGEhB,EAAAmY,uBAAJ,EACEhX,EAAA,CAAwBJ,CAAxB,CAA8B,CAAEC,CAAAA,CAAhC,CAN6B,CAUjCoX,QAASA,EAA0B,EAAG,CACpC1M,CAAA,CAAS,IAAInB,CAAJ,CAAoB,CAC3B4C,IAAK+J,CADsB,CAE3BzN,OAAQ1B,CAFmB,CAApB,CAMTC,GAAA,CAAevJ,CAAf,CACAsN,EAAA,EAEA,OAAO,CACLsM,cAAe,CAAA,CADV,CAEL3C,MAAOA,QAAQ,EAAG,CAChB,MAAOhK,EADS,CAFb,CAKLyB,IAAK+J,CALA,CAV6B,CAmBtCW,QAASA,EAAmB,CAACnX,CAAD,CAAQ,CAClCA,CAAA4X,gBAAA,EACA,KAAIC,EAAK7X,CAAA8X,cAALD,EAA4B7X,CAI5B+X,EAAAA,CAAYF,CAAAG,iBAAZD,EAAmCE,IAAAC,IAAA,EAInCC,EAAAA,CAAcpW,UAAA,CAAW8V,CAAAM,YAAAC,QAAA,CA7kBCC,CA6kBD,CAAX,CASdrW,KAAAC,IAAA,CAAS8V,CAAT,CAAqBO,CAArB,CAAgC,CAAhC,CAAJ,EAA0CC,CAA1C,EAA0DJ,CAA1D,EAAyE7B,CAAzE,GAGEI,EACA,CADqB,CAAA,CACrB,CAAArL,CAAA,EAJF,CAnBkC,CA2BpC2J,QAASA,EAAK,EAAG,CAkDfL,QAASA,EAAqB,EAAG,CAG/B,GAAI8B,CAAAA,CAAJ,CAAA,CAEAc,CAAA,CAAc,CAAA,CAAd,CAEA3a,EAAA,CAAQia,CAAR;AAAyB,QAAQ,CAAClU,CAAD,CAAQ,CAGvCtC,CAAAS,MAAA,CAFU6B,CAAAnD,CAAM,CAANA,CAEV,CAAA,CADYmD,CAAApD,CAAM,CAANA,CAF2B,CAAzC,CAMAiM,EAAA,CAAsBxO,CAAtB,CAA+BhB,CAA/B,CACAuB,EAAAC,SAAA,CAAkBR,CAAlB,CAA2BuO,EAA3B,CAEA,IAAIjM,CAAAkZ,wBAAJ,CAAmC,CACjCC,EAAA,CAAgBpY,CAAA7D,UAAhB,CAAiC,GAAjC,CAAuCuC,EACvC6W,GAAA,CAAWJ,CAAA,CAAUnV,CAAV,CAAgBoY,EAAhB,CAEXvC,EAAA,CAAUD,CAAA,CAAe5V,CAAf,CAAqBoY,EAArB,CAAoC7C,EAApC,CACV8C,EAAA,CAAgBxC,CAAAG,SAChBA,EAAA,CAAWrU,IAAAC,IAAA,CAASyW,CAAT,CAAwB,CAAxB,CACXpC,EAAA,CAAcJ,CAAAI,YAEd,IAAoB,CAApB,GAAIA,CAAJ,CAAuB,CACrBjL,CAAA,EACA,OAFqB,CAKvB/L,CAAAqZ,eAAA,CAAoD,CAApD,CAAuBzC,CAAA9R,mBACvB9E,EAAAsZ,cAAA,CAAkD,CAAlD,CAAsB1C,CAAA1R,kBAfW,CAkB/BlF,CAAAuZ,oBAAJ,GACEH,CAQA,CARyC,SAAzB,GAAA,MAAO1c,EAAA8c,MAAP,EAAsC5W,EAAA,CAAkBlG,CAAA8c,MAAlB,CAAtC,CACR/W,UAAA,CAAW/F,CAAA8c,MAAX,CADQ,CAERJ,CAMR,CAJArC,CAIA,CAJWrU,IAAAC,IAAA,CAASyW,CAAT,CAAwB,CAAxB,CAIX,CAHAxC,CAAAzR,eAGA,CAHyBiU,CAGzB,CAFAK,EAEA,CAlqBH,CAD0BjV,EAC1B,CAgqBiC4U,CAhqBjC,CAAe,GAAf,CAkqBG,CADA7B,CAAA7N,KAAA,CAAqB+P,EAArB,CACA,CAAA1Y,CAAAS,MAAA,CAAWiY,EAAA,CAAW,CAAX,CAAX,CAAA,CAA4BA,EAAA,CAAW,CAAX,CAT9B,CAYAR,EAAA,CAjsBOS,GAisBP,CAAe3C,CACf4C,EAAA,CAlsBOD,GAksBP,CAAkB1C,CAElB,IAAIta,CAAAkd,OAAJ,CAAoB,CAAA,IACdC,CADc,CACJC,EAAUpd,CAAAkd,OACpB5Z,EAAAqZ,eAAJ;CACEQ,CAEA,CAFW9W,CAEX,CAn3CGgX,gBAm3CH,CADAxC,CAAA7N,KAAA,CAAqB,CAACmQ,CAAD,CAAWC,CAAX,CAArB,CACA,CAAA/Y,CAAAS,MAAA,CAAWqY,CAAX,CAAA,CAAuBC,CAHzB,CAKI9Z,EAAAsZ,cAAJ,GACEO,CAEA,CAFWxY,CAEX,CAx3CG0Y,gBAw3CH,CADAxC,CAAA7N,KAAA,CAAqB,CAACmQ,CAAD,CAAWC,CAAX,CAArB,CACA,CAAA/Y,CAAAS,MAAA,CAAWqY,CAAX,CAAA,CAAuBC,CAHzB,CAPkB,CAchBlD,CAAA9R,mBAAJ,EACE8S,EAAAlO,KAAA,CAAYxF,EAAZ,CAGE0S,EAAA1R,kBAAJ,EACE0S,EAAAlO,KAAA,CAAYvF,EAAZ,CAGF6U,EAAA,CAAYL,IAAAC,IAAA,EACZ,KAAIoB,EAAYf,CAAZe,CAvtBYC,GAutBZD,CAAiDL,CACjDO,EAAAA,CAAUlB,CAAVkB,CAAsBF,CAEtBG,KAAAA,EAAiBzc,CAAAuJ,KAAA,CAt7BP8Q,cAs7BO,CAAjBoC,EAAoD,EAApDA,CACAC,EAAqB,CAAA,CACzB,IAAID,CAAA/c,OAAJ,CAA2B,CACzB,IAAIid,EAAmBF,CAAA,CAAe,CAAf,CAEvB,EADAC,CACA,CADqBF,CACrB,CAD+BG,CAAAC,gBAC/B,EACEvE,CAAAtM,OAAA,CAAgB4Q,CAAArC,MAAhB,CADF,CAGEmC,CAAAzQ,KAAA,CAAoBqC,CAApB,CANuB,CAUvBqO,CAAJ,GACMpC,CAMJ,CANYjC,CAAA,CAASwE,CAAT,CAA6BP,CAA7B,CAAwC,CAAA,CAAxC,CAMZ,CALAG,CAAA,CAAe,CAAf,CAKA,CALoB,CAClBnC,MAAOA,CADW,CAElBsC,gBAAiBJ,CAFC,CAKpB,CADAC,CAAAzQ,KAAA,CAAoBqC,CAApB,CACA,CAAArO,CAAAuJ,KAAA,CAz8BY8Q,cAy8BZ,CAAgCoC,CAAhC,CAPF,CAUA,IAAIvC,EAAAxa,OAAJ,CACEM,CAAA0S,GAAA,CAAWwH,EAAApb,KAAA,CAAY,GAAZ,CAAX,CAA6Bqb,CAA7B,CAGEnb,EAAAE,GAAJ,GACMF,CAAA8d,cAGJ,EAFE/W,EAAA,CAAyB+T,CAAzB,CAAwCzW,CAAxC,CAA8Ca,MAAA4G,KAAA,CAAY9L,CAAAE,GAAZ,CAA9C,CAEF,CAAAkC,EAAA,CAAuBpB,CAAvB;AAAgChB,CAAhC,CAJF,CAlGA,CAH+B,CA6GjC6d,QAASA,EAAkB,EAAG,CAC5B,IAAIJ,EAAiBzc,CAAAuJ,KAAA,CAz9BP8Q,cAy9BO,CAKrB,IAAIoC,CAAJ,CAAoB,CAClB,IAAS,IAAA3c,EAAI,CAAb,CAAgBA,CAAhB,CAAoB2c,CAAA/c,OAApB,CAA2CI,CAAA,EAA3C,CACE2c,CAAA,CAAe3c,CAAf,CAAA,EAEFE,EAAAmX,WAAA,CAl+BYkD,cAk+BZ,CAJkB,CANQ,CA9J9B,GAAIZ,CAAAA,CAAJ,CACA,GAAKpW,CAAAsO,WAAL,CAAA,CASA,IAAIoL,EAAYA,QAAQ,CAACC,CAAD,CAAgB,CACtC,GAAKtD,EAAL,CAQWC,CAAJ,EAAuBqD,CAAvB,GACLrD,CACA,CADkB,CAAA,CAClB,CAAAtL,CAAA,EAFK,CARP,KAEE,IADAsL,CACInS,CADc,CAACwV,CACfxV,CAAA0R,CAAA1R,kBAAJ,CAEE,GADIjF,CACJoX,CADYlW,EAAA,CAAwBJ,CAAxB,CAA8BsW,CAA9B,CACZA,CAAAA,CAAA,CACME,CAAA7N,KAAA,CAAqBzJ,CAArB,CADN,KAAA,CAEsBsX,IAAAA,EAAAA,CAAAA,CAnuC9BrE,EAAQyH,CAAArO,QAAA,CAmuCuCrM,CAnuCvC,CACD,EAAX,EAkuCmDA,CAluCnD,EACE0a,CAAAC,OAAA,CAAW1H,CAAX,CAAkB,CAAlB,CA+tCU,CALkC,CAAxC,CAkBI2H,EAAyB,CAAzBA,CAAaC,CAAbD,GACkBjE,CAAA9R,mBADlB+V,EAC+E,CAD/EA,GACgDtE,CAAAzR,mBADhD+V,EAEiBjE,CAAA1R,kBAFjB2V,EAE4E,CAF5EA,GAE8CtE,CAAArR,kBAF9C2V,GAGgBnY,IAAAC,IAAA,CAAS4T,CAAApR,eAAT,CAAiCoR,CAAAxR,gBAAjC,CAChB8V,EAAJ,CACE9E,CAAA,CAASV,CAAT,CACS3S,IAAAqY,MAAA,CAAWF,CAAX,CAAwBC,CAAxB,CApoBFpB,GAooBE,CADT,CAES,CAAA,CAFT,CADF,CAKErE,CAAA,EAIF2F,EAAAC,OAAA,CAAoBC,QAAQ,EAAG,CAC7BT,CAAA,CAAU,CAAA,CAAV,CAD6B,CAI/BO,EAAAG,MAAA;AAAmBC,QAAQ,EAAG,CAC5BX,CAAA,CAAU,CAAA,CAAV,CAD4B,CA5C9B,CAAA,IACE1O,EAAA,EAHa,CAtXjB,IAAIrP,EAAU8O,CAAV9O,EAA4B,EAC3BA,EAAA6B,WAAL,GACE7B,CADF,CACY4B,EAAA,CAAwBuF,EAAA,CAAKnH,CAAL,CAAxB,CADZ,CAIA,KAAI8a,EAAgB,EAApB,CACIzW,EAAOP,CAAA,CAAW9C,CAAX,CACX,IAAKqD,CAAAA,CAAL,EACQsO,CAAAtO,CAAAsO,WADR,EAEQ,CAAA4G,CAAAlF,QAAA,EAFR,CAGE,MAAOqH,EAAA,EAGT,KAAIb,EAAkB,EAAtB,CACIxa,EAAUW,CAAA8B,KAAA,CAAa,OAAb,CADd,CAEI7C,EAASF,EAAA,CAAcC,CAAd,CAFb,CAGIya,CAHJ,CAIIE,CAJJ,CAKID,EALJ,CAMI1L,CANJ,CAOIsP,CAPJ,CAQIjE,CARJ,CASIkC,CATJ,CAUIjC,CAVJ,CAWI2C,CAXJ,CAYIX,CAZJ,CAaIpB,GAAS,EAEb,IAAyB,CAAzB,GAAIlb,CAAAsE,SAAJ,EAAgC2Q,CAAAqE,CAAArE,WAAhC,EAAwD0J,CAAArF,CAAAqF,YAAxD,CACE,MAAOjD,EAAA,EAGT,KAAIkD,EAAS5e,CAAAgE,MAAA,EAAiBnE,EAAA,CAAQG,CAAAgE,MAAR,CAAjB,CACLhE,CAAAgE,MAAAlE,KAAA,CAAmB,GAAnB,CADK,CAELE,CAAAgE,MAFR,CAKI6a,EAAsB,EAL1B,CAMIC,EAAqB,EAFNF,EAInB,EAJ6B5e,CAAAiN,WAI7B,CACE4R,CADF,CACwBze,CAAA,CAAYwe,CAAZ,CAt+BL3a,KAs+BK,CAAwC,CAAA,CAAxC,CADxB,CAEW2a,CAFX,GAGEC,CAHF,CAGwBD,CAHxB,CAMI5e,EAAAwB,SAAJ,GACEsd,CADF,EACwB1e,CAAA,CAAYJ,CAAAwB,SAAZ,CA9+BP0C,MA8+BO,CADxB,CAIIlE,EAAA0B,YAAJ,GACMod,CAAApe,OAGJ,GAFEoe,CAEF,EAFwB,GAExB,EAAAA,CAAA,EAAsB1e,CAAA,CAAYJ,CAAA0B,YAAZ,CAp/BJyC,SAo/BI,CAJxB,CAaInE,EAAA+e,kBAAJ,EAAiCD,CAAApe,OAAjC,EACE8O,CAAA,CAAsBxO,CAAtB,CAA+BhB,CAA/B,CAGF,KAAI+C;AAAqB,CAAC8b,CAAD,CAAsBC,CAAtB,CAAAhf,KAAA,CAA+C,GAA/C,CAAAkf,KAAA,EAAzB,CACIvC,GAAgBpc,CAAhBoc,CAA0B,GAA1BA,CAAgC1Z,EADpC,CAEIwM,GAAgBnP,CAAA,CAAY2C,EAAZ,CAjgCAkc,SAigCA,CAFpB,CAGIC,EAAcjf,CAAAC,GAAdgf,EAA2D,CAA3DA,CAA2Bha,MAAA4G,KAAA,CAAY7L,CAAAC,GAAZ,CAAAQ,OAM/B,IAAI,EALmE,CAKnE,CAL4BA,CAACV,CAAAmf,cAADze,EAA0B,EAA1BA,QAK5B,EACKwe,CADL,EAEKnc,EAFL,CAAJ,CAGE,MAAO2Y,EAAA,EApFmC,KAuFxC9B,EAvFwC,CAuF9BC,CACQ,EAAtB,CAAI7Z,CAAA6Z,QAAJ,EACMuF,CACJ,CADiBrZ,UAAA,CAAW/F,CAAA6Z,QAAX,CACjB,CAAAA,CAAA,CAAU,CACRxR,gBAAiB+W,CADT,CAER3W,eAAgB2W,CAFR,CAGRhX,mBAAoB,CAHZ,CAIRI,kBAAmB,CAJX,CAFZ,GASEoR,EACA,CADWJ,CAAA,CAAUnV,CAAV,CAAgBoY,EAAhB,CACX,CAAA5C,CAAA,CAAUF,CAAA,CAA8BtV,CAA9B,CAAoCtB,EAApC,CAAwD6W,EAAxD,CAAkEhR,EAAlE,CAVZ,CAaK5I,EAAA4a,yBAAL,EACErZ,CAAAC,SAAA,CAAkBR,CAAlB,CAA2B+B,EAA3B,CAKE/C,EAAAqf,gBAAJ,GACMA,CAEJ,CAFsB,CAAChZ,CAAD,CAAkBrG,CAAAqf,gBAAlB,CAEtB,CADA9a,EAAA,CAAiBF,CAAjB,CAAuBgb,CAAvB,CACA,CAAAxE,CAAA7N,KAAA,CAAqBqS,CAArB,CAHF,CAMwB,EAAxB,EAAIrf,CAAAsE,SAAJ,GACE8B,CAKA,CALyD,CAKzD,CALoB/B,CAAAS,MAAA,CAAWuB,CAAX,CAAA3F,OAKpB,CAJI4e,CAIJ,CAJoBnZ,EAAA,CAA8BnG,CAAAsE,SAA9B,CAAgD8B,CAAhD,CAIpB,CADA7B,EAAA,CAAiBF,CAAjB,CAAuBib,CAAvB,CACA,CAAAzE,CAAA7N,KAAA,CAAqBsS,CAArB,CANF,CASItf,EAAAmf,cAAJ;CACMA,CAEJ,CAFoB,CAACxa,CAAD,CAAiB3E,CAAAmf,cAAjB,CAEpB,CADA5a,EAAA,CAAiBF,CAAjB,CAAuB8a,CAAvB,CACA,CAAAtE,CAAA7N,KAAA,CAAqBmS,CAArB,CAHF,CAMA,KAAIf,EAAYvE,CAAA,CACc,CAAxB,EAAA7Z,CAAAuf,aAAA,CACIvf,CAAAuf,aADJ,CAEIpG,CAAAzS,MAAA,CAAgBkT,EAAhB,CAHM,CAIV,CAUN,EARI4F,CAQJ,CAR4B,CAQ5B,GARcpB,CAQd,GAAgBqB,CAAAzf,CAAAyf,aAAhB,EACErb,EAAA,CAAiBC,CAAjB,CA5hC+Bqb,IA4hC/B,CAGF,KAAIxF,EAAUD,CAAA,CAAe5V,CAAf,CAAqBoY,EAArB,CAAoC7C,EAApC,CAAd,CACI8C,EAAgBxC,CAAAG,SACpBA,EAAA,CAAWrU,IAAAC,IAAA,CAASyW,CAAT,CAAwB,CAAxB,CACXpC,EAAA,CAAcJ,CAAAI,YAEd,KAAIhX,EAAQ,EACZA,EAAAqZ,eAAA,CAA6D,CAA7D,CAAgCzC,CAAA9R,mBAChC9E,EAAAsZ,cAAA,CAA4D,CAA5D,CAAgC1C,CAAA1R,kBAChClF,EAAAqc,iBAAA,CAAgCrc,CAAAqZ,eAAhC,EAAsF,KAAtF,EAAwDzC,CAAA5R,mBACxDhF,EAAAsc,wBAAA,CAAgCV,CAAhC,GACmC5b,CAAAqZ,eADnC,EAC2D,CAACrZ,CAAAqc,iBAD5D,EAEuCrc,CAAAsZ,cAFvC,EAE8D,CAACtZ,CAAAqZ,eAF/D,CAGArZ,EAAAuc,uBAAA,CAAgC7f,CAAAsE,SAAhC,EAAoDhB,CAAAsZ,cACpDtZ;CAAAwc,qBAAA,CAAgC5Z,EAAA,CAAkBlG,CAAA8c,MAAlB,CAAhC,GAAqExZ,CAAAsc,wBAArE,EAAsGtc,CAAAqZ,eAAtG,CACArZ,EAAAuZ,oBAAA,CAAgC3W,EAAA,CAAkBlG,CAAA8c,MAAlB,CAAhC,EAAoExZ,CAAAsZ,cACpEtZ,EAAAkZ,wBAAA,CAA4D,CAA5D,CAAgCsC,CAAApe,OAEhC,IAAI4C,CAAAsc,wBAAJ,EAAqCtc,CAAAuc,uBAArC,CACEvF,CASA,CATcta,CAAAsE,SAAA,CAAmByB,UAAA,CAAW/F,CAAAsE,SAAX,CAAnB,CAAkDgW,CAShE,CAPIhX,CAAAsc,wBAOJ,GANEtc,CAAAqZ,eAGA,CAHuB,CAAA,CAGvB,CAFAzC,CAAA9R,mBAEA,CAF6BkS,CAE7B,CADAlU,CACA,CADwE,CACxE,CADoB/B,CAAAS,MAAA,CAAWuB,CAAX,CA3jCXkC,UA2jCW,CAAA7H,OACpB,CAAAma,CAAA7N,KAAA,CAAqB7G,EAAA,CAA8BmU,CAA9B,CAA2ClU,CAA3C,CAArB,CAGF,EAAI9C,CAAAuc,uBAAJ,GACEvc,CAAAsZ,cAEA,CAFsB,CAAA,CAEtB,CADA1C,CAAA1R,kBACA,CAD4B8R,CAC5B,CAAAO,CAAA7N,KAAA,CA/XD,CAAChF,EAAD,CA+XkDsS,CA/XlD,CAAqC,GAArC,CA+XC,CAHF,CAOF,IAAoB,CAApB,GAAIA,CAAJ,EAA0BkC,CAAAlZ,CAAAkZ,wBAA1B,CACE,MAAOd,EAAA,EAGT;GAAqB,IAArB,EAAI1b,CAAA8c,MAAJ,CAA2B,CACzB,IAAIC,EACyB,UAA7B,GAAI,MAAO/c,EAAA8c,MAAX,GACEC,EAEA,CAFahX,UAAA,CAAW/F,CAAA8c,MAAX,CAEb,CAAAzC,CAAA,CAAWrU,IAAAC,IAAA,CAAS8W,EAAT,CAAqB,CAArB,CAHb,CAMIzZ,EAAAwc,qBAAJ,EACEjF,CAAA7N,KAAA,CA3YD,CADiDxI,EACjD,CA2YuCuY,EA3YvC,CAAe,GAAf,CA2YC,CAGEzZ,EAAAuZ,oBAAJ,EACEhC,CAAA7N,KAAA,CA/YD,CAD0BlF,EAC1B,CA+YuCiV,EA/YvC,CAAe,GAAf,CA+YC,CAbuB,CAoBH,IAAxB,EAAI/c,CAAAsE,SAAJ,EAA6D,CAA7D,CAAgC4V,CAAA9R,mBAAhC,GACE9E,CAAAkZ,wBADF,CACkClZ,CAAAkZ,wBADlC,EACmEgD,CADnE,CAIAjD,EAAA,CAtbWS,GAsbX,CAAe3C,CACf4C,EAAA,CAvbWD,GAubX,CAAkB1C,CACbta,EAAAyf,aAAL,GACEnc,CAAAkY,gBACA,CADqD,CACrD,CADwBtB,CAAA9R,mBACxB,CAAA9E,CAAAmY,uBAAA,CAA2D,CAA3D,CAA+BvB,CAAA1R,kBAA/B,EACwD,CADxD,CAC+BqR,CAAApR,eAD/B,EAE6D,CAF7D,GAE+BoR,CAAArR,kBAJjC,CAOIxI,EAAAG,KAAJ,GACMH,CAAA8d,cAGJ,EAFE/W,EAAA,CAAyB+T,CAAzB,CAAwCzW,CAAxC,CAA8Ca,MAAA4G,KAAA,CAAY9L,CAAAG,KAAZ,CAA9C,CAEF;AAAAgC,EAAA,CAAyBnB,CAAzB,CAAkChB,CAAlC,CAJF,CAOIsD,EAAAkY,gBAAJ,EAA6BlY,CAAAmY,uBAA7B,CACEF,CAAA,CAAcjB,CAAd,CADF,CAEYta,CAAAyf,aAFZ,EAGErb,EAAA,CAAiBC,CAAjB,CAAuB,CAAA,CAAvB,CAIF,OAAO,CACLsX,cAAe,CAAA,CADV,CAELlL,IAAK+J,CAFA,CAGLxB,MAAOA,QAAQ,EAAG,CAChB,GAAIyB,CAAAA,CAAJ,CAiBA,MAfA6D,EAeOtP,CAfM,CACXyB,IAAK+J,CADM,CAEXzN,OAAQ1B,CAFG,CAGXkT,OAAQ,IAHG,CAIXE,MAAO,IAJI,CAeNzP,CARPA,CAQOA,CARE,IAAInB,CAAJ,CAAoByQ,CAApB,CAQFtP,CANP1D,EAAA,CAAe0N,CAAf,CAMOhK,CAAAA,CAlBS,CAHb,CAvOqC,CA5F2B,CAH/D,CAJ4D,CAAhDkK,CAypG1B,CAAAzN,SAAA,CAUY,oBAVZ,CA1gFiCsU,CAAC,qBAADA,CAAwB,QAAQ,CAACC,CAAD,CAAsB,CACrFA,CAAAnL,QAAA7H,KAAA,CAAiC,oBAAjC,CAYA,KAAAQ,KAAA,CAAY,CAAC,aAAD,CAAgB,YAAhB,CAA8B,iBAA9B,CAAiD,cAAjD,CAAiE,UAAjE,CAA6E,UAA7E,CAAyF,WAAzF,CACP,QAAQ,CAACyS,CAAD,CAAgBhX,CAAhB,CAA8B4E,CAA9B,CAAiDJ,CAAjD,CAAiE6L,CAAjE,CAA6E/X,CAA7E,CAAyFmM,CAAzF,CAAoG,CA0B/GwS,QAASA,EAAgB,CAAC7f,CAAD,CAAU,CAEjC,MAAOA,EAAA8f,QAAA,CAAgB,aAAhB,CAA+B,EAA/B,CAF0B,CAKnCC,QAASA,EAAe,CAACzgB,CAAD;AAAIC,CAAJ,CAAO,CACzBa,CAAA,CAASd,CAAT,CAAJ,GAAiBA,CAAjB,CAAqBA,CAAAgB,MAAA,CAAQ,GAAR,CAArB,CACIF,EAAA,CAASb,CAAT,CAAJ,GAAiBA,CAAjB,CAAqBA,CAAAe,MAAA,CAAQ,GAAR,CAArB,CACA,OAAOhB,EAAAuU,OAAA,CAAS,QAAQ,CAACvQ,CAAD,CAAM,CAC5B,MAA2B,EAA3B,GAAO/D,CAAAgQ,QAAA,CAAUjM,CAAV,CADqB,CAAvB,CAAA7D,KAAA,CAEC,GAFD,CAHsB,CAQ/BugB,QAASA,EAAwB,CAAChgB,CAAD,CAAUigB,CAAV,CAAqBC,CAArB,CAA+B,CAiE9DC,QAASA,EAAqB,CAAC5J,CAAD,CAAS,CACrC,IAAI3W,EAAS,EAAb,CAEIwgB,EAAS3c,CAAA,CAAW8S,CAAX,CAAA8J,sBAAA,EAIb9f,EAAA,CAAQ,CAAC,OAAD,CAAS,QAAT,CAAkB,KAAlB,CAAwB,MAAxB,CAAR,CAAyC,QAAQ,CAAC4C,CAAD,CAAM,CACrD,IAAID,EAAQkd,CAAA,CAAOjd,CAAP,CACZ,QAAQA,CAAR,EACE,KAAK,KAAL,CACED,CAAA,EAASod,CAAAC,UACT,MACF,MAAK,MAAL,CACErd,CAAA,EAASod,CAAAE,WALb,CAQA5gB,CAAA,CAAOuD,CAAP,CAAA,CAAcwC,IAAAqY,MAAA,CAAW9a,CAAX,CAAd,CAAkC,IAVmB,CAAvD,CAYA,OAAOtD,EAnB8B,CAsCvC6gB,QAASA,EAAkB,EAAG,CAC5B,IAAIC,EAAgBb,CAAA,CAA6BK,CAJ1Czd,KAAA,CAAa,OAAb,CAIa,EAJY,EAIZ,CAApB,CACIH,EAAQyd,CAAA,CAAgBW,CAAhB,CAA+BC,CAA/B,CADZ,CAEIpe,EAAWwd,CAAA,CAAgBY,CAAhB,CAAiCD,CAAjC,CAFf,CAIIE,EAAWhB,CAAA,CAAYiB,CAAZ,CAAmB,CAChChhB,GAAIsgB,CAAA,CAAsBD,CAAtB,CAD4B,CAEhC/e,SAAU,eAAVA,CAA0CmB,CAFV,CAGhCjB,YAAa,gBAAbA,CAA8CkB,CAHd,CAIhCka,MAAO,CAAA,CAJyB,CAAnB,CASf,OAAOmE,EAAAtF,cAAA;AAAyBsF,CAAzB,CAAoC,IAdf,CAiB9BxQ,QAASA,EAAG,EAAG,CACbyQ,CAAAvP,OAAA,EACA2O,EAAA5e,YAAA,CA5K2Byf,iBA4K3B,CACAZ,EAAA7e,YAAA,CA7K2Byf,iBA6K3B,CAHa,CAvHf,IAAID,EAAQjgB,CAAA,CAAO6C,CAAA,CAAWwc,CAAX,CAAAc,UAAA,CAAgC,CAAA,CAAhC,CAAP,CAAZ,CACIJ,EAAkBd,CAAA,CAA6BgB,CAkG1Cpe,KAAA,CAAa,OAAb,CAlGa,EAkGY,EAlGZ,CAEtBwd,EAAA9e,SAAA,CAtD6B2f,iBAsD7B,CACAZ,EAAA/e,SAAA,CAvD6B2f,iBAuD7B,CAEAD,EAAA1f,SAAA,CAxD+B6f,WAwD/B,CAEAC,EAAAC,OAAA,CAAuBL,CAAvB,CAT8D,KAW1DM,CAAYC,EAAAA,CA4EhBC,QAA4B,EAAG,CAC7B,IAAIT,EAAWhB,CAAA,CAAYiB,CAAZ,CAAmB,CAChC1f,SAxIuBmgB,eAuIS,CAEhC7E,MAAO,CAAA,CAFyB,CAGhC3c,KAAMqgB,CAAA,CAAsBF,CAAtB,CAH0B,CAAnB,CAQf,OAAOW,EAAAtF,cAAA,CAAyBsF,CAAzB,CAAoC,IATd,CA5ED,EAM9B,IAAKQ,CAAAA,CAAL,GACED,CACKA,CADQV,CAAA,EACRU,CAAAA,CAAAA,CAFP,EAGI,MAAO/Q,EAAA,EAIX,KAAImR,EAAmBH,CAAnBG,EAAkCJ,CAEtC,OAAO,CACLxI,MAAOA,QAAQ,EAAG,CA8BhBwB,QAASA,EAAK,EAAG,CACXhO,CAAJ,EACEA,CAAAiE,IAAA,EAFa,CA7BjB,IAAIzB,CAAJ,CAEIxC,EAAmBoV,CAAA5I,MAAA,EACvBxM,EAAA0E,KAAA,CAAsB,QAAQ,EAAG,CAC/B1E,CAAA,CAAmB,IACnB,IAAKgV,CAAAA,CAAL,GACEA,CADF,CACeV,CAAA,EADf,EASI,MANAtU,EAMOA;AANYgV,CAAAxI,MAAA,EAMZxM,CALPA,CAAA0E,KAAA,CAAsB,QAAQ,EAAG,CAC/B1E,CAAA,CAAmB,IACnBiE,EAAA,EACAzB,EAAAS,SAAA,EAH+B,CAAjC,CAKOjD,CAAAA,CAIXiE,EAAA,EACAzB,EAAAS,SAAA,EAhB+B,CAAjC,CAwBA,OALAT,EAKA,CALS,IAAInB,CAAJ,CAAoB,CAC3B4C,IAAK+J,CADsB,CAE3BzN,OAAQyN,CAFmB,CAApB,CAvBO,CADb,CA1BuD,CA+HhEqH,QAASA,EAA4B,CAAC1hB,CAAD,CAAOD,CAAP,CAAWG,CAAX,CAAoB+V,CAApB,CAA6B,CAChE,IAAIa,EAAgB6K,CAAA,CAAwB3hB,CAAxB,CAA8B4B,CAA9B,CAApB,CACImV,EAAc4K,CAAA,CAAwB5hB,CAAxB,CAA4B6B,CAA5B,CADlB,CAGIggB,EAAmB,EACvBnhB,EAAA,CAAQwV,CAAR,CAAiB,QAAQ,CAACQ,CAAD,CAAS,CAIhC,CADIqK,CACJ,CADeZ,CAAA,CAAyBhgB,CAAzB,CAFEuW,CAAAoL,IAEF,CADCpL,CAAAqL,CAAO,IAAPA,CACD,CACf,GACEF,CAAA/U,KAAA,CAAsBiU,CAAtB,CAL8B,CAAlC,CAUA,IAAKhK,CAAL,EAAuBC,CAAvB,EAAkE,CAAlE,GAAsC6K,CAAArhB,OAAtC,CAEA,MAAO,CACLsY,MAAOA,QAAQ,EAAG,CA0BhBwB,QAASA,EAAK,EAAG,CACf5Z,CAAA,CAAQshB,CAAR,CAA0B,QAAQ,CAAClT,CAAD,CAAS,CACzCA,CAAAyB,IAAA,EADyC,CAA3C,CADe,CAzBjB,IAAIyR,EAAmB,EAEnBjL,EAAJ,EACEiL,CAAAlV,KAAA,CAAsBiK,CAAA+B,MAAA,EAAtB,CAGE9B,EAAJ,EACEgL,CAAAlV,KAAA,CAAsBkK,CAAA8B,MAAA,EAAtB,CAGFpY,EAAA,CAAQmhB,CAAR,CAA0B,QAAQ,CAACnV,CAAD,CAAY,CAC5CsV,CAAAlV,KAAA,CAAsBJ,CAAAoM,MAAA,EAAtB,CAD4C,CAA9C,CAIA,KAAIhK,EAAS,IAAInB,CAAJ,CAAoB,CAC/B4C,IAAK+J,CAD0B,CAE/BzN,OAAQyN,CAFuB,CAApB,CAKb3M,EAAAsU,IAAA,CAAoBD,CAApB,CAAsC,QAAQ,CAAC/Q,CAAD,CAAS,CACrDnC,CAAAS,SAAA,CAAgB0B,CAAhB,CADqD,CAAvD,CAIA,OAAOnC,EAxBS,CADb,CAjByD,CAqDlE8S,QAASA,EAAuB,CAAC/Q,CAAD,CAAmB,CACjD,IAAI/P,EAAU+P,CAAA/P,QAAd,CACIhB,EAAU+Q,CAAA/Q,QAAVA;AAAsC,EAEtC+Q,EAAA9D,WAAJ,GACEjN,CAAAgE,MAOA,CAPgB+M,CAAA/M,MAOhB,CANAhE,CAAAiN,WAMA,CANqB,CAAA,CAMrB,CALAjN,CAAA+e,kBAKA,CAL4B,CAAA,CAK5B,CAA+B,OAA/B,GAAIhO,CAAA/M,MAAJ,GACEhE,CAAAib,OADF,CACmBjb,CAAA8B,aADnB,CARF,CAgBI9B,EAAA+C,mBAAJ,GACE/C,CAAAgE,MADF,CACkBhB,EAAA,CAAgBhD,CAAAgE,MAAhB,CAA+BhE,CAAA+C,mBAA/B,CADlB,CAIIke,EAAAA,CAAWhB,CAAA,CAAYjf,CAAZ,CAAqBhB,CAArB,CAMf,OAAOihB,EAAAtF,cAAA,CAAyBsF,CAAzB,CAAoC,IA9BM,CAxNnD,GAAKhM,CAAAqE,CAAArE,WAAL,EAA6B0J,CAAArF,CAAAqF,YAA7B,CAAmD,MAAO5c,EAE1D,KAAI4e,EAAWjT,CAAA,CAAU,CAAV,CAAAwE,KACXkQ,EAAAA,CAAWte,CAAA,CAAW2J,CAAX,CAEf,KAAI6T,EAAkBrgB,CAAA,CAIDmhB,CAhBdzP,WAgBL,EAhBqD,EAgBrD,GAAmByP,CAhBKzP,WAAAxR,SAgBxB,EAAgCwf,CAAAjS,SAAA,CAAkB0T,CAAlB,CAAhC,CAA8DA,CAA9D,CAAyEzB,CAJrD,CAOMhf,EAAA,CAA6BJ,CAA7B,CAE5B,OAAO8gB,SAAqB,CAACtR,CAAD,CAAmB,CAC7C,MAAOA,EAAA5Q,KAAA,EAAyB4Q,CAAA7Q,GAAzB,CACD2hB,CAAA,CAA6B9Q,CAAA5Q,KAA7B,CAC6B4Q,CAAA7Q,GAD7B,CAE6B6Q,CAAA1Q,QAF7B,CAG6B0Q,CAAAqF,QAH7B,CADC,CAKD0L,CAAA,CAAwB/Q,CAAxB,CANuC,CAjBgE,CADrG,CAbyE,CAAtDgP,CA0gFjC,CAAAtU,SAAA,CAYY,aAZZ,CA1vE0B6W,CAAC,kBAADA,CAAqB,QAAQ,CAAC3W,CAAD,CAAmB,CACxE,IAAA6B,KAAA;AAAY,CAAC,WAAD,CAAc,iBAAd,CAAiC,UAAjC,CACP,QAAQ,CAACsH,CAAD,CAAcjH,CAAd,CAAiCtM,CAAjC,CAA2C,CAqQtDghB,QAASA,EAAgB,CAACliB,CAAD,CAAU,CACjCA,CAAA,CAAUR,EAAA,CAAQQ,CAAR,CAAA,CAAmBA,CAAnB,CAA6BA,CAAAM,MAAA,CAAc,GAAd,CAEvC,KAHiC,IAE7B4N,EAAU,EAFmB,CAEfiU,EAAU,EAFK,CAGxB1hB,EAAE,CAAX,CAAcA,CAAd,CAAkBT,CAAAK,OAAlB,CAAkCI,CAAA,EAAlC,CAAuC,CAAA,IACjCD,EAAQR,CAAA,CAAQS,CAAR,CADyB,CAEjC2hB,EAAmB9W,CAAA+W,uBAAA,CAAwC7hB,CAAxC,CACnB4hB,EAAJ,EAAyB,CAAAD,CAAA,CAAQ3hB,CAAR,CAAzB,GACE0N,CAAAvB,KAAA,CAAa8H,CAAAjO,IAAA,CAAc4b,CAAd,CAAb,CACA,CAAAD,CAAA,CAAQ3hB,CAAR,CAAA,CAAiB,CAAA,CAFnB,CAHqC,CAQvC,MAAO0N,EAX0B,CAnQnC,IAAIiB,EAAwB7N,CAAA,CAA6BJ,CAA7B,CAE5B,OAAO,SAAQ,CAACP,CAAD,CAAUgD,CAAV,CAAiB3D,CAAjB,CAA0BL,CAA1B,CAAmC,CAkDhD2iB,QAASA,EAAY,EAAG,CACtB3iB,CAAA8B,aAAA,EACA0N,EAAA,CAAsBxO,CAAtB,CAA+BhB,CAA/B,CAFsB,CAiFxB4iB,QAASA,EAAkB,CAACpX,CAAD,CAAKxK,CAAL,CAAcgD,CAAd,CAAqBhE,CAArB,CAA8Bib,CAA9B,CAAsC,CAE/D,OAAQjX,CAAR,EACE,KAAK,SAAL,CACE6e,CAAA,CAAO,CAAC7hB,CAAD,CAAUhB,CAAAG,KAAV,CAAwBH,CAAAE,GAAxB,CAAoC+a,CAApC,CACP,MAEF,MAAK,UAAL,CACE4H,CAAA,CAAO,CAAC7hB,CAAD,CAAU8hB,CAAV,CAAwBC,CAAxB,CAAyC9H,CAAzC,CACP,MAEF,MAAK,UAAL,CACE4H,CAAA,CAAO,CAAC7hB,CAAD,CAAU8hB,CAAV,CAAwB7H,CAAxB,CACP,MAEF,MAAK,aAAL,CACE4H,CAAA,CAAO,CAAC7hB,CAAD,CAAU+hB,CAAV,CAA2B9H,CAA3B,CACP,MAEF,SACE4H,CAAA,CAAO,CAAC7hB,CAAD,CAAUia,CAAV,CAlBX,CAsBA4H,CAAA7V,KAAA,CAAUhN,CAAV,CAGA,IADIuD,CACJ,CADYiI,CAAAwX,MAAA,CAASxX,CAAT;AAAaqX,CAAb,CACZ,CAKE,GAJIvb,EAAA,CAAW/D,CAAAyV,MAAX,CAIA,GAHFzV,CAGE,CAHMA,CAAAyV,MAAA,EAGN,EAAAzV,CAAA,WAAiBsK,EAArB,CACEtK,CAAA2N,KAAA,CAAW+J,CAAX,CADF,KAEO,IAAI3T,EAAA,CAAW/D,CAAX,CAAJ,CAEL,MAAOA,EAIX,OAAOxB,EAxCwD,CA2CjEkhB,QAASA,EAAsB,CAACjiB,CAAD,CAAUgD,CAAV,CAAiBhE,CAAjB,CAA0BiV,CAA1B,CAAsCiO,CAAtC,CAA8C,CAC3E,IAAIlM,EAAa,EACjBpW,EAAA,CAAQqU,CAAR,CAAoB,QAAQ,CAACkO,CAAD,CAAM,CAChC,IAAIvW,EAAYuW,CAAA,CAAID,CAAJ,CACXtW,EAAL,EAGAoK,CAAAhK,KAAA,CAAgB,QAAQ,EAAG,CACzB,IAAIgC,CAAJ,CACIoU,CADJ,CAGIC,EAAW,CAAA,CAHf,CAIIC,EAAsBA,QAAQ,CAACpL,CAAD,CAAW,CACtCmL,CAAL,GACEA,CAEA,CAFW,CAAA,CAEX,CADA,CAACD,CAAD,EAAkBrhB,CAAlB,EAAwBmW,CAAxB,CACA,CAAAlJ,CAAAS,SAAA,CAAgB,CAACyI,CAAjB,CAHF,CAD2C,CAQ7ClJ,EAAA,CAAS,IAAInB,CAAJ,CAAoB,CAC3B4C,IAAKA,QAAQ,EAAG,CACd6S,CAAA,EADc,CADW,CAI3BvW,OAAQA,QAAQ,EAAG,CACjBuW,CAAA,CAAoB,CAAA,CAApB,CADiB,CAJQ,CAApB,CASTF,EAAA,CAAgBR,CAAA,CAAmBhW,CAAnB,CAA8B5L,CAA9B,CAAuCgD,CAAvC,CAA8ChE,CAA9C,CAAuD,QAAQ,CAAC0V,CAAD,CAAS,CAEtF4N,CAAA,CAD2B,CAAA,CAC3B,GADgB5N,CAChB,CAFsF,CAAxE,CAKhB,OAAO1G,EA3BkB,CAA3B,CALgC,CAAlC,CAoCA,OAAOgI,EAtCoE,CAyC7EuM,QAASA,EAAiB,CAACviB,CAAD,CAAUgD,CAAV,CAAiBhE,CAAjB,CAA0BiV,CAA1B,CAAsCiO,CAAtC,CAA8C,CACtE,IAAIlM,EAAaiM,CAAA,CAAuBjiB,CAAvB,CAAgCgD,CAAhC,CAAuChE,CAAvC,CAAgDiV,CAAhD,CAA4DiO,CAA5D,CACjB,IAA0B,CAA1B,GAAIlM,CAAAtW,OAAJ,CAA6B,CAAA,IACvBf,CADuB,CACrBC,CACS,iBAAf,GAAIsjB,CAAJ,EACEvjB,CACA,CADIsjB,CAAA,CAAuBjiB,CAAvB,CAAgC,aAAhC,CAA+ChB,CAA/C,CAAwDiV,CAAxD,CAAoE,mBAApE,CACJ,CAAArV,CAAA,CAAIqjB,CAAA,CAAuBjiB,CAAvB,CAAgC,UAAhC,CAA4ChB,CAA5C,CAAqDiV,CAArD,CAAiE,gBAAjE,CAFN;AAGsB,UAHtB,GAGWiO,CAHX,GAIEvjB,CACA,CADIsjB,CAAA,CAAuBjiB,CAAvB,CAAgC,aAAhC,CAA+ChB,CAA/C,CAAwDiV,CAAxD,CAAoE,aAApE,CACJ,CAAArV,CAAA,CAAIqjB,CAAA,CAAuBjiB,CAAvB,CAAgC,UAAhC,CAA4ChB,CAA5C,CAAqDiV,CAArD,CAAiE,UAAjE,CALN,CAQItV,EAAJ,GACEqX,CADF,CACeA,CAAA/L,OAAA,CAAkBtL,CAAlB,CADf,CAGIC,EAAJ,GACEoX,CADF,CACeA,CAAA/L,OAAA,CAAkBrL,CAAlB,CADf,CAb2B,CAkB7B,GAA0B,CAA1B,GAAIoX,CAAAtW,OAAJ,CAGA,MAAO8iB,SAAuB,CAAC5U,CAAD,CAAW,CACvC,IAAI6U,EAAU,EACVzM,EAAAtW,OAAJ,EACEE,CAAA,CAAQoW,CAAR,CAAoB,QAAQ,CAAC0M,CAAD,CAAY,CACtCD,CAAAzW,KAAA,CAAa0W,CAAA,EAAb,CADsC,CAAxC,CAKFD,EAAA/iB,OAAA,CAAiBmN,CAAAsU,IAAA,CAAoBsB,CAApB,CAA6B7U,CAA7B,CAAjB,CAA0DA,CAAA,EAE1D,OAAO4L,SAAc,CAAClL,CAAD,CAAS,CAC5B1O,CAAA,CAAQ6iB,CAAR,CAAiB,QAAQ,CAACzU,CAAD,CAAS,CAChCM,CAAA,CAASN,CAAAjC,OAAA,EAAT,CAA2BiC,CAAAyB,IAAA,EADK,CAAlC,CAD4B,CAVS,CAvB6B,CAtNxE,IAAIgK,EAAkB,CAAA,CAKG,EAAzB,GAAItG,SAAAzT,OAAJ,EAA8B0G,EAAA,CAAS/G,CAAT,CAA9B,GACEL,CACA,CADUK,CACV,CAAAA,CAAA,CAAU,IAFZ,CAKAL,EAAA,CAAU4B,EAAA,CAAwB5B,CAAxB,CACLK,EAAL,GACEA,CAIA,CAJUW,CAAA8B,KAAA,CAAa,OAAb,CAIV,EAJmC,EAInC,CAHI9C,CAAAwB,SAGJ,GAFEnB,CAEF,EAFa,GAEb,CAFmBL,CAAAwB,SAEnB,EAAIxB,CAAA0B,YAAJ,GACErB,CADF,EACa,GADb,CACmBL,CAAA0B,YADnB,CALF,CAUA,KAAIohB,EAAe9iB,CAAAwB,SAAnB,CACIuhB,EAAkB/iB,CAAA0B,YADtB,CAOIuT,EAAasN,CAAA,CAAiBliB,CAAjB,CAPjB,CAQIsjB,CARJ,CAQYC,CACZ,IAAI3O,CAAAvU,OAAJ,CAAuB,CAAA,IACjBmjB,CADiB;AACRC,CACA,QAAb,EAAI9f,CAAJ,EACE8f,CACA,CADW,OACX,CAAAD,CAAA,CAAU,YAFZ,GAIEC,CACA,CADW,QACX,CADsB9f,CAAAyB,OAAA,CAAa,CAAb,CAAAse,YAAA,EACtB,CADsD/f,CAAAggB,OAAA,CAAa,CAAb,CACtD,CAAAH,CAAA,CAAU7f,CALZ,CAQc,QAAd,GAAIA,CAAJ,EAAmC,MAAnC,GAAyBA,CAAzB,GACE2f,CADF,CACWJ,CAAA,CAAkBviB,CAAlB,CAA2BgD,CAA3B,CAAkChE,CAAlC,CAA2CiV,CAA3C,CAAuD6O,CAAvD,CADX,CAGAF,EAAA,CAASL,CAAA,CAAkBviB,CAAlB,CAA2BgD,CAA3B,CAAkChE,CAAlC,CAA2CiV,CAA3C,CAAuD4O,CAAvD,CAbY,CAiBvB,GAAKF,CAAL,EAAgBC,CAAhB,CAAA,CAaA,IAAI5U,CAEJ,OAAO,CACL2M,cAAe,CAAA,CADV,CAELlL,IAAKA,QAAQ,EAAG,CACVzB,CAAJ,CACEA,CAAAyB,IAAA,EADF,EAVFgK,CAeI,CAfc,CAAA,CAed,CAdJkI,CAAA,EAcI,CAbJzgB,EAAA,CAAqBlB,CAArB,CAA8BhB,CAA9B,CAaI,CADAgP,CACA,CADS,IAAInB,CACb,CAAAmB,CAAAS,SAAA,CAAgB,CAAA,CAAhB,CALF,CAOA,OAAOT,EARO,CAFX,CAYLgK,MAAOA,QAAQ,EAAG,CA0ChBiL,QAASA,EAAU,CAACC,CAAD,CAAU,CA7D/BzJ,CAAA,CAAkB,CAAA,CAClBkI,EAAA,EACAzgB,GAAA,CAAqBlB,CAArB,CAA8BhB,CAA9B,CA6DIgP,EAAAS,SAAA,CAAgByU,CAAhB,CAF2B,CAzC7B,GAAIlV,CAAJ,CACE,MAAOA,EAGTA,EAAA,CAAS,IAAInB,CACb,KAAIsW,CAAJ,CACIC,EAAQ,EAERT,EAAJ,EACES,CAAApX,KAAA,CAAW,QAAQ,CAACxB,CAAD,CAAK,CACtB2Y,CAAA,CAAwBR,CAAA,CAAOnY,CAAP,CADF,CAAxB,CAKE4Y,EAAA1jB,OAAJ,CACE0jB,CAAApX,KAAA,CAAW,QAAQ,CAACxB,CAAD,CAAK,CACtBmX,CAAA,EACAnX,EAAA,CAAG,CAAA,CAAH,CAFsB,CAAxB,CADF,CAMEmX,CAAA,EAGEiB,EAAJ,EACEQ,CAAApX,KAAA,CAAW,QAAQ,CAACxB,CAAD,CAAK,CACtB2Y,CAAA,CAAwBP,CAAA,CAAMpY,CAAN,CADF,CAAxB,CAKFwD,EAAAoC,QAAA,CAAe,CACbX,IAAKA,QAAQ,EAAG,CAiBXgK,CAAL,GACE,CAAC0J,CAAD;AAA0BpiB,CAA1B,EAjBAsiB,IAAA,EAiBA,CACA,CAAAJ,CAAA,CAlBAI,IAAA,EAkBA,CAFF,CAjBgB,CADH,CAIbtX,OAAQA,QAAQ,EAAG,CAcd0N,CAAL,GACE,CAAC0J,CAAD,EAA0BpiB,CAA1B,EAdcsiB,CAAAA,CAcd,CACA,CAAAJ,CAAA,CAfcI,CAAAA,CAed,CAFF,CAdmB,CAJN,CAAf,CASAxW,EAAAuW,MAAA,CAAsBA,CAAtB,CAA6BH,CAA7B,CACA,OAAOjV,EAxCS,CAZb,CAfP,CAhDgD,CAJI,CAD5C,CAD4D,CAAhDsT,CA0vE1B,CAAA7W,SAAA,CAaY,mBAbZ,CAn+DgC6Y,CAAC,qBAADA,CAAwB,QAAQ,CAACtE,CAAD,CAAsB,CACpFA,CAAAnL,QAAA7H,KAAA,CAAiC,mBAAjC,CACA,KAAAQ,KAAA,CAAY,CAAC,aAAD,CAAgB,iBAAhB,CAAmC,QAAQ,CAAC+W,CAAD,CAAc1W,CAAd,CAA+B,CA+CpF2W,QAASA,EAAgB,CAACzT,CAAD,CAAmB,CAM1C,MAAOwT,EAAA,CAJOxT,CAAA/P,QAIP,CAHK+P,CAAA/M,MAGL,CADO+M,CAAA1Q,QACP,CAFO0Q,CAAA/Q,QAEP,CANmC,CA9C5C,MAAOqiB,SAAqB,CAACtR,CAAD,CAAmB,CAC7C,GAAIA,CAAA5Q,KAAJ,EAA6B4Q,CAAA7Q,GAA7B,CAAkD,CAChD,IAAI+W,EAAgBuN,CAAA,CAAiBzT,CAAA5Q,KAAjB,CAApB,CACI+W,EAAcsN,CAAA,CAAiBzT,CAAA7Q,GAAjB,CAClB,IAAK+W,CAAL,EAAuBC,CAAvB,CAEA,MAAO,CACL8B,MAAOA,QAAQ,EAAG,CAoBhByL,QAASA,EAAY,EAAG,CACtB,MAAO,SAAQ,EAAG,CAChB7jB,CAAA,CAAQshB,CAAR,CAA0B,QAAQ,CAAClT,CAAD,CAAS,CAEzCA,CAAAyB,IAAA,EAFyC,CAA3C,CADgB,CADI,CAnBxB,IAAIyR,EAAmB,EAEnBjL,EAAJ,EACEiL,CAAAlV,KAAA,CAAsBiK,CAAA+B,MAAA,EAAtB,CAGE9B,EAAJ;AACEgL,CAAAlV,KAAA,CAAsBkK,CAAA8B,MAAA,EAAtB,CAGFnL,EAAAsU,IAAA,CAAoBD,CAApB,CAkBAhR,QAAa,CAACC,CAAD,CAAS,CACpBnC,CAAAS,SAAA,CAAgB0B,CAAhB,CADoB,CAlBtB,CAEA,KAAInC,EAAS,IAAInB,CAAJ,CAAoB,CAC/B4C,IAAKgU,CAAA,EAD0B,CAE/B1X,OAAQ0X,CAAA,EAFuB,CAApB,CAKb,OAAOzV,EAlBS,CADb,CALyC,CAAlD,IAyCE,OAAOwV,EAAA,CAAiBzT,CAAjB,CA1CoC,CADqC,CAA1E,CAFwE,CAAtDuT,CAm+DhC,CAngIsC,CAArC,CAAD,CAmhIGplB,MAnhIH,CAmhIWA,MAAAC,QAnhIX;",
-"sources":["angular-animate.js"],
-"names":["window","angular","undefined","assertArg","arg","name","reason","ngMinErr","mergeClasses","a","b","isArray","join","packageStyles","options","styles","to","from","pendClasses","classes","fix","isPrefix","className","isString","length","split","forEach","klass","i","stripCommentsFromElement","element","jqLite","ELEMENT_NODE","nodeType","extractElementNode","elm","$$addClass","$$jqLite","addClass","$$removeClass","removeClass","applyAnimationClassesFactory","prepareAnimationOptions","$$prepared","domOperation","noop","options.domOperation","$$domOperationFired","applyAnimationStyles","applyAnimationFromStyles","applyAnimationToStyles","css","mergeAnimationDetails","oldAnimation","newAnimation","target","newOptions","toAdd","toRemove","resolveElementClasses","attr","preparationClasses","concatWithSpace","realDomOperation","extend","existing","splitClassesToLookup","obj","flags","value","key","ADD_CLASS","REMOVE_CLASS","val","prop","allow","getDomNode","applyGeneratedPreparationClasses","event","EVENT_CLASS_PREFIX","ADD_CLASS_SUFFIX","REMOVE_CLASS_SUFFIX","blockTransitions","node","duration","applyInlineStyle","TRANSITION_DELAY_PROP","blockKeyframeAnimations","applyBlock","ANIMATION_PROP","ANIMATION_PLAYSTATE_KEY","styleTuple","style","computeCssStyles","$window","properties","Object","create","detectedStyles","getComputedStyle","formalStyleName","actualStyleName","c","charAt","parseMaxTime","str","maxValue","values","substring","parseFloat","Math","max","truthyTimingValue","getCssTransitionDurationStyle","applyOnlyDuration","TRANSITION_PROP","DURATION_KEY","createLocalCacheLookup","cache","flush","count","entry","total","get","put","registerRestorableStyles","backup","isDefined","getPropertyValue","copy","isObject","isUndefined","isFunction","isElement","TRANSITIONEND_EVENT","ANIMATIONEND_EVENT","ontransitionend","onwebkittransitionend","onanimationend","onwebkitanimationend","ANIMATION_DELAY_PROP","DELAY_KEY","ANIMATION_DURATION_PROP","TRANSITION_DURATION_PROP","$$minErr","DETECT_CSS_PROPERTIES","transitionDuration","transitionDelay","transitionProperty","PROPERTY_KEY","animationDuration","animationDelay","animationIterationCount","ANIMATION_ITERATION_COUNT_KEY","DETECT_STAGGER_CSS_PROPERTIES","module","directive","ngAnimateSwapDirective","$animate","$rootScope","restrict","transclude","terminal","priority","link","scope","$element","attrs","ctrl","$transclude","previousElement","previousScope","$watchCollection","ngAnimateSwap","leave","$destroy","$new","enter","$$AnimateChildrenDirective","$interpolate","setData","data","NG_ANIMATE_CHILDREN_DATA","ngAnimateChildren","$observe","factory","$$rAFSchedulerFactory","$$rAF","scheduler","tasks","queue","concat","nextTick","items","shift","cancelFn","waitUntilQuiet","scheduler.waitUntilQuiet","fn","provider","$$AnimateQueueProvider","$animateProvider","makeTruthyCssClassMap","classString","keys","ONE_SPACE","map","hasMatchingClasses","newClassString","currentClassString","currentClassMap","some","isAllowed","ruleType","currentAnimation","previousAnimation","rules","hasAnimationClasses","animation","and","skip","cancel","push","structural","RUNNING_STATE","state","nA","nR","cA","cR","$get","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$forceReflow","postDigestTaskFactory","postDigestCalled","$$postDigest","findCallbacks","parent","targetNode","targetParentNode","matches","entries","callbackRegistry","contains","call","callback","queueAnimation","initialOptions","notifyProgress","runner","phase","runInNextPostDigestOrNow","callbacks","progress","close","reject","activeClasses","applyAnimationClasses","complete","isAnimatableClassName","isStructural","indexOf","skipAnimations","animationsEnabled","hidden","disabledElementsLookup","existingAnimation","activeAnimationsLookup","hasExistingAnimation","PRE_DIGEST_STATE","areAnimationsAllowed","closeChildAnimations","skipAnimationFlag","cancelAnimationFlag","end","joinAnimationFlag","isValidAnimation","clearElementAnimationState","counter","markElementAnimationState","animationDetails","animationCancelled","realRunner","done","status","setHost","children","querySelectorAll","child","parseInt","getAttribute","NG_ANIMATE_ATTR_NAME","remove","removeAttribute","isMatchingElement","nodeOrElmA","nodeOrElmB","parentElement","bodyElement","body","bodyElementDetected","nodeName","rootElementDetected","parentAnimationDetected","animateChildren","elementDisabled","parentHost","NG_ANIMATE_PIN_DATA","parentNode","details","parentElementDisabled","setAttribute","newValue","oldValue","deregisterWatch","$watch","totalPendingRequests","isEmpty","classNameFilter","test","Node","prototype","compareDocumentPosition","on","container","off","filterFromRegistry","list","matchContainer","matchCallback","containerNode","filter","arguments","pin","enabled","bool","argCount","hasElement","recordExists","$$AnimationProvider","getRunner","RUNNER_STORAGE_KEY","drivers","$injector","$$rAFScheduler","sortAnimations","animations","processNode","processed","elementNode","domNode","lookup","parentEntry","tree","flatten","result","remainingLevelEntries","nextLevelEntries","row","childEntry","animationQueue","getAnchorNodes","hasAttribute","NG_ANIMATE_REF_ATTR","SELECTOR","anchors","groupAnimations","preparedAnimations","refLookup","index","enterOrMove","anchorNodes","direction","anchor","animationID","usedIndicesLookup","anchorGroups","operations","fromAnimation","toAnimation","lookupKey","toString","group","beforeStart","cssClassesIntersection","indexKey","aa","j","invokeFirstDriver","driverName","has","driver","updateAnimationRunners","newRunner","handleDestroyedElement","rejected","removeData","tempClasses","NG_ANIMATE_CLASSNAME","prepareClassName","PREPARE_CLASS_SUFFIX","groupedAnimations","toBeSortedAnimations","animationEntry","triggerAnimationStart","startAnimationFn","closeFn","targetElement","operation","start","animationRunner","$AnimateCssProvider","gcsLookup","gcsStaggerLookup","$timeout","$sniffer","$$animateQueue","gcsHashFn","extraClasses","parentCounter","computeCachedCssStaggerStyles","cacheKey","stagger","staggerClassName","rafWaitQueue","pageWidth","computeTimings","timings","aD","tD","maxDelay","maxDuration","init","endFn","animationClosed","animationCompleted","animationPaused","$$skipPreparationClasses","temporaryStyles","restoreStyles","setProperty","removeProperty","onDone","events","onAnimationProgress","animationTimerData","ANIMATE_TIMER_KEY","timer","applyBlocking","blockTransition","blockKeyframeAnimation","closeAndReturnNoopAnimator","$$willAnimate","stopPropagation","ev","originalEvent","timeStamp","$manualTimeStamp","Date","now","elapsedTime","toFixed","ELAPSED_TIME_MAX_DECIMAL_PLACES","startTime","maxDelayTime","recalculateTimingStyles","fullClassName","relativeDelay","hasTransitions","hasAnimations","applyAnimationDelay","delay","delayStyle","ONE_SECOND","maxDurationTime","easing","easeProp","easeVal","TIMING_KEY","timerTime","CLOSING_TIME_BUFFER","endTime","animationsData","setupFallbackTimer","currentTimerData","expectedEndTime","onAnimationExpired","cleanupStyles","playPause","playAnimation","arr","splice","maxStagger","itemIndex","floor","runnerHost","resume","runnerHost.resume","pause","runnerHost.pause","transitions","method","structuralClassName","addRemoveClassName","applyClassesEarly","trim","ACTIVE_CLASS_SUFFIX","hasToStyles","keyframeStyle","staggerVal","transitionStyle","durationStyle","staggerIndex","isFirst","skipBlocking","SAFE_FAST_FORWARD_DURATION_VALUE","hasTransitionAll","applyTransitionDuration","applyAnimationDuration","applyTransitionDelay","$$AnimateCssDriverProvider","$$animationProvider","$animateCss","filterCssClasses","replace","getUniqueValues","prepareAnchoredAnimation","outAnchor","inAnchor","calculateAnchorStyles","coords","getBoundingClientRect","bodyNode","scrollTop","scrollLeft","prepareInAnimation","endingClasses","startingClasses","animator","clone","NG_ANIMATE_SHIM_CLASS_NAME","cloneNode","NG_ANIMATE_ANCHOR_CLASS_NAME","rootBodyElement","append","animatorIn","animatorOut","prepareOutAnimation","NG_OUT_ANCHOR_CLASS_NAME","startingAnimator","prepareFromToAnchorAnimation","prepareRegularAnimation","anchorAnimations","outElement","inElement","animationRunners","all","rootNode","initDriverFn","$$AnimateJsProvider","lookupAnimations","flagMap","animationFactory","$$registeredAnimations","applyOptions","executeAnimationFn","args","classesToAdd","classesToRemove","apply","groupEventedAnimations","fnName","ani","endProgressCb","resolved","onAnimationComplete","packageAnimations","startAnimation","runners","animateFn","before","after","afterFn","beforeFn","toUpperCase","substr","onComplete","success","closeActiveAnimations","chain","cancelled","$$AnimateJsDriverProvider","$$animateJs","prepareAnimation","endFnFactory"]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-animate/bower.json b/ecomp-portal-FE/client/bower_components/angular-animate/bower.json
deleted file mode 100644
index dca60c72..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-animate/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-animate",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-animate.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-animate/index.js b/ecomp-portal-FE/client/bower_components/angular-animate/index.js
deleted file mode 100644
index 6ec0a351..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-animate/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-animate');
-module.exports = 'ngAnimate';
diff --git a/ecomp-portal-FE/client/bower_components/angular-animate/package.json b/ecomp-portal-FE/client/bower_components/angular-animate/package.json
deleted file mode 100644
index 66eeb2a5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-animate/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "angular-animate",
- "version": "1.5.0",
- "description": "AngularJS module for animations",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "animation",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org"
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-aria/.bower.json b/ecomp-portal-FE/client/bower_components/angular-aria/.bower.json
deleted file mode 100644
index ee454ab5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-aria/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-aria",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-aria.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- },
- "homepage": "https://github.com/angular/bower-angular-aria",
- "_release": "1.5.0",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.0",
- "commit": "39f42383b9607ba9750da5212ec66998a0f5577e"
- },
- "_source": "https://github.com/angular/bower-angular-aria.git",
- "_target": "1.5.0",
- "_originalSource": "angular-aria"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-aria/README.md b/ecomp-portal-FE/client/bower_components/angular-aria/README.md
deleted file mode 100644
index 04c5a8f9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-aria/README.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# packaged angular-aria
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngAria).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-aria
-```
-Then add `ngAria` as a dependency for your app:
-
-```javascript
-angular.module('myApp', [require('angular-aria')]);
-```
-
-### bower
-
-```shell
-bower install angular-aria
-```
-
-Add a `<script>` to your `index.html`:
-
-```html
-<script src="/bower_components/angular-aria/angular-aria.js"></script>
-```
-
-Then add `ngAria` as a dependency for your app:
-
-```javascript
-angular.module('myApp', ['ngAria']);
-```
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/api/ngAria).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.js b/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.js
deleted file mode 100644
index 99f5cc42..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.js
+++ /dev/null
@@ -1,398 +0,0 @@
-/**
- * @license AngularJS v1.5.0
- * (c) 2010-2016 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular, undefined) {'use strict';
-
-/**
- * @ngdoc module
- * @name ngAria
- * @description
- *
- * The `ngAria` module provides support for common
- * [<abbr title="Accessible Rich Internet Applications">ARIA</abbr>](http://www.w3.org/TR/wai-aria/)
- * attributes that convey state or semantic information about the application for users
- * of assistive technologies, such as screen readers.
- *
- * <div doc-module-components="ngAria"></div>
- *
- * ## Usage
- *
- * For ngAria to do its magic, simply include the module `ngAria` as a dependency. The following
- * directives are supported:
- * `ngModel`, `ngChecked`, `ngRequired`, `ngValue`, `ngDisabled`, `ngShow`, `ngHide`, `ngClick`,
- * `ngDblClick`, and `ngMessages`.
- *
- * Below is a more detailed breakdown of the attributes handled by ngAria:
- *
- * | Directive | Supported Attributes |
- * |---------------------------------------------|----------------------------------------------------------------------------------------|
- * | {@link ng.directive:ngModel ngModel} | aria-checked, aria-valuemin, aria-valuemax, aria-valuenow, aria-invalid, aria-required, input roles |
- * | {@link ng.directive:ngDisabled ngDisabled} | aria-disabled |
- * | {@link ng.directive:ngRequired ngRequired} | aria-required |
- * | {@link ng.directive:ngChecked ngChecked} | aria-checked |
- * | {@link ng.directive:ngValue ngValue} | aria-checked |
- * | {@link ng.directive:ngShow ngShow} | aria-hidden |
- * | {@link ng.directive:ngHide ngHide} | aria-hidden |
- * | {@link ng.directive:ngDblclick ngDblclick} | tabindex |
- * | {@link module:ngMessages ngMessages} | aria-live |
- * | {@link ng.directive:ngClick ngClick} | tabindex, keypress event, button role |
- *
- * Find out more information about each directive by reading the
- * {@link guide/accessibility ngAria Developer Guide}.
- *
- * ##Example
- * Using ngDisabled with ngAria:
- * ```html
- * <md-checkbox ng-disabled="disabled">
- * ```
- * Becomes:
- * ```html
- * <md-checkbox ng-disabled="disabled" aria-disabled="true">
- * ```
- *
- * ##Disabling Attributes
- * It's possible to disable individual attributes added by ngAria with the
- * {@link ngAria.$ariaProvider#config config} method. For more details, see the
- * {@link guide/accessibility Developer Guide}.
- */
- /* global -ngAriaModule */
-var ngAriaModule = angular.module('ngAria', ['ng']).
- provider('$aria', $AriaProvider);
-
-/**
-* Internal Utilities
-*/
-var nodeBlackList = ['BUTTON', 'A', 'INPUT', 'TEXTAREA', 'SELECT', 'DETAILS', 'SUMMARY'];
-
-var isNodeOneOf = function(elem, nodeTypeArray) {
- if (nodeTypeArray.indexOf(elem[0].nodeName) !== -1) {
- return true;
- }
-};
-/**
- * @ngdoc provider
- * @name $ariaProvider
- *
- * @description
- *
- * Used for configuring the ARIA attributes injected and managed by ngAria.
- *
- * ```js
- * angular.module('myApp', ['ngAria'], function config($ariaProvider) {
- * $ariaProvider.config({
- * ariaValue: true,
- * tabindex: false
- * });
- * });
- *```
- *
- * ## Dependencies
- * Requires the {@link ngAria} module to be installed.
- *
- */
-function $AriaProvider() {
- var config = {
- ariaHidden: true,
- ariaChecked: true,
- ariaDisabled: true,
- ariaRequired: true,
- ariaInvalid: true,
- ariaValue: true,
- tabindex: true,
- bindKeypress: true,
- bindRoleForClick: true
- };
-
- /**
- * @ngdoc method
- * @name $ariaProvider#config
- *
- * @param {object} config object to enable/disable specific ARIA attributes
- *
- * - **ariaHidden** – `{boolean}` – Enables/disables aria-hidden tags
- * - **ariaChecked** – `{boolean}` – Enables/disables aria-checked tags
- * - **ariaDisabled** – `{boolean}` – Enables/disables aria-disabled tags
- * - **ariaRequired** – `{boolean}` – Enables/disables aria-required tags
- * - **ariaInvalid** – `{boolean}` – Enables/disables aria-invalid tags
- * - **ariaValue** – `{boolean}` – Enables/disables aria-valuemin, aria-valuemax and aria-valuenow tags
- * - **tabindex** – `{boolean}` – Enables/disables tabindex tags
- * - **bindKeypress** – `{boolean}` – Enables/disables keypress event binding on `div` and
- * `li` elements with ng-click
- * - **bindRoleForClick** – `{boolean}` – Adds role=button to non-interactive elements like `div`
- * using ng-click, making them more accessible to users of assistive technologies
- *
- * @description
- * Enables/disables various ARIA attributes
- */
- this.config = function(newConfig) {
- config = angular.extend(config, newConfig);
- };
-
- function watchExpr(attrName, ariaAttr, nodeBlackList, negate) {
- return function(scope, elem, attr) {
- var ariaCamelName = attr.$normalize(ariaAttr);
- if (config[ariaCamelName] && !isNodeOneOf(elem, nodeBlackList) && !attr[ariaCamelName]) {
- scope.$watch(attr[attrName], function(boolVal) {
- // ensure boolean value
- boolVal = negate ? !boolVal : !!boolVal;
- elem.attr(ariaAttr, boolVal);
- });
- }
- };
- }
- /**
- * @ngdoc service
- * @name $aria
- *
- * @description
- * @priority 200
- *
- * The $aria service contains helper methods for applying common
- * [ARIA](http://www.w3.org/TR/wai-aria/) attributes to HTML directives.
- *
- * ngAria injects common accessibility attributes that tell assistive technologies when HTML
- * elements are enabled, selected, hidden, and more. To see how this is performed with ngAria,
- * let's review a code snippet from ngAria itself:
- *
- *```js
- * ngAriaModule.directive('ngDisabled', ['$aria', function($aria) {
- * return $aria.$$watchExpr('ngDisabled', 'aria-disabled', nodeBlackList, false);
- * }])
- *```
- * Shown above, the ngAria module creates a directive with the same signature as the
- * traditional `ng-disabled` directive. But this ngAria version is dedicated to
- * solely managing accessibility attributes on custom elements. The internal `$aria` service is
- * used to watch the boolean attribute `ngDisabled`. If it has not been explicitly set by the
- * developer, `aria-disabled` is injected as an attribute with its value synchronized to the
- * value in `ngDisabled`.
- *
- * Because ngAria hooks into the `ng-disabled` directive, developers do not have to do
- * anything to enable this feature. The `aria-disabled` attribute is automatically managed
- * simply as a silent side-effect of using `ng-disabled` with the ngAria module.
- *
- * The full list of directives that interface with ngAria:
- * * **ngModel**
- * * **ngChecked**
- * * **ngRequired**
- * * **ngDisabled**
- * * **ngValue**
- * * **ngShow**
- * * **ngHide**
- * * **ngClick**
- * * **ngDblclick**
- * * **ngMessages**
- *
- * Read the {@link guide/accessibility ngAria Developer Guide} for a thorough explanation of each
- * directive.
- *
- *
- * ## Dependencies
- * Requires the {@link ngAria} module to be installed.
- */
- this.$get = function() {
- return {
- config: function(key) {
- return config[key];
- },
- $$watchExpr: watchExpr
- };
- };
-}
-
-
-ngAriaModule.directive('ngShow', ['$aria', function($aria) {
- return $aria.$$watchExpr('ngShow', 'aria-hidden', [], true);
-}])
-.directive('ngHide', ['$aria', function($aria) {
- return $aria.$$watchExpr('ngHide', 'aria-hidden', [], false);
-}])
-.directive('ngValue', ['$aria', function($aria) {
- return $aria.$$watchExpr('ngValue', 'aria-checked', nodeBlackList, false);
-}])
-.directive('ngChecked', ['$aria', function($aria) {
- return $aria.$$watchExpr('ngChecked', 'aria-checked', nodeBlackList, false);
-}])
-.directive('ngRequired', ['$aria', function($aria) {
- return $aria.$$watchExpr('ngRequired', 'aria-required', nodeBlackList, false);
-}])
-.directive('ngModel', ['$aria', function($aria) {
-
- function shouldAttachAttr(attr, normalizedAttr, elem, allowBlacklistEls) {
- return $aria.config(normalizedAttr) && !elem.attr(attr) && (allowBlacklistEls || !isNodeOneOf(elem, nodeBlackList));
- }
-
- function shouldAttachRole(role, elem) {
- // if element does not have role attribute
- // AND element type is equal to role (if custom element has a type equaling shape) <-- remove?
- // AND element is not INPUT
- return !elem.attr('role') && (elem.attr('type') === role) && (elem[0].nodeName !== 'INPUT');
- }
-
- function getShape(attr, elem) {
- var type = attr.type,
- role = attr.role;
-
- return ((type || role) === 'checkbox' || role === 'menuitemcheckbox') ? 'checkbox' :
- ((type || role) === 'radio' || role === 'menuitemradio') ? 'radio' :
- (type === 'range' || role === 'progressbar' || role === 'slider') ? 'range' : '';
- }
-
- return {
- restrict: 'A',
- require: 'ngModel',
- priority: 200, //Make sure watches are fired after any other directives that affect the ngModel value
- compile: function(elem, attr) {
- var shape = getShape(attr, elem);
-
- return {
- pre: function(scope, elem, attr, ngModel) {
- if (shape === 'checkbox') {
- //Use the input[checkbox] $isEmpty implementation for elements with checkbox roles
- ngModel.$isEmpty = function(value) {
- return value === false;
- };
- }
- },
- post: function(scope, elem, attr, ngModel) {
- var needsTabIndex = shouldAttachAttr('tabindex', 'tabindex', elem, false);
-
- function ngAriaWatchModelValue() {
- return ngModel.$modelValue;
- }
-
- function getRadioReaction(newVal) {
- var boolVal = (attr.value == ngModel.$viewValue);
- elem.attr('aria-checked', boolVal);
- }
-
- function getCheckboxReaction() {
- elem.attr('aria-checked', !ngModel.$isEmpty(ngModel.$viewValue));
- }
-
- switch (shape) {
- case 'radio':
- case 'checkbox':
- if (shouldAttachRole(shape, elem)) {
- elem.attr('role', shape);
- }
- if (shouldAttachAttr('aria-checked', 'ariaChecked', elem, false)) {
- scope.$watch(ngAriaWatchModelValue, shape === 'radio' ?
- getRadioReaction : getCheckboxReaction);
- }
- if (needsTabIndex) {
- elem.attr('tabindex', 0);
- }
- break;
- case 'range':
- if (shouldAttachRole(shape, elem)) {
- elem.attr('role', 'slider');
- }
- if ($aria.config('ariaValue')) {
- var needsAriaValuemin = !elem.attr('aria-valuemin') &&
- (attr.hasOwnProperty('min') || attr.hasOwnProperty('ngMin'));
- var needsAriaValuemax = !elem.attr('aria-valuemax') &&
- (attr.hasOwnProperty('max') || attr.hasOwnProperty('ngMax'));
- var needsAriaValuenow = !elem.attr('aria-valuenow');
-
- if (needsAriaValuemin) {
- attr.$observe('min', function ngAriaValueMinReaction(newVal) {
- elem.attr('aria-valuemin', newVal);
- });
- }
- if (needsAriaValuemax) {
- attr.$observe('max', function ngAriaValueMinReaction(newVal) {
- elem.attr('aria-valuemax', newVal);
- });
- }
- if (needsAriaValuenow) {
- scope.$watch(ngAriaWatchModelValue, function ngAriaValueNowReaction(newVal) {
- elem.attr('aria-valuenow', newVal);
- });
- }
- }
- if (needsTabIndex) {
- elem.attr('tabindex', 0);
- }
- break;
- }
-
- if (!attr.hasOwnProperty('ngRequired') && ngModel.$validators.required
- && shouldAttachAttr('aria-required', 'ariaRequired', elem, false)) {
- // ngModel.$error.required is undefined on custom controls
- attr.$observe('required', function() {
- elem.attr('aria-required', !!attr['required']);
- });
- }
-
- if (shouldAttachAttr('aria-invalid', 'ariaInvalid', elem, true)) {
- scope.$watch(function ngAriaInvalidWatch() {
- return ngModel.$invalid;
- }, function ngAriaInvalidReaction(newVal) {
- elem.attr('aria-invalid', !!newVal);
- });
- }
- }
- };
- }
- };
-}])
-.directive('ngDisabled', ['$aria', function($aria) {
- return $aria.$$watchExpr('ngDisabled', 'aria-disabled', nodeBlackList, false);
-}])
-.directive('ngMessages', function() {
- return {
- restrict: 'A',
- require: '?ngMessages',
- link: function(scope, elem, attr, ngMessages) {
- if (!elem.attr('aria-live')) {
- elem.attr('aria-live', 'assertive');
- }
- }
- };
-})
-.directive('ngClick',['$aria', '$parse', function($aria, $parse) {
- return {
- restrict: 'A',
- compile: function(elem, attr) {
- var fn = $parse(attr.ngClick, /* interceptorFn */ null, /* expensiveChecks */ true);
- return function(scope, elem, attr) {
-
- if (!isNodeOneOf(elem, nodeBlackList)) {
-
- if ($aria.config('bindRoleForClick') && !elem.attr('role')) {
- elem.attr('role', 'button');
- }
-
- if ($aria.config('tabindex') && !elem.attr('tabindex')) {
- elem.attr('tabindex', 0);
- }
-
- if ($aria.config('bindKeypress') && !attr.ngKeypress) {
- elem.on('keypress', function(event) {
- var keyCode = event.which || event.keyCode;
- if (keyCode === 32 || keyCode === 13) {
- scope.$apply(callback);
- }
-
- function callback() {
- fn(scope, { $event: event });
- }
- });
- }
- }
- };
- }
- };
-}])
-.directive('ngDblclick', ['$aria', function($aria) {
- return function(scope, elem, attr) {
- if ($aria.config('tabindex') && !elem.attr('tabindex') && !isNodeOneOf(elem, nodeBlackList)) {
- elem.attr('tabindex', 0);
- }
- };
-}]);
-
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.min.js b/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.min.js
deleted file mode 100644
index cf0fd742..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.min.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- AngularJS v1.5.0
- (c) 2010-2016 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(s,q,t){'use strict';var f="BUTTON A INPUT TEXTAREA SELECT DETAILS SUMMARY".split(" "),l=function(a,c){if(-1!==c.indexOf(a[0].nodeName))return!0};q.module("ngAria",["ng"]).provider("$aria",function(){function a(a,h,p,n){return function(d,e,b){var g=b.$normalize(h);!c[g]||l(e,p)||b[g]||d.$watch(b[a],function(b){b=n?!b:!!b;e.attr(h,b)})}}var c={ariaHidden:!0,ariaChecked:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=
-function(a){c=q.extend(c,a)};this.$get=function(){return{config:function(a){return c[a]},$$watchExpr:a}}}).directive("ngShow",["$aria",function(a){return a.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(a){return a.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(a){return a.$$watchExpr("ngValue","aria-checked",f,!1)}]).directive("ngChecked",["$aria",function(a){return a.$$watchExpr("ngChecked","aria-checked",f,!1)}]).directive("ngRequired",
-["$aria",function(a){return a.$$watchExpr("ngRequired","aria-required",f,!1)}]).directive("ngModel",["$aria",function(a){function c(c,n,d,e){return a.config(n)&&!d.attr(c)&&(e||!l(d,f))}function m(a,c){return!c.attr("role")&&c.attr("type")===a&&"INPUT"!==c[0].nodeName}function h(a,c){var d=a.type,e=a.role;return"checkbox"===(d||e)||"menuitemcheckbox"===e?"checkbox":"radio"===(d||e)||"menuitemradio"===e?"radio":"range"===d||"progressbar"===e||"slider"===e?"range":""}return{restrict:"A",require:"ngModel",
-priority:200,compile:function(f,n){var d=h(n,f);return{pre:function(a,b,c,k){"checkbox"===d&&(k.$isEmpty=function(a){return!1===a})},post:function(e,b,g,k){function f(){return k.$modelValue}function h(a){b.attr("aria-checked",g.value==k.$viewValue)}function n(){b.attr("aria-checked",!k.$isEmpty(k.$viewValue))}var l=c("tabindex","tabindex",b,!1);switch(d){case "radio":case "checkbox":m(d,b)&&b.attr("role",d);c("aria-checked","ariaChecked",b,!1)&&e.$watch(f,"radio"===d?h:n);l&&b.attr("tabindex",0);
-break;case "range":m(d,b)&&b.attr("role","slider");if(a.config("ariaValue")){var p=!b.attr("aria-valuemin")&&(g.hasOwnProperty("min")||g.hasOwnProperty("ngMin")),q=!b.attr("aria-valuemax")&&(g.hasOwnProperty("max")||g.hasOwnProperty("ngMax")),r=!b.attr("aria-valuenow");p&&g.$observe("min",function(a){b.attr("aria-valuemin",a)});q&&g.$observe("max",function(a){b.attr("aria-valuemax",a)});r&&e.$watch(f,function(a){b.attr("aria-valuenow",a)})}l&&b.attr("tabindex",0)}!g.hasOwnProperty("ngRequired")&&
-k.$validators.required&&c("aria-required","ariaRequired",b,!1)&&g.$observe("required",function(){b.attr("aria-required",!!g.required)});c("aria-invalid","ariaInvalid",b,!0)&&e.$watch(function(){return k.$invalid},function(a){b.attr("aria-invalid",!!a)})}}}}}]).directive("ngDisabled",["$aria",function(a){return a.$$watchExpr("ngDisabled","aria-disabled",f,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(a,c,f,h){c.attr("aria-live")||c.attr("aria-live",
-"assertive")}}}).directive("ngClick",["$aria","$parse",function(a,c){return{restrict:"A",compile:function(m,h){var p=c(h.ngClick,null,!0);return function(c,d,e){if(!l(d,f)&&(a.config("bindRoleForClick")&&!d.attr("role")&&d.attr("role","button"),a.config("tabindex")&&!d.attr("tabindex")&&d.attr("tabindex",0),a.config("bindKeypress")&&!e.ngKeypress))d.on("keypress",function(a){function d(){p(c,{$event:a})}var e=a.which||a.keyCode;32!==e&&13!==e||c.$apply(d)})}}}}]).directive("ngDblclick",["$aria",function(a){return function(c,
-m,h){!a.config("tabindex")||m.attr("tabindex")||l(m,f)||m.attr("tabindex",0)}}])})(window,window.angular);
-//# sourceMappingURL=angular-aria.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.min.js.map b/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.min.js.map
deleted file mode 100644
index b1db15b5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-aria/angular-aria.min.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-"version":3,
-"file":"angular-aria.min.js",
-"lineCount":13,
-"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA6DtC,IAAIC,EAAgB,gDAAA,MAAA,CAAA,GAAA,CAApB,CAEIC,EAAcA,QAAQ,CAACC,CAAD,CAAOC,CAAP,CAAsB,CAC9C,GAAiD,EAAjD,GAAIA,CAAAC,QAAA,CAAsBF,CAAA,CAAK,CAAL,CAAAG,SAAtB,CAAJ,CACE,MAAO,CAAA,CAFqC,CAR7BP,EAAAQ,OAAA,CAAe,QAAf,CAAyB,CAAC,IAAD,CAAzB,CAAAC,SAAAC,CACc,OADdA,CAkCnBC,QAAsB,EAAG,CAsCvBC,QAASA,EAAS,CAACC,CAAD,CAAWC,CAAX,CAAqBZ,CAArB,CAAoCa,CAApC,CAA4C,CAC5D,MAAO,SAAQ,CAACC,CAAD,CAAQZ,CAAR,CAAca,CAAd,CAAoB,CACjC,IAAIC,EAAgBD,CAAAE,WAAA,CAAgBL,CAAhB,CAChB,EAAAM,CAAA,CAAOF,CAAP,CAAJ,EAA8Bf,CAAA,CAAYC,CAAZ,CAAkBF,CAAlB,CAA9B,EAAmEe,CAAA,CAAKC,CAAL,CAAnE,EACEF,CAAAK,OAAA,CAAaJ,CAAA,CAAKJ,CAAL,CAAb,CAA6B,QAAQ,CAACS,CAAD,CAAU,CAE7CA,CAAA,CAAUP,CAAA,CAAS,CAACO,CAAV,CAAoB,CAAEA,CAAAA,CAChClB,EAAAa,KAAA,CAAUH,CAAV,CAAoBQ,CAApB,CAH6C,CAA/C,CAH+B,CADyB,CArC9D,IAAIF,EAAS,CACXG,WAAY,CAAA,CADD,CAEXC,YAAa,CAAA,CAFF,CAGXC,aAAc,CAAA,CAHH,CAIXC,aAAc,CAAA,CAJH,CAKXC,YAAa,CAAA,CALF,CAMXC,UAAW,CAAA,CANA,CAOXC,SAAU,CAAA,CAPC,CAQXC,aAAc,CAAA,CARH,CASXC,iBAAkB,CAAA,CATP,CAiCb,KAAAX,OAAA;AAAcY,QAAQ,CAACC,CAAD,CAAY,CAChCb,CAAA,CAASpB,CAAAkC,OAAA,CAAed,CAAf,CAAuBa,CAAvB,CADuB,CAiElC,KAAAE,KAAA,CAAYC,QAAQ,EAAG,CACrB,MAAO,CACLhB,OAAQA,QAAQ,CAACiB,CAAD,CAAM,CACpB,MAAOjB,EAAA,CAAOiB,CAAP,CADa,CADjB,CAILC,YAAa1B,CAJR,CADc,CAnGA,CAlCNF,CAgJnB6B,UAAA,CAAuB,QAAvB,CAAiC,CAAC,OAAD,CAAU,QAAQ,CAACC,CAAD,CAAQ,CACzD,MAAOA,EAAAF,YAAA,CAAkB,QAAlB,CAA4B,aAA5B,CAA2C,EAA3C,CAA+C,CAAA,CAA/C,CADkD,CAA1B,CAAjC,CAAAC,UAAA,CAGW,QAHX,CAGqB,CAAC,OAAD,CAAU,QAAQ,CAACC,CAAD,CAAQ,CAC7C,MAAOA,EAAAF,YAAA,CAAkB,QAAlB,CAA4B,aAA5B,CAA2C,EAA3C,CAA+C,CAAA,CAA/C,CADsC,CAA1B,CAHrB,CAAAC,UAAA,CAMW,SANX,CAMsB,CAAC,OAAD,CAAU,QAAQ,CAACC,CAAD,CAAQ,CAC9C,MAAOA,EAAAF,YAAA,CAAkB,SAAlB,CAA6B,cAA7B,CAA6CpC,CAA7C,CAA4D,CAAA,CAA5D,CADuC,CAA1B,CANtB,CAAAqC,UAAA,CASW,WATX,CASwB,CAAC,OAAD,CAAU,QAAQ,CAACC,CAAD,CAAQ,CAChD,MAAOA,EAAAF,YAAA,CAAkB,WAAlB,CAA+B,cAA/B,CAA+CpC,CAA/C,CAA8D,CAAA,CAA9D,CADyC,CAA1B,CATxB,CAAAqC,UAAA,CAYW,YAZX;AAYyB,CAAC,OAAD,CAAU,QAAQ,CAACC,CAAD,CAAQ,CACjD,MAAOA,EAAAF,YAAA,CAAkB,YAAlB,CAAgC,eAAhC,CAAiDpC,CAAjD,CAAgE,CAAA,CAAhE,CAD0C,CAA1B,CAZzB,CAAAqC,UAAA,CAeW,SAfX,CAesB,CAAC,OAAD,CAAU,QAAQ,CAACC,CAAD,CAAQ,CAE9CC,QAASA,EAAgB,CAACxB,CAAD,CAAOyB,CAAP,CAAuBtC,CAAvB,CAA6BuC,CAA7B,CAAgD,CACvE,MAAOH,EAAApB,OAAA,CAAasB,CAAb,CAAP,EAAuC,CAACtC,CAAAa,KAAA,CAAUA,CAAV,CAAxC,GAA4D0B,CAA5D,EAAiF,CAACxC,CAAA,CAAYC,CAAZ,CAAkBF,CAAlB,CAAlF,CADuE,CAIzE0C,QAASA,EAAgB,CAACC,CAAD,CAAOzC,CAAP,CAAa,CAIpC,MAAO,CAACA,CAAAa,KAAA,CAAU,MAAV,CAAR,EAA8Bb,CAAAa,KAAA,CAAU,MAAV,CAA9B,GAAoD4B,CAApD,EAAmF,OAAnF,GAA8DzC,CAAA,CAAK,CAAL,CAAAG,SAJ1B,CAOtCuC,QAASA,EAAQ,CAAC7B,CAAD,CAAOb,CAAP,CAAa,CAAA,IACxB2C,EAAO9B,CAAA8B,KADiB,CAExBF,EAAO5B,CAAA4B,KAEX,OAA2B,UAApB,IAAEE,CAAF,EAAUF,CAAV,GAA2C,kBAA3C,GAAkCA,CAAlC,CAAiE,UAAjE,CACoB,OAApB,IAAEE,CAAF,EAAUF,CAAV,GAA2C,eAA3C,GAAkCA,CAAlC,CAA8D,OAA9D,CACU,OAAV,GAACE,CAAD,EAA2C,aAA3C,GAAkCF,CAAlC,EAAqE,QAArE,GAA4DA,CAA5D,CAAiF,OAAjF,CAA2F,EANtE,CAS9B,MAAO,CACLG,SAAU,GADL,CAELC,QAAS,SAFJ;AAGLC,SAAU,GAHL,CAILC,QAASA,QAAQ,CAAC/C,CAAD,CAAOa,CAAP,CAAa,CAC5B,IAAImC,EAAQN,CAAA,CAAS7B,CAAT,CAAeb,CAAf,CAEZ,OAAO,CACLiD,IAAKA,QAAQ,CAACrC,CAAD,CAAQZ,CAAR,CAAca,CAAd,CAAoBqC,CAApB,CAA6B,CAC1B,UAAd,GAAIF,CAAJ,GAEEE,CAAAC,SAFF,CAEqBC,QAAQ,CAACC,CAAD,CAAQ,CACjC,MAAiB,CAAA,CAAjB,GAAOA,CAD0B,CAFrC,CADwC,CADrC,CASLC,KAAMA,QAAQ,CAAC1C,CAAD,CAAQZ,CAAR,CAAca,CAAd,CAAoBqC,CAApB,CAA6B,CAGzCK,QAASA,EAAqB,EAAG,CAC/B,MAAOL,EAAAM,YADwB,CAIjCC,QAASA,EAAgB,CAACC,CAAD,CAAS,CAEhC1D,CAAAa,KAAA,CAAU,cAAV,CADeA,CAAAwC,MACf,EAD6BH,CAAAS,WAC7B,CAFgC,CAKlCC,QAASA,EAAmB,EAAG,CAC7B5D,CAAAa,KAAA,CAAU,cAAV,CAA0B,CAACqC,CAAAC,SAAA,CAAiBD,CAAAS,WAAjB,CAA3B,CAD6B,CAX/B,IAAIE,EAAgBxB,CAAA,CAAiB,UAAjB,CAA6B,UAA7B,CAAyCrC,CAAzC,CAA+C,CAAA,CAA/C,CAepB,QAAQgD,CAAR,EACE,KAAK,OAAL,CACA,KAAK,UAAL,CACMR,CAAA,CAAiBQ,CAAjB,CAAwBhD,CAAxB,CAAJ,EACEA,CAAAa,KAAA,CAAU,MAAV,CAAkBmC,CAAlB,CAEEX,EAAA,CAAiB,cAAjB,CAAiC,aAAjC,CAAgDrC,CAAhD,CAAsD,CAAA,CAAtD,CAAJ,EACEY,CAAAK,OAAA,CAAasC,CAAb,CAA8C,OAAV,GAAAP,CAAA,CAChCS,CADgC,CACbG,CADvB,CAGEC,EAAJ,EACE7D,CAAAa,KAAA,CAAU,UAAV,CAAsB,CAAtB,CAEF;KACF,MAAK,OAAL,CACM2B,CAAA,CAAiBQ,CAAjB,CAAwBhD,CAAxB,CAAJ,EACEA,CAAAa,KAAA,CAAU,MAAV,CAAkB,QAAlB,CAEF,IAAIuB,CAAApB,OAAA,CAAa,WAAb,CAAJ,CAA+B,CAC7B,IAAI8C,EAAoB,CAAC9D,CAAAa,KAAA,CAAU,eAAV,CAArBiD,GACCjD,CAAAkD,eAAA,CAAoB,KAApB,CADDD,EAC+BjD,CAAAkD,eAAA,CAAoB,OAApB,CAD/BD,CAAJ,CAEIE,EAAoB,CAAChE,CAAAa,KAAA,CAAU,eAAV,CAArBmD,GACCnD,CAAAkD,eAAA,CAAoB,KAApB,CADDC,EAC+BnD,CAAAkD,eAAA,CAAoB,OAApB,CAD/BC,CAFJ,CAIIC,EAAoB,CAACjE,CAAAa,KAAA,CAAU,eAAV,CAErBiD,EAAJ,EACEjD,CAAAqD,SAAA,CAAc,KAAd,CAAqBC,QAA+B,CAACT,CAAD,CAAS,CAC3D1D,CAAAa,KAAA,CAAU,eAAV,CAA2B6C,CAA3B,CAD2D,CAA7D,CAIEM,EAAJ,EACEnD,CAAAqD,SAAA,CAAc,KAAd,CAAqBC,QAA+B,CAACT,CAAD,CAAS,CAC3D1D,CAAAa,KAAA,CAAU,eAAV,CAA2B6C,CAA3B,CAD2D,CAA7D,CAIEO,EAAJ,EACErD,CAAAK,OAAA,CAAasC,CAAb,CAAoCa,QAA+B,CAACV,CAAD,CAAS,CAC1E1D,CAAAa,KAAA,CAAU,eAAV,CAA2B6C,CAA3B,CAD0E,CAA5E,CAlB2B,CAuB3BG,CAAJ,EACE7D,CAAAa,KAAA,CAAU,UAAV,CAAsB,CAAtB,CA1CN,CA+CK,CAAAA,CAAAkD,eAAA,CAAoB,YAApB,CAAL;AAA0Cb,CAAAmB,YAAAC,SAA1C,EACKjC,CAAA,CAAiB,eAAjB,CAAkC,cAAlC,CAAkDrC,CAAlD,CAAwD,CAAA,CAAxD,CADL,EAGEa,CAAAqD,SAAA,CAAc,UAAd,CAA0B,QAAQ,EAAG,CACnClE,CAAAa,KAAA,CAAU,eAAV,CAA2B,CAAE,CAAAA,CAAA,SAA7B,CADmC,CAArC,CAKEwB,EAAA,CAAiB,cAAjB,CAAiC,aAAjC,CAAgDrC,CAAhD,CAAsD,CAAA,CAAtD,CAAJ,EACEY,CAAAK,OAAA,CAAasD,QAA2B,EAAG,CACzC,MAAOrB,EAAAsB,SADkC,CAA3C,CAEGC,QAA8B,CAACf,CAAD,CAAS,CACxC1D,CAAAa,KAAA,CAAU,cAAV,CAA0B,CAAE6C,CAAAA,CAA5B,CADwC,CAF1C,CAxEuC,CATtC,CAHqB,CAJzB,CAtBuC,CAA1B,CAftB,CAAAvB,UAAA,CAwIW,YAxIX,CAwIyB,CAAC,OAAD,CAAU,QAAQ,CAACC,CAAD,CAAQ,CACjD,MAAOA,EAAAF,YAAA,CAAkB,YAAlB,CAAgC,eAAhC,CAAiDpC,CAAjD,CAAgE,CAAA,CAAhE,CAD0C,CAA1B,CAxIzB,CAAAqC,UAAA,CA2IW,YA3IX,CA2IyB,QAAQ,EAAG,CAClC,MAAO,CACLS,SAAU,GADL,CAELC,QAAS,aAFJ,CAGL6B,KAAMA,QAAQ,CAAC9D,CAAD,CAAQZ,CAAR,CAAca,CAAd,CAAoB8D,CAApB,CAAgC,CACvC3E,CAAAa,KAAA,CAAU,WAAV,CAAL,EACEb,CAAAa,KAAA,CAAU,WAAV;AAAuB,WAAvB,CAF0C,CAHzC,CAD2B,CA3IpC,CAAAsB,UAAA,CAsJW,SAtJX,CAsJqB,CAAC,OAAD,CAAU,QAAV,CAAoB,QAAQ,CAACC,CAAD,CAAQwC,CAAR,CAAgB,CAC/D,MAAO,CACLhC,SAAU,GADL,CAELG,QAASA,QAAQ,CAAC/C,CAAD,CAAOa,CAAP,CAAa,CAC5B,IAAIgE,EAAKD,CAAA,CAAO/D,CAAAiE,QAAP,CAAyC,IAAzC,CAAqE,CAAA,CAArE,CACT,OAAO,SAAQ,CAAClE,CAAD,CAAQZ,CAAR,CAAca,CAAd,CAAoB,CAEjC,GAAK,CAAAd,CAAA,CAAYC,CAAZ,CAAkBF,CAAlB,CAAL,GAEMsC,CAAApB,OAAA,CAAa,kBAAb,CAQA,EARqC,CAAAhB,CAAAa,KAAA,CAAU,MAAV,CAQrC,EAPFb,CAAAa,KAAA,CAAU,MAAV,CAAkB,QAAlB,CAOE,CAJAuB,CAAApB,OAAA,CAAa,UAAb,CAIA,EAJ6B,CAAAhB,CAAAa,KAAA,CAAU,UAAV,CAI7B,EAHFb,CAAAa,KAAA,CAAU,UAAV,CAAsB,CAAtB,CAGE,CAAAuB,CAAApB,OAAA,CAAa,cAAb,CAAA,EAAiC+D,CAAAlE,CAAAkE,WAVvC,EAWI/E,CAAAgF,GAAA,CAAQ,UAAR,CAAoB,QAAQ,CAACC,CAAD,CAAQ,CAMlCC,QAASA,EAAQ,EAAG,CAClBL,CAAA,CAAGjE,CAAH,CAAU,CAAEuE,OAAQF,CAAV,CAAV,CADkB,CALpB,IAAIG,EAAUH,CAAAI,MAAVD,EAAyBH,CAAAG,QACb,GAAhB,GAAIA,CAAJ,EAAkC,EAAlC,GAAsBA,CAAtB,EACExE,CAAA0E,OAAA,CAAaJ,CAAb,CAHgC,CAApC,CAb6B,CAFP,CAFzB,CADwD,CAA5C,CAtJrB,CAAA/C,UAAA,CAwLW,YAxLX,CAwLyB,CAAC,OAAD,CAAU,QAAQ,CAACC,CAAD,CAAQ,CACjD,MAAO,SAAQ,CAACxB,CAAD;AAAQZ,CAAR,CAAca,CAAd,CAAoB,CAC7B,CAAAuB,CAAApB,OAAA,CAAa,UAAb,CAAJ,EAAiChB,CAAAa,KAAA,CAAU,UAAV,CAAjC,EAA2Dd,CAAA,CAAYC,CAAZ,CAAkBF,CAAlB,CAA3D,EACEE,CAAAa,KAAA,CAAU,UAAV,CAAsB,CAAtB,CAF+B,CADc,CAA1B,CAxLzB,CAvMsC,CAArC,CAAD,CAwYGlB,MAxYH,CAwYWA,MAAAC,QAxYX;",
-"sources":["angular-aria.js"],
-"names":["window","angular","undefined","nodeBlackList","isNodeOneOf","elem","nodeTypeArray","indexOf","nodeName","module","provider","ngAriaModule","$AriaProvider","watchExpr","attrName","ariaAttr","negate","scope","attr","ariaCamelName","$normalize","config","$watch","boolVal","ariaHidden","ariaChecked","ariaDisabled","ariaRequired","ariaInvalid","ariaValue","tabindex","bindKeypress","bindRoleForClick","this.config","newConfig","extend","$get","this.$get","key","$$watchExpr","directive","$aria","shouldAttachAttr","normalizedAttr","allowBlacklistEls","shouldAttachRole","role","getShape","type","restrict","require","priority","compile","shape","pre","ngModel","$isEmpty","ngModel.$isEmpty","value","post","ngAriaWatchModelValue","$modelValue","getRadioReaction","newVal","$viewValue","getCheckboxReaction","needsTabIndex","needsAriaValuemin","hasOwnProperty","needsAriaValuemax","needsAriaValuenow","$observe","ngAriaValueMinReaction","ngAriaValueNowReaction","$validators","required","ngAriaInvalidWatch","$invalid","ngAriaInvalidReaction","link","ngMessages","$parse","fn","ngClick","ngKeypress","on","event","callback","$event","keyCode","which","$apply"]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-aria/bower.json b/ecomp-portal-FE/client/bower_components/angular-aria/bower.json
deleted file mode 100644
index 8a11f57c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-aria/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-aria",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-aria.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-aria/index.js b/ecomp-portal-FE/client/bower_components/angular-aria/index.js
deleted file mode 100644
index 0a8f0d9b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-aria/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-aria');
-module.exports = 'ngAria';
diff --git a/ecomp-portal-FE/client/bower_components/angular-aria/package.json b/ecomp-portal-FE/client/bower_components/angular-aria/package.json
deleted file mode 100644
index eeb93e13..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-aria/package.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "name": "angular-aria",
- "version": "1.5.0",
- "description": "AngularJS module for making accessibility easy",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "accessibility",
- "a11y",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org"
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/.bower.json b/ecomp-portal-FE/client/bower_components/angular-bootstrap/.bower.json
deleted file mode 100644
index de959412..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/.bower.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "author": {
- "name": "https://github.com/angular-ui/bootstrap/graphs/contributors"
- },
- "name": "angular-bootstrap",
- "keywords": [
- "angular",
- "angular-ui",
- "bootstrap"
- ],
- "license": "MIT",
- "ignore": [],
- "description": "Native AngularJS (Angular) directives for Bootstrap.",
- "version": "2.4.0",
- "main": [
- "./ui-bootstrap-tpls.js"
- ],
- "dependencies": {
- "angular": ">=1.4.0"
- },
- "homepage": "https://github.com/angular-ui/bootstrap-bower",
- "_release": "2.4.0",
- "_resolution": {
- "type": "version",
- "tag": "2.4.0",
- "commit": "4c3176f472a3f986ff7ee78b258af520a78ae604"
- },
- "_source": "https://github.com/angular-ui/bootstrap-bower.git",
- "_target": "^2.0.0",
- "_originalSource": "angular-bootstrap"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/.gitignore b/ecomp-portal-FE/client/bower_components/angular-bootstrap/.gitignore
deleted file mode 100644
index 496ee2ca..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-.DS_Store \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/.npmignore b/ecomp-portal-FE/client/bower_components/angular-bootstrap/.npmignore
deleted file mode 100644
index d62f9b6e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-bower.json \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/README.md b/ecomp-portal-FE/client/bower_components/angular-bootstrap/README.md
deleted file mode 100644
index 9607c65f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/README.md
+++ /dev/null
@@ -1,120 +0,0 @@
-### UI Bootstrap - [AngularJS](http://angularjs.org/) directives specific to [Bootstrap](http://getbootstrap.com)
-
-[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-ui/bootstrap?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-[![Build Status](https://secure.travis-ci.org/angular-ui/bootstrap.svg)](http://travis-ci.org/angular-ui/bootstrap)
-[![devDependency Status](https://david-dm.org/angular-ui/bootstrap/dev-status.svg?branch=master)](https://david-dm.org/angular-ui/bootstrap#info=devDependencies)
-
-### Quick links
-- [Demo](#demo)
-- [Installation](#installation)
- - [NPM](#install-with-npm)
- - [Bower](#install-with-bower)
- - [NuGet](#install-with-nuget)
- - [Custom](#custom-build)
- - [Manual](#manual-download)
-- [Support](#support)
- - [FAQ](#faq)
- - [Supported browsers](#supported-browsers)
- - [Need help?](#need-help)
- - [Found a bug?](#found-a-bug)
-- [Contributing to the project](#contributing-to-the-project)
-- [Development, meeting minutes, roadmap and more.](#development-meeting-minutes-roadmap-and-more)
-
-
-# Demo
-
-Do you want to see directives in action? Visit http://angular-ui.github.io/bootstrap/!
-
-# Installation
-
-Installation is easy as UI Bootstrap has minimal dependencies - only the AngularJS and Twitter Bootstrap's CSS are required.
-Note: Since version 0.13.0, UI Bootstrap depends on [ngAnimate](https://docs.angularjs.org/api/ngAnimate) for transitions and animations, such as the accordion, carousel, etc. Include `ngAnimate` in the module dependencies for your app in order to enable animation.
-
-#### Install with NPM
-
-```sh
-$ npm install angular-ui-bootstrap
-```
-
-This will install AngularJS and Bootstrap NPM packages.
-
-#### Install with Bower
-```sh
-$ bower install angular-bootstrap
-```
-
-Note: do not install 'angular-ui-bootstrap'. A separate repository - [bootstrap-bower](https://github.com/angular-ui/bootstrap-bower) - hosts the compiled javascript file and bower.json.
-
-#### Install with NuGet
-To install AngularJS UI Bootstrap, run the following command in the Package Manager Console
-
-```sh
-PM> Install-Package Angular.UI.Bootstrap
-```
-
-#### Custom build
-
-Head over to http://angular-ui.github.io/bootstrap/ and hit the *Custom build* button to create your own custom UI Bootstrap build, just the way you like it.
-
-#### Manual download
-
-After downloading dependencies (or better yet, referencing them from your favorite CDN) you need to download build version of this project. All the files and their purposes are described here:
-https://github.com/angular-ui/bootstrap/tree/gh-pages#build-files
-Don't worry, if you are not sure which file to take, opt for `ui-bootstrap-tpls-[version].min.js`.
-
-### Adding dependency to your project
-
-When you are done downloading all the dependencies and project files the only remaining part is to add dependencies on the `ui.bootstrap` AngularJS module:
-
-```js
-angular.module('myModule', ['ui.bootstrap']);
-```
-
-If you're a Browserify or Webpack user, you can do:
-
-```js
-var uibs = require('angular-ui-bootstrap');
-
-angular.module('myModule', [uibs]);
-```
-
-# Support
-
-## FAQ
-
-https://github.com/angular-ui/bootstrap/wiki/FAQ
-
-## Supported browsers
-
-Directives from this repository are automatically tested with the following browsers:
-* Chrome (stable and canary channel)
-* Firefox
-* IE 9 and 10
-* Opera
-* Safari
-
-Modern mobile browsers should work without problems.
-
-
-## Need help?
-Need help using UI Bootstrap?
-
-* Live help in the IRC (`#angularjs` channel at the `freenode` network). Use this [webchat](https://webchat.freenode.net/) or your own IRC client.
-* Ask a question in [StackOverflow](http://stackoverflow.com/) under the [angular-ui-bootstrap](http://stackoverflow.com/questions/tagged/angular-ui-bootstrap) tag.
-
-**Please do not create new issues in this repository to ask questions about using UI Bootstrap**
-
-## Found a bug?
-Please take a look at [CONTRIBUTING.md](CONTRIBUTING.md#you-think-youve-found-a-bug) and submit your issue [here](https://github.com/angular-ui/bootstrap/issues/new).
-
-
-----
-
-
-# Contributing to the project
-
-We are always looking for the quality contributions! Please check the [CONTRIBUTING.md](CONTRIBUTING.md) for the contribution guidelines.
-
-# Development, meeting minutes, roadmap and more.
-
-Head over to the [Wiki](https://github.com/angular-ui/bootstrap/wiki) for notes on development for UI Bootstrap, meeting minutes from the UI Bootstrap team, roadmap plans, project philosophy and more.
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/bower.json b/ecomp-portal-FE/client/bower_components/angular-bootstrap/bower.json
deleted file mode 100644
index e0b38c33..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/bower.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "author": {
- "name": "https://github.com/angular-ui/bootstrap/graphs/contributors"
- },
- "name": "angular-bootstrap",
- "keywords": [
- "angular",
- "angular-ui",
- "bootstrap"
- ],
- "license": "MIT",
- "ignore": [],
- "description": "Native AngularJS (Angular) directives for Bootstrap.",
- "version": "2.4.0",
- "main": ["./ui-bootstrap-tpls.js"],
- "dependencies": {
- "angular": ">=1.4.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/index.js b/ecomp-portal-FE/client/bower_components/angular-bootstrap/index.js
deleted file mode 100644
index a174f26d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./ui-bootstrap-tpls');
-module.exports = 'ui.bootstrap';
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/package.json b/ecomp-portal-FE/client/bower_components/angular-bootstrap/package.json
deleted file mode 100644
index f42e8710..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/package.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "angular-ui-bootstrap",
- "version": "2.4.0",
- "description": "Bootstrap widgets for Angular",
- "main": "index.js",
- "homepage": "http://angular-ui.github.io/bootstrap/",
- "repository": {
- "type": "git",
- "url": "https://github.com/angular-ui/bootstrap.git"
- },
- "keywords": [
- "angular",
- "bootstrap",
- "angular-ui",
- "components",
- "client-side"
- ],
- "author": "https://github.com/angular-ui/bootstrap/graphs/contributors",
- "peerDependencies": {
- "angular": ">= 1.4.0-beta.0 || >= 1.5.0-beta.0"
- },
- "license": "MIT"
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-csp.css b/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-csp.css
deleted file mode 100644
index 3b69cf64..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-csp.css
+++ /dev/null
@@ -1,115 +0,0 @@
-/* Include this file in your html if you are using the CSP mode. */
-
-.ng-animate.item:not(.left):not(.right) {
- -webkit-transition: 0s ease-in-out left;
- transition: 0s ease-in-out left
-}
-.uib-datepicker .uib-title {
- width: 100%;
-}
-
-.uib-day button, .uib-month button, .uib-year button {
- min-width: 100%;
-}
-
-.uib-left, .uib-right {
- width: 100%
-}
-
-.uib-position-measure {
- display: block !important;
- visibility: hidden !important;
- position: absolute !important;
- top: -9999px !important;
- left: -9999px !important;
-}
-
-.uib-position-scrollbar-measure {
- position: absolute !important;
- top: -9999px !important;
- width: 50px !important;
- height: 50px !important;
- overflow: scroll !important;
-}
-
-.uib-position-body-scrollbar-measure {
- overflow: scroll !important;
-}
-.uib-datepicker-popup.dropdown-menu {
- display: block;
- float: none;
- margin: 0;
-}
-
-.uib-button-bar {
- padding: 10px 9px 2px;
-}
-
-[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,
-[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,
-[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,
-[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,
-[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,
-[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,
-[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,
-[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,
-[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,
-[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,
-[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,
-[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,
-[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,
-[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,
-[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,
-[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,
-[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,
-[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,
-[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,
-[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,
-[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,
-[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,
-[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,
-[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,
-[uib-popover-popup].popover.top-left > .arrow,
-[uib-popover-popup].popover.top-right > .arrow,
-[uib-popover-popup].popover.bottom-left > .arrow,
-[uib-popover-popup].popover.bottom-right > .arrow,
-[uib-popover-popup].popover.left-top > .arrow,
-[uib-popover-popup].popover.left-bottom > .arrow,
-[uib-popover-popup].popover.right-top > .arrow,
-[uib-popover-popup].popover.right-bottom > .arrow,
-[uib-popover-html-popup].popover.top-left > .arrow,
-[uib-popover-html-popup].popover.top-right > .arrow,
-[uib-popover-html-popup].popover.bottom-left > .arrow,
-[uib-popover-html-popup].popover.bottom-right > .arrow,
-[uib-popover-html-popup].popover.left-top > .arrow,
-[uib-popover-html-popup].popover.left-bottom > .arrow,
-[uib-popover-html-popup].popover.right-top > .arrow,
-[uib-popover-html-popup].popover.right-bottom > .arrow,
-[uib-popover-template-popup].popover.top-left > .arrow,
-[uib-popover-template-popup].popover.top-right > .arrow,
-[uib-popover-template-popup].popover.bottom-left > .arrow,
-[uib-popover-template-popup].popover.bottom-right > .arrow,
-[uib-popover-template-popup].popover.left-top > .arrow,
-[uib-popover-template-popup].popover.left-bottom > .arrow,
-[uib-popover-template-popup].popover.right-top > .arrow,
-[uib-popover-template-popup].popover.right-bottom > .arrow {
- top: auto;
- bottom: auto;
- left: auto;
- right: auto;
- margin: 0;
-}
-
-[uib-popover-popup].popover,
-[uib-popover-html-popup].popover,
-[uib-popover-template-popup].popover {
- display: block !important;
-}
-
-.uib-time input {
- width: 50px;
-}
-
-[uib-typeahead-popup].dropdown-menu {
- display: block;
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-tpls.js b/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-tpls.js
deleted file mode 100644
index 91ddae90..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-tpls.js
+++ /dev/null
@@ -1,7715 +0,0 @@
-/*
- * angular-ui-bootstrap
- * http://angular-ui.github.io/bootstrap/
-
- * Version: 2.4.0 - 2016-12-29
- * License: MIT
- */angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);
-angular.module("ui.bootstrap.tpls", ["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]);
-angular.module('ui.bootstrap.collapse', [])
-
- .directive('uibCollapse', ['$animate', '$q', '$parse', '$injector', function($animate, $q, $parse, $injector) {
- var $animateCss = $injector.has('$animateCss') ? $injector.get('$animateCss') : null;
- return {
- link: function(scope, element, attrs) {
- var expandingExpr = $parse(attrs.expanding),
- expandedExpr = $parse(attrs.expanded),
- collapsingExpr = $parse(attrs.collapsing),
- collapsedExpr = $parse(attrs.collapsed),
- horizontal = false,
- css = {},
- cssTo = {};
-
- init();
-
- function init() {
- horizontal = !!('horizontal' in attrs);
- if (horizontal) {
- css = {
- width: ''
- };
- cssTo = {width: '0'};
- } else {
- css = {
- height: ''
- };
- cssTo = {height: '0'};
- }
- if (!scope.$eval(attrs.uibCollapse)) {
- element.addClass('in')
- .addClass('collapse')
- .attr('aria-expanded', true)
- .attr('aria-hidden', false)
- .css(css);
- }
- }
-
- function getScrollFromElement(element) {
- if (horizontal) {
- return {width: element.scrollWidth + 'px'};
- }
- return {height: element.scrollHeight + 'px'};
- }
-
- function expand() {
- if (element.hasClass('collapse') && element.hasClass('in')) {
- return;
- }
-
- $q.resolve(expandingExpr(scope))
- .then(function() {
- element.removeClass('collapse')
- .addClass('collapsing')
- .attr('aria-expanded', true)
- .attr('aria-hidden', false);
-
- if ($animateCss) {
- $animateCss(element, {
- addClass: 'in',
- easing: 'ease',
- css: {
- overflow: 'hidden'
- },
- to: getScrollFromElement(element[0])
- }).start()['finally'](expandDone);
- } else {
- $animate.addClass(element, 'in', {
- css: {
- overflow: 'hidden'
- },
- to: getScrollFromElement(element[0])
- }).then(expandDone);
- }
- });
- }
-
- function expandDone() {
- element.removeClass('collapsing')
- .addClass('collapse')
- .css(css);
- expandedExpr(scope);
- }
-
- function collapse() {
- if (!element.hasClass('collapse') && !element.hasClass('in')) {
- return collapseDone();
- }
-
- $q.resolve(collapsingExpr(scope))
- .then(function() {
- element
- // IMPORTANT: The width must be set before adding "collapsing" class.
- // Otherwise, the browser attempts to animate from width 0 (in
- // collapsing class) to the given width here.
- .css(getScrollFromElement(element[0]))
- // initially all panel collapse have the collapse class, this removal
- // prevents the animation from jumping to collapsed state
- .removeClass('collapse')
- .addClass('collapsing')
- .attr('aria-expanded', false)
- .attr('aria-hidden', true);
-
- if ($animateCss) {
- $animateCss(element, {
- removeClass: 'in',
- to: cssTo
- }).start()['finally'](collapseDone);
- } else {
- $animate.removeClass(element, 'in', {
- to: cssTo
- }).then(collapseDone);
- }
- });
- }
-
- function collapseDone() {
- element.css(cssTo); // Required so that collapse works when animation is disabled
- element.removeClass('collapsing')
- .addClass('collapse');
- collapsedExpr(scope);
- }
-
- scope.$watch(attrs.uibCollapse, function(shouldCollapse) {
- if (shouldCollapse) {
- collapse();
- } else {
- expand();
- }
- });
- }
- };
- }]);
-
-angular.module('ui.bootstrap.tabindex', [])
-
-.directive('uibTabindexToggle', function() {
- return {
- restrict: 'A',
- link: function(scope, elem, attrs) {
- attrs.$observe('disabled', function(disabled) {
- attrs.$set('tabindex', disabled ? -1 : null);
- });
- }
- };
-});
-
-angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse', 'ui.bootstrap.tabindex'])
-
-.constant('uibAccordionConfig', {
- closeOthers: true
-})
-
-.controller('UibAccordionController', ['$scope', '$attrs', 'uibAccordionConfig', function($scope, $attrs, accordionConfig) {
- // This array keeps track of the accordion groups
- this.groups = [];
-
- // Ensure that all the groups in this accordion are closed, unless close-others explicitly says not to
- this.closeOthers = function(openGroup) {
- var closeOthers = angular.isDefined($attrs.closeOthers) ?
- $scope.$eval($attrs.closeOthers) : accordionConfig.closeOthers;
- if (closeOthers) {
- angular.forEach(this.groups, function(group) {
- if (group !== openGroup) {
- group.isOpen = false;
- }
- });
- }
- };
-
- // This is called from the accordion-group directive to add itself to the accordion
- this.addGroup = function(groupScope) {
- var that = this;
- this.groups.push(groupScope);
-
- groupScope.$on('$destroy', function(event) {
- that.removeGroup(groupScope);
- });
- };
-
- // This is called from the accordion-group directive when to remove itself
- this.removeGroup = function(group) {
- var index = this.groups.indexOf(group);
- if (index !== -1) {
- this.groups.splice(index, 1);
- }
- };
-}])
-
-// The accordion directive simply sets up the directive controller
-// and adds an accordion CSS class to itself element.
-.directive('uibAccordion', function() {
- return {
- controller: 'UibAccordionController',
- controllerAs: 'accordion',
- transclude: true,
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/accordion/accordion.html';
- }
- };
-})
-
-// The accordion-group directive indicates a block of html that will expand and collapse in an accordion
-.directive('uibAccordionGroup', function() {
- return {
- require: '^uibAccordion', // We need this directive to be inside an accordion
- transclude: true, // It transcludes the contents of the directive into the template
- restrict: 'A',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/accordion/accordion-group.html';
- },
- scope: {
- heading: '@', // Interpolate the heading attribute onto this scope
- panelClass: '@?', // Ditto with panelClass
- isOpen: '=?',
- isDisabled: '=?'
- },
- controller: function() {
- this.setHeading = function(element) {
- this.heading = element;
- };
- },
- link: function(scope, element, attrs, accordionCtrl) {
- element.addClass('panel');
- accordionCtrl.addGroup(scope);
-
- scope.openClass = attrs.openClass || 'panel-open';
- scope.panelClass = attrs.panelClass || 'panel-default';
- scope.$watch('isOpen', function(value) {
- element.toggleClass(scope.openClass, !!value);
- if (value) {
- accordionCtrl.closeOthers(scope);
- }
- });
-
- scope.toggleOpen = function($event) {
- if (!scope.isDisabled) {
- if (!$event || $event.which === 32) {
- scope.isOpen = !scope.isOpen;
- }
- }
- };
-
- var id = 'accordiongroup-' + scope.$id + '-' + Math.floor(Math.random() * 10000);
- scope.headingId = id + '-tab';
- scope.panelId = id + '-panel';
- }
- };
-})
-
-// Use accordion-heading below an accordion-group to provide a heading containing HTML
-.directive('uibAccordionHeading', function() {
- return {
- transclude: true, // Grab the contents to be used as the heading
- template: '', // In effect remove this element!
- replace: true,
- require: '^uibAccordionGroup',
- link: function(scope, element, attrs, accordionGroupCtrl, transclude) {
- // Pass the heading to the accordion-group controller
- // so that it can be transcluded into the right place in the template
- // [The second parameter to transclude causes the elements to be cloned so that they work in ng-repeat]
- accordionGroupCtrl.setHeading(transclude(scope, angular.noop));
- }
- };
-})
-
-// Use in the accordion-group template to indicate where you want the heading to be transcluded
-// You must provide the property on the accordion-group controller that will hold the transcluded element
-.directive('uibAccordionTransclude', function() {
- return {
- require: '^uibAccordionGroup',
- link: function(scope, element, attrs, controller) {
- scope.$watch(function() { return controller[attrs.uibAccordionTransclude]; }, function(heading) {
- if (heading) {
- var elem = angular.element(element[0].querySelector(getHeaderSelectors()));
- elem.html('');
- elem.append(heading);
- }
- });
- }
- };
-
- function getHeaderSelectors() {
- return 'uib-accordion-header,' +
- 'data-uib-accordion-header,' +
- 'x-uib-accordion-header,' +
- 'uib\\:accordion-header,' +
- '[uib-accordion-header],' +
- '[data-uib-accordion-header],' +
- '[x-uib-accordion-header]';
- }
-});
-
-angular.module('ui.bootstrap.alert', [])
-
-.controller('UibAlertController', ['$scope', '$element', '$attrs', '$interpolate', '$timeout', function($scope, $element, $attrs, $interpolate, $timeout) {
- $scope.closeable = !!$attrs.close;
- $element.addClass('alert');
- $attrs.$set('role', 'alert');
- if ($scope.closeable) {
- $element.addClass('alert-dismissible');
- }
-
- var dismissOnTimeout = angular.isDefined($attrs.dismissOnTimeout) ?
- $interpolate($attrs.dismissOnTimeout)($scope.$parent) : null;
-
- if (dismissOnTimeout) {
- $timeout(function() {
- $scope.close();
- }, parseInt(dismissOnTimeout, 10));
- }
-}])
-
-.directive('uibAlert', function() {
- return {
- controller: 'UibAlertController',
- controllerAs: 'alert',
- restrict: 'A',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/alert/alert.html';
- },
- transclude: true,
- scope: {
- close: '&'
- }
- };
-});
-
-angular.module('ui.bootstrap.buttons', [])
-
-.constant('uibButtonConfig', {
- activeClass: 'active',
- toggleEvent: 'click'
-})
-
-.controller('UibButtonsController', ['uibButtonConfig', function(buttonConfig) {
- this.activeClass = buttonConfig.activeClass || 'active';
- this.toggleEvent = buttonConfig.toggleEvent || 'click';
-}])
-
-.directive('uibBtnRadio', ['$parse', function($parse) {
- return {
- require: ['uibBtnRadio', 'ngModel'],
- controller: 'UibButtonsController',
- controllerAs: 'buttons',
- link: function(scope, element, attrs, ctrls) {
- var buttonsCtrl = ctrls[0], ngModelCtrl = ctrls[1];
- var uncheckableExpr = $parse(attrs.uibUncheckable);
-
- element.find('input').css({display: 'none'});
-
- //model -> UI
- ngModelCtrl.$render = function() {
- element.toggleClass(buttonsCtrl.activeClass, angular.equals(ngModelCtrl.$modelValue, scope.$eval(attrs.uibBtnRadio)));
- };
-
- //ui->model
- element.on(buttonsCtrl.toggleEvent, function() {
- if (attrs.disabled) {
- return;
- }
-
- var isActive = element.hasClass(buttonsCtrl.activeClass);
-
- if (!isActive || angular.isDefined(attrs.uncheckable)) {
- scope.$apply(function() {
- ngModelCtrl.$setViewValue(isActive ? null : scope.$eval(attrs.uibBtnRadio));
- ngModelCtrl.$render();
- });
- }
- });
-
- if (attrs.uibUncheckable) {
- scope.$watch(uncheckableExpr, function(uncheckable) {
- attrs.$set('uncheckable', uncheckable ? '' : undefined);
- });
- }
- }
- };
-}])
-
-.directive('uibBtnCheckbox', function() {
- return {
- require: ['uibBtnCheckbox', 'ngModel'],
- controller: 'UibButtonsController',
- controllerAs: 'button',
- link: function(scope, element, attrs, ctrls) {
- var buttonsCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- element.find('input').css({display: 'none'});
-
- function getTrueValue() {
- return getCheckboxValue(attrs.btnCheckboxTrue, true);
- }
-
- function getFalseValue() {
- return getCheckboxValue(attrs.btnCheckboxFalse, false);
- }
-
- function getCheckboxValue(attribute, defaultValue) {
- return angular.isDefined(attribute) ? scope.$eval(attribute) : defaultValue;
- }
-
- //model -> UI
- ngModelCtrl.$render = function() {
- element.toggleClass(buttonsCtrl.activeClass, angular.equals(ngModelCtrl.$modelValue, getTrueValue()));
- };
-
- //ui->model
- element.on(buttonsCtrl.toggleEvent, function() {
- if (attrs.disabled) {
- return;
- }
-
- scope.$apply(function() {
- ngModelCtrl.$setViewValue(element.hasClass(buttonsCtrl.activeClass) ? getFalseValue() : getTrueValue());
- ngModelCtrl.$render();
- });
- });
- }
- };
-});
-
-angular.module('ui.bootstrap.carousel', [])
-
-.controller('UibCarouselController', ['$scope', '$element', '$interval', '$timeout', '$animate', function($scope, $element, $interval, $timeout, $animate) {
- var self = this,
- slides = self.slides = $scope.slides = [],
- SLIDE_DIRECTION = 'uib-slideDirection',
- currentIndex = $scope.active,
- currentInterval, isPlaying, bufferedTransitions = [];
-
- var destroyed = false;
- $element.addClass('carousel');
-
- self.addSlide = function(slide, element) {
- slides.push({
- slide: slide,
- element: element
- });
- slides.sort(function(a, b) {
- return +a.slide.index - +b.slide.index;
- });
- //if this is the first slide or the slide is set to active, select it
- if (slide.index === $scope.active || slides.length === 1 && !angular.isNumber($scope.active)) {
- if ($scope.$currentTransition) {
- $scope.$currentTransition = null;
- }
-
- currentIndex = slide.index;
- $scope.active = slide.index;
- setActive(currentIndex);
- self.select(slides[findSlideIndex(slide)]);
- if (slides.length === 1) {
- $scope.play();
- }
- }
- };
-
- self.getCurrentIndex = function() {
- for (var i = 0; i < slides.length; i++) {
- if (slides[i].slide.index === currentIndex) {
- return i;
- }
- }
- };
-
- self.next = $scope.next = function() {
- var newIndex = (self.getCurrentIndex() + 1) % slides.length;
-
- if (newIndex === 0 && $scope.noWrap()) {
- $scope.pause();
- return;
- }
-
- return self.select(slides[newIndex], 'next');
- };
-
- self.prev = $scope.prev = function() {
- var newIndex = self.getCurrentIndex() - 1 < 0 ? slides.length - 1 : self.getCurrentIndex() - 1;
-
- if ($scope.noWrap() && newIndex === slides.length - 1) {
- $scope.pause();
- return;
- }
-
- return self.select(slides[newIndex], 'prev');
- };
-
- self.removeSlide = function(slide) {
- var index = findSlideIndex(slide);
-
- var bufferedIndex = bufferedTransitions.indexOf(slides[index]);
- if (bufferedIndex !== -1) {
- bufferedTransitions.splice(bufferedIndex, 1);
- }
-
- //get the index of the slide inside the carousel
- slides.splice(index, 1);
- if (slides.length > 0 && currentIndex === index) {
- if (index >= slides.length) {
- currentIndex = slides.length - 1;
- $scope.active = currentIndex;
- setActive(currentIndex);
- self.select(slides[slides.length - 1]);
- } else {
- currentIndex = index;
- $scope.active = currentIndex;
- setActive(currentIndex);
- self.select(slides[index]);
- }
- } else if (currentIndex > index) {
- currentIndex--;
- $scope.active = currentIndex;
- }
-
- //clean the active value when no more slide
- if (slides.length === 0) {
- currentIndex = null;
- $scope.active = null;
- clearBufferedTransitions();
- }
- };
-
- /* direction: "prev" or "next" */
- self.select = $scope.select = function(nextSlide, direction) {
- var nextIndex = findSlideIndex(nextSlide.slide);
- //Decide direction if it's not given
- if (direction === undefined) {
- direction = nextIndex > self.getCurrentIndex() ? 'next' : 'prev';
- }
- //Prevent this user-triggered transition from occurring if there is already one in progress
- if (nextSlide.slide.index !== currentIndex &&
- !$scope.$currentTransition) {
- goNext(nextSlide.slide, nextIndex, direction);
- } else if (nextSlide && nextSlide.slide.index !== currentIndex && $scope.$currentTransition) {
- bufferedTransitions.push(slides[nextIndex]);
- }
- };
-
- /* Allow outside people to call indexOf on slides array */
- $scope.indexOfSlide = function(slide) {
- return +slide.slide.index;
- };
-
- $scope.isActive = function(slide) {
- return $scope.active === slide.slide.index;
- };
-
- $scope.isPrevDisabled = function() {
- return $scope.active === 0 && $scope.noWrap();
- };
-
- $scope.isNextDisabled = function() {
- return $scope.active === slides.length - 1 && $scope.noWrap();
- };
-
- $scope.pause = function() {
- if (!$scope.noPause) {
- isPlaying = false;
- resetTimer();
- }
- };
-
- $scope.play = function() {
- if (!isPlaying) {
- isPlaying = true;
- restartTimer();
- }
- };
-
- $element.on('mouseenter', $scope.pause);
- $element.on('mouseleave', $scope.play);
-
- $scope.$on('$destroy', function() {
- destroyed = true;
- resetTimer();
- });
-
- $scope.$watch('noTransition', function(noTransition) {
- $animate.enabled($element, !noTransition);
- });
-
- $scope.$watch('interval', restartTimer);
-
- $scope.$watchCollection('slides', resetTransition);
-
- $scope.$watch('active', function(index) {
- if (angular.isNumber(index) && currentIndex !== index) {
- for (var i = 0; i < slides.length; i++) {
- if (slides[i].slide.index === index) {
- index = i;
- break;
- }
- }
-
- var slide = slides[index];
- if (slide) {
- setActive(index);
- self.select(slides[index]);
- currentIndex = index;
- }
- }
- });
-
- function clearBufferedTransitions() {
- while (bufferedTransitions.length) {
- bufferedTransitions.shift();
- }
- }
-
- function getSlideByIndex(index) {
- for (var i = 0, l = slides.length; i < l; ++i) {
- if (slides[i].index === index) {
- return slides[i];
- }
- }
- }
-
- function setActive(index) {
- for (var i = 0; i < slides.length; i++) {
- slides[i].slide.active = i === index;
- }
- }
-
- function goNext(slide, index, direction) {
- if (destroyed) {
- return;
- }
-
- angular.extend(slide, {direction: direction});
- angular.extend(slides[currentIndex].slide || {}, {direction: direction});
- if ($animate.enabled($element) && !$scope.$currentTransition &&
- slides[index].element && self.slides.length > 1) {
- slides[index].element.data(SLIDE_DIRECTION, slide.direction);
- var currentIdx = self.getCurrentIndex();
-
- if (angular.isNumber(currentIdx) && slides[currentIdx].element) {
- slides[currentIdx].element.data(SLIDE_DIRECTION, slide.direction);
- }
-
- $scope.$currentTransition = true;
- $animate.on('addClass', slides[index].element, function(element, phase) {
- if (phase === 'close') {
- $scope.$currentTransition = null;
- $animate.off('addClass', element);
- if (bufferedTransitions.length) {
- var nextSlide = bufferedTransitions.pop().slide;
- var nextIndex = nextSlide.index;
- var nextDirection = nextIndex > self.getCurrentIndex() ? 'next' : 'prev';
- clearBufferedTransitions();
-
- goNext(nextSlide, nextIndex, nextDirection);
- }
- }
- });
- }
-
- $scope.active = slide.index;
- currentIndex = slide.index;
- setActive(index);
-
- //every time you change slides, reset the timer
- restartTimer();
- }
-
- function findSlideIndex(slide) {
- for (var i = 0; i < slides.length; i++) {
- if (slides[i].slide === slide) {
- return i;
- }
- }
- }
-
- function resetTimer() {
- if (currentInterval) {
- $interval.cancel(currentInterval);
- currentInterval = null;
- }
- }
-
- function resetTransition(slides) {
- if (!slides.length) {
- $scope.$currentTransition = null;
- clearBufferedTransitions();
- }
- }
-
- function restartTimer() {
- resetTimer();
- var interval = +$scope.interval;
- if (!isNaN(interval) && interval > 0) {
- currentInterval = $interval(timerFn, interval);
- }
- }
-
- function timerFn() {
- var interval = +$scope.interval;
- if (isPlaying && !isNaN(interval) && interval > 0 && slides.length) {
- $scope.next();
- } else {
- $scope.pause();
- }
- }
-}])
-
-.directive('uibCarousel', function() {
- return {
- transclude: true,
- controller: 'UibCarouselController',
- controllerAs: 'carousel',
- restrict: 'A',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/carousel/carousel.html';
- },
- scope: {
- active: '=',
- interval: '=',
- noTransition: '=',
- noPause: '=',
- noWrap: '&'
- }
- };
-})
-
-.directive('uibSlide', ['$animate', function($animate) {
- return {
- require: '^uibCarousel',
- restrict: 'A',
- transclude: true,
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/carousel/slide.html';
- },
- scope: {
- actual: '=?',
- index: '=?'
- },
- link: function (scope, element, attrs, carouselCtrl) {
- element.addClass('item');
- carouselCtrl.addSlide(scope, element);
- //when the scope is destroyed then remove the slide from the current slides array
- scope.$on('$destroy', function() {
- carouselCtrl.removeSlide(scope);
- });
-
- scope.$watch('active', function(active) {
- $animate[active ? 'addClass' : 'removeClass'](element, 'active');
- });
- }
- };
-}])
-
-.animation('.item', ['$animateCss',
-function($animateCss) {
- var SLIDE_DIRECTION = 'uib-slideDirection';
-
- function removeClass(element, className, callback) {
- element.removeClass(className);
- if (callback) {
- callback();
- }
- }
-
- return {
- beforeAddClass: function(element, className, done) {
- if (className === 'active') {
- var stopped = false;
- var direction = element.data(SLIDE_DIRECTION);
- var directionClass = direction === 'next' ? 'left' : 'right';
- var removeClassFn = removeClass.bind(this, element,
- directionClass + ' ' + direction, done);
- element.addClass(direction);
-
- $animateCss(element, {addClass: directionClass})
- .start()
- .done(removeClassFn);
-
- return function() {
- stopped = true;
- };
- }
- done();
- },
- beforeRemoveClass: function (element, className, done) {
- if (className === 'active') {
- var stopped = false;
- var direction = element.data(SLIDE_DIRECTION);
- var directionClass = direction === 'next' ? 'left' : 'right';
- var removeClassFn = removeClass.bind(this, element, directionClass, done);
-
- $animateCss(element, {addClass: directionClass})
- .start()
- .done(removeClassFn);
-
- return function() {
- stopped = true;
- };
- }
- done();
- }
- };
-}]);
-
-angular.module('ui.bootstrap.dateparser', [])
-
-.service('uibDateParser', ['$log', '$locale', 'dateFilter', 'orderByFilter', 'filterFilter', function($log, $locale, dateFilter, orderByFilter, filterFilter) {
- // Pulled from https://github.com/mbostock/d3/blob/master/src/format/requote.js
- var SPECIAL_CHARACTERS_REGEXP = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
-
- var localeId;
- var formatCodeToRegex;
-
- this.init = function() {
- localeId = $locale.id;
-
- this.parsers = {};
- this.formatters = {};
-
- formatCodeToRegex = [
- {
- key: 'yyyy',
- regex: '\\d{4}',
- apply: function(value) { this.year = +value; },
- formatter: function(date) {
- var _date = new Date();
- _date.setFullYear(Math.abs(date.getFullYear()));
- return dateFilter(_date, 'yyyy');
- }
- },
- {
- key: 'yy',
- regex: '\\d{2}',
- apply: function(value) { value = +value; this.year = value < 69 ? value + 2000 : value + 1900; },
- formatter: function(date) {
- var _date = new Date();
- _date.setFullYear(Math.abs(date.getFullYear()));
- return dateFilter(_date, 'yy');
- }
- },
- {
- key: 'y',
- regex: '\\d{1,4}',
- apply: function(value) { this.year = +value; },
- formatter: function(date) {
- var _date = new Date();
- _date.setFullYear(Math.abs(date.getFullYear()));
- return dateFilter(_date, 'y');
- }
- },
- {
- key: 'M!',
- regex: '0?[1-9]|1[0-2]',
- apply: function(value) { this.month = value - 1; },
- formatter: function(date) {
- var value = date.getMonth();
- if (/^[0-9]$/.test(value)) {
- return dateFilter(date, 'MM');
- }
-
- return dateFilter(date, 'M');
- }
- },
- {
- key: 'MMMM',
- regex: $locale.DATETIME_FORMATS.MONTH.join('|'),
- apply: function(value) { this.month = $locale.DATETIME_FORMATS.MONTH.indexOf(value); },
- formatter: function(date) { return dateFilter(date, 'MMMM'); }
- },
- {
- key: 'MMM',
- regex: $locale.DATETIME_FORMATS.SHORTMONTH.join('|'),
- apply: function(value) { this.month = $locale.DATETIME_FORMATS.SHORTMONTH.indexOf(value); },
- formatter: function(date) { return dateFilter(date, 'MMM'); }
- },
- {
- key: 'MM',
- regex: '0[1-9]|1[0-2]',
- apply: function(value) { this.month = value - 1; },
- formatter: function(date) { return dateFilter(date, 'MM'); }
- },
- {
- key: 'M',
- regex: '[1-9]|1[0-2]',
- apply: function(value) { this.month = value - 1; },
- formatter: function(date) { return dateFilter(date, 'M'); }
- },
- {
- key: 'd!',
- regex: '[0-2]?[0-9]{1}|3[0-1]{1}',
- apply: function(value) { this.date = +value; },
- formatter: function(date) {
- var value = date.getDate();
- if (/^[1-9]$/.test(value)) {
- return dateFilter(date, 'dd');
- }
-
- return dateFilter(date, 'd');
- }
- },
- {
- key: 'dd',
- regex: '[0-2][0-9]{1}|3[0-1]{1}',
- apply: function(value) { this.date = +value; },
- formatter: function(date) { return dateFilter(date, 'dd'); }
- },
- {
- key: 'd',
- regex: '[1-2]?[0-9]{1}|3[0-1]{1}',
- apply: function(value) { this.date = +value; },
- formatter: function(date) { return dateFilter(date, 'd'); }
- },
- {
- key: 'EEEE',
- regex: $locale.DATETIME_FORMATS.DAY.join('|'),
- formatter: function(date) { return dateFilter(date, 'EEEE'); }
- },
- {
- key: 'EEE',
- regex: $locale.DATETIME_FORMATS.SHORTDAY.join('|'),
- formatter: function(date) { return dateFilter(date, 'EEE'); }
- },
- {
- key: 'HH',
- regex: '(?:0|1)[0-9]|2[0-3]',
- apply: function(value) { this.hours = +value; },
- formatter: function(date) { return dateFilter(date, 'HH'); }
- },
- {
- key: 'hh',
- regex: '0[0-9]|1[0-2]',
- apply: function(value) { this.hours = +value; },
- formatter: function(date) { return dateFilter(date, 'hh'); }
- },
- {
- key: 'H',
- regex: '1?[0-9]|2[0-3]',
- apply: function(value) { this.hours = +value; },
- formatter: function(date) { return dateFilter(date, 'H'); }
- },
- {
- key: 'h',
- regex: '[0-9]|1[0-2]',
- apply: function(value) { this.hours = +value; },
- formatter: function(date) { return dateFilter(date, 'h'); }
- },
- {
- key: 'mm',
- regex: '[0-5][0-9]',
- apply: function(value) { this.minutes = +value; },
- formatter: function(date) { return dateFilter(date, 'mm'); }
- },
- {
- key: 'm',
- regex: '[0-9]|[1-5][0-9]',
- apply: function(value) { this.minutes = +value; },
- formatter: function(date) { return dateFilter(date, 'm'); }
- },
- {
- key: 'sss',
- regex: '[0-9][0-9][0-9]',
- apply: function(value) { this.milliseconds = +value; },
- formatter: function(date) { return dateFilter(date, 'sss'); }
- },
- {
- key: 'ss',
- regex: '[0-5][0-9]',
- apply: function(value) { this.seconds = +value; },
- formatter: function(date) { return dateFilter(date, 'ss'); }
- },
- {
- key: 's',
- regex: '[0-9]|[1-5][0-9]',
- apply: function(value) { this.seconds = +value; },
- formatter: function(date) { return dateFilter(date, 's'); }
- },
- {
- key: 'a',
- regex: $locale.DATETIME_FORMATS.AMPMS.join('|'),
- apply: function(value) {
- if (this.hours === 12) {
- this.hours = 0;
- }
-
- if (value === 'PM') {
- this.hours += 12;
- }
- },
- formatter: function(date) { return dateFilter(date, 'a'); }
- },
- {
- key: 'Z',
- regex: '[+-]\\d{4}',
- apply: function(value) {
- var matches = value.match(/([+-])(\d{2})(\d{2})/),
- sign = matches[1],
- hours = matches[2],
- minutes = matches[3];
- this.hours += toInt(sign + hours);
- this.minutes += toInt(sign + minutes);
- },
- formatter: function(date) {
- return dateFilter(date, 'Z');
- }
- },
- {
- key: 'ww',
- regex: '[0-4][0-9]|5[0-3]',
- formatter: function(date) { return dateFilter(date, 'ww'); }
- },
- {
- key: 'w',
- regex: '[0-9]|[1-4][0-9]|5[0-3]',
- formatter: function(date) { return dateFilter(date, 'w'); }
- },
- {
- key: 'GGGG',
- regex: $locale.DATETIME_FORMATS.ERANAMES.join('|').replace(/\s/g, '\\s'),
- formatter: function(date) { return dateFilter(date, 'GGGG'); }
- },
- {
- key: 'GGG',
- regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
- formatter: function(date) { return dateFilter(date, 'GGG'); }
- },
- {
- key: 'GG',
- regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
- formatter: function(date) { return dateFilter(date, 'GG'); }
- },
- {
- key: 'G',
- regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
- formatter: function(date) { return dateFilter(date, 'G'); }
- }
- ];
-
- if (angular.version.major >= 1 && angular.version.minor > 4) {
- formatCodeToRegex.push({
- key: 'LLLL',
- regex: $locale.DATETIME_FORMATS.STANDALONEMONTH.join('|'),
- apply: function(value) { this.month = $locale.DATETIME_FORMATS.STANDALONEMONTH.indexOf(value); },
- formatter: function(date) { return dateFilter(date, 'LLLL'); }
- });
- }
- };
-
- this.init();
-
- function getFormatCodeToRegex(key) {
- return filterFilter(formatCodeToRegex, {key: key}, true)[0];
- }
-
- this.getParser = function (key) {
- var f = getFormatCodeToRegex(key);
- return f && f.apply || null;
- };
-
- this.overrideParser = function (key, parser) {
- var f = getFormatCodeToRegex(key);
- if (f && angular.isFunction(parser)) {
- this.parsers = {};
- f.apply = parser;
- }
- }.bind(this);
-
- function createParser(format) {
- var map = [], regex = format.split('');
-
- // check for literal values
- var quoteIndex = format.indexOf('\'');
- if (quoteIndex > -1) {
- var inLiteral = false;
- format = format.split('');
- for (var i = quoteIndex; i < format.length; i++) {
- if (inLiteral) {
- if (format[i] === '\'') {
- if (i + 1 < format.length && format[i+1] === '\'') { // escaped single quote
- format[i+1] = '$';
- regex[i+1] = '';
- } else { // end of literal
- regex[i] = '';
- inLiteral = false;
- }
- }
- format[i] = '$';
- } else {
- if (format[i] === '\'') { // start of literal
- format[i] = '$';
- regex[i] = '';
- inLiteral = true;
- }
- }
- }
-
- format = format.join('');
- }
-
- angular.forEach(formatCodeToRegex, function(data) {
- var index = format.indexOf(data.key);
-
- if (index > -1) {
- format = format.split('');
-
- regex[index] = '(' + data.regex + ')';
- format[index] = '$'; // Custom symbol to define consumed part of format
- for (var i = index + 1, n = index + data.key.length; i < n; i++) {
- regex[i] = '';
- format[i] = '$';
- }
- format = format.join('');
-
- map.push({
- index: index,
- key: data.key,
- apply: data.apply,
- matcher: data.regex
- });
- }
- });
-
- return {
- regex: new RegExp('^' + regex.join('') + '$'),
- map: orderByFilter(map, 'index')
- };
- }
-
- function createFormatter(format) {
- var formatters = [];
- var i = 0;
- var formatter, literalIdx;
- while (i < format.length) {
- if (angular.isNumber(literalIdx)) {
- if (format.charAt(i) === '\'') {
- if (i + 1 >= format.length || format.charAt(i + 1) !== '\'') {
- formatters.push(constructLiteralFormatter(format, literalIdx, i));
- literalIdx = null;
- }
- } else if (i === format.length) {
- while (literalIdx < format.length) {
- formatter = constructFormatterFromIdx(format, literalIdx);
- formatters.push(formatter);
- literalIdx = formatter.endIdx;
- }
- }
-
- i++;
- continue;
- }
-
- if (format.charAt(i) === '\'') {
- literalIdx = i;
- i++;
- continue;
- }
-
- formatter = constructFormatterFromIdx(format, i);
-
- formatters.push(formatter.parser);
- i = formatter.endIdx;
- }
-
- return formatters;
- }
-
- function constructLiteralFormatter(format, literalIdx, endIdx) {
- return function() {
- return format.substr(literalIdx + 1, endIdx - literalIdx - 1);
- };
- }
-
- function constructFormatterFromIdx(format, i) {
- var currentPosStr = format.substr(i);
- for (var j = 0; j < formatCodeToRegex.length; j++) {
- if (new RegExp('^' + formatCodeToRegex[j].key).test(currentPosStr)) {
- var data = formatCodeToRegex[j];
- return {
- endIdx: i + data.key.length,
- parser: data.formatter
- };
- }
- }
-
- return {
- endIdx: i + 1,
- parser: function() {
- return currentPosStr.charAt(0);
- }
- };
- }
-
- this.filter = function(date, format) {
- if (!angular.isDate(date) || isNaN(date) || !format) {
- return '';
- }
-
- format = $locale.DATETIME_FORMATS[format] || format;
-
- if ($locale.id !== localeId) {
- this.init();
- }
-
- if (!this.formatters[format]) {
- this.formatters[format] = createFormatter(format);
- }
-
- var formatters = this.formatters[format];
-
- return formatters.reduce(function(str, formatter) {
- return str + formatter(date);
- }, '');
- };
-
- this.parse = function(input, format, baseDate) {
- if (!angular.isString(input) || !format) {
- return input;
- }
-
- format = $locale.DATETIME_FORMATS[format] || format;
- format = format.replace(SPECIAL_CHARACTERS_REGEXP, '\\$&');
-
- if ($locale.id !== localeId) {
- this.init();
- }
-
- if (!this.parsers[format]) {
- this.parsers[format] = createParser(format, 'apply');
- }
-
- var parser = this.parsers[format],
- regex = parser.regex,
- map = parser.map,
- results = input.match(regex),
- tzOffset = false;
- if (results && results.length) {
- var fields, dt;
- if (angular.isDate(baseDate) && !isNaN(baseDate.getTime())) {
- fields = {
- year: baseDate.getFullYear(),
- month: baseDate.getMonth(),
- date: baseDate.getDate(),
- hours: baseDate.getHours(),
- minutes: baseDate.getMinutes(),
- seconds: baseDate.getSeconds(),
- milliseconds: baseDate.getMilliseconds()
- };
- } else {
- if (baseDate) {
- $log.warn('dateparser:', 'baseDate is not a valid date');
- }
- fields = { year: 1900, month: 0, date: 1, hours: 0, minutes: 0, seconds: 0, milliseconds: 0 };
- }
-
- for (var i = 1, n = results.length; i < n; i++) {
- var mapper = map[i - 1];
- if (mapper.matcher === 'Z') {
- tzOffset = true;
- }
-
- if (mapper.apply) {
- mapper.apply.call(fields, results[i]);
- }
- }
-
- var datesetter = tzOffset ? Date.prototype.setUTCFullYear :
- Date.prototype.setFullYear;
- var timesetter = tzOffset ? Date.prototype.setUTCHours :
- Date.prototype.setHours;
-
- if (isValid(fields.year, fields.month, fields.date)) {
- if (angular.isDate(baseDate) && !isNaN(baseDate.getTime()) && !tzOffset) {
- dt = new Date(baseDate);
- datesetter.call(dt, fields.year, fields.month, fields.date);
- timesetter.call(dt, fields.hours, fields.minutes,
- fields.seconds, fields.milliseconds);
- } else {
- dt = new Date(0);
- datesetter.call(dt, fields.year, fields.month, fields.date);
- timesetter.call(dt, fields.hours || 0, fields.minutes || 0,
- fields.seconds || 0, fields.milliseconds || 0);
- }
- }
-
- return dt;
- }
- };
-
- // Check if date is valid for specific month (and year for February).
- // Month: 0 = Jan, 1 = Feb, etc
- function isValid(year, month, date) {
- if (date < 1) {
- return false;
- }
-
- if (month === 1 && date > 28) {
- return date === 29 && (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0);
- }
-
- if (month === 3 || month === 5 || month === 8 || month === 10) {
- return date < 31;
- }
-
- return true;
- }
-
- function toInt(str) {
- return parseInt(str, 10);
- }
-
- this.toTimezone = toTimezone;
- this.fromTimezone = fromTimezone;
- this.timezoneToOffset = timezoneToOffset;
- this.addDateMinutes = addDateMinutes;
- this.convertTimezoneToLocal = convertTimezoneToLocal;
-
- function toTimezone(date, timezone) {
- return date && timezone ? convertTimezoneToLocal(date, timezone) : date;
- }
-
- function fromTimezone(date, timezone) {
- return date && timezone ? convertTimezoneToLocal(date, timezone, true) : date;
- }
-
- //https://github.com/angular/angular.js/blob/622c42169699ec07fc6daaa19fe6d224e5d2f70e/src/Angular.js#L1207
- function timezoneToOffset(timezone, fallback) {
- timezone = timezone.replace(/:/g, '');
- var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
- return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
- }
-
- function addDateMinutes(date, minutes) {
- date = new Date(date.getTime());
- date.setMinutes(date.getMinutes() + minutes);
- return date;
- }
-
- function convertTimezoneToLocal(date, timezone, reverse) {
- reverse = reverse ? -1 : 1;
- var dateTimezoneOffset = date.getTimezoneOffset();
- var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
- return addDateMinutes(date, reverse * (timezoneOffset - dateTimezoneOffset));
- }
-}]);
-
-// Avoiding use of ng-class as it creates a lot of watchers when a class is to be applied to
-// at most one element.
-angular.module('ui.bootstrap.isClass', [])
-.directive('uibIsClass', [
- '$animate',
-function ($animate) {
- // 11111111 22222222
- var ON_REGEXP = /^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/;
- // 11111111 22222222
- var IS_REGEXP = /^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;
-
- var dataPerTracked = {};
-
- return {
- restrict: 'A',
- compile: function(tElement, tAttrs) {
- var linkedScopes = [];
- var instances = [];
- var expToData = {};
- var lastActivated = null;
- var onExpMatches = tAttrs.uibIsClass.match(ON_REGEXP);
- var onExp = onExpMatches[2];
- var expsStr = onExpMatches[1];
- var exps = expsStr.split(',');
-
- return linkFn;
-
- function linkFn(scope, element, attrs) {
- linkedScopes.push(scope);
- instances.push({
- scope: scope,
- element: element
- });
-
- exps.forEach(function(exp, k) {
- addForExp(exp, scope);
- });
-
- scope.$on('$destroy', removeScope);
- }
-
- function addForExp(exp, scope) {
- var matches = exp.match(IS_REGEXP);
- var clazz = scope.$eval(matches[1]);
- var compareWithExp = matches[2];
- var data = expToData[exp];
- if (!data) {
- var watchFn = function(compareWithVal) {
- var newActivated = null;
- instances.some(function(instance) {
- var thisVal = instance.scope.$eval(onExp);
- if (thisVal === compareWithVal) {
- newActivated = instance;
- return true;
- }
- });
- if (data.lastActivated !== newActivated) {
- if (data.lastActivated) {
- $animate.removeClass(data.lastActivated.element, clazz);
- }
- if (newActivated) {
- $animate.addClass(newActivated.element, clazz);
- }
- data.lastActivated = newActivated;
- }
- };
- expToData[exp] = data = {
- lastActivated: null,
- scope: scope,
- watchFn: watchFn,
- compareWithExp: compareWithExp,
- watcher: scope.$watch(compareWithExp, watchFn)
- };
- }
- data.watchFn(scope.$eval(compareWithExp));
- }
-
- function removeScope(e) {
- var removedScope = e.targetScope;
- var index = linkedScopes.indexOf(removedScope);
- linkedScopes.splice(index, 1);
- instances.splice(index, 1);
- if (linkedScopes.length) {
- var newWatchScope = linkedScopes[0];
- angular.forEach(expToData, function(data) {
- if (data.scope === removedScope) {
- data.watcher = newWatchScope.$watch(data.compareWithExp, data.watchFn);
- data.scope = newWatchScope;
- }
- });
- } else {
- expToData = {};
- }
- }
- }
- };
-}]);
-angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootstrap.isClass'])
-
-.value('$datepickerSuppressError', false)
-
-.value('$datepickerLiteralWarning', true)
-
-.constant('uibDatepickerConfig', {
- datepickerMode: 'day',
- formatDay: 'dd',
- formatMonth: 'MMMM',
- formatYear: 'yyyy',
- formatDayHeader: 'EEE',
- formatDayTitle: 'MMMM yyyy',
- formatMonthTitle: 'yyyy',
- maxDate: null,
- maxMode: 'year',
- minDate: null,
- minMode: 'day',
- monthColumns: 3,
- ngModelOptions: {},
- shortcutPropagation: false,
- showWeeks: true,
- yearColumns: 5,
- yearRows: 4
-})
-
-.controller('UibDatepickerController', ['$scope', '$element', '$attrs', '$parse', '$interpolate', '$locale', '$log', 'dateFilter', 'uibDatepickerConfig', '$datepickerLiteralWarning', '$datepickerSuppressError', 'uibDateParser',
- function($scope, $element, $attrs, $parse, $interpolate, $locale, $log, dateFilter, datepickerConfig, $datepickerLiteralWarning, $datepickerSuppressError, dateParser) {
- var self = this,
- ngModelCtrl = { $setViewValue: angular.noop }, // nullModelCtrl;
- ngModelOptions = {},
- watchListeners = [];
-
- $element.addClass('uib-datepicker');
- $attrs.$set('role', 'application');
-
- if (!$scope.datepickerOptions) {
- $scope.datepickerOptions = {};
- }
-
- // Modes chain
- this.modes = ['day', 'month', 'year'];
-
- [
- 'customClass',
- 'dateDisabled',
- 'datepickerMode',
- 'formatDay',
- 'formatDayHeader',
- 'formatDayTitle',
- 'formatMonth',
- 'formatMonthTitle',
- 'formatYear',
- 'maxDate',
- 'maxMode',
- 'minDate',
- 'minMode',
- 'monthColumns',
- 'showWeeks',
- 'shortcutPropagation',
- 'startingDay',
- 'yearColumns',
- 'yearRows'
- ].forEach(function(key) {
- switch (key) {
- case 'customClass':
- case 'dateDisabled':
- $scope[key] = $scope.datepickerOptions[key] || angular.noop;
- break;
- case 'datepickerMode':
- $scope.datepickerMode = angular.isDefined($scope.datepickerOptions.datepickerMode) ?
- $scope.datepickerOptions.datepickerMode : datepickerConfig.datepickerMode;
- break;
- case 'formatDay':
- case 'formatDayHeader':
- case 'formatDayTitle':
- case 'formatMonth':
- case 'formatMonthTitle':
- case 'formatYear':
- self[key] = angular.isDefined($scope.datepickerOptions[key]) ?
- $interpolate($scope.datepickerOptions[key])($scope.$parent) :
- datepickerConfig[key];
- break;
- case 'monthColumns':
- case 'showWeeks':
- case 'shortcutPropagation':
- case 'yearColumns':
- case 'yearRows':
- self[key] = angular.isDefined($scope.datepickerOptions[key]) ?
- $scope.datepickerOptions[key] : datepickerConfig[key];
- break;
- case 'startingDay':
- if (angular.isDefined($scope.datepickerOptions.startingDay)) {
- self.startingDay = $scope.datepickerOptions.startingDay;
- } else if (angular.isNumber(datepickerConfig.startingDay)) {
- self.startingDay = datepickerConfig.startingDay;
- } else {
- self.startingDay = ($locale.DATETIME_FORMATS.FIRSTDAYOFWEEK + 8) % 7;
- }
-
- break;
- case 'maxDate':
- case 'minDate':
- $scope.$watch('datepickerOptions.' + key, function(value) {
- if (value) {
- if (angular.isDate(value)) {
- self[key] = dateParser.fromTimezone(new Date(value), ngModelOptions.timezone);
- } else {
- if ($datepickerLiteralWarning) {
- $log.warn('Literal date support has been deprecated, please switch to date object usage');
- }
-
- self[key] = new Date(dateFilter(value, 'medium'));
- }
- } else {
- self[key] = datepickerConfig[key] ?
- dateParser.fromTimezone(new Date(datepickerConfig[key]), ngModelOptions.timezone) :
- null;
- }
-
- self.refreshView();
- });
-
- break;
- case 'maxMode':
- case 'minMode':
- if ($scope.datepickerOptions[key]) {
- $scope.$watch(function() { return $scope.datepickerOptions[key]; }, function(value) {
- self[key] = $scope[key] = angular.isDefined(value) ? value : $scope.datepickerOptions[key];
- if (key === 'minMode' && self.modes.indexOf($scope.datepickerOptions.datepickerMode) < self.modes.indexOf(self[key]) ||
- key === 'maxMode' && self.modes.indexOf($scope.datepickerOptions.datepickerMode) > self.modes.indexOf(self[key])) {
- $scope.datepickerMode = self[key];
- $scope.datepickerOptions.datepickerMode = self[key];
- }
- });
- } else {
- self[key] = $scope[key] = datepickerConfig[key] || null;
- }
-
- break;
- }
- });
-
- $scope.uniqueId = 'datepicker-' + $scope.$id + '-' + Math.floor(Math.random() * 10000);
-
- $scope.disabled = angular.isDefined($attrs.disabled) || false;
- if (angular.isDefined($attrs.ngDisabled)) {
- watchListeners.push($scope.$parent.$watch($attrs.ngDisabled, function(disabled) {
- $scope.disabled = disabled;
- self.refreshView();
- }));
- }
-
- $scope.isActive = function(dateObject) {
- if (self.compare(dateObject.date, self.activeDate) === 0) {
- $scope.activeDateId = dateObject.uid;
- return true;
- }
- return false;
- };
-
- this.init = function(ngModelCtrl_) {
- ngModelCtrl = ngModelCtrl_;
- ngModelOptions = ngModelCtrl_.$options ||
- $scope.datepickerOptions.ngModelOptions ||
- datepickerConfig.ngModelOptions;
- if ($scope.datepickerOptions.initDate) {
- self.activeDate = dateParser.fromTimezone($scope.datepickerOptions.initDate, ngModelOptions.timezone) || new Date();
- $scope.$watch('datepickerOptions.initDate', function(initDate) {
- if (initDate && (ngModelCtrl.$isEmpty(ngModelCtrl.$modelValue) || ngModelCtrl.$invalid)) {
- self.activeDate = dateParser.fromTimezone(initDate, ngModelOptions.timezone);
- self.refreshView();
- }
- });
- } else {
- self.activeDate = new Date();
- }
-
- var date = ngModelCtrl.$modelValue ? new Date(ngModelCtrl.$modelValue) : new Date();
- this.activeDate = !isNaN(date) ?
- dateParser.fromTimezone(date, ngModelOptions.timezone) :
- dateParser.fromTimezone(new Date(), ngModelOptions.timezone);
-
- ngModelCtrl.$render = function() {
- self.render();
- };
- };
-
- this.render = function() {
- if (ngModelCtrl.$viewValue) {
- var date = new Date(ngModelCtrl.$viewValue),
- isValid = !isNaN(date);
-
- if (isValid) {
- this.activeDate = dateParser.fromTimezone(date, ngModelOptions.timezone);
- } else if (!$datepickerSuppressError) {
- $log.error('Datepicker directive: "ng-model" value must be a Date object');
- }
- }
- this.refreshView();
- };
-
- this.refreshView = function() {
- if (this.element) {
- $scope.selectedDt = null;
- this._refreshView();
- if ($scope.activeDt) {
- $scope.activeDateId = $scope.activeDt.uid;
- }
-
- var date = ngModelCtrl.$viewValue ? new Date(ngModelCtrl.$viewValue) : null;
- date = dateParser.fromTimezone(date, ngModelOptions.timezone);
- ngModelCtrl.$setValidity('dateDisabled', !date ||
- this.element && !this.isDisabled(date));
- }
- };
-
- this.createDateObject = function(date, format) {
- var model = ngModelCtrl.$viewValue ? new Date(ngModelCtrl.$viewValue) : null;
- model = dateParser.fromTimezone(model, ngModelOptions.timezone);
- var today = new Date();
- today = dateParser.fromTimezone(today, ngModelOptions.timezone);
- var time = this.compare(date, today);
- var dt = {
- date: date,
- label: dateParser.filter(date, format),
- selected: model && this.compare(date, model) === 0,
- disabled: this.isDisabled(date),
- past: time < 0,
- current: time === 0,
- future: time > 0,
- customClass: this.customClass(date) || null
- };
-
- if (model && this.compare(date, model) === 0) {
- $scope.selectedDt = dt;
- }
-
- if (self.activeDate && this.compare(dt.date, self.activeDate) === 0) {
- $scope.activeDt = dt;
- }
-
- return dt;
- };
-
- this.isDisabled = function(date) {
- return $scope.disabled ||
- this.minDate && this.compare(date, this.minDate) < 0 ||
- this.maxDate && this.compare(date, this.maxDate) > 0 ||
- $scope.dateDisabled && $scope.dateDisabled({date: date, mode: $scope.datepickerMode});
- };
-
- this.customClass = function(date) {
- return $scope.customClass({date: date, mode: $scope.datepickerMode});
- };
-
- // Split array into smaller arrays
- this.split = function(arr, size) {
- var arrays = [];
- while (arr.length > 0) {
- arrays.push(arr.splice(0, size));
- }
- return arrays;
- };
-
- $scope.select = function(date) {
- if ($scope.datepickerMode === self.minMode) {
- var dt = ngModelCtrl.$viewValue ? dateParser.fromTimezone(new Date(ngModelCtrl.$viewValue), ngModelOptions.timezone) : new Date(0, 0, 0, 0, 0, 0, 0);
- dt.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());
- dt = dateParser.toTimezone(dt, ngModelOptions.timezone);
- ngModelCtrl.$setViewValue(dt);
- ngModelCtrl.$render();
- } else {
- self.activeDate = date;
- setMode(self.modes[self.modes.indexOf($scope.datepickerMode) - 1]);
-
- $scope.$emit('uib:datepicker.mode');
- }
-
- $scope.$broadcast('uib:datepicker.focus');
- };
-
- $scope.move = function(direction) {
- var year = self.activeDate.getFullYear() + direction * (self.step.years || 0),
- month = self.activeDate.getMonth() + direction * (self.step.months || 0);
- self.activeDate.setFullYear(year, month, 1);
- self.refreshView();
- };
-
- $scope.toggleMode = function(direction) {
- direction = direction || 1;
-
- if ($scope.datepickerMode === self.maxMode && direction === 1 ||
- $scope.datepickerMode === self.minMode && direction === -1) {
- return;
- }
-
- setMode(self.modes[self.modes.indexOf($scope.datepickerMode) + direction]);
-
- $scope.$emit('uib:datepicker.mode');
- };
-
- // Key event mapper
- $scope.keys = { 13: 'enter', 32: 'space', 33: 'pageup', 34: 'pagedown', 35: 'end', 36: 'home', 37: 'left', 38: 'up', 39: 'right', 40: 'down' };
-
- var focusElement = function() {
- self.element[0].focus();
- };
-
- // Listen for focus requests from popup directive
- $scope.$on('uib:datepicker.focus', focusElement);
-
- $scope.keydown = function(evt) {
- var key = $scope.keys[evt.which];
-
- if (!key || evt.shiftKey || evt.altKey || $scope.disabled) {
- return;
- }
-
- evt.preventDefault();
- if (!self.shortcutPropagation) {
- evt.stopPropagation();
- }
-
- if (key === 'enter' || key === 'space') {
- if (self.isDisabled(self.activeDate)) {
- return; // do nothing
- }
- $scope.select(self.activeDate);
- } else if (evt.ctrlKey && (key === 'up' || key === 'down')) {
- $scope.toggleMode(key === 'up' ? 1 : -1);
- } else {
- self.handleKeyDown(key, evt);
- self.refreshView();
- }
- };
-
- $element.on('keydown', function(evt) {
- $scope.$apply(function() {
- $scope.keydown(evt);
- });
- });
-
- $scope.$on('$destroy', function() {
- //Clear all watch listeners on destroy
- while (watchListeners.length) {
- watchListeners.shift()();
- }
- });
-
- function setMode(mode) {
- $scope.datepickerMode = mode;
- $scope.datepickerOptions.datepickerMode = mode;
- }
-}])
-
-.controller('UibDaypickerController', ['$scope', '$element', 'dateFilter', function(scope, $element, dateFilter) {
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
-
- this.step = { months: 1 };
- this.element = $element;
- function getDaysInMonth(year, month) {
- return month === 1 && year % 4 === 0 &&
- (year % 100 !== 0 || year % 400 === 0) ? 29 : DAYS_IN_MONTH[month];
- }
-
- this.init = function(ctrl) {
- angular.extend(ctrl, this);
- scope.showWeeks = ctrl.showWeeks;
- ctrl.refreshView();
- };
-
- this.getDates = function(startDate, n) {
- var dates = new Array(n), current = new Date(startDate), i = 0, date;
- while (i < n) {
- date = new Date(current);
- dates[i++] = date;
- current.setDate(current.getDate() + 1);
- }
- return dates;
- };
-
- this._refreshView = function() {
- var year = this.activeDate.getFullYear(),
- month = this.activeDate.getMonth(),
- firstDayOfMonth = new Date(this.activeDate);
-
- firstDayOfMonth.setFullYear(year, month, 1);
-
- var difference = this.startingDay - firstDayOfMonth.getDay(),
- numDisplayedFromPreviousMonth = difference > 0 ?
- 7 - difference : - difference,
- firstDate = new Date(firstDayOfMonth);
-
- if (numDisplayedFromPreviousMonth > 0) {
- firstDate.setDate(-numDisplayedFromPreviousMonth + 1);
- }
-
- // 42 is the number of days on a six-week calendar
- var days = this.getDates(firstDate, 42);
- for (var i = 0; i < 42; i ++) {
- days[i] = angular.extend(this.createDateObject(days[i], this.formatDay), {
- secondary: days[i].getMonth() !== month,
- uid: scope.uniqueId + '-' + i
- });
- }
-
- scope.labels = new Array(7);
- for (var j = 0; j < 7; j++) {
- scope.labels[j] = {
- abbr: dateFilter(days[j].date, this.formatDayHeader),
- full: dateFilter(days[j].date, 'EEEE')
- };
- }
-
- scope.title = dateFilter(this.activeDate, this.formatDayTitle);
- scope.rows = this.split(days, 7);
-
- if (scope.showWeeks) {
- scope.weekNumbers = [];
- var thursdayIndex = (4 + 7 - this.startingDay) % 7,
- numWeeks = scope.rows.length;
- for (var curWeek = 0; curWeek < numWeeks; curWeek++) {
- scope.weekNumbers.push(
- getISO8601WeekNumber(scope.rows[curWeek][thursdayIndex].date));
- }
- }
- };
-
- this.compare = function(date1, date2) {
- var _date1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate());
- var _date2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
- _date1.setFullYear(date1.getFullYear());
- _date2.setFullYear(date2.getFullYear());
- return _date1 - _date2;
- };
-
- function getISO8601WeekNumber(date) {
- var checkDate = new Date(date);
- checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7)); // Thursday
- var time = checkDate.getTime();
- checkDate.setMonth(0); // Compare with Jan 1
- checkDate.setDate(1);
- return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;
- }
-
- this.handleKeyDown = function(key, evt) {
- var date = this.activeDate.getDate();
-
- if (key === 'left') {
- date = date - 1;
- } else if (key === 'up') {
- date = date - 7;
- } else if (key === 'right') {
- date = date + 1;
- } else if (key === 'down') {
- date = date + 7;
- } else if (key === 'pageup' || key === 'pagedown') {
- var month = this.activeDate.getMonth() + (key === 'pageup' ? - 1 : 1);
- this.activeDate.setMonth(month, 1);
- date = Math.min(getDaysInMonth(this.activeDate.getFullYear(), this.activeDate.getMonth()), date);
- } else if (key === 'home') {
- date = 1;
- } else if (key === 'end') {
- date = getDaysInMonth(this.activeDate.getFullYear(), this.activeDate.getMonth());
- }
- this.activeDate.setDate(date);
- };
-}])
-
-.controller('UibMonthpickerController', ['$scope', '$element', 'dateFilter', function(scope, $element, dateFilter) {
- this.step = { years: 1 };
- this.element = $element;
-
- this.init = function(ctrl) {
- angular.extend(ctrl, this);
- ctrl.refreshView();
- };
-
- this._refreshView = function() {
- var months = new Array(12),
- year = this.activeDate.getFullYear(),
- date;
-
- for (var i = 0; i < 12; i++) {
- date = new Date(this.activeDate);
- date.setFullYear(year, i, 1);
- months[i] = angular.extend(this.createDateObject(date, this.formatMonth), {
- uid: scope.uniqueId + '-' + i
- });
- }
-
- scope.title = dateFilter(this.activeDate, this.formatMonthTitle);
- scope.rows = this.split(months, this.monthColumns);
- scope.yearHeaderColspan = this.monthColumns > 3 ? this.monthColumns - 2 : 1;
- };
-
- this.compare = function(date1, date2) {
- var _date1 = new Date(date1.getFullYear(), date1.getMonth());
- var _date2 = new Date(date2.getFullYear(), date2.getMonth());
- _date1.setFullYear(date1.getFullYear());
- _date2.setFullYear(date2.getFullYear());
- return _date1 - _date2;
- };
-
- this.handleKeyDown = function(key, evt) {
- var date = this.activeDate.getMonth();
-
- if (key === 'left') {
- date = date - 1;
- } else if (key === 'up') {
- date = date - this.monthColumns;
- } else if (key === 'right') {
- date = date + 1;
- } else if (key === 'down') {
- date = date + this.monthColumns;
- } else if (key === 'pageup' || key === 'pagedown') {
- var year = this.activeDate.getFullYear() + (key === 'pageup' ? - 1 : 1);
- this.activeDate.setFullYear(year);
- } else if (key === 'home') {
- date = 0;
- } else if (key === 'end') {
- date = 11;
- }
- this.activeDate.setMonth(date);
- };
-}])
-
-.controller('UibYearpickerController', ['$scope', '$element', 'dateFilter', function(scope, $element, dateFilter) {
- var columns, range;
- this.element = $element;
-
- function getStartingYear(year) {
- return parseInt((year - 1) / range, 10) * range + 1;
- }
-
- this.yearpickerInit = function() {
- columns = this.yearColumns;
- range = this.yearRows * columns;
- this.step = { years: range };
- };
-
- this._refreshView = function() {
- var years = new Array(range), date;
-
- for (var i = 0, start = getStartingYear(this.activeDate.getFullYear()); i < range; i++) {
- date = new Date(this.activeDate);
- date.setFullYear(start + i, 0, 1);
- years[i] = angular.extend(this.createDateObject(date, this.formatYear), {
- uid: scope.uniqueId + '-' + i
- });
- }
-
- scope.title = [years[0].label, years[range - 1].label].join(' - ');
- scope.rows = this.split(years, columns);
- scope.columns = columns;
- };
-
- this.compare = function(date1, date2) {
- return date1.getFullYear() - date2.getFullYear();
- };
-
- this.handleKeyDown = function(key, evt) {
- var date = this.activeDate.getFullYear();
-
- if (key === 'left') {
- date = date - 1;
- } else if (key === 'up') {
- date = date - columns;
- } else if (key === 'right') {
- date = date + 1;
- } else if (key === 'down') {
- date = date + columns;
- } else if (key === 'pageup' || key === 'pagedown') {
- date += (key === 'pageup' ? - 1 : 1) * range;
- } else if (key === 'home') {
- date = getStartingYear(this.activeDate.getFullYear());
- } else if (key === 'end') {
- date = getStartingYear(this.activeDate.getFullYear()) + range - 1;
- }
- this.activeDate.setFullYear(date);
- };
-}])
-
-.directive('uibDatepicker', function() {
- return {
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepicker/datepicker.html';
- },
- scope: {
- datepickerOptions: '=?'
- },
- require: ['uibDatepicker', '^ngModel'],
- restrict: 'A',
- controller: 'UibDatepickerController',
- controllerAs: 'datepicker',
- link: function(scope, element, attrs, ctrls) {
- var datepickerCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- datepickerCtrl.init(ngModelCtrl);
- }
- };
-})
-
-.directive('uibDaypicker', function() {
- return {
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepicker/day.html';
- },
- require: ['^uibDatepicker', 'uibDaypicker'],
- restrict: 'A',
- controller: 'UibDaypickerController',
- link: function(scope, element, attrs, ctrls) {
- var datepickerCtrl = ctrls[0],
- daypickerCtrl = ctrls[1];
-
- daypickerCtrl.init(datepickerCtrl);
- }
- };
-})
-
-.directive('uibMonthpicker', function() {
- return {
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepicker/month.html';
- },
- require: ['^uibDatepicker', 'uibMonthpicker'],
- restrict: 'A',
- controller: 'UibMonthpickerController',
- link: function(scope, element, attrs, ctrls) {
- var datepickerCtrl = ctrls[0],
- monthpickerCtrl = ctrls[1];
-
- monthpickerCtrl.init(datepickerCtrl);
- }
- };
-})
-
-.directive('uibYearpicker', function() {
- return {
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepicker/year.html';
- },
- require: ['^uibDatepicker', 'uibYearpicker'],
- restrict: 'A',
- controller: 'UibYearpickerController',
- link: function(scope, element, attrs, ctrls) {
- var ctrl = ctrls[0];
- angular.extend(ctrl, ctrls[1]);
- ctrl.yearpickerInit();
-
- ctrl.refreshView();
- }
- };
-});
-
-angular.module('ui.bootstrap.position', [])
-
-/**
- * A set of utility methods for working with the DOM.
- * It is meant to be used where we need to absolute-position elements in
- * relation to another element (this is the case for tooltips, popovers,
- * typeahead suggestions etc.).
- */
- .factory('$uibPosition', ['$document', '$window', function($document, $window) {
- /**
- * Used by scrollbarWidth() function to cache scrollbar's width.
- * Do not access this variable directly, use scrollbarWidth() instead.
- */
- var SCROLLBAR_WIDTH;
- /**
- * scrollbar on body and html element in IE and Edge overlay
- * content and should be considered 0 width.
- */
- var BODY_SCROLLBAR_WIDTH;
- var OVERFLOW_REGEX = {
- normal: /(auto|scroll)/,
- hidden: /(auto|scroll|hidden)/
- };
- var PLACEMENT_REGEX = {
- auto: /\s?auto?\s?/i,
- primary: /^(top|bottom|left|right)$/,
- secondary: /^(top|bottom|left|right|center)$/,
- vertical: /^(top|bottom)$/
- };
- var BODY_REGEX = /(HTML|BODY)/;
-
- return {
-
- /**
- * Provides a raw DOM element from a jQuery/jQLite element.
- *
- * @param {element} elem - The element to convert.
- *
- * @returns {element} A HTML element.
- */
- getRawNode: function(elem) {
- return elem.nodeName ? elem : elem[0] || elem;
- },
-
- /**
- * Provides a parsed number for a style property. Strips
- * units and casts invalid numbers to 0.
- *
- * @param {string} value - The style value to parse.
- *
- * @returns {number} A valid number.
- */
- parseStyle: function(value) {
- value = parseFloat(value);
- return isFinite(value) ? value : 0;
- },
-
- /**
- * Provides the closest positioned ancestor.
- *
- * @param {element} element - The element to get the offest parent for.
- *
- * @returns {element} The closest positioned ancestor.
- */
- offsetParent: function(elem) {
- elem = this.getRawNode(elem);
-
- var offsetParent = elem.offsetParent || $document[0].documentElement;
-
- function isStaticPositioned(el) {
- return ($window.getComputedStyle(el).position || 'static') === 'static';
- }
-
- while (offsetParent && offsetParent !== $document[0].documentElement && isStaticPositioned(offsetParent)) {
- offsetParent = offsetParent.offsetParent;
- }
-
- return offsetParent || $document[0].documentElement;
- },
-
- /**
- * Provides the scrollbar width, concept from TWBS measureScrollbar()
- * function in https://github.com/twbs/bootstrap/blob/master/js/modal.js
- * In IE and Edge, scollbar on body and html element overlay and should
- * return a width of 0.
- *
- * @returns {number} The width of the browser scollbar.
- */
- scrollbarWidth: function(isBody) {
- if (isBody) {
- if (angular.isUndefined(BODY_SCROLLBAR_WIDTH)) {
- var bodyElem = $document.find('body');
- bodyElem.addClass('uib-position-body-scrollbar-measure');
- BODY_SCROLLBAR_WIDTH = $window.innerWidth - bodyElem[0].clientWidth;
- BODY_SCROLLBAR_WIDTH = isFinite(BODY_SCROLLBAR_WIDTH) ? BODY_SCROLLBAR_WIDTH : 0;
- bodyElem.removeClass('uib-position-body-scrollbar-measure');
- }
- return BODY_SCROLLBAR_WIDTH;
- }
-
- if (angular.isUndefined(SCROLLBAR_WIDTH)) {
- var scrollElem = angular.element('<div class="uib-position-scrollbar-measure"></div>');
- $document.find('body').append(scrollElem);
- SCROLLBAR_WIDTH = scrollElem[0].offsetWidth - scrollElem[0].clientWidth;
- SCROLLBAR_WIDTH = isFinite(SCROLLBAR_WIDTH) ? SCROLLBAR_WIDTH : 0;
- scrollElem.remove();
- }
-
- return SCROLLBAR_WIDTH;
- },
-
- /**
- * Provides the padding required on an element to replace the scrollbar.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**scrollbarWidth**: the width of the scrollbar</li>
- * <li>**widthOverflow**: whether the the width is overflowing</li>
- * <li>**right**: the amount of right padding on the element needed to replace the scrollbar</li>
- * <li>**rightOriginal**: the amount of right padding currently on the element</li>
- * <li>**heightOverflow**: whether the the height is overflowing</li>
- * <li>**bottom**: the amount of bottom padding on the element needed to replace the scrollbar</li>
- * <li>**bottomOriginal**: the amount of bottom padding currently on the element</li>
- * </ul>
- */
- scrollbarPadding: function(elem) {
- elem = this.getRawNode(elem);
-
- var elemStyle = $window.getComputedStyle(elem);
- var paddingRight = this.parseStyle(elemStyle.paddingRight);
- var paddingBottom = this.parseStyle(elemStyle.paddingBottom);
- var scrollParent = this.scrollParent(elem, false, true);
- var scrollbarWidth = this.scrollbarWidth(BODY_REGEX.test(scrollParent.tagName));
-
- return {
- scrollbarWidth: scrollbarWidth,
- widthOverflow: scrollParent.scrollWidth > scrollParent.clientWidth,
- right: paddingRight + scrollbarWidth,
- originalRight: paddingRight,
- heightOverflow: scrollParent.scrollHeight > scrollParent.clientHeight,
- bottom: paddingBottom + scrollbarWidth,
- originalBottom: paddingBottom
- };
- },
-
- /**
- * Checks to see if the element is scrollable.
- *
- * @param {element} elem - The element to check.
- * @param {boolean=} [includeHidden=false] - Should scroll style of 'hidden' be considered,
- * default is false.
- *
- * @returns {boolean} Whether the element is scrollable.
- */
- isScrollable: function(elem, includeHidden) {
- elem = this.getRawNode(elem);
-
- var overflowRegex = includeHidden ? OVERFLOW_REGEX.hidden : OVERFLOW_REGEX.normal;
- var elemStyle = $window.getComputedStyle(elem);
- return overflowRegex.test(elemStyle.overflow + elemStyle.overflowY + elemStyle.overflowX);
- },
-
- /**
- * Provides the closest scrollable ancestor.
- * A port of the jQuery UI scrollParent method:
- * https://github.com/jquery/jquery-ui/blob/master/ui/scroll-parent.js
- *
- * @param {element} elem - The element to find the scroll parent of.
- * @param {boolean=} [includeHidden=false] - Should scroll style of 'hidden' be considered,
- * default is false.
- * @param {boolean=} [includeSelf=false] - Should the element being passed be
- * included in the scrollable llokup.
- *
- * @returns {element} A HTML element.
- */
- scrollParent: function(elem, includeHidden, includeSelf) {
- elem = this.getRawNode(elem);
-
- var overflowRegex = includeHidden ? OVERFLOW_REGEX.hidden : OVERFLOW_REGEX.normal;
- var documentEl = $document[0].documentElement;
- var elemStyle = $window.getComputedStyle(elem);
- if (includeSelf && overflowRegex.test(elemStyle.overflow + elemStyle.overflowY + elemStyle.overflowX)) {
- return elem;
- }
- var excludeStatic = elemStyle.position === 'absolute';
- var scrollParent = elem.parentElement || documentEl;
-
- if (scrollParent === documentEl || elemStyle.position === 'fixed') {
- return documentEl;
- }
-
- while (scrollParent.parentElement && scrollParent !== documentEl) {
- var spStyle = $window.getComputedStyle(scrollParent);
- if (excludeStatic && spStyle.position !== 'static') {
- excludeStatic = false;
- }
-
- if (!excludeStatic && overflowRegex.test(spStyle.overflow + spStyle.overflowY + spStyle.overflowX)) {
- break;
- }
- scrollParent = scrollParent.parentElement;
- }
-
- return scrollParent;
- },
-
- /**
- * Provides read-only equivalent of jQuery's position function:
- * http://api.jquery.com/position/ - distance to closest positioned
- * ancestor. Does not account for margins by default like jQuery position.
- *
- * @param {element} elem - The element to caclulate the position on.
- * @param {boolean=} [includeMargins=false] - Should margins be accounted
- * for, default is false.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**width**: the width of the element</li>
- * <li>**height**: the height of the element</li>
- * <li>**top**: distance to top edge of offset parent</li>
- * <li>**left**: distance to left edge of offset parent</li>
- * </ul>
- */
- position: function(elem, includeMagins) {
- elem = this.getRawNode(elem);
-
- var elemOffset = this.offset(elem);
- if (includeMagins) {
- var elemStyle = $window.getComputedStyle(elem);
- elemOffset.top -= this.parseStyle(elemStyle.marginTop);
- elemOffset.left -= this.parseStyle(elemStyle.marginLeft);
- }
- var parent = this.offsetParent(elem);
- var parentOffset = {top: 0, left: 0};
-
- if (parent !== $document[0].documentElement) {
- parentOffset = this.offset(parent);
- parentOffset.top += parent.clientTop - parent.scrollTop;
- parentOffset.left += parent.clientLeft - parent.scrollLeft;
- }
-
- return {
- width: Math.round(angular.isNumber(elemOffset.width) ? elemOffset.width : elem.offsetWidth),
- height: Math.round(angular.isNumber(elemOffset.height) ? elemOffset.height : elem.offsetHeight),
- top: Math.round(elemOffset.top - parentOffset.top),
- left: Math.round(elemOffset.left - parentOffset.left)
- };
- },
-
- /**
- * Provides read-only equivalent of jQuery's offset function:
- * http://api.jquery.com/offset/ - distance to viewport. Does
- * not account for borders, margins, or padding on the body
- * element.
- *
- * @param {element} elem - The element to calculate the offset on.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**width**: the width of the element</li>
- * <li>**height**: the height of the element</li>
- * <li>**top**: distance to top edge of viewport</li>
- * <li>**right**: distance to bottom edge of viewport</li>
- * </ul>
- */
- offset: function(elem) {
- elem = this.getRawNode(elem);
-
- var elemBCR = elem.getBoundingClientRect();
- return {
- width: Math.round(angular.isNumber(elemBCR.width) ? elemBCR.width : elem.offsetWidth),
- height: Math.round(angular.isNumber(elemBCR.height) ? elemBCR.height : elem.offsetHeight),
- top: Math.round(elemBCR.top + ($window.pageYOffset || $document[0].documentElement.scrollTop)),
- left: Math.round(elemBCR.left + ($window.pageXOffset || $document[0].documentElement.scrollLeft))
- };
- },
-
- /**
- * Provides offset distance to the closest scrollable ancestor
- * or viewport. Accounts for border and scrollbar width.
- *
- * Right and bottom dimensions represent the distance to the
- * respective edge of the viewport element. If the element
- * edge extends beyond the viewport, a negative value will be
- * reported.
- *
- * @param {element} elem - The element to get the viewport offset for.
- * @param {boolean=} [useDocument=false] - Should the viewport be the document element instead
- * of the first scrollable element, default is false.
- * @param {boolean=} [includePadding=true] - Should the padding on the offset parent element
- * be accounted for, default is true.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**top**: distance to the top content edge of viewport element</li>
- * <li>**bottom**: distance to the bottom content edge of viewport element</li>
- * <li>**left**: distance to the left content edge of viewport element</li>
- * <li>**right**: distance to the right content edge of viewport element</li>
- * </ul>
- */
- viewportOffset: function(elem, useDocument, includePadding) {
- elem = this.getRawNode(elem);
- includePadding = includePadding !== false ? true : false;
-
- var elemBCR = elem.getBoundingClientRect();
- var offsetBCR = {top: 0, left: 0, bottom: 0, right: 0};
-
- var offsetParent = useDocument ? $document[0].documentElement : this.scrollParent(elem);
- var offsetParentBCR = offsetParent.getBoundingClientRect();
-
- offsetBCR.top = offsetParentBCR.top + offsetParent.clientTop;
- offsetBCR.left = offsetParentBCR.left + offsetParent.clientLeft;
- if (offsetParent === $document[0].documentElement) {
- offsetBCR.top += $window.pageYOffset;
- offsetBCR.left += $window.pageXOffset;
- }
- offsetBCR.bottom = offsetBCR.top + offsetParent.clientHeight;
- offsetBCR.right = offsetBCR.left + offsetParent.clientWidth;
-
- if (includePadding) {
- var offsetParentStyle = $window.getComputedStyle(offsetParent);
- offsetBCR.top += this.parseStyle(offsetParentStyle.paddingTop);
- offsetBCR.bottom -= this.parseStyle(offsetParentStyle.paddingBottom);
- offsetBCR.left += this.parseStyle(offsetParentStyle.paddingLeft);
- offsetBCR.right -= this.parseStyle(offsetParentStyle.paddingRight);
- }
-
- return {
- top: Math.round(elemBCR.top - offsetBCR.top),
- bottom: Math.round(offsetBCR.bottom - elemBCR.bottom),
- left: Math.round(elemBCR.left - offsetBCR.left),
- right: Math.round(offsetBCR.right - elemBCR.right)
- };
- },
-
- /**
- * Provides an array of placement values parsed from a placement string.
- * Along with the 'auto' indicator, supported placement strings are:
- * <ul>
- * <li>top: element on top, horizontally centered on host element.</li>
- * <li>top-left: element on top, left edge aligned with host element left edge.</li>
- * <li>top-right: element on top, lerightft edge aligned with host element right edge.</li>
- * <li>bottom: element on bottom, horizontally centered on host element.</li>
- * <li>bottom-left: element on bottom, left edge aligned with host element left edge.</li>
- * <li>bottom-right: element on bottom, right edge aligned with host element right edge.</li>
- * <li>left: element on left, vertically centered on host element.</li>
- * <li>left-top: element on left, top edge aligned with host element top edge.</li>
- * <li>left-bottom: element on left, bottom edge aligned with host element bottom edge.</li>
- * <li>right: element on right, vertically centered on host element.</li>
- * <li>right-top: element on right, top edge aligned with host element top edge.</li>
- * <li>right-bottom: element on right, bottom edge aligned with host element bottom edge.</li>
- * </ul>
- * A placement string with an 'auto' indicator is expected to be
- * space separated from the placement, i.e: 'auto bottom-left' If
- * the primary and secondary placement values do not match 'top,
- * bottom, left, right' then 'top' will be the primary placement and
- * 'center' will be the secondary placement. If 'auto' is passed, true
- * will be returned as the 3rd value of the array.
- *
- * @param {string} placement - The placement string to parse.
- *
- * @returns {array} An array with the following values
- * <ul>
- * <li>**[0]**: The primary placement.</li>
- * <li>**[1]**: The secondary placement.</li>
- * <li>**[2]**: If auto is passed: true, else undefined.</li>
- * </ul>
- */
- parsePlacement: function(placement) {
- var autoPlace = PLACEMENT_REGEX.auto.test(placement);
- if (autoPlace) {
- placement = placement.replace(PLACEMENT_REGEX.auto, '');
- }
-
- placement = placement.split('-');
-
- placement[0] = placement[0] || 'top';
- if (!PLACEMENT_REGEX.primary.test(placement[0])) {
- placement[0] = 'top';
- }
-
- placement[1] = placement[1] || 'center';
- if (!PLACEMENT_REGEX.secondary.test(placement[1])) {
- placement[1] = 'center';
- }
-
- if (autoPlace) {
- placement[2] = true;
- } else {
- placement[2] = false;
- }
-
- return placement;
- },
-
- /**
- * Provides coordinates for an element to be positioned relative to
- * another element. Passing 'auto' as part of the placement parameter
- * will enable smart placement - where the element fits. i.e:
- * 'auto left-top' will check to see if there is enough space to the left
- * of the hostElem to fit the targetElem, if not place right (same for secondary
- * top placement). Available space is calculated using the viewportOffset
- * function.
- *
- * @param {element} hostElem - The element to position against.
- * @param {element} targetElem - The element to position.
- * @param {string=} [placement=top] - The placement for the targetElem,
- * default is 'top'. 'center' is assumed as secondary placement for
- * 'top', 'left', 'right', and 'bottom' placements. Available placements are:
- * <ul>
- * <li>top</li>
- * <li>top-right</li>
- * <li>top-left</li>
- * <li>bottom</li>
- * <li>bottom-left</li>
- * <li>bottom-right</li>
- * <li>left</li>
- * <li>left-top</li>
- * <li>left-bottom</li>
- * <li>right</li>
- * <li>right-top</li>
- * <li>right-bottom</li>
- * </ul>
- * @param {boolean=} [appendToBody=false] - Should the top and left values returned
- * be calculated from the body element, default is false.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**top**: Value for targetElem top.</li>
- * <li>**left**: Value for targetElem left.</li>
- * <li>**placement**: The resolved placement.</li>
- * </ul>
- */
- positionElements: function(hostElem, targetElem, placement, appendToBody) {
- hostElem = this.getRawNode(hostElem);
- targetElem = this.getRawNode(targetElem);
-
- // need to read from prop to support tests.
- var targetWidth = angular.isDefined(targetElem.offsetWidth) ? targetElem.offsetWidth : targetElem.prop('offsetWidth');
- var targetHeight = angular.isDefined(targetElem.offsetHeight) ? targetElem.offsetHeight : targetElem.prop('offsetHeight');
-
- placement = this.parsePlacement(placement);
-
- var hostElemPos = appendToBody ? this.offset(hostElem) : this.position(hostElem);
- var targetElemPos = {top: 0, left: 0, placement: ''};
-
- if (placement[2]) {
- var viewportOffset = this.viewportOffset(hostElem, appendToBody);
-
- var targetElemStyle = $window.getComputedStyle(targetElem);
- var adjustedSize = {
- width: targetWidth + Math.round(Math.abs(this.parseStyle(targetElemStyle.marginLeft) + this.parseStyle(targetElemStyle.marginRight))),
- height: targetHeight + Math.round(Math.abs(this.parseStyle(targetElemStyle.marginTop) + this.parseStyle(targetElemStyle.marginBottom)))
- };
-
- placement[0] = placement[0] === 'top' && adjustedSize.height > viewportOffset.top && adjustedSize.height <= viewportOffset.bottom ? 'bottom' :
- placement[0] === 'bottom' && adjustedSize.height > viewportOffset.bottom && adjustedSize.height <= viewportOffset.top ? 'top' :
- placement[0] === 'left' && adjustedSize.width > viewportOffset.left && adjustedSize.width <= viewportOffset.right ? 'right' :
- placement[0] === 'right' && adjustedSize.width > viewportOffset.right && adjustedSize.width <= viewportOffset.left ? 'left' :
- placement[0];
-
- placement[1] = placement[1] === 'top' && adjustedSize.height - hostElemPos.height > viewportOffset.bottom && adjustedSize.height - hostElemPos.height <= viewportOffset.top ? 'bottom' :
- placement[1] === 'bottom' && adjustedSize.height - hostElemPos.height > viewportOffset.top && adjustedSize.height - hostElemPos.height <= viewportOffset.bottom ? 'top' :
- placement[1] === 'left' && adjustedSize.width - hostElemPos.width > viewportOffset.right && adjustedSize.width - hostElemPos.width <= viewportOffset.left ? 'right' :
- placement[1] === 'right' && adjustedSize.width - hostElemPos.width > viewportOffset.left && adjustedSize.width - hostElemPos.width <= viewportOffset.right ? 'left' :
- placement[1];
-
- if (placement[1] === 'center') {
- if (PLACEMENT_REGEX.vertical.test(placement[0])) {
- var xOverflow = hostElemPos.width / 2 - targetWidth / 2;
- if (viewportOffset.left + xOverflow < 0 && adjustedSize.width - hostElemPos.width <= viewportOffset.right) {
- placement[1] = 'left';
- } else if (viewportOffset.right + xOverflow < 0 && adjustedSize.width - hostElemPos.width <= viewportOffset.left) {
- placement[1] = 'right';
- }
- } else {
- var yOverflow = hostElemPos.height / 2 - adjustedSize.height / 2;
- if (viewportOffset.top + yOverflow < 0 && adjustedSize.height - hostElemPos.height <= viewportOffset.bottom) {
- placement[1] = 'top';
- } else if (viewportOffset.bottom + yOverflow < 0 && adjustedSize.height - hostElemPos.height <= viewportOffset.top) {
- placement[1] = 'bottom';
- }
- }
- }
- }
-
- switch (placement[0]) {
- case 'top':
- targetElemPos.top = hostElemPos.top - targetHeight;
- break;
- case 'bottom':
- targetElemPos.top = hostElemPos.top + hostElemPos.height;
- break;
- case 'left':
- targetElemPos.left = hostElemPos.left - targetWidth;
- break;
- case 'right':
- targetElemPos.left = hostElemPos.left + hostElemPos.width;
- break;
- }
-
- switch (placement[1]) {
- case 'top':
- targetElemPos.top = hostElemPos.top;
- break;
- case 'bottom':
- targetElemPos.top = hostElemPos.top + hostElemPos.height - targetHeight;
- break;
- case 'left':
- targetElemPos.left = hostElemPos.left;
- break;
- case 'right':
- targetElemPos.left = hostElemPos.left + hostElemPos.width - targetWidth;
- break;
- case 'center':
- if (PLACEMENT_REGEX.vertical.test(placement[0])) {
- targetElemPos.left = hostElemPos.left + hostElemPos.width / 2 - targetWidth / 2;
- } else {
- targetElemPos.top = hostElemPos.top + hostElemPos.height / 2 - targetHeight / 2;
- }
- break;
- }
-
- targetElemPos.top = Math.round(targetElemPos.top);
- targetElemPos.left = Math.round(targetElemPos.left);
- targetElemPos.placement = placement[1] === 'center' ? placement[0] : placement[0] + '-' + placement[1];
-
- return targetElemPos;
- },
-
- /**
- * Provides a way to adjust the top positioning after first
- * render to correctly align element to top after content
- * rendering causes resized element height
- *
- * @param {array} placementClasses - The array of strings of classes
- * element should have.
- * @param {object} containerPosition - The object with container
- * position information
- * @param {number} initialHeight - The initial height for the elem.
- * @param {number} currentHeight - The current height for the elem.
- */
- adjustTop: function(placementClasses, containerPosition, initialHeight, currentHeight) {
- if (placementClasses.indexOf('top') !== -1 && initialHeight !== currentHeight) {
- return {
- top: containerPosition.top - currentHeight + 'px'
- };
- }
- },
-
- /**
- * Provides a way for positioning tooltip & dropdown
- * arrows when using placement options beyond the standard
- * left, right, top, or bottom.
- *
- * @param {element} elem - The tooltip/dropdown element.
- * @param {string} placement - The placement for the elem.
- */
- positionArrow: function(elem, placement) {
- elem = this.getRawNode(elem);
-
- var innerElem = elem.querySelector('.tooltip-inner, .popover-inner');
- if (!innerElem) {
- return;
- }
-
- var isTooltip = angular.element(innerElem).hasClass('tooltip-inner');
-
- var arrowElem = isTooltip ? elem.querySelector('.tooltip-arrow') : elem.querySelector('.arrow');
- if (!arrowElem) {
- return;
- }
-
- var arrowCss = {
- top: '',
- bottom: '',
- left: '',
- right: ''
- };
-
- placement = this.parsePlacement(placement);
- if (placement[1] === 'center') {
- // no adjustment necessary - just reset styles
- angular.element(arrowElem).css(arrowCss);
- return;
- }
-
- var borderProp = 'border-' + placement[0] + '-width';
- var borderWidth = $window.getComputedStyle(arrowElem)[borderProp];
-
- var borderRadiusProp = 'border-';
- if (PLACEMENT_REGEX.vertical.test(placement[0])) {
- borderRadiusProp += placement[0] + '-' + placement[1];
- } else {
- borderRadiusProp += placement[1] + '-' + placement[0];
- }
- borderRadiusProp += '-radius';
- var borderRadius = $window.getComputedStyle(isTooltip ? innerElem : elem)[borderRadiusProp];
-
- switch (placement[0]) {
- case 'top':
- arrowCss.bottom = isTooltip ? '0' : '-' + borderWidth;
- break;
- case 'bottom':
- arrowCss.top = isTooltip ? '0' : '-' + borderWidth;
- break;
- case 'left':
- arrowCss.right = isTooltip ? '0' : '-' + borderWidth;
- break;
- case 'right':
- arrowCss.left = isTooltip ? '0' : '-' + borderWidth;
- break;
- }
-
- arrowCss[placement[1]] = borderRadius;
-
- angular.element(arrowElem).css(arrowCss);
- }
- };
- }]);
-
-angular.module('ui.bootstrap.datepickerPopup', ['ui.bootstrap.datepicker', 'ui.bootstrap.position'])
-
-.value('$datepickerPopupLiteralWarning', true)
-
-.constant('uibDatepickerPopupConfig', {
- altInputFormats: [],
- appendToBody: false,
- clearText: 'Clear',
- closeOnDateSelection: true,
- closeText: 'Done',
- currentText: 'Today',
- datepickerPopup: 'yyyy-MM-dd',
- datepickerPopupTemplateUrl: 'uib/template/datepickerPopup/popup.html',
- datepickerTemplateUrl: 'uib/template/datepicker/datepicker.html',
- html5Types: {
- date: 'yyyy-MM-dd',
- 'datetime-local': 'yyyy-MM-ddTHH:mm:ss.sss',
- 'month': 'yyyy-MM'
- },
- onOpenFocus: true,
- showButtonBar: true,
- placement: 'auto bottom-left'
-})
-
-.controller('UibDatepickerPopupController', ['$scope', '$element', '$attrs', '$compile', '$log', '$parse', '$window', '$document', '$rootScope', '$uibPosition', 'dateFilter', 'uibDateParser', 'uibDatepickerPopupConfig', '$timeout', 'uibDatepickerConfig', '$datepickerPopupLiteralWarning',
-function($scope, $element, $attrs, $compile, $log, $parse, $window, $document, $rootScope, $position, dateFilter, dateParser, datepickerPopupConfig, $timeout, datepickerConfig, $datepickerPopupLiteralWarning) {
- var cache = {},
- isHtml5DateInput = false;
- var dateFormat, closeOnDateSelection, appendToBody, onOpenFocus,
- datepickerPopupTemplateUrl, datepickerTemplateUrl, popupEl, datepickerEl, scrollParentEl,
- ngModel, ngModelOptions, $popup, altInputFormats, watchListeners = [];
-
- this.init = function(_ngModel_) {
- ngModel = _ngModel_;
- ngModelOptions = angular.isObject(_ngModel_.$options) ?
- _ngModel_.$options :
- {
- timezone: null
- };
- closeOnDateSelection = angular.isDefined($attrs.closeOnDateSelection) ?
- $scope.$parent.$eval($attrs.closeOnDateSelection) :
- datepickerPopupConfig.closeOnDateSelection;
- appendToBody = angular.isDefined($attrs.datepickerAppendToBody) ?
- $scope.$parent.$eval($attrs.datepickerAppendToBody) :
- datepickerPopupConfig.appendToBody;
- onOpenFocus = angular.isDefined($attrs.onOpenFocus) ?
- $scope.$parent.$eval($attrs.onOpenFocus) : datepickerPopupConfig.onOpenFocus;
- datepickerPopupTemplateUrl = angular.isDefined($attrs.datepickerPopupTemplateUrl) ?
- $attrs.datepickerPopupTemplateUrl :
- datepickerPopupConfig.datepickerPopupTemplateUrl;
- datepickerTemplateUrl = angular.isDefined($attrs.datepickerTemplateUrl) ?
- $attrs.datepickerTemplateUrl : datepickerPopupConfig.datepickerTemplateUrl;
- altInputFormats = angular.isDefined($attrs.altInputFormats) ?
- $scope.$parent.$eval($attrs.altInputFormats) :
- datepickerPopupConfig.altInputFormats;
-
- $scope.showButtonBar = angular.isDefined($attrs.showButtonBar) ?
- $scope.$parent.$eval($attrs.showButtonBar) :
- datepickerPopupConfig.showButtonBar;
-
- if (datepickerPopupConfig.html5Types[$attrs.type]) {
- dateFormat = datepickerPopupConfig.html5Types[$attrs.type];
- isHtml5DateInput = true;
- } else {
- dateFormat = $attrs.uibDatepickerPopup || datepickerPopupConfig.datepickerPopup;
- $attrs.$observe('uibDatepickerPopup', function(value, oldValue) {
- var newDateFormat = value || datepickerPopupConfig.datepickerPopup;
- // Invalidate the $modelValue to ensure that formatters re-run
- // FIXME: Refactor when PR is merged: https://github.com/angular/angular.js/pull/10764
- if (newDateFormat !== dateFormat) {
- dateFormat = newDateFormat;
- ngModel.$modelValue = null;
-
- if (!dateFormat) {
- throw new Error('uibDatepickerPopup must have a date format specified.');
- }
- }
- });
- }
-
- if (!dateFormat) {
- throw new Error('uibDatepickerPopup must have a date format specified.');
- }
-
- if (isHtml5DateInput && $attrs.uibDatepickerPopup) {
- throw new Error('HTML5 date input types do not support custom formats.');
- }
-
- // popup element used to display calendar
- popupEl = angular.element('<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>');
-
- popupEl.attr({
- 'ng-model': 'date',
- 'ng-change': 'dateSelection(date)',
- 'template-url': datepickerPopupTemplateUrl
- });
-
- // datepicker element
- datepickerEl = angular.element(popupEl.children()[0]);
- datepickerEl.attr('template-url', datepickerTemplateUrl);
-
- if (!$scope.datepickerOptions) {
- $scope.datepickerOptions = {};
- }
-
- if (isHtml5DateInput) {
- if ($attrs.type === 'month') {
- $scope.datepickerOptions.datepickerMode = 'month';
- $scope.datepickerOptions.minMode = 'month';
- }
- }
-
- datepickerEl.attr('datepicker-options', 'datepickerOptions');
-
- if (!isHtml5DateInput) {
- // Internal API to maintain the correct ng-invalid-[key] class
- ngModel.$$parserName = 'date';
- ngModel.$validators.date = validator;
- ngModel.$parsers.unshift(parseDate);
- ngModel.$formatters.push(function(value) {
- if (ngModel.$isEmpty(value)) {
- $scope.date = value;
- return value;
- }
-
- if (angular.isNumber(value)) {
- value = new Date(value);
- }
-
- $scope.date = dateParser.fromTimezone(value, ngModelOptions.timezone);
-
- return dateParser.filter($scope.date, dateFormat);
- });
- } else {
- ngModel.$formatters.push(function(value) {
- $scope.date = dateParser.fromTimezone(value, ngModelOptions.timezone);
- return value;
- });
- }
-
- // Detect changes in the view from the text box
- ngModel.$viewChangeListeners.push(function() {
- $scope.date = parseDateString(ngModel.$viewValue);
- });
-
- $element.on('keydown', inputKeydownBind);
-
- $popup = $compile(popupEl)($scope);
- // Prevent jQuery cache memory leak (template is now redundant after linking)
- popupEl.remove();
-
- if (appendToBody) {
- $document.find('body').append($popup);
- } else {
- $element.after($popup);
- }
-
- $scope.$on('$destroy', function() {
- if ($scope.isOpen === true) {
- if (!$rootScope.$$phase) {
- $scope.$apply(function() {
- $scope.isOpen = false;
- });
- }
- }
-
- $popup.remove();
- $element.off('keydown', inputKeydownBind);
- $document.off('click', documentClickBind);
- if (scrollParentEl) {
- scrollParentEl.off('scroll', positionPopup);
- }
- angular.element($window).off('resize', positionPopup);
-
- //Clear all watch listeners on destroy
- while (watchListeners.length) {
- watchListeners.shift()();
- }
- });
- };
-
- $scope.getText = function(key) {
- return $scope[key + 'Text'] || datepickerPopupConfig[key + 'Text'];
- };
-
- $scope.isDisabled = function(date) {
- if (date === 'today') {
- date = dateParser.fromTimezone(new Date(), ngModelOptions.timezone);
- }
-
- var dates = {};
- angular.forEach(['minDate', 'maxDate'], function(key) {
- if (!$scope.datepickerOptions[key]) {
- dates[key] = null;
- } else if (angular.isDate($scope.datepickerOptions[key])) {
- dates[key] = new Date($scope.datepickerOptions[key]);
- } else {
- if ($datepickerPopupLiteralWarning) {
- $log.warn('Literal date support has been deprecated, please switch to date object usage');
- }
-
- dates[key] = new Date(dateFilter($scope.datepickerOptions[key], 'medium'));
- }
- });
-
- return $scope.datepickerOptions &&
- dates.minDate && $scope.compare(date, dates.minDate) < 0 ||
- dates.maxDate && $scope.compare(date, dates.maxDate) > 0;
- };
-
- $scope.compare = function(date1, date2) {
- return new Date(date1.getFullYear(), date1.getMonth(), date1.getDate()) - new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
- };
-
- // Inner change
- $scope.dateSelection = function(dt) {
- $scope.date = dt;
- var date = $scope.date ? dateParser.filter($scope.date, dateFormat) : null; // Setting to NULL is necessary for form validators to function
- $element.val(date);
- ngModel.$setViewValue(date);
-
- if (closeOnDateSelection) {
- $scope.isOpen = false;
- $element[0].focus();
- }
- };
-
- $scope.keydown = function(evt) {
- if (evt.which === 27) {
- evt.stopPropagation();
- $scope.isOpen = false;
- $element[0].focus();
- }
- };
-
- $scope.select = function(date, evt) {
- evt.stopPropagation();
-
- if (date === 'today') {
- var today = new Date();
- if (angular.isDate($scope.date)) {
- date = new Date($scope.date);
- date.setFullYear(today.getFullYear(), today.getMonth(), today.getDate());
- } else {
- date = dateParser.fromTimezone(today, ngModelOptions.timezone);
- date.setHours(0, 0, 0, 0);
- }
- }
- $scope.dateSelection(date);
- };
-
- $scope.close = function(evt) {
- evt.stopPropagation();
-
- $scope.isOpen = false;
- $element[0].focus();
- };
-
- $scope.disabled = angular.isDefined($attrs.disabled) || false;
- if ($attrs.ngDisabled) {
- watchListeners.push($scope.$parent.$watch($parse($attrs.ngDisabled), function(disabled) {
- $scope.disabled = disabled;
- }));
- }
-
- $scope.$watch('isOpen', function(value) {
- if (value) {
- if (!$scope.disabled) {
- $timeout(function() {
- positionPopup();
-
- if (onOpenFocus) {
- $scope.$broadcast('uib:datepicker.focus');
- }
-
- $document.on('click', documentClickBind);
-
- var placement = $attrs.popupPlacement ? $attrs.popupPlacement : datepickerPopupConfig.placement;
- if (appendToBody || $position.parsePlacement(placement)[2]) {
- scrollParentEl = scrollParentEl || angular.element($position.scrollParent($element));
- if (scrollParentEl) {
- scrollParentEl.on('scroll', positionPopup);
- }
- } else {
- scrollParentEl = null;
- }
-
- angular.element($window).on('resize', positionPopup);
- }, 0, false);
- } else {
- $scope.isOpen = false;
- }
- } else {
- $document.off('click', documentClickBind);
- if (scrollParentEl) {
- scrollParentEl.off('scroll', positionPopup);
- }
- angular.element($window).off('resize', positionPopup);
- }
- });
-
- function cameltoDash(string) {
- return string.replace(/([A-Z])/g, function($1) { return '-' + $1.toLowerCase(); });
- }
-
- function parseDateString(viewValue) {
- var date = dateParser.parse(viewValue, dateFormat, $scope.date);
- if (isNaN(date)) {
- for (var i = 0; i < altInputFormats.length; i++) {
- date = dateParser.parse(viewValue, altInputFormats[i], $scope.date);
- if (!isNaN(date)) {
- return date;
- }
- }
- }
- return date;
- }
-
- function parseDate(viewValue) {
- if (angular.isNumber(viewValue)) {
- // presumably timestamp to date object
- viewValue = new Date(viewValue);
- }
-
- if (!viewValue) {
- return null;
- }
-
- if (angular.isDate(viewValue) && !isNaN(viewValue)) {
- return viewValue;
- }
-
- if (angular.isString(viewValue)) {
- var date = parseDateString(viewValue);
- if (!isNaN(date)) {
- return dateParser.toTimezone(date, ngModelOptions.timezone);
- }
- }
-
- return ngModel.$options && ngModel.$options.allowInvalid ? viewValue : undefined;
- }
-
- function validator(modelValue, viewValue) {
- var value = modelValue || viewValue;
-
- if (!$attrs.ngRequired && !value) {
- return true;
- }
-
- if (angular.isNumber(value)) {
- value = new Date(value);
- }
-
- if (!value) {
- return true;
- }
-
- if (angular.isDate(value) && !isNaN(value)) {
- return true;
- }
-
- if (angular.isString(value)) {
- return !isNaN(parseDateString(value));
- }
-
- return false;
- }
-
- function documentClickBind(event) {
- if (!$scope.isOpen && $scope.disabled) {
- return;
- }
-
- var popup = $popup[0];
- var dpContainsTarget = $element[0].contains(event.target);
- // The popup node may not be an element node
- // In some browsers (IE) only element nodes have the 'contains' function
- var popupContainsTarget = popup.contains !== undefined && popup.contains(event.target);
- if ($scope.isOpen && !(dpContainsTarget || popupContainsTarget)) {
- $scope.$apply(function() {
- $scope.isOpen = false;
- });
- }
- }
-
- function inputKeydownBind(evt) {
- if (evt.which === 27 && $scope.isOpen) {
- evt.preventDefault();
- evt.stopPropagation();
- $scope.$apply(function() {
- $scope.isOpen = false;
- });
- $element[0].focus();
- } else if (evt.which === 40 && !$scope.isOpen) {
- evt.preventDefault();
- evt.stopPropagation();
- $scope.$apply(function() {
- $scope.isOpen = true;
- });
- }
- }
-
- function positionPopup() {
- if ($scope.isOpen) {
- var dpElement = angular.element($popup[0].querySelector('.uib-datepicker-popup'));
- var placement = $attrs.popupPlacement ? $attrs.popupPlacement : datepickerPopupConfig.placement;
- var position = $position.positionElements($element, dpElement, placement, appendToBody);
- dpElement.css({top: position.top + 'px', left: position.left + 'px'});
- if (dpElement.hasClass('uib-position-measure')) {
- dpElement.removeClass('uib-position-measure');
- }
- }
- }
-
- $scope.$on('uib:datepicker.mode', function() {
- $timeout(positionPopup, 0, false);
- });
-}])
-
-.directive('uibDatepickerPopup', function() {
- return {
- require: ['ngModel', 'uibDatepickerPopup'],
- controller: 'UibDatepickerPopupController',
- scope: {
- datepickerOptions: '=?',
- isOpen: '=?',
- currentText: '@',
- clearText: '@',
- closeText: '@'
- },
- link: function(scope, element, attrs, ctrls) {
- var ngModel = ctrls[0],
- ctrl = ctrls[1];
-
- ctrl.init(ngModel);
- }
- };
-})
-
-.directive('uibDatepickerPopupWrap', function() {
- return {
- restrict: 'A',
- transclude: true,
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepickerPopup/popup.html';
- }
- };
-});
-
-angular.module('ui.bootstrap.debounce', [])
-/**
- * A helper, internal service that debounces a function
- */
- .factory('$$debounce', ['$timeout', function($timeout) {
- return function(callback, debounceTime) {
- var timeoutPromise;
-
- return function() {
- var self = this;
- var args = Array.prototype.slice.call(arguments);
- if (timeoutPromise) {
- $timeout.cancel(timeoutPromise);
- }
-
- timeoutPromise = $timeout(function() {
- callback.apply(self, args);
- }, debounceTime);
- };
- };
- }]);
-
-angular.module('ui.bootstrap.multiMap', [])
-/**
- * A helper, internal data structure that stores all references attached to key
- */
- .factory('$$multiMap', function() {
- return {
- createNew: function() {
- var map = {};
-
- return {
- entries: function() {
- return Object.keys(map).map(function(key) {
- return {
- key: key,
- value: map[key]
- };
- });
- },
- get: function(key) {
- return map[key];
- },
- hasKey: function(key) {
- return !!map[key];
- },
- keys: function() {
- return Object.keys(map);
- },
- put: function(key, value) {
- if (!map[key]) {
- map[key] = [];
- }
-
- map[key].push(value);
- },
- remove: function(key, value) {
- var values = map[key];
-
- if (!values) {
- return;
- }
-
- var idx = values.indexOf(value);
-
- if (idx !== -1) {
- values.splice(idx, 1);
- }
-
- if (!values.length) {
- delete map[key];
- }
- }
- };
- }
- };
- });
-
-angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.multiMap', 'ui.bootstrap.position'])
-
-.constant('uibDropdownConfig', {
- appendToOpenClass: 'uib-dropdown-open',
- openClass: 'open'
-})
-
-.service('uibDropdownService', ['$document', '$rootScope', '$$multiMap', function($document, $rootScope, $$multiMap) {
- var openScope = null;
- var openedContainers = $$multiMap.createNew();
-
- this.isOnlyOpen = function(dropdownScope, appendTo) {
- var openedDropdowns = openedContainers.get(appendTo);
- if (openedDropdowns) {
- var openDropdown = openedDropdowns.reduce(function(toClose, dropdown) {
- if (dropdown.scope === dropdownScope) {
- return dropdown;
- }
-
- return toClose;
- }, {});
- if (openDropdown) {
- return openedDropdowns.length === 1;
- }
- }
-
- return false;
- };
-
- this.open = function(dropdownScope, element, appendTo) {
- if (!openScope) {
- $document.on('click', closeDropdown);
- }
-
- if (openScope && openScope !== dropdownScope) {
- openScope.isOpen = false;
- }
-
- openScope = dropdownScope;
-
- if (!appendTo) {
- return;
- }
-
- var openedDropdowns = openedContainers.get(appendTo);
- if (openedDropdowns) {
- var openedScopes = openedDropdowns.map(function(dropdown) {
- return dropdown.scope;
- });
- if (openedScopes.indexOf(dropdownScope) === -1) {
- openedContainers.put(appendTo, {
- scope: dropdownScope
- });
- }
- } else {
- openedContainers.put(appendTo, {
- scope: dropdownScope
- });
- }
- };
-
- this.close = function(dropdownScope, element, appendTo) {
- if (openScope === dropdownScope) {
- $document.off('click', closeDropdown);
- $document.off('keydown', this.keybindFilter);
- openScope = null;
- }
-
- if (!appendTo) {
- return;
- }
-
- var openedDropdowns = openedContainers.get(appendTo);
- if (openedDropdowns) {
- var dropdownToClose = openedDropdowns.reduce(function(toClose, dropdown) {
- if (dropdown.scope === dropdownScope) {
- return dropdown;
- }
-
- return toClose;
- }, {});
- if (dropdownToClose) {
- openedContainers.remove(appendTo, dropdownToClose);
- }
- }
- };
-
- var closeDropdown = function(evt) {
- // This method may still be called during the same mouse event that
- // unbound this event handler. So check openScope before proceeding.
- if (!openScope) { return; }
-
- if (evt && openScope.getAutoClose() === 'disabled') { return; }
-
- if (evt && evt.which === 3) { return; }
-
- var toggleElement = openScope.getToggleElement();
- if (evt && toggleElement && toggleElement[0].contains(evt.target)) {
- return;
- }
-
- var dropdownElement = openScope.getDropdownElement();
- if (evt && openScope.getAutoClose() === 'outsideClick' &&
- dropdownElement && dropdownElement[0].contains(evt.target)) {
- return;
- }
-
- openScope.focusToggleElement();
- openScope.isOpen = false;
-
- if (!$rootScope.$$phase) {
- openScope.$apply();
- }
- };
-
- this.keybindFilter = function(evt) {
- if (!openScope) {
- // see this.close as ESC could have been pressed which kills the scope so we can not proceed
- return;
- }
-
- var dropdownElement = openScope.getDropdownElement();
- var toggleElement = openScope.getToggleElement();
- var dropdownElementTargeted = dropdownElement && dropdownElement[0].contains(evt.target);
- var toggleElementTargeted = toggleElement && toggleElement[0].contains(evt.target);
- if (evt.which === 27) {
- evt.stopPropagation();
- openScope.focusToggleElement();
- closeDropdown();
- } else if (openScope.isKeynavEnabled() && [38, 40].indexOf(evt.which) !== -1 && openScope.isOpen && (dropdownElementTargeted || toggleElementTargeted)) {
- evt.preventDefault();
- evt.stopPropagation();
- openScope.focusDropdownEntry(evt.which);
- }
- };
-}])
-
-.controller('UibDropdownController', ['$scope', '$element', '$attrs', '$parse', 'uibDropdownConfig', 'uibDropdownService', '$animate', '$uibPosition', '$document', '$compile', '$templateRequest', function($scope, $element, $attrs, $parse, dropdownConfig, uibDropdownService, $animate, $position, $document, $compile, $templateRequest) {
- var self = this,
- scope = $scope.$new(), // create a child scope so we are not polluting original one
- templateScope,
- appendToOpenClass = dropdownConfig.appendToOpenClass,
- openClass = dropdownConfig.openClass,
- getIsOpen,
- setIsOpen = angular.noop,
- toggleInvoker = $attrs.onToggle ? $parse($attrs.onToggle) : angular.noop,
- appendToBody = false,
- appendTo = null,
- keynavEnabled = false,
- selectedOption = null,
- body = $document.find('body');
-
- $element.addClass('dropdown');
-
- this.init = function() {
- if ($attrs.isOpen) {
- getIsOpen = $parse($attrs.isOpen);
- setIsOpen = getIsOpen.assign;
-
- $scope.$watch(getIsOpen, function(value) {
- scope.isOpen = !!value;
- });
- }
-
- if (angular.isDefined($attrs.dropdownAppendTo)) {
- var appendToEl = $parse($attrs.dropdownAppendTo)(scope);
- if (appendToEl) {
- appendTo = angular.element(appendToEl);
- }
- }
-
- appendToBody = angular.isDefined($attrs.dropdownAppendToBody);
- keynavEnabled = angular.isDefined($attrs.keyboardNav);
-
- if (appendToBody && !appendTo) {
- appendTo = body;
- }
-
- if (appendTo && self.dropdownMenu) {
- appendTo.append(self.dropdownMenu);
- $element.on('$destroy', function handleDestroyEvent() {
- self.dropdownMenu.remove();
- });
- }
- };
-
- this.toggle = function(open) {
- scope.isOpen = arguments.length ? !!open : !scope.isOpen;
- if (angular.isFunction(setIsOpen)) {
- setIsOpen(scope, scope.isOpen);
- }
-
- return scope.isOpen;
- };
-
- // Allow other directives to watch status
- this.isOpen = function() {
- return scope.isOpen;
- };
-
- scope.getToggleElement = function() {
- return self.toggleElement;
- };
-
- scope.getAutoClose = function() {
- return $attrs.autoClose || 'always'; //or 'outsideClick' or 'disabled'
- };
-
- scope.getElement = function() {
- return $element;
- };
-
- scope.isKeynavEnabled = function() {
- return keynavEnabled;
- };
-
- scope.focusDropdownEntry = function(keyCode) {
- var elems = self.dropdownMenu ? //If append to body is used.
- angular.element(self.dropdownMenu).find('a') :
- $element.find('ul').eq(0).find('a');
-
- switch (keyCode) {
- case 40: {
- if (!angular.isNumber(self.selectedOption)) {
- self.selectedOption = 0;
- } else {
- self.selectedOption = self.selectedOption === elems.length - 1 ?
- self.selectedOption :
- self.selectedOption + 1;
- }
- break;
- }
- case 38: {
- if (!angular.isNumber(self.selectedOption)) {
- self.selectedOption = elems.length - 1;
- } else {
- self.selectedOption = self.selectedOption === 0 ?
- 0 : self.selectedOption - 1;
- }
- break;
- }
- }
- elems[self.selectedOption].focus();
- };
-
- scope.getDropdownElement = function() {
- return self.dropdownMenu;
- };
-
- scope.focusToggleElement = function() {
- if (self.toggleElement) {
- self.toggleElement[0].focus();
- }
- };
-
- scope.$watch('isOpen', function(isOpen, wasOpen) {
- if (appendTo && self.dropdownMenu) {
- var pos = $position.positionElements($element, self.dropdownMenu, 'bottom-left', true),
- css,
- rightalign,
- scrollbarPadding,
- scrollbarWidth = 0;
-
- css = {
- top: pos.top + 'px',
- display: isOpen ? 'block' : 'none'
- };
-
- rightalign = self.dropdownMenu.hasClass('dropdown-menu-right');
- if (!rightalign) {
- css.left = pos.left + 'px';
- css.right = 'auto';
- } else {
- css.left = 'auto';
- scrollbarPadding = $position.scrollbarPadding(appendTo);
-
- if (scrollbarPadding.heightOverflow && scrollbarPadding.scrollbarWidth) {
- scrollbarWidth = scrollbarPadding.scrollbarWidth;
- }
-
- css.right = window.innerWidth - scrollbarWidth -
- (pos.left + $element.prop('offsetWidth')) + 'px';
- }
-
- // Need to adjust our positioning to be relative to the appendTo container
- // if it's not the body element
- if (!appendToBody) {
- var appendOffset = $position.offset(appendTo);
-
- css.top = pos.top - appendOffset.top + 'px';
-
- if (!rightalign) {
- css.left = pos.left - appendOffset.left + 'px';
- } else {
- css.right = window.innerWidth -
- (pos.left - appendOffset.left + $element.prop('offsetWidth')) + 'px';
- }
- }
-
- self.dropdownMenu.css(css);
- }
-
- var openContainer = appendTo ? appendTo : $element;
- var dropdownOpenClass = appendTo ? appendToOpenClass : openClass;
- var hasOpenClass = openContainer.hasClass(dropdownOpenClass);
- var isOnlyOpen = uibDropdownService.isOnlyOpen($scope, appendTo);
-
- if (hasOpenClass === !isOpen) {
- var toggleClass;
- if (appendTo) {
- toggleClass = !isOnlyOpen ? 'addClass' : 'removeClass';
- } else {
- toggleClass = isOpen ? 'addClass' : 'removeClass';
- }
- $animate[toggleClass](openContainer, dropdownOpenClass).then(function() {
- if (angular.isDefined(isOpen) && isOpen !== wasOpen) {
- toggleInvoker($scope, { open: !!isOpen });
- }
- });
- }
-
- if (isOpen) {
- if (self.dropdownMenuTemplateUrl) {
- $templateRequest(self.dropdownMenuTemplateUrl).then(function(tplContent) {
- templateScope = scope.$new();
- $compile(tplContent.trim())(templateScope, function(dropdownElement) {
- var newEl = dropdownElement;
- self.dropdownMenu.replaceWith(newEl);
- self.dropdownMenu = newEl;
- $document.on('keydown', uibDropdownService.keybindFilter);
- });
- });
- } else {
- $document.on('keydown', uibDropdownService.keybindFilter);
- }
-
- scope.focusToggleElement();
- uibDropdownService.open(scope, $element, appendTo);
- } else {
- uibDropdownService.close(scope, $element, appendTo);
- if (self.dropdownMenuTemplateUrl) {
- if (templateScope) {
- templateScope.$destroy();
- }
- var newEl = angular.element('<ul class="dropdown-menu"></ul>');
- self.dropdownMenu.replaceWith(newEl);
- self.dropdownMenu = newEl;
- }
-
- self.selectedOption = null;
- }
-
- if (angular.isFunction(setIsOpen)) {
- setIsOpen($scope, isOpen);
- }
- });
-}])
-
-.directive('uibDropdown', function() {
- return {
- controller: 'UibDropdownController',
- link: function(scope, element, attrs, dropdownCtrl) {
- dropdownCtrl.init();
- }
- };
-})
-
-.directive('uibDropdownMenu', function() {
- return {
- restrict: 'A',
- require: '?^uibDropdown',
- link: function(scope, element, attrs, dropdownCtrl) {
- if (!dropdownCtrl || angular.isDefined(attrs.dropdownNested)) {
- return;
- }
-
- element.addClass('dropdown-menu');
-
- var tplUrl = attrs.templateUrl;
- if (tplUrl) {
- dropdownCtrl.dropdownMenuTemplateUrl = tplUrl;
- }
-
- if (!dropdownCtrl.dropdownMenu) {
- dropdownCtrl.dropdownMenu = element;
- }
- }
- };
-})
-
-.directive('uibDropdownToggle', function() {
- return {
- require: '?^uibDropdown',
- link: function(scope, element, attrs, dropdownCtrl) {
- if (!dropdownCtrl) {
- return;
- }
-
- element.addClass('dropdown-toggle');
-
- dropdownCtrl.toggleElement = element;
-
- var toggleDropdown = function(event) {
- event.preventDefault();
-
- if (!element.hasClass('disabled') && !attrs.disabled) {
- scope.$apply(function() {
- dropdownCtrl.toggle();
- });
- }
- };
-
- element.on('click', toggleDropdown);
-
- // WAI-ARIA
- element.attr({ 'aria-haspopup': true, 'aria-expanded': false });
- scope.$watch(dropdownCtrl.isOpen, function(isOpen) {
- element.attr('aria-expanded', !!isOpen);
- });
-
- scope.$on('$destroy', function() {
- element.off('click', toggleDropdown);
- });
- }
- };
-});
-
-angular.module('ui.bootstrap.stackedMap', [])
-/**
- * A helper, internal data structure that acts as a map but also allows getting / removing
- * elements in the LIFO order
- */
- .factory('$$stackedMap', function() {
- return {
- createNew: function() {
- var stack = [];
-
- return {
- add: function(key, value) {
- stack.push({
- key: key,
- value: value
- });
- },
- get: function(key) {
- for (var i = 0; i < stack.length; i++) {
- if (key === stack[i].key) {
- return stack[i];
- }
- }
- },
- keys: function() {
- var keys = [];
- for (var i = 0; i < stack.length; i++) {
- keys.push(stack[i].key);
- }
- return keys;
- },
- top: function() {
- return stack[stack.length - 1];
- },
- remove: function(key) {
- var idx = -1;
- for (var i = 0; i < stack.length; i++) {
- if (key === stack[i].key) {
- idx = i;
- break;
- }
- }
- return stack.splice(idx, 1)[0];
- },
- removeTop: function() {
- return stack.pop();
- },
- length: function() {
- return stack.length;
- }
- };
- }
- };
- });
-angular.module('ui.bootstrap.modal', ['ui.bootstrap.multiMap', 'ui.bootstrap.stackedMap', 'ui.bootstrap.position'])
-/**
- * Pluggable resolve mechanism for the modal resolve resolution
- * Supports UI Router's $resolve service
- */
- .provider('$uibResolve', function() {
- var resolve = this;
- this.resolver = null;
-
- this.setResolver = function(resolver) {
- this.resolver = resolver;
- };
-
- this.$get = ['$injector', '$q', function($injector, $q) {
- var resolver = resolve.resolver ? $injector.get(resolve.resolver) : null;
- return {
- resolve: function(invocables, locals, parent, self) {
- if (resolver) {
- return resolver.resolve(invocables, locals, parent, self);
- }
-
- var promises = [];
-
- angular.forEach(invocables, function(value) {
- if (angular.isFunction(value) || angular.isArray(value)) {
- promises.push($q.resolve($injector.invoke(value)));
- } else if (angular.isString(value)) {
- promises.push($q.resolve($injector.get(value)));
- } else {
- promises.push($q.resolve(value));
- }
- });
-
- return $q.all(promises).then(function(resolves) {
- var resolveObj = {};
- var resolveIter = 0;
- angular.forEach(invocables, function(value, key) {
- resolveObj[key] = resolves[resolveIter++];
- });
-
- return resolveObj;
- });
- }
- };
- }];
- })
-
-/**
- * A helper directive for the $modal service. It creates a backdrop element.
- */
- .directive('uibModalBackdrop', ['$animate', '$injector', '$uibModalStack',
- function($animate, $injector, $modalStack) {
- return {
- restrict: 'A',
- compile: function(tElement, tAttrs) {
- tElement.addClass(tAttrs.backdropClass);
- return linkFn;
- }
- };
-
- function linkFn(scope, element, attrs) {
- if (attrs.modalInClass) {
- $animate.addClass(element, attrs.modalInClass);
-
- scope.$on($modalStack.NOW_CLOSING_EVENT, function(e, setIsAsync) {
- var done = setIsAsync();
- if (scope.modalOptions.animation) {
- $animate.removeClass(element, attrs.modalInClass).then(done);
- } else {
- done();
- }
- });
- }
- }
- }])
-
- .directive('uibModalWindow', ['$uibModalStack', '$q', '$animateCss', '$document',
- function($modalStack, $q, $animateCss, $document) {
- return {
- scope: {
- index: '@'
- },
- restrict: 'A',
- transclude: true,
- templateUrl: function(tElement, tAttrs) {
- return tAttrs.templateUrl || 'uib/template/modal/window.html';
- },
- link: function(scope, element, attrs) {
- element.addClass(attrs.windowTopClass || '');
- scope.size = attrs.size;
-
- scope.close = function(evt) {
- var modal = $modalStack.getTop();
- if (modal && modal.value.backdrop &&
- modal.value.backdrop !== 'static' &&
- evt.target === evt.currentTarget) {
- evt.preventDefault();
- evt.stopPropagation();
- $modalStack.dismiss(modal.key, 'backdrop click');
- }
- };
-
- // moved from template to fix issue #2280
- element.on('click', scope.close);
-
- // This property is only added to the scope for the purpose of detecting when this directive is rendered.
- // We can detect that by using this property in the template associated with this directive and then use
- // {@link Attribute#$observe} on it. For more details please see {@link TableColumnResize}.
- scope.$isRendered = true;
-
- // Deferred object that will be resolved when this modal is rendered.
- var modalRenderDeferObj = $q.defer();
- // Resolve render promise post-digest
- scope.$$postDigest(function() {
- modalRenderDeferObj.resolve();
- });
-
- modalRenderDeferObj.promise.then(function() {
- var animationPromise = null;
-
- if (attrs.modalInClass) {
- animationPromise = $animateCss(element, {
- addClass: attrs.modalInClass
- }).start();
-
- scope.$on($modalStack.NOW_CLOSING_EVENT, function(e, setIsAsync) {
- var done = setIsAsync();
- $animateCss(element, {
- removeClass: attrs.modalInClass
- }).start().then(done);
- });
- }
-
-
- $q.when(animationPromise).then(function() {
- // Notify {@link $modalStack} that modal is rendered.
- var modal = $modalStack.getTop();
- if (modal) {
- $modalStack.modalRendered(modal.key);
- }
-
- /**
- * If something within the freshly-opened modal already has focus (perhaps via a
- * directive that causes focus) then there's no need to try to focus anything.
- */
- if (!($document[0].activeElement && element[0].contains($document[0].activeElement))) {
- var inputWithAutofocus = element[0].querySelector('[autofocus]');
- /**
- * Auto-focusing of a freshly-opened modal element causes any child elements
- * with the autofocus attribute to lose focus. This is an issue on touch
- * based devices which will show and then hide the onscreen keyboard.
- * Attempts to refocus the autofocus element via JavaScript will not reopen
- * the onscreen keyboard. Fixed by updated the focusing logic to only autofocus
- * the modal element if the modal does not contain an autofocus element.
- */
- if (inputWithAutofocus) {
- inputWithAutofocus.focus();
- } else {
- element[0].focus();
- }
- }
- });
- });
- }
- };
- }])
-
- .directive('uibModalAnimationClass', function() {
- return {
- compile: function(tElement, tAttrs) {
- if (tAttrs.modalAnimation) {
- tElement.addClass(tAttrs.uibModalAnimationClass);
- }
- }
- };
- })
-
- .directive('uibModalTransclude', ['$animate', function($animate) {
- return {
- link: function(scope, element, attrs, controller, transclude) {
- transclude(scope.$parent, function(clone) {
- element.empty();
- $animate.enter(clone, element);
- });
- }
- };
- }])
-
- .factory('$uibModalStack', ['$animate', '$animateCss', '$document',
- '$compile', '$rootScope', '$q', '$$multiMap', '$$stackedMap', '$uibPosition',
- function($animate, $animateCss, $document, $compile, $rootScope, $q, $$multiMap, $$stackedMap, $uibPosition) {
- var OPENED_MODAL_CLASS = 'modal-open';
-
- var backdropDomEl, backdropScope;
- var openedWindows = $$stackedMap.createNew();
- var openedClasses = $$multiMap.createNew();
- var $modalStack = {
- NOW_CLOSING_EVENT: 'modal.stack.now-closing'
- };
- var topModalIndex = 0;
- var previousTopOpenedModal = null;
- var ARIA_HIDDEN_ATTRIBUTE_NAME = 'data-bootstrap-modal-aria-hidden-count';
-
- //Modal focus behavior
- var tabbableSelector = 'a[href], area[href], input:not([disabled]):not([tabindex=\'-1\']), ' +
- 'button:not([disabled]):not([tabindex=\'-1\']),select:not([disabled]):not([tabindex=\'-1\']), textarea:not([disabled]):not([tabindex=\'-1\']), ' +
- 'iframe, object, embed, *[tabindex]:not([tabindex=\'-1\']), *[contenteditable=true]';
- var scrollbarPadding;
- var SNAKE_CASE_REGEXP = /[A-Z]/g;
-
- // TODO: extract into common dependency with tooltip
- function snake_case(name) {
- var separator = '-';
- return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {
- return (pos ? separator : '') + letter.toLowerCase();
- });
- }
-
- function isVisible(element) {
- return !!(element.offsetWidth ||
- element.offsetHeight ||
- element.getClientRects().length);
- }
-
- function backdropIndex() {
- var topBackdropIndex = -1;
- var opened = openedWindows.keys();
- for (var i = 0; i < opened.length; i++) {
- if (openedWindows.get(opened[i]).value.backdrop) {
- topBackdropIndex = i;
- }
- }
-
- // If any backdrop exist, ensure that it's index is always
- // right below the top modal
- if (topBackdropIndex > -1 && topBackdropIndex < topModalIndex) {
- topBackdropIndex = topModalIndex;
- }
- return topBackdropIndex;
- }
-
- $rootScope.$watch(backdropIndex, function(newBackdropIndex) {
- if (backdropScope) {
- backdropScope.index = newBackdropIndex;
- }
- });
-
- function removeModalWindow(modalInstance, elementToReceiveFocus) {
- var modalWindow = openedWindows.get(modalInstance).value;
- var appendToElement = modalWindow.appendTo;
-
- //clean up the stack
- openedWindows.remove(modalInstance);
- previousTopOpenedModal = openedWindows.top();
- if (previousTopOpenedModal) {
- topModalIndex = parseInt(previousTopOpenedModal.value.modalDomEl.attr('index'), 10);
- }
-
- removeAfterAnimate(modalWindow.modalDomEl, modalWindow.modalScope, function() {
- var modalBodyClass = modalWindow.openedClass || OPENED_MODAL_CLASS;
- openedClasses.remove(modalBodyClass, modalInstance);
- var areAnyOpen = openedClasses.hasKey(modalBodyClass);
- appendToElement.toggleClass(modalBodyClass, areAnyOpen);
- if (!areAnyOpen && scrollbarPadding && scrollbarPadding.heightOverflow && scrollbarPadding.scrollbarWidth) {
- if (scrollbarPadding.originalRight) {
- appendToElement.css({paddingRight: scrollbarPadding.originalRight + 'px'});
- } else {
- appendToElement.css({paddingRight: ''});
- }
- scrollbarPadding = null;
- }
- toggleTopWindowClass(true);
- }, modalWindow.closedDeferred);
- checkRemoveBackdrop();
-
- //move focus to specified element if available, or else to body
- if (elementToReceiveFocus && elementToReceiveFocus.focus) {
- elementToReceiveFocus.focus();
- } else if (appendToElement.focus) {
- appendToElement.focus();
- }
- }
-
- // Add or remove "windowTopClass" from the top window in the stack
- function toggleTopWindowClass(toggleSwitch) {
- var modalWindow;
-
- if (openedWindows.length() > 0) {
- modalWindow = openedWindows.top().value;
- modalWindow.modalDomEl.toggleClass(modalWindow.windowTopClass || '', toggleSwitch);
- }
- }
-
- function checkRemoveBackdrop() {
- //remove backdrop if no longer needed
- if (backdropDomEl && backdropIndex() === -1) {
- var backdropScopeRef = backdropScope;
- removeAfterAnimate(backdropDomEl, backdropScope, function() {
- backdropScopeRef = null;
- });
- backdropDomEl = undefined;
- backdropScope = undefined;
- }
- }
-
- function removeAfterAnimate(domEl, scope, done, closedDeferred) {
- var asyncDeferred;
- var asyncPromise = null;
- var setIsAsync = function() {
- if (!asyncDeferred) {
- asyncDeferred = $q.defer();
- asyncPromise = asyncDeferred.promise;
- }
-
- return function asyncDone() {
- asyncDeferred.resolve();
- };
- };
- scope.$broadcast($modalStack.NOW_CLOSING_EVENT, setIsAsync);
-
- // Note that it's intentional that asyncPromise might be null.
- // That's when setIsAsync has not been called during the
- // NOW_CLOSING_EVENT broadcast.
- return $q.when(asyncPromise).then(afterAnimating);
-
- function afterAnimating() {
- if (afterAnimating.done) {
- return;
- }
- afterAnimating.done = true;
-
- $animate.leave(domEl).then(function() {
- if (done) {
- done();
- }
-
- domEl.remove();
- if (closedDeferred) {
- closedDeferred.resolve();
- }
- });
-
- scope.$destroy();
- }
- }
-
- $document.on('keydown', keydownListener);
-
- $rootScope.$on('$destroy', function() {
- $document.off('keydown', keydownListener);
- });
-
- function keydownListener(evt) {
- if (evt.isDefaultPrevented()) {
- return evt;
- }
-
- var modal = openedWindows.top();
- if (modal) {
- switch (evt.which) {
- case 27: {
- if (modal.value.keyboard) {
- evt.preventDefault();
- $rootScope.$apply(function() {
- $modalStack.dismiss(modal.key, 'escape key press');
- });
- }
- break;
- }
- case 9: {
- var list = $modalStack.loadFocusElementList(modal);
- var focusChanged = false;
- if (evt.shiftKey) {
- if ($modalStack.isFocusInFirstItem(evt, list) || $modalStack.isModalFocused(evt, modal)) {
- focusChanged = $modalStack.focusLastFocusableElement(list);
- }
- } else {
- if ($modalStack.isFocusInLastItem(evt, list)) {
- focusChanged = $modalStack.focusFirstFocusableElement(list);
- }
- }
-
- if (focusChanged) {
- evt.preventDefault();
- evt.stopPropagation();
- }
-
- break;
- }
- }
- }
- }
-
- $modalStack.open = function(modalInstance, modal) {
- var modalOpener = $document[0].activeElement,
- modalBodyClass = modal.openedClass || OPENED_MODAL_CLASS;
-
- toggleTopWindowClass(false);
-
- // Store the current top first, to determine what index we ought to use
- // for the current top modal
- previousTopOpenedModal = openedWindows.top();
-
- openedWindows.add(modalInstance, {
- deferred: modal.deferred,
- renderDeferred: modal.renderDeferred,
- closedDeferred: modal.closedDeferred,
- modalScope: modal.scope,
- backdrop: modal.backdrop,
- keyboard: modal.keyboard,
- openedClass: modal.openedClass,
- windowTopClass: modal.windowTopClass,
- animation: modal.animation,
- appendTo: modal.appendTo
- });
-
- openedClasses.put(modalBodyClass, modalInstance);
-
- var appendToElement = modal.appendTo,
- currBackdropIndex = backdropIndex();
-
- if (!appendToElement.length) {
- throw new Error('appendTo element not found. Make sure that the element passed is in DOM.');
- }
-
- if (currBackdropIndex >= 0 && !backdropDomEl) {
- backdropScope = $rootScope.$new(true);
- backdropScope.modalOptions = modal;
- backdropScope.index = currBackdropIndex;
- backdropDomEl = angular.element('<div uib-modal-backdrop="modal-backdrop"></div>');
- backdropDomEl.attr({
- 'class': 'modal-backdrop',
- 'ng-style': '{\'z-index\': 1040 + (index && 1 || 0) + index*10}',
- 'uib-modal-animation-class': 'fade',
- 'modal-in-class': 'in'
- });
- if (modal.backdropClass) {
- backdropDomEl.addClass(modal.backdropClass);
- }
-
- if (modal.animation) {
- backdropDomEl.attr('modal-animation', 'true');
- }
- $compile(backdropDomEl)(backdropScope);
- $animate.enter(backdropDomEl, appendToElement);
- if ($uibPosition.isScrollable(appendToElement)) {
- scrollbarPadding = $uibPosition.scrollbarPadding(appendToElement);
- if (scrollbarPadding.heightOverflow && scrollbarPadding.scrollbarWidth) {
- appendToElement.css({paddingRight: scrollbarPadding.right + 'px'});
- }
- }
- }
-
- var content;
- if (modal.component) {
- content = document.createElement(snake_case(modal.component.name));
- content = angular.element(content);
- content.attr({
- resolve: '$resolve',
- 'modal-instance': '$uibModalInstance',
- close: '$close($value)',
- dismiss: '$dismiss($value)'
- });
- } else {
- content = modal.content;
- }
-
- // Set the top modal index based on the index of the previous top modal
- topModalIndex = previousTopOpenedModal ? parseInt(previousTopOpenedModal.value.modalDomEl.attr('index'), 10) + 1 : 0;
- var angularDomEl = angular.element('<div uib-modal-window="modal-window"></div>');
- angularDomEl.attr({
- 'class': 'modal',
- 'template-url': modal.windowTemplateUrl,
- 'window-top-class': modal.windowTopClass,
- 'role': 'dialog',
- 'aria-labelledby': modal.ariaLabelledBy,
- 'aria-describedby': modal.ariaDescribedBy,
- 'size': modal.size,
- 'index': topModalIndex,
- 'animate': 'animate',
- 'ng-style': '{\'z-index\': 1050 + $$topModalIndex*10, display: \'block\'}',
- 'tabindex': -1,
- 'uib-modal-animation-class': 'fade',
- 'modal-in-class': 'in'
- }).append(content);
- if (modal.windowClass) {
- angularDomEl.addClass(modal.windowClass);
- }
-
- if (modal.animation) {
- angularDomEl.attr('modal-animation', 'true');
- }
-
- appendToElement.addClass(modalBodyClass);
- if (modal.scope) {
- // we need to explicitly add the modal index to the modal scope
- // because it is needed by ngStyle to compute the zIndex property.
- modal.scope.$$topModalIndex = topModalIndex;
- }
- $animate.enter($compile(angularDomEl)(modal.scope), appendToElement);
-
- openedWindows.top().value.modalDomEl = angularDomEl;
- openedWindows.top().value.modalOpener = modalOpener;
-
- applyAriaHidden(angularDomEl);
-
- function applyAriaHidden(el) {
- if (!el || el[0].tagName === 'BODY') {
- return;
- }
-
- getSiblings(el).forEach(function(sibling) {
- var elemIsAlreadyHidden = sibling.getAttribute('aria-hidden') === 'true',
- ariaHiddenCount = parseInt(sibling.getAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME), 10);
-
- if (!ariaHiddenCount) {
- ariaHiddenCount = elemIsAlreadyHidden ? 1 : 0;
- }
-
- sibling.setAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME, ariaHiddenCount + 1);
- sibling.setAttribute('aria-hidden', 'true');
- });
-
- return applyAriaHidden(el.parent());
-
- function getSiblings(el) {
- var children = el.parent() ? el.parent().children() : [];
-
- return Array.prototype.filter.call(children, function(child) {
- return child !== el[0];
- });
- }
- }
- };
-
- function broadcastClosing(modalWindow, resultOrReason, closing) {
- return !modalWindow.value.modalScope.$broadcast('modal.closing', resultOrReason, closing).defaultPrevented;
- }
-
- function unhideBackgroundElements() {
- Array.prototype.forEach.call(
- document.querySelectorAll('[' + ARIA_HIDDEN_ATTRIBUTE_NAME + ']'),
- function(hiddenEl) {
- var ariaHiddenCount = parseInt(hiddenEl.getAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME), 10),
- newHiddenCount = ariaHiddenCount - 1;
- hiddenEl.setAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME, newHiddenCount);
-
- if (!newHiddenCount) {
- hiddenEl.removeAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME);
- hiddenEl.removeAttribute('aria-hidden');
- }
- }
- );
- }
-
- $modalStack.close = function(modalInstance, result) {
- var modalWindow = openedWindows.get(modalInstance);
- unhideBackgroundElements();
- if (modalWindow && broadcastClosing(modalWindow, result, true)) {
- modalWindow.value.modalScope.$$uibDestructionScheduled = true;
- modalWindow.value.deferred.resolve(result);
- removeModalWindow(modalInstance, modalWindow.value.modalOpener);
- return true;
- }
-
- return !modalWindow;
- };
-
- $modalStack.dismiss = function(modalInstance, reason) {
- var modalWindow = openedWindows.get(modalInstance);
- unhideBackgroundElements();
- if (modalWindow && broadcastClosing(modalWindow, reason, false)) {
- modalWindow.value.modalScope.$$uibDestructionScheduled = true;
- modalWindow.value.deferred.reject(reason);
- removeModalWindow(modalInstance, modalWindow.value.modalOpener);
- return true;
- }
- return !modalWindow;
- };
-
- $modalStack.dismissAll = function(reason) {
- var topModal = this.getTop();
- while (topModal && this.dismiss(topModal.key, reason)) {
- topModal = this.getTop();
- }
- };
-
- $modalStack.getTop = function() {
- return openedWindows.top();
- };
-
- $modalStack.modalRendered = function(modalInstance) {
- var modalWindow = openedWindows.get(modalInstance);
- if (modalWindow) {
- modalWindow.value.renderDeferred.resolve();
- }
- };
-
- $modalStack.focusFirstFocusableElement = function(list) {
- if (list.length > 0) {
- list[0].focus();
- return true;
- }
- return false;
- };
-
- $modalStack.focusLastFocusableElement = function(list) {
- if (list.length > 0) {
- list[list.length - 1].focus();
- return true;
- }
- return false;
- };
-
- $modalStack.isModalFocused = function(evt, modalWindow) {
- if (evt && modalWindow) {
- var modalDomEl = modalWindow.value.modalDomEl;
- if (modalDomEl && modalDomEl.length) {
- return (evt.target || evt.srcElement) === modalDomEl[0];
- }
- }
- return false;
- };
-
- $modalStack.isFocusInFirstItem = function(evt, list) {
- if (list.length > 0) {
- return (evt.target || evt.srcElement) === list[0];
- }
- return false;
- };
-
- $modalStack.isFocusInLastItem = function(evt, list) {
- if (list.length > 0) {
- return (evt.target || evt.srcElement) === list[list.length - 1];
- }
- return false;
- };
-
- $modalStack.loadFocusElementList = function(modalWindow) {
- if (modalWindow) {
- var modalDomE1 = modalWindow.value.modalDomEl;
- if (modalDomE1 && modalDomE1.length) {
- var elements = modalDomE1[0].querySelectorAll(tabbableSelector);
- return elements ?
- Array.prototype.filter.call(elements, function(element) {
- return isVisible(element);
- }) : elements;
- }
- }
- };
-
- return $modalStack;
- }])
-
- .provider('$uibModal', function() {
- var $modalProvider = {
- options: {
- animation: true,
- backdrop: true, //can also be false or 'static'
- keyboard: true
- },
- $get: ['$rootScope', '$q', '$document', '$templateRequest', '$controller', '$uibResolve', '$uibModalStack',
- function ($rootScope, $q, $document, $templateRequest, $controller, $uibResolve, $modalStack) {
- var $modal = {};
-
- function getTemplatePromise(options) {
- return options.template ? $q.when(options.template) :
- $templateRequest(angular.isFunction(options.templateUrl) ?
- options.templateUrl() : options.templateUrl);
- }
-
- var promiseChain = null;
- $modal.getPromiseChain = function() {
- return promiseChain;
- };
-
- $modal.open = function(modalOptions) {
- var modalResultDeferred = $q.defer();
- var modalOpenedDeferred = $q.defer();
- var modalClosedDeferred = $q.defer();
- var modalRenderDeferred = $q.defer();
-
- //prepare an instance of a modal to be injected into controllers and returned to a caller
- var modalInstance = {
- result: modalResultDeferred.promise,
- opened: modalOpenedDeferred.promise,
- closed: modalClosedDeferred.promise,
- rendered: modalRenderDeferred.promise,
- close: function (result) {
- return $modalStack.close(modalInstance, result);
- },
- dismiss: function (reason) {
- return $modalStack.dismiss(modalInstance, reason);
- }
- };
-
- //merge and clean up options
- modalOptions = angular.extend({}, $modalProvider.options, modalOptions);
- modalOptions.resolve = modalOptions.resolve || {};
- modalOptions.appendTo = modalOptions.appendTo || $document.find('body').eq(0);
-
- //verify options
- if (!modalOptions.component && !modalOptions.template && !modalOptions.templateUrl) {
- throw new Error('One of component or template or templateUrl options is required.');
- }
-
- var templateAndResolvePromise;
- if (modalOptions.component) {
- templateAndResolvePromise = $q.when($uibResolve.resolve(modalOptions.resolve, {}, null, null));
- } else {
- templateAndResolvePromise =
- $q.all([getTemplatePromise(modalOptions), $uibResolve.resolve(modalOptions.resolve, {}, null, null)]);
- }
-
- function resolveWithTemplate() {
- return templateAndResolvePromise;
- }
-
- // Wait for the resolution of the existing promise chain.
- // Then switch to our own combined promise dependency (regardless of how the previous modal fared).
- // Then add to $modalStack and resolve opened.
- // Finally clean up the chain variable if no subsequent modal has overwritten it.
- var samePromise;
- samePromise = promiseChain = $q.all([promiseChain])
- .then(resolveWithTemplate, resolveWithTemplate)
- .then(function resolveSuccess(tplAndVars) {
- var providedScope = modalOptions.scope || $rootScope;
-
- var modalScope = providedScope.$new();
- modalScope.$close = modalInstance.close;
- modalScope.$dismiss = modalInstance.dismiss;
-
- modalScope.$on('$destroy', function() {
- if (!modalScope.$$uibDestructionScheduled) {
- modalScope.$dismiss('$uibUnscheduledDestruction');
- }
- });
-
- var modal = {
- scope: modalScope,
- deferred: modalResultDeferred,
- renderDeferred: modalRenderDeferred,
- closedDeferred: modalClosedDeferred,
- animation: modalOptions.animation,
- backdrop: modalOptions.backdrop,
- keyboard: modalOptions.keyboard,
- backdropClass: modalOptions.backdropClass,
- windowTopClass: modalOptions.windowTopClass,
- windowClass: modalOptions.windowClass,
- windowTemplateUrl: modalOptions.windowTemplateUrl,
- ariaLabelledBy: modalOptions.ariaLabelledBy,
- ariaDescribedBy: modalOptions.ariaDescribedBy,
- size: modalOptions.size,
- openedClass: modalOptions.openedClass,
- appendTo: modalOptions.appendTo
- };
-
- var component = {};
- var ctrlInstance, ctrlInstantiate, ctrlLocals = {};
-
- if (modalOptions.component) {
- constructLocals(component, false, true, false);
- component.name = modalOptions.component;
- modal.component = component;
- } else if (modalOptions.controller) {
- constructLocals(ctrlLocals, true, false, true);
-
- // the third param will make the controller instantiate later,private api
- // @see https://github.com/angular/angular.js/blob/master/src/ng/controller.js#L126
- ctrlInstantiate = $controller(modalOptions.controller, ctrlLocals, true, modalOptions.controllerAs);
- if (modalOptions.controllerAs && modalOptions.bindToController) {
- ctrlInstance = ctrlInstantiate.instance;
- ctrlInstance.$close = modalScope.$close;
- ctrlInstance.$dismiss = modalScope.$dismiss;
- angular.extend(ctrlInstance, {
- $resolve: ctrlLocals.$scope.$resolve
- }, providedScope);
- }
-
- ctrlInstance = ctrlInstantiate();
-
- if (angular.isFunction(ctrlInstance.$onInit)) {
- ctrlInstance.$onInit();
- }
- }
-
- if (!modalOptions.component) {
- modal.content = tplAndVars[0];
- }
-
- $modalStack.open(modalInstance, modal);
- modalOpenedDeferred.resolve(true);
-
- function constructLocals(obj, template, instanceOnScope, injectable) {
- obj.$scope = modalScope;
- obj.$scope.$resolve = {};
- if (instanceOnScope) {
- obj.$scope.$uibModalInstance = modalInstance;
- } else {
- obj.$uibModalInstance = modalInstance;
- }
-
- var resolves = template ? tplAndVars[1] : tplAndVars;
- angular.forEach(resolves, function(value, key) {
- if (injectable) {
- obj[key] = value;
- }
-
- obj.$scope.$resolve[key] = value;
- });
- }
- }, function resolveError(reason) {
- modalOpenedDeferred.reject(reason);
- modalResultDeferred.reject(reason);
- })['finally'](function() {
- if (promiseChain === samePromise) {
- promiseChain = null;
- }
- });
-
- return modalInstance;
- };
-
- return $modal;
- }
- ]
- };
-
- return $modalProvider;
- });
-
-angular.module('ui.bootstrap.paging', [])
-/**
- * Helper internal service for generating common controller code between the
- * pager and pagination components
- */
-.factory('uibPaging', ['$parse', function($parse) {
- return {
- create: function(ctrl, $scope, $attrs) {
- ctrl.setNumPages = $attrs.numPages ? $parse($attrs.numPages).assign : angular.noop;
- ctrl.ngModelCtrl = { $setViewValue: angular.noop }; // nullModelCtrl
- ctrl._watchers = [];
-
- ctrl.init = function(ngModelCtrl, config) {
- ctrl.ngModelCtrl = ngModelCtrl;
- ctrl.config = config;
-
- ngModelCtrl.$render = function() {
- ctrl.render();
- };
-
- if ($attrs.itemsPerPage) {
- ctrl._watchers.push($scope.$parent.$watch($attrs.itemsPerPage, function(value) {
- ctrl.itemsPerPage = parseInt(value, 10);
- $scope.totalPages = ctrl.calculateTotalPages();
- ctrl.updatePage();
- }));
- } else {
- ctrl.itemsPerPage = config.itemsPerPage;
- }
-
- $scope.$watch('totalItems', function(newTotal, oldTotal) {
- if (angular.isDefined(newTotal) || newTotal !== oldTotal) {
- $scope.totalPages = ctrl.calculateTotalPages();
- ctrl.updatePage();
- }
- });
- };
-
- ctrl.calculateTotalPages = function() {
- var totalPages = ctrl.itemsPerPage < 1 ? 1 : Math.ceil($scope.totalItems / ctrl.itemsPerPage);
- return Math.max(totalPages || 0, 1);
- };
-
- ctrl.render = function() {
- $scope.page = parseInt(ctrl.ngModelCtrl.$viewValue, 10) || 1;
- };
-
- $scope.selectPage = function(page, evt) {
- if (evt) {
- evt.preventDefault();
- }
-
- var clickAllowed = !$scope.ngDisabled || !evt;
- if (clickAllowed && $scope.page !== page && page > 0 && page <= $scope.totalPages) {
- if (evt && evt.target) {
- evt.target.blur();
- }
- ctrl.ngModelCtrl.$setViewValue(page);
- ctrl.ngModelCtrl.$render();
- }
- };
-
- $scope.getText = function(key) {
- return $scope[key + 'Text'] || ctrl.config[key + 'Text'];
- };
-
- $scope.noPrevious = function() {
- return $scope.page === 1;
- };
-
- $scope.noNext = function() {
- return $scope.page === $scope.totalPages;
- };
-
- ctrl.updatePage = function() {
- ctrl.setNumPages($scope.$parent, $scope.totalPages); // Readonly variable
-
- if ($scope.page > $scope.totalPages) {
- $scope.selectPage($scope.totalPages);
- } else {
- ctrl.ngModelCtrl.$render();
- }
- };
-
- $scope.$on('$destroy', function() {
- while (ctrl._watchers.length) {
- ctrl._watchers.shift()();
- }
- });
- }
- };
-}]);
-
-angular.module('ui.bootstrap.pager', ['ui.bootstrap.paging', 'ui.bootstrap.tabindex'])
-
-.controller('UibPagerController', ['$scope', '$attrs', 'uibPaging', 'uibPagerConfig', function($scope, $attrs, uibPaging, uibPagerConfig) {
- $scope.align = angular.isDefined($attrs.align) ? $scope.$parent.$eval($attrs.align) : uibPagerConfig.align;
-
- uibPaging.create(this, $scope, $attrs);
-}])
-
-.constant('uibPagerConfig', {
- itemsPerPage: 10,
- previousText: '« Previous',
- nextText: 'Next »',
- align: true
-})
-
-.directive('uibPager', ['uibPagerConfig', function(uibPagerConfig) {
- return {
- scope: {
- totalItems: '=',
- previousText: '@',
- nextText: '@',
- ngDisabled: '='
- },
- require: ['uibPager', '?ngModel'],
- restrict: 'A',
- controller: 'UibPagerController',
- controllerAs: 'pager',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/pager/pager.html';
- },
- link: function(scope, element, attrs, ctrls) {
- element.addClass('pager');
- var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- if (!ngModelCtrl) {
- return; // do nothing if no ng-model
- }
-
- paginationCtrl.init(ngModelCtrl, uibPagerConfig);
- }
- };
-}]);
-
-angular.module('ui.bootstrap.pagination', ['ui.bootstrap.paging', 'ui.bootstrap.tabindex'])
-.controller('UibPaginationController', ['$scope', '$attrs', '$parse', 'uibPaging', 'uibPaginationConfig', function($scope, $attrs, $parse, uibPaging, uibPaginationConfig) {
- var ctrl = this;
- // Setup configuration parameters
- var maxSize = angular.isDefined($attrs.maxSize) ? $scope.$parent.$eval($attrs.maxSize) : uibPaginationConfig.maxSize,
- rotate = angular.isDefined($attrs.rotate) ? $scope.$parent.$eval($attrs.rotate) : uibPaginationConfig.rotate,
- forceEllipses = angular.isDefined($attrs.forceEllipses) ? $scope.$parent.$eval($attrs.forceEllipses) : uibPaginationConfig.forceEllipses,
- boundaryLinkNumbers = angular.isDefined($attrs.boundaryLinkNumbers) ? $scope.$parent.$eval($attrs.boundaryLinkNumbers) : uibPaginationConfig.boundaryLinkNumbers,
- pageLabel = angular.isDefined($attrs.pageLabel) ? function(idx) { return $scope.$parent.$eval($attrs.pageLabel, {$page: idx}); } : angular.identity;
- $scope.boundaryLinks = angular.isDefined($attrs.boundaryLinks) ? $scope.$parent.$eval($attrs.boundaryLinks) : uibPaginationConfig.boundaryLinks;
- $scope.directionLinks = angular.isDefined($attrs.directionLinks) ? $scope.$parent.$eval($attrs.directionLinks) : uibPaginationConfig.directionLinks;
-
- uibPaging.create(this, $scope, $attrs);
-
- if ($attrs.maxSize) {
- ctrl._watchers.push($scope.$parent.$watch($parse($attrs.maxSize), function(value) {
- maxSize = parseInt(value, 10);
- ctrl.render();
- }));
- }
-
- // Create page object used in template
- function makePage(number, text, isActive) {
- return {
- number: number,
- text: text,
- active: isActive
- };
- }
-
- function getPages(currentPage, totalPages) {
- var pages = [];
-
- // Default page limits
- var startPage = 1, endPage = totalPages;
- var isMaxSized = angular.isDefined(maxSize) && maxSize < totalPages;
-
- // recompute if maxSize
- if (isMaxSized) {
- if (rotate) {
- // Current page is displayed in the middle of the visible ones
- startPage = Math.max(currentPage - Math.floor(maxSize / 2), 1);
- endPage = startPage + maxSize - 1;
-
- // Adjust if limit is exceeded
- if (endPage > totalPages) {
- endPage = totalPages;
- startPage = endPage - maxSize + 1;
- }
- } else {
- // Visible pages are paginated with maxSize
- startPage = (Math.ceil(currentPage / maxSize) - 1) * maxSize + 1;
-
- // Adjust last page if limit is exceeded
- endPage = Math.min(startPage + maxSize - 1, totalPages);
- }
- }
-
- // Add page number links
- for (var number = startPage; number <= endPage; number++) {
- var page = makePage(number, pageLabel(number), number === currentPage);
- pages.push(page);
- }
-
- // Add links to move between page sets
- if (isMaxSized && maxSize > 0 && (!rotate || forceEllipses || boundaryLinkNumbers)) {
- if (startPage > 1) {
- if (!boundaryLinkNumbers || startPage > 3) { //need ellipsis for all options unless range is too close to beginning
- var previousPageSet = makePage(startPage - 1, '...', false);
- pages.unshift(previousPageSet);
- }
- if (boundaryLinkNumbers) {
- if (startPage === 3) { //need to replace ellipsis when the buttons would be sequential
- var secondPageLink = makePage(2, '2', false);
- pages.unshift(secondPageLink);
- }
- //add the first page
- var firstPageLink = makePage(1, '1', false);
- pages.unshift(firstPageLink);
- }
- }
-
- if (endPage < totalPages) {
- if (!boundaryLinkNumbers || endPage < totalPages - 2) { //need ellipsis for all options unless range is too close to end
- var nextPageSet = makePage(endPage + 1, '...', false);
- pages.push(nextPageSet);
- }
- if (boundaryLinkNumbers) {
- if (endPage === totalPages - 2) { //need to replace ellipsis when the buttons would be sequential
- var secondToLastPageLink = makePage(totalPages - 1, totalPages - 1, false);
- pages.push(secondToLastPageLink);
- }
- //add the last page
- var lastPageLink = makePage(totalPages, totalPages, false);
- pages.push(lastPageLink);
- }
- }
- }
- return pages;
- }
-
- var originalRender = this.render;
- this.render = function() {
- originalRender();
- if ($scope.page > 0 && $scope.page <= $scope.totalPages) {
- $scope.pages = getPages($scope.page, $scope.totalPages);
- }
- };
-}])
-
-.constant('uibPaginationConfig', {
- itemsPerPage: 10,
- boundaryLinks: false,
- boundaryLinkNumbers: false,
- directionLinks: true,
- firstText: 'First',
- previousText: 'Previous',
- nextText: 'Next',
- lastText: 'Last',
- rotate: true,
- forceEllipses: false
-})
-
-.directive('uibPagination', ['$parse', 'uibPaginationConfig', function($parse, uibPaginationConfig) {
- return {
- scope: {
- totalItems: '=',
- firstText: '@',
- previousText: '@',
- nextText: '@',
- lastText: '@',
- ngDisabled:'='
- },
- require: ['uibPagination', '?ngModel'],
- restrict: 'A',
- controller: 'UibPaginationController',
- controllerAs: 'pagination',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/pagination/pagination.html';
- },
- link: function(scope, element, attrs, ctrls) {
- element.addClass('pagination');
- var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- if (!ngModelCtrl) {
- return; // do nothing if no ng-model
- }
-
- paginationCtrl.init(ngModelCtrl, uibPaginationConfig);
- }
- };
-}]);
-
-/**
- * The following features are still outstanding: animation as a
- * function, placement as a function, inside, support for more triggers than
- * just mouse enter/leave, html tooltips, and selector delegation.
- */
-angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.stackedMap'])
-
-/**
- * The $tooltip service creates tooltip- and popover-like directives as well as
- * houses global options for them.
- */
-.provider('$uibTooltip', function() {
- // The default options tooltip and popover.
- var defaultOptions = {
- placement: 'top',
- placementClassPrefix: '',
- animation: true,
- popupDelay: 0,
- popupCloseDelay: 0,
- useContentExp: false
- };
-
- // Default hide triggers for each show trigger
- var triggerMap = {
- 'mouseenter': 'mouseleave',
- 'click': 'click',
- 'outsideClick': 'outsideClick',
- 'focus': 'blur',
- 'none': ''
- };
-
- // The options specified to the provider globally.
- var globalOptions = {};
-
- /**
- * `options({})` allows global configuration of all tooltips in the
- * application.
- *
- * var app = angular.module( 'App', ['ui.bootstrap.tooltip'], function( $tooltipProvider ) {
- * // place tooltips left instead of top by default
- * $tooltipProvider.options( { placement: 'left' } );
- * });
- */
- this.options = function(value) {
- angular.extend(globalOptions, value);
- };
-
- /**
- * This allows you to extend the set of trigger mappings available. E.g.:
- *
- * $tooltipProvider.setTriggers( { 'openTrigger': 'closeTrigger' } );
- */
- this.setTriggers = function setTriggers(triggers) {
- angular.extend(triggerMap, triggers);
- };
-
- /**
- * This is a helper function for translating camel-case to snake_case.
- */
- function snake_case(name) {
- var regexp = /[A-Z]/g;
- var separator = '-';
- return name.replace(regexp, function(letter, pos) {
- return (pos ? separator : '') + letter.toLowerCase();
- });
- }
-
- /**
- * Returns the actual instance of the $tooltip service.
- * TODO support multiple triggers
- */
- this.$get = ['$window', '$compile', '$timeout', '$document', '$uibPosition', '$interpolate', '$rootScope', '$parse', '$$stackedMap', function($window, $compile, $timeout, $document, $position, $interpolate, $rootScope, $parse, $$stackedMap) {
- var openedTooltips = $$stackedMap.createNew();
- $document.on('keyup', keypressListener);
-
- $rootScope.$on('$destroy', function() {
- $document.off('keyup', keypressListener);
- });
-
- function keypressListener(e) {
- if (e.which === 27) {
- var last = openedTooltips.top();
- if (last) {
- last.value.close();
- last = null;
- }
- }
- }
-
- return function $tooltip(ttType, prefix, defaultTriggerShow, options) {
- options = angular.extend({}, defaultOptions, globalOptions, options);
-
- /**
- * Returns an object of show and hide triggers.
- *
- * If a trigger is supplied,
- * it is used to show the tooltip; otherwise, it will use the `trigger`
- * option passed to the `$tooltipProvider.options` method; else it will
- * default to the trigger supplied to this directive factory.
- *
- * The hide trigger is based on the show trigger. If the `trigger` option
- * was passed to the `$tooltipProvider.options` method, it will use the
- * mapped trigger from `triggerMap` or the passed trigger if the map is
- * undefined; otherwise, it uses the `triggerMap` value of the show
- * trigger; else it will just use the show trigger.
- */
- function getTriggers(trigger) {
- var show = (trigger || options.trigger || defaultTriggerShow).split(' ');
- var hide = show.map(function(trigger) {
- return triggerMap[trigger] || trigger;
- });
- return {
- show: show,
- hide: hide
- };
- }
-
- var directiveName = snake_case(ttType);
-
- var startSym = $interpolate.startSymbol();
- var endSym = $interpolate.endSymbol();
- var template =
- '<div '+ directiveName + '-popup ' +
- 'uib-title="' + startSym + 'title' + endSym + '" ' +
- (options.useContentExp ?
- 'content-exp="contentExp()" ' :
- 'content="' + startSym + 'content' + endSym + '" ') +
- 'origin-scope="origScope" ' +
- 'class="uib-position-measure ' + prefix + '" ' +
- 'tooltip-animation-class="fade"' +
- 'uib-tooltip-classes ' +
- 'ng-class="{ in: isOpen }" ' +
- '>' +
- '</div>';
-
- return {
- compile: function(tElem, tAttrs) {
- var tooltipLinker = $compile(template);
-
- return function link(scope, element, attrs, tooltipCtrl) {
- var tooltip;
- var tooltipLinkedScope;
- var transitionTimeout;
- var showTimeout;
- var hideTimeout;
- var positionTimeout;
- var adjustmentTimeout;
- var appendToBody = angular.isDefined(options.appendToBody) ? options.appendToBody : false;
- var triggers = getTriggers(undefined);
- var hasEnableExp = angular.isDefined(attrs[prefix + 'Enable']);
- var ttScope = scope.$new(true);
- var repositionScheduled = false;
- var isOpenParse = angular.isDefined(attrs[prefix + 'IsOpen']) ? $parse(attrs[prefix + 'IsOpen']) : false;
- var contentParse = options.useContentExp ? $parse(attrs[ttType]) : false;
- var observers = [];
- var lastPlacement;
-
- var positionTooltip = function() {
- // check if tooltip exists and is not empty
- if (!tooltip || !tooltip.html()) { return; }
-
- if (!positionTimeout) {
- positionTimeout = $timeout(function() {
- var ttPosition = $position.positionElements(element, tooltip, ttScope.placement, appendToBody);
- var initialHeight = angular.isDefined(tooltip.offsetHeight) ? tooltip.offsetHeight : tooltip.prop('offsetHeight');
- var elementPos = appendToBody ? $position.offset(element) : $position.position(element);
- tooltip.css({ top: ttPosition.top + 'px', left: ttPosition.left + 'px' });
- var placementClasses = ttPosition.placement.split('-');
-
- if (!tooltip.hasClass(placementClasses[0])) {
- tooltip.removeClass(lastPlacement.split('-')[0]);
- tooltip.addClass(placementClasses[0]);
- }
-
- if (!tooltip.hasClass(options.placementClassPrefix + ttPosition.placement)) {
- tooltip.removeClass(options.placementClassPrefix + lastPlacement);
- tooltip.addClass(options.placementClassPrefix + ttPosition.placement);
- }
-
- adjustmentTimeout = $timeout(function() {
- var currentHeight = angular.isDefined(tooltip.offsetHeight) ? tooltip.offsetHeight : tooltip.prop('offsetHeight');
- var adjustment = $position.adjustTop(placementClasses, elementPos, initialHeight, currentHeight);
- if (adjustment) {
- tooltip.css(adjustment);
- }
- adjustmentTimeout = null;
- }, 0, false);
-
- // first time through tt element will have the
- // uib-position-measure class or if the placement
- // has changed we need to position the arrow.
- if (tooltip.hasClass('uib-position-measure')) {
- $position.positionArrow(tooltip, ttPosition.placement);
- tooltip.removeClass('uib-position-measure');
- } else if (lastPlacement !== ttPosition.placement) {
- $position.positionArrow(tooltip, ttPosition.placement);
- }
- lastPlacement = ttPosition.placement;
-
- positionTimeout = null;
- }, 0, false);
- }
- };
-
- // Set up the correct scope to allow transclusion later
- ttScope.origScope = scope;
-
- // By default, the tooltip is not open.
- // TODO add ability to start tooltip opened
- ttScope.isOpen = false;
-
- function toggleTooltipBind() {
- if (!ttScope.isOpen) {
- showTooltipBind();
- } else {
- hideTooltipBind();
- }
- }
-
- // Show the tooltip with delay if specified, otherwise show it immediately
- function showTooltipBind() {
- if (hasEnableExp && !scope.$eval(attrs[prefix + 'Enable'])) {
- return;
- }
-
- cancelHide();
- prepareTooltip();
-
- if (ttScope.popupDelay) {
- // Do nothing if the tooltip was already scheduled to pop-up.
- // This happens if show is triggered multiple times before any hide is triggered.
- if (!showTimeout) {
- showTimeout = $timeout(show, ttScope.popupDelay, false);
- }
- } else {
- show();
- }
- }
-
- function hideTooltipBind() {
- cancelShow();
-
- if (ttScope.popupCloseDelay) {
- if (!hideTimeout) {
- hideTimeout = $timeout(hide, ttScope.popupCloseDelay, false);
- }
- } else {
- hide();
- }
- }
-
- // Show the tooltip popup element.
- function show() {
- cancelShow();
- cancelHide();
-
- // Don't show empty tooltips.
- if (!ttScope.content) {
- return angular.noop;
- }
-
- createTooltip();
-
- // And show the tooltip.
- ttScope.$evalAsync(function() {
- ttScope.isOpen = true;
- assignIsOpen(true);
- positionTooltip();
- });
- }
-
- function cancelShow() {
- if (showTimeout) {
- $timeout.cancel(showTimeout);
- showTimeout = null;
- }
-
- if (positionTimeout) {
- $timeout.cancel(positionTimeout);
- positionTimeout = null;
- }
- }
-
- // Hide the tooltip popup element.
- function hide() {
- if (!ttScope) {
- return;
- }
-
- // First things first: we don't show it anymore.
- ttScope.$evalAsync(function() {
- if (ttScope) {
- ttScope.isOpen = false;
- assignIsOpen(false);
- // And now we remove it from the DOM. However, if we have animation, we
- // need to wait for it to expire beforehand.
- // FIXME: this is a placeholder for a port of the transitions library.
- // The fade transition in TWBS is 150ms.
- if (ttScope.animation) {
- if (!transitionTimeout) {
- transitionTimeout = $timeout(removeTooltip, 150, false);
- }
- } else {
- removeTooltip();
- }
- }
- });
- }
-
- function cancelHide() {
- if (hideTimeout) {
- $timeout.cancel(hideTimeout);
- hideTimeout = null;
- }
-
- if (transitionTimeout) {
- $timeout.cancel(transitionTimeout);
- transitionTimeout = null;
- }
- }
-
- function createTooltip() {
- // There can only be one tooltip element per directive shown at once.
- if (tooltip) {
- return;
- }
-
- tooltipLinkedScope = ttScope.$new();
- tooltip = tooltipLinker(tooltipLinkedScope, function(tooltip) {
- if (appendToBody) {
- $document.find('body').append(tooltip);
- } else {
- element.after(tooltip);
- }
- });
-
- openedTooltips.add(ttScope, {
- close: hide
- });
-
- prepObservers();
- }
-
- function removeTooltip() {
- cancelShow();
- cancelHide();
- unregisterObservers();
-
- if (tooltip) {
- tooltip.remove();
-
- tooltip = null;
- if (adjustmentTimeout) {
- $timeout.cancel(adjustmentTimeout);
- }
- }
-
- openedTooltips.remove(ttScope);
-
- if (tooltipLinkedScope) {
- tooltipLinkedScope.$destroy();
- tooltipLinkedScope = null;
- }
- }
-
- /**
- * Set the initial scope values. Once
- * the tooltip is created, the observers
- * will be added to keep things in sync.
- */
- function prepareTooltip() {
- ttScope.title = attrs[prefix + 'Title'];
- if (contentParse) {
- ttScope.content = contentParse(scope);
- } else {
- ttScope.content = attrs[ttType];
- }
-
- ttScope.popupClass = attrs[prefix + 'Class'];
- ttScope.placement = angular.isDefined(attrs[prefix + 'Placement']) ? attrs[prefix + 'Placement'] : options.placement;
- var placement = $position.parsePlacement(ttScope.placement);
- lastPlacement = placement[1] ? placement[0] + '-' + placement[1] : placement[0];
-
- var delay = parseInt(attrs[prefix + 'PopupDelay'], 10);
- var closeDelay = parseInt(attrs[prefix + 'PopupCloseDelay'], 10);
- ttScope.popupDelay = !isNaN(delay) ? delay : options.popupDelay;
- ttScope.popupCloseDelay = !isNaN(closeDelay) ? closeDelay : options.popupCloseDelay;
- }
-
- function assignIsOpen(isOpen) {
- if (isOpenParse && angular.isFunction(isOpenParse.assign)) {
- isOpenParse.assign(scope, isOpen);
- }
- }
-
- ttScope.contentExp = function() {
- return ttScope.content;
- };
-
- /**
- * Observe the relevant attributes.
- */
- attrs.$observe('disabled', function(val) {
- if (val) {
- cancelShow();
- }
-
- if (val && ttScope.isOpen) {
- hide();
- }
- });
-
- if (isOpenParse) {
- scope.$watch(isOpenParse, function(val) {
- if (ttScope && !val === ttScope.isOpen) {
- toggleTooltipBind();
- }
- });
- }
-
- function prepObservers() {
- observers.length = 0;
-
- if (contentParse) {
- observers.push(
- scope.$watch(contentParse, function(val) {
- ttScope.content = val;
- if (!val && ttScope.isOpen) {
- hide();
- }
- })
- );
-
- observers.push(
- tooltipLinkedScope.$watch(function() {
- if (!repositionScheduled) {
- repositionScheduled = true;
- tooltipLinkedScope.$$postDigest(function() {
- repositionScheduled = false;
- if (ttScope && ttScope.isOpen) {
- positionTooltip();
- }
- });
- }
- })
- );
- } else {
- observers.push(
- attrs.$observe(ttType, function(val) {
- ttScope.content = val;
- if (!val && ttScope.isOpen) {
- hide();
- } else {
- positionTooltip();
- }
- })
- );
- }
-
- observers.push(
- attrs.$observe(prefix + 'Title', function(val) {
- ttScope.title = val;
- if (ttScope.isOpen) {
- positionTooltip();
- }
- })
- );
-
- observers.push(
- attrs.$observe(prefix + 'Placement', function(val) {
- ttScope.placement = val ? val : options.placement;
- if (ttScope.isOpen) {
- positionTooltip();
- }
- })
- );
- }
-
- function unregisterObservers() {
- if (observers.length) {
- angular.forEach(observers, function(observer) {
- observer();
- });
- observers.length = 0;
- }
- }
-
- // hide tooltips/popovers for outsideClick trigger
- function bodyHideTooltipBind(e) {
- if (!ttScope || !ttScope.isOpen || !tooltip) {
- return;
- }
- // make sure the tooltip/popover link or tool tooltip/popover itself were not clicked
- if (!element[0].contains(e.target) && !tooltip[0].contains(e.target)) {
- hideTooltipBind();
- }
- }
-
- var unregisterTriggers = function() {
- triggers.show.forEach(function(trigger) {
- if (trigger === 'outsideClick') {
- element.off('click', toggleTooltipBind);
- } else {
- element.off(trigger, showTooltipBind);
- element.off(trigger, toggleTooltipBind);
- }
- });
- triggers.hide.forEach(function(trigger) {
- if (trigger === 'outsideClick') {
- $document.off('click', bodyHideTooltipBind);
- } else {
- element.off(trigger, hideTooltipBind);
- }
- });
- };
-
- function prepTriggers() {
- var showTriggers = [], hideTriggers = [];
- var val = scope.$eval(attrs[prefix + 'Trigger']);
- unregisterTriggers();
-
- if (angular.isObject(val)) {
- Object.keys(val).forEach(function(key) {
- showTriggers.push(key);
- hideTriggers.push(val[key]);
- });
- triggers = {
- show: showTriggers,
- hide: hideTriggers
- };
- } else {
- triggers = getTriggers(val);
- }
-
- if (triggers.show !== 'none') {
- triggers.show.forEach(function(trigger, idx) {
- if (trigger === 'outsideClick') {
- element.on('click', toggleTooltipBind);
- $document.on('click', bodyHideTooltipBind);
- } else if (trigger === triggers.hide[idx]) {
- element.on(trigger, toggleTooltipBind);
- } else if (trigger) {
- element.on(trigger, showTooltipBind);
- element.on(triggers.hide[idx], hideTooltipBind);
- }
-
- element.on('keypress', function(e) {
- if (e.which === 27) {
- hideTooltipBind();
- }
- });
- });
- }
- }
-
- prepTriggers();
-
- var animation = scope.$eval(attrs[prefix + 'Animation']);
- ttScope.animation = angular.isDefined(animation) ? !!animation : options.animation;
-
- var appendToBodyVal;
- var appendKey = prefix + 'AppendToBody';
- if (appendKey in attrs && attrs[appendKey] === undefined) {
- appendToBodyVal = true;
- } else {
- appendToBodyVal = scope.$eval(attrs[appendKey]);
- }
-
- appendToBody = angular.isDefined(appendToBodyVal) ? appendToBodyVal : appendToBody;
-
- // Make sure tooltip is destroyed and removed.
- scope.$on('$destroy', function onDestroyTooltip() {
- unregisterTriggers();
- removeTooltip();
- ttScope = null;
- });
- };
- }
- };
- };
- }];
-})
-
-// This is mostly ngInclude code but with a custom scope
-.directive('uibTooltipTemplateTransclude', [
- '$animate', '$sce', '$compile', '$templateRequest',
-function ($animate, $sce, $compile, $templateRequest) {
- return {
- link: function(scope, elem, attrs) {
- var origScope = scope.$eval(attrs.tooltipTemplateTranscludeScope);
-
- var changeCounter = 0,
- currentScope,
- previousElement,
- currentElement;
-
- var cleanupLastIncludeContent = function() {
- if (previousElement) {
- previousElement.remove();
- previousElement = null;
- }
-
- if (currentScope) {
- currentScope.$destroy();
- currentScope = null;
- }
-
- if (currentElement) {
- $animate.leave(currentElement).then(function() {
- previousElement = null;
- });
- previousElement = currentElement;
- currentElement = null;
- }
- };
-
- scope.$watch($sce.parseAsResourceUrl(attrs.uibTooltipTemplateTransclude), function(src) {
- var thisChangeId = ++changeCounter;
-
- if (src) {
- //set the 2nd param to true to ignore the template request error so that the inner
- //contents and scope can be cleaned up.
- $templateRequest(src, true).then(function(response) {
- if (thisChangeId !== changeCounter) { return; }
- var newScope = origScope.$new();
- var template = response;
-
- var clone = $compile(template)(newScope, function(clone) {
- cleanupLastIncludeContent();
- $animate.enter(clone, elem);
- });
-
- currentScope = newScope;
- currentElement = clone;
-
- currentScope.$emit('$includeContentLoaded', src);
- }, function() {
- if (thisChangeId === changeCounter) {
- cleanupLastIncludeContent();
- scope.$emit('$includeContentError', src);
- }
- });
- scope.$emit('$includeContentRequested', src);
- } else {
- cleanupLastIncludeContent();
- }
- });
-
- scope.$on('$destroy', cleanupLastIncludeContent);
- }
- };
-}])
-
-/**
- * Note that it's intentional that these classes are *not* applied through $animate.
- * They must not be animated as they're expected to be present on the tooltip on
- * initialization.
- */
-.directive('uibTooltipClasses', ['$uibPosition', function($uibPosition) {
- return {
- restrict: 'A',
- link: function(scope, element, attrs) {
- // need to set the primary position so the
- // arrow has space during position measure.
- // tooltip.positionTooltip()
- if (scope.placement) {
- // // There are no top-left etc... classes
- // // in TWBS, so we need the primary position.
- var position = $uibPosition.parsePlacement(scope.placement);
- element.addClass(position[0]);
- }
-
- if (scope.popupClass) {
- element.addClass(scope.popupClass);
- }
-
- if (scope.animation) {
- element.addClass(attrs.tooltipAnimationClass);
- }
- }
- };
-}])
-
-.directive('uibTooltipPopup', function() {
- return {
- restrict: 'A',
- scope: { content: '@' },
- templateUrl: 'uib/template/tooltip/tooltip-popup.html'
- };
-})
-
-.directive('uibTooltip', [ '$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibTooltip', 'tooltip', 'mouseenter');
-}])
-
-.directive('uibTooltipTemplatePopup', function() {
- return {
- restrict: 'A',
- scope: { contentExp: '&', originScope: '&' },
- templateUrl: 'uib/template/tooltip/tooltip-template-popup.html'
- };
-})
-
-.directive('uibTooltipTemplate', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibTooltipTemplate', 'tooltip', 'mouseenter', {
- useContentExp: true
- });
-}])
-
-.directive('uibTooltipHtmlPopup', function() {
- return {
- restrict: 'A',
- scope: { contentExp: '&' },
- templateUrl: 'uib/template/tooltip/tooltip-html-popup.html'
- };
-})
-
-.directive('uibTooltipHtml', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibTooltipHtml', 'tooltip', 'mouseenter', {
- useContentExp: true
- });
-}]);
-
-/**
- * The following features are still outstanding: popup delay, animation as a
- * function, placement as a function, inside, support for more triggers than
- * just mouse enter/leave, and selector delegatation.
- */
-angular.module('ui.bootstrap.popover', ['ui.bootstrap.tooltip'])
-
-.directive('uibPopoverTemplatePopup', function() {
- return {
- restrict: 'A',
- scope: { uibTitle: '@', contentExp: '&', originScope: '&' },
- templateUrl: 'uib/template/popover/popover-template.html'
- };
-})
-
-.directive('uibPopoverTemplate', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibPopoverTemplate', 'popover', 'click', {
- useContentExp: true
- });
-}])
-
-.directive('uibPopoverHtmlPopup', function() {
- return {
- restrict: 'A',
- scope: { contentExp: '&', uibTitle: '@' },
- templateUrl: 'uib/template/popover/popover-html.html'
- };
-})
-
-.directive('uibPopoverHtml', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibPopoverHtml', 'popover', 'click', {
- useContentExp: true
- });
-}])
-
-.directive('uibPopoverPopup', function() {
- return {
- restrict: 'A',
- scope: { uibTitle: '@', content: '@' },
- templateUrl: 'uib/template/popover/popover.html'
- };
-})
-
-.directive('uibPopover', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibPopover', 'popover', 'click');
-}]);
-
-angular.module('ui.bootstrap.progressbar', [])
-
-.constant('uibProgressConfig', {
- animate: true,
- max: 100
-})
-
-.controller('UibProgressController', ['$scope', '$attrs', 'uibProgressConfig', function($scope, $attrs, progressConfig) {
- var self = this,
- animate = angular.isDefined($attrs.animate) ? $scope.$parent.$eval($attrs.animate) : progressConfig.animate;
-
- this.bars = [];
- $scope.max = getMaxOrDefault();
-
- this.addBar = function(bar, element, attrs) {
- if (!animate) {
- element.css({'transition': 'none'});
- }
-
- this.bars.push(bar);
-
- bar.max = getMaxOrDefault();
- bar.title = attrs && angular.isDefined(attrs.title) ? attrs.title : 'progressbar';
-
- bar.$watch('value', function(value) {
- bar.recalculatePercentage();
- });
-
- bar.recalculatePercentage = function() {
- var totalPercentage = self.bars.reduce(function(total, bar) {
- bar.percent = +(100 * bar.value / bar.max).toFixed(2);
- return total + bar.percent;
- }, 0);
-
- if (totalPercentage > 100) {
- bar.percent -= totalPercentage - 100;
- }
- };
-
- bar.$on('$destroy', function() {
- element = null;
- self.removeBar(bar);
- });
- };
-
- this.removeBar = function(bar) {
- this.bars.splice(this.bars.indexOf(bar), 1);
- this.bars.forEach(function (bar) {
- bar.recalculatePercentage();
- });
- };
-
- //$attrs.$observe('maxParam', function(maxParam) {
- $scope.$watch('maxParam', function(maxParam) {
- self.bars.forEach(function(bar) {
- bar.max = getMaxOrDefault();
- bar.recalculatePercentage();
- });
- });
-
- function getMaxOrDefault () {
- return angular.isDefined($scope.maxParam) ? $scope.maxParam : progressConfig.max;
- }
-}])
-
-.directive('uibProgress', function() {
- return {
- replace: true,
- transclude: true,
- controller: 'UibProgressController',
- require: 'uibProgress',
- scope: {
- maxParam: '=?max'
- },
- templateUrl: 'uib/template/progressbar/progress.html'
- };
-})
-
-.directive('uibBar', function() {
- return {
- replace: true,
- transclude: true,
- require: '^uibProgress',
- scope: {
- value: '=',
- type: '@'
- },
- templateUrl: 'uib/template/progressbar/bar.html',
- link: function(scope, element, attrs, progressCtrl) {
- progressCtrl.addBar(scope, element, attrs);
- }
- };
-})
-
-.directive('uibProgressbar', function() {
- return {
- replace: true,
- transclude: true,
- controller: 'UibProgressController',
- scope: {
- value: '=',
- maxParam: '=?max',
- type: '@'
- },
- templateUrl: 'uib/template/progressbar/progressbar.html',
- link: function(scope, element, attrs, progressCtrl) {
- progressCtrl.addBar(scope, angular.element(element.children()[0]), {title: attrs.title});
- }
- };
-});
-
-angular.module('ui.bootstrap.rating', [])
-
-.constant('uibRatingConfig', {
- max: 5,
- stateOn: null,
- stateOff: null,
- enableReset: true,
- titles: ['one', 'two', 'three', 'four', 'five']
-})
-
-.controller('UibRatingController', ['$scope', '$attrs', 'uibRatingConfig', function($scope, $attrs, ratingConfig) {
- var ngModelCtrl = { $setViewValue: angular.noop },
- self = this;
-
- this.init = function(ngModelCtrl_) {
- ngModelCtrl = ngModelCtrl_;
- ngModelCtrl.$render = this.render;
-
- ngModelCtrl.$formatters.push(function(value) {
- if (angular.isNumber(value) && value << 0 !== value) {
- value = Math.round(value);
- }
-
- return value;
- });
-
- this.stateOn = angular.isDefined($attrs.stateOn) ? $scope.$parent.$eval($attrs.stateOn) : ratingConfig.stateOn;
- this.stateOff = angular.isDefined($attrs.stateOff) ? $scope.$parent.$eval($attrs.stateOff) : ratingConfig.stateOff;
- this.enableReset = angular.isDefined($attrs.enableReset) ?
- $scope.$parent.$eval($attrs.enableReset) : ratingConfig.enableReset;
- var tmpTitles = angular.isDefined($attrs.titles) ? $scope.$parent.$eval($attrs.titles) : ratingConfig.titles;
- this.titles = angular.isArray(tmpTitles) && tmpTitles.length > 0 ?
- tmpTitles : ratingConfig.titles;
-
- var ratingStates = angular.isDefined($attrs.ratingStates) ?
- $scope.$parent.$eval($attrs.ratingStates) :
- new Array(angular.isDefined($attrs.max) ? $scope.$parent.$eval($attrs.max) : ratingConfig.max);
- $scope.range = this.buildTemplateObjects(ratingStates);
- };
-
- this.buildTemplateObjects = function(states) {
- for (var i = 0, n = states.length; i < n; i++) {
- states[i] = angular.extend({ index: i }, { stateOn: this.stateOn, stateOff: this.stateOff, title: this.getTitle(i) }, states[i]);
- }
- return states;
- };
-
- this.getTitle = function(index) {
- if (index >= this.titles.length) {
- return index + 1;
- }
-
- return this.titles[index];
- };
-
- $scope.rate = function(value) {
- if (!$scope.readonly && value >= 0 && value <= $scope.range.length) {
- var newViewValue = self.enableReset && ngModelCtrl.$viewValue === value ? 0 : value;
- ngModelCtrl.$setViewValue(newViewValue);
- ngModelCtrl.$render();
- }
- };
-
- $scope.enter = function(value) {
- if (!$scope.readonly) {
- $scope.value = value;
- }
- $scope.onHover({value: value});
- };
-
- $scope.reset = function() {
- $scope.value = ngModelCtrl.$viewValue;
- $scope.onLeave();
- };
-
- $scope.onKeydown = function(evt) {
- if (/(37|38|39|40)/.test(evt.which)) {
- evt.preventDefault();
- evt.stopPropagation();
- $scope.rate($scope.value + (evt.which === 38 || evt.which === 39 ? 1 : -1));
- }
- };
-
- this.render = function() {
- $scope.value = ngModelCtrl.$viewValue;
- $scope.title = self.getTitle($scope.value - 1);
- };
-}])
-
-.directive('uibRating', function() {
- return {
- require: ['uibRating', 'ngModel'],
- restrict: 'A',
- scope: {
- readonly: '=?readOnly',
- onHover: '&',
- onLeave: '&'
- },
- controller: 'UibRatingController',
- templateUrl: 'uib/template/rating/rating.html',
- link: function(scope, element, attrs, ctrls) {
- var ratingCtrl = ctrls[0], ngModelCtrl = ctrls[1];
- ratingCtrl.init(ngModelCtrl);
- }
- };
-});
-
-angular.module('ui.bootstrap.tabs', [])
-
-.controller('UibTabsetController', ['$scope', function ($scope) {
- var ctrl = this,
- oldIndex;
- ctrl.tabs = [];
-
- ctrl.select = function(index, evt) {
- if (!destroyed) {
- var previousIndex = findTabIndex(oldIndex);
- var previousSelected = ctrl.tabs[previousIndex];
- if (previousSelected) {
- previousSelected.tab.onDeselect({
- $event: evt,
- $selectedIndex: index
- });
- if (evt && evt.isDefaultPrevented()) {
- return;
- }
- previousSelected.tab.active = false;
- }
-
- var selected = ctrl.tabs[index];
- if (selected) {
- selected.tab.onSelect({
- $event: evt
- });
- selected.tab.active = true;
- ctrl.active = selected.index;
- oldIndex = selected.index;
- } else if (!selected && angular.isDefined(oldIndex)) {
- ctrl.active = null;
- oldIndex = null;
- }
- }
- };
-
- ctrl.addTab = function addTab(tab) {
- ctrl.tabs.push({
- tab: tab,
- index: tab.index
- });
- ctrl.tabs.sort(function(t1, t2) {
- if (t1.index > t2.index) {
- return 1;
- }
-
- if (t1.index < t2.index) {
- return -1;
- }
-
- return 0;
- });
-
- if (tab.index === ctrl.active || !angular.isDefined(ctrl.active) && ctrl.tabs.length === 1) {
- var newActiveIndex = findTabIndex(tab.index);
- ctrl.select(newActiveIndex);
- }
- };
-
- ctrl.removeTab = function removeTab(tab) {
- var index;
- for (var i = 0; i < ctrl.tabs.length; i++) {
- if (ctrl.tabs[i].tab === tab) {
- index = i;
- break;
- }
- }
-
- if (ctrl.tabs[index].index === ctrl.active) {
- var newActiveTabIndex = index === ctrl.tabs.length - 1 ?
- index - 1 : index + 1 % ctrl.tabs.length;
- ctrl.select(newActiveTabIndex);
- }
-
- ctrl.tabs.splice(index, 1);
- };
-
- $scope.$watch('tabset.active', function(val) {
- if (angular.isDefined(val) && val !== oldIndex) {
- ctrl.select(findTabIndex(val));
- }
- });
-
- var destroyed;
- $scope.$on('$destroy', function() {
- destroyed = true;
- });
-
- function findTabIndex(index) {
- for (var i = 0; i < ctrl.tabs.length; i++) {
- if (ctrl.tabs[i].index === index) {
- return i;
- }
- }
- }
-}])
-
-.directive('uibTabset', function() {
- return {
- transclude: true,
- replace: true,
- scope: {},
- bindToController: {
- active: '=?',
- type: '@'
- },
- controller: 'UibTabsetController',
- controllerAs: 'tabset',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/tabs/tabset.html';
- },
- link: function(scope, element, attrs) {
- scope.vertical = angular.isDefined(attrs.vertical) ?
- scope.$parent.$eval(attrs.vertical) : false;
- scope.justified = angular.isDefined(attrs.justified) ?
- scope.$parent.$eval(attrs.justified) : false;
- }
- };
-})
-
-.directive('uibTab', ['$parse', function($parse) {
- return {
- require: '^uibTabset',
- replace: true,
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/tabs/tab.html';
- },
- transclude: true,
- scope: {
- heading: '@',
- index: '=?',
- classes: '@?',
- onSelect: '&select', //This callback is called in contentHeadingTransclude
- //once it inserts the tab's content into the dom
- onDeselect: '&deselect'
- },
- controller: function() {
- //Empty controller so other directives can require being 'under' a tab
- },
- controllerAs: 'tab',
- link: function(scope, elm, attrs, tabsetCtrl, transclude) {
- scope.disabled = false;
- if (attrs.disable) {
- scope.$parent.$watch($parse(attrs.disable), function(value) {
- scope.disabled = !! value;
- });
- }
-
- if (angular.isUndefined(attrs.index)) {
- if (tabsetCtrl.tabs && tabsetCtrl.tabs.length) {
- scope.index = Math.max.apply(null, tabsetCtrl.tabs.map(function(t) { return t.index; })) + 1;
- } else {
- scope.index = 0;
- }
- }
-
- if (angular.isUndefined(attrs.classes)) {
- scope.classes = '';
- }
-
- scope.select = function(evt) {
- if (!scope.disabled) {
- var index;
- for (var i = 0; i < tabsetCtrl.tabs.length; i++) {
- if (tabsetCtrl.tabs[i].tab === scope) {
- index = i;
- break;
- }
- }
-
- tabsetCtrl.select(index, evt);
- }
- };
-
- tabsetCtrl.addTab(scope);
- scope.$on('$destroy', function() {
- tabsetCtrl.removeTab(scope);
- });
-
- //We need to transclude later, once the content container is ready.
- //when this link happens, we're inside a tab heading.
- scope.$transcludeFn = transclude;
- }
- };
-}])
-
-.directive('uibTabHeadingTransclude', function() {
- return {
- restrict: 'A',
- require: '^uibTab',
- link: function(scope, elm) {
- scope.$watch('headingElement', function updateHeadingElement(heading) {
- if (heading) {
- elm.html('');
- elm.append(heading);
- }
- });
- }
- };
-})
-
-.directive('uibTabContentTransclude', function() {
- return {
- restrict: 'A',
- require: '^uibTabset',
- link: function(scope, elm, attrs) {
- var tab = scope.$eval(attrs.uibTabContentTransclude).tab;
-
- //Now our tab is ready to be transcluded: both the tab heading area
- //and the tab content area are loaded. Transclude 'em both.
- tab.$transcludeFn(tab.$parent, function(contents) {
- angular.forEach(contents, function(node) {
- if (isTabHeading(node)) {
- //Let tabHeadingTransclude know.
- tab.headingElement = node;
- } else {
- elm.append(node);
- }
- });
- });
- }
- };
-
- function isTabHeading(node) {
- return node.tagName && (
- node.hasAttribute('uib-tab-heading') ||
- node.hasAttribute('data-uib-tab-heading') ||
- node.hasAttribute('x-uib-tab-heading') ||
- node.tagName.toLowerCase() === 'uib-tab-heading' ||
- node.tagName.toLowerCase() === 'data-uib-tab-heading' ||
- node.tagName.toLowerCase() === 'x-uib-tab-heading' ||
- node.tagName.toLowerCase() === 'uib:tab-heading'
- );
- }
-});
-
-angular.module('ui.bootstrap.timepicker', [])
-
-.constant('uibTimepickerConfig', {
- hourStep: 1,
- minuteStep: 1,
- secondStep: 1,
- showMeridian: true,
- showSeconds: false,
- meridians: null,
- readonlyInput: false,
- mousewheel: true,
- arrowkeys: true,
- showSpinners: true,
- templateUrl: 'uib/template/timepicker/timepicker.html'
-})
-
-.controller('UibTimepickerController', ['$scope', '$element', '$attrs', '$parse', '$log', '$locale', 'uibTimepickerConfig', function($scope, $element, $attrs, $parse, $log, $locale, timepickerConfig) {
- var hoursModelCtrl, minutesModelCtrl, secondsModelCtrl;
- var selected = new Date(),
- watchers = [],
- ngModelCtrl = { $setViewValue: angular.noop }, // nullModelCtrl
- meridians = angular.isDefined($attrs.meridians) ? $scope.$parent.$eval($attrs.meridians) : timepickerConfig.meridians || $locale.DATETIME_FORMATS.AMPMS,
- padHours = angular.isDefined($attrs.padHours) ? $scope.$parent.$eval($attrs.padHours) : true;
-
- $scope.tabindex = angular.isDefined($attrs.tabindex) ? $attrs.tabindex : 0;
- $element.removeAttr('tabindex');
-
- this.init = function(ngModelCtrl_, inputs) {
- ngModelCtrl = ngModelCtrl_;
- ngModelCtrl.$render = this.render;
-
- ngModelCtrl.$formatters.unshift(function(modelValue) {
- return modelValue ? new Date(modelValue) : null;
- });
-
- var hoursInputEl = inputs.eq(0),
- minutesInputEl = inputs.eq(1),
- secondsInputEl = inputs.eq(2);
-
- hoursModelCtrl = hoursInputEl.controller('ngModel');
- minutesModelCtrl = minutesInputEl.controller('ngModel');
- secondsModelCtrl = secondsInputEl.controller('ngModel');
-
- var mousewheel = angular.isDefined($attrs.mousewheel) ? $scope.$parent.$eval($attrs.mousewheel) : timepickerConfig.mousewheel;
-
- if (mousewheel) {
- this.setupMousewheelEvents(hoursInputEl, minutesInputEl, secondsInputEl);
- }
-
- var arrowkeys = angular.isDefined($attrs.arrowkeys) ? $scope.$parent.$eval($attrs.arrowkeys) : timepickerConfig.arrowkeys;
- if (arrowkeys) {
- this.setupArrowkeyEvents(hoursInputEl, minutesInputEl, secondsInputEl);
- }
-
- $scope.readonlyInput = angular.isDefined($attrs.readonlyInput) ? $scope.$parent.$eval($attrs.readonlyInput) : timepickerConfig.readonlyInput;
- this.setupInputEvents(hoursInputEl, minutesInputEl, secondsInputEl);
- };
-
- var hourStep = timepickerConfig.hourStep;
- if ($attrs.hourStep) {
- watchers.push($scope.$parent.$watch($parse($attrs.hourStep), function(value) {
- hourStep = +value;
- }));
- }
-
- var minuteStep = timepickerConfig.minuteStep;
- if ($attrs.minuteStep) {
- watchers.push($scope.$parent.$watch($parse($attrs.minuteStep), function(value) {
- minuteStep = +value;
- }));
- }
-
- var min;
- watchers.push($scope.$parent.$watch($parse($attrs.min), function(value) {
- var dt = new Date(value);
- min = isNaN(dt) ? undefined : dt;
- }));
-
- var max;
- watchers.push($scope.$parent.$watch($parse($attrs.max), function(value) {
- var dt = new Date(value);
- max = isNaN(dt) ? undefined : dt;
- }));
-
- var disabled = false;
- if ($attrs.ngDisabled) {
- watchers.push($scope.$parent.$watch($parse($attrs.ngDisabled), function(value) {
- disabled = value;
- }));
- }
-
- $scope.noIncrementHours = function() {
- var incrementedSelected = addMinutes(selected, hourStep * 60);
- return disabled || incrementedSelected > max ||
- incrementedSelected < selected && incrementedSelected < min;
- };
-
- $scope.noDecrementHours = function() {
- var decrementedSelected = addMinutes(selected, -hourStep * 60);
- return disabled || decrementedSelected < min ||
- decrementedSelected > selected && decrementedSelected > max;
- };
-
- $scope.noIncrementMinutes = function() {
- var incrementedSelected = addMinutes(selected, minuteStep);
- return disabled || incrementedSelected > max ||
- incrementedSelected < selected && incrementedSelected < min;
- };
-
- $scope.noDecrementMinutes = function() {
- var decrementedSelected = addMinutes(selected, -minuteStep);
- return disabled || decrementedSelected < min ||
- decrementedSelected > selected && decrementedSelected > max;
- };
-
- $scope.noIncrementSeconds = function() {
- var incrementedSelected = addSeconds(selected, secondStep);
- return disabled || incrementedSelected > max ||
- incrementedSelected < selected && incrementedSelected < min;
- };
-
- $scope.noDecrementSeconds = function() {
- var decrementedSelected = addSeconds(selected, -secondStep);
- return disabled || decrementedSelected < min ||
- decrementedSelected > selected && decrementedSelected > max;
- };
-
- $scope.noToggleMeridian = function() {
- if (selected.getHours() < 12) {
- return disabled || addMinutes(selected, 12 * 60) > max;
- }
-
- return disabled || addMinutes(selected, -12 * 60) < min;
- };
-
- var secondStep = timepickerConfig.secondStep;
- if ($attrs.secondStep) {
- watchers.push($scope.$parent.$watch($parse($attrs.secondStep), function(value) {
- secondStep = +value;
- }));
- }
-
- $scope.showSeconds = timepickerConfig.showSeconds;
- if ($attrs.showSeconds) {
- watchers.push($scope.$parent.$watch($parse($attrs.showSeconds), function(value) {
- $scope.showSeconds = !!value;
- }));
- }
-
- // 12H / 24H mode
- $scope.showMeridian = timepickerConfig.showMeridian;
- if ($attrs.showMeridian) {
- watchers.push($scope.$parent.$watch($parse($attrs.showMeridian), function(value) {
- $scope.showMeridian = !!value;
-
- if (ngModelCtrl.$error.time) {
- // Evaluate from template
- var hours = getHoursFromTemplate(), minutes = getMinutesFromTemplate();
- if (angular.isDefined(hours) && angular.isDefined(minutes)) {
- selected.setHours(hours);
- refresh();
- }
- } else {
- updateTemplate();
- }
- }));
- }
-
- // Get $scope.hours in 24H mode if valid
- function getHoursFromTemplate() {
- var hours = +$scope.hours;
- var valid = $scope.showMeridian ? hours > 0 && hours < 13 :
- hours >= 0 && hours < 24;
- if (!valid || $scope.hours === '') {
- return undefined;
- }
-
- if ($scope.showMeridian) {
- if (hours === 12) {
- hours = 0;
- }
- if ($scope.meridian === meridians[1]) {
- hours = hours + 12;
- }
- }
- return hours;
- }
-
- function getMinutesFromTemplate() {
- var minutes = +$scope.minutes;
- var valid = minutes >= 0 && minutes < 60;
- if (!valid || $scope.minutes === '') {
- return undefined;
- }
- return minutes;
- }
-
- function getSecondsFromTemplate() {
- var seconds = +$scope.seconds;
- return seconds >= 0 && seconds < 60 ? seconds : undefined;
- }
-
- function pad(value, noPad) {
- if (value === null) {
- return '';
- }
-
- return angular.isDefined(value) && value.toString().length < 2 && !noPad ?
- '0' + value : value.toString();
- }
-
- // Respond on mousewheel spin
- this.setupMousewheelEvents = function(hoursInputEl, minutesInputEl, secondsInputEl) {
- var isScrollingUp = function(e) {
- if (e.originalEvent) {
- e = e.originalEvent;
- }
- //pick correct delta variable depending on event
- var delta = e.wheelDelta ? e.wheelDelta : -e.deltaY;
- return e.detail || delta > 0;
- };
-
- hoursInputEl.on('mousewheel wheel', function(e) {
- if (!disabled) {
- $scope.$apply(isScrollingUp(e) ? $scope.incrementHours() : $scope.decrementHours());
- }
- e.preventDefault();
- });
-
- minutesInputEl.on('mousewheel wheel', function(e) {
- if (!disabled) {
- $scope.$apply(isScrollingUp(e) ? $scope.incrementMinutes() : $scope.decrementMinutes());
- }
- e.preventDefault();
- });
-
- secondsInputEl.on('mousewheel wheel', function(e) {
- if (!disabled) {
- $scope.$apply(isScrollingUp(e) ? $scope.incrementSeconds() : $scope.decrementSeconds());
- }
- e.preventDefault();
- });
- };
-
- // Respond on up/down arrowkeys
- this.setupArrowkeyEvents = function(hoursInputEl, minutesInputEl, secondsInputEl) {
- hoursInputEl.on('keydown', function(e) {
- if (!disabled) {
- if (e.which === 38) { // up
- e.preventDefault();
- $scope.incrementHours();
- $scope.$apply();
- } else if (e.which === 40) { // down
- e.preventDefault();
- $scope.decrementHours();
- $scope.$apply();
- }
- }
- });
-
- minutesInputEl.on('keydown', function(e) {
- if (!disabled) {
- if (e.which === 38) { // up
- e.preventDefault();
- $scope.incrementMinutes();
- $scope.$apply();
- } else if (e.which === 40) { // down
- e.preventDefault();
- $scope.decrementMinutes();
- $scope.$apply();
- }
- }
- });
-
- secondsInputEl.on('keydown', function(e) {
- if (!disabled) {
- if (e.which === 38) { // up
- e.preventDefault();
- $scope.incrementSeconds();
- $scope.$apply();
- } else if (e.which === 40) { // down
- e.preventDefault();
- $scope.decrementSeconds();
- $scope.$apply();
- }
- }
- });
- };
-
- this.setupInputEvents = function(hoursInputEl, minutesInputEl, secondsInputEl) {
- if ($scope.readonlyInput) {
- $scope.updateHours = angular.noop;
- $scope.updateMinutes = angular.noop;
- $scope.updateSeconds = angular.noop;
- return;
- }
-
- var invalidate = function(invalidHours, invalidMinutes, invalidSeconds) {
- ngModelCtrl.$setViewValue(null);
- ngModelCtrl.$setValidity('time', false);
- if (angular.isDefined(invalidHours)) {
- $scope.invalidHours = invalidHours;
- if (hoursModelCtrl) {
- hoursModelCtrl.$setValidity('hours', false);
- }
- }
-
- if (angular.isDefined(invalidMinutes)) {
- $scope.invalidMinutes = invalidMinutes;
- if (minutesModelCtrl) {
- minutesModelCtrl.$setValidity('minutes', false);
- }
- }
-
- if (angular.isDefined(invalidSeconds)) {
- $scope.invalidSeconds = invalidSeconds;
- if (secondsModelCtrl) {
- secondsModelCtrl.$setValidity('seconds', false);
- }
- }
- };
-
- $scope.updateHours = function() {
- var hours = getHoursFromTemplate(),
- minutes = getMinutesFromTemplate();
-
- ngModelCtrl.$setDirty();
-
- if (angular.isDefined(hours) && angular.isDefined(minutes)) {
- selected.setHours(hours);
- selected.setMinutes(minutes);
- if (selected < min || selected > max) {
- invalidate(true);
- } else {
- refresh('h');
- }
- } else {
- invalidate(true);
- }
- };
-
- hoursInputEl.on('blur', function(e) {
- ngModelCtrl.$setTouched();
- if (modelIsEmpty()) {
- makeValid();
- } else if ($scope.hours === null || $scope.hours === '') {
- invalidate(true);
- } else if (!$scope.invalidHours && $scope.hours < 10) {
- $scope.$apply(function() {
- $scope.hours = pad($scope.hours, !padHours);
- });
- }
- });
-
- $scope.updateMinutes = function() {
- var minutes = getMinutesFromTemplate(),
- hours = getHoursFromTemplate();
-
- ngModelCtrl.$setDirty();
-
- if (angular.isDefined(minutes) && angular.isDefined(hours)) {
- selected.setHours(hours);
- selected.setMinutes(minutes);
- if (selected < min || selected > max) {
- invalidate(undefined, true);
- } else {
- refresh('m');
- }
- } else {
- invalidate(undefined, true);
- }
- };
-
- minutesInputEl.on('blur', function(e) {
- ngModelCtrl.$setTouched();
- if (modelIsEmpty()) {
- makeValid();
- } else if ($scope.minutes === null) {
- invalidate(undefined, true);
- } else if (!$scope.invalidMinutes && $scope.minutes < 10) {
- $scope.$apply(function() {
- $scope.minutes = pad($scope.minutes);
- });
- }
- });
-
- $scope.updateSeconds = function() {
- var seconds = getSecondsFromTemplate();
-
- ngModelCtrl.$setDirty();
-
- if (angular.isDefined(seconds)) {
- selected.setSeconds(seconds);
- refresh('s');
- } else {
- invalidate(undefined, undefined, true);
- }
- };
-
- secondsInputEl.on('blur', function(e) {
- if (modelIsEmpty()) {
- makeValid();
- } else if (!$scope.invalidSeconds && $scope.seconds < 10) {
- $scope.$apply( function() {
- $scope.seconds = pad($scope.seconds);
- });
- }
- });
-
- };
-
- this.render = function() {
- var date = ngModelCtrl.$viewValue;
-
- if (isNaN(date)) {
- ngModelCtrl.$setValidity('time', false);
- $log.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.');
- } else {
- if (date) {
- selected = date;
- }
-
- if (selected < min || selected > max) {
- ngModelCtrl.$setValidity('time', false);
- $scope.invalidHours = true;
- $scope.invalidMinutes = true;
- } else {
- makeValid();
- }
- updateTemplate();
- }
- };
-
- // Call internally when we know that model is valid.
- function refresh(keyboardChange) {
- makeValid();
- ngModelCtrl.$setViewValue(new Date(selected));
- updateTemplate(keyboardChange);
- }
-
- function makeValid() {
- if (hoursModelCtrl) {
- hoursModelCtrl.$setValidity('hours', true);
- }
-
- if (minutesModelCtrl) {
- minutesModelCtrl.$setValidity('minutes', true);
- }
-
- if (secondsModelCtrl) {
- secondsModelCtrl.$setValidity('seconds', true);
- }
-
- ngModelCtrl.$setValidity('time', true);
- $scope.invalidHours = false;
- $scope.invalidMinutes = false;
- $scope.invalidSeconds = false;
- }
-
- function updateTemplate(keyboardChange) {
- if (!ngModelCtrl.$modelValue) {
- $scope.hours = null;
- $scope.minutes = null;
- $scope.seconds = null;
- $scope.meridian = meridians[0];
- } else {
- var hours = selected.getHours(),
- minutes = selected.getMinutes(),
- seconds = selected.getSeconds();
-
- if ($scope.showMeridian) {
- hours = hours === 0 || hours === 12 ? 12 : hours % 12; // Convert 24 to 12 hour system
- }
-
- $scope.hours = keyboardChange === 'h' ? hours : pad(hours, !padHours);
- if (keyboardChange !== 'm') {
- $scope.minutes = pad(minutes);
- }
- $scope.meridian = selected.getHours() < 12 ? meridians[0] : meridians[1];
-
- if (keyboardChange !== 's') {
- $scope.seconds = pad(seconds);
- }
- $scope.meridian = selected.getHours() < 12 ? meridians[0] : meridians[1];
- }
- }
-
- function addSecondsToSelected(seconds) {
- selected = addSeconds(selected, seconds);
- refresh();
- }
-
- function addMinutes(selected, minutes) {
- return addSeconds(selected, minutes*60);
- }
-
- function addSeconds(date, seconds) {
- var dt = new Date(date.getTime() + seconds * 1000);
- var newDate = new Date(date);
- newDate.setHours(dt.getHours(), dt.getMinutes(), dt.getSeconds());
- return newDate;
- }
-
- function modelIsEmpty() {
- return ($scope.hours === null || $scope.hours === '') &&
- ($scope.minutes === null || $scope.minutes === '') &&
- (!$scope.showSeconds || $scope.showSeconds && ($scope.seconds === null || $scope.seconds === ''));
- }
-
- $scope.showSpinners = angular.isDefined($attrs.showSpinners) ?
- $scope.$parent.$eval($attrs.showSpinners) : timepickerConfig.showSpinners;
-
- $scope.incrementHours = function() {
- if (!$scope.noIncrementHours()) {
- addSecondsToSelected(hourStep * 60 * 60);
- }
- };
-
- $scope.decrementHours = function() {
- if (!$scope.noDecrementHours()) {
- addSecondsToSelected(-hourStep * 60 * 60);
- }
- };
-
- $scope.incrementMinutes = function() {
- if (!$scope.noIncrementMinutes()) {
- addSecondsToSelected(minuteStep * 60);
- }
- };
-
- $scope.decrementMinutes = function() {
- if (!$scope.noDecrementMinutes()) {
- addSecondsToSelected(-minuteStep * 60);
- }
- };
-
- $scope.incrementSeconds = function() {
- if (!$scope.noIncrementSeconds()) {
- addSecondsToSelected(secondStep);
- }
- };
-
- $scope.decrementSeconds = function() {
- if (!$scope.noDecrementSeconds()) {
- addSecondsToSelected(-secondStep);
- }
- };
-
- $scope.toggleMeridian = function() {
- var minutes = getMinutesFromTemplate(),
- hours = getHoursFromTemplate();
-
- if (!$scope.noToggleMeridian()) {
- if (angular.isDefined(minutes) && angular.isDefined(hours)) {
- addSecondsToSelected(12 * 60 * (selected.getHours() < 12 ? 60 : -60));
- } else {
- $scope.meridian = $scope.meridian === meridians[0] ? meridians[1] : meridians[0];
- }
- }
- };
-
- $scope.blur = function() {
- ngModelCtrl.$setTouched();
- };
-
- $scope.$on('$destroy', function() {
- while (watchers.length) {
- watchers.shift()();
- }
- });
-}])
-
-.directive('uibTimepicker', ['uibTimepickerConfig', function(uibTimepickerConfig) {
- return {
- require: ['uibTimepicker', '?^ngModel'],
- restrict: 'A',
- controller: 'UibTimepickerController',
- controllerAs: 'timepicker',
- scope: {},
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || uibTimepickerConfig.templateUrl;
- },
- link: function(scope, element, attrs, ctrls) {
- var timepickerCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- if (ngModelCtrl) {
- timepickerCtrl.init(ngModelCtrl, element.find('input'));
- }
- }
- };
-}]);
-
-angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap.position'])
-
-/**
- * A helper service that can parse typeahead's syntax (string provided by users)
- * Extracted to a separate service for ease of unit testing
- */
- .factory('uibTypeaheadParser', ['$parse', function($parse) {
- // 000001111111100000000000002222222200000000000000003333333333333330000000000044444444000
- var TYPEAHEAD_REGEXP = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;
- return {
- parse: function(input) {
- var match = input.match(TYPEAHEAD_REGEXP);
- if (!match) {
- throw new Error(
- 'Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_"' +
- ' but got "' + input + '".');
- }
-
- return {
- itemName: match[3],
- source: $parse(match[4]),
- viewMapper: $parse(match[2] || match[1]),
- modelMapper: $parse(match[1])
- };
- }
- };
- }])
-
- .controller('UibTypeaheadController', ['$scope', '$element', '$attrs', '$compile', '$parse', '$q', '$timeout', '$document', '$window', '$rootScope', '$$debounce', '$uibPosition', 'uibTypeaheadParser',
- function(originalScope, element, attrs, $compile, $parse, $q, $timeout, $document, $window, $rootScope, $$debounce, $position, typeaheadParser) {
- var HOT_KEYS = [9, 13, 27, 38, 40];
- var eventDebounceTime = 200;
- var modelCtrl, ngModelOptions;
- //SUPPORTED ATTRIBUTES (OPTIONS)
-
- //minimal no of characters that needs to be entered before typeahead kicks-in
- var minLength = originalScope.$eval(attrs.typeaheadMinLength);
- if (!minLength && minLength !== 0) {
- minLength = 1;
- }
-
- originalScope.$watch(attrs.typeaheadMinLength, function (newVal) {
- minLength = !newVal && newVal !== 0 ? 1 : newVal;
- });
-
- //minimal wait time after last character typed before typeahead kicks-in
- var waitTime = originalScope.$eval(attrs.typeaheadWaitMs) || 0;
-
- //should it restrict model values to the ones selected from the popup only?
- var isEditable = originalScope.$eval(attrs.typeaheadEditable) !== false;
- originalScope.$watch(attrs.typeaheadEditable, function (newVal) {
- isEditable = newVal !== false;
- });
-
- //binding to a variable that indicates if matches are being retrieved asynchronously
- var isLoadingSetter = $parse(attrs.typeaheadLoading).assign || angular.noop;
-
- //a function to determine if an event should cause selection
- var isSelectEvent = attrs.typeaheadShouldSelect ? $parse(attrs.typeaheadShouldSelect) : function(scope, vals) {
- var evt = vals.$event;
- return evt.which === 13 || evt.which === 9;
- };
-
- //a callback executed when a match is selected
- var onSelectCallback = $parse(attrs.typeaheadOnSelect);
-
- //should it select highlighted popup value when losing focus?
- var isSelectOnBlur = angular.isDefined(attrs.typeaheadSelectOnBlur) ? originalScope.$eval(attrs.typeaheadSelectOnBlur) : false;
-
- //binding to a variable that indicates if there were no results after the query is completed
- var isNoResultsSetter = $parse(attrs.typeaheadNoResults).assign || angular.noop;
-
- var inputFormatter = attrs.typeaheadInputFormatter ? $parse(attrs.typeaheadInputFormatter) : undefined;
-
- var appendToBody = attrs.typeaheadAppendToBody ? originalScope.$eval(attrs.typeaheadAppendToBody) : false;
-
- var appendTo = attrs.typeaheadAppendTo ?
- originalScope.$eval(attrs.typeaheadAppendTo) : null;
-
- var focusFirst = originalScope.$eval(attrs.typeaheadFocusFirst) !== false;
-
- //If input matches an item of the list exactly, select it automatically
- var selectOnExact = attrs.typeaheadSelectOnExact ? originalScope.$eval(attrs.typeaheadSelectOnExact) : false;
-
- //binding to a variable that indicates if dropdown is open
- var isOpenSetter = $parse(attrs.typeaheadIsOpen).assign || angular.noop;
-
- var showHint = originalScope.$eval(attrs.typeaheadShowHint) || false;
-
- //INTERNAL VARIABLES
-
- //model setter executed upon match selection
- var parsedModel = $parse(attrs.ngModel);
- var invokeModelSetter = $parse(attrs.ngModel + '($$$p)');
- var $setModelValue = function(scope, newValue) {
- if (angular.isFunction(parsedModel(originalScope)) &&
- ngModelOptions && ngModelOptions.$options && ngModelOptions.$options.getterSetter) {
- return invokeModelSetter(scope, {$$$p: newValue});
- }
-
- return parsedModel.assign(scope, newValue);
- };
-
- //expressions used by typeahead
- var parserResult = typeaheadParser.parse(attrs.uibTypeahead);
-
- var hasFocus;
-
- //Used to avoid bug in iOS webview where iOS keyboard does not fire
- //mousedown & mouseup events
- //Issue #3699
- var selected;
-
- //create a child scope for the typeahead directive so we are not polluting original scope
- //with typeahead-specific data (matches, query etc.)
- var scope = originalScope.$new();
- var offDestroy = originalScope.$on('$destroy', function() {
- scope.$destroy();
- });
- scope.$on('$destroy', offDestroy);
-
- // WAI-ARIA
- var popupId = 'typeahead-' + scope.$id + '-' + Math.floor(Math.random() * 10000);
- element.attr({
- 'aria-autocomplete': 'list',
- 'aria-expanded': false,
- 'aria-owns': popupId
- });
-
- var inputsContainer, hintInputElem;
- //add read-only input to show hint
- if (showHint) {
- inputsContainer = angular.element('<div></div>');
- inputsContainer.css('position', 'relative');
- element.after(inputsContainer);
- hintInputElem = element.clone();
- hintInputElem.attr('placeholder', '');
- hintInputElem.attr('tabindex', '-1');
- hintInputElem.val('');
- hintInputElem.css({
- 'position': 'absolute',
- 'top': '0px',
- 'left': '0px',
- 'border-color': 'transparent',
- 'box-shadow': 'none',
- 'opacity': 1,
- 'background': 'none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)',
- 'color': '#999'
- });
- element.css({
- 'position': 'relative',
- 'vertical-align': 'top',
- 'background-color': 'transparent'
- });
-
- if (hintInputElem.attr('id')) {
- hintInputElem.removeAttr('id'); // remove duplicate id if present.
- }
- inputsContainer.append(hintInputElem);
- hintInputElem.after(element);
- }
-
- //pop-up element used to display matches
- var popUpEl = angular.element('<div uib-typeahead-popup></div>');
- popUpEl.attr({
- id: popupId,
- matches: 'matches',
- active: 'activeIdx',
- select: 'select(activeIdx, evt)',
- 'move-in-progress': 'moveInProgress',
- query: 'query',
- position: 'position',
- 'assign-is-open': 'assignIsOpen(isOpen)',
- debounce: 'debounceUpdate'
- });
- //custom item template
- if (angular.isDefined(attrs.typeaheadTemplateUrl)) {
- popUpEl.attr('template-url', attrs.typeaheadTemplateUrl);
- }
-
- if (angular.isDefined(attrs.typeaheadPopupTemplateUrl)) {
- popUpEl.attr('popup-template-url', attrs.typeaheadPopupTemplateUrl);
- }
-
- var resetHint = function() {
- if (showHint) {
- hintInputElem.val('');
- }
- };
-
- var resetMatches = function() {
- scope.matches = [];
- scope.activeIdx = -1;
- element.attr('aria-expanded', false);
- resetHint();
- };
-
- var getMatchId = function(index) {
- return popupId + '-option-' + index;
- };
-
- // Indicate that the specified match is the active (pre-selected) item in the list owned by this typeahead.
- // This attribute is added or removed automatically when the `activeIdx` changes.
- scope.$watch('activeIdx', function(index) {
- if (index < 0) {
- element.removeAttr('aria-activedescendant');
- } else {
- element.attr('aria-activedescendant', getMatchId(index));
- }
- });
-
- var inputIsExactMatch = function(inputValue, index) {
- if (scope.matches.length > index && inputValue) {
- return inputValue.toUpperCase() === scope.matches[index].label.toUpperCase();
- }
-
- return false;
- };
-
- var getMatchesAsync = function(inputValue, evt) {
- var locals = {$viewValue: inputValue};
- isLoadingSetter(originalScope, true);
- isNoResultsSetter(originalScope, false);
- $q.when(parserResult.source(originalScope, locals)).then(function(matches) {
- //it might happen that several async queries were in progress if a user were typing fast
- //but we are interested only in responses that correspond to the current view value
- var onCurrentRequest = inputValue === modelCtrl.$viewValue;
- if (onCurrentRequest && hasFocus) {
- if (matches && matches.length > 0) {
- scope.activeIdx = focusFirst ? 0 : -1;
- isNoResultsSetter(originalScope, false);
- scope.matches.length = 0;
-
- //transform labels
- for (var i = 0; i < matches.length; i++) {
- locals[parserResult.itemName] = matches[i];
- scope.matches.push({
- id: getMatchId(i),
- label: parserResult.viewMapper(scope, locals),
- model: matches[i]
- });
- }
-
- scope.query = inputValue;
- //position pop-up with matches - we need to re-calculate its position each time we are opening a window
- //with matches as a pop-up might be absolute-positioned and position of an input might have changed on a page
- //due to other elements being rendered
- recalculatePosition();
-
- element.attr('aria-expanded', true);
-
- //Select the single remaining option if user input matches
- if (selectOnExact && scope.matches.length === 1 && inputIsExactMatch(inputValue, 0)) {
- if (angular.isNumber(scope.debounceUpdate) || angular.isObject(scope.debounceUpdate)) {
- $$debounce(function() {
- scope.select(0, evt);
- }, angular.isNumber(scope.debounceUpdate) ? scope.debounceUpdate : scope.debounceUpdate['default']);
- } else {
- scope.select(0, evt);
- }
- }
-
- if (showHint) {
- var firstLabel = scope.matches[0].label;
- if (angular.isString(inputValue) &&
- inputValue.length > 0 &&
- firstLabel.slice(0, inputValue.length).toUpperCase() === inputValue.toUpperCase()) {
- hintInputElem.val(inputValue + firstLabel.slice(inputValue.length));
- } else {
- hintInputElem.val('');
- }
- }
- } else {
- resetMatches();
- isNoResultsSetter(originalScope, true);
- }
- }
- if (onCurrentRequest) {
- isLoadingSetter(originalScope, false);
- }
- }, function() {
- resetMatches();
- isLoadingSetter(originalScope, false);
- isNoResultsSetter(originalScope, true);
- });
- };
-
- // bind events only if appendToBody params exist - performance feature
- if (appendToBody) {
- angular.element($window).on('resize', fireRecalculating);
- $document.find('body').on('scroll', fireRecalculating);
- }
-
- // Declare the debounced function outside recalculating for
- // proper debouncing
- var debouncedRecalculate = $$debounce(function() {
- // if popup is visible
- if (scope.matches.length) {
- recalculatePosition();
- }
-
- scope.moveInProgress = false;
- }, eventDebounceTime);
-
- // Default progress type
- scope.moveInProgress = false;
-
- function fireRecalculating() {
- if (!scope.moveInProgress) {
- scope.moveInProgress = true;
- scope.$digest();
- }
-
- debouncedRecalculate();
- }
-
- // recalculate actual position and set new values to scope
- // after digest loop is popup in right position
- function recalculatePosition() {
- scope.position = appendToBody ? $position.offset(element) : $position.position(element);
- scope.position.top += element.prop('offsetHeight');
- }
-
- //we need to propagate user's query so we can higlight matches
- scope.query = undefined;
-
- //Declare the timeout promise var outside the function scope so that stacked calls can be cancelled later
- var timeoutPromise;
-
- var scheduleSearchWithTimeout = function(inputValue) {
- timeoutPromise = $timeout(function() {
- getMatchesAsync(inputValue);
- }, waitTime);
- };
-
- var cancelPreviousTimeout = function() {
- if (timeoutPromise) {
- $timeout.cancel(timeoutPromise);
- }
- };
-
- resetMatches();
-
- scope.assignIsOpen = function (isOpen) {
- isOpenSetter(originalScope, isOpen);
- };
-
- scope.select = function(activeIdx, evt) {
- //called from within the $digest() cycle
- var locals = {};
- var model, item;
-
- selected = true;
- locals[parserResult.itemName] = item = scope.matches[activeIdx].model;
- model = parserResult.modelMapper(originalScope, locals);
- $setModelValue(originalScope, model);
- modelCtrl.$setValidity('editable', true);
- modelCtrl.$setValidity('parse', true);
-
- onSelectCallback(originalScope, {
- $item: item,
- $model: model,
- $label: parserResult.viewMapper(originalScope, locals),
- $event: evt
- });
-
- resetMatches();
-
- //return focus to the input element if a match was selected via a mouse click event
- // use timeout to avoid $rootScope:inprog error
- if (scope.$eval(attrs.typeaheadFocusOnSelect) !== false) {
- $timeout(function() { element[0].focus(); }, 0, false);
- }
- };
-
- //bind keyboard events: arrows up(38) / down(40), enter(13) and tab(9), esc(27)
- element.on('keydown', function(evt) {
- //typeahead is open and an "interesting" key was pressed
- if (scope.matches.length === 0 || HOT_KEYS.indexOf(evt.which) === -1) {
- return;
- }
-
- var shouldSelect = isSelectEvent(originalScope, {$event: evt});
-
- /**
- * if there's nothing selected (i.e. focusFirst) and enter or tab is hit
- * or
- * shift + tab is pressed to bring focus to the previous element
- * then clear the results
- */
- if (scope.activeIdx === -1 && shouldSelect || evt.which === 9 && !!evt.shiftKey) {
- resetMatches();
- scope.$digest();
- return;
- }
-
- evt.preventDefault();
- var target;
- switch (evt.which) {
- case 27: // escape
- evt.stopPropagation();
-
- resetMatches();
- originalScope.$digest();
- break;
- case 38: // up arrow
- scope.activeIdx = (scope.activeIdx > 0 ? scope.activeIdx : scope.matches.length) - 1;
- scope.$digest();
- target = popUpEl[0].querySelectorAll('.uib-typeahead-match')[scope.activeIdx];
- target.parentNode.scrollTop = target.offsetTop;
- break;
- case 40: // down arrow
- scope.activeIdx = (scope.activeIdx + 1) % scope.matches.length;
- scope.$digest();
- target = popUpEl[0].querySelectorAll('.uib-typeahead-match')[scope.activeIdx];
- target.parentNode.scrollTop = target.offsetTop;
- break;
- default:
- if (shouldSelect) {
- scope.$apply(function() {
- if (angular.isNumber(scope.debounceUpdate) || angular.isObject(scope.debounceUpdate)) {
- $$debounce(function() {
- scope.select(scope.activeIdx, evt);
- }, angular.isNumber(scope.debounceUpdate) ? scope.debounceUpdate : scope.debounceUpdate['default']);
- } else {
- scope.select(scope.activeIdx, evt);
- }
- });
- }
- }
- });
-
- element.on('focus', function (evt) {
- hasFocus = true;
- if (minLength === 0 && !modelCtrl.$viewValue) {
- $timeout(function() {
- getMatchesAsync(modelCtrl.$viewValue, evt);
- }, 0);
- }
- });
-
- element.on('blur', function(evt) {
- if (isSelectOnBlur && scope.matches.length && scope.activeIdx !== -1 && !selected) {
- selected = true;
- scope.$apply(function() {
- if (angular.isObject(scope.debounceUpdate) && angular.isNumber(scope.debounceUpdate.blur)) {
- $$debounce(function() {
- scope.select(scope.activeIdx, evt);
- }, scope.debounceUpdate.blur);
- } else {
- scope.select(scope.activeIdx, evt);
- }
- });
- }
- if (!isEditable && modelCtrl.$error.editable) {
- modelCtrl.$setViewValue();
- scope.$apply(function() {
- // Reset validity as we are clearing
- modelCtrl.$setValidity('editable', true);
- modelCtrl.$setValidity('parse', true);
- });
- element.val('');
- }
- hasFocus = false;
- selected = false;
- });
-
- // Keep reference to click handler to unbind it.
- var dismissClickHandler = function(evt) {
- // Issue #3973
- // Firefox treats right click as a click on document
- if (element[0] !== evt.target && evt.which !== 3 && scope.matches.length !== 0) {
- resetMatches();
- if (!$rootScope.$$phase) {
- originalScope.$digest();
- }
- }
- };
-
- $document.on('click', dismissClickHandler);
-
- originalScope.$on('$destroy', function() {
- $document.off('click', dismissClickHandler);
- if (appendToBody || appendTo) {
- $popup.remove();
- }
-
- if (appendToBody) {
- angular.element($window).off('resize', fireRecalculating);
- $document.find('body').off('scroll', fireRecalculating);
- }
- // Prevent jQuery cache memory leak
- popUpEl.remove();
-
- if (showHint) {
- inputsContainer.remove();
- }
- });
-
- var $popup = $compile(popUpEl)(scope);
-
- if (appendToBody) {
- $document.find('body').append($popup);
- } else if (appendTo) {
- angular.element(appendTo).eq(0).append($popup);
- } else {
- element.after($popup);
- }
-
- this.init = function(_modelCtrl, _ngModelOptions) {
- modelCtrl = _modelCtrl;
- ngModelOptions = _ngModelOptions;
-
- scope.debounceUpdate = modelCtrl.$options && $parse(modelCtrl.$options.debounce)(originalScope);
-
- //plug into $parsers pipeline to open a typeahead on view changes initiated from DOM
- //$parsers kick-in on all the changes coming from the view as well as manually triggered by $setViewValue
- modelCtrl.$parsers.unshift(function(inputValue) {
- hasFocus = true;
-
- if (minLength === 0 || inputValue && inputValue.length >= minLength) {
- if (waitTime > 0) {
- cancelPreviousTimeout();
- scheduleSearchWithTimeout(inputValue);
- } else {
- getMatchesAsync(inputValue);
- }
- } else {
- isLoadingSetter(originalScope, false);
- cancelPreviousTimeout();
- resetMatches();
- }
-
- if (isEditable) {
- return inputValue;
- }
-
- if (!inputValue) {
- // Reset in case user had typed something previously.
- modelCtrl.$setValidity('editable', true);
- return null;
- }
-
- modelCtrl.$setValidity('editable', false);
- return undefined;
- });
-
- modelCtrl.$formatters.push(function(modelValue) {
- var candidateViewValue, emptyViewValue;
- var locals = {};
-
- // The validity may be set to false via $parsers (see above) if
- // the model is restricted to selected values. If the model
- // is set manually it is considered to be valid.
- if (!isEditable) {
- modelCtrl.$setValidity('editable', true);
- }
-
- if (inputFormatter) {
- locals.$model = modelValue;
- return inputFormatter(originalScope, locals);
- }
-
- //it might happen that we don't have enough info to properly render input value
- //we need to check for this situation and simply return model value if we can't apply custom formatting
- locals[parserResult.itemName] = modelValue;
- candidateViewValue = parserResult.viewMapper(originalScope, locals);
- locals[parserResult.itemName] = undefined;
- emptyViewValue = parserResult.viewMapper(originalScope, locals);
-
- return candidateViewValue !== emptyViewValue ? candidateViewValue : modelValue;
- });
- };
- }])
-
- .directive('uibTypeahead', function() {
- return {
- controller: 'UibTypeaheadController',
- require: ['ngModel', '^?ngModelOptions', 'uibTypeahead'],
- link: function(originalScope, element, attrs, ctrls) {
- ctrls[2].init(ctrls[0], ctrls[1]);
- }
- };
- })
-
- .directive('uibTypeaheadPopup', ['$$debounce', function($$debounce) {
- return {
- scope: {
- matches: '=',
- query: '=',
- active: '=',
- position: '&',
- moveInProgress: '=',
- select: '&',
- assignIsOpen: '&',
- debounce: '&'
- },
- replace: true,
- templateUrl: function(element, attrs) {
- return attrs.popupTemplateUrl || 'uib/template/typeahead/typeahead-popup.html';
- },
- link: function(scope, element, attrs) {
- scope.templateUrl = attrs.templateUrl;
-
- scope.isOpen = function() {
- var isDropdownOpen = scope.matches.length > 0;
- scope.assignIsOpen({ isOpen: isDropdownOpen });
- return isDropdownOpen;
- };
-
- scope.isActive = function(matchIdx) {
- return scope.active === matchIdx;
- };
-
- scope.selectActive = function(matchIdx) {
- scope.active = matchIdx;
- };
-
- scope.selectMatch = function(activeIdx, evt) {
- var debounce = scope.debounce();
- if (angular.isNumber(debounce) || angular.isObject(debounce)) {
- $$debounce(function() {
- scope.select({activeIdx: activeIdx, evt: evt});
- }, angular.isNumber(debounce) ? debounce : debounce['default']);
- } else {
- scope.select({activeIdx: activeIdx, evt: evt});
- }
- };
- }
- };
- }])
-
- .directive('uibTypeaheadMatch', ['$templateRequest', '$compile', '$parse', function($templateRequest, $compile, $parse) {
- return {
- scope: {
- index: '=',
- match: '=',
- query: '='
- },
- link: function(scope, element, attrs) {
- var tplUrl = $parse(attrs.templateUrl)(scope.$parent) || 'uib/template/typeahead/typeahead-match.html';
- $templateRequest(tplUrl).then(function(tplContent) {
- var tplEl = angular.element(tplContent.trim());
- element.replaceWith(tplEl);
- $compile(tplEl)(scope);
- });
- }
- };
- }])
-
- .filter('uibTypeaheadHighlight', ['$sce', '$injector', '$log', function($sce, $injector, $log) {
- var isSanitizePresent;
- isSanitizePresent = $injector.has('$sanitize');
-
- function escapeRegexp(queryToEscape) {
- // Regex: capture the whole query string and replace it with the string that will be used to match
- // the results, for example if the capture is "a" the result will be \a
- return queryToEscape.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
- }
-
- function containsHtml(matchItem) {
- return /<.*>/g.test(matchItem);
- }
-
- return function(matchItem, query) {
- if (!isSanitizePresent && containsHtml(matchItem)) {
- $log.warn('Unsafe use of typeahead please use ngSanitize'); // Warn the user about the danger
- }
- matchItem = query ? ('' + matchItem).replace(new RegExp(escapeRegexp(query), 'gi'), '<strong>$&</strong>') : matchItem; // Replaces the capture string with a the same string inside of a "strong" tag
- if (!isSanitizePresent) {
- matchItem = $sce.trustAsHtml(matchItem); // If $sanitize is not present we pack the string in a $sce object for the ng-bind-html directive
- }
- return matchItem;
- };
- }]);
-
-angular.module("uib/template/accordion/accordion-group.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/accordion/accordion-group.html",
- "<div role=\"tab\" id=\"{{::headingId}}\" aria-selected=\"{{isOpen}}\" class=\"panel-heading\" ng-keypress=\"toggleOpen($event)\">\n" +
- " <h4 class=\"panel-title\">\n" +
- " <a role=\"button\" data-toggle=\"collapse\" href aria-expanded=\"{{isOpen}}\" aria-controls=\"{{::panelId}}\" tabindex=\"0\" class=\"accordion-toggle\" ng-click=\"toggleOpen()\" uib-accordion-transclude=\"heading\" ng-disabled=\"isDisabled\" uib-tabindex-toggle><span uib-accordion-header ng-class=\"{'text-muted': isDisabled}\">{{heading}}</span></a>\n" +
- " </h4>\n" +
- "</div>\n" +
- "<div id=\"{{::panelId}}\" aria-labelledby=\"{{::headingId}}\" aria-hidden=\"{{!isOpen}}\" role=\"tabpanel\" class=\"panel-collapse collapse\" uib-collapse=\"!isOpen\">\n" +
- " <div class=\"panel-body\" ng-transclude></div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("uib/template/accordion/accordion.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/accordion/accordion.html",
- "<div role=\"tablist\" class=\"panel-group\" ng-transclude></div>");
-}]);
-
-angular.module("uib/template/alert/alert.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/alert/alert.html",
- "<button ng-show=\"closeable\" type=\"button\" class=\"close\" ng-click=\"close({$event: $event})\">\n" +
- " <span aria-hidden=\"true\">&times;</span>\n" +
- " <span class=\"sr-only\">Close</span>\n" +
- "</button>\n" +
- "<div ng-transclude></div>\n" +
- "");
-}]);
-
-angular.module("uib/template/carousel/carousel.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/carousel/carousel.html",
- "<div class=\"carousel-inner\" ng-transclude></div>\n" +
- "<a role=\"button\" href class=\"left carousel-control\" ng-click=\"prev()\" ng-class=\"{ disabled: isPrevDisabled() }\" ng-show=\"slides.length > 1\">\n" +
- " <span aria-hidden=\"true\" class=\"glyphicon glyphicon-chevron-left\"></span>\n" +
- " <span class=\"sr-only\">previous</span>\n" +
- "</a>\n" +
- "<a role=\"button\" href class=\"right carousel-control\" ng-click=\"next()\" ng-class=\"{ disabled: isNextDisabled() }\" ng-show=\"slides.length > 1\">\n" +
- " <span aria-hidden=\"true\" class=\"glyphicon glyphicon-chevron-right\"></span>\n" +
- " <span class=\"sr-only\">next</span>\n" +
- "</a>\n" +
- "<ol class=\"carousel-indicators\" ng-show=\"slides.length > 1\">\n" +
- " <li ng-repeat=\"slide in slides | orderBy:indexOfSlide track by $index\" ng-class=\"{ active: isActive(slide) }\" ng-click=\"select(slide)\">\n" +
- " <span class=\"sr-only\">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if=\"isActive(slide)\">, currently active</span></span>\n" +
- " </li>\n" +
- "</ol>\n" +
- "");
-}]);
-
-angular.module("uib/template/carousel/slide.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/carousel/slide.html",
- "<div class=\"text-center\" ng-transclude></div>\n" +
- "");
-}]);
-
-angular.module("uib/template/datepicker/datepicker.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/datepicker/datepicker.html",
- "<div ng-switch=\"datepickerMode\">\n" +
- " <div uib-daypicker ng-switch-when=\"day\" tabindex=\"0\" class=\"uib-daypicker\"></div>\n" +
- " <div uib-monthpicker ng-switch-when=\"month\" tabindex=\"0\" class=\"uib-monthpicker\"></div>\n" +
- " <div uib-yearpicker ng-switch-when=\"year\" tabindex=\"0\" class=\"uib-yearpicker\"></div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("uib/template/datepicker/day.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/datepicker/day.html",
- "<table role=\"grid\" aria-labelledby=\"{{::uniqueId}}-title\" aria-activedescendant=\"{{activeDateId}}\">\n" +
- " <thead>\n" +
- " <tr>\n" +
- " <th><button type=\"button\" class=\"btn btn-default btn-sm pull-left uib-left\" ng-click=\"move(-1)\" tabindex=\"-1\"><i aria-hidden=\"true\" class=\"glyphicon glyphicon-chevron-left\"></i><span class=\"sr-only\">previous</span></button></th>\n" +
- " <th colspan=\"{{::5 + showWeeks}}\"><button id=\"{{::uniqueId}}-title\" role=\"heading\" aria-live=\"assertive\" aria-atomic=\"true\" type=\"button\" class=\"btn btn-default btn-sm uib-title\" ng-click=\"toggleMode()\" ng-disabled=\"datepickerMode === maxMode\" tabindex=\"-1\"><strong>{{title}}</strong></button></th>\n" +
- " <th><button type=\"button\" class=\"btn btn-default btn-sm pull-right uib-right\" ng-click=\"move(1)\" tabindex=\"-1\"><i aria-hidden=\"true\" class=\"glyphicon glyphicon-chevron-right\"></i><span class=\"sr-only\">next</span></button></th>\n" +
- " </tr>\n" +
- " <tr>\n" +
- " <th ng-if=\"showWeeks\" class=\"text-center\"></th>\n" +
- " <th ng-repeat=\"label in ::labels track by $index\" class=\"text-center\"><small aria-label=\"{{::label.full}}\">{{::label.abbr}}</small></th>\n" +
- " </tr>\n" +
- " </thead>\n" +
- " <tbody>\n" +
- " <tr class=\"uib-weeks\" ng-repeat=\"row in rows track by $index\" role=\"row\">\n" +
- " <td ng-if=\"showWeeks\" class=\"text-center h6\"><em>{{ weekNumbers[$index] }}</em></td>\n" +
- " <td ng-repeat=\"dt in row\" class=\"uib-day text-center\" role=\"gridcell\"\n" +
- " id=\"{{::dt.uid}}\"\n" +
- " ng-class=\"::dt.customClass\">\n" +
- " <button type=\"button\" class=\"btn btn-default btn-sm\"\n" +
- " uib-is-class=\"\n" +
- " 'btn-info' for selectedDt,\n" +
- " 'active' for activeDt\n" +
- " on dt\"\n" +
- " ng-click=\"select(dt.date)\"\n" +
- " ng-disabled=\"::dt.disabled\"\n" +
- " tabindex=\"-1\"><span ng-class=\"::{'text-muted': dt.secondary, 'text-info': dt.current}\">{{::dt.label}}</span></button>\n" +
- " </td>\n" +
- " </tr>\n" +
- " </tbody>\n" +
- "</table>\n" +
- "");
-}]);
-
-angular.module("uib/template/datepicker/month.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/datepicker/month.html",
- "<table role=\"grid\" aria-labelledby=\"{{::uniqueId}}-title\" aria-activedescendant=\"{{activeDateId}}\">\n" +
- " <thead>\n" +
- " <tr>\n" +
- " <th><button type=\"button\" class=\"btn btn-default btn-sm pull-left uib-left\" ng-click=\"move(-1)\" tabindex=\"-1\"><i aria-hidden=\"true\" class=\"glyphicon glyphicon-chevron-left\"></i><span class=\"sr-only\">previous</span></button></th>\n" +
- " <th colspan=\"{{::yearHeaderColspan}}\"><button id=\"{{::uniqueId}}-title\" role=\"heading\" aria-live=\"assertive\" aria-atomic=\"true\" type=\"button\" class=\"btn btn-default btn-sm uib-title\" ng-click=\"toggleMode()\" ng-disabled=\"datepickerMode === maxMode\" tabindex=\"-1\"><strong>{{title}}</strong></button></th>\n" +
- " <th><button type=\"button\" class=\"btn btn-default btn-sm pull-right uib-right\" ng-click=\"move(1)\" tabindex=\"-1\"><i aria-hidden=\"true\" class=\"glyphicon glyphicon-chevron-right\"></i><span class=\"sr-only\">next</span></i></button></th>\n" +
- " </tr>\n" +
- " </thead>\n" +
- " <tbody>\n" +
- " <tr class=\"uib-months\" ng-repeat=\"row in rows track by $index\" role=\"row\">\n" +
- " <td ng-repeat=\"dt in row\" class=\"uib-month text-center\" role=\"gridcell\"\n" +
- " id=\"{{::dt.uid}}\"\n" +
- " ng-class=\"::dt.customClass\">\n" +
- " <button type=\"button\" class=\"btn btn-default\"\n" +
- " uib-is-class=\"\n" +
- " 'btn-info' for selectedDt,\n" +
- " 'active' for activeDt\n" +
- " on dt\"\n" +
- " ng-click=\"select(dt.date)\"\n" +
- " ng-disabled=\"::dt.disabled\"\n" +
- " tabindex=\"-1\"><span ng-class=\"::{'text-info': dt.current}\">{{::dt.label}}</span></button>\n" +
- " </td>\n" +
- " </tr>\n" +
- " </tbody>\n" +
- "</table>\n" +
- "");
-}]);
-
-angular.module("uib/template/datepicker/year.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/datepicker/year.html",
- "<table role=\"grid\" aria-labelledby=\"{{::uniqueId}}-title\" aria-activedescendant=\"{{activeDateId}}\">\n" +
- " <thead>\n" +
- " <tr>\n" +
- " <th><button type=\"button\" class=\"btn btn-default btn-sm pull-left uib-left\" ng-click=\"move(-1)\" tabindex=\"-1\"><i aria-hidden=\"true\" class=\"glyphicon glyphicon-chevron-left\"></i><span class=\"sr-only\">previous</span></button></th>\n" +
- " <th colspan=\"{{::columns - 2}}\"><button id=\"{{::uniqueId}}-title\" role=\"heading\" aria-live=\"assertive\" aria-atomic=\"true\" type=\"button\" class=\"btn btn-default btn-sm uib-title\" ng-click=\"toggleMode()\" ng-disabled=\"datepickerMode === maxMode\" tabindex=\"-1\"><strong>{{title}}</strong></button></th>\n" +
- " <th><button type=\"button\" class=\"btn btn-default btn-sm pull-right uib-right\" ng-click=\"move(1)\" tabindex=\"-1\"><i aria-hidden=\"true\" class=\"glyphicon glyphicon-chevron-right\"></i><span class=\"sr-only\">next</span></button></th>\n" +
- " </tr>\n" +
- " </thead>\n" +
- " <tbody>\n" +
- " <tr class=\"uib-years\" ng-repeat=\"row in rows track by $index\" role=\"row\">\n" +
- " <td ng-repeat=\"dt in row\" class=\"uib-year text-center\" role=\"gridcell\"\n" +
- " id=\"{{::dt.uid}}\"\n" +
- " ng-class=\"::dt.customClass\">\n" +
- " <button type=\"button\" class=\"btn btn-default\"\n" +
- " uib-is-class=\"\n" +
- " 'btn-info' for selectedDt,\n" +
- " 'active' for activeDt\n" +
- " on dt\"\n" +
- " ng-click=\"select(dt.date)\"\n" +
- " ng-disabled=\"::dt.disabled\"\n" +
- " tabindex=\"-1\"><span ng-class=\"::{'text-info': dt.current}\">{{::dt.label}}</span></button>\n" +
- " </td>\n" +
- " </tr>\n" +
- " </tbody>\n" +
- "</table>\n" +
- "");
-}]);
-
-angular.module("uib/template/datepickerPopup/popup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/datepickerPopup/popup.html",
- "<ul role=\"presentation\" class=\"uib-datepicker-popup dropdown-menu uib-position-measure\" dropdown-nested ng-if=\"isOpen\" ng-keydown=\"keydown($event)\" ng-click=\"$event.stopPropagation()\">\n" +
- " <li ng-transclude></li>\n" +
- " <li ng-if=\"showButtonBar\" class=\"uib-button-bar\">\n" +
- " <span class=\"btn-group pull-left\">\n" +
- " <button type=\"button\" class=\"btn btn-sm btn-info uib-datepicker-current\" ng-click=\"select('today', $event)\" ng-disabled=\"isDisabled('today')\">{{ getText('current') }}</button>\n" +
- " <button type=\"button\" class=\"btn btn-sm btn-danger uib-clear\" ng-click=\"select(null, $event)\">{{ getText('clear') }}</button>\n" +
- " </span>\n" +
- " <button type=\"button\" class=\"btn btn-sm btn-success pull-right uib-close\" ng-click=\"close($event)\">{{ getText('close') }}</button>\n" +
- " </li>\n" +
- "</ul>\n" +
- "");
-}]);
-
-angular.module("uib/template/modal/window.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/modal/window.html",
- "<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n" +
- "");
-}]);
-
-angular.module("uib/template/pager/pager.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/pager/pager.html",
- "<li ng-class=\"{disabled: noPrevious()||ngDisabled, previous: align}\"><a href ng-click=\"selectPage(page - 1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('previous')}}</a></li>\n" +
- "<li ng-class=\"{disabled: noNext()||ngDisabled, next: align}\"><a href ng-click=\"selectPage(page + 1, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('next')}}</a></li>\n" +
- "");
-}]);
-
-angular.module("uib/template/pagination/pagination.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/pagination/pagination.html",
- "<li ng-if=\"::boundaryLinks\" ng-class=\"{disabled: noPrevious()||ngDisabled}\" class=\"pagination-first\"><a href ng-click=\"selectPage(1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('first')}}</a></li>\n" +
- "<li ng-if=\"::directionLinks\" ng-class=\"{disabled: noPrevious()||ngDisabled}\" class=\"pagination-prev\"><a href ng-click=\"selectPage(page - 1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('previous')}}</a></li>\n" +
- "<li ng-repeat=\"page in pages track by $index\" ng-class=\"{active: page.active,disabled: ngDisabled&&!page.active}\" class=\"pagination-page\"><a href ng-click=\"selectPage(page.number, $event)\" ng-disabled=\"ngDisabled&&!page.active\" uib-tabindex-toggle>{{page.text}}</a></li>\n" +
- "<li ng-if=\"::directionLinks\" ng-class=\"{disabled: noNext()||ngDisabled}\" class=\"pagination-next\"><a href ng-click=\"selectPage(page + 1, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('next')}}</a></li>\n" +
- "<li ng-if=\"::boundaryLinks\" ng-class=\"{disabled: noNext()||ngDisabled}\" class=\"pagination-last\"><a href ng-click=\"selectPage(totalPages, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('last')}}</a></li>\n" +
- "");
-}]);
-
-angular.module("uib/template/tooltip/tooltip-html-popup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/tooltip/tooltip-html-popup.html",
- "<div class=\"tooltip-arrow\"></div>\n" +
- "<div class=\"tooltip-inner\" ng-bind-html=\"contentExp()\"></div>\n" +
- "");
-}]);
-
-angular.module("uib/template/tooltip/tooltip-popup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/tooltip/tooltip-popup.html",
- "<div class=\"tooltip-arrow\"></div>\n" +
- "<div class=\"tooltip-inner\" ng-bind=\"content\"></div>\n" +
- "");
-}]);
-
-angular.module("uib/template/tooltip/tooltip-template-popup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/tooltip/tooltip-template-popup.html",
- "<div class=\"tooltip-arrow\"></div>\n" +
- "<div class=\"tooltip-inner\"\n" +
- " uib-tooltip-template-transclude=\"contentExp()\"\n" +
- " tooltip-template-transclude-scope=\"originScope()\"></div>\n" +
- "");
-}]);
-
-angular.module("uib/template/popover/popover-html.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/popover/popover-html.html",
- "<div class=\"arrow\"></div>\n" +
- "\n" +
- "<div class=\"popover-inner\">\n" +
- " <h3 class=\"popover-title\" ng-bind=\"uibTitle\" ng-if=\"uibTitle\"></h3>\n" +
- " <div class=\"popover-content\" ng-bind-html=\"contentExp()\"></div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("uib/template/popover/popover-template.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/popover/popover-template.html",
- "<div class=\"arrow\"></div>\n" +
- "\n" +
- "<div class=\"popover-inner\">\n" +
- " <h3 class=\"popover-title\" ng-bind=\"uibTitle\" ng-if=\"uibTitle\"></h3>\n" +
- " <div class=\"popover-content\"\n" +
- " uib-tooltip-template-transclude=\"contentExp()\"\n" +
- " tooltip-template-transclude-scope=\"originScope()\"></div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("uib/template/popover/popover.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/popover/popover.html",
- "<div class=\"arrow\"></div>\n" +
- "\n" +
- "<div class=\"popover-inner\">\n" +
- " <h3 class=\"popover-title\" ng-bind=\"uibTitle\" ng-if=\"uibTitle\"></h3>\n" +
- " <div class=\"popover-content\" ng-bind=\"content\"></div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("uib/template/progressbar/bar.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/progressbar/bar.html",
- "<div class=\"progress-bar\" ng-class=\"type && 'progress-bar-' + type\" role=\"progressbar\" aria-valuenow=\"{{value}}\" aria-valuemin=\"0\" aria-valuemax=\"{{max}}\" ng-style=\"{width: (percent < 100 ? percent : 100) + '%'}\" aria-valuetext=\"{{percent | number:0}}%\" aria-labelledby=\"{{::title}}\" ng-transclude></div>\n" +
- "");
-}]);
-
-angular.module("uib/template/progressbar/progress.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/progressbar/progress.html",
- "<div class=\"progress\" ng-transclude aria-labelledby=\"{{::title}}\"></div>");
-}]);
-
-angular.module("uib/template/progressbar/progressbar.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/progressbar/progressbar.html",
- "<div class=\"progress\">\n" +
- " <div class=\"progress-bar\" ng-class=\"type && 'progress-bar-' + type\" role=\"progressbar\" aria-valuenow=\"{{value}}\" aria-valuemin=\"0\" aria-valuemax=\"{{max}}\" ng-style=\"{width: (percent < 100 ? percent : 100) + '%'}\" aria-valuetext=\"{{percent | number:0}}%\" aria-labelledby=\"{{::title}}\" ng-transclude></div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("uib/template/rating/rating.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/rating/rating.html",
- "<span ng-mouseleave=\"reset()\" ng-keydown=\"onKeydown($event)\" tabindex=\"0\" role=\"slider\" aria-valuemin=\"0\" aria-valuemax=\"{{range.length}}\" aria-valuenow=\"{{value}}\" aria-valuetext=\"{{title}}\">\n" +
- " <span ng-repeat-start=\"r in range track by $index\" class=\"sr-only\">({{ $index < value ? '*' : ' ' }})</span>\n" +
- " <i ng-repeat-end ng-mouseenter=\"enter($index + 1)\" ng-click=\"rate($index + 1)\" class=\"glyphicon\" ng-class=\"$index < value && (r.stateOn || 'glyphicon-star') || (r.stateOff || 'glyphicon-star-empty')\" ng-attr-title=\"{{r.title}}\"></i>\n" +
- "</span>\n" +
- "");
-}]);
-
-angular.module("uib/template/tabs/tab.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/tabs/tab.html",
- "<li ng-class=\"[{active: active, disabled: disabled}, classes]\" class=\"uib-tab nav-item\">\n" +
- " <a href ng-click=\"select($event)\" class=\"nav-link\" uib-tab-heading-transclude>{{heading}}</a>\n" +
- "</li>\n" +
- "");
-}]);
-
-angular.module("uib/template/tabs/tabset.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/tabs/tabset.html",
- "<div>\n" +
- " <ul class=\"nav nav-{{tabset.type || 'tabs'}}\" ng-class=\"{'nav-stacked': vertical, 'nav-justified': justified}\" ng-transclude></ul>\n" +
- " <div class=\"tab-content\">\n" +
- " <div class=\"tab-pane\"\n" +
- " ng-repeat=\"tab in tabset.tabs\"\n" +
- " ng-class=\"{active: tabset.active === tab.index}\"\n" +
- " uib-tab-content-transclude=\"tab\">\n" +
- " </div>\n" +
- " </div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("uib/template/timepicker/timepicker.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/timepicker/timepicker.html",
- "<table class=\"uib-timepicker\">\n" +
- " <tbody>\n" +
- " <tr class=\"text-center\" ng-show=\"::showSpinners\">\n" +
- " <td class=\"uib-increment hours\"><a ng-click=\"incrementHours()\" ng-class=\"{disabled: noIncrementHours()}\" class=\"btn btn-link\" ng-disabled=\"noIncrementHours()\" tabindex=\"-1\"><span class=\"glyphicon glyphicon-chevron-up\"></span></a></td>\n" +
- " <td>&nbsp;</td>\n" +
- " <td class=\"uib-increment minutes\"><a ng-click=\"incrementMinutes()\" ng-class=\"{disabled: noIncrementMinutes()}\" class=\"btn btn-link\" ng-disabled=\"noIncrementMinutes()\" tabindex=\"-1\"><span class=\"glyphicon glyphicon-chevron-up\"></span></a></td>\n" +
- " <td ng-show=\"showSeconds\">&nbsp;</td>\n" +
- " <td ng-show=\"showSeconds\" class=\"uib-increment seconds\"><a ng-click=\"incrementSeconds()\" ng-class=\"{disabled: noIncrementSeconds()}\" class=\"btn btn-link\" ng-disabled=\"noIncrementSeconds()\" tabindex=\"-1\"><span class=\"glyphicon glyphicon-chevron-up\"></span></a></td>\n" +
- " <td ng-show=\"showMeridian\"></td>\n" +
- " </tr>\n" +
- " <tr>\n" +
- " <td class=\"form-group uib-time hours\" ng-class=\"{'has-error': invalidHours}\">\n" +
- " <input type=\"text\" placeholder=\"HH\" ng-model=\"hours\" ng-change=\"updateHours()\" class=\"form-control text-center\" ng-readonly=\"::readonlyInput\" maxlength=\"2\" tabindex=\"{{::tabindex}}\" ng-disabled=\"noIncrementHours()\" ng-blur=\"blur()\">\n" +
- " </td>\n" +
- " <td class=\"uib-separator\">:</td>\n" +
- " <td class=\"form-group uib-time minutes\" ng-class=\"{'has-error': invalidMinutes}\">\n" +
- " <input type=\"text\" placeholder=\"MM\" ng-model=\"minutes\" ng-change=\"updateMinutes()\" class=\"form-control text-center\" ng-readonly=\"::readonlyInput\" maxlength=\"2\" tabindex=\"{{::tabindex}}\" ng-disabled=\"noIncrementMinutes()\" ng-blur=\"blur()\">\n" +
- " </td>\n" +
- " <td ng-show=\"showSeconds\" class=\"uib-separator\">:</td>\n" +
- " <td class=\"form-group uib-time seconds\" ng-class=\"{'has-error': invalidSeconds}\" ng-show=\"showSeconds\">\n" +
- " <input type=\"text\" placeholder=\"SS\" ng-model=\"seconds\" ng-change=\"updateSeconds()\" class=\"form-control text-center\" ng-readonly=\"readonlyInput\" maxlength=\"2\" tabindex=\"{{::tabindex}}\" ng-disabled=\"noIncrementSeconds()\" ng-blur=\"blur()\">\n" +
- " </td>\n" +
- " <td ng-show=\"showMeridian\" class=\"uib-time am-pm\"><button type=\"button\" ng-class=\"{disabled: noToggleMeridian()}\" class=\"btn btn-default text-center\" ng-click=\"toggleMeridian()\" ng-disabled=\"noToggleMeridian()\" tabindex=\"{{::tabindex}}\">{{meridian}}</button></td>\n" +
- " </tr>\n" +
- " <tr class=\"text-center\" ng-show=\"::showSpinners\">\n" +
- " <td class=\"uib-decrement hours\"><a ng-click=\"decrementHours()\" ng-class=\"{disabled: noDecrementHours()}\" class=\"btn btn-link\" ng-disabled=\"noDecrementHours()\" tabindex=\"-1\"><span class=\"glyphicon glyphicon-chevron-down\"></span></a></td>\n" +
- " <td>&nbsp;</td>\n" +
- " <td class=\"uib-decrement minutes\"><a ng-click=\"decrementMinutes()\" ng-class=\"{disabled: noDecrementMinutes()}\" class=\"btn btn-link\" ng-disabled=\"noDecrementMinutes()\" tabindex=\"-1\"><span class=\"glyphicon glyphicon-chevron-down\"></span></a></td>\n" +
- " <td ng-show=\"showSeconds\">&nbsp;</td>\n" +
- " <td ng-show=\"showSeconds\" class=\"uib-decrement seconds\"><a ng-click=\"decrementSeconds()\" ng-class=\"{disabled: noDecrementSeconds()}\" class=\"btn btn-link\" ng-disabled=\"noDecrementSeconds()\" tabindex=\"-1\"><span class=\"glyphicon glyphicon-chevron-down\"></span></a></td>\n" +
- " <td ng-show=\"showMeridian\"></td>\n" +
- " </tr>\n" +
- " </tbody>\n" +
- "</table>\n" +
- "");
-}]);
-
-angular.module("uib/template/typeahead/typeahead-match.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/typeahead/typeahead-match.html",
- "<a href\n" +
- " tabindex=\"-1\"\n" +
- " ng-bind-html=\"match.label | uibTypeaheadHighlight:query\"\n" +
- " ng-attr-title=\"{{match.label}}\"></a>\n" +
- "");
-}]);
-
-angular.module("uib/template/typeahead/typeahead-popup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("uib/template/typeahead/typeahead-popup.html",
- "<ul class=\"dropdown-menu\" ng-show=\"isOpen() && !moveInProgress\" ng-style=\"{top: position().top+'px', left: position().left+'px'}\" role=\"listbox\" aria-hidden=\"{{!isOpen()}}\">\n" +
- " <li class=\"uib-typeahead-match\" ng-repeat=\"match in matches track by $index\" ng-class=\"{active: isActive($index) }\" ng-mouseenter=\"selectActive($index)\" ng-click=\"selectMatch($index, $event)\" role=\"option\" id=\"{{::match.id}}\">\n" +
- " <div uib-typeahead-match index=\"$index\" match=\"match\" query=\"query\" template-url=\"templateUrl\"></div>\n" +
- " </li>\n" +
- "</ul>\n" +
- "");
-}]);
-angular.module('ui.bootstrap.carousel').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibCarouselCss && angular.element(document).find('head').prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'); angular.$$uibCarouselCss = true; });
-angular.module('ui.bootstrap.datepicker').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibDatepickerCss && angular.element(document).find('head').prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'); angular.$$uibDatepickerCss = true; });
-angular.module('ui.bootstrap.position').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibPositionCss && angular.element(document).find('head').prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'); angular.$$uibPositionCss = true; });
-angular.module('ui.bootstrap.datepickerPopup').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibDatepickerpopupCss && angular.element(document).find('head').prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'); angular.$$uibDatepickerpopupCss = true; });
-angular.module('ui.bootstrap.tooltip').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibTooltipCss && angular.element(document).find('head').prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'); angular.$$uibTooltipCss = true; });
-angular.module('ui.bootstrap.timepicker').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibTimepickerCss && angular.element(document).find('head').prepend('<style type="text/css">.uib-time input{width:50px;}</style>'); angular.$$uibTimepickerCss = true; });
-angular.module('ui.bootstrap.typeahead').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibTypeaheadCss && angular.element(document).find('head').prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'); angular.$$uibTypeaheadCss = true; }); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js b/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js
deleted file mode 100644
index 53c07848..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- * angular-ui-bootstrap
- * http://angular-ui.github.io/bootstrap/
-
- * Version: 2.4.0 - 2016-12-29
- * License: MIT
- */angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(a,b,c,d){var e=d.has("$animateCss")?d.get("$animateCss"):null;return{link:function(d,f,g){function h(){r=!!("horizontal"in g),r?(s={width:""},t={width:"0"}):(s={height:""},t={height:"0"}),d.$eval(g.uibCollapse)||f.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(s)}function i(a){return r?{width:a.scrollWidth+"px"}:{height:a.scrollHeight+"px"}}function j(){f.hasClass("collapse")&&f.hasClass("in")||b.resolve(n(d)).then(function(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),e?e(f,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:i(f[0])}).start()["finally"](k):a.addClass(f,"in",{css:{overflow:"hidden"},to:i(f[0])}).then(k)})}function k(){f.removeClass("collapsing").addClass("collapse").css(s),o(d)}function l(){return f.hasClass("collapse")||f.hasClass("in")?void b.resolve(p(d)).then(function(){f.css(i(f[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),e?e(f,{removeClass:"in",to:t}).start()["finally"](m):a.removeClass(f,"in",{to:t}).then(m)}):m()}function m(){f.css(t),f.removeClass("collapsing").addClass("collapse"),q(d)}var n=c(g.expanding),o=c(g.expanded),p=c(g.collapsing),q=c(g.collapsed),r=!1,s={},t={};h(),d.$watch(g.uibCollapse,function(a){a?l():j()})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(a,b,c){c.$observe("disabled",function(a){c.$set("tabindex",a?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(a,b,c){this.groups=[],this.closeOthers=function(d){var e=angular.isDefined(b.closeOthers)?a.$eval(b.closeOthers):c.closeOthers;e&&angular.forEach(this.groups,function(a){a!==d&&(a.isOpen=!1)})},this.addGroup=function(a){var b=this;this.groups.push(a),a.$on("$destroy",function(c){b.removeGroup(a)})},this.removeGroup=function(a){var b=this.groups.indexOf(a);-1!==b&&this.groups.splice(b,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(a,b){return b.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(a){this.heading=a}},link:function(a,b,c,d){b.addClass("panel"),d.addGroup(a),a.openClass=c.openClass||"panel-open",a.panelClass=c.panelClass||"panel-default",a.$watch("isOpen",function(c){b.toggleClass(a.openClass,!!c),c&&d.closeOthers(a)}),a.toggleOpen=function(b){a.isDisabled||b&&32!==b.which||(a.isOpen=!a.isOpen)};var e="accordiongroup-"+a.$id+"-"+Math.floor(1e4*Math.random());a.headingId=e+"-tab",a.panelId=e+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(a,b,c,d,e){d.setHeading(e(a,angular.noop))}}}).directive("uibAccordionTransclude",function(){function a(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(b,c,d,e){b.$watch(function(){return e[d.uibAccordionTransclude]},function(b){if(b){var d=angular.element(c[0].querySelector(a()));d.html(""),d.append(b)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(a,b,c,d,e){a.closeable=!!c.close,b.addClass("alert"),c.$set("role","alert"),a.closeable&&b.addClass("alert-dismissible");var f=angular.isDefined(c.dismissOnTimeout)?d(c.dismissOnTimeout)(a.$parent):null;f&&e(function(){a.close()},parseInt(f,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(a,b){return b.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(a){this.activeClass=a.activeClass||"active",this.toggleEvent=a.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(a){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(b,c,d,e){var f=e[0],g=e[1],h=a(d.uibUncheckable);c.find("input").css({display:"none"}),g.$render=function(){c.toggleClass(f.activeClass,angular.equals(g.$modelValue,b.$eval(d.uibBtnRadio)))},c.on(f.toggleEvent,function(){if(!d.disabled){var a=c.hasClass(f.activeClass);a&&!angular.isDefined(d.uncheckable)||b.$apply(function(){g.$setViewValue(a?null:b.$eval(d.uibBtnRadio)),g.$render()})}}),d.uibUncheckable&&b.$watch(h,function(a){d.$set("uncheckable",a?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(a,b,c,d){function e(){return g(c.btnCheckboxTrue,!0)}function f(){return g(c.btnCheckboxFalse,!1)}function g(b,c){return angular.isDefined(b)?a.$eval(b):c}var h=d[0],i=d[1];b.find("input").css({display:"none"}),i.$render=function(){b.toggleClass(h.activeClass,angular.equals(i.$modelValue,e()))},b.on(h.toggleEvent,function(){c.disabled||a.$apply(function(){i.$setViewValue(b.hasClass(h.activeClass)?f():e()),i.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(a,b,c,d,e){function f(){for(;t.length;)t.shift()}function g(a){for(var b=0;b<q.length;b++)q[b].slide.active=b===a}function h(c,d,i){if(!u){if(angular.extend(c,{direction:i}),angular.extend(q[s].slide||{},{direction:i}),e.enabled(b)&&!a.$currentTransition&&q[d].element&&p.slides.length>1){q[d].element.data(r,c.direction);var j=p.getCurrentIndex();angular.isNumber(j)&&q[j].element&&q[j].element.data(r,c.direction),a.$currentTransition=!0,e.on("addClass",q[d].element,function(b,c){if("close"===c&&(a.$currentTransition=null,e.off("addClass",b),t.length)){var d=t.pop().slide,g=d.index,i=g>p.getCurrentIndex()?"next":"prev";f(),h(d,g,i)}})}a.active=c.index,s=c.index,g(d),l()}}function i(a){for(var b=0;b<q.length;b++)if(q[b].slide===a)return b}function j(){n&&(c.cancel(n),n=null)}function k(b){b.length||(a.$currentTransition=null,f())}function l(){j();var b=+a.interval;!isNaN(b)&&b>0&&(n=c(m,b))}function m(){var b=+a.interval;o&&!isNaN(b)&&b>0&&q.length?a.next():a.pause()}var n,o,p=this,q=p.slides=a.slides=[],r="uib-slideDirection",s=a.active,t=[],u=!1;b.addClass("carousel"),p.addSlide=function(b,c){q.push({slide:b,element:c}),q.sort(function(a,b){return+a.slide.index-+b.slide.index}),(b.index===a.active||1===q.length&&!angular.isNumber(a.active))&&(a.$currentTransition&&(a.$currentTransition=null),s=b.index,a.active=b.index,g(s),p.select(q[i(b)]),1===q.length&&a.play())},p.getCurrentIndex=function(){for(var a=0;a<q.length;a++)if(q[a].slide.index===s)return a},p.next=a.next=function(){var b=(p.getCurrentIndex()+1)%q.length;return 0===b&&a.noWrap()?void a.pause():p.select(q[b],"next")},p.prev=a.prev=function(){var b=p.getCurrentIndex()-1<0?q.length-1:p.getCurrentIndex()-1;return a.noWrap()&&b===q.length-1?void a.pause():p.select(q[b],"prev")},p.removeSlide=function(b){var c=i(b),d=t.indexOf(q[c]);-1!==d&&t.splice(d,1),q.splice(c,1),q.length>0&&s===c?c>=q.length?(s=q.length-1,a.active=s,g(s),p.select(q[q.length-1])):(s=c,a.active=s,g(s),p.select(q[c])):s>c&&(s--,a.active=s),0===q.length&&(s=null,a.active=null,f())},p.select=a.select=function(b,c){var d=i(b.slide);void 0===c&&(c=d>p.getCurrentIndex()?"next":"prev"),b.slide.index===s||a.$currentTransition?b&&b.slide.index!==s&&a.$currentTransition&&t.push(q[d]):h(b.slide,d,c)},a.indexOfSlide=function(a){return+a.slide.index},a.isActive=function(b){return a.active===b.slide.index},a.isPrevDisabled=function(){return 0===a.active&&a.noWrap()},a.isNextDisabled=function(){return a.active===q.length-1&&a.noWrap()},a.pause=function(){a.noPause||(o=!1,j())},a.play=function(){o||(o=!0,l())},b.on("mouseenter",a.pause),b.on("mouseleave",a.play),a.$on("$destroy",function(){u=!0,j()}),a.$watch("noTransition",function(a){e.enabled(b,!a)}),a.$watch("interval",l),a.$watchCollection("slides",k),a.$watch("active",function(a){if(angular.isNumber(a)&&s!==a){for(var b=0;b<q.length;b++)if(q[b].slide.index===a){a=b;break}var c=q[a];c&&(g(a),p.select(q[a]),s=a)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(a,b){return b.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(a){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(b,c,d,e){c.addClass("item"),e.addSlide(b,c),b.$on("$destroy",function(){e.removeSlide(b)}),b.$watch("active",function(b){a[b?"addClass":"removeClass"](c,"active")})}}}]).animation(".item",["$animateCss",function(a){function b(a,b,c){a.removeClass(b),c&&c()}var c="uib-slideDirection";return{beforeAddClass:function(d,e,f){if("active"===e){var g=!1,h=d.data(c),i="next"===h?"left":"right",j=b.bind(this,d,i+" "+h,f);return d.addClass(h),a(d,{addClass:i}).start().done(j),function(){g=!0}}f()},beforeRemoveClass:function(d,e,f){if("active"===e){var g=!1,h=d.data(c),i="next"===h?"left":"right",j=b.bind(this,d,i,f);return a(d,{addClass:i}).start().done(j),function(){g=!0}}f()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(a,b,c,d,e){function f(a){return e(s,{key:a},!0)[0]}function g(a){var b=[],c=a.split(""),e=a.indexOf("'");if(e>-1){var f=!1;a=a.split("");for(var g=e;g<a.length;g++)f?("'"===a[g]&&(g+1<a.length&&"'"===a[g+1]?(a[g+1]="$",c[g+1]=""):(c[g]="",f=!1)),a[g]="$"):"'"===a[g]&&(a[g]="$",c[g]="",f=!0);a=a.join("")}return angular.forEach(s,function(d){var e=a.indexOf(d.key);if(e>-1){a=a.split(""),c[e]="("+d.regex+")",a[e]="$";for(var f=e+1,g=e+d.key.length;g>f;f++)c[f]="",a[f]="$";a=a.join(""),b.push({index:e,key:d.key,apply:d.apply,matcher:d.regex})}}),{regex:new RegExp("^"+c.join("")+"$"),map:d(b,"index")}}function h(a){for(var b,c,d=[],e=0;e<a.length;)if(angular.isNumber(c)){if("'"===a.charAt(e))(e+1>=a.length||"'"!==a.charAt(e+1))&&(d.push(i(a,c,e)),c=null);else if(e===a.length)for(;c<a.length;)b=j(a,c),d.push(b),c=b.endIdx;e++}else"'"!==a.charAt(e)?(b=j(a,e),d.push(b.parser),e=b.endIdx):(c=e,e++);return d}function i(a,b,c){return function(){return a.substr(b+1,c-b-1)}}function j(a,b){for(var c=a.substr(b),d=0;d<s.length;d++)if(new RegExp("^"+s[d].key).test(c)){var e=s[d];return{endIdx:b+e.key.length,parser:e.formatter}}return{endIdx:b+1,parser:function(){return c.charAt(0)}}}function k(a,b,c){return 1>c?!1:1===b&&c>28?29===c&&(a%4===0&&a%100!==0||a%400===0):3===b||5===b||8===b||10===b?31>c:!0}function l(a){return parseInt(a,10)}function m(a,b){return a&&b?q(a,b):a}function n(a,b){return a&&b?q(a,b,!0):a}function o(a,b){a=a.replace(/:/g,"");var c=Date.parse("Jan 01, 1970 00:00:00 "+a)/6e4;return isNaN(c)?b:c}function p(a,b){return a=new Date(a.getTime()),a.setMinutes(a.getMinutes()+b),a}function q(a,b,c){c=c?-1:1;var d=a.getTimezoneOffset(),e=o(b,d);return p(a,c*(e-d))}var r,s,t=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){r=b.id,this.parsers={},this.formatters={},s=[{key:"yyyy",regex:"\\d{4}",apply:function(a){this.year=+a},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(a){a=+a,this.year=69>a?a+2e3:a+1900},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(a){this.year=+a},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(a){this.month=a-1},formatter:function(a){var b=a.getMonth();return/^[0-9]$/.test(b)?c(a,"MM"):c(a,"M")}},{key:"MMMM",regex:b.DATETIME_FORMATS.MONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.MONTH.indexOf(a)},formatter:function(a){return c(a,"MMMM")}},{key:"MMM",regex:b.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.SHORTMONTH.indexOf(a)},formatter:function(a){return c(a,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(a){this.month=a-1},formatter:function(a){return c(a,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(a){this.month=a-1},formatter:function(a){return c(a,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a},formatter:function(a){var b=a.getDate();return/^[1-9]$/.test(b)?c(a,"dd"):c(a,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a},formatter:function(a){return c(a,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a},formatter:function(a){return c(a,"d")}},{key:"EEEE",regex:b.DATETIME_FORMATS.DAY.join("|"),formatter:function(a){return c(a,"EEEE")}},{key:"EEE",regex:b.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(a){return c(a,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(a){this.hours=+a},formatter:function(a){return c(a,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(a){this.hours=+a},formatter:function(a){return c(a,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(a){this.hours=+a},formatter:function(a){return c(a,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(a){this.hours=+a},formatter:function(a){return c(a,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(a){this.minutes=+a},formatter:function(a){return c(a,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(a){this.minutes=+a},formatter:function(a){return c(a,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(a){this.milliseconds=+a},formatter:function(a){return c(a,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(a){this.seconds=+a},formatter:function(a){return c(a,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(a){this.seconds=+a},formatter:function(a){return c(a,"s")}},{key:"a",regex:b.DATETIME_FORMATS.AMPMS.join("|"),apply:function(a){12===this.hours&&(this.hours=0),"PM"===a&&(this.hours+=12)},formatter:function(a){return c(a,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(a){var b=a.match(/([+-])(\d{2})(\d{2})/),c=b[1],d=b[2],e=b[3];this.hours+=l(c+d),this.minutes+=l(c+e)},formatter:function(a){return c(a,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(a){return c(a,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(a){return c(a,"w")}},{key:"GGGG",regex:b.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(a){return c(a,"GGGG")}},{key:"GGG",regex:b.DATETIME_FORMATS.ERAS.join("|"),formatter:function(a){return c(a,"GGG")}},{key:"GG",regex:b.DATETIME_FORMATS.ERAS.join("|"),formatter:function(a){return c(a,"GG")}},{key:"G",regex:b.DATETIME_FORMATS.ERAS.join("|"),formatter:function(a){return c(a,"G")}}],angular.version.major>=1&&angular.version.minor>4&&s.push({key:"LLLL",regex:b.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.STANDALONEMONTH.indexOf(a)},formatter:function(a){return c(a,"LLLL")}})},this.init(),this.getParser=function(a){var b=f(a);return b&&b.apply||null},this.overrideParser=function(a,b){var c=f(a);c&&angular.isFunction(b)&&(this.parsers={},c.apply=b)}.bind(this),this.filter=function(a,c){if(!angular.isDate(a)||isNaN(a)||!c)return"";c=b.DATETIME_FORMATS[c]||c,b.id!==r&&this.init(),this.formatters[c]||(this.formatters[c]=h(c));var d=this.formatters[c];return d.reduce(function(b,c){return b+c(a)},"")},this.parse=function(c,d,e){if(!angular.isString(c)||!d)return c;d=b.DATETIME_FORMATS[d]||d,d=d.replace(t,"\\$&"),b.id!==r&&this.init(),this.parsers[d]||(this.parsers[d]=g(d,"apply"));var f=this.parsers[d],h=f.regex,i=f.map,j=c.match(h),l=!1;if(j&&j.length){var m,n;angular.isDate(e)&&!isNaN(e.getTime())?m={year:e.getFullYear(),month:e.getMonth(),date:e.getDate(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds(),milliseconds:e.getMilliseconds()}:(e&&a.warn("dateparser:","baseDate is not a valid date"),m={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var o=1,p=j.length;p>o;o++){var q=i[o-1];"Z"===q.matcher&&(l=!0),q.apply&&q.apply.call(m,j[o])}var s=l?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,u=l?Date.prototype.setUTCHours:Date.prototype.setHours;return k(m.year,m.month,m.date)&&(!angular.isDate(e)||isNaN(e.getTime())||l?(n=new Date(0),s.call(n,m.year,m.month,m.date),u.call(n,m.hours||0,m.minutes||0,m.seconds||0,m.milliseconds||0)):(n=new Date(e),s.call(n,m.year,m.month,m.date),u.call(n,m.hours,m.minutes,m.seconds,m.milliseconds))),n}},this.toTimezone=m,this.fromTimezone=n,this.timezoneToOffset=o,this.addDateMinutes=p,this.convertTimezoneToLocal=q}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(a){var b=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,c=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(d,e){function f(a,b,c){i.push(a),j.push({scope:a,element:b}),o.forEach(function(b,c){g(b,a)}),a.$on("$destroy",h)}function g(b,d){var e=b.match(c),f=d.$eval(e[1]),g=e[2],h=k[b];if(!h){var i=function(b){var c=null;j.some(function(a){var d=a.scope.$eval(m);return d===b?(c=a,!0):void 0}),h.lastActivated!==c&&(h.lastActivated&&a.removeClass(h.lastActivated.element,f),c&&a.addClass(c.element,f),h.lastActivated=c)};k[b]=h={lastActivated:null,scope:d,watchFn:i,compareWithExp:g,watcher:d.$watch(g,i)}}h.watchFn(d.$eval(g))}function h(a){var b=a.targetScope,c=i.indexOf(b);if(i.splice(c,1),j.splice(c,1),i.length){var d=i[0];angular.forEach(k,function(a){a.scope===b&&(a.watcher=d.$watch(a.compareWithExp,a.watchFn),a.scope=d)})}else k={}}var i=[],j=[],k={},l=e.uibIsClass.match(b),m=l[2],n=l[1],o=n.split(",");return f}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(b){a.datepickerMode=b,a.datepickerOptions.datepickerMode=b}var n=this,o={$setViewValue:angular.noop},p={},q=[];b.addClass("uib-datepicker"),c.$set("role","application"),a.datepickerOptions||(a.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(b){switch(b){case"customClass":case"dateDisabled":a[b]=a.datepickerOptions[b]||angular.noop;break;case"datepickerMode":a.datepickerMode=angular.isDefined(a.datepickerOptions.datepickerMode)?a.datepickerOptions.datepickerMode:i.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":n[b]=angular.isDefined(a.datepickerOptions[b])?e(a.datepickerOptions[b])(a.$parent):i[b];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":n[b]=angular.isDefined(a.datepickerOptions[b])?a.datepickerOptions[b]:i[b];break;case"startingDay":angular.isDefined(a.datepickerOptions.startingDay)?n.startingDay=a.datepickerOptions.startingDay:angular.isNumber(i.startingDay)?n.startingDay=i.startingDay:n.startingDay=(f.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":a.$watch("datepickerOptions."+b,function(a){a?angular.isDate(a)?n[b]=l.fromTimezone(new Date(a),p.timezone):(j&&g.warn("Literal date support has been deprecated, please switch to date object usage"),n[b]=new Date(h(a,"medium"))):n[b]=i[b]?l.fromTimezone(new Date(i[b]),p.timezone):null,n.refreshView()});break;case"maxMode":case"minMode":a.datepickerOptions[b]?a.$watch(function(){return a.datepickerOptions[b]},function(c){n[b]=a[b]=angular.isDefined(c)?c:a.datepickerOptions[b],("minMode"===b&&n.modes.indexOf(a.datepickerOptions.datepickerMode)<n.modes.indexOf(n[b])||"maxMode"===b&&n.modes.indexOf(a.datepickerOptions.datepickerMode)>n.modes.indexOf(n[b]))&&(a.datepickerMode=n[b],a.datepickerOptions.datepickerMode=n[b])}):n[b]=a[b]=i[b]||null}}),a.uniqueId="datepicker-"+a.$id+"-"+Math.floor(1e4*Math.random()),a.disabled=angular.isDefined(c.disabled)||!1,angular.isDefined(c.ngDisabled)&&q.push(a.$parent.$watch(c.ngDisabled,function(b){a.disabled=b,n.refreshView()})),a.isActive=function(b){return 0===n.compare(b.date,n.activeDate)?(a.activeDateId=b.uid,!0):!1},this.init=function(b){o=b,p=b.$options||a.datepickerOptions.ngModelOptions||i.ngModelOptions,a.datepickerOptions.initDate?(n.activeDate=l.fromTimezone(a.datepickerOptions.initDate,p.timezone)||new Date,a.$watch("datepickerOptions.initDate",function(a){a&&(o.$isEmpty(o.$modelValue)||o.$invalid)&&(n.activeDate=l.fromTimezone(a,p.timezone),n.refreshView())})):n.activeDate=new Date;var c=o.$modelValue?new Date(o.$modelValue):new Date;this.activeDate=isNaN(c)?l.fromTimezone(new Date,p.timezone):l.fromTimezone(c,p.timezone),o.$render=function(){n.render()}},this.render=function(){if(o.$viewValue){var a=new Date(o.$viewValue),b=!isNaN(a);b?this.activeDate=l.fromTimezone(a,p.timezone):k||g.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){a.selectedDt=null,this._refreshView(),a.activeDt&&(a.activeDateId=a.activeDt.uid);var b=o.$viewValue?new Date(o.$viewValue):null;b=l.fromTimezone(b,p.timezone),o.$setValidity("dateDisabled",!b||this.element&&!this.isDisabled(b))}},this.createDateObject=function(b,c){var d=o.$viewValue?new Date(o.$viewValue):null;d=l.fromTimezone(d,p.timezone);var e=new Date;e=l.fromTimezone(e,p.timezone);var f=this.compare(b,e),g={date:b,label:l.filter(b,c),selected:d&&0===this.compare(b,d),disabled:this.isDisabled(b),past:0>f,current:0===f,future:f>0,customClass:this.customClass(b)||null};return d&&0===this.compare(b,d)&&(a.selectedDt=g),n.activeDate&&0===this.compare(g.date,n.activeDate)&&(a.activeDt=g),g},this.isDisabled=function(b){return a.disabled||this.minDate&&this.compare(b,this.minDate)<0||this.maxDate&&this.compare(b,this.maxDate)>0||a.dateDisabled&&a.dateDisabled({date:b,mode:a.datepickerMode})},this.customClass=function(b){return a.customClass({date:b,mode:a.datepickerMode})},this.split=function(a,b){for(var c=[];a.length>0;)c.push(a.splice(0,b));return c},a.select=function(b){if(a.datepickerMode===n.minMode){var c=o.$viewValue?l.fromTimezone(new Date(o.$viewValue),p.timezone):new Date(0,0,0,0,0,0,0);c.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()),c=l.toTimezone(c,p.timezone),o.$setViewValue(c),o.$render()}else n.activeDate=b,m(n.modes[n.modes.indexOf(a.datepickerMode)-1]),a.$emit("uib:datepicker.mode");a.$broadcast("uib:datepicker.focus")},a.move=function(a){var b=n.activeDate.getFullYear()+a*(n.step.years||0),c=n.activeDate.getMonth()+a*(n.step.months||0);n.activeDate.setFullYear(b,c,1),n.refreshView()},a.toggleMode=function(b){b=b||1,a.datepickerMode===n.maxMode&&1===b||a.datepickerMode===n.minMode&&-1===b||(m(n.modes[n.modes.indexOf(a.datepickerMode)+b]),a.$emit("uib:datepicker.mode"))},a.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var r=function(){n.element[0].focus()};a.$on("uib:datepicker.focus",r),a.keydown=function(b){var c=a.keys[b.which];if(c&&!b.shiftKey&&!b.altKey&&!a.disabled)if(b.preventDefault(),n.shortcutPropagation||b.stopPropagation(),"enter"===c||"space"===c){if(n.isDisabled(n.activeDate))return;a.select(n.activeDate)}else!b.ctrlKey||"up"!==c&&"down"!==c?(n.handleKeyDown(c,b),n.refreshView()):a.toggleMode("up"===c?1:-1)},b.on("keydown",function(b){a.$apply(function(){a.keydown(b)})}),a.$on("$destroy",function(){for(;q.length;)q.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(a,b,c){function d(a,b){return 1!==b||a%4!==0||a%100===0&&a%400!==0?f[b]:29}function e(a){var b=new Date(a);b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1}var f=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=b,this.init=function(b){angular.extend(b,this),a.showWeeks=b.showWeeks,b.refreshView()},this.getDates=function(a,b){for(var c,d=new Array(b),e=new Date(a),f=0;b>f;)c=new Date(e),d[f++]=c,e.setDate(e.getDate()+1);return d},this._refreshView=function(){var b=this.activeDate.getFullYear(),d=this.activeDate.getMonth(),f=new Date(this.activeDate);f.setFullYear(b,d,1);var g=this.startingDay-f.getDay(),h=g>0?7-g:-g,i=new Date(f);h>0&&i.setDate(-h+1);for(var j=this.getDates(i,42),k=0;42>k;k++)j[k]=angular.extend(this.createDateObject(j[k],this.formatDay),{secondary:j[k].getMonth()!==d,uid:a.uniqueId+"-"+k});a.labels=new Array(7);for(var l=0;7>l;l++)a.labels[l]={abbr:c(j[l].date,this.formatDayHeader),full:c(j[l].date,"EEEE")};if(a.title=c(this.activeDate,this.formatDayTitle),a.rows=this.split(j,7),a.showWeeks){a.weekNumbers=[];for(var m=(11-this.startingDay)%7,n=a.rows.length,o=0;n>o;o++)a.weekNumbers.push(e(a.rows[o][m].date))}},this.compare=function(a,b){var c=new Date(a.getFullYear(),a.getMonth(),a.getDate()),d=new Date(b.getFullYear(),b.getMonth(),b.getDate());return c.setFullYear(a.getFullYear()),d.setFullYear(b.getFullYear()),c-d},this.handleKeyDown=function(a,b){var c=this.activeDate.getDate();if("left"===a)c-=1;else if("up"===a)c-=7;else if("right"===a)c+=1;else if("down"===a)c+=7;else if("pageup"===a||"pagedown"===a){var e=this.activeDate.getMonth()+("pageup"===a?-1:1);this.activeDate.setMonth(e,1),c=Math.min(d(this.activeDate.getFullYear(),this.activeDate.getMonth()),c)}else"home"===a?c=1:"end"===a&&(c=d(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(c)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(a,b,c){this.step={years:1},this.element=b,this.init=function(a){angular.extend(a,this),a.refreshView()},this._refreshView=function(){for(var b,d=new Array(12),e=this.activeDate.getFullYear(),f=0;12>f;f++)b=new Date(this.activeDate),b.setFullYear(e,f,1),d[f]=angular.extend(this.createDateObject(b,this.formatMonth),{uid:a.uniqueId+"-"+f});a.title=c(this.activeDate,this.formatMonthTitle),a.rows=this.split(d,this.monthColumns),a.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1},this.compare=function(a,b){var c=new Date(a.getFullYear(),a.getMonth()),d=new Date(b.getFullYear(),b.getMonth());return c.setFullYear(a.getFullYear()),d.setFullYear(b.getFullYear()),c-d},this.handleKeyDown=function(a,b){var c=this.activeDate.getMonth();if("left"===a)c-=1;else if("up"===a)c-=this.monthColumns;else if("right"===a)c+=1;else if("down"===a)c+=this.monthColumns;else if("pageup"===a||"pagedown"===a){var d=this.activeDate.getFullYear()+("pageup"===a?-1:1);this.activeDate.setFullYear(d)}else"home"===a?c=0:"end"===a&&(c=11);this.activeDate.setMonth(c)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(a,b,c){function d(a){return parseInt((a-1)/f,10)*f+1}var e,f;this.element=b,this.yearpickerInit=function(){e=this.yearColumns,f=this.yearRows*e,this.step={years:f}},this._refreshView=function(){for(var b,c=new Array(f),g=0,h=d(this.activeDate.getFullYear());f>g;g++)b=new Date(this.activeDate),b.setFullYear(h+g,0,1),c[g]=angular.extend(this.createDateObject(b,this.formatYear),{uid:a.uniqueId+"-"+g});a.title=[c[0].label,c[f-1].label].join(" - "),a.rows=this.split(c,e),a.columns=e},this.compare=function(a,b){return a.getFullYear()-b.getFullYear()},this.handleKeyDown=function(a,b){var c=this.activeDate.getFullYear();"left"===a?c-=1:"up"===a?c-=e:"right"===a?c+=1:"down"===a?c+=e:"pageup"===a||"pagedown"===a?c+=("pageup"===a?-1:1)*f:"home"===a?c=d(this.activeDate.getFullYear()):"end"===a&&(c=d(this.activeDate.getFullYear())+f-1),this.activeDate.setFullYear(c)}}]).directive("uibDatepicker",function(){return{templateUrl:function(a,b){return b.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}).directive("uibDaypicker",function(){return{templateUrl:function(a,b){return b.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(a,b){return b.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",
-link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive("uibYearpicker",function(){return{templateUrl:function(a,b){return b.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(a,b,c,d){var e=d[0];angular.extend(e,d[1]),e.yearpickerInit(),e.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(a,b){var c,d,e={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},f={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},g=/(HTML|BODY)/;return{getRawNode:function(a){return a.nodeName?a:a[0]||a},parseStyle:function(a){return a=parseFloat(a),isFinite(a)?a:0},offsetParent:function(c){function d(a){return"static"===(b.getComputedStyle(a).position||"static")}c=this.getRawNode(c);for(var e=c.offsetParent||a[0].documentElement;e&&e!==a[0].documentElement&&d(e);)e=e.offsetParent;return e||a[0].documentElement},scrollbarWidth:function(e){if(e){if(angular.isUndefined(d)){var f=a.find("body");f.addClass("uib-position-body-scrollbar-measure"),d=b.innerWidth-f[0].clientWidth,d=isFinite(d)?d:0,f.removeClass("uib-position-body-scrollbar-measure")}return d}if(angular.isUndefined(c)){var g=angular.element('<div class="uib-position-scrollbar-measure"></div>');a.find("body").append(g),c=g[0].offsetWidth-g[0].clientWidth,c=isFinite(c)?c:0,g.remove()}return c},scrollbarPadding:function(a){a=this.getRawNode(a);var c=b.getComputedStyle(a),d=this.parseStyle(c.paddingRight),e=this.parseStyle(c.paddingBottom),f=this.scrollParent(a,!1,!0),h=this.scrollbarWidth(g.test(f.tagName));return{scrollbarWidth:h,widthOverflow:f.scrollWidth>f.clientWidth,right:d+h,originalRight:d,heightOverflow:f.scrollHeight>f.clientHeight,bottom:e+h,originalBottom:e}},isScrollable:function(a,c){a=this.getRawNode(a);var d=c?e.hidden:e.normal,f=b.getComputedStyle(a);return d.test(f.overflow+f.overflowY+f.overflowX)},scrollParent:function(c,d,f){c=this.getRawNode(c);var g=d?e.hidden:e.normal,h=a[0].documentElement,i=b.getComputedStyle(c);if(f&&g.test(i.overflow+i.overflowY+i.overflowX))return c;var j="absolute"===i.position,k=c.parentElement||h;if(k===h||"fixed"===i.position)return h;for(;k.parentElement&&k!==h;){var l=b.getComputedStyle(k);if(j&&"static"!==l.position&&(j=!1),!j&&g.test(l.overflow+l.overflowY+l.overflowX))break;k=k.parentElement}return k},position:function(c,d){c=this.getRawNode(c);var e=this.offset(c);if(d){var f=b.getComputedStyle(c);e.top-=this.parseStyle(f.marginTop),e.left-=this.parseStyle(f.marginLeft)}var g=this.offsetParent(c),h={top:0,left:0};return g!==a[0].documentElement&&(h=this.offset(g),h.top+=g.clientTop-g.scrollTop,h.left+=g.clientLeft-g.scrollLeft),{width:Math.round(angular.isNumber(e.width)?e.width:c.offsetWidth),height:Math.round(angular.isNumber(e.height)?e.height:c.offsetHeight),top:Math.round(e.top-h.top),left:Math.round(e.left-h.left)}},offset:function(c){c=this.getRawNode(c);var d=c.getBoundingClientRect();return{width:Math.round(angular.isNumber(d.width)?d.width:c.offsetWidth),height:Math.round(angular.isNumber(d.height)?d.height:c.offsetHeight),top:Math.round(d.top+(b.pageYOffset||a[0].documentElement.scrollTop)),left:Math.round(d.left+(b.pageXOffset||a[0].documentElement.scrollLeft))}},viewportOffset:function(c,d,e){c=this.getRawNode(c),e=e!==!1;var f=c.getBoundingClientRect(),g={top:0,left:0,bottom:0,right:0},h=d?a[0].documentElement:this.scrollParent(c),i=h.getBoundingClientRect();if(g.top=i.top+h.clientTop,g.left=i.left+h.clientLeft,h===a[0].documentElement&&(g.top+=b.pageYOffset,g.left+=b.pageXOffset),g.bottom=g.top+h.clientHeight,g.right=g.left+h.clientWidth,e){var j=b.getComputedStyle(h);g.top+=this.parseStyle(j.paddingTop),g.bottom-=this.parseStyle(j.paddingBottom),g.left+=this.parseStyle(j.paddingLeft),g.right-=this.parseStyle(j.paddingRight)}return{top:Math.round(f.top-g.top),bottom:Math.round(g.bottom-f.bottom),left:Math.round(f.left-g.left),right:Math.round(g.right-f.right)}},parsePlacement:function(a){var b=f.auto.test(a);return b&&(a=a.replace(f.auto,"")),a=a.split("-"),a[0]=a[0]||"top",f.primary.test(a[0])||(a[0]="top"),a[1]=a[1]||"center",f.secondary.test(a[1])||(a[1]="center"),b?a[2]=!0:a[2]=!1,a},positionElements:function(a,c,d,e){a=this.getRawNode(a),c=this.getRawNode(c);var g=angular.isDefined(c.offsetWidth)?c.offsetWidth:c.prop("offsetWidth"),h=angular.isDefined(c.offsetHeight)?c.offsetHeight:c.prop("offsetHeight");d=this.parsePlacement(d);var i=e?this.offset(a):this.position(a),j={top:0,left:0,placement:""};if(d[2]){var k=this.viewportOffset(a,e),l=b.getComputedStyle(c),m={width:g+Math.round(Math.abs(this.parseStyle(l.marginLeft)+this.parseStyle(l.marginRight))),height:h+Math.round(Math.abs(this.parseStyle(l.marginTop)+this.parseStyle(l.marginBottom)))};if(d[0]="top"===d[0]&&m.height>k.top&&m.height<=k.bottom?"bottom":"bottom"===d[0]&&m.height>k.bottom&&m.height<=k.top?"top":"left"===d[0]&&m.width>k.left&&m.width<=k.right?"right":"right"===d[0]&&m.width>k.right&&m.width<=k.left?"left":d[0],d[1]="top"===d[1]&&m.height-i.height>k.bottom&&m.height-i.height<=k.top?"bottom":"bottom"===d[1]&&m.height-i.height>k.top&&m.height-i.height<=k.bottom?"top":"left"===d[1]&&m.width-i.width>k.right&&m.width-i.width<=k.left?"right":"right"===d[1]&&m.width-i.width>k.left&&m.width-i.width<=k.right?"left":d[1],"center"===d[1])if(f.vertical.test(d[0])){var n=i.width/2-g/2;k.left+n<0&&m.width-i.width<=k.right?d[1]="left":k.right+n<0&&m.width-i.width<=k.left&&(d[1]="right")}else{var o=i.height/2-m.height/2;k.top+o<0&&m.height-i.height<=k.bottom?d[1]="top":k.bottom+o<0&&m.height-i.height<=k.top&&(d[1]="bottom")}}switch(d[0]){case"top":j.top=i.top-h;break;case"bottom":j.top=i.top+i.height;break;case"left":j.left=i.left-g;break;case"right":j.left=i.left+i.width}switch(d[1]){case"top":j.top=i.top;break;case"bottom":j.top=i.top+i.height-h;break;case"left":j.left=i.left;break;case"right":j.left=i.left+i.width-g;break;case"center":f.vertical.test(d[0])?j.left=i.left+i.width/2-g/2:j.top=i.top+i.height/2-h/2}return j.top=Math.round(j.top),j.left=Math.round(j.left),j.placement="center"===d[1]?d[0]:d[0]+"-"+d[1],j},adjustTop:function(a,b,c,d){return-1!==a.indexOf("top")&&c!==d?{top:b.top-d+"px"}:void 0},positionArrow:function(a,c){a=this.getRawNode(a);var d=a.querySelector(".tooltip-inner, .popover-inner");if(d){var e=angular.element(d).hasClass("tooltip-inner"),g=e?a.querySelector(".tooltip-arrow"):a.querySelector(".arrow");if(g){var h={top:"",bottom:"",left:"",right:""};if(c=this.parsePlacement(c),"center"===c[1])return void angular.element(g).css(h);var i="border-"+c[0]+"-width",j=b.getComputedStyle(g)[i],k="border-";k+=f.vertical.test(c[0])?c[0]+"-"+c[1]:c[1]+"-"+c[0],k+="-radius";var l=b.getComputedStyle(e?d:a)[k];switch(c[0]){case"top":h.bottom=e?"0":"-"+j;break;case"bottom":h.top=e?"0":"-"+j;break;case"left":h.right=e?"0":"-"+j;break;case"right":h.left=e?"0":"-"+j}h[c[1]]=l,angular.element(g).css(h)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(b){var c=l.parse(b,w,a.date);if(isNaN(c))for(var d=0;d<I.length;d++)if(c=l.parse(b,I[d],a.date),!isNaN(c))return c;return c}function r(a){if(angular.isNumber(a)&&(a=new Date(a)),!a)return null;if(angular.isDate(a)&&!isNaN(a))return a;if(angular.isString(a)){var b=q(a);if(!isNaN(b))return l.toTimezone(b,G.timezone)}return F.$options&&F.$options.allowInvalid?a:void 0}function s(a,b){var d=a||b;return c.ngRequired||d?(angular.isNumber(d)&&(d=new Date(d)),d?angular.isDate(d)&&!isNaN(d)?!0:angular.isString(d)?!isNaN(q(d)):!1:!0):!0}function t(c){if(a.isOpen||!a.disabled){var d=H[0],e=b[0].contains(c.target),f=void 0!==d.contains&&d.contains(c.target);!a.isOpen||e||f||a.$apply(function(){a.isOpen=!1})}}function u(c){27===c.which&&a.isOpen?(c.preventDefault(),c.stopPropagation(),a.$apply(function(){a.isOpen=!1}),b[0].focus()):40!==c.which||a.isOpen||(c.preventDefault(),c.stopPropagation(),a.$apply(function(){a.isOpen=!0}))}function v(){if(a.isOpen){var d=angular.element(H[0].querySelector(".uib-datepicker-popup")),e=c.popupPlacement?c.popupPlacement:m.placement,f=j.positionElements(b,d,e,y);d.css({top:f.top+"px",left:f.left+"px"}),d.hasClass("uib-position-measure")&&d.removeClass("uib-position-measure")}}var w,x,y,z,A,B,C,D,E,F,G,H,I,J=!1,K=[];this.init=function(e){if(F=e,G=angular.isObject(e.$options)?e.$options:{timezone:null},x=angular.isDefined(c.closeOnDateSelection)?a.$parent.$eval(c.closeOnDateSelection):m.closeOnDateSelection,y=angular.isDefined(c.datepickerAppendToBody)?a.$parent.$eval(c.datepickerAppendToBody):m.appendToBody,z=angular.isDefined(c.onOpenFocus)?a.$parent.$eval(c.onOpenFocus):m.onOpenFocus,A=angular.isDefined(c.datepickerPopupTemplateUrl)?c.datepickerPopupTemplateUrl:m.datepickerPopupTemplateUrl,B=angular.isDefined(c.datepickerTemplateUrl)?c.datepickerTemplateUrl:m.datepickerTemplateUrl,I=angular.isDefined(c.altInputFormats)?a.$parent.$eval(c.altInputFormats):m.altInputFormats,a.showButtonBar=angular.isDefined(c.showButtonBar)?a.$parent.$eval(c.showButtonBar):m.showButtonBar,m.html5Types[c.type]?(w=m.html5Types[c.type],J=!0):(w=c.uibDatepickerPopup||m.datepickerPopup,c.$observe("uibDatepickerPopup",function(a,b){var c=a||m.datepickerPopup;if(c!==w&&(w=c,F.$modelValue=null,!w))throw new Error("uibDatepickerPopup must have a date format specified.")})),!w)throw new Error("uibDatepickerPopup must have a date format specified.");if(J&&c.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");C=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),C.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":A}),D=angular.element(C.children()[0]),D.attr("template-url",B),a.datepickerOptions||(a.datepickerOptions={}),J&&"month"===c.type&&(a.datepickerOptions.datepickerMode="month",a.datepickerOptions.minMode="month"),D.attr("datepicker-options","datepickerOptions"),J?F.$formatters.push(function(b){return a.date=l.fromTimezone(b,G.timezone),b}):(F.$$parserName="date",F.$validators.date=s,F.$parsers.unshift(r),F.$formatters.push(function(b){return F.$isEmpty(b)?(a.date=b,b):(angular.isNumber(b)&&(b=new Date(b)),a.date=l.fromTimezone(b,G.timezone),l.filter(a.date,w))})),F.$viewChangeListeners.push(function(){a.date=q(F.$viewValue)}),b.on("keydown",u),H=d(C)(a),C.remove(),y?h.find("body").append(H):b.after(H),a.$on("$destroy",function(){for(a.isOpen===!0&&(i.$$phase||a.$apply(function(){a.isOpen=!1})),H.remove(),b.off("keydown",u),h.off("click",t),E&&E.off("scroll",v),angular.element(g).off("resize",v);K.length;)K.shift()()})},a.getText=function(b){return a[b+"Text"]||m[b+"Text"]},a.isDisabled=function(b){"today"===b&&(b=l.fromTimezone(new Date,G.timezone));var c={};return angular.forEach(["minDate","maxDate"],function(b){a.datepickerOptions[b]?angular.isDate(a.datepickerOptions[b])?c[b]=new Date(a.datepickerOptions[b]):(p&&e.warn("Literal date support has been deprecated, please switch to date object usage"),c[b]=new Date(k(a.datepickerOptions[b],"medium"))):c[b]=null}),a.datepickerOptions&&c.minDate&&a.compare(b,c.minDate)<0||c.maxDate&&a.compare(b,c.maxDate)>0},a.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate())-new Date(b.getFullYear(),b.getMonth(),b.getDate())},a.dateSelection=function(c){a.date=c;var d=a.date?l.filter(a.date,w):null;b.val(d),F.$setViewValue(d),x&&(a.isOpen=!1,b[0].focus())},a.keydown=function(c){27===c.which&&(c.stopPropagation(),a.isOpen=!1,b[0].focus())},a.select=function(b,c){if(c.stopPropagation(),"today"===b){var d=new Date;angular.isDate(a.date)?(b=new Date(a.date),b.setFullYear(d.getFullYear(),d.getMonth(),d.getDate())):(b=l.fromTimezone(d,G.timezone),b.setHours(0,0,0,0))}a.dateSelection(b)},a.close=function(c){c.stopPropagation(),a.isOpen=!1,b[0].focus()},a.disabled=angular.isDefined(c.disabled)||!1,c.ngDisabled&&K.push(a.$parent.$watch(f(c.ngDisabled),function(b){a.disabled=b})),a.$watch("isOpen",function(d){d?a.disabled?a.isOpen=!1:n(function(){v(),z&&a.$broadcast("uib:datepicker.focus"),h.on("click",t);var d=c.popupPlacement?c.popupPlacement:m.placement;y||j.parsePlacement(d)[2]?(E=E||angular.element(j.scrollParent(b)),E&&E.on("scroll",v)):E=null,angular.element(g).on("resize",v)},0,!1):(h.off("click",t),E&&E.off("scroll",v),angular.element(g).off("resize",v))}),a.$on("uib:datepicker.mode",function(){n(v,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(a){return function(b,c){var d;return function(){var e=this,f=Array.prototype.slice.call(arguments);d&&a.cancel(d),d=a(function(){b.apply(e,f)},c)}}}]),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var a={};return{entries:function(){return Object.keys(a).map(function(b){return{key:b,value:a[b]}})},get:function(b){return a[b]},hasKey:function(b){return!!a[b]},keys:function(){return Object.keys(a)},put:function(b,c){a[b]||(a[b]=[]),a[b].push(c)},remove:function(b,c){var d=a[b];if(d){var e=d.indexOf(c);-1!==e&&d.splice(e,1),d.length||delete a[b]}}}}}}),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(a,b,c){var d=null,e=c.createNew();this.isOnlyOpen=function(a,b){var c=e.get(b);if(c){var d=c.reduce(function(b,c){return c.scope===a?c:b},{});if(d)return 1===c.length}return!1},this.open=function(b,c,g){if(d||a.on("click",f),d&&d!==b&&(d.isOpen=!1),d=b,g){var h=e.get(g);if(h){var i=h.map(function(a){return a.scope});-1===i.indexOf(b)&&e.put(g,{scope:b})}else e.put(g,{scope:b})}},this.close=function(b,c,g){if(d===b&&(a.off("click",f),a.off("keydown",this.keybindFilter),d=null),g){var h=e.get(g);if(h){var i=h.reduce(function(a,c){return c.scope===b?c:a},{});i&&e.remove(g,i)}}};var f=function(a){if(d&&!(a&&"disabled"===d.getAutoClose()||a&&3===a.which)){var c=d.getToggleElement();if(!(a&&c&&c[0].contains(a.target))){var e=d.getDropdownElement();a&&"outsideClick"===d.getAutoClose()&&e&&e[0].contains(a.target)||(d.focusToggleElement(),d.isOpen=!1,b.$$phase||d.$apply())}}};this.keybindFilter=function(a){if(d){var b=d.getDropdownElement(),c=d.getToggleElement(),e=b&&b[0].contains(a.target),g=c&&c[0].contains(a.target);27===a.which?(a.stopPropagation(),d.focusToggleElement(),f()):d.isKeynavEnabled()&&-1!==[38,40].indexOf(a.which)&&d.isOpen&&(e||g)&&(a.preventDefault(),a.stopPropagation(),d.focusDropdownEntry(a.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(a,b,c,d,e,f,g,h,i,j,k){var l,m,n=this,o=a.$new(),p=e.appendToOpenClass,q=e.openClass,r=angular.noop,s=c.onToggle?d(c.onToggle):angular.noop,t=!1,u=null,v=!1,w=i.find("body");b.addClass("dropdown"),this.init=function(){if(c.isOpen&&(m=d(c.isOpen),r=m.assign,a.$watch(m,function(a){o.isOpen=!!a})),angular.isDefined(c.dropdownAppendTo)){var e=d(c.dropdownAppendTo)(o);e&&(u=angular.element(e))}t=angular.isDefined(c.dropdownAppendToBody),v=angular.isDefined(c.keyboardNav),t&&!u&&(u=w),u&&n.dropdownMenu&&(u.append(n.dropdownMenu),b.on("$destroy",function(){n.dropdownMenu.remove()}))},this.toggle=function(a){return o.isOpen=arguments.length?!!a:!o.isOpen,angular.isFunction(r)&&r(o,o.isOpen),o.isOpen},this.isOpen=function(){return o.isOpen},o.getToggleElement=function(){return n.toggleElement},o.getAutoClose=function(){return c.autoClose||"always"},o.getElement=function(){return b},o.isKeynavEnabled=function(){return v},o.focusDropdownEntry=function(a){var c=n.dropdownMenu?angular.element(n.dropdownMenu).find("a"):b.find("ul").eq(0).find("a");switch(a){case 40:angular.isNumber(n.selectedOption)?n.selectedOption=n.selectedOption===c.length-1?n.selectedOption:n.selectedOption+1:n.selectedOption=0;break;case 38:angular.isNumber(n.selectedOption)?n.selectedOption=0===n.selectedOption?0:n.selectedOption-1:n.selectedOption=c.length-1}c[n.selectedOption].focus()},o.getDropdownElement=function(){return n.dropdownMenu},o.focusToggleElement=function(){n.toggleElement&&n.toggleElement[0].focus()},o.$watch("isOpen",function(c,d){if(u&&n.dropdownMenu){var e,m,v,w=h.positionElements(b,n.dropdownMenu,"bottom-left",!0),x=0;if(e={top:w.top+"px",display:c?"block":"none"},m=n.dropdownMenu.hasClass("dropdown-menu-right"),m?(e.left="auto",v=h.scrollbarPadding(u),v.heightOverflow&&v.scrollbarWidth&&(x=v.scrollbarWidth),e.right=window.innerWidth-x-(w.left+b.prop("offsetWidth"))+"px"):(e.left=w.left+"px",e.right="auto"),!t){var y=h.offset(u);e.top=w.top-y.top+"px",m?e.right=window.innerWidth-(w.left-y.left+b.prop("offsetWidth"))+"px":e.left=w.left-y.left+"px"}n.dropdownMenu.css(e)}var z=u?u:b,A=u?p:q,B=z.hasClass(A),C=f.isOnlyOpen(a,u);if(B===!c){var D;D=u?C?"removeClass":"addClass":c?"addClass":"removeClass",g[D](z,A).then(function(){angular.isDefined(c)&&c!==d&&s(a,{open:!!c})})}if(c)n.dropdownMenuTemplateUrl?k(n.dropdownMenuTemplateUrl).then(function(a){l=o.$new(),j(a.trim())(l,function(a){var b=a;n.dropdownMenu.replaceWith(b),n.dropdownMenu=b,i.on("keydown",f.keybindFilter)})}):i.on("keydown",f.keybindFilter),o.focusToggleElement(),f.open(o,b,u);else{if(f.close(o,b,u),n.dropdownMenuTemplateUrl){l&&l.$destroy();var E=angular.element('<ul class="dropdown-menu"></ul>');n.dropdownMenu.replaceWith(E),n.dropdownMenu=E}n.selectedOption=null}angular.isFunction(r)&&r(a,c)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(a,b,c,d){d.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(a,b,c,d){if(d&&!angular.isDefined(c.dropdownNested)){b.addClass("dropdown-menu");var e=c.templateUrl;e&&(d.dropdownMenuTemplateUrl=e),d.dropdownMenu||(d.dropdownMenu=b)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(a,b,c,d){if(d){b.addClass("dropdown-toggle"),d.toggleElement=b;var e=function(e){e.preventDefault(),b.hasClass("disabled")||c.disabled||a.$apply(function(){d.toggle()})};b.on("click",e),b.attr({"aria-haspopup":!0,"aria-expanded":!1}),a.$watch(d.isOpen,function(a){b.attr("aria-expanded",!!a)}),a.$on("$destroy",function(){b.off("click",e)})}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var a=[];return{add:function(b,c){a.push({key:b,value:c})},get:function(b){for(var c=0;c<a.length;c++)if(b===a[c].key)return a[c]},keys:function(){for(var b=[],c=0;c<a.length;c++)b.push(a[c].key);return b},top:function(){return a[a.length-1]},remove:function(b){for(var c=-1,d=0;d<a.length;d++)if(b===a[d].key){c=d;break}return a.splice(c,1)[0]},removeTop:function(){return a.pop()},length:function(){return a.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var a=this;this.resolver=null,this.setResolver=function(a){this.resolver=a},this.$get=["$injector","$q",function(b,c){var d=a.resolver?b.get(a.resolver):null;return{resolve:function(a,e,f,g){if(d)return d.resolve(a,e,f,g);var h=[];return angular.forEach(a,function(a){angular.isFunction(a)||angular.isArray(a)?h.push(c.resolve(b.invoke(a))):angular.isString(a)?h.push(c.resolve(b.get(a))):h.push(c.resolve(a))}),c.all(h).then(function(b){var c={},d=0;return angular.forEach(a,function(a,e){c[e]=b[d++]}),c})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(a,b,c){function d(b,d,e){e.modalInClass&&(a.addClass(d,e.modalInClass),b.$on(c.NOW_CLOSING_EVENT,function(c,f){var g=f();b.modalOptions.animation?a.removeClass(d,e.modalInClass).then(g):g()}))}return{restrict:"A",compile:function(a,b){return a.addClass(b.backdropClass),d}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(a,b,c,d){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/modal/window.html"},link:function(e,f,g){f.addClass(g.windowTopClass||""),e.size=g.size,e.close=function(b){var c=a.getTop();c&&c.value.backdrop&&"static"!==c.value.backdrop&&b.target===b.currentTarget&&(b.preventDefault(),b.stopPropagation(),a.dismiss(c.key,"backdrop click"))},f.on("click",e.close),e.$isRendered=!0;var h=b.defer();e.$$postDigest(function(){h.resolve()}),h.promise.then(function(){var h=null;g.modalInClass&&(h=c(f,{addClass:g.modalInClass}).start(),e.$on(a.NOW_CLOSING_EVENT,function(a,b){var d=b();c(f,{removeClass:g.modalInClass}).start().then(d)})),b.when(h).then(function(){var b=a.getTop();if(b&&a.modalRendered(b.key),!d[0].activeElement||!f[0].contains(d[0].activeElement)){var c=f[0].querySelector("[autofocus]");c?c.focus():f[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(a,b){b.modalAnimation&&a.addClass(b.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(a){return{link:function(b,c,d,e,f){f(b.$parent,function(b){c.empty(),a.enter(b,c)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(a,b,c,d,e,f,g,h,i){function j(a){var b="-";return a.replace(E,function(a,c){return(c?b:"")+a.toLowerCase()})}function k(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)}function l(){for(var a=-1,b=x.keys(),c=0;c<b.length;c++)x.get(b[c]).value.backdrop&&(a=c);return a>-1&&A>a&&(a=A),a}function m(a,b){var c=x.get(a).value,d=c.appendTo;x.remove(a),B=x.top(),B&&(A=parseInt(B.value.modalDomEl.attr("index"),10)),p(c.modalDomEl,c.modalScope,function(){var b=c.openedClass||w;y.remove(b,a);var e=y.hasKey(b);d.toggleClass(b,e),!e&&v&&v.heightOverflow&&v.scrollbarWidth&&(v.originalRight?d.css({paddingRight:v.originalRight+"px"}):d.css({paddingRight:""}),v=null),n(!0)},c.closedDeferred),o(),b&&b.focus?b.focus():d.focus&&d.focus()}function n(a){var b;x.length()>0&&(b=x.top().value,b.modalDomEl.toggleClass(b.windowTopClass||"",a))}function o(){if(t&&-1===l()){var a=u;p(t,u,function(){a=null}),t=void 0,u=void 0}}function p(b,c,d,e){function g(){g.done||(g.done=!0,a.leave(b).then(function(){d&&d(),b.remove(),e&&e.resolve()}),c.$destroy())}var h,i=null,j=function(){return h||(h=f.defer(),i=h.promise),function(){h.resolve()}};return c.$broadcast(z.NOW_CLOSING_EVENT,j),f.when(i).then(g)}function q(a){if(a.isDefaultPrevented())return a;var b=x.top();if(b)switch(a.which){case 27:b.value.keyboard&&(a.preventDefault(),e.$apply(function(){z.dismiss(b.key,"escape key press")}));break;case 9:var c=z.loadFocusElementList(b),d=!1;a.shiftKey?(z.isFocusInFirstItem(a,c)||z.isModalFocused(a,b))&&(d=z.focusLastFocusableElement(c)):z.isFocusInLastItem(a,c)&&(d=z.focusFirstFocusableElement(c)),d&&(a.preventDefault(),a.stopPropagation())}}function r(a,b,c){return!a.value.modalScope.$broadcast("modal.closing",b,c).defaultPrevented}function s(){Array.prototype.forEach.call(document.querySelectorAll("["+C+"]"),function(a){var b=parseInt(a.getAttribute(C),10),c=b-1;a.setAttribute(C,c),c||(a.removeAttribute(C),a.removeAttribute("aria-hidden"))})}var t,u,v,w="modal-open",x=h.createNew(),y=g.createNew(),z={NOW_CLOSING_EVENT:"modal.stack.now-closing"},A=0,B=null,C="data-bootstrap-modal-aria-hidden-count",D="a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]",E=/[A-Z]/g;return e.$watch(l,function(a){u&&(u.index=a)}),c.on("keydown",q),e.$on("$destroy",function(){c.off("keydown",q)}),z.open=function(b,f){function g(a){function b(a){var b=a.parent()?a.parent().children():[];return Array.prototype.filter.call(b,function(b){return b!==a[0]})}if(a&&"BODY"!==a[0].tagName)return b(a).forEach(function(a){var b="true"===a.getAttribute("aria-hidden"),c=parseInt(a.getAttribute(C),10);c||(c=b?1:0),a.setAttribute(C,c+1),a.setAttribute("aria-hidden","true")}),g(a.parent())}var h=c[0].activeElement,k=f.openedClass||w;n(!1),B=x.top(),x.add(b,{deferred:f.deferred,renderDeferred:f.renderDeferred,closedDeferred:f.closedDeferred,modalScope:f.scope,backdrop:f.backdrop,keyboard:f.keyboard,openedClass:f.openedClass,windowTopClass:f.windowTopClass,animation:f.animation,appendTo:f.appendTo}),y.put(k,b);var m=f.appendTo,o=l();if(!m.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");o>=0&&!t&&(u=e.$new(!0),u.modalOptions=f,u.index=o,t=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),t.attr({"class":"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),f.backdropClass&&t.addClass(f.backdropClass),f.animation&&t.attr("modal-animation","true"),d(t)(u),a.enter(t,m),i.isScrollable(m)&&(v=i.scrollbarPadding(m),v.heightOverflow&&v.scrollbarWidth&&m.css({paddingRight:v.right+"px"})));var p;f.component?(p=document.createElement(j(f.component.name)),p=angular.element(p),p.attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):p=f.content,A=B?parseInt(B.value.modalDomEl.attr("index"),10)+1:0;var q=angular.element('<div uib-modal-window="modal-window"></div>');q.attr({"class":"modal","template-url":f.windowTemplateUrl,"window-top-class":f.windowTopClass,role:"dialog","aria-labelledby":f.ariaLabelledBy,"aria-describedby":f.ariaDescribedBy,size:f.size,index:A,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(p),f.windowClass&&q.addClass(f.windowClass),f.animation&&q.attr("modal-animation","true"),m.addClass(k),f.scope&&(f.scope.$$topModalIndex=A),a.enter(d(q)(f.scope),m),x.top().value.modalDomEl=q,x.top().value.modalOpener=h,g(q)},z.close=function(a,b){var c=x.get(a);return s(),c&&r(c,b,!0)?(c.value.modalScope.$$uibDestructionScheduled=!0,c.value.deferred.resolve(b),m(a,c.value.modalOpener),!0):!c},z.dismiss=function(a,b){var c=x.get(a);return s(),c&&r(c,b,!1)?(c.value.modalScope.$$uibDestructionScheduled=!0,c.value.deferred.reject(b),m(a,c.value.modalOpener),!0):!c},z.dismissAll=function(a){for(var b=this.getTop();b&&this.dismiss(b.key,a);)b=this.getTop()},z.getTop=function(){return x.top()},z.modalRendered=function(a){var b=x.get(a);b&&b.value.renderDeferred.resolve()},z.focusFirstFocusableElement=function(a){return a.length>0?(a[0].focus(),!0):!1},z.focusLastFocusableElement=function(a){return a.length>0?(a[a.length-1].focus(),!0):!1},z.isModalFocused=function(a,b){if(a&&b){var c=b.value.modalDomEl;if(c&&c.length)return(a.target||a.srcElement)===c[0]}return!1},z.isFocusInFirstItem=function(a,b){return b.length>0?(a.target||a.srcElement)===b[0]:!1},z.isFocusInLastItem=function(a,b){return b.length>0?(a.target||a.srcElement)===b[b.length-1]:!1},z.loadFocusElementList=function(a){if(a){var b=a.value.modalDomEl;if(b&&b.length){var c=b[0].querySelectorAll(D);return c?Array.prototype.filter.call(c,function(a){return k(a)}):c}}},z}]).provider("$uibModal",function(){var a={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(b,c,d,e,f,g,h){function i(a){return a.template?c.when(a.template):e(angular.isFunction(a.templateUrl)?a.templateUrl():a.templateUrl)}var j={},k=null;return j.getPromiseChain=function(){return k},j.open=function(e){function j(){return q}var l=c.defer(),m=c.defer(),n=c.defer(),o=c.defer(),p={result:l.promise,opened:m.promise,closed:n.promise,rendered:o.promise,close:function(a){return h.close(p,a)},dismiss:function(a){return h.dismiss(p,a)}};if(e=angular.extend({},a.options,e),e.resolve=e.resolve||{},e.appendTo=e.appendTo||d.find("body").eq(0),!e.component&&!e.template&&!e.templateUrl)throw new Error("One of component or template or templateUrl options is required.");var q;q=e.component?c.when(g.resolve(e.resolve,{},null,null)):c.all([i(e),g.resolve(e.resolve,{},null,null)]);var r;return r=k=c.all([k]).then(j,j).then(function(a){function c(b,c,d,e){b.$scope=g,b.$scope.$resolve={},d?b.$scope.$uibModalInstance=p:b.$uibModalInstance=p;var f=c?a[1]:a;angular.forEach(f,function(a,c){e&&(b[c]=a),b.$scope.$resolve[c]=a})}var d=e.scope||b,g=d.$new();g.$close=p.close,g.$dismiss=p.dismiss,g.$on("$destroy",function(){g.$$uibDestructionScheduled||g.$dismiss("$uibUnscheduledDestruction")});var i,j,k={scope:g,deferred:l,renderDeferred:o,closedDeferred:n,animation:e.animation,backdrop:e.backdrop,keyboard:e.keyboard,backdropClass:e.backdropClass,windowTopClass:e.windowTopClass,windowClass:e.windowClass,windowTemplateUrl:e.windowTemplateUrl,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,size:e.size,openedClass:e.openedClass,appendTo:e.appendTo},q={},r={};e.component?(c(q,!1,!0,!1),q.name=e.component,k.component=q):e.controller&&(c(r,!0,!1,!0),j=f(e.controller,r,!0,e.controllerAs),e.controllerAs&&e.bindToController&&(i=j.instance,i.$close=g.$close,i.$dismiss=g.$dismiss,angular.extend(i,{$resolve:r.$scope.$resolve},d)),i=j(),angular.isFunction(i.$onInit)&&i.$onInit()),e.component||(k.content=a[0]),h.open(p,k),m.resolve(!0)},function(a){m.reject(a),l.reject(a)})["finally"](function(){k===r&&(k=null)}),p},j}]};return a}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(a){return{create:function(b,c,d){b.setNumPages=d.numPages?a(d.numPages).assign:angular.noop,b.ngModelCtrl={$setViewValue:angular.noop},b._watchers=[],b.init=function(a,e){b.ngModelCtrl=a,b.config=e,a.$render=function(){b.render()},d.itemsPerPage?b._watchers.push(c.$parent.$watch(d.itemsPerPage,function(a){b.itemsPerPage=parseInt(a,10),c.totalPages=b.calculateTotalPages(),b.updatePage()})):b.itemsPerPage=e.itemsPerPage,c.$watch("totalItems",function(a,d){(angular.isDefined(a)||a!==d)&&(c.totalPages=b.calculateTotalPages(),b.updatePage())})},b.calculateTotalPages=function(){var a=b.itemsPerPage<1?1:Math.ceil(c.totalItems/b.itemsPerPage);return Math.max(a||0,1)},b.render=function(){c.page=parseInt(b.ngModelCtrl.$viewValue,10)||1},c.selectPage=function(a,d){d&&d.preventDefault();var e=!c.ngDisabled||!d;e&&c.page!==a&&a>0&&a<=c.totalPages&&(d&&d.target&&d.target.blur(),b.ngModelCtrl.$setViewValue(a),
-b.ngModelCtrl.$render())},c.getText=function(a){return c[a+"Text"]||b.config[a+"Text"]},c.noPrevious=function(){return 1===c.page},c.noNext=function(){return c.page===c.totalPages},b.updatePage=function(){b.setNumPages(c.$parent,c.totalPages),c.page>c.totalPages?c.selectPage(c.totalPages):b.ngModelCtrl.$render()},c.$on("$destroy",function(){for(;b._watchers.length;)b._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(a,b,c,d){a.align=angular.isDefined(b.align)?a.$parent.$eval(b.align):d.align,c.create(this,a,b)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(a){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(a,b){return b.templateUrl||"uib/template/pager/pager.html"},link:function(b,c,d,e){c.addClass("pager");var f=e[0],g=e[1];g&&f.init(g,a)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(a,b,c,d,e){function f(a,b,c){return{number:a,text:b,active:c}}function g(a,b){var c=[],d=1,e=b,g=angular.isDefined(i)&&b>i;g&&(j?(d=Math.max(a-Math.floor(i/2),1),e=d+i-1,e>b&&(e=b,d=e-i+1)):(d=(Math.ceil(a/i)-1)*i+1,e=Math.min(d+i-1,b)));for(var h=d;e>=h;h++){var n=f(h,m(h),h===a);c.push(n)}if(g&&i>0&&(!j||k||l)){if(d>1){if(!l||d>3){var o=f(d-1,"...",!1);c.unshift(o)}if(l){if(3===d){var p=f(2,"2",!1);c.unshift(p)}var q=f(1,"1",!1);c.unshift(q)}}if(b>e){if(!l||b-2>e){var r=f(e+1,"...",!1);c.push(r)}if(l){if(e===b-2){var s=f(b-1,b-1,!1);c.push(s)}var t=f(b,b,!1);c.push(t)}}}return c}var h=this,i=angular.isDefined(b.maxSize)?a.$parent.$eval(b.maxSize):e.maxSize,j=angular.isDefined(b.rotate)?a.$parent.$eval(b.rotate):e.rotate,k=angular.isDefined(b.forceEllipses)?a.$parent.$eval(b.forceEllipses):e.forceEllipses,l=angular.isDefined(b.boundaryLinkNumbers)?a.$parent.$eval(b.boundaryLinkNumbers):e.boundaryLinkNumbers,m=angular.isDefined(b.pageLabel)?function(c){return a.$parent.$eval(b.pageLabel,{$page:c})}:angular.identity;a.boundaryLinks=angular.isDefined(b.boundaryLinks)?a.$parent.$eval(b.boundaryLinks):e.boundaryLinks,a.directionLinks=angular.isDefined(b.directionLinks)?a.$parent.$eval(b.directionLinks):e.directionLinks,d.create(this,a,b),b.maxSize&&h._watchers.push(a.$parent.$watch(c(b.maxSize),function(a){i=parseInt(a,10),h.render()}));var n=this.render;this.render=function(){n(),a.page>0&&a.page<=a.totalPages&&(a.pages=g(a.page,a.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(a,b){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(a,b){return b.templateUrl||"uib/template/pagination/pagination.html"},link:function(a,c,d,e){c.addClass("pagination");var f=e[0],g=e[1];g&&f.init(g,b)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function a(a){var b=/[A-Z]/g,c="-";return a.replace(b,function(a,b){return(b?c:"")+a.toLowerCase()})}var b={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},c={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},d={};this.options=function(a){angular.extend(d,a)},this.setTriggers=function(a){angular.extend(c,a)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(e,f,g,h,i,j,k,l,m){function n(a){if(27===a.which){var b=o.top();b&&(b.value.close(),b=null)}}var o=m.createNew();return h.on("keyup",n),k.$on("$destroy",function(){h.off("keyup",n)}),function(e,k,m,n){function p(a){var b=(a||n.trigger||m).split(" "),d=b.map(function(a){return c[a]||a});return{show:b,hide:d}}n=angular.extend({},b,d,n);var q=a(e),r=j.startSymbol(),s=j.endSymbol(),t="<div "+q+'-popup uib-title="'+r+"title"+s+'" '+(n.useContentExp?'content-exp="contentExp()" ':'content="'+r+"content"+s+'" ')+'origin-scope="origScope" class="uib-position-measure '+k+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(a,b){var c=f(t);return function(a,b,d,f){function j(){O.isOpen?q():m()}function m(){N&&!a.$eval(d[k+"Enable"])||(u(),x(),O.popupDelay?G||(G=g(r,O.popupDelay,!1)):r())}function q(){s(),O.popupCloseDelay?H||(H=g(t,O.popupCloseDelay,!1)):t()}function r(){return s(),u(),O.content?(v(),void O.$evalAsync(function(){O.isOpen=!0,y(!0),T()})):angular.noop}function s(){G&&(g.cancel(G),G=null),I&&(g.cancel(I),I=null)}function t(){O&&O.$evalAsync(function(){O&&(O.isOpen=!1,y(!1),O.animation?F||(F=g(w,150,!1)):w())})}function u(){H&&(g.cancel(H),H=null),F&&(g.cancel(F),F=null)}function v(){D||(E=O.$new(),D=c(E,function(a){L?h.find("body").append(a):b.after(a)}),o.add(O,{close:t}),z())}function w(){s(),u(),A(),D&&(D.remove(),D=null,J&&g.cancel(J)),o.remove(O),E&&(E.$destroy(),E=null)}function x(){O.title=d[k+"Title"],R?O.content=R(a):O.content=d[e],O.popupClass=d[k+"Class"],O.placement=angular.isDefined(d[k+"Placement"])?d[k+"Placement"]:n.placement;var b=i.parsePlacement(O.placement);K=b[1]?b[0]+"-"+b[1]:b[0];var c=parseInt(d[k+"PopupDelay"],10),f=parseInt(d[k+"PopupCloseDelay"],10);O.popupDelay=isNaN(c)?n.popupDelay:c,O.popupCloseDelay=isNaN(f)?n.popupCloseDelay:f}function y(b){Q&&angular.isFunction(Q.assign)&&Q.assign(a,b)}function z(){S.length=0,R?(S.push(a.$watch(R,function(a){O.content=a,!a&&O.isOpen&&t()})),S.push(E.$watch(function(){P||(P=!0,E.$$postDigest(function(){P=!1,O&&O.isOpen&&T()}))}))):S.push(d.$observe(e,function(a){O.content=a,!a&&O.isOpen?t():T()})),S.push(d.$observe(k+"Title",function(a){O.title=a,O.isOpen&&T()})),S.push(d.$observe(k+"Placement",function(a){O.placement=a?a:n.placement,O.isOpen&&T()}))}function A(){S.length&&(angular.forEach(S,function(a){a()}),S.length=0)}function B(a){O&&O.isOpen&&D&&(b[0].contains(a.target)||D[0].contains(a.target)||q())}function C(){var c=[],e=[],f=a.$eval(d[k+"Trigger"]);U(),angular.isObject(f)?(Object.keys(f).forEach(function(a){c.push(a),e.push(f[a])}),M={show:c,hide:e}):M=p(f),"none"!==M.show&&M.show.forEach(function(a,c){"outsideClick"===a?(b.on("click",j),h.on("click",B)):a===M.hide[c]?b.on(a,j):a&&(b.on(a,m),b.on(M.hide[c],q)),b.on("keypress",function(a){27===a.which&&q()})})}var D,E,F,G,H,I,J,K,L=angular.isDefined(n.appendToBody)?n.appendToBody:!1,M=p(void 0),N=angular.isDefined(d[k+"Enable"]),O=a.$new(!0),P=!1,Q=angular.isDefined(d[k+"IsOpen"])?l(d[k+"IsOpen"]):!1,R=n.useContentExp?l(d[e]):!1,S=[],T=function(){D&&D.html()&&(I||(I=g(function(){var a=i.positionElements(b,D,O.placement,L),c=angular.isDefined(D.offsetHeight)?D.offsetHeight:D.prop("offsetHeight"),d=L?i.offset(b):i.position(b);D.css({top:a.top+"px",left:a.left+"px"});var e=a.placement.split("-");D.hasClass(e[0])||(D.removeClass(K.split("-")[0]),D.addClass(e[0])),D.hasClass(n.placementClassPrefix+a.placement)||(D.removeClass(n.placementClassPrefix+K),D.addClass(n.placementClassPrefix+a.placement)),J=g(function(){var a=angular.isDefined(D.offsetHeight)?D.offsetHeight:D.prop("offsetHeight"),b=i.adjustTop(e,d,c,a);b&&D.css(b),J=null},0,!1),D.hasClass("uib-position-measure")?(i.positionArrow(D,a.placement),D.removeClass("uib-position-measure")):K!==a.placement&&i.positionArrow(D,a.placement),K=a.placement,I=null},0,!1)))};O.origScope=a,O.isOpen=!1,O.contentExp=function(){return O.content},d.$observe("disabled",function(a){a&&s(),a&&O.isOpen&&t()}),Q&&a.$watch(Q,function(a){O&&!a===O.isOpen&&j()});var U=function(){M.show.forEach(function(a){"outsideClick"===a?b.off("click",j):(b.off(a,m),b.off(a,j))}),M.hide.forEach(function(a){"outsideClick"===a?h.off("click",B):b.off(a,q)})};C();var V=a.$eval(d[k+"Animation"]);O.animation=angular.isDefined(V)?!!V:n.animation;var W,X=k+"AppendToBody";W=X in d&&void 0===d[X]?!0:a.$eval(d[X]),L=angular.isDefined(W)?W:L,a.$on("$destroy",function(){U(),w(),O=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(a,b,c,d){return{link:function(e,f,g){var h,i,j,k=e.$eval(g.tooltipTemplateTranscludeScope),l=0,m=function(){i&&(i.remove(),i=null),h&&(h.$destroy(),h=null),j&&(a.leave(j).then(function(){i=null}),i=j,j=null)};e.$watch(b.parseAsResourceUrl(g.uibTooltipTemplateTransclude),function(b){var g=++l;b?(d(b,!0).then(function(d){if(g===l){var e=k.$new(),i=d,n=c(i)(e,function(b){m(),a.enter(b,f)});h=e,j=n,h.$emit("$includeContentLoaded",b)}},function(){g===l&&(m(),e.$emit("$includeContentError",b))}),e.$emit("$includeContentRequested",b)):m()}),e.$on("$destroy",m)}}}]).directive("uibTooltipClasses",["$uibPosition",function(a){return{restrict:"A",link:function(b,c,d){if(b.placement){var e=a.parsePlacement(b.placement);c.addClass(e[0])}b.popupClass&&c.addClass(b.popupClass),b.animation&&c.addClass(d.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(a){return a("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(a){return a("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(a){return a("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(a){return a("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(a){return a("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(a){return a("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(a,b,c){function d(){return angular.isDefined(a.maxParam)?a.maxParam:c.max}var e=this,f=angular.isDefined(b.animate)?a.$parent.$eval(b.animate):c.animate;this.bars=[],a.max=d(),this.addBar=function(a,b,c){f||b.css({transition:"none"}),this.bars.push(a),a.max=d(),a.title=c&&angular.isDefined(c.title)?c.title:"progressbar",a.$watch("value",function(b){a.recalculatePercentage()}),a.recalculatePercentage=function(){var b=e.bars.reduce(function(a,b){return b.percent=+(100*b.value/b.max).toFixed(2),a+b.percent},0);b>100&&(a.percent-=b-100)},a.$on("$destroy",function(){b=null,e.removeBar(a)})},this.removeBar=function(a){this.bars.splice(this.bars.indexOf(a),1),this.bars.forEach(function(a){a.recalculatePercentage()})},a.$watch("maxParam",function(a){e.bars.forEach(function(a){a.max=d(),a.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(a,b,c,d){d.addBar(a,b,c)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(a,b,c,d){d.addBar(a,angular.element(b.children()[0]),{title:c.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(a,b,c){var d={$setViewValue:angular.noop},e=this;this.init=function(e){d=e,d.$render=this.render,d.$formatters.push(function(a){return angular.isNumber(a)&&a<<0!==a&&(a=Math.round(a)),a}),this.stateOn=angular.isDefined(b.stateOn)?a.$parent.$eval(b.stateOn):c.stateOn,this.stateOff=angular.isDefined(b.stateOff)?a.$parent.$eval(b.stateOff):c.stateOff,this.enableReset=angular.isDefined(b.enableReset)?a.$parent.$eval(b.enableReset):c.enableReset;var f=angular.isDefined(b.titles)?a.$parent.$eval(b.titles):c.titles;this.titles=angular.isArray(f)&&f.length>0?f:c.titles;var g=angular.isDefined(b.ratingStates)?a.$parent.$eval(b.ratingStates):new Array(angular.isDefined(b.max)?a.$parent.$eval(b.max):c.max);a.range=this.buildTemplateObjects(g)},this.buildTemplateObjects=function(a){for(var b=0,c=a.length;c>b;b++)a[b]=angular.extend({index:b},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(b)},a[b]);return a},this.getTitle=function(a){return a>=this.titles.length?a+1:this.titles[a]},a.rate=function(b){if(!a.readonly&&b>=0&&b<=a.range.length){var c=e.enableReset&&d.$viewValue===b?0:b;d.$setViewValue(c),d.$render()}},a.enter=function(b){a.readonly||(a.value=b),a.onHover({value:b})},a.reset=function(){a.value=d.$viewValue,a.onLeave()},a.onKeydown=function(b){/(37|38|39|40)/.test(b.which)&&(b.preventDefault(),b.stopPropagation(),a.rate(a.value+(38===b.which||39===b.which?1:-1)))},this.render=function(){a.value=d.$viewValue,a.title=e.getTitle(a.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(a){function b(a){for(var b=0;b<d.tabs.length;b++)if(d.tabs[b].index===a)return b}var c,d=this;d.tabs=[],d.select=function(a,f){if(!e){var g=b(c),h=d.tabs[g];if(h){if(h.tab.onDeselect({$event:f,$selectedIndex:a}),f&&f.isDefaultPrevented())return;h.tab.active=!1}var i=d.tabs[a];i?(i.tab.onSelect({$event:f}),i.tab.active=!0,d.active=i.index,c=i.index):!i&&angular.isDefined(c)&&(d.active=null,c=null)}},d.addTab=function(a){if(d.tabs.push({tab:a,index:a.index}),d.tabs.sort(function(a,b){return a.index>b.index?1:a.index<b.index?-1:0}),a.index===d.active||!angular.isDefined(d.active)&&1===d.tabs.length){var c=b(a.index);d.select(c)}},d.removeTab=function(a){for(var b,c=0;c<d.tabs.length;c++)if(d.tabs[c].tab===a){b=c;break}if(d.tabs[b].index===d.active){var e=b===d.tabs.length-1?b-1:b+1%d.tabs.length;d.select(e)}d.tabs.splice(b,1)},a.$watch("tabset.active",function(a){angular.isDefined(a)&&a!==c&&d.select(b(a))});var e;a.$on("$destroy",function(){e=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(a,b){return b.templateUrl||"uib/template/tabs/tabset.html"},link:function(a,b,c){a.vertical=angular.isDefined(c.vertical)?a.$parent.$eval(c.vertical):!1,a.justified=angular.isDefined(c.justified)?a.$parent.$eval(c.justified):!1}}}).directive("uibTab",["$parse",function(a){return{require:"^uibTabset",replace:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(b,c,d,e,f){b.disabled=!1,d.disable&&b.$parent.$watch(a(d.disable),function(a){b.disabled=!!a}),angular.isUndefined(d.index)&&(e.tabs&&e.tabs.length?b.index=Math.max.apply(null,e.tabs.map(function(a){return a.index}))+1:b.index=0),angular.isUndefined(d.classes)&&(b.classes=""),b.select=function(a){if(!b.disabled){for(var c,d=0;d<e.tabs.length;d++)if(e.tabs[d].tab===b){c=d;break}e.select(c,a)}},e.addTab(b),b.$on("$destroy",function(){e.removeTab(b)}),b.$transcludeFn=f}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(a,b){a.$watch("headingElement",function(a){a&&(b.html(""),b.append(a))})}}}).directive("uibTabContentTransclude",function(){function a(a){return a.tagName&&(a.hasAttribute("uib-tab-heading")||a.hasAttribute("data-uib-tab-heading")||a.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===a.tagName.toLowerCase()||"data-uib-tab-heading"===a.tagName.toLowerCase()||"x-uib-tab-heading"===a.tagName.toLowerCase()||"uib:tab-heading"===a.tagName.toLowerCase())}return{restrict:"A",require:"^uibTabset",link:function(b,c,d){var e=b.$eval(d.uibTabContentTransclude).tab;e.$transcludeFn(e.$parent,function(b){angular.forEach(b,function(b){a(b)?e.headingElement=b:c.append(b)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(a,b,c,d,e,f,g){function h(){var b=+a.hours,c=a.showMeridian?b>0&&13>b:b>=0&&24>b;return c&&""!==a.hours?(a.showMeridian&&(12===b&&(b=0),a.meridian===y[1]&&(b+=12)),b):void 0}function i(){var b=+a.minutes,c=b>=0&&60>b;return c&&""!==a.minutes?b:void 0}function j(){var b=+a.seconds;return b>=0&&60>b?b:void 0}function k(a,b){return null===a?"":angular.isDefined(a)&&a.toString().length<2&&!b?"0"+a:a.toString()}function l(a){m(),x.$setViewValue(new Date(v)),n(a)}function m(){s&&s.$setValidity("hours",!0),t&&t.$setValidity("minutes",!0),u&&u.$setValidity("seconds",!0),x.$setValidity("time",!0),a.invalidHours=!1,a.invalidMinutes=!1,a.invalidSeconds=!1}function n(b){if(x.$modelValue){var c=v.getHours(),d=v.getMinutes(),e=v.getSeconds();a.showMeridian&&(c=0===c||12===c?12:c%12),a.hours="h"===b?c:k(c,!z),"m"!==b&&(a.minutes=k(d)),a.meridian=v.getHours()<12?y[0]:y[1],"s"!==b&&(a.seconds=k(e)),a.meridian=v.getHours()<12?y[0]:y[1]}else a.hours=null,a.minutes=null,a.seconds=null,a.meridian=y[0]}function o(a){v=q(v,a),l()}function p(a,b){return q(a,60*b)}function q(a,b){var c=new Date(a.getTime()+1e3*b),d=new Date(a);return d.setHours(c.getHours(),c.getMinutes(),c.getSeconds()),d}function r(){return(null===a.hours||""===a.hours)&&(null===a.minutes||""===a.minutes)&&(!a.showSeconds||a.showSeconds&&(null===a.seconds||""===a.seconds))}var s,t,u,v=new Date,w=[],x={$setViewValue:angular.noop},y=angular.isDefined(c.meridians)?a.$parent.$eval(c.meridians):g.meridians||f.DATETIME_FORMATS.AMPMS,z=angular.isDefined(c.padHours)?a.$parent.$eval(c.padHours):!0;a.tabindex=angular.isDefined(c.tabindex)?c.tabindex:0,b.removeAttr("tabindex"),this.init=function(b,d){x=b,x.$render=this.render,x.$formatters.unshift(function(a){return a?new Date(a):null});var e=d.eq(0),f=d.eq(1),h=d.eq(2);s=e.controller("ngModel"),t=f.controller("ngModel"),u=h.controller("ngModel");var i=angular.isDefined(c.mousewheel)?a.$parent.$eval(c.mousewheel):g.mousewheel;i&&this.setupMousewheelEvents(e,f,h);var j=angular.isDefined(c.arrowkeys)?a.$parent.$eval(c.arrowkeys):g.arrowkeys;j&&this.setupArrowkeyEvents(e,f,h),a.readonlyInput=angular.isDefined(c.readonlyInput)?a.$parent.$eval(c.readonlyInput):g.readonlyInput,this.setupInputEvents(e,f,h)};var A=g.hourStep;c.hourStep&&w.push(a.$parent.$watch(d(c.hourStep),function(a){A=+a}));var B=g.minuteStep;c.minuteStep&&w.push(a.$parent.$watch(d(c.minuteStep),function(a){B=+a}));var C;w.push(a.$parent.$watch(d(c.min),function(a){var b=new Date(a);C=isNaN(b)?void 0:b}));var D;w.push(a.$parent.$watch(d(c.max),function(a){var b=new Date(a);D=isNaN(b)?void 0:b}));var E=!1;c.ngDisabled&&w.push(a.$parent.$watch(d(c.ngDisabled),function(a){E=a})),a.noIncrementHours=function(){var a=p(v,60*A);return E||a>D||v>a&&C>a},a.noDecrementHours=function(){var a=p(v,60*-A);return E||C>a||a>v&&a>D},a.noIncrementMinutes=function(){var a=p(v,B);return E||a>D||v>a&&C>a},a.noDecrementMinutes=function(){var a=p(v,-B);return E||C>a||a>v&&a>D},a.noIncrementSeconds=function(){var a=q(v,F);return E||a>D||v>a&&C>a},a.noDecrementSeconds=function(){var a=q(v,-F);return E||C>a||a>v&&a>D},a.noToggleMeridian=function(){return v.getHours()<12?E||p(v,720)>D:E||p(v,-720)<C};var F=g.secondStep;c.secondStep&&w.push(a.$parent.$watch(d(c.secondStep),function(a){F=+a})),a.showSeconds=g.showSeconds,c.showSeconds&&w.push(a.$parent.$watch(d(c.showSeconds),function(b){a.showSeconds=!!b})),a.showMeridian=g.showMeridian,c.showMeridian&&w.push(a.$parent.$watch(d(c.showMeridian),function(b){if(a.showMeridian=!!b,x.$error.time){var c=h(),d=i();angular.isDefined(c)&&angular.isDefined(d)&&(v.setHours(c),l())}else n()})),this.setupMousewheelEvents=function(b,c,d){var e=function(a){a.originalEvent&&(a=a.originalEvent);var b=a.wheelDelta?a.wheelDelta:-a.deltaY;return a.detail||b>0};b.on("mousewheel wheel",function(b){E||a.$apply(e(b)?a.incrementHours():a.decrementHours()),b.preventDefault()}),c.on("mousewheel wheel",function(b){E||a.$apply(e(b)?a.incrementMinutes():a.decrementMinutes()),b.preventDefault()}),d.on("mousewheel wheel",function(b){E||a.$apply(e(b)?a.incrementSeconds():a.decrementSeconds()),b.preventDefault()})},this.setupArrowkeyEvents=function(b,c,d){b.on("keydown",function(b){E||(38===b.which?(b.preventDefault(),a.incrementHours(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementHours(),a.$apply()))}),c.on("keydown",function(b){E||(38===b.which?(b.preventDefault(),a.incrementMinutes(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementMinutes(),a.$apply()))}),d.on("keydown",function(b){E||(38===b.which?(b.preventDefault(),a.incrementSeconds(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementSeconds(),a.$apply()))})},this.setupInputEvents=function(b,c,d){if(a.readonlyInput)return a.updateHours=angular.noop,a.updateMinutes=angular.noop,void(a.updateSeconds=angular.noop);var e=function(b,c,d){x.$setViewValue(null),x.$setValidity("time",!1),angular.isDefined(b)&&(a.invalidHours=b,s&&s.$setValidity("hours",!1)),angular.isDefined(c)&&(a.invalidMinutes=c,t&&t.$setValidity("minutes",!1)),angular.isDefined(d)&&(a.invalidSeconds=d,u&&u.$setValidity("seconds",!1))};a.updateHours=function(){var a=h(),b=i();x.$setDirty(),angular.isDefined(a)&&angular.isDefined(b)?(v.setHours(a),v.setMinutes(b),C>v||v>D?e(!0):l("h")):e(!0)},b.on("blur",function(b){x.$setTouched(),r()?m():null===a.hours||""===a.hours?e(!0):!a.invalidHours&&a.hours<10&&a.$apply(function(){a.hours=k(a.hours,!z)})}),a.updateMinutes=function(){var a=i(),b=h();x.$setDirty(),angular.isDefined(a)&&angular.isDefined(b)?(v.setHours(b),v.setMinutes(a),C>v||v>D?e(void 0,!0):l("m")):e(void 0,!0)},c.on("blur",function(b){x.$setTouched(),r()?m():null===a.minutes?e(void 0,!0):!a.invalidMinutes&&a.minutes<10&&a.$apply(function(){a.minutes=k(a.minutes)})}),a.updateSeconds=function(){var a=j();x.$setDirty(),angular.isDefined(a)?(v.setSeconds(a),l("s")):e(void 0,void 0,!0)},d.on("blur",function(b){r()?m():!a.invalidSeconds&&a.seconds<10&&a.$apply(function(){a.seconds=k(a.seconds)})})},this.render=function(){var b=x.$viewValue;isNaN(b)?(x.$setValidity("time",!1),e.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(b&&(v=b),C>v||v>D?(x.$setValidity("time",!1),a.invalidHours=!0,a.invalidMinutes=!0):m(),n())},a.showSpinners=angular.isDefined(c.showSpinners)?a.$parent.$eval(c.showSpinners):g.showSpinners,a.incrementHours=function(){a.noIncrementHours()||o(60*A*60)},a.decrementHours=function(){a.noDecrementHours()||o(60*-A*60)},a.incrementMinutes=function(){a.noIncrementMinutes()||o(60*B)},a.decrementMinutes=function(){a.noDecrementMinutes()||o(60*-B)},a.incrementSeconds=function(){a.noIncrementSeconds()||o(F)},a.decrementSeconds=function(){a.noDecrementSeconds()||o(-F)},a.toggleMeridian=function(){var b=i(),c=h();a.noToggleMeridian()||(angular.isDefined(b)&&angular.isDefined(c)?o(720*(v.getHours()<12?60:-60)):a.meridian=a.meridian===y[0]?y[1]:y[0])},a.blur=function(){x.$setTouched()},a.$on("$destroy",function(){for(;w.length;)w.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(a){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(b,c){return c.templateUrl||a.templateUrl},link:function(a,b,c,d){var e=d[0],f=d[1];f&&e.init(f,b.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(a){var b=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(c){var d=c.match(b);if(!d)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+c+'".');return{itemName:d[3],source:a(d[4]),viewMapper:a(d[2]||d[1]),modelMapper:a(d[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){O.moveInProgress||(O.moveInProgress=!0,O.$digest()),Z()}function o(){O.position=E?l.offset(b):l.position(b),O.position.top+=b.prop("offsetHeight")}var p,q,r=[9,13,27,38,40],s=200,t=a.$eval(c.typeaheadMinLength);t||0===t||(t=1),a.$watch(c.typeaheadMinLength,function(a){t=a||0===a?a:1});var u=a.$eval(c.typeaheadWaitMs)||0,v=a.$eval(c.typeaheadEditable)!==!1;a.$watch(c.typeaheadEditable,function(a){v=a!==!1});var w,x,y=e(c.typeaheadLoading).assign||angular.noop,z=c.typeaheadShouldSelect?e(c.typeaheadShouldSelect):function(a,b){var c=b.$event;return 13===c.which||9===c.which},A=e(c.typeaheadOnSelect),B=angular.isDefined(c.typeaheadSelectOnBlur)?a.$eval(c.typeaheadSelectOnBlur):!1,C=e(c.typeaheadNoResults).assign||angular.noop,D=c.typeaheadInputFormatter?e(c.typeaheadInputFormatter):void 0,E=c.typeaheadAppendToBody?a.$eval(c.typeaheadAppendToBody):!1,F=c.typeaheadAppendTo?a.$eval(c.typeaheadAppendTo):null,G=a.$eval(c.typeaheadFocusFirst)!==!1,H=c.typeaheadSelectOnExact?a.$eval(c.typeaheadSelectOnExact):!1,I=e(c.typeaheadIsOpen).assign||angular.noop,J=a.$eval(c.typeaheadShowHint)||!1,K=e(c.ngModel),L=e(c.ngModel+"($$$p)"),M=function(b,c){return angular.isFunction(K(a))&&q&&q.$options&&q.$options.getterSetter?L(b,{$$$p:c}):K.assign(b,c)},N=m.parse(c.uibTypeahead),O=a.$new(),P=a.$on("$destroy",function(){O.$destroy()});O.$on("$destroy",P);var Q="typeahead-"+O.$id+"-"+Math.floor(1e4*Math.random());b.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":Q});var R,S;J&&(R=angular.element("<div></div>"),R.css("position","relative"),b.after(R),S=b.clone(),S.attr("placeholder",""),S.attr("tabindex","-1"),S.val(""),S.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),b.css({position:"relative","vertical-align":"top","background-color":"transparent"}),S.attr("id")&&S.removeAttr("id"),R.append(S),S.after(b));var T=angular.element("<div uib-typeahead-popup></div>");T.attr({id:Q,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(c.typeaheadTemplateUrl)&&T.attr("template-url",c.typeaheadTemplateUrl),angular.isDefined(c.typeaheadPopupTemplateUrl)&&T.attr("popup-template-url",c.typeaheadPopupTemplateUrl);var U=function(){J&&S.val("")},V=function(){O.matches=[],O.activeIdx=-1,b.attr("aria-expanded",!1),U()},W=function(a){return Q+"-option-"+a};O.$watch("activeIdx",function(a){0>a?b.removeAttr("aria-activedescendant"):b.attr("aria-activedescendant",W(a))});var X=function(a,b){return O.matches.length>b&&a?a.toUpperCase()===O.matches[b].label.toUpperCase():!1},Y=function(c,d){var e={$viewValue:c};y(a,!0),C(a,!1),f.when(N.source(a,e)).then(function(f){var g=c===p.$viewValue;if(g&&w)if(f&&f.length>0){O.activeIdx=G?0:-1,C(a,!1),O.matches.length=0;for(var h=0;h<f.length;h++)e[N.itemName]=f[h],O.matches.push({id:W(h),label:N.viewMapper(O,e),model:f[h]});if(O.query=c,o(),b.attr("aria-expanded",!0),H&&1===O.matches.length&&X(c,0)&&(angular.isNumber(O.debounceUpdate)||angular.isObject(O.debounceUpdate)?k(function(){O.select(0,d)},angular.isNumber(O.debounceUpdate)?O.debounceUpdate:O.debounceUpdate["default"]):O.select(0,d)),J){var i=O.matches[0].label;angular.isString(c)&&c.length>0&&i.slice(0,c.length).toUpperCase()===c.toUpperCase()?S.val(c+i.slice(c.length)):S.val("")}}else V(),C(a,!0);g&&y(a,!1)},function(){V(),y(a,!1),C(a,!0)})};E&&(angular.element(i).on("resize",n),h.find("body").on("scroll",n));var Z=k(function(){O.matches.length&&o(),O.moveInProgress=!1},s);O.moveInProgress=!1,O.query=void 0;var $,_=function(a){$=g(function(){Y(a)},u)},aa=function(){$&&g.cancel($)};V(),O.assignIsOpen=function(b){I(a,b)},O.select=function(d,e){var f,h,i={};x=!0,i[N.itemName]=h=O.matches[d].model,f=N.modelMapper(a,i),M(a,f),p.$setValidity("editable",!0),p.$setValidity("parse",!0),A(a,{$item:h,$model:f,$label:N.viewMapper(a,i),$event:e}),V(),O.$eval(c.typeaheadFocusOnSelect)!==!1&&g(function(){b[0].focus()},0,!1)},b.on("keydown",function(b){if(0!==O.matches.length&&-1!==r.indexOf(b.which)){var c=z(a,{$event:b});if(-1===O.activeIdx&&c||9===b.which&&b.shiftKey)return V(),void O.$digest();b.preventDefault();var d;switch(b.which){case 27:b.stopPropagation(),V(),a.$digest();break;case 38:O.activeIdx=(O.activeIdx>0?O.activeIdx:O.matches.length)-1,O.$digest(),d=T[0].querySelectorAll(".uib-typeahead-match")[O.activeIdx],d.parentNode.scrollTop=d.offsetTop;break;case 40:O.activeIdx=(O.activeIdx+1)%O.matches.length,O.$digest(),d=T[0].querySelectorAll(".uib-typeahead-match")[O.activeIdx],d.parentNode.scrollTop=d.offsetTop;break;default:c&&O.$apply(function(){angular.isNumber(O.debounceUpdate)||angular.isObject(O.debounceUpdate)?k(function(){O.select(O.activeIdx,b)},angular.isNumber(O.debounceUpdate)?O.debounceUpdate:O.debounceUpdate["default"]):O.select(O.activeIdx,b)})}}}),b.on("focus",function(a){w=!0,0!==t||p.$viewValue||g(function(){Y(p.$viewValue,a)},0)}),b.on("blur",function(a){B&&O.matches.length&&-1!==O.activeIdx&&!x&&(x=!0,O.$apply(function(){angular.isObject(O.debounceUpdate)&&angular.isNumber(O.debounceUpdate.blur)?k(function(){O.select(O.activeIdx,a)},O.debounceUpdate.blur):O.select(O.activeIdx,a)})),!v&&p.$error.editable&&(p.$setViewValue(),O.$apply(function(){p.$setValidity("editable",!0),
-p.$setValidity("parse",!0)}),b.val("")),w=!1,x=!1});var ba=function(c){b[0]!==c.target&&3!==c.which&&0!==O.matches.length&&(V(),j.$$phase||a.$digest())};h.on("click",ba),a.$on("$destroy",function(){h.off("click",ba),(E||F)&&ca.remove(),E&&(angular.element(i).off("resize",n),h.find("body").off("scroll",n)),T.remove(),J&&R.remove()});var ca=d(T)(O);E?h.find("body").append(ca):F?angular.element(F).eq(0).append(ca):b.after(ca),this.init=function(b,c){p=b,q=c,O.debounceUpdate=p.$options&&e(p.$options.debounce)(a),p.$parsers.unshift(function(b){return w=!0,0===t||b&&b.length>=t?u>0?(aa(),_(b)):Y(b):(y(a,!1),aa(),V()),v?b:b?void p.$setValidity("editable",!1):(p.$setValidity("editable",!0),null)}),p.$formatters.push(function(b){var c,d,e={};return v||p.$setValidity("editable",!0),D?(e.$model=b,D(a,e)):(e[N.itemName]=b,c=N.viewMapper(a,e),e[N.itemName]=void 0,d=N.viewMapper(a,e),c!==d?c:b)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(a,b,c,d){d[2].init(d[0],d[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(a){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(a,b){return b.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(b,c,d){b.templateUrl=d.templateUrl,b.isOpen=function(){var a=b.matches.length>0;return b.assignIsOpen({isOpen:a}),a},b.isActive=function(a){return b.active===a},b.selectActive=function(a){b.active=a},b.selectMatch=function(c,d){var e=b.debounce();angular.isNumber(e)||angular.isObject(e)?a(function(){b.select({activeIdx:c,evt:d})},angular.isNumber(e)?e:e["default"]):b.select({activeIdx:c,evt:d})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(a,b,c){return{scope:{index:"=",match:"=",query:"="},link:function(d,e,f){var g=c(f.templateUrl)(d.$parent)||"uib/template/typeahead/typeahead-match.html";a(g).then(function(a){var c=angular.element(a.trim());e.replaceWith(c),b(c)(d)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(a,b,c){function d(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function e(a){return/<.*>/g.test(a)}var f;return f=b.has("$sanitize"),function(b,g){return!f&&e(b)&&c.warn("Unsafe use of typeahead please use ngSanitize"),b=g?(""+b).replace(new RegExp(d(g),"gi"),"<strong>$&</strong>"):b,f||(b=a.trustAsHtml(b)),b}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(a){a.put("uib/template/accordion/accordion-group.html",'<div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading" ng-disabled="isDisabled" uib-tabindex-toggle><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n</div>\n<div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n <div class="panel-body" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(a){a.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(a){a.put("uib/template/alert/alert.html",'<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n <span aria-hidden="true">&times;</span>\n <span class="sr-only">Close</span>\n</button>\n<div ng-transclude></div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(a){a.put("uib/template/carousel/carousel.html",'<div class="carousel-inner" ng-transclude></div>\n<a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n</a>\n<a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n</a>\n<ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n</ol>\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(a){a.put("uib/template/carousel/slide.html",'<div class="text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(a){a.put("uib/template/datepicker/datepicker.html",'<div ng-switch="datepickerMode">\n <div uib-daypicker ng-switch-when="day" tabindex="0" class="uib-daypicker"></div>\n <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker"></div>\n <div uib-yearpicker ng-switch-when="year" tabindex="0" class="uib-yearpicker"></div>\n</div>\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(a){a.put("uib/template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-weeks" ng-repeat="row in rows track by $index" role="row">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default btn-sm"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(a){a.put("uib/template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n <th colspan="{{::yearHeaderColspan}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-months" ng-repeat="row in rows track by $index" role="row">\n <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(a){a.put("uib/template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-years" ng-repeat="row in rows track by $index" role="row">\n <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(a){a.put("uib/template/datepickerPopup/popup.html",'<ul role="presentation" class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n <li ng-transclude></li>\n <li ng-if="showButtonBar" class="uib-button-bar">\n <span class="btn-group pull-left">\n <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n </span>\n <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n </li>\n</ul>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(a){a.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n")}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(a){a.put("uib/template/pager/pager.html",'<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(a){a.put("uib/template/pagination/pagination.html",'<li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'first\')}}</a></li>\n<li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)" ng-disabled="ngDisabled&&!page.active" uib-tabindex-toggle>{{page.text}}</a></li>\n<li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n<li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'last\')}}</a></li>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(a){a.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(a){a.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind="content"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(a){a.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(a){a.put("uib/template/popover/popover-html.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(a){a.put("uib/template/popover/popover-template.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(a){a.put("uib/template/popover/popover.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(a){a.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(a){a.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(a){a.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(a){a.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(a){a.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(a){a.put("uib/template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane"\n ng-repeat="tab in tabset.tabs"\n ng-class="{active: tabset.active === tab.index}"\n uib-tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(a){a.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td>&nbsp;</td>\n <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showSeconds">&nbsp;</td>\n <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n </td>\n <td class="uib-separator">:</td>\n <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n </td>\n <td ng-show="showSeconds" class="uib-separator">:</td>\n <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n </td>\n <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td>&nbsp;</td>\n <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showSeconds">&nbsp;</td>\n <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(a){a.put("uib/template/typeahead/typeahead-match.html",'<a href\n tabindex="-1"\n ng-bind-html="match.label | uibTypeaheadHighlight:query"\n ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(a){a.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n <li class="uib-typeahead-match" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap.js b/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap.js
deleted file mode 100644
index 785c5b34..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap.js
+++ /dev/null
@@ -1,7351 +0,0 @@
-/*
- * angular-ui-bootstrap
- * http://angular-ui.github.io/bootstrap/
-
- * Version: 2.4.0 - 2016-12-29
- * License: MIT
- */angular.module("ui.bootstrap", ["ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]);
-angular.module('ui.bootstrap.collapse', [])
-
- .directive('uibCollapse', ['$animate', '$q', '$parse', '$injector', function($animate, $q, $parse, $injector) {
- var $animateCss = $injector.has('$animateCss') ? $injector.get('$animateCss') : null;
- return {
- link: function(scope, element, attrs) {
- var expandingExpr = $parse(attrs.expanding),
- expandedExpr = $parse(attrs.expanded),
- collapsingExpr = $parse(attrs.collapsing),
- collapsedExpr = $parse(attrs.collapsed),
- horizontal = false,
- css = {},
- cssTo = {};
-
- init();
-
- function init() {
- horizontal = !!('horizontal' in attrs);
- if (horizontal) {
- css = {
- width: ''
- };
- cssTo = {width: '0'};
- } else {
- css = {
- height: ''
- };
- cssTo = {height: '0'};
- }
- if (!scope.$eval(attrs.uibCollapse)) {
- element.addClass('in')
- .addClass('collapse')
- .attr('aria-expanded', true)
- .attr('aria-hidden', false)
- .css(css);
- }
- }
-
- function getScrollFromElement(element) {
- if (horizontal) {
- return {width: element.scrollWidth + 'px'};
- }
- return {height: element.scrollHeight + 'px'};
- }
-
- function expand() {
- if (element.hasClass('collapse') && element.hasClass('in')) {
- return;
- }
-
- $q.resolve(expandingExpr(scope))
- .then(function() {
- element.removeClass('collapse')
- .addClass('collapsing')
- .attr('aria-expanded', true)
- .attr('aria-hidden', false);
-
- if ($animateCss) {
- $animateCss(element, {
- addClass: 'in',
- easing: 'ease',
- css: {
- overflow: 'hidden'
- },
- to: getScrollFromElement(element[0])
- }).start()['finally'](expandDone);
- } else {
- $animate.addClass(element, 'in', {
- css: {
- overflow: 'hidden'
- },
- to: getScrollFromElement(element[0])
- }).then(expandDone);
- }
- });
- }
-
- function expandDone() {
- element.removeClass('collapsing')
- .addClass('collapse')
- .css(css);
- expandedExpr(scope);
- }
-
- function collapse() {
- if (!element.hasClass('collapse') && !element.hasClass('in')) {
- return collapseDone();
- }
-
- $q.resolve(collapsingExpr(scope))
- .then(function() {
- element
- // IMPORTANT: The width must be set before adding "collapsing" class.
- // Otherwise, the browser attempts to animate from width 0 (in
- // collapsing class) to the given width here.
- .css(getScrollFromElement(element[0]))
- // initially all panel collapse have the collapse class, this removal
- // prevents the animation from jumping to collapsed state
- .removeClass('collapse')
- .addClass('collapsing')
- .attr('aria-expanded', false)
- .attr('aria-hidden', true);
-
- if ($animateCss) {
- $animateCss(element, {
- removeClass: 'in',
- to: cssTo
- }).start()['finally'](collapseDone);
- } else {
- $animate.removeClass(element, 'in', {
- to: cssTo
- }).then(collapseDone);
- }
- });
- }
-
- function collapseDone() {
- element.css(cssTo); // Required so that collapse works when animation is disabled
- element.removeClass('collapsing')
- .addClass('collapse');
- collapsedExpr(scope);
- }
-
- scope.$watch(attrs.uibCollapse, function(shouldCollapse) {
- if (shouldCollapse) {
- collapse();
- } else {
- expand();
- }
- });
- }
- };
- }]);
-
-angular.module('ui.bootstrap.tabindex', [])
-
-.directive('uibTabindexToggle', function() {
- return {
- restrict: 'A',
- link: function(scope, elem, attrs) {
- attrs.$observe('disabled', function(disabled) {
- attrs.$set('tabindex', disabled ? -1 : null);
- });
- }
- };
-});
-
-angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse', 'ui.bootstrap.tabindex'])
-
-.constant('uibAccordionConfig', {
- closeOthers: true
-})
-
-.controller('UibAccordionController', ['$scope', '$attrs', 'uibAccordionConfig', function($scope, $attrs, accordionConfig) {
- // This array keeps track of the accordion groups
- this.groups = [];
-
- // Ensure that all the groups in this accordion are closed, unless close-others explicitly says not to
- this.closeOthers = function(openGroup) {
- var closeOthers = angular.isDefined($attrs.closeOthers) ?
- $scope.$eval($attrs.closeOthers) : accordionConfig.closeOthers;
- if (closeOthers) {
- angular.forEach(this.groups, function(group) {
- if (group !== openGroup) {
- group.isOpen = false;
- }
- });
- }
- };
-
- // This is called from the accordion-group directive to add itself to the accordion
- this.addGroup = function(groupScope) {
- var that = this;
- this.groups.push(groupScope);
-
- groupScope.$on('$destroy', function(event) {
- that.removeGroup(groupScope);
- });
- };
-
- // This is called from the accordion-group directive when to remove itself
- this.removeGroup = function(group) {
- var index = this.groups.indexOf(group);
- if (index !== -1) {
- this.groups.splice(index, 1);
- }
- };
-}])
-
-// The accordion directive simply sets up the directive controller
-// and adds an accordion CSS class to itself element.
-.directive('uibAccordion', function() {
- return {
- controller: 'UibAccordionController',
- controllerAs: 'accordion',
- transclude: true,
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/accordion/accordion.html';
- }
- };
-})
-
-// The accordion-group directive indicates a block of html that will expand and collapse in an accordion
-.directive('uibAccordionGroup', function() {
- return {
- require: '^uibAccordion', // We need this directive to be inside an accordion
- transclude: true, // It transcludes the contents of the directive into the template
- restrict: 'A',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/accordion/accordion-group.html';
- },
- scope: {
- heading: '@', // Interpolate the heading attribute onto this scope
- panelClass: '@?', // Ditto with panelClass
- isOpen: '=?',
- isDisabled: '=?'
- },
- controller: function() {
- this.setHeading = function(element) {
- this.heading = element;
- };
- },
- link: function(scope, element, attrs, accordionCtrl) {
- element.addClass('panel');
- accordionCtrl.addGroup(scope);
-
- scope.openClass = attrs.openClass || 'panel-open';
- scope.panelClass = attrs.panelClass || 'panel-default';
- scope.$watch('isOpen', function(value) {
- element.toggleClass(scope.openClass, !!value);
- if (value) {
- accordionCtrl.closeOthers(scope);
- }
- });
-
- scope.toggleOpen = function($event) {
- if (!scope.isDisabled) {
- if (!$event || $event.which === 32) {
- scope.isOpen = !scope.isOpen;
- }
- }
- };
-
- var id = 'accordiongroup-' + scope.$id + '-' + Math.floor(Math.random() * 10000);
- scope.headingId = id + '-tab';
- scope.panelId = id + '-panel';
- }
- };
-})
-
-// Use accordion-heading below an accordion-group to provide a heading containing HTML
-.directive('uibAccordionHeading', function() {
- return {
- transclude: true, // Grab the contents to be used as the heading
- template: '', // In effect remove this element!
- replace: true,
- require: '^uibAccordionGroup',
- link: function(scope, element, attrs, accordionGroupCtrl, transclude) {
- // Pass the heading to the accordion-group controller
- // so that it can be transcluded into the right place in the template
- // [The second parameter to transclude causes the elements to be cloned so that they work in ng-repeat]
- accordionGroupCtrl.setHeading(transclude(scope, angular.noop));
- }
- };
-})
-
-// Use in the accordion-group template to indicate where you want the heading to be transcluded
-// You must provide the property on the accordion-group controller that will hold the transcluded element
-.directive('uibAccordionTransclude', function() {
- return {
- require: '^uibAccordionGroup',
- link: function(scope, element, attrs, controller) {
- scope.$watch(function() { return controller[attrs.uibAccordionTransclude]; }, function(heading) {
- if (heading) {
- var elem = angular.element(element[0].querySelector(getHeaderSelectors()));
- elem.html('');
- elem.append(heading);
- }
- });
- }
- };
-
- function getHeaderSelectors() {
- return 'uib-accordion-header,' +
- 'data-uib-accordion-header,' +
- 'x-uib-accordion-header,' +
- 'uib\\:accordion-header,' +
- '[uib-accordion-header],' +
- '[data-uib-accordion-header],' +
- '[x-uib-accordion-header]';
- }
-});
-
-angular.module('ui.bootstrap.alert', [])
-
-.controller('UibAlertController', ['$scope', '$element', '$attrs', '$interpolate', '$timeout', function($scope, $element, $attrs, $interpolate, $timeout) {
- $scope.closeable = !!$attrs.close;
- $element.addClass('alert');
- $attrs.$set('role', 'alert');
- if ($scope.closeable) {
- $element.addClass('alert-dismissible');
- }
-
- var dismissOnTimeout = angular.isDefined($attrs.dismissOnTimeout) ?
- $interpolate($attrs.dismissOnTimeout)($scope.$parent) : null;
-
- if (dismissOnTimeout) {
- $timeout(function() {
- $scope.close();
- }, parseInt(dismissOnTimeout, 10));
- }
-}])
-
-.directive('uibAlert', function() {
- return {
- controller: 'UibAlertController',
- controllerAs: 'alert',
- restrict: 'A',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/alert/alert.html';
- },
- transclude: true,
- scope: {
- close: '&'
- }
- };
-});
-
-angular.module('ui.bootstrap.buttons', [])
-
-.constant('uibButtonConfig', {
- activeClass: 'active',
- toggleEvent: 'click'
-})
-
-.controller('UibButtonsController', ['uibButtonConfig', function(buttonConfig) {
- this.activeClass = buttonConfig.activeClass || 'active';
- this.toggleEvent = buttonConfig.toggleEvent || 'click';
-}])
-
-.directive('uibBtnRadio', ['$parse', function($parse) {
- return {
- require: ['uibBtnRadio', 'ngModel'],
- controller: 'UibButtonsController',
- controllerAs: 'buttons',
- link: function(scope, element, attrs, ctrls) {
- var buttonsCtrl = ctrls[0], ngModelCtrl = ctrls[1];
- var uncheckableExpr = $parse(attrs.uibUncheckable);
-
- element.find('input').css({display: 'none'});
-
- //model -> UI
- ngModelCtrl.$render = function() {
- element.toggleClass(buttonsCtrl.activeClass, angular.equals(ngModelCtrl.$modelValue, scope.$eval(attrs.uibBtnRadio)));
- };
-
- //ui->model
- element.on(buttonsCtrl.toggleEvent, function() {
- if (attrs.disabled) {
- return;
- }
-
- var isActive = element.hasClass(buttonsCtrl.activeClass);
-
- if (!isActive || angular.isDefined(attrs.uncheckable)) {
- scope.$apply(function() {
- ngModelCtrl.$setViewValue(isActive ? null : scope.$eval(attrs.uibBtnRadio));
- ngModelCtrl.$render();
- });
- }
- });
-
- if (attrs.uibUncheckable) {
- scope.$watch(uncheckableExpr, function(uncheckable) {
- attrs.$set('uncheckable', uncheckable ? '' : undefined);
- });
- }
- }
- };
-}])
-
-.directive('uibBtnCheckbox', function() {
- return {
- require: ['uibBtnCheckbox', 'ngModel'],
- controller: 'UibButtonsController',
- controllerAs: 'button',
- link: function(scope, element, attrs, ctrls) {
- var buttonsCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- element.find('input').css({display: 'none'});
-
- function getTrueValue() {
- return getCheckboxValue(attrs.btnCheckboxTrue, true);
- }
-
- function getFalseValue() {
- return getCheckboxValue(attrs.btnCheckboxFalse, false);
- }
-
- function getCheckboxValue(attribute, defaultValue) {
- return angular.isDefined(attribute) ? scope.$eval(attribute) : defaultValue;
- }
-
- //model -> UI
- ngModelCtrl.$render = function() {
- element.toggleClass(buttonsCtrl.activeClass, angular.equals(ngModelCtrl.$modelValue, getTrueValue()));
- };
-
- //ui->model
- element.on(buttonsCtrl.toggleEvent, function() {
- if (attrs.disabled) {
- return;
- }
-
- scope.$apply(function() {
- ngModelCtrl.$setViewValue(element.hasClass(buttonsCtrl.activeClass) ? getFalseValue() : getTrueValue());
- ngModelCtrl.$render();
- });
- });
- }
- };
-});
-
-angular.module('ui.bootstrap.carousel', [])
-
-.controller('UibCarouselController', ['$scope', '$element', '$interval', '$timeout', '$animate', function($scope, $element, $interval, $timeout, $animate) {
- var self = this,
- slides = self.slides = $scope.slides = [],
- SLIDE_DIRECTION = 'uib-slideDirection',
- currentIndex = $scope.active,
- currentInterval, isPlaying, bufferedTransitions = [];
-
- var destroyed = false;
- $element.addClass('carousel');
-
- self.addSlide = function(slide, element) {
- slides.push({
- slide: slide,
- element: element
- });
- slides.sort(function(a, b) {
- return +a.slide.index - +b.slide.index;
- });
- //if this is the first slide or the slide is set to active, select it
- if (slide.index === $scope.active || slides.length === 1 && !angular.isNumber($scope.active)) {
- if ($scope.$currentTransition) {
- $scope.$currentTransition = null;
- }
-
- currentIndex = slide.index;
- $scope.active = slide.index;
- setActive(currentIndex);
- self.select(slides[findSlideIndex(slide)]);
- if (slides.length === 1) {
- $scope.play();
- }
- }
- };
-
- self.getCurrentIndex = function() {
- for (var i = 0; i < slides.length; i++) {
- if (slides[i].slide.index === currentIndex) {
- return i;
- }
- }
- };
-
- self.next = $scope.next = function() {
- var newIndex = (self.getCurrentIndex() + 1) % slides.length;
-
- if (newIndex === 0 && $scope.noWrap()) {
- $scope.pause();
- return;
- }
-
- return self.select(slides[newIndex], 'next');
- };
-
- self.prev = $scope.prev = function() {
- var newIndex = self.getCurrentIndex() - 1 < 0 ? slides.length - 1 : self.getCurrentIndex() - 1;
-
- if ($scope.noWrap() && newIndex === slides.length - 1) {
- $scope.pause();
- return;
- }
-
- return self.select(slides[newIndex], 'prev');
- };
-
- self.removeSlide = function(slide) {
- var index = findSlideIndex(slide);
-
- var bufferedIndex = bufferedTransitions.indexOf(slides[index]);
- if (bufferedIndex !== -1) {
- bufferedTransitions.splice(bufferedIndex, 1);
- }
-
- //get the index of the slide inside the carousel
- slides.splice(index, 1);
- if (slides.length > 0 && currentIndex === index) {
- if (index >= slides.length) {
- currentIndex = slides.length - 1;
- $scope.active = currentIndex;
- setActive(currentIndex);
- self.select(slides[slides.length - 1]);
- } else {
- currentIndex = index;
- $scope.active = currentIndex;
- setActive(currentIndex);
- self.select(slides[index]);
- }
- } else if (currentIndex > index) {
- currentIndex--;
- $scope.active = currentIndex;
- }
-
- //clean the active value when no more slide
- if (slides.length === 0) {
- currentIndex = null;
- $scope.active = null;
- clearBufferedTransitions();
- }
- };
-
- /* direction: "prev" or "next" */
- self.select = $scope.select = function(nextSlide, direction) {
- var nextIndex = findSlideIndex(nextSlide.slide);
- //Decide direction if it's not given
- if (direction === undefined) {
- direction = nextIndex > self.getCurrentIndex() ? 'next' : 'prev';
- }
- //Prevent this user-triggered transition from occurring if there is already one in progress
- if (nextSlide.slide.index !== currentIndex &&
- !$scope.$currentTransition) {
- goNext(nextSlide.slide, nextIndex, direction);
- } else if (nextSlide && nextSlide.slide.index !== currentIndex && $scope.$currentTransition) {
- bufferedTransitions.push(slides[nextIndex]);
- }
- };
-
- /* Allow outside people to call indexOf on slides array */
- $scope.indexOfSlide = function(slide) {
- return +slide.slide.index;
- };
-
- $scope.isActive = function(slide) {
- return $scope.active === slide.slide.index;
- };
-
- $scope.isPrevDisabled = function() {
- return $scope.active === 0 && $scope.noWrap();
- };
-
- $scope.isNextDisabled = function() {
- return $scope.active === slides.length - 1 && $scope.noWrap();
- };
-
- $scope.pause = function() {
- if (!$scope.noPause) {
- isPlaying = false;
- resetTimer();
- }
- };
-
- $scope.play = function() {
- if (!isPlaying) {
- isPlaying = true;
- restartTimer();
- }
- };
-
- $element.on('mouseenter', $scope.pause);
- $element.on('mouseleave', $scope.play);
-
- $scope.$on('$destroy', function() {
- destroyed = true;
- resetTimer();
- });
-
- $scope.$watch('noTransition', function(noTransition) {
- $animate.enabled($element, !noTransition);
- });
-
- $scope.$watch('interval', restartTimer);
-
- $scope.$watchCollection('slides', resetTransition);
-
- $scope.$watch('active', function(index) {
- if (angular.isNumber(index) && currentIndex !== index) {
- for (var i = 0; i < slides.length; i++) {
- if (slides[i].slide.index === index) {
- index = i;
- break;
- }
- }
-
- var slide = slides[index];
- if (slide) {
- setActive(index);
- self.select(slides[index]);
- currentIndex = index;
- }
- }
- });
-
- function clearBufferedTransitions() {
- while (bufferedTransitions.length) {
- bufferedTransitions.shift();
- }
- }
-
- function getSlideByIndex(index) {
- for (var i = 0, l = slides.length; i < l; ++i) {
- if (slides[i].index === index) {
- return slides[i];
- }
- }
- }
-
- function setActive(index) {
- for (var i = 0; i < slides.length; i++) {
- slides[i].slide.active = i === index;
- }
- }
-
- function goNext(slide, index, direction) {
- if (destroyed) {
- return;
- }
-
- angular.extend(slide, {direction: direction});
- angular.extend(slides[currentIndex].slide || {}, {direction: direction});
- if ($animate.enabled($element) && !$scope.$currentTransition &&
- slides[index].element && self.slides.length > 1) {
- slides[index].element.data(SLIDE_DIRECTION, slide.direction);
- var currentIdx = self.getCurrentIndex();
-
- if (angular.isNumber(currentIdx) && slides[currentIdx].element) {
- slides[currentIdx].element.data(SLIDE_DIRECTION, slide.direction);
- }
-
- $scope.$currentTransition = true;
- $animate.on('addClass', slides[index].element, function(element, phase) {
- if (phase === 'close') {
- $scope.$currentTransition = null;
- $animate.off('addClass', element);
- if (bufferedTransitions.length) {
- var nextSlide = bufferedTransitions.pop().slide;
- var nextIndex = nextSlide.index;
- var nextDirection = nextIndex > self.getCurrentIndex() ? 'next' : 'prev';
- clearBufferedTransitions();
-
- goNext(nextSlide, nextIndex, nextDirection);
- }
- }
- });
- }
-
- $scope.active = slide.index;
- currentIndex = slide.index;
- setActive(index);
-
- //every time you change slides, reset the timer
- restartTimer();
- }
-
- function findSlideIndex(slide) {
- for (var i = 0; i < slides.length; i++) {
- if (slides[i].slide === slide) {
- return i;
- }
- }
- }
-
- function resetTimer() {
- if (currentInterval) {
- $interval.cancel(currentInterval);
- currentInterval = null;
- }
- }
-
- function resetTransition(slides) {
- if (!slides.length) {
- $scope.$currentTransition = null;
- clearBufferedTransitions();
- }
- }
-
- function restartTimer() {
- resetTimer();
- var interval = +$scope.interval;
- if (!isNaN(interval) && interval > 0) {
- currentInterval = $interval(timerFn, interval);
- }
- }
-
- function timerFn() {
- var interval = +$scope.interval;
- if (isPlaying && !isNaN(interval) && interval > 0 && slides.length) {
- $scope.next();
- } else {
- $scope.pause();
- }
- }
-}])
-
-.directive('uibCarousel', function() {
- return {
- transclude: true,
- controller: 'UibCarouselController',
- controllerAs: 'carousel',
- restrict: 'A',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/carousel/carousel.html';
- },
- scope: {
- active: '=',
- interval: '=',
- noTransition: '=',
- noPause: '=',
- noWrap: '&'
- }
- };
-})
-
-.directive('uibSlide', ['$animate', function($animate) {
- return {
- require: '^uibCarousel',
- restrict: 'A',
- transclude: true,
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/carousel/slide.html';
- },
- scope: {
- actual: '=?',
- index: '=?'
- },
- link: function (scope, element, attrs, carouselCtrl) {
- element.addClass('item');
- carouselCtrl.addSlide(scope, element);
- //when the scope is destroyed then remove the slide from the current slides array
- scope.$on('$destroy', function() {
- carouselCtrl.removeSlide(scope);
- });
-
- scope.$watch('active', function(active) {
- $animate[active ? 'addClass' : 'removeClass'](element, 'active');
- });
- }
- };
-}])
-
-.animation('.item', ['$animateCss',
-function($animateCss) {
- var SLIDE_DIRECTION = 'uib-slideDirection';
-
- function removeClass(element, className, callback) {
- element.removeClass(className);
- if (callback) {
- callback();
- }
- }
-
- return {
- beforeAddClass: function(element, className, done) {
- if (className === 'active') {
- var stopped = false;
- var direction = element.data(SLIDE_DIRECTION);
- var directionClass = direction === 'next' ? 'left' : 'right';
- var removeClassFn = removeClass.bind(this, element,
- directionClass + ' ' + direction, done);
- element.addClass(direction);
-
- $animateCss(element, {addClass: directionClass})
- .start()
- .done(removeClassFn);
-
- return function() {
- stopped = true;
- };
- }
- done();
- },
- beforeRemoveClass: function (element, className, done) {
- if (className === 'active') {
- var stopped = false;
- var direction = element.data(SLIDE_DIRECTION);
- var directionClass = direction === 'next' ? 'left' : 'right';
- var removeClassFn = removeClass.bind(this, element, directionClass, done);
-
- $animateCss(element, {addClass: directionClass})
- .start()
- .done(removeClassFn);
-
- return function() {
- stopped = true;
- };
- }
- done();
- }
- };
-}]);
-
-angular.module('ui.bootstrap.dateparser', [])
-
-.service('uibDateParser', ['$log', '$locale', 'dateFilter', 'orderByFilter', 'filterFilter', function($log, $locale, dateFilter, orderByFilter, filterFilter) {
- // Pulled from https://github.com/mbostock/d3/blob/master/src/format/requote.js
- var SPECIAL_CHARACTERS_REGEXP = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
-
- var localeId;
- var formatCodeToRegex;
-
- this.init = function() {
- localeId = $locale.id;
-
- this.parsers = {};
- this.formatters = {};
-
- formatCodeToRegex = [
- {
- key: 'yyyy',
- regex: '\\d{4}',
- apply: function(value) { this.year = +value; },
- formatter: function(date) {
- var _date = new Date();
- _date.setFullYear(Math.abs(date.getFullYear()));
- return dateFilter(_date, 'yyyy');
- }
- },
- {
- key: 'yy',
- regex: '\\d{2}',
- apply: function(value) { value = +value; this.year = value < 69 ? value + 2000 : value + 1900; },
- formatter: function(date) {
- var _date = new Date();
- _date.setFullYear(Math.abs(date.getFullYear()));
- return dateFilter(_date, 'yy');
- }
- },
- {
- key: 'y',
- regex: '\\d{1,4}',
- apply: function(value) { this.year = +value; },
- formatter: function(date) {
- var _date = new Date();
- _date.setFullYear(Math.abs(date.getFullYear()));
- return dateFilter(_date, 'y');
- }
- },
- {
- key: 'M!',
- regex: '0?[1-9]|1[0-2]',
- apply: function(value) { this.month = value - 1; },
- formatter: function(date) {
- var value = date.getMonth();
- if (/^[0-9]$/.test(value)) {
- return dateFilter(date, 'MM');
- }
-
- return dateFilter(date, 'M');
- }
- },
- {
- key: 'MMMM',
- regex: $locale.DATETIME_FORMATS.MONTH.join('|'),
- apply: function(value) { this.month = $locale.DATETIME_FORMATS.MONTH.indexOf(value); },
- formatter: function(date) { return dateFilter(date, 'MMMM'); }
- },
- {
- key: 'MMM',
- regex: $locale.DATETIME_FORMATS.SHORTMONTH.join('|'),
- apply: function(value) { this.month = $locale.DATETIME_FORMATS.SHORTMONTH.indexOf(value); },
- formatter: function(date) { return dateFilter(date, 'MMM'); }
- },
- {
- key: 'MM',
- regex: '0[1-9]|1[0-2]',
- apply: function(value) { this.month = value - 1; },
- formatter: function(date) { return dateFilter(date, 'MM'); }
- },
- {
- key: 'M',
- regex: '[1-9]|1[0-2]',
- apply: function(value) { this.month = value - 1; },
- formatter: function(date) { return dateFilter(date, 'M'); }
- },
- {
- key: 'd!',
- regex: '[0-2]?[0-9]{1}|3[0-1]{1}',
- apply: function(value) { this.date = +value; },
- formatter: function(date) {
- var value = date.getDate();
- if (/^[1-9]$/.test(value)) {
- return dateFilter(date, 'dd');
- }
-
- return dateFilter(date, 'd');
- }
- },
- {
- key: 'dd',
- regex: '[0-2][0-9]{1}|3[0-1]{1}',
- apply: function(value) { this.date = +value; },
- formatter: function(date) { return dateFilter(date, 'dd'); }
- },
- {
- key: 'd',
- regex: '[1-2]?[0-9]{1}|3[0-1]{1}',
- apply: function(value) { this.date = +value; },
- formatter: function(date) { return dateFilter(date, 'd'); }
- },
- {
- key: 'EEEE',
- regex: $locale.DATETIME_FORMATS.DAY.join('|'),
- formatter: function(date) { return dateFilter(date, 'EEEE'); }
- },
- {
- key: 'EEE',
- regex: $locale.DATETIME_FORMATS.SHORTDAY.join('|'),
- formatter: function(date) { return dateFilter(date, 'EEE'); }
- },
- {
- key: 'HH',
- regex: '(?:0|1)[0-9]|2[0-3]',
- apply: function(value) { this.hours = +value; },
- formatter: function(date) { return dateFilter(date, 'HH'); }
- },
- {
- key: 'hh',
- regex: '0[0-9]|1[0-2]',
- apply: function(value) { this.hours = +value; },
- formatter: function(date) { return dateFilter(date, 'hh'); }
- },
- {
- key: 'H',
- regex: '1?[0-9]|2[0-3]',
- apply: function(value) { this.hours = +value; },
- formatter: function(date) { return dateFilter(date, 'H'); }
- },
- {
- key: 'h',
- regex: '[0-9]|1[0-2]',
- apply: function(value) { this.hours = +value; },
- formatter: function(date) { return dateFilter(date, 'h'); }
- },
- {
- key: 'mm',
- regex: '[0-5][0-9]',
- apply: function(value) { this.minutes = +value; },
- formatter: function(date) { return dateFilter(date, 'mm'); }
- },
- {
- key: 'm',
- regex: '[0-9]|[1-5][0-9]',
- apply: function(value) { this.minutes = +value; },
- formatter: function(date) { return dateFilter(date, 'm'); }
- },
- {
- key: 'sss',
- regex: '[0-9][0-9][0-9]',
- apply: function(value) { this.milliseconds = +value; },
- formatter: function(date) { return dateFilter(date, 'sss'); }
- },
- {
- key: 'ss',
- regex: '[0-5][0-9]',
- apply: function(value) { this.seconds = +value; },
- formatter: function(date) { return dateFilter(date, 'ss'); }
- },
- {
- key: 's',
- regex: '[0-9]|[1-5][0-9]',
- apply: function(value) { this.seconds = +value; },
- formatter: function(date) { return dateFilter(date, 's'); }
- },
- {
- key: 'a',
- regex: $locale.DATETIME_FORMATS.AMPMS.join('|'),
- apply: function(value) {
- if (this.hours === 12) {
- this.hours = 0;
- }
-
- if (value === 'PM') {
- this.hours += 12;
- }
- },
- formatter: function(date) { return dateFilter(date, 'a'); }
- },
- {
- key: 'Z',
- regex: '[+-]\\d{4}',
- apply: function(value) {
- var matches = value.match(/([+-])(\d{2})(\d{2})/),
- sign = matches[1],
- hours = matches[2],
- minutes = matches[3];
- this.hours += toInt(sign + hours);
- this.minutes += toInt(sign + minutes);
- },
- formatter: function(date) {
- return dateFilter(date, 'Z');
- }
- },
- {
- key: 'ww',
- regex: '[0-4][0-9]|5[0-3]',
- formatter: function(date) { return dateFilter(date, 'ww'); }
- },
- {
- key: 'w',
- regex: '[0-9]|[1-4][0-9]|5[0-3]',
- formatter: function(date) { return dateFilter(date, 'w'); }
- },
- {
- key: 'GGGG',
- regex: $locale.DATETIME_FORMATS.ERANAMES.join('|').replace(/\s/g, '\\s'),
- formatter: function(date) { return dateFilter(date, 'GGGG'); }
- },
- {
- key: 'GGG',
- regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
- formatter: function(date) { return dateFilter(date, 'GGG'); }
- },
- {
- key: 'GG',
- regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
- formatter: function(date) { return dateFilter(date, 'GG'); }
- },
- {
- key: 'G',
- regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
- formatter: function(date) { return dateFilter(date, 'G'); }
- }
- ];
-
- if (angular.version.major >= 1 && angular.version.minor > 4) {
- formatCodeToRegex.push({
- key: 'LLLL',
- regex: $locale.DATETIME_FORMATS.STANDALONEMONTH.join('|'),
- apply: function(value) { this.month = $locale.DATETIME_FORMATS.STANDALONEMONTH.indexOf(value); },
- formatter: function(date) { return dateFilter(date, 'LLLL'); }
- });
- }
- };
-
- this.init();
-
- function getFormatCodeToRegex(key) {
- return filterFilter(formatCodeToRegex, {key: key}, true)[0];
- }
-
- this.getParser = function (key) {
- var f = getFormatCodeToRegex(key);
- return f && f.apply || null;
- };
-
- this.overrideParser = function (key, parser) {
- var f = getFormatCodeToRegex(key);
- if (f && angular.isFunction(parser)) {
- this.parsers = {};
- f.apply = parser;
- }
- }.bind(this);
-
- function createParser(format) {
- var map = [], regex = format.split('');
-
- // check for literal values
- var quoteIndex = format.indexOf('\'');
- if (quoteIndex > -1) {
- var inLiteral = false;
- format = format.split('');
- for (var i = quoteIndex; i < format.length; i++) {
- if (inLiteral) {
- if (format[i] === '\'') {
- if (i + 1 < format.length && format[i+1] === '\'') { // escaped single quote
- format[i+1] = '$';
- regex[i+1] = '';
- } else { // end of literal
- regex[i] = '';
- inLiteral = false;
- }
- }
- format[i] = '$';
- } else {
- if (format[i] === '\'') { // start of literal
- format[i] = '$';
- regex[i] = '';
- inLiteral = true;
- }
- }
- }
-
- format = format.join('');
- }
-
- angular.forEach(formatCodeToRegex, function(data) {
- var index = format.indexOf(data.key);
-
- if (index > -1) {
- format = format.split('');
-
- regex[index] = '(' + data.regex + ')';
- format[index] = '$'; // Custom symbol to define consumed part of format
- for (var i = index + 1, n = index + data.key.length; i < n; i++) {
- regex[i] = '';
- format[i] = '$';
- }
- format = format.join('');
-
- map.push({
- index: index,
- key: data.key,
- apply: data.apply,
- matcher: data.regex
- });
- }
- });
-
- return {
- regex: new RegExp('^' + regex.join('') + '$'),
- map: orderByFilter(map, 'index')
- };
- }
-
- function createFormatter(format) {
- var formatters = [];
- var i = 0;
- var formatter, literalIdx;
- while (i < format.length) {
- if (angular.isNumber(literalIdx)) {
- if (format.charAt(i) === '\'') {
- if (i + 1 >= format.length || format.charAt(i + 1) !== '\'') {
- formatters.push(constructLiteralFormatter(format, literalIdx, i));
- literalIdx = null;
- }
- } else if (i === format.length) {
- while (literalIdx < format.length) {
- formatter = constructFormatterFromIdx(format, literalIdx);
- formatters.push(formatter);
- literalIdx = formatter.endIdx;
- }
- }
-
- i++;
- continue;
- }
-
- if (format.charAt(i) === '\'') {
- literalIdx = i;
- i++;
- continue;
- }
-
- formatter = constructFormatterFromIdx(format, i);
-
- formatters.push(formatter.parser);
- i = formatter.endIdx;
- }
-
- return formatters;
- }
-
- function constructLiteralFormatter(format, literalIdx, endIdx) {
- return function() {
- return format.substr(literalIdx + 1, endIdx - literalIdx - 1);
- };
- }
-
- function constructFormatterFromIdx(format, i) {
- var currentPosStr = format.substr(i);
- for (var j = 0; j < formatCodeToRegex.length; j++) {
- if (new RegExp('^' + formatCodeToRegex[j].key).test(currentPosStr)) {
- var data = formatCodeToRegex[j];
- return {
- endIdx: i + data.key.length,
- parser: data.formatter
- };
- }
- }
-
- return {
- endIdx: i + 1,
- parser: function() {
- return currentPosStr.charAt(0);
- }
- };
- }
-
- this.filter = function(date, format) {
- if (!angular.isDate(date) || isNaN(date) || !format) {
- return '';
- }
-
- format = $locale.DATETIME_FORMATS[format] || format;
-
- if ($locale.id !== localeId) {
- this.init();
- }
-
- if (!this.formatters[format]) {
- this.formatters[format] = createFormatter(format);
- }
-
- var formatters = this.formatters[format];
-
- return formatters.reduce(function(str, formatter) {
- return str + formatter(date);
- }, '');
- };
-
- this.parse = function(input, format, baseDate) {
- if (!angular.isString(input) || !format) {
- return input;
- }
-
- format = $locale.DATETIME_FORMATS[format] || format;
- format = format.replace(SPECIAL_CHARACTERS_REGEXP, '\\$&');
-
- if ($locale.id !== localeId) {
- this.init();
- }
-
- if (!this.parsers[format]) {
- this.parsers[format] = createParser(format, 'apply');
- }
-
- var parser = this.parsers[format],
- regex = parser.regex,
- map = parser.map,
- results = input.match(regex),
- tzOffset = false;
- if (results && results.length) {
- var fields, dt;
- if (angular.isDate(baseDate) && !isNaN(baseDate.getTime())) {
- fields = {
- year: baseDate.getFullYear(),
- month: baseDate.getMonth(),
- date: baseDate.getDate(),
- hours: baseDate.getHours(),
- minutes: baseDate.getMinutes(),
- seconds: baseDate.getSeconds(),
- milliseconds: baseDate.getMilliseconds()
- };
- } else {
- if (baseDate) {
- $log.warn('dateparser:', 'baseDate is not a valid date');
- }
- fields = { year: 1900, month: 0, date: 1, hours: 0, minutes: 0, seconds: 0, milliseconds: 0 };
- }
-
- for (var i = 1, n = results.length; i < n; i++) {
- var mapper = map[i - 1];
- if (mapper.matcher === 'Z') {
- tzOffset = true;
- }
-
- if (mapper.apply) {
- mapper.apply.call(fields, results[i]);
- }
- }
-
- var datesetter = tzOffset ? Date.prototype.setUTCFullYear :
- Date.prototype.setFullYear;
- var timesetter = tzOffset ? Date.prototype.setUTCHours :
- Date.prototype.setHours;
-
- if (isValid(fields.year, fields.month, fields.date)) {
- if (angular.isDate(baseDate) && !isNaN(baseDate.getTime()) && !tzOffset) {
- dt = new Date(baseDate);
- datesetter.call(dt, fields.year, fields.month, fields.date);
- timesetter.call(dt, fields.hours, fields.minutes,
- fields.seconds, fields.milliseconds);
- } else {
- dt = new Date(0);
- datesetter.call(dt, fields.year, fields.month, fields.date);
- timesetter.call(dt, fields.hours || 0, fields.minutes || 0,
- fields.seconds || 0, fields.milliseconds || 0);
- }
- }
-
- return dt;
- }
- };
-
- // Check if date is valid for specific month (and year for February).
- // Month: 0 = Jan, 1 = Feb, etc
- function isValid(year, month, date) {
- if (date < 1) {
- return false;
- }
-
- if (month === 1 && date > 28) {
- return date === 29 && (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0);
- }
-
- if (month === 3 || month === 5 || month === 8 || month === 10) {
- return date < 31;
- }
-
- return true;
- }
-
- function toInt(str) {
- return parseInt(str, 10);
- }
-
- this.toTimezone = toTimezone;
- this.fromTimezone = fromTimezone;
- this.timezoneToOffset = timezoneToOffset;
- this.addDateMinutes = addDateMinutes;
- this.convertTimezoneToLocal = convertTimezoneToLocal;
-
- function toTimezone(date, timezone) {
- return date && timezone ? convertTimezoneToLocal(date, timezone) : date;
- }
-
- function fromTimezone(date, timezone) {
- return date && timezone ? convertTimezoneToLocal(date, timezone, true) : date;
- }
-
- //https://github.com/angular/angular.js/blob/622c42169699ec07fc6daaa19fe6d224e5d2f70e/src/Angular.js#L1207
- function timezoneToOffset(timezone, fallback) {
- timezone = timezone.replace(/:/g, '');
- var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
- return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
- }
-
- function addDateMinutes(date, minutes) {
- date = new Date(date.getTime());
- date.setMinutes(date.getMinutes() + minutes);
- return date;
- }
-
- function convertTimezoneToLocal(date, timezone, reverse) {
- reverse = reverse ? -1 : 1;
- var dateTimezoneOffset = date.getTimezoneOffset();
- var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
- return addDateMinutes(date, reverse * (timezoneOffset - dateTimezoneOffset));
- }
-}]);
-
-// Avoiding use of ng-class as it creates a lot of watchers when a class is to be applied to
-// at most one element.
-angular.module('ui.bootstrap.isClass', [])
-.directive('uibIsClass', [
- '$animate',
-function ($animate) {
- // 11111111 22222222
- var ON_REGEXP = /^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/;
- // 11111111 22222222
- var IS_REGEXP = /^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;
-
- var dataPerTracked = {};
-
- return {
- restrict: 'A',
- compile: function(tElement, tAttrs) {
- var linkedScopes = [];
- var instances = [];
- var expToData = {};
- var lastActivated = null;
- var onExpMatches = tAttrs.uibIsClass.match(ON_REGEXP);
- var onExp = onExpMatches[2];
- var expsStr = onExpMatches[1];
- var exps = expsStr.split(',');
-
- return linkFn;
-
- function linkFn(scope, element, attrs) {
- linkedScopes.push(scope);
- instances.push({
- scope: scope,
- element: element
- });
-
- exps.forEach(function(exp, k) {
- addForExp(exp, scope);
- });
-
- scope.$on('$destroy', removeScope);
- }
-
- function addForExp(exp, scope) {
- var matches = exp.match(IS_REGEXP);
- var clazz = scope.$eval(matches[1]);
- var compareWithExp = matches[2];
- var data = expToData[exp];
- if (!data) {
- var watchFn = function(compareWithVal) {
- var newActivated = null;
- instances.some(function(instance) {
- var thisVal = instance.scope.$eval(onExp);
- if (thisVal === compareWithVal) {
- newActivated = instance;
- return true;
- }
- });
- if (data.lastActivated !== newActivated) {
- if (data.lastActivated) {
- $animate.removeClass(data.lastActivated.element, clazz);
- }
- if (newActivated) {
- $animate.addClass(newActivated.element, clazz);
- }
- data.lastActivated = newActivated;
- }
- };
- expToData[exp] = data = {
- lastActivated: null,
- scope: scope,
- watchFn: watchFn,
- compareWithExp: compareWithExp,
- watcher: scope.$watch(compareWithExp, watchFn)
- };
- }
- data.watchFn(scope.$eval(compareWithExp));
- }
-
- function removeScope(e) {
- var removedScope = e.targetScope;
- var index = linkedScopes.indexOf(removedScope);
- linkedScopes.splice(index, 1);
- instances.splice(index, 1);
- if (linkedScopes.length) {
- var newWatchScope = linkedScopes[0];
- angular.forEach(expToData, function(data) {
- if (data.scope === removedScope) {
- data.watcher = newWatchScope.$watch(data.compareWithExp, data.watchFn);
- data.scope = newWatchScope;
- }
- });
- } else {
- expToData = {};
- }
- }
- }
- };
-}]);
-angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootstrap.isClass'])
-
-.value('$datepickerSuppressError', false)
-
-.value('$datepickerLiteralWarning', true)
-
-.constant('uibDatepickerConfig', {
- datepickerMode: 'day',
- formatDay: 'dd',
- formatMonth: 'MMMM',
- formatYear: 'yyyy',
- formatDayHeader: 'EEE',
- formatDayTitle: 'MMMM yyyy',
- formatMonthTitle: 'yyyy',
- maxDate: null,
- maxMode: 'year',
- minDate: null,
- minMode: 'day',
- monthColumns: 3,
- ngModelOptions: {},
- shortcutPropagation: false,
- showWeeks: true,
- yearColumns: 5,
- yearRows: 4
-})
-
-.controller('UibDatepickerController', ['$scope', '$element', '$attrs', '$parse', '$interpolate', '$locale', '$log', 'dateFilter', 'uibDatepickerConfig', '$datepickerLiteralWarning', '$datepickerSuppressError', 'uibDateParser',
- function($scope, $element, $attrs, $parse, $interpolate, $locale, $log, dateFilter, datepickerConfig, $datepickerLiteralWarning, $datepickerSuppressError, dateParser) {
- var self = this,
- ngModelCtrl = { $setViewValue: angular.noop }, // nullModelCtrl;
- ngModelOptions = {},
- watchListeners = [];
-
- $element.addClass('uib-datepicker');
- $attrs.$set('role', 'application');
-
- if (!$scope.datepickerOptions) {
- $scope.datepickerOptions = {};
- }
-
- // Modes chain
- this.modes = ['day', 'month', 'year'];
-
- [
- 'customClass',
- 'dateDisabled',
- 'datepickerMode',
- 'formatDay',
- 'formatDayHeader',
- 'formatDayTitle',
- 'formatMonth',
- 'formatMonthTitle',
- 'formatYear',
- 'maxDate',
- 'maxMode',
- 'minDate',
- 'minMode',
- 'monthColumns',
- 'showWeeks',
- 'shortcutPropagation',
- 'startingDay',
- 'yearColumns',
- 'yearRows'
- ].forEach(function(key) {
- switch (key) {
- case 'customClass':
- case 'dateDisabled':
- $scope[key] = $scope.datepickerOptions[key] || angular.noop;
- break;
- case 'datepickerMode':
- $scope.datepickerMode = angular.isDefined($scope.datepickerOptions.datepickerMode) ?
- $scope.datepickerOptions.datepickerMode : datepickerConfig.datepickerMode;
- break;
- case 'formatDay':
- case 'formatDayHeader':
- case 'formatDayTitle':
- case 'formatMonth':
- case 'formatMonthTitle':
- case 'formatYear':
- self[key] = angular.isDefined($scope.datepickerOptions[key]) ?
- $interpolate($scope.datepickerOptions[key])($scope.$parent) :
- datepickerConfig[key];
- break;
- case 'monthColumns':
- case 'showWeeks':
- case 'shortcutPropagation':
- case 'yearColumns':
- case 'yearRows':
- self[key] = angular.isDefined($scope.datepickerOptions[key]) ?
- $scope.datepickerOptions[key] : datepickerConfig[key];
- break;
- case 'startingDay':
- if (angular.isDefined($scope.datepickerOptions.startingDay)) {
- self.startingDay = $scope.datepickerOptions.startingDay;
- } else if (angular.isNumber(datepickerConfig.startingDay)) {
- self.startingDay = datepickerConfig.startingDay;
- } else {
- self.startingDay = ($locale.DATETIME_FORMATS.FIRSTDAYOFWEEK + 8) % 7;
- }
-
- break;
- case 'maxDate':
- case 'minDate':
- $scope.$watch('datepickerOptions.' + key, function(value) {
- if (value) {
- if (angular.isDate(value)) {
- self[key] = dateParser.fromTimezone(new Date(value), ngModelOptions.timezone);
- } else {
- if ($datepickerLiteralWarning) {
- $log.warn('Literal date support has been deprecated, please switch to date object usage');
- }
-
- self[key] = new Date(dateFilter(value, 'medium'));
- }
- } else {
- self[key] = datepickerConfig[key] ?
- dateParser.fromTimezone(new Date(datepickerConfig[key]), ngModelOptions.timezone) :
- null;
- }
-
- self.refreshView();
- });
-
- break;
- case 'maxMode':
- case 'minMode':
- if ($scope.datepickerOptions[key]) {
- $scope.$watch(function() { return $scope.datepickerOptions[key]; }, function(value) {
- self[key] = $scope[key] = angular.isDefined(value) ? value : $scope.datepickerOptions[key];
- if (key === 'minMode' && self.modes.indexOf($scope.datepickerOptions.datepickerMode) < self.modes.indexOf(self[key]) ||
- key === 'maxMode' && self.modes.indexOf($scope.datepickerOptions.datepickerMode) > self.modes.indexOf(self[key])) {
- $scope.datepickerMode = self[key];
- $scope.datepickerOptions.datepickerMode = self[key];
- }
- });
- } else {
- self[key] = $scope[key] = datepickerConfig[key] || null;
- }
-
- break;
- }
- });
-
- $scope.uniqueId = 'datepicker-' + $scope.$id + '-' + Math.floor(Math.random() * 10000);
-
- $scope.disabled = angular.isDefined($attrs.disabled) || false;
- if (angular.isDefined($attrs.ngDisabled)) {
- watchListeners.push($scope.$parent.$watch($attrs.ngDisabled, function(disabled) {
- $scope.disabled = disabled;
- self.refreshView();
- }));
- }
-
- $scope.isActive = function(dateObject) {
- if (self.compare(dateObject.date, self.activeDate) === 0) {
- $scope.activeDateId = dateObject.uid;
- return true;
- }
- return false;
- };
-
- this.init = function(ngModelCtrl_) {
- ngModelCtrl = ngModelCtrl_;
- ngModelOptions = ngModelCtrl_.$options ||
- $scope.datepickerOptions.ngModelOptions ||
- datepickerConfig.ngModelOptions;
- if ($scope.datepickerOptions.initDate) {
- self.activeDate = dateParser.fromTimezone($scope.datepickerOptions.initDate, ngModelOptions.timezone) || new Date();
- $scope.$watch('datepickerOptions.initDate', function(initDate) {
- if (initDate && (ngModelCtrl.$isEmpty(ngModelCtrl.$modelValue) || ngModelCtrl.$invalid)) {
- self.activeDate = dateParser.fromTimezone(initDate, ngModelOptions.timezone);
- self.refreshView();
- }
- });
- } else {
- self.activeDate = new Date();
- }
-
- var date = ngModelCtrl.$modelValue ? new Date(ngModelCtrl.$modelValue) : new Date();
- this.activeDate = !isNaN(date) ?
- dateParser.fromTimezone(date, ngModelOptions.timezone) :
- dateParser.fromTimezone(new Date(), ngModelOptions.timezone);
-
- ngModelCtrl.$render = function() {
- self.render();
- };
- };
-
- this.render = function() {
- if (ngModelCtrl.$viewValue) {
- var date = new Date(ngModelCtrl.$viewValue),
- isValid = !isNaN(date);
-
- if (isValid) {
- this.activeDate = dateParser.fromTimezone(date, ngModelOptions.timezone);
- } else if (!$datepickerSuppressError) {
- $log.error('Datepicker directive: "ng-model" value must be a Date object');
- }
- }
- this.refreshView();
- };
-
- this.refreshView = function() {
- if (this.element) {
- $scope.selectedDt = null;
- this._refreshView();
- if ($scope.activeDt) {
- $scope.activeDateId = $scope.activeDt.uid;
- }
-
- var date = ngModelCtrl.$viewValue ? new Date(ngModelCtrl.$viewValue) : null;
- date = dateParser.fromTimezone(date, ngModelOptions.timezone);
- ngModelCtrl.$setValidity('dateDisabled', !date ||
- this.element && !this.isDisabled(date));
- }
- };
-
- this.createDateObject = function(date, format) {
- var model = ngModelCtrl.$viewValue ? new Date(ngModelCtrl.$viewValue) : null;
- model = dateParser.fromTimezone(model, ngModelOptions.timezone);
- var today = new Date();
- today = dateParser.fromTimezone(today, ngModelOptions.timezone);
- var time = this.compare(date, today);
- var dt = {
- date: date,
- label: dateParser.filter(date, format),
- selected: model && this.compare(date, model) === 0,
- disabled: this.isDisabled(date),
- past: time < 0,
- current: time === 0,
- future: time > 0,
- customClass: this.customClass(date) || null
- };
-
- if (model && this.compare(date, model) === 0) {
- $scope.selectedDt = dt;
- }
-
- if (self.activeDate && this.compare(dt.date, self.activeDate) === 0) {
- $scope.activeDt = dt;
- }
-
- return dt;
- };
-
- this.isDisabled = function(date) {
- return $scope.disabled ||
- this.minDate && this.compare(date, this.minDate) < 0 ||
- this.maxDate && this.compare(date, this.maxDate) > 0 ||
- $scope.dateDisabled && $scope.dateDisabled({date: date, mode: $scope.datepickerMode});
- };
-
- this.customClass = function(date) {
- return $scope.customClass({date: date, mode: $scope.datepickerMode});
- };
-
- // Split array into smaller arrays
- this.split = function(arr, size) {
- var arrays = [];
- while (arr.length > 0) {
- arrays.push(arr.splice(0, size));
- }
- return arrays;
- };
-
- $scope.select = function(date) {
- if ($scope.datepickerMode === self.minMode) {
- var dt = ngModelCtrl.$viewValue ? dateParser.fromTimezone(new Date(ngModelCtrl.$viewValue), ngModelOptions.timezone) : new Date(0, 0, 0, 0, 0, 0, 0);
- dt.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());
- dt = dateParser.toTimezone(dt, ngModelOptions.timezone);
- ngModelCtrl.$setViewValue(dt);
- ngModelCtrl.$render();
- } else {
- self.activeDate = date;
- setMode(self.modes[self.modes.indexOf($scope.datepickerMode) - 1]);
-
- $scope.$emit('uib:datepicker.mode');
- }
-
- $scope.$broadcast('uib:datepicker.focus');
- };
-
- $scope.move = function(direction) {
- var year = self.activeDate.getFullYear() + direction * (self.step.years || 0),
- month = self.activeDate.getMonth() + direction * (self.step.months || 0);
- self.activeDate.setFullYear(year, month, 1);
- self.refreshView();
- };
-
- $scope.toggleMode = function(direction) {
- direction = direction || 1;
-
- if ($scope.datepickerMode === self.maxMode && direction === 1 ||
- $scope.datepickerMode === self.minMode && direction === -1) {
- return;
- }
-
- setMode(self.modes[self.modes.indexOf($scope.datepickerMode) + direction]);
-
- $scope.$emit('uib:datepicker.mode');
- };
-
- // Key event mapper
- $scope.keys = { 13: 'enter', 32: 'space', 33: 'pageup', 34: 'pagedown', 35: 'end', 36: 'home', 37: 'left', 38: 'up', 39: 'right', 40: 'down' };
-
- var focusElement = function() {
- self.element[0].focus();
- };
-
- // Listen for focus requests from popup directive
- $scope.$on('uib:datepicker.focus', focusElement);
-
- $scope.keydown = function(evt) {
- var key = $scope.keys[evt.which];
-
- if (!key || evt.shiftKey || evt.altKey || $scope.disabled) {
- return;
- }
-
- evt.preventDefault();
- if (!self.shortcutPropagation) {
- evt.stopPropagation();
- }
-
- if (key === 'enter' || key === 'space') {
- if (self.isDisabled(self.activeDate)) {
- return; // do nothing
- }
- $scope.select(self.activeDate);
- } else if (evt.ctrlKey && (key === 'up' || key === 'down')) {
- $scope.toggleMode(key === 'up' ? 1 : -1);
- } else {
- self.handleKeyDown(key, evt);
- self.refreshView();
- }
- };
-
- $element.on('keydown', function(evt) {
- $scope.$apply(function() {
- $scope.keydown(evt);
- });
- });
-
- $scope.$on('$destroy', function() {
- //Clear all watch listeners on destroy
- while (watchListeners.length) {
- watchListeners.shift()();
- }
- });
-
- function setMode(mode) {
- $scope.datepickerMode = mode;
- $scope.datepickerOptions.datepickerMode = mode;
- }
-}])
-
-.controller('UibDaypickerController', ['$scope', '$element', 'dateFilter', function(scope, $element, dateFilter) {
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
-
- this.step = { months: 1 };
- this.element = $element;
- function getDaysInMonth(year, month) {
- return month === 1 && year % 4 === 0 &&
- (year % 100 !== 0 || year % 400 === 0) ? 29 : DAYS_IN_MONTH[month];
- }
-
- this.init = function(ctrl) {
- angular.extend(ctrl, this);
- scope.showWeeks = ctrl.showWeeks;
- ctrl.refreshView();
- };
-
- this.getDates = function(startDate, n) {
- var dates = new Array(n), current = new Date(startDate), i = 0, date;
- while (i < n) {
- date = new Date(current);
- dates[i++] = date;
- current.setDate(current.getDate() + 1);
- }
- return dates;
- };
-
- this._refreshView = function() {
- var year = this.activeDate.getFullYear(),
- month = this.activeDate.getMonth(),
- firstDayOfMonth = new Date(this.activeDate);
-
- firstDayOfMonth.setFullYear(year, month, 1);
-
- var difference = this.startingDay - firstDayOfMonth.getDay(),
- numDisplayedFromPreviousMonth = difference > 0 ?
- 7 - difference : - difference,
- firstDate = new Date(firstDayOfMonth);
-
- if (numDisplayedFromPreviousMonth > 0) {
- firstDate.setDate(-numDisplayedFromPreviousMonth + 1);
- }
-
- // 42 is the number of days on a six-week calendar
- var days = this.getDates(firstDate, 42);
- for (var i = 0; i < 42; i ++) {
- days[i] = angular.extend(this.createDateObject(days[i], this.formatDay), {
- secondary: days[i].getMonth() !== month,
- uid: scope.uniqueId + '-' + i
- });
- }
-
- scope.labels = new Array(7);
- for (var j = 0; j < 7; j++) {
- scope.labels[j] = {
- abbr: dateFilter(days[j].date, this.formatDayHeader),
- full: dateFilter(days[j].date, 'EEEE')
- };
- }
-
- scope.title = dateFilter(this.activeDate, this.formatDayTitle);
- scope.rows = this.split(days, 7);
-
- if (scope.showWeeks) {
- scope.weekNumbers = [];
- var thursdayIndex = (4 + 7 - this.startingDay) % 7,
- numWeeks = scope.rows.length;
- for (var curWeek = 0; curWeek < numWeeks; curWeek++) {
- scope.weekNumbers.push(
- getISO8601WeekNumber(scope.rows[curWeek][thursdayIndex].date));
- }
- }
- };
-
- this.compare = function(date1, date2) {
- var _date1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate());
- var _date2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
- _date1.setFullYear(date1.getFullYear());
- _date2.setFullYear(date2.getFullYear());
- return _date1 - _date2;
- };
-
- function getISO8601WeekNumber(date) {
- var checkDate = new Date(date);
- checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7)); // Thursday
- var time = checkDate.getTime();
- checkDate.setMonth(0); // Compare with Jan 1
- checkDate.setDate(1);
- return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;
- }
-
- this.handleKeyDown = function(key, evt) {
- var date = this.activeDate.getDate();
-
- if (key === 'left') {
- date = date - 1;
- } else if (key === 'up') {
- date = date - 7;
- } else if (key === 'right') {
- date = date + 1;
- } else if (key === 'down') {
- date = date + 7;
- } else if (key === 'pageup' || key === 'pagedown') {
- var month = this.activeDate.getMonth() + (key === 'pageup' ? - 1 : 1);
- this.activeDate.setMonth(month, 1);
- date = Math.min(getDaysInMonth(this.activeDate.getFullYear(), this.activeDate.getMonth()), date);
- } else if (key === 'home') {
- date = 1;
- } else if (key === 'end') {
- date = getDaysInMonth(this.activeDate.getFullYear(), this.activeDate.getMonth());
- }
- this.activeDate.setDate(date);
- };
-}])
-
-.controller('UibMonthpickerController', ['$scope', '$element', 'dateFilter', function(scope, $element, dateFilter) {
- this.step = { years: 1 };
- this.element = $element;
-
- this.init = function(ctrl) {
- angular.extend(ctrl, this);
- ctrl.refreshView();
- };
-
- this._refreshView = function() {
- var months = new Array(12),
- year = this.activeDate.getFullYear(),
- date;
-
- for (var i = 0; i < 12; i++) {
- date = new Date(this.activeDate);
- date.setFullYear(year, i, 1);
- months[i] = angular.extend(this.createDateObject(date, this.formatMonth), {
- uid: scope.uniqueId + '-' + i
- });
- }
-
- scope.title = dateFilter(this.activeDate, this.formatMonthTitle);
- scope.rows = this.split(months, this.monthColumns);
- scope.yearHeaderColspan = this.monthColumns > 3 ? this.monthColumns - 2 : 1;
- };
-
- this.compare = function(date1, date2) {
- var _date1 = new Date(date1.getFullYear(), date1.getMonth());
- var _date2 = new Date(date2.getFullYear(), date2.getMonth());
- _date1.setFullYear(date1.getFullYear());
- _date2.setFullYear(date2.getFullYear());
- return _date1 - _date2;
- };
-
- this.handleKeyDown = function(key, evt) {
- var date = this.activeDate.getMonth();
-
- if (key === 'left') {
- date = date - 1;
- } else if (key === 'up') {
- date = date - this.monthColumns;
- } else if (key === 'right') {
- date = date + 1;
- } else if (key === 'down') {
- date = date + this.monthColumns;
- } else if (key === 'pageup' || key === 'pagedown') {
- var year = this.activeDate.getFullYear() + (key === 'pageup' ? - 1 : 1);
- this.activeDate.setFullYear(year);
- } else if (key === 'home') {
- date = 0;
- } else if (key === 'end') {
- date = 11;
- }
- this.activeDate.setMonth(date);
- };
-}])
-
-.controller('UibYearpickerController', ['$scope', '$element', 'dateFilter', function(scope, $element, dateFilter) {
- var columns, range;
- this.element = $element;
-
- function getStartingYear(year) {
- return parseInt((year - 1) / range, 10) * range + 1;
- }
-
- this.yearpickerInit = function() {
- columns = this.yearColumns;
- range = this.yearRows * columns;
- this.step = { years: range };
- };
-
- this._refreshView = function() {
- var years = new Array(range), date;
-
- for (var i = 0, start = getStartingYear(this.activeDate.getFullYear()); i < range; i++) {
- date = new Date(this.activeDate);
- date.setFullYear(start + i, 0, 1);
- years[i] = angular.extend(this.createDateObject(date, this.formatYear), {
- uid: scope.uniqueId + '-' + i
- });
- }
-
- scope.title = [years[0].label, years[range - 1].label].join(' - ');
- scope.rows = this.split(years, columns);
- scope.columns = columns;
- };
-
- this.compare = function(date1, date2) {
- return date1.getFullYear() - date2.getFullYear();
- };
-
- this.handleKeyDown = function(key, evt) {
- var date = this.activeDate.getFullYear();
-
- if (key === 'left') {
- date = date - 1;
- } else if (key === 'up') {
- date = date - columns;
- } else if (key === 'right') {
- date = date + 1;
- } else if (key === 'down') {
- date = date + columns;
- } else if (key === 'pageup' || key === 'pagedown') {
- date += (key === 'pageup' ? - 1 : 1) * range;
- } else if (key === 'home') {
- date = getStartingYear(this.activeDate.getFullYear());
- } else if (key === 'end') {
- date = getStartingYear(this.activeDate.getFullYear()) + range - 1;
- }
- this.activeDate.setFullYear(date);
- };
-}])
-
-.directive('uibDatepicker', function() {
- return {
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepicker/datepicker.html';
- },
- scope: {
- datepickerOptions: '=?'
- },
- require: ['uibDatepicker', '^ngModel'],
- restrict: 'A',
- controller: 'UibDatepickerController',
- controllerAs: 'datepicker',
- link: function(scope, element, attrs, ctrls) {
- var datepickerCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- datepickerCtrl.init(ngModelCtrl);
- }
- };
-})
-
-.directive('uibDaypicker', function() {
- return {
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepicker/day.html';
- },
- require: ['^uibDatepicker', 'uibDaypicker'],
- restrict: 'A',
- controller: 'UibDaypickerController',
- link: function(scope, element, attrs, ctrls) {
- var datepickerCtrl = ctrls[0],
- daypickerCtrl = ctrls[1];
-
- daypickerCtrl.init(datepickerCtrl);
- }
- };
-})
-
-.directive('uibMonthpicker', function() {
- return {
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepicker/month.html';
- },
- require: ['^uibDatepicker', 'uibMonthpicker'],
- restrict: 'A',
- controller: 'UibMonthpickerController',
- link: function(scope, element, attrs, ctrls) {
- var datepickerCtrl = ctrls[0],
- monthpickerCtrl = ctrls[1];
-
- monthpickerCtrl.init(datepickerCtrl);
- }
- };
-})
-
-.directive('uibYearpicker', function() {
- return {
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepicker/year.html';
- },
- require: ['^uibDatepicker', 'uibYearpicker'],
- restrict: 'A',
- controller: 'UibYearpickerController',
- link: function(scope, element, attrs, ctrls) {
- var ctrl = ctrls[0];
- angular.extend(ctrl, ctrls[1]);
- ctrl.yearpickerInit();
-
- ctrl.refreshView();
- }
- };
-});
-
-angular.module('ui.bootstrap.position', [])
-
-/**
- * A set of utility methods for working with the DOM.
- * It is meant to be used where we need to absolute-position elements in
- * relation to another element (this is the case for tooltips, popovers,
- * typeahead suggestions etc.).
- */
- .factory('$uibPosition', ['$document', '$window', function($document, $window) {
- /**
- * Used by scrollbarWidth() function to cache scrollbar's width.
- * Do not access this variable directly, use scrollbarWidth() instead.
- */
- var SCROLLBAR_WIDTH;
- /**
- * scrollbar on body and html element in IE and Edge overlay
- * content and should be considered 0 width.
- */
- var BODY_SCROLLBAR_WIDTH;
- var OVERFLOW_REGEX = {
- normal: /(auto|scroll)/,
- hidden: /(auto|scroll|hidden)/
- };
- var PLACEMENT_REGEX = {
- auto: /\s?auto?\s?/i,
- primary: /^(top|bottom|left|right)$/,
- secondary: /^(top|bottom|left|right|center)$/,
- vertical: /^(top|bottom)$/
- };
- var BODY_REGEX = /(HTML|BODY)/;
-
- return {
-
- /**
- * Provides a raw DOM element from a jQuery/jQLite element.
- *
- * @param {element} elem - The element to convert.
- *
- * @returns {element} A HTML element.
- */
- getRawNode: function(elem) {
- return elem.nodeName ? elem : elem[0] || elem;
- },
-
- /**
- * Provides a parsed number for a style property. Strips
- * units and casts invalid numbers to 0.
- *
- * @param {string} value - The style value to parse.
- *
- * @returns {number} A valid number.
- */
- parseStyle: function(value) {
- value = parseFloat(value);
- return isFinite(value) ? value : 0;
- },
-
- /**
- * Provides the closest positioned ancestor.
- *
- * @param {element} element - The element to get the offest parent for.
- *
- * @returns {element} The closest positioned ancestor.
- */
- offsetParent: function(elem) {
- elem = this.getRawNode(elem);
-
- var offsetParent = elem.offsetParent || $document[0].documentElement;
-
- function isStaticPositioned(el) {
- return ($window.getComputedStyle(el).position || 'static') === 'static';
- }
-
- while (offsetParent && offsetParent !== $document[0].documentElement && isStaticPositioned(offsetParent)) {
- offsetParent = offsetParent.offsetParent;
- }
-
- return offsetParent || $document[0].documentElement;
- },
-
- /**
- * Provides the scrollbar width, concept from TWBS measureScrollbar()
- * function in https://github.com/twbs/bootstrap/blob/master/js/modal.js
- * In IE and Edge, scollbar on body and html element overlay and should
- * return a width of 0.
- *
- * @returns {number} The width of the browser scollbar.
- */
- scrollbarWidth: function(isBody) {
- if (isBody) {
- if (angular.isUndefined(BODY_SCROLLBAR_WIDTH)) {
- var bodyElem = $document.find('body');
- bodyElem.addClass('uib-position-body-scrollbar-measure');
- BODY_SCROLLBAR_WIDTH = $window.innerWidth - bodyElem[0].clientWidth;
- BODY_SCROLLBAR_WIDTH = isFinite(BODY_SCROLLBAR_WIDTH) ? BODY_SCROLLBAR_WIDTH : 0;
- bodyElem.removeClass('uib-position-body-scrollbar-measure');
- }
- return BODY_SCROLLBAR_WIDTH;
- }
-
- if (angular.isUndefined(SCROLLBAR_WIDTH)) {
- var scrollElem = angular.element('<div class="uib-position-scrollbar-measure"></div>');
- $document.find('body').append(scrollElem);
- SCROLLBAR_WIDTH = scrollElem[0].offsetWidth - scrollElem[0].clientWidth;
- SCROLLBAR_WIDTH = isFinite(SCROLLBAR_WIDTH) ? SCROLLBAR_WIDTH : 0;
- scrollElem.remove();
- }
-
- return SCROLLBAR_WIDTH;
- },
-
- /**
- * Provides the padding required on an element to replace the scrollbar.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**scrollbarWidth**: the width of the scrollbar</li>
- * <li>**widthOverflow**: whether the the width is overflowing</li>
- * <li>**right**: the amount of right padding on the element needed to replace the scrollbar</li>
- * <li>**rightOriginal**: the amount of right padding currently on the element</li>
- * <li>**heightOverflow**: whether the the height is overflowing</li>
- * <li>**bottom**: the amount of bottom padding on the element needed to replace the scrollbar</li>
- * <li>**bottomOriginal**: the amount of bottom padding currently on the element</li>
- * </ul>
- */
- scrollbarPadding: function(elem) {
- elem = this.getRawNode(elem);
-
- var elemStyle = $window.getComputedStyle(elem);
- var paddingRight = this.parseStyle(elemStyle.paddingRight);
- var paddingBottom = this.parseStyle(elemStyle.paddingBottom);
- var scrollParent = this.scrollParent(elem, false, true);
- var scrollbarWidth = this.scrollbarWidth(BODY_REGEX.test(scrollParent.tagName));
-
- return {
- scrollbarWidth: scrollbarWidth,
- widthOverflow: scrollParent.scrollWidth > scrollParent.clientWidth,
- right: paddingRight + scrollbarWidth,
- originalRight: paddingRight,
- heightOverflow: scrollParent.scrollHeight > scrollParent.clientHeight,
- bottom: paddingBottom + scrollbarWidth,
- originalBottom: paddingBottom
- };
- },
-
- /**
- * Checks to see if the element is scrollable.
- *
- * @param {element} elem - The element to check.
- * @param {boolean=} [includeHidden=false] - Should scroll style of 'hidden' be considered,
- * default is false.
- *
- * @returns {boolean} Whether the element is scrollable.
- */
- isScrollable: function(elem, includeHidden) {
- elem = this.getRawNode(elem);
-
- var overflowRegex = includeHidden ? OVERFLOW_REGEX.hidden : OVERFLOW_REGEX.normal;
- var elemStyle = $window.getComputedStyle(elem);
- return overflowRegex.test(elemStyle.overflow + elemStyle.overflowY + elemStyle.overflowX);
- },
-
- /**
- * Provides the closest scrollable ancestor.
- * A port of the jQuery UI scrollParent method:
- * https://github.com/jquery/jquery-ui/blob/master/ui/scroll-parent.js
- *
- * @param {element} elem - The element to find the scroll parent of.
- * @param {boolean=} [includeHidden=false] - Should scroll style of 'hidden' be considered,
- * default is false.
- * @param {boolean=} [includeSelf=false] - Should the element being passed be
- * included in the scrollable llokup.
- *
- * @returns {element} A HTML element.
- */
- scrollParent: function(elem, includeHidden, includeSelf) {
- elem = this.getRawNode(elem);
-
- var overflowRegex = includeHidden ? OVERFLOW_REGEX.hidden : OVERFLOW_REGEX.normal;
- var documentEl = $document[0].documentElement;
- var elemStyle = $window.getComputedStyle(elem);
- if (includeSelf && overflowRegex.test(elemStyle.overflow + elemStyle.overflowY + elemStyle.overflowX)) {
- return elem;
- }
- var excludeStatic = elemStyle.position === 'absolute';
- var scrollParent = elem.parentElement || documentEl;
-
- if (scrollParent === documentEl || elemStyle.position === 'fixed') {
- return documentEl;
- }
-
- while (scrollParent.parentElement && scrollParent !== documentEl) {
- var spStyle = $window.getComputedStyle(scrollParent);
- if (excludeStatic && spStyle.position !== 'static') {
- excludeStatic = false;
- }
-
- if (!excludeStatic && overflowRegex.test(spStyle.overflow + spStyle.overflowY + spStyle.overflowX)) {
- break;
- }
- scrollParent = scrollParent.parentElement;
- }
-
- return scrollParent;
- },
-
- /**
- * Provides read-only equivalent of jQuery's position function:
- * http://api.jquery.com/position/ - distance to closest positioned
- * ancestor. Does not account for margins by default like jQuery position.
- *
- * @param {element} elem - The element to caclulate the position on.
- * @param {boolean=} [includeMargins=false] - Should margins be accounted
- * for, default is false.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**width**: the width of the element</li>
- * <li>**height**: the height of the element</li>
- * <li>**top**: distance to top edge of offset parent</li>
- * <li>**left**: distance to left edge of offset parent</li>
- * </ul>
- */
- position: function(elem, includeMagins) {
- elem = this.getRawNode(elem);
-
- var elemOffset = this.offset(elem);
- if (includeMagins) {
- var elemStyle = $window.getComputedStyle(elem);
- elemOffset.top -= this.parseStyle(elemStyle.marginTop);
- elemOffset.left -= this.parseStyle(elemStyle.marginLeft);
- }
- var parent = this.offsetParent(elem);
- var parentOffset = {top: 0, left: 0};
-
- if (parent !== $document[0].documentElement) {
- parentOffset = this.offset(parent);
- parentOffset.top += parent.clientTop - parent.scrollTop;
- parentOffset.left += parent.clientLeft - parent.scrollLeft;
- }
-
- return {
- width: Math.round(angular.isNumber(elemOffset.width) ? elemOffset.width : elem.offsetWidth),
- height: Math.round(angular.isNumber(elemOffset.height) ? elemOffset.height : elem.offsetHeight),
- top: Math.round(elemOffset.top - parentOffset.top),
- left: Math.round(elemOffset.left - parentOffset.left)
- };
- },
-
- /**
- * Provides read-only equivalent of jQuery's offset function:
- * http://api.jquery.com/offset/ - distance to viewport. Does
- * not account for borders, margins, or padding on the body
- * element.
- *
- * @param {element} elem - The element to calculate the offset on.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**width**: the width of the element</li>
- * <li>**height**: the height of the element</li>
- * <li>**top**: distance to top edge of viewport</li>
- * <li>**right**: distance to bottom edge of viewport</li>
- * </ul>
- */
- offset: function(elem) {
- elem = this.getRawNode(elem);
-
- var elemBCR = elem.getBoundingClientRect();
- return {
- width: Math.round(angular.isNumber(elemBCR.width) ? elemBCR.width : elem.offsetWidth),
- height: Math.round(angular.isNumber(elemBCR.height) ? elemBCR.height : elem.offsetHeight),
- top: Math.round(elemBCR.top + ($window.pageYOffset || $document[0].documentElement.scrollTop)),
- left: Math.round(elemBCR.left + ($window.pageXOffset || $document[0].documentElement.scrollLeft))
- };
- },
-
- /**
- * Provides offset distance to the closest scrollable ancestor
- * or viewport. Accounts for border and scrollbar width.
- *
- * Right and bottom dimensions represent the distance to the
- * respective edge of the viewport element. If the element
- * edge extends beyond the viewport, a negative value will be
- * reported.
- *
- * @param {element} elem - The element to get the viewport offset for.
- * @param {boolean=} [useDocument=false] - Should the viewport be the document element instead
- * of the first scrollable element, default is false.
- * @param {boolean=} [includePadding=true] - Should the padding on the offset parent element
- * be accounted for, default is true.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**top**: distance to the top content edge of viewport element</li>
- * <li>**bottom**: distance to the bottom content edge of viewport element</li>
- * <li>**left**: distance to the left content edge of viewport element</li>
- * <li>**right**: distance to the right content edge of viewport element</li>
- * </ul>
- */
- viewportOffset: function(elem, useDocument, includePadding) {
- elem = this.getRawNode(elem);
- includePadding = includePadding !== false ? true : false;
-
- var elemBCR = elem.getBoundingClientRect();
- var offsetBCR = {top: 0, left: 0, bottom: 0, right: 0};
-
- var offsetParent = useDocument ? $document[0].documentElement : this.scrollParent(elem);
- var offsetParentBCR = offsetParent.getBoundingClientRect();
-
- offsetBCR.top = offsetParentBCR.top + offsetParent.clientTop;
- offsetBCR.left = offsetParentBCR.left + offsetParent.clientLeft;
- if (offsetParent === $document[0].documentElement) {
- offsetBCR.top += $window.pageYOffset;
- offsetBCR.left += $window.pageXOffset;
- }
- offsetBCR.bottom = offsetBCR.top + offsetParent.clientHeight;
- offsetBCR.right = offsetBCR.left + offsetParent.clientWidth;
-
- if (includePadding) {
- var offsetParentStyle = $window.getComputedStyle(offsetParent);
- offsetBCR.top += this.parseStyle(offsetParentStyle.paddingTop);
- offsetBCR.bottom -= this.parseStyle(offsetParentStyle.paddingBottom);
- offsetBCR.left += this.parseStyle(offsetParentStyle.paddingLeft);
- offsetBCR.right -= this.parseStyle(offsetParentStyle.paddingRight);
- }
-
- return {
- top: Math.round(elemBCR.top - offsetBCR.top),
- bottom: Math.round(offsetBCR.bottom - elemBCR.bottom),
- left: Math.round(elemBCR.left - offsetBCR.left),
- right: Math.round(offsetBCR.right - elemBCR.right)
- };
- },
-
- /**
- * Provides an array of placement values parsed from a placement string.
- * Along with the 'auto' indicator, supported placement strings are:
- * <ul>
- * <li>top: element on top, horizontally centered on host element.</li>
- * <li>top-left: element on top, left edge aligned with host element left edge.</li>
- * <li>top-right: element on top, lerightft edge aligned with host element right edge.</li>
- * <li>bottom: element on bottom, horizontally centered on host element.</li>
- * <li>bottom-left: element on bottom, left edge aligned with host element left edge.</li>
- * <li>bottom-right: element on bottom, right edge aligned with host element right edge.</li>
- * <li>left: element on left, vertically centered on host element.</li>
- * <li>left-top: element on left, top edge aligned with host element top edge.</li>
- * <li>left-bottom: element on left, bottom edge aligned with host element bottom edge.</li>
- * <li>right: element on right, vertically centered on host element.</li>
- * <li>right-top: element on right, top edge aligned with host element top edge.</li>
- * <li>right-bottom: element on right, bottom edge aligned with host element bottom edge.</li>
- * </ul>
- * A placement string with an 'auto' indicator is expected to be
- * space separated from the placement, i.e: 'auto bottom-left' If
- * the primary and secondary placement values do not match 'top,
- * bottom, left, right' then 'top' will be the primary placement and
- * 'center' will be the secondary placement. If 'auto' is passed, true
- * will be returned as the 3rd value of the array.
- *
- * @param {string} placement - The placement string to parse.
- *
- * @returns {array} An array with the following values
- * <ul>
- * <li>**[0]**: The primary placement.</li>
- * <li>**[1]**: The secondary placement.</li>
- * <li>**[2]**: If auto is passed: true, else undefined.</li>
- * </ul>
- */
- parsePlacement: function(placement) {
- var autoPlace = PLACEMENT_REGEX.auto.test(placement);
- if (autoPlace) {
- placement = placement.replace(PLACEMENT_REGEX.auto, '');
- }
-
- placement = placement.split('-');
-
- placement[0] = placement[0] || 'top';
- if (!PLACEMENT_REGEX.primary.test(placement[0])) {
- placement[0] = 'top';
- }
-
- placement[1] = placement[1] || 'center';
- if (!PLACEMENT_REGEX.secondary.test(placement[1])) {
- placement[1] = 'center';
- }
-
- if (autoPlace) {
- placement[2] = true;
- } else {
- placement[2] = false;
- }
-
- return placement;
- },
-
- /**
- * Provides coordinates for an element to be positioned relative to
- * another element. Passing 'auto' as part of the placement parameter
- * will enable smart placement - where the element fits. i.e:
- * 'auto left-top' will check to see if there is enough space to the left
- * of the hostElem to fit the targetElem, if not place right (same for secondary
- * top placement). Available space is calculated using the viewportOffset
- * function.
- *
- * @param {element} hostElem - The element to position against.
- * @param {element} targetElem - The element to position.
- * @param {string=} [placement=top] - The placement for the targetElem,
- * default is 'top'. 'center' is assumed as secondary placement for
- * 'top', 'left', 'right', and 'bottom' placements. Available placements are:
- * <ul>
- * <li>top</li>
- * <li>top-right</li>
- * <li>top-left</li>
- * <li>bottom</li>
- * <li>bottom-left</li>
- * <li>bottom-right</li>
- * <li>left</li>
- * <li>left-top</li>
- * <li>left-bottom</li>
- * <li>right</li>
- * <li>right-top</li>
- * <li>right-bottom</li>
- * </ul>
- * @param {boolean=} [appendToBody=false] - Should the top and left values returned
- * be calculated from the body element, default is false.
- *
- * @returns {object} An object with the following properties:
- * <ul>
- * <li>**top**: Value for targetElem top.</li>
- * <li>**left**: Value for targetElem left.</li>
- * <li>**placement**: The resolved placement.</li>
- * </ul>
- */
- positionElements: function(hostElem, targetElem, placement, appendToBody) {
- hostElem = this.getRawNode(hostElem);
- targetElem = this.getRawNode(targetElem);
-
- // need to read from prop to support tests.
- var targetWidth = angular.isDefined(targetElem.offsetWidth) ? targetElem.offsetWidth : targetElem.prop('offsetWidth');
- var targetHeight = angular.isDefined(targetElem.offsetHeight) ? targetElem.offsetHeight : targetElem.prop('offsetHeight');
-
- placement = this.parsePlacement(placement);
-
- var hostElemPos = appendToBody ? this.offset(hostElem) : this.position(hostElem);
- var targetElemPos = {top: 0, left: 0, placement: ''};
-
- if (placement[2]) {
- var viewportOffset = this.viewportOffset(hostElem, appendToBody);
-
- var targetElemStyle = $window.getComputedStyle(targetElem);
- var adjustedSize = {
- width: targetWidth + Math.round(Math.abs(this.parseStyle(targetElemStyle.marginLeft) + this.parseStyle(targetElemStyle.marginRight))),
- height: targetHeight + Math.round(Math.abs(this.parseStyle(targetElemStyle.marginTop) + this.parseStyle(targetElemStyle.marginBottom)))
- };
-
- placement[0] = placement[0] === 'top' && adjustedSize.height > viewportOffset.top && adjustedSize.height <= viewportOffset.bottom ? 'bottom' :
- placement[0] === 'bottom' && adjustedSize.height > viewportOffset.bottom && adjustedSize.height <= viewportOffset.top ? 'top' :
- placement[0] === 'left' && adjustedSize.width > viewportOffset.left && adjustedSize.width <= viewportOffset.right ? 'right' :
- placement[0] === 'right' && adjustedSize.width > viewportOffset.right && adjustedSize.width <= viewportOffset.left ? 'left' :
- placement[0];
-
- placement[1] = placement[1] === 'top' && adjustedSize.height - hostElemPos.height > viewportOffset.bottom && adjustedSize.height - hostElemPos.height <= viewportOffset.top ? 'bottom' :
- placement[1] === 'bottom' && adjustedSize.height - hostElemPos.height > viewportOffset.top && adjustedSize.height - hostElemPos.height <= viewportOffset.bottom ? 'top' :
- placement[1] === 'left' && adjustedSize.width - hostElemPos.width > viewportOffset.right && adjustedSize.width - hostElemPos.width <= viewportOffset.left ? 'right' :
- placement[1] === 'right' && adjustedSize.width - hostElemPos.width > viewportOffset.left && adjustedSize.width - hostElemPos.width <= viewportOffset.right ? 'left' :
- placement[1];
-
- if (placement[1] === 'center') {
- if (PLACEMENT_REGEX.vertical.test(placement[0])) {
- var xOverflow = hostElemPos.width / 2 - targetWidth / 2;
- if (viewportOffset.left + xOverflow < 0 && adjustedSize.width - hostElemPos.width <= viewportOffset.right) {
- placement[1] = 'left';
- } else if (viewportOffset.right + xOverflow < 0 && adjustedSize.width - hostElemPos.width <= viewportOffset.left) {
- placement[1] = 'right';
- }
- } else {
- var yOverflow = hostElemPos.height / 2 - adjustedSize.height / 2;
- if (viewportOffset.top + yOverflow < 0 && adjustedSize.height - hostElemPos.height <= viewportOffset.bottom) {
- placement[1] = 'top';
- } else if (viewportOffset.bottom + yOverflow < 0 && adjustedSize.height - hostElemPos.height <= viewportOffset.top) {
- placement[1] = 'bottom';
- }
- }
- }
- }
-
- switch (placement[0]) {
- case 'top':
- targetElemPos.top = hostElemPos.top - targetHeight;
- break;
- case 'bottom':
- targetElemPos.top = hostElemPos.top + hostElemPos.height;
- break;
- case 'left':
- targetElemPos.left = hostElemPos.left - targetWidth;
- break;
- case 'right':
- targetElemPos.left = hostElemPos.left + hostElemPos.width;
- break;
- }
-
- switch (placement[1]) {
- case 'top':
- targetElemPos.top = hostElemPos.top;
- break;
- case 'bottom':
- targetElemPos.top = hostElemPos.top + hostElemPos.height - targetHeight;
- break;
- case 'left':
- targetElemPos.left = hostElemPos.left;
- break;
- case 'right':
- targetElemPos.left = hostElemPos.left + hostElemPos.width - targetWidth;
- break;
- case 'center':
- if (PLACEMENT_REGEX.vertical.test(placement[0])) {
- targetElemPos.left = hostElemPos.left + hostElemPos.width / 2 - targetWidth / 2;
- } else {
- targetElemPos.top = hostElemPos.top + hostElemPos.height / 2 - targetHeight / 2;
- }
- break;
- }
-
- targetElemPos.top = Math.round(targetElemPos.top);
- targetElemPos.left = Math.round(targetElemPos.left);
- targetElemPos.placement = placement[1] === 'center' ? placement[0] : placement[0] + '-' + placement[1];
-
- return targetElemPos;
- },
-
- /**
- * Provides a way to adjust the top positioning after first
- * render to correctly align element to top after content
- * rendering causes resized element height
- *
- * @param {array} placementClasses - The array of strings of classes
- * element should have.
- * @param {object} containerPosition - The object with container
- * position information
- * @param {number} initialHeight - The initial height for the elem.
- * @param {number} currentHeight - The current height for the elem.
- */
- adjustTop: function(placementClasses, containerPosition, initialHeight, currentHeight) {
- if (placementClasses.indexOf('top') !== -1 && initialHeight !== currentHeight) {
- return {
- top: containerPosition.top - currentHeight + 'px'
- };
- }
- },
-
- /**
- * Provides a way for positioning tooltip & dropdown
- * arrows when using placement options beyond the standard
- * left, right, top, or bottom.
- *
- * @param {element} elem - The tooltip/dropdown element.
- * @param {string} placement - The placement for the elem.
- */
- positionArrow: function(elem, placement) {
- elem = this.getRawNode(elem);
-
- var innerElem = elem.querySelector('.tooltip-inner, .popover-inner');
- if (!innerElem) {
- return;
- }
-
- var isTooltip = angular.element(innerElem).hasClass('tooltip-inner');
-
- var arrowElem = isTooltip ? elem.querySelector('.tooltip-arrow') : elem.querySelector('.arrow');
- if (!arrowElem) {
- return;
- }
-
- var arrowCss = {
- top: '',
- bottom: '',
- left: '',
- right: ''
- };
-
- placement = this.parsePlacement(placement);
- if (placement[1] === 'center') {
- // no adjustment necessary - just reset styles
- angular.element(arrowElem).css(arrowCss);
- return;
- }
-
- var borderProp = 'border-' + placement[0] + '-width';
- var borderWidth = $window.getComputedStyle(arrowElem)[borderProp];
-
- var borderRadiusProp = 'border-';
- if (PLACEMENT_REGEX.vertical.test(placement[0])) {
- borderRadiusProp += placement[0] + '-' + placement[1];
- } else {
- borderRadiusProp += placement[1] + '-' + placement[0];
- }
- borderRadiusProp += '-radius';
- var borderRadius = $window.getComputedStyle(isTooltip ? innerElem : elem)[borderRadiusProp];
-
- switch (placement[0]) {
- case 'top':
- arrowCss.bottom = isTooltip ? '0' : '-' + borderWidth;
- break;
- case 'bottom':
- arrowCss.top = isTooltip ? '0' : '-' + borderWidth;
- break;
- case 'left':
- arrowCss.right = isTooltip ? '0' : '-' + borderWidth;
- break;
- case 'right':
- arrowCss.left = isTooltip ? '0' : '-' + borderWidth;
- break;
- }
-
- arrowCss[placement[1]] = borderRadius;
-
- angular.element(arrowElem).css(arrowCss);
- }
- };
- }]);
-
-angular.module('ui.bootstrap.datepickerPopup', ['ui.bootstrap.datepicker', 'ui.bootstrap.position'])
-
-.value('$datepickerPopupLiteralWarning', true)
-
-.constant('uibDatepickerPopupConfig', {
- altInputFormats: [],
- appendToBody: false,
- clearText: 'Clear',
- closeOnDateSelection: true,
- closeText: 'Done',
- currentText: 'Today',
- datepickerPopup: 'yyyy-MM-dd',
- datepickerPopupTemplateUrl: 'uib/template/datepickerPopup/popup.html',
- datepickerTemplateUrl: 'uib/template/datepicker/datepicker.html',
- html5Types: {
- date: 'yyyy-MM-dd',
- 'datetime-local': 'yyyy-MM-ddTHH:mm:ss.sss',
- 'month': 'yyyy-MM'
- },
- onOpenFocus: true,
- showButtonBar: true,
- placement: 'auto bottom-left'
-})
-
-.controller('UibDatepickerPopupController', ['$scope', '$element', '$attrs', '$compile', '$log', '$parse', '$window', '$document', '$rootScope', '$uibPosition', 'dateFilter', 'uibDateParser', 'uibDatepickerPopupConfig', '$timeout', 'uibDatepickerConfig', '$datepickerPopupLiteralWarning',
-function($scope, $element, $attrs, $compile, $log, $parse, $window, $document, $rootScope, $position, dateFilter, dateParser, datepickerPopupConfig, $timeout, datepickerConfig, $datepickerPopupLiteralWarning) {
- var cache = {},
- isHtml5DateInput = false;
- var dateFormat, closeOnDateSelection, appendToBody, onOpenFocus,
- datepickerPopupTemplateUrl, datepickerTemplateUrl, popupEl, datepickerEl, scrollParentEl,
- ngModel, ngModelOptions, $popup, altInputFormats, watchListeners = [];
-
- this.init = function(_ngModel_) {
- ngModel = _ngModel_;
- ngModelOptions = angular.isObject(_ngModel_.$options) ?
- _ngModel_.$options :
- {
- timezone: null
- };
- closeOnDateSelection = angular.isDefined($attrs.closeOnDateSelection) ?
- $scope.$parent.$eval($attrs.closeOnDateSelection) :
- datepickerPopupConfig.closeOnDateSelection;
- appendToBody = angular.isDefined($attrs.datepickerAppendToBody) ?
- $scope.$parent.$eval($attrs.datepickerAppendToBody) :
- datepickerPopupConfig.appendToBody;
- onOpenFocus = angular.isDefined($attrs.onOpenFocus) ?
- $scope.$parent.$eval($attrs.onOpenFocus) : datepickerPopupConfig.onOpenFocus;
- datepickerPopupTemplateUrl = angular.isDefined($attrs.datepickerPopupTemplateUrl) ?
- $attrs.datepickerPopupTemplateUrl :
- datepickerPopupConfig.datepickerPopupTemplateUrl;
- datepickerTemplateUrl = angular.isDefined($attrs.datepickerTemplateUrl) ?
- $attrs.datepickerTemplateUrl : datepickerPopupConfig.datepickerTemplateUrl;
- altInputFormats = angular.isDefined($attrs.altInputFormats) ?
- $scope.$parent.$eval($attrs.altInputFormats) :
- datepickerPopupConfig.altInputFormats;
-
- $scope.showButtonBar = angular.isDefined($attrs.showButtonBar) ?
- $scope.$parent.$eval($attrs.showButtonBar) :
- datepickerPopupConfig.showButtonBar;
-
- if (datepickerPopupConfig.html5Types[$attrs.type]) {
- dateFormat = datepickerPopupConfig.html5Types[$attrs.type];
- isHtml5DateInput = true;
- } else {
- dateFormat = $attrs.uibDatepickerPopup || datepickerPopupConfig.datepickerPopup;
- $attrs.$observe('uibDatepickerPopup', function(value, oldValue) {
- var newDateFormat = value || datepickerPopupConfig.datepickerPopup;
- // Invalidate the $modelValue to ensure that formatters re-run
- // FIXME: Refactor when PR is merged: https://github.com/angular/angular.js/pull/10764
- if (newDateFormat !== dateFormat) {
- dateFormat = newDateFormat;
- ngModel.$modelValue = null;
-
- if (!dateFormat) {
- throw new Error('uibDatepickerPopup must have a date format specified.');
- }
- }
- });
- }
-
- if (!dateFormat) {
- throw new Error('uibDatepickerPopup must have a date format specified.');
- }
-
- if (isHtml5DateInput && $attrs.uibDatepickerPopup) {
- throw new Error('HTML5 date input types do not support custom formats.');
- }
-
- // popup element used to display calendar
- popupEl = angular.element('<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>');
-
- popupEl.attr({
- 'ng-model': 'date',
- 'ng-change': 'dateSelection(date)',
- 'template-url': datepickerPopupTemplateUrl
- });
-
- // datepicker element
- datepickerEl = angular.element(popupEl.children()[0]);
- datepickerEl.attr('template-url', datepickerTemplateUrl);
-
- if (!$scope.datepickerOptions) {
- $scope.datepickerOptions = {};
- }
-
- if (isHtml5DateInput) {
- if ($attrs.type === 'month') {
- $scope.datepickerOptions.datepickerMode = 'month';
- $scope.datepickerOptions.minMode = 'month';
- }
- }
-
- datepickerEl.attr('datepicker-options', 'datepickerOptions');
-
- if (!isHtml5DateInput) {
- // Internal API to maintain the correct ng-invalid-[key] class
- ngModel.$$parserName = 'date';
- ngModel.$validators.date = validator;
- ngModel.$parsers.unshift(parseDate);
- ngModel.$formatters.push(function(value) {
- if (ngModel.$isEmpty(value)) {
- $scope.date = value;
- return value;
- }
-
- if (angular.isNumber(value)) {
- value = new Date(value);
- }
-
- $scope.date = dateParser.fromTimezone(value, ngModelOptions.timezone);
-
- return dateParser.filter($scope.date, dateFormat);
- });
- } else {
- ngModel.$formatters.push(function(value) {
- $scope.date = dateParser.fromTimezone(value, ngModelOptions.timezone);
- return value;
- });
- }
-
- // Detect changes in the view from the text box
- ngModel.$viewChangeListeners.push(function() {
- $scope.date = parseDateString(ngModel.$viewValue);
- });
-
- $element.on('keydown', inputKeydownBind);
-
- $popup = $compile(popupEl)($scope);
- // Prevent jQuery cache memory leak (template is now redundant after linking)
- popupEl.remove();
-
- if (appendToBody) {
- $document.find('body').append($popup);
- } else {
- $element.after($popup);
- }
-
- $scope.$on('$destroy', function() {
- if ($scope.isOpen === true) {
- if (!$rootScope.$$phase) {
- $scope.$apply(function() {
- $scope.isOpen = false;
- });
- }
- }
-
- $popup.remove();
- $element.off('keydown', inputKeydownBind);
- $document.off('click', documentClickBind);
- if (scrollParentEl) {
- scrollParentEl.off('scroll', positionPopup);
- }
- angular.element($window).off('resize', positionPopup);
-
- //Clear all watch listeners on destroy
- while (watchListeners.length) {
- watchListeners.shift()();
- }
- });
- };
-
- $scope.getText = function(key) {
- return $scope[key + 'Text'] || datepickerPopupConfig[key + 'Text'];
- };
-
- $scope.isDisabled = function(date) {
- if (date === 'today') {
- date = dateParser.fromTimezone(new Date(), ngModelOptions.timezone);
- }
-
- var dates = {};
- angular.forEach(['minDate', 'maxDate'], function(key) {
- if (!$scope.datepickerOptions[key]) {
- dates[key] = null;
- } else if (angular.isDate($scope.datepickerOptions[key])) {
- dates[key] = new Date($scope.datepickerOptions[key]);
- } else {
- if ($datepickerPopupLiteralWarning) {
- $log.warn('Literal date support has been deprecated, please switch to date object usage');
- }
-
- dates[key] = new Date(dateFilter($scope.datepickerOptions[key], 'medium'));
- }
- });
-
- return $scope.datepickerOptions &&
- dates.minDate && $scope.compare(date, dates.minDate) < 0 ||
- dates.maxDate && $scope.compare(date, dates.maxDate) > 0;
- };
-
- $scope.compare = function(date1, date2) {
- return new Date(date1.getFullYear(), date1.getMonth(), date1.getDate()) - new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
- };
-
- // Inner change
- $scope.dateSelection = function(dt) {
- $scope.date = dt;
- var date = $scope.date ? dateParser.filter($scope.date, dateFormat) : null; // Setting to NULL is necessary for form validators to function
- $element.val(date);
- ngModel.$setViewValue(date);
-
- if (closeOnDateSelection) {
- $scope.isOpen = false;
- $element[0].focus();
- }
- };
-
- $scope.keydown = function(evt) {
- if (evt.which === 27) {
- evt.stopPropagation();
- $scope.isOpen = false;
- $element[0].focus();
- }
- };
-
- $scope.select = function(date, evt) {
- evt.stopPropagation();
-
- if (date === 'today') {
- var today = new Date();
- if (angular.isDate($scope.date)) {
- date = new Date($scope.date);
- date.setFullYear(today.getFullYear(), today.getMonth(), today.getDate());
- } else {
- date = dateParser.fromTimezone(today, ngModelOptions.timezone);
- date.setHours(0, 0, 0, 0);
- }
- }
- $scope.dateSelection(date);
- };
-
- $scope.close = function(evt) {
- evt.stopPropagation();
-
- $scope.isOpen = false;
- $element[0].focus();
- };
-
- $scope.disabled = angular.isDefined($attrs.disabled) || false;
- if ($attrs.ngDisabled) {
- watchListeners.push($scope.$parent.$watch($parse($attrs.ngDisabled), function(disabled) {
- $scope.disabled = disabled;
- }));
- }
-
- $scope.$watch('isOpen', function(value) {
- if (value) {
- if (!$scope.disabled) {
- $timeout(function() {
- positionPopup();
-
- if (onOpenFocus) {
- $scope.$broadcast('uib:datepicker.focus');
- }
-
- $document.on('click', documentClickBind);
-
- var placement = $attrs.popupPlacement ? $attrs.popupPlacement : datepickerPopupConfig.placement;
- if (appendToBody || $position.parsePlacement(placement)[2]) {
- scrollParentEl = scrollParentEl || angular.element($position.scrollParent($element));
- if (scrollParentEl) {
- scrollParentEl.on('scroll', positionPopup);
- }
- } else {
- scrollParentEl = null;
- }
-
- angular.element($window).on('resize', positionPopup);
- }, 0, false);
- } else {
- $scope.isOpen = false;
- }
- } else {
- $document.off('click', documentClickBind);
- if (scrollParentEl) {
- scrollParentEl.off('scroll', positionPopup);
- }
- angular.element($window).off('resize', positionPopup);
- }
- });
-
- function cameltoDash(string) {
- return string.replace(/([A-Z])/g, function($1) { return '-' + $1.toLowerCase(); });
- }
-
- function parseDateString(viewValue) {
- var date = dateParser.parse(viewValue, dateFormat, $scope.date);
- if (isNaN(date)) {
- for (var i = 0; i < altInputFormats.length; i++) {
- date = dateParser.parse(viewValue, altInputFormats[i], $scope.date);
- if (!isNaN(date)) {
- return date;
- }
- }
- }
- return date;
- }
-
- function parseDate(viewValue) {
- if (angular.isNumber(viewValue)) {
- // presumably timestamp to date object
- viewValue = new Date(viewValue);
- }
-
- if (!viewValue) {
- return null;
- }
-
- if (angular.isDate(viewValue) && !isNaN(viewValue)) {
- return viewValue;
- }
-
- if (angular.isString(viewValue)) {
- var date = parseDateString(viewValue);
- if (!isNaN(date)) {
- return dateParser.toTimezone(date, ngModelOptions.timezone);
- }
- }
-
- return ngModel.$options && ngModel.$options.allowInvalid ? viewValue : undefined;
- }
-
- function validator(modelValue, viewValue) {
- var value = modelValue || viewValue;
-
- if (!$attrs.ngRequired && !value) {
- return true;
- }
-
- if (angular.isNumber(value)) {
- value = new Date(value);
- }
-
- if (!value) {
- return true;
- }
-
- if (angular.isDate(value) && !isNaN(value)) {
- return true;
- }
-
- if (angular.isString(value)) {
- return !isNaN(parseDateString(value));
- }
-
- return false;
- }
-
- function documentClickBind(event) {
- if (!$scope.isOpen && $scope.disabled) {
- return;
- }
-
- var popup = $popup[0];
- var dpContainsTarget = $element[0].contains(event.target);
- // The popup node may not be an element node
- // In some browsers (IE) only element nodes have the 'contains' function
- var popupContainsTarget = popup.contains !== undefined && popup.contains(event.target);
- if ($scope.isOpen && !(dpContainsTarget || popupContainsTarget)) {
- $scope.$apply(function() {
- $scope.isOpen = false;
- });
- }
- }
-
- function inputKeydownBind(evt) {
- if (evt.which === 27 && $scope.isOpen) {
- evt.preventDefault();
- evt.stopPropagation();
- $scope.$apply(function() {
- $scope.isOpen = false;
- });
- $element[0].focus();
- } else if (evt.which === 40 && !$scope.isOpen) {
- evt.preventDefault();
- evt.stopPropagation();
- $scope.$apply(function() {
- $scope.isOpen = true;
- });
- }
- }
-
- function positionPopup() {
- if ($scope.isOpen) {
- var dpElement = angular.element($popup[0].querySelector('.uib-datepicker-popup'));
- var placement = $attrs.popupPlacement ? $attrs.popupPlacement : datepickerPopupConfig.placement;
- var position = $position.positionElements($element, dpElement, placement, appendToBody);
- dpElement.css({top: position.top + 'px', left: position.left + 'px'});
- if (dpElement.hasClass('uib-position-measure')) {
- dpElement.removeClass('uib-position-measure');
- }
- }
- }
-
- $scope.$on('uib:datepicker.mode', function() {
- $timeout(positionPopup, 0, false);
- });
-}])
-
-.directive('uibDatepickerPopup', function() {
- return {
- require: ['ngModel', 'uibDatepickerPopup'],
- controller: 'UibDatepickerPopupController',
- scope: {
- datepickerOptions: '=?',
- isOpen: '=?',
- currentText: '@',
- clearText: '@',
- closeText: '@'
- },
- link: function(scope, element, attrs, ctrls) {
- var ngModel = ctrls[0],
- ctrl = ctrls[1];
-
- ctrl.init(ngModel);
- }
- };
-})
-
-.directive('uibDatepickerPopupWrap', function() {
- return {
- restrict: 'A',
- transclude: true,
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/datepickerPopup/popup.html';
- }
- };
-});
-
-angular.module('ui.bootstrap.debounce', [])
-/**
- * A helper, internal service that debounces a function
- */
- .factory('$$debounce', ['$timeout', function($timeout) {
- return function(callback, debounceTime) {
- var timeoutPromise;
-
- return function() {
- var self = this;
- var args = Array.prototype.slice.call(arguments);
- if (timeoutPromise) {
- $timeout.cancel(timeoutPromise);
- }
-
- timeoutPromise = $timeout(function() {
- callback.apply(self, args);
- }, debounceTime);
- };
- };
- }]);
-
-angular.module('ui.bootstrap.multiMap', [])
-/**
- * A helper, internal data structure that stores all references attached to key
- */
- .factory('$$multiMap', function() {
- return {
- createNew: function() {
- var map = {};
-
- return {
- entries: function() {
- return Object.keys(map).map(function(key) {
- return {
- key: key,
- value: map[key]
- };
- });
- },
- get: function(key) {
- return map[key];
- },
- hasKey: function(key) {
- return !!map[key];
- },
- keys: function() {
- return Object.keys(map);
- },
- put: function(key, value) {
- if (!map[key]) {
- map[key] = [];
- }
-
- map[key].push(value);
- },
- remove: function(key, value) {
- var values = map[key];
-
- if (!values) {
- return;
- }
-
- var idx = values.indexOf(value);
-
- if (idx !== -1) {
- values.splice(idx, 1);
- }
-
- if (!values.length) {
- delete map[key];
- }
- }
- };
- }
- };
- });
-
-angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.multiMap', 'ui.bootstrap.position'])
-
-.constant('uibDropdownConfig', {
- appendToOpenClass: 'uib-dropdown-open',
- openClass: 'open'
-})
-
-.service('uibDropdownService', ['$document', '$rootScope', '$$multiMap', function($document, $rootScope, $$multiMap) {
- var openScope = null;
- var openedContainers = $$multiMap.createNew();
-
- this.isOnlyOpen = function(dropdownScope, appendTo) {
- var openedDropdowns = openedContainers.get(appendTo);
- if (openedDropdowns) {
- var openDropdown = openedDropdowns.reduce(function(toClose, dropdown) {
- if (dropdown.scope === dropdownScope) {
- return dropdown;
- }
-
- return toClose;
- }, {});
- if (openDropdown) {
- return openedDropdowns.length === 1;
- }
- }
-
- return false;
- };
-
- this.open = function(dropdownScope, element, appendTo) {
- if (!openScope) {
- $document.on('click', closeDropdown);
- }
-
- if (openScope && openScope !== dropdownScope) {
- openScope.isOpen = false;
- }
-
- openScope = dropdownScope;
-
- if (!appendTo) {
- return;
- }
-
- var openedDropdowns = openedContainers.get(appendTo);
- if (openedDropdowns) {
- var openedScopes = openedDropdowns.map(function(dropdown) {
- return dropdown.scope;
- });
- if (openedScopes.indexOf(dropdownScope) === -1) {
- openedContainers.put(appendTo, {
- scope: dropdownScope
- });
- }
- } else {
- openedContainers.put(appendTo, {
- scope: dropdownScope
- });
- }
- };
-
- this.close = function(dropdownScope, element, appendTo) {
- if (openScope === dropdownScope) {
- $document.off('click', closeDropdown);
- $document.off('keydown', this.keybindFilter);
- openScope = null;
- }
-
- if (!appendTo) {
- return;
- }
-
- var openedDropdowns = openedContainers.get(appendTo);
- if (openedDropdowns) {
- var dropdownToClose = openedDropdowns.reduce(function(toClose, dropdown) {
- if (dropdown.scope === dropdownScope) {
- return dropdown;
- }
-
- return toClose;
- }, {});
- if (dropdownToClose) {
- openedContainers.remove(appendTo, dropdownToClose);
- }
- }
- };
-
- var closeDropdown = function(evt) {
- // This method may still be called during the same mouse event that
- // unbound this event handler. So check openScope before proceeding.
- if (!openScope) { return; }
-
- if (evt && openScope.getAutoClose() === 'disabled') { return; }
-
- if (evt && evt.which === 3) { return; }
-
- var toggleElement = openScope.getToggleElement();
- if (evt && toggleElement && toggleElement[0].contains(evt.target)) {
- return;
- }
-
- var dropdownElement = openScope.getDropdownElement();
- if (evt && openScope.getAutoClose() === 'outsideClick' &&
- dropdownElement && dropdownElement[0].contains(evt.target)) {
- return;
- }
-
- openScope.focusToggleElement();
- openScope.isOpen = false;
-
- if (!$rootScope.$$phase) {
- openScope.$apply();
- }
- };
-
- this.keybindFilter = function(evt) {
- if (!openScope) {
- // see this.close as ESC could have been pressed which kills the scope so we can not proceed
- return;
- }
-
- var dropdownElement = openScope.getDropdownElement();
- var toggleElement = openScope.getToggleElement();
- var dropdownElementTargeted = dropdownElement && dropdownElement[0].contains(evt.target);
- var toggleElementTargeted = toggleElement && toggleElement[0].contains(evt.target);
- if (evt.which === 27) {
- evt.stopPropagation();
- openScope.focusToggleElement();
- closeDropdown();
- } else if (openScope.isKeynavEnabled() && [38, 40].indexOf(evt.which) !== -1 && openScope.isOpen && (dropdownElementTargeted || toggleElementTargeted)) {
- evt.preventDefault();
- evt.stopPropagation();
- openScope.focusDropdownEntry(evt.which);
- }
- };
-}])
-
-.controller('UibDropdownController', ['$scope', '$element', '$attrs', '$parse', 'uibDropdownConfig', 'uibDropdownService', '$animate', '$uibPosition', '$document', '$compile', '$templateRequest', function($scope, $element, $attrs, $parse, dropdownConfig, uibDropdownService, $animate, $position, $document, $compile, $templateRequest) {
- var self = this,
- scope = $scope.$new(), // create a child scope so we are not polluting original one
- templateScope,
- appendToOpenClass = dropdownConfig.appendToOpenClass,
- openClass = dropdownConfig.openClass,
- getIsOpen,
- setIsOpen = angular.noop,
- toggleInvoker = $attrs.onToggle ? $parse($attrs.onToggle) : angular.noop,
- appendToBody = false,
- appendTo = null,
- keynavEnabled = false,
- selectedOption = null,
- body = $document.find('body');
-
- $element.addClass('dropdown');
-
- this.init = function() {
- if ($attrs.isOpen) {
- getIsOpen = $parse($attrs.isOpen);
- setIsOpen = getIsOpen.assign;
-
- $scope.$watch(getIsOpen, function(value) {
- scope.isOpen = !!value;
- });
- }
-
- if (angular.isDefined($attrs.dropdownAppendTo)) {
- var appendToEl = $parse($attrs.dropdownAppendTo)(scope);
- if (appendToEl) {
- appendTo = angular.element(appendToEl);
- }
- }
-
- appendToBody = angular.isDefined($attrs.dropdownAppendToBody);
- keynavEnabled = angular.isDefined($attrs.keyboardNav);
-
- if (appendToBody && !appendTo) {
- appendTo = body;
- }
-
- if (appendTo && self.dropdownMenu) {
- appendTo.append(self.dropdownMenu);
- $element.on('$destroy', function handleDestroyEvent() {
- self.dropdownMenu.remove();
- });
- }
- };
-
- this.toggle = function(open) {
- scope.isOpen = arguments.length ? !!open : !scope.isOpen;
- if (angular.isFunction(setIsOpen)) {
- setIsOpen(scope, scope.isOpen);
- }
-
- return scope.isOpen;
- };
-
- // Allow other directives to watch status
- this.isOpen = function() {
- return scope.isOpen;
- };
-
- scope.getToggleElement = function() {
- return self.toggleElement;
- };
-
- scope.getAutoClose = function() {
- return $attrs.autoClose || 'always'; //or 'outsideClick' or 'disabled'
- };
-
- scope.getElement = function() {
- return $element;
- };
-
- scope.isKeynavEnabled = function() {
- return keynavEnabled;
- };
-
- scope.focusDropdownEntry = function(keyCode) {
- var elems = self.dropdownMenu ? //If append to body is used.
- angular.element(self.dropdownMenu).find('a') :
- $element.find('ul').eq(0).find('a');
-
- switch (keyCode) {
- case 40: {
- if (!angular.isNumber(self.selectedOption)) {
- self.selectedOption = 0;
- } else {
- self.selectedOption = self.selectedOption === elems.length - 1 ?
- self.selectedOption :
- self.selectedOption + 1;
- }
- break;
- }
- case 38: {
- if (!angular.isNumber(self.selectedOption)) {
- self.selectedOption = elems.length - 1;
- } else {
- self.selectedOption = self.selectedOption === 0 ?
- 0 : self.selectedOption - 1;
- }
- break;
- }
- }
- elems[self.selectedOption].focus();
- };
-
- scope.getDropdownElement = function() {
- return self.dropdownMenu;
- };
-
- scope.focusToggleElement = function() {
- if (self.toggleElement) {
- self.toggleElement[0].focus();
- }
- };
-
- scope.$watch('isOpen', function(isOpen, wasOpen) {
- if (appendTo && self.dropdownMenu) {
- var pos = $position.positionElements($element, self.dropdownMenu, 'bottom-left', true),
- css,
- rightalign,
- scrollbarPadding,
- scrollbarWidth = 0;
-
- css = {
- top: pos.top + 'px',
- display: isOpen ? 'block' : 'none'
- };
-
- rightalign = self.dropdownMenu.hasClass('dropdown-menu-right');
- if (!rightalign) {
- css.left = pos.left + 'px';
- css.right = 'auto';
- } else {
- css.left = 'auto';
- scrollbarPadding = $position.scrollbarPadding(appendTo);
-
- if (scrollbarPadding.heightOverflow && scrollbarPadding.scrollbarWidth) {
- scrollbarWidth = scrollbarPadding.scrollbarWidth;
- }
-
- css.right = window.innerWidth - scrollbarWidth -
- (pos.left + $element.prop('offsetWidth')) + 'px';
- }
-
- // Need to adjust our positioning to be relative to the appendTo container
- // if it's not the body element
- if (!appendToBody) {
- var appendOffset = $position.offset(appendTo);
-
- css.top = pos.top - appendOffset.top + 'px';
-
- if (!rightalign) {
- css.left = pos.left - appendOffset.left + 'px';
- } else {
- css.right = window.innerWidth -
- (pos.left - appendOffset.left + $element.prop('offsetWidth')) + 'px';
- }
- }
-
- self.dropdownMenu.css(css);
- }
-
- var openContainer = appendTo ? appendTo : $element;
- var dropdownOpenClass = appendTo ? appendToOpenClass : openClass;
- var hasOpenClass = openContainer.hasClass(dropdownOpenClass);
- var isOnlyOpen = uibDropdownService.isOnlyOpen($scope, appendTo);
-
- if (hasOpenClass === !isOpen) {
- var toggleClass;
- if (appendTo) {
- toggleClass = !isOnlyOpen ? 'addClass' : 'removeClass';
- } else {
- toggleClass = isOpen ? 'addClass' : 'removeClass';
- }
- $animate[toggleClass](openContainer, dropdownOpenClass).then(function() {
- if (angular.isDefined(isOpen) && isOpen !== wasOpen) {
- toggleInvoker($scope, { open: !!isOpen });
- }
- });
- }
-
- if (isOpen) {
- if (self.dropdownMenuTemplateUrl) {
- $templateRequest(self.dropdownMenuTemplateUrl).then(function(tplContent) {
- templateScope = scope.$new();
- $compile(tplContent.trim())(templateScope, function(dropdownElement) {
- var newEl = dropdownElement;
- self.dropdownMenu.replaceWith(newEl);
- self.dropdownMenu = newEl;
- $document.on('keydown', uibDropdownService.keybindFilter);
- });
- });
- } else {
- $document.on('keydown', uibDropdownService.keybindFilter);
- }
-
- scope.focusToggleElement();
- uibDropdownService.open(scope, $element, appendTo);
- } else {
- uibDropdownService.close(scope, $element, appendTo);
- if (self.dropdownMenuTemplateUrl) {
- if (templateScope) {
- templateScope.$destroy();
- }
- var newEl = angular.element('<ul class="dropdown-menu"></ul>');
- self.dropdownMenu.replaceWith(newEl);
- self.dropdownMenu = newEl;
- }
-
- self.selectedOption = null;
- }
-
- if (angular.isFunction(setIsOpen)) {
- setIsOpen($scope, isOpen);
- }
- });
-}])
-
-.directive('uibDropdown', function() {
- return {
- controller: 'UibDropdownController',
- link: function(scope, element, attrs, dropdownCtrl) {
- dropdownCtrl.init();
- }
- };
-})
-
-.directive('uibDropdownMenu', function() {
- return {
- restrict: 'A',
- require: '?^uibDropdown',
- link: function(scope, element, attrs, dropdownCtrl) {
- if (!dropdownCtrl || angular.isDefined(attrs.dropdownNested)) {
- return;
- }
-
- element.addClass('dropdown-menu');
-
- var tplUrl = attrs.templateUrl;
- if (tplUrl) {
- dropdownCtrl.dropdownMenuTemplateUrl = tplUrl;
- }
-
- if (!dropdownCtrl.dropdownMenu) {
- dropdownCtrl.dropdownMenu = element;
- }
- }
- };
-})
-
-.directive('uibDropdownToggle', function() {
- return {
- require: '?^uibDropdown',
- link: function(scope, element, attrs, dropdownCtrl) {
- if (!dropdownCtrl) {
- return;
- }
-
- element.addClass('dropdown-toggle');
-
- dropdownCtrl.toggleElement = element;
-
- var toggleDropdown = function(event) {
- event.preventDefault();
-
- if (!element.hasClass('disabled') && !attrs.disabled) {
- scope.$apply(function() {
- dropdownCtrl.toggle();
- });
- }
- };
-
- element.on('click', toggleDropdown);
-
- // WAI-ARIA
- element.attr({ 'aria-haspopup': true, 'aria-expanded': false });
- scope.$watch(dropdownCtrl.isOpen, function(isOpen) {
- element.attr('aria-expanded', !!isOpen);
- });
-
- scope.$on('$destroy', function() {
- element.off('click', toggleDropdown);
- });
- }
- };
-});
-
-angular.module('ui.bootstrap.stackedMap', [])
-/**
- * A helper, internal data structure that acts as a map but also allows getting / removing
- * elements in the LIFO order
- */
- .factory('$$stackedMap', function() {
- return {
- createNew: function() {
- var stack = [];
-
- return {
- add: function(key, value) {
- stack.push({
- key: key,
- value: value
- });
- },
- get: function(key) {
- for (var i = 0; i < stack.length; i++) {
- if (key === stack[i].key) {
- return stack[i];
- }
- }
- },
- keys: function() {
- var keys = [];
- for (var i = 0; i < stack.length; i++) {
- keys.push(stack[i].key);
- }
- return keys;
- },
- top: function() {
- return stack[stack.length - 1];
- },
- remove: function(key) {
- var idx = -1;
- for (var i = 0; i < stack.length; i++) {
- if (key === stack[i].key) {
- idx = i;
- break;
- }
- }
- return stack.splice(idx, 1)[0];
- },
- removeTop: function() {
- return stack.pop();
- },
- length: function() {
- return stack.length;
- }
- };
- }
- };
- });
-angular.module('ui.bootstrap.modal', ['ui.bootstrap.multiMap', 'ui.bootstrap.stackedMap', 'ui.bootstrap.position'])
-/**
- * Pluggable resolve mechanism for the modal resolve resolution
- * Supports UI Router's $resolve service
- */
- .provider('$uibResolve', function() {
- var resolve = this;
- this.resolver = null;
-
- this.setResolver = function(resolver) {
- this.resolver = resolver;
- };
-
- this.$get = ['$injector', '$q', function($injector, $q) {
- var resolver = resolve.resolver ? $injector.get(resolve.resolver) : null;
- return {
- resolve: function(invocables, locals, parent, self) {
- if (resolver) {
- return resolver.resolve(invocables, locals, parent, self);
- }
-
- var promises = [];
-
- angular.forEach(invocables, function(value) {
- if (angular.isFunction(value) || angular.isArray(value)) {
- promises.push($q.resolve($injector.invoke(value)));
- } else if (angular.isString(value)) {
- promises.push($q.resolve($injector.get(value)));
- } else {
- promises.push($q.resolve(value));
- }
- });
-
- return $q.all(promises).then(function(resolves) {
- var resolveObj = {};
- var resolveIter = 0;
- angular.forEach(invocables, function(value, key) {
- resolveObj[key] = resolves[resolveIter++];
- });
-
- return resolveObj;
- });
- }
- };
- }];
- })
-
-/**
- * A helper directive for the $modal service. It creates a backdrop element.
- */
- .directive('uibModalBackdrop', ['$animate', '$injector', '$uibModalStack',
- function($animate, $injector, $modalStack) {
- return {
- restrict: 'A',
- compile: function(tElement, tAttrs) {
- tElement.addClass(tAttrs.backdropClass);
- return linkFn;
- }
- };
-
- function linkFn(scope, element, attrs) {
- if (attrs.modalInClass) {
- $animate.addClass(element, attrs.modalInClass);
-
- scope.$on($modalStack.NOW_CLOSING_EVENT, function(e, setIsAsync) {
- var done = setIsAsync();
- if (scope.modalOptions.animation) {
- $animate.removeClass(element, attrs.modalInClass).then(done);
- } else {
- done();
- }
- });
- }
- }
- }])
-
- .directive('uibModalWindow', ['$uibModalStack', '$q', '$animateCss', '$document',
- function($modalStack, $q, $animateCss, $document) {
- return {
- scope: {
- index: '@'
- },
- restrict: 'A',
- transclude: true,
- templateUrl: function(tElement, tAttrs) {
- return tAttrs.templateUrl || 'uib/template/modal/window.html';
- },
- link: function(scope, element, attrs) {
- element.addClass(attrs.windowTopClass || '');
- scope.size = attrs.size;
-
- scope.close = function(evt) {
- var modal = $modalStack.getTop();
- if (modal && modal.value.backdrop &&
- modal.value.backdrop !== 'static' &&
- evt.target === evt.currentTarget) {
- evt.preventDefault();
- evt.stopPropagation();
- $modalStack.dismiss(modal.key, 'backdrop click');
- }
- };
-
- // moved from template to fix issue #2280
- element.on('click', scope.close);
-
- // This property is only added to the scope for the purpose of detecting when this directive is rendered.
- // We can detect that by using this property in the template associated with this directive and then use
- // {@link Attribute#$observe} on it. For more details please see {@link TableColumnResize}.
- scope.$isRendered = true;
-
- // Deferred object that will be resolved when this modal is rendered.
- var modalRenderDeferObj = $q.defer();
- // Resolve render promise post-digest
- scope.$$postDigest(function() {
- modalRenderDeferObj.resolve();
- });
-
- modalRenderDeferObj.promise.then(function() {
- var animationPromise = null;
-
- if (attrs.modalInClass) {
- animationPromise = $animateCss(element, {
- addClass: attrs.modalInClass
- }).start();
-
- scope.$on($modalStack.NOW_CLOSING_EVENT, function(e, setIsAsync) {
- var done = setIsAsync();
- $animateCss(element, {
- removeClass: attrs.modalInClass
- }).start().then(done);
- });
- }
-
-
- $q.when(animationPromise).then(function() {
- // Notify {@link $modalStack} that modal is rendered.
- var modal = $modalStack.getTop();
- if (modal) {
- $modalStack.modalRendered(modal.key);
- }
-
- /**
- * If something within the freshly-opened modal already has focus (perhaps via a
- * directive that causes focus) then there's no need to try to focus anything.
- */
- if (!($document[0].activeElement && element[0].contains($document[0].activeElement))) {
- var inputWithAutofocus = element[0].querySelector('[autofocus]');
- /**
- * Auto-focusing of a freshly-opened modal element causes any child elements
- * with the autofocus attribute to lose focus. This is an issue on touch
- * based devices which will show and then hide the onscreen keyboard.
- * Attempts to refocus the autofocus element via JavaScript will not reopen
- * the onscreen keyboard. Fixed by updated the focusing logic to only autofocus
- * the modal element if the modal does not contain an autofocus element.
- */
- if (inputWithAutofocus) {
- inputWithAutofocus.focus();
- } else {
- element[0].focus();
- }
- }
- });
- });
- }
- };
- }])
-
- .directive('uibModalAnimationClass', function() {
- return {
- compile: function(tElement, tAttrs) {
- if (tAttrs.modalAnimation) {
- tElement.addClass(tAttrs.uibModalAnimationClass);
- }
- }
- };
- })
-
- .directive('uibModalTransclude', ['$animate', function($animate) {
- return {
- link: function(scope, element, attrs, controller, transclude) {
- transclude(scope.$parent, function(clone) {
- element.empty();
- $animate.enter(clone, element);
- });
- }
- };
- }])
-
- .factory('$uibModalStack', ['$animate', '$animateCss', '$document',
- '$compile', '$rootScope', '$q', '$$multiMap', '$$stackedMap', '$uibPosition',
- function($animate, $animateCss, $document, $compile, $rootScope, $q, $$multiMap, $$stackedMap, $uibPosition) {
- var OPENED_MODAL_CLASS = 'modal-open';
-
- var backdropDomEl, backdropScope;
- var openedWindows = $$stackedMap.createNew();
- var openedClasses = $$multiMap.createNew();
- var $modalStack = {
- NOW_CLOSING_EVENT: 'modal.stack.now-closing'
- };
- var topModalIndex = 0;
- var previousTopOpenedModal = null;
- var ARIA_HIDDEN_ATTRIBUTE_NAME = 'data-bootstrap-modal-aria-hidden-count';
-
- //Modal focus behavior
- var tabbableSelector = 'a[href], area[href], input:not([disabled]):not([tabindex=\'-1\']), ' +
- 'button:not([disabled]):not([tabindex=\'-1\']),select:not([disabled]):not([tabindex=\'-1\']), textarea:not([disabled]):not([tabindex=\'-1\']), ' +
- 'iframe, object, embed, *[tabindex]:not([tabindex=\'-1\']), *[contenteditable=true]';
- var scrollbarPadding;
- var SNAKE_CASE_REGEXP = /[A-Z]/g;
-
- // TODO: extract into common dependency with tooltip
- function snake_case(name) {
- var separator = '-';
- return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {
- return (pos ? separator : '') + letter.toLowerCase();
- });
- }
-
- function isVisible(element) {
- return !!(element.offsetWidth ||
- element.offsetHeight ||
- element.getClientRects().length);
- }
-
- function backdropIndex() {
- var topBackdropIndex = -1;
- var opened = openedWindows.keys();
- for (var i = 0; i < opened.length; i++) {
- if (openedWindows.get(opened[i]).value.backdrop) {
- topBackdropIndex = i;
- }
- }
-
- // If any backdrop exist, ensure that it's index is always
- // right below the top modal
- if (topBackdropIndex > -1 && topBackdropIndex < topModalIndex) {
- topBackdropIndex = topModalIndex;
- }
- return topBackdropIndex;
- }
-
- $rootScope.$watch(backdropIndex, function(newBackdropIndex) {
- if (backdropScope) {
- backdropScope.index = newBackdropIndex;
- }
- });
-
- function removeModalWindow(modalInstance, elementToReceiveFocus) {
- var modalWindow = openedWindows.get(modalInstance).value;
- var appendToElement = modalWindow.appendTo;
-
- //clean up the stack
- openedWindows.remove(modalInstance);
- previousTopOpenedModal = openedWindows.top();
- if (previousTopOpenedModal) {
- topModalIndex = parseInt(previousTopOpenedModal.value.modalDomEl.attr('index'), 10);
- }
-
- removeAfterAnimate(modalWindow.modalDomEl, modalWindow.modalScope, function() {
- var modalBodyClass = modalWindow.openedClass || OPENED_MODAL_CLASS;
- openedClasses.remove(modalBodyClass, modalInstance);
- var areAnyOpen = openedClasses.hasKey(modalBodyClass);
- appendToElement.toggleClass(modalBodyClass, areAnyOpen);
- if (!areAnyOpen && scrollbarPadding && scrollbarPadding.heightOverflow && scrollbarPadding.scrollbarWidth) {
- if (scrollbarPadding.originalRight) {
- appendToElement.css({paddingRight: scrollbarPadding.originalRight + 'px'});
- } else {
- appendToElement.css({paddingRight: ''});
- }
- scrollbarPadding = null;
- }
- toggleTopWindowClass(true);
- }, modalWindow.closedDeferred);
- checkRemoveBackdrop();
-
- //move focus to specified element if available, or else to body
- if (elementToReceiveFocus && elementToReceiveFocus.focus) {
- elementToReceiveFocus.focus();
- } else if (appendToElement.focus) {
- appendToElement.focus();
- }
- }
-
- // Add or remove "windowTopClass" from the top window in the stack
- function toggleTopWindowClass(toggleSwitch) {
- var modalWindow;
-
- if (openedWindows.length() > 0) {
- modalWindow = openedWindows.top().value;
- modalWindow.modalDomEl.toggleClass(modalWindow.windowTopClass || '', toggleSwitch);
- }
- }
-
- function checkRemoveBackdrop() {
- //remove backdrop if no longer needed
- if (backdropDomEl && backdropIndex() === -1) {
- var backdropScopeRef = backdropScope;
- removeAfterAnimate(backdropDomEl, backdropScope, function() {
- backdropScopeRef = null;
- });
- backdropDomEl = undefined;
- backdropScope = undefined;
- }
- }
-
- function removeAfterAnimate(domEl, scope, done, closedDeferred) {
- var asyncDeferred;
- var asyncPromise = null;
- var setIsAsync = function() {
- if (!asyncDeferred) {
- asyncDeferred = $q.defer();
- asyncPromise = asyncDeferred.promise;
- }
-
- return function asyncDone() {
- asyncDeferred.resolve();
- };
- };
- scope.$broadcast($modalStack.NOW_CLOSING_EVENT, setIsAsync);
-
- // Note that it's intentional that asyncPromise might be null.
- // That's when setIsAsync has not been called during the
- // NOW_CLOSING_EVENT broadcast.
- return $q.when(asyncPromise).then(afterAnimating);
-
- function afterAnimating() {
- if (afterAnimating.done) {
- return;
- }
- afterAnimating.done = true;
-
- $animate.leave(domEl).then(function() {
- if (done) {
- done();
- }
-
- domEl.remove();
- if (closedDeferred) {
- closedDeferred.resolve();
- }
- });
-
- scope.$destroy();
- }
- }
-
- $document.on('keydown', keydownListener);
-
- $rootScope.$on('$destroy', function() {
- $document.off('keydown', keydownListener);
- });
-
- function keydownListener(evt) {
- if (evt.isDefaultPrevented()) {
- return evt;
- }
-
- var modal = openedWindows.top();
- if (modal) {
- switch (evt.which) {
- case 27: {
- if (modal.value.keyboard) {
- evt.preventDefault();
- $rootScope.$apply(function() {
- $modalStack.dismiss(modal.key, 'escape key press');
- });
- }
- break;
- }
- case 9: {
- var list = $modalStack.loadFocusElementList(modal);
- var focusChanged = false;
- if (evt.shiftKey) {
- if ($modalStack.isFocusInFirstItem(evt, list) || $modalStack.isModalFocused(evt, modal)) {
- focusChanged = $modalStack.focusLastFocusableElement(list);
- }
- } else {
- if ($modalStack.isFocusInLastItem(evt, list)) {
- focusChanged = $modalStack.focusFirstFocusableElement(list);
- }
- }
-
- if (focusChanged) {
- evt.preventDefault();
- evt.stopPropagation();
- }
-
- break;
- }
- }
- }
- }
-
- $modalStack.open = function(modalInstance, modal) {
- var modalOpener = $document[0].activeElement,
- modalBodyClass = modal.openedClass || OPENED_MODAL_CLASS;
-
- toggleTopWindowClass(false);
-
- // Store the current top first, to determine what index we ought to use
- // for the current top modal
- previousTopOpenedModal = openedWindows.top();
-
- openedWindows.add(modalInstance, {
- deferred: modal.deferred,
- renderDeferred: modal.renderDeferred,
- closedDeferred: modal.closedDeferred,
- modalScope: modal.scope,
- backdrop: modal.backdrop,
- keyboard: modal.keyboard,
- openedClass: modal.openedClass,
- windowTopClass: modal.windowTopClass,
- animation: modal.animation,
- appendTo: modal.appendTo
- });
-
- openedClasses.put(modalBodyClass, modalInstance);
-
- var appendToElement = modal.appendTo,
- currBackdropIndex = backdropIndex();
-
- if (!appendToElement.length) {
- throw new Error('appendTo element not found. Make sure that the element passed is in DOM.');
- }
-
- if (currBackdropIndex >= 0 && !backdropDomEl) {
- backdropScope = $rootScope.$new(true);
- backdropScope.modalOptions = modal;
- backdropScope.index = currBackdropIndex;
- backdropDomEl = angular.element('<div uib-modal-backdrop="modal-backdrop"></div>');
- backdropDomEl.attr({
- 'class': 'modal-backdrop',
- 'ng-style': '{\'z-index\': 1040 + (index && 1 || 0) + index*10}',
- 'uib-modal-animation-class': 'fade',
- 'modal-in-class': 'in'
- });
- if (modal.backdropClass) {
- backdropDomEl.addClass(modal.backdropClass);
- }
-
- if (modal.animation) {
- backdropDomEl.attr('modal-animation', 'true');
- }
- $compile(backdropDomEl)(backdropScope);
- $animate.enter(backdropDomEl, appendToElement);
- if ($uibPosition.isScrollable(appendToElement)) {
- scrollbarPadding = $uibPosition.scrollbarPadding(appendToElement);
- if (scrollbarPadding.heightOverflow && scrollbarPadding.scrollbarWidth) {
- appendToElement.css({paddingRight: scrollbarPadding.right + 'px'});
- }
- }
- }
-
- var content;
- if (modal.component) {
- content = document.createElement(snake_case(modal.component.name));
- content = angular.element(content);
- content.attr({
- resolve: '$resolve',
- 'modal-instance': '$uibModalInstance',
- close: '$close($value)',
- dismiss: '$dismiss($value)'
- });
- } else {
- content = modal.content;
- }
-
- // Set the top modal index based on the index of the previous top modal
- topModalIndex = previousTopOpenedModal ? parseInt(previousTopOpenedModal.value.modalDomEl.attr('index'), 10) + 1 : 0;
- var angularDomEl = angular.element('<div uib-modal-window="modal-window"></div>');
- angularDomEl.attr({
- 'class': 'modal',
- 'template-url': modal.windowTemplateUrl,
- 'window-top-class': modal.windowTopClass,
- 'role': 'dialog',
- 'aria-labelledby': modal.ariaLabelledBy,
- 'aria-describedby': modal.ariaDescribedBy,
- 'size': modal.size,
- 'index': topModalIndex,
- 'animate': 'animate',
- 'ng-style': '{\'z-index\': 1050 + $$topModalIndex*10, display: \'block\'}',
- 'tabindex': -1,
- 'uib-modal-animation-class': 'fade',
- 'modal-in-class': 'in'
- }).append(content);
- if (modal.windowClass) {
- angularDomEl.addClass(modal.windowClass);
- }
-
- if (modal.animation) {
- angularDomEl.attr('modal-animation', 'true');
- }
-
- appendToElement.addClass(modalBodyClass);
- if (modal.scope) {
- // we need to explicitly add the modal index to the modal scope
- // because it is needed by ngStyle to compute the zIndex property.
- modal.scope.$$topModalIndex = topModalIndex;
- }
- $animate.enter($compile(angularDomEl)(modal.scope), appendToElement);
-
- openedWindows.top().value.modalDomEl = angularDomEl;
- openedWindows.top().value.modalOpener = modalOpener;
-
- applyAriaHidden(angularDomEl);
-
- function applyAriaHidden(el) {
- if (!el || el[0].tagName === 'BODY') {
- return;
- }
-
- getSiblings(el).forEach(function(sibling) {
- var elemIsAlreadyHidden = sibling.getAttribute('aria-hidden') === 'true',
- ariaHiddenCount = parseInt(sibling.getAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME), 10);
-
- if (!ariaHiddenCount) {
- ariaHiddenCount = elemIsAlreadyHidden ? 1 : 0;
- }
-
- sibling.setAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME, ariaHiddenCount + 1);
- sibling.setAttribute('aria-hidden', 'true');
- });
-
- return applyAriaHidden(el.parent());
-
- function getSiblings(el) {
- var children = el.parent() ? el.parent().children() : [];
-
- return Array.prototype.filter.call(children, function(child) {
- return child !== el[0];
- });
- }
- }
- };
-
- function broadcastClosing(modalWindow, resultOrReason, closing) {
- return !modalWindow.value.modalScope.$broadcast('modal.closing', resultOrReason, closing).defaultPrevented;
- }
-
- function unhideBackgroundElements() {
- Array.prototype.forEach.call(
- document.querySelectorAll('[' + ARIA_HIDDEN_ATTRIBUTE_NAME + ']'),
- function(hiddenEl) {
- var ariaHiddenCount = parseInt(hiddenEl.getAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME), 10),
- newHiddenCount = ariaHiddenCount - 1;
- hiddenEl.setAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME, newHiddenCount);
-
- if (!newHiddenCount) {
- hiddenEl.removeAttribute(ARIA_HIDDEN_ATTRIBUTE_NAME);
- hiddenEl.removeAttribute('aria-hidden');
- }
- }
- );
- }
-
- $modalStack.close = function(modalInstance, result) {
- var modalWindow = openedWindows.get(modalInstance);
- unhideBackgroundElements();
- if (modalWindow && broadcastClosing(modalWindow, result, true)) {
- modalWindow.value.modalScope.$$uibDestructionScheduled = true;
- modalWindow.value.deferred.resolve(result);
- removeModalWindow(modalInstance, modalWindow.value.modalOpener);
- return true;
- }
-
- return !modalWindow;
- };
-
- $modalStack.dismiss = function(modalInstance, reason) {
- var modalWindow = openedWindows.get(modalInstance);
- unhideBackgroundElements();
- if (modalWindow && broadcastClosing(modalWindow, reason, false)) {
- modalWindow.value.modalScope.$$uibDestructionScheduled = true;
- modalWindow.value.deferred.reject(reason);
- removeModalWindow(modalInstance, modalWindow.value.modalOpener);
- return true;
- }
- return !modalWindow;
- };
-
- $modalStack.dismissAll = function(reason) {
- var topModal = this.getTop();
- while (topModal && this.dismiss(topModal.key, reason)) {
- topModal = this.getTop();
- }
- };
-
- $modalStack.getTop = function() {
- return openedWindows.top();
- };
-
- $modalStack.modalRendered = function(modalInstance) {
- var modalWindow = openedWindows.get(modalInstance);
- if (modalWindow) {
- modalWindow.value.renderDeferred.resolve();
- }
- };
-
- $modalStack.focusFirstFocusableElement = function(list) {
- if (list.length > 0) {
- list[0].focus();
- return true;
- }
- return false;
- };
-
- $modalStack.focusLastFocusableElement = function(list) {
- if (list.length > 0) {
- list[list.length - 1].focus();
- return true;
- }
- return false;
- };
-
- $modalStack.isModalFocused = function(evt, modalWindow) {
- if (evt && modalWindow) {
- var modalDomEl = modalWindow.value.modalDomEl;
- if (modalDomEl && modalDomEl.length) {
- return (evt.target || evt.srcElement) === modalDomEl[0];
- }
- }
- return false;
- };
-
- $modalStack.isFocusInFirstItem = function(evt, list) {
- if (list.length > 0) {
- return (evt.target || evt.srcElement) === list[0];
- }
- return false;
- };
-
- $modalStack.isFocusInLastItem = function(evt, list) {
- if (list.length > 0) {
- return (evt.target || evt.srcElement) === list[list.length - 1];
- }
- return false;
- };
-
- $modalStack.loadFocusElementList = function(modalWindow) {
- if (modalWindow) {
- var modalDomE1 = modalWindow.value.modalDomEl;
- if (modalDomE1 && modalDomE1.length) {
- var elements = modalDomE1[0].querySelectorAll(tabbableSelector);
- return elements ?
- Array.prototype.filter.call(elements, function(element) {
- return isVisible(element);
- }) : elements;
- }
- }
- };
-
- return $modalStack;
- }])
-
- .provider('$uibModal', function() {
- var $modalProvider = {
- options: {
- animation: true,
- backdrop: true, //can also be false or 'static'
- keyboard: true
- },
- $get: ['$rootScope', '$q', '$document', '$templateRequest', '$controller', '$uibResolve', '$uibModalStack',
- function ($rootScope, $q, $document, $templateRequest, $controller, $uibResolve, $modalStack) {
- var $modal = {};
-
- function getTemplatePromise(options) {
- return options.template ? $q.when(options.template) :
- $templateRequest(angular.isFunction(options.templateUrl) ?
- options.templateUrl() : options.templateUrl);
- }
-
- var promiseChain = null;
- $modal.getPromiseChain = function() {
- return promiseChain;
- };
-
- $modal.open = function(modalOptions) {
- var modalResultDeferred = $q.defer();
- var modalOpenedDeferred = $q.defer();
- var modalClosedDeferred = $q.defer();
- var modalRenderDeferred = $q.defer();
-
- //prepare an instance of a modal to be injected into controllers and returned to a caller
- var modalInstance = {
- result: modalResultDeferred.promise,
- opened: modalOpenedDeferred.promise,
- closed: modalClosedDeferred.promise,
- rendered: modalRenderDeferred.promise,
- close: function (result) {
- return $modalStack.close(modalInstance, result);
- },
- dismiss: function (reason) {
- return $modalStack.dismiss(modalInstance, reason);
- }
- };
-
- //merge and clean up options
- modalOptions = angular.extend({}, $modalProvider.options, modalOptions);
- modalOptions.resolve = modalOptions.resolve || {};
- modalOptions.appendTo = modalOptions.appendTo || $document.find('body').eq(0);
-
- //verify options
- if (!modalOptions.component && !modalOptions.template && !modalOptions.templateUrl) {
- throw new Error('One of component or template or templateUrl options is required.');
- }
-
- var templateAndResolvePromise;
- if (modalOptions.component) {
- templateAndResolvePromise = $q.when($uibResolve.resolve(modalOptions.resolve, {}, null, null));
- } else {
- templateAndResolvePromise =
- $q.all([getTemplatePromise(modalOptions), $uibResolve.resolve(modalOptions.resolve, {}, null, null)]);
- }
-
- function resolveWithTemplate() {
- return templateAndResolvePromise;
- }
-
- // Wait for the resolution of the existing promise chain.
- // Then switch to our own combined promise dependency (regardless of how the previous modal fared).
- // Then add to $modalStack and resolve opened.
- // Finally clean up the chain variable if no subsequent modal has overwritten it.
- var samePromise;
- samePromise = promiseChain = $q.all([promiseChain])
- .then(resolveWithTemplate, resolveWithTemplate)
- .then(function resolveSuccess(tplAndVars) {
- var providedScope = modalOptions.scope || $rootScope;
-
- var modalScope = providedScope.$new();
- modalScope.$close = modalInstance.close;
- modalScope.$dismiss = modalInstance.dismiss;
-
- modalScope.$on('$destroy', function() {
- if (!modalScope.$$uibDestructionScheduled) {
- modalScope.$dismiss('$uibUnscheduledDestruction');
- }
- });
-
- var modal = {
- scope: modalScope,
- deferred: modalResultDeferred,
- renderDeferred: modalRenderDeferred,
- closedDeferred: modalClosedDeferred,
- animation: modalOptions.animation,
- backdrop: modalOptions.backdrop,
- keyboard: modalOptions.keyboard,
- backdropClass: modalOptions.backdropClass,
- windowTopClass: modalOptions.windowTopClass,
- windowClass: modalOptions.windowClass,
- windowTemplateUrl: modalOptions.windowTemplateUrl,
- ariaLabelledBy: modalOptions.ariaLabelledBy,
- ariaDescribedBy: modalOptions.ariaDescribedBy,
- size: modalOptions.size,
- openedClass: modalOptions.openedClass,
- appendTo: modalOptions.appendTo
- };
-
- var component = {};
- var ctrlInstance, ctrlInstantiate, ctrlLocals = {};
-
- if (modalOptions.component) {
- constructLocals(component, false, true, false);
- component.name = modalOptions.component;
- modal.component = component;
- } else if (modalOptions.controller) {
- constructLocals(ctrlLocals, true, false, true);
-
- // the third param will make the controller instantiate later,private api
- // @see https://github.com/angular/angular.js/blob/master/src/ng/controller.js#L126
- ctrlInstantiate = $controller(modalOptions.controller, ctrlLocals, true, modalOptions.controllerAs);
- if (modalOptions.controllerAs && modalOptions.bindToController) {
- ctrlInstance = ctrlInstantiate.instance;
- ctrlInstance.$close = modalScope.$close;
- ctrlInstance.$dismiss = modalScope.$dismiss;
- angular.extend(ctrlInstance, {
- $resolve: ctrlLocals.$scope.$resolve
- }, providedScope);
- }
-
- ctrlInstance = ctrlInstantiate();
-
- if (angular.isFunction(ctrlInstance.$onInit)) {
- ctrlInstance.$onInit();
- }
- }
-
- if (!modalOptions.component) {
- modal.content = tplAndVars[0];
- }
-
- $modalStack.open(modalInstance, modal);
- modalOpenedDeferred.resolve(true);
-
- function constructLocals(obj, template, instanceOnScope, injectable) {
- obj.$scope = modalScope;
- obj.$scope.$resolve = {};
- if (instanceOnScope) {
- obj.$scope.$uibModalInstance = modalInstance;
- } else {
- obj.$uibModalInstance = modalInstance;
- }
-
- var resolves = template ? tplAndVars[1] : tplAndVars;
- angular.forEach(resolves, function(value, key) {
- if (injectable) {
- obj[key] = value;
- }
-
- obj.$scope.$resolve[key] = value;
- });
- }
- }, function resolveError(reason) {
- modalOpenedDeferred.reject(reason);
- modalResultDeferred.reject(reason);
- })['finally'](function() {
- if (promiseChain === samePromise) {
- promiseChain = null;
- }
- });
-
- return modalInstance;
- };
-
- return $modal;
- }
- ]
- };
-
- return $modalProvider;
- });
-
-angular.module('ui.bootstrap.paging', [])
-/**
- * Helper internal service for generating common controller code between the
- * pager and pagination components
- */
-.factory('uibPaging', ['$parse', function($parse) {
- return {
- create: function(ctrl, $scope, $attrs) {
- ctrl.setNumPages = $attrs.numPages ? $parse($attrs.numPages).assign : angular.noop;
- ctrl.ngModelCtrl = { $setViewValue: angular.noop }; // nullModelCtrl
- ctrl._watchers = [];
-
- ctrl.init = function(ngModelCtrl, config) {
- ctrl.ngModelCtrl = ngModelCtrl;
- ctrl.config = config;
-
- ngModelCtrl.$render = function() {
- ctrl.render();
- };
-
- if ($attrs.itemsPerPage) {
- ctrl._watchers.push($scope.$parent.$watch($attrs.itemsPerPage, function(value) {
- ctrl.itemsPerPage = parseInt(value, 10);
- $scope.totalPages = ctrl.calculateTotalPages();
- ctrl.updatePage();
- }));
- } else {
- ctrl.itemsPerPage = config.itemsPerPage;
- }
-
- $scope.$watch('totalItems', function(newTotal, oldTotal) {
- if (angular.isDefined(newTotal) || newTotal !== oldTotal) {
- $scope.totalPages = ctrl.calculateTotalPages();
- ctrl.updatePage();
- }
- });
- };
-
- ctrl.calculateTotalPages = function() {
- var totalPages = ctrl.itemsPerPage < 1 ? 1 : Math.ceil($scope.totalItems / ctrl.itemsPerPage);
- return Math.max(totalPages || 0, 1);
- };
-
- ctrl.render = function() {
- $scope.page = parseInt(ctrl.ngModelCtrl.$viewValue, 10) || 1;
- };
-
- $scope.selectPage = function(page, evt) {
- if (evt) {
- evt.preventDefault();
- }
-
- var clickAllowed = !$scope.ngDisabled || !evt;
- if (clickAllowed && $scope.page !== page && page > 0 && page <= $scope.totalPages) {
- if (evt && evt.target) {
- evt.target.blur();
- }
- ctrl.ngModelCtrl.$setViewValue(page);
- ctrl.ngModelCtrl.$render();
- }
- };
-
- $scope.getText = function(key) {
- return $scope[key + 'Text'] || ctrl.config[key + 'Text'];
- };
-
- $scope.noPrevious = function() {
- return $scope.page === 1;
- };
-
- $scope.noNext = function() {
- return $scope.page === $scope.totalPages;
- };
-
- ctrl.updatePage = function() {
- ctrl.setNumPages($scope.$parent, $scope.totalPages); // Readonly variable
-
- if ($scope.page > $scope.totalPages) {
- $scope.selectPage($scope.totalPages);
- } else {
- ctrl.ngModelCtrl.$render();
- }
- };
-
- $scope.$on('$destroy', function() {
- while (ctrl._watchers.length) {
- ctrl._watchers.shift()();
- }
- });
- }
- };
-}]);
-
-angular.module('ui.bootstrap.pager', ['ui.bootstrap.paging', 'ui.bootstrap.tabindex'])
-
-.controller('UibPagerController', ['$scope', '$attrs', 'uibPaging', 'uibPagerConfig', function($scope, $attrs, uibPaging, uibPagerConfig) {
- $scope.align = angular.isDefined($attrs.align) ? $scope.$parent.$eval($attrs.align) : uibPagerConfig.align;
-
- uibPaging.create(this, $scope, $attrs);
-}])
-
-.constant('uibPagerConfig', {
- itemsPerPage: 10,
- previousText: '« Previous',
- nextText: 'Next »',
- align: true
-})
-
-.directive('uibPager', ['uibPagerConfig', function(uibPagerConfig) {
- return {
- scope: {
- totalItems: '=',
- previousText: '@',
- nextText: '@',
- ngDisabled: '='
- },
- require: ['uibPager', '?ngModel'],
- restrict: 'A',
- controller: 'UibPagerController',
- controllerAs: 'pager',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/pager/pager.html';
- },
- link: function(scope, element, attrs, ctrls) {
- element.addClass('pager');
- var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- if (!ngModelCtrl) {
- return; // do nothing if no ng-model
- }
-
- paginationCtrl.init(ngModelCtrl, uibPagerConfig);
- }
- };
-}]);
-
-angular.module('ui.bootstrap.pagination', ['ui.bootstrap.paging', 'ui.bootstrap.tabindex'])
-.controller('UibPaginationController', ['$scope', '$attrs', '$parse', 'uibPaging', 'uibPaginationConfig', function($scope, $attrs, $parse, uibPaging, uibPaginationConfig) {
- var ctrl = this;
- // Setup configuration parameters
- var maxSize = angular.isDefined($attrs.maxSize) ? $scope.$parent.$eval($attrs.maxSize) : uibPaginationConfig.maxSize,
- rotate = angular.isDefined($attrs.rotate) ? $scope.$parent.$eval($attrs.rotate) : uibPaginationConfig.rotate,
- forceEllipses = angular.isDefined($attrs.forceEllipses) ? $scope.$parent.$eval($attrs.forceEllipses) : uibPaginationConfig.forceEllipses,
- boundaryLinkNumbers = angular.isDefined($attrs.boundaryLinkNumbers) ? $scope.$parent.$eval($attrs.boundaryLinkNumbers) : uibPaginationConfig.boundaryLinkNumbers,
- pageLabel = angular.isDefined($attrs.pageLabel) ? function(idx) { return $scope.$parent.$eval($attrs.pageLabel, {$page: idx}); } : angular.identity;
- $scope.boundaryLinks = angular.isDefined($attrs.boundaryLinks) ? $scope.$parent.$eval($attrs.boundaryLinks) : uibPaginationConfig.boundaryLinks;
- $scope.directionLinks = angular.isDefined($attrs.directionLinks) ? $scope.$parent.$eval($attrs.directionLinks) : uibPaginationConfig.directionLinks;
-
- uibPaging.create(this, $scope, $attrs);
-
- if ($attrs.maxSize) {
- ctrl._watchers.push($scope.$parent.$watch($parse($attrs.maxSize), function(value) {
- maxSize = parseInt(value, 10);
- ctrl.render();
- }));
- }
-
- // Create page object used in template
- function makePage(number, text, isActive) {
- return {
- number: number,
- text: text,
- active: isActive
- };
- }
-
- function getPages(currentPage, totalPages) {
- var pages = [];
-
- // Default page limits
- var startPage = 1, endPage = totalPages;
- var isMaxSized = angular.isDefined(maxSize) && maxSize < totalPages;
-
- // recompute if maxSize
- if (isMaxSized) {
- if (rotate) {
- // Current page is displayed in the middle of the visible ones
- startPage = Math.max(currentPage - Math.floor(maxSize / 2), 1);
- endPage = startPage + maxSize - 1;
-
- // Adjust if limit is exceeded
- if (endPage > totalPages) {
- endPage = totalPages;
- startPage = endPage - maxSize + 1;
- }
- } else {
- // Visible pages are paginated with maxSize
- startPage = (Math.ceil(currentPage / maxSize) - 1) * maxSize + 1;
-
- // Adjust last page if limit is exceeded
- endPage = Math.min(startPage + maxSize - 1, totalPages);
- }
- }
-
- // Add page number links
- for (var number = startPage; number <= endPage; number++) {
- var page = makePage(number, pageLabel(number), number === currentPage);
- pages.push(page);
- }
-
- // Add links to move between page sets
- if (isMaxSized && maxSize > 0 && (!rotate || forceEllipses || boundaryLinkNumbers)) {
- if (startPage > 1) {
- if (!boundaryLinkNumbers || startPage > 3) { //need ellipsis for all options unless range is too close to beginning
- var previousPageSet = makePage(startPage - 1, '...', false);
- pages.unshift(previousPageSet);
- }
- if (boundaryLinkNumbers) {
- if (startPage === 3) { //need to replace ellipsis when the buttons would be sequential
- var secondPageLink = makePage(2, '2', false);
- pages.unshift(secondPageLink);
- }
- //add the first page
- var firstPageLink = makePage(1, '1', false);
- pages.unshift(firstPageLink);
- }
- }
-
- if (endPage < totalPages) {
- if (!boundaryLinkNumbers || endPage < totalPages - 2) { //need ellipsis for all options unless range is too close to end
- var nextPageSet = makePage(endPage + 1, '...', false);
- pages.push(nextPageSet);
- }
- if (boundaryLinkNumbers) {
- if (endPage === totalPages - 2) { //need to replace ellipsis when the buttons would be sequential
- var secondToLastPageLink = makePage(totalPages - 1, totalPages - 1, false);
- pages.push(secondToLastPageLink);
- }
- //add the last page
- var lastPageLink = makePage(totalPages, totalPages, false);
- pages.push(lastPageLink);
- }
- }
- }
- return pages;
- }
-
- var originalRender = this.render;
- this.render = function() {
- originalRender();
- if ($scope.page > 0 && $scope.page <= $scope.totalPages) {
- $scope.pages = getPages($scope.page, $scope.totalPages);
- }
- };
-}])
-
-.constant('uibPaginationConfig', {
- itemsPerPage: 10,
- boundaryLinks: false,
- boundaryLinkNumbers: false,
- directionLinks: true,
- firstText: 'First',
- previousText: 'Previous',
- nextText: 'Next',
- lastText: 'Last',
- rotate: true,
- forceEllipses: false
-})
-
-.directive('uibPagination', ['$parse', 'uibPaginationConfig', function($parse, uibPaginationConfig) {
- return {
- scope: {
- totalItems: '=',
- firstText: '@',
- previousText: '@',
- nextText: '@',
- lastText: '@',
- ngDisabled:'='
- },
- require: ['uibPagination', '?ngModel'],
- restrict: 'A',
- controller: 'UibPaginationController',
- controllerAs: 'pagination',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/pagination/pagination.html';
- },
- link: function(scope, element, attrs, ctrls) {
- element.addClass('pagination');
- var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- if (!ngModelCtrl) {
- return; // do nothing if no ng-model
- }
-
- paginationCtrl.init(ngModelCtrl, uibPaginationConfig);
- }
- };
-}]);
-
-/**
- * The following features are still outstanding: animation as a
- * function, placement as a function, inside, support for more triggers than
- * just mouse enter/leave, html tooltips, and selector delegation.
- */
-angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.stackedMap'])
-
-/**
- * The $tooltip service creates tooltip- and popover-like directives as well as
- * houses global options for them.
- */
-.provider('$uibTooltip', function() {
- // The default options tooltip and popover.
- var defaultOptions = {
- placement: 'top',
- placementClassPrefix: '',
- animation: true,
- popupDelay: 0,
- popupCloseDelay: 0,
- useContentExp: false
- };
-
- // Default hide triggers for each show trigger
- var triggerMap = {
- 'mouseenter': 'mouseleave',
- 'click': 'click',
- 'outsideClick': 'outsideClick',
- 'focus': 'blur',
- 'none': ''
- };
-
- // The options specified to the provider globally.
- var globalOptions = {};
-
- /**
- * `options({})` allows global configuration of all tooltips in the
- * application.
- *
- * var app = angular.module( 'App', ['ui.bootstrap.tooltip'], function( $tooltipProvider ) {
- * // place tooltips left instead of top by default
- * $tooltipProvider.options( { placement: 'left' } );
- * });
- */
- this.options = function(value) {
- angular.extend(globalOptions, value);
- };
-
- /**
- * This allows you to extend the set of trigger mappings available. E.g.:
- *
- * $tooltipProvider.setTriggers( { 'openTrigger': 'closeTrigger' } );
- */
- this.setTriggers = function setTriggers(triggers) {
- angular.extend(triggerMap, triggers);
- };
-
- /**
- * This is a helper function for translating camel-case to snake_case.
- */
- function snake_case(name) {
- var regexp = /[A-Z]/g;
- var separator = '-';
- return name.replace(regexp, function(letter, pos) {
- return (pos ? separator : '') + letter.toLowerCase();
- });
- }
-
- /**
- * Returns the actual instance of the $tooltip service.
- * TODO support multiple triggers
- */
- this.$get = ['$window', '$compile', '$timeout', '$document', '$uibPosition', '$interpolate', '$rootScope', '$parse', '$$stackedMap', function($window, $compile, $timeout, $document, $position, $interpolate, $rootScope, $parse, $$stackedMap) {
- var openedTooltips = $$stackedMap.createNew();
- $document.on('keyup', keypressListener);
-
- $rootScope.$on('$destroy', function() {
- $document.off('keyup', keypressListener);
- });
-
- function keypressListener(e) {
- if (e.which === 27) {
- var last = openedTooltips.top();
- if (last) {
- last.value.close();
- last = null;
- }
- }
- }
-
- return function $tooltip(ttType, prefix, defaultTriggerShow, options) {
- options = angular.extend({}, defaultOptions, globalOptions, options);
-
- /**
- * Returns an object of show and hide triggers.
- *
- * If a trigger is supplied,
- * it is used to show the tooltip; otherwise, it will use the `trigger`
- * option passed to the `$tooltipProvider.options` method; else it will
- * default to the trigger supplied to this directive factory.
- *
- * The hide trigger is based on the show trigger. If the `trigger` option
- * was passed to the `$tooltipProvider.options` method, it will use the
- * mapped trigger from `triggerMap` or the passed trigger if the map is
- * undefined; otherwise, it uses the `triggerMap` value of the show
- * trigger; else it will just use the show trigger.
- */
- function getTriggers(trigger) {
- var show = (trigger || options.trigger || defaultTriggerShow).split(' ');
- var hide = show.map(function(trigger) {
- return triggerMap[trigger] || trigger;
- });
- return {
- show: show,
- hide: hide
- };
- }
-
- var directiveName = snake_case(ttType);
-
- var startSym = $interpolate.startSymbol();
- var endSym = $interpolate.endSymbol();
- var template =
- '<div '+ directiveName + '-popup ' +
- 'uib-title="' + startSym + 'title' + endSym + '" ' +
- (options.useContentExp ?
- 'content-exp="contentExp()" ' :
- 'content="' + startSym + 'content' + endSym + '" ') +
- 'origin-scope="origScope" ' +
- 'class="uib-position-measure ' + prefix + '" ' +
- 'tooltip-animation-class="fade"' +
- 'uib-tooltip-classes ' +
- 'ng-class="{ in: isOpen }" ' +
- '>' +
- '</div>';
-
- return {
- compile: function(tElem, tAttrs) {
- var tooltipLinker = $compile(template);
-
- return function link(scope, element, attrs, tooltipCtrl) {
- var tooltip;
- var tooltipLinkedScope;
- var transitionTimeout;
- var showTimeout;
- var hideTimeout;
- var positionTimeout;
- var adjustmentTimeout;
- var appendToBody = angular.isDefined(options.appendToBody) ? options.appendToBody : false;
- var triggers = getTriggers(undefined);
- var hasEnableExp = angular.isDefined(attrs[prefix + 'Enable']);
- var ttScope = scope.$new(true);
- var repositionScheduled = false;
- var isOpenParse = angular.isDefined(attrs[prefix + 'IsOpen']) ? $parse(attrs[prefix + 'IsOpen']) : false;
- var contentParse = options.useContentExp ? $parse(attrs[ttType]) : false;
- var observers = [];
- var lastPlacement;
-
- var positionTooltip = function() {
- // check if tooltip exists and is not empty
- if (!tooltip || !tooltip.html()) { return; }
-
- if (!positionTimeout) {
- positionTimeout = $timeout(function() {
- var ttPosition = $position.positionElements(element, tooltip, ttScope.placement, appendToBody);
- var initialHeight = angular.isDefined(tooltip.offsetHeight) ? tooltip.offsetHeight : tooltip.prop('offsetHeight');
- var elementPos = appendToBody ? $position.offset(element) : $position.position(element);
- tooltip.css({ top: ttPosition.top + 'px', left: ttPosition.left + 'px' });
- var placementClasses = ttPosition.placement.split('-');
-
- if (!tooltip.hasClass(placementClasses[0])) {
- tooltip.removeClass(lastPlacement.split('-')[0]);
- tooltip.addClass(placementClasses[0]);
- }
-
- if (!tooltip.hasClass(options.placementClassPrefix + ttPosition.placement)) {
- tooltip.removeClass(options.placementClassPrefix + lastPlacement);
- tooltip.addClass(options.placementClassPrefix + ttPosition.placement);
- }
-
- adjustmentTimeout = $timeout(function() {
- var currentHeight = angular.isDefined(tooltip.offsetHeight) ? tooltip.offsetHeight : tooltip.prop('offsetHeight');
- var adjustment = $position.adjustTop(placementClasses, elementPos, initialHeight, currentHeight);
- if (adjustment) {
- tooltip.css(adjustment);
- }
- adjustmentTimeout = null;
- }, 0, false);
-
- // first time through tt element will have the
- // uib-position-measure class or if the placement
- // has changed we need to position the arrow.
- if (tooltip.hasClass('uib-position-measure')) {
- $position.positionArrow(tooltip, ttPosition.placement);
- tooltip.removeClass('uib-position-measure');
- } else if (lastPlacement !== ttPosition.placement) {
- $position.positionArrow(tooltip, ttPosition.placement);
- }
- lastPlacement = ttPosition.placement;
-
- positionTimeout = null;
- }, 0, false);
- }
- };
-
- // Set up the correct scope to allow transclusion later
- ttScope.origScope = scope;
-
- // By default, the tooltip is not open.
- // TODO add ability to start tooltip opened
- ttScope.isOpen = false;
-
- function toggleTooltipBind() {
- if (!ttScope.isOpen) {
- showTooltipBind();
- } else {
- hideTooltipBind();
- }
- }
-
- // Show the tooltip with delay if specified, otherwise show it immediately
- function showTooltipBind() {
- if (hasEnableExp && !scope.$eval(attrs[prefix + 'Enable'])) {
- return;
- }
-
- cancelHide();
- prepareTooltip();
-
- if (ttScope.popupDelay) {
- // Do nothing if the tooltip was already scheduled to pop-up.
- // This happens if show is triggered multiple times before any hide is triggered.
- if (!showTimeout) {
- showTimeout = $timeout(show, ttScope.popupDelay, false);
- }
- } else {
- show();
- }
- }
-
- function hideTooltipBind() {
- cancelShow();
-
- if (ttScope.popupCloseDelay) {
- if (!hideTimeout) {
- hideTimeout = $timeout(hide, ttScope.popupCloseDelay, false);
- }
- } else {
- hide();
- }
- }
-
- // Show the tooltip popup element.
- function show() {
- cancelShow();
- cancelHide();
-
- // Don't show empty tooltips.
- if (!ttScope.content) {
- return angular.noop;
- }
-
- createTooltip();
-
- // And show the tooltip.
- ttScope.$evalAsync(function() {
- ttScope.isOpen = true;
- assignIsOpen(true);
- positionTooltip();
- });
- }
-
- function cancelShow() {
- if (showTimeout) {
- $timeout.cancel(showTimeout);
- showTimeout = null;
- }
-
- if (positionTimeout) {
- $timeout.cancel(positionTimeout);
- positionTimeout = null;
- }
- }
-
- // Hide the tooltip popup element.
- function hide() {
- if (!ttScope) {
- return;
- }
-
- // First things first: we don't show it anymore.
- ttScope.$evalAsync(function() {
- if (ttScope) {
- ttScope.isOpen = false;
- assignIsOpen(false);
- // And now we remove it from the DOM. However, if we have animation, we
- // need to wait for it to expire beforehand.
- // FIXME: this is a placeholder for a port of the transitions library.
- // The fade transition in TWBS is 150ms.
- if (ttScope.animation) {
- if (!transitionTimeout) {
- transitionTimeout = $timeout(removeTooltip, 150, false);
- }
- } else {
- removeTooltip();
- }
- }
- });
- }
-
- function cancelHide() {
- if (hideTimeout) {
- $timeout.cancel(hideTimeout);
- hideTimeout = null;
- }
-
- if (transitionTimeout) {
- $timeout.cancel(transitionTimeout);
- transitionTimeout = null;
- }
- }
-
- function createTooltip() {
- // There can only be one tooltip element per directive shown at once.
- if (tooltip) {
- return;
- }
-
- tooltipLinkedScope = ttScope.$new();
- tooltip = tooltipLinker(tooltipLinkedScope, function(tooltip) {
- if (appendToBody) {
- $document.find('body').append(tooltip);
- } else {
- element.after(tooltip);
- }
- });
-
- openedTooltips.add(ttScope, {
- close: hide
- });
-
- prepObservers();
- }
-
- function removeTooltip() {
- cancelShow();
- cancelHide();
- unregisterObservers();
-
- if (tooltip) {
- tooltip.remove();
-
- tooltip = null;
- if (adjustmentTimeout) {
- $timeout.cancel(adjustmentTimeout);
- }
- }
-
- openedTooltips.remove(ttScope);
-
- if (tooltipLinkedScope) {
- tooltipLinkedScope.$destroy();
- tooltipLinkedScope = null;
- }
- }
-
- /**
- * Set the initial scope values. Once
- * the tooltip is created, the observers
- * will be added to keep things in sync.
- */
- function prepareTooltip() {
- ttScope.title = attrs[prefix + 'Title'];
- if (contentParse) {
- ttScope.content = contentParse(scope);
- } else {
- ttScope.content = attrs[ttType];
- }
-
- ttScope.popupClass = attrs[prefix + 'Class'];
- ttScope.placement = angular.isDefined(attrs[prefix + 'Placement']) ? attrs[prefix + 'Placement'] : options.placement;
- var placement = $position.parsePlacement(ttScope.placement);
- lastPlacement = placement[1] ? placement[0] + '-' + placement[1] : placement[0];
-
- var delay = parseInt(attrs[prefix + 'PopupDelay'], 10);
- var closeDelay = parseInt(attrs[prefix + 'PopupCloseDelay'], 10);
- ttScope.popupDelay = !isNaN(delay) ? delay : options.popupDelay;
- ttScope.popupCloseDelay = !isNaN(closeDelay) ? closeDelay : options.popupCloseDelay;
- }
-
- function assignIsOpen(isOpen) {
- if (isOpenParse && angular.isFunction(isOpenParse.assign)) {
- isOpenParse.assign(scope, isOpen);
- }
- }
-
- ttScope.contentExp = function() {
- return ttScope.content;
- };
-
- /**
- * Observe the relevant attributes.
- */
- attrs.$observe('disabled', function(val) {
- if (val) {
- cancelShow();
- }
-
- if (val && ttScope.isOpen) {
- hide();
- }
- });
-
- if (isOpenParse) {
- scope.$watch(isOpenParse, function(val) {
- if (ttScope && !val === ttScope.isOpen) {
- toggleTooltipBind();
- }
- });
- }
-
- function prepObservers() {
- observers.length = 0;
-
- if (contentParse) {
- observers.push(
- scope.$watch(contentParse, function(val) {
- ttScope.content = val;
- if (!val && ttScope.isOpen) {
- hide();
- }
- })
- );
-
- observers.push(
- tooltipLinkedScope.$watch(function() {
- if (!repositionScheduled) {
- repositionScheduled = true;
- tooltipLinkedScope.$$postDigest(function() {
- repositionScheduled = false;
- if (ttScope && ttScope.isOpen) {
- positionTooltip();
- }
- });
- }
- })
- );
- } else {
- observers.push(
- attrs.$observe(ttType, function(val) {
- ttScope.content = val;
- if (!val && ttScope.isOpen) {
- hide();
- } else {
- positionTooltip();
- }
- })
- );
- }
-
- observers.push(
- attrs.$observe(prefix + 'Title', function(val) {
- ttScope.title = val;
- if (ttScope.isOpen) {
- positionTooltip();
- }
- })
- );
-
- observers.push(
- attrs.$observe(prefix + 'Placement', function(val) {
- ttScope.placement = val ? val : options.placement;
- if (ttScope.isOpen) {
- positionTooltip();
- }
- })
- );
- }
-
- function unregisterObservers() {
- if (observers.length) {
- angular.forEach(observers, function(observer) {
- observer();
- });
- observers.length = 0;
- }
- }
-
- // hide tooltips/popovers for outsideClick trigger
- function bodyHideTooltipBind(e) {
- if (!ttScope || !ttScope.isOpen || !tooltip) {
- return;
- }
- // make sure the tooltip/popover link or tool tooltip/popover itself were not clicked
- if (!element[0].contains(e.target) && !tooltip[0].contains(e.target)) {
- hideTooltipBind();
- }
- }
-
- var unregisterTriggers = function() {
- triggers.show.forEach(function(trigger) {
- if (trigger === 'outsideClick') {
- element.off('click', toggleTooltipBind);
- } else {
- element.off(trigger, showTooltipBind);
- element.off(trigger, toggleTooltipBind);
- }
- });
- triggers.hide.forEach(function(trigger) {
- if (trigger === 'outsideClick') {
- $document.off('click', bodyHideTooltipBind);
- } else {
- element.off(trigger, hideTooltipBind);
- }
- });
- };
-
- function prepTriggers() {
- var showTriggers = [], hideTriggers = [];
- var val = scope.$eval(attrs[prefix + 'Trigger']);
- unregisterTriggers();
-
- if (angular.isObject(val)) {
- Object.keys(val).forEach(function(key) {
- showTriggers.push(key);
- hideTriggers.push(val[key]);
- });
- triggers = {
- show: showTriggers,
- hide: hideTriggers
- };
- } else {
- triggers = getTriggers(val);
- }
-
- if (triggers.show !== 'none') {
- triggers.show.forEach(function(trigger, idx) {
- if (trigger === 'outsideClick') {
- element.on('click', toggleTooltipBind);
- $document.on('click', bodyHideTooltipBind);
- } else if (trigger === triggers.hide[idx]) {
- element.on(trigger, toggleTooltipBind);
- } else if (trigger) {
- element.on(trigger, showTooltipBind);
- element.on(triggers.hide[idx], hideTooltipBind);
- }
-
- element.on('keypress', function(e) {
- if (e.which === 27) {
- hideTooltipBind();
- }
- });
- });
- }
- }
-
- prepTriggers();
-
- var animation = scope.$eval(attrs[prefix + 'Animation']);
- ttScope.animation = angular.isDefined(animation) ? !!animation : options.animation;
-
- var appendToBodyVal;
- var appendKey = prefix + 'AppendToBody';
- if (appendKey in attrs && attrs[appendKey] === undefined) {
- appendToBodyVal = true;
- } else {
- appendToBodyVal = scope.$eval(attrs[appendKey]);
- }
-
- appendToBody = angular.isDefined(appendToBodyVal) ? appendToBodyVal : appendToBody;
-
- // Make sure tooltip is destroyed and removed.
- scope.$on('$destroy', function onDestroyTooltip() {
- unregisterTriggers();
- removeTooltip();
- ttScope = null;
- });
- };
- }
- };
- };
- }];
-})
-
-// This is mostly ngInclude code but with a custom scope
-.directive('uibTooltipTemplateTransclude', [
- '$animate', '$sce', '$compile', '$templateRequest',
-function ($animate, $sce, $compile, $templateRequest) {
- return {
- link: function(scope, elem, attrs) {
- var origScope = scope.$eval(attrs.tooltipTemplateTranscludeScope);
-
- var changeCounter = 0,
- currentScope,
- previousElement,
- currentElement;
-
- var cleanupLastIncludeContent = function() {
- if (previousElement) {
- previousElement.remove();
- previousElement = null;
- }
-
- if (currentScope) {
- currentScope.$destroy();
- currentScope = null;
- }
-
- if (currentElement) {
- $animate.leave(currentElement).then(function() {
- previousElement = null;
- });
- previousElement = currentElement;
- currentElement = null;
- }
- };
-
- scope.$watch($sce.parseAsResourceUrl(attrs.uibTooltipTemplateTransclude), function(src) {
- var thisChangeId = ++changeCounter;
-
- if (src) {
- //set the 2nd param to true to ignore the template request error so that the inner
- //contents and scope can be cleaned up.
- $templateRequest(src, true).then(function(response) {
- if (thisChangeId !== changeCounter) { return; }
- var newScope = origScope.$new();
- var template = response;
-
- var clone = $compile(template)(newScope, function(clone) {
- cleanupLastIncludeContent();
- $animate.enter(clone, elem);
- });
-
- currentScope = newScope;
- currentElement = clone;
-
- currentScope.$emit('$includeContentLoaded', src);
- }, function() {
- if (thisChangeId === changeCounter) {
- cleanupLastIncludeContent();
- scope.$emit('$includeContentError', src);
- }
- });
- scope.$emit('$includeContentRequested', src);
- } else {
- cleanupLastIncludeContent();
- }
- });
-
- scope.$on('$destroy', cleanupLastIncludeContent);
- }
- };
-}])
-
-/**
- * Note that it's intentional that these classes are *not* applied through $animate.
- * They must not be animated as they're expected to be present on the tooltip on
- * initialization.
- */
-.directive('uibTooltipClasses', ['$uibPosition', function($uibPosition) {
- return {
- restrict: 'A',
- link: function(scope, element, attrs) {
- // need to set the primary position so the
- // arrow has space during position measure.
- // tooltip.positionTooltip()
- if (scope.placement) {
- // // There are no top-left etc... classes
- // // in TWBS, so we need the primary position.
- var position = $uibPosition.parsePlacement(scope.placement);
- element.addClass(position[0]);
- }
-
- if (scope.popupClass) {
- element.addClass(scope.popupClass);
- }
-
- if (scope.animation) {
- element.addClass(attrs.tooltipAnimationClass);
- }
- }
- };
-}])
-
-.directive('uibTooltipPopup', function() {
- return {
- restrict: 'A',
- scope: { content: '@' },
- templateUrl: 'uib/template/tooltip/tooltip-popup.html'
- };
-})
-
-.directive('uibTooltip', [ '$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibTooltip', 'tooltip', 'mouseenter');
-}])
-
-.directive('uibTooltipTemplatePopup', function() {
- return {
- restrict: 'A',
- scope: { contentExp: '&', originScope: '&' },
- templateUrl: 'uib/template/tooltip/tooltip-template-popup.html'
- };
-})
-
-.directive('uibTooltipTemplate', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibTooltipTemplate', 'tooltip', 'mouseenter', {
- useContentExp: true
- });
-}])
-
-.directive('uibTooltipHtmlPopup', function() {
- return {
- restrict: 'A',
- scope: { contentExp: '&' },
- templateUrl: 'uib/template/tooltip/tooltip-html-popup.html'
- };
-})
-
-.directive('uibTooltipHtml', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibTooltipHtml', 'tooltip', 'mouseenter', {
- useContentExp: true
- });
-}]);
-
-/**
- * The following features are still outstanding: popup delay, animation as a
- * function, placement as a function, inside, support for more triggers than
- * just mouse enter/leave, and selector delegatation.
- */
-angular.module('ui.bootstrap.popover', ['ui.bootstrap.tooltip'])
-
-.directive('uibPopoverTemplatePopup', function() {
- return {
- restrict: 'A',
- scope: { uibTitle: '@', contentExp: '&', originScope: '&' },
- templateUrl: 'uib/template/popover/popover-template.html'
- };
-})
-
-.directive('uibPopoverTemplate', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibPopoverTemplate', 'popover', 'click', {
- useContentExp: true
- });
-}])
-
-.directive('uibPopoverHtmlPopup', function() {
- return {
- restrict: 'A',
- scope: { contentExp: '&', uibTitle: '@' },
- templateUrl: 'uib/template/popover/popover-html.html'
- };
-})
-
-.directive('uibPopoverHtml', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibPopoverHtml', 'popover', 'click', {
- useContentExp: true
- });
-}])
-
-.directive('uibPopoverPopup', function() {
- return {
- restrict: 'A',
- scope: { uibTitle: '@', content: '@' },
- templateUrl: 'uib/template/popover/popover.html'
- };
-})
-
-.directive('uibPopover', ['$uibTooltip', function($uibTooltip) {
- return $uibTooltip('uibPopover', 'popover', 'click');
-}]);
-
-angular.module('ui.bootstrap.progressbar', [])
-
-.constant('uibProgressConfig', {
- animate: true,
- max: 100
-})
-
-.controller('UibProgressController', ['$scope', '$attrs', 'uibProgressConfig', function($scope, $attrs, progressConfig) {
- var self = this,
- animate = angular.isDefined($attrs.animate) ? $scope.$parent.$eval($attrs.animate) : progressConfig.animate;
-
- this.bars = [];
- $scope.max = getMaxOrDefault();
-
- this.addBar = function(bar, element, attrs) {
- if (!animate) {
- element.css({'transition': 'none'});
- }
-
- this.bars.push(bar);
-
- bar.max = getMaxOrDefault();
- bar.title = attrs && angular.isDefined(attrs.title) ? attrs.title : 'progressbar';
-
- bar.$watch('value', function(value) {
- bar.recalculatePercentage();
- });
-
- bar.recalculatePercentage = function() {
- var totalPercentage = self.bars.reduce(function(total, bar) {
- bar.percent = +(100 * bar.value / bar.max).toFixed(2);
- return total + bar.percent;
- }, 0);
-
- if (totalPercentage > 100) {
- bar.percent -= totalPercentage - 100;
- }
- };
-
- bar.$on('$destroy', function() {
- element = null;
- self.removeBar(bar);
- });
- };
-
- this.removeBar = function(bar) {
- this.bars.splice(this.bars.indexOf(bar), 1);
- this.bars.forEach(function (bar) {
- bar.recalculatePercentage();
- });
- };
-
- //$attrs.$observe('maxParam', function(maxParam) {
- $scope.$watch('maxParam', function(maxParam) {
- self.bars.forEach(function(bar) {
- bar.max = getMaxOrDefault();
- bar.recalculatePercentage();
- });
- });
-
- function getMaxOrDefault () {
- return angular.isDefined($scope.maxParam) ? $scope.maxParam : progressConfig.max;
- }
-}])
-
-.directive('uibProgress', function() {
- return {
- replace: true,
- transclude: true,
- controller: 'UibProgressController',
- require: 'uibProgress',
- scope: {
- maxParam: '=?max'
- },
- templateUrl: 'uib/template/progressbar/progress.html'
- };
-})
-
-.directive('uibBar', function() {
- return {
- replace: true,
- transclude: true,
- require: '^uibProgress',
- scope: {
- value: '=',
- type: '@'
- },
- templateUrl: 'uib/template/progressbar/bar.html',
- link: function(scope, element, attrs, progressCtrl) {
- progressCtrl.addBar(scope, element, attrs);
- }
- };
-})
-
-.directive('uibProgressbar', function() {
- return {
- replace: true,
- transclude: true,
- controller: 'UibProgressController',
- scope: {
- value: '=',
- maxParam: '=?max',
- type: '@'
- },
- templateUrl: 'uib/template/progressbar/progressbar.html',
- link: function(scope, element, attrs, progressCtrl) {
- progressCtrl.addBar(scope, angular.element(element.children()[0]), {title: attrs.title});
- }
- };
-});
-
-angular.module('ui.bootstrap.rating', [])
-
-.constant('uibRatingConfig', {
- max: 5,
- stateOn: null,
- stateOff: null,
- enableReset: true,
- titles: ['one', 'two', 'three', 'four', 'five']
-})
-
-.controller('UibRatingController', ['$scope', '$attrs', 'uibRatingConfig', function($scope, $attrs, ratingConfig) {
- var ngModelCtrl = { $setViewValue: angular.noop },
- self = this;
-
- this.init = function(ngModelCtrl_) {
- ngModelCtrl = ngModelCtrl_;
- ngModelCtrl.$render = this.render;
-
- ngModelCtrl.$formatters.push(function(value) {
- if (angular.isNumber(value) && value << 0 !== value) {
- value = Math.round(value);
- }
-
- return value;
- });
-
- this.stateOn = angular.isDefined($attrs.stateOn) ? $scope.$parent.$eval($attrs.stateOn) : ratingConfig.stateOn;
- this.stateOff = angular.isDefined($attrs.stateOff) ? $scope.$parent.$eval($attrs.stateOff) : ratingConfig.stateOff;
- this.enableReset = angular.isDefined($attrs.enableReset) ?
- $scope.$parent.$eval($attrs.enableReset) : ratingConfig.enableReset;
- var tmpTitles = angular.isDefined($attrs.titles) ? $scope.$parent.$eval($attrs.titles) : ratingConfig.titles;
- this.titles = angular.isArray(tmpTitles) && tmpTitles.length > 0 ?
- tmpTitles : ratingConfig.titles;
-
- var ratingStates = angular.isDefined($attrs.ratingStates) ?
- $scope.$parent.$eval($attrs.ratingStates) :
- new Array(angular.isDefined($attrs.max) ? $scope.$parent.$eval($attrs.max) : ratingConfig.max);
- $scope.range = this.buildTemplateObjects(ratingStates);
- };
-
- this.buildTemplateObjects = function(states) {
- for (var i = 0, n = states.length; i < n; i++) {
- states[i] = angular.extend({ index: i }, { stateOn: this.stateOn, stateOff: this.stateOff, title: this.getTitle(i) }, states[i]);
- }
- return states;
- };
-
- this.getTitle = function(index) {
- if (index >= this.titles.length) {
- return index + 1;
- }
-
- return this.titles[index];
- };
-
- $scope.rate = function(value) {
- if (!$scope.readonly && value >= 0 && value <= $scope.range.length) {
- var newViewValue = self.enableReset && ngModelCtrl.$viewValue === value ? 0 : value;
- ngModelCtrl.$setViewValue(newViewValue);
- ngModelCtrl.$render();
- }
- };
-
- $scope.enter = function(value) {
- if (!$scope.readonly) {
- $scope.value = value;
- }
- $scope.onHover({value: value});
- };
-
- $scope.reset = function() {
- $scope.value = ngModelCtrl.$viewValue;
- $scope.onLeave();
- };
-
- $scope.onKeydown = function(evt) {
- if (/(37|38|39|40)/.test(evt.which)) {
- evt.preventDefault();
- evt.stopPropagation();
- $scope.rate($scope.value + (evt.which === 38 || evt.which === 39 ? 1 : -1));
- }
- };
-
- this.render = function() {
- $scope.value = ngModelCtrl.$viewValue;
- $scope.title = self.getTitle($scope.value - 1);
- };
-}])
-
-.directive('uibRating', function() {
- return {
- require: ['uibRating', 'ngModel'],
- restrict: 'A',
- scope: {
- readonly: '=?readOnly',
- onHover: '&',
- onLeave: '&'
- },
- controller: 'UibRatingController',
- templateUrl: 'uib/template/rating/rating.html',
- link: function(scope, element, attrs, ctrls) {
- var ratingCtrl = ctrls[0], ngModelCtrl = ctrls[1];
- ratingCtrl.init(ngModelCtrl);
- }
- };
-});
-
-angular.module('ui.bootstrap.tabs', [])
-
-.controller('UibTabsetController', ['$scope', function ($scope) {
- var ctrl = this,
- oldIndex;
- ctrl.tabs = [];
-
- ctrl.select = function(index, evt) {
- if (!destroyed) {
- var previousIndex = findTabIndex(oldIndex);
- var previousSelected = ctrl.tabs[previousIndex];
- if (previousSelected) {
- previousSelected.tab.onDeselect({
- $event: evt,
- $selectedIndex: index
- });
- if (evt && evt.isDefaultPrevented()) {
- return;
- }
- previousSelected.tab.active = false;
- }
-
- var selected = ctrl.tabs[index];
- if (selected) {
- selected.tab.onSelect({
- $event: evt
- });
- selected.tab.active = true;
- ctrl.active = selected.index;
- oldIndex = selected.index;
- } else if (!selected && angular.isDefined(oldIndex)) {
- ctrl.active = null;
- oldIndex = null;
- }
- }
- };
-
- ctrl.addTab = function addTab(tab) {
- ctrl.tabs.push({
- tab: tab,
- index: tab.index
- });
- ctrl.tabs.sort(function(t1, t2) {
- if (t1.index > t2.index) {
- return 1;
- }
-
- if (t1.index < t2.index) {
- return -1;
- }
-
- return 0;
- });
-
- if (tab.index === ctrl.active || !angular.isDefined(ctrl.active) && ctrl.tabs.length === 1) {
- var newActiveIndex = findTabIndex(tab.index);
- ctrl.select(newActiveIndex);
- }
- };
-
- ctrl.removeTab = function removeTab(tab) {
- var index;
- for (var i = 0; i < ctrl.tabs.length; i++) {
- if (ctrl.tabs[i].tab === tab) {
- index = i;
- break;
- }
- }
-
- if (ctrl.tabs[index].index === ctrl.active) {
- var newActiveTabIndex = index === ctrl.tabs.length - 1 ?
- index - 1 : index + 1 % ctrl.tabs.length;
- ctrl.select(newActiveTabIndex);
- }
-
- ctrl.tabs.splice(index, 1);
- };
-
- $scope.$watch('tabset.active', function(val) {
- if (angular.isDefined(val) && val !== oldIndex) {
- ctrl.select(findTabIndex(val));
- }
- });
-
- var destroyed;
- $scope.$on('$destroy', function() {
- destroyed = true;
- });
-
- function findTabIndex(index) {
- for (var i = 0; i < ctrl.tabs.length; i++) {
- if (ctrl.tabs[i].index === index) {
- return i;
- }
- }
- }
-}])
-
-.directive('uibTabset', function() {
- return {
- transclude: true,
- replace: true,
- scope: {},
- bindToController: {
- active: '=?',
- type: '@'
- },
- controller: 'UibTabsetController',
- controllerAs: 'tabset',
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/tabs/tabset.html';
- },
- link: function(scope, element, attrs) {
- scope.vertical = angular.isDefined(attrs.vertical) ?
- scope.$parent.$eval(attrs.vertical) : false;
- scope.justified = angular.isDefined(attrs.justified) ?
- scope.$parent.$eval(attrs.justified) : false;
- }
- };
-})
-
-.directive('uibTab', ['$parse', function($parse) {
- return {
- require: '^uibTabset',
- replace: true,
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || 'uib/template/tabs/tab.html';
- },
- transclude: true,
- scope: {
- heading: '@',
- index: '=?',
- classes: '@?',
- onSelect: '&select', //This callback is called in contentHeadingTransclude
- //once it inserts the tab's content into the dom
- onDeselect: '&deselect'
- },
- controller: function() {
- //Empty controller so other directives can require being 'under' a tab
- },
- controllerAs: 'tab',
- link: function(scope, elm, attrs, tabsetCtrl, transclude) {
- scope.disabled = false;
- if (attrs.disable) {
- scope.$parent.$watch($parse(attrs.disable), function(value) {
- scope.disabled = !! value;
- });
- }
-
- if (angular.isUndefined(attrs.index)) {
- if (tabsetCtrl.tabs && tabsetCtrl.tabs.length) {
- scope.index = Math.max.apply(null, tabsetCtrl.tabs.map(function(t) { return t.index; })) + 1;
- } else {
- scope.index = 0;
- }
- }
-
- if (angular.isUndefined(attrs.classes)) {
- scope.classes = '';
- }
-
- scope.select = function(evt) {
- if (!scope.disabled) {
- var index;
- for (var i = 0; i < tabsetCtrl.tabs.length; i++) {
- if (tabsetCtrl.tabs[i].tab === scope) {
- index = i;
- break;
- }
- }
-
- tabsetCtrl.select(index, evt);
- }
- };
-
- tabsetCtrl.addTab(scope);
- scope.$on('$destroy', function() {
- tabsetCtrl.removeTab(scope);
- });
-
- //We need to transclude later, once the content container is ready.
- //when this link happens, we're inside a tab heading.
- scope.$transcludeFn = transclude;
- }
- };
-}])
-
-.directive('uibTabHeadingTransclude', function() {
- return {
- restrict: 'A',
- require: '^uibTab',
- link: function(scope, elm) {
- scope.$watch('headingElement', function updateHeadingElement(heading) {
- if (heading) {
- elm.html('');
- elm.append(heading);
- }
- });
- }
- };
-})
-
-.directive('uibTabContentTransclude', function() {
- return {
- restrict: 'A',
- require: '^uibTabset',
- link: function(scope, elm, attrs) {
- var tab = scope.$eval(attrs.uibTabContentTransclude).tab;
-
- //Now our tab is ready to be transcluded: both the tab heading area
- //and the tab content area are loaded. Transclude 'em both.
- tab.$transcludeFn(tab.$parent, function(contents) {
- angular.forEach(contents, function(node) {
- if (isTabHeading(node)) {
- //Let tabHeadingTransclude know.
- tab.headingElement = node;
- } else {
- elm.append(node);
- }
- });
- });
- }
- };
-
- function isTabHeading(node) {
- return node.tagName && (
- node.hasAttribute('uib-tab-heading') ||
- node.hasAttribute('data-uib-tab-heading') ||
- node.hasAttribute('x-uib-tab-heading') ||
- node.tagName.toLowerCase() === 'uib-tab-heading' ||
- node.tagName.toLowerCase() === 'data-uib-tab-heading' ||
- node.tagName.toLowerCase() === 'x-uib-tab-heading' ||
- node.tagName.toLowerCase() === 'uib:tab-heading'
- );
- }
-});
-
-angular.module('ui.bootstrap.timepicker', [])
-
-.constant('uibTimepickerConfig', {
- hourStep: 1,
- minuteStep: 1,
- secondStep: 1,
- showMeridian: true,
- showSeconds: false,
- meridians: null,
- readonlyInput: false,
- mousewheel: true,
- arrowkeys: true,
- showSpinners: true,
- templateUrl: 'uib/template/timepicker/timepicker.html'
-})
-
-.controller('UibTimepickerController', ['$scope', '$element', '$attrs', '$parse', '$log', '$locale', 'uibTimepickerConfig', function($scope, $element, $attrs, $parse, $log, $locale, timepickerConfig) {
- var hoursModelCtrl, minutesModelCtrl, secondsModelCtrl;
- var selected = new Date(),
- watchers = [],
- ngModelCtrl = { $setViewValue: angular.noop }, // nullModelCtrl
- meridians = angular.isDefined($attrs.meridians) ? $scope.$parent.$eval($attrs.meridians) : timepickerConfig.meridians || $locale.DATETIME_FORMATS.AMPMS,
- padHours = angular.isDefined($attrs.padHours) ? $scope.$parent.$eval($attrs.padHours) : true;
-
- $scope.tabindex = angular.isDefined($attrs.tabindex) ? $attrs.tabindex : 0;
- $element.removeAttr('tabindex');
-
- this.init = function(ngModelCtrl_, inputs) {
- ngModelCtrl = ngModelCtrl_;
- ngModelCtrl.$render = this.render;
-
- ngModelCtrl.$formatters.unshift(function(modelValue) {
- return modelValue ? new Date(modelValue) : null;
- });
-
- var hoursInputEl = inputs.eq(0),
- minutesInputEl = inputs.eq(1),
- secondsInputEl = inputs.eq(2);
-
- hoursModelCtrl = hoursInputEl.controller('ngModel');
- minutesModelCtrl = minutesInputEl.controller('ngModel');
- secondsModelCtrl = secondsInputEl.controller('ngModel');
-
- var mousewheel = angular.isDefined($attrs.mousewheel) ? $scope.$parent.$eval($attrs.mousewheel) : timepickerConfig.mousewheel;
-
- if (mousewheel) {
- this.setupMousewheelEvents(hoursInputEl, minutesInputEl, secondsInputEl);
- }
-
- var arrowkeys = angular.isDefined($attrs.arrowkeys) ? $scope.$parent.$eval($attrs.arrowkeys) : timepickerConfig.arrowkeys;
- if (arrowkeys) {
- this.setupArrowkeyEvents(hoursInputEl, minutesInputEl, secondsInputEl);
- }
-
- $scope.readonlyInput = angular.isDefined($attrs.readonlyInput) ? $scope.$parent.$eval($attrs.readonlyInput) : timepickerConfig.readonlyInput;
- this.setupInputEvents(hoursInputEl, minutesInputEl, secondsInputEl);
- };
-
- var hourStep = timepickerConfig.hourStep;
- if ($attrs.hourStep) {
- watchers.push($scope.$parent.$watch($parse($attrs.hourStep), function(value) {
- hourStep = +value;
- }));
- }
-
- var minuteStep = timepickerConfig.minuteStep;
- if ($attrs.minuteStep) {
- watchers.push($scope.$parent.$watch($parse($attrs.minuteStep), function(value) {
- minuteStep = +value;
- }));
- }
-
- var min;
- watchers.push($scope.$parent.$watch($parse($attrs.min), function(value) {
- var dt = new Date(value);
- min = isNaN(dt) ? undefined : dt;
- }));
-
- var max;
- watchers.push($scope.$parent.$watch($parse($attrs.max), function(value) {
- var dt = new Date(value);
- max = isNaN(dt) ? undefined : dt;
- }));
-
- var disabled = false;
- if ($attrs.ngDisabled) {
- watchers.push($scope.$parent.$watch($parse($attrs.ngDisabled), function(value) {
- disabled = value;
- }));
- }
-
- $scope.noIncrementHours = function() {
- var incrementedSelected = addMinutes(selected, hourStep * 60);
- return disabled || incrementedSelected > max ||
- incrementedSelected < selected && incrementedSelected < min;
- };
-
- $scope.noDecrementHours = function() {
- var decrementedSelected = addMinutes(selected, -hourStep * 60);
- return disabled || decrementedSelected < min ||
- decrementedSelected > selected && decrementedSelected > max;
- };
-
- $scope.noIncrementMinutes = function() {
- var incrementedSelected = addMinutes(selected, minuteStep);
- return disabled || incrementedSelected > max ||
- incrementedSelected < selected && incrementedSelected < min;
- };
-
- $scope.noDecrementMinutes = function() {
- var decrementedSelected = addMinutes(selected, -minuteStep);
- return disabled || decrementedSelected < min ||
- decrementedSelected > selected && decrementedSelected > max;
- };
-
- $scope.noIncrementSeconds = function() {
- var incrementedSelected = addSeconds(selected, secondStep);
- return disabled || incrementedSelected > max ||
- incrementedSelected < selected && incrementedSelected < min;
- };
-
- $scope.noDecrementSeconds = function() {
- var decrementedSelected = addSeconds(selected, -secondStep);
- return disabled || decrementedSelected < min ||
- decrementedSelected > selected && decrementedSelected > max;
- };
-
- $scope.noToggleMeridian = function() {
- if (selected.getHours() < 12) {
- return disabled || addMinutes(selected, 12 * 60) > max;
- }
-
- return disabled || addMinutes(selected, -12 * 60) < min;
- };
-
- var secondStep = timepickerConfig.secondStep;
- if ($attrs.secondStep) {
- watchers.push($scope.$parent.$watch($parse($attrs.secondStep), function(value) {
- secondStep = +value;
- }));
- }
-
- $scope.showSeconds = timepickerConfig.showSeconds;
- if ($attrs.showSeconds) {
- watchers.push($scope.$parent.$watch($parse($attrs.showSeconds), function(value) {
- $scope.showSeconds = !!value;
- }));
- }
-
- // 12H / 24H mode
- $scope.showMeridian = timepickerConfig.showMeridian;
- if ($attrs.showMeridian) {
- watchers.push($scope.$parent.$watch($parse($attrs.showMeridian), function(value) {
- $scope.showMeridian = !!value;
-
- if (ngModelCtrl.$error.time) {
- // Evaluate from template
- var hours = getHoursFromTemplate(), minutes = getMinutesFromTemplate();
- if (angular.isDefined(hours) && angular.isDefined(minutes)) {
- selected.setHours(hours);
- refresh();
- }
- } else {
- updateTemplate();
- }
- }));
- }
-
- // Get $scope.hours in 24H mode if valid
- function getHoursFromTemplate() {
- var hours = +$scope.hours;
- var valid = $scope.showMeridian ? hours > 0 && hours < 13 :
- hours >= 0 && hours < 24;
- if (!valid || $scope.hours === '') {
- return undefined;
- }
-
- if ($scope.showMeridian) {
- if (hours === 12) {
- hours = 0;
- }
- if ($scope.meridian === meridians[1]) {
- hours = hours + 12;
- }
- }
- return hours;
- }
-
- function getMinutesFromTemplate() {
- var minutes = +$scope.minutes;
- var valid = minutes >= 0 && minutes < 60;
- if (!valid || $scope.minutes === '') {
- return undefined;
- }
- return minutes;
- }
-
- function getSecondsFromTemplate() {
- var seconds = +$scope.seconds;
- return seconds >= 0 && seconds < 60 ? seconds : undefined;
- }
-
- function pad(value, noPad) {
- if (value === null) {
- return '';
- }
-
- return angular.isDefined(value) && value.toString().length < 2 && !noPad ?
- '0' + value : value.toString();
- }
-
- // Respond on mousewheel spin
- this.setupMousewheelEvents = function(hoursInputEl, minutesInputEl, secondsInputEl) {
- var isScrollingUp = function(e) {
- if (e.originalEvent) {
- e = e.originalEvent;
- }
- //pick correct delta variable depending on event
- var delta = e.wheelDelta ? e.wheelDelta : -e.deltaY;
- return e.detail || delta > 0;
- };
-
- hoursInputEl.on('mousewheel wheel', function(e) {
- if (!disabled) {
- $scope.$apply(isScrollingUp(e) ? $scope.incrementHours() : $scope.decrementHours());
- }
- e.preventDefault();
- });
-
- minutesInputEl.on('mousewheel wheel', function(e) {
- if (!disabled) {
- $scope.$apply(isScrollingUp(e) ? $scope.incrementMinutes() : $scope.decrementMinutes());
- }
- e.preventDefault();
- });
-
- secondsInputEl.on('mousewheel wheel', function(e) {
- if (!disabled) {
- $scope.$apply(isScrollingUp(e) ? $scope.incrementSeconds() : $scope.decrementSeconds());
- }
- e.preventDefault();
- });
- };
-
- // Respond on up/down arrowkeys
- this.setupArrowkeyEvents = function(hoursInputEl, minutesInputEl, secondsInputEl) {
- hoursInputEl.on('keydown', function(e) {
- if (!disabled) {
- if (e.which === 38) { // up
- e.preventDefault();
- $scope.incrementHours();
- $scope.$apply();
- } else if (e.which === 40) { // down
- e.preventDefault();
- $scope.decrementHours();
- $scope.$apply();
- }
- }
- });
-
- minutesInputEl.on('keydown', function(e) {
- if (!disabled) {
- if (e.which === 38) { // up
- e.preventDefault();
- $scope.incrementMinutes();
- $scope.$apply();
- } else if (e.which === 40) { // down
- e.preventDefault();
- $scope.decrementMinutes();
- $scope.$apply();
- }
- }
- });
-
- secondsInputEl.on('keydown', function(e) {
- if (!disabled) {
- if (e.which === 38) { // up
- e.preventDefault();
- $scope.incrementSeconds();
- $scope.$apply();
- } else if (e.which === 40) { // down
- e.preventDefault();
- $scope.decrementSeconds();
- $scope.$apply();
- }
- }
- });
- };
-
- this.setupInputEvents = function(hoursInputEl, minutesInputEl, secondsInputEl) {
- if ($scope.readonlyInput) {
- $scope.updateHours = angular.noop;
- $scope.updateMinutes = angular.noop;
- $scope.updateSeconds = angular.noop;
- return;
- }
-
- var invalidate = function(invalidHours, invalidMinutes, invalidSeconds) {
- ngModelCtrl.$setViewValue(null);
- ngModelCtrl.$setValidity('time', false);
- if (angular.isDefined(invalidHours)) {
- $scope.invalidHours = invalidHours;
- if (hoursModelCtrl) {
- hoursModelCtrl.$setValidity('hours', false);
- }
- }
-
- if (angular.isDefined(invalidMinutes)) {
- $scope.invalidMinutes = invalidMinutes;
- if (minutesModelCtrl) {
- minutesModelCtrl.$setValidity('minutes', false);
- }
- }
-
- if (angular.isDefined(invalidSeconds)) {
- $scope.invalidSeconds = invalidSeconds;
- if (secondsModelCtrl) {
- secondsModelCtrl.$setValidity('seconds', false);
- }
- }
- };
-
- $scope.updateHours = function() {
- var hours = getHoursFromTemplate(),
- minutes = getMinutesFromTemplate();
-
- ngModelCtrl.$setDirty();
-
- if (angular.isDefined(hours) && angular.isDefined(minutes)) {
- selected.setHours(hours);
- selected.setMinutes(minutes);
- if (selected < min || selected > max) {
- invalidate(true);
- } else {
- refresh('h');
- }
- } else {
- invalidate(true);
- }
- };
-
- hoursInputEl.on('blur', function(e) {
- ngModelCtrl.$setTouched();
- if (modelIsEmpty()) {
- makeValid();
- } else if ($scope.hours === null || $scope.hours === '') {
- invalidate(true);
- } else if (!$scope.invalidHours && $scope.hours < 10) {
- $scope.$apply(function() {
- $scope.hours = pad($scope.hours, !padHours);
- });
- }
- });
-
- $scope.updateMinutes = function() {
- var minutes = getMinutesFromTemplate(),
- hours = getHoursFromTemplate();
-
- ngModelCtrl.$setDirty();
-
- if (angular.isDefined(minutes) && angular.isDefined(hours)) {
- selected.setHours(hours);
- selected.setMinutes(minutes);
- if (selected < min || selected > max) {
- invalidate(undefined, true);
- } else {
- refresh('m');
- }
- } else {
- invalidate(undefined, true);
- }
- };
-
- minutesInputEl.on('blur', function(e) {
- ngModelCtrl.$setTouched();
- if (modelIsEmpty()) {
- makeValid();
- } else if ($scope.minutes === null) {
- invalidate(undefined, true);
- } else if (!$scope.invalidMinutes && $scope.minutes < 10) {
- $scope.$apply(function() {
- $scope.minutes = pad($scope.minutes);
- });
- }
- });
-
- $scope.updateSeconds = function() {
- var seconds = getSecondsFromTemplate();
-
- ngModelCtrl.$setDirty();
-
- if (angular.isDefined(seconds)) {
- selected.setSeconds(seconds);
- refresh('s');
- } else {
- invalidate(undefined, undefined, true);
- }
- };
-
- secondsInputEl.on('blur', function(e) {
- if (modelIsEmpty()) {
- makeValid();
- } else if (!$scope.invalidSeconds && $scope.seconds < 10) {
- $scope.$apply( function() {
- $scope.seconds = pad($scope.seconds);
- });
- }
- });
-
- };
-
- this.render = function() {
- var date = ngModelCtrl.$viewValue;
-
- if (isNaN(date)) {
- ngModelCtrl.$setValidity('time', false);
- $log.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.');
- } else {
- if (date) {
- selected = date;
- }
-
- if (selected < min || selected > max) {
- ngModelCtrl.$setValidity('time', false);
- $scope.invalidHours = true;
- $scope.invalidMinutes = true;
- } else {
- makeValid();
- }
- updateTemplate();
- }
- };
-
- // Call internally when we know that model is valid.
- function refresh(keyboardChange) {
- makeValid();
- ngModelCtrl.$setViewValue(new Date(selected));
- updateTemplate(keyboardChange);
- }
-
- function makeValid() {
- if (hoursModelCtrl) {
- hoursModelCtrl.$setValidity('hours', true);
- }
-
- if (minutesModelCtrl) {
- minutesModelCtrl.$setValidity('minutes', true);
- }
-
- if (secondsModelCtrl) {
- secondsModelCtrl.$setValidity('seconds', true);
- }
-
- ngModelCtrl.$setValidity('time', true);
- $scope.invalidHours = false;
- $scope.invalidMinutes = false;
- $scope.invalidSeconds = false;
- }
-
- function updateTemplate(keyboardChange) {
- if (!ngModelCtrl.$modelValue) {
- $scope.hours = null;
- $scope.minutes = null;
- $scope.seconds = null;
- $scope.meridian = meridians[0];
- } else {
- var hours = selected.getHours(),
- minutes = selected.getMinutes(),
- seconds = selected.getSeconds();
-
- if ($scope.showMeridian) {
- hours = hours === 0 || hours === 12 ? 12 : hours % 12; // Convert 24 to 12 hour system
- }
-
- $scope.hours = keyboardChange === 'h' ? hours : pad(hours, !padHours);
- if (keyboardChange !== 'm') {
- $scope.minutes = pad(minutes);
- }
- $scope.meridian = selected.getHours() < 12 ? meridians[0] : meridians[1];
-
- if (keyboardChange !== 's') {
- $scope.seconds = pad(seconds);
- }
- $scope.meridian = selected.getHours() < 12 ? meridians[0] : meridians[1];
- }
- }
-
- function addSecondsToSelected(seconds) {
- selected = addSeconds(selected, seconds);
- refresh();
- }
-
- function addMinutes(selected, minutes) {
- return addSeconds(selected, minutes*60);
- }
-
- function addSeconds(date, seconds) {
- var dt = new Date(date.getTime() + seconds * 1000);
- var newDate = new Date(date);
- newDate.setHours(dt.getHours(), dt.getMinutes(), dt.getSeconds());
- return newDate;
- }
-
- function modelIsEmpty() {
- return ($scope.hours === null || $scope.hours === '') &&
- ($scope.minutes === null || $scope.minutes === '') &&
- (!$scope.showSeconds || $scope.showSeconds && ($scope.seconds === null || $scope.seconds === ''));
- }
-
- $scope.showSpinners = angular.isDefined($attrs.showSpinners) ?
- $scope.$parent.$eval($attrs.showSpinners) : timepickerConfig.showSpinners;
-
- $scope.incrementHours = function() {
- if (!$scope.noIncrementHours()) {
- addSecondsToSelected(hourStep * 60 * 60);
- }
- };
-
- $scope.decrementHours = function() {
- if (!$scope.noDecrementHours()) {
- addSecondsToSelected(-hourStep * 60 * 60);
- }
- };
-
- $scope.incrementMinutes = function() {
- if (!$scope.noIncrementMinutes()) {
- addSecondsToSelected(minuteStep * 60);
- }
- };
-
- $scope.decrementMinutes = function() {
- if (!$scope.noDecrementMinutes()) {
- addSecondsToSelected(-minuteStep * 60);
- }
- };
-
- $scope.incrementSeconds = function() {
- if (!$scope.noIncrementSeconds()) {
- addSecondsToSelected(secondStep);
- }
- };
-
- $scope.decrementSeconds = function() {
- if (!$scope.noDecrementSeconds()) {
- addSecondsToSelected(-secondStep);
- }
- };
-
- $scope.toggleMeridian = function() {
- var minutes = getMinutesFromTemplate(),
- hours = getHoursFromTemplate();
-
- if (!$scope.noToggleMeridian()) {
- if (angular.isDefined(minutes) && angular.isDefined(hours)) {
- addSecondsToSelected(12 * 60 * (selected.getHours() < 12 ? 60 : -60));
- } else {
- $scope.meridian = $scope.meridian === meridians[0] ? meridians[1] : meridians[0];
- }
- }
- };
-
- $scope.blur = function() {
- ngModelCtrl.$setTouched();
- };
-
- $scope.$on('$destroy', function() {
- while (watchers.length) {
- watchers.shift()();
- }
- });
-}])
-
-.directive('uibTimepicker', ['uibTimepickerConfig', function(uibTimepickerConfig) {
- return {
- require: ['uibTimepicker', '?^ngModel'],
- restrict: 'A',
- controller: 'UibTimepickerController',
- controllerAs: 'timepicker',
- scope: {},
- templateUrl: function(element, attrs) {
- return attrs.templateUrl || uibTimepickerConfig.templateUrl;
- },
- link: function(scope, element, attrs, ctrls) {
- var timepickerCtrl = ctrls[0], ngModelCtrl = ctrls[1];
-
- if (ngModelCtrl) {
- timepickerCtrl.init(ngModelCtrl, element.find('input'));
- }
- }
- };
-}]);
-
-angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap.position'])
-
-/**
- * A helper service that can parse typeahead's syntax (string provided by users)
- * Extracted to a separate service for ease of unit testing
- */
- .factory('uibTypeaheadParser', ['$parse', function($parse) {
- // 000001111111100000000000002222222200000000000000003333333333333330000000000044444444000
- var TYPEAHEAD_REGEXP = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;
- return {
- parse: function(input) {
- var match = input.match(TYPEAHEAD_REGEXP);
- if (!match) {
- throw new Error(
- 'Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_"' +
- ' but got "' + input + '".');
- }
-
- return {
- itemName: match[3],
- source: $parse(match[4]),
- viewMapper: $parse(match[2] || match[1]),
- modelMapper: $parse(match[1])
- };
- }
- };
- }])
-
- .controller('UibTypeaheadController', ['$scope', '$element', '$attrs', '$compile', '$parse', '$q', '$timeout', '$document', '$window', '$rootScope', '$$debounce', '$uibPosition', 'uibTypeaheadParser',
- function(originalScope, element, attrs, $compile, $parse, $q, $timeout, $document, $window, $rootScope, $$debounce, $position, typeaheadParser) {
- var HOT_KEYS = [9, 13, 27, 38, 40];
- var eventDebounceTime = 200;
- var modelCtrl, ngModelOptions;
- //SUPPORTED ATTRIBUTES (OPTIONS)
-
- //minimal no of characters that needs to be entered before typeahead kicks-in
- var minLength = originalScope.$eval(attrs.typeaheadMinLength);
- if (!minLength && minLength !== 0) {
- minLength = 1;
- }
-
- originalScope.$watch(attrs.typeaheadMinLength, function (newVal) {
- minLength = !newVal && newVal !== 0 ? 1 : newVal;
- });
-
- //minimal wait time after last character typed before typeahead kicks-in
- var waitTime = originalScope.$eval(attrs.typeaheadWaitMs) || 0;
-
- //should it restrict model values to the ones selected from the popup only?
- var isEditable = originalScope.$eval(attrs.typeaheadEditable) !== false;
- originalScope.$watch(attrs.typeaheadEditable, function (newVal) {
- isEditable = newVal !== false;
- });
-
- //binding to a variable that indicates if matches are being retrieved asynchronously
- var isLoadingSetter = $parse(attrs.typeaheadLoading).assign || angular.noop;
-
- //a function to determine if an event should cause selection
- var isSelectEvent = attrs.typeaheadShouldSelect ? $parse(attrs.typeaheadShouldSelect) : function(scope, vals) {
- var evt = vals.$event;
- return evt.which === 13 || evt.which === 9;
- };
-
- //a callback executed when a match is selected
- var onSelectCallback = $parse(attrs.typeaheadOnSelect);
-
- //should it select highlighted popup value when losing focus?
- var isSelectOnBlur = angular.isDefined(attrs.typeaheadSelectOnBlur) ? originalScope.$eval(attrs.typeaheadSelectOnBlur) : false;
-
- //binding to a variable that indicates if there were no results after the query is completed
- var isNoResultsSetter = $parse(attrs.typeaheadNoResults).assign || angular.noop;
-
- var inputFormatter = attrs.typeaheadInputFormatter ? $parse(attrs.typeaheadInputFormatter) : undefined;
-
- var appendToBody = attrs.typeaheadAppendToBody ? originalScope.$eval(attrs.typeaheadAppendToBody) : false;
-
- var appendTo = attrs.typeaheadAppendTo ?
- originalScope.$eval(attrs.typeaheadAppendTo) : null;
-
- var focusFirst = originalScope.$eval(attrs.typeaheadFocusFirst) !== false;
-
- //If input matches an item of the list exactly, select it automatically
- var selectOnExact = attrs.typeaheadSelectOnExact ? originalScope.$eval(attrs.typeaheadSelectOnExact) : false;
-
- //binding to a variable that indicates if dropdown is open
- var isOpenSetter = $parse(attrs.typeaheadIsOpen).assign || angular.noop;
-
- var showHint = originalScope.$eval(attrs.typeaheadShowHint) || false;
-
- //INTERNAL VARIABLES
-
- //model setter executed upon match selection
- var parsedModel = $parse(attrs.ngModel);
- var invokeModelSetter = $parse(attrs.ngModel + '($$$p)');
- var $setModelValue = function(scope, newValue) {
- if (angular.isFunction(parsedModel(originalScope)) &&
- ngModelOptions && ngModelOptions.$options && ngModelOptions.$options.getterSetter) {
- return invokeModelSetter(scope, {$$$p: newValue});
- }
-
- return parsedModel.assign(scope, newValue);
- };
-
- //expressions used by typeahead
- var parserResult = typeaheadParser.parse(attrs.uibTypeahead);
-
- var hasFocus;
-
- //Used to avoid bug in iOS webview where iOS keyboard does not fire
- //mousedown & mouseup events
- //Issue #3699
- var selected;
-
- //create a child scope for the typeahead directive so we are not polluting original scope
- //with typeahead-specific data (matches, query etc.)
- var scope = originalScope.$new();
- var offDestroy = originalScope.$on('$destroy', function() {
- scope.$destroy();
- });
- scope.$on('$destroy', offDestroy);
-
- // WAI-ARIA
- var popupId = 'typeahead-' + scope.$id + '-' + Math.floor(Math.random() * 10000);
- element.attr({
- 'aria-autocomplete': 'list',
- 'aria-expanded': false,
- 'aria-owns': popupId
- });
-
- var inputsContainer, hintInputElem;
- //add read-only input to show hint
- if (showHint) {
- inputsContainer = angular.element('<div></div>');
- inputsContainer.css('position', 'relative');
- element.after(inputsContainer);
- hintInputElem = element.clone();
- hintInputElem.attr('placeholder', '');
- hintInputElem.attr('tabindex', '-1');
- hintInputElem.val('');
- hintInputElem.css({
- 'position': 'absolute',
- 'top': '0px',
- 'left': '0px',
- 'border-color': 'transparent',
- 'box-shadow': 'none',
- 'opacity': 1,
- 'background': 'none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)',
- 'color': '#999'
- });
- element.css({
- 'position': 'relative',
- 'vertical-align': 'top',
- 'background-color': 'transparent'
- });
-
- if (hintInputElem.attr('id')) {
- hintInputElem.removeAttr('id'); // remove duplicate id if present.
- }
- inputsContainer.append(hintInputElem);
- hintInputElem.after(element);
- }
-
- //pop-up element used to display matches
- var popUpEl = angular.element('<div uib-typeahead-popup></div>');
- popUpEl.attr({
- id: popupId,
- matches: 'matches',
- active: 'activeIdx',
- select: 'select(activeIdx, evt)',
- 'move-in-progress': 'moveInProgress',
- query: 'query',
- position: 'position',
- 'assign-is-open': 'assignIsOpen(isOpen)',
- debounce: 'debounceUpdate'
- });
- //custom item template
- if (angular.isDefined(attrs.typeaheadTemplateUrl)) {
- popUpEl.attr('template-url', attrs.typeaheadTemplateUrl);
- }
-
- if (angular.isDefined(attrs.typeaheadPopupTemplateUrl)) {
- popUpEl.attr('popup-template-url', attrs.typeaheadPopupTemplateUrl);
- }
-
- var resetHint = function() {
- if (showHint) {
- hintInputElem.val('');
- }
- };
-
- var resetMatches = function() {
- scope.matches = [];
- scope.activeIdx = -1;
- element.attr('aria-expanded', false);
- resetHint();
- };
-
- var getMatchId = function(index) {
- return popupId + '-option-' + index;
- };
-
- // Indicate that the specified match is the active (pre-selected) item in the list owned by this typeahead.
- // This attribute is added or removed automatically when the `activeIdx` changes.
- scope.$watch('activeIdx', function(index) {
- if (index < 0) {
- element.removeAttr('aria-activedescendant');
- } else {
- element.attr('aria-activedescendant', getMatchId(index));
- }
- });
-
- var inputIsExactMatch = function(inputValue, index) {
- if (scope.matches.length > index && inputValue) {
- return inputValue.toUpperCase() === scope.matches[index].label.toUpperCase();
- }
-
- return false;
- };
-
- var getMatchesAsync = function(inputValue, evt) {
- var locals = {$viewValue: inputValue};
- isLoadingSetter(originalScope, true);
- isNoResultsSetter(originalScope, false);
- $q.when(parserResult.source(originalScope, locals)).then(function(matches) {
- //it might happen that several async queries were in progress if a user were typing fast
- //but we are interested only in responses that correspond to the current view value
- var onCurrentRequest = inputValue === modelCtrl.$viewValue;
- if (onCurrentRequest && hasFocus) {
- if (matches && matches.length > 0) {
- scope.activeIdx = focusFirst ? 0 : -1;
- isNoResultsSetter(originalScope, false);
- scope.matches.length = 0;
-
- //transform labels
- for (var i = 0; i < matches.length; i++) {
- locals[parserResult.itemName] = matches[i];
- scope.matches.push({
- id: getMatchId(i),
- label: parserResult.viewMapper(scope, locals),
- model: matches[i]
- });
- }
-
- scope.query = inputValue;
- //position pop-up with matches - we need to re-calculate its position each time we are opening a window
- //with matches as a pop-up might be absolute-positioned and position of an input might have changed on a page
- //due to other elements being rendered
- recalculatePosition();
-
- element.attr('aria-expanded', true);
-
- //Select the single remaining option if user input matches
- if (selectOnExact && scope.matches.length === 1 && inputIsExactMatch(inputValue, 0)) {
- if (angular.isNumber(scope.debounceUpdate) || angular.isObject(scope.debounceUpdate)) {
- $$debounce(function() {
- scope.select(0, evt);
- }, angular.isNumber(scope.debounceUpdate) ? scope.debounceUpdate : scope.debounceUpdate['default']);
- } else {
- scope.select(0, evt);
- }
- }
-
- if (showHint) {
- var firstLabel = scope.matches[0].label;
- if (angular.isString(inputValue) &&
- inputValue.length > 0 &&
- firstLabel.slice(0, inputValue.length).toUpperCase() === inputValue.toUpperCase()) {
- hintInputElem.val(inputValue + firstLabel.slice(inputValue.length));
- } else {
- hintInputElem.val('');
- }
- }
- } else {
- resetMatches();
- isNoResultsSetter(originalScope, true);
- }
- }
- if (onCurrentRequest) {
- isLoadingSetter(originalScope, false);
- }
- }, function() {
- resetMatches();
- isLoadingSetter(originalScope, false);
- isNoResultsSetter(originalScope, true);
- });
- };
-
- // bind events only if appendToBody params exist - performance feature
- if (appendToBody) {
- angular.element($window).on('resize', fireRecalculating);
- $document.find('body').on('scroll', fireRecalculating);
- }
-
- // Declare the debounced function outside recalculating for
- // proper debouncing
- var debouncedRecalculate = $$debounce(function() {
- // if popup is visible
- if (scope.matches.length) {
- recalculatePosition();
- }
-
- scope.moveInProgress = false;
- }, eventDebounceTime);
-
- // Default progress type
- scope.moveInProgress = false;
-
- function fireRecalculating() {
- if (!scope.moveInProgress) {
- scope.moveInProgress = true;
- scope.$digest();
- }
-
- debouncedRecalculate();
- }
-
- // recalculate actual position and set new values to scope
- // after digest loop is popup in right position
- function recalculatePosition() {
- scope.position = appendToBody ? $position.offset(element) : $position.position(element);
- scope.position.top += element.prop('offsetHeight');
- }
-
- //we need to propagate user's query so we can higlight matches
- scope.query = undefined;
-
- //Declare the timeout promise var outside the function scope so that stacked calls can be cancelled later
- var timeoutPromise;
-
- var scheduleSearchWithTimeout = function(inputValue) {
- timeoutPromise = $timeout(function() {
- getMatchesAsync(inputValue);
- }, waitTime);
- };
-
- var cancelPreviousTimeout = function() {
- if (timeoutPromise) {
- $timeout.cancel(timeoutPromise);
- }
- };
-
- resetMatches();
-
- scope.assignIsOpen = function (isOpen) {
- isOpenSetter(originalScope, isOpen);
- };
-
- scope.select = function(activeIdx, evt) {
- //called from within the $digest() cycle
- var locals = {};
- var model, item;
-
- selected = true;
- locals[parserResult.itemName] = item = scope.matches[activeIdx].model;
- model = parserResult.modelMapper(originalScope, locals);
- $setModelValue(originalScope, model);
- modelCtrl.$setValidity('editable', true);
- modelCtrl.$setValidity('parse', true);
-
- onSelectCallback(originalScope, {
- $item: item,
- $model: model,
- $label: parserResult.viewMapper(originalScope, locals),
- $event: evt
- });
-
- resetMatches();
-
- //return focus to the input element if a match was selected via a mouse click event
- // use timeout to avoid $rootScope:inprog error
- if (scope.$eval(attrs.typeaheadFocusOnSelect) !== false) {
- $timeout(function() { element[0].focus(); }, 0, false);
- }
- };
-
- //bind keyboard events: arrows up(38) / down(40), enter(13) and tab(9), esc(27)
- element.on('keydown', function(evt) {
- //typeahead is open and an "interesting" key was pressed
- if (scope.matches.length === 0 || HOT_KEYS.indexOf(evt.which) === -1) {
- return;
- }
-
- var shouldSelect = isSelectEvent(originalScope, {$event: evt});
-
- /**
- * if there's nothing selected (i.e. focusFirst) and enter or tab is hit
- * or
- * shift + tab is pressed to bring focus to the previous element
- * then clear the results
- */
- if (scope.activeIdx === -1 && shouldSelect || evt.which === 9 && !!evt.shiftKey) {
- resetMatches();
- scope.$digest();
- return;
- }
-
- evt.preventDefault();
- var target;
- switch (evt.which) {
- case 27: // escape
- evt.stopPropagation();
-
- resetMatches();
- originalScope.$digest();
- break;
- case 38: // up arrow
- scope.activeIdx = (scope.activeIdx > 0 ? scope.activeIdx : scope.matches.length) - 1;
- scope.$digest();
- target = popUpEl[0].querySelectorAll('.uib-typeahead-match')[scope.activeIdx];
- target.parentNode.scrollTop = target.offsetTop;
- break;
- case 40: // down arrow
- scope.activeIdx = (scope.activeIdx + 1) % scope.matches.length;
- scope.$digest();
- target = popUpEl[0].querySelectorAll('.uib-typeahead-match')[scope.activeIdx];
- target.parentNode.scrollTop = target.offsetTop;
- break;
- default:
- if (shouldSelect) {
- scope.$apply(function() {
- if (angular.isNumber(scope.debounceUpdate) || angular.isObject(scope.debounceUpdate)) {
- $$debounce(function() {
- scope.select(scope.activeIdx, evt);
- }, angular.isNumber(scope.debounceUpdate) ? scope.debounceUpdate : scope.debounceUpdate['default']);
- } else {
- scope.select(scope.activeIdx, evt);
- }
- });
- }
- }
- });
-
- element.on('focus', function (evt) {
- hasFocus = true;
- if (minLength === 0 && !modelCtrl.$viewValue) {
- $timeout(function() {
- getMatchesAsync(modelCtrl.$viewValue, evt);
- }, 0);
- }
- });
-
- element.on('blur', function(evt) {
- if (isSelectOnBlur && scope.matches.length && scope.activeIdx !== -1 && !selected) {
- selected = true;
- scope.$apply(function() {
- if (angular.isObject(scope.debounceUpdate) && angular.isNumber(scope.debounceUpdate.blur)) {
- $$debounce(function() {
- scope.select(scope.activeIdx, evt);
- }, scope.debounceUpdate.blur);
- } else {
- scope.select(scope.activeIdx, evt);
- }
- });
- }
- if (!isEditable && modelCtrl.$error.editable) {
- modelCtrl.$setViewValue();
- scope.$apply(function() {
- // Reset validity as we are clearing
- modelCtrl.$setValidity('editable', true);
- modelCtrl.$setValidity('parse', true);
- });
- element.val('');
- }
- hasFocus = false;
- selected = false;
- });
-
- // Keep reference to click handler to unbind it.
- var dismissClickHandler = function(evt) {
- // Issue #3973
- // Firefox treats right click as a click on document
- if (element[0] !== evt.target && evt.which !== 3 && scope.matches.length !== 0) {
- resetMatches();
- if (!$rootScope.$$phase) {
- originalScope.$digest();
- }
- }
- };
-
- $document.on('click', dismissClickHandler);
-
- originalScope.$on('$destroy', function() {
- $document.off('click', dismissClickHandler);
- if (appendToBody || appendTo) {
- $popup.remove();
- }
-
- if (appendToBody) {
- angular.element($window).off('resize', fireRecalculating);
- $document.find('body').off('scroll', fireRecalculating);
- }
- // Prevent jQuery cache memory leak
- popUpEl.remove();
-
- if (showHint) {
- inputsContainer.remove();
- }
- });
-
- var $popup = $compile(popUpEl)(scope);
-
- if (appendToBody) {
- $document.find('body').append($popup);
- } else if (appendTo) {
- angular.element(appendTo).eq(0).append($popup);
- } else {
- element.after($popup);
- }
-
- this.init = function(_modelCtrl, _ngModelOptions) {
- modelCtrl = _modelCtrl;
- ngModelOptions = _ngModelOptions;
-
- scope.debounceUpdate = modelCtrl.$options && $parse(modelCtrl.$options.debounce)(originalScope);
-
- //plug into $parsers pipeline to open a typeahead on view changes initiated from DOM
- //$parsers kick-in on all the changes coming from the view as well as manually triggered by $setViewValue
- modelCtrl.$parsers.unshift(function(inputValue) {
- hasFocus = true;
-
- if (minLength === 0 || inputValue && inputValue.length >= minLength) {
- if (waitTime > 0) {
- cancelPreviousTimeout();
- scheduleSearchWithTimeout(inputValue);
- } else {
- getMatchesAsync(inputValue);
- }
- } else {
- isLoadingSetter(originalScope, false);
- cancelPreviousTimeout();
- resetMatches();
- }
-
- if (isEditable) {
- return inputValue;
- }
-
- if (!inputValue) {
- // Reset in case user had typed something previously.
- modelCtrl.$setValidity('editable', true);
- return null;
- }
-
- modelCtrl.$setValidity('editable', false);
- return undefined;
- });
-
- modelCtrl.$formatters.push(function(modelValue) {
- var candidateViewValue, emptyViewValue;
- var locals = {};
-
- // The validity may be set to false via $parsers (see above) if
- // the model is restricted to selected values. If the model
- // is set manually it is considered to be valid.
- if (!isEditable) {
- modelCtrl.$setValidity('editable', true);
- }
-
- if (inputFormatter) {
- locals.$model = modelValue;
- return inputFormatter(originalScope, locals);
- }
-
- //it might happen that we don't have enough info to properly render input value
- //we need to check for this situation and simply return model value if we can't apply custom formatting
- locals[parserResult.itemName] = modelValue;
- candidateViewValue = parserResult.viewMapper(originalScope, locals);
- locals[parserResult.itemName] = undefined;
- emptyViewValue = parserResult.viewMapper(originalScope, locals);
-
- return candidateViewValue !== emptyViewValue ? candidateViewValue : modelValue;
- });
- };
- }])
-
- .directive('uibTypeahead', function() {
- return {
- controller: 'UibTypeaheadController',
- require: ['ngModel', '^?ngModelOptions', 'uibTypeahead'],
- link: function(originalScope, element, attrs, ctrls) {
- ctrls[2].init(ctrls[0], ctrls[1]);
- }
- };
- })
-
- .directive('uibTypeaheadPopup', ['$$debounce', function($$debounce) {
- return {
- scope: {
- matches: '=',
- query: '=',
- active: '=',
- position: '&',
- moveInProgress: '=',
- select: '&',
- assignIsOpen: '&',
- debounce: '&'
- },
- replace: true,
- templateUrl: function(element, attrs) {
- return attrs.popupTemplateUrl || 'uib/template/typeahead/typeahead-popup.html';
- },
- link: function(scope, element, attrs) {
- scope.templateUrl = attrs.templateUrl;
-
- scope.isOpen = function() {
- var isDropdownOpen = scope.matches.length > 0;
- scope.assignIsOpen({ isOpen: isDropdownOpen });
- return isDropdownOpen;
- };
-
- scope.isActive = function(matchIdx) {
- return scope.active === matchIdx;
- };
-
- scope.selectActive = function(matchIdx) {
- scope.active = matchIdx;
- };
-
- scope.selectMatch = function(activeIdx, evt) {
- var debounce = scope.debounce();
- if (angular.isNumber(debounce) || angular.isObject(debounce)) {
- $$debounce(function() {
- scope.select({activeIdx: activeIdx, evt: evt});
- }, angular.isNumber(debounce) ? debounce : debounce['default']);
- } else {
- scope.select({activeIdx: activeIdx, evt: evt});
- }
- };
- }
- };
- }])
-
- .directive('uibTypeaheadMatch', ['$templateRequest', '$compile', '$parse', function($templateRequest, $compile, $parse) {
- return {
- scope: {
- index: '=',
- match: '=',
- query: '='
- },
- link: function(scope, element, attrs) {
- var tplUrl = $parse(attrs.templateUrl)(scope.$parent) || 'uib/template/typeahead/typeahead-match.html';
- $templateRequest(tplUrl).then(function(tplContent) {
- var tplEl = angular.element(tplContent.trim());
- element.replaceWith(tplEl);
- $compile(tplEl)(scope);
- });
- }
- };
- }])
-
- .filter('uibTypeaheadHighlight', ['$sce', '$injector', '$log', function($sce, $injector, $log) {
- var isSanitizePresent;
- isSanitizePresent = $injector.has('$sanitize');
-
- function escapeRegexp(queryToEscape) {
- // Regex: capture the whole query string and replace it with the string that will be used to match
- // the results, for example if the capture is "a" the result will be \a
- return queryToEscape.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
- }
-
- function containsHtml(matchItem) {
- return /<.*>/g.test(matchItem);
- }
-
- return function(matchItem, query) {
- if (!isSanitizePresent && containsHtml(matchItem)) {
- $log.warn('Unsafe use of typeahead please use ngSanitize'); // Warn the user about the danger
- }
- matchItem = query ? ('' + matchItem).replace(new RegExp(escapeRegexp(query), 'gi'), '<strong>$&</strong>') : matchItem; // Replaces the capture string with a the same string inside of a "strong" tag
- if (!isSanitizePresent) {
- matchItem = $sce.trustAsHtml(matchItem); // If $sanitize is not present we pack the string in a $sce object for the ng-bind-html directive
- }
- return matchItem;
- };
- }]);
-angular.module('ui.bootstrap.carousel').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibCarouselCss && angular.element(document).find('head').prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'); angular.$$uibCarouselCss = true; });
-angular.module('ui.bootstrap.datepicker').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibDatepickerCss && angular.element(document).find('head').prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'); angular.$$uibDatepickerCss = true; });
-angular.module('ui.bootstrap.position').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibPositionCss && angular.element(document).find('head').prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'); angular.$$uibPositionCss = true; });
-angular.module('ui.bootstrap.datepickerPopup').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibDatepickerpopupCss && angular.element(document).find('head').prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'); angular.$$uibDatepickerpopupCss = true; });
-angular.module('ui.bootstrap.tooltip').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibTooltipCss && angular.element(document).find('head').prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'); angular.$$uibTooltipCss = true; });
-angular.module('ui.bootstrap.timepicker').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibTimepickerCss && angular.element(document).find('head').prepend('<style type="text/css">.uib-time input{width:50px;}</style>'); angular.$$uibTimepickerCss = true; });
-angular.module('ui.bootstrap.typeahead').run(function() {!angular.$$csp().noInlineStyle && !angular.$$uibTypeaheadCss && angular.element(document).find('head').prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'); angular.$$uibTypeaheadCss = true; }); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap.min.js b/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap.min.js
deleted file mode 100644
index e5511f3c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-bootstrap/ui-bootstrap.min.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- * angular-ui-bootstrap
- * http://angular-ui.github.io/bootstrap/
-
- * Version: 2.4.0 - 2016-12-29
- * License: MIT
- */angular.module("ui.bootstrap",["ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(a,b,c,d){var e=d.has("$animateCss")?d.get("$animateCss"):null;return{link:function(d,f,g){function h(){r=!!("horizontal"in g),r?(s={width:""},t={width:"0"}):(s={height:""},t={height:"0"}),d.$eval(g.uibCollapse)||f.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(s)}function i(a){return r?{width:a.scrollWidth+"px"}:{height:a.scrollHeight+"px"}}function j(){f.hasClass("collapse")&&f.hasClass("in")||b.resolve(n(d)).then(function(){f.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),e?e(f,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:i(f[0])}).start()["finally"](k):a.addClass(f,"in",{css:{overflow:"hidden"},to:i(f[0])}).then(k)})}function k(){f.removeClass("collapsing").addClass("collapse").css(s),o(d)}function l(){return f.hasClass("collapse")||f.hasClass("in")?void b.resolve(p(d)).then(function(){f.css(i(f[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),e?e(f,{removeClass:"in",to:t}).start()["finally"](m):a.removeClass(f,"in",{to:t}).then(m)}):m()}function m(){f.css(t),f.removeClass("collapsing").addClass("collapse"),q(d)}var n=c(g.expanding),o=c(g.expanded),p=c(g.collapsing),q=c(g.collapsed),r=!1,s={},t={};h(),d.$watch(g.uibCollapse,function(a){a?l():j()})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(a,b,c){c.$observe("disabled",function(a){c.$set("tabindex",a?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(a,b,c){this.groups=[],this.closeOthers=function(d){var e=angular.isDefined(b.closeOthers)?a.$eval(b.closeOthers):c.closeOthers;e&&angular.forEach(this.groups,function(a){a!==d&&(a.isOpen=!1)})},this.addGroup=function(a){var b=this;this.groups.push(a),a.$on("$destroy",function(c){b.removeGroup(a)})},this.removeGroup=function(a){var b=this.groups.indexOf(a);-1!==b&&this.groups.splice(b,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(a,b){return b.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(a){this.heading=a}},link:function(a,b,c,d){b.addClass("panel"),d.addGroup(a),a.openClass=c.openClass||"panel-open",a.panelClass=c.panelClass||"panel-default",a.$watch("isOpen",function(c){b.toggleClass(a.openClass,!!c),c&&d.closeOthers(a)}),a.toggleOpen=function(b){a.isDisabled||b&&32!==b.which||(a.isOpen=!a.isOpen)};var e="accordiongroup-"+a.$id+"-"+Math.floor(1e4*Math.random());a.headingId=e+"-tab",a.panelId=e+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(a,b,c,d,e){d.setHeading(e(a,angular.noop))}}}).directive("uibAccordionTransclude",function(){function a(){return"uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"}return{require:"^uibAccordionGroup",link:function(b,c,d,e){b.$watch(function(){return e[d.uibAccordionTransclude]},function(b){if(b){var d=angular.element(c[0].querySelector(a()));d.html(""),d.append(b)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(a,b,c,d,e){a.closeable=!!c.close,b.addClass("alert"),c.$set("role","alert"),a.closeable&&b.addClass("alert-dismissible");var f=angular.isDefined(c.dismissOnTimeout)?d(c.dismissOnTimeout)(a.$parent):null;f&&e(function(){a.close()},parseInt(f,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(a,b){return b.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(a){this.activeClass=a.activeClass||"active",this.toggleEvent=a.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(a){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(b,c,d,e){var f=e[0],g=e[1],h=a(d.uibUncheckable);c.find("input").css({display:"none"}),g.$render=function(){c.toggleClass(f.activeClass,angular.equals(g.$modelValue,b.$eval(d.uibBtnRadio)))},c.on(f.toggleEvent,function(){if(!d.disabled){var a=c.hasClass(f.activeClass);a&&!angular.isDefined(d.uncheckable)||b.$apply(function(){g.$setViewValue(a?null:b.$eval(d.uibBtnRadio)),g.$render()})}}),d.uibUncheckable&&b.$watch(h,function(a){d.$set("uncheckable",a?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(a,b,c,d){function e(){return g(c.btnCheckboxTrue,!0)}function f(){return g(c.btnCheckboxFalse,!1)}function g(b,c){return angular.isDefined(b)?a.$eval(b):c}var h=d[0],i=d[1];b.find("input").css({display:"none"}),i.$render=function(){b.toggleClass(h.activeClass,angular.equals(i.$modelValue,e()))},b.on(h.toggleEvent,function(){c.disabled||a.$apply(function(){i.$setViewValue(b.hasClass(h.activeClass)?f():e()),i.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(a,b,c,d,e){function f(){for(;t.length;)t.shift()}function g(a){for(var b=0;b<q.length;b++)q[b].slide.active=b===a}function h(c,d,i){if(!u){if(angular.extend(c,{direction:i}),angular.extend(q[s].slide||{},{direction:i}),e.enabled(b)&&!a.$currentTransition&&q[d].element&&p.slides.length>1){q[d].element.data(r,c.direction);var j=p.getCurrentIndex();angular.isNumber(j)&&q[j].element&&q[j].element.data(r,c.direction),a.$currentTransition=!0,e.on("addClass",q[d].element,function(b,c){if("close"===c&&(a.$currentTransition=null,e.off("addClass",b),t.length)){var d=t.pop().slide,g=d.index,i=g>p.getCurrentIndex()?"next":"prev";f(),h(d,g,i)}})}a.active=c.index,s=c.index,g(d),l()}}function i(a){for(var b=0;b<q.length;b++)if(q[b].slide===a)return b}function j(){n&&(c.cancel(n),n=null)}function k(b){b.length||(a.$currentTransition=null,f())}function l(){j();var b=+a.interval;!isNaN(b)&&b>0&&(n=c(m,b))}function m(){var b=+a.interval;o&&!isNaN(b)&&b>0&&q.length?a.next():a.pause()}var n,o,p=this,q=p.slides=a.slides=[],r="uib-slideDirection",s=a.active,t=[],u=!1;b.addClass("carousel"),p.addSlide=function(b,c){q.push({slide:b,element:c}),q.sort(function(a,b){return+a.slide.index-+b.slide.index}),(b.index===a.active||1===q.length&&!angular.isNumber(a.active))&&(a.$currentTransition&&(a.$currentTransition=null),s=b.index,a.active=b.index,g(s),p.select(q[i(b)]),1===q.length&&a.play())},p.getCurrentIndex=function(){for(var a=0;a<q.length;a++)if(q[a].slide.index===s)return a},p.next=a.next=function(){var b=(p.getCurrentIndex()+1)%q.length;return 0===b&&a.noWrap()?void a.pause():p.select(q[b],"next")},p.prev=a.prev=function(){var b=p.getCurrentIndex()-1<0?q.length-1:p.getCurrentIndex()-1;return a.noWrap()&&b===q.length-1?void a.pause():p.select(q[b],"prev")},p.removeSlide=function(b){var c=i(b),d=t.indexOf(q[c]);-1!==d&&t.splice(d,1),q.splice(c,1),q.length>0&&s===c?c>=q.length?(s=q.length-1,a.active=s,g(s),p.select(q[q.length-1])):(s=c,a.active=s,g(s),p.select(q[c])):s>c&&(s--,a.active=s),0===q.length&&(s=null,a.active=null,f())},p.select=a.select=function(b,c){var d=i(b.slide);void 0===c&&(c=d>p.getCurrentIndex()?"next":"prev"),b.slide.index===s||a.$currentTransition?b&&b.slide.index!==s&&a.$currentTransition&&t.push(q[d]):h(b.slide,d,c)},a.indexOfSlide=function(a){return+a.slide.index},a.isActive=function(b){return a.active===b.slide.index},a.isPrevDisabled=function(){return 0===a.active&&a.noWrap()},a.isNextDisabled=function(){return a.active===q.length-1&&a.noWrap()},a.pause=function(){a.noPause||(o=!1,j())},a.play=function(){o||(o=!0,l())},b.on("mouseenter",a.pause),b.on("mouseleave",a.play),a.$on("$destroy",function(){u=!0,j()}),a.$watch("noTransition",function(a){e.enabled(b,!a)}),a.$watch("interval",l),a.$watchCollection("slides",k),a.$watch("active",function(a){if(angular.isNumber(a)&&s!==a){for(var b=0;b<q.length;b++)if(q[b].slide.index===a){a=b;break}var c=q[a];c&&(g(a),p.select(q[a]),s=a)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(a,b){return b.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(a){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(b,c,d,e){c.addClass("item"),e.addSlide(b,c),b.$on("$destroy",function(){e.removeSlide(b)}),b.$watch("active",function(b){a[b?"addClass":"removeClass"](c,"active")})}}}]).animation(".item",["$animateCss",function(a){function b(a,b,c){a.removeClass(b),c&&c()}var c="uib-slideDirection";return{beforeAddClass:function(d,e,f){if("active"===e){var g=!1,h=d.data(c),i="next"===h?"left":"right",j=b.bind(this,d,i+" "+h,f);return d.addClass(h),a(d,{addClass:i}).start().done(j),function(){g=!0}}f()},beforeRemoveClass:function(d,e,f){if("active"===e){var g=!1,h=d.data(c),i="next"===h?"left":"right",j=b.bind(this,d,i,f);return a(d,{addClass:i}).start().done(j),function(){g=!0}}f()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(a,b,c,d,e){function f(a){return e(s,{key:a},!0)[0]}function g(a){var b=[],c=a.split(""),e=a.indexOf("'");if(e>-1){var f=!1;a=a.split("");for(var g=e;g<a.length;g++)f?("'"===a[g]&&(g+1<a.length&&"'"===a[g+1]?(a[g+1]="$",c[g+1]=""):(c[g]="",f=!1)),a[g]="$"):"'"===a[g]&&(a[g]="$",c[g]="",f=!0);a=a.join("")}return angular.forEach(s,function(d){var e=a.indexOf(d.key);if(e>-1){a=a.split(""),c[e]="("+d.regex+")",a[e]="$";for(var f=e+1,g=e+d.key.length;g>f;f++)c[f]="",a[f]="$";a=a.join(""),b.push({index:e,key:d.key,apply:d.apply,matcher:d.regex})}}),{regex:new RegExp("^"+c.join("")+"$"),map:d(b,"index")}}function h(a){for(var b,c,d=[],e=0;e<a.length;)if(angular.isNumber(c)){if("'"===a.charAt(e))(e+1>=a.length||"'"!==a.charAt(e+1))&&(d.push(i(a,c,e)),c=null);else if(e===a.length)for(;c<a.length;)b=j(a,c),d.push(b),c=b.endIdx;e++}else"'"!==a.charAt(e)?(b=j(a,e),d.push(b.parser),e=b.endIdx):(c=e,e++);return d}function i(a,b,c){return function(){return a.substr(b+1,c-b-1)}}function j(a,b){for(var c=a.substr(b),d=0;d<s.length;d++)if(new RegExp("^"+s[d].key).test(c)){var e=s[d];return{endIdx:b+e.key.length,parser:e.formatter}}return{endIdx:b+1,parser:function(){return c.charAt(0)}}}function k(a,b,c){return 1>c?!1:1===b&&c>28?29===c&&(a%4===0&&a%100!==0||a%400===0):3===b||5===b||8===b||10===b?31>c:!0}function l(a){return parseInt(a,10)}function m(a,b){return a&&b?q(a,b):a}function n(a,b){return a&&b?q(a,b,!0):a}function o(a,b){a=a.replace(/:/g,"");var c=Date.parse("Jan 01, 1970 00:00:00 "+a)/6e4;return isNaN(c)?b:c}function p(a,b){return a=new Date(a.getTime()),a.setMinutes(a.getMinutes()+b),a}function q(a,b,c){c=c?-1:1;var d=a.getTimezoneOffset(),e=o(b,d);return p(a,c*(e-d))}var r,s,t=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){r=b.id,this.parsers={},this.formatters={},s=[{key:"yyyy",regex:"\\d{4}",apply:function(a){this.year=+a},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(a){a=+a,this.year=69>a?a+2e3:a+1900},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(a){this.year=+a},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(a){this.month=a-1},formatter:function(a){var b=a.getMonth();return/^[0-9]$/.test(b)?c(a,"MM"):c(a,"M")}},{key:"MMMM",regex:b.DATETIME_FORMATS.MONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.MONTH.indexOf(a)},formatter:function(a){return c(a,"MMMM")}},{key:"MMM",regex:b.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.SHORTMONTH.indexOf(a)},formatter:function(a){return c(a,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(a){this.month=a-1},formatter:function(a){return c(a,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(a){this.month=a-1},formatter:function(a){return c(a,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a},formatter:function(a){var b=a.getDate();return/^[1-9]$/.test(b)?c(a,"dd"):c(a,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a},formatter:function(a){return c(a,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(a){this.date=+a},formatter:function(a){return c(a,"d")}},{key:"EEEE",regex:b.DATETIME_FORMATS.DAY.join("|"),formatter:function(a){return c(a,"EEEE")}},{key:"EEE",regex:b.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(a){return c(a,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(a){this.hours=+a},formatter:function(a){return c(a,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(a){this.hours=+a},formatter:function(a){return c(a,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(a){this.hours=+a},formatter:function(a){return c(a,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(a){this.hours=+a},formatter:function(a){return c(a,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(a){this.minutes=+a},formatter:function(a){return c(a,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(a){this.minutes=+a},formatter:function(a){return c(a,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(a){this.milliseconds=+a},formatter:function(a){return c(a,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(a){this.seconds=+a},formatter:function(a){return c(a,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(a){this.seconds=+a},formatter:function(a){return c(a,"s")}},{key:"a",regex:b.DATETIME_FORMATS.AMPMS.join("|"),apply:function(a){12===this.hours&&(this.hours=0),"PM"===a&&(this.hours+=12)},formatter:function(a){return c(a,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(a){var b=a.match(/([+-])(\d{2})(\d{2})/),c=b[1],d=b[2],e=b[3];this.hours+=l(c+d),this.minutes+=l(c+e)},formatter:function(a){return c(a,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(a){return c(a,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(a){return c(a,"w")}},{key:"GGGG",regex:b.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(a){return c(a,"GGGG")}},{key:"GGG",regex:b.DATETIME_FORMATS.ERAS.join("|"),formatter:function(a){return c(a,"GGG")}},{key:"GG",regex:b.DATETIME_FORMATS.ERAS.join("|"),formatter:function(a){return c(a,"GG")}},{key:"G",regex:b.DATETIME_FORMATS.ERAS.join("|"),formatter:function(a){return c(a,"G")}}],angular.version.major>=1&&angular.version.minor>4&&s.push({key:"LLLL",regex:b.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(a){this.month=b.DATETIME_FORMATS.STANDALONEMONTH.indexOf(a)},formatter:function(a){return c(a,"LLLL")}})},this.init(),this.getParser=function(a){var b=f(a);return b&&b.apply||null},this.overrideParser=function(a,b){var c=f(a);c&&angular.isFunction(b)&&(this.parsers={},c.apply=b)}.bind(this),this.filter=function(a,c){if(!angular.isDate(a)||isNaN(a)||!c)return"";c=b.DATETIME_FORMATS[c]||c,b.id!==r&&this.init(),this.formatters[c]||(this.formatters[c]=h(c));var d=this.formatters[c];return d.reduce(function(b,c){return b+c(a)},"")},this.parse=function(c,d,e){if(!angular.isString(c)||!d)return c;d=b.DATETIME_FORMATS[d]||d,d=d.replace(t,"\\$&"),b.id!==r&&this.init(),this.parsers[d]||(this.parsers[d]=g(d,"apply"));var f=this.parsers[d],h=f.regex,i=f.map,j=c.match(h),l=!1;if(j&&j.length){var m,n;angular.isDate(e)&&!isNaN(e.getTime())?m={year:e.getFullYear(),month:e.getMonth(),date:e.getDate(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds(),milliseconds:e.getMilliseconds()}:(e&&a.warn("dateparser:","baseDate is not a valid date"),m={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var o=1,p=j.length;p>o;o++){var q=i[o-1];"Z"===q.matcher&&(l=!0),q.apply&&q.apply.call(m,j[o])}var s=l?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,u=l?Date.prototype.setUTCHours:Date.prototype.setHours;return k(m.year,m.month,m.date)&&(!angular.isDate(e)||isNaN(e.getTime())||l?(n=new Date(0),s.call(n,m.year,m.month,m.date),u.call(n,m.hours||0,m.minutes||0,m.seconds||0,m.milliseconds||0)):(n=new Date(e),s.call(n,m.year,m.month,m.date),u.call(n,m.hours,m.minutes,m.seconds,m.milliseconds))),n}},this.toTimezone=m,this.fromTimezone=n,this.timezoneToOffset=o,this.addDateMinutes=p,this.convertTimezoneToLocal=q}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(a){var b=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,c=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(d,e){function f(a,b,c){i.push(a),j.push({scope:a,element:b}),o.forEach(function(b,c){g(b,a)}),a.$on("$destroy",h)}function g(b,d){var e=b.match(c),f=d.$eval(e[1]),g=e[2],h=k[b];if(!h){var i=function(b){var c=null;j.some(function(a){var d=a.scope.$eval(m);return d===b?(c=a,!0):void 0}),h.lastActivated!==c&&(h.lastActivated&&a.removeClass(h.lastActivated.element,f),c&&a.addClass(c.element,f),h.lastActivated=c)};k[b]=h={lastActivated:null,scope:d,watchFn:i,compareWithExp:g,watcher:d.$watch(g,i)}}h.watchFn(d.$eval(g))}function h(a){var b=a.targetScope,c=i.indexOf(b);if(i.splice(c,1),j.splice(c,1),i.length){var d=i[0];angular.forEach(k,function(a){a.scope===b&&(a.watcher=d.$watch(a.compareWithExp,a.watchFn),a.scope=d)})}else k={}}var i=[],j=[],k={},l=e.uibIsClass.match(b),m=l[2],n=l[1],o=n.split(",");return f}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(b){a.datepickerMode=b,a.datepickerOptions.datepickerMode=b}var n=this,o={$setViewValue:angular.noop},p={},q=[];b.addClass("uib-datepicker"),c.$set("role","application"),a.datepickerOptions||(a.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(b){switch(b){case"customClass":case"dateDisabled":a[b]=a.datepickerOptions[b]||angular.noop;break;case"datepickerMode":a.datepickerMode=angular.isDefined(a.datepickerOptions.datepickerMode)?a.datepickerOptions.datepickerMode:i.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":n[b]=angular.isDefined(a.datepickerOptions[b])?e(a.datepickerOptions[b])(a.$parent):i[b];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":n[b]=angular.isDefined(a.datepickerOptions[b])?a.datepickerOptions[b]:i[b];break;case"startingDay":angular.isDefined(a.datepickerOptions.startingDay)?n.startingDay=a.datepickerOptions.startingDay:angular.isNumber(i.startingDay)?n.startingDay=i.startingDay:n.startingDay=(f.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":a.$watch("datepickerOptions."+b,function(a){a?angular.isDate(a)?n[b]=l.fromTimezone(new Date(a),p.timezone):(j&&g.warn("Literal date support has been deprecated, please switch to date object usage"),n[b]=new Date(h(a,"medium"))):n[b]=i[b]?l.fromTimezone(new Date(i[b]),p.timezone):null,n.refreshView()});break;case"maxMode":case"minMode":a.datepickerOptions[b]?a.$watch(function(){return a.datepickerOptions[b]},function(c){n[b]=a[b]=angular.isDefined(c)?c:a.datepickerOptions[b],("minMode"===b&&n.modes.indexOf(a.datepickerOptions.datepickerMode)<n.modes.indexOf(n[b])||"maxMode"===b&&n.modes.indexOf(a.datepickerOptions.datepickerMode)>n.modes.indexOf(n[b]))&&(a.datepickerMode=n[b],a.datepickerOptions.datepickerMode=n[b])}):n[b]=a[b]=i[b]||null}}),a.uniqueId="datepicker-"+a.$id+"-"+Math.floor(1e4*Math.random()),a.disabled=angular.isDefined(c.disabled)||!1,angular.isDefined(c.ngDisabled)&&q.push(a.$parent.$watch(c.ngDisabled,function(b){a.disabled=b,n.refreshView()})),a.isActive=function(b){return 0===n.compare(b.date,n.activeDate)?(a.activeDateId=b.uid,!0):!1},this.init=function(b){o=b,p=b.$options||a.datepickerOptions.ngModelOptions||i.ngModelOptions,a.datepickerOptions.initDate?(n.activeDate=l.fromTimezone(a.datepickerOptions.initDate,p.timezone)||new Date,a.$watch("datepickerOptions.initDate",function(a){a&&(o.$isEmpty(o.$modelValue)||o.$invalid)&&(n.activeDate=l.fromTimezone(a,p.timezone),n.refreshView())})):n.activeDate=new Date;var c=o.$modelValue?new Date(o.$modelValue):new Date;this.activeDate=isNaN(c)?l.fromTimezone(new Date,p.timezone):l.fromTimezone(c,p.timezone),o.$render=function(){n.render()}},this.render=function(){if(o.$viewValue){var a=new Date(o.$viewValue),b=!isNaN(a);b?this.activeDate=l.fromTimezone(a,p.timezone):k||g.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){a.selectedDt=null,this._refreshView(),a.activeDt&&(a.activeDateId=a.activeDt.uid);var b=o.$viewValue?new Date(o.$viewValue):null;b=l.fromTimezone(b,p.timezone),o.$setValidity("dateDisabled",!b||this.element&&!this.isDisabled(b))}},this.createDateObject=function(b,c){var d=o.$viewValue?new Date(o.$viewValue):null;d=l.fromTimezone(d,p.timezone);var e=new Date;e=l.fromTimezone(e,p.timezone);var f=this.compare(b,e),g={date:b,label:l.filter(b,c),selected:d&&0===this.compare(b,d),disabled:this.isDisabled(b),past:0>f,current:0===f,future:f>0,customClass:this.customClass(b)||null};return d&&0===this.compare(b,d)&&(a.selectedDt=g),n.activeDate&&0===this.compare(g.date,n.activeDate)&&(a.activeDt=g),g},this.isDisabled=function(b){return a.disabled||this.minDate&&this.compare(b,this.minDate)<0||this.maxDate&&this.compare(b,this.maxDate)>0||a.dateDisabled&&a.dateDisabled({date:b,mode:a.datepickerMode})},this.customClass=function(b){return a.customClass({date:b,mode:a.datepickerMode})},this.split=function(a,b){for(var c=[];a.length>0;)c.push(a.splice(0,b));return c},a.select=function(b){if(a.datepickerMode===n.minMode){var c=o.$viewValue?l.fromTimezone(new Date(o.$viewValue),p.timezone):new Date(0,0,0,0,0,0,0);c.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()),c=l.toTimezone(c,p.timezone),o.$setViewValue(c),o.$render()}else n.activeDate=b,m(n.modes[n.modes.indexOf(a.datepickerMode)-1]),a.$emit("uib:datepicker.mode");a.$broadcast("uib:datepicker.focus")},a.move=function(a){var b=n.activeDate.getFullYear()+a*(n.step.years||0),c=n.activeDate.getMonth()+a*(n.step.months||0);n.activeDate.setFullYear(b,c,1),n.refreshView()},a.toggleMode=function(b){b=b||1,a.datepickerMode===n.maxMode&&1===b||a.datepickerMode===n.minMode&&-1===b||(m(n.modes[n.modes.indexOf(a.datepickerMode)+b]),a.$emit("uib:datepicker.mode"))},a.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var r=function(){n.element[0].focus()};a.$on("uib:datepicker.focus",r),a.keydown=function(b){var c=a.keys[b.which];if(c&&!b.shiftKey&&!b.altKey&&!a.disabled)if(b.preventDefault(),n.shortcutPropagation||b.stopPropagation(),"enter"===c||"space"===c){if(n.isDisabled(n.activeDate))return;a.select(n.activeDate)}else!b.ctrlKey||"up"!==c&&"down"!==c?(n.handleKeyDown(c,b),n.refreshView()):a.toggleMode("up"===c?1:-1)},b.on("keydown",function(b){a.$apply(function(){a.keydown(b)})}),a.$on("$destroy",function(){for(;q.length;)q.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(a,b,c){function d(a,b){return 1!==b||a%4!==0||a%100===0&&a%400!==0?f[b]:29}function e(a){var b=new Date(a);b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1}var f=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=b,this.init=function(b){angular.extend(b,this),a.showWeeks=b.showWeeks,b.refreshView()},this.getDates=function(a,b){for(var c,d=new Array(b),e=new Date(a),f=0;b>f;)c=new Date(e),d[f++]=c,e.setDate(e.getDate()+1);return d},this._refreshView=function(){var b=this.activeDate.getFullYear(),d=this.activeDate.getMonth(),f=new Date(this.activeDate);f.setFullYear(b,d,1);var g=this.startingDay-f.getDay(),h=g>0?7-g:-g,i=new Date(f);h>0&&i.setDate(-h+1);for(var j=this.getDates(i,42),k=0;42>k;k++)j[k]=angular.extend(this.createDateObject(j[k],this.formatDay),{secondary:j[k].getMonth()!==d,uid:a.uniqueId+"-"+k});a.labels=new Array(7);for(var l=0;7>l;l++)a.labels[l]={abbr:c(j[l].date,this.formatDayHeader),full:c(j[l].date,"EEEE")};if(a.title=c(this.activeDate,this.formatDayTitle),a.rows=this.split(j,7),a.showWeeks){a.weekNumbers=[];for(var m=(11-this.startingDay)%7,n=a.rows.length,o=0;n>o;o++)a.weekNumbers.push(e(a.rows[o][m].date))}},this.compare=function(a,b){var c=new Date(a.getFullYear(),a.getMonth(),a.getDate()),d=new Date(b.getFullYear(),b.getMonth(),b.getDate());return c.setFullYear(a.getFullYear()),d.setFullYear(b.getFullYear()),c-d},this.handleKeyDown=function(a,b){var c=this.activeDate.getDate();if("left"===a)c-=1;else if("up"===a)c-=7;else if("right"===a)c+=1;else if("down"===a)c+=7;else if("pageup"===a||"pagedown"===a){var e=this.activeDate.getMonth()+("pageup"===a?-1:1);this.activeDate.setMonth(e,1),c=Math.min(d(this.activeDate.getFullYear(),this.activeDate.getMonth()),c)}else"home"===a?c=1:"end"===a&&(c=d(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(c)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(a,b,c){this.step={years:1},this.element=b,this.init=function(a){angular.extend(a,this),a.refreshView()},this._refreshView=function(){for(var b,d=new Array(12),e=this.activeDate.getFullYear(),f=0;12>f;f++)b=new Date(this.activeDate),b.setFullYear(e,f,1),d[f]=angular.extend(this.createDateObject(b,this.formatMonth),{uid:a.uniqueId+"-"+f});a.title=c(this.activeDate,this.formatMonthTitle),a.rows=this.split(d,this.monthColumns),a.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1},this.compare=function(a,b){var c=new Date(a.getFullYear(),a.getMonth()),d=new Date(b.getFullYear(),b.getMonth());return c.setFullYear(a.getFullYear()),d.setFullYear(b.getFullYear()),c-d},this.handleKeyDown=function(a,b){var c=this.activeDate.getMonth();if("left"===a)c-=1;else if("up"===a)c-=this.monthColumns;else if("right"===a)c+=1;else if("down"===a)c+=this.monthColumns;else if("pageup"===a||"pagedown"===a){var d=this.activeDate.getFullYear()+("pageup"===a?-1:1);this.activeDate.setFullYear(d)}else"home"===a?c=0:"end"===a&&(c=11);this.activeDate.setMonth(c)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(a,b,c){function d(a){return parseInt((a-1)/f,10)*f+1}var e,f;this.element=b,this.yearpickerInit=function(){e=this.yearColumns,f=this.yearRows*e,this.step={years:f}},this._refreshView=function(){for(var b,c=new Array(f),g=0,h=d(this.activeDate.getFullYear());f>g;g++)b=new Date(this.activeDate),b.setFullYear(h+g,0,1),c[g]=angular.extend(this.createDateObject(b,this.formatYear),{uid:a.uniqueId+"-"+g});a.title=[c[0].label,c[f-1].label].join(" - "),a.rows=this.split(c,e),a.columns=e},this.compare=function(a,b){return a.getFullYear()-b.getFullYear()},this.handleKeyDown=function(a,b){var c=this.activeDate.getFullYear();"left"===a?c-=1:"up"===a?c-=e:"right"===a?c+=1:"down"===a?c+=e:"pageup"===a||"pagedown"===a?c+=("pageup"===a?-1:1)*f:"home"===a?c=d(this.activeDate.getFullYear()):"end"===a&&(c=d(this.activeDate.getFullYear())+f-1),this.activeDate.setFullYear(c)}}]).directive("uibDatepicker",function(){return{templateUrl:function(a,b){return b.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}).directive("uibDaypicker",function(){return{templateUrl:function(a,b){return b.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(a,b){return b.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive("uibYearpicker",function(){return{templateUrl:function(a,b){return b.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(a,b,c,d){var e=d[0];angular.extend(e,d[1]),e.yearpickerInit(),e.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(a,b){var c,d,e={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},f={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},g=/(HTML|BODY)/;return{getRawNode:function(a){return a.nodeName?a:a[0]||a},parseStyle:function(a){return a=parseFloat(a),isFinite(a)?a:0},offsetParent:function(c){function d(a){return"static"===(b.getComputedStyle(a).position||"static")}c=this.getRawNode(c);for(var e=c.offsetParent||a[0].documentElement;e&&e!==a[0].documentElement&&d(e);)e=e.offsetParent;return e||a[0].documentElement},scrollbarWidth:function(e){if(e){if(angular.isUndefined(d)){var f=a.find("body");f.addClass("uib-position-body-scrollbar-measure"),
-d=b.innerWidth-f[0].clientWidth,d=isFinite(d)?d:0,f.removeClass("uib-position-body-scrollbar-measure")}return d}if(angular.isUndefined(c)){var g=angular.element('<div class="uib-position-scrollbar-measure"></div>');a.find("body").append(g),c=g[0].offsetWidth-g[0].clientWidth,c=isFinite(c)?c:0,g.remove()}return c},scrollbarPadding:function(a){a=this.getRawNode(a);var c=b.getComputedStyle(a),d=this.parseStyle(c.paddingRight),e=this.parseStyle(c.paddingBottom),f=this.scrollParent(a,!1,!0),h=this.scrollbarWidth(g.test(f.tagName));return{scrollbarWidth:h,widthOverflow:f.scrollWidth>f.clientWidth,right:d+h,originalRight:d,heightOverflow:f.scrollHeight>f.clientHeight,bottom:e+h,originalBottom:e}},isScrollable:function(a,c){a=this.getRawNode(a);var d=c?e.hidden:e.normal,f=b.getComputedStyle(a);return d.test(f.overflow+f.overflowY+f.overflowX)},scrollParent:function(c,d,f){c=this.getRawNode(c);var g=d?e.hidden:e.normal,h=a[0].documentElement,i=b.getComputedStyle(c);if(f&&g.test(i.overflow+i.overflowY+i.overflowX))return c;var j="absolute"===i.position,k=c.parentElement||h;if(k===h||"fixed"===i.position)return h;for(;k.parentElement&&k!==h;){var l=b.getComputedStyle(k);if(j&&"static"!==l.position&&(j=!1),!j&&g.test(l.overflow+l.overflowY+l.overflowX))break;k=k.parentElement}return k},position:function(c,d){c=this.getRawNode(c);var e=this.offset(c);if(d){var f=b.getComputedStyle(c);e.top-=this.parseStyle(f.marginTop),e.left-=this.parseStyle(f.marginLeft)}var g=this.offsetParent(c),h={top:0,left:0};return g!==a[0].documentElement&&(h=this.offset(g),h.top+=g.clientTop-g.scrollTop,h.left+=g.clientLeft-g.scrollLeft),{width:Math.round(angular.isNumber(e.width)?e.width:c.offsetWidth),height:Math.round(angular.isNumber(e.height)?e.height:c.offsetHeight),top:Math.round(e.top-h.top),left:Math.round(e.left-h.left)}},offset:function(c){c=this.getRawNode(c);var d=c.getBoundingClientRect();return{width:Math.round(angular.isNumber(d.width)?d.width:c.offsetWidth),height:Math.round(angular.isNumber(d.height)?d.height:c.offsetHeight),top:Math.round(d.top+(b.pageYOffset||a[0].documentElement.scrollTop)),left:Math.round(d.left+(b.pageXOffset||a[0].documentElement.scrollLeft))}},viewportOffset:function(c,d,e){c=this.getRawNode(c),e=e!==!1;var f=c.getBoundingClientRect(),g={top:0,left:0,bottom:0,right:0},h=d?a[0].documentElement:this.scrollParent(c),i=h.getBoundingClientRect();if(g.top=i.top+h.clientTop,g.left=i.left+h.clientLeft,h===a[0].documentElement&&(g.top+=b.pageYOffset,g.left+=b.pageXOffset),g.bottom=g.top+h.clientHeight,g.right=g.left+h.clientWidth,e){var j=b.getComputedStyle(h);g.top+=this.parseStyle(j.paddingTop),g.bottom-=this.parseStyle(j.paddingBottom),g.left+=this.parseStyle(j.paddingLeft),g.right-=this.parseStyle(j.paddingRight)}return{top:Math.round(f.top-g.top),bottom:Math.round(g.bottom-f.bottom),left:Math.round(f.left-g.left),right:Math.round(g.right-f.right)}},parsePlacement:function(a){var b=f.auto.test(a);return b&&(a=a.replace(f.auto,"")),a=a.split("-"),a[0]=a[0]||"top",f.primary.test(a[0])||(a[0]="top"),a[1]=a[1]||"center",f.secondary.test(a[1])||(a[1]="center"),b?a[2]=!0:a[2]=!1,a},positionElements:function(a,c,d,e){a=this.getRawNode(a),c=this.getRawNode(c);var g=angular.isDefined(c.offsetWidth)?c.offsetWidth:c.prop("offsetWidth"),h=angular.isDefined(c.offsetHeight)?c.offsetHeight:c.prop("offsetHeight");d=this.parsePlacement(d);var i=e?this.offset(a):this.position(a),j={top:0,left:0,placement:""};if(d[2]){var k=this.viewportOffset(a,e),l=b.getComputedStyle(c),m={width:g+Math.round(Math.abs(this.parseStyle(l.marginLeft)+this.parseStyle(l.marginRight))),height:h+Math.round(Math.abs(this.parseStyle(l.marginTop)+this.parseStyle(l.marginBottom)))};if(d[0]="top"===d[0]&&m.height>k.top&&m.height<=k.bottom?"bottom":"bottom"===d[0]&&m.height>k.bottom&&m.height<=k.top?"top":"left"===d[0]&&m.width>k.left&&m.width<=k.right?"right":"right"===d[0]&&m.width>k.right&&m.width<=k.left?"left":d[0],d[1]="top"===d[1]&&m.height-i.height>k.bottom&&m.height-i.height<=k.top?"bottom":"bottom"===d[1]&&m.height-i.height>k.top&&m.height-i.height<=k.bottom?"top":"left"===d[1]&&m.width-i.width>k.right&&m.width-i.width<=k.left?"right":"right"===d[1]&&m.width-i.width>k.left&&m.width-i.width<=k.right?"left":d[1],"center"===d[1])if(f.vertical.test(d[0])){var n=i.width/2-g/2;k.left+n<0&&m.width-i.width<=k.right?d[1]="left":k.right+n<0&&m.width-i.width<=k.left&&(d[1]="right")}else{var o=i.height/2-m.height/2;k.top+o<0&&m.height-i.height<=k.bottom?d[1]="top":k.bottom+o<0&&m.height-i.height<=k.top&&(d[1]="bottom")}}switch(d[0]){case"top":j.top=i.top-h;break;case"bottom":j.top=i.top+i.height;break;case"left":j.left=i.left-g;break;case"right":j.left=i.left+i.width}switch(d[1]){case"top":j.top=i.top;break;case"bottom":j.top=i.top+i.height-h;break;case"left":j.left=i.left;break;case"right":j.left=i.left+i.width-g;break;case"center":f.vertical.test(d[0])?j.left=i.left+i.width/2-g/2:j.top=i.top+i.height/2-h/2}return j.top=Math.round(j.top),j.left=Math.round(j.left),j.placement="center"===d[1]?d[0]:d[0]+"-"+d[1],j},adjustTop:function(a,b,c,d){return-1!==a.indexOf("top")&&c!==d?{top:b.top-d+"px"}:void 0},positionArrow:function(a,c){a=this.getRawNode(a);var d=a.querySelector(".tooltip-inner, .popover-inner");if(d){var e=angular.element(d).hasClass("tooltip-inner"),g=e?a.querySelector(".tooltip-arrow"):a.querySelector(".arrow");if(g){var h={top:"",bottom:"",left:"",right:""};if(c=this.parsePlacement(c),"center"===c[1])return void angular.element(g).css(h);var i="border-"+c[0]+"-width",j=b.getComputedStyle(g)[i],k="border-";k+=f.vertical.test(c[0])?c[0]+"-"+c[1]:c[1]+"-"+c[0],k+="-radius";var l=b.getComputedStyle(e?d:a)[k];switch(c[0]){case"top":h.bottom=e?"0":"-"+j;break;case"bottom":h.top=e?"0":"-"+j;break;case"left":h.right=e?"0":"-"+j;break;case"right":h.left=e?"0":"-"+j}h[c[1]]=l,angular.element(g).css(h)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(b){var c=l.parse(b,w,a.date);if(isNaN(c))for(var d=0;d<I.length;d++)if(c=l.parse(b,I[d],a.date),!isNaN(c))return c;return c}function r(a){if(angular.isNumber(a)&&(a=new Date(a)),!a)return null;if(angular.isDate(a)&&!isNaN(a))return a;if(angular.isString(a)){var b=q(a);if(!isNaN(b))return l.toTimezone(b,G.timezone)}return F.$options&&F.$options.allowInvalid?a:void 0}function s(a,b){var d=a||b;return c.ngRequired||d?(angular.isNumber(d)&&(d=new Date(d)),d?angular.isDate(d)&&!isNaN(d)?!0:angular.isString(d)?!isNaN(q(d)):!1:!0):!0}function t(c){if(a.isOpen||!a.disabled){var d=H[0],e=b[0].contains(c.target),f=void 0!==d.contains&&d.contains(c.target);!a.isOpen||e||f||a.$apply(function(){a.isOpen=!1})}}function u(c){27===c.which&&a.isOpen?(c.preventDefault(),c.stopPropagation(),a.$apply(function(){a.isOpen=!1}),b[0].focus()):40!==c.which||a.isOpen||(c.preventDefault(),c.stopPropagation(),a.$apply(function(){a.isOpen=!0}))}function v(){if(a.isOpen){var d=angular.element(H[0].querySelector(".uib-datepicker-popup")),e=c.popupPlacement?c.popupPlacement:m.placement,f=j.positionElements(b,d,e,y);d.css({top:f.top+"px",left:f.left+"px"}),d.hasClass("uib-position-measure")&&d.removeClass("uib-position-measure")}}var w,x,y,z,A,B,C,D,E,F,G,H,I,J=!1,K=[];this.init=function(e){if(F=e,G=angular.isObject(e.$options)?e.$options:{timezone:null},x=angular.isDefined(c.closeOnDateSelection)?a.$parent.$eval(c.closeOnDateSelection):m.closeOnDateSelection,y=angular.isDefined(c.datepickerAppendToBody)?a.$parent.$eval(c.datepickerAppendToBody):m.appendToBody,z=angular.isDefined(c.onOpenFocus)?a.$parent.$eval(c.onOpenFocus):m.onOpenFocus,A=angular.isDefined(c.datepickerPopupTemplateUrl)?c.datepickerPopupTemplateUrl:m.datepickerPopupTemplateUrl,B=angular.isDefined(c.datepickerTemplateUrl)?c.datepickerTemplateUrl:m.datepickerTemplateUrl,I=angular.isDefined(c.altInputFormats)?a.$parent.$eval(c.altInputFormats):m.altInputFormats,a.showButtonBar=angular.isDefined(c.showButtonBar)?a.$parent.$eval(c.showButtonBar):m.showButtonBar,m.html5Types[c.type]?(w=m.html5Types[c.type],J=!0):(w=c.uibDatepickerPopup||m.datepickerPopup,c.$observe("uibDatepickerPopup",function(a,b){var c=a||m.datepickerPopup;if(c!==w&&(w=c,F.$modelValue=null,!w))throw new Error("uibDatepickerPopup must have a date format specified.")})),!w)throw new Error("uibDatepickerPopup must have a date format specified.");if(J&&c.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");C=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),C.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":A}),D=angular.element(C.children()[0]),D.attr("template-url",B),a.datepickerOptions||(a.datepickerOptions={}),J&&"month"===c.type&&(a.datepickerOptions.datepickerMode="month",a.datepickerOptions.minMode="month"),D.attr("datepicker-options","datepickerOptions"),J?F.$formatters.push(function(b){return a.date=l.fromTimezone(b,G.timezone),b}):(F.$$parserName="date",F.$validators.date=s,F.$parsers.unshift(r),F.$formatters.push(function(b){return F.$isEmpty(b)?(a.date=b,b):(angular.isNumber(b)&&(b=new Date(b)),a.date=l.fromTimezone(b,G.timezone),l.filter(a.date,w))})),F.$viewChangeListeners.push(function(){a.date=q(F.$viewValue)}),b.on("keydown",u),H=d(C)(a),C.remove(),y?h.find("body").append(H):b.after(H),a.$on("$destroy",function(){for(a.isOpen===!0&&(i.$$phase||a.$apply(function(){a.isOpen=!1})),H.remove(),b.off("keydown",u),h.off("click",t),E&&E.off("scroll",v),angular.element(g).off("resize",v);K.length;)K.shift()()})},a.getText=function(b){return a[b+"Text"]||m[b+"Text"]},a.isDisabled=function(b){"today"===b&&(b=l.fromTimezone(new Date,G.timezone));var c={};return angular.forEach(["minDate","maxDate"],function(b){a.datepickerOptions[b]?angular.isDate(a.datepickerOptions[b])?c[b]=new Date(a.datepickerOptions[b]):(p&&e.warn("Literal date support has been deprecated, please switch to date object usage"),c[b]=new Date(k(a.datepickerOptions[b],"medium"))):c[b]=null}),a.datepickerOptions&&c.minDate&&a.compare(b,c.minDate)<0||c.maxDate&&a.compare(b,c.maxDate)>0},a.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate())-new Date(b.getFullYear(),b.getMonth(),b.getDate())},a.dateSelection=function(c){a.date=c;var d=a.date?l.filter(a.date,w):null;b.val(d),F.$setViewValue(d),x&&(a.isOpen=!1,b[0].focus())},a.keydown=function(c){27===c.which&&(c.stopPropagation(),a.isOpen=!1,b[0].focus())},a.select=function(b,c){if(c.stopPropagation(),"today"===b){var d=new Date;angular.isDate(a.date)?(b=new Date(a.date),b.setFullYear(d.getFullYear(),d.getMonth(),d.getDate())):(b=l.fromTimezone(d,G.timezone),b.setHours(0,0,0,0))}a.dateSelection(b)},a.close=function(c){c.stopPropagation(),a.isOpen=!1,b[0].focus()},a.disabled=angular.isDefined(c.disabled)||!1,c.ngDisabled&&K.push(a.$parent.$watch(f(c.ngDisabled),function(b){a.disabled=b})),a.$watch("isOpen",function(d){d?a.disabled?a.isOpen=!1:n(function(){v(),z&&a.$broadcast("uib:datepicker.focus"),h.on("click",t);var d=c.popupPlacement?c.popupPlacement:m.placement;y||j.parsePlacement(d)[2]?(E=E||angular.element(j.scrollParent(b)),E&&E.on("scroll",v)):E=null,angular.element(g).on("resize",v)},0,!1):(h.off("click",t),E&&E.off("scroll",v),angular.element(g).off("resize",v))}),a.$on("uib:datepicker.mode",function(){n(v,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(a){return function(b,c){var d;return function(){var e=this,f=Array.prototype.slice.call(arguments);d&&a.cancel(d),d=a(function(){b.apply(e,f)},c)}}}]),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var a={};return{entries:function(){return Object.keys(a).map(function(b){return{key:b,value:a[b]}})},get:function(b){return a[b]},hasKey:function(b){return!!a[b]},keys:function(){return Object.keys(a)},put:function(b,c){a[b]||(a[b]=[]),a[b].push(c)},remove:function(b,c){var d=a[b];if(d){var e=d.indexOf(c);-1!==e&&d.splice(e,1),d.length||delete a[b]}}}}}}),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(a,b,c){var d=null,e=c.createNew();this.isOnlyOpen=function(a,b){var c=e.get(b);if(c){var d=c.reduce(function(b,c){return c.scope===a?c:b},{});if(d)return 1===c.length}return!1},this.open=function(b,c,g){if(d||a.on("click",f),d&&d!==b&&(d.isOpen=!1),d=b,g){var h=e.get(g);if(h){var i=h.map(function(a){return a.scope});-1===i.indexOf(b)&&e.put(g,{scope:b})}else e.put(g,{scope:b})}},this.close=function(b,c,g){if(d===b&&(a.off("click",f),a.off("keydown",this.keybindFilter),d=null),g){var h=e.get(g);if(h){var i=h.reduce(function(a,c){return c.scope===b?c:a},{});i&&e.remove(g,i)}}};var f=function(a){if(d&&!(a&&"disabled"===d.getAutoClose()||a&&3===a.which)){var c=d.getToggleElement();if(!(a&&c&&c[0].contains(a.target))){var e=d.getDropdownElement();a&&"outsideClick"===d.getAutoClose()&&e&&e[0].contains(a.target)||(d.focusToggleElement(),d.isOpen=!1,b.$$phase||d.$apply())}}};this.keybindFilter=function(a){if(d){var b=d.getDropdownElement(),c=d.getToggleElement(),e=b&&b[0].contains(a.target),g=c&&c[0].contains(a.target);27===a.which?(a.stopPropagation(),d.focusToggleElement(),f()):d.isKeynavEnabled()&&-1!==[38,40].indexOf(a.which)&&d.isOpen&&(e||g)&&(a.preventDefault(),a.stopPropagation(),d.focusDropdownEntry(a.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(a,b,c,d,e,f,g,h,i,j,k){var l,m,n=this,o=a.$new(),p=e.appendToOpenClass,q=e.openClass,r=angular.noop,s=c.onToggle?d(c.onToggle):angular.noop,t=!1,u=null,v=!1,w=i.find("body");b.addClass("dropdown"),this.init=function(){if(c.isOpen&&(m=d(c.isOpen),r=m.assign,a.$watch(m,function(a){o.isOpen=!!a})),angular.isDefined(c.dropdownAppendTo)){var e=d(c.dropdownAppendTo)(o);e&&(u=angular.element(e))}t=angular.isDefined(c.dropdownAppendToBody),v=angular.isDefined(c.keyboardNav),t&&!u&&(u=w),u&&n.dropdownMenu&&(u.append(n.dropdownMenu),b.on("$destroy",function(){n.dropdownMenu.remove()}))},this.toggle=function(a){return o.isOpen=arguments.length?!!a:!o.isOpen,angular.isFunction(r)&&r(o,o.isOpen),o.isOpen},this.isOpen=function(){return o.isOpen},o.getToggleElement=function(){return n.toggleElement},o.getAutoClose=function(){return c.autoClose||"always"},o.getElement=function(){return b},o.isKeynavEnabled=function(){return v},o.focusDropdownEntry=function(a){var c=n.dropdownMenu?angular.element(n.dropdownMenu).find("a"):b.find("ul").eq(0).find("a");switch(a){case 40:angular.isNumber(n.selectedOption)?n.selectedOption=n.selectedOption===c.length-1?n.selectedOption:n.selectedOption+1:n.selectedOption=0;break;case 38:angular.isNumber(n.selectedOption)?n.selectedOption=0===n.selectedOption?0:n.selectedOption-1:n.selectedOption=c.length-1}c[n.selectedOption].focus()},o.getDropdownElement=function(){return n.dropdownMenu},o.focusToggleElement=function(){n.toggleElement&&n.toggleElement[0].focus()},o.$watch("isOpen",function(c,d){if(u&&n.dropdownMenu){var e,m,v,w=h.positionElements(b,n.dropdownMenu,"bottom-left",!0),x=0;if(e={top:w.top+"px",display:c?"block":"none"},m=n.dropdownMenu.hasClass("dropdown-menu-right"),m?(e.left="auto",v=h.scrollbarPadding(u),v.heightOverflow&&v.scrollbarWidth&&(x=v.scrollbarWidth),e.right=window.innerWidth-x-(w.left+b.prop("offsetWidth"))+"px"):(e.left=w.left+"px",e.right="auto"),!t){var y=h.offset(u);e.top=w.top-y.top+"px",m?e.right=window.innerWidth-(w.left-y.left+b.prop("offsetWidth"))+"px":e.left=w.left-y.left+"px"}n.dropdownMenu.css(e)}var z=u?u:b,A=u?p:q,B=z.hasClass(A),C=f.isOnlyOpen(a,u);if(B===!c){var D;D=u?C?"removeClass":"addClass":c?"addClass":"removeClass",g[D](z,A).then(function(){angular.isDefined(c)&&c!==d&&s(a,{open:!!c})})}if(c)n.dropdownMenuTemplateUrl?k(n.dropdownMenuTemplateUrl).then(function(a){l=o.$new(),j(a.trim())(l,function(a){var b=a;n.dropdownMenu.replaceWith(b),n.dropdownMenu=b,i.on("keydown",f.keybindFilter)})}):i.on("keydown",f.keybindFilter),o.focusToggleElement(),f.open(o,b,u);else{if(f.close(o,b,u),n.dropdownMenuTemplateUrl){l&&l.$destroy();var E=angular.element('<ul class="dropdown-menu"></ul>');n.dropdownMenu.replaceWith(E),n.dropdownMenu=E}n.selectedOption=null}angular.isFunction(r)&&r(a,c)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(a,b,c,d){d.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(a,b,c,d){if(d&&!angular.isDefined(c.dropdownNested)){b.addClass("dropdown-menu");var e=c.templateUrl;e&&(d.dropdownMenuTemplateUrl=e),d.dropdownMenu||(d.dropdownMenu=b)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(a,b,c,d){if(d){b.addClass("dropdown-toggle"),d.toggleElement=b;var e=function(e){e.preventDefault(),b.hasClass("disabled")||c.disabled||a.$apply(function(){d.toggle()})};b.on("click",e),b.attr({"aria-haspopup":!0,"aria-expanded":!1}),a.$watch(d.isOpen,function(a){b.attr("aria-expanded",!!a)}),a.$on("$destroy",function(){b.off("click",e)})}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var a=[];return{add:function(b,c){a.push({key:b,value:c})},get:function(b){for(var c=0;c<a.length;c++)if(b===a[c].key)return a[c]},keys:function(){for(var b=[],c=0;c<a.length;c++)b.push(a[c].key);return b},top:function(){return a[a.length-1]},remove:function(b){for(var c=-1,d=0;d<a.length;d++)if(b===a[d].key){c=d;break}return a.splice(c,1)[0]},removeTop:function(){return a.pop()},length:function(){return a.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var a=this;this.resolver=null,this.setResolver=function(a){this.resolver=a},this.$get=["$injector","$q",function(b,c){var d=a.resolver?b.get(a.resolver):null;return{resolve:function(a,e,f,g){if(d)return d.resolve(a,e,f,g);var h=[];return angular.forEach(a,function(a){angular.isFunction(a)||angular.isArray(a)?h.push(c.resolve(b.invoke(a))):angular.isString(a)?h.push(c.resolve(b.get(a))):h.push(c.resolve(a))}),c.all(h).then(function(b){var c={},d=0;return angular.forEach(a,function(a,e){c[e]=b[d++]}),c})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(a,b,c){function d(b,d,e){e.modalInClass&&(a.addClass(d,e.modalInClass),b.$on(c.NOW_CLOSING_EVENT,function(c,f){var g=f();b.modalOptions.animation?a.removeClass(d,e.modalInClass).then(g):g()}))}return{restrict:"A",compile:function(a,b){return a.addClass(b.backdropClass),d}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(a,b,c,d){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/modal/window.html"},link:function(e,f,g){f.addClass(g.windowTopClass||""),e.size=g.size,e.close=function(b){var c=a.getTop();c&&c.value.backdrop&&"static"!==c.value.backdrop&&b.target===b.currentTarget&&(b.preventDefault(),b.stopPropagation(),a.dismiss(c.key,"backdrop click"))},f.on("click",e.close),e.$isRendered=!0;var h=b.defer();e.$$postDigest(function(){h.resolve()}),h.promise.then(function(){var h=null;g.modalInClass&&(h=c(f,{addClass:g.modalInClass}).start(),e.$on(a.NOW_CLOSING_EVENT,function(a,b){var d=b();c(f,{removeClass:g.modalInClass}).start().then(d)})),b.when(h).then(function(){var b=a.getTop();if(b&&a.modalRendered(b.key),!d[0].activeElement||!f[0].contains(d[0].activeElement)){var c=f[0].querySelector("[autofocus]");c?c.focus():f[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(a,b){b.modalAnimation&&a.addClass(b.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(a){return{link:function(b,c,d,e,f){f(b.$parent,function(b){c.empty(),a.enter(b,c)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(a,b,c,d,e,f,g,h,i){function j(a){var b="-";return a.replace(E,function(a,c){return(c?b:"")+a.toLowerCase()})}function k(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)}function l(){for(var a=-1,b=x.keys(),c=0;c<b.length;c++)x.get(b[c]).value.backdrop&&(a=c);return a>-1&&A>a&&(a=A),a}function m(a,b){var c=x.get(a).value,d=c.appendTo;x.remove(a),B=x.top(),B&&(A=parseInt(B.value.modalDomEl.attr("index"),10)),p(c.modalDomEl,c.modalScope,function(){var b=c.openedClass||w;y.remove(b,a);var e=y.hasKey(b);d.toggleClass(b,e),!e&&v&&v.heightOverflow&&v.scrollbarWidth&&(v.originalRight?d.css({paddingRight:v.originalRight+"px"}):d.css({paddingRight:""}),v=null),n(!0)},c.closedDeferred),o(),b&&b.focus?b.focus():d.focus&&d.focus()}function n(a){var b;x.length()>0&&(b=x.top().value,b.modalDomEl.toggleClass(b.windowTopClass||"",a))}function o(){if(t&&-1===l()){var a=u;p(t,u,function(){a=null}),t=void 0,u=void 0}}function p(b,c,d,e){function g(){g.done||(g.done=!0,a.leave(b).then(function(){d&&d(),b.remove(),e&&e.resolve()}),c.$destroy())}var h,i=null,j=function(){return h||(h=f.defer(),i=h.promise),function(){h.resolve()}};return c.$broadcast(z.NOW_CLOSING_EVENT,j),f.when(i).then(g)}function q(a){if(a.isDefaultPrevented())return a;var b=x.top();if(b)switch(a.which){case 27:b.value.keyboard&&(a.preventDefault(),e.$apply(function(){z.dismiss(b.key,"escape key press")}));break;case 9:var c=z.loadFocusElementList(b),d=!1;a.shiftKey?(z.isFocusInFirstItem(a,c)||z.isModalFocused(a,b))&&(d=z.focusLastFocusableElement(c)):z.isFocusInLastItem(a,c)&&(d=z.focusFirstFocusableElement(c)),d&&(a.preventDefault(),a.stopPropagation())}}function r(a,b,c){return!a.value.modalScope.$broadcast("modal.closing",b,c).defaultPrevented}function s(){Array.prototype.forEach.call(document.querySelectorAll("["+C+"]"),function(a){var b=parseInt(a.getAttribute(C),10),c=b-1;a.setAttribute(C,c),c||(a.removeAttribute(C),a.removeAttribute("aria-hidden"))})}var t,u,v,w="modal-open",x=h.createNew(),y=g.createNew(),z={NOW_CLOSING_EVENT:"modal.stack.now-closing"},A=0,B=null,C="data-bootstrap-modal-aria-hidden-count",D="a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]",E=/[A-Z]/g;return e.$watch(l,function(a){u&&(u.index=a)}),c.on("keydown",q),e.$on("$destroy",function(){c.off("keydown",q)}),z.open=function(b,f){function g(a){function b(a){var b=a.parent()?a.parent().children():[];return Array.prototype.filter.call(b,function(b){return b!==a[0]})}if(a&&"BODY"!==a[0].tagName)return b(a).forEach(function(a){var b="true"===a.getAttribute("aria-hidden"),c=parseInt(a.getAttribute(C),10);c||(c=b?1:0),a.setAttribute(C,c+1),a.setAttribute("aria-hidden","true")}),g(a.parent())}var h=c[0].activeElement,k=f.openedClass||w;n(!1),B=x.top(),x.add(b,{deferred:f.deferred,renderDeferred:f.renderDeferred,closedDeferred:f.closedDeferred,modalScope:f.scope,backdrop:f.backdrop,keyboard:f.keyboard,openedClass:f.openedClass,windowTopClass:f.windowTopClass,animation:f.animation,appendTo:f.appendTo}),y.put(k,b);var m=f.appendTo,o=l();if(!m.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");o>=0&&!t&&(u=e.$new(!0),u.modalOptions=f,u.index=o,t=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),t.attr({"class":"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),f.backdropClass&&t.addClass(f.backdropClass),f.animation&&t.attr("modal-animation","true"),d(t)(u),a.enter(t,m),i.isScrollable(m)&&(v=i.scrollbarPadding(m),v.heightOverflow&&v.scrollbarWidth&&m.css({paddingRight:v.right+"px"})));var p;f.component?(p=document.createElement(j(f.component.name)),p=angular.element(p),p.attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):p=f.content,A=B?parseInt(B.value.modalDomEl.attr("index"),10)+1:0;var q=angular.element('<div uib-modal-window="modal-window"></div>');q.attr({"class":"modal","template-url":f.windowTemplateUrl,"window-top-class":f.windowTopClass,role:"dialog","aria-labelledby":f.ariaLabelledBy,"aria-describedby":f.ariaDescribedBy,size:f.size,index:A,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(p),f.windowClass&&q.addClass(f.windowClass),f.animation&&q.attr("modal-animation","true"),m.addClass(k),f.scope&&(f.scope.$$topModalIndex=A),a.enter(d(q)(f.scope),m),x.top().value.modalDomEl=q,x.top().value.modalOpener=h,g(q)},z.close=function(a,b){var c=x.get(a);return s(),c&&r(c,b,!0)?(c.value.modalScope.$$uibDestructionScheduled=!0,c.value.deferred.resolve(b),m(a,c.value.modalOpener),!0):!c},z.dismiss=function(a,b){var c=x.get(a);return s(),c&&r(c,b,!1)?(c.value.modalScope.$$uibDestructionScheduled=!0,c.value.deferred.reject(b),m(a,c.value.modalOpener),!0):!c},z.dismissAll=function(a){for(var b=this.getTop();b&&this.dismiss(b.key,a);)b=this.getTop()},z.getTop=function(){return x.top()},z.modalRendered=function(a){var b=x.get(a);b&&b.value.renderDeferred.resolve()},z.focusFirstFocusableElement=function(a){return a.length>0?(a[0].focus(),!0):!1},z.focusLastFocusableElement=function(a){return a.length>0?(a[a.length-1].focus(),!0):!1},z.isModalFocused=function(a,b){if(a&&b){var c=b.value.modalDomEl;if(c&&c.length)return(a.target||a.srcElement)===c[0]}return!1},z.isFocusInFirstItem=function(a,b){return b.length>0?(a.target||a.srcElement)===b[0]:!1},z.isFocusInLastItem=function(a,b){return b.length>0?(a.target||a.srcElement)===b[b.length-1]:!1},z.loadFocusElementList=function(a){if(a){var b=a.value.modalDomEl;if(b&&b.length){var c=b[0].querySelectorAll(D);return c?Array.prototype.filter.call(c,function(a){return k(a)}):c}}},z}]).provider("$uibModal",function(){var a={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(b,c,d,e,f,g,h){function i(a){return a.template?c.when(a.template):e(angular.isFunction(a.templateUrl)?a.templateUrl():a.templateUrl)}var j={},k=null;return j.getPromiseChain=function(){return k},j.open=function(e){function j(){return q}var l=c.defer(),m=c.defer(),n=c.defer(),o=c.defer(),p={result:l.promise,opened:m.promise,closed:n.promise,rendered:o.promise,close:function(a){return h.close(p,a)},dismiss:function(a){return h.dismiss(p,a)}};if(e=angular.extend({},a.options,e),e.resolve=e.resolve||{},e.appendTo=e.appendTo||d.find("body").eq(0),!e.component&&!e.template&&!e.templateUrl)throw new Error("One of component or template or templateUrl options is required.");var q;q=e.component?c.when(g.resolve(e.resolve,{},null,null)):c.all([i(e),g.resolve(e.resolve,{},null,null)]);var r;return r=k=c.all([k]).then(j,j).then(function(a){function c(b,c,d,e){b.$scope=g,b.$scope.$resolve={},d?b.$scope.$uibModalInstance=p:b.$uibModalInstance=p;var f=c?a[1]:a;angular.forEach(f,function(a,c){e&&(b[c]=a),b.$scope.$resolve[c]=a})}var d=e.scope||b,g=d.$new();g.$close=p.close,g.$dismiss=p.dismiss,g.$on("$destroy",function(){g.$$uibDestructionScheduled||g.$dismiss("$uibUnscheduledDestruction")});var i,j,k={scope:g,deferred:l,renderDeferred:o,closedDeferred:n,animation:e.animation,backdrop:e.backdrop,keyboard:e.keyboard,backdropClass:e.backdropClass,windowTopClass:e.windowTopClass,windowClass:e.windowClass,windowTemplateUrl:e.windowTemplateUrl,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,size:e.size,openedClass:e.openedClass,appendTo:e.appendTo},q={},r={};e.component?(c(q,!1,!0,!1),q.name=e.component,k.component=q):e.controller&&(c(r,!0,!1,!0),j=f(e.controller,r,!0,e.controllerAs),e.controllerAs&&e.bindToController&&(i=j.instance,i.$close=g.$close,i.$dismiss=g.$dismiss,angular.extend(i,{$resolve:r.$scope.$resolve},d)),i=j(),angular.isFunction(i.$onInit)&&i.$onInit()),e.component||(k.content=a[0]),h.open(p,k),m.resolve(!0)},function(a){m.reject(a),l.reject(a)})["finally"](function(){k===r&&(k=null)}),p},j}]};return a}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(a){return{create:function(b,c,d){b.setNumPages=d.numPages?a(d.numPages).assign:angular.noop,b.ngModelCtrl={$setViewValue:angular.noop},b._watchers=[],b.init=function(a,e){b.ngModelCtrl=a,b.config=e,a.$render=function(){b.render()},d.itemsPerPage?b._watchers.push(c.$parent.$watch(d.itemsPerPage,function(a){b.itemsPerPage=parseInt(a,10),c.totalPages=b.calculateTotalPages(),b.updatePage()})):b.itemsPerPage=e.itemsPerPage,c.$watch("totalItems",function(a,d){(angular.isDefined(a)||a!==d)&&(c.totalPages=b.calculateTotalPages(),b.updatePage())})},b.calculateTotalPages=function(){var a=b.itemsPerPage<1?1:Math.ceil(c.totalItems/b.itemsPerPage);return Math.max(a||0,1)},b.render=function(){c.page=parseInt(b.ngModelCtrl.$viewValue,10)||1},c.selectPage=function(a,d){d&&d.preventDefault();var e=!c.ngDisabled||!d;e&&c.page!==a&&a>0&&a<=c.totalPages&&(d&&d.target&&d.target.blur(),b.ngModelCtrl.$setViewValue(a),b.ngModelCtrl.$render())},c.getText=function(a){return c[a+"Text"]||b.config[a+"Text"]},c.noPrevious=function(){return 1===c.page},c.noNext=function(){return c.page===c.totalPages},b.updatePage=function(){b.setNumPages(c.$parent,c.totalPages),c.page>c.totalPages?c.selectPage(c.totalPages):b.ngModelCtrl.$render()},c.$on("$destroy",function(){for(;b._watchers.length;)b._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(a,b,c,d){a.align=angular.isDefined(b.align)?a.$parent.$eval(b.align):d.align,c.create(this,a,b)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(a){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(a,b){return b.templateUrl||"uib/template/pager/pager.html"},link:function(b,c,d,e){c.addClass("pager");var f=e[0],g=e[1];g&&f.init(g,a)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(a,b,c,d,e){
-function f(a,b,c){return{number:a,text:b,active:c}}function g(a,b){var c=[],d=1,e=b,g=angular.isDefined(i)&&b>i;g&&(j?(d=Math.max(a-Math.floor(i/2),1),e=d+i-1,e>b&&(e=b,d=e-i+1)):(d=(Math.ceil(a/i)-1)*i+1,e=Math.min(d+i-1,b)));for(var h=d;e>=h;h++){var n=f(h,m(h),h===a);c.push(n)}if(g&&i>0&&(!j||k||l)){if(d>1){if(!l||d>3){var o=f(d-1,"...",!1);c.unshift(o)}if(l){if(3===d){var p=f(2,"2",!1);c.unshift(p)}var q=f(1,"1",!1);c.unshift(q)}}if(b>e){if(!l||b-2>e){var r=f(e+1,"...",!1);c.push(r)}if(l){if(e===b-2){var s=f(b-1,b-1,!1);c.push(s)}var t=f(b,b,!1);c.push(t)}}}return c}var h=this,i=angular.isDefined(b.maxSize)?a.$parent.$eval(b.maxSize):e.maxSize,j=angular.isDefined(b.rotate)?a.$parent.$eval(b.rotate):e.rotate,k=angular.isDefined(b.forceEllipses)?a.$parent.$eval(b.forceEllipses):e.forceEllipses,l=angular.isDefined(b.boundaryLinkNumbers)?a.$parent.$eval(b.boundaryLinkNumbers):e.boundaryLinkNumbers,m=angular.isDefined(b.pageLabel)?function(c){return a.$parent.$eval(b.pageLabel,{$page:c})}:angular.identity;a.boundaryLinks=angular.isDefined(b.boundaryLinks)?a.$parent.$eval(b.boundaryLinks):e.boundaryLinks,a.directionLinks=angular.isDefined(b.directionLinks)?a.$parent.$eval(b.directionLinks):e.directionLinks,d.create(this,a,b),b.maxSize&&h._watchers.push(a.$parent.$watch(c(b.maxSize),function(a){i=parseInt(a,10),h.render()}));var n=this.render;this.render=function(){n(),a.page>0&&a.page<=a.totalPages&&(a.pages=g(a.page,a.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(a,b){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(a,b){return b.templateUrl||"uib/template/pagination/pagination.html"},link:function(a,c,d,e){c.addClass("pagination");var f=e[0],g=e[1];g&&f.init(g,b)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function a(a){var b=/[A-Z]/g,c="-";return a.replace(b,function(a,b){return(b?c:"")+a.toLowerCase()})}var b={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},c={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},d={};this.options=function(a){angular.extend(d,a)},this.setTriggers=function(a){angular.extend(c,a)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(e,f,g,h,i,j,k,l,m){function n(a){if(27===a.which){var b=o.top();b&&(b.value.close(),b=null)}}var o=m.createNew();return h.on("keyup",n),k.$on("$destroy",function(){h.off("keyup",n)}),function(e,k,m,n){function p(a){var b=(a||n.trigger||m).split(" "),d=b.map(function(a){return c[a]||a});return{show:b,hide:d}}n=angular.extend({},b,d,n);var q=a(e),r=j.startSymbol(),s=j.endSymbol(),t="<div "+q+'-popup uib-title="'+r+"title"+s+'" '+(n.useContentExp?'content-exp="contentExp()" ':'content="'+r+"content"+s+'" ')+'origin-scope="origScope" class="uib-position-measure '+k+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(a,b){var c=f(t);return function(a,b,d,f){function j(){O.isOpen?q():m()}function m(){N&&!a.$eval(d[k+"Enable"])||(u(),x(),O.popupDelay?G||(G=g(r,O.popupDelay,!1)):r())}function q(){s(),O.popupCloseDelay?H||(H=g(t,O.popupCloseDelay,!1)):t()}function r(){return s(),u(),O.content?(v(),void O.$evalAsync(function(){O.isOpen=!0,y(!0),T()})):angular.noop}function s(){G&&(g.cancel(G),G=null),I&&(g.cancel(I),I=null)}function t(){O&&O.$evalAsync(function(){O&&(O.isOpen=!1,y(!1),O.animation?F||(F=g(w,150,!1)):w())})}function u(){H&&(g.cancel(H),H=null),F&&(g.cancel(F),F=null)}function v(){D||(E=O.$new(),D=c(E,function(a){L?h.find("body").append(a):b.after(a)}),o.add(O,{close:t}),z())}function w(){s(),u(),A(),D&&(D.remove(),D=null,J&&g.cancel(J)),o.remove(O),E&&(E.$destroy(),E=null)}function x(){O.title=d[k+"Title"],R?O.content=R(a):O.content=d[e],O.popupClass=d[k+"Class"],O.placement=angular.isDefined(d[k+"Placement"])?d[k+"Placement"]:n.placement;var b=i.parsePlacement(O.placement);K=b[1]?b[0]+"-"+b[1]:b[0];var c=parseInt(d[k+"PopupDelay"],10),f=parseInt(d[k+"PopupCloseDelay"],10);O.popupDelay=isNaN(c)?n.popupDelay:c,O.popupCloseDelay=isNaN(f)?n.popupCloseDelay:f}function y(b){Q&&angular.isFunction(Q.assign)&&Q.assign(a,b)}function z(){S.length=0,R?(S.push(a.$watch(R,function(a){O.content=a,!a&&O.isOpen&&t()})),S.push(E.$watch(function(){P||(P=!0,E.$$postDigest(function(){P=!1,O&&O.isOpen&&T()}))}))):S.push(d.$observe(e,function(a){O.content=a,!a&&O.isOpen?t():T()})),S.push(d.$observe(k+"Title",function(a){O.title=a,O.isOpen&&T()})),S.push(d.$observe(k+"Placement",function(a){O.placement=a?a:n.placement,O.isOpen&&T()}))}function A(){S.length&&(angular.forEach(S,function(a){a()}),S.length=0)}function B(a){O&&O.isOpen&&D&&(b[0].contains(a.target)||D[0].contains(a.target)||q())}function C(){var c=[],e=[],f=a.$eval(d[k+"Trigger"]);U(),angular.isObject(f)?(Object.keys(f).forEach(function(a){c.push(a),e.push(f[a])}),M={show:c,hide:e}):M=p(f),"none"!==M.show&&M.show.forEach(function(a,c){"outsideClick"===a?(b.on("click",j),h.on("click",B)):a===M.hide[c]?b.on(a,j):a&&(b.on(a,m),b.on(M.hide[c],q)),b.on("keypress",function(a){27===a.which&&q()})})}var D,E,F,G,H,I,J,K,L=angular.isDefined(n.appendToBody)?n.appendToBody:!1,M=p(void 0),N=angular.isDefined(d[k+"Enable"]),O=a.$new(!0),P=!1,Q=angular.isDefined(d[k+"IsOpen"])?l(d[k+"IsOpen"]):!1,R=n.useContentExp?l(d[e]):!1,S=[],T=function(){D&&D.html()&&(I||(I=g(function(){var a=i.positionElements(b,D,O.placement,L),c=angular.isDefined(D.offsetHeight)?D.offsetHeight:D.prop("offsetHeight"),d=L?i.offset(b):i.position(b);D.css({top:a.top+"px",left:a.left+"px"});var e=a.placement.split("-");D.hasClass(e[0])||(D.removeClass(K.split("-")[0]),D.addClass(e[0])),D.hasClass(n.placementClassPrefix+a.placement)||(D.removeClass(n.placementClassPrefix+K),D.addClass(n.placementClassPrefix+a.placement)),J=g(function(){var a=angular.isDefined(D.offsetHeight)?D.offsetHeight:D.prop("offsetHeight"),b=i.adjustTop(e,d,c,a);b&&D.css(b),J=null},0,!1),D.hasClass("uib-position-measure")?(i.positionArrow(D,a.placement),D.removeClass("uib-position-measure")):K!==a.placement&&i.positionArrow(D,a.placement),K=a.placement,I=null},0,!1)))};O.origScope=a,O.isOpen=!1,O.contentExp=function(){return O.content},d.$observe("disabled",function(a){a&&s(),a&&O.isOpen&&t()}),Q&&a.$watch(Q,function(a){O&&!a===O.isOpen&&j()});var U=function(){M.show.forEach(function(a){"outsideClick"===a?b.off("click",j):(b.off(a,m),b.off(a,j))}),M.hide.forEach(function(a){"outsideClick"===a?h.off("click",B):b.off(a,q)})};C();var V=a.$eval(d[k+"Animation"]);O.animation=angular.isDefined(V)?!!V:n.animation;var W,X=k+"AppendToBody";W=X in d&&void 0===d[X]?!0:a.$eval(d[X]),L=angular.isDefined(W)?W:L,a.$on("$destroy",function(){U(),w(),O=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(a,b,c,d){return{link:function(e,f,g){var h,i,j,k=e.$eval(g.tooltipTemplateTranscludeScope),l=0,m=function(){i&&(i.remove(),i=null),h&&(h.$destroy(),h=null),j&&(a.leave(j).then(function(){i=null}),i=j,j=null)};e.$watch(b.parseAsResourceUrl(g.uibTooltipTemplateTransclude),function(b){var g=++l;b?(d(b,!0).then(function(d){if(g===l){var e=k.$new(),i=d,n=c(i)(e,function(b){m(),a.enter(b,f)});h=e,j=n,h.$emit("$includeContentLoaded",b)}},function(){g===l&&(m(),e.$emit("$includeContentError",b))}),e.$emit("$includeContentRequested",b)):m()}),e.$on("$destroy",m)}}}]).directive("uibTooltipClasses",["$uibPosition",function(a){return{restrict:"A",link:function(b,c,d){if(b.placement){var e=a.parsePlacement(b.placement);c.addClass(e[0])}b.popupClass&&c.addClass(b.popupClass),b.animation&&c.addClass(d.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(a){return a("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(a){return a("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(a){return a("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(a){return a("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(a){return a("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(a){return a("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(a,b,c){function d(){return angular.isDefined(a.maxParam)?a.maxParam:c.max}var e=this,f=angular.isDefined(b.animate)?a.$parent.$eval(b.animate):c.animate;this.bars=[],a.max=d(),this.addBar=function(a,b,c){f||b.css({transition:"none"}),this.bars.push(a),a.max=d(),a.title=c&&angular.isDefined(c.title)?c.title:"progressbar",a.$watch("value",function(b){a.recalculatePercentage()}),a.recalculatePercentage=function(){var b=e.bars.reduce(function(a,b){return b.percent=+(100*b.value/b.max).toFixed(2),a+b.percent},0);b>100&&(a.percent-=b-100)},a.$on("$destroy",function(){b=null,e.removeBar(a)})},this.removeBar=function(a){this.bars.splice(this.bars.indexOf(a),1),this.bars.forEach(function(a){a.recalculatePercentage()})},a.$watch("maxParam",function(a){e.bars.forEach(function(a){a.max=d(),a.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(a,b,c,d){d.addBar(a,b,c)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(a,b,c,d){d.addBar(a,angular.element(b.children()[0]),{title:c.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(a,b,c){var d={$setViewValue:angular.noop},e=this;this.init=function(e){d=e,d.$render=this.render,d.$formatters.push(function(a){return angular.isNumber(a)&&a<<0!==a&&(a=Math.round(a)),a}),this.stateOn=angular.isDefined(b.stateOn)?a.$parent.$eval(b.stateOn):c.stateOn,this.stateOff=angular.isDefined(b.stateOff)?a.$parent.$eval(b.stateOff):c.stateOff,this.enableReset=angular.isDefined(b.enableReset)?a.$parent.$eval(b.enableReset):c.enableReset;var f=angular.isDefined(b.titles)?a.$parent.$eval(b.titles):c.titles;this.titles=angular.isArray(f)&&f.length>0?f:c.titles;var g=angular.isDefined(b.ratingStates)?a.$parent.$eval(b.ratingStates):new Array(angular.isDefined(b.max)?a.$parent.$eval(b.max):c.max);a.range=this.buildTemplateObjects(g)},this.buildTemplateObjects=function(a){for(var b=0,c=a.length;c>b;b++)a[b]=angular.extend({index:b},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(b)},a[b]);return a},this.getTitle=function(a){return a>=this.titles.length?a+1:this.titles[a]},a.rate=function(b){if(!a.readonly&&b>=0&&b<=a.range.length){var c=e.enableReset&&d.$viewValue===b?0:b;d.$setViewValue(c),d.$render()}},a.enter=function(b){a.readonly||(a.value=b),a.onHover({value:b})},a.reset=function(){a.value=d.$viewValue,a.onLeave()},a.onKeydown=function(b){/(37|38|39|40)/.test(b.which)&&(b.preventDefault(),b.stopPropagation(),a.rate(a.value+(38===b.which||39===b.which?1:-1)))},this.render=function(){a.value=d.$viewValue,a.title=e.getTitle(a.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(a){function b(a){for(var b=0;b<d.tabs.length;b++)if(d.tabs[b].index===a)return b}var c,d=this;d.tabs=[],d.select=function(a,f){if(!e){var g=b(c),h=d.tabs[g];if(h){if(h.tab.onDeselect({$event:f,$selectedIndex:a}),f&&f.isDefaultPrevented())return;h.tab.active=!1}var i=d.tabs[a];i?(i.tab.onSelect({$event:f}),i.tab.active=!0,d.active=i.index,c=i.index):!i&&angular.isDefined(c)&&(d.active=null,c=null)}},d.addTab=function(a){if(d.tabs.push({tab:a,index:a.index}),d.tabs.sort(function(a,b){return a.index>b.index?1:a.index<b.index?-1:0}),a.index===d.active||!angular.isDefined(d.active)&&1===d.tabs.length){var c=b(a.index);d.select(c)}},d.removeTab=function(a){for(var b,c=0;c<d.tabs.length;c++)if(d.tabs[c].tab===a){b=c;break}if(d.tabs[b].index===d.active){var e=b===d.tabs.length-1?b-1:b+1%d.tabs.length;d.select(e)}d.tabs.splice(b,1)},a.$watch("tabset.active",function(a){angular.isDefined(a)&&a!==c&&d.select(b(a))});var e;a.$on("$destroy",function(){e=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(a,b){return b.templateUrl||"uib/template/tabs/tabset.html"},link:function(a,b,c){a.vertical=angular.isDefined(c.vertical)?a.$parent.$eval(c.vertical):!1,a.justified=angular.isDefined(c.justified)?a.$parent.$eval(c.justified):!1}}}).directive("uibTab",["$parse",function(a){return{require:"^uibTabset",replace:!0,templateUrl:function(a,b){return b.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(b,c,d,e,f){b.disabled=!1,d.disable&&b.$parent.$watch(a(d.disable),function(a){b.disabled=!!a}),angular.isUndefined(d.index)&&(e.tabs&&e.tabs.length?b.index=Math.max.apply(null,e.tabs.map(function(a){return a.index}))+1:b.index=0),angular.isUndefined(d.classes)&&(b.classes=""),b.select=function(a){if(!b.disabled){for(var c,d=0;d<e.tabs.length;d++)if(e.tabs[d].tab===b){c=d;break}e.select(c,a)}},e.addTab(b),b.$on("$destroy",function(){e.removeTab(b)}),b.$transcludeFn=f}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(a,b){a.$watch("headingElement",function(a){a&&(b.html(""),b.append(a))})}}}).directive("uibTabContentTransclude",function(){function a(a){return a.tagName&&(a.hasAttribute("uib-tab-heading")||a.hasAttribute("data-uib-tab-heading")||a.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===a.tagName.toLowerCase()||"data-uib-tab-heading"===a.tagName.toLowerCase()||"x-uib-tab-heading"===a.tagName.toLowerCase()||"uib:tab-heading"===a.tagName.toLowerCase())}return{restrict:"A",require:"^uibTabset",link:function(b,c,d){var e=b.$eval(d.uibTabContentTransclude).tab;e.$transcludeFn(e.$parent,function(b){angular.forEach(b,function(b){a(b)?e.headingElement=b:c.append(b)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(a,b,c,d,e,f,g){function h(){var b=+a.hours,c=a.showMeridian?b>0&&13>b:b>=0&&24>b;return c&&""!==a.hours?(a.showMeridian&&(12===b&&(b=0),a.meridian===y[1]&&(b+=12)),b):void 0}function i(){var b=+a.minutes,c=b>=0&&60>b;return c&&""!==a.minutes?b:void 0}function j(){var b=+a.seconds;return b>=0&&60>b?b:void 0}function k(a,b){return null===a?"":angular.isDefined(a)&&a.toString().length<2&&!b?"0"+a:a.toString()}function l(a){m(),x.$setViewValue(new Date(v)),n(a)}function m(){s&&s.$setValidity("hours",!0),t&&t.$setValidity("minutes",!0),u&&u.$setValidity("seconds",!0),x.$setValidity("time",!0),a.invalidHours=!1,a.invalidMinutes=!1,a.invalidSeconds=!1}function n(b){if(x.$modelValue){var c=v.getHours(),d=v.getMinutes(),e=v.getSeconds();a.showMeridian&&(c=0===c||12===c?12:c%12),a.hours="h"===b?c:k(c,!z),"m"!==b&&(a.minutes=k(d)),a.meridian=v.getHours()<12?y[0]:y[1],"s"!==b&&(a.seconds=k(e)),a.meridian=v.getHours()<12?y[0]:y[1]}else a.hours=null,a.minutes=null,a.seconds=null,a.meridian=y[0]}function o(a){v=q(v,a),l()}function p(a,b){return q(a,60*b)}function q(a,b){var c=new Date(a.getTime()+1e3*b),d=new Date(a);return d.setHours(c.getHours(),c.getMinutes(),c.getSeconds()),d}function r(){return(null===a.hours||""===a.hours)&&(null===a.minutes||""===a.minutes)&&(!a.showSeconds||a.showSeconds&&(null===a.seconds||""===a.seconds))}var s,t,u,v=new Date,w=[],x={$setViewValue:angular.noop},y=angular.isDefined(c.meridians)?a.$parent.$eval(c.meridians):g.meridians||f.DATETIME_FORMATS.AMPMS,z=angular.isDefined(c.padHours)?a.$parent.$eval(c.padHours):!0;a.tabindex=angular.isDefined(c.tabindex)?c.tabindex:0,b.removeAttr("tabindex"),this.init=function(b,d){x=b,x.$render=this.render,x.$formatters.unshift(function(a){return a?new Date(a):null});var e=d.eq(0),f=d.eq(1),h=d.eq(2);s=e.controller("ngModel"),t=f.controller("ngModel"),u=h.controller("ngModel");var i=angular.isDefined(c.mousewheel)?a.$parent.$eval(c.mousewheel):g.mousewheel;i&&this.setupMousewheelEvents(e,f,h);var j=angular.isDefined(c.arrowkeys)?a.$parent.$eval(c.arrowkeys):g.arrowkeys;j&&this.setupArrowkeyEvents(e,f,h),a.readonlyInput=angular.isDefined(c.readonlyInput)?a.$parent.$eval(c.readonlyInput):g.readonlyInput,this.setupInputEvents(e,f,h)};var A=g.hourStep;c.hourStep&&w.push(a.$parent.$watch(d(c.hourStep),function(a){A=+a}));var B=g.minuteStep;c.minuteStep&&w.push(a.$parent.$watch(d(c.minuteStep),function(a){B=+a}));var C;w.push(a.$parent.$watch(d(c.min),function(a){var b=new Date(a);C=isNaN(b)?void 0:b}));var D;w.push(a.$parent.$watch(d(c.max),function(a){var b=new Date(a);D=isNaN(b)?void 0:b}));var E=!1;c.ngDisabled&&w.push(a.$parent.$watch(d(c.ngDisabled),function(a){E=a})),a.noIncrementHours=function(){var a=p(v,60*A);return E||a>D||v>a&&C>a},a.noDecrementHours=function(){var a=p(v,60*-A);return E||C>a||a>v&&a>D},a.noIncrementMinutes=function(){var a=p(v,B);return E||a>D||v>a&&C>a},a.noDecrementMinutes=function(){var a=p(v,-B);return E||C>a||a>v&&a>D},a.noIncrementSeconds=function(){var a=q(v,F);return E||a>D||v>a&&C>a},a.noDecrementSeconds=function(){var a=q(v,-F);return E||C>a||a>v&&a>D},a.noToggleMeridian=function(){return v.getHours()<12?E||p(v,720)>D:E||p(v,-720)<C};var F=g.secondStep;c.secondStep&&w.push(a.$parent.$watch(d(c.secondStep),function(a){F=+a})),a.showSeconds=g.showSeconds,c.showSeconds&&w.push(a.$parent.$watch(d(c.showSeconds),function(b){a.showSeconds=!!b})),a.showMeridian=g.showMeridian,c.showMeridian&&w.push(a.$parent.$watch(d(c.showMeridian),function(b){if(a.showMeridian=!!b,x.$error.time){var c=h(),d=i();angular.isDefined(c)&&angular.isDefined(d)&&(v.setHours(c),l())}else n()})),this.setupMousewheelEvents=function(b,c,d){var e=function(a){a.originalEvent&&(a=a.originalEvent);var b=a.wheelDelta?a.wheelDelta:-a.deltaY;return a.detail||b>0};b.on("mousewheel wheel",function(b){E||a.$apply(e(b)?a.incrementHours():a.decrementHours()),b.preventDefault()}),c.on("mousewheel wheel",function(b){E||a.$apply(e(b)?a.incrementMinutes():a.decrementMinutes()),b.preventDefault()}),d.on("mousewheel wheel",function(b){E||a.$apply(e(b)?a.incrementSeconds():a.decrementSeconds()),b.preventDefault()})},this.setupArrowkeyEvents=function(b,c,d){b.on("keydown",function(b){E||(38===b.which?(b.preventDefault(),a.incrementHours(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementHours(),a.$apply()))}),c.on("keydown",function(b){E||(38===b.which?(b.preventDefault(),a.incrementMinutes(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementMinutes(),a.$apply()))}),d.on("keydown",function(b){E||(38===b.which?(b.preventDefault(),a.incrementSeconds(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementSeconds(),a.$apply()))})},this.setupInputEvents=function(b,c,d){if(a.readonlyInput)return a.updateHours=angular.noop,a.updateMinutes=angular.noop,void(a.updateSeconds=angular.noop);var e=function(b,c,d){x.$setViewValue(null),x.$setValidity("time",!1),angular.isDefined(b)&&(a.invalidHours=b,s&&s.$setValidity("hours",!1)),angular.isDefined(c)&&(a.invalidMinutes=c,t&&t.$setValidity("minutes",!1)),angular.isDefined(d)&&(a.invalidSeconds=d,u&&u.$setValidity("seconds",!1))};a.updateHours=function(){var a=h(),b=i();x.$setDirty(),angular.isDefined(a)&&angular.isDefined(b)?(v.setHours(a),v.setMinutes(b),C>v||v>D?e(!0):l("h")):e(!0)},b.on("blur",function(b){x.$setTouched(),r()?m():null===a.hours||""===a.hours?e(!0):!a.invalidHours&&a.hours<10&&a.$apply(function(){a.hours=k(a.hours,!z)})}),a.updateMinutes=function(){var a=i(),b=h();x.$setDirty(),angular.isDefined(a)&&angular.isDefined(b)?(v.setHours(b),v.setMinutes(a),C>v||v>D?e(void 0,!0):l("m")):e(void 0,!0)},c.on("blur",function(b){x.$setTouched(),r()?m():null===a.minutes?e(void 0,!0):!a.invalidMinutes&&a.minutes<10&&a.$apply(function(){a.minutes=k(a.minutes)})}),a.updateSeconds=function(){var a=j();x.$setDirty(),angular.isDefined(a)?(v.setSeconds(a),l("s")):e(void 0,void 0,!0)},d.on("blur",function(b){r()?m():!a.invalidSeconds&&a.seconds<10&&a.$apply(function(){a.seconds=k(a.seconds)})})},this.render=function(){var b=x.$viewValue;isNaN(b)?(x.$setValidity("time",!1),e.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(b&&(v=b),C>v||v>D?(x.$setValidity("time",!1),a.invalidHours=!0,a.invalidMinutes=!0):m(),n())},a.showSpinners=angular.isDefined(c.showSpinners)?a.$parent.$eval(c.showSpinners):g.showSpinners,a.incrementHours=function(){a.noIncrementHours()||o(60*A*60)},a.decrementHours=function(){a.noDecrementHours()||o(60*-A*60)},a.incrementMinutes=function(){a.noIncrementMinutes()||o(60*B)},a.decrementMinutes=function(){a.noDecrementMinutes()||o(60*-B)},a.incrementSeconds=function(){a.noIncrementSeconds()||o(F)},a.decrementSeconds=function(){a.noDecrementSeconds()||o(-F)},a.toggleMeridian=function(){var b=i(),c=h();a.noToggleMeridian()||(angular.isDefined(b)&&angular.isDefined(c)?o(720*(v.getHours()<12?60:-60)):a.meridian=a.meridian===y[0]?y[1]:y[0])},a.blur=function(){x.$setTouched()},a.$on("$destroy",function(){for(;w.length;)w.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(a){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(b,c){return c.templateUrl||a.templateUrl},link:function(a,b,c,d){var e=d[0],f=d[1];f&&e.init(f,b.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(a){var b=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(c){var d=c.match(b);if(!d)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+c+'".');return{itemName:d[3],source:a(d[4]),viewMapper:a(d[2]||d[1]),modelMapper:a(d[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){O.moveInProgress||(O.moveInProgress=!0,O.$digest()),Z()}function o(){O.position=E?l.offset(b):l.position(b),O.position.top+=b.prop("offsetHeight")}var p,q,r=[9,13,27,38,40],s=200,t=a.$eval(c.typeaheadMinLength);t||0===t||(t=1),a.$watch(c.typeaheadMinLength,function(a){t=a||0===a?a:1});var u=a.$eval(c.typeaheadWaitMs)||0,v=a.$eval(c.typeaheadEditable)!==!1;a.$watch(c.typeaheadEditable,function(a){v=a!==!1});var w,x,y=e(c.typeaheadLoading).assign||angular.noop,z=c.typeaheadShouldSelect?e(c.typeaheadShouldSelect):function(a,b){var c=b.$event;return 13===c.which||9===c.which},A=e(c.typeaheadOnSelect),B=angular.isDefined(c.typeaheadSelectOnBlur)?a.$eval(c.typeaheadSelectOnBlur):!1,C=e(c.typeaheadNoResults).assign||angular.noop,D=c.typeaheadInputFormatter?e(c.typeaheadInputFormatter):void 0,E=c.typeaheadAppendToBody?a.$eval(c.typeaheadAppendToBody):!1,F=c.typeaheadAppendTo?a.$eval(c.typeaheadAppendTo):null,G=a.$eval(c.typeaheadFocusFirst)!==!1,H=c.typeaheadSelectOnExact?a.$eval(c.typeaheadSelectOnExact):!1,I=e(c.typeaheadIsOpen).assign||angular.noop,J=a.$eval(c.typeaheadShowHint)||!1,K=e(c.ngModel),L=e(c.ngModel+"($$$p)"),M=function(b,c){return angular.isFunction(K(a))&&q&&q.$options&&q.$options.getterSetter?L(b,{$$$p:c}):K.assign(b,c)},N=m.parse(c.uibTypeahead),O=a.$new(),P=a.$on("$destroy",function(){O.$destroy()});O.$on("$destroy",P);var Q="typeahead-"+O.$id+"-"+Math.floor(1e4*Math.random());b.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":Q});var R,S;J&&(R=angular.element("<div></div>"),R.css("position","relative"),b.after(R),S=b.clone(),S.attr("placeholder",""),S.attr("tabindex","-1"),S.val(""),S.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),b.css({position:"relative","vertical-align":"top","background-color":"transparent"}),S.attr("id")&&S.removeAttr("id"),R.append(S),S.after(b));var T=angular.element("<div uib-typeahead-popup></div>");T.attr({id:Q,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(c.typeaheadTemplateUrl)&&T.attr("template-url",c.typeaheadTemplateUrl),angular.isDefined(c.typeaheadPopupTemplateUrl)&&T.attr("popup-template-url",c.typeaheadPopupTemplateUrl);var U=function(){J&&S.val("")},V=function(){O.matches=[],O.activeIdx=-1,b.attr("aria-expanded",!1),U()},W=function(a){return Q+"-option-"+a};O.$watch("activeIdx",function(a){0>a?b.removeAttr("aria-activedescendant"):b.attr("aria-activedescendant",W(a))});var X=function(a,b){return O.matches.length>b&&a?a.toUpperCase()===O.matches[b].label.toUpperCase():!1},Y=function(c,d){var e={$viewValue:c};y(a,!0),C(a,!1),f.when(N.source(a,e)).then(function(f){var g=c===p.$viewValue;if(g&&w)if(f&&f.length>0){O.activeIdx=G?0:-1,C(a,!1),O.matches.length=0;for(var h=0;h<f.length;h++)e[N.itemName]=f[h],O.matches.push({id:W(h),label:N.viewMapper(O,e),model:f[h]});if(O.query=c,o(),b.attr("aria-expanded",!0),H&&1===O.matches.length&&X(c,0)&&(angular.isNumber(O.debounceUpdate)||angular.isObject(O.debounceUpdate)?k(function(){O.select(0,d)},angular.isNumber(O.debounceUpdate)?O.debounceUpdate:O.debounceUpdate["default"]):O.select(0,d)),J){var i=O.matches[0].label;angular.isString(c)&&c.length>0&&i.slice(0,c.length).toUpperCase()===c.toUpperCase()?S.val(c+i.slice(c.length)):S.val("")}}else V(),C(a,!0);g&&y(a,!1)},function(){V(),y(a,!1),C(a,!0)})};E&&(angular.element(i).on("resize",n),h.find("body").on("scroll",n));var Z=k(function(){O.matches.length&&o(),O.moveInProgress=!1},s);O.moveInProgress=!1,O.query=void 0;var $,_=function(a){$=g(function(){Y(a)},u)},aa=function(){$&&g.cancel($)};V(),O.assignIsOpen=function(b){I(a,b)},O.select=function(d,e){var f,h,i={};x=!0,i[N.itemName]=h=O.matches[d].model,f=N.modelMapper(a,i),M(a,f),p.$setValidity("editable",!0),p.$setValidity("parse",!0),A(a,{$item:h,$model:f,$label:N.viewMapper(a,i),$event:e}),V(),O.$eval(c.typeaheadFocusOnSelect)!==!1&&g(function(){b[0].focus()},0,!1)},b.on("keydown",function(b){if(0!==O.matches.length&&-1!==r.indexOf(b.which)){var c=z(a,{$event:b});if(-1===O.activeIdx&&c||9===b.which&&b.shiftKey)return V(),void O.$digest();b.preventDefault();var d;switch(b.which){case 27:b.stopPropagation(),V(),a.$digest();break;case 38:O.activeIdx=(O.activeIdx>0?O.activeIdx:O.matches.length)-1,O.$digest(),d=T[0].querySelectorAll(".uib-typeahead-match")[O.activeIdx],d.parentNode.scrollTop=d.offsetTop;break;case 40:O.activeIdx=(O.activeIdx+1)%O.matches.length,O.$digest(),d=T[0].querySelectorAll(".uib-typeahead-match")[O.activeIdx],d.parentNode.scrollTop=d.offsetTop;break;default:c&&O.$apply(function(){angular.isNumber(O.debounceUpdate)||angular.isObject(O.debounceUpdate)?k(function(){O.select(O.activeIdx,b)},angular.isNumber(O.debounceUpdate)?O.debounceUpdate:O.debounceUpdate["default"]):O.select(O.activeIdx,b)})}}}),b.on("focus",function(a){w=!0,0!==t||p.$viewValue||g(function(){Y(p.$viewValue,a)},0)}),b.on("blur",function(a){B&&O.matches.length&&-1!==O.activeIdx&&!x&&(x=!0,O.$apply(function(){angular.isObject(O.debounceUpdate)&&angular.isNumber(O.debounceUpdate.blur)?k(function(){O.select(O.activeIdx,a)},O.debounceUpdate.blur):O.select(O.activeIdx,a)})),!v&&p.$error.editable&&(p.$setViewValue(),O.$apply(function(){p.$setValidity("editable",!0),p.$setValidity("parse",!0)}),b.val("")),w=!1,x=!1});var ba=function(c){b[0]!==c.target&&3!==c.which&&0!==O.matches.length&&(V(),j.$$phase||a.$digest())};h.on("click",ba),a.$on("$destroy",function(){h.off("click",ba),(E||F)&&ca.remove(),E&&(angular.element(i).off("resize",n),h.find("body").off("scroll",n)),T.remove(),J&&R.remove()});var ca=d(T)(O);E?h.find("body").append(ca):F?angular.element(F).eq(0).append(ca):b.after(ca),this.init=function(b,c){p=b,q=c,O.debounceUpdate=p.$options&&e(p.$options.debounce)(a),p.$parsers.unshift(function(b){return w=!0,0===t||b&&b.length>=t?u>0?(aa(),_(b)):Y(b):(y(a,!1),aa(),V()),v?b:b?void p.$setValidity("editable",!1):(p.$setValidity("editable",!0),null)}),p.$formatters.push(function(b){var c,d,e={};return v||p.$setValidity("editable",!0),D?(e.$model=b,D(a,e)):(e[N.itemName]=b,c=N.viewMapper(a,e),e[N.itemName]=void 0,d=N.viewMapper(a,e),c!==d?c:b)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(a,b,c,d){d[2].init(d[0],d[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(a){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(a,b){return b.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html";
-},link:function(b,c,d){b.templateUrl=d.templateUrl,b.isOpen=function(){var a=b.matches.length>0;return b.assignIsOpen({isOpen:a}),a},b.isActive=function(a){return b.active===a},b.selectActive=function(a){b.active=a},b.selectMatch=function(c,d){var e=b.debounce();angular.isNumber(e)||angular.isObject(e)?a(function(){b.select({activeIdx:c,evt:d})},angular.isNumber(e)?e:e["default"]):b.select({activeIdx:c,evt:d})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(a,b,c){return{scope:{index:"=",match:"=",query:"="},link:function(d,e,f){var g=c(f.templateUrl)(d.$parent)||"uib/template/typeahead/typeahead-match.html";a(g).then(function(a){var c=angular.element(a.trim());e.replaceWith(c),b(c)(d)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(a,b,c){function d(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function e(a){return/<.*>/g.test(a)}var f;return f=b.has("$sanitize"),function(b,g){return!f&&e(b)&&c.warn("Unsafe use of typeahead please use ngSanitize"),b=g?(""+b).replace(new RegExp(d(g),"gi"),"<strong>$&</strong>"):b,f||(b=a.trustAsHtml(b)),b}}]),angular.module("ui.bootstrap.carousel").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/.bower.json b/ecomp-portal-FE/client/bower_components/angular-cache/.bower.json
deleted file mode 100644
index 69505556..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/.bower.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "author": "Jason Dobry",
- "name": "angular-cache",
- "description": "angular-cache is a very useful replacement for Angular's $cacheFactory.",
- "homepage": "https://github.com/jmdobry/angular-cache",
- "repository": {
- "type": "git",
- "url": "https://github.com/jmdobry/angular-cache.git"
- },
- "main": "./dist/angular-cache.js",
- "ignore": [
- ".idea/",
- ".*",
- "*.iml",
- "src/",
- "bower_components/",
- "coverage/",
- "Gruntfile.js",
- "package.json",
- "CONTRIBUTING.md",
- "node_modules/",
- "test/",
- "karma.conf.js",
- "karma.start.js",
- "libpeerconnection.log"
- ],
- "devDependencies": {
- "angular-1.2.25": "angular#1.2.25",
- "angular-resource": "angular-resource#1.2.25",
- "angular-mocks-1.2.25": "angular-mocks#1.2.25"
- },
- "dependencies": {
- "angular": ">=1.x"
- },
- "version": "4.6.0",
- "_release": "4.6.0",
- "_resolution": {
- "type": "version",
- "tag": "4.6.0",
- "commit": "b491ed8361cd092dd82e59eab0031a2e202900a6"
- },
- "_source": "https://github.com/jmdobry/angular-cache.git",
- "_target": "~4.6.0",
- "_originalSource": "angular-cache"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/CHANGELOG.md b/ecomp-portal-FE/client/bower_components/angular-cache/CHANGELOG.md
deleted file mode 100644
index b5f917d9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/CHANGELOG.md
+++ /dev/null
@@ -1,353 +0,0 @@
-##### 4.6.0 29 April 2016
-
-###### Bug fixes
-- #215 - angular-cache.min.js tries to load the .map from dist/
-- #204 - Does not work with Angular 1.3 and browserify
-
-##### 4.5.0 12 January 2016
-
-###### Backwards compatible API changes
-- #205 - Feature request: Cache.getAllValues
-
-###### Backwards compatible bug fixes
-
-- #211 - Expires value gets sometimes automatically set to null
-- #212 - Internal Cache not reloaded on Reload
-
-###### Other
-
-- Upgraded to CacheFactory v1.4.0
-
-##### 4.4.3 30 December 2015
-
-- #179 - capacity does not work on often reload
-- #210 - Why does angular-cache ignore capacity configuration?
-
-##### 4.4.1 12 October 2015
-
-- #203 - trouble: bundle with r.js not works
-
-##### 4.4.0 12 October 2015
-
-- #200 - 4.3 storagePrefix is not backwards compatible
-- #201 - webpack minification error
-
-##### 4.3.2 10 July 2015
-
-- #191 - yabh issue with ie8
-
-##### 4.3.1 07 July 2015
-
-- #190 - 4.3 breaks phantomJS tests
-
-##### 4.3.0 06 July 2015
-
-- #189 - Extracted non-angular code.
-
-##### 4.2.2 01 July 2015
-
-###### Backwards compatible bug fixes
-- #165 - storageMode does not inherits from defaults
-
-##### 4.2.1 01 July 2015
-
-Upgraded dependencies
-Better CommonJS interop
-Added a number of build examples
-
-##### 4.2.0 27 April 2015
-
-###### Backwards compatible bug fixes
-- #174 - Cache not being fully emptied if using localStorage and multiple web pages
-
-##### 4.1.0 30 March 2015
-
-###### Backwards compatible API changes
-- #169 - Official support for ngResource
-
-##### 4.0.2 22 March 2015
-
-###### Backwards compatible bug fixes
-- #164 - onExpire is still called when cache is empty
-
-##### 4.0.1 20 March 2015
-
-###### Backwards compatible bug fixes
-- #163 - Configuring CacheOption storagePrefix results in "true.{key}"
-
-##### 4.0.0 15 March 2015
-
-###### Breaking API changes
-- Completely disassociated angular-cache from the deprecated angular-data (angular-data has been replaced by js-data + js-data-angular)
-- Angular module renamed to _angular-cache_
-- _DSCacheFactory_ renamed to _CacheFactory_
-- _DSBinaryHeap_ renamed to _BinaryHeap_
-- Removed `DSCacheFactoryProvider.setCacheDefaults`. You now do `angular.extend(CacheFactoryProvider.defaults, { ... });`
-- No longer exposing a `DSCache` constructor function (as it no longer exists)
-- `storageMode` can now be set dynamically, which will remove all items from current storage and insert them into the new storage
-
-###### Other
-- Fixes #161
-- Converted to ES6 and a webpack build with better umd support
-- Now exporting the module name _angular-cache_ (when you do `require('angular-cache')` you get `"angular-cache"`)
-- Deprecating angular-cache < 4.0.0
-
-##### 3.2.5 02 February 2015
-
-###### Backwards compatible bug fixes
-- #152 - Expired items sometimes only expire after double time.
-- #153 - Missing angular dependency in bower.json
-
-##### 3.2.4 17 December 2014
-
-###### Backwards compatible bug fixes
-- #149 - when removing an object from localStorage the key didn't get removed if the passed parameter is of number type.
-
-##### 3.2.3 13 December 2014
-
-###### Backwards compatible bug fixes
-- #112 - $resource cache and 3.0.0-beta-x
-- #122 - Error using DSCacheFactory with $http/ $resource and localStorage
-- #148 - Illegal operation when using local-/sessionStorage
-
-##### 3.2.2 24 November 2014
-
-###### Backwards compatible bug fixes
-- #147 - `storeOnResolve` and `storeOnReject` should default to `false`
-
-##### 3.2.1 10 November 2014
-
-###### Backwards compatible bug fixes
-- #142 - Use JSON.stringify instead of angular.toJson
-
-##### 3.2.0 07 November 2014
-
-###### Backwards compatible API changes
-- #135 - Closes #135. (Improved handling of promises.)
-
-##### 3.1.1 28 August 2014
-
-###### Backwards compatible bug fixes
-- #124 - DSCache.info does not work if the storageMode is localStorage.
-- #127 - requirejs conflict, require object overwritten
-
-##### 3.1.0 15 July 2014
-
-###### Backwards compatible API changes
-- #117 - call to DSCacheFactory(...) produces JSHint warning (Added DSCacheFactory.createCache method)
-
-###### Backwards compatible bug fixes
-- #118 - dist/angular-cache.js doesn't end with a semicolon (Upgraded dependencies)
-- #120 - How come the non minified version has minified code? (Upgraded dependencies)
-
-##### 3.0.3 16 June 2014
-
-###### Backwards compatible bug fixes
-- Angular 1.2.18 with $http/localStorage #116
-
-##### 3.0.2 15 June 2014
-
-###### Backwards compatible bug fixes
-- $http w/ cache is trying to store a promise, which dies on JSON.stringify #115
-
-##### 3.0.1 14 June 2014
-
-###### Backwards compatible bug fixes
-- Added polyfill for `$$minErr`.
-
-##### 3.0.0 14 June 2014
-
-3.0.0 Release
-
-##### 3.0.0-beta.4 22 April 2014
-
-###### Backwards compatible API changes
-- Add feature to 'touch' elements in the cache #103
-
-###### Backwards compatible bug fixes
-- `localstorage` and Safari Private Browsing #107
-
-##### 3.0.0-beta.3 03 March 2014
-
-###### Backwards compatible bug fixes
-- Fixed duplicate keys when using localStorage #106
-
-##### 3.0.0-beta.2 25 February 2014
-
-###### Backwards compatible bug fixes
-- Fixed missing reference to DSBinaryHeap #105
-
-##### 3.0.0-beta.1 24 February 2014
-
-###### Breaking API changes
-- `maxAge` and `deleteOnExpire` are no longer overridable for individual items
-- Renamed angular module to `angular-data.DSCacheFactory`. Angular-cache is now part of the `angular-data` namespace
-- The `verifyIntegrity` option has been completely removed due to a cache being exclusively in-memory OR in web storage #96
-- Supported values for the `storageMode` option are now: `"memory"`, `"localStorage"` or `"sessionStorage"` with the default being `"memory"`
-- `DSCache#put(key, value)` no longer accepts a third `options` argument
-- `DSCache#removeExpired()` no longer accepts an `options` argument and thus no longer supports returning removed expired items as an array
-- `DSCache#remove(key)` no longer accepts an `options` argument
-- `DSCache#setOptions(options[, strict])` no longer accepts `storageMode` and `storageImpl` as part of the `options` argument
-- `storageMode` is no longer dynamically configurable
-- `storageImpl` is no longer dynamically configurable
-
-###### Backwards compatible API changes
-- Added `DSCache#enable()`
-- Added `DSCache#disable()`
-- Added `DSCache#setCapacity(capacity)`
-- Added `DSCache#setMaxAge(maxAge)`
-- Added `DSCache#setCacheFlushInterval(cacheFlushInterval)`
-- Added `DSCache#setRecycleFreq(recycleFreq)`
-- Added `DSCache#setDeleteOnExpire(deleteOnExpire)`
-- Added `DSCache#setOnExpire(onExpire)`
-- Added option `storagePrefix` for customizing the prefix used in `localStorage`, etc. #98
-- Refactored to be in-memory OR webStorage, never both #96
-
-###### Other
-- I might have missed something...
-
-##### 2.3.3 - 24 February 2014
-
-###### Backwards compatible bug fixes
-- *sigh Fixed #102 (regression from #100)
-
-##### 2.3.2 - 23 February 2014
-
-###### Backwards compatible bug fixes
-- Fixed #100 (regression from #89)
-
-##### 2.3.1 - 19 February 2014
-
-###### Backwards compatible bug fixes
-- Fixed #89
-
-##### 2.3.0 - 09 January 2014
-- Caches can now be disabled #82
-- The `options` object (`$angularCacheFactory()`, `AngularCache#setOptions()`, and `$angularCacheFactoryProvider.setCacheDefaults()`) now accepts a `disabled` field, which can be set to `true` and defaults to `false`.
-- `$angularCacheFactory.enableAll()` will enable any disabled caches.
-- `$angularCacheFactory.disableAll()` will disable all caches.
-- A disabled cache will operate as normal, except `AngularCache#get()` and `AngularCache#put()` will both immediately return `undefined` instead of performing their normal functions.
-
-###### Backwards compatible API changes
-- `removeExpired()` now returns an object (or array) of the removed items.
-
-###### Backwards compatible bug fixes
-- `removeExpired()` now removes _all_ expired items.
-
-##### 2.2.0 - 15 December 2013
-
-###### Backwards compatible API changes
-- `removeExpired()` now returns an object (or array) of the removed items.
-
-###### Backwards compatible bug fixes
-- `removeExpired()` now removes _all_ expired items.
-
-##### 2.1.1 - 20 November 2013
-
-###### Backwards compatible bug fixes
-- Allow number keys, but stringify them #76
-- Fix "Uncaught TypeError: Cannot read property 'maxAge' of null" #77 (thanks @evngeny-o)
-
-##### 2.1.0 - 03 November 2013
-
-###### Backwards compatible API changes
-- Modify .get(key, options) to accept multiple keys #71 (thanks @roryf)
-
-###### Other
-- Run tests against multiple versions of Angular.js #72
-- Add banner to dist/angular-cache.min.js #68
-
-##### 2.0.0 - 30 October 2013
-- Not all methods of AngularCache and $angularCacheFactory are in README #61
-- Fix demo to work with 2.0.0-rc.1 #62
-- Using Bower to install this package, the dist filenames change per version? #63
-
-##### 2.0.0-rc.1 - 14 October 2013
-
-###### Breaking API changes
-- Swapped `aggressiveDelete` option for `deleteOnExpire` option. #30, #47
-- Changed `$angularCacheFactory.info()` to return an object similar to `AngularCache.info()` #45
-- Namespaced angular-cache module under `jmdobry` so it is now "jmdobry.angular-cache". #42
-- Substituted `storageImpl` and `sessionStorageImpl` options for just `storageImpl` option.
-
-###### Backwards compatible API changes
-- Added `recycleFreq` to specify how frequently to check for expired items (no more $timeout). #28, #57
-- Added ability to set global cache defaults in $angularCacheFactoryProvider. #55
-
-###### Backwards compatible bug fixes
-- cacheFlushInterval doesn't clear web storage when storageMode is used. #52
-- AngularCache#info(key) should return 'undefined' if the key isn't in the cache #53
-- Fixed timespan issues in README.md. #59
-
-###### Other
-- Refactored angular-cache `setOptions()` internals to be less convoluted and to have better validation. #46
-- Re-wrote documentation to be clearer and more organized. #56
-- Fixed documentation where time spans were incorrectly labeled. #59
-
-##### 1.2.0 - 20 September 2013
-
-###### Backwards compatible API changes
-- Added AngularCache#info(key) #43
-
-###### Backwards compatible bug fixes
-- Fixed #39, #44, #49, #50
-
-##### 1.1.0 - 03 September 2013
-
-###### Backwards compatible API changes
-- Added `onExpire` callback hook #27
-- Added `$angularCacheFactory.removeAll()` and `$angularCacheFactory.clearAll()` convenience methods #37, #38
-
-###### Backwards compatible bug fixes
-- Fixed #36
-
-##### 1.0.0 - 25 August 2013
-- Closed #31 (Improved documentation)
-- Closed #32
-
-##### 1.0.0-rc.1 - 21 August 2013
-- Added localStorage feature #26, #29
-
-##### 0.9.1 - 03 August 2013
-- Fixed #25
-
-##### 0.9.0 - 03 August 2013
-- Added a changelog #13
-- Added documentation for installing with bower
-- Added ability to set option `aggressiveDelete` when creating cache and when adding items
-- Cleaned up README.md
-- Switched the demo to use Bootstrap 3
-
-##### 0.8.2 - 09 July 2013
-- Added CONTRIBUTING.md #22
-- Cleaned up meta data in bower.json and package.json
-
-##### 0.8.1 - 09 July 2013
-- Added .jshintrc
-- Cleaned up the docs a bit
-- `bower.json` now uses `src/angular-cache.js` instead of the versioned output files #21
-- From now on the tags for the project will be named using [semver](http://semver.org/)
-
-##### 0.8.0 - 08 July 2013
-- Added `AngularCache.setOptions()`, the ability to dynamically change the configuration of a cache #20
-- Added `AngularCache.keys()`, which returns an array of the keys in a cache #19
-- Added `AngularCache.keySet()`, which returns a hash of the keys in a cache #19
-
-##### 0.7.2 - June 2013
-- Added `angular-cache` to bower registry #7
-- Created a working demo #9 #17
-- Fixed the size not being reset to 0 when the cache clears itself #14 #16
-- Added `$angularCacheFactory.keys()`, which returns an array of the keys (the names of the caches) in $angularCacheFactory #18
-- Added `$angularCacheFactory.keySet()`, which returns a hash of the keys (the names of the caches) in $angularCacheFactory #18
-
-##### 0.6.1 - June 2013
-- Got the project building on TravisCI
-- Renamed the project to `angular-cache` #5
-
-##### 0.5.0 - June 2013
-- Added a roadmap to README.md #4
-- Clarify usage documentation #3
-- Wrote unit tests #2
-
-##### 0.4.0 - May 2013
-- Added Grunt build tasks #1
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/LICENSE b/ecomp-portal-FE/client/bower_components/angular-cache/LICENSE
deleted file mode 100644
index ab9faee3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License
-
-Copyright (C) 2013-2016 angular-cache project authors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/README.md b/ecomp-portal-FE/client/bower_components/angular-cache/README.md
deleted file mode 100644
index a24a57b7..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/README.md
+++ /dev/null
@@ -1,671 +0,0 @@
-# angular-cache
-
-[![bower version](https://img.shields.io/bower/v/angular-cache.svg?style=flat)](https://www.npmjs.org/package/angular-cache)
-[![npm version](https://img.shields.io/npm/v/angular-cache.svg?style=flat)](https://www.npmjs.org/package/angular-cache)
-[![Circle CI](https://img.shields.io/circleci/project/jmdobry/angular-cache/master.svg?style=flat)](https://circleci.com/gh/jmdobry/angular-cache/tree/master)
-[![npm downloads](https://img.shields.io/npm/dm/angular-cache.svg?style=flat)](https://www.npmjs.org/package/angular-cache)
-[![codecov](https://img.shields.io/codecov/c/github/jmdobry/angular-cache.svg)](https://codecov.io/gh/jmdobry/angular-cache)
-
-A very useful replacement for Angular's $cacheFactory.
-
-__versions of angular-cache below 4.0.0 have been deprecated, see the [breaking changes](https://github.com/jmdobry/angular-cache/blob/master/CHANGELOG.md) in 4.0.0__
-
-### Table of Contents
-- [Quick Start](#quick-start)
-- [The Basics](#the-basics)
-- [Working with a cache](#working-with-a-cache)
-- [Configuration Options](#configuration-options)
-- [Using angular-cache with $http](#using-angular-cache-with-http)
-- [Using angular-cache with localStorage](#using-angular-cache-with-localstorage)
-- [API Reference](#api-reference)
-
-### Quick Start
-`bower install --save angular-cache` or `npm install --save angular-cache`.
-
-```js
-angular.module('myApp', ['angular-cache'])
- .config(function (CacheFactoryProvider) {
- angular.extend(CacheFactoryProvider.defaults, { maxAge: 15 * 60 * 1000 });
- })
- .service('BookService', function (CacheFactory, $http) {
- if (!CacheFactory.get('bookCache')) {
- // or CacheFactory('bookCache', { ... });
- CacheFactory.createCache('bookCache', {
- deleteOnExpire: 'aggressive',
- recycleFreq: 60000
- });
- }
-
- var bookCache = CacheFactory.get('bookCache');
-
- return {
- findBookById: function (id) {
- return $http.get('/api/books/' + id, { cache: bookCache });
- }
- };
- });
-```
-
-#### Why would you want to replace $cacheFactory?
-
-| Feature | $cacheFactory | angular-cache |
-| ----------- | ------------------- | --------------- |
-| core implementation usable outside of Angular | no | [__yes__](https://github.com/jmdobry/CacheFactory) |
-| key/value store | __yes__ | __yes__ |
-| in-memory support | __yes__ | __yes__ |
-| localStorage support | no | __yes__ |
-| sessionStorage support | no | __yes__ |
-| custom storage support | no | __yes__ |
-| can set maximum capacity | __yes__ | __yes__ |
-| LRU support | __yes__ | __yes__ |
-| support for time-based expiration of items | no | __yes__ |
-| remove all expired items | n/a | __yes__ |
-| "touch" an item | n/a | __yes__ |
-| execute callback when an item expires | n/a | __yes__ |
-| get info about cache | __yes__ | __yes__ |
-| get info about single item | no | __yes__ |
-| get item by key | __yes__ | __yes__ |
-| remove item by key | __yes__ | __yes__ |
-| remove all items | __yes__ | __yes__ |
-| get keys of all caches | no | __yes__ |
-| clear all caches | no | __yes__ |
-| disable/enable a cache | no | __yes__ |
-| "touch" all items in all caches | n/a | __yes__ |
-| remove expired items from all caches | n/a | __yes__ |
-| get all keys in a cache | no | __yes__ |
-| clear a cache on a given interval | no | __yes__ |
-
-### The Basics
-
-First, inject `CacheFactory` then create a cache. Let's go:
-
-```js
-app.service('myService', function (CacheFactory) {
- var profileCache;
-
- // Check to make sure the cache doesn't already exist
- if (!CacheFactory.get('profileCache')) {
- profileCache = CacheFactory('profileCache');
- }
-});
-```
-
-Let's add some items to the cache:
-
-```js
-profileCache.put('/profiles/34', {
- name: 'John',
- skills: ['programming', 'piano']
-});
-
-profileCache.put('/profiles/22', {
- name: 'Sally',
- skills: ['marketing', 'climbing', 'painting']
-});
-```
-
-Right now, these items will stay in the cache until a page refresh.
-
-Let's have items which are added to `profileCache` expire after an hour:
-
-```js
-profileCache = CacheFactory('profileCache', {
- maxAge: 60 * 60 * 1000 // 1 hour
-});
-```
-
-Perfect. Say we also want the items removed from the cache when they expire:
-
-```js
-profileCache = CacheFactory('profileCache', {
- maxAge: 60 * 60 * 1000 // 1 hour,
- deleteOnExpire: 'aggressive'
-});
-```
-
-Let's say that when the items do expire, we want to refresh them with new values:
-
-```js
-profileCache = CacheFactory('profileCache', {
- maxAge: 60 * 60 * 1000 // 1 hour,
- deleteOnExpire: 'aggressive',
- onExpire: function (key, value) {
- $http.get(key).success(function (data) {
- profileCache.put(key, data);
- });
- }
-});
-```
-
-Or say we want all of our caches to use that configuration as their default:
-
-```js
-angular.module('app', ['angular-cache']).config(function (CacheFactoryProvider) {
- angular.extend(CacheFactoryProvider.defaults, {
- maxAge: 3600000,
- deleteOnExpire: 'aggressive',
- onExpire: function (key, value) {
- var _this = this; // "this" is the cache in which the item expired
- angular.injector(['ng']).get('$http').get(key).success(function (data) {
- _this.put(key, data);
- });
- }
- });
-});
-```
-
-### Working with a cache
-
-We can retrieve items from a cache like so:
-
-```js
-var profile = profileCache.get('/profiles/34');
-
-profile.name; // 'John'
-```
-
-And get information about items in the cache:
-
-```js
-var info = profileCache.info('/profiles/34');
-
-info.isExpired; // false
-// etc.
-```
-
-and information about the cache itself:
-
-```
-var info = profileCache.info();
-
-info.size; // 2
-info.maxAge; // 3600000
-info.deleteOnExpire; // 'aggressive'
-// etc.
-```
-
-Items are easily removed, and we can destroy our cache when we're done with it:
-
-```js
-profileCache.remove('/profiles/34');
-
-profileCache.get('/profiles/34'); // undefined
-
-profileCache.destroy();
-
-CacheFactory.get('profileCache'); // undefined
-```
-
-### Configuration Options
-
-These options apply to:
-
-- `CacheFactory(cacheId[, options)`
-- `CacheFactory.createCache(cacheId[, options])`
-- `Cache#setOptions(options[, strict])`
-- `Cache#setMaxAge(maxAge)`, `Cache#setOnExpire(onExpire)`, etc.
-
-##### `cacheFlushInterval`
-
-If set, remove all items from a cache on an interval after the given number of milliseconds. Default: `null`.
-
-##### `capacity`
-
-Maximum number of items a cache can hold. Adding more items than the capacity will cause the cache to operate like an LRU cache, removing the least recently used items to stay under capacity. Default: `Number.MAX_VALUE`.
-
-##### `deleteOnExpire`
-
-Determines the behavior of a cache when an item expires. Default: `none`.
-
-Possible values:
-
-- `none` - Cache will do nothing when an item expires.
-- `passive` - Cache will do nothing when an item expires. Expired items will remain in the cache until requested, at which point they are removed, and `undefined` is returned.
-- `aggressive` - Cache will remove expired items as soon as they are discovered.
-
-##### `disabled`
-
-Determines whether a cache is disabled. Default: `false`.
-
-##### `onExpire`
-
-A callback function to be executed whenever an expired item is removed from a cache when the cache is in `passive` or `aggressive` mode. Will be passed the `key` and `value` of the expired item.
-
-Will be passed a third `done` argument if the cache is in `passive` mode. This allows you to synchronously access the `key` and `value` of the expired item when you make the `Cache#get(key[, options])` call that is the reason the expired item is being removed in the first place. Default: `null`.
-
-##### `maxAge`
-
-The number of milliseconds until a newly inserted item expires. Default: `Number.MAX_VALUE`.
-
-##### `recycleFreq`
-
-Determines how often a cache will scan for expired items when in `aggressive` mode. Default: `1000` (milliseconds).
-
-##### `storageImpl`
-
-Provide a custom storage medium, e.g. a polyfill for `localStorage`. Default: `null`.
-
-Must implement:
-
-- `setItem` - Same API as `localStorage.setItem(key, value)`
-- `getItem` - Same API as `localStorage.getItem(key)`
-- `removeItem` - Same API as `localStorage.removeItem(key)`
-
-##### `storageMode`
-
-Determines the storage medium used by a cache. Default: `memory`.
-
-Possible values:
-
-- `memory` - Cache will hold data in memory. Data is cleared when the page is refreshed.
-- `localStorage` - Cache will hold data in `localStorage` if available. Data is _not_ cleared when the page is refreshed.
-- `sessionStorage` - Cache will hold data in `sessionStorage` if available. Data is _not_ cleared when the page is refreshed.
-
-##### `storagePrefix`
-
-Determines the namespace of a cache when `storageMode` is set to `localStorage` or `sessionStorage`. Make it a shorter string to save space. Default: `angular-cache.caches.`.
-
-##### `storeOnReject`
-
-If inserting a promise into a cache, also insert the rejection value if the promise rejects. Default: `false`.
-
-##### storeOnResolve
-
-If inserting a promise into a cache, also insert the resolved value if the promise resolves. Default: `false`.
-
-### Using angular-cache with $http
-
-__Note:__ The downside of letting `$http` handle caching for you is that it caches the responses (in string form) to your requests–not the JavaScript Object parsed from the response body. This means you can't interact with the data in the cache used by `$http`. See below for how to handle the caching yourself, which gives you more control and the ability to interact with the cache (use it as a data store).
-
-Configure `$http` to use a cache created by `CacheFactory` by default:
-
-```js
-app.run(function ($http, CacheFactory) {
- $http.defaults.cache = CacheFactory('defaultCache', {
- maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes
- cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour
- deleteOnExpire: 'aggressive' // Items will be deleted from this cache when they expire
- });
-});
-```
-
-```js
-app.service('MyService', function ($http, $q) {
- return {
- getDataById: function (id) {
- var deferred = $q.defer();
- var start = new Date().getTime();
-
- $http.get('api/data/' + id, {
- cache: true
- }).success(function (data) {
- console.log('time taken for request: ' + (new Date().getTime() - start) + 'ms');
- deferred.resolve(data);
- });
- return deferred.promise;
- }
- };
-});
-```
-
-```js
-app.controller('myCtrl', function (MyService) {
- MyService.getDataById(1).then(function (data) {
- // e.g. "time taken for request: 2375ms"
- // Data returned by this next call is already cached.
- return MyService.getDataById(1).then(function (data) {
- // e.g. "time taken for request: 1ms"
- });
- });
-});
-```
-
-Tell $http to use a cache created by CacheFactory for a specific request:
-
-```js
-app.service('MyService', function ($q, $http, CacheFactory) {
-
- CacheFactory('dataCache', {
- maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes
- cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour
- deleteOnExpire: 'aggressive' // Items will be deleted from this cache when they expire
- });
-
- return {
- getDataById: function (id) {
- var deferred = $q.defer();
- var start = new Date().getTime();
-
- $http.get('api/data/' + id, {
- cache: CacheFactory.get('dataCache')
- }).success(function (data) {
- console.log('time taken for request: ' + (new Date().getTime() - start) + 'ms');
- deferred.resolve(data);
- });
- return deferred.promise;
- }
- };
-});
-```
-
-```js
-app.controller('myCtrl', function (MyService) {
- MyService.getDataById(1).then(function (data) {
- // e.g. "time taken for request: 2375ms"
- // Data returned by this next call is already cached.
- return MyService.getDataById(1).then(function (data) {
- // e.g. "time taken for request: 1ms"
- });
- });
-});
-```
-
-Do your own caching while using the $http service:
-
-```js
-app.service('MyService', function ($q, $http, CacheFactory) {
-
- CacheFactory('dataCache', {
- maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes
- cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour
- deleteOnExpire: 'aggressive' // Items will be deleted from this cache when they expire
- });
-
- return {
- getDataById: function (id) {
- var deferred = $q.defer();
- var start = new Date().getTime();
- var dataCache = CacheFactory.get('dataCache');
-
- // Now that control of inserting/removing from the cache is in our hands,
- // we can interact with the data in "dataCache" outside of this context,
- // e.g. Modify the data after it has been returned from the server and
- // save those modifications to the cache.
- if (dataCache.get(id)) {
- deferred.resolve(dataCache.get(id));
- } else {
- $http.get('api/data/' + id).success(function (data) {
- console.log('time taken for request: ' + (new Date().getTime() - start) + 'ms');
- dataCache.put(id, data);
- deferred.resolve(data);
- });
- }
- return deferred.promise;
- }
- };
-});
-```
-
-```js
-app.controller('myCtrl', function (MyService) {
- MyService.getDataById(1).then(function (data) {
- // e.g. "time taken for request: 2375ms"
- // Data returned by this next call is already cached.
- return MyService.getDataById(1).then(function (data) {
- // e.g. "time taken for request: 1ms"
- });
- });
-});
-```
-
-### Using angular-cache with localStorage
-
-```js
-app.service('myService', function (CacheFactory) {
-
- // This cache will sync itself with localStorage if it exists, otherwise it won't. Every time the
- // browser loads this app, this cache will attempt to initialize itself with any data it had
- // already saved to localStorage (or sessionStorage if you used that).
- var myAwesomeCache = CacheFactory('myAwesomeCache', {
- maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes.
- cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour.
- deleteOnExpire: 'aggressive', // Items will be deleted from this cache right when they expire.
- storageMode: 'localStorage' // This cache will use `localStorage`.
- });
-});
-```
-
-Using angular-cache in browsers that DON'T support localStorage:
-
-Option 1 - Do nothing (the cache will just store data in memory)
-
-Option 2 - Create/use a polyfill that provides the global `localStorage` and `sessionStorage` objects. angular-cache will attempt to use these if it finds them.
-
-Option 3 - Tell angular-cache exactly which polyfill to use (also useful if you just want to use your own implementation/wrapper for localStorage):
-
-```js
-app.service('myService', function (CacheFactory) {
-
- var localStoragePolyfill = {
- getItem: function (key) { ... },
- setItem: function (key, value) { ... },
- removeItem: function (key) { ... }
- };
-
- // Always use the polyfill
- var myAwesomeCache = CacheFactory('myAwesomeCache', {
- maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes.
- cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour.
- deleteOnExpire: 'aggressive', // Items will be deleted from this cache right when they expire.
- storageMode: 'localStorage', // This cache will use `localStorage`.
- storageImpl: localStoragePolyfill // angular-cache will use this polyfill instead of looking for localStorage
- });
-
- // Conditionally use the polyfill
- var options = {
- maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes.
- cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour.
- deleteOnExpire: 'aggressive', // Items will be deleted from this cache right when they expire.
- storageMode: 'localStorage' // This cache will use `localStorage`.
- };
- if (!window.localStorage) {
- options.storageImpl = localStoragePolyfill;
- }
- var myAwesomeCache = CacheFactory('myAwesomeCache', options);
-});
-```
-
-Documentation on the interface that must be implemented by any storageImpl polyfill used by angular-cache can be found on the W3C Recommendation page for webstorage. The interface itself looks like:
-
-```
-interface Storage {
- readonly attribute unsigned long length;
- DOMString? key(unsigned long index);
- getter DOMString getItem(DOMString key);
- setter creator void setItem(DOMString key, DOMString value);
- deleter void removeItem(DOMString key);
- void clear();
-};
-```
-
-angular-cache cares only about these three methods:
-
-- `setItem`
-- `getItem`
-- `removeItem`
-
-One developer suggested using store.js–a wrapper and polyfill for localStorage. However, store.js has its own API that doesn't match that of the webstorage spec, so if you want to use store.js or any other 3rd-party polyfill then you'll need to create a wrapper for it if it doesn't have the same API as localStorage . For example:
-
-```js
-var storeJsToStandard {
- getItem: store.get,
- setItem: store.set,
- removeItem: store.remove
-};
-
-CacheFactory('myNewCache', {
- storageMode: 'localStorage',
- storageImpl: storeJsToStandard
-});
-```
-
-### API Reference
-
-##### `CacheFactory(cacheId[, options])` & `CacheFactory.createCache(cacheId[, options])`
-
-Create a cache. Cache must not already exist. `cacheId` must be a string. `options` is an optional argument and must be an object. Any options you pass here will override any default options.
-
-```js
-var cache = CacheFactory('cache');
-var cache2 = CacheFactory.createCache('cache2');
-var cache3 = CacheFactory('cache', { maxAge: 900000 });
-var cache4 = CacheFactory('cache'); // Error "cache already exists!"
-```
-
-##### `CacheFactory.get(cacheId)`
-
-Return the cache with the given `cacheId`.
-
-##### `CacheFactory.info()`
-
-Return an object of key-value pairs, the keys being cache ids and the values being the result of `.info()` being called on each cache.
-
-##### `CacheFactory.keySet()`
-
-Return the ids of all registered caches as an object.
-
-##### `CacheFactory.keys()`
-
-Return the ids of all registered caches as an array.
-
-##### `CacheFactory.destroy(cacheId)`
-
-Destroy the cache with the given `cacheId`.
-
-##### `CacheFactory.destroyAll()`
-
-Destroy all registered caches.
-
-##### `CacheFactory.clearAll()`
-
-Remove all data from all registered caches.
-
-##### `CacheFactory.enableAll()`
-
-Enable all registered caches.
-
-##### `CacheFactory.disableAll()`
-
-Disable all registered caches.
-
-##### `CacheFactory.touchAll()`
-
-Call `.touch()` on all registered caches.
-
-##### `CacheFactory.removeExpiredFromAll()`
-
-Call `.removeExpired()` on all registered caches. Returns a hash of any expired items, keyed by cache id.
-
-##### `Cache#get(key[, options])`
-
-Return the item with the given `key`. `options`, if provided, must be an object.
-
-If the cache is in `passive` mode, then `options.onExpire` can be a function that will be called with the `key` and `value` of the requested item if the requested item is expired, with the `get` call itself returning undefined.
-
-##### `Cache#put(key, value[, options])`
-
-Insert the item with the given `key` and `value` into the cache. `options`, if provided, must be an object.
-
-If inserting a promise, `options.storeOnReject` determines whether to insert the rejection value if the promise rejects (overriding the default `storeOnReject` setting for the cache).
-If inserting a promise, `options.storeOnResolve` determines whether to insert the resolved value if the promise resolves (overriding the default `storeOnResolve` setting for the cache).
-
-##### `Cache.remove(key)`
-
-Remove and return the item with the given `key`, if it is in the cache.
-
-##### `Cache.removeAll()`
-
-Remove all items in the cache.
-
-##### `Cache.removeExpired()`
-
-Remove and return all expired items in the cache.
-
-##### `Cache.destroy()`
-
-Completely destroy this cache and its data.
-
-##### `Cache#info([key])`
-
-`Cache#info()` returns an object containing information about the cache.
-
-`Cache#info(key)` returns an object containing information about the item with the given `key`, if the item is in the cache.
-
-##### `Cache#keySet()`
-
-Return the keys of all items in the cache as an object.
-
-##### `Cache#keys()`
-
-Return the keys of all items in the cache as an array.
-
-##### `Cache#enable()`
-
-Enable the cache.
-
-##### `Cache#disable()`
-
-Disable the cache.
-
-##### `Cache#values()`
-
-Return all values in the cache.
-
-##### `Cache#touch([key])`
-
-`Cache#touch()` will "touch" all items in the cache.
-`Cache#touch(key)` will "touch" the item with the given `key`.
-
-##### `Cache#setCacheFlushInterval(cacheFlushInterval)`
-
-Set the `cacheFlushInterval` for the cache.
-
-##### `Cache#setCapacity(capacity)`
-
-Set the `capacity` for the cache. Setting this lower than the current item count will result in those items being removed.
-
-##### `Cache#setDeleteOnExpire(deleteOnExpire)`
-
-Set the `deleteOnExpire` for the cache.
-
-##### `Cache#setMaxAge(maxAge)`
-
-Set the `maxAge` for the cache.
-
-##### `Cache#setOnExpire(onExpire)`
-
-Set the `onExpire` for the cache.
-
-##### `Cache#setRecycleFreq(recycleFreq)`
-
-Set the `recycleFreq` for the cache.
-
-##### `Cache#setStorageMode(storageMode)`
-
-Set the `storageMode` for the cache. This will move data from the current storage medium to the new one.
-
-##### `Cache#setOptions(options[, strict])`
-
-Set multiple options for the cache at a time. Setting `strict` to `true` will reset options for the cache that are not specifically set in the `options` hash to `CacheFactoryProvider.defaults`.
-
-### License
-[MIT License](https://github.com/jmdobry/angular-cache/blob/master/LICENSE)
-
-Copyright (C) 2013-2016 angular-cache project authors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md b/ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md
deleted file mode 100644
index 0c0920dc..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/TRANSITION.md
+++ /dev/null
@@ -1,98 +0,0 @@
-### 2.x.x. ---> 3.x.x - xx April 2013
-TODO
-
-### 1.x.x. ---> 2.0.0 - 30 October 2013
-
-#### Breaking API changes
-##### Swapped `aggressiveDelete` option for `deleteOnExpire` option.
-
-###### 1.x.x
-Aggressively delete expiring items.
-```javascript
-$angularCacheFactory('myNewCache', {
- maxAge: 90000, // Items added to this cache expire after 15 minutes
- aggressiveDelete: true // Items will be actively deleted when they expire
-});
-```
-
-Passively delete items when they are requested after they have expired.
-```javascript
-$angularCacheFactory('myNewCache', {
- maxAge: 90000, // Items added to this cache expire after 15 minutes
- aggressiveDelete: false // Items will be actively deleted when they expire
-});
-```
-
-###### 2.0.0
-Aggressively delete expiring items.
-```javascript
-$angularCacheFactory('myNewCache', {
- maxAge: 90000, // Items added to this cache expire after 15 minutes
- deleteOnExpire: 'aggressive' // Items will be actively deleted when they expire
-});
-```
-
-Passively delete items when they are requested after they have expired.
-```javascript
-$angularCacheFactory('myNewCache', {
- maxAge: 90000, // Items added to this cache expire after 15 minutes
- deleteOnExpire: 'passive' // Items will be passively deleted when requested after expiration
-});
-```
-
-Do nothing with expired items (not in 1.x.x).
-```javascript
-$angularCacheFactory('myNewCache', {
- maxAge: 90000, // Items added to this cache expire after 15 minutes
- deleteOnExpire: 'none' // Items will expire but not be removed
-});
-```
-
-##### Substituted `localStorageImpl` and `sessionStorageImpl` options for just `storageImpl` option.
-
-###### 1.x.x
-```javascript
-$angularCacheFactory('myNewCache', {
- storageMode: 'localStorage',
- localStorageImpl: myLocalStoragePolyfill // Use custom localStorage implementation
-});
-
-$angularCacheFactory('myNewCache2', {
- storageMode: 'sessionStorage',
- sessionStorageImpl: mySessionStoragePolyfill // Use custom sessionStorage implementation
-});
-```
-
-###### 2.0.0
-```javascript
-$angularCacheFactory('myNewCache', {
- storageMode: 'localStorage',
- storageImpl: myLocalStoragePolyfill // Use custom localStorage implementation
-});
-
-$angularCacheFactory('myNewCache2', {
- storageMode: 'sessionStorage',
- storageImpl: mySessionStoragePolyfill // Use custom sessionStorage implementation
-});
-```
-
-##### Installation
-The Bower package now contains only `dist/angular-cache.js` and `dist/angular-cache.min.js`.
-
-##### onExpire
-
-###### 1.x.x
-```javascript
-cache.get('someKey', function (key, value) {
- // do something with expired item
-});
-```
-
-###### 2.0.0
-```javascript
-cache.get('someKey', {
- onExpire: function (key, value) {
- // do something with expired item
- }
-});
-```
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/bower.json b/ecomp-portal-FE/client/bower_components/angular-cache/bower.json
deleted file mode 100644
index 18882a7b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/bower.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "author": "Jason Dobry",
- "name": "angular-cache",
- "description": "angular-cache is a very useful replacement for Angular's $cacheFactory.",
- "homepage": "https://github.com/jmdobry/angular-cache",
- "repository": {
- "type": "git",
- "url": "https://github.com/jmdobry/angular-cache.git"
- },
- "main": "./dist/angular-cache.js",
- "ignore": [
- ".idea/",
- ".*",
- "*.iml",
- "src/",
- "bower_components/",
- "coverage/",
- "Gruntfile.js",
- "package.json",
- "CONTRIBUTING.md",
- "node_modules/",
- "test/",
- "karma.conf.js",
- "karma.start.js",
- "libpeerconnection.log"
- ],
- "devDependencies": {
- "angular-1.2.25": "angular#1.2.25",
- "angular-resource": "angular-resource#1.2.25",
- "angular-mocks-1.2.25": "angular-mocks#1.2.25"
- },
- "dependencies": {
- "angular": ">=1.x"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/README.md b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/README.md
deleted file mode 100644
index 0d762e6d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/README.md
+++ /dev/null
@@ -1 +0,0 @@
-Running `browserify app.js > bundle.js` in this directory will produce `bundle.js`
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js
deleted file mode 100644
index 6f841e7f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/app.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var angular = require('angular');
-
-angular.module('app', [
- // this is what you would do in a real app
- // require('angular-cache')
-
- // for the example to work
- require('../../dist/angular-cache.js')
-]).run(function ($rootScope, CacheFactory) {
- $rootScope.test = 'It works! Using ' + (CacheFactory ? 'angular-cache' : 'undefined');
-});
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/index.html b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/index.html
deleted file mode 100644
index 9769ccd3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/browserify/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html ng-app="app">
-<head>
- <title>My App</title>
- <!-- load bundled scripts -->
- <script src="bundle.js"></script>
-</head>
-<body>
-<h1>{{ test }}</h1>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/README.md b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/README.md
deleted file mode 100644
index 0632f376..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-Running `r.js -o require.config.js` in this directory will produce `bundle.js`
-
-In `index.html` switch `script/main` between `main` (load scripts dynamically) and `bundle` (load bundled scripts)
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/app.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/app.js
deleted file mode 100644
index 74cb9040..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/app.js
+++ /dev/null
@@ -1,9 +0,0 @@
-define('app', [
- 'angular',
- 'angular-cache'
-], function (angular, angularCacheModuleName) {
- return angular.module('app', ['angular-cache'])
- .run(function ($rootScope) {
- $rootScope.test = 'It works! Using ' + angularCacheModuleName;
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/index.html b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/index.html
deleted file mode 100644
index 781e49df..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>My App</title>
- <!-- load scripts dynamically -->
- <script data-main="main" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.17/require.min.js"></script>
-
- <!-- load bundled scripts -->
- <!--<script data-main="bundle" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.17/require.min.js"></script>-->
-</head>
-<body ng-cloak>
-<h1>{{ test }}</h1>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/main.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/main.js
deleted file mode 100644
index 0fb6e498..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/main.js
+++ /dev/null
@@ -1,22 +0,0 @@
-require.config({
- paths: {
- angular: '../../bower_components/angular/angular',
- 'angular-cache': '../../dist/angular-cache',
- },
- shim: {
- 'angular': {
- exports: 'angular'
- }
- }
-});
-
-require([
- 'angular',
- 'app'
- ], function (angular, app) {
- angular.element(document.getElementsByTagName('html')[0]).ready(function () {
- // bootstrap the app manually
- angular.bootstrap(document, ['app']);
- });
- }
-);
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/require.config.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/require.config.js
deleted file mode 100644
index a89ae0fb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/r.js/require.config.js
+++ /dev/null
@@ -1,6 +0,0 @@
-({
- name: 'main',
- mainConfigFile: 'main.js',
- out: 'bundle.js',
- optimize: 'none'
-})
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/README.md b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/README.md
deleted file mode 100644
index 77d2d8f2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/README.md
+++ /dev/null
@@ -1 +0,0 @@
-Running `webpack` in this directory will produce `bundle.js`
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/app.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/app.js
deleted file mode 100644
index 7b904ee5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/app.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var angular = require('angular');
-var angularCacheModuleName = require('angular-cache');
-
-var app = angular.module('app', [
- angularCacheModuleName
-]).run(function ($rootScope) {
- $rootScope.test = 'It works, imported ' + angularCacheModuleName;
-});
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/index.html b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/index.html
deleted file mode 100644
index 9769ccd3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html ng-app="app">
-<head>
- <title>My App</title>
- <!-- load bundled scripts -->
- <script src="bundle.js"></script>
-</head>
-<body>
-<h1>{{ test }}</h1>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/webpack.config.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/webpack.config.js
deleted file mode 100644
index 1b3a6dfb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack/webpack.config.js
+++ /dev/null
@@ -1,11 +0,0 @@
-module.exports = {
- entry: './app.js',
- output: {
- filename: 'bundle.js'
- },
- resolve: {
- alias: {
- 'angular-cache': '../../dist/angular-cache.js'
- }
- }
-};
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/README.md b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/README.md
deleted file mode 100644
index 77d2d8f2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/README.md
+++ /dev/null
@@ -1 +0,0 @@
-Running `webpack` in this directory will produce `bundle.js`
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/app.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/app.js
deleted file mode 100644
index 78a3d254..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/app.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import angular from 'angular';
-import angularCacheModuleName from 'angular-cache';
-
-let app = angular.module('app', [
- angularCacheModuleName
-]).run($rootScope => {
- $rootScope.test = 'It works, imported ' + angularCacheModuleName;
-});
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/index.html b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/index.html
deleted file mode 100644
index 9769ccd3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html ng-app="app">
-<head>
- <title>My App</title>
- <!-- load bundled scripts -->
- <script src="bundle.js"></script>
-</head>
-<body>
-<h1>{{ test }}</h1>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/webpack.config.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/webpack.config.js
deleted file mode 100644
index 3caf2bef..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6/webpack.config.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = {
- entry: './app.js',
- output: {
- filename: 'bundle.js'
- },
- resolve: {
- alias: {
- 'angular-cache': '../../dist/angular-cache.js'
- }
- },
- module: {
- loaders: [
- { test: /(.+)\.js$/, loader: 'babel-loader?blacklist=useStrict' }
- ]
- }
-};
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/README.md b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/README.md
deleted file mode 100644
index 77d2d8f2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/README.md
+++ /dev/null
@@ -1 +0,0 @@
-Running `webpack` in this directory will produce `bundle.js`
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/app.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/app.js
deleted file mode 100644
index c75a0b36..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/app.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import 'angular';
-import 'angular-cache';
-
-let app = angular.module('app', [
- 'angular-cache'
-]).run(($rootScope, CacheFactory) => {
- $rootScope.test = 'It works, imported ' + (CacheFactory ? 'angular-cache' : 'undefined');
-});
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/index.html b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/index.html
deleted file mode 100644
index 9769ccd3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html ng-app="app">
-<head>
- <title>My App</title>
- <!-- load bundled scripts -->
- <script src="bundle.js"></script>
-</head>
-<body>
-<h1>{{ test }}</h1>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/webpack.config.js b/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/webpack.config.js
deleted file mode 100644
index 3caf2bef..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/build_examples/webpack_es6_2/webpack.config.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = {
- entry: './app.js',
- output: {
- filename: 'bundle.js'
- },
- resolve: {
- alias: {
- 'angular-cache': '../../dist/angular-cache.js'
- }
- },
- module: {
- loaders: [
- { test: /(.+)\.js$/, loader: 'babel-loader?blacklist=useStrict' }
- ]
- }
-};
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/circle.yml b/ecomp-portal-FE/client/bower_components/angular-cache/circle.yml
deleted file mode 100644
index cfe85771..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/circle.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-machine:
- node:
- version: 4.1.0
-test:
- override:
- - npm run ci
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.js b/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.js
deleted file mode 100644
index 6a62e9b7..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.js
+++ /dev/null
@@ -1,1111 +0,0 @@
-/**
- * angular-cache
- * @version 4.6.0 - Homepage <https://github.com/jmdobry/angular-cache>
- * @copyright (c) 2013-2016 angular-cache project authors
- * @license MIT <https://github.com/jmdobry/angular-cache/blob/master/LICENSE>
- * @overview angular-cache is a very useful replacement for Angular's $cacheFactory.
- */
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(typeof angular === 'undefined' ? require('angular') : angular) :
- typeof define === 'function' && define.amd ? define('angular-cache', ['angular'], factory) :
- (global.angularCacheModuleName = factory(global.angular));
-}(this, function (angular) { 'use strict';
-
- angular = 'default' in angular ? angular['default'] : angular;
-
- var babelHelpers = {};
- babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
- return typeof obj;
- } : function (obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
- };
-
- /**
- * @method bubbleUp
- * @param {array} heap The heap.
- * @param {function} weightFunc The weight function.
- * @param {number} n The index of the element to bubble up.
- */
- var bubbleUp = function bubbleUp(heap, weightFunc, n) {
- var element = heap[n];
- var weight = weightFunc(element);
- // When at 0, an element can not go up any further.
- while (n > 0) {
- // Compute the parent element's index, and fetch it.
- var parentN = Math.floor((n + 1) / 2) - 1;
- var parent = heap[parentN];
- // If the parent has a lesser weight, things are in order and we
- // are done.
- if (weight >= weightFunc(parent)) {
- break;
- } else {
- heap[parentN] = element;
- heap[n] = parent;
- n = parentN;
- }
- }
- };
-
- /**
- * @method bubbleDown
- * @param {array} heap The heap.
- * @param {function} weightFunc The weight function.
- * @param {number} n The index of the element to sink down.
- */
- var bubbleDown = function bubbleDown(heap, weightFunc, n) {
- var length = heap.length;
- var node = heap[n];
- var nodeWeight = weightFunc(node);
-
- while (true) {
- var child2N = (n + 1) * 2;
- var child1N = child2N - 1;
- var swap = null;
- if (child1N < length) {
- var child1 = heap[child1N];
- var child1Weight = weightFunc(child1);
- // If the score is less than our node's, we need to swap.
- if (child1Weight < nodeWeight) {
- swap = child1N;
- }
- }
- // Do the same checks for the other child.
- if (child2N < length) {
- var child2 = heap[child2N];
- var child2Weight = weightFunc(child2);
- if (child2Weight < (swap === null ? nodeWeight : weightFunc(heap[child1N]))) {
- swap = child2N;
- }
- }
-
- if (swap === null) {
- break;
- } else {
- heap[n] = heap[swap];
- heap[swap] = node;
- n = swap;
- }
- }
- };
-
- function BinaryHeap(weightFunc, compareFunc) {
- if (!weightFunc) {
- weightFunc = function weightFunc(x) {
- return x;
- };
- }
- if (!compareFunc) {
- compareFunc = function compareFunc(x, y) {
- return x === y;
- };
- }
- if (typeof weightFunc !== 'function') {
- throw new Error('BinaryHeap([weightFunc][, compareFunc]): "weightFunc" must be a function!');
- }
- if (typeof compareFunc !== 'function') {
- throw new Error('BinaryHeap([weightFunc][, compareFunc]): "compareFunc" must be a function!');
- }
- this.weightFunc = weightFunc;
- this.compareFunc = compareFunc;
- this.heap = [];
- }
-
- var BHProto = BinaryHeap.prototype;
-
- BHProto.push = function (node) {
- this.heap.push(node);
- bubbleUp(this.heap, this.weightFunc, this.heap.length - 1);
- };
-
- BHProto.peek = function () {
- return this.heap[0];
- };
-
- BHProto.pop = function () {
- var front = this.heap[0];
- var end = this.heap.pop();
- if (this.heap.length > 0) {
- this.heap[0] = end;
- bubbleDown(this.heap, this.weightFunc, 0);
- }
- return front;
- };
-
- BHProto.remove = function (node) {
- var length = this.heap.length;
- for (var i = 0; i < length; i++) {
- if (this.compareFunc(this.heap[i], node)) {
- var removed = this.heap[i];
- var end = this.heap.pop();
- if (i !== length - 1) {
- this.heap[i] = end;
- bubbleUp(this.heap, this.weightFunc, i);
- bubbleDown(this.heap, this.weightFunc, i);
- }
- return removed;
- }
- }
- return null;
- };
-
- BHProto.removeAll = function () {
- this.heap = [];
- };
-
- BHProto.size = function () {
- return this.heap.length;
- };
-
- var _Promise = null;
- try {
- _Promise = window.Promise;
- } catch (e) {}
-
- var utils = {
- isNumber: function isNumber(value) {
- return typeof value === 'number';
- },
- isString: function isString(value) {
- return typeof value === 'string';
- },
- isObject: function isObject(value) {
- return value !== null && (typeof value === 'undefined' ? 'undefined' : babelHelpers.typeof(value)) === 'object';
- },
- isFunction: function isFunction(value) {
- return typeof value === 'function';
- },
- fromJson: function fromJson(value) {
- return JSON.parse(value);
- },
- equals: function equals(a, b) {
- return a === b;
- },
-
- Promise: _Promise
- };
-
- function _keys(collection) {
- var keys = [];
- var key = void 0;
- if (!utils.isObject(collection)) {
- return keys;
- }
- for (key in collection) {
- if (collection.hasOwnProperty(key)) {
- keys.push(key);
- }
- }
- return keys;
- }
-
- function _isPromiseLike(value) {
- return value && typeof value.then === 'function';
- }
-
- function _stringifyNumber(number) {
- if (utils.isNumber(number)) {
- return number.toString();
- }
- return number;
- }
-
- function _keySet(collection) {
- var keySet = {};
- var key = void 0;
- if (!utils.isObject(collection)) {
- return keySet;
- }
- for (key in collection) {
- if (collection.hasOwnProperty(key)) {
- keySet[key] = key;
- }
- }
- return keySet;
- }
-
- var defaults = {
- capacity: Number.MAX_VALUE,
- maxAge: Number.MAX_VALUE,
- deleteOnExpire: 'none',
- onExpire: null,
- cacheFlushInterval: null,
- recycleFreq: 1000,
- storageMode: 'memory',
- storageImpl: null,
- disabled: false,
- storagePrefix: 'cachefactory.caches.',
- storeOnResolve: false,
- storeOnReject: false
- };
-
- var caches = {};
-
- function createCache(cacheId, options) {
- if (cacheId in caches) {
- throw new Error(cacheId + ' already exists!');
- } else if (!utils.isString(cacheId)) {
- throw new Error('cacheId must be a string!');
- }
-
- var $$data = {};
- var $$promises = {};
- var $$storage = null;
- var $$expiresHeap = new BinaryHeap(function (x) {
- return x.expires;
- }, utils.equals);
- var $$lruHeap = new BinaryHeap(function (x) {
- return x.accessed;
- }, utils.equals);
-
- var cache = caches[cacheId] = {
-
- $$id: cacheId,
-
- destroy: function destroy() {
- clearInterval(this.$$cacheFlushIntervalId);
- clearInterval(this.$$recycleFreqId);
- this.removeAll();
- if ($$storage) {
- $$storage().removeItem(this.$$prefix + '.keys');
- $$storage().removeItem(this.$$prefix);
- }
- $$storage = null;
- $$data = null;
- $$lruHeap = null;
- $$expiresHeap = null;
- this.$$prefix = null;
- delete caches[this.$$id];
- },
- disable: function disable() {
- this.$$disabled = true;
- },
- enable: function enable() {
- delete this.$$disabled;
- },
- get: function get(key, options) {
- var _this2 = this;
-
- if (Array.isArray(key)) {
- var _ret = function () {
- var keys = key;
- var values = [];
-
- keys.forEach(function (key) {
- var value = _this2.get(key, options);
- if (value !== null && value !== undefined) {
- values.push(value);
- }
- });
-
- return {
- v: values
- };
- }();
-
- if ((typeof _ret === 'undefined' ? 'undefined' : babelHelpers.typeof(_ret)) === "object") return _ret.v;
- } else {
- key = _stringifyNumber(key);
-
- if (this.$$disabled) {
- return;
- }
- }
-
- options = options || {};
- if (!utils.isString(key)) {
- throw new Error('key must be a string!');
- } else if (options && !utils.isObject(options)) {
- throw new Error('options must be an object!');
- } else if (options.onExpire && !utils.isFunction(options.onExpire)) {
- throw new Error('options.onExpire must be a function!');
- }
-
- var item = void 0;
-
- if ($$storage) {
- if ($$promises[key]) {
- return $$promises[key];
- }
-
- var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);
-
- if (itemJson) {
- item = utils.fromJson(itemJson);
- } else {
- return;
- }
- } else if (utils.isObject($$data)) {
- if (!(key in $$data)) {
- return;
- }
-
- item = $$data[key];
- }
-
- var value = item.value;
- var now = new Date().getTime();
-
- if ($$storage) {
- $$lruHeap.remove({
- key: key,
- accessed: item.accessed
- });
- item.accessed = now;
- $$lruHeap.push({
- key: key,
- accessed: now
- });
- } else {
- $$lruHeap.remove(item);
- item.accessed = now;
- $$lruHeap.push(item);
- }
-
- if (this.$$deleteOnExpire === 'passive' && 'expires' in item && item.expires < now) {
- this.remove(key);
-
- if (this.$$onExpire) {
- this.$$onExpire(key, item.value, options.onExpire);
- } else if (options.onExpire) {
- options.onExpire.call(this, key, item.value);
- }
- value = undefined;
- } else if ($$storage) {
- $$storage().setItem(this.$$prefix + '.data.' + key, JSON.stringify(item));
- }
-
- return value;
- },
- info: function info(key) {
- if (key) {
- var item = void 0;
- if ($$storage) {
- var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);
-
- if (itemJson) {
- item = utils.fromJson(itemJson);
- return {
- created: item.created,
- accessed: item.accessed,
- expires: item.expires,
- isExpired: new Date().getTime() - item.created > (item.maxAge || this.$$maxAge)
- };
- } else {
- return undefined;
- }
- } else if (utils.isObject($$data) && key in $$data) {
- item = $$data[key];
-
- return {
- created: item.created,
- accessed: item.accessed,
- expires: item.expires,
- isExpired: new Date().getTime() - item.created > (item.maxAge || this.$$maxAge)
- };
- } else {
- return undefined;
- }
- } else {
- return {
- id: this.$$id,
- capacity: this.$$capacity,
- maxAge: this.$$maxAge,
- deleteOnExpire: this.$$deleteOnExpire,
- onExpire: this.$$onExpire,
- cacheFlushInterval: this.$$cacheFlushInterval,
- recycleFreq: this.$$recycleFreq,
- storageMode: this.$$storageMode,
- storageImpl: $$storage ? $$storage() : undefined,
- disabled: !!this.$$disabled,
- size: $$lruHeap && $$lruHeap.size() || 0
- };
- }
- },
- keys: function keys() {
- if ($$storage) {
- var keysJson = $$storage().getItem(this.$$prefix + '.keys');
-
- if (keysJson) {
- return utils.fromJson(keysJson);
- } else {
- return [];
- }
- } else {
- return _keys($$data);
- }
- },
- keySet: function keySet() {
- if ($$storage) {
- var keysJson = $$storage().getItem(this.$$prefix + '.keys');
- var kSet = {};
-
- if (keysJson) {
- var keys = utils.fromJson(keysJson);
-
- for (var i = 0; i < keys.length; i++) {
- kSet[keys[i]] = keys[i];
- }
- }
- return kSet;
- } else {
- return _keySet($$data);
- }
- },
- put: function put(key, value, options) {
- var _this3 = this;
-
- options || (options = {});
-
- var storeOnResolve = 'storeOnResolve' in options ? !!options.storeOnResolve : this.$$storeOnResolve;
- var storeOnReject = 'storeOnReject' in options ? !!options.storeOnReject : this.$$storeOnReject;
-
- var getHandler = function getHandler(store, isError) {
- return function (v) {
- if (store) {
- delete $$promises[key];
- if (utils.isObject(v) && 'status' in v && 'data' in v) {
- v = [v.status, v.data, v.headers(), v.statusText];
- _this3.put(key, v);
- } else {
- _this3.put(key, v);
- }
- }
- if (isError) {
- if (utils.Promise) {
- return utils.Promise.reject(v);
- } else {
- throw v;
- }
- } else {
- return v;
- }
- };
- };
-
- if (this.$$disabled || !utils.isObject($$data) || value === null || value === undefined) {
- return;
- }
- key = _stringifyNumber(key);
-
- if (!utils.isString(key)) {
- throw new Error('key must be a string!');
- }
-
- var now = new Date().getTime();
- var item = {
- key: key,
- value: _isPromiseLike(value) ? value.then(getHandler(storeOnResolve, false), getHandler(storeOnReject, true)) : value,
- created: options.created === undefined ? now : options.created,
- accessed: options.accessed === undefined ? now : options.accessed
- };
- if (options.maxAge) {
- item.maxAge = options.maxAge;
- }
-
- if (options.expires === undefined) {
- item.expires = item.created + (item.maxAge || this.$$maxAge);
- } else {
- item.expires = options.expires;
- }
-
- if ($$storage) {
- if (_isPromiseLike(item.value)) {
- $$promises[key] = item.value;
- return $$promises[key];
- }
- var keysJson = $$storage().getItem(this.$$prefix + '.keys');
- var keys = keysJson ? utils.fromJson(keysJson) : [];
- var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);
-
- // Remove existing
- if (itemJson) {
- this.remove(key);
- }
- // Add to expires heap
- $$expiresHeap.push({
- key: key,
- expires: item.expires
- });
- // Add to lru heap
- $$lruHeap.push({
- key: key,
- accessed: item.accessed
- });
- // Set item
- $$storage().setItem(this.$$prefix + '.data.' + key, JSON.stringify(item));
- var exists = false;
- for (var i = 0; i < keys.length; i++) {
- if (keys[i] === key) {
- exists = true;
- break;
- }
- }
- if (!exists) {
- keys.push(key);
- }
- $$storage().setItem(this.$$prefix + '.keys', JSON.stringify(keys));
- } else {
- // Remove existing
- if ($$data[key]) {
- this.remove(key);
- }
- // Add to expires heap
- $$expiresHeap.push(item);
- // Add to lru heap
- $$lruHeap.push(item);
- // Set item
- $$data[key] = item;
- delete $$promises[key];
- }
-
- // Handle exceeded capacity
- if ($$lruHeap.size() > this.$$capacity) {
- this.remove($$lruHeap.peek().key);
- }
-
- return value;
- },
- remove: function remove(key) {
- key += '';
- delete $$promises[key];
- if ($$storage) {
- var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);
-
- if (itemJson) {
- var item = utils.fromJson(itemJson);
- $$lruHeap.remove({
- key: key,
- accessed: item.accessed
- });
- $$expiresHeap.remove({
- key: key,
- expires: item.expires
- });
- $$storage().removeItem(this.$$prefix + '.data.' + key);
- var keysJson = $$storage().getItem(this.$$prefix + '.keys');
- var keys = keysJson ? utils.fromJson(keysJson) : [];
- var index = keys.indexOf(key);
-
- if (index >= 0) {
- keys.splice(index, 1);
- }
- $$storage().setItem(this.$$prefix + '.keys', JSON.stringify(keys));
- return item.value;
- }
- } else if (utils.isObject($$data)) {
- var value = $$data[key] ? $$data[key].value : undefined;
- $$lruHeap.remove($$data[key]);
- $$expiresHeap.remove($$data[key]);
- $$data[key] = null;
- delete $$data[key];
- return value;
- }
- },
- removeAll: function removeAll() {
- if ($$storage) {
- $$lruHeap.removeAll();
- $$expiresHeap.removeAll();
- var keysJson = $$storage().getItem(this.$$prefix + '.keys');
-
- if (keysJson) {
- var keys = utils.fromJson(keysJson);
-
- for (var i = 0; i < keys.length; i++) {
- this.remove(keys[i]);
- }
- }
- $$storage().setItem(this.$$prefix + '.keys', JSON.stringify([]));
- } else if (utils.isObject($$data)) {
- $$lruHeap.removeAll();
- $$expiresHeap.removeAll();
- for (var key in $$data) {
- $$data[key] = null;
- }
- $$data = {};
- } else {
- $$lruHeap.removeAll();
- $$expiresHeap.removeAll();
- $$data = {};
- }
- $$promises = {};
- },
- removeExpired: function removeExpired() {
- var now = new Date().getTime();
- var expired = {};
- var key = void 0;
- var expiredItem = void 0;
-
- while ((expiredItem = $$expiresHeap.peek()) && expiredItem.expires <= now) {
- expired[expiredItem.key] = expiredItem.value ? expiredItem.value : null;
- $$expiresHeap.pop();
- }
-
- if ($$storage) {
- for (key in expired) {
- var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);
- if (itemJson) {
- expired[key] = utils.fromJson(itemJson).value;
- this.remove(key);
- }
- }
- } else {
- for (key in expired) {
- this.remove(key);
- }
- }
-
- if (this.$$onExpire) {
- for (key in expired) {
- this.$$onExpire(key, expired[key]);
- }
- }
-
- return expired;
- },
- setCacheFlushInterval: function setCacheFlushInterval(cacheFlushInterval) {
- var _this = this;
- if (cacheFlushInterval === null) {
- delete _this.$$cacheFlushInterval;
- } else if (!utils.isNumber(cacheFlushInterval)) {
- throw new Error('cacheFlushInterval must be a number!');
- } else if (cacheFlushInterval < 0) {
- throw new Error('cacheFlushInterval must be greater than zero!');
- } else if (cacheFlushInterval !== _this.$$cacheFlushInterval) {
- _this.$$cacheFlushInterval = cacheFlushInterval;
-
- clearInterval(_this.$$cacheFlushIntervalId); // eslint-disable-line
-
- _this.$$cacheFlushIntervalId = setInterval(function () {
- _this.removeAll();
- }, _this.$$cacheFlushInterval);
- }
- },
- setCapacity: function setCapacity(capacity) {
- if (capacity === null) {
- delete this.$$capacity;
- } else if (!utils.isNumber(capacity)) {
- throw new Error('capacity must be a number!');
- } else if (capacity < 0) {
- throw new Error('capacity must be greater than zero!');
- } else {
- this.$$capacity = capacity;
- }
- var removed = {};
- while ($$lruHeap.size() > this.$$capacity) {
- removed[$$lruHeap.peek().key] = this.remove($$lruHeap.peek().key);
- }
- return removed;
- },
- setDeleteOnExpire: function setDeleteOnExpire(deleteOnExpire, setRecycleFreq) {
- if (deleteOnExpire === null) {
- delete this.$$deleteOnExpire;
- } else if (!utils.isString(deleteOnExpire)) {
- throw new Error('deleteOnExpire must be a string!');
- } else if (deleteOnExpire !== 'none' && deleteOnExpire !== 'passive' && deleteOnExpire !== 'aggressive') {
- throw new Error('deleteOnExpire must be "none", "passive" or "aggressive"!');
- } else {
- this.$$deleteOnExpire = deleteOnExpire;
- }
- if (setRecycleFreq !== false) {
- this.setRecycleFreq(this.$$recycleFreq);
- }
- },
- setMaxAge: function setMaxAge(maxAge) {
- if (maxAge === null) {
- this.$$maxAge = Number.MAX_VALUE;
- } else if (!utils.isNumber(maxAge)) {
- throw new Error('maxAge must be a number!');
- } else if (maxAge < 0) {
- throw new Error('maxAge must be greater than zero!');
- } else {
- this.$$maxAge = maxAge;
- }
- var i = void 0,
- keys = void 0,
- key = void 0;
-
- $$expiresHeap.removeAll();
-
- if ($$storage) {
- var keysJson = $$storage().getItem(this.$$prefix + '.keys');
-
- keys = keysJson ? utils.fromJson(keysJson) : [];
-
- for (i = 0; i < keys.length; i++) {
- key = keys[i];
- var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);
-
- if (itemJson) {
- var item = utils.fromJson(itemJson);
- if (this.$$maxAge === Number.MAX_VALUE) {
- item.expires = Number.MAX_VALUE;
- } else {
- item.expires = item.created + (item.maxAge || this.$$maxAge);
- }
- $$expiresHeap.push({
- key: key,
- expires: item.expires
- });
- }
- }
- } else {
- keys = _keys($$data);
-
- for (i = 0; i < keys.length; i++) {
- key = keys[i];
- if (this.$$maxAge === Number.MAX_VALUE) {
- $$data[key].expires = Number.MAX_VALUE;
- } else {
- $$data[key].expires = $$data[key].created + ($$data[key].maxAge || this.$$maxAge);
- }
- $$expiresHeap.push($$data[key]);
- }
- }
- if (this.$$deleteOnExpire === 'aggressive') {
- return this.removeExpired();
- } else {
- return {};
- }
- },
- setOnExpire: function setOnExpire(onExpire) {
- if (onExpire === null) {
- delete this.$$onExpire;
- } else if (!utils.isFunction(onExpire)) {
- throw new Error('onExpire must be a function!');
- } else {
- this.$$onExpire = onExpire;
- }
- },
- setOptions: function setOptions(cacheOptions, strict) {
- cacheOptions = cacheOptions || {};
- strict = !!strict;
- if (!utils.isObject(cacheOptions)) {
- throw new Error('cacheOptions must be an object!');
- }
-
- if ('storagePrefix' in cacheOptions) {
- this.$$storagePrefix = cacheOptions.storagePrefix;
- } else if (strict) {
- this.$$storagePrefix = defaults.storagePrefix;
- }
-
- this.$$prefix = this.$$storagePrefix + this.$$id;
-
- if ('disabled' in cacheOptions) {
- this.$$disabled = !!cacheOptions.disabled;
- } else if (strict) {
- this.$$disabled = defaults.disabled;
- }
-
- if ('deleteOnExpire' in cacheOptions) {
- this.setDeleteOnExpire(cacheOptions.deleteOnExpire, false);
- } else if (strict) {
- this.setDeleteOnExpire(defaults.deleteOnExpire, false);
- }
-
- if ('recycleFreq' in cacheOptions) {
- this.setRecycleFreq(cacheOptions.recycleFreq);
- } else if (strict) {
- this.setRecycleFreq(defaults.recycleFreq);
- }
-
- if ('maxAge' in cacheOptions) {
- this.setMaxAge(cacheOptions.maxAge);
- } else if (strict) {
- this.setMaxAge(defaults.maxAge);
- }
-
- if ('storeOnResolve' in cacheOptions) {
- this.$$storeOnResolve = !!cacheOptions.storeOnResolve;
- } else if (strict) {
- this.$$storeOnResolve = defaults.storeOnResolve;
- }
-
- if ('storeOnReject' in cacheOptions) {
- this.$$storeOnReject = !!cacheOptions.storeOnReject;
- } else if (strict) {
- this.$$storeOnReject = defaults.storeOnReject;
- }
-
- if ('capacity' in cacheOptions) {
- this.setCapacity(cacheOptions.capacity);
- } else if (strict) {
- this.setCapacity(defaults.capacity);
- }
-
- if ('cacheFlushInterval' in cacheOptions) {
- this.setCacheFlushInterval(cacheOptions.cacheFlushInterval);
- } else if (strict) {
- this.setCacheFlushInterval(defaults.cacheFlushInterval);
- }
-
- if ('onExpire' in cacheOptions) {
- this.setOnExpire(cacheOptions.onExpire);
- } else if (strict) {
- this.setOnExpire(defaults.onExpire);
- }
-
- if ('storageMode' in cacheOptions || 'storageImpl' in cacheOptions) {
- this.setStorageMode(cacheOptions.storageMode || defaults.storageMode, cacheOptions.storageImpl || defaults.storageImpl);
- } else if (strict) {
- this.setStorageMode(defaults.storageMode, defaults.storageImpl);
- }
- },
- setRecycleFreq: function setRecycleFreq(recycleFreq) {
- if (recycleFreq === null) {
- delete this.$$recycleFreq;
- } else if (!utils.isNumber(recycleFreq)) {
- throw new Error('recycleFreq must be a number!');
- } else if (recycleFreq < 0) {
- throw new Error('recycleFreq must be greater than zero!');
- } else {
- this.$$recycleFreq = recycleFreq;
- }
- clearInterval(this.$$recycleFreqId);
- if (this.$$deleteOnExpire === 'aggressive') {
- (function (self) {
- self.$$recycleFreqId = setInterval(function () {
- self.removeExpired();
- }, self.$$recycleFreq);
- })(this);
- } else {
- delete this.$$recycleFreqId;
- }
- },
- setStorageMode: function setStorageMode(storageMode, storageImpl) {
- if (!utils.isString(storageMode)) {
- throw new Error('storageMode must be a string!');
- } else if (storageMode !== 'memory' && storageMode !== 'localStorage' && storageMode !== 'sessionStorage') {
- throw new Error('storageMode must be "memory", "localStorage" or "sessionStorage"!');
- }
-
- var prevStorage = $$storage;
- var prevData = $$data;
- var shouldReInsert = false;
- var items = {};
-
- function load(prevStorage, prevData) {
- var keys = this.keys();
- var length = keys.length;
- if (length) {
- var _key = void 0;
- var prevDataIsObject = utils.isObject(prevData);
- for (var i = 0; i < length; i++) {
- _key = keys[i];
- if (prevStorage) {
- var itemJson = prevStorage().getItem(this.$$prefix + '.data.' + _key);
- if (itemJson) {
- items[_key] = utils.fromJson(itemJson);
- }
- } else if (prevDataIsObject) {
- items[_key] = prevData[_key];
- }
- this.remove(_key);
- }
- shouldReInsert = true;
- }
- }
-
- if (!this.$$initializing) {
- load.call(this, prevStorage, prevData);
- }
-
- this.$$storageMode = storageMode;
-
- if (storageImpl) {
- if (!utils.isObject(storageImpl)) {
- throw new Error('storageImpl must be an object!');
- } else if (!('setItem' in storageImpl) || typeof storageImpl.setItem !== 'function') {
- throw new Error('storageImpl must implement "setItem(key, value)"!');
- } else if (!('getItem' in storageImpl) || typeof storageImpl.getItem !== 'function') {
- throw new Error('storageImpl must implement "getItem(key)"!');
- } else if (!('removeItem' in storageImpl) || typeof storageImpl.removeItem !== 'function') {
- throw new Error('storageImpl must implement "removeItem(key)"!');
- }
- $$storage = function $$storage() {
- return storageImpl;
- };
- } else if (this.$$storageMode === 'localStorage') {
- try {
- localStorage.setItem('cachefactory', 'cachefactory');
- localStorage.removeItem('cachefactory');
- $$storage = function $$storage() {
- return localStorage;
- };
- } catch (e) {
- $$storage = null;
- this.$$storageMode = 'memory';
- }
- } else if (this.$$storageMode === 'sessionStorage') {
- try {
- sessionStorage.setItem('cachefactory', 'cachefactory');
- sessionStorage.removeItem('cachefactory');
- $$storage = function $$storage() {
- return sessionStorage;
- };
- } catch (e) {
- $$storage = null;
- this.$$storageMode = 'memory';
- }
- } else {
- $$storage = null;
- this.$$storageMode = 'memory';
- }
-
- if (this.$$initializing) {
- load.call(this, $$storage, $$data);
- }
-
- if (shouldReInsert) {
- var item = void 0;
- for (var key in items) {
- item = items[key];
- this.put(key, item.value, {
- created: item.created,
- accessed: item.accessed,
- expires: item.expires
- });
- }
- }
- },
- touch: function touch(key, options) {
- var _this4 = this;
-
- if (key) {
- var val = this.get(key, {
- onExpire: function onExpire(k, v) {
- return _this4.put(k, v);
- }
- });
- if (val) {
- this.put(key, val, options);
- }
- } else {
- var keys = this.keys();
- for (var i = 0; i < keys.length; i++) {
- this.touch(keys[i], options);
- }
- }
- },
- values: function values() {
- var keys = this.keys();
- var items = [];
- for (var i = 0; i < keys.length; i++) {
- items.push(this.get(keys[i]));
- }
- return items;
- }
- };
-
- cache.$$initializing = true;
- cache.setOptions(options, true);
- cache.$$initializing = false;
-
- return cache;
- }
-
- function CacheFactory(cacheId, options) {
- return createCache(cacheId, options);
- }
-
- CacheFactory.createCache = createCache;
- CacheFactory.defaults = defaults;
-
- CacheFactory.info = function () {
- var keys = _keys(caches);
- var info = {
- size: keys.length,
- caches: {}
- };
- for (var opt in defaults) {
- if (defaults.hasOwnProperty(opt)) {
- info[opt] = defaults[opt];
- }
- }
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- info.caches[key] = caches[key].info();
- }
- return info;
- };
-
- CacheFactory.get = function (cacheId) {
- return caches[cacheId];
- };
- CacheFactory.keySet = function () {
- return _keySet(caches);
- };
- CacheFactory.keys = function () {
- return _keys(caches);
- };
- CacheFactory.destroy = function (cacheId) {
- if (caches[cacheId]) {
- caches[cacheId].destroy();
- delete caches[cacheId];
- }
- };
- CacheFactory.destroyAll = function () {
- for (var cacheId in caches) {
- caches[cacheId].destroy();
- }
- caches = {};
- };
- CacheFactory.clearAll = function () {
- for (var cacheId in caches) {
- caches[cacheId].removeAll();
- }
- };
- CacheFactory.removeExpiredFromAll = function () {
- var expired = {};
- for (var cacheId in caches) {
- expired[cacheId] = caches[cacheId].removeExpired();
- }
- return expired;
- };
- CacheFactory.enableAll = function () {
- for (var cacheId in caches) {
- caches[cacheId].$$disabled = false;
- }
- };
- CacheFactory.disableAll = function () {
- for (var cacheId in caches) {
- caches[cacheId].$$disabled = true;
- }
- };
- CacheFactory.touchAll = function () {
- for (var cacheId in caches) {
- caches[cacheId].touch();
- }
- };
-
- CacheFactory.utils = utils;
- CacheFactory.BinaryHeap = BinaryHeap;
-
- CacheFactory.utils.equals = angular.equals;
- CacheFactory.utils.isObject = angular.isObject;
- CacheFactory.utils.fromJson = angular.fromJson;
-
- function BinaryHeapProvider() {
- this.$get = function () {
- return CacheFactory.BinaryHeap;
- };
- }
-
- function CacheFactoryProvider() {
- this.defaults = CacheFactory.defaults;
- this.defaults.storagePrefix = 'angular-cache.caches.';
-
- this.$get = ['$q', function ($q) {
- CacheFactory.utils.Promise = $q;
- return CacheFactory;
- }];
- }
-
- angular.module('angular-cache', []).provider('BinaryHeap', BinaryHeapProvider).provider('CacheFactory', CacheFactoryProvider);
-
- var index = 'angular-cache';
-
- return index;
-
-}));
-//# sourceMappingURL=angular-cache.js.map \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.js.map b/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.js.map
deleted file mode 100644
index ca27a6fd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"angular-cache.js","sources":["../node_modules/cachefactory/dist/cachefactory.es2015.js","../src/index.js"],"sourcesContent":["/**\n * CacheFactory\n * @version 1.5.1 - Homepage <https://github.com/jmdobry/CacheFactory>\n * @copyright (c) 2013-2016 CacheFactory project authors\n * @license MIT <https://github.com/jmdobry/CacheFactory/blob/master/LICENSE>\n * @overview CacheFactory is a very simple and useful cache for the browser.\n */\nvar babelHelpers = {};\nbabelHelpers.typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\nbabelHelpers;\n\n/**\n * @method bubbleUp\n * @param {array} heap The heap.\n * @param {function} weightFunc The weight function.\n * @param {number} n The index of the element to bubble up.\n */\nvar bubbleUp = function bubbleUp(heap, weightFunc, n) {\n var element = heap[n];\n var weight = weightFunc(element);\n // When at 0, an element can not go up any further.\n while (n > 0) {\n // Compute the parent element's index, and fetch it.\n var parentN = Math.floor((n + 1) / 2) - 1;\n var parent = heap[parentN];\n // If the parent has a lesser weight, things are in order and we\n // are done.\n if (weight >= weightFunc(parent)) {\n break;\n } else {\n heap[parentN] = element;\n heap[n] = parent;\n n = parentN;\n }\n }\n};\n\n/**\n * @method bubbleDown\n * @param {array} heap The heap.\n * @param {function} weightFunc The weight function.\n * @param {number} n The index of the element to sink down.\n */\nvar bubbleDown = function bubbleDown(heap, weightFunc, n) {\n var length = heap.length;\n var node = heap[n];\n var nodeWeight = weightFunc(node);\n\n while (true) {\n var child2N = (n + 1) * 2;\n var child1N = child2N - 1;\n var swap = null;\n if (child1N < length) {\n var child1 = heap[child1N];\n var child1Weight = weightFunc(child1);\n // If the score is less than our node's, we need to swap.\n if (child1Weight < nodeWeight) {\n swap = child1N;\n }\n }\n // Do the same checks for the other child.\n if (child2N < length) {\n var child2 = heap[child2N];\n var child2Weight = weightFunc(child2);\n if (child2Weight < (swap === null ? nodeWeight : weightFunc(heap[child1N]))) {\n swap = child2N;\n }\n }\n\n if (swap === null) {\n break;\n } else {\n heap[n] = heap[swap];\n heap[swap] = node;\n n = swap;\n }\n }\n};\n\nfunction BinaryHeap(weightFunc, compareFunc) {\n if (!weightFunc) {\n weightFunc = function weightFunc(x) {\n return x;\n };\n }\n if (!compareFunc) {\n compareFunc = function compareFunc(x, y) {\n return x === y;\n };\n }\n if (typeof weightFunc !== 'function') {\n throw new Error('BinaryHeap([weightFunc][, compareFunc]): \"weightFunc\" must be a function!');\n }\n if (typeof compareFunc !== 'function') {\n throw new Error('BinaryHeap([weightFunc][, compareFunc]): \"compareFunc\" must be a function!');\n }\n this.weightFunc = weightFunc;\n this.compareFunc = compareFunc;\n this.heap = [];\n}\n\nvar BHProto = BinaryHeap.prototype;\n\nBHProto.push = function (node) {\n this.heap.push(node);\n bubbleUp(this.heap, this.weightFunc, this.heap.length - 1);\n};\n\nBHProto.peek = function () {\n return this.heap[0];\n};\n\nBHProto.pop = function () {\n var front = this.heap[0];\n var end = this.heap.pop();\n if (this.heap.length > 0) {\n this.heap[0] = end;\n bubbleDown(this.heap, this.weightFunc, 0);\n }\n return front;\n};\n\nBHProto.remove = function (node) {\n var length = this.heap.length;\n for (var i = 0; i < length; i++) {\n if (this.compareFunc(this.heap[i], node)) {\n var removed = this.heap[i];\n var end = this.heap.pop();\n if (i !== length - 1) {\n this.heap[i] = end;\n bubbleUp(this.heap, this.weightFunc, i);\n bubbleDown(this.heap, this.weightFunc, i);\n }\n return removed;\n }\n }\n return null;\n};\n\nBHProto.removeAll = function () {\n this.heap = [];\n};\n\nBHProto.size = function () {\n return this.heap.length;\n};\n\nvar _Promise = null;\ntry {\n _Promise = window.Promise;\n} catch (e) {}\n\nvar utils = {\n isNumber: function isNumber(value) {\n return typeof value === 'number';\n },\n isString: function isString(value) {\n return typeof value === 'string';\n },\n isObject: function isObject(value) {\n return value !== null && (typeof value === 'undefined' ? 'undefined' : babelHelpers.typeof(value)) === 'object';\n },\n isFunction: function isFunction(value) {\n return typeof value === 'function';\n },\n fromJson: function fromJson(value) {\n return JSON.parse(value);\n },\n equals: function equals(a, b) {\n return a === b;\n },\n\n\n Promise: _Promise\n};\n\nfunction _keys(collection) {\n var keys = [];\n var key = void 0;\n if (!utils.isObject(collection)) {\n return keys;\n }\n for (key in collection) {\n if (collection.hasOwnProperty(key)) {\n keys.push(key);\n }\n }\n return keys;\n}\n\nfunction _isPromiseLike(value) {\n return value && typeof value.then === 'function';\n}\n\nfunction _stringifyNumber(number) {\n if (utils.isNumber(number)) {\n return number.toString();\n }\n return number;\n}\n\nfunction _keySet(collection) {\n var keySet = {};\n var key = void 0;\n if (!utils.isObject(collection)) {\n return keySet;\n }\n for (key in collection) {\n if (collection.hasOwnProperty(key)) {\n keySet[key] = key;\n }\n }\n return keySet;\n}\n\nvar defaults = {\n capacity: Number.MAX_VALUE,\n maxAge: Number.MAX_VALUE,\n deleteOnExpire: 'none',\n onExpire: null,\n cacheFlushInterval: null,\n recycleFreq: 1000,\n storageMode: 'memory',\n storageImpl: null,\n disabled: false,\n storagePrefix: 'cachefactory.caches.',\n storeOnResolve: false,\n storeOnReject: false\n};\n\nvar caches = {};\n\nfunction createCache(cacheId, options) {\n if (cacheId in caches) {\n throw new Error(cacheId + ' already exists!');\n } else if (!utils.isString(cacheId)) {\n throw new Error('cacheId must be a string!');\n }\n\n var $$data = {};\n var $$promises = {};\n var $$storage = null;\n var $$expiresHeap = new BinaryHeap(function (x) {\n return x.expires;\n }, utils.equals);\n var $$lruHeap = new BinaryHeap(function (x) {\n return x.accessed;\n }, utils.equals);\n\n var cache = caches[cacheId] = {\n\n $$id: cacheId,\n\n destroy: function destroy() {\n clearInterval(this.$$cacheFlushIntervalId);\n clearInterval(this.$$recycleFreqId);\n this.removeAll();\n if ($$storage) {\n $$storage().removeItem(this.$$prefix + '.keys');\n $$storage().removeItem(this.$$prefix);\n }\n $$storage = null;\n $$data = null;\n $$lruHeap = null;\n $$expiresHeap = null;\n this.$$prefix = null;\n delete caches[this.$$id];\n },\n disable: function disable() {\n this.$$disabled = true;\n },\n enable: function enable() {\n delete this.$$disabled;\n },\n get: function get(key, options) {\n var _this2 = this;\n\n if (Array.isArray(key)) {\n var _ret = function () {\n var keys = key;\n var values = [];\n\n keys.forEach(function (key) {\n var value = _this2.get(key, options);\n if (value !== null && value !== undefined) {\n values.push(value);\n }\n });\n\n return {\n v: values\n };\n }();\n\n if ((typeof _ret === 'undefined' ? 'undefined' : babelHelpers.typeof(_ret)) === \"object\") return _ret.v;\n } else {\n key = _stringifyNumber(key);\n\n if (this.$$disabled) {\n return;\n }\n }\n\n options = options || {};\n if (!utils.isString(key)) {\n throw new Error('key must be a string!');\n } else if (options && !utils.isObject(options)) {\n throw new Error('options must be an object!');\n } else if (options.onExpire && !utils.isFunction(options.onExpire)) {\n throw new Error('options.onExpire must be a function!');\n }\n\n var item = void 0;\n\n if ($$storage) {\n if ($$promises[key]) {\n return $$promises[key];\n }\n\n var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);\n\n if (itemJson) {\n item = utils.fromJson(itemJson);\n } else {\n return;\n }\n } else if (utils.isObject($$data)) {\n if (!(key in $$data)) {\n return;\n }\n\n item = $$data[key];\n }\n\n var value = item.value;\n var now = new Date().getTime();\n\n if ($$storage) {\n $$lruHeap.remove({\n key: key,\n accessed: item.accessed\n });\n item.accessed = now;\n $$lruHeap.push({\n key: key,\n accessed: now\n });\n } else {\n $$lruHeap.remove(item);\n item.accessed = now;\n $$lruHeap.push(item);\n }\n\n if (this.$$deleteOnExpire === 'passive' && 'expires' in item && item.expires < now) {\n this.remove(key);\n\n if (this.$$onExpire) {\n this.$$onExpire(key, item.value, options.onExpire);\n } else if (options.onExpire) {\n options.onExpire.call(this, key, item.value);\n }\n value = undefined;\n } else if ($$storage) {\n $$storage().setItem(this.$$prefix + '.data.' + key, JSON.stringify(item));\n }\n\n return value;\n },\n info: function info(key) {\n if (key) {\n var item = void 0;\n if ($$storage) {\n var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);\n\n if (itemJson) {\n item = utils.fromJson(itemJson);\n return {\n created: item.created,\n accessed: item.accessed,\n expires: item.expires,\n isExpired: new Date().getTime() - item.created > (item.maxAge || this.$$maxAge)\n };\n } else {\n return undefined;\n }\n } else if (utils.isObject($$data) && key in $$data) {\n item = $$data[key];\n\n return {\n created: item.created,\n accessed: item.accessed,\n expires: item.expires,\n isExpired: new Date().getTime() - item.created > (item.maxAge || this.$$maxAge)\n };\n } else {\n return undefined;\n }\n } else {\n return {\n id: this.$$id,\n capacity: this.$$capacity,\n maxAge: this.$$maxAge,\n deleteOnExpire: this.$$deleteOnExpire,\n onExpire: this.$$onExpire,\n cacheFlushInterval: this.$$cacheFlushInterval,\n recycleFreq: this.$$recycleFreq,\n storageMode: this.$$storageMode,\n storageImpl: $$storage ? $$storage() : undefined,\n disabled: !!this.$$disabled,\n size: $$lruHeap && $$lruHeap.size() || 0\n };\n }\n },\n keys: function keys() {\n if ($$storage) {\n var keysJson = $$storage().getItem(this.$$prefix + '.keys');\n\n if (keysJson) {\n return utils.fromJson(keysJson);\n } else {\n return [];\n }\n } else {\n return _keys($$data);\n }\n },\n keySet: function keySet() {\n if ($$storage) {\n var keysJson = $$storage().getItem(this.$$prefix + '.keys');\n var kSet = {};\n\n if (keysJson) {\n var keys = utils.fromJson(keysJson);\n\n for (var i = 0; i < keys.length; i++) {\n kSet[keys[i]] = keys[i];\n }\n }\n return kSet;\n } else {\n return _keySet($$data);\n }\n },\n put: function put(key, value, options) {\n var _this3 = this;\n\n options || (options = {});\n\n var storeOnResolve = 'storeOnResolve' in options ? !!options.storeOnResolve : this.$$storeOnResolve;\n var storeOnReject = 'storeOnReject' in options ? !!options.storeOnReject : this.$$storeOnReject;\n\n var getHandler = function getHandler(store, isError) {\n return function (v) {\n if (store) {\n delete $$promises[key];\n if (utils.isObject(v) && 'status' in v && 'data' in v) {\n v = [v.status, v.data, v.headers(), v.statusText];\n _this3.put(key, v);\n } else {\n _this3.put(key, v);\n }\n }\n if (isError) {\n if (utils.Promise) {\n return utils.Promise.reject(v);\n } else {\n throw v;\n }\n } else {\n return v;\n }\n };\n };\n\n if (this.$$disabled || !utils.isObject($$data) || value === null || value === undefined) {\n return;\n }\n key = _stringifyNumber(key);\n\n if (!utils.isString(key)) {\n throw new Error('key must be a string!');\n }\n\n var now = new Date().getTime();\n var item = {\n key: key,\n value: _isPromiseLike(value) ? value.then(getHandler(storeOnResolve, false), getHandler(storeOnReject, true)) : value,\n created: options.created === undefined ? now : options.created,\n accessed: options.accessed === undefined ? now : options.accessed\n };\n if (options.maxAge) {\n item.maxAge = options.maxAge;\n }\n\n if (options.expires === undefined) {\n item.expires = item.created + (item.maxAge || this.$$maxAge);\n } else {\n item.expires = options.expires;\n }\n\n if ($$storage) {\n if (_isPromiseLike(item.value)) {\n $$promises[key] = item.value;\n return $$promises[key];\n }\n var keysJson = $$storage().getItem(this.$$prefix + '.keys');\n var keys = keysJson ? utils.fromJson(keysJson) : [];\n var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);\n\n // Remove existing\n if (itemJson) {\n this.remove(key);\n }\n // Add to expires heap\n $$expiresHeap.push({\n key: key,\n expires: item.expires\n });\n // Add to lru heap\n $$lruHeap.push({\n key: key,\n accessed: item.accessed\n });\n // Set item\n $$storage().setItem(this.$$prefix + '.data.' + key, JSON.stringify(item));\n var exists = false;\n for (var i = 0; i < keys.length; i++) {\n if (keys[i] === key) {\n exists = true;\n break;\n }\n }\n if (!exists) {\n keys.push(key);\n }\n $$storage().setItem(this.$$prefix + '.keys', JSON.stringify(keys));\n } else {\n // Remove existing\n if ($$data[key]) {\n this.remove(key);\n }\n // Add to expires heap\n $$expiresHeap.push(item);\n // Add to lru heap\n $$lruHeap.push(item);\n // Set item\n $$data[key] = item;\n delete $$promises[key];\n }\n\n // Handle exceeded capacity\n if ($$lruHeap.size() > this.$$capacity) {\n this.remove($$lruHeap.peek().key);\n }\n\n return value;\n },\n remove: function remove(key) {\n key += '';\n delete $$promises[key];\n if ($$storage) {\n var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);\n\n if (itemJson) {\n var item = utils.fromJson(itemJson);\n $$lruHeap.remove({\n key: key,\n accessed: item.accessed\n });\n $$expiresHeap.remove({\n key: key,\n expires: item.expires\n });\n $$storage().removeItem(this.$$prefix + '.data.' + key);\n var keysJson = $$storage().getItem(this.$$prefix + '.keys');\n var keys = keysJson ? utils.fromJson(keysJson) : [];\n var index = keys.indexOf(key);\n\n if (index >= 0) {\n keys.splice(index, 1);\n }\n $$storage().setItem(this.$$prefix + '.keys', JSON.stringify(keys));\n return item.value;\n }\n } else if (utils.isObject($$data)) {\n var value = $$data[key] ? $$data[key].value : undefined;\n $$lruHeap.remove($$data[key]);\n $$expiresHeap.remove($$data[key]);\n $$data[key] = null;\n delete $$data[key];\n return value;\n }\n },\n removeAll: function removeAll() {\n if ($$storage) {\n $$lruHeap.removeAll();\n $$expiresHeap.removeAll();\n var keysJson = $$storage().getItem(this.$$prefix + '.keys');\n\n if (keysJson) {\n var keys = utils.fromJson(keysJson);\n\n for (var i = 0; i < keys.length; i++) {\n this.remove(keys[i]);\n }\n }\n $$storage().setItem(this.$$prefix + '.keys', JSON.stringify([]));\n } else if (utils.isObject($$data)) {\n $$lruHeap.removeAll();\n $$expiresHeap.removeAll();\n for (var key in $$data) {\n $$data[key] = null;\n }\n $$data = {};\n } else {\n $$lruHeap.removeAll();\n $$expiresHeap.removeAll();\n $$data = {};\n }\n $$promises = {};\n },\n removeExpired: function removeExpired() {\n var now = new Date().getTime();\n var expired = {};\n var key = void 0;\n var expiredItem = void 0;\n\n while ((expiredItem = $$expiresHeap.peek()) && expiredItem.expires <= now) {\n expired[expiredItem.key] = expiredItem.value ? expiredItem.value : null;\n $$expiresHeap.pop();\n }\n\n if ($$storage) {\n for (key in expired) {\n var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);\n if (itemJson) {\n expired[key] = utils.fromJson(itemJson).value;\n this.remove(key);\n }\n }\n } else {\n for (key in expired) {\n this.remove(key);\n }\n }\n\n if (this.$$onExpire) {\n for (key in expired) {\n this.$$onExpire(key, expired[key]);\n }\n }\n\n return expired;\n },\n setCacheFlushInterval: function setCacheFlushInterval(cacheFlushInterval) {\n var _this = this;\n if (cacheFlushInterval === null) {\n delete _this.$$cacheFlushInterval;\n } else if (!utils.isNumber(cacheFlushInterval)) {\n throw new Error('cacheFlushInterval must be a number!');\n } else if (cacheFlushInterval < 0) {\n throw new Error('cacheFlushInterval must be greater than zero!');\n } else if (cacheFlushInterval !== _this.$$cacheFlushInterval) {\n _this.$$cacheFlushInterval = cacheFlushInterval;\n\n clearInterval(_this.$$cacheFlushIntervalId); // eslint-disable-line\n\n _this.$$cacheFlushIntervalId = setInterval(function () {\n _this.removeAll();\n }, _this.$$cacheFlushInterval);\n }\n },\n setCapacity: function setCapacity(capacity) {\n if (capacity === null) {\n delete this.$$capacity;\n } else if (!utils.isNumber(capacity)) {\n throw new Error('capacity must be a number!');\n } else if (capacity < 0) {\n throw new Error('capacity must be greater than zero!');\n } else {\n this.$$capacity = capacity;\n }\n var removed = {};\n while ($$lruHeap.size() > this.$$capacity) {\n removed[$$lruHeap.peek().key] = this.remove($$lruHeap.peek().key);\n }\n return removed;\n },\n setDeleteOnExpire: function setDeleteOnExpire(deleteOnExpire, setRecycleFreq) {\n if (deleteOnExpire === null) {\n delete this.$$deleteOnExpire;\n } else if (!utils.isString(deleteOnExpire)) {\n throw new Error('deleteOnExpire must be a string!');\n } else if (deleteOnExpire !== 'none' && deleteOnExpire !== 'passive' && deleteOnExpire !== 'aggressive') {\n throw new Error('deleteOnExpire must be \"none\", \"passive\" or \"aggressive\"!');\n } else {\n this.$$deleteOnExpire = deleteOnExpire;\n }\n if (setRecycleFreq !== false) {\n this.setRecycleFreq(this.$$recycleFreq);\n }\n },\n setMaxAge: function setMaxAge(maxAge) {\n if (maxAge === null) {\n this.$$maxAge = Number.MAX_VALUE;\n } else if (!utils.isNumber(maxAge)) {\n throw new Error('maxAge must be a number!');\n } else if (maxAge < 0) {\n throw new Error('maxAge must be greater than zero!');\n } else {\n this.$$maxAge = maxAge;\n }\n var i = void 0,\n keys = void 0,\n key = void 0;\n\n $$expiresHeap.removeAll();\n\n if ($$storage) {\n var keysJson = $$storage().getItem(this.$$prefix + '.keys');\n\n keys = keysJson ? utils.fromJson(keysJson) : [];\n\n for (i = 0; i < keys.length; i++) {\n key = keys[i];\n var itemJson = $$storage().getItem(this.$$prefix + '.data.' + key);\n\n if (itemJson) {\n var item = utils.fromJson(itemJson);\n if (this.$$maxAge === Number.MAX_VALUE) {\n item.expires = Number.MAX_VALUE;\n } else {\n item.expires = item.created + (item.maxAge || this.$$maxAge);\n }\n $$expiresHeap.push({\n key: key,\n expires: item.expires\n });\n }\n }\n } else {\n keys = _keys($$data);\n\n for (i = 0; i < keys.length; i++) {\n key = keys[i];\n if (this.$$maxAge === Number.MAX_VALUE) {\n $$data[key].expires = Number.MAX_VALUE;\n } else {\n $$data[key].expires = $$data[key].created + ($$data[key].maxAge || this.$$maxAge);\n }\n $$expiresHeap.push($$data[key]);\n }\n }\n if (this.$$deleteOnExpire === 'aggressive') {\n return this.removeExpired();\n } else {\n return {};\n }\n },\n setOnExpire: function setOnExpire(onExpire) {\n if (onExpire === null) {\n delete this.$$onExpire;\n } else if (!utils.isFunction(onExpire)) {\n throw new Error('onExpire must be a function!');\n } else {\n this.$$onExpire = onExpire;\n }\n },\n setOptions: function setOptions(cacheOptions, strict) {\n cacheOptions = cacheOptions || {};\n strict = !!strict;\n if (!utils.isObject(cacheOptions)) {\n throw new Error('cacheOptions must be an object!');\n }\n\n if ('storagePrefix' in cacheOptions) {\n this.$$storagePrefix = cacheOptions.storagePrefix;\n } else if (strict) {\n this.$$storagePrefix = defaults.storagePrefix;\n }\n\n this.$$prefix = this.$$storagePrefix + this.$$id;\n\n if ('disabled' in cacheOptions) {\n this.$$disabled = !!cacheOptions.disabled;\n } else if (strict) {\n this.$$disabled = defaults.disabled;\n }\n\n if ('deleteOnExpire' in cacheOptions) {\n this.setDeleteOnExpire(cacheOptions.deleteOnExpire, false);\n } else if (strict) {\n this.setDeleteOnExpire(defaults.deleteOnExpire, false);\n }\n\n if ('recycleFreq' in cacheOptions) {\n this.setRecycleFreq(cacheOptions.recycleFreq);\n } else if (strict) {\n this.setRecycleFreq(defaults.recycleFreq);\n }\n\n if ('maxAge' in cacheOptions) {\n this.setMaxAge(cacheOptions.maxAge);\n } else if (strict) {\n this.setMaxAge(defaults.maxAge);\n }\n\n if ('storeOnResolve' in cacheOptions) {\n this.$$storeOnResolve = !!cacheOptions.storeOnResolve;\n } else if (strict) {\n this.$$storeOnResolve = defaults.storeOnResolve;\n }\n\n if ('storeOnReject' in cacheOptions) {\n this.$$storeOnReject = !!cacheOptions.storeOnReject;\n } else if (strict) {\n this.$$storeOnReject = defaults.storeOnReject;\n }\n\n if ('capacity' in cacheOptions) {\n this.setCapacity(cacheOptions.capacity);\n } else if (strict) {\n this.setCapacity(defaults.capacity);\n }\n\n if ('cacheFlushInterval' in cacheOptions) {\n this.setCacheFlushInterval(cacheOptions.cacheFlushInterval);\n } else if (strict) {\n this.setCacheFlushInterval(defaults.cacheFlushInterval);\n }\n\n if ('onExpire' in cacheOptions) {\n this.setOnExpire(cacheOptions.onExpire);\n } else if (strict) {\n this.setOnExpire(defaults.onExpire);\n }\n\n if ('storageMode' in cacheOptions || 'storageImpl' in cacheOptions) {\n this.setStorageMode(cacheOptions.storageMode || defaults.storageMode, cacheOptions.storageImpl || defaults.storageImpl);\n } else if (strict) {\n this.setStorageMode(defaults.storageMode, defaults.storageImpl);\n }\n },\n setRecycleFreq: function setRecycleFreq(recycleFreq) {\n if (recycleFreq === null) {\n delete this.$$recycleFreq;\n } else if (!utils.isNumber(recycleFreq)) {\n throw new Error('recycleFreq must be a number!');\n } else if (recycleFreq < 0) {\n throw new Error('recycleFreq must be greater than zero!');\n } else {\n this.$$recycleFreq = recycleFreq;\n }\n clearInterval(this.$$recycleFreqId);\n if (this.$$deleteOnExpire === 'aggressive') {\n (function (self) {\n self.$$recycleFreqId = setInterval(function () {\n self.removeExpired();\n }, self.$$recycleFreq);\n })(this);\n } else {\n delete this.$$recycleFreqId;\n }\n },\n setStorageMode: function setStorageMode(storageMode, storageImpl) {\n if (!utils.isString(storageMode)) {\n throw new Error('storageMode must be a string!');\n } else if (storageMode !== 'memory' && storageMode !== 'localStorage' && storageMode !== 'sessionStorage') {\n throw new Error('storageMode must be \"memory\", \"localStorage\" or \"sessionStorage\"!');\n }\n\n var prevStorage = $$storage;\n var prevData = $$data;\n var shouldReInsert = false;\n var items = {};\n\n function load(prevStorage, prevData) {\n var keys = this.keys();\n var length = keys.length;\n if (length) {\n var _key = void 0;\n var prevDataIsObject = utils.isObject(prevData);\n for (var i = 0; i < length; i++) {\n _key = keys[i];\n if (prevStorage) {\n var itemJson = prevStorage().getItem(this.$$prefix + '.data.' + _key);\n if (itemJson) {\n items[_key] = utils.fromJson(itemJson);\n }\n } else if (prevDataIsObject) {\n items[_key] = prevData[_key];\n }\n this.remove(_key);\n }\n shouldReInsert = true;\n }\n }\n\n if (!this.$$initializing) {\n load.call(this, prevStorage, prevData);\n }\n\n this.$$storageMode = storageMode;\n\n if (storageImpl) {\n if (!utils.isObject(storageImpl)) {\n throw new Error('storageImpl must be an object!');\n } else if (!('setItem' in storageImpl) || typeof storageImpl.setItem !== 'function') {\n throw new Error('storageImpl must implement \"setItem(key, value)\"!');\n } else if (!('getItem' in storageImpl) || typeof storageImpl.getItem !== 'function') {\n throw new Error('storageImpl must implement \"getItem(key)\"!');\n } else if (!('removeItem' in storageImpl) || typeof storageImpl.removeItem !== 'function') {\n throw new Error('storageImpl must implement \"removeItem(key)\"!');\n }\n $$storage = function $$storage() {\n return storageImpl;\n };\n } else if (this.$$storageMode === 'localStorage') {\n try {\n localStorage.setItem('cachefactory', 'cachefactory');\n localStorage.removeItem('cachefactory');\n $$storage = function $$storage() {\n return localStorage;\n };\n } catch (e) {\n $$storage = null;\n this.$$storageMode = 'memory';\n }\n } else if (this.$$storageMode === 'sessionStorage') {\n try {\n sessionStorage.setItem('cachefactory', 'cachefactory');\n sessionStorage.removeItem('cachefactory');\n $$storage = function $$storage() {\n return sessionStorage;\n };\n } catch (e) {\n $$storage = null;\n this.$$storageMode = 'memory';\n }\n } else {\n $$storage = null;\n this.$$storageMode = 'memory';\n }\n\n if (this.$$initializing) {\n load.call(this, $$storage, $$data);\n }\n\n if (shouldReInsert) {\n var item = void 0;\n for (var key in items) {\n item = items[key];\n this.put(key, item.value, {\n created: item.created,\n accessed: item.accessed,\n expires: item.expires\n });\n }\n }\n },\n touch: function touch(key, options) {\n var _this4 = this;\n\n if (key) {\n var val = this.get(key, {\n onExpire: function onExpire(k, v) {\n return _this4.put(k, v);\n }\n });\n if (val) {\n this.put(key, val, options);\n }\n } else {\n var keys = this.keys();\n for (var i = 0; i < keys.length; i++) {\n this.touch(keys[i], options);\n }\n }\n },\n values: function values() {\n var keys = this.keys();\n var items = [];\n for (var i = 0; i < keys.length; i++) {\n items.push(this.get(keys[i]));\n }\n return items;\n }\n };\n\n cache.$$initializing = true;\n cache.setOptions(options, true);\n cache.$$initializing = false;\n\n return cache;\n}\n\nfunction CacheFactory(cacheId, options) {\n return createCache(cacheId, options);\n}\n\nCacheFactory.createCache = createCache;\nCacheFactory.defaults = defaults;\n\nCacheFactory.info = function () {\n var keys = _keys(caches);\n var info = {\n size: keys.length,\n caches: {}\n };\n for (var opt in defaults) {\n if (defaults.hasOwnProperty(opt)) {\n info[opt] = defaults[opt];\n }\n }\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n info.caches[key] = caches[key].info();\n }\n return info;\n};\n\nCacheFactory.get = function (cacheId) {\n return caches[cacheId];\n};\nCacheFactory.keySet = function () {\n return _keySet(caches);\n};\nCacheFactory.keys = function () {\n return _keys(caches);\n};\nCacheFactory.destroy = function (cacheId) {\n if (caches[cacheId]) {\n caches[cacheId].destroy();\n delete caches[cacheId];\n }\n};\nCacheFactory.destroyAll = function () {\n for (var cacheId in caches) {\n caches[cacheId].destroy();\n }\n caches = {};\n};\nCacheFactory.clearAll = function () {\n for (var cacheId in caches) {\n caches[cacheId].removeAll();\n }\n};\nCacheFactory.removeExpiredFromAll = function () {\n var expired = {};\n for (var cacheId in caches) {\n expired[cacheId] = caches[cacheId].removeExpired();\n }\n return expired;\n};\nCacheFactory.enableAll = function () {\n for (var cacheId in caches) {\n caches[cacheId].$$disabled = false;\n }\n};\nCacheFactory.disableAll = function () {\n for (var cacheId in caches) {\n caches[cacheId].$$disabled = true;\n }\n};\nCacheFactory.touchAll = function () {\n for (var cacheId in caches) {\n caches[cacheId].touch();\n }\n};\n\nCacheFactory.utils = utils;\nCacheFactory.BinaryHeap = BinaryHeap;\n\nexport default CacheFactory;\n//# sourceMappingURL=cachefactory.es2015.js.map","import angular from 'angular'\nimport CacheFactory from '../node_modules/cachefactory/dist/cachefactory.es2015'\n\nCacheFactory.utils.equals = angular.equals\nCacheFactory.utils.isObject = angular.isObject\nCacheFactory.utils.fromJson = angular.fromJson\n\nfunction BinaryHeapProvider () {\n this.$get = function () { return CacheFactory.BinaryHeap }\n}\n\nfunction CacheFactoryProvider () {\n this.defaults = CacheFactory.defaults\n this.defaults.storagePrefix = 'angular-cache.caches.'\n\n this.$get = ['$q', function ($q) {\n CacheFactory.utils.Promise = $q\n return CacheFactory\n }]\n}\n\nangular.module('angular-cache', [])\n .provider('BinaryHeap', BinaryHeapProvider)\n .provider('CacheFactory', CacheFactoryProvider)\n\nexport default 'angular-cache'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,EAAA,IAAI,eAAe,EAAnB;AACA,EAAA,aAAa,MAAb,GAAsB,OAAO,MAAP,KAAkB,UAAlB,IAAgC,oBAAO,OAAO,QAAd,MAA2B,QAA3D,GAAsE,UAAU,GAAV,EAAe;AACzG,EAAA,gBAAc,GAAd,qDAAc,GAAd;AACD,EAAA,CAFqB,GAElB,UAAU,GAAV,EAAe;AACjB,EAAA,SAAO,OAAO,OAAO,MAAP,KAAkB,UAAzB,IAAuC,IAAI,WAAJ,KAAoB,MAA3D,GAAoE,QAApE,UAAsF,GAAtF,qDAAsF,GAAtF,CAAP;AACD,EAAA,CAJD;AAKA;;;;;;AAQA,EAAA,IAAI,WAAW,SAAS,QAAT,CAAkB,IAAlB,EAAwB,UAAxB,EAAoC,CAApC,EAAuC;AACpD,EAAA,MAAI,UAAU,KAAK,CAAL,CAAd;AACA,EAAA,MAAI,SAAS,WAAW,OAAX,CAAb;;AAEA,EAAA,SAAO,IAAI,CAAX,EAAc;;AAEZ,EAAA,QAAI,UAAU,KAAK,KAAL,CAAW,CAAC,IAAI,CAAL,IAAU,CAArB,IAA0B,CAAxC;AACA,EAAA,QAAI,SAAS,KAAK,OAAL,CAAb;;;AAGA,EAAA,QAAI,UAAU,WAAW,MAAX,CAAd,EAAkC;AAChC,EAAA;AACD,EAAA,KAFD,MAEO;AACL,EAAA,WAAK,OAAL,IAAgB,OAAhB;AACA,EAAA,WAAK,CAAL,IAAU,MAAV;AACA,EAAA,UAAI,OAAJ;AACD,EAAA;AACF,EAAA;AACF,EAAA,CAlBD;;;;;;;;AA0BA,EAAA,IAAI,aAAa,SAAS,UAAT,CAAoB,IAApB,EAA0B,UAA1B,EAAsC,CAAtC,EAAyC;AACxD,EAAA,MAAI,SAAS,KAAK,MAAlB;AACA,EAAA,MAAI,OAAO,KAAK,CAAL,CAAX;AACA,EAAA,MAAI,aAAa,WAAW,IAAX,CAAjB;;AAEA,EAAA,SAAO,IAAP,EAAa;AACX,EAAA,QAAI,UAAU,CAAC,IAAI,CAAL,IAAU,CAAxB;AACA,EAAA,QAAI,UAAU,UAAU,CAAxB;AACA,EAAA,QAAI,OAAO,IAAX;AACA,EAAA,QAAI,UAAU,MAAd,EAAsB;AACpB,EAAA,UAAI,SAAS,KAAK,OAAL,CAAb;AACA,EAAA,UAAI,eAAe,WAAW,MAAX,CAAnB;;AAEA,EAAA,UAAI,eAAe,UAAnB,EAA+B;AAC7B,EAAA,eAAO,OAAP;AACD,EAAA;AACF,EAAA;;AAED,EAAA,QAAI,UAAU,MAAd,EAAsB;AACpB,EAAA,UAAI,SAAS,KAAK,OAAL,CAAb;AACA,EAAA,UAAI,eAAe,WAAW,MAAX,CAAnB;AACA,EAAA,UAAI,gBAAgB,SAAS,IAAT,GAAgB,UAAhB,GAA6B,WAAW,KAAK,OAAL,CAAX,CAA7C,CAAJ,EAA6E;AAC3E,EAAA,eAAO,OAAP;AACD,EAAA;AACF,EAAA;;AAED,EAAA,QAAI,SAAS,IAAb,EAAmB;AACjB,EAAA;AACD,EAAA,KAFD,MAEO;AACL,EAAA,WAAK,CAAL,IAAU,KAAK,IAAL,CAAV;AACA,EAAA,WAAK,IAAL,IAAa,IAAb;AACA,EAAA,UAAI,IAAJ;AACD,EAAA;AACF,EAAA;AACF,EAAA,CAlCD;;AAoCA,EAAA,SAAS,UAAT,CAAoB,UAApB,EAAgC,WAAhC,EAA6C;AAC3C,EAAA,MAAI,CAAC,UAAL,EAAiB;AACf,EAAA,iBAAa,SAAS,UAAT,CAAoB,CAApB,EAAuB;AAClC,EAAA,aAAO,CAAP;AACD,EAAA,KAFD;AAGD,EAAA;AACD,EAAA,MAAI,CAAC,WAAL,EAAkB;AAChB,EAAA,kBAAc,SAAS,WAAT,CAAqB,CAArB,EAAwB,CAAxB,EAA2B;AACvC,EAAA,aAAO,MAAM,CAAb;AACD,EAAA,KAFD;AAGD,EAAA;AACD,EAAA,MAAI,OAAO,UAAP,KAAsB,UAA1B,EAAsC;AACpC,EAAA,UAAM,IAAI,KAAJ,CAAU,2EAAV,CAAN;AACD,EAAA;AACD,EAAA,MAAI,OAAO,WAAP,KAAuB,UAA3B,EAAuC;AACrC,EAAA,UAAM,IAAI,KAAJ,CAAU,4EAAV,CAAN;AACD,EAAA;AACD,EAAA,OAAK,UAAL,GAAkB,UAAlB;AACA,EAAA,OAAK,WAAL,GAAmB,WAAnB;AACA,EAAA,OAAK,IAAL,GAAY,EAAZ;AACD,EAAA;;AAED,EAAA,IAAI,UAAU,WAAW,SAAzB;;AAEA,EAAA,QAAQ,IAAR,GAAe,UAAU,IAAV,EAAgB;AAC7B,EAAA,OAAK,IAAL,CAAU,IAAV,CAAe,IAAf;AACA,EAAA,WAAS,KAAK,IAAd,EAAoB,KAAK,UAAzB,EAAqC,KAAK,IAAL,CAAU,MAAV,GAAmB,CAAxD;AACD,EAAA,CAHD;;AAKA,EAAA,QAAQ,IAAR,GAAe,YAAY;AACzB,EAAA,SAAO,KAAK,IAAL,CAAU,CAAV,CAAP;AACD,EAAA,CAFD;;AAIA,EAAA,QAAQ,GAAR,GAAc,YAAY;AACxB,EAAA,MAAI,QAAQ,KAAK,IAAL,CAAU,CAAV,CAAZ;AACA,EAAA,MAAI,MAAM,KAAK,IAAL,CAAU,GAAV,EAAV;AACA,EAAA,MAAI,KAAK,IAAL,CAAU,MAAV,GAAmB,CAAvB,EAA0B;AACxB,EAAA,SAAK,IAAL,CAAU,CAAV,IAAe,GAAf;AACA,EAAA,eAAW,KAAK,IAAhB,EAAsB,KAAK,UAA3B,EAAuC,CAAvC;AACD,EAAA;AACD,EAAA,SAAO,KAAP;AACD,EAAA,CARD;;AAUA,EAAA,QAAQ,MAAR,GAAiB,UAAU,IAAV,EAAgB;AAC/B,EAAA,MAAI,SAAS,KAAK,IAAL,CAAU,MAAvB;AACA,EAAA,OAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,MAApB,EAA4B,GAA5B,EAAiC;AAC/B,EAAA,QAAI,KAAK,WAAL,CAAiB,KAAK,IAAL,CAAU,CAAV,CAAjB,EAA+B,IAA/B,CAAJ,EAA0C;AACxC,EAAA,UAAI,UAAU,KAAK,IAAL,CAAU,CAAV,CAAd;AACA,EAAA,UAAI,MAAM,KAAK,IAAL,CAAU,GAAV,EAAV;AACA,EAAA,UAAI,MAAM,SAAS,CAAnB,EAAsB;AACpB,EAAA,aAAK,IAAL,CAAU,CAAV,IAAe,GAAf;AACA,EAAA,iBAAS,KAAK,IAAd,EAAoB,KAAK,UAAzB,EAAqC,CAArC;AACA,EAAA,mBAAW,KAAK,IAAhB,EAAsB,KAAK,UAA3B,EAAuC,CAAvC;AACD,EAAA;AACD,EAAA,aAAO,OAAP;AACD,EAAA;AACF,EAAA;AACD,EAAA,SAAO,IAAP;AACD,EAAA,CAfD;;AAiBA,EAAA,QAAQ,SAAR,GAAoB,YAAY;AAC9B,EAAA,OAAK,IAAL,GAAY,EAAZ;AACD,EAAA,CAFD;;AAIA,EAAA,QAAQ,IAAR,GAAe,YAAY;AACzB,EAAA,SAAO,KAAK,IAAL,CAAU,MAAjB;AACD,EAAA,CAFD;;AAIA,EAAA,IAAI,WAAW,IAAf;AACA,EAAA,IAAI;AACF,EAAA,aAAW,OAAO,OAAlB;AACD,EAAA,CAFD,CAEE,OAAO,CAAP,EAAU;;AAEZ,EAAA,IAAI,QAAQ;AACV,EAAA,YAAU,SAAS,QAAT,CAAkB,KAAlB,EAAyB;AACjC,EAAA,WAAO,OAAO,KAAP,KAAiB,QAAxB;AACD,EAAA,GAHS;AAIV,EAAA,YAAU,SAAS,QAAT,CAAkB,KAAlB,EAAyB;AACjC,EAAA,WAAO,OAAO,KAAP,KAAiB,QAAxB;AACD,EAAA,GANS;AAOV,EAAA,YAAU,SAAS,QAAT,CAAkB,KAAlB,EAAyB;AACjC,EAAA,WAAO,UAAU,IAAV,IAAkB,CAAC,OAAO,KAAP,KAAiB,WAAjB,GAA+B,WAA/B,GAA6C,aAAa,MAAb,CAAoB,KAApB,CAA9C,MAA8E,QAAvG;AACD,EAAA,GATS;AAUV,EAAA,cAAY,SAAS,UAAT,CAAoB,KAApB,EAA2B;AACrC,EAAA,WAAO,OAAO,KAAP,KAAiB,UAAxB;AACD,EAAA,GAZS;AAaV,EAAA,YAAU,SAAS,QAAT,CAAkB,KAAlB,EAAyB;AACjC,EAAA,WAAO,KAAK,KAAL,CAAW,KAAX,CAAP;AACD,EAAA,GAfS;AAgBV,EAAA,UAAQ,SAAS,MAAT,CAAgB,CAAhB,EAAmB,CAAnB,EAAsB;AAC5B,EAAA,WAAO,MAAM,CAAb;AACD,EAAA,GAlBS;;AAqBV,EAAA,WAAS;AArBC,EAAA,CAAZ;;AAwBA,EAAA,SAAS,KAAT,CAAe,UAAf,EAA2B;AACzB,EAAA,MAAI,OAAO,EAAX;AACA,EAAA,MAAI,MAAM,KAAK,CAAf;AACA,EAAA,MAAI,CAAC,MAAM,QAAN,CAAe,UAAf,CAAL,EAAiC;AAC/B,EAAA,WAAO,IAAP;AACD,EAAA;AACD,EAAA,OAAK,GAAL,IAAY,UAAZ,EAAwB;AACtB,EAAA,QAAI,WAAW,cAAX,CAA0B,GAA1B,CAAJ,EAAoC;AAClC,EAAA,WAAK,IAAL,CAAU,GAAV;AACD,EAAA;AACF,EAAA;AACD,EAAA,SAAO,IAAP;AACD,EAAA;;AAED,EAAA,SAAS,cAAT,CAAwB,KAAxB,EAA+B;AAC7B,EAAA,SAAO,SAAS,OAAO,MAAM,IAAb,KAAsB,UAAtC;AACD,EAAA;;AAED,EAAA,SAAS,gBAAT,CAA0B,MAA1B,EAAkC;AAChC,EAAA,MAAI,MAAM,QAAN,CAAe,MAAf,CAAJ,EAA4B;AAC1B,EAAA,WAAO,OAAO,QAAP,EAAP;AACD,EAAA;AACD,EAAA,SAAO,MAAP;AACD,EAAA;;AAED,EAAA,SAAS,OAAT,CAAiB,UAAjB,EAA6B;AAC3B,EAAA,MAAI,SAAS,EAAb;AACA,EAAA,MAAI,MAAM,KAAK,CAAf;AACA,EAAA,MAAI,CAAC,MAAM,QAAN,CAAe,UAAf,CAAL,EAAiC;AAC/B,EAAA,WAAO,MAAP;AACD,EAAA;AACD,EAAA,OAAK,GAAL,IAAY,UAAZ,EAAwB;AACtB,EAAA,QAAI,WAAW,cAAX,CAA0B,GAA1B,CAAJ,EAAoC;AAClC,EAAA,aAAO,GAAP,IAAc,GAAd;AACD,EAAA;AACF,EAAA;AACD,EAAA,SAAO,MAAP;AACD,EAAA;;AAED,EAAA,IAAI,WAAW;AACb,EAAA,YAAU,OAAO,SADJ;AAEb,EAAA,UAAQ,OAAO,SAFF;AAGb,EAAA,kBAAgB,MAHH;AAIb,EAAA,YAAU,IAJG;AAKb,EAAA,sBAAoB,IALP;AAMb,EAAA,eAAa,IANA;AAOb,EAAA,eAAa,QAPA;AAQb,EAAA,eAAa,IARA;AASb,EAAA,YAAU,KATG;AAUb,EAAA,iBAAe,sBAVF;AAWb,EAAA,kBAAgB,KAXH;AAYb,EAAA,iBAAe;AAZF,EAAA,CAAf;;AAeA,EAAA,IAAI,SAAS,EAAb;;AAEA,EAAA,SAAS,WAAT,CAAqB,OAArB,EAA8B,OAA9B,EAAuC;AACrC,EAAA,MAAI,WAAW,MAAf,EAAuB;AACrB,EAAA,UAAM,IAAI,KAAJ,CAAU,UAAU,kBAApB,CAAN;AACD,EAAA,GAFD,MAEO,IAAI,CAAC,MAAM,QAAN,CAAe,OAAf,CAAL,EAA8B;AACnC,EAAA,UAAM,IAAI,KAAJ,CAAU,2BAAV,CAAN;AACD,EAAA;;AAED,EAAA,MAAI,SAAS,EAAb;AACA,EAAA,MAAI,aAAa,EAAjB;AACA,EAAA,MAAI,YAAY,IAAhB;AACA,EAAA,MAAI,gBAAgB,IAAI,UAAJ,CAAe,UAAU,CAAV,EAAa;AAC9C,EAAA,WAAO,EAAE,OAAT;AACD,EAAA,GAFmB,EAEjB,MAAM,MAFW,CAApB;AAGA,EAAA,MAAI,YAAY,IAAI,UAAJ,CAAe,UAAU,CAAV,EAAa;AAC1C,EAAA,WAAO,EAAE,QAAT;AACD,EAAA,GAFe,EAEb,MAAM,MAFO,CAAhB;;AAIA,EAAA,MAAI,QAAQ,OAAO,OAAP,IAAkB;;AAE5B,EAAA,UAAM,OAFsB;;AAI5B,EAAA,aAAS,SAAS,OAAT,GAAmB;AAC1B,EAAA,oBAAc,KAAK,sBAAnB;AACA,EAAA,oBAAc,KAAK,eAAnB;AACA,EAAA,WAAK,SAAL;AACA,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,oBAAY,UAAZ,CAAuB,KAAK,QAAL,GAAgB,OAAvC;AACA,EAAA,oBAAY,UAAZ,CAAuB,KAAK,QAA5B;AACD,EAAA;AACD,EAAA,kBAAY,IAAZ;AACA,EAAA,eAAS,IAAT;AACA,EAAA,kBAAY,IAAZ;AACA,EAAA,sBAAgB,IAAhB;AACA,EAAA,WAAK,QAAL,GAAgB,IAAhB;AACA,EAAA,aAAO,OAAO,KAAK,IAAZ,CAAP;AACD,EAAA,KAlB2B;AAmB5B,EAAA,aAAS,SAAS,OAAT,GAAmB;AAC1B,EAAA,WAAK,UAAL,GAAkB,IAAlB;AACD,EAAA,KArB2B;AAsB5B,EAAA,YAAQ,SAAS,MAAT,GAAkB;AACxB,EAAA,aAAO,KAAK,UAAZ;AACD,EAAA,KAxB2B;AAyB5B,EAAA,SAAK,SAAS,GAAT,CAAa,GAAb,EAAkB,OAAlB,EAA2B;AAC9B,EAAA,UAAI,SAAS,IAAb;;AAEA,EAAA,UAAI,MAAM,OAAN,CAAc,GAAd,CAAJ,EAAwB;AACtB,EAAA,YAAI,OAAO,YAAY;AACrB,EAAA,cAAI,OAAO,GAAX;AACA,EAAA,cAAI,SAAS,EAAb;;AAEA,EAAA,eAAK,OAAL,CAAa,UAAU,GAAV,EAAe;AAC1B,EAAA,gBAAI,QAAQ,OAAO,GAAP,CAAW,GAAX,EAAgB,OAAhB,CAAZ;AACA,EAAA,gBAAI,UAAU,IAAV,IAAkB,UAAU,SAAhC,EAA2C;AACzC,EAAA,qBAAO,IAAP,CAAY,KAAZ;AACD,EAAA;AACF,EAAA,WALD;;AAOA,EAAA,iBAAO;AACL,EAAA,eAAG;AADE,EAAA,WAAP;AAGD,EAAA,SAdU,EAAX;;AAgBA,EAAA,YAAI,CAAC,OAAO,IAAP,KAAgB,WAAhB,GAA8B,WAA9B,GAA4C,aAAa,MAAb,CAAoB,IAApB,CAA7C,MAA4E,QAAhF,EAA0F,OAAO,KAAK,CAAZ;AAC3F,EAAA,OAlBD,MAkBO;AACL,EAAA,cAAM,iBAAiB,GAAjB,CAAN;;AAEA,EAAA,YAAI,KAAK,UAAT,EAAqB;AACnB,EAAA;AACD,EAAA;AACF,EAAA;;AAED,EAAA,gBAAU,WAAW,EAArB;AACA,EAAA,UAAI,CAAC,MAAM,QAAN,CAAe,GAAf,CAAL,EAA0B;AACxB,EAAA,cAAM,IAAI,KAAJ,CAAU,uBAAV,CAAN;AACD,EAAA,OAFD,MAEO,IAAI,WAAW,CAAC,MAAM,QAAN,CAAe,OAAf,CAAhB,EAAyC;AAC9C,EAAA,cAAM,IAAI,KAAJ,CAAU,4BAAV,CAAN;AACD,EAAA,OAFM,MAEA,IAAI,QAAQ,QAAR,IAAoB,CAAC,MAAM,UAAN,CAAiB,QAAQ,QAAzB,CAAzB,EAA6D;AAClE,EAAA,cAAM,IAAI,KAAJ,CAAU,sCAAV,CAAN;AACD,EAAA;;AAED,EAAA,UAAI,OAAO,KAAK,CAAhB;;AAEA,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,YAAI,WAAW,GAAX,CAAJ,EAAqB;AACnB,EAAA,iBAAO,WAAW,GAAX,CAAP;AACD,EAAA;;AAED,EAAA,YAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAA/C,CAAf;;AAEA,EAAA,YAAI,QAAJ,EAAc;AACZ,EAAA,iBAAO,MAAM,QAAN,CAAe,QAAf,CAAP;AACD,EAAA,SAFD,MAEO;AACL,EAAA;AACD,EAAA;AACF,EAAA,OAZD,MAYO,IAAI,MAAM,QAAN,CAAe,MAAf,CAAJ,EAA4B;AACjC,EAAA,YAAI,EAAE,OAAO,MAAT,CAAJ,EAAsB;AACpB,EAAA;AACD,EAAA;;AAED,EAAA,eAAO,OAAO,GAAP,CAAP;AACD,EAAA;;AAED,EAAA,UAAI,QAAQ,KAAK,KAAjB;AACA,EAAA,UAAI,MAAM,IAAI,IAAJ,GAAW,OAAX,EAAV;;AAEA,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,kBAAU,MAAV,CAAiB;AACf,EAAA,eAAK,GADU;AAEf,EAAA,oBAAU,KAAK;AAFA,EAAA,SAAjB;AAIA,EAAA,aAAK,QAAL,GAAgB,GAAhB;AACA,EAAA,kBAAU,IAAV,CAAe;AACb,EAAA,eAAK,GADQ;AAEb,EAAA,oBAAU;AAFG,EAAA,SAAf;AAID,EAAA,OAVD,MAUO;AACL,EAAA,kBAAU,MAAV,CAAiB,IAAjB;AACA,EAAA,aAAK,QAAL,GAAgB,GAAhB;AACA,EAAA,kBAAU,IAAV,CAAe,IAAf;AACD,EAAA;;AAED,EAAA,UAAI,KAAK,gBAAL,KAA0B,SAA1B,IAAuC,aAAa,IAApD,IAA4D,KAAK,OAAL,GAAe,GAA/E,EAAoF;AAClF,EAAA,aAAK,MAAL,CAAY,GAAZ;;AAEA,EAAA,YAAI,KAAK,UAAT,EAAqB;AACnB,EAAA,eAAK,UAAL,CAAgB,GAAhB,EAAqB,KAAK,KAA1B,EAAiC,QAAQ,QAAzC;AACD,EAAA,SAFD,MAEO,IAAI,QAAQ,QAAZ,EAAsB;AAC3B,EAAA,kBAAQ,QAAR,CAAiB,IAAjB,CAAsB,IAAtB,EAA4B,GAA5B,EAAiC,KAAK,KAAtC;AACD,EAAA;AACD,EAAA,gBAAQ,SAAR;AACD,EAAA,OATD,MASO,IAAI,SAAJ,EAAe;AACpB,EAAA,oBAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAA/C,EAAoD,KAAK,SAAL,CAAe,IAAf,CAApD;AACD,EAAA;;AAED,EAAA,aAAO,KAAP;AACD,EAAA,KAtH2B;AAuH5B,EAAA,UAAM,SAAS,IAAT,CAAc,GAAd,EAAmB;AACvB,EAAA,UAAI,GAAJ,EAAS;AACP,EAAA,YAAI,OAAO,KAAK,CAAhB;AACA,EAAA,YAAI,SAAJ,EAAe;AACb,EAAA,cAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAA/C,CAAf;;AAEA,EAAA,cAAI,QAAJ,EAAc;AACZ,EAAA,mBAAO,MAAM,QAAN,CAAe,QAAf,CAAP;AACA,EAAA,mBAAO;AACL,EAAA,uBAAS,KAAK,OADT;AAEL,EAAA,wBAAU,KAAK,QAFV;AAGL,EAAA,uBAAS,KAAK,OAHT;AAIL,EAAA,yBAAW,IAAI,IAAJ,GAAW,OAAX,KAAuB,KAAK,OAA5B,IAAuC,KAAK,MAAL,IAAe,KAAK,QAA3D;AAJN,EAAA,aAAP;AAMD,EAAA,WARD,MAQO;AACL,EAAA,mBAAO,SAAP;AACD,EAAA;AACF,EAAA,SAdD,MAcO,IAAI,MAAM,QAAN,CAAe,MAAf,KAA0B,OAAO,MAArC,EAA6C;AAClD,EAAA,iBAAO,OAAO,GAAP,CAAP;;AAEA,EAAA,iBAAO;AACL,EAAA,qBAAS,KAAK,OADT;AAEL,EAAA,sBAAU,KAAK,QAFV;AAGL,EAAA,qBAAS,KAAK,OAHT;AAIL,EAAA,uBAAW,IAAI,IAAJ,GAAW,OAAX,KAAuB,KAAK,OAA5B,IAAuC,KAAK,MAAL,IAAe,KAAK,QAA3D;AAJN,EAAA,WAAP;AAMD,EAAA,SATM,MASA;AACL,EAAA,iBAAO,SAAP;AACD,EAAA;AACF,EAAA,OA5BD,MA4BO;AACL,EAAA,eAAO;AACL,EAAA,cAAI,KAAK,IADJ;AAEL,EAAA,oBAAU,KAAK,UAFV;AAGL,EAAA,kBAAQ,KAAK,QAHR;AAIL,EAAA,0BAAgB,KAAK,gBAJhB;AAKL,EAAA,oBAAU,KAAK,UALV;AAML,EAAA,8BAAoB,KAAK,oBANpB;AAOL,EAAA,uBAAa,KAAK,aAPb;AAQL,EAAA,uBAAa,KAAK,aARb;AASL,EAAA,uBAAa,YAAY,WAAZ,GAA0B,SATlC;AAUL,EAAA,oBAAU,CAAC,CAAC,KAAK,UAVZ;AAWL,EAAA,gBAAM,aAAa,UAAU,IAAV,EAAb,IAAiC;AAXlC,EAAA,SAAP;AAaD,EAAA;AACF,EAAA,KAnK2B;AAoK5B,EAAA,UAAM,SAAS,IAAT,GAAgB;AACpB,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,YAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,CAAf;;AAEA,EAAA,YAAI,QAAJ,EAAc;AACZ,EAAA,iBAAO,MAAM,QAAN,CAAe,QAAf,CAAP;AACD,EAAA,SAFD,MAEO;AACL,EAAA,iBAAO,EAAP;AACD,EAAA;AACF,EAAA,OARD,MAQO;AACL,EAAA,eAAO,MAAM,MAAN,CAAP;AACD,EAAA;AACF,EAAA,KAhL2B;AAiL5B,EAAA,YAAQ,SAAS,MAAT,GAAkB;AACxB,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,YAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,CAAf;AACA,EAAA,YAAI,OAAO,EAAX;;AAEA,EAAA,YAAI,QAAJ,EAAc;AACZ,EAAA,cAAI,OAAO,MAAM,QAAN,CAAe,QAAf,CAAX;;AAEA,EAAA,eAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,KAAK,MAAzB,EAAiC,GAAjC,EAAsC;AACpC,EAAA,iBAAK,KAAK,CAAL,CAAL,IAAgB,KAAK,CAAL,CAAhB;AACD,EAAA;AACF,EAAA;AACD,EAAA,eAAO,IAAP;AACD,EAAA,OAZD,MAYO;AACL,EAAA,eAAO,QAAQ,MAAR,CAAP;AACD,EAAA;AACF,EAAA,KAjM2B;AAkM5B,EAAA,SAAK,SAAS,GAAT,CAAa,GAAb,EAAkB,KAAlB,EAAyB,OAAzB,EAAkC;AACrC,EAAA,UAAI,SAAS,IAAb;;AAEA,EAAA,kBAAY,UAAU,EAAtB;;AAEA,EAAA,UAAI,iBAAiB,oBAAoB,OAApB,GAA8B,CAAC,CAAC,QAAQ,cAAxC,GAAyD,KAAK,gBAAnF;AACA,EAAA,UAAI,gBAAgB,mBAAmB,OAAnB,GAA6B,CAAC,CAAC,QAAQ,aAAvC,GAAuD,KAAK,eAAhF;;AAEA,EAAA,UAAI,aAAa,SAAS,UAAT,CAAoB,KAApB,EAA2B,OAA3B,EAAoC;AACnD,EAAA,eAAO,UAAU,CAAV,EAAa;AAClB,EAAA,cAAI,KAAJ,EAAW;AACT,EAAA,mBAAO,WAAW,GAAX,CAAP;AACA,EAAA,gBAAI,MAAM,QAAN,CAAe,CAAf,KAAqB,YAAY,CAAjC,IAAsC,UAAU,CAApD,EAAuD;AACrD,EAAA,kBAAI,CAAC,EAAE,MAAH,EAAW,EAAE,IAAb,EAAmB,EAAE,OAAF,EAAnB,EAAgC,EAAE,UAAlC,CAAJ;AACA,EAAA,qBAAO,GAAP,CAAW,GAAX,EAAgB,CAAhB;AACD,EAAA,aAHD,MAGO;AACL,EAAA,qBAAO,GAAP,CAAW,GAAX,EAAgB,CAAhB;AACD,EAAA;AACF,EAAA;AACD,EAAA,cAAI,OAAJ,EAAa;AACX,EAAA,gBAAI,MAAM,OAAV,EAAmB;AACjB,EAAA,qBAAO,MAAM,OAAN,CAAc,MAAd,CAAqB,CAArB,CAAP;AACD,EAAA,aAFD,MAEO;AACL,EAAA,oBAAM,CAAN;AACD,EAAA;AACF,EAAA,WAND,MAMO;AACL,EAAA,mBAAO,CAAP;AACD,EAAA;AACF,EAAA,SAnBD;AAoBD,EAAA,OArBD;;AAuBA,EAAA,UAAI,KAAK,UAAL,IAAmB,CAAC,MAAM,QAAN,CAAe,MAAf,CAApB,IAA8C,UAAU,IAAxD,IAAgE,UAAU,SAA9E,EAAyF;AACvF,EAAA;AACD,EAAA;AACD,EAAA,YAAM,iBAAiB,GAAjB,CAAN;;AAEA,EAAA,UAAI,CAAC,MAAM,QAAN,CAAe,GAAf,CAAL,EAA0B;AACxB,EAAA,cAAM,IAAI,KAAJ,CAAU,uBAAV,CAAN;AACD,EAAA;;AAED,EAAA,UAAI,MAAM,IAAI,IAAJ,GAAW,OAAX,EAAV;AACA,EAAA,UAAI,OAAO;AACT,EAAA,aAAK,GADI;AAET,EAAA,eAAO,eAAe,KAAf,IAAwB,MAAM,IAAN,CAAW,WAAW,cAAX,EAA2B,KAA3B,CAAX,EAA8C,WAAW,aAAX,EAA0B,IAA1B,CAA9C,CAAxB,GAAyG,KAFvG;AAGT,EAAA,iBAAS,QAAQ,OAAR,KAAoB,SAApB,GAAgC,GAAhC,GAAsC,QAAQ,OAH9C;AAIT,EAAA,kBAAU,QAAQ,QAAR,KAAqB,SAArB,GAAiC,GAAjC,GAAuC,QAAQ;AAJhD,EAAA,OAAX;AAMA,EAAA,UAAI,QAAQ,MAAZ,EAAoB;AAClB,EAAA,aAAK,MAAL,GAAc,QAAQ,MAAtB;AACD,EAAA;;AAED,EAAA,UAAI,QAAQ,OAAR,KAAoB,SAAxB,EAAmC;AACjC,EAAA,aAAK,OAAL,GAAe,KAAK,OAAL,IAAgB,KAAK,MAAL,IAAe,KAAK,QAApC,CAAf;AACD,EAAA,OAFD,MAEO;AACL,EAAA,aAAK,OAAL,GAAe,QAAQ,OAAvB;AACD,EAAA;;AAED,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,YAAI,eAAe,KAAK,KAApB,CAAJ,EAAgC;AAC9B,EAAA,qBAAW,GAAX,IAAkB,KAAK,KAAvB;AACA,EAAA,iBAAO,WAAW,GAAX,CAAP;AACD,EAAA;AACD,EAAA,YAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,CAAf;AACA,EAAA,YAAI,OAAO,WAAW,MAAM,QAAN,CAAe,QAAf,CAAX,GAAsC,EAAjD;AACA,EAAA,YAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAA/C,CAAf;;;AAGA,EAAA,YAAI,QAAJ,EAAc;AACZ,EAAA,eAAK,MAAL,CAAY,GAAZ;AACD,EAAA;;AAED,EAAA,sBAAc,IAAd,CAAmB;AACjB,EAAA,eAAK,GADY;AAEjB,EAAA,mBAAS,KAAK;AAFG,EAAA,SAAnB;;AAKA,EAAA,kBAAU,IAAV,CAAe;AACb,EAAA,eAAK,GADQ;AAEb,EAAA,oBAAU,KAAK;AAFF,EAAA,SAAf;;AAKA,EAAA,oBAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAA/C,EAAoD,KAAK,SAAL,CAAe,IAAf,CAApD;AACA,EAAA,YAAI,SAAS,KAAb;AACA,EAAA,aAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,KAAK,MAAzB,EAAiC,GAAjC,EAAsC;AACpC,EAAA,cAAI,KAAK,CAAL,MAAY,GAAhB,EAAqB;AACnB,EAAA,qBAAS,IAAT;AACA,EAAA;AACD,EAAA;AACF,EAAA;AACD,EAAA,YAAI,CAAC,MAAL,EAAa;AACX,EAAA,eAAK,IAAL,CAAU,GAAV;AACD,EAAA;AACD,EAAA,oBAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,EAA6C,KAAK,SAAL,CAAe,IAAf,CAA7C;AACD,EAAA,OApCD,MAoCO;;AAEL,EAAA,YAAI,OAAO,GAAP,CAAJ,EAAiB;AACf,EAAA,eAAK,MAAL,CAAY,GAAZ;AACD,EAAA;;AAED,EAAA,sBAAc,IAAd,CAAmB,IAAnB;;AAEA,EAAA,kBAAU,IAAV,CAAe,IAAf;;AAEA,EAAA,eAAO,GAAP,IAAc,IAAd;AACA,EAAA,eAAO,WAAW,GAAX,CAAP;AACD,EAAA;;;AAGD,EAAA,UAAI,UAAU,IAAV,KAAmB,KAAK,UAA5B,EAAwC;AACtC,EAAA,aAAK,MAAL,CAAY,UAAU,IAAV,GAAiB,GAA7B;AACD,EAAA;;AAED,EAAA,aAAO,KAAP;AACD,EAAA,KAnT2B;AAoT5B,EAAA,YAAQ,SAAS,MAAT,CAAgB,GAAhB,EAAqB;AAC3B,EAAA,aAAO,EAAP;AACA,EAAA,aAAO,WAAW,GAAX,CAAP;AACA,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,YAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAA/C,CAAf;;AAEA,EAAA,YAAI,QAAJ,EAAc;AACZ,EAAA,cAAI,OAAO,MAAM,QAAN,CAAe,QAAf,CAAX;AACA,EAAA,oBAAU,MAAV,CAAiB;AACf,EAAA,iBAAK,GADU;AAEf,EAAA,sBAAU,KAAK;AAFA,EAAA,WAAjB;AAIA,EAAA,wBAAc,MAAd,CAAqB;AACnB,EAAA,iBAAK,GADc;AAEnB,EAAA,qBAAS,KAAK;AAFK,EAAA,WAArB;AAIA,EAAA,sBAAY,UAAZ,CAAuB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAAlD;AACA,EAAA,cAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,CAAf;AACA,EAAA,cAAI,OAAO,WAAW,MAAM,QAAN,CAAe,QAAf,CAAX,GAAsC,EAAjD;AACA,EAAA,cAAI,QAAQ,KAAK,OAAL,CAAa,GAAb,CAAZ;;AAEA,EAAA,cAAI,SAAS,CAAb,EAAgB;AACd,EAAA,iBAAK,MAAL,CAAY,KAAZ,EAAmB,CAAnB;AACD,EAAA;AACD,EAAA,sBAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,EAA6C,KAAK,SAAL,CAAe,IAAf,CAA7C;AACA,EAAA,iBAAO,KAAK,KAAZ;AACD,EAAA;AACF,EAAA,OAxBD,MAwBO,IAAI,MAAM,QAAN,CAAe,MAAf,CAAJ,EAA4B;AACjC,EAAA,YAAI,QAAQ,OAAO,GAAP,IAAc,OAAO,GAAP,EAAY,KAA1B,GAAkC,SAA9C;AACA,EAAA,kBAAU,MAAV,CAAiB,OAAO,GAAP,CAAjB;AACA,EAAA,sBAAc,MAAd,CAAqB,OAAO,GAAP,CAArB;AACA,EAAA,eAAO,GAAP,IAAc,IAAd;AACA,EAAA,eAAO,OAAO,GAAP,CAAP;AACA,EAAA,eAAO,KAAP;AACD,EAAA;AACF,EAAA,KAvV2B;AAwV5B,EAAA,eAAW,SAAS,SAAT,GAAqB;AAC9B,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,kBAAU,SAAV;AACA,EAAA,sBAAc,SAAd;AACA,EAAA,YAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,CAAf;;AAEA,EAAA,YAAI,QAAJ,EAAc;AACZ,EAAA,cAAI,OAAO,MAAM,QAAN,CAAe,QAAf,CAAX;;AAEA,EAAA,eAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,KAAK,MAAzB,EAAiC,GAAjC,EAAsC;AACpC,EAAA,iBAAK,MAAL,CAAY,KAAK,CAAL,CAAZ;AACD,EAAA;AACF,EAAA;AACD,EAAA,oBAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,EAA6C,KAAK,SAAL,CAAe,EAAf,CAA7C;AACD,EAAA,OAbD,MAaO,IAAI,MAAM,QAAN,CAAe,MAAf,CAAJ,EAA4B;AACjC,EAAA,kBAAU,SAAV;AACA,EAAA,sBAAc,SAAd;AACA,EAAA,aAAK,IAAI,GAAT,IAAgB,MAAhB,EAAwB;AACtB,EAAA,iBAAO,GAAP,IAAc,IAAd;AACD,EAAA;AACD,EAAA,iBAAS,EAAT;AACD,EAAA,OAPM,MAOA;AACL,EAAA,kBAAU,SAAV;AACA,EAAA,sBAAc,SAAd;AACA,EAAA,iBAAS,EAAT;AACD,EAAA;AACD,EAAA,mBAAa,EAAb;AACD,EAAA,KAnX2B;AAoX5B,EAAA,mBAAe,SAAS,aAAT,GAAyB;AACtC,EAAA,UAAI,MAAM,IAAI,IAAJ,GAAW,OAAX,EAAV;AACA,EAAA,UAAI,UAAU,EAAd;AACA,EAAA,UAAI,MAAM,KAAK,CAAf;AACA,EAAA,UAAI,cAAc,KAAK,CAAvB;;AAEA,EAAA,aAAO,CAAC,cAAc,cAAc,IAAd,EAAf,KAAwC,YAAY,OAAZ,IAAuB,GAAtE,EAA2E;AACzE,EAAA,gBAAQ,YAAY,GAApB,IAA2B,YAAY,KAAZ,GAAoB,YAAY,KAAhC,GAAwC,IAAnE;AACA,EAAA,sBAAc,GAAd;AACD,EAAA;;AAED,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,aAAK,GAAL,IAAY,OAAZ,EAAqB;AACnB,EAAA,cAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAA/C,CAAf;AACA,EAAA,cAAI,QAAJ,EAAc;AACZ,EAAA,oBAAQ,GAAR,IAAe,MAAM,QAAN,CAAe,QAAf,EAAyB,KAAxC;AACA,EAAA,iBAAK,MAAL,CAAY,GAAZ;AACD,EAAA;AACF,EAAA;AACF,EAAA,OARD,MAQO;AACL,EAAA,aAAK,GAAL,IAAY,OAAZ,EAAqB;AACnB,EAAA,eAAK,MAAL,CAAY,GAAZ;AACD,EAAA;AACF,EAAA;;AAED,EAAA,UAAI,KAAK,UAAT,EAAqB;AACnB,EAAA,aAAK,GAAL,IAAY,OAAZ,EAAqB;AACnB,EAAA,eAAK,UAAL,CAAgB,GAAhB,EAAqB,QAAQ,GAAR,CAArB;AACD,EAAA;AACF,EAAA;;AAED,EAAA,aAAO,OAAP;AACD,EAAA,KApZ2B;AAqZ5B,EAAA,2BAAuB,SAAS,qBAAT,CAA+B,kBAA/B,EAAmD;AACxE,EAAA,UAAI,QAAQ,IAAZ;AACA,EAAA,UAAI,uBAAuB,IAA3B,EAAiC;AAC/B,EAAA,eAAO,MAAM,oBAAb;AACD,EAAA,OAFD,MAEO,IAAI,CAAC,MAAM,QAAN,CAAe,kBAAf,CAAL,EAAyC;AAC9C,EAAA,cAAM,IAAI,KAAJ,CAAU,sCAAV,CAAN;AACD,EAAA,OAFM,MAEA,IAAI,qBAAqB,CAAzB,EAA4B;AACjC,EAAA,cAAM,IAAI,KAAJ,CAAU,+CAAV,CAAN;AACD,EAAA,OAFM,MAEA,IAAI,uBAAuB,MAAM,oBAAjC,EAAuD;AAC5D,EAAA,cAAM,oBAAN,GAA6B,kBAA7B;;AAEA,EAAA,sBAAc,MAAM,sBAApB;;AAEA,EAAA,cAAM,sBAAN,GAA+B,YAAY,YAAY;AACrD,EAAA,gBAAM,SAAN;AACD,EAAA,SAF8B,EAE5B,MAAM,oBAFsB,CAA/B;AAGD,EAAA;AACF,EAAA,KAta2B;AAua5B,EAAA,iBAAa,SAAS,WAAT,CAAqB,QAArB,EAA+B;AAC1C,EAAA,UAAI,aAAa,IAAjB,EAAuB;AACrB,EAAA,eAAO,KAAK,UAAZ;AACD,EAAA,OAFD,MAEO,IAAI,CAAC,MAAM,QAAN,CAAe,QAAf,CAAL,EAA+B;AACpC,EAAA,cAAM,IAAI,KAAJ,CAAU,4BAAV,CAAN;AACD,EAAA,OAFM,MAEA,IAAI,WAAW,CAAf,EAAkB;AACvB,EAAA,cAAM,IAAI,KAAJ,CAAU,qCAAV,CAAN;AACD,EAAA,OAFM,MAEA;AACL,EAAA,aAAK,UAAL,GAAkB,QAAlB;AACD,EAAA;AACD,EAAA,UAAI,UAAU,EAAd;AACA,EAAA,aAAO,UAAU,IAAV,KAAmB,KAAK,UAA/B,EAA2C;AACzC,EAAA,gBAAQ,UAAU,IAAV,GAAiB,GAAzB,IAAgC,KAAK,MAAL,CAAY,UAAU,IAAV,GAAiB,GAA7B,CAAhC;AACD,EAAA;AACD,EAAA,aAAO,OAAP;AACD,EAAA,KAtb2B;AAub5B,EAAA,uBAAmB,SAAS,iBAAT,CAA2B,cAA3B,EAA2C,cAA3C,EAA2D;AAC5E,EAAA,UAAI,mBAAmB,IAAvB,EAA6B;AAC3B,EAAA,eAAO,KAAK,gBAAZ;AACD,EAAA,OAFD,MAEO,IAAI,CAAC,MAAM,QAAN,CAAe,cAAf,CAAL,EAAqC;AAC1C,EAAA,cAAM,IAAI,KAAJ,CAAU,kCAAV,CAAN;AACD,EAAA,OAFM,MAEA,IAAI,mBAAmB,MAAnB,IAA6B,mBAAmB,SAAhD,IAA6D,mBAAmB,YAApF,EAAkG;AACvG,EAAA,cAAM,IAAI,KAAJ,CAAU,2DAAV,CAAN;AACD,EAAA,OAFM,MAEA;AACL,EAAA,aAAK,gBAAL,GAAwB,cAAxB;AACD,EAAA;AACD,EAAA,UAAI,mBAAmB,KAAvB,EAA8B;AAC5B,EAAA,aAAK,cAAL,CAAoB,KAAK,aAAzB;AACD,EAAA;AACF,EAAA,KApc2B;AAqc5B,EAAA,eAAW,SAAS,SAAT,CAAmB,MAAnB,EAA2B;AACpC,EAAA,UAAI,WAAW,IAAf,EAAqB;AACnB,EAAA,aAAK,QAAL,GAAgB,OAAO,SAAvB;AACD,EAAA,OAFD,MAEO,IAAI,CAAC,MAAM,QAAN,CAAe,MAAf,CAAL,EAA6B;AAClC,EAAA,cAAM,IAAI,KAAJ,CAAU,0BAAV,CAAN;AACD,EAAA,OAFM,MAEA,IAAI,SAAS,CAAb,EAAgB;AACrB,EAAA,cAAM,IAAI,KAAJ,CAAU,mCAAV,CAAN;AACD,EAAA,OAFM,MAEA;AACL,EAAA,aAAK,QAAL,GAAgB,MAAhB;AACD,EAAA;AACD,EAAA,UAAI,IAAI,KAAK,CAAb;YACI,OAAO,KAAK,CADhB;YAEI,MAAM,KAAK,CAFf;;AAIA,EAAA,oBAAc,SAAd;;AAEA,EAAA,UAAI,SAAJ,EAAe;AACb,EAAA,YAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,OAApC,CAAf;;AAEA,EAAA,eAAO,WAAW,MAAM,QAAN,CAAe,QAAf,CAAX,GAAsC,EAA7C;;AAEA,EAAA,aAAK,IAAI,CAAT,EAAY,IAAI,KAAK,MAArB,EAA6B,GAA7B,EAAkC;AAChC,EAAA,gBAAM,KAAK,CAAL,CAAN;AACA,EAAA,cAAI,WAAW,YAAY,OAAZ,CAAoB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,GAA/C,CAAf;;AAEA,EAAA,cAAI,QAAJ,EAAc;AACZ,EAAA,gBAAI,OAAO,MAAM,QAAN,CAAe,QAAf,CAAX;AACA,EAAA,gBAAI,KAAK,QAAL,KAAkB,OAAO,SAA7B,EAAwC;AACtC,EAAA,mBAAK,OAAL,GAAe,OAAO,SAAtB;AACD,EAAA,aAFD,MAEO;AACL,EAAA,mBAAK,OAAL,GAAe,KAAK,OAAL,IAAgB,KAAK,MAAL,IAAe,KAAK,QAApC,CAAf;AACD,EAAA;AACD,EAAA,0BAAc,IAAd,CAAmB;AACjB,EAAA,mBAAK,GADY;AAEjB,EAAA,uBAAS,KAAK;AAFG,EAAA,aAAnB;AAID,EAAA;AACF,EAAA;AACF,EAAA,OAtBD,MAsBO;AACL,EAAA,eAAO,MAAM,MAAN,CAAP;;AAEA,EAAA,aAAK,IAAI,CAAT,EAAY,IAAI,KAAK,MAArB,EAA6B,GAA7B,EAAkC;AAChC,EAAA,gBAAM,KAAK,CAAL,CAAN;AACA,EAAA,cAAI,KAAK,QAAL,KAAkB,OAAO,SAA7B,EAAwC;AACtC,EAAA,mBAAO,GAAP,EAAY,OAAZ,GAAsB,OAAO,SAA7B;AACD,EAAA,WAFD,MAEO;AACL,EAAA,mBAAO,GAAP,EAAY,OAAZ,GAAsB,OAAO,GAAP,EAAY,OAAZ,IAAuB,OAAO,GAAP,EAAY,MAAZ,IAAsB,KAAK,QAAlD,CAAtB;AACD,EAAA;AACD,EAAA,wBAAc,IAAd,CAAmB,OAAO,GAAP,CAAnB;AACD,EAAA;AACF,EAAA;AACD,EAAA,UAAI,KAAK,gBAAL,KAA0B,YAA9B,EAA4C;AAC1C,EAAA,eAAO,KAAK,aAAL,EAAP;AACD,EAAA,OAFD,MAEO;AACL,EAAA,eAAO,EAAP;AACD,EAAA;AACF,EAAA,KA7f2B;AA8f5B,EAAA,iBAAa,SAAS,WAAT,CAAqB,QAArB,EAA+B;AAC1C,EAAA,UAAI,aAAa,IAAjB,EAAuB;AACrB,EAAA,eAAO,KAAK,UAAZ;AACD,EAAA,OAFD,MAEO,IAAI,CAAC,MAAM,UAAN,CAAiB,QAAjB,CAAL,EAAiC;AACtC,EAAA,cAAM,IAAI,KAAJ,CAAU,8BAAV,CAAN;AACD,EAAA,OAFM,MAEA;AACL,EAAA,aAAK,UAAL,GAAkB,QAAlB;AACD,EAAA;AACF,EAAA,KAtgB2B;AAugB5B,EAAA,gBAAY,SAAS,UAAT,CAAoB,YAApB,EAAkC,MAAlC,EAA0C;AACpD,EAAA,qBAAe,gBAAgB,EAA/B;AACA,EAAA,eAAS,CAAC,CAAC,MAAX;AACA,EAAA,UAAI,CAAC,MAAM,QAAN,CAAe,YAAf,CAAL,EAAmC;AACjC,EAAA,cAAM,IAAI,KAAJ,CAAU,iCAAV,CAAN;AACD,EAAA;;AAED,EAAA,UAAI,mBAAmB,YAAvB,EAAqC;AACnC,EAAA,aAAK,eAAL,GAAuB,aAAa,aAApC;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,eAAL,GAAuB,SAAS,aAAhC;AACD,EAAA;;AAED,EAAA,WAAK,QAAL,GAAgB,KAAK,eAAL,GAAuB,KAAK,IAA5C;;AAEA,EAAA,UAAI,cAAc,YAAlB,EAAgC;AAC9B,EAAA,aAAK,UAAL,GAAkB,CAAC,CAAC,aAAa,QAAjC;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,UAAL,GAAkB,SAAS,QAA3B;AACD,EAAA;;AAED,EAAA,UAAI,oBAAoB,YAAxB,EAAsC;AACpC,EAAA,aAAK,iBAAL,CAAuB,aAAa,cAApC,EAAoD,KAApD;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,iBAAL,CAAuB,SAAS,cAAhC,EAAgD,KAAhD;AACD,EAAA;;AAED,EAAA,UAAI,iBAAiB,YAArB,EAAmC;AACjC,EAAA,aAAK,cAAL,CAAoB,aAAa,WAAjC;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,cAAL,CAAoB,SAAS,WAA7B;AACD,EAAA;;AAED,EAAA,UAAI,YAAY,YAAhB,EAA8B;AAC5B,EAAA,aAAK,SAAL,CAAe,aAAa,MAA5B;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,SAAL,CAAe,SAAS,MAAxB;AACD,EAAA;;AAED,EAAA,UAAI,oBAAoB,YAAxB,EAAsC;AACpC,EAAA,aAAK,gBAAL,GAAwB,CAAC,CAAC,aAAa,cAAvC;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,gBAAL,GAAwB,SAAS,cAAjC;AACD,EAAA;;AAED,EAAA,UAAI,mBAAmB,YAAvB,EAAqC;AACnC,EAAA,aAAK,eAAL,GAAuB,CAAC,CAAC,aAAa,aAAtC;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,eAAL,GAAuB,SAAS,aAAhC;AACD,EAAA;;AAED,EAAA,UAAI,cAAc,YAAlB,EAAgC;AAC9B,EAAA,aAAK,WAAL,CAAiB,aAAa,QAA9B;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,WAAL,CAAiB,SAAS,QAA1B;AACD,EAAA;;AAED,EAAA,UAAI,wBAAwB,YAA5B,EAA0C;AACxC,EAAA,aAAK,qBAAL,CAA2B,aAAa,kBAAxC;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,qBAAL,CAA2B,SAAS,kBAApC;AACD,EAAA;;AAED,EAAA,UAAI,cAAc,YAAlB,EAAgC;AAC9B,EAAA,aAAK,WAAL,CAAiB,aAAa,QAA9B;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,WAAL,CAAiB,SAAS,QAA1B;AACD,EAAA;;AAED,EAAA,UAAI,iBAAiB,YAAjB,IAAiC,iBAAiB,YAAtD,EAAoE;AAClE,EAAA,aAAK,cAAL,CAAoB,aAAa,WAAb,IAA4B,SAAS,WAAzD,EAAsE,aAAa,WAAb,IAA4B,SAAS,WAA3G;AACD,EAAA,OAFD,MAEO,IAAI,MAAJ,EAAY;AACjB,EAAA,aAAK,cAAL,CAAoB,SAAS,WAA7B,EAA0C,SAAS,WAAnD;AACD,EAAA;AACF,EAAA,KAjlB2B;AAklB5B,EAAA,oBAAgB,SAAS,cAAT,CAAwB,WAAxB,EAAqC;AACnD,EAAA,UAAI,gBAAgB,IAApB,EAA0B;AACxB,EAAA,eAAO,KAAK,aAAZ;AACD,EAAA,OAFD,MAEO,IAAI,CAAC,MAAM,QAAN,CAAe,WAAf,CAAL,EAAkC;AACvC,EAAA,cAAM,IAAI,KAAJ,CAAU,+BAAV,CAAN;AACD,EAAA,OAFM,MAEA,IAAI,cAAc,CAAlB,EAAqB;AAC1B,EAAA,cAAM,IAAI,KAAJ,CAAU,wCAAV,CAAN;AACD,EAAA,OAFM,MAEA;AACL,EAAA,aAAK,aAAL,GAAqB,WAArB;AACD,EAAA;AACD,EAAA,oBAAc,KAAK,eAAnB;AACA,EAAA,UAAI,KAAK,gBAAL,KAA0B,YAA9B,EAA4C;AAC1C,EAAA,SAAC,UAAU,IAAV,EAAgB;AACf,EAAA,eAAK,eAAL,GAAuB,YAAY,YAAY;AAC7C,EAAA,iBAAK,aAAL;AACD,EAAA,WAFsB,EAEpB,KAAK,aAFe,CAAvB;AAGD,EAAA,SAJD,EAIG,IAJH;AAKD,EAAA,OAND,MAMO;AACL,EAAA,eAAO,KAAK,eAAZ;AACD,EAAA;AACF,EAAA,KAtmB2B;AAumB5B,EAAA,oBAAgB,SAAS,cAAT,CAAwB,WAAxB,EAAqC,WAArC,EAAkD;AAChE,EAAA,UAAI,CAAC,MAAM,QAAN,CAAe,WAAf,CAAL,EAAkC;AAChC,EAAA,cAAM,IAAI,KAAJ,CAAU,+BAAV,CAAN;AACD,EAAA,OAFD,MAEO,IAAI,gBAAgB,QAAhB,IAA4B,gBAAgB,cAA5C,IAA8D,gBAAgB,gBAAlF,EAAoG;AACzG,EAAA,cAAM,IAAI,KAAJ,CAAU,mEAAV,CAAN;AACD,EAAA;;AAED,EAAA,UAAI,cAAc,SAAlB;AACA,EAAA,UAAI,WAAW,MAAf;AACA,EAAA,UAAI,iBAAiB,KAArB;AACA,EAAA,UAAI,QAAQ,EAAZ;;AAEA,EAAA,eAAS,IAAT,CAAc,WAAd,EAA2B,QAA3B,EAAqC;AACnC,EAAA,YAAI,OAAO,KAAK,IAAL,EAAX;AACA,EAAA,YAAI,SAAS,KAAK,MAAlB;AACA,EAAA,YAAI,MAAJ,EAAY;AACV,EAAA,cAAI,OAAO,KAAK,CAAhB;AACA,EAAA,cAAI,mBAAmB,MAAM,QAAN,CAAe,QAAf,CAAvB;AACA,EAAA,eAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,MAApB,EAA4B,GAA5B,EAAiC;AAC/B,EAAA,mBAAO,KAAK,CAAL,CAAP;AACA,EAAA,gBAAI,WAAJ,EAAiB;AACf,EAAA,kBAAI,WAAW,cAAc,OAAd,CAAsB,KAAK,QAAL,GAAgB,QAAhB,GAA2B,IAAjD,CAAf;AACA,EAAA,kBAAI,QAAJ,EAAc;AACZ,EAAA,sBAAM,IAAN,IAAc,MAAM,QAAN,CAAe,QAAf,CAAd;AACD,EAAA;AACF,EAAA,aALD,MAKO,IAAI,gBAAJ,EAAsB;AAC3B,EAAA,oBAAM,IAAN,IAAc,SAAS,IAAT,CAAd;AACD,EAAA;AACD,EAAA,iBAAK,MAAL,CAAY,IAAZ;AACD,EAAA;AACD,EAAA,2BAAiB,IAAjB;AACD,EAAA;AACF,EAAA;;AAED,EAAA,UAAI,CAAC,KAAK,cAAV,EAA0B;AACxB,EAAA,aAAK,IAAL,CAAU,IAAV,EAAgB,WAAhB,EAA6B,QAA7B;AACD,EAAA;;AAED,EAAA,WAAK,aAAL,GAAqB,WAArB;;AAEA,EAAA,UAAI,WAAJ,EAAiB;AACf,EAAA,YAAI,CAAC,MAAM,QAAN,CAAe,WAAf,CAAL,EAAkC;AAChC,EAAA,gBAAM,IAAI,KAAJ,CAAU,gCAAV,CAAN;AACD,EAAA,SAFD,MAEO,IAAI,EAAE,aAAa,WAAf,KAA+B,OAAO,YAAY,OAAnB,KAA+B,UAAlE,EAA8E;AACnF,EAAA,gBAAM,IAAI,KAAJ,CAAU,mDAAV,CAAN;AACD,EAAA,SAFM,MAEA,IAAI,EAAE,aAAa,WAAf,KAA+B,OAAO,YAAY,OAAnB,KAA+B,UAAlE,EAA8E;AACnF,EAAA,gBAAM,IAAI,KAAJ,CAAU,4CAAV,CAAN;AACD,EAAA,SAFM,MAEA,IAAI,EAAE,gBAAgB,WAAlB,KAAkC,OAAO,YAAY,UAAnB,KAAkC,UAAxE,EAAoF;AACzF,EAAA,gBAAM,IAAI,KAAJ,CAAU,+CAAV,CAAN;AACD,EAAA;AACD,EAAA,oBAAY,SAAS,SAAT,GAAqB;AAC/B,EAAA,iBAAO,WAAP;AACD,EAAA,SAFD;AAGD,EAAA,OAbD,MAaO,IAAI,KAAK,aAAL,KAAuB,cAA3B,EAA2C;AAChD,EAAA,YAAI;AACF,EAAA,uBAAa,OAAb,CAAqB,cAArB,EAAqC,cAArC;AACA,EAAA,uBAAa,UAAb,CAAwB,cAAxB;AACA,EAAA,sBAAY,SAAS,SAAT,GAAqB;AAC/B,EAAA,mBAAO,YAAP;AACD,EAAA,WAFD;AAGD,EAAA,SAND,CAME,OAAO,CAAP,EAAU;AACV,EAAA,sBAAY,IAAZ;AACA,EAAA,eAAK,aAAL,GAAqB,QAArB;AACD,EAAA;AACF,EAAA,OAXM,MAWA,IAAI,KAAK,aAAL,KAAuB,gBAA3B,EAA6C;AAClD,EAAA,YAAI;AACF,EAAA,yBAAe,OAAf,CAAuB,cAAvB,EAAuC,cAAvC;AACA,EAAA,yBAAe,UAAf,CAA0B,cAA1B;AACA,EAAA,sBAAY,SAAS,SAAT,GAAqB;AAC/B,EAAA,mBAAO,cAAP;AACD,EAAA,WAFD;AAGD,EAAA,SAND,CAME,OAAO,CAAP,EAAU;AACV,EAAA,sBAAY,IAAZ;AACA,EAAA,eAAK,aAAL,GAAqB,QAArB;AACD,EAAA;AACF,EAAA,OAXM,MAWA;AACL,EAAA,oBAAY,IAAZ;AACA,EAAA,aAAK,aAAL,GAAqB,QAArB;AACD,EAAA;;AAED,EAAA,UAAI,KAAK,cAAT,EAAyB;AACvB,EAAA,aAAK,IAAL,CAAU,IAAV,EAAgB,SAAhB,EAA2B,MAA3B;AACD,EAAA;;AAED,EAAA,UAAI,cAAJ,EAAoB;AAClB,EAAA,YAAI,OAAO,KAAK,CAAhB;AACA,EAAA,aAAK,IAAI,GAAT,IAAgB,KAAhB,EAAuB;AACrB,EAAA,iBAAO,MAAM,GAAN,CAAP;AACA,EAAA,eAAK,GAAL,CAAS,GAAT,EAAc,KAAK,KAAnB,EAA0B;AACxB,EAAA,qBAAS,KAAK,OADU;AAExB,EAAA,sBAAU,KAAK,QAFS;AAGxB,EAAA,qBAAS,KAAK;AAHU,EAAA,WAA1B;AAKD,EAAA;AACF,EAAA;AACF,EAAA,KAtsB2B;AAusB5B,EAAA,WAAO,SAAS,KAAT,CAAe,GAAf,EAAoB,OAApB,EAA6B;AAClC,EAAA,UAAI,SAAS,IAAb;;AAEA,EAAA,UAAI,GAAJ,EAAS;AACP,EAAA,YAAI,MAAM,KAAK,GAAL,CAAS,GAAT,EAAc;AACtB,EAAA,oBAAU,SAAS,QAAT,CAAkB,CAAlB,EAAqB,CAArB,EAAwB;AAChC,EAAA,mBAAO,OAAO,GAAP,CAAW,CAAX,EAAc,CAAd,CAAP;AACD,EAAA;AAHqB,EAAA,SAAd,CAAV;AAKA,EAAA,YAAI,GAAJ,EAAS;AACP,EAAA,eAAK,GAAL,CAAS,GAAT,EAAc,GAAd,EAAmB,OAAnB;AACD,EAAA;AACF,EAAA,OATD,MASO;AACL,EAAA,YAAI,OAAO,KAAK,IAAL,EAAX;AACA,EAAA,aAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,KAAK,MAAzB,EAAiC,GAAjC,EAAsC;AACpC,EAAA,eAAK,KAAL,CAAW,KAAK,CAAL,CAAX,EAAoB,OAApB;AACD,EAAA;AACF,EAAA;AACF,EAAA,KAztB2B;AA0tB5B,EAAA,YAAQ,SAAS,MAAT,GAAkB;AACxB,EAAA,UAAI,OAAO,KAAK,IAAL,EAAX;AACA,EAAA,UAAI,QAAQ,EAAZ;AACA,EAAA,WAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,KAAK,MAAzB,EAAiC,GAAjC,EAAsC;AACpC,EAAA,cAAM,IAAN,CAAW,KAAK,GAAL,CAAS,KAAK,CAAL,CAAT,CAAX;AACD,EAAA;AACD,EAAA,aAAO,KAAP;AACD,EAAA;AAjuB2B,EAAA,GAA9B;;AAouBA,EAAA,QAAM,cAAN,GAAuB,IAAvB;AACA,EAAA,QAAM,UAAN,CAAiB,OAAjB,EAA0B,IAA1B;AACA,EAAA,QAAM,cAAN,GAAuB,KAAvB;;AAEA,EAAA,SAAO,KAAP;AACD,EAAA;;AAED,EAAA,SAAS,YAAT,CAAsB,OAAtB,EAA+B,OAA/B,EAAwC;AACtC,EAAA,SAAO,YAAY,OAAZ,EAAqB,OAArB,CAAP;AACD,EAAA;;AAED,EAAA,aAAa,WAAb,GAA2B,WAA3B;AACA,EAAA,aAAa,QAAb,GAAwB,QAAxB;;AAEA,EAAA,aAAa,IAAb,GAAoB,YAAY;AAC9B,EAAA,MAAI,OAAO,MAAM,MAAN,CAAX;AACA,EAAA,MAAI,OAAO;AACT,EAAA,UAAM,KAAK,MADF;AAET,EAAA,YAAQ;AAFC,EAAA,GAAX;AAIA,EAAA,OAAK,IAAI,GAAT,IAAgB,QAAhB,EAA0B;AACxB,EAAA,QAAI,SAAS,cAAT,CAAwB,GAAxB,CAAJ,EAAkC;AAChC,EAAA,WAAK,GAAL,IAAY,SAAS,GAAT,CAAZ;AACD,EAAA;AACF,EAAA;AACD,EAAA,OAAK,IAAI,IAAI,CAAb,EAAgB,IAAI,KAAK,MAAzB,EAAiC,GAAjC,EAAsC;AACpC,EAAA,QAAI,MAAM,KAAK,CAAL,CAAV;AACA,EAAA,SAAK,MAAL,CAAY,GAAZ,IAAmB,OAAO,GAAP,EAAY,IAAZ,EAAnB;AACD,EAAA;AACD,EAAA,SAAO,IAAP;AACD,EAAA,CAhBD;;AAkBA,EAAA,aAAa,GAAb,GAAmB,UAAU,OAAV,EAAmB;AACpC,EAAA,SAAO,OAAO,OAAP,CAAP;AACD,EAAA,CAFD;AAGA,EAAA,aAAa,MAAb,GAAsB,YAAY;AAChC,EAAA,SAAO,QAAQ,MAAR,CAAP;AACD,EAAA,CAFD;AAGA,EAAA,aAAa,IAAb,GAAoB,YAAY;AAC9B,EAAA,SAAO,MAAM,MAAN,CAAP;AACD,EAAA,CAFD;AAGA,EAAA,aAAa,OAAb,GAAuB,UAAU,OAAV,EAAmB;AACxC,EAAA,MAAI,OAAO,OAAP,CAAJ,EAAqB;AACnB,EAAA,WAAO,OAAP,EAAgB,OAAhB;AACA,EAAA,WAAO,OAAO,OAAP,CAAP;AACD,EAAA;AACF,EAAA,CALD;AAMA,EAAA,aAAa,UAAb,GAA0B,YAAY;AACpC,EAAA,OAAK,IAAI,OAAT,IAAoB,MAApB,EAA4B;AAC1B,EAAA,WAAO,OAAP,EAAgB,OAAhB;AACD,EAAA;AACD,EAAA,WAAS,EAAT;AACD,EAAA,CALD;AAMA,EAAA,aAAa,QAAb,GAAwB,YAAY;AAClC,EAAA,OAAK,IAAI,OAAT,IAAoB,MAApB,EAA4B;AAC1B,EAAA,WAAO,OAAP,EAAgB,SAAhB;AACD,EAAA;AACF,EAAA,CAJD;AAKA,EAAA,aAAa,oBAAb,GAAoC,YAAY;AAC9C,EAAA,MAAI,UAAU,EAAd;AACA,EAAA,OAAK,IAAI,OAAT,IAAoB,MAApB,EAA4B;AAC1B,EAAA,YAAQ,OAAR,IAAmB,OAAO,OAAP,EAAgB,aAAhB,EAAnB;AACD,EAAA;AACD,EAAA,SAAO,OAAP;AACD,EAAA,CAND;AAOA,EAAA,aAAa,SAAb,GAAyB,YAAY;AACnC,EAAA,OAAK,IAAI,OAAT,IAAoB,MAApB,EAA4B;AAC1B,EAAA,WAAO,OAAP,EAAgB,UAAhB,GAA6B,KAA7B;AACD,EAAA;AACF,EAAA,CAJD;AAKA,EAAA,aAAa,UAAb,GAA0B,YAAY;AACpC,EAAA,OAAK,IAAI,OAAT,IAAoB,MAApB,EAA4B;AAC1B,EAAA,WAAO,OAAP,EAAgB,UAAhB,GAA6B,IAA7B;AACD,EAAA;AACF,EAAA,CAJD;AAKA,EAAA,aAAa,QAAb,GAAwB,YAAY;AAClC,EAAA,OAAK,IAAI,OAAT,IAAoB,MAApB,EAA4B;AAC1B,EAAA,WAAO,OAAP,EAAgB,KAAhB;AACD,EAAA;AACF,EAAA,CAJD;;AAMA,EAAA,aAAa,KAAb,GAAqB,KAArB;AACA,EAAA,aAAa,UAAb,GAA0B,UAA1B;;EChjCA,aAAa,KAAb,CAAmB,MAAnB,GAA4B,QAAQ,MAApC;AACA,EAAA,aAAa,KAAb,CAAmB,QAAnB,GAA8B,QAAQ,QAAtC;AACA,EAAA,aAAa,KAAb,CAAmB,QAAnB,GAA8B,QAAQ,QAAtC;;AAEA,EAAA,SAAS,kBAAT,GAA+B;AAC7B,EAAA,OAAK,IAAL,GAAY,YAAY;AAAE,EAAA,WAAO,aAAa,UAApB;AAAgC,EAAA,GAA1D;AACD,EAAA;;AAED,EAAA,SAAS,oBAAT,GAAiC;AAC/B,EAAA,OAAK,QAAL,GAAgB,aAAa,QAA7B;AACA,EAAA,OAAK,QAAL,CAAc,aAAd,GAA8B,uBAA9B;;AAEA,EAAA,OAAK,IAAL,GAAY,CAAC,IAAD,EAAO,UAAU,EAAV,EAAc;AAC/B,EAAA,iBAAa,KAAb,CAAmB,OAAnB,GAA6B,EAA7B;AACA,EAAA,WAAO,YAAP;AACD,EAAA,GAHW,CAAZ;AAID,EAAA;;AAED,EAAA,QAAQ,MAAR,CAAe,eAAf,EAAgC,EAAhC,EACG,QADH,CACY,YADZ,EAC0B,kBAD1B,EAEG,QAFH,CAEY,cAFZ,EAE4B,oBAF5B;;AAIA,cAAe,eAAf;;;;"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.min.js b/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.min.js
deleted file mode 100644
index ae78ddcb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t("undefined"==typeof angular?require("angular"):angular):"function"==typeof define&&define.amd?define("angular-cache",["angular"],t):e.angularCacheModuleName=t(e.angular)}(this,function(e){"use strict";function t(e,t){if(e||(e=function(e){return e}),t||(t=function(e,t){return e===t}),"function"!=typeof e)throw new Error('BinaryHeap([weightFunc][, compareFunc]): "weightFunc" must be a function!');if("function"!=typeof t)throw new Error('BinaryHeap([weightFunc][, compareFunc]): "compareFunc" must be a function!');this.weightFunc=e,this.compareFunc=t,this.heap=[]}function r(e){var t=[],r=void 0;if(!d.isObject(e))return t;for(r in e)e.hasOwnProperty(r)&&t.push(r);return t}function i(e){return e&&"function"==typeof e.then}function s(e){return d.isNumber(e)?e.toString():e}function n(e){var t={},r=void 0;if(!d.isObject(e))return t;for(r in e)e.hasOwnProperty(r)&&(t[r]=r);return t}function o(e,o){if(e in g)throw new Error(e+" already exists!");if(!d.isString(e))throw new Error("cacheId must be a string!");var a={},c={},l=null,h=new t(function(e){return e.expires},d.equals),f=new t(function(e){return e.accessed},d.equals),p=g[e]={$$id:e,destroy:function(){clearInterval(this.$$cacheFlushIntervalId),clearInterval(this.$$recycleFreqId),this.removeAll(),l&&(l().removeItem(this.$$prefix+".keys"),l().removeItem(this.$$prefix)),l=null,a=null,f=null,h=null,this.$$prefix=null,delete g[this.$$id]},disable:function(){this.$$disabled=!0},enable:function(){delete this.$$disabled},get:function(e,t){var r=this;if(Array.isArray(e)){var i=function(){var i=e,s=[];return i.forEach(function(e){var i=r.get(e,t);null!==i&&void 0!==i&&s.push(i)}),{v:s}}();if("object"===("undefined"==typeof i?"undefined":u["typeof"](i)))return i.v}else if(e=s(e),this.$$disabled)return;if(t=t||{},!d.isString(e))throw new Error("key must be a string!");if(t&&!d.isObject(t))throw new Error("options must be an object!");if(t.onExpire&&!d.isFunction(t.onExpire))throw new Error("options.onExpire must be a function!");var n=void 0;if(l){if(c[e])return c[e];var o=l().getItem(this.$$prefix+".data."+e);if(!o)return;n=d.fromJson(o)}else if(d.isObject(a)){if(!(e in a))return;n=a[e]}var h=n.value,p=(new Date).getTime();return l?(f.remove({key:e,accessed:n.accessed}),n.accessed=p,f.push({key:e,accessed:p})):(f.remove(n),n.accessed=p,f.push(n)),"passive"===this.$$deleteOnExpire&&"expires"in n&&n.expires<p?(this.remove(e),this.$$onExpire?this.$$onExpire(e,n.value,t.onExpire):t.onExpire&&t.onExpire.call(this,e,n.value),h=void 0):l&&l().setItem(this.$$prefix+".data."+e,JSON.stringify(n)),h},info:function(e){if(e){var t=void 0;if(l){var r=l().getItem(this.$$prefix+".data."+e);return r?(t=d.fromJson(r),{created:t.created,accessed:t.accessed,expires:t.expires,isExpired:(new Date).getTime()-t.created>(t.maxAge||this.$$maxAge)}):void 0}return d.isObject(a)&&e in a?(t=a[e],{created:t.created,accessed:t.accessed,expires:t.expires,isExpired:(new Date).getTime()-t.created>(t.maxAge||this.$$maxAge)}):void 0}return{id:this.$$id,capacity:this.$$capacity,maxAge:this.$$maxAge,deleteOnExpire:this.$$deleteOnExpire,onExpire:this.$$onExpire,cacheFlushInterval:this.$$cacheFlushInterval,recycleFreq:this.$$recycleFreq,storageMode:this.$$storageMode,storageImpl:l?l():void 0,disabled:!!this.$$disabled,size:f&&f.size()||0}},keys:function(){if(l){var e=l().getItem(this.$$prefix+".keys");return e?d.fromJson(e):[]}return r(a)},keySet:function(){if(l){var e=l().getItem(this.$$prefix+".keys"),t={};if(e)for(var r=d.fromJson(e),i=0;i<r.length;i++)t[r[i]]=r[i];return t}return n(a)},put:function(e,t,r){var n=this;r||(r={});var o="storeOnResolve"in r?!!r.storeOnResolve:this.$$storeOnResolve,u="storeOnReject"in r?!!r.storeOnReject:this.$$storeOnReject,p=function(t,r){return function(i){if(t&&(delete c[e],d.isObject(i)&&"status"in i&&"data"in i?(i=[i.status,i.data,i.headers(),i.statusText],n.put(e,i)):n.put(e,i)),r){if(d.Promise)return d.Promise.reject(i);throw i}return i}};if(!this.$$disabled&&d.isObject(a)&&null!==t&&void 0!==t){if(e=s(e),!d.isString(e))throw new Error("key must be a string!");var m=(new Date).getTime(),$={key:e,value:i(t)?t.then(p(o,!1),p(u,!0)):t,created:void 0===r.created?m:r.created,accessed:void 0===r.accessed?m:r.accessed};if(r.maxAge&&($.maxAge=r.maxAge),void 0===r.expires?$.expires=$.created+($.maxAge||this.$$maxAge):$.expires=r.expires,l){if(i($.value))return c[e]=$.value,c[e];var v=l().getItem(this.$$prefix+".keys"),g=v?d.fromJson(v):[],y=l().getItem(this.$$prefix+".data."+e);y&&this.remove(e),h.push({key:e,expires:$.expires}),f.push({key:e,accessed:$.accessed}),l().setItem(this.$$prefix+".data."+e,JSON.stringify($));for(var x=!1,b=0;b<g.length;b++)if(g[b]===e){x=!0;break}x||g.push(e),l().setItem(this.$$prefix+".keys",JSON.stringify(g))}else a[e]&&this.remove(e),h.push($),f.push($),a[e]=$,delete c[e];return f.size()>this.$$capacity&&this.remove(f.peek().key),t}},remove:function(e){if(e+="",delete c[e],l){var t=l().getItem(this.$$prefix+".data."+e);if(t){var r=d.fromJson(t);f.remove({key:e,accessed:r.accessed}),h.remove({key:e,expires:r.expires}),l().removeItem(this.$$prefix+".data."+e);var i=l().getItem(this.$$prefix+".keys"),s=i?d.fromJson(i):[],n=s.indexOf(e);return n>=0&&s.splice(n,1),l().setItem(this.$$prefix+".keys",JSON.stringify(s)),r.value}}else if(d.isObject(a)){var o=a[e]?a[e].value:void 0;return f.remove(a[e]),h.remove(a[e]),a[e]=null,delete a[e],o}},removeAll:function(){if(l){f.removeAll(),h.removeAll();var e=l().getItem(this.$$prefix+".keys");if(e)for(var t=d.fromJson(e),r=0;r<t.length;r++)this.remove(t[r]);l().setItem(this.$$prefix+".keys",JSON.stringify([]))}else if(d.isObject(a)){f.removeAll(),h.removeAll();for(var i in a)a[i]=null;a={}}else f.removeAll(),h.removeAll(),a={};c={}},removeExpired:function(){for(var e=(new Date).getTime(),t={},r=void 0,i=void 0;(i=h.peek())&&i.expires<=e;)t[i.key]=i.value?i.value:null,h.pop();if(l)for(r in t){var s=l().getItem(this.$$prefix+".data."+r);s&&(t[r]=d.fromJson(s).value,this.remove(r))}else for(r in t)this.remove(r);if(this.$$onExpire)for(r in t)this.$$onExpire(r,t[r]);return t},setCacheFlushInterval:function(e){var t=this;if(null===e)delete t.$$cacheFlushInterval;else{if(!d.isNumber(e))throw new Error("cacheFlushInterval must be a number!");if(0>e)throw new Error("cacheFlushInterval must be greater than zero!");e!==t.$$cacheFlushInterval&&(t.$$cacheFlushInterval=e,clearInterval(t.$$cacheFlushIntervalId),t.$$cacheFlushIntervalId=setInterval(function(){t.removeAll()},t.$$cacheFlushInterval))}},setCapacity:function(e){if(null===e)delete this.$$capacity;else{if(!d.isNumber(e))throw new Error("capacity must be a number!");if(0>e)throw new Error("capacity must be greater than zero!");this.$$capacity=e}for(var t={};f.size()>this.$$capacity;)t[f.peek().key]=this.remove(f.peek().key);return t},setDeleteOnExpire:function(e,t){if(null===e)delete this.$$deleteOnExpire;else{if(!d.isString(e))throw new Error("deleteOnExpire must be a string!");if("none"!==e&&"passive"!==e&&"aggressive"!==e)throw new Error('deleteOnExpire must be "none", "passive" or "aggressive"!');this.$$deleteOnExpire=e}t!==!1&&this.setRecycleFreq(this.$$recycleFreq)},setMaxAge:function(e){if(null===e)this.$$maxAge=Number.MAX_VALUE;else{if(!d.isNumber(e))throw new Error("maxAge must be a number!");if(0>e)throw new Error("maxAge must be greater than zero!");this.$$maxAge=e}var t=void 0,i=void 0,s=void 0;if(h.removeAll(),l){var n=l().getItem(this.$$prefix+".keys");for(i=n?d.fromJson(n):[],t=0;t<i.length;t++){s=i[t];var o=l().getItem(this.$$prefix+".data."+s);if(o){var c=d.fromJson(o);this.$$maxAge===Number.MAX_VALUE?c.expires=Number.MAX_VALUE:c.expires=c.created+(c.maxAge||this.$$maxAge),h.push({key:s,expires:c.expires})}}}else for(i=r(a),t=0;t<i.length;t++)s=i[t],this.$$maxAge===Number.MAX_VALUE?a[s].expires=Number.MAX_VALUE:a[s].expires=a[s].created+(a[s].maxAge||this.$$maxAge),h.push(a[s]);return"aggressive"===this.$$deleteOnExpire?this.removeExpired():{}},setOnExpire:function(e){if(null===e)delete this.$$onExpire;else{if(!d.isFunction(e))throw new Error("onExpire must be a function!");this.$$onExpire=e}},setOptions:function(e,t){if(e=e||{},t=!!t,!d.isObject(e))throw new Error("cacheOptions must be an object!");"storagePrefix"in e?this.$$storagePrefix=e.storagePrefix:t&&(this.$$storagePrefix=v.storagePrefix),this.$$prefix=this.$$storagePrefix+this.$$id,"disabled"in e?this.$$disabled=!!e.disabled:t&&(this.$$disabled=v.disabled),"deleteOnExpire"in e?this.setDeleteOnExpire(e.deleteOnExpire,!1):t&&this.setDeleteOnExpire(v.deleteOnExpire,!1),"recycleFreq"in e?this.setRecycleFreq(e.recycleFreq):t&&this.setRecycleFreq(v.recycleFreq),"maxAge"in e?this.setMaxAge(e.maxAge):t&&this.setMaxAge(v.maxAge),"storeOnResolve"in e?this.$$storeOnResolve=!!e.storeOnResolve:t&&(this.$$storeOnResolve=v.storeOnResolve),"storeOnReject"in e?this.$$storeOnReject=!!e.storeOnReject:t&&(this.$$storeOnReject=v.storeOnReject),"capacity"in e?this.setCapacity(e.capacity):t&&this.setCapacity(v.capacity),"cacheFlushInterval"in e?this.setCacheFlushInterval(e.cacheFlushInterval):t&&this.setCacheFlushInterval(v.cacheFlushInterval),"onExpire"in e?this.setOnExpire(e.onExpire):t&&this.setOnExpire(v.onExpire),"storageMode"in e||"storageImpl"in e?this.setStorageMode(e.storageMode||v.storageMode,e.storageImpl||v.storageImpl):t&&this.setStorageMode(v.storageMode,v.storageImpl)},setRecycleFreq:function(e){if(null===e)delete this.$$recycleFreq;else{if(!d.isNumber(e))throw new Error("recycleFreq must be a number!");if(0>e)throw new Error("recycleFreq must be greater than zero!");this.$$recycleFreq=e}clearInterval(this.$$recycleFreqId),"aggressive"===this.$$deleteOnExpire?!function(e){e.$$recycleFreqId=setInterval(function(){e.removeExpired()},e.$$recycleFreq)}(this):delete this.$$recycleFreqId},setStorageMode:function(e,t){function r(e,t){var r=this.keys(),i=r.length;if(i){for(var s=void 0,a=d.isObject(t),c=0;i>c;c++){if(s=r[c],e){var l=e().getItem(this.$$prefix+".data."+s);l&&(o[s]=d.fromJson(l))}else a&&(o[s]=t[s]);this.remove(s)}n=!0}}if(!d.isString(e))throw new Error("storageMode must be a string!");if("memory"!==e&&"localStorage"!==e&&"sessionStorage"!==e)throw new Error('storageMode must be "memory", "localStorage" or "sessionStorage"!');var i=l,s=a,n=!1,o={};if(this.$$initializing||r.call(this,i,s),this.$$storageMode=e,t){if(!d.isObject(t))throw new Error("storageImpl must be an object!");if(!("setItem"in t&&"function"==typeof t.setItem))throw new Error('storageImpl must implement "setItem(key, value)"!');if(!("getItem"in t&&"function"==typeof t.getItem))throw new Error('storageImpl must implement "getItem(key)"!');if(!("removeItem"in t)||"function"!=typeof t.removeItem)throw new Error('storageImpl must implement "removeItem(key)"!');l=function(){return t}}else if("localStorage"===this.$$storageMode)try{localStorage.setItem("cachefactory","cachefactory"),localStorage.removeItem("cachefactory"),l=function(){return localStorage}}catch(c){l=null,this.$$storageMode="memory"}else if("sessionStorage"===this.$$storageMode)try{sessionStorage.setItem("cachefactory","cachefactory"),sessionStorage.removeItem("cachefactory"),l=function(){return sessionStorage}}catch(c){l=null,this.$$storageMode="memory"}else l=null,this.$$storageMode="memory";if(this.$$initializing&&r.call(this,l,a),n){var u=void 0;for(var h in o)u=o[h],this.put(h,u.value,{created:u.created,accessed:u.accessed,expires:u.expires})}},touch:function(e,t){var r=this;if(e){var i=this.get(e,{onExpire:function(e,t){return r.put(e,t)}});i&&this.put(e,i,t)}else for(var s=this.keys(),n=0;n<s.length;n++)this.touch(s[n],t)},values:function(){for(var e=this.keys(),t=[],r=0;r<e.length;r++)t.push(this.get(e[r]));return t}};return p.$$initializing=!0,p.setOptions(o,!0),p.$$initializing=!1,p}function a(e,t){return o(e,t)}function c(){this.$get=function(){return a.BinaryHeap}}function l(){this.defaults=a.defaults,this.defaults.storagePrefix="angular-cache.caches.",this.$get=["$q",function(e){return a.utils.Promise=e,a}]}e="default"in e?e["default"]:e;var u={};u["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var h=function(e,t,r){for(var i=e[r],s=t(i);r>0;){var n=Math.floor((r+1)/2)-1,o=e[n];if(s>=t(o))break;e[n]=i,e[r]=o,r=n}},f=function(e,t,r){for(var i=e.length,s=e[r],n=t(s);;){var o=2*(r+1),a=o-1,c=null;if(i>a){var l=e[a],u=t(l);n>u&&(c=a)}if(i>o){var h=e[o],f=t(h);f<(null===c?n:t(e[a]))&&(c=o)}if(null===c)break;e[r]=e[c],e[c]=s,r=c}},p=t.prototype;p.push=function(e){this.heap.push(e),h(this.heap,this.weightFunc,this.heap.length-1)},p.peek=function(){return this.heap[0]},p.pop=function(){var e=this.heap[0],t=this.heap.pop();return this.heap.length>0&&(this.heap[0]=t,f(this.heap,this.weightFunc,0)),e},p.remove=function(e){for(var t=this.heap.length,r=0;t>r;r++)if(this.compareFunc(this.heap[r],e)){var i=this.heap[r],s=this.heap.pop();return r!==t-1&&(this.heap[r]=s,h(this.heap,this.weightFunc,r),f(this.heap,this.weightFunc,r)),i}return null},p.removeAll=function(){this.heap=[]},p.size=function(){return this.heap.length};var m=null;try{m=window.Promise}catch($){}var d={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isObject:function(e){return null!==e&&"object"===("undefined"==typeof e?"undefined":u["typeof"](e))},isFunction:function(e){return"function"==typeof e},fromJson:function(e){return JSON.parse(e)},equals:function(e,t){return e===t},Promise:m},v={capacity:Number.MAX_VALUE,maxAge:Number.MAX_VALUE,deleteOnExpire:"none",onExpire:null,cacheFlushInterval:null,recycleFreq:1e3,storageMode:"memory",storageImpl:null,disabled:!1,storagePrefix:"cachefactory.caches.",storeOnResolve:!1,storeOnReject:!1},g={};a.createCache=o,a.defaults=v,a.info=function(){var e=r(g),t={size:e.length,caches:{}};for(var i in v)v.hasOwnProperty(i)&&(t[i]=v[i]);for(var s=0;s<e.length;s++){var n=e[s];t.caches[n]=g[n].info()}return t},a.get=function(e){return g[e]},a.keySet=function(){return n(g)},a.keys=function(){return r(g)},a.destroy=function(e){g[e]&&(g[e].destroy(),delete g[e])},a.destroyAll=function(){for(var e in g)g[e].destroy();g={}},a.clearAll=function(){for(var e in g)g[e].removeAll()},a.removeExpiredFromAll=function(){var e={};for(var t in g)e[t]=g[t].removeExpired();return e},a.enableAll=function(){for(var e in g)g[e].$$disabled=!1},a.disableAll=function(){for(var e in g)g[e].$$disabled=!0},a.touchAll=function(){for(var e in g)g[e].touch()},a.utils=d,a.BinaryHeap=t,a.utils.equals=e.equals,a.utils.isObject=e.isObject,a.utils.fromJson=e.fromJson,e.module("angular-cache",[]).provider("BinaryHeap",c).provider("CacheFactory",l);var y="angular-cache";return y});
-//# sourceMappingURL=angular-cache.min.map \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.min.map b/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.min.map
deleted file mode 100644
index cba11d79..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/dist/angular-cache.min.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["dist/angular-cache.js"],"names":["global","factory","exports","module","angular","require","define","amd","angularCacheModuleName","this","BinaryHeap","weightFunc","compareFunc","x","y","Error","heap","_keys","collection","keys","key","utils","isObject","hasOwnProperty","push","_isPromiseLike","value","then","_stringifyNumber","number","isNumber","toString","_keySet","keySet","createCache","cacheId","options","caches","isString","$$data","$$promises","$$storage","$$expiresHeap","expires","equals","$$lruHeap","accessed","cache","$$id","destroy","clearInterval","$$cacheFlushIntervalId","$$recycleFreqId","removeAll","removeItem","$$prefix","disable","$$disabled","enable","get","_this2","Array","isArray","_ret","values","forEach","undefined","v","babelHelpers","onExpire","isFunction","item","itemJson","getItem","fromJson","now","Date","getTime","remove","$$deleteOnExpire","$$onExpire","call","setItem","JSON","stringify","info","created","isExpired","maxAge","$$maxAge","id","capacity","$$capacity","deleteOnExpire","cacheFlushInterval","$$cacheFlushInterval","recycleFreq","$$recycleFreq","storageMode","$$storageMode","storageImpl","disabled","size","keysJson","kSet","i","length","put","_this3","storeOnResolve","$$storeOnResolve","storeOnReject","$$storeOnReject","getHandler","store","isError","status","data","headers","statusText","Promise","reject","exists","peek","index","indexOf","splice","removeExpired","expired","expiredItem","pop","setCacheFlushInterval","_this","setInterval","setCapacity","removed","setDeleteOnExpire","setRecycleFreq","setMaxAge","Number","MAX_VALUE","setOnExpire","setOptions","cacheOptions","strict","$$storagePrefix","storagePrefix","defaults","setStorageMode","self","load","prevStorage","prevData","_key","prevDataIsObject","items","shouldReInsert","$$initializing","localStorage","e","sessionStorage","touch","_this4","val","k","CacheFactory","BinaryHeapProvider","$get","CacheFactoryProvider","$q","Symbol","iterator","obj","constructor","bubbleUp","n","element","weight","parentN","Math","floor","parent","bubbleDown","node","nodeWeight","child2N","child1N","swap","child1","child1Weight","child2","child2Weight","BHProto","prototype","front","end","_Promise","window","parse","a","b","opt","destroyAll","clearAll","removeExpiredFromAll","enableAll","disableAll","touchAll","provider"],"mappings":"CAOC,SAAUA,EAAQC,GACE,gBAAZC,UAA0C,mBAAXC,QAAyBA,OAAOD,QAAUD,EAA2B,mBAAZG,SAA0BC,QAAQ,WAAaD,SAC5H,kBAAXE,SAAyBA,OAAOC,IAAMD,OAAO,iBAAkB,WAAYL,GACjFD,EAAOQ,uBAAyBP,EAAQD,EAAOI,UAChDK,KAAM,SAAUL,GAAW,YA+E3B,SAASM,GAAWC,EAAYC,GAW9B,GAVKD,IACHA,EAAa,SAAoBE,GAC/B,MAAOA,KAGND,IACHA,EAAc,SAAqBC,EAAGC,GACpC,MAAOD,KAAMC,IAGS,kBAAfH,GACT,KAAM,IAAII,OAAM,4EAElB,IAA2B,kBAAhBH,GACT,KAAM,IAAIG,OAAM,6EAElBN,MAAKE,WAAaA,EAClBF,KAAKG,YAAcA,EACnBH,KAAKO,QA6EP,QAASC,GAAMC,GACb,GAAIC,MACAC,EAAM,MACV,KAAKC,EAAMC,SAASJ,GAClB,MAAOC,EAET,KAAKC,IAAOF,GACNA,EAAWK,eAAeH,IAC5BD,EAAKK,KAAKJ,EAGd,OAAOD,GAGT,QAASM,GAAeC,GACtB,MAAOA,IAA+B,kBAAfA,GAAMC,KAG/B,QAASC,GAAiBC,GACxB,MAAIR,GAAMS,SAASD,GACVA,EAAOE,WAETF,EAGT,QAASG,GAAQd,GACf,GAAIe,MACAb,EAAM,MACV,KAAKC,EAAMC,SAASJ,GAClB,MAAOe,EAET,KAAKb,IAAOF,GACNA,EAAWK,eAAeH,KAC5Ba,EAAOb,GAAOA,EAGlB,OAAOa,GAoBT,QAASC,GAAYC,EAASC,GAC5B,GAAID,IAAWE,GACb,KAAM,IAAItB,OAAMoB,EAAU,mBACrB,KAAKd,EAAMiB,SAASH,GACzB,KAAM,IAAIpB,OAAM,4BAGlB,IAAIwB,MACAC,KACAC,EAAY,KACZC,EAAgB,GAAIhC,GAAW,SAAUG,GAC3C,MAAOA,GAAE8B,SACRtB,EAAMuB,QACLC,EAAY,GAAInC,GAAW,SAAUG,GACvC,MAAOA,GAAEiC,UACRzB,EAAMuB,QAELG,EAAQV,EAAOF,IAEjBa,KAAMb,EAENc,QAAS,WACPC,cAAczC,KAAK0C,wBACnBD,cAAczC,KAAK2C,iBACnB3C,KAAK4C,YACDZ,IACFA,IAAYa,WAAW7C,KAAK8C,SAAW,SACvCd,IAAYa,WAAW7C,KAAK8C,WAE9Bd,EAAY,KACZF,EAAS,KACTM,EAAY,KACZH,EAAgB,KAChBjC,KAAK8C,SAAW,WACTlB,GAAO5B,KAAKuC,OAErBQ,QAAS,WACP/C,KAAKgD,YAAa,GAEpBC,OAAQ,iBACCjD,MAAKgD,YAEdE,IAAK,SAAavC,EAAKgB,GACrB,GAAIwB,GAASnD,IAEb,IAAIoD,MAAMC,QAAQ1C,GAAM,CACtB,GAAI2C,GAAO,WACT,GAAI5C,GAAOC,EACP4C,IASJ,OAPA7C,GAAK8C,QAAQ,SAAU7C,GACrB,GAAIM,GAAQkC,EAAOD,IAAIvC,EAAKgB,EACd,QAAVV,GAA4BwC,SAAVxC,GACpBsC,EAAOxC,KAAKE,MAKdyC,EAAGH,KAIP,IAAgF,YAA3D,mBAATD,GAAuB,YAAcK,EAAAA,UAAoBL,IAAqB,MAAOA,GAAKI,MAItG,IAFA/C,EAAMQ,EAAiBR,GAEnBX,KAAKgD,WACP,MAKJ,IADArB,EAAUA,OACLf,EAAMiB,SAASlB,GAClB,KAAM,IAAIL,OAAM,wBACX,IAAIqB,IAAYf,EAAMC,SAASc,GACpC,KAAM,IAAIrB,OAAM,6BACX,IAAIqB,EAAQiC,WAAahD,EAAMiD,WAAWlC,EAAQiC,UACvD,KAAM,IAAItD,OAAM,uCAGlB,IAAIwD,GAAO,MAEX,IAAI9B,EAAW,CACb,GAAID,EAAWpB,GACb,MAAOoB,GAAWpB,EAGpB,IAAIoD,GAAW/B,IAAYgC,QAAQhE,KAAK8C,SAAW,SAAWnC,EAE9D,KAAIoD,EAGF,MAFAD,GAAOlD,EAAMqD,SAASF,OAInB,IAAInD,EAAMC,SAASiB,GAAS,CACjC,KAAMnB,IAAOmB,IACX,MAGFgC,GAAOhC,EAAOnB,GAGhB,GAAIM,GAAQ6C,EAAK7C,MACbiD,GAAM,GAAIC,OAAOC,SA+BrB,OA7BIpC,IACFI,EAAUiC,QACR1D,IAAKA,EACL0B,SAAUyB,EAAKzB,WAEjByB,EAAKzB,SAAW6B,EAChB9B,EAAUrB,MACRJ,IAAKA,EACL0B,SAAU6B,MAGZ9B,EAAUiC,OAAOP,GACjBA,EAAKzB,SAAW6B,EAChB9B,EAAUrB,KAAK+C,IAGa,YAA1B9D,KAAKsE,kBAAkC,WAAaR,IAAQA,EAAK5B,QAAUgC,GAC7ElE,KAAKqE,OAAO1D,GAERX,KAAKuE,WACPvE,KAAKuE,WAAW5D,EAAKmD,EAAK7C,MAAOU,EAAQiC,UAChCjC,EAAQiC,UACjBjC,EAAQiC,SAASY,KAAKxE,KAAMW,EAAKmD,EAAK7C,OAExCA,EAAQwC,QACCzB,GACTA,IAAYyC,QAAQzE,KAAK8C,SAAW,SAAWnC,EAAK+D,KAAKC,UAAUb,IAG9D7C,GAET2D,KAAM,SAAcjE,GAClB,GAAIA,EAAK,CACP,GAAImD,GAAO,MACX,IAAI9B,EAAW,CACb,GAAI+B,GAAW/B,IAAYgC,QAAQhE,KAAK8C,SAAW,SAAWnC,EAE9D,OAAIoD,IACFD,EAAOlD,EAAMqD,SAASF,IAEpBc,QAASf,EAAKe,QACdxC,SAAUyB,EAAKzB,SACfH,QAAS4B,EAAK5B,QACd4C,WAAW,GAAIX,OAAOC,UAAYN,EAAKe,SAAWf,EAAKiB,QAAU/E,KAAKgF,YAGxE,OAEG,MAAIpE,GAAMC,SAASiB,IAAWnB,IAAOmB,IAC1CgC,EAAOhC,EAAOnB,IAGZkE,QAASf,EAAKe,QACdxC,SAAUyB,EAAKzB,SACfH,QAAS4B,EAAK5B,QACd4C,WAAW,GAAIX,OAAOC,UAAYN,EAAKe,SAAWf,EAAKiB,QAAU/E,KAAKgF,YAGxE,OAGF,OACEC,GAAIjF,KAAKuC,KACT2C,SAAUlF,KAAKmF,WACfJ,OAAQ/E,KAAKgF,SACbI,eAAgBpF,KAAKsE,iBACrBV,SAAU5D,KAAKuE,WACfc,mBAAoBrF,KAAKsF,qBACzBC,YAAavF,KAAKwF,cAClBC,YAAazF,KAAK0F,cAClBC,YAAa3D,EAAYA,IAAcyB,OACvCmC,WAAY5F,KAAKgD,WACjB6C,KAAMzD,GAAaA,EAAUyD,QAAU,IAI7CnF,KAAM,WACJ,GAAIsB,EAAW,CACb,GAAI8D,GAAW9D,IAAYgC,QAAQhE,KAAK8C,SAAW,QAEnD,OAAIgD,GACKlF,EAAMqD,SAAS6B,MAKxB,MAAOtF,GAAMsB,IAGjBN,OAAQ,WACN,GAAIQ,EAAW,CACb,GAAI8D,GAAW9D,IAAYgC,QAAQhE,KAAK8C,SAAW,SAC/CiD,IAEJ,IAAID,EAGF,IAAK,GAFDpF,GAAOE,EAAMqD,SAAS6B,GAEjBE,EAAI,EAAGA,EAAItF,EAAKuF,OAAQD,IAC/BD,EAAKrF,EAAKsF,IAAMtF,EAAKsF,EAGzB,OAAOD,GAEP,MAAOxE,GAAQO,IAGnBoE,IAAK,SAAavF,EAAKM,EAAOU,GAC5B,GAAIwE,GAASnG,IAEb2B,KAAYA,KAEZ,IAAIyE,GAAiB,kBAAoBzE,KAAYA,EAAQyE,eAAiBpG,KAAKqG,iBAC/EC,EAAgB,iBAAmB3E,KAAYA,EAAQ2E,cAAgBtG,KAAKuG,gBAE5EC,EAAa,SAAoBC,EAAOC,GAC1C,MAAO,UAAUhD,GAUf,GATI+C,UACK1E,GAAWpB,GACdC,EAAMC,SAAS6C,IAAM,UAAYA,IAAK,QAAUA,IAClDA,GAAKA,EAAEiD,OAAQjD,EAAEkD,KAAMlD,EAAEmD,UAAWnD,EAAEoD,YACtCX,EAAOD,IAAIvF,EAAK+C,IAEhByC,EAAOD,IAAIvF,EAAK+C,IAGhBgD,EAAS,CACX,GAAI9F,EAAMmG,QACR,MAAOnG,GAAMmG,QAAQC,OAAOtD,EAE5B,MAAMA,GAGR,MAAOA,IAKb,KAAI1D,KAAKgD,YAAepC,EAAMC,SAASiB,IAAqB,OAAVb,GAA4BwC,SAAVxC,EAApE,CAKA,GAFAN,EAAMQ,EAAiBR,IAElBC,EAAMiB,SAASlB,GAClB,KAAM,IAAIL,OAAM,wBAGlB,IAAI4D,IAAM,GAAIC,OAAOC,UACjBN,GACFnD,IAAKA,EACLM,MAAOD,EAAeC,GAASA,EAAMC,KAAKsF,EAAWJ,GAAgB,GAAQI,EAAWF,GAAe,IAASrF,EAChH4D,QAA6BpB,SAApB9B,EAAQkD,QAAwBX,EAAMvC,EAAQkD,QACvDxC,SAA+BoB,SAArB9B,EAAQU,SAAyB6B,EAAMvC,EAAQU,SAY3D,IAVIV,EAAQoD,SACVjB,EAAKiB,OAASpD,EAAQoD,QAGAtB,SAApB9B,EAAQO,QACV4B,EAAK5B,QAAU4B,EAAKe,SAAWf,EAAKiB,QAAU/E,KAAKgF,UAEnDlB,EAAK5B,QAAUP,EAAQO,QAGrBF,EAAW,CACb,GAAIhB,EAAe8C,EAAK7C,OAEtB,MADAc,GAAWpB,GAAOmD,EAAK7C,MAChBc,EAAWpB,EAEpB,IAAImF,GAAW9D,IAAYgC,QAAQhE,KAAK8C,SAAW,SAC/CpC,EAAOoF,EAAWlF,EAAMqD,SAAS6B,MACjC/B,EAAW/B,IAAYgC,QAAQhE,KAAK8C,SAAW,SAAWnC,EAG1DoD,IACF/D,KAAKqE,OAAO1D,GAGdsB,EAAclB,MACZJ,IAAKA,EACLuB,QAAS4B,EAAK5B,UAGhBE,EAAUrB,MACRJ,IAAKA,EACL0B,SAAUyB,EAAKzB,WAGjBL,IAAYyC,QAAQzE,KAAK8C,SAAW,SAAWnC,EAAK+D,KAAKC,UAAUb,GAEnE,KAAK,GADDmD,IAAS,EACJjB,EAAI,EAAGA,EAAItF,EAAKuF,OAAQD,IAC/B,GAAItF,EAAKsF,KAAOrF,EAAK,CACnBsG,GAAS,CACT,OAGCA,GACHvG,EAAKK,KAAKJ,GAEZqB,IAAYyC,QAAQzE,KAAK8C,SAAW,QAAS4B,KAAKC,UAAUjE,QAGxDoB,GAAOnB,IACTX,KAAKqE,OAAO1D,GAGdsB,EAAclB,KAAK+C,GAEnB1B,EAAUrB,KAAK+C,GAEfhC,EAAOnB,GAAOmD,QACP/B,GAAWpB,EAQpB,OAJIyB,GAAUyD,OAAS7F,KAAKmF,YAC1BnF,KAAKqE,OAAOjC,EAAU8E,OAAOvG,KAGxBM,IAEToD,OAAQ,SAAgB1D,GAGtB,GAFAA,GAAO,SACAoB,GAAWpB,GACdqB,EAAW,CACb,GAAI+B,GAAW/B,IAAYgC,QAAQhE,KAAK8C,SAAW,SAAWnC,EAE9D,IAAIoD,EAAU,CACZ,GAAID,GAAOlD,EAAMqD,SAASF,EAC1B3B,GAAUiC,QACR1D,IAAKA,EACL0B,SAAUyB,EAAKzB,WAEjBJ,EAAcoC,QACZ1D,IAAKA,EACLuB,QAAS4B,EAAK5B,UAEhBF,IAAYa,WAAW7C,KAAK8C,SAAW,SAAWnC,EAClD,IAAImF,GAAW9D,IAAYgC,QAAQhE,KAAK8C,SAAW,SAC/CpC,EAAOoF,EAAWlF,EAAMqD,SAAS6B,MACjCqB,EAAQzG,EAAK0G,QAAQzG,EAMzB,OAJIwG,IAAS,GACXzG,EAAK2G,OAAOF,EAAO,GAErBnF,IAAYyC,QAAQzE,KAAK8C,SAAW,QAAS4B,KAAKC,UAAUjE,IACrDoD,EAAK7C,WAET,IAAIL,EAAMC,SAASiB,GAAS,CACjC,GAAIb,GAAQa,EAAOnB,GAAOmB,EAAOnB,GAAKM,MAAQwC,MAK9C,OAJArB,GAAUiC,OAAOvC,EAAOnB,IACxBsB,EAAcoC,OAAOvC,EAAOnB,IAC5BmB,EAAOnB,GAAO,WACPmB,GAAOnB,GACPM,IAGX2B,UAAW,WACT,GAAIZ,EAAW,CACbI,EAAUQ,YACVX,EAAcW,WACd,IAAIkD,GAAW9D,IAAYgC,QAAQhE,KAAK8C,SAAW,QAEnD,IAAIgD,EAGF,IAAK,GAFDpF,GAAOE,EAAMqD,SAAS6B,GAEjBE,EAAI,EAAGA,EAAItF,EAAKuF,OAAQD,IAC/BhG,KAAKqE,OAAO3D,EAAKsF,GAGrBhE,KAAYyC,QAAQzE,KAAK8C,SAAW,QAAS4B,KAAKC,mBAC7C,IAAI/D,EAAMC,SAASiB,GAAS,CACjCM,EAAUQ,YACVX,EAAcW,WACd,KAAK,GAAIjC,KAAOmB,GACdA,EAAOnB,GAAO,IAEhBmB,UAEAM,GAAUQ,YACVX,EAAcW,YACdd,IAEFC,OAEFuF,cAAe,WAMb,IALA,GAAIpD,IAAM,GAAIC,OAAOC,UACjBmD,KACA5G,EAAM,OACN6G,EAAc,QAEVA,EAAcvF,EAAciF,SAAWM,EAAYtF,SAAWgC,GACpEqD,EAAQC,EAAY7G,KAAO6G,EAAYvG,MAAQuG,EAAYvG,MAAQ,KACnEgB,EAAcwF,KAGhB,IAAIzF,EACF,IAAKrB,IAAO4G,GAAS,CACnB,GAAIxD,GAAW/B,IAAYgC,QAAQhE,KAAK8C,SAAW,SAAWnC,EAC1DoD,KACFwD,EAAQ5G,GAAOC,EAAMqD,SAASF,GAAU9C,MACxCjB,KAAKqE,OAAO1D,QAIhB,KAAKA,IAAO4G,GACVvH,KAAKqE,OAAO1D,EAIhB,IAAIX,KAAKuE,WACP,IAAK5D,IAAO4G,GACVvH,KAAKuE,WAAW5D,EAAK4G,EAAQ5G,GAIjC,OAAO4G,IAETG,sBAAuB,SAA+BrC,GACpD,GAAIsC,GAAQ3H,IACZ,IAA2B,OAAvBqF,QACKsC,GAAMrC,yBACR,CAAA,IAAK1E,EAAMS,SAASgE,GACzB,KAAM,IAAI/E,OAAM,uCACX,IAAyB,EAArB+E,EACT,KAAM,IAAI/E,OAAM,gDACP+E,KAAuBsC,EAAMrC,uBACtCqC,EAAMrC,qBAAuBD,EAE7B5C,cAAckF,EAAMjF,wBAEpBiF,EAAMjF,uBAAyBkF,YAAY,WACzCD,EAAM/E,aACL+E,EAAMrC,yBAGbuC,YAAa,SAAqB3C,GAChC,GAAiB,OAAbA,QACKlF,MAAKmF,eACP,CAAA,IAAKvE,EAAMS,SAAS6D,GACzB,KAAM,IAAI5E,OAAM,6BACX,IAAe,EAAX4E,EACT,KAAM,IAAI5E,OAAM,sCAEhBN,MAAKmF,WAAaD,EAGpB,IADA,GAAI4C,MACG1F,EAAUyD,OAAS7F,KAAKmF,YAC7B2C,EAAQ1F,EAAU8E,OAAOvG,KAAOX,KAAKqE,OAAOjC,EAAU8E,OAAOvG,IAE/D,OAAOmH,IAETC,kBAAmB,SAA2B3C,EAAgB4C,GAC5D,GAAuB,OAAnB5C,QACKpF,MAAKsE,qBACP,CAAA,IAAK1D,EAAMiB,SAASuD,GACzB,KAAM,IAAI9E,OAAM,mCACX,IAAuB,SAAnB8E,GAAgD,YAAnBA,GAAmD,eAAnBA,EACtE,KAAM,IAAI9E,OAAM,4DAEhBN,MAAKsE,iBAAmBc,EAEtB4C,KAAmB,GACrBhI,KAAKgI,eAAehI,KAAKwF,gBAG7ByC,UAAW,SAAmBlD,GAC5B,GAAe,OAAXA,EACF/E,KAAKgF,SAAWkD,OAAOC,cAClB,CAAA,IAAKvH,EAAMS,SAAS0D,GACzB,KAAM,IAAIzE,OAAM,2BACX,IAAa,EAATyE,EACT,KAAM,IAAIzE,OAAM,oCAEhBN,MAAKgF,SAAWD,EAElB,GAAIiB,GAAI,OACJtF,EAAO,OACPC,EAAM,MAIV,IAFAsB,EAAcW,YAEVZ,EAAW,CACb,GAAI8D,GAAW9D,IAAYgC,QAAQhE,KAAK8C,SAAW,QAInD,KAFApC,EAAOoF,EAAWlF,EAAMqD,SAAS6B,MAE5BE,EAAI,EAAGA,EAAItF,EAAKuF,OAAQD,IAAK,CAChCrF,EAAMD,EAAKsF,EACX,IAAIjC,GAAW/B,IAAYgC,QAAQhE,KAAK8C,SAAW,SAAWnC,EAE9D,IAAIoD,EAAU,CACZ,GAAID,GAAOlD,EAAMqD,SAASF,EACtB/D,MAAKgF,WAAakD,OAAOC,UAC3BrE,EAAK5B,QAAUgG,OAAOC,UAEtBrE,EAAK5B,QAAU4B,EAAKe,SAAWf,EAAKiB,QAAU/E,KAAKgF,UAErD/C,EAAclB,MACZJ,IAAKA,EACLuB,QAAS4B,EAAK5B,gBAOpB,KAFAxB,EAAOF,EAAMsB,GAERkE,EAAI,EAAGA,EAAItF,EAAKuF,OAAQD,IAC3BrF,EAAMD,EAAKsF,GACPhG,KAAKgF,WAAakD,OAAOC,UAC3BrG,EAAOnB,GAAKuB,QAAUgG,OAAOC,UAE7BrG,EAAOnB,GAAKuB,QAAUJ,EAAOnB,GAAKkE,SAAW/C,EAAOnB,GAAKoE,QAAU/E,KAAKgF,UAE1E/C,EAAclB,KAAKe,EAAOnB,GAG9B,OAA8B,eAA1BX,KAAKsE,iBACAtE,KAAKsH,oBAKhBc,YAAa,SAAqBxE,GAChC,GAAiB,OAAbA,QACK5D,MAAKuE,eACP,CAAA,IAAK3D,EAAMiD,WAAWD,GAC3B,KAAM,IAAItD,OAAM,+BAEhBN,MAAKuE,WAAaX,IAGtByE,WAAY,SAAoBC,EAAcC,GAG5C,GAFAD,EAAeA,MACfC,IAAWA,GACN3H,EAAMC,SAASyH,GAClB,KAAM,IAAIhI,OAAM,kCAGd,kBAAmBgI,GACrBtI,KAAKwI,gBAAkBF,EAAaG,cAC3BF,IACTvI,KAAKwI,gBAAkBE,EAASD,eAGlCzI,KAAK8C,SAAW9C,KAAKwI,gBAAkBxI,KAAKuC,KAExC,YAAc+F,GAChBtI,KAAKgD,aAAesF,EAAa1C,SACxB2C,IACTvI,KAAKgD,WAAa0F,EAAS9C,UAGzB,kBAAoB0C,GACtBtI,KAAK+H,kBAAkBO,EAAalD,gBAAgB,GAC3CmD,GACTvI,KAAK+H,kBAAkBW,EAAStD,gBAAgB,GAG9C,eAAiBkD,GACnBtI,KAAKgI,eAAeM,EAAa/C,aACxBgD,GACTvI,KAAKgI,eAAeU,EAASnD,aAG3B,UAAY+C,GACdtI,KAAKiI,UAAUK,EAAavD,QACnBwD,GACTvI,KAAKiI,UAAUS,EAAS3D,QAGtB,kBAAoBuD,GACtBtI,KAAKqG,mBAAqBiC,EAAalC,eAC9BmC,IACTvI,KAAKqG,iBAAmBqC,EAAStC,gBAG/B,iBAAmBkC,GACrBtI,KAAKuG,kBAAoB+B,EAAahC,cAC7BiC,IACTvI,KAAKuG,gBAAkBmC,EAASpC,eAG9B,YAAcgC,GAChBtI,KAAK6H,YAAYS,EAAapD,UACrBqD,GACTvI,KAAK6H,YAAYa,EAASxD,UAGxB,sBAAwBoD,GAC1BtI,KAAK0H,sBAAsBY,EAAajD,oBAC/BkD,GACTvI,KAAK0H,sBAAsBgB,EAASrD,oBAGlC,YAAciD,GAChBtI,KAAKoI,YAAYE,EAAa1E,UACrB2E,GACTvI,KAAKoI,YAAYM,EAAS9E,UAGxB,eAAiB0E,IAAgB,eAAiBA,GACpDtI,KAAK2I,eAAeL,EAAa7C,aAAeiD,EAASjD,YAAa6C,EAAa3C,aAAe+C,EAAS/C,aAClG4C,GACTvI,KAAK2I,eAAeD,EAASjD,YAAaiD,EAAS/C,cAGvDqC,eAAgB,SAAwBzC,GACtC,GAAoB,OAAhBA,QACKvF,MAAKwF,kBACP,CAAA,IAAK5E,EAAMS,SAASkE,GACzB,KAAM,IAAIjF,OAAM,gCACX,IAAkB,EAAdiF,EACT,KAAM,IAAIjF,OAAM,yCAEhBN,MAAKwF,cAAgBD,EAEvB9C,cAAczC,KAAK2C,iBACW,eAA1B3C,KAAKsE,kBACP,SAAWsE,GACTA,EAAKjG,gBAAkBiF,YAAY,WACjCgB,EAAKtB,iBACJsB,EAAKpD,gBACPxF,YAEIA,MAAK2C,iBAGhBgG,eAAgB,SAAwBlD,EAAaE,GAYnD,QAASkD,GAAKC,EAAaC,GACzB,GAAIrI,GAAOV,KAAKU,OACZuF,EAASvF,EAAKuF,MAClB,IAAIA,EAAQ,CAGV,IAAK,GAFD+C,GAAO,OACPC,EAAmBrI,EAAMC,SAASkI,GAC7B/C,EAAI,EAAOC,EAAJD,EAAYA,IAAK,CAE/B,GADAgD,EAAOtI,EAAKsF,GACR8C,EAAa,CACf,GAAI/E,GAAW+E,IAAc9E,QAAQhE,KAAK8C,SAAW,SAAWkG,EAC5DjF,KACFmF,EAAMF,GAAQpI,EAAMqD,SAASF,QAEtBkF,KACTC,EAAMF,GAAQD,EAASC,GAEzBhJ,MAAKqE,OAAO2E,GAEdG,GAAiB,GA7BrB,IAAKvI,EAAMiB,SAAS4D,GAClB,KAAM,IAAInF,OAAM,gCACX,IAAoB,WAAhBmF,GAA4C,iBAAhBA,GAAkD,mBAAhBA,EACvE,KAAM,IAAInF,OAAM,oEAGlB,IAAIwI,GAAc9G,EACd+G,EAAWjH,EACXqH,GAAiB,EACjBD,IA8BJ,IANKlJ,KAAKoJ,gBACRP,EAAKrE,KAAKxE,KAAM8I,EAAaC,GAG/B/I,KAAK0F,cAAgBD,EAEjBE,EAAa,CACf,IAAK/E,EAAMC,SAAS8E,GAClB,KAAM,IAAIrF,OAAM,iCACX,MAAM,WAAaqF,IAA+C,kBAAxBA,GAAYlB,SAC3D,KAAM,IAAInE,OAAM,oDACX,MAAM,WAAaqF,IAA+C,kBAAxBA,GAAY3B,SAC3D,KAAM,IAAI1D,OAAM,6CACX,MAAM,cAAgBqF,KAAkD,kBAA3BA,GAAY9C,WAC9D,KAAM,IAAIvC,OAAM,gDAElB0B,GAAY,WACV,MAAO2D,QAEJ,IAA2B,iBAAvB3F,KAAK0F,cACd,IACE2D,aAAa5E,QAAQ,eAAgB,gBACrC4E,aAAaxG,WAAW,gBACxBb,EAAY,WACV,MAAOqH,eAET,MAAOC,GACPtH,EAAY,KACZhC,KAAK0F,cAAgB,aAElB,IAA2B,mBAAvB1F,KAAK0F,cACd,IACE6D,eAAe9E,QAAQ,eAAgB,gBACvC8E,eAAe1G,WAAW,gBAC1Bb,EAAY,WACV,MAAOuH,iBAET,MAAOD,GACPtH,EAAY,KACZhC,KAAK0F,cAAgB,aAGvB1D,GAAY,KACZhC,KAAK0F,cAAgB,QAOvB,IAJI1F,KAAKoJ,gBACPP,EAAKrE,KAAKxE,KAAMgC,EAAWF,GAGzBqH,EAAgB,CAClB,GAAIrF,GAAO,MACX,KAAK,GAAInD,KAAOuI,GACdpF,EAAOoF,EAAMvI,GACbX,KAAKkG,IAAIvF,EAAKmD,EAAK7C,OACjB4D,QAASf,EAAKe,QACdxC,SAAUyB,EAAKzB,SACfH,QAAS4B,EAAK5B,YAKtBsH,MAAO,SAAe7I,EAAKgB,GACzB,GAAI8H,GAASzJ,IAEb,IAAIW,EAAK,CACP,GAAI+I,GAAM1J,KAAKkD,IAAIvC,GACjBiD,SAAU,SAAkB+F,EAAGjG,GAC7B,MAAO+F,GAAOvD,IAAIyD,EAAGjG,KAGrBgG,IACF1J,KAAKkG,IAAIvF,EAAK+I,EAAK/H,OAIrB,KAAK,GADDjB,GAAOV,KAAKU,OACPsF,EAAI,EAAGA,EAAItF,EAAKuF,OAAQD,IAC/BhG,KAAKwJ,MAAM9I,EAAKsF,GAAIrE,IAI1B4B,OAAQ,WAGN,IAAK,GAFD7C,GAAOV,KAAKU,OACZwI,KACKlD,EAAI,EAAGA,EAAItF,EAAKuF,OAAQD,IAC/BkD,EAAMnI,KAAKf,KAAKkD,IAAIxC,EAAKsF,IAE3B,OAAOkD,IAQX,OAJA5G,GAAM8G,gBAAiB,EACvB9G,EAAM+F,WAAW1G,GAAS,GAC1BW,EAAM8G,gBAAiB,EAEhB9G,EAGT,QAASsH,GAAalI,EAASC,GAC7B,MAAOF,GAAYC,EAASC,GAgF9B,QAASkI,KACP7J,KAAK8J,KAAO,WACV,MAAOF,GAAa3J,YAIxB,QAAS8J,KACP/J,KAAK0I,SAAWkB,EAAalB,SAC7B1I,KAAK0I,SAASD,cAAgB,wBAE9BzI,KAAK8J,MAAQ,KAAM,SAAUE,GAE3B,MADAJ,GAAahJ,MAAMmG,QAAUiD,EACtBJ,IA9jCXjK,EAAU,WAAaA,GAAUA,EAAQ,WAAaA,CAEtD,IAAIgE,KACJA,GAAAA,UAAwC,kBAAXsG,SAAoD,gBAApBA,QAAOC,SAAwB,SAAUC,GACpG,aAAcA,IACZ,SAAUA,GACZ,MAAOA,IAAyB,kBAAXF,SAAyBE,EAAIC,cAAgBH,OAAS,eAAkBE,GAS/F,IAAIE,GAAW,SAAkB9J,EAAML,EAAYoK,GAIjD,IAHA,GAAIC,GAAUhK,EAAK+J,GACfE,EAAStK,EAAWqK,GAEjBD,EAAI,GAAG,CAEZ,GAAIG,GAAUC,KAAKC,OAAOL,EAAI,GAAK,GAAK,EACpCM,EAASrK,EAAKkK,EAGlB,IAAID,GAAUtK,EAAW0K,GACvB,KAEArK,GAAKkK,GAAWF,EAChBhK,EAAK+J,GAAKM,EACVN,EAAIG,IAWNI,EAAa,SAAoBtK,EAAML,EAAYoK,GAKrD,IAJA,GAAIrE,GAAS1F,EAAK0F,OACd6E,EAAOvK,EAAK+J,GACZS,EAAa7K,EAAW4K,KAEf,CACX,GAAIE,GAAoB,GAATV,EAAI,GACfW,EAAUD,EAAU,EACpBE,EAAO,IACX,IAAcjF,EAAVgF,EAAkB,CACpB,GAAIE,GAAS5K,EAAK0K,GACdG,EAAelL,EAAWiL,EAEXJ,GAAfK,IACFF,EAAOD,GAIX,GAAchF,EAAV+E,EAAkB,CACpB,GAAIK,GAAS9K,EAAKyK,GACdM,EAAepL,EAAWmL,EAC1BC,IAAyB,OAATJ,EAAgBH,EAAa7K,EAAWK,EAAK0K,OAC/DC,EAAOF,GAIX,GAAa,OAATE,EACF,KAEA3K,GAAK+J,GAAK/J,EAAK2K,GACf3K,EAAK2K,GAAQJ,EACbR,EAAIY,IA2BNK,EAAUtL,EAAWuL,SAEzBD,GAAQxK,KAAO,SAAU+J,GACvB9K,KAAKO,KAAKQ,KAAK+J,GACfT,EAASrK,KAAKO,KAAMP,KAAKE,WAAYF,KAAKO,KAAK0F,OAAS,IAG1DsF,EAAQrE,KAAO,WACb,MAAOlH,MAAKO,KAAK,IAGnBgL,EAAQ9D,IAAM,WACZ,GAAIgE,GAAQzL,KAAKO,KAAK,GAClBmL,EAAM1L,KAAKO,KAAKkH,KAKpB,OAJIzH,MAAKO,KAAK0F,OAAS,IACrBjG,KAAKO,KAAK,GAAKmL,EACfb,EAAW7K,KAAKO,KAAMP,KAAKE,WAAY,IAElCuL,GAGTF,EAAQlH,OAAS,SAAUyG,GAEzB,IAAK,GADD7E,GAASjG,KAAKO,KAAK0F,OACdD,EAAI,EAAOC,EAAJD,EAAYA,IAC1B,GAAIhG,KAAKG,YAAYH,KAAKO,KAAKyF,GAAI8E,GAAO,CACxC,GAAIhD,GAAU9H,KAAKO,KAAKyF,GACpB0F,EAAM1L,KAAKO,KAAKkH,KAMpB,OALIzB,KAAMC,EAAS,IACjBjG,KAAKO,KAAKyF,GAAK0F,EACfrB,EAASrK,KAAKO,KAAMP,KAAKE,WAAY8F,GACrC6E,EAAW7K,KAAKO,KAAMP,KAAKE,WAAY8F,IAElC8B,EAGX,MAAO,OAGTyD,EAAQ3I,UAAY,WAClB5C,KAAKO,SAGPgL,EAAQ1F,KAAO,WACb,MAAO7F,MAAKO,KAAK0F,OAGnB,IAAI0F,GAAW,IACf,KACEA,EAAWC,OAAO7E,QAClB,MAAOuC,IAET,GAAI1I,IACFS,SAAU,SAAkBJ,GAC1B,MAAwB,gBAAVA,IAEhBY,SAAU,SAAkBZ,GAC1B,MAAwB,gBAAVA,IAEhBJ,SAAU,SAAkBI,GAC1B,MAAiB,QAAVA,GAAgG,YAA5D,mBAAVA,GAAwB,YAAc0C,EAAAA,UAAoB1C,KAE7F4C,WAAY,SAAoB5C,GAC9B,MAAwB,kBAAVA,IAEhBgD,SAAU,SAAkBhD,GAC1B,MAAOyD,MAAKmH,MAAM5K,IAEpBkB,OAAQ,SAAgB2J,EAAGC,GACzB,MAAOD,KAAMC,GAGfhF,QAAS4E,GA0CPjD,GACFxD,SAAUgD,OAAOC,UACjBpD,OAAQmD,OAAOC,UACf/C,eAAgB,OAChBxB,SAAU,KACVyB,mBAAoB,KACpBE,YAAa,IACbE,YAAa,SACbE,YAAa,KACbC,UAAU,EACV6C,cAAe,uBACfrC,gBAAgB,EAChBE,eAAe,GAGb1E,IAkwBJgI,GAAanI,YAAcA,EAC3BmI,EAAalB,SAAWA,EAExBkB,EAAahF,KAAO,WAClB,GAAIlE,GAAOF,EAAMoB,GACbgD,GACFiB,KAAMnF,EAAKuF,OACXrE,UAEF,KAAK,GAAIoK,KAAOtD,GACVA,EAAS5H,eAAekL,KAC1BpH,EAAKoH,GAAOtD,EAASsD,GAGzB,KAAK,GAAIhG,GAAI,EAAGA,EAAItF,EAAKuF,OAAQD,IAAK,CACpC,GAAIrF,GAAMD,EAAKsF,EACfpB,GAAKhD,OAAOjB,GAAOiB,EAAOjB,GAAKiE,OAEjC,MAAOA,IAGTgF,EAAa1G,IAAM,SAAUxB,GAC3B,MAAOE,GAAOF,IAEhBkI,EAAapI,OAAS,WACpB,MAAOD,GAAQK,IAEjBgI,EAAalJ,KAAO,WAClB,MAAOF,GAAMoB,IAEfgI,EAAapH,QAAU,SAAUd,GAC3BE,EAAOF,KACTE,EAAOF,GAASc,gBACTZ,GAAOF,KAGlBkI,EAAaqC,WAAa,WACxB,IAAK,GAAIvK,KAAWE,GAClBA,EAAOF,GAASc,SAElBZ,OAEFgI,EAAasC,SAAW,WACtB,IAAK,GAAIxK,KAAWE,GAClBA,EAAOF,GAASkB,aAGpBgH,EAAauC,qBAAuB,WAClC,GAAI5E,KACJ,KAAK,GAAI7F,KAAWE,GAClB2F,EAAQ7F,GAAWE,EAAOF,GAAS4F,eAErC,OAAOC,IAETqC,EAAawC,UAAY,WACvB,IAAK,GAAI1K,KAAWE,GAClBA,EAAOF,GAASsB,YAAa,GAGjC4G,EAAayC,WAAa,WACxB,IAAK,GAAI3K,KAAWE,GAClBA,EAAOF,GAASsB,YAAa,GAGjC4G,EAAa0C,SAAW,WACtB,IAAK,GAAI5K,KAAWE,GAClBA,EAAOF,GAAS8H,SAIpBI,EAAahJ,MAAQA,EACrBgJ,EAAa3J,WAAaA,EAE1B2J,EAAahJ,MAAMuB,OAASxC,EAAQwC,OACpCyH,EAAahJ,MAAMC,SAAWlB,EAAQkB,SACtC+I,EAAahJ,MAAMqD,SAAWtE,EAAQsE,SAkBtCtE,EAAQD,OAAO,oBAAqB6M,SAAS,aAAc1C,GAAoB0C,SAAS,eAAgBxC,EAExG,IAAI5C,GAAQ,eAEZ,OAAOA","file":"dist/angular-cache.min.js"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/rollup.config.js b/ecomp-portal-FE/client/bower_components/angular-cache/rollup.config.js
deleted file mode 100644
index 21abf98a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/rollup.config.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var babel = require('rollup-plugin-babel')
-var pkg = require('./package.json')
-
-module.exports = {
- moduleName: 'angularCacheModuleName',
- moduleId: 'angular-cache',
- banner: '/**\n' +
- ' * angular-cache\n' +
- ' * @version ' + pkg.version + ' - Homepage <https://github.com/jmdobry/angular-cache>\n' +
- ' * @copyright (c) 2013-2016 angular-cache project authors\n' +
- ' * @license MIT <https://github.com/jmdobry/angular-cache/blob/master/LICENSE>\n' +
- ' * @overview angular-cache is a very useful replacement for Angular\'s $cacheFactory.\n' +
- ' */',
- plugins: [
- babel({
- babelrc: false,
- presets: [
- 'es2015-rollup'
- ]
- })
- ]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-cache/scripts/postbuild.js b/ecomp-portal-FE/client/bower_components/angular-cache/scripts/postbuild.js
deleted file mode 100644
index 20c3d9a5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cache/scripts/postbuild.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var fs = require('fs')
-var path = __dirname + '/../dist/angular-cache.js'
-var file = fs.readFileSync(path, { encoding: 'utf8' })
-file = file.replace(
- 'module.exports = factory(require(\'angular\'))',
- 'module.exports = factory(typeof angular === \'undefined\' ? require(\'angular\') : angular)'
-)
-var index = file.indexOf('babelHelpers;')
-var str = 'var babelHelpers = {};\n' +
-' babelHelpers.typeof = typeof Symbol === "function" && babelHelpers.typeof(Symbol.iterator) === "symbol" ? function (obj) {\n' +
-' return typeof obj === "undefined" ? "undefined" : babelHelpers.typeof(obj);\n' +
-' } : function (obj) {\n' +
-' return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj === "undefined" ? "undefined" : babelHelpers.typeof(obj);\n' +
-' };'
-
-var index2 = file.indexOf(str)
-
-var file2 = file.substring(index2 + str.length)
-file = file.substring(0, index) + file2
-
-fs.writeFileSync(path, file)
diff --git a/ecomp-portal-FE/client/bower_components/angular-cookies/.bower.json b/ecomp-portal-FE/client/bower_components/angular-cookies/.bower.json
deleted file mode 100644
index c848f4c5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cookies/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-cookies",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-cookies.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- },
- "homepage": "https://github.com/angular/bower-angular-cookies",
- "_release": "1.5.0",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.0",
- "commit": "3852e28d49ee37a9b28bb788f0e3b14aa0c9ea14"
- },
- "_source": "https://github.com/angular/bower-angular-cookies.git",
- "_target": "1.5.0",
- "_originalSource": "angular-cookies"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-cookies/README.md b/ecomp-portal-FE/client/bower_components/angular-cookies/README.md
deleted file mode 100644
index 7b190d34..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cookies/README.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# packaged angular-cookies
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngCookies).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-cookies
-```
-
-Then add `ngCookies` as a dependency for your app:
-
-```javascript
-angular.module('myApp', [require('angular-cookies')]);
-```
-
-### bower
-
-```shell
-bower install angular-cookies
-```
-
-Add a `<script>` to your `index.html`:
-
-```html
-<script src="/bower_components/angular-cookies/angular-cookies.js"></script>
-```
-
-Then add `ngCookies` as a dependency for your app:
-
-```javascript
-angular.module('myApp', ['ngCookies']);
-```
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/api/ngCookies).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.js b/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.js
deleted file mode 100644
index 2157ef03..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.js
+++ /dev/null
@@ -1,322 +0,0 @@
-/**
- * @license AngularJS v1.5.0
- * (c) 2010-2016 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular, undefined) {'use strict';
-
-/**
- * @ngdoc module
- * @name ngCookies
- * @description
- *
- * # ngCookies
- *
- * The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies.
- *
- *
- * <div doc-module-components="ngCookies"></div>
- *
- * See {@link ngCookies.$cookies `$cookies`} for usage.
- */
-
-
-angular.module('ngCookies', ['ng']).
- /**
- * @ngdoc provider
- * @name $cookiesProvider
- * @description
- * Use `$cookiesProvider` to change the default behavior of the {@link ngCookies.$cookies $cookies} service.
- * */
- provider('$cookies', [function $CookiesProvider() {
- /**
- * @ngdoc property
- * @name $cookiesProvider#defaults
- * @description
- *
- * Object containing default options to pass when setting cookies.
- *
- * The object may have following properties:
- *
- * - **path** - `{string}` - The cookie will be available only for this path and its
- * sub-paths. By default, this is the URL that appears in your `<base>` tag.
- * - **domain** - `{string}` - The cookie will be available only for this domain and
- * its sub-domains. For security reasons the user agent will not accept the cookie
- * if the current domain is not a sub-domain of this domain or equal to it.
- * - **expires** - `{string|Date}` - String of the form "Wdy, DD Mon YYYY HH:MM:SS GMT"
- * or a Date object indicating the exact date/time this cookie will expire.
- * - **secure** - `{boolean}` - If `true`, then the cookie will only be available through a
- * secured connection.
- *
- * Note: By default, the address that appears in your `<base>` tag will be used as the path.
- * This is important so that cookies will be visible for all routes when html5mode is enabled.
- *
- **/
- var defaults = this.defaults = {};
-
- function calcOptions(options) {
- return options ? angular.extend({}, defaults, options) : defaults;
- }
-
- /**
- * @ngdoc service
- * @name $cookies
- *
- * @description
- * Provides read/write access to browser's cookies.
- *
- * <div class="alert alert-info">
- * Up until Angular 1.3, `$cookies` exposed properties that represented the
- * current browser cookie values. In version 1.4, this behavior has changed, and
- * `$cookies` now provides a standard api of getters, setters etc.
- * </div>
- *
- * Requires the {@link ngCookies `ngCookies`} module to be installed.
- *
- * @example
- *
- * ```js
- * angular.module('cookiesExample', ['ngCookies'])
- * .controller('ExampleController', ['$cookies', function($cookies) {
- * // Retrieving a cookie
- * var favoriteCookie = $cookies.get('myFavorite');
- * // Setting a cookie
- * $cookies.put('myFavorite', 'oatmeal');
- * }]);
- * ```
- */
- this.$get = ['$$cookieReader', '$$cookieWriter', function($$cookieReader, $$cookieWriter) {
- return {
- /**
- * @ngdoc method
- * @name $cookies#get
- *
- * @description
- * Returns the value of given cookie key
- *
- * @param {string} key Id to use for lookup.
- * @returns {string} Raw cookie value.
- */
- get: function(key) {
- return $$cookieReader()[key];
- },
-
- /**
- * @ngdoc method
- * @name $cookies#getObject
- *
- * @description
- * Returns the deserialized value of given cookie key
- *
- * @param {string} key Id to use for lookup.
- * @returns {Object} Deserialized cookie value.
- */
- getObject: function(key) {
- var value = this.get(key);
- return value ? angular.fromJson(value) : value;
- },
-
- /**
- * @ngdoc method
- * @name $cookies#getAll
- *
- * @description
- * Returns a key value object with all the cookies
- *
- * @returns {Object} All cookies
- */
- getAll: function() {
- return $$cookieReader();
- },
-
- /**
- * @ngdoc method
- * @name $cookies#put
- *
- * @description
- * Sets a value for given cookie key
- *
- * @param {string} key Id for the `value`.
- * @param {string} value Raw value to be stored.
- * @param {Object=} options Options object.
- * See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
- */
- put: function(key, value, options) {
- $$cookieWriter(key, value, calcOptions(options));
- },
-
- /**
- * @ngdoc method
- * @name $cookies#putObject
- *
- * @description
- * Serializes and sets a value for given cookie key
- *
- * @param {string} key Id for the `value`.
- * @param {Object} value Value to be stored.
- * @param {Object=} options Options object.
- * See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
- */
- putObject: function(key, value, options) {
- this.put(key, angular.toJson(value), options);
- },
-
- /**
- * @ngdoc method
- * @name $cookies#remove
- *
- * @description
- * Remove given cookie
- *
- * @param {string} key Id of the key-value pair to delete.
- * @param {Object=} options Options object.
- * See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
- */
- remove: function(key, options) {
- $$cookieWriter(key, undefined, calcOptions(options));
- }
- };
- }];
- }]);
-
-angular.module('ngCookies').
-/**
- * @ngdoc service
- * @name $cookieStore
- * @deprecated
- * @requires $cookies
- *
- * @description
- * Provides a key-value (string-object) storage, that is backed by session cookies.
- * Objects put or retrieved from this storage are automatically serialized or
- * deserialized by angular's toJson/fromJson.
- *
- * Requires the {@link ngCookies `ngCookies`} module to be installed.
- *
- * <div class="alert alert-danger">
- * **Note:** The $cookieStore service is **deprecated**.
- * Please use the {@link ngCookies.$cookies `$cookies`} service instead.
- * </div>
- *
- * @example
- *
- * ```js
- * angular.module('cookieStoreExample', ['ngCookies'])
- * .controller('ExampleController', ['$cookieStore', function($cookieStore) {
- * // Put cookie
- * $cookieStore.put('myFavorite','oatmeal');
- * // Get cookie
- * var favoriteCookie = $cookieStore.get('myFavorite');
- * // Removing a cookie
- * $cookieStore.remove('myFavorite');
- * }]);
- * ```
- */
- factory('$cookieStore', ['$cookies', function($cookies) {
-
- return {
- /**
- * @ngdoc method
- * @name $cookieStore#get
- *
- * @description
- * Returns the value of given cookie key
- *
- * @param {string} key Id to use for lookup.
- * @returns {Object} Deserialized cookie value, undefined if the cookie does not exist.
- */
- get: function(key) {
- return $cookies.getObject(key);
- },
-
- /**
- * @ngdoc method
- * @name $cookieStore#put
- *
- * @description
- * Sets a value for given cookie key
- *
- * @param {string} key Id for the `value`.
- * @param {Object} value Value to be stored.
- */
- put: function(key, value) {
- $cookies.putObject(key, value);
- },
-
- /**
- * @ngdoc method
- * @name $cookieStore#remove
- *
- * @description
- * Remove given cookie
- *
- * @param {string} key Id of the key-value pair to delete.
- */
- remove: function(key) {
- $cookies.remove(key);
- }
- };
-
- }]);
-
-/**
- * @name $$cookieWriter
- * @requires $document
- *
- * @description
- * This is a private service for writing cookies
- *
- * @param {string} name Cookie name
- * @param {string=} value Cookie value (if undefined, cookie will be deleted)
- * @param {Object=} options Object with options that need to be stored for the cookie.
- */
-function $$CookieWriter($document, $log, $browser) {
- var cookiePath = $browser.baseHref();
- var rawDocument = $document[0];
-
- function buildCookieString(name, value, options) {
- var path, expires;
- options = options || {};
- expires = options.expires;
- path = angular.isDefined(options.path) ? options.path : cookiePath;
- if (angular.isUndefined(value)) {
- expires = 'Thu, 01 Jan 1970 00:00:00 GMT';
- value = '';
- }
- if (angular.isString(expires)) {
- expires = new Date(expires);
- }
-
- var str = encodeURIComponent(name) + '=' + encodeURIComponent(value);
- str += path ? ';path=' + path : '';
- str += options.domain ? ';domain=' + options.domain : '';
- str += expires ? ';expires=' + expires.toUTCString() : '';
- str += options.secure ? ';secure' : '';
-
- // per http://www.ietf.org/rfc/rfc2109.txt browser must allow at minimum:
- // - 300 cookies
- // - 20 cookies per unique domain
- // - 4096 bytes per cookie
- var cookieLength = str.length + 1;
- if (cookieLength > 4096) {
- $log.warn("Cookie '" + name +
- "' possibly not set or overflowed because it was too large (" +
- cookieLength + " > 4096 bytes)!");
- }
-
- return str;
- }
-
- return function(name, value, options) {
- rawDocument.cookie = buildCookieString(name, value, options);
- };
-}
-
-$$CookieWriter.$inject = ['$document', '$log', '$browser'];
-
-angular.module('ngCookies').provider('$$cookieWriter', function $$CookieWriterProvider() {
- this.$get = $$CookieWriter;
-});
-
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.min.js b/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.min.js
deleted file mode 100644
index d0f126a9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.min.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- AngularJS v1.5.0
- (c) 2010-2016 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(p,c,n){'use strict';function l(b,a,g){var d=g.baseHref(),k=b[0];return function(b,e,f){var g,h;f=f||{};h=f.expires;g=c.isDefined(f.path)?f.path:d;c.isUndefined(e)&&(h="Thu, 01 Jan 1970 00:00:00 GMT",e="");c.isString(h)&&(h=new Date(h));e=encodeURIComponent(b)+"="+encodeURIComponent(e);e=e+(g?";path="+g:"")+(f.domain?";domain="+f.domain:"");e+=h?";expires="+h.toUTCString():"";e+=f.secure?";secure":"";f=e.length+1;4096<f&&a.warn("Cookie '"+b+"' possibly not set or overflowed because it was too large ("+
-f+" > 4096 bytes)!");k.cookie=e}}c.module("ngCookies",["ng"]).provider("$cookies",[function(){var b=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(a,g){return{get:function(d){return a()[d]},getObject:function(d){return(d=this.get(d))?c.fromJson(d):d},getAll:function(){return a()},put:function(d,a,m){g(d,a,m?c.extend({},b,m):b)},putObject:function(d,b,a){this.put(d,c.toJson(b),a)},remove:function(a,k){g(a,n,k?c.extend({},b,k):b)}}}]}]);c.module("ngCookies").factory("$cookieStore",
-["$cookies",function(b){return{get:function(a){return b.getObject(a)},put:function(a,c){b.putObject(a,c)},remove:function(a){b.remove(a)}}}]);l.$inject=["$document","$log","$browser"];c.module("ngCookies").provider("$$cookieWriter",function(){this.$get=l})})(window,window.angular);
-//# sourceMappingURL=angular-cookies.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.min.js.map b/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.min.js.map
deleted file mode 100644
index 555b5103..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cookies/angular-cookies.min.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-"version":3,
-"file":"angular-cookies.min.js",
-"lineCount":8,
-"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA2QtCC,QAASA,EAAc,CAACC,CAAD,CAAYC,CAAZ,CAAkBC,CAAlB,CAA4B,CACjD,IAAIC,EAAaD,CAAAE,SAAA,EAAjB,CACIC,EAAcL,CAAA,CAAU,CAAV,CAmClB,OAAO,SAAQ,CAACM,CAAD,CAAOC,CAAP,CAAcC,CAAd,CAAuB,CAjCW,IAC3CC,CAD2C,CACrCC,CACVF,EAAA,CAgCoDA,CAhCpD,EAAqB,EACrBE,EAAA,CAAUF,CAAAE,QACVD,EAAA,CAAOZ,CAAAc,UAAA,CAAkBH,CAAAC,KAAlB,CAAA,CAAkCD,CAAAC,KAAlC,CAAiDN,CACpDN,EAAAe,YAAA,CAAoBL,CAApB,CAAJ,GACEG,CACA,CADU,+BACV,CAAAH,CAAA,CAAQ,EAFV,CAIIV,EAAAgB,SAAA,CAAiBH,CAAjB,CAAJ,GACEA,CADF,CACY,IAAII,IAAJ,CAASJ,CAAT,CADZ,CAIIK,EAAAA,CAAMC,kBAAA,CAqB6BV,CArB7B,CAANS,CAAiC,GAAjCA,CAAuCC,kBAAA,CAAmBT,CAAnB,CAE3CQ,EAAA,CADAA,CACA,EADON,CAAA,CAAO,QAAP,CAAkBA,CAAlB,CAAyB,EAChC,GAAOD,CAAAS,OAAA,CAAiB,UAAjB,CAA8BT,CAAAS,OAA9B,CAA+C,EAAtD,CACAF,EAAA,EAAOL,CAAA,CAAU,WAAV,CAAwBA,CAAAQ,YAAA,EAAxB,CAAgD,EACvDH,EAAA,EAAOP,CAAAW,OAAA,CAAiB,SAAjB,CAA6B,EAMhCC,EAAAA,CAAeL,CAAAM,OAAfD,CAA4B,CACb,KAAnB,CAAIA,CAAJ,EACEnB,CAAAqB,KAAA,CAAU,UAAV,CASqChB,CATrC,CACE,6DADF;AAEEc,CAFF,CAEiB,iBAFjB,CASFf,EAAAkB,OAAA,CAJOR,CAG6B,CArCW,CAzPnDlB,CAAA2B,OAAA,CAAe,WAAf,CAA4B,CAAC,IAAD,CAA5B,CAAAC,SAAA,CAOY,UAPZ,CAOwB,CAACC,QAAyB,EAAG,CAwBjD,IAAIC,EAAW,IAAAA,SAAXA,CAA2B,EAiC/B,KAAAC,KAAA,CAAY,CAAC,gBAAD,CAAmB,gBAAnB,CAAqC,QAAQ,CAACC,CAAD,CAAiBC,CAAjB,CAAiC,CACxF,MAAO,CAWLC,IAAKA,QAAQ,CAACC,CAAD,CAAM,CACjB,MAAOH,EAAA,EAAA,CAAiBG,CAAjB,CADU,CAXd,CAyBLC,UAAWA,QAAQ,CAACD,CAAD,CAAM,CAEvB,MAAO,CADHzB,CACG,CADK,IAAAwB,IAAA,CAASC,CAAT,CACL,EAAQnC,CAAAqC,SAAA,CAAiB3B,CAAjB,CAAR,CAAkCA,CAFlB,CAzBpB,CAuCL4B,OAAQA,QAAQ,EAAG,CACjB,MAAON,EAAA,EADU,CAvCd,CAuDLO,IAAKA,QAAQ,CAACJ,CAAD,CAAMzB,CAAN,CAAaC,CAAb,CAAsB,CACjCsB,CAAA,CAAeE,CAAf,CAAoBzB,CAApB,CAAuCC,CAvFpC,CAAUX,CAAAwC,OAAA,CAAe,EAAf,CAAmBV,CAAnB,CAuF0BnB,CAvF1B,CAAV,CAAkDmB,CAuFrD,CADiC,CAvD9B,CAuELW,UAAWA,QAAQ,CAACN,CAAD,CAAMzB,CAAN,CAAaC,CAAb,CAAsB,CACvC,IAAA4B,IAAA,CAASJ,CAAT,CAAcnC,CAAA0C,OAAA,CAAehC,CAAf,CAAd,CAAqCC,CAArC,CADuC,CAvEpC,CAsFLgC,OAAQA,QAAQ,CAACR,CAAD,CAAMxB,CAAN,CAAe,CAC7BsB,CAAA,CAAeE,CAAf,CAAoBlC,CAApB,CAA2CU,CAtHxC,CAAUX,CAAAwC,OAAA,CAAe,EAAf,CAAmBV,CAAnB,CAsH8BnB,CAtH9B,CAAV,CAAkDmB,CAsHrD,CAD6B,CAtF1B,CADiF,CAA9E,CAzDqC,CAA7B,CAPxB,CA8JA9B,EAAA2B,OAAA,CAAe,WAAf,CAAAiB,QAAA,CAiCS,cAjCT;AAiCyB,CAAC,UAAD,CAAa,QAAQ,CAACC,CAAD,CAAW,CAErD,MAAO,CAWLX,IAAKA,QAAQ,CAACC,CAAD,CAAM,CACjB,MAAOU,EAAAT,UAAA,CAAmBD,CAAnB,CADU,CAXd,CAyBLI,IAAKA,QAAQ,CAACJ,CAAD,CAAMzB,CAAN,CAAa,CACxBmC,CAAAJ,UAAA,CAAmBN,CAAnB,CAAwBzB,CAAxB,CADwB,CAzBrB,CAsCLiC,OAAQA,QAAQ,CAACR,CAAD,CAAM,CACpBU,CAAAF,OAAA,CAAgBR,CAAhB,CADoB,CAtCjB,CAF8C,CAAhC,CAjCzB,CAqIAjC,EAAA4C,QAAA,CAAyB,CAAC,WAAD,CAAc,MAAd,CAAsB,UAAtB,CAEzB9C,EAAA2B,OAAA,CAAe,WAAf,CAAAC,SAAA,CAAqC,gBAArC,CAAuDmB,QAA+B,EAAG,CACvF,IAAAhB,KAAA,CAAY7B,CAD2E,CAAzF,CAvTsC,CAArC,CAAD,CA4TGH,MA5TH,CA4TWA,MAAAC,QA5TX;",
-"sources":["angular-cookies.js"],
-"names":["window","angular","undefined","$$CookieWriter","$document","$log","$browser","cookiePath","baseHref","rawDocument","name","value","options","path","expires","isDefined","isUndefined","isString","Date","str","encodeURIComponent","domain","toUTCString","secure","cookieLength","length","warn","cookie","module","provider","$CookiesProvider","defaults","$get","$$cookieReader","$$cookieWriter","get","key","getObject","fromJson","getAll","put","extend","putObject","toJson","remove","factory","$cookies","$inject","$$CookieWriterProvider"]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-cookies/bower.json b/ecomp-portal-FE/client/bower_components/angular-cookies/bower.json
deleted file mode 100644
index 2171b173..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cookies/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-cookies",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-cookies.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-cookies/index.js b/ecomp-portal-FE/client/bower_components/angular-cookies/index.js
deleted file mode 100644
index 65766754..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cookies/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-cookies');
-module.exports = 'ngCookies';
diff --git a/ecomp-portal-FE/client/bower_components/angular-cookies/package.json b/ecomp-portal-FE/client/bower_components/angular-cookies/package.json
deleted file mode 100644
index ea0fb55c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-cookies/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "angular-cookies",
- "version": "1.5.0",
- "description": "AngularJS module for cookies",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "cookies",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org"
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/.bower.json b/ecomp-portal-FE/client/bower_components/angular-gestures/.bower.json
deleted file mode 100644
index 11ffa80f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-gestures/.bower.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "angular-gestures",
- "description": "AngularJS directive that adds support for multi touch gestures to your app. Based on hammer.js.",
- "version": "0.3.1",
- "main": [
- "gestures.min.js"
- ],
- "homepage": "http://github.com/wzr1337/angular-gestures",
- "repository": {
- "type": "git",
- "url": "git://github.com/wzr1337/bower-angular-gestures"
- },
- "author": "wzr1337",
- "license": "MIT",
- "readmeFilename": "README.md",
- "dependencies": {
- "angular": ">=1.2.0 <=1.4.0",
- "hammerjs": "~2.0.0"
- },
- "devDependencies": {
- "angular-mocks": ">=1.2.0 <=1.4.0"
- },
- "_release": "0.3.1",
- "_resolution": {
- "type": "version",
- "tag": "0.3.1",
- "commit": "cc39f1235f3f68d579853bad101455a5d2c6165e"
- },
- "_source": "https://github.com/wzr1337/bower-angular-gestures.git",
- "_target": "*",
- "_originalSource": "angular-gestures"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/LICENSE.md b/ecomp-portal-FE/client/bower_components/angular-gestures/LICENSE.md
deleted file mode 100644
index 4347861c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-gestures/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-## The MIT License
-
-Copyright (c) 2012-2013 Patrick Bartsch
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE. \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/README.md b/ecomp-portal-FE/client/bower_components/angular-gestures/README.md
deleted file mode 100644
index 89e74389..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-gestures/README.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# angular-gestures
-
-AngularJS directive that adds support for multi touch gestures to your app, based on hammer.js.
-
-## Usage
-
-* Include `gestures.js` or `gestures.min.js` into your page
-* Declare `'angular-gestures'` as a dependency for your angular app: `angular.module('myApp', ['angular-gestures']);`
-* Use attributes on containers the same way you use `ng-click`: e.g. `hm-tap`
-```HTML
-<button hm-tap="add_something()">Tap me</button>
-```
-* You can use angular interpolations like this : `hm-swipe="remove_something({{ id }})"`
-* You can also use Hammer.js options by e.g. `hm-tap-opts="{hold: false}"`
-
-### Event data
-
-Pass the `$event` object in the usual way e.g. `hm-drag="myDrag($event)"` then access its internals like so:
-```JS
-$scope.myDrag = function(event) {
- console.log(event.gesture);
-}
-```
-Refer to the [Hammer.js docs](https://github.com/EightMedia/hammer.js/wiki/Getting-Started) for more details on the properties of `event`.
-
-## Supported events
-
-
-* hmDoubleTap : 'doubletap',
-* hmDragstart : 'dragstart',
-* hmDrag : 'drag',
-* hmDragUp : 'dragup',
-* hmDragDown : 'dragdown',
-* hmDragLeft : 'dragleft',
-* hmDragRight : 'dragright',
-* hmDragend : 'dragend',
-* hmHold : 'hold',
-* hmPinch : 'pinch',
-* hmPinchIn : 'pinchin',
-* hmPinchOut : 'pinchout',
-* hmRelease : 'release',
-* hmRotate : 'rotate',
-* hmSwipe : 'swipe',
-* hmSwipeUp : 'swipeup',
-* hmSwipeDown : 'swipedown',
-* hmSwipeLeft : 'swipeleft',
-* hmSwipeRight : 'swiperight',
-* hmTap : 'tap',
-* hmTouch : 'touch',
-* hmTransformstart : 'transformstart',
-* hmTransform : 'transform',
-* hmTransformend : 'transformend'
-
-
-All [Hammerjs events](https://github.com/EightMedia/hammer.js/wiki/Getting-Started) are supported. The corresponding Angularjs attribute has `hm-` prepended to the name. So for example, the 'doubletap' event becomes `hm-double-tap` etc.
-
-*Attention* : *end and *start events are NOT CamelCased because of issues caused by $animate interference.
-
-## Default options
-To set recognizer default options you can use `hammerDefaultOptsProvider`. Access it like in the demo:
-
-```
-angular.module('angularGesturesDemoApp', ['angular-gestures', 'ngRoute'])
- .config(function ($routeProvider, hammerDefaultOptsProvider) {
- $routeProvider
- .when('/', {
- templateUrl: 'views/main.html',
- controller: 'MainCtrl'
- })
- .otherwise({
- redirectTo: '/'
- });
- hammerDefaultOptsProvider.set({
- recognizers: [[Hammer.Tap, {time: 250}]]
- });
- });
-```
-
-## Bower
-If you want to use angular-momentum-scroll with bower, add the following dependency to your component.json
-
-`"angular-gestures": "latest"`
diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/bower.json b/ecomp-portal-FE/client/bower_components/angular-gestures/bower.json
deleted file mode 100644
index 78f484e1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-gestures/bower.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "angular-gestures",
- "description": "AngularJS directive that adds support for multi touch gestures to your app. Based on hammer.js.",
- "version": "0.3.1",
- "main": [
- "gestures.min.js"
- ],
- "homepage": "http://github.com/wzr1337/angular-gestures",
- "repository": {
- "type": "git",
- "url": "git://github.com/wzr1337/bower-angular-gestures"
- },
- "author": "wzr1337",
- "license": "MIT",
- "readmeFilename": "README.md",
- "dependencies": {
- "angular": ">=1.2.0 <=1.4.0",
- "hammerjs": "~2.0.0"
- },
- "devDependencies": {
- "angular-mocks": ">=1.2.0 <=1.4.0"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.js b/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.js
deleted file mode 100644
index 68d78eb9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.js
+++ /dev/null
@@ -1,158 +0,0 @@
-'use strict';
-
-angular.module('angular-gestures', []);
-
-/**
- * Inspired by AngularJS' implementation of "click dblclick mousedown..."
- *
- * This ties in the Hammer 2 events to attributes like:
- *
- * hm-tap="add_something()" hm-swipe="remove_something()"
- *
- * and also has support for Hammer options with:
- *
- * hm-tap-opts="{hold: false}"
- *
- * or any other of the "hm-event" listed underneath.
- */
-var HGESTURES = {
- hmDoubleTap: 'doubletap',
- hmDragstart: 'panstart', // will bedeprecated soon, us Pan*
- hmDrag: 'pan', // will bedeprecated soon, us Pan*
- hmDragUp: 'panup', // will bedeprecated soon, us Pan*
- hmDragDown: 'pandown', // will bedeprecated soon, us Pan*
- hmDragLeft: 'panleft', // will bedeprecated soon, us Pan*
- hmDragRight: 'panright', // will bedeprecated soon, us Pan*
- hmDragend: 'panend', // will bedeprecated soon, us Pan*
- hmPanstart: 'panstart',
- hmPan: 'pan',
- hmPanUp: 'panup',
- hmPanDown: 'pandown',
- hmPanLeft: 'panleft',
- hmPanRight: 'panright',
- hmPanend: 'panend',
- hmHold: 'press',
- hmPinch: 'pinch',
- hmPinchIn: 'pinchin',
- hmPinchOut: 'pinchout',
- hmPress: 'press',
- hmRelease: 'release',
- hmRotate: 'rotate',
- hmSwipe: 'swipe',
- hmSwipeUp: 'swipeup',
- hmSwipeDown: 'swipedown',
- hmSwipeLeft: 'swipeleft',
- hmSwipeRight: 'swiperight',
- hmTap: 'tap',
- hmTouch: 'touch',
- hmTransformstart: 'transformstart',
- hmTransform: 'transform',
- hmTransformend: 'transformend'
- };
-
-var HRECOGNIZERS = {
- hmDoubleTap: [Hammer.Tap, 'Hammer.Tap'],
- hmDragstart: [Hammer.Pan, 'Hammer.Pan'],
- hmDrag: [Hammer.Pan, 'Hammer.Pan'],
- hmDragUp: [Hammer.Pan, 'Hammer.Pan'],
- hmDragDown: [Hammer.Pan, 'Hammer.Pan'],
- hmDragLeft: [Hammer.Pan, 'Hammer.Pan'],
- hmDragRight: [Hammer.Pan, 'Hammer.Pan'],
- hmDragend: [Hammer.Pan, 'Hammer.Pan'],
- hmPanstart: [Hammer.Pan, 'Hammer.Pan'],
- hmPan: [Hammer.Pan, 'Hammer.Pan'],
- hmPanUp: [Hammer.Pan, 'Hammer.Pan'],
- hmPanDown: [Hammer.Pan, 'Hammer.Pan'],
- hmPanLeft: [Hammer.Pan, 'Hammer.Pan'],
- hmPanRight: [Hammer.Pan, 'Hammer.Pan'],
- hmPanend: [Hammer.Pan, 'Hammer.Pan'],
- hmHold: [Hammer.Press, 'Hammer.Press'],
- hmPinch: [Hammer.Pinch, 'Hammer.Pinch'],
- hmPinchIn: [Hammer.Pinch, 'Hammer.Pinch'],
- hmPinchOut: [Hammer.Pinch, 'Hammer.Pinch'],
- hmPress: [Hammer.Press, 'Hammer.Press'],
- hmRotate: [Hammer.Rotate, 'Hammer.Rotate'],
- hmSwipe: [Hammer.Swipe, 'Hammer.Swipe'],
- hmSwipeUp: [Hammer.Swipe, 'Hammer.Swipe'],
- hmSwipeDown: [Hammer.Swipe, 'Hammer.Swipe'],
- hmSwipeLeft: [Hammer.Swipe, 'Hammer.Swipe'],
- hmSwipeRight: [Hammer.Swipe, 'Hammer.Swipe'],
- hmTap: [Hammer.Tap, 'Hammer.Tap']
- };
-
-var VERBOSE = false;
-
-angular.forEach(HGESTURES, function(eventName, directiveName) {
- angular.module('angular-gestures').directive(directiveName, ['$parse', '$log', '$timeout', 'hammerDefaultOpts', function($parse, $log, $timeout, hammerDefaultOpts) {
- return function(scope, element, attr) {
- var handler;
- attr.$observe(directiveName, function(value) {
- var callback = $parse(value);
- var opts = $parse(attr[directiveName + 'Opts'])(scope, {});
- var defaultOpts = angular.copy(hammerDefaultOpts);
-
- angular.extend(defaultOpts, opts);
-
- if (angular.isUndefined(element.hammertime)) {
-
- // validate that needed recognizer is enabled
- var recognizers = angular.isDefined(defaultOpts.recognizers) ? defaultOpts.recognizers : [];
- var recognizer = HRECOGNIZERS[directiveName];
- if(angular.isDefined(recognizer)) {
- var enabled = false;
- angular.forEach(recognizers, function(r) {
- if (recognizer[0] === r[0]) {
- if (angular.isUndefined(r[1].enable) || r[1].enable === true) {
- enabled = true;
- }
- }
- });
- if (!enabled) {
- throw new Error('Directive ' + directiveName + ' requires gesture recognizer [' + recognizer[1] + '] to be enabled');
- }
- }
-
- element.hammer = new Hammer.Manager(element[0], defaultOpts);
- scope.$on('$destroy', function() {
- element.hammer.off(eventName);
- element.hammer.destroy();
- });
- }
-
- handler = function(event) {
- if (VERBOSE) {
- $log.debug('angular-gestures: ', eventName, event);
- }
- var callbackHandler = function () {
- var cb = callback(scope, { $event : event});
- if (typeof cb === 'function') {
- cb.call(scope, event);
- }
- };
-
- if (scope.$root.$$phase === '$apply' ||
- scope.$root.$$phase === '$digest') {
- callbackHandler();
- } else {
- scope.$apply(callbackHandler);
- }
-
- };
- // register actual event
- element.hammer.on(eventName, handler);
- });
- };
- }]);
- });
-
-angular.module('angular-gestures').provider('hammerDefaultOpts', function HammerDefaultOptsProvider() {
- var opts = {};
-
- this.set = function(value) {
- opts = value;
- };
-
- this.$get = function() {
- return opts;
- };
- });
diff --git a/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.min.js b/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.min.js
deleted file mode 100644
index 3ad4b593..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-gestures/gestures.min.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";angular.module("angular-gestures",[]);var HGESTURES={hmDoubleTap:"doubletap",hmDragstart:"panstart",hmDrag:"pan",hmDragUp:"panup",hmDragDown:"pandown",hmDragLeft:"panleft",hmDragRight:"panright",hmDragend:"panend",hmPanstart:"panstart",hmPan:"pan",hmPanUp:"panup",hmPanDown:"pandown",hmPanLeft:"panleft",hmPanRight:"panright",hmPanend:"panend",hmHold:"press",hmPinch:"pinch",hmPinchIn:"pinchin",hmPinchOut:"pinchout",hmPress:"press",hmRelease:"release",hmRotate:"rotate",hmSwipe:"swipe",hmSwipeUp:"swipeup",hmSwipeDown:"swipedown",hmSwipeLeft:"swipeleft",hmSwipeRight:"swiperight",hmTap:"tap",hmTouch:"touch",hmTransformstart:"transformstart",hmTransform:"transform",hmTransformend:"transformend"},HRECOGNIZERS={hmDoubleTap:[Hammer.Tap,"Hammer.Tap"],hmDragstart:[Hammer.Pan,"Hammer.Pan"],hmDrag:[Hammer.Pan,"Hammer.Pan"],hmDragUp:[Hammer.Pan,"Hammer.Pan"],hmDragDown:[Hammer.Pan,"Hammer.Pan"],hmDragLeft:[Hammer.Pan,"Hammer.Pan"],hmDragRight:[Hammer.Pan,"Hammer.Pan"],hmDragend:[Hammer.Pan,"Hammer.Pan"],hmPanstart:[Hammer.Pan,"Hammer.Pan"],hmPan:[Hammer.Pan,"Hammer.Pan"],hmPanUp:[Hammer.Pan,"Hammer.Pan"],hmPanDown:[Hammer.Pan,"Hammer.Pan"],hmPanLeft:[Hammer.Pan,"Hammer.Pan"],hmPanRight:[Hammer.Pan,"Hammer.Pan"],hmPanend:[Hammer.Pan,"Hammer.Pan"],hmHold:[Hammer.Press,"Hammer.Press"],hmPinch:[Hammer.Pinch,"Hammer.Pinch"],hmPinchIn:[Hammer.Pinch,"Hammer.Pinch"],hmPinchOut:[Hammer.Pinch,"Hammer.Pinch"],hmPress:[Hammer.Press,"Hammer.Press"],hmRotate:[Hammer.Rotate,"Hammer.Rotate"],hmSwipe:[Hammer.Swipe,"Hammer.Swipe"],hmSwipeUp:[Hammer.Swipe,"Hammer.Swipe"],hmSwipeDown:[Hammer.Swipe,"Hammer.Swipe"],hmSwipeLeft:[Hammer.Swipe,"Hammer.Swipe"],hmSwipeRight:[Hammer.Swipe,"Hammer.Swipe"],hmTap:[Hammer.Tap,"Hammer.Tap"]},VERBOSE=!1;angular.forEach(HGESTURES,function(a,b){angular.module("angular-gestures").directive(b,["$parse","$log","$timeout","hammerDefaultOpts",function(c,d,e,f){return function(e,g,h){var i;h.$observe(b,function(j){var k=c(j),l=c(h[b+"Opts"])(e,{}),m=angular.copy(f);if(angular.extend(m,l),angular.isUndefined(g.hammertime)){var n=angular.isDefined(m.recognizers)?m.recognizers:[],o=HRECOGNIZERS[b];if(angular.isDefined(o)){var p=!1;if(angular.forEach(n,function(a){o[0]===a[0]&&(angular.isUndefined(a[1].enable)||a[1].enable===!0)&&(p=!0)}),!p)throw new Error("Directive "+b+" requires gesture recognizer ["+o[1]+"] to be enabled")}g.hammer=new Hammer.Manager(g[0],m),e.$on("$destroy",function(){g.hammer.off(a),g.hammer.destroy()})}i=function(b){VERBOSE&&d.debug("angular-gestures: ",a,b);var c=function(){var a=k(e,{$event:b});"function"==typeof a&&a.call(e,b)};"$apply"===e.$root.$$phase||"$digest"===e.$root.$$phase?c():e.$apply(c)},g.hammer.on(a,i)})}}])}),angular.module("angular-gestures").provider("hammerDefaultOpts",function(){var a={};this.set=function(b){a=b},this.$get=function(){return a}}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/.bower.json b/ecomp-portal-FE/client/bower_components/angular-material/.bower.json
deleted file mode 100644
index 24f568de..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/.bower.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "angular-material",
- "version": "0.9.8",
- "ignore": [],
- "dependencies": {
- "angular": "^1.3.0 || >1.4.0-beta.0",
- "angular-animate": "^1.3.0 || >1.4.0-beta.0",
- "angular-aria": "^1.3.15 || >1.4.0-beta.0"
- },
- "main": [
- "angular-material.js",
- "angular-material.css"
- ],
- "homepage": "https://github.com/angular/bower-material",
- "_release": "0.9.8",
- "_resolution": {
- "type": "version",
- "tag": "v0.9.8",
- "commit": "5f7de8ced18d4663d7a90caecf620fc1f8a66568"
- },
- "_source": "https://github.com/angular/bower-material.git",
- "_target": "0.9.8",
- "_originalSource": "angular-material"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/.gitignore b/ecomp-portal-FE/client/bower_components/angular-material/.gitignore
deleted file mode 100644
index f45564b6..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-*.log
-*.sw*
-.DS_STORE
-/.idea/
-default-theme.css
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/CHANGELOG.md b/ecomp-portal-FE/client/bower_components/angular-material/CHANGELOG.md
deleted file mode 100644
index 75a8cb43..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/CHANGELOG.md
+++ /dev/null
@@ -1,1543 +0,0 @@
-<a name="0.9.8"></a>
-### 0.9.8 (2015-06-08)
-
-
-#### Bug Fixes
-
-* **tabs:**
- * prevents tabs from shrinking when used with flexbox ([dd041927](https://github.com/angular/material/commit/dd0419277523a44f8d06e45dc3c31b2afb3c8101), closes [#3011](https://github.com/angular/material/issues/3011))
- * prevents select/deselect events from firing on destroy ([1ba0686e](https://github.com/angular/material/commit/1ba0686e7b42fef6072d011bf2f61fc3576a2017))
-
-
-<a name="0.9.8-rc1"></a>
-### 0.9.8-rc1 (2015-06-05)
-
-
-#### Features
-
-* **autocomplete:** custom template demo ([7d2deb7e](https://github.com/angular/material/commit/7d2deb7ec702dac7999ae6b0fdba966c497e46ca), closes [#2505](https://github.com/angular/material/issues/2505))
-* **docs:**
- * Use $scope instead of scope ([9683d66b](https://github.com/angular/material/commit/9683d66b9be37db753b5bca56d4531b35c99422f), closes [#2788](https://github.com/angular/material/issues/2788))
- * css customizations for buttons ([91c86c63](https://github.com/angular/material/commit/91c86c63e2aec579c9043fec1e548980eb8aa005))
-* **icons:** api changes for font-icons ([498048dc](https://github.com/angular/material/commit/498048dc9e340b98a001ea3223a25c42a556e747))
-* **tabs:**
- * adds an opt-out option for disconnecting tab scopes ([4c1bf4b6](https://github.com/angular/material/commit/4c1bf4b6850d09ba27ffe744e7bdc50e435a6ccf))
- * makes swipe gestures on the content area opt-in ([03d01e96](https://github.com/angular/material/commit/03d01e96623de397ef171c063b7a8a56656fe0de), closes [#2331](https://github.com/angular/material/issues/2331))
-* **theming:** reduce specificity of default-theme selectors ([8468c600](https://github.com/angular/material/commit/8468c6008c10f8d218af057ab31f519efffad8d5))
-
-
-#### Breaking Changes
-
-* Tabs will now require the `md-swipe-content` attribute in order to enable swipe gestures to change tabs in the content area.
-
- ([03d01e96](https://github.com/angular/material/commit/03d01e96623de397ef171c063b7a8a56656fe0de))
-
-
-#### Bug Fixes
-
-* add missing alt attribute to logo in docs ([19ad66d1](https://github.com/angular/material/commit/19ad66d1a5954296de68d3f85d78a3522ff488e5))
-* **autocomplete:**
- * selecting an item will hide the menu in IE11 ([0c073d10](https://github.com/angular/material/commit/0c073d10a18409d1d1f900951e42ba35df79d81e), closes [#2188](https://github.com/angular/material/issues/2188), [#3008](https://github.com/angular/material/issues/3008))
- * removes flicker of 'not found' message with async results ([08532b40](https://github.com/angular/material/commit/08532b40a336cd6fbd5e73356fa5142fbb305ca7))
- * adds cleanup step when autocomplete is destroyed ([e3a82c92](https://github.com/angular/material/commit/e3a82c92af2679e92e3b7f23deeffedf064e1a3c), closes [#2624](https://github.com/angular/material/issues/2624))
- * fixes positioning of progress bar ([85a75909](https://github.com/angular/material/commit/85a75909aad3cbac28defd3ec7a2ef45ea81ee0a), closes [#3115](https://github.com/angular/material/issues/3115))
- * updates docs, removes `clear` button when using a floating label ([86b4afab](https://github.com/angular/material/commit/86b4afabf3fbe210635426af29ac73d2e03b70a1), closes [#2727](https://github.com/angular/material/issues/2727))
- * selecting a value will now flag the form/input as `$dirty` ([217cae1f](https://github.com/angular/material/commit/217cae1f599c842687c1d2a19056df3820c06d96), closes [#2753](https://github.com/angular/material/issues/2753))
-* **list:** support empty list-item(s) ([e9ad5491](https://github.com/angular/material/commit/e9ad5491a3bfbfe5802b580ba7e570f03585db6e), closes [#2649](https://github.com/angular/material/issues/2649))
-* **slider:**
- * fix for attributes being ignored ([07295879](https://github.com/angular/material/commit/072958796a64c2175de9e4cb0de10a8025f0dc7c))
- * increment the value properly when step is a decimal number ([476d068c](https://github.com/angular/material/commit/476d068c6f6e204d2c0797be08346076154a9029), closes [#2015](https://github.com/angular/material/issues/2015))
-* **styles:** fixes theming specificy regarding border colors ([264f043e](https://github.com/angular/material/commit/264f043e4220d13f74fef013081c68dcd878c12d))
-* **tabs:** fixes continuous `$digest` bug in Firefox when using `md-stretch-tabs` ([5372710a](https://github.com/angular/material/commit/5372710a7a4764a908f08deeb06481ae71e539d3), closes [#3101](https://github.com/angular/material/issues/3101))
-* **tooltip:**
- * moves tooltip to the $rootElement rather than body or md-content ([32b0facc](https://github.com/angular/material/commit/32b0facc0b971f12f777f8f7b7392db1e5c5e091))
- * tooltip will attach to the body rather than $rootElement ([24ca2966](https://github.com/angular/material/commit/24ca2966cf08a56aad59f4f60b186664fcd7e7f3))
-
-
-<a name="0.9.7"></a>
-### 0.9.7 (2015-06-01)
-
-
-#### Features
-
-* **autocomplete:** adds support for validation/ng-messages ([1f0a8450](https://github.com/angular/material/commit/1f0a845033df53244c54b47b42173fb37241586c), closes [#2808](https://github.com/angular/material/issues/2808), [#2664](https://github.com/angular/material/issues/2664))
-* **icons:** add support for font-icons with ligatures and Material-Icon demos ([a1074907](https://github.com/angular/material/commit/a10749074ee05b5f12685c546c52165bf7420eb9), closes [#3059](https://github.com/angular/material/issues/3059))
-
-
-#### Breaking Changes
-
-* **autocomplete:** `name` attribute has been changed to `input-name` to more clearly show its purpose
-
-
-#### Bug Fixes
-
-* **autocomplete:**
- * only 2 messages will be displayed at any given time for autocomplete ([6b4e95ce](https://github.com/angular/material/commit/6b4e95ce23dded8787329cc0f394fe9178d5bc06), closes [#2785](https://github.com/angular/material/issues/2785))
- * prevents text from going under the `clear` button ([73e03a70](https://github.com/angular/material/commit/73e03a704124475cadb2eec5de09403c9a447186), closes [#2193](https://github.com/angular/material/issues/2193), [#2578](https://github.com/angular/material/issues/2578))
- * prevents error on keydown when menu is hidden ([a7dcfb6d](https://github.com/angular/material/commit/a7dcfb6d9427d0645ed98f53f9575925177dcbe6), closes [#2774](https://github.com/angular/material/issues/2774))
- * autocomplete will no longer show the dropdown on value changes when not focused ([c3ec08d8](https://github.com/angular/material/commit/c3ec08d8aa5ccfa95fec4f41a5be09369cd19f73), closes [#2756](https://github.com/angular/material/issues/2756))
-* **input:** update disabled underline styles ([8f2b2c68](https://github.com/angular/material/commit/8f2b2c6835feb151e362d9e135c795055f9a5ccd), closes [#2870](https://github.com/angular/material/issues/2870))
-* **progressLinear:** rewrites animation for progress linear ([1d478ebd](https://github.com/angular/material/commit/1d478ebd6e5c6ddb6453cc1a708064459075a75e), closes [#2762](https://github.com/angular/material/issues/2762))
-* **tabs:**
- * adds ui-sref/ng-href support to tabs ([6c53d112](https://github.com/angular/material/commit/6c53d1127fc1cb7d2a86802e5831642a40ff1e41), closes [#2344](https://github.com/angular/material/issues/2344))
- * updating dynamic tab labels will now be reflected ([8ac4fa1b](https://github.com/angular/material/commit/8ac4fa1b3f23f1f73125cc7e2425d349d7ad546e))
- * select/deselect events will now fire when a tab is removed but the index does no ([5e47b52b](https://github.com/angular/material/commit/5e47b52bd6a8817b2624ca6797b8267a162f84af), closes [#2837](https://github.com/angular/material/issues/2837))
- * initial state will now scroll to selected tab ([120c271b](https://github.com/angular/material/commit/120c271be0058ec96e676c34dd55baf53357ae6d), closes [#2838](https://github.com/angular/material/issues/2838))
-* **toolbar:** add h1 to toolbar tools headings ([c100ef10](https://github.com/angular/material/commit/c100ef10069f769f90d606792c68ca9042fe67a4))
-* **tooltip:**
- * pointer-events 'none' used properly with activate events ([667e4c24](https://github.com/angular/material/commit/667e4c244ccd9a1dfef6894a64b6df0c5e2f6305))
- * hide tooltip after mouseleave if focus is achieved through mousedown ([e73d290c](https://github.com/angular/material/commit/e73d290cc84f07612d0faf08aec014714f18011a))
-
-
-<a name="0.9.6"></a>
-### 0.9.6 (2015-05-28)
-
-
-#### Bug Fixes
-
-* **build:** fixes bug where versions in 0.9.5 comments were wrong. ([7a1ad41f](https://github.com/angular/material/commit/7a1ad41f3c1df6cb1dfa750cb817f166f02097ee))
-* **closure:** fixes issue in core.js where multiple `goog.provide` lines were included
-
-
-<a name="0.9.5"></a>
-### 0.9.5 (2015-05-28)
-
-
-#### Features
-
-* **accessibility:** additional Windows high-contrast styles ([37bc5b6f](https://github.com/angular/material/commit/37bc5b6f54bde618df8cfd9f85c0f860c811e451))
-* **button:** md-icon-button to use round ripple ([ab1e9e05](https://github.com/angular/material/commit/ab1e9e05908114fe5fb587f9b59aab4db749f9b3))
-* **listItem:** allow use of own md-buttons ([0ef4b79f](https://github.com/angular/material/commit/0ef4b79f53da91edc9f5591ceeb1950e73c50d3d))
-
-
-#### Breaking Changes
-
-* Removed attach(button|tab|checkbox|list)Behavior
- in favor of composing an injectable ripple service specific to
- your target. $mdInkRipple was too aware of how to configure
- components. You now have access to $mdButtonInkRipple,
- $mdTabInkRipple, $mdListInkRipple, $mdCheckboxInkRipple.
-
- Change your code from this:
- ``` javascript
- function MyService($mdInkRipple) {
- //... Included for brevity
- $mdInkRipple.attachButtonBehavior(scope, element, options);
- }
- ```
-
- To this:
- ``` javascript
- function MyService($mdButtonInkRipple) {
- //... Included for brevity
- $mdButtonInkRipple.attach(scope, element, options);
- }
- ```
-* **icons:** Default size for `md-icon` has been changed from `28px` to `24px`
-* **tabs:** Replaces pagination transition with `transform` rather than `left` for performance
-
- ([3b0f12e3](https://github.com/angular/material/commit/3b0f12e3b8e7c5b7ab78ea0b8672d1b1b54ef4b8))
-
-
-#### Bug Fixes
-
-* **autocomplete:**
- * uses $attr to support `data-` prefixed attributes ([1dc56a6c](https://github.com/angular/material/commit/1dc56a6cfae0ace6c20848f65c3d6262bb9973bb), closes [#2798](https://github.com/angular/material/issues/2798))
- * resolves xss bug with autocomplete text highlighter ([1538ebe9](https://github.com/angular/material/commit/1538ebe9c2d8b9aec84d1f556a9b4cfe5a38dc04), closes [#2901](https://github.com/angular/material/issues/2901))
- * pulls in text content as HTML to prevent it from being un-escaped ([33ac259d](https://github.com/angular/material/commit/33ac259d66c90e96489d0512ac762f969458f5bd))
-* **build:**
- * build will now update CHANGELOG in master ([859ceb18](https://github.com/angular/material/commit/859ceb1866094a85625de532ff578779712ff7d5))
- * fixes issue where release tag doesn't match release branch ([5f7b1e91](https://github.com/angular/material/commit/5f7b1e91d1575d89de8c228099b5213c7347cb48))
-* **button:** makes icon-buttons round for ripple and focus state ([98025aaf](https://github.com/angular/material/commit/98025aaf19796ca7c6c59ec37f37233a42787cc3))
-* **chips:** removes box-shadow from inline autocomplete ([bc407590](https://github.com/angular/material/commit/bc4075909baaa828b12d1327b7a57896e505c35a))
-* **demo:** use relative path to img src ([175fd54d](https://github.com/angular/material/commit/175fd54d16921e2263ac1f696be30ce58ea67a5d), closes [#2916](https://github.com/angular/material/issues/2916))
-* **docs:**
- * use source path for github url ([0a1ed581](https://github.com/angular/material/commit/0a1ed5813e07ea9807ee88f9047c6970593dc399), closes [#2900](https://github.com/angular/material/issues/2900))
- * use source rather than combined js ([fd8fcf22](https://github.com/angular/material/commit/fd8fcf22fa85ae8c9af59d59e9dc73be93d21c2b))
-* **list:** correctly proxy ng-disabled attrs ([a25bc0ea](https://github.com/angular/material/commit/a25bc0ea42cbaedd569d385d0c722702ae0bf60d))
-* **listItem:** fix ng-enter having animation ([41953d5a](https://github.com/angular/material/commit/41953d5a0ad3492082b3fd99a82e212c59e75750))
-* **md-icon:** change icon size back to 24px ([3b305a3d](https://github.com/angular/material/commit/3b305a3d5bb46e366c9b7bfb7a069ff040392529), closes [#2992](https://github.com/angular/material/issues/2992))
-* **minify:** tabsDirective template function works when minified ([c7ea4a78](https://github.com/angular/material/commit/c7ea4a7865dd1b6b128c88bfa57ea92b9a617afa))
-* **select:**
- * respect id attributes if assigned ([fc90fd31](https://github.com/angular/material/commit/fc90fd3173569f60acf53a2318fe453b42dd221a))
- * label not updating after objects resolved via promise ([74259976](https://github.com/angular/material/commit/742599769700e3a016db4454aa339bb3e35bf53f))
-* **subheader:** theme is applied to sticky clone ([e92686f0](https://github.com/angular/material/commit/e92686f0b400214ea0fd5209bff4923555a16bd4), closes [#2779](https://github.com/angular/material/issues/2779))
-* **tabs:**
- * re-adds disconnected scopes for tab content ([e6f19d48](https://github.com/angular/material/commit/e6f19d4868059cd48e3dfd811273cff36c3ef9a4))
- * uses `ng-if` to remove inactive tabs once their animation is complete ([8dcaea8a](https://github.com/angular/material/commit/8dcaea8af19a6dcc2d9cafdd2ebb4277e66e89ae))
- * replaces pagination transition with `transform` rather than `left` for performan ([a8ff2ad1](https://github.com/angular/material/commit/a8ff2ad1779bdeabb2d960f69ebde23470353989))
- * fix missing dependency ([0b35c9b4](https://github.com/angular/material/commit/0b35c9b4c068fe13071a0a85da08125e316093e4), closes [#2460](https://github.com/angular/material/issues/2460))
-* **theming:** remove bogus hue value from grey palette ([0c28cee2](https://github.com/angular/material/commit/0c28cee2aad29b47a7f6b93ca5c27bca0d833dc1))
-* **tooltip:** use label instead of aria-describedby ([198199c1](https://github.com/angular/material/commit/198199c1eae39dbc7d139db42c5d4d3919aaeab2))
-
-
-<a name="0.9.4"></a>
-### 0.9.4 (2015-05-15)
-
-This interim release **fixes** an incorrect deployment of `angular-material.js`; which added the Closure Library **Namespace** features using `goog.provide()`. Only source in `/modules/closure/**.js` should use this namespacing.
-#### Features
-
-* **build:** add script to snapshot docs site ([76e36722](https://github.com/angular/material/commit/76e36722e07846b518612e9073785a279b3027cd), closes [#2852](https://github.com/angular/material/issues/2852))
-
-
-#### Bug Fixes
-
-* **build:** fixes issue where JS files were being generated with Closure code ([ca940384](https://github.com/angular/material/commit/ca94038439982e81077020962042ec9f453dbf0e)), closes [#2852](https://github.com/angular/material/issues/2852))
-
-
-<a name="0.9.3"></a>
-### 0.9.3 (2015-05-14)
-
-This release is also using enhanced scripting to automate the build and release processes. Releases will now also deploy versioned docs to http://github.com/angular/code.material.angularjs.org.
-
-#### Bug Fixes
-
-* update rems to pixels ([08b89921](https://github.com/angular/material/commit/08b899210a963c87b1b70ccb88e2ee3191bc0647))
-* **autocomplete:** prevents `not found` message from displaying while results are loading ([3d5bd948](https://github.com/angular/material/commit/3d5bd94825688a6814266e7e1401b56e513f84c9))
-* **build:** enable build of component modules. ([8a886d79](https://github.com/angular/material/commit/8a886d7951e679174c7742d41a9a67c9f4462955))
-* **codepen:**
- * escape ampersand in &nbsp; ([0a5603f8](https://github.com/angular/material/commit/0a5603f8bc31c76012bf25e3657cb6f908f3bae1), closes [#2827](https://github.com/angular/material/issues/2827))
- * use https to avoid mixed content ([fbae0fcb](https://github.com/angular/material/commit/fbae0fcb697ecb959c3dc2922efe0fd8bb4a4124))
-* **dialog:**
- * remove dialog wrapper from tab order ([dcb12a7c](https://github.com/angular/material/commit/dcb12a7c5ea8177de6f473bfe7bbf5c6d939bb75), closes [#2712](https://github.com/angular/material/issues/2712))
- * styling custom dialog wrapped in form ([666630ca](https://github.com/angular/material/commit/666630cab10fff2bb66bd0e6aeec552b27352db5), closes [#2637](https://github.com/angular/material/issues/2637))
- * style cleanup, button sizing ([9110d1e1](https://github.com/angular/material/commit/9110d1e1ace0b3d420d4ed329e61bde104ddea0d), closes [#2671](https://github.com/angular/material/issues/2671))
-* **gesture:** fix conflicts with Ionic ([05788d24](https://github.com/angular/material/commit/05788d242412f7b7d3babfab3931c0ee5a03aca2), closes [#1528](https://github.com/angular/material/issues/1528), [#1528](https://github.com/angular/material/issues/1528))
-* **list:**
- * align icons to top ([a2b88bea](https://github.com/angular/material/commit/a2b88beae24127251c5844747b69f48ebeb120fa), closes [#2589](https://github.com/angular/material/issues/2589))
- * support aria-label for primary action ([e9324a9e](https://github.com/angular/material/commit/e9324a9ebf3ecabf0397a83a5275608600fa8115), closes [#2773](https://github.com/angular/material/issues/2773))
-* **tabs:**
- * corrects css bug with tab-data positioning ([a8fd0f4d](https://github.com/angular/material/commit/a8fd0f4dc14154b1b41137773e157b7574661cb8))
- * reordering tabs should now work ([5bc3f232](https://github.com/angular/material/commit/5bc3f232f1850d80ec3dbf9bb7fbcf93b173f8fc))
-* **tests:** performance improvements and fixes to jasmine testing ([786b0ed3](https://github.com/angular/material/commit/786b0ed3652b7460c2c802efa1aa79972bd96f5d), closes [#2800](https://github.com/angular/material/issues/2800))
-* **toolbar:** align last icon button to spec ([f988255d](https://github.com/angular/material/commit/f988255d1a95e998e7e62b1e7b4d7c7687016ccb), closes [#2497](https://github.com/angular/material/issues/2497))
-* **tooltip:** update to spec, remove max-width ([8c60d9c7](https://github.com/angular/material/commit/8c60d9c7a63ab8598e7367bf7ef2b31afe1bdae6), closes [#656](https://github.com/angular/material/issues/656))
-
-
-#### Features
-
-* **docs:** edit code example in codepen ([5c37dc8c](https://github.com/angular/material/commit/5c37dc8c54ddd0e6ca3bd138665c4997c8189b52), closes [#2604](https://github.com/angular/material/issues/2604))
-
-
-
-<br/>
-<br>
-
-<a name="0.9.0"></a>
-## 0.9.0 (2015-05-04)
-
-
-#### Features
-
-* **autocomplete:** adds support for messages to be displayed when no results are found ([e057e271](https://github.com/angular/material/commit/e057e27171f15b1923d740a27447e7fafa66673a), closes [#2574](https://github.com/angular/material/issues/2574), [#1525](https://github.com/angular/material/issues/1525))
-
-#### Breaking Changes
-
-* **styles:** removes global `line-height` and `font-size` from `html` and `body` ([666e3311](https://github.com/angular/material/commit/666e3311a8b66fb0910dc745192aaca23587bd29))
-* **icons:** namespaces built-in icons ([539ec5e3](https://github.com/angular/material/commit/539ec5e36281aa8a6f645376bcd4512911165fb9))
-* **gridlist:** `md-grid-tiles` must be direct children of `md-grid-list` ([5d9142ea](https://github.com/angular/material/commit/5d9142ea8d77e60350e8a7ddd02be6642218c0fa))
-
-
-#### Bug Fixes
-
-* **autocomplete:**
- * improves logic behind scrolling items into view on keyboard navigation ([211a31ea](https://github.com/angular/material/commit/211a31ea363a721240d23b9f591e7652ab5f313e), closes [#2615](https://github.com/angular/material/issues/2615))
- * addresses issue where dropdown shows if there is an initial value ([85846922](https://github.com/angular/material/commit/85846922934226d2d62646df06d96f644e332378), closes [#2517](https://github.com/angular/material/issues/2517))
- * fixes positioning issue with clear button ([1fcb79a6](https://github.com/angular/material/commit/1fcb79a6e56e2c8d337c2875eca3740a8aafb235), closes [#2593](https://github.com/angular/material/issues/2593))
-* **button:** disable warn and accent buttons ([973c4d75](https://github.com/angular/material/commit/973c4d75847479d670dff620e1cc3104435bbcfc), closes [#2586](https://github.com/angular/material/issues/2586))
-* **compiler:** make bindToController vars available to instantiation fn ([e414091a](https://github.com/angular/material/commit/e414091ac0272652217010ca64ad96389f657e46))
-* **dialog:** makes sure that body is not more than 100% height when dialog is showing ([6806f554](https://github.com/angular/material/commit/6806f5546bd51929793b77d86675725670fa7bea))
-* **gridlist:** noops layoutDelegate ([2b6dd4dc](https://github.com/angular/material/commit/2b6dd4dced54e62721a1339143cf7b8996ba9e88), closes [#2613](https://github.com/angular/material/issues/2613))
-* **icons:** namespaces built-in icons ([539ec5e3](https://github.com/angular/material/commit/539ec5e36281aa8a6f645376bcd4512911165fb9))
-* **input:**
- * minimize overlapping on iOS ([ea817874](https://github.com/angular/material/commit/ea817874b0b46fbae883e5191b234d1d4e38179c))
- * remove overflow-x causing drop on iOS ([f1df6dc0](https://github.com/angular/material/commit/f1df6dc09c20635d42ffaada32ae2f036666a5ba), closes [#2539](https://github.com/angular/material/issues/2539))
-* **list:** Do not ignore spaces in descendant textareas. ([f737fb04](https://github.com/angular/material/commit/f737fb04d4e93033365bb2a178c5ecbafaab42f0))
-* **select:**
- * fix theming ([7e0a2aaa](https://github.com/angular/material/commit/7e0a2aaaf79e87da6b7536fcf4bf66f4213227e9))
- * update rendering on option changes ([4e855c7f](https://github.com/angular/material/commit/4e855c7fb6dda3a24811597fdb10d2f62048920e))
- * expose and preserve aria-label ([bd3d8fba](https://github.com/angular/material/commit/bd3d8fba5045bd4cfda5a46463ea15ecd23a30fc), closes [#1893](https://github.com/angular/material/issues/1893))
- * rendering in input group ([aa9058fe](https://github.com/angular/material/commit/aa9058fe737f69d3d36fbffaebd7fb1774e9ee39))
-* **slider:** adds box-sizing to fix slider ripple positioning ([e982547b](https://github.com/angular/material/commit/e982547b0e8a0502c0180099e5a7b3f4c3431ffb))
-* **styles:** fixes rem syntax for negative values ([2fef6cad](https://github.com/angular/material/commit/2fef6cada79dc6a3b42f1ab14f8a143f7044ae48))
-* **tabs:**
- * fixes `md-center-tabs` css bug ([44e6984a](https://github.com/angular/material/commit/44e6984ad36544326cccbbf34aeeb08337b41e2c), closes [#2638](https://github.com/angular/material/issues/2638))
- * cleans up scope tree for tabs ([294e0664](https://github.com/angular/material/commit/294e06645c3a7b9323a95db10879844c0bbc9150), closes [#2600](https://github.com/angular/material/issues/2600))
-* **toolbar:**
- * prevents transition lag on ng-if/ng-hide/ng-show ([544cb270](https://github.com/angular/material/commit/544cb270c65f86b44d9f882460ca784d43546b30), closes [#2663](https://github.com/angular/material/issues/2663))
- * adds shadow when content moves under 'scroll shrink' toolbar ([92ed4657](https://github.com/angular/material/commit/92ed46578001eeb54c009bfc9f302be783f79137))
- * sets icon color to primary contrast color within toolbars ([8ea0dc1d](https://github.com/angular/material/commit/8ea0dc1da8f75d8fdb1262e955156e8a62119a90), closes [#2622](https://github.com/angular/material/issues/2622))
-
-
-<a name="0.9.0-rc3"></a>
-### 0.9.0-rc3 (2015-04-28)
-
-
-#### Features
-
-* **autocomplete:** allows tab or enter to select an item ([59015b09](https://github.com/angular/material/commit/59015b0991f06993b3eb70457716be97c7b6369d))
-* **button:** support angular-new-router ng-link ([4b9dcab5](https://github.com/angular/material/commit/4b9dcab5baf1e6794b8382ad997dc9047c58f3bd), closes [#2478](https://github.com/angular/material/issues/2478))
-* **tooltip:** Support hide-* show-* and user defined css using "display: none;" ([08132848](https://github.com/angular/material/commit/08132848b9702481a6dc46b0490ffa91646acdd2), closes [#2386](https://github.com/angular/material/issues/2386))
-
-
-#### Breaking Changes
-
-* content containers for `md-dialog` now require `md-dialog-content` to be more flexible with child content containers. This is more consistent with `md-card`, which uses `md-card-content`. ([9dc62403](https://github.com/angular/material/commit/9dc624033aac3714e97a8356b34508ffdcf02cf6))
-* md-input-containers no longer allow both label and placeholder to be used simultaneously. Now the placeholder value (if present) is transcluded as a label or ignored. When the placeholder value is ignored, a warning will be logged. ([d931c0d2](https://github.com/angular/material/commit/d931c0d237777c0197464277a5d8096bc3cbd698))
-
-
-#### Bug Fixes
-
-* **autocomplete:**
- * adds support for the new `$animate.pin()` in `ng-animate@1.4.0-rc.1` ([790ccca6](https://github.com/angular/material/commit/790ccca695233e80f2720e3d4b2b67d2736b39fd))
- * adds watcher for ngDisabled rather than 2-way binding ([973a2fca](https://github.com/angular/material/commit/973a2fcadfc0fb786635cabf7c6674e5027117c4), closes [#2160](https://github.com/angular/material/issues/2160))
- * allow undefined `searchText` and `selectedItem` ([8fb60c34](https://github.com/angular/material/commit/8fb60c343a720a240ba8661f606ffe4479d05195), closes [#2515](https://github.com/angular/material/issues/2515))
- * fixes issue where autocomplete suggestions were not hiding ([da0a4f06](https://github.com/angular/material/commit/da0a4f06c54248c6d73eba7767cdf06bc0225f57))
- * fixes bug that prevented autocomplete results from displaying on focus if min-le ([5e72bb3d](https://github.com/angular/material/commit/5e72bb3db0b965fce0065cb12d56bcc6b122d8c5))
-* **bottomsheet:** fix button styles ([7bd97acc](https://github.com/angular/material/commit/7bd97acc60a895eea75978a95f0c43e8d6d3ebd2))
-* **build:**
- * adds missing quotes for closure build ([041ffe94](https://github.com/angular/material/commit/041ffe943651de276c0558370e59f4a8ffde4863))
- * adds method that was missing from previous update ([77420942](https://github.com/angular/material/commit/774209429e1232fd975610123beef7e9f6dc5fd9))
-* **button:**
- * icon inherits colors ([92aff331](https://github.com/angular/material/commit/92aff331bd9397cc5469a70ca502dfc239239652), closes [#2434](https://github.com/angular/material/issues/2434), [#2551](https://github.com/angular/material/issues/2551), [#2586](https://github.com/angular/material/issues/2586))
- * make buttons less opinionated ([482a916a](https://github.com/angular/material/commit/482a916ae72f01b6ed1383d36bcec120c02b256a), closes [#2580](https://github.com/angular/material/issues/2580), [#2438](https://github.com/angular/material/issues/2438))
- * fixes typo in button scss file ([b742dfda](https://github.com/angular/material/commit/b742dfda81500852dcffbc3a19a9ec40d5f314b4), closes [#2432](https://github.com/angular/material/issues/2432))
-* **card:** md-action-bar renamed to .md-actions ([5610dc98](https://github.com/angular/material/commit/5610dc98798c4148ca284e3f61208cb494da75dc), closes [#2472](https://github.com/angular/material/issues/2472))
-* **chips:**
- * fix $apply already in progress ([daf680f0](https://github.com/angular/material/commit/daf680f0bc3a6e6460e5ae6894893970e684c3dc), closes [#2458](https://github.com/angular/material/issues/2458))
- * removes flicker when switching selected chip ([55fa76a0](https://github.com/angular/material/commit/55fa76a0a98e53ec91addaba5fdcba77cea17ef4))
-* **demo:** fix list demo secondary action. ([7e5d5e34](https://github.com/angular/material/commit/7e5d5e342fddc3d9f0ec1d5e1217b6eb8e6a6ec4), closes [#2471](https://github.com/angular/material/issues/2471))
-* **dialog:**
- * use .md-primary color for actions ([4a648d55](https://github.com/angular/material/commit/4a648d55578a2d54e64bfc0b3f1dec5fa73bef57), closes [#2448](https://github.com/angular/material/issues/2448))
- * Rename md-content to md-dialog-content ([9dc62403](https://github.com/angular/material/commit/9dc624033aac3714e97a8356b34508ffdcf02cf6), closes [#2514](https://github.com/angular/material/issues/2514))
-* **docs:** fix doc app toolbar breadcrumb when using back button ([58f2c481](https://github.com/angular/material/commit/58f2c481175a0bd27a6ea8754f4ba79fda8445ec), closes [#2464](https://github.com/angular/material/issues/2464))
-* **gridlist:** Tile ordering improved ([5d9142ea](https://github.com/angular/material/commit/5d9142ea8d77e60350e8a7ddd02be6642218c0fa), closes [#2553](https://github.com/angular/material/issues/2553), [#NaN](https://github.com/angular/material/issues/NaN))
-* **highlight:** adds missing characters to sanitize method ([ef0dce07](https://github.com/angular/material/commit/ef0dce076716669d1d9a6ca50a6d341fad774632), closes [#2292](https://github.com/angular/material/issues/2292))
-* **icon:** rem sizes, line-height for font icons ([860d1f67](https://github.com/angular/material/commit/860d1f67db2be427aff149cbd0c13f0f3d39e4ca), closes [#2597](https://github.com/angular/material/issues/2597))
-* **input:** improve layout when md-input-container has nested md-icon. ([2dbe6a97](https://github.com/angular/material/commit/2dbe6a973b546cc9cdf79ca5e8262188a2570bfc), closes [#2452](https://github.com/angular/material/issues/2452))
-* **interimElement:** fix default parent grabbing svg body ([952d5f50](https://github.com/angular/material/commit/952d5f508a618fccd002ac28b211bc02e8f76c8d))
-* **list:**
- * prevents error when there are no child elements ([f66e4718](https://github.com/angular/material/commit/f66e4718451b90cd27f393a2bbc46e3e6891a61e))
- * fixes line-height issues with list items and checkboxes/icons/switches ([4b045b58](https://github.com/angular/material/commit/4b045b5860cc5bebe6e7e17ca4c723a71a6abbfa))
- * fixes checkbox styles for list items ([6a0b7015](https://github.com/angular/material/commit/6a0b70159fc6fc6eebbb08defc6ee57d62124cd3))
-* **mdUtil:**
- * move comment nodes as well when reenabling scroll ([6a5a6a77](https://github.com/angular/material/commit/6a5a6a77a3c8eaa88a9ca234ab5f10e5e8b82da4), closes [#2592](https://github.com/angular/material/issues/2592))
- * move comment nodes as well when disabling scroll ([160df4cf](https://github.com/angular/material/commit/160df4cf436ff22b487e4691dfb3b8034cc0da19), closes [#2456](https://github.com/angular/material/issues/2456))
-* **select:**
- * add support for non-scrolling md-content ([88612d65](https://github.com/angular/material/commit/88612d6503ad3921a186ae3de4bb8422f6e76bce))
- * fix window resize listeners breaking after select shown ([7c74050f](https://github.com/angular/material/commit/7c74050fd83311880de5d11eae9ac199f56f54b2))
- * fix error when removing node on route change ([9d761878](https://github.com/angular/material/commit/9d7618781929f9983cb1550fe015b75182abbe26))
-* **tabs:**
- * select/deselect methods will now be called in the proper scope ([02a4af56](https://github.com/angular/material/commit/02a4af565862d3da5caebbc059f388c942f11e1f), closes [#2489](https://github.com/angular/material/issues/2489))
- * removes top border radius when tabs immediately follows md-toolbar ([6372111c](https://github.com/angular/material/commit/6372111c8048d0f13dc6d47609e777b8c26940ee), closes [#2394](https://github.com/angular/material/issues/2394))
- * fixes styles for Firefox ([6996edd3](https://github.com/angular/material/commit/6996edd39378f366416c59dc8e781fecddad19b5), closes [#2543](https://github.com/angular/material/issues/2543))
-* **tests:** support for Angular 1.4 and improved use of angular-mocks. ([48ee9867](https://github.com/angular/material/commit/48ee9867cd44f7a387e78d4a323f5a9e44382550))
-
-
-<a name="0.9.0-rc2"></a>
-### 0.9.0-rc2 (2015-04-20)
-
-This RC2 release contains more polish and bug fixes to stabilize performance, layout, and improve the UX for Chips, List, Select, and Tabs.
-
-#### Features
-
-* **chips:**
- * allows user to require a matched item - used with autocomplete ([736cbdb0](https://github.com/angular/material/commit/736cbdb096d4e064e1176e92eabddfe63288090c))
- * adds keyboard shortcuts to chips component ([c62d4dfd](https://github.com/angular/material/commit/c62d4dfd0f8741d90a2c69873154f55c91c3e7e7))
-* **list:**
- * extend typography styles ([70fc6290](https://github.com/angular/material/commit/70fc62907442cb5e1349dcc9f3c3bafc601245c6), closes [#2366](https://github.com/angular/material/issues/2366))
- * add ripple to secondary to md-list actions ([927d8e56](https://github.com/angular/material/commit/927d8e5612c60afb7c18e4c697dc0e343f28e963))
-* **mdUtil:** add md-overflow-wrapper-shown class to DOM ([5a028092](https://github.com/angular/material/commit/5a028092c1236dc50ef428c4f3292b4641b831bd))
-
-
-#### Breaking Changes
-
-* List
- * `md-item` has been renamed to `md-list-item`
- * `md-item-content` element is now a `.md-list-item-text` class
- * List styles of `.md-tile-left` changed to `.md-avatar` for avatar-like images
- * `md-list-item` uses `.md-no-proxy` and `.md-no-style`
-* Tabs
- * When using `md-tab-label`, the content of your tab **must** be wrapped in `md-tab-body`
-* Typography changes have significantly impacted the `<h1>`...`<h4>` types.
-
- ([f1db7534](https://github.com/angular/material/commit/f1db7534ae73de3820f0f84b6b2b40f4011770e0))
-
-#### Bug Fixes
-
-* **autocomplete:** fixes positioning logic to fire at the correct time ([8946322b](https://github.com/angular/material/commit/8946322b956ae6795e6ea0a700423469982bcdd5), closes [#2298](https://github.com/angular/material/issues/2298))
-* **button:**
- * limit flat/raised button height ([9fc2c28b](https://github.com/angular/material/commit/9fc2c28b9084e6f5651a41540216045e176c93ef), closes [#2380](https://github.com/angular/material/issues/2380))
- * address flat hover state ([1e7b9823](https://github.com/angular/material/commit/1e7b98235c004ae384946d71a8aa9ac71e434883), closes [#2382](https://github.com/angular/material/issues/2382))
-* **card:** action bar spacing, remove order attrs ([50ce4e8b](https://github.com/angular/material/commit/50ce4e8b053b3387a81d1a4d533af06be9ef1e5c), closes [#2403](https://github.com/angular/material/issues/2403))
-* **checkbox:** style checkbox without visual label ([ab264807](https://github.com/angular/material/commit/ab26480780677fae4dd9b5a6238fa531b50bed6e), closes [#2175](https://github.com/angular/material/issues/2175))
-* **chips:**
- * adds better focus handling for chips ([def6d3a4](https://github.com/angular/material/commit/def6d3a41441481f7a85503a5eb666332e055e27))
- * fixes issue where arrow keys switch active chip while editing input field ([1f261440](https://github.com/angular/material/commit/1f2614404a8d6cce45437f027662066f11ae35ef))
- * fixes issue with deletion logic ([6d4ecbee](https://github.com/angular/material/commit/6d4ecbee951ad87a73277517bc15c3c64264c149))
- * fixes shift+tab interaction with `md-chips` ([314aae1c](https://github.com/angular/material/commit/314aae1c345635f3ec1f67c842a38e19ee49b01e))
- * adds aria-hidden to remove buttons ([79b07399](https://github.com/angular/material/commit/79b073992a2e59f449d93321d74912d7cbe2eed6), closes [#2345](https://github.com/angular/material/issues/2345))
- * adds slightly better support for input types other than `text` ([d885d638](https://github.com/angular/material/commit/d885d638ac8f8d1c0660d30e6dfdca0fe780d0e8))
- * prevents item deletion when text is selected ([b65236b7](https://github.com/angular/material/commit/b65236b70ae3d6eb86d3d78631144fe65848d4ca), closes [#2322](https://github.com/angular/material/issues/2322))
-* **dialog:** action spacing matches spec ([d7b23763](https://github.com/angular/material/commit/d7b23763c7f17581b15c4b049faa8b306b9aed2a), closes [#2389](https://github.com/angular/material/issues/2389))
-* **input:** expect input container to use placeholder for label fallback ([8410c0d6](https://github.com/angular/material/commit/8410c0d6c46def09674a09a052e8503d85577085), closes [#2397](https://github.com/angular/material/issues/2397))
-* **inputContainer:** style ng-messages as both element and attr ([a5d09af5](https://github.com/angular/material/commit/a5d09af5493531f48a6c3a59036579cfa974c048))
-* **interimElement:** add fallback to document.body if root node removed ([3b3d0205](https://github.com/angular/material/commit/3b3d020581593eba3eea7632d68acdeb15dc56ad))
-* **list:**
- * check child element length before detecting proxies ([c964609e](https://github.com/angular/material/commit/c964609e1f8842418d8494fe6bb8f276885aafa6))
- * add ripple, inherit from .md-button ([25cc5e8a](https://github.com/angular/material/commit/25cc5e8a9657f1d0731e6f11b4e44ad621bb3486), closes [#2395](https://github.com/angular/material/issues/2395))
- * fix key hijacking ([e1ca13fd](https://github.com/angular/material/commit/e1ca13fdea90867e3ecb841caf20860accfd764c))
-* **mdList:** remove focus state on blur ([588e58cf](https://github.com/angular/material/commit/588e58cf6de9be13f77c820a1582f2d1a2c36cb0), closes [#2339](https://github.com/angular/material/issues/2339))
-* **select:**
- * fix scrollbars not respecting parent overflow hidden ([b9ee6121](https://github.com/angular/material/commit/b9ee6121412d59895b43286f4eefd4418e9081aa))
- * fix select backdrop closing when parent is destroyed ([2d66368c](https://github.com/angular/material/commit/2d66368cc31daf476bf786083a256d47a0e338ce))
- * fix infinite loop condition ([6e3b43cc](https://github.com/angular/material/commit/6e3b43cc91df2fa84a8c3983763e432b906a5740))
- * fix 1px error to match md-input-container style ([bd566a52](https://github.com/angular/material/commit/bd566a5217fedfb0731098795c6f45563c68716c))
- * add tabindex, aria-disabled support ([40924003](https://github.com/angular/material/commit/409240037aee989926179e4e5d3137dd9704b008), closes [#2308](https://github.com/angular/material/issues/2308))
- * fix restore focus on select close ([f55eeba0](https://github.com/angular/material/commit/f55eeba04150d0aecd2afe03c88009cf62293b9e))
- * remove broken ARIA attributes ([aaa6e5aa](https://github.com/angular/material/commit/aaa6e5aaef73d8667339521aed08f42abee53b01))
- * improve keyboard filtering ([f3c113c9](https://github.com/angular/material/commit/f3c113c9083dfd079c06e26bbcc8da5c52ba8586))
- * improve disable scroll layout ([68395a25](https://github.com/angular/material/commit/68395a254e70a8e57ccd2e03019228bf158435a4))
-* **tabs:**
- * tabs will no longer assume that all tabs have no content if the first one doesn't ([1b789fed](https://github.com/angular/material/commit/1b789fed4cf55443e2d106537e6912fa1df605e2), closes [#2398](https://github.com/angular/material/issues/2398))
- * adds a queue for delayed function calls ([0e2ccd23](https://github.com/angular/material/commit/0e2ccd23dc220392c0082f9cb05ccfddf42d22a1), closes [#2402](https://github.com/angular/material/issues/2402))
- * resolves issue where `md-tabs` is used within `ui-view` by removing hard require ([43508032](https://github.com/angular/material/commit/4350803267a8e19a15a240ccf657cd2ba098e0ae), closes [#2414](https://github.com/angular/material/issues/2414))
- * apply ARIA only to dummy tabs ([5ad44728](https://github.com/angular/material/commit/5ad447284c7cda2261da1440819e3e0101a7b1ae))
- * cleans up label/template fetch logic ([17aecd2d](https://github.com/angular/material/commit/17aecd2dbc3acfe48006ff5adb12cad5e15aa70b))
- * id's should no longer cause issues when used within tab labels or contents ([ea185eab](https://github.com/angular/material/commit/ea185eabd13bbcce3e07628891836b0626f609e5), closes [#2326](https://github.com/angular/material/issues/2326))
-* **tests:** mock .flush() added for Angular 1.4.x ([1e3f1a59](https://github.com/angular/material/commit/1e3f1a591f8f2f7c6bd54153df080367970b8a2d))
-* **textfield:** removed unstable, deprecated textfield component Replaced with md-input-container ([b5c4390b](https://github.com/angular/material/commit/b5c4390bf7cb81809fea0df93c7d01e410b5585a))
-
-
-
-<a name="0.9.1-rc1"></a>
-### 0.9.0-rc1 (2015-04-14)
-
-The release of 0.9 is primarily focused on bug fixes and polish efforts. Also included in this upcoming release will be added support for List items and controls, Chips, re-architected Tabs, and improvements to Gesture support and documentation.
-
-#### Features
-
-* **autocomplete:**
- * adds `md-menu-class` to allow users to add a class to the dropdown menu for cust ([860897d9](https://github.com/angular/material/commit/860897d9c6f2db034ecb2e30dddd005bc174e00d))
- * dropdown will now stretch to accomodate longer text ([b1343704](https://github.com/angular/material/commit/b13437044147cecf6835850c95fc764a67d466d0))
- * adds support for `md-autocomplete-snap` to specify parent element for autocomple ([15d1db73](https://github.com/angular/material/commit/15d1db731eab44151543c2ec27323e0bc92f0878))
- * `md-highlight-text` now supports custom flags ([1ac0c93c](https://github.com/angular/material/commit/1ac0c93c369b1e6652741abd640e0539090bb083), closes [#1799](https://github.com/angular/material/issues/1799))
- * adds support for `name` attribute ([ebca76da](https://github.com/angular/material/commit/ebca76da4831c359547cce59d6378c9f0a93e913))
- * adds support for floating labels ([f487248a](https://github.com/angular/material/commit/f487248a70c9bfd749953e98e3412240112f39a3))
-* **button:** support for link icon buttons ([1b9bafb5](https://github.com/angular/material/commit/1b9bafb5abd470e4e1bfd784484407588430083b), closes [#2265](https://github.com/angular/material/issues/2265))
-* **card:** add default background color ([3bc8b27b](https://github.com/angular/material/commit/3bc8b27be39d33a07a58c562e9efafa184fdd12d), closes [#1846](https://github.com/angular/material/issues/1846))
-* **chips:** initial commit Supports basic list mutation (add, remove items). ([713f7b67](https://github.com/angular/material/commit/713f7b67cd195d5abfde1540f26679d58f738bb5), closes [#2030](https://github.com/angular/material/issues/2030))
-* **gestures:** add provider to all config and optional skipClickHijack() ([f28393df](https://github.com/angular/material/commit/f28393df73a4ef85c18f54bd99041a74382375fb))
-* **layout:** re-add offset attribute ([fecceeb5](https://github.com/angular/material/commit/fecceeb5158bbd78e848a449dd3840ccef76e1f6))
-* **list:** BREAKING: add list controls ([abb807d0](https://github.com/angular/material/commit/abb807d0dcb77b92132b5ab73d61f97aa953f461), closes [#2021](https://github.com/angular/material/issues/2021))
-* **mdButton:** add icon button for toolbars, etc. ([6ee9a190](https://github.com/angular/material/commit/6ee9a1901beaeed49055437f64506b42b3f33bc3), closes [#2091](https://github.com/angular/material/issues/2091), [#NaN](https://github.com/angular/material/issues/NaN))
-* **mdCard:** support md-card-footer ([ff794eca](https://github.com/angular/material/commit/ff794ecad8299f343d79501b470a914a75cdb6bc), closes [#1474](https://github.com/angular/material/issues/1474))
-* **radioButton:** allow theming on radio group ([30d0cc44](https://github.com/angular/material/commit/30d0cc4425c68571ec67bcca0ec4ba0925b18ed7), closes [#1746](https://github.com/angular/material/issues/1746))
-* **script:** Set ngModule to Closure namespace. ([ade76f95](https://github.com/angular/material/commit/ade76f95f38410a92ec07c4b02bff0c1df580efb), closes [#1709](https://github.com/angular/material/issues/1709))
-* **select:**
- * truncate string to fit in single line ([1a81f0c6](https://github.com/angular/material/commit/1a81f0c6c98a2fe217f089c3457af5ee99ba61f5))
- * add auto-inference of option value ([342af6a8](https://github.com/angular/material/commit/342af6a808c962ce02da26461b403aa4465f05cc))
- * add psuedo-element to make auto complete work ([aa440efc](https://github.com/angular/material/commit/aa440efcb381a61abb49ea846d1fe0b458cc3a50))
- * add support to select/focus by typing options ([f5d905a2](https://github.com/angular/material/commit/f5d905a203808c067195330675d6bdbad6f2be0c))
- * add ngMultiple support to select ([9956f62d](https://github.com/angular/material/commit/9956f62d8652a4d335bfe2d759b12634ef8691c8))
- * add styles for invalid ([ddf1198f](https://github.com/angular/material/commit/ddf1198fe7c7a5f2c344dced368da4b5f4e13d20))
-* **sidenav:**
- * add focus override option and demo ([3ca2a637](https://github.com/angular/material/commit/3ca2a637f730b49dfdb89489cfc368372fb73c4e), closes [#1891](https://github.com/angular/material/issues/1891))
- * add promise-based lookup .then(callbackFn) for deferred instances ([076a97db](https://github.com/angular/material/commit/076a97db299a42c35f315b032729da5500a24157), closes [#1311](https://github.com/angular/material/issues/1311))
-* **tabs:**
- * adds support for `md-no-pagination` ([d0ddad1f](https://github.com/angular/material/commit/d0ddad1f467b9f001233e1dff708f3d7785f9bfc), closes [#1189](https://github.com/angular/material/issues/1189))
- * adds support for `md-center-tabs` ([2de0cf26](https://github.com/angular/material/commit/2de0cf26a4e7fc985b6247039537311a7e7861c1), closes [#1992](https://github.com/angular/material/issues/1992))
- * adds support for `label` attribute without tab content ([faab8883](https://github.com/angular/material/commit/faab88837c2f38b87adaa3bfe5de77f563f7899f), closes [#2068](https://github.com/angular/material/issues/2068))
- * adds support for dynamic height based on tab contents ([efde63c4](https://github.com/angular/material/commit/efde63c4673ca60085013f9d4caa6121c8110c30), closes [#2088](https://github.com/angular/material/issues/2088))
- * refactors tabs to function closer to spec ([f34eb800](https://github.com/angular/material/commit/f34eb800212b6daa11d3a23c14a5a173d9691cf3), closes [#1087](https://github.com/angular/material/issues/1087), [#1107](https://github.com/angular/material/issues/1107), [#1140](https://github.com/angular/material/issues/1140), [#1247](https://github.com/angular/material/issues/1247), [#1261](https://github.com/angular/material/issues/1261), [#1380](https://github.com/angular/material/issues/1380), [#1387](https://github.com/angular/material/issues/1387), [#1403](https://github.com/angular/material/issues/1403), [#1443](https://github.com/angular/material/issues/1443), [#1505](https://github.com/angular/material/issues/1505), [#1506](https://github.com/angular/material/issues/1506), [#1516](https://github.com/angular/material/issues/1516), [#1518](https://github.com/angular/material/issues/1518), [#1564](https://github.com/angular/material/issues/1564), [#1570](https://github.com/angular/material/issues/1570), [#1620](https://github.com/angular/material/issues/1620), [#1626](https://github.com/angular/material/issues/1626), [#1698](https://github.com/angular/material/issues/1698), [#1777](https://github.com/angular/material/issues/1777), [#1788](https://github.com/angular/material/issues/1788), [#1850](https://github.com/angular/material/issues/1850), [#1959](https://github.com/angular/material/issues/1959), [#1986](https://github.com/angular/material/issues/1986), [#2020](https://github.com/angular/material/issues/2020), [#1944](https://github.com/angular/material/issues/1944))
-* **tooltip:** adds `md-autohide` functionality ([b682e36a](https://github.com/angular/material/commit/b682e36a55c37f41cf9004645916cba07b6ef805), closes [#1689](https://github.com/angular/material/issues/1689))
-
-
-#### Breaking Changes
-
-Generated HTML and style improvements:
-
-###### CSS
-* CSS Focus outlines not prevented by default
-* Box-sizing removed from body, applied to components
-* `textRendering: optimizeLegibility` removed from body, applied to a subset of elements
-* Font sizes, margins, padding in `rem` units
-* Roboto webfont included in SCSS
-* Typography: classes introduced for headings and body copy
-* High-contrast mode supported on Windows
-
-###### HTML
-* Docs: Pinch and zoom re-enabled in viewport
-
-Bugs fixed:
-
-* [#1087](https://github.com/angular/material/issues/1087), [#1107](https://github.com/angular/material/issues/1107), [#1140](https://github.com/angular/material/issues/1140), [#1247](https://github.com/angular/material/issues/1247), [#1261](https://github.com/angular/material/issues/1261)
-* [#1380](https://github.com/angular/material/issues/1380), [#1387](https://github.com/angular/material/issues/1387), [#1403](https://github.com/angular/material/issues/1403), [#1443](https://github.com/angular/material/issues/1443), [#1505](https://github.com/angular/material/issues/1505)
-* [#1506](https://github.com/angular/material/issues/1506), [#1516](https://github.com/angular/material/issues/1516), [#1518](https://github.com/angular/material/issues/1518), [#1564](https://github.com/angular/material/issues/1564), [#1570](https://github.com/angular/material/issues/1570)
-* [#1620](https://github.com/angular/material/issues/1620), [#1626](https://github.com/angular/material/issues/1626), [#1698](https://github.com/angular/material/issues/1698), [#1777](https://github.com/angular/material/issues/1777), [#1788](https://github.com/angular/material/issues/1788)
-* [#1850](https://github.com/angular/material/issues/1850), [#1959](https://github.com/angular/material/issues/1959), [#1986](https://github.com/angular/material/issues/1986), [#2020](https://github.com/angular/material/issues/2020)
-
-
- ([f34eb800](https://github.com/angular/material/commit/f34eb800212b6daa11d3a23c14a5a173d9691cf3))
-
-#### Bug Fixes
-
-* include Roboto as non-blocking <link> ([5936f7a0](https://github.com/angular/material/commit/5936f7a080faef5d6bfb53463815a0a6d989f739), closes [#2247](https://github.com/angular/material/issues/2247), [#NaN](https://github.com/angular/material/issues/NaN))
-* switch focus on keyboard, use .md-focused ([0e916bfc](https://github.com/angular/material/commit/0e916bfccbd2abd05508c6bde61eb513530c3331), closes [#1336](https://github.com/angular/material/issues/1336))
-* limit global list styles ([fde08cc1](https://github.com/angular/material/commit/fde08cc174a1516fcba97cf626861751d80cebfc))
-* refactor global CSS styles ([6af1546d](https://github.com/angular/material/commit/6af1546da48aa335ca65ff32f09e2d3b69d0a2d9), closes [#1442](https://github.com/angular/material/issues/1442), [#NaN](https://github.com/angular/material/issues/NaN))
-* **autocomplete:**
- * fixes menu flicker ([9b2dc2c4](https://github.com/angular/material/commit/9b2dc2c472e3a8893114d8153a0734c80fe7fa6a))
- * updates the z-index to account for use within sidenav or dialog ([3cc914d7](https://github.com/angular/material/commit/3cc914d7f31a230c500fb460e7bb0ee7fe9003b1), closes [#2202](https://github.com/angular/material/issues/2202))
- * hitting enter with an item selected no longer resets the selected item ([7e666ab4](https://github.com/angular/material/commit/7e666ab4df3e866acae45bc50030042ad31a0b75), closes [#2183](https://github.com/angular/material/issues/2183))
- * dropdown will shift if there is not enough space ([0b15c976](https://github.com/angular/material/commit/0b15c97629be75924653738687ffeff827fcdc22), closes [#2004](https://github.com/angular/material/issues/2004))
- * moves autocomplete dropdown to nearest content container ([7f355f6d](https://github.com/angular/material/commit/7f355f6d787520cc6a047f46067971b25d79ee73), closes [#2013](https://github.com/angular/material/issues/2013), [#1961](https://github.com/angular/material/issues/1961), [#1670](https://github.com/angular/material/issues/1670))
- * `md-min-length` now supports 0 as a value and will show dropdown on focus ([dcf92682](https://github.com/angular/material/commit/dcf92682ef199cc400af013a426fd2e952cd182e))
- * `md-search-text-change` now fires when content is deleted from text ([f308779a](https://github.com/angular/material/commit/f308779a3553af6b46419aaeaa5e3bad9b27e832), closes [#2061](https://github.com/angular/material/issues/2061))
- * item templates now handle child bindings in the correct scope ([2e157d2b](https://github.com/angular/material/commit/2e157d2bf89336ee404cfaea15e16cc5aeb6c8cf), closes [#2065](https://github.com/angular/material/issues/2065))
- * adds a minimum width ([66fe5757](https://github.com/angular/material/commit/66fe5757fa946414a16b4a3058ecf22701315f2c), closes [#1853](https://github.com/angular/material/issues/1853))
- * hides cancel button when field is disabled ([936b8816](https://github.com/angular/material/commit/936b88166fb4cc6d90ebdab78127926fc7cc89e6), closes [#1710](https://github.com/angular/material/issues/1710))
- * adds support for `md-autofocus` ([c6374d9b](https://github.com/angular/material/commit/c6374d9bb17beca805d36c905eb3c8917a2084e8), closes [#1764](https://github.com/angular/material/issues/1764))
- * accepts pre-selected values ([c3fcd0d8](https://github.com/angular/material/commit/c3fcd0d84e375ba8d77d6bf532904769eb433601), closes [#1779](https://github.com/angular/material/issues/1779))
- * will no longer query when item is selected ([5f141269](https://github.com/angular/material/commit/5f14126954fa10911e00a8c18bf8a070133ae5de), closes [#1835](https://github.com/angular/material/issues/1835), [#1732](https://github.com/angular/material/issues/1732))
- * disables browser autocomplete ([1a8b5658](https://github.com/angular/material/commit/1a8b5658a7e6cc37d307c725f9bb24d8e5dbd2e7), closes [#1849](https://github.com/angular/material/issues/1849))
- * autocomplete now selects the first item by default and no longer hides results w ([4c2b086a](https://github.com/angular/material/commit/4c2b086a6bd38f1d6d4096b73a96d7523b0f09b9), closes [#1858](https://github.com/angular/material/issues/1858))
- * adds support for `$http` promises ([de423ae4](https://github.com/angular/material/commit/de423ae48d593c08f0277376b7e3e80571a3ba48), closes [#1798](https://github.com/angular/material/issues/1798))
-* **bottomSheet:** make bottom sheet work with new md-list ([bc32eb4c](https://github.com/angular/material/commit/bc32eb4c3bd795ad9be0ba6412bb7bfcde6d681b))
-* **bower:** fixes bower warning ([c4979d68](https://github.com/angular/material/commit/c4979d680aaca4136dd0e9408ac76c3cb8351529), closes [#2165](https://github.com/angular/material/issues/2165))
-* **build:**
- * do not bower install in github hook script ([859ecb56](https://github.com/angular/material/commit/859ecb568a7318b1f334f6e210680c4d03e4d110))
- * remove bower dependency, update npm to install angular, update Jasmine 2 ([9398a7a9](https://github.com/angular/material/commit/9398a7a9d0c97eff5e35d24348d89bec85bebd34), closes [#1962](https://github.com/angular/material/issues/1962))
-* **button:**
- * update to use .md-focused ([7d1608e6](https://github.com/angular/material/commit/7d1608e6b776cc695a5426b35fd0e0abff8f0970))
- * safari background FAB colors ([0178b895](https://github.com/angular/material/commit/0178b8955f6bf2120a3a32fa8c51398557c9c059), closes [#2011](https://github.com/angular/material/issues/2011))
- * hover, disabled, alignment, docs ([a936e1ed](https://github.com/angular/material/commit/a936e1edc964b69ffe5bf96905e348fc6f4c6b4d), closes [#1607](https://github.com/angular/material/issues/1607), [#NaN](https://github.com/angular/material/issues/NaN))
- * prevents transition from firing on ng-leave ([9aedd741](https://github.com/angular/material/commit/9aedd7413835b9333154e3b3f082ee94c4f89d49), closes [#936](https://github.com/angular/material/issues/936))
- * Support ui-sref attribute natively. ([7b743ed4](https://github.com/angular/material/commit/7b743ed4c62e2680c350d56daf57b202f15e63bf))
- * fixes ripple on fab buttons in safari ([a1c011ef](https://github.com/angular/material/commit/a1c011ef729c091d82f070b87b84f98fd685690c), closes [#1856](https://github.com/angular/material/issues/1856))
-* **card:** add correct themed background color ([9af45d37](https://github.com/angular/material/commit/9af45d37d635b31ae9fa1117db3edfd2e07f15ab))
-* **checkbox:**
- * update to grid units, demo cleanup ([bc1c4e0f](https://github.com/angular/material/commit/bc1c4e0f290739088b7da7d51744c603ea107079))
- * disable checkboxes with tabindex=-1 ([3c0fed99](https://github.com/angular/material/commit/3c0fed997bacc58f9bad49aa6a4f96f06db08402), closes [#2087](https://github.com/angular/material/issues/2087))
- * support for ng-checked ([2680cf15](https://github.com/angular/material/commit/2680cf1565afb4a8858737f0201933a400b9059e), closes [#1550](https://github.com/angular/material/issues/1550))
- * ngModel intial value used correctly with events ([942d0b9a](https://github.com/angular/material/commit/942d0b9a87b1478917325ccac011c2f4f5a5b3e1), closes [#1550](https://github.com/angular/material/issues/1550))
- * make enter toggle checkboxes ([57610eae](https://github.com/angular/material/commit/57610eaea680871b2751f078a7132e983c6f24e8))
-* **chips:**
- * sets `md-autoselect` for contact chips ([eb9f5646](https://github.com/angular/material/commit/eb9f56466a02e44321c8fa50c09f5689836a5be3), closes [#2294](https://github.com/angular/material/issues/2294))
- * fixes issue when removing chips via button ([59d359ce](https://github.com/angular/material/commit/59d359ce1d2ca9629876bf3c07b4801d1c253d1b), closes [#74](https://github.com/angular/material/issues/74))
- * when adding items, duplicates will now be skipped ([1ba926bc](https://github.com/angular/material/commit/1ba926bc347f93ce9ff2bff77bd492a39f393fa6))
- * only add chip item if it is truthy. fixes #2116 ([d154a8e4](https://github.com/angular/material/commit/d154a8e4b465a94e6dda18333e797216e8a9a558), closes [#2120](https://github.com/angular/material/issues/2120))
-* **dialog:**
- * fix backdrop position with parent scrolled ([74601d03](https://github.com/angular/material/commit/74601d0341609d072c5350b63da515b9af54a095))
- * cross-browser layout, a11y issues ([0b0ed233](https://github.com/angular/material/commit/0b0ed2339e1ec32e34d20daa18cadd4ef89d5f86), closes [#1340](https://github.com/angular/material/issues/1340), [#NaN](https://github.com/angular/material/issues/NaN))
-* **divider:** make divider work with new md-list ([ebcd7f04](https://github.com/angular/material/commit/ebcd7f043457c189f731bf3d40a8d6004e6e4af1))
-* **docs:** use node_modules/angularytics ([b8cc062a](https://github.com/angular/material/commit/b8cc062a36d0e957e626e630dd4a8734ba29785f))
-* **gesture:** don't stop hijacking clicks on ios & android when jquery is loaded ([81bcf7fd](https://github.com/angular/material/commit/81bcf7fd15fd76f054814b34d8a877168fc6225c), closes [#1869](https://github.com/angular/material/issues/1869), [#1842](https://github.com/angular/material/issues/1842))
-* **gestures:**
- * attach event listeners once when multiple ng-apps are running ([6d566762](https://github.com/angular/material/commit/6d566762f22049fbfe10dd9187e04f305a7f9ae7), closes [#2173](https://github.com/angular/material/issues/2173))
- * disable click hijack on mobile if jQuery is present ([2c57a828](https://github.com/angular/material/commit/2c57a8289f73265ca41fc8b2fbbe173a80073caa), closes [#1915](https://github.com/angular/material/issues/1915))
- * gestures initialize only on use instead of load ([63c87096](https://github.com/angular/material/commit/63c87096f2e1d18c38fe0895434b087bfd517a3b), closes [#2074](https://github.com/angular/material/issues/2074))
-* **gridlist:**
- * The gridlist will now lay out everytime a tile is added ([aca5944d](https://github.com/angular/material/commit/aca5944d9d12f92b75e4bcf3de8865475b3105e8), closes [#2227](https://github.com/angular/material/issues/2227))
- * Now supports custom interpolation symbols ([f037b8cb](https://github.com/angular/material/commit/f037b8cb9e4db8b0ba0d1830fe872f9537e91779), closes [#1874](https://github.com/angular/material/issues/1874), [#NaN](https://github.com/angular/material/issues/NaN))
- * update calcs for safari ([33049cff](https://github.com/angular/material/commit/33049cff96cd643e76159fc2d72cbd9fb911245c), closes [#2066](https://github.com/angular/material/issues/2066))
- * typo in gridlist demo ([8849fe19](https://github.com/angular/material/commit/8849fe19595dbaf2515ad590fe2f9029c70b54e4))
-* **icon:**
- * remove invalid danger style ([360e2b60](https://github.com/angular/material/commit/360e2b6097f97189e41b9f1da2c95ba4043193e7))
- * Fix issue with resizing SVGs when jQuery included. ([c4e8c1c4](https://github.com/angular/material/commit/c4e8c1c429e1333b8b8ecee0033fe4c695c60c3d), closes [#1803](https://github.com/angular/material/issues/1803))
-* **icons:**
- * disable pointer events on SVG(s). ([a7d9fa32](https://github.com/angular/material/commit/a7d9fa32209378b92ebddcbd2c11a85cea612a3b), closes [#2048](https://github.com/angular/material/issues/2048))
- * fix default icon color to match spec ([6fc26fab](https://github.com/angular/material/commit/6fc26fabfc97ea1d677eefec912ed1b5a8bbaca0))
-* **input:**
- * float labels support dir=rtl ([b88b744f](https://github.com/angular/material/commit/b88b744f325c79db728df83652db08865ac29b7d), closes [#964](https://github.com/angular/material/issues/964))
- * Only make invalid input label red when it's floating ([6d368505](https://github.com/angular/material/commit/6d3685059f0e5c47e1051e2c8accc53bf62a5b3d), closes [#1928](https://github.com/angular/material/issues/1928))
- * delegate clicks in IE10 ([d0b427d6](https://github.com/angular/material/commit/d0b427d63e5fac31d0cec18c5df8158e2c083c9a), closes [#1394](https://github.com/angular/material/issues/1394))
- * improve textarea appearance on firefox and IE ([a693dabd](https://github.com/angular/material/commit/a693dabdafa72a07e6422b94e5f927328cee94ef), closes [#1157](https://github.com/angular/material/issues/1157))
- * input validation and visual error indicators fixed ([c818da75](https://github.com/angular/material/commit/c818da75c89043a81de6234120315d7d48abc782), closes [#1606](https://github.com/angular/material/issues/1606))
-* **list:**
- * add missing interpolation character ([07e82015](https://github.com/angular/material/commit/07e82015bbe4d5b40eb36a1077c509a6f7597b33))
- * focus covers whole row, IE11 layout fix ([b47a8787](https://github.com/angular/material/commit/b47a8787fba6d9f7bda6f695ee0c8a9904df65c1), closes [#2222](https://github.com/angular/material/issues/2222))
- * adds role attributes in compile rather than link for performance improvements ([38f04230](https://github.com/angular/material/commit/38f04230a3064f84701a1c7eca862fd6bb2c256f))
-* **md-select:** Track disabled state ([dc93bffe](https://github.com/angular/material/commit/dc93bffe25cd5b2c28e6eac7adfe954c69c672c6))
-* **mdButton:** focus styles only on keyboard ([dfb4d1ab](https://github.com/angular/material/commit/dfb4d1abd9ed82cb2b68980ae580f3a434ff3f1c), closes [#1423](https://github.com/angular/material/issues/1423))
-* **progressCircular:** fixes animation in IE11 ([d5b77bdc](https://github.com/angular/material/commit/d5b77bdcfe21cb898ea21461e180da2daad89886), closes [#387](https://github.com/angular/material/issues/387))
-* **radioButton:** fix googly eyed radio-buttons ([bffa15ab](https://github.com/angular/material/commit/bffa15abc37698a9e8b663db1a9ce4a8250b27a4))
-* **ripple:**
- * fixes ripple positioning ([087c3dcf](https://github.com/angular/material/commit/087c3dcf2443ee49bf86a2c87fcaab014e47751f))
- * fixes issues with ripples on items below the fold ([e0f9fe98](https://github.com/angular/material/commit/e0f9fe98b24e028f80acf662b8a69e2f582529f2), closes [#2028](https://github.com/angular/material/issues/2028), [#1526](https://github.com/angular/material/issues/1526))
-* **select:**
- * greatly improve scroll disable compatability ([614630d7](https://github.com/angular/material/commit/614630d730f24df9ad3e9ee91f061049d615738a))
- * fix invalid css ([2f9eef70](https://github.com/angular/material/commit/2f9eef70b5503b4fcb5c7cbe09712700403cc5a3))
- * make select focus states match ui-spec ([42db19dd](https://github.com/angular/material/commit/42db19dd5571eb88ba8d2a9667d183d9f3d61da7))
- * bug using select attr with inferred value ([e20b1906](https://github.com/angular/material/commit/e20b1906c4c732b5b9baf708eaebd25de93dc9cb))
- * fix scrollbar margin of select parent ([f3cd5b9c](https://github.com/angular/material/commit/f3cd5b9c21e75794b689f8f4ba33d5dfec3d2fd9))
- * make select positioning factor in scroll bar width ([e18450fb](https://github.com/angular/material/commit/e18450fb53d4566e19b847e1606a2c9d00fe18cf))
- * reposition select on resize events ([0fe35cc8](https://github.com/angular/material/commit/0fe35cc8a896ac8db734e8f06766774cbe337211))
- * fix md-on-show not hiding spinner for non-async ([13b9c697](https://github.com/angular/material/commit/13b9c6978426dd82bfc669ca653e84d35373fb67))
- * make constrained select fit to top/left first ([f6f2187c](https://github.com/angular/material/commit/f6f2187cc92055cafbb440ff021093bfccaa72c3))
- * BREAKING: make select more inline with md-input-container styles ([a67a6a2e](https://github.com/angular/material/commit/a67a6a2e7f7d6ff88ae48e405828b542481d2468))
- * fix alignment of select dropdown arrow ([5c853e66](https://github.com/angular/material/commit/5c853e6654d1e2279833edccdbc142a577e3a338))
- * fix firefox select positioning, page moving on open ([a15347cd](https://github.com/angular/material/commit/a15347cd24255492ed5a36e9bbd2920e45c629e1))
-* **sidenav:** improve API usage for $animate enter/leave ([4245bcf7](https://github.com/angular/material/commit/4245bcf7f1000ab8960dda27d47cb34a8ddb7583), closes [#2261](https://github.com/angular/material/issues/2261))
-* **subheader:** fix width styling while scrolling ([2f335732](https://github.com/angular/material/commit/2f33573258466be877c3399b1033ad71dc612283))
-* **tabs:**
- * resets offset if the user resizes causing pagination to no longer be necessary ([bd1c973a](https://github.com/angular/material/commit/bd1c973a1d13490dfc8ad38aa8cd7ffc633aa6fc))
- * fixes styles for `md-align-tabs="bottom"` ([0dabfc5c](https://github.com/angular/material/commit/0dabfc5cd1bccd51c221e8af8ea4ddda35f21df1))
- * fixes Safari issue regarding dynamic tabs transitions ([4ac7dc03](https://github.com/angular/material/commit/4ac7dc037aecce6721d6656e9a2fb773b852ae15))
- * fixes flicker issue with dynamic height ([48eeb627](https://github.com/angular/material/commit/48eeb627ddf497a241ec5e4686f333d5b56769fe))
- * fixes styles for `md-border-bottom` and `md-align-tabs` ([9affd121](https://github.com/angular/material/commit/9affd1216174d31e92be54e0d0c1ec1698ed483f), closes [#2119](https://github.com/angular/material/issues/2119))
- * adds support for height changes in between tab switches ([64c4585b](https://github.com/angular/material/commit/64c4585b0bc3bcb16a2f196f26ceaa8cb420b679), closes [#2088](https://github.com/angular/material/issues/2088), [#2177](https://github.com/angular/material/issues/2177))
- * resolves issue where code was attempting to fire after the tabs array had been r ([f15fd050](https://github.com/angular/material/commit/f15fd0502463ffcd436d4768771ea4ccdc378fcf))
- * re-added `md-on-select` and `md-on-deselect` events to `md-tab` directive ([c84899df](https://github.com/angular/material/commit/c84899df1036804db1b435ca4c6f92e01c7e12e6))
- * applies correct styles for tabs living inside md-toolbar ([4c59c5c5](https://github.com/angular/material/commit/4c59c5c58906e3b7cb6da36f25426767b3949c4e), closes [#2067](https://github.com/angular/material/issues/2067))
- * updates CSS so that tabs support scrolling when necessary ([9f0d428c](https://github.com/angular/material/commit/9f0d428c9de64ddcb08bbe269044b88d0dae0d23), closes [#2088](https://github.com/angular/material/issues/2088))
-* **theming:**
- * fix theming in safari ([1ebc42ec](https://github.com/angular/material/commit/1ebc42ec4ad457602a634f8fb0562128dc3e701c))
- * add support for background hues ([0df4b16e](https://github.com/angular/material/commit/0df4b16eca2c8af9805615da646d38db04a33d7f))
- * change default background palette, document theming ([57deba10](https://github.com/angular/material/commit/57deba108b5075fff2fb869d252b923569091398))
-* **toast:** style tweaks for desktop rendering, fix opacity ([860a55ec](https://github.com/angular/material/commit/860a55ec7d5aaf337f671645d226da566b23b596))
-* **toolbar:** md-button style cleanup ([1c19272a](https://github.com/angular/material/commit/1c19272a70e7690a5689bbd5f33a338c078a795c), closes [#2267](https://github.com/angular/material/issues/2267), [#2146](https://github.com/angular/material/issues/2146))
-* **tooltip:**
- * fixes positioning bug in Safari ([f62fd480](https://github.com/angular/material/commit/f62fd480fdb5aa4f044f69691aedee31932af638), closes [#1883](https://github.com/angular/material/issues/1883))
- * tooltip will no longer be pushed up if there is room for it within its `offsetPa ([6e576c02](https://github.com/angular/material/commit/6e576c02dfebab5474c43d6069247ed32942e3e3))
- * fixes tooltip position when body has a margin ([00f4cc6d](https://github.com/angular/material/commit/00f4cc6d1329f618d595f887c0a13371bcff2d9e), closes [#1883](https://github.com/angular/material/issues/1883))
- *
-
-<a name="0.8.3"></a>
-### 0.8.3 (2015-03-03)
-
-
-#### Features
-
-* **ripple:** smooths out ripple animations ([ac47ca6c](https://github.com/angular/material/commit/ac47ca6c1df6a873615445d8c1f0cbb3eb3764f7), closes [#1750](https://github.com/angular/material/issues/1750))
-
-
-#### Bug Fixes
-
-* **autocomplete:** clicking on the scrollbar in the dropdown will no longer cause the list to hide ([2731f107](https://github.com/angular/material/commit/2731f1078efdd3c546629376ed71c7068501daf3), closes [#1739](https://github.com/angular/material/issues/1739))
-* **gestures:** resolves jQuery conflict with $mdGesture ([79505888](https://github.com/angular/material/commit/7950588882557a6d1670e2029ddda76d12027c45))
-* **select:**
- * support rtl direction ([59e30a39](https://github.com/angular/material/commit/59e30a392ed7f0dc43ec71db22b60fcaa800ba7e))
- * make md-option work with ng-selected ([425a76a3](https://github.com/angular/material/commit/425a76a3a5b4bce767e0f8ad766d7a8773e5463f))
- * make select work with ng-disabled ([60514054](https://github.com/angular/material/commit/60514054984c3d1c5577c5150e80e7ca9e3a4083))
- * fix select not setting initial value ([6dc46d52](https://github.com/angular/material/commit/6dc46d52dea21c4de3dc7984fb56d99076fdd1e6))
- * fix closing select a second time on firefox ([e49a20e8](https://github.com/angular/material/commit/e49a20e85d808ca0533afc40ee11f8337535c315))
- * fix positioning / sizing on firefox ([67618dc8](https://github.com/angular/material/commit/67618dc8fb5a81b23ed33879b062a6e316477a4a))
- * fix resetting value for selects without placeholder ([2a0ea163](https://github.com/angular/material/commit/2a0ea1630fb286099a8c27e5035cadc5cc1ed0b8))
- * fix empty select breaking page ([6e7b36cf](https://github.com/angular/material/commit/6e7b36cfa388227e3879120d3c332fc76e095e32))
- * make select consistent with md-input ([6aa1c8a7](https://github.com/angular/material/commit/6aa1c8a782b67aee3a31f9ed38c99aebfdb3b1a9))
- * positioning when to close to bottom or right ([cf78ba9f](https://github.com/angular/material/commit/cf78ba9f1fce7fdc3e613b3c83a4056ed8fb2e40))
-
-
-<a name="0.8.2"></a>
-### 0.8.2 (2015-02-27)
-
-
-#### Features
-
-* **autocomplete:** adds support for `md-delay` to wait until the user stops typing to poll for resu ([70a884a1](https://github.com/angular/material/commit/70a884a164f20b7cfde0c08f66712f86c4789f13))
-
-
-#### Bug Fixes
-
-* **autocomplete:**
- * cleans up watchers when elements are removed ([7fc0d02c](https://github.com/angular/material/commit/7fc0d02c6009c0c5f688d84cbd76afb9f4262541), closes [#1692](https://github.com/angular/material/issues/1692))
- * prevents aria message on selection ([e2148f13](https://github.com/angular/material/commit/e2148f13aa802196505106e776a959a648a38010))
- * addresses accessibility issues ([0bd7afb8](https://github.com/angular/material/commit/0bd7afb81755ea2815c8af646d692e045509f014), closes [#1473](https://github.com/angular/material/issues/1473))
- * change events will no longer be called on load ([c58d930e](https://github.com/angular/material/commit/c58d930e293ec4105e49391f67d8b31218d474ad))
-* **button:** allow attribute syntax for md-button. ([fc223b0c](https://github.com/angular/material/commit/fc223b0c9f92f03e4a1f2f9d53ac14d699ff02a2), closes [#1661](https://github.com/angular/material/issues/1661))
-* **core:** Remove redeclared variable declaration. ([3454db3c](https://github.com/angular/material/commit/3454db3c3feb8f5f35bad7815a84a26c67c4dd58), closes [#1697](https://github.com/angular/material/issues/1697))
-* **input:**
- * resolves on-focus validation checks ([2f17c8f4](https://github.com/angular/material/commit/2f17c8f44a628daf4e81bc576a85f27697dd54ab))
- * error states and improved for input fields ([747eb9c3](https://github.com/angular/material/commit/747eb9c3f493dfc338901f66108042ca78b5936e), closes [#1485](https://github.com/angular/material/issues/1485), [#1633](https://github.com/angular/material/issues/1633), [#1629](https://github.com/angular/material/issues/1629))
-* **select:**
- * when nothing selected, focus first option ([50b5d923](https://github.com/angular/material/commit/50b5d923ef92d7fb664bde605c821e643aa1f152))
- * make space not scroll select ([b8da17a0](https://github.com/angular/material/commit/b8da17a07c0b532527193ed0626cd1e9cd8b319e))
- * make sure arrow keys always focus next/prev option ([e441abaf](https://github.com/angular/material/commit/e441abaf91aeb706c8fb773b67bde40fb225601d))
- * render label on external model updates ([6baed64c](https://github.com/angular/material/commit/6baed64c6c20eeabacf8e737e16e5b39de5f39ea))
- * fix updating of values on change and init ([0e21b3bc](https://github.com/angular/material/commit/0e21b3bc0bb96c9e9982ebd74a4b810e02a2935f))
- * change placeholder computation to be handled internally ([b4c0a86e](https://github.com/angular/material/commit/b4c0a86eb3c094c5c897895a4bec392b37923f5f))
- * fix duplicate options when using ng-repeat ([9e0ca443](https://github.com/angular/material/commit/9e0ca4430f9f3add077a21ccb5a963e48a7f7d83))
- * fix chrome double scroll bars ([4d722ecf](https://github.com/angular/material/commit/4d722ecf9f8240f47e6e8989afcc5388c99669b4))
-* **tooltip:** fixes `md-direction` attribute functionality ([93080cae](https://github.com/angular/material/commit/93080cae36e1bea653b39c85d9345afe798de59f), closes [#1673](https://github.com/angular/material/issues/1673))
-
-
-<a name="0.8.1"></a>
-### 0.8.1 (2015-02-24)
-
-
-#### Features
-
-* **select:**
- * set label value based on md-option text ([ee4c7c18](https://github.com/angular/material/commit/ee4c7c1809558a51a58928e9fbe06ab16686742a))
- * add disabled support ([0c0f25ce](https://github.com/angular/material/commit/0c0f25ce5bb4e1a4467617541cffdb24d36f8ec7))
- * add ng-change support ([f4ce10ee](https://github.com/angular/material/commit/f4ce10eea6590ac431b7b15c44242b76219e1f7f))
-
-
-#### Bug Fixes
-
-* **select:**
- * keyboard controls in IE ([69053a30](https://github.com/angular/material/commit/69053a30c869c6ccdf8bcfcaaba451900f38e2ba))
- * fix overflow scroll on IE ([c5c5f860](https://github.com/angular/material/commit/c5c5f8603e631665d93c018bc6f94df2c4125eab))
- * prevent select from closing a dialog on click away ([c573c8cd](https://github.com/angular/material/commit/c573c8cd28c66b3c74f6f6ad482ff0c0b3844ff6))
- * stop position from going past bottom of screen ([805ed1b4](https://github.com/angular/material/commit/805ed1b49369269c0f9606d9f9c812cc8658d954))
- * fix select with 0 options positioning ([5a82426e](https://github.com/angular/material/commit/5a82426ed23724a1860bb7b5efa3e28326512716))
- * support custom interpolate symbols ([20b66111](https://github.com/angular/material/commit/20b6611107332b7cd36b93fc1398263c3ad328ae))
- * remove placeholder for falsey, but defined values ([9497f063](https://github.com/angular/material/commit/9497f063a2f5b118077aaba0cdc3df851754629c))
- * close md-select-menu if md-select is removed ([5e02ad94](https://github.com/angular/material/commit/5e02ad948fc4e68d81b18234102e47e643917b97))
-
-
-
-<a name="0.8.0"></a>
-### 0.8.0 (2015-02-23)
-
-
-#### Features
-
-* **select:**
- * add ng-change support ([f4ce10ee](https://github.com/angular/material/commit/f4ce10eea6590ac431b7b15c44242b76219e1f7f))
- * add select component and functionality ([786cb3b1](https://github.com/angular/material/commit/786cb3b1642be623b21551e4c8aff9c11d53ca13), closes [#1562](https://github.com/angular/material/issues/1562))
-* **autocomplete:** added initial files for autocomplete ([0bd8cf1c](https://github.com/angular/material/commit/0bd8cf1c31bc3a00513b91d2a200e9cc6818f2d0), closes [#1418](https://github.com/angular/material/issues/1418))
-* **dialog:** add ability to specify theme on alert and confirm presets ([c97f48b7](https://github.com/angular/material/commit/c97f48b7ad6515fe211cb1528ba9c2df14c98b18))
-* **gridlist:** Initial gridList implementation ([ef4aff00](https://github.com/angular/material/commit/ef4aff00f05136cfdeb149b151c85c4cae7a0228))
-* **icon:** implemented md-icon for font-faces and svgs ([b7d09d7e](https://github.com/angular/material/commit/b7d09d7e247d3055e53f438b5528ce9e36ecbc66), closes [#1438](https://github.com/angular/material/issues/1438))
-* **input:** adds `no-float` class to disable floating label animations ([33f677e5](https://github.com/angular/material/commit/33f677e53f97a8dacfae173120dbda369bd734ee), closes [#201](https://github.com/angular/material/issues/201), [#1392](https://github.com/angular/material/issues/1392))
-* **tabs:** changes default state of tabs to be transparent. ([732cbc9c](https://github.com/angular/material/commit/732cbc9c3abc1b001e0c425272ab49aa4f4e2d44), closes [#1250](https://github.com/angular/material/issues/1250), [#1393](https://github.com/angular/material/issues/1393))
-* **toast:**
- * add ability to specify theme for simple preset ([2fef2207](https://github.com/angular/material/commit/2fef22078497d6f444511032bcef1e9900a5103a))
- * proper toast queing behavior ([74fe8706](https://github.com/angular/material/commit/74fe87068212e233a8b8ed2a3029d0cf491cd53e))
- * update toast content dynamicly using $mdToast.updateContent ([0e161cb7](https://github.com/angular/material/commit/0e161cb7f9ab02c3774c7071f45bba4a8f97e49b))
-* **tooltip:** adds `md-direction` so that users can specify tooltip direction ([9c69c5cd](https://github.com/angular/material/commit/9c69c5cd4f5ada823cc12bc93246f3c847ecb23d), closes [#1220](https://github.com/angular/material/issues/1220), [#1410](https://github.com/angular/material/issues/1410))
-
-
-#### Bug Fixes
-
-* **autocomplete:**
- * hitting Enter will now trigger the submit method on parent form tags ([da084fc5](https://github.com/angular/material/commit/da084fc55fe67fa9c5094b73187953423317f5aa), closes [#1530](https://github.com/angular/material/issues/1530))
- * fixes issue with click events not firing ([e088f6ac](https://github.com/angular/material/commit/e088f6aceb108449b7e6786ef3f1329d805a8001), closes [#1513](https://github.com/angular/material/issues/1513))
-* **dialog:** correct opening position for showing a dialog ([150efe62](https://github.com/angular/material/commit/150efe620f98059f18f6088551d10e3a97984fca))
-* **docs:** toolbar button overlap on mobile ([7391cad4](https://github.com/angular/material/commit/7391cad4a040ca674af4135d7336d852125c2d59))
-* **gridlist:**
- * Tile removal now supports ngAnimate ([1d8e7832](https://github.com/angular/material/commit/1d8e7832dc6f0c7b20aefd704d8eeaba90cc763c), closes [#1559](https://github.com/angular/material/issues/1559), [#1560](https://github.com/angular/material/issues/1560))
- * add ngInject annotation support for GridLayoutFactory - $mdGridLayout ([c045f542](https://github.com/angular/material/commit/c045f5425fd4c2dc45a366a2dad66bd675ee1cf1))
- * Throws error on invalid or missing colCount to avoid infinite loops ([39f4f26a](https://github.com/angular/material/commit/39f4f26ad1fb8ec6b96254620a1b9dcc1525694a))
- * Adds grid height calculation ([0196014d](https://github.com/angular/material/commit/0196014db76eef8931b5d5b32f94a4fa7d3db675))
- * Prevents media from being unwatched immediately ([a4104215](https://github.com/angular/material/commit/a4104215be8c3aa902095dcb182d28b05ff3b79e))
-* **icon:**
- * improve error recovery and item caching ([603e5d68](https://github.com/angular/material/commit/603e5d68623dda4003917989e752fda4e603f36a), closes [#1477](https://github.com/angular/material/issues/1477))
- * add support for themes with md-primary, etc. ([cdea9a2d](https://github.com/angular/material/commit/cdea9a2d586f82a1048eff9c0b834e7428049a81))
-* **input:**
- * fix hidden textarea height issue ([efbd414a](https://github.com/angular/material/commit/efbd414a4d5af7b5144f1d08522e46cc043b627d), closes [#1356](https://github.com/angular/material/issues/1356))
- * improve use of placeholder and floating label ([f704dda6](https://github.com/angular/material/commit/f704dda627c2a030e0bdda44f6cb12ac59e951e0), closes [#1409](https://github.com/angular/material/issues/1409))
- * hide input text character overflow ([e290b536](https://github.com/angular/material/commit/e290b536a0f7daecbc095a59d3d641f9105e1f15), closes [#1461](https://github.com/angular/material/issues/1461))
- * improve error checking UX for required inputs ([c1d59aba](https://github.com/angular/material/commit/c1d59aba9f7aa1b30d4664e90ba44235510c9acc), closes [#1491](https://github.com/angular/material/issues/1491), [#1485](https://github.com/angular/material/issues/1485))
-* **layout:** fix responsive breakpoint dead-zones ([ecf6edef](https://github.com/angular/material/commit/ecf6edef9e1ff9a931a77a4665b075faf1988759))
-* **mdButton:** add default color, update docs ([a80804b5](https://github.com/angular/material/commit/a80804b5c1f3ccf554c76e3cad221b750c939a6f), closes [#1486](https://github.com/angular/material/issues/1486))
-* **select:** fixes scrollbar and padding issues ([5d7b63b0](https://github.com/angular/material/commit/5d7b63b0ff286ef0fbeffac3cf61283f4f782e13))
-* **tooltip:** content text was semi-opaque ([42cff135](https://github.com/angular/material/commit/42cff135320727b3615c3cd00300c923112e142d), closes [#1480](https://github.com/angular/material/issues/1480), [#1492](https://github.com/angular/material/issues/1492))
-* **autocomplete:** selected item now properly updates ([1307b945](https://github.com/angular/material/commit/1307b94592c128b31aee7dc8012fa74d2526768f), closes [#1468](https://github.com/angular/material/issues/1468))
-* **button:** remove underline on href button hover ([c19cd433](https://github.com/angular/material/commit/c19cd433eb75fb3b6a9507f8eb36e6e9916f50d3))
-* **card:** fixes selector to be more specific ([2f840b2a](https://github.com/angular/material/commit/2f840b2a221959a9101471ccb86da7a216ab80fd))
-* **gesture:** fix gesture event dispatching with jQuery ([88813b78](https://github.com/angular/material/commit/88813b78cae831b28e2e8d0eb37c32269034bfad), closes [#1367](https://github.com/angular/material/issues/1367))
-* **input:** check invalid model immediately and setInvalid() if needed ([e0f53ddd](https://github.com/angular/material/commit/e0f53ddda7d080e80c08d5106b5586b697ea8e87), closes [#372](https://github.com/angular/material/issues/372))
-* **mdIcon:**
- * support aria-label on mdRadioButton ([bbbec18e](https://github.com/angular/material/commit/bbbec18e5a9d79dd2957ddaad36993f80b879ce4))
- * label docs, support from parent el ([f764c049](https://github.com/angular/material/commit/f764c049c9128909fc86a26ffddcb9b6db9dd8f6), closes [#1458](https://github.com/angular/material/issues/1458), [#1460](https://github.com/angular/material/issues/1460))
-* **mdInput:** css cascades from disabled fieldset ([66fa1e3e](https://github.com/angular/material/commit/66fa1e3e276ddf33d669da0ef4d13c73c668e654), closes [#895](https://github.com/angular/material/issues/895))
-* **mdMedia:** fix media listeners not firing on non-chrome browsers ([0dfcaf55](https://github.com/angular/material/commit/0dfcaf553c94935945c7b74b584abd8b73abd40c))
-* **mdTabs:** use md-icon for pagination arrows ([517623e7](https://github.com/angular/material/commit/517623e721cd1d9a104aec2bee22a23889944b3a), closes [#1464](https://github.com/angular/material/issues/1464), [#1466](https://github.com/angular/material/issues/1466))
-* **sidenav:** properly sets width of sidenav ([0318ca44](https://github.com/angular/material/commit/0318ca44ca1d256d50cd1de675c92c8bf4b2bcb1), closes [#957](https://github.com/angular/material/issues/957))
-* **slider:**
- * updates positioning method to prevent overflow issues ([fb3623a1](https://github.com/angular/material/commit/fb3623a1da832a43fdccb7402ecfd206248639c9), closes [#1343](https://github.com/angular/material/issues/1343), [#1431](https://github.com/angular/material/issues/1431), [#1391](https://github.com/angular/material/issues/1391))
- * BREAKING: change default color to accent ([3ea349fc](https://github.com/angular/material/commit/3ea349fc7aef2fb22109b69c5c4fb466a4607989))
-* **subheader:** fix subheaders within dialogs ([55084143](https://github.com/angular/material/commit/550841433586d1bbc0a94ef5c0c2ef50e45e28c1))
-* **theming:** fix typo in warning message ([8a6eb7e8](https://github.com/angular/material/commit/8a6eb7e88c7317f755789ba3f2bfe3f88a288b81))
-* **toast:** fix minified toast controller injections ([5c5106e4](https://github.com/angular/material/commit/5c5106e48725cbc7b46269339a33be084ce4aeff))
-* **tooltip:** now works inside elements without pointer events ([3d010cd8](https://github.com/angular/material/commit/3d010cd831c7377e2ebef0df0d897788130cab9f))
-
-
-<a name="0.7.1"></a>
-### 0.7.1 (2015-01-30)
-
-#### Features
-
-* **bottomSheet:** disable scroll on parent when bottom sheet is shown ([8273126c](https://github.com/angular/material/commit/8273126c99304b315632c377ff22717acb45f03b))
-* **button:** adds attribute override for ripple size ([b7c43a10](https://github.com/angular/material/commit/b7c43a10071455e9024fe403d6b696b664c36df4), closes [#1088](https://github.com/angular/material/issues/1088))
-* **gestures:** add built in gesture system, remove HammerJS ([8364fb57](https://github.com/angular/material/commit/8364fb57a9ac1b211c09ff564fea6ad0dea94e61))
-* **input:** make input placeholder attr work ([f1d7f830](https://github.com/angular/material/commit/f1d7f830bf2f12dab288c46a5fc2919d5d608110), closes [#1279](https://github.com/angular/material/issues/1279))
-* **mdInputContainer:** add mdIsError expr, defaults to $touched && $invalid ([c3cad666](https://github.com/angular/material/commit/c3cad666368cc238644b6c9b1aaf1260cd763187), closes [#1267](https://github.com/angular/material/issues/1267))
-* **sidenav:**
- * make it thinner on <360px wide screens ([6ee3346e](https://github.com/angular/material/commit/6ee3346e301e979e89bf6f43449b6c4a51d78670))
- * expose isLockedOpen for sidenav instances ([ba71a598](https://github.com/angular/material/commit/ba71a5987d4600128d6a1c14a479cac37a308d28))
-* **theming:**
- * add warnings when using unregistered themes ([f6f56c98](https://github.com/angular/material/commit/f6f56c989bab062462a4dbf4ece59fd744c6ec3b))
- * warn for same palette as primary and accent ([1c973330](https://github.com/angular/material/commit/1c973330c68e0c653a19f4408a373741107eb0e3))
- * fix strong light colors vs normal light colors, as per spec ([dd5b9549](https://github.com/angular/material/commit/dd5b9549f4241eadacb4fe92db574b1bcd9771d5))
- * rename palette methods, change default palettes ([0e0846fe](https://github.com/angular/material/commit/0e0846feb562d32079eff427abbc045f2681c24e), closes [#1252](https://github.com/angular/material/issues/1252))
- * change default color of components that should be accent ([f2996b73](https://github.com/angular/material/commit/f2996b734fd7574ad484f258f1fd674de62d64b5))
-* **toolbar:** add shadow to toolbar ([4e47a174](https://github.com/angular/material/commit/4e47a174659e768e0b506d7ea937aadb67818d56))
-
-
-#### Breaking Changes
-
-* As per the
-[spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
-this commit changes the default color palette of FABs, checkboxes, radio
-buttons, sliders and switches to the accent palette.
-
-closes #1255
-
- ([f2996b73](https://github.com/angular/material/commit/f2996b734fd7574ad484f258f1fd674de62d64b5))
-
-
-#### Bug Fixes
-
-* **card:** fixes selector to be more specific ([2f840b2a](https://github.com/angular/material/commit/2f840b2a221959a9101471ccb86da7a216ab80fd))
-* **gesture:**
- * make sure clicks properly support keys ([c6d24eb2](https://github.com/angular/material/commit/c6d24eb2dfb7c3c23f08e09ae7f22812fe395516))
- * fix firefox keyboard events ([79196c3d](https://github.com/angular/material/commit/79196c3df13906c0221a9f0b4e2bab9c0c25825e))
- * only hijack click events on mobile devices ([ade65b60](https://github.com/angular/material/commit/ade65b6023021350a9a6d50d5d3245104766fe82))
-* **theming:**
- * fix warning for `changeTheme` being wrong ([f44bf604](https://github.com/angular/material/commit/f44bf6040dea4c1816922f595ec7e38213f914c6))
-* **checkbox:**
- * make `mdAria` check linked element ([3346532c](https://github.com/angular/material/commit/3346532ca1deba489fb79bccc0047f4f9f10e8da))
-* **build:**
- * add annotations to `rAfDecorator`, remove unused args ([c4927f9e](https://github.com/angular/material/commit/c4927f9e4ca1ffd21550e5eefb08b34c8840d02b))
- * add annotation to `swipe.js` ([22040c77](https://github.com/angular/material/commit/22040c77b4f82dd9845ad6bcfab9ab62a534170c))
-* **button:**
- * change default style of fab to white instead of transparent ([04feeb83](https://github.com/angular/material/commit/04feeb836ae5508d4c0349f125d13b75dd63b7b3))
- * default background-color on fab buttons on toolbar ([08ebff44](https://github.com/angular/material/commit/08ebff4405f75d305c24eca3549668bbc84d7ce8))
-* **card:**
- * allow img to have a wrapper ([349b521e](https://github.com/angular/material/commit/349b521e550c48a55713659d8d6fc2f4e1719a74))
-* **dialog:** fix overlay not covering, dialog position in overlay ([1d5ef95d](https://github.com/angular/material/commit/1d5ef95d2a1daa91bcad98d460eec49923ea5233))
-* **input:**
- * dont add focus/blur class if readonly ([6333b72c](https://github.com/angular/material/commit/6333b72c2cd50d848924e694237772371fefa759), closes [#1203](https://github.com/angular/material/issues/1203))
- * fix input padding & border on iOS ([7dab2060](https://github.com/angular/material/commit/7dab2060dd6f1c07dcb7186a1de360c20d3014fd), closes [#1164](https://github.com/angular/material/issues/1164))
- * remove default Firefox invalid input styling ([ba65437b](https://github.com/angular/material/commit/ba65437b452835c96bba9a7681710aec253264de), closes [#1165](https://github.com/angular/material/issues/1165))
- * add check for input value on blur ([ec53d1a1](https://github.com/angular/material/commit/ec53d1a1d02a92e3c8d71c25d354784709124fee), closes [#1201](https://github.com/angular/material/issues/1201))
-* **layout:** fix IE11 layout ([74fe3eb1](https://github.com/angular/material/commit/74fe3eb19b097611ed17f2f1459a5682b043387a), closes [#1227](https://github.com/angular/material/issues/1227))
-* **mdSwitch:** add missing styles to switch ([54338d7d](https://github.com/angular/material/commit/54338d7d4220fd0bb88af3e3b584c70fe5ac37ab), closes [#912](https://github.com/angular/material/issues/912))
-* **ripple:** fixes size issue with ripple on switches ([c435409b](https://github.com/angular/material/commit/c435409bfdcda51c5ba164c9013a3da1e5a03ce6))
-* **slider:**
- * don't run touchend listener if disabled ([5bbd23d6](https://github.com/angular/material/commit/5bbd23d6ad6d944806943786a748329428620e79), closes [#1308](https://github.com/angular/material/issues/1308))
- * make modelValue be set on pressdown ([7028a750](https://github.com/angular/material/commit/7028a75058338533696d75d532e7f13f6d6f1fff), closes [#1296](https://github.com/angular/material/issues/1296))
- * fix thumb positioning so that it works when not visible ([41c2d65d](https://github.com/angular/material/commit/41c2d65d2d4344687959c0d13c2cf48b0c90a880), closes [#1210](https://github.com/angular/material/issues/1210))
-* **styles:** fix subheader z-index, button md-mini class, md-no-bar. ([dde9ab79](https://github.com/angular/material/commit/dde9ab7987c8df787ff72c3ce46b9247ffdf7aad), closes [#1182](https://github.com/angular/material/issues/1182), [#1034](https://github.com/angular/material/issues/1034), [#1173](https://github.com/angular/material/issues/1173), [#1194](https://github.com/angular/material/issues/1194))
-* **switch:** set tabindex to -1 while disabled ([19f47b5d](https://github.com/angular/material/commit/19f47b5dcbf3006fbc14a08d909bc0265058dfe0))
-* **tabs:**
- * adds fix for css transition on theme change ([312dcc6c](https://github.com/angular/material/commit/312dcc6c51f81de8284f43959c30d51e286bca29), closes [#1033](https://github.com/angular/material/issues/1033))
- * remove bad opacity on focus state ([72ced4b5](https://github.com/angular/material/commit/72ced4b5b93fd82dc3e7382850f964baffbda32c))
- * prevents multiple pagination clicks during animation ([299e1556](https://github.com/angular/material/commit/299e15569783d4f666863ac3e9f6ceed237b6cf0), closes [#1207](https://github.com/angular/material/issues/1207))
-* **toast:**
- * fix highlighting of action buttons ([53cffe29](https://github.com/angular/material/commit/53cffe2945006ea9f5e2171fa2fbaf73b7ac6d27))
- * fix excess padding on md-action ([0f40a843](https://github.com/angular/material/commit/0f40a8431f5b807d43c2054c64d40008213d4cf5))
-
-
-<a name="0.7.0"></a>
-### 0.7.0 (2015-01-24)
-
-
-#### Bug Fixes
-
-* **input:**
- * fix bug regarding `md-maxlength` value changes ([b432277d](https://github.com/angular/material/commit/b432277d59614d2d23e4f651a1b3c46d76ec50ae))
-
-<a name="0.7.0-rc3"></a>
-### 0.7.0-rc3 (2015-01-14)
-
-
-#### Bug Fixes
-
-* allow user selection when swipe listener is enabled ([520faa72](https://github.com/angular/material/commit/520faa72e8a1ebf9112d615097e939349997fc51), closes [#838](https://github.com/angular/material/issues/838))
-* **button:**
- * fixes vertical alignment issue with `md-fab` button ([f71eb32a](https://github.com/angular/material/commit/f71eb32a0070bdbf6ea5613d7dce32a8fa22a02c), closes [#914](https://github.com/angular/material/issues/914))
- * adds a safe disabled-check for ripples ([9091741f](https://github.com/angular/material/commit/9091741f80002352ef16901d7abdd860631dce68), closes [#1029](https://github.com/angular/material/issues/1029))
- * fix usages with ngDisabled ([416079b7](https://github.com/angular/material/commit/416079b787becfe584d0633ae8e7946e4309f438), closes [#1074](https://github.com/angular/material/issues/1074))
-* **dialog:**
- * fix dialog alignment in IE11 ([240c03aa](https://github.com/angular/material/commit/240c03aa188520a20e0416095c20ace8a685fca3), closes [#790](https://github.com/angular/material/issues/790))
- * fix margin-top when layout is row ([191df15a](https://github.com/angular/material/commit/191df15abf13cae397f7e9c3c73db956842dfee3))
-* **input:** fix label inputs with specified types ([747c6acb](https://github.com/angular/material/commit/747c6acb1835ce388215d8ecc0794ec4da67a43b))
-* **layout:** make sure hide-gt-* and show-gt-* work together properly ([d149f36b](https://github.com/angular/material/commit/d149f36b6ab2a24d22e0246d4db8c030dcb84f96), closes [#772](https://github.com/angular/material/issues/772))
-* **radioGroup:** fix render call happing before radioGroup init ([68e350d1](https://github.com/angular/material/commit/68e350d11dcd15ae07c495e6859ba32f47d79836))
-* **subheader:** make content clickable ([7178b6d6](https://github.com/angular/material/commit/7178b6d674336a8d9ee718b58fb2f1aece85c80b), closes [#554](https://github.com/angular/material/issues/554))
-* **tabs:**
- * fix overflow leaking out tab-content ([dec2ac42](https://github.com/angular/material/commit/dec2ac42ebec04070e81fe1a664e7be906f0b4a4))
- * factors `me-active` attribute into selection logic to prevent unnecessary `md-on ([6a087a01](https://github.com/angular/material/commit/6a087a01656b3e8f6ba2e87b40b0611519b75c2b), closes [#868](https://github.com/angular/material/issues/868))
- * adds a delayed call to update the ink bar after a tab is removed ([1a1095b0](https://github.com/angular/material/commit/1a1095b0fae19e4b6df80027f57870e7aff7b97f), closes [#573](https://github.com/angular/material/issues/573))
-* **theming:** make switch, checkbox, radio button default to primary color for consistency ([8cbfeadf](https://github.com/angular/material/commit/8cbfeadfb32e19e855b6280983784fe0a8a516cb))
-
-
-#### Features
-
-* **input:** add error states, md-maxlength ([a2bc3c68](https://github.com/angular/material/commit/a2bc3c68551b4915c40a4eca9ec48fa9ec61f6b7))
-* **layout:** add flex-order-{sm,gt-sm,md,gt-md,lg,gt-lg} attributes ([3e453078](https://github.com/angular/material/commit/3e4530785c29650ff46cf7688f0b154adb9a7042))
-* **tooltip:** add configurable md-delay attr, default 400ms. ([e4ed530d](https://github.com/angular/material/commit/e4ed530d8000b6e31c9e4e7d52e402b9b76debd2), closes [#713](https://github.com/angular/material/issues/713))
-
-
-<a name="0.7.0-rc2"></a>
-### 0.7.0-rc2 (2015-01-08)
-
-
-#### Bug Fixes
-
-* **$mdUtil:** fix bugs in iterator's `next()`/`previous()` methods Refactor for DRY-ness `next ([124466e7](https://github.com/angular/material/commit/124466e71945a4515a7b5742310594e8753c4314))
-* **$mdComponentRegistry:** gracefully recover if no md-component-id is specified ([bf2266f1](https://github.com/angular/material/commit/bf2266f15a6d2c8cc299f083544955b1d1f0dc69))
-* **demos:** tab dynamic demo removes use of on-select expressions ([4db16c17](https://github.com/angular/material/commit/4db16c17fa617c53fd8436de00386826e08b602b))
-* **mdDialog:**
- * fix dialog border radius visual overflow glitch ([9b162202](https://github.com/angular/material/commit/9b162202721a2a60884e8edf4e02f754e9bef447), closes [#1015](https://github.com/angular/material/issues/1015))
- * prevent null-pointer error with popInTarget ([b36282a5](https://github.com/angular/material/commit/b36282a586d700831006c750d1df743bb16c6194), closes [#1061](https://github.com/angular/material/issues/1061))
-* **input:** fix height on IE11 ([dc31ee53](https://github.com/angular/material/commit/dc31ee53bb88dcc782b7aaa9c9ade31085ab3e69))
-* **layout:**
- * fix 'layout-padding' rule not having comma ([b35be936](https://github.com/angular/material/commit/b35be936cab8118c7de483c5065b6db56018e855), closes [#952](https://github.com/angular/material/issues/952))
- * layout-fill in firefox ([31d3c123](https://github.com/angular/material/commit/31d3c123185c6fe3e0db95674cccefb2b8884bca))
- * layout-wrap fixed and documented ([8f937bd2](https://github.com/angular/material/commit/8f937bd2df7e43d0343f5e89e154f6b0a3c89ecc))
-* **mdButton:**
- * fix fab vertical positioning ([641e2272](https://github.com/angular/material/commit/641e2272ce1cad731a59f015bede4a97fa2fca53), closes [#1031](https://github.com/angular/material/issues/1031))
- * fix error when md-button is disabled anchor ([48e5a8bc](https://github.com/angular/material/commit/48e5a8bc365e89f1d0446758a7211f5773956443), closes [#1074](https://github.com/angular/material/issues/1074))
-* **mdCard:** add an md-card-content container inside md-card for content ([28a4f8ff](https://github.com/angular/material/commit/28a4f8ff4d3b1d7b123152a01ef71e767fc315ff), closes [#265](https://github.com/angular/material/issues/265))
-* **mdMedia:** avoid unnecessary digest and make changes apply quicker ([98247bcf](https://github.com/angular/material/commit/98247bcf22df9ef96e4dd0197d61e6b9b69e1b6d), closes [#978](https://github.com/angular/material/issues/978))
-* **mdRadioButton:** Loosen equality check ([ca3e4c30](https://github.com/angular/material/commit/ca3e4c306af3e4a49670a379d759f0448b42ca95), closes [#1112](https://github.com/angular/material/issues/1112))
-* **mdToolbar:** Toolbar flow on medium screens ([bfc947f6](https://github.com/angular/material/commit/bfc947f66b2a2568dc76ca3278eb9b5f83424a2f))
-* **mdUtil:**
- * fix `throttle()` delay check ([fdb923e4](https://github.com/angular/material/commit/fdb923e40f98422ff75cbcaf137ead2233c64c68), closes [#977](https://github.com/angular/material/issues/977))
- * remove/delete cacheFactory keys when clearing/destroying cache ([8736c7cc](https://github.com/angular/material/commit/8736c7ccf019df417e6b7834b55a1cc157a6ac64))
-* **mdRadioButton:** arrowkey navigation with disabled buttons ([f520d507](https://github.com/angular/material/commit/f520d50710e6e93686736c4f5a97e54bb9bb7518), closes [#1040](https://github.com/angular/material/issues/1040))
-* **mdSidenav:** Fix tests and typo ([c0e2b0fb](https://github.com/angular/material/commit/c0e2b0fbba0006ab2ea8930544c380d207dfea1a))
-* **mdTabs:**
- * make md-tab-label visible on IE11 ([b85ad629](https://github.com/angular/material/commit/b85ad6296f49be7fa5ce95cbbbec49d650912e46), closes [#1057](https://github.com/angular/material/issues/1057))
- * pagination only call watcher() when it's a function ([e952ab41](https://github.com/angular/material/commit/e952ab4100826a5ff2e36efe71d5d6b8d49df2b2), closes [#1073](https://github.com/angular/material/issues/1073))
- * delays disconnect until after the digest is finished ([78ba497e](https://github.com/angular/material/commit/78ba497e443ca31e8a8c97f11db281f743f6aca0), closes [#1048](https://github.com/angular/material/issues/1048))
-* **theming:**
- * switch accent palette to use accent hues ([002d8bfd](https://github.com/angular/material/commit/002d8bfde5aa0c240ebd054297227e499f9c3bf4))
- * allow hex values with uppercase letters ([9b45af50](https://github.com/angular/material/commit/9b45af50fd894d9e9451b833bb9c2edb1ff2e750), closes [#1014](https://github.com/angular/material/issues/1014))
-
-
-#### Features
-
-* **mdDialog:** disable scrolling on parent while showing dialog ([993fa2bc](https://github.com/angular/material/commit/993fa2bc00598dd18227b12bb197f2d9c667ea75))
-* **input:**
- * add <md-input-container> parent for inputs/textareas, deprecate md-text-float ([60fcd6f4](https://github.com/angular/material/commit/60fcd6f4d8b895162b37a940c3f33164d8044382), closes [#993](https://github.com/angular/material/issues/993), [#553](https://github.com/angular/material/issues/553), [#654](https://github.com/angular/material/issues/654), [#993](https://github.com/angular/material/issues/993))
- * support md-warn for theming ([6acacc53](https://github.com/angular/material/commit/6acacc5382940a7ce1b393d0f4cdda6a0ffa615c), closes [#1137](https://github.com/angular/material/issues/1137))
-* **textarea:** make textarea autogrow with size of content ([1c653696](https://github.com/angular/material/commit/1c65369629080ddb6b2c4a981ae00533f5c303b1), closes [#565](https://github.com/angular/material/issues/565))
-* **layout:** add layout-align-{sm,gt-sm,md,gt-md,lg,gt-lg} attrs ([8550bd6c](https://github.com/angular/material/commit/8550bd6c9353914083bf75328c0160027202d237), closes [#631](https://github.com/angular/material/issues/631))
-* **mdRadioGroup:** Radio submits on keydown/enter ([03c75927](https://github.com/angular/material/commit/03c7592798f904ac7a59b4a1c580672ca7c4789f), closes [#577](https://github.com/angular/material/issues/577))
-* **mdSlider:** make discrete track ticks themable ([91bc598f](https://github.com/angular/material/commit/91bc598fab00150e26b11a2c7a0e7c9b3b364bec), closes [#621](https://github.com/angular/material/issues/621))
-* **mdSwitch:** add grab/grabbing cursor during drag ([c60640bf](https://github.com/angular/material/commit/c60640bf4305cbd42d899db5b2adfe8601096d1b), closes [#983](https://github.com/angular/material/issues/983))
-* **mdTabs:** adds default transitions for tab content ([3ee83a64](https://github.com/angular/material/commit/3ee83a645b9e4da8f4c0f2e6cbf772f504d8e9a9), closes [#1044](https://github.com/angular/material/issues/1044), [#717](https://github.com/angular/material/issues/717), [#811](https://github.com/angular/material/issues/811))
-* **$mdToast:** add mdToast#showSimple shortcut method ([dd960c6f](https://github.com/angular/material/commit/dd960c6fce3dfc041ab2ee6c27f6574cfae75185))
-
-
-#### Breaking Changes
-
-* md-text-float has been deprecated due to flaws (explanation in [#547](https://github.com/angular/material/issues/547)).
-
-To create an input, you now must use the native `<input>` and `<textarea>`
-elements, with a `<md-input-container>` parent around each
-`<input>` or `<textarea>`.
-
-Change your code from this:
-
-```html
-<md-text-float label="First Name" ng-model="firstName"></md-text-float>
-```
-
-To this:
-
-```html
-<md-input-container>
- <label>First Name</label>
- <input ng-model="firstName">
-</md-input-container>
-```
-
-* md-card now requires a separate `md-card-content` element
-containing the card's content. This was done to fix padding problems
-with the content.
-
-Change your code from this:
-
-```html
-<md-card>
- <img src="img/washedout.png" alt="Washed Out">
- <h2>Paracosm</h2>
- <p>
- The titles of Washed Out's breakthrough song and the first single from Paracosm share the
- two most important words in Ernest Greene's musical language: feel it.
- </p>
-</md-card>
-```
-
-To this:
-
-```html
-<md-card>
- <img src="img/washedout.png" alt="Washed Out">
- <md-card-content>
- <h2>Paracosm</h2>
- <p>
- The titles of Washed Out's breakthrough song and the first single from Paracosm share the
- two most important words in Ernest Greene's musical language: feel it.
- </p>
- </md-card-content>
-</md-card>
-```
-
- ([28a4f8ff](https://github.com/angular/material/commit/28a4f8ff4d3b1d7b123152a01ef71e767fc315ff))
-
-
-<a name="0.7.0-rc1"></a>
-### 0.7.0-rc1 (2014-12-19)
-
-
-#### Bug Fixes
-
-* **$$interimElement:** make templates work with custom interpolation symbols ([d5aa68d1](https://github.com/angular/material/commit/d5aa68d1d7b146a30c45580d10c2e70bc736db95))
-* **build:** correct in buildConfig.js ([6caccf75](https://github.com/angular/material/commit/6caccf7577aeb877ce294111adb4e21a74cad171), closes [#981](https://github.com/angular/material/issues/981))
-* **button:** fix hover on flat buttons ([de587772](https://github.com/angular/material/commit/de58777211bad5b5c31d5a7afe16adc498569be7))
-* **checkbox:**
- * only add focus border if label is not empty ([74973487](https://github.com/angular/material/commit/749734876d9c39021b1d210f89ff51e1ca3c77e9), closes [#944](https://github.com/angular/material/issues/944))
- * added css support for disabled states ([d1920839](https://github.com/angular/material/commit/d19208397c946222c28ce1d6644930bb1c255e83))
-* **demo:** Update slider demo to work in IE11 ([39559808](https://github.com/angular/material/commit/395598089bef548b76282679da71a05aeab1bf25), closes [#653](https://github.com/angular/material/issues/653))
-* **filenames:** updated component .scss names to match conventions ([629b753f](https://github.com/angular/material/commit/629b753ff348b805e4ff73a2f66d354f2d42841d))
-* **layout:** `flex="n"` attrs set height for column layout, width for row ([d3577798](https://github.com/angular/material/commit/d3577798c7384a003f0fa548e948c6201e86491d), closes [#937](https://github.com/angular/material/issues/937))
-* **mdToast:** Puts index above dialog ([4ae4e072](https://github.com/angular/material/commit/4ae4e072020fe1e59da69e23500c134463936ee7), closes [#903](https://github.com/angular/material/issues/903))
-* **switch:** only add focus border if label is not empty ([9c24cc93](https://github.com/angular/material/commit/9c24cc93497aa228a9513e40c15303edd73d865c), closes [#944](https://github.com/angular/material/issues/944))
-* **tooltip:** fix bugs in Safari & Firefox, as well as scrolling bugs ([0d265292](https://github.com/angular/material/commit/0d2652928b11e899f7a88a6f497720226d65f228), closes [#593](https://github.com/angular/material/issues/593))
-
-
-#### Features
-
-* **theming:** use $mdThemingProvider ([47f0d09e](https://github.com/angular/material/commit/47f0d09e9ebd87891703fa2b7e81355ce3952a86))
-
-
-#### Breaking Changes
-
-* Themes are no longer defined by linked CSS files.
-
-Themes are now defined through Javascript only. A 'theme template' is
-bundled into angular-material.js, and then Javascript is used to
-generate theme css for every theme the user defines.
-
-The `default` theme is still shipped with angular-material.
-
-If you used another theme (for example, the `purple` theme), change your code from this:
-
-```html
-<link rel="stylesheet" href="/themes/purple-theme.css">
-<div md-theme="purple">
- <md-button class="md-primary">Purple</md-button>
-</div>
-```
-
-To this:
-
-```js
-var app = angular.module('myApp', ['ngMaterial']);
-app.config(function($mdThemingProvider) {
- //will use the colors from default theme for any color not defined.
- $mdThemingProvider.theme('purple')
- .primaryColor('purple');
-});
-```
-```html
-<div md-theme="purple">
- <md-button class="md-primary">Purple</md-button>
-</div>
-```
-
-For more information, read the updated [Theme](https://material.angularjs.org/#/Theming/01_introduction) documentation - ([47f0d09e](https://github.com/angular/material/commit/47f0d09e9ebd87891703fa2b7e81355ce3952a86))
-
-
-<a name="0.6.1"></a>
-## 0.6.1 (2014-12-08)
-
-#### Bug Fixes
-
-* **checkbox:**
- * fixes issue where double-clicking checkboxes causes text selection ([5d2e7d47](https://github.com/angular/material/commit/5d2e7d47ff88e2a0c52382baf56a7101c2e1c16b), closes [#588](https://github.com/angular/material/issues/588))
- * expands the checkbox click radius ([9cd24e2e](https://github.com/angular/material/commit/9cd24e2e21ee3e1c0abd57a30f501165f942f541), closes [#379](https://github.com/angular/material/issues/379))
-* **compiler:** trim whitespace from templates (effects toast, bottomSheet, etc) ([3be3a527](https://github.com/angular/material/commit/3be3a527da3a5a6f47370cde0f4ba734ff2f9f85))
-* **dialog:** transition in and out properly to/from click element ([1f5029d0](https://github.com/angular/material/commit/1f5029d0a7643fa1aa3fb970c281e261ac4de24d), closes [#568](https://github.com/angular/material/issues/568))
-* **layout:** make [hide] attr work properly with all device sizes ([c0bbad20](https://github.com/angular/material/commit/c0bbad209c2008bbe881fe896d4bc0cec018305b))
-* **mdMedia:** support all prefixes: sm,gt-sm,md,gt-md,lg,gt-lg ([c1cb9951](https://github.com/angular/material/commit/c1cb99512c1dc226f59fa3c6fe397af887263cb3))
-* **ripple:** fixes an error caused when clicking on disabled checkboxes ([8a1718d7](https://github.com/angular/material/commit/8a1718d7aac6660060ad2265ce6cd7e2c4d87e2c))
-* **slider:**
- * update the thumb text when the model is updated ([2ca21f8b](https://github.com/angular/material/commit/2ca21f8bfcf28938dde98b44b6596f43caa95a2d), closes [#791](https://github.com/angular/material/issues/791))
- * reposition when min or max is updated ([bd6478b9](https://github.com/angular/material/commit/bd6478b958ed464bed8608335d6304b8ec644fa7), closes [#799](https://github.com/angular/material/issues/799))
-* **tabs:**
- * do not focus until pagination transition is done ([bb9bc82c](https://github.com/angular/material/commit/bb9bc82c4a89ba5796292111f9317cbd203bbf9f), closes [#781](https://github.com/angular/material/issues/781))
- * dont use focusin event on firefox ([5559ac63](https://github.com/angular/material/commit/5559ac63ed460bb7ee8d3e4b409b9deebac9394a), closes [#781](https://github.com/angular/material/issues/781))
-* **toolbar:** use accent color for buttons inside ([12d458e3](https://github.com/angular/material/commit/12d458e3985cba5940107c302887f856837fd226))
-* **tooltip:** make it appear above dialogs ([a3ce7d84](https://github.com/angular/material/commit/a3ce7d84ec39771ecbfbf6ad8106a05c9a0bd319), closes [#735](https://github.com/angular/material/issues/735))
-
-
-#### Features
-
-* **layout:** add both layout-margin and layout-padding attributes ([5caa22b2](https://github.com/angular/material/commit/5caa22b2c444485b3d340cda662d8808b1fc381d), closes [#830](https://github.com/angular/material/issues/830))
-* **toast:** simple with content string: '$mdToast.simple('my-content')` ([554beff3](https://github.com/angular/material/commit/554beff3089e680c4c63b17bf271910f668a7140), closes [#833](https://github.com/angular/material/issues/833))
-
-
-
-<a name="0.6.0-rc3"></a>
-## 0.6.0-rc3 (2014-11-26)
-
-
-#### Bug Fixes
-
-* **dialog:** correct the opening position when opening from a button ([22865394](https://github.com/angular/material/commit/228653942b32e4bf9d7a07af5a8203e4c2052132), closes [#757](https://github.com/angular/material/issues/757))
-* **hide:** make hide-gt-* attrs work properly with larger show attrs ([7fc6b423](https://github.com/angular/material/commit/7fc6b42314fbeb9024ba482a8407737100837604))
-* **ripple:** prevent null error while using ripple ([6d81ded1](https://github.com/angular/material/commit/6d81ded16b871ee5772ce8e0d06690c5c210c0ca))
-
-
-<a name="0.6.0-rc2"></a>
-## 0.6.0-rc2 (2014-11-24)
-
-This version introduces more breaking layout changes, ripple improvements,
-aria improvements, bug fixes, and documentation enhancements.
-
-
-#### Bug Fixes
-
-* **button:** add override for transitions on ng-hide ([8fa652cf](https://github.com/angular/material/commit/8fa652cfb85aca2fe454c97b81ab306a4f9eb5e9), closes [#678](https://github.com/angular/material/issues/678))
-* **layout:** add [flex-{sm,md,etc}] attr for 100% flex on screen size ([7acca432](https://github.com/angular/material/commit/7acca432aa0e18cebf1420d00ccc24e011fd9f53), closes [#706](https://github.com/angular/material/issues/706))
-* **ripple:**
- * fix ripple bug with checkboxes in lists ([7d99f701](https://github.com/angular/material/commit/7d99f701f8eaafc8a3d1210182e82f63ec99fffb), closes [#679](https://github.com/angular/material/issues/679))
- * fix bug with vertical ripple alignment ([5cdcf29a](https://github.com/angular/material/commit/5cdcf29a524d5f371d5f9170129e5166a8ac5b27), closes [#725](https://github.com/angular/material/issues/725))
-* **sidenav:** use flex display when opened ([ae1c1528](https://github.com/angular/material/commit/ae1c15281f5b07426c97cee16ae1efb836168679), closes [#737](https://github.com/angular/material/issues/737))
-
-#### Features
-
-* **mdAria:** checks child nodes for aria-label ([d515a6c2](https://github.com/angular/material/commit/d515a6c27e7fcdddc3ab7c7e88c93ef9b285dc7e), closes [#567](https://github.com/angular/material/issues/567))
-* **mdBottomSheet:** add escape to close functionality ([d4b4480e](https://github.com/angular/material/commit/d4b4480ee5ae025c9d0dbab86a37a2294a09234e))
-* **tabs:** ink ripple color syncs with ink bar ([9c56383b](https://github.com/angular/material/commit/9c56383b63f33aa9c4478ff0d1de6f1422938d4e))
-
-
-#### Breaking Changes
-
-* The -phone, -tablet, -pc, and -tablet-landscape
-attribute suffixes have been removed and replaced with -sm, -md, and -lg
-attributes.
-
-* hide-sm means hide only on small devices (phones).
-* hide-md means hide only on medium devices (tablets)
-* hide-lg means hide only on large devices (rotated tablets).
-
-Additionally, three new attribute suffixes have been provided for more flexibility:
-
-* hide-gt-sm means hide on devices with size greater than small
- (bigger than phones).
-* hide-gt-md means hide on devices with size greater than medium
- (bigger than tablets)
-* hide-gt-lg means hide on devices with size greater than large
- (bigger than rotated tablets).
-
-See the [layout options
-section](http://material.angularjs.org/#/layout/options)
-of the website for up-to-date information.
-
- ([a659c543](https://github.com/angular/material/commit/a659c5432f95fa62ee79977d2a2d45221600c077))
-
-
-<a name="0.6.0-rc1"></a>
-## 0.6.0-rc1 (2014-11-18)
-
-v0.6.0-rc1 releases the following changes:
-
-- improvements to the ink Ripple effects
-- namespace prefixing Material attributes
-- revised the Layout system to be more intuitive and responsive
-- added enhancements for modular builds and distrbution for each component
-- improved minification and SHA tags for each deployed .js and .css file
-- numerous bug fixes to improve stability, adds responsive features, and enhances API documentation.
-
-#### Bug Fixes
-
-* **button:** fix css for md-fab icon position when href is present ([a7763fde](https://github.com/angular/material/commit/a7763fde0e62a36f31ee318349a847bee2fed4f0), closes [#591](https://github.com/angular/material/issues/591))
-* **card:** make md-card themeable ([55cdb5b7](https://github.com/angular/material/commit/55cdb5b7e78c3d70a7b205cf15f2ba05fb5d54b2), closes [#619](https://github.com/angular/material/issues/619))
-* **demos:** dialog, bottomsheet, and toast now display within properly within the bounding d ([5909f0a5](https://github.com/angular/material/commit/5909f0a56ea6e0ca04eb08df4b8b680eef771a50))
-* **docs:**
- * fix error in flex docs ([a02469b2](https://github.com/angular/material/commit/a02469b23632e04bdd107949bec2561213ddf59a))
- * improve responsive docs ([4a846b4c](https://github.com/angular/material/commit/4a846b4c2f87d29ee746b855a030d01af7ea1f4e))
-* **layout:** updates layout attributes in index template ([669d0048](https://github.com/angular/material/commit/669d0048e6397e9056a4e3cf4b936d1197979d87))
-* **md-button:** improve a11y: make title, aria-label work ([ff576289](https://github.com/angular/material/commit/ff576289bfed2eeec08ee7d743ddcaf0c441e3c7), closes [#512](https://github.com/angular/material/issues/512))
-* **ripple:** fix ripple sometimes appearing when the element is disabled ([58eaef49](https://github.com/angular/material/commit/58eaef49e931e4e7137a59485db627f461e594b7))
-* **sidenav:**
- * make backdrop invisible when sidenav is locked-open ([4a75d599](https://github.com/angular/material/commit/4a75d5990176e1902db8626156f8518346ce0e60))
- * clean registry when element is destroyed ([e7a3bd8d](https://github.com/angular/material/commit/e7a3bd8d03306593dbee292db85ed8147ae934eb), closes [#473](https://github.com/angular/material/issues/473))
-* **slider:** update discrete slider thumb text while dragging ([2877585e](https://github.com/angular/material/commit/2877585e6dbbf44199428c59601e954a3b31f1e1), closes [#622](https://github.com/angular/material/issues/622))
-* **themes:** bring blue, red, and green colors up to latest spec ([de3ff4b8](https://github.com/angular/material/commit/de3ff4b800955d204a8cce504332bd8d52f5b2cf))
-
-#### Features
-
-* **layout:**
- * add new layout system ([d51a44c5](https://github.com/angular/material/commit/d51a44c5629763cb52c61df39881ef665448734e))
- * add `layout-wrap` attribute to set flex-wrap to wrap ([4f755eab](https://github.com/angular/material/commit/4f755eab67046864e61eba8f4345688bed461863), closes [#634](https://github.com/angular/material/issues/634))
-* **styles:** add 'swift' css transitions to all components according to spec ([15bb142c](https://github.com/angular/material/commit/15bb142c0aa53e5fcfa421526a5fb0ab1c3e9b1e), closes [#611](https://github.com/angular/material/issues/611))
-* **mdThemingProvider:** add alwaysWatchTheme options, fix docs ([0a404088](https://github.com/angular/material/commit/0a4040886f288ed22fd0fef182eace13150cd732))
-* **radioGroup:** add up/down arrow navigation ([367e47db](https://github.com/angular/material/commit/367e47dbabf638154cd8155d9132f01aa05cd81b), closes [#538](https://github.com/angular/material/issues/538))
-* **tabs:** add accessibility links between tabs and content ([5d3bab56](https://github.com/angular/material/commit/5d3bab566ec71ff9f4a65faad7ef2674cd04c1b9))
-* **bottomSheet:** focus the first available button on open ([768cc098](https://github.com/angular/material/commit/768cc098fdc4b09e1c5f3faab526a7ed9e324702), closes [#571](https://github.com/angular/material/issues/571))
-* **interimElement:** allow options.parent to be a selector ([342051e0](https://github.com/angular/material/commit/342051e0af2ca5cd42555b30a47249006d6228b7), closes [#640](https://github.com/angular/material/issues/640))
-* **mdDialog:** enhance show API with *confirm()* and *alert()* builder functions. ([12b8cbc06](https://github.com/angular/material/commit/12b8cbc06065669df6b22b9bdbb6764398ff26fb). <br/>See [Demos](https://material.angularjs.org/#/demo/material.components.dialog) JavaScript source
-```js
-$mdDialog.show(
- $mdDialog.alert()
- .title('This is an alert title')
- .content('You can specify some description text in here.')
- .ariaLabel('Password notification')
- .ok('Got it!')
- .targetEvent(ev)
- );
-```
-
-
-#### Breaking Changes
-
-* To provide improved clarity and easier usages, the Layout system has been revised ([d51a44c5](https://github.com/angular/material/commit/d51a44c5629763cb52c61df39881ef665448734e)). <br/>See the updated [Layout sections](https://material.angularjs.org/#/layout/container) for details. We associate labels with specific breakpoints:
-
-| Label | Size (dp) | Attribute |
-|--------|--------|--------|
-| Phone | 0 &lt;= size &lt;= 600 | layout-sm |
-| Tablet | 600 &gt; size &lt;= 960 | layout-md |
-| Tablet-Landscape | 960 &gt;= size &lt;= 1200 | layout-lg |
-| PC | &gt; 1200 | layout-gt-lg |
-
-> **<u>Example 1</u>**: To use a *horizontal* layout and responsively change to *vertical* for screen sizes < 600 dp:
->```html
-<!-- original '<div layout="vertical" layout-sm="horizontal">' becomes -->
-<div layout="row" layout-sm="column">
-> ```
->
-> **<u>Example 2</u>**: To use a *horizontal* layout and change to *vertical* for *phone* and *tablet* screen sizes:
->```html
-<!-- original '<div layout="vertical" layout-md="horizontal">' becomes -->
-<div layout="row" layout-sm="column" layout-md="column">
-```
-> **<u>Example 3</u>**: To show an element except when on a *phone* (or smaller) screen size:
->```html
-<!-- original '<div hide show-sm>' becomes -->
-<div hide-sm>
-```
-> **<u>Example 4</u>**: To always hide an element, but show it only on phone (or smaller) devices:
->```html
-<!-- original '<div hide-sm>' becomes -->
-<div hide show-sm>
-```
-
-* For performance, the *disabled* attribute is no longer supported; instead the *ng-disabled* attribute is now read to check if a component is disabled. ([2ece8cd7](https://github.com/angular/material/commit/2ece8cd794c4c28df4fb6a7683492da71aa2c382))
-> If you use the `disabled` attribute on a component to set whether
-it is disabled, change it to an ng-disabled expression.
-> Change your code from this:
-> ```html
-> <md-checkbox disabled></md-checkbox>
-> ```
-> To this:
-> ```html
-> <md-checkbox ng-disabled="true"></md-checkbox>
-> ```
-
-* All material component attributes and are now namespaced with the `md-` prefix; these changes do not affect ng- prefixes or standard html5 prefixes ([eb2f2f8a](https://github.com/angular/material/commit/eb2f2f8a8c668142742e4b4c1e18cf6d91a533db)). Affected attributes:
-
- * &lt;md-button **md-no-ink**="" &gt;
- * &lt;md-content&gt; ([92b76435](https://github.com/angular/material/commit/92b76435df5cb88c7bba3289c04daf17c911eee0))
- - **md-scroll-x**
- - **md-scroll-y**
- - **md-scroll-xy**
- * &lt;md-divider **md-inset**="" &gt;
- * &lt;md-linear-progress **md-buffer-value**="someValue" **md-mode**="query" &gt;
- * &lt;md-circular-rogress **md-mode**="query" **md-diameter**="60" &gt;
- * &lt;md-sidenav&gt;
- - **md-is-open**="isOpen"
- - **md-is-locked-open**="isLockedOpen"
- - **md-component-id**="my-sidenav"
- * &lt;md-tabs&gt;
- - **md-selected**="selectedIndex"
- - **md-on-select**="doSomething()"
- - **md-on-deselect**="doSomething()"
- - **md-active**="tabIsActive"
- * &lt;md-text-float **md-fid**="someId"&gt;
-
-* When using the `<md-button>` directive, the compiled element will now be a normal `<a>` or `<button>` element with the *class="md-button"* attribute. ([d835f9ee](https://github.com/angular/material/commit/d835f9ee7e35ea72dc6a7bd154163386ea0f3ce3))
-> Any css referencing the `md-button` element selector
-should now reference the `.md-button` class selector. Change your CSS overrides from this:
->
->```css
->md-button {
-> color: red;
->}
->```
->
->To this:
->
->```css
->.md-button {
-> color: red;
->}
->```
-
-
-<a name="0.5.0"></a>
-## 0.5.1 (2014-10-31)
-
-Version 0.5.0 introduces [theming support](https://material.angularjs.org/#/Theming/01_introduction), improves stability, adds responsive features, and enhances API documentation.
-
-#### Features
-
-* **theming:** introduce theming support, documented at [Theming Introduction](https://material.angularjs.org/#/Theming/01_introduction) ([80768270](https://github.com/angular/material/commit/807682707045de90d30a0718b3df963fef0dafc8))
-* **sidenav:**
- * add `is-open` attribute binding ([f66795e8](https://github.com/angular/material/commit/f66795e8378299ccd84aea69a72f5cc0704589bc))
- * add `is-locked-open` attribute binding with media query support ([105b0e0a](https://github.com/angular/material/commit/105b0e0ae6b2d30385d2aa8bee6190dd7ce1775c), closes [#446](https://github.com/angular/material/issues/446))
-
-#### Bug Fixes
-
-* **mdAria**: add better warnings ([3368c931](https://github.com/angular/material/commit/3368c931cee4638dac6dc26f7a4d8b37dc6e4858), closes [#366](https://github.com/angular/material/issues/366))
-* **md-input-group:** disable with ARIA ([72bad32a](https://github.com/angular/material/commit/72bad32ae4d48049e52602a4feda8eef9fbe6f0c))
-* **slider:** slider default value in ng-repeat corrected ([b652d863](https://github.com/angular/material/commit/b652d8634d2177ef8ec44cd163b4cf6d348c4795), closes [#479](https://github.com/angular/material/issues/479))
-* **css:**
- * add autoprefixer support for firefox and ie ([a1bea485](https://github.com/angular/material/commit/a1bea485c7b97974f82a3a81b440964d70514eca))
- * fix invalid flex properties ([c1d9b5a2](https://github.com/angular/material/commit/c1d9b5a2f58e33cdcffc85484ddce421121d2636))
- * remove deprecated css properties ([c7e3a83c](https://github.com/angular/material/commit/c7e3a83c28cd145e77cc7d61db918cc881d1ea7c))
-* **textFloat:**
- * improved logic to determine if md-input has a value ([5c407b5f](https://github.com/angular/material/commit/5c407b5fdfcf1c69cf69c06427ab0b166fecbed7))
- * improve ARIA pairing links between label and input ([457b3750](https://github.com/angular/material/commit/457b37506c9f076b42e76cd8c1f591087d729a50), closes [#483](https://github.com/angular/material/issues/483))
- * added support for label/hint expressions ([3674a514](https://github.com/angular/material/commit/3674a51437871a2366a65636127f8c6a6010f560), closes [#462](https://github.com/angular/material/issues/462))
- * fix keyboard tabbing support ([27f43751](https://github.com/angular/material/commit/27f43751be83a7b3e3a1a92d052fe1e016525ff1), closes [#458](https://github.com/angular/material/issues/458))
-
-#### Breaking Changes
-
-* **colors:**
- * The `md-theme-*` classes have all been removed, in favor of themes.
- * Instead, use `md-primary` and `md-warn` classes on an element when a theme is set.
-* **bottomSheet:**
- * `list` class has been renamed to `md-list`
- * `grid` class has been renamed to `md-grid`
- * `has-header` class has been renamed to `md-has-header`
- * `grid-text` class has been renamed to `md-grid-text`.
-* **button:**
- * `md-button-colored` class has been changed to `md-primary` and `md-warn` color classes.
- * All classes that start with `md-button-fab` now start with `md-fab`.
- * `md-button-fab` to `md-fab`.
- * `md-button-fab-top-left` to `md-fab-top-left`
- * `md-button-fab-top-right` to `md-fab-top-right`
- * `md-button-fab-bottom-left` to `md-fab-bottom-left`
- * `md-button-fab-bottom-right` to `md-fab-bottom-right`
- * `md-button-cornered` class has been changed to `md-cornered`
- * `md-button-icon` class has been changed to `md-icon`
- * `md-button-raised` class has been changed to `md-raised`
-* **content:** `md-content-padding` class has been renamed to `md-padding`.
-* **dialog:**
- * `dialog-content` class has been removed. Use an `md-content` element instead.
- * `dialog-actions` has been renamed to `md-actions`
-* **subheader:** `md-subheader-colored` is now `md-primary`.
-* **textFloat:**
- * use of `<md-input-group>` is deprecated, `<md-text-float>` markup can be used for most cases
-* **toast:** `toast-action` has been renamed to `md-action`
-* **toolbar:**
- * `md-toolbar-tall` class has been renamed to `md-tall`
- * `md-toolbar-medium-tall` class has been renamed to `md-medium-tall`
-* **whiteframe:** md-whiteframe-z\* classes no longer set z-index, only shadow
-
-<a name="0.4.2"></a>
-## 0.4.2 (2014-10-16)
-
-This release adds support for the [official Angular 1.3 release](https://github.com/angular/angular.js/blob/master/CHANGELOG.md) and includes improvements to both the document generator and component demos.
-
-> Note that `<md-input-group>` and `<md-input>` are deprecated in favor on `<md-text-float>`. While both directives are still available for more granular control, developers are encouraged to use the `<md-text-float>` directive whenever possible.
-
-
-#### Features
-
-* **text-float:** Add floating label text field ([25cf6f1](https://github.com/angular/material/commit/25cf6f116b9d3044894aaf6d3244c5395cd4a6c2))
-
-
-#### Bug Fixes
-
-* Focus management for docs views ([9afe28a8](https://github.com/angular/material/commit/9afe28a87fdd2840428f904345442dcfc898708f))
-* **bottomSheet:** use position:fixed so it does not move ([bfaf96d8](https://github.com/angular/material/commit/bfaf96d875665fff3cbc2158d05a5be54c85c9cf))
-* **ripple:** use contentParent scroll offset ([4c0c50e4](https://github.com/angular/material/commit/4c0c50e4036b880b67cd40d885d322a326a84e68), closes [#416](https://github.com/angular/material/issues/416))
-* **slider:**
- * disabled sliders still usable w/ keys ([f78f1b34](https://github.com/angular/material/commit/f78f1b3467a6c38f2d91921917b677de8c2d3a3c))
- * disabled discrete sliders still usable ([1f5ce090](https://github.com/angular/material/commit/1f5ce090c6df413d612a92d5807ae01896b0c058))
-* **subheader:** sort items correctly in browsers that dont support true/false ([d8e5079e](https://github.com/angular/material/commit/d8e5079e32224b3522aa9e5ebef03185d6f6bf4d), closes [#438](https://github.com/angular/material/issues/438))
-* **tabs:** remove tabs all at once on controller destroy ([7237767d](https://github.com/angular/material/commit/7237767dc3e847e5ff24470177e736b962b86377), closes [#437](https://github.com/angular/material/issues/437))
-
-<a name="0.4.1"></a>
-## 0.4.1 (2014-10-15)
-
-Version 0.4.1 changes the prefix for all services and directives from 'material' to 'md'.
-
-To migrate your code, replace all instances of 'material' in your project with 'md':
-
-```sh
-sed -i '' 's/material/md/g' $(echo my-material-project/app/**/*.{js,html,css})
-```
-
-Additionally, `material-linear-progress` has been renamed to `md-progress-linear` and `material-circular-progress` has been renamed to `md-progress-circular`.
-
-`angular-aria` is now a dependency. Be sure to include angular-aria.js before angular-material. See https://github.com/angular/bower-material#usage.
-
-<a name="0.4"></a>
-## 0.4.0 (2014-10-06)
-
-Version 0.4 incorporates four (4) new components: [circular progress](https://material.angularjs.org/#/material.components.progressCircular/readme/overview), [subheader](https://material.angularjs.org/#/material.components.subheader/readme/overview), [tooltip](https://material.angularjs.org/#/material.components.tooltip/readme/overview) and [bottom sheet](https://material.angularjs.org/#/material.components.bottomSheet/readme/overview). A [new API](#v0.4-breaking) has also been introduced for `$materialDialog` and `$materialToast`. Additionally, many small component functionality and performance issues have been resolved.
-
-v0.4 is tested on desktop Chrome, Safari and Firefox, as well as Android 4.4+ and iOS7.
-
-<a name="v0.4-breaking"></a>
-#### Breaking Changes
-
-The services `$materialDialog` and `$materialToast` have changed API(s). See section at bottom for [Change Details](#v0.4-breaking-details).
-
-#### Bug Fixes
-
-* **button:**
- * no underline when button has a href ([948aef0d](https://github.com/angular/material/commit/948aef0db53e6fc7f679d913f08c4a80869d209d))
- * disabled raised and fab buttons don't hover on focus ([6d0ca8fb](https://github.com/angular/material/commit/6d0ca8fb0c9946a8adef2161c95b1439977dd7e1), closes [#358](https://github.com/angular/material/issues/358))
-* **checkbox:** resolve TypeError for inputDirective.link ([4da56732](https://github.com/angular/material/commit/4da5673272599d5eb70bd82f54bfeefaa260c970))
-* **dialog:** cancel instead of hiding when user escapes/clicks out ([0cc21d47](https://github.com/angular/material/commit/0cc21d47e1f6c20ee5a9f15559771dbacaef1120))
-* **interimElement:** make cancel and hide not fail when no element is shown ([6162156d](https://github.com/angular/material/commit/6162156d13762b25fd4bd0110f4bc263ab9652c4))
-* **progress-linear:** Add aria, tests and better animations ([3b386276](https://github.com/angular/material/commit/3b3862765a5c70b6369bfc0fd6b0a30811382984), closes [#297](https://github.com/angular/material/issues/297))
-* **radio:** Radio button a11y ([05ed42de](https://github.com/angular/material/commit/05ed42de4fb52ec916b2fcc6e5a78d2d5ea164ad), closes [#310](https://github.com/angular/material/issues/310))
-* **toolbar:** Demo correct heading levels ([fd7697d6](https://github.com/angular/material/commit/fd7697d6697710fcfab1c1d02d8306b50897236f))
-* **ripple:**
- * make detach method work properly ([c3d858a2](https://github.com/angular/material/commit/c3d858a24e1a931d073a17b3185c2cd79b2628de))
- * ripple container self-removal NPE fixed. ([664ab996](https://github.com/angular/material/commit/664ab99621ca6fb52fc53ced877324a1b767347b))
-* **sidenav:**
- * add `display: none;` while closed ([8f104012](https://github.com/angular/material/commit/8f10401265d13c6b35467a82362a0765cb9b2d2e), closes [#300](https://github.com/angular/material/issues/300))
- * always leave >=56px of room, no matter the screensize ([13a26670](https://github.com/angular/material/commit/13a26670bbf8265ce235a37f642c05f17a2ea569), closes [#346](https://github.com/angular/material/issues/346))
-* **slider:** discrete mode supports live dragging and snap-to ([b231f1c0](https://github.com/angular/material/commit/b231f1c031918efedc96217349a45f3fba6d4726), closes [#331](https://github.com/angular/material/issues/331))
-* **textfield:**
- * ng-model bindings now working and demo rendering fixed. ([e8f456fc](https://github.com/angular/material/commit/e8f456fcc77937d61f587eae0cbe6b93f943dc18))
- * match float-label (light theme) specifications ([63eeb47f](https://github.com/angular/material/commit/63eeb47fe2ad38da6acb5b1854fae28e5e59abb6))
-
-#### Features
-
-* **progress-circular:** Add circular progress component ([07d56533](https://github.com/angular/material/commit/07d5653350d1ef2a9aa86689653bce62350bdb31), closes [#365](https://github.com/angular/material/issues/365))
-* **subheader:** add subheader component with sticky scroll ([7787c9cc](https://github.com/angular/material/commit/7787c9cc9cacde77fdef06b75ea231a58ed814ce), closes [#216](https://github.com/angular/material/issues/216))
-* **tooltip:** add tooltip component ([9f9b0897](https://github.com/angular/material/commit/9f9b0897b22b017b5e03754c4deac7a189b72235), closes [#354](https://github.com/angular/material/issues/354))
-* **bottomSheet** add bottomSheet component ([3be359c](https://github.com/angular/material/commit/3be359cc9aabed1613a51090c08f82abd3fa2bc3))
-
-
-<br/>
-<a name="v0.4-breaking-details"></a>
-#### Details on Breaking Changes
-
-**1) $materialDialog**:
-
-Change your code from this:
-
-```js
-var hideDialog = $materialDialog(options);
-hideDialog();
-```
-
-To this:
-
-```js
-$materialDialog
- .show(options)
- .then(
- function success(response) {},
- function cancelled(reason) {}
- );
-
-// Hides the dialog last shown with `show()`
-// and resolves the show() promise with `response`
-
-$materialDialog.hide(response);
-
-// Hides the dialog last shown and rejects the `show()`
-// promise with the `reason`
-
-$materialDialog.cancel(reason);
-```
-
-Note: If you previously provided a `controller` option to `$materialDialog`, that controller would be injected with a `$hideDialog` function. This feature no longer exists; use `$materialDialog.hide()`.
-
-<br/>
-
-**2) $materialToast**:
-
-Change your code from this:
-
-```js
-var hideToast = $materialToast(options);
-hideToast();
-```
-
-To this:
-
-```js
-$materialToast
- .show(options)
- .then(
- function success(response) {},
- function cancelled(reason) {}
- );
-
-
-// Hides the dialog last shown with `show()`
-// and resolves the show() promise with `response`
-
-$materialToast.hide(response);
-
-// Hides the dialog last shown and rejects the `show()`
-// promise with the `reason`
-
-$materialToast.cancel(reason);
-
-```
-<br/>
-Note: If you previously provided a `controller` option to `$materialToast`, that controller would be injected with a `$hideToast` function. This feature no longer exists; use `$materialToast.hide()`.
-
-
-
-<a name="0.0.3"></a>
-## v0.0.3 (2014-09-19)
-
-v0.0.3 includes many bug fixes, performance, and usability improvements to existing components, as well as introducing the slider, switch, divider, and linear progress components.
-
-Additionally, accessibility support is added to material-button, material-checkbox, material-radio-button, material-slider, material-dialog and material-list. With added ARIA support including roles, states and properties, Angular Material directives now also communicate to users of assistive technologies. Additionally, tabIndex and focus management are handled dynamically where appropriate.
-
-0.0.3 is tested on desktop Chrome, Safari and Firefox, as well as Android 4.4+ and iOS 7+. Also tested with VoiceOver on OSX and iOS7, ChromeVox, JAWS, NVDA and ZoomText.
-
-#### Bug Fixes
-
-* **button:** don't use angular transclusion at all, manual only ([6b322729](https://github.com/angular/material/commit/6b32272908b8bbc2f171b4441a54e75dec3f66d9))
-* **card:** make it use up proper width with margin ([f33185ff](https://github.com/angular/material/commit/f33185ff9f7e7cc500b4cc75e26e2659f845c418), closes [#247](https://github.com/angular/material/issues/247))
-* **demo:** tab demos improved layout and accessibility ([8915c324](https://github.com/angular/material/commit/8915c32484f6ee663b2e8e61f070fc8f7cf1de5c))
-* **dialog:** use position:fixed instead of absolute ([6ba874d8](https://github.com/angular/material/commit/6ba874d8b70abc0a17314668734218fdaf756c42), closes [#249](https://github.com/angular/material/issues/249))
-* **iterator:** update add()/remove() logic ([6a596b32](https://github.com/angular/material/commit/6a596b326856d81b52ec5d21fba63afc25e9f37a))
-* **material-dialog:** Focus mgmt, ARIA attributes ([fe054ae6](https://github.com/angular/material/commit/fe054ae6cd7883c300b623d83e89211f8814d756))
-* **material-list:** Add semantics ([6e48cd35](https://github.com/angular/material/commit/6e48cd35b9b72ea07bab64c53756adfb1aafc97a))
-* **material-slider:** Adds missing ARIA role ([903cbc06](https://github.com/angular/material/commit/903cbc06df59d0cfb6d1545ae94763dcd63c7929))
-* **ripple:**
- * fix bug with ripple and many clicks ([c2105c05](https://github.com/angular/material/commit/c2105c0599bf2f1fa9e0b1383f19c3e8d4a19c45))
- * make checkbox only scale up to 1.0, looks good on ios ([ed65da9b](https://github.com/angular/material/commit/ed65da9b568d6b2c4ce4c99f5403f9bb86571af1))
- * use css animations for performance ([96014e08](https://github.com/angular/material/commit/96014e08b47a5dc2e98dbccc7bd56af6a8f5670f))
-* **slider:** watch ngDisabled expr on non-isolate parent scope ([5f1923d5](https://github.com/angular/material/commit/5f1923d5d03061c3074899e590860c8d96b0eba3), closes [#272](https://github.com/angular/material/issues/272))
-* **switch:** correctly adjust when label will not fit on one line ([e912a838](https://github.com/angular/material/commit/e912a8386e6e6d3f0994bcf47db3cab7103dd947), closes [#80](https://github.com/angular/material/issues/80))
-* **tabs:**
- * make the ink ripple use the color of the ink bar. ([c5ca159a](https://github.com/angular/material/commit/c5ca159aca912db1fc7cc1665306929f2f6d7046), closes [#280](https://github.com/angular/material/issues/280))
- * don't paginate on initial load when width is 0 ([5f5435d1](https://github.com/angular/material/commit/5f5435d1b8f22c1202fe6fec0b895887e5cc03c5), closes [#271](https://github.com/angular/material/issues/271))
- * use position: absolute container to fix ios bugs ([7d0a282f](https://github.com/angular/material/commit/7d0a282f9f6e00f55639bbc864edd4520a040785), closes [#220](https://github.com/angular/material/issues/220))
- * Tab pagination/selection now works properly on iOS ([3410650d](https://github.com/angular/material/commit/3410650dcf21ad581c363f82f49453cb20f3342d), closes [#220](https://github.com/angular/material/issues/220), [#231](https://github.com/angular/material/issues/231))
- * Tab pagination/selection now works properly on iOS ([c77c0e26](https://github.com/angular/material/commit/c77c0e260a151ec38801aeabd60dff29e3386ba2), closes [#220](https://github.com/angular/material/issues/220), [#231](https://github.com/angular/material/issues/231))
- * remove window resize listener on $destroy ([4b887f1e](https://github.com/angular/material/commit/4b887f1e4f87cb51b9e5c99e24455de71a19906c), closes [#254](https://github.com/angular/material/issues/254))
-* **toolbar:**
- * make scrollShrink work with transforms, better performance ([cf1ab59f](https://github.com/angular/material/commit/cf1ab59f7450be20cbddefe54a42c20e7fc16a58), closes [#295](https://github.com/angular/material/issues/295))
- * typo onScroll -> onContentScroll ([cf31b1a5](https://github.com/angular/material/commit/cf31b1a58672ed70c20ccbc7c6856c62987b144d))
-
-
-#### Features
-
-* add hammerjs dependency ([e383e4f4](https://github.com/angular/material/commit/e383e4f4dc7a03f36ce874d25521ca2d3bf3f227))
-* **$materialToast:** add swipe-to-close functionality ([22285dc4](https://github.com/angular/material/commit/22285dc46d69771d56f4ea00e7df6fe1a95e4ae0))
-* **divider:** add implementation of the divider component ([e3aceeae](https://github.com/angular/material/commit/e3aceeae827a0a6ca132404aaaf4d1d90ebb84ae), closes [#194](https://github.com/angular/material/issues/194))
-* **docs:** added support for the doc app to show its associated Git SHA id/link ([02d2e5d2](https://github.com/angular/material/commit/02d2e5d2c3729314a46f0d864412a5445b9477cf))
-* **progressLinear:** Add linear progress indicator ([f87d0452](https://github.com/angular/material/commit/f87d0452453825f121773dec27f3cfd921bd9588), closes [#187](https://github.com/angular/material/issues/187))
-* **material-dialog:** on open focus `.dialog-close` or the last button ([8f756fc6](https://github.com/angular/material/commit/8f756fc608a38979e64ab258e2943778bb36bfd9), closes [#222](https://github.com/angular/material/issues/222))
-* **material-switch:** add switch component ([4975c743](https://github.com/angular/material/commit/4975c7432b814c1e401a48c8e5601ec7a30fa477), closes [#80](https://github.com/angular/material/issues/80))
-* **slider:** add full-featured slider component ([5ea4dbc2](https://github.com/angular/material/commit/5ea4dbc2cbb778884bb164d91fcf9b6262987e52), closes [#260](https://github.com/angular/material/issues/260), [#31](https://github.com/angular/material/issues/31))
-* **switch:** add focus styles ([8878ca7a](https://github.com/angular/material/commit/8878ca7aed861ac4c667cc96de61b8c2e09f9bac))
-* **tabs:** improvements to pagination, disabled tabs, and tab navigation. ([b4244bf3](https://github.com/angular/material/commit/b4244bf3a2d9b97c78361fd0b0189919a710e394))
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/LICENSE b/ecomp-portal-FE/client/bower_components/angular-material/LICENSE
deleted file mode 100644
index 1a3e88cf..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) 2014 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/README.md b/ecomp-portal-FE/client/bower_components/angular-material/README.md
deleted file mode 100644
index 534eb635..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/README.md
+++ /dev/null
@@ -1,240 +0,0 @@
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main Angular Material repo](https://github.com/angular/material).
-Please file issues and pull requests against that repo.
-
-## Installing Angular Material
-
-You can install this package locally either with `npm`, `jspm`, or `bower`.
-
-### npm
-
-```shell
-# To install latest formal release
-npm install angular-material
-
-# To install latest release and update package.json
-npm install angular-material --save-dev
-
-# To install from HEAD of master
-npm install http://github.com/angular/bower-material/tarball/master
-
-# To view all installed package
-npm list;
-```
-
-### jspm
-
-```shell
-# To install latest formal release
-jspm install angular-material;
-
-# To install from HEAD of master
-jspm install angular-material=github:angular/bower-material@master;
-
-# To view all installed package versions
-jspm inspect;
-```
-
-Now you can use `require('angular-material')` when installing with npm or jsmp and using Browserify or Webpack.
-
-### bower
-
-```shell
-# To get the latest stable version, use bower from the command line.
-bower install angular-material
-
-# To get the most recent, last committed-to-master version use:
-bower install angular-material#master
-
-# To save the bower settings for future use:
-bower install angular-material --save
-
-# Later, you can use easily update with:
-bower update
-```
-
-> Please note that Angular Material requires **Angular 1.3.x** or higher.
-
-
-## Using the Angular Material Library
-
-Now that you have installed the Angular libraries, simply include the scripts and
-stylesheet in your main HTML file, in the order shown in the example below. Note that npm
-will install the files under `/node_modules/angular-material/` and bower will install them
-under `/bower_components/angular-material/`.
-
-### npm
-
-```html
-<!DOCTYPE html>
-<html>
-<head>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
- <link rel="stylesheet" href="/node_modules/angular-material/angular-material.css">
-</head>
- <body ng-app="YourApp">
-
- <div ng-controller="YourController">
-
- </div>
-
- <script src="/node_modules/angular/angular.js"></script>
- <script src="/node_modules/angular-aria/angular-aria.js"></script>
- <script src="/node_modules/angular-animate/angular-animate.js"></script>
- <script src="/node_modules/angular-material/angular-material.js"></script>
- <script>
-
- // Include app dependency on ngMaterial
-
- angular.module( 'YourApp', [ 'ngMaterial' ] )
- .controller("YourController", YourController );
-
- </script>
-
-</body>
-</html>
-```
-
-### bower
-
-```html
-<!DOCTYPE html>
-<html>
-<head>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
- <link rel="stylesheet" href="/bower_components/angular-material/angular-material.css">
-</head>
- <body ng-app="YourApp">
-
- <div ng-controller="YourController">
-
- </div>
-
- <script src="/bower_components/angular/angular.js"></script>
- <script src="/bower_components/angular-aria/angular-aria.js"></script>
- <script src="/bower_components/angular-animate/angular-animate.js"></script>
- <script src="/bower_components/angular-material/angular-material.js"></script>
- <script>
-
- // Include app dependency on ngMaterial
-
- angular.module( 'YourApp', [ 'ngMaterial' ] )
- .controller("YourController", YourController );
-
- </script>
-
-</body>
-</html>
-```
-
-## Using the CDN
-
-CDN versions of Angular Material are now available at
-[Google Hosted Libraries](https://developers.google.com/speed/libraries/devguide#angularmaterial).
-
-With the Google CDN, you will not need to download local copies of the distribution files.
-Instead simply reference the CDN urls to easily use those remote library files.
-This is especially useful when using online tools such as CodePen, Plunkr, or jsFiddle.
-
-```html
- <head>
-
- <!-- Angular Material CSS now available via Google CDN; version 0.7.1 used here -->
- <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/angular_material/0.7.1/angular-material.min.css">
-
- </head>
- <body>
-
- <!-- Angular Material Dependencies -->
- <script src="//cdn.jsdelivr.net/hammerjs/2.0.4/hammer.min.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.min.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-animate.min.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-aria.min.js"></script>
-
- <!-- Angular Material Javascript now available via Google CDN; version 0.7.1 used here -->
- <script src="//ajax.googleapis.com/ajax/libs/angular_material/0.7.1/angular-material.min.js"></script>
-
- </body>
-```
-
-> Note that the above sample references the 0.7.1 CDN release. Your version will change
-based on the latest stable release version.
-
-Developers seeking the latest, most-current build versions can use [RawGit.com](//rawgit.com) to
-pull directly from the distribution GitHub
-[Bower-Material](https://github.com/angular/bower-material) repository:
-
-```html
- <head>
-
- <!-- Angular Material CSS using RawGit to load directly from `bower-material/master` -->
- <link rel="stylesheet" href="//rawgit.com/angular/bower-material/master/angular-material.css">
-
- </head>
- <body>
-
- <!-- Angular Material Dependencies -->
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-animate.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-aria.js"></script>
-
- <!-- Angular Material Javascript using RawGit to load directly from `bower-material/master` -->
- <script src="//rawgit.com/angular/bower-material/master/angular-material.js"></script>
-
- </body>
-```
-
-> Please note that the above RawGit access is intended **ONLY** for development purposes or sharing
- low-traffic, temporary examples or demos with small numbers of people.
-
-
-## Jasmine Testing with Angular Material
-
-<br/>
-If you are using Angular Material and will be using Jasmine to test your own custom application code, you will need to also load two (2) Angular mock files:
-
-* Angular Mocks - **angular-mocks.js** from `/node_modules/angular-mocks/angular-mocks.js`
-* Angular Material Mocks - **angular-material-mocks.js** from `/node_modules/angular-material/angular-material-mocks.js`
-
-<br/>
-
-Shown below is a karma-configuration file (`karma.conf.js`) sample that may be a useful template for your own testing purposes:<br/><br/>
-
-```js
-module.exports = function(config) {
-
- var SRC = [
- 'src/myApp/**/*.js',
- 'test/myApp/**/*.spec.js'
- ];
-
- var LIBS = [
- 'node_modules/angular/angular.js',
- 'node_modules/angular-animate/angular-animate.js',
- 'node_modules/angular-aria/angular-aria.js',
- 'node_modules/angular-material/angular-material.js',
-
- 'node_modules/angular-mocks/angular-mocks.js',
- 'node_modules/angular-material/angular-material-mocks.js'
- ];
-
- config.set({
-
- basePath: __dirname + '/..',
- frameworks: ['jasmine'],
-
- files: LIBS.concat(SRC),
-
- port: 9876,
- reporters: ['progress'],
- colors: true,
-
- autoWatch: false,
- singleRun: true,
- browsers: ['PhantomJS,Chrome']
-
- });
-
-};
-```
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/angular-material-mocks.js b/ecomp-portal-FE/client/bower_components/angular-material/angular-material-mocks.js
deleted file mode 100644
index 4f025786..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/angular-material-mocks.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- *
- * Angular-Material-Mocks
- *
- * Developers interested in running their own custom unit tests WITH angular-material.js loaded...
- * must also include this *mocks* file. Similar to `angular-mocks.js`, `angular-material-mocks.js`
- * will override and disable specific Angular Material performance settings:
- *
- * - Disabled Theme CSS rule generations
- * - Forces $mdAria.expectWithText() to be synchronous
- * - Mocks $$rAF.throttle()
- * - Captures flush exceptions from $$rAF
- *
- */
-(function(window, angular, undefined) {
-
-'use strict';
-
-/**
- * @ngdoc module
- * @name ngMaterial-mock
- * @packageName angular-material-mocks
- *
- * @description
- *
- * The `ngMaterial-mock` module provides support
- *
- */
-angular.module('ngMaterial-mock', ['ngMock', 'material.core'])
- .config(['$provide', function($provide) {
-
- /**
- * Angular Material dynamically generates Style tags
- * based on themes and palletes; for each ng-app.
- *
- * For testing, we want to disable generation and
- * <style> DOM injections. So we clear the huge THEME
- * styles while testing...
- */
- $provide.constant('$MD_THEME_CSS', '/**/');
-
- /**
- * Intercept to make .expectWithText() to be synchronous
- */
- $provide.decorator('$mdAria', function($delegate){
-
- $delegate.expectWithText = function(element, attrName){
- $delegate.expect(element, attrName, element.text().trim());
- };
-
- return $delegate;
- });
-
- /**
- * Add throttle() and wrap .flush() to catch `no callbacks present`
- * errors
- */
- $provide.decorator('$$rAF', function throttleInjector($delegate){
-
- $delegate.throttle = function(cb) {
- return function() {
- cb.apply(this, arguments);
- };
- };
-
- var ngFlush = $delegate.flush;
- $delegate.flush = function() {
- try { ngFlush(); }
- catch(e) { ; }
- };
-
- return $delegate;
- });
-
- }]);
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/angular-material.css b/ecomp-portal-FE/client/bower_components/angular-material/angular-material.css
deleted file mode 100644
index e77a450c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/angular-material.css
+++ /dev/null
@@ -1,6795 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-html, body {
- height: 100%;
- color: rgba(0, 0, 0, 0.87);
- background: white;
- position: relative; }
-
-body {
- margin: 0;
- padding: 0; }
-
-[tabindex='-1']:focus {
- outline: none; }
-
-.inset {
- padding: 10px; }
-
-button.md-no-style {
- font-weight: normal;
- background-color: inherit;
- text-align: left;
- border: none;
- padding: 0;
- margin: 0; }
-
-select, button, textarea, input {
- vertical-align: baseline; }
-
-input[type="reset"], input[type="submit"], html input[type="button"], button {
- cursor: pointer;
- -webkit-appearance: button; }
- input[type="reset"][disabled], input[type="submit"][disabled], html input[type="button"][disabled], button[disabled] {
- cursor: default; }
-
-textarea {
- vertical-align: top;
- overflow: auto; }
-
-input[type="search"] {
- -webkit-appearance: textfield;
- box-sizing: content-box;
- -webkit-box-sizing: content-box; }
- input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button {
- -webkit-appearance: none; }
-
-.md-visually-hidden {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- text-transform: none;
- width: 1px; }
-
-.md-shadow {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- border-radius: inherit;
- pointer-events: none; }
-
-.md-shadow-bottom-z-1, .md-button.md-raised:not([disabled]), .md-button.md-fab, .md-button.md-raised.md-focused:not([disabled]), .md-button.md-fab.md-focused:not([disabled]) {
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); }
-
-.md-shadow-bottom-z-2, .md-button.md-raised:not([disabled]):active, .md-button.md-fab:not([disabled]):active {
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4); }
-
-.md-shadow-animated.md-shadow {
- transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
-
-/*
- * A container inside of a rippling element (eg a button),
- * which contains all of the individual ripples
- */
-.md-ripple-container {
- pointer-events: none;
- position: absolute;
- overflow: hidden;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- transition: all 0.55s cubic-bezier(0.25, 0.8, 0.25, 1); }
-
-.md-ripple {
- position: absolute;
- -webkit-transform: scale(0);
- transform: scale(0);
- -webkit-transform-origin: 50% 50%;
- transform-origin: 50% 50%;
- opacity: 0;
- border-radius: 50%; }
- .md-ripple.md-ripple-placed {
- transition: left 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), top 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), margin 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), border 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), height 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition: left 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), top 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), margin 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), border 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), height 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
- .md-ripple.md-ripple-scaled {
- -webkit-transform: scale(1);
- transform: scale(1); }
- .md-ripple.md-ripple-active, .md-ripple.md-ripple-full, .md-ripple.md-ripple-visible {
- opacity: 0.20; }
-
-.md-padding {
- padding: 8px; }
-
-.md-margin {
- margin: 8px; }
-
-.md-scroll-mask {
- position: absolute;
- background-color: transparent; }
- .md-scroll-mask > .md-scroll-mask-bar {
- display: block;
- position: absolute;
- background-color: #fafafa;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 65;
- box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.3); }
-
-@media (min-width: 600px) {
- .md-padding {
- padding: 16px; } }
-
-html, body {
- -webkit-tap-highlight-color: transparent;
- -webkit-touch-callout: none;
- -webkit-text-size-adjust: 100%;
- -webkit-font-smoothing: antialiased; }
-
-md-select, md-card, md-list, md-toolbar, ul, ol, p, h1, h2, h3, h4, h5, h6 {
- text-rendering: optimizeLegibility; }
-
-/************
- * Headings
- ************/
-.md-display-4 {
- font-size: 112px;
- font-weight: 300;
- letter-spacing: -0.01em;
- line-height: 112px; }
-
-.md-display-3 {
- font-size: 56px;
- font-weight: 400;
- letter-spacing: -0.005em;
- line-height: 56px; }
-
-.md-display-2 {
- font-size: 45px;
- font-weight: 400;
- line-height: 64px; }
-
-.md-display-1 {
- font-size: 34px;
- font-weight: 400;
- line-height: 40px; }
-
-.md-headline {
- font-size: 24px;
- font-weight: 400;
- line-height: 32px; }
-
-.md-title, .md-toolbar-tools {
- font-size: 20px;
- font-weight: 500;
- letter-spacing: 0.005em; }
-
-.md-subhead, md-list-item.md-2-line .md-list-item-text h3, md-list-item.md-2-line > .md-no-style .md-list-item-text h3, md-list-item.md-3-line .md-list-item-text h3, md-list-item.md-3-line > .md-no-style .md-list-item-text h3 {
- font-size: 16px;
- font-weight: 400;
- letter-spacing: 0.01em;
- line-height: 24px; }
-
-/************
- * Body Copy
- ************/
-.md-body-1 {
- font-size: 14px;
- font-weight: 400;
- letter-spacing: 0.01em;
- line-height: 20px; }
-
-.md-body-2, md-list .md-subheader, md-list-item.md-2-line .md-list-item-text h4, md-list-item.md-2-line > .md-no-style .md-list-item-text h4, md-list-item.md-3-line .md-list-item-text h4, md-list-item.md-3-line > .md-no-style .md-list-item-text h4, md-list-item.md-2-line .md-list-item-text p, md-list-item.md-2-line > .md-no-style .md-list-item-text p, md-list-item.md-3-line .md-list-item-text p, md-list-item.md-3-line > .md-no-style .md-list-item-text p {
- font-size: 14px;
- font-weight: 500;
- letter-spacing: 0.01em;
- line-height: 24px; }
-
-.md-caption {
- font-size: 12px;
- letter-spacing: 0.02em; }
-
-.md-button {
- letter-spacing: 0.01em; }
-
-/************
- * Defaults
- ************/
-button, select, html, textarea, input {
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif; }
-
-select, button, textarea, input {
- font-size: 100%; }
-
-/* Sizes:
- 0 <= size < 600 Phone
- 600 <= size < 960 Tablet
- 960 <= size < 1200 Tablet-Landscape
- 1200 <= size PC
-*/
-[layout] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
-
-[layout=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
-
-[layout=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
-
-[layout-padding] > [flex-sm], [layout-padding] > [flex-lt-md] {
- padding: 4px; }
-
-[layout-padding], [layout-padding] > [flex], [layout-padding] > [flex-gt-sm], [layout-padding] > [flex-md], [layout-padding] > [flex-lt-lg] {
- padding: 8px; }
-
-[layout-padding] > [flex-gt-md], [layout-padding] > [flex-lg] {
- padding: 16px; }
-
-[layout-margin] > [flex-sm], [layout-margin] > [flex-lt-md] {
- margin: 4px; }
-
-[layout-margin], [layout-margin] > [flex], [layout-margin] > [flex-gt-sm], [layout-margin] > [flex-md], [layout-margin] > [flex-lt-lg] {
- margin: 8px; }
-
-[layout-margin] > [flex-gt-md], [layout-margin] > [flex-lg] {
- margin: 16px; }
-
-[layout-wrap] {
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap; }
-
-[layout-fill] {
- margin: 0;
- min-height: 100%;
- width: 100%; }
-
-@-moz-document url-prefix() {
- [layout-fill] {
- margin: 0;
- width: 100%;
- min-height: auto;
- height: inherit; } }
-
-[flex] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
-
-[flex="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
-
-[layout="row"] > [flex="0"] {
- max-width: 0%; }
-
-[layout="column"] > [flex="0"] {
- max-height: 0%; }
-
-[flex="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
-
-[layout="row"] > [flex="5"] {
- max-width: 5%; }
-
-[layout="column"] > [flex="5"] {
- max-height: 5%; }
-
-[flex="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
-
-[layout="row"] > [flex="10"] {
- max-width: 10%; }
-
-[layout="column"] > [flex="10"] {
- max-height: 10%; }
-
-[flex="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
-
-[layout="row"] > [flex="15"] {
- max-width: 15%; }
-
-[layout="column"] > [flex="15"] {
- max-height: 15%; }
-
-[flex="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
-
-[layout="row"] > [flex="20"] {
- max-width: 20%; }
-
-[layout="column"] > [flex="20"] {
- max-height: 20%; }
-
-[flex="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
-
-[layout="row"] > [flex="25"] {
- max-width: 25%; }
-
-[layout="column"] > [flex="25"] {
- max-height: 25%; }
-
-[flex="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
-
-[layout="row"] > [flex="30"] {
- max-width: 30%; }
-
-[layout="column"] > [flex="30"] {
- max-height: 30%; }
-
-[flex="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
-
-[layout="row"] > [flex="35"] {
- max-width: 35%; }
-
-[layout="column"] > [flex="35"] {
- max-height: 35%; }
-
-[flex="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
-
-[layout="row"] > [flex="40"] {
- max-width: 40%; }
-
-[layout="column"] > [flex="40"] {
- max-height: 40%; }
-
-[flex="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
-
-[layout="row"] > [flex="45"] {
- max-width: 45%; }
-
-[layout="column"] > [flex="45"] {
- max-height: 45%; }
-
-[flex="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
-
-[layout="row"] > [flex="50"] {
- max-width: 50%; }
-
-[layout="column"] > [flex="50"] {
- max-height: 50%; }
-
-[flex="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
-
-[layout="row"] > [flex="55"] {
- max-width: 55%; }
-
-[layout="column"] > [flex="55"] {
- max-height: 55%; }
-
-[flex="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
-
-[layout="row"] > [flex="60"] {
- max-width: 60%; }
-
-[layout="column"] > [flex="60"] {
- max-height: 60%; }
-
-[flex="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
-
-[layout="row"] > [flex="65"] {
- max-width: 65%; }
-
-[layout="column"] > [flex="65"] {
- max-height: 65%; }
-
-[flex="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
-
-[layout="row"] > [flex="70"] {
- max-width: 70%; }
-
-[layout="column"] > [flex="70"] {
- max-height: 70%; }
-
-[flex="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
-
-[layout="row"] > [flex="75"] {
- max-width: 75%; }
-
-[layout="column"] > [flex="75"] {
- max-height: 75%; }
-
-[flex="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
-
-[layout="row"] > [flex="80"] {
- max-width: 80%; }
-
-[layout="column"] > [flex="80"] {
- max-height: 80%; }
-
-[flex="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
-
-[layout="row"] > [flex="85"] {
- max-width: 85%; }
-
-[layout="column"] > [flex="85"] {
- max-height: 85%; }
-
-[flex="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
-
-[layout="row"] > [flex="90"] {
- max-width: 90%; }
-
-[layout="column"] > [flex="90"] {
- max-height: 90%; }
-
-[flex="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
-
-[layout="row"] > [flex="95"] {
- max-width: 95%; }
-
-[layout="column"] > [flex="95"] {
- max-height: 95%; }
-
-[flex="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
-
-[layout="row"] > [flex="100"] {
- max-width: 100%; }
-
-[layout="column"] > [flex="100"] {
- max-height: 100%; }
-
-[flex="33"], [flex="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
-
-[flex="66"], [flex="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
-
-[layout="row"] > [flex="33"], [layout="row"] > [flex="34"] {
- max-width: 33.33%; }
-[layout="row"] > [flex="66"], [layout="row"] > [flex="67"] {
- max-width: 66.66%; }
-
-[layout="column"] > [flex="33"], [layout="column"] > [flex="34"] {
- max-height: 33.33%; }
-[layout="column"] > [flex="66"], [layout="column"] > [flex="67"] {
- max-height: 66.66%; }
-
-[layout-align="center"], [layout-align="center center"], [layout-align="center start"], [layout-align="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
-
-[layout-align="end"], [layout-align="end center"], [layout-align="end start"], [layout-align="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
-
-[layout-align="space-around"], [layout-align="space-around center"], [layout-align="space-around start"], [layout-align="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
-
-[layout-align="space-between"], [layout-align="space-between center"], [layout-align="space-between start"], [layout-align="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
-
-[layout-align="center center"], [layout-align="start center"], [layout-align="end center"], [layout-align="space-between center"], [layout-align="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
-
-[layout-align="center start"], [layout-align="start start"], [layout-align="end start"], [layout-align="space-between start"], [layout-align="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
-
-[layout-align="center end"], [layout-align="start end"], [layout-align="end end"], [layout-align="space-between end"], [layout-align="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
-
-[flex-order="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
-
-[flex-order="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
-
-[flex-order="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
-
-[flex-order="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
-
-[flex-order="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
-
-[flex-order="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
-
-[flex-order="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
-
-[flex-order="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
-
-[flex-order="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
-
-[flex-order="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
-
-[offset="5"] {
- margin-left: 5%; }
-
-[offset="10"] {
- margin-left: 10%; }
-
-[offset="15"] {
- margin-left: 15%; }
-
-[offset="20"] {
- margin-left: 20%; }
-
-[offset="25"] {
- margin-left: 25%; }
-
-[offset="30"] {
- margin-left: 30%; }
-
-[offset="35"] {
- margin-left: 35%; }
-
-[offset="40"] {
- margin-left: 40%; }
-
-[offset="45"] {
- margin-left: 45%; }
-
-[offset="50"] {
- margin-left: 50%; }
-
-[offset="55"] {
- margin-left: 55%; }
-
-[offset="60"] {
- margin-left: 60%; }
-
-[offset="65"] {
- margin-left: 65%; }
-
-[offset="70"] {
- margin-left: 70%; }
-
-[offset="75"] {
- margin-left: 75%; }
-
-[offset="80"] {
- margin-left: 80%; }
-
-[offset="85"] {
- margin-left: 85%; }
-
-[offset="90"] {
- margin-left: 90%; }
-
-[offset="95"] {
- margin-left: 95%; }
-
-[offset="33"], [offset="34"] {
- margin-left: 33.33%; }
-
-[offset="66"], [offset="67"] {
- margin-left: 66.66%; }
-
-/**
- * `hide-gt-sm show-gt-lg` should hide from 600px to 1200px
- * `show-md hide-gt-sm` should show from 0px to 960px and hide at >960px
- * `hide-gt-md show-gt-sm` should show everywhere (show overrides hide)`
- */
-@media (max-width: 599px) {
- [hide-sm]:not([show-sm]):not([show]), [hide]:not([show-sm]):not([show]) {
- display: none; }
- [flex-order-sm="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-sm="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-sm="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-sm="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-sm="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-sm="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-sm="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-sm="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-sm="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-sm="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-sm="center"], [layout-align-sm="center center"], [layout-align-sm="center start"], [layout-align-sm="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-sm="end"], [layout-align-sm="end center"], [layout-align-sm="end start"], [layout-align-sm="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-sm="space-around"], [layout-align-sm="space-around center"], [layout-align-sm="space-around start"], [layout-align-sm="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-sm="space-between"], [layout-align-sm="space-between center"], [layout-align-sm="space-between start"], [layout-align-sm="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-sm="center center"], [layout-align-sm="start center"], [layout-align-sm="end center"], [layout-align-sm="space-between center"], [layout-align-sm="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-sm="center start"], [layout-align-sm="start start"], [layout-align-sm="end start"], [layout-align-sm="space-between start"], [layout-align-sm="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-sm="center end"], [layout-align-sm="start end"], [layout-align-sm="end end"], [layout-align-sm="space-between end"], [layout-align-sm="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-sm] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-sm=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-sm=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-sm="5"] {
- margin-left: 5%; }
- [offset-sm="10"] {
- margin-left: 10%; }
- [offset-sm="15"] {
- margin-left: 15%; }
- [offset-sm="20"] {
- margin-left: 20%; }
- [offset-sm="25"] {
- margin-left: 25%; }
- [offset-sm="30"] {
- margin-left: 30%; }
- [offset-sm="35"] {
- margin-left: 35%; }
- [offset-sm="40"] {
- margin-left: 40%; }
- [offset-sm="45"] {
- margin-left: 45%; }
- [offset-sm="50"] {
- margin-left: 50%; }
- [offset-sm="55"] {
- margin-left: 55%; }
- [offset-sm="60"] {
- margin-left: 60%; }
- [offset-sm="65"] {
- margin-left: 65%; }
- [offset-sm="70"] {
- margin-left: 70%; }
- [offset-sm="75"] {
- margin-left: 75%; }
- [offset-sm="80"] {
- margin-left: 80%; }
- [offset-sm="85"] {
- margin-left: 85%; }
- [offset-sm="90"] {
- margin-left: 90%; }
- [offset-sm="95"] {
- margin-left: 95%; }
- [offset-sm="33"], [offset-sm="34"] {
- margin-left: 33.33%; }
- [offset-sm="66"], [offset-sm="67"] {
- margin-left: 66.66%; }
- [flex-sm] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-sm="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-sm="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-sm="0"] {
- max-height: 0%; }
- [flex-sm="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-sm="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-sm="5"] {
- max-height: 5%; }
- [flex-sm="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-sm="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-sm="10"] {
- max-height: 10%; }
- [flex-sm="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-sm="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-sm="15"] {
- max-height: 15%; }
- [flex-sm="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-sm="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-sm="20"] {
- max-height: 20%; }
- [flex-sm="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-sm="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-sm="25"] {
- max-height: 25%; }
- [flex-sm="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-sm="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-sm="30"] {
- max-height: 30%; }
- [flex-sm="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-sm="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-sm="35"] {
- max-height: 35%; }
- [flex-sm="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-sm="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-sm="40"] {
- max-height: 40%; }
- [flex-sm="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-sm="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-sm="45"] {
- max-height: 45%; }
- [flex-sm="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-sm="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-sm="50"] {
- max-height: 50%; }
- [flex-sm="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-sm="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-sm="55"] {
- max-height: 55%; }
- [flex-sm="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-sm="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-sm="60"] {
- max-height: 60%; }
- [flex-sm="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-sm="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-sm="65"] {
- max-height: 65%; }
- [flex-sm="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-sm="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-sm="70"] {
- max-height: 70%; }
- [flex-sm="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-sm="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-sm="75"] {
- max-height: 75%; }
- [flex-sm="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-sm="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-sm="80"] {
- max-height: 80%; }
- [flex-sm="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-sm="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-sm="85"] {
- max-height: 85%; }
- [flex-sm="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-sm="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-sm="90"] {
- max-height: 90%; }
- [flex-sm="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-sm="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-sm="95"] {
- max-height: 95%; }
- [flex-sm="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-sm="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-sm="100"] {
- max-height: 100%; }
- [flex-sm="33"], [flex-sm="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-sm="66"], [flex-sm="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-sm="33"], [layout="row"] > [flex-sm="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-sm="66"], [layout="row"] > [flex-sm="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-sm="33"], [layout="column"] > [flex-sm="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-sm="66"], [layout="column"] > [flex-sm="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 600px) {
- [flex-order-gt-sm="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-sm="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-sm="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-sm="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-sm="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-sm="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-sm="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-sm="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-sm="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-sm="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-sm="center"], [layout-align-gt-sm="center center"], [layout-align-gt-sm="center start"], [layout-align-gt-sm="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-sm="end"], [layout-align-gt-sm="end center"], [layout-align-gt-sm="end start"], [layout-align-gt-sm="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-sm="space-around"], [layout-align-gt-sm="space-around center"], [layout-align-gt-sm="space-around start"], [layout-align-gt-sm="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-sm="space-between"], [layout-align-gt-sm="space-between center"], [layout-align-gt-sm="space-between start"], [layout-align-gt-sm="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-sm="center center"], [layout-align-gt-sm="start center"], [layout-align-gt-sm="end center"], [layout-align-gt-sm="space-between center"], [layout-align-gt-sm="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-sm="center start"], [layout-align-gt-sm="start start"], [layout-align-gt-sm="end start"], [layout-align-gt-sm="space-between start"], [layout-align-gt-sm="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-sm="center end"], [layout-align-gt-sm="start end"], [layout-align-gt-sm="end end"], [layout-align-gt-sm="space-between end"], [layout-align-gt-sm="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-sm] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-sm=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-sm=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-sm="5"] {
- margin-left: 5%; }
- [offset-gt-sm="10"] {
- margin-left: 10%; }
- [offset-gt-sm="15"] {
- margin-left: 15%; }
- [offset-gt-sm="20"] {
- margin-left: 20%; }
- [offset-gt-sm="25"] {
- margin-left: 25%; }
- [offset-gt-sm="30"] {
- margin-left: 30%; }
- [offset-gt-sm="35"] {
- margin-left: 35%; }
- [offset-gt-sm="40"] {
- margin-left: 40%; }
- [offset-gt-sm="45"] {
- margin-left: 45%; }
- [offset-gt-sm="50"] {
- margin-left: 50%; }
- [offset-gt-sm="55"] {
- margin-left: 55%; }
- [offset-gt-sm="60"] {
- margin-left: 60%; }
- [offset-gt-sm="65"] {
- margin-left: 65%; }
- [offset-gt-sm="70"] {
- margin-left: 70%; }
- [offset-gt-sm="75"] {
- margin-left: 75%; }
- [offset-gt-sm="80"] {
- margin-left: 80%; }
- [offset-gt-sm="85"] {
- margin-left: 85%; }
- [offset-gt-sm="90"] {
- margin-left: 90%; }
- [offset-gt-sm="95"] {
- margin-left: 95%; }
- [offset-gt-sm="33"], [offset-gt-sm="34"] {
- margin-left: 33.33%; }
- [offset-gt-sm="66"], [offset-gt-sm="67"] {
- margin-left: 66.66%; }
- [flex-gt-sm] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-sm="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-sm="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-sm="0"] {
- max-height: 0%; }
- [flex-gt-sm="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-sm="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-sm="5"] {
- max-height: 5%; }
- [flex-gt-sm="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-sm="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-sm="10"] {
- max-height: 10%; }
- [flex-gt-sm="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-sm="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-sm="15"] {
- max-height: 15%; }
- [flex-gt-sm="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-sm="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-sm="20"] {
- max-height: 20%; }
- [flex-gt-sm="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-sm="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-sm="25"] {
- max-height: 25%; }
- [flex-gt-sm="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-sm="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-sm="30"] {
- max-height: 30%; }
- [flex-gt-sm="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-sm="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-sm="35"] {
- max-height: 35%; }
- [flex-gt-sm="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-sm="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-sm="40"] {
- max-height: 40%; }
- [flex-gt-sm="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-sm="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-sm="45"] {
- max-height: 45%; }
- [flex-gt-sm="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-sm="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-sm="50"] {
- max-height: 50%; }
- [flex-gt-sm="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-sm="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-sm="55"] {
- max-height: 55%; }
- [flex-gt-sm="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-sm="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-sm="60"] {
- max-height: 60%; }
- [flex-gt-sm="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-sm="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-sm="65"] {
- max-height: 65%; }
- [flex-gt-sm="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-sm="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-sm="70"] {
- max-height: 70%; }
- [flex-gt-sm="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-sm="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-sm="75"] {
- max-height: 75%; }
- [flex-gt-sm="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-sm="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-sm="80"] {
- max-height: 80%; }
- [flex-gt-sm="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-sm="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-sm="85"] {
- max-height: 85%; }
- [flex-gt-sm="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-sm="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-sm="90"] {
- max-height: 90%; }
- [flex-gt-sm="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-sm="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-sm="95"] {
- max-height: 95%; }
- [flex-gt-sm="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-sm="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-sm="100"] {
- max-height: 100%; }
- [flex-gt-sm="33"], [flex-gt-sm="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-sm="66"], [flex-gt-sm="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-sm="33"], [layout="row"] > [flex-gt-sm="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-sm="66"], [layout="row"] > [flex-gt-sm="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-sm="33"], [layout="column"] > [flex-gt-sm="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-sm="66"], [layout="column"] > [flex-gt-sm="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 600px) and (max-width: 959px) {
- [hide]:not([show-gt-sm]):not([show-md]):not([show]), [hide-gt-sm]:not([show-gt-sm]):not([show-md]):not([show]) {
- display: none; }
- [hide-md]:not([show-md]):not([show]) {
- display: none; }
- [flex-order-md="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-md="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-md="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-md="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-md="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-md="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-md="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-md="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-md="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-md="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-md="center"], [layout-align-md="center center"], [layout-align-md="center start"], [layout-align-md="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-md="end"], [layout-align-md="end center"], [layout-align-md="end start"], [layout-align-md="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-md="space-around"], [layout-align-md="space-around center"], [layout-align-md="space-around start"], [layout-align-md="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-md="space-between"], [layout-align-md="space-between center"], [layout-align-md="space-between start"], [layout-align-md="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-md="center center"], [layout-align-md="start center"], [layout-align-md="end center"], [layout-align-md="space-between center"], [layout-align-md="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-md="center start"], [layout-align-md="start start"], [layout-align-md="end start"], [layout-align-md="space-between start"], [layout-align-md="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-md="center end"], [layout-align-md="start end"], [layout-align-md="end end"], [layout-align-md="space-between end"], [layout-align-md="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-md] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-md=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-md=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-md="5"] {
- margin-left: 5%; }
- [offset-md="10"] {
- margin-left: 10%; }
- [offset-md="15"] {
- margin-left: 15%; }
- [offset-md="20"] {
- margin-left: 20%; }
- [offset-md="25"] {
- margin-left: 25%; }
- [offset-md="30"] {
- margin-left: 30%; }
- [offset-md="35"] {
- margin-left: 35%; }
- [offset-md="40"] {
- margin-left: 40%; }
- [offset-md="45"] {
- margin-left: 45%; }
- [offset-md="50"] {
- margin-left: 50%; }
- [offset-md="55"] {
- margin-left: 55%; }
- [offset-md="60"] {
- margin-left: 60%; }
- [offset-md="65"] {
- margin-left: 65%; }
- [offset-md="70"] {
- margin-left: 70%; }
- [offset-md="75"] {
- margin-left: 75%; }
- [offset-md="80"] {
- margin-left: 80%; }
- [offset-md="85"] {
- margin-left: 85%; }
- [offset-md="90"] {
- margin-left: 90%; }
- [offset-md="95"] {
- margin-left: 95%; }
- [offset-md="33"], [offset-md="34"] {
- margin-left: 33.33%; }
- [offset-md="66"], [offset-md="67"] {
- margin-left: 66.66%; }
- [flex-md] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-md="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-md="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-md="0"] {
- max-height: 0%; }
- [flex-md="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-md="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-md="5"] {
- max-height: 5%; }
- [flex-md="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-md="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-md="10"] {
- max-height: 10%; }
- [flex-md="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-md="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-md="15"] {
- max-height: 15%; }
- [flex-md="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-md="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-md="20"] {
- max-height: 20%; }
- [flex-md="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-md="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-md="25"] {
- max-height: 25%; }
- [flex-md="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-md="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-md="30"] {
- max-height: 30%; }
- [flex-md="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-md="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-md="35"] {
- max-height: 35%; }
- [flex-md="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-md="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-md="40"] {
- max-height: 40%; }
- [flex-md="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-md="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-md="45"] {
- max-height: 45%; }
- [flex-md="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-md="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-md="50"] {
- max-height: 50%; }
- [flex-md="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-md="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-md="55"] {
- max-height: 55%; }
- [flex-md="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-md="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-md="60"] {
- max-height: 60%; }
- [flex-md="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-md="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-md="65"] {
- max-height: 65%; }
- [flex-md="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-md="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-md="70"] {
- max-height: 70%; }
- [flex-md="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-md="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-md="75"] {
- max-height: 75%; }
- [flex-md="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-md="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-md="80"] {
- max-height: 80%; }
- [flex-md="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-md="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-md="85"] {
- max-height: 85%; }
- [flex-md="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-md="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-md="90"] {
- max-height: 90%; }
- [flex-md="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-md="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-md="95"] {
- max-height: 95%; }
- [flex-md="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-md="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-md="100"] {
- max-height: 100%; }
- [flex-md="33"], [flex-md="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-md="66"], [flex-md="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-md="33"], [layout="row"] > [flex-md="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-md="66"], [layout="row"] > [flex-md="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-md="33"], [layout="column"] > [flex-md="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-md="66"], [layout="column"] > [flex-md="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 960px) {
- [flex-order-gt-md="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-md="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-md="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-md="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-md="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-md="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-md="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-md="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-md="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-md="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-md="center"], [layout-align-gt-md="center center"], [layout-align-gt-md="center start"], [layout-align-gt-md="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-md="end"], [layout-align-gt-md="end center"], [layout-align-gt-md="end start"], [layout-align-gt-md="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-md="space-around"], [layout-align-gt-md="space-around center"], [layout-align-gt-md="space-around start"], [layout-align-gt-md="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-md="space-between"], [layout-align-gt-md="space-between center"], [layout-align-gt-md="space-between start"], [layout-align-gt-md="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-md="center center"], [layout-align-gt-md="start center"], [layout-align-gt-md="end center"], [layout-align-gt-md="space-between center"], [layout-align-gt-md="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-md="center start"], [layout-align-gt-md="start start"], [layout-align-gt-md="end start"], [layout-align-gt-md="space-between start"], [layout-align-gt-md="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-md="center end"], [layout-align-gt-md="start end"], [layout-align-gt-md="end end"], [layout-align-gt-md="space-between end"], [layout-align-gt-md="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-md] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-md=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-md=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-md="5"] {
- margin-left: 5%; }
- [offset-gt-md="10"] {
- margin-left: 10%; }
- [offset-gt-md="15"] {
- margin-left: 15%; }
- [offset-gt-md="20"] {
- margin-left: 20%; }
- [offset-gt-md="25"] {
- margin-left: 25%; }
- [offset-gt-md="30"] {
- margin-left: 30%; }
- [offset-gt-md="35"] {
- margin-left: 35%; }
- [offset-gt-md="40"] {
- margin-left: 40%; }
- [offset-gt-md="45"] {
- margin-left: 45%; }
- [offset-gt-md="50"] {
- margin-left: 50%; }
- [offset-gt-md="55"] {
- margin-left: 55%; }
- [offset-gt-md="60"] {
- margin-left: 60%; }
- [offset-gt-md="65"] {
- margin-left: 65%; }
- [offset-gt-md="70"] {
- margin-left: 70%; }
- [offset-gt-md="75"] {
- margin-left: 75%; }
- [offset-gt-md="80"] {
- margin-left: 80%; }
- [offset-gt-md="85"] {
- margin-left: 85%; }
- [offset-gt-md="90"] {
- margin-left: 90%; }
- [offset-gt-md="95"] {
- margin-left: 95%; }
- [offset-gt-md="33"], [offset-gt-md="34"] {
- margin-left: 33.33%; }
- [offset-gt-md="66"], [offset-gt-md="67"] {
- margin-left: 66.66%; }
- [flex-gt-md] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-md="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-md="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-md="0"] {
- max-height: 0%; }
- [flex-gt-md="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-md="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-md="5"] {
- max-height: 5%; }
- [flex-gt-md="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-md="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-md="10"] {
- max-height: 10%; }
- [flex-gt-md="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-md="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-md="15"] {
- max-height: 15%; }
- [flex-gt-md="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-md="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-md="20"] {
- max-height: 20%; }
- [flex-gt-md="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-md="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-md="25"] {
- max-height: 25%; }
- [flex-gt-md="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-md="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-md="30"] {
- max-height: 30%; }
- [flex-gt-md="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-md="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-md="35"] {
- max-height: 35%; }
- [flex-gt-md="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-md="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-md="40"] {
- max-height: 40%; }
- [flex-gt-md="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-md="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-md="45"] {
- max-height: 45%; }
- [flex-gt-md="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-md="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-md="50"] {
- max-height: 50%; }
- [flex-gt-md="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-md="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-md="55"] {
- max-height: 55%; }
- [flex-gt-md="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-md="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-md="60"] {
- max-height: 60%; }
- [flex-gt-md="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-md="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-md="65"] {
- max-height: 65%; }
- [flex-gt-md="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-md="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-md="70"] {
- max-height: 70%; }
- [flex-gt-md="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-md="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-md="75"] {
- max-height: 75%; }
- [flex-gt-md="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-md="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-md="80"] {
- max-height: 80%; }
- [flex-gt-md="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-md="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-md="85"] {
- max-height: 85%; }
- [flex-gt-md="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-md="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-md="90"] {
- max-height: 90%; }
- [flex-gt-md="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-md="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-md="95"] {
- max-height: 95%; }
- [flex-gt-md="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-md="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-md="100"] {
- max-height: 100%; }
- [flex-gt-md="33"], [flex-gt-md="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-md="66"], [flex-gt-md="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-md="33"], [layout="row"] > [flex-gt-md="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-md="66"], [layout="row"] > [flex-gt-md="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-md="33"], [layout="column"] > [flex-gt-md="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-md="66"], [layout="column"] > [flex-gt-md="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 960px) and (max-width: 1199px) {
- [hide]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]), [hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]), [hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]) {
- display: none; }
- [hide-lg]:not([show-lg]):not([show]) {
- display: none; }
- [flex-order-lg="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-lg="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-lg="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-lg="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-lg="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-lg="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-lg="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-lg="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-lg="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-lg="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-lg="center"], [layout-align-lg="center center"], [layout-align-lg="center start"], [layout-align-lg="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-lg="end"], [layout-align-lg="end center"], [layout-align-lg="end start"], [layout-align-lg="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-lg="space-around"], [layout-align-lg="space-around center"], [layout-align-lg="space-around start"], [layout-align-lg="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-lg="space-between"], [layout-align-lg="space-between center"], [layout-align-lg="space-between start"], [layout-align-lg="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-lg="center center"], [layout-align-lg="start center"], [layout-align-lg="end center"], [layout-align-lg="space-between center"], [layout-align-lg="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-lg="center start"], [layout-align-lg="start start"], [layout-align-lg="end start"], [layout-align-lg="space-between start"], [layout-align-lg="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-lg="center end"], [layout-align-lg="start end"], [layout-align-lg="end end"], [layout-align-lg="space-between end"], [layout-align-lg="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-lg] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-lg=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-lg=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-lg="5"] {
- margin-left: 5%; }
- [offset-lg="10"] {
- margin-left: 10%; }
- [offset-lg="15"] {
- margin-left: 15%; }
- [offset-lg="20"] {
- margin-left: 20%; }
- [offset-lg="25"] {
- margin-left: 25%; }
- [offset-lg="30"] {
- margin-left: 30%; }
- [offset-lg="35"] {
- margin-left: 35%; }
- [offset-lg="40"] {
- margin-left: 40%; }
- [offset-lg="45"] {
- margin-left: 45%; }
- [offset-lg="50"] {
- margin-left: 50%; }
- [offset-lg="55"] {
- margin-left: 55%; }
- [offset-lg="60"] {
- margin-left: 60%; }
- [offset-lg="65"] {
- margin-left: 65%; }
- [offset-lg="70"] {
- margin-left: 70%; }
- [offset-lg="75"] {
- margin-left: 75%; }
- [offset-lg="80"] {
- margin-left: 80%; }
- [offset-lg="85"] {
- margin-left: 85%; }
- [offset-lg="90"] {
- margin-left: 90%; }
- [offset-lg="95"] {
- margin-left: 95%; }
- [offset-lg="33"], [offset-lg="34"] {
- margin-left: 33.33%; }
- [offset-lg="66"], [offset-lg="67"] {
- margin-left: 66.66%; }
- [flex-lg] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-lg="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-lg="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-lg="0"] {
- max-height: 0%; }
- [flex-lg="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-lg="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-lg="5"] {
- max-height: 5%; }
- [flex-lg="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-lg="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-lg="10"] {
- max-height: 10%; }
- [flex-lg="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-lg="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-lg="15"] {
- max-height: 15%; }
- [flex-lg="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-lg="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-lg="20"] {
- max-height: 20%; }
- [flex-lg="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-lg="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-lg="25"] {
- max-height: 25%; }
- [flex-lg="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-lg="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-lg="30"] {
- max-height: 30%; }
- [flex-lg="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-lg="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-lg="35"] {
- max-height: 35%; }
- [flex-lg="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-lg="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-lg="40"] {
- max-height: 40%; }
- [flex-lg="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-lg="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-lg="45"] {
- max-height: 45%; }
- [flex-lg="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-lg="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-lg="50"] {
- max-height: 50%; }
- [flex-lg="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-lg="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-lg="55"] {
- max-height: 55%; }
- [flex-lg="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-lg="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-lg="60"] {
- max-height: 60%; }
- [flex-lg="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-lg="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-lg="65"] {
- max-height: 65%; }
- [flex-lg="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-lg="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-lg="70"] {
- max-height: 70%; }
- [flex-lg="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-lg="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-lg="75"] {
- max-height: 75%; }
- [flex-lg="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-lg="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-lg="80"] {
- max-height: 80%; }
- [flex-lg="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-lg="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-lg="85"] {
- max-height: 85%; }
- [flex-lg="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-lg="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-lg="90"] {
- max-height: 90%; }
- [flex-lg="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-lg="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-lg="95"] {
- max-height: 95%; }
- [flex-lg="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-lg="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-lg="100"] {
- max-height: 100%; }
- [flex-lg="33"], [flex-lg="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-lg="66"], [flex-lg="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-lg="33"], [layout="row"] > [flex-lg="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-lg="66"], [layout="row"] > [flex-lg="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-lg="33"], [layout="column"] > [flex-lg="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-lg="66"], [layout="column"] > [flex-lg="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 1200px) {
- [hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide-gt-lg]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]) {
- display: none; }
- [flex-order-gt-lg="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-lg="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-lg="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-lg="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-lg="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-lg="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-lg="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-lg="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-lg="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-lg="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-lg="center"], [layout-align-gt-lg="center center"], [layout-align-gt-lg="center start"], [layout-align-gt-lg="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-lg="end"], [layout-align-gt-lg="end center"], [layout-align-gt-lg="end start"], [layout-align-gt-lg="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-lg="space-around"], [layout-align-gt-lg="space-around center"], [layout-align-gt-lg="space-around start"], [layout-align-gt-lg="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-lg="space-between"], [layout-align-gt-lg="space-between center"], [layout-align-gt-lg="space-between start"], [layout-align-gt-lg="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-lg="center center"], [layout-align-gt-lg="start center"], [layout-align-gt-lg="end center"], [layout-align-gt-lg="space-between center"], [layout-align-gt-lg="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-lg="center start"], [layout-align-gt-lg="start start"], [layout-align-gt-lg="end start"], [layout-align-gt-lg="space-between start"], [layout-align-gt-lg="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-lg="center end"], [layout-align-gt-lg="start end"], [layout-align-gt-lg="end end"], [layout-align-gt-lg="space-between end"], [layout-align-gt-lg="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-lg] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-lg=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-lg=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-lg="5"] {
- margin-left: 5%; }
- [offset-gt-lg="10"] {
- margin-left: 10%; }
- [offset-gt-lg="15"] {
- margin-left: 15%; }
- [offset-gt-lg="20"] {
- margin-left: 20%; }
- [offset-gt-lg="25"] {
- margin-left: 25%; }
- [offset-gt-lg="30"] {
- margin-left: 30%; }
- [offset-gt-lg="35"] {
- margin-left: 35%; }
- [offset-gt-lg="40"] {
- margin-left: 40%; }
- [offset-gt-lg="45"] {
- margin-left: 45%; }
- [offset-gt-lg="50"] {
- margin-left: 50%; }
- [offset-gt-lg="55"] {
- margin-left: 55%; }
- [offset-gt-lg="60"] {
- margin-left: 60%; }
- [offset-gt-lg="65"] {
- margin-left: 65%; }
- [offset-gt-lg="70"] {
- margin-left: 70%; }
- [offset-gt-lg="75"] {
- margin-left: 75%; }
- [offset-gt-lg="80"] {
- margin-left: 80%; }
- [offset-gt-lg="85"] {
- margin-left: 85%; }
- [offset-gt-lg="90"] {
- margin-left: 90%; }
- [offset-gt-lg="95"] {
- margin-left: 95%; }
- [offset-gt-lg="33"], [offset-gt-lg="34"] {
- margin-left: 33.33%; }
- [offset-gt-lg="66"], [offset-gt-lg="67"] {
- margin-left: 66.66%; }
- [flex-gt-lg] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-lg="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-lg="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-lg="0"] {
- max-height: 0%; }
- [flex-gt-lg="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-lg="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-lg="5"] {
- max-height: 5%; }
- [flex-gt-lg="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-lg="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-lg="10"] {
- max-height: 10%; }
- [flex-gt-lg="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-lg="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-lg="15"] {
- max-height: 15%; }
- [flex-gt-lg="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-lg="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-lg="20"] {
- max-height: 20%; }
- [flex-gt-lg="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-lg="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-lg="25"] {
- max-height: 25%; }
- [flex-gt-lg="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-lg="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-lg="30"] {
- max-height: 30%; }
- [flex-gt-lg="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-lg="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-lg="35"] {
- max-height: 35%; }
- [flex-gt-lg="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-lg="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-lg="40"] {
- max-height: 40%; }
- [flex-gt-lg="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-lg="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-lg="45"] {
- max-height: 45%; }
- [flex-gt-lg="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-lg="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-lg="50"] {
- max-height: 50%; }
- [flex-gt-lg="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-lg="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-lg="55"] {
- max-height: 55%; }
- [flex-gt-lg="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-lg="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-lg="60"] {
- max-height: 60%; }
- [flex-gt-lg="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-lg="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-lg="65"] {
- max-height: 65%; }
- [flex-gt-lg="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-lg="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-lg="70"] {
- max-height: 70%; }
- [flex-gt-lg="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-lg="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-lg="75"] {
- max-height: 75%; }
- [flex-gt-lg="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-lg="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-lg="80"] {
- max-height: 80%; }
- [flex-gt-lg="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-lg="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-lg="85"] {
- max-height: 85%; }
- [flex-gt-lg="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-lg="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-lg="90"] {
- max-height: 90%; }
- [flex-gt-lg="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-lg="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-lg="95"] {
- max-height: 95%; }
- [flex-gt-lg="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-lg="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-lg="100"] {
- max-height: 100%; }
- [flex-gt-lg="33"], [flex-gt-lg="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-lg="66"], [flex-gt-lg="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-lg="33"], [layout="row"] > [flex-gt-lg="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-lg="66"], [layout="row"] > [flex-gt-lg="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-lg="33"], [layout="column"] > [flex-gt-lg="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-lg="66"], [layout="column"] > [flex-gt-lg="67"] {
- max-height: 66.66%; } }
-
-@-webkit-keyframes md-autocomplete-list-out {
- 0% {
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 50% {
- opacity: 0;
- height: 40px;
- -webkit-animation-timing-function: ease-in;
- animation-timing-function: ease-in; }
-
- 100% {
- height: 0;
- opacity: 0; } }
-
-@keyframes md-autocomplete-list-out {
- 0% {
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 50% {
- opacity: 0;
- height: 40px;
- -webkit-animation-timing-function: ease-in;
- animation-timing-function: ease-in; }
-
- 100% {
- height: 0;
- opacity: 0; } }
-
-@-webkit-keyframes md-autocomplete-list-in {
- 0% {
- opacity: 0;
- height: 0;
- -webkit-animation-timing-function: ease-out;
- animation-timing-function: ease-out; }
-
- 50% {
- opacity: 0;
- height: 40px; }
-
- 100% {
- opacity: 1;
- height: 40px; } }
-
-@keyframes md-autocomplete-list-in {
- 0% {
- opacity: 0;
- height: 0;
- -webkit-animation-timing-function: ease-out;
- animation-timing-function: ease-out; }
-
- 50% {
- opacity: 0;
- height: 40px; }
-
- 100% {
- opacity: 1;
- height: 40px; } }
-
-md-autocomplete {
- border-radius: 2px;
- display: block;
- height: 40px;
- position: relative;
- overflow: visible;
- min-width: 190px; }
- md-autocomplete[disabled] input {
- cursor: not-allowed; }
- md-autocomplete[md-floating-label] {
- padding-bottom: 26px;
- border-radius: 0;
- background: transparent;
- height: auto; }
- md-autocomplete[md-floating-label] md-input-container {
- padding-bottom: 0; }
- md-autocomplete[md-floating-label] md-autocomplete-wrap {
- height: auto; }
- md-autocomplete[md-floating-label] button {
- position: absolute;
- top: auto;
- bottom: 0;
- right: 0;
- width: 30px;
- height: 30px; }
- md-autocomplete md-autocomplete-wrap {
- display: block;
- position: relative;
- overflow: visible;
- height: 40px; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate] {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 3px;
- transition: none; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate] .md-container {
- transition: none;
- top: auto;
- height: 3px; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter {
- transition: opacity 0.15s linear; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter.ng-enter-active {
- opacity: 1; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave {
- transition: opacity 0.15s linear; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave.ng-leave-active {
- opacity: 0; }
- md-autocomplete input:not(.md-input) {
- width: 100%;
- box-sizing: border-box;
- border: none;
- box-shadow: none;
- padding: 0 15px;
- font-size: 14px;
- line-height: 40px;
- height: 40px;
- outline: none;
- background: transparent; }
- md-autocomplete input:not(.md-input)::-ms-clear {
- display: none; }
- md-autocomplete button {
- position: relative;
- line-height: 20px;
- text-align: center;
- width: 30px;
- height: 30px;
- cursor: pointer;
- border: none;
- border-radius: 50%;
- padding: 0;
- font-size: 12px;
- background: transparent;
- margin: auto 5px; }
- md-autocomplete button:after {
- content: '';
- position: absolute;
- top: -6px;
- right: -6px;
- bottom: -6px;
- left: -6px;
- border-radius: 50%;
- -webkit-transform: scale(0);
- transform: scale(0);
- opacity: 0;
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-autocomplete button:focus {
- outline: none; }
- md-autocomplete button:focus:after {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
- md-autocomplete button md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0) scale(0.9);
- transform: translate3d(-50%, -50%, 0) scale(0.9); }
- md-autocomplete button md-icon path {
- stroke-width: 0; }
- md-autocomplete button.ng-enter {
- -webkit-transform: scale(0);
- transform: scale(0);
- transition: -webkit-transform 0.15s ease-out;
- transition: transform 0.15s ease-out; }
- md-autocomplete button.ng-enter.ng-enter-active {
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-autocomplete button.ng-leave {
- transition: -webkit-transform 0.15s ease-out;
- transition: transform 0.15s ease-out; }
- md-autocomplete button.ng-leave.ng-leave-active {
- -webkit-transform: scale(0);
- transform: scale(0); }
- @media screen and (-ms-high-contrast: active) {
- md-autocomplete input {
- border: 1px solid #fff; }
- md-autocomplete li:focus {
- color: #fff; } }
-
-.md-autocomplete-suggestions {
- position: absolute;
- margin: 0;
- list-style: none;
- padding: 0;
- overflow: auto;
- max-height: 225.5px;
- z-index: 100; }
- .md-autocomplete-suggestions li {
- cursor: pointer;
- font-size: 14px;
- overflow: hidden;
- padding: 0 15px;
- line-height: 48px;
- height: 48px;
- transition: background 0.15s linear;
- margin: 0;
- white-space: nowrap;
- text-overflow: ellipsis; }
- .md-autocomplete-suggestions li.ng-enter, .md-autocomplete-suggestions li.ng-hide-remove {
- transition: none;
- -webkit-animation: md-autocomplete-list-in 0.2s;
- animation: md-autocomplete-list-in 0.2s; }
- .md-autocomplete-suggestions li.ng-leave, .md-autocomplete-suggestions li.ng-hide-add {
- transition: none;
- -webkit-animation: md-autocomplete-list-out 0.2s;
- animation: md-autocomplete-list-out 0.2s; }
- .md-autocomplete-suggestions li:focus {
- outline: none; }
-
-@media screen and (-ms-high-contrast: active) {
- md-autocomplete, .md-autocomplete-suggestions {
- border: 1px solid #fff; } }
-
-md-backdrop {
- z-index: 50;
- background-color: transparent;
- position: absolute;
- height: 100%;
- left: 0;
- right: 0; }
- md-backdrop.md-select-backdrop {
- z-index: 81; }
- md-backdrop.md-dialog-backdrop {
- z-index: 79; }
- md-backdrop.md-bottom-sheet-backdrop {
- z-index: 69; }
- md-backdrop.md-sidenav-backdrop {
- z-index: 59; }
- md-backdrop.md-click-catcher {
- top: 0;
- position: fixed; }
- md-backdrop.ng-enter {
- -webkit-animation: cubic-bezier(0.25, 0.8, 0.25, 1) mdBackdropFadeIn 0.5s both;
- animation: cubic-bezier(0.25, 0.8, 0.25, 1) mdBackdropFadeIn 0.5s both; }
- md-backdrop.ng-leave {
- -webkit-animation: cubic-bezier(0.55, 0, 0.55, 0.2) mdBackdropFadeOut 0.2s both;
- animation: cubic-bezier(0.55, 0, 0.55, 0.2) mdBackdropFadeOut 0.2s both; }
-
-@-webkit-keyframes mdBackdropFadeIn {
- from {
- opacity: 0; }
-
- to {
- opacity: 1; } }
-
-@keyframes mdBackdropFadeIn {
- from {
- opacity: 0; }
-
- to {
- opacity: 1; } }
-
-@-webkit-keyframes mdBackdropFadeOut {
- from {
- opacity: 1; }
-
- to {
- opacity: 0; } }
-
-@keyframes mdBackdropFadeOut {
- from {
- opacity: 1; }
-
- to {
- opacity: 0; } }
-
-md-bottom-sheet {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- padding: 8px 16px 88px 16px;
- z-index: 70;
- border-top-width: 1px;
- border-top-style: solid;
- -webkit-transform: translate3d(0, 80px, 0);
- transform: translate3d(0, 80px, 0);
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-property: -webkit-transform;
- transition-property: transform; }
- md-bottom-sheet.md-has-header {
- padding-top: 0; }
- md-bottom-sheet.ng-enter {
- opacity: 0;
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0); }
- md-bottom-sheet.ng-enter-active {
- opacity: 1;
- display: block;
- -webkit-transform: translate3d(0, 80px, 0) !important;
- transform: translate3d(0, 80px, 0) !important; }
- md-bottom-sheet.ng-leave-active {
- -webkit-transform: translate3d(0, 100%, 0) !important;
- transform: translate3d(0, 100%, 0) !important;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-bottom-sheet .md-subheader {
- background-color: transparent;
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif;
- line-height: 56px;
- padding: 0;
- white-space: nowrap; }
- md-bottom-sheet md-inline-icon {
- display: inline-block;
- height: 24px;
- width: 24px;
- fill: #444; }
- md-bottom-sheet md-list-item {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- outline: none; }
- md-bottom-sheet md-list-item:hover {
- cursor: pointer; }
- md-bottom-sheet.md-list md-list-item {
- padding: 0;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- height: 48px; }
- md-bottom-sheet.md-list md-list-item div.md-icon-container {
- display: inline-block;
- height: 24px;
- margin-right: 32px; }
- md-bottom-sheet.md-grid {
- padding-left: 24px;
- padding-right: 24px;
- padding-top: 0; }
- md-bottom-sheet.md-grid md-list {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
- transition: all 0.5s;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- transition: all 0.5s;
- height: 96px;
- margin-top: 8px;
- margin-bottom: 8px;
- /* Mixin for how many grid items to show per row */ }
- @media screen and (max-width: 600px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 33.33333%;
- -ms-flex: 1 1 33.33333%;
- flex: 1 1 33.33333%;
- max-width: 33.33333%; }
- md-bottom-sheet.md-grid md-list-item:nth-of-type(3n+1) {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- md-bottom-sheet.md-grid md-list-item:nth-of-type(3n) {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; } }
- @media screen and (min-width: 600px) and (max-width: 960px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 25%;
- -ms-flex: 1 1 25%;
- flex: 1 1 25%;
- max-width: 25%; } }
- @media screen and (min-width: 960px) and (max-width: 1200px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 16.66667%;
- -ms-flex: 1 1 16.66667%;
- flex: 1 1 16.66667%;
- max-width: 16.66667%; } }
- @media screen and (min-width: 1200px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 14.28571%;
- -ms-flex: 1 1 14.28571%;
- flex: 1 1 14.28571%;
- max-width: 14.28571%; } }
- md-bottom-sheet.md-grid md-list-item .md-list-item-content {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: 48px;
- padding-bottom: 16px; }
- md-bottom-sheet.md-grid md-list-item .md-grid-item-content {
- border: 1px solid transparent;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: 80px; }
- md-bottom-sheet.md-grid md-list-item .md-icon-container {
- display: inline-block;
- box-sizing: border-box;
- height: 48px;
- width: 48px;
- margin: 0 0; }
- md-bottom-sheet.md-grid md-list-item .md-grid-text {
- font-weight: 400;
- line-height: 16px;
- font-size: 13px;
- margin: 0;
- white-space: nowrap;
- width: 64px;
- text-align: center;
- text-transform: none;
- padding-top: 8px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-bottom-sheet {
- border: 1px solid #fff; } }
-
-/**
- * Position a FAB button.
- */
-.md-button {
- box-sizing: border-box;
- color: currentColor;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- position: relative;
- outline: none;
- border: 0;
- display: inline-block;
- padding: 0 6px;
- margin: 6px 8px;
- line-height: 36px;
- min-height: 36px;
- background: transparent;
- white-space: nowrap;
- min-width: 88px;
- text-align: center;
- text-transform: uppercase;
- font-weight: 500;
- font-size: 14px;
- font-style: inherit;
- font-variant: inherit;
- font-family: inherit;
- text-decoration: none;
- cursor: pointer;
- overflow: hidden;
- transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- .md-button *, .md-button *:before, .md-button *:after {
- box-sizing: border-box; }
- .md-button:focus {
- outline: none; }
- .md-button:hover, .md-button:focus {
- text-decoration: none; }
- .md-button.ng-hide, .md-button.ng-leave {
- transition: none; }
- .md-button.md-cornered {
- border-radius: 0; }
- .md-button.md-icon {
- padding: 0;
- background: none; }
- .md-button.md-icon-button {
- margin: 0 6px;
- height: 48px;
- min-width: 0;
- line-height: 48px;
- padding-left: 0;
- padding-right: 0;
- width: 48px;
- border-radius: 50%; }
- .md-button.md-icon-button .md-ripple-container {
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC'); }
- .md-button.md-fab {
- z-index: 20;
- line-height: 56px;
- min-width: 0;
- width: 56px;
- height: 56px;
- vertical-align: middle;
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- transition: 0.2s linear;
- transition-property: background-color, box-shadow; }
- .md-button.md-fab.md-fab-bottom-right {
- top: auto;
- right: 20px;
- bottom: 20px;
- left: auto;
- position: absolute; }
- .md-button.md-fab.md-fab-bottom-left {
- top: auto;
- right: auto;
- bottom: 20px;
- left: 20px;
- position: absolute; }
- .md-button.md-fab.md-fab-top-right {
- top: 20px;
- right: 20px;
- bottom: auto;
- left: auto;
- position: absolute; }
- .md-button.md-fab.md-fab-top-left {
- top: 20px;
- right: auto;
- bottom: auto;
- left: 20px;
- position: absolute; }
- .md-button.md-fab .md-ripple-container {
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC'); }
- .md-button.md-fab md-icon {
- margin-top: 0; }
- .md-button.md-fab.md-mini {
- line-height: 40px;
- width: 40px;
- height: 40px; }
-
-.md-toast-open-top .md-button.md-fab-top-left, .md-toast-open-top .md-button.md-fab-top-right {
- -webkit-transform: translate3d(0, 42px, 0);
- transform: translate3d(0, 42px, 0); }
- .md-toast-open-top .md-button.md-fab-top-left:not([disabled]).md-focused, .md-toast-open-top .md-button.md-fab-top-left:not([disabled]):hover, .md-toast-open-top .md-button.md-fab-top-right:not([disabled]).md-focused, .md-toast-open-top .md-button.md-fab-top-right:not([disabled]):hover {
- -webkit-transform: translate3d(0, 41px, 0);
- transform: translate3d(0, 41px, 0); }
-
-.md-toast-open-bottom .md-button.md-fab-bottom-left, .md-toast-open-bottom .md-button.md-fab-bottom-right {
- -webkit-transform: translate3d(0, -42px, 0);
- transform: translate3d(0, -42px, 0); }
- .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]).md-focused, .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]):hover, .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]).md-focused, .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):hover {
- -webkit-transform: translate3d(0, -43px, 0);
- transform: translate3d(0, -43px, 0); }
-
-.md-button-group {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- width: 100%; }
-
-.md-button-group > .md-button {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- display: block;
- overflow: hidden;
- width: 0;
- border-width: 1px 0px 1px 1px;
- border-radius: 0;
- text-align: center;
- text-overflow: ellipsis;
- white-space: nowrap; }
- .md-button-group > .md-button:first-child {
- border-radius: 2px 0px 0px 2px; }
- .md-button-group > .md-button:last-child {
- border-right-width: 1px;
- border-radius: 0px 2px 2px 0px; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-button.md-raised, .md-button.md-fab {
- border: 1px solid #fff; } }
-
-md-card {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- margin: 8px;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
- md-card > img, md-card > :not(md-card-content) img {
- width: 100%; }
- md-card md-card-content {
- padding: 16px; }
- md-card .md-actions {
- margin: 0; }
- md-card .md-actions .md-button {
- margin-bottom: 8px;
- margin-top: 8px;
- margin-right: 4px;
- margin-left: 4px; }
- md-card md-card-footer {
- padding: 16px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-card {
- border: 1px solid #fff; } }
-
-md-checkbox {
- box-sizing: border-box;
- display: block;
- margin: 8px;
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- padding-left: 18px;
- padding-right: 0;
- position: relative;
- line-height: 26px;
- min-width: 18px;
- min-height: 18px; }
- html[dir=rtl] md-checkbox {
- padding-left: 0; }
- html[dir=rtl] md-checkbox {
- padding-right: 18px; }
- md-checkbox *, md-checkbox *:before, md-checkbox *:after {
- box-sizing: border-box; }
- md-checkbox.md-focused:not([disabled]) .md-container:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
- md-checkbox.md-focused:not([disabled]):not(.md-checked) .md-container:before {
- background-color: rgba(0, 0, 0, 0.12); }
- md-checkbox .md-container {
- position: absolute;
- top: 50%;
- display: inline-block;
- width: 18px;
- height: 18px;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- left: 0;
- right: auto; }
- html[dir=rtl] md-checkbox .md-container {
- left: auto; }
- html[dir=rtl] md-checkbox .md-container {
- right: 0; }
- md-checkbox .md-container:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-checkbox .md-container:after {
- content: '';
- position: absolute;
- top: -10px;
- right: -10px;
- bottom: -10px;
- left: -10px; }
- md-checkbox .md-container .md-ripple-container {
- position: absolute;
- display: block;
- width: auto;
- height: auto;
- left: -15px;
- top: -15px;
- right: -15px;
- bottom: -15px; }
- md-checkbox .md-icon {
- transition: 240ms;
- position: absolute;
- top: 0;
- left: 0;
- width: 18px;
- height: 18px;
- border-width: 2px;
- border-style: solid;
- border-radius: 2px; }
- md-checkbox.md-checked .md-icon {
- border: none; }
- md-checkbox[disabled] {
- cursor: no-drop; }
- md-checkbox.md-checked .md-icon:after {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
- position: absolute;
- left: 6px;
- top: 2px;
- display: table;
- width: 6px;
- height: 12px;
- border-width: 2px;
- border-style: solid;
- border-top: 0;
- border-left: 0;
- content: ''; }
- md-checkbox .md-label {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- white-space: normal;
- pointer-events: none;
- -webkit-user-select: text;
- -moz-user-select: text;
- -ms-user-select: text;
- user-select: text; }
- md-checkbox .md-label span {
- margin-left: 10px;
- margin-right: 0; }
- html[dir=rtl] md-checkbox .md-label span {
- margin-left: 0; }
- html[dir=rtl] md-checkbox .md-label span {
- margin-right: 10px; }
-
-.md-contact-chips .md-chips .md-chip {
- padding: 0 8px 0 0; }
- .md-contact-chips .md-chips .md-chip .md-contact-avatar {
- float: left; }
- .md-contact-chips .md-chips .md-chip .md-contact-avatar img {
- height: 32px;
- border-radius: 16px; }
- .md-contact-chips .md-chips .md-chip .md-contact-name {
- display: inline-block;
- height: 32px;
- margin-left: 8px; }
-
-.md-contact-suggestion {
- height: 56px; }
- .md-contact-suggestion img {
- height: 40px;
- border-radius: 20px;
- margin-top: 8px; }
- .md-contact-suggestion .md-contact-name {
- margin-left: 8px;
- width: 120px; }
- .md-contact-suggestion .md-contact-name, .md-contact-suggestion .md-contact-email {
- display: inline-block;
- overflow: hidden;
- text-overflow: ellipsis; }
-
-.md-contact-chips-suggestions li {
- height: 100%; }
-
-.md-chips {
- display: block;
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif;
- font-size: 13px;
- padding: 0 0 8px 0;
- vertical-align: middle;
- cursor: text; }
- .md-chips:after {
- content: '';
- display: table;
- clear: both; }
- .md-chips .md-chip {
- cursor: default;
- border-radius: 16px;
- display: block;
- height: 32px;
- line-height: 32px;
- margin: 8px 8px 0 0;
- padding: 0 8px 0 12px;
- float: left; }
- .md-chips .md-chip .md-chip-content {
- display: block;
- padding-right: 4px;
- float: left;
- white-space: nowrap; }
- .md-chips .md-chip .md-chip-content:focus {
- outline: none; }
- .md-chips .md-chip .md-chip-remove-container {
- display: inline-block;
- margin-right: -5px; }
- .md-chips .md-chip .md-chip-remove {
- text-align: center;
- width: 32px;
- height: 32px;
- min-width: 0;
- padding: 0;
- background: transparent;
- border: none;
- box-shadow: none;
- margin: 0;
- position: relative; }
- .md-chips .md-chip .md-chip-remove md-icon {
- height: 18px;
- width: 18px;
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0); }
- .md-chips .md-chip-input-container {
- display: block;
- line-height: 32px;
- margin: 8px 8px 0 0;
- padding: 0 8px 0 12px;
- float: left; }
- .md-chips .md-chip-input-container input:not([type]), .md-chips .md-chip-input-container input[type="email"], .md-chips .md-chip-input-container input[type="number"], .md-chips .md-chip-input-container input[type="tel"], .md-chips .md-chip-input-container input[type="url"], .md-chips .md-chip-input-container input[type="text"] {
- border: 0;
- height: 32px;
- line-height: 32px;
- padding: 0; }
- .md-chips .md-chip-input-container input:not([type]):focus, .md-chips .md-chip-input-container input[type="email"]:focus, .md-chips .md-chip-input-container input[type="number"]:focus, .md-chips .md-chip-input-container input[type="tel"]:focus, .md-chips .md-chip-input-container input[type="url"]:focus, .md-chips .md-chip-input-container input[type="text"]:focus {
- outline: none; }
- .md-chips .md-chip-input-container md-autocomplete, .md-chips .md-chip-input-container md-autocomplete-wrap {
- background: transparent;
- height: 32px; }
- .md-chips .md-chip-input-container md-autocomplete md-autocomplete-wrap {
- box-shadow: none; }
- .md-chips .md-chip-input-container md-autocomplete input {
- position: relative; }
- .md-chips .md-chip-input-container input {
- border: 0;
- height: 32px;
- line-height: 32px;
- padding: 0; }
- .md-chips .md-chip-input-container input:focus {
- outline: none; }
- .md-chips .md-chip-input-container md-autocomplete, .md-chips .md-chip-input-container md-autocomplete-wrap {
- height: 32px; }
- .md-chips .md-chip-input-container md-autocomplete {
- box-shadow: none; }
- .md-chips .md-chip-input-container md-autocomplete input {
- position: relative; }
- .md-chips .md-chip-input-container:not(:first-child) {
- margin: 8px 8px 0 0; }
- .md-chips .md-chip-input-container input {
- background: transparent;
- border-width: 0; }
- .md-chips md-autocomplete button {
- display: none; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-chip-input-container, md-chip {
- border: 1px solid #fff; }
- .md-chip-input-container md-autocomplete {
- border: none; } }
-
-md-content {
- display: block;
- position: relative;
- overflow: auto;
- -webkit-overflow-scrolling: touch; }
- md-content[md-scroll-y] {
- overflow-y: auto;
- overflow-x: hidden; }
- md-content[md-scroll-x] {
- overflow-x: auto;
- overflow-y: hidden; }
- md-content.autoScroll {
- -webkit-overflow-scrolling: auto; }
-
-.md-dialog-is-showing {
- max-height: 100%; }
-
-.md-dialog-container {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 80; }
-
-md-dialog {
- opacity: 0;
- min-width: 240px;
- max-width: 80%;
- max-height: 80%;
- position: relative;
- overflow: hidden;
- box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.14), 0px 16px 24px 2px rgba(0, 0, 0, 0.098), 0px 6px 30px 5px rgba(0, 0, 0, 0.084);
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- md-dialog.transition-in {
- opacity: 1;
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate3d(0, 0, 0) scale(1);
- transform: translate3d(0, 0, 0) scale(1); }
- md-dialog.transition-out {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate3d(0, 100%, 0) scale(0.2);
- transform: translate3d(0, 100%, 0) scale(0.2); }
- md-dialog > form {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- overflow: auto; }
- md-dialog md-dialog-content {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- padding: 24px;
- overflow: auto;
- -webkit-overflow-scrolling: touch; }
- md-dialog md-dialog-content:not([layout=row]) > *:first-child:not(.md-subheader) {
- margin-top: 0; }
- md-dialog md-dialog-content:focus {
- outline: none; }
- md-dialog md-dialog-content .md-subheader {
- margin: 0; }
- md-dialog md-dialog-content .md-subheader.sticky-clone {
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16); }
- md-dialog md-dialog-content.sticky-container {
- padding: 0; }
- md-dialog md-dialog-content.sticky-container > div {
- padding: 24px;
- padding-top: 0; }
- md-dialog .md-actions {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2;
- box-sizing: border-box;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end;
- margin-bottom: 0;
- padding-right: 8px;
- padding-left: 16px;
- min-height: 52px; }
- md-dialog .md-actions .md-button {
- margin-bottom: 8px;
- margin-left: 8px;
- margin-right: 0;
- margin-top: 8px; }
- md-dialog.md-content-overflow .md-actions {
- border-top-width: 1px;
- border-top-style: solid; }
-
-@media screen and (-ms-high-contrast: active) {
- md-dialog {
- border: 1px solid #fff; } }
-
-md-divider {
- display: block;
- border-top-width: 1px;
- border-top-style: solid;
- margin: 0; }
- md-divider[md-inset] {
- margin-left: 80px; }
-
-md-grid-list {
- box-sizing: border-box;
- display: block;
- position: relative; }
- md-grid-list *, md-grid-list *:before, md-grid-list *:after {
- box-sizing: border-box; }
- md-grid-list md-grid-tile {
- display: block;
- position: absolute; }
- md-grid-list md-grid-tile figure {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- height: 100%;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 0;
- margin: 0; }
- md-grid-list md-grid-tile md-grid-tile-header, md-grid-list md-grid-tile md-grid-tile-footer {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- height: 48px;
- color: #fff;
- background: rgba(0, 0, 0, 0.18);
- overflow: hidden;
- position: absolute;
- left: 0;
- right: 0; }
- md-grid-list md-grid-tile md-grid-tile-header h3, md-grid-list md-grid-tile md-grid-tile-header h4, md-grid-list md-grid-tile md-grid-tile-footer h3, md-grid-list md-grid-tile md-grid-tile-footer h4 {
- font-weight: 400;
- margin: 0 0 0 16px; }
- md-grid-list md-grid-tile md-grid-tile-header h3, md-grid-list md-grid-tile md-grid-tile-footer h3 {
- font-size: 14px; }
- md-grid-list md-grid-tile md-grid-tile-header h4, md-grid-list md-grid-tile md-grid-tile-footer h4 {
- font-size: 12px; }
- md-grid-list md-grid-tile md-grid-tile-header {
- top: 0; }
- md-grid-list md-grid-tile md-grid-tile-footer {
- bottom: 0; }
-
-@media screen and (-ms-high-contrast: active) {
- md-grid-tile {
- border: 1px solid #fff; }
- md-grid-tile-footer {
- border-top: 1px solid #fff; } }
-
-md-icon {
- margin: auto;
- background-repeat: no-repeat no-repeat;
- display: inline-block;
- vertical-align: middle;
- fill: currentColor;
- height: 24px;
- width: 24px; }
- md-icon svg {
- pointer-events: none; }
- md-icon[md-font-icon] {
- line-height: 1;
- width: auto; }
-
-md-input-container {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- position: relative;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- padding: 2px;
- padding-bottom: 26px;
- /*
- * The .md-input class is added to the input/textarea
- */ }
- md-input-container > md-icon {
- position: absolute;
- top: 5px;
- left: 2px; }
- md-input-container > md-icon + input {
- margin-left: 36px; }
- md-input-container textarea, md-input-container input[type="text"], md-input-container input[type="password"], md-input-container input[type="datetime"], md-input-container input[type="datetime-local"], md-input-container input[type="date"], md-input-container input[type="month"], md-input-container input[type="time"], md-input-container input[type="week"], md-input-container input[type="number"], md-input-container input[type="email"], md-input-container input[type="url"], md-input-container input[type="search"], md-input-container input[type="tel"], md-input-container input[type="color"] {
- /* remove default appearance from all input/textarea */
- -moz-appearance: none;
- -webkit-appearance: none; }
- md-input-container input[type="date"], md-input-container input[type="datetime-local"], md-input-container input[type="month"], md-input-container input[type="time"], md-input-container input[type="week"] {
- min-height: 26px; }
- md-input-container textarea {
- resize: none;
- overflow: hidden; }
- md-input-container textarea.md-input {
- min-height: 56px;
- -ms-flex-preferred-size: auto; }
- md-input-container label {
- position: relative;
- top: -2px; }
- md-input-container label:not(.md-no-float), md-input-container .md-placeholder:not(.md-select-label) {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1;
- pointer-events: none;
- -webkit-font-smoothing: antialiased;
- padding-left: 2px;
- z-index: 1;
- -webkit-transform: translate3d(0, 28px, 0) scale(1);
- transform: translate3d(0, 28px, 0) scale(1);
- transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
- transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
- -webkit-transform-origin: left top;
- transform-origin: left top; }
- html[dir=rtl] md-input-container label:not(.md-no-float), html[dir=rtl] md-input-container .md-placeholder:not(.md-select-label) {
- -webkit-transform-origin: right top;
- transform-origin: right top; }
- md-input-container .md-placeholder:not(.md-select-label) {
- position: absolute;
- top: 0;
- opacity: 0;
- transition-property: opacity, -webkit-transform;
- transition-property: opacity, transform;
- -webkit-transform: translate3d(0, 30px, 0);
- transform: translate3d(0, 30px, 0); }
- md-input-container.md-input-focused .md-placeholder {
- opacity: 1;
- -webkit-transform: translate3d(0, 24px, 0);
- transform: translate3d(0, 24px, 0); }
- md-input-container.md-input-has-value .md-placeholder {
- transition: none;
- opacity: 0; }
- md-input-container:not(.md-input-has-value) input:not(:focus) {
- color: transparent; }
- md-input-container .md-input {
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2;
- display: block;
- background: none;
- padding-top: 2px;
- padding-bottom: 1px;
- padding-left: 2px;
- padding-right: 2px;
- border-width: 0 0 1px 0;
- line-height: 26px;
- -ms-flex-preferred-size: 26px;
- border-radius: 0; }
- md-input-container .md-input:focus {
- outline: none; }
- md-input-container .md-input:invalid {
- outline: none;
- box-shadow: none; }
- md-input-container ng-messages, md-input-container data-ng-messages, md-input-container x-ng-messages, md-input-container [ng-messages], md-input-container [data-ng-messages], md-input-container [x-ng-messages] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3;
- position: relative; }
- md-input-container ng-message, md-input-container data-ng-message, md-input-container x-ng-message, md-input-container [ng-message], md-input-container [data-ng-message], md-input-container [x-ng-message], md-input-container .md-char-counter {
- -webkit-font-smoothing: antialiased;
- position: absolute;
- font-size: 12px;
- line-height: 24px; }
- md-input-container ng-message:not(.md-char-counter), md-input-container data-ng-message:not(.md-char-counter), md-input-container x-ng-message:not(.md-char-counter), md-input-container [ng-message]:not(.md-char-counter), md-input-container [data-ng-message]:not(.md-char-counter), md-input-container [x-ng-message]:not(.md-char-counter), md-input-container .md-char-counter:not(.md-char-counter) {
- padding-right: 30px; }
- md-input-container ng-message.ng-enter, md-input-container data-ng-message.ng-enter, md-input-container x-ng-message.ng-enter, md-input-container [ng-message].ng-enter, md-input-container [data-ng-message].ng-enter, md-input-container [x-ng-message].ng-enter, md-input-container .md-char-counter.ng-enter {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-delay: 0.2s; }
- md-input-container ng-message.ng-leave, md-input-container data-ng-message.ng-leave, md-input-container x-ng-message.ng-leave, md-input-container [ng-message].ng-leave, md-input-container [data-ng-message].ng-leave, md-input-container [x-ng-message].ng-leave, md-input-container .md-char-counter.ng-leave {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-input-container ng-message.ng-enter, md-input-container ng-message.ng-leave.ng-leave-active, md-input-container data-ng-message.ng-enter, md-input-container data-ng-message.ng-leave.ng-leave-active, md-input-container x-ng-message.ng-enter, md-input-container x-ng-message.ng-leave.ng-leave-active, md-input-container [ng-message].ng-enter, md-input-container [ng-message].ng-leave.ng-leave-active, md-input-container [data-ng-message].ng-enter, md-input-container [data-ng-message].ng-leave.ng-leave-active, md-input-container [x-ng-message].ng-enter, md-input-container [x-ng-message].ng-leave.ng-leave-active, md-input-container .md-char-counter.ng-enter, md-input-container .md-char-counter.ng-leave.ng-leave-active {
- opacity: 0;
- -webkit-transform: translate3d(0, -20%, 0);
- transform: translate3d(0, -20%, 0); }
- md-input-container ng-message.ng-leave, md-input-container ng-message.ng-enter.ng-enter-active, md-input-container data-ng-message.ng-leave, md-input-container data-ng-message.ng-enter.ng-enter-active, md-input-container x-ng-message.ng-leave, md-input-container x-ng-message.ng-enter.ng-enter-active, md-input-container [ng-message].ng-leave, md-input-container [ng-message].ng-enter.ng-enter-active, md-input-container [data-ng-message].ng-leave, md-input-container [data-ng-message].ng-enter.ng-enter-active, md-input-container [x-ng-message].ng-leave, md-input-container [x-ng-message].ng-enter.ng-enter-active, md-input-container .md-char-counter.ng-leave, md-input-container .md-char-counter.ng-enter.ng-enter-active {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-input-container .md-char-counter {
- bottom: 2px;
- right: 2px; }
- md-input-container.md-input-focused label:not(.md-no-float), md-input-container.md-input-has-value label:not(.md-no-float) {
- -webkit-transform: translate3d(0, 6px, 0) scale(0.75);
- transform: translate3d(0, 6px, 0) scale(0.75); }
- md-input-container.md-input-focused .md-input, md-input-container .md-input.ng-invalid.ng-dirty {
- padding-bottom: 0;
- border-width: 0 0 2px 0; }
- md-input-container .md-input[disabled], [disabled] md-input-container .md-input {
- background-position: 0 bottom;
- background-size: 4px 1px;
- background-repeat: repeat-x;
- margin-bottom: -1px; }
-
-md-input-container.md-icon-float {
- margin-top: -16px;
- transition: margin-top 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-input-container.md-icon-float > label {
- pointer-events: none;
- position: absolute;
- margin-left: 36px; }
- md-input-container.md-icon-float > md-icon {
- top: 26px;
- left: 2px; }
- md-input-container.md-icon-float > md-icon + input {
- margin-left: 36px; }
- md-input-container.md-icon-float > input {
- padding-top: 24px; }
- md-input-container.md-icon-float.md-input-focused, md-input-container.md-icon-float.md-input-has-value {
- margin-top: -8px; }
- md-input-container.md-icon-float.md-input-focused label, md-input-container.md-icon-float.md-input-has-value label {
- -webkit-transform: translate3d(0, 6px, 0) scale(0.75);
- transform: translate3d(0, 6px, 0) scale(0.75);
- transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s;
- transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s; }
-
-@media screen and (-ms-high-contrast: active) {
- md-input-container.md-default-theme > md-icon {
- fill: #fff; } }
-
-md-list {
- display: block;
- padding: 8px 0px 8px 0px; }
- md-list .md-subheader {
- line-height: 0.75em; }
-
-md-list-item.md-proxy-focus.md-focused .md-no-style {
- transition: background-color 0.15s linear; }
-md-list-item.md-no-proxy, md-list-item .md-no-style {
- position: relative;
- padding: 0px 16px;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- md-list-item.md-no-proxy.md-button, md-list-item .md-no-style.md-button {
- font-size: inherit;
- height: inherit;
- text-align: left;
- text-transform: none;
- width: 100%;
- white-space: normal; }
- md-list-item.md-no-proxy:focus, md-list-item .md-no-style:focus {
- outline: none; }
-md-list-item.md-with-secondary {
- position: relative; }
-md-list-item.md-clickable:hover {
- cursor: pointer; }
-md-list-item md-divider {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%; }
- md-list-item md-divider[md-inset] {
- left: 96px;
- width: calc(100% - 96px);
- margin: 0; }
-
-md-list-item, md-list-item .md-list-item-inner {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-justify-content: flex-start;
- -ms-flex-pack: start;
- justify-content: flex-start;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- min-height: 48px; }
- md-list-item > div.md-primary > md-icon, md-list-item > div.md-secondary > md-icon, md-list-item > md-icon:first-child, md-list-item > md-icon.md-secondary, md-list-item .md-list-item-inner > div.md-primary > md-icon, md-list-item .md-list-item-inner > div.md-secondary > md-icon, md-list-item .md-list-item-inner > md-icon:first-child, md-list-item .md-list-item-inner > md-icon.md-secondary {
- width: 24px;
- margin-top: 16px;
- margin-bottom: 12px;
- box-sizing: content-box; }
- md-list-item > div.md-primary > md-checkbox, md-list-item > div.md-secondary > md-checkbox, md-list-item > md-checkbox:first-child, md-list-item md-checkbox.md-secondary, md-list-item .md-list-item-inner > div.md-primary > md-checkbox, md-list-item .md-list-item-inner > div.md-secondary > md-checkbox, md-list-item .md-list-item-inner > md-checkbox:first-child, md-list-item .md-list-item-inner md-checkbox.md-secondary {
- -webkit-align-self: center;
- -ms-flex-item-align: center;
- align-self: center; }
- md-list-item > div.md-primary > md-checkbox .md-label, md-list-item > div.md-secondary > md-checkbox .md-label, md-list-item > md-checkbox:first-child .md-label, md-list-item md-checkbox.md-secondary .md-label, md-list-item .md-list-item-inner > div.md-primary > md-checkbox .md-label, md-list-item .md-list-item-inner > div.md-secondary > md-checkbox .md-label, md-list-item .md-list-item-inner > md-checkbox:first-child .md-label, md-list-item .md-list-item-inner md-checkbox.md-secondary .md-label {
- display: none; }
- md-list-item > md-icon:first-child, md-list-item .md-list-item-inner > md-icon:first-child {
- margin-right: 32px; }
- md-list-item > md-checkbox:first-child, md-list-item .md-list-item-inner > md-checkbox:first-child {
- width: 24px;
- margin-left: 3px;
- margin-right: 29px; }
- md-list-item > .md-avatar:first-child, md-list-item .md-list-item-inner > .md-avatar:first-child {
- width: 40px;
- height: 40px;
- margin-top: 8px;
- margin-bottom: 8px;
- margin-right: 16px;
- border-radius: 50%;
- box-sizing: content-box; }
- md-list-item md-checkbox.md-secondary, md-list-item md-switch.md-secondary, md-list-item .md-list-item-inner md-checkbox.md-secondary, md-list-item .md-list-item-inner md-switch.md-secondary {
- margin-right: 0;
- margin-top: 0;
- margin-bottom: 0; }
- md-list-item button.md-button.md-secondary-container, md-list-item .md-list-item-inner button.md-button.md-secondary-container {
- background-color: transparent;
- -webkit-align-self: center;
- -ms-flex-item-align: center;
- align-self: center;
- border-radius: 50%;
- margin: 0px;
- min-width: 0px; }
- md-list-item button.md-button.md-secondary-container .md-ripple, md-list-item button.md-button.md-secondary-container .md-ripple-container, md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple, md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple-container {
- border-radius: 50%; }
- md-list-item .md-secondary-container, md-list-item .md-secondary, md-list-item .md-list-item-inner .md-secondary-container, md-list-item .md-list-item-inner .md-secondary {
- margin-left: 16px;
- position: absolute;
- right: 16px;
- top: 50%;
- -webkit-transform: translate3d(0, -50%, 0);
- transform: translate3d(0, -50%, 0); }
- md-list-item > .md-button.md-secondary-container > .md-secondary, md-list-item .md-list-item-inner > .md-button.md-secondary-container > .md-secondary {
- margin-left: 0px;
- position: static; }
- md-list-item > p, md-list-item > .md-list-item-inner > p, md-list-item .md-list-item-inner > p, md-list-item .md-list-item-inner > .md-list-item-inner > p {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- margin: 0; }
-
-md-list-item.md-2-line, md-list-item.md-2-line > .md-no-style, md-list-item.md-3-line, md-list-item.md-3-line > .md-no-style {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- md-list-item.md-2-line .md-list-item-text, md-list-item.md-2-line > .md-no-style .md-list-item-text, md-list-item.md-3-line .md-list-item-text, md-list-item.md-3-line > .md-no-style .md-list-item-text {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- padding: 16px 0;
- text-overflow: ellipsis; }
- md-list-item.md-2-line .md-list-item-text.md-offset, md-list-item.md-2-line > .md-no-style .md-list-item-text.md-offset, md-list-item.md-3-line .md-list-item-text.md-offset, md-list-item.md-3-line > .md-no-style .md-list-item-text.md-offset {
- margin-left: 56px; }
- md-list-item.md-2-line .md-list-item-text h3, md-list-item.md-2-line > .md-no-style .md-list-item-text h3, md-list-item.md-3-line .md-list-item-text h3, md-list-item.md-3-line > .md-no-style .md-list-item-text h3 {
- margin: 0 0 6px 0;
- line-height: 0.75em; }
- md-list-item.md-2-line .md-list-item-text h4, md-list-item.md-2-line > .md-no-style .md-list-item-text h4, md-list-item.md-3-line .md-list-item-text h4, md-list-item.md-3-line > .md-no-style .md-list-item-text h4 {
- font-weight: 400;
- margin: 10px 0 5px 0;
- line-height: 0.75em; }
- md-list-item.md-2-line .md-list-item-text p, md-list-item.md-2-line > .md-no-style .md-list-item-text p, md-list-item.md-3-line .md-list-item-text p, md-list-item.md-3-line > .md-no-style .md-list-item-text p {
- margin: 0 0 0px 0;
- line-height: 1.6em; }
-
-md-list-item.md-2-line > .md-avatar:first-child, md-list-item.md-2-line > .md-no-style > .md-avatar:first-child {
- margin-top: 12px; }
-md-list-item.md-2-line > md-icon:first-child, md-list-item.md-2-line > .md-no-style > md-icon:first-child {
- -webkit-align-self: flex-start;
- -ms-flex-item-align: start;
- align-self: flex-start; }
-md-list-item.md-2-line .md-list-item-text, md-list-item.md-2-line > .md-no-style .md-list-item-text {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- padding-top: 19px; }
-
-md-list-item.md-3-line > md-icon:first-child, md-list-item.md-3-line > .md-avatar:first-child, md-list-item.md-3-line > .md-no-style > md-icon:first-child, md-list-item.md-3-line > .md-no-style > .md-avatar:first-child {
- margin-top: 16px; }
-
-@-webkit-keyframes outer-rotate {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg); } }
-
-@keyframes outer-rotate {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg); } }
-
-@-webkit-keyframes left-wobble {
- 0%, 100% {
- -webkit-transform: rotate(130deg);
- transform: rotate(130deg); }
-
- 50% {
- -webkit-transform: rotate(-5deg);
- transform: rotate(-5deg); } }
-
-@keyframes left-wobble {
- 0%, 100% {
- -webkit-transform: rotate(130deg);
- transform: rotate(130deg); }
-
- 50% {
- -webkit-transform: rotate(-5deg);
- transform: rotate(-5deg); } }
-
-@-webkit-keyframes right-wobble {
- 0%, 100% {
- -webkit-transform: rotate(-130deg);
- transform: rotate(-130deg); }
-
- 50% {
- -webkit-transform: rotate(5deg);
- transform: rotate(5deg); } }
-
-@keyframes right-wobble {
- 0%, 100% {
- -webkit-transform: rotate(-130deg);
- transform: rotate(-130deg); }
-
- 50% {
- -webkit-transform: rotate(5deg);
- transform: rotate(5deg); } }
-
-@-webkit-keyframes sporadic-rotate {
- 12.5% {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
-
- 25% {
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg); }
-
- 37.5% {
- -webkit-transform: rotate(405deg);
- transform: rotate(405deg); }
-
- 50% {
- -webkit-transform: rotate(540deg);
- transform: rotate(540deg); }
-
- 62.5% {
- -webkit-transform: rotate(675deg);
- transform: rotate(675deg); }
-
- 75% {
- -webkit-transform: rotate(810deg);
- transform: rotate(810deg); }
-
- 87.5% {
- -webkit-transform: rotate(945deg);
- transform: rotate(945deg); }
-
- 100% {
- -webkit-transform: rotate(1080deg);
- transform: rotate(1080deg); } }
-
-@keyframes sporadic-rotate {
- 12.5% {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
-
- 25% {
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg); }
-
- 37.5% {
- -webkit-transform: rotate(405deg);
- transform: rotate(405deg); }
-
- 50% {
- -webkit-transform: rotate(540deg);
- transform: rotate(540deg); }
-
- 62.5% {
- -webkit-transform: rotate(675deg);
- transform: rotate(675deg); }
-
- 75% {
- -webkit-transform: rotate(810deg);
- transform: rotate(810deg); }
-
- 87.5% {
- -webkit-transform: rotate(945deg);
- transform: rotate(945deg); }
-
- 100% {
- -webkit-transform: rotate(1080deg);
- transform: rotate(1080deg); } }
-
-md-progress-circular {
- width: 50px;
- height: 50px;
- display: block;
- position: relative;
- padding-top: 0 !important;
- margin-bottom: 0 !important;
- overflow: hidden; }
- md-progress-circular .md-inner {
- width: 50px;
- height: 50px;
- position: relative; }
- md-progress-circular .md-inner .md-gap {
- position: absolute;
- left: 24px;
- right: 24px;
- top: 0;
- bottom: 0;
- border-top: 5px solid black;
- box-sizing: border-box; }
- md-progress-circular .md-inner .md-left, md-progress-circular .md-inner .md-right {
- position: absolute;
- top: 0;
- height: 50px;
- width: 25px;
- overflow: hidden; }
- md-progress-circular .md-inner .md-left .md-half-circle, md-progress-circular .md-inner .md-right .md-half-circle {
- position: absolute;
- top: 0;
- width: 50px;
- height: 50px;
- box-sizing: border-box;
- border: 5px solid black;
- border-bottom-color: transparent;
- border-radius: 50%; }
- md-progress-circular .md-inner .md-left {
- left: 0; }
- md-progress-circular .md-inner .md-left .md-half-circle {
- left: 0;
- border-right-color: transparent; }
- md-progress-circular .md-inner .md-right {
- right: 0; }
- md-progress-circular .md-inner .md-right .md-half-circle {
- right: 0;
- border-left-color: transparent; }
- md-progress-circular[value="0"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="0"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-135deg);
- transform: rotate(-135deg); }
- md-progress-circular[value="0"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="1"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="1"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-131.4deg);
- transform: rotate(-131.4deg); }
- md-progress-circular[value="1"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="2"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="2"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-127.8deg);
- transform: rotate(-127.8deg); }
- md-progress-circular[value="2"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="3"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="3"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-124.2deg);
- transform: rotate(-124.2deg); }
- md-progress-circular[value="3"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="4"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="4"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-120.6deg);
- transform: rotate(-120.6deg); }
- md-progress-circular[value="4"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="5"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="5"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-117deg);
- transform: rotate(-117deg); }
- md-progress-circular[value="5"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="6"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="6"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-113.4deg);
- transform: rotate(-113.4deg); }
- md-progress-circular[value="6"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="7"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="7"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-109.8deg);
- transform: rotate(-109.8deg); }
- md-progress-circular[value="7"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="8"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="8"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-106.2deg);
- transform: rotate(-106.2deg); }
- md-progress-circular[value="8"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="9"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="9"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-102.6deg);
- transform: rotate(-102.6deg); }
- md-progress-circular[value="9"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="10"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="10"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-99deg);
- transform: rotate(-99deg); }
- md-progress-circular[value="10"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="11"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="11"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-95.4deg);
- transform: rotate(-95.4deg); }
- md-progress-circular[value="11"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="12"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="12"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-91.8deg);
- transform: rotate(-91.8deg); }
- md-progress-circular[value="12"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="13"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="13"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-88.2deg);
- transform: rotate(-88.2deg); }
- md-progress-circular[value="13"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="14"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="14"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-84.6deg);
- transform: rotate(-84.6deg); }
- md-progress-circular[value="14"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="15"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="15"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-81deg);
- transform: rotate(-81deg); }
- md-progress-circular[value="15"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="16"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="16"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-77.4deg);
- transform: rotate(-77.4deg); }
- md-progress-circular[value="16"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="17"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="17"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-73.8deg);
- transform: rotate(-73.8deg); }
- md-progress-circular[value="17"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="18"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="18"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-70.2deg);
- transform: rotate(-70.2deg); }
- md-progress-circular[value="18"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="19"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="19"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-66.6deg);
- transform: rotate(-66.6deg); }
- md-progress-circular[value="19"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="20"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="20"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-63deg);
- transform: rotate(-63deg); }
- md-progress-circular[value="20"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="21"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="21"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-59.4deg);
- transform: rotate(-59.4deg); }
- md-progress-circular[value="21"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="22"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="22"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-55.8deg);
- transform: rotate(-55.8deg); }
- md-progress-circular[value="22"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="23"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="23"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-52.2deg);
- transform: rotate(-52.2deg); }
- md-progress-circular[value="23"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="24"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="24"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-48.6deg);
- transform: rotate(-48.6deg); }
- md-progress-circular[value="24"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="25"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="25"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-45deg);
- transform: rotate(-45deg); }
- md-progress-circular[value="25"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="26"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="26"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-41.4deg);
- transform: rotate(-41.4deg); }
- md-progress-circular[value="26"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="27"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="27"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-37.8deg);
- transform: rotate(-37.8deg); }
- md-progress-circular[value="27"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="28"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="28"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-34.2deg);
- transform: rotate(-34.2deg); }
- md-progress-circular[value="28"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="29"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="29"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-30.6deg);
- transform: rotate(-30.6deg); }
- md-progress-circular[value="29"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="30"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="30"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-27deg);
- transform: rotate(-27deg); }
- md-progress-circular[value="30"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="31"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="31"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-23.4deg);
- transform: rotate(-23.4deg); }
- md-progress-circular[value="31"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="32"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="32"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-19.8deg);
- transform: rotate(-19.8deg); }
- md-progress-circular[value="32"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="33"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="33"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-16.2deg);
- transform: rotate(-16.2deg); }
- md-progress-circular[value="33"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="34"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="34"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-12.6deg);
- transform: rotate(-12.6deg); }
- md-progress-circular[value="34"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="35"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="35"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-9deg);
- transform: rotate(-9deg); }
- md-progress-circular[value="35"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="36"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="36"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-5.4deg);
- transform: rotate(-5.4deg); }
- md-progress-circular[value="36"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="37"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="37"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-1.8deg);
- transform: rotate(-1.8deg); }
- md-progress-circular[value="37"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="38"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="38"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(1.8deg);
- transform: rotate(1.8deg); }
- md-progress-circular[value="38"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="39"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="39"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(5.4deg);
- transform: rotate(5.4deg); }
- md-progress-circular[value="39"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="40"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="40"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(9deg);
- transform: rotate(9deg); }
- md-progress-circular[value="40"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="41"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="41"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(12.6deg);
- transform: rotate(12.6deg); }
- md-progress-circular[value="41"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="42"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="42"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(16.2deg);
- transform: rotate(16.2deg); }
- md-progress-circular[value="42"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="43"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="43"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(19.8deg);
- transform: rotate(19.8deg); }
- md-progress-circular[value="43"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="44"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="44"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(23.4deg);
- transform: rotate(23.4deg); }
- md-progress-circular[value="44"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="45"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="45"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(27deg);
- transform: rotate(27deg); }
- md-progress-circular[value="45"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="46"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="46"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(30.6deg);
- transform: rotate(30.6deg); }
- md-progress-circular[value="46"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="47"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="47"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(34.2deg);
- transform: rotate(34.2deg); }
- md-progress-circular[value="47"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="48"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="48"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(37.8deg);
- transform: rotate(37.8deg); }
- md-progress-circular[value="48"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="49"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="49"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(41.4deg);
- transform: rotate(41.4deg); }
- md-progress-circular[value="49"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="50"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="50"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="50"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="51"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(138.6deg);
- transform: rotate(138.6deg); }
- md-progress-circular[value="51"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="51"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="52"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(142.2deg);
- transform: rotate(142.2deg); }
- md-progress-circular[value="52"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="52"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="53"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(145.8deg);
- transform: rotate(145.8deg); }
- md-progress-circular[value="53"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="53"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="54"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(149.4deg);
- transform: rotate(149.4deg); }
- md-progress-circular[value="54"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="54"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="55"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(153deg);
- transform: rotate(153deg); }
- md-progress-circular[value="55"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="55"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="56"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(156.6deg);
- transform: rotate(156.6deg); }
- md-progress-circular[value="56"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="56"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="57"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(160.2deg);
- transform: rotate(160.2deg); }
- md-progress-circular[value="57"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="57"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="58"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(163.8deg);
- transform: rotate(163.8deg); }
- md-progress-circular[value="58"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="58"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="59"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(167.4deg);
- transform: rotate(167.4deg); }
- md-progress-circular[value="59"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="59"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="60"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(171deg);
- transform: rotate(171deg); }
- md-progress-circular[value="60"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="60"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="61"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(174.6deg);
- transform: rotate(174.6deg); }
- md-progress-circular[value="61"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="61"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="62"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(178.2deg);
- transform: rotate(178.2deg); }
- md-progress-circular[value="62"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="62"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="63"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(181.8deg);
- transform: rotate(181.8deg); }
- md-progress-circular[value="63"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="63"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="64"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(185.4deg);
- transform: rotate(185.4deg); }
- md-progress-circular[value="64"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="64"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="65"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(189deg);
- transform: rotate(189deg); }
- md-progress-circular[value="65"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="65"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="66"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(192.6deg);
- transform: rotate(192.6deg); }
- md-progress-circular[value="66"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="66"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="67"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(196.2deg);
- transform: rotate(196.2deg); }
- md-progress-circular[value="67"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="67"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="68"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(199.8deg);
- transform: rotate(199.8deg); }
- md-progress-circular[value="68"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="68"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="69"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(203.4deg);
- transform: rotate(203.4deg); }
- md-progress-circular[value="69"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="69"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="70"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(207deg);
- transform: rotate(207deg); }
- md-progress-circular[value="70"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="70"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="71"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(210.6deg);
- transform: rotate(210.6deg); }
- md-progress-circular[value="71"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="71"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="72"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(214.2deg);
- transform: rotate(214.2deg); }
- md-progress-circular[value="72"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="72"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="73"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(217.8deg);
- transform: rotate(217.8deg); }
- md-progress-circular[value="73"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="73"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="74"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(221.4deg);
- transform: rotate(221.4deg); }
- md-progress-circular[value="74"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="74"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="75"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(225deg);
- transform: rotate(225deg); }
- md-progress-circular[value="75"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="75"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="76"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(228.6deg);
- transform: rotate(228.6deg); }
- md-progress-circular[value="76"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="76"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="77"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(232.2deg);
- transform: rotate(232.2deg); }
- md-progress-circular[value="77"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="77"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="78"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(235.8deg);
- transform: rotate(235.8deg); }
- md-progress-circular[value="78"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="78"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="79"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(239.4deg);
- transform: rotate(239.4deg); }
- md-progress-circular[value="79"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="79"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="80"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(243deg);
- transform: rotate(243deg); }
- md-progress-circular[value="80"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="80"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="81"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(246.6deg);
- transform: rotate(246.6deg); }
- md-progress-circular[value="81"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="81"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="82"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(250.2deg);
- transform: rotate(250.2deg); }
- md-progress-circular[value="82"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="82"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="83"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(253.8deg);
- transform: rotate(253.8deg); }
- md-progress-circular[value="83"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="83"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="84"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(257.4deg);
- transform: rotate(257.4deg); }
- md-progress-circular[value="84"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="84"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="85"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(261deg);
- transform: rotate(261deg); }
- md-progress-circular[value="85"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="85"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="86"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(264.6deg);
- transform: rotate(264.6deg); }
- md-progress-circular[value="86"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="86"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="87"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(268.2deg);
- transform: rotate(268.2deg); }
- md-progress-circular[value="87"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="87"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="88"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(271.8deg);
- transform: rotate(271.8deg); }
- md-progress-circular[value="88"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="88"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="89"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(275.4deg);
- transform: rotate(275.4deg); }
- md-progress-circular[value="89"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="89"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="90"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(279deg);
- transform: rotate(279deg); }
- md-progress-circular[value="90"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="90"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="91"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(282.6deg);
- transform: rotate(282.6deg); }
- md-progress-circular[value="91"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="91"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="92"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(286.2deg);
- transform: rotate(286.2deg); }
- md-progress-circular[value="92"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="92"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="93"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(289.8deg);
- transform: rotate(289.8deg); }
- md-progress-circular[value="93"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="93"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="94"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(293.4deg);
- transform: rotate(293.4deg); }
- md-progress-circular[value="94"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="94"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="95"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(297deg);
- transform: rotate(297deg); }
- md-progress-circular[value="95"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="95"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="96"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(300.6deg);
- transform: rotate(300.6deg); }
- md-progress-circular[value="96"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="96"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="97"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(304.2deg);
- transform: rotate(304.2deg); }
- md-progress-circular[value="97"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="97"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="98"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(307.8deg);
- transform: rotate(307.8deg); }
- md-progress-circular[value="98"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="98"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="99"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(311.4deg);
- transform: rotate(311.4deg); }
- md-progress-circular[value="99"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="99"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="100"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(315deg);
- transform: rotate(315deg); }
- md-progress-circular[value="100"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="100"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper {
- -webkit-animation: outer-rotate 2.91667s linear infinite;
- animation: outer-rotate 2.91667s linear infinite; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner {
- -webkit-animation: sporadic-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite;
- animation: sporadic-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle, md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-iteration-count: infinite;
- animation-iteration-count: infinite;
- -webkit-animation-duration: 1.3125s;
- animation-duration: 1.3125s;
- -webkit-animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
- animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1); }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle {
- -webkit-animation-name: left-wobble;
- animation-name: left-wobble; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-name: right-wobble;
- animation-name: right-wobble; }
-
-.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper {
- -webkit-animation: none;
- animation: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner {
- -webkit-animation: none;
- animation: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle {
- -webkit-animation-name: none;
- animation-name: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-name: none;
- animation-name: none; }
-
-md-progress-linear:not([md-mode="indeterminate"]) {
- display: block;
- width: 100%;
- height: 5px; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-container {
- overflow: hidden;
- position: relative;
- height: 5px;
- top: 5px;
- -webkit-transform: translate(0, 5px) scale(1, 0);
- transform: translate(0, 5px) scale(1, 0);
- transition: all .3s linear; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-container.md-ready {
- -webkit-transform: translate(0, 0) scale(1, 1);
- transform: translate(0, 0) scale(1, 1); }
- md-progress-linear:not([md-mode="indeterminate"]) .md-bar {
- height: 5px;
- position: absolute;
- width: 100%; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-bar1, md-progress-linear:not([md-mode="indeterminate"]) .md-bar2 {
- transition: all 0.2s linear; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=determinate] .md-bar1 {
- display: none; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=buffer] .md-container {
- background-color: transparent !important; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=buffer] .md-dashed:before {
- content: "";
- display: block;
- height: 5px;
- width: 100%;
- margin-top: 0;
- position: absolute;
- background-color: transparent;
- background-size: 10px 10px !important;
- background-position: 0px -23px;
- -webkit-animation: buffer 3s infinite linear;
- animation: buffer 3s infinite linear; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=query] .md-bar2 {
- -webkit-animation: query .8s infinite cubic-bezier(0.39, 0.575, 0.565, 1);
- animation: query .8s infinite cubic-bezier(0.39, 0.575, 0.565, 1); }
-
-md-progress-linear[md-mode="indeterminate"] {
- display: block;
- width: 100%;
- height: 5px;
- position: relative; }
- md-progress-linear[md-mode="indeterminate"] .md-container {
- width: 100%;
- overflow: hidden;
- position: relative;
- height: 5px;
- top: 5px;
- transition: all .3s linear; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar {
- height: 5px;
- left: 0;
- width: 80%;
- position: absolute;
- top: 0;
- bottom: 0; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar1 {
- -webkit-animation: md-progress-linear-indeterminate-scale-1 4s infinite, md-progress-linear-indeterminate-1 4s infinite;
- animation: md-progress-linear-indeterminate-scale-1 4s infinite, md-progress-linear-indeterminate-1 4s infinite; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar2 {
- -webkit-animation: md-progress-linear-indeterminate-scale-2 4s infinite, md-progress-linear-indeterminate-2 4s infinite;
- animation: md-progress-linear-indeterminate-scale-2 4s infinite, md-progress-linear-indeterminate-2 4s infinite; }
-
-@-webkit-keyframes query {
- 0% {
- opacity: 1;
- -webkit-transform: translateX(35%) scale(.3, 1);
- transform: translateX(35%) scale(.3, 1); }
-
- 100% {
- opacity: 0;
- -webkit-transform: translateX(-50%) scale(0, 1);
- transform: translateX(-50%) scale(0, 1); } }
-
-@keyframes query {
- 0% {
- opacity: 1;
- -webkit-transform: translateX(35%) scale(.3, 1);
- transform: translateX(35%) scale(.3, 1); }
-
- 100% {
- opacity: 0;
- -webkit-transform: translateX(-50%) scale(0, 1);
- transform: translateX(-50%) scale(0, 1); } }
-
-@-webkit-keyframes buffer {
- 0% {
- opacity: 1;
- background-position: 0px -23px; }
-
- 50% {
- opacity: 0; }
-
- 100% {
- opacity: 1;
- background-position: -200px -23px; } }
-
-@keyframes buffer {
- 0% {
- opacity: 1;
- background-position: 0px -23px; }
-
- 50% {
- opacity: 0; }
-
- 100% {
- opacity: 1;
- background-position: -200px -23px; } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-scale-1 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 36.6% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);
- animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); }
-
- 69.15% {
- -webkit-transform: scaleX(0.83);
- transform: scaleX(0.83);
- -webkit-animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098);
- animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@keyframes md-progress-linear-indeterminate-scale-1 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 36.6% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);
- animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); }
-
- 69.15% {
- -webkit-transform: scaleX(0.83);
- transform: scaleX(0.83);
- -webkit-animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098);
- animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-1 {
- 0% {
- left: -105.16667%;
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 20% {
- left: -105.16667%;
- -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);
- animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); }
-
- 69.15% {
- left: 21.5%;
- -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);
- animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); }
-
- 100% {
- left: 95.44444%; } }
-
-@keyframes md-progress-linear-indeterminate-1 {
- 0% {
- left: -105.16667%;
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 20% {
- left: -105.16667%;
- -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);
- animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); }
-
- 69.15% {
- left: 21.5%;
- -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);
- animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); }
-
- 100% {
- left: 95.44444%; } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-scale-2 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);
- animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397); }
-
- 19.15% {
- -webkit-transform: scaleX(0.57);
- transform: scaleX(0.57);
- -webkit-animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);
- animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432); }
-
- 44.15% {
- -webkit-transform: scaleX(0.91);
- transform: scaleX(0.91);
- -webkit-animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);
- animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@keyframes md-progress-linear-indeterminate-scale-2 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);
- animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397); }
-
- 19.15% {
- -webkit-transform: scaleX(0.57);
- transform: scaleX(0.57);
- -webkit-animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);
- animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432); }
-
- 44.15% {
- -webkit-transform: scaleX(0.91);
- transform: scaleX(0.91);
- -webkit-animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);
- animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-2 {
- 0% {
- left: -54.88889%;
- -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968);
- animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968); }
-
- 25% {
- left: -17.25%;
- -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372);
- animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372); }
-
- 48.35% {
- left: 29.5%;
- -webkit-animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203);
- animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203); }
-
- 100% {
- left: 117.38889%; } }
-
-@keyframes md-progress-linear-indeterminate-2 {
- 0% {
- left: -54.88889%;
- -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968);
- animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968); }
-
- 25% {
- left: -17.25%;
- -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372);
- animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372); }
-
- 48.35% {
- left: 29.5%;
- -webkit-animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203);
- animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203); }
-
- 100% {
- left: 117.38889%; } }
-
-md-radio-button, .md-switch-thumb {
- box-sizing: border-box;
- display: block;
- margin: 15px;
- white-space: nowrap;
- cursor: pointer; }
- md-radio-button *, md-radio-button *:before, md-radio-button *:after, .md-switch-thumb *, .md-switch-thumb *:before, .md-switch-thumb *:after {
- box-sizing: border-box; }
- md-radio-button input, .md-switch-thumb input {
- display: none; }
- md-radio-button .md-container, .md-switch-thumb .md-container {
- position: relative;
- top: 4px;
- display: inline-block;
- width: 16px;
- height: 16px;
- cursor: pointer; }
- md-radio-button .md-container .md-ripple-container, .md-switch-thumb .md-container .md-ripple-container {
- position: absolute;
- display: block;
- width: 48px;
- height: 48px;
- left: -16px;
- top: -16px; }
- md-radio-button .md-container:before, .md-switch-thumb .md-container:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-radio-button .md-off, .md-switch-thumb .md-off {
- position: absolute;
- top: 0;
- left: 0;
- width: 16px;
- height: 16px;
- border: solid 2px;
- border-radius: 50%;
- transition: border-color ease 0.28s; }
- md-radio-button .md-on, .md-switch-thumb .md-on {
- position: absolute;
- top: 0;
- left: 0;
- width: 16px;
- height: 16px;
- border-radius: 50%;
- transition: -webkit-transform ease 0.28s;
- transition: transform ease 0.28s;
- -webkit-transform: scale(0);
- transform: scale(0); }
- md-radio-button.md-checked .md-on, .md-switch-thumb.md-checked .md-on {
- -webkit-transform: scale(0.5);
- transform: scale(0.5); }
- md-radio-button .md-label, .md-switch-thumb .md-label {
- position: relative;
- display: inline-block;
- margin-left: 10px;
- margin-right: 10px;
- vertical-align: middle;
- white-space: normal;
- pointer-events: none;
- width: auto; }
- md-radio-button .circle, .md-switch-thumb .circle {
- border-radius: 50%; }
-
-md-radio-group:focus {
- outline: none; }
-md-radio-group.md-focused .md-checked .md-container:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-radio-button.md-default-theme .md-on {
- background-color: #fff; } }
-
-.md-select-menu-container {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 99;
- opacity: 0; }
- .md-select-menu-container:not(.md-clickable) {
- pointer-events: none; }
- .md-select-menu-container md-progress-circular {
- display: table;
- margin: 24px auto !important; }
- .md-select-menu-container.md-active {
- opacity: 1; }
- .md-select-menu-container.md-active md-select-menu {
- transition: -webkit-transform all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition: transform all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-duration: 200ms; }
- .md-select-menu-container.md-active md-select-menu > * {
- opacity: 1;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- transition-duration: 200ms;
- transition-delay: 100ms; }
- .md-select-menu-container.md-leave {
- opacity: 0;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- transition-duration: 250ms; }
-
-md-input-container > md-select {
- margin: 0;
- margin-top: 3px; }
-
-md-select {
- padding: 24px 2px 26px;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex; }
- md-select:focus {
- outline: none; }
- md-select[disabled]:hover {
- cursor: default; }
- md-select:not([disabled]):hover {
- cursor: pointer; }
- md-select:not([disabled]).ng-invalid.ng-dirty .md-select-label {
- border-bottom: 2px solid;
- padding-bottom: 0; }
- md-select:not([disabled]):focus .md-select-label {
- border-bottom: 2px solid;
- padding-bottom: 0; }
-
-.md-select-label {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- padding: 2px 2px 1px;
- border-bottom: 1px solid;
- position: relative;
- box-sizing: content-box;
- min-width: 64px;
- min-height: 26px; }
- .md-select-label *:first-child {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- max-width: calc(100% - 2*8px);
- -webkit-transform: translate3d(0, 2px, 0);
- transform: translate3d(0, 2px, 0); }
- .md-select-label .md-select-icon {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end;
- text-align: end;
- width: 24px;
- margin: 0 4px;
- -webkit-transform: translate3d(0, 1px, 0);
- transform: translate3d(0, 1px, 0); }
- .md-select-label .md-select-icon:after {
- display: block;
- content: '\25BC';
- position: relative;
- top: 2px;
- speak: none;
- -webkit-transform: scaleY(0.6) scaleX(1);
- transform: scaleY(0.6) scaleX(1); }
-
-md-select-menu {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084);
- max-height: 256px;
- min-height: 48px;
- overflow-y: hidden;
- -webkit-transform-origin: left top;
- transform-origin: left top;
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-select-menu.md-reverse {
- -webkit-flex-direction: column-reverse;
- -ms-flex-direction: column-reverse;
- flex-direction: column-reverse; }
- md-select-menu:not(.md-overflow) md-content {
- padding-top: 8px;
- padding-bottom: 8px; }
- html[dir=rtl] md-select-menu {
- -webkit-transform-origin: right top;
- transform-origin: right top; }
- md-select-menu md-content {
- min-width: 136px;
- min-height: 48px;
- max-height: 256px;
- overflow-y: auto; }
- md-select-menu > * {
- opacity: 0; }
-
-md-option {
- cursor: pointer;
- position: relative;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: auto;
- padding: 0 16px 0 16px;
- height: 48px; }
- md-option:focus {
- outline: none; }
- md-option .md-text {
- width: auto;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 16px; }
-
-md-optgroup {
- display: block; }
- md-optgroup label {
- display: block;
- font-size: 14px;
- text-transform: uppercase;
- padding: 16px;
- font-weight: 500; }
- md-optgroup md-option {
- padding-left: 32px;
- padding-right: 32px; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-select-backdrop {
- background-color: transparent; }
- md-select-menu {
- border: 1px solid #fff; } }
-
-md-sidenav {
- box-sizing: border-box;
- position: absolute;
- width: 304px;
- min-width: 304px;
- max-width: 304px;
- bottom: 0;
- z-index: 60;
- background-color: white;
- overflow: auto;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- md-sidenav *, md-sidenav *:before, md-sidenav *:after {
- box-sizing: border-box; }
- md-sidenav ul {
- list-style: none; }
- md-sidenav.md-closed {
- display: none; }
- md-sidenav.md-closed-add, md-sidenav.md-closed-remove {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- /* this is required as of 1.3x to properly
- apply all styling in a show/hide animation */
- transition: 0s all; }
- md-sidenav.md-closed-add.md-closed-add-active, md-sidenav.md-closed-remove.md-closed-remove-active {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-sidenav.md-locked-open-add, md-sidenav.md-locked-open-remove {
- position: static;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-sidenav.md-locked-open {
- width: 304px;
- min-width: 304px;
- max-width: 304px; }
- md-sidenav.md-locked-open, md-sidenav.md-locked-open.md-closed, md-sidenav.md-locked-open.md-closed.md-sidenav-left, md-sidenav.md-locked-open.md-closed, md-sidenav.md-locked-open.md-closed.md-sidenav-right, md-sidenav.md-locked-open-remove.md-closed {
- position: static;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-sidenav.md-locked-open-remove-active {
- transition: width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2), min-width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- width: 0;
- min-width: 0; }
- md-sidenav.md-closed.md-locked-open-add {
- width: 0;
- min-width: 0;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
- md-sidenav.md-closed.md-locked-open-add-active {
- transition: width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2), min-width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- width: 304px;
- min-width: 304px;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
-
-.md-sidenav-backdrop.md-locked-open {
- display: none; }
-
-.md-sidenav-left, md-sidenav {
- left: 0;
- top: 0;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
- .md-sidenav-left.md-closed, md-sidenav.md-closed {
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0); }
-
-.md-sidenav-right {
- left: 100%;
- top: 0;
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0); }
- .md-sidenav-right.md-closed {
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
-
-@media (max-width: 360px) {
- md-sidenav {
- width: 85%; } }
-
-@media screen and (-ms-high-contrast: active) {
- .md-sidenav-left, md-sidenav {
- border-right: 1px solid #fff; }
- .md-sidenav-right {
- border-left: 1px solid #fff; } }
-
-@-webkit-keyframes sliderFocusThumb {
- 0% {
- opacity: 0;
- -webkit-transform: scale(0);
- transform: scale(0); }
-
- 50% {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-
-@keyframes sliderFocusThumb {
- 0% {
- opacity: 0;
- -webkit-transform: scale(0);
- transform: scale(0); }
-
- 50% {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-
-md-slider {
- height: 48px;
- position: relative;
- display: block;
- margin-left: 4px;
- margin-right: 4px;
- padding: 0;
- /**
- * Track
- */
- /**
- * Slider thumb
- */
- /* The sign that's focused in discrete mode */
- /**
- * The border/background that comes in when focused in non-discrete mode
- */
- /* Don't animate left/right while panning */ }
- md-slider *, md-slider *:after {
- box-sizing: border-box; }
- md-slider .md-slider-wrapper {
- position: relative; }
- md-slider .md-track-container {
- width: 100%;
- position: absolute;
- top: 23px;
- height: 2px; }
- md-slider .md-track {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%; }
- md-slider .md-track-fill {
- transition: width 0.05s linear; }
- md-slider .md-track-ticks {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%; }
- md-slider .md-thumb-container {
- position: absolute;
- left: 0;
- top: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0);
- transition: left 0.1s linear; }
- md-slider .md-thumb {
- z-index: 1;
- position: absolute;
- left: -19px;
- top: 5px;
- width: 38px;
- height: 38px;
- border-radius: 38px;
- -webkit-transform: scale(0.5);
- transform: scale(0.5);
- transition: all 0.1s linear; }
- md-slider .md-thumb:after {
- content: '';
- position: absolute;
- left: 3px;
- top: 3px;
- width: 32px;
- height: 32px;
- border-radius: 32px;
- border-width: 3px;
- border-style: solid; }
- md-slider .md-sign {
- /* Center the children (slider-thumb-text) */
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- position: absolute;
- left: -14px;
- top: -20px;
- width: 28px;
- height: 28px;
- border-radius: 28px;
- -webkit-transform: scale(0.4) translate3d(0, 70px, 0);
- transform: scale(0.4) translate3d(0, 70px, 0);
- transition: all 0.2s ease-in-out;
- /* The arrow pointing down under the sign */ }
- md-slider .md-sign:after {
- position: absolute;
- content: '';
- left: 0px;
- border-radius: 16px;
- top: 19px;
- border-left: 14px solid transparent;
- border-right: 14px solid transparent;
- border-top-width: 16px;
- border-top-style: solid;
- opacity: 0;
- -webkit-transform: translate3d(0, -8px, 0);
- transform: translate3d(0, -8px, 0);
- transition: all 0.2s ease-in-out; }
- md-slider .md-sign .md-thumb-text {
- z-index: 1;
- font-size: 12px;
- font-weight: bold; }
- md-slider .md-focus-thumb {
- position: absolute;
- left: -24px;
- top: 0px;
- width: 48px;
- height: 48px;
- border-radius: 48px;
- display: none;
- opacity: 0;
- background-color: #C0C0C0;
- -webkit-animation: sliderFocusThumb 0.4s linear;
- animation: sliderFocusThumb 0.4s linear; }
- md-slider .md-focus-ring {
- position: absolute;
- left: -24px;
- top: 0px;
- width: 48px;
- height: 48px;
- border-radius: 48px;
- border: 2px solid #D6D6D6;
- background-color: transparent;
- -webkit-transform: scale(0);
- transform: scale(0);
- transition: all 0.2s linear; }
- md-slider .md-disabled-thumb {
- position: absolute;
- left: -22px;
- top: 2px;
- width: 44px;
- height: 44px;
- border-radius: 44px;
- -webkit-transform: scale(0.35);
- transform: scale(0.35);
- border-width: 6px;
- border-style: solid;
- display: none; }
- md-slider.md-min .md-thumb:after {
- background-color: white; }
- md-slider.md-min .md-sign {
- opacity: 0; }
- md-slider:focus {
- outline: none; }
- md-slider.dragging .md-thumb-container, md-slider.dragging .md-track-fill {
- transition: none; }
- md-slider:not([md-discrete]) {
- /* Hide the sign and ticks in non-discrete mode */ }
- md-slider:not([md-discrete]) .md-track-ticks, md-slider:not([md-discrete]) .md-sign {
- display: none; }
- md-slider:not([md-discrete]):not([disabled]):hover .md-thumb {
- -webkit-transform: scale(0.6);
- transform: scale(0.6); }
- md-slider:not([md-discrete]):not([disabled]):focus .md-focus-thumb, md-slider:not([md-discrete]):not([disabled]).active .md-focus-thumb {
- display: block; }
- md-slider:not([md-discrete]):not([disabled]):focus .md-focus-ring, md-slider:not([md-discrete]):not([disabled]).active .md-focus-ring {
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-slider:not([md-discrete]):not([disabled]):focus .md-thumb, md-slider:not([md-discrete]):not([disabled]).active .md-thumb {
- -webkit-transform: scale(0.85);
- transform: scale(0.85); }
- md-slider[md-discrete] {
- /* Hide the focus thumb in discrete mode */ }
- md-slider[md-discrete] .md-focus-thumb, md-slider[md-discrete] .md-focus-ring {
- display: none; }
- md-slider[md-discrete]:not([disabled]):focus .md-sign, md-slider[md-discrete]:not([disabled]):focus .md-sign:after, md-slider[md-discrete]:not([disabled]).active .md-sign, md-slider[md-discrete]:not([disabled]).active .md-sign:after {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0) scale(1);
- transform: translate3d(0, 0, 0) scale(1); }
- md-slider[disabled] .md-track-fill {
- display: none; }
- md-slider[disabled] .md-sign {
- display: none; }
- md-slider[disabled] .md-thumb {
- -webkit-transform: scale(0.35);
- transform: scale(0.35); }
- md-slider[disabled] .md-disabled-thumb {
- display: block; }
-
-@media screen and (-ms-high-contrast: active) {
- md-slider.md-default-theme .md-track {
- border-bottom: 1px solid #fff; } }
-
-.md-sticky-clone {
- z-index: 2;
- top: 0;
- left: 0;
- right: 0;
- position: absolute !important;
- -webkit-transform: translate3d(-9999px, -9999px, 0);
- transform: translate3d(-9999px, -9999px, 0); }
- .md-sticky-clone[sticky-state="active"] {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- .md-sticky-clone[sticky-state="active"]:not(.md-sticky-no-effect) .md-subheader-inner {
- -webkit-animation: subheaderStickyHoverIn 0.3s ease-out both;
- animation: subheaderStickyHoverIn 0.3s ease-out both; }
-
-@-webkit-keyframes subheaderStickyHoverIn {
- 0% {
- box-shadow: 0 0 0 0 transparent; }
-
- 100% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
-
-@keyframes subheaderStickyHoverIn {
- 0% {
- box-shadow: 0 0 0 0 transparent; }
-
- 100% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
-
-@-webkit-keyframes subheaderStickyHoverOut {
- 0% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
-
- 100% {
- box-shadow: 0 0 0 0 transparent; } }
-
-@keyframes subheaderStickyHoverOut {
- 0% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
-
- 100% {
- box-shadow: 0 0 0 0 transparent; } }
-
-.md-subheader {
- display: block;
- font-size: 14px;
- font-weight: 500;
- line-height: 1em;
- margin: 0 0 0 0;
- margin-right: 16px;
- position: relative; }
- .md-subheader .md-subheader-inner {
- padding: 16px 0px 16px 16px; }
- .md-subheader:not(.md-sticky-no-effect) {
- transition: 0.2s ease-out margin; }
- .md-subheader:not(.md-sticky-no-effect):after {
- position: absolute;
- left: 0;
- bottom: 0;
- top: 0;
- right: -16px;
- content: ''; }
- .md-subheader:not(.md-sticky-no-effect).md-sticky-clone {
- z-index: 2; }
- .md-subheader:not(.md-sticky-no-effect)[sticky-state="active"] {
- margin-top: -2px; }
- .md-subheader:not(.md-sticky-no-effect):not(.md-sticky-clone)[sticky-prev-state="active"] .md-subheader-inner:after {
- -webkit-animation: subheaderStickyHoverOut 0.3s ease-out both;
- animation: subheaderStickyHoverOut 0.3s ease-out both; }
- .md-subheader .md-subheader-content {
- z-index: 1;
- position: relative; }
-
-md-switch {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- margin: 15px;
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none; }
- md-switch .md-container {
- cursor: -webkit-grab;
- cursor: grab;
- width: 36px;
- height: 24px;
- position: relative;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- margin-right: 8px; }
- md-switch:not([disabled]) .md-dragging, md-switch:not([disabled]).md-dragging .md-container {
- cursor: -webkit-grabbing;
- cursor: grabbing; }
- md-switch.md-focused:not([disabled]) .md-thumb:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
- md-switch.md-focused:not([disabled]):not(.md-checked) .md-thumb:before {
- background-color: rgba(0, 0, 0, 0.12); }
- md-switch .md-label {
- border-color: transparent;
- border-width: 0; }
- md-switch .md-bar {
- left: 1px;
- width: 34px;
- top: 5px;
- height: 14px;
- border-radius: 8px;
- position: absolute; }
- md-switch .md-thumb-container {
- top: 2px;
- left: 0;
- width: 16px;
- position: absolute;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- z-index: 1; }
- md-switch.md-checked .md-thumb-container {
- -webkit-transform: translate3d(100%, 0, 0);
- transform: translate3d(100%, 0, 0); }
- md-switch .md-thumb {
- position: absolute;
- margin: 0;
- left: 0;
- top: 0;
- outline: none;
- height: 20px;
- width: 20px;
- border-radius: 50%;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
- md-switch .md-thumb:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-switch .md-thumb .md-ripple-container {
- position: absolute;
- display: block;
- width: auto;
- height: auto;
- left: -20px;
- top: -20px;
- right: -20px;
- bottom: -20px; }
- md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb-container, md-switch:not(.md-dragging) .md-thumb {
- transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition-property: -webkit-transform, background-color;
- transition-property: transform, background-color; }
- md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb {
- transition-delay: 0.05s; }
-
-@media screen and (-ms-high-contrast: active) {
- md-switch.md-default-theme .md-bar {
- background-color: #666; }
- md-switch.md-default-theme.md-checked .md-bar {
- background-color: #9E9E9E; }
- md-switch.md-default-theme .md-thumb {
- background-color: #fff; } }
-
-@-webkit-keyframes md-tab-content-hide {
- 0% {
- opacity: 1; }
-
- 50% {
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-
-@keyframes md-tab-content-hide {
- 0% {
- opacity: 1; }
-
- 50% {
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-
-md-tab-data {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: -1;
- opacity: 0; }
-
-md-tabs {
- display: block;
- margin: 0;
- border-radius: 2px;
- overflow: hidden;
- position: relative;
- -webkit-flex-shrink: 0;
- -ms-flex-negative: 0;
- flex-shrink: 0; }
- md-tabs.ng-animate {
- transition: height 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-tabs:not(.md-no-tab-content):not([md-dynamic-height]) {
- min-height: 248px; }
- md-tabs[md-align-tabs="bottom"] md-tabs-wrapper {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- height: 48px; }
- md-tabs[md-align-tabs="bottom"] md-tabs-content-wrapper {
- top: 0;
- bottom: 48px; }
- md-tabs[md-dynamic-height] md-tabs-content-wrapper {
- min-height: 0;
- position: relative;
- top: auto;
- left: auto;
- right: auto;
- bottom: auto;
- overflow: visible; }
- md-tabs[md-dynamic-height] md-tab-content.md-active {
- position: relative; }
- md-tabs[md-border-bottom] md-tabs-wrapper {
- border-width: 0 0 1px;
- border-style: solid; }
- md-tabs[md-border-bottom] md-tabs-wrapper .md-tab {
- padding-bottom: 11px; }
- md-tabs[md-border-bottom]:not([md-dynamic-height]) md-tabs-content-wrapper {
- top: 49px; }
-
-md-tabs-wrapper {
- display: block;
- position: relative; }
- md-tabs-wrapper md-prev-button, md-tabs-wrapper md-next-button {
- height: 100%;
- width: 32px;
- position: absolute;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- line-height: 1em;
- z-index: 2;
- cursor: pointer;
- font-size: 16px;
- background: transparent no-repeat center center;
- transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-tabs-wrapper md-prev-button:focus, md-tabs-wrapper md-next-button:focus {
- outline: none; }
- md-tabs-wrapper md-prev-button.md-disabled, md-tabs-wrapper md-next-button.md-disabled {
- opacity: 0.25;
- cursor: default; }
- md-tabs-wrapper md-prev-button.ng-leave, md-tabs-wrapper md-next-button.ng-leave {
- transition: none; }
- md-tabs-wrapper md-prev-button md-icon, md-tabs-wrapper md-next-button md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0); }
- md-tabs-wrapper md-prev-button {
- left: 0;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMjA4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyIAkJIiBzdHlsZT0iZmlsbDp3aGl0ZTsiLz4gPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+IDwvZz4gPC9nPiA8ZyBpZD0iR3JpZCIgZGlzcGxheT0ibm9uZSI+IDxnIGRpc3BsYXk9ImlubGluZSI+IDwvZz4gPC9nPiA8L3N2Zz4NCg=='); }
- md-tabs-wrapper md-next-button {
- right: 0;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMzM2IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTAsNiA4LjYsNy40IDEzLjIsMTIgOC42LDE2LjYgMTAsMTggMTYsMTIgCQkiIHN0eWxlPSJmaWxsOndoaXRlOyIvPiA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4gPC9nPiA8L2c+IDxnIGlkPSJHcmlkIiBkaXNwbGF5PSJub25lIj4gPGcgZGlzcGxheT0iaW5saW5lIj4gPC9nPiA8L2c+IDwvc3ZnPg0K'); }
- md-tabs-wrapper md-next-button md-icon {
- -webkit-transform: translate3d(-50%, -50%, 0) rotate(180deg);
- transform: translate3d(-50%, -50%, 0) rotate(180deg); }
- md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper {
- width: 100%;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper md-tab-item {
- -webkit-flex-grow: 1;
- -ms-flex-positive: 1;
- flex-grow: 1; }
-
-md-tabs-canvas {
- position: relative;
- overflow: hidden;
- display: block;
- height: 48px; }
- md-tabs-canvas:after {
- content: '';
- display: table;
- clear: both; }
- md-tabs-canvas .md-dummy-wrapper {
- position: absolute;
- top: 0;
- left: 0; }
- md-tabs-canvas.md-paginated {
- margin: 0 32px; }
- md-tabs-canvas.md-center-tabs {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
-
-md-pagination-wrapper {
- height: 48px;
- display: block;
- transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- position: absolute;
- width: 999999px;
- left: 0;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-pagination-wrapper:after {
- content: '';
- display: table;
- clear: both; }
- md-pagination-wrapper.md-center-tabs {
- position: relative;
- width: initial;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- margin: 0 auto; }
-
-md-tabs-content-wrapper {
- display: block;
- position: absolute;
- top: 48px;
- left: 0;
- right: 0;
- bottom: 0;
- overflow: hidden; }
-
-md-tab-content {
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- -webkit-transform: translateX(0);
- transform: translateX(0);
- transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- overflow: auto; }
- md-tab-content.md-no-scroll {
- bottom: auto;
- overflow: hidden; }
- md-tab-content.ng-leave, md-tab-content.md-no-transition {
- transition: none; }
- md-tab-content.md-left {
- -webkit-transform: translateX(-100%);
- transform: translateX(-100%);
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide;
- opacity: 0; }
- md-tab-content.md-left * {
- transition: visibility 0s linear;
- transition-delay: 0.5s;
- visibility: hidden; }
- md-tab-content.md-right {
- -webkit-transform: translateX(100%);
- transform: translateX(100%);
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide;
- opacity: 0; }
- md-tab-content.md-right * {
- transition: visibility 0s linear;
- transition-delay: 0.5s;
- visibility: hidden; }
- md-tab-content > div.ng-leave {
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide; }
-
-md-ink-bar {
- position: absolute;
- left: auto;
- right: auto;
- bottom: 0;
- height: 2px; }
- md-ink-bar.md-left {
- transition: left 0.225s cubic-bezier(0.35, 0, 0.25, 1), right 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-ink-bar.md-right {
- transition: left 0.5s cubic-bezier(0.35, 0, 0.25, 1), right 0.225s cubic-bezier(0.35, 0, 0.25, 1); }
-
-md-tab {
- position: absolute;
- z-index: -1;
- left: -9999px; }
-
-.md-tab {
- font-size: 14px;
- text-align: center;
- line-height: 24px;
- padding: 12px 24px;
- transition: background-color 0.35s cubic-bezier(0.35, 0, 0.25, 1);
- cursor: pointer;
- white-space: nowrap;
- position: relative;
- text-transform: uppercase;
- float: left;
- font-weight: 500;
- box-sizing: border-box; }
- .md-tab.md-focused {
- box-shadow: none;
- outline: none; }
- .md-tab.md-active {
- cursor: default; }
- .md-tab.md-disabled {
- pointer-events: none;
- -ms-touch-action: pan-y;
- touch-action: pan-y;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-user-drag: none;
- opacity: 0.5;
- cursor: default; }
- .md-tab.ng-leave {
- transition: none; }
-
-md-toolbar + md-tabs {
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-md-toast {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- position: absolute;
- box-sizing: border-box;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- min-height: 48px;
- padding-left: 24px;
- padding-right: 24px;
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
- border-radius: 2px;
- font-size: 14px;
- cursor: default;
- max-width: 100%;
- max-height: 40px;
- height: 24px;
- z-index: 90;
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0) rotateZ(0deg);
- transform: translate3d(0, 0, 0) rotateZ(0deg);
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- /* Transition differently when swiping */ }
- md-toast.md-capsule {
- border-radius: 24px; }
- md-toast.ng-leave-active {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-toast.md-swipeleft, md-toast.md-swiperight, md-toast.md-swipeup, md-toast.md-swipedown {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-toast.ng-enter {
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0);
- opacity: 0; }
- md-toast.ng-enter.md-top {
- -webkit-transform: translate3d(0, -100%, 0);
- transform: translate3d(0, -100%, 0); }
- md-toast.ng-enter.ng-enter-active {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- opacity: 1; }
- md-toast.ng-leave.ng-leave-active {
- opacity: 0;
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0); }
- md-toast.ng-leave.ng-leave-active.md-top {
- -webkit-transform: translate3d(0, -100%, 0);
- transform: translate3d(0, -100%, 0); }
- md-toast.ng-leave.ng-leave-active.md-swipeleft {
- -webkit-transform: translate3d(-100%, 0%, 0);
- transform: translate3d(-100%, 0%, 0); }
- md-toast.ng-leave.ng-leave-active.md-swiperight {
- -webkit-transform: translate3d(100%, 0%, 0);
- transform: translate3d(100%, 0%, 0); }
- md-toast .md-action {
- line-height: 19px;
- margin-left: 24px;
- cursor: pointer;
- text-transform: uppercase;
- float: right; }
- md-toast .md-action.md-button {
- min-width: 0; }
-
-@media (max-width: 600px) {
- md-toast {
- left: 0;
- right: 0;
- width: 100%;
- max-width: 100%;
- min-width: 0;
- border-radius: 0;
- bottom: 0; }
- md-toast.md-top {
- bottom: auto;
- top: 0; } }
-
-@media (min-width: 600px) {
- md-toast {
- min-width: 288px;
- /*
- * When the toast doesn't take up the whole screen,
- * make it rotate when the user swipes it away
- */ }
- md-toast.md-bottom {
- bottom: 8px; }
- md-toast.md-left {
- left: 8px; }
- md-toast.md-right {
- right: 8px; }
- md-toast.md-top {
- top: 8px; }
- md-toast.ng-leave.ng-leave-active.md-swipeleft {
- -webkit-transform: translate3d(-100%, 25%, 0) rotateZ(-15deg);
- transform: translate3d(-100%, 25%, 0) rotateZ(-15deg); }
- md-toast.ng-leave.ng-leave-active.md-swiperight {
- -webkit-transform: translate3d(100%, 25%, 0) rotateZ(15deg);
- transform: translate3d(100%, 25%, 0) rotateZ(15deg); }
- md-toast.ng-leave.ng-leave-active.md-top.md-swipeleft {
- -webkit-transform: translate3d(-100%, 0, 0) rotateZ(-15deg);
- transform: translate3d(-100%, 0, 0) rotateZ(-15deg); }
- md-toast.ng-leave.ng-leave-active.md-top.md-swiperight {
- -webkit-transform: translate3d(100%, 0, 0) rotateZ(15deg);
- transform: translate3d(100%, 0, 0) rotateZ(15deg); } }
-
-@media (min-width: 1200px) {
- md-toast {
- max-width: 568px; } }
-
-@media screen and (-ms-high-contrast: active) {
- md-toast {
- border: 1px solid #fff; } }
-
-md-toolbar {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- position: relative;
- z-index: 2;
- font-size: 20px;
- min-height: 64px;
- width: 100%; }
- md-toolbar.md-whiteframe-z1-add, md-toolbar.md-whiteframe-z1-remove {
- transition: box-shadow 0.5s linear; }
- md-toolbar *, md-toolbar *:before, md-toolbar *:after {
- box-sizing: border-box; }
- md-toolbar.md-tall {
- height: 128px;
- min-height: 128px;
- max-height: 128px; }
- md-toolbar.md-medium-tall {
- height: 88px;
- min-height: 88px;
- max-height: 88px; }
- md-toolbar.md-medium-tall .md-toolbar-tools {
- height: 48px;
- min-height: 48px;
- max-height: 48px; }
- md-toolbar .md-indent {
- margin-left: 64px; }
- md-toolbar ~ md-content > md-list {
- padding: 0; }
- md-toolbar ~ md-content > md-list md-list-item:last-child md-divider {
- display: none; }
-
-.md-toolbar-tools {
- font-weight: 400;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- width: 100%;
- height: 64px;
- max-height: 64px;
- padding: 0 16px;
- margin: 0; }
- .md-toolbar-tools h1, .md-toolbar-tools h2, .md-toolbar-tools h3 {
- font-size: inherit;
- font-weight: inherit;
- margin: inherit; }
- .md-toolbar-tools a {
- color: inherit;
- text-decoration: none; }
- .md-toolbar-tools .fill-height {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- .md-toolbar-tools .md-button {
- margin-top: 0;
- margin-bottom: 0; }
- .md-toolbar-tools > .md-button:first-child {
- margin-left: -8px; }
- .md-toolbar-tools > .md-button:last-child {
- margin-right: -8px; }
- @media screen and (-ms-high-contrast: active) {
- .md-toolbar-tools {
- border-bottom: 1px solid #fff; } }
-
-md-tooltip {
- position: absolute;
- z-index: 100;
- overflow: hidden;
- pointer-events: none;
- border-radius: 4px;
- font-weight: 500;
- font-size: 14px; }
- @media screen and (min-width: 600px) {
- md-tooltip {
- font-size: 10px; } }
- md-tooltip .md-background {
- position: absolute;
- border-radius: 50%;
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 1; }
- md-tooltip .md-background.md-show-add {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 0; }
- md-tooltip .md-background.md-show, md-tooltip .md-background.md-show-add-active {
- -webkit-transform: translate(-50%, -50%) scale(1);
- transform: translate(-50%, -50%) scale(1);
- opacity: 1; }
- md-tooltip .md-background.md-show-remove {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip .md-background.md-show-remove.md-show-remove-active {
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 0; }
- md-tooltip .md-content {
- position: relative;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- background: transparent;
- opacity: 0;
- height: 32px;
- line-height: 32px;
- padding-left: 16px;
- padding-right: 16px; }
- @media screen and (min-width: 600px) {
- md-tooltip .md-content {
- height: 22px;
- line-height: 22px;
- padding-left: 8px;
- padding-right: 8px; } }
- md-tooltip .md-content.md-show-add {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- opacity: 0; }
- md-tooltip .md-content.md-show, md-tooltip .md-content.md-show-add-active {
- opacity: 1; }
- md-tooltip .md-content.md-show-remove {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip .md-content.md-show-remove.md-show-remove-active {
- opacity: 0; }
- md-tooltip.md-hide {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip.md-show {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- pointer-events: auto;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
-
-.md-whiteframe-z1 {
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z2 {
- box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.14), 0 4px 5px 0 rgba(0, 0, 0, 0.098), 0 1px 10px 0 rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z3 {
- box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.14), 0px 6px 10px 0px rgba(0, 0, 0, 0.098), 0px 1px 18px 0px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z4 {
- box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.14), 0px 8px 10px 1px rgba(0, 0, 0, 0.098), 0px 3px 14px 2px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z5 {
- box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.14), 0px 16px 24px 2px rgba(0, 0, 0, 0.098), 0px 6px 30px 5px rgba(0, 0, 0, 0.084); }
-
-@media screen and (-ms-high-contrast: active) {
- md-whiteframe {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/angular-material.js b/ecomp-portal-FE/client/bower_components/angular-material/angular-material.js
deleted file mode 100644
index f5f3306a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/angular-material.js
+++ /dev/null
@@ -1,13909 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-(function(){
-"use strict";
-
-angular.module('ngMaterial', ["ng","ngAnimate","ngAria","material.core","material.core.gestures","material.core.theming.palette","material.core.theming","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.content","material.components.dialog","material.components.divider","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.select","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.whiteframe"]);
-})();
-(function(){
-"use strict";
-
-
-/**
- * Initialization function that validates environment
- * requirements.
- */
-angular
- .module('material.core', [ 'material.core.gestures', 'material.core.theming' ])
- .config( MdCoreConfigure );
-
-
-function MdCoreConfigure($provide, $mdThemingProvider) {
-
- $provide.decorator('$$rAF', ["$delegate", rAFDecorator]);
-
- $mdThemingProvider.theme('default')
- .primaryPalette('indigo')
- .accentPalette('pink')
- .warnPalette('red')
- .backgroundPalette('grey');
-}
-MdCoreConfigure.$inject = ["$provide", "$mdThemingProvider"];
-
-function rAFDecorator( $delegate ) {
- /**
- * Use this to throttle events that come in often.
- * The throttled function will always use the *last* invocation before the
- * coming frame.
- *
- * For example, window resize events that fire many times a second:
- * If we set to use an raf-throttled callback on window resize, then
- * our callback will only be fired once per frame, with the last resize
- * event that happened before that frame.
- *
- * @param {function} callback function to debounce
- */
- $delegate.throttle = function(cb) {
- var queueArgs, alreadyQueued, queueCb, context;
- return function debounced() {
- queueArgs = arguments;
- context = this;
- queueCb = cb;
- if (!alreadyQueued) {
- alreadyQueued = true;
- $delegate(function() {
- queueCb.apply(context, queueArgs);
- alreadyQueued = false;
- });
- }
- };
- };
- return $delegate;
-}
-
-})();
-(function(){
-"use strict";
-
-angular.module('material.core')
-.factory('$mdConstant', MdConstantFactory);
-
-function MdConstantFactory($$rAF, $sniffer) {
-
- var webkit = /webkit/i.test($sniffer.vendorPrefix);
- function vendorProperty(name) {
- return webkit ? ('webkit' + name.charAt(0).toUpperCase() + name.substring(1)) : name;
- }
-
- return {
- KEY_CODE: {
- ENTER: 13,
- ESCAPE: 27,
- SPACE: 32,
- LEFT_ARROW : 37,
- UP_ARROW : 38,
- RIGHT_ARROW : 39,
- DOWN_ARROW : 40,
- TAB : 9,
- BACKSPACE: 8,
- DELETE: 46
- },
- CSS: {
- /* Constants */
- TRANSITIONEND: 'transitionend' + (webkit ? ' webkitTransitionEnd' : ''),
- ANIMATIONEND: 'animationend' + (webkit ? ' webkitAnimationEnd' : ''),
-
- TRANSFORM: vendorProperty('transform'),
- TRANSFORM_ORIGIN: vendorProperty('transformOrigin'),
- TRANSITION: vendorProperty('transition'),
- TRANSITION_DURATION: vendorProperty('transitionDuration'),
- ANIMATION_PLAY_STATE: vendorProperty('animationPlayState'),
- ANIMATION_DURATION: vendorProperty('animationDuration'),
- ANIMATION_NAME: vendorProperty('animationName'),
- ANIMATION_TIMING: vendorProperty('animationTimingFunction'),
- ANIMATION_DIRECTION: vendorProperty('animationDirection')
- },
- MEDIA: {
- 'sm': '(max-width: 600px)',
- 'gt-sm': '(min-width: 600px)',
- 'md': '(min-width: 600px) and (max-width: 960px)',
- 'gt-md': '(min-width: 960px)',
- 'lg': '(min-width: 960px) and (max-width: 1200px)',
- 'gt-lg': '(min-width: 1200px)'
- },
- MEDIA_PRIORITY: [
- 'gt-lg',
- 'lg',
- 'gt-md',
- 'md',
- 'gt-sm',
- 'sm'
- ]
- };
-}
-MdConstantFactory.$inject = ["$$rAF", "$sniffer"];
-
-})();
-(function(){
-"use strict";
-
- angular
- .module('material.core')
- .config( ["$provide", function($provide){
- $provide.decorator('$mdUtil', ['$delegate', function ($delegate){
- /**
- * Inject the iterator facade to easily support iteration and accessors
- * @see iterator below
- */
- $delegate.iterator = MdIterator;
-
- return $delegate;
- }
- ]);
- }]);
-
- /**
- * iterator is a list facade to easily support iteration and accessors
- *
- * @param items Array list which this iterator will enumerate
- * @param reloop Boolean enables iterator to consider the list as an endless reloop
- */
- function MdIterator(items, reloop) {
- var trueFn = function() { return true; };
-
- if (items && !angular.isArray(items)) {
- items = Array.prototype.slice.call(items);
- }
-
- reloop = !!reloop;
- var _items = items || [ ];
-
- // Published API
- return {
- items: getItems,
- count: count,
-
- inRange: inRange,
- contains: contains,
- indexOf: indexOf,
- itemAt: itemAt,
-
- findBy: findBy,
-
- add: add,
- remove: remove,
-
- first: first,
- last: last,
- next: angular.bind(null, findSubsequentItem, false),
- previous: angular.bind(null, findSubsequentItem, true),
-
- hasPrevious: hasPrevious,
- hasNext: hasNext
-
- };
-
- /**
- * Publish copy of the enumerable set
- * @returns {Array|*}
- */
- function getItems() {
- return [].concat(_items);
- }
-
- /**
- * Determine length of the list
- * @returns {Array.length|*|number}
- */
- function count() {
- return _items.length;
- }
-
- /**
- * Is the index specified valid
- * @param index
- * @returns {Array.length|*|number|boolean}
- */
- function inRange(index) {
- return _items.length && ( index > -1 ) && (index < _items.length );
- }
-
- /**
- * Can the iterator proceed to the next item in the list; relative to
- * the specified item.
- *
- * @param item
- * @returns {Array.length|*|number|boolean}
- */
- function hasNext(item) {
- return item ? inRange(indexOf(item) + 1) : false;
- }
-
- /**
- * Can the iterator proceed to the previous item in the list; relative to
- * the specified item.
- *
- * @param item
- * @returns {Array.length|*|number|boolean}
- */
- function hasPrevious(item) {
- return item ? inRange(indexOf(item) - 1) : false;
- }
-
- /**
- * Get item at specified index/position
- * @param index
- * @returns {*}
- */
- function itemAt(index) {
- return inRange(index) ? _items[index] : null;
- }
-
- /**
- * Find all elements matching the key/value pair
- * otherwise return null
- *
- * @param val
- * @param key
- *
- * @return array
- */
- function findBy(key, val) {
- return _items.filter(function(item) {
- return item[key] === val;
- });
- }
-
- /**
- * Add item to list
- * @param item
- * @param index
- * @returns {*}
- */
- function add(item, index) {
- if ( !item ) return -1;
-
- if (!angular.isNumber(index)) {
- index = _items.length;
- }
-
- _items.splice(index, 0, item);
-
- return indexOf(item);
- }
-
- /**
- * Remove item from list...
- * @param item
- */
- function remove(item) {
- if ( contains(item) ){
- _items.splice(indexOf(item), 1);
- }
- }
-
- /**
- * Get the zero-based index of the target item
- * @param item
- * @returns {*}
- */
- function indexOf(item) {
- return _items.indexOf(item);
- }
-
- /**
- * Boolean existence check
- * @param item
- * @returns {boolean}
- */
- function contains(item) {
- return item && (indexOf(item) > -1);
- }
-
- /**
- * Return first item in the list
- * @returns {*}
- */
- function first() {
- return _items.length ? _items[0] : null;
- }
-
- /**
- * Return last item in the list...
- * @returns {*}
- */
- function last() {
- return _items.length ? _items[_items.length - 1] : null;
- }
-
- /**
- * Find the next item. If reloop is true and at the end of the list, it will go back to the
- * first item. If given, the `validate` callback will be used to determine whether the next item
- * is valid. If not valid, it will try to find the next item again.
- *
- * @param {boolean} backwards Specifies the direction of searching (forwards/backwards)
- * @param {*} item The item whose subsequent item we are looking for
- * @param {Function=} validate The `validate` function
- * @param {integer=} limit The recursion limit
- *
- * @returns {*} The subsequent item or null
- */
- function findSubsequentItem(backwards, item, validate, limit) {
- validate = validate || trueFn;
-
- var curIndex = indexOf(item);
- while (true) {
- if (!inRange(curIndex)) return null;
-
- var nextIndex = curIndex + (backwards ? -1 : 1);
- var foundItem = null;
- if (inRange(nextIndex)) {
- foundItem = _items[nextIndex];
- } else if (reloop) {
- foundItem = backwards ? last() : first();
- nextIndex = indexOf(foundItem);
- }
-
- if ((foundItem === null) || (nextIndex === limit)) return null;
- if (validate(foundItem)) return foundItem;
-
- if (angular.isUndefined(limit)) limit = nextIndex;
-
- curIndex = nextIndex;
- }
- }
- }
-
-
-})();
-(function(){
-"use strict";
-
-angular.module('material.core')
-.factory('$mdMedia', mdMediaFactory);
-
-/**
- * @ngdoc service
- * @name $mdMedia
- * @module material.core
- *
- * @description
- * `$mdMedia` is used to evaluate whether a given media query is true or false given the
- * current device's screen / window size. The media query will be re-evaluated on resize, allowing
- * you to register a watch.
- *
- * `$mdMedia` also has pre-programmed support for media queries that match the layout breakpoints.
- * (`sm`, `gt-sm`, `md`, `gt-md`, `lg`, `gt-lg`).
- *
- * @returns {boolean} a boolean representing whether or not the given media query is true or false.
- *
- * @usage
- * <hljs lang="js">
- * app.controller('MyController', function($mdMedia, $scope) {
- * $scope.$watch(function() { return $mdMedia('lg'); }, function(big) {
- * $scope.bigScreen = big;
- * });
- *
- * $scope.screenIsSmall = $mdMedia('sm');
- * $scope.customQuery = $mdMedia('(min-width: 1234px)');
- * $scope.anotherCustom = $mdMedia('max-width: 300px');
- * });
- * </hljs>
- */
-
-function mdMediaFactory($mdConstant, $rootScope, $window) {
- var queries = {};
- var mqls = {};
- var results = {};
- var normalizeCache = {};
-
- $mdMedia.getResponsiveAttribute = getResponsiveAttribute;
- $mdMedia.getQuery = getQuery;
- $mdMedia.watchResponsiveAttributes = watchResponsiveAttributes;
-
- return $mdMedia;
-
- function $mdMedia(query) {
- var validated = queries[query];
- if (angular.isUndefined(validated)) {
- validated = queries[query] = validate(query);
- }
-
- var result = results[validated];
- if (angular.isUndefined(result)) {
- result = add(validated);
- }
-
- return result;
- }
-
- function validate(query) {
- return $mdConstant.MEDIA[query] ||
- ((query.charAt(0) !== '(') ? ('(' + query + ')') : query);
- }
-
- function add(query) {
- var result = mqls[query] = $window.matchMedia(query);
- result.addListener(onQueryChange);
- return (results[result.media] = !!result.matches);
- }
-
- function onQueryChange(query) {
- $rootScope.$evalAsync(function() {
- results[query.media] = !!query.matches;
- });
- }
-
- function getQuery(name) {
- return mqls[name];
- }
-
- function getResponsiveAttribute(attrs, attrName) {
- for (var i = 0; i < $mdConstant.MEDIA_PRIORITY.length; i++) {
- var mediaName = $mdConstant.MEDIA_PRIORITY[i];
- if (!mqls[queries[mediaName]].matches) {
- continue;
- }
-
- var normalizedName = getNormalizedName(attrs, attrName + '-' + mediaName);
- if (attrs[normalizedName]) {
- return attrs[normalizedName];
- }
- }
-
- // fallback on unprefixed
- return attrs[getNormalizedName(attrs, attrName)];
- }
-
- function watchResponsiveAttributes(attrNames, attrs, watchFn) {
- var unwatchFns = [];
- attrNames.forEach(function(attrName) {
- var normalizedName = getNormalizedName(attrs, attrName);
- if (attrs[normalizedName]) {
- unwatchFns.push(
- attrs.$observe(normalizedName, angular.bind(void 0, watchFn, null)));
- }
-
- for (var mediaName in $mdConstant.MEDIA) {
- normalizedName = getNormalizedName(attrs, attrName + '-' + mediaName);
- if (!attrs[normalizedName]) {
- return;
- }
-
- unwatchFns.push(attrs.$observe(normalizedName, angular.bind(void 0, watchFn, mediaName)));
- }
- });
-
- return function unwatch() {
- unwatchFns.forEach(function(fn) { fn(); })
- };
- }
-
- // Improves performance dramatically
- function getNormalizedName(attrs, attrName) {
- return normalizeCache[attrName] ||
- (normalizeCache[attrName] = attrs.$normalize(attrName));
- }
-}
-mdMediaFactory.$inject = ["$mdConstant", "$rootScope", "$window"];
-
-})();
-(function(){
-"use strict";
-
-/*
- * This var has to be outside the angular factory, otherwise when
- * there are multiple material apps on the same page, each app
- * will create its own instance of this array and the app's IDs
- * will not be unique.
- */
-var nextUniqueId = 0;
-
-angular.module('material.core')
-.factory('$mdUtil', ["$cacheFactory", "$document", "$timeout", "$q", "$window", "$mdConstant", function($cacheFactory, $document, $timeout, $q, $window, $mdConstant) {
- var Util;
-
- function getNode(el) {
- return el[0] || el;
- }
-
- return Util = {
- now: window.performance ?
- angular.bind(window.performance, window.performance.now) :
- Date.now,
-
- clientRect: function(element, offsetParent, isOffsetRect) {
- var node = getNode(element);
- offsetParent = getNode(offsetParent || node.offsetParent || document.body);
- var nodeRect = node.getBoundingClientRect();
-
- // The user can ask for an offsetRect: a rect relative to the offsetParent,
- // or a clientRect: a rect relative to the page
- var offsetRect = isOffsetRect ?
- offsetParent.getBoundingClientRect() :
- { left: 0, top: 0, width: 0, height: 0 };
- return {
- left: nodeRect.left - offsetRect.left,
- top: nodeRect.top - offsetRect.top,
- width: nodeRect.width,
- height: nodeRect.height
- };
- },
- offsetRect: function(element, offsetParent) {
- return Util.clientRect(element, offsetParent, true);
- },
- // Disables scroll around the passed element. Goes up the DOM to find a
- // disableTarget (a md-content that is scrolling, or the body as a fallback)
- // and uses CSS/JS to prevent it from scrolling
- disableScrollAround: function(element) {
- element = element instanceof angular.element ? element[0] : element;
- var parentEl = element;
- var disableTarget;
-
- // Find the highest level scrolling md-content
- while (parentEl = this.getClosest(parentEl, 'MD-CONTENT', true)) {
- if (isScrolling(parentEl)) {
- disableTarget = angular.element(parentEl)[0];
- }
- }
-
- // Default to the body if no scrolling md-content
- if (!disableTarget) {
- disableTarget = $document[0].body;
- if (!isScrolling(disableTarget)) return angular.noop;
- }
-
- if (disableTarget.nodeName == 'BODY') {
- return disableBodyScroll();
- } else {
- return disableElementScroll();
- }
-
- // Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
- function disableElementScroll() {
- var scrollMask = angular.element('<div class="md-scroll-mask"><div class="md-scroll-mask-bar"></div></div>');
- var computedStyle = $window.getComputedStyle(disableTarget);
- var disableRect = disableTarget.getBoundingClientRect();
- var scrollWidth = disableRect.width - disableTarget.clientWidth;
- applyStyles(scrollMask[0], {
- zIndex: computedStyle.zIndex == 'auto' ? 2 : computedStyle.zIndex + 1,
- width: disableRect.width + 'px',
- height: disableRect.height + 'px',
- top: disableRect.top + 'px',
- left: disableRect.left + 'px'
- });
- scrollMask[0].firstElementChild.style.width = scrollWidth + 'px';
- $document[0].body.appendChild(scrollMask[0]);
-
- scrollMask.on('wheel', preventDefault);
- scrollMask.on('touchmove', preventDefault);
- $document.on('keydown', disableKeyNav);
-
- return function restoreScroll() {
- scrollMask.off('wheel');
- scrollMask.off('touchmove');
- scrollMask[0].parentNode.removeChild(scrollMask[0]);
- $document.off('keydown', disableKeyNav);
- };
-
- // Prevent keypresses from elements inside the disableTarget
- // used to stop the keypresses that could cause the page to scroll
- // (arrow keys, spacebar, tab, etc).
- function disableKeyNav(e) {
- if (disableTarget.contains(e.target)) {
- e.preventDefault();
- e.stopImmediatePropagation();
- }
- }
-
- function preventDefault(e) {
- e.preventDefault();
- }
- }
-
- // Converts the disableTarget (body) to a position fixed block and translate it to the propper scroll position
- function disableBodyScroll() {
- var restoreStyle = disableTarget.getAttribute('style') || '';
- var scrollOffset = disableTarget.scrollTop;
-
- applyStyles(disableTarget, {
- position: 'fixed',
- width: '100%',
- overflowY: 'scroll',
- top: -scrollOffset + 'px'
- });
-
- return function restoreScroll() {
- disableTarget.setAttribute('style', restoreStyle);
- disableTarget.scrollTop = scrollOffset;
- };
- }
-
- function applyStyles (el, styles) {
- for (var key in styles) {
- el.style[key] = styles[key];
- }
- }
-
- function isScrolling(el) {
- if (el instanceof angular.element) el = el[0];
- return el.scrollHeight > el.offsetHeight;
- }
- },
-
- floatingScrollbars: function() {
- if (this.floatingScrollbars.cached === undefined) {
- var tempNode = angular.element('<div style="width: 100%; z-index: -1; position: absolute; height: 35px; overflow-y: scroll"><div style="height: 60;"></div></div>');
- $document[0].body.appendChild(tempNode[0]);
- this.floatingScrollbars.cached = (tempNode[0].offsetWidth == tempNode[0].childNodes[0].offsetWidth);
- tempNode.remove();
- }
- return this.floatingScrollbars.cached;
- },
-
- // Mobile safari only allows you to set focus in click event listeners...
- forceFocus: function(element) {
- var node = element[0] || element;
-
- document.addEventListener('click', function focusOnClick(ev) {
- if (ev.target === node && ev.$focus) {
- node.focus();
- ev.stopImmediatePropagation();
- ev.preventDefault();
- node.removeEventListener('click', focusOnClick);
- }
- }, true);
-
- var newEvent = document.createEvent('MouseEvents');
- newEvent.initMouseEvent('click', false, true, window, {}, 0, 0, 0, 0,
- false, false, false, false, 0, null);
- newEvent.$material = true;
- newEvent.$focus = true;
- node.dispatchEvent(newEvent);
- },
-
- transitionEndPromise: function(element, opts) {
- opts = opts || {};
- var deferred = $q.defer();
- element.on($mdConstant.CSS.TRANSITIONEND, finished);
- function finished(ev) {
- // Make sure this transitionend didn't bubble up from a child
- if (!ev || ev.target === element[0]) {
- element.off($mdConstant.CSS.TRANSITIONEND, finished);
- deferred.resolve();
- }
- }
- if (opts.timeout) $timeout(finished, opts.timeout);
- return deferred.promise;
- },
-
- fakeNgModel: function() {
- return {
- $fake: true,
- $setTouched: angular.noop,
- $setViewValue: function(value) {
- this.$viewValue = value;
- this.$render(value);
- this.$viewChangeListeners.forEach(function(cb) { cb(); });
- },
- $isEmpty: function(value) {
- return ('' + value).length === 0;
- },
- $parsers: [],
- $formatters: [],
- $viewChangeListeners: [],
- $render: angular.noop
- };
- },
-
- // Returns a function, that, as long as it continues to be invoked, will not
- // be triggered. The function will be called after it stops being called for
- // N milliseconds.
- // @param wait Integer value of msecs to delay (since last debounce reset); default value 10 msecs
- // @param invokeApply should the $timeout trigger $digest() dirty checking
- debounce: function (func, wait, scope, invokeApply) {
- var timer;
-
- return function debounced() {
- var context = scope,
- args = Array.prototype.slice.call(arguments);
-
- $timeout.cancel(timer);
- timer = $timeout(function() {
-
- timer = undefined;
- func.apply(context, args);
-
- }, wait || 10, invokeApply );
- };
- },
-
- // Returns a function that can only be triggered every `delay` milliseconds.
- // In other words, the function will not be called unless it has been more
- // than `delay` milliseconds since the last call.
- throttle: function throttle(func, delay) {
- var recent;
- return function throttled() {
- var context = this;
- var args = arguments;
- var now = Util.now();
-
- if (!recent || (now - recent > delay)) {
- func.apply(context, args);
- recent = now;
- }
- };
- },
-
- /**
- * Measures the number of milliseconds taken to run the provided callback
- * function. Uses a high-precision timer if available.
- */
- time: function time(cb) {
- var start = Util.now();
- cb();
- return Util.now() - start;
- },
-
- /**
- * Get a unique ID.
- *
- * @returns {string} an unique numeric string
- */
- nextUid: function() {
- return '' + nextUniqueId++;
- },
-
- // Stop watchers and events from firing on a scope without destroying it,
- // by disconnecting it from its parent and its siblings' linked lists.
- disconnectScope: function disconnectScope(scope) {
- if (!scope) return;
-
- // we can't destroy the root scope or a scope that has been already destroyed
- if (scope.$root === scope) return;
- if (scope.$$destroyed ) return;
-
- var parent = scope.$parent;
- scope.$$disconnected = true;
-
- // See Scope.$destroy
- if (parent.$$childHead === scope) parent.$$childHead = scope.$$nextSibling;
- if (parent.$$childTail === scope) parent.$$childTail = scope.$$prevSibling;
- if (scope.$$prevSibling) scope.$$prevSibling.$$nextSibling = scope.$$nextSibling;
- if (scope.$$nextSibling) scope.$$nextSibling.$$prevSibling = scope.$$prevSibling;
-
- scope.$$nextSibling = scope.$$prevSibling = null;
-
- },
-
- // Undo the effects of disconnectScope above.
- reconnectScope: function reconnectScope(scope) {
- if (!scope) return;
-
- // we can't disconnect the root node or scope already disconnected
- if (scope.$root === scope) return;
- if (!scope.$$disconnected) return;
-
- var child = scope;
-
- var parent = child.$parent;
- child.$$disconnected = false;
- // See Scope.$new for this logic...
- child.$$prevSibling = parent.$$childTail;
- if (parent.$$childHead) {
- parent.$$childTail.$$nextSibling = child;
- parent.$$childTail = child;
- } else {
- parent.$$childHead = parent.$$childTail = child;
- }
- },
-
- /*
- * getClosest replicates jQuery.closest() to walk up the DOM tree until it finds a matching nodeName
- *
- * @param el Element to start walking the DOM from
- * @param tagName Tag name to find closest to el, such as 'form'
- */
- getClosest: function getClosest(el, tagName, onlyParent) {
- if (el instanceof angular.element) el = el[0];
- tagName = tagName.toUpperCase();
- if (onlyParent) el = el.parentNode;
- if (!el) return null;
- do {
- if (el.nodeName === tagName) {
- return el;
- }
- } while (el = el.parentNode);
- return null;
- },
-
- /**
- * Functional equivalent for $element.filter(‘md-bottom-sheet’)
- * useful with interimElements where the element and its container are important...
- */
- extractElementByName: function (element, nodeName) {
- for (var i = 0, len = element.length; i < len; i++) {
- if (element[i].nodeName.toLowerCase() === nodeName){
- return angular.element(element[i]);
- }
- }
- return element;
- },
-
- /**
- * Give optional properties with no value a boolean true by default
- */
- initOptionalProperties: function (scope, attr, defaults ) {
- defaults = defaults || { };
- angular.forEach(scope.$$isolateBindings, function (binding, key) {
- if (binding.optional && angular.isUndefined(scope[key])) {
- var hasKey = attr.hasOwnProperty(attr.$normalize(binding.attrName));
-
- scope[key] = angular.isDefined(defaults[key]) ? defaults[key] : hasKey;
- }
- });
- }
-
- };
-
-}]);
-
-/*
- * Since removing jQuery from the demos, some code that uses `element.focus()` is broken.
- *
- * We need to add `element.focus()`, because it's testable unlike `element[0].focus`.
- *
- * TODO(ajoslin): This should be added in a better place later.
- */
-
-angular.element.prototype.focus = angular.element.prototype.focus || function() {
- if (this.length) {
- this[0].focus();
- }
- return this;
-};
-angular.element.prototype.blur = angular.element.prototype.blur || function() {
- if (this.length) {
- this[0].blur();
- }
- return this;
-};
-
-})();
-(function(){
-"use strict";
-
-
-angular.module('material.core')
- .service('$mdAria', AriaService);
-
-/*
- * @ngInject
- */
-function AriaService($$rAF, $log, $window) {
-
- return {
- expect: expect,
- expectAsync: expectAsync,
- expectWithText: expectWithText
- };
-
- /**
- * Check if expected attribute has been specified on the target element or child
- * @param element
- * @param attrName
- * @param {optional} defaultValue What to set the attr to if no value is found
- */
- function expect(element, attrName, defaultValue) {
- var node = element[0] || element;
-
- // if node exists and neither it nor its children have the attribute
- if (node &&
- ((!node.hasAttribute(attrName) ||
- node.getAttribute(attrName).length === 0) &&
- !childHasAttribute(node, attrName))) {
-
- defaultValue = angular.isString(defaultValue) ? defaultValue.trim() : '';
- if (defaultValue.length) {
- element.attr(attrName, defaultValue);
- } else {
- $log.warn('ARIA: Attribute "', attrName, '", required for accessibility, is missing on node:', node);
- }
-
- }
- }
-
- function expectAsync(element, attrName, defaultValueGetter) {
- // Problem: when retrieving the element's contents synchronously to find the label,
- // the text may not be defined yet in the case of a binding.
- // There is a higher chance that a binding will be defined if we wait one frame.
- $$rAF(function() {
- expect(element, attrName, defaultValueGetter());
- });
- }
-
- function expectWithText(element, attrName) {
- expectAsync(element, attrName, function() {
- return getText(element);
- });
- }
-
- function getText(element) {
- return element.text().trim();
- }
-
- function childHasAttribute(node, attrName) {
- var hasChildren = node.hasChildNodes(),
- hasAttr = false;
-
- function isHidden(el) {
- var style = el.currentStyle ? el.currentStyle : $window.getComputedStyle(el);
- return (style.display === 'none');
- }
-
- if(hasChildren) {
- var children = node.childNodes;
- for(var i=0; i<children.length; i++){
- var child = children[i];
- if(child.nodeType === 1 && child.hasAttribute(attrName)) {
- if(!isHidden(child)){
- hasAttr = true;
- }
- }
- }
- }
- return hasAttr;
- }
-}
-AriaService.$inject = ["$$rAF", "$log", "$window"];
-
-})();
-(function(){
-"use strict";
-
-angular.module('material.core')
- .service('$mdCompiler', mdCompilerService);
-
-function mdCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
- /* jshint validthis: true */
-
- /*
- * @ngdoc service
- * @name $mdCompiler
- * @module material.core
- * @description
- * The $mdCompiler service is an abstraction of angular's compiler, that allows the developer
- * to easily compile an element with a templateUrl, controller, and locals.
- *
- * @usage
- * <hljs lang="js">
- * $mdCompiler.compile({
- * templateUrl: 'modal.html',
- * controller: 'ModalCtrl',
- * locals: {
- * modal: myModalInstance;
- * }
- * }).then(function(compileData) {
- * compileData.element; // modal.html's template in an element
- * compileData.link(myScope); //attach controller & scope to element
- * });
- * </hljs>
- */
-
- /*
- * @ngdoc method
- * @name $mdCompiler#compile
- * @description A helper to compile an HTML template/templateUrl with a given controller,
- * locals, and scope.
- * @param {object} options An options object, with the following properties:
- *
- * - `controller` - `{(string=|function()=}` Controller fn that should be associated with
- * newly created scope or the name of a registered controller if passed as a string.
- * - `controllerAs` - `{string=}` A controller alias name. If present the controller will be
- * published to scope under the `controllerAs` name.
- * - `template` - `{string=}` An html template as a string.
- * - `templateUrl` - `{string=}` A path to an html template.
- * - `transformTemplate` - `{function(template)=}` A function which transforms the template after
- * it is loaded. It will be given the template string as a parameter, and should
- * return a a new string representing the transformed template.
- * - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should
- * be injected into the controller. If any of these dependencies are promises, the compiler
- * will wait for them all to be resolved, or if one is rejected before the controller is
- * instantiated `compile()` will fail..
- * * `key` - `{string}`: a name of a dependency to be injected into the controller.
- * * `factory` - `{string|function}`: If `string` then it is an alias for a service.
- * Otherwise if function, then it is injected and the return value is treated as the
- * dependency. If the result is a promise, it is resolved before its value is
- * injected into the controller.
- *
- * @returns {object=} promise A promise, which will be resolved with a `compileData` object.
- * `compileData` has the following properties:
- *
- * - `element` - `{element}`: an uncompiled element matching the provided template.
- * - `link` - `{function(scope)}`: A link function, which, when called, will compile
- * the element and instantiate the provided controller (if given).
- * - `locals` - `{object}`: The locals which will be passed into the controller once `link` is
- * called. If `bindToController` is true, they will be coppied to the ctrl instead
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in.
- */
- this.compile = function(options) {
- var templateUrl = options.templateUrl;
- var template = options.template || '';
- var controller = options.controller;
- var controllerAs = options.controllerAs;
- var resolve = options.resolve || {};
- var locals = options.locals || {};
- var transformTemplate = options.transformTemplate || angular.identity;
- var bindToController = options.bindToController;
-
- // Take resolve values and invoke them.
- // Resolves can either be a string (value: 'MyRegisteredAngularConst'),
- // or an invokable 'factory' of sorts: (value: function ValueGetter($dependency) {})
- angular.forEach(resolve, function(value, key) {
- if (angular.isString(value)) {
- resolve[key] = $injector.get(value);
- } else {
- resolve[key] = $injector.invoke(value);
- }
- });
- //Add the locals, which are just straight values to inject
- //eg locals: { three: 3 }, will inject three into the controller
- angular.extend(resolve, locals);
-
- if (templateUrl) {
- resolve.$template = $http.get(templateUrl, {cache: $templateCache})
- .then(function(response) {
- return response.data;
- });
- } else {
- resolve.$template = $q.when(template);
- }
-
- // Wait for all the resolves to finish if they are promises
- return $q.all(resolve).then(function(locals) {
-
- var template = transformTemplate(locals.$template);
- var element = options.element || angular.element('<div>').html(template.trim()).contents();
- var linkFn = $compile(element);
-
- //Return a linking function that can be used later when the element is ready
- return {
- locals: locals,
- element: element,
- link: function link(scope) {
- locals.$scope = scope;
-
- //Instantiate controller if it exists, because we have scope
- if (controller) {
- var invokeCtrl = $controller(controller, locals, true);
- if (bindToController) {
- angular.extend(invokeCtrl.instance, locals);
- }
- var ctrl = invokeCtrl();
- //See angular-route source for this logic
- element.data('$ngControllerController', ctrl);
- element.children().data('$ngControllerController', ctrl);
-
- if (controllerAs) {
- scope[controllerAs] = ctrl;
- }
- }
- return linkFn(scope);
- }
- };
- });
-
- };
-}
-mdCompilerService.$inject = ["$q", "$http", "$injector", "$compile", "$controller", "$templateCache"];
-
-})();
-(function(){
-"use strict";
-
- var HANDLERS = {};
- /* The state of the current 'pointer'
- * The pointer represents the state of the current touch.
- * It contains normalized x and y coordinates from DOM events,
- * as well as other information abstracted from the DOM.
- */
- var pointer, lastPointer, forceSkipClickHijack = false;
-
- // Used to attach event listeners once when multiple ng-apps are running.
- var isInitialized = false;
-
- angular
- .module('material.core.gestures', [ ])
- .provider('$mdGesture', MdGestureProvider)
- .factory('$$MdGestureHandler', MdGestureHandler)
- .run( attachToDocument );
-
- /**
- * @ngdoc service
- * @name $mdGestureProvider
- * @module material.core.gestures
- *
- * @description
- * In some scenarios on Mobile devices (without jQuery), the click events should NOT be hijacked.
- * `$mdGestureProvider` is used to configure the Gesture module to ignore or skip click hijacking on mobile
- * devices.
- *
- * <hljs lang="js">
- * app.config(function($mdGestureProvider) {
- *
- * // For mobile devices without jQuery loaded, do not
- * // intercept click events during the capture phase.
- * $mdGestureProvider.skipClickHijack();
- *
- * });
- * </hljs>
- *
- */
- function MdGestureProvider() { }
-
- MdGestureProvider.prototype = {
-
- // Publish access to setter to configure a variable BEFORE the
- // $mdGesture service is instantiated...
- skipClickHijack: function() {
- return forceSkipClickHijack = true;
- },
-
- /**
- * $get is used to build an instance of $mdGesture
- * @ngInject
- */
- $get : ["$$MdGestureHandler", "$$rAF", "$timeout", function($$MdGestureHandler, $$rAF, $timeout) {
- return new MdGesture($$MdGestureHandler, $$rAF, $timeout);
- }]
- };
-
-
-
- /**
- * MdGesture factory construction function
- * @ngInject
- */
- function MdGesture($$MdGestureHandler, $$rAF, $timeout) {
- var userAgent = navigator.userAgent || navigator.vendor || window.opera;
- var isIos = userAgent.match(/ipad|iphone|ipod/i);
- var isAndroid = userAgent.match(/android/i);
- var hasJQuery = (typeof window.jQuery !== 'undefined') && (angular.element === window.jQuery);
-
- var self = {
- handler: addHandler,
- register: register,
- // On mobile w/out jQuery, we normally intercept clicks. Should we skip that?
- isHijackingClicks: (isIos || isAndroid) && !hasJQuery && !forceSkipClickHijack
- };
-
- if (self.isHijackingClicks) {
- self.handler('click', {
- options: {
- maxDistance: 6
- },
- onEnd: function (ev, pointer) {
- if (pointer.distance < this.state.options.maxDistance) {
- this.dispatchEvent(ev, 'click');
- }
- }
- });
- }
-
- /*
- * Register an element to listen for a handler.
- * This allows an element to override the default options for a handler.
- * Additionally, some handlers like drag and hold only dispatch events if
- * the domEvent happens inside an element that's registered to listen for these events.
- *
- * @see GestureHandler for how overriding of default options works.
- * @example $mdGesture.register(myElement, 'drag', { minDistance: 20, horziontal: false })
- */
- function register(element, handlerName, options) {
- var handler = HANDLERS[handlerName.replace(/^\$md./, '')];
- if (!handler) {
- throw new Error('Failed to register element with handler ' + handlerName + '. ' +
- 'Available handlers: ' + Object.keys(HANDLERS).join(', '));
- }
- return handler.registerElement(element, options);
- }
-
- /*
- * add a handler to $mdGesture. see below.
- */
- function addHandler(name, definition) {
- var handler = new $$MdGestureHandler(name);
- angular.extend(handler, definition);
- HANDLERS[name] = handler;
-
- return self;
- }
-
- /*
- * Register handlers. These listen to touch/start/move events, interpret them,
- * and dispatch gesture events depending on options & conditions. These are all
- * instances of GestureHandler.
- * @see GestureHandler
- */
- return self
- /*
- * The press handler dispatches an event on touchdown/touchend.
- * It's a simple abstraction of touch/mouse/pointer start and end.
- */
- .handler('press', {
- onStart: function (ev, pointer) {
- this.dispatchEvent(ev, '$md.pressdown');
- },
- onEnd: function (ev, pointer) {
- this.dispatchEvent(ev, '$md.pressup');
- }
- })
-
- /*
- * The hold handler dispatches an event if the user keeps their finger within
- * the same <maxDistance> area for <delay> ms.
- * The hold handler will only run if a parent of the touch target is registered
- * to listen for hold events through $mdGesture.register()
- */
- .handler('hold', {
- options: {
- maxDistance: 6,
- delay: 500
- },
- onCancel: function () {
- $timeout.cancel(this.state.timeout);
- },
- onStart: function (ev, pointer) {
- // For hold, require a parent to be registered with $mdGesture.register()
- // Because we prevent scroll events, this is necessary.
- if (!this.state.registeredParent) return this.cancel();
-
- this.state.pos = {x: pointer.x, y: pointer.y};
- this.state.timeout = $timeout(angular.bind(this, function holdDelayFn() {
- this.dispatchEvent(ev, '$md.hold');
- this.cancel(); //we're done!
- }), this.state.options.delay, false);
- },
- onMove: function (ev, pointer) {
- // Don't scroll while waiting for hold.
- // If we don't preventDefault touchmove events here, Android will assume we don't
- // want to listen to anymore touch events. It will start scrolling and stop sending
- // touchmove events.
- ev.preventDefault();
-
- // If the user moves greater than <maxDistance> pixels, stop the hold timer
- // set in onStart
- var dx = this.state.pos.x - pointer.x;
- var dy = this.state.pos.y - pointer.y;
- if (Math.sqrt(dx * dx + dy * dy) > this.options.maxDistance) {
- this.cancel();
- }
- },
- onEnd: function () {
- this.onCancel();
- }
- })
-
- /*
- * The drag handler dispatches a drag event if the user holds and moves his finger greater than
- * <minDistance> px in the x or y direction, depending on options.horizontal.
- * The drag will be cancelled if the user moves his finger greater than <minDistance>*<cancelMultiplier> in
- * the perpindicular direction. Eg if the drag is horizontal and the user moves his finger <minDistance>*<cancelMultiplier>
- * pixels vertically, this handler won't consider the move part of a drag.
- */
- .handler('drag', {
- options: {
- minDistance: 6,
- horizontal: true,
- cancelMultiplier: 1.5
- },
- onStart: function (ev) {
- // For drag, require a parent to be registered with $mdGesture.register()
- if (!this.state.registeredParent) this.cancel();
- },
- onMove: function (ev, pointer) {
- var shouldStartDrag, shouldCancel;
- // Don't scroll while deciding if this touchmove qualifies as a drag event.
- // If we don't preventDefault touchmove events here, Android will assume we don't
- // want to listen to anymore touch events. It will start scrolling and stop sending
- // touchmove events.
- ev.preventDefault();
-
- if (!this.state.dragPointer) {
- if (this.state.options.horizontal) {
- shouldStartDrag = Math.abs(pointer.distanceX) > this.state.options.minDistance;
- shouldCancel = Math.abs(pointer.distanceY) > this.state.options.minDistance * this.state.options.cancelMultiplier;
- } else {
- shouldStartDrag = Math.abs(pointer.distanceY) > this.state.options.minDistance;
- shouldCancel = Math.abs(pointer.distanceX) > this.state.options.minDistance * this.state.options.cancelMultiplier;
- }
-
- if (shouldStartDrag) {
- // Create a new pointer representing this drag, starting at this point where the drag started.
- this.state.dragPointer = makeStartPointer(ev);
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.dragstart', this.state.dragPointer);
-
- } else if (shouldCancel) {
- this.cancel();
- }
- } else {
- this.dispatchDragMove(ev);
- }
- },
- // Only dispatch dragmove events every frame; any more is unnecessray
- dispatchDragMove: $$rAF.throttle(function (ev) {
- // Make sure the drag didn't stop while waiting for the next frame
- if (this.state.isRunning) {
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.drag', this.state.dragPointer);
- }
- }),
- onEnd: function (ev, pointer) {
- if (this.state.dragPointer) {
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.dragend', this.state.dragPointer);
- }
- }
- })
-
- /*
- * The swipe handler will dispatch a swipe event if, on the end of a touch,
- * the velocity and distance were high enough.
- * TODO: add vertical swiping with a `horizontal` option similar to the drag handler.
- */
- .handler('swipe', {
- options: {
- minVelocity: 0.65,
- minDistance: 10
- },
- onEnd: function (ev, pointer) {
- if (Math.abs(pointer.velocityX) > this.state.options.minVelocity &&
- Math.abs(pointer.distanceX) > this.state.options.minDistance) {
- var eventType = pointer.directionX == 'left' ? '$md.swipeleft' : '$md.swiperight';
- this.dispatchEvent(ev, eventType);
- }
- }
- });
-
- }
- MdGesture.$inject = ["$$MdGestureHandler", "$$rAF", "$timeout"];
-
- /**
- * MdGestureHandler
- * A GestureHandler is an object which is able to dispatch custom dom events
- * based on native dom {touch,pointer,mouse}{start,move,end} events.
- *
- * A gesture will manage its lifecycle through the start,move,end, and cancel
- * functions, which are called by native dom events.
- *
- * A gesture has the concept of 'options' (eg a swipe's required velocity), which can be
- * overridden by elements registering through $mdGesture.register()
- */
- function GestureHandler (name) {
- this.name = name;
- this.state = {};
- }
-
- function MdGestureHandler() {
- var hasJQuery = (typeof window.jQuery !== 'undefined') && (angular.element === window.jQuery);
-
- GestureHandler.prototype = {
- options: {},
- // jQuery listeners don't work with custom DOMEvents, so we have to dispatch events
- // differently when jQuery is loaded
- dispatchEvent: hasJQuery ? jQueryDispatchEvent : nativeDispatchEvent,
-
- // These are overridden by the registered handler
- onStart: angular.noop,
- onMove: angular.noop,
- onEnd: angular.noop,
- onCancel: angular.noop,
-
- // onStart sets up a new state for the handler, which includes options from the
- // nearest registered parent element of ev.target.
- start: function (ev, pointer) {
- if (this.state.isRunning) return;
- var parentTarget = this.getNearestParent(ev.target);
- // Get the options from the nearest registered parent
- var parentTargetOptions = parentTarget && parentTarget.$mdGesture[this.name] || {};
-
- this.state = {
- isRunning: true,
- // Override the default options with the nearest registered parent's options
- options: angular.extend({}, this.options, parentTargetOptions),
- // Pass in the registered parent node to the state so the onStart listener can use
- registeredParent: parentTarget
- };
- this.onStart(ev, pointer);
- },
- move: function (ev, pointer) {
- if (!this.state.isRunning) return;
- this.onMove(ev, pointer);
- },
- end: function (ev, pointer) {
- if (!this.state.isRunning) return;
- this.onEnd(ev, pointer);
- this.state.isRunning = false;
- },
- cancel: function (ev, pointer) {
- this.onCancel(ev, pointer);
- this.state = {};
- },
-
- // Find and return the nearest parent element that has been registered to
- // listen for this handler via $mdGesture.register(element, 'handlerName').
- getNearestParent: function (node) {
- var current = node;
- while (current) {
- if ((current.$mdGesture || {})[this.name]) {
- return current;
- }
- current = current.parentNode;
- }
- return null;
- },
-
- // Called from $mdGesture.register when an element reigsters itself with a handler.
- // Store the options the user gave on the DOMElement itself. These options will
- // be retrieved with getNearestParent when the handler starts.
- registerElement: function (element, options) {
- var self = this;
- element[0].$mdGesture = element[0].$mdGesture || {};
- element[0].$mdGesture[this.name] = options || {};
- element.on('$destroy', onDestroy);
-
- return onDestroy;
-
- function onDestroy() {
- delete element[0].$mdGesture[self.name];
- element.off('$destroy', onDestroy);
- }
- }
- };
-
- return GestureHandler;
-
- /*
- * Dispatch an event with jQuery
- * TODO: Make sure this sends bubbling events
- *
- * @param srcEvent the original DOM touch event that started this.
- * @param eventType the name of the custom event to send (eg 'click' or '$md.drag')
- * @param eventPointer the pointer object that matches this event.
- */
- function jQueryDispatchEvent(srcEvent, eventType, eventPointer) {
- eventPointer = eventPointer || pointer;
- var eventObj = new angular.element.Event(eventType);
-
- eventObj.$material = true;
- eventObj.pointer = eventPointer;
- eventObj.srcEvent = srcEvent;
-
- angular.extend(eventObj, {
- clientX: eventPointer.x,
- clientY: eventPointer.y,
- screenX: eventPointer.x,
- screenY: eventPointer.y,
- pageX: eventPointer.x,
- pageY: eventPointer.y,
- ctrlKey: srcEvent.ctrlKey,
- altKey: srcEvent.altKey,
- shiftKey: srcEvent.shiftKey,
- metaKey: srcEvent.metaKey
- });
- angular.element(eventPointer.target).trigger(eventObj);
- }
-
- /*
- * NOTE: nativeDispatchEvent is very performance sensitive.
- * @param srcEvent the original DOM touch event that started this.
- * @param eventType the name of the custom event to send (eg 'click' or '$md.drag')
- * @param eventPointer the pointer object that matches this event.
- */
- function nativeDispatchEvent(srcEvent, eventType, eventPointer) {
- eventPointer = eventPointer || pointer;
- var eventObj;
-
- if (eventType === 'click') {
- eventObj = document.createEvent('MouseEvents');
- eventObj.initMouseEvent(
- 'click', true, true, window, srcEvent.detail,
- eventPointer.x, eventPointer.y, eventPointer.x, eventPointer.y,
- srcEvent.ctrlKey, srcEvent.altKey, srcEvent.shiftKey, srcEvent.metaKey,
- srcEvent.button, srcEvent.relatedTarget || null
- );
-
- } else {
- eventObj = document.createEvent('CustomEvent');
- eventObj.initCustomEvent(eventType, true, true, {});
- }
- eventObj.$material = true;
- eventObj.pointer = eventPointer;
- eventObj.srcEvent = srcEvent;
- eventPointer.target.dispatchEvent(eventObj);
- }
-
- }
-
- /**
- * Attach Gestures: hook document and check shouldHijack clicks
- * @ngInject
- */
- function attachToDocument( $mdGesture, $$MdGestureHandler ) {
-
- // Polyfill document.contains for IE11.
- // TODO: move to util
- document.contains || (document.contains = function (node) {
- return document.body.contains(node);
- });
-
- if (!isInitialized && $mdGesture.isHijackingClicks ) {
- /*
- * If hijack clicks is true, we preventDefault any click that wasn't
- * sent by ngMaterial. This is because on older Android & iOS, a false, or 'ghost',
- * click event will be sent ~400ms after a touchend event happens.
- * The only way to know if this click is real is to prevent any normal
- * click events, and add a flag to events sent by material so we know not to prevent those.
- *
- * Two exceptions to click events that should be prevented are:
- * - click events sent by the keyboard (eg form submit)
- * - events that originate from an Ionic app
- */
- document.addEventListener('click', function clickHijacker(ev) {
- var isKeyClick = ev.clientX === 0 && ev.clientY === 0;
- if (!isKeyClick && !ev.$material && !ev.isIonicTap) {
- ev.preventDefault();
- ev.stopPropagation();
- }
- }, true);
-
- isInitialized = true;
- }
-
- // Listen to all events to cover all platforms.
- var START_EVENTS = 'mousedown touchstart pointerdown';
- var MOVE_EVENTS = 'mousemove touchmove pointermove';
- var END_EVENTS = 'mouseup mouseleave touchend touchcancel pointerup pointercancel';
-
- angular.element(document)
- .on(START_EVENTS, gestureStart)
- .on(MOVE_EVENTS, gestureMove)
- .on(END_EVENTS, gestureEnd)
- // For testing
- .on('$$mdGestureReset', function gestureClearCache () {
- lastPointer = pointer = null;
- });
-
- /*
- * When a DOM event happens, run all registered gesture handlers' lifecycle
- * methods which match the DOM event.
- * Eg when a 'touchstart' event happens, runHandlers('start') will call and
- * run `handler.cancel()` and `handler.start()` on all registered handlers.
- */
- function runHandlers(handlerEvent, event) {
- var handler;
- for (var name in HANDLERS) {
- handler = HANDLERS[name];
- if( handler instanceof $$MdGestureHandler ) {
-
- if (handlerEvent === 'start') {
- // Run cancel to reset any handlers' state
- handler.cancel();
- }
- handler[handlerEvent](event, pointer);
-
- }
- }
- }
-
- /*
- * gestureStart vets if a start event is legitimate (and not part of a 'ghost click' from iOS/Android)
- * If it is legitimate, we initiate the pointer state and mark the current pointer's type
- * For example, for a touchstart event, mark the current pointer as a 'touch' pointer, so mouse events
- * won't effect it.
- */
- function gestureStart(ev) {
- // If we're already touched down, abort
- if (pointer) return;
-
- var now = +Date.now();
-
- // iOS & old android bug: after a touch event, a click event is sent 350 ms later.
- // If <400ms have passed, don't allow an event of a different type than the previous event
- if (lastPointer && !typesMatch(ev, lastPointer) && (now - lastPointer.endTime < 1500)) {
- return;
- }
-
- pointer = makeStartPointer(ev);
-
- runHandlers('start', ev);
- }
- /*
- * If a move event happens of the right type, update the pointer and run all the move handlers.
- * "of the right type": if a mousemove happens but our pointer started with a touch event, do nothing.
- */
- function gestureMove(ev) {
- if (!pointer || !typesMatch(ev, pointer)) return;
-
- updatePointerState(ev, pointer);
- runHandlers('move', ev);
- }
- /*
- * If an end event happens of the right type, update the pointer, run endHandlers, and save the pointer as 'lastPointer'
- */
- function gestureEnd(ev) {
- if (!pointer || !typesMatch(ev, pointer)) return;
-
- updatePointerState(ev, pointer);
- pointer.endTime = +Date.now();
-
- runHandlers('end', ev);
-
- lastPointer = pointer;
- pointer = null;
- }
-
- }
- attachToDocument.$inject = ["$mdGesture", "$$MdGestureHandler"];
-
- // ********************
- // Module Functions
- // ********************
-
- /*
- * Initiate the pointer. x, y, and the pointer's type.
- */
- function makeStartPointer(ev) {
- var point = getEventPoint(ev);
- var startPointer = {
- startTime: +Date.now(),
- target: ev.target,
- // 'p' for pointer events, 'm' for mouse, 't' for touch
- type: ev.type.charAt(0)
- };
- startPointer.startX = startPointer.x = point.pageX;
- startPointer.startY = startPointer.y = point.pageY;
- return startPointer;
- }
-
- /*
- * return whether the pointer's type matches the event's type.
- * Eg if a touch event happens but the pointer has a mouse type, return false.
- */
- function typesMatch(ev, pointer) {
- return ev && pointer && ev.type.charAt(0) === pointer.type;
- }
-
- /*
- * Update the given pointer based upon the given DOMEvent.
- * Distance, velocity, direction, duration, etc
- */
- function updatePointerState(ev, pointer) {
- var point = getEventPoint(ev);
- var x = pointer.x = point.pageX;
- var y = pointer.y = point.pageY;
-
- pointer.distanceX = x - pointer.startX;
- pointer.distanceY = y - pointer.startY;
- pointer.distance = Math.sqrt(
- pointer.distanceX * pointer.distanceX + pointer.distanceY * pointer.distanceY
- );
-
- pointer.directionX = pointer.distanceX > 0 ? 'right' : pointer.distanceX < 0 ? 'left' : '';
- pointer.directionY = pointer.distanceY > 0 ? 'up' : pointer.distanceY < 0 ? 'down' : '';
-
- pointer.duration = +Date.now() - pointer.startTime;
- pointer.velocityX = pointer.distanceX / pointer.duration;
- pointer.velocityY = pointer.distanceY / pointer.duration;
- }
-
- /*
- * Normalize the point where the DOM event happened whether it's touch or mouse.
- * @returns point event obj with pageX and pageY on it.
- */
- function getEventPoint(ev) {
- ev = ev.originalEvent || ev; // support jQuery events
- return (ev.touches && ev.touches[0]) ||
- (ev.changedTouches && ev.changedTouches[0]) ||
- ev;
- }
-
-})();
-(function(){
-"use strict";
-
-angular.module('material.core')
- .provider('$$interimElement', InterimElementProvider);
-
-/*
- * @ngdoc service
- * @name $$interimElement
- * @module material.core
- *
- * @description
- *
- * Factory that contructs `$$interimElement.$service` services.
- * Used internally in material design for elements that appear on screen temporarily.
- * The service provides a promise-like API for interacting with the temporary
- * elements.
- *
- * ```js
- * app.service('$mdToast', function($$interimElement) {
- * var $mdToast = $$interimElement(toastDefaultOptions);
- * return $mdToast;
- * });
- * ```
- * @param {object=} defaultOptions Options used by default for the `show` method on the service.
- *
- * @returns {$$interimElement.$service}
- *
- */
-
-function InterimElementProvider() {
- createInterimElementProvider.$get = InterimElementFactory;
- InterimElementFactory.$inject = ["$document", "$q", "$rootScope", "$timeout", "$rootElement", "$animate", "$interpolate", "$mdCompiler", "$mdTheming"];
- return createInterimElementProvider;
-
- /**
- * Returns a new provider which allows configuration of a new interimElement
- * service. Allows configuration of default options & methods for options,
- * as well as configuration of 'preset' methods (eg dialog.basic(): basic is a preset method)
- */
- function createInterimElementProvider(interimFactoryName) {
- var EXPOSED_METHODS = ['onHide', 'onShow', 'onRemove'];
-
- var customMethods = {};
- var providerConfig = {
- presets: {}
- };
-
- var provider = {
- setDefaults: setDefaults,
- addPreset: addPreset,
- addMethod: addMethod,
- $get: factory
- };
-
- /**
- * all interim elements will come with the 'build' preset
- */
- provider.addPreset('build', {
- methods: ['controller', 'controllerAs', 'resolve',
- 'template', 'templateUrl', 'themable', 'transformTemplate', 'parent']
- });
-
- factory.$inject = ["$$interimElement", "$animate", "$injector"];
- return provider;
-
- /**
- * Save the configured defaults to be used when the factory is instantiated
- */
- function setDefaults(definition) {
- providerConfig.optionsFactory = definition.options;
- providerConfig.methods = (definition.methods || []).concat(EXPOSED_METHODS);
- return provider;
- }
-
- /**
- * Add a method to the factory that isn't specific to any interim element operations
- */
-
- function addMethod(name, fn) {
- customMethods[name] = fn;
- return provider;
- }
-
- /**
- * Save the configured preset to be used when the factory is instantiated
- */
- function addPreset(name, definition) {
- definition = definition || {};
- definition.methods = definition.methods || [];
- definition.options = definition.options || function() { return {}; };
-
- if (/^cancel|hide|show$/.test(name)) {
- throw new Error("Preset '" + name + "' in " + interimFactoryName + " is reserved!");
- }
- if (definition.methods.indexOf('_options') > -1) {
- throw new Error("Method '_options' in " + interimFactoryName + " is reserved!");
- }
- providerConfig.presets[name] = {
- methods: definition.methods.concat(EXPOSED_METHODS),
- optionsFactory: definition.options,
- argOption: definition.argOption
- };
- return provider;
- }
-
- /**
- * Create a factory that has the given methods & defaults implementing interimElement
- */
- /* @ngInject */
- function factory($$interimElement, $animate, $injector) {
- var defaultMethods;
- var defaultOptions;
- var interimElementService = $$interimElement();
-
- /*
- * publicService is what the developer will be using.
- * It has methods hide(), cancel(), show(), build(), and any other
- * presets which were set during the config phase.
- */
- var publicService = {
- hide: interimElementService.hide,
- cancel: interimElementService.cancel,
- show: showInterimElement
- };
-
- defaultMethods = providerConfig.methods || [];
- // This must be invoked after the publicService is initialized
- defaultOptions = invokeFactory(providerConfig.optionsFactory, {});
-
- // Copy over the simple custom methods
- angular.forEach(customMethods, function(fn, name) {
- publicService[name] = fn;
- });
-
- angular.forEach(providerConfig.presets, function(definition, name) {
- var presetDefaults = invokeFactory(definition.optionsFactory, {});
- var presetMethods = (definition.methods || []).concat(defaultMethods);
-
- // Every interimElement built with a preset has a field called `$type`,
- // which matches the name of the preset.
- // Eg in preset 'confirm', options.$type === 'confirm'
- angular.extend(presetDefaults, { $type: name });
-
- // This creates a preset class which has setter methods for every
- // method given in the `.addPreset()` function, as well as every
- // method given in the `.setDefaults()` function.
- //
- // @example
- // .setDefaults({
- // methods: ['hasBackdrop', 'clickOutsideToClose', 'escapeToClose', 'targetEvent'],
- // options: dialogDefaultOptions
- // })
- // .addPreset('alert', {
- // methods: ['title', 'ok'],
- // options: alertDialogOptions
- // })
- //
- // Set values will be passed to the options when interimElemnt.show() is called.
- function Preset(opts) {
- this._options = angular.extend({}, presetDefaults, opts);
- }
- angular.forEach(presetMethods, function(name) {
- Preset.prototype[name] = function(value) {
- this._options[name] = value;
- return this;
- };
- });
-
- // Create shortcut method for one-linear methods
- if (definition.argOption) {
- var methodName = 'show' + name.charAt(0).toUpperCase() + name.slice(1);
- publicService[methodName] = function(arg) {
- var config = publicService[name](arg);
- return publicService.show(config);
- };
- }
-
- // eg $mdDialog.alert() will return a new alert preset
- publicService[name] = function(arg) {
- // If argOption is supplied, eg `argOption: 'content'`, then we assume
- // if the argument is not an options object then it is the `argOption` option.
- //
- // @example `$mdToast.simple('hello')` // sets options.content to hello
- // // because argOption === 'content'
- if (arguments.length && definition.argOption && !angular.isObject(arg) &&
- !angular.isArray(arg)) {
- return (new Preset())[definition.argOption](arg);
- } else {
- return new Preset(arg);
- }
-
- };
- });
-
- return publicService;
-
- function showInterimElement(opts) {
- // opts is either a preset which stores its options on an _options field,
- // or just an object made up of options
- if (opts && opts._options) opts = opts._options;
- return interimElementService.show(
- angular.extend({}, defaultOptions, opts)
- );
- }
-
- /**
- * Helper to call $injector.invoke with a local of the factory name for
- * this provider.
- * If an $mdDialog is providing options for a dialog and tries to inject
- * $mdDialog, a circular dependency error will happen.
- * We get around that by manually injecting $mdDialog as a local.
- */
- function invokeFactory(factory, defaultVal) {
- var locals = {};
- locals[interimFactoryName] = publicService;
- return $injector.invoke(factory || function() { return defaultVal; }, {}, locals);
- }
-
- }
-
- }
-
- /* @ngInject */
- function InterimElementFactory($document, $q, $rootScope, $timeout, $rootElement, $animate,
- $interpolate, $mdCompiler, $mdTheming ) {
- var startSymbol = $interpolate.startSymbol(),
- endSymbol = $interpolate.endSymbol(),
- usesStandardSymbols = ((startSymbol === '{{') && (endSymbol === '}}')),
- processTemplate = usesStandardSymbols ? angular.identity : replaceInterpolationSymbols;
-
- return function createInterimElementService() {
- /*
- * @ngdoc service
- * @name $$interimElement.$service
- *
- * @description
- * A service used to control inserting and removing an element into the DOM.
- *
- */
- var stack = [];
- var service;
- return service = {
- show: show,
- hide: hide,
- cancel: cancel
- };
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#show
- * @kind function
- *
- * @description
- * Adds the `$interimElement` to the DOM and returns a promise that will be resolved or rejected
- * with hide or cancel, respectively.
- *
- * @param {*} options is hashMap of settings
- * @returns a Promise
- *
- */
- function show(options) {
- if (stack.length) {
- return service.cancel().then(function() {
- return show(options);
- });
- } else {
- var interimElement = new InterimElement(options);
- stack.push(interimElement);
- return interimElement.show().then(function() {
- return interimElement.deferred.promise;
- });
- }
- }
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#hide
- * @kind function
- *
- * @description
- * Removes the `$interimElement` from the DOM and resolves the promise returned from `show`
- *
- * @param {*} resolveParam Data to resolve the promise with
- * @returns a Promise that will be resolved after the element has been removed.
- *
- */
- function hide(response) {
- var interimElement = stack.shift();
- return interimElement && interimElement.remove().then(function() {
- interimElement.deferred.resolve(response);
- });
- }
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#cancel
- * @kind function
- *
- * @description
- * Removes the `$interimElement` from the DOM and rejects the promise returned from `show`
- *
- * @param {*} reason Data to reject the promise with
- * @returns Promise that will be resolved after the element has been removed.
- *
- */
- function cancel(reason) {
- var interimElement = stack.shift();
- return $q.when(interimElement && interimElement.remove().then(function() {
- interimElement.deferred.reject(reason);
- }));
- }
-
-
- /*
- * Internal Interim Element Object
- * Used internally to manage the DOM element and related data
- */
- function InterimElement(options) {
- var self;
- var hideTimeout, element, showDone, removeDone;
-
- options = options || {};
- options = angular.extend({
- preserveScope: false,
- scope: options.scope || $rootScope.$new(options.isolateScope),
- onShow: function(scope, element, options) {
- return $animate.enter(element, options.parent);
- },
- onRemove: function(scope, element, options) {
- // Element could be undefined if a new element is shown before
- // the old one finishes compiling.
- return element && $animate.leave(element) || $q.when();
- }
- }, options);
-
- if (options.template) {
- options.template = processTemplate(options.template);
- }
-
- return self = {
- options: options,
- deferred: $q.defer(),
- show: function() {
- var compilePromise;
- if (options.skipCompile) {
- compilePromise = $q(function(resolve) {
- resolve({
- locals: {},
- link: function() { return options.element; }
- });
- });
- } else {
- compilePromise = $mdCompiler.compile(options);
- }
-
- return showDone = compilePromise.then(function(compileData) {
- angular.extend(compileData.locals, self.options);
-
- element = compileData.link(options.scope);
-
- // Search for parent at insertion time, if not specified
- if (angular.isFunction(options.parent)) {
- options.parent = options.parent(options.scope, element, options);
- } else if (angular.isString(options.parent)) {
- options.parent = angular.element($document[0].querySelector(options.parent));
- }
-
- // If parent querySelector/getter function fails, or it's just null,
- // find a default.
- if (!(options.parent || {}).length) {
- var el;
- if ($rootElement[0] && $rootElement[0].querySelector) {
- el = $rootElement[0].querySelector(':not(svg) > body');
- }
- if (!el) el = $rootElement[0];
- if (el.nodeName == '#comment') {
- el = $document[0].body;
- }
- options.parent = angular.element(el);
- }
-
- if (options.themable) $mdTheming(element);
- var ret = options.onShow(options.scope, element, options);
- return $q.when(ret)
- .then(function(){
- // Issue onComplete callback when the `show()` finishes
- (options.onComplete || angular.noop)(options.scope, element, options);
- startHideTimeout();
- });
-
- function startHideTimeout() {
- if (options.hideDelay) {
- hideTimeout = $timeout(service.cancel, options.hideDelay) ;
- }
- }
- }, function(reason) { showDone = true; self.deferred.reject(reason); });
- },
- cancelTimeout: function() {
- if (hideTimeout) {
- $timeout.cancel(hideTimeout);
- hideTimeout = undefined;
- }
- },
- remove: function() {
- self.cancelTimeout();
- return removeDone = $q.when(showDone).then(function() {
- var ret = element ? options.onRemove(options.scope, element, options) : true;
- return $q.when(ret).then(function() {
- if (!options.preserveScope) options.scope.$destroy();
- removeDone = true;
- });
- });
- }
- };
- }
- };
-
- /*
- * Replace `{{` and `}}` in a string (usually a template) with the actual start-/endSymbols used
- * for interpolation. This allows pre-defined templates (for components such as dialog, toast etc)
- * to continue to work in apps that use custom interpolation start-/endSymbols.
- *
- * @param {string} text The text in which to replace `{{` / `}}`
- * @returns {string} The modified string using the actual interpolation start-/endSymbols
- */
- function replaceInterpolationSymbols(text) {
- if (!text || !angular.isString(text)) return text;
- return text.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol);
- }
- }
-
-}
-
-})();
-(function(){
-"use strict";
-
- /**
- * @ngdoc module
- * @name material.core.componentRegistry
- *
- * @description
- * A component instance registration service.
- * Note: currently this as a private service in the SideNav component.
- */
- angular.module('material.core')
- .factory('$mdComponentRegistry', ComponentRegistry);
-
- /*
- * @private
- * @ngdoc factory
- * @name ComponentRegistry
- * @module material.core.componentRegistry
- *
- */
- function ComponentRegistry($log, $q) {
-
- var self;
- var instances = [ ];
- var pendings = { };
-
- return self = {
- /**
- * Used to print an error when an instance for a handle isn't found.
- */
- notFoundError: function(handle) {
- $log.error('No instance found for handle', handle);
- },
- /**
- * Return all registered instances as an array.
- */
- getInstances: function() {
- return instances;
- },
-
- /**
- * Get a registered instance.
- * @param handle the String handle to look up for a registered instance.
- */
- get: function(handle) {
- if ( !isValidID(handle) ) return null;
-
- var i, j, instance;
- for(i = 0, j = instances.length; i < j; i++) {
- instance = instances[i];
- if(instance.$$mdHandle === handle) {
- return instance;
- }
- }
- return null;
- },
-
- /**
- * Register an instance.
- * @param instance the instance to register
- * @param handle the handle to identify the instance under.
- */
- register: function(instance, handle) {
- if ( !handle ) return angular.noop;
-
- instance.$$mdHandle = handle;
- instances.push(instance);
- resolveWhen();
-
- return deregister;
-
- /**
- * Remove registration for an instance
- */
- function deregister() {
- var index = instances.indexOf(instance);
- if (index !== -1) {
- instances.splice(index, 1);
- }
- }
-
- /**
- * Resolve any pending promises for this instance
- */
- function resolveWhen() {
- var dfd = pendings[handle];
- if ( dfd ) {
- dfd.resolve( instance );
- delete pendings[handle];
- }
- }
- },
-
- /**
- * Async accessor to registered component instance
- * If not available then a promise is created to notify
- * all listeners when the instance is registered.
- */
- when : function(handle) {
- if ( isValidID(handle) ) {
- var deferred = $q.defer();
- var instance = self.get(handle);
-
- if ( instance ) {
- deferred.resolve( instance );
- } else {
- pendings[handle] = deferred;
- }
-
- return deferred.promise;
- }
- return $q.reject("Invalid `md-component-id` value.");
- }
-
- };
-
- function isValidID(handle){
- return handle && (handle !== "");
- }
-
- }
- ComponentRegistry.$inject = ["$log", "$q"];
-
-})();
-(function(){
-"use strict";
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdButtonInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-button. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdButtonInkRipple', MdButtonInkRipple);
-
- function MdButtonInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- var elementOptions = optionsForElement(element);
- return $mdInkRipple.attach(scope, element, angular.extend(elementOptions, options));
- };
-
- function optionsForElement(element) {
- if (element.hasClass('md-icon-button')) {
- return {
- isMenuItem: element.hasClass('md-menu-item'),
- fitRipple: true,
- center: true
- };
- } else {
- return {
- isMenuItem: element.hasClass('md-menu-item'),
- dimBackground: true
- }
- }
- };
- }
- MdButtonInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-})();
-(function(){
-"use strict";
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdCheckboxInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-checkbox. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdCheckboxInkRipple', MdCheckboxInkRipple);
-
- function MdCheckboxInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: true,
- dimBackground: false,
- fitRipple: true
- }, options));
- };
- }
- MdCheckboxInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-})();
-(function(){
-"use strict";
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdListInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-list. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdListInkRipple', MdListInkRipple);
-
- function MdListInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: false,
- dimBackground: true,
- outline: false,
- rippleSize: 'full'
- }, options));
- };
- }
- MdListInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-})();
-(function(){
-"use strict";
-
-angular.module('material.core')
- .factory('$mdInkRipple', InkRippleService)
- .directive('mdInkRipple', InkRippleDirective)
- .directive('mdNoInk', attrNoDirective())
- .directive('mdNoBar', attrNoDirective())
- .directive('mdNoStretch', attrNoDirective());
-
-function InkRippleDirective($mdButtonInkRipple, $mdCheckboxInkRipple) {
- return {
- controller: angular.noop,
- link: function (scope, element, attr) {
- if (attr.hasOwnProperty('mdInkRippleCheckbox')) {
- $mdCheckboxInkRipple.attach(scope, element);
- } else {
- $mdButtonInkRipple.attach(scope, element);
- }
- }
- };
-}
-InkRippleDirective.$inject = ["$mdButtonInkRipple", "$mdCheckboxInkRipple"];
-
-function InkRippleService($window, $timeout) {
-
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- if (element.controller('mdNoInk')) return angular.noop;
-
- options = angular.extend({
- colorElement: element,
- mousedown: true,
- hover: true,
- focus: true,
- center: false,
- mousedownPauseTime: 150,
- dimBackground: false,
- outline: false,
- fullRipple: true,
- isMenuItem: false,
- fitRipple: false
- }, options);
-
- var rippleSize,
- controller = element.controller('mdInkRipple') || {},
- counter = 0,
- ripples = [],
- states = [],
- isActiveExpr = element.attr('md-highlight'),
- isActive = false,
- isHeld = false,
- node = element[0],
- rippleSizeSetting = element.attr('md-ripple-size'),
- color = parseColor(element.attr('md-ink-ripple')) || parseColor(options.colorElement.length && $window.getComputedStyle(options.colorElement[0]).color || 'rgb(0, 0, 0)');
-
- switch (rippleSizeSetting) {
- case 'full':
- options.fullRipple = true;
- break;
- case 'partial':
- options.fullRipple = false;
- break;
- }
-
- // expose onInput for ripple testing
- if (options.mousedown) {
- element.on('$md.pressdown', onPressDown)
- .on('$md.pressup', onPressUp);
- }
-
- controller.createRipple = createRipple;
-
- if (isActiveExpr) {
- scope.$watch(isActiveExpr, function watchActive(newValue) {
- isActive = newValue;
- if (isActive && !ripples.length) {
- $timeout(function () { createRipple(0, 0); }, 0, false);
- }
- angular.forEach(ripples, updateElement);
- });
- }
-
- // Publish self-detach method if desired...
- return function detach() {
- element.off('$md.pressdown', onPressDown)
- .off('$md.pressup', onPressUp);
- getRippleContainer().remove();
- };
-
- /**
- * Gets the current ripple container
- * If there is no ripple container, it creates one and returns it
- *
- * @returns {angular.element} ripple container element
- */
- function getRippleContainer() {
- var container = element.data('$mdRippleContainer');
- if (container) return container;
- container = angular.element('<div class="md-ripple-container">');
- element.append(container);
- element.data('$mdRippleContainer', container);
- return container;
- }
-
- function parseColor(color) {
- if (!color) return;
- if (color.indexOf('rgba') === 0) return color.replace(/\d?\.?\d*\s*\)\s*$/, '0.1)');
- if (color.indexOf('rgb') === 0) return rgbToRGBA(color);
- if (color.indexOf('#') === 0) return hexToRGBA(color);
-
- /**
- * Converts a hex value to an rgba string
- *
- * @param {string} hex value (3 or 6 digits) to be converted
- *
- * @returns {string} rgba color with 0.1 alpha
- */
- function hexToRGBA(color) {
- var hex = color.charAt(0) === '#' ? color.substr(1) : color,
- dig = hex.length / 3,
- red = hex.substr(0, dig),
- grn = hex.substr(dig, dig),
- blu = hex.substr(dig * 2);
- if (dig === 1) {
- red += red;
- grn += grn;
- blu += blu;
- }
- return 'rgba(' + parseInt(red, 16) + ',' + parseInt(grn, 16) + ',' + parseInt(blu, 16) + ',0.1)';
- }
-
- /**
- * Converts rgb value to rgba string
- *
- * @param {string} rgb color string
- *
- * @returns {string} rgba color with 0.1 alpha
- */
- function rgbToRGBA(color) {
- return color.replace(')', ', 0.1)').replace('(', 'a(');
- }
-
- }
-
- function removeElement(elem, wait) {
- ripples.splice(ripples.indexOf(elem), 1);
- if (ripples.length === 0) {
- getRippleContainer().css({ backgroundColor: '' });
- }
- $timeout(function () { elem.remove(); }, wait, false);
- }
-
- function updateElement(elem) {
- var index = ripples.indexOf(elem),
- state = states[index] || {},
- elemIsActive = ripples.length > 1 ? false : isActive,
- elemIsHeld = ripples.length > 1 ? false : isHeld;
- if (elemIsActive || state.animating || elemIsHeld) {
- elem.addClass('md-ripple-visible');
- } else if (elem) {
- elem.removeClass('md-ripple-visible');
- if (options.outline) {
- elem.css({
- width: rippleSize + 'px',
- height: rippleSize + 'px',
- marginLeft: (rippleSize * -1) + 'px',
- marginTop: (rippleSize * -1) + 'px'
- });
- }
- removeElement(elem, options.outline ? 450 : 650);
- }
- }
-
- /**
- * Creates a ripple at the provided coordinates
- *
- * @param {number} left cursor position
- * @param {number} top cursor position
- *
- * @returns {angular.element} the generated ripple element
- */
- function createRipple(left, top) {
-
- color = parseColor(element.attr('md-ink-ripple')) || parseColor($window.getComputedStyle(options.colorElement[0]).color || 'rgb(0, 0, 0)');
-
- var container = getRippleContainer(),
- size = getRippleSize(left, top),
- css = getRippleCss(size, left, top),
- elem = getRippleElement(css),
- index = ripples.indexOf(elem),
- state = states[index] || {};
-
- rippleSize = size;
-
- state.animating = true;
-
- $timeout(function () {
- if (options.dimBackground) {
- container.css({ backgroundColor: color });
- }
- elem.addClass('md-ripple-placed md-ripple-scaled');
- if (options.outline) {
- elem.css({
- borderWidth: (size * 0.5) + 'px',
- marginLeft: (size * -0.5) + 'px',
- marginTop: (size * -0.5) + 'px'
- });
- } else {
- elem.css({ left: '50%', top: '50%' });
- }
- updateElement(elem);
- $timeout(function () {
- state.animating = false;
- updateElement(elem);
- }, (options.outline ? 450 : 225), false);
- }, 0, false);
-
- return elem;
-
- /**
- * Creates the ripple element with the provided css
- *
- * @param {object} css properties to be applied
- *
- * @returns {angular.element} the generated ripple element
- */
- function getRippleElement(css) {
- var elem = angular.element('<div class="md-ripple" data-counter="' + counter++ + '">');
- ripples.unshift(elem);
- states.unshift({ animating: true });
- container.append(elem);
- css && elem.css(css);
- return elem;
- }
-
- /**
- * Calculate the ripple size
- *
- * @returns {number} calculated ripple diameter
- */
- function getRippleSize(left, top) {
- var width = container.prop('offsetWidth'),
- height = container.prop('offsetHeight'),
- multiplier, size, rect;
- if (options.isMenuItem) {
- size = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
- } else if (options.outline) {
- rect = node.getBoundingClientRect();
- left -= rect.left;
- top -= rect.top;
- width = Math.max(left, width - left);
- height = Math.max(top, height - top);
- size = 2 * Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
- } else {
- multiplier = options.fullRipple ? 1.1 : 0.8;
- size = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2)) * multiplier;
- if (options.fitRipple) {
- size = Math.min(height, width, size);
- }
- }
- return size;
- }
-
- /**
- * Generates the ripple css
- *
- * @param {number} the diameter of the ripple
- * @param {number} the left cursor offset
- * @param {number} the top cursor offset
- *
- * @returns {{backgroundColor: string, borderColor: string, width: string, height: string}}
- */
- function getRippleCss(size, left, top) {
- var rect = node.getBoundingClientRect(),
- css = {
- backgroundColor: rgbaToRGB(color),
- borderColor: rgbaToRGB(color),
- width: size + 'px',
- height: size + 'px'
- };
-
- if (options.outline) {
- css.width = 0;
- css.height = 0;
- } else {
- css.marginLeft = css.marginTop = (size * -0.5) + 'px';
- }
-
- if (options.center) {
- css.left = css.top = '50%';
- } else {
- css.left = Math.round((left - rect.left) / container.prop('offsetWidth') * 100) + '%';
- css.top = Math.round((top - rect.top) / container.prop('offsetHeight') * 100) + '%';
- }
-
- return css;
-
- /**
- * Converts rgba string to rgb, removing the alpha value
- *
- * @param {string} rgba color
- *
- * @returns {string} rgb color
- */
- function rgbaToRGB(color) {
- return color.replace('rgba', 'rgb').replace(/,[^\),]+\)/, ')');
- }
- }
- }
-
- /**
- * Handles user input start and stop events
- *
- */
- function onPressDown(ev) {
- if (!isRippleAllowed()) return;
-
- createRipple(ev.pointer.x, ev.pointer.y);
- isHeld = true;
- }
- function onPressUp() {
- isHeld = false;
- var ripple = ripples[ ripples.length - 1 ];
- $timeout(function () { updateElement(ripple); }, 0, false);
- }
-
- /**
- * Determines if the ripple is allowed
- *
- * @returns {boolean} true if the ripple is allowed, false if not
- */
- function isRippleAllowed() {
- var parent = node.parentNode;
- var grandparent = parent && parent.parentNode;
- var ancestor = grandparent && grandparent.parentNode;
- return !isDisabled(node) && !isDisabled(parent) && !isDisabled(grandparent) && !isDisabled(ancestor);
- function isDisabled (elem) {
- return elem && elem.hasAttribute && elem.hasAttribute('disabled');
- }
- }
-
- }
-}
-InkRippleService.$inject = ["$window", "$timeout"];
-
-/**
- * noink/nobar/nostretch directive: make any element that has one of
- * these attributes be given a controller, so that other directives can
- * `require:` these and see if there is a `no<xxx>` parent attribute.
- *
- * @usage
- * <hljs lang="html">
- * <parent md-no-ink>
- * <child detect-no>
- * </child>
- * </parent>
- * </hljs>
- *
- * <hljs lang="js">
- * myApp.directive('detectNo', function() {
- * return {
- * require: ['^?mdNoInk', ^?mdNoBar'],
- * link: function(scope, element, attr, ctrls) {
- * var noinkCtrl = ctrls[0];
- * var nobarCtrl = ctrls[1];
- * if (noInkCtrl) {
- * alert("the md-no-ink flag has been specified on an ancestor!");
- * }
- * if (nobarCtrl) {
- * alert("the md-no-bar flag has been specified on an ancestor!");
- * }
- * }
- * };
- * });
- * </hljs>
- */
-function attrNoDirective() {
- return function() {
- return {
- controller: angular.noop
- };
- };
-}
-
-})();
-(function(){
-"use strict";
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdTabInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-tabs. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdTabInkRipple', MdTabInkRipple);
-
- function MdTabInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: false,
- dimBackground: true,
- outline: false,
- rippleSize: 'full'
- }, options));
- };
- }
- MdTabInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-})();
-(function(){
-"use strict";
-
-angular.module('material.core.theming.palette', [])
-.constant('$mdColorPalette', {
- 'red': {
- '50': '#ffebee',
- '100': '#ffcdd2',
- '200': '#ef9a9a',
- '300': '#e57373',
- '400': '#ef5350',
- '500': '#f44336',
- '600': '#e53935',
- '700': '#d32f2f',
- '800': '#c62828',
- '900': '#b71c1c',
- 'A100': '#ff8a80',
- 'A200': '#ff5252',
- 'A400': '#ff1744',
- 'A700': '#d50000',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 700 A200 A400 A700'
- },
- 'pink': {
- '50': '#fce4ec',
- '100': '#f8bbd0',
- '200': '#f48fb1',
- '300': '#f06292',
- '400': '#ec407a',
- '500': '#e91e63',
- '600': '#d81b60',
- '700': '#c2185b',
- '800': '#ad1457',
- '900': '#880e4f',
- 'A100': '#ff80ab',
- 'A200': '#ff4081',
- 'A400': '#f50057',
- 'A700': '#c51162',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 A200 A400 A700'
- },
- 'purple': {
- '50': '#f3e5f5',
- '100': '#e1bee7',
- '200': '#ce93d8',
- '300': '#ba68c8',
- '400': '#ab47bc',
- '500': '#9c27b0',
- '600': '#8e24aa',
- '700': '#7b1fa2',
- '800': '#6a1b9a',
- '900': '#4a148c',
- 'A100': '#ea80fc',
- 'A200': '#e040fb',
- 'A400': '#d500f9',
- 'A700': '#aa00ff',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200 A400 A700'
- },
- 'deep-purple': {
- '50': '#ede7f6',
- '100': '#d1c4e9',
- '200': '#b39ddb',
- '300': '#9575cd',
- '400': '#7e57c2',
- '500': '#673ab7',
- '600': '#5e35b1',
- '700': '#512da8',
- '800': '#4527a0',
- '900': '#311b92',
- 'A100': '#b388ff',
- 'A200': '#7c4dff',
- 'A400': '#651fff',
- 'A700': '#6200ea',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200'
- },
- 'indigo': {
- '50': '#e8eaf6',
- '100': '#c5cae9',
- '200': '#9fa8da',
- '300': '#7986cb',
- '400': '#5c6bc0',
- '500': '#3f51b5',
- '600': '#3949ab',
- '700': '#303f9f',
- '800': '#283593',
- '900': '#1a237e',
- 'A100': '#8c9eff',
- 'A200': '#536dfe',
- 'A400': '#3d5afe',
- 'A700': '#304ffe',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200 A400'
- },
- 'blue': {
- '50': '#e3f2fd',
- '100': '#bbdefb',
- '200': '#90caf9',
- '300': '#64b5f6',
- '400': '#42a5f5',
- '500': '#2196f3',
- '600': '#1e88e5',
- '700': '#1976d2',
- '800': '#1565c0',
- '900': '#0d47a1',
- 'A100': '#82b1ff',
- 'A200': '#448aff',
- 'A400': '#2979ff',
- 'A700': '#2962ff',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 700 A200 A400 A700'
- },
- 'light-blue': {
- '50': '#e1f5fe',
- '100': '#b3e5fc',
- '200': '#81d4fa',
- '300': '#4fc3f7',
- '400': '#29b6f6',
- '500': '#03a9f4',
- '600': '#039be5',
- '700': '#0288d1',
- '800': '#0277bd',
- '900': '#01579b',
- 'A100': '#80d8ff',
- 'A200': '#40c4ff',
- 'A400': '#00b0ff',
- 'A700': '#0091ea',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900 A700',
- 'contrastStrongLightColors': '500 600 700 800 A700'
- },
- 'cyan': {
- '50': '#e0f7fa',
- '100': '#b2ebf2',
- '200': '#80deea',
- '300': '#4dd0e1',
- '400': '#26c6da',
- '500': '#00bcd4',
- '600': '#00acc1',
- '700': '#0097a7',
- '800': '#00838f',
- '900': '#006064',
- 'A100': '#84ffff',
- 'A200': '#18ffff',
- 'A400': '#00e5ff',
- 'A700': '#00b8d4',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700 800'
- },
- 'teal': {
- '50': '#e0f2f1',
- '100': '#b2dfdb',
- '200': '#80cbc4',
- '300': '#4db6ac',
- '400': '#26a69a',
- '500': '#009688',
- '600': '#00897b',
- '700': '#00796b',
- '800': '#00695c',
- '900': '#004d40',
- 'A100': '#a7ffeb',
- 'A200': '#64ffda',
- 'A400': '#1de9b6',
- 'A700': '#00bfa5',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700'
- },
- 'green': {
- '50': '#e8f5e9',
- '100': '#c8e6c9',
- '200': '#a5d6a7',
- '300': '#81c784',
- '400': '#66bb6a',
- '500': '#4caf50',
- '600': '#43a047',
- '700': '#388e3c',
- '800': '#2e7d32',
- '900': '#1b5e20',
- 'A100': '#b9f6ca',
- 'A200': '#69f0ae',
- 'A400': '#00e676',
- 'A700': '#00c853',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700'
- },
- 'light-green': {
- '50': '#f1f8e9',
- '100': '#dcedc8',
- '200': '#c5e1a5',
- '300': '#aed581',
- '400': '#9ccc65',
- '500': '#8bc34a',
- '600': '#7cb342',
- '700': '#689f38',
- '800': '#558b2f',
- '900': '#33691e',
- 'A100': '#ccff90',
- 'A200': '#b2ff59',
- 'A400': '#76ff03',
- 'A700': '#64dd17',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '800 900',
- 'contrastStrongLightColors': '800 900'
- },
- 'lime': {
- '50': '#f9fbe7',
- '100': '#f0f4c3',
- '200': '#e6ee9c',
- '300': '#dce775',
- '400': '#d4e157',
- '500': '#cddc39',
- '600': '#c0ca33',
- '700': '#afb42b',
- '800': '#9e9d24',
- '900': '#827717',
- 'A100': '#f4ff81',
- 'A200': '#eeff41',
- 'A400': '#c6ff00',
- 'A700': '#aeea00',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '900',
- 'contrastStrongLightColors': '900'
- },
- 'yellow': {
- '50': '#fffde7',
- '100': '#fff9c4',
- '200': '#fff59d',
- '300': '#fff176',
- '400': '#ffee58',
- '500': '#ffeb3b',
- '600': '#fdd835',
- '700': '#fbc02d',
- '800': '#f9a825',
- '900': '#f57f17',
- 'A100': '#ffff8d',
- 'A200': '#ffff00',
- 'A400': '#ffea00',
- 'A700': '#ffd600',
- 'contrastDefaultColor': 'dark'
- },
- 'amber': {
- '50': '#fff8e1',
- '100': '#ffecb3',
- '200': '#ffe082',
- '300': '#ffd54f',
- '400': '#ffca28',
- '500': '#ffc107',
- '600': '#ffb300',
- '700': '#ffa000',
- '800': '#ff8f00',
- '900': '#ff6f00',
- 'A100': '#ffe57f',
- 'A200': '#ffd740',
- 'A400': '#ffc400',
- 'A700': '#ffab00',
- 'contrastDefaultColor': 'dark'
- },
- 'orange': {
- '50': '#fff3e0',
- '100': '#ffe0b2',
- '200': '#ffcc80',
- '300': '#ffb74d',
- '400': '#ffa726',
- '500': '#ff9800',
- '600': '#fb8c00',
- '700': '#f57c00',
- '800': '#ef6c00',
- '900': '#e65100',
- 'A100': '#ffd180',
- 'A200': '#ffab40',
- 'A400': '#ff9100',
- 'A700': '#ff6d00',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '800 900',
- 'contrastStrongLightColors': '800 900'
- },
- 'deep-orange': {
- '50': '#fbe9e7',
- '100': '#ffccbc',
- '200': '#ffab91',
- '300': '#ff8a65',
- '400': '#ff7043',
- '500': '#ff5722',
- '600': '#f4511e',
- '700': '#e64a19',
- '800': '#d84315',
- '900': '#bf360c',
- 'A100': '#ff9e80',
- 'A200': '#ff6e40',
- 'A400': '#ff3d00',
- 'A700': '#dd2c00',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100 A200',
- 'contrastStrongLightColors': '500 600 700 800 900 A400 A700'
- },
- 'brown': {
- '50': '#efebe9',
- '100': '#d7ccc8',
- '200': '#bcaaa4',
- '300': '#a1887f',
- '400': '#8d6e63',
- '500': '#795548',
- '600': '#6d4c41',
- '700': '#5d4037',
- '800': '#4e342e',
- '900': '#3e2723',
- 'A100': '#d7ccc8',
- 'A200': '#bcaaa4',
- 'A400': '#8d6e63',
- 'A700': '#5d4037',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200',
- 'contrastStrongLightColors': '300 400'
- },
- 'grey': {
- '50': '#fafafa',
- '100': '#f5f5f5',
- '200': '#eeeeee',
- '300': '#e0e0e0',
- '400': '#bdbdbd',
- '500': '#9e9e9e',
- '600': '#757575',
- '700': '#616161',
- '800': '#424242',
- '900': '#212121',
- '1000': '#000000',
- 'A100': '#ffffff',
- 'A200': '#eeeeee',
- 'A400': '#bdbdbd',
- 'A700': '#616161',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '600 700 800 900'
- },
- 'blue-grey': {
- '50': '#eceff1',
- '100': '#cfd8dc',
- '200': '#b0bec5',
- '300': '#90a4ae',
- '400': '#78909c',
- '500': '#607d8b',
- '600': '#546e7a',
- '700': '#455a64',
- '800': '#37474f',
- '900': '#263238',
- 'A100': '#cfd8dc',
- 'A200': '#b0bec5',
- 'A400': '#78909c',
- 'A700': '#455a64',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300',
- 'contrastStrongLightColors': '400 500'
- }
-});
-
-})();
-(function(){
-"use strict";
-
-angular.module('material.core.theming', ['material.core.theming.palette'])
- .directive('mdTheme', ThemingDirective)
- .directive('mdThemable', ThemableDirective)
- .provider('$mdTheming', ThemingProvider)
- .run(generateThemes);
-
-/**
- * @ngdoc provider
- * @name $mdThemingProvider
- * @module material.core
- *
- * @description Provider to configure the `$mdTheming` service.
- */
-
-/**
- * @ngdoc method
- * @name $mdThemingProvider#setDefaultTheme
- * @param {string} themeName Default theme name to be applied to elements. Default value is `default`.
- */
-
-/**
- * @ngdoc method
- * @name $mdThemingProvider#alwaysWatchTheme
- * @param {boolean} watch Whether or not to always watch themes for changes and re-apply
- * classes when they change. Default is `false`. Enabling can reduce performance.
- */
-
-/* Some Example Valid Theming Expressions
- * =======================================
- *
- * Intention group expansion: (valid for primary, accent, warn, background)
- *
- * {{primary-100}} - grab shade 100 from the primary palette
- * {{primary-100-0.7}} - grab shade 100, apply opacity of 0.7
- * {{primary-hue-1}} - grab the shade assigned to hue-1 from the primary palette
- * {{primary-hue-1-0.7}} - apply 0.7 opacity to primary-hue-1
- * {{primary-color}} - Generates .md-hue-1, .md-hue-2, .md-hue-3 with configured shades set for each hue
- * {{primary-color-0.7}} - Apply 0.7 opacity to each of the above rules
- * {{primary-contrast}} - Generates .md-hue-1, .md-hue-2, .md-hue-3 with configured contrast (ie. text) color shades set for each hue
- * {{primary-contrast-0.7}} - Apply 0.7 opacity to each of the above rules
- *
- * Foreground expansion: Applies rgba to black/white foreground text
- *
- * {{foreground-1}} - used for primary text
- * {{foreground-2}} - used for secondary text/divider
- * {{foreground-3}} - used for disabled text
- * {{foreground-4}} - used for dividers
- *
- */
-
-// In memory generated CSS rules; registered by theme.name
-var GENERATED = { };
-
-// In memory storage of defined themes and color palettes (both loaded by CSS, and user specified)
-var PALETTES;
-var THEMES;
-
-var DARK_FOREGROUND = {
- name: 'dark',
- '1': 'rgba(0,0,0,0.87)',
- '2': 'rgba(0,0,0,0.54)',
- '3': 'rgba(0,0,0,0.26)',
- '4': 'rgba(0,0,0,0.12)'
-};
-var LIGHT_FOREGROUND = {
- name: 'light',
- '1': 'rgba(255,255,255,1.0)',
- '2': 'rgba(255,255,255,0.7)',
- '3': 'rgba(255,255,255,0.3)',
- '4': 'rgba(255,255,255,0.12)'
-};
-
-var DARK_SHADOW = '1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)';
-var LIGHT_SHADOW = '';
-
-var DARK_CONTRAST_COLOR = colorToRgbaArray('rgba(0,0,0,0.87)');
-var LIGHT_CONTRAST_COLOR = colorToRgbaArray('rgba(255,255,255,0.87');
-var STRONG_LIGHT_CONTRAST_COLOR = colorToRgbaArray('rgb(255,255,255)');
-
-var THEME_COLOR_TYPES = ['primary', 'accent', 'warn', 'background'];
-var DEFAULT_COLOR_TYPE = 'primary';
-
-// A color in a theme will use these hues by default, if not specified by user.
-var LIGHT_DEFAULT_HUES = {
- 'accent': {
- 'default': 'A200',
- 'hue-1': 'A100',
- 'hue-2': 'A400',
- 'hue-3': 'A700'
- },
- 'background': {
- 'default': 'A100',
- 'hue-1': '300',
- 'hue-2': '800',
- 'hue-3': '900'
- }
-};
-
-var DARK_DEFAULT_HUES = {
- 'background': {
- 'default': '800',
- 'hue-1': '300',
- 'hue-2': '600',
- 'hue-3': '900'
- }
-};
-THEME_COLOR_TYPES.forEach(function(colorType) {
- // Color types with unspecified default hues will use these default hue values
- var defaultDefaultHues = {
- 'default': '500',
- 'hue-1': '300',
- 'hue-2': '800',
- 'hue-3': 'A100'
- };
- if (!LIGHT_DEFAULT_HUES[colorType]) LIGHT_DEFAULT_HUES[colorType] = defaultDefaultHues;
- if (!DARK_DEFAULT_HUES[colorType]) DARK_DEFAULT_HUES[colorType] = defaultDefaultHues;
-});
-
-var VALID_HUE_VALUES = [
- '50', '100', '200', '300', '400', '500', '600',
- '700', '800', '900', 'A100', 'A200', 'A400', 'A700'
-];
-
-function ThemingProvider($mdColorPalette) {
- PALETTES = { };
- THEMES = { };
-
- var themingProvider;
- var defaultTheme = 'default';
- var alwaysWatchTheme = false;
-
- // Load JS Defined Palettes
- angular.extend(PALETTES, $mdColorPalette);
-
- // Default theme defined in core.js
-
- ThemingService.$inject = ["$rootScope", "$log"];
- return themingProvider = {
- definePalette: definePalette,
- extendPalette: extendPalette,
- theme: registerTheme,
-
- setDefaultTheme: function(theme) {
- defaultTheme = theme;
- },
- alwaysWatchTheme: function(alwaysWatch) {
- alwaysWatchTheme = alwaysWatch;
- },
- $get: ThemingService,
- _LIGHT_DEFAULT_HUES: LIGHT_DEFAULT_HUES,
- _DARK_DEFAULT_HUES: DARK_DEFAULT_HUES,
- _PALETTES: PALETTES,
- _THEMES: THEMES,
- _parseRules: parseRules,
- _rgba: rgba
- };
-
- // Example: $mdThemingProvider.definePalette('neonRed', { 50: '#f5fafa', ... });
- function definePalette(name, map) {
- map = map || {};
- PALETTES[name] = checkPaletteValid(name, map);
- return themingProvider;
- }
-
- // Returns an new object which is a copy of a given palette `name` with variables from
- // `map` overwritten
- // Example: var neonRedMap = $mdThemingProvider.extendPalette('red', { 50: '#f5fafafa' });
- function extendPalette(name, map) {
- return checkPaletteValid(name, angular.extend({}, PALETTES[name] || {}, map) );
- }
-
- // Make sure that palette has all required hues
- function checkPaletteValid(name, map) {
- var missingColors = VALID_HUE_VALUES.filter(function(field) {
- return !map[field];
- });
- if (missingColors.length) {
- throw new Error("Missing colors %1 in palette %2!"
- .replace('%1', missingColors.join(', '))
- .replace('%2', name));
- }
-
- return map;
- }
-
- // Register a theme (which is a collection of color palettes to use with various states
- // ie. warn, accent, primary )
- // Optionally inherit from an existing theme
- // $mdThemingProvider.theme('custom-theme').primaryPalette('red');
- function registerTheme(name, inheritFrom) {
- if (THEMES[name]) return THEMES[name];
-
- inheritFrom = inheritFrom || 'default';
-
- var parentTheme = typeof inheritFrom === 'string' ? THEMES[inheritFrom] : inheritFrom;
- var theme = new Theme(name);
-
- if (parentTheme) {
- angular.forEach(parentTheme.colors, function(color, colorType) {
- theme.colors[colorType] = {
- name: color.name,
- // Make sure a COPY of the hues is given to the child color,
- // not the same reference.
- hues: angular.extend({}, color.hues)
- };
- });
- }
- THEMES[name] = theme;
-
- return theme;
- }
-
- function Theme(name) {
- var self = this;
- self.name = name;
- self.colors = {};
-
- self.dark = setDark;
- setDark(false);
-
- function setDark(isDark) {
- isDark = arguments.length === 0 ? true : !!isDark;
-
- // If no change, abort
- if (isDark === self.isDark) return;
-
- self.isDark = isDark;
-
- self.foregroundPalette = self.isDark ? LIGHT_FOREGROUND : DARK_FOREGROUND;
- self.foregroundShadow = self.isDark ? DARK_SHADOW : LIGHT_SHADOW;
-
- // Light and dark themes have different default hues.
- // Go through each existing color type for this theme, and for every
- // hue value that is still the default hue value from the previous light/dark setting,
- // set it to the default hue value from the new light/dark setting.
- var newDefaultHues = self.isDark ? DARK_DEFAULT_HUES : LIGHT_DEFAULT_HUES;
- var oldDefaultHues = self.isDark ? LIGHT_DEFAULT_HUES : DARK_DEFAULT_HUES;
- angular.forEach(newDefaultHues, function(newDefaults, colorType) {
- var color = self.colors[colorType];
- var oldDefaults = oldDefaultHues[colorType];
- if (color) {
- for (var hueName in color.hues) {
- if (color.hues[hueName] === oldDefaults[hueName]) {
- color.hues[hueName] = newDefaults[hueName];
- }
- }
- }
- });
-
- return self;
- }
-
- THEME_COLOR_TYPES.forEach(function(colorType) {
- var defaultHues = (self.isDark ? DARK_DEFAULT_HUES : LIGHT_DEFAULT_HUES)[colorType];
- self[colorType + 'Palette'] = function setPaletteType(paletteName, hues) {
- var color = self.colors[colorType] = {
- name: paletteName,
- hues: angular.extend({}, defaultHues, hues)
- };
-
- Object.keys(color.hues).forEach(function(name) {
- if (!defaultHues[name]) {
- throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4"
- .replace('%1', name)
- .replace('%2', self.name)
- .replace('%3', paletteName)
- .replace('%4', Object.keys(defaultHues).join(', '))
- );
- }
- });
- Object.keys(color.hues).map(function(key) {
- return color.hues[key];
- }).forEach(function(hueValue) {
- if (VALID_HUE_VALUES.indexOf(hueValue) == -1) {
- throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5"
- .replace('%1', hueValue)
- .replace('%2', self.name)
- .replace('%3', colorType)
- .replace('%4', paletteName)
- .replace('%5', VALID_HUE_VALUES.join(', '))
- );
- }
- });
- return self;
- };
-
- self[colorType + 'Color'] = function() {
- var args = Array.prototype.slice.call(arguments);
- console.warn('$mdThemingProviderTheme.' + colorType + 'Color() has been deprecated. ' +
- 'Use $mdThemingProviderTheme.' + colorType + 'Palette() instead.');
- return self[colorType + 'Palette'].apply(self, args);
- };
- });
- }
-
- /**
- * @ngdoc service
- * @name $mdTheming
- *
- * @description
- *
- * Service that makes an element apply theming related classes to itself.
- *
- * ```js
- * app.directive('myFancyDirective', function($mdTheming) {
- * return {
- * restrict: 'e',
- * link: function(scope, el, attrs) {
- * $mdTheming(el);
- * }
- * };
- * });
- * ```
- * @param {el=} element to apply theming to
- */
- /* @ngInject */
- function ThemingService($rootScope, $log) {
-
- applyTheme.inherit = function(el, parent) {
- var ctrl = parent.controller('mdTheme');
-
- var attrThemeValue = el.attr('md-theme-watch');
- if ( (alwaysWatchTheme || angular.isDefined(attrThemeValue)) && attrThemeValue != 'false') {
- var deregisterWatch = $rootScope.$watch(function() {
- return ctrl && ctrl.$mdTheme || defaultTheme;
- }, changeTheme);
- el.on('$destroy', deregisterWatch);
- } else {
- var theme = ctrl && ctrl.$mdTheme || defaultTheme;
- changeTheme(theme);
- }
-
- function changeTheme(theme) {
- if (!registered(theme)) {
- $log.warn('Attempted to use unregistered theme \'' + theme + '\'. ' +
- 'Register it with $mdThemingProvider.theme().');
- }
- var oldTheme = el.data('$mdThemeName');
- if (oldTheme) el.removeClass('md-' + oldTheme +'-theme');
- el.addClass('md-' + theme + '-theme');
- el.data('$mdThemeName', theme);
- }
- };
-
- applyTheme.THEMES = angular.extend({}, THEMES);
- applyTheme.defaultTheme = function() { return defaultTheme; };
- applyTheme.registered = registered;
-
- return applyTheme;
-
- function registered(themeName) {
- if (themeName === undefined || themeName === '') return true;
- return applyTheme.THEMES[themeName] !== undefined;
- }
-
- function applyTheme(scope, el) {
- // Allow us to be invoked via a linking function signature.
- if (el === undefined) {
- el = scope;
- scope = undefined;
- }
- if (scope === undefined) {
- scope = $rootScope;
- }
- applyTheme.inherit(el, el);
- }
- }
-}
-ThemingProvider.$inject = ["$mdColorPalette"];
-
-function ThemingDirective($mdTheming, $interpolate, $log) {
- return {
- priority: 100,
- link: {
- pre: function(scope, el, attrs) {
- var ctrl = {
- $setTheme: function(theme) {
- if (!$mdTheming.registered(theme)) {
- $log.warn('attempted to use unregistered theme \'' + theme + '\'');
- }
- ctrl.$mdTheme = theme;
- }
- };
- el.data('$mdThemeController', ctrl);
- ctrl.$setTheme($interpolate(attrs.mdTheme)(scope));
- attrs.$observe('mdTheme', ctrl.$setTheme);
- }
- }
- };
-}
-ThemingDirective.$inject = ["$mdTheming", "$interpolate", "$log"];
-
-function ThemableDirective($mdTheming) {
- return $mdTheming;
-}
-ThemableDirective.$inject = ["$mdTheming"];
-
-function parseRules(theme, colorType, rules) {
- checkValidPalette(theme, colorType);
-
- rules = rules.replace(/THEME_NAME/g, theme.name);
- var generatedRules = [];
- var color = theme.colors[colorType];
-
- var themeNameRegex = new RegExp('.md-' + theme.name + '-theme', 'g');
- // Matches '{{ primary-color }}', etc
- var hueRegex = new RegExp('(\'|")?{{\\s*(' + colorType + ')-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|\')?','g');
- var simpleVariableRegex = /'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow)-?(\d\.?\d*)?\s*\}\}'?"?/g;
- var palette = PALETTES[color.name];
-
- // find and replace simple variables where we use a specific hue, not an entire palette
- // eg. "{{primary-100}}"
- //\(' + THEME_COLOR_TYPES.join('\|') + '\)'
- rules = rules.replace(simpleVariableRegex, function(match, colorType, hue, opacity) {
- if (colorType === 'foreground') {
- if (hue == 'shadow') {
- return theme.foregroundShadow;
- } else {
- return theme.foregroundPalette[hue] || theme.foregroundPalette['1'];
- }
- }
- if (hue.indexOf('hue') === 0) {
- hue = theme.colors[colorType].hues[hue];
- }
- return rgba( (PALETTES[ theme.colors[colorType].name ][hue] || '').value, opacity );
- });
-
- // For each type, generate rules for each hue (ie. default, md-hue-1, md-hue-2, md-hue-3)
- angular.forEach(color.hues, function(hueValue, hueName) {
- var newRule = rules
- .replace(hueRegex, function(match, _, colorType, hueType, opacity) {
- return rgba(palette[hueValue][hueType === 'color' ? 'value' : 'contrast'], opacity);
- });
- if (hueName !== 'default') {
- newRule = newRule.replace(themeNameRegex, '.md-' + theme.name + '-theme.md-' + hueName);
- }
-
- // Don't apply a selector rule to the default theme, making it easier to override
- // styles of the base-component
- if (theme.name == 'default') {
- newRule = newRule.replace(/\.md-default-theme/g, '');
- }
- generatedRules.push(newRule);
- });
-
- return generatedRules;
-}
-
-// Generate our themes at run time given the state of THEMES and PALETTES
-function generateThemes($injector) {
-
- var head = document.getElementsByTagName('head')[0];
- var firstChild = head ? head.firstElementChild : null;
- var themeCss = $injector.has('$MD_THEME_CSS') ? $injector.get('$MD_THEME_CSS') : '';
-
- if ( !firstChild ) return;
- if (themeCss.length === 0) return; // no rules, so no point in running this expensive task
-
- // Expose contrast colors for palettes to ensure that text is always readable
- angular.forEach(PALETTES, sanitizePalette);
-
- // MD_THEME_CSS is a string generated by the build process that includes all the themable
- // components as templates
-
- // Break the CSS into individual rules
- var rulesByType = {};
- var rules = themeCss
- .split(/\}(?!(\}|'|"|;))/)
- .filter(function(rule) { return rule && rule.length; })
- .map(function(rule) { return rule.trim() + '}'; });
-
-
- var ruleMatchRegex = new RegExp('md-(' + THEME_COLOR_TYPES.join('|') + ')', 'g');
-
- THEME_COLOR_TYPES.forEach(function(type) {
- rulesByType[type] = '';
- });
-
-
- // Sort the rules based on type, allowing us to do color substitution on a per-type basis
- rules.forEach(function(rule) {
- var match = rule.match(ruleMatchRegex);
- // First: test that if the rule has '.md-accent', it goes into the accent set of rules
- for (var i = 0, type; type = THEME_COLOR_TYPES[i]; i++) {
- if (rule.indexOf('.md-' + type) > -1) {
- return rulesByType[type] += rule;
- }
- }
-
- // If no eg 'md-accent' class is found, try to just find 'accent' in the rule and guess from
- // there
- for (i = 0; type = THEME_COLOR_TYPES[i]; i++) {
- if (rule.indexOf(type) > -1) {
- return rulesByType[type] += rule;
- }
- }
-
- // Default to the primary array
- return rulesByType[DEFAULT_COLOR_TYPE] += rule;
- });
-
- // For each theme, use the color palettes specified for
- // `primary`, `warn` and `accent` to generate CSS rules.
-
- angular.forEach(THEMES, function(theme) {
- if ( !GENERATED[theme.name] ) {
-
-
- THEME_COLOR_TYPES.forEach(function(colorType) {
- var styleStrings = parseRules(theme, colorType, rulesByType[colorType]);
- while (styleStrings.length) {
- var style = document.createElement('style');
- style.setAttribute('type', 'text/css');
- style.appendChild(document.createTextNode(styleStrings.shift()));
- head.insertBefore(style, firstChild);
- }
- });
-
-
- if (theme.colors.primary.name == theme.colors.accent.name) {
- console.warn("$mdThemingProvider: Using the same palette for primary and" +
- " accent. This violates the material design spec.");
- }
-
- GENERATED[theme.name] = true;
- }
- });
-
-
- // *************************
- // Internal functions
- // *************************
-
- // The user specifies a 'default' contrast color as either light or dark,
- // then explicitly lists which hues are the opposite contrast (eg. A100 has dark, A200 has light)
- function sanitizePalette(palette) {
- var defaultContrast = palette.contrastDefaultColor;
- var lightColors = palette.contrastLightColors || [];
- var strongLightColors = palette.contrastStrongLightColors || [];
- var darkColors = palette.contrastDarkColors || [];
-
- // These colors are provided as space-separated lists
- if (typeof lightColors === 'string') lightColors = lightColors.split(' ');
- if (typeof strongLightColors === 'string') strongLightColors = strongLightColors.split(' ');
- if (typeof darkColors === 'string') darkColors = darkColors.split(' ');
-
- // Cleanup after ourselves
- delete palette.contrastDefaultColor;
- delete palette.contrastLightColors;
- delete palette.contrastStrongLightColors;
- delete palette.contrastDarkColors;
-
- // Change { 'A100': '#fffeee' } to { 'A100': { value: '#fffeee', contrast:DARK_CONTRAST_COLOR }
- angular.forEach(palette, function(hueValue, hueName) {
- if (angular.isObject(hueValue)) return; // Already converted
- // Map everything to rgb colors
- var rgbValue = colorToRgbaArray(hueValue);
- if (!rgbValue) {
- throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected."
- .replace('%1', hueValue)
- .replace('%2', palette.name)
- .replace('%3', hueName));
- }
-
- palette[hueName] = {
- value: rgbValue,
- contrast: getContrastColor()
- };
- function getContrastColor() {
- if (defaultContrast === 'light') {
- if (darkColors.indexOf(hueName) > -1) {
- return DARK_CONTRAST_COLOR;
- } else {
- return strongLightColors.indexOf(hueName) > -1 ? STRONG_LIGHT_CONTRAST_COLOR
- : LIGHT_CONTRAST_COLOR;
- }
- } else {
- if (lightColors.indexOf(hueName) > -1) {
- return strongLightColors.indexOf(hueName) > -1 ? STRONG_LIGHT_CONTRAST_COLOR
- : LIGHT_CONTRAST_COLOR;
- } else {
- return DARK_CONTRAST_COLOR;
- }
- }
- }
- });
- }
-
-
-}
-generateThemes.$inject = ["$injector"];
-
-function checkValidPalette(theme, colorType) {
- // If theme attempts to use a palette that doesnt exist, throw error
- if (!PALETTES[ (theme.colors[colorType] || {}).name ]) {
- throw new Error(
- "You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3"
- .replace('%1', theme.name)
- .replace('%2', colorType)
- .replace('%3', Object.keys(PALETTES).join(', '))
- );
- }
-}
-
-function colorToRgbaArray(clr) {
- if (angular.isArray(clr) && clr.length == 3) return clr;
- if (/^rgb/.test(clr)) {
- return clr.replace(/(^\s*rgba?\(|\)\s*$)/g, '').split(',').map(function(value, i) {
- return i == 3 ? parseFloat(value, 10) : parseInt(value, 10);
- });
- }
- if (clr.charAt(0) == '#') clr = clr.substring(1);
- if (!/^([a-fA-F0-9]{3}){1,2}$/g.test(clr)) return;
-
- var dig = clr.length / 3;
- var red = clr.substr(0, dig);
- var grn = clr.substr(dig, dig);
- var blu = clr.substr(dig * 2);
- if (dig === 1) {
- red += red;
- grn += grn;
- blu += blu;
- }
- return [parseInt(red, 16), parseInt(grn, 16), parseInt(blu, 16)];
-}
-
-function rgba(rgbArray, opacity) {
- if ( !rgbArray ) return "rgb('0,0,0')";
-
- if (rgbArray.length == 4) {
- rgbArray = angular.copy(rgbArray);
- opacity ? rgbArray.pop() : opacity = rgbArray.pop();
- }
- return opacity && (typeof opacity == 'number' || (typeof opacity == 'string' && opacity.length)) ?
- 'rgba(' + rgbArray.join(',') + ',' + opacity + ')' :
- 'rgb(' + rgbArray.join(',') + ')';
-}
-
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.autocomplete
- */
-/*
- * @see js folder for autocomplete implementation
- */
-angular.module('material.components.autocomplete', [
- 'material.core',
- 'material.components.icon'
-]);
-
-})();
-(function(){
-"use strict";
-
-/*
- * @ngdoc module
- * @name material.components.backdrop
- * @description Backdrop
- */
-
-/**
- * @ngdoc directive
- * @name mdBackdrop
- * @module material.components.backdrop
- *
- * @restrict E
- *
- * @description
- * `<md-backdrop>` is a backdrop element used by other components, such as dialog and bottom sheet.
- * Apply class `opaque` to make the backdrop use the theme backdrop color.
- *
- */
-
-angular.module('material.components.backdrop', [
- 'material.core'
-])
- .directive('mdBackdrop', BackdropDirective);
-
-function BackdropDirective($mdTheming) {
- return $mdTheming;
-}
-BackdropDirective.$inject = ["$mdTheming"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.bottomSheet
- * @description
- * BottomSheet
- */
-angular.module('material.components.bottomSheet', [
- 'material.core',
- 'material.components.backdrop'
-])
- .directive('mdBottomSheet', MdBottomSheetDirective)
- .provider('$mdBottomSheet', MdBottomSheetProvider);
-
-function MdBottomSheetDirective() {
- return {
- restrict: 'E'
- };
-}
-
-/**
- * @ngdoc service
- * @name $mdBottomSheet
- * @module material.components.bottomSheet
- *
- * @description
- * `$mdBottomSheet` opens a bottom sheet over the app and provides a simple promise API.
- *
- * ## Restrictions
- *
- * - The bottom sheet's template must have an outer `<md-bottom-sheet>` element.
- * - Add the `md-grid` class to the bottom sheet for a grid layout.
- * - Add the `md-list` class to the bottom sheet for a list layout.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-controller="MyController">
- * <md-button ng-click="openBottomSheet()">
- * Open a Bottom Sheet!
- * </md-button>
- * </div>
- * </hljs>
- * <hljs lang="js">
- * var app = angular.module('app', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdBottomSheet) {
- * $scope.openBottomSheet = function() {
- * $mdBottomSheet.show({
- * template: '<md-bottom-sheet>Hello!</md-bottom-sheet>'
- * });
- * };
- * });
- * </hljs>
- */
-
- /**
- * @ngdoc method
- * @name $mdBottomSheet#show
- *
- * @description
- * Show a bottom sheet with the specified options.
- *
- * @param {object} options An options object, with the following properties:
- *
- * - `templateUrl` - `{string=}`: The url of an html template file that will
- * be used as the content of the bottom sheet. Restrictions: the template must
- * have an outer `md-bottom-sheet` element.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual
- * template string.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope.
- * This scope will be destroyed when the bottom sheet is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `controller` - `{string=}`: The controller to associate with this bottom sheet.
- * - `locals` - `{string=}`: An object containing key/value pairs. The keys will
- * be used as names of values to inject into the controller. For example,
- * `locals: {three: 3}` would inject `three` into the controller with the value
- * of 3.
- * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
- * the location of the click will be used as the starting point for the opening animation
- * of the the dialog.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
- * and the bottom sheet will not open until the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the bottom sheet to. The `parent` may be a `function`, `string`,
- * `object`, or null. Defaults to appending to the body of the root element (or the root element) of the application.
- * e.g. angular.element(document.getElementById('content')) or "#content"
- * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the bottom sheet is open.
- * Default true.
- *
- * @returns {promise} A promise that can be resolved with `$mdBottomSheet.hide()` or
- * rejected with `$mdBottomSheet.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdBottomSheet#hide
- *
- * @description
- * Hide the existing bottom sheet and resolve the promise returned from
- * `$mdBottomSheet.show()`. This call will close the most recently opened/current bottomsheet (if any).
- *
- * @param {*=} response An argument for the resolved promise.
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdBottomSheet#cancel
- *
- * @description
- * Hide the existing bottom sheet and reject the promise returned from
- * `$mdBottomSheet.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- */
-
-function MdBottomSheetProvider($$interimElementProvider) {
- // how fast we need to flick down to close the sheet, pixels/ms
- var CLOSING_VELOCITY = 0.5;
- var PADDING = 80; // same as css
-
- bottomSheetDefaults.$inject = ["$animate", "$mdConstant", "$mdUtil", "$timeout", "$compile", "$mdTheming", "$mdBottomSheet", "$rootElement", "$mdGesture"];
- return $$interimElementProvider('$mdBottomSheet')
- .setDefaults({
- methods: ['disableParentScroll', 'escapeToClose', 'targetEvent'],
- options: bottomSheetDefaults
- });
-
- /* @ngInject */
- function bottomSheetDefaults($animate, $mdConstant, $mdUtil, $timeout, $compile, $mdTheming, $mdBottomSheet, $rootElement, $mdGesture) {
- var backdrop;
-
- return {
- themable: true,
- targetEvent: null,
- onShow: onShow,
- onRemove: onRemove,
- escapeToClose: true,
- disableParentScroll: true
- };
-
-
- function onShow(scope, element, options) {
-
- element = $mdUtil.extractElementByName(element, 'md-bottom-sheet');
-
- // Add a backdrop that will close on click
- backdrop = $compile('<md-backdrop class="md-opaque md-bottom-sheet-backdrop">')(scope);
- backdrop.on('click', function() {
- $timeout($mdBottomSheet.cancel);
- });
- $mdTheming.inherit(backdrop, options.parent);
-
- $animate.enter(backdrop, options.parent, null);
-
- var bottomSheet = new BottomSheet(element, options.parent);
- options.bottomSheet = bottomSheet;
-
- // Give up focus on calling item
- options.targetEvent && angular.element(options.targetEvent.target).blur();
- $mdTheming.inherit(bottomSheet.element, options.parent);
-
- if (options.disableParentScroll) {
- options.lastOverflow = options.parent.css('overflow');
- options.parent.css('overflow', 'hidden');
- }
-
- return $animate.enter(bottomSheet.element, options.parent)
- .then(function() {
- var focusable = angular.element(
- element[0].querySelector('button') ||
- element[0].querySelector('a') ||
- element[0].querySelector('[ng-click]')
- );
- focusable.focus();
-
- if (options.escapeToClose) {
- options.rootElementKeyupCallback = function(e) {
- if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
- $timeout($mdBottomSheet.cancel);
- }
- };
- $rootElement.on('keyup', options.rootElementKeyupCallback);
- }
- });
-
- }
-
- function onRemove(scope, element, options) {
-
- var bottomSheet = options.bottomSheet;
-
- $animate.leave(backdrop);
- return $animate.leave(bottomSheet.element).then(function() {
- if (options.disableParentScroll) {
- options.parent.css('overflow', options.lastOverflow);
- delete options.lastOverflow;
- }
-
- bottomSheet.cleanup();
-
- // Restore focus
- options.targetEvent && angular.element(options.targetEvent.target).focus();
- });
- }
-
- /**
- * BottomSheet class to apply bottom-sheet behavior to an element
- */
- function BottomSheet(element, parent) {
- var deregister = $mdGesture.register(parent, 'drag', { horizontal: false });
- parent.on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- return {
- element: element,
- cleanup: function cleanup() {
- deregister();
- parent.off('$md.dragstart', onDragStart)
- .off('$md.drag', onDrag)
- .off('$md.dragend', onDragEnd);
- }
- };
-
- function onDragStart(ev) {
- // Disable transitions on transform so that it feels fast
- element.css($mdConstant.CSS.TRANSITION_DURATION, '0ms');
- }
-
- function onDrag(ev) {
- var transform = ev.pointer.distanceY;
- if (transform < 5) {
- // Slow down drag when trying to drag up, and stop after PADDING
- transform = Math.max(-PADDING, transform / 2);
- }
- element.css($mdConstant.CSS.TRANSFORM, 'translate3d(0,' + (PADDING + transform) + 'px,0)');
- }
-
- function onDragEnd(ev) {
- if (ev.pointer.distanceY > 0 &&
- (ev.pointer.distanceY > 20 || Math.abs(ev.pointer.velocityY) > CLOSING_VELOCITY)) {
- var distanceRemaining = element.prop('offsetHeight') - ev.pointer.distanceY;
- var transitionDuration = Math.min(distanceRemaining / ev.pointer.velocityY * 0.75, 500);
- element.css($mdConstant.CSS.TRANSITION_DURATION, transitionDuration + 'ms');
- $timeout($mdBottomSheet.cancel);
- } else {
- element.css($mdConstant.CSS.TRANSITION_DURATION, '');
- element.css($mdConstant.CSS.TRANSFORM, '');
- }
- }
- }
-
- }
-
-}
-MdBottomSheetProvider.$inject = ["$$interimElementProvider"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.button
- * @description
- *
- * Button
- */
-angular
- .module('material.components.button', [ 'material.core' ])
- .directive('mdButton', MdButtonDirective);
-
-/**
- * @ngdoc directive
- * @name mdButton
- * @module material.components.button
- *
- * @restrict E
- *
- * @description
- * `<md-button>` is a button directive with optional ink ripples (default enabled).
- *
- * If you supply a `href` or `ng-href` attribute, it will become an `<a>` element. Otherwise, it will
- * become a `<button>` element. As per the [Material Design specifications](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the FAB button background is filled with the accent color [by default]. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {boolean=} md-no-ink If present, disable ripple ink effects.
- * @param {expression=} ng-disabled En/Disable based on the expression
- * @param {string=} md-ripple-size Overrides the default ripple size logic. Options: `full`, `partial`, `auto`
- * @param {string=} aria-label Adds alternative text to button for accessibility, useful for icon buttons.
- * If no default text is found, a warning will be logged.
- *
- * @usage
- *
- * Regular buttons:
- *
- * <hljs lang="html">
- * <md-button> Flat Button </md-button>
- * <md-button href="http://google.com"> Flat link </md-button>
- * <md-button class="md-raised"> Raised Button </md-button>
- * <md-button ng-disabled="true"> Disabled Button </md-button>
- * <md-button>
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * Register Now
- * </md-button>
- * </hljs>
- *
- * FAB buttons:
- *
- * <hljs lang="html">
- * <md-button class="md-fab" aria-label="FAB">
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * </md-button>
- * <!-- mini-FAB -->
- * <md-button class="md-fab md-mini" aria-label="Mini FAB">
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * </md-button>
- * <!-- Button with SVG Icon -->
- * <md-button class="md-icon-button" aria-label="Custom Icon Button">
- * <md-icon md-svg-icon="path/to/your.svg"></md-icon>
- * </md-button>
- * </hljs>
- */
-function MdButtonDirective($mdButtonInkRipple, $mdTheming, $mdAria, $timeout) {
-
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- template: getTemplate,
- link: postLink
- };
-
- function isAnchor(attr) {
- return angular.isDefined(attr.href) || angular.isDefined(attr.ngHref) || angular.isDefined(attr.ngLink) || angular.isDefined(attr.uiSref);
- }
-
- function getTemplate(element, attr) {
- return isAnchor(attr) ?
- '<a class="md-button" ng-transclude></a>' :
- '<button class="md-button" ng-transclude></button>';
- }
-
- function postLink(scope, element, attr) {
- var node = element[0];
- $mdTheming(element);
- $mdButtonInkRipple.attach(scope, element);
-
- var elementHasText = node.textContent.trim();
- if (!elementHasText) {
- $mdAria.expect(element, 'aria-label');
- }
-
- // For anchor elements, we have to set tabindex manually when the
- // element is disabled
- if (isAnchor(attr) && angular.isDefined(attr.ngDisabled) ) {
- scope.$watch(attr.ngDisabled, function(isDisabled) {
- element.attr('tabindex', isDisabled ? -1 : 0);
- });
- }
-
- // disabling click event when disabled is true
- element.on('click', function(e){
- if (attr.disabled === true) {
- e.preventDefault();
- e.stopImmediatePropagation();
- }
- });
-
- // restrict focus styles to the keyboard
- scope.mouseActive = false;
- element.on('mousedown', function() {
- scope.mouseActive = true;
- $timeout(function(){
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { element.addClass('md-focused'); }
- })
- .on('blur', function() { element.removeClass('md-focused'); });
- }
-
-}
-MdButtonDirective.$inject = ["$mdButtonInkRipple", "$mdTheming", "$mdAria", "$timeout"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.card
- *
- * @description
- * Card components.
- */
-angular.module('material.components.card', [
- 'material.core'
-])
- .directive('mdCard', mdCardDirective);
-
-
-
-/**
- * @ngdoc directive
- * @name mdCard
- * @module material.components.card
- *
- * @restrict E
- *
- * @description
- * The `<md-card>` directive is a container element used within `<md-content>` containers.
- *
- * An image included as a direct descendant will fill the card's width, while the `<md-card-content>`
- * container will wrap text content and provide padding. An `<md-card-footer>` element can be
- * optionally included to put content flush against the bottom edge of the card.
- *
- * Action buttons can be included in an element with the `.md-actions` class, also used in `md-dialog`.
- * You can then position buttons using layout attributes.
- *
- * Cards have constant width and variable heights; where the maximum height is limited to what can
- * fit within a single view on a platform, but it can temporarily expand as needed.
- *
- * @usage
- * ###Card with optional footer
- * <hljs lang="html">
- * <md-card>
- * <img src="card-image.png" class="md-card-image" alt="image caption">
- * <md-card-content>
- * <h2>Card headline</h2>
- * <p>Card content</p>
- * </md-card-content>
- * <md-card-footer>
- * Card footer
- * </md-card-footer>
- * </md-card>
- * </hljs>
- *
- * ###Card with actions
- * <hljs lang="html">
- * <md-card>
- * <img src="card-image.png" class="md-card-image" alt="image caption">
- * <md-card-content>
- * <h2>Card headline</h2>
- * <p>Card content</p>
- * </md-card-content>
- * <div class="md-actions" layout="row" layout-align="end center">
- * <md-button>Action 1</md-button>
- * <md-button>Action 2</md-button>
- * </div>
- * </md-card>
- * </hljs>
- *
- */
-function mdCardDirective($mdTheming) {
- return {
- restrict: 'E',
- link: function($scope, $element, $attr) {
- $mdTheming($element);
- }
- };
-}
-mdCardDirective.$inject = ["$mdTheming"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.checkbox
- * @description Checkbox module!
- */
-angular
- .module('material.components.checkbox', ['material.core'])
- .directive('mdCheckbox', MdCheckboxDirective);
-
-/**
- * @ngdoc directive
- * @name mdCheckbox
- * @module material.components.checkbox
- * @restrict E
- *
- * @description
- * The checkbox directive is used like the normal [angular checkbox](https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D).
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the checkbox is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {expression=} ng-true-value The value to which the expression should be set when selected.
- * @param {expression=} ng-false-value The value to which the expression should be set when not selected.
- * @param {string=} ng-change Angular expression to be executed when input changes due to user interaction with the input element.
- * @param {boolean=} md-no-ink Use of attribute indicates use of ripple ink effects
- * @param {string=} aria-label Adds label to checkbox for accessibility.
- * Defaults to checkbox's text. If no default text is found, a warning will be logged.
- *
- * @usage
- * <hljs lang="html">
- * <md-checkbox ng-model="isChecked" aria-label="Finished?">
- * Finished ?
- * </md-checkbox>
- *
- * <md-checkbox md-no-ink ng-model="hasInk" aria-label="No Ink Effects">
- * No Ink Effects
- * </md-checkbox>
- *
- * <md-checkbox ng-disabled="true" ng-model="isDisabled" aria-label="Disabled">
- * Disabled
- * </md-checkbox>
- *
- * </hljs>
- *
- */
-function MdCheckboxDirective(inputDirective, $mdInkRipple, $mdAria, $mdConstant, $mdTheming, $mdUtil, $timeout) {
- inputDirective = inputDirective[0];
- var CHECKED_CSS = 'md-checked';
-
- return {
- restrict: 'E',
- transclude: true,
- require: '?ngModel',
- priority:210, // Run before ngAria
- template:
- '<div class="md-container" md-ink-ripple md-ink-ripple-checkbox>' +
- '<div class="md-icon"></div>' +
- '</div>' +
- '<div ng-transclude class="md-label"></div>',
- compile: compile
- };
-
- // **********************************************************
- // Private Methods
- // **********************************************************
-
- function compile (tElement, tAttrs) {
-
- tAttrs.type = 'checkbox';
- tAttrs.tabindex = tAttrs.tabindex || '0';
- tElement.attr('role', tAttrs.type);
-
- return function postLink(scope, element, attr, ngModelCtrl) {
- ngModelCtrl = ngModelCtrl || $mdUtil.fakeNgModel();
- $mdTheming(element);
-
- if (attr.ngChecked) {
- scope.$watch(
- scope.$eval.bind(scope, attr.ngChecked),
- ngModelCtrl.$setViewValue.bind(ngModelCtrl)
- );
- }
- $$watchExpr('ngDisabled', 'tabindex', {
- true: '-1',
- false: attr.tabindex
- });
- $mdAria.expectWithText(element, 'aria-label');
-
- // Reuse the original input[type=checkbox] directive from Angular core.
- // This is a bit hacky as we need our own event listener and own render
- // function.
- inputDirective.link.pre(scope, {
- on: angular.noop,
- 0: {}
- }, attr, [ngModelCtrl]);
-
- scope.mouseActive = false;
- element.on('click', listener)
- .on('keypress', keypressHandler)
- .on('mousedown', function() {
- scope.mouseActive = true;
- $timeout(function(){
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { element.addClass('md-focused'); }
- })
- .on('blur', function() { element.removeClass('md-focused'); });
-
- ngModelCtrl.$render = render;
-
- function $$watchExpr(expr, htmlAttr, valueOpts) {
- if (attr[expr]) {
- scope.$watch(attr[expr], function(val) {
- if (valueOpts[val]) {
- element.attr(htmlAttr, valueOpts[val]);
- }
- });
- }
- }
-
- function keypressHandler(ev) {
- var keyCode = ev.which || ev.keyCode;
- if (keyCode === $mdConstant.KEY_CODE.SPACE || keyCode === $mdConstant.KEY_CODE.ENTER) {
- ev.preventDefault();
- if (!element.hasClass('md-focused')) { element.addClass('md-focused'); }
- listener(ev);
- }
- }
- function listener(ev) {
- if (element[0].hasAttribute('disabled')) return;
-
- scope.$apply(function() {
- // Toggle the checkbox value...
- var viewValue = attr.ngChecked ? attr.checked : !ngModelCtrl.$viewValue;
-
- ngModelCtrl.$setViewValue( viewValue, ev && ev.type);
- ngModelCtrl.$render();
- });
- }
-
- function render() {
- if(ngModelCtrl.$viewValue) {
- element.addClass(CHECKED_CSS);
- } else {
- element.removeClass(CHECKED_CSS);
- }
- }
- };
- }
-}
-MdCheckboxDirective.$inject = ["inputDirective", "$mdInkRipple", "$mdAria", "$mdConstant", "$mdTheming", "$mdUtil", "$timeout"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.chips
- */
-/*
- * @see js folder for chips implementation
- */
-angular.module('material.components.chips', [
- 'material.core',
- 'material.components.autocomplete'
-]);
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.content
- *
- * @description
- * Scrollable content
- */
-angular.module('material.components.content', [
- 'material.core'
-])
- .directive('mdContent', mdContentDirective);
-
-/**
- * @ngdoc directive
- * @name mdContent
- * @module material.components.content
- *
- * @restrict E
- *
- * @description
- * The `<md-content>` directive is a container element useful for scrollable content
- *
- * @usage
- *
- * - Add the `[layout-padding]` attribute to make the content padded.
- *
- * <hljs lang="html">
- * <md-content layout-padding>
- * Lorem ipsum dolor sit amet, ne quod novum mei.
- * </md-content>
- * </hljs>
- *
- */
-
-function mdContentDirective($mdTheming) {
- return {
- restrict: 'E',
- controller: ['$scope', '$element', ContentController],
- link: function(scope, element, attr) {
- var node = element[0];
-
- $mdTheming(element);
- scope.$broadcast('$mdContentLoaded', element);
-
- iosScrollFix(element[0]);
- }
- };
-
- function ContentController($scope, $element) {
- this.$scope = $scope;
- this.$element = $element;
- }
-}
-mdContentDirective.$inject = ["$mdTheming"];
-
-function iosScrollFix(node) {
- // IOS FIX:
- // If we scroll where there is no more room for the webview to scroll,
- // by default the webview itself will scroll up and down, this looks really
- // bad. So if we are scrolling to the very top or bottom, add/subtract one
- angular.element(node).on('$md.pressdown', function(ev) {
- // Only touch events
- if (ev.pointer.type !== 't') return;
- // Don't let a child content's touchstart ruin it for us.
- if (ev.$materialScrollFixed) return;
- ev.$materialScrollFixed = true;
-
- if (node.scrollTop === 0) {
- node.scrollTop = 1;
- } else if (node.scrollHeight === node.scrollTop + node.offsetHeight) {
- node.scrollTop -= 1;
- }
- });
-}
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.dialog
- */
-angular.module('material.components.dialog', [
- 'material.core',
- 'material.components.backdrop'
-])
- .directive('mdDialog', MdDialogDirective)
- .provider('$mdDialog', MdDialogProvider);
-
-function MdDialogDirective($$rAF, $mdTheming) {
- return {
- restrict: 'E',
- link: function(scope, element, attr) {
- $mdTheming(element);
- $$rAF(function() {
- var content = element[0].querySelector('md-dialog-content');
- if (content && content.scrollHeight > content.clientHeight) {
- element.addClass('md-content-overflow');
- }
- });
- }
- };
-}
-MdDialogDirective.$inject = ["$$rAF", "$mdTheming"];
-
-/**
- * @ngdoc service
- * @name $mdDialog
- * @module material.components.dialog
- *
- * @description
- * `$mdDialog` opens a dialog over the app to inform users about critical information or require
- * them to make decisions. There are two approaches for setup: a simple promise API
- * and regular object syntax.
- *
- * ## Restrictions
- *
- * - The dialog is always given an isolate scope.
- * - The dialog's template must have an outer `<md-dialog>` element.
- * Inside, use an `<md-dialog-content>` element for the dialog's content, and use
- * an element with class `md-actions` for the dialog's actions.
- * - Dialogs must cover the entire application to keep interactions inside of them.
- * Use the `parent` option to change where dialogs are appended.
- *
- * ## Sizing
- * - Complex dialogs can be sized with `flex="percentage"`, i.e. `flex="66"`.
- * - Default max-width is 80% of the `rootElement` or `parent`.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-app="demoApp" ng-controller="EmployeeController">
- * <div>
- * <md-button ng-click="showAlert()" class="md-raised md-warn">
- * Employee Alert!
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="showDialog($event)" class="md-raised">
- * Custom Dialog
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="closeAlert()" ng-disabled="!hasAlert()" class="md-raised">
- * Close Alert
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="showGreeting($event)" class="md-raised md-primary" >
- * Greet Employee
- * </md-button>
- * </div>
- * </div>
- * </hljs>
- *
- * ### JavaScript: object syntax
- * <hljs lang="js">
- * (function(angular, undefined){
- * "use strict";
- *
- * angular
- * .module('demoApp', ['ngMaterial'])
- * .controller('AppCtrl', AppController);
- *
- * function AppController($scope, $mdDialog) {
- * var alert;
- * $scope.showAlert = showAlert;
- * $scope.showDialog = showDialog;
- * $scope.items = [1, 2, 3];
- *
- * // Internal method
- * function showAlert() {
- * alert = $mdDialog.alert({
- * title: 'Attention',
- * content: 'This is an example of how easy dialogs can be!',
- * ok: 'Close'
- * });
- *
- * $mdDialog
- * .show( alert )
- * .finally(function() {
- * alert = undefined;
- * });
- * }
- *
- * function showDialog($event) {
- * var parentEl = angular.element(document.body);
- * $mdDialog.show({
- * parent: parentEl,
- * targetEvent: $event,
- * template:
- * '<md-dialog aria-label="List dialog">' +
- * ' <md-dialog-content>'+
- * ' <md-list>'+
- * ' <md-list-item ng-repeat="item in items">'+
- * ' <p>Number {{item}}</p>' +
- * ' </md-item>'+
- * ' </md-list>'+
- * ' </md-dialog-content>' +
- * ' <div class="md-actions">' +
- * ' <md-button ng-click="closeDialog()" class="md-primary">' +
- * ' Close Dialog' +
- * ' </md-button>' +
- * ' </div>' +
- * '</md-dialog>',
- * locals: {
- * items: $scope.items
- * },
- * controller: DialogController
- * });
- * function DialogController($scope, $mdDialog, items) {
- * $scope.items = items;
- * $scope.closeDialog = function() {
- * $mdDialog.hide();
- * }
- * }
- * }
- * }
- * })(angular);
- * </hljs>
- *
- * ### JavaScript: promise API syntax, custom dialog template
- * <hljs lang="js">
- * (function(angular, undefined){
- * "use strict";
- *
- * angular
- * .module('demoApp', ['ngMaterial'])
- * .controller('EmployeeController', EmployeeEditor)
- * .controller('GreetingController', GreetingController);
- *
- * // Fictitious Employee Editor to show how to use simple and complex dialogs.
- *
- * function EmployeeEditor($scope, $mdDialog) {
- * var alert;
- *
- * $scope.showAlert = showAlert;
- * $scope.closeAlert = closeAlert;
- * $scope.showGreeting = showCustomGreeting;
- *
- * $scope.hasAlert = function() { return !!alert };
- * $scope.userName = $scope.userName || 'Bobby';
- *
- * // Dialog #1 - Show simple alert dialog and cache
- * // reference to dialog instance
- *
- * function showAlert() {
- * alert = $mdDialog.alert()
- * .title('Attention, ' + $scope.userName)
- * .content('This is an example of how easy dialogs can be!')
- * .ok('Close');
- *
- * $mdDialog
- * .show( alert )
- * .finally(function() {
- * alert = undefined;
- * });
- * }
- *
- * // Close the specified dialog instance and resolve with 'finished' flag
- * // Normally this is not needed, just use '$mdDialog.hide()' to close
- * // the most recent dialog popup.
- *
- * function closeAlert() {
- * $mdDialog.hide( alert, "finished" );
- * alert = undefined;
- * }
- *
- * // Dialog #2 - Demonstrate more complex dialogs construction and popup.
- *
- * function showCustomGreeting($event) {
- * $mdDialog.show({
- * targetEvent: $event,
- * template:
- * '<md-dialog>' +
- *
- * ' <md-dialog-content>Hello {{ employee }}!</md-dialog-content>' +
- *
- * ' <div class="md-actions">' +
- * ' <md-button ng-click="closeDialog()" class="md-primary">' +
- * ' Close Greeting' +
- * ' </md-button>' +
- * ' </div>' +
- * '</md-dialog>',
- * controller: 'GreetingController',
- * onComplete: afterShowAnimation,
- * locals: { employee: $scope.userName }
- * });
- *
- * // When the 'enter' animation finishes...
- *
- * function afterShowAnimation(scope, element, options) {
- * // post-show code here: DOM element focus, etc.
- * }
- * }
- *
- * // Dialog #3 - Demonstrate use of ControllerAs and passing $scope to dialog
- * // Here we used ng-controller="GreetingController as vm" and
- * // $scope.vm === <controller instance>
- *
- * function showCustomGreeting() {
- *
- * $mdDialog.show({
- * clickOutsideToClose: true,
- *
- * scope: $scope, // use parent scope in template
- * preserveScope: true, // do not forget this if use parent scope
-
- * // Since GreetingController is instantiated with ControllerAs syntax
- * // AND we are passing the parent '$scope' to the dialog, we MUST
- * // use 'vm.<xxx>' in the template markup
- *
- * template: '<md-dialog>' +
- * ' <md-dialog-content>' +
- * ' Hi There {{vm.employee}}' +
- * ' </md-dialog-content>' +
- * '</md-dialog>',
- *
- * controller: function DialogController($scope, $mdDialog) {
- * $scope.closeDialog = function() {
- * $mdDialog.hide();
- * }
- * }
- * });
- * }
- *
- * }
- *
- * // Greeting controller used with the more complex 'showCustomGreeting()' custom dialog
- *
- * function GreetingController($scope, $mdDialog, employee) {
- * // Assigned from construction <code>locals</code> options...
- * $scope.employee = employee;
- *
- * $scope.closeDialog = function() {
- * // Easily hides most recent dialog shown...
- * // no specific instance reference is needed.
- * $mdDialog.hide();
- * };
- * }
- *
- * })(angular);
- * </hljs>
- */
-
- /**
- * @ngdoc method
- * @name $mdDialog#alert
- *
- * @description
- * Builds a preconfigured dialog with the specified message.
- *
- * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
- *
- * - $mdDialogPreset#title(string) - sets title to string
- * - $mdDialogPreset#content(string) - sets content / message to string
- * - $mdDialogPreset#ok(string) - sets okay button text to string
- * - $mdDialogPreset#theme(string) - sets the theme of the dialog
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdDialog#confirm
- *
- * @description
- * Builds a preconfigured dialog with the specified message. You can call show and the promise returned
- * will be resolved only if the user clicks the confirm action on the dialog.
- *
- * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
- *
- * Additionally, it supports the following methods:
- *
- * - $mdDialogPreset#title(string) - sets title to string
- * - $mdDialogPreset#content(string) - sets content / message to string
- * - $mdDialogPreset#ok(string) - sets okay button text to string
- * - $mdDialogPreset#cancel(string) - sets cancel button text to string
- * - $mdDialogPreset#theme(string) - sets the theme of the dialog
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#show
- *
- * @description
- * Show a dialog with the specified options.
- *
- * @param {object} optionsOrPreset Either provide an `$mdDialogPreset` returned from `alert()`, and
- * `confirm()`, or an options object with the following properties:
- * - `templateUrl` - `{string=}`: The url of a template that will be used as the content
- * of the dialog.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual template string.
- * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
- * the location of the click will be used as the starting point for the opening animation
- * of the the dialog.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified,
- * it will create a new isolate scope.
- * This scope will be destroyed when the dialog is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the dialog is open.
- * Default true.
- * - `hasBackdrop` - `{boolean=}`: Whether there should be an opaque backdrop behind the dialog.
- * Default true.
- * - `clickOutsideToClose` - `{boolean=}`: Whether the user can click outside the dialog to
- * close it. Default false.
- * - `escapeToClose` - `{boolean=}`: Whether the user can press escape to close the dialog.
- * Default true.
- * - `focusOnOpen` - `{boolean=}`: An option to override focus behavior on open. Only disable if
- * focusing some other way, as focus management is required for dialogs to be accessible.
- * Defaults to true.
- * - `controller` - `{string=}`: The controller to associate with the dialog. The controller
- * will be injected with the local `$mdDialog`, which passes along a scope for the dialog.
- * - `locals` - `{object=}`: An object containing key/value pairs. The keys will be used as names
- * of values to inject into the controller. For example, `locals: {three: 3}` would inject
- * `three` into the controller, with the value 3. If `bindToController` is true, they will be
- * copied to the controller instead.
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in.
- * These values will not be available until after initialization.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values, and the
- * dialog will not open until all of the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the dialog to. Defaults to appending
- * to the root element of the application.
- * - `onComplete` `{function=}`: Callback function used to announce when the show() action is
- * finished.
- *
- * @returns {promise} A promise that can be resolved with `$mdDialog.hide()` or
- * rejected with `$mdDialog.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#hide
- *
- * @description
- * Hide an existing dialog and resolve the promise returned from `$mdDialog.show()`.
- *
- * @param {*=} response An argument for the resolved promise.
- *
- * @returns {promise} A promise that is resolved when the dialog has been closed.
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#cancel
- *
- * @description
- * Hide an existing dialog and reject the promise returned from `$mdDialog.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- * @returns {promise} A promise that is resolved when the dialog has been closed.
- */
-
-function MdDialogProvider($$interimElementProvider) {
-
- var alertDialogMethods = ['title', 'content', 'ariaLabel', 'ok'];
-
- advancedDialogOptions.$inject = ["$mdDialog", "$mdTheming"];
- dialogDefaultOptions.$inject = ["$mdAria", "$document", "$mdUtil", "$mdConstant", "$mdTheming", "$mdDialog", "$timeout", "$rootElement", "$animate", "$$rAF", "$q"];
- return $$interimElementProvider('$mdDialog')
- .setDefaults({
- methods: ['disableParentScroll', 'hasBackdrop', 'clickOutsideToClose', 'escapeToClose', 'targetEvent', 'parent'],
- options: dialogDefaultOptions
- })
- .addPreset('alert', {
- methods: ['title', 'content', 'ariaLabel', 'ok', 'theme'],
- options: advancedDialogOptions
- })
- .addPreset('confirm', {
- methods: ['title', 'content', 'ariaLabel', 'ok', 'cancel', 'theme'],
- options: advancedDialogOptions
- });
-
- /* @ngInject */
- function advancedDialogOptions($mdDialog, $mdTheming) {
- return {
- template: [
- '<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}">',
- '<md-dialog-content role="document" tabIndex="-1">',
- '<h2 class="md-title">{{ dialog.title }}</h2>',
- '<p>{{ dialog.content }}</p>',
- '</md-dialog-content>',
- '<div class="md-actions">',
- '<md-button ng-if="dialog.$type == \'confirm\'"' +
- ' ng-click="dialog.abort()" class="md-primary">',
- '{{ dialog.cancel }}',
- '</md-button>',
- '<md-button ng-click="dialog.hide()" class="md-primary">',
- '{{ dialog.ok }}',
- '</md-button>',
- '</div>',
- '</md-dialog>'
- ].join(''),
- controller: function mdDialogCtrl() {
- this.hide = function() {
- $mdDialog.hide(true);
- };
- this.abort = function() {
- $mdDialog.cancel();
- };
- },
- controllerAs: 'dialog',
- bindToController: true,
- theme: $mdTheming.defaultTheme()
- };
- }
-
- /* @ngInject */
- function dialogDefaultOptions($mdAria, $document, $mdUtil, $mdConstant, $mdTheming, $mdDialog, $timeout, $rootElement, $animate, $$rAF, $q) {
- return {
- hasBackdrop: true,
- isolateScope: true,
- onShow: onShow,
- onRemove: onRemove,
- clickOutsideToClose: false,
- escapeToClose: true,
- targetEvent: null,
- focusOnOpen: true,
- disableParentScroll: true,
- transformTemplate: function(template) {
- return '<div class="md-dialog-container">' + template + '</div>';
- }
- };
-
- function trapFocus(ev) {
- var dialog = document.querySelector('md-dialog');
-
- if (dialog && !dialog.contains(ev.target)) {
- ev.stopImmediatePropagation();
- dialog.focus();
- }
- }
-
- // On show method for dialogs
- function onShow(scope, element, options) {
- angular.element($document[0].body).addClass('md-dialog-is-showing');
- element = $mdUtil.extractElementByName(element, 'md-dialog');
-
- // Incase the user provides a raw dom element, always wrap it in jqLite
- options.parent = angular.element(options.parent);
-
- options.popInTarget = angular.element((options.targetEvent || {}).target);
- var closeButton = findCloseButton();
-
- if (options.hasBackdrop) {
- // Fix for IE 10
- var computeFrom = (options.parent[0] == $document[0].body && $document[0].documentElement
- && $document[0].documentElement.scrollTop) ? angular.element($document[0].documentElement) : options.parent;
- var parentOffset = computeFrom.prop('scrollTop');
- options.backdrop = angular.element('<md-backdrop class="md-dialog-backdrop md-opaque">');
- options.backdrop.css('top', parentOffset +'px');
- $mdTheming.inherit(options.backdrop, options.parent);
- $animate.enter(options.backdrop, options.parent);
- element.css('top', parentOffset +'px');
- }
-
- var role = 'dialog',
- elementToFocus = closeButton;
-
- if (options.$type === 'alert') {
- role = 'alertdialog';
- elementToFocus = element.find('md-dialog-content');
- }
-
- configureAria(element.find('md-dialog'), role, options);
-
- document.addEventListener('focus', trapFocus, true);
-
- if (options.disableParentScroll) {
- options.lastOverflow = options.parent.css('overflow');
- options.parent.css('overflow', 'hidden');
- }
-
- return dialogPopIn(
- element,
- options.parent,
- options.popInTarget && options.popInTarget.length && options.popInTarget
- )
- .then(function() {
-
- applyAriaToSiblings(element, true);
-
- if (options.escapeToClose) {
- options.rootElementKeyupCallback = function(e) {
- if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
- $timeout($mdDialog.cancel);
- }
- };
- $rootElement.on('keyup', options.rootElementKeyupCallback);
- }
-
- if (options.clickOutsideToClose) {
- options.dialogClickOutsideCallback = function(ev) {
- // Only close if we click the flex container outside the backdrop
- if (ev.target === element[0]) {
- $timeout($mdDialog.cancel);
- }
- };
- element.on('click', options.dialogClickOutsideCallback);
- }
-
- if (options.focusOnOpen) {
- elementToFocus.focus();
- }
- });
-
-
- function findCloseButton() {
- //If no element with class dialog-close, try to find the last
- //button child in md-actions and assume it is a close button
- var closeButton = element[0].querySelector('.dialog-close');
- if (!closeButton) {
- var actionButtons = element[0].querySelectorAll('.md-actions button');
- closeButton = actionButtons[ actionButtons.length - 1 ];
- }
- return angular.element(closeButton);
- }
-
- }
-
- // On remove function for all dialogs
- function onRemove(scope, element, options) {
- angular.element($document[0].body).removeClass('md-dialog-is-showing');
-
- if (options.backdrop) {
- $animate.leave(options.backdrop);
- }
- if (options.disableParentScroll) {
- options.parent.css('overflow', options.lastOverflow);
- delete options.lastOverflow;
- }
- if (options.escapeToClose) {
- $rootElement.off('keyup', options.rootElementKeyupCallback);
- }
- if (options.clickOutsideToClose) {
- element.off('click', options.dialogClickOutsideCallback);
- }
-
- applyAriaToSiblings(element, false);
-
- document.removeEventListener('focus', trapFocus, true);
-
- return dialogPopOut(
- element,
- options.parent,
- options.popInTarget && options.popInTarget.length && options.popInTarget
- ).then(function() {
- element.remove();
- options.popInTarget && options.popInTarget.focus();
- });
-
- }
-
- /**
- * Inject ARIA-specific attributes appropriate for Dialogs
- */
- function configureAria(element, role, options) {
-
- element.attr({
- 'role': role,
- 'tabIndex': '-1'
- });
-
- var dialogContent = element.find('md-dialog-content');
- if (dialogContent.length === 0){
- dialogContent = element;
- }
-
- var dialogId = element.attr('id') || ('dialog_' + $mdUtil.nextUid());
- dialogContent.attr('id', dialogId);
- element.attr('aria-describedby', dialogId);
-
- if (options.ariaLabel) {
- $mdAria.expect(element, 'aria-label', options.ariaLabel);
- }
- else {
- $mdAria.expectAsync(element, 'aria-label', function() {
- var words = dialogContent.text().split(/\s+/);
- if (words.length > 3) words = words.slice(0,3).concat('...');
- return words.join(' ');
- });
- }
- }
- /**
- * Utility function to filter out raw DOM nodes
- */
- function isNodeOneOf(elem, nodeTypeArray) {
- if (nodeTypeArray.indexOf(elem.nodeName) !== -1) {
- return true;
- }
- }
- /**
- * Walk DOM to apply or remove aria-hidden on sibling nodes
- * and parent sibling nodes
- *
- * Prevents screen reader interaction behind modal window
- * on swipe interfaces
- */
- function applyAriaToSiblings(element, value) {
- var attribute = 'aria-hidden';
-
- // get raw DOM node
- element = element[0];
-
- function walkDOM(element) {
- while (element.parentNode) {
- if (element === document.body) {
- return;
- }
- var children = element.parentNode.children;
- for (var i = 0; i < children.length; i++) {
- // skip over child if it is an ascendant of the dialog
- // or a script or style tag
- if (element !== children[i] && !isNodeOneOf(children[i], ['SCRIPT', 'STYLE'])) {
- children[i].setAttribute(attribute, value);
- }
- }
-
- walkDOM(element = element.parentNode);
- }
- }
- walkDOM(element);
- }
-
- function dialogPopIn(container, parentElement, clickElement) {
- var dialogEl = container.find('md-dialog');
-
- parentElement.append(container);
- transformToClickElement(dialogEl, clickElement);
-
- $$rAF(function() {
- dialogEl.addClass('transition-in')
- .css($mdConstant.CSS.TRANSFORM, '');
- });
-
- return $mdUtil.transitionEndPromise(dialogEl);
- }
-
- function dialogPopOut(container, parentElement, clickElement) {
- var dialogEl = container.find('md-dialog');
-
- dialogEl.addClass('transition-out').removeClass('transition-in');
- transformToClickElement(dialogEl, clickElement);
-
- return $mdUtil.transitionEndPromise(dialogEl);
- }
-
- function transformToClickElement(dialogEl, clickElement) {
- if (clickElement) {
- var clickRect = clickElement[0].getBoundingClientRect();
- var dialogRect = dialogEl[0].getBoundingClientRect();
-
- var scaleX = Math.min(0.5, clickRect.width / dialogRect.width);
- var scaleY = Math.min(0.5, clickRect.height / dialogRect.height);
-
- dialogEl.css($mdConstant.CSS.TRANSFORM, 'translate3d(' +
- (-dialogRect.left + clickRect.left + clickRect.width/2 - dialogRect.width/2) + 'px,' +
- (-dialogRect.top + clickRect.top + clickRect.height/2 - dialogRect.height/2) + 'px,' +
- '0) scale(' + scaleX + ',' + scaleY + ')'
- );
- }
- }
-
- function dialogTransitionEnd(dialogEl) {
- var deferred = $q.defer();
- dialogEl.on($mdConstant.CSS.TRANSITIONEND, finished);
- function finished(ev) {
- //Make sure this transitionend didn't bubble up from a child
- if (ev.target === dialogEl[0]) {
- dialogEl.off($mdConstant.CSS.TRANSITIONEND, finished);
- deferred.resolve();
- }
- }
- return deferred.promise;
- }
-
- }
-}
-MdDialogProvider.$inject = ["$$interimElementProvider"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.divider
- * @description Divider module!
- */
-angular.module('material.components.divider', [
- 'material.core'
-])
- .directive('mdDivider', MdDividerDirective);
-
-/**
- * @ngdoc directive
- * @name mdDivider
- * @module material.components.divider
- * @restrict E
- *
- * @description
- * Dividers group and separate content within lists and page layouts using strong visual and spatial distinctions. This divider is a thin rule, lightweight enough to not distract the user from content.
- *
- * @param {boolean=} md-inset Add this attribute to activate the inset divider style.
- * @usage
- * <hljs lang="html">
- * <md-divider></md-divider>
- *
- * <md-divider md-inset></md-divider>
- * </hljs>
- *
- */
-function MdDividerDirective($mdTheming) {
- return {
- restrict: 'E',
- link: $mdTheming
- };
-}
-MdDividerDirective.$inject = ["$mdTheming"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.gridList
- */
-angular.module('material.components.gridList', ['material.core'])
- .directive('mdGridList', GridListDirective)
- .directive('mdGridTile', GridTileDirective)
- .directive('mdGridTileFooter', GridTileCaptionDirective)
- .directive('mdGridTileHeader', GridTileCaptionDirective)
- .factory('$mdGridLayout', GridLayoutFactory);
-
-/**
- * @ngdoc directive
- * @name mdGridList
- * @module material.components.gridList
- * @restrict E
- * @description
- * Grid lists are an alternative to standard list views. Grid lists are distinct
- * from grids used for layouts and other visual presentations.
- *
- * A grid list is best suited to presenting a homogenous data type, typically
- * images, and is optimized for visual comprehension and differentiating between
- * like data types.
- *
- * A grid list is a continuous element consisting of tessellated, regular
- * subdivisions called cells that contain tiles (`md-grid-tile`).
- *
- * <img src="//material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7OVlEaXZ5YmU1Xzg/components_grids_usage2.png"
- * style="width: 300px; height: auto; margin-right: 16px;" alt="Concept of grid explained visually">
- * <img src="//material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7VGhsOE5idWlJWXM/components_grids_usage3.png"
- * style="width: 300px; height: auto;" alt="Grid concepts legend">
- *
- * Cells are arrayed vertically and horizontally within the grid.
- *
- * Tiles hold content and can span one or more cells vertically or horizontally.
- *
- * ### Responsive Attributes
- *
- * The `md-grid-list` directive supports "responsive" attributes, which allow
- * different `md-cols`, `md-gutter` and `md-row-height` values depending on the
- * currently matching media query (as defined in `$mdConstant.MEDIA`).
- *
- * In order to set a responsive attribute, first define the fallback value with
- * the standard attribute name, then add additional attributes with the
- * following convention: `{base-attribute-name}-{media-query-name}="{value}"`
- * (ie. `md-cols-lg="8"`)
- *
- * @param {number} md-cols Number of columns in the grid.
- * @param {string} md-row-height One of
- * <ul>
- * <li>CSS length - Fixed height rows (eg. `8px` or `1rem`)</li>
- * <li>`{width}:{height}` - Ratio of width to height (eg.
- * `md-row-height="16:9"`)</li>
- * <li>`"fit"` - Height will be determined by subdividing the available
- * height by the number of rows</li>
- * </ul>
- * @param {string=} md-gutter The amount of space between tiles in CSS units
- * (default 1px)
- * @param {expression=} md-on-layout Expression to evaluate after layout. Event
- * object is available as `$event`, and contains performance information.
- *
- * @usage
- * Basic:
- * <hljs lang="html">
- * <md-grid-list md-cols="5" md-gutter="1em" md-row-height="4:3">
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Fixed-height rows:
- * <hljs lang="html">
- * <md-grid-list md-cols="4" md-row-height="200px" ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Fit rows:
- * <hljs lang="html">
- * <md-grid-list md-cols="4" md-row-height="fit" style="height: 400px;" ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Using responsive attributes:
- * <hljs lang="html">
- * <md-grid-list
- * md-cols-sm="2"
- * md-cols-md="4"
- * md-cols-lg="8"
- * md-cols-gt-lg="12"
- * ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- */
-function GridListDirective($interpolate, $mdConstant, $mdGridLayout, $mdMedia) {
- return {
- restrict: 'E',
- controller: GridListController,
- scope: {
- mdOnLayout: '&'
- },
- link: postLink
- };
-
- function postLink(scope, element, attrs, ctrl) {
- // Apply semantics
- element.attr('role', 'list');
-
- // Provide the controller with a way to trigger layouts.
- ctrl.layoutDelegate = layoutDelegate;
-
- var invalidateLayout = angular.bind(ctrl, ctrl.invalidateLayout),
- unwatchAttrs = watchMedia();
- scope.$on('$destroy', unwatchMedia);
-
- /**
- * Watches for changes in media, invalidating layout as necessary.
- */
- function watchMedia() {
- for (var mediaName in $mdConstant.MEDIA) {
- $mdMedia(mediaName); // initialize
- $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
- .addListener(invalidateLayout);
- }
- return $mdMedia.watchResponsiveAttributes(
- ['md-cols', 'md-row-height'], attrs, layoutIfMediaMatch);
- }
-
- function unwatchMedia() {
- ctrl.layoutDelegate = angular.noop;
-
- unwatchAttrs();
- for (var mediaName in $mdConstant.MEDIA) {
- $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
- .removeListener(invalidateLayout);
- }
- }
-
- /**
- * Performs grid layout if the provided mediaName matches the currently
- * active media type.
- */
- function layoutIfMediaMatch(mediaName) {
- if (mediaName == null) {
- // TODO(shyndman): It would be nice to only layout if we have
- // instances of attributes using this media type
- ctrl.invalidateLayout();
- } else if ($mdMedia(mediaName)) {
- ctrl.invalidateLayout();
- }
- }
-
- var lastLayoutProps;
-
- /**
- * Invokes the layout engine, and uses its results to lay out our
- * tile elements.
- *
- * @param {boolean} tilesInvalidated Whether tiles have been
- * added/removed/moved since the last layout. This is to avoid situations
- * where tiles are replaced with properties identical to their removed
- * counterparts.
- */
- function layoutDelegate(tilesInvalidated) {
- var tiles = getTileElements();
- var props = {
- tileSpans: getTileSpans(tiles),
- colCount: getColumnCount(),
- rowMode: getRowMode(),
- rowHeight: getRowHeight(),
- gutter: getGutter()
- };
-
- if (!tilesInvalidated && angular.equals(props, lastLayoutProps)) {
- return;
- }
-
- var performance =
- $mdGridLayout(props.colCount, props.tileSpans, tiles)
- .map(function(tilePositions, rowCount) {
- return {
- grid: {
- element: element,
- style: getGridStyle(props.colCount, rowCount,
- props.gutter, props.rowMode, props.rowHeight)
- },
- tiles: tilePositions.map(function(ps, i) {
- return {
- element: angular.element(tiles[i]),
- style: getTileStyle(ps.position, ps.spans,
- props.colCount, props.rowCount,
- props.gutter, props.rowMode, props.rowHeight)
- }
- })
- }
- })
- .reflow()
- .performance();
-
- // Report layout
- scope.mdOnLayout({
- $event: {
- performance: performance
- }
- });
-
- lastLayoutProps = props;
- }
-
- // Use $interpolate to do some simple string interpolation as a convenience.
-
- var startSymbol = $interpolate.startSymbol();
- var endSymbol = $interpolate.endSymbol();
-
- // Returns an expression wrapped in the interpolator's start and end symbols.
- function expr(exprStr) {
- return startSymbol + exprStr + endSymbol;
- }
-
- // The amount of space a single 1x1 tile would take up (either width or height), used as
- // a basis for other calculations. This consists of taking the base size percent (as would be
- // if evenly dividing the size between cells), and then subtracting the size of one gutter.
- // However, since there are no gutters on the edges, each tile only uses a fration
- // (gutterShare = numGutters / numCells) of the gutter size. (Imagine having one gutter per
- // tile, and then breaking up the extra gutter on the edge evenly among the cells).
- var UNIT = $interpolate(expr('share') + '% - (' + expr('gutter') + ' * ' + expr('gutterShare') + ')');
-
- // The horizontal or vertical position of a tile, e.g., the 'top' or 'left' property value.
- // The position comes the size of a 1x1 tile plus gutter for each previous tile in the
- // row/column (offset).
- var POSITION = $interpolate('calc((' + expr('unit') + ' + ' + expr('gutter') + ') * ' + expr('offset') + ')');
-
- // The actual size of a tile, e.g., width or height, taking rowSpan or colSpan into account.
- // This is computed by multiplying the base unit by the rowSpan/colSpan, and then adding back
- // in the space that the gutter would normally have used (which was already accounted for in
- // the base unit calculation).
- var DIMENSION = $interpolate('calc((' + expr('unit') + ') * ' + expr('span') + ' + (' + expr('span') + ' - 1) * ' + expr('gutter') + ')');
-
- /**
- * Gets the styles applied to a tile element described by the given parameters.
- * @param {{row: number, col: number}} position The row and column indices of the tile.
- * @param {{row: number, col: number}} spans The rowSpan and colSpan of the tile.
- * @param {number} colCount The number of columns.
- * @param {number} rowCount The number of rows.
- * @param {string} gutter The amount of space between tiles. This will be something like
- * '5px' or '2em'.
- * @param {string} rowMode The row height mode. Can be one of:
- * 'fixed': all rows have a fixed size, given by rowHeight,
- * 'ratio': row height defined as a ratio to width, or
- * 'fit': fit to the grid-list element height, divinding evenly among rows.
- * @param {string|number} rowHeight The height of a row. This is only used for 'fixed' mode and
- * for 'ratio' mode. For 'ratio' mode, this is the *ratio* of width-to-height (e.g., 0.75).
- * @returns {Object} Map of CSS properties to be applied to the style element. Will define
- * values for top, left, width, height, marginTop, and paddingTop.
- */
- function getTileStyle(position, spans, colCount, rowCount, gutter, rowMode, rowHeight) {
- // TODO(shyndman): There are style caching opportunities here.
-
- // Percent of the available horizontal space that one column takes up.
- var hShare = (1 / colCount) * 100;
-
- // Fraction of the gutter size that each column takes up.
- var hGutterShare = (colCount - 1) / colCount;
-
- // Base horizontal size of a column.
- var hUnit = UNIT({share: hShare, gutterShare: hGutterShare, gutter: gutter});
-
- // The width and horizontal position of each tile is always calculated the same way, but the
- // height and vertical position depends on the rowMode.
- var style = {
- left: POSITION({ unit: hUnit, offset: position.col, gutter: gutter }),
- width: DIMENSION({ unit: hUnit, span: spans.col, gutter: gutter }),
- // resets
- paddingTop: '',
- marginTop: '',
- top: '',
- height: ''
- };
-
- switch (rowMode) {
- case 'fixed':
- // In fixed mode, simply use the given rowHeight.
- style.top = POSITION({ unit: rowHeight, offset: position.row, gutter: gutter });
- style.height = DIMENSION({ unit: rowHeight, span: spans.row, gutter: gutter });
- break;
-
- case 'ratio':
- // Percent of the available vertical space that one row takes up. Here, rowHeight holds
- // the ratio value. For example, if the width:height ratio is 4:3, rowHeight = 1.333.
- var vShare = hShare / rowHeight;
-
- // Base veritcal size of a row.
- var vUnit = UNIT({ share: vShare, gutterShare: hGutterShare, gutter: gutter });
-
- // padidngTop and marginTop are used to maintain the given aspect ratio, as
- // a percentage-based value for these properties is applied to the *width* of the
- // containing block. See http://www.w3.org/TR/CSS2/box.html#margin-properties
- style.paddingTop = DIMENSION({ unit: vUnit, span: spans.row, gutter: gutter});
- style.marginTop = POSITION({ unit: vUnit, offset: position.row, gutter: gutter });
- break;
-
- case 'fit':
- // Fraction of the gutter size that each column takes up.
- var vGutterShare = (rowCount - 1) / rowCount;
-
- // Percent of the available vertical space that one row takes up.
- var vShare = (1 / rowCount) * 100;
-
- // Base vertical size of a row.
- var vUnit = UNIT({share: vShare, gutterShare: vGutterShare, gutter: gutter});
-
- style.top = POSITION({unit: vUnit, offset: position.row, gutter: gutter});
- style.height = DIMENSION({unit: vUnit, span: spans.row, gutter: gutter});
- break;
- }
-
- return style;
- }
-
- function getGridStyle(colCount, rowCount, gutter, rowMode, rowHeight) {
- var style = {
- height: '',
- paddingBottom: ''
- };
-
- switch(rowMode) {
- case 'fixed':
- style.height = DIMENSION({ unit: rowHeight, span: rowCount, gutter: gutter });
- break;
-
- case 'ratio':
- // rowHeight is width / height
- var hGutterShare = colCount === 1 ? 0 : (colCount - 1) / colCount,
- hShare = (1 / colCount) * 100,
- vShare = hShare * (1 / rowHeight),
- vUnit = UNIT({ share: vShare, gutterShare: hGutterShare, gutter: gutter });
-
- style.paddingBottom = DIMENSION({ unit: vUnit, span: rowCount, gutter: gutter});
- break;
-
- case 'fit':
- // noop, as the height is user set
- break;
- }
-
- return style;
- }
-
- function getTileElements() {
- return [].filter.call(element.children(), function(ele) {
- return ele.tagName == 'MD-GRID-TILE';
- });
- }
-
- /**
- * Gets an array of objects containing the rowspan and colspan for each tile.
- * @returns {Array<{row: number, col: number}>}
- */
- function getTileSpans(tileElements) {
- return [].map.call(tileElements, function(ele) {
- var ctrl = angular.element(ele).controller('mdGridTile');
- return {
- row: parseInt(
- $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1,
- col: parseInt(
- $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-colspan'), 10) || 1
- };
- });
- }
-
- function getColumnCount() {
- var colCount = parseInt($mdMedia.getResponsiveAttribute(attrs, 'md-cols'), 10);
- if (isNaN(colCount)) {
- throw 'md-grid-list: md-cols attribute was not found, or contained a non-numeric value';
- }
- return colCount;
- }
-
- function getGutter() {
- return applyDefaultUnit($mdMedia.getResponsiveAttribute(attrs, 'md-gutter') || 1);
- }
-
- function getRowHeight() {
- var rowHeight = $mdMedia.getResponsiveAttribute(attrs, 'md-row-height');
- switch (getRowMode()) {
- case 'fixed':
- return applyDefaultUnit(rowHeight);
- case 'ratio':
- var whRatio = rowHeight.split(':');
- return parseFloat(whRatio[0]) / parseFloat(whRatio[1]);
- case 'fit':
- return 0; // N/A
- }
- }
-
- function getRowMode() {
- var rowHeight = $mdMedia.getResponsiveAttribute(attrs, 'md-row-height');
- if (rowHeight == 'fit') {
- return 'fit';
- } else if (rowHeight.indexOf(':') !== -1) {
- return 'ratio';
- } else {
- return 'fixed';
- }
- }
-
- function applyDefaultUnit(val) {
- return /\D$/.test(val) ? val : val + 'px';
- }
- }
-}
-GridListDirective.$inject = ["$interpolate", "$mdConstant", "$mdGridLayout", "$mdMedia"];
-
-/* @ngInject */
-function GridListController($timeout) {
- this.layoutInvalidated = false;
- this.tilesInvalidated = false;
- this.$timeout_ = $timeout;
- this.layoutDelegate = angular.noop;
-}
-GridListController.$inject = ["$timeout"];
-
-GridListController.prototype = {
- invalidateTiles: function() {
- this.tilesInvalidated = true;
- this.invalidateLayout();
- },
-
- invalidateLayout: function() {
- if (this.layoutInvalidated) {
- return;
- }
- this.layoutInvalidated = true;
- this.$timeout_(angular.bind(this, this.layout));
- },
-
- layout: function() {
- try {
- this.layoutDelegate(this.tilesInvalidated);
- } finally {
- this.layoutInvalidated = false;
- this.tilesInvalidated = false;
- }
- }
-};
-
-
-/* @ngInject */
-function GridLayoutFactory($mdUtil) {
- var defaultAnimator = GridTileAnimator;
-
- /**
- * Set the reflow animator callback
- */
- GridLayout.animateWith = function(customAnimator) {
- defaultAnimator = !angular.isFunction(customAnimator) ? GridTileAnimator : customAnimator;
- };
-
- return GridLayout;
-
- /**
- * Publish layout function
- */
- function GridLayout(colCount, tileSpans) {
- var self, layoutInfo, gridStyles, layoutTime, mapTime, reflowTime;
-
- layoutTime = $mdUtil.time(function() {
- layoutInfo = calculateGridFor(colCount, tileSpans);
- });
-
- return self = {
-
- /**
- * An array of objects describing each tile's position in the grid.
- */
- layoutInfo: function() {
- return layoutInfo;
- },
-
- /**
- * Maps grid positioning to an element and a set of styles using the
- * provided updateFn.
- */
- map: function(updateFn) {
- mapTime = $mdUtil.time(function() {
- var info = self.layoutInfo();
- gridStyles = updateFn(info.positioning, info.rowCount);
- });
- return self;
- },
-
- /**
- * Default animator simply sets the element.css( <styles> ). An alternate
- * animator can be provided as an argument. The function has the following
- * signature:
- *
- * function({grid: {element: JQLite, style: Object}, tiles: Array<{element: JQLite, style: Object}>)
- */
- reflow: function(animatorFn) {
- reflowTime = $mdUtil.time(function() {
- var animator = animatorFn || defaultAnimator;
- animator(gridStyles.grid, gridStyles.tiles);
- });
- return self;
- },
-
- /**
- * Timing for the most recent layout run.
- */
- performance: function() {
- return {
- tileCount: tileSpans.length,
- layoutTime: layoutTime,
- mapTime: mapTime,
- reflowTime: reflowTime,
- totalTime: layoutTime + mapTime + reflowTime
- };
- }
- };
- }
-
- /**
- * Default Gridlist animator simple sets the css for each element;
- * NOTE: any transitions effects must be manually set in the CSS.
- * e.g.
- *
- * md-grid-tile {
- * transition: all 700ms ease-out 50ms;
- * }
- *
- */
- function GridTileAnimator(grid, tiles) {
- grid.element.css(grid.style);
- tiles.forEach(function(t) {
- t.element.css(t.style);
- })
- }
-
- /**
- * Calculates the positions of tiles.
- *
- * The algorithm works as follows:
- * An Array<Number> with length colCount (spaceTracker) keeps track of
- * available tiling positions, where elements of value 0 represents an
- * empty position. Space for a tile is reserved by finding a sequence of
- * 0s with length <= than the tile's colspan. When such a space has been
- * found, the occupied tile positions are incremented by the tile's
- * rowspan value, as these positions have become unavailable for that
- * many rows.
- *
- * If the end of a row has been reached without finding space for the
- * tile, spaceTracker's elements are each decremented by 1 to a minimum
- * of 0. Rows are searched in this fashion until space is found.
- */
- function calculateGridFor(colCount, tileSpans) {
- var curCol = 0,
- curRow = 0,
- spaceTracker = newSpaceTracker();
-
- return {
- positioning: tileSpans.map(function(spans, i) {
- return {
- spans: spans,
- position: reserveSpace(spans, i)
- };
- }),
- rowCount: curRow + Math.max.apply(Math, spaceTracker)
- };
-
- function reserveSpace(spans, i) {
- if (spans.col > colCount) {
- throw 'md-grid-list: Tile at position ' + i + ' has a colspan ' +
- '(' + spans.col + ') that exceeds the column count ' +
- '(' + colCount + ')';
- }
-
- var start = 0,
- end = 0;
-
- // TODO(shyndman): This loop isn't strictly necessary if you can
- // determine the minimum number of rows before a space opens up. To do
- // this, recognize that you've iterated across an entire row looking for
- // space, and if so fast-forward by the minimum rowSpan count. Repeat
- // until the required space opens up.
- while (end - start < spans.col) {
- if (curCol >= colCount) {
- nextRow();
- continue;
- }
-
- start = spaceTracker.indexOf(0, curCol);
- if (start === -1 || (end = findEnd(start + 1)) === -1) {
- start = end = 0;
- nextRow();
- continue;
- }
-
- curCol = end + 1;
- }
-
- adjustRow(start, spans.col, spans.row);
- curCol = start + spans.col;
-
- return {
- col: start,
- row: curRow
- };
- }
-
- function nextRow() {
- curCol = 0;
- curRow++;
- adjustRow(0, colCount, -1); // Decrement row spans by one
- }
-
- function adjustRow(from, cols, by) {
- for (var i = from; i < from + cols; i++) {
- spaceTracker[i] = Math.max(spaceTracker[i] + by, 0);
- }
- }
-
- function findEnd(start) {
- var i;
- for (i = start; i < spaceTracker.length; i++) {
- if (spaceTracker[i] !== 0) {
- return i;
- }
- }
-
- if (i === spaceTracker.length) {
- return i;
- }
- }
-
- function newSpaceTracker() {
- var tracker = [];
- for (var i = 0; i < colCount; i++) {
- tracker.push(0);
- }
- return tracker;
- }
- }
-}
-GridLayoutFactory.$inject = ["$mdUtil"];
-
-/**
- * @ngdoc directive
- * @name mdGridTile
- * @module material.components.gridList
- * @restrict E
- * @description
- * Tiles contain the content of an `md-grid-list`. They span one or more grid
- * cells vertically or horizontally, and use `md-grid-tile-{footer,header}` to
- * display secondary content.
- *
- * ### Responsive Attributes
- *
- * The `md-grid-tile` directive supports "responsive" attributes, which allow
- * different `md-rowspan` and `md-colspan` values depending on the currently
- * matching media query (as defined in `$mdConstant.MEDIA`).
- *
- * In order to set a responsive attribute, first define the fallback value with
- * the standard attribute name, then add additional attributes with the
- * following convention: `{base-attribute-name}-{media-query-name}="{value}"`
- * (ie. `md-colspan-sm="4"`)
- *
- * @param {number=} md-colspan The number of columns to span (default 1). Cannot
- * exceed the number of columns in the grid. Supports interpolation.
- * @param {number=} md-rowspan The number of rows to span (default 1). Supports
- * interpolation.
- *
- * @usage
- * With header:
- * <hljs lang="html">
- * <md-grid-tile>
- * <md-grid-tile-header>
- * <h3>This is a header</h3>
- * </md-grid-tile-header>
- * </md-grid-tile>
- * </hljs>
- *
- * With footer:
- * <hljs lang="html">
- * <md-grid-tile>
- * <md-grid-tile-footer>
- * <h3>This is a footer</h3>
- * </md-grid-tile-footer>
- * </md-grid-tile>
- * </hljs>
- *
- * Spanning multiple rows/columns:
- * <hljs lang="html">
- * <md-grid-tile md-colspan="2" md-rowspan="3">
- * </md-grid-tile>
- * </hljs>
- *
- * Responsive attributes:
- * <hljs lang="html">
- * <md-grid-tile md-colspan="1" md-colspan-sm="3" md-colspan-md="5">
- * </md-grid-tile>
- * </hljs>
- */
-function GridTileDirective($mdMedia) {
- return {
- restrict: 'E',
- require: '^mdGridList',
- template: '<figure ng-transclude></figure>',
- transclude: true,
- scope: {},
- // Simple controller that exposes attributes to the grid directive
- controller: ["$attrs", function($attrs) {
- this.$attrs = $attrs;
- }],
- link: postLink
- };
-
- function postLink(scope, element, attrs, gridCtrl) {
- // Apply semantics
- element.attr('role', 'listitem');
-
- // If our colspan or rowspan changes, trigger a layout
- var unwatchAttrs = $mdMedia.watchResponsiveAttributes(['md-colspan', 'md-rowspan'],
- attrs, angular.bind(gridCtrl, gridCtrl.invalidateLayout));
-
- // Tile registration/deregistration
- gridCtrl.invalidateTiles();
- scope.$on('$destroy', function() {
- unwatchAttrs();
- gridCtrl.invalidateLayout();
- });
-
- if (angular.isDefined(scope.$parent.$index)) {
- scope.$watch(function() { return scope.$parent.$index; },
- function indexChanged(newIdx, oldIdx) {
- if (newIdx === oldIdx) {
- return;
- }
- gridCtrl.invalidateTiles();
- });
- }
- }
-}
-GridTileDirective.$inject = ["$mdMedia"];
-
-
-function GridTileCaptionDirective() {
- return {
- template: '<figcaption ng-transclude></figcaption>',
- transclude: true
- };
-}
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.icon
- * @description
- * Icon
- */
-angular.module('material.components.icon', [
- 'material.core'
- ])
- .directive('mdIcon', mdIconDirective);
-
-/**
- * @ngdoc directive
- * @name mdIcon
- * @module material.components.icon
- *
- * @restrict E
- *
- * @description
- * The `<md-icon>` directive is an markup element useful for showing an icon based on a font-icon
- * or a SVG. Icons are view-only elements that should not be used directly as buttons; instead nest a `<md-icon>`
- * inside a `md-button` to add hover and click features.
- *
- * When using SVGs, both external SVGs (via URLs) or sets of SVGs [from icon sets] can be
- * easily loaded and used.When use font-icons, developers must following three (3) simple steps:
- *
- * <ol>
- * <li>Load the font library. e.g.<br/>
- * &lt;link href="https://fonts.googleapis.com/icon?family=Material+Icons"
- * rel="stylesheet"&gt;
- * </li>
- * <li> Use either (a) font-icon class names or (b) font ligatures to render the font glyph by using its textual name</li>
- * <li> Use &lt;md-icon md-font-icon="classname" /&gt; or <br/>
- * use &lt;md-icon md-font-set="font library classname or alias"&gt; textual_name &lt;/md-icon&gt; or <br/>
- * use &lt;md-icon md-font-set="font library classname or alias"&gt; numerical_character_reference &lt;/md-icon&gt;
- * </li>
- * </ol>
- *
- * Full details for these steps can be found:
- *
- * <ul>
- * <li>http://google.github.io/material-design-icons/</li>
- * <li>http://google.github.io/material-design-icons/#icon-font-for-the-web</li>
- * </ul>
- *
- * The Material Design icon style <code>.material-icons</code> and the icon font references are published in
- * Material Design Icons:
- *
- * <ul>
- * <li>http://www.google.com/design/icons/</li>
- * <li>https://www.google.com/design/icons/#ic_accessibility</li>
- * </ul>
- *
- * <h2 id="material_design_icons">Material Design Icons</h2>
- * Using the Material Design Icon-Selector, developers can easily and quickly search for a Material Design font-icon and
- * determine its textual name and character reference code. Click on any icon to see the slide-up information
- * panel with details regarding a SVG download or information on the font-icon usage.
- *
- * <a href="https://www.google.com/design/icons/#ic_accessibility" target="_blank" style="border-bottom:none;">
- * <img src="https://cloud.githubusercontent.com/assets/210413/7902490/fe8dd14c-0780-11e5-98fb-c821cc6475e6.png"
- * aria-label="Material Design Icon-Selector" style="max-width:75%;padding-left:10%">
- * </a>
- *
- * <span class="image_caption">
- * Click on the image above to link to the
- * <a href="https://www.google.com/design/icons/#ic_accessibility" target="_blank">Material Design Icon-Selector</a>.
- * </span>
- *
- * @param {string} md-font-icon Name of CSS icon associated with the font-face will be used
- * to render the icon. Requires the fonts and the named CSS styles to be preloaded.
- * @param {string} md-font-set CSS style name associated with the font library; which will be assigned as
- * the class for the font-icon ligature. This value may also be an alias that is used to lookup the classname;
- * internally use `$mdIconProvider.fontSet(<alias>)` to determine the style name.
- * @param {string} md-svg-src URL [or expression ] used to load, cache, and display an external SVG.
- * @param {string} md-svg-icon Name used for lookup of the icon from the internal cache; interpolated strings or
- * expressions may also be used. Specific set names can be used with the syntax `<set name>:<icon name>`.<br/><br/>
- * To use icon sets, developers are required to pre-register the sets using the `$mdIconProvider` service.
- * @param {string=} aria-label Labels icon for accessibility. If an empty string is provided, icon
- * will be hidden from accessibility layer with `aria-hidden="true"`. If there's no aria-label on the icon
- * nor a label on the parent element, a warning will be logged to the console.
- *
- * @usage
- * When using SVGs:
- * <hljs lang="html">
- *
- * <!-- Icon ID; may contain optional icon set prefix; icons must registered using $mdIconProvider -->
- * <md-icon md-svg-icon="social:android" aria-label="android " ></md-icon>
- *
- * <!-- Icon urls; may be preloaded in templateCache -->
- * <md-icon md-svg-src="/android.svg" aria-label="android " ></md-icon>
- * <md-icon md-svg-src="{{ getAndroid() }}" aria-label="android " ></md-icon>
- *
- * </hljs>
- *
- * Use the <code>$mdIconProvider</code> to configure your application with
- * svg iconsets.
- *
- * <hljs lang="js">
- * angular.module('appSvgIconSets', ['ngMaterial'])
- * .controller('DemoCtrl', function($scope) {})
- * .config(function($mdIconProvider) {
- * $mdIconProvider
- * .iconSet('social', 'img/icons/sets/social-icons.svg', 24)
- * .defaultIconSet('img/icons/sets/core-icons.svg', 24);
- * });
- * </hljs>
- *
- *
- * When using Font Icons with classnames:
- * <hljs lang="html">
- *
- * <md-icon md-font-icon="android" aria-label="android" ></md-icon>
- * <md-icon class="icon_home" aria-label="Home" ></md-icon>
- *
- * </hljs>
- *
- * When using Material Font Icons with ligatures:
- * <hljs lang="html">
- * <!-- For Material Design Icons -->
- * <!-- The class '.material-icons' is auto-added. -->
- * <md-icon> face </md-icon>
- * <md-icon class="md-light md-48"> face </md-icon>
- * <md-icon md-font-set="material-icons"> face </md-icon>
- * <md-icon> #xE87C; </md-icon>
- * </hljs>
- *
- * When using other Font-Icon libraries:
- *
- * <hljs lang="js">
- * // Specify a font-icon style alias
- * angular.config(function($mdIconProvider) {
- * $mdIconProvider.fontSet('fa', 'fontawesome');
- * });
- * </hljs>
- *
- * <hljs lang="html">
- * <md-icon md-font-set="fa">email</md-icon>
- * </hljs>
- *
- */
-function mdIconDirective($mdIcon, $mdTheming, $mdAria, $interpolate ) {
-
- return {
- scope: {
- fontSet : '@mdFontSet',
- fontIcon: '@mdFontIcon',
- svgIcon : '@mdSvgIcon',
- svgSrc : '@mdSvgSrc'
- },
- restrict: 'E',
- transclude:true,
- template: getTemplate,
- link: postLink
- };
-
- function getTemplate(element, attr) {
- var isEmptyAttr = function(key) { return angular.isDefined(attr[key]) ? attr[key].length == 0 : false },
- hasAttrValue = function(key) { return attr[key] && attr[key].length > 0; },
- attrValue = function(key) { return hasAttrValue(key) ? attr[key] : '' };
-
- // If using the deprecated md-font-icon API
- // If using ligature-based font-icons, transclude the ligature or NRCs
-
- var tmplFontIcon = '<span class="md-font {{classNames}}" ng-class="fontIcon"></span>';
- var tmplFontSet = '<span class="{{classNames}}" ng-transclude></span>';
-
- var tmpl = hasAttrValue('mdSvgIcon') ? '' :
- hasAttrValue('mdSvgSrc') ? '' :
- isEmptyAttr('mdFontIcon') ? '' :
- hasAttrValue('mdFontIcon') ? tmplFontIcon : tmplFontSet;
-
- // If available, lookup the fontSet style and add to the list of classnames
- // NOTE: Material Icons expects classnames like `.material-icons.md-48` instead of `.material-icons .md-48`
-
- var names = (tmpl == tmplFontSet) ? $mdIcon.fontSet(attrValue('mdFontSet')) + ' ' : '';
- names = (names + attrValue('class')).trim();
-
- return $interpolate( tmpl )({ classNames: names });
- }
-
-
- /**
- * Directive postLink
- * Supports embedded SVGs, font-icons, & external SVGs
- */
- function postLink(scope, element, attr) {
- $mdTheming(element);
-
- // If using a font-icon, then the textual name of the icon itself
- // provides the aria-label.
-
- var label = attr.alt || scope.fontIcon || scope.svgIcon || element.text();
- var attrName = attr.$normalize(attr.$attr.mdSvgIcon || attr.$attr.mdSvgSrc || '');
-
- if ( !attr['aria-label'] ) {
-
- if (label != '' && !parentsHaveText() ) {
-
- $mdAria.expect(element, 'aria-label', label);
- $mdAria.expect(element, 'role', 'img');
-
- } else if ( !element.text() ) {
- // If not a font-icon with ligature, then
- // hide from the accessibility layer.
-
- $mdAria.expect(element, 'aria-hidden', 'true');
- }
- }
-
- if (attrName) {
- // Use either pre-configured SVG or URL source, respectively.
- attr.$observe(attrName, function(attrVal) {
-
- element.empty();
- if (attrVal) {
- $mdIcon(attrVal).then(function(svg) {
- element.append(svg);
- });
- }
-
- });
- }
- function parentsHaveText() {
- var parent = element.parent();
- if (parent.attr('aria-label') || parent.text()) {
- return true;
- }
- else if(parent.parent().attr('aria-label') || parent.parent().text()) {
- return true;
- }
- return false;
- }
- }
-}
-mdIconDirective.$inject = ["$mdIcon", "$mdTheming", "$mdAria", "$interpolate"];
-
-})();
-(function(){
-"use strict";
-
- angular
- .module('material.components.icon' )
- .provider('$mdIcon', MdIconProvider);
-
- /**
- * @ngdoc service
- * @name $mdIconProvider
- * @module material.components.icon
- *
- * @description
- * `$mdIconProvider` is used only to register icon IDs with URLs. These configuration features allow
- * icons and icon sets to be pre-registered and associated with source URLs **before** the `<md-icon />`
- * directives are compiled.
- *
- * If using font-icons, the developer is repsonsible for loading the fonts.
- *
- * If using SVGs, loading of the actual svg files are deferred to on-demand requests and are loaded
- * internally by the `$mdIcon` service using the `$http` service. When an SVG is requested by name/ID,
- * the `$mdIcon` service searches its registry for the associated source URL;
- * that URL is used to on-demand load and parse the SVG dynamically.
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultFontSet( 'fontawesome' )
- * .defaultIconSet('my/app/icons.svg') // Register a default set of SVG icons
- * .iconSet('social', 'my/app/social.svg') // Register a named icon set of SVGs
- * .icon('android', 'my/app/android.svg') // Register a specific icon (by name)
- * .icon('work:chair', 'my/app/chair.svg'); // Register icon in a specific set
- * });
- * </hljs>
- *
- * SVG icons and icon sets can be easily pre-loaded and cached using either (a) a build process or (b) a runtime
- * **startup** process (shown below):
- *
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Register a default set of SVG icon definitions
- * $mdIconProvider.defaultIconSet('my/app/icons.svg')
- *
- * })
- * .run(function($http, $templateCache){
- *
- * // Pre-fetch icons sources by URL and cache in the $templateCache...
- * // subsequent $http calls will look there first.
- *
- * var urls = [ 'imy/app/icons.svg', 'img/icons/android.svg'];
- *
- * angular.forEach(urls, function(url) {
- * $http.get(url, {cache: $templateCache});
- * });
- *
- * });
- *
- * </hljs>
- *
- * NOTE: the loaded SVG data is subsequently cached internally for future requests.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdIconProvider#icon
- *
- * @description
- * Register a source URL for a specific icon name; the name may include optional 'icon set' name prefix.
- * These icons will later be retrieved from the cache using `$mdIcon( <icon name> )`
- *
- * @param {string} id Icon name/id used to register the icon
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .icon('android', 'my/app/android.svg') // Register a specific icon (by name)
- * .icon('work:chair', 'my/app/chair.svg'); // Register icon in a specific set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#iconSet
- *
- * @description
- * Register a source URL for a 'named' set of icons; group of SVG definitions where each definition
- * has an icon id. Individual icons can be subsequently retrieved from this cached set using
- * `$mdIcon(<icon set name>:<icon name>)`
- *
- * @param {string} id Icon name/id used to register the iconset
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .iconSet('social', 'my/app/social.svg') // Register a named icon set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultIconSet
- *
- * @description
- * Register a source URL for the default 'named' set of icons. Unless explicitly registered,
- * subsequent lookups of icons will failover to search this 'default' icon set.
- * Icon can be retrieved from this cached, default set using `$mdIcon(<name>)`
- *
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultIconSet( 'my/app/social.svg' ) // Register a default icon set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultFontSet
- *
- * @description
- * When using Font-Icons, Angular Material assumes the the Material Design icons will be used and automatically
- * configures the default font-set == 'material-icons'. Note that the font-set references the font-icon library
- * class style that should be applied to the `<md-icon>`.
- *
- * Configuring the default means that the attributes
- * `md-font-set="material-icons"` or `class="material-icons"` do not need to be explicitly declared on the
- * `<md-icon>` markup. For example:
- *
- * `<md-icon> face </md-icon>`
- * will render as
- * `<span class="material-icons"> face </span>`, and
- *
- * `<md-icon md-font-set="fa"> face </md-icon>`
- * will render as
- * `<span class="fa"> face </span>`
- *
- * @param {string} name of the font-library style that should be applied to the md-icon DOM element
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- * $mdIconProvider.defaultFontSet( 'fontawesome' );
- * });
- * </hljs>
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultIconSize
- *
- * @description
- * While `<md-icon />` markup can also be style with sizing CSS, this method configures
- * the default width **and** height used for all icons; unless overridden by specific CSS.
- * The default sizing is (24px, 24px).
- *
- * @param {string} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultIconSize(36) // Register a default icon size (width == height)
- * });
- * </hljs>
- *
- */
-
- var config = {
- defaultIconSize: 24,
- defaultFontSet: 'material-icons',
- fontSets : [ ]
- };
-
- function MdIconProvider() { }
-
- MdIconProvider.prototype = {
-
- icon : function icon(id, url, iconSize) {
- if ( id.indexOf(':') == -1 ) id = '$default:' + id;
-
- config[id] = new ConfigurationItem(url, iconSize );
- return this;
- },
- iconSet : function iconSet(id, url, iconSize) {
- config[id] = new ConfigurationItem(url, iconSize );
- return this;
- },
- defaultIconSet : function defaultIconSet(url, iconSize) {
- var setName = '$default';
-
- if ( !config[setName] ) {
- config[setName] = new ConfigurationItem(url, iconSize );
- }
-
- config[setName].iconSize = iconSize || config.defaultIconSize;
- return this;
- },
-
- /**
- * Register an alias name associated with a font-icon library style ;
- */
- fontSet : function fontSet(alias, className) {
- config.fontSets.push({
- alias : alias,
- fontSet : className || alias
- });
- },
-
- /**
- * Specify a default style name associated with a font-icon library
- * fallback to Material Icons.
- *
- */
- defaultFontSet : function defaultFontSet(className) {
- config.defaultFontSet = !className ? '' : className;
- return this;
- },
-
- defaultIconSize : function defaultIconSize(iconSize) {
- config.defaultIconSize = iconSize;
- return this;
- },
-
- preloadIcons: function ($templateCache) {
- var iconProvider = this;
- var svgRegistry = [
- {
- id : 'md-tabs-arrow',
- url: 'md-tabs-arrow.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 "/></g></svg>'
- },
- {
- id : 'md-close',
- url: 'md-close.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"/></g></svg>'
- },
- {
- id: 'md-cancel',
- url: 'md-cancel.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M12 2c-5.53 0-10 4.47-10 10s4.47 10 10 10 10-4.47 10-10-4.47-10-10-10zm5 13.59l-1.41 1.41-3.59-3.59-3.59 3.59-1.41-1.41 3.59-3.59-3.59-3.59 1.41-1.41 3.59 3.59 3.59-3.59 1.41 1.41-3.59 3.59 3.59 3.59z"/></g></svg>'
- },
- {
- id: 'md-menu',
- url: 'md-menu.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100"><path d="M 50 0 L 100 14 L 92 80 L 50 100 L 8 80 L 0 14 Z" fill="#b2b2b2"></path><path d="M 50 5 L 6 18 L 13.5 77 L 50 94 Z" fill="#E42939"></path><path d="M 50 5 L 94 18 L 86.5 77 L 50 94 Z" fill="#B72833"></path><path d="M 50 7 L 83 75 L 72 75 L 65 59 L 50 59 L 50 50 L 61 50 L 50 26 Z" fill="#b2b2b2"></path><path d="M 50 7 L 17 75 L 28 75 L 35 59 L 50 59 L 50 50 L 39 50 L 50 26 Z" fill="#fff"></path></svg>'
- },
- {
- id: 'md-toggle-arrow',
- url: 'md-toggle-arrow-svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 48 48"><path d="M24 16l-12 12 2.83 2.83 9.17-9.17 9.17 9.17 2.83-2.83z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>'
- }
- ];
-
- svgRegistry.forEach(function(asset){
- iconProvider.icon(asset.id, asset.url);
- $templateCache.put(asset.url, asset.svg);
- });
-
- },
-
- $get : ['$http', '$q', '$log', '$templateCache', function($http, $q, $log, $templateCache) {
- this.preloadIcons($templateCache);
- return MdIconService(config, $http, $q, $log, $templateCache);
- }]
- };
-
- /**
- * Configuration item stored in the Icon registry; used for lookups
- * to load if not already cached in the `loaded` cache
- */
- function ConfigurationItem(url, iconSize) {
- this.url = url;
- this.iconSize = iconSize || config.defaultIconSize;
- }
-
- /**
- * @ngdoc service
- * @name $mdIcon
- * @module material.components.icon
- *
- * @description
- * The `$mdIcon` service is a function used to lookup SVG icons.
- *
- * @param {string} id Query value for a unique Id or URL. If the argument is a URL, then the service will retrieve the icon element
- * from its internal cache or load the icon and cache it first. If the value is not a URL-type string, then an ID lookup is
- * performed. The Id may be a unique icon ID or may include an iconSet ID prefix.
- *
- * For the **id** query to work properly, this means that all id-to-URL mappings must have been previously configured
- * using the `$mdIconProvider`.
- *
- * @returns {obj} Clone of the initial SVG DOM element; which was created from the SVG markup in the SVG data file.
- *
- * @usage
- * <hljs lang="js">
- * function SomeDirective($mdIcon) {
- *
- * // See if the icon has already been loaded, if not
- * // then lookup the icon from the registry cache, load and cache
- * // it for future requests.
- * // NOTE: ID queries require configuration with $mdIconProvider
- *
- * $mdIcon('android').then(function(iconEl) { element.append(iconEl); });
- * $mdIcon('work:chair').then(function(iconEl) { element.append(iconEl); });
- *
- * // Load and cache the external SVG using a URL
- *
- * $mdIcon('img/icons/android.svg').then(function(iconEl) {
- * element.append(iconEl);
- * });
- * };
- * </hljs>
- *
- * NOTE: The `<md-icon /> ` directive internally uses the `$mdIcon` service to query, loaded, and instantiate
- * SVG DOM elements.
- */
- function MdIconService(config, $http, $q, $log, $templateCache) {
- var iconCache = {};
- var urlRegex = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i;
-
- Icon.prototype = { clone : cloneSVG, prepare: prepareAndStyle };
- getIcon.fontSet = findRegisteredFontSet;
-
- // Publish service...
- return getIcon;
-
- /**
- * Actual $mdIcon service is essentially a lookup function
- */
- function getIcon(id) {
- id = id || '';
-
- // If already loaded and cached, use a clone of the cached icon.
- // Otherwise either load by URL, or lookup in the registry and then load by URL, and cache.
-
- if ( iconCache[id] ) return $q.when( iconCache[id].clone() );
- if ( urlRegex.test(id) ) return loadByURL(id).then( cacheIcon(id) );
- if ( id.indexOf(':') == -1 ) id = '$default:' + id;
-
- return loadByID(id)
- .catch(loadFromIconSet)
- .catch(announceIdNotFound)
- .catch(announceNotFound)
- .then( cacheIcon(id) );
- }
-
- /**
- * Lookup registered fontSet style using its alias...
- * If not found,
- */
- function findRegisteredFontSet(alias) {
- var useDefault = angular.isUndefined(alias) || !(alias && alias.length);
- if ( useDefault ) return config.defaultFontSet;
-
- var result = alias;
- angular.forEach(config.fontSets, function(it){
- if ( it.alias == alias ) result = it.fontSet || result;
- });
-
- return result;
- }
-
- /**
- * Prepare and cache the loaded icon for the specified `id`
- */
- function cacheIcon( id ) {
-
- return function updateCache( icon ) {
- iconCache[id] = isIcon(icon) ? icon : new Icon(icon, config[id]);
-
- return iconCache[id].clone();
- };
- }
-
- /**
- * Lookup the configuration in the registry, if !registered throw an error
- * otherwise load the icon [on-demand] using the registered URL.
- *
- */
- function loadByID(id) {
- var iconConfig = config[id];
-
- return !iconConfig ? $q.reject(id) : loadByURL(iconConfig.url).then(function(icon) {
- return new Icon(icon, iconConfig);
- });
- }
-
- /**
- * Loads the file as XML and uses querySelector( <id> ) to find
- * the desired node...
- */
- function loadFromIconSet(id) {
- var setName = id.substring(0, id.lastIndexOf(':')) || '$default';
- var iconSetConfig = config[setName];
-
- return !iconSetConfig ? $q.reject(id) : loadByURL(iconSetConfig.url).then(extractFromSet);
-
- function extractFromSet(set) {
- var iconName = id.slice(id.lastIndexOf(':') + 1);
- var icon = set.querySelector('#' + iconName);
- return !icon ? $q.reject(id) : new Icon(icon, iconSetConfig);
- }
- }
-
- /**
- * Load the icon by URL (may use the $templateCache).
- * Extract the data for later conversion to Icon
- */
- function loadByURL(url) {
- return $http
- .get(url, { cache: $templateCache })
- .then(function(response) {
- return angular.element('<div>').append(response.data).find('svg')[0];
- });
- }
-
- /**
- * User did not specify a URL and the ID has not been registered with the $mdIcon
- * registry
- */
- function announceIdNotFound(id) {
- var msg;
-
- if (angular.isString(id)) {
- msg = 'icon ' + id + ' not found';
- $log.warn(msg);
- }
-
- return $q.reject(msg || id);
- }
-
- /**
- * Catch HTTP or generic errors not related to incorrect icon IDs.
- */
- function announceNotFound(err) {
- var msg = angular.isString(err) ? err : (err.message || err.data || err.statusText);
- $log.warn(msg);
-
- return $q.reject(msg);
- }
-
- /**
- * Check target signature to see if it is an Icon instance.
- */
- function isIcon(target) {
- return angular.isDefined(target.element) && angular.isDefined(target.config);
- }
-
- /**
- * Define the Icon class
- */
- function Icon(el, config) {
- if (el.tagName != 'svg') {
- el = angular.element('<svg xmlns="http://www.w3.org/2000/svg">').append(el)[0];
- }
-
- // Inject the namespace if not available...
- if ( !el.getAttribute('xmlns') ) {
- el.setAttribute('xmlns', "http://www.w3.org/2000/svg");
- }
-
- this.element = el;
- this.config = config;
- this.prepare();
- }
-
- /**
- * Prepare the DOM element that will be cached in the
- * loaded iconCache store.
- */
- function prepareAndStyle() {
- var iconSize = this.config ? this.config.iconSize : config.defaultIconSize;
- angular.forEach({
- 'fit' : '',
- 'height': '100%',
- 'width' : '100%',
- 'preserveAspectRatio': 'xMidYMid meet',
- 'viewBox' : this.element.getAttribute('viewBox') || ('0 0 ' + iconSize + ' ' + iconSize)
- }, function(val, attr) {
- this.element.setAttribute(attr, val);
- }, this);
-
- angular.forEach({
- 'pointer-events' : 'none',
- 'display' : 'block'
- }, function(val, style) {
- this.element.style[style] = val;
- }, this);
- }
-
- /**
- * Clone the Icon DOM element.
- */
- function cloneSVG(){
- return this.element.cloneNode(true);
- }
-
- }
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.input
- */
-
-angular.module('material.components.input', [
- 'material.core'
-])
- .directive('mdInputContainer', mdInputContainerDirective)
- .directive('label', labelDirective)
- .directive('input', inputTextareaDirective)
- .directive('textarea', inputTextareaDirective)
- .directive('mdMaxlength', mdMaxlengthDirective)
- .directive('placeholder', placeholderDirective);
-
-/**
- * @ngdoc directive
- * @name mdInputContainer
- * @module material.components.input
- *
- * @restrict E
- *
- * @description
- * `<md-input-container>` is the parent of any input or textarea element.
- *
- * Input and textarea elements will not behave properly unless the md-input-container
- * parent is provided.
- *
- * @param md-is-error {expression=} When the given expression evaluates to true, the input container will go into error state. Defaults to erroring if the input has been touched and is invalid.
- * @param md-no-float {boolean=} When present, placeholders will not be converted to floating labels
- *
- * @usage
- * <hljs lang="html">
- *
- * <md-input-container>
- * <label>Username</label>
- * <input type="text" ng-model="user.name">
- * </md-input-container>
- *
- * <md-input-container>
- * <label>Description</label>
- * <textarea ng-model="user.description"></textarea>
- * </md-input-container>
- *
- * </hljs>
- */
-function mdInputContainerDirective($mdTheming, $parse) {
- ContainerCtrl.$inject = ["$scope", "$element", "$attrs"];
- return {
- restrict: 'E',
- link: postLink,
- controller: ContainerCtrl
- };
-
- function postLink(scope, element, attr) {
- $mdTheming(element);
- }
- function ContainerCtrl($scope, $element, $attrs) {
- var self = this;
-
- self.isErrorGetter = $attrs.mdIsError && $parse($attrs.mdIsError);
-
- self.delegateClick = function() {
- self.input.focus();
- };
- self.element = $element;
- self.setFocused = function(isFocused) {
- $element.toggleClass('md-input-focused', !!isFocused);
- };
- self.setHasValue = function(hasValue) {
- $element.toggleClass('md-input-has-value', !!hasValue);
- };
- self.setInvalid = function(isInvalid) {
- $element.toggleClass('md-input-invalid', !!isInvalid);
- };
- $scope.$watch(function() {
- return self.label && self.input;
- }, function(hasLabelAndInput) {
- if (hasLabelAndInput && !self.label.attr('for')) {
- self.label.attr('for', self.input.attr('id'));
- }
- });
- }
-}
-mdInputContainerDirective.$inject = ["$mdTheming", "$parse"];
-
-function labelDirective() {
- return {
- restrict: 'E',
- require: '^?mdInputContainer',
- link: function(scope, element, attr, containerCtrl) {
- if (!containerCtrl || attr.mdNoFloat) return;
-
- containerCtrl.label = element;
- scope.$on('$destroy', function() {
- containerCtrl.label = null;
- });
- }
- };
-}
-
-/**
- * @ngdoc directive
- * @name mdInput
- * @restrict E
- * @module material.components.input
- *
- * @description
- * Use the `<input>` or the `<textarea>` as a child of an `<md-input-container>`.
- *
- * @param {number=} md-maxlength The maximum number of characters allowed in this input. If this is specified, a character counter will be shown underneath the input.<br/><br/>
- * The purpose of **`md-maxlength`** is exactly to show the max length counter text. If you don't want the counter text and only need "plain" validation, you can use the "simple" `ng-maxlength` or maxlength attributes.
- * @param {string=} aria-label Aria-label is required when no label is present. A warning message will be logged in the console if not present.
- * @param {string=} placeholder An alternative approach to using aria-label when the label is not present. The placeholder text is copied to the aria-label attribute.
- *
- * @usage
- * <hljs lang="html">
- * <md-input-container>
- * <label>Color</label>
- * <input type="text" ng-model="color" required md-maxlength="10">
- * </md-input-container>
- * </hljs>
- * <h3>With Errors</h3>
- *
- * <hljs lang="html">
- * <form name="userForm">
- * <md-input-container>
- * <label>Last Name</label>
- * <input name="lastName" ng-model="lastName" required md-maxlength="10" minlength="4">
- * <div ng-messages="userForm.lastName.$error" ng-show="userForm.lastName.$dirty">
- * <div ng-message="required">This is required!</div>
- * <div ng-message="md-maxlength">That's too long!</div>
- * <div ng-message="minlength">That's too short!</div>
- * </div>
- * </md-input-container>
- * <md-input-container>
- * <label>Biography</label>
- * <textarea name="bio" ng-model="biography" required md-maxlength="150"></textarea>
- * <div ng-messages="userForm.bio.$error" ng-show="userForm.bio.$dirty">
- * <div ng-message="required">This is required!</div>
- * <div ng-message="md-maxlength">That's too long!</div>
- * </div>
- * </md-input-container>
- * <md-input-container>
- * <input aria-label='title' ng-model='title'>
- * </md-input-container>
- * <md-input-container>
- * <input placeholder='title' ng-model='title'>
- * </md-input-container>
- * </form>
- * </hljs>
- *
- * Requires [ngMessages](https://docs.angularjs.org/api/ngMessages).
- * Behaves like the [AngularJS input directive](https://docs.angularjs.org/api/ng/directive/input).
- *
- */
-
-function inputTextareaDirective($mdUtil, $window, $mdAria) {
- return {
- restrict: 'E',
- require: ['^?mdInputContainer', '?ngModel'],
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrls) {
-
- var containerCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1] || $mdUtil.fakeNgModel();
- var isReadonly = angular.isDefined(attr.readonly);
-
- if ( !containerCtrl ) return;
- if (containerCtrl.input) {
- throw new Error("<md-input-container> can only have *one* <input> or <textarea> child element!");
- }
- containerCtrl.input = element;
-
- if(!containerCtrl.label) {
- $mdAria.expect(element, 'aria-label', element.attr('placeholder'));
- }
-
- element.addClass('md-input');
- if (!element.attr('id')) {
- element.attr('id', 'input_' + $mdUtil.nextUid());
- }
-
- if (element[0].tagName.toLowerCase() === 'textarea') {
- setupTextarea();
- }
-
- var isErrorGetter = containerCtrl.isErrorGetter || function() {
- return ngModelCtrl.$invalid && ngModelCtrl.$touched;
- };
- scope.$watch(isErrorGetter, containerCtrl.setInvalid);
-
- ngModelCtrl.$parsers.push(ngModelPipelineCheckValue);
- ngModelCtrl.$formatters.push(ngModelPipelineCheckValue);
-
- element.on('input', inputCheckValue);
-
- if (!isReadonly) {
- element
- .on('focus', function(ev) {
- containerCtrl.setFocused(true);
- })
- .on('blur', function(ev) {
- containerCtrl.setFocused(false);
- inputCheckValue();
- });
-
- }
-
- //ngModelCtrl.$setTouched();
- //if( ngModelCtrl.$invalid ) containerCtrl.setInvalid();
-
- scope.$on('$destroy', function() {
- containerCtrl.setFocused(false);
- containerCtrl.setHasValue(false);
- containerCtrl.input = null;
- });
-
- /**
- *
- */
- function ngModelPipelineCheckValue(arg) {
- containerCtrl.setHasValue(!ngModelCtrl.$isEmpty(arg));
- return arg;
- }
- function inputCheckValue() {
- // An input's value counts if its length > 0,
- // or if the input's validity state says it has bad input (eg string in a number input)
- containerCtrl.setHasValue(element.val().length > 0 || (element[0].validity||{}).badInput);
- }
-
- function setupTextarea() {
- var node = element[0];
- var onChangeTextarea = $mdUtil.debounce(growTextarea, 1);
-
- function pipelineListener(value) {
- onChangeTextarea();
- return value;
- }
-
- if (ngModelCtrl) {
- ngModelCtrl.$formatters.push(pipelineListener);
- ngModelCtrl.$viewChangeListeners.push(pipelineListener);
- } else {
- onChangeTextarea();
- }
- element.on('keydown input', onChangeTextarea);
- element.on('scroll', onScroll);
- angular.element($window).on('resize', onChangeTextarea);
-
- scope.$on('$destroy', function() {
- angular.element($window).off('resize', onChangeTextarea);
- });
-
- function growTextarea() {
- node.style.height = "auto";
- node.scrollTop = 0;
- var height = getHeight();
- if (height) node.style.height = height + 'px';
- }
-
- function getHeight () {
- var line = node.scrollHeight - node.offsetHeight;
- return node.offsetHeight + (line > 0 ? line : 0);
- }
-
- function onScroll(e) {
- node.scrollTop = 0;
- // for smooth new line adding
- var line = node.scrollHeight - node.offsetHeight;
- var height = node.offsetHeight + line;
- node.style.height = height + 'px';
- }
- }
- }
-}
-inputTextareaDirective.$inject = ["$mdUtil", "$window", "$mdAria"];
-
-function mdMaxlengthDirective($animate) {
- return {
- restrict: 'A',
- require: ['ngModel', '^mdInputContainer'],
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrls) {
- var maxlength;
- var ngModelCtrl = ctrls[0];
- var containerCtrl = ctrls[1];
- var charCountEl = angular.element('<div class="md-char-counter">');
-
- // Stop model from trimming. This makes it so whitespace
- // over the maxlength still counts as invalid.
- attr.$set('ngTrim', 'false');
- containerCtrl.element.append(charCountEl);
-
- ngModelCtrl.$formatters.push(renderCharCount);
- ngModelCtrl.$viewChangeListeners.push(renderCharCount);
- element.on('input keydown', function() {
- renderCharCount(); //make sure it's called with no args
- });
-
- scope.$watch(attr.mdMaxlength, function(value) {
- maxlength = value;
- if (angular.isNumber(value) && value > 0) {
- if (!charCountEl.parent().length) {
- $animate.enter(charCountEl, containerCtrl.element,
- angular.element(containerCtrl.element[0].lastElementChild));
- }
- renderCharCount();
- } else {
- $animate.leave(charCountEl);
- }
- });
-
- ngModelCtrl.$validators['md-maxlength'] = function(modelValue, viewValue) {
- if (!angular.isNumber(maxlength) || maxlength < 0) {
- return true;
- }
- return ( modelValue || element.val() || viewValue || '' ).length <= maxlength;
- };
-
- function renderCharCount(value) {
- charCountEl.text( ( element.val() || value || '' ).length + '/' + maxlength );
- return value;
- }
- }
-}
-mdMaxlengthDirective.$inject = ["$animate"];
-
-function placeholderDirective($log) {
- var blackListElements = ['MD-SELECT'];
- return {
- restrict: 'A',
- require: '^^?mdInputContainer',
- priority: 200,
- link: postLink
- };
-
- function postLink(scope, element, attr, inputContainer) {
- if (!inputContainer) return;
- if (blackListElements.indexOf(element[0].nodeName) != -1) return;
- if (angular.isDefined(inputContainer.element.attr('md-no-float'))) return;
-
- var placeholderText = attr.placeholder;
- element.removeAttr('placeholder');
-
- if ( inputContainer.element.find('label').length == 0 ) {
- var placeholder = '<label ng-click="delegateClick()">' + placeholderText + '</label>';
-
- inputContainer.element.addClass('md-icon-float');
- inputContainer.element.prepend(placeholder);
- } else {
- $log.warn("The placeholder='" + placeholderText + "' will be ignored since this md-input-container has a child label element.");
- }
-
- }
-}
-placeholderDirective.$inject = ["$log"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.list
- * @description
- * List module
- */
-angular.module('material.components.list', [
- 'material.core'
-])
- .controller('MdListController', MdListController)
- .directive('mdList', mdListDirective)
- .directive('mdListItem', mdListItemDirective);
-
-/**
- * @ngdoc directive
- * @name mdList
- * @module material.components.list
- *
- * @restrict E
- *
- * @description
- * The `<md-list>` directive is a list container for 1..n `<md-list-item>` tags.
- *
- * @usage
- * <hljs lang="html">
- * <md-list>
- * <md-list-item class="md-2-line" ng-repeat="item in todos">
- * <md-checkbox ng-model="item.done"></md-checkbox>
- * <div class="md-list-item-text">
- * <h3>{{item.title}}</h3>
- * <p>{{item.description}}</p>
- * </div>
- * </md-list-item>
- * </md-list>
- * </hljs>
- */
-
-function mdListDirective($mdTheming) {
- return {
- restrict: 'E',
- compile: function(tEl) {
- tEl[0].setAttribute('role', 'list');
- return $mdTheming;
- }
- };
-}
-mdListDirective.$inject = ["$mdTheming"];
-/**
- * @ngdoc directive
- * @name mdListItem
- * @module material.components.list
- *
- * @restrict E
- *
- * @description
- * The `<md-list-item>` directive is a container intended for row items in a `<md-list>` container.
- *
- * @usage
- * <hljs lang="html">
- * <md-list>
- * <md-list-item>
- * Item content in list
- * </md-list-item>
- * </md-list>
- * </hljs>
- *
- */
-function mdListItemDirective($mdAria, $mdConstant, $timeout) {
- var proxiedTypes = ['md-checkbox', 'md-switch'];
- return {
- restrict: 'E',
- controller: 'MdListController',
- compile: function(tEl, tAttrs) {
- // Check for proxy controls (no ng-click on parent, and a control inside)
- var secondaryItem = tEl[0].querySelector('.md-secondary');
- var hasProxiedElement;
- var proxyElement;
-
- tEl[0].setAttribute('role', 'listitem');
-
- if (!tAttrs.ngClick) {
- for (var i = 0, type; type = proxiedTypes[i]; ++i) {
- if (proxyElement = tEl[0].querySelector(type)) {
- hasProxiedElement = true;
- break;
- }
- }
- if (hasProxiedElement) {
- wrapIn('div');
- } else if (!tEl[0].querySelector('md-button')) {
- tEl.addClass('md-no-proxy');
- }
- } else {
- wrapIn('button');
- }
- setupToggleAria();
-
-
- function setupToggleAria() {
- var toggleTypes = ['md-switch', 'md-checkbox'];
- var toggle;
-
- for (var i = 0, toggleType; toggleType = toggleTypes[i]; ++i) {
- if (toggle = tEl.find(toggleType)[0]) {
- if (!toggle.hasAttribute('aria-label')) {
- var p = tEl.find('p')[0];
- if (!p) return;
- toggle.setAttribute('aria-label', 'Toggle ' + p.textContent);
- }
- }
- }
- }
-
- function wrapIn(type) {
- var container;
- if (type == 'div') {
- container = angular.element('<div class="md-no-style md-list-item-inner">');
- container.append(tEl.contents());
- tEl.addClass('md-proxy-focus');
- } else {
- container = angular.element('<md-button class="md-no-style"><div class="md-list-item-inner"></div></md-button>');
- var copiedAttrs = ['ng-click', 'aria-label', 'ng-disabled'];
- angular.forEach(copiedAttrs, function(attr) {
- if (tEl[0].hasAttribute(attr)) {
- container[0].setAttribute(attr, tEl[0].getAttribute(attr));
- tEl[0].removeAttribute(attr);
- }
- });
- container.children().eq(0).append(tEl.contents());
- }
-
- tEl[0].setAttribute('tabindex', '-1');
- tEl.append(container);
-
- if (secondaryItem && secondaryItem.hasAttribute('ng-click')) {
- $mdAria.expect(secondaryItem, 'aria-label');
- var buttonWrapper = angular.element('<md-button class="md-secondary-container md-icon-button">');
- buttonWrapper.attr('ng-click', secondaryItem.getAttribute('ng-click'));
- secondaryItem.removeAttribute('ng-click');
- secondaryItem.setAttribute('tabindex', '-1');
- secondaryItem.classList.remove('md-secondary');
- buttonWrapper.append(secondaryItem);
- secondaryItem = buttonWrapper[0];
- }
-
- // Check for a secondary item and move it outside
- if ( secondaryItem && (
- secondaryItem.hasAttribute('ng-click') ||
- ( tAttrs.ngClick &&
- isProxiedElement(secondaryItem) )
- )) {
- tEl.addClass('md-with-secondary');
- tEl.append(secondaryItem);
- }
- }
-
- function isProxiedElement(el) {
- return proxiedTypes.indexOf(el.nodeName.toLowerCase()) != -1;
- }
-
- return postLink;
-
- function postLink($scope, $element, $attr, ctrl) {
-
- var proxies = [],
- firstChild = $element[0].firstElementChild,
- hasClick = firstChild && firstChild.hasAttribute('ng-click');
-
- computeProxies();
- computeClickable();
-
- if ($element.hasClass('md-proxy-focus') && proxies.length) {
- angular.forEach(proxies, function(proxy) {
- proxy = angular.element(proxy);
-
- $scope.mouseActive = false;
- proxy.on('mousedown', function() {
- $scope.mouseActive = true;
- $timeout(function(){
- $scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if ($scope.mouseActive === false) { $element.addClass('md-focused'); }
- proxy.on('blur', function proxyOnBlur() {
- $element.removeClass('md-focused');
- proxy.off('blur', proxyOnBlur);
- });
- });
- });
- }
-
- function computeProxies() {
- var children = $element.children();
- if (children.length && !children[0].hasAttribute('ng-click')) {
- angular.forEach(proxiedTypes, function(type) {
- angular.forEach(firstChild.querySelectorAll(type), function(child) {
- proxies.push(child);
- });
- });
- }
- }
- function computeClickable() {
- if (proxies.length || hasClick) {
- $element.addClass('md-clickable');
-
- ctrl.attachRipple($scope, angular.element($element[0].querySelector('.md-no-style')));
- }
- }
-
- if (!hasClick && !proxies.length) {
- firstChild && firstChild.addEventListener('keypress', function(e) {
- if (e.target.nodeName != 'INPUT' && e.target.nodeName != 'TEXTAREA') {
- var keyCode = e.which || e.keyCode;
- if (keyCode == $mdConstant.KEY_CODE.SPACE) {
- if (firstChild) {
- firstChild.click();
- e.preventDefault();
- e.stopPropagation();
- }
- }
- }
- });
- }
-
- $element.off('click');
- $element.off('keypress');
-
- if (proxies.length && firstChild) {
- $element.children().eq(0).on('click', function(e) {
- if (firstChild.contains(e.target)) {
- angular.forEach(proxies, function(proxy) {
- if (e.target !== proxy && !proxy.contains(e.target)) {
- angular.element(proxy).triggerHandler('click');
- }
- });
- }
- });
- }
- }
- }
- };
-}
-mdListItemDirective.$inject = ["$mdAria", "$mdConstant", "$timeout"];
-
-/*
- * @private
- * @ngdoc controller
- * @name MdListController
- * @module material.components.list
- *
- */
-function MdListController($scope, $element, $mdListInkRipple) {
- var ctrl = this;
- ctrl.attachRipple = attachRipple;
-
- function attachRipple (scope, element) {
- var options = {};
- $mdListInkRipple.attach(scope, element, options);
- }
-}
-MdListController.$inject = ["$scope", "$element", "$mdListInkRipple"];
-
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.progressCircular
- * @description Circular Progress module!
- */
-angular.module('material.components.progressCircular', [
- 'material.core'
-])
- .directive('mdProgressCircular', MdProgressCircularDirective);
-
-/**
- * @ngdoc directive
- * @name mdProgressCircular
- * @module material.components.progressCircular
- * @restrict E
- *
-* @description
- * The circular progress directive is used to make loading content in your app as delightful and
- * painless as possible by minimizing the amount of visual change a user sees before they can view
- * and interact with content.
- *
- * For operations where the percentage of the operation completed can be determined, use a
- * determinate indicator. They give users a quick sense of how long an operation will take.
- *
- * For operations where the user is asked to wait a moment while something finishes up, and it’s
- * not necessary to expose what's happening behind the scenes and how long it will take, use an
- * indeterminate indicator.
- *
- * @param {string} md-mode Select from one of two modes: determinate and indeterminate.
- * @param {number=} value In determinate mode, this number represents the percentage of the
- * circular progress. Default: 0
- * @param {number=} md-diameter This specifies the diamter of the circular progress. Default: 48
- *
- * @usage
- * <hljs lang="html">
- * <md-progress-circular md-mode="determinate" value="..."></md-progress-circular>
- *
- * <md-progress-circular md-mode="determinate" ng-value="..."></md-progress-circular>
- *
- * <md-progress-circular md-mode="determinate" value="..." md-diameter="100"></md-progress-circular>
- *
- * <md-progress-circular md-mode="indeterminate"></md-progress-circular>
- * </hljs>
- */
-function MdProgressCircularDirective($mdConstant, $mdTheming) {
- return {
- restrict: 'E',
- template:
- // The progress 'circle' is composed of two half-circles: the left side and the right
- // side. Each side has CSS applied to 'fill-in' the half-circle to the appropriate progress.
- '<div class="md-spinner-wrapper">' +
- '<div class="md-inner">' +
- '<div class="md-gap"></div>' +
- '<div class="md-left">' +
- '<div class="md-half-circle"></div>' +
- '</div>' +
- '<div class="md-right">' +
- '<div class="md-half-circle"></div>' +
- '</div>' +
- '</div>' +
- '</div>',
- compile: compile
- };
-
- function compile(tElement) {
- // The javascript in this file is mainly responsible for setting the correct aria attributes.
- // The animation of the progress spinner is done entirely with just CSS.
- tElement.attr('aria-valuemin', 0);
- tElement.attr('aria-valuemax', 100);
- tElement.attr('role', 'progressbar');
-
- return postLink;
- }
-
- function postLink(scope, element, attr) {
- $mdTheming(element);
- var circle = element[0];
-
- // Scale the progress circle based on the default diameter.
- var diameter = attr.mdDiameter || 48;
- var scale = diameter / 48;
- circle.style[$mdConstant.CSS.TRANSFORM] = 'scale(' + scale + ')';
-
- attr.$observe('value', function(value) {
- var percentValue = clamp(value);
- element.attr('aria-valuenow', percentValue);
- });
- }
-
- /**
- * Clamps the value to be between 0 and 100.
- * @param {number} value The value to clamp.
- * @returns {number}
- */
- function clamp(value) {
- return Math.max(0, Math.min(value || 0, 100));
- }
-}
-MdProgressCircularDirective.$inject = ["$mdConstant", "$mdTheming"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.progressLinear
- * @description Linear Progress module!
- */
-angular.module('material.components.progressLinear', [
- 'material.core'
-])
- .directive('mdProgressLinear', MdProgressLinearDirective);
-
-/**
- * @ngdoc directive
- * @name mdProgressLinear
- * @module material.components.progressLinear
- * @restrict E
- *
- * @description
- * The linear progress directive is used to make loading content in your app as delightful and painless as possible by minimizing the amount of visual change a user sees before they can view and interact with content. Each operation should only be represented by one activity indicator—for example, one refresh operation should not display both a refresh bar and an activity circle.
- *
- * For operations where the percentage of the operation completed can be determined, use a determinate indicator. They give users a quick sense of how long an operation will take.
- *
- * For operations where the user is asked to wait a moment while something finishes up, and it’s not necessary to expose what's happening behind the scenes and how long it will take, use an indeterminate indicator.
- *
- * @param {string} md-mode Select from one of four modes: determinate, indeterminate, buffer or query.
- * @param {number=} value In determinate and buffer modes, this number represents the percentage of the primary progress bar. Default: 0
- * @param {number=} md-buffer-value In the buffer mode, this number represents the precentage of the secondary progress bar. Default: 0
- *
- * @usage
- * <hljs lang="html">
- * <md-progress-linear md-mode="determinate" value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="determinate" ng-value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="indeterminate"></md-progress-linear>
- *
- * <md-progress-linear md-mode="buffer" value="..." md-buffer-value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="query"></md-progress-linear>
- * </hljs>
- */
-function MdProgressLinearDirective($$rAF, $mdConstant, $mdTheming) {
-
- return {
- restrict: 'E',
- template: '<div class="md-container">' +
- '<div class="md-dashed"></div>' +
- '<div class="md-bar md-bar1"></div>' +
- '<div class="md-bar md-bar2"></div>' +
- '</div>',
- compile: compile
- };
-
- function compile(tElement, tAttrs, transclude) {
- tElement.attr('aria-valuemin', 0);
- tElement.attr('aria-valuemax', 100);
- tElement.attr('role', 'progressbar');
-
- return postLink;
- }
- function postLink(scope, element, attr) {
- $mdTheming(element);
- var bar1Style = element[0].querySelector('.md-bar1').style,
- bar2Style = element[0].querySelector('.md-bar2').style,
- container = angular.element(element[0].querySelector('.md-container'));
-
- attr.$observe('value', function(value) {
- if (attr.mdMode == 'query') {
- return;
- }
-
- var clamped = clamp(value);
- element.attr('aria-valuenow', clamped);
- bar2Style[$mdConstant.CSS.TRANSFORM] = transforms[clamped];
- });
-
- attr.$observe('mdBufferValue', function(value) {
- bar1Style[$mdConstant.CSS.TRANSFORM] = transforms[clamp(value)];
- });
-
- $$rAF(function() {
- container.addClass('md-ready');
- });
- }
-
- function clamp(value) {
- if (value > 100) {
- return 100;
- }
-
- if (value < 0) {
- return 0;
- }
-
- return Math.ceil(value || 0);
- }
-}
-MdProgressLinearDirective.$inject = ["$$rAF", "$mdConstant", "$mdTheming"];
-
-
-// **********************************************************
-// Private Methods
-// **********************************************************
-var transforms = (function() {
- var values = new Array(101);
- for(var i = 0; i < 101; i++){
- values[i] = makeTransform(i);
- }
-
- return values;
-
- function makeTransform(value){
- var scale = value/100;
- var translateX = (value-100)/2;
- return 'translateX(' + translateX.toString() + '%) scale(' + scale.toString() + ', 1)';
- }
-})();
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.radioButton
- * @description radioButton module!
- */
-angular.module('material.components.radioButton', [
- 'material.core'
-])
- .directive('mdRadioGroup', mdRadioGroupDirective)
- .directive('mdRadioButton', mdRadioButtonDirective);
-
-/**
- * @ngdoc directive
- * @module material.components.radioButton
- * @name mdRadioGroup
- *
- * @restrict E
- *
- * @description
- * The `<md-radio-group>` directive identifies a grouping
- * container for the 1..n grouped radio buttons; specified using nested
- * `<md-radio-button>` tags.
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the radio button is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * Note: `<md-radio-group>` and `<md-radio-button>` handle tabindex differently
- * than the native `<input type='radio'>` controls. Whereas the native controls
- * force the user to tab through all the radio buttons, `<md-radio-group>`
- * is focusable, and by default the `<md-radio-button>`s are not.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {boolean=} md-no-ink Use of attribute indicates flag to disable ink ripple effects.
- *
- * @usage
- * <hljs lang="html">
- * <md-radio-group ng-model="selected">
- *
- * <md-radio-button
- * ng-repeat="d in colorOptions"
- * ng-value="d.value" aria-label="{{ d.label }}">
- *
- * {{ d.label }}
- *
- * </md-radio-button>
- *
- * </md-radio-group>
- * </hljs>
- *
- */
-function mdRadioGroupDirective($mdUtil, $mdConstant, $mdTheming, $timeout) {
- RadioGroupController.prototype = createRadioGroupControllerProto();
-
- return {
- restrict: 'E',
- controller: ['$element', RadioGroupController],
- require: ['mdRadioGroup', '?ngModel'],
- link: { pre: linkRadioGroup }
- };
-
- function linkRadioGroup(scope, element, attr, ctrls) {
- $mdTheming(element);
- var rgCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1] || $mdUtil.fakeNgModel();
-
- function setFocus() {
- if (!element.hasClass('md-focused')) { element.addClass('md-focused'); }
- }
-
- function keydownListener(ev) {
- var keyCode = ev.which || ev.keyCode;
- switch(keyCode) {
- case $mdConstant.KEY_CODE.LEFT_ARROW:
- case $mdConstant.KEY_CODE.UP_ARROW:
- ev.preventDefault();
- rgCtrl.selectPrevious();
- setFocus();
- break;
-
- case $mdConstant.KEY_CODE.RIGHT_ARROW:
- case $mdConstant.KEY_CODE.DOWN_ARROW:
- ev.preventDefault();
- rgCtrl.selectNext();
- setFocus();
- break;
-
- case $mdConstant.KEY_CODE.ENTER:
- var form = angular.element($mdUtil.getClosest(element[0], 'form'));
- if (form.length > 0) {
- form.triggerHandler('submit');
- }
- break;
- }
- }
-
- rgCtrl.init(ngModelCtrl);
-
- scope.mouseActive = false;
- element.attr({
- 'role': 'radiogroup',
- 'tabIndex': element.attr('tabindex') || '0'
- })
- .on('keydown', keydownListener)
- .on('mousedown', function(event) {
- scope.mouseActive = true;
- $timeout(function() {
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { rgCtrl.$element.addClass('md-focused'); }
- })
- .on('blur', function() { rgCtrl.$element.removeClass('md-focused'); });
- }
-
- function RadioGroupController($element) {
- this._radioButtonRenderFns = [];
- this.$element = $element;
- }
-
- function createRadioGroupControllerProto() {
- return {
- init: function(ngModelCtrl) {
- this._ngModelCtrl = ngModelCtrl;
- this._ngModelCtrl.$render = angular.bind(this, this.render);
- },
- add: function(rbRender) {
- this._radioButtonRenderFns.push(rbRender);
- },
- remove: function(rbRender) {
- var index = this._radioButtonRenderFns.indexOf(rbRender);
- if (index !== -1) {
- this._radioButtonRenderFns.splice(index, 1);
- }
- },
- render: function() {
- this._radioButtonRenderFns.forEach(function(rbRender) {
- rbRender();
- });
- },
- setViewValue: function(value, eventType) {
- this._ngModelCtrl.$setViewValue(value, eventType);
- // update the other radio buttons as well
- this.render();
- },
- getViewValue: function() {
- return this._ngModelCtrl.$viewValue;
- },
- selectNext: function() {
- return changeSelectedButton(this.$element, 1);
- },
- selectPrevious: function() {
- return changeSelectedButton(this.$element, -1);
- },
- setActiveDescendant: function (radioId) {
- this.$element.attr('aria-activedescendant', radioId);
- }
- };
- }
- /**
- * Change the radio group's selected button by a given increment.
- * If no button is selected, select the first button.
- */
- function changeSelectedButton(parent, increment) {
- // Coerce all child radio buttons into an array, then wrap then in an iterator
- var buttons = $mdUtil.iterator(parent[0].querySelectorAll('md-radio-button'), true);
-
- if (buttons.count()) {
- var validate = function (button) {
- // If disabled, then NOT valid
- return !angular.element(button).attr("disabled");
- };
- var selected = parent[0].querySelector('md-radio-button.md-checked');
- var target = buttons[increment < 0 ? 'previous' : 'next'](selected, validate) || buttons.first();
- // Activate radioButton's click listener (triggerHandler won't create a real click event)
- angular.element(target).triggerHandler('click');
-
-
- }
- }
-
-}
-mdRadioGroupDirective.$inject = ["$mdUtil", "$mdConstant", "$mdTheming", "$timeout"];
-
-/**
- * @ngdoc directive
- * @module material.components.radioButton
- * @name mdRadioButton
- *
- * @restrict E
- *
- * @description
- * The `<md-radio-button>`directive is the child directive required to be used within `<md-radio-group>` elements.
- *
- * While similar to the `<input type="radio" ng-model="" value="">` directive,
- * the `<md-radio-button>` directive provides ink effects, ARIA support, and
- * supports use within named radio groups.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {string} ngValue Angular expression which sets the value to which the expression should
- * be set when selected.*
- * @param {string} value The value to which the expression should be set when selected.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} aria-label Adds label to radio button for accessibility.
- * Defaults to radio button's text. If no text content is available, a warning will be logged.
- *
- * @usage
- * <hljs lang="html">
- *
- * <md-radio-button value="1" aria-label="Label 1">
- * Label 1
- * </md-radio-button>
- *
- * <md-radio-button ng-model="color" ng-value="specialValue" aria-label="Green">
- * Green
- * </md-radio-button>
- *
- * </hljs>
- *
- */
-function mdRadioButtonDirective($mdAria, $mdUtil, $mdTheming) {
-
- var CHECKED_CSS = 'md-checked';
-
- return {
- restrict: 'E',
- require: '^mdRadioGroup',
- transclude: true,
- template: '<div class="md-container" md-ink-ripple md-ink-ripple-checkbox>' +
- '<div class="md-off"></div>' +
- '<div class="md-on"></div>' +
- '</div>' +
- '<div ng-transclude class="md-label"></div>',
- link: link
- };
-
- function link(scope, element, attr, rgCtrl) {
- var lastChecked;
-
- $mdTheming(element);
- configureAria(element, scope);
-
- rgCtrl.add(render);
- attr.$observe('value', render);
-
- element
- .on('click', listener)
- .on('$destroy', function() {
- rgCtrl.remove(render);
- });
-
- function listener(ev) {
- if (element[0].hasAttribute('disabled')) return;
-
- scope.$apply(function() {
- rgCtrl.setViewValue(attr.value, ev && ev.type);
- });
- }
-
- function render() {
- var checked = (rgCtrl.getViewValue() == attr.value);
- if (checked === lastChecked) {
- return;
- }
- lastChecked = checked;
- element.attr('aria-checked', checked);
- if (checked) {
- element.addClass(CHECKED_CSS);
- rgCtrl.setActiveDescendant(element.attr('id'));
- } else {
- element.removeClass(CHECKED_CSS);
- }
- }
- /**
- * Inject ARIA-specific attributes appropriate for each radio button
- */
- function configureAria( element, scope ){
- scope.ariaId = buildAriaID();
-
- element.attr({
- 'id' : scope.ariaId,
- 'role' : 'radio',
- 'aria-checked' : 'false'
- });
-
- $mdAria.expectWithText(element, 'aria-label');
-
- /**
- * Build a unique ID for each radio button that will be used with aria-activedescendant.
- * Preserve existing ID if already specified.
- * @returns {*|string}
- */
- function buildAriaID() {
- return attr.id || ( 'radio' + "_" + $mdUtil.nextUid() );
- }
- }
- }
-}
-mdRadioButtonDirective.$inject = ["$mdAria", "$mdUtil", "$mdTheming"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.select
- */
-
-/***************************************************
-
-### TODO ###
-**DOCUMENTATION AND DEMOS**
-
-- [ ] ng-model with child mdOptions (basic)
-- [ ] ng-model="foo" ng-model-options="{ trackBy: '$value.id' }" for objects
-- [ ] mdOption with value
-- [ ] Usage with input inside
-
-### TODO - POST RC1 ###
-- [ ] Abstract placement logic in $mdSelect service to $mdMenu service
-
-***************************************************/
-
-var SELECT_EDGE_MARGIN = 8;
-var selectNextId = 0;
-
-angular.module('material.components.select', [
- 'material.core',
- 'material.components.backdrop'
-])
-.directive('mdSelect', SelectDirective)
-.directive('mdSelectMenu', SelectMenuDirective)
-.directive('mdOption', OptionDirective)
-.directive('mdOptgroup', OptgroupDirective)
-.provider('$mdSelect', SelectProvider);
-
-
-/**
- * @ngdoc directive
- * @name mdSelect
- * @restrict E
- * @module material.components.select
- *
- * @description Displays a select box, bound to an ng-model.
- *
- * @param {expression} ng-model The model!
- * @param {boolean=} multiple Whether it's multiple.
- * @param {string=} placeholder Placeholder hint text.
- * @param {string=} aria-label Optional label for accessibility. Only necessary if no placeholder or
- * explicit label is present.
- *
- * @usage
- * With a placeholder (label and aria-label are added dynamically)
- * <hljs lang="html">
- * <md-select
- * ng-model="someModel"
- * placeholder="Select a state">
- * <md-option ng-value="opt" ng-repeat="opt in neighborhoods2">{{ opt }}</md-option>
- * </md-select>
- * </hljs>
- *
- * With an explicit label
- * <hljs lang="html">
- * <md-select
- * ng-model="someModel">
- * <md-select-label>Select a state</md-select-label>
- * <md-option ng-value="opt" ng-repeat="opt in neighborhoods2">{{ opt }}</md-option>
- * </md-select>
- * </hljs>
- */
-function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $interpolate, $compile, $parse) {
- return {
- restrict: 'E',
- require: ['mdSelect', 'ngModel', '?^form'],
- compile: compile,
- controller: function() { } // empty placeholder controller to be initialized in link
- };
-
- function compile(element, attr) {
- // The user is allowed to provide a label for the select as md-select-label child
- var labelEl = element.find('md-select-label').remove();
-
- // If not provided, we automatically make one
- if (!labelEl.length) {
- labelEl = angular.element('<md-select-label><span></span></md-select-label>');
- } else {
- if (!labelEl[0].firstElementChild) {
- var spanWrapper = angular.element('<span>');
- spanWrapper.append(labelEl.contents());
- labelEl.append(spanWrapper);
- }
- }
- labelEl.append('<span class="md-select-icon" aria-hidden="true"></span>');
- labelEl.addClass('md-select-label');
- if (!labelEl[0].hasAttribute('id')) {
- labelEl.attr('id', 'select_label_' + $mdUtil.nextUid());
- }
-
- // There's got to be an md-content inside. If there's not one, let's add it.
- if (!element.find('md-content').length) {
- element.append( angular.element('<md-content>').append(element.contents()) );
- }
-
- // Add progress spinner for md-options-loading
- if (attr.mdOnOpen) {
- element.find('md-content').prepend(
- angular.element('<md-progress-circular>')
- .attr('md-mode', 'indeterminate')
- .attr('ng-hide', '$$loadingAsyncDone')
- .wrap('<div>')
- .parent()
- );
- }
-
- if (attr.name) {
- var autofillClone = angular.element('<select class="md-visually-hidden">');
- autofillClone.attr({
- 'name': '.' + attr.name,
- 'ng-model': attr.ngModel,
- 'aria-hidden': 'true',
- 'tabindex': '-1'
- });
- var opts = element.find('md-option');
- angular.forEach(opts, function(el) {
- var newEl = angular.element('<option>' + el.innerHTML + '</option>');
- if (el.hasAttribute('ng-value')) newEl.attr('ng-value', el.getAttribute('ng-value'));
- else if (el.hasAttribute('value')) newEl.attr('value', el.getAttribute('value'));
- autofillClone.append(newEl);
- });
-
- element.parent().append(autofillClone);
- }
-
- // Use everything that's left inside element.contents() as the contents of the menu
- var selectTemplate = '<div class="md-select-menu-container">' +
- '<md-select-menu ' +
- (angular.isDefined(attr.multiple) ? 'multiple' : '') + '>' +
- element.html() +
- '</md-select-menu></div>';
-
- element.empty().append(labelEl);
-
- attr.tabindex = attr.tabindex || '0';
-
- return function postLink(scope, element, attr, ctrls) {
- var isOpen;
- var isDisabled;
-
- var mdSelectCtrl = ctrls[0];
- var ngModel = ctrls[1];
- var formCtrl = ctrls[2];
-
- var labelEl = element.find('md-select-label');
- var customLabel = labelEl.text().length !== 0;
- var selectContainer, selectScope, selectMenuCtrl;
- createSelect();
-
- $mdTheming(element);
-
- if (attr.name && formCtrl) {
- var selectEl = element.parent()[0].querySelector('select[name=".' + attr.name + '"]')
- formCtrl.$removeControl(angular.element(selectEl).controller());
- }
-
- var originalRender = ngModel.$render;
- ngModel.$render = function() {
- originalRender();
- syncLabelText();
- };
-
- mdSelectCtrl.setLabelText = function(text) {
- if (customLabel) return; // Assume that user is handling it on their own
- mdSelectCtrl.setIsPlaceholder(!text);
- text = text || attr.placeholder || '';
- var target = customLabel ? labelEl : labelEl.children().eq(0);
- target.text(text);
- };
-
- mdSelectCtrl.setIsPlaceholder = function(val) {
- val ? labelEl.addClass('md-placeholder') : labelEl.removeClass('md-placeholder');
- };
-
- scope.$$postDigest(function() {
- setAriaLabel();
- syncLabelText();
- });
-
- function setAriaLabel() {
- var labelText = element.attr('placeholder');
- if (!labelText) {
- labelText = element.find('md-select-label').text();
- }
- $mdAria.expect(element, 'aria-label', labelText);
- }
-
- function syncLabelText() {
- if (selectContainer) {
- selectMenuCtrl = selectMenuCtrl || selectContainer.find('md-select-menu').controller('mdSelectMenu');
- mdSelectCtrl.setLabelText(selectMenuCtrl.selectedLabels());
- }
- }
-
- var deregisterWatcher;
- attr.$observe('ngMultiple', function(val) {
- if (deregisterWatcher) deregisterWatcher();
- var parser = $parse(val);
- deregisterWatcher = scope.$watch(function() { return parser(scope); }, function(multiple, prevVal) {
- if (multiple === undefined && prevVal === undefined) return; // assume compiler did a good job
- if (multiple) {
- element.attr('multiple', 'multiple');
- } else {
- element.removeAttr('multiple');
- }
- if (selectContainer) {
- selectMenuCtrl.setMultiple(multiple);
- originalRender = ngModel.$render;
- ngModel.$render = function() {
- originalRender();
- syncLabelText();
- };
- selectMenuCtrl.refreshViewValue();
- ngModel.$render();
- }
- });
- });
-
- attr.$observe('disabled', function(disabled) {
- if (typeof disabled == "string") {
- disabled = true;
- }
- // Prevent click event being registered twice
- if (isDisabled !== undefined && isDisabled === disabled) {
- return;
- }
- isDisabled = disabled;
- if (disabled) {
- element.attr({'tabindex': -1, 'aria-disabled': 'true'});
- element.off('click', openSelect);
- element.off('keydown', handleKeypress);
- } else {
- element.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'});
- element.on('click', openSelect);
- element.on('keydown', handleKeypress);
- }
- });
- if (!attr.disabled && !attr.ngDisabled) {
- element.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'});
- element.on('click', openSelect);
- element.on('keydown', handleKeypress);
- }
-
- var ariaAttrs = {
- role: 'combobox',
- 'aria-expanded': 'false'
- };
- if (!element[0].hasAttribute('id')) {
- ariaAttrs.id = 'select_' + $mdUtil.nextUid();
- }
- element.attr(ariaAttrs);
-
- scope.$on('$destroy', function() {
- if (isOpen) {
- $mdSelect.cancel().then(function() {
- selectContainer.remove();
- });
- } else {
- selectContainer.remove();
- }
- });
-
-
- // Create a fake select to find out the label value
- function createSelect() {
- selectContainer = angular.element(selectTemplate);
- var selectEl = selectContainer.find('md-select-menu');
- selectEl.data('$ngModelController', ngModel);
- selectEl.data('$mdSelectController', mdSelectCtrl);
- selectScope = scope.$new();
- selectContainer = $compile(selectContainer)(selectScope);
- selectMenuCtrl = selectContainer.find('md-select-menu').controller('mdSelectMenu');
- }
-
- function handleKeypress(e) {
- var allowedCodes = [32, 13, 38, 40];
- if (allowedCodes.indexOf(e.keyCode) != -1 ) {
- // prevent page scrolling on interaction
- e.preventDefault();
- openSelect(e);
- } else {
- if (e.keyCode <= 90 && e.keyCode >= 31) {
- e.preventDefault();
- var node = selectMenuCtrl.optNodeForKeyboardSearch(e);
- if (!node) return;
- var optionCtrl = angular.element(node).controller('mdOption');
- if (!selectMenuCtrl.isMultiple) {
- selectMenuCtrl.deselect( Object.keys(selectMenuCtrl.selected)[0] );
- }
- selectMenuCtrl.select(optionCtrl.hashKey, optionCtrl.value);
- selectMenuCtrl.refreshViewValue();
- ngModel.$render();
- }
- }
- }
-
- function openSelect() {
- scope.$evalAsync(function() {
- isOpen = true;
- $mdSelect.show({
- scope: selectScope,
- preserveScope: true,
- skipCompile: true,
- element: selectContainer,
- target: element[0],
- hasBackdrop: true,
- loadingAsync: attr.mdOnOpen ? scope.$eval(attr.mdOnOpen) || true : false,
- }).then(function(selectedText) {
- isOpen = false;
- });
- });
- }
- };
- }
-}
-SelectDirective.$inject = ["$mdSelect", "$mdUtil", "$mdTheming", "$mdAria", "$interpolate", "$compile", "$parse"];
-
-function SelectMenuDirective($parse, $mdUtil, $mdTheming) {
-
- SelectMenuController.$inject = ["$scope", "$attrs", "$element"];
- return {
- restrict: 'E',
- require: ['mdSelectMenu', '?ngModel'],
- controller: SelectMenuController,
- link: { pre: preLink }
- };
-
- // We use preLink instead of postLink to ensure that the select is initialized before
- // its child options run postLink.
- function preLink(scope, element, attr, ctrls) {
- var selectCtrl = ctrls[0];
- var ngModel = ctrls[1];
-
- $mdTheming(element);
- element.on('click', clickListener);
- element.on('keypress', keyListener);
- if (ngModel) selectCtrl.init(ngModel);
- configureAria();
-
- function configureAria() {
- element.attr({
- 'id': 'select_menu_' + $mdUtil.nextUid(),
- 'role': 'listbox',
- 'aria-multiselectable': (selectCtrl.isMultiple ? 'true' : 'false')
- });
- }
-
- function keyListener(e) {
- if (e.keyCode == 13 || e.keyCode == 32) {
- clickListener(e);
- }
- }
-
- function clickListener(ev) {
- var option = $mdUtil.getClosest(ev.target, 'md-option');
- var optionCtrl = option && angular.element(option).data('$mdOptionController');
- if (!option || !optionCtrl) return;
-
- var optionHashKey = selectCtrl.hashGetter(optionCtrl.value);
- var isSelected = angular.isDefined(selectCtrl.selected[optionHashKey]);
-
- scope.$apply(function() {
- if (selectCtrl.isMultiple) {
- if (isSelected) {
- selectCtrl.deselect(optionHashKey);
- } else {
- selectCtrl.select(optionHashKey, optionCtrl.value);
- }
- } else {
- if (!isSelected) {
- selectCtrl.deselect( Object.keys(selectCtrl.selected)[0] );
- selectCtrl.select( optionHashKey, optionCtrl.value );
- }
- }
- selectCtrl.refreshViewValue();
- });
- }
- }
-
-
-
- function SelectMenuController($scope, $attrs, $element) {
- var self = this;
- self.isMultiple = angular.isDefined($attrs.multiple);
- // selected is an object with keys matching all of the selected options' hashed values
- self.selected = {};
- // options is an object with keys matching every option's hash value,
- // and values matching every option's controller.
- self.options = {};
-
- $scope.$watch(function() { return self.options; }, function() {
- self.ngModel.$render();
- }, true);
-
- var deregisterCollectionWatch;
- self.setMultiple = function(isMultiple) {
- var ngModel = self.ngModel;
- self.isMultiple = isMultiple;
- if (deregisterCollectionWatch) deregisterCollectionWatch();
-
- if (self.isMultiple) {
- ngModel.$validators['md-multiple'] = validateArray;
- ngModel.$render = renderMultiple;
-
- // watchCollection on the model because by default ngModel only watches the model's
- // reference. This allowed the developer to also push and pop from their array.
- $scope.$watchCollection($attrs.ngModel, function(value) {
- if (validateArray(value)) renderMultiple(value);
- });
- } else {
- delete ngModel.$validators['md-multiple'];
- ngModel.$render = renderSingular;
- }
-
- function validateArray(modelValue, viewValue) {
- // If a value is truthy but not an array, reject it.
- // If value is undefined/falsy, accept that it's an empty array.
- return angular.isArray(modelValue || viewValue || []);
- }
- };
-
- var searchStr = '';
- var clearSearchTimeout, optNodes, optText;
- var CLEAR_SEARCH_AFTER = 300;
- self.optNodeForKeyboardSearch = function(e) {
- clearSearchTimeout && clearTimeout(clearSearchTimeout);
- clearSearchTimeout = setTimeout(function() {
- clearSearchTimeout = undefined;
- searchStr = '';
- optText = undefined;
- optNodes = undefined;
- }, CLEAR_SEARCH_AFTER);
- searchStr += String.fromCharCode(e.keyCode);
- var search = new RegExp('^' + searchStr, 'i');
- if (!optNodes) {
- optNodes = $element.find('md-option');
- optText = new Array(optNodes.length);
- angular.forEach(optNodes, function(el, i) {
- optText[i] = el.textContent.trim();
- });
- }
- for (var i = 0; i < optText.length; ++i) {
- if (search.test(optText[i])) {
- return optNodes[i];
- }
- }
- };
-
-
- self.init = function(ngModel) {
- self.ngModel = ngModel;
-
- // Allow users to provide `ng-model="foo" ng-model-options="{trackBy: 'foo.id'}"` so
- // that we can properly compare objects set on the model to the available options
- if (ngModel.$options && ngModel.$options.trackBy) {
- var trackByLocals = {};
- var trackByParsed = $parse(ngModel.$options.trackBy);
- self.hashGetter = function(value, valueScope) {
- trackByLocals.$value = value;
- return trackByParsed(valueScope || $scope, trackByLocals);
- };
- // If the user doesn't provide a trackBy, we automatically generate an id for every
- // value passed in
- } else {
- self.hashGetter = function getHashValue(value) {
- if (angular.isObject(value)) {
- return 'object_' + (value.$$mdSelectId || (value.$$mdSelectId = ++selectNextId));
- }
- return value;
- };
- }
- self.setMultiple(self.isMultiple);
- };
-
- self.selectedLabels = function() {
- var selectedOptionEls = nodesToArray($element[0].querySelectorAll('md-option[selected]'));
- if (selectedOptionEls.length) {
- return selectedOptionEls.map(function(el) { return el.textContent; }).join(', ');
- } else {
- return '';
- }
- };
-
- self.select = function(hashKey, hashedValue) {
- var option = self.options[hashKey];
- option && option.setSelected(true);
- self.selected[hashKey] = hashedValue;
- };
- self.deselect = function(hashKey) {
- var option = self.options[hashKey];
- option && option.setSelected(false);
- delete self.selected[hashKey];
- };
-
- self.addOption = function(hashKey, optionCtrl) {
- if (angular.isDefined(self.options[hashKey])) {
- throw new Error('Duplicate md-option values are not allowed in a select. ' +
- 'Duplicate value "' + optionCtrl.value + '" found.');
- }
- self.options[hashKey] = optionCtrl;
-
- // If this option's value was already in our ngModel, go ahead and select it.
- if (angular.isDefined(self.selected[hashKey])) {
- self.select(hashKey, optionCtrl.value);
- self.refreshViewValue();
- }
- };
- self.removeOption = function(hashKey) {
- delete self.options[hashKey];
- // Don't deselect an option when it's removed - the user's ngModel should be allowed
- // to have values that do not match a currently available option.
- };
-
- self.refreshViewValue = function() {
- var values = [];
- var option;
- for (var hashKey in self.selected) {
- // If this hashKey has an associated option, push that option's value to the model.
- if ((option = self.options[hashKey])) {
- values.push(option.value);
- } else {
- // Otherwise, the given hashKey has no associated option, and we got it
- // from an ngModel value at an earlier time. Push the unhashed value of
- // this hashKey to the model.
- // This allows the developer to put a value in the model that doesn't yet have
- // an associated option.
- values.push(self.selected[hashKey]);
- }
- }
- self.ngModel.$setViewValue(self.isMultiple ? values : values[0]);
- };
-
- function renderMultiple() {
- var newSelectedValues = self.ngModel.$modelValue || self.ngModel.$viewValue;
- if (!angular.isArray(newSelectedValues)) return;
-
- var oldSelected = Object.keys(self.selected);
-
- var newSelectedHashes = newSelectedValues.map(self.hashGetter);
- var deselected = oldSelected.filter(function(hash) {
- return newSelectedHashes.indexOf(hash) === -1;
- });
-
- deselected.forEach(self.deselect);
- newSelectedHashes.forEach(function(hashKey, i) {
- self.select(hashKey, newSelectedValues[i]);
- });
- }
- function renderSingular() {
- var value = self.ngModel.$viewValue || self.ngModel.$modelValue;
- Object.keys(self.selected).forEach(self.deselect);
- self.select( self.hashGetter(value), value );
- }
- }
-
-}
-SelectMenuDirective.$inject = ["$parse", "$mdUtil", "$mdTheming"];
-
-function OptionDirective($mdButtonInkRipple, $mdUtil) {
-
- OptionController.$inject = ["$element"];
- return {
- restrict: 'E',
- require: ['mdOption', '^^mdSelectMenu'],
- controller: OptionController,
- compile: compile
- };
-
- function compile(element, attr) {
- // Manual transclusion to avoid the extra inner <span> that ng-transclude generates
- element.append( angular.element('<div class="md-text">').append(element.contents()) );
-
- element.attr('tabindex', attr.tabindex || '0');
- return postLink;
- }
-
- function postLink(scope, element, attr, ctrls) {
- var optionCtrl = ctrls[0];
- var selectCtrl = ctrls[1];
-
- if (angular.isDefined(attr.ngValue)) {
- scope.$watch(attr.ngValue, setOptionValue);
- } else if (angular.isDefined(attr.value)) {
- setOptionValue(attr.value);
- } else {
- scope.$watch(function() { return element.text(); }, setOptionValue);
- }
-
- scope.$$postDigest(function() {
- attr.$observe('selected', function(selected) {
- if (!angular.isDefined(selected)) return;
- if (selected) {
- if (!selectCtrl.isMultiple) {
- selectCtrl.deselect( Object.keys(selectCtrl.selected)[0] );
- }
- selectCtrl.select(optionCtrl.hashKey, optionCtrl.value);
- } else {
- selectCtrl.deselect(optionCtrl.hashKey);
- }
- selectCtrl.refreshViewValue();
- selectCtrl.ngModel.$render();
- });
- });
-
- $mdButtonInkRipple.attach(scope, element);
- configureAria();
-
- function setOptionValue(newValue, oldValue) {
- var oldHashKey = selectCtrl.hashGetter(oldValue, scope);
- var newHashKey = selectCtrl.hashGetter(newValue, scope);
-
- optionCtrl.hashKey = newHashKey;
- optionCtrl.value = newValue;
-
- selectCtrl.removeOption(oldHashKey, optionCtrl);
- selectCtrl.addOption(newHashKey, optionCtrl);
- }
-
- scope.$on('$destroy', function() {
- selectCtrl.removeOption(optionCtrl.hashKey, optionCtrl);
- });
-
- function configureAria() {
- var ariaAttrs = {
- 'role': 'option',
- 'aria-selected': 'false'
- };
-
- if (!element[0].hasAttribute('id')) {
- ariaAttrs.id = 'select_option_' + $mdUtil.nextUid();
- }
- element.attr(ariaAttrs);
- }
- }
-
- function OptionController($element) {
- this.selected = false;
- this.setSelected = function(isSelected) {
- if (isSelected && !this.selected) {
- $element.attr({
- 'selected': 'selected',
- 'aria-selected': 'true'
- });
- } else if (!isSelected && this.selected) {
- $element.removeAttr('selected');
- $element.attr('aria-selected', 'false');
- }
- this.selected = isSelected;
- };
- }
-
-}
-OptionDirective.$inject = ["$mdButtonInkRipple", "$mdUtil"];
-
-function OptgroupDirective() {
- return {
- restrict: 'E',
- compile: compile
- };
- function compile(el, attrs) {
- var labelElement = el.find('label');
- if (!labelElement.length) {
- labelElement = angular.element('<label>');
- el.prepend(labelElement);
- }
- if (attrs.label) labelElement.text(attrs.label);
- }
-}
-
-function SelectProvider($$interimElementProvider) {
- selectDefaultOptions.$inject = ["$mdSelect", "$mdConstant", "$$rAF", "$mdUtil", "$mdTheming", "$timeout", "$window"];
- return $$interimElementProvider('$mdSelect')
- .setDefaults({
- methods: ['target'],
- options: selectDefaultOptions
- });
-
- /* @ngInject */
- function selectDefaultOptions($mdSelect, $mdConstant, $$rAF, $mdUtil, $mdTheming, $timeout, $window ) {
- return {
- parent: 'body',
- onShow: onShow,
- onRemove: onRemove,
- hasBackdrop: true,
- disableParentScroll: true,
- themable: true
- };
-
- function onShow(scope, element, opts) {
- if (!opts.target) {
- throw new Error('$mdSelect.show() expected a target element in options.target but got ' +
- '"' + opts.target + '"!');
- }
-
- angular.extend(opts, {
- isRemoved: false,
- target: angular.element(opts.target), //make sure it's not a naked dom node
- parent: angular.element(opts.parent),
- selectEl: element.find('md-select-menu'),
- contentEl: element.find('md-content'),
- backdrop: opts.hasBackdrop && angular.element('<md-backdrop class="md-select-backdrop md-click-catcher">')
- });
-
- opts.resizeFn = function() {
- $$rAF(function() {
- $$rAF(function() {
- animateSelect(scope, element, opts);
- });
- });
- };
-
- angular.element($window).on('resize', opts.resizeFn);
- angular.element($window).on('orientationchange', opts.resizeFn);
-
-
- configureAria();
-
- element.removeClass('md-leave');
-
- var optionNodes = opts.selectEl[0].getElementsByTagName('md-option');
-
- if (opts.loadingAsync && opts.loadingAsync.then) {
- opts.loadingAsync.then(function() {
- scope.$$loadingAsyncDone = true;
- // Give ourselves two frames for the progress loader to clear out.
- $$rAF(function() {
- $$rAF(function() {
- // Don't go forward if the select has been removed in this time...
- if (opts.isRemoved) return;
- animateSelect(scope, element, opts);
- });
- });
- });
- } else if (opts.loadingAsync) {
- scope.$$loadingAsyncDone = true;
- }
-
- if (opts.disableParentScroll && !$mdUtil.getClosest(opts.target, 'MD-DIALOG')) {
- opts.restoreScroll = $mdUtil.disableScrollAround(opts.target);
- } else {
- opts.disableParentScroll = false;
- }
- // Only activate click listeners after a short time to stop accidental double taps/clicks
- // from clicking the wrong item
- $timeout(activateInteraction, 75, false);
-
- if (opts.backdrop) {
- $mdTheming.inherit(opts.backdrop, opts.parent);
- opts.parent.append(opts.backdrop);
- }
- opts.parent.append(element);
-
- // Give the select a frame to 'initialize' in the DOM,
- // so we can read its height/width/position
- $$rAF(function() {
- $$rAF(function() {
- if (opts.isRemoved) return;
- animateSelect(scope, element, opts);
- });
- });
-
- return $mdUtil.transitionEndPromise(opts.selectEl, {timeout: 350});
-
- function configureAria() {
- opts.target.attr('aria-expanded', 'true');
- }
-
- function activateInteraction() {
- if (opts.isRemoved) return;
- var selectCtrl = opts.selectEl.controller('mdSelectMenu') || {};
- element.addClass('md-clickable');
-
- opts.backdrop && opts.backdrop.on('click', function(e) {
- e.preventDefault();
- e.stopPropagation();
- opts.restoreFocus = false;
- scope.$apply($mdSelect.cancel);
- });
-
- // Escape to close
- opts.selectEl.on('keydown', function(ev) {
- switch (ev.keyCode) {
- case $mdConstant.KEY_CODE.SPACE:
- case $mdConstant.KEY_CODE.ENTER:
- var option = $mdUtil.getClosest(ev.target, 'md-option');
- if (option) {
- opts.selectEl.triggerHandler({
- type: 'click',
- target: option
- });
- ev.preventDefault();
- }
- break;
- case $mdConstant.KEY_CODE.TAB:
- case $mdConstant.KEY_CODE.ESCAPE:
- ev.preventDefault();
- opts.restoreFocus = true;
- scope.$apply($mdSelect.cancel);
- }
- });
-
- // Cycling of options, and closing on enter
- opts.selectEl.on('keydown', function(ev) {
- switch (ev.keyCode) {
- case $mdConstant.KEY_CODE.UP_ARROW: return focusPrevOption();
- case $mdConstant.KEY_CODE.DOWN_ARROW: return focusNextOption();
- default:
- if (ev.keyCode >= 31 && ev.keyCode <= 90) {
- var optNode = opts.selectEl.controller('mdSelectMenu').optNodeForKeyboardSearch(ev);
- optNode && optNode.focus();
- }
- }
- });
-
-
- function focusOption(direction) {
- var optionsArray = nodesToArray(optionNodes);
- var index = optionsArray.indexOf(opts.focusedNode);
- if (index === -1) {
- // We lost the previously focused element, reset to first option
- index = 0;
- } else if (direction === 'next' && index < optionsArray.length - 1) {
- index++;
- } else if (direction === 'prev' && index > 0) {
- index--;
- }
- var newOption = opts.focusedNode = optionsArray[index];
- newOption && newOption.focus();
- }
- function focusNextOption() {
- focusOption('next');
- }
- function focusPrevOption() {
- focusOption('prev');
- }
-
- opts.selectEl.on('click', checkCloseMenu);
- opts.selectEl.on('keydown', function(e) {
- if (e.keyCode == 32 || e.keyCode == 13) {
- checkCloseMenu();
- }
- });
-
- function checkCloseMenu() {
- if (!selectCtrl.isMultiple) {
- opts.restoreFocus = true;
- scope.$evalAsync(function() {
- $mdSelect.hide(selectCtrl.ngModel.$viewValue);
- });
- }
- }
- }
-
- }
-
- function onRemove(scope, element, opts) {
- opts.isRemoved = true;
- element.addClass('md-leave')
- .removeClass('md-clickable');
- opts.target.attr('aria-expanded', 'false');
-
-
- angular.element($window).off('resize', opts.resizeFn);
- angular.element($window).off('orientationchange', opts.resizefn);
- opts.resizeFn = undefined;
-
- var mdSelect = opts.selectEl.controller('mdSelect');
- if (mdSelect) {
- mdSelect.setLabelText(opts.selectEl.controller('mdSelectMenu').selectedLabels());
- }
-
- return $mdUtil.transitionEndPromise(element, { timeout: 350 }).then(function() {
- element.removeClass('md-active');
- opts.backdrop && opts.backdrop.remove();
- if (element[0].parentNode === opts.parent[0]) {
- opts.parent[0].removeChild(element[0]); // use browser to avoid $destroy event
- }
- if (opts.disableParentScroll) {
- opts.restoreScroll();
- }
- if (opts.restoreFocus) opts.target.focus();
- });
- }
-
- function animateSelect(scope, element, opts) {
- var containerNode = element[0],
- targetNode = opts.target[0].firstElementChild.firstElementChild, // target the first span, functioning as the label
- parentNode = opts.parent[0],
- selectNode = opts.selectEl[0],
- contentNode = opts.contentEl[0],
- parentRect = parentNode.getBoundingClientRect(),
- targetRect = targetNode.getBoundingClientRect(),
- shouldOpenAroundTarget = false,
- bounds = {
- left: parentRect.left + SELECT_EDGE_MARGIN,
- top: SELECT_EDGE_MARGIN,
- bottom: parentRect.height - SELECT_EDGE_MARGIN,
- right: parentRect.width - SELECT_EDGE_MARGIN - ($mdUtil.floatingScrollbars() ? 16 : 0)
- },
- spaceAvailable = {
- top: targetRect.top - bounds.top,
- left: targetRect.left - bounds.left,
- right: bounds.right - (targetRect.left + targetRect.width),
- bottom: bounds.bottom - (targetRect.top + targetRect.height)
- },
- maxWidth = parentRect.width - SELECT_EDGE_MARGIN * 2,
- isScrollable = contentNode.scrollHeight > contentNode.offsetHeight,
- selectedNode = selectNode.querySelector('md-option[selected]'),
- optionNodes = selectNode.getElementsByTagName('md-option'),
- optgroupNodes = selectNode.getElementsByTagName('md-optgroup');
-
-
- var centeredNode;
- // If a selected node, center around that
- if (selectedNode) {
- centeredNode = selectedNode;
- // If there are option groups, center around the first option group
- } else if (optgroupNodes.length) {
- centeredNode = optgroupNodes[0];
- // Otherwise, center around the first optionNode
- } else if (optionNodes.length){
- centeredNode = optionNodes[0];
- // In case there are no options, center on whatever's in there... (eg progress indicator)
- } else {
- centeredNode = contentNode.firstElementChild || contentNode;
- }
-
- if (contentNode.offsetWidth > maxWidth) {
- contentNode.style['max-width'] = maxWidth + 'px';
- }
- if (shouldOpenAroundTarget) {
- contentNode.style['min-width'] = targetRect.width + 'px';
- }
-
- // Remove padding before we compute the position of the menu
- if (isScrollable) {
- selectNode.classList.add('md-overflow');
- }
-
- // Get the selectMenuRect *after* max-width is possibly set above
- var selectMenuRect = selectNode.getBoundingClientRect();
- var centeredRect = getOffsetRect(centeredNode);
-
- if (centeredNode) {
- var centeredStyle = $window.getComputedStyle(centeredNode);
- centeredRect.paddingLeft = parseInt(centeredStyle.paddingLeft, 10) || 0;
- centeredRect.paddingRight = parseInt(centeredStyle.paddingRight, 10) || 0;
- }
-
- var focusedNode = centeredNode;
- if ((focusedNode.tagName || '').toUpperCase() === 'MD-OPTGROUP') {
- focusedNode = optionNodes[0] || contentNode.firstElementChild || contentNode;
- }
-
- if (isScrollable) {
- var scrollBuffer = contentNode.offsetHeight / 2;
- contentNode.scrollTop = centeredRect.top + centeredRect.height / 2 - scrollBuffer;
-
- if (spaceAvailable.top < scrollBuffer) {
- contentNode.scrollTop = Math.min(
- centeredRect.top,
- contentNode.scrollTop + scrollBuffer - spaceAvailable.top
- );
- } else if (spaceAvailable.bottom < scrollBuffer) {
- contentNode.scrollTop = Math.max(
- centeredRect.top + centeredRect.height - selectMenuRect.height,
- contentNode.scrollTop - scrollBuffer + spaceAvailable.bottom
- );
- }
- }
-
- var left, top, transformOrigin;
- if (shouldOpenAroundTarget) {
- left = targetRect.left;
- top = targetRect.top + targetRect.height;
- transformOrigin = '50% 0';
- if (top + selectMenuRect.height > bounds.bottom) {
- top = targetRect.top - selectMenuRect.height;
- transformOrigin = '50% 100%';
- }
- } else {
- left = targetRect.left + centeredRect.left - centeredRect.paddingLeft;
- top = Math.floor(targetRect.top + targetRect.height / 2 - centeredRect.height / 2 -
- centeredRect.top + contentNode.scrollTop);
-
-
- transformOrigin = (centeredRect.left + targetRect.width / 2) + 'px ' +
- (centeredRect.top + centeredRect.height / 2 - contentNode.scrollTop) + 'px 0px';
-
- containerNode.style.minWidth = targetRect.width + centeredRect.paddingLeft +
- centeredRect.paddingRight + 'px';
- }
-
- // Keep left and top within the window
- var containerRect = containerNode.getBoundingClientRect();
- containerNode.style.left = clamp(bounds.left, left, bounds.right - containerRect.width) + 'px';
- containerNode.style.top = clamp(bounds.top, top, bounds.bottom - containerRect.height) + 'px';
- selectNode.style[$mdConstant.CSS.TRANSFORM_ORIGIN] = transformOrigin;
-
- selectNode.style[$mdConstant.CSS.TRANSFORM] = 'scale(' +
- Math.min(targetRect.width / selectMenuRect.width, 1.0) + ',' +
- Math.min(targetRect.height / selectMenuRect.height, 1.0) +
- ')';
-
-
- $$rAF(function() {
- element.addClass('md-active');
- selectNode.style[$mdConstant.CSS.TRANSFORM] = '';
- if (focusedNode) {
- opts.focusedNode = focusedNode;
- focusedNode.focus();
- }
- });
- }
-
- }
-
- function clamp(min, n, max) {
- return Math.max(min, Math.min(n, max));
- }
-
- function getOffsetRect(node) {
- return node ? {
- left: node.offsetLeft,
- top: node.offsetTop,
- width: node.offsetWidth,
- height: node.offsetHeight
- } : { left: 0, top: 0, width: 0, height: 0 };
- }
-}
-SelectProvider.$inject = ["$$interimElementProvider"];
-
-// Annoying method to copy nodes to an array, thanks to IE
-function nodesToArray(nodes) {
- var results = [];
- for (var i = 0; i < nodes.length; ++i) {
- results.push(nodes.item(i));
- }
- return results;
-}
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.sidenav
- *
- * @description
- * A Sidenav QP component.
- */
-angular.module('material.components.sidenav', [
- 'material.core',
- 'material.components.backdrop'
- ])
- .factory('$mdSidenav', SidenavService )
- .directive('mdSidenav', SidenavDirective)
- .directive('mdSidenavFocus', SidenavFocusDirective)
- .controller('$mdSidenavController', SidenavController);
-
-
-/**
- * @private
- * @ngdoc service
- * @name $mdSidenav
- * @module material.components.sidenav
- *
- * @description
- * `$mdSidenav` makes it easy to interact with multiple sidenavs
- * in an app.
- *
- * @usage
- * <hljs lang="js">
- * // Async lookup for sidenav instance; will resolve when the instance is available
- * $mdSidenav(componentId).then(function(instance) {
- * $log.debug( componentId + "is now ready" );
- * });
- * // Async toggle the given sidenav;
- * // when instance is known ready and lazy lookup is not needed.
- * $mdSidenav(componentId)
- * .toggle()
- * .then(function(){
- * $log.debug('toggled');
- * });
- * // Async open the given sidenav
- * $mdSidenav(componentId)
- * .open()
- * .then(function(){
- * $log.debug('opened');
- * });
- * // Async close the given sidenav
- * $mdSidenav(componentId)
- * .close()
- * .then(function(){
- * $log.debug('closed');
- * });
- * // Sync check to see if the specified sidenav is set to be open
- * $mdSidenav(componentId).isOpen();
- * // Sync check to whether given sidenav is locked open
- * // If this is true, the sidenav will be open regardless of close()
- * $mdSidenav(componentId).isLockedOpen();
- * </hljs>
- */
-function SidenavService($mdComponentRegistry, $q) {
- return function(handle) {
-
- // Lookup the controller instance for the specified sidNav instance
- var self;
- var errorMsg = "SideNav '" + handle + "' is not available!";
- var instance = $mdComponentRegistry.get(handle);
-
- if(!instance) {
- $mdComponentRegistry.notFoundError(handle);
- }
-
- return self = {
- // -----------------
- // Sync methods
- // -----------------
- isOpen: function() {
- return instance && instance.isOpen();
- },
- isLockedOpen: function() {
- return instance && instance.isLockedOpen();
- },
- // -----------------
- // Async methods
- // -----------------
- toggle: function() {
- return instance ? instance.toggle() : $q.reject(errorMsg);
- },
- open: function() {
- return instance ? instance.open() : $q.reject(errorMsg);
- },
- close: function() {
- return instance ? instance.close() : $q.reject(errorMsg);
- },
- then : function( callbackFn ) {
- var promise = instance ? $q.when(instance) : waitForInstance();
- return promise.then( callbackFn || angular.noop );
- }
- };
-
- /**
- * Deferred lookup of component instance using $component registry
- */
- function waitForInstance() {
- return $mdComponentRegistry
- .when(handle)
- .then(function( it ){
- instance = it;
- return it;
- });
- }
- };
-}
-SidenavService.$inject = ["$mdComponentRegistry", "$q"];
-/**
- * @ngdoc directive
- * @name mdSidenavFocus
- * @module material.components.sidenav
- *
- * @restrict A
- *
- * @description
- * `$mdSidenavFocus` provides a way to specify the focused element when a sidenav opens.
- * This is completely optional, as the sidenav itself is focused by default.
- *
- * @usage
- * <hljs lang="html">
- * <md-sidenav>
- * <form>
- * <md-input-container>
- * <label for="testInput">Label</label>
- * <input id="testInput" type="text" md-sidenav-focus>
- * </md-input-container>
- * </form>
- * </md-sidenav>
- * </hljs>
- **/
-function SidenavFocusDirective() {
- return {
- restrict: 'A',
- require: '^mdSidenav',
- link: function(scope, element, attr, sidenavCtrl) {
- sidenavCtrl.focusElement(element);
- }
- };
-}
-/**
- * @ngdoc directive
- * @name mdSidenav
- * @module material.components.sidenav
- * @restrict E
- *
- * @description
- *
- * A Sidenav component that can be opened and closed programatically.
- *
- * By default, upon opening it will slide out on top of the main content area.
- *
- * For keyboard and screen reader accessibility, focus is sent to the sidenav wrapper by default.
- * It can be overridden with the `md-sidenav-focus` directive on the child element you want focused.
- *
- * @usage
- * <hljs lang="html">
- * <div layout="row" ng-controller="MyController">
- * <md-sidenav md-component-id="left" class="md-sidenav-left">
- * Left Nav!
- * </md-sidenav>
- *
- * <md-content>
- * Center Content
- * <md-button ng-click="openLeftMenu()">
- * Open Left Menu
- * </md-button>
- * </md-content>
- *
- * <md-sidenav md-component-id="right"
- * md-is-locked-open="$mdMedia('min-width: 333px')"
- * class="md-sidenav-right">
- * <form>
- * <md-input-container>
- * <label for="testInput">Test input</label>
- * <input id="testInput" type="text"
- * ng-model="data" md-sidenav-focus>
- * </md-input-container>
- * </form>
- * </md-sidenav>
- * </div>
- * </hljs>
- *
- * <hljs lang="js">
- * var app = angular.module('myApp', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdSidenav) {
- * $scope.openLeftMenu = function() {
- * $mdSidenav('left').toggle();
- * };
- * });
- * </hljs>
- *
- * @param {expression=} md-is-open A model bound to whether the sidenav is opened.
- * @param {string=} md-component-id componentId to use with $mdSidenav service.
- * @param {expression=} md-is-locked-open When this expression evalutes to true,
- * the sidenav 'locks open': it falls into the content's flow instead
- * of appearing over it. This overrides the `is-open` attribute.
- *
- * The $mdMedia() service is exposed to the is-locked-open attribute, which
- * can be given a media query or one of the `sm`, `gt-sm`, `md`, `gt-md`, `lg` or `gt-lg` presets.
- * Examples:
- *
- * - `<md-sidenav md-is-locked-open="shouldLockOpen"></md-sidenav>`
- * - `<md-sidenav md-is-locked-open="$mdMedia('min-width: 1000px')"></md-sidenav>`
- * - `<md-sidenav md-is-locked-open="$mdMedia('sm')"></md-sidenav>` (locks open on small screens)
- */
-function SidenavDirective($timeout, $animate, $parse, $log, $mdMedia, $mdConstant, $compile, $mdTheming, $q, $document) {
- return {
- restrict: 'E',
- scope: {
- isOpen: '=?mdIsOpen'
- },
- controller: '$mdSidenavController',
- compile: function(element) {
- element.addClass('md-closed');
- element.attr('tabIndex', '-1');
- return postLink;
- }
- };
-
- /**
- * Directive Post Link function...
- */
- function postLink(scope, element, attr, sidenavCtrl) {
- var lastParentOverFlow;
- var triggeringElement = null;
- var promise = $q.when(true);
-
- var isLockedOpenParsed = $parse(attr.mdIsLockedOpen);
- var isLocked = function() {
- return isLockedOpenParsed(scope.$parent, {
- $media: function(arg) {
- $log.warn("$media is deprecated for is-locked-open. Use $mdMedia instead.");
- return $mdMedia(arg);
- },
- $mdMedia: $mdMedia
- });
- };
- var backdrop = $compile(
- '<md-backdrop class="md-sidenav-backdrop md-opaque ng-enter">'
- )(scope);
-
- element.on('$destroy', sidenavCtrl.destroy);
- $mdTheming.inherit(backdrop, element);
-
- scope.$watch(isLocked, updateIsLocked);
- scope.$watch('isOpen', updateIsOpen);
-
-
- // Publish special accessor for the Controller instance
- sidenavCtrl.$toggleOpen = toggleOpen;
- sidenavCtrl.focusElement( sidenavCtrl.focusElement() || element );
-
- /**
- * Toggle the DOM classes to indicate `locked`
- * @param isLocked
- */
- function updateIsLocked(isLocked, oldValue) {
- scope.isLockedOpen = isLocked;
- if (isLocked === oldValue) {
- element.toggleClass('md-locked-open', !!isLocked);
- } else {
- $animate[isLocked ? 'addClass' : 'removeClass'](element, 'md-locked-open');
- }
- backdrop.toggleClass('md-locked-open', !!isLocked);
- }
-
- /**
- * Toggle the SideNav view and attach/detach listeners
- * @param isOpen
- */
- function updateIsOpen(isOpen) {
- var parent = element.parent();
-
- parent[isOpen ? 'on' : 'off']('keydown', onKeyDown);
- backdrop[isOpen ? 'on' : 'off']('click', close);
-
- if ( isOpen ) {
- // Capture upon opening..
- triggeringElement = $document[0].activeElement;
- }
- var focusEl = sidenavCtrl.focusElement();
-
- disableParentScroll(isOpen);
-
- return promise = $q.all([
- isOpen ? $animate.enter(backdrop, parent) : $animate.leave(backdrop),
- $animate[isOpen ? 'removeClass' : 'addClass'](element, 'md-closed')
- ])
- .then(function() {
- // Perform focus when animations are ALL done...
- if (scope.isOpen) {
- focusEl && focusEl.focus();
- }
- });
- }
-
- /**
- * Prevent parent scrolling (when the SideNav is open)
- */
- function disableParentScroll(disabled) {
- var parent = element.parent();
- if ( disabled ) {
- lastParentOverFlow = parent.css('overflow');
- parent.css('overflow', 'hidden');
- } else if (angular.isDefined(lastParentOverFlow)) {
- parent.css('overflow', lastParentOverFlow);
- lastParentOverFlow = undefined;
- }
- }
-
- /**
- * Toggle the sideNav view and publish a promise to be resolved when
- * the view animation finishes.
- *
- * @param isOpen
- * @returns {*}
- */
- function toggleOpen( isOpen ) {
- if (scope.isOpen == isOpen ) {
-
- return $q.when(true);
-
- } else {
- var deferred = $q.defer();
-
- // Toggle value to force an async `updateIsOpen()` to run
- scope.isOpen = isOpen;
-
- $timeout(function() {
-
- // When the current `updateIsOpen()` animation finishes
- promise.then(function(result) {
-
- if ( !scope.isOpen ) {
- // reset focus to originating element (if available) upon close
- triggeringElement && triggeringElement.focus();
- triggeringElement = null;
- }
-
- deferred.resolve(result);
- });
-
- },0,false);
-
- return deferred.promise;
- }
- }
-
- /**
- * Auto-close sideNav when the `escape` key is pressed.
- * @param evt
- */
- function onKeyDown(ev) {
- var isEscape = (ev.keyCode === $mdConstant.KEY_CODE.ESCAPE);
- return isEscape ? close(ev) : $q.when(true);
- }
-
- /**
- * With backdrop `clicks` or `escape` key-press, immediately
- * apply the CSS close transition... Then notify the controller
- * to close() and perform its own actions.
- */
- function close(ev) {
- ev.preventDefault();
- ev.stopPropagation();
-
- return sidenavCtrl.close();
- }
-
- }
-}
-SidenavDirective.$inject = ["$timeout", "$animate", "$parse", "$log", "$mdMedia", "$mdConstant", "$compile", "$mdTheming", "$q", "$document"];
-
-/*
- * @private
- * @ngdoc controller
- * @name SidenavController
- * @module material.components.sidenav
- *
- */
-function SidenavController($scope, $element, $attrs, $mdComponentRegistry, $q) {
-
- var self = this,
- focusElement;
-
- // Use Default internal method until overridden by directive postLink
-
- // Synchronous getters
- self.isOpen = function() { return !!$scope.isOpen; };
- self.isLockedOpen = function() { return !!$scope.isLockedOpen; };
-
- // Async actions
- self.open = function() { return self.$toggleOpen( true ); };
- self.close = function() { return self.$toggleOpen( false ); };
- self.toggle = function() { return self.$toggleOpen( !$scope.isOpen ); };
- self.focusElement = function(el) {
- if ( angular.isDefined(el) ) {
- focusElement = el;
- }
- return focusElement;
- };
-
- self.$toggleOpen = function() { return $q.when($scope.isOpen); };
-
- self.destroy = $mdComponentRegistry.register(self, $attrs.mdComponentId);
-}
-SidenavController.$inject = ["$scope", "$element", "$attrs", "$mdComponentRegistry", "$q"];
-
-})();
-(function(){
-"use strict";
-
- /**
- * @ngdoc module
- * @name material.components.slider
- */
- angular.module('material.components.slider', [
- 'material.core'
- ])
- .directive('mdSlider', SliderDirective);
-
-/**
- * @ngdoc directive
- * @name mdSlider
- * @module material.components.slider
- * @restrict E
- * @description
- * The `<md-slider>` component allows the user to choose from a range of
- * values.
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the slider is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * It has two modes: 'normal' mode, where the user slides between a wide range
- * of values, and 'discrete' mode, where the user slides between only a few
- * select values.
- *
- * To enable discrete mode, add the `md-discrete` attribute to a slider,
- * and use the `step` attribute to change the distance between
- * values the user is allowed to pick.
- *
- * @usage
- * <h4>Normal Mode</h4>
- * <hljs lang="html">
- * <md-slider ng-model="myValue" min="5" max="500">
- * </md-slider>
- * </hljs>
- * <h4>Discrete Mode</h4>
- * <hljs lang="html">
- * <md-slider md-discrete ng-model="myDiscreteValue" step="10" min="10" max="130">
- * </md-slider>
- * </hljs>
- *
- * @param {boolean=} md-discrete Whether to enable discrete mode.
- * @param {number=} step The distance between values the user is allowed to pick. Default 1.
- * @param {number=} min The minimum value the user is allowed to pick. Default 0.
- * @param {number=} max The maximum value the user is allowed to pick. Default 100.
- */
-function SliderDirective($$rAF, $window, $mdAria, $mdUtil, $mdConstant, $mdTheming, $mdGesture, $parse) {
- return {
- scope: {},
- require: '?ngModel',
- template:
- '<div class="md-slider-wrapper">\
- <div class="md-track-container">\
- <div class="md-track"></div>\
- <div class="md-track md-track-fill"></div>\
- <div class="md-track-ticks"></div>\
- </div>\
- <div class="md-thumb-container">\
- <div class="md-thumb"></div>\
- <div class="md-focus-thumb"></div>\
- <div class="md-focus-ring"></div>\
- <div class="md-sign">\
- <span class="md-thumb-text"></span>\
- </div>\
- <div class="md-disabled-thumb"></div>\
- </div>\
- </div>',
- compile: compile
- };
-
- // **********************************************************
- // Private Methods
- // **********************************************************
-
- function compile (tElement, tAttrs) {
- tElement.attr({
- tabIndex: 0,
- role: 'slider'
- });
-
- $mdAria.expect(tElement, 'aria-label');
-
- return postLink;
- }
-
- function postLink(scope, element, attr, ngModelCtrl) {
- $mdTheming(element);
- ngModelCtrl = ngModelCtrl || {
- // Mock ngModelController if it doesn't exist to give us
- // the minimum functionality needed
- $setViewValue: function(val) {
- this.$viewValue = val;
- this.$viewChangeListeners.forEach(function(cb) { cb(); });
- },
- $parsers: [],
- $formatters: [],
- $viewChangeListeners: []
- };
-
- var isDisabledParsed = attr.ngDisabled && $parse(attr.ngDisabled);
- var isDisabledGetter = isDisabledParsed ?
- function() { return isDisabledParsed(scope.$parent); } :
- angular.noop;
- var thumb = angular.element(element[0].querySelector('.md-thumb'));
- var thumbText = angular.element(element[0].querySelector('.md-thumb-text'));
- var thumbContainer = thumb.parent();
- var trackContainer = angular.element(element[0].querySelector('.md-track-container'));
- var activeTrack = angular.element(element[0].querySelector('.md-track-fill'));
- var tickContainer = angular.element(element[0].querySelector('.md-track-ticks'));
- var throttledRefreshDimensions = $mdUtil.throttle(refreshSliderDimensions, 5000);
-
- // Default values, overridable by attrs
- angular.isDefined(attr.min) ? attr.$observe('min', updateMin) : updateMin(0);
- angular.isDefined(attr.max) ? attr.$observe('max', updateMax) : updateMax(100);
- angular.isDefined(attr.step)? attr.$observe('step', updateStep) : updateStep(1);
-
- // We have to manually stop the $watch on ngDisabled because it exists
- // on the parent scope, and won't be automatically destroyed when
- // the component is destroyed.
- var stopDisabledWatch = angular.noop;
- if (attr.ngDisabled) {
- stopDisabledWatch = scope.$parent.$watch(attr.ngDisabled, updateAriaDisabled);
- }
-
- $mdGesture.register(element, 'drag');
-
- element
- .on('keydown', keydownListener)
- .on('$md.pressdown', onPressDown)
- .on('$md.pressup', onPressUp)
- .on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- // On resize, recalculate the slider's dimensions and re-render
- function updateAll() {
- refreshSliderDimensions();
- ngModelRender();
- redrawTicks();
- }
- setTimeout(updateAll);
-
- var debouncedUpdateAll = $$rAF.throttle(updateAll);
- angular.element($window).on('resize', debouncedUpdateAll);
-
- scope.$on('$destroy', function() {
- angular.element($window).off('resize', debouncedUpdateAll);
- stopDisabledWatch();
- });
-
- ngModelCtrl.$render = ngModelRender;
- ngModelCtrl.$viewChangeListeners.push(ngModelRender);
- ngModelCtrl.$formatters.push(minMaxValidator);
- ngModelCtrl.$formatters.push(stepValidator);
-
- /**
- * Attributes
- */
- var min;
- var max;
- var step;
- function updateMin(value) {
- min = parseFloat(value);
- element.attr('aria-valuemin', value);
- updateAll();
- }
- function updateMax(value) {
- max = parseFloat(value);
- element.attr('aria-valuemax', value);
- updateAll();
- }
- function updateStep(value) {
- step = parseFloat(value);
- redrawTicks();
- }
- function updateAriaDisabled(isDisabled) {
- element.attr('aria-disabled', !!isDisabled);
- }
-
- // Draw the ticks with canvas.
- // The alternative to drawing ticks with canvas is to draw one element for each tick,
- // which could quickly become a performance bottleneck.
- var tickCanvas, tickCtx;
- function redrawTicks() {
- if (!angular.isDefined(attr.mdDiscrete)) return;
-
- var numSteps = Math.floor( (max - min) / step );
- if (!tickCanvas) {
- var trackTicksStyle = $window.getComputedStyle(tickContainer[0]);
- tickCanvas = angular.element('<canvas style="position:absolute;">');
- tickCtx = tickCanvas[0].getContext('2d');
- tickCtx.fillStyle = trackTicksStyle.backgroundColor || 'black';
- tickContainer.append(tickCanvas);
- }
- var dimensions = getSliderDimensions();
- tickCanvas[0].width = dimensions.width;
- tickCanvas[0].height = dimensions.height;
-
- var distance;
- for (var i = 0; i <= numSteps; i++) {
- distance = Math.floor(dimensions.width * (i / numSteps));
- tickCtx.fillRect(distance - 1, 0, 2, dimensions.height);
- }
- }
-
-
- /**
- * Refreshing Dimensions
- */
- var sliderDimensions = {};
- refreshSliderDimensions();
- function refreshSliderDimensions() {
- sliderDimensions = trackContainer[0].getBoundingClientRect();
- }
- function getSliderDimensions() {
- throttledRefreshDimensions();
- return sliderDimensions;
- }
-
- /**
- * left/right arrow listener
- */
- function keydownListener(ev) {
- if(element[0].hasAttribute('disabled')) {
- return;
- }
-
- var changeAmount;
- if (ev.keyCode === $mdConstant.KEY_CODE.LEFT_ARROW) {
- changeAmount = -step;
- } else if (ev.keyCode === $mdConstant.KEY_CODE.RIGHT_ARROW) {
- changeAmount = step;
- }
- if (changeAmount) {
- if (ev.metaKey || ev.ctrlKey || ev.altKey) {
- changeAmount *= 4;
- }
- ev.preventDefault();
- ev.stopPropagation();
- scope.$evalAsync(function() {
- setModelValue(ngModelCtrl.$viewValue + changeAmount);
- });
- }
- }
-
- /**
- * ngModel setters and validators
- */
- function setModelValue(value) {
- ngModelCtrl.$setViewValue( minMaxValidator(stepValidator(value)) );
- }
- function ngModelRender() {
- if (isNaN(ngModelCtrl.$viewValue)) {
- ngModelCtrl.$viewValue = ngModelCtrl.$modelValue;
- }
-
- var percent = (ngModelCtrl.$viewValue - min) / (max - min);
- scope.modelValue = ngModelCtrl.$viewValue;
- element.attr('aria-valuenow', ngModelCtrl.$viewValue);
- setSliderPercent(percent);
- thumbText.text( ngModelCtrl.$viewValue );
- }
-
- function minMaxValidator(value) {
- if (angular.isNumber(value)) {
- return Math.max(min, Math.min(max, value));
- }
- }
- function stepValidator(value) {
- if (angular.isNumber(value)) {
- var formattedValue = (Math.round(value / step) * step);
- // Format to 3 digits after the decimal point - fixes #2015.
- return (Math.round(formattedValue * 1000) / 1000);
- }
- }
-
- /**
- * @param percent 0-1
- */
- function setSliderPercent(percent) {
- activeTrack.css('width', (percent * 100) + '%');
- thumbContainer.css(
- 'left',
- (percent * 100) + '%'
- );
- element.toggleClass('md-min', percent === 0);
- }
-
-
- /**
- * Slide listeners
- */
- var isDragging = false;
- var isDiscrete = angular.isDefined(attr.mdDiscrete);
-
- function onPressDown(ev) {
- if (isDisabledGetter()) return;
-
- element.addClass('active');
- element[0].focus();
- refreshSliderDimensions();
-
- var exactVal = percentToValue( positionToPercent( ev.pointer.x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- scope.$apply(function() {
- setModelValue( closestVal );
- setSliderPercent( valueToPercent(closestVal));
- });
- }
- function onPressUp(ev) {
- if (isDisabledGetter()) return;
-
- element.removeClass('dragging active');
-
- var exactVal = percentToValue( positionToPercent( ev.pointer.x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- scope.$apply(function() {
- setModelValue(closestVal);
- ngModelRender();
- });
- }
- function onDragStart(ev) {
- if (isDisabledGetter()) return;
- isDragging = true;
- ev.stopPropagation();
-
- element.addClass('dragging');
- setSliderFromEvent(ev);
- }
- function onDrag(ev) {
- if (!isDragging) return;
- ev.stopPropagation();
- setSliderFromEvent(ev);
- }
- function onDragEnd(ev) {
- if (!isDragging) return;
- ev.stopPropagation();
- isDragging = false;
- }
-
- function setSliderFromEvent(ev) {
- // While panning discrete, update only the
- // visual positioning but not the model value.
- if ( isDiscrete ) adjustThumbPosition( ev.pointer.x );
- else doSlide( ev.pointer.x );
- }
-
- /**
- * Slide the UI by changing the model value
- * @param x
- */
- function doSlide( x ) {
- scope.$evalAsync( function() {
- setModelValue( percentToValue( positionToPercent(x) ));
- });
- }
-
- /**
- * Slide the UI without changing the model (while dragging/panning)
- * @param x
- */
- function adjustThumbPosition( x ) {
- var exactVal = percentToValue( positionToPercent( x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- setSliderPercent( positionToPercent(x) );
- thumbText.text( closestVal );
- }
-
- /**
- * Convert horizontal position on slider to percentage value of offset from beginning...
- * @param x
- * @returns {number}
- */
- function positionToPercent( x ) {
- return Math.max(0, Math.min(1, (x - sliderDimensions.left) / (sliderDimensions.width)));
- }
-
- /**
- * Convert percentage offset on slide to equivalent model value
- * @param percent
- * @returns {*}
- */
- function percentToValue( percent ) {
- return (min + percent * (max - min));
- }
-
- function valueToPercent( val ) {
- return (val - min)/(max - min);
- }
- }
-}
-SliderDirective.$inject = ["$$rAF", "$window", "$mdAria", "$mdUtil", "$mdConstant", "$mdTheming", "$mdGesture", "$parse"];
-
-})();
-(function(){
-"use strict";
-
-/*
- * @ngdoc module
- * @name material.components.sticky
- * @description
- *
- * Sticky effects for md
- */
-
-angular.module('material.components.sticky', [
- 'material.core',
- 'material.components.content'
-])
- .factory('$mdSticky', MdSticky);
-
-/*
- * @ngdoc service
- * @name $mdSticky
- * @module material.components.sticky
- *
- * @description
- * The `$mdSticky`service provides a mixin to make elements sticky.
- *
- * @returns A `$mdSticky` function that takes three arguments:
- * - `scope`
- * - `element`: The element that will be 'sticky'
- * - `elementClone`: A clone of the element, that will be shown
- * when the user starts scrolling past the original element.
- * If not provided, it will use the result of `element.clone()`.
- */
-
-function MdSticky($document, $mdConstant, $compile, $$rAF, $mdUtil) {
-
- var browserStickySupport = checkStickySupport();
-
- /**
- * Registers an element as sticky, used internally by directives to register themselves
- */
- return function registerStickyElement(scope, element, stickyClone) {
- var contentCtrl = element.controller('mdContent');
- if (!contentCtrl) return;
-
- if (browserStickySupport) {
- element.css({
- position: browserStickySupport,
- top: 0,
- 'z-index': 2
- });
- } else {
- var $$sticky = contentCtrl.$element.data('$$sticky');
- if (!$$sticky) {
- $$sticky = setupSticky(contentCtrl);
- contentCtrl.$element.data('$$sticky', $$sticky);
- }
-
- var deregister = $$sticky.add(element, stickyClone || element.clone());
- scope.$on('$destroy', deregister);
- }
- };
-
- function setupSticky(contentCtrl) {
- var contentEl = contentCtrl.$element;
-
- // Refresh elements is very expensive, so we use the debounced
- // version when possible.
- var debouncedRefreshElements = $$rAF.throttle(refreshElements);
-
- // setupAugmentedScrollEvents gives us `$scrollstart` and `$scroll`,
- // more reliable than `scroll` on android.
- setupAugmentedScrollEvents(contentEl);
- contentEl.on('$scrollstart', debouncedRefreshElements);
- contentEl.on('$scroll', onScroll);
-
- var self;
- var stickyBaseoffset = contentEl.prop('offsetTop');
- return self = {
- prev: null,
- current: null, //the currently stickied item
- next: null,
- items: [],
- add: add,
- refreshElements: refreshElements
- };
-
- /***************
- * Public
- ***************/
- // Add an element and its sticky clone to this content's sticky collection
- function add(element, stickyClone) {
- stickyClone.addClass('md-sticky-clone');
- stickyClone.css('top', stickyBaseoffset + 'px');
-
- var item = {
- element: element,
- clone: stickyClone
- };
- self.items.push(item);
-
- contentEl.parent().prepend(item.clone);
-
- debouncedRefreshElements();
-
- return function remove() {
- self.items.forEach(function(item, index) {
- if (item.element[0] === element[0]) {
- self.items.splice(index, 1);
- item.clone.remove();
- }
- });
- debouncedRefreshElements();
- };
- }
-
- function refreshElements() {
- // Sort our collection of elements by their current position in the DOM.
- // We need to do this because our elements' order of being added may not
- // be the same as their order of display.
- self.items.forEach(refreshPosition);
- self.items = self.items.sort(function(a, b) {
- return a.top < b.top ? -1 : 1;
- });
-
- // Find which item in the list should be active,
- // based upon the content's current scroll position
- var item;
- var currentScrollTop = contentEl.prop('scrollTop');
- for (var i = self.items.length - 1; i >= 0; i--) {
- if (currentScrollTop > self.items[i].top) {
- item = self.items[i];
- break;
- }
- }
- setCurrentItem(item);
- }
-
-
- /***************
- * Private
- ***************/
-
- // Find the `top` of an item relative to the content element,
- // and also the height.
- function refreshPosition(item) {
- // Find the top of an item by adding to the offsetHeight until we reach the
- // content element.
- var current = item.element[0];
- item.top = 0;
- item.left = 0;
- while (current && current !== contentEl[0]) {
- item.top += current.offsetTop;
- item.left += current.offsetLeft;
- current = current.offsetParent;
- }
- item.height = item.element.prop('offsetHeight');
- item.clone.css('margin-left', item.left + 'px');
- if ($mdUtil.floatingScrollbars()) {
- item.clone.css('margin-right', '0');
- }
- }
-
-
- // As we scroll, push in and select the correct sticky element.
- function onScroll() {
- var scrollTop = contentEl.prop('scrollTop');
- var isScrollingDown = scrollTop > (onScroll.prevScrollTop || 0);
- onScroll.prevScrollTop = scrollTop;
-
- // At the top?
- if (scrollTop === 0) {
- setCurrentItem(null);
-
- // Going to next item?
- } else if (isScrollingDown && self.next) {
- if (self.next.top - scrollTop <= 0) {
- // Sticky the next item if we've scrolled past its position.
- setCurrentItem(self.next);
- } else if (self.current) {
- // Push the current item up when we're almost at the next item.
- if (self.next.top - scrollTop <= self.next.height) {
- translate(self.current, self.next.top - self.next.height - scrollTop);
- } else {
- translate(self.current, null);
- }
- }
-
- // Scrolling up with a current sticky item?
- } else if (!isScrollingDown && self.current) {
- if (scrollTop < self.current.top) {
- // Sticky the previous item if we've scrolled up past
- // the original position of the currently stickied item.
- setCurrentItem(self.prev);
- }
- // Scrolling up, and just bumping into the item above (just set to current)?
- // If we have a next item bumping into the current item, translate
- // the current item up from the top as it scrolls into view.
- if (self.current && self.next) {
- if (scrollTop >= self.next.top - self.current.height) {
- translate(self.current, self.next.top - scrollTop - self.current.height);
- } else {
- translate(self.current, null);
- }
- }
- }
- }
-
- function setCurrentItem(item) {
- if (self.current === item) return;
- // Deactivate currently active item
- if (self.current) {
- translate(self.current, null);
- setStickyState(self.current, null);
- }
-
- // Activate new item if given
- if (item) {
- setStickyState(item, 'active');
- }
-
- self.current = item;
- var index = self.items.indexOf(item);
- // If index === -1, index + 1 = 0. It works out.
- self.next = self.items[index + 1];
- self.prev = self.items[index - 1];
- setStickyState(self.next, 'next');
- setStickyState(self.prev, 'prev');
- }
-
- function setStickyState(item, state) {
- if (!item || item.state === state) return;
- if (item.state) {
- item.clone.attr('sticky-prev-state', item.state);
- item.element.attr('sticky-prev-state', item.state);
- }
- item.clone.attr('sticky-state', state);
- item.element.attr('sticky-state', state);
- item.state = state;
- }
-
- function translate(item, amount) {
- if (!item) return;
- if (amount === null || amount === undefined) {
- if (item.translateY) {
- item.translateY = null;
- item.clone.css($mdConstant.CSS.TRANSFORM, '');
- }
- } else {
- item.translateY = amount;
- item.clone.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(' + item.left + 'px,' + amount + 'px,0)'
- );
- }
- }
- }
-
- // Function to check for browser sticky support
- function checkStickySupport($el) {
- var stickyProp;
- var testEl = angular.element('<div>');
- $document[0].body.appendChild(testEl[0]);
-
- var stickyProps = ['sticky', '-webkit-sticky'];
- for (var i = 0; i < stickyProps.length; ++i) {
- testEl.css({position: stickyProps[i], top: 0, 'z-index': 2});
- if (testEl.css('position') == stickyProps[i]) {
- stickyProp = stickyProps[i];
- break;
- }
- }
- testEl.remove();
- return stickyProp;
- }
-
- // Android 4.4 don't accurately give scroll events.
- // To fix this problem, we setup a fake scroll event. We say:
- // > If a scroll or touchmove event has happened in the last DELAY milliseconds,
- // then send a `$scroll` event every animationFrame.
- // Additionally, we add $scrollstart and $scrollend events.
- function setupAugmentedScrollEvents(element) {
- var SCROLL_END_DELAY = 200;
- var isScrolling;
- var lastScrollTime;
- element.on('scroll touchmove', function() {
- if (!isScrolling) {
- isScrolling = true;
- $$rAF(loopScrollEvent);
- element.triggerHandler('$scrollstart');
- }
- element.triggerHandler('$scroll');
- lastScrollTime = +$mdUtil.now();
- });
-
- function loopScrollEvent() {
- if (+$mdUtil.now() - lastScrollTime > SCROLL_END_DELAY) {
- isScrolling = false;
- element.triggerHandler('$scrollend');
- } else {
- element.triggerHandler('$scroll');
- $$rAF(loopScrollEvent);
- }
- }
- }
-
-}
-MdSticky.$inject = ["$document", "$mdConstant", "$compile", "$$rAF", "$mdUtil"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.subheader
- * @description
- * SubHeader module
- *
- * Subheaders are special list tiles that delineate distinct sections of a
- * list or grid list and are typically related to the current filtering or
- * sorting criteria. Subheader tiles are either displayed inline with tiles or
- * can be associated with content, for example, in an adjacent column.
- *
- * Upon scrolling, subheaders remain pinned to the top of the screen and remain
- * pinned until pushed on or off screen by the next subheader. @see [Material
- * Design Specifications](https://www.google.com/design/spec/components/subheaders.html)
- *
- * > To improve the visual grouping of content, use the system color for your subheaders.
- *
- */
-angular.module('material.components.subheader', [
- 'material.core',
- 'material.components.sticky'
-])
- .directive('mdSubheader', MdSubheaderDirective);
-
-/**
- * @ngdoc directive
- * @name mdSubheader
- * @module material.components.subheader
- *
- * @restrict E
- *
- * @description
- * The `<md-subheader>` directive is a subheader for a section. By default it is sticky.
- * You can make it not sticky by applying the `md-no-sticky` class to the subheader.
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-subheader>Online Friends</md-subheader>
- * </hljs>
- */
-
-function MdSubheaderDirective($mdSticky, $compile, $mdTheming) {
- return {
- restrict: 'E',
- replace: true,
- transclude: true,
- template:
- '<h2 class="md-subheader">' +
- '<div class="md-subheader-inner">' +
- '<span class="md-subheader-content"></span>' +
- '</div>' +
- '</h2>',
- compile: function(element, attr, transclude) {
- return function postLink(scope, element, attr) {
- $mdTheming(element);
- var outerHTML = element[0].outerHTML;
-
- function getContent(el) {
- return angular.element(el[0].querySelector('.md-subheader-content'));
- }
-
- // Transclude the user-given contents of the subheader
- // the conventional way.
- transclude(scope, function(clone) {
- getContent(element).append(clone);
- });
-
- // Create another clone, that uses the outer and inner contents
- // of the element, that will be 'stickied' as the user scrolls.
- if (!element.hasClass('md-no-sticky')) {
- transclude(scope, function(clone) {
- var stickyClone = $compile(angular.element(outerHTML))(scope);
- getContent(stickyClone).append(clone);
- $mdSticky(scope, element, stickyClone);
- });
- }
- };
- }
- };
-}
-MdSubheaderDirective.$inject = ["$mdSticky", "$compile", "$mdTheming"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.swipe
- * @description Swipe module!
- */
-/**
- * @ngdoc directive
- * @module material.components.swipe
- * @name mdSwipeLeft
- *
- * @restrict A
- *
- * @description
- * The md-swipe-left directives allows you to specify custom behavior when an element is swiped
- * left.
- *
- * @usage
- * <hljs lang="html">
- * <div md-swipe-left="onSwipeLeft()">Swipe me left!</div>
- * </hljs>
- */
-/**
- * @ngdoc directive
- * @module material.components.swipe
- * @name mdSwipeRight
- *
- * @restrict A
- *
- * @description
- * The md-swipe-right directives allows you to specify custom behavior when an element is swiped
- * right.
- *
- * @usage
- * <hljs lang="html">
- * <div md-swipe-right="onSwipeRight()">Swipe me right!</div>
- * </hljs>
- */
-
-angular.module('material.components.swipe', ['material.core'])
- .directive('mdSwipeLeft', getDirective('SwipeLeft'))
- .directive('mdSwipeRight', getDirective('SwipeRight'));
-
-function getDirective(name) {
- var directiveName = 'md' + name;
- var eventName = '$md.' + name.toLowerCase();
-
- DirectiveFactory.$inject = ["$parse"];
- return DirectiveFactory;
-
- /* @ngInject */
- function DirectiveFactory($parse) {
- return { restrict: 'A', link: postLink };
- function postLink(scope, element, attr) {
- var fn = $parse(attr[directiveName]);
- element.on(eventName, function(ev) {
- scope.$apply(function() { fn(scope, { $event: ev }); });
- });
- }
- }
-}
-
-
-
-})();
-(function(){
-"use strict";
-
-/**
- * @private
- * @ngdoc module
- * @name material.components.switch
- */
-
-angular.module('material.components.switch', [
- 'material.core',
- 'material.components.checkbox'
-])
- .directive('mdSwitch', MdSwitch);
-
-/**
- * @private
- * @ngdoc directive
- * @module material.components.switch
- * @name mdSwitch
- * @restrict E
- *
- * The switch directive is used very much like the normal [angular checkbox](https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D).
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the switch is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {expression=} ng-true-value The value to which the expression should be set when selected.
- * @param {expression=} ng-false-value The value to which the expression should be set when not selected.
- * @param {string=} ng-change Angular expression to be executed when input changes due to user interaction with the input element.
- * @param {boolean=} md-no-ink Use of attribute indicates use of ripple ink effects.
- * @param {string=} aria-label Publish the button label used by screen-readers for accessibility. Defaults to the switch's text.
- *
- * @usage
- * <hljs lang="html">
- * <md-switch ng-model="isActive" aria-label="Finished?">
- * Finished ?
- * </md-switch>
- *
- * <md-switch md-no-ink ng-model="hasInk" aria-label="No Ink Effects">
- * No Ink Effects
- * </md-switch>
- *
- * <md-switch ng-disabled="true" ng-model="isDisabled" aria-label="Disabled">
- * Disabled
- * </md-switch>
- *
- * </hljs>
- */
-function MdSwitch(mdCheckboxDirective, $mdTheming, $mdUtil, $document, $mdConstant, $parse, $$rAF, $mdGesture) {
- var checkboxDirective = mdCheckboxDirective[0];
-
- return {
- restrict: 'E',
- priority:210, // Run before ngAria
- transclude: true,
- template:
- '<div class="md-container">' +
- '<div class="md-bar"></div>' +
- '<div class="md-thumb-container">' +
- '<div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div>' +
- '</div>'+
- '</div>' +
- '<div ng-transclude class="md-label">' +
- '</div>',
- require: '?ngModel',
- compile: compile
- };
-
- function compile(element, attr) {
- var checkboxLink = checkboxDirective.compile(element, attr);
- // no transition on initial load
- element.addClass('md-dragging');
-
- return function (scope, element, attr, ngModel) {
- ngModel = ngModel || $mdUtil.fakeNgModel();
- var disabledGetter = $parse(attr.ngDisabled);
- var thumbContainer = angular.element(element[0].querySelector('.md-thumb-container'));
- var switchContainer = angular.element(element[0].querySelector('.md-container'));
-
- // no transition on initial load
- $$rAF(function() {
- element.removeClass('md-dragging');
- });
-
- checkboxLink(scope, element, attr, ngModel);
-
- if (angular.isDefined(attr.ngDisabled)) {
- scope.$watch(disabledGetter, function(isDisabled) {
- element.attr('tabindex', isDisabled ? -1 : 0);
- });
- }
-
- // These events are triggered by setup drag
- $mdGesture.register(switchContainer, 'drag');
- switchContainer
- .on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- var drag;
- function onDragStart(ev) {
- // Don't go if ng-disabled===true
- if (disabledGetter(scope)) return;
- ev.stopPropagation();
-
- element.addClass('md-dragging');
- drag = {
- width: thumbContainer.prop('offsetWidth')
- };
- element.removeClass('transition');
- }
-
- function onDrag(ev) {
- if (!drag) return;
- ev.stopPropagation();
- ev.srcEvent && ev.srcEvent.preventDefault();
-
- var percent = ev.pointer.distanceX / drag.width;
-
- //if checked, start from right. else, start from left
- var translate = ngModel.$viewValue ? 1 + percent : percent;
- // Make sure the switch stays inside its bounds, 0-1%
- translate = Math.max(0, Math.min(1, translate));
-
- thumbContainer.css($mdConstant.CSS.TRANSFORM, 'translate3d(' + (100*translate) + '%,0,0)');
- drag.translate = translate;
- }
-
- function onDragEnd(ev) {
- if (!drag) return;
- ev.stopPropagation();
-
- element.removeClass('md-dragging');
- thumbContainer.css($mdConstant.CSS.TRANSFORM, '');
-
- // We changed if there is no distance (this is a click a click),
- // or if the drag distance is >50% of the total.
- var isChanged = ngModel.$viewValue ? drag.translate < 0.5 : drag.translate > 0.5;
- if (isChanged) {
- applyModelValue(!ngModel.$viewValue);
- }
- drag = null;
- }
-
- function applyModelValue(newValue) {
- scope.$apply(function() {
- ngModel.$setViewValue(newValue);
- ngModel.$render();
- });
- }
-
- };
- }
-
-
-}
-MdSwitch.$inject = ["mdCheckboxDirective", "$mdTheming", "$mdUtil", "$document", "$mdConstant", "$parse", "$$rAF", "$mdGesture"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.tabs
- * @description
- *
- * Tabs, created with the `<md-tabs>` directive provide *tabbed* navigation with different styles.
- * The Tabs component consists of clickable tabs that are aligned horizontally side-by-side.
- *
- * Features include support for:
- *
- * - static or dynamic tabs,
- * - responsive designs,
- * - accessibility support (ARIA),
- * - tab pagination,
- * - external or internal tab content,
- * - focus indicators and arrow-key navigations,
- * - programmatic lookup and access to tab controllers, and
- * - dynamic transitions through different tab contents.
- *
- */
-/*
- * @see js folder for tabs implementation
- */
-angular.module('material.components.tabs', [
- 'material.core',
- 'material.components.icon'
-]);
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.toast
- * @description
- * Toast
- */
-angular.module('material.components.toast', [
- 'material.core',
- 'material.components.button'
-])
- .directive('mdToast', MdToastDirective)
- .provider('$mdToast', MdToastProvider);
-
-function MdToastDirective() {
- return {
- restrict: 'E'
- };
-}
-
-/**
- * @ngdoc service
- * @name $mdToast
- * @module material.components.toast
- *
- * @description
- * `$mdToast` is a service to build a toast notification on any position
- * on the screen with an optional duration, and provides a simple promise API.
- *
- *
- * ## Restrictions on custom toasts
- * - The toast's template must have an outer `<md-toast>` element.
- * - For a toast action, use element with class `md-action`.
- * - Add the class `md-capsule` for curved corners.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-controller="MyController">
- * <md-button ng-click="openToast()">
- * Open a Toast!
- * </md-button>
- * </div>
- * </hljs>
- *
- * <hljs lang="js">
- * var app = angular.module('app', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdToast) {
- * $scope.openToast = function($event) {
- * $mdToast.show($mdToast.simple().content('Hello!'));
- * // Could also do $mdToast.showSimple('Hello');
- * };
- * });
- * </hljs>
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#showSimple
- *
- * @description
- * Convenience method which builds and shows a simple toast.
- *
- * @returns {promise} A promise that can be resolved with `$mdToast.hide()` or
- * rejected with `$mdToast.cancel()`.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#simple
- *
- * @description
- * Builds a preconfigured toast.
- *
- * @returns {obj} a `$mdToastPreset` with the chainable configuration methods:
- *
- * - $mdToastPreset#content(string) - sets toast content to string
- * - $mdToastPreset#action(string) - adds an action button, which resolves the promise returned from `show()` if clicked.
- * - $mdToastPreset#highlightAction(boolean) - sets action button to be highlighted
- * - $mdToastPreset#capsule(boolean) - adds 'md-capsule' class to the toast (curved corners)
- * - $mdToastPreset#theme(boolean) - sets the theme on the toast to theme (default is `$mdThemingProvider`'s default theme)
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#updateContent
- *
- * @description
- * Updates the content of an existing toast. Useful for updating things like counts, etc.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#build
- *
- * @description
- * Creates a custom `$mdToastPreset` that you can configure.
- *
- * @returns {obj} a `$mdToastPreset` with the chainable configuration methods for shows' options (see below).
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#show
- *
- * @description Shows the toast.
- *
- * @param {object} optionsOrPreset Either provide an `$mdToastPreset` returned from `simple()`
- * and `build()`, or an options object with the following properties:
- *
- * - `templateUrl` - `{string=}`: The url of an html template file that will
- * be used as the content of the toast. Restrictions: the template must
- * have an outer `md-toast` element.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual
- * template string.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope.
- * This scope will be destroyed when the toast is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `hideDelay` - `{number=}`: How many milliseconds the toast should stay
- * active before automatically closing. Set to 0 or false to have the toast stay open until
- * closed manually. Default: 3000.
- * - `position` - `{string=}`: Where to place the toast. Available: any combination
- * of 'bottom', 'left', 'top', 'right', 'fit'. Default: 'bottom left'.
- * - `controller` - `{string=}`: The controller to associate with this toast.
- * The controller will be injected the local `$hideToast`, which is a function
- * used to hide the toast.
- * - `locals` - `{string=}`: An object containing key/value pairs. The keys will
- * be used as names of values to inject into the controller. For example,
- * `locals: {three: 3}` would inject `three` into the controller with the value
- * of 3.
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in. These values will not be available until after initialization.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
- * and the toast will not open until the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the toast to. Defaults to appending
- * to the root element of the application.
- *
- * @returns {promise} A promise that can be resolved with `$mdToast.hide()` or
- * rejected with `$mdToast.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#hide
- *
- * @description
- * Hide an existing toast and resolve the promise returned from `$mdToast.show()`.
- *
- * @param {*=} response An argument for the resolved promise.
- *
- * @returns {promise} a promise that is called when the existing element is removed from the DOM
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#cancel
- *
- * @description
- * Hide the existing toast and reject the promise returned from
- * `$mdToast.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- * @returns {promise} a promise that is called when the existing element is removed from the DOM
- *
- */
-
-function MdToastProvider($$interimElementProvider) {
- var activeToastContent;
- var $mdToast = $$interimElementProvider('$mdToast')
- .setDefaults({
- methods: ['position', 'hideDelay', 'capsule' ],
- options: toastDefaultOptions
- })
- .addPreset('simple', {
- argOption: 'content',
- methods: ['content', 'action', 'highlightAction', 'theme', 'parent'],
- options: /* @ngInject */ ["$mdToast", "$mdTheming", function($mdToast, $mdTheming) {
- var opts = {
- template: [
- '<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">',
- '<span flex>{{ toast.content }}</span>',
- '<md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}">',
- '{{ toast.action }}',
- '</md-button>',
- '</md-toast>'
- ].join(''),
- controller: /* @ngInject */ ["$scope", function mdToastCtrl($scope) {
- var self = this;
- $scope.$watch(function() { return activeToastContent; }, function() {
- self.content = activeToastContent;
- });
- this.resolve = function() {
- $mdToast.hide();
- };
- }],
- theme: $mdTheming.defaultTheme(),
- controllerAs: 'toast',
- bindToController: true
- };
- return opts;
- }]
- })
- .addMethod('updateContent', function(newContent) {
- activeToastContent = newContent;
- });
-
- toastDefaultOptions.$inject = ["$timeout", "$animate", "$mdToast", "$mdUtil"];
- return $mdToast;
-
- /* @ngInject */
- function toastDefaultOptions($timeout, $animate, $mdToast, $mdUtil) {
- return {
- onShow: onShow,
- onRemove: onRemove,
- position: 'bottom left',
- themable: true,
- hideDelay: 3000
- };
-
- function onShow(scope, element, options) {
- element = $mdUtil.extractElementByName(element, 'md-toast');
-
- // 'top left' -> 'md-top md-left'
- activeToastContent = options.content;
- element.addClass(options.position.split(' ').map(function(pos) {
- return 'md-' + pos;
- }).join(' '));
- options.parent.addClass(toastOpenClass(options.position));
-
- options.onSwipe = function(ev, gesture) {
- //Add swipeleft/swiperight class to element so it can animate correctly
- element.addClass('md-' + ev.type.replace('$md.',''));
- $timeout($mdToast.cancel);
- };
- element.on('$md.swipeleft $md.swiperight', options.onSwipe);
- return $animate.enter(element, options.parent);
- }
-
- function onRemove(scope, element, options) {
- element.off('$md.swipeleft $md.swiperight', options.onSwipe);
- options.parent.removeClass(toastOpenClass(options.position));
- return $animate.leave(element);
- }
-
- function toastOpenClass(position) {
- return 'md-toast-open-' +
- (position.indexOf('top') > -1 ? 'top' : 'bottom');
- }
- }
-
-}
-MdToastProvider.$inject = ["$$interimElementProvider"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.toolbar
- */
-angular.module('material.components.toolbar', [
- 'material.core',
- 'material.components.content'
-])
- .directive('mdToolbar', mdToolbarDirective);
-
-/**
- * @ngdoc directive
- * @name mdToolbar
- * @module material.components.toolbar
- * @restrict E
- * @description
- * `md-toolbar` is used to place a toolbar in your app.
- *
- * Toolbars are usually used above a content area to display the title of the
- * current page, and show relevant action buttons for that page.
- *
- * You can change the height of the toolbar by adding either the
- * `md-medium-tall` or `md-tall` class to the toolbar.
- *
- * @usage
- * <hljs lang="html">
- * <div layout="column" layout-fill>
- * <md-toolbar>
- *
- * <div class="md-toolbar-tools">
- * <span>My App's Title</span>
- *
- * <!-- fill up the space between left and right area -->
- * <span flex></span>
- *
- * <md-button>
- * Right Bar Button
- * </md-button>
- * </div>
- *
- * </md-toolbar>
- * <md-content>
- * Hello!
- * </md-content>
- * </div>
- * </hljs>
- *
- * @param {boolean=} md-scroll-shrink Whether the header should shrink away as
- * the user scrolls down, and reveal itself as the user scrolls up.
- * Note: for scrollShrink to work, the toolbar must be a sibling of a
- * `md-content` element, placed before it. See the scroll shrink demo.
- *
- *
- * @param {number=} md-shrink-speed-factor How much to change the speed of the toolbar's
- * shrinking by. For example, if 0.25 is given then the toolbar will shrink
- * at one fourth the rate at which the user scrolls down. Default 0.5.
- */
-function mdToolbarDirective($$rAF, $mdConstant, $mdUtil, $mdTheming, $animate, $timeout) {
-
- return {
- restrict: 'E',
- controller: angular.noop,
- link: function(scope, element, attr) {
- $mdTheming(element);
-
- if (angular.isDefined(attr.mdScrollShrink)) {
- setupScrollShrink();
- }
-
- function setupScrollShrink() {
- // Current "y" position of scroll
- var y = 0;
- // Store the last scroll top position
- var prevScrollTop = 0;
-
- var shrinkSpeedFactor = attr.mdShrinkSpeedFactor || 0.5;
-
- var toolbarHeight;
- var contentElement;
-
- var debouncedContentScroll = $$rAF.throttle(onContentScroll);
- var debouncedUpdateHeight = $mdUtil.debounce(updateToolbarHeight, 5 * 1000);
-
- // Wait for $mdContentLoaded event from mdContent directive.
- // If the mdContent element is a sibling of our toolbar, hook it up
- // to scroll events.
- scope.$on('$mdContentLoaded', onMdContentLoad);
-
- function onMdContentLoad($event, newContentEl) {
- // Toolbar and content must be siblings
- if (element.parent()[0] === newContentEl.parent()[0]) {
- // unhook old content event listener if exists
- if (contentElement) {
- contentElement.off('scroll', debouncedContentScroll);
- }
-
- newContentEl.on('scroll', debouncedContentScroll);
- newContentEl.attr('scroll-shrink', 'true');
-
- contentElement = newContentEl;
- $$rAF(updateToolbarHeight);
- }
- }
-
- function updateToolbarHeight() {
- toolbarHeight = element.prop('offsetHeight');
- // Add a negative margin-top the size of the toolbar to the content el.
- // The content will start transformed down the toolbarHeight amount,
- // so everything looks normal.
- //
- // As the user scrolls down, the content will be transformed up slowly
- // to put the content underneath where the toolbar was.
- var margin = (-toolbarHeight * shrinkSpeedFactor) + 'px';
- contentElement.css('margin-top', margin);
- contentElement.css('margin-bottom', margin);
-
- onContentScroll();
- }
-
- function onContentScroll(e) {
- var scrollTop = e ? e.target.scrollTop : prevScrollTop;
-
- debouncedUpdateHeight();
-
- y = Math.min(
- toolbarHeight / shrinkSpeedFactor,
- Math.max(0, y + scrollTop - prevScrollTop)
- );
-
- element.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(0,' + (-y * shrinkSpeedFactor) + 'px,0)'
- );
- contentElement.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(0,' + ((toolbarHeight - y) * shrinkSpeedFactor) + 'px,0)'
- );
-
- prevScrollTop = scrollTop;
-
- if (element.hasClass('md-whiteframe-z1')) {
- if (!y) {
- $timeout(function () { $animate.removeClass(element, 'md-whiteframe-z1'); });
- }
- } else {
- if (y) {
- $timeout(function () { $animate.addClass(element, 'md-whiteframe-z1'); });
- }
- }
- }
-
- }
-
- }
- };
-
-}
-mdToolbarDirective.$inject = ["$$rAF", "$mdConstant", "$mdUtil", "$mdTheming", "$animate", "$timeout"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.tooltip
- */
-angular
- .module('material.components.tooltip', [ 'material.core' ])
- .directive('mdTooltip', MdTooltipDirective);
-
-/**
- * @ngdoc directive
- * @name mdTooltip
- * @module material.components.tooltip
- * @description
- * Tooltips are used to describe elements that are interactive and primarily graphical (not textual).
- *
- * Place a `<md-tooltip>` as a child of the element it describes.
- *
- * A tooltip will activate when the user focuses, hovers over, or touches the parent.
- *
- * @usage
- * <hljs lang="html">
- * <md-button class="md-fab md-accent" aria-label="Play">
- * <md-tooltip>
- * Play Music
- * </md-tooltip>
- * <md-icon icon="img/icons/ic_play_arrow_24px.svg"></md-icon>
- * </md-button>
- * </hljs>
- *
- * @param {expression=} md-visible Boolean bound to whether the tooltip is
- * currently visible.
- * @param {number=} md-delay How many milliseconds to wait to show the tooltip after the user focuses, hovers, or touches the parent. Defaults to 400ms.
- * @param {string=} md-direction Which direction would you like the tooltip to go? Supports left, right, top, and bottom. Defaults to bottom.
- * @param {boolean=} md-autohide If present or provided with a boolean value, the tooltip will hide on mouse leave, regardless of focus
- */
-function MdTooltipDirective($timeout, $window, $$rAF, $document, $mdUtil, $mdTheming, $rootElement,
- $animate, $q) {
-
- var TOOLTIP_SHOW_DELAY = 300;
- var TOOLTIP_WINDOW_EDGE_SPACE = 8;
-
- return {
- restrict: 'E',
- transclude: true,
- priority:210, // Before ngAria
- template: '\
- <div class="md-background"></div>\
- <div class="md-content" ng-transclude></div>',
- scope: {
- visible: '=?mdVisible',
- delay: '=?mdDelay',
- autohide: '=?mdAutohide'
- },
- link: postLink
- };
-
- function postLink(scope, element, attr) {
-
- $mdTheming(element);
-
- var parent = getParentWithPointerEvents(),
- background = angular.element(element[0].getElementsByClassName('md-background')[0]),
- content = angular.element(element[0].getElementsByClassName('md-content')[0]),
- direction = attr.mdDirection,
- current = getNearestContentElement(),
- tooltipParent = angular.element(current || document.body),
- debouncedOnResize = $$rAF.throttle(function () { if (scope.visible) positionTooltip(); });
-
- return init();
-
- function init () {
- setDefaults();
- manipulateElement();
- bindEvents();
- configureWatchers();
- addAriaLabel();
- }
-
- function setDefaults () {
- if (!angular.isDefined(attr.mdDelay)) scope.delay = TOOLTIP_SHOW_DELAY;
- }
-
- function configureWatchers () {
- scope.$on('$destroy', function() {
- scope.visible = false;
- element.remove();
- angular.element($window).off('resize', debouncedOnResize);
- });
- scope.$watch('visible', function (isVisible) {
- if (isVisible) showTooltip();
- else hideTooltip();
- });
- }
-
- function addAriaLabel () {
- if (!parent.attr('aria-label') && !parent.text().trim()) {
- parent.attr('aria-label', element.text().trim());
- }
- }
-
- function manipulateElement () {
- element.detach();
- element.attr('role', 'tooltip');
- }
-
- function getParentWithPointerEvents () {
- var parent = element.parent();
- while (parent && $window.getComputedStyle(parent[0])['pointer-events'] == 'none') {
- parent = parent.parent();
- }
- return parent;
- }
-
- function getNearestContentElement () {
- var current = element.parent()[0];
- // Look for the nearest parent md-content, stopping at the rootElement.
- while (current && current !== $rootElement[0] && current !== document.body) {
- current = current.parentNode;
- }
- return current;
- }
-
- function hasComputedStyleValue(key, value) {
- // Check if we should show it or not...
- var computedStyles = $window.getComputedStyle(element[0]);
- return angular.isDefined(computedStyles[key]) && (computedStyles[key] == value);
- }
-
- function bindEvents () {
- var mouseActive = false;
- var enterHandler = function() {
- if (!hasComputedStyleValue('pointer-events','none')) {
- setVisible(true);
- }
- };
- var leaveHandler = function () {
- var autohide = scope.hasOwnProperty('autohide') ? scope.autohide : attr.hasOwnProperty('mdAutohide');
- if (autohide || mouseActive || ($document[0].activeElement !== parent[0]) ) {
- setVisible(false);
- }
- mouseActive = false;
- };
-
- // to avoid `synthetic clicks` we listen to mousedown instead of `click`
- parent.on('mousedown', function() { mouseActive = true; });
- parent.on('focus mouseenter touchstart', enterHandler );
- parent.on('blur mouseleave touchend touchcancel', leaveHandler );
-
-
- angular.element($window).on('resize', debouncedOnResize);
- }
-
- function setVisible (value) {
- setVisible.value = !!value;
- if (!setVisible.queued) {
- if (value) {
- setVisible.queued = true;
- $timeout(function() {
- scope.visible = setVisible.value;
- setVisible.queued = false;
- }, scope.delay);
- } else {
- $timeout(function() { scope.visible = false; });
- }
- }
- }
-
- function showTooltip() {
- // Insert the element before positioning it, so we can get the position
- // and check if we should display it
- tooltipParent.append(element);
-
- // Check if we should display it or not.
- // This handles hide-* and show-* along with any user defined css
- if ( hasComputedStyleValue('display','none') ) {
- scope.visible = false;
- element.detach();
- return;
- }
-
- positionTooltip();
- angular.forEach([element, background, content], function (element) {
- $animate.addClass(element, 'md-show');
- });
- }
-
- function hideTooltip() {
- $q.all([
- $animate.removeClass(content, 'md-show'),
- $animate.removeClass(background, 'md-show'),
- $animate.removeClass(element, 'md-show')
- ]).then(function () {
- if (!scope.visible) element.detach();
- });
- }
-
- function positionTooltip() {
- var tipRect = $mdUtil.offsetRect(element, tooltipParent);
- var parentRect = $mdUtil.offsetRect(parent, tooltipParent);
- var newPosition = getPosition(direction);
-
- // If the user provided a direction, just nudge the tooltip onto the screen
- // Otherwise, recalculate based on 'top' since default is 'bottom'
- if (direction) {
- newPosition = fitInParent(newPosition);
- } else if (newPosition.top > element.prop('offsetParent').scrollHeight - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE) {
- newPosition = fitInParent(getPosition('top'));
- }
-
- element.css({top: newPosition.top + 'px', left: newPosition.left + 'px'});
-
- positionBackground();
-
- function positionBackground () {
- var size = direction === 'left' || direction === 'right'
- ? Math.sqrt(Math.pow(tipRect.width, 2) + Math.pow(tipRect.height / 2, 2)) * 2
- : Math.sqrt(Math.pow(tipRect.width / 2, 2) + Math.pow(tipRect.height, 2)) * 2,
- position = direction === 'left' ? { left: 100, top: 50 }
- : direction === 'right' ? { left: 0, top: 50 }
- : direction === 'top' ? { left: 50, top: 100 }
- : { left: 50, top: 0 };
- background.css({
- width: size + 'px',
- height: size + 'px',
- left: position.left + '%',
- top: position.top + '%'
- });
- }
-
- function fitInParent (pos) {
- var newPosition = { left: pos.left, top: pos.top };
- newPosition.left = Math.min( newPosition.left, tooltipParent.prop('scrollWidth') - tipRect.width - TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.left = Math.max( newPosition.left, TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.top = Math.min( newPosition.top, tooltipParent.prop('scrollHeight') - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.top = Math.max( newPosition.top, TOOLTIP_WINDOW_EDGE_SPACE );
- return newPosition;
- }
-
- function getPosition (dir) {
- return dir === 'left'
- ? { left: parentRect.left - tipRect.width - TOOLTIP_WINDOW_EDGE_SPACE,
- top: parentRect.top + parentRect.height / 2 - tipRect.height / 2 }
- : dir === 'right'
- ? { left: parentRect.left + parentRect.width + TOOLTIP_WINDOW_EDGE_SPACE,
- top: parentRect.top + parentRect.height / 2 - tipRect.height / 2 }
- : dir === 'top'
- ? { left: parentRect.left + parentRect.width / 2 - tipRect.width / 2,
- top: parentRect.top - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE }
- : { left: parentRect.left + parentRect.width / 2 - tipRect.width / 2,
- top: parentRect.top + parentRect.height + TOOLTIP_WINDOW_EDGE_SPACE };
- }
- }
-
- }
-
-}
-MdTooltipDirective.$inject = ["$timeout", "$window", "$$rAF", "$document", "$mdUtil", "$mdTheming", "$rootElement", "$animate", "$q"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.whiteframe
- */
-angular.module('material.components.whiteframe', []);
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.autocomplete')
- .controller('MdAutocompleteCtrl', MdAutocompleteCtrl);
-
-var ITEM_HEIGHT = 41,
- MAX_HEIGHT = 5.5 * ITEM_HEIGHT,
- MENU_PADDING = 8;
-
-function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $timeout, $mdTheming, $window, $animate, $rootElement) {
-
- //-- private variables
-
- var self = this,
- itemParts = $scope.itemsExpr.split(/ in /i),
- itemExpr = itemParts[1],
- elements = null,
- promise = null,
- cache = {},
- noBlur = false,
- selectedItemWatchers = [],
- hasFocus = false,
- lastCount = 0;
-
- //-- public variables
-
- self.scope = $scope;
- self.parent = $scope.$parent;
- self.itemName = itemParts[0];
- self.matches = [];
- self.loading = false;
- self.hidden = true;
- self.index = null;
- self.messages = [];
- self.id = $mdUtil.nextUid();
-
- //-- public methods
-
- self.keydown = keydown;
- self.blur = blur;
- self.focus = focus;
- self.clear = clearValue;
- self.select = select;
- self.getCurrentDisplayValue = getCurrentDisplayValue;
- self.registerSelectedItemWatcher = registerSelectedItemWatcher;
- self.unregisterSelectedItemWatcher = unregisterSelectedItemWatcher;
-
- self.listEnter = function () { noBlur = true; };
- self.listLeave = function () {
- noBlur = false;
- if (!hasFocus) self.hidden = true;
- };
- self.mouseUp = function () { elements.input.focus(); };
-
- return init();
-
- //-- initialization methods
-
- function init () {
- configureWatchers();
- $timeout(function () {
- gatherElements();
- focusElement();
- moveDropdown();
- });
- }
-
- function positionDropdown () {
- if (!elements) return $timeout(positionDropdown, 0, false);
- var hrect = elements.wrap.getBoundingClientRect(),
- vrect = elements.snap.getBoundingClientRect(),
- root = elements.root.getBoundingClientRect(),
- top = vrect.bottom - root.top,
- bot = root.bottom - vrect.top,
- left = hrect.left - root.left,
- width = hrect.width,
- styles = {
- left: left + 'px',
- minWidth: width + 'px',
- maxWidth: Math.max(hrect.right - root.left, root.right - hrect.left) - MENU_PADDING + 'px'
- };
- if (top > bot && root.height - hrect.bottom - MENU_PADDING < MAX_HEIGHT) {
- styles.top = 'auto';
- styles.bottom = bot + 'px';
- styles.maxHeight = Math.min(MAX_HEIGHT, hrect.top - root.top - MENU_PADDING) + 'px';
- } else {
- styles.top = top + 'px';
- styles.bottom = 'auto';
- styles.maxHeight = Math.min(MAX_HEIGHT, root.bottom - hrect.bottom - MENU_PADDING) + 'px';
- }
- elements.$.ul.css(styles);
- $timeout(correctHorizontalAlignment, 0, false);
-
- function correctHorizontalAlignment () {
- var dropdown = elements.ul.getBoundingClientRect(),
- styles = {};
- if (dropdown.right > root.right - MENU_PADDING) {
- styles.left = (hrect.right - dropdown.width) + 'px';
- }
- elements.$.ul.css(styles);
- }
- }
-
- function moveDropdown () {
- if (!elements.$.root.length) return;
- $mdTheming(elements.$.ul);
- elements.$.ul.detach();
- elements.$.root.append(elements.$.ul);
- if ($animate.pin) $animate.pin(elements.$.ul, $rootElement);
- }
-
- function focusElement () {
- if ($scope.autofocus) elements.input.focus();
- }
-
- function configureWatchers () {
- var wait = parseInt($scope.delay, 10) || 0;
- $scope.$watch('searchText', wait
- ? $mdUtil.debounce(handleSearchText, wait)
- : handleSearchText);
- registerSelectedItemWatcher(selectedItemChange);
- $scope.$watch('selectedItem', handleSelectedItemChange);
- $scope.$watch('$mdAutocompleteCtrl.hidden', function (hidden, oldHidden) {
- if (!hidden && oldHidden) positionDropdown();
- });
- angular.element($window).on('resize', positionDropdown);
- $scope.$on('$destroy', cleanup);
- }
-
- function cleanup () {
- elements.$.ul.remove();
- }
-
- function gatherElements () {
- elements = {
- main: $element[0],
- ul: $element.find('ul')[0],
- input: $element.find('input')[0],
- wrap: $element.find('md-autocomplete-wrap')[0],
- root: document.body
- };
- elements.li = elements.ul.getElementsByTagName('li');
- elements.snap = getSnapTarget();
- elements.$ = getAngularElements(elements);
- }
-
- function getSnapTarget () {
- for (var element = $element; element.length; element = element.parent()) {
- if (angular.isDefined(element.attr('md-autocomplete-snap'))) return element[0];
- }
- return elements.wrap;
- }
-
- function getAngularElements (elements) {
- var obj = {};
- for (var key in elements) {
- obj[key] = angular.element(elements[key]);
- }
- return obj;
- }
-
- //-- event/change handlers
-
- function selectedItemChange (selectedItem, previousSelectedItem) {
- if (selectedItem) {
- $scope.searchText = getDisplayValue(selectedItem);
- }
- if ($scope.itemChange && selectedItem !== previousSelectedItem)
- $scope.itemChange(getItemScope(selectedItem));
- }
-
- function handleSelectedItemChange(selectedItem, previousSelectedItem) {
- for (var i = 0; i < selectedItemWatchers.length; ++i) {
- selectedItemWatchers[i](selectedItem, previousSelectedItem);
- }
- }
-
- /**
- * Register a function to be called when the selected item changes.
- * @param cb
- */
- function registerSelectedItemWatcher(cb) {
- if (selectedItemWatchers.indexOf(cb) == -1) {
- selectedItemWatchers.push(cb);
- }
- }
-
- /**
- * Unregister a function previously registered for selected item changes.
- * @param cb
- */
- function unregisterSelectedItemWatcher(cb) {
- var i = selectedItemWatchers.indexOf(cb);
- if (i != -1) {
- selectedItemWatchers.splice(i, 1);
- }
- }
-
- function handleSearchText (searchText, previousSearchText) {
- self.index = getDefaultIndex();
- //-- do nothing on init
- if (searchText === previousSearchText) return;
- //-- clear selected item if search text no longer matches it
- if (searchText !== getDisplayValue($scope.selectedItem)) $scope.selectedItem = null;
- else return;
- //-- trigger change event if available
- if ($scope.textChange && searchText !== previousSearchText)
- $scope.textChange(getItemScope($scope.selectedItem));
- //-- cancel results if search text is not long enough
- if (!isMinLengthMet()) {
- self.loading = false;
- self.matches = [];
- self.hidden = shouldHide();
- updateMessages();
- } else {
- handleQuery();
- }
- }
-
- function blur () {
- hasFocus = false;
- if (!noBlur) self.hidden = true;
- }
-
- function focus () {
- hasFocus = true;
- //-- if searchText is null, let's force it to be a string
- if (!angular.isString($scope.searchText)) $scope.searchText = '';
- if ($scope.minLength > 0) return;
- self.hidden = shouldHide();
- if (!self.hidden) handleQuery();
- }
-
- function keydown (event) {
- switch (event.keyCode) {
- case $mdConstant.KEY_CODE.DOWN_ARROW:
- if (self.loading) return;
- event.preventDefault();
- self.index = Math.min(self.index + 1, self.matches.length - 1);
- updateScroll();
- updateMessages();
- break;
- case $mdConstant.KEY_CODE.UP_ARROW:
- if (self.loading) return;
- event.preventDefault();
- self.index = self.index < 0 ? self.matches.length - 1 : Math.max(0, self.index - 1);
- updateScroll();
- updateMessages();
- break;
- case $mdConstant.KEY_CODE.TAB:
- case $mdConstant.KEY_CODE.ENTER:
- if (self.hidden || self.loading || self.index < 0 || self.matches.length < 1) return;
- event.preventDefault();
- select(self.index);
- break;
- case $mdConstant.KEY_CODE.ESCAPE:
- self.matches = [];
- self.hidden = true;
- self.index = getDefaultIndex();
- break;
- default:
- }
- }
-
- //-- getters
-
- function getMinLength () {
- return angular.isNumber($scope.minLength) ? $scope.minLength : 1;
- }
-
- function getDisplayValue (item) {
- return (item && $scope.itemText) ? $scope.itemText(getItemScope(item)) : item;
- }
-
- function getItemScope (item) {
- if (!item) return;
- var locals = {};
- if (self.itemName) locals[self.itemName] = item;
- return locals;
- }
-
- function getDefaultIndex () {
- return $scope.autoselect ? 0 : -1;
- }
-
- function shouldHide () {
- if (!isMinLengthMet()) return true;
- }
-
- function getCurrentDisplayValue () {
- return getDisplayValue(self.matches[self.index]);
- }
-
- function isMinLengthMet () {
- return $scope.searchText && $scope.searchText.length >= getMinLength();
- }
-
- //-- actions
-
- function select (index) {
- $scope.selectedItem = self.matches[index];
- self.hidden = true;
- self.index = 0;
- self.matches = [];
- //-- force form to update state for validation
- $timeout(function () {
- elements.$.input.controller('ngModel').$setViewValue(getDisplayValue($scope.selectedItem) || $scope.searchText);
- self.hidden = true;
- });
- }
-
- function clearValue () {
- $scope.searchText = '';
- select(-1);
-
- // Per http://www.w3schools.com/jsref/event_oninput.asp
- var eventObj = document.createEvent('CustomEvent');
- eventObj.initCustomEvent('input', true, true, {value: $scope.searchText});
- elements.input.dispatchEvent(eventObj);
-
- elements.input.focus();
- }
-
- function fetchResults (searchText) {
- var items = $scope.$parent.$eval(itemExpr),
- term = searchText.toLowerCase();
- if (angular.isArray(items)) {
- handleResults(items);
- } else {
- self.loading = true;
- if (items.success) items.success(handleResults);
- if (items.then) items.then(handleResults);
- if (items.error) items.error(function () { self.loading = false; });
- }
- function handleResults (matches) {
- cache[term] = matches;
- if (searchText !== $scope.searchText) return; //-- just cache the results if old request
- self.loading = false;
- promise = null;
- self.matches = matches;
- self.hidden = shouldHide();
- updateMessages();
- positionDropdown();
- }
- }
-
- function updateMessages () {
- self.messages = [ getCountMessage(), getCurrentDisplayValue() ];
- }
-
- function getCountMessage () {
- if (lastCount === self.matches.length) return '';
- lastCount = self.matches.length;
- switch (self.matches.length) {
- case 0: return 'There are no matches available.';
- case 1: return 'There is 1 match available.';
- default: return 'There are ' + self.matches.length + ' matches available.';
- }
- }
-
- function updateScroll () {
- if (!elements.li[self.index]) return;
- var li = elements.li[self.index],
- top = li.offsetTop,
- bot = top + li.offsetHeight,
- hgt = elements.ul.clientHeight;
- if (top < elements.ul.scrollTop) {
- elements.ul.scrollTop = top;
- } else if (bot > elements.ul.scrollTop + hgt) {
- elements.ul.scrollTop = bot - hgt;
- }
- }
-
- function handleQuery () {
- var searchText = $scope.searchText,
- term = searchText.toLowerCase();
- //-- cancel promise if a promise is in progress
- if (promise && promise.cancel) {
- promise.cancel();
- promise = null;
- }
- //-- if results are cached, pull in cached results
- if (!$scope.noCache && cache[term]) {
- self.matches = cache[term];
- updateMessages();
- } else {
- fetchResults(searchText);
- }
- if (hasFocus) self.hidden = shouldHide();
- }
-
-}
-MdAutocompleteCtrl.$inject = ["$scope", "$element", "$mdUtil", "$mdConstant", "$timeout", "$mdTheming", "$window", "$animate", "$rootElement"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocomplete', MdAutocomplete);
-
-/**
- * @ngdoc directive
- * @name mdAutocomplete
- * @module material.components.autocomplete
- *
- * @description
- * `<md-autocomplete>` is a special input component with a drop-down of all possible matches to a custom query.
- * This component allows you to provide real-time suggestions as the user types in the input area.
- *
- * To start, you will need to specify the required parameters and provide a template for your results.
- * The content inside `md-autocomplete` will be treated as a template.
- *
- * In more complex cases, you may want to include other content such as a message to display when
- * no matches were found. You can do this by wrapping your template in `md-item-template` and adding
- * a tag for `md-not-found`. An example of this is shown below.
- * ### Validation
- *
- * You can use `ng-messages` to include validation the same way that you would normally validate;
- * however, if you want to replicate a standard input with a floating label, you will have to do the
- * following:
- *
- * - Make sure that your template is wrapped in `md-item-template`
- * - Add your `ng-messages` code inside of `md-autocomplete`
- * - Add your validation properties to `md-autocomplete` (ie. `required`)
- * - Add a `name` to `md-autocomplete` (to be used on the generated `input`)
- *
- * There is an example below of how this should look.
- *
- *
- * @param {expression} md-items An expression in the format of `item in items` to iterate over matches for your search.
- * @param {expression=} md-selected-item-change An expression to be run each time a new item is selected
- * @param {expression=} md-search-text-change An expression to be run each time the search text updates
- * @param {string=} md-search-text A model to bind the search query text to
- * @param {object=} md-selected-item A model to bind the selected item to
- * @param {string=} md-item-text An expression that will convert your object to a single string.
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {boolean=} md-no-cache Disables the internal caching that happens in autocomplete
- * @param {boolean=} ng-disabled Determines whether or not to disable the input field
- * @param {number=} md-min-length Specifies the minimum length of text before autocomplete will make suggestions
- * @param {number=} md-delay Specifies the amount of time (in milliseconds) to wait before looking for results
- * @param {boolean=} md-autofocus If true, will immediately focus the input element
- * @param {boolean=} md-autoselect If true, the first item will be selected by default
- * @param {string=} md-menu-class This will be applied to the dropdown menu for styling
- * @param {string=} md-floating-label This will add a floating label to autocomplete and wrap it in `md-input-container`
- *
- * @usage
- * ###Basic Example
- * <hljs lang="html">
- * <md-autocomplete
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-autocomplete>
- * </hljs>
- *
- * ###Example with "not found" message
- * <hljs lang="html">
- * <md-autocomplete
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <md-item-template>
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-item-template>
- * <md-not-found>
- * No matches found.
- * </md-not-found>
- * </md-autocomplete>
- * </hljs>
- *
- * In this example, our code utilizes `md-item-template` and `md-not-found` to specify the different
- * parts that make up our component.
- *
- * ### Example with validation
- * <hljs lang="html">
- * <form name="autocompleteForm">
- * <md-autocomplete
- * required
- * input-name="autocomplete"
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <md-item-template>
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-item-template>
- * <div ng-messages="autocompleteForm.autocomplete.$error">
- * <div ng-message="required">This field is required</div>
- * </div>
- * </md-autocomplete>
- * </form>
- * </hljs>
- *
- * In this example, our code utilizes `md-item-template` and `md-not-found` to specify the different
- * parts that make up our component.
- */
-
-function MdAutocomplete ($mdTheming, $mdUtil) {
- return {
- controller: 'MdAutocompleteCtrl',
- controllerAs: '$mdAutocompleteCtrl',
- link: link,
- scope: {
- inputName: '@mdInputName',
- inputMinlength: '@mdInputMinlength',
- inputMaxlength: '@mdInputMaxlength',
- searchText: '=?mdSearchText',
- selectedItem: '=?mdSelectedItem',
- itemsExpr: '@mdItems',
- itemText: '&mdItemText',
- placeholder: '@placeholder',
- noCache: '=?mdNoCache',
- itemChange: '&?mdSelectedItemChange',
- textChange: '&?mdSearchTextChange',
- minLength: '=?mdMinLength',
- delay: '=?mdDelay',
- autofocus: '=?mdAutofocus',
- floatingLabel: '@?mdFloatingLabel',
- autoselect: '=?mdAutoselect',
- menuClass: '@?mdMenuClass'
- },
- template: function (element, attr) {
- var noItemsTemplate = getNoItemsTemplate(),
- itemTemplate = getItemTemplate(),
- leftover = element.html();
- return '\
- <md-autocomplete-wrap\
- layout="row"\
- ng-class="{ \'md-whiteframe-z1\': !floatingLabel }"\
- role="listbox">\
- ' + getInputElement() + '\
- <md-progress-linear\
- ng-if="$mdAutocompleteCtrl.loading"\
- md-mode="indeterminate"></md-progress-linear>\
- <ul role="presentation"\
- class="md-autocomplete-suggestions md-whiteframe-z1 {{menuClass || \'\'}}"\
- id="ul-{{$mdAutocompleteCtrl.id}}"\
- ng-mouseenter="$mdAutocompleteCtrl.listEnter()"\
- ng-mouseleave="$mdAutocompleteCtrl.listLeave()"\
- ng-mouseup="$mdAutocompleteCtrl.mouseUp()">\
- <li ng-repeat="(index, item) in $mdAutocompleteCtrl.matches"\
- ng-class="{ selected: index === $mdAutocompleteCtrl.index }"\
- ng-hide="$mdAutocompleteCtrl.hidden"\
- ng-click="$mdAutocompleteCtrl.select(index)"\
- md-autocomplete-list-item="$mdAutocompleteCtrl.itemName">\
- ' + itemTemplate + '\
- </li>\
- ' + noItemsTemplate + '\
- </ul>\
- </md-autocomplete-wrap>\
- <aria-status\
- class="md-visually-hidden"\
- role="status"\
- aria-live="assertive">\
- <p ng-repeat="message in $mdAutocompleteCtrl.messages" ng-if="message">{{message}}</p>\
- </aria-status>';
-
- function getItemTemplate() {
- var templateTag = element.find('md-item-template').remove(),
- html = templateTag.length ? templateTag.html() : element.html();
- if (!templateTag.length) element.empty();
- return html;
- }
-
- function getNoItemsTemplate() {
- var templateTag = element.find('md-not-found').remove(),
- template = templateTag.length ? templateTag.html() : '';
- return template
- ? '<li ng-if="!$mdAutocompleteCtrl.matches.length && !$mdAutocompleteCtrl.loading\
- && !$mdAutocompleteCtrl.hidden"\
- ng-hide="$mdAutocompleteCtrl.hidden"\
- md-autocomplete-parent-scope>' + template + '</li>'
- : '';
-
- }
-
- function getInputElement() {
- if (attr.mdFloatingLabel) {
- return '\
- <md-input-container flex ng-if="floatingLabel">\
- <label>{{floatingLabel}}</label>\
- <input type="search"\
- id="fl-input-{{$mdAutocompleteCtrl.id}}"\
- name="{{inputName}}"\
- autocomplete="off"\
- ng-required="isRequired"\
- ng-minlength="inputMinlength"\
- ng-maxlength="inputMaxlength"\
- ng-disabled="isDisabled"\
- ng-model="$mdAutocompleteCtrl.scope.searchText"\
- ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
- ng-blur="$mdAutocompleteCtrl.blur()"\
- ng-focus="$mdAutocompleteCtrl.focus()"\
- aria-owns="ul-{{$mdAutocompleteCtrl.id}}"\
- aria-label="{{floatingLabel}}"\
- aria-autocomplete="list"\
- aria-haspopup="true"\
- aria-activedescendant=""\
- aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
- <div md-autocomplete-parent-scope md-autocomplete-replace>' + leftover + '</div>\
- </md-input-container>';
- } else {
- return '\
- <input flex type="search"\
- id="input-{{$mdAutocompleteCtrl.id}}"\
- name="{{inputName}}"\
- ng-if="!floatingLabel"\
- autocomplete="off"\
- ng-required="isRequired"\
- ng-disabled="isDisabled"\
- ng-model="$mdAutocompleteCtrl.scope.searchText"\
- ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
- ng-blur="$mdAutocompleteCtrl.blur()"\
- ng-focus="$mdAutocompleteCtrl.focus()"\
- placeholder="{{placeholder}}"\
- aria-owns="ul-{{$mdAutocompleteCtrl.id}}"\
- aria-label="{{placeholder}}"\
- aria-autocomplete="list"\
- aria-haspopup="true"\
- aria-activedescendant=""\
- aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
- <button\
- type="button"\
- tabindex="-1"\
- ng-if="$mdAutocompleteCtrl.scope.searchText && !isDisabled"\
- ng-click="$mdAutocompleteCtrl.clear()">\
- <md-icon md-svg-icon="md-close"></md-icon>\
- <span class="md-visually-hidden">Clear</span>\
- </button>\
- ';
- }
- }
- }
- };
-
- function link (scope, element, attr) {
- attr.$observe('disabled', function (value) { scope.isDisabled = value; });
- attr.$observe('required', function (value) { scope.isRequired = value !== null; });
-
- $mdUtil.initOptionalProperties(scope, attr, {searchText:null, selectedItem:null} );
-
- $mdTheming(element);
- }
-}
-MdAutocomplete.$inject = ["$mdTheming", "$mdUtil"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.autocomplete')
- .controller('MdHighlightCtrl', MdHighlightCtrl);
-
-function MdHighlightCtrl ($scope, $element, $interpolate) {
- this.init = init;
-
- return init();
-
- function init (term) {
- var unsafeText = $interpolate($element.html())($scope),
- text = angular.element('<div>').text(unsafeText).html(),
- flags = $element.attr('md-highlight-flags') || '',
- watcher = $scope.$watch(term, function (term) {
- var regex = getRegExp(term, flags),
- html = text.replace(regex, '<span class="highlight">$&</span>');
- $element.html(html);
- });
- $element.on('$destroy', function () { watcher(); });
- }
-
- function sanitize (term) {
- if (!term) return term;
- return term.replace(/[\\\^\$\*\+\?\.\(\)\|\{\}\[\]]/g, '\\$&');
- }
-
- function getRegExp (text, flags) {
- var str = '';
- if (flags.indexOf('^') >= 1) str += '^';
- str += text;
- if (flags.indexOf('$') >= 1) str += '$';
- return new RegExp(sanitize(str), flags.replace(/[\$\^]/g, ''));
- }
-}
-MdHighlightCtrl.$inject = ["$scope", "$element", "$interpolate"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.autocomplete')
- .directive('mdHighlightText', MdHighlight);
-
-/**
- * @ngdoc directive
- * @name mdHighlightText
- * @module material.components.autocomplete
- *
- * @description
- * The `md-highlight-text` directive allows you to specify text that should be highlighted within
- * an element. Highlighted text will be wrapped in `<span class="highlight"></span>` which can
- * be styled through CSS. Please note that child elements may not be used with this directive.
- *
- * @param {string} md-highlight-text A model to be searched for
- * @param {string=} md-highlight-flags A list of flags (loosely based on JavaScript RexExp flags).
- * #### **Supported flags**:
- * - `g`: Find all matches within the provided text
- * - `i`: Ignore case when searching for matches
- * - `$`: Only match if the text ends with the search term
- * - `^`: Only match if the text begins with the search term
- *
- * @usage
- * <hljs lang="html">
- * <input placeholder="Enter a search term..." ng-model="searchTerm" type="text" />
- * <ul>
- * <li ng-repeat="result in results" md-highlight-text="searchTerm">
- * {{result.text}}
- * </li>
- * </ul>
- * </hljs>
- */
-
-function MdHighlight () {
- return {
- terminal: true,
- scope: false,
- controller: 'MdHighlightCtrl',
- link: function (scope, element, attr, ctrl) {
- ctrl.init(attr.mdHighlightText);
- }
- };
-}
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocompleteListItem', MdAutocompleteListItem);
-
-function MdAutocompleteListItem ($compile, $mdUtil) {
- return {
- terminal: true,
- link: postLink,
- scope: false
- };
- function postLink (scope, element, attr) {
- var ctrl = scope.$parent.$mdAutocompleteCtrl,
- newScope = ctrl.parent.$new(false, ctrl.parent),
- itemName = ctrl.scope.$eval(attr.mdAutocompleteListItem);
- newScope[itemName] = scope.item;
- $compile(element.contents())(newScope);
- element.attr({
- role: 'option',
- id: 'item_' + $mdUtil.nextUid()
- });
- }
-}
-MdAutocompleteListItem.$inject = ["$compile", "$mdUtil"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocompleteParentScope', MdAutocompleteParentScope);
-
-function MdAutocompleteParentScope ($compile, $mdUtil) {
- return {
- restrict: 'A',
- terminal: true,
- link: postLink,
- scope: false
- };
- function postLink (scope, element, attr) {
- var ctrl = scope.$parent.$mdAutocompleteCtrl;
- $compile(element.contents())(ctrl.parent);
- if (attr.hasOwnProperty('mdAutocompleteReplace')) {
- element.after(element.contents());
- element.remove();
- }
- }
-}
-MdAutocompleteParentScope.$inject = ["$compile", "$mdUtil"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.chips')
- .directive('mdChip', MdChip);
-
-/**
- * @ngdoc directive
- * @name mdChip
- * @module material.components.chips
- *
- * @description
- * `<md-chip>` is a component used within `<md-chips>` and is responsible for rendering individual
- * chips.
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-chip>{{$chip}}</md-chip>
- * </hljs>
- *
- */
-
-// This hint text is hidden within a chip but used by screen readers to
-// inform the user how they can interact with a chip.
-var DELETE_HINT_TEMPLATE = '\
- <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden">\
- {{$mdChipsCtrl.deleteHint}}\
- </span>';
-
-/**
- * MDChip Directive Definition
- *
- * @param $mdTheming
- * @param $mdInkRipple
- * @ngInject
- */
-function MdChip($mdTheming) {
- return {
- restrict: 'E',
- require: '^?mdChips',
- compile: compile
- };
-
- function compile(element, attr) {
- element.append(DELETE_HINT_TEMPLATE);
- return function postLink(scope, element, attr, ctrl) {
- element.addClass('md-chip');
- $mdTheming(element);
-
- if (ctrl) angular.element(element[0].querySelector('.md-chip-content'))
- .on('blur', function () {
- ctrl.selectedChip = -1;
- });
- };
- }
-}
-MdChip.$inject = ["$mdTheming"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.chips')
- .directive('mdChipRemove', MdChipRemove);
-
-/**
- * @ngdoc directive
- * @name mdChipRemove
- * @module material.components.chips
- *
- * @description
- * `<md-chip-remove>`
- * Designates an element to be used as the delete button for a chip. This
- * element is passed as a child of the `md-chips` element.
- *
- * @usage
- * <hljs lang="html">
- * <md-chips><button md-chip-remove>DEL</button></md-chips>
- * </hljs>
- */
-
-
-/**
- * MdChipRemove Directive Definition.
- *
- * @param $compile
- * @param $timeout
- * @returns {{restrict: string, require: string[], link: Function, scope: boolean}}
- * @constructor
- */
-function MdChipRemove ($timeout) {
- return {
- restrict: 'A',
- require: '^mdChips',
- scope: false,
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrl) {
- element.on('click', function(event) {
- scope.$apply(function() {
- ctrl.removeChip(scope.$$replacedScope.$index);
- });
- });
-
- // Child elements aren't available until after a $timeout tick as they are hidden by an
- // `ng-if`. see http://goo.gl/zIWfuw
- $timeout(function() {
- element.attr({ tabindex: -1, ariaHidden: true });
- element.find('button').attr('tabindex', '-1');
- });
- }
-}
-MdChipRemove.$inject = ["$timeout"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.chips')
- .directive('mdChipTransclude', MdChipTransclude);
-
-function MdChipTransclude ($compile, $mdUtil) {
- return {
- restrict: 'EA',
- terminal: true,
- link: link,
- scope: false
- };
- function link (scope, element, attr) {
- var ctrl = scope.$parent.$mdChipsCtrl,
- newScope = ctrl.parent.$new(false, ctrl.parent);
- newScope.$$replacedScope = scope;
- newScope.$chip = scope.$chip;
- newScope.$mdChipsCtrl = ctrl;
- element.html(ctrl.$scope.$eval(attr.mdChipTransclude));
- $compile(element.contents())(newScope);
- }
-}
-MdChipTransclude.$inject = ["$compile", "$mdUtil"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.chips')
- .controller('MdChipsCtrl', MdChipsCtrl);
-
-/**
- * Controller for the MdChips component. Responsible for adding to and
- * removing from the list of chips, marking chips as selected, and binding to
- * the models of various input components.
- *
- * @param $scope
- * @param $mdConstant
- * @param $log
- * @param $element
- * @constructor
- */
-function MdChipsCtrl ($scope, $mdConstant, $log, $element, $timeout) {
- /** @type {$timeout} **/
- this.$timeout = $timeout;
-
- /** @type {Object} */
- this.$mdConstant = $mdConstant;
-
- /** @type {angular.$scope} */
- this.$scope = $scope;
-
- /** @type {angular.$scope} */
- this.parent = $scope.$parent;
-
- /** @type {$log} */
- this.$log = $log;
-
- /** @type {$element} */
- this.$element = $element;
-
- /** @type {angular.NgModelController} */
- this.ngModelCtrl = null;
-
- /** @type {angular.NgModelController} */
- this.userInputNgModelCtrl = null;
-
- /** @type {Element} */
- this.userInputElement = null;
-
- /** @type {Array.<Object>} */
- this.items = [];
-
- /** @type {number} */
- this.selectedChip = -1;
-
-
- /**
- * Hidden hint text for how to delete a chip. Used to give context to screen readers.
- * @type {string}
- */
- this.deleteHint = 'Press delete to remove this chip.';
-
- /**
- * Hidden label for the delete button. Used to give context to screen readers.
- * @type {string}
- */
- this.deleteButtonLabel = 'Remove';
-
- /**
- * Model used by the input element.
- * @type {string}
- */
- this.chipBuffer = '';
-
- /**
- * Whether to use the mdOnAppend expression to transform the chip buffer
- * before appending it to the list.
- * @type {boolean}
- */
- this.useMdOnAppend = false;
-}
-MdChipsCtrl.$inject = ["$scope", "$mdConstant", "$log", "$element", "$timeout"];
-
-/**
- * Handles the keydown event on the input element: <enter> appends the
- * buffer to the chip list, while backspace removes the last chip in the list
- * if the current buffer is empty.
- * @param event
- */
-MdChipsCtrl.prototype.inputKeydown = function(event) {
- var chipBuffer = this.getChipBuffer();
- switch (event.keyCode) {
- case this.$mdConstant.KEY_CODE.ENTER:
- if (this.$scope.requireMatch || !chipBuffer) break;
- event.preventDefault();
- this.appendChip(chipBuffer);
- this.resetChipBuffer();
- break;
- case this.$mdConstant.KEY_CODE.BACKSPACE:
- if (chipBuffer) break;
- event.stopPropagation();
- if (this.items.length) this.selectAndFocusChipSafe(this.items.length - 1);
- break;
- }
-};
-
-/**
- * Handles the keydown event on the chip elements: backspace removes the selected chip, arrow
- * keys switch which chips is active
- * @param event
- */
-MdChipsCtrl.prototype.chipKeydown = function (event) {
- if (this.getChipBuffer()) return;
- switch (event.keyCode) {
- case this.$mdConstant.KEY_CODE.BACKSPACE:
- case this.$mdConstant.KEY_CODE.DELETE:
- if (this.selectedChip < 0) return;
- event.preventDefault();
- this.removeAndSelectAdjacentChip(this.selectedChip);
- break;
- case this.$mdConstant.KEY_CODE.LEFT_ARROW:
- event.preventDefault();
- if (this.selectedChip < 0) this.selectedChip = this.items.length;
- if (this.items.length) this.selectAndFocusChipSafe(this.selectedChip - 1);
- break;
- case this.$mdConstant.KEY_CODE.RIGHT_ARROW:
- event.preventDefault();
- this.selectAndFocusChipSafe(this.selectedChip + 1);
- break;
- case this.$mdConstant.KEY_CODE.ESCAPE:
- case this.$mdConstant.KEY_CODE.TAB:
- if (this.selectedChip < 0) return;
- event.preventDefault();
- this.onFocus();
- break;
- }
-};
-
-/**
- * Get the input's placeholder - uses `placeholder` when list is empty and `secondary-placeholder`
- * when the list is non-empty. If `secondary-placeholder` is not provided, `placeholder` is used
- * always.
- */
-MdChipsCtrl.prototype.getPlaceholder = function() {
- // Allow `secondary-placeholder` to be blank.
- var useSecondary = (this.items.length &&
- (this.secondaryPlaceholder == '' || this.secondaryPlaceholder));
- return useSecondary ? this.placeholder : this.secondaryPlaceholder;
-};
-
-/**
- * Removes chip at {@code index} and selects the adjacent chip.
- * @param index
- */
-MdChipsCtrl.prototype.removeAndSelectAdjacentChip = function(index) {
- var selIndex = this.getAdjacentChipIndex(index);
- this.removeChip(index);
- this.$timeout(angular.bind(this, function () {
- this.selectAndFocusChipSafe(selIndex);
- }));
-};
-
-/**
- * Sets the selected chip index to -1.
- */
-MdChipsCtrl.prototype.resetSelectedChip = function() {
- this.selectedChip = -1;
-};
-
-/**
- * Gets the index of an adjacent chip to select after deletion. Adjacency is
- * determined as the next chip in the list, unless the target chip is the
- * last in the list, then it is the chip immediately preceding the target. If
- * there is only one item in the list, -1 is returned (select none).
- * The number returned is the index to select AFTER the target has been
- * removed.
- * If the current chip is not selected, then -1 is returned to select none.
- */
-MdChipsCtrl.prototype.getAdjacentChipIndex = function(index) {
- var len = this.items.length - 1;
- return (len == 0) ? -1 :
- (index == len) ? index -1 : index;
-};
-
-/**
- * Append the contents of the buffer to the chip list. This method will first
- * call out to the md-on-append method, if provided
- * @param newChip
- */
-MdChipsCtrl.prototype.appendChip = function(newChip) {
- if (this.items.indexOf(newChip) + 1) return;
- if (this.useMdOnAppend && this.mdOnAppend) {
- newChip = this.mdOnAppend({'$chip': newChip});
- }
- this.items.push(newChip);
-};
-
-/**
- * Sets whether to use the md-on-append expression. This expression is
- * bound to scope and controller in {@code MdChipsDirective} as
- * {@code mdOnAppend}. Due to the nature of directive scope bindings, the
- * controller cannot know on its own/from the scope whether an expression was
- * actually provided.
- */
-MdChipsCtrl.prototype.useMdOnAppendExpression = function() {
- this.useMdOnAppend = true;
-};
-
-/**
- * Gets the input buffer. The input buffer can be the model bound to the
- * default input item {@code this.chipBuffer}, the {@code selectedItem}
- * model of an {@code md-autocomplete}, or, through some magic, the model
- * bound to any inpput or text area element found within a
- * {@code md-input-container} element.
- * @return {Object|string}
- */
-MdChipsCtrl.prototype.getChipBuffer = function() {
- return !this.userInputElement ? this.chipBuffer :
- this.userInputNgModelCtrl ? this.userInputNgModelCtrl.$viewValue :
- this.userInputElement[0].value;
-};
-
-/**
- * Resets the input buffer for either the internal input or user provided input element.
- */
-MdChipsCtrl.prototype.resetChipBuffer = function() {
- if (this.userInputElement) {
- if (this.userInputNgModelCtrl) {
- this.userInputNgModelCtrl.$setViewValue('');
- this.userInputNgModelCtrl.$render();
- } else {
- this.userInputElement[0].value = '';
- }
- } else {
- this.chipBuffer = '';
- }
-};
-
-/**
- * Removes the chip at the given index.
- * @param index
- */
-MdChipsCtrl.prototype.removeChip = function(index) {
- this.items.splice(index, 1);
-};
-
-MdChipsCtrl.prototype.removeChipAndFocusInput = function (index) {
- this.removeChip(index);
- this.onFocus();
-};
-/**
- * Selects the chip at `index`,
- * @param index
- */
-MdChipsCtrl.prototype.selectAndFocusChipSafe = function(index) {
- if (!this.items.length) {
- this.selectChip(-1);
- this.onFocus();
- return;
- }
- if (index === this.items.length) return this.onFocus();
- index = Math.max(index, 0);
- index = Math.min(index, this.items.length - 1);
- this.selectChip(index);
- this.focusChip(index);
-};
-
-/**
- * Marks the chip at the given index as selected.
- * @param index
- */
-MdChipsCtrl.prototype.selectChip = function(index) {
- if (index >= -1 && index <= this.items.length) {
- this.selectedChip = index;
- } else {
- this.$log.warn('Selected Chip index out of bounds; ignoring.');
- }
-};
-
-/**
- * Selects the chip at `index` and gives it focus.
- * @param index
- */
-MdChipsCtrl.prototype.selectAndFocusChip = function(index) {
- this.selectChip(index);
- if (index != -1) {
- this.focusChip(index);
- }
-};
-
-/**
- * Call `focus()` on the chip at `index`
- */
-MdChipsCtrl.prototype.focusChip = function(index) {
- this.$element[0].querySelector('md-chip[index="' + index + '"] .md-chip-content').focus();
-};
-
-/**
- * Configures the required interactions with the ngModel Controller.
- * Specifically, set {@code this.items} to the {@code NgModelCtrl#$viewVale}.
- * @param ngModelCtrl
- */
-MdChipsCtrl.prototype.configureNgModel = function(ngModelCtrl) {
- this.ngModelCtrl = ngModelCtrl;
-
- var self = this;
- ngModelCtrl.$render = function() {
- // model is updated. do something.
- self.items = self.ngModelCtrl.$viewValue;
- };
-};
-
-MdChipsCtrl.prototype.onFocus = function () {
- var input = this.$element[0].querySelector('input');
- input && input.focus();
- this.resetSelectedChip();
-};
-
-MdChipsCtrl.prototype.onInputFocus = function () {
- this.inputHasFocus = true;
- this.resetSelectedChip();
-};
-
-MdChipsCtrl.prototype.onInputBlur = function () {
- this.inputHasFocus = false;
-};
-
-/**
- * Configure event bindings on a user-provided input element.
- * @param inputElement
- */
-MdChipsCtrl.prototype.configureUserInput = function(inputElement) {
- this.userInputElement = inputElement;
-
- // Find the NgModelCtrl for the input element
- var ngModelCtrl = inputElement.controller('ngModel');
- // `.controller` will look in the parent as well.
- if (ngModelCtrl != this.ngModelCtrl) {
- this.userInputNgModelCtrl = ngModelCtrl;
- }
-
- // Bind to keydown and focus events of input
- var scope = this.$scope;
- var ctrl = this;
- inputElement
- .attr({ tabindex: 0 })
- .on('keydown', function(event) { scope.$apply( angular.bind(ctrl, function() { ctrl.inputKeydown(event); })) })
- .on('focus', angular.bind(ctrl, ctrl.onInputFocus))
- .on('blur', angular.bind(ctrl, ctrl.onInputBlur));
-};
-
-MdChipsCtrl.prototype.configureAutocomplete = function(ctrl) {
-
- ctrl.registerSelectedItemWatcher(angular.bind(this, function (item) {
- if (item) {
- this.appendChip(item);
- this.resetChipBuffer();
- }
- }));
-
- this.$element.find('input')
- .on('focus',angular.bind(this, this.onInputFocus) )
- .on('blur', angular.bind(this, this.onInputBlur) );
-};
-
-MdChipsCtrl.prototype.hasFocus = function () {
- return this.inputHasFocus || this.selectedChip >= 0;
-};
-
-})();
-(function(){
-"use strict";
-
- angular
- .module('material.components.chips')
- .directive('mdChips', MdChips);
-
- /**
- * @ngdoc directive
- * @name mdChips
- * @module material.components.chips
- *
- * @description
- * `<md-chips>` is an input component for building lists of strings or objects. The list items are
- * displayed as 'chips'. This component can make use of an `<input>` element or an
- * `<md-autocomplete>` element.
- *
- * <strong>Custom `<md-chip-template>` template</strong>
- * A custom template may be provided to render the content of each chip. This is achieved by
- * specifying an `<md-chip-template>` element as a child of `<md-chips>`. Note: Any attributes on
- * `<md-chip-template>` will be dropped as only the innerHTML is used for the chip template. The
- * variables `$chip` and `$index` are available in the scope of `<md-chip-template>`, representing
- * the chip object and its index in the list of chips, respectively.
- * To override the chip delete control, include an element (ideally a button) with the attribute
- * `md-chip-remove`. A click listener to remove the chip will be added automatically. The element
- * is also placed as a sibling to the chip content (on which there are also click listeners) to
- * avoid a nested ng-click situation.
- *
- * <h3> Pending Features </h3>
- * <ul style="padding-left:20px;">
- *
- * <ul>Style
- * <li>Colours for hover, press states (ripple?).</li>
- * </ul>
- *
- * <ul>List Manipulation
- * <li>delete item via DEL or backspace keys when selected</li>
- * </ul>
- *
- * <ul>Validation
- * <li>de-dupe values (or support duplicates, but fix the ng-repeat duplicate key issue)</li>
- * <li>allow a validation callback</li>
- * <li>hilighting style for invalid chips</li>
- * </ul>
- *
- * <ul>Item mutation
- * <li>Support `
- * <md-chip-edit>` template, show/hide the edit element on tap/click? double tap/double
- * click?
- * </li>
- * </ul>
- *
- * <ul>Truncation and Disambiguation (?)
- * <li>Truncate chip text where possible, but do not truncate entries such that two are
- * indistinguishable.</li>
- * </ul>
- *
- * <ul>Drag and Drop
- * <li>Drag and drop chips between related `<md-chips>` elements.
- * </li>
- * </ul>
- * </ul>
- *
- * <span style="font-size:.8em;text-align:center">
- * Warning: This component is a WORK IN PROGRESS. If you use it now,
- * it will probably break on you in the future.
- * </span>
- *
- * @param {string=|object=} ng-model A model to bind the list of items to
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {string=} secondary-placeholder Placeholder text that will be forwarded to the input,
- * displayed when there is at least on item in the list
- * @param {boolean=} readonly Disables list manipulation (deleting or adding list items), hiding
- * the input and delete buttons
- * @param {expression} md-on-append An expression expected to convert the input string into an
- * object when adding a chip.
- * @param {string=} delete-hint A string read by screen readers instructing users that pressing
- * the delete key will remove the chip.
- * @param {string=} delete-button-label A label for the delete button. Also hidden and read by
- * screen readers.
- *
- * @usage
- * <hljs lang="html">
- * <md-chips
- * ng-model="myItems"
- * placeholder="Add an item"
- * readonly="isReadOnly">
- * </md-chips>
- * </hljs>
- *
- */
-
-
- var MD_CHIPS_TEMPLATE = '\
- <md-chips-wrap\
- ng-if="!$mdChipsCtrl.readonly || $mdChipsCtrl.items.length > 0"\
- ng-keydown="$mdChipsCtrl.chipKeydown($event)"\
- ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus() }"\
- class="md-chips">\
- <md-chip ng-repeat="$chip in $mdChipsCtrl.items"\
- index="{{$index}}"\
- ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index}">\
- <div class="md-chip-content"\
- tabindex="-1"\
- aria-hidden="true"\
- ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"\
- md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>\
- <div class="md-chip-remove-container"\
- md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>\
- </md-chip>\
- <div ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"\
- class="md-chip-input-container"\
- md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>\
- </div>\
- </md-chips-wrap>';
-
- var CHIP_INPUT_TEMPLATE = '\
- <input\
- tabindex="0"\
- placeholder="{{$mdChipsCtrl.getPlaceholder()}}"\
- aria-label="{{$mdChipsCtrl.getPlaceholder()}}"\
- ng-model="$mdChipsCtrl.chipBuffer"\
- ng-focus="$mdChipsCtrl.onInputFocus()"\
- ng-blur="$mdChipsCtrl.onInputBlur()"\
- ng-keydown="$mdChipsCtrl.inputKeydown($event)">';
-
- var CHIP_DEFAULT_TEMPLATE = '\
- <span>{{$chip}}</span>';
-
- var CHIP_REMOVE_TEMPLATE = '\
- <button\
- class="md-chip-remove"\
- ng-if="!$mdChipsCtrl.readonly"\
- ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)"\
- type="button"\
- aria-hidden="true"\
- tabindex="-1">\
- <md-icon md-svg-icon="md-close"></md-icon>\
- <span class="md-visually-hidden">\
- {{$mdChipsCtrl.deleteButtonLabel}}\
- </span>\
- </button>';
-
- /**
- * MDChips Directive Definition
- */
- function MdChips ($mdTheming, $mdUtil, $compile, $log, $timeout) {
- return {
- template: function(element, attrs) {
- // Clone the element into an attribute. By prepending the attribute
- // name with '$', Angular won't write it into the DOM. The cloned
- // element propagates to the link function via the attrs argument,
- // where various contained-elements can be consumed.
- var content = attrs['$mdUserTemplate'] = element.clone();
- return MD_CHIPS_TEMPLATE;
- },
- require: ['mdChips'],
- restrict: 'E',
- controller: 'MdChipsCtrl',
- controllerAs: '$mdChipsCtrl',
- bindToController: true,
- compile: compile,
- scope: {
- readonly: '=readonly',
- placeholder: '@',
- secondaryPlaceholder: '@',
- mdOnAppend: '&',
- deleteHint: '@',
- deleteButtonLabel: '@',
- requireMatch: '=?mdRequireMatch'
- }
- };
-
- /**
- * Builds the final template for `md-chips` and returns the postLink function.
- *
- * Building the template involves 3 key components:
- * static chips
- * chip template
- * input control
- *
- * If no `ng-model` is provided, only the static chip work needs to be done.
- *
- * If no user-passed `md-chip-template` exists, the default template is used. This resulting
- * template is appended to the chip content element.
- *
- * The remove button may be overridden by passing an element with an md-chip-remove attribute.
- *
- * If an `input` or `md-autocomplete` element is provided by the caller, it is set aside for
- * transclusion later. The transclusion happens in `postLink` as the parent scope is required.
- * If no user input is provided, a default one is appended to the input container node in the
- * template.
- *
- * Static Chips (i.e. `md-chip` elements passed from the caller) are gathered and set aside for
- * transclusion in the `postLink` function.
- *
- *
- * @param element
- * @param attr
- * @returns {Function}
- */
- function compile(element, attr) {
- // Grab the user template from attr and reset the attribute to null.
- var userTemplate = attr['$mdUserTemplate'];
- attr['$mdUserTemplate'] = null;
-
- // Set the chip remove, chip contents and chip input templates. The link function will put
- // them on the scope for transclusion later.
- var chipRemoveTemplate = getTemplateByQuery('md-chips>*[md-chip-remove]') || CHIP_REMOVE_TEMPLATE,
- chipContentsTemplate = getTemplateByQuery('md-chips>md-chip-template') || CHIP_DEFAULT_TEMPLATE,
- chipInputTemplate = getTemplateByQuery('md-chips>md-autocomplete')
- || getTemplateByQuery('md-chips>input')
- || CHIP_INPUT_TEMPLATE,
- staticChips = userTemplate.find('md-chip');
-
- // Warn of malformed template. See #2545
- if (userTemplate[0].querySelector('md-chip-template>*[md-chip-remove]')) {
- $log.warn('invalid placement of md-chip-remove within md-chip-template.');
- }
-
- function getTemplateByQuery (query) {
- if (!attr.ngModel) return;
- var element = userTemplate[0].querySelector(query);
- return element && element.outerHTML;
- }
-
- /**
- * Configures controller and transcludes.
- */
- return function postLink(scope, element, attrs, controllers) {
-
- $mdUtil.initOptionalProperties(scope, attr);
-
- $mdTheming(element);
- var mdChipsCtrl = controllers[0];
- mdChipsCtrl.chipContentsTemplate = chipContentsTemplate;
- mdChipsCtrl.chipRemoveTemplate = chipRemoveTemplate;
- mdChipsCtrl.chipInputTemplate = chipInputTemplate;
-
- element
- .attr({ ariaHidden: true, tabindex: -1 })
- .on('focus', function () { mdChipsCtrl.onFocus(); });
-
- if (attr.ngModel) {
- mdChipsCtrl.configureNgModel(element.controller('ngModel'));
-
- // If an `md-on-append` attribute was set, tell the controller to use the expression
- // when appending chips.
- if (attrs.mdOnAppend) mdChipsCtrl.useMdOnAppendExpression();
-
- // The md-autocomplete and input elements won't be compiled until after this directive
- // is complete (due to their nested nature). Wait a tick before looking for them to
- // configure the controller.
- if (chipInputTemplate != CHIP_INPUT_TEMPLATE) {
- $timeout(function() {
- if (chipInputTemplate.indexOf('<md-autocomplete') === 0)
- mdChipsCtrl
- .configureAutocomplete(element.find('md-autocomplete')
- .controller('mdAutocomplete'));
- mdChipsCtrl.configureUserInput(element.find('input'));
- });
- }
- }
-
- // Compile with the parent's scope and prepend any static chips to the wrapper.
- if (staticChips.length > 0) {
- var compiledStaticChips = $compile(staticChips)(scope.$parent);
- $timeout(function() { element.find('md-chips-wrap').prepend(compiledStaticChips); });
- }
- };
- }
- }
- MdChips.$inject = ["$mdTheming", "$mdUtil", "$compile", "$log", "$timeout"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.chips')
- .controller('MdContactChipsCtrl', MdContactChipsCtrl);
-
-
-
-/**
- * Controller for the MdContactChips component
- * @constructor
- */
-function MdContactChipsCtrl () {
- /** @type {Object} */
- this.selectedItem = null;
-
- /** @type {string} */
- this.searchText = '';
-}
-
-
-MdContactChipsCtrl.prototype.queryContact = function(searchText) {
- var results = this.contactQuery({'$query': searchText});
- return this.filterSelected ?
- results.filter(angular.bind(this, this.filterSelectedContacts)) : results;
-};
-
-
-MdContactChipsCtrl.prototype.filterSelectedContacts = function(contact) {
- return this.contacts.indexOf(contact) == -1;
-};
-
-})();
-(function(){
-"use strict";
-
- angular
- .module('material.components.chips')
- .directive('mdContactChips', MdContactChips);
-
- /**
- * @ngdoc directive
- * @name mdContactChips
- * @module material.components.chips
- *
- * @description
- * `<md-contact-chips>` is an input component based on `md-chips` and makes use of an
- * `md-autocomplete` element. The component allows the caller to supply a query expression
- * which returns a list of possible contacts. The user can select one of these and add it to
- * the list of chips.
- *
- * @param {string=|object=} ng-model A model to bind the list of items to
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {string=} secondary-placeholder Placeholder text that will be forwarded to the input,
- * displayed when there is at least on item in the list
- * @param {expression} md-contacts An expression expected to return contacts matching the search
- * test, `$query`.
- * @param {string} md-contact-name The field name of the contact object representing the
- * contact's name.
- * @param {string} md-contact-email The field name of the contact object representing the
- * contact's email address.
- * @param {string} md-contact-image The field name of the contact object representing the
- * contact's image.
- *
- *
- * // The following attribute has been removed but may come back.
- * @param {expression=} filter-selected Whether to filter selected contacts from the list of
- * suggestions shown in the autocomplete.
- *
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-contact-chips
- * ng-model="ctrl.contacts"
- * md-contacts="ctrl.querySearch($query)"
- * md-contact-name="name"
- * md-contact-image="image"
- * md-contact-email="email"
- * placeholder="To">
- * </md-contact-chips>
- * </hljs>
- *
- */
-
-
- var MD_CONTACT_CHIPS_TEMPLATE = '\
- <md-chips class="md-contact-chips"\
- ng-model="$mdContactChipsCtrl.contacts"\
- md-require-match="$mdContactChipsCtrl.requireMatch"\
- md-autocomplete-snap>\
- <md-autocomplete\
- md-menu-class="md-contact-chips-suggestions"\
- md-selected-item="$mdContactChipsCtrl.selectedItem"\
- md-search-text="$mdContactChipsCtrl.searchText"\
- md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"\
- md-item-text="$mdContactChipsCtrl.mdContactName"\
- md-no-cache="true"\
- md-autoselect\
- placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ?\
- $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">\
- <div class="md-contact-suggestion">\
- <img \
- ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"\
- alt="{{item[$mdContactChipsCtrl.contactName]}}" />\
- <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText">\
- {{item[$mdContactChipsCtrl.contactName]}}\
- </span>\
- <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>\
- </div>\
- </md-autocomplete>\
- <md-chip-template>\
- <div class="md-contact-avatar">\
- <img \
- ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"\
- alt="{{$chip[$mdContactChipsCtrl.contactName]}}" />\
- </div>\
- <div class="md-contact-name">\
- {{$chip[$mdContactChipsCtrl.contactName]}}\
- </div>\
- </md-chip-template>\
- </md-chips>';
-
-
- /**
- * MDContactChips Directive Definition
- *
- * @param $mdTheming
- * @returns {*}
- * @ngInject
- */
- function MdContactChips ($mdTheming, $mdUtil) {
- return {
- template: function(element, attrs) {
- return MD_CONTACT_CHIPS_TEMPLATE;
- },
- restrict: 'E',
- controller: 'MdContactChipsCtrl',
- controllerAs: '$mdContactChipsCtrl',
- bindToController: true,
- compile: compile,
- scope: {
- contactQuery: '&mdContacts',
- placeholder: '@',
- secondaryPlaceholder: '@',
- contactName: '@mdContactName',
- contactImage: '@mdContactImage',
- contactEmail: '@mdContactEmail',
- contacts: '=ngModel',
- requireMatch: '=?mdRequireMatch'
- }
- };
-
- function compile(element, attr) {
- return function postLink(scope, element, attrs, controllers) {
-
- $mdUtil.initOptionalProperties(scope, attr);
- $mdTheming(element);
-
- element.attr('tabindex', '-1');
- };
- }
- }
- MdContactChips.$inject = ["$mdTheming", "$mdUtil"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc directive
- * @name mdTab
- * @module material.components.tabs
- *
- * @restrict E
- *
- * @description
- * Use the `<md-tab>` a nested directive used within `<md-tabs>` to specify a tab with a **label** and optional *view content*.
- *
- * If the `label` attribute is not specified, then an optional `<md-tab-label>` tag can be used to specify more
- * complex tab header markup. If neither the **label** nor the **md-tab-label** are specified, then the nested
- * markup of the `<md-tab>` is used as the tab header markup.
- *
- * Please note that if you use `<md-tab-label>`, your content **MUST** be wrapped in the `<md-tab-body>` tag. This
- * is to define a clear separation between the tab content and the tab label.
- *
- * If a tab **label** has been identified, then any **non-**`<md-tab-label>` markup
- * will be considered tab content and will be transcluded to the internal `<div class="md-tabs-content">` container.
- *
- * This container is used by the TabsController to show/hide the active tab's content view. This synchronization is
- * automatically managed by the internal TabsController whenever the tab selection changes. Selection changes can
- * be initiated via data binding changes, programmatic invocation, or user gestures.
- *
- * @param {string=} label Optional attribute to specify a simple string as the tab label
- * @param {boolean=} disabled If present, disabled tab selection.
- * @param {expression=} md-on-deselect Expression to be evaluated after the tab has been de-selected.
- * @param {expression=} md-on-select Expression to be evaluated after the tab has been selected.
- *
- *
- * @usage
- *
- * <hljs lang="html">
- * <md-tab label="" disabled="" md-on-select="" md-on-deselect="" >
- * <h3>My Tab content</h3>
- * </md-tab>
- *
- * <md-tab >
- * <md-tab-label>
- * <h3>My Tab content</h3>
- * </md-tab-label>
- * <md-tab-body>
- * <p>
- * Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
- * totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
- * dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
- * sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
- * </p>
- * </md-tab-body>
- * </md-tab>
- * </hljs>
- *
- */
-angular
- .module('material.components.tabs')
- .directive('mdTab', MdTab);
-
-function MdTab () {
- return {
- require: '^?mdTabs',
- terminal: true,
- template: function (element, attr) {
- var label = getLabel(),
- body = getTemplate();
- return '' +
- '<md-tab-label>' + label + '</md-tab-label>' +
- '<md-tab-body>' + body + '</md-tab-body>';
- function getLabel () {
- return getLabelElement() || getLabelAttribute() || getElementContents();
- function getLabelAttribute () { return attr.label; }
- function getLabelElement () {
- var label = element.find('md-tab-label');
- if (label.length) return label.remove().html();
- }
- function getElementContents () {
- var html = element.html();
- element.empty();
- return html;
- }
- }
- function getTemplate () {
- var content = element.find('md-tab-body'),
- template = content.length ? content.html() : attr.label ? element.html() : '';
- if (content.length) content.remove();
- else if (attr.label) element.empty();
- return template;
- }
- },
- scope: {
- active: '=?mdActive',
- disabled: '=?ngDisabled',
- select: '&?mdOnSelect',
- deselect: '&?mdOnDeselect'
- },
- link: postLink
- };
-
- function postLink (scope, element, attr, ctrl) {
- if (!ctrl) return;
- var tabs = element.parent()[0].getElementsByTagName('md-tab'),
- index = Array.prototype.indexOf.call(tabs, element[0]),
- body = element.find('md-tab-body').remove(),
- label = element.find('md-tab-label').remove(),
- data = ctrl.insertTab({
- scope: scope,
- parent: scope.$parent,
- index: index,
- element: element,
- template: body.html(),
- label: label.html()
- }, index);
-
- scope.select = scope.select || angular.noop;
- scope.deselect = scope.deselect || angular.noop;
-
- scope.$watch('active', function (active) { if (active) ctrl.select(data.getIndex()); });
- scope.$watch('disabled', function () { ctrl.refreshIndex(); });
- scope.$watch(
- function () {
- return Array.prototype.indexOf.call(tabs, element[0]);
- },
- function (newIndex) {
- data.index = newIndex;
- ctrl.updateTabOrder();
- }
- );
- scope.$on('$destroy', function () { ctrl.removeTab(data); });
-
- }
-}
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.tabs')
- .directive('mdTabItem', MdTabItem);
-
-function MdTabItem () {
- return {
- require: '^?mdTabs',
- link: function link (scope, element, attr, ctrl) {
- if (!ctrl) return;
- ctrl.attachRipple(scope, element);
- }
- };
-}
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.tabs')
- .directive('mdTabLabel', MdTabLabel);
-
-function MdTabLabel () {
- return { terminal: true };
-}
-
-
-})();
-(function(){
-"use strict";
-
-angular.module('material.components.tabs')
- .directive('mdTabScroll', MdTabScroll);
-
-function MdTabScroll ($parse) {
- return {
- restrict: 'A',
- compile: function ($element, attr) {
- var fn = $parse(attr.mdTabScroll, null, true);
- return function ngEventHandler (scope, element) {
- element.on('mousewheel', function (event) {
- scope.$apply(function () { fn(scope, { $event: event }); });
- });
- };
- }
- }
-}
-MdTabScroll.$inject = ["$parse"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.tabs')
- .controller('MdTabsController', MdTabsController);
-
-/**
- * @ngInject
- */
-function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $mdTabInkRipple,
- $mdUtil, $animate) {
- var ctrl = this,
- locked = false,
- elements = getElements(),
- queue = [],
- destroyed = false;
-
- ctrl.scope = $scope;
- ctrl.parent = $scope.$parent;
- ctrl.tabs = [];
- ctrl.lastSelectedIndex = null;
- ctrl.focusIndex = $scope.selectedIndex || 0;
- ctrl.offsetLeft = 0;
- ctrl.hasContent = false;
- ctrl.hasFocus = false;
- ctrl.lastClick = true;
-
- ctrl.redirectFocus = redirectFocus;
- ctrl.attachRipple = attachRipple;
- ctrl.shouldStretchTabs = shouldStretchTabs;
- ctrl.shouldPaginate = shouldPaginate;
- ctrl.shouldCenterTabs = shouldCenterTabs;
- ctrl.insertTab = insertTab;
- ctrl.removeTab = removeTab;
- ctrl.select = select;
- ctrl.scroll = scroll;
- ctrl.nextPage = nextPage;
- ctrl.previousPage = previousPage;
- ctrl.keydown = keydown;
- ctrl.canPageForward = canPageForward;
- ctrl.canPageBack = canPageBack;
- ctrl.refreshIndex = refreshIndex;
- ctrl.incrementSelectedIndex = incrementSelectedIndex;
- ctrl.updateInkBarStyles = $mdUtil.debounce(updateInkBarStyles, 100);
- ctrl.updateTabOrder = $mdUtil.debounce(updateTabOrder, 100);
-
- init();
-
- function init () {
- $scope.$watch('selectedIndex', handleSelectedIndexChange);
- $scope.$watch('$mdTabsCtrl.focusIndex', handleFocusIndexChange);
- $scope.$watch('$mdTabsCtrl.offsetLeft', handleOffsetChange);
- $scope.$watch('$mdTabsCtrl.hasContent', handleHasContent);
- angular.element($window).on('resize', handleWindowResize);
- angular.element(elements.paging).on('DOMSubtreeModified', ctrl.updateInkBarStyles);
- $timeout(updateHeightFromContent, 0, false);
- $timeout(adjustOffset);
- $scope.$on('$destroy', cleanup);
- }
-
- function cleanup () {
- destroyed = true;
- angular.element($window).off('resize', handleWindowResize);
- angular.element(elements.paging).off('DOMSubtreeModified', ctrl.updateInkBarStyles);
- }
-
- //-- Change handlers
-
- function handleHasContent (hasContent) {
- $element[hasContent ? 'removeClass' : 'addClass']('md-no-tab-content');
- }
-
- function handleOffsetChange (left) {
- var newValue = shouldCenterTabs() ? '' : '-' + left + 'px';
- angular.element(elements.paging).css('transform', 'translate3d(' + newValue + ', 0, 0)');
- $scope.$broadcast('$mdTabsPaginationChanged');
- }
-
- function handleFocusIndexChange (newIndex, oldIndex) {
- if (newIndex === oldIndex) return;
- if (!elements.tabs[newIndex]) return;
- adjustOffset();
- redirectFocus();
- }
-
- function handleSelectedIndexChange (newValue, oldValue) {
- if (newValue === oldValue) return;
-
- $scope.selectedIndex = getNearestSafeIndex(newValue);
- ctrl.lastSelectedIndex = oldValue;
- ctrl.updateInkBarStyles();
- updateHeightFromContent();
- $scope.$broadcast('$mdTabsChanged');
- ctrl.tabs[oldValue] && ctrl.tabs[oldValue].scope.deselect();
- ctrl.tabs[newValue] && ctrl.tabs[newValue].scope.select();
- }
-
- function handleResizeWhenVisible () {
- //-- if there is already a watcher waiting for resize, do nothing
- if (handleResizeWhenVisible.watcher) return;
- //-- otherwise, we will abuse the $watch function to check for visible
- handleResizeWhenVisible.watcher = $scope.$watch(function () {
- //-- since we are checking for DOM size, we use $timeout to wait for after the DOM updates
- $timeout(function () {
- //-- if the watcher has already run (ie. multiple digests in one cycle), do nothing
- if (!handleResizeWhenVisible.watcher) return;
-
- if ($element.prop('offsetParent')) {
- handleResizeWhenVisible.watcher();
- handleResizeWhenVisible.watcher = null;
-
- //-- we have to trigger our own $apply so that the DOM bindings will update
- handleWindowResize();
- }
- }, 0, false);
- });
- }
-
- //-- Event handlers / actions
-
- function keydown (event) {
- switch (event.keyCode) {
- case $mdConstant.KEY_CODE.LEFT_ARROW:
- event.preventDefault();
- incrementSelectedIndex(-1, true);
- break;
- case $mdConstant.KEY_CODE.RIGHT_ARROW:
- event.preventDefault();
- incrementSelectedIndex(1, true);
- break;
- case $mdConstant.KEY_CODE.SPACE:
- case $mdConstant.KEY_CODE.ENTER:
- event.preventDefault();
- if (!locked) $scope.selectedIndex = ctrl.focusIndex;
- break;
- }
- ctrl.lastClick = false;
- }
-
- function select (index) {
- if (!locked) ctrl.focusIndex = $scope.selectedIndex = index;
- ctrl.lastClick = true;
- ctrl.tabs[index].element.triggerHandler('click');
- }
-
- function scroll (event) {
- if (!shouldPaginate()) return;
- event.preventDefault();
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft - event.wheelDelta);
- }
-
- function nextPage () {
- var viewportWidth = elements.canvas.clientWidth,
- totalWidth = viewportWidth + ctrl.offsetLeft,
- i, tab;
- for (i = 0; i < elements.tabs.length; i++) {
- tab = elements.tabs[i];
- if (tab.offsetLeft + tab.offsetWidth > totalWidth) break;
- }
- ctrl.offsetLeft = fixOffset(tab.offsetLeft);
- }
-
- function previousPage () {
- var i, tab;
- for (i = 0; i < elements.tabs.length; i++) {
- tab = elements.tabs[i];
- if (tab.offsetLeft + tab.offsetWidth >= ctrl.offsetLeft) break;
- }
- ctrl.offsetLeft = fixOffset(tab.offsetLeft + tab.offsetWidth - elements.canvas.clientWidth);
- }
-
- function handleWindowResize () {
- $scope.$apply(function () {
- ctrl.lastSelectedIndex = $scope.selectedIndex;
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft);
- $timeout(ctrl.updateInkBarStyles, 0, false);
- });
- }
-
- function removeTab (tabData) {
- var selectedIndex = $scope.selectedIndex,
- tab = ctrl.tabs.splice(tabData.getIndex(), 1)[0];
- refreshIndex();
- //-- when removing a tab, if the selected index did not change, we have to manually trigger the
- // tab select/deselect events
- if ($scope.selectedIndex === selectedIndex && !destroyed) {
- tab.scope.deselect();
- ctrl.tabs[$scope.selectedIndex] && ctrl.tabs[$scope.selectedIndex].scope.select();
- }
- $timeout(function () {
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft);
- });
- }
-
- function insertTab (tabData, index) {
- var proto = {
- getIndex: function () { return ctrl.tabs.indexOf(tab); },
- isActive: function () { return this.getIndex() === $scope.selectedIndex; },
- isLeft: function () { return this.getIndex() < $scope.selectedIndex; },
- isRight: function () { return this.getIndex() > $scope.selectedIndex; },
- shouldRender: function () { return !$scope.noDisconnect || this.isActive(); },
- hasFocus: function () { return !ctrl.lastClick && ctrl.hasFocus && this.getIndex() === ctrl.focusIndex; },
- id: $mdUtil.nextUid()
- },
- tab = angular.extend(proto, tabData);
- if (angular.isDefined(index)) {
- ctrl.tabs.splice(index, 0, tab);
- } else {
- ctrl.tabs.push(tab);
- }
- processQueue();
- updateHasContent();
- return tab;
- }
-
- //-- Getter methods
-
- function getElements () {
- var elements = {};
-
- //-- gather tab bar elements
- elements.wrapper = $element[0].getElementsByTagName('md-tabs-wrapper')[0];
- elements.canvas = elements.wrapper.getElementsByTagName('md-tabs-canvas')[0];
- elements.paging = elements.canvas.getElementsByTagName('md-pagination-wrapper')[0];
- elements.tabs = elements.paging.getElementsByTagName('md-tab-item');
- elements.dummies = elements.canvas.getElementsByTagName('md-dummy-tab');
- elements.inkBar = elements.paging.getElementsByTagName('md-ink-bar')[0];
-
- //-- gather tab content elements
- elements.contentsWrapper = $element[0].getElementsByTagName('md-tabs-content-wrapper')[0];
- elements.contents = elements.contentsWrapper.getElementsByTagName('md-tab-content');
-
- return elements;
- }
-
- function canPageBack () {
- return ctrl.offsetLeft > 0;
- }
-
- function canPageForward () {
- var lastTab = elements.tabs[elements.tabs.length - 1];
- return lastTab && lastTab.offsetLeft + lastTab.offsetWidth > elements.canvas.clientWidth + ctrl.offsetLeft;
- }
-
- function shouldStretchTabs () {
- switch ($scope.stretchTabs) {
- case 'always': return true;
- case 'never': return false;
- default: return !shouldPaginate() && $window.matchMedia('(max-width: 600px)').matches;
- }
- }
-
- function shouldCenterTabs () {
- return $scope.centerTabs && !shouldPaginate();
- }
-
- function shouldPaginate () {
- if ($scope.noPagination) return false;
- var canvasWidth = $element.prop('clientWidth');
- angular.forEach(elements.tabs, function (tab) { canvasWidth -= tab.offsetWidth; });
- return canvasWidth < 0;
- }
-
- function getNearestSafeIndex(newIndex) {
- var maxOffset = Math.max(ctrl.tabs.length - newIndex, newIndex),
- i, tab;
- for (i = 0; i <= maxOffset; i++) {
- tab = ctrl.tabs[newIndex + i];
- if (tab && (tab.scope.disabled !== true)) return tab.getIndex();
- tab = ctrl.tabs[newIndex - i];
- if (tab && (tab.scope.disabled !== true)) return tab.getIndex();
- }
- return newIndex;
- }
-
- //-- Utility methods
-
- function updateTabOrder () {
- var selectedItem = ctrl.tabs[$scope.selectedIndex],
- focusItem = ctrl.tabs[ctrl.focusIndex];
- ctrl.tabs = ctrl.tabs.sort(function (a, b) {
- return a.index - b.index;
- });
- $scope.selectedIndex = ctrl.tabs.indexOf(selectedItem);
- ctrl.focusIndex = ctrl.tabs.indexOf(focusItem);
- }
-
- function incrementSelectedIndex (inc, focus) {
- var newIndex,
- index = focus ? ctrl.focusIndex : $scope.selectedIndex;
- for (newIndex = index + inc;
- ctrl.tabs[newIndex] && ctrl.tabs[newIndex].scope.disabled;
- newIndex += inc) {}
- if (ctrl.tabs[newIndex]) {
- if (focus) ctrl.focusIndex = newIndex;
- else $scope.selectedIndex = newIndex;
- }
- }
-
- function redirectFocus () {
- elements.dummies[ctrl.focusIndex].focus();
- }
-
- function adjustOffset () {
- if (shouldCenterTabs()) return;
- var tab = elements.tabs[ctrl.focusIndex],
- left = tab.offsetLeft,
- right = tab.offsetWidth + left;
- ctrl.offsetLeft = Math.max(ctrl.offsetLeft, fixOffset(right - elements.canvas.clientWidth));
- ctrl.offsetLeft = Math.min(ctrl.offsetLeft, fixOffset(left));
- }
-
- function processQueue () {
- queue.forEach(function (func) { $timeout(func); });
- queue = [];
- }
-
- function updateHasContent () {
- var hasContent = false;
- angular.forEach(ctrl.tabs, function (tab) {
- if (tab.template) hasContent = true;
- });
- ctrl.hasContent = hasContent;
- }
-
- function refreshIndex () {
- $scope.selectedIndex = getNearestSafeIndex($scope.selectedIndex);
- ctrl.focusIndex = getNearestSafeIndex(ctrl.focusIndex);
- }
-
- function updateHeightFromContent () {
- if (!$scope.dynamicHeight) return $element.css('height', '');
- if (!ctrl.tabs.length) return queue.push(updateHeightFromContent);
- var tabContent = elements.contents[$scope.selectedIndex],
- contentHeight = tabContent ? tabContent.offsetHeight : 0,
- tabsHeight = elements.wrapper.offsetHeight,
- newHeight = contentHeight + tabsHeight,
- currentHeight = $element.prop('clientHeight');
- if (currentHeight === newHeight) return;
- locked = true;
- $animate
- .animate(
- $element,
- { height: currentHeight + 'px' },
- { height: newHeight + 'px'}
- )
- .then(function () {
- $element.css('height', '');
- locked = false;
- });
- }
-
- function updateInkBarStyles () {
- if (!elements.tabs[$scope.selectedIndex]) return;
- if (!ctrl.tabs.length) return queue.push(ctrl.updateInkBarStyles);
- //-- if the element is not visible, we will not be able to calculate sizes until it is
- //-- we should treat that as a resize event rather than just updating the ink bar
- if (!$element.prop('offsetParent')) return handleResizeWhenVisible();
- var index = $scope.selectedIndex,
- totalWidth = elements.paging.offsetWidth,
- tab = elements.tabs[index],
- left = tab.offsetLeft,
- right = totalWidth - left - tab.offsetWidth;
- updateInkBarClassName();
- angular.element(elements.inkBar).css({ left: left + 'px', right: right + 'px' });
- }
-
- function updateInkBarClassName () {
- var newIndex = $scope.selectedIndex,
- oldIndex = ctrl.lastSelectedIndex,
- ink = angular.element(elements.inkBar);
- ink.removeClass('md-left md-right');
- if (!angular.isNumber(oldIndex)) return;
- if (newIndex < oldIndex) {
- ink.addClass('md-left');
- } else if (newIndex > oldIndex) {
- ink.addClass('md-right');
- }
- }
-
- function fixOffset (value) {
- if (!elements.tabs.length || !shouldPaginate()) return 0;
- var lastTab = elements.tabs[elements.tabs.length - 1],
- totalWidth = lastTab.offsetLeft + lastTab.offsetWidth;
- value = Math.max(0, value);
- value = Math.min(totalWidth - elements.canvas.clientWidth, value);
- return value;
- }
-
- function attachRipple (scope, element) {
- var options = { colorElement: angular.element(elements.inkBar) };
- $mdTabInkRipple.attach(scope, element, options);
- }
-}
-MdTabsController.$inject = ["$scope", "$element", "$window", "$timeout", "$mdConstant", "$mdTabInkRipple", "$mdUtil", "$animate"];
-
-})();
-(function(){
-"use strict";
-
-/**
- * @ngdoc directive
- * @name mdTabs
- * @module material.components.tabs
- *
- * @restrict E
- *
- * @description
- * The `<md-tabs>` directive serves as the container for 1..n `<md-tab>` child directives to produces a Tabs components.
- * In turn, the nested `<md-tab>` directive is used to specify a tab label for the **header button** and a [optional] tab view
- * content that will be associated with each tab button.
- *
- * Below is the markup for its simplest usage:
- *
- * <hljs lang="html">
- * <md-tabs>
- * <md-tab label="Tab #1"></md-tab>
- * <md-tab label="Tab #2"></md-tab>
- * <md-tab label="Tab #3"></md-tab>
- * </md-tabs>
- * </hljs>
- *
- * Tabs supports three (3) usage scenarios:
- *
- * 1. Tabs (buttons only)
- * 2. Tabs with internal view content
- * 3. Tabs with external view content
- *
- * **Tab-only** support is useful when tab buttons are used for custom navigation regardless of any other components, content, or views.
- * **Tabs with internal views** are the traditional usages where each tab has associated view content and the view switching is managed internally by the Tabs component.
- * **Tabs with external view content** is often useful when content associated with each tab is independently managed and data-binding notifications announce tab selection changes.
- *
- * Additional features also include:
- *
- * * Content can include any markup.
- * * If a tab is disabled while active/selected, then the next tab will be auto-selected.
- *
- * ### Explanation of tab stretching
- *
- * Initially, tabs will have an inherent size. This size will either be defined by how much space is needed to accommodate their text or set by the user through CSS. Calculations will be based on this size.
- *
- * On mobile devices, tabs will be expanded to fill the available horizontal space. When this happens, all tabs will become the same size.
- *
- * On desktops, by default, stretching will never occur.
- *
- * This default behavior can be overridden through the `md-stretch-tabs` attribute. Here is a table showing when stretching will occur:
- *
- * `md-stretch-tabs` | mobile | desktop
- * ------------------|-----------|--------
- * `auto` | stretched | ---
- * `always` | stretched | stretched
- * `never` | --- | ---
- *
- * @param {integer=} md-selected Index of the active/selected tab
- * @param {boolean=} md-no-ink If present, disables ink ripple effects.
- * @param {boolean=} md-no-bar If present, disables the selection ink bar.
- * @param {string=} md-align-tabs Attribute to indicate position of tab buttons: `bottom` or `top`; default is `top`
- * @param {string=} md-stretch-tabs Attribute to indicate whether or not to stretch tabs: `auto`, `always`, or `never`; default is `auto`
- * @param {boolean=} md-dynamic-height When enabled, the tab wrapper will resize based on the contents of the selected tab
- * @param {boolean=} md-center-tabs When enabled, tabs will be centered provided there is no need for pagination
- * @param {boolean=} md-no-pagination When enabled, pagination will remain off
- * @param {boolean=} md-swipe-content When enabled, swipe gestures will be enabled for the content area to jump between tabs
- * @param {boolean=} md-no-disconnect If your tab content has background tasks (ie. event listeners), you will want to include this to prevent the scope from being disconnected
- *
- * @usage
- * <hljs lang="html">
- * <md-tabs md-selected="selectedIndex" >
- * <img ng-src="img/angular.png" class="centered">
- * <md-tab
- * ng-repeat="tab in tabs | orderBy:predicate:reversed"
- * md-on-select="onTabSelected(tab)"
- * md-on-deselect="announceDeselected(tab)"
- * ng-disabled="tab.disabled">
- * <md-tab-label>
- * {{tab.title}}
- * <img src="img/removeTab.png" ng-click="removeTab(tab)" class="delete">
- * </md-tab-label>
- * <md-tab-body>
- * {{tab.content}}
- * </md-tab-body>
- * </md-tab>
- * </md-tabs>
- * </hljs>
- *
- */
-angular
- .module('material.components.tabs')
- .directive('mdTabs', MdTabs);
-
-function MdTabs ($mdTheming, $mdUtil, $compile) {
- return {
- scope: {
- noPagination: '=?mdNoPagination',
- dynamicHeight: '=?mdDynamicHeight',
- centerTabs: '=?mdCenterTabs',
- selectedIndex: '=?mdSelected',
- stretchTabs: '@?mdStretchTabs',
- swipeContent: '=?mdSwipeContent',
- noDisconnect: '=?mdNoDisconnect'
- },
- template: function (element, attr) {
- attr["$mdTabsTemplate"] = element.html();
- return '\
- <md-tabs-wrapper ng-class="{ \'md-stretch-tabs\': $mdTabsCtrl.shouldStretchTabs() }">\
- <md-tab-data></md-tab-data>\
- <md-prev-button\
- tabindex="-1"\
- role="button"\
- aria-label="Previous Page"\
- aria-disabled="{{!$mdTabsCtrl.canPageBack()}}"\
- ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }"\
- ng-if="$mdTabsCtrl.shouldPaginate()"\
- ng-click="$mdTabsCtrl.previousPage()">\
- <md-icon md-svg-icon="md-tabs-arrow"></md-icon>\
- </md-prev-button>\
- <md-next-button\
- tabindex="-1"\
- role="button"\
- aria-label="Next Page"\
- aria-disabled="{{!$mdTabsCtrl.canPageForward()}}"\
- ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }"\
- ng-if="$mdTabsCtrl.shouldPaginate()"\
- ng-click="$mdTabsCtrl.nextPage()">\
- <md-icon md-svg-icon="md-tabs-arrow"></md-icon>\
- </md-next-button>\
- <md-tabs-canvas\
- tabindex="0"\
- aria-activedescendant="tab-item-{{$mdTabsCtrl.tabs[$mdTabsCtrl.focusIndex].id}}"\
- ng-focus="$mdTabsCtrl.redirectFocus()"\
- ng-class="{\
- \'md-paginated\': $mdTabsCtrl.shouldPaginate(),\
- \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs()\
- }"\
- ng-keydown="$mdTabsCtrl.keydown($event)"\
- role="tablist">\
- <md-pagination-wrapper\
- ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs() }"\
- md-tab-scroll="$mdTabsCtrl.scroll($event)">\
- <md-tab-item\
- tabindex="-1"\
- class="md-tab"\
- style="max-width: {{ tabWidth ? tabWidth + \'px\' : \'none\' }}"\
- ng-repeat="tab in $mdTabsCtrl.tabs"\
- role="tab"\
- aria-controls="tab-content-{{tab.id}}"\
- aria-selected="{{tab.isActive()}}"\
- aria-disabled="{{tab.scope.disabled || \'false\'}}"\
- ng-click="$mdTabsCtrl.select(tab.getIndex())"\
- ng-class="{\
- \'md-active\': tab.isActive(),\
- \'md-focused\': tab.hasFocus(),\
- \'md-disabled\': tab.scope.disabled\
- }"\
- ng-disabled="tab.scope.disabled"\
- md-swipe-left="$mdTabsCtrl.nextPage()"\
- md-swipe-right="$mdTabsCtrl.previousPage()"\
- md-template="tab.label"\
- md-scope="tab.parent"></md-tab-item>\
- <md-ink-bar ng-hide="noInkBar"></md-ink-bar>\
- </md-pagination-wrapper>\
- <div class="md-visually-hidden md-dummy-wrapper">\
- <md-dummy-tab\
- tabindex="-1"\
- id="tab-item-{{tab.id}}"\
- role="tab"\
- aria-controls="tab-content-{{tab.id}}"\
- aria-selected="{{tab.isActive()}}"\
- aria-disabled="{{tab.scope.disabled || \'false\'}}"\
- ng-focus="$mdTabsCtrl.hasFocus = true"\
- ng-blur="$mdTabsCtrl.hasFocus = false"\
- ng-repeat="tab in $mdTabsCtrl.tabs"\
- md-template="tab.label"\
- md-scope="tab.parent"></md-dummy-tab>\
- </div>\
- </md-tabs-canvas>\
- </md-tabs-wrapper>\
- <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent">\
- <md-tab-content\
- id="tab-content-{{tab.id}}"\
- role="tabpanel"\
- aria-labelledby="tab-item-{{tab.id}}"\
- md-swipe-left="swipeContent && $mdTabsCtrl.incrementSelectedIndex(1)"\
- md-swipe-right="swipeContent && $mdTabsCtrl.incrementSelectedIndex(-1)"\
- ng-if="$mdTabsCtrl.hasContent"\
- ng-repeat="(index, tab) in $mdTabsCtrl.tabs"\
- md-connected-if="tab.isActive()"\
- ng-class="{\
- \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null,\
- \'md-active\': tab.isActive(),\
- \'md-left\': tab.isLeft(),\
- \'md-right\': tab.isRight(),\
- \'md-no-scroll\': dynamicHeight\
- }">\
- <div\
- md-template="tab.template"\
- md-scope="tab.parent"\
- ng-if="tab.shouldRender()"></div>\
- </md-tab-content>\
- </md-tabs-content-wrapper>\
- ';
- },
- controller: 'MdTabsController',
- controllerAs: '$mdTabsCtrl',
- link: function (scope, element, attr) {
- compileTabData(attr.$mdTabsTemplate);
- delete attr.$mdTabsTemplate;
-
- $mdUtil.initOptionalProperties(scope, attr);
-
- //-- watch attributes
- attr.$observe('mdNoBar', function (value) { scope.noInkBar = angular.isDefined(value); });
- //-- set default value for selectedIndex
- scope.selectedIndex = angular.isNumber(scope.selectedIndex) ? scope.selectedIndex : 0;
- //-- apply themes
- $mdTheming(element);
-
- function compileTabData (template) {
- var dataElement = element.find('md-tab-data');
- dataElement.html(template);
- $compile(dataElement.contents())(scope.$parent);
- }
- }
- };
-}
-MdTabs.$inject = ["$mdTheming", "$mdUtil", "$compile"];
-
-})();
-(function(){
-"use strict";
-
-angular
- .module('material.components.tabs')
- .directive('mdTemplate', MdTemplate);
-
-function MdTemplate ($compile, $mdUtil, $timeout) {
- return {
- restrict: 'A',
- link: link,
- scope: {
- template: '=mdTemplate',
- compileScope: '=mdScope',
- connected: '=?mdConnectedIf'
- },
- require: '^?mdTabs'
- };
- function link (scope, element, attr, ctrl) {
- if (!ctrl) return;
- var compileScope = scope.compileScope.$new();
- element.html(scope.template);
- $compile(element.contents())(compileScope);
- return $timeout(handleScope);
- function handleScope () {
- scope.$watch('connected', function (value) { value === false ? disconnect() : reconnect(); });
- scope.$on('$destroy', reconnect);
- }
- function disconnect () {
- if (ctrl.scope.noDisconnect) return;
- $mdUtil.disconnectScope(compileScope);
- }
- function reconnect () {
- if (ctrl.scope.noDisconnect) return;
- $mdUtil.reconnectScope(compileScope);
- }
- }
-}
-MdTemplate.$inject = ["$compile", "$mdUtil", "$timeout"];
-
-})();
-(function(){
-angular.module("material.core").constant("$MD_THEME_CSS", "/* mixin definition ; sets LTR and RTL within the same style call */md-autocomplete.md-THEME_NAME-theme { background: '{{background-50}}'; } md-autocomplete.md-THEME_NAME-theme[disabled] { background: '{{background-100}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions.md-THEME_NAME-theme { background: '{{background-50}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{foreground-4-0.5}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme { border-radius: 3px; } a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button { border-radius: 50%; } a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised { color: '{{background-contrast}}'; background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon { color: '{{background-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover { background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused { background-color: '{{background-200}}'; } a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab { color: '{{warn-contrast}}'; background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon { color: '{{warn-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover { background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused { background-color: '{{warn-700}}'; } a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab { color: '{{accent-contrast}}'; background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused { background-color: '{{accent-700}}'; } a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] { color: '{{foreground-3}}'; cursor: not-allowed; } a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon { color: '{{foreground-3}}'; } a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] { background-color: '{{foreground-4}}'; } a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] { background-color: transparent; }md-card.md-THEME_NAME-theme { background-color: '{{background-color}}'; border-radius: 2px; } md-card.md-THEME_NAME-theme .md-card-image { border-radius: 2px 2px 0 0; }md-checkbox.md-THEME_NAME-theme .md-ripple { color: '{{accent-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before { background-color: '{{accent-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon { background-color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple { color: '{{primary-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon { background-color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before { background-color: '{{primary-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple { color: '{{warn-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon { background-color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before { background-color: '{{warn-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-icon { border-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon { background-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-label { color: '{{foreground-3}}'; }md-chips.md-THEME_NAME-theme .md-chips { box-shadow: 0 1px '{{background-300}}'; } md-chips.md-THEME_NAME-theme .md-chips.md-focused { box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip { background: '{{background-300}}'; color: '{{background-800}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused { background: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon { color: '{{primary-contrast}}'; }md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path { fill: '{{background-500}}'; }.md-contact-suggestion span.md-contact-email { color: '{{background-400}}'; }md-content.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-dialog.md-THEME_NAME-theme { border-radius: 4px; background-color: '{{background-color}}'; } md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions { border-top-color: '{{foreground-4}}'; }md-divider.md-THEME_NAME-theme { border-top-color: '{{foreground-4}}'; }md-icon.md-THEME_NAME-theme { color: '{{foreground-2}}'; } md-icon.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } md-icon.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } md-icon.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-input-container.md-THEME_NAME-theme .md-input { color: '{{foreground-1}}'; border-color: '{{foreground-4}}'; text-shadow: '{{foreground-shadow}}'; } md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder { color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme > md-icon { color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder { text-shadow: '{{foreground-shadow}}'; color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label { color: '{{foreground-2}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input { border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input { border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label { color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input { border-bottom-color: transparent; color: '{{foreground-3}}'; background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%); background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-3}}' 100%); }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 { color: '{{foreground-1}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p { color: '{{foreground-2}}'; }md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style { background-color: '{{background-100}}'; }md-list.md-THEME_NAME-theme md-list-item > md-icon { color: '{{foreground-2}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight { color: '{{primary-color}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent { color: '{{accent-color}}'; }md-list.md-THEME_NAME-theme md-list-item button { background-color: '{{background-color}}'; } md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover { background-color: '{{background-color}}'; }md-progress-circular.md-THEME_NAME-theme { background-color: transparent; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap { border-top-color: '{{primary-color}}'; border-bottom-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-top-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-right-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle { border-left-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap { border-top-color: '{{warn-color}}'; border-bottom-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-top-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-right-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle { border-left-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap { border-top-color: '{{accent-color}}'; border-bottom-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-top-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-right-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle { border-left-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme .md-container { background-color: '{{primary-100}}'; }md-progress-linear.md-THEME_NAME-theme .md-bar { background-color: '{{primary-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-container { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar { background-color: '{{warn-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-container { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar { background-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before { background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before { background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }md-radio-button.md-THEME_NAME-theme .md-off { border-color: '{{foreground-2}}'; }md-radio-button.md-THEME_NAME-theme .md-on { background-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-off { border-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple { color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme .md-container .md-ripple { color: '{{accent-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on { background-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off { border-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple { color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple { color: '{{primary-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on { background-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off { border-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple { color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple { color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] { color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off { border-color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on { border-color: '{{foreground-3}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before { background-color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before { background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before { background-color: '{{warn-color-0.26}}'; }md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label { color: '{{warn-500}}' !important; border-bottom-color: '{{warn-500}}' !important; }md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label { border-bottom-color: '{{primary-color}}'; color: '{{ foreground-1 }}'; } md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder { color: '{{ foreground-1 }}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label { border-bottom-color: '{{accent-color}}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label { border-bottom-color: '{{warn-color}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-label { color: '{{foreground-3}}'; } md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder { color: '{{foreground-3}}'; }md-select.md-THEME_NAME-theme .md-select-label { border-bottom-color: '{{foreground-4}}'; } md-select.md-THEME_NAME-theme .md-select-label.md-placeholder { color: '{{foreground-2}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup { color: '{{foreground-2}}'; } md-select-menu.md-THEME_NAME-theme md-optgroup md-option { color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] { color: '{{primary-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected]:focus { color: '{{primary-600}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent { color: '{{accent-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus { color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) { background: '{{background-200}}'; }md-sidenav.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track { background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks { background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb { background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring { border-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb { border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track.md-track-fill { background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb:after { border-color: '{{accent-color}}'; background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-sign { background-color: '{{accent-color}}'; } md-slider.md-THEME_NAME-theme .md-sign:after { border-top-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb-text { color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill { background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after { border-color: '{{warn-color}}'; background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-sign { background-color: '{{warn-color}}'; } md-slider.md-THEME_NAME-theme.md-warn .md-sign:after { border-top-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text { color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill { background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after { border-color: '{{primary-color}}'; background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-sign { background-color: '{{primary-color}}'; } md-slider.md-THEME_NAME-theme.md-primary .md-sign:after { border-top-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text { color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after { border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after { background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme { color: '{{ foreground-2-0.23 }}'; background-color: '{{background-color}}'; } .md-subheader.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } .md-subheader.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } .md-subheader.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme .md-thumb { background-color: '{{background-50}}'; }md-switch.md-THEME_NAME-theme .md-bar { background-color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-thumb { background-color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-bar { background-color: '{{accent-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before { background-color: '{{accent-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb { background-color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar { background-color: '{{primary-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before { background-color: '{{primary-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb { background-color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar { background-color: '{{warn-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before { background-color: '{{warn-color-0.26}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-thumb { background-color: '{{background-400}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-bar { background-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: transparent; border-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme .md-paginator md-icon { color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{accent-color}}'; background: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme .md-tab { color: '{{foreground-2}}'; } md-tabs.md-THEME_NAME-theme .md-tab[disabled] { color: '{{foreground-3}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused { color: '{{primary-color}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-focused { background: '{{primary-color-0.1}}'; } md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container { color: '{{accent-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper { background-color: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper { background-color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper { background-color: '{{warn-color}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{primary-color}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{accent-color}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{warn-color}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toast.md-THEME_NAME-theme { background-color: #323232; color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button { color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight { color: '{{primary-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent { color: '{{accent-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn { color: '{{warn-A200}}'; }md-toolbar.md-THEME_NAME-theme { background-color: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme md-icon { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme .md-button { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-accent { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-warn { background-color: '{{warn-color}}'; color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme { color: '{{background-A100}}'; } md-tooltip.md-THEME_NAME-theme .md-background { background-color: '{{foreground-2}}'; }");
-})();
-
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/angular-material.min.css b/ecomp-portal-FE/client/bower_components/angular-material/angular-material.min.css
deleted file mode 100644
index 33e2e010..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/angular-material.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */body,html{height:100%;color:rgba(0,0,0,.87);background:#fff;position:relative}body{margin:0;padding:0}[tabindex='-1']:focus{outline:0}.inset{padding:10px}button.md-no-style{font-weight:400;background-color:inherit;text-align:left;border:none;padding:0;margin:0}button,input,select,textarea{vertical-align:baseline}button,html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[type=button][disabled],input[type=reset][disabled],input[type=submit][disabled]{cursor:default}textarea{vertical-align:top;overflow:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box;-webkit-box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.md-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;text-transform:none;width:1px}.md-shadow{position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;pointer-events:none}.md-button.md-fab,.md-button.md-fab.md-focused:not([disabled]),.md-button.md-raised.md-focused:not([disabled]),.md-button.md-raised:not([disabled]),.md-shadow-bottom-z-1{box-shadow:0 2px 5px 0 rgba(0,0,0,.26)}.md-button.md-fab:not([disabled]):active,.md-button.md-raised:not([disabled]):active,.md-shadow-bottom-z-2{box-shadow:0 4px 8px 0 rgba(0,0,0,.4)}.md-shadow-animated.md-shadow{transition:box-shadow .28s cubic-bezier(.4,0,.2,1)}.md-ripple-container{pointer-events:none;position:absolute;overflow:hidden;left:0;top:0;width:100%;height:100%;transition:all .55s cubic-bezier(.25,.8,.25,1)}.md-ripple{position:absolute;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;opacity:0;border-radius:50%}.md-ripple.md-ripple-placed{transition:left 1.8s cubic-bezier(.25,.8,.25,1),top 1.8s cubic-bezier(.25,.8,.25,1),margin 1.3s cubic-bezier(.25,.8,.25,1),border 1.3s cubic-bezier(.25,.8,.25,1),width 1.3s cubic-bezier(.25,.8,.25,1),height 1.3s cubic-bezier(.25,.8,.25,1),opacity 1.3s cubic-bezier(.25,.8,.25,1),-webkit-transform 1.3s cubic-bezier(.25,.8,.25,1);transition:left 1.8s cubic-bezier(.25,.8,.25,1),top 1.8s cubic-bezier(.25,.8,.25,1),margin 1.3s cubic-bezier(.25,.8,.25,1),border 1.3s cubic-bezier(.25,.8,.25,1),width 1.3s cubic-bezier(.25,.8,.25,1),height 1.3s cubic-bezier(.25,.8,.25,1),opacity 1.3s cubic-bezier(.25,.8,.25,1),transform 1.3s cubic-bezier(.25,.8,.25,1)}.md-ripple.md-ripple-scaled{-webkit-transform:scale(1);transform:scale(1)}.md-ripple.md-ripple-active,.md-ripple.md-ripple-full,.md-ripple.md-ripple-visible{opacity:.2}.md-padding{padding:8px}.md-margin{margin:8px}.md-scroll-mask{position:absolute;background-color:transparent}.md-scroll-mask>.md-scroll-mask-bar{display:block;position:absolute;background-color:#fafafa;right:0;top:0;bottom:0;z-index:65;box-shadow:inset 0 0 1px rgba(0,0,0,.3)}@media (min-width:600px){.md-padding{padding:16px}}body,html{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5,h6,md-card,md-list,md-select,md-toolbar,ol,p,ul{text-rendering:optimizeLegibility}.md-display-4{font-size:112px;font-weight:300;letter-spacing:-.01em;line-height:112px}.md-display-3{font-size:56px;font-weight:400;letter-spacing:-.005em;line-height:56px}.md-display-2{font-size:45px;font-weight:400;line-height:64px}.md-display-1{font-size:34px;font-weight:400;line-height:40px}.md-headline{font-size:24px;font-weight:400;line-height:32px}.md-title,.md-toolbar-tools{font-size:20px;font-weight:500;letter-spacing:.005em}.md-subhead,md-list-item.md-2-line .md-list-item-text h3,md-list-item.md-2-line>.md-no-style .md-list-item-text h3,md-list-item.md-3-line .md-list-item-text h3,md-list-item.md-3-line>.md-no-style .md-list-item-text h3{font-size:16px;font-weight:400;letter-spacing:.01em;line-height:24px}.md-body-1{font-size:14px;font-weight:400;letter-spacing:.01em;line-height:20px}.md-body-2,md-list .md-subheader,md-list-item.md-2-line .md-list-item-text h4,md-list-item.md-2-line .md-list-item-text p,md-list-item.md-2-line>.md-no-style .md-list-item-text h4,md-list-item.md-2-line>.md-no-style .md-list-item-text p,md-list-item.md-3-line .md-list-item-text h4,md-list-item.md-3-line .md-list-item-text p,md-list-item.md-3-line>.md-no-style .md-list-item-text h4,md-list-item.md-3-line>.md-no-style .md-list-item-text p{font-size:14px;font-weight:500;letter-spacing:.01em;line-height:24px}.md-caption{font-size:12px;letter-spacing:.02em}.md-button{letter-spacing:.01em}button,html,input,select,textarea{font-family:RobotoDraft,Roboto,'Helvetica Neue',sans-serif}button,input,select,textarea{font-size:100%}[layout]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[layout-padding]>[flex-lt-md],[layout-padding]>[flex-sm]{padding:4px}[layout-padding],[layout-padding]>[flex-gt-sm],[layout-padding]>[flex-lt-lg],[layout-padding]>[flex-md],[layout-padding]>[flex]{padding:8px}[layout-padding]>[flex-gt-md],[layout-padding]>[flex-lg]{padding:16px}[layout-margin]>[flex-lt-md],[layout-margin]>[flex-sm]{margin:4px}[layout-margin],[layout-margin]>[flex-gt-sm],[layout-margin]>[flex-lt-lg],[layout-margin]>[flex-md],[layout-margin]>[flex]{margin:8px}[layout-margin]>[flex-gt-md],[layout-margin]>[flex-lg]{margin:16px}[layout-wrap]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}[layout-fill]{margin:0;min-height:100%;width:100%}@-moz-document url-prefix(){[layout-fill]{margin:0;width:100%;min-height:auto;height:inherit}}[flex]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex="0"]{max-width:0}[layout=column]>[flex="0"]{max-height:0}[flex="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex="5"]{max-width:5%}[layout=column]>[flex="5"]{max-height:5%}[flex="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex="10"]{max-width:10%}[layout=column]>[flex="10"]{max-height:10%}[flex="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex="15"]{max-width:15%}[layout=column]>[flex="15"]{max-height:15%}[flex="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex="20"]{max-width:20%}[layout=column]>[flex="20"]{max-height:20%}[flex="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex="25"]{max-width:25%}[layout=column]>[flex="25"]{max-height:25%}[flex="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex="30"]{max-width:30%}[layout=column]>[flex="30"]{max-height:30%}[flex="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex="35"]{max-width:35%}[layout=column]>[flex="35"]{max-height:35%}[flex="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex="40"]{max-width:40%}[layout=column]>[flex="40"]{max-height:40%}[flex="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex="45"]{max-width:45%}[layout=column]>[flex="45"]{max-height:45%}[flex="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex="50"]{max-width:50%}[layout=column]>[flex="50"]{max-height:50%}[flex="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex="55"]{max-width:55%}[layout=column]>[flex="55"]{max-height:55%}[flex="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex="60"]{max-width:60%}[layout=column]>[flex="60"]{max-height:60%}[flex="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex="65"]{max-width:65%}[layout=column]>[flex="65"]{max-height:65%}[flex="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex="70"]{max-width:70%}[layout=column]>[flex="70"]{max-height:70%}[flex="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex="75"]{max-width:75%}[layout=column]>[flex="75"]{max-height:75%}[flex="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex="80"]{max-width:80%}[layout=column]>[flex="80"]{max-height:80%}[flex="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex="85"]{max-width:85%}[layout=column]>[flex="85"]{max-height:85%}[flex="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex="90"]{max-width:90%}[layout=column]>[flex="90"]{max-height:90%}[flex="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex="95"]{max-width:95%}[layout=column]>[flex="95"]{max-height:95%}[flex="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex="100"]{max-width:100%}[layout=column]>[flex="100"]{max-height:100%}[flex="33"],[flex="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex="66"],[flex="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex="33"],[layout=row]>[flex="34"]{max-width:33.33%}[layout=row]>[flex="66"],[layout=row]>[flex="67"]{max-width:66.66%}[layout=column]>[flex="33"],[layout=column]>[flex="34"]{max-height:33.33%}[layout=column]>[flex="66"],[layout=column]>[flex="67"]{max-height:66.66%}[layout-align=center],[layout-align="center center"],[layout-align="center start"],[layout-align="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align=end],[layout-align="end center"],[layout-align="end start"],[layout-align="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align=space-around],[layout-align="space-around center"],[layout-align="space-around start"],[layout-align="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align=space-between],[layout-align="space-between center"],[layout-align="space-between start"],[layout-align="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align="center center"],[layout-align="end center"],[layout-align="space-around center"],[layout-align="space-between center"],[layout-align="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align="center start"],[layout-align="end start"],[layout-align="space-around start"],[layout-align="space-between start"],[layout-align="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align="center end"],[layout-align="end end"],[layout-align="space-around end"],[layout-align="space-between end"],[layout-align="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[flex-order="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[offset="5"]{margin-left:5%}[offset="10"]{margin-left:10%}[offset="15"]{margin-left:15%}[offset="20"]{margin-left:20%}[offset="25"]{margin-left:25%}[offset="30"]{margin-left:30%}[offset="35"]{margin-left:35%}[offset="40"]{margin-left:40%}[offset="45"]{margin-left:45%}[offset="50"]{margin-left:50%}[offset="55"]{margin-left:55%}[offset="60"]{margin-left:60%}[offset="65"]{margin-left:65%}[offset="70"]{margin-left:70%}[offset="75"]{margin-left:75%}[offset="80"]{margin-left:80%}[offset="85"]{margin-left:85%}[offset="90"]{margin-left:90%}[offset="95"]{margin-left:95%}[offset="33"],[offset="34"]{margin-left:33.33%}[offset="66"],[offset="67"]{margin-left:66.66%}@media (max-width:599px){[hide-sm]:not([show-sm]):not([show]),[hide]:not([show-sm]):not([show]){display:none}[flex-order-sm="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-sm="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-sm="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-sm="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-sm="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-sm="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-sm="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-sm="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-sm="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-sm="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-sm=center],[layout-align-sm="center center"],[layout-align-sm="center start"],[layout-align-sm="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-sm=end],[layout-align-sm="end center"],[layout-align-sm="end start"],[layout-align-sm="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-sm=space-around],[layout-align-sm="space-around center"],[layout-align-sm="space-around start"],[layout-align-sm="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-sm=space-between],[layout-align-sm="space-between center"],[layout-align-sm="space-between start"],[layout-align-sm="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-sm="center center"],[layout-align-sm="end center"],[layout-align-sm="space-around center"],[layout-align-sm="space-between center"],[layout-align-sm="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-sm="center start"],[layout-align-sm="end start"],[layout-align-sm="space-around start"],[layout-align-sm="space-between start"],[layout-align-sm="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-sm="center end"],[layout-align-sm="end end"],[layout-align-sm="space-around end"],[layout-align-sm="space-between end"],[layout-align-sm="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-sm]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-sm=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-sm=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-sm="5"]{margin-left:5%}[offset-sm="10"]{margin-left:10%}[offset-sm="15"]{margin-left:15%}[offset-sm="20"]{margin-left:20%}[offset-sm="25"]{margin-left:25%}[offset-sm="30"]{margin-left:30%}[offset-sm="35"]{margin-left:35%}[offset-sm="40"]{margin-left:40%}[offset-sm="45"]{margin-left:45%}[offset-sm="50"]{margin-left:50%}[offset-sm="55"]{margin-left:55%}[offset-sm="60"]{margin-left:60%}[offset-sm="65"]{margin-left:65%}[offset-sm="70"]{margin-left:70%}[offset-sm="75"]{margin-left:75%}[offset-sm="80"]{margin-left:80%}[offset-sm="85"]{margin-left:85%}[offset-sm="90"]{margin-left:90%}[offset-sm="95"]{margin-left:95%}[offset-sm="33"],[offset-sm="34"]{margin-left:33.33%}[offset-sm="66"],[offset-sm="67"]{margin-left:66.66%}[flex-sm]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-sm="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-sm="0"]{max-width:0}[layout=column]>[flex-sm="0"]{max-height:0}[flex-sm="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-sm="5"]{max-width:5%}[layout=column]>[flex-sm="5"]{max-height:5%}[flex-sm="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-sm="10"]{max-width:10%}[layout=column]>[flex-sm="10"]{max-height:10%}[flex-sm="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-sm="15"]{max-width:15%}[layout=column]>[flex-sm="15"]{max-height:15%}[flex-sm="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-sm="20"]{max-width:20%}[layout=column]>[flex-sm="20"]{max-height:20%}[flex-sm="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-sm="25"]{max-width:25%}[layout=column]>[flex-sm="25"]{max-height:25%}[flex-sm="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-sm="30"]{max-width:30%}[layout=column]>[flex-sm="30"]{max-height:30%}[flex-sm="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-sm="35"]{max-width:35%}[layout=column]>[flex-sm="35"]{max-height:35%}[flex-sm="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-sm="40"]{max-width:40%}[layout=column]>[flex-sm="40"]{max-height:40%}[flex-sm="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-sm="45"]{max-width:45%}[layout=column]>[flex-sm="45"]{max-height:45%}[flex-sm="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-sm="50"]{max-width:50%}[layout=column]>[flex-sm="50"]{max-height:50%}[flex-sm="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-sm="55"]{max-width:55%}[layout=column]>[flex-sm="55"]{max-height:55%}[flex-sm="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-sm="60"]{max-width:60%}[layout=column]>[flex-sm="60"]{max-height:60%}[flex-sm="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-sm="65"]{max-width:65%}[layout=column]>[flex-sm="65"]{max-height:65%}[flex-sm="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-sm="70"]{max-width:70%}[layout=column]>[flex-sm="70"]{max-height:70%}[flex-sm="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-sm="75"]{max-width:75%}[layout=column]>[flex-sm="75"]{max-height:75%}[flex-sm="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-sm="80"]{max-width:80%}[layout=column]>[flex-sm="80"]{max-height:80%}[flex-sm="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-sm="85"]{max-width:85%}[layout=column]>[flex-sm="85"]{max-height:85%}[flex-sm="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-sm="90"]{max-width:90%}[layout=column]>[flex-sm="90"]{max-height:90%}[flex-sm="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-sm="95"]{max-width:95%}[layout=column]>[flex-sm="95"]{max-height:95%}[flex-sm="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-sm="100"]{max-width:100%}[layout=column]>[flex-sm="100"]{max-height:100%}[flex-sm="33"],[flex-sm="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-sm="66"],[flex-sm="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-sm="33"],[layout=row]>[flex-sm="34"]{max-width:33.33%}[layout=row]>[flex-sm="66"],[layout=row]>[flex-sm="67"]{max-width:66.66%}[layout=column]>[flex-sm="33"],[layout=column]>[flex-sm="34"]{max-height:33.33%}[layout=column]>[flex-sm="66"],[layout=column]>[flex-sm="67"]{max-height:66.66%}}@media (min-width:600px){[flex-order-gt-sm="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-gt-sm="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-gt-sm="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-gt-sm="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-gt-sm="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-gt-sm="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-gt-sm="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-gt-sm="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-gt-sm="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-gt-sm="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-gt-sm=center],[layout-align-gt-sm="center center"],[layout-align-gt-sm="center start"],[layout-align-gt-sm="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-gt-sm=end],[layout-align-gt-sm="end center"],[layout-align-gt-sm="end start"],[layout-align-gt-sm="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-gt-sm=space-around],[layout-align-gt-sm="space-around center"],[layout-align-gt-sm="space-around start"],[layout-align-gt-sm="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-gt-sm=space-between],[layout-align-gt-sm="space-between center"],[layout-align-gt-sm="space-between start"],[layout-align-gt-sm="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-gt-sm="center center"],[layout-align-gt-sm="end center"],[layout-align-gt-sm="space-around center"],[layout-align-gt-sm="space-between center"],[layout-align-gt-sm="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-gt-sm="center start"],[layout-align-gt-sm="end start"],[layout-align-gt-sm="space-around start"],[layout-align-gt-sm="space-between start"],[layout-align-gt-sm="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-gt-sm="center end"],[layout-align-gt-sm="end end"],[layout-align-gt-sm="space-around end"],[layout-align-gt-sm="space-between end"],[layout-align-gt-sm="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-gt-sm]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-gt-sm=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-gt-sm=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-gt-sm="5"]{margin-left:5%}[offset-gt-sm="10"]{margin-left:10%}[offset-gt-sm="15"]{margin-left:15%}[offset-gt-sm="20"]{margin-left:20%}[offset-gt-sm="25"]{margin-left:25%}[offset-gt-sm="30"]{margin-left:30%}[offset-gt-sm="35"]{margin-left:35%}[offset-gt-sm="40"]{margin-left:40%}[offset-gt-sm="45"]{margin-left:45%}[offset-gt-sm="50"]{margin-left:50%}[offset-gt-sm="55"]{margin-left:55%}[offset-gt-sm="60"]{margin-left:60%}[offset-gt-sm="65"]{margin-left:65%}[offset-gt-sm="70"]{margin-left:70%}[offset-gt-sm="75"]{margin-left:75%}[offset-gt-sm="80"]{margin-left:80%}[offset-gt-sm="85"]{margin-left:85%}[offset-gt-sm="90"]{margin-left:90%}[offset-gt-sm="95"]{margin-left:95%}[offset-gt-sm="33"],[offset-gt-sm="34"]{margin-left:33.33%}[offset-gt-sm="66"],[offset-gt-sm="67"]{margin-left:66.66%}[flex-gt-sm]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-gt-sm="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-gt-sm="0"]{max-width:0}[layout=column]>[flex-gt-sm="0"]{max-height:0}[flex-gt-sm="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-gt-sm="5"]{max-width:5%}[layout=column]>[flex-gt-sm="5"]{max-height:5%}[flex-gt-sm="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-gt-sm="10"]{max-width:10%}[layout=column]>[flex-gt-sm="10"]{max-height:10%}[flex-gt-sm="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-gt-sm="15"]{max-width:15%}[layout=column]>[flex-gt-sm="15"]{max-height:15%}[flex-gt-sm="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-gt-sm="20"]{max-width:20%}[layout=column]>[flex-gt-sm="20"]{max-height:20%}[flex-gt-sm="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-gt-sm="25"]{max-width:25%}[layout=column]>[flex-gt-sm="25"]{max-height:25%}[flex-gt-sm="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-gt-sm="30"]{max-width:30%}[layout=column]>[flex-gt-sm="30"]{max-height:30%}[flex-gt-sm="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-gt-sm="35"]{max-width:35%}[layout=column]>[flex-gt-sm="35"]{max-height:35%}[flex-gt-sm="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-gt-sm="40"]{max-width:40%}[layout=column]>[flex-gt-sm="40"]{max-height:40%}[flex-gt-sm="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-gt-sm="45"]{max-width:45%}[layout=column]>[flex-gt-sm="45"]{max-height:45%}[flex-gt-sm="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-gt-sm="50"]{max-width:50%}[layout=column]>[flex-gt-sm="50"]{max-height:50%}[flex-gt-sm="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-gt-sm="55"]{max-width:55%}[layout=column]>[flex-gt-sm="55"]{max-height:55%}[flex-gt-sm="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-gt-sm="60"]{max-width:60%}[layout=column]>[flex-gt-sm="60"]{max-height:60%}[flex-gt-sm="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-gt-sm="65"]{max-width:65%}[layout=column]>[flex-gt-sm="65"]{max-height:65%}[flex-gt-sm="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-gt-sm="70"]{max-width:70%}[layout=column]>[flex-gt-sm="70"]{max-height:70%}[flex-gt-sm="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-gt-sm="75"]{max-width:75%}[layout=column]>[flex-gt-sm="75"]{max-height:75%}[flex-gt-sm="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-gt-sm="80"]{max-width:80%}[layout=column]>[flex-gt-sm="80"]{max-height:80%}[flex-gt-sm="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-gt-sm="85"]{max-width:85%}[layout=column]>[flex-gt-sm="85"]{max-height:85%}[flex-gt-sm="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-gt-sm="90"]{max-width:90%}[layout=column]>[flex-gt-sm="90"]{max-height:90%}[flex-gt-sm="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-gt-sm="95"]{max-width:95%}[layout=column]>[flex-gt-sm="95"]{max-height:95%}[flex-gt-sm="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-gt-sm="100"]{max-width:100%}[layout=column]>[flex-gt-sm="100"]{max-height:100%}[flex-gt-sm="33"],[flex-gt-sm="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-gt-sm="66"],[flex-gt-sm="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-gt-sm="33"],[layout=row]>[flex-gt-sm="34"]{max-width:33.33%}[layout=row]>[flex-gt-sm="66"],[layout=row]>[flex-gt-sm="67"]{max-width:66.66%}[layout=column]>[flex-gt-sm="33"],[layout=column]>[flex-gt-sm="34"]{max-height:33.33%}[layout=column]>[flex-gt-sm="66"],[layout=column]>[flex-gt-sm="67"]{max-height:66.66%}}@media (min-width:600px) and (max-width:959px){[hide-gt-sm]:not([show-gt-sm]):not([show-md]):not([show]),[hide-md]:not([show-md]):not([show]),[hide]:not([show-gt-sm]):not([show-md]):not([show]){display:none}[flex-order-md="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-md="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-md="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-md="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-md="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-md="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-md="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-md="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-md="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-md="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-md=center],[layout-align-md="center center"],[layout-align-md="center start"],[layout-align-md="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-md=end],[layout-align-md="end center"],[layout-align-md="end start"],[layout-align-md="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-md=space-around],[layout-align-md="space-around center"],[layout-align-md="space-around start"],[layout-align-md="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-md=space-between],[layout-align-md="space-between center"],[layout-align-md="space-between start"],[layout-align-md="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-md="center center"],[layout-align-md="end center"],[layout-align-md="space-around center"],[layout-align-md="space-between center"],[layout-align-md="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-md="center start"],[layout-align-md="end start"],[layout-align-md="space-around start"],[layout-align-md="space-between start"],[layout-align-md="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-md="center end"],[layout-align-md="end end"],[layout-align-md="space-around end"],[layout-align-md="space-between end"],[layout-align-md="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-md]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-md=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-md=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-md="5"]{margin-left:5%}[offset-md="10"]{margin-left:10%}[offset-md="15"]{margin-left:15%}[offset-md="20"]{margin-left:20%}[offset-md="25"]{margin-left:25%}[offset-md="30"]{margin-left:30%}[offset-md="35"]{margin-left:35%}[offset-md="40"]{margin-left:40%}[offset-md="45"]{margin-left:45%}[offset-md="50"]{margin-left:50%}[offset-md="55"]{margin-left:55%}[offset-md="60"]{margin-left:60%}[offset-md="65"]{margin-left:65%}[offset-md="70"]{margin-left:70%}[offset-md="75"]{margin-left:75%}[offset-md="80"]{margin-left:80%}[offset-md="85"]{margin-left:85%}[offset-md="90"]{margin-left:90%}[offset-md="95"]{margin-left:95%}[offset-md="33"],[offset-md="34"]{margin-left:33.33%}[offset-md="66"],[offset-md="67"]{margin-left:66.66%}[flex-md]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-md="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-md="0"]{max-width:0}[layout=column]>[flex-md="0"]{max-height:0}[flex-md="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-md="5"]{max-width:5%}[layout=column]>[flex-md="5"]{max-height:5%}[flex-md="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-md="10"]{max-width:10%}[layout=column]>[flex-md="10"]{max-height:10%}[flex-md="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-md="15"]{max-width:15%}[layout=column]>[flex-md="15"]{max-height:15%}[flex-md="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-md="20"]{max-width:20%}[layout=column]>[flex-md="20"]{max-height:20%}[flex-md="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-md="25"]{max-width:25%}[layout=column]>[flex-md="25"]{max-height:25%}[flex-md="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-md="30"]{max-width:30%}[layout=column]>[flex-md="30"]{max-height:30%}[flex-md="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-md="35"]{max-width:35%}[layout=column]>[flex-md="35"]{max-height:35%}[flex-md="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-md="40"]{max-width:40%}[layout=column]>[flex-md="40"]{max-height:40%}[flex-md="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-md="45"]{max-width:45%}[layout=column]>[flex-md="45"]{max-height:45%}[flex-md="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-md="50"]{max-width:50%}[layout=column]>[flex-md="50"]{max-height:50%}[flex-md="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-md="55"]{max-width:55%}[layout=column]>[flex-md="55"]{max-height:55%}[flex-md="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-md="60"]{max-width:60%}[layout=column]>[flex-md="60"]{max-height:60%}[flex-md="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-md="65"]{max-width:65%}[layout=column]>[flex-md="65"]{max-height:65%}[flex-md="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-md="70"]{max-width:70%}[layout=column]>[flex-md="70"]{max-height:70%}[flex-md="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-md="75"]{max-width:75%}[layout=column]>[flex-md="75"]{max-height:75%}[flex-md="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-md="80"]{max-width:80%}[layout=column]>[flex-md="80"]{max-height:80%}[flex-md="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-md="85"]{max-width:85%}[layout=column]>[flex-md="85"]{max-height:85%}[flex-md="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-md="90"]{max-width:90%}[layout=column]>[flex-md="90"]{max-height:90%}[flex-md="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-md="95"]{max-width:95%}[layout=column]>[flex-md="95"]{max-height:95%}[flex-md="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-md="100"]{max-width:100%}[layout=column]>[flex-md="100"]{max-height:100%}[flex-md="33"],[flex-md="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-md="66"],[flex-md="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-md="33"],[layout=row]>[flex-md="34"]{max-width:33.33%}[layout=row]>[flex-md="66"],[layout=row]>[flex-md="67"]{max-width:66.66%}[layout=column]>[flex-md="33"],[layout=column]>[flex-md="34"]{max-height:33.33%}[layout=column]>[flex-md="66"],[layout=column]>[flex-md="67"]{max-height:66.66%}}@media (min-width:960px){[flex-order-gt-md="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-gt-md="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-gt-md="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-gt-md="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-gt-md="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-gt-md="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-gt-md="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-gt-md="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-gt-md="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-gt-md="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-gt-md=center],[layout-align-gt-md="center center"],[layout-align-gt-md="center start"],[layout-align-gt-md="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-gt-md=end],[layout-align-gt-md="end center"],[layout-align-gt-md="end start"],[layout-align-gt-md="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-gt-md=space-around],[layout-align-gt-md="space-around center"],[layout-align-gt-md="space-around start"],[layout-align-gt-md="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-gt-md=space-between],[layout-align-gt-md="space-between center"],[layout-align-gt-md="space-between start"],[layout-align-gt-md="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-gt-md="center center"],[layout-align-gt-md="end center"],[layout-align-gt-md="space-around center"],[layout-align-gt-md="space-between center"],[layout-align-gt-md="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-gt-md="center start"],[layout-align-gt-md="end start"],[layout-align-gt-md="space-around start"],[layout-align-gt-md="space-between start"],[layout-align-gt-md="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-gt-md="center end"],[layout-align-gt-md="end end"],[layout-align-gt-md="space-around end"],[layout-align-gt-md="space-between end"],[layout-align-gt-md="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-gt-md]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-gt-md=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-gt-md=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-gt-md="5"]{margin-left:5%}[offset-gt-md="10"]{margin-left:10%}[offset-gt-md="15"]{margin-left:15%}[offset-gt-md="20"]{margin-left:20%}[offset-gt-md="25"]{margin-left:25%}[offset-gt-md="30"]{margin-left:30%}[offset-gt-md="35"]{margin-left:35%}[offset-gt-md="40"]{margin-left:40%}[offset-gt-md="45"]{margin-left:45%}[offset-gt-md="50"]{margin-left:50%}[offset-gt-md="55"]{margin-left:55%}[offset-gt-md="60"]{margin-left:60%}[offset-gt-md="65"]{margin-left:65%}[offset-gt-md="70"]{margin-left:70%}[offset-gt-md="75"]{margin-left:75%}[offset-gt-md="80"]{margin-left:80%}[offset-gt-md="85"]{margin-left:85%}[offset-gt-md="90"]{margin-left:90%}[offset-gt-md="95"]{margin-left:95%}[offset-gt-md="33"],[offset-gt-md="34"]{margin-left:33.33%}[offset-gt-md="66"],[offset-gt-md="67"]{margin-left:66.66%}[flex-gt-md]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-gt-md="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-gt-md="0"]{max-width:0}[layout=column]>[flex-gt-md="0"]{max-height:0}[flex-gt-md="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-gt-md="5"]{max-width:5%}[layout=column]>[flex-gt-md="5"]{max-height:5%}[flex-gt-md="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-gt-md="10"]{max-width:10%}[layout=column]>[flex-gt-md="10"]{max-height:10%}[flex-gt-md="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-gt-md="15"]{max-width:15%}[layout=column]>[flex-gt-md="15"]{max-height:15%}[flex-gt-md="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-gt-md="20"]{max-width:20%}[layout=column]>[flex-gt-md="20"]{max-height:20%}[flex-gt-md="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-gt-md="25"]{max-width:25%}[layout=column]>[flex-gt-md="25"]{max-height:25%}[flex-gt-md="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-gt-md="30"]{max-width:30%}[layout=column]>[flex-gt-md="30"]{max-height:30%}[flex-gt-md="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-gt-md="35"]{max-width:35%}[layout=column]>[flex-gt-md="35"]{max-height:35%}[flex-gt-md="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-gt-md="40"]{max-width:40%}[layout=column]>[flex-gt-md="40"]{max-height:40%}[flex-gt-md="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-gt-md="45"]{max-width:45%}[layout=column]>[flex-gt-md="45"]{max-height:45%}[flex-gt-md="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-gt-md="50"]{max-width:50%}[layout=column]>[flex-gt-md="50"]{max-height:50%}[flex-gt-md="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-gt-md="55"]{max-width:55%}[layout=column]>[flex-gt-md="55"]{max-height:55%}[flex-gt-md="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-gt-md="60"]{max-width:60%}[layout=column]>[flex-gt-md="60"]{max-height:60%}[flex-gt-md="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-gt-md="65"]{max-width:65%}[layout=column]>[flex-gt-md="65"]{max-height:65%}[flex-gt-md="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-gt-md="70"]{max-width:70%}[layout=column]>[flex-gt-md="70"]{max-height:70%}[flex-gt-md="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-gt-md="75"]{max-width:75%}[layout=column]>[flex-gt-md="75"]{max-height:75%}[flex-gt-md="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-gt-md="80"]{max-width:80%}[layout=column]>[flex-gt-md="80"]{max-height:80%}[flex-gt-md="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-gt-md="85"]{max-width:85%}[layout=column]>[flex-gt-md="85"]{max-height:85%}[flex-gt-md="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-gt-md="90"]{max-width:90%}[layout=column]>[flex-gt-md="90"]{max-height:90%}[flex-gt-md="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-gt-md="95"]{max-width:95%}[layout=column]>[flex-gt-md="95"]{max-height:95%}[flex-gt-md="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-gt-md="100"]{max-width:100%}[layout=column]>[flex-gt-md="100"]{max-height:100%}[flex-gt-md="33"],[flex-gt-md="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-gt-md="66"],[flex-gt-md="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-gt-md="33"],[layout=row]>[flex-gt-md="34"]{max-width:33.33%}[layout=row]>[flex-gt-md="66"],[layout=row]>[flex-gt-md="67"]{max-width:66.66%}[layout=column]>[flex-gt-md="33"],[layout=column]>[flex-gt-md="34"]{max-height:33.33%}[layout=column]>[flex-gt-md="66"],[layout=column]>[flex-gt-md="67"]{max-height:66.66%}}@media (min-width:960px) and (max-width:1199px){[hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]),[hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]),[hide-lg]:not([show-lg]):not([show]),[hide]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]){display:none}[flex-order-lg="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-lg="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-lg="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-lg="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-lg="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-lg="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-lg="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-lg="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-lg="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-lg="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-lg=center],[layout-align-lg="center center"],[layout-align-lg="center start"],[layout-align-lg="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-lg=end],[layout-align-lg="end center"],[layout-align-lg="end start"],[layout-align-lg="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-lg=space-around],[layout-align-lg="space-around center"],[layout-align-lg="space-around start"],[layout-align-lg="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-lg=space-between],[layout-align-lg="space-between center"],[layout-align-lg="space-between start"],[layout-align-lg="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-lg="center center"],[layout-align-lg="end center"],[layout-align-lg="space-around center"],[layout-align-lg="space-between center"],[layout-align-lg="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-lg="center start"],[layout-align-lg="end start"],[layout-align-lg="space-around start"],[layout-align-lg="space-between start"],[layout-align-lg="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-lg="center end"],[layout-align-lg="end end"],[layout-align-lg="space-around end"],[layout-align-lg="space-between end"],[layout-align-lg="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-lg]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-lg=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-lg=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-lg="5"]{margin-left:5%}[offset-lg="10"]{margin-left:10%}[offset-lg="15"]{margin-left:15%}[offset-lg="20"]{margin-left:20%}[offset-lg="25"]{margin-left:25%}[offset-lg="30"]{margin-left:30%}[offset-lg="35"]{margin-left:35%}[offset-lg="40"]{margin-left:40%}[offset-lg="45"]{margin-left:45%}[offset-lg="50"]{margin-left:50%}[offset-lg="55"]{margin-left:55%}[offset-lg="60"]{margin-left:60%}[offset-lg="65"]{margin-left:65%}[offset-lg="70"]{margin-left:70%}[offset-lg="75"]{margin-left:75%}[offset-lg="80"]{margin-left:80%}[offset-lg="85"]{margin-left:85%}[offset-lg="90"]{margin-left:90%}[offset-lg="95"]{margin-left:95%}[offset-lg="33"],[offset-lg="34"]{margin-left:33.33%}[offset-lg="66"],[offset-lg="67"]{margin-left:66.66%}[flex-lg]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-lg="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-lg="0"]{max-width:0}[layout=column]>[flex-lg="0"]{max-height:0}[flex-lg="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-lg="5"]{max-width:5%}[layout=column]>[flex-lg="5"]{max-height:5%}[flex-lg="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-lg="10"]{max-width:10%}[layout=column]>[flex-lg="10"]{max-height:10%}[flex-lg="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-lg="15"]{max-width:15%}[layout=column]>[flex-lg="15"]{max-height:15%}[flex-lg="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-lg="20"]{max-width:20%}[layout=column]>[flex-lg="20"]{max-height:20%}[flex-lg="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-lg="25"]{max-width:25%}[layout=column]>[flex-lg="25"]{max-height:25%}[flex-lg="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-lg="30"]{max-width:30%}[layout=column]>[flex-lg="30"]{max-height:30%}[flex-lg="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-lg="35"]{max-width:35%}[layout=column]>[flex-lg="35"]{max-height:35%}[flex-lg="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-lg="40"]{max-width:40%}[layout=column]>[flex-lg="40"]{max-height:40%}[flex-lg="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-lg="45"]{max-width:45%}[layout=column]>[flex-lg="45"]{max-height:45%}[flex-lg="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-lg="50"]{max-width:50%}[layout=column]>[flex-lg="50"]{max-height:50%}[flex-lg="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-lg="55"]{max-width:55%}[layout=column]>[flex-lg="55"]{max-height:55%}[flex-lg="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-lg="60"]{max-width:60%}[layout=column]>[flex-lg="60"]{max-height:60%}[flex-lg="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-lg="65"]{max-width:65%}[layout=column]>[flex-lg="65"]{max-height:65%}[flex-lg="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-lg="70"]{max-width:70%}[layout=column]>[flex-lg="70"]{max-height:70%}[flex-lg="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-lg="75"]{max-width:75%}[layout=column]>[flex-lg="75"]{max-height:75%}[flex-lg="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-lg="80"]{max-width:80%}[layout=column]>[flex-lg="80"]{max-height:80%}[flex-lg="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-lg="85"]{max-width:85%}[layout=column]>[flex-lg="85"]{max-height:85%}[flex-lg="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-lg="90"]{max-width:90%}[layout=column]>[flex-lg="90"]{max-height:90%}[flex-lg="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-lg="95"]{max-width:95%}[layout=column]>[flex-lg="95"]{max-height:95%}[flex-lg="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-lg="100"]{max-width:100%}[layout=column]>[flex-lg="100"]{max-height:100%}[flex-lg="33"],[flex-lg="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-lg="66"],[flex-lg="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-lg="33"],[layout=row]>[flex-lg="34"]{max-width:33.33%}[layout=row]>[flex-lg="66"],[layout=row]>[flex-lg="67"]{max-width:66.66%}[layout=column]>[flex-lg="33"],[layout=column]>[flex-lg="34"]{max-height:33.33%}[layout=column]>[flex-lg="66"],[layout=column]>[flex-lg="67"]{max-height:66.66%}}@media (min-width:1200px){[hide-gt-lg]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]),[hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]),[hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]),[hide]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]){display:none}[flex-order-gt-lg="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-gt-lg="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-gt-lg="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-gt-lg="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-gt-lg="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-gt-lg="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-gt-lg="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-gt-lg="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-gt-lg="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-gt-lg="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-gt-lg=center],[layout-align-gt-lg="center center"],[layout-align-gt-lg="center start"],[layout-align-gt-lg="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-gt-lg=end],[layout-align-gt-lg="end center"],[layout-align-gt-lg="end start"],[layout-align-gt-lg="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-gt-lg=space-around],[layout-align-gt-lg="space-around center"],[layout-align-gt-lg="space-around start"],[layout-align-gt-lg="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-gt-lg=space-between],[layout-align-gt-lg="space-between center"],[layout-align-gt-lg="space-between start"],[layout-align-gt-lg="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-gt-lg="center center"],[layout-align-gt-lg="end center"],[layout-align-gt-lg="space-around center"],[layout-align-gt-lg="space-between center"],[layout-align-gt-lg="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-gt-lg="center start"],[layout-align-gt-lg="end start"],[layout-align-gt-lg="space-around start"],[layout-align-gt-lg="space-between start"],[layout-align-gt-lg="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-gt-lg="center end"],[layout-align-gt-lg="end end"],[layout-align-gt-lg="space-around end"],[layout-align-gt-lg="space-between end"],[layout-align-gt-lg="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-gt-lg]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-gt-lg=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-gt-lg=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-gt-lg="5"]{margin-left:5%}[offset-gt-lg="10"]{margin-left:10%}[offset-gt-lg="15"]{margin-left:15%}[offset-gt-lg="20"]{margin-left:20%}[offset-gt-lg="25"]{margin-left:25%}[offset-gt-lg="30"]{margin-left:30%}[offset-gt-lg="35"]{margin-left:35%}[offset-gt-lg="40"]{margin-left:40%}[offset-gt-lg="45"]{margin-left:45%}[offset-gt-lg="50"]{margin-left:50%}[offset-gt-lg="55"]{margin-left:55%}[offset-gt-lg="60"]{margin-left:60%}[offset-gt-lg="65"]{margin-left:65%}[offset-gt-lg="70"]{margin-left:70%}[offset-gt-lg="75"]{margin-left:75%}[offset-gt-lg="80"]{margin-left:80%}[offset-gt-lg="85"]{margin-left:85%}[offset-gt-lg="90"]{margin-left:90%}[offset-gt-lg="95"]{margin-left:95%}[offset-gt-lg="33"],[offset-gt-lg="34"]{margin-left:33.33%}[offset-gt-lg="66"],[offset-gt-lg="67"]{margin-left:66.66%}[flex-gt-lg]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-gt-lg="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-gt-lg="0"]{max-width:0}[layout=column]>[flex-gt-lg="0"]{max-height:0}[flex-gt-lg="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-gt-lg="5"]{max-width:5%}[layout=column]>[flex-gt-lg="5"]{max-height:5%}[flex-gt-lg="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-gt-lg="10"]{max-width:10%}[layout=column]>[flex-gt-lg="10"]{max-height:10%}[flex-gt-lg="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-gt-lg="15"]{max-width:15%}[layout=column]>[flex-gt-lg="15"]{max-height:15%}[flex-gt-lg="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-gt-lg="20"]{max-width:20%}[layout=column]>[flex-gt-lg="20"]{max-height:20%}[flex-gt-lg="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-gt-lg="25"]{max-width:25%}[layout=column]>[flex-gt-lg="25"]{max-height:25%}[flex-gt-lg="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-gt-lg="30"]{max-width:30%}[layout=column]>[flex-gt-lg="30"]{max-height:30%}[flex-gt-lg="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-gt-lg="35"]{max-width:35%}[layout=column]>[flex-gt-lg="35"]{max-height:35%}[flex-gt-lg="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-gt-lg="40"]{max-width:40%}[layout=column]>[flex-gt-lg="40"]{max-height:40%}[flex-gt-lg="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-gt-lg="45"]{max-width:45%}[layout=column]>[flex-gt-lg="45"]{max-height:45%}[flex-gt-lg="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-gt-lg="50"]{max-width:50%}[layout=column]>[flex-gt-lg="50"]{max-height:50%}[flex-gt-lg="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-gt-lg="55"]{max-width:55%}[layout=column]>[flex-gt-lg="55"]{max-height:55%}[flex-gt-lg="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-gt-lg="60"]{max-width:60%}[layout=column]>[flex-gt-lg="60"]{max-height:60%}[flex-gt-lg="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-gt-lg="65"]{max-width:65%}[layout=column]>[flex-gt-lg="65"]{max-height:65%}[flex-gt-lg="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-gt-lg="70"]{max-width:70%}[layout=column]>[flex-gt-lg="70"]{max-height:70%}[flex-gt-lg="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-gt-lg="75"]{max-width:75%}[layout=column]>[flex-gt-lg="75"]{max-height:75%}[flex-gt-lg="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-gt-lg="80"]{max-width:80%}[layout=column]>[flex-gt-lg="80"]{max-height:80%}[flex-gt-lg="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-gt-lg="85"]{max-width:85%}[layout=column]>[flex-gt-lg="85"]{max-height:85%}[flex-gt-lg="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-gt-lg="90"]{max-width:90%}[layout=column]>[flex-gt-lg="90"]{max-height:90%}[flex-gt-lg="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-gt-lg="95"]{max-width:95%}[layout=column]>[flex-gt-lg="95"]{max-height:95%}[flex-gt-lg="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-gt-lg="100"]{max-width:100%}[layout=column]>[flex-gt-lg="100"]{max-height:100%}[flex-gt-lg="33"],[flex-gt-lg="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-gt-lg="66"],[flex-gt-lg="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-gt-lg="33"],[layout=row]>[flex-gt-lg="34"]{max-width:33.33%}[layout=row]>[flex-gt-lg="66"],[layout=row]>[flex-gt-lg="67"]{max-width:66.66%}[layout=column]>[flex-gt-lg="33"],[layout=column]>[flex-gt-lg="34"]{max-height:33.33%}[layout=column]>[flex-gt-lg="66"],[layout=column]>[flex-gt-lg="67"]{max-height:66.66%}}@-webkit-keyframes md-autocomplete-list-out{0%{-webkit-animation-timing-function:linear;animation-timing-function:linear}50%{opacity:0;height:40px;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{height:0;opacity:0}}@keyframes md-autocomplete-list-out{0%{-webkit-animation-timing-function:linear;animation-timing-function:linear}50%{opacity:0;height:40px;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{height:0;opacity:0}}@-webkit-keyframes md-autocomplete-list-in{0%{opacity:0;height:0;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{opacity:0;height:40px}100%{opacity:1;height:40px}}@keyframes md-autocomplete-list-in{0%{opacity:0;height:0;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{opacity:0;height:40px}100%{opacity:1;height:40px}}md-autocomplete{border-radius:2px;display:block;height:40px;position:relative;overflow:visible;min-width:190px}md-autocomplete[disabled] input{cursor:not-allowed}md-autocomplete[md-floating-label]{padding-bottom:26px;border-radius:0;background:0 0;height:auto}md-autocomplete[md-floating-label] md-input-container{padding-bottom:0}md-autocomplete[md-floating-label] md-autocomplete-wrap{height:auto}md-autocomplete[md-floating-label] button{position:absolute;top:auto;bottom:0;right:0;width:30px;height:30px}md-autocomplete md-autocomplete-wrap{display:block;position:relative;overflow:visible;height:40px}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate]{position:absolute;bottom:0;left:0;width:100%;height:3px;transition:none}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate] .md-container{transition:none;top:auto;height:3px}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter{transition:opacity .15s linear}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter.ng-enter-active{opacity:1}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave{transition:opacity .15s linear}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave.ng-leave-active{opacity:0}md-autocomplete input:not(.md-input){width:100%;box-sizing:border-box;border:none;box-shadow:none;padding:0 15px;font-size:14px;line-height:40px;height:40px;outline:0;background:0 0}md-autocomplete input:not(.md-input)::-ms-clear{display:none}md-autocomplete button{position:relative;line-height:20px;text-align:center;width:30px;height:30px;cursor:pointer;border:none;border-radius:50%;padding:0;font-size:12px;background:0 0;margin:auto 5px}md-autocomplete button:after{content:'';position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;border-radius:50%;-webkit-transform:scale(0);transform:scale(0);opacity:0;transition:all .4s cubic-bezier(.25,.8,.25,1)}md-autocomplete button:focus{outline:0}md-autocomplete button:focus:after{-webkit-transform:scale(1);transform:scale(1);opacity:1}md-autocomplete button md-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9)}md-autocomplete button md-icon path{stroke-width:0}md-autocomplete button.ng-enter{-webkit-transform:scale(0);transform:scale(0);transition:-webkit-transform .15s ease-out;transition:transform .15s ease-out}md-autocomplete button.ng-enter.ng-enter-active{-webkit-transform:scale(1);transform:scale(1)}md-autocomplete button.ng-leave{transition:-webkit-transform .15s ease-out;transition:transform .15s ease-out}md-autocomplete button.ng-leave.ng-leave-active{-webkit-transform:scale(0);transform:scale(0)}@media screen and (-ms-high-contrast:active){md-autocomplete input{border:1px solid #fff}md-autocomplete li:focus{color:#fff}}.md-autocomplete-suggestions{position:absolute;margin:0;list-style:none;padding:0;overflow:auto;max-height:225.5px;z-index:100}.md-autocomplete-suggestions li{cursor:pointer;font-size:14px;overflow:hidden;padding:0 15px;line-height:48px;height:48px;transition:background .15s linear;margin:0;white-space:nowrap;text-overflow:ellipsis}.md-autocomplete-suggestions li.ng-enter,.md-autocomplete-suggestions li.ng-hide-remove{transition:none;-webkit-animation:md-autocomplete-list-in .2s;animation:md-autocomplete-list-in .2s}.md-autocomplete-suggestions li.ng-hide-add,.md-autocomplete-suggestions li.ng-leave{transition:none;-webkit-animation:md-autocomplete-list-out .2s;animation:md-autocomplete-list-out .2s}.md-autocomplete-suggestions li:focus{outline:0}@media screen and (-ms-high-contrast:active){.md-autocomplete-suggestions,md-autocomplete{border:1px solid #fff}}md-backdrop{z-index:50;background-color:transparent;position:absolute;height:100%;left:0;right:0}md-backdrop.md-select-backdrop{z-index:81}md-backdrop.md-dialog-backdrop{z-index:79}md-backdrop.md-bottom-sheet-backdrop{z-index:69}md-backdrop.md-sidenav-backdrop{z-index:59}md-backdrop.md-click-catcher{top:0;position:fixed}md-backdrop.ng-enter{-webkit-animation:cubic-bezier(.25,.8,.25,1) mdBackdropFadeIn .5s both;animation:cubic-bezier(.25,.8,.25,1) mdBackdropFadeIn .5s both}md-backdrop.ng-leave{-webkit-animation:cubic-bezier(.55,0,.55,.2) mdBackdropFadeOut .2s both;animation:cubic-bezier(.55,0,.55,.2) mdBackdropFadeOut .2s both}@-webkit-keyframes mdBackdropFadeIn{from{opacity:0}to{opacity:1}}@keyframes mdBackdropFadeIn{from{opacity:0}to{opacity:1}}@-webkit-keyframes mdBackdropFadeOut{from{opacity:1}to{opacity:0}}@keyframes mdBackdropFadeOut{from{opacity:1}to{opacity:0}}md-bottom-sheet{position:absolute;left:0;right:0;bottom:0;padding:8px 16px 88px;z-index:70;border-top-width:1px;border-top-style:solid;-webkit-transform:translate3d(0,80px,0);transform:translate3d(0,80px,0);transition:all .4s cubic-bezier(.25,.8,.25,1);transition-property:-webkit-transform;transition-property:transform}md-bottom-sheet.md-has-header{padding-top:0}md-bottom-sheet.ng-enter{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}md-bottom-sheet.ng-enter-active{opacity:1;display:block;-webkit-transform:translate3d(0,80px,0)!important;transform:translate3d(0,80px,0)!important}md-bottom-sheet.ng-leave-active{-webkit-transform:translate3d(0,100%,0)!important;transform:translate3d(0,100%,0)!important;transition:all .3s cubic-bezier(.55,0,.55,.2)}md-bottom-sheet .md-subheader{background-color:transparent;font-family:RobotoDraft,Roboto,'Helvetica Neue',sans-serif;line-height:56px;padding:0;white-space:nowrap}md-bottom-sheet md-inline-icon{display:inline-block;height:24px;width:24px;fill:#444}md-bottom-sheet md-list-item{display:-webkit-flex;display:-ms-flexbox;display:flex;outline:0}md-bottom-sheet md-list-item:hover{cursor:pointer}md-bottom-sheet.md-list md-list-item{padding:0;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:48px}md-bottom-sheet.md-list md-list-item div.md-icon-container{display:inline-block;height:24px;margin-right:32px}md-bottom-sheet.md-grid{padding-left:24px;padding-right:24px;padding-top:0}md-bottom-sheet.md-grid md-list{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;transition:all .5s;-webkit-align-items:center;-ms-flex-align:center;align-items:center}md-bottom-sheet.md-grid md-list-item{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-ms-flex-align:center;align-items:center;transition:all .5s;height:96px;margin-top:8px;margin-bottom:8px}@media screen and (max-width:600px){md-bottom-sheet.md-grid md-list-item{-webkit-flex:1 1 33.33333%;-ms-flex:1 1 33.33333%;flex:1 1 33.33333%;max-width:33.33333%}md-bottom-sheet.md-grid md-list-item:nth-of-type(3n+1){-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}md-bottom-sheet.md-grid md-list-item:nth-of-type(3n){-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}}@media screen and (min-width:600px) and (max-width:960px){md-bottom-sheet.md-grid md-list-item{-webkit-flex:1 1 25%;-ms-flex:1 1 25%;flex:1 1 25%;max-width:25%}}@media screen and (min-width:960px) and (max-width:1200px){md-bottom-sheet.md-grid md-list-item{-webkit-flex:1 1 16.66667%;-ms-flex:1 1 16.66667%;flex:1 1 16.66667%;max-width:16.66667%}}@media screen and (min-width:1200px){md-bottom-sheet.md-grid md-list-item{-webkit-flex:1 1 14.28571%;-ms-flex:1 1 14.28571%;flex:1 1 14.28571%;max-width:14.28571%}}md-bottom-sheet.md-grid md-list-item .md-list-item-content{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:48px;padding-bottom:16px}md-bottom-sheet.md-grid md-list-item .md-grid-item-content{border:1px solid transparent;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:80px}md-bottom-sheet.md-grid md-list-item .md-icon-container{display:inline-block;box-sizing:border-box;height:48px;width:48px;margin:0}md-bottom-sheet.md-grid md-list-item .md-grid-text{font-weight:400;line-height:16px;font-size:13px;margin:0;white-space:nowrap;width:64px;text-align:center;text-transform:none;padding-top:8px}@media screen and (-ms-high-contrast:active){md-bottom-sheet{border:1px solid #fff}}.md-button{box-sizing:border-box;color:currentColor;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;outline:0;border:0;display:inline-block;padding:0 6px;margin:6px 8px;line-height:36px;min-height:36px;background:0 0;white-space:nowrap;min-width:88px;text-align:center;text-transform:uppercase;font-weight:500;font-size:14px;font-style:inherit;font-variant:inherit;font-family:inherit;text-decoration:none;cursor:pointer;overflow:hidden;transition:box-shadow .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.md-button *,.md-button :after,.md-button :before{box-sizing:border-box}.md-button:focus{outline:0}.md-button:focus,.md-button:hover{text-decoration:none}.md-button.ng-hide,.md-button.ng-leave{transition:none}.md-button.md-cornered{border-radius:0}.md-button.md-icon{padding:0;background:0 0}.md-button.md-icon-button{margin:0 6px;height:48px;min-width:0;line-height:48px;padding-left:0;padding-right:0;width:48px;border-radius:50%}.md-button.md-icon-button .md-ripple-container{border-radius:50%;background-clip:padding-box;overflow:hidden;-webkit-mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC)}.md-button.md-fab{z-index:20;line-height:56px;min-width:0;width:56px;height:56px;vertical-align:middle;border-radius:50%;background-clip:padding-box;overflow:hidden;transition:.2s linear;transition-property:background-color,box-shadow}.md-button.md-fab.md-fab-bottom-right{top:auto;right:20px;bottom:20px;left:auto;position:absolute}.md-button.md-fab.md-fab-bottom-left{top:auto;right:auto;bottom:20px;left:20px;position:absolute}.md-button.md-fab.md-fab-top-right{top:20px;right:20px;bottom:auto;left:auto;position:absolute}.md-button.md-fab.md-fab-top-left{top:20px;right:auto;bottom:auto;left:20px;position:absolute}.md-button.md-fab .md-ripple-container{border-radius:50%;background-clip:padding-box;overflow:hidden;-webkit-mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC)}.md-button.md-fab md-icon{margin-top:0}.md-button.md-fab.md-mini{line-height:40px;width:40px;height:40px}.md-toast-open-top .md-button.md-fab-top-left,.md-toast-open-top .md-button.md-fab-top-right{-webkit-transform:translate3d(0,42px,0);transform:translate3d(0,42px,0)}.md-toast-open-top .md-button.md-fab-top-left:not([disabled]).md-focused,.md-toast-open-top .md-button.md-fab-top-left:not([disabled]):hover,.md-toast-open-top .md-button.md-fab-top-right:not([disabled]).md-focused,.md-toast-open-top .md-button.md-fab-top-right:not([disabled]):hover{-webkit-transform:translate3d(0,41px,0);transform:translate3d(0,41px,0)}.md-toast-open-bottom .md-button.md-fab-bottom-left,.md-toast-open-bottom .md-button.md-fab-bottom-right{-webkit-transform:translate3d(0,-42px,0);transform:translate3d(0,-42px,0)}.md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]).md-focused,.md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]):hover,.md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]).md-focused,.md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):hover{-webkit-transform:translate3d(0,-43px,0);transform:translate3d(0,-43px,0)}.md-button-group{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;width:100%}.md-button-group>.md-button{-webkit-flex:1;-ms-flex:1;flex:1;display:block;overflow:hidden;width:0;border-width:1px 0 1px 1px;border-radius:0;text-align:center;text-overflow:ellipsis;white-space:nowrap}.md-button-group>.md-button:first-child{border-radius:2px 0 0 2px}.md-button-group>.md-button:last-child{border-right-width:1px;border-radius:0 2px 2px 0}@media screen and (-ms-high-contrast:active){.md-button.md-fab,.md-button.md-raised{border:1px solid #fff}}md-card{box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin:8px;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084)}md-card>:not(md-card-content) img,md-card>img{width:100%}md-card md-card-content{padding:16px}md-card .md-actions{margin:0}md-card .md-actions .md-button{margin:8px 4px}md-card md-card-footer{padding:16px}@media screen and (-ms-high-contrast:active){md-card{border:1px solid #fff}}md-checkbox{box-sizing:border-box;display:block;margin:8px;white-space:nowrap;cursor:pointer;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-left:18px;padding-right:0;position:relative;line-height:26px;min-width:18px;min-height:18px}html[dir=rtl] md-checkbox{padding-left:0;padding-right:18px}md-checkbox *,md-checkbox :after,md-checkbox :before{box-sizing:border-box}md-checkbox.md-focused:not([disabled]) .md-container:before{left:-8px;top:-8px;right:-8px;bottom:-8px}md-checkbox.md-focused:not([disabled]):not(.md-checked) .md-container:before{background-color:rgba(0,0,0,.12)}md-checkbox .md-container{position:absolute;top:50%;display:inline-block;width:18px;height:18px;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:0;right:auto}html[dir=rtl] md-checkbox .md-container{left:auto;right:0}md-checkbox .md-container:before{background-color:transparent;border-radius:50%;content:'';position:absolute;display:block;height:auto;left:0;top:0;right:0;bottom:0;transition:all .5s;width:auto}md-checkbox .md-container:after{content:'';position:absolute;top:-10px;right:-10px;bottom:-10px;left:-10px}md-checkbox .md-container .md-ripple-container{position:absolute;display:block;width:auto;height:auto;left:-15px;top:-15px;right:-15px;bottom:-15px}md-checkbox .md-icon{transition:240ms;position:absolute;top:0;left:0;width:18px;height:18px;border-width:2px;border-style:solid;border-radius:2px}md-checkbox.md-checked .md-icon{border:none}md-checkbox[disabled]{cursor:no-drop}md-checkbox.md-checked .md-icon:after{-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;left:6px;top:2px;display:table;width:6px;height:12px;border-width:2px;border-style:solid;border-top:0;border-left:0;content:''}md-checkbox .md-label{position:relative;display:inline-block;vertical-align:middle;white-space:normal;pointer-events:none;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}md-checkbox .md-label span{margin-left:10px;margin-right:0}html[dir=rtl] md-checkbox .md-label span{margin-left:0;margin-right:10px}.md-contact-chips .md-chips .md-chip{padding:0 8px 0 0}.md-contact-chips .md-chips .md-chip .md-contact-avatar{float:left}.md-contact-chips .md-chips .md-chip .md-contact-avatar img{height:32px;border-radius:16px}.md-contact-chips .md-chips .md-chip .md-contact-name{display:inline-block;height:32px;margin-left:8px}.md-contact-suggestion{height:56px}.md-contact-suggestion img{height:40px;border-radius:20px;margin-top:8px}.md-contact-suggestion .md-contact-name{margin-left:8px;width:120px}.md-contact-suggestion .md-contact-email,.md-contact-suggestion .md-contact-name{display:inline-block;overflow:hidden;text-overflow:ellipsis}.md-contact-chips-suggestions li{height:100%}.md-chips{display:block;font-family:RobotoDraft,Roboto,'Helvetica Neue',sans-serif;font-size:13px;padding:0 0 8px;vertical-align:middle;cursor:text}.md-chips:after{content:'';display:table;clear:both}.md-chips .md-chip{cursor:default;border-radius:16px;display:block;height:32px;line-height:32px;margin:8px 8px 0 0;padding:0 8px 0 12px;float:left}.md-chips .md-chip .md-chip-content{display:block;padding-right:4px;float:left;white-space:nowrap}.md-chips .md-chip .md-chip-content:focus{outline:0}.md-chips .md-chip .md-chip-remove-container{display:inline-block;margin-right:-5px}.md-chips .md-chip .md-chip-remove{text-align:center;width:32px;height:32px;min-width:0;padding:0;background:0 0;border:none;box-shadow:none;margin:0;position:relative}.md-chips .md-chip .md-chip-remove md-icon{height:18px;width:18px;position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.md-chips .md-chip-input-container{display:block;line-height:32px;margin:8px 8px 0 0;padding:0 8px 0 12px;float:left}.md-chips .md-chip-input-container input:not([type]),.md-chips .md-chip-input-container input[type=email],.md-chips .md-chip-input-container input[type=number],.md-chips .md-chip-input-container input[type=tel],.md-chips .md-chip-input-container input[type=url],.md-chips .md-chip-input-container input[type=text]{border:0;height:32px;line-height:32px;padding:0}.md-chips .md-chip-input-container input:not([type]):focus,.md-chips .md-chip-input-container input[type=email]:focus,.md-chips .md-chip-input-container input[type=number]:focus,.md-chips .md-chip-input-container input[type=tel]:focus,.md-chips .md-chip-input-container input[type=url]:focus,.md-chips .md-chip-input-container input[type=text]:focus{outline:0}.md-chips .md-chip-input-container md-autocomplete,.md-chips .md-chip-input-container md-autocomplete-wrap{background:0 0}.md-chips .md-chip-input-container md-autocomplete md-autocomplete-wrap{box-shadow:none}.md-chips .md-chip-input-container input{border:0;height:32px;line-height:32px;padding:0}.md-chips .md-chip-input-container input:focus{outline:0}.md-chips .md-chip-input-container md-autocomplete,.md-chips .md-chip-input-container md-autocomplete-wrap{height:32px}.md-chips .md-chip-input-container md-autocomplete{box-shadow:none}.md-chips .md-chip-input-container md-autocomplete input{position:relative}.md-chips .md-chip-input-container:not(:first-child){margin:8px 8px 0 0}.md-chips .md-chip-input-container input{background:0 0;border-width:0}.md-chips md-autocomplete button{display:none}@media screen and (-ms-high-contrast:active){.md-chip-input-container,md-chip{border:1px solid #fff}.md-chip-input-container md-autocomplete{border:none}}md-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}md-content[md-scroll-y]{overflow-y:auto;overflow-x:hidden}md-content[md-scroll-x]{overflow-x:auto;overflow-y:hidden}md-content.autoScroll{-webkit-overflow-scrolling:auto}.md-dialog-is-showing{max-height:100%}.md-dialog-container{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:80}md-dialog{opacity:0;min-width:240px;max-width:80%;max-height:80%;position:relative;overflow:hidden;box-shadow:0 8px 10px -5px rgba(0,0,0,.14),0 16px 24px 2px rgba(0,0,0,.098),0 6px 30px 5px rgba(0,0,0,.084);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}md-dialog.transition-in{opacity:1;transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}md-dialog.transition-out{transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transform:translate3d(0,100%,0) scale(.2);transform:translate3d(0,100%,0) scale(.2)}md-dialog>form{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:auto}md-dialog md-dialog-content{-webkit-order:1;-ms-flex-order:1;order:1;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:24px;overflow:auto;-webkit-overflow-scrolling:touch}md-dialog md-dialog-content:not([layout=row])>:first-child:not(.md-subheader){margin-top:0}md-dialog md-dialog-content:focus{outline:0}md-dialog md-dialog-content .md-subheader{margin:0}md-dialog md-dialog-content .md-subheader.sticky-clone{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}md-dialog md-dialog-content.sticky-container{padding:0}md-dialog md-dialog-content.sticky-container>div{padding:0 24px 24px}md-dialog .md-actions{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-order:2;-ms-flex-order:2;order:2;box-sizing:border-box;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:0;padding-right:8px;padding-left:16px;min-height:52px}md-dialog .md-actions .md-button{margin:8px 0 8px 8px}md-dialog.md-content-overflow .md-actions{border-top-width:1px;border-top-style:solid}@media screen and (-ms-high-contrast:active){md-dialog{border:1px solid #fff}}md-divider{display:block;border-top-width:1px;border-top-style:solid;margin:0}md-divider[md-inset]{margin-left:80px}md-grid-list{box-sizing:border-box;display:block;position:relative}md-grid-list *,md-grid-list :after,md-grid-list :before{box-sizing:border-box}md-grid-list md-grid-tile{display:block;position:absolute}md-grid-list md-grid-tile figure{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;padding:0;margin:0}md-grid-list md-grid-tile md-grid-tile-footer,md-grid-list md-grid-tile md-grid-tile-header{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.18);overflow:hidden;position:absolute;left:0;right:0}md-grid-list md-grid-tile md-grid-tile-footer h3,md-grid-list md-grid-tile md-grid-tile-footer h4,md-grid-list md-grid-tile md-grid-tile-header h3,md-grid-list md-grid-tile md-grid-tile-header h4{font-weight:400;margin:0 0 0 16px}md-grid-list md-grid-tile md-grid-tile-footer h3,md-grid-list md-grid-tile md-grid-tile-header h3{font-size:14px}md-grid-list md-grid-tile md-grid-tile-footer h4,md-grid-list md-grid-tile md-grid-tile-header h4{font-size:12px}md-grid-list md-grid-tile md-grid-tile-header{top:0}md-grid-list md-grid-tile md-grid-tile-footer{bottom:0}@media screen and (-ms-high-contrast:active){md-grid-tile{border:1px solid #fff}md-grid-tile-footer{border-top:1px solid #fff}}md-icon{margin:auto;background-repeat:no-repeat no-repeat;display:inline-block;vertical-align:middle;fill:currentColor;height:24px;width:24px}md-icon svg{pointer-events:none}md-icon[md-font-icon]{line-height:1;width:auto}md-input-container{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:2px 2px 26px}md-input-container>md-icon{position:absolute;top:5px;left:2px}md-input-container>md-icon+input{margin-left:36px}md-input-container input[type=search],md-input-container input[type=email],md-input-container input[type=number],md-input-container input[type=tel],md-input-container input[type=url],md-input-container input[type=text],md-input-container input[type=password],md-input-container input[type=datetime],md-input-container input[type=datetime-local],md-input-container input[type=date],md-input-container input[type=month],md-input-container input[type=time],md-input-container input[type=week],md-input-container input[type=color],md-input-container textarea{-moz-appearance:none;-webkit-appearance:none}md-input-container input[type=datetime-local],md-input-container input[type=date],md-input-container input[type=month],md-input-container input[type=time],md-input-container input[type=week]{min-height:26px}md-input-container textarea{resize:none;overflow:hidden}md-input-container textarea.md-input{min-height:56px;-ms-flex-preferred-size:auto}md-input-container label{position:relative;top:-2px}md-input-container .md-placeholder:not(.md-select-label),md-input-container label:not(.md-no-float){-webkit-order:1;-ms-flex-order:1;order:1;pointer-events:none;-webkit-font-smoothing:antialiased;padding-left:2px;z-index:1;-webkit-transform:translate3d(0,28px,0) scale(1);transform:translate3d(0,28px,0) scale(1);transition:-webkit-transform cubic-bezier(.25,.8,.25,1) .25s;transition:transform cubic-bezier(.25,.8,.25,1) .25s;-webkit-transform-origin:left top;transform-origin:left top}html[dir=rtl] md-input-container .md-placeholder:not(.md-select-label),html[dir=rtl] md-input-container label:not(.md-no-float){-webkit-transform-origin:right top;transform-origin:right top}md-input-container .md-placeholder:not(.md-select-label){position:absolute;top:0;opacity:0;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;-webkit-transform:translate3d(0,30px,0);transform:translate3d(0,30px,0)}md-input-container.md-input-focused .md-placeholder{opacity:1;-webkit-transform:translate3d(0,24px,0);transform:translate3d(0,24px,0)}md-input-container.md-input-has-value .md-placeholder{transition:none;opacity:0}md-input-container:not(.md-input-has-value) input:not(:focus){color:transparent}md-input-container .md-input{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-order:2;-ms-flex-order:2;order:2;display:block;background:0 0;padding:2px 2px 1px;border-width:0 0 1px;line-height:26px;-ms-flex-preferred-size:26px;border-radius:0}md-input-container .md-input:focus{outline:0}md-input-container .md-input:invalid{outline:0;box-shadow:none}md-input-container [data-ng-messages],md-input-container [ng-messages],md-input-container [x-ng-messages],md-input-container data-ng-messages,md-input-container ng-messages,md-input-container x-ng-messages{-webkit-order:3;-ms-flex-order:3;order:3;position:relative}md-input-container .md-char-counter,md-input-container [data-ng-message],md-input-container [ng-message],md-input-container [x-ng-message],md-input-container data-ng-message,md-input-container ng-message,md-input-container x-ng-message{-webkit-font-smoothing:antialiased;position:absolute;font-size:12px;line-height:24px}md-input-container .md-char-counter:not(.md-char-counter),md-input-container [data-ng-message]:not(.md-char-counter),md-input-container [ng-message]:not(.md-char-counter),md-input-container [x-ng-message]:not(.md-char-counter),md-input-container data-ng-message:not(.md-char-counter),md-input-container ng-message:not(.md-char-counter),md-input-container x-ng-message:not(.md-char-counter){padding-right:30px}md-input-container .md-char-counter.ng-enter,md-input-container [data-ng-message].ng-enter,md-input-container [ng-message].ng-enter,md-input-container [x-ng-message].ng-enter,md-input-container data-ng-message.ng-enter,md-input-container ng-message.ng-enter,md-input-container x-ng-message.ng-enter{transition:all .4s cubic-bezier(.25,.8,.25,1);transition-delay:.2s}md-input-container .md-char-counter.ng-leave,md-input-container [data-ng-message].ng-leave,md-input-container [ng-message].ng-leave,md-input-container [x-ng-message].ng-leave,md-input-container data-ng-message.ng-leave,md-input-container ng-message.ng-leave,md-input-container x-ng-message.ng-leave{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-input-container .md-char-counter.ng-enter,md-input-container .md-char-counter.ng-leave.ng-leave-active,md-input-container [data-ng-message].ng-enter,md-input-container [data-ng-message].ng-leave.ng-leave-active,md-input-container [ng-message].ng-enter,md-input-container [ng-message].ng-leave.ng-leave-active,md-input-container [x-ng-message].ng-enter,md-input-container [x-ng-message].ng-leave.ng-leave-active,md-input-container data-ng-message.ng-enter,md-input-container data-ng-message.ng-leave.ng-leave-active,md-input-container ng-message.ng-enter,md-input-container ng-message.ng-leave.ng-leave-active,md-input-container x-ng-message.ng-enter,md-input-container x-ng-message.ng-leave.ng-leave-active{opacity:0;-webkit-transform:translate3d(0,-20%,0);transform:translate3d(0,-20%,0)}md-input-container .md-char-counter.ng-enter.ng-enter-active,md-input-container .md-char-counter.ng-leave,md-input-container [data-ng-message].ng-enter.ng-enter-active,md-input-container [data-ng-message].ng-leave,md-input-container [ng-message].ng-enter.ng-enter-active,md-input-container [ng-message].ng-leave,md-input-container [x-ng-message].ng-enter.ng-enter-active,md-input-container [x-ng-message].ng-leave,md-input-container data-ng-message.ng-enter.ng-enter-active,md-input-container data-ng-message.ng-leave,md-input-container ng-message.ng-enter.ng-enter-active,md-input-container ng-message.ng-leave,md-input-container x-ng-message.ng-enter.ng-enter-active,md-input-container x-ng-message.ng-leave{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-input-container .md-char-counter{bottom:2px;right:2px}md-input-container.md-input-focused label:not(.md-no-float),md-input-container.md-input-has-value label:not(.md-no-float){-webkit-transform:translate3d(0,6px,0) scale(.75);transform:translate3d(0,6px,0) scale(.75)}md-input-container .md-input.ng-invalid.ng-dirty,md-input-container.md-input-focused .md-input{padding-bottom:0;border-width:0 0 2px}[disabled] md-input-container .md-input,md-input-container .md-input[disabled]{background-position:0 bottom;background-size:4px 1px;background-repeat:repeat-x;margin-bottom:-1px}md-input-container.md-icon-float{margin-top:-16px;transition:margin-top .5s cubic-bezier(.25,.8,.25,1)}md-input-container.md-icon-float>label{pointer-events:none;position:absolute;margin-left:36px}md-input-container.md-icon-float>md-icon{top:26px;left:2px}md-input-container.md-icon-float>md-icon+input{margin-left:36px}md-input-container.md-icon-float>input{padding-top:24px}md-input-container.md-icon-float.md-input-focused,md-input-container.md-icon-float.md-input-has-value{margin-top:-8px}md-input-container.md-icon-float.md-input-focused label,md-input-container.md-icon-float.md-input-has-value label{-webkit-transform:translate3d(0,6px,0) scale(.75);transform:translate3d(0,6px,0) scale(.75);transition:-webkit-transform cubic-bezier(.25,.8,.25,1) .5s;transition:transform cubic-bezier(.25,.8,.25,1) .5s}@media screen and (-ms-high-contrast:active){md-input-container.md-default-theme>md-icon{fill:#fff}}md-list{display:block;padding:8px 0}md-list .md-subheader{line-height:.75em}md-list-item.md-proxy-focus.md-focused .md-no-style{transition:background-color .15s linear}md-list-item .md-no-style,md-list-item.md-no-proxy{position:relative;padding:0 16px;-webkit-flex:1;-ms-flex:1;flex:1}md-list-item .md-no-style.md-button,md-list-item.md-no-proxy.md-button{font-size:inherit;height:inherit;text-align:left;text-transform:none;width:100%;white-space:normal}md-list-item .md-no-style:focus,md-list-item.md-no-proxy:focus{outline:0}md-list-item.md-with-secondary{position:relative}md-list-item.md-clickable:hover{cursor:pointer}md-list-item md-divider{position:absolute;bottom:0;left:0;width:100%}md-list-item md-divider[md-inset]{left:96px;width:calc(100% - 96px);margin:0}md-list-item,md-list-item .md-list-item-inner{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-height:48px}md-list-item .md-list-item-inner>div.md-primary>md-icon,md-list-item .md-list-item-inner>div.md-secondary>md-icon,md-list-item .md-list-item-inner>md-icon.md-secondary,md-list-item .md-list-item-inner>md-icon:first-child,md-list-item>div.md-primary>md-icon,md-list-item>div.md-secondary>md-icon,md-list-item>md-icon.md-secondary,md-list-item>md-icon:first-child{width:24px;margin-top:16px;margin-bottom:12px;box-sizing:content-box}md-list-item .md-list-item-inner md-checkbox.md-secondary,md-list-item .md-list-item-inner>div.md-primary>md-checkbox,md-list-item .md-list-item-inner>div.md-secondary>md-checkbox,md-list-item .md-list-item-inner>md-checkbox:first-child,md-list-item md-checkbox.md-secondary,md-list-item>div.md-primary>md-checkbox,md-list-item>div.md-secondary>md-checkbox,md-list-item>md-checkbox:first-child{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}md-list-item .md-list-item-inner md-checkbox.md-secondary .md-label,md-list-item .md-list-item-inner>div.md-primary>md-checkbox .md-label,md-list-item .md-list-item-inner>div.md-secondary>md-checkbox .md-label,md-list-item .md-list-item-inner>md-checkbox:first-child .md-label,md-list-item md-checkbox.md-secondary .md-label,md-list-item>div.md-primary>md-checkbox .md-label,md-list-item>div.md-secondary>md-checkbox .md-label,md-list-item>md-checkbox:first-child .md-label{display:none}md-list-item .md-list-item-inner>md-icon:first-child,md-list-item>md-icon:first-child{margin-right:32px}md-list-item .md-list-item-inner>md-checkbox:first-child,md-list-item>md-checkbox:first-child{width:24px;margin-left:3px;margin-right:29px}md-list-item .md-list-item-inner>.md-avatar:first-child,md-list-item>.md-avatar:first-child{width:40px;height:40px;margin-top:8px;margin-bottom:8px;margin-right:16px;border-radius:50%;box-sizing:content-box}md-list-item .md-list-item-inner md-checkbox.md-secondary,md-list-item .md-list-item-inner md-switch.md-secondary,md-list-item md-checkbox.md-secondary,md-list-item md-switch.md-secondary{margin-right:0;margin-top:0;margin-bottom:0}md-list-item .md-list-item-inner button.md-button.md-secondary-container,md-list-item button.md-button.md-secondary-container{background-color:transparent;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-radius:50%;margin:0;min-width:0}md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple,md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple-container,md-list-item button.md-button.md-secondary-container .md-ripple,md-list-item button.md-button.md-secondary-container .md-ripple-container{border-radius:50%}md-list-item .md-list-item-inner .md-secondary,md-list-item .md-list-item-inner .md-secondary-container,md-list-item .md-secondary,md-list-item .md-secondary-container{margin-left:16px;position:absolute;right:16px;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}md-list-item .md-list-item-inner>.md-button.md-secondary-container>.md-secondary,md-list-item>.md-button.md-secondary-container>.md-secondary{margin-left:0;position:static}md-list-item .md-list-item-inner>.md-list-item-inner>p,md-list-item .md-list-item-inner>p,md-list-item>.md-list-item-inner>p,md-list-item>p{-webkit-flex:1;-ms-flex:1;flex:1;margin:0}md-list-item.md-2-line,md-list-item.md-2-line>.md-no-style,md-list-item.md-3-line,md-list-item.md-3-line>.md-no-style{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}md-list-item.md-2-line .md-list-item-text,md-list-item.md-2-line>.md-no-style .md-list-item-text,md-list-item.md-3-line .md-list-item-text,md-list-item.md-3-line>.md-no-style .md-list-item-text{-webkit-flex:1;-ms-flex:1;flex:1;padding:16px 0;text-overflow:ellipsis}md-list-item.md-2-line .md-list-item-text.md-offset,md-list-item.md-2-line>.md-no-style .md-list-item-text.md-offset,md-list-item.md-3-line .md-list-item-text.md-offset,md-list-item.md-3-line>.md-no-style .md-list-item-text.md-offset{margin-left:56px}md-list-item.md-2-line .md-list-item-text h3,md-list-item.md-2-line>.md-no-style .md-list-item-text h3,md-list-item.md-3-line .md-list-item-text h3,md-list-item.md-3-line>.md-no-style .md-list-item-text h3{margin:0 0 6px;line-height:.75em}md-list-item.md-2-line .md-list-item-text h4,md-list-item.md-2-line>.md-no-style .md-list-item-text h4,md-list-item.md-3-line .md-list-item-text h4,md-list-item.md-3-line>.md-no-style .md-list-item-text h4{font-weight:400;margin:10px 0 5px;line-height:.75em}md-list-item.md-2-line .md-list-item-text p,md-list-item.md-2-line>.md-no-style .md-list-item-text p,md-list-item.md-3-line .md-list-item-text p,md-list-item.md-3-line>.md-no-style .md-list-item-text p{margin:0;line-height:1.6em}md-list-item.md-2-line>.md-avatar:first-child,md-list-item.md-2-line>.md-no-style>.md-avatar:first-child{margin-top:12px}md-list-item.md-2-line>.md-no-style>md-icon:first-child,md-list-item.md-2-line>md-icon:first-child{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}md-list-item.md-2-line .md-list-item-text,md-list-item.md-2-line>.md-no-style .md-list-item-text{-webkit-flex:1;-ms-flex:1;flex:1;padding-top:19px}md-list-item.md-3-line>.md-avatar:first-child,md-list-item.md-3-line>.md-no-style>.md-avatar:first-child,md-list-item.md-3-line>.md-no-style>md-icon:first-child,md-list-item.md-3-line>md-icon:first-child{margin-top:16px}@-webkit-keyframes outer-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes outer-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes left-wobble{0%,100%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}}@keyframes left-wobble{0%,100%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}}@-webkit-keyframes right-wobble{0%,100%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}}@keyframes right-wobble{0%,100%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}}@-webkit-keyframes sporadic-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}100%{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@keyframes sporadic-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}100%{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}md-progress-circular{width:50px;height:50px;display:block;position:relative;padding-top:0!important;margin-bottom:0!important;overflow:hidden}md-progress-circular .md-inner{width:50px;height:50px;position:relative}md-progress-circular .md-inner .md-gap{position:absolute;left:24px;right:24px;top:0;bottom:0;border-top:5px solid #000;box-sizing:border-box}md-progress-circular .md-inner .md-left,md-progress-circular .md-inner .md-right{position:absolute;top:0;height:50px;width:25px;overflow:hidden}md-progress-circular .md-inner .md-left .md-half-circle,md-progress-circular .md-inner .md-right .md-half-circle{position:absolute;top:0;width:50px;height:50px;box-sizing:border-box;border:5px solid #000;border-bottom-color:transparent;border-radius:50%}md-progress-circular .md-inner .md-left{left:0}md-progress-circular .md-inner .md-left .md-half-circle{left:0;border-right-color:transparent}md-progress-circular .md-inner .md-right{right:0}md-progress-circular .md-inner .md-right .md-half-circle{right:0;border-left-color:transparent}md-progress-circular[value="0"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="0"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}md-progress-circular[value="0"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="1"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="1"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-131.4deg);transform:rotate(-131.4deg)}md-progress-circular[value="1"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="2"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="2"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-127.8deg);transform:rotate(-127.8deg)}md-progress-circular[value="2"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="3"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="3"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-124.2deg);transform:rotate(-124.2deg)}md-progress-circular[value="3"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="4"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="4"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-120.6deg);transform:rotate(-120.6deg)}md-progress-circular[value="4"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="5"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="5"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-117deg);transform:rotate(-117deg)}md-progress-circular[value="5"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="6"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="6"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-113.4deg);transform:rotate(-113.4deg)}md-progress-circular[value="6"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="7"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="7"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-109.8deg);transform:rotate(-109.8deg)}md-progress-circular[value="7"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="8"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="8"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-106.2deg);transform:rotate(-106.2deg)}md-progress-circular[value="8"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="9"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="9"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-102.6deg);transform:rotate(-102.6deg)}md-progress-circular[value="9"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="10"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="10"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-99deg);transform:rotate(-99deg)}md-progress-circular[value="10"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="11"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="11"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-95.4deg);transform:rotate(-95.4deg)}md-progress-circular[value="11"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="12"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="12"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-91.8deg);transform:rotate(-91.8deg)}md-progress-circular[value="12"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="13"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="13"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-88.2deg);transform:rotate(-88.2deg)}md-progress-circular[value="13"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="14"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="14"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-84.6deg);transform:rotate(-84.6deg)}md-progress-circular[value="14"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="15"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="15"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-81deg);transform:rotate(-81deg)}md-progress-circular[value="15"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="16"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="16"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-77.4deg);transform:rotate(-77.4deg)}md-progress-circular[value="16"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="17"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="17"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-73.8deg);transform:rotate(-73.8deg)}md-progress-circular[value="17"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="18"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="18"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-70.2deg);transform:rotate(-70.2deg)}md-progress-circular[value="18"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="19"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="19"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-66.6deg);transform:rotate(-66.6deg)}md-progress-circular[value="19"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="20"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="20"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-63deg);transform:rotate(-63deg)}md-progress-circular[value="20"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="21"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="21"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-59.4deg);transform:rotate(-59.4deg)}md-progress-circular[value="21"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="22"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="22"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-55.8deg);transform:rotate(-55.8deg)}md-progress-circular[value="22"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="23"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="23"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-52.2deg);transform:rotate(-52.2deg)}md-progress-circular[value="23"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="24"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="24"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-48.6deg);transform:rotate(-48.6deg)}md-progress-circular[value="24"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="25"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="25"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}md-progress-circular[value="25"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="26"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="26"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-41.4deg);transform:rotate(-41.4deg)}md-progress-circular[value="26"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="27"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="27"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-37.8deg);transform:rotate(-37.8deg)}md-progress-circular[value="27"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="28"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="28"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-34.2deg);transform:rotate(-34.2deg)}md-progress-circular[value="28"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="29"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="29"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-30.6deg);transform:rotate(-30.6deg)}md-progress-circular[value="29"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="30"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="30"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-27deg);transform:rotate(-27deg)}md-progress-circular[value="30"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="31"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="31"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-23.4deg);transform:rotate(-23.4deg)}md-progress-circular[value="31"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="32"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="32"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-19.8deg);transform:rotate(-19.8deg)}md-progress-circular[value="32"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="33"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="33"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-16.2deg);transform:rotate(-16.2deg)}md-progress-circular[value="33"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="34"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="34"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-12.6deg);transform:rotate(-12.6deg)}md-progress-circular[value="34"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="35"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="35"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-9deg);transform:rotate(-9deg)}md-progress-circular[value="35"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="36"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="36"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-5.4deg);transform:rotate(-5.4deg)}md-progress-circular[value="36"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="37"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="37"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-1.8deg);transform:rotate(-1.8deg)}md-progress-circular[value="37"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="38"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="38"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(1.8deg);transform:rotate(1.8deg)}md-progress-circular[value="38"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="39"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="39"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(5.4deg);transform:rotate(5.4deg)}md-progress-circular[value="39"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="40"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="40"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(9deg);transform:rotate(9deg)}md-progress-circular[value="40"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="41"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="41"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(12.6deg);transform:rotate(12.6deg)}md-progress-circular[value="41"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="42"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="42"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(16.2deg);transform:rotate(16.2deg)}md-progress-circular[value="42"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="43"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="43"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(19.8deg);transform:rotate(19.8deg)}md-progress-circular[value="43"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="44"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="44"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(23.4deg);transform:rotate(23.4deg)}md-progress-circular[value="44"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="45"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="45"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(27deg);transform:rotate(27deg)}md-progress-circular[value="45"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="46"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="46"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(30.6deg);transform:rotate(30.6deg)}md-progress-circular[value="46"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="47"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="47"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(34.2deg);transform:rotate(34.2deg)}md-progress-circular[value="47"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="48"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="48"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(37.8deg);transform:rotate(37.8deg)}md-progress-circular[value="48"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="49"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="49"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(41.4deg);transform:rotate(41.4deg)}md-progress-circular[value="49"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="50"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="50"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="50"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="51"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(138.6deg);transform:rotate(138.6deg)}md-progress-circular[value="51"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="51"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="52"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(142.2deg);transform:rotate(142.2deg)}md-progress-circular[value="52"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="52"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="53"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(145.8deg);transform:rotate(145.8deg)}md-progress-circular[value="53"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="53"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="54"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(149.4deg);transform:rotate(149.4deg)}md-progress-circular[value="54"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="54"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="55"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(153deg);transform:rotate(153deg)}md-progress-circular[value="55"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="55"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="56"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(156.6deg);transform:rotate(156.6deg)}md-progress-circular[value="56"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="56"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="57"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(160.2deg);transform:rotate(160.2deg)}md-progress-circular[value="57"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="57"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="58"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(163.8deg);transform:rotate(163.8deg)}md-progress-circular[value="58"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="58"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="59"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(167.4deg);transform:rotate(167.4deg)}md-progress-circular[value="59"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="59"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="60"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(171deg);transform:rotate(171deg)}md-progress-circular[value="60"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="60"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="61"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(174.6deg);transform:rotate(174.6deg)}md-progress-circular[value="61"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="61"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="62"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(178.2deg);transform:rotate(178.2deg)}md-progress-circular[value="62"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="62"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="63"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(181.8deg);transform:rotate(181.8deg)}md-progress-circular[value="63"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="63"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="64"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(185.4deg);transform:rotate(185.4deg)}md-progress-circular[value="64"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="64"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="65"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(189deg);transform:rotate(189deg)}md-progress-circular[value="65"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="65"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="66"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(192.6deg);transform:rotate(192.6deg)}md-progress-circular[value="66"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="66"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="67"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(196.2deg);transform:rotate(196.2deg)}md-progress-circular[value="67"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="67"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="68"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(199.8deg);transform:rotate(199.8deg)}md-progress-circular[value="68"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="68"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="69"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(203.4deg);transform:rotate(203.4deg)}md-progress-circular[value="69"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="69"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="70"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(207deg);transform:rotate(207deg)}md-progress-circular[value="70"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="70"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="71"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(210.6deg);transform:rotate(210.6deg)}md-progress-circular[value="71"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="71"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="72"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(214.2deg);transform:rotate(214.2deg)}md-progress-circular[value="72"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="72"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="73"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(217.8deg);transform:rotate(217.8deg)}md-progress-circular[value="73"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="73"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="74"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(221.4deg);transform:rotate(221.4deg)}md-progress-circular[value="74"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="74"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="75"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(225deg);transform:rotate(225deg)}md-progress-circular[value="75"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="75"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="76"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(228.6deg);transform:rotate(228.6deg)}md-progress-circular[value="76"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="76"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="77"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(232.2deg);transform:rotate(232.2deg)}md-progress-circular[value="77"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="77"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="78"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(235.8deg);transform:rotate(235.8deg)}md-progress-circular[value="78"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="78"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="79"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(239.4deg);transform:rotate(239.4deg)}md-progress-circular[value="79"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="79"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="80"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(243deg);transform:rotate(243deg)}md-progress-circular[value="80"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="80"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="81"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(246.6deg);transform:rotate(246.6deg)}md-progress-circular[value="81"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="81"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="82"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(250.2deg);transform:rotate(250.2deg)}md-progress-circular[value="82"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="82"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="83"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(253.8deg);transform:rotate(253.8deg)}md-progress-circular[value="83"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="83"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="84"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(257.4deg);transform:rotate(257.4deg)}md-progress-circular[value="84"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="84"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="85"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(261deg);transform:rotate(261deg)}md-progress-circular[value="85"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="85"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="86"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(264.6deg);transform:rotate(264.6deg)}md-progress-circular[value="86"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="86"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="87"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(268.2deg);transform:rotate(268.2deg)}md-progress-circular[value="87"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="87"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="88"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(271.8deg);transform:rotate(271.8deg)}md-progress-circular[value="88"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="88"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="89"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(275.4deg);transform:rotate(275.4deg)}md-progress-circular[value="89"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="89"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="90"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(279deg);transform:rotate(279deg)}md-progress-circular[value="90"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="90"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="91"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(282.6deg);transform:rotate(282.6deg)}md-progress-circular[value="91"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="91"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="92"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(286.2deg);transform:rotate(286.2deg)}md-progress-circular[value="92"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="92"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="93"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(289.8deg);transform:rotate(289.8deg)}md-progress-circular[value="93"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="93"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="94"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(293.4deg);transform:rotate(293.4deg)}md-progress-circular[value="94"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="94"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="95"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(297deg);transform:rotate(297deg)}md-progress-circular[value="95"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="95"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="96"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(300.6deg);transform:rotate(300.6deg)}md-progress-circular[value="96"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="96"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="97"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(304.2deg);transform:rotate(304.2deg)}md-progress-circular[value="97"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="97"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="98"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(307.8deg);transform:rotate(307.8deg)}md-progress-circular[value="98"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="98"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="99"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(311.4deg);transform:rotate(311.4deg)}md-progress-circular[value="99"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="99"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="100"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(315deg);transform:rotate(315deg)}md-progress-circular[value="100"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="100"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper{-webkit-animation:outer-rotate 2.91667s linear infinite;animation:outer-rotate 2.91667s linear infinite}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner{-webkit-animation:sporadic-rotate 5.25s cubic-bezier(.35,0,.25,1) infinite;animation:sporadic-rotate 5.25s cubic-bezier(.35,0,.25,1) infinite}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle,md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-duration:1.3125s;animation-duration:1.3125s;-webkit-animation-timing-function:cubic-bezier(.35,0,.25,1);animation-timing-function:cubic-bezier(.35,0,.25,1)}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle{-webkit-animation-name:left-wobble;animation-name:left-wobble}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle{-webkit-animation-name:right-wobble;animation-name:right-wobble}.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper,.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner,md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper,md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner{-webkit-animation:none;animation:none}.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle,.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle,md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle,md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle{-webkit-animation-name:none;animation-name:none}md-progress-linear:not([md-mode=indeterminate]){display:block;width:100%;height:5px}md-progress-linear:not([md-mode=indeterminate]) .md-container{overflow:hidden;position:relative;height:5px;top:5px;-webkit-transform:translate(0,5px) scale(1,0);transform:translate(0,5px) scale(1,0);transition:all .3s linear}md-progress-linear:not([md-mode=indeterminate]) .md-container.md-ready{-webkit-transform:translate(0,0) scale(1,1);transform:translate(0,0) scale(1,1)}md-progress-linear:not([md-mode=indeterminate]) .md-bar{height:5px;position:absolute;width:100%}md-progress-linear:not([md-mode=indeterminate]) .md-bar1,md-progress-linear:not([md-mode=indeterminate]) .md-bar2{transition:all .2s linear}md-progress-linear:not([md-mode=indeterminate])[md-mode=determinate] .md-bar1{display:none}md-progress-linear:not([md-mode=indeterminate])[md-mode=buffer] .md-container{background-color:transparent!important}md-progress-linear:not([md-mode=indeterminate])[md-mode=buffer] .md-dashed:before{content:"";display:block;height:5px;width:100%;margin-top:0;position:absolute;background-color:transparent;background-size:10px 10px!important;background-position:0 -23px;-webkit-animation:buffer 3s infinite linear;animation:buffer 3s infinite linear}md-progress-linear:not([md-mode=indeterminate])[md-mode=query] .md-bar2{-webkit-animation:query .8s infinite cubic-bezier(.39,.575,.565,1);animation:query .8s infinite cubic-bezier(.39,.575,.565,1)}md-progress-linear[md-mode=indeterminate]{display:block;width:100%;height:5px;position:relative}md-progress-linear[md-mode=indeterminate] .md-container{width:100%;overflow:hidden;position:relative;height:5px;top:5px;transition:all .3s linear}md-progress-linear[md-mode=indeterminate] .md-container .md-bar{height:5px;left:0;width:80%;position:absolute;top:0;bottom:0}md-progress-linear[md-mode=indeterminate] .md-container .md-bar1{-webkit-animation:md-progress-linear-indeterminate-scale-1 4s infinite,md-progress-linear-indeterminate-1 4s infinite;animation:md-progress-linear-indeterminate-scale-1 4s infinite,md-progress-linear-indeterminate-1 4s infinite}md-progress-linear[md-mode=indeterminate] .md-container .md-bar2{-webkit-animation:md-progress-linear-indeterminate-scale-2 4s infinite,md-progress-linear-indeterminate-2 4s infinite;animation:md-progress-linear-indeterminate-scale-2 4s infinite,md-progress-linear-indeterminate-2 4s infinite}@-webkit-keyframes query{0%{opacity:1;-webkit-transform:translateX(35%) scale(.3,1);transform:translateX(35%) scale(.3,1)}100%{opacity:0;-webkit-transform:translateX(-50%) scale(0,1);transform:translateX(-50%) scale(0,1)}}@keyframes query{0%{opacity:1;-webkit-transform:translateX(35%) scale(.3,1);transform:translateX(35%) scale(.3,1)}100%{opacity:0;-webkit-transform:translateX(-50%) scale(0,1);transform:translateX(-50%) scale(0,1)}}@-webkit-keyframes buffer{0%{opacity:1;background-position:0 -23px}50%{opacity:0}100%{opacity:1;background-position:-200px -23px}}@keyframes buffer{0%{opacity:1;background-position:0 -23px}50%{opacity:0}100%{opacity:1;background-position:-200px -23px}}@-webkit-keyframes md-progress-linear-indeterminate-scale-1{0%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:linear;animation-timing-function:linear}36.6%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);animation-timing-function:cubic-bezier(.33473,.12482,.78584,1)}69.15%{-webkit-transform:scaleX(.83);transform:scaleX(.83);-webkit-animation-timing-function:cubic-bezier(.22573,0,.23365,1.37098);animation-timing-function:cubic-bezier(.22573,0,.23365,1.37098)}100%{-webkit-transform:scaleX(.1);transform:scaleX(.1)}}@keyframes md-progress-linear-indeterminate-scale-1{0%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:linear;animation-timing-function:linear}36.6%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);animation-timing-function:cubic-bezier(.33473,.12482,.78584,1)}69.15%{-webkit-transform:scaleX(.83);transform:scaleX(.83);-webkit-animation-timing-function:cubic-bezier(.22573,0,.23365,1.37098);animation-timing-function:cubic-bezier(.22573,0,.23365,1.37098)}100%{-webkit-transform:scaleX(.1);transform:scaleX(.1)}}@-webkit-keyframes md-progress-linear-indeterminate-1{0%{left:-105.16667%;-webkit-animation-timing-function:linear;animation-timing-function:linear}20%{left:-105.16667%;-webkit-animation-timing-function:cubic-bezier(.5,0,.70173,.49582);animation-timing-function:cubic-bezier(.5,0,.70173,.49582)}69.15%{left:21.5%;-webkit-animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635)}100%{left:95.44444%}}@keyframes md-progress-linear-indeterminate-1{0%{left:-105.16667%;-webkit-animation-timing-function:linear;animation-timing-function:linear}20%{left:-105.16667%;-webkit-animation-timing-function:cubic-bezier(.5,0,.70173,.49582);animation-timing-function:cubic-bezier(.5,0,.70173,.49582)}69.15%{left:21.5%;-webkit-animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635)}100%{left:95.44444%}}@-webkit-keyframes md-progress-linear-indeterminate-scale-2{0%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:cubic-bezier(.20503,.05705,.57661,.45397);animation-timing-function:cubic-bezier(.20503,.05705,.57661,.45397)}19.15%{-webkit-transform:scaleX(.57);transform:scaleX(.57);-webkit-animation-timing-function:cubic-bezier(.15231,.19643,.64837,1.00432);animation-timing-function:cubic-bezier(.15231,.19643,.64837,1.00432)}44.15%{-webkit-transform:scaleX(.91);transform:scaleX(.91);-webkit-animation-timing-function:cubic-bezier(.25776,-.00316,.21176,1.38179);animation-timing-function:cubic-bezier(.25776,-.00316,.21176,1.38179)}100%{-webkit-transform:scaleX(.1);transform:scaleX(.1)}}@keyframes md-progress-linear-indeterminate-scale-2{0%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:cubic-bezier(.20503,.05705,.57661,.45397);animation-timing-function:cubic-bezier(.20503,.05705,.57661,.45397)}19.15%{-webkit-transform:scaleX(.57);transform:scaleX(.57);-webkit-animation-timing-function:cubic-bezier(.15231,.19643,.64837,1.00432);animation-timing-function:cubic-bezier(.15231,.19643,.64837,1.00432)}44.15%{-webkit-transform:scaleX(.91);transform:scaleX(.91);-webkit-animation-timing-function:cubic-bezier(.25776,-.00316,.21176,1.38179);animation-timing-function:cubic-bezier(.25776,-.00316,.21176,1.38179)}100%{-webkit-transform:scaleX(.1);transform:scaleX(.1)}}@-webkit-keyframes md-progress-linear-indeterminate-2{0%{left:-54.88889%;-webkit-animation-timing-function:cubic-bezier(.15,0,.51506,.40968);animation-timing-function:cubic-bezier(.15,0,.51506,.40968)}25%{left:-17.25%;-webkit-animation-timing-function:cubic-bezier(.31033,.28406,.8,.73372);animation-timing-function:cubic-bezier(.31033,.28406,.8,.73372)}48.35%{left:29.5%;-webkit-animation-timing-function:cubic-bezier(.4,.62703,.6,.90203);animation-timing-function:cubic-bezier(.4,.62703,.6,.90203)}100%{left:117.38889%}}@keyframes md-progress-linear-indeterminate-2{0%{left:-54.88889%;-webkit-animation-timing-function:cubic-bezier(.15,0,.51506,.40968);animation-timing-function:cubic-bezier(.15,0,.51506,.40968)}25%{left:-17.25%;-webkit-animation-timing-function:cubic-bezier(.31033,.28406,.8,.73372);animation-timing-function:cubic-bezier(.31033,.28406,.8,.73372)}48.35%{left:29.5%;-webkit-animation-timing-function:cubic-bezier(.4,.62703,.6,.90203);animation-timing-function:cubic-bezier(.4,.62703,.6,.90203)}100%{left:117.38889%}}.md-switch-thumb,md-radio-button{box-sizing:border-box;display:block;margin:15px;white-space:nowrap;cursor:pointer}.md-switch-thumb *,.md-switch-thumb :after,.md-switch-thumb :before,md-radio-button *,md-radio-button :after,md-radio-button :before{box-sizing:border-box}.md-switch-thumb input,md-radio-button input{display:none}.md-switch-thumb .md-container,md-radio-button .md-container{position:relative;top:4px;display:inline-block;width:16px;height:16px;cursor:pointer}.md-switch-thumb .md-container .md-ripple-container,md-radio-button .md-container .md-ripple-container{position:absolute;display:block;width:48px;height:48px;left:-16px;top:-16px}.md-switch-thumb .md-container:before,md-radio-button .md-container:before{background-color:transparent;border-radius:50%;content:'';position:absolute;display:block;height:auto;left:0;top:0;right:0;bottom:0;transition:all .5s;width:auto}.md-switch-thumb .md-off,md-radio-button .md-off{position:absolute;top:0;left:0;width:16px;height:16px;border:2px solid;border-radius:50%;transition:border-color ease .28s}.md-switch-thumb .md-on,md-radio-button .md-on{position:absolute;top:0;left:0;width:16px;height:16px;border-radius:50%;transition:-webkit-transform ease .28s;transition:transform ease .28s;-webkit-transform:scale(0);transform:scale(0)}.md-switch-thumb.md-checked .md-on,md-radio-button.md-checked .md-on{-webkit-transform:scale(.5);transform:scale(.5)}.md-switch-thumb .md-label,md-radio-button .md-label{position:relative;display:inline-block;margin-left:10px;margin-right:10px;vertical-align:middle;white-space:normal;pointer-events:none;width:auto}.md-switch-thumb .circle,md-radio-button .circle{border-radius:50%}md-radio-group:focus{outline:0}md-radio-group.md-focused .md-checked .md-container:before{left:-8px;top:-8px;right:-8px;bottom:-8px}@media screen and (-ms-high-contrast:active){md-radio-button.md-default-theme .md-on{background-color:#fff}}.md-select-menu-container{position:fixed;left:0;top:0;z-index:99;opacity:0}.md-select-menu-container:not(.md-clickable){pointer-events:none}.md-select-menu-container md-progress-circular{display:table;margin:24px auto!important}.md-select-menu-container.md-active{opacity:1}.md-select-menu-container.md-active md-select-menu{transition:-webkit-transform all .4s cubic-bezier(.25,.8,.25,1);transition:transform all .4s cubic-bezier(.25,.8,.25,1);transition-duration:200ms}.md-select-menu-container.md-active md-select-menu>*{opacity:1;transition:all .3s cubic-bezier(.55,0,.55,.2);transition-duration:200ms;transition-delay:100ms}.md-select-menu-container.md-leave{opacity:0;transition:all .3s cubic-bezier(.55,0,.55,.2);transition-duration:250ms}md-input-container>md-select{margin:3px 0 0}md-select{padding:24px 2px 26px;display:-webkit-flex;display:-ms-flexbox;display:flex}md-select:focus{outline:0}md-select[disabled]:hover{cursor:default}md-select:not([disabled]):hover{cursor:pointer}md-select:not([disabled]).ng-invalid.ng-dirty .md-select-label,md-select:not([disabled]):focus .md-select-label{border-bottom:2px solid;padding-bottom:0}.md-select-label{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:2px 2px 1px;border-bottom:1px solid;position:relative;box-sizing:content-box;min-width:64px;min-height:26px}.md-select-label :first-child{-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:calc(100% - 2*8px);-webkit-transform:translate3d(0,2px,0);transform:translate3d(0,2px,0)}.md-select-label .md-select-icon{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;text-align:end;width:24px;margin:0 4px;-webkit-transform:translate3d(0,1px,0);transform:translate3d(0,1px,0)}.md-select-label .md-select-icon:after{display:block;content:'\25BC';position:relative;top:2px;speak:none;-webkit-transform:scaleY(.6) scaleX(1);transform:scaleY(.6) scaleX(1)}md-select-menu{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);max-height:256px;min-height:48px;overflow-y:hidden;-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(1);transform:scale(1)}md-select-menu.md-reverse{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}md-select-menu:not(.md-overflow) md-content{padding-top:8px;padding-bottom:8px}html[dir=rtl] md-select-menu{-webkit-transform-origin:right top;transform-origin:right top}md-select-menu md-content{min-width:136px;min-height:48px;max-height:256px;overflow-y:auto}md-select-menu>*{opacity:0}md-option{cursor:pointer;position:relative;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:auto;padding:0 16px;height:48px}md-option:focus{outline:0}md-option .md-text{width:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px}md-optgroup{display:block}md-optgroup label{display:block;font-size:14px;text-transform:uppercase;padding:16px;font-weight:500}md-optgroup md-option{padding-left:32px;padding-right:32px}@media screen and (-ms-high-contrast:active){.md-select-backdrop{background-color:transparent}md-select-menu{border:1px solid #fff}}md-sidenav{box-sizing:border-box;position:absolute;width:304px;min-width:304px;max-width:304px;bottom:0;z-index:60;background-color:#fff;overflow:auto;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}md-sidenav *,md-sidenav :after,md-sidenav :before{box-sizing:border-box}md-sidenav ul{list-style:none}md-sidenav.md-closed{display:none}md-sidenav.md-closed-add,md-sidenav.md-closed-remove{display:-webkit-flex;display:-ms-flexbox;display:flex;transition:0s all}md-sidenav.md-closed-add.md-closed-add-active,md-sidenav.md-closed-remove.md-closed-remove-active{transition:all .4s cubic-bezier(.25,.8,.25,1)}md-sidenav.md-locked-open-add,md-sidenav.md-locked-open-remove{position:static;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-sidenav.md-locked-open{width:304px;min-width:304px;max-width:304px}md-sidenav.md-locked-open,md-sidenav.md-locked-open-remove.md-closed,md-sidenav.md-locked-open.md-closed,md-sidenav.md-locked-open.md-closed.md-sidenav-left,md-sidenav.md-locked-open.md-closed.md-sidenav-right{position:static;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-sidenav.md-locked-open-remove-active{transition:width .3s cubic-bezier(.55,0,.55,.2),min-width .3s cubic-bezier(.55,0,.55,.2);width:0;min-width:0}md-sidenav.md-closed.md-locked-open-add{width:0;min-width:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-sidenav.md-closed.md-locked-open-add-active{transition:width .3s cubic-bezier(.55,0,.55,.2),min-width .3s cubic-bezier(.55,0,.55,.2);width:304px;min-width:304px;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.md-sidenav-backdrop.md-locked-open{display:none}.md-sidenav-left,md-sidenav{left:0;top:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.md-sidenav-left.md-closed,md-sidenav.md-closed{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.md-sidenav-right{left:100%;top:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.md-sidenav-right.md-closed{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@media (max-width:360px){md-sidenav{width:85%}}@media screen and (-ms-high-contrast:active){.md-sidenav-left,md-sidenav{border-right:1px solid #fff}.md-sidenav-right{border-left:1px solid #fff}}@-webkit-keyframes sliderFocusThumb{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{opacity:0}}@keyframes sliderFocusThumb{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{opacity:0}}md-slider{height:48px;position:relative;display:block;margin-left:4px;margin-right:4px;padding:0}md-slider *,md-slider :after{box-sizing:border-box}md-slider .md-slider-wrapper{position:relative}md-slider .md-track-container{width:100%;position:absolute;top:23px;height:2px}md-slider .md-track{position:absolute;left:0;right:0;height:100%}md-slider .md-track-fill{transition:width .05s linear}md-slider .md-track-ticks{position:absolute;left:0;right:0;height:100%}md-slider .md-thumb-container{position:absolute;left:0;top:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);transition:left .1s linear}md-slider .md-thumb{z-index:1;position:absolute;left:-19px;top:5px;width:38px;height:38px;border-radius:38px;-webkit-transform:scale(.5);transform:scale(.5);transition:all .1s linear}md-slider .md-thumb:after{content:'';position:absolute;left:3px;top:3px;width:32px;height:32px;border-radius:32px;border-width:3px;border-style:solid}md-slider .md-sign{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:absolute;left:-14px;top:-20px;width:28px;height:28px;border-radius:28px;-webkit-transform:scale(.4) translate3d(0,70px,0);transform:scale(.4) translate3d(0,70px,0);transition:all .2s ease-in-out}md-slider .md-sign:after{position:absolute;content:'';left:0;border-radius:16px;top:19px;border-left:14px solid transparent;border-right:14px solid transparent;border-top-width:16px;border-top-style:solid;opacity:0;-webkit-transform:translate3d(0,-8px,0);transform:translate3d(0,-8px,0);transition:all .2s ease-in-out}md-slider .md-sign .md-thumb-text{z-index:1;font-size:12px;font-weight:700}md-slider .md-focus-thumb{position:absolute;left:-24px;top:0;width:48px;height:48px;border-radius:48px;display:none;opacity:0;background-color:silver;-webkit-animation:sliderFocusThumb .4s linear;animation:sliderFocusThumb .4s linear}md-slider .md-focus-ring{position:absolute;left:-24px;top:0;width:48px;height:48px;border-radius:48px;border:2px solid #D6D6D6;background-color:transparent;-webkit-transform:scale(0);transform:scale(0);transition:all .2s linear}md-slider .md-disabled-thumb{position:absolute;left:-22px;top:2px;width:44px;height:44px;border-radius:44px;-webkit-transform:scale(.35);transform:scale(.35);border-width:6px;border-style:solid;display:none}md-slider.md-min .md-thumb:after{background-color:#fff}md-slider.md-min .md-sign{opacity:0}md-slider:focus{outline:0}md-slider.dragging .md-thumb-container,md-slider.dragging .md-track-fill{transition:none}md-slider:not([md-discrete]) .md-sign,md-slider:not([md-discrete]) .md-track-ticks{display:none}md-slider:not([md-discrete]):not([disabled]):hover .md-thumb{-webkit-transform:scale(.6);transform:scale(.6)}md-slider:not([md-discrete]):not([disabled]).active .md-focus-thumb,md-slider:not([md-discrete]):not([disabled]):focus .md-focus-thumb{display:block}md-slider:not([md-discrete]):not([disabled]).active .md-focus-ring,md-slider:not([md-discrete]):not([disabled]):focus .md-focus-ring{-webkit-transform:scale(1);transform:scale(1)}md-slider:not([md-discrete]):not([disabled]).active .md-thumb,md-slider:not([md-discrete]):not([disabled]):focus .md-thumb{-webkit-transform:scale(.85);transform:scale(.85)}md-slider[md-discrete] .md-focus-ring,md-slider[md-discrete] .md-focus-thumb{display:none}md-slider[md-discrete]:not([disabled]).active .md-sign,md-slider[md-discrete]:not([disabled]).active .md-sign:after,md-slider[md-discrete]:not([disabled]):focus .md-sign,md-slider[md-discrete]:not([disabled]):focus .md-sign:after{opacity:1;-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}md-slider[disabled] .md-sign,md-slider[disabled] .md-track-fill{display:none}md-slider[disabled] .md-thumb{-webkit-transform:scale(.35);transform:scale(.35)}md-slider[disabled] .md-disabled-thumb{display:block}@media screen and (-ms-high-contrast:active){md-slider.md-default-theme .md-track{border-bottom:1px solid #fff}}.md-sticky-clone{z-index:2;top:0;left:0;right:0;position:absolute!important;-webkit-transform:translate3d(-9999px,-9999px,0);transform:translate3d(-9999px,-9999px,0)}.md-sticky-clone[sticky-state=active]{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.md-sticky-clone[sticky-state=active]:not(.md-sticky-no-effect) .md-subheader-inner{-webkit-animation:subheaderStickyHoverIn .3s ease-out both;animation:subheaderStickyHoverIn .3s ease-out both}@-webkit-keyframes subheaderStickyHoverIn{0%{box-shadow:0 0 0 0 transparent}100%{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}}@keyframes subheaderStickyHoverIn{0%{box-shadow:0 0 0 0 transparent}100%{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}}@-webkit-keyframes subheaderStickyHoverOut{0%{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}100%{box-shadow:0 0 0 0 transparent}}@keyframes subheaderStickyHoverOut{0%{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}100%{box-shadow:0 0 0 0 transparent}}.md-subheader{display:block;font-size:14px;font-weight:500;line-height:1em;margin:0 16px 0 0;position:relative}.md-subheader .md-subheader-inner{padding:16px 0 16px 16px}.md-subheader:not(.md-sticky-no-effect){transition:.2s ease-out margin}.md-subheader:not(.md-sticky-no-effect):after{position:absolute;left:0;bottom:0;top:0;right:-16px;content:''}.md-subheader:not(.md-sticky-no-effect).md-sticky-clone{z-index:2}.md-subheader:not(.md-sticky-no-effect)[sticky-state=active]{margin-top:-2px}.md-subheader:not(.md-sticky-no-effect):not(.md-sticky-clone)[sticky-prev-state=active] .md-subheader-inner:after{-webkit-animation:subheaderStickyHoverOut .3s ease-out both;animation:subheaderStickyHoverOut .3s ease-out both}.md-subheader .md-subheader-content{z-index:1;position:relative}md-switch{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:15px;white-space:nowrap;cursor:pointer;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}md-switch .md-container{cursor:-webkit-grab;cursor:grab;width:36px;height:24px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:8px}md-switch:not([disabled]) .md-dragging,md-switch:not([disabled]).md-dragging .md-container{cursor:-webkit-grabbing;cursor:grabbing}md-switch.md-focused:not([disabled]) .md-thumb:before{left:-8px;top:-8px;right:-8px;bottom:-8px}md-switch.md-focused:not([disabled]):not(.md-checked) .md-thumb:before{background-color:rgba(0,0,0,.12)}md-switch .md-label{border-color:transparent;border-width:0}md-switch .md-bar{left:1px;width:34px;top:5px;height:14px;border-radius:8px;position:absolute}md-switch .md-thumb-container{top:2px;left:0;width:16px;position:absolute;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:1}md-switch.md-checked .md-thumb-container{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}md-switch .md-thumb{position:absolute;margin:0;left:0;top:0;outline:0;height:20px;width:20px;border-radius:50%;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084)}md-switch .md-thumb:before{background-color:transparent;border-radius:50%;content:'';position:absolute;display:block;height:auto;left:0;top:0;right:0;bottom:0;transition:all .5s;width:auto}md-switch .md-thumb .md-ripple-container{position:absolute;display:block;width:auto;height:auto;left:-20px;top:-20px;right:-20px;bottom:-20px}md-switch:not(.md-dragging) .md-bar,md-switch:not(.md-dragging) .md-thumb,md-switch:not(.md-dragging) .md-thumb-container{transition:all .5s cubic-bezier(.35,0,.25,1);transition-property:-webkit-transform,background-color;transition-property:transform,background-color}md-switch:not(.md-dragging) .md-bar,md-switch:not(.md-dragging) .md-thumb{transition-delay:.05s}@media screen and (-ms-high-contrast:active){md-switch.md-default-theme .md-bar{background-color:#666}md-switch.md-default-theme.md-checked .md-bar{background-color:#9E9E9E}md-switch.md-default-theme .md-thumb{background-color:#fff}}@-webkit-keyframes md-tab-content-hide{0%,50%{opacity:1}100%{opacity:0}}@keyframes md-tab-content-hide{0%,50%{opacity:1}100%{opacity:0}}md-tab-data{position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;opacity:0}md-tabs{display:block;margin:0;border-radius:2px;overflow:hidden;position:relative;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}md-tabs.ng-animate{transition:height .5s cubic-bezier(.35,0,.25,1)}md-tabs:not(.md-no-tab-content):not([md-dynamic-height]){min-height:248px}md-tabs[md-align-tabs=bottom] md-tabs-wrapper{position:absolute;bottom:0;left:0;right:0;height:48px}md-tabs[md-align-tabs=bottom] md-tabs-content-wrapper{top:0;bottom:48px}md-tabs[md-dynamic-height] md-tabs-content-wrapper{min-height:0;position:relative;top:auto;left:auto;right:auto;bottom:auto;overflow:visible}md-tabs[md-dynamic-height] md-tab-content.md-active{position:relative}md-tabs[md-border-bottom] md-tabs-wrapper{border-width:0 0 1px;border-style:solid}md-tabs[md-border-bottom] md-tabs-wrapper .md-tab{padding-bottom:11px}md-tabs[md-border-bottom]:not([md-dynamic-height]) md-tabs-content-wrapper{top:49px}md-tabs-wrapper{display:block;position:relative}md-tabs-wrapper md-next-button,md-tabs-wrapper md-prev-button{height:100%;width:32px;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);line-height:1em;z-index:2;cursor:pointer;font-size:16px;background:center center no-repeat;transition:all .5s cubic-bezier(.35,0,.25,1)}md-tabs-wrapper md-next-button:focus,md-tabs-wrapper md-prev-button:focus{outline:0}md-tabs-wrapper md-next-button.md-disabled,md-tabs-wrapper md-prev-button.md-disabled{opacity:.25;cursor:default}md-tabs-wrapper md-next-button.ng-leave,md-tabs-wrapper md-prev-button.ng-leave{transition:none}md-tabs-wrapper md-next-button md-icon,md-tabs-wrapper md-prev-button md-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}md-tabs-wrapper md-prev-button{left:0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMjA4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyIAkJIiBzdHlsZT0iZmlsbDp3aGl0ZTsiLz4gPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+IDwvZz4gPC9nPiA8ZyBpZD0iR3JpZCIgZGlzcGxheT0ibm9uZSI+IDxnIGRpc3BsYXk9ImlubGluZSI+IDwvZz4gPC9nPiA8L3N2Zz4NCg==)}md-tabs-wrapper md-next-button{right:0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMzM2IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTAsNiA4LjYsNy40IDEzLjIsMTIgOC42LDE2LjYgMTAsMTggMTYsMTIgCQkiIHN0eWxlPSJmaWxsOndoaXRlOyIvPiA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4gPC9nPiA8L2c+IDxnIGlkPSJHcmlkIiBkaXNwbGF5PSJub25lIj4gPGcgZGlzcGxheT0iaW5saW5lIj4gPC9nPiA8L2c+IDwvc3ZnPg0K)}md-tabs-wrapper md-next-button md-icon{-webkit-transform:translate3d(-50%,-50%,0) rotate(180deg);transform:translate3d(-50%,-50%,0) rotate(180deg)}md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper{width:100%;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper md-tab-item{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}md-tabs-canvas{position:relative;overflow:hidden;display:block;height:48px}md-tabs-canvas:after{content:'';display:table;clear:both}md-tabs-canvas .md-dummy-wrapper{position:absolute;top:0;left:0}md-tabs-canvas.md-paginated{margin:0 32px}md-tabs-canvas.md-center-tabs{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}md-pagination-wrapper{height:48px;display:block;transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1);position:absolute;width:999999px;left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-pagination-wrapper:after{content:'';display:table;clear:both}md-pagination-wrapper.md-center-tabs{position:relative;width:initial;-webkit-flex:1;-ms-flex:1;flex:1;margin:0 auto}md-tabs-content-wrapper{display:block;position:absolute;top:48px;left:0;right:0;bottom:0;overflow:hidden}md-tab-content{display:block;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0);transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1);overflow:auto}md-tab-content.md-no-scroll{bottom:auto;overflow:hidden}md-tab-content.md-no-transition,md-tab-content.ng-leave{transition:none}md-tab-content.md-left{-webkit-transform:translateX(-100%);transform:translateX(-100%);-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide;opacity:0}md-tab-content.md-left *{transition:visibility 0s linear;transition-delay:.5s;visibility:hidden}md-tab-content.md-right{-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide;opacity:0}md-tab-content.md-right *{transition:visibility 0s linear;transition-delay:.5s;visibility:hidden}md-tab-content>div.ng-leave{-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide}md-ink-bar{position:absolute;left:auto;right:auto;bottom:0;height:2px}md-ink-bar.md-left{transition:left .225s cubic-bezier(.35,0,.25,1),right .5s cubic-bezier(.35,0,.25,1)}md-ink-bar.md-right{transition:left .5s cubic-bezier(.35,0,.25,1),right .225s cubic-bezier(.35,0,.25,1)}md-tab{position:absolute;z-index:-1;left:-9999px}.md-tab{font-size:14px;text-align:center;line-height:24px;padding:12px 24px;transition:background-color .35s cubic-bezier(.35,0,.25,1);cursor:pointer;white-space:nowrap;position:relative;text-transform:uppercase;float:left;font-weight:500;box-sizing:border-box}.md-tab.md-focused{box-shadow:none;outline:0}.md-tab.md-active{cursor:default}.md-tab.md-disabled{pointer-events:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;opacity:.5;cursor:default}.md-tab.ng-leave{transition:none}md-toolbar+md-tabs{border-top-left-radius:0;border-top-right-radius:0}md-toast{display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;box-sizing:border-box;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-height:48px;padding-left:24px;padding-right:24px;box-shadow:0 2px 5px 0 rgba(0,0,0,.26);border-radius:2px;font-size:14px;cursor:default;max-width:100%;max-height:40px;height:24px;z-index:90;opacity:1;-webkit-transform:translate3d(0,0,0) rotateZ(0deg);transform:translate3d(0,0,0) rotateZ(0deg);transition:all .4s cubic-bezier(.25,.8,.25,1)}md-toast.md-capsule{border-radius:24px}md-toast.ng-leave-active{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-toast.md-swipedown,md-toast.md-swipeleft,md-toast.md-swiperight,md-toast.md-swipeup{transition:all .4s cubic-bezier(.25,.8,.25,1)}md-toast.ng-enter{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);opacity:0}md-toast.ng-enter.md-top{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}md-toast.ng-enter.ng-enter-active{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}md-toast.ng-leave.ng-leave-active{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}md-toast.ng-leave.ng-leave-active.md-top{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}md-toast.ng-leave.ng-leave-active.md-swipeleft{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}md-toast.ng-leave.ng-leave-active.md-swiperight{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}md-toast .md-action{line-height:19px;margin-left:24px;cursor:pointer;text-transform:uppercase;float:right}md-toast .md-action.md-button{min-width:0}@media (max-width:600px){md-toast{left:0;right:0;width:100%;max-width:100%;min-width:0;border-radius:0;bottom:0}md-toast.md-top{bottom:auto;top:0}}@media (min-width:600px){md-toast{min-width:288px}md-toast.md-bottom{bottom:8px}md-toast.md-left{left:8px}md-toast.md-right{right:8px}md-toast.md-top{top:8px}md-toast.ng-leave.ng-leave-active.md-swipeleft{-webkit-transform:translate3d(-100%,25%,0) rotateZ(-15deg);transform:translate3d(-100%,25%,0) rotateZ(-15deg)}md-toast.ng-leave.ng-leave-active.md-swiperight{-webkit-transform:translate3d(100%,25%,0) rotateZ(15deg);transform:translate3d(100%,25%,0) rotateZ(15deg)}md-toast.ng-leave.ng-leave-active.md-top.md-swipeleft{-webkit-transform:translate3d(-100%,0,0) rotateZ(-15deg);transform:translate3d(-100%,0,0) rotateZ(-15deg)}md-toast.ng-leave.ng-leave-active.md-top.md-swiperight{-webkit-transform:translate3d(100%,0,0) rotateZ(15deg);transform:translate3d(100%,0,0) rotateZ(15deg)}}@media (min-width:1200px){md-toast{max-width:568px}}@media screen and (-ms-high-contrast:active){md-toast{border:1px solid #fff}}md-toolbar{box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;z-index:2;font-size:20px;min-height:64px;width:100%}md-toolbar.md-whiteframe-z1-add,md-toolbar.md-whiteframe-z1-remove{transition:box-shadow .5s linear}md-toolbar *,md-toolbar :after,md-toolbar :before{box-sizing:border-box}md-toolbar.md-tall{height:128px;min-height:128px;max-height:128px}md-toolbar.md-medium-tall{height:88px;min-height:88px;max-height:88px}md-toolbar.md-medium-tall .md-toolbar-tools{height:48px;min-height:48px;max-height:48px}md-toolbar .md-indent{margin-left:64px}md-toolbar~md-content>md-list{padding:0}md-toolbar~md-content>md-list md-list-item:last-child md-divider{display:none}.md-toolbar-tools{font-weight:400;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:100%;height:64px;max-height:64px;padding:0 16px;margin:0}.md-toolbar-tools h1,.md-toolbar-tools h2,.md-toolbar-tools h3{font-size:inherit;font-weight:inherit;margin:inherit}.md-toolbar-tools a{color:inherit;text-decoration:none}.md-toolbar-tools .fill-height{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.md-toolbar-tools .md-button{margin-top:0;margin-bottom:0}.md-toolbar-tools>.md-button:first-child{margin-left:-8px}.md-toolbar-tools>.md-button:last-child{margin-right:-8px}@media screen and (-ms-high-contrast:active){.md-toolbar-tools{border-bottom:1px solid #fff}}md-tooltip{position:absolute;z-index:100;overflow:hidden;pointer-events:none;border-radius:4px;font-weight:500;font-size:14px}@media screen and (min-width:600px){md-tooltip{font-size:10px}}md-tooltip .md-background{position:absolute;border-radius:50%;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);opacity:1}md-tooltip .md-background.md-show-add{transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);opacity:0}md-tooltip .md-background.md-show,md-tooltip .md-background.md-show-add-active{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1);opacity:1}md-tooltip .md-background.md-show-remove{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-tooltip .md-background.md-show-remove.md-show-remove-active{-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);opacity:0}md-tooltip .md-content{position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:0 0;opacity:0;height:32px;line-height:32px;padding-left:16px;padding-right:16px}@media screen and (min-width:600px){md-tooltip .md-content{height:22px;line-height:22px;padding-left:8px;padding-right:8px}}md-tooltip .md-content.md-show-add{transition:all .4s cubic-bezier(.25,.8,.25,1);opacity:0}md-tooltip .md-content.md-show,md-tooltip .md-content.md-show-add-active{opacity:1}md-tooltip .md-content.md-show-remove{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-tooltip .md-content.md-show-remove.md-show-remove-active{opacity:0}md-tooltip.md-hide{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-tooltip.md-show{transition:all .4s cubic-bezier(.25,.8,.25,1);pointer-events:auto;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.md-whiteframe-z1{box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084)}.md-whiteframe-z2{box-shadow:0 2px 4px -1px rgba(0,0,0,.14),0 4px 5px 0 rgba(0,0,0,.098),0 1px 10px 0 rgba(0,0,0,.084)}.md-whiteframe-z3{box-shadow:0 3px 5px -1px rgba(0,0,0,.14),0 6px 10px 0 rgba(0,0,0,.098),0 1px 18px 0 rgba(0,0,0,.084)}.md-whiteframe-z4{box-shadow:0 5px 5px -3px rgba(0,0,0,.14),0 8px 10px 1px rgba(0,0,0,.098),0 3px 14px 2px rgba(0,0,0,.084)}.md-whiteframe-z5{box-shadow:0 8px 10px -5px rgba(0,0,0,.14),0 16px 24px 2px rgba(0,0,0,.098),0 6px 30px 5px rgba(0,0,0,.084)}@media screen and (-ms-high-contrast:active){md-whiteframe{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/angular-material.min.js b/ecomp-portal-FE/client/bower_components/angular-material/angular-material.min.js
deleted file mode 100644
index aa8f6011..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/angular-material.min.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";!function(){t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.gestures","material.core.theming.palette","material.core.theming","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.content","material.components.dialog","material.components.divider","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.select","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.whiteframe"])}(),function(){function e(e,t){e.decorator("$$rAF",["$delegate",n]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("red").backgroundPalette("grey")}function n(e){return e.throttle=function(t){var n,o,r,i;return function(){n=arguments,i=this,r=t,o||(o=!0,e(function(){r.apply(i,n),o=!1}))}},e}t.module("material.core",["material.core.gestures","material.core.theming"]).config(e),e.$inject=["$provide","$mdThemingProvider"]}(),function(){function e(e,t){function n(e){return o?"webkit"+e.charAt(0).toUpperCase()+e.substring(1):e}var o=/webkit/i.test(t.vendorPrefix);return{KEY_CODE:{ENTER:13,ESCAPE:27,SPACE:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(o?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(o?" webkitAnimationEnd":""),TRANSFORM:n("transform"),TRANSFORM_ORIGIN:n("transformOrigin"),TRANSITION:n("transition"),TRANSITION_DURATION:n("transitionDuration"),ANIMATION_PLAY_STATE:n("animationPlayState"),ANIMATION_DURATION:n("animationDuration"),ANIMATION_NAME:n("animationName"),ANIMATION_TIMING:n("animationTimingFunction"),ANIMATION_DIRECTION:n("animationDirection")},MEDIA:{sm:"(max-width: 600px)","gt-sm":"(min-width: 600px)",md:"(min-width: 600px) and (max-width: 960px)","gt-md":"(min-width: 960px)",lg:"(min-width: 960px) and (max-width: 1200px)","gt-lg":"(min-width: 1200px)"},MEDIA_PRIORITY:["gt-lg","lg","gt-md","md","gt-sm","sm"]}}t.module("material.core").factory("$mdConstant",e),e.$inject=["$$rAF","$sniffer"]}(),function(){function e(e,n){function o(){return[].concat(E)}function r(){return E.length}function i(e){return E.length&&e>-1&&e<E.length}function a(e){return e?i(u(e)+1):!1}function d(e){return e?i(u(e)-1):!1}function c(e){return i(e)?E[e]:null}function m(e,t){return E.filter(function(n){return n[e]===t})}function l(e,n){return e?(t.isNumber(n)||(n=E.length),E.splice(n,0,e),u(e)):-1}function s(e){f(e)&&E.splice(u(e),1)}function u(e){return E.indexOf(e)}function f(e){return e&&u(e)>-1}function p(){return E.length?E[0]:null}function h(){return E.length?E[E.length-1]:null}function b(e,o,r,a){r=r||g;for(var d=u(o);;){if(!i(d))return null;var c=d+(e?-1:1),m=null;if(i(c)?m=E[c]:n&&(m=e?h():p(),c=u(m)),null===m||c===a)return null;if(r(m))return m;t.isUndefined(a)&&(a=c),d=c}}var g=function(){return!0};e&&!t.isArray(e)&&(e=Array.prototype.slice.call(e)),n=!!n;var E=e||[];return{items:o,count:r,inRange:i,contains:f,indexOf:u,itemAt:c,findBy:m,add:l,remove:s,first:p,last:h,next:t.bind(null,b,!1),previous:t.bind(null,b,!0),hasPrevious:d,hasNext:a}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),function(){function e(e,n,o){function r(e){var n=u[e];t.isUndefined(n)&&(n=u[e]=i(e));var o=p[n];return t.isUndefined(o)&&(o=a(n)),o}function i(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function a(e){var t=f[e]=o.matchMedia(e);return t.addListener(d),p[t.media]=!!t.matches}function d(e){n.$evalAsync(function(){p[e.media]=!!e.matches})}function c(e){return f[e]}function m(t,n){for(var o=0;o<e.MEDIA_PRIORITY.length;o++){var r=e.MEDIA_PRIORITY[o];if(f[u[r]].matches){var i=s(t,n+"-"+r);if(t[i])return t[i]}}return t[s(t,n)]}function l(n,o,r){var i=[];return n.forEach(function(n){var a=s(o,n);o[a]&&i.push(o.$observe(a,t.bind(void 0,r,null)));for(var d in e.MEDIA){if(a=s(o,n+"-"+d),!o[a])return;i.push(o.$observe(a,t.bind(void 0,r,d)))}}),function(){i.forEach(function(e){e()})}}function s(e,t){return h[t]||(h[t]=e.$normalize(t))}var u={},f={},p={},h={};return r.getResponsiveAttribute=m,r.getQuery=c,r.watchResponsiveAttributes=l,r}t.module("material.core").factory("$mdMedia",e),e.$inject=["$mdConstant","$rootScope","$window"]}(),function(){var o=0;t.module("material.core").factory("$mdUtil",["$cacheFactory","$document","$timeout","$q","$window","$mdConstant",function(r,i,a,d,c,m){function l(e){return e[0]||e}var s;return s={now:e.performance?t.bind(e.performance,e.performance.now):Date.now,clientRect:function(e,t,n){var o=l(e);t=l(t||o.offsetParent||document.body);var r=o.getBoundingClientRect(),i=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:r.left-i.left,top:r.top-i.top,width:r.width,height:r.height}},offsetRect:function(e,t){return s.clientRect(e,t,!0)},disableScrollAround:function(e){function n(){function e(e){d.contains(e.target)&&(e.preventDefault(),e.stopImmediatePropagation())}function n(e){e.preventDefault()}var o=t.element('<div class="md-scroll-mask"><div class="md-scroll-mask-bar"></div></div>'),a=c.getComputedStyle(d),m=d.getBoundingClientRect(),l=m.width-d.clientWidth;return r(o[0],{zIndex:"auto"==a.zIndex?2:a.zIndex+1,width:m.width+"px",height:m.height+"px",top:m.top+"px",left:m.left+"px"}),o[0].firstElementChild.style.width=l+"px",i[0].body.appendChild(o[0]),o.on("wheel",n),o.on("touchmove",n),i.on("keydown",e),function(){o.off("wheel"),o.off("touchmove"),o[0].parentNode.removeChild(o[0]),i.off("keydown",e)}}function o(){var e=d.getAttribute("style")||"",t=d.scrollTop;return r(d,{position:"fixed",width:"100%",overflowY:"scroll",top:-t+"px"}),function(){d.setAttribute("style",e),d.scrollTop=t}}function r(e,t){for(var n in t)e.style[n]=t[n]}function a(e){return e instanceof t.element&&(e=e[0]),e.scrollHeight>e.offsetHeight}e=e instanceof t.element?e[0]:e;for(var d,m=e;m=this.getClosest(m,"MD-CONTENT",!0);)a(m)&&(d=t.element(m)[0]);return d||(d=i[0].body,a(d))?"BODY"==d.nodeName?o():n():t.noop},floatingScrollbars:function(){if(this.floatingScrollbars.cached===n){var e=t.element('<div style="width: 100%; z-index: -1; position: absolute; height: 35px; overflow-y: scroll"><div style="height: 60;"></div></div>');i[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(t){var n=t[0]||t;document.addEventListener("click",function r(e){e.target===n&&e.$focus&&(n.focus(),e.stopImmediatePropagation(),e.preventDefault(),n.removeEventListener("click",r))},!0);var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!1,!0,e,{},0,0,0,0,!1,!1,!1,!1,0,null),o.$material=!0,o.$focus=!0,n.dispatchEvent(o)},transitionEndPromise:function(e,t){function n(t){t&&t.target!==e[0]||(e.off(m.CSS.TRANSITIONEND,n),o.resolve())}t=t||{};var o=d.defer();return e.on(m.CSS.TRANSITIONEND,n),t.timeout&&a(n,t.timeout),o.promise},fakeNgModel:function(){return{$fake:!0,$setTouched:t.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:t.noop}},debounce:function(e,t,o,r){var i;return function(){var d=o,c=Array.prototype.slice.call(arguments);a.cancel(i),i=a(function(){i=n,e.apply(d,c)},t||10,r)}},throttle:function(e,t){var n;return function(){var o=this,r=arguments,i=s.now();(!n||i-n>t)&&(e.apply(o,r),n=i)}},time:function(e){var t=s.now();return e(),s.now()-t},nextUid:function(){return""+o++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getClosest:function(e,n,o){if(e instanceof t.element&&(e=e[0]),n=n.toUpperCase(),o&&(e=e.parentNode),!e)return null;do if(e.nodeName===n)return e;while(e=e.parentNode);return null},extractElementByName:function(e,n){for(var o=0,r=e.length;r>o;o++)if(e[o].nodeName.toLowerCase()===n)return t.element(e[o]);return e},initOptionalProperties:function(e,n,o){o=o||{},t.forEach(e.$$isolateBindings,function(r,i){if(r.optional&&t.isUndefined(e[i])){var a=n.hasOwnProperty(n.$normalize(r.attrName));e[i]=t.isDefined(o[i])?o[i]:a}})}}}]),t.element.prototype.focus=t.element.prototype.focus||function(){return this.length&&this[0].focus(),this},t.element.prototype.blur=t.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),function(){function e(e,n,o){function r(e,o,r){var i=e[0]||e;!i||i.hasAttribute(o)&&0!==i.getAttribute(o).length||c(i,o)||(r=t.isString(r)?r.trim():"",r.length?e.attr(o,r):n.warn('ARIA: Attribute "',o,'", required for accessibility, is missing on node:',i))}function i(t,n,o){e(function(){r(t,n,o())})}function a(e,t){i(e,t,function(){return d(e)})}function d(e){return e.text().trim()}function c(e,t){function n(e){var t=e.currentStyle?e.currentStyle:o.getComputedStyle(e);return"none"===t.display}var r=e.hasChildNodes(),i=!1;if(r)for(var a=e.childNodes,d=0;d<a.length;d++){var c=a[d];1===c.nodeType&&c.hasAttribute(t)&&(n(c)||(i=!0))}return i}return{expect:r,expectAsync:i,expectWithText:a}}t.module("material.core").service("$mdAria",e),e.$inject=["$$rAF","$log","$window"]}(),function(){function e(e,n,o,r,i,a){this.compile=function(d){var c=d.templateUrl,m=d.template||"",l=d.controller,s=d.controllerAs,u=d.resolve||{},f=d.locals||{},p=d.transformTemplate||t.identity,h=d.bindToController;return t.forEach(u,function(e,n){u[n]=t.isString(e)?o.get(e):o.invoke(e)}),t.extend(u,f),u.$template=c?n.get(c,{cache:a}).then(function(e){return e.data}):e.when(m),e.all(u).then(function(e){var n=p(e.$template),o=d.element||t.element("<div>").html(n.trim()).contents(),a=r(o);return{locals:e,element:o,link:function(n){if(e.$scope=n,l){var r=i(l,e,!0);h&&t.extend(r.instance,e);var d=r();o.data("$ngControllerController",d),o.children().data("$ngControllerController",d),s&&(n[s]=d)}return a(n)}}})}}t.module("material.core").service("$mdCompiler",e),e.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"]}(),function(){function n(){}function o(n,o,r){function i(e,t,n){var o=f[t.replace(/^\$md./,"")];if(!o)throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(f).join(", "));return o.registerElement(e,n)}function a(e,o){var r=new n(e);return t.extend(r,o),f[e]=r,h}var c=navigator.userAgent||navigator.vendor||e.opera,l=c.match(/ipad|iphone|ipod/i),s=c.match(/android/i),u="undefined"!=typeof e.jQuery&&t.element===e.jQuery,h={handler:a,register:i,isHijackingClicks:(l||s)&&!u&&!p};return h.isHijackingClicks&&h.handler("click",{options:{maxDistance:6},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&this.dispatchEvent(e,"click")}}),h.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){r.cancel(this.state.timeout)},onStart:function(e,n){return this.state.registeredParent?(this.state.pos={x:n.x,y:n.y},void(this.state.timeout=r(t.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1))):this.cancel()},onMove:function(e,t){e.preventDefault();var n=this.state.pos.x-t.x,o=this.state.pos.y-t.y;Math.sqrt(n*n+o*o)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,o=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,o=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=d(e),m(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&&this.cancel())},dispatchDragMove:o.throttle(function(e){this.state.isRunning&&(m(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(m(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){if(Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance){var n="left"==t.directionX?"$md.swipeleft":"$md.swiperight";this.dispatchEvent(e,n)}}})}function r(e){this.name=e,this.state={}}function i(){function n(e,n,o){o=o||s;var r=new t.element.Event(n);r.$material=!0,r.pointer=o,r.srcEvent=e,t.extend(r,{clientX:o.x,clientY:o.y,screenX:o.x,screenY:o.y,pageX:o.x,pageY:o.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),t.element(o.target).trigger(r)}function o(t,n,o){o=o||s;var r;"click"===n?(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!0,e,t.detail,o.x,o.y,o.x,o.y,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget||null)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(n,!0,!0,{})),r.$material=!0,r.pointer=o,r.srcEvent=t,o.target.dispatchEvent(r)}var i="undefined"!=typeof e.jQuery&&t.element===e.jQuery;return r.prototype={options:{},dispatchEvent:i?n:o,onStart:t.noop,onMove:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(e,n){if(!this.state.isRunning){var o=this.getNearestParent(e.target),r=o&&o.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,r),registeredParent:o},this.onStart(e,n)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.onEnd(e,t),this.state.isRunning=!1)},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){function n(){delete e[0].$mdGesture[o.name],e.off("$destroy",n)}var o=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",n),n}},r}function a(e,n){function o(e,t){var o;for(var r in f)o=f[r],o instanceof n&&("start"===e&&o.cancel(),o[e](t,s))}function r(e){if(!s){var t=+Date.now();u&&!c(e,u)&&t-u.endTime<1500||(s=d(e),o("start",e))}}function i(e){s&&c(e,s)&&(m(e,s),o("move",e))}function a(e){s&&c(e,s)&&(m(e,s),s.endTime=+Date.now(),o("end",e),u=s,s=null)}document.contains||(document.contains=function(e){return document.body.contains(e)}),!h&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t=0===e.clientX&&0===e.clientY;t||e.$material||e.isIonicTap||(e.preventDefault(),e.stopPropagation())},!0),h=!0);var l="mousedown touchstart pointerdown",p="mousemove touchmove pointermove",b="mouseup mouseleave touchend touchcancel pointerup pointercancel";t.element(document).on(l,r).on(p,i).on(b,a).on("$$mdGestureReset",function(){u=s=null})}function d(e){var t=l(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function c(e,t){return e&&t&&e.type.charAt(0)===t.type}function m(e,t){var n=l(e),o=t.x=n.pageX,r=t.y=n.pageY;t.distanceX=o-t.startX,t.distanceY=r-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX>0?"right":t.distanceX<0?"left":"",t.directionY=t.distanceY>0?"up":t.distanceY<0?"down":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function l(e){return e=e.originalEvent||e,e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}var s,u,f={},p=!1,h=!1;t.module("material.core.gestures",[]).provider("$mdGesture",n).factory("$$MdGestureHandler",i).run(a),n.prototype={skipClickHijack:function(){return p=!0},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new o(e,t,n)}]},o.$inject=["$$MdGestureHandler","$$rAF","$timeout"],a.$inject=["$mdGesture","$$MdGestureHandler"]}(),function(){function e(){function e(e){function n(e){return c.optionsFactory=e.options,c.methods=(e.methods||[]).concat(a),m}function o(e,t){return d[e]=t,m}function r(t,n){if(n=n||{},n.methods=n.methods||[],n.options=n.options||function(){return{}},/^cancel|hide|show$/.test(t))throw new Error("Preset '"+t+"' in "+e+" is reserved!");if(n.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+e+" is reserved!");return c.presets[t]={methods:n.methods.concat(a),optionsFactory:n.options,argOption:n.argOption},m}function i(n,o,r){function i(e){return e&&e._options&&(e=e._options),s.show(t.extend({},l,e))}function a(t,n){var o={};return o[e]=u,r.invoke(t||function(){return n},{},o)}var m,l,s=n(),u={hide:s.hide,cancel:s.cancel,show:i};return m=c.methods||[],l=a(c.optionsFactory,{}),t.forEach(d,function(e,t){u[t]=e}),t.forEach(c.presets,function(e,n){function o(e){this._options=t.extend({},r,e)}var r=a(e.optionsFactory,{}),i=(e.methods||[]).concat(m);if(t.extend(r,{$type:n}),t.forEach(i,function(e){o.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var d="show"+n.charAt(0).toUpperCase()+n.slice(1);u[d]=function(e){var t=u[n](e);return u.show(t)}}u[n]=function(n){return arguments.length&&e.argOption&&!t.isObject(n)&&!t.isArray(n)?(new o)[e.argOption](n):new o(n)}}),u}var a=["onHide","onShow","onRemove"],d={},c={presets:{}},m={setDefaults:n,addPreset:r,addMethod:o,$get:i};return m.addPreset("build",{methods:["controller","controllerAs","resolve","template","templateUrl","themable","transformTemplate","parent"]}),i.$inject=["$$interimElement","$animate","$injector"],m}function o(e,o,r,i,a,d,c,m,l){function s(e){return e&&t.isString(e)?e.replace(/\{\{/g,u).replace(/}}/g,f):e}var u=c.startSymbol(),f=c.endSymbol(),p="{{"===u&&"}}"===f,h=p?t.identity:s;return function(){function c(e){if(b.length)return p.cancel().then(function(){return c(e)});var t=new f(e);return b.push(t),t.show().then(function(){return t.deferred.promise})}function s(e){var t=b.shift();return t&&t.remove().then(function(){t.deferred.resolve(e)})}function u(e){var t=b.shift();return o.when(t&&t.remove().then(function(){t.deferred.reject(e)}))}function f(c){var s,u,f,b,g;return c=c||{},c=t.extend({preserveScope:!1,scope:c.scope||r.$new(c.isolateScope),onShow:function(e,t,n){return d.enter(t,n.parent)},onRemove:function(e,t,n){return t&&d.leave(t)||o.when()}},c),c.template&&(c.template=h(c.template)),s={options:c,deferred:o.defer(),show:function(){var n;return n=c.skipCompile?o(function(e){e({locals:{},link:function(){return c.element}})}):m.compile(c),b=n.then(function(n){function r(){c.hideDelay&&(u=i(p.cancel,c.hideDelay))}if(t.extend(n.locals,s.options),f=n.link(c.scope),t.isFunction(c.parent)?c.parent=c.parent(c.scope,f,c):t.isString(c.parent)&&(c.parent=t.element(e[0].querySelector(c.parent))),!(c.parent||{}).length){var d;a[0]&&a[0].querySelector&&(d=a[0].querySelector(":not(svg) > body")),d||(d=a[0]),"#comment"==d.nodeName&&(d=e[0].body),c.parent=t.element(d)}c.themable&&l(f);var m=c.onShow(c.scope,f,c);return o.when(m).then(function(){(c.onComplete||t.noop)(c.scope,f,c),r()})},function(e){b=!0,s.deferred.reject(e)})},cancelTimeout:function(){u&&(i.cancel(u),u=n)},remove:function(){return s.cancelTimeout(),g=o.when(b).then(function(){var e=f?c.onRemove(c.scope,f,c):!0;return o.when(e).then(function(){c.preserveScope||c.scope.$destroy(),g=!0})})}}}var p,b=[];return p={show:c,hide:s,cancel:u}}}return e.$get=o,o.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$interpolate","$mdCompiler","$mdTheming"],e}t.module("material.core").provider("$$interimElement",e)}(),function(){function e(e,n){function o(e){return e&&""!==e}var r,i=[],a={};return r={notFoundError:function(t){e.error("No instance found for handle",t)},getInstances:function(){return i},get:function(e){if(!o(e))return null;var t,n,r;for(t=0,n=i.length;n>t;t++)if(r=i[t],r.$$mdHandle===e)return r;return null},register:function(e,n){function o(){var t=i.indexOf(e);-1!==t&&i.splice(t,1)}function r(){var t=a[n];t&&(t.resolve(e),delete a[n])}return n?(e.$$mdHandle=n,i.push(e),r(),o):t.noop},when:function(e){if(o(e)){var t=n.defer(),i=r.get(e);return i?t.resolve(i):a[e]=t,t.promise}return n.reject("Invalid `md-component-id` value.")}}}t.module("material.core").factory("$mdComponentRegistry",e),e.$inject=["$log","$q"]}(),function(){!function(){function e(e){function n(n,r,i){var a=o(r);return e.attach(n,r,t.extend(a,i))}function o(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}return{attach:n}}t.module("material.core").factory("$mdButtonInkRipple",e),e.$inject=["$mdInkRipple"]}()}(),function(){!function(){function e(e){function n(n,o,r){return e.attach(n,o,t.extend({center:!0,dimBackground:!1,fitRipple:!0},r))}return{attach:n}}t.module("material.core").factory("$mdCheckboxInkRipple",e),e.$inject=["$mdInkRipple"]}()}(),function(){!function(){function e(e){function n(n,o,r){return e.attach(n,o,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},r))}return{attach:n}}t.module("material.core").factory("$mdListInkRipple",e),e.$inject=["$mdInkRipple"]}()}(),function(){function e(e,n){return{controller:t.noop,link:function(t,o,r){r.hasOwnProperty("mdInkRippleCheckbox")?n.attach(t,o):e.attach(t,o)}}}function n(e,n){function o(o,r,i){function a(){var e=r.data("$mdRippleContainer");return e?e:(e=t.element('<div class="md-ripple-container">'),r.append(e),r.data("$mdRippleContainer",e),e)}function d(e){function t(e){var t="#"===e.charAt(0)?e.substr(1):e,n=t.length/3,o=t.substr(0,n),r=t.substr(n,n),i=t.substr(2*n);return 1===n&&(o+=o,r+=r,i+=i),"rgba("+parseInt(o,16)+","+parseInt(r,16)+","+parseInt(i,16)+",0.1)"}function n(e){return e.replace(")",", 0.1)").replace("(","a(")}if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,"0.1)"):0===e.indexOf("rgb")?n(e):0===e.indexOf("#")?t(e):void 0}function c(e,t){g.splice(g.indexOf(e),1),0===g.length&&a().css({backgroundColor:""}),n(function(){e.remove()},t,!1)}function m(e){var t=g.indexOf(e),n=E[t]||{},o=g.length>1?!1:M,r=g.length>1?!1:$;o||n.animating||r?e.addClass("md-ripple-visible"):e&&(e.removeClass("md-ripple-visible"),i.outline&&e.css({width:p+"px",height:p+"px",marginLeft:-1*p+"px",marginTop:-1*p+"px"}),c(e,i.outline?450:650))}function l(o,c){function l(e){var n=t.element('<div class="md-ripple" data-counter="'+b++ +'">');return g.unshift(n),E.unshift({animating:!0}),f.append(n),e&&n.css(e),n}function s(e,t){var n,o,r,a=f.prop("offsetWidth"),d=f.prop("offsetHeight");return i.isMenuItem?o=Math.sqrt(Math.pow(a,2)+Math.pow(d,2)):i.outline?(r=A.getBoundingClientRect(),e-=r.left,t-=r.top,a=Math.max(e,a-e),d=Math.max(t,d-t),o=2*Math.sqrt(Math.pow(a,2)+Math.pow(d,2))):(n=i.fullRipple?1.1:.8,o=Math.sqrt(Math.pow(a,2)+Math.pow(d,2))*n,i.fitRipple&&(o=Math.min(d,a,o))),o}function u(e,t,n){function o(e){return e.replace("rgba","rgb").replace(/,[^\),]+\)/,")")}var r=A.getBoundingClientRect(),a={backgroundColor:o(C),borderColor:o(C),width:e+"px",height:e+"px"};return i.outline?(a.width=0,a.height=0):a.marginLeft=a.marginTop=e*-.5+"px",i.center?a.left=a.top="50%":(a.left=Math.round((t-r.left)/f.prop("offsetWidth")*100)+"%",a.top=Math.round((n-r.top)/f.prop("offsetHeight")*100)+"%"),a}C=d(r.attr("md-ink-ripple"))||d(e.getComputedStyle(i.colorElement[0]).color||"rgb(0, 0, 0)");var f=a(),h=s(o,c),v=u(h,o,c),M=l(v),$=g.indexOf(M),T=E[$]||{};return p=h,T.animating=!0,n(function(){i.dimBackground&&f.css({backgroundColor:C}),M.addClass("md-ripple-placed md-ripple-scaled"),M.css(i.outline?{borderWidth:.5*h+"px",marginLeft:h*-.5+"px",marginTop:h*-.5+"px"}:{left:"50%",top:"50%"}),m(M),n(function(){T.animating=!1,m(M)},i.outline?450:225,!1)},0,!1),M}function s(e){f()&&(l(e.pointer.x,e.pointer.y),$=!0)}function u(){$=!1;var e=g[g.length-1];n(function(){m(e)},0,!1)}function f(){function e(e){return e&&e.hasAttribute&&e.hasAttribute("disabled")}var t=A.parentNode,n=t&&t.parentNode,o=n&&n.parentNode;return!(e(A)||e(t)||e(n)||e(o))}if(r.controller("mdNoInk"))return t.noop;i=t.extend({colorElement:r,mousedown:!0,hover:!0,focus:!0,center:!1,mousedownPauseTime:150,dimBackground:!1,outline:!1,fullRipple:!0,isMenuItem:!1,fitRipple:!1},i);var p,h=r.controller("mdInkRipple")||{},b=0,g=[],E=[],v=r.attr("md-highlight"),M=!1,$=!1,A=r[0],T=r.attr("md-ripple-size"),C=d(r.attr("md-ink-ripple"))||d(i.colorElement.length&&e.getComputedStyle(i.colorElement[0]).color||"rgb(0, 0, 0)");switch(T){case"full":i.fullRipple=!0;break;case"partial":i.fullRipple=!1}return i.mousedown&&r.on("$md.pressdown",s).on("$md.pressup",u),h.createRipple=l,v&&o.$watch(v,function(e){M=e,M&&!g.length&&n(function(){l(0,0)},0,!1),t.forEach(g,m)}),function(){r.off("$md.pressdown",s).off("$md.pressup",u),a().remove()}}return{attach:o}}function o(){return function(){return{controller:t.noop}}}t.module("material.core").factory("$mdInkRipple",n).directive("mdInkRipple",e).directive("mdNoInk",o()).directive("mdNoBar",o()).directive("mdNoStretch",o()),e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],n.$inject=["$window","$timeout"]}(),function(){!function(){function e(e){function n(n,o,r){return e.attach(n,o,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},r))}return{attach:n}}t.module("material.core").factory("$mdTabInkRipple",e),e.$inject=["$mdInkRipple"]}()}(),function(){t.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900 A700",contrastStrongLightColors:"500 600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700 800"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200",contrastStrongLightColors:"300 400"
-},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1000:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300",contrastStrongLightColors:"400 500"}})}(),function(){function e(e){function o(e,t){return t=t||{},l[e]=a(e,t),g}function r(e,n){return a(e,t.extend({},l[e]||{},n))}function a(e,t){var n=C.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function d(e,n){if(s[e])return s[e];n=n||"default";var o="string"==typeof n?s[n]:n,r=new c(e);return o&&t.forEach(o.colors,function(e,n){r.colors[n]={name:e.name,hues:t.extend({},e.hues)}}),s[e]=r,r}function c(e){function n(e){if(e=0===arguments.length?!0:!!e,e!==o.isDark){o.isDark=e,o.foregroundPalette=o.isDark?p:f,o.foregroundShadow=o.isDark?h:b;var n=o.isDark?T:A,r=o.isDark?A:T;return t.forEach(n,function(e,t){var n=o.colors[t],i=r[t];if(n)for(var a in n.hues)n.hues[a]===i[a]&&(n.hues[a]=e[a])}),o}}var o=this;o.name=e,o.colors={},o.dark=n,n(!1),M.forEach(function(e){var n=(o.isDark?T:A)[e];o[e+"Palette"]=function(r,i){var a=o.colors[e]={name:r,hues:t.extend({},n,i)};return Object.keys(a.hues).forEach(function(e){if(!n[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",o.name).replace("%3",r).replace("%4",Object.keys(n).join(", ")))}),Object.keys(a.hues).map(function(e){return a.hues[e]}).forEach(function(t){if(-1==C.indexOf(t))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",t).replace("%2",o.name).replace("%3",e).replace("%4",r).replace("%5",C.join(", ")))}),o},o[e+"Color"]=function(){var t=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+e+"Color() has been deprecated. Use $mdThemingProviderTheme."+e+"Palette() instead."),o[e+"Palette"].apply(o,t)}})}function u(e,o){function r(e){return e===n||""===e?!0:i.THEMES[e]!==n}function i(t,o){o===n&&(o=t,t=n),t===n&&(t=e),i.inherit(o,o)}return i.inherit=function(n,i){function a(e){r(e)||o.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var t=n.data("$mdThemeName");t&&n.removeClass("md-"+t+"-theme"),n.addClass("md-"+e+"-theme"),n.data("$mdThemeName",e)}var d=i.controller("mdTheme"),c=n.attr("md-theme-watch");if((v||t.isDefined(c))&&"false"!=c){var m=e.$watch(function(){return d&&d.$mdTheme||E},a);n.on("$destroy",m)}else{var l=d&&d.$mdTheme||E;a(l)}},i.THEMES=t.extend({},s),i.defaultTheme=function(){return E},i.registered=r,i}l={},s={};var g,E="default",v=!1;return t.extend(l,e),u.$inject=["$rootScope","$log"],g={definePalette:o,extendPalette:r,theme:d,setDefaultTheme:function(e){E=e},alwaysWatchTheme:function(e){v=e},$get:u,_LIGHT_DEFAULT_HUES:A,_DARK_DEFAULT_HUES:T,_PALETTES:l,_THEMES:s,_parseRules:i,_rgba:m}}function o(e,t,n){return{priority:100,link:{pre:function(o,r,i){var a={$setTheme:function(t){e.registered(t)||n.warn("attempted to use unregistered theme '"+t+"'"),a.$mdTheme=t}};r.data("$mdThemeController",a),a.$setTheme(t(i.mdTheme)(o)),i.$observe("mdTheme",a.$setTheme)}}}}function r(e){return e}function i(e,n,o){d(e,n),o=o.replace(/THEME_NAME/g,e.name);var r=[],i=e.colors[n],a=new RegExp(".md-"+e.name+"-theme","g"),c=new RegExp("('|\")?{{\\s*("+n+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),s=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow)-?(\d\.?\d*)?\s*\}\}'?"?/g,u=l[i.name];return o=o.replace(s,function(t,n,o,r){return"foreground"===n?"shadow"==o?e.foregroundShadow:e.foregroundPalette[o]||e.foregroundPalette[1]:(0===o.indexOf("hue")&&(o=e.colors[n].hues[o]),m((l[e.colors[n].name][o]||"").value,r))}),t.forEach(i.hues,function(t,n){var i=o.replace(c,function(e,n,o,r,i){return m(u[t]["color"===r?"value":"contrast"],i)});"default"!==n&&(i=i.replace(a,".md-"+e.name+"-theme.md-"+n)),"default"==e.name&&(i=i.replace(/\.md-default-theme/g,"")),r.push(i)}),r}function a(e){function n(e){var n=e.contrastDefaultColor,o=e.contrastLightColors||[],r=e.contrastStrongLightColors||[],i=e.contrastDarkColors||[];"string"==typeof o&&(o=o.split(" ")),"string"==typeof r&&(r=r.split(" ")),"string"==typeof i&&(i=i.split(" ")),delete e.contrastDefaultColor,delete e.contrastLightColors,delete e.contrastStrongLightColors,delete e.contrastDarkColors,t.forEach(e,function(a,d){function m(){return"light"===n?i.indexOf(d)>-1?g:r.indexOf(d)>-1?v:E:o.indexOf(d)>-1?r.indexOf(d)>-1?v:E:g}if(!t.isObject(a)){var l=c(a);if(!l)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",a).replace("%2",e.name).replace("%3",d));e[d]={value:l,contrast:m()}}})}var o=document.getElementsByTagName("head")[0],r=o?o.firstElementChild:null,a=e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(r&&0!==a.length){t.forEach(l,n);var d={},m=a.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.length}).map(function(e){return e.trim()+"}"}),f=new RegExp("md-("+M.join("|")+")","g");M.forEach(function(e){d[e]=""}),m.forEach(function(e){for(var t,n=(e.match(f),0);t=M[n];n++)if(e.indexOf(".md-"+t)>-1)return d[t]+=e;for(n=0;t=M[n];n++)if(e.indexOf(t)>-1)return d[t]+=e;return d[$]+=e}),t.forEach(s,function(e){u[e.name]||(M.forEach(function(t){for(var n=i(e,t,d[t]);n.length;){var a=document.createElement("style");a.setAttribute("type","text/css"),a.appendChild(document.createTextNode(n.shift())),o.insertBefore(a,r)}}),e.colors.primary.name==e.colors.accent.name&&console.warn("$mdThemingProvider: Using the same palette for primary and accent. This violates the material design spec."),u[e.name]=!0)})}}function d(e,t){if(!l[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(l).join(", ")))}function c(e){if(t.isArray(e)&&3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==e.charAt(0)&&(e=e.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(e)){var n=e.length/3,o=e.substr(0,n),r=e.substr(n,n),i=e.substr(2*n);return 1===n&&(o+=o,r+=r,i+=i),[parseInt(o,16),parseInt(r,16),parseInt(i,16)]}}function m(e,n){return e?(4==e.length&&(e=t.copy(e),n?e.pop():n=e.pop()),n&&("number"==typeof n||"string"==typeof n&&n.length)?"rgba("+e.join(",")+","+n+")":"rgb("+e.join(",")+")"):"rgb('0,0,0')"}t.module("material.core.theming",["material.core.theming.palette"]).directive("mdTheme",o).directive("mdThemable",r).provider("$mdTheming",e).run(a);var l,s,u={},f={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.26)",4:"rgba(0,0,0,0.12)"},p={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.3)",4:"rgba(255,255,255,0.12)"},h="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",b="",g=c("rgba(0,0,0,0.87)"),E=c("rgba(255,255,255,0.87"),v=c("rgb(255,255,255)"),M=["primary","accent","warn","background"],$="primary",A={accent:{"default":"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{"default":"A100","hue-1":"300","hue-2":"800","hue-3":"900"}},T={background:{"default":"800","hue-1":"300","hue-2":"600","hue-3":"900"}};M.forEach(function(e){var t={"default":"500","hue-1":"300","hue-2":"800","hue-3":"A100"};A[e]||(A[e]=t),T[e]||(T[e]=t)});var C=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"];e.$inject=["$mdColorPalette"],o.$inject=["$mdTheming","$interpolate","$log"],r.$inject=["$mdTheming"],a.$inject=["$injector"]}(),function(){t.module("material.components.autocomplete",["material.core","material.components.icon"])}(),function(){function e(e){return e}t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",e),e.$inject=["$mdTheming"]}(),function(){function e(){return{restrict:"E"}}function n(e){function n(e,n,i,a,d,c,m,l,s){function u(o,r,s){r=i.extractElementByName(r,"md-bottom-sheet"),h=d('<md-backdrop class="md-opaque md-bottom-sheet-backdrop">')(o),h.on("click",function(){a(m.cancel)}),c.inherit(h,s.parent),e.enter(h,s.parent,null);var u=new p(r,s.parent);return s.bottomSheet=u,s.targetEvent&&t.element(s.targetEvent.target).blur(),c.inherit(u.element,s.parent),s.disableParentScroll&&(s.lastOverflow=s.parent.css("overflow"),s.parent.css("overflow","hidden")),e.enter(u.element,s.parent).then(function(){var e=t.element(r[0].querySelector("button")||r[0].querySelector("a")||r[0].querySelector("[ng-click]"));e.focus(),s.escapeToClose&&(s.rootElementKeyupCallback=function(e){e.keyCode===n.KEY_CODE.ESCAPE&&a(m.cancel)},l.on("keyup",s.rootElementKeyupCallback))})}function f(n,o,r){var i=r.bottomSheet;return e.leave(h),e.leave(i.element).then(function(){r.disableParentScroll&&(r.parent.css("overflow",r.lastOverflow),delete r.lastOverflow),i.cleanup(),r.targetEvent&&t.element(r.targetEvent.target).focus()})}function p(e,t){function i(t){e.css(n.CSS.TRANSITION_DURATION,"0ms")}function d(t){var o=t.pointer.distanceY;5>o&&(o=Math.max(-r,o/2)),e.css(n.CSS.TRANSFORM,"translate3d(0,"+(r+o)+"px,0)")}function c(t){if(t.pointer.distanceY>0&&(t.pointer.distanceY>20||Math.abs(t.pointer.velocityY)>o)){var r=e.prop("offsetHeight")-t.pointer.distanceY,i=Math.min(r/t.pointer.velocityY*.75,500);e.css(n.CSS.TRANSITION_DURATION,i+"ms"),a(m.cancel)}else e.css(n.CSS.TRANSITION_DURATION,""),e.css(n.CSS.TRANSFORM,"")}var l=s.register(t,"drag",{horizontal:!1});return t.on("$md.dragstart",i).on("$md.drag",d).on("$md.dragend",c),{element:e,cleanup:function(){l(),t.off("$md.dragstart",i).off("$md.drag",d).off("$md.dragend",c)}}}var h;return{themable:!0,targetEvent:null,onShow:u,onRemove:f,escapeToClose:!0,disableParentScroll:!0}}var o=.5,r=80;return n.$inject=["$animate","$mdConstant","$mdUtil","$timeout","$compile","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture"],e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","targetEvent"],options:n})}t.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",n),n.$inject=["$$interimElementProvider"]}(),function(){function e(e,n,o,r){function i(e){return t.isDefined(e.href)||t.isDefined(e.ngHref)||t.isDefined(e.ngLink)||t.isDefined(e.uiSref)}function a(e,t){return i(t)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" ng-transclude></button>'}function d(a,d,c){var m=d[0];n(d),e.attach(a,d);var l=m.textContent.trim();l||o.expect(d,"aria-label"),i(c)&&t.isDefined(c.ngDisabled)&&a.$watch(c.ngDisabled,function(e){d.attr("tabindex",e?-1:0)}),d.on("click",function(e){c.disabled===!0&&(e.preventDefault(),e.stopImmediatePropagation())}),a.mouseActive=!1,d.on("mousedown",function(){a.mouseActive=!0,r(function(){a.mouseActive=!1},100)}).on("focus",function(){a.mouseActive===!1&&d.addClass("md-focused")}).on("blur",function(){d.removeClass("md-focused")})}return{restrict:"EA",replace:!0,transclude:!0,template:a,link:d}}t.module("material.components.button",["material.core"]).directive("mdButton",e),e.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$timeout"]}(),function(){function e(e){return{restrict:"E",link:function(t,n,o){e(n)}}}t.module("material.components.card",["material.core"]).directive("mdCard",e),e.$inject=["$mdTheming"]}(),function(){function e(e,n,o,r,i,a,d){function c(n,c){return c.type="checkbox",c.tabindex=c.tabindex||"0",n.attr("role",c.type),function(n,c,l,s){function u(e,t,o){l[e]&&n.$watch(l[e],function(e){o[e]&&c.attr(t,o[e])})}function f(e){var t=e.which||e.keyCode;(t===r.KEY_CODE.SPACE||t===r.KEY_CODE.ENTER)&&(e.preventDefault(),c.hasClass("md-focused")||c.addClass("md-focused"),p(e))}function p(e){c[0].hasAttribute("disabled")||n.$apply(function(){var t=l.ngChecked?l.checked:!s.$viewValue;s.$setViewValue(t,e&&e.type),s.$render()})}function h(){s.$viewValue?c.addClass(m):c.removeClass(m)}s=s||a.fakeNgModel(),i(c),l.ngChecked&&n.$watch(n.$eval.bind(n,l.ngChecked),s.$setViewValue.bind(s)),u("ngDisabled","tabindex",{"true":"-1","false":l.tabindex}),o.expectWithText(c,"aria-label"),e.link.pre(n,{on:t.noop,0:{}},l,[s]),n.mouseActive=!1,c.on("click",p).on("keypress",f).on("mousedown",function(){n.mouseActive=!0,d(function(){n.mouseActive=!1},100)}).on("focus",function(){n.mouseActive===!1&&c.addClass("md-focused")}).on("blur",function(){c.removeClass("md-focused")}),s.$render=h}}e=e[0];var m="md-checked";return{restrict:"E",transclude:!0,require:"?ngModel",priority:210,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:c}}t.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e),e.$inject=["inputDirective","$mdInkRipple","$mdAria","$mdConstant","$mdTheming","$mdUtil","$timeout"]}(),function(){t.module("material.components.chips",["material.core","material.components.autocomplete"])}(),function(){function e(e){function t(e,t){this.$scope=e,this.$element=t}return{restrict:"E",controller:["$scope","$element",t],link:function(t,o,r){o[0];e(o),t.$broadcast("$mdContentLoaded",o),n(o[0])}}}function n(e){t.element(e).on("$md.pressdown",function(t){"t"===t.pointer.type&&(t.$materialScrollFixed||(t.$materialScrollFixed=!0,0===e.scrollTop?e.scrollTop=1:e.scrollHeight===e.scrollTop+e.offsetHeight&&(e.scrollTop-=1)))})}t.module("material.components.content",["material.core"]).directive("mdContent",e),e.$inject=["$mdTheming"]}(),function(){function e(e,t){return{restrict:"E",link:function(n,o,r){t(o),e(function(){var e=o[0].querySelector("md-dialog-content");e&&e.scrollHeight>e.clientHeight&&o.addClass("md-content-overflow")})}}}function n(e){function n(e,t){return{template:['<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}">','<md-dialog-content role="document" tabIndex="-1">','<h2 class="md-title">{{ dialog.title }}</h2>',"<p>{{ dialog.content }}</p>","</md-dialog-content>",'<div class="md-actions">','<md-button ng-if="dialog.$type == \'confirm\'" ng-click="dialog.abort()" class="md-primary">',"{{ dialog.cancel }}","</md-button>",'<md-button ng-click="dialog.hide()" class="md-primary">',"{{ dialog.ok }}","</md-button>","</div>","</md-dialog>"].join(""),controller:function(){this.hide=function(){e.hide(!0)},this.abort=function(){e.cancel()}},controllerAs:"dialog",bindToController:!0,theme:t.defaultTheme()}}function o(e,n,o,r,i,a,d,c,m,l,s){function u(e){var t=document.querySelector("md-dialog");t&&!t.contains(e.target)&&(e.stopImmediatePropagation(),t.focus())}function f(e,l,s){function f(){var e=l[0].querySelector(".dialog-close");if(!e){var n=l[0].querySelectorAll(".md-actions button");e=n[n.length-1]}return t.element(e)}t.element(n[0].body).addClass("md-dialog-is-showing"),l=o.extractElementByName(l,"md-dialog"),s.parent=t.element(s.parent),s.popInTarget=t.element((s.targetEvent||{}).target);var p=f();if(s.hasBackdrop){var b=s.parent[0]==n[0].body&&n[0].documentElement&&n[0].documentElement.scrollTop?t.element(n[0].documentElement):s.parent,v=b.prop("scrollTop");s.backdrop=t.element('<md-backdrop class="md-dialog-backdrop md-opaque">'),s.backdrop.css("top",v+"px"),i.inherit(s.backdrop,s.parent),m.enter(s.backdrop,s.parent),l.css("top",v+"px")}var M="dialog",$=p;return"alert"===s.$type&&(M="alertdialog",$=l.find("md-dialog-content")),h(l.find("md-dialog"),M,s),document.addEventListener("focus",u,!0),s.disableParentScroll&&(s.lastOverflow=s.parent.css("overflow"),s.parent.css("overflow","hidden")),E(l,s.parent,s.popInTarget&&s.popInTarget.length&&s.popInTarget).then(function(){g(l,!0),s.escapeToClose&&(s.rootElementKeyupCallback=function(e){e.keyCode===r.KEY_CODE.ESCAPE&&d(a.cancel)},c.on("keyup",s.rootElementKeyupCallback)),s.clickOutsideToClose&&(s.dialogClickOutsideCallback=function(e){e.target===l[0]&&d(a.cancel)},l.on("click",s.dialogClickOutsideCallback)),s.focusOnOpen&&$.focus()})}function p(e,o,r){return t.element(n[0].body).removeClass("md-dialog-is-showing"),r.backdrop&&m.leave(r.backdrop),r.disableParentScroll&&(r.parent.css("overflow",r.lastOverflow),delete r.lastOverflow),r.escapeToClose&&c.off("keyup",r.rootElementKeyupCallback),r.clickOutsideToClose&&o.off("click",r.dialogClickOutsideCallback),g(o,!1),document.removeEventListener("focus",u,!0),v(o,r.parent,r.popInTarget&&r.popInTarget.length&&r.popInTarget).then(function(){o.remove(),r.popInTarget&&r.popInTarget.focus()})}function h(t,n,r){t.attr({role:n,tabIndex:"-1"});var i=t.find("md-dialog-content");0===i.length&&(i=t);var a=t.attr("id")||"dialog_"+o.nextUid();i.attr("id",a),t.attr("aria-describedby",a),r.ariaLabel?e.expect(t,"aria-label",r.ariaLabel):e.expectAsync(t,"aria-label",function(){var e=i.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")})}function b(e,t){return-1!==t.indexOf(e.nodeName)?!0:void 0}function g(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var r=e.parentNode.children,i=0;i<r.length;i++)e===r[i]||b(r[i],["SCRIPT","STYLE"])||r[i].setAttribute(o,t);n(e=e.parentNode)}}var o="aria-hidden";e=e[0],n(e)}function E(e,t,n){var i=e.find("md-dialog");return t.append(e),M(i,n),l(function(){i.addClass("transition-in").css(r.CSS.TRANSFORM,"")}),o.transitionEndPromise(i)}function v(e,t,n){var r=e.find("md-dialog");return r.addClass("transition-out").removeClass("transition-in"),M(r,n),o.transitionEndPromise(r)}function M(e,t){if(t){var n=t[0].getBoundingClientRect(),o=e[0].getBoundingClientRect(),i=Math.min(.5,n.width/o.width),a=Math.min(.5,n.height/o.height);e.css(r.CSS.TRANSFORM,"translate3d("+(-o.left+n.left+n.width/2-o.width/2)+"px,"+(-o.top+n.top+n.height/2-o.height/2)+"px,0) scale("+i+","+a+")")}}return{hasBackdrop:!0,isolateScope:!0,onShow:f,onRemove:p,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,focusOnOpen:!0,disableParentScroll:!0,transformTemplate:function(e){return'<div class="md-dialog-container">'+e+"</div>"}}}return n.$inject=["$mdDialog","$mdTheming"],o.$inject=["$mdAria","$document","$mdUtil","$mdConstant","$mdTheming","$mdDialog","$timeout","$rootElement","$animate","$$rAF","$q"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","parent"],options:o}).addPreset("alert",{methods:["title","content","ariaLabel","ok","theme"],options:n}).addPreset("confirm",{methods:["title","content","ariaLabel","ok","cancel","theme"],options:n})}t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",n),e.$inject=["$$rAF","$mdTheming"],n.$inject=["$$interimElementProvider"]}(),function(){function e(e){return{restrict:"E",link:e}}t.module("material.components.divider",["material.core"]).directive("mdDivider",e),e.$inject=["$mdTheming"]}(),function(){function e(e,o,r,i){function a(n,a,d,c){function m(){for(var e in o.MEDIA)i(e),i.getQuery(o.MEDIA[e]).addListener(T);return i.watchResponsiveAttributes(["md-cols","md-row-height"],d,s)}function l(){c.layoutDelegate=t.noop,C();for(var e in o.MEDIA)i.getQuery(o.MEDIA[e]).removeListener(T)}function s(e){null==e?c.invalidateLayout():i(e)&&c.invalidateLayout()}function u(e){var o=b(),i={tileSpans:g(o),colCount:E(),rowMode:$(),rowHeight:M(),gutter:v()};if(e||!t.equals(i,y)){var d=r(i.colCount,i.tileSpans,o).map(function(e,n){return{grid:{element:a,style:h(i.colCount,n,i.gutter,i.rowMode,i.rowHeight)},tiles:e.map(function(e,n){return{element:t.element(o[n]),style:p(e.position,e.spans,i.colCount,i.rowCount,i.gutter,i.rowMode,i.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:d}}),y=i}}function f(e){return w+e+k}function p(e,t,n,o,r,i,a){var d=1/n*100,c=(n-1)/n,m=N({share:d,gutterShare:c,gutter:r}),l={left:x({unit:m,offset:e.col,gutter:r}),width:_({unit:m,span:t.col,gutter:r}),paddingTop:"",marginTop:"",top:"",height:""};switch(i){case"fixed":l.top=x({unit:a,offset:e.row,gutter:r}),l.height=_({unit:a,span:t.row,gutter:r});break;case"ratio":var s=d/a,u=N({share:s,gutterShare:c,gutter:r});l.paddingTop=_({unit:u,span:t.row,gutter:r}),l.marginTop=x({unit:u,offset:e.row,gutter:r});break;case"fit":var f=(o-1)/o,s=1/o*100,u=N({share:s,gutterShare:f,gutter:r});l.top=x({unit:u,offset:e.row,gutter:r}),l.height=_({unit:u,span:t.row,gutter:r})}return l}function h(e,t,n,o,r){var i={height:"",paddingBottom:""};switch(o){case"fixed":i.height=_({unit:r,span:t,gutter:n});break;case"ratio":var a=1===e?0:(e-1)/e,d=1/e*100,c=d*(1/r),m=N({share:c,gutterShare:a,gutter:n});i.paddingBottom=_({unit:m,span:t,gutter:n});break;case"fit":}return i}function b(){return[].filter.call(a.children(),function(e){return"MD-GRID-TILE"==e.tagName})}function g(e){return[].map.call(e,function(e){var n=t.element(e).controller("mdGridTile");return{row:parseInt(i.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(i.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}})}function E(){var e=parseInt(i.getResponsiveAttribute(d,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}function v(){return A(i.getResponsiveAttribute(d,"md-gutter")||1)}function M(){var e=i.getResponsiveAttribute(d,"md-row-height");switch($()){case"fixed":return A(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}function $(){var e=i.getResponsiveAttribute(d,"md-row-height");return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function A(e){return/\D$/.test(e)?e:e+"px"}a.attr("role","list"),c.layoutDelegate=u;var T=t.bind(c,c.invalidateLayout),C=m();n.$on("$destroy",l);var y,w=e.startSymbol(),k=e.endSymbol(),N=e(f("share")+"% - ("+f("gutter")+" * "+f("gutterShare")+")"),x=e("calc(("+f("unit")+" + "+f("gutter")+") * "+f("offset")+")"),_=e("calc(("+f("unit")+") * "+f("span")+" + ("+f("span")+" - 1) * "+f("gutter")+")")}return{restrict:"E",controller:n,scope:{mdOnLayout:"&"},link:a}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e,this.layoutDelegate=t.noop}function o(e){function n(t,n){var o,a,d,c,m,l;return c=e.time(function(){a=r(t,n)}),o={layoutInfo:function(){return a},map:function(t){return m=e.time(function(){var e=o.layoutInfo();d=t(e.positioning,e.rowCount)}),o},reflow:function(t){return l=e.time(function(){var e=t||i;e(d.grid,d.tiles)}),o},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:m,reflowTime:l,totalTime:c+m+l}}}}function o(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}function r(e,t){function n(t,n){if(t.col>e)throw"md-grid-list: Tile at position "+n+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(var a=0,l=0;l-a<t.col;)d>=e?o():(a=m.indexOf(0,d),-1!==a&&-1!==(l=i(a+1))?d=l+1:(a=l=0,o()));return r(a,t.col,t.row),d=a+t.col,{col:a,row:c}}function o(){d=0,c++,r(0,e,-1)}function r(e,t,n){for(var o=e;e+t>o;o++)m[o]=Math.max(m[o]+n,0)}function i(e){var t;for(t=e;t<m.length;t++)if(0!==m[t])return t;return t===m.length?t:void 0}function a(){for(var t=[],n=0;e>n;n++)t.push(0);return t}var d=0,c=0,m=a();return{positioning:t.map(function(e,t){return{spans:e,position:n(e,t)}}),rowCount:c+Math.max.apply(Math,m)}}var i=o;return n.animateWith=function(e){i=t.isFunction(e)?e:o},n}function r(e){function n(n,o,r,i){o.attr("role","listitem");var a=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],r,t.bind(i,i.invalidateLayout));i.invalidateTiles(),n.$on("$destroy",function(){a(),i.invalidateLayout()}),t.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(e,t){e!==t&&i.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:n}}function i(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",r).directive("mdGridTileFooter",i).directive("mdGridTileHeader",i).factory("$mdGridLayout",o),e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],n.$inject=["$timeout"],n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(t.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},o.$inject=["$mdUtil"],r.$inject=["$mdMedia"]}(),function(){function e(e,n,o,r){function i(n,o){var i=function(e){return t.isDefined(o[e])?0==o[e].length:!1},a=function(e){return o[e]&&o[e].length>0},d=function(e){return a(e)?o[e]:""},c='<span class="md-font {{classNames}}" ng-class="fontIcon"></span>',m='<span class="{{classNames}}" ng-transclude></span>',l=a("mdSvgIcon")?"":a("mdSvgSrc")?"":i("mdFontIcon")?"":a("mdFontIcon")?c:m,s=l==m?e.fontSet(d("mdFontSet"))+" ":"";return s=(s+d("class")).trim(),r(l)({classNames:s})}function a(t,r,i){function a(){var e=r.parent();return e.attr("aria-label")||e.text()?!0:e.parent().attr("aria-label")||e.parent().text()?!0:!1}n(r);var d=i.alt||t.fontIcon||t.svgIcon||r.text(),c=i.$normalize(i.$attr.mdSvgIcon||i.$attr.mdSvgSrc||"");i["aria-label"]||(""==d||a()?r.text()||o.expect(r,"aria-hidden","true"):(o.expect(r,"aria-label",d),o.expect(r,"role","img"))),c&&i.$observe(c,function(t){r.empty(),t&&e(t).then(function(e){r.append(e)})})}return{scope:{fontSet:"@mdFontSet",fontIcon:"@mdFontIcon",svgIcon:"@mdSvgIcon",svgSrc:"@mdSvgSrc"},restrict:"E",transclude:!0,template:i,link:a}}t.module("material.components.icon",["material.core"]).directive("mdIcon",e),e.$inject=["$mdIcon","$mdTheming","$mdAria","$interpolate"]}(),function(){function e(){}function n(e,t){this.url=e,this.iconSize=t||r.defaultIconSize}function o(e,n,o,r,i){function a(e){return e=e||"",E[e]?o.when(E[e].clone()):v.test(e)?s(e).then(c(e)):(-1==e.indexOf(":")&&(e="$default:"+e),m(e)["catch"](l)["catch"](u)["catch"](f).then(c(e)))}function d(n){var o=t.isUndefined(n)||!(n&&n.length);if(o)return e.defaultFontSet;var r=n;return t.forEach(e.fontSets,function(e){e.alias==n&&(r=e.fontSet||r)}),r}function c(t){return function(n){return E[t]=p(n)?n:new h(n,e[t]),E[t].clone()}}function m(t){var n=e[t];return n?s(n.url).then(function(e){return new h(e,n)}):o.reject(t)}function l(t){function n(e){var n=t.slice(t.lastIndexOf(":")+1),r=e.querySelector("#"+n);return r?new h(r,i):o.reject(t)}var r=t.substring(0,t.lastIndexOf(":"))||"$default",i=e[r];return i?s(i.url).then(n):o.reject(t)}function s(e){return n.get(e,{cache:i}).then(function(e){return t.element("<div>").append(e.data).find("svg")[0]})}function u(e){var n;return t.isString(e)&&(n="icon "+e+" not found",r.warn(n)),o.reject(n||e)}function f(e){var n=t.isString(e)?e:e.message||e.data||e.statusText;return r.warn(n),o.reject(n)}function p(e){return t.isDefined(e.element)&&t.isDefined(e.config)}function h(e,n){"svg"!=e.tagName&&(e=t.element('<svg xmlns="http://www.w3.org/2000/svg">').append(e)[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=n,this.prepare()}function b(){var n=this.config?this.config.iconSize:e.defaultIconSize;t.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+n+" "+n},function(e,t){this.element.setAttribute(t,e)},this),t.forEach({"pointer-events":"none",display:"block"},function(e,t){this.element.style[t]=e},this)}function g(){return this.element.cloneNode(!0)}var E={},v=/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i;return h.prototype={clone:g,prepare:b},a.fontSet=d,a}t.module("material.components.icon").provider("$mdIcon",e);var r={defaultIconSize:24,defaultFontSet:"material-icons",fontSets:[]};e.prototype={icon:function(e,t,o){return-1==e.indexOf(":")&&(e="$default:"+e),r[e]=new n(t,o),this},iconSet:function(e,t,o){return r[e]=new n(t,o),this},defaultIconSet:function(e,t){var o="$default";return r[o]||(r[o]=new n(e,t)),r[o].iconSize=t||r.defaultIconSize,this},fontSet:function(e,t){r.fontSets.push({alias:e,fontSet:t||e})},defaultFontSet:function(e){return r.defaultFontSet=e?e:"",this},defaultIconSize:function(e){return r.defaultIconSize=e,this},preloadIcons:function(e){var t=this,n=[{id:"md-tabs-arrow",url:"md-tabs-arrow.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 "/></g></svg>'},{id:"md-close",url:"md-close.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"/></g></svg>'},{id:"md-cancel",url:"md-cancel.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M12 2c-5.53 0-10 4.47-10 10s4.47 10 10 10 10-4.47 10-10-4.47-10-10-10zm5 13.59l-1.41 1.41-3.59-3.59-3.59 3.59-1.41-1.41 3.59-3.59-3.59-3.59 1.41-1.41 3.59 3.59 3.59-3.59 1.41 1.41-3.59 3.59 3.59 3.59z"/></g></svg>'},{id:"md-menu",url:"md-menu.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100"><path d="M 50 0 L 100 14 L 92 80 L 50 100 L 8 80 L 0 14 Z" fill="#b2b2b2"></path><path d="M 50 5 L 6 18 L 13.5 77 L 50 94 Z" fill="#E42939"></path><path d="M 50 5 L 94 18 L 86.5 77 L 50 94 Z" fill="#B72833"></path><path d="M 50 7 L 83 75 L 72 75 L 65 59 L 50 59 L 50 50 L 61 50 L 50 26 Z" fill="#b2b2b2"></path><path d="M 50 7 L 17 75 L 28 75 L 35 59 L 50 59 L 50 50 L 39 50 L 50 26 Z" fill="#fff"></path></svg>'},{id:"md-toggle-arrow",url:"md-toggle-arrow-svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 48 48"><path d="M24 16l-12 12 2.83 2.83 9.17-9.17 9.17 9.17 2.83-2.83z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>'}];n.forEach(function(n){t.icon(n.id,n.url),e.put(n.url,n.svg)})},$get:["$http","$q","$log","$templateCache",function(e,t,n,i){return this.preloadIcons(i),o(r,e,t,n,i)}]}}(),function(){function e(e,t){function n(t,n,o){e(n)}function o(e,n,o){var r=this;r.isErrorGetter=o.mdIsError&&t(o.mdIsError),r.delegateClick=function(){r.input.focus()},r.element=n,r.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},r.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},r.setInvalid=function(e){n.toggleClass("md-input-invalid",!!e)},e.$watch(function(){return r.label&&r.input},function(e){e&&!r.label.attr("for")&&r.label.attr("for",r.input.attr("id"))})}return o.$inject=["$scope","$element","$attrs"],{restrict:"E",link:n,controller:o}}function n(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,o){o&&!n.mdNoFloat&&(o.label=t,e.$on("$destroy",function(){o.label=null}))}}}function o(e,n,o){function r(r,i,a,d){function c(e){return s.setHasValue(!u.$isEmpty(e)),e}function m(){s.setHasValue(i.val().length>0||(i[0].validity||{}).badInput)}function l(){function o(e){return l(),e}function a(){m.style.height="auto",m.scrollTop=0;var e=d();e&&(m.style.height=e+"px")}function d(){var e=m.scrollHeight-m.offsetHeight;return m.offsetHeight+(e>0?e:0)}function c(e){m.scrollTop=0;var t=m.scrollHeight-m.offsetHeight,n=m.offsetHeight+t;m.style.height=n+"px"}var m=i[0],l=e.debounce(a,1);u?(u.$formatters.push(o),u.$viewChangeListeners.push(o)):l(),i.on("keydown input",l),i.on("scroll",c),t.element(n).on("resize",l),r.$on("$destroy",function(){t.element(n).off("resize",l)})}var s=d[0],u=d[1]||e.fakeNgModel(),f=t.isDefined(a.readonly);
-
-if(s){if(s.input)throw new Error("<md-input-container> can only have *one* <input> or <textarea> child element!");s.input=i,s.label||o.expect(i,"aria-label",i.attr("placeholder")),i.addClass("md-input"),i.attr("id")||i.attr("id","input_"+e.nextUid()),"textarea"===i[0].tagName.toLowerCase()&&l();var p=s.isErrorGetter||function(){return u.$invalid&&u.$touched};r.$watch(p,s.setInvalid),u.$parsers.push(c),u.$formatters.push(c),i.on("input",m),f||i.on("focus",function(e){s.setFocused(!0)}).on("blur",function(e){s.setFocused(!1),m()}),r.$on("$destroy",function(){s.setFocused(!1),s.setHasValue(!1),s.input=null})}}return{restrict:"E",require:["^?mdInputContainer","?ngModel"],link:r}}function r(e){function n(n,o,r,i){function a(e){return l.text((o.val()||e||"").length+"/"+d),e}var d,c=i[0],m=i[1],l=t.element('<div class="md-char-counter">');r.$set("ngTrim","false"),m.element.append(l),c.$formatters.push(a),c.$viewChangeListeners.push(a),o.on("input keydown",function(){a()}),n.$watch(r.mdMaxlength,function(n){d=n,t.isNumber(n)&&n>0?(l.parent().length||e.enter(l,m.element,t.element(m.element[0].lastElementChild)),a()):e.leave(l)}),c.$validators["md-maxlength"]=function(e,n){return!t.isNumber(d)||0>d?!0:(e||o.val()||n||"").length<=d}}return{restrict:"A",require:["ngModel","^mdInputContainer"],link:n}}function i(e){function n(n,r,i,a){if(a&&-1==o.indexOf(r[0].nodeName)&&!t.isDefined(a.element.attr("md-no-float"))){var d=i.placeholder;if(r.removeAttr("placeholder"),0==a.element.find("label").length){var c='<label ng-click="delegateClick()">'+d+"</label>";a.element.addClass("md-icon-float"),a.element.prepend(c)}else e.warn("The placeholder='"+d+"' will be ignored since this md-input-container has a child label element.")}}var o=["MD-SELECT"];return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:n}}t.module("material.components.input",["material.core"]).directive("mdInputContainer",e).directive("label",n).directive("input",o).directive("textarea",o).directive("mdMaxlength",r).directive("placeholder",i),e.$inject=["$mdTheming","$parse"],o.$inject=["$mdUtil","$window","$mdAria"],r.$inject=["$animate"],i.$inject=["$log"]}(),function(){function e(e){return{restrict:"E",compile:function(t){return t[0].setAttribute("role","list"),e}}}function n(e,n,o){var r=["md-checkbox","md-switch"];return{restrict:"E",controller:"MdListController",compile:function(i,a){function d(){for(var e,t,n=["md-switch","md-checkbox"],o=0;t=n[o];++o)if((e=i.find(t)[0])&&!e.hasAttribute("aria-label")){var r=i.find("p")[0];if(!r)return;e.setAttribute("aria-label","Toggle "+r.textContent)}}function c(n){var o;if("div"==n)o=t.element('<div class="md-no-style md-list-item-inner">'),o.append(i.contents()),i.addClass("md-proxy-focus");else{o=t.element('<md-button class="md-no-style"><div class="md-list-item-inner"></div></md-button>');var r=["ng-click","aria-label","ng-disabled"];t.forEach(r,function(e){i[0].hasAttribute(e)&&(o[0].setAttribute(e,i[0].getAttribute(e)),i[0].removeAttribute(e))}),o.children().eq(0).append(i.contents())}if(i[0].setAttribute("tabindex","-1"),i.append(o),f&&f.hasAttribute("ng-click")){e.expect(f,"aria-label");var d=t.element('<md-button class="md-secondary-container md-icon-button">');d.attr("ng-click",f.getAttribute("ng-click")),f.removeAttribute("ng-click"),f.setAttribute("tabindex","-1"),f.classList.remove("md-secondary"),d.append(f),f=d[0]}f&&(f.hasAttribute("ng-click")||a.ngClick&&m(f))&&(i.addClass("md-with-secondary"),i.append(f))}function m(e){return-1!=r.indexOf(e.nodeName.toLowerCase())}function l(e,i,a,d){function c(){var e=i.children();e.length&&!e[0].hasAttribute("ng-click")&&t.forEach(r,function(e){t.forEach(s.querySelectorAll(e),function(e){l.push(e)})})}function m(){(l.length||u)&&(i.addClass("md-clickable"),d.attachRipple(e,t.element(i[0].querySelector(".md-no-style"))))}var l=[],s=i[0].firstElementChild,u=s&&s.hasAttribute("ng-click");c(),m(),i.hasClass("md-proxy-focus")&&l.length&&t.forEach(l,function(n){n=t.element(n),e.mouseActive=!1,n.on("mousedown",function(){e.mouseActive=!0,o(function(){e.mouseActive=!1},100)}).on("focus",function(){e.mouseActive===!1&&i.addClass("md-focused"),n.on("blur",function t(){i.removeClass("md-focused"),n.off("blur",t)})})}),u||l.length||s&&s.addEventListener("keypress",function(e){if("INPUT"!=e.target.nodeName&&"TEXTAREA"!=e.target.nodeName){var t=e.which||e.keyCode;t==n.KEY_CODE.SPACE&&s&&(s.click(),e.preventDefault(),e.stopPropagation())}}),i.off("click"),i.off("keypress"),l.length&&s&&i.children().eq(0).on("click",function(e){s.contains(e.target)&&t.forEach(l,function(n){e.target===n||n.contains(e.target)||t.element(n).triggerHandler("click")})})}var s,u,f=i[0].querySelector(".md-secondary");if(i[0].setAttribute("role","listitem"),a.ngClick)c("button");else{for(var p,h=0;p=r[h];++h)if(u=i[0].querySelector(p)){s=!0;break}s?c("div"):i[0].querySelector("md-button")||i.addClass("md-no-proxy")}return d(),l}}}function o(e,t,n){function o(e,t){var o={};n.attach(e,t,o)}var r=this;r.attachRipple=o}t.module("material.components.list",["material.core"]).controller("MdListController",o).directive("mdList",e).directive("mdListItem",n),e.$inject=["$mdTheming"],n.$inject=["$mdAria","$mdConstant","$timeout"],o.$inject=["$scope","$element","$mdListInkRipple"]}(),function(){function e(e,t){function n(e){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),o}function o(n,o,i){t(o);var a=o[0],d=i.mdDiameter||48,c=d/48;a.style[e.CSS.TRANSFORM]="scale("+c+")",i.$observe("value",function(e){var t=r(e);o.attr("aria-valuenow",t)})}function r(e){return Math.max(0,Math.min(e||0,100))}return{restrict:"E",template:'<div class="md-spinner-wrapper"><div class="md-inner"><div class="md-gap"></div><div class="md-left"><div class="md-half-circle"></div></div><div class="md-right"><div class="md-half-circle"></div></div></div></div>',compile:n}}t.module("material.components.progressCircular",["material.core"]).directive("mdProgressCircular",e),e.$inject=["$mdConstant","$mdTheming"]}(),function(){function e(e,o,r){function i(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),a}function a(i,a,c){r(a);var m=a[0].querySelector(".md-bar1").style,l=a[0].querySelector(".md-bar2").style,s=t.element(a[0].querySelector(".md-container"));c.$observe("value",function(e){if("query"!=c.mdMode){var t=d(e);a.attr("aria-valuenow",t),l[o.CSS.TRANSFORM]=n[t]}}),c.$observe("mdBufferValue",function(e){m[o.CSS.TRANSFORM]=n[d(e)]}),e(function(){s.addClass("md-ready")})}function d(e){return e>100?100:0>e?0:Math.ceil(e||0)}return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:i}}t.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e),e.$inject=["$$rAF","$mdConstant","$mdTheming"];var n=function(){function e(e){var t=e/100,n=(e-100)/2;return"translateX("+n.toString()+"%) scale("+t.toString()+", 1)"}for(var t=new Array(101),n=0;101>n;n++)t[n]=e(n);return t}()}(),function(){function e(e,n,o,r){function i(i,a,d,c){function m(){a.hasClass("md-focused")||a.addClass("md-focused")}function l(o){var r=o.which||o.keyCode;switch(r){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:o.preventDefault(),s.selectPrevious(),m();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:o.preventDefault(),s.selectNext(),m();break;case n.KEY_CODE.ENTER:var i=t.element(e.getClosest(a[0],"form"));i.length>0&&i.triggerHandler("submit")}}o(a);var s=c[0],u=c[1]||e.fakeNgModel();s.init(u),i.mouseActive=!1,a.attr({role:"radiogroup",tabIndex:a.attr("tabindex")||"0"}).on("keydown",l).on("mousedown",function(e){i.mouseActive=!0,r(function(){i.mouseActive=!1},100)}).on("focus",function(){i.mouseActive===!1&&s.$element.addClass("md-focused")}).on("blur",function(){s.$element.removeClass("md-focused")})}function a(e){this._radioButtonRenderFns=[],this.$element=e}function d(){return{init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=t.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach(function(e){e()})},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return c(this.$element,1)},selectPrevious:function(){return c(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)}}}function c(n,o){var r=e.iterator(n[0].querySelectorAll("md-radio-button"),!0);if(r.count()){var i=function(e){return!t.element(e).attr("disabled")},a=n[0].querySelector("md-radio-button.md-checked"),d=r[0>o?"previous":"next"](a,i)||r.first();t.element(d).triggerHandler("click")}}return a.prototype=d(),{restrict:"E",controller:["$element",a],require:["mdRadioGroup","?ngModel"],link:{pre:i}}}function n(e,t,n){function o(o,i,a,d){function c(e){i[0].hasAttribute("disabled")||o.$apply(function(){d.setViewValue(a.value,e&&e.type)})}function m(){var e=d.getViewValue()==a.value;e!==s&&(s=e,i.attr("aria-checked",e),e?(i.addClass(r),d.setActiveDescendant(i.attr("id"))):i.removeClass(r))}function l(n,o){function r(){return a.id||"radio_"+t.nextUid()}o.ariaId=r(),n.attr({id:o.ariaId,role:"radio","aria-checked":"false"}),e.expectWithText(n,"aria-label")}var s;n(i),l(i,o),d.add(m),a.$observe("value",m),i.on("click",c).on("$destroy",function(){d.remove(m)})}var r="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:o}}t.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",n),e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],n.$inject=["$mdAria","$mdUtil","$mdTheming"]}(),function(){function e(e,o,r,i,a,d,c){function m(a,m){var l=a.find("md-select-label").remove();if(l.length){if(!l[0].firstElementChild){var s=t.element("<span>");s.append(l.contents()),l.append(s)}}else l=t.element("<md-select-label><span></span></md-select-label>");if(l.append('<span class="md-select-icon" aria-hidden="true"></span>'),l.addClass("md-select-label"),l[0].hasAttribute("id")||l.attr("id","select_label_"+o.nextUid()),a.find("md-content").length||a.append(t.element("<md-content>").append(a.contents())),m.mdOnOpen&&a.find("md-content").prepend(t.element("<md-progress-circular>").attr("md-mode","indeterminate").attr("ng-hide","$$loadingAsyncDone").wrap("<div>").parent()),m.name){var u=t.element('<select class="md-visually-hidden">');u.attr({name:"."+m.name,"ng-model":m.ngModel,"aria-hidden":"true",tabindex:"-1"});var f=a.find("md-option");t.forEach(f,function(e){var n=t.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?n.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&n.attr("value",e.getAttribute("value")),u.append(n)}),a.parent().append(u)}var p='<div class="md-select-menu-container"><md-select-menu '+(t.isDefined(m.multiple)?"multiple":"")+">"+a.html()+"</md-select-menu></div>";return a.empty().append(l),m.tabindex=m.tabindex||"0",function(a,m,l,s){function u(){var e=m.attr("placeholder");e||(e=m.find("md-select-label").text()),i.expect(m,"aria-label",e)}function f(){M&&(A=A||M.find("md-select-menu").controller("mdSelectMenu"),T.setLabelText(A.selectedLabels()))}function h(){M=t.element(p);var e=M.find("md-select-menu");e.data("$ngModelController",C),e.data("$mdSelectController",T),$=a.$new(),M=d(M)($),A=M.find("md-select-menu").controller("mdSelectMenu")}function b(e){var n=[32,13,38,40];if(-1!=n.indexOf(e.keyCode))e.preventDefault(),g(e);else if(e.keyCode<=90&&e.keyCode>=31){e.preventDefault();var o=A.optNodeForKeyboardSearch(e);if(!o)return;var r=t.element(o).controller("mdOption");A.isMultiple||A.deselect(Object.keys(A.selected)[0]),A.select(r.hashKey,r.value),A.refreshViewValue(),C.$render()}}function g(){a.$evalAsync(function(){E=!0,e.show({scope:$,preserveScope:!0,skipCompile:!0,element:M,target:m[0],hasBackdrop:!0,loadingAsync:l.mdOnOpen?a.$eval(l.mdOnOpen)||!0:!1}).then(function(e){E=!1})})}var E,v,M,$,A,T=s[0],C=s[1],y=s[2],w=m.find("md-select-label"),k=0!==w.text().length;if(h(),r(m),l.name&&y){var N=m.parent()[0].querySelector('select[name=".'+l.name+'"]');y.$removeControl(t.element(N).controller())}var x=C.$render;C.$render=function(){x(),f()},T.setLabelText=function(e){if(!k){T.setIsPlaceholder(!e),e=e||l.placeholder||"";var t=k?w:w.children().eq(0);t.text(e)}},T.setIsPlaceholder=function(e){e?w.addClass("md-placeholder"):w.removeClass("md-placeholder")},a.$$postDigest(function(){u(),f()});var _;l.$observe("ngMultiple",function(e){_&&_();var t=c(e);_=a.$watch(function(){return t(a)},function(e,t){(e!==n||t!==n)&&(e?m.attr("multiple","multiple"):m.removeAttr("multiple"),M&&(A.setMultiple(e),x=C.$render,C.$render=function(){x(),f()},A.refreshViewValue(),C.$render()))})}),l.$observe("disabled",function(e){"string"==typeof e&&(e=!0),(v===n||v!==e)&&(v=e,e?(m.attr({tabindex:-1,"aria-disabled":"true"}),m.off("click",g),m.off("keydown",b)):(m.attr({tabindex:l.tabindex,"aria-disabled":"false"}),m.on("click",g),m.on("keydown",b)))}),l.disabled||l.ngDisabled||(m.attr({tabindex:l.tabindex,"aria-disabled":"false"}),m.on("click",g),m.on("keydown",b));var H={role:"combobox","aria-expanded":"false"};m[0].hasAttribute("id")||(H.id="select_"+o.nextUid()),m.attr(H),a.$on("$destroy",function(){E?e.cancel().then(function(){M.remove()}):M.remove()})}}return{restrict:"E",require:["mdSelect","ngModel","?^form"],compile:m,controller:function(){}}}function o(e,o,r){function i(e,n,i,a){function d(){n.attr({id:"select_menu_"+o.nextUid(),role:"listbox","aria-multiselectable":l.isMultiple?"true":"false"})}function c(e){(13==e.keyCode||32==e.keyCode)&&m(e)}function m(n){var r=o.getClosest(n.target,"md-option"),i=r&&t.element(r).data("$mdOptionController");if(r&&i){var a=l.hashGetter(i.value),d=t.isDefined(l.selected[a]);e.$apply(function(){l.isMultiple?d?l.deselect(a):l.select(a,i.value):d||(l.deselect(Object.keys(l.selected)[0]),l.select(a,i.value)),l.refreshViewValue()})}}var l=a[0],s=a[1];r(n),n.on("click",m),n.on("keypress",c),s&&l.init(s),d()}function a(o,r,i){function a(){var e=l.ngModel.$modelValue||l.ngModel.$viewValue;if(t.isArray(e)){var n=Object.keys(l.selected),o=e.map(l.hashGetter),r=n.filter(function(e){return-1===o.indexOf(e)});r.forEach(l.deselect),o.forEach(function(t,n){l.select(t,e[n])})}}function c(){var e=l.ngModel.$viewValue||l.ngModel.$modelValue;Object.keys(l.selected).forEach(l.deselect),l.select(l.hashGetter(e),e)}var l=this;l.isMultiple=t.isDefined(r.multiple),l.selected={},l.options={},o.$watch(function(){return l.options},function(){l.ngModel.$render()},!0);var s;l.setMultiple=function(e){function n(e,n){return t.isArray(e||n||[])}var i=l.ngModel;l.isMultiple=e,s&&s(),l.isMultiple?(i.$validators["md-multiple"]=n,i.$render=a,o.$watchCollection(r.ngModel,function(e){n(e)&&a(e)})):(delete i.$validators["md-multiple"],i.$render=c)};var u,f,p,h="",b=300;l.optNodeForKeyboardSearch=function(e){u&&clearTimeout(u),u=setTimeout(function(){u=n,h="",p=n,f=n},b),h+=String.fromCharCode(e.keyCode);var o=new RegExp("^"+h,"i");f||(f=i.find("md-option"),p=new Array(f.length),t.forEach(f,function(e,t){p[t]=e.textContent.trim()}));for(var r=0;r<p.length;++r)if(o.test(p[r]))return f[r]},l.init=function(n){if(l.ngModel=n,n.$options&&n.$options.trackBy){var r={},i=e(n.$options.trackBy);l.hashGetter=function(e,t){return r.$value=e,i(t||o,r)}}else l.hashGetter=function(e){return t.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++m)):e};l.setMultiple(l.isMultiple)},l.selectedLabels=function(){var e=d(i[0].querySelectorAll("md-option[selected]"));return e.length?e.map(function(e){return e.textContent}).join(", "):""},l.select=function(e,t){var n=l.options[e];n&&n.setSelected(!0),l.selected[e]=t},l.deselect=function(e){var t=l.options[e];t&&t.setSelected(!1),delete l.selected[e]},l.addOption=function(e,n){if(t.isDefined(l.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');l.options[e]=n,t.isDefined(l.selected[e])&&(l.select(e,n.value),l.refreshViewValue())},l.removeOption=function(e){delete l.options[e]},l.refreshViewValue=function(){var e,t=[];for(var n in l.selected)t.push((e=l.options[n])?e.value:l.selected[n]);l.ngModel.$setViewValue(l.isMultiple?t:t[0])}}return a.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu","?ngModel"],controller:a,link:{pre:i}}}function r(e,n){function o(e,n){return e.append(t.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),r}function r(o,r,i,a){function d(e,t){var n=l.hashGetter(t,o),r=l.hashGetter(e,o);m.hashKey=r,m.value=e,l.removeOption(n,m),l.addOption(r,m)}function c(){var e={role:"option","aria-selected":"false"};r[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid()),r.attr(e)}var m=a[0],l=a[1];t.isDefined(i.ngValue)?o.$watch(i.ngValue,d):t.isDefined(i.value)?d(i.value):o.$watch(function(){return r.text()},d),o.$$postDigest(function(){i.$observe("selected",function(e){t.isDefined(e)&&(e?(l.isMultiple||l.deselect(Object.keys(l.selected)[0]),l.select(m.hashKey,m.value)):l.deselect(m.hashKey),l.refreshViewValue(),l.ngModel.$render())})}),e.attach(o,r),c(),o.$on("$destroy",function(){l.removeOption(m.hashKey,m)})}function i(e){this.selected=!1,this.setSelected=function(t){t&&!this.selected?e.attr({selected:"selected","aria-selected":"true"}):!t&&this.selected&&(e.removeAttr("selected"),e.attr("aria-selected","false")),this.selected=t}}return i.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:i,compile:o}}function i(){function e(e,n){var o=e.find("label");o.length||(o=t.element("<label>"),e.prepend(o)),n.label&&o.text(n.label)}return{restrict:"E",compile:e}}function a(e){function o(e,o,a,m,l,s,u){function f(n,r,i){function c(){i.target.attr("aria-expanded","true")}function f(){function t(e){var t=d(p),n=t.indexOf(i.focusedNode);-1===n?n=0:"next"===e&&n<t.length-1?n++:"prev"===e&&n>0&&n--;var o=i.focusedNode=t[n];o&&o.focus()}function a(){t("next")}function c(){t("prev")}function l(){s.isMultiple||(i.restoreFocus=!0,n.$evalAsync(function(){e.hide(s.ngModel.$viewValue)}))}if(!i.isRemoved){var s=i.selectEl.controller("mdSelectMenu")||{};r.addClass("md-clickable"),i.backdrop&&i.backdrop.on("click",function(t){t.preventDefault(),t.stopPropagation(),i.restoreFocus=!1,n.$apply(e.cancel)}),i.selectEl.on("keydown",function(t){switch(t.keyCode){case o.KEY_CODE.SPACE:case o.KEY_CODE.ENTER:var r=m.getClosest(t.target,"md-option");r&&(i.selectEl.triggerHandler({type:"click",target:r}),t.preventDefault());break;case o.KEY_CODE.TAB:case o.KEY_CODE.ESCAPE:t.preventDefault(),i.restoreFocus=!0,n.$apply(e.cancel)}}),i.selectEl.on("keydown",function(e){switch(e.keyCode){case o.KEY_CODE.UP_ARROW:return c();case o.KEY_CODE.DOWN_ARROW:return a();default:if(e.keyCode>=31&&e.keyCode<=90){var t=i.selectEl.controller("mdSelectMenu").optNodeForKeyboardSearch(e);t&&t.focus()}}}),i.selectEl.on("click",l),i.selectEl.on("keydown",function(e){(32==e.keyCode||13==e.keyCode)&&l()})}}if(!i.target)throw new Error('$mdSelect.show() expected a target element in options.target but got "'+i.target+'"!');t.extend(i,{isRemoved:!1,target:t.element(i.target),parent:t.element(i.parent),selectEl:r.find("md-select-menu"),contentEl:r.find("md-content"),backdrop:i.hasBackdrop&&t.element('<md-backdrop class="md-select-backdrop md-click-catcher">')}),i.resizeFn=function(){a(function(){a(function(){h(n,r,i)})})},t.element(u).on("resize",i.resizeFn),t.element(u).on("orientationchange",i.resizeFn),c(),r.removeClass("md-leave");var p=i.selectEl[0].getElementsByTagName("md-option");return i.loadingAsync&&i.loadingAsync.then?i.loadingAsync.then(function(){n.$$loadingAsyncDone=!0,a(function(){a(function(){i.isRemoved||h(n,r,i)})})}):i.loadingAsync&&(n.$$loadingAsyncDone=!0),i.disableParentScroll&&!m.getClosest(i.target,"MD-DIALOG")?i.restoreScroll=m.disableScrollAround(i.target):i.disableParentScroll=!1,s(f,75,!1),i.backdrop&&(l.inherit(i.backdrop,i.parent),i.parent.append(i.backdrop)),i.parent.append(r),a(function(){a(function(){i.isRemoved||h(n,r,i)})}),m.transitionEndPromise(i.selectEl,{timeout:350})}function p(e,o,r){r.isRemoved=!0,o.addClass("md-leave").removeClass("md-clickable"),r.target.attr("aria-expanded","false"),t.element(u).off("resize",r.resizeFn),t.element(u).off("orientationchange",r.resizefn),r.resizeFn=n;var i=r.selectEl.controller("mdSelect");return i&&i.setLabelText(r.selectEl.controller("mdSelectMenu").selectedLabels()),m.transitionEndPromise(o,{timeout:350}).then(function(){o.removeClass("md-active"),r.backdrop&&r.backdrop.remove(),o[0].parentNode===r.parent[0]&&r.parent[0].removeChild(o[0]),r.disableParentScroll&&r.restoreScroll(),r.restoreFocus&&r.target.focus()})}function h(e,t,n){var d,l=t[0],s=n.target[0].firstElementChild.firstElementChild,f=n.parent[0],p=n.selectEl[0],h=n.contentEl[0],b=f.getBoundingClientRect(),g=s.getBoundingClientRect(),E=!1,v={left:b.left+c,top:c,bottom:b.height-c,right:b.width-c-(m.floatingScrollbars()?16:0)},M={top:g.top-v.top,left:g.left-v.left,right:v.right-(g.left+g.width),bottom:v.bottom-(g.top+g.height)},$=b.width-2*c,A=h.scrollHeight>h.offsetHeight,T=p.querySelector("md-option[selected]"),C=p.getElementsByTagName("md-option"),y=p.getElementsByTagName("md-optgroup");d=T?T:y.length?y[0]:C.length?C[0]:h.firstElementChild||h,h.offsetWidth>$&&(h.style["max-width"]=$+"px"),E&&(h.style["min-width"]=g.width+"px"),A&&p.classList.add("md-overflow");var w=p.getBoundingClientRect(),k=i(d);if(d){var N=u.getComputedStyle(d);k.paddingLeft=parseInt(N.paddingLeft,10)||0,k.paddingRight=parseInt(N.paddingRight,10)||0}var x=d;if("MD-OPTGROUP"===(x.tagName||"").toUpperCase()&&(x=C[0]||h.firstElementChild||h),A){var _=h.offsetHeight/2;h.scrollTop=k.top+k.height/2-_,M.top<_?h.scrollTop=Math.min(k.top,h.scrollTop+_-M.top):M.bottom<_&&(h.scrollTop=Math.max(k.top+k.height-w.height,h.scrollTop-_+M.bottom))}var H,S,I;E?(H=g.left,S=g.top+g.height,I="50% 0",S+w.height>v.bottom&&(S=g.top-w.height,I="50% 100%")):(H=g.left+k.left-k.paddingLeft,S=Math.floor(g.top+g.height/2-k.height/2-k.top+h.scrollTop),I=k.left+g.width/2+"px "+(k.top+k.height/2-h.scrollTop)+"px 0px",l.style.minWidth=g.width+k.paddingLeft+k.paddingRight+"px");var D=l.getBoundingClientRect();l.style.left=r(v.left,H,v.right-D.width)+"px",l.style.top=r(v.top,S,v.bottom-D.height)+"px",p.style[o.CSS.TRANSFORM_ORIGIN]=I,p.style[o.CSS.TRANSFORM]="scale("+Math.min(g.width/w.width,1)+","+Math.min(g.height/w.height,1)+")",a(function(){t.addClass("md-active"),p.style[o.CSS.TRANSFORM]="",x&&(n.focusedNode=x,x.focus())})}return{parent:"body",onShow:f,onRemove:p,hasBackdrop:!0,disableParentScroll:!0,themable:!0}}function r(e,t,n){return Math.max(e,Math.min(t,n))}function i(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}return o.$inject=["$mdSelect","$mdConstant","$$rAF","$mdUtil","$mdTheming","$timeout","$window"],e("$mdSelect").setDefaults({methods:["target"],options:o})}function d(e){for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t}var c=8,m=0;t.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",e).directive("mdSelectMenu",o).directive("mdOption",r).directive("mdOptgroup",i).provider("$mdSelect",a),e.$inject=["$mdSelect","$mdUtil","$mdTheming","$mdAria","$interpolate","$compile","$parse"],o.$inject=["$parse","$mdUtil","$mdTheming"],r.$inject=["$mdButtonInkRipple","$mdUtil"],a.$inject=["$$interimElementProvider"]}(),function(){function e(e,n){return function(o){function r(){return e.when(o).then(function(e){return d=e,e})}var i,a="SideNav '"+o+"' is not available!",d=e.get(o);return d||e.notFoundError(o),i={isOpen:function(){return d&&d.isOpen()},isLockedOpen:function(){return d&&d.isLockedOpen()},toggle:function(){return d?d.toggle():n.reject(a)},open:function(){return d?d.open():n.reject(a)},close:function(){return d?d.close():n.reject(a)},then:function(e){var o=d?n.when(d):r();return o.then(e||t.noop)}}}}function o(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,o){o.focusElement(t)}}}function r(e,o,r,i,a,d,c,m,l,s){function u(u,f,p,h){function b(e,t){u.isLockedOpen=e,e===t?f.toggleClass("md-locked-open",!!e):o[e?"addClass":"removeClass"](f,"md-locked-open"),k.toggleClass("md-locked-open",!!e)}function g(e){var t=f.parent();t[e?"on":"off"]("keydown",M),k[e?"on":"off"]("click",$),e&&(T=s[0].activeElement);var n=h.focusElement();return E(e),C=l.all([e?o.enter(k,t):o.leave(k),o[e?"removeClass":"addClass"](f,"md-closed")]).then(function(){u.isOpen&&n&&n.focus()})}function E(e){var o=f.parent();e?(A=o.css("overflow"),o.css("overflow","hidden")):t.isDefined(A)&&(o.css("overflow",A),A=n)}function v(t){if(u.isOpen==t)return l.when(!0);var n=l.defer();return u.isOpen=t,e(function(){C.then(function(e){u.isOpen||(T&&T.focus(),T=null),n.resolve(e)})},0,!1),n.promise}function M(e){var t=e.keyCode===d.KEY_CODE.ESCAPE;return t?$(e):l.when(!0)}function $(e){return e.preventDefault(),e.stopPropagation(),h.close()}var A,T=null,C=l.when(!0),y=r(p.mdIsLockedOpen),w=function(){return y(u.$parent,{$media:function(e){return i.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),a(e)},$mdMedia:a})},k=c('<md-backdrop class="md-sidenav-backdrop md-opaque ng-enter">')(u);f.on("$destroy",h.destroy),m.inherit(k,f),u.$watch(w,b),u.$watch("isOpen",g),h.$toggleOpen=v,h.focusElement(h.focusElement()||f)}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed"),e.attr("tabIndex","-1"),u}}}function i(e,n,o,r,i){var a,d=this;d.isOpen=function(){return!!e.isOpen},d.isLockedOpen=function(){return!!e.isLockedOpen},d.open=function(){return d.$toggleOpen(!0)},d.close=function(){return d.$toggleOpen(!1)},d.toggle=function(){return d.$toggleOpen(!e.isOpen)},d.focusElement=function(e){return t.isDefined(e)&&(a=e),a},d.$toggleOpen=function(){return i.when(e.isOpen)},d.destroy=r.register(d,o.mdComponentId)}t.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",r).directive("mdSidenavFocus",o).controller("$mdSidenavController",i),e.$inject=["$mdComponentRegistry","$q"],r.$inject=["$timeout","$animate","$parse","$log","$mdMedia","$mdConstant","$compile","$mdTheming","$q","$document"],i.$inject=["$scope","$element","$attrs","$mdComponentRegistry","$q"]}(),function(){function e(e,n,o,r,i,a,d,c){function m(e,t){return e.attr({tabIndex:0,role:"slider"}),o.expect(e,"aria-label"),l}function l(o,m,l,s){function u(){E(),A(),g()}function f(e){z=parseFloat(e),m.attr("aria-valuemin",e),u()}function p(e){G=parseFloat(e),m.attr("aria-valuemax",e),u()}function h(e){X=parseFloat(e),g()}function b(e){m.attr("aria-disabled",!!e)}function g(){if(t.isDefined(l.mdDiscrete)){var e=Math.floor((G-z)/X);if(!Q){var o=n.getComputedStyle(V[0]);Q=t.element('<canvas style="position:absolute;">'),Z=Q[0].getContext("2d"),Z.fillStyle=o.backgroundColor||"black",V.append(Q)}var r=v();Q[0].width=r.width,Q[0].height=r.height;for(var i,a=0;e>=a;a++)i=Math.floor(r.width*(a/e)),Z.fillRect(i-1,0,2,r.height)}}function E(){J=q[0].getBoundingClientRect()}function v(){return K(),J}function M(e){if(!m[0].hasAttribute("disabled")){var t;e.keyCode===i.KEY_CODE.LEFT_ARROW?t=-X:e.keyCode===i.KEY_CODE.RIGHT_ARROW&&(t=X),t&&((e.metaKey||e.ctrlKey||e.altKey)&&(t*=4),e.preventDefault(),e.stopPropagation(),o.$evalAsync(function(){$(s.$viewValue+t)}))}}function $(e){s.$setViewValue(T(C(e)))}function A(){isNaN(s.$viewValue)&&(s.$viewValue=s.$modelValue);var e=(s.$viewValue-z)/(G-z);o.modelValue=s.$viewValue,m.attr("aria-valuenow",s.$viewValue),y(e),F.text(s.$viewValue)}function T(e){return t.isNumber(e)?Math.max(z,Math.min(G,e)):void 0}function C(e){if(t.isNumber(e)){var n=Math.round(e/X)*X;return Math.round(1e3*n)/1e3}}function y(e){U.css("width",100*e+"%"),B.css("left",100*e+"%"),m.toggleClass("md-min",0===e)}function w(e){if(!P()){m.addClass("active"),m[0].focus(),E();var t=O(D(e.pointer.x)),n=T(C(t));o.$apply(function(){$(n),y(R(n))})}}function k(e){if(!P()){m.removeClass("dragging active");var t=O(D(e.pointer.x)),n=T(C(t));o.$apply(function(){$(n),A()})}}function N(e){P()||(ee=!0,e.stopPropagation(),m.addClass("dragging"),H(e))}function x(e){ee&&(e.stopPropagation(),H(e))}function _(e){ee&&(e.stopPropagation(),ee=!1)}function H(e){te?I(e.pointer.x):S(e.pointer.x)}function S(e){o.$evalAsync(function(){$(O(D(e)))})}function I(e){var t=O(D(e)),n=T(C(t));y(D(e)),F.text(n)}function D(e){return Math.max(0,Math.min(1,(e-J.left)/J.width))}function O(e){return z+e*(G-z)}function R(e){return(e-z)/(G-z)}a(m),s=s||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]};var L=l.ngDisabled&&c(l.ngDisabled),P=L?function(){return L(o.$parent)}:t.noop,j=t.element(m[0].querySelector(".md-thumb")),F=t.element(m[0].querySelector(".md-thumb-text")),B=j.parent(),q=t.element(m[0].querySelector(".md-track-container")),U=t.element(m[0].querySelector(".md-track-fill")),V=t.element(m[0].querySelector(".md-track-ticks")),K=r.throttle(E,5e3);t.isDefined(l.min)?l.$observe("min",f):f(0),t.isDefined(l.max)?l.$observe("max",p):p(100),t.isDefined(l.step)?l.$observe("step",h):h(1);var Y=t.noop;l.ngDisabled&&(Y=o.$parent.$watch(l.ngDisabled,b)),d.register(m,"drag"),m.on("keydown",M).on("$md.pressdown",w).on("$md.pressup",k).on("$md.dragstart",N).on("$md.drag",x).on("$md.dragend",_),setTimeout(u);var W=e.throttle(u);t.element(n).on("resize",W),o.$on("$destroy",function(){t.element(n).off("resize",W),Y()}),s.$render=A,s.$viewChangeListeners.push(A),s.$formatters.push(T),s.$formatters.push(C);var z,G,X,Q,Z,J={};E();var ee=!1,te=t.isDefined(l.mdDiscrete)}return{scope:{},require:"?ngModel",template:'<div class="md-slider-wrapper"> <div class="md-track-container"> <div class="md-track"></div> <div class="md-track md-track-fill"></div> <div class="md-track-ticks"></div> </div> <div class="md-thumb-container"> <div class="md-thumb"></div> <div class="md-focus-thumb"></div> <div class="md-focus-ring"></div> <div class="md-sign"> <span class="md-thumb-text"></span> </div> <div class="md-disabled-thumb"></div> </div> </div>',compile:m}}t.module("material.components.slider",["material.core"]).directive("mdSlider",e),e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse"]}(),function(){function e(e,o,r,i,a){function d(e){function t(e,t){t.addClass("md-sticky-clone"),t.css("top",b+"px");var n={element:e,clone:t};return h.items.push(n),f.parent().prepend(n.clone),p(),function(){h.items.forEach(function(t,n){t.element[0]===e[0]&&(h.items.splice(n,1),t.clone.remove())}),p()}}function r(){h.items.forEach(d),h.items=h.items.sort(function(e,t){return e.top<t.top?-1:1});for(var e,t=f.prop("scrollTop"),n=h.items.length-1;n>=0;n--)if(t>h.items[n].top){e=h.items[n];break}l(e)}function d(e){var t=e.element[0];for(e.top=0,e.left=0;t&&t!==f[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t=t.offsetParent;e.height=e.element.prop("offsetHeight"),e.clone.css("margin-left",e.left+"px"),a.floatingScrollbars()&&e.clone.css("margin-right","0")}function c(){var e=f.prop("scrollTop"),t=e>(c.prevScrollTop||0);c.prevScrollTop=e,0===e?l(null):t&&h.next?h.next.top-e<=0?l(h.next):h.current&&(h.next.top-e<=h.next.height?u(h.current,h.next.top-h.next.height-e):u(h.current,null)):!t&&h.current&&(e<h.current.top&&l(h.prev),
-h.current&&h.next&&(e>=h.next.top-h.current.height?u(h.current,h.next.top-e-h.current.height):u(h.current,null)))}function l(e){if(h.current!==e){h.current&&(u(h.current,null),s(h.current,null)),e&&s(e,"active"),h.current=e;var t=h.items.indexOf(e);h.next=h.items[t+1],h.prev=h.items[t-1],s(h.next,"next"),s(h.prev,"prev")}}function s(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function u(e,t){e&&(null===t||t===n?e.translateY&&(e.translateY=null,e.clone.css(o.CSS.TRANSFORM,"")):(e.translateY=t,e.clone.css(o.CSS.TRANSFORM,"translate3d("+e.left+"px,"+t+"px,0)")))}var f=e.$element,p=i.throttle(r);m(f),f.on("$scrollstart",p),f.on("$scroll",c);var h,b=f.prop("offsetTop");return h={prev:null,current:null,next:null,items:[],add:t,refreshElements:r}}function c(n){var o,r=t.element("<div>");e[0].body.appendChild(r[0]);for(var i=["sticky","-webkit-sticky"],a=0;a<i.length;++a)if(r.css({position:i[a],top:0,"z-index":2}),r.css("position")==i[a]){o=i[a];break}return r.remove(),o}function m(e){function t(){+a.now()-o>r?(n=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),i(t))}var n,o,r=200;e.on("scroll touchmove",function(){n||(n=!0,i(t),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),o=+a.now()})}var l=c();return function(e,t,n){var o=t.controller("mdContent");if(o)if(l)t.css({position:l,top:0,"z-index":2});else{var r=o.$element.data("$$sticky");r||(r=d(o),o.$element.data("$$sticky",r));var i=r.add(t,n||t.clone());e.$on("$destroy",i)}}}t.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e),e.$inject=["$document","$mdConstant","$compile","$$rAF","$mdUtil"]}(),function(){function e(e,n,o){return{restrict:"E",replace:!0,transclude:!0,template:'<h2 class="md-subheader"><div class="md-subheader-inner"><span class="md-subheader-content"></span></div></h2>',compile:function(r,i,a){return function(r,i,d){function c(e){return t.element(e[0].querySelector(".md-subheader-content"))}o(i);var m=i[0].outerHTML;a(r,function(e){c(i).append(e)}),i.hasClass("md-no-sticky")||a(r,function(o){var a=n(t.element(m))(r);c(a).append(o),e(r,i,a)})}}}}t.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",e),e.$inject=["$mdSticky","$compile","$mdTheming"]}(),function(){function e(e){function t(e){function t(t,r,i){var a=e(i[n]);r.on(o,function(e){t.$apply(function(){a(t,{$event:e})})})}return{restrict:"A",link:t}}var n="md"+e,o="$md."+e.toLowerCase();return t.$inject=["$parse"],t}t.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",e("SwipeLeft")).directive("mdSwipeRight",e("SwipeRight"))}(),function(){function e(e,n,o,r,i,a,d,c){function m(e,n){var r=l.compile(e,n);return e.addClass("md-dragging"),function(e,n,m,l){function s(t){h(e)||(t.stopPropagation(),n.addClass("md-dragging"),E={width:b.prop("offsetWidth")},n.removeClass("transition"))}function u(e){if(E){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/E.width,n=l.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),b.css(i.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),E.translate=n}}function f(e){if(E){e.stopPropagation(),n.removeClass("md-dragging"),b.css(i.CSS.TRANSFORM,"");var t=l.$viewValue?E.translate<.5:E.translate>.5;t&&p(!l.$viewValue),E=null}}function p(t){e.$apply(function(){l.$setViewValue(t),l.$render()})}l=l||o.fakeNgModel();var h=a(m.ngDisabled),b=t.element(n[0].querySelector(".md-thumb-container")),g=t.element(n[0].querySelector(".md-container"));d(function(){n.removeClass("md-dragging")}),r(e,n,m,l),t.isDefined(m.ngDisabled)&&e.$watch(h,function(e){n.attr("tabindex",e?-1:0)}),c.register(g,"drag"),g.on("$md.dragstart",s).on("$md.drag",u).on("$md.dragend",f);var E}}var l=e[0];return{restrict:"E",priority:210,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:"?ngModel",compile:m}}t.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e),e.$inject=["mdCheckboxDirective","$mdTheming","$mdUtil","$document","$mdConstant","$parse","$$rAF","$mdGesture"]}(),function(){t.module("material.components.tabs",["material.core","material.components.icon"])}(),function(){function e(){return{restrict:"E"}}function n(e){function t(e,t,o,r){function i(i,a,c){return a=r.extractElementByName(a,"md-toast"),n=c.content,a.addClass(c.position.split(" ").map(function(e){return"md-"+e}).join(" ")),c.parent.addClass(d(c.position)),c.onSwipe=function(t,n){a.addClass("md-"+t.type.replace("$md.","")),e(o.cancel)},a.on("$md.swipeleft $md.swiperight",c.onSwipe),t.enter(a,c.parent)}function a(e,n,o){return n.off("$md.swipeleft $md.swiperight",o.onSwipe),o.parent.removeClass(d(o.position)),t.leave(n)}function d(e){return"md-toast-open-"+(e.indexOf("top")>-1?"top":"bottom")}return{onShow:i,onRemove:a,position:"bottom left",themable:!0,hideDelay:3e3}}var n,o=e("$mdToast").setDefaults({methods:["position","hideDelay","capsule"],options:t}).addPreset("simple",{argOption:"content",methods:["content","action","highlightAction","theme","parent"],options:["$mdToast","$mdTheming",function(e,t){var o={template:['<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">',"<span flex>{{ toast.content }}</span>",'<md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}">',"{{ toast.action }}","</md-button>","</md-toast>"].join(""),controller:["$scope",function(t){var o=this;t.$watch(function(){return n},function(){o.content=n}),this.resolve=function(){e.hide()}}],theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0};return o}]}).addMethod("updateContent",function(e){n=e});return t.$inject=["$timeout","$animate","$mdToast","$mdUtil"],o}t.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",n),n.$inject=["$$interimElementProvider"]}(),function(){function e(e,n,o,r,i,a){return{restrict:"E",controller:t.noop,link:function(d,c,m){function l(){function t(t,n){c.parent()[0]===n.parent()[0]&&(u&&u.off("scroll",b),n.on("scroll",b),n.attr("scroll-shrink","true"),u=n,e(r))}function r(){s=c.prop("offsetHeight");var e=-s*h+"px";u.css("margin-top",e),u.css("margin-bottom",e),l()}function l(e){var t=e?e.target.scrollTop:p;g(),f=Math.min(s/h,Math.max(0,f+t-p)),c.css(n.CSS.TRANSFORM,"translate3d(0,"+-f*h+"px,0)"),u.css(n.CSS.TRANSFORM,"translate3d(0,"+(s-f)*h+"px,0)"),p=t,c.hasClass("md-whiteframe-z1")?f||a(function(){i.removeClass(c,"md-whiteframe-z1")}):f&&a(function(){i.addClass(c,"md-whiteframe-z1")})}var s,u,f=0,p=0,h=m.mdShrinkSpeedFactor||.5,b=e.throttle(l),g=o.debounce(r,5e3);d.$on("$mdContentLoaded",t)}r(c),t.isDefined(m.mdScrollShrink)&&l()}}}t.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e),e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate","$timeout"]}(),function(){function e(e,n,o,r,i,a,d,c,m){function l(l,f,p){function h(){b(),v(),T(),g(),E()}function b(){t.isDefined(p.mdDelay)||(l.delay=s)}function g(){l.$on("$destroy",function(){l.visible=!1,f.remove(),t.element(n).off("resize",D)}),l.$watch("visible",function(e){e?y():w()})}function E(){N.attr("aria-label")||N.text().trim()||N.attr("aria-label",f.text().trim())}function v(){f.detach(),f.attr("role","tooltip")}function M(){for(var e=f.parent();e&&"none"==n.getComputedStyle(e[0])["pointer-events"];)e=e.parent();return e}function $(){for(var e=f.parent()[0];e&&e!==d[0]&&e!==document.body;)e=e.parentNode;return e}function A(e,o){var r=n.getComputedStyle(f[0]);return t.isDefined(r[e])&&r[e]==o}function T(){var e=!1,o=function(){A("pointer-events","none")||C(!0)},i=function(){var t=l.hasOwnProperty("autohide")?l.autohide:p.hasOwnProperty("mdAutohide");(t||e||r[0].activeElement!==N[0])&&C(!1),e=!1};N.on("mousedown",function(){e=!0}),N.on("focus mouseenter touchstart",o),N.on("blur mouseleave touchend touchcancel",i),t.element(n).on("resize",D)}function C(t){C.value=!!t,C.queued||(t?(C.queued=!0,e(function(){l.visible=C.value,C.queued=!1},l.delay)):e(function(){l.visible=!1}))}function y(){return I.append(f),A("display","none")?(l.visible=!1,void f.detach()):(k(),void t.forEach([f,x,_],function(e){c.addClass(e,"md-show")}))}function w(){m.all([c.removeClass(_,"md-show"),c.removeClass(x,"md-show"),c.removeClass(f,"md-show")]).then(function(){l.visible||f.detach()})}function k(){function e(){var e="left"===H||"right"===H?2*Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height/2,2)):2*Math.sqrt(Math.pow(o.width/2,2)+Math.pow(o.height,2)),t="left"===H?{left:100,top:50}:"right"===H?{left:0,top:50}:"top"===H?{left:50,top:100}:{left:50,top:0};x.css({width:e+"px",height:e+"px",left:t.left+"%",top:t.top+"%"})}function t(e){var t={left:e.left,top:e.top};return t.left=Math.min(t.left,I.prop("scrollWidth")-o.width-u),t.left=Math.max(t.left,u),t.top=Math.min(t.top,I.prop("scrollHeight")-o.height-u),t.top=Math.max(t.top,u),t}function n(e){return"left"===e?{left:r.left-o.width-u,top:r.top+r.height/2-o.height/2}:"right"===e?{left:r.left+r.width+u,top:r.top+r.height/2-o.height/2}:"top"===e?{left:r.left+r.width/2-o.width/2,top:r.top-o.height-u}:{left:r.left+r.width/2-o.width/2,top:r.top+r.height+u}}var o=i.offsetRect(f,I),r=i.offsetRect(N,I),a=n(H);H?a=t(a):a.top>f.prop("offsetParent").scrollHeight-o.height-u&&(a=t(n("top"))),f.css({top:a.top+"px",left:a.left+"px"}),e()}a(f);var N=M(),x=t.element(f[0].getElementsByClassName("md-background")[0]),_=t.element(f[0].getElementsByClassName("md-content")[0]),H=p.mdDirection,S=$(),I=t.element(S||document.body),D=o.throttle(function(){l.visible&&k()});return h()}var s=300,u=8;return{restrict:"E",transclude:!0,priority:210,template:' <div class="md-background"></div> <div class="md-content" ng-transclude></div>',scope:{visible:"=?mdVisible",delay:"=?mdDelay",autohide:"=?mdAutohide"},link:l}}t.module("material.components.tooltip",["material.core"]).directive("mdTooltip",e),e.$inject=["$timeout","$window","$$rAF","$document","$mdUtil","$mdTheming","$rootElement","$animate","$q"]}(),function(){t.module("material.components.whiteframe",[])}(),function(){function e(e,n,i,a,d,c,m,l,s){function u(){b(),d(function(){E(),h(),p()})}function f(){function e(){var e=Y.ul.getBoundingClientRect(),n={};e.right>i.right-r&&(n.left=t.right-e.width+"px"),Y.$.ul.css(n)}if(!Y)return d(f,0,!1);var t=Y.wrap.getBoundingClientRect(),n=Y.snap.getBoundingClientRect(),i=Y.root.getBoundingClientRect(),a=n.bottom-i.top,c=i.bottom-n.top,m=t.left-i.left,l=t.width,s={left:m+"px",minWidth:l+"px",maxWidth:Math.max(t.right-i.left,i.right-t.left)-r+"px"};a>c&&i.height-t.bottom-r<o?(s.top="auto",s.bottom=c+"px",s.maxHeight=Math.min(o,t.top-i.top-r)+"px"):(s.top=a+"px",s.bottom="auto",s.maxHeight=Math.min(o,i.bottom-t.bottom-r)+"px"),Y.$.ul.css(s),d(e,0,!1)}function p(){Y.$.root.length&&(c(Y.$.ul),Y.$.ul.detach(),Y.$.root.append(Y.$.ul),l.pin&&l.pin(Y.$.ul,s))}function h(){e.autofocus&&Y.input.focus()}function b(){var n=parseInt(e.delay,10)||0;e.$watch("searchText",n?i.debounce(y,n):y),T($),e.$watch("selectedItem",A),e.$watch("$mdAutocompleteCtrl.hidden",function(e,t){!e&&t&&f()}),t.element(m).on("resize",f),e.$on("$destroy",g)}function g(){Y.$.ul.remove()}function E(){Y={main:n[0],ul:n.find("ul")[0],input:n.find("input")[0],wrap:n.find("md-autocomplete-wrap")[0],root:document.body},Y.li=Y.ul.getElementsByTagName("li"),Y.snap=v(),Y.$=M(Y)}function v(){for(var e=n;e.length;e=e.parent())if(t.isDefined(e.attr("md-autocomplete-snap")))return e[0];return Y.wrap}function M(e){var n={};for(var o in e)n[o]=t.element(e[o]);return n}function $(t,n){t&&(e.searchText=_(t)),e.itemChange&&t!==n&&e.itemChange(H(t))}function A(e,t){for(var n=0;n<X.length;++n)X[n](e,t)}function T(e){-1==X.indexOf(e)&&X.push(e)}function C(e){var t=X.indexOf(e);-1!=t&&X.splice(t,1)}function y(t,n){U.index=S(),t!==n&&t!==_(e.selectedItem)&&(e.selectedItem=null,e.textChange&&t!==n&&e.textChange(H(e.selectedItem)),O()?q():(U.loading=!1,U.matches=[],U.hidden=I(),j()))}function w(){Q=!1,G||(U.hidden=!0)}function k(){Q=!0,t.isString(e.searchText)||(e.searchText=""),e.minLength>0||(U.hidden=I(),U.hidden||q())}function N(e){switch(e.keyCode){case a.KEY_CODE.DOWN_ARROW:if(U.loading)return;e.preventDefault(),U.index=Math.min(U.index+1,U.matches.length-1),B(),j();break;case a.KEY_CODE.UP_ARROW:if(U.loading)return;e.preventDefault(),U.index=U.index<0?U.matches.length-1:Math.max(0,U.index-1),B(),j();break;case a.KEY_CODE.TAB:case a.KEY_CODE.ENTER:if(U.hidden||U.loading||U.index<0||U.matches.length<1)return;e.preventDefault(),R(U.index);break;case a.KEY_CODE.ESCAPE:U.matches=[],U.hidden=!0,U.index=S()}}function x(){return t.isNumber(e.minLength)?e.minLength:1}function _(t){return t&&e.itemText?e.itemText(H(t)):t}function H(e){if(e){var t={};return U.itemName&&(t[U.itemName]=e),t}}function S(){return e.autoselect?0:-1}function I(){return O()?void 0:!0}function D(){return _(U.matches[U.index])}function O(){return e.searchText&&e.searchText.length>=x()}function R(t){e.selectedItem=U.matches[t],U.hidden=!0,U.index=0,U.matches=[],d(function(){Y.$.input.controller("ngModel").$setViewValue(_(e.selectedItem)||e.searchText),U.hidden=!0})}function L(){e.searchText="",R(-1);var t=document.createEvent("CustomEvent");t.initCustomEvent("input",!0,!0,{value:e.searchText}),Y.input.dispatchEvent(t),Y.input.focus()}function P(n){function o(t){z[i]=t,n===e.searchText&&(U.loading=!1,W=null,U.matches=t,U.hidden=I(),j(),f())}var r=e.$parent.$eval(K),i=n.toLowerCase();t.isArray(r)?o(r):(U.loading=!0,r.success&&r.success(o),r.then&&r.then(o),r.error&&r.error(function(){U.loading=!1}))}function j(){U.messages=[F(),D()]}function F(){if(Z===U.matches.length)return"";switch(Z=U.matches.length,U.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+U.matches.length+" matches available."}}function B(){if(Y.li[U.index]){var e=Y.li[U.index],t=e.offsetTop,n=t+e.offsetHeight,o=Y.ul.clientHeight;t<Y.ul.scrollTop?Y.ul.scrollTop=t:n>Y.ul.scrollTop+o&&(Y.ul.scrollTop=n-o)}}function q(){var t=e.searchText,n=t.toLowerCase();W&&W.cancel&&(W.cancel(),W=null),!e.noCache&&z[n]?(U.matches=z[n],j()):P(t),Q&&(U.hidden=I())}var U=this,V=e.itemsExpr.split(/ in /i),K=V[1],Y=null,W=null,z={},G=!1,X=[],Q=!1,Z=0;return U.scope=e,U.parent=e.$parent,U.itemName=V[0],U.matches=[],U.loading=!1,U.hidden=!0,U.index=null,U.messages=[],U.id=i.nextUid(),U.keydown=N,U.blur=w,U.focus=k,U.clear=L,U.select=R,U.getCurrentDisplayValue=D,U.registerSelectedItemWatcher=T,U.unregisterSelectedItemWatcher=C,U.listEnter=function(){G=!0},U.listLeave=function(){G=!1,Q||(U.hidden=!0)},U.mouseUp=function(){Y.input.focus()},u()}t.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var n=41,o=5.5*n,r=8;e.$inject=["$scope","$element","$mdUtil","$mdConstant","$timeout","$mdTheming","$window","$animate","$rootElement"]}(),function(){function e(e,t){function n(n,o,r){r.$observe("disabled",function(e){n.isDisabled=e}),r.$observe("required",function(e){n.isRequired=null!==e}),t.initOptionalProperties(n,r,{searchText:null,selectedItem:null}),e(o)}return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",link:n,scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",noCache:"=?mdNoCache",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass"},template:function(e,t){function n(){var t=e.find("md-item-template").remove(),n=t.length?t.html():e.html();return t.length||e.empty(),n}function o(){var t=e.find("md-not-found").remove(),n=t.length?t.html():"";return n?'<li ng-if="!$mdAutocompleteCtrl.matches.length && !$mdAutocompleteCtrl.loading && !$mdAutocompleteCtrl.hidden" ng-hide="$mdAutocompleteCtrl.hidden" md-autocomplete-parent-scope>'+n+"</li>":""}function r(){return t.mdFloatingLabel?' <md-input-container flex ng-if="floatingLabel"> <label>{{floatingLabel}}</label> <input type="search" id="fl-input-{{$mdAutocompleteCtrl.id}}" name="{{inputName}}" autocomplete="off" ng-required="isRequired" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-disabled="isDisabled" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur()" ng-focus="$mdAutocompleteCtrl.focus()" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{floatingLabel}}" aria-autocomplete="list" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/> <div md-autocomplete-parent-scope md-autocomplete-replace>'+d+"</div> </md-input-container>":' <input flex type="search" id="input-{{$mdAutocompleteCtrl.id}}" name="{{inputName}}" ng-if="!floatingLabel" autocomplete="off" ng-required="isRequired" ng-disabled="isDisabled" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur()" ng-focus="$mdAutocompleteCtrl.focus()" placeholder="{{placeholder}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{placeholder}}" aria-autocomplete="list" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/> <button type="button" tabindex="-1" ng-if="$mdAutocompleteCtrl.scope.searchText && !isDisabled" ng-click="$mdAutocompleteCtrl.clear()"> <md-icon md-svg-icon="md-close"></md-icon> <span class="md-visually-hidden">Clear</span> </button> '}var i=o(),a=n(),d=e.html();return' <md-autocomplete-wrap layout="row" ng-class="{ \'md-whiteframe-z1\': !floatingLabel }" role="listbox"> '+r()+' <md-progress-linear ng-if="$mdAutocompleteCtrl.loading" md-mode="indeterminate"></md-progress-linear> <ul role="presentation" class="md-autocomplete-suggestions md-whiteframe-z1 {{menuClass || \'\'}}" id="ul-{{$mdAutocompleteCtrl.id}}" ng-mouseenter="$mdAutocompleteCtrl.listEnter()" ng-mouseleave="$mdAutocompleteCtrl.listLeave()" ng-mouseup="$mdAutocompleteCtrl.mouseUp()"> <li ng-repeat="(index, item) in $mdAutocompleteCtrl.matches" ng-class="{ selected: index === $mdAutocompleteCtrl.index }" ng-hide="$mdAutocompleteCtrl.hidden" ng-click="$mdAutocompleteCtrl.select(index)" md-autocomplete-list-item="$mdAutocompleteCtrl.itemName"> '+a+" </li> "+i+' </ul> </md-autocomplete-wrap> <aria-status class="md-visually-hidden" role="status" aria-live="assertive"> <p ng-repeat="message in $mdAutocompleteCtrl.messages" ng-if="message">{{message}}</p> </aria-status>'}}}t.module("material.components.autocomplete").directive("mdAutocomplete",e),e.$inject=["$mdTheming","$mdUtil"]}(),function(){function e(e,n,o){function r(r){var i=o(n.html())(e),d=t.element("<div>").text(i).html(),c=n.attr("md-highlight-flags")||"",m=e.$watch(r,function(e){var t=a(e,c),o=d.replace(t,'<span class="highlight">$&</span>');n.html(o)});n.on("$destroy",function(){m()})}function i(e){return e?e.replace(/[\\\^\$\*\+\?\.\(\)\|\{\}\[\]]/g,"\\$&"):e}function a(e,t){var n="";return t.indexOf("^")>=1&&(n+="^"),n+=e,t.indexOf("$")>=1&&(n+="$"),new RegExp(i(n),t.replace(/[\$\^]/g,""))}return this.init=r,r()}t.module("material.components.autocomplete").controller("MdHighlightCtrl",e),e.$inject=["$scope","$element","$interpolate"]}(),function(){function e(){return{terminal:!0,scope:!1,controller:"MdHighlightCtrl",link:function(e,t,n,o){o.init(n.mdHighlightText)}}}t.module("material.components.autocomplete").directive("mdHighlightText",e)}(),function(){function e(e,t){function n(n,o,r){var i=n.$parent.$mdAutocompleteCtrl,a=i.parent.$new(!1,i.parent),d=i.scope.$eval(r.mdAutocompleteListItem);a[d]=n.item,e(o.contents())(a),o.attr({role:"option",id:"item_"+t.nextUid()})}return{terminal:!0,link:n,scope:!1}}t.module("material.components.autocomplete").directive("mdAutocompleteListItem",e),e.$inject=["$compile","$mdUtil"]}(),function(){function e(e,t){function n(t,n,o){var r=t.$parent.$mdAutocompleteCtrl;e(n.contents())(r.parent),o.hasOwnProperty("mdAutocompleteReplace")&&(n.after(n.contents()),n.remove())}return{restrict:"A",terminal:!0,link:n,scope:!1}}t.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e),e.$inject=["$compile","$mdUtil"]}(),function(){function e(e){function o(o,r){return o.append(n),function(n,o,r,i){o.addClass("md-chip"),e(o),i&&t.element(o[0].querySelector(".md-chip-content")).on("blur",function(){i.selectedChip=-1})}}return{restrict:"E",require:"^?mdChips",compile:o}}t.module("material.components.chips").directive("mdChip",e);var n=' <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden"> {{$mdChipsCtrl.deleteHint}} </span>';e.$inject=["$mdTheming"]}(),function(){function e(e){function t(t,n,o,r){n.on("click",function(e){t.$apply(function(){r.removeChip(t.$$replacedScope.$index)})}),e(function(){n.attr({tabindex:-1,ariaHidden:!0}),n.find("button").attr("tabindex","-1")})}return{restrict:"A",require:"^mdChips",scope:!1,link:t}}t.module("material.components.chips").directive("mdChipRemove",e),e.$inject=["$timeout"]}(),function(){function e(e,t){function n(t,n,o){var r=t.$parent.$mdChipsCtrl,i=r.parent.$new(!1,r.parent);i.$$replacedScope=t,i.$chip=t.$chip,i.$mdChipsCtrl=r,n.html(r.$scope.$eval(o.mdChipTransclude)),e(n.contents())(i)}return{restrict:"EA",terminal:!0,link:n,scope:!1}}t.module("material.components.chips").directive("mdChipTransclude",e),e.$inject=["$compile","$mdUtil"]}(),function(){function e(e,t,n,o,r){this.$timeout=r,this.$mdConstant=t,this.$scope=e,this.parent=e.$parent,this.$log=n,this.$element=o,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useMdOnAppend=!1}t.module("material.components.chips").controller("MdChipsCtrl",e),e.$inject=["$scope","$mdConstant","$log","$element","$timeout"],e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();switch(e.keyCode){case this.$mdConstant.KEY_CODE.ENTER:if(this.$scope.requireMatch||!t)break;e.preventDefault(),this.appendChip(t),this.resetChipBuffer();break;case this.$mdConstant.KEY_CODE.BACKSPACE:if(t)break;e.stopPropagation(),this.items.length&&this.selectAndFocusChipSafe(this.items.length-1)}},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;e.preventDefault(),this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.preventDefault(),this.selectedChip<0&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:e.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){var e=this.items.length&&(""==this.secondaryPlaceholder||this.secondaryPlaceholder);return e?this.placeholder:this.secondaryPlaceholder},e.prototype.removeAndSelectAdjacentChip=function(e){var n=this.getAdjacentChipIndex(e);this.removeChip(e),this.$timeout(t.bind(this,function(){this.selectAndFocusChipSafe(n)}))},e.prototype.resetSelectedChip=function(){this.selectedChip=-1},e.prototype.getAdjacentChipIndex=function(e){var t=this.items.length-1;return 0==t?-1:e==t?e-1:e},e.prototype.appendChip=function(e){this.items.indexOf(e)+1||(this.useMdOnAppend&&this.mdOnAppend&&(e=this.mdOnAppend({$chip:e})),this.items.push(e))},e.prototype.useMdOnAppendExpression=function(){this.useMdOnAppend=!0},e.prototype.getChipBuffer=function(){return this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.removeChip=function(e){this.items.splice(e,1)},e.prototype.removeChipAndFocusInput=function(e){this.removeChip(e),this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){return this.items.length?e===this.items.length?this.onFocus():(e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),void this.focusChip(e)):(this.selectChip(-1),void this.onFocus())},e.prototype.selectChip=function(e){e>=-1&&e<=this.items.length?this.selectedChip=e:this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!=e&&this.focusChip(e)},e.prototype.focusChip=function(e){this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content').focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1},e.prototype.configureUserInput=function(e){this.userInputElement=e;var n=e.controller("ngModel");n!=this.ngModelCtrl&&(this.userInputNgModelCtrl=n);var o=this.$scope,r=this;e.attr({tabindex:0}).on("keydown",function(e){o.$apply(t.bind(r,function(){r.inputKeydown(e)}))}).on("focus",t.bind(r,r.onInputFocus)).on("blur",t.bind(r,r.onInputBlur))},e.prototype.configureAutocomplete=function(e){e.registerSelectedItemWatcher(t.bind(this,function(e){e&&(this.appendChip(e),this.resetChipBuffer())})),this.$element.find("input").on("focus",t.bind(this,this.onInputFocus)).on("blur",t.bind(this,this.onInputBlur))},e.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0}}(),function(){function e(e,t,a,d,c){function m(n,m){function l(e){if(m.ngModel){var t=s[0].querySelector(e);return t&&t.outerHTML}}var s=m.$mdUserTemplate;m.$mdUserTemplate=null;var u=l("md-chips>*[md-chip-remove]")||i,f=l("md-chips>md-chip-template")||r,p=l("md-chips>md-autocomplete")||l("md-chips>input")||o,h=s.find("md-chip");return s[0].querySelector("md-chip-template>*[md-chip-remove]")&&d.warn("invalid placement of md-chip-remove within md-chip-template."),function(n,r,i,d){t.initOptionalProperties(n,m),e(r);var l=d[0];if(l.chipContentsTemplate=f,l.chipRemoveTemplate=u,l.chipInputTemplate=p,r.attr({ariaHidden:!0,tabindex:-1}).on("focus",function(){l.onFocus()}),m.ngModel&&(l.configureNgModel(r.controller("ngModel")),i.mdOnAppend&&l.useMdOnAppendExpression(),p!=o&&c(function(){0===p.indexOf("<md-autocomplete")&&l.configureAutocomplete(r.find("md-autocomplete").controller("mdAutocomplete")),l.configureUserInput(r.find("input"))})),h.length>0){var s=a(h)(n.$parent);c(function(){r.find("md-chips-wrap").prepend(s)})}}}return{template:function(e,t){t.$mdUserTemplate=e.clone();return n},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:m,scope:{readonly:"=readonly",placeholder:"@",secondaryPlaceholder:"@",mdOnAppend:"&",deleteHint:"@",deleteButtonLabel:"@",requireMatch:"=?mdRequireMatch"}}}t.module("material.components.chips").directive("mdChips",e);var n=' <md-chips-wrap ng-if="!$mdChipsCtrl.readonly || $mdChipsCtrl.items.length > 0" ng-keydown="$mdChipsCtrl.chipKeydown($event)" ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus() }" class="md-chips"> <md-chip ng-repeat="$chip in $mdChipsCtrl.items" index="{{$index}}" ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index}"> <div class="md-chip-content" tabindex="-1" aria-hidden="true" ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)" md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div> <div class="md-chip-remove-container" md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div> </md-chip> <div ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl" class="md-chip-input-container" md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div> </div> </md-chips-wrap>',o=' <input tabindex="0" placeholder="{{$mdChipsCtrl.getPlaceholder()}}" aria-label="{{$mdChipsCtrl.getPlaceholder()}}" ng-model="$mdChipsCtrl.chipBuffer" ng-focus="$mdChipsCtrl.onInputFocus()" ng-blur="$mdChipsCtrl.onInputBlur()" ng-keydown="$mdChipsCtrl.inputKeydown($event)">',r=" <span>{{$chip}}</span>",i=' <button class="md-chip-remove" ng-if="!$mdChipsCtrl.readonly" ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)" type="button" aria-hidden="true" tabindex="-1"> <md-icon md-svg-icon="md-close"></md-icon> <span class="md-visually-hidden"> {{$mdChipsCtrl.deleteButtonLabel}} </span> </button>';e.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout"]}(),function(){function e(){this.selectedItem=null,this.searchText=""}t.module("material.components.chips").controller("MdContactChipsCtrl",e),e.prototype.queryContact=function(e){var n=this.contactQuery({$query:e});return this.filterSelected?n.filter(t.bind(this,this.filterSelectedContacts)):n},e.prototype.filterSelectedContacts=function(e){return-1==this.contacts.indexOf(e)}}(),function(){function e(e,t){function o(n,o){return function(n,r,i,a){t.initOptionalProperties(n,o),e(r),r.attr("tabindex","-1")}}return{template:function(e,t){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:o,scope:{contactQuery:"&mdContacts",placeholder:"@",secondaryPlaceholder:"@",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",requireMatch:"=?mdRequireMatch"}}}t.module("material.components.chips").directive("mdContactChips",e);
-
-var n=' <md-chips class="md-contact-chips" ng-model="$mdContactChipsCtrl.contacts" md-require-match="$mdContactChipsCtrl.requireMatch" md-autocomplete-snap> <md-autocomplete md-menu-class="md-contact-chips-suggestions" md-selected-item="$mdContactChipsCtrl.selectedItem" md-search-text="$mdContactChipsCtrl.searchText" md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)" md-item-text="$mdContactChipsCtrl.mdContactName" md-no-cache="true" md-autoselect placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ? $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}"> <div class="md-contact-suggestion"> <img ng-src="{{item[$mdContactChipsCtrl.contactImage]}}" alt="{{item[$mdContactChipsCtrl.contactName]}}" /> <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText"> {{item[$mdContactChipsCtrl.contactName]}} </span> <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span> </div> </md-autocomplete> <md-chip-template> <div class="md-contact-avatar"> <img ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}" alt="{{$chip[$mdContactChipsCtrl.contactName]}}" /> </div> <div class="md-contact-name"> {{$chip[$mdContactChipsCtrl.contactName]}} </div> </md-chip-template> </md-chips>';e.$inject=["$mdTheming","$mdUtil"]}(),function(){function e(){function e(e,n,o,r){if(r){var i=n.parent()[0].getElementsByTagName("md-tab"),a=Array.prototype.indexOf.call(i,n[0]),d=n.find("md-tab-body").remove(),c=n.find("md-tab-label").remove(),m=r.insertTab({scope:e,parent:e.$parent,index:a,element:n,template:d.html(),label:c.html()},a);e.select=e.select||t.noop,e.deselect=e.deselect||t.noop,e.$watch("active",function(e){e&&r.select(m.getIndex())}),e.$watch("disabled",function(){r.refreshIndex()}),e.$watch(function(){return Array.prototype.indexOf.call(i,n[0])},function(e){m.index=e,r.updateTabOrder()}),e.$on("$destroy",function(){r.removeTab(m)})}}return{require:"^?mdTabs",terminal:!0,template:function(e,t){function n(){function n(){return t.label}function o(){var t=e.find("md-tab-label");return t.length?t.remove().html():void 0}function r(){var t=e.html();return e.empty(),t}return o()||n()||r()}function o(){var n=e.find("md-tab-body"),o=n.length?n.html():t.label?e.html():"";return n.length?n.remove():t.label&&e.empty(),o}var r=n(),i=o();return"<md-tab-label>"+r+"</md-tab-label><md-tab-body>"+i+"</md-tab-body>"},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect"},link:e}}t.module("material.components.tabs").directive("mdTab",e)}(),function(){function e(){return{require:"^?mdTabs",link:function(e,t,n,o){o&&o.attachRipple(e,t)}}}t.module("material.components.tabs").directive("mdTabItem",e)}(),function(){function e(){return{terminal:!0}}t.module("material.components.tabs").directive("mdTabLabel",e)}(),function(){function e(e){return{restrict:"A",compile:function(t,n){var o=e(n.mdTabScroll,null,!0);return function(e,t){t.on("mousewheel",function(t){e.$apply(function(){o(e,{$event:t})})})}}}}t.module("material.components.tabs").directive("mdTabScroll",e),e.$inject=["$parse"]}(),function(){function e(e,n,o,r,i,a,d,c){function m(){e.$watch("selectedIndex",p),e.$watch("$mdTabsCtrl.focusIndex",f),e.$watch("$mdTabsCtrl.offsetLeft",u),e.$watch("$mdTabsCtrl.hasContent",s),t.element(o).on("resize",$),t.element(K.paging).on("DOMSubtreeModified",U.updateInkBarStyles),r(P,0,!1),r(D),e.$on("$destroy",l)}function l(){W=!0,t.element(o).off("resize",$),t.element(K.paging).off("DOMSubtreeModified",U.updateInkBarStyles)}function s(e){n[e?"removeClass":"addClass"]("md-no-tab-content")}function u(n){var o=N()?"":"-"+n+"px";t.element(K.paging).css("transform","translate3d("+o+", 0, 0)"),e.$broadcast("$mdTabsPaginationChanged")}function f(e,t){e!==t&&K.tabs[e]&&(D(),I())}function p(t,n){t!==n&&(e.selectedIndex=_(t),U.lastSelectedIndex=n,U.updateInkBarStyles(),P(),e.$broadcast("$mdTabsChanged"),U.tabs[n]&&U.tabs[n].scope.deselect(),U.tabs[t]&&U.tabs[t].scope.select())}function h(){h.watcher||(h.watcher=e.$watch(function(){r(function(){h.watcher&&n.prop("offsetParent")&&(h.watcher(),h.watcher=null,$())},0,!1)}))}function b(t){switch(t.keyCode){case i.KEY_CODE.LEFT_ARROW:t.preventDefault(),S(-1,!0);break;case i.KEY_CODE.RIGHT_ARROW:t.preventDefault(),S(1,!0);break;case i.KEY_CODE.SPACE:case i.KEY_CODE.ENTER:t.preventDefault(),V||(e.selectedIndex=U.focusIndex)}U.lastClick=!1}function g(t){V||(U.focusIndex=e.selectedIndex=t),U.lastClick=!0,U.tabs[t].element.triggerHandler("click")}function E(e){x()&&(e.preventDefault(),U.offsetLeft=B(U.offsetLeft-e.wheelDelta))}function v(){var e,t,n=K.canvas.clientWidth,o=n+U.offsetLeft;for(e=0;e<K.tabs.length&&(t=K.tabs[e],!(t.offsetLeft+t.offsetWidth>o));e++);U.offsetLeft=B(t.offsetLeft)}function M(){var e,t;for(e=0;e<K.tabs.length&&(t=K.tabs[e],!(t.offsetLeft+t.offsetWidth>=U.offsetLeft));e++);U.offsetLeft=B(t.offsetLeft+t.offsetWidth-K.canvas.clientWidth)}function $(){e.$apply(function(){U.lastSelectedIndex=e.selectedIndex,U.offsetLeft=B(U.offsetLeft),r(U.updateInkBarStyles,0,!1)})}function A(t){var n=e.selectedIndex,o=U.tabs.splice(t.getIndex(),1)[0];L(),e.selectedIndex!==n||W||(o.scope.deselect(),U.tabs[e.selectedIndex]&&U.tabs[e.selectedIndex].scope.select()),r(function(){U.offsetLeft=B(U.offsetLeft)})}function T(n,o){var r={getIndex:function(){return U.tabs.indexOf(i)},isActive:function(){return this.getIndex()===e.selectedIndex},isLeft:function(){return this.getIndex()<e.selectedIndex},isRight:function(){return this.getIndex()>e.selectedIndex},shouldRender:function(){return!e.noDisconnect||this.isActive()},hasFocus:function(){return!U.lastClick&&U.hasFocus&&this.getIndex()===U.focusIndex},id:d.nextUid()},i=t.extend(r,n);return t.isDefined(o)?U.tabs.splice(o,0,i):U.tabs.push(i),O(),R(),i}function C(){var e={};return e.wrapper=n[0].getElementsByTagName("md-tabs-wrapper")[0],e.canvas=e.wrapper.getElementsByTagName("md-tabs-canvas")[0],e.paging=e.canvas.getElementsByTagName("md-pagination-wrapper")[0],e.tabs=e.paging.getElementsByTagName("md-tab-item"),e.dummies=e.canvas.getElementsByTagName("md-dummy-tab"),e.inkBar=e.paging.getElementsByTagName("md-ink-bar")[0],e.contentsWrapper=n[0].getElementsByTagName("md-tabs-content-wrapper")[0],e.contents=e.contentsWrapper.getElementsByTagName("md-tab-content"),e}function y(){return U.offsetLeft>0}function w(){var e=K.tabs[K.tabs.length-1];return e&&e.offsetLeft+e.offsetWidth>K.canvas.clientWidth+U.offsetLeft}function k(){switch(e.stretchTabs){case"always":return!0;case"never":return!1;default:return!x()&&o.matchMedia("(max-width: 600px)").matches}}function N(){return e.centerTabs&&!x()}function x(){if(e.noPagination)return!1;var o=n.prop("clientWidth");return t.forEach(K.tabs,function(e){o-=e.offsetWidth}),0>o}function _(e){var t,n,o=Math.max(U.tabs.length-e,e);for(t=0;o>=t;t++){if(n=U.tabs[e+t],n&&n.scope.disabled!==!0)return n.getIndex();if(n=U.tabs[e-t],n&&n.scope.disabled!==!0)return n.getIndex()}return e}function H(){var t=U.tabs[e.selectedIndex],n=U.tabs[U.focusIndex];U.tabs=U.tabs.sort(function(e,t){return e.index-t.index}),e.selectedIndex=U.tabs.indexOf(t),U.focusIndex=U.tabs.indexOf(n)}function S(t,n){var o,r=n?U.focusIndex:e.selectedIndex;for(o=r+t;U.tabs[o]&&U.tabs[o].scope.disabled;o+=t);U.tabs[o]&&(n?U.focusIndex=o:e.selectedIndex=o)}function I(){K.dummies[U.focusIndex].focus()}function D(){if(!N()){var e=K.tabs[U.focusIndex],t=e.offsetLeft,n=e.offsetWidth+t;U.offsetLeft=Math.max(U.offsetLeft,B(n-K.canvas.clientWidth)),U.offsetLeft=Math.min(U.offsetLeft,B(t))}}function O(){Y.forEach(function(e){r(e)}),Y=[]}function R(){var e=!1;t.forEach(U.tabs,function(t){t.template&&(e=!0)}),U.hasContent=e}function L(){e.selectedIndex=_(e.selectedIndex),U.focusIndex=_(U.focusIndex)}function P(){if(!e.dynamicHeight)return n.css("height","");if(!U.tabs.length)return Y.push(P);var t=K.contents[e.selectedIndex],o=t?t.offsetHeight:0,r=K.wrapper.offsetHeight,i=o+r,a=n.prop("clientHeight");a!==i&&(V=!0,c.animate(n,{height:a+"px"},{height:i+"px"}).then(function(){n.css("height",""),V=!1}))}function j(){if(K.tabs[e.selectedIndex]){if(!U.tabs.length)return Y.push(U.updateInkBarStyles);if(!n.prop("offsetParent"))return h();var o=e.selectedIndex,r=K.paging.offsetWidth,i=K.tabs[o],a=i.offsetLeft,d=r-a-i.offsetWidth;F(),t.element(K.inkBar).css({left:a+"px",right:d+"px"})}}function F(){var n=e.selectedIndex,o=U.lastSelectedIndex,r=t.element(K.inkBar);r.removeClass("md-left md-right"),t.isNumber(o)&&(o>n?r.addClass("md-left"):n>o&&r.addClass("md-right"))}function B(e){if(!K.tabs.length||!x())return 0;var t=K.tabs[K.tabs.length-1],n=t.offsetLeft+t.offsetWidth;return e=Math.max(0,e),e=Math.min(n-K.canvas.clientWidth,e)}function q(e,n){var o={colorElement:t.element(K.inkBar)};a.attach(e,n,o)}var U=this,V=!1,K=C(),Y=[],W=!1;U.scope=e,U.parent=e.$parent,U.tabs=[],U.lastSelectedIndex=null,U.focusIndex=e.selectedIndex||0,U.offsetLeft=0,U.hasContent=!1,U.hasFocus=!1,U.lastClick=!0,U.redirectFocus=I,U.attachRipple=q,U.shouldStretchTabs=k,U.shouldPaginate=x,U.shouldCenterTabs=N,U.insertTab=T,U.removeTab=A,U.select=g,U.scroll=E,U.nextPage=v,U.previousPage=M,U.keydown=b,U.canPageForward=w,U.canPageBack=y,U.refreshIndex=L,U.incrementSelectedIndex=S,U.updateInkBarStyles=d.debounce(j,100),U.updateTabOrder=d.debounce(H,100),m()}t.module("material.components.tabs").controller("MdTabsController",e),e.$inject=["$scope","$element","$window","$timeout","$mdConstant","$mdTabInkRipple","$mdUtil","$animate"]}(),function(){function e(e,n,o){return{scope:{noPagination:"=?mdNoPagination",dynamicHeight:"=?mdDynamicHeight",centerTabs:"=?mdCenterTabs",selectedIndex:"=?mdSelected",stretchTabs:"@?mdStretchTabs",swipeContent:"=?mdSwipeContent",noDisconnect:"=?mdNoDisconnect"},template:function(e,t){return t.$mdTabsTemplate=e.html(),' <md-tabs-wrapper ng-class="{ \'md-stretch-tabs\': $mdTabsCtrl.shouldStretchTabs() }"> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate()" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-icon="md-tabs-arrow"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate()" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-icon="md-tabs-arrow"></md-icon> </md-next-button> <md-tabs-canvas tabindex="0" aria-activedescendant="tab-item-{{$mdTabsCtrl.tabs[$mdTabsCtrl.focusIndex].id}}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate(), \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs() }" ng-keydown="$mdTabsCtrl.keydown($event)" role="tablist"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs() }" md-tab-scroll="$mdTabsCtrl.scroll($event)"> <md-tab-item tabindex="-1" class="md-tab" style="max-width: {{ tabWidth ? tabWidth + \'px\' : \'none\' }}" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" aria-controls="tab-content-{{tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-class="{ \'md-active\': tab.isActive(), \'md-focused\': tab.hasFocus(), \'md-disabled\': tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-template="tab.label" md-scope="tab.parent"></md-tab-item> <md-ink-bar ng-hide="noInkBar"></md-ink-bar> </md-pagination-wrapper> <div class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab tabindex="-1" id="tab-item-{{tab.id}}" role="tab" aria-controls="tab-content-{{tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-template="tab.label" md-scope="tab.parent"></md-dummy-tab> </div> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent"> <md-tab-content id="tab-content-{{tab.id}}" role="tabpanel" aria-labelledby="tab-item-{{tab.id}}" md-swipe-left="swipeContent && $mdTabsCtrl.incrementSelectedIndex(1)" md-swipe-right="swipeContent && $mdTabsCtrl.incrementSelectedIndex(-1)" ng-if="$mdTabsCtrl.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" md-connected-if="tab.isActive()" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\': tab.isActive(), \'md-left\': tab.isLeft(), \'md-right\': tab.isRight(), \'md-no-scroll\': dynamicHeight }"> <div md-template="tab.template" md-scope="tab.parent" ng-if="tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper> '},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",link:function(r,i,a){function d(e){var t=i.find("md-tab-data");t.html(e),o(t.contents())(r.$parent)}d(a.$mdTabsTemplate),delete a.$mdTabsTemplate,n.initOptionalProperties(r,a),a.$observe("mdNoBar",function(e){r.noInkBar=t.isDefined(e)}),r.selectedIndex=t.isNumber(r.selectedIndex)?r.selectedIndex:0,e(i)}}}t.module("material.components.tabs").directive("mdTabs",e),e.$inject=["$mdTheming","$mdUtil","$compile"]}(),function(){function e(e,t,n){function o(o,r,i,a){function d(){o.$watch("connected",function(e){e===!1?c():m()}),o.$on("$destroy",m)}function c(){a.scope.noDisconnect||t.disconnectScope(l)}function m(){a.scope.noDisconnect||t.reconnectScope(l)}if(a){var l=o.compileScope.$new();return r.html(o.template),e(r.contents())(l),n(d)}}return{restrict:"A",link:o,scope:{template:"=mdTemplate",compileScope:"=mdScope",connected:"=?mdConnectedIf"},require:"^?mdTabs"}}t.module("material.components.tabs").directive("mdTemplate",e),e.$inject=["$compile","$mdUtil","$timeout"]}(),function(){t.module("material.core").constant("$MD_THEME_CSS","/* mixin definition ; sets LTR and RTL within the same style call */md-autocomplete.md-THEME_NAME-theme { background: '{{background-50}}'; } md-autocomplete.md-THEME_NAME-theme[disabled] { background: '{{background-100}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions.md-THEME_NAME-theme { background: '{{background-50}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{foreground-4-0.5}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme { border-radius: 3px; } a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button { border-radius: 50%; } a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised { color: '{{background-contrast}}'; background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon { color: '{{background-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover { background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused { background-color: '{{background-200}}'; } a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab { color: '{{warn-contrast}}'; background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon { color: '{{warn-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover { background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused { background-color: '{{warn-700}}'; } a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab { color: '{{accent-contrast}}'; background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused { background-color: '{{accent-700}}'; } a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] { color: '{{foreground-3}}'; cursor: not-allowed; } a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon { color: '{{foreground-3}}'; } a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] { background-color: '{{foreground-4}}'; } a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] { background-color: transparent; }md-card.md-THEME_NAME-theme { background-color: '{{background-color}}'; border-radius: 2px; } md-card.md-THEME_NAME-theme .md-card-image { border-radius: 2px 2px 0 0; }md-checkbox.md-THEME_NAME-theme .md-ripple { color: '{{accent-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before { background-color: '{{accent-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon { background-color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple { color: '{{primary-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon { background-color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before { background-color: '{{primary-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple { color: '{{warn-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon { background-color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before { background-color: '{{warn-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-icon { border-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon { background-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-label { color: '{{foreground-3}}'; }md-chips.md-THEME_NAME-theme .md-chips { box-shadow: 0 1px '{{background-300}}'; } md-chips.md-THEME_NAME-theme .md-chips.md-focused { box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip { background: '{{background-300}}'; color: '{{background-800}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused { background: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon { color: '{{primary-contrast}}'; }md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path { fill: '{{background-500}}'; }.md-contact-suggestion span.md-contact-email { color: '{{background-400}}'; }md-content.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-dialog.md-THEME_NAME-theme { border-radius: 4px; background-color: '{{background-color}}'; } md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions { border-top-color: '{{foreground-4}}'; }md-divider.md-THEME_NAME-theme { border-top-color: '{{foreground-4}}'; }md-icon.md-THEME_NAME-theme { color: '{{foreground-2}}'; } md-icon.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } md-icon.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } md-icon.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-input-container.md-THEME_NAME-theme .md-input { color: '{{foreground-1}}'; border-color: '{{foreground-4}}'; text-shadow: '{{foreground-shadow}}'; } md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder { color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme > md-icon { color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder { text-shadow: '{{foreground-shadow}}'; color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label { color: '{{foreground-2}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input { border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input { border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label { color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input { border-bottom-color: transparent; color: '{{foreground-3}}'; background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%); background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-3}}' 100%); }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 { color: '{{foreground-1}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p { color: '{{foreground-2}}'; }md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style { background-color: '{{background-100}}'; }md-list.md-THEME_NAME-theme md-list-item > md-icon { color: '{{foreground-2}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight { color: '{{primary-color}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent { color: '{{accent-color}}'; }md-list.md-THEME_NAME-theme md-list-item button { background-color: '{{background-color}}'; } md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover { background-color: '{{background-color}}'; }md-progress-circular.md-THEME_NAME-theme { background-color: transparent; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap { border-top-color: '{{primary-color}}'; border-bottom-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-top-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-right-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle { border-left-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap { border-top-color: '{{warn-color}}'; border-bottom-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-top-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-right-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle { border-left-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap { border-top-color: '{{accent-color}}'; border-bottom-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-top-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-right-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle { border-left-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme .md-container { background-color: '{{primary-100}}'; }md-progress-linear.md-THEME_NAME-theme .md-bar { background-color: '{{primary-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-container { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar { background-color: '{{warn-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-container { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar { background-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before { background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before { background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }md-radio-button.md-THEME_NAME-theme .md-off { border-color: '{{foreground-2}}'; }md-radio-button.md-THEME_NAME-theme .md-on { background-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-off { border-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple { color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme .md-container .md-ripple { color: '{{accent-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on { background-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off { border-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple { color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple { color: '{{primary-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on { background-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off { border-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple { color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple { color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] { color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off { border-color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on { border-color: '{{foreground-3}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before { background-color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before { background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before { background-color: '{{warn-color-0.26}}'; }md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label { color: '{{warn-500}}' !important; border-bottom-color: '{{warn-500}}' !important; }md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label { border-bottom-color: '{{primary-color}}'; color: '{{ foreground-1 }}'; } md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder { color: '{{ foreground-1 }}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label { border-bottom-color: '{{accent-color}}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label { border-bottom-color: '{{warn-color}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-label { color: '{{foreground-3}}'; } md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder { color: '{{foreground-3}}'; }md-select.md-THEME_NAME-theme .md-select-label { border-bottom-color: '{{foreground-4}}'; } md-select.md-THEME_NAME-theme .md-select-label.md-placeholder { color: '{{foreground-2}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup { color: '{{foreground-2}}'; } md-select-menu.md-THEME_NAME-theme md-optgroup md-option { color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] { color: '{{primary-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected]:focus { color: '{{primary-600}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent { color: '{{accent-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus { color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) { background: '{{background-200}}'; }md-sidenav.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track { background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks { background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb { background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring { border-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb { border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track.md-track-fill { background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb:after { border-color: '{{accent-color}}'; background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-sign { background-color: '{{accent-color}}'; } md-slider.md-THEME_NAME-theme .md-sign:after { border-top-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb-text { color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill { background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after { border-color: '{{warn-color}}'; background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-sign { background-color: '{{warn-color}}'; } md-slider.md-THEME_NAME-theme.md-warn .md-sign:after { border-top-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text { color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill { background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after { border-color: '{{primary-color}}'; background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-sign { background-color: '{{primary-color}}'; } md-slider.md-THEME_NAME-theme.md-primary .md-sign:after { border-top-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text { color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after { border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after { background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme { color: '{{ foreground-2-0.23 }}'; background-color: '{{background-color}}'; } .md-subheader.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } .md-subheader.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } .md-subheader.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme .md-thumb { background-color: '{{background-50}}'; }md-switch.md-THEME_NAME-theme .md-bar { background-color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-thumb { background-color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-bar { background-color: '{{accent-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before { background-color: '{{accent-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb { background-color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar { background-color: '{{primary-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before { background-color: '{{primary-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb { background-color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar { background-color: '{{warn-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before { background-color: '{{warn-color-0.26}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-thumb { background-color: '{{background-400}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-bar { background-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: transparent; border-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme .md-paginator md-icon { color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{accent-color}}'; background: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme .md-tab { color: '{{foreground-2}}'; } md-tabs.md-THEME_NAME-theme .md-tab[disabled] { color: '{{foreground-3}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused { color: '{{primary-color}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-focused { background: '{{primary-color-0.1}}'; } md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container { color: '{{accent-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper { background-color: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper { background-color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper { background-color: '{{warn-color}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{primary-color}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{accent-color}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{warn-color}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toast.md-THEME_NAME-theme { background-color: #323232; color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button { color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight { color: '{{primary-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent { color: '{{accent-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn { color: '{{warn-A200}}'; }md-toolbar.md-THEME_NAME-theme { background-color: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme md-icon { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme .md-button { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-accent { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-warn { background-color: '{{warn-color}}'; color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme { color: '{{background-A100}}'; } md-tooltip.md-THEME_NAME-theme .md-background { background-color: '{{foreground-2}}'; }");
-
-}()}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/bower.json
deleted file mode 100644
index 76592d7f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/bower.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "angular-material",
- "version": "0.9.8",
- "ignore": [],
- "dependencies": {
- "angular": "^1.3.0 || >1.4.0-beta.0",
- "angular-animate": "^1.3.0 || >1.4.0-beta.0",
- "angular-aria": "^1.3.15 || >1.4.0-beta.0"
- },
- "main": [
- "angular-material.js",
- "angular-material.css"
- ]
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy.svg
deleted file mode 100644
index 51ab2e60..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"><g><g><rect fill="none" width="24" height="24"/><path fill="#7d7d7d" d="M16,1H4C2.9,1,2,1.9,2,3v14h2V3h12V1z M19,5H8C6.9,5,6,5.9,6,7v14c0,1.1,0.9,2,2,2h11c1.1,0,2-0.9,2-2V7C21,5.9,20.1,5,19,5z M19,21H8V7h11V21z"/></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy2.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy2.svg
deleted file mode 100644
index 8609b587..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/copy2.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve"><g><g><rect fill="none" width="48" height="48"/><path fill="#7d7d7d" d="M32,2H8C5.8,2,4,3.8,4,6v28h4V6h24V2z M38,10H16c-2.2,0-4,1.8-4,4v28c0,2.2,1.8,4,4,4h22c2.2,0,4-1.8,4-4V14C42,11.8,40.2,10,38,10z M38,42H16V14h22V42z"/></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/facebook.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/facebook.svg
deleted file mode 100644
index a18345dd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/facebook.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve"><g><g><g><path fill="#7d7d7d" d="M40,4H8C5.8,4,4,5.8,4,8l0,32c0,2.2,1.8,4,4,4h32c2.2,0,4-1.8,4-4V8C44,5.8,42.2,4,40,4z M38,8v6h-4c-1.1,0-2,0.9-2,2v4h6v6h-6v14h-6V26h-4v-6h4v-5c0-3.9,3.1-7,7-7H38z"/></g><g><rect fill="none" width="48" height="48"/></g></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/hangout.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/hangout.svg
deleted file mode 100644
index d16fde78..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/hangout.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve"><g><g><path fill="#159F5C" d="M23,4C13.6,4,6,11.6,6,21s7.6,17,17,17h1v7c9.7-4.7,16-15,16-24C40,11.6,32.4,4,23,4z M22,22l-2,4h-3l2-4h-3v-6h6V22zM30,22l-2,4h-3l2-4h-3v-6h6V22z"/><rect x="0" fill="none" width="48" height="48"/></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/mail.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/mail.svg
deleted file mode 100644
index 8a36e497..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/mail.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve"><g><g><path fill="#7d7d7d" d="M40,8H8c-2.2,0-4,1.8-4,4l0,24c0,2.2,1.8,4,4,4h32c2.2,0,4-1.8,4-4V12C44,9.8,42.2,8,40,8z M40,16L24,26L8,16v-4l16,10l16-10V16z"/><rect fill="none" width="48" height="48"/></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/message.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/message.svg
deleted file mode 100644
index 10d347da..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/message.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve"><g><g><path fill="#7d7d7d" d="M40,4H8C5.8,4,4,5.8,4,8l0,36l8-8h28c2.2,0,4-1.8,4-4V8C44,5.8,42.2,4,40,4z M36,28H12v-4h24V28z M36,22H12v-4h24V22zM36,16H12v-4h24V16z"/><rect x="0" fill="none" width="48" height="48"/></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/print.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/print.svg
deleted file mode 100644
index 91365b29..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/print.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="24px"height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"><g><g><g><path d="M19,8H5c-1.7,0-3,1.3-3,3v6h4v4h12v-4h4v-6C22,9.3,20.7,8,19,8z M16,19H8v-5h8V19z M19,12c-0.6,0-1-0.4-1-1s0.4-1,1-1c0.6,0,1,0.4,1,1S19.6,12,19,12z M18,3H6v4h12V3z" fill="#7d7d7d"/></g><rect fill="none" width="24" height="24"/></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/share-arrow.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/share-arrow.svg
deleted file mode 100644
index 2d6befc0..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/share-arrow.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"><g><g><path fill="#7d7d7d" d="M21,11l-7-7v4C7,9,4,14,3,19c2.5-3.5,6-5.1,11-5.1V18L21,11z"/><rect fill="none" width="24" height="24"/></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/twitter.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/twitter.svg
deleted file mode 100644
index e4f85eb8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/twitter.svg
+++ /dev/null
@@ -1,2 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve"><g><g><g><path fill="#7d7d7d" d="M40,4H8C5.8,4,4,5.8,4,8l0,32c0,2.2,1.8,4,4,4h32c2.2,0,4-1.8,4-4V8C44,5.8,42.2,4,40,4z M35.4,18.7c-0.1,9.2-6,15.6-14.8,16c-3.6,0.2-6.3-1-8.6-2.5c2.7,0.4,6-0.6,7.8-2.2c-2.6-0.3-4.2-1.6-4.9-3.8c0.8,0.1,1.6,0.1,2.3-0.1
-c-2.4-0.8-4.1-2.3-4.2-5.3c0.7,0.3,1.4,0.6,2.3,0.6c-1.8-1-3.1-4.7-1.6-7.2c2.6,2.9,5.8,5.3,11,5.6c-1.3-5.6,6.1-8.6,9.2-4.9c1.3-0.3,2.4-0.8,3.4-1.3c-0.4,1.3-1.2,2.2-2.2,2.9c1.1-0.1,2.1-0.4,2.9-0.8C37.5,16.9,36.4,17.9,35.4,18.7z"/></g><g><rect fill="none" width="48" height="48"/></g></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/upload.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/upload.svg
deleted file mode 100644
index 6a673db1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/bottomSheet/demoBasicUsage/img/icons/upload.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg version="1.1" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"><g><g><rect x="-618" y="-2232" fill="none" width="1400" height="3600"/></g></g><g><g><rect fill="none" width="24" height="24"/><path fill="#7d7d7d" d="M19.4,10c-0.7-3.4-3.7-6-7.4-6C9.1,4,6.6,5.6,5.4,8C2.3,8.4,0,10.9,0,14c0,3.3,2.7,6,6,6h13c2.8,0,5-2.2,5-5C24,12.4,21.9,10.2,19.4,10z M14,13v4h-4v-4H7l5-5l5,5H14z"/></g></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/chips/demoBasicUsage/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/chips/demoBasicUsage/style.scss
deleted file mode 100644
index 12bd7700..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/chips/demoBasicUsage/style.scss
+++ /dev/null
@@ -1,39 +0,0 @@
-.custom-chips {
- .md-chip {
- position: relative;
- padding-right: 35px;
- .md-chip-remove-container {
- position: absolute;
- right: 4px;
- top: 4px;
- margin-right: 0;
- height: 24px;
- button.vegetablechip {
- position: relative;
- height: 24px;
- width: 24px;
- line-height: 30px;
- text-align: center;
- background: rgba(black, 0.3);
- border-radius: 50%;
- border: none;
- box-shadow: none;
- padding: 0;
- margin: 0;
- transition: background 0.15s linear;
- display: block;
- md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate3d(-50%, -50%, 0) scale(0.7);
- color: white;
- fill: white;
- }
- &:hover, &:focus {
- background: rgba(red, 0.8);
- }
- }
- }
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/chips/demoContactChips/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/chips/demoContactChips/style.scss
deleted file mode 100644
index 17e40fc4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/chips/demoContactChips/style.scss
+++ /dev/null
@@ -1,47 +0,0 @@
-md-content.autocomplete {
- min-height: 250px;
-}
-.md-item-text.compact {
- padding-top: 8px;
- padding-bottom: 8px;
-}
-.contact-item {
- box-sizing: border-box;
- &.selected {
- opacity: 0.5;
- h3 {
- opacity: 0.5;
- }
- }
- .md-list-item-text {
- padding: 14px 0;
- h3 {
- margin: 0 !important;
- padding: 0;
- line-height: 1.2em !important;
- }
- h3, p {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- }
- @media (min-width: 900px) {
- float: left;
- width: 33%;
- }
-}
-
-md-contact-chips {
- margin-bottom : 10px;
-}
-
-.md-chips {
- padding: 5px 0 8px;
-}
-
-
-.fixedRows {
- height: 250px;
- overflow:hidden;
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoBasicUsage/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoBasicUsage/style.scss
deleted file mode 100644
index e824bb27..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoBasicUsage/style.scss
+++ /dev/null
@@ -1,75 +0,0 @@
-md-icon {
- width:50%;height:50%
-}
-
-md-icon svg {
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
-}
-
-.s64 {
- font-size:64px;
-}
-
-.s32 {
-
- font-size:48px;
-
-}
-
-md-icon.fa {
- display:block;
- padding-left:0px;
-}
-
-md-icon.s32 span {
- padding-left:8px;
-}
-
-md-grid-list {
- margin: 8px; }
-.gray {
- background: #f5f5f5; }
-.green {
- background: #b9f6ca; }
-.yellow {
- background: #ffff8d; }
-.blue {
- background: #84ffff; }
-.darkBlue {
- background: #80d8ff; }
-.deepBlue {
- background: #448aff; }
-.purple {
- background: #b388ff; }
-.lightPurple {
- background: #8c9eff; }
-.red {
- background: #ff8a80; }
-.pink {
- background: #ff80ab; }
-
-md-grid-tile {
- -webkit-transition: all 500ms ease-out 100ms;
- -moz-transition: all 500ms ease-out 100ms;
- -o-transition: all 500ms ease-out 100ms;
- transition: all 500ms ease-out 100ms;
-}
-
-md-grid-tile md-grid-tile-footer {
- background: rgba(0,0,0,.68);
- height: 36px;
-
-}
-
-md-grid-tile-footer figcaption {
- width:100%;
-}
-
-md-grid-tile-footer figcaption h3 {
- margin:0px;
- font-weight:700;
- width:100%;
- text-align:center;
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoDynamicTiles/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoDynamicTiles/style.scss
deleted file mode 100644
index de8c7cd2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoDynamicTiles/style.scss
+++ /dev/null
@@ -1,78 +0,0 @@
-md-icon {
- width:50%;height:50%
-}
-
-md-icon svg {
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
-}
-
-.s64 {
- font-size:64px;
-}
-
-.s32 {
-
- font-size:48px;
-
-}
-
-md-icon.fa {
- display:block;
- padding-left: 0;
-}
-
-md-icon.s32 span {
- padding-left:8px;
-}
-
-md-grid-list {
- margin: 8px; }
-.gray {
- background: #f5f5f5; }
-.green {
- background: #b9f6ca; }
-.yellow {
- background: #ffff8d; }
-.blue {
- background: #84ffff; }
-.darkBlue {
- background: #80d8ff; }
-.deepBlue {
- background: #448aff; }
-.purple {
- background: #b388ff; }
-.lightPurple {
- background: #8c9eff; }
-.red {
- background: #ff8a80; }
-.pink {
- background: #ff80ab; }
-
-
-md-grid-tile {
- transition: all 300ms ease-out 50ms;
-}
-
-
-md-grid-tile md-icon {
- padding-bottom: 32px;
-}
-
-md-grid-tile md-grid-tile-footer {
- background: rgba(0,0,0,.68);
- height: 36px;
-
-}
-
-md-grid-tile-footer figcaption {
- width:100%;
-}
-
-md-grid-tile-footer figcaption h3 {
- margin: 0;
- font-weight:700;
- width:100%;
- text-align:center;
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoResponsiveUsage/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoResponsiveUsage/style.scss
deleted file mode 100644
index e69de29b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/gridList/demoResponsiveUsage/style.scss
+++ /dev/null
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/addShoppingCart.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/addShoppingCart.svg
deleted file mode 100644
index 0335c61b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/addShoppingCart.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"/></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/android.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/android.svg
deleted file mode 100644
index 306b4e1a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/android.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"/></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/cake.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/cake.svg
deleted file mode 100644
index 512fae04..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoLoadSvgIconsFromUrl/img/icons/cake.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="cake"><path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01zM18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9z"/></g></svg> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/cake.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/cake.svg
deleted file mode 100644
index 512fae04..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/cake.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="cake"><path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01zM18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9z"/></g></svg> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/core-icons.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/core-icons.svg
deleted file mode 100644
index 5f52b2d8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/core-icons.svg
+++ /dev/null
@@ -1,26 +0,0 @@
-<svg><defs>
-<g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"/></g>
-<g id="accessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/></g>
-<g id="account-balance"><path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/></g>
-<g id="account-balance-wallet"><path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/></g>
-<g id="account-box"><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"/></g>
-<g id="account-child"><circle cx="12" cy="13.49" r="1.5"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 2.5c1.24 0 2.25 1.01 2.25 2.25S13.24 9 12 9 9.75 7.99 9.75 6.75 10.76 4.5 12 4.5zm5 10.56v2.5c-.45.41-.96.77-1.5 1.05v-.68c0-.34-.17-.65-.46-.92-.65-.62-1.89-1.02-3.04-1.02-.96 0-1.96.28-2.65.73l-.17.12-.21.17c.78.47 1.63.72 2.54.82l1.33.15c.37.04.66.36.66.75 0 .29-.16.53-.4.66-.28.15-.64.09-.95.09-.35 0-.69-.01-1.03-.05-.5-.06-.99-.17-1.46-.33-.49-.16-.97-.38-1.42-.64-.22-.13-.44-.27-.65-.43l-.31-.24c-.04-.02-.28-.18-.28-.23v-4.28c0-1.58 2.63-2.78 5-2.78s5 1.2 5 2.78v1.78z"/></g>
-<g id="account-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></g>
-<g id="add"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></g>
-<g id="add-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></g>
-<g id="add-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></g>
-<g id="add-circle-outline"><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></g>
-<g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"/></g>
-<g id="alarm"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"/></g>
-<g id="alarm-add"><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"/></g>
-<g id="alarm-off"><path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.29L1.65 3.57 2.98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13.55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.86 9.86zM8.02 3.28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"/></g>
-<g id="alarm-on"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"/></g>
-<g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"/></g>
-<g id="announcement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/></g>
-<g id="apps"><path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/></g>
-<g id="archive"><path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"/></g>
-<g id="arrow-back"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></g>
-<g id="arrow-drop-down"><path d="M7 10l5 5 5-5z"/></g>
-<g id="arrow-drop-down-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/></g>
-<g id="arrow-drop-up"><path d="M7 14l5-5 5 5z"/></g>
-</defs></svg> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/social-icons.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/social-icons.svg
deleted file mode 100644
index 3b392553..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconSets/assets/social-icons.svg
+++ /dev/null
@@ -1,26 +0,0 @@
-<svg><defs>
-<g id="cake"><path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01zM18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9z"/></g>
-<g id="domain"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"/></g>
-<g id="group"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></g>
-<g id="group-add"><path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91.14zm-5 0c1.66 0 2.99-1.34 2.99-3S14.66 5 13 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm6.62 2.16c.83.73 1.38 1.66 1.38 2.84v2h3v-2c0-1.54-2.37-2.49-4.38-2.84zM13 13c-2 0-6 1-6 3v2h12v-2c0-2-4-3-6-3z"/></g>
-<g id="location-city"><path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z"/></g>
-<g id="mood"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z"/></g>
-<g id="notifications"><path d="M11.5 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6.5-6v-5.5c0-3.07-2.13-5.64-5-6.32V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v.68c-2.87.68-5 3.25-5 6.32V16l-2 2v1h17v-1l-2-2z"/></g>
-<g id="notifications-none"><path d="M11.5 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6.5-6v-5.5c0-3.07-2.13-5.64-5-6.32V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v.68c-2.87.68-5 3.25-5 6.32V16l-2 2v1h17v-1l-2-2zm-2 1H7v-6.5C7 8.01 9.01 6 11.5 6S16 8.01 16 10.5V17z"/></g>
-<g id="notifications-off"><path d="M11.5 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zM18 10.5c0-3.07-2.13-5.64-5-6.32V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v.68c-.51.12-.99.32-1.45.56L18 14.18V10.5zm-.27 8.5l2 2L21 19.73 4.27 3 3 4.27l2.92 2.92C5.34 8.16 5 9.29 5 10.5V16l-2 2v1h14.73z"/></g>
-<g id="notifications-on"><path d="M6.58 3.58L5.15 2.15C2.76 3.97 1.18 6.8 1.03 10h2c.15-2.65 1.51-4.97 3.55-6.42zM19.97 10h2c-.15-3.2-1.73-6.03-4.13-7.85l-1.43 1.43c2.05 1.45 3.41 3.77 3.56 6.42zm-1.97.5c0-3.07-2.13-5.64-5-6.32V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v.68c-2.87.68-5 3.25-5 6.32V16l-2 2v1h17v-1l-2-2v-5.5zM11.5 22c.14 0 .27-.01.4-.04.65-.13 1.19-.58 1.44-1.18.1-.24.16-.5.16-.78h-4c0 1.1.9 2 2 2z"/></g>
-<g id="notifications-paused"><path d="M11.5 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6.5-6v-5.5c0-3.07-2.13-5.64-5-6.32V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v.68c-2.87.68-5 3.25-5 6.32V16l-2 2v1h17v-1l-2-2zm-4-6.2l-2.8 3.4H14V15H9v-1.8l2.8-3.4H9V8h5v1.8z"/></g>
-<g id="pages"><path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/></g>
-<g id="party-mode"><path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .35.07.69.18 1H7.1c-.06-.32-.1-.66-.1-1 0-2.76 2.24-5 5-5zm0 10c-1.63 0-3.06-.79-3.98-2H12c1.66 0 3-1.34 3-3 0-.35-.07-.69-.18-1h2.08c.07.32.1.66.1 1 0 2.76-2.24 5-5 5z"/></g>
-<g id="people"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></g>
-<g id="people-outline"><path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.75 5-1.75s5 1.21 5 1.75v1.25zm9 0H14v-1.25c0-.46-.2-.86-.52-1.22.88-.3 1.96-.53 3.02-.53 2.44 0 5 1.21 5 1.75v1.25zM7.5 12c1.93 0 3.5-1.57 3.5-3.5S9.43 5 7.5 5 4 6.57 4 8.5 5.57 12 7.5 12zm0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 5.5c1.93 0 3.5-1.57 3.5-3.5S18.43 5 16.5 5 13 6.57 13 8.5s1.57 3.5 3.5 3.5zm0-5.5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"/></g>
-<g id="person"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></g>
-<g id="person-add"><path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></g>
-<g id="person-outline"><path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"/></g>
-<g id="plus-one"><path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/></g>
-<g id="poll"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/></g>
-<g id="public"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></g>
-<g id="school"><path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/></g>
-<g id="share"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"/></g>
-<g id="whatshot"><path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"/></g>
-</defs></svg> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/addShoppingCart.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/addShoppingCart.svg
deleted file mode 100644
index b374b901..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/addShoppingCart.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="addShoppingCart"><g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"/></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/android.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/android.svg
deleted file mode 100644
index 306b4e1a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/android.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"/></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/cake.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/cake.svg
deleted file mode 100644
index 512fae04..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoSvgIconsFromURL/img/icons/cake.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="cake"><path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01zM18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9z"/></g></svg> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/android.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/android.svg
deleted file mode 100644
index 306b4e1a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/android.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"/></g></svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/cake.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/cake.svg
deleted file mode 100644
index 512fae04..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/cake.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="cake"><path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01zM18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9z"/></g></svg> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/core-icons.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/core-icons.svg
deleted file mode 100644
index 5f52b2d8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/icon/demoUsingTemplateCache/assets/core-icons.svg
+++ /dev/null
@@ -1,26 +0,0 @@
-<svg><defs>
-<g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"/></g>
-<g id="accessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/></g>
-<g id="account-balance"><path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/></g>
-<g id="account-balance-wallet"><path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/></g>
-<g id="account-box"><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"/></g>
-<g id="account-child"><circle cx="12" cy="13.49" r="1.5"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 2.5c1.24 0 2.25 1.01 2.25 2.25S13.24 9 12 9 9.75 7.99 9.75 6.75 10.76 4.5 12 4.5zm5 10.56v2.5c-.45.41-.96.77-1.5 1.05v-.68c0-.34-.17-.65-.46-.92-.65-.62-1.89-1.02-3.04-1.02-.96 0-1.96.28-2.65.73l-.17.12-.21.17c.78.47 1.63.72 2.54.82l1.33.15c.37.04.66.36.66.75 0 .29-.16.53-.4.66-.28.15-.64.09-.95.09-.35 0-.69-.01-1.03-.05-.5-.06-.99-.17-1.46-.33-.49-.16-.97-.38-1.42-.64-.22-.13-.44-.27-.65-.43l-.31-.24c-.04-.02-.28-.18-.28-.23v-4.28c0-1.58 2.63-2.78 5-2.78s5 1.2 5 2.78v1.78z"/></g>
-<g id="account-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></g>
-<g id="add"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></g>
-<g id="add-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></g>
-<g id="add-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></g>
-<g id="add-circle-outline"><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></g>
-<g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"/></g>
-<g id="alarm"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"/></g>
-<g id="alarm-add"><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"/></g>
-<g id="alarm-off"><path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.29L1.65 3.57 2.98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13.55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.86 9.86zM8.02 3.28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"/></g>
-<g id="alarm-on"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"/></g>
-<g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"/></g>
-<g id="announcement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/></g>
-<g id="apps"><path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/></g>
-<g id="archive"><path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"/></g>
-<g id="arrow-back"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></g>
-<g id="arrow-drop-down"><path d="M7 10l5 5 5-5z"/></g>
-<g id="arrow-drop-down-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/></g>
-<g id="arrow-drop-up"><path d="M7 14l5-5 5 5z"/></g>
-</defs></svg> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_email_24px.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_email_24px.svg
deleted file mode 100644
index d5db1609..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_email_24px.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M20 4h-16c-1.1 0-1.99.9-1.99 2l-.01 12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-12c0-1.1-.9-2-2-2zm0 4l-8 5-8-5v-2l8 5 8-5v2z"/>
- <path d="M0 0h24v24h-24z" fill="none"/>
-</svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_person_24px.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_person_24px.svg
deleted file mode 100644
index 6ce9d1e2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_person_24px.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
- <path d="M0 0h24v24h-24z" fill="none"/>
-</svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_phone_24px.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_phone_24px.svg
deleted file mode 100644
index 79abfad7..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_phone_24px.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M0 0h24v24h-24z" fill="none"/>
- <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1v3.49c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/>
-</svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_place_24px.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_place_24px.svg
deleted file mode 100644
index 6a441cd4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/icons/ic_place_24px.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M12 2c-3.87 0-7 3.13-7 7 0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>
- <path d="M0 0h24v24h-24z" fill="none"/>
-</svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/style.scss
deleted file mode 100644
index e9c4d137..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/input/demoIcons/style.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-.inputIconDemo {
- min-height:48px;
-}
-
-
-md-input-container:not(.md-input-invalid) > md-icon.email {
- color : green;
-}
-md-input-container:not(.md-input-invalid) > md-icon.name {
- color : dodgerblue;
-}
-
-md-input-container.md-input-invalid > md-icon.email,
-md-input-container.md-input-invalid > md-icon.name,
-{
- color : red;
-}
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-0.jpeg b/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-0.jpeg
deleted file mode 100644
index 3281337b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-0.jpeg
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-1.jpeg b/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-1.jpeg
deleted file mode 100644
index 6970b584..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-1.jpeg
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-2.jpeg b/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-2.jpeg
deleted file mode 100644
index 1adbff3a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/list/demoListControls/img/100-2.jpeg
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoDynamicHeight/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoDynamicHeight/style.scss
deleted file mode 100644
index 437977ed..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoDynamicHeight/style.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-md-content {
- background-color: transparent !important;
- md-tabs {
- background: #f6f6f6;
- border: 1px solid #e1e1e1;
- md-tabs-canvas {
- background: white;
- }
- }
- h1:first-child {
- margin-top: 0;
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoDynamicTabs/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoDynamicTabs/style.scss
deleted file mode 100644
index 84a4b00f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoDynamicTabs/style.scss
+++ /dev/null
@@ -1,44 +0,0 @@
-md-content {
- background-color: transparent !important;
- md-tabs {
- border: 1px solid #e1e1e1;
- md-tab-content {
- background: #f6f6f6;
- }
- md-tabs-canvas {
- background: white;
- }
- }
- h1:first-child {
- margin-top: 0;
- }
-}
-md-input-container {
- padding-bottom: 0;
-}
-.remove-tab {
- margin-bottom: 40px;
-}
-.demo-tab > div > div {
- padding: 25px;
- box-sizing: border-box;
-}
-.edit-form input {
- width: 100%;
-}
-md-tabs {
- border-bottom: 1px solid rgba(0,0,0,0.12);
-}
-md-tab[disabled] {
- opacity: 0.5;
-}
-label {
- text-align: left;
-}
-
-.long > input {
- width: 264px;
-}
-.md-button.add-tab {
- transform: translateY(5px);
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoStaticTabs/style.scss b/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoStaticTabs/style.scss
deleted file mode 100644
index 9a088828..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/tabs/demoStaticTabs/style.scss
+++ /dev/null
@@ -1,25 +0,0 @@
-md-tab-content {
- padding: 25px;
- &:nth-child(1) {
- background-color: #42A5F5;
- }
- &:nth-child(2) {
- background-color: #689F38;
- }
- &:nth-child(3) {
- background-color: #26C6DA;
- }
-}
-.after-tabs-area {
- > span {
- margin-top:25px;
- padding-right: 15px;
- vertical-align: middle;
- line-height: 30px;
- height: 35px;
- }
- > md-checkbox {
- margin-top:26px;
- margin-left: 0;
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/favorite.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/favorite.svg
deleted file mode 100644
index a54d02d4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/favorite.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M0 0h24v24h-24z" fill="none"/>
- <path d="M12 21.35l-1.45-1.32c-5.15-4.67-8.55-7.75-8.55-11.53 0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09 1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.78-3.4 6.86-8.55 11.54l-1.45 1.31z"/>
-</svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/menu.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/menu.svg
deleted file mode 100644
index b2de22a3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/menu.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
- <path d="M0 0h18v18h-18z" fill="none"/>
- <path d="M2 13.5h14v-1.5h-14v1.5zm0-4h14v-1.5h-14v1.5zm0-5.5v1.5h14v-1.5h-14z"/>
-</svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/more_vert.svg b/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/more_vert.svg
deleted file mode 100644
index 6e1d96db..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/demos/toolbar/demoBasicUsage/img/icons/more_vert.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
- <path d="M0 0h18v18h-18z" fill="none"/>
- <path d="M9 5.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zm0 2c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"/>
-</svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/index.js b/ecomp-portal-FE/client/bower_components/angular-material/index.js
deleted file mode 100644
index d94f6de8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// Should already be required, here for clarity
-require('angular');
-
-// Load Angular and dependent libs
-require('angular-animate');
-require('angular-aria');
-
-// Now load Angular Material
-require('./angular-material');
-
-// Export namespace
-module.exports = 'ngMaterial';
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete-default-theme.css
deleted file mode 100644
index d5374598..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete-default-theme.css
+++ /dev/null
@@ -1,24 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-autocomplete.md-THEME_NAME-theme {
- background: '{{background-50}}'; }
- md-autocomplete.md-THEME_NAME-theme[disabled] {
- background: '{{background-100}}'; }
- md-autocomplete.md-THEME_NAME-theme button md-icon path {
- fill: '{{background-600}}'; }
- md-autocomplete.md-THEME_NAME-theme button:after {
- background: '{{background-600-0.3}}'; }
-
-.md-autocomplete-suggestions.md-THEME_NAME-theme {
- background: '{{background-50}}'; }
- .md-autocomplete-suggestions.md-THEME_NAME-theme li {
- color: '{{background-900}}'; }
- .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight {
- color: '{{background-600}}'; }
- .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected {
- background: '{{background-200}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete.css
deleted file mode 100644
index 51c3f857..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete.css
+++ /dev/null
@@ -1,220 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes md-autocomplete-list-out {
- 0% {
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 50% {
- opacity: 0;
- height: 40px;
- -webkit-animation-timing-function: ease-in;
- animation-timing-function: ease-in; }
-
- 100% {
- height: 0;
- opacity: 0; } }
-@keyframes md-autocomplete-list-out {
- 0% {
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 50% {
- opacity: 0;
- height: 40px;
- -webkit-animation-timing-function: ease-in;
- animation-timing-function: ease-in; }
-
- 100% {
- height: 0;
- opacity: 0; } }
-
-@-webkit-keyframes md-autocomplete-list-in {
- 0% {
- opacity: 0;
- height: 0;
- -webkit-animation-timing-function: ease-out;
- animation-timing-function: ease-out; }
-
- 50% {
- opacity: 0;
- height: 40px; }
-
- 100% {
- opacity: 1;
- height: 40px; } }
-
-@keyframes md-autocomplete-list-in {
- 0% {
- opacity: 0;
- height: 0;
- -webkit-animation-timing-function: ease-out;
- animation-timing-function: ease-out; }
-
- 50% {
- opacity: 0;
- height: 40px; }
-
- 100% {
- opacity: 1;
- height: 40px; } }
-
-md-autocomplete {
- border-radius: 2px;
- display: block;
- height: 40px;
- position: relative;
- overflow: visible;
- min-width: 190px; }
- md-autocomplete[disabled] input {
- cursor: not-allowed; }
- md-autocomplete[md-floating-label] {
- padding-bottom: 26px;
- border-radius: 0;
- background: transparent;
- height: auto; }
- md-autocomplete[md-floating-label] md-input-container {
- padding-bottom: 0; }
- md-autocomplete[md-floating-label] md-autocomplete-wrap {
- height: auto; }
- md-autocomplete[md-floating-label] button {
- position: absolute;
- top: auto;
- bottom: 0;
- right: 0;
- width: 30px;
- height: 30px; }
- md-autocomplete md-autocomplete-wrap {
- display: block;
- position: relative;
- overflow: visible;
- height: 40px; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate] {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 3px;
- transition: none; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate] .md-container {
- transition: none;
- top: auto;
- height: 3px; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter {
- transition: opacity 0.15s linear; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter.ng-enter-active {
- opacity: 1; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave {
- transition: opacity 0.15s linear; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave.ng-leave-active {
- opacity: 0; }
- md-autocomplete input:not(.md-input) {
- width: 100%;
- box-sizing: border-box;
- border: none;
- box-shadow: none;
- padding: 0 15px;
- font-size: 14px;
- line-height: 40px;
- height: 40px;
- outline: none;
- background: transparent; }
- md-autocomplete input:not(.md-input)::-ms-clear {
- display: none; }
- md-autocomplete button {
- position: relative;
- line-height: 20px;
- text-align: center;
- width: 30px;
- height: 30px;
- cursor: pointer;
- border: none;
- border-radius: 50%;
- padding: 0;
- font-size: 12px;
- background: transparent;
- margin: auto 5px; }
- md-autocomplete button:after {
- content: '';
- position: absolute;
- top: -6px;
- right: -6px;
- bottom: -6px;
- left: -6px;
- border-radius: 50%;
- -webkit-transform: scale(0);
- transform: scale(0);
- opacity: 0;
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-autocomplete button:focus {
- outline: none; }
- md-autocomplete button:focus:after {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
- md-autocomplete button md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0) scale(0.9);
- transform: translate3d(-50%, -50%, 0) scale(0.9); }
- md-autocomplete button md-icon path {
- stroke-width: 0; }
- md-autocomplete button.ng-enter {
- -webkit-transform: scale(0);
- transform: scale(0);
- transition: -webkit-transform 0.15s ease-out;
- transition: transform 0.15s ease-out; }
- md-autocomplete button.ng-enter.ng-enter-active {
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-autocomplete button.ng-leave {
- transition: -webkit-transform 0.15s ease-out;
- transition: transform 0.15s ease-out; }
- md-autocomplete button.ng-leave.ng-leave-active {
- -webkit-transform: scale(0);
- transform: scale(0); }
- @media screen and (-ms-high-contrast: active) {
- md-autocomplete input {
- border: 1px solid #fff; }
- md-autocomplete li:focus {
- color: #fff; } }
-
-.md-autocomplete-suggestions {
- position: absolute;
- margin: 0;
- list-style: none;
- padding: 0;
- overflow: auto;
- max-height: 225.5px;
- z-index: 100; }
- .md-autocomplete-suggestions li {
- cursor: pointer;
- font-size: 14px;
- overflow: hidden;
- padding: 0 15px;
- line-height: 48px;
- height: 48px;
- transition: background 0.15s linear;
- margin: 0;
- white-space: nowrap;
- text-overflow: ellipsis; }
- .md-autocomplete-suggestions li.ng-enter, .md-autocomplete-suggestions li.ng-hide-remove {
- transition: none;
- -webkit-animation: md-autocomplete-list-in 0.2s;
- animation: md-autocomplete-list-in 0.2s; }
- .md-autocomplete-suggestions li.ng-leave, .md-autocomplete-suggestions li.ng-hide-add {
- transition: none;
- -webkit-animation: md-autocomplete-list-out 0.2s;
- animation: md-autocomplete-list-out 0.2s; }
- .md-autocomplete-suggestions li:focus {
- outline: none; }
-
-@media screen and (-ms-high-contrast: active) {
- md-autocomplete, .md-autocomplete-suggestions {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete.js
deleted file mode 100644
index 149ae2dc..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/autocomplete/autocomplete.js
+++ /dev/null
@@ -1,794 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.autocomplete');
-goog.require('ng.material.components.icon');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.autocomplete
- */
-/*
- * @see js folder for autocomplete implementation
- */
-angular.module('material.components.autocomplete', [
- 'material.core',
- 'material.components.icon'
-]);
-
-angular
- .module('material.components.autocomplete')
- .controller('MdAutocompleteCtrl', MdAutocompleteCtrl);
-
-var ITEM_HEIGHT = 41,
- MAX_HEIGHT = 5.5 * ITEM_HEIGHT,
- MENU_PADDING = 8;
-
-function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $timeout, $mdTheming, $window, $animate, $rootElement) {
-
- //-- private variables
-
- var self = this,
- itemParts = $scope.itemsExpr.split(/ in /i),
- itemExpr = itemParts[1],
- elements = null,
- promise = null,
- cache = {},
- noBlur = false,
- selectedItemWatchers = [],
- hasFocus = false,
- lastCount = 0;
-
- //-- public variables
-
- self.scope = $scope;
- self.parent = $scope.$parent;
- self.itemName = itemParts[0];
- self.matches = [];
- self.loading = false;
- self.hidden = true;
- self.index = null;
- self.messages = [];
- self.id = $mdUtil.nextUid();
-
- //-- public methods
-
- self.keydown = keydown;
- self.blur = blur;
- self.focus = focus;
- self.clear = clearValue;
- self.select = select;
- self.getCurrentDisplayValue = getCurrentDisplayValue;
- self.registerSelectedItemWatcher = registerSelectedItemWatcher;
- self.unregisterSelectedItemWatcher = unregisterSelectedItemWatcher;
-
- self.listEnter = function () { noBlur = true; };
- self.listLeave = function () {
- noBlur = false;
- if (!hasFocus) self.hidden = true;
- };
- self.mouseUp = function () { elements.input.focus(); };
-
- return init();
-
- //-- initialization methods
-
- function init () {
- configureWatchers();
- $timeout(function () {
- gatherElements();
- focusElement();
- moveDropdown();
- });
- }
-
- function positionDropdown () {
- if (!elements) return $timeout(positionDropdown, 0, false);
- var hrect = elements.wrap.getBoundingClientRect(),
- vrect = elements.snap.getBoundingClientRect(),
- root = elements.root.getBoundingClientRect(),
- top = vrect.bottom - root.top,
- bot = root.bottom - vrect.top,
- left = hrect.left - root.left,
- width = hrect.width,
- styles = {
- left: left + 'px',
- minWidth: width + 'px',
- maxWidth: Math.max(hrect.right - root.left, root.right - hrect.left) - MENU_PADDING + 'px'
- };
- if (top > bot && root.height - hrect.bottom - MENU_PADDING < MAX_HEIGHT) {
- styles.top = 'auto';
- styles.bottom = bot + 'px';
- styles.maxHeight = Math.min(MAX_HEIGHT, hrect.top - root.top - MENU_PADDING) + 'px';
- } else {
- styles.top = top + 'px';
- styles.bottom = 'auto';
- styles.maxHeight = Math.min(MAX_HEIGHT, root.bottom - hrect.bottom - MENU_PADDING) + 'px';
- }
- elements.$.ul.css(styles);
- $timeout(correctHorizontalAlignment, 0, false);
-
- function correctHorizontalAlignment () {
- var dropdown = elements.ul.getBoundingClientRect(),
- styles = {};
- if (dropdown.right > root.right - MENU_PADDING) {
- styles.left = (hrect.right - dropdown.width) + 'px';
- }
- elements.$.ul.css(styles);
- }
- }
-
- function moveDropdown () {
- if (!elements.$.root.length) return;
- $mdTheming(elements.$.ul);
- elements.$.ul.detach();
- elements.$.root.append(elements.$.ul);
- if ($animate.pin) $animate.pin(elements.$.ul, $rootElement);
- }
-
- function focusElement () {
- if ($scope.autofocus) elements.input.focus();
- }
-
- function configureWatchers () {
- var wait = parseInt($scope.delay, 10) || 0;
- $scope.$watch('searchText', wait
- ? $mdUtil.debounce(handleSearchText, wait)
- : handleSearchText);
- registerSelectedItemWatcher(selectedItemChange);
- $scope.$watch('selectedItem', handleSelectedItemChange);
- $scope.$watch('$mdAutocompleteCtrl.hidden', function (hidden, oldHidden) {
- if (!hidden && oldHidden) positionDropdown();
- });
- angular.element($window).on('resize', positionDropdown);
- $scope.$on('$destroy', cleanup);
- }
-
- function cleanup () {
- elements.$.ul.remove();
- }
-
- function gatherElements () {
- elements = {
- main: $element[0],
- ul: $element.find('ul')[0],
- input: $element.find('input')[0],
- wrap: $element.find('md-autocomplete-wrap')[0],
- root: document.body
- };
- elements.li = elements.ul.getElementsByTagName('li');
- elements.snap = getSnapTarget();
- elements.$ = getAngularElements(elements);
- }
-
- function getSnapTarget () {
- for (var element = $element; element.length; element = element.parent()) {
- if (angular.isDefined(element.attr('md-autocomplete-snap'))) return element[0];
- }
- return elements.wrap;
- }
-
- function getAngularElements (elements) {
- var obj = {};
- for (var key in elements) {
- obj[key] = angular.element(elements[key]);
- }
- return obj;
- }
-
- //-- event/change handlers
-
- function selectedItemChange (selectedItem, previousSelectedItem) {
- if (selectedItem) {
- $scope.searchText = getDisplayValue(selectedItem);
- }
- if ($scope.itemChange && selectedItem !== previousSelectedItem)
- $scope.itemChange(getItemScope(selectedItem));
- }
-
- function handleSelectedItemChange(selectedItem, previousSelectedItem) {
- for (var i = 0; i < selectedItemWatchers.length; ++i) {
- selectedItemWatchers[i](selectedItem, previousSelectedItem);
- }
- }
-
- /**
- * Register a function to be called when the selected item changes.
- * @param cb
- */
- function registerSelectedItemWatcher(cb) {
- if (selectedItemWatchers.indexOf(cb) == -1) {
- selectedItemWatchers.push(cb);
- }
- }
-
- /**
- * Unregister a function previously registered for selected item changes.
- * @param cb
- */
- function unregisterSelectedItemWatcher(cb) {
- var i = selectedItemWatchers.indexOf(cb);
- if (i != -1) {
- selectedItemWatchers.splice(i, 1);
- }
- }
-
- function handleSearchText (searchText, previousSearchText) {
- self.index = getDefaultIndex();
- //-- do nothing on init
- if (searchText === previousSearchText) return;
- //-- clear selected item if search text no longer matches it
- if (searchText !== getDisplayValue($scope.selectedItem)) $scope.selectedItem = null;
- else return;
- //-- trigger change event if available
- if ($scope.textChange && searchText !== previousSearchText)
- $scope.textChange(getItemScope($scope.selectedItem));
- //-- cancel results if search text is not long enough
- if (!isMinLengthMet()) {
- self.loading = false;
- self.matches = [];
- self.hidden = shouldHide();
- updateMessages();
- } else {
- handleQuery();
- }
- }
-
- function blur () {
- hasFocus = false;
- if (!noBlur) self.hidden = true;
- }
-
- function focus () {
- hasFocus = true;
- //-- if searchText is null, let's force it to be a string
- if (!angular.isString($scope.searchText)) $scope.searchText = '';
- if ($scope.minLength > 0) return;
- self.hidden = shouldHide();
- if (!self.hidden) handleQuery();
- }
-
- function keydown (event) {
- switch (event.keyCode) {
- case $mdConstant.KEY_CODE.DOWN_ARROW:
- if (self.loading) return;
- event.preventDefault();
- self.index = Math.min(self.index + 1, self.matches.length - 1);
- updateScroll();
- updateMessages();
- break;
- case $mdConstant.KEY_CODE.UP_ARROW:
- if (self.loading) return;
- event.preventDefault();
- self.index = self.index < 0 ? self.matches.length - 1 : Math.max(0, self.index - 1);
- updateScroll();
- updateMessages();
- break;
- case $mdConstant.KEY_CODE.TAB:
- case $mdConstant.KEY_CODE.ENTER:
- if (self.hidden || self.loading || self.index < 0 || self.matches.length < 1) return;
- event.preventDefault();
- select(self.index);
- break;
- case $mdConstant.KEY_CODE.ESCAPE:
- self.matches = [];
- self.hidden = true;
- self.index = getDefaultIndex();
- break;
- default:
- }
- }
-
- //-- getters
-
- function getMinLength () {
- return angular.isNumber($scope.minLength) ? $scope.minLength : 1;
- }
-
- function getDisplayValue (item) {
- return (item && $scope.itemText) ? $scope.itemText(getItemScope(item)) : item;
- }
-
- function getItemScope (item) {
- if (!item) return;
- var locals = {};
- if (self.itemName) locals[self.itemName] = item;
- return locals;
- }
-
- function getDefaultIndex () {
- return $scope.autoselect ? 0 : -1;
- }
-
- function shouldHide () {
- if (!isMinLengthMet()) return true;
- }
-
- function getCurrentDisplayValue () {
- return getDisplayValue(self.matches[self.index]);
- }
-
- function isMinLengthMet () {
- return $scope.searchText && $scope.searchText.length >= getMinLength();
- }
-
- //-- actions
-
- function select (index) {
- $scope.selectedItem = self.matches[index];
- self.hidden = true;
- self.index = 0;
- self.matches = [];
- //-- force form to update state for validation
- $timeout(function () {
- elements.$.input.controller('ngModel').$setViewValue(getDisplayValue($scope.selectedItem) || $scope.searchText);
- self.hidden = true;
- });
- }
-
- function clearValue () {
- $scope.searchText = '';
- select(-1);
-
- // Per http://www.w3schools.com/jsref/event_oninput.asp
- var eventObj = document.createEvent('CustomEvent');
- eventObj.initCustomEvent('input', true, true, {value: $scope.searchText});
- elements.input.dispatchEvent(eventObj);
-
- elements.input.focus();
- }
-
- function fetchResults (searchText) {
- var items = $scope.$parent.$eval(itemExpr),
- term = searchText.toLowerCase();
- if (angular.isArray(items)) {
- handleResults(items);
- } else {
- self.loading = true;
- if (items.success) items.success(handleResults);
- if (items.then) items.then(handleResults);
- if (items.error) items.error(function () { self.loading = false; });
- }
- function handleResults (matches) {
- cache[term] = matches;
- if (searchText !== $scope.searchText) return; //-- just cache the results if old request
- self.loading = false;
- promise = null;
- self.matches = matches;
- self.hidden = shouldHide();
- updateMessages();
- positionDropdown();
- }
- }
-
- function updateMessages () {
- self.messages = [ getCountMessage(), getCurrentDisplayValue() ];
- }
-
- function getCountMessage () {
- if (lastCount === self.matches.length) return '';
- lastCount = self.matches.length;
- switch (self.matches.length) {
- case 0: return 'There are no matches available.';
- case 1: return 'There is 1 match available.';
- default: return 'There are ' + self.matches.length + ' matches available.';
- }
- }
-
- function updateScroll () {
- if (!elements.li[self.index]) return;
- var li = elements.li[self.index],
- top = li.offsetTop,
- bot = top + li.offsetHeight,
- hgt = elements.ul.clientHeight;
- if (top < elements.ul.scrollTop) {
- elements.ul.scrollTop = top;
- } else if (bot > elements.ul.scrollTop + hgt) {
- elements.ul.scrollTop = bot - hgt;
- }
- }
-
- function handleQuery () {
- var searchText = $scope.searchText,
- term = searchText.toLowerCase();
- //-- cancel promise if a promise is in progress
- if (promise && promise.cancel) {
- promise.cancel();
- promise = null;
- }
- //-- if results are cached, pull in cached results
- if (!$scope.noCache && cache[term]) {
- self.matches = cache[term];
- updateMessages();
- } else {
- fetchResults(searchText);
- }
- if (hasFocus) self.hidden = shouldHide();
- }
-
-}
-MdAutocompleteCtrl.$inject = ["$scope", "$element", "$mdUtil", "$mdConstant", "$timeout", "$mdTheming", "$window", "$animate", "$rootElement"];
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocomplete', MdAutocomplete);
-
-/**
- * @ngdoc directive
- * @name mdAutocomplete
- * @module material.components.autocomplete
- *
- * @description
- * `<md-autocomplete>` is a special input component with a drop-down of all possible matches to a custom query.
- * This component allows you to provide real-time suggestions as the user types in the input area.
- *
- * To start, you will need to specify the required parameters and provide a template for your results.
- * The content inside `md-autocomplete` will be treated as a template.
- *
- * In more complex cases, you may want to include other content such as a message to display when
- * no matches were found. You can do this by wrapping your template in `md-item-template` and adding
- * a tag for `md-not-found`. An example of this is shown below.
- * ### Validation
- *
- * You can use `ng-messages` to include validation the same way that you would normally validate;
- * however, if you want to replicate a standard input with a floating label, you will have to do the
- * following:
- *
- * - Make sure that your template is wrapped in `md-item-template`
- * - Add your `ng-messages` code inside of `md-autocomplete`
- * - Add your validation properties to `md-autocomplete` (ie. `required`)
- * - Add a `name` to `md-autocomplete` (to be used on the generated `input`)
- *
- * There is an example below of how this should look.
- *
- *
- * @param {expression} md-items An expression in the format of `item in items` to iterate over matches for your search.
- * @param {expression=} md-selected-item-change An expression to be run each time a new item is selected
- * @param {expression=} md-search-text-change An expression to be run each time the search text updates
- * @param {string=} md-search-text A model to bind the search query text to
- * @param {object=} md-selected-item A model to bind the selected item to
- * @param {string=} md-item-text An expression that will convert your object to a single string.
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {boolean=} md-no-cache Disables the internal caching that happens in autocomplete
- * @param {boolean=} ng-disabled Determines whether or not to disable the input field
- * @param {number=} md-min-length Specifies the minimum length of text before autocomplete will make suggestions
- * @param {number=} md-delay Specifies the amount of time (in milliseconds) to wait before looking for results
- * @param {boolean=} md-autofocus If true, will immediately focus the input element
- * @param {boolean=} md-autoselect If true, the first item will be selected by default
- * @param {string=} md-menu-class This will be applied to the dropdown menu for styling
- * @param {string=} md-floating-label This will add a floating label to autocomplete and wrap it in `md-input-container`
- *
- * @usage
- * ###Basic Example
- * <hljs lang="html">
- * <md-autocomplete
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-autocomplete>
- * </hljs>
- *
- * ###Example with "not found" message
- * <hljs lang="html">
- * <md-autocomplete
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <md-item-template>
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-item-template>
- * <md-not-found>
- * No matches found.
- * </md-not-found>
- * </md-autocomplete>
- * </hljs>
- *
- * In this example, our code utilizes `md-item-template` and `md-not-found` to specify the different
- * parts that make up our component.
- *
- * ### Example with validation
- * <hljs lang="html">
- * <form name="autocompleteForm">
- * <md-autocomplete
- * required
- * input-name="autocomplete"
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <md-item-template>
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-item-template>
- * <div ng-messages="autocompleteForm.autocomplete.$error">
- * <div ng-message="required">This field is required</div>
- * </div>
- * </md-autocomplete>
- * </form>
- * </hljs>
- *
- * In this example, our code utilizes `md-item-template` and `md-not-found` to specify the different
- * parts that make up our component.
- */
-
-function MdAutocomplete ($mdTheming, $mdUtil) {
- return {
- controller: 'MdAutocompleteCtrl',
- controllerAs: '$mdAutocompleteCtrl',
- link: link,
- scope: {
- inputName: '@mdInputName',
- inputMinlength: '@mdInputMinlength',
- inputMaxlength: '@mdInputMaxlength',
- searchText: '=?mdSearchText',
- selectedItem: '=?mdSelectedItem',
- itemsExpr: '@mdItems',
- itemText: '&mdItemText',
- placeholder: '@placeholder',
- noCache: '=?mdNoCache',
- itemChange: '&?mdSelectedItemChange',
- textChange: '&?mdSearchTextChange',
- minLength: '=?mdMinLength',
- delay: '=?mdDelay',
- autofocus: '=?mdAutofocus',
- floatingLabel: '@?mdFloatingLabel',
- autoselect: '=?mdAutoselect',
- menuClass: '@?mdMenuClass'
- },
- template: function (element, attr) {
- var noItemsTemplate = getNoItemsTemplate(),
- itemTemplate = getItemTemplate(),
- leftover = element.html();
- return '\
- <md-autocomplete-wrap\
- layout="row"\
- ng-class="{ \'md-whiteframe-z1\': !floatingLabel }"\
- role="listbox">\
- ' + getInputElement() + '\
- <md-progress-linear\
- ng-if="$mdAutocompleteCtrl.loading"\
- md-mode="indeterminate"></md-progress-linear>\
- <ul role="presentation"\
- class="md-autocomplete-suggestions md-whiteframe-z1 {{menuClass || \'\'}}"\
- id="ul-{{$mdAutocompleteCtrl.id}}"\
- ng-mouseenter="$mdAutocompleteCtrl.listEnter()"\
- ng-mouseleave="$mdAutocompleteCtrl.listLeave()"\
- ng-mouseup="$mdAutocompleteCtrl.mouseUp()">\
- <li ng-repeat="(index, item) in $mdAutocompleteCtrl.matches"\
- ng-class="{ selected: index === $mdAutocompleteCtrl.index }"\
- ng-hide="$mdAutocompleteCtrl.hidden"\
- ng-click="$mdAutocompleteCtrl.select(index)"\
- md-autocomplete-list-item="$mdAutocompleteCtrl.itemName">\
- ' + itemTemplate + '\
- </li>\
- ' + noItemsTemplate + '\
- </ul>\
- </md-autocomplete-wrap>\
- <aria-status\
- class="md-visually-hidden"\
- role="status"\
- aria-live="assertive">\
- <p ng-repeat="message in $mdAutocompleteCtrl.messages" ng-if="message">{{message}}</p>\
- </aria-status>';
-
- function getItemTemplate() {
- var templateTag = element.find('md-item-template').remove(),
- html = templateTag.length ? templateTag.html() : element.html();
- if (!templateTag.length) element.empty();
- return html;
- }
-
- function getNoItemsTemplate() {
- var templateTag = element.find('md-not-found').remove(),
- template = templateTag.length ? templateTag.html() : '';
- return template
- ? '<li ng-if="!$mdAutocompleteCtrl.matches.length && !$mdAutocompleteCtrl.loading\
- && !$mdAutocompleteCtrl.hidden"\
- ng-hide="$mdAutocompleteCtrl.hidden"\
- md-autocomplete-parent-scope>' + template + '</li>'
- : '';
-
- }
-
- function getInputElement() {
- if (attr.mdFloatingLabel) {
- return '\
- <md-input-container flex ng-if="floatingLabel">\
- <label>{{floatingLabel}}</label>\
- <input type="search"\
- id="fl-input-{{$mdAutocompleteCtrl.id}}"\
- name="{{inputName}}"\
- autocomplete="off"\
- ng-required="isRequired"\
- ng-minlength="inputMinlength"\
- ng-maxlength="inputMaxlength"\
- ng-disabled="isDisabled"\
- ng-model="$mdAutocompleteCtrl.scope.searchText"\
- ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
- ng-blur="$mdAutocompleteCtrl.blur()"\
- ng-focus="$mdAutocompleteCtrl.focus()"\
- aria-owns="ul-{{$mdAutocompleteCtrl.id}}"\
- aria-label="{{floatingLabel}}"\
- aria-autocomplete="list"\
- aria-haspopup="true"\
- aria-activedescendant=""\
- aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
- <div md-autocomplete-parent-scope md-autocomplete-replace>' + leftover + '</div>\
- </md-input-container>';
- } else {
- return '\
- <input flex type="search"\
- id="input-{{$mdAutocompleteCtrl.id}}"\
- name="{{inputName}}"\
- ng-if="!floatingLabel"\
- autocomplete="off"\
- ng-required="isRequired"\
- ng-disabled="isDisabled"\
- ng-model="$mdAutocompleteCtrl.scope.searchText"\
- ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
- ng-blur="$mdAutocompleteCtrl.blur()"\
- ng-focus="$mdAutocompleteCtrl.focus()"\
- placeholder="{{placeholder}}"\
- aria-owns="ul-{{$mdAutocompleteCtrl.id}}"\
- aria-label="{{placeholder}}"\
- aria-autocomplete="list"\
- aria-haspopup="true"\
- aria-activedescendant=""\
- aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
- <button\
- type="button"\
- tabindex="-1"\
- ng-if="$mdAutocompleteCtrl.scope.searchText && !isDisabled"\
- ng-click="$mdAutocompleteCtrl.clear()">\
- <md-icon md-svg-icon="md-close"></md-icon>\
- <span class="md-visually-hidden">Clear</span>\
- </button>\
- ';
- }
- }
- }
- };
-
- function link (scope, element, attr) {
- attr.$observe('disabled', function (value) { scope.isDisabled = value; });
- attr.$observe('required', function (value) { scope.isRequired = value !== null; });
-
- $mdUtil.initOptionalProperties(scope, attr, {searchText:null, selectedItem:null} );
-
- $mdTheming(element);
- }
-}
-MdAutocomplete.$inject = ["$mdTheming", "$mdUtil"];
-
-angular
- .module('material.components.autocomplete')
- .controller('MdHighlightCtrl', MdHighlightCtrl);
-
-function MdHighlightCtrl ($scope, $element, $interpolate) {
- this.init = init;
-
- return init();
-
- function init (term) {
- var unsafeText = $interpolate($element.html())($scope),
- text = angular.element('<div>').text(unsafeText).html(),
- flags = $element.attr('md-highlight-flags') || '',
- watcher = $scope.$watch(term, function (term) {
- var regex = getRegExp(term, flags),
- html = text.replace(regex, '<span class="highlight">$&</span>');
- $element.html(html);
- });
- $element.on('$destroy', function () { watcher(); });
- }
-
- function sanitize (term) {
- if (!term) return term;
- return term.replace(/[\\\^\$\*\+\?\.\(\)\|\{\}\[\]]/g, '\\$&');
- }
-
- function getRegExp (text, flags) {
- var str = '';
- if (flags.indexOf('^') >= 1) str += '^';
- str += text;
- if (flags.indexOf('$') >= 1) str += '$';
- return new RegExp(sanitize(str), flags.replace(/[\$\^]/g, ''));
- }
-}
-MdHighlightCtrl.$inject = ["$scope", "$element", "$interpolate"];
-
-angular
- .module('material.components.autocomplete')
- .directive('mdHighlightText', MdHighlight);
-
-/**
- * @ngdoc directive
- * @name mdHighlightText
- * @module material.components.autocomplete
- *
- * @description
- * The `md-highlight-text` directive allows you to specify text that should be highlighted within
- * an element. Highlighted text will be wrapped in `<span class="highlight"></span>` which can
- * be styled through CSS. Please note that child elements may not be used with this directive.
- *
- * @param {string} md-highlight-text A model to be searched for
- * @param {string=} md-highlight-flags A list of flags (loosely based on JavaScript RexExp flags).
- * #### **Supported flags**:
- * - `g`: Find all matches within the provided text
- * - `i`: Ignore case when searching for matches
- * - `$`: Only match if the text ends with the search term
- * - `^`: Only match if the text begins with the search term
- *
- * @usage
- * <hljs lang="html">
- * <input placeholder="Enter a search term..." ng-model="searchTerm" type="text" />
- * <ul>
- * <li ng-repeat="result in results" md-highlight-text="searchTerm">
- * {{result.text}}
- * </li>
- * </ul>
- * </hljs>
- */
-
-function MdHighlight () {
- return {
- terminal: true,
- scope: false,
- controller: 'MdHighlightCtrl',
- link: function (scope, element, attr, ctrl) {
- ctrl.init(attr.mdHighlightText);
- }
- };
-}
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocompleteListItem', MdAutocompleteListItem);
-
-function MdAutocompleteListItem ($compile, $mdUtil) {
- return {
- terminal: true,
- link: postLink,
- scope: false
- };
- function postLink (scope, element, attr) {
- var ctrl = scope.$parent.$mdAutocompleteCtrl,
- newScope = ctrl.parent.$new(false, ctrl.parent),
- itemName = ctrl.scope.$eval(attr.mdAutocompleteListItem);
- newScope[itemName] = scope.item;
- $compile(element.contents())(newScope);
- element.attr({
- role: 'option',
- id: 'item_' + $mdUtil.nextUid()
- });
- }
-}
-MdAutocompleteListItem.$inject = ["$compile", "$mdUtil"];
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocompleteParentScope', MdAutocompleteParentScope);
-
-function MdAutocompleteParentScope ($compile, $mdUtil) {
- return {
- restrict: 'A',
- terminal: true,
- link: postLink,
- scope: false
- };
- function postLink (scope, element, attr) {
- var ctrl = scope.$parent.$mdAutocompleteCtrl;
- $compile(element.contents())(ctrl.parent);
- if (attr.hasOwnProperty('mdAutocompleteReplace')) {
- element.after(element.contents());
- element.remove();
- }
- }
-}
-MdAutocompleteParentScope.$inject = ["$compile", "$mdUtil"];
-
-ng.material.components.autocomplete = angular.module("material.components.autocomplete"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop-default-theme.css
deleted file mode 100644
index 6177ae75..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop-default-theme.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-backdrop.md-opaque.md-THEME_NAME-theme {
- background-color: '{{foreground-4-0.5}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop.css
deleted file mode 100644
index d20683a5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-backdrop {
- z-index: 50;
- background-color: transparent;
- position: absolute;
- height: 100%;
- left: 0;
- right: 0; }
- md-backdrop.md-select-backdrop {
- z-index: 81; }
- md-backdrop.md-dialog-backdrop {
- z-index: 79; }
- md-backdrop.md-bottom-sheet-backdrop {
- z-index: 69; }
- md-backdrop.md-sidenav-backdrop {
- z-index: 59; }
- md-backdrop.md-click-catcher {
- top: 0;
- position: fixed; }
- md-backdrop.ng-enter {
- -webkit-animation: cubic-bezier(0.25, 0.8, 0.25, 1) mdBackdropFadeIn 0.5s both;
- animation: cubic-bezier(0.25, 0.8, 0.25, 1) mdBackdropFadeIn 0.5s both; }
- md-backdrop.ng-leave {
- -webkit-animation: cubic-bezier(0.55, 0, 0.55, 0.2) mdBackdropFadeOut 0.2s both;
- animation: cubic-bezier(0.55, 0, 0.55, 0.2) mdBackdropFadeOut 0.2s both; }
-
-@-webkit-keyframes mdBackdropFadeIn {
- from {
- opacity: 0; }
-
- to {
- opacity: 1; } }
-
-@keyframes mdBackdropFadeIn {
- from {
- opacity: 0; }
-
- to {
- opacity: 1; } }
-
-@-webkit-keyframes mdBackdropFadeOut {
- from {
- opacity: 1; }
-
- to {
- opacity: 0; } }
-
-@keyframes mdBackdropFadeOut {
- from {
- opacity: 1; }
-
- to {
- opacity: 0; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop.js
deleted file mode 100644
index 11dfaff1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/backdrop/backdrop.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.backdrop');
-goog.require('ng.material.core');
-/*
- * @ngdoc module
- * @name material.components.backdrop
- * @description Backdrop
- */
-
-/**
- * @ngdoc directive
- * @name mdBackdrop
- * @module material.components.backdrop
- *
- * @restrict E
- *
- * @description
- * `<md-backdrop>` is a backdrop element used by other components, such as dialog and bottom sheet.
- * Apply class `opaque` to make the backdrop use the theme backdrop color.
- *
- */
-
-angular.module('material.components.backdrop', [
- 'material.core'
-])
- .directive('mdBackdrop', BackdropDirective);
-
-function BackdropDirective($mdTheming) {
- return $mdTheming;
-}
-BackdropDirective.$inject = ["$mdTheming"];
-
-ng.material.components.backdrop = angular.module("material.components.backdrop"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet-default-theme.css
deleted file mode 100644
index 82e3eb39..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet-default-theme.css
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-bottom-sheet.md-THEME_NAME-theme {
- background-color: '{{background-50}}';
- border-top-color: '{{background-300}}'; }
- md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item {
- color: '{{foreground-1}}'; }
- md-bottom-sheet.md-THEME_NAME-theme .md-subheader {
- background-color: '{{background-50}}'; }
- md-bottom-sheet.md-THEME_NAME-theme .md-subheader {
- color: '{{foreground-1}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.css
deleted file mode 100644
index 88a429f2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.css
+++ /dev/null
@@ -1,170 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-bottom-sheet {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- padding: 8px 16px 88px 16px;
- z-index: 70;
- border-top-width: 1px;
- border-top-style: solid;
- -webkit-transform: translate3d(0, 80px, 0);
- transform: translate3d(0, 80px, 0);
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-property: -webkit-transform;
- transition-property: transform; }
- md-bottom-sheet.md-has-header {
- padding-top: 0; }
- md-bottom-sheet.ng-enter {
- opacity: 0;
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0); }
- md-bottom-sheet.ng-enter-active {
- opacity: 1;
- display: block;
- -webkit-transform: translate3d(0, 80px, 0) !important;
- transform: translate3d(0, 80px, 0) !important; }
- md-bottom-sheet.ng-leave-active {
- -webkit-transform: translate3d(0, 100%, 0) !important;
- transform: translate3d(0, 100%, 0) !important;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-bottom-sheet .md-subheader {
- background-color: transparent;
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif;
- line-height: 56px;
- padding: 0;
- white-space: nowrap; }
- md-bottom-sheet md-inline-icon {
- display: inline-block;
- height: 24px;
- width: 24px;
- fill: #444; }
- md-bottom-sheet md-list-item {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- outline: none; }
- md-bottom-sheet md-list-item:hover {
- cursor: pointer; }
- md-bottom-sheet.md-list md-list-item {
- padding: 0;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- height: 48px; }
- md-bottom-sheet.md-list md-list-item div.md-icon-container {
- display: inline-block;
- height: 24px;
- margin-right: 32px; }
- md-bottom-sheet.md-grid {
- padding-left: 24px;
- padding-right: 24px;
- padding-top: 0; }
- md-bottom-sheet.md-grid md-list {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
- transition: all 0.5s;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- transition: all 0.5s;
- height: 96px;
- margin-top: 8px;
- margin-bottom: 8px;
- /* Mixin for how many grid items to show per row */ }
- @media screen and (max-width: 600px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 33.33333%;
- -ms-flex: 1 1 33.33333%;
- flex: 1 1 33.33333%;
- max-width: 33.33333%; }
- md-bottom-sheet.md-grid md-list-item:nth-of-type(3n+1) {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- md-bottom-sheet.md-grid md-list-item:nth-of-type(3n) {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; } }
- @media screen and (min-width: 600px) and (max-width: 960px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 25%;
- -ms-flex: 1 1 25%;
- flex: 1 1 25%;
- max-width: 25%; } }
- @media screen and (min-width: 960px) and (max-width: 1200px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 16.66667%;
- -ms-flex: 1 1 16.66667%;
- flex: 1 1 16.66667%;
- max-width: 16.66667%; } }
- @media screen and (min-width: 1200px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 14.28571%;
- -ms-flex: 1 1 14.28571%;
- flex: 1 1 14.28571%;
- max-width: 14.28571%; } }
- md-bottom-sheet.md-grid md-list-item .md-list-item-content {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: 48px;
- padding-bottom: 16px; }
- md-bottom-sheet.md-grid md-list-item .md-grid-item-content {
- border: 1px solid transparent;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: 80px; }
- md-bottom-sheet.md-grid md-list-item .md-icon-container {
- display: inline-block;
- box-sizing: border-box;
- height: 48px;
- width: 48px;
- margin: 0 0; }
- md-bottom-sheet.md-grid md-list-item .md-grid-text {
- font-weight: 400;
- line-height: 16px;
- font-size: 13px;
- margin: 0;
- white-space: nowrap;
- width: 64px;
- text-align: center;
- text-transform: none;
- padding-top: 8px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-bottom-sheet {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.js
deleted file mode 100644
index c8696adb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/bottomSheet/bottomSheet.js
+++ /dev/null
@@ -1,267 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.bottomSheet');
-goog.require('ng.material.components.backdrop');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.bottomSheet
- * @description
- * BottomSheet
- */
-angular.module('material.components.bottomSheet', [
- 'material.core',
- 'material.components.backdrop'
-])
- .directive('mdBottomSheet', MdBottomSheetDirective)
- .provider('$mdBottomSheet', MdBottomSheetProvider);
-
-function MdBottomSheetDirective() {
- return {
- restrict: 'E'
- };
-}
-
-/**
- * @ngdoc service
- * @name $mdBottomSheet
- * @module material.components.bottomSheet
- *
- * @description
- * `$mdBottomSheet` opens a bottom sheet over the app and provides a simple promise API.
- *
- * ## Restrictions
- *
- * - The bottom sheet's template must have an outer `<md-bottom-sheet>` element.
- * - Add the `md-grid` class to the bottom sheet for a grid layout.
- * - Add the `md-list` class to the bottom sheet for a list layout.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-controller="MyController">
- * <md-button ng-click="openBottomSheet()">
- * Open a Bottom Sheet!
- * </md-button>
- * </div>
- * </hljs>
- * <hljs lang="js">
- * var app = angular.module('app', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdBottomSheet) {
- * $scope.openBottomSheet = function() {
- * $mdBottomSheet.show({
- * template: '<md-bottom-sheet>Hello!</md-bottom-sheet>'
- * });
- * };
- * });
- * </hljs>
- */
-
- /**
- * @ngdoc method
- * @name $mdBottomSheet#show
- *
- * @description
- * Show a bottom sheet with the specified options.
- *
- * @param {object} options An options object, with the following properties:
- *
- * - `templateUrl` - `{string=}`: The url of an html template file that will
- * be used as the content of the bottom sheet. Restrictions: the template must
- * have an outer `md-bottom-sheet` element.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual
- * template string.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope.
- * This scope will be destroyed when the bottom sheet is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `controller` - `{string=}`: The controller to associate with this bottom sheet.
- * - `locals` - `{string=}`: An object containing key/value pairs. The keys will
- * be used as names of values to inject into the controller. For example,
- * `locals: {three: 3}` would inject `three` into the controller with the value
- * of 3.
- * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
- * the location of the click will be used as the starting point for the opening animation
- * of the the dialog.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
- * and the bottom sheet will not open until the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the bottom sheet to. The `parent` may be a `function`, `string`,
- * `object`, or null. Defaults to appending to the body of the root element (or the root element) of the application.
- * e.g. angular.element(document.getElementById('content')) or "#content"
- * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the bottom sheet is open.
- * Default true.
- *
- * @returns {promise} A promise that can be resolved with `$mdBottomSheet.hide()` or
- * rejected with `$mdBottomSheet.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdBottomSheet#hide
- *
- * @description
- * Hide the existing bottom sheet and resolve the promise returned from
- * `$mdBottomSheet.show()`. This call will close the most recently opened/current bottomsheet (if any).
- *
- * @param {*=} response An argument for the resolved promise.
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdBottomSheet#cancel
- *
- * @description
- * Hide the existing bottom sheet and reject the promise returned from
- * `$mdBottomSheet.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- */
-
-function MdBottomSheetProvider($$interimElementProvider) {
- // how fast we need to flick down to close the sheet, pixels/ms
- var CLOSING_VELOCITY = 0.5;
- var PADDING = 80; // same as css
-
- bottomSheetDefaults.$inject = ["$animate", "$mdConstant", "$mdUtil", "$timeout", "$compile", "$mdTheming", "$mdBottomSheet", "$rootElement", "$mdGesture"];
- return $$interimElementProvider('$mdBottomSheet')
- .setDefaults({
- methods: ['disableParentScroll', 'escapeToClose', 'targetEvent'],
- options: bottomSheetDefaults
- });
-
- /* ngInject */
- function bottomSheetDefaults($animate, $mdConstant, $mdUtil, $timeout, $compile, $mdTheming, $mdBottomSheet, $rootElement, $mdGesture) {
- var backdrop;
-
- return {
- themable: true,
- targetEvent: null,
- onShow: onShow,
- onRemove: onRemove,
- escapeToClose: true,
- disableParentScroll: true
- };
-
-
- function onShow(scope, element, options) {
-
- element = $mdUtil.extractElementByName(element, 'md-bottom-sheet');
-
- // Add a backdrop that will close on click
- backdrop = $compile('<md-backdrop class="md-opaque md-bottom-sheet-backdrop">')(scope);
- backdrop.on('click', function() {
- $timeout($mdBottomSheet.cancel);
- });
- $mdTheming.inherit(backdrop, options.parent);
-
- $animate.enter(backdrop, options.parent, null);
-
- var bottomSheet = new BottomSheet(element, options.parent);
- options.bottomSheet = bottomSheet;
-
- // Give up focus on calling item
- options.targetEvent && angular.element(options.targetEvent.target).blur();
- $mdTheming.inherit(bottomSheet.element, options.parent);
-
- if (options.disableParentScroll) {
- options.lastOverflow = options.parent.css('overflow');
- options.parent.css('overflow', 'hidden');
- }
-
- return $animate.enter(bottomSheet.element, options.parent)
- .then(function() {
- var focusable = angular.element(
- element[0].querySelector('button') ||
- element[0].querySelector('a') ||
- element[0].querySelector('[ng-click]')
- );
- focusable.focus();
-
- if (options.escapeToClose) {
- options.rootElementKeyupCallback = function(e) {
- if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
- $timeout($mdBottomSheet.cancel);
- }
- };
- $rootElement.on('keyup', options.rootElementKeyupCallback);
- }
- });
-
- }
-
- function onRemove(scope, element, options) {
-
- var bottomSheet = options.bottomSheet;
-
- $animate.leave(backdrop);
- return $animate.leave(bottomSheet.element).then(function() {
- if (options.disableParentScroll) {
- options.parent.css('overflow', options.lastOverflow);
- delete options.lastOverflow;
- }
-
- bottomSheet.cleanup();
-
- // Restore focus
- options.targetEvent && angular.element(options.targetEvent.target).focus();
- });
- }
-
- /**
- * BottomSheet class to apply bottom-sheet behavior to an element
- */
- function BottomSheet(element, parent) {
- var deregister = $mdGesture.register(parent, 'drag', { horizontal: false });
- parent.on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- return {
- element: element,
- cleanup: function cleanup() {
- deregister();
- parent.off('$md.dragstart', onDragStart)
- .off('$md.drag', onDrag)
- .off('$md.dragend', onDragEnd);
- }
- };
-
- function onDragStart(ev) {
- // Disable transitions on transform so that it feels fast
- element.css($mdConstant.CSS.TRANSITION_DURATION, '0ms');
- }
-
- function onDrag(ev) {
- var transform = ev.pointer.distanceY;
- if (transform < 5) {
- // Slow down drag when trying to drag up, and stop after PADDING
- transform = Math.max(-PADDING, transform / 2);
- }
- element.css($mdConstant.CSS.TRANSFORM, 'translate3d(0,' + (PADDING + transform) + 'px,0)');
- }
-
- function onDragEnd(ev) {
- if (ev.pointer.distanceY > 0 &&
- (ev.pointer.distanceY > 20 || Math.abs(ev.pointer.velocityY) > CLOSING_VELOCITY)) {
- var distanceRemaining = element.prop('offsetHeight') - ev.pointer.distanceY;
- var transitionDuration = Math.min(distanceRemaining / ev.pointer.velocityY * 0.75, 500);
- element.css($mdConstant.CSS.TRANSITION_DURATION, transitionDuration + 'ms');
- $timeout($mdBottomSheet.cancel);
- } else {
- element.css($mdConstant.CSS.TRANSITION_DURATION, '');
- element.css($mdConstant.CSS.TRANSFORM, '');
- }
- }
- }
-
- }
-
-}
-MdBottomSheetProvider.$inject = ["$$interimElementProvider"];
-
-ng.material.components.bottomSheet = angular.module("material.components.bottomSheet"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button-default-theme.css
deleted file mode 100644
index d26c5cbf..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button-default-theme.css
+++ /dev/null
@@ -1,94 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme {
- border-radius: 3px; }
- a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover {
- background-color: '{{background-500-0.2}}'; }
- a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused {
- background-color: '{{background-500-0.2}}'; }
- a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover {
- background-color: transparent; }
- a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab {
- border-radius: 50%;
- background-color: '{{accent-color}}';
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon {
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover {
- background-color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused {
- background-color: '{{accent-A700}}'; }
- a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button {
- border-radius: 50%; }
- a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary {
- color: '{{primary-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab {
- color: '{{primary-contrast}}';
- background-color: '{{primary-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon {
- color: '{{primary-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover {
- background-color: '{{primary-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused {
- background-color: '{{primary-600}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon {
- color: '{{primary-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab {
- border-radius: 50%;
- background-color: '{{accent-color}}';
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon {
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover {
- background-color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused {
- background-color: '{{accent-A700}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised {
- color: '{{background-contrast}}';
- background-color: '{{background-50}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon {
- color: '{{background-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover {
- background-color: '{{background-50}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused {
- background-color: '{{background-200}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn {
- color: '{{warn-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab {
- color: '{{warn-contrast}}';
- background-color: '{{warn-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon {
- color: '{{warn-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover {
- background-color: '{{warn-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused {
- background-color: '{{warn-700}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon {
- color: '{{warn-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent {
- color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab {
- color: '{{accent-contrast}}';
- background-color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon {
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover {
- background-color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused {
- background-color: '{{accent-700}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon {
- color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] {
- color: '{{foreground-3}}';
- cursor: not-allowed; }
- a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon {
- color: '{{foreground-3}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] {
- background-color: '{{foreground-4}}'; }
- a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] {
- background-color: transparent; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button.css
deleted file mode 100644
index 310df601..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button.css
+++ /dev/null
@@ -1,158 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-/**
- * Position a FAB button.
- */
-.md-button {
- box-sizing: border-box;
- color: currentColor;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- position: relative;
- outline: none;
- border: 0;
- display: inline-block;
- padding: 0 6px;
- margin: 6px 8px;
- line-height: 36px;
- min-height: 36px;
- background: transparent;
- white-space: nowrap;
- min-width: 88px;
- text-align: center;
- text-transform: uppercase;
- font-weight: 500;
- font-size: 14px;
- font-style: inherit;
- font-variant: inherit;
- font-family: inherit;
- text-decoration: none;
- cursor: pointer;
- overflow: hidden;
- transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- .md-button *, .md-button *:before, .md-button *:after {
- box-sizing: border-box; }
- .md-button:focus {
- outline: none; }
- .md-button:hover, .md-button:focus {
- text-decoration: none; }
- .md-button.ng-hide, .md-button.ng-leave {
- transition: none; }
- .md-button.md-cornered {
- border-radius: 0; }
- .md-button.md-icon {
- padding: 0;
- background: none; }
- .md-button.md-icon-button {
- margin: 0 6px;
- height: 48px;
- min-width: 0;
- line-height: 48px;
- padding-left: 0;
- padding-right: 0;
- width: 48px;
- border-radius: 50%; }
- .md-button.md-icon-button .md-ripple-container {
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC'); }
- .md-button.md-fab {
- z-index: 20;
- line-height: 56px;
- min-width: 0;
- width: 56px;
- height: 56px;
- vertical-align: middle;
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- transition: 0.2s linear;
- transition-property: background-color, box-shadow; }
- .md-button.md-fab.md-fab-bottom-right {
- top: auto;
- right: 20px;
- bottom: 20px;
- left: auto;
- position: absolute; }
- .md-button.md-fab.md-fab-bottom-left {
- top: auto;
- right: auto;
- bottom: 20px;
- left: 20px;
- position: absolute; }
- .md-button.md-fab.md-fab-top-right {
- top: 20px;
- right: 20px;
- bottom: auto;
- left: auto;
- position: absolute; }
- .md-button.md-fab.md-fab-top-left {
- top: 20px;
- right: auto;
- bottom: auto;
- left: 20px;
- position: absolute; }
- .md-button.md-fab .md-ripple-container {
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC'); }
- .md-button.md-fab md-icon {
- margin-top: 0; }
- .md-button.md-fab.md-mini {
- line-height: 40px;
- width: 40px;
- height: 40px; }
-
-.md-toast-open-top .md-button.md-fab-top-left, .md-toast-open-top .md-button.md-fab-top-right {
- -webkit-transform: translate3d(0, 42px, 0);
- transform: translate3d(0, 42px, 0); }
- .md-toast-open-top .md-button.md-fab-top-left:not([disabled]).md-focused, .md-toast-open-top .md-button.md-fab-top-left:not([disabled]):hover, .md-toast-open-top .md-button.md-fab-top-right:not([disabled]).md-focused, .md-toast-open-top .md-button.md-fab-top-right:not([disabled]):hover {
- -webkit-transform: translate3d(0, 41px, 0);
- transform: translate3d(0, 41px, 0); }
-
-.md-toast-open-bottom .md-button.md-fab-bottom-left, .md-toast-open-bottom .md-button.md-fab-bottom-right {
- -webkit-transform: translate3d(0, -42px, 0);
- transform: translate3d(0, -42px, 0); }
- .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]).md-focused, .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]):hover, .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]).md-focused, .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):hover {
- -webkit-transform: translate3d(0, -43px, 0);
- transform: translate3d(0, -43px, 0); }
-
-.md-button-group {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- width: 100%; }
-
-.md-button-group > .md-button {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- display: block;
- overflow: hidden;
- width: 0;
- border-width: 1px 0px 1px 1px;
- border-radius: 0;
- text-align: center;
- text-overflow: ellipsis;
- white-space: nowrap; }
- .md-button-group > .md-button:first-child {
- border-radius: 2px 0px 0px 2px; }
- .md-button-group > .md-button:last-child {
- border-right-width: 1px;
- border-radius: 0px 2px 2px 0px; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-button.md-raised, .md-button.md-fab {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button.js
deleted file mode 100644
index 1f40622b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/button/button.js
+++ /dev/null
@@ -1,135 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.button');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.button
- * @description
- *
- * Button
- */
-angular
- .module('material.components.button', [ 'material.core' ])
- .directive('mdButton', MdButtonDirective);
-
-/**
- * @ngdoc directive
- * @name mdButton
- * @module material.components.button
- *
- * @restrict E
- *
- * @description
- * `<md-button>` is a button directive with optional ink ripples (default enabled).
- *
- * If you supply a `href` or `ng-href` attribute, it will become an `<a>` element. Otherwise, it will
- * become a `<button>` element. As per the [Material Design specifications](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the FAB button background is filled with the accent color [by default]. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {boolean=} md-no-ink If present, disable ripple ink effects.
- * @param {expression=} ng-disabled En/Disable based on the expression
- * @param {string=} md-ripple-size Overrides the default ripple size logic. Options: `full`, `partial`, `auto`
- * @param {string=} aria-label Adds alternative text to button for accessibility, useful for icon buttons.
- * If no default text is found, a warning will be logged.
- *
- * @usage
- *
- * Regular buttons:
- *
- * <hljs lang="html">
- * <md-button> Flat Button </md-button>
- * <md-button href="http://google.com"> Flat link </md-button>
- * <md-button class="md-raised"> Raised Button </md-button>
- * <md-button ng-disabled="true"> Disabled Button </md-button>
- * <md-button>
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * Register Now
- * </md-button>
- * </hljs>
- *
- * FAB buttons:
- *
- * <hljs lang="html">
- * <md-button class="md-fab" aria-label="FAB">
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * </md-button>
- * <!-- mini-FAB -->
- * <md-button class="md-fab md-mini" aria-label="Mini FAB">
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * </md-button>
- * <!-- Button with SVG Icon -->
- * <md-button class="md-icon-button" aria-label="Custom Icon Button">
- * <md-icon md-svg-icon="path/to/your.svg"></md-icon>
- * </md-button>
- * </hljs>
- */
-function MdButtonDirective($mdButtonInkRipple, $mdTheming, $mdAria, $timeout) {
-
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- template: getTemplate,
- link: postLink
- };
-
- function isAnchor(attr) {
- return angular.isDefined(attr.href) || angular.isDefined(attr.ngHref) || angular.isDefined(attr.ngLink) || angular.isDefined(attr.uiSref);
- }
-
- function getTemplate(element, attr) {
- return isAnchor(attr) ?
- '<a class="md-button" ng-transclude></a>' :
- '<button class="md-button" ng-transclude></button>';
- }
-
- function postLink(scope, element, attr) {
- var node = element[0];
- $mdTheming(element);
- $mdButtonInkRipple.attach(scope, element);
-
- var elementHasText = node.textContent.trim();
- if (!elementHasText) {
- $mdAria.expect(element, 'aria-label');
- }
-
- // For anchor elements, we have to set tabindex manually when the
- // element is disabled
- if (isAnchor(attr) && angular.isDefined(attr.ngDisabled) ) {
- scope.$watch(attr.ngDisabled, function(isDisabled) {
- element.attr('tabindex', isDisabled ? -1 : 0);
- });
- }
-
- // disabling click event when disabled is true
- element.on('click', function(e){
- if (attr.disabled === true) {
- e.preventDefault();
- e.stopImmediatePropagation();
- }
- });
-
- // restrict focus styles to the keyboard
- scope.mouseActive = false;
- element.on('mousedown', function() {
- scope.mouseActive = true;
- $timeout(function(){
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { element.addClass('md-focused'); }
- })
- .on('blur', function() { element.removeClass('md-focused'); });
- }
-
-}
-MdButtonDirective.$inject = ["$mdButtonInkRipple", "$mdTheming", "$mdAria", "$timeout"];
-
-ng.material.components.button = angular.module("material.components.button"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card-default-theme.css
deleted file mode 100644
index 02f7b56f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card-default-theme.css
+++ /dev/null
@@ -1,12 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-card.md-THEME_NAME-theme {
- background-color: '{{background-color}}';
- border-radius: 2px; }
- md-card.md-THEME_NAME-theme .md-card-image {
- border-radius: 2px 2px 0 0; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card.css
deleted file mode 100644
index 7c201992..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card.css
+++ /dev/null
@@ -1,34 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-card {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- margin: 8px;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
- md-card > img, md-card > :not(md-card-content) img {
- width: 100%; }
- md-card md-card-content {
- padding: 16px; }
- md-card .md-actions {
- margin: 0; }
- md-card .md-actions .md-button {
- margin-bottom: 8px;
- margin-top: 8px;
- margin-right: 4px;
- margin-left: 4px; }
- md-card md-card-footer {
- padding: 16px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-card {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card.js
deleted file mode 100644
index ea3a4d9d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/card/card.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.card');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.card
- *
- * @description
- * Card components.
- */
-angular.module('material.components.card', [
- 'material.core'
-])
- .directive('mdCard', mdCardDirective);
-
-
-
-/**
- * @ngdoc directive
- * @name mdCard
- * @module material.components.card
- *
- * @restrict E
- *
- * @description
- * The `<md-card>` directive is a container element used within `<md-content>` containers.
- *
- * An image included as a direct descendant will fill the card's width, while the `<md-card-content>`
- * container will wrap text content and provide padding. An `<md-card-footer>` element can be
- * optionally included to put content flush against the bottom edge of the card.
- *
- * Action buttons can be included in an element with the `.md-actions` class, also used in `md-dialog`.
- * You can then position buttons using layout attributes.
- *
- * Cards have constant width and variable heights; where the maximum height is limited to what can
- * fit within a single view on a platform, but it can temporarily expand as needed.
- *
- * @usage
- * ###Card with optional footer
- * <hljs lang="html">
- * <md-card>
- * <img src="card-image.png" class="md-card-image" alt="image caption">
- * <md-card-content>
- * <h2>Card headline</h2>
- * <p>Card content</p>
- * </md-card-content>
- * <md-card-footer>
- * Card footer
- * </md-card-footer>
- * </md-card>
- * </hljs>
- *
- * ###Card with actions
- * <hljs lang="html">
- * <md-card>
- * <img src="card-image.png" class="md-card-image" alt="image caption">
- * <md-card-content>
- * <h2>Card headline</h2>
- * <p>Card content</p>
- * </md-card-content>
- * <div class="md-actions" layout="row" layout-align="end center">
- * <md-button>Action 1</md-button>
- * <md-button>Action 2</md-button>
- * </div>
- * </md-card>
- * </hljs>
- *
- */
-function mdCardDirective($mdTheming) {
- return {
- restrict: 'E',
- link: function($scope, $element, $attr) {
- $mdTheming($element);
- }
- };
-}
-mdCardDirective.$inject = ["$mdTheming"];
-
-ng.material.components.card = angular.module("material.components.card"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox-default-theme.css
deleted file mode 100644
index c23e596c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox-default-theme.css
+++ /dev/null
@@ -1,47 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-checkbox.md-THEME_NAME-theme .md-ripple {
- color: '{{accent-600}}'; }
-md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple {
- color: '{{background-600}}'; }
-md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before {
- background-color: '{{accent-color-0.26}}'; }
-md-checkbox.md-THEME_NAME-theme .md-icon {
- border-color: '{{foreground-2}}'; }
-md-checkbox.md-THEME_NAME-theme.md-checked .md-icon {
- background-color: '{{accent-color-0.87}}'; }
-md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after {
- border-color: '{{background-200}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple {
- color: '{{primary-600}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple {
- color: '{{background-600}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon {
- border-color: '{{foreground-2}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon {
- background-color: '{{primary-color-0.87}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before {
- background-color: '{{primary-color-0.26}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after {
- border-color: '{{background-200}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple {
- color: '{{warn-600}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon {
- border-color: '{{foreground-2}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon {
- background-color: '{{warn-color-0.87}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before {
- background-color: '{{warn-color-0.26}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after {
- border-color: '{{background-200}}'; }
-md-checkbox.md-THEME_NAME-theme[disabled] .md-icon {
- border-color: '{{foreground-3}}'; }
-md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon {
- background-color: '{{foreground-3}}'; }
-md-checkbox.md-THEME_NAME-theme[disabled] .md-label {
- color: '{{foreground-3}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox.css
deleted file mode 100644
index 652ba9f1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox.css
+++ /dev/null
@@ -1,125 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-checkbox {
- box-sizing: border-box;
- display: block;
- margin: 8px;
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- padding-left: 18px;
- padding-right: 0;
- position: relative;
- line-height: 26px;
- min-width: 18px;
- min-height: 18px; }
- html[dir=rtl] md-checkbox {
- padding-left: 0; }
- html[dir=rtl] md-checkbox {
- padding-right: 18px; }
- md-checkbox *, md-checkbox *:before, md-checkbox *:after {
- box-sizing: border-box; }
- md-checkbox.md-focused:not([disabled]) .md-container:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
- md-checkbox.md-focused:not([disabled]):not(.md-checked) .md-container:before {
- background-color: rgba(0, 0, 0, 0.12); }
- md-checkbox .md-container {
- position: absolute;
- top: 50%;
- display: inline-block;
- width: 18px;
- height: 18px;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- left: 0;
- right: auto; }
- html[dir=rtl] md-checkbox .md-container {
- left: auto; }
- html[dir=rtl] md-checkbox .md-container {
- right: 0; }
- md-checkbox .md-container:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-checkbox .md-container:after {
- content: '';
- position: absolute;
- top: -10px;
- right: -10px;
- bottom: -10px;
- left: -10px; }
- md-checkbox .md-container .md-ripple-container {
- position: absolute;
- display: block;
- width: auto;
- height: auto;
- left: -15px;
- top: -15px;
- right: -15px;
- bottom: -15px; }
- md-checkbox .md-icon {
- transition: 240ms;
- position: absolute;
- top: 0;
- left: 0;
- width: 18px;
- height: 18px;
- border-width: 2px;
- border-style: solid;
- border-radius: 2px; }
- md-checkbox.md-checked .md-icon {
- border: none; }
- md-checkbox[disabled] {
- cursor: no-drop; }
- md-checkbox.md-checked .md-icon:after {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
- position: absolute;
- left: 6px;
- top: 2px;
- display: table;
- width: 6px;
- height: 12px;
- border-width: 2px;
- border-style: solid;
- border-top: 0;
- border-left: 0;
- content: ''; }
- md-checkbox .md-label {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- white-space: normal;
- pointer-events: none;
- -webkit-user-select: text;
- -moz-user-select: text;
- -ms-user-select: text;
- user-select: text; }
- md-checkbox .md-label span {
- margin-left: 10px;
- margin-right: 0; }
- html[dir=rtl] md-checkbox .md-label span {
- margin-left: 0; }
- html[dir=rtl] md-checkbox .md-label span {
- margin-right: 10px; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox.js
deleted file mode 100644
index 351b73ab..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/checkbox/checkbox.js
+++ /dev/null
@@ -1,166 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.checkbox');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.checkbox
- * @description Checkbox module!
- */
-angular
- .module('material.components.checkbox', ['material.core'])
- .directive('mdCheckbox', MdCheckboxDirective);
-
-/**
- * @ngdoc directive
- * @name mdCheckbox
- * @module material.components.checkbox
- * @restrict E
- *
- * @description
- * The checkbox directive is used like the normal [angular checkbox](https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D).
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the checkbox is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {expression=} ng-true-value The value to which the expression should be set when selected.
- * @param {expression=} ng-false-value The value to which the expression should be set when not selected.
- * @param {string=} ng-change Angular expression to be executed when input changes due to user interaction with the input element.
- * @param {boolean=} md-no-ink Use of attribute indicates use of ripple ink effects
- * @param {string=} aria-label Adds label to checkbox for accessibility.
- * Defaults to checkbox's text. If no default text is found, a warning will be logged.
- *
- * @usage
- * <hljs lang="html">
- * <md-checkbox ng-model="isChecked" aria-label="Finished?">
- * Finished ?
- * </md-checkbox>
- *
- * <md-checkbox md-no-ink ng-model="hasInk" aria-label="No Ink Effects">
- * No Ink Effects
- * </md-checkbox>
- *
- * <md-checkbox ng-disabled="true" ng-model="isDisabled" aria-label="Disabled">
- * Disabled
- * </md-checkbox>
- *
- * </hljs>
- *
- */
-function MdCheckboxDirective(inputDirective, $mdInkRipple, $mdAria, $mdConstant, $mdTheming, $mdUtil, $timeout) {
- inputDirective = inputDirective[0];
- var CHECKED_CSS = 'md-checked';
-
- return {
- restrict: 'E',
- transclude: true,
- require: '?ngModel',
- priority:210, // Run before ngAria
- template:
- '<div class="md-container" md-ink-ripple md-ink-ripple-checkbox>' +
- '<div class="md-icon"></div>' +
- '</div>' +
- '<div ng-transclude class="md-label"></div>',
- compile: compile
- };
-
- // **********************************************************
- // Private Methods
- // **********************************************************
-
- function compile (tElement, tAttrs) {
-
- tAttrs.type = 'checkbox';
- tAttrs.tabindex = tAttrs.tabindex || '0';
- tElement.attr('role', tAttrs.type);
-
- return function postLink(scope, element, attr, ngModelCtrl) {
- ngModelCtrl = ngModelCtrl || $mdUtil.fakeNgModel();
- $mdTheming(element);
-
- if (attr.ngChecked) {
- scope.$watch(
- scope.$eval.bind(scope, attr.ngChecked),
- ngModelCtrl.$setViewValue.bind(ngModelCtrl)
- );
- }
- $$watchExpr('ngDisabled', 'tabindex', {
- true: '-1',
- false: attr.tabindex
- });
- $mdAria.expectWithText(element, 'aria-label');
-
- // Reuse the original input[type=checkbox] directive from Angular core.
- // This is a bit hacky as we need our own event listener and own render
- // function.
- inputDirective.link.pre(scope, {
- on: angular.noop,
- 0: {}
- }, attr, [ngModelCtrl]);
-
- scope.mouseActive = false;
- element.on('click', listener)
- .on('keypress', keypressHandler)
- .on('mousedown', function() {
- scope.mouseActive = true;
- $timeout(function(){
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { element.addClass('md-focused'); }
- })
- .on('blur', function() { element.removeClass('md-focused'); });
-
- ngModelCtrl.$render = render;
-
- function $$watchExpr(expr, htmlAttr, valueOpts) {
- if (attr[expr]) {
- scope.$watch(attr[expr], function(val) {
- if (valueOpts[val]) {
- element.attr(htmlAttr, valueOpts[val]);
- }
- });
- }
- }
-
- function keypressHandler(ev) {
- var keyCode = ev.which || ev.keyCode;
- if (keyCode === $mdConstant.KEY_CODE.SPACE || keyCode === $mdConstant.KEY_CODE.ENTER) {
- ev.preventDefault();
- if (!element.hasClass('md-focused')) { element.addClass('md-focused'); }
- listener(ev);
- }
- }
- function listener(ev) {
- if (element[0].hasAttribute('disabled')) return;
-
- scope.$apply(function() {
- // Toggle the checkbox value...
- var viewValue = attr.ngChecked ? attr.checked : !ngModelCtrl.$viewValue;
-
- ngModelCtrl.$setViewValue( viewValue, ev && ev.type);
- ngModelCtrl.$render();
- });
- }
-
- function render() {
- if(ngModelCtrl.$viewValue) {
- element.addClass(CHECKED_CSS);
- } else {
- element.removeClass(CHECKED_CSS);
- }
- }
- };
- }
-}
-MdCheckboxDirective.$inject = ["inputDirective", "$mdInkRipple", "$mdAria", "$mdConstant", "$mdTheming", "$mdUtil", "$timeout"];
-
-ng.material.components.checkbox = angular.module("material.components.checkbox"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips-default-theme.css
deleted file mode 100644
index 4a2fa22f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips-default-theme.css
+++ /dev/null
@@ -1,24 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-chips.md-THEME_NAME-theme .md-chips {
- box-shadow: 0 1px '{{background-300}}'; }
- md-chips.md-THEME_NAME-theme .md-chips.md-focused {
- box-shadow: 0 2px '{{primary-color}}'; }
-md-chips.md-THEME_NAME-theme .md-chip {
- background: '{{background-300}}';
- color: '{{background-800}}'; }
- md-chips.md-THEME_NAME-theme .md-chip.md-focused {
- background: '{{primary-color}}';
- color: '{{primary-contrast}}'; }
- md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon {
- color: '{{primary-contrast}}'; }
-md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path {
- fill: '{{background-500}}'; }
-
-.md-contact-suggestion span.md-contact-email {
- color: '{{background-400}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips.css
deleted file mode 100644
index 571a0d0c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips.css
+++ /dev/null
@@ -1,131 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-contact-chips .md-chips .md-chip {
- padding: 0 8px 0 0; }
- .md-contact-chips .md-chips .md-chip .md-contact-avatar {
- float: left; }
- .md-contact-chips .md-chips .md-chip .md-contact-avatar img {
- height: 32px;
- border-radius: 16px; }
- .md-contact-chips .md-chips .md-chip .md-contact-name {
- display: inline-block;
- height: 32px;
- margin-left: 8px; }
-
-.md-contact-suggestion {
- height: 56px; }
- .md-contact-suggestion img {
- height: 40px;
- border-radius: 20px;
- margin-top: 8px; }
- .md-contact-suggestion .md-contact-name {
- margin-left: 8px;
- width: 120px; }
- .md-contact-suggestion .md-contact-name, .md-contact-suggestion .md-contact-email {
- display: inline-block;
- overflow: hidden;
- text-overflow: ellipsis; }
-
-.md-contact-chips-suggestions li {
- height: 100%; }
-
-.md-chips {
- display: block;
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif;
- font-size: 13px;
- padding: 0 0 8px 0;
- vertical-align: middle;
- cursor: text; }
- .md-chips:after {
- content: '';
- display: table;
- clear: both; }
- .md-chips .md-chip {
- cursor: default;
- border-radius: 16px;
- display: block;
- height: 32px;
- line-height: 32px;
- margin: 8px 8px 0 0;
- padding: 0 8px 0 12px;
- float: left; }
- .md-chips .md-chip .md-chip-content {
- display: block;
- padding-right: 4px;
- float: left;
- white-space: nowrap; }
- .md-chips .md-chip .md-chip-content:focus {
- outline: none; }
- .md-chips .md-chip .md-chip-remove-container {
- display: inline-block;
- margin-right: -5px; }
- .md-chips .md-chip .md-chip-remove {
- text-align: center;
- width: 32px;
- height: 32px;
- min-width: 0;
- padding: 0;
- background: transparent;
- border: none;
- box-shadow: none;
- margin: 0;
- position: relative; }
- .md-chips .md-chip .md-chip-remove md-icon {
- height: 18px;
- width: 18px;
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0); }
- .md-chips .md-chip-input-container {
- display: block;
- line-height: 32px;
- margin: 8px 8px 0 0;
- padding: 0 8px 0 12px;
- float: left; }
- .md-chips .md-chip-input-container input:not([type]), .md-chips .md-chip-input-container input[type="email"], .md-chips .md-chip-input-container input[type="number"], .md-chips .md-chip-input-container input[type="tel"], .md-chips .md-chip-input-container input[type="url"], .md-chips .md-chip-input-container input[type="text"] {
- border: 0;
- height: 32px;
- line-height: 32px;
- padding: 0; }
- .md-chips .md-chip-input-container input:not([type]):focus, .md-chips .md-chip-input-container input[type="email"]:focus, .md-chips .md-chip-input-container input[type="number"]:focus, .md-chips .md-chip-input-container input[type="tel"]:focus, .md-chips .md-chip-input-container input[type="url"]:focus, .md-chips .md-chip-input-container input[type="text"]:focus {
- outline: none; }
- .md-chips .md-chip-input-container md-autocomplete, .md-chips .md-chip-input-container md-autocomplete-wrap {
- background: transparent;
- height: 32px; }
- .md-chips .md-chip-input-container md-autocomplete md-autocomplete-wrap {
- box-shadow: none; }
- .md-chips .md-chip-input-container md-autocomplete input {
- position: relative; }
- .md-chips .md-chip-input-container input {
- border: 0;
- height: 32px;
- line-height: 32px;
- padding: 0; }
- .md-chips .md-chip-input-container input:focus {
- outline: none; }
- .md-chips .md-chip-input-container md-autocomplete, .md-chips .md-chip-input-container md-autocomplete-wrap {
- height: 32px; }
- .md-chips .md-chip-input-container md-autocomplete {
- box-shadow: none; }
- .md-chips .md-chip-input-container md-autocomplete input {
- position: relative; }
- .md-chips .md-chip-input-container:not(:first-child) {
- margin: 8px 8px 0 0; }
- .md-chips .md-chip-input-container input {
- background: transparent;
- border-width: 0; }
- .md-chips md-autocomplete button {
- display: none; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-chip-input-container, md-chip {
- border: 1px solid #fff; }
- .md-chip-input-container md-autocomplete {
- border: none; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips.js
deleted file mode 100644
index b55b029e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/chips/chips.js
+++ /dev/null
@@ -1,949 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.chips');
-goog.require('ng.material.components.autocomplete');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.chips
- */
-/*
- * @see js folder for chips implementation
- */
-angular.module('material.components.chips', [
- 'material.core',
- 'material.components.autocomplete'
-]);
-
-angular
- .module('material.components.chips')
- .directive('mdChip', MdChip);
-
-/**
- * @ngdoc directive
- * @name mdChip
- * @module material.components.chips
- *
- * @description
- * `<md-chip>` is a component used within `<md-chips>` and is responsible for rendering individual
- * chips.
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-chip>{{$chip}}</md-chip>
- * </hljs>
- *
- */
-
-// This hint text is hidden within a chip but used by screen readers to
-// inform the user how they can interact with a chip.
-var DELETE_HINT_TEMPLATE = '\
- <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden">\
- {{$mdChipsCtrl.deleteHint}}\
- </span>';
-
-/**
- * MDChip Directive Definition
- *
- * @param $mdTheming
- * @param $mdInkRipple
- * ngInject
- */
-function MdChip($mdTheming) {
- return {
- restrict: 'E',
- require: '^?mdChips',
- compile: compile
- };
-
- function compile(element, attr) {
- element.append(DELETE_HINT_TEMPLATE);
- return function postLink(scope, element, attr, ctrl) {
- element.addClass('md-chip');
- $mdTheming(element);
-
- if (ctrl) angular.element(element[0].querySelector('.md-chip-content'))
- .on('blur', function () {
- ctrl.selectedChip = -1;
- });
- };
- }
-}
-MdChip.$inject = ["$mdTheming"];
-
-angular
- .module('material.components.chips')
- .directive('mdChipRemove', MdChipRemove);
-
-/**
- * @ngdoc directive
- * @name mdChipRemove
- * @module material.components.chips
- *
- * @description
- * `<md-chip-remove>`
- * Designates an element to be used as the delete button for a chip. This
- * element is passed as a child of the `md-chips` element.
- *
- * @usage
- * <hljs lang="html">
- * <md-chips><button md-chip-remove>DEL</button></md-chips>
- * </hljs>
- */
-
-
-/**
- * MdChipRemove Directive Definition.
- *
- * @param $compile
- * @param $timeout
- * @returns {{restrict: string, require: string[], link: Function, scope: boolean}}
- * @constructor
- */
-function MdChipRemove ($timeout) {
- return {
- restrict: 'A',
- require: '^mdChips',
- scope: false,
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrl) {
- element.on('click', function(event) {
- scope.$apply(function() {
- ctrl.removeChip(scope.$$replacedScope.$index);
- });
- });
-
- // Child elements aren't available until after a $timeout tick as they are hidden by an
- // `ng-if`. see http://goo.gl/zIWfuw
- $timeout(function() {
- element.attr({ tabindex: -1, ariaHidden: true });
- element.find('button').attr('tabindex', '-1');
- });
- }
-}
-MdChipRemove.$inject = ["$timeout"];
-
-angular
- .module('material.components.chips')
- .directive('mdChipTransclude', MdChipTransclude);
-
-function MdChipTransclude ($compile, $mdUtil) {
- return {
- restrict: 'EA',
- terminal: true,
- link: link,
- scope: false
- };
- function link (scope, element, attr) {
- var ctrl = scope.$parent.$mdChipsCtrl,
- newScope = ctrl.parent.$new(false, ctrl.parent);
- newScope.$$replacedScope = scope;
- newScope.$chip = scope.$chip;
- newScope.$mdChipsCtrl = ctrl;
- element.html(ctrl.$scope.$eval(attr.mdChipTransclude));
- $compile(element.contents())(newScope);
- }
-}
-MdChipTransclude.$inject = ["$compile", "$mdUtil"];
-
-angular
- .module('material.components.chips')
- .controller('MdChipsCtrl', MdChipsCtrl);
-
-/**
- * Controller for the MdChips component. Responsible for adding to and
- * removing from the list of chips, marking chips as selected, and binding to
- * the models of various input components.
- *
- * @param $scope
- * @param $mdConstant
- * @param $log
- * @param $element
- * @constructor
- */
-function MdChipsCtrl ($scope, $mdConstant, $log, $element, $timeout) {
- /** @type {$timeout} **/
- this.$timeout = $timeout;
-
- /** @type {Object} */
- this.$mdConstant = $mdConstant;
-
- /** @type {angular.$scope} */
- this.$scope = $scope;
-
- /** @type {angular.$scope} */
- this.parent = $scope.$parent;
-
- /** @type {$log} */
- this.$log = $log;
-
- /** @type {$element} */
- this.$element = $element;
-
- /** @type {angular.NgModelController} */
- this.ngModelCtrl = null;
-
- /** @type {angular.NgModelController} */
- this.userInputNgModelCtrl = null;
-
- /** @type {Element} */
- this.userInputElement = null;
-
- /** @type {Array.<Object>} */
- this.items = [];
-
- /** @type {number} */
- this.selectedChip = -1;
-
-
- /**
- * Hidden hint text for how to delete a chip. Used to give context to screen readers.
- * @type {string}
- */
- this.deleteHint = 'Press delete to remove this chip.';
-
- /**
- * Hidden label for the delete button. Used to give context to screen readers.
- * @type {string}
- */
- this.deleteButtonLabel = 'Remove';
-
- /**
- * Model used by the input element.
- * @type {string}
- */
- this.chipBuffer = '';
-
- /**
- * Whether to use the mdOnAppend expression to transform the chip buffer
- * before appending it to the list.
- * @type {boolean}
- */
- this.useMdOnAppend = false;
-}
-MdChipsCtrl.$inject = ["$scope", "$mdConstant", "$log", "$element", "$timeout"];
-
-/**
- * Handles the keydown event on the input element: <enter> appends the
- * buffer to the chip list, while backspace removes the last chip in the list
- * if the current buffer is empty.
- * @param event
- */
-MdChipsCtrl.prototype.inputKeydown = function(event) {
- var chipBuffer = this.getChipBuffer();
- switch (event.keyCode) {
- case this.$mdConstant.KEY_CODE.ENTER:
- if (this.$scope.requireMatch || !chipBuffer) break;
- event.preventDefault();
- this.appendChip(chipBuffer);
- this.resetChipBuffer();
- break;
- case this.$mdConstant.KEY_CODE.BACKSPACE:
- if (chipBuffer) break;
- event.stopPropagation();
- if (this.items.length) this.selectAndFocusChipSafe(this.items.length - 1);
- break;
- }
-};
-
-/**
- * Handles the keydown event on the chip elements: backspace removes the selected chip, arrow
- * keys switch which chips is active
- * @param event
- */
-MdChipsCtrl.prototype.chipKeydown = function (event) {
- if (this.getChipBuffer()) return;
- switch (event.keyCode) {
- case this.$mdConstant.KEY_CODE.BACKSPACE:
- case this.$mdConstant.KEY_CODE.DELETE:
- if (this.selectedChip < 0) return;
- event.preventDefault();
- this.removeAndSelectAdjacentChip(this.selectedChip);
- break;
- case this.$mdConstant.KEY_CODE.LEFT_ARROW:
- event.preventDefault();
- if (this.selectedChip < 0) this.selectedChip = this.items.length;
- if (this.items.length) this.selectAndFocusChipSafe(this.selectedChip - 1);
- break;
- case this.$mdConstant.KEY_CODE.RIGHT_ARROW:
- event.preventDefault();
- this.selectAndFocusChipSafe(this.selectedChip + 1);
- break;
- case this.$mdConstant.KEY_CODE.ESCAPE:
- case this.$mdConstant.KEY_CODE.TAB:
- if (this.selectedChip < 0) return;
- event.preventDefault();
- this.onFocus();
- break;
- }
-};
-
-/**
- * Get the input's placeholder - uses `placeholder` when list is empty and `secondary-placeholder`
- * when the list is non-empty. If `secondary-placeholder` is not provided, `placeholder` is used
- * always.
- */
-MdChipsCtrl.prototype.getPlaceholder = function() {
- // Allow `secondary-placeholder` to be blank.
- var useSecondary = (this.items.length &&
- (this.secondaryPlaceholder == '' || this.secondaryPlaceholder));
- return useSecondary ? this.placeholder : this.secondaryPlaceholder;
-};
-
-/**
- * Removes chip at {@code index} and selects the adjacent chip.
- * @param index
- */
-MdChipsCtrl.prototype.removeAndSelectAdjacentChip = function(index) {
- var selIndex = this.getAdjacentChipIndex(index);
- this.removeChip(index);
- this.$timeout(angular.bind(this, function () {
- this.selectAndFocusChipSafe(selIndex);
- }));
-};
-
-/**
- * Sets the selected chip index to -1.
- */
-MdChipsCtrl.prototype.resetSelectedChip = function() {
- this.selectedChip = -1;
-};
-
-/**
- * Gets the index of an adjacent chip to select after deletion. Adjacency is
- * determined as the next chip in the list, unless the target chip is the
- * last in the list, then it is the chip immediately preceding the target. If
- * there is only one item in the list, -1 is returned (select none).
- * The number returned is the index to select AFTER the target has been
- * removed.
- * If the current chip is not selected, then -1 is returned to select none.
- */
-MdChipsCtrl.prototype.getAdjacentChipIndex = function(index) {
- var len = this.items.length - 1;
- return (len == 0) ? -1 :
- (index == len) ? index -1 : index;
-};
-
-/**
- * Append the contents of the buffer to the chip list. This method will first
- * call out to the md-on-append method, if provided
- * @param newChip
- */
-MdChipsCtrl.prototype.appendChip = function(newChip) {
- if (this.items.indexOf(newChip) + 1) return;
- if (this.useMdOnAppend && this.mdOnAppend) {
- newChip = this.mdOnAppend({'$chip': newChip});
- }
- this.items.push(newChip);
-};
-
-/**
- * Sets whether to use the md-on-append expression. This expression is
- * bound to scope and controller in {@code MdChipsDirective} as
- * {@code mdOnAppend}. Due to the nature of directive scope bindings, the
- * controller cannot know on its own/from the scope whether an expression was
- * actually provided.
- */
-MdChipsCtrl.prototype.useMdOnAppendExpression = function() {
- this.useMdOnAppend = true;
-};
-
-/**
- * Gets the input buffer. The input buffer can be the model bound to the
- * default input item {@code this.chipBuffer}, the {@code selectedItem}
- * model of an {@code md-autocomplete}, or, through some magic, the model
- * bound to any inpput or text area element found within a
- * {@code md-input-container} element.
- * @return {Object|string}
- */
-MdChipsCtrl.prototype.getChipBuffer = function() {
- return !this.userInputElement ? this.chipBuffer :
- this.userInputNgModelCtrl ? this.userInputNgModelCtrl.$viewValue :
- this.userInputElement[0].value;
-};
-
-/**
- * Resets the input buffer for either the internal input or user provided input element.
- */
-MdChipsCtrl.prototype.resetChipBuffer = function() {
- if (this.userInputElement) {
- if (this.userInputNgModelCtrl) {
- this.userInputNgModelCtrl.$setViewValue('');
- this.userInputNgModelCtrl.$render();
- } else {
- this.userInputElement[0].value = '';
- }
- } else {
- this.chipBuffer = '';
- }
-};
-
-/**
- * Removes the chip at the given index.
- * @param index
- */
-MdChipsCtrl.prototype.removeChip = function(index) {
- this.items.splice(index, 1);
-};
-
-MdChipsCtrl.prototype.removeChipAndFocusInput = function (index) {
- this.removeChip(index);
- this.onFocus();
-};
-/**
- * Selects the chip at `index`,
- * @param index
- */
-MdChipsCtrl.prototype.selectAndFocusChipSafe = function(index) {
- if (!this.items.length) {
- this.selectChip(-1);
- this.onFocus();
- return;
- }
- if (index === this.items.length) return this.onFocus();
- index = Math.max(index, 0);
- index = Math.min(index, this.items.length - 1);
- this.selectChip(index);
- this.focusChip(index);
-};
-
-/**
- * Marks the chip at the given index as selected.
- * @param index
- */
-MdChipsCtrl.prototype.selectChip = function(index) {
- if (index >= -1 && index <= this.items.length) {
- this.selectedChip = index;
- } else {
- this.$log.warn('Selected Chip index out of bounds; ignoring.');
- }
-};
-
-/**
- * Selects the chip at `index` and gives it focus.
- * @param index
- */
-MdChipsCtrl.prototype.selectAndFocusChip = function(index) {
- this.selectChip(index);
- if (index != -1) {
- this.focusChip(index);
- }
-};
-
-/**
- * Call `focus()` on the chip at `index`
- */
-MdChipsCtrl.prototype.focusChip = function(index) {
- this.$element[0].querySelector('md-chip[index="' + index + '"] .md-chip-content').focus();
-};
-
-/**
- * Configures the required interactions with the ngModel Controller.
- * Specifically, set {@code this.items} to the {@code NgModelCtrl#$viewVale}.
- * @param ngModelCtrl
- */
-MdChipsCtrl.prototype.configureNgModel = function(ngModelCtrl) {
- this.ngModelCtrl = ngModelCtrl;
-
- var self = this;
- ngModelCtrl.$render = function() {
- // model is updated. do something.
- self.items = self.ngModelCtrl.$viewValue;
- };
-};
-
-MdChipsCtrl.prototype.onFocus = function () {
- var input = this.$element[0].querySelector('input');
- input && input.focus();
- this.resetSelectedChip();
-};
-
-MdChipsCtrl.prototype.onInputFocus = function () {
- this.inputHasFocus = true;
- this.resetSelectedChip();
-};
-
-MdChipsCtrl.prototype.onInputBlur = function () {
- this.inputHasFocus = false;
-};
-
-/**
- * Configure event bindings on a user-provided input element.
- * @param inputElement
- */
-MdChipsCtrl.prototype.configureUserInput = function(inputElement) {
- this.userInputElement = inputElement;
-
- // Find the NgModelCtrl for the input element
- var ngModelCtrl = inputElement.controller('ngModel');
- // `.controller` will look in the parent as well.
- if (ngModelCtrl != this.ngModelCtrl) {
- this.userInputNgModelCtrl = ngModelCtrl;
- }
-
- // Bind to keydown and focus events of input
- var scope = this.$scope;
- var ctrl = this;
- inputElement
- .attr({ tabindex: 0 })
- .on('keydown', function(event) { scope.$apply( angular.bind(ctrl, function() { ctrl.inputKeydown(event); })) })
- .on('focus', angular.bind(ctrl, ctrl.onInputFocus))
- .on('blur', angular.bind(ctrl, ctrl.onInputBlur));
-};
-
-MdChipsCtrl.prototype.configureAutocomplete = function(ctrl) {
-
- ctrl.registerSelectedItemWatcher(angular.bind(this, function (item) {
- if (item) {
- this.appendChip(item);
- this.resetChipBuffer();
- }
- }));
-
- this.$element.find('input')
- .on('focus',angular.bind(this, this.onInputFocus) )
- .on('blur', angular.bind(this, this.onInputBlur) );
-};
-
-MdChipsCtrl.prototype.hasFocus = function () {
- return this.inputHasFocus || this.selectedChip >= 0;
-};
-
- angular
- .module('material.components.chips')
- .directive('mdChips', MdChips);
-
- /**
- * @ngdoc directive
- * @name mdChips
- * @module material.components.chips
- *
- * @description
- * `<md-chips>` is an input component for building lists of strings or objects. The list items are
- * displayed as 'chips'. This component can make use of an `<input>` element or an
- * `<md-autocomplete>` element.
- *
- * <strong>Custom `<md-chip-template>` template</strong>
- * A custom template may be provided to render the content of each chip. This is achieved by
- * specifying an `<md-chip-template>` element as a child of `<md-chips>`. Note: Any attributes on
- * `<md-chip-template>` will be dropped as only the innerHTML is used for the chip template. The
- * variables `$chip` and `$index` are available in the scope of `<md-chip-template>`, representing
- * the chip object and its index in the list of chips, respectively.
- * To override the chip delete control, include an element (ideally a button) with the attribute
- * `md-chip-remove`. A click listener to remove the chip will be added automatically. The element
- * is also placed as a sibling to the chip content (on which there are also click listeners) to
- * avoid a nested ng-click situation.
- *
- * <h3> Pending Features </h3>
- * <ul style="padding-left:20px;">
- *
- * <ul>Style
- * <li>Colours for hover, press states (ripple?).</li>
- * </ul>
- *
- * <ul>List Manipulation
- * <li>delete item via DEL or backspace keys when selected</li>
- * </ul>
- *
- * <ul>Validation
- * <li>de-dupe values (or support duplicates, but fix the ng-repeat duplicate key issue)</li>
- * <li>allow a validation callback</li>
- * <li>hilighting style for invalid chips</li>
- * </ul>
- *
- * <ul>Item mutation
- * <li>Support `
- * <md-chip-edit>` template, show/hide the edit element on tap/click? double tap/double
- * click?
- * </li>
- * </ul>
- *
- * <ul>Truncation and Disambiguation (?)
- * <li>Truncate chip text where possible, but do not truncate entries such that two are
- * indistinguishable.</li>
- * </ul>
- *
- * <ul>Drag and Drop
- * <li>Drag and drop chips between related `<md-chips>` elements.
- * </li>
- * </ul>
- * </ul>
- *
- * <span style="font-size:.8em;text-align:center">
- * Warning: This component is a WORK IN PROGRESS. If you use it now,
- * it will probably break on you in the future.
- * </span>
- *
- * @param {string=|object=} ng-model A model to bind the list of items to
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {string=} secondary-placeholder Placeholder text that will be forwarded to the input,
- * displayed when there is at least on item in the list
- * @param {boolean=} readonly Disables list manipulation (deleting or adding list items), hiding
- * the input and delete buttons
- * @param {expression} md-on-append An expression expected to convert the input string into an
- * object when adding a chip.
- * @param {string=} delete-hint A string read by screen readers instructing users that pressing
- * the delete key will remove the chip.
- * @param {string=} delete-button-label A label for the delete button. Also hidden and read by
- * screen readers.
- *
- * @usage
- * <hljs lang="html">
- * <md-chips
- * ng-model="myItems"
- * placeholder="Add an item"
- * readonly="isReadOnly">
- * </md-chips>
- * </hljs>
- *
- */
-
-
- var MD_CHIPS_TEMPLATE = '\
- <md-chips-wrap\
- ng-if="!$mdChipsCtrl.readonly || $mdChipsCtrl.items.length > 0"\
- ng-keydown="$mdChipsCtrl.chipKeydown($event)"\
- ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus() }"\
- class="md-chips">\
- <md-chip ng-repeat="$chip in $mdChipsCtrl.items"\
- index="{{$index}}"\
- ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index}">\
- <div class="md-chip-content"\
- tabindex="-1"\
- aria-hidden="true"\
- ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"\
- md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>\
- <div class="md-chip-remove-container"\
- md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>\
- </md-chip>\
- <div ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"\
- class="md-chip-input-container"\
- md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>\
- </div>\
- </md-chips-wrap>';
-
- var CHIP_INPUT_TEMPLATE = '\
- <input\
- tabindex="0"\
- placeholder="{{$mdChipsCtrl.getPlaceholder()}}"\
- aria-label="{{$mdChipsCtrl.getPlaceholder()}}"\
- ng-model="$mdChipsCtrl.chipBuffer"\
- ng-focus="$mdChipsCtrl.onInputFocus()"\
- ng-blur="$mdChipsCtrl.onInputBlur()"\
- ng-keydown="$mdChipsCtrl.inputKeydown($event)">';
-
- var CHIP_DEFAULT_TEMPLATE = '\
- <span>{{$chip}}</span>';
-
- var CHIP_REMOVE_TEMPLATE = '\
- <button\
- class="md-chip-remove"\
- ng-if="!$mdChipsCtrl.readonly"\
- ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)"\
- type="button"\
- aria-hidden="true"\
- tabindex="-1">\
- <md-icon md-svg-icon="md-close"></md-icon>\
- <span class="md-visually-hidden">\
- {{$mdChipsCtrl.deleteButtonLabel}}\
- </span>\
- </button>';
-
- /**
- * MDChips Directive Definition
- */
- function MdChips ($mdTheming, $mdUtil, $compile, $log, $timeout) {
- return {
- template: function(element, attrs) {
- // Clone the element into an attribute. By prepending the attribute
- // name with '$', Angular won't write it into the DOM. The cloned
- // element propagates to the link function via the attrs argument,
- // where various contained-elements can be consumed.
- var content = attrs['$mdUserTemplate'] = element.clone();
- return MD_CHIPS_TEMPLATE;
- },
- require: ['mdChips'],
- restrict: 'E',
- controller: 'MdChipsCtrl',
- controllerAs: '$mdChipsCtrl',
- bindToController: true,
- compile: compile,
- scope: {
- readonly: '=readonly',
- placeholder: '@',
- secondaryPlaceholder: '@',
- mdOnAppend: '&',
- deleteHint: '@',
- deleteButtonLabel: '@',
- requireMatch: '=?mdRequireMatch'
- }
- };
-
- /**
- * Builds the final template for `md-chips` and returns the postLink function.
- *
- * Building the template involves 3 key components:
- * static chips
- * chip template
- * input control
- *
- * If no `ng-model` is provided, only the static chip work needs to be done.
- *
- * If no user-passed `md-chip-template` exists, the default template is used. This resulting
- * template is appended to the chip content element.
- *
- * The remove button may be overridden by passing an element with an md-chip-remove attribute.
- *
- * If an `input` or `md-autocomplete` element is provided by the caller, it is set aside for
- * transclusion later. The transclusion happens in `postLink` as the parent scope is required.
- * If no user input is provided, a default one is appended to the input container node in the
- * template.
- *
- * Static Chips (i.e. `md-chip` elements passed from the caller) are gathered and set aside for
- * transclusion in the `postLink` function.
- *
- *
- * @param element
- * @param attr
- * @returns {Function}
- */
- function compile(element, attr) {
- // Grab the user template from attr and reset the attribute to null.
- var userTemplate = attr['$mdUserTemplate'];
- attr['$mdUserTemplate'] = null;
-
- // Set the chip remove, chip contents and chip input templates. The link function will put
- // them on the scope for transclusion later.
- var chipRemoveTemplate = getTemplateByQuery('md-chips>*[md-chip-remove]') || CHIP_REMOVE_TEMPLATE,
- chipContentsTemplate = getTemplateByQuery('md-chips>md-chip-template') || CHIP_DEFAULT_TEMPLATE,
- chipInputTemplate = getTemplateByQuery('md-chips>md-autocomplete')
- || getTemplateByQuery('md-chips>input')
- || CHIP_INPUT_TEMPLATE,
- staticChips = userTemplate.find('md-chip');
-
- // Warn of malformed template. See #2545
- if (userTemplate[0].querySelector('md-chip-template>*[md-chip-remove]')) {
- $log.warn('invalid placement of md-chip-remove within md-chip-template.');
- }
-
- function getTemplateByQuery (query) {
- if (!attr.ngModel) return;
- var element = userTemplate[0].querySelector(query);
- return element && element.outerHTML;
- }
-
- /**
- * Configures controller and transcludes.
- */
- return function postLink(scope, element, attrs, controllers) {
-
- $mdUtil.initOptionalProperties(scope, attr);
-
- $mdTheming(element);
- var mdChipsCtrl = controllers[0];
- mdChipsCtrl.chipContentsTemplate = chipContentsTemplate;
- mdChipsCtrl.chipRemoveTemplate = chipRemoveTemplate;
- mdChipsCtrl.chipInputTemplate = chipInputTemplate;
-
- element
- .attr({ ariaHidden: true, tabindex: -1 })
- .on('focus', function () { mdChipsCtrl.onFocus(); });
-
- if (attr.ngModel) {
- mdChipsCtrl.configureNgModel(element.controller('ngModel'));
-
- // If an `md-on-append` attribute was set, tell the controller to use the expression
- // when appending chips.
- if (attrs.mdOnAppend) mdChipsCtrl.useMdOnAppendExpression();
-
- // The md-autocomplete and input elements won't be compiled until after this directive
- // is complete (due to their nested nature). Wait a tick before looking for them to
- // configure the controller.
- if (chipInputTemplate != CHIP_INPUT_TEMPLATE) {
- $timeout(function() {
- if (chipInputTemplate.indexOf('<md-autocomplete') === 0)
- mdChipsCtrl
- .configureAutocomplete(element.find('md-autocomplete')
- .controller('mdAutocomplete'));
- mdChipsCtrl.configureUserInput(element.find('input'));
- });
- }
- }
-
- // Compile with the parent's scope and prepend any static chips to the wrapper.
- if (staticChips.length > 0) {
- var compiledStaticChips = $compile(staticChips)(scope.$parent);
- $timeout(function() { element.find('md-chips-wrap').prepend(compiledStaticChips); });
- }
- };
- }
- }
- MdChips.$inject = ["$mdTheming", "$mdUtil", "$compile", "$log", "$timeout"];
-
-angular
- .module('material.components.chips')
- .controller('MdContactChipsCtrl', MdContactChipsCtrl);
-
-
-
-/**
- * Controller for the MdContactChips component
- * @constructor
- */
-function MdContactChipsCtrl () {
- /** @type {Object} */
- this.selectedItem = null;
-
- /** @type {string} */
- this.searchText = '';
-}
-
-
-MdContactChipsCtrl.prototype.queryContact = function(searchText) {
- var results = this.contactQuery({'$query': searchText});
- return this.filterSelected ?
- results.filter(angular.bind(this, this.filterSelectedContacts)) : results;
-};
-
-
-MdContactChipsCtrl.prototype.filterSelectedContacts = function(contact) {
- return this.contacts.indexOf(contact) == -1;
-};
-
- angular
- .module('material.components.chips')
- .directive('mdContactChips', MdContactChips);
-
- /**
- * @ngdoc directive
- * @name mdContactChips
- * @module material.components.chips
- *
- * @description
- * `<md-contact-chips>` is an input component based on `md-chips` and makes use of an
- * `md-autocomplete` element. The component allows the caller to supply a query expression
- * which returns a list of possible contacts. The user can select one of these and add it to
- * the list of chips.
- *
- * @param {string=|object=} ng-model A model to bind the list of items to
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {string=} secondary-placeholder Placeholder text that will be forwarded to the input,
- * displayed when there is at least on item in the list
- * @param {expression} md-contacts An expression expected to return contacts matching the search
- * test, `$query`.
- * @param {string} md-contact-name The field name of the contact object representing the
- * contact's name.
- * @param {string} md-contact-email The field name of the contact object representing the
- * contact's email address.
- * @param {string} md-contact-image The field name of the contact object representing the
- * contact's image.
- *
- *
- * // The following attribute has been removed but may come back.
- * @param {expression=} filter-selected Whether to filter selected contacts from the list of
- * suggestions shown in the autocomplete.
- *
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-contact-chips
- * ng-model="ctrl.contacts"
- * md-contacts="ctrl.querySearch($query)"
- * md-contact-name="name"
- * md-contact-image="image"
- * md-contact-email="email"
- * placeholder="To">
- * </md-contact-chips>
- * </hljs>
- *
- */
-
-
- var MD_CONTACT_CHIPS_TEMPLATE = '\
- <md-chips class="md-contact-chips"\
- ng-model="$mdContactChipsCtrl.contacts"\
- md-require-match="$mdContactChipsCtrl.requireMatch"\
- md-autocomplete-snap>\
- <md-autocomplete\
- md-menu-class="md-contact-chips-suggestions"\
- md-selected-item="$mdContactChipsCtrl.selectedItem"\
- md-search-text="$mdContactChipsCtrl.searchText"\
- md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"\
- md-item-text="$mdContactChipsCtrl.mdContactName"\
- md-no-cache="true"\
- md-autoselect\
- placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ?\
- $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">\
- <div class="md-contact-suggestion">\
- <img \
- ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"\
- alt="{{item[$mdContactChipsCtrl.contactName]}}" />\
- <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText">\
- {{item[$mdContactChipsCtrl.contactName]}}\
- </span>\
- <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>\
- </div>\
- </md-autocomplete>\
- <md-chip-template>\
- <div class="md-contact-avatar">\
- <img \
- ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"\
- alt="{{$chip[$mdContactChipsCtrl.contactName]}}" />\
- </div>\
- <div class="md-contact-name">\
- {{$chip[$mdContactChipsCtrl.contactName]}}\
- </div>\
- </md-chip-template>\
- </md-chips>';
-
-
- /**
- * MDContactChips Directive Definition
- *
- * @param $mdTheming
- * @returns {*}
- * ngInject
- */
- function MdContactChips ($mdTheming, $mdUtil) {
- return {
- template: function(element, attrs) {
- return MD_CONTACT_CHIPS_TEMPLATE;
- },
- restrict: 'E',
- controller: 'MdContactChipsCtrl',
- controllerAs: '$mdContactChipsCtrl',
- bindToController: true,
- compile: compile,
- scope: {
- contactQuery: '&mdContacts',
- placeholder: '@',
- secondaryPlaceholder: '@',
- contactName: '@mdContactName',
- contactImage: '@mdContactImage',
- contactEmail: '@mdContactEmail',
- contacts: '=ngModel',
- requireMatch: '=?mdRequireMatch'
- }
- };
-
- function compile(element, attr) {
- return function postLink(scope, element, attrs, controllers) {
-
- $mdUtil.initOptionalProperties(scope, attr);
- $mdTheming(element);
-
- element.attr('tabindex', '-1');
- };
- }
- }
- MdContactChips.$inject = ["$mdTheming", "$mdUtil"];
-
-ng.material.components.chips = angular.module("material.components.chips"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content-default-theme.css
deleted file mode 100644
index 3b7b4dca..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content-default-theme.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-content.md-THEME_NAME-theme {
- background-color: '{{background-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content.css
deleted file mode 100644
index 2909004d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-content {
- display: block;
- position: relative;
- overflow: auto;
- -webkit-overflow-scrolling: touch; }
- md-content[md-scroll-y] {
- overflow-y: auto;
- overflow-x: hidden; }
- md-content[md-scroll-x] {
- overflow-x: auto;
- overflow-y: hidden; }
- md-content.autoScroll {
- -webkit-overflow-scrolling: auto; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content.js
deleted file mode 100644
index aba7baca..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/content/content.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.content');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.content
- *
- * @description
- * Scrollable content
- */
-angular.module('material.components.content', [
- 'material.core'
-])
- .directive('mdContent', mdContentDirective);
-
-/**
- * @ngdoc directive
- * @name mdContent
- * @module material.components.content
- *
- * @restrict E
- *
- * @description
- * The `<md-content>` directive is a container element useful for scrollable content
- *
- * @usage
- *
- * - Add the `[layout-padding]` attribute to make the content padded.
- *
- * <hljs lang="html">
- * <md-content layout-padding>
- * Lorem ipsum dolor sit amet, ne quod novum mei.
- * </md-content>
- * </hljs>
- *
- */
-
-function mdContentDirective($mdTheming) {
- return {
- restrict: 'E',
- controller: ['$scope', '$element', ContentController],
- link: function(scope, element, attr) {
- var node = element[0];
-
- $mdTheming(element);
- scope.$broadcast('$mdContentLoaded', element);
-
- iosScrollFix(element[0]);
- }
- };
-
- function ContentController($scope, $element) {
- this.$scope = $scope;
- this.$element = $element;
- }
-}
-mdContentDirective.$inject = ["$mdTheming"];
-
-function iosScrollFix(node) {
- // IOS FIX:
- // If we scroll where there is no more room for the webview to scroll,
- // by default the webview itself will scroll up and down, this looks really
- // bad. So if we are scrolling to the very top or bottom, add/subtract one
- angular.element(node).on('$md.pressdown', function(ev) {
- // Only touch events
- if (ev.pointer.type !== 't') return;
- // Don't let a child content's touchstart ruin it for us.
- if (ev.$materialScrollFixed) return;
- ev.$materialScrollFixed = true;
-
- if (node.scrollTop === 0) {
- node.scrollTop = 1;
- } else if (node.scrollHeight === node.scrollTop + node.offsetHeight) {
- node.scrollTop -= 1;
- }
- });
-}
-
-ng.material.components.content = angular.module("material.components.content"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/core.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/core.css
deleted file mode 100644
index ebda29d8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/core.css
+++ /dev/null
@@ -1,2590 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-/* Sizes:
- 0 <= size < 600 Phone
- 600 <= size < 960 Tablet
- 960 <= size < 1200 Tablet-Landscape
- 1200 <= size PC
-*/
-[layout] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
-
-[layout=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
-
-[layout=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
-
-[layout-padding] > [flex-sm], [layout-padding] > [flex-lt-md] {
- padding: 4px; }
-
-[layout-padding], [layout-padding] > [flex], [layout-padding] > [flex-gt-sm], [layout-padding] > [flex-md], [layout-padding] > [flex-lt-lg] {
- padding: 8px; }
-
-[layout-padding] > [flex-gt-md], [layout-padding] > [flex-lg] {
- padding: 16px; }
-
-[layout-margin] > [flex-sm], [layout-margin] > [flex-lt-md] {
- margin: 4px; }
-
-[layout-margin], [layout-margin] > [flex], [layout-margin] > [flex-gt-sm], [layout-margin] > [flex-md], [layout-margin] > [flex-lt-lg] {
- margin: 8px; }
-
-[layout-margin] > [flex-gt-md], [layout-margin] > [flex-lg] {
- margin: 16px; }
-
-[layout-wrap] {
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap; }
-
-[layout-fill] {
- margin: 0;
- min-height: 100%;
- width: 100%; }
-
-@-moz-document url-prefix() {
- [layout-fill] {
- margin: 0;
- width: 100%;
- min-height: auto;
- height: inherit; } }
-
-[flex] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
-
-[flex="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
-
-[layout="row"] > [flex="0"] {
- max-width: 0%; }
-
-[layout="column"] > [flex="0"] {
- max-height: 0%; }
-
-[flex="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
-
-[layout="row"] > [flex="5"] {
- max-width: 5%; }
-
-[layout="column"] > [flex="5"] {
- max-height: 5%; }
-
-[flex="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
-
-[layout="row"] > [flex="10"] {
- max-width: 10%; }
-
-[layout="column"] > [flex="10"] {
- max-height: 10%; }
-
-[flex="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
-
-[layout="row"] > [flex="15"] {
- max-width: 15%; }
-
-[layout="column"] > [flex="15"] {
- max-height: 15%; }
-
-[flex="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
-
-[layout="row"] > [flex="20"] {
- max-width: 20%; }
-
-[layout="column"] > [flex="20"] {
- max-height: 20%; }
-
-[flex="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
-
-[layout="row"] > [flex="25"] {
- max-width: 25%; }
-
-[layout="column"] > [flex="25"] {
- max-height: 25%; }
-
-[flex="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
-
-[layout="row"] > [flex="30"] {
- max-width: 30%; }
-
-[layout="column"] > [flex="30"] {
- max-height: 30%; }
-
-[flex="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
-
-[layout="row"] > [flex="35"] {
- max-width: 35%; }
-
-[layout="column"] > [flex="35"] {
- max-height: 35%; }
-
-[flex="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
-
-[layout="row"] > [flex="40"] {
- max-width: 40%; }
-
-[layout="column"] > [flex="40"] {
- max-height: 40%; }
-
-[flex="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
-
-[layout="row"] > [flex="45"] {
- max-width: 45%; }
-
-[layout="column"] > [flex="45"] {
- max-height: 45%; }
-
-[flex="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
-
-[layout="row"] > [flex="50"] {
- max-width: 50%; }
-
-[layout="column"] > [flex="50"] {
- max-height: 50%; }
-
-[flex="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
-
-[layout="row"] > [flex="55"] {
- max-width: 55%; }
-
-[layout="column"] > [flex="55"] {
- max-height: 55%; }
-
-[flex="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
-
-[layout="row"] > [flex="60"] {
- max-width: 60%; }
-
-[layout="column"] > [flex="60"] {
- max-height: 60%; }
-
-[flex="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
-
-[layout="row"] > [flex="65"] {
- max-width: 65%; }
-
-[layout="column"] > [flex="65"] {
- max-height: 65%; }
-
-[flex="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
-
-[layout="row"] > [flex="70"] {
- max-width: 70%; }
-
-[layout="column"] > [flex="70"] {
- max-height: 70%; }
-
-[flex="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
-
-[layout="row"] > [flex="75"] {
- max-width: 75%; }
-
-[layout="column"] > [flex="75"] {
- max-height: 75%; }
-
-[flex="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
-
-[layout="row"] > [flex="80"] {
- max-width: 80%; }
-
-[layout="column"] > [flex="80"] {
- max-height: 80%; }
-
-[flex="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
-
-[layout="row"] > [flex="85"] {
- max-width: 85%; }
-
-[layout="column"] > [flex="85"] {
- max-height: 85%; }
-
-[flex="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
-
-[layout="row"] > [flex="90"] {
- max-width: 90%; }
-
-[layout="column"] > [flex="90"] {
- max-height: 90%; }
-
-[flex="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
-
-[layout="row"] > [flex="95"] {
- max-width: 95%; }
-
-[layout="column"] > [flex="95"] {
- max-height: 95%; }
-
-[flex="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
-
-[layout="row"] > [flex="100"] {
- max-width: 100%; }
-
-[layout="column"] > [flex="100"] {
- max-height: 100%; }
-
-[flex="33"], [flex="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
-
-[flex="66"], [flex="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
-
-[layout="row"] > [flex="33"], [layout="row"] > [flex="34"] {
- max-width: 33.33%; }
-[layout="row"] > [flex="66"], [layout="row"] > [flex="67"] {
- max-width: 66.66%; }
-
-[layout="column"] > [flex="33"], [layout="column"] > [flex="34"] {
- max-height: 33.33%; }
-[layout="column"] > [flex="66"], [layout="column"] > [flex="67"] {
- max-height: 66.66%; }
-
-[layout-align="center"], [layout-align="center center"], [layout-align="center start"], [layout-align="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
-
-[layout-align="end"], [layout-align="end center"], [layout-align="end start"], [layout-align="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
-
-[layout-align="space-around"], [layout-align="space-around center"], [layout-align="space-around start"], [layout-align="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
-
-[layout-align="space-between"], [layout-align="space-between center"], [layout-align="space-between start"], [layout-align="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
-
-[layout-align="center center"], [layout-align="start center"], [layout-align="end center"], [layout-align="space-between center"], [layout-align="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
-
-[layout-align="center start"], [layout-align="start start"], [layout-align="end start"], [layout-align="space-between start"], [layout-align="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
-
-[layout-align="center end"], [layout-align="start end"], [layout-align="end end"], [layout-align="space-between end"], [layout-align="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
-
-[flex-order="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
-
-[flex-order="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
-
-[flex-order="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
-
-[flex-order="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
-
-[flex-order="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
-
-[flex-order="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
-
-[flex-order="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
-
-[flex-order="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
-
-[flex-order="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
-
-[flex-order="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
-
-[offset="5"] {
- margin-left: 5%; }
-
-[offset="10"] {
- margin-left: 10%; }
-
-[offset="15"] {
- margin-left: 15%; }
-
-[offset="20"] {
- margin-left: 20%; }
-
-[offset="25"] {
- margin-left: 25%; }
-
-[offset="30"] {
- margin-left: 30%; }
-
-[offset="35"] {
- margin-left: 35%; }
-
-[offset="40"] {
- margin-left: 40%; }
-
-[offset="45"] {
- margin-left: 45%; }
-
-[offset="50"] {
- margin-left: 50%; }
-
-[offset="55"] {
- margin-left: 55%; }
-
-[offset="60"] {
- margin-left: 60%; }
-
-[offset="65"] {
- margin-left: 65%; }
-
-[offset="70"] {
- margin-left: 70%; }
-
-[offset="75"] {
- margin-left: 75%; }
-
-[offset="80"] {
- margin-left: 80%; }
-
-[offset="85"] {
- margin-left: 85%; }
-
-[offset="90"] {
- margin-left: 90%; }
-
-[offset="95"] {
- margin-left: 95%; }
-
-[offset="33"], [offset="34"] {
- margin-left: 33.33%; }
-
-[offset="66"], [offset="67"] {
- margin-left: 66.66%; }
-
-/**
- * `hide-gt-sm show-gt-lg` should hide from 600px to 1200px
- * `show-md hide-gt-sm` should show from 0px to 960px and hide at >960px
- * `hide-gt-md show-gt-sm` should show everywhere (show overrides hide)`
- */
-@media (max-width: 599px) {
- [hide-sm]:not([show-sm]):not([show]), [hide]:not([show-sm]):not([show]) {
- display: none; }
- [flex-order-sm="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-sm="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-sm="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-sm="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-sm="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-sm="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-sm="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-sm="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-sm="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-sm="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-sm="center"], [layout-align-sm="center center"], [layout-align-sm="center start"], [layout-align-sm="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-sm="end"], [layout-align-sm="end center"], [layout-align-sm="end start"], [layout-align-sm="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-sm="space-around"], [layout-align-sm="space-around center"], [layout-align-sm="space-around start"], [layout-align-sm="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-sm="space-between"], [layout-align-sm="space-between center"], [layout-align-sm="space-between start"], [layout-align-sm="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-sm="center center"], [layout-align-sm="start center"], [layout-align-sm="end center"], [layout-align-sm="space-between center"], [layout-align-sm="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-sm="center start"], [layout-align-sm="start start"], [layout-align-sm="end start"], [layout-align-sm="space-between start"], [layout-align-sm="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-sm="center end"], [layout-align-sm="start end"], [layout-align-sm="end end"], [layout-align-sm="space-between end"], [layout-align-sm="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-sm] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-sm=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-sm=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-sm="5"] {
- margin-left: 5%; }
- [offset-sm="10"] {
- margin-left: 10%; }
- [offset-sm="15"] {
- margin-left: 15%; }
- [offset-sm="20"] {
- margin-left: 20%; }
- [offset-sm="25"] {
- margin-left: 25%; }
- [offset-sm="30"] {
- margin-left: 30%; }
- [offset-sm="35"] {
- margin-left: 35%; }
- [offset-sm="40"] {
- margin-left: 40%; }
- [offset-sm="45"] {
- margin-left: 45%; }
- [offset-sm="50"] {
- margin-left: 50%; }
- [offset-sm="55"] {
- margin-left: 55%; }
- [offset-sm="60"] {
- margin-left: 60%; }
- [offset-sm="65"] {
- margin-left: 65%; }
- [offset-sm="70"] {
- margin-left: 70%; }
- [offset-sm="75"] {
- margin-left: 75%; }
- [offset-sm="80"] {
- margin-left: 80%; }
- [offset-sm="85"] {
- margin-left: 85%; }
- [offset-sm="90"] {
- margin-left: 90%; }
- [offset-sm="95"] {
- margin-left: 95%; }
- [offset-sm="33"], [offset-sm="34"] {
- margin-left: 33.33%; }
- [offset-sm="66"], [offset-sm="67"] {
- margin-left: 66.66%; }
- [flex-sm] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-sm="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-sm="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-sm="0"] {
- max-height: 0%; }
- [flex-sm="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-sm="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-sm="5"] {
- max-height: 5%; }
- [flex-sm="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-sm="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-sm="10"] {
- max-height: 10%; }
- [flex-sm="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-sm="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-sm="15"] {
- max-height: 15%; }
- [flex-sm="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-sm="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-sm="20"] {
- max-height: 20%; }
- [flex-sm="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-sm="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-sm="25"] {
- max-height: 25%; }
- [flex-sm="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-sm="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-sm="30"] {
- max-height: 30%; }
- [flex-sm="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-sm="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-sm="35"] {
- max-height: 35%; }
- [flex-sm="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-sm="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-sm="40"] {
- max-height: 40%; }
- [flex-sm="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-sm="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-sm="45"] {
- max-height: 45%; }
- [flex-sm="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-sm="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-sm="50"] {
- max-height: 50%; }
- [flex-sm="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-sm="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-sm="55"] {
- max-height: 55%; }
- [flex-sm="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-sm="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-sm="60"] {
- max-height: 60%; }
- [flex-sm="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-sm="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-sm="65"] {
- max-height: 65%; }
- [flex-sm="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-sm="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-sm="70"] {
- max-height: 70%; }
- [flex-sm="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-sm="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-sm="75"] {
- max-height: 75%; }
- [flex-sm="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-sm="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-sm="80"] {
- max-height: 80%; }
- [flex-sm="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-sm="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-sm="85"] {
- max-height: 85%; }
- [flex-sm="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-sm="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-sm="90"] {
- max-height: 90%; }
- [flex-sm="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-sm="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-sm="95"] {
- max-height: 95%; }
- [flex-sm="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-sm="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-sm="100"] {
- max-height: 100%; }
- [flex-sm="33"], [flex-sm="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-sm="66"], [flex-sm="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-sm="33"], [layout="row"] > [flex-sm="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-sm="66"], [layout="row"] > [flex-sm="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-sm="33"], [layout="column"] > [flex-sm="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-sm="66"], [layout="column"] > [flex-sm="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 600px) {
- [flex-order-gt-sm="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-sm="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-sm="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-sm="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-sm="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-sm="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-sm="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-sm="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-sm="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-sm="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-sm="center"], [layout-align-gt-sm="center center"], [layout-align-gt-sm="center start"], [layout-align-gt-sm="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-sm="end"], [layout-align-gt-sm="end center"], [layout-align-gt-sm="end start"], [layout-align-gt-sm="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-sm="space-around"], [layout-align-gt-sm="space-around center"], [layout-align-gt-sm="space-around start"], [layout-align-gt-sm="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-sm="space-between"], [layout-align-gt-sm="space-between center"], [layout-align-gt-sm="space-between start"], [layout-align-gt-sm="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-sm="center center"], [layout-align-gt-sm="start center"], [layout-align-gt-sm="end center"], [layout-align-gt-sm="space-between center"], [layout-align-gt-sm="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-sm="center start"], [layout-align-gt-sm="start start"], [layout-align-gt-sm="end start"], [layout-align-gt-sm="space-between start"], [layout-align-gt-sm="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-sm="center end"], [layout-align-gt-sm="start end"], [layout-align-gt-sm="end end"], [layout-align-gt-sm="space-between end"], [layout-align-gt-sm="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-sm] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-sm=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-sm=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-sm="5"] {
- margin-left: 5%; }
- [offset-gt-sm="10"] {
- margin-left: 10%; }
- [offset-gt-sm="15"] {
- margin-left: 15%; }
- [offset-gt-sm="20"] {
- margin-left: 20%; }
- [offset-gt-sm="25"] {
- margin-left: 25%; }
- [offset-gt-sm="30"] {
- margin-left: 30%; }
- [offset-gt-sm="35"] {
- margin-left: 35%; }
- [offset-gt-sm="40"] {
- margin-left: 40%; }
- [offset-gt-sm="45"] {
- margin-left: 45%; }
- [offset-gt-sm="50"] {
- margin-left: 50%; }
- [offset-gt-sm="55"] {
- margin-left: 55%; }
- [offset-gt-sm="60"] {
- margin-left: 60%; }
- [offset-gt-sm="65"] {
- margin-left: 65%; }
- [offset-gt-sm="70"] {
- margin-left: 70%; }
- [offset-gt-sm="75"] {
- margin-left: 75%; }
- [offset-gt-sm="80"] {
- margin-left: 80%; }
- [offset-gt-sm="85"] {
- margin-left: 85%; }
- [offset-gt-sm="90"] {
- margin-left: 90%; }
- [offset-gt-sm="95"] {
- margin-left: 95%; }
- [offset-gt-sm="33"], [offset-gt-sm="34"] {
- margin-left: 33.33%; }
- [offset-gt-sm="66"], [offset-gt-sm="67"] {
- margin-left: 66.66%; }
- [flex-gt-sm] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-sm="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-sm="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-sm="0"] {
- max-height: 0%; }
- [flex-gt-sm="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-sm="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-sm="5"] {
- max-height: 5%; }
- [flex-gt-sm="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-sm="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-sm="10"] {
- max-height: 10%; }
- [flex-gt-sm="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-sm="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-sm="15"] {
- max-height: 15%; }
- [flex-gt-sm="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-sm="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-sm="20"] {
- max-height: 20%; }
- [flex-gt-sm="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-sm="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-sm="25"] {
- max-height: 25%; }
- [flex-gt-sm="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-sm="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-sm="30"] {
- max-height: 30%; }
- [flex-gt-sm="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-sm="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-sm="35"] {
- max-height: 35%; }
- [flex-gt-sm="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-sm="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-sm="40"] {
- max-height: 40%; }
- [flex-gt-sm="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-sm="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-sm="45"] {
- max-height: 45%; }
- [flex-gt-sm="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-sm="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-sm="50"] {
- max-height: 50%; }
- [flex-gt-sm="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-sm="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-sm="55"] {
- max-height: 55%; }
- [flex-gt-sm="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-sm="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-sm="60"] {
- max-height: 60%; }
- [flex-gt-sm="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-sm="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-sm="65"] {
- max-height: 65%; }
- [flex-gt-sm="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-sm="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-sm="70"] {
- max-height: 70%; }
- [flex-gt-sm="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-sm="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-sm="75"] {
- max-height: 75%; }
- [flex-gt-sm="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-sm="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-sm="80"] {
- max-height: 80%; }
- [flex-gt-sm="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-sm="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-sm="85"] {
- max-height: 85%; }
- [flex-gt-sm="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-sm="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-sm="90"] {
- max-height: 90%; }
- [flex-gt-sm="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-sm="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-sm="95"] {
- max-height: 95%; }
- [flex-gt-sm="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-sm="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-sm="100"] {
- max-height: 100%; }
- [flex-gt-sm="33"], [flex-gt-sm="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-sm="66"], [flex-gt-sm="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-sm="33"], [layout="row"] > [flex-gt-sm="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-sm="66"], [layout="row"] > [flex-gt-sm="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-sm="33"], [layout="column"] > [flex-gt-sm="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-sm="66"], [layout="column"] > [flex-gt-sm="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 600px) and (max-width: 959px) {
- [hide]:not([show-gt-sm]):not([show-md]):not([show]), [hide-gt-sm]:not([show-gt-sm]):not([show-md]):not([show]) {
- display: none; }
- [hide-md]:not([show-md]):not([show]) {
- display: none; }
- [flex-order-md="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-md="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-md="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-md="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-md="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-md="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-md="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-md="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-md="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-md="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-md="center"], [layout-align-md="center center"], [layout-align-md="center start"], [layout-align-md="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-md="end"], [layout-align-md="end center"], [layout-align-md="end start"], [layout-align-md="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-md="space-around"], [layout-align-md="space-around center"], [layout-align-md="space-around start"], [layout-align-md="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-md="space-between"], [layout-align-md="space-between center"], [layout-align-md="space-between start"], [layout-align-md="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-md="center center"], [layout-align-md="start center"], [layout-align-md="end center"], [layout-align-md="space-between center"], [layout-align-md="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-md="center start"], [layout-align-md="start start"], [layout-align-md="end start"], [layout-align-md="space-between start"], [layout-align-md="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-md="center end"], [layout-align-md="start end"], [layout-align-md="end end"], [layout-align-md="space-between end"], [layout-align-md="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-md] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-md=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-md=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-md="5"] {
- margin-left: 5%; }
- [offset-md="10"] {
- margin-left: 10%; }
- [offset-md="15"] {
- margin-left: 15%; }
- [offset-md="20"] {
- margin-left: 20%; }
- [offset-md="25"] {
- margin-left: 25%; }
- [offset-md="30"] {
- margin-left: 30%; }
- [offset-md="35"] {
- margin-left: 35%; }
- [offset-md="40"] {
- margin-left: 40%; }
- [offset-md="45"] {
- margin-left: 45%; }
- [offset-md="50"] {
- margin-left: 50%; }
- [offset-md="55"] {
- margin-left: 55%; }
- [offset-md="60"] {
- margin-left: 60%; }
- [offset-md="65"] {
- margin-left: 65%; }
- [offset-md="70"] {
- margin-left: 70%; }
- [offset-md="75"] {
- margin-left: 75%; }
- [offset-md="80"] {
- margin-left: 80%; }
- [offset-md="85"] {
- margin-left: 85%; }
- [offset-md="90"] {
- margin-left: 90%; }
- [offset-md="95"] {
- margin-left: 95%; }
- [offset-md="33"], [offset-md="34"] {
- margin-left: 33.33%; }
- [offset-md="66"], [offset-md="67"] {
- margin-left: 66.66%; }
- [flex-md] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-md="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-md="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-md="0"] {
- max-height: 0%; }
- [flex-md="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-md="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-md="5"] {
- max-height: 5%; }
- [flex-md="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-md="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-md="10"] {
- max-height: 10%; }
- [flex-md="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-md="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-md="15"] {
- max-height: 15%; }
- [flex-md="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-md="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-md="20"] {
- max-height: 20%; }
- [flex-md="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-md="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-md="25"] {
- max-height: 25%; }
- [flex-md="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-md="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-md="30"] {
- max-height: 30%; }
- [flex-md="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-md="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-md="35"] {
- max-height: 35%; }
- [flex-md="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-md="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-md="40"] {
- max-height: 40%; }
- [flex-md="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-md="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-md="45"] {
- max-height: 45%; }
- [flex-md="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-md="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-md="50"] {
- max-height: 50%; }
- [flex-md="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-md="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-md="55"] {
- max-height: 55%; }
- [flex-md="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-md="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-md="60"] {
- max-height: 60%; }
- [flex-md="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-md="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-md="65"] {
- max-height: 65%; }
- [flex-md="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-md="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-md="70"] {
- max-height: 70%; }
- [flex-md="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-md="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-md="75"] {
- max-height: 75%; }
- [flex-md="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-md="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-md="80"] {
- max-height: 80%; }
- [flex-md="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-md="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-md="85"] {
- max-height: 85%; }
- [flex-md="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-md="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-md="90"] {
- max-height: 90%; }
- [flex-md="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-md="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-md="95"] {
- max-height: 95%; }
- [flex-md="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-md="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-md="100"] {
- max-height: 100%; }
- [flex-md="33"], [flex-md="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-md="66"], [flex-md="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-md="33"], [layout="row"] > [flex-md="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-md="66"], [layout="row"] > [flex-md="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-md="33"], [layout="column"] > [flex-md="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-md="66"], [layout="column"] > [flex-md="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 960px) {
- [flex-order-gt-md="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-md="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-md="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-md="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-md="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-md="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-md="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-md="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-md="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-md="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-md="center"], [layout-align-gt-md="center center"], [layout-align-gt-md="center start"], [layout-align-gt-md="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-md="end"], [layout-align-gt-md="end center"], [layout-align-gt-md="end start"], [layout-align-gt-md="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-md="space-around"], [layout-align-gt-md="space-around center"], [layout-align-gt-md="space-around start"], [layout-align-gt-md="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-md="space-between"], [layout-align-gt-md="space-between center"], [layout-align-gt-md="space-between start"], [layout-align-gt-md="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-md="center center"], [layout-align-gt-md="start center"], [layout-align-gt-md="end center"], [layout-align-gt-md="space-between center"], [layout-align-gt-md="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-md="center start"], [layout-align-gt-md="start start"], [layout-align-gt-md="end start"], [layout-align-gt-md="space-between start"], [layout-align-gt-md="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-md="center end"], [layout-align-gt-md="start end"], [layout-align-gt-md="end end"], [layout-align-gt-md="space-between end"], [layout-align-gt-md="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-md] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-md=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-md=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-md="5"] {
- margin-left: 5%; }
- [offset-gt-md="10"] {
- margin-left: 10%; }
- [offset-gt-md="15"] {
- margin-left: 15%; }
- [offset-gt-md="20"] {
- margin-left: 20%; }
- [offset-gt-md="25"] {
- margin-left: 25%; }
- [offset-gt-md="30"] {
- margin-left: 30%; }
- [offset-gt-md="35"] {
- margin-left: 35%; }
- [offset-gt-md="40"] {
- margin-left: 40%; }
- [offset-gt-md="45"] {
- margin-left: 45%; }
- [offset-gt-md="50"] {
- margin-left: 50%; }
- [offset-gt-md="55"] {
- margin-left: 55%; }
- [offset-gt-md="60"] {
- margin-left: 60%; }
- [offset-gt-md="65"] {
- margin-left: 65%; }
- [offset-gt-md="70"] {
- margin-left: 70%; }
- [offset-gt-md="75"] {
- margin-left: 75%; }
- [offset-gt-md="80"] {
- margin-left: 80%; }
- [offset-gt-md="85"] {
- margin-left: 85%; }
- [offset-gt-md="90"] {
- margin-left: 90%; }
- [offset-gt-md="95"] {
- margin-left: 95%; }
- [offset-gt-md="33"], [offset-gt-md="34"] {
- margin-left: 33.33%; }
- [offset-gt-md="66"], [offset-gt-md="67"] {
- margin-left: 66.66%; }
- [flex-gt-md] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-md="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-md="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-md="0"] {
- max-height: 0%; }
- [flex-gt-md="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-md="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-md="5"] {
- max-height: 5%; }
- [flex-gt-md="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-md="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-md="10"] {
- max-height: 10%; }
- [flex-gt-md="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-md="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-md="15"] {
- max-height: 15%; }
- [flex-gt-md="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-md="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-md="20"] {
- max-height: 20%; }
- [flex-gt-md="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-md="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-md="25"] {
- max-height: 25%; }
- [flex-gt-md="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-md="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-md="30"] {
- max-height: 30%; }
- [flex-gt-md="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-md="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-md="35"] {
- max-height: 35%; }
- [flex-gt-md="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-md="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-md="40"] {
- max-height: 40%; }
- [flex-gt-md="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-md="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-md="45"] {
- max-height: 45%; }
- [flex-gt-md="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-md="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-md="50"] {
- max-height: 50%; }
- [flex-gt-md="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-md="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-md="55"] {
- max-height: 55%; }
- [flex-gt-md="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-md="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-md="60"] {
- max-height: 60%; }
- [flex-gt-md="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-md="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-md="65"] {
- max-height: 65%; }
- [flex-gt-md="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-md="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-md="70"] {
- max-height: 70%; }
- [flex-gt-md="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-md="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-md="75"] {
- max-height: 75%; }
- [flex-gt-md="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-md="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-md="80"] {
- max-height: 80%; }
- [flex-gt-md="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-md="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-md="85"] {
- max-height: 85%; }
- [flex-gt-md="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-md="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-md="90"] {
- max-height: 90%; }
- [flex-gt-md="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-md="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-md="95"] {
- max-height: 95%; }
- [flex-gt-md="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-md="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-md="100"] {
- max-height: 100%; }
- [flex-gt-md="33"], [flex-gt-md="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-md="66"], [flex-gt-md="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-md="33"], [layout="row"] > [flex-gt-md="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-md="66"], [layout="row"] > [flex-gt-md="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-md="33"], [layout="column"] > [flex-gt-md="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-md="66"], [layout="column"] > [flex-gt-md="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 960px) and (max-width: 1199px) {
- [hide]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]), [hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]), [hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]) {
- display: none; }
- [hide-lg]:not([show-lg]):not([show]) {
- display: none; }
- [flex-order-lg="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-lg="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-lg="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-lg="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-lg="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-lg="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-lg="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-lg="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-lg="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-lg="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-lg="center"], [layout-align-lg="center center"], [layout-align-lg="center start"], [layout-align-lg="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-lg="end"], [layout-align-lg="end center"], [layout-align-lg="end start"], [layout-align-lg="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-lg="space-around"], [layout-align-lg="space-around center"], [layout-align-lg="space-around start"], [layout-align-lg="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-lg="space-between"], [layout-align-lg="space-between center"], [layout-align-lg="space-between start"], [layout-align-lg="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-lg="center center"], [layout-align-lg="start center"], [layout-align-lg="end center"], [layout-align-lg="space-between center"], [layout-align-lg="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-lg="center start"], [layout-align-lg="start start"], [layout-align-lg="end start"], [layout-align-lg="space-between start"], [layout-align-lg="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-lg="center end"], [layout-align-lg="start end"], [layout-align-lg="end end"], [layout-align-lg="space-between end"], [layout-align-lg="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-lg] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-lg=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-lg=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-lg="5"] {
- margin-left: 5%; }
- [offset-lg="10"] {
- margin-left: 10%; }
- [offset-lg="15"] {
- margin-left: 15%; }
- [offset-lg="20"] {
- margin-left: 20%; }
- [offset-lg="25"] {
- margin-left: 25%; }
- [offset-lg="30"] {
- margin-left: 30%; }
- [offset-lg="35"] {
- margin-left: 35%; }
- [offset-lg="40"] {
- margin-left: 40%; }
- [offset-lg="45"] {
- margin-left: 45%; }
- [offset-lg="50"] {
- margin-left: 50%; }
- [offset-lg="55"] {
- margin-left: 55%; }
- [offset-lg="60"] {
- margin-left: 60%; }
- [offset-lg="65"] {
- margin-left: 65%; }
- [offset-lg="70"] {
- margin-left: 70%; }
- [offset-lg="75"] {
- margin-left: 75%; }
- [offset-lg="80"] {
- margin-left: 80%; }
- [offset-lg="85"] {
- margin-left: 85%; }
- [offset-lg="90"] {
- margin-left: 90%; }
- [offset-lg="95"] {
- margin-left: 95%; }
- [offset-lg="33"], [offset-lg="34"] {
- margin-left: 33.33%; }
- [offset-lg="66"], [offset-lg="67"] {
- margin-left: 66.66%; }
- [flex-lg] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-lg="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-lg="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-lg="0"] {
- max-height: 0%; }
- [flex-lg="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-lg="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-lg="5"] {
- max-height: 5%; }
- [flex-lg="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-lg="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-lg="10"] {
- max-height: 10%; }
- [flex-lg="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-lg="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-lg="15"] {
- max-height: 15%; }
- [flex-lg="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-lg="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-lg="20"] {
- max-height: 20%; }
- [flex-lg="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-lg="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-lg="25"] {
- max-height: 25%; }
- [flex-lg="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-lg="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-lg="30"] {
- max-height: 30%; }
- [flex-lg="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-lg="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-lg="35"] {
- max-height: 35%; }
- [flex-lg="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-lg="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-lg="40"] {
- max-height: 40%; }
- [flex-lg="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-lg="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-lg="45"] {
- max-height: 45%; }
- [flex-lg="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-lg="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-lg="50"] {
- max-height: 50%; }
- [flex-lg="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-lg="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-lg="55"] {
- max-height: 55%; }
- [flex-lg="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-lg="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-lg="60"] {
- max-height: 60%; }
- [flex-lg="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-lg="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-lg="65"] {
- max-height: 65%; }
- [flex-lg="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-lg="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-lg="70"] {
- max-height: 70%; }
- [flex-lg="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-lg="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-lg="75"] {
- max-height: 75%; }
- [flex-lg="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-lg="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-lg="80"] {
- max-height: 80%; }
- [flex-lg="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-lg="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-lg="85"] {
- max-height: 85%; }
- [flex-lg="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-lg="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-lg="90"] {
- max-height: 90%; }
- [flex-lg="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-lg="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-lg="95"] {
- max-height: 95%; }
- [flex-lg="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-lg="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-lg="100"] {
- max-height: 100%; }
- [flex-lg="33"], [flex-lg="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-lg="66"], [flex-lg="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-lg="33"], [layout="row"] > [flex-lg="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-lg="66"], [layout="row"] > [flex-lg="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-lg="33"], [layout="column"] > [flex-lg="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-lg="66"], [layout="column"] > [flex-lg="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 1200px) {
- [hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide-gt-lg]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]) {
- display: none; }
- [flex-order-gt-lg="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-lg="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-lg="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-lg="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-lg="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-lg="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-lg="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-lg="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-lg="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-lg="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-lg="center"], [layout-align-gt-lg="center center"], [layout-align-gt-lg="center start"], [layout-align-gt-lg="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-lg="end"], [layout-align-gt-lg="end center"], [layout-align-gt-lg="end start"], [layout-align-gt-lg="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-lg="space-around"], [layout-align-gt-lg="space-around center"], [layout-align-gt-lg="space-around start"], [layout-align-gt-lg="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-lg="space-between"], [layout-align-gt-lg="space-between center"], [layout-align-gt-lg="space-between start"], [layout-align-gt-lg="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-lg="center center"], [layout-align-gt-lg="start center"], [layout-align-gt-lg="end center"], [layout-align-gt-lg="space-between center"], [layout-align-gt-lg="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-lg="center start"], [layout-align-gt-lg="start start"], [layout-align-gt-lg="end start"], [layout-align-gt-lg="space-between start"], [layout-align-gt-lg="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-lg="center end"], [layout-align-gt-lg="start end"], [layout-align-gt-lg="end end"], [layout-align-gt-lg="space-between end"], [layout-align-gt-lg="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-lg] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-lg=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-lg=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-lg="5"] {
- margin-left: 5%; }
- [offset-gt-lg="10"] {
- margin-left: 10%; }
- [offset-gt-lg="15"] {
- margin-left: 15%; }
- [offset-gt-lg="20"] {
- margin-left: 20%; }
- [offset-gt-lg="25"] {
- margin-left: 25%; }
- [offset-gt-lg="30"] {
- margin-left: 30%; }
- [offset-gt-lg="35"] {
- margin-left: 35%; }
- [offset-gt-lg="40"] {
- margin-left: 40%; }
- [offset-gt-lg="45"] {
- margin-left: 45%; }
- [offset-gt-lg="50"] {
- margin-left: 50%; }
- [offset-gt-lg="55"] {
- margin-left: 55%; }
- [offset-gt-lg="60"] {
- margin-left: 60%; }
- [offset-gt-lg="65"] {
- margin-left: 65%; }
- [offset-gt-lg="70"] {
- margin-left: 70%; }
- [offset-gt-lg="75"] {
- margin-left: 75%; }
- [offset-gt-lg="80"] {
- margin-left: 80%; }
- [offset-gt-lg="85"] {
- margin-left: 85%; }
- [offset-gt-lg="90"] {
- margin-left: 90%; }
- [offset-gt-lg="95"] {
- margin-left: 95%; }
- [offset-gt-lg="33"], [offset-gt-lg="34"] {
- margin-left: 33.33%; }
- [offset-gt-lg="66"], [offset-gt-lg="67"] {
- margin-left: 66.66%; }
- [flex-gt-lg] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-lg="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-lg="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-lg="0"] {
- max-height: 0%; }
- [flex-gt-lg="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-lg="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-lg="5"] {
- max-height: 5%; }
- [flex-gt-lg="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-lg="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-lg="10"] {
- max-height: 10%; }
- [flex-gt-lg="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-lg="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-lg="15"] {
- max-height: 15%; }
- [flex-gt-lg="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-lg="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-lg="20"] {
- max-height: 20%; }
- [flex-gt-lg="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-lg="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-lg="25"] {
- max-height: 25%; }
- [flex-gt-lg="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-lg="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-lg="30"] {
- max-height: 30%; }
- [flex-gt-lg="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-lg="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-lg="35"] {
- max-height: 35%; }
- [flex-gt-lg="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-lg="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-lg="40"] {
- max-height: 40%; }
- [flex-gt-lg="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-lg="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-lg="45"] {
- max-height: 45%; }
- [flex-gt-lg="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-lg="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-lg="50"] {
- max-height: 50%; }
- [flex-gt-lg="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-lg="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-lg="55"] {
- max-height: 55%; }
- [flex-gt-lg="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-lg="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-lg="60"] {
- max-height: 60%; }
- [flex-gt-lg="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-lg="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-lg="65"] {
- max-height: 65%; }
- [flex-gt-lg="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-lg="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-lg="70"] {
- max-height: 70%; }
- [flex-gt-lg="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-lg="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-lg="75"] {
- max-height: 75%; }
- [flex-gt-lg="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-lg="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-lg="80"] {
- max-height: 80%; }
- [flex-gt-lg="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-lg="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-lg="85"] {
- max-height: 85%; }
- [flex-gt-lg="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-lg="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-lg="90"] {
- max-height: 90%; }
- [flex-gt-lg="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-lg="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-lg="95"] {
- max-height: 95%; }
- [flex-gt-lg="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-lg="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-lg="100"] {
- max-height: 100%; }
- [flex-gt-lg="33"], [flex-gt-lg="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-lg="66"], [flex-gt-lg="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-lg="33"], [layout="row"] > [flex-gt-lg="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-lg="66"], [layout="row"] > [flex-gt-lg="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-lg="33"], [layout="column"] > [flex-gt-lg="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-lg="66"], [layout="column"] > [flex-gt-lg="67"] {
- max-height: 66.66%; } }
-
-/* mixin definition ; sets LTR and RTL within the same style call */
-/* mixin definition ; sets LTR and RTL within the same style call */
-/* mixin definition ; sets LTR and RTL within the same style call */
-html, body {
- height: 100%;
- color: rgba(0, 0, 0, 0.87);
- background: white;
- position: relative; }
-
-body {
- margin: 0;
- padding: 0; }
-
-[tabindex='-1']:focus {
- outline: none; }
-
-.inset {
- padding: 10px; }
-
-button.md-no-style {
- font-weight: normal;
- background-color: inherit;
- text-align: left;
- border: none;
- padding: 0;
- margin: 0; }
-
-select, button, textarea, input {
- vertical-align: baseline; }
-
-input[type="reset"], input[type="submit"], html input[type="button"], button {
- cursor: pointer;
- -webkit-appearance: button; }
- input[type="reset"][disabled], input[type="submit"][disabled], html input[type="button"][disabled], button[disabled] {
- cursor: default; }
-
-textarea {
- vertical-align: top;
- overflow: auto; }
-
-input[type="search"] {
- -webkit-appearance: textfield;
- box-sizing: content-box;
- -webkit-box-sizing: content-box; }
- input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button {
- -webkit-appearance: none; }
-
-.md-visually-hidden {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- text-transform: none;
- width: 1px; }
-
-.md-shadow {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- border-radius: inherit;
- pointer-events: none; }
-
-.md-shadow-bottom-z-1 {
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); }
-
-.md-shadow-bottom-z-2 {
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4); }
-
-.md-shadow-animated.md-shadow {
- transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
-
-/*
- * A container inside of a rippling element (eg a button),
- * which contains all of the individual ripples
- */
-.md-ripple-container {
- pointer-events: none;
- position: absolute;
- overflow: hidden;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- transition: all 0.55s cubic-bezier(0.25, 0.8, 0.25, 1); }
-
-.md-ripple {
- position: absolute;
- -webkit-transform: scale(0);
- transform: scale(0);
- -webkit-transform-origin: 50% 50%;
- transform-origin: 50% 50%;
- opacity: 0;
- border-radius: 50%; }
- .md-ripple.md-ripple-placed {
- transition: left 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), top 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), margin 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), border 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), height 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition: left 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), top 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), margin 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), border 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), height 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
- .md-ripple.md-ripple-scaled {
- -webkit-transform: scale(1);
- transform: scale(1); }
- .md-ripple.md-ripple-active, .md-ripple.md-ripple-full, .md-ripple.md-ripple-visible {
- opacity: 0.20; }
-
-.md-padding {
- padding: 8px; }
-
-.md-margin {
- margin: 8px; }
-
-.md-scroll-mask {
- position: absolute;
- background-color: transparent; }
- .md-scroll-mask > .md-scroll-mask-bar {
- display: block;
- position: absolute;
- background-color: #fafafa;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 65;
- box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.3); }
-
-@media (min-width: 600px) {
- .md-padding {
- padding: 16px; } }
-
-/* mixin definition ; sets LTR and RTL within the same style call */
-html, body {
- -webkit-tap-highlight-color: transparent;
- -webkit-touch-callout: none;
- -webkit-text-size-adjust: 100%;
- -webkit-font-smoothing: antialiased; }
-
-md-select, md-card, md-list, md-toolbar, ul, ol, p, h1, h2, h3, h4, h5, h6 {
- text-rendering: optimizeLegibility; }
-
-/************
- * Headings
- ************/
-.md-display-4 {
- font-size: 112px;
- font-weight: 300;
- letter-spacing: -0.01em;
- line-height: 112px; }
-
-.md-display-3 {
- font-size: 56px;
- font-weight: 400;
- letter-spacing: -0.005em;
- line-height: 56px; }
-
-.md-display-2 {
- font-size: 45px;
- font-weight: 400;
- line-height: 64px; }
-
-.md-display-1 {
- font-size: 34px;
- font-weight: 400;
- line-height: 40px; }
-
-.md-headline {
- font-size: 24px;
- font-weight: 400;
- line-height: 32px; }
-
-.md-title {
- font-size: 20px;
- font-weight: 500;
- letter-spacing: 0.005em; }
-
-.md-subhead {
- font-size: 16px;
- font-weight: 400;
- letter-spacing: 0.01em;
- line-height: 24px; }
-
-/************
- * Body Copy
- ************/
-.md-body-1 {
- font-size: 14px;
- font-weight: 400;
- letter-spacing: 0.01em;
- line-height: 20px; }
-
-.md-body-2 {
- font-size: 14px;
- font-weight: 500;
- letter-spacing: 0.01em;
- line-height: 24px; }
-
-.md-caption {
- font-size: 12px;
- letter-spacing: 0.02em; }
-
-.md-button {
- letter-spacing: 0.01em; }
-
-/************
- * Defaults
- ************/
-button, select, html, textarea, input {
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif; }
-
-select, button, textarea, input {
- font-size: 100%; }
-
-/* mixin definition ; sets LTR and RTL within the same style call */ \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/core.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/core.js
deleted file mode 100644
index 27c23d2c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/core.js
+++ /dev/null
@@ -1,3779 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.core');
-
-
-
-/**
- * Initialization function that validates environment
- * requirements.
- */
-angular
- .module('material.core', [ 'material.core.gestures', 'material.core.theming' ])
- .config( MdCoreConfigure );
-
-
-function MdCoreConfigure($provide, $mdThemingProvider) {
-
- $provide.decorator('$$rAF', ["$delegate", rAFDecorator]);
-
- $mdThemingProvider.theme('default')
- .primaryPalette('indigo')
- .accentPalette('pink')
- .warnPalette('red')
- .backgroundPalette('grey');
-}
-MdCoreConfigure.$inject = ["$provide", "$mdThemingProvider"];
-
-function rAFDecorator( $delegate ) {
- /**
- * Use this to throttle events that come in often.
- * The throttled function will always use the *last* invocation before the
- * coming frame.
- *
- * For example, window resize events that fire many times a second:
- * If we set to use an raf-throttled callback on window resize, then
- * our callback will only be fired once per frame, with the last resize
- * event that happened before that frame.
- *
- * @param {function} callback function to debounce
- */
- $delegate.throttle = function(cb) {
- var queueArgs, alreadyQueued, queueCb, context;
- return function debounced() {
- queueArgs = arguments;
- context = this;
- queueCb = cb;
- if (!alreadyQueued) {
- alreadyQueued = true;
- $delegate(function() {
- queueCb.apply(context, queueArgs);
- alreadyQueued = false;
- });
- }
- };
- };
- return $delegate;
-}
-
-angular.module('material.core')
-.factory('$mdConstant', MdConstantFactory);
-
-function MdConstantFactory($$rAF, $sniffer) {
-
- var webkit = /webkit/i.test($sniffer.vendorPrefix);
- function vendorProperty(name) {
- return webkit ? ('webkit' + name.charAt(0).toUpperCase() + name.substring(1)) : name;
- }
-
- return {
- KEY_CODE: {
- ENTER: 13,
- ESCAPE: 27,
- SPACE: 32,
- LEFT_ARROW : 37,
- UP_ARROW : 38,
- RIGHT_ARROW : 39,
- DOWN_ARROW : 40,
- TAB : 9,
- BACKSPACE: 8,
- DELETE: 46
- },
- CSS: {
- /* Constants */
- TRANSITIONEND: 'transitionend' + (webkit ? ' webkitTransitionEnd' : ''),
- ANIMATIONEND: 'animationend' + (webkit ? ' webkitAnimationEnd' : ''),
-
- TRANSFORM: vendorProperty('transform'),
- TRANSFORM_ORIGIN: vendorProperty('transformOrigin'),
- TRANSITION: vendorProperty('transition'),
- TRANSITION_DURATION: vendorProperty('transitionDuration'),
- ANIMATION_PLAY_STATE: vendorProperty('animationPlayState'),
- ANIMATION_DURATION: vendorProperty('animationDuration'),
- ANIMATION_NAME: vendorProperty('animationName'),
- ANIMATION_TIMING: vendorProperty('animationTimingFunction'),
- ANIMATION_DIRECTION: vendorProperty('animationDirection')
- },
- MEDIA: {
- 'sm': '(max-width: 600px)',
- 'gt-sm': '(min-width: 600px)',
- 'md': '(min-width: 600px) and (max-width: 960px)',
- 'gt-md': '(min-width: 960px)',
- 'lg': '(min-width: 960px) and (max-width: 1200px)',
- 'gt-lg': '(min-width: 1200px)'
- },
- MEDIA_PRIORITY: [
- 'gt-lg',
- 'lg',
- 'gt-md',
- 'md',
- 'gt-sm',
- 'sm'
- ]
- };
-}
-MdConstantFactory.$inject = ["$$rAF", "$sniffer"];
-
- angular
- .module('material.core')
- .config( ["$provide", function($provide){
- $provide.decorator('$mdUtil', ['$delegate', function ($delegate){
- /**
- * Inject the iterator facade to easily support iteration and accessors
- * @see iterator below
- */
- $delegate.iterator = MdIterator;
-
- return $delegate;
- }
- ]);
- }]);
-
- /**
- * iterator is a list facade to easily support iteration and accessors
- *
- * @param items Array list which this iterator will enumerate
- * @param reloop Boolean enables iterator to consider the list as an endless reloop
- */
- function MdIterator(items, reloop) {
- var trueFn = function() { return true; };
-
- if (items && !angular.isArray(items)) {
- items = Array.prototype.slice.call(items);
- }
-
- reloop = !!reloop;
- var _items = items || [ ];
-
- // Published API
- return {
- items: getItems,
- count: count,
-
- inRange: inRange,
- contains: contains,
- indexOf: indexOf,
- itemAt: itemAt,
-
- findBy: findBy,
-
- add: add,
- remove: remove,
-
- first: first,
- last: last,
- next: angular.bind(null, findSubsequentItem, false),
- previous: angular.bind(null, findSubsequentItem, true),
-
- hasPrevious: hasPrevious,
- hasNext: hasNext
-
- };
-
- /**
- * Publish copy of the enumerable set
- * @returns {Array|*}
- */
- function getItems() {
- return [].concat(_items);
- }
-
- /**
- * Determine length of the list
- * @returns {Array.length|*|number}
- */
- function count() {
- return _items.length;
- }
-
- /**
- * Is the index specified valid
- * @param index
- * @returns {Array.length|*|number|boolean}
- */
- function inRange(index) {
- return _items.length && ( index > -1 ) && (index < _items.length );
- }
-
- /**
- * Can the iterator proceed to the next item in the list; relative to
- * the specified item.
- *
- * @param item
- * @returns {Array.length|*|number|boolean}
- */
- function hasNext(item) {
- return item ? inRange(indexOf(item) + 1) : false;
- }
-
- /**
- * Can the iterator proceed to the previous item in the list; relative to
- * the specified item.
- *
- * @param item
- * @returns {Array.length|*|number|boolean}
- */
- function hasPrevious(item) {
- return item ? inRange(indexOf(item) - 1) : false;
- }
-
- /**
- * Get item at specified index/position
- * @param index
- * @returns {*}
- */
- function itemAt(index) {
- return inRange(index) ? _items[index] : null;
- }
-
- /**
- * Find all elements matching the key/value pair
- * otherwise return null
- *
- * @param val
- * @param key
- *
- * @return array
- */
- function findBy(key, val) {
- return _items.filter(function(item) {
- return item[key] === val;
- });
- }
-
- /**
- * Add item to list
- * @param item
- * @param index
- * @returns {*}
- */
- function add(item, index) {
- if ( !item ) return -1;
-
- if (!angular.isNumber(index)) {
- index = _items.length;
- }
-
- _items.splice(index, 0, item);
-
- return indexOf(item);
- }
-
- /**
- * Remove item from list...
- * @param item
- */
- function remove(item) {
- if ( contains(item) ){
- _items.splice(indexOf(item), 1);
- }
- }
-
- /**
- * Get the zero-based index of the target item
- * @param item
- * @returns {*}
- */
- function indexOf(item) {
- return _items.indexOf(item);
- }
-
- /**
- * Boolean existence check
- * @param item
- * @returns {boolean}
- */
- function contains(item) {
- return item && (indexOf(item) > -1);
- }
-
- /**
- * Return first item in the list
- * @returns {*}
- */
- function first() {
- return _items.length ? _items[0] : null;
- }
-
- /**
- * Return last item in the list...
- * @returns {*}
- */
- function last() {
- return _items.length ? _items[_items.length - 1] : null;
- }
-
- /**
- * Find the next item. If reloop is true and at the end of the list, it will go back to the
- * first item. If given, the `validate` callback will be used to determine whether the next item
- * is valid. If not valid, it will try to find the next item again.
- *
- * @param {boolean} backwards Specifies the direction of searching (forwards/backwards)
- * @param {*} item The item whose subsequent item we are looking for
- * @param {Function=} validate The `validate` function
- * @param {integer=} limit The recursion limit
- *
- * @returns {*} The subsequent item or null
- */
- function findSubsequentItem(backwards, item, validate, limit) {
- validate = validate || trueFn;
-
- var curIndex = indexOf(item);
- while (true) {
- if (!inRange(curIndex)) return null;
-
- var nextIndex = curIndex + (backwards ? -1 : 1);
- var foundItem = null;
- if (inRange(nextIndex)) {
- foundItem = _items[nextIndex];
- } else if (reloop) {
- foundItem = backwards ? last() : first();
- nextIndex = indexOf(foundItem);
- }
-
- if ((foundItem === null) || (nextIndex === limit)) return null;
- if (validate(foundItem)) return foundItem;
-
- if (angular.isUndefined(limit)) limit = nextIndex;
-
- curIndex = nextIndex;
- }
- }
- }
-
-
-angular.module('material.core')
-.factory('$mdMedia', mdMediaFactory);
-
-/**
- * @ngdoc service
- * @name $mdMedia
- * @module material.core
- *
- * @description
- * `$mdMedia` is used to evaluate whether a given media query is true or false given the
- * current device's screen / window size. The media query will be re-evaluated on resize, allowing
- * you to register a watch.
- *
- * `$mdMedia` also has pre-programmed support for media queries that match the layout breakpoints.
- * (`sm`, `gt-sm`, `md`, `gt-md`, `lg`, `gt-lg`).
- *
- * @returns {boolean} a boolean representing whether or not the given media query is true or false.
- *
- * @usage
- * <hljs lang="js">
- * app.controller('MyController', function($mdMedia, $scope) {
- * $scope.$watch(function() { return $mdMedia('lg'); }, function(big) {
- * $scope.bigScreen = big;
- * });
- *
- * $scope.screenIsSmall = $mdMedia('sm');
- * $scope.customQuery = $mdMedia('(min-width: 1234px)');
- * $scope.anotherCustom = $mdMedia('max-width: 300px');
- * });
- * </hljs>
- */
-
-function mdMediaFactory($mdConstant, $rootScope, $window) {
- var queries = {};
- var mqls = {};
- var results = {};
- var normalizeCache = {};
-
- $mdMedia.getResponsiveAttribute = getResponsiveAttribute;
- $mdMedia.getQuery = getQuery;
- $mdMedia.watchResponsiveAttributes = watchResponsiveAttributes;
-
- return $mdMedia;
-
- function $mdMedia(query) {
- var validated = queries[query];
- if (angular.isUndefined(validated)) {
- validated = queries[query] = validate(query);
- }
-
- var result = results[validated];
- if (angular.isUndefined(result)) {
- result = add(validated);
- }
-
- return result;
- }
-
- function validate(query) {
- return $mdConstant.MEDIA[query] ||
- ((query.charAt(0) !== '(') ? ('(' + query + ')') : query);
- }
-
- function add(query) {
- var result = mqls[query] = $window.matchMedia(query);
- result.addListener(onQueryChange);
- return (results[result.media] = !!result.matches);
- }
-
- function onQueryChange(query) {
- $rootScope.$evalAsync(function() {
- results[query.media] = !!query.matches;
- });
- }
-
- function getQuery(name) {
- return mqls[name];
- }
-
- function getResponsiveAttribute(attrs, attrName) {
- for (var i = 0; i < $mdConstant.MEDIA_PRIORITY.length; i++) {
- var mediaName = $mdConstant.MEDIA_PRIORITY[i];
- if (!mqls[queries[mediaName]].matches) {
- continue;
- }
-
- var normalizedName = getNormalizedName(attrs, attrName + '-' + mediaName);
- if (attrs[normalizedName]) {
- return attrs[normalizedName];
- }
- }
-
- // fallback on unprefixed
- return attrs[getNormalizedName(attrs, attrName)];
- }
-
- function watchResponsiveAttributes(attrNames, attrs, watchFn) {
- var unwatchFns = [];
- attrNames.forEach(function(attrName) {
- var normalizedName = getNormalizedName(attrs, attrName);
- if (attrs[normalizedName]) {
- unwatchFns.push(
- attrs.$observe(normalizedName, angular.bind(void 0, watchFn, null)));
- }
-
- for (var mediaName in $mdConstant.MEDIA) {
- normalizedName = getNormalizedName(attrs, attrName + '-' + mediaName);
- if (!attrs[normalizedName]) {
- return;
- }
-
- unwatchFns.push(attrs.$observe(normalizedName, angular.bind(void 0, watchFn, mediaName)));
- }
- });
-
- return function unwatch() {
- unwatchFns.forEach(function(fn) { fn(); })
- };
- }
-
- // Improves performance dramatically
- function getNormalizedName(attrs, attrName) {
- return normalizeCache[attrName] ||
- (normalizeCache[attrName] = attrs.$normalize(attrName));
- }
-}
-mdMediaFactory.$inject = ["$mdConstant", "$rootScope", "$window"];
-
-/*
- * This var has to be outside the angular factory, otherwise when
- * there are multiple material apps on the same page, each app
- * will create its own instance of this array and the app's IDs
- * will not be unique.
- */
-var nextUniqueId = 0;
-
-angular.module('material.core')
-.factory('$mdUtil', ["$cacheFactory", "$document", "$timeout", "$q", "$window", "$mdConstant", function($cacheFactory, $document, $timeout, $q, $window, $mdConstant) {
- var Util;
-
- function getNode(el) {
- return el[0] || el;
- }
-
- return Util = {
- now: window.performance ?
- angular.bind(window.performance, window.performance.now) :
- Date.now,
-
- clientRect: function(element, offsetParent, isOffsetRect) {
- var node = getNode(element);
- offsetParent = getNode(offsetParent || node.offsetParent || document.body);
- var nodeRect = node.getBoundingClientRect();
-
- // The user can ask for an offsetRect: a rect relative to the offsetParent,
- // or a clientRect: a rect relative to the page
- var offsetRect = isOffsetRect ?
- offsetParent.getBoundingClientRect() :
- { left: 0, top: 0, width: 0, height: 0 };
- return {
- left: nodeRect.left - offsetRect.left,
- top: nodeRect.top - offsetRect.top,
- width: nodeRect.width,
- height: nodeRect.height
- };
- },
- offsetRect: function(element, offsetParent) {
- return Util.clientRect(element, offsetParent, true);
- },
- // Disables scroll around the passed element. Goes up the DOM to find a
- // disableTarget (a md-content that is scrolling, or the body as a fallback)
- // and uses CSS/JS to prevent it from scrolling
- disableScrollAround: function(element) {
- element = element instanceof angular.element ? element[0] : element;
- var parentEl = element;
- var disableTarget;
-
- // Find the highest level scrolling md-content
- while (parentEl = this.getClosest(parentEl, 'MD-CONTENT', true)) {
- if (isScrolling(parentEl)) {
- disableTarget = angular.element(parentEl)[0];
- }
- }
-
- // Default to the body if no scrolling md-content
- if (!disableTarget) {
- disableTarget = $document[0].body;
- if (!isScrolling(disableTarget)) return angular.noop;
- }
-
- if (disableTarget.nodeName == 'BODY') {
- return disableBodyScroll();
- } else {
- return disableElementScroll();
- }
-
- // Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
- function disableElementScroll() {
- var scrollMask = angular.element('<div class="md-scroll-mask"><div class="md-scroll-mask-bar"></div></div>');
- var computedStyle = $window.getComputedStyle(disableTarget);
- var disableRect = disableTarget.getBoundingClientRect();
- var scrollWidth = disableRect.width - disableTarget.clientWidth;
- applyStyles(scrollMask[0], {
- zIndex: computedStyle.zIndex == 'auto' ? 2 : computedStyle.zIndex + 1,
- width: disableRect.width + 'px',
- height: disableRect.height + 'px',
- top: disableRect.top + 'px',
- left: disableRect.left + 'px'
- });
- scrollMask[0].firstElementChild.style.width = scrollWidth + 'px';
- $document[0].body.appendChild(scrollMask[0]);
-
- scrollMask.on('wheel', preventDefault);
- scrollMask.on('touchmove', preventDefault);
- $document.on('keydown', disableKeyNav);
-
- return function restoreScroll() {
- scrollMask.off('wheel');
- scrollMask.off('touchmove');
- scrollMask[0].parentNode.removeChild(scrollMask[0]);
- $document.off('keydown', disableKeyNav);
- };
-
- // Prevent keypresses from elements inside the disableTarget
- // used to stop the keypresses that could cause the page to scroll
- // (arrow keys, spacebar, tab, etc).
- function disableKeyNav(e) {
- if (disableTarget.contains(e.target)) {
- e.preventDefault();
- e.stopImmediatePropagation();
- }
- }
-
- function preventDefault(e) {
- e.preventDefault();
- }
- }
-
- // Converts the disableTarget (body) to a position fixed block and translate it to the propper scroll position
- function disableBodyScroll() {
- var restoreStyle = disableTarget.getAttribute('style') || '';
- var scrollOffset = disableTarget.scrollTop;
-
- applyStyles(disableTarget, {
- position: 'fixed',
- width: '100%',
- overflowY: 'scroll',
- top: -scrollOffset + 'px'
- });
-
- return function restoreScroll() {
- disableTarget.setAttribute('style', restoreStyle);
- disableTarget.scrollTop = scrollOffset;
- };
- }
-
- function applyStyles (el, styles) {
- for (var key in styles) {
- el.style[key] = styles[key];
- }
- }
-
- function isScrolling(el) {
- if (el instanceof angular.element) el = el[0];
- return el.scrollHeight > el.offsetHeight;
- }
- },
-
- floatingScrollbars: function() {
- if (this.floatingScrollbars.cached === undefined) {
- var tempNode = angular.element('<div style="width: 100%; z-index: -1; position: absolute; height: 35px; overflow-y: scroll"><div style="height: 60;"></div></div>');
- $document[0].body.appendChild(tempNode[0]);
- this.floatingScrollbars.cached = (tempNode[0].offsetWidth == tempNode[0].childNodes[0].offsetWidth);
- tempNode.remove();
- }
- return this.floatingScrollbars.cached;
- },
-
- // Mobile safari only allows you to set focus in click event listeners...
- forceFocus: function(element) {
- var node = element[0] || element;
-
- document.addEventListener('click', function focusOnClick(ev) {
- if (ev.target === node && ev.$focus) {
- node.focus();
- ev.stopImmediatePropagation();
- ev.preventDefault();
- node.removeEventListener('click', focusOnClick);
- }
- }, true);
-
- var newEvent = document.createEvent('MouseEvents');
- newEvent.initMouseEvent('click', false, true, window, {}, 0, 0, 0, 0,
- false, false, false, false, 0, null);
- newEvent.$material = true;
- newEvent.$focus = true;
- node.dispatchEvent(newEvent);
- },
-
- transitionEndPromise: function(element, opts) {
- opts = opts || {};
- var deferred = $q.defer();
- element.on($mdConstant.CSS.TRANSITIONEND, finished);
- function finished(ev) {
- // Make sure this transitionend didn't bubble up from a child
- if (!ev || ev.target === element[0]) {
- element.off($mdConstant.CSS.TRANSITIONEND, finished);
- deferred.resolve();
- }
- }
- if (opts.timeout) $timeout(finished, opts.timeout);
- return deferred.promise;
- },
-
- fakeNgModel: function() {
- return {
- $fake: true,
- $setTouched: angular.noop,
- $setViewValue: function(value) {
- this.$viewValue = value;
- this.$render(value);
- this.$viewChangeListeners.forEach(function(cb) { cb(); });
- },
- $isEmpty: function(value) {
- return ('' + value).length === 0;
- },
- $parsers: [],
- $formatters: [],
- $viewChangeListeners: [],
- $render: angular.noop
- };
- },
-
- // Returns a function, that, as long as it continues to be invoked, will not
- // be triggered. The function will be called after it stops being called for
- // N milliseconds.
- // @param wait Integer value of msecs to delay (since last debounce reset); default value 10 msecs
- // @param invokeApply should the $timeout trigger $digest() dirty checking
- debounce: function (func, wait, scope, invokeApply) {
- var timer;
-
- return function debounced() {
- var context = scope,
- args = Array.prototype.slice.call(arguments);
-
- $timeout.cancel(timer);
- timer = $timeout(function() {
-
- timer = undefined;
- func.apply(context, args);
-
- }, wait || 10, invokeApply );
- };
- },
-
- // Returns a function that can only be triggered every `delay` milliseconds.
- // In other words, the function will not be called unless it has been more
- // than `delay` milliseconds since the last call.
- throttle: function throttle(func, delay) {
- var recent;
- return function throttled() {
- var context = this;
- var args = arguments;
- var now = Util.now();
-
- if (!recent || (now - recent > delay)) {
- func.apply(context, args);
- recent = now;
- }
- };
- },
-
- /**
- * Measures the number of milliseconds taken to run the provided callback
- * function. Uses a high-precision timer if available.
- */
- time: function time(cb) {
- var start = Util.now();
- cb();
- return Util.now() - start;
- },
-
- /**
- * Get a unique ID.
- *
- * @returns {string} an unique numeric string
- */
- nextUid: function() {
- return '' + nextUniqueId++;
- },
-
- // Stop watchers and events from firing on a scope without destroying it,
- // by disconnecting it from its parent and its siblings' linked lists.
- disconnectScope: function disconnectScope(scope) {
- if (!scope) return;
-
- // we can't destroy the root scope or a scope that has been already destroyed
- if (scope.$root === scope) return;
- if (scope.$$destroyed ) return;
-
- var parent = scope.$parent;
- scope.$$disconnected = true;
-
- // See Scope.$destroy
- if (parent.$$childHead === scope) parent.$$childHead = scope.$$nextSibling;
- if (parent.$$childTail === scope) parent.$$childTail = scope.$$prevSibling;
- if (scope.$$prevSibling) scope.$$prevSibling.$$nextSibling = scope.$$nextSibling;
- if (scope.$$nextSibling) scope.$$nextSibling.$$prevSibling = scope.$$prevSibling;
-
- scope.$$nextSibling = scope.$$prevSibling = null;
-
- },
-
- // Undo the effects of disconnectScope above.
- reconnectScope: function reconnectScope(scope) {
- if (!scope) return;
-
- // we can't disconnect the root node or scope already disconnected
- if (scope.$root === scope) return;
- if (!scope.$$disconnected) return;
-
- var child = scope;
-
- var parent = child.$parent;
- child.$$disconnected = false;
- // See Scope.$new for this logic...
- child.$$prevSibling = parent.$$childTail;
- if (parent.$$childHead) {
- parent.$$childTail.$$nextSibling = child;
- parent.$$childTail = child;
- } else {
- parent.$$childHead = parent.$$childTail = child;
- }
- },
-
- /*
- * getClosest replicates jQuery.closest() to walk up the DOM tree until it finds a matching nodeName
- *
- * @param el Element to start walking the DOM from
- * @param tagName Tag name to find closest to el, such as 'form'
- */
- getClosest: function getClosest(el, tagName, onlyParent) {
- if (el instanceof angular.element) el = el[0];
- tagName = tagName.toUpperCase();
- if (onlyParent) el = el.parentNode;
- if (!el) return null;
- do {
- if (el.nodeName === tagName) {
- return el;
- }
- } while (el = el.parentNode);
- return null;
- },
-
- /**
- * Functional equivalent for $element.filter(‘md-bottom-sheet’)
- * useful with interimElements where the element and its container are important...
- */
- extractElementByName: function (element, nodeName) {
- for (var i = 0, len = element.length; i < len; i++) {
- if (element[i].nodeName.toLowerCase() === nodeName){
- return angular.element(element[i]);
- }
- }
- return element;
- },
-
- /**
- * Give optional properties with no value a boolean true by default
- */
- initOptionalProperties: function (scope, attr, defaults ) {
- defaults = defaults || { };
- angular.forEach(scope.$$isolateBindings, function (binding, key) {
- if (binding.optional && angular.isUndefined(scope[key])) {
- var hasKey = attr.hasOwnProperty(attr.$normalize(binding.attrName));
-
- scope[key] = angular.isDefined(defaults[key]) ? defaults[key] : hasKey;
- }
- });
- }
-
- };
-
-}]);
-
-/*
- * Since removing jQuery from the demos, some code that uses `element.focus()` is broken.
- *
- * We need to add `element.focus()`, because it's testable unlike `element[0].focus`.
- *
- * TODO(ajoslin): This should be added in a better place later.
- */
-
-angular.element.prototype.focus = angular.element.prototype.focus || function() {
- if (this.length) {
- this[0].focus();
- }
- return this;
-};
-angular.element.prototype.blur = angular.element.prototype.blur || function() {
- if (this.length) {
- this[0].blur();
- }
- return this;
-};
-
-
-angular.module('material.core')
- .service('$mdAria', AriaService);
-
-/*
- * ngInject
- */
-function AriaService($$rAF, $log, $window) {
-
- return {
- expect: expect,
- expectAsync: expectAsync,
- expectWithText: expectWithText
- };
-
- /**
- * Check if expected attribute has been specified on the target element or child
- * @param element
- * @param attrName
- * @param {optional} defaultValue What to set the attr to if no value is found
- */
- function expect(element, attrName, defaultValue) {
- var node = element[0] || element;
-
- // if node exists and neither it nor its children have the attribute
- if (node &&
- ((!node.hasAttribute(attrName) ||
- node.getAttribute(attrName).length === 0) &&
- !childHasAttribute(node, attrName))) {
-
- defaultValue = angular.isString(defaultValue) ? defaultValue.trim() : '';
- if (defaultValue.length) {
- element.attr(attrName, defaultValue);
- } else {
- $log.warn('ARIA: Attribute "', attrName, '", required for accessibility, is missing on node:', node);
- }
-
- }
- }
-
- function expectAsync(element, attrName, defaultValueGetter) {
- // Problem: when retrieving the element's contents synchronously to find the label,
- // the text may not be defined yet in the case of a binding.
- // There is a higher chance that a binding will be defined if we wait one frame.
- $$rAF(function() {
- expect(element, attrName, defaultValueGetter());
- });
- }
-
- function expectWithText(element, attrName) {
- expectAsync(element, attrName, function() {
- return getText(element);
- });
- }
-
- function getText(element) {
- return element.text().trim();
- }
-
- function childHasAttribute(node, attrName) {
- var hasChildren = node.hasChildNodes(),
- hasAttr = false;
-
- function isHidden(el) {
- var style = el.currentStyle ? el.currentStyle : $window.getComputedStyle(el);
- return (style.display === 'none');
- }
-
- if(hasChildren) {
- var children = node.childNodes;
- for(var i=0; i<children.length; i++){
- var child = children[i];
- if(child.nodeType === 1 && child.hasAttribute(attrName)) {
- if(!isHidden(child)){
- hasAttr = true;
- }
- }
- }
- }
- return hasAttr;
- }
-}
-AriaService.$inject = ["$$rAF", "$log", "$window"];
-
-angular.module('material.core')
- .service('$mdCompiler', mdCompilerService);
-
-function mdCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
- /* jshint validthis: true */
-
- /*
- * @ngdoc service
- * @name $mdCompiler
- * @module material.core
- * @description
- * The $mdCompiler service is an abstraction of angular's compiler, that allows the developer
- * to easily compile an element with a templateUrl, controller, and locals.
- *
- * @usage
- * <hljs lang="js">
- * $mdCompiler.compile({
- * templateUrl: 'modal.html',
- * controller: 'ModalCtrl',
- * locals: {
- * modal: myModalInstance;
- * }
- * }).then(function(compileData) {
- * compileData.element; // modal.html's template in an element
- * compileData.link(myScope); //attach controller & scope to element
- * });
- * </hljs>
- */
-
- /*
- * @ngdoc method
- * @name $mdCompiler#compile
- * @description A helper to compile an HTML template/templateUrl with a given controller,
- * locals, and scope.
- * @param {object} options An options object, with the following properties:
- *
- * - `controller` - `{(string=|function()=}` Controller fn that should be associated with
- * newly created scope or the name of a registered controller if passed as a string.
- * - `controllerAs` - `{string=}` A controller alias name. If present the controller will be
- * published to scope under the `controllerAs` name.
- * - `template` - `{string=}` An html template as a string.
- * - `templateUrl` - `{string=}` A path to an html template.
- * - `transformTemplate` - `{function(template)=}` A function which transforms the template after
- * it is loaded. It will be given the template string as a parameter, and should
- * return a a new string representing the transformed template.
- * - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should
- * be injected into the controller. If any of these dependencies are promises, the compiler
- * will wait for them all to be resolved, or if one is rejected before the controller is
- * instantiated `compile()` will fail..
- * * `key` - `{string}`: a name of a dependency to be injected into the controller.
- * * `factory` - `{string|function}`: If `string` then it is an alias for a service.
- * Otherwise if function, then it is injected and the return value is treated as the
- * dependency. If the result is a promise, it is resolved before its value is
- * injected into the controller.
- *
- * @returns {object=} promise A promise, which will be resolved with a `compileData` object.
- * `compileData` has the following properties:
- *
- * - `element` - `{element}`: an uncompiled element matching the provided template.
- * - `link` - `{function(scope)}`: A link function, which, when called, will compile
- * the element and instantiate the provided controller (if given).
- * - `locals` - `{object}`: The locals which will be passed into the controller once `link` is
- * called. If `bindToController` is true, they will be coppied to the ctrl instead
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in.
- */
- this.compile = function(options) {
- var templateUrl = options.templateUrl;
- var template = options.template || '';
- var controller = options.controller;
- var controllerAs = options.controllerAs;
- var resolve = options.resolve || {};
- var locals = options.locals || {};
- var transformTemplate = options.transformTemplate || angular.identity;
- var bindToController = options.bindToController;
-
- // Take resolve values and invoke them.
- // Resolves can either be a string (value: 'MyRegisteredAngularConst'),
- // or an invokable 'factory' of sorts: (value: function ValueGetter($dependency) {})
- angular.forEach(resolve, function(value, key) {
- if (angular.isString(value)) {
- resolve[key] = $injector.get(value);
- } else {
- resolve[key] = $injector.invoke(value);
- }
- });
- //Add the locals, which are just straight values to inject
- //eg locals: { three: 3 }, will inject three into the controller
- angular.extend(resolve, locals);
-
- if (templateUrl) {
- resolve.$template = $http.get(templateUrl, {cache: $templateCache})
- .then(function(response) {
- return response.data;
- });
- } else {
- resolve.$template = $q.when(template);
- }
-
- // Wait for all the resolves to finish if they are promises
- return $q.all(resolve).then(function(locals) {
-
- var template = transformTemplate(locals.$template);
- var element = options.element || angular.element('<div>').html(template.trim()).contents();
- var linkFn = $compile(element);
-
- //Return a linking function that can be used later when the element is ready
- return {
- locals: locals,
- element: element,
- link: function link(scope) {
- locals.$scope = scope;
-
- //Instantiate controller if it exists, because we have scope
- if (controller) {
- var invokeCtrl = $controller(controller, locals, true);
- if (bindToController) {
- angular.extend(invokeCtrl.instance, locals);
- }
- var ctrl = invokeCtrl();
- //See angular-route source for this logic
- element.data('$ngControllerController', ctrl);
- element.children().data('$ngControllerController', ctrl);
-
- if (controllerAs) {
- scope[controllerAs] = ctrl;
- }
- }
- return linkFn(scope);
- }
- };
- });
-
- };
-}
-mdCompilerService.$inject = ["$q", "$http", "$injector", "$compile", "$controller", "$templateCache"];
-
-angular.module('material.core')
- .provider('$$interimElement', InterimElementProvider);
-
-/*
- * @ngdoc service
- * @name $$interimElement
- * @module material.core
- *
- * @description
- *
- * Factory that contructs `$$interimElement.$service` services.
- * Used internally in material design for elements that appear on screen temporarily.
- * The service provides a promise-like API for interacting with the temporary
- * elements.
- *
- * ```js
- * app.service('$mdToast', function($$interimElement) {
- * var $mdToast = $$interimElement(toastDefaultOptions);
- * return $mdToast;
- * });
- * ```
- * @param {object=} defaultOptions Options used by default for the `show` method on the service.
- *
- * @returns {$$interimElement.$service}
- *
- */
-
-function InterimElementProvider() {
- createInterimElementProvider.$get = InterimElementFactory;
- InterimElementFactory.$inject = ["$document", "$q", "$rootScope", "$timeout", "$rootElement", "$animate", "$interpolate", "$mdCompiler", "$mdTheming"];
- return createInterimElementProvider;
-
- /**
- * Returns a new provider which allows configuration of a new interimElement
- * service. Allows configuration of default options & methods for options,
- * as well as configuration of 'preset' methods (eg dialog.basic(): basic is a preset method)
- */
- function createInterimElementProvider(interimFactoryName) {
- var EXPOSED_METHODS = ['onHide', 'onShow', 'onRemove'];
-
- var customMethods = {};
- var providerConfig = {
- presets: {}
- };
-
- var provider = {
- setDefaults: setDefaults,
- addPreset: addPreset,
- addMethod: addMethod,
- $get: factory
- };
-
- /**
- * all interim elements will come with the 'build' preset
- */
- provider.addPreset('build', {
- methods: ['controller', 'controllerAs', 'resolve',
- 'template', 'templateUrl', 'themable', 'transformTemplate', 'parent']
- });
-
- factory.$inject = ["$$interimElement", "$animate", "$injector"];
- return provider;
-
- /**
- * Save the configured defaults to be used when the factory is instantiated
- */
- function setDefaults(definition) {
- providerConfig.optionsFactory = definition.options;
- providerConfig.methods = (definition.methods || []).concat(EXPOSED_METHODS);
- return provider;
- }
-
- /**
- * Add a method to the factory that isn't specific to any interim element operations
- */
-
- function addMethod(name, fn) {
- customMethods[name] = fn;
- return provider;
- }
-
- /**
- * Save the configured preset to be used when the factory is instantiated
- */
- function addPreset(name, definition) {
- definition = definition || {};
- definition.methods = definition.methods || [];
- definition.options = definition.options || function() { return {}; };
-
- if (/^cancel|hide|show$/.test(name)) {
- throw new Error("Preset '" + name + "' in " + interimFactoryName + " is reserved!");
- }
- if (definition.methods.indexOf('_options') > -1) {
- throw new Error("Method '_options' in " + interimFactoryName + " is reserved!");
- }
- providerConfig.presets[name] = {
- methods: definition.methods.concat(EXPOSED_METHODS),
- optionsFactory: definition.options,
- argOption: definition.argOption
- };
- return provider;
- }
-
- /**
- * Create a factory that has the given methods & defaults implementing interimElement
- */
- /* ngInject */
- function factory($$interimElement, $animate, $injector) {
- var defaultMethods;
- var defaultOptions;
- var interimElementService = $$interimElement();
-
- /*
- * publicService is what the developer will be using.
- * It has methods hide(), cancel(), show(), build(), and any other
- * presets which were set during the config phase.
- */
- var publicService = {
- hide: interimElementService.hide,
- cancel: interimElementService.cancel,
- show: showInterimElement
- };
-
- defaultMethods = providerConfig.methods || [];
- // This must be invoked after the publicService is initialized
- defaultOptions = invokeFactory(providerConfig.optionsFactory, {});
-
- // Copy over the simple custom methods
- angular.forEach(customMethods, function(fn, name) {
- publicService[name] = fn;
- });
-
- angular.forEach(providerConfig.presets, function(definition, name) {
- var presetDefaults = invokeFactory(definition.optionsFactory, {});
- var presetMethods = (definition.methods || []).concat(defaultMethods);
-
- // Every interimElement built with a preset has a field called `$type`,
- // which matches the name of the preset.
- // Eg in preset 'confirm', options.$type === 'confirm'
- angular.extend(presetDefaults, { $type: name });
-
- // This creates a preset class which has setter methods for every
- // method given in the `.addPreset()` function, as well as every
- // method given in the `.setDefaults()` function.
- //
- // @example
- // .setDefaults({
- // methods: ['hasBackdrop', 'clickOutsideToClose', 'escapeToClose', 'targetEvent'],
- // options: dialogDefaultOptions
- // })
- // .addPreset('alert', {
- // methods: ['title', 'ok'],
- // options: alertDialogOptions
- // })
- //
- // Set values will be passed to the options when interimElemnt.show() is called.
- function Preset(opts) {
- this._options = angular.extend({}, presetDefaults, opts);
- }
- angular.forEach(presetMethods, function(name) {
- Preset.prototype[name] = function(value) {
- this._options[name] = value;
- return this;
- };
- });
-
- // Create shortcut method for one-linear methods
- if (definition.argOption) {
- var methodName = 'show' + name.charAt(0).toUpperCase() + name.slice(1);
- publicService[methodName] = function(arg) {
- var config = publicService[name](arg);
- return publicService.show(config);
- };
- }
-
- // eg $mdDialog.alert() will return a new alert preset
- publicService[name] = function(arg) {
- // If argOption is supplied, eg `argOption: 'content'`, then we assume
- // if the argument is not an options object then it is the `argOption` option.
- //
- // @example `$mdToast.simple('hello')` // sets options.content to hello
- // // because argOption === 'content'
- if (arguments.length && definition.argOption && !angular.isObject(arg) &&
- !angular.isArray(arg)) {
- return (new Preset())[definition.argOption](arg);
- } else {
- return new Preset(arg);
- }
-
- };
- });
-
- return publicService;
-
- function showInterimElement(opts) {
- // opts is either a preset which stores its options on an _options field,
- // or just an object made up of options
- if (opts && opts._options) opts = opts._options;
- return interimElementService.show(
- angular.extend({}, defaultOptions, opts)
- );
- }
-
- /**
- * Helper to call $injector.invoke with a local of the factory name for
- * this provider.
- * If an $mdDialog is providing options for a dialog and tries to inject
- * $mdDialog, a circular dependency error will happen.
- * We get around that by manually injecting $mdDialog as a local.
- */
- function invokeFactory(factory, defaultVal) {
- var locals = {};
- locals[interimFactoryName] = publicService;
- return $injector.invoke(factory || function() { return defaultVal; }, {}, locals);
- }
-
- }
-
- }
-
- /* ngInject */
- function InterimElementFactory($document, $q, $rootScope, $timeout, $rootElement, $animate,
- $interpolate, $mdCompiler, $mdTheming ) {
- var startSymbol = $interpolate.startSymbol(),
- endSymbol = $interpolate.endSymbol(),
- usesStandardSymbols = ((startSymbol === '{{') && (endSymbol === '}}')),
- processTemplate = usesStandardSymbols ? angular.identity : replaceInterpolationSymbols;
-
- return function createInterimElementService() {
- /*
- * @ngdoc service
- * @name $$interimElement.$service
- *
- * @description
- * A service used to control inserting and removing an element into the DOM.
- *
- */
- var stack = [];
- var service;
- return service = {
- show: show,
- hide: hide,
- cancel: cancel
- };
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#show
- * @kind function
- *
- * @description
- * Adds the `$interimElement` to the DOM and returns a promise that will be resolved or rejected
- * with hide or cancel, respectively.
- *
- * @param {*} options is hashMap of settings
- * @returns a Promise
- *
- */
- function show(options) {
- if (stack.length) {
- return service.cancel().then(function() {
- return show(options);
- });
- } else {
- var interimElement = new InterimElement(options);
- stack.push(interimElement);
- return interimElement.show().then(function() {
- return interimElement.deferred.promise;
- });
- }
- }
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#hide
- * @kind function
- *
- * @description
- * Removes the `$interimElement` from the DOM and resolves the promise returned from `show`
- *
- * @param {*} resolveParam Data to resolve the promise with
- * @returns a Promise that will be resolved after the element has been removed.
- *
- */
- function hide(response) {
- var interimElement = stack.shift();
- return interimElement && interimElement.remove().then(function() {
- interimElement.deferred.resolve(response);
- });
- }
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#cancel
- * @kind function
- *
- * @description
- * Removes the `$interimElement` from the DOM and rejects the promise returned from `show`
- *
- * @param {*} reason Data to reject the promise with
- * @returns Promise that will be resolved after the element has been removed.
- *
- */
- function cancel(reason) {
- var interimElement = stack.shift();
- return $q.when(interimElement && interimElement.remove().then(function() {
- interimElement.deferred.reject(reason);
- }));
- }
-
-
- /*
- * Internal Interim Element Object
- * Used internally to manage the DOM element and related data
- */
- function InterimElement(options) {
- var self;
- var hideTimeout, element, showDone, removeDone;
-
- options = options || {};
- options = angular.extend({
- preserveScope: false,
- scope: options.scope || $rootScope.$new(options.isolateScope),
- onShow: function(scope, element, options) {
- return $animate.enter(element, options.parent);
- },
- onRemove: function(scope, element, options) {
- // Element could be undefined if a new element is shown before
- // the old one finishes compiling.
- return element && $animate.leave(element) || $q.when();
- }
- }, options);
-
- if (options.template) {
- options.template = processTemplate(options.template);
- }
-
- return self = {
- options: options,
- deferred: $q.defer(),
- show: function() {
- var compilePromise;
- if (options.skipCompile) {
- compilePromise = $q(function(resolve) {
- resolve({
- locals: {},
- link: function() { return options.element; }
- });
- });
- } else {
- compilePromise = $mdCompiler.compile(options);
- }
-
- return showDone = compilePromise.then(function(compileData) {
- angular.extend(compileData.locals, self.options);
-
- element = compileData.link(options.scope);
-
- // Search for parent at insertion time, if not specified
- if (angular.isFunction(options.parent)) {
- options.parent = options.parent(options.scope, element, options);
- } else if (angular.isString(options.parent)) {
- options.parent = angular.element($document[0].querySelector(options.parent));
- }
-
- // If parent querySelector/getter function fails, or it's just null,
- // find a default.
- if (!(options.parent || {}).length) {
- var el;
- if ($rootElement[0] && $rootElement[0].querySelector) {
- el = $rootElement[0].querySelector(':not(svg) > body');
- }
- if (!el) el = $rootElement[0];
- if (el.nodeName == '#comment') {
- el = $document[0].body;
- }
- options.parent = angular.element(el);
- }
-
- if (options.themable) $mdTheming(element);
- var ret = options.onShow(options.scope, element, options);
- return $q.when(ret)
- .then(function(){
- // Issue onComplete callback when the `show()` finishes
- (options.onComplete || angular.noop)(options.scope, element, options);
- startHideTimeout();
- });
-
- function startHideTimeout() {
- if (options.hideDelay) {
- hideTimeout = $timeout(service.cancel, options.hideDelay) ;
- }
- }
- }, function(reason) { showDone = true; self.deferred.reject(reason); });
- },
- cancelTimeout: function() {
- if (hideTimeout) {
- $timeout.cancel(hideTimeout);
- hideTimeout = undefined;
- }
- },
- remove: function() {
- self.cancelTimeout();
- return removeDone = $q.when(showDone).then(function() {
- var ret = element ? options.onRemove(options.scope, element, options) : true;
- return $q.when(ret).then(function() {
- if (!options.preserveScope) options.scope.$destroy();
- removeDone = true;
- });
- });
- }
- };
- }
- };
-
- /*
- * Replace `{{` and `}}` in a string (usually a template) with the actual start-/endSymbols used
- * for interpolation. This allows pre-defined templates (for components such as dialog, toast etc)
- * to continue to work in apps that use custom interpolation start-/endSymbols.
- *
- * @param {string} text The text in which to replace `{{` / `}}`
- * @returns {string} The modified string using the actual interpolation start-/endSymbols
- */
- function replaceInterpolationSymbols(text) {
- if (!text || !angular.isString(text)) return text;
- return text.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol);
- }
- }
-
-}
-
- var HANDLERS = {};
- /* The state of the current 'pointer'
- * The pointer represents the state of the current touch.
- * It contains normalized x and y coordinates from DOM events,
- * as well as other information abstracted from the DOM.
- */
- var pointer, lastPointer, forceSkipClickHijack = false;
-
- // Used to attach event listeners once when multiple ng-apps are running.
- var isInitialized = false;
-
- angular
- .module('material.core.gestures', [ ])
- .provider('$mdGesture', MdGestureProvider)
- .factory('$$MdGestureHandler', MdGestureHandler)
- .run( attachToDocument );
-
- /**
- * @ngdoc service
- * @name $mdGestureProvider
- * @module material.core.gestures
- *
- * @description
- * In some scenarios on Mobile devices (without jQuery), the click events should NOT be hijacked.
- * `$mdGestureProvider` is used to configure the Gesture module to ignore or skip click hijacking on mobile
- * devices.
- *
- * <hljs lang="js">
- * app.config(function($mdGestureProvider) {
- *
- * // For mobile devices without jQuery loaded, do not
- * // intercept click events during the capture phase.
- * $mdGestureProvider.skipClickHijack();
- *
- * });
- * </hljs>
- *
- */
- function MdGestureProvider() { }
-
- MdGestureProvider.prototype = {
-
- // Publish access to setter to configure a variable BEFORE the
- // $mdGesture service is instantiated...
- skipClickHijack: function() {
- return forceSkipClickHijack = true;
- },
-
- /**
- * $get is used to build an instance of $mdGesture
- * ngInject
- */
- $get : ["$$MdGestureHandler", "$$rAF", "$timeout", function($$MdGestureHandler, $$rAF, $timeout) {
- return new MdGesture($$MdGestureHandler, $$rAF, $timeout);
- }]
- };
-
-
-
- /**
- * MdGesture factory construction function
- * ngInject
- */
- function MdGesture($$MdGestureHandler, $$rAF, $timeout) {
- var userAgent = navigator.userAgent || navigator.vendor || window.opera;
- var isIos = userAgent.match(/ipad|iphone|ipod/i);
- var isAndroid = userAgent.match(/android/i);
- var hasJQuery = (typeof window.jQuery !== 'undefined') && (angular.element === window.jQuery);
-
- var self = {
- handler: addHandler,
- register: register,
- // On mobile w/out jQuery, we normally intercept clicks. Should we skip that?
- isHijackingClicks: (isIos || isAndroid) && !hasJQuery && !forceSkipClickHijack
- };
-
- if (self.isHijackingClicks) {
- self.handler('click', {
- options: {
- maxDistance: 6
- },
- onEnd: function (ev, pointer) {
- if (pointer.distance < this.state.options.maxDistance) {
- this.dispatchEvent(ev, 'click');
- }
- }
- });
- }
-
- /*
- * Register an element to listen for a handler.
- * This allows an element to override the default options for a handler.
- * Additionally, some handlers like drag and hold only dispatch events if
- * the domEvent happens inside an element that's registered to listen for these events.
- *
- * @see GestureHandler for how overriding of default options works.
- * @example $mdGesture.register(myElement, 'drag', { minDistance: 20, horziontal: false })
- */
- function register(element, handlerName, options) {
- var handler = HANDLERS[handlerName.replace(/^\$md./, '')];
- if (!handler) {
- throw new Error('Failed to register element with handler ' + handlerName + '. ' +
- 'Available handlers: ' + Object.keys(HANDLERS).join(', '));
- }
- return handler.registerElement(element, options);
- }
-
- /*
- * add a handler to $mdGesture. see below.
- */
- function addHandler(name, definition) {
- var handler = new $$MdGestureHandler(name);
- angular.extend(handler, definition);
- HANDLERS[name] = handler;
-
- return self;
- }
-
- /*
- * Register handlers. These listen to touch/start/move events, interpret them,
- * and dispatch gesture events depending on options & conditions. These are all
- * instances of GestureHandler.
- * @see GestureHandler
- */
- return self
- /*
- * The press handler dispatches an event on touchdown/touchend.
- * It's a simple abstraction of touch/mouse/pointer start and end.
- */
- .handler('press', {
- onStart: function (ev, pointer) {
- this.dispatchEvent(ev, '$md.pressdown');
- },
- onEnd: function (ev, pointer) {
- this.dispatchEvent(ev, '$md.pressup');
- }
- })
-
- /*
- * The hold handler dispatches an event if the user keeps their finger within
- * the same <maxDistance> area for <delay> ms.
- * The hold handler will only run if a parent of the touch target is registered
- * to listen for hold events through $mdGesture.register()
- */
- .handler('hold', {
- options: {
- maxDistance: 6,
- delay: 500
- },
- onCancel: function () {
- $timeout.cancel(this.state.timeout);
- },
- onStart: function (ev, pointer) {
- // For hold, require a parent to be registered with $mdGesture.register()
- // Because we prevent scroll events, this is necessary.
- if (!this.state.registeredParent) return this.cancel();
-
- this.state.pos = {x: pointer.x, y: pointer.y};
- this.state.timeout = $timeout(angular.bind(this, function holdDelayFn() {
- this.dispatchEvent(ev, '$md.hold');
- this.cancel(); //we're done!
- }), this.state.options.delay, false);
- },
- onMove: function (ev, pointer) {
- // Don't scroll while waiting for hold.
- // If we don't preventDefault touchmove events here, Android will assume we don't
- // want to listen to anymore touch events. It will start scrolling and stop sending
- // touchmove events.
- ev.preventDefault();
-
- // If the user moves greater than <maxDistance> pixels, stop the hold timer
- // set in onStart
- var dx = this.state.pos.x - pointer.x;
- var dy = this.state.pos.y - pointer.y;
- if (Math.sqrt(dx * dx + dy * dy) > this.options.maxDistance) {
- this.cancel();
- }
- },
- onEnd: function () {
- this.onCancel();
- }
- })
-
- /*
- * The drag handler dispatches a drag event if the user holds and moves his finger greater than
- * <minDistance> px in the x or y direction, depending on options.horizontal.
- * The drag will be cancelled if the user moves his finger greater than <minDistance>*<cancelMultiplier> in
- * the perpindicular direction. Eg if the drag is horizontal and the user moves his finger <minDistance>*<cancelMultiplier>
- * pixels vertically, this handler won't consider the move part of a drag.
- */
- .handler('drag', {
- options: {
- minDistance: 6,
- horizontal: true,
- cancelMultiplier: 1.5
- },
- onStart: function (ev) {
- // For drag, require a parent to be registered with $mdGesture.register()
- if (!this.state.registeredParent) this.cancel();
- },
- onMove: function (ev, pointer) {
- var shouldStartDrag, shouldCancel;
- // Don't scroll while deciding if this touchmove qualifies as a drag event.
- // If we don't preventDefault touchmove events here, Android will assume we don't
- // want to listen to anymore touch events. It will start scrolling and stop sending
- // touchmove events.
- ev.preventDefault();
-
- if (!this.state.dragPointer) {
- if (this.state.options.horizontal) {
- shouldStartDrag = Math.abs(pointer.distanceX) > this.state.options.minDistance;
- shouldCancel = Math.abs(pointer.distanceY) > this.state.options.minDistance * this.state.options.cancelMultiplier;
- } else {
- shouldStartDrag = Math.abs(pointer.distanceY) > this.state.options.minDistance;
- shouldCancel = Math.abs(pointer.distanceX) > this.state.options.minDistance * this.state.options.cancelMultiplier;
- }
-
- if (shouldStartDrag) {
- // Create a new pointer representing this drag, starting at this point where the drag started.
- this.state.dragPointer = makeStartPointer(ev);
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.dragstart', this.state.dragPointer);
-
- } else if (shouldCancel) {
- this.cancel();
- }
- } else {
- this.dispatchDragMove(ev);
- }
- },
- // Only dispatch dragmove events every frame; any more is unnecessray
- dispatchDragMove: $$rAF.throttle(function (ev) {
- // Make sure the drag didn't stop while waiting for the next frame
- if (this.state.isRunning) {
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.drag', this.state.dragPointer);
- }
- }),
- onEnd: function (ev, pointer) {
- if (this.state.dragPointer) {
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.dragend', this.state.dragPointer);
- }
- }
- })
-
- /*
- * The swipe handler will dispatch a swipe event if, on the end of a touch,
- * the velocity and distance were high enough.
- * TODO: add vertical swiping with a `horizontal` option similar to the drag handler.
- */
- .handler('swipe', {
- options: {
- minVelocity: 0.65,
- minDistance: 10
- },
- onEnd: function (ev, pointer) {
- if (Math.abs(pointer.velocityX) > this.state.options.minVelocity &&
- Math.abs(pointer.distanceX) > this.state.options.minDistance) {
- var eventType = pointer.directionX == 'left' ? '$md.swipeleft' : '$md.swiperight';
- this.dispatchEvent(ev, eventType);
- }
- }
- });
-
- }
- MdGesture.$inject = ["$$MdGestureHandler", "$$rAF", "$timeout"];
-
- /**
- * MdGestureHandler
- * A GestureHandler is an object which is able to dispatch custom dom events
- * based on native dom {touch,pointer,mouse}{start,move,end} events.
- *
- * A gesture will manage its lifecycle through the start,move,end, and cancel
- * functions, which are called by native dom events.
- *
- * A gesture has the concept of 'options' (eg a swipe's required velocity), which can be
- * overridden by elements registering through $mdGesture.register()
- */
- function GestureHandler (name) {
- this.name = name;
- this.state = {};
- }
-
- function MdGestureHandler() {
- var hasJQuery = (typeof window.jQuery !== 'undefined') && (angular.element === window.jQuery);
-
- GestureHandler.prototype = {
- options: {},
- // jQuery listeners don't work with custom DOMEvents, so we have to dispatch events
- // differently when jQuery is loaded
- dispatchEvent: hasJQuery ? jQueryDispatchEvent : nativeDispatchEvent,
-
- // These are overridden by the registered handler
- onStart: angular.noop,
- onMove: angular.noop,
- onEnd: angular.noop,
- onCancel: angular.noop,
-
- // onStart sets up a new state for the handler, which includes options from the
- // nearest registered parent element of ev.target.
- start: function (ev, pointer) {
- if (this.state.isRunning) return;
- var parentTarget = this.getNearestParent(ev.target);
- // Get the options from the nearest registered parent
- var parentTargetOptions = parentTarget && parentTarget.$mdGesture[this.name] || {};
-
- this.state = {
- isRunning: true,
- // Override the default options with the nearest registered parent's options
- options: angular.extend({}, this.options, parentTargetOptions),
- // Pass in the registered parent node to the state so the onStart listener can use
- registeredParent: parentTarget
- };
- this.onStart(ev, pointer);
- },
- move: function (ev, pointer) {
- if (!this.state.isRunning) return;
- this.onMove(ev, pointer);
- },
- end: function (ev, pointer) {
- if (!this.state.isRunning) return;
- this.onEnd(ev, pointer);
- this.state.isRunning = false;
- },
- cancel: function (ev, pointer) {
- this.onCancel(ev, pointer);
- this.state = {};
- },
-
- // Find and return the nearest parent element that has been registered to
- // listen for this handler via $mdGesture.register(element, 'handlerName').
- getNearestParent: function (node) {
- var current = node;
- while (current) {
- if ((current.$mdGesture || {})[this.name]) {
- return current;
- }
- current = current.parentNode;
- }
- return null;
- },
-
- // Called from $mdGesture.register when an element reigsters itself with a handler.
- // Store the options the user gave on the DOMElement itself. These options will
- // be retrieved with getNearestParent when the handler starts.
- registerElement: function (element, options) {
- var self = this;
- element[0].$mdGesture = element[0].$mdGesture || {};
- element[0].$mdGesture[this.name] = options || {};
- element.on('$destroy', onDestroy);
-
- return onDestroy;
-
- function onDestroy() {
- delete element[0].$mdGesture[self.name];
- element.off('$destroy', onDestroy);
- }
- }
- };
-
- return GestureHandler;
-
- /*
- * Dispatch an event with jQuery
- * TODO: Make sure this sends bubbling events
- *
- * @param srcEvent the original DOM touch event that started this.
- * @param eventType the name of the custom event to send (eg 'click' or '$md.drag')
- * @param eventPointer the pointer object that matches this event.
- */
- function jQueryDispatchEvent(srcEvent, eventType, eventPointer) {
- eventPointer = eventPointer || pointer;
- var eventObj = new angular.element.Event(eventType);
-
- eventObj.$material = true;
- eventObj.pointer = eventPointer;
- eventObj.srcEvent = srcEvent;
-
- angular.extend(eventObj, {
- clientX: eventPointer.x,
- clientY: eventPointer.y,
- screenX: eventPointer.x,
- screenY: eventPointer.y,
- pageX: eventPointer.x,
- pageY: eventPointer.y,
- ctrlKey: srcEvent.ctrlKey,
- altKey: srcEvent.altKey,
- shiftKey: srcEvent.shiftKey,
- metaKey: srcEvent.metaKey
- });
- angular.element(eventPointer.target).trigger(eventObj);
- }
-
- /*
- * NOTE: nativeDispatchEvent is very performance sensitive.
- * @param srcEvent the original DOM touch event that started this.
- * @param eventType the name of the custom event to send (eg 'click' or '$md.drag')
- * @param eventPointer the pointer object that matches this event.
- */
- function nativeDispatchEvent(srcEvent, eventType, eventPointer) {
- eventPointer = eventPointer || pointer;
- var eventObj;
-
- if (eventType === 'click') {
- eventObj = document.createEvent('MouseEvents');
- eventObj.initMouseEvent(
- 'click', true, true, window, srcEvent.detail,
- eventPointer.x, eventPointer.y, eventPointer.x, eventPointer.y,
- srcEvent.ctrlKey, srcEvent.altKey, srcEvent.shiftKey, srcEvent.metaKey,
- srcEvent.button, srcEvent.relatedTarget || null
- );
-
- } else {
- eventObj = document.createEvent('CustomEvent');
- eventObj.initCustomEvent(eventType, true, true, {});
- }
- eventObj.$material = true;
- eventObj.pointer = eventPointer;
- eventObj.srcEvent = srcEvent;
- eventPointer.target.dispatchEvent(eventObj);
- }
-
- }
-
- /**
- * Attach Gestures: hook document and check shouldHijack clicks
- * ngInject
- */
- function attachToDocument( $mdGesture, $$MdGestureHandler ) {
-
- // Polyfill document.contains for IE11.
- // TODO: move to util
- document.contains || (document.contains = function (node) {
- return document.body.contains(node);
- });
-
- if (!isInitialized && $mdGesture.isHijackingClicks ) {
- /*
- * If hijack clicks is true, we preventDefault any click that wasn't
- * sent by ngMaterial. This is because on older Android & iOS, a false, or 'ghost',
- * click event will be sent ~400ms after a touchend event happens.
- * The only way to know if this click is real is to prevent any normal
- * click events, and add a flag to events sent by material so we know not to prevent those.
- *
- * Two exceptions to click events that should be prevented are:
- * - click events sent by the keyboard (eg form submit)
- * - events that originate from an Ionic app
- */
- document.addEventListener('click', function clickHijacker(ev) {
- var isKeyClick = ev.clientX === 0 && ev.clientY === 0;
- if (!isKeyClick && !ev.$material && !ev.isIonicTap) {
- ev.preventDefault();
- ev.stopPropagation();
- }
- }, true);
-
- isInitialized = true;
- }
-
- // Listen to all events to cover all platforms.
- var START_EVENTS = 'mousedown touchstart pointerdown';
- var MOVE_EVENTS = 'mousemove touchmove pointermove';
- var END_EVENTS = 'mouseup mouseleave touchend touchcancel pointerup pointercancel';
-
- angular.element(document)
- .on(START_EVENTS, gestureStart)
- .on(MOVE_EVENTS, gestureMove)
- .on(END_EVENTS, gestureEnd)
- // For testing
- .on('$$mdGestureReset', function gestureClearCache () {
- lastPointer = pointer = null;
- });
-
- /*
- * When a DOM event happens, run all registered gesture handlers' lifecycle
- * methods which match the DOM event.
- * Eg when a 'touchstart' event happens, runHandlers('start') will call and
- * run `handler.cancel()` and `handler.start()` on all registered handlers.
- */
- function runHandlers(handlerEvent, event) {
- var handler;
- for (var name in HANDLERS) {
- handler = HANDLERS[name];
- if( handler instanceof $$MdGestureHandler ) {
-
- if (handlerEvent === 'start') {
- // Run cancel to reset any handlers' state
- handler.cancel();
- }
- handler[handlerEvent](event, pointer);
-
- }
- }
- }
-
- /*
- * gestureStart vets if a start event is legitimate (and not part of a 'ghost click' from iOS/Android)
- * If it is legitimate, we initiate the pointer state and mark the current pointer's type
- * For example, for a touchstart event, mark the current pointer as a 'touch' pointer, so mouse events
- * won't effect it.
- */
- function gestureStart(ev) {
- // If we're already touched down, abort
- if (pointer) return;
-
- var now = +Date.now();
-
- // iOS & old android bug: after a touch event, a click event is sent 350 ms later.
- // If <400ms have passed, don't allow an event of a different type than the previous event
- if (lastPointer && !typesMatch(ev, lastPointer) && (now - lastPointer.endTime < 1500)) {
- return;
- }
-
- pointer = makeStartPointer(ev);
-
- runHandlers('start', ev);
- }
- /*
- * If a move event happens of the right type, update the pointer and run all the move handlers.
- * "of the right type": if a mousemove happens but our pointer started with a touch event, do nothing.
- */
- function gestureMove(ev) {
- if (!pointer || !typesMatch(ev, pointer)) return;
-
- updatePointerState(ev, pointer);
- runHandlers('move', ev);
- }
- /*
- * If an end event happens of the right type, update the pointer, run endHandlers, and save the pointer as 'lastPointer'
- */
- function gestureEnd(ev) {
- if (!pointer || !typesMatch(ev, pointer)) return;
-
- updatePointerState(ev, pointer);
- pointer.endTime = +Date.now();
-
- runHandlers('end', ev);
-
- lastPointer = pointer;
- pointer = null;
- }
-
- }
- attachToDocument.$inject = ["$mdGesture", "$$MdGestureHandler"];
-
- // ********************
- // Module Functions
- // ********************
-
- /*
- * Initiate the pointer. x, y, and the pointer's type.
- */
- function makeStartPointer(ev) {
- var point = getEventPoint(ev);
- var startPointer = {
- startTime: +Date.now(),
- target: ev.target,
- // 'p' for pointer events, 'm' for mouse, 't' for touch
- type: ev.type.charAt(0)
- };
- startPointer.startX = startPointer.x = point.pageX;
- startPointer.startY = startPointer.y = point.pageY;
- return startPointer;
- }
-
- /*
- * return whether the pointer's type matches the event's type.
- * Eg if a touch event happens but the pointer has a mouse type, return false.
- */
- function typesMatch(ev, pointer) {
- return ev && pointer && ev.type.charAt(0) === pointer.type;
- }
-
- /*
- * Update the given pointer based upon the given DOMEvent.
- * Distance, velocity, direction, duration, etc
- */
- function updatePointerState(ev, pointer) {
- var point = getEventPoint(ev);
- var x = pointer.x = point.pageX;
- var y = pointer.y = point.pageY;
-
- pointer.distanceX = x - pointer.startX;
- pointer.distanceY = y - pointer.startY;
- pointer.distance = Math.sqrt(
- pointer.distanceX * pointer.distanceX + pointer.distanceY * pointer.distanceY
- );
-
- pointer.directionX = pointer.distanceX > 0 ? 'right' : pointer.distanceX < 0 ? 'left' : '';
- pointer.directionY = pointer.distanceY > 0 ? 'up' : pointer.distanceY < 0 ? 'down' : '';
-
- pointer.duration = +Date.now() - pointer.startTime;
- pointer.velocityX = pointer.distanceX / pointer.duration;
- pointer.velocityY = pointer.distanceY / pointer.duration;
- }
-
- /*
- * Normalize the point where the DOM event happened whether it's touch or mouse.
- * @returns point event obj with pageX and pageY on it.
- */
- function getEventPoint(ev) {
- ev = ev.originalEvent || ev; // support jQuery events
- return (ev.touches && ev.touches[0]) ||
- (ev.changedTouches && ev.changedTouches[0]) ||
- ev;
- }
-
- /**
- * @ngdoc module
- * @name material.core.componentRegistry
- *
- * @description
- * A component instance registration service.
- * Note: currently this as a private service in the SideNav component.
- */
- angular.module('material.core')
- .factory('$mdComponentRegistry', ComponentRegistry);
-
- /*
- * @private
- * @ngdoc factory
- * @name ComponentRegistry
- * @module material.core.componentRegistry
- *
- */
- function ComponentRegistry($log, $q) {
-
- var self;
- var instances = [ ];
- var pendings = { };
-
- return self = {
- /**
- * Used to print an error when an instance for a handle isn't found.
- */
- notFoundError: function(handle) {
- $log.error('No instance found for handle', handle);
- },
- /**
- * Return all registered instances as an array.
- */
- getInstances: function() {
- return instances;
- },
-
- /**
- * Get a registered instance.
- * @param handle the String handle to look up for a registered instance.
- */
- get: function(handle) {
- if ( !isValidID(handle) ) return null;
-
- var i, j, instance;
- for(i = 0, j = instances.length; i < j; i++) {
- instance = instances[i];
- if(instance.$$mdHandle === handle) {
- return instance;
- }
- }
- return null;
- },
-
- /**
- * Register an instance.
- * @param instance the instance to register
- * @param handle the handle to identify the instance under.
- */
- register: function(instance, handle) {
- if ( !handle ) return angular.noop;
-
- instance.$$mdHandle = handle;
- instances.push(instance);
- resolveWhen();
-
- return deregister;
-
- /**
- * Remove registration for an instance
- */
- function deregister() {
- var index = instances.indexOf(instance);
- if (index !== -1) {
- instances.splice(index, 1);
- }
- }
-
- /**
- * Resolve any pending promises for this instance
- */
- function resolveWhen() {
- var dfd = pendings[handle];
- if ( dfd ) {
- dfd.resolve( instance );
- delete pendings[handle];
- }
- }
- },
-
- /**
- * Async accessor to registered component instance
- * If not available then a promise is created to notify
- * all listeners when the instance is registered.
- */
- when : function(handle) {
- if ( isValidID(handle) ) {
- var deferred = $q.defer();
- var instance = self.get(handle);
-
- if ( instance ) {
- deferred.resolve( instance );
- } else {
- pendings[handle] = deferred;
- }
-
- return deferred.promise;
- }
- return $q.reject("Invalid `md-component-id` value.");
- }
-
- };
-
- function isValidID(handle){
- return handle && (handle !== "");
- }
-
- }
- ComponentRegistry.$inject = ["$log", "$q"];
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdButtonInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-button. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdButtonInkRipple', MdButtonInkRipple);
-
- function MdButtonInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- var elementOptions = optionsForElement(element);
- return $mdInkRipple.attach(scope, element, angular.extend(elementOptions, options));
- };
-
- function optionsForElement(element) {
- if (element.hasClass('md-icon-button')) {
- return {
- isMenuItem: element.hasClass('md-menu-item'),
- fitRipple: true,
- center: true
- };
- } else {
- return {
- isMenuItem: element.hasClass('md-menu-item'),
- dimBackground: true
- }
- }
- };
- }
- MdButtonInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdCheckboxInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-checkbox. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdCheckboxInkRipple', MdCheckboxInkRipple);
-
- function MdCheckboxInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: true,
- dimBackground: false,
- fitRipple: true
- }, options));
- };
- }
- MdCheckboxInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdListInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-list. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdListInkRipple', MdListInkRipple);
-
- function MdListInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: false,
- dimBackground: true,
- outline: false,
- rippleSize: 'full'
- }, options));
- };
- }
- MdListInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-angular.module('material.core')
- .factory('$mdInkRipple', InkRippleService)
- .directive('mdInkRipple', InkRippleDirective)
- .directive('mdNoInk', attrNoDirective())
- .directive('mdNoBar', attrNoDirective())
- .directive('mdNoStretch', attrNoDirective());
-
-function InkRippleDirective($mdButtonInkRipple, $mdCheckboxInkRipple) {
- return {
- controller: angular.noop,
- link: function (scope, element, attr) {
- if (attr.hasOwnProperty('mdInkRippleCheckbox')) {
- $mdCheckboxInkRipple.attach(scope, element);
- } else {
- $mdButtonInkRipple.attach(scope, element);
- }
- }
- };
-}
-InkRippleDirective.$inject = ["$mdButtonInkRipple", "$mdCheckboxInkRipple"];
-
-function InkRippleService($window, $timeout) {
-
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- if (element.controller('mdNoInk')) return angular.noop;
-
- options = angular.extend({
- colorElement: element,
- mousedown: true,
- hover: true,
- focus: true,
- center: false,
- mousedownPauseTime: 150,
- dimBackground: false,
- outline: false,
- fullRipple: true,
- isMenuItem: false,
- fitRipple: false
- }, options);
-
- var rippleSize,
- controller = element.controller('mdInkRipple') || {},
- counter = 0,
- ripples = [],
- states = [],
- isActiveExpr = element.attr('md-highlight'),
- isActive = false,
- isHeld = false,
- node = element[0],
- rippleSizeSetting = element.attr('md-ripple-size'),
- color = parseColor(element.attr('md-ink-ripple')) || parseColor(options.colorElement.length && $window.getComputedStyle(options.colorElement[0]).color || 'rgb(0, 0, 0)');
-
- switch (rippleSizeSetting) {
- case 'full':
- options.fullRipple = true;
- break;
- case 'partial':
- options.fullRipple = false;
- break;
- }
-
- // expose onInput for ripple testing
- if (options.mousedown) {
- element.on('$md.pressdown', onPressDown)
- .on('$md.pressup', onPressUp);
- }
-
- controller.createRipple = createRipple;
-
- if (isActiveExpr) {
- scope.$watch(isActiveExpr, function watchActive(newValue) {
- isActive = newValue;
- if (isActive && !ripples.length) {
- $timeout(function () { createRipple(0, 0); }, 0, false);
- }
- angular.forEach(ripples, updateElement);
- });
- }
-
- // Publish self-detach method if desired...
- return function detach() {
- element.off('$md.pressdown', onPressDown)
- .off('$md.pressup', onPressUp);
- getRippleContainer().remove();
- };
-
- /**
- * Gets the current ripple container
- * If there is no ripple container, it creates one and returns it
- *
- * @returns {angular.element} ripple container element
- */
- function getRippleContainer() {
- var container = element.data('$mdRippleContainer');
- if (container) return container;
- container = angular.element('<div class="md-ripple-container">');
- element.append(container);
- element.data('$mdRippleContainer', container);
- return container;
- }
-
- function parseColor(color) {
- if (!color) return;
- if (color.indexOf('rgba') === 0) return color.replace(/\d?\.?\d*\s*\)\s*$/, '0.1)');
- if (color.indexOf('rgb') === 0) return rgbToRGBA(color);
- if (color.indexOf('#') === 0) return hexToRGBA(color);
-
- /**
- * Converts a hex value to an rgba string
- *
- * @param {string} hex value (3 or 6 digits) to be converted
- *
- * @returns {string} rgba color with 0.1 alpha
- */
- function hexToRGBA(color) {
- var hex = color.charAt(0) === '#' ? color.substr(1) : color,
- dig = hex.length / 3,
- red = hex.substr(0, dig),
- grn = hex.substr(dig, dig),
- blu = hex.substr(dig * 2);
- if (dig === 1) {
- red += red;
- grn += grn;
- blu += blu;
- }
- return 'rgba(' + parseInt(red, 16) + ',' + parseInt(grn, 16) + ',' + parseInt(blu, 16) + ',0.1)';
- }
-
- /**
- * Converts rgb value to rgba string
- *
- * @param {string} rgb color string
- *
- * @returns {string} rgba color with 0.1 alpha
- */
- function rgbToRGBA(color) {
- return color.replace(')', ', 0.1)').replace('(', 'a(');
- }
-
- }
-
- function removeElement(elem, wait) {
- ripples.splice(ripples.indexOf(elem), 1);
- if (ripples.length === 0) {
- getRippleContainer().css({ backgroundColor: '' });
- }
- $timeout(function () { elem.remove(); }, wait, false);
- }
-
- function updateElement(elem) {
- var index = ripples.indexOf(elem),
- state = states[index] || {},
- elemIsActive = ripples.length > 1 ? false : isActive,
- elemIsHeld = ripples.length > 1 ? false : isHeld;
- if (elemIsActive || state.animating || elemIsHeld) {
- elem.addClass('md-ripple-visible');
- } else if (elem) {
- elem.removeClass('md-ripple-visible');
- if (options.outline) {
- elem.css({
- width: rippleSize + 'px',
- height: rippleSize + 'px',
- marginLeft: (rippleSize * -1) + 'px',
- marginTop: (rippleSize * -1) + 'px'
- });
- }
- removeElement(elem, options.outline ? 450 : 650);
- }
- }
-
- /**
- * Creates a ripple at the provided coordinates
- *
- * @param {number} left cursor position
- * @param {number} top cursor position
- *
- * @returns {angular.element} the generated ripple element
- */
- function createRipple(left, top) {
-
- color = parseColor(element.attr('md-ink-ripple')) || parseColor($window.getComputedStyle(options.colorElement[0]).color || 'rgb(0, 0, 0)');
-
- var container = getRippleContainer(),
- size = getRippleSize(left, top),
- css = getRippleCss(size, left, top),
- elem = getRippleElement(css),
- index = ripples.indexOf(elem),
- state = states[index] || {};
-
- rippleSize = size;
-
- state.animating = true;
-
- $timeout(function () {
- if (options.dimBackground) {
- container.css({ backgroundColor: color });
- }
- elem.addClass('md-ripple-placed md-ripple-scaled');
- if (options.outline) {
- elem.css({
- borderWidth: (size * 0.5) + 'px',
- marginLeft: (size * -0.5) + 'px',
- marginTop: (size * -0.5) + 'px'
- });
- } else {
- elem.css({ left: '50%', top: '50%' });
- }
- updateElement(elem);
- $timeout(function () {
- state.animating = false;
- updateElement(elem);
- }, (options.outline ? 450 : 225), false);
- }, 0, false);
-
- return elem;
-
- /**
- * Creates the ripple element with the provided css
- *
- * @param {object} css properties to be applied
- *
- * @returns {angular.element} the generated ripple element
- */
- function getRippleElement(css) {
- var elem = angular.element('<div class="md-ripple" data-counter="' + counter++ + '">');
- ripples.unshift(elem);
- states.unshift({ animating: true });
- container.append(elem);
- css && elem.css(css);
- return elem;
- }
-
- /**
- * Calculate the ripple size
- *
- * @returns {number} calculated ripple diameter
- */
- function getRippleSize(left, top) {
- var width = container.prop('offsetWidth'),
- height = container.prop('offsetHeight'),
- multiplier, size, rect;
- if (options.isMenuItem) {
- size = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
- } else if (options.outline) {
- rect = node.getBoundingClientRect();
- left -= rect.left;
- top -= rect.top;
- width = Math.max(left, width - left);
- height = Math.max(top, height - top);
- size = 2 * Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
- } else {
- multiplier = options.fullRipple ? 1.1 : 0.8;
- size = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2)) * multiplier;
- if (options.fitRipple) {
- size = Math.min(height, width, size);
- }
- }
- return size;
- }
-
- /**
- * Generates the ripple css
- *
- * @param {number} the diameter of the ripple
- * @param {number} the left cursor offset
- * @param {number} the top cursor offset
- *
- * @returns {{backgroundColor: string, borderColor: string, width: string, height: string}}
- */
- function getRippleCss(size, left, top) {
- var rect = node.getBoundingClientRect(),
- css = {
- backgroundColor: rgbaToRGB(color),
- borderColor: rgbaToRGB(color),
- width: size + 'px',
- height: size + 'px'
- };
-
- if (options.outline) {
- css.width = 0;
- css.height = 0;
- } else {
- css.marginLeft = css.marginTop = (size * -0.5) + 'px';
- }
-
- if (options.center) {
- css.left = css.top = '50%';
- } else {
- css.left = Math.round((left - rect.left) / container.prop('offsetWidth') * 100) + '%';
- css.top = Math.round((top - rect.top) / container.prop('offsetHeight') * 100) + '%';
- }
-
- return css;
-
- /**
- * Converts rgba string to rgb, removing the alpha value
- *
- * @param {string} rgba color
- *
- * @returns {string} rgb color
- */
- function rgbaToRGB(color) {
- return color.replace('rgba', 'rgb').replace(/,[^\),]+\)/, ')');
- }
- }
- }
-
- /**
- * Handles user input start and stop events
- *
- */
- function onPressDown(ev) {
- if (!isRippleAllowed()) return;
-
- createRipple(ev.pointer.x, ev.pointer.y);
- isHeld = true;
- }
- function onPressUp() {
- isHeld = false;
- var ripple = ripples[ ripples.length - 1 ];
- $timeout(function () { updateElement(ripple); }, 0, false);
- }
-
- /**
- * Determines if the ripple is allowed
- *
- * @returns {boolean} true if the ripple is allowed, false if not
- */
- function isRippleAllowed() {
- var parent = node.parentNode;
- var grandparent = parent && parent.parentNode;
- var ancestor = grandparent && grandparent.parentNode;
- return !isDisabled(node) && !isDisabled(parent) && !isDisabled(grandparent) && !isDisabled(ancestor);
- function isDisabled (elem) {
- return elem && elem.hasAttribute && elem.hasAttribute('disabled');
- }
- }
-
- }
-}
-InkRippleService.$inject = ["$window", "$timeout"];
-
-/**
- * noink/nobar/nostretch directive: make any element that has one of
- * these attributes be given a controller, so that other directives can
- * `require:` these and see if there is a `no<xxx>` parent attribute.
- *
- * @usage
- * <hljs lang="html">
- * <parent md-no-ink>
- * <child detect-no>
- * </child>
- * </parent>
- * </hljs>
- *
- * <hljs lang="js">
- * myApp.directive('detectNo', function() {
- * return {
- * require: ['^?mdNoInk', ^?mdNoBar'],
- * link: function(scope, element, attr, ctrls) {
- * var noinkCtrl = ctrls[0];
- * var nobarCtrl = ctrls[1];
- * if (noInkCtrl) {
- * alert("the md-no-ink flag has been specified on an ancestor!");
- * }
- * if (nobarCtrl) {
- * alert("the md-no-bar flag has been specified on an ancestor!");
- * }
- * }
- * };
- * });
- * </hljs>
- */
-function attrNoDirective() {
- return function() {
- return {
- controller: angular.noop
- };
- };
-}
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdTabInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-tabs. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdTabInkRipple', MdTabInkRipple);
-
- function MdTabInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: false,
- dimBackground: true,
- outline: false,
- rippleSize: 'full'
- }, options));
- };
- }
- MdTabInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-angular.module('material.core.theming.palette', [])
-.constant('$mdColorPalette', {
- 'red': {
- '50': '#ffebee',
- '100': '#ffcdd2',
- '200': '#ef9a9a',
- '300': '#e57373',
- '400': '#ef5350',
- '500': '#f44336',
- '600': '#e53935',
- '700': '#d32f2f',
- '800': '#c62828',
- '900': '#b71c1c',
- 'A100': '#ff8a80',
- 'A200': '#ff5252',
- 'A400': '#ff1744',
- 'A700': '#d50000',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 700 A200 A400 A700'
- },
- 'pink': {
- '50': '#fce4ec',
- '100': '#f8bbd0',
- '200': '#f48fb1',
- '300': '#f06292',
- '400': '#ec407a',
- '500': '#e91e63',
- '600': '#d81b60',
- '700': '#c2185b',
- '800': '#ad1457',
- '900': '#880e4f',
- 'A100': '#ff80ab',
- 'A200': '#ff4081',
- 'A400': '#f50057',
- 'A700': '#c51162',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 A200 A400 A700'
- },
- 'purple': {
- '50': '#f3e5f5',
- '100': '#e1bee7',
- '200': '#ce93d8',
- '300': '#ba68c8',
- '400': '#ab47bc',
- '500': '#9c27b0',
- '600': '#8e24aa',
- '700': '#7b1fa2',
- '800': '#6a1b9a',
- '900': '#4a148c',
- 'A100': '#ea80fc',
- 'A200': '#e040fb',
- 'A400': '#d500f9',
- 'A700': '#aa00ff',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200 A400 A700'
- },
- 'deep-purple': {
- '50': '#ede7f6',
- '100': '#d1c4e9',
- '200': '#b39ddb',
- '300': '#9575cd',
- '400': '#7e57c2',
- '500': '#673ab7',
- '600': '#5e35b1',
- '700': '#512da8',
- '800': '#4527a0',
- '900': '#311b92',
- 'A100': '#b388ff',
- 'A200': '#7c4dff',
- 'A400': '#651fff',
- 'A700': '#6200ea',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200'
- },
- 'indigo': {
- '50': '#e8eaf6',
- '100': '#c5cae9',
- '200': '#9fa8da',
- '300': '#7986cb',
- '400': '#5c6bc0',
- '500': '#3f51b5',
- '600': '#3949ab',
- '700': '#303f9f',
- '800': '#283593',
- '900': '#1a237e',
- 'A100': '#8c9eff',
- 'A200': '#536dfe',
- 'A400': '#3d5afe',
- 'A700': '#304ffe',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200 A400'
- },
- 'blue': {
- '50': '#e3f2fd',
- '100': '#bbdefb',
- '200': '#90caf9',
- '300': '#64b5f6',
- '400': '#42a5f5',
- '500': '#2196f3',
- '600': '#1e88e5',
- '700': '#1976d2',
- '800': '#1565c0',
- '900': '#0d47a1',
- 'A100': '#82b1ff',
- 'A200': '#448aff',
- 'A400': '#2979ff',
- 'A700': '#2962ff',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 700 A200 A400 A700'
- },
- 'light-blue': {
- '50': '#e1f5fe',
- '100': '#b3e5fc',
- '200': '#81d4fa',
- '300': '#4fc3f7',
- '400': '#29b6f6',
- '500': '#03a9f4',
- '600': '#039be5',
- '700': '#0288d1',
- '800': '#0277bd',
- '900': '#01579b',
- 'A100': '#80d8ff',
- 'A200': '#40c4ff',
- 'A400': '#00b0ff',
- 'A700': '#0091ea',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900 A700',
- 'contrastStrongLightColors': '500 600 700 800 A700'
- },
- 'cyan': {
- '50': '#e0f7fa',
- '100': '#b2ebf2',
- '200': '#80deea',
- '300': '#4dd0e1',
- '400': '#26c6da',
- '500': '#00bcd4',
- '600': '#00acc1',
- '700': '#0097a7',
- '800': '#00838f',
- '900': '#006064',
- 'A100': '#84ffff',
- 'A200': '#18ffff',
- 'A400': '#00e5ff',
- 'A700': '#00b8d4',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700 800'
- },
- 'teal': {
- '50': '#e0f2f1',
- '100': '#b2dfdb',
- '200': '#80cbc4',
- '300': '#4db6ac',
- '400': '#26a69a',
- '500': '#009688',
- '600': '#00897b',
- '700': '#00796b',
- '800': '#00695c',
- '900': '#004d40',
- 'A100': '#a7ffeb',
- 'A200': '#64ffda',
- 'A400': '#1de9b6',
- 'A700': '#00bfa5',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700'
- },
- 'green': {
- '50': '#e8f5e9',
- '100': '#c8e6c9',
- '200': '#a5d6a7',
- '300': '#81c784',
- '400': '#66bb6a',
- '500': '#4caf50',
- '600': '#43a047',
- '700': '#388e3c',
- '800': '#2e7d32',
- '900': '#1b5e20',
- 'A100': '#b9f6ca',
- 'A200': '#69f0ae',
- 'A400': '#00e676',
- 'A700': '#00c853',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700'
- },
- 'light-green': {
- '50': '#f1f8e9',
- '100': '#dcedc8',
- '200': '#c5e1a5',
- '300': '#aed581',
- '400': '#9ccc65',
- '500': '#8bc34a',
- '600': '#7cb342',
- '700': '#689f38',
- '800': '#558b2f',
- '900': '#33691e',
- 'A100': '#ccff90',
- 'A200': '#b2ff59',
- 'A400': '#76ff03',
- 'A700': '#64dd17',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '800 900',
- 'contrastStrongLightColors': '800 900'
- },
- 'lime': {
- '50': '#f9fbe7',
- '100': '#f0f4c3',
- '200': '#e6ee9c',
- '300': '#dce775',
- '400': '#d4e157',
- '500': '#cddc39',
- '600': '#c0ca33',
- '700': '#afb42b',
- '800': '#9e9d24',
- '900': '#827717',
- 'A100': '#f4ff81',
- 'A200': '#eeff41',
- 'A400': '#c6ff00',
- 'A700': '#aeea00',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '900',
- 'contrastStrongLightColors': '900'
- },
- 'yellow': {
- '50': '#fffde7',
- '100': '#fff9c4',
- '200': '#fff59d',
- '300': '#fff176',
- '400': '#ffee58',
- '500': '#ffeb3b',
- '600': '#fdd835',
- '700': '#fbc02d',
- '800': '#f9a825',
- '900': '#f57f17',
- 'A100': '#ffff8d',
- 'A200': '#ffff00',
- 'A400': '#ffea00',
- 'A700': '#ffd600',
- 'contrastDefaultColor': 'dark'
- },
- 'amber': {
- '50': '#fff8e1',
- '100': '#ffecb3',
- '200': '#ffe082',
- '300': '#ffd54f',
- '400': '#ffca28',
- '500': '#ffc107',
- '600': '#ffb300',
- '700': '#ffa000',
- '800': '#ff8f00',
- '900': '#ff6f00',
- 'A100': '#ffe57f',
- 'A200': '#ffd740',
- 'A400': '#ffc400',
- 'A700': '#ffab00',
- 'contrastDefaultColor': 'dark'
- },
- 'orange': {
- '50': '#fff3e0',
- '100': '#ffe0b2',
- '200': '#ffcc80',
- '300': '#ffb74d',
- '400': '#ffa726',
- '500': '#ff9800',
- '600': '#fb8c00',
- '700': '#f57c00',
- '800': '#ef6c00',
- '900': '#e65100',
- 'A100': '#ffd180',
- 'A200': '#ffab40',
- 'A400': '#ff9100',
- 'A700': '#ff6d00',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '800 900',
- 'contrastStrongLightColors': '800 900'
- },
- 'deep-orange': {
- '50': '#fbe9e7',
- '100': '#ffccbc',
- '200': '#ffab91',
- '300': '#ff8a65',
- '400': '#ff7043',
- '500': '#ff5722',
- '600': '#f4511e',
- '700': '#e64a19',
- '800': '#d84315',
- '900': '#bf360c',
- 'A100': '#ff9e80',
- 'A200': '#ff6e40',
- 'A400': '#ff3d00',
- 'A700': '#dd2c00',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100 A200',
- 'contrastStrongLightColors': '500 600 700 800 900 A400 A700'
- },
- 'brown': {
- '50': '#efebe9',
- '100': '#d7ccc8',
- '200': '#bcaaa4',
- '300': '#a1887f',
- '400': '#8d6e63',
- '500': '#795548',
- '600': '#6d4c41',
- '700': '#5d4037',
- '800': '#4e342e',
- '900': '#3e2723',
- 'A100': '#d7ccc8',
- 'A200': '#bcaaa4',
- 'A400': '#8d6e63',
- 'A700': '#5d4037',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200',
- 'contrastStrongLightColors': '300 400'
- },
- 'grey': {
- '50': '#fafafa',
- '100': '#f5f5f5',
- '200': '#eeeeee',
- '300': '#e0e0e0',
- '400': '#bdbdbd',
- '500': '#9e9e9e',
- '600': '#757575',
- '700': '#616161',
- '800': '#424242',
- '900': '#212121',
- '1000': '#000000',
- 'A100': '#ffffff',
- 'A200': '#eeeeee',
- 'A400': '#bdbdbd',
- 'A700': '#616161',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '600 700 800 900'
- },
- 'blue-grey': {
- '50': '#eceff1',
- '100': '#cfd8dc',
- '200': '#b0bec5',
- '300': '#90a4ae',
- '400': '#78909c',
- '500': '#607d8b',
- '600': '#546e7a',
- '700': '#455a64',
- '800': '#37474f',
- '900': '#263238',
- 'A100': '#cfd8dc',
- 'A200': '#b0bec5',
- 'A400': '#78909c',
- 'A700': '#455a64',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300',
- 'contrastStrongLightColors': '400 500'
- }
-});
-
-angular.module('material.core.theming', ['material.core.theming.palette'])
- .directive('mdTheme', ThemingDirective)
- .directive('mdThemable', ThemableDirective)
- .provider('$mdTheming', ThemingProvider)
- .run(generateThemes);
-
-/**
- * @ngdoc provider
- * @name $mdThemingProvider
- * @module material.core
- *
- * @description Provider to configure the `$mdTheming` service.
- */
-
-/**
- * @ngdoc method
- * @name $mdThemingProvider#setDefaultTheme
- * @param {string} themeName Default theme name to be applied to elements. Default value is `default`.
- */
-
-/**
- * @ngdoc method
- * @name $mdThemingProvider#alwaysWatchTheme
- * @param {boolean} watch Whether or not to always watch themes for changes and re-apply
- * classes when they change. Default is `false`. Enabling can reduce performance.
- */
-
-/* Some Example Valid Theming Expressions
- * =======================================
- *
- * Intention group expansion: (valid for primary, accent, warn, background)
- *
- * {{primary-100}} - grab shade 100 from the primary palette
- * {{primary-100-0.7}} - grab shade 100, apply opacity of 0.7
- * {{primary-hue-1}} - grab the shade assigned to hue-1 from the primary palette
- * {{primary-hue-1-0.7}} - apply 0.7 opacity to primary-hue-1
- * {{primary-color}} - Generates .md-hue-1, .md-hue-2, .md-hue-3 with configured shades set for each hue
- * {{primary-color-0.7}} - Apply 0.7 opacity to each of the above rules
- * {{primary-contrast}} - Generates .md-hue-1, .md-hue-2, .md-hue-3 with configured contrast (ie. text) color shades set for each hue
- * {{primary-contrast-0.7}} - Apply 0.7 opacity to each of the above rules
- *
- * Foreground expansion: Applies rgba to black/white foreground text
- *
- * {{foreground-1}} - used for primary text
- * {{foreground-2}} - used for secondary text/divider
- * {{foreground-3}} - used for disabled text
- * {{foreground-4}} - used for dividers
- *
- */
-
-// In memory generated CSS rules; registered by theme.name
-var GENERATED = { };
-
-// In memory storage of defined themes and color palettes (both loaded by CSS, and user specified)
-var PALETTES;
-var THEMES;
-
-var DARK_FOREGROUND = {
- name: 'dark',
- '1': 'rgba(0,0,0,0.87)',
- '2': 'rgba(0,0,0,0.54)',
- '3': 'rgba(0,0,0,0.26)',
- '4': 'rgba(0,0,0,0.12)'
-};
-var LIGHT_FOREGROUND = {
- name: 'light',
- '1': 'rgba(255,255,255,1.0)',
- '2': 'rgba(255,255,255,0.7)',
- '3': 'rgba(255,255,255,0.3)',
- '4': 'rgba(255,255,255,0.12)'
-};
-
-var DARK_SHADOW = '1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)';
-var LIGHT_SHADOW = '';
-
-var DARK_CONTRAST_COLOR = colorToRgbaArray('rgba(0,0,0,0.87)');
-var LIGHT_CONTRAST_COLOR = colorToRgbaArray('rgba(255,255,255,0.87');
-var STRONG_LIGHT_CONTRAST_COLOR = colorToRgbaArray('rgb(255,255,255)');
-
-var THEME_COLOR_TYPES = ['primary', 'accent', 'warn', 'background'];
-var DEFAULT_COLOR_TYPE = 'primary';
-
-// A color in a theme will use these hues by default, if not specified by user.
-var LIGHT_DEFAULT_HUES = {
- 'accent': {
- 'default': 'A200',
- 'hue-1': 'A100',
- 'hue-2': 'A400',
- 'hue-3': 'A700'
- },
- 'background': {
- 'default': 'A100',
- 'hue-1': '300',
- 'hue-2': '800',
- 'hue-3': '900'
- }
-};
-
-var DARK_DEFAULT_HUES = {
- 'background': {
- 'default': '800',
- 'hue-1': '300',
- 'hue-2': '600',
- 'hue-3': '900'
- }
-};
-THEME_COLOR_TYPES.forEach(function(colorType) {
- // Color types with unspecified default hues will use these default hue values
- var defaultDefaultHues = {
- 'default': '500',
- 'hue-1': '300',
- 'hue-2': '800',
- 'hue-3': 'A100'
- };
- if (!LIGHT_DEFAULT_HUES[colorType]) LIGHT_DEFAULT_HUES[colorType] = defaultDefaultHues;
- if (!DARK_DEFAULT_HUES[colorType]) DARK_DEFAULT_HUES[colorType] = defaultDefaultHues;
-});
-
-var VALID_HUE_VALUES = [
- '50', '100', '200', '300', '400', '500', '600',
- '700', '800', '900', 'A100', 'A200', 'A400', 'A700'
-];
-
-function ThemingProvider($mdColorPalette) {
- PALETTES = { };
- THEMES = { };
-
- var themingProvider;
- var defaultTheme = 'default';
- var alwaysWatchTheme = false;
-
- // Load JS Defined Palettes
- angular.extend(PALETTES, $mdColorPalette);
-
- // Default theme defined in core.js
-
- ThemingService.$inject = ["$rootScope", "$log"];
- return themingProvider = {
- definePalette: definePalette,
- extendPalette: extendPalette,
- theme: registerTheme,
-
- setDefaultTheme: function(theme) {
- defaultTheme = theme;
- },
- alwaysWatchTheme: function(alwaysWatch) {
- alwaysWatchTheme = alwaysWatch;
- },
- $get: ThemingService,
- _LIGHT_DEFAULT_HUES: LIGHT_DEFAULT_HUES,
- _DARK_DEFAULT_HUES: DARK_DEFAULT_HUES,
- _PALETTES: PALETTES,
- _THEMES: THEMES,
- _parseRules: parseRules,
- _rgba: rgba
- };
-
- // Example: $mdThemingProvider.definePalette('neonRed', { 50: '#f5fafa', ... });
- function definePalette(name, map) {
- map = map || {};
- PALETTES[name] = checkPaletteValid(name, map);
- return themingProvider;
- }
-
- // Returns an new object which is a copy of a given palette `name` with variables from
- // `map` overwritten
- // Example: var neonRedMap = $mdThemingProvider.extendPalette('red', { 50: '#f5fafafa' });
- function extendPalette(name, map) {
- return checkPaletteValid(name, angular.extend({}, PALETTES[name] || {}, map) );
- }
-
- // Make sure that palette has all required hues
- function checkPaletteValid(name, map) {
- var missingColors = VALID_HUE_VALUES.filter(function(field) {
- return !map[field];
- });
- if (missingColors.length) {
- throw new Error("Missing colors %1 in palette %2!"
- .replace('%1', missingColors.join(', '))
- .replace('%2', name));
- }
-
- return map;
- }
-
- // Register a theme (which is a collection of color palettes to use with various states
- // ie. warn, accent, primary )
- // Optionally inherit from an existing theme
- // $mdThemingProvider.theme('custom-theme').primaryPalette('red');
- function registerTheme(name, inheritFrom) {
- if (THEMES[name]) return THEMES[name];
-
- inheritFrom = inheritFrom || 'default';
-
- var parentTheme = typeof inheritFrom === 'string' ? THEMES[inheritFrom] : inheritFrom;
- var theme = new Theme(name);
-
- if (parentTheme) {
- angular.forEach(parentTheme.colors, function(color, colorType) {
- theme.colors[colorType] = {
- name: color.name,
- // Make sure a COPY of the hues is given to the child color,
- // not the same reference.
- hues: angular.extend({}, color.hues)
- };
- });
- }
- THEMES[name] = theme;
-
- return theme;
- }
-
- function Theme(name) {
- var self = this;
- self.name = name;
- self.colors = {};
-
- self.dark = setDark;
- setDark(false);
-
- function setDark(isDark) {
- isDark = arguments.length === 0 ? true : !!isDark;
-
- // If no change, abort
- if (isDark === self.isDark) return;
-
- self.isDark = isDark;
-
- self.foregroundPalette = self.isDark ? LIGHT_FOREGROUND : DARK_FOREGROUND;
- self.foregroundShadow = self.isDark ? DARK_SHADOW : LIGHT_SHADOW;
-
- // Light and dark themes have different default hues.
- // Go through each existing color type for this theme, and for every
- // hue value that is still the default hue value from the previous light/dark setting,
- // set it to the default hue value from the new light/dark setting.
- var newDefaultHues = self.isDark ? DARK_DEFAULT_HUES : LIGHT_DEFAULT_HUES;
- var oldDefaultHues = self.isDark ? LIGHT_DEFAULT_HUES : DARK_DEFAULT_HUES;
- angular.forEach(newDefaultHues, function(newDefaults, colorType) {
- var color = self.colors[colorType];
- var oldDefaults = oldDefaultHues[colorType];
- if (color) {
- for (var hueName in color.hues) {
- if (color.hues[hueName] === oldDefaults[hueName]) {
- color.hues[hueName] = newDefaults[hueName];
- }
- }
- }
- });
-
- return self;
- }
-
- THEME_COLOR_TYPES.forEach(function(colorType) {
- var defaultHues = (self.isDark ? DARK_DEFAULT_HUES : LIGHT_DEFAULT_HUES)[colorType];
- self[colorType + 'Palette'] = function setPaletteType(paletteName, hues) {
- var color = self.colors[colorType] = {
- name: paletteName,
- hues: angular.extend({}, defaultHues, hues)
- };
-
- Object.keys(color.hues).forEach(function(name) {
- if (!defaultHues[name]) {
- throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4"
- .replace('%1', name)
- .replace('%2', self.name)
- .replace('%3', paletteName)
- .replace('%4', Object.keys(defaultHues).join(', '))
- );
- }
- });
- Object.keys(color.hues).map(function(key) {
- return color.hues[key];
- }).forEach(function(hueValue) {
- if (VALID_HUE_VALUES.indexOf(hueValue) == -1) {
- throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5"
- .replace('%1', hueValue)
- .replace('%2', self.name)
- .replace('%3', colorType)
- .replace('%4', paletteName)
- .replace('%5', VALID_HUE_VALUES.join(', '))
- );
- }
- });
- return self;
- };
-
- self[colorType + 'Color'] = function() {
- var args = Array.prototype.slice.call(arguments);
- console.warn('$mdThemingProviderTheme.' + colorType + 'Color() has been deprecated. ' +
- 'Use $mdThemingProviderTheme.' + colorType + 'Palette() instead.');
- return self[colorType + 'Palette'].apply(self, args);
- };
- });
- }
-
- /**
- * @ngdoc service
- * @name $mdTheming
- *
- * @description
- *
- * Service that makes an element apply theming related classes to itself.
- *
- * ```js
- * app.directive('myFancyDirective', function($mdTheming) {
- * return {
- * restrict: 'e',
- * link: function(scope, el, attrs) {
- * $mdTheming(el);
- * }
- * };
- * });
- * ```
- * @param {el=} element to apply theming to
- */
- /* ngInject */
- function ThemingService($rootScope, $log) {
-
- applyTheme.inherit = function(el, parent) {
- var ctrl = parent.controller('mdTheme');
-
- var attrThemeValue = el.attr('md-theme-watch');
- if ( (alwaysWatchTheme || angular.isDefined(attrThemeValue)) && attrThemeValue != 'false') {
- var deregisterWatch = $rootScope.$watch(function() {
- return ctrl && ctrl.$mdTheme || defaultTheme;
- }, changeTheme);
- el.on('$destroy', deregisterWatch);
- } else {
- var theme = ctrl && ctrl.$mdTheme || defaultTheme;
- changeTheme(theme);
- }
-
- function changeTheme(theme) {
- if (!registered(theme)) {
- $log.warn('Attempted to use unregistered theme \'' + theme + '\'. ' +
- 'Register it with $mdThemingProvider.theme().');
- }
- var oldTheme = el.data('$mdThemeName');
- if (oldTheme) el.removeClass('md-' + oldTheme +'-theme');
- el.addClass('md-' + theme + '-theme');
- el.data('$mdThemeName', theme);
- }
- };
-
- applyTheme.THEMES = angular.extend({}, THEMES);
- applyTheme.defaultTheme = function() { return defaultTheme; };
- applyTheme.registered = registered;
-
- return applyTheme;
-
- function registered(themeName) {
- if (themeName === undefined || themeName === '') return true;
- return applyTheme.THEMES[themeName] !== undefined;
- }
-
- function applyTheme(scope, el) {
- // Allow us to be invoked via a linking function signature.
- if (el === undefined) {
- el = scope;
- scope = undefined;
- }
- if (scope === undefined) {
- scope = $rootScope;
- }
- applyTheme.inherit(el, el);
- }
- }
-}
-ThemingProvider.$inject = ["$mdColorPalette"];
-
-function ThemingDirective($mdTheming, $interpolate, $log) {
- return {
- priority: 100,
- link: {
- pre: function(scope, el, attrs) {
- var ctrl = {
- $setTheme: function(theme) {
- if (!$mdTheming.registered(theme)) {
- $log.warn('attempted to use unregistered theme \'' + theme + '\'');
- }
- ctrl.$mdTheme = theme;
- }
- };
- el.data('$mdThemeController', ctrl);
- ctrl.$setTheme($interpolate(attrs.mdTheme)(scope));
- attrs.$observe('mdTheme', ctrl.$setTheme);
- }
- }
- };
-}
-ThemingDirective.$inject = ["$mdTheming", "$interpolate", "$log"];
-
-function ThemableDirective($mdTheming) {
- return $mdTheming;
-}
-ThemableDirective.$inject = ["$mdTheming"];
-
-function parseRules(theme, colorType, rules) {
- checkValidPalette(theme, colorType);
-
- rules = rules.replace(/THEME_NAME/g, theme.name);
- var generatedRules = [];
- var color = theme.colors[colorType];
-
- var themeNameRegex = new RegExp('.md-' + theme.name + '-theme', 'g');
- // Matches '{{ primary-color }}', etc
- var hueRegex = new RegExp('(\'|")?{{\\s*(' + colorType + ')-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|\')?','g');
- var simpleVariableRegex = /'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow)-?(\d\.?\d*)?\s*\}\}'?"?/g;
- var palette = PALETTES[color.name];
-
- // find and replace simple variables where we use a specific hue, not an entire palette
- // eg. "{{primary-100}}"
- //\(' + THEME_COLOR_TYPES.join('\|') + '\)'
- rules = rules.replace(simpleVariableRegex, function(match, colorType, hue, opacity) {
- if (colorType === 'foreground') {
- if (hue == 'shadow') {
- return theme.foregroundShadow;
- } else {
- return theme.foregroundPalette[hue] || theme.foregroundPalette['1'];
- }
- }
- if (hue.indexOf('hue') === 0) {
- hue = theme.colors[colorType].hues[hue];
- }
- return rgba( (PALETTES[ theme.colors[colorType].name ][hue] || '').value, opacity );
- });
-
- // For each type, generate rules for each hue (ie. default, md-hue-1, md-hue-2, md-hue-3)
- angular.forEach(color.hues, function(hueValue, hueName) {
- var newRule = rules
- .replace(hueRegex, function(match, _, colorType, hueType, opacity) {
- return rgba(palette[hueValue][hueType === 'color' ? 'value' : 'contrast'], opacity);
- });
- if (hueName !== 'default') {
- newRule = newRule.replace(themeNameRegex, '.md-' + theme.name + '-theme.md-' + hueName);
- }
-
- // Don't apply a selector rule to the default theme, making it easier to override
- // styles of the base-component
- if (theme.name == 'default') {
- newRule = newRule.replace(/\.md-default-theme/g, '');
- }
- generatedRules.push(newRule);
- });
-
- return generatedRules;
-}
-
-// Generate our themes at run time given the state of THEMES and PALETTES
-function generateThemes($injector) {
-
- var head = document.getElementsByTagName('head')[0];
- var firstChild = head ? head.firstElementChild : null;
- var themeCss = $injector.has('$MD_THEME_CSS') ? $injector.get('$MD_THEME_CSS') : '';
-
- if ( !firstChild ) return;
- if (themeCss.length === 0) return; // no rules, so no point in running this expensive task
-
- // Expose contrast colors for palettes to ensure that text is always readable
- angular.forEach(PALETTES, sanitizePalette);
-
- // MD_THEME_CSS is a string generated by the build process that includes all the themable
- // components as templates
-
- // Break the CSS into individual rules
- var rulesByType = {};
- var rules = themeCss
- .split(/\}(?!(\}|'|"|;))/)
- .filter(function(rule) { return rule && rule.length; })
- .map(function(rule) { return rule.trim() + '}'; });
-
-
- var ruleMatchRegex = new RegExp('md-(' + THEME_COLOR_TYPES.join('|') + ')', 'g');
-
- THEME_COLOR_TYPES.forEach(function(type) {
- rulesByType[type] = '';
- });
-
-
- // Sort the rules based on type, allowing us to do color substitution on a per-type basis
- rules.forEach(function(rule) {
- var match = rule.match(ruleMatchRegex);
- // First: test that if the rule has '.md-accent', it goes into the accent set of rules
- for (var i = 0, type; type = THEME_COLOR_TYPES[i]; i++) {
- if (rule.indexOf('.md-' + type) > -1) {
- return rulesByType[type] += rule;
- }
- }
-
- // If no eg 'md-accent' class is found, try to just find 'accent' in the rule and guess from
- // there
- for (i = 0; type = THEME_COLOR_TYPES[i]; i++) {
- if (rule.indexOf(type) > -1) {
- return rulesByType[type] += rule;
- }
- }
-
- // Default to the primary array
- return rulesByType[DEFAULT_COLOR_TYPE] += rule;
- });
-
- // For each theme, use the color palettes specified for
- // `primary`, `warn` and `accent` to generate CSS rules.
-
- angular.forEach(THEMES, function(theme) {
- if ( !GENERATED[theme.name] ) {
-
-
- THEME_COLOR_TYPES.forEach(function(colorType) {
- var styleStrings = parseRules(theme, colorType, rulesByType[colorType]);
- while (styleStrings.length) {
- var style = document.createElement('style');
- style.setAttribute('type', 'text/css');
- style.appendChild(document.createTextNode(styleStrings.shift()));
- head.insertBefore(style, firstChild);
- }
- });
-
-
- if (theme.colors.primary.name == theme.colors.accent.name) {
- console.warn("$mdThemingProvider: Using the same palette for primary and" +
- " accent. This violates the material design spec.");
- }
-
- GENERATED[theme.name] = true;
- }
- });
-
-
- // *************************
- // Internal functions
- // *************************
-
- // The user specifies a 'default' contrast color as either light or dark,
- // then explicitly lists which hues are the opposite contrast (eg. A100 has dark, A200 has light)
- function sanitizePalette(palette) {
- var defaultContrast = palette.contrastDefaultColor;
- var lightColors = palette.contrastLightColors || [];
- var strongLightColors = palette.contrastStrongLightColors || [];
- var darkColors = palette.contrastDarkColors || [];
-
- // These colors are provided as space-separated lists
- if (typeof lightColors === 'string') lightColors = lightColors.split(' ');
- if (typeof strongLightColors === 'string') strongLightColors = strongLightColors.split(' ');
- if (typeof darkColors === 'string') darkColors = darkColors.split(' ');
-
- // Cleanup after ourselves
- delete palette.contrastDefaultColor;
- delete palette.contrastLightColors;
- delete palette.contrastStrongLightColors;
- delete palette.contrastDarkColors;
-
- // Change { 'A100': '#fffeee' } to { 'A100': { value: '#fffeee', contrast:DARK_CONTRAST_COLOR }
- angular.forEach(palette, function(hueValue, hueName) {
- if (angular.isObject(hueValue)) return; // Already converted
- // Map everything to rgb colors
- var rgbValue = colorToRgbaArray(hueValue);
- if (!rgbValue) {
- throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected."
- .replace('%1', hueValue)
- .replace('%2', palette.name)
- .replace('%3', hueName));
- }
-
- palette[hueName] = {
- value: rgbValue,
- contrast: getContrastColor()
- };
- function getContrastColor() {
- if (defaultContrast === 'light') {
- if (darkColors.indexOf(hueName) > -1) {
- return DARK_CONTRAST_COLOR;
- } else {
- return strongLightColors.indexOf(hueName) > -1 ? STRONG_LIGHT_CONTRAST_COLOR
- : LIGHT_CONTRAST_COLOR;
- }
- } else {
- if (lightColors.indexOf(hueName) > -1) {
- return strongLightColors.indexOf(hueName) > -1 ? STRONG_LIGHT_CONTRAST_COLOR
- : LIGHT_CONTRAST_COLOR;
- } else {
- return DARK_CONTRAST_COLOR;
- }
- }
- }
- });
- }
-
-
-}
-generateThemes.$inject = ["$injector"];
-
-function checkValidPalette(theme, colorType) {
- // If theme attempts to use a palette that doesnt exist, throw error
- if (!PALETTES[ (theme.colors[colorType] || {}).name ]) {
- throw new Error(
- "You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3"
- .replace('%1', theme.name)
- .replace('%2', colorType)
- .replace('%3', Object.keys(PALETTES).join(', '))
- );
- }
-}
-
-function colorToRgbaArray(clr) {
- if (angular.isArray(clr) && clr.length == 3) return clr;
- if (/^rgb/.test(clr)) {
- return clr.replace(/(^\s*rgba?\(|\)\s*$)/g, '').split(',').map(function(value, i) {
- return i == 3 ? parseFloat(value, 10) : parseInt(value, 10);
- });
- }
- if (clr.charAt(0) == '#') clr = clr.substring(1);
- if (!/^([a-fA-F0-9]{3}){1,2}$/g.test(clr)) return;
-
- var dig = clr.length / 3;
- var red = clr.substr(0, dig);
- var grn = clr.substr(dig, dig);
- var blu = clr.substr(dig * 2);
- if (dig === 1) {
- red += red;
- grn += grn;
- blu += blu;
- }
- return [parseInt(red, 16), parseInt(grn, 16), parseInt(blu, 16)];
-}
-
-function rgba(rgbArray, opacity) {
- if ( !rgbArray ) return "rgb('0,0,0')";
-
- if (rgbArray.length == 4) {
- rgbArray = angular.copy(rgbArray);
- opacity ? rgbArray.pop() : opacity = rgbArray.pop();
- }
- return opacity && (typeof opacity == 'number' || (typeof opacity == 'string' && opacity.length)) ?
- 'rgba(' + rgbArray.join(',') + ',' + opacity + ')' :
- 'rgb(' + rgbArray.join(',') + ')';
-}
-
-
-(function(){
-angular.module("material.core").constant("$MD_THEME_CSS", "/* mixin definition ; sets LTR and RTL within the same style call */md-autocomplete.md-THEME_NAME-theme { background: '{{background-50}}'; } md-autocomplete.md-THEME_NAME-theme[disabled] { background: '{{background-100}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions.md-THEME_NAME-theme { background: '{{background-50}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{foreground-4-0.5}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme { border-radius: 3px; } a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button { border-radius: 50%; } a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised { color: '{{background-contrast}}'; background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon { color: '{{background-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover { background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused { background-color: '{{background-200}}'; } a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab { color: '{{warn-contrast}}'; background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon { color: '{{warn-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover { background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused { background-color: '{{warn-700}}'; } a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab { color: '{{accent-contrast}}'; background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused { background-color: '{{accent-700}}'; } a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] { color: '{{foreground-3}}'; cursor: not-allowed; } a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon { color: '{{foreground-3}}'; } a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] { background-color: '{{foreground-4}}'; } a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] { background-color: transparent; }md-card.md-THEME_NAME-theme { background-color: '{{background-color}}'; border-radius: 2px; } md-card.md-THEME_NAME-theme .md-card-image { border-radius: 2px 2px 0 0; }md-checkbox.md-THEME_NAME-theme .md-ripple { color: '{{accent-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before { background-color: '{{accent-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon { background-color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple { color: '{{primary-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon { background-color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before { background-color: '{{primary-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple { color: '{{warn-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon { background-color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before { background-color: '{{warn-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-icon { border-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon { background-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-label { color: '{{foreground-3}}'; }md-chips.md-THEME_NAME-theme .md-chips { box-shadow: 0 1px '{{background-300}}'; } md-chips.md-THEME_NAME-theme .md-chips.md-focused { box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip { background: '{{background-300}}'; color: '{{background-800}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused { background: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon { color: '{{primary-contrast}}'; }md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path { fill: '{{background-500}}'; }.md-contact-suggestion span.md-contact-email { color: '{{background-400}}'; }md-dialog.md-THEME_NAME-theme { border-radius: 4px; background-color: '{{background-color}}'; } md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions { border-top-color: '{{foreground-4}}'; }md-content.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-divider.md-THEME_NAME-theme { border-top-color: '{{foreground-4}}'; }md-input-container.md-THEME_NAME-theme .md-input { color: '{{foreground-1}}'; border-color: '{{foreground-4}}'; text-shadow: '{{foreground-shadow}}'; } md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder { color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme > md-icon { color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder { text-shadow: '{{foreground-shadow}}'; color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label { color: '{{foreground-2}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input { border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input { border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label { color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input { border-bottom-color: transparent; color: '{{foreground-3}}'; background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%); background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-3}}' 100%); }md-icon.md-THEME_NAME-theme { color: '{{foreground-2}}'; } md-icon.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } md-icon.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } md-icon.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-progress-circular.md-THEME_NAME-theme { background-color: transparent; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap { border-top-color: '{{primary-color}}'; border-bottom-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-top-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-right-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle { border-left-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap { border-top-color: '{{warn-color}}'; border-bottom-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-top-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-right-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle { border-left-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap { border-top-color: '{{accent-color}}'; border-bottom-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-top-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-right-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle { border-left-color: '{{accent-color}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 { color: '{{foreground-1}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p { color: '{{foreground-2}}'; }md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style { background-color: '{{background-100}}'; }md-list.md-THEME_NAME-theme md-list-item > md-icon { color: '{{foreground-2}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight { color: '{{primary-color}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent { color: '{{accent-color}}'; }md-list.md-THEME_NAME-theme md-list-item button { background-color: '{{background-color}}'; } md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover { background-color: '{{background-color}}'; }md-progress-linear.md-THEME_NAME-theme .md-container { background-color: '{{primary-100}}'; }md-progress-linear.md-THEME_NAME-theme .md-bar { background-color: '{{primary-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-container { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar { background-color: '{{warn-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-container { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar { background-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before { background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before { background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }md-radio-button.md-THEME_NAME-theme .md-off { border-color: '{{foreground-2}}'; }md-radio-button.md-THEME_NAME-theme .md-on { background-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-off { border-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple { color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme .md-container .md-ripple { color: '{{accent-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on { background-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off { border-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple { color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple { color: '{{primary-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on { background-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off { border-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple { color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple { color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] { color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off { border-color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on { border-color: '{{foreground-3}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before { background-color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before { background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before { background-color: '{{warn-color-0.26}}'; }md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label { color: '{{warn-500}}' !important; border-bottom-color: '{{warn-500}}' !important; }md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label { border-bottom-color: '{{primary-color}}'; color: '{{ foreground-1 }}'; } md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder { color: '{{ foreground-1 }}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label { border-bottom-color: '{{accent-color}}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label { border-bottom-color: '{{warn-color}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-label { color: '{{foreground-3}}'; } md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder { color: '{{foreground-3}}'; }md-select.md-THEME_NAME-theme .md-select-label { border-bottom-color: '{{foreground-4}}'; } md-select.md-THEME_NAME-theme .md-select-label.md-placeholder { color: '{{foreground-2}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup { color: '{{foreground-2}}'; } md-select-menu.md-THEME_NAME-theme md-optgroup md-option { color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] { color: '{{primary-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected]:focus { color: '{{primary-600}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent { color: '{{accent-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus { color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) { background: '{{background-200}}'; }md-sidenav.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track { background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks { background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb { background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring { border-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb { border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track.md-track-fill { background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb:after { border-color: '{{accent-color}}'; background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-sign { background-color: '{{accent-color}}'; } md-slider.md-THEME_NAME-theme .md-sign:after { border-top-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb-text { color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill { background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after { border-color: '{{warn-color}}'; background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-sign { background-color: '{{warn-color}}'; } md-slider.md-THEME_NAME-theme.md-warn .md-sign:after { border-top-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text { color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill { background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after { border-color: '{{primary-color}}'; background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-sign { background-color: '{{primary-color}}'; } md-slider.md-THEME_NAME-theme.md-primary .md-sign:after { border-top-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text { color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after { border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after { background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme { color: '{{ foreground-2-0.23 }}'; background-color: '{{background-color}}'; } .md-subheader.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } .md-subheader.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } .md-subheader.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme .md-thumb { background-color: '{{background-50}}'; }md-switch.md-THEME_NAME-theme .md-bar { background-color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-thumb { background-color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-bar { background-color: '{{accent-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before { background-color: '{{accent-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb { background-color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar { background-color: '{{primary-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before { background-color: '{{primary-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb { background-color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar { background-color: '{{warn-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before { background-color: '{{warn-color-0.26}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-thumb { background-color: '{{background-400}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-bar { background-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: transparent; border-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme .md-paginator md-icon { color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{accent-color}}'; background: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme .md-tab { color: '{{foreground-2}}'; } md-tabs.md-THEME_NAME-theme .md-tab[disabled] { color: '{{foreground-3}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused { color: '{{primary-color}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-focused { background: '{{primary-color-0.1}}'; } md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container { color: '{{accent-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper { background-color: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper { background-color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper { background-color: '{{warn-color}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{primary-color}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{accent-color}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{warn-color}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toast.md-THEME_NAME-theme { background-color: #323232; color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button { color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight { color: '{{primary-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent { color: '{{accent-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn { color: '{{warn-A200}}'; }md-toolbar.md-THEME_NAME-theme { background-color: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme md-icon { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme .md-button { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-accent { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-warn { background-color: '{{warn-color}}'; color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme { color: '{{background-A100}}'; } md-tooltip.md-THEME_NAME-theme .md-background { background-color: '{{foreground-2}}'; }");
-})();
-
-
-ng.material.core = angular.module("material.core"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/default-theme.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/default-theme.js
deleted file mode 100644
index 9ccfb69e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/core/default-theme.js
+++ /dev/null
@@ -1,4 +0,0 @@
-(function(){
-angular.module("material.core").constant("$MD_THEME_CSS", "/* mixin definition ; sets LTR and RTL within the same style call */md-autocomplete.md-THEME_NAME-theme { background: '{{background-50}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions.md-THEME_NAME-theme { background: '{{background-50}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{foreground-4-0.5}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme { border-radius: 3px; } a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button { border-radius: 50%; } a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised { color: '{{background-contrast}}'; background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon { color: '{{background-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover { background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused { background-color: '{{background-200}}'; } a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab { color: '{{warn-contrast}}'; background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon { color: '{{warn-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover { background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused { background-color: '{{warn-700}}'; } a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab { color: '{{accent-contrast}}'; background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused { background-color: '{{accent-700}}'; } a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] { color: '{{foreground-3}}'; cursor: not-allowed; } a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon { color: '{{foreground-3}}'; } a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] { background-color: '{{foreground-4}}'; } a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] { background-color: transparent; }md-card.md-THEME_NAME-theme { background-color: '{{background-color}}'; border-radius: 2px; } md-card.md-THEME_NAME-theme .md-card-image { border-radius: 2px 2px 0 0; }md-checkbox.md-THEME_NAME-theme .md-ripple { color: '{{accent-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before { background-color: '{{accent-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon { background-color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple { color: '{{primary-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon { background-color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before { background-color: '{{primary-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple { color: '{{warn-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon { background-color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before { background-color: '{{warn-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-icon { border-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon { background-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-label { color: '{{foreground-3}}'; }md-chips.md-THEME_NAME-theme .md-chips { box-shadow: 0 1px '{{background-300}}'; } md-chips.md-THEME_NAME-theme .md-chips.md-focused { box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip { background: '{{background-300}}'; color: '{{background-800}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused { background: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon { color: '{{primary-contrast}}'; }md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path { fill: '{{background-500}}'; }.md-contact-suggestion span.md-contact-email { color: '{{background-400}}'; }md-content.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-dialog.md-THEME_NAME-theme { border-radius: 4px; background-color: '{{background-color}}'; } md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions { border-top-color: '{{foreground-4}}'; }md-divider.md-THEME_NAME-theme { border-top-color: '{{foreground-4}}'; }md-icon.md-THEME_NAME-theme { color: '{{foreground-2}}'; } md-icon.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } md-icon.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } md-icon.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-input-container.md-THEME_NAME-theme .md-input { color: '{{foreground-1}}'; border-color: '{{foreground-4}}'; text-shadow: '{{foreground-shadow}}'; } md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder { color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme > md-icon { color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder { text-shadow: '{{foreground-shadow}}'; color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label { color: '{{foreground-2}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input { border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input { border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label { color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input { border-bottom-color: transparent; color: '{{foreground-3}}'; background-image: linear-gradient(to right, '{{foreground-4}}' 0%, '{{foreground-4}}' 33%, transparent 0%); background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-4}}' 100%); }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 { color: '{{foreground-1}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p { color: '{{foreground-2}}'; }md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style { background-color: '{{background-100}}'; }md-list.md-THEME_NAME-theme md-list-item > md-icon { color: '{{foreground-2}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight { color: '{{primary-color}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent { color: '{{accent-color}}'; }md-list.md-THEME_NAME-theme md-list-item button { background-color: '{{background-color}}'; } md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover { background-color: '{{background-color}}'; }md-progress-circular.md-THEME_NAME-theme { background-color: transparent; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap { border-top-color: '{{primary-color}}'; border-bottom-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-top-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-right-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle { border-left-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap { border-top-color: '{{warn-color}}'; border-bottom-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-top-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-right-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle { border-left-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap { border-top-color: '{{accent-color}}'; border-bottom-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-top-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-right-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle { border-left-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme .md-container { background-color: '{{primary-100}}'; }md-progress-linear.md-THEME_NAME-theme .md-bar { background-color: '{{primary-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-container { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar { background-color: '{{warn-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-container { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar { background-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before { background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before { background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }md-radio-button.md-THEME_NAME-theme .md-off { border-color: '{{foreground-2}}'; }md-radio-button.md-THEME_NAME-theme .md-on { background-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-off { border-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple { color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme .md-container .md-ripple { color: '{{accent-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on { background-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off { border-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple { color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple { color: '{{primary-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on { background-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off { border-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple { color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple { color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] { color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off { border-color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on { border-color: '{{foreground-3}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before { background-color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before { background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before { background-color: '{{warn-color-0.26}}'; }md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label { color: '{{warn-500}}' !important; border-bottom-color: '{{warn-500}}' !important; }md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label { border-bottom-color: '{{primary-color}}'; color: '{{ foreground-1 }}'; } md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder { color: '{{ foreground-1 }}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label { border-bottom-color: '{{accent-color}}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label { border-bottom-color: '{{warn-color}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-label { color: '{{foreground-3}}'; } md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder { color: '{{foreground-3}}'; }md-select.md-THEME_NAME-theme .md-select-label { border-bottom-color: '{{foreground-4}}'; } md-select.md-THEME_NAME-theme .md-select-label.md-placeholder { color: '{{foreground-2}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup { color: '{{foreground-2}}'; } md-select-menu.md-THEME_NAME-theme md-optgroup md-option { color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] { color: '{{primary-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected]:focus { color: '{{primary-600}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent { color: '{{accent-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus { color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) { background: '{{background-200}}'; }md-sidenav.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track { background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks { background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb { background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring { border-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb { border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track.md-track-fill { background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb:after { border-color: '{{accent-color}}'; background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-sign { background-color: '{{accent-color}}'; } md-slider.md-THEME_NAME-theme .md-sign:after { border-top-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb-text { color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill { background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after { border-color: '{{warn-color}}'; background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-sign { background-color: '{{warn-color}}'; } md-slider.md-THEME_NAME-theme.md-warn .md-sign:after { border-top-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text { color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill { background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after { border-color: '{{primary-color}}'; background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-sign { background-color: '{{primary-color}}'; } md-slider.md-THEME_NAME-theme.md-primary .md-sign:after { border-top-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text { color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after { border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after { background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme { color: '{{ foreground-2-0.23 }}'; background-color: '{{background-color}}'; } .md-subheader.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } .md-subheader.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } .md-subheader.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme .md-thumb { background-color: '{{background-50}}'; }md-switch.md-THEME_NAME-theme .md-bar { background-color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-thumb { background-color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-bar { background-color: '{{accent-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before { background-color: '{{accent-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb { background-color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar { background-color: '{{primary-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before { background-color: '{{primary-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb { background-color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar { background-color: '{{warn-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before { background-color: '{{warn-color-0.26}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-thumb { background-color: '{{background-400}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-bar { background-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: transparent; border-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme .md-paginator md-icon { color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{accent-color}}'; background: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme .md-tab { color: '{{foreground-2}}'; } md-tabs.md-THEME_NAME-theme .md-tab[disabled] { color: '{{foreground-3}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused { color: '{{primary-color}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-focused { background: '{{primary-color-0.1}}'; } md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container { color: '{{accent-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper { background-color: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper { background-color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper { background-color: '{{warn-color}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{primary-color}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{accent-color}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{warn-color}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toast.md-THEME_NAME-theme { background-color: #323232; color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button { color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight { color: '{{primary-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent { color: '{{accent-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn { color: '{{warn-A200}}'; }md-toolbar.md-THEME_NAME-theme { background-color: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme md-icon { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme .md-button { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-accent { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-warn { background-color: '{{warn-color}}'; color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme { color: '{{background-A100}}'; } md-tooltip.md-THEME_NAME-theme .md-background { background-color: '{{foreground-2}}'; }");
-})();
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog-default-theme.css
deleted file mode 100644
index d69b1259..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog-default-theme.css
+++ /dev/null
@@ -1,12 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-dialog.md-THEME_NAME-theme {
- border-radius: 4px;
- background-color: '{{background-color}}'; }
- md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions {
- border-top-color: '{{foreground-4}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog.css
deleted file mode 100644
index 12cc2a57..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog.css
+++ /dev/null
@@ -1,111 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-dialog-is-showing {
- max-height: 100%; }
-
-.md-dialog-container {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 80; }
-
-md-dialog {
- opacity: 0;
- min-width: 240px;
- max-width: 80%;
- max-height: 80%;
- position: relative;
- overflow: hidden;
- box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.14), 0px 16px 24px 2px rgba(0, 0, 0, 0.098), 0px 6px 30px 5px rgba(0, 0, 0, 0.084);
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- md-dialog.transition-in {
- opacity: 1;
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate3d(0, 0, 0) scale(1);
- transform: translate3d(0, 0, 0) scale(1); }
- md-dialog.transition-out {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate3d(0, 100%, 0) scale(0.2);
- transform: translate3d(0, 100%, 0) scale(0.2); }
- md-dialog > form {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- overflow: auto; }
- md-dialog md-dialog-content {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- padding: 24px;
- overflow: auto;
- -webkit-overflow-scrolling: touch; }
- md-dialog md-dialog-content:not([layout=row]) > *:first-child:not(.md-subheader) {
- margin-top: 0; }
- md-dialog md-dialog-content:focus {
- outline: none; }
- md-dialog md-dialog-content .md-subheader {
- margin: 0; }
- md-dialog md-dialog-content .md-subheader.sticky-clone {
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16); }
- md-dialog md-dialog-content.sticky-container {
- padding: 0; }
- md-dialog md-dialog-content.sticky-container > div {
- padding: 24px;
- padding-top: 0; }
- md-dialog .md-actions {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2;
- box-sizing: border-box;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end;
- margin-bottom: 0;
- padding-right: 8px;
- padding-left: 16px;
- min-height: 52px; }
- md-dialog .md-actions .md-button {
- margin-bottom: 8px;
- margin-left: 8px;
- margin-right: 0;
- margin-top: 8px; }
- md-dialog.md-content-overflow .md-actions {
- border-top-width: 1px;
- border-top-style: solid; }
-
-@media screen and (-ms-high-contrast: active) {
- md-dialog {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog.js
deleted file mode 100644
index 31db8102..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/dialog/dialog.js
+++ /dev/null
@@ -1,713 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.dialog');
-goog.require('ng.material.components.backdrop');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.dialog
- */
-angular.module('material.components.dialog', [
- 'material.core',
- 'material.components.backdrop'
-])
- .directive('mdDialog', MdDialogDirective)
- .provider('$mdDialog', MdDialogProvider);
-
-function MdDialogDirective($$rAF, $mdTheming) {
- return {
- restrict: 'E',
- link: function(scope, element, attr) {
- $mdTheming(element);
- $$rAF(function() {
- var content = element[0].querySelector('md-dialog-content');
- if (content && content.scrollHeight > content.clientHeight) {
- element.addClass('md-content-overflow');
- }
- });
- }
- };
-}
-MdDialogDirective.$inject = ["$$rAF", "$mdTheming"];
-
-/**
- * @ngdoc service
- * @name $mdDialog
- * @module material.components.dialog
- *
- * @description
- * `$mdDialog` opens a dialog over the app to inform users about critical information or require
- * them to make decisions. There are two approaches for setup: a simple promise API
- * and regular object syntax.
- *
- * ## Restrictions
- *
- * - The dialog is always given an isolate scope.
- * - The dialog's template must have an outer `<md-dialog>` element.
- * Inside, use an `<md-dialog-content>` element for the dialog's content, and use
- * an element with class `md-actions` for the dialog's actions.
- * - Dialogs must cover the entire application to keep interactions inside of them.
- * Use the `parent` option to change where dialogs are appended.
- *
- * ## Sizing
- * - Complex dialogs can be sized with `flex="percentage"`, i.e. `flex="66"`.
- * - Default max-width is 80% of the `rootElement` or `parent`.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-app="demoApp" ng-controller="EmployeeController">
- * <div>
- * <md-button ng-click="showAlert()" class="md-raised md-warn">
- * Employee Alert!
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="showDialog($event)" class="md-raised">
- * Custom Dialog
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="closeAlert()" ng-disabled="!hasAlert()" class="md-raised">
- * Close Alert
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="showGreeting($event)" class="md-raised md-primary" >
- * Greet Employee
- * </md-button>
- * </div>
- * </div>
- * </hljs>
- *
- * ### JavaScript: object syntax
- * <hljs lang="js">
- * (function(angular, undefined){
- * "use strict";
- *
- * angular
- * .module('demoApp', ['ngMaterial'])
- * .controller('AppCtrl', AppController);
- *
- * function AppController($scope, $mdDialog) {
- * var alert;
- * $scope.showAlert = showAlert;
- * $scope.showDialog = showDialog;
- * $scope.items = [1, 2, 3];
- *
- * // Internal method
- * function showAlert() {
- * alert = $mdDialog.alert({
- * title: 'Attention',
- * content: 'This is an example of how easy dialogs can be!',
- * ok: 'Close'
- * });
- *
- * $mdDialog
- * .show( alert )
- * .finally(function() {
- * alert = undefined;
- * });
- * }
- *
- * function showDialog($event) {
- * var parentEl = angular.element(document.body);
- * $mdDialog.show({
- * parent: parentEl,
- * targetEvent: $event,
- * template:
- * '<md-dialog aria-label="List dialog">' +
- * ' <md-dialog-content>'+
- * ' <md-list>'+
- * ' <md-list-item ng-repeat="item in items">'+
- * ' <p>Number {{item}}</p>' +
- * ' </md-item>'+
- * ' </md-list>'+
- * ' </md-dialog-content>' +
- * ' <div class="md-actions">' +
- * ' <md-button ng-click="closeDialog()" class="md-primary">' +
- * ' Close Dialog' +
- * ' </md-button>' +
- * ' </div>' +
- * '</md-dialog>',
- * locals: {
- * items: $scope.items
- * },
- * controller: DialogController
- * });
- * function DialogController($scope, $mdDialog, items) {
- * $scope.items = items;
- * $scope.closeDialog = function() {
- * $mdDialog.hide();
- * }
- * }
- * }
- * }
- * })(angular);
- * </hljs>
- *
- * ### JavaScript: promise API syntax, custom dialog template
- * <hljs lang="js">
- * (function(angular, undefined){
- * "use strict";
- *
- * angular
- * .module('demoApp', ['ngMaterial'])
- * .controller('EmployeeController', EmployeeEditor)
- * .controller('GreetingController', GreetingController);
- *
- * // Fictitious Employee Editor to show how to use simple and complex dialogs.
- *
- * function EmployeeEditor($scope, $mdDialog) {
- * var alert;
- *
- * $scope.showAlert = showAlert;
- * $scope.closeAlert = closeAlert;
- * $scope.showGreeting = showCustomGreeting;
- *
- * $scope.hasAlert = function() { return !!alert };
- * $scope.userName = $scope.userName || 'Bobby';
- *
- * // Dialog #1 - Show simple alert dialog and cache
- * // reference to dialog instance
- *
- * function showAlert() {
- * alert = $mdDialog.alert()
- * .title('Attention, ' + $scope.userName)
- * .content('This is an example of how easy dialogs can be!')
- * .ok('Close');
- *
- * $mdDialog
- * .show( alert )
- * .finally(function() {
- * alert = undefined;
- * });
- * }
- *
- * // Close the specified dialog instance and resolve with 'finished' flag
- * // Normally this is not needed, just use '$mdDialog.hide()' to close
- * // the most recent dialog popup.
- *
- * function closeAlert() {
- * $mdDialog.hide( alert, "finished" );
- * alert = undefined;
- * }
- *
- * // Dialog #2 - Demonstrate more complex dialogs construction and popup.
- *
- * function showCustomGreeting($event) {
- * $mdDialog.show({
- * targetEvent: $event,
- * template:
- * '<md-dialog>' +
- *
- * ' <md-dialog-content>Hello {{ employee }}!</md-dialog-content>' +
- *
- * ' <div class="md-actions">' +
- * ' <md-button ng-click="closeDialog()" class="md-primary">' +
- * ' Close Greeting' +
- * ' </md-button>' +
- * ' </div>' +
- * '</md-dialog>',
- * controller: 'GreetingController',
- * onComplete: afterShowAnimation,
- * locals: { employee: $scope.userName }
- * });
- *
- * // When the 'enter' animation finishes...
- *
- * function afterShowAnimation(scope, element, options) {
- * // post-show code here: DOM element focus, etc.
- * }
- * }
- *
- * // Dialog #3 - Demonstrate use of ControllerAs and passing $scope to dialog
- * // Here we used ng-controller="GreetingController as vm" and
- * // $scope.vm === <controller instance>
- *
- * function showCustomGreeting() {
- *
- * $mdDialog.show({
- * clickOutsideToClose: true,
- *
- * scope: $scope, // use parent scope in template
- * preserveScope: true, // do not forget this if use parent scope
-
- * // Since GreetingController is instantiated with ControllerAs syntax
- * // AND we are passing the parent '$scope' to the dialog, we MUST
- * // use 'vm.<xxx>' in the template markup
- *
- * template: '<md-dialog>' +
- * ' <md-dialog-content>' +
- * ' Hi There {{vm.employee}}' +
- * ' </md-dialog-content>' +
- * '</md-dialog>',
- *
- * controller: function DialogController($scope, $mdDialog) {
- * $scope.closeDialog = function() {
- * $mdDialog.hide();
- * }
- * }
- * });
- * }
- *
- * }
- *
- * // Greeting controller used with the more complex 'showCustomGreeting()' custom dialog
- *
- * function GreetingController($scope, $mdDialog, employee) {
- * // Assigned from construction <code>locals</code> options...
- * $scope.employee = employee;
- *
- * $scope.closeDialog = function() {
- * // Easily hides most recent dialog shown...
- * // no specific instance reference is needed.
- * $mdDialog.hide();
- * };
- * }
- *
- * })(angular);
- * </hljs>
- */
-
- /**
- * @ngdoc method
- * @name $mdDialog#alert
- *
- * @description
- * Builds a preconfigured dialog with the specified message.
- *
- * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
- *
- * - $mdDialogPreset#title(string) - sets title to string
- * - $mdDialogPreset#content(string) - sets content / message to string
- * - $mdDialogPreset#ok(string) - sets okay button text to string
- * - $mdDialogPreset#theme(string) - sets the theme of the dialog
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdDialog#confirm
- *
- * @description
- * Builds a preconfigured dialog with the specified message. You can call show and the promise returned
- * will be resolved only if the user clicks the confirm action on the dialog.
- *
- * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
- *
- * Additionally, it supports the following methods:
- *
- * - $mdDialogPreset#title(string) - sets title to string
- * - $mdDialogPreset#content(string) - sets content / message to string
- * - $mdDialogPreset#ok(string) - sets okay button text to string
- * - $mdDialogPreset#cancel(string) - sets cancel button text to string
- * - $mdDialogPreset#theme(string) - sets the theme of the dialog
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#show
- *
- * @description
- * Show a dialog with the specified options.
- *
- * @param {object} optionsOrPreset Either provide an `$mdDialogPreset` returned from `alert()`, and
- * `confirm()`, or an options object with the following properties:
- * - `templateUrl` - `{string=}`: The url of a template that will be used as the content
- * of the dialog.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual template string.
- * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
- * the location of the click will be used as the starting point for the opening animation
- * of the the dialog.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified,
- * it will create a new isolate scope.
- * This scope will be destroyed when the dialog is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the dialog is open.
- * Default true.
- * - `hasBackdrop` - `{boolean=}`: Whether there should be an opaque backdrop behind the dialog.
- * Default true.
- * - `clickOutsideToClose` - `{boolean=}`: Whether the user can click outside the dialog to
- * close it. Default false.
- * - `escapeToClose` - `{boolean=}`: Whether the user can press escape to close the dialog.
- * Default true.
- * - `focusOnOpen` - `{boolean=}`: An option to override focus behavior on open. Only disable if
- * focusing some other way, as focus management is required for dialogs to be accessible.
- * Defaults to true.
- * - `controller` - `{string=}`: The controller to associate with the dialog. The controller
- * will be injected with the local `$mdDialog`, which passes along a scope for the dialog.
- * - `locals` - `{object=}`: An object containing key/value pairs. The keys will be used as names
- * of values to inject into the controller. For example, `locals: {three: 3}` would inject
- * `three` into the controller, with the value 3. If `bindToController` is true, they will be
- * copied to the controller instead.
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in.
- * These values will not be available until after initialization.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values, and the
- * dialog will not open until all of the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the dialog to. Defaults to appending
- * to the root element of the application.
- * - `onComplete` `{function=}`: Callback function used to announce when the show() action is
- * finished.
- *
- * @returns {promise} A promise that can be resolved with `$mdDialog.hide()` or
- * rejected with `$mdDialog.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#hide
- *
- * @description
- * Hide an existing dialog and resolve the promise returned from `$mdDialog.show()`.
- *
- * @param {*=} response An argument for the resolved promise.
- *
- * @returns {promise} A promise that is resolved when the dialog has been closed.
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#cancel
- *
- * @description
- * Hide an existing dialog and reject the promise returned from `$mdDialog.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- * @returns {promise} A promise that is resolved when the dialog has been closed.
- */
-
-function MdDialogProvider($$interimElementProvider) {
-
- var alertDialogMethods = ['title', 'content', 'ariaLabel', 'ok'];
-
- advancedDialogOptions.$inject = ["$mdDialog", "$mdTheming"];
- dialogDefaultOptions.$inject = ["$mdAria", "$document", "$mdUtil", "$mdConstant", "$mdTheming", "$mdDialog", "$timeout", "$rootElement", "$animate", "$$rAF", "$q"];
- return $$interimElementProvider('$mdDialog')
- .setDefaults({
- methods: ['disableParentScroll', 'hasBackdrop', 'clickOutsideToClose', 'escapeToClose', 'targetEvent', 'parent'],
- options: dialogDefaultOptions
- })
- .addPreset('alert', {
- methods: ['title', 'content', 'ariaLabel', 'ok', 'theme'],
- options: advancedDialogOptions
- })
- .addPreset('confirm', {
- methods: ['title', 'content', 'ariaLabel', 'ok', 'cancel', 'theme'],
- options: advancedDialogOptions
- });
-
- /* ngInject */
- function advancedDialogOptions($mdDialog, $mdTheming) {
- return {
- template: [
- '<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}">',
- '<md-dialog-content role="document" tabIndex="-1">',
- '<h2 class="md-title">{{ dialog.title }}</h2>',
- '<p>{{ dialog.content }}</p>',
- '</md-dialog-content>',
- '<div class="md-actions">',
- '<md-button ng-if="dialog.$type == \'confirm\'"' +
- ' ng-click="dialog.abort()" class="md-primary">',
- '{{ dialog.cancel }}',
- '</md-button>',
- '<md-button ng-click="dialog.hide()" class="md-primary">',
- '{{ dialog.ok }}',
- '</md-button>',
- '</div>',
- '</md-dialog>'
- ].join(''),
- controller: function mdDialogCtrl() {
- this.hide = function() {
- $mdDialog.hide(true);
- };
- this.abort = function() {
- $mdDialog.cancel();
- };
- },
- controllerAs: 'dialog',
- bindToController: true,
- theme: $mdTheming.defaultTheme()
- };
- }
-
- /* ngInject */
- function dialogDefaultOptions($mdAria, $document, $mdUtil, $mdConstant, $mdTheming, $mdDialog, $timeout, $rootElement, $animate, $$rAF, $q) {
- return {
- hasBackdrop: true,
- isolateScope: true,
- onShow: onShow,
- onRemove: onRemove,
- clickOutsideToClose: false,
- escapeToClose: true,
- targetEvent: null,
- focusOnOpen: true,
- disableParentScroll: true,
- transformTemplate: function(template) {
- return '<div class="md-dialog-container">' + template + '</div>';
- }
- };
-
- function trapFocus(ev) {
- var dialog = document.querySelector('md-dialog');
-
- if (dialog && !dialog.contains(ev.target)) {
- ev.stopImmediatePropagation();
- dialog.focus();
- }
- }
-
- // On show method for dialogs
- function onShow(scope, element, options) {
- angular.element($document[0].body).addClass('md-dialog-is-showing');
- element = $mdUtil.extractElementByName(element, 'md-dialog');
-
- // Incase the user provides a raw dom element, always wrap it in jqLite
- options.parent = angular.element(options.parent);
-
- options.popInTarget = angular.element((options.targetEvent || {}).target);
- var closeButton = findCloseButton();
-
- if (options.hasBackdrop) {
- // Fix for IE 10
- var computeFrom = (options.parent[0] == $document[0].body && $document[0].documentElement
- && $document[0].documentElement.scrollTop) ? angular.element($document[0].documentElement) : options.parent;
- var parentOffset = computeFrom.prop('scrollTop');
- options.backdrop = angular.element('<md-backdrop class="md-dialog-backdrop md-opaque">');
- options.backdrop.css('top', parentOffset +'px');
- $mdTheming.inherit(options.backdrop, options.parent);
- $animate.enter(options.backdrop, options.parent);
- element.css('top', parentOffset +'px');
- }
-
- var role = 'dialog',
- elementToFocus = closeButton;
-
- if (options.$type === 'alert') {
- role = 'alertdialog';
- elementToFocus = element.find('md-dialog-content');
- }
-
- configureAria(element.find('md-dialog'), role, options);
-
- document.addEventListener('focus', trapFocus, true);
-
- if (options.disableParentScroll) {
- options.lastOverflow = options.parent.css('overflow');
- options.parent.css('overflow', 'hidden');
- }
-
- return dialogPopIn(
- element,
- options.parent,
- options.popInTarget && options.popInTarget.length && options.popInTarget
- )
- .then(function() {
-
- applyAriaToSiblings(element, true);
-
- if (options.escapeToClose) {
- options.rootElementKeyupCallback = function(e) {
- if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
- $timeout($mdDialog.cancel);
- }
- };
- $rootElement.on('keyup', options.rootElementKeyupCallback);
- }
-
- if (options.clickOutsideToClose) {
- options.dialogClickOutsideCallback = function(ev) {
- // Only close if we click the flex container outside the backdrop
- if (ev.target === element[0]) {
- $timeout($mdDialog.cancel);
- }
- };
- element.on('click', options.dialogClickOutsideCallback);
- }
-
- if (options.focusOnOpen) {
- elementToFocus.focus();
- }
- });
-
-
- function findCloseButton() {
- //If no element with class dialog-close, try to find the last
- //button child in md-actions and assume it is a close button
- var closeButton = element[0].querySelector('.dialog-close');
- if (!closeButton) {
- var actionButtons = element[0].querySelectorAll('.md-actions button');
- closeButton = actionButtons[ actionButtons.length - 1 ];
- }
- return angular.element(closeButton);
- }
-
- }
-
- // On remove function for all dialogs
- function onRemove(scope, element, options) {
- angular.element($document[0].body).removeClass('md-dialog-is-showing');
-
- if (options.backdrop) {
- $animate.leave(options.backdrop);
- }
- if (options.disableParentScroll) {
- options.parent.css('overflow', options.lastOverflow);
- delete options.lastOverflow;
- }
- if (options.escapeToClose) {
- $rootElement.off('keyup', options.rootElementKeyupCallback);
- }
- if (options.clickOutsideToClose) {
- element.off('click', options.dialogClickOutsideCallback);
- }
-
- applyAriaToSiblings(element, false);
-
- document.removeEventListener('focus', trapFocus, true);
-
- return dialogPopOut(
- element,
- options.parent,
- options.popInTarget && options.popInTarget.length && options.popInTarget
- ).then(function() {
- element.remove();
- options.popInTarget && options.popInTarget.focus();
- });
-
- }
-
- /**
- * Inject ARIA-specific attributes appropriate for Dialogs
- */
- function configureAria(element, role, options) {
-
- element.attr({
- 'role': role,
- 'tabIndex': '-1'
- });
-
- var dialogContent = element.find('md-dialog-content');
- if (dialogContent.length === 0){
- dialogContent = element;
- }
-
- var dialogId = element.attr('id') || ('dialog_' + $mdUtil.nextUid());
- dialogContent.attr('id', dialogId);
- element.attr('aria-describedby', dialogId);
-
- if (options.ariaLabel) {
- $mdAria.expect(element, 'aria-label', options.ariaLabel);
- }
- else {
- $mdAria.expectAsync(element, 'aria-label', function() {
- var words = dialogContent.text().split(/\s+/);
- if (words.length > 3) words = words.slice(0,3).concat('...');
- return words.join(' ');
- });
- }
- }
- /**
- * Utility function to filter out raw DOM nodes
- */
- function isNodeOneOf(elem, nodeTypeArray) {
- if (nodeTypeArray.indexOf(elem.nodeName) !== -1) {
- return true;
- }
- }
- /**
- * Walk DOM to apply or remove aria-hidden on sibling nodes
- * and parent sibling nodes
- *
- * Prevents screen reader interaction behind modal window
- * on swipe interfaces
- */
- function applyAriaToSiblings(element, value) {
- var attribute = 'aria-hidden';
-
- // get raw DOM node
- element = element[0];
-
- function walkDOM(element) {
- while (element.parentNode) {
- if (element === document.body) {
- return;
- }
- var children = element.parentNode.children;
- for (var i = 0; i < children.length; i++) {
- // skip over child if it is an ascendant of the dialog
- // or a script or style tag
- if (element !== children[i] && !isNodeOneOf(children[i], ['SCRIPT', 'STYLE'])) {
- children[i].setAttribute(attribute, value);
- }
- }
-
- walkDOM(element = element.parentNode);
- }
- }
- walkDOM(element);
- }
-
- function dialogPopIn(container, parentElement, clickElement) {
- var dialogEl = container.find('md-dialog');
-
- parentElement.append(container);
- transformToClickElement(dialogEl, clickElement);
-
- $$rAF(function() {
- dialogEl.addClass('transition-in')
- .css($mdConstant.CSS.TRANSFORM, '');
- });
-
- return $mdUtil.transitionEndPromise(dialogEl);
- }
-
- function dialogPopOut(container, parentElement, clickElement) {
- var dialogEl = container.find('md-dialog');
-
- dialogEl.addClass('transition-out').removeClass('transition-in');
- transformToClickElement(dialogEl, clickElement);
-
- return $mdUtil.transitionEndPromise(dialogEl);
- }
-
- function transformToClickElement(dialogEl, clickElement) {
- if (clickElement) {
- var clickRect = clickElement[0].getBoundingClientRect();
- var dialogRect = dialogEl[0].getBoundingClientRect();
-
- var scaleX = Math.min(0.5, clickRect.width / dialogRect.width);
- var scaleY = Math.min(0.5, clickRect.height / dialogRect.height);
-
- dialogEl.css($mdConstant.CSS.TRANSFORM, 'translate3d(' +
- (-dialogRect.left + clickRect.left + clickRect.width/2 - dialogRect.width/2) + 'px,' +
- (-dialogRect.top + clickRect.top + clickRect.height/2 - dialogRect.height/2) + 'px,' +
- '0) scale(' + scaleX + ',' + scaleY + ')'
- );
- }
- }
-
- function dialogTransitionEnd(dialogEl) {
- var deferred = $q.defer();
- dialogEl.on($mdConstant.CSS.TRANSITIONEND, finished);
- function finished(ev) {
- //Make sure this transitionend didn't bubble up from a child
- if (ev.target === dialogEl[0]) {
- dialogEl.off($mdConstant.CSS.TRANSITIONEND, finished);
- deferred.resolve();
- }
- }
- return deferred.promise;
- }
-
- }
-}
-MdDialogProvider.$inject = ["$$interimElementProvider"];
-
-ng.material.components.dialog = angular.module("material.components.dialog"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider-default-theme.css
deleted file mode 100644
index 4e2fb829..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider-default-theme.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-divider.md-THEME_NAME-theme {
- border-top-color: '{{foreground-4}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider.css
deleted file mode 100644
index 270c06b5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider.css
+++ /dev/null
@@ -1,14 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-divider {
- display: block;
- border-top-width: 1px;
- border-top-style: solid;
- margin: 0; }
- md-divider[md-inset] {
- margin-left: 80px; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider.js
deleted file mode 100644
index a5add8d6..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/divider/divider.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.divider');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.divider
- * @description Divider module!
- */
-angular.module('material.components.divider', [
- 'material.core'
-])
- .directive('mdDivider', MdDividerDirective);
-
-/**
- * @ngdoc directive
- * @name mdDivider
- * @module material.components.divider
- * @restrict E
- *
- * @description
- * Dividers group and separate content within lists and page layouts using strong visual and spatial distinctions. This divider is a thin rule, lightweight enough to not distract the user from content.
- *
- * @param {boolean=} md-inset Add this attribute to activate the inset divider style.
- * @usage
- * <hljs lang="html">
- * <md-divider></md-divider>
- *
- * <md-divider md-inset></md-divider>
- * </hljs>
- *
- */
-function MdDividerDirective($mdTheming) {
- return {
- restrict: 'E',
- link: $mdTheming
- };
-}
-MdDividerDirective.$inject = ["$mdTheming"];
-
-ng.material.components.divider = angular.module("material.components.divider"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList-default-theme.css
deleted file mode 100644
index fd2a8dc0..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList-default-theme.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.8.0-rc1-master-91053dc
- */
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList.css
deleted file mode 100644
index 2705de84..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList.css
+++ /dev/null
@@ -1,68 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-grid-list {
- box-sizing: border-box;
- display: block;
- position: relative; }
- md-grid-list *, md-grid-list *:before, md-grid-list *:after {
- box-sizing: border-box; }
- md-grid-list md-grid-tile {
- display: block;
- position: absolute; }
- md-grid-list md-grid-tile figure {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- height: 100%;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 0;
- margin: 0; }
- md-grid-list md-grid-tile md-grid-tile-header, md-grid-list md-grid-tile md-grid-tile-footer {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- height: 48px;
- color: #fff;
- background: rgba(0, 0, 0, 0.18);
- overflow: hidden;
- position: absolute;
- left: 0;
- right: 0; }
- md-grid-list md-grid-tile md-grid-tile-header h3, md-grid-list md-grid-tile md-grid-tile-header h4, md-grid-list md-grid-tile md-grid-tile-footer h3, md-grid-list md-grid-tile md-grid-tile-footer h4 {
- font-weight: 400;
- margin: 0 0 0 16px; }
- md-grid-list md-grid-tile md-grid-tile-header h3, md-grid-list md-grid-tile md-grid-tile-footer h3 {
- font-size: 14px; }
- md-grid-list md-grid-tile md-grid-tile-header h4, md-grid-list md-grid-tile md-grid-tile-footer h4 {
- font-size: 12px; }
- md-grid-list md-grid-tile md-grid-tile-header {
- top: 0; }
- md-grid-list md-grid-tile md-grid-tile-footer {
- bottom: 0; }
-
-@media screen and (-ms-high-contrast: active) {
- md-grid-tile {
- border: 1px solid #fff; }
- md-grid-tile-footer {
- border-top: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList.js
deleted file mode 100644
index 575219c1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/gridList/gridList.js
+++ /dev/null
@@ -1,762 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.gridList');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.gridList
- */
-angular.module('material.components.gridList', ['material.core'])
- .directive('mdGridList', GridListDirective)
- .directive('mdGridTile', GridTileDirective)
- .directive('mdGridTileFooter', GridTileCaptionDirective)
- .directive('mdGridTileHeader', GridTileCaptionDirective)
- .factory('$mdGridLayout', GridLayoutFactory);
-
-/**
- * @ngdoc directive
- * @name mdGridList
- * @module material.components.gridList
- * @restrict E
- * @description
- * Grid lists are an alternative to standard list views. Grid lists are distinct
- * from grids used for layouts and other visual presentations.
- *
- * A grid list is best suited to presenting a homogenous data type, typically
- * images, and is optimized for visual comprehension and differentiating between
- * like data types.
- *
- * A grid list is a continuous element consisting of tessellated, regular
- * subdivisions called cells that contain tiles (`md-grid-tile`).
- *
- * <img src="//material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7OVlEaXZ5YmU1Xzg/components_grids_usage2.png"
- * style="width: 300px; height: auto; margin-right: 16px;" alt="Concept of grid explained visually">
- * <img src="//material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7VGhsOE5idWlJWXM/components_grids_usage3.png"
- * style="width: 300px; height: auto;" alt="Grid concepts legend">
- *
- * Cells are arrayed vertically and horizontally within the grid.
- *
- * Tiles hold content and can span one or more cells vertically or horizontally.
- *
- * ### Responsive Attributes
- *
- * The `md-grid-list` directive supports "responsive" attributes, which allow
- * different `md-cols`, `md-gutter` and `md-row-height` values depending on the
- * currently matching media query (as defined in `$mdConstant.MEDIA`).
- *
- * In order to set a responsive attribute, first define the fallback value with
- * the standard attribute name, then add additional attributes with the
- * following convention: `{base-attribute-name}-{media-query-name}="{value}"`
- * (ie. `md-cols-lg="8"`)
- *
- * @param {number} md-cols Number of columns in the grid.
- * @param {string} md-row-height One of
- * <ul>
- * <li>CSS length - Fixed height rows (eg. `8px` or `1rem`)</li>
- * <li>`{width}:{height}` - Ratio of width to height (eg.
- * `md-row-height="16:9"`)</li>
- * <li>`"fit"` - Height will be determined by subdividing the available
- * height by the number of rows</li>
- * </ul>
- * @param {string=} md-gutter The amount of space between tiles in CSS units
- * (default 1px)
- * @param {expression=} md-on-layout Expression to evaluate after layout. Event
- * object is available as `$event`, and contains performance information.
- *
- * @usage
- * Basic:
- * <hljs lang="html">
- * <md-grid-list md-cols="5" md-gutter="1em" md-row-height="4:3">
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Fixed-height rows:
- * <hljs lang="html">
- * <md-grid-list md-cols="4" md-row-height="200px" ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Fit rows:
- * <hljs lang="html">
- * <md-grid-list md-cols="4" md-row-height="fit" style="height: 400px;" ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Using responsive attributes:
- * <hljs lang="html">
- * <md-grid-list
- * md-cols-sm="2"
- * md-cols-md="4"
- * md-cols-lg="8"
- * md-cols-gt-lg="12"
- * ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- */
-function GridListDirective($interpolate, $mdConstant, $mdGridLayout, $mdMedia) {
- return {
- restrict: 'E',
- controller: GridListController,
- scope: {
- mdOnLayout: '&'
- },
- link: postLink
- };
-
- function postLink(scope, element, attrs, ctrl) {
- // Apply semantics
- element.attr('role', 'list');
-
- // Provide the controller with a way to trigger layouts.
- ctrl.layoutDelegate = layoutDelegate;
-
- var invalidateLayout = angular.bind(ctrl, ctrl.invalidateLayout),
- unwatchAttrs = watchMedia();
- scope.$on('$destroy', unwatchMedia);
-
- /**
- * Watches for changes in media, invalidating layout as necessary.
- */
- function watchMedia() {
- for (var mediaName in $mdConstant.MEDIA) {
- $mdMedia(mediaName); // initialize
- $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
- .addListener(invalidateLayout);
- }
- return $mdMedia.watchResponsiveAttributes(
- ['md-cols', 'md-row-height'], attrs, layoutIfMediaMatch);
- }
-
- function unwatchMedia() {
- ctrl.layoutDelegate = angular.noop;
-
- unwatchAttrs();
- for (var mediaName in $mdConstant.MEDIA) {
- $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
- .removeListener(invalidateLayout);
- }
- }
-
- /**
- * Performs grid layout if the provided mediaName matches the currently
- * active media type.
- */
- function layoutIfMediaMatch(mediaName) {
- if (mediaName == null) {
- // TODO(shyndman): It would be nice to only layout if we have
- // instances of attributes using this media type
- ctrl.invalidateLayout();
- } else if ($mdMedia(mediaName)) {
- ctrl.invalidateLayout();
- }
- }
-
- var lastLayoutProps;
-
- /**
- * Invokes the layout engine, and uses its results to lay out our
- * tile elements.
- *
- * @param {boolean} tilesInvalidated Whether tiles have been
- * added/removed/moved since the last layout. This is to avoid situations
- * where tiles are replaced with properties identical to their removed
- * counterparts.
- */
- function layoutDelegate(tilesInvalidated) {
- var tiles = getTileElements();
- var props = {
- tileSpans: getTileSpans(tiles),
- colCount: getColumnCount(),
- rowMode: getRowMode(),
- rowHeight: getRowHeight(),
- gutter: getGutter()
- };
-
- if (!tilesInvalidated && angular.equals(props, lastLayoutProps)) {
- return;
- }
-
- var performance =
- $mdGridLayout(props.colCount, props.tileSpans, tiles)
- .map(function(tilePositions, rowCount) {
- return {
- grid: {
- element: element,
- style: getGridStyle(props.colCount, rowCount,
- props.gutter, props.rowMode, props.rowHeight)
- },
- tiles: tilePositions.map(function(ps, i) {
- return {
- element: angular.element(tiles[i]),
- style: getTileStyle(ps.position, ps.spans,
- props.colCount, props.rowCount,
- props.gutter, props.rowMode, props.rowHeight)
- }
- })
- }
- })
- .reflow()
- .performance();
-
- // Report layout
- scope.mdOnLayout({
- $event: {
- performance: performance
- }
- });
-
- lastLayoutProps = props;
- }
-
- // Use $interpolate to do some simple string interpolation as a convenience.
-
- var startSymbol = $interpolate.startSymbol();
- var endSymbol = $interpolate.endSymbol();
-
- // Returns an expression wrapped in the interpolator's start and end symbols.
- function expr(exprStr) {
- return startSymbol + exprStr + endSymbol;
- }
-
- // The amount of space a single 1x1 tile would take up (either width or height), used as
- // a basis for other calculations. This consists of taking the base size percent (as would be
- // if evenly dividing the size between cells), and then subtracting the size of one gutter.
- // However, since there are no gutters on the edges, each tile only uses a fration
- // (gutterShare = numGutters / numCells) of the gutter size. (Imagine having one gutter per
- // tile, and then breaking up the extra gutter on the edge evenly among the cells).
- var UNIT = $interpolate(expr('share') + '% - (' + expr('gutter') + ' * ' + expr('gutterShare') + ')');
-
- // The horizontal or vertical position of a tile, e.g., the 'top' or 'left' property value.
- // The position comes the size of a 1x1 tile plus gutter for each previous tile in the
- // row/column (offset).
- var POSITION = $interpolate('calc((' + expr('unit') + ' + ' + expr('gutter') + ') * ' + expr('offset') + ')');
-
- // The actual size of a tile, e.g., width or height, taking rowSpan or colSpan into account.
- // This is computed by multiplying the base unit by the rowSpan/colSpan, and then adding back
- // in the space that the gutter would normally have used (which was already accounted for in
- // the base unit calculation).
- var DIMENSION = $interpolate('calc((' + expr('unit') + ') * ' + expr('span') + ' + (' + expr('span') + ' - 1) * ' + expr('gutter') + ')');
-
- /**
- * Gets the styles applied to a tile element described by the given parameters.
- * @param {{row: number, col: number}} position The row and column indices of the tile.
- * @param {{row: number, col: number}} spans The rowSpan and colSpan of the tile.
- * @param {number} colCount The number of columns.
- * @param {number} rowCount The number of rows.
- * @param {string} gutter The amount of space between tiles. This will be something like
- * '5px' or '2em'.
- * @param {string} rowMode The row height mode. Can be one of:
- * 'fixed': all rows have a fixed size, given by rowHeight,
- * 'ratio': row height defined as a ratio to width, or
- * 'fit': fit to the grid-list element height, divinding evenly among rows.
- * @param {string|number} rowHeight The height of a row. This is only used for 'fixed' mode and
- * for 'ratio' mode. For 'ratio' mode, this is the *ratio* of width-to-height (e.g., 0.75).
- * @returns {Object} Map of CSS properties to be applied to the style element. Will define
- * values for top, left, width, height, marginTop, and paddingTop.
- */
- function getTileStyle(position, spans, colCount, rowCount, gutter, rowMode, rowHeight) {
- // TODO(shyndman): There are style caching opportunities here.
-
- // Percent of the available horizontal space that one column takes up.
- var hShare = (1 / colCount) * 100;
-
- // Fraction of the gutter size that each column takes up.
- var hGutterShare = (colCount - 1) / colCount;
-
- // Base horizontal size of a column.
- var hUnit = UNIT({share: hShare, gutterShare: hGutterShare, gutter: gutter});
-
- // The width and horizontal position of each tile is always calculated the same way, but the
- // height and vertical position depends on the rowMode.
- var style = {
- left: POSITION({ unit: hUnit, offset: position.col, gutter: gutter }),
- width: DIMENSION({ unit: hUnit, span: spans.col, gutter: gutter }),
- // resets
- paddingTop: '',
- marginTop: '',
- top: '',
- height: ''
- };
-
- switch (rowMode) {
- case 'fixed':
- // In fixed mode, simply use the given rowHeight.
- style.top = POSITION({ unit: rowHeight, offset: position.row, gutter: gutter });
- style.height = DIMENSION({ unit: rowHeight, span: spans.row, gutter: gutter });
- break;
-
- case 'ratio':
- // Percent of the available vertical space that one row takes up. Here, rowHeight holds
- // the ratio value. For example, if the width:height ratio is 4:3, rowHeight = 1.333.
- var vShare = hShare / rowHeight;
-
- // Base veritcal size of a row.
- var vUnit = UNIT({ share: vShare, gutterShare: hGutterShare, gutter: gutter });
-
- // padidngTop and marginTop are used to maintain the given aspect ratio, as
- // a percentage-based value for these properties is applied to the *width* of the
- // containing block. See http://www.w3.org/TR/CSS2/box.html#margin-properties
- style.paddingTop = DIMENSION({ unit: vUnit, span: spans.row, gutter: gutter});
- style.marginTop = POSITION({ unit: vUnit, offset: position.row, gutter: gutter });
- break;
-
- case 'fit':
- // Fraction of the gutter size that each column takes up.
- var vGutterShare = (rowCount - 1) / rowCount;
-
- // Percent of the available vertical space that one row takes up.
- var vShare = (1 / rowCount) * 100;
-
- // Base vertical size of a row.
- var vUnit = UNIT({share: vShare, gutterShare: vGutterShare, gutter: gutter});
-
- style.top = POSITION({unit: vUnit, offset: position.row, gutter: gutter});
- style.height = DIMENSION({unit: vUnit, span: spans.row, gutter: gutter});
- break;
- }
-
- return style;
- }
-
- function getGridStyle(colCount, rowCount, gutter, rowMode, rowHeight) {
- var style = {
- height: '',
- paddingBottom: ''
- };
-
- switch(rowMode) {
- case 'fixed':
- style.height = DIMENSION({ unit: rowHeight, span: rowCount, gutter: gutter });
- break;
-
- case 'ratio':
- // rowHeight is width / height
- var hGutterShare = colCount === 1 ? 0 : (colCount - 1) / colCount,
- hShare = (1 / colCount) * 100,
- vShare = hShare * (1 / rowHeight),
- vUnit = UNIT({ share: vShare, gutterShare: hGutterShare, gutter: gutter });
-
- style.paddingBottom = DIMENSION({ unit: vUnit, span: rowCount, gutter: gutter});
- break;
-
- case 'fit':
- // noop, as the height is user set
- break;
- }
-
- return style;
- }
-
- function getTileElements() {
- return [].filter.call(element.children(), function(ele) {
- return ele.tagName == 'MD-GRID-TILE';
- });
- }
-
- /**
- * Gets an array of objects containing the rowspan and colspan for each tile.
- * @returns {Array<{row: number, col: number}>}
- */
- function getTileSpans(tileElements) {
- return [].map.call(tileElements, function(ele) {
- var ctrl = angular.element(ele).controller('mdGridTile');
- return {
- row: parseInt(
- $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1,
- col: parseInt(
- $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-colspan'), 10) || 1
- };
- });
- }
-
- function getColumnCount() {
- var colCount = parseInt($mdMedia.getResponsiveAttribute(attrs, 'md-cols'), 10);
- if (isNaN(colCount)) {
- throw 'md-grid-list: md-cols attribute was not found, or contained a non-numeric value';
- }
- return colCount;
- }
-
- function getGutter() {
- return applyDefaultUnit($mdMedia.getResponsiveAttribute(attrs, 'md-gutter') || 1);
- }
-
- function getRowHeight() {
- var rowHeight = $mdMedia.getResponsiveAttribute(attrs, 'md-row-height');
- switch (getRowMode()) {
- case 'fixed':
- return applyDefaultUnit(rowHeight);
- case 'ratio':
- var whRatio = rowHeight.split(':');
- return parseFloat(whRatio[0]) / parseFloat(whRatio[1]);
- case 'fit':
- return 0; // N/A
- }
- }
-
- function getRowMode() {
- var rowHeight = $mdMedia.getResponsiveAttribute(attrs, 'md-row-height');
- if (rowHeight == 'fit') {
- return 'fit';
- } else if (rowHeight.indexOf(':') !== -1) {
- return 'ratio';
- } else {
- return 'fixed';
- }
- }
-
- function applyDefaultUnit(val) {
- return /\D$/.test(val) ? val : val + 'px';
- }
- }
-}
-GridListDirective.$inject = ["$interpolate", "$mdConstant", "$mdGridLayout", "$mdMedia"];
-
-/* ngInject */
-function GridListController($timeout) {
- this.layoutInvalidated = false;
- this.tilesInvalidated = false;
- this.$timeout_ = $timeout;
- this.layoutDelegate = angular.noop;
-}
-GridListController.$inject = ["$timeout"];
-
-GridListController.prototype = {
- invalidateTiles: function() {
- this.tilesInvalidated = true;
- this.invalidateLayout();
- },
-
- invalidateLayout: function() {
- if (this.layoutInvalidated) {
- return;
- }
- this.layoutInvalidated = true;
- this.$timeout_(angular.bind(this, this.layout));
- },
-
- layout: function() {
- try {
- this.layoutDelegate(this.tilesInvalidated);
- } finally {
- this.layoutInvalidated = false;
- this.tilesInvalidated = false;
- }
- }
-};
-
-
-/* ngInject */
-function GridLayoutFactory($mdUtil) {
- var defaultAnimator = GridTileAnimator;
-
- /**
- * Set the reflow animator callback
- */
- GridLayout.animateWith = function(customAnimator) {
- defaultAnimator = !angular.isFunction(customAnimator) ? GridTileAnimator : customAnimator;
- };
-
- return GridLayout;
-
- /**
- * Publish layout function
- */
- function GridLayout(colCount, tileSpans) {
- var self, layoutInfo, gridStyles, layoutTime, mapTime, reflowTime;
-
- layoutTime = $mdUtil.time(function() {
- layoutInfo = calculateGridFor(colCount, tileSpans);
- });
-
- return self = {
-
- /**
- * An array of objects describing each tile's position in the grid.
- */
- layoutInfo: function() {
- return layoutInfo;
- },
-
- /**
- * Maps grid positioning to an element and a set of styles using the
- * provided updateFn.
- */
- map: function(updateFn) {
- mapTime = $mdUtil.time(function() {
- var info = self.layoutInfo();
- gridStyles = updateFn(info.positioning, info.rowCount);
- });
- return self;
- },
-
- /**
- * Default animator simply sets the element.css( <styles> ). An alternate
- * animator can be provided as an argument. The function has the following
- * signature:
- *
- * function({grid: {element: JQLite, style: Object}, tiles: Array<{element: JQLite, style: Object}>)
- */
- reflow: function(animatorFn) {
- reflowTime = $mdUtil.time(function() {
- var animator = animatorFn || defaultAnimator;
- animator(gridStyles.grid, gridStyles.tiles);
- });
- return self;
- },
-
- /**
- * Timing for the most recent layout run.
- */
- performance: function() {
- return {
- tileCount: tileSpans.length,
- layoutTime: layoutTime,
- mapTime: mapTime,
- reflowTime: reflowTime,
- totalTime: layoutTime + mapTime + reflowTime
- };
- }
- };
- }
-
- /**
- * Default Gridlist animator simple sets the css for each element;
- * NOTE: any transitions effects must be manually set in the CSS.
- * e.g.
- *
- * md-grid-tile {
- * transition: all 700ms ease-out 50ms;
- * }
- *
- */
- function GridTileAnimator(grid, tiles) {
- grid.element.css(grid.style);
- tiles.forEach(function(t) {
- t.element.css(t.style);
- })
- }
-
- /**
- * Calculates the positions of tiles.
- *
- * The algorithm works as follows:
- * An Array<Number> with length colCount (spaceTracker) keeps track of
- * available tiling positions, where elements of value 0 represents an
- * empty position. Space for a tile is reserved by finding a sequence of
- * 0s with length <= than the tile's colspan. When such a space has been
- * found, the occupied tile positions are incremented by the tile's
- * rowspan value, as these positions have become unavailable for that
- * many rows.
- *
- * If the end of a row has been reached without finding space for the
- * tile, spaceTracker's elements are each decremented by 1 to a minimum
- * of 0. Rows are searched in this fashion until space is found.
- */
- function calculateGridFor(colCount, tileSpans) {
- var curCol = 0,
- curRow = 0,
- spaceTracker = newSpaceTracker();
-
- return {
- positioning: tileSpans.map(function(spans, i) {
- return {
- spans: spans,
- position: reserveSpace(spans, i)
- };
- }),
- rowCount: curRow + Math.max.apply(Math, spaceTracker)
- };
-
- function reserveSpace(spans, i) {
- if (spans.col > colCount) {
- throw 'md-grid-list: Tile at position ' + i + ' has a colspan ' +
- '(' + spans.col + ') that exceeds the column count ' +
- '(' + colCount + ')';
- }
-
- var start = 0,
- end = 0;
-
- // TODO(shyndman): This loop isn't strictly necessary if you can
- // determine the minimum number of rows before a space opens up. To do
- // this, recognize that you've iterated across an entire row looking for
- // space, and if so fast-forward by the minimum rowSpan count. Repeat
- // until the required space opens up.
- while (end - start < spans.col) {
- if (curCol >= colCount) {
- nextRow();
- continue;
- }
-
- start = spaceTracker.indexOf(0, curCol);
- if (start === -1 || (end = findEnd(start + 1)) === -1) {
- start = end = 0;
- nextRow();
- continue;
- }
-
- curCol = end + 1;
- }
-
- adjustRow(start, spans.col, spans.row);
- curCol = start + spans.col;
-
- return {
- col: start,
- row: curRow
- };
- }
-
- function nextRow() {
- curCol = 0;
- curRow++;
- adjustRow(0, colCount, -1); // Decrement row spans by one
- }
-
- function adjustRow(from, cols, by) {
- for (var i = from; i < from + cols; i++) {
- spaceTracker[i] = Math.max(spaceTracker[i] + by, 0);
- }
- }
-
- function findEnd(start) {
- var i;
- for (i = start; i < spaceTracker.length; i++) {
- if (spaceTracker[i] !== 0) {
- return i;
- }
- }
-
- if (i === spaceTracker.length) {
- return i;
- }
- }
-
- function newSpaceTracker() {
- var tracker = [];
- for (var i = 0; i < colCount; i++) {
- tracker.push(0);
- }
- return tracker;
- }
- }
-}
-GridLayoutFactory.$inject = ["$mdUtil"];
-
-/**
- * @ngdoc directive
- * @name mdGridTile
- * @module material.components.gridList
- * @restrict E
- * @description
- * Tiles contain the content of an `md-grid-list`. They span one or more grid
- * cells vertically or horizontally, and use `md-grid-tile-{footer,header}` to
- * display secondary content.
- *
- * ### Responsive Attributes
- *
- * The `md-grid-tile` directive supports "responsive" attributes, which allow
- * different `md-rowspan` and `md-colspan` values depending on the currently
- * matching media query (as defined in `$mdConstant.MEDIA`).
- *
- * In order to set a responsive attribute, first define the fallback value with
- * the standard attribute name, then add additional attributes with the
- * following convention: `{base-attribute-name}-{media-query-name}="{value}"`
- * (ie. `md-colspan-sm="4"`)
- *
- * @param {number=} md-colspan The number of columns to span (default 1). Cannot
- * exceed the number of columns in the grid. Supports interpolation.
- * @param {number=} md-rowspan The number of rows to span (default 1). Supports
- * interpolation.
- *
- * @usage
- * With header:
- * <hljs lang="html">
- * <md-grid-tile>
- * <md-grid-tile-header>
- * <h3>This is a header</h3>
- * </md-grid-tile-header>
- * </md-grid-tile>
- * </hljs>
- *
- * With footer:
- * <hljs lang="html">
- * <md-grid-tile>
- * <md-grid-tile-footer>
- * <h3>This is a footer</h3>
- * </md-grid-tile-footer>
- * </md-grid-tile>
- * </hljs>
- *
- * Spanning multiple rows/columns:
- * <hljs lang="html">
- * <md-grid-tile md-colspan="2" md-rowspan="3">
- * </md-grid-tile>
- * </hljs>
- *
- * Responsive attributes:
- * <hljs lang="html">
- * <md-grid-tile md-colspan="1" md-colspan-sm="3" md-colspan-md="5">
- * </md-grid-tile>
- * </hljs>
- */
-function GridTileDirective($mdMedia) {
- return {
- restrict: 'E',
- require: '^mdGridList',
- template: '<figure ng-transclude></figure>',
- transclude: true,
- scope: {},
- // Simple controller that exposes attributes to the grid directive
- controller: ["$attrs", function($attrs) {
- this.$attrs = $attrs;
- }],
- link: postLink
- };
-
- function postLink(scope, element, attrs, gridCtrl) {
- // Apply semantics
- element.attr('role', 'listitem');
-
- // If our colspan or rowspan changes, trigger a layout
- var unwatchAttrs = $mdMedia.watchResponsiveAttributes(['md-colspan', 'md-rowspan'],
- attrs, angular.bind(gridCtrl, gridCtrl.invalidateLayout));
-
- // Tile registration/deregistration
- gridCtrl.invalidateTiles();
- scope.$on('$destroy', function() {
- unwatchAttrs();
- gridCtrl.invalidateLayout();
- });
-
- if (angular.isDefined(scope.$parent.$index)) {
- scope.$watch(function() { return scope.$parent.$index; },
- function indexChanged(newIdx, oldIdx) {
- if (newIdx === oldIdx) {
- return;
- }
- gridCtrl.invalidateTiles();
- });
- }
- }
-}
-GridTileDirective.$inject = ["$mdMedia"];
-
-
-function GridTileCaptionDirective() {
- return {
- template: '<figcaption ng-transclude></figcaption>',
- transclude: true
- };
-}
-
-ng.material.components.gridList = angular.module("material.components.gridList"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon-default-theme.css
deleted file mode 100644
index eaa5d39f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon-default-theme.css
+++ /dev/null
@@ -1,15 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-icon.md-THEME_NAME-theme {
- color: '{{foreground-2}}'; }
- md-icon.md-THEME_NAME-theme.md-primary {
- color: '{{primary-color}}'; }
- md-icon.md-THEME_NAME-theme.md-accent {
- color: '{{accent-color}}'; }
- md-icon.md-THEME_NAME-theme.md-warn {
- color: '{{warn-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon.css
deleted file mode 100644
index c55add2c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-icon {
- margin: auto;
- background-repeat: no-repeat no-repeat;
- display: inline-block;
- vertical-align: middle;
- fill: currentColor;
- height: 24px;
- width: 24px; }
- md-icon svg {
- pointer-events: none; }
- md-icon[md-font-icon] {
- line-height: 1;
- width: auto; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon.js
deleted file mode 100644
index b7b9e784..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/icon/icon.js
+++ /dev/null
@@ -1,787 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.icon');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.icon
- * @description
- * Icon
- */
-angular.module('material.components.icon', [
- 'material.core'
- ])
- .directive('mdIcon', mdIconDirective);
-
-/**
- * @ngdoc directive
- * @name mdIcon
- * @module material.components.icon
- *
- * @restrict E
- *
- * @description
- * The `<md-icon>` directive is an markup element useful for showing an icon based on a font-icon
- * or a SVG. Icons are view-only elements that should not be used directly as buttons; instead nest a `<md-icon>`
- * inside a `md-button` to add hover and click features.
- *
- * When using SVGs, both external SVGs (via URLs) or sets of SVGs [from icon sets] can be
- * easily loaded and used.When use font-icons, developers must following three (3) simple steps:
- *
- * <ol>
- * <li>Load the font library. e.g.<br/>
- * &lt;link href="https://fonts.googleapis.com/icon?family=Material+Icons"
- * rel="stylesheet"&gt;
- * </li>
- * <li> Use either (a) font-icon class names or (b) font ligatures to render the font glyph by using its textual name</li>
- * <li> Use &lt;md-icon md-font-icon="classname" /&gt; or <br/>
- * use &lt;md-icon md-font-set="font library classname or alias"&gt; textual_name &lt;/md-icon&gt; or <br/>
- * use &lt;md-icon md-font-set="font library classname or alias"&gt; numerical_character_reference &lt;/md-icon&gt;
- * </li>
- * </ol>
- *
- * Full details for these steps can be found:
- *
- * <ul>
- * <li>http://google.github.io/material-design-icons/</li>
- * <li>http://google.github.io/material-design-icons/#icon-font-for-the-web</li>
- * </ul>
- *
- * The Material Design icon style <code>.material-icons</code> and the icon font references are published in
- * Material Design Icons:
- *
- * <ul>
- * <li>http://www.google.com/design/icons/</li>
- * <li>https://www.google.com/design/icons/#ic_accessibility</li>
- * </ul>
- *
- * <h2 id="material_design_icons">Material Design Icons</h2>
- * Using the Material Design Icon-Selector, developers can easily and quickly search for a Material Design font-icon and
- * determine its textual name and character reference code. Click on any icon to see the slide-up information
- * panel with details regarding a SVG download or information on the font-icon usage.
- *
- * <a href="https://www.google.com/design/icons/#ic_accessibility" target="_blank" style="border-bottom:none;">
- * <img src="https://cloud.githubusercontent.com/assets/210413/7902490/fe8dd14c-0780-11e5-98fb-c821cc6475e6.png"
- * aria-label="Material Design Icon-Selector" style="max-width:75%;padding-left:10%">
- * </a>
- *
- * <span class="image_caption">
- * Click on the image above to link to the
- * <a href="https://www.google.com/design/icons/#ic_accessibility" target="_blank">Material Design Icon-Selector</a>.
- * </span>
- *
- * @param {string} md-font-icon Name of CSS icon associated with the font-face will be used
- * to render the icon. Requires the fonts and the named CSS styles to be preloaded.
- * @param {string} md-font-set CSS style name associated with the font library; which will be assigned as
- * the class for the font-icon ligature. This value may also be an alias that is used to lookup the classname;
- * internally use `$mdIconProvider.fontSet(<alias>)` to determine the style name.
- * @param {string} md-svg-src URL [or expression ] used to load, cache, and display an external SVG.
- * @param {string} md-svg-icon Name used for lookup of the icon from the internal cache; interpolated strings or
- * expressions may also be used. Specific set names can be used with the syntax `<set name>:<icon name>`.<br/><br/>
- * To use icon sets, developers are required to pre-register the sets using the `$mdIconProvider` service.
- * @param {string=} aria-label Labels icon for accessibility. If an empty string is provided, icon
- * will be hidden from accessibility layer with `aria-hidden="true"`. If there's no aria-label on the icon
- * nor a label on the parent element, a warning will be logged to the console.
- *
- * @usage
- * When using SVGs:
- * <hljs lang="html">
- *
- * <!-- Icon ID; may contain optional icon set prefix; icons must registered using $mdIconProvider -->
- * <md-icon md-svg-icon="social:android" aria-label="android " ></md-icon>
- *
- * <!-- Icon urls; may be preloaded in templateCache -->
- * <md-icon md-svg-src="/android.svg" aria-label="android " ></md-icon>
- * <md-icon md-svg-src="{{ getAndroid() }}" aria-label="android " ></md-icon>
- *
- * </hljs>
- *
- * Use the <code>$mdIconProvider</code> to configure your application with
- * svg iconsets.
- *
- * <hljs lang="js">
- * angular.module('appSvgIconSets', ['ngMaterial'])
- * .controller('DemoCtrl', function($scope) {})
- * .config(function($mdIconProvider) {
- * $mdIconProvider
- * .iconSet('social', 'img/icons/sets/social-icons.svg', 24)
- * .defaultIconSet('img/icons/sets/core-icons.svg', 24);
- * });
- * </hljs>
- *
- *
- * When using Font Icons with classnames:
- * <hljs lang="html">
- *
- * <md-icon md-font-icon="android" aria-label="android" ></md-icon>
- * <md-icon class="icon_home" aria-label="Home" ></md-icon>
- *
- * </hljs>
- *
- * When using Material Font Icons with ligatures:
- * <hljs lang="html">
- * <!-- For Material Design Icons -->
- * <!-- The class '.material-icons' is auto-added. -->
- * <md-icon> face </md-icon>
- * <md-icon class="md-light md-48"> face </md-icon>
- * <md-icon md-font-set="material-icons"> face </md-icon>
- * <md-icon> #xE87C; </md-icon>
- * </hljs>
- *
- * When using other Font-Icon libraries:
- *
- * <hljs lang="js">
- * // Specify a font-icon style alias
- * angular.config(function($mdIconProvider) {
- * $mdIconProvider.fontSet('fa', 'fontawesome');
- * });
- * </hljs>
- *
- * <hljs lang="html">
- * <md-icon md-font-set="fa">email</md-icon>
- * </hljs>
- *
- */
-function mdIconDirective($mdIcon, $mdTheming, $mdAria, $interpolate ) {
-
- return {
- scope: {
- fontSet : '@mdFontSet',
- fontIcon: '@mdFontIcon',
- svgIcon : '@mdSvgIcon',
- svgSrc : '@mdSvgSrc'
- },
- restrict: 'E',
- transclude:true,
- template: getTemplate,
- link: postLink
- };
-
- function getTemplate(element, attr) {
- var isEmptyAttr = function(key) { return angular.isDefined(attr[key]) ? attr[key].length == 0 : false },
- hasAttrValue = function(key) { return attr[key] && attr[key].length > 0; },
- attrValue = function(key) { return hasAttrValue(key) ? attr[key] : '' };
-
- // If using the deprecated md-font-icon API
- // If using ligature-based font-icons, transclude the ligature or NRCs
-
- var tmplFontIcon = '<span class="md-font {{classNames}}" ng-class="fontIcon"></span>';
- var tmplFontSet = '<span class="{{classNames}}" ng-transclude></span>';
-
- var tmpl = hasAttrValue('mdSvgIcon') ? '' :
- hasAttrValue('mdSvgSrc') ? '' :
- isEmptyAttr('mdFontIcon') ? '' :
- hasAttrValue('mdFontIcon') ? tmplFontIcon : tmplFontSet;
-
- // If available, lookup the fontSet style and add to the list of classnames
- // NOTE: Material Icons expects classnames like `.material-icons.md-48` instead of `.material-icons .md-48`
-
- var names = (tmpl == tmplFontSet) ? $mdIcon.fontSet(attrValue('mdFontSet')) + ' ' : '';
- names = (names + attrValue('class')).trim();
-
- return $interpolate( tmpl )({ classNames: names });
- }
-
-
- /**
- * Directive postLink
- * Supports embedded SVGs, font-icons, & external SVGs
- */
- function postLink(scope, element, attr) {
- $mdTheming(element);
-
- // If using a font-icon, then the textual name of the icon itself
- // provides the aria-label.
-
- var label = attr.alt || scope.fontIcon || scope.svgIcon || element.text();
- var attrName = attr.$normalize(attr.$attr.mdSvgIcon || attr.$attr.mdSvgSrc || '');
-
- if ( !attr['aria-label'] ) {
-
- if (label != '' && !parentsHaveText() ) {
-
- $mdAria.expect(element, 'aria-label', label);
- $mdAria.expect(element, 'role', 'img');
-
- } else if ( !element.text() ) {
- // If not a font-icon with ligature, then
- // hide from the accessibility layer.
-
- $mdAria.expect(element, 'aria-hidden', 'true');
- }
- }
-
- if (attrName) {
- // Use either pre-configured SVG or URL source, respectively.
- attr.$observe(attrName, function(attrVal) {
-
- element.empty();
- if (attrVal) {
- $mdIcon(attrVal).then(function(svg) {
- element.append(svg);
- });
- }
-
- });
- }
- function parentsHaveText() {
- var parent = element.parent();
- if (parent.attr('aria-label') || parent.text()) {
- return true;
- }
- else if(parent.parent().attr('aria-label') || parent.parent().text()) {
- return true;
- }
- return false;
- }
- }
-}
-mdIconDirective.$inject = ["$mdIcon", "$mdTheming", "$mdAria", "$interpolate"];
-
- angular
- .module('material.components.icon' )
- .provider('$mdIcon', MdIconProvider);
-
- /**
- * @ngdoc service
- * @name $mdIconProvider
- * @module material.components.icon
- *
- * @description
- * `$mdIconProvider` is used only to register icon IDs with URLs. These configuration features allow
- * icons and icon sets to be pre-registered and associated with source URLs **before** the `<md-icon />`
- * directives are compiled.
- *
- * If using font-icons, the developer is repsonsible for loading the fonts.
- *
- * If using SVGs, loading of the actual svg files are deferred to on-demand requests and are loaded
- * internally by the `$mdIcon` service using the `$http` service. When an SVG is requested by name/ID,
- * the `$mdIcon` service searches its registry for the associated source URL;
- * that URL is used to on-demand load and parse the SVG dynamically.
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultFontSet( 'fontawesome' )
- * .defaultIconSet('my/app/icons.svg') // Register a default set of SVG icons
- * .iconSet('social', 'my/app/social.svg') // Register a named icon set of SVGs
- * .icon('android', 'my/app/android.svg') // Register a specific icon (by name)
- * .icon('work:chair', 'my/app/chair.svg'); // Register icon in a specific set
- * });
- * </hljs>
- *
- * SVG icons and icon sets can be easily pre-loaded and cached using either (a) a build process or (b) a runtime
- * **startup** process (shown below):
- *
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Register a default set of SVG icon definitions
- * $mdIconProvider.defaultIconSet('my/app/icons.svg')
- *
- * })
- * .run(function($http, $templateCache){
- *
- * // Pre-fetch icons sources by URL and cache in the $templateCache...
- * // subsequent $http calls will look there first.
- *
- * var urls = [ 'imy/app/icons.svg', 'img/icons/android.svg'];
- *
- * angular.forEach(urls, function(url) {
- * $http.get(url, {cache: $templateCache});
- * });
- *
- * });
- *
- * </hljs>
- *
- * NOTE: the loaded SVG data is subsequently cached internally for future requests.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdIconProvider#icon
- *
- * @description
- * Register a source URL for a specific icon name; the name may include optional 'icon set' name prefix.
- * These icons will later be retrieved from the cache using `$mdIcon( <icon name> )`
- *
- * @param {string} id Icon name/id used to register the icon
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .icon('android', 'my/app/android.svg') // Register a specific icon (by name)
- * .icon('work:chair', 'my/app/chair.svg'); // Register icon in a specific set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#iconSet
- *
- * @description
- * Register a source URL for a 'named' set of icons; group of SVG definitions where each definition
- * has an icon id. Individual icons can be subsequently retrieved from this cached set using
- * `$mdIcon(<icon set name>:<icon name>)`
- *
- * @param {string} id Icon name/id used to register the iconset
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .iconSet('social', 'my/app/social.svg') // Register a named icon set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultIconSet
- *
- * @description
- * Register a source URL for the default 'named' set of icons. Unless explicitly registered,
- * subsequent lookups of icons will failover to search this 'default' icon set.
- * Icon can be retrieved from this cached, default set using `$mdIcon(<name>)`
- *
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultIconSet( 'my/app/social.svg' ) // Register a default icon set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultFontSet
- *
- * @description
- * When using Font-Icons, Angular Material assumes the the Material Design icons will be used and automatically
- * configures the default font-set == 'material-icons'. Note that the font-set references the font-icon library
- * class style that should be applied to the `<md-icon>`.
- *
- * Configuring the default means that the attributes
- * `md-font-set="material-icons"` or `class="material-icons"` do not need to be explicitly declared on the
- * `<md-icon>` markup. For example:
- *
- * `<md-icon> face </md-icon>`
- * will render as
- * `<span class="material-icons"> face </span>`, and
- *
- * `<md-icon md-font-set="fa"> face </md-icon>`
- * will render as
- * `<span class="fa"> face </span>`
- *
- * @param {string} name of the font-library style that should be applied to the md-icon DOM element
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- * $mdIconProvider.defaultFontSet( 'fontawesome' );
- * });
- * </hljs>
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultIconSize
- *
- * @description
- * While `<md-icon />` markup can also be style with sizing CSS, this method configures
- * the default width **and** height used for all icons; unless overridden by specific CSS.
- * The default sizing is (24px, 24px).
- *
- * @param {string} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultIconSize(36) // Register a default icon size (width == height)
- * });
- * </hljs>
- *
- */
-
- var config = {
- defaultIconSize: 24,
- defaultFontSet: 'material-icons',
- fontSets : [ ]
- };
-
- function MdIconProvider() { }
-
- MdIconProvider.prototype = {
-
- icon : function icon(id, url, iconSize) {
- if ( id.indexOf(':') == -1 ) id = '$default:' + id;
-
- config[id] = new ConfigurationItem(url, iconSize );
- return this;
- },
- iconSet : function iconSet(id, url, iconSize) {
- config[id] = new ConfigurationItem(url, iconSize );
- return this;
- },
- defaultIconSet : function defaultIconSet(url, iconSize) {
- var setName = '$default';
-
- if ( !config[setName] ) {
- config[setName] = new ConfigurationItem(url, iconSize );
- }
-
- config[setName].iconSize = iconSize || config.defaultIconSize;
- return this;
- },
-
- /**
- * Register an alias name associated with a font-icon library style ;
- */
- fontSet : function fontSet(alias, className) {
- config.fontSets.push({
- alias : alias,
- fontSet : className || alias
- });
- },
-
- /**
- * Specify a default style name associated with a font-icon library
- * fallback to Material Icons.
- *
- */
- defaultFontSet : function defaultFontSet(className) {
- config.defaultFontSet = !className ? '' : className;
- return this;
- },
-
- defaultIconSize : function defaultIconSize(iconSize) {
- config.defaultIconSize = iconSize;
- return this;
- },
-
- preloadIcons: function ($templateCache) {
- var iconProvider = this;
- var svgRegistry = [
- {
- id : 'md-tabs-arrow',
- url: 'md-tabs-arrow.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 "/></g></svg>'
- },
- {
- id : 'md-close',
- url: 'md-close.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"/></g></svg>'
- },
- {
- id: 'md-cancel',
- url: 'md-cancel.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M12 2c-5.53 0-10 4.47-10 10s4.47 10 10 10 10-4.47 10-10-4.47-10-10-10zm5 13.59l-1.41 1.41-3.59-3.59-3.59 3.59-1.41-1.41 3.59-3.59-3.59-3.59 1.41-1.41 3.59 3.59 3.59-3.59 1.41 1.41-3.59 3.59 3.59 3.59z"/></g></svg>'
- },
- {
- id: 'md-menu',
- url: 'md-menu.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100"><path d="M 50 0 L 100 14 L 92 80 L 50 100 L 8 80 L 0 14 Z" fill="#b2b2b2"></path><path d="M 50 5 L 6 18 L 13.5 77 L 50 94 Z" fill="#E42939"></path><path d="M 50 5 L 94 18 L 86.5 77 L 50 94 Z" fill="#B72833"></path><path d="M 50 7 L 83 75 L 72 75 L 65 59 L 50 59 L 50 50 L 61 50 L 50 26 Z" fill="#b2b2b2"></path><path d="M 50 7 L 17 75 L 28 75 L 35 59 L 50 59 L 50 50 L 39 50 L 50 26 Z" fill="#fff"></path></svg>'
- },
- {
- id: 'md-toggle-arrow',
- url: 'md-toggle-arrow-svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 48 48"><path d="M24 16l-12 12 2.83 2.83 9.17-9.17 9.17 9.17 2.83-2.83z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>'
- }
- ];
-
- svgRegistry.forEach(function(asset){
- iconProvider.icon(asset.id, asset.url);
- $templateCache.put(asset.url, asset.svg);
- });
-
- },
-
- $get : ['$http', '$q', '$log', '$templateCache', function($http, $q, $log, $templateCache) {
- this.preloadIcons($templateCache);
- return MdIconService(config, $http, $q, $log, $templateCache);
- }]
- };
-
- /**
- * Configuration item stored in the Icon registry; used for lookups
- * to load if not already cached in the `loaded` cache
- */
- function ConfigurationItem(url, iconSize) {
- this.url = url;
- this.iconSize = iconSize || config.defaultIconSize;
- }
-
- /**
- * @ngdoc service
- * @name $mdIcon
- * @module material.components.icon
- *
- * @description
- * The `$mdIcon` service is a function used to lookup SVG icons.
- *
- * @param {string} id Query value for a unique Id or URL. If the argument is a URL, then the service will retrieve the icon element
- * from its internal cache or load the icon and cache it first. If the value is not a URL-type string, then an ID lookup is
- * performed. The Id may be a unique icon ID or may include an iconSet ID prefix.
- *
- * For the **id** query to work properly, this means that all id-to-URL mappings must have been previously configured
- * using the `$mdIconProvider`.
- *
- * @returns {obj} Clone of the initial SVG DOM element; which was created from the SVG markup in the SVG data file.
- *
- * @usage
- * <hljs lang="js">
- * function SomeDirective($mdIcon) {
- *
- * // See if the icon has already been loaded, if not
- * // then lookup the icon from the registry cache, load and cache
- * // it for future requests.
- * // NOTE: ID queries require configuration with $mdIconProvider
- *
- * $mdIcon('android').then(function(iconEl) { element.append(iconEl); });
- * $mdIcon('work:chair').then(function(iconEl) { element.append(iconEl); });
- *
- * // Load and cache the external SVG using a URL
- *
- * $mdIcon('img/icons/android.svg').then(function(iconEl) {
- * element.append(iconEl);
- * });
- * };
- * </hljs>
- *
- * NOTE: The `<md-icon /> ` directive internally uses the `$mdIcon` service to query, loaded, and instantiate
- * SVG DOM elements.
- */
- function MdIconService(config, $http, $q, $log, $templateCache) {
- var iconCache = {};
- var urlRegex = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i;
-
- Icon.prototype = { clone : cloneSVG, prepare: prepareAndStyle };
- getIcon.fontSet = findRegisteredFontSet;
-
- // Publish service...
- return getIcon;
-
- /**
- * Actual $mdIcon service is essentially a lookup function
- */
- function getIcon(id) {
- id = id || '';
-
- // If already loaded and cached, use a clone of the cached icon.
- // Otherwise either load by URL, or lookup in the registry and then load by URL, and cache.
-
- if ( iconCache[id] ) return $q.when( iconCache[id].clone() );
- if ( urlRegex.test(id) ) return loadByURL(id).then( cacheIcon(id) );
- if ( id.indexOf(':') == -1 ) id = '$default:' + id;
-
- return loadByID(id)
- .catch(loadFromIconSet)
- .catch(announceIdNotFound)
- .catch(announceNotFound)
- .then( cacheIcon(id) );
- }
-
- /**
- * Lookup registered fontSet style using its alias...
- * If not found,
- */
- function findRegisteredFontSet(alias) {
- var useDefault = angular.isUndefined(alias) || !(alias && alias.length);
- if ( useDefault ) return config.defaultFontSet;
-
- var result = alias;
- angular.forEach(config.fontSets, function(it){
- if ( it.alias == alias ) result = it.fontSet || result;
- });
-
- return result;
- }
-
- /**
- * Prepare and cache the loaded icon for the specified `id`
- */
- function cacheIcon( id ) {
-
- return function updateCache( icon ) {
- iconCache[id] = isIcon(icon) ? icon : new Icon(icon, config[id]);
-
- return iconCache[id].clone();
- };
- }
-
- /**
- * Lookup the configuration in the registry, if !registered throw an error
- * otherwise load the icon [on-demand] using the registered URL.
- *
- */
- function loadByID(id) {
- var iconConfig = config[id];
-
- return !iconConfig ? $q.reject(id) : loadByURL(iconConfig.url).then(function(icon) {
- return new Icon(icon, iconConfig);
- });
- }
-
- /**
- * Loads the file as XML and uses querySelector( <id> ) to find
- * the desired node...
- */
- function loadFromIconSet(id) {
- var setName = id.substring(0, id.lastIndexOf(':')) || '$default';
- var iconSetConfig = config[setName];
-
- return !iconSetConfig ? $q.reject(id) : loadByURL(iconSetConfig.url).then(extractFromSet);
-
- function extractFromSet(set) {
- var iconName = id.slice(id.lastIndexOf(':') + 1);
- var icon = set.querySelector('#' + iconName);
- return !icon ? $q.reject(id) : new Icon(icon, iconSetConfig);
- }
- }
-
- /**
- * Load the icon by URL (may use the $templateCache).
- * Extract the data for later conversion to Icon
- */
- function loadByURL(url) {
- return $http
- .get(url, { cache: $templateCache })
- .then(function(response) {
- return angular.element('<div>').append(response.data).find('svg')[0];
- });
- }
-
- /**
- * User did not specify a URL and the ID has not been registered with the $mdIcon
- * registry
- */
- function announceIdNotFound(id) {
- var msg;
-
- if (angular.isString(id)) {
- msg = 'icon ' + id + ' not found';
- $log.warn(msg);
- }
-
- return $q.reject(msg || id);
- }
-
- /**
- * Catch HTTP or generic errors not related to incorrect icon IDs.
- */
- function announceNotFound(err) {
- var msg = angular.isString(err) ? err : (err.message || err.data || err.statusText);
- $log.warn(msg);
-
- return $q.reject(msg);
- }
-
- /**
- * Check target signature to see if it is an Icon instance.
- */
- function isIcon(target) {
- return angular.isDefined(target.element) && angular.isDefined(target.config);
- }
-
- /**
- * Define the Icon class
- */
- function Icon(el, config) {
- if (el.tagName != 'svg') {
- el = angular.element('<svg xmlns="http://www.w3.org/2000/svg">').append(el)[0];
- }
-
- // Inject the namespace if not available...
- if ( !el.getAttribute('xmlns') ) {
- el.setAttribute('xmlns', "http://www.w3.org/2000/svg");
- }
-
- this.element = el;
- this.config = config;
- this.prepare();
- }
-
- /**
- * Prepare the DOM element that will be cached in the
- * loaded iconCache store.
- */
- function prepareAndStyle() {
- var iconSize = this.config ? this.config.iconSize : config.defaultIconSize;
- angular.forEach({
- 'fit' : '',
- 'height': '100%',
- 'width' : '100%',
- 'preserveAspectRatio': 'xMidYMid meet',
- 'viewBox' : this.element.getAttribute('viewBox') || ('0 0 ' + iconSize + ' ' + iconSize)
- }, function(val, attr) {
- this.element.setAttribute(attr, val);
- }, this);
-
- angular.forEach({
- 'pointer-events' : 'none',
- 'display' : 'block'
- }, function(val, style) {
- this.element.style[style] = val;
- }, this);
- }
-
- /**
- * Clone the Icon DOM element.
- */
- function cloneSVG(){
- return this.element.cloneNode(true);
- }
-
- }
-
-ng.material.components.icon = angular.module("material.components.icon"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input-default-theme.css
deleted file mode 100644
index c4dc50c7..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input-default-theme.css
+++ /dev/null
@@ -1,46 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-input-container.md-THEME_NAME-theme .md-input {
- color: '{{foreground-1}}';
- border-color: '{{foreground-4}}';
- text-shadow: '{{foreground-shadow}}'; }
- md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder {
- color: '{{foreground-3}}'; }
-md-input-container.md-THEME_NAME-theme > md-icon {
- color: '{{foreground-1}}'; }
-md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder {
- text-shadow: '{{foreground-shadow}}';
- color: '{{foreground-3}}'; }
-md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] {
- color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label {
- color: '{{foreground-2}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input {
- border-color: '{{primary-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label {
- color: '{{primary-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon {
- color: '{{primary-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input {
- border-color: '{{accent-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label {
- color: '{{accent-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input {
- border-color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label {
- color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input {
- border-color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label {
- color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter {
- color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input {
- border-bottom-color: transparent;
- color: '{{foreground-3}}';
- background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%); }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input.css
deleted file mode 100644
index fb731109..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input.css
+++ /dev/null
@@ -1,162 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-input-container {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- position: relative;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- padding: 2px;
- padding-bottom: 26px;
- /*
- * The .md-input class is added to the input/textarea
- */ }
- md-input-container > md-icon {
- position: absolute;
- top: 5px;
- left: 2px; }
- md-input-container > md-icon + input {
- margin-left: 36px; }
- md-input-container textarea, md-input-container input[type="text"], md-input-container input[type="password"], md-input-container input[type="datetime"], md-input-container input[type="datetime-local"], md-input-container input[type="date"], md-input-container input[type="month"], md-input-container input[type="time"], md-input-container input[type="week"], md-input-container input[type="number"], md-input-container input[type="email"], md-input-container input[type="url"], md-input-container input[type="search"], md-input-container input[type="tel"], md-input-container input[type="color"] {
- /* remove default appearance from all input/textarea */
- -moz-appearance: none;
- -webkit-appearance: none; }
- md-input-container input[type="date"], md-input-container input[type="datetime-local"], md-input-container input[type="month"], md-input-container input[type="time"], md-input-container input[type="week"] {
- min-height: 26px; }
- md-input-container textarea {
- resize: none;
- overflow: hidden; }
- md-input-container textarea.md-input {
- min-height: 56px;
- -ms-flex-preferred-size: auto; }
- md-input-container label {
- position: relative;
- top: -2px; }
- md-input-container label:not(.md-no-float), md-input-container .md-placeholder:not(.md-select-label) {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1;
- pointer-events: none;
- -webkit-font-smoothing: antialiased;
- padding-left: 2px;
- z-index: 1;
- -webkit-transform: translate3d(0, 28px, 0) scale(1);
- transform: translate3d(0, 28px, 0) scale(1);
- transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
- transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
- -webkit-transform-origin: left top;
- transform-origin: left top; }
- html[dir=rtl] md-input-container label:not(.md-no-float), html[dir=rtl] md-input-container .md-placeholder:not(.md-select-label) {
- -webkit-transform-origin: right top;
- transform-origin: right top; }
- md-input-container .md-placeholder:not(.md-select-label) {
- position: absolute;
- top: 0;
- opacity: 0;
- transition-property: opacity, -webkit-transform;
- transition-property: opacity, transform;
- -webkit-transform: translate3d(0, 30px, 0);
- transform: translate3d(0, 30px, 0); }
- md-input-container.md-input-focused .md-placeholder {
- opacity: 1;
- -webkit-transform: translate3d(0, 24px, 0);
- transform: translate3d(0, 24px, 0); }
- md-input-container.md-input-has-value .md-placeholder {
- transition: none;
- opacity: 0; }
- md-input-container:not(.md-input-has-value) input:not(:focus) {
- color: transparent; }
- md-input-container .md-input {
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2;
- display: block;
- background: none;
- padding-top: 2px;
- padding-bottom: 1px;
- padding-left: 2px;
- padding-right: 2px;
- border-width: 0 0 1px 0;
- line-height: 26px;
- -ms-flex-preferred-size: 26px;
- border-radius: 0; }
- md-input-container .md-input:focus {
- outline: none; }
- md-input-container .md-input:invalid {
- outline: none;
- box-shadow: none; }
- md-input-container ng-messages, md-input-container data-ng-messages, md-input-container x-ng-messages, md-input-container [ng-messages], md-input-container [data-ng-messages], md-input-container [x-ng-messages] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3;
- position: relative; }
- md-input-container ng-message, md-input-container data-ng-message, md-input-container x-ng-message, md-input-container [ng-message], md-input-container [data-ng-message], md-input-container [x-ng-message], md-input-container .md-char-counter {
- -webkit-font-smoothing: antialiased;
- position: absolute;
- font-size: 12px;
- line-height: 24px; }
- md-input-container ng-message:not(.md-char-counter), md-input-container data-ng-message:not(.md-char-counter), md-input-container x-ng-message:not(.md-char-counter), md-input-container [ng-message]:not(.md-char-counter), md-input-container [data-ng-message]:not(.md-char-counter), md-input-container [x-ng-message]:not(.md-char-counter), md-input-container .md-char-counter:not(.md-char-counter) {
- padding-right: 30px; }
- md-input-container ng-message.ng-enter, md-input-container data-ng-message.ng-enter, md-input-container x-ng-message.ng-enter, md-input-container [ng-message].ng-enter, md-input-container [data-ng-message].ng-enter, md-input-container [x-ng-message].ng-enter, md-input-container .md-char-counter.ng-enter {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-delay: 0.2s; }
- md-input-container ng-message.ng-leave, md-input-container data-ng-message.ng-leave, md-input-container x-ng-message.ng-leave, md-input-container [ng-message].ng-leave, md-input-container [data-ng-message].ng-leave, md-input-container [x-ng-message].ng-leave, md-input-container .md-char-counter.ng-leave {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-input-container ng-message.ng-enter, md-input-container ng-message.ng-leave.ng-leave-active, md-input-container data-ng-message.ng-enter, md-input-container data-ng-message.ng-leave.ng-leave-active, md-input-container x-ng-message.ng-enter, md-input-container x-ng-message.ng-leave.ng-leave-active, md-input-container [ng-message].ng-enter, md-input-container [ng-message].ng-leave.ng-leave-active, md-input-container [data-ng-message].ng-enter, md-input-container [data-ng-message].ng-leave.ng-leave-active, md-input-container [x-ng-message].ng-enter, md-input-container [x-ng-message].ng-leave.ng-leave-active, md-input-container .md-char-counter.ng-enter, md-input-container .md-char-counter.ng-leave.ng-leave-active {
- opacity: 0;
- -webkit-transform: translate3d(0, -20%, 0);
- transform: translate3d(0, -20%, 0); }
- md-input-container ng-message.ng-leave, md-input-container ng-message.ng-enter.ng-enter-active, md-input-container data-ng-message.ng-leave, md-input-container data-ng-message.ng-enter.ng-enter-active, md-input-container x-ng-message.ng-leave, md-input-container x-ng-message.ng-enter.ng-enter-active, md-input-container [ng-message].ng-leave, md-input-container [ng-message].ng-enter.ng-enter-active, md-input-container [data-ng-message].ng-leave, md-input-container [data-ng-message].ng-enter.ng-enter-active, md-input-container [x-ng-message].ng-leave, md-input-container [x-ng-message].ng-enter.ng-enter-active, md-input-container .md-char-counter.ng-leave, md-input-container .md-char-counter.ng-enter.ng-enter-active {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-input-container .md-char-counter {
- bottom: 2px;
- right: 2px; }
- md-input-container.md-input-focused label:not(.md-no-float), md-input-container.md-input-has-value label:not(.md-no-float) {
- -webkit-transform: translate3d(0, 6px, 0) scale(0.75);
- transform: translate3d(0, 6px, 0) scale(0.75); }
- md-input-container.md-input-focused .md-input, md-input-container .md-input.ng-invalid.ng-dirty {
- padding-bottom: 0;
- border-width: 0 0 2px 0; }
- md-input-container .md-input[disabled], [disabled] md-input-container .md-input {
- background-position: 0 bottom;
- background-size: 4px 1px;
- background-repeat: repeat-x;
- margin-bottom: -1px; }
-
-md-input-container.md-icon-float {
- margin-top: -16px;
- transition: margin-top 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-input-container.md-icon-float > label {
- pointer-events: none;
- position: absolute;
- margin-left: 36px; }
- md-input-container.md-icon-float > md-icon {
- top: 26px;
- left: 2px; }
- md-input-container.md-icon-float > md-icon + input {
- margin-left: 36px; }
- md-input-container.md-icon-float > input {
- padding-top: 24px; }
- md-input-container.md-icon-float.md-input-focused, md-input-container.md-icon-float.md-input-has-value {
- margin-top: -8px; }
- md-input-container.md-icon-float.md-input-focused label, md-input-container.md-icon-float.md-input-has-value label {
- -webkit-transform: translate3d(0, 6px, 0) scale(0.75);
- transform: translate3d(0, 6px, 0) scale(0.75);
- transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s;
- transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s; }
-
-@media screen and (-ms-high-contrast: active) {
- md-input-container.md-default-theme > md-icon {
- fill: #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input.js
deleted file mode 100644
index aa985e77..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/input/input.js
+++ /dev/null
@@ -1,371 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.input');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.input
- */
-
-angular.module('material.components.input', [
- 'material.core'
-])
- .directive('mdInputContainer', mdInputContainerDirective)
- .directive('label', labelDirective)
- .directive('input', inputTextareaDirective)
- .directive('textarea', inputTextareaDirective)
- .directive('mdMaxlength', mdMaxlengthDirective)
- .directive('placeholder', placeholderDirective);
-
-/**
- * @ngdoc directive
- * @name mdInputContainer
- * @module material.components.input
- *
- * @restrict E
- *
- * @description
- * `<md-input-container>` is the parent of any input or textarea element.
- *
- * Input and textarea elements will not behave properly unless the md-input-container
- * parent is provided.
- *
- * @param md-is-error {expression=} When the given expression evaluates to true, the input container will go into error state. Defaults to erroring if the input has been touched and is invalid.
- * @param md-no-float {boolean=} When present, placeholders will not be converted to floating labels
- *
- * @usage
- * <hljs lang="html">
- *
- * <md-input-container>
- * <label>Username</label>
- * <input type="text" ng-model="user.name">
- * </md-input-container>
- *
- * <md-input-container>
- * <label>Description</label>
- * <textarea ng-model="user.description"></textarea>
- * </md-input-container>
- *
- * </hljs>
- */
-function mdInputContainerDirective($mdTheming, $parse) {
- ContainerCtrl.$inject = ["$scope", "$element", "$attrs"];
- return {
- restrict: 'E',
- link: postLink,
- controller: ContainerCtrl
- };
-
- function postLink(scope, element, attr) {
- $mdTheming(element);
- }
- function ContainerCtrl($scope, $element, $attrs) {
- var self = this;
-
- self.isErrorGetter = $attrs.mdIsError && $parse($attrs.mdIsError);
-
- self.delegateClick = function() {
- self.input.focus();
- };
- self.element = $element;
- self.setFocused = function(isFocused) {
- $element.toggleClass('md-input-focused', !!isFocused);
- };
- self.setHasValue = function(hasValue) {
- $element.toggleClass('md-input-has-value', !!hasValue);
- };
- self.setInvalid = function(isInvalid) {
- $element.toggleClass('md-input-invalid', !!isInvalid);
- };
- $scope.$watch(function() {
- return self.label && self.input;
- }, function(hasLabelAndInput) {
- if (hasLabelAndInput && !self.label.attr('for')) {
- self.label.attr('for', self.input.attr('id'));
- }
- });
- }
-}
-mdInputContainerDirective.$inject = ["$mdTheming", "$parse"];
-
-function labelDirective() {
- return {
- restrict: 'E',
- require: '^?mdInputContainer',
- link: function(scope, element, attr, containerCtrl) {
- if (!containerCtrl || attr.mdNoFloat) return;
-
- containerCtrl.label = element;
- scope.$on('$destroy', function() {
- containerCtrl.label = null;
- });
- }
- };
-}
-
-/**
- * @ngdoc directive
- * @name mdInput
- * @restrict E
- * @module material.components.input
- *
- * @description
- * Use the `<input>` or the `<textarea>` as a child of an `<md-input-container>`.
- *
- * @param {number=} md-maxlength The maximum number of characters allowed in this input. If this is specified, a character counter will be shown underneath the input.<br/><br/>
- * The purpose of **`md-maxlength`** is exactly to show the max length counter text. If you don't want the counter text and only need "plain" validation, you can use the "simple" `ng-maxlength` or maxlength attributes.
- * @param {string=} aria-label Aria-label is required when no label is present. A warning message will be logged in the console if not present.
- * @param {string=} placeholder An alternative approach to using aria-label when the label is not present. The placeholder text is copied to the aria-label attribute.
- *
- * @usage
- * <hljs lang="html">
- * <md-input-container>
- * <label>Color</label>
- * <input type="text" ng-model="color" required md-maxlength="10">
- * </md-input-container>
- * </hljs>
- * <h3>With Errors</h3>
- *
- * <hljs lang="html">
- * <form name="userForm">
- * <md-input-container>
- * <label>Last Name</label>
- * <input name="lastName" ng-model="lastName" required md-maxlength="10" minlength="4">
- * <div ng-messages="userForm.lastName.$error" ng-show="userForm.lastName.$dirty">
- * <div ng-message="required">This is required!</div>
- * <div ng-message="md-maxlength">That's too long!</div>
- * <div ng-message="minlength">That's too short!</div>
- * </div>
- * </md-input-container>
- * <md-input-container>
- * <label>Biography</label>
- * <textarea name="bio" ng-model="biography" required md-maxlength="150"></textarea>
- * <div ng-messages="userForm.bio.$error" ng-show="userForm.bio.$dirty">
- * <div ng-message="required">This is required!</div>
- * <div ng-message="md-maxlength">That's too long!</div>
- * </div>
- * </md-input-container>
- * <md-input-container>
- * <input aria-label='title' ng-model='title'>
- * </md-input-container>
- * <md-input-container>
- * <input placeholder='title' ng-model='title'>
- * </md-input-container>
- * </form>
- * </hljs>
- *
- * Requires [ngMessages](https://docs.angularjs.org/api/ngMessages).
- * Behaves like the [AngularJS input directive](https://docs.angularjs.org/api/ng/directive/input).
- *
- */
-
-function inputTextareaDirective($mdUtil, $window, $mdAria) {
- return {
- restrict: 'E',
- require: ['^?mdInputContainer', '?ngModel'],
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrls) {
-
- var containerCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1] || $mdUtil.fakeNgModel();
- var isReadonly = angular.isDefined(attr.readonly);
-
- if ( !containerCtrl ) return;
- if (containerCtrl.input) {
- throw new Error("<md-input-container> can only have *one* <input> or <textarea> child element!");
- }
- containerCtrl.input = element;
-
- if(!containerCtrl.label) {
- $mdAria.expect(element, 'aria-label', element.attr('placeholder'));
- }
-
- element.addClass('md-input');
- if (!element.attr('id')) {
- element.attr('id', 'input_' + $mdUtil.nextUid());
- }
-
- if (element[0].tagName.toLowerCase() === 'textarea') {
- setupTextarea();
- }
-
- var isErrorGetter = containerCtrl.isErrorGetter || function() {
- return ngModelCtrl.$invalid && ngModelCtrl.$touched;
- };
- scope.$watch(isErrorGetter, containerCtrl.setInvalid);
-
- ngModelCtrl.$parsers.push(ngModelPipelineCheckValue);
- ngModelCtrl.$formatters.push(ngModelPipelineCheckValue);
-
- element.on('input', inputCheckValue);
-
- if (!isReadonly) {
- element
- .on('focus', function(ev) {
- containerCtrl.setFocused(true);
- })
- .on('blur', function(ev) {
- containerCtrl.setFocused(false);
- inputCheckValue();
- });
-
- }
-
- //ngModelCtrl.$setTouched();
- //if( ngModelCtrl.$invalid ) containerCtrl.setInvalid();
-
- scope.$on('$destroy', function() {
- containerCtrl.setFocused(false);
- containerCtrl.setHasValue(false);
- containerCtrl.input = null;
- });
-
- /**
- *
- */
- function ngModelPipelineCheckValue(arg) {
- containerCtrl.setHasValue(!ngModelCtrl.$isEmpty(arg));
- return arg;
- }
- function inputCheckValue() {
- // An input's value counts if its length > 0,
- // or if the input's validity state says it has bad input (eg string in a number input)
- containerCtrl.setHasValue(element.val().length > 0 || (element[0].validity||{}).badInput);
- }
-
- function setupTextarea() {
- var node = element[0];
- var onChangeTextarea = $mdUtil.debounce(growTextarea, 1);
-
- function pipelineListener(value) {
- onChangeTextarea();
- return value;
- }
-
- if (ngModelCtrl) {
- ngModelCtrl.$formatters.push(pipelineListener);
- ngModelCtrl.$viewChangeListeners.push(pipelineListener);
- } else {
- onChangeTextarea();
- }
- element.on('keydown input', onChangeTextarea);
- element.on('scroll', onScroll);
- angular.element($window).on('resize', onChangeTextarea);
-
- scope.$on('$destroy', function() {
- angular.element($window).off('resize', onChangeTextarea);
- });
-
- function growTextarea() {
- node.style.height = "auto";
- node.scrollTop = 0;
- var height = getHeight();
- if (height) node.style.height = height + 'px';
- }
-
- function getHeight () {
- var line = node.scrollHeight - node.offsetHeight;
- return node.offsetHeight + (line > 0 ? line : 0);
- }
-
- function onScroll(e) {
- node.scrollTop = 0;
- // for smooth new line adding
- var line = node.scrollHeight - node.offsetHeight;
- var height = node.offsetHeight + line;
- node.style.height = height + 'px';
- }
- }
- }
-}
-inputTextareaDirective.$inject = ["$mdUtil", "$window", "$mdAria"];
-
-function mdMaxlengthDirective($animate) {
- return {
- restrict: 'A',
- require: ['ngModel', '^mdInputContainer'],
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrls) {
- var maxlength;
- var ngModelCtrl = ctrls[0];
- var containerCtrl = ctrls[1];
- var charCountEl = angular.element('<div class="md-char-counter">');
-
- // Stop model from trimming. This makes it so whitespace
- // over the maxlength still counts as invalid.
- attr.$set('ngTrim', 'false');
- containerCtrl.element.append(charCountEl);
-
- ngModelCtrl.$formatters.push(renderCharCount);
- ngModelCtrl.$viewChangeListeners.push(renderCharCount);
- element.on('input keydown', function() {
- renderCharCount(); //make sure it's called with no args
- });
-
- scope.$watch(attr.mdMaxlength, function(value) {
- maxlength = value;
- if (angular.isNumber(value) && value > 0) {
- if (!charCountEl.parent().length) {
- $animate.enter(charCountEl, containerCtrl.element,
- angular.element(containerCtrl.element[0].lastElementChild));
- }
- renderCharCount();
- } else {
- $animate.leave(charCountEl);
- }
- });
-
- ngModelCtrl.$validators['md-maxlength'] = function(modelValue, viewValue) {
- if (!angular.isNumber(maxlength) || maxlength < 0) {
- return true;
- }
- return ( modelValue || element.val() || viewValue || '' ).length <= maxlength;
- };
-
- function renderCharCount(value) {
- charCountEl.text( ( element.val() || value || '' ).length + '/' + maxlength );
- return value;
- }
- }
-}
-mdMaxlengthDirective.$inject = ["$animate"];
-
-function placeholderDirective($log) {
- var blackListElements = ['MD-SELECT'];
- return {
- restrict: 'A',
- require: '^^?mdInputContainer',
- priority: 200,
- link: postLink
- };
-
- function postLink(scope, element, attr, inputContainer) {
- if (!inputContainer) return;
- if (blackListElements.indexOf(element[0].nodeName) != -1) return;
- if (angular.isDefined(inputContainer.element.attr('md-no-float'))) return;
-
- var placeholderText = attr.placeholder;
- element.removeAttr('placeholder');
-
- if ( inputContainer.element.find('label').length == 0 ) {
- var placeholder = '<label ng-click="delegateClick()">' + placeholderText + '</label>';
-
- inputContainer.element.addClass('md-icon-float');
- inputContainer.element.prepend(placeholder);
- } else {
- $log.warn("The placeholder='" + placeholderText + "' will be ignored since this md-input-container has a child label element.");
- }
-
- }
-}
-placeholderDirective.$inject = ["$log"];
-
-ng.material.components.input = angular.module("material.components.input"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list-default-theme.css
deleted file mode 100644
index 0f987b14..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list-default-theme.css
+++ /dev/null
@@ -1,23 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 {
- color: '{{foreground-1}}'; }
-md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p {
- color: '{{foreground-2}}'; }
-md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style {
- background-color: '{{background-100}}'; }
-md-list.md-THEME_NAME-theme md-list-item > md-icon {
- color: '{{foreground-2}}'; }
- md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight {
- color: '{{primary-color}}'; }
- md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent {
- color: '{{accent-color}}'; }
-md-list.md-THEME_NAME-theme md-list-item button {
- background-color: '{{background-color}}'; }
- md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover {
- background-color: '{{background-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list.css
deleted file mode 100644
index 5835d322..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list.css
+++ /dev/null
@@ -1,147 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-list {
- display: block;
- padding: 8px 0px 8px 0px; }
- md-list .md-subheader {
- line-height: 0.75em; }
-
-md-list-item.md-proxy-focus.md-focused .md-no-style {
- transition: background-color 0.15s linear; }
-md-list-item.md-no-proxy, md-list-item .md-no-style {
- position: relative;
- padding: 0px 16px;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- md-list-item.md-no-proxy.md-button, md-list-item .md-no-style.md-button {
- font-size: inherit;
- height: inherit;
- text-align: left;
- text-transform: none;
- width: 100%;
- white-space: normal; }
- md-list-item.md-no-proxy:focus, md-list-item .md-no-style:focus {
- outline: none; }
-md-list-item.md-with-secondary {
- position: relative; }
-md-list-item.md-clickable:hover {
- cursor: pointer; }
-md-list-item md-divider {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%; }
- md-list-item md-divider[md-inset] {
- left: 96px;
- width: calc(100% - 96px);
- margin: 0; }
-
-md-list-item, md-list-item .md-list-item-inner {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-justify-content: flex-start;
- -ms-flex-pack: start;
- justify-content: flex-start;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- min-height: 48px; }
- md-list-item > div.md-primary > md-icon, md-list-item > div.md-secondary > md-icon, md-list-item > md-icon:first-child, md-list-item > md-icon.md-secondary, md-list-item .md-list-item-inner > div.md-primary > md-icon, md-list-item .md-list-item-inner > div.md-secondary > md-icon, md-list-item .md-list-item-inner > md-icon:first-child, md-list-item .md-list-item-inner > md-icon.md-secondary {
- width: 24px;
- margin-top: 16px;
- margin-bottom: 12px;
- box-sizing: content-box; }
- md-list-item > div.md-primary > md-checkbox, md-list-item > div.md-secondary > md-checkbox, md-list-item > md-checkbox:first-child, md-list-item md-checkbox.md-secondary, md-list-item .md-list-item-inner > div.md-primary > md-checkbox, md-list-item .md-list-item-inner > div.md-secondary > md-checkbox, md-list-item .md-list-item-inner > md-checkbox:first-child, md-list-item .md-list-item-inner md-checkbox.md-secondary {
- -webkit-align-self: center;
- -ms-flex-item-align: center;
- align-self: center; }
- md-list-item > div.md-primary > md-checkbox .md-label, md-list-item > div.md-secondary > md-checkbox .md-label, md-list-item > md-checkbox:first-child .md-label, md-list-item md-checkbox.md-secondary .md-label, md-list-item .md-list-item-inner > div.md-primary > md-checkbox .md-label, md-list-item .md-list-item-inner > div.md-secondary > md-checkbox .md-label, md-list-item .md-list-item-inner > md-checkbox:first-child .md-label, md-list-item .md-list-item-inner md-checkbox.md-secondary .md-label {
- display: none; }
- md-list-item > md-icon:first-child, md-list-item .md-list-item-inner > md-icon:first-child {
- margin-right: 32px; }
- md-list-item > md-checkbox:first-child, md-list-item .md-list-item-inner > md-checkbox:first-child {
- width: 24px;
- margin-left: 3px;
- margin-right: 29px; }
- md-list-item > .md-avatar:first-child, md-list-item .md-list-item-inner > .md-avatar:first-child {
- width: 40px;
- height: 40px;
- margin-top: 8px;
- margin-bottom: 8px;
- margin-right: 16px;
- border-radius: 50%;
- box-sizing: content-box; }
- md-list-item md-checkbox.md-secondary, md-list-item md-switch.md-secondary, md-list-item .md-list-item-inner md-checkbox.md-secondary, md-list-item .md-list-item-inner md-switch.md-secondary {
- margin-right: 0;
- margin-top: 0;
- margin-bottom: 0; }
- md-list-item button.md-button.md-secondary-container, md-list-item .md-list-item-inner button.md-button.md-secondary-container {
- background-color: transparent;
- -webkit-align-self: center;
- -ms-flex-item-align: center;
- align-self: center;
- border-radius: 50%;
- margin: 0px;
- min-width: 0px; }
- md-list-item button.md-button.md-secondary-container .md-ripple, md-list-item button.md-button.md-secondary-container .md-ripple-container, md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple, md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple-container {
- border-radius: 50%; }
- md-list-item .md-secondary-container, md-list-item .md-secondary, md-list-item .md-list-item-inner .md-secondary-container, md-list-item .md-list-item-inner .md-secondary {
- margin-left: 16px;
- position: absolute;
- right: 16px;
- top: 50%;
- -webkit-transform: translate3d(0, -50%, 0);
- transform: translate3d(0, -50%, 0); }
- md-list-item > .md-button.md-secondary-container > .md-secondary, md-list-item .md-list-item-inner > .md-button.md-secondary-container > .md-secondary {
- margin-left: 0px;
- position: static; }
- md-list-item > p, md-list-item > .md-list-item-inner > p, md-list-item .md-list-item-inner > p, md-list-item .md-list-item-inner > .md-list-item-inner > p {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- margin: 0; }
-
-md-list-item.md-2-line, md-list-item.md-2-line > .md-no-style, md-list-item.md-3-line, md-list-item.md-3-line > .md-no-style {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- md-list-item.md-2-line .md-list-item-text, md-list-item.md-2-line > .md-no-style .md-list-item-text, md-list-item.md-3-line .md-list-item-text, md-list-item.md-3-line > .md-no-style .md-list-item-text {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- padding: 16px 0;
- text-overflow: ellipsis; }
- md-list-item.md-2-line .md-list-item-text.md-offset, md-list-item.md-2-line > .md-no-style .md-list-item-text.md-offset, md-list-item.md-3-line .md-list-item-text.md-offset, md-list-item.md-3-line > .md-no-style .md-list-item-text.md-offset {
- margin-left: 56px; }
- md-list-item.md-2-line .md-list-item-text h3, md-list-item.md-2-line > .md-no-style .md-list-item-text h3, md-list-item.md-3-line .md-list-item-text h3, md-list-item.md-3-line > .md-no-style .md-list-item-text h3 {
- margin: 0 0 6px 0;
- line-height: 0.75em; }
- md-list-item.md-2-line .md-list-item-text h4, md-list-item.md-2-line > .md-no-style .md-list-item-text h4, md-list-item.md-3-line .md-list-item-text h4, md-list-item.md-3-line > .md-no-style .md-list-item-text h4 {
- font-weight: 400;
- margin: 10px 0 5px 0;
- line-height: 0.75em; }
- md-list-item.md-2-line .md-list-item-text p, md-list-item.md-2-line > .md-no-style .md-list-item-text p, md-list-item.md-3-line .md-list-item-text p, md-list-item.md-3-line > .md-no-style .md-list-item-text p {
- margin: 0 0 0px 0;
- line-height: 1.6em; }
-
-md-list-item.md-2-line > .md-avatar:first-child, md-list-item.md-2-line > .md-no-style > .md-avatar:first-child {
- margin-top: 12px; }
-md-list-item.md-2-line > md-icon:first-child, md-list-item.md-2-line > .md-no-style > md-icon:first-child {
- -webkit-align-self: flex-start;
- -ms-flex-item-align: start;
- align-self: flex-start; }
-md-list-item.md-2-line .md-list-item-text, md-list-item.md-2-line > .md-no-style .md-list-item-text {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- padding-top: 19px; }
-
-md-list-item.md-3-line > md-icon:first-child, md-list-item.md-3-line > .md-avatar:first-child, md-list-item.md-3-line > .md-no-style > md-icon:first-child, md-list-item.md-3-line > .md-no-style > .md-avatar:first-child {
- margin-top: 16px; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list.js
deleted file mode 100644
index 1fb44acb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/list/list.js
+++ /dev/null
@@ -1,273 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.list');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.list
- * @description
- * List module
- */
-angular.module('material.components.list', [
- 'material.core'
-])
- .controller('MdListController', MdListController)
- .directive('mdList', mdListDirective)
- .directive('mdListItem', mdListItemDirective);
-
-/**
- * @ngdoc directive
- * @name mdList
- * @module material.components.list
- *
- * @restrict E
- *
- * @description
- * The `<md-list>` directive is a list container for 1..n `<md-list-item>` tags.
- *
- * @usage
- * <hljs lang="html">
- * <md-list>
- * <md-list-item class="md-2-line" ng-repeat="item in todos">
- * <md-checkbox ng-model="item.done"></md-checkbox>
- * <div class="md-list-item-text">
- * <h3>{{item.title}}</h3>
- * <p>{{item.description}}</p>
- * </div>
- * </md-list-item>
- * </md-list>
- * </hljs>
- */
-
-function mdListDirective($mdTheming) {
- return {
- restrict: 'E',
- compile: function(tEl) {
- tEl[0].setAttribute('role', 'list');
- return $mdTheming;
- }
- };
-}
-mdListDirective.$inject = ["$mdTheming"];
-/**
- * @ngdoc directive
- * @name mdListItem
- * @module material.components.list
- *
- * @restrict E
- *
- * @description
- * The `<md-list-item>` directive is a container intended for row items in a `<md-list>` container.
- *
- * @usage
- * <hljs lang="html">
- * <md-list>
- * <md-list-item>
- * Item content in list
- * </md-list-item>
- * </md-list>
- * </hljs>
- *
- */
-function mdListItemDirective($mdAria, $mdConstant, $timeout) {
- var proxiedTypes = ['md-checkbox', 'md-switch'];
- return {
- restrict: 'E',
- controller: 'MdListController',
- compile: function(tEl, tAttrs) {
- // Check for proxy controls (no ng-click on parent, and a control inside)
- var secondaryItem = tEl[0].querySelector('.md-secondary');
- var hasProxiedElement;
- var proxyElement;
-
- tEl[0].setAttribute('role', 'listitem');
-
- if (!tAttrs.ngClick) {
- for (var i = 0, type; type = proxiedTypes[i]; ++i) {
- if (proxyElement = tEl[0].querySelector(type)) {
- hasProxiedElement = true;
- break;
- }
- }
- if (hasProxiedElement) {
- wrapIn('div');
- } else if (!tEl[0].querySelector('md-button')) {
- tEl.addClass('md-no-proxy');
- }
- } else {
- wrapIn('button');
- }
- setupToggleAria();
-
-
- function setupToggleAria() {
- var toggleTypes = ['md-switch', 'md-checkbox'];
- var toggle;
-
- for (var i = 0, toggleType; toggleType = toggleTypes[i]; ++i) {
- if (toggle = tEl.find(toggleType)[0]) {
- if (!toggle.hasAttribute('aria-label')) {
- var p = tEl.find('p')[0];
- if (!p) return;
- toggle.setAttribute('aria-label', 'Toggle ' + p.textContent);
- }
- }
- }
- }
-
- function wrapIn(type) {
- var container;
- if (type == 'div') {
- container = angular.element('<div class="md-no-style md-list-item-inner">');
- container.append(tEl.contents());
- tEl.addClass('md-proxy-focus');
- } else {
- container = angular.element('<md-button class="md-no-style"><div class="md-list-item-inner"></div></md-button>');
- var copiedAttrs = ['ng-click', 'aria-label', 'ng-disabled'];
- angular.forEach(copiedAttrs, function(attr) {
- if (tEl[0].hasAttribute(attr)) {
- container[0].setAttribute(attr, tEl[0].getAttribute(attr));
- tEl[0].removeAttribute(attr);
- }
- });
- container.children().eq(0).append(tEl.contents());
- }
-
- tEl[0].setAttribute('tabindex', '-1');
- tEl.append(container);
-
- if (secondaryItem && secondaryItem.hasAttribute('ng-click')) {
- $mdAria.expect(secondaryItem, 'aria-label');
- var buttonWrapper = angular.element('<md-button class="md-secondary-container md-icon-button">');
- buttonWrapper.attr('ng-click', secondaryItem.getAttribute('ng-click'));
- secondaryItem.removeAttribute('ng-click');
- secondaryItem.setAttribute('tabindex', '-1');
- secondaryItem.classList.remove('md-secondary');
- buttonWrapper.append(secondaryItem);
- secondaryItem = buttonWrapper[0];
- }
-
- // Check for a secondary item and move it outside
- if ( secondaryItem && (
- secondaryItem.hasAttribute('ng-click') ||
- ( tAttrs.ngClick &&
- isProxiedElement(secondaryItem) )
- )) {
- tEl.addClass('md-with-secondary');
- tEl.append(secondaryItem);
- }
- }
-
- function isProxiedElement(el) {
- return proxiedTypes.indexOf(el.nodeName.toLowerCase()) != -1;
- }
-
- return postLink;
-
- function postLink($scope, $element, $attr, ctrl) {
-
- var proxies = [],
- firstChild = $element[0].firstElementChild,
- hasClick = firstChild && firstChild.hasAttribute('ng-click');
-
- computeProxies();
- computeClickable();
-
- if ($element.hasClass('md-proxy-focus') && proxies.length) {
- angular.forEach(proxies, function(proxy) {
- proxy = angular.element(proxy);
-
- $scope.mouseActive = false;
- proxy.on('mousedown', function() {
- $scope.mouseActive = true;
- $timeout(function(){
- $scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if ($scope.mouseActive === false) { $element.addClass('md-focused'); }
- proxy.on('blur', function proxyOnBlur() {
- $element.removeClass('md-focused');
- proxy.off('blur', proxyOnBlur);
- });
- });
- });
- }
-
- function computeProxies() {
- var children = $element.children();
- if (children.length && !children[0].hasAttribute('ng-click')) {
- angular.forEach(proxiedTypes, function(type) {
- angular.forEach(firstChild.querySelectorAll(type), function(child) {
- proxies.push(child);
- });
- });
- }
- }
- function computeClickable() {
- if (proxies.length || hasClick) {
- $element.addClass('md-clickable');
-
- ctrl.attachRipple($scope, angular.element($element[0].querySelector('.md-no-style')));
- }
- }
-
- if (!hasClick && !proxies.length) {
- firstChild && firstChild.addEventListener('keypress', function(e) {
- if (e.target.nodeName != 'INPUT' && e.target.nodeName != 'TEXTAREA') {
- var keyCode = e.which || e.keyCode;
- if (keyCode == $mdConstant.KEY_CODE.SPACE) {
- if (firstChild) {
- firstChild.click();
- e.preventDefault();
- e.stopPropagation();
- }
- }
- }
- });
- }
-
- $element.off('click');
- $element.off('keypress');
-
- if (proxies.length && firstChild) {
- $element.children().eq(0).on('click', function(e) {
- if (firstChild.contains(e.target)) {
- angular.forEach(proxies, function(proxy) {
- if (e.target !== proxy && !proxy.contains(e.target)) {
- angular.element(proxy).triggerHandler('click');
- }
- });
- }
- });
- }
- }
- }
- };
-}
-mdListItemDirective.$inject = ["$mdAria", "$mdConstant", "$timeout"];
-
-/*
- * @private
- * @ngdoc controller
- * @name MdListController
- * @module material.components.list
- *
- */
-function MdListController($scope, $element, $mdListInkRipple) {
- var ctrl = this;
- ctrl.attachRipple = attachRipple;
-
- function attachRipple (scope, element) {
- var options = {};
- $mdListInkRipple.attach(scope, element, options);
- }
-}
-MdListController.$inject = ["$scope", "$element", "$mdListInkRipple"];
-
-
-ng.material.components.list = angular.module("material.components.list"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/menu/menu.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/menu/menu.css
deleted file mode 100644
index 3731bdbe..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/menu/menu.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.6.0
- */
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/menu/menu.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/menu/menu.js
deleted file mode 100644
index bff460aa..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/menu/menu.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.6.0
- */
-goog.provide('ng.material.components.menu');
-
-
-angular.module('material.components.menu', [
-])
-
-.factory('$mdMenu', MenuProvider);
-
-function MenuProvider($$interimElementProvider) {
- return $$interimElementProvider('$mdMenu')
- .setDefaults({
- methods: ['placement'],
- options: menuDefaultOptions
- });
-
- /* @ngInject */
- function menuDefaultOptions() {
-
- }
-}
-MenuProvider.$inject = ["$$interimElementProvider"];
-
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular-default-theme.css
deleted file mode 100644
index c3ae544e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular-default-theme.css
+++ /dev/null
@@ -1,36 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-progress-circular.md-THEME_NAME-theme {
- background-color: transparent; }
- md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap {
- border-top-color: '{{primary-color}}';
- border-bottom-color: '{{primary-color}}'; }
- md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {
- border-top-color: '{{primary-color}}'; }
- md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {
- border-right-color: '{{primary-color}}'; }
- md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle {
- border-left-color: '{{primary-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap {
- border-top-color: '{{warn-color}}';
- border-bottom-color: '{{warn-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {
- border-top-color: '{{warn-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {
- border-right-color: '{{warn-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle {
- border-left-color: '{{warn-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap {
- border-top-color: '{{accent-color}}';
- border-bottom-color: '{{accent-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {
- border-top-color: '{{accent-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {
- border-right-color: '{{accent-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle {
- border-left-color: '{{accent-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular.css
deleted file mode 100644
index 7fa7c668..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular.css
+++ /dev/null
@@ -1,1306 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes outer-rotate {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg); } }
-@keyframes outer-rotate {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg); } }
-
-@-webkit-keyframes left-wobble {
- 0%, 100% {
- -webkit-transform: rotate(130deg);
- transform: rotate(130deg); }
-
- 50% {
- -webkit-transform: rotate(-5deg);
- transform: rotate(-5deg); } }
-
-@keyframes left-wobble {
- 0%, 100% {
- -webkit-transform: rotate(130deg);
- transform: rotate(130deg); }
-
- 50% {
- -webkit-transform: rotate(-5deg);
- transform: rotate(-5deg); } }
-
-@-webkit-keyframes right-wobble {
- 0%, 100% {
- -webkit-transform: rotate(-130deg);
- transform: rotate(-130deg); }
-
- 50% {
- -webkit-transform: rotate(5deg);
- transform: rotate(5deg); } }
-
-@keyframes right-wobble {
- 0%, 100% {
- -webkit-transform: rotate(-130deg);
- transform: rotate(-130deg); }
-
- 50% {
- -webkit-transform: rotate(5deg);
- transform: rotate(5deg); } }
-
-@-webkit-keyframes sporadic-rotate {
- 12.5% {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
-
- 25% {
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg); }
-
- 37.5% {
- -webkit-transform: rotate(405deg);
- transform: rotate(405deg); }
-
- 50% {
- -webkit-transform: rotate(540deg);
- transform: rotate(540deg); }
-
- 62.5% {
- -webkit-transform: rotate(675deg);
- transform: rotate(675deg); }
-
- 75% {
- -webkit-transform: rotate(810deg);
- transform: rotate(810deg); }
-
- 87.5% {
- -webkit-transform: rotate(945deg);
- transform: rotate(945deg); }
-
- 100% {
- -webkit-transform: rotate(1080deg);
- transform: rotate(1080deg); } }
-
-@keyframes sporadic-rotate {
- 12.5% {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
-
- 25% {
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg); }
-
- 37.5% {
- -webkit-transform: rotate(405deg);
- transform: rotate(405deg); }
-
- 50% {
- -webkit-transform: rotate(540deg);
- transform: rotate(540deg); }
-
- 62.5% {
- -webkit-transform: rotate(675deg);
- transform: rotate(675deg); }
-
- 75% {
- -webkit-transform: rotate(810deg);
- transform: rotate(810deg); }
-
- 87.5% {
- -webkit-transform: rotate(945deg);
- transform: rotate(945deg); }
-
- 100% {
- -webkit-transform: rotate(1080deg);
- transform: rotate(1080deg); } }
-
-md-progress-circular {
- width: 50px;
- height: 50px;
- display: block;
- position: relative;
- padding-top: 0 !important;
- margin-bottom: 0 !important;
- overflow: hidden; }
- md-progress-circular .md-inner {
- width: 50px;
- height: 50px;
- position: relative; }
- md-progress-circular .md-inner .md-gap {
- position: absolute;
- left: 24px;
- right: 24px;
- top: 0;
- bottom: 0;
- border-top: 5px solid black;
- box-sizing: border-box; }
- md-progress-circular .md-inner .md-left, md-progress-circular .md-inner .md-right {
- position: absolute;
- top: 0;
- height: 50px;
- width: 25px;
- overflow: hidden; }
- md-progress-circular .md-inner .md-left .md-half-circle, md-progress-circular .md-inner .md-right .md-half-circle {
- position: absolute;
- top: 0;
- width: 50px;
- height: 50px;
- box-sizing: border-box;
- border: 5px solid black;
- border-bottom-color: transparent;
- border-radius: 50%; }
- md-progress-circular .md-inner .md-left {
- left: 0; }
- md-progress-circular .md-inner .md-left .md-half-circle {
- left: 0;
- border-right-color: transparent; }
- md-progress-circular .md-inner .md-right {
- right: 0; }
- md-progress-circular .md-inner .md-right .md-half-circle {
- right: 0;
- border-left-color: transparent; }
- md-progress-circular[value="0"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="0"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-135deg);
- transform: rotate(-135deg); }
- md-progress-circular[value="0"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="1"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="1"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-131.4deg);
- transform: rotate(-131.4deg); }
- md-progress-circular[value="1"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="2"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="2"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-127.8deg);
- transform: rotate(-127.8deg); }
- md-progress-circular[value="2"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="3"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="3"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-124.2deg);
- transform: rotate(-124.2deg); }
- md-progress-circular[value="3"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="4"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="4"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-120.6deg);
- transform: rotate(-120.6deg); }
- md-progress-circular[value="4"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="5"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="5"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-117deg);
- transform: rotate(-117deg); }
- md-progress-circular[value="5"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="6"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="6"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-113.4deg);
- transform: rotate(-113.4deg); }
- md-progress-circular[value="6"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="7"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="7"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-109.8deg);
- transform: rotate(-109.8deg); }
- md-progress-circular[value="7"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="8"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="8"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-106.2deg);
- transform: rotate(-106.2deg); }
- md-progress-circular[value="8"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="9"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="9"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-102.6deg);
- transform: rotate(-102.6deg); }
- md-progress-circular[value="9"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="10"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="10"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-99deg);
- transform: rotate(-99deg); }
- md-progress-circular[value="10"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="11"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="11"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-95.4deg);
- transform: rotate(-95.4deg); }
- md-progress-circular[value="11"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="12"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="12"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-91.8deg);
- transform: rotate(-91.8deg); }
- md-progress-circular[value="12"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="13"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="13"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-88.2deg);
- transform: rotate(-88.2deg); }
- md-progress-circular[value="13"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="14"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="14"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-84.6deg);
- transform: rotate(-84.6deg); }
- md-progress-circular[value="14"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="15"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="15"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-81deg);
- transform: rotate(-81deg); }
- md-progress-circular[value="15"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="16"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="16"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-77.4deg);
- transform: rotate(-77.4deg); }
- md-progress-circular[value="16"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="17"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="17"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-73.8deg);
- transform: rotate(-73.8deg); }
- md-progress-circular[value="17"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="18"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="18"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-70.2deg);
- transform: rotate(-70.2deg); }
- md-progress-circular[value="18"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="19"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="19"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-66.6deg);
- transform: rotate(-66.6deg); }
- md-progress-circular[value="19"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="20"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="20"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-63deg);
- transform: rotate(-63deg); }
- md-progress-circular[value="20"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="21"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="21"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-59.4deg);
- transform: rotate(-59.4deg); }
- md-progress-circular[value="21"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="22"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="22"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-55.8deg);
- transform: rotate(-55.8deg); }
- md-progress-circular[value="22"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="23"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="23"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-52.2deg);
- transform: rotate(-52.2deg); }
- md-progress-circular[value="23"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="24"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="24"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-48.6deg);
- transform: rotate(-48.6deg); }
- md-progress-circular[value="24"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="25"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="25"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-45deg);
- transform: rotate(-45deg); }
- md-progress-circular[value="25"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="26"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="26"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-41.4deg);
- transform: rotate(-41.4deg); }
- md-progress-circular[value="26"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="27"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="27"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-37.8deg);
- transform: rotate(-37.8deg); }
- md-progress-circular[value="27"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="28"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="28"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-34.2deg);
- transform: rotate(-34.2deg); }
- md-progress-circular[value="28"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="29"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="29"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-30.6deg);
- transform: rotate(-30.6deg); }
- md-progress-circular[value="29"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="30"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="30"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-27deg);
- transform: rotate(-27deg); }
- md-progress-circular[value="30"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="31"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="31"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-23.4deg);
- transform: rotate(-23.4deg); }
- md-progress-circular[value="31"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="32"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="32"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-19.8deg);
- transform: rotate(-19.8deg); }
- md-progress-circular[value="32"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="33"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="33"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-16.2deg);
- transform: rotate(-16.2deg); }
- md-progress-circular[value="33"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="34"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="34"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-12.6deg);
- transform: rotate(-12.6deg); }
- md-progress-circular[value="34"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="35"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="35"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-9deg);
- transform: rotate(-9deg); }
- md-progress-circular[value="35"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="36"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="36"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-5.4deg);
- transform: rotate(-5.4deg); }
- md-progress-circular[value="36"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="37"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="37"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-1.8deg);
- transform: rotate(-1.8deg); }
- md-progress-circular[value="37"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="38"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="38"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(1.8deg);
- transform: rotate(1.8deg); }
- md-progress-circular[value="38"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="39"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="39"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(5.4deg);
- transform: rotate(5.4deg); }
- md-progress-circular[value="39"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="40"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="40"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(9deg);
- transform: rotate(9deg); }
- md-progress-circular[value="40"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="41"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="41"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(12.6deg);
- transform: rotate(12.6deg); }
- md-progress-circular[value="41"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="42"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="42"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(16.2deg);
- transform: rotate(16.2deg); }
- md-progress-circular[value="42"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="43"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="43"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(19.8deg);
- transform: rotate(19.8deg); }
- md-progress-circular[value="43"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="44"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="44"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(23.4deg);
- transform: rotate(23.4deg); }
- md-progress-circular[value="44"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="45"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="45"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(27deg);
- transform: rotate(27deg); }
- md-progress-circular[value="45"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="46"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="46"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(30.6deg);
- transform: rotate(30.6deg); }
- md-progress-circular[value="46"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="47"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="47"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(34.2deg);
- transform: rotate(34.2deg); }
- md-progress-circular[value="47"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="48"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="48"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(37.8deg);
- transform: rotate(37.8deg); }
- md-progress-circular[value="48"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="49"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="49"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(41.4deg);
- transform: rotate(41.4deg); }
- md-progress-circular[value="49"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="50"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="50"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="50"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="51"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(138.6deg);
- transform: rotate(138.6deg); }
- md-progress-circular[value="51"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="51"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="52"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(142.2deg);
- transform: rotate(142.2deg); }
- md-progress-circular[value="52"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="52"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="53"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(145.8deg);
- transform: rotate(145.8deg); }
- md-progress-circular[value="53"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="53"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="54"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(149.4deg);
- transform: rotate(149.4deg); }
- md-progress-circular[value="54"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="54"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="55"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(153deg);
- transform: rotate(153deg); }
- md-progress-circular[value="55"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="55"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="56"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(156.6deg);
- transform: rotate(156.6deg); }
- md-progress-circular[value="56"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="56"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="57"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(160.2deg);
- transform: rotate(160.2deg); }
- md-progress-circular[value="57"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="57"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="58"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(163.8deg);
- transform: rotate(163.8deg); }
- md-progress-circular[value="58"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="58"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="59"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(167.4deg);
- transform: rotate(167.4deg); }
- md-progress-circular[value="59"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="59"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="60"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(171deg);
- transform: rotate(171deg); }
- md-progress-circular[value="60"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="60"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="61"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(174.6deg);
- transform: rotate(174.6deg); }
- md-progress-circular[value="61"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="61"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="62"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(178.2deg);
- transform: rotate(178.2deg); }
- md-progress-circular[value="62"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="62"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="63"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(181.8deg);
- transform: rotate(181.8deg); }
- md-progress-circular[value="63"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="63"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="64"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(185.4deg);
- transform: rotate(185.4deg); }
- md-progress-circular[value="64"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="64"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="65"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(189deg);
- transform: rotate(189deg); }
- md-progress-circular[value="65"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="65"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="66"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(192.6deg);
- transform: rotate(192.6deg); }
- md-progress-circular[value="66"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="66"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="67"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(196.2deg);
- transform: rotate(196.2deg); }
- md-progress-circular[value="67"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="67"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="68"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(199.8deg);
- transform: rotate(199.8deg); }
- md-progress-circular[value="68"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="68"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="69"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(203.4deg);
- transform: rotate(203.4deg); }
- md-progress-circular[value="69"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="69"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="70"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(207deg);
- transform: rotate(207deg); }
- md-progress-circular[value="70"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="70"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="71"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(210.6deg);
- transform: rotate(210.6deg); }
- md-progress-circular[value="71"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="71"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="72"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(214.2deg);
- transform: rotate(214.2deg); }
- md-progress-circular[value="72"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="72"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="73"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(217.8deg);
- transform: rotate(217.8deg); }
- md-progress-circular[value="73"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="73"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="74"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(221.4deg);
- transform: rotate(221.4deg); }
- md-progress-circular[value="74"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="74"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="75"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(225deg);
- transform: rotate(225deg); }
- md-progress-circular[value="75"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="75"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="76"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(228.6deg);
- transform: rotate(228.6deg); }
- md-progress-circular[value="76"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="76"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="77"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(232.2deg);
- transform: rotate(232.2deg); }
- md-progress-circular[value="77"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="77"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="78"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(235.8deg);
- transform: rotate(235.8deg); }
- md-progress-circular[value="78"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="78"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="79"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(239.4deg);
- transform: rotate(239.4deg); }
- md-progress-circular[value="79"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="79"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="80"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(243deg);
- transform: rotate(243deg); }
- md-progress-circular[value="80"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="80"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="81"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(246.6deg);
- transform: rotate(246.6deg); }
- md-progress-circular[value="81"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="81"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="82"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(250.2deg);
- transform: rotate(250.2deg); }
- md-progress-circular[value="82"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="82"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="83"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(253.8deg);
- transform: rotate(253.8deg); }
- md-progress-circular[value="83"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="83"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="84"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(257.4deg);
- transform: rotate(257.4deg); }
- md-progress-circular[value="84"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="84"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="85"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(261deg);
- transform: rotate(261deg); }
- md-progress-circular[value="85"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="85"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="86"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(264.6deg);
- transform: rotate(264.6deg); }
- md-progress-circular[value="86"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="86"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="87"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(268.2deg);
- transform: rotate(268.2deg); }
- md-progress-circular[value="87"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="87"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="88"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(271.8deg);
- transform: rotate(271.8deg); }
- md-progress-circular[value="88"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="88"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="89"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(275.4deg);
- transform: rotate(275.4deg); }
- md-progress-circular[value="89"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="89"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="90"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(279deg);
- transform: rotate(279deg); }
- md-progress-circular[value="90"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="90"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="91"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(282.6deg);
- transform: rotate(282.6deg); }
- md-progress-circular[value="91"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="91"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="92"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(286.2deg);
- transform: rotate(286.2deg); }
- md-progress-circular[value="92"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="92"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="93"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(289.8deg);
- transform: rotate(289.8deg); }
- md-progress-circular[value="93"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="93"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="94"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(293.4deg);
- transform: rotate(293.4deg); }
- md-progress-circular[value="94"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="94"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="95"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(297deg);
- transform: rotate(297deg); }
- md-progress-circular[value="95"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="95"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="96"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(300.6deg);
- transform: rotate(300.6deg); }
- md-progress-circular[value="96"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="96"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="97"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(304.2deg);
- transform: rotate(304.2deg); }
- md-progress-circular[value="97"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="97"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="98"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(307.8deg);
- transform: rotate(307.8deg); }
- md-progress-circular[value="98"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="98"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="99"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(311.4deg);
- transform: rotate(311.4deg); }
- md-progress-circular[value="99"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="99"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="100"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(315deg);
- transform: rotate(315deg); }
- md-progress-circular[value="100"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="100"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper {
- -webkit-animation: outer-rotate 2.91667s linear infinite;
- animation: outer-rotate 2.91667s linear infinite; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner {
- -webkit-animation: sporadic-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite;
- animation: sporadic-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle, md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-iteration-count: infinite;
- animation-iteration-count: infinite;
- -webkit-animation-duration: 1.3125s;
- animation-duration: 1.3125s;
- -webkit-animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
- animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1); }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle {
- -webkit-animation-name: left-wobble;
- animation-name: left-wobble; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-name: right-wobble;
- animation-name: right-wobble; }
-
-.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper {
- -webkit-animation: none;
- animation: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner {
- -webkit-animation: none;
- animation: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle {
- -webkit-animation-name: none;
- animation-name: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-name: none;
- animation-name: none; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular.js
deleted file mode 100644
index 293830cd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressCircular/progressCircular.js
+++ /dev/null
@@ -1,109 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.progressCircular');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.progressCircular
- * @description Circular Progress module!
- */
-angular.module('material.components.progressCircular', [
- 'material.core'
-])
- .directive('mdProgressCircular', MdProgressCircularDirective);
-
-/**
- * @ngdoc directive
- * @name mdProgressCircular
- * @module material.components.progressCircular
- * @restrict E
- *
-* @description
- * The circular progress directive is used to make loading content in your app as delightful and
- * painless as possible by minimizing the amount of visual change a user sees before they can view
- * and interact with content.
- *
- * For operations where the percentage of the operation completed can be determined, use a
- * determinate indicator. They give users a quick sense of how long an operation will take.
- *
- * For operations where the user is asked to wait a moment while something finishes up, and it’s
- * not necessary to expose what's happening behind the scenes and how long it will take, use an
- * indeterminate indicator.
- *
- * @param {string} md-mode Select from one of two modes: determinate and indeterminate.
- * @param {number=} value In determinate mode, this number represents the percentage of the
- * circular progress. Default: 0
- * @param {number=} md-diameter This specifies the diamter of the circular progress. Default: 48
- *
- * @usage
- * <hljs lang="html">
- * <md-progress-circular md-mode="determinate" value="..."></md-progress-circular>
- *
- * <md-progress-circular md-mode="determinate" ng-value="..."></md-progress-circular>
- *
- * <md-progress-circular md-mode="determinate" value="..." md-diameter="100"></md-progress-circular>
- *
- * <md-progress-circular md-mode="indeterminate"></md-progress-circular>
- * </hljs>
- */
-function MdProgressCircularDirective($mdConstant, $mdTheming) {
- return {
- restrict: 'E',
- template:
- // The progress 'circle' is composed of two half-circles: the left side and the right
- // side. Each side has CSS applied to 'fill-in' the half-circle to the appropriate progress.
- '<div class="md-spinner-wrapper">' +
- '<div class="md-inner">' +
- '<div class="md-gap"></div>' +
- '<div class="md-left">' +
- '<div class="md-half-circle"></div>' +
- '</div>' +
- '<div class="md-right">' +
- '<div class="md-half-circle"></div>' +
- '</div>' +
- '</div>' +
- '</div>',
- compile: compile
- };
-
- function compile(tElement) {
- // The javascript in this file is mainly responsible for setting the correct aria attributes.
- // The animation of the progress spinner is done entirely with just CSS.
- tElement.attr('aria-valuemin', 0);
- tElement.attr('aria-valuemax', 100);
- tElement.attr('role', 'progressbar');
-
- return postLink;
- }
-
- function postLink(scope, element, attr) {
- $mdTheming(element);
- var circle = element[0];
-
- // Scale the progress circle based on the default diameter.
- var diameter = attr.mdDiameter || 48;
- var scale = diameter / 48;
- circle.style[$mdConstant.CSS.TRANSFORM] = 'scale(' + scale + ')';
-
- attr.$observe('value', function(value) {
- var percentValue = clamp(value);
- element.attr('aria-valuenow', percentValue);
- });
- }
-
- /**
- * Clamps the value to be between 0 and 100.
- * @param {number} value The value to clamp.
- * @returns {number}
- */
- function clamp(value) {
- return Math.max(0, Math.min(value || 0, 100));
- }
-}
-MdProgressCircularDirective.$inject = ["$mdConstant", "$mdTheming"];
-
-ng.material.components.progressCircular = angular.module("material.components.progressCircular"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear-default-theme.css
deleted file mode 100644
index 6680eb20..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear-default-theme.css
+++ /dev/null
@@ -1,27 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-progress-linear.md-THEME_NAME-theme .md-container {
- background-color: '{{primary-100}}'; }
-md-progress-linear.md-THEME_NAME-theme .md-bar {
- background-color: '{{primary-color}}'; }
-md-progress-linear.md-THEME_NAME-theme.md-warn .md-container {
- background-color: '{{warn-100}}'; }
-md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar {
- background-color: '{{warn-color}}'; }
-md-progress-linear.md-THEME_NAME-theme.md-accent .md-container {
- background-color: '{{accent-100}}'; }
-md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar {
- background-color: '{{accent-color}}'; }
-md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 {
- background-color: '{{warn-100}}'; }
-md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before {
- background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }
-md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 {
- background-color: '{{accent-100}}'; }
-md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before {
- background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear.css
deleted file mode 100644
index 31da85d2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear.css
+++ /dev/null
@@ -1,287 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-progress-linear:not([md-mode="indeterminate"]) {
- display: block;
- width: 100%;
- height: 5px; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-container {
- overflow: hidden;
- position: relative;
- height: 5px;
- top: 5px;
- -webkit-transform: translate(0, 5px) scale(1, 0);
- transform: translate(0, 5px) scale(1, 0);
- transition: all .3s linear; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-container.md-ready {
- -webkit-transform: translate(0, 0) scale(1, 1);
- transform: translate(0, 0) scale(1, 1); }
- md-progress-linear:not([md-mode="indeterminate"]) .md-bar {
- height: 5px;
- position: absolute;
- width: 100%; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-bar1, md-progress-linear:not([md-mode="indeterminate"]) .md-bar2 {
- transition: all 0.2s linear; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=determinate] .md-bar1 {
- display: none; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=buffer] .md-container {
- background-color: transparent !important; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=buffer] .md-dashed:before {
- content: "";
- display: block;
- height: 5px;
- width: 100%;
- margin-top: 0;
- position: absolute;
- background-color: transparent;
- background-size: 10px 10px !important;
- background-position: 0px -23px;
- -webkit-animation: buffer 3s infinite linear;
- animation: buffer 3s infinite linear; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=query] .md-bar2 {
- -webkit-animation: query .8s infinite cubic-bezier(0.39, 0.575, 0.565, 1);
- animation: query .8s infinite cubic-bezier(0.39, 0.575, 0.565, 1); }
-
-md-progress-linear[md-mode="indeterminate"] {
- display: block;
- width: 100%;
- height: 5px;
- position: relative; }
- md-progress-linear[md-mode="indeterminate"] .md-container {
- width: 100%;
- overflow: hidden;
- position: relative;
- height: 5px;
- top: 5px;
- transition: all .3s linear; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar {
- height: 5px;
- left: 0;
- width: 80%;
- position: absolute;
- top: 0;
- bottom: 0; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar1 {
- -webkit-animation: md-progress-linear-indeterminate-scale-1 4s infinite, md-progress-linear-indeterminate-1 4s infinite;
- animation: md-progress-linear-indeterminate-scale-1 4s infinite, md-progress-linear-indeterminate-1 4s infinite; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar2 {
- -webkit-animation: md-progress-linear-indeterminate-scale-2 4s infinite, md-progress-linear-indeterminate-2 4s infinite;
- animation: md-progress-linear-indeterminate-scale-2 4s infinite, md-progress-linear-indeterminate-2 4s infinite; }
-
-@-webkit-keyframes query {
- 0% {
- opacity: 1;
- -webkit-transform: translateX(35%) scale(.3, 1);
- transform: translateX(35%) scale(.3, 1); }
-
- 100% {
- opacity: 0;
- -webkit-transform: translateX(-50%) scale(0, 1);
- transform: translateX(-50%) scale(0, 1); } }
-
-@keyframes query {
- 0% {
- opacity: 1;
- -webkit-transform: translateX(35%) scale(.3, 1);
- transform: translateX(35%) scale(.3, 1); }
-
- 100% {
- opacity: 0;
- -webkit-transform: translateX(-50%) scale(0, 1);
- transform: translateX(-50%) scale(0, 1); } }
-
-@-webkit-keyframes buffer {
- 0% {
- opacity: 1;
- background-position: 0px -23px; }
-
- 50% {
- opacity: 0; }
-
- 100% {
- opacity: 1;
- background-position: -200px -23px; } }
-
-@keyframes buffer {
- 0% {
- opacity: 1;
- background-position: 0px -23px; }
-
- 50% {
- opacity: 0; }
-
- 100% {
- opacity: 1;
- background-position: -200px -23px; } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-scale-1 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 36.6% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);
- animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); }
-
- 69.15% {
- -webkit-transform: scaleX(0.83);
- transform: scaleX(0.83);
- -webkit-animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098);
- animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@keyframes md-progress-linear-indeterminate-scale-1 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 36.6% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);
- animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); }
-
- 69.15% {
- -webkit-transform: scaleX(0.83);
- transform: scaleX(0.83);
- -webkit-animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098);
- animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-1 {
- 0% {
- left: -105.16667%;
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 20% {
- left: -105.16667%;
- -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);
- animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); }
-
- 69.15% {
- left: 21.5%;
- -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);
- animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); }
-
- 100% {
- left: 95.44444%; } }
-
-@keyframes md-progress-linear-indeterminate-1 {
- 0% {
- left: -105.16667%;
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 20% {
- left: -105.16667%;
- -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);
- animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); }
-
- 69.15% {
- left: 21.5%;
- -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);
- animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); }
-
- 100% {
- left: 95.44444%; } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-scale-2 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);
- animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397); }
-
- 19.15% {
- -webkit-transform: scaleX(0.57);
- transform: scaleX(0.57);
- -webkit-animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);
- animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432); }
-
- 44.15% {
- -webkit-transform: scaleX(0.91);
- transform: scaleX(0.91);
- -webkit-animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);
- animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@keyframes md-progress-linear-indeterminate-scale-2 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);
- animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397); }
-
- 19.15% {
- -webkit-transform: scaleX(0.57);
- transform: scaleX(0.57);
- -webkit-animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);
- animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432); }
-
- 44.15% {
- -webkit-transform: scaleX(0.91);
- transform: scaleX(0.91);
- -webkit-animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);
- animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-2 {
- 0% {
- left: -54.88889%;
- -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968);
- animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968); }
-
- 25% {
- left: -17.25%;
- -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372);
- animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372); }
-
- 48.35% {
- left: 29.5%;
- -webkit-animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203);
- animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203); }
-
- 100% {
- left: 117.38889%; } }
-
-@keyframes md-progress-linear-indeterminate-2 {
- 0% {
- left: -54.88889%;
- -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968);
- animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968); }
-
- 25% {
- left: -17.25%;
- -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372);
- animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372); }
-
- 48.35% {
- left: 29.5%;
- -webkit-animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203);
- animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203); }
-
- 100% {
- left: 117.38889%; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear.js
deleted file mode 100644
index 2e7b4f0a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/progressLinear/progressLinear.js
+++ /dev/null
@@ -1,126 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.progressLinear');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.progressLinear
- * @description Linear Progress module!
- */
-angular.module('material.components.progressLinear', [
- 'material.core'
-])
- .directive('mdProgressLinear', MdProgressLinearDirective);
-
-/**
- * @ngdoc directive
- * @name mdProgressLinear
- * @module material.components.progressLinear
- * @restrict E
- *
- * @description
- * The linear progress directive is used to make loading content in your app as delightful and painless as possible by minimizing the amount of visual change a user sees before they can view and interact with content. Each operation should only be represented by one activity indicator—for example, one refresh operation should not display both a refresh bar and an activity circle.
- *
- * For operations where the percentage of the operation completed can be determined, use a determinate indicator. They give users a quick sense of how long an operation will take.
- *
- * For operations where the user is asked to wait a moment while something finishes up, and it’s not necessary to expose what's happening behind the scenes and how long it will take, use an indeterminate indicator.
- *
- * @param {string} md-mode Select from one of four modes: determinate, indeterminate, buffer or query.
- * @param {number=} value In determinate and buffer modes, this number represents the percentage of the primary progress bar. Default: 0
- * @param {number=} md-buffer-value In the buffer mode, this number represents the precentage of the secondary progress bar. Default: 0
- *
- * @usage
- * <hljs lang="html">
- * <md-progress-linear md-mode="determinate" value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="determinate" ng-value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="indeterminate"></md-progress-linear>
- *
- * <md-progress-linear md-mode="buffer" value="..." md-buffer-value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="query"></md-progress-linear>
- * </hljs>
- */
-function MdProgressLinearDirective($$rAF, $mdConstant, $mdTheming) {
-
- return {
- restrict: 'E',
- template: '<div class="md-container">' +
- '<div class="md-dashed"></div>' +
- '<div class="md-bar md-bar1"></div>' +
- '<div class="md-bar md-bar2"></div>' +
- '</div>',
- compile: compile
- };
-
- function compile(tElement, tAttrs, transclude) {
- tElement.attr('aria-valuemin', 0);
- tElement.attr('aria-valuemax', 100);
- tElement.attr('role', 'progressbar');
-
- return postLink;
- }
- function postLink(scope, element, attr) {
- $mdTheming(element);
- var bar1Style = element[0].querySelector('.md-bar1').style,
- bar2Style = element[0].querySelector('.md-bar2').style,
- container = angular.element(element[0].querySelector('.md-container'));
-
- attr.$observe('value', function(value) {
- if (attr.mdMode == 'query') {
- return;
- }
-
- var clamped = clamp(value);
- element.attr('aria-valuenow', clamped);
- bar2Style[$mdConstant.CSS.TRANSFORM] = transforms[clamped];
- });
-
- attr.$observe('mdBufferValue', function(value) {
- bar1Style[$mdConstant.CSS.TRANSFORM] = transforms[clamp(value)];
- });
-
- $$rAF(function() {
- container.addClass('md-ready');
- });
- }
-
- function clamp(value) {
- if (value > 100) {
- return 100;
- }
-
- if (value < 0) {
- return 0;
- }
-
- return Math.ceil(value || 0);
- }
-}
-MdProgressLinearDirective.$inject = ["$$rAF", "$mdConstant", "$mdTheming"];
-
-
-// **********************************************************
-// Private Methods
-// **********************************************************
-var transforms = (function() {
- var values = new Array(101);
- for(var i = 0; i < 101; i++){
- values[i] = makeTransform(i);
- }
-
- return values;
-
- function makeTransform(value){
- var scale = value/100;
- var translateX = (value-100)/2;
- return 'translateX(' + translateX.toString() + '%) scale(' + scale.toString() + ', 1)';
- }
-})();
-
-ng.material.components.progressLinear = angular.module("material.components.progressLinear"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton-default-theme.css
deleted file mode 100644
index 8e4eb604..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton-default-theme.css
+++ /dev/null
@@ -1,47 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-radio-button.md-THEME_NAME-theme .md-off {
- border-color: '{{foreground-2}}'; }
-md-radio-button.md-THEME_NAME-theme .md-on {
- background-color: '{{accent-color-0.87}}'; }
-md-radio-button.md-THEME_NAME-theme.md-checked .md-off {
- border-color: '{{accent-color-0.87}}'; }
-md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple {
- color: '{{accent-color-0.87}}'; }
-md-radio-button.md-THEME_NAME-theme .md-container .md-ripple {
- color: '{{accent-600}}'; }
-
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on {
- background-color: '{{primary-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off {
- border-color: '{{primary-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple {
- color: '{{primary-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple {
- color: '{{primary-600}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on {
- background-color: '{{warn-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off {
- border-color: '{{warn-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple {
- color: '{{warn-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple {
- color: '{{warn-600}}'; }
-md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] {
- color: '{{foreground-3}}'; }
- md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off {
- border-color: '{{foreground-3}}'; }
- md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on {
- border-color: '{{foreground-3}}'; }
-
-md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before {
- background-color: '{{accent-color-0.26}}'; }
-md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before {
- background-color: '{{primary-color-0.26}}'; }
-md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before {
- background-color: '{{warn-color-0.26}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton.css
deleted file mode 100644
index bc036e8d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton.css
+++ /dev/null
@@ -1,90 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-radio-button, .md-switch-thumb {
- box-sizing: border-box;
- display: block;
- margin: 15px;
- white-space: nowrap;
- cursor: pointer; }
- md-radio-button *, md-radio-button *:before, md-radio-button *:after, .md-switch-thumb *, .md-switch-thumb *:before, .md-switch-thumb *:after {
- box-sizing: border-box; }
- md-radio-button input, .md-switch-thumb input {
- display: none; }
- md-radio-button .md-container, .md-switch-thumb .md-container {
- position: relative;
- top: 4px;
- display: inline-block;
- width: 16px;
- height: 16px;
- cursor: pointer; }
- md-radio-button .md-container .md-ripple-container, .md-switch-thumb .md-container .md-ripple-container {
- position: absolute;
- display: block;
- width: 48px;
- height: 48px;
- left: -16px;
- top: -16px; }
- md-radio-button .md-container:before, .md-switch-thumb .md-container:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-radio-button .md-off, .md-switch-thumb .md-off {
- position: absolute;
- top: 0;
- left: 0;
- width: 16px;
- height: 16px;
- border: solid 2px;
- border-radius: 50%;
- transition: border-color ease 0.28s; }
- md-radio-button .md-on, .md-switch-thumb .md-on {
- position: absolute;
- top: 0;
- left: 0;
- width: 16px;
- height: 16px;
- border-radius: 50%;
- transition: -webkit-transform ease 0.28s;
- transition: transform ease 0.28s;
- -webkit-transform: scale(0);
- transform: scale(0); }
- md-radio-button.md-checked .md-on, .md-switch-thumb.md-checked .md-on {
- -webkit-transform: scale(0.5);
- transform: scale(0.5); }
- md-radio-button .md-label, .md-switch-thumb .md-label {
- position: relative;
- display: inline-block;
- margin-left: 10px;
- margin-right: 10px;
- vertical-align: middle;
- white-space: normal;
- pointer-events: none;
- width: auto; }
- md-radio-button .circle, .md-switch-thumb .circle {
- border-radius: 50%; }
-
-md-radio-group:focus {
- outline: none; }
-md-radio-group.md-focused .md-checked .md-container:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-radio-button.md-default-theme .md-on {
- background-color: #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton.js
deleted file mode 100644
index cd677449..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/radioButton/radioButton.js
+++ /dev/null
@@ -1,312 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.radioButton');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.radioButton
- * @description radioButton module!
- */
-angular.module('material.components.radioButton', [
- 'material.core'
-])
- .directive('mdRadioGroup', mdRadioGroupDirective)
- .directive('mdRadioButton', mdRadioButtonDirective);
-
-/**
- * @ngdoc directive
- * @module material.components.radioButton
- * @name mdRadioGroup
- *
- * @restrict E
- *
- * @description
- * The `<md-radio-group>` directive identifies a grouping
- * container for the 1..n grouped radio buttons; specified using nested
- * `<md-radio-button>` tags.
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the radio button is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * Note: `<md-radio-group>` and `<md-radio-button>` handle tabindex differently
- * than the native `<input type='radio'>` controls. Whereas the native controls
- * force the user to tab through all the radio buttons, `<md-radio-group>`
- * is focusable, and by default the `<md-radio-button>`s are not.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {boolean=} md-no-ink Use of attribute indicates flag to disable ink ripple effects.
- *
- * @usage
- * <hljs lang="html">
- * <md-radio-group ng-model="selected">
- *
- * <md-radio-button
- * ng-repeat="d in colorOptions"
- * ng-value="d.value" aria-label="{{ d.label }}">
- *
- * {{ d.label }}
- *
- * </md-radio-button>
- *
- * </md-radio-group>
- * </hljs>
- *
- */
-function mdRadioGroupDirective($mdUtil, $mdConstant, $mdTheming, $timeout) {
- RadioGroupController.prototype = createRadioGroupControllerProto();
-
- return {
- restrict: 'E',
- controller: ['$element', RadioGroupController],
- require: ['mdRadioGroup', '?ngModel'],
- link: { pre: linkRadioGroup }
- };
-
- function linkRadioGroup(scope, element, attr, ctrls) {
- $mdTheming(element);
- var rgCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1] || $mdUtil.fakeNgModel();
-
- function setFocus() {
- if (!element.hasClass('md-focused')) { element.addClass('md-focused'); }
- }
-
- function keydownListener(ev) {
- var keyCode = ev.which || ev.keyCode;
- switch(keyCode) {
- case $mdConstant.KEY_CODE.LEFT_ARROW:
- case $mdConstant.KEY_CODE.UP_ARROW:
- ev.preventDefault();
- rgCtrl.selectPrevious();
- setFocus();
- break;
-
- case $mdConstant.KEY_CODE.RIGHT_ARROW:
- case $mdConstant.KEY_CODE.DOWN_ARROW:
- ev.preventDefault();
- rgCtrl.selectNext();
- setFocus();
- break;
-
- case $mdConstant.KEY_CODE.ENTER:
- var form = angular.element($mdUtil.getClosest(element[0], 'form'));
- if (form.length > 0) {
- form.triggerHandler('submit');
- }
- break;
- }
- }
-
- rgCtrl.init(ngModelCtrl);
-
- scope.mouseActive = false;
- element.attr({
- 'role': 'radiogroup',
- 'tabIndex': element.attr('tabindex') || '0'
- })
- .on('keydown', keydownListener)
- .on('mousedown', function(event) {
- scope.mouseActive = true;
- $timeout(function() {
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { rgCtrl.$element.addClass('md-focused'); }
- })
- .on('blur', function() { rgCtrl.$element.removeClass('md-focused'); });
- }
-
- function RadioGroupController($element) {
- this._radioButtonRenderFns = [];
- this.$element = $element;
- }
-
- function createRadioGroupControllerProto() {
- return {
- init: function(ngModelCtrl) {
- this._ngModelCtrl = ngModelCtrl;
- this._ngModelCtrl.$render = angular.bind(this, this.render);
- },
- add: function(rbRender) {
- this._radioButtonRenderFns.push(rbRender);
- },
- remove: function(rbRender) {
- var index = this._radioButtonRenderFns.indexOf(rbRender);
- if (index !== -1) {
- this._radioButtonRenderFns.splice(index, 1);
- }
- },
- render: function() {
- this._radioButtonRenderFns.forEach(function(rbRender) {
- rbRender();
- });
- },
- setViewValue: function(value, eventType) {
- this._ngModelCtrl.$setViewValue(value, eventType);
- // update the other radio buttons as well
- this.render();
- },
- getViewValue: function() {
- return this._ngModelCtrl.$viewValue;
- },
- selectNext: function() {
- return changeSelectedButton(this.$element, 1);
- },
- selectPrevious: function() {
- return changeSelectedButton(this.$element, -1);
- },
- setActiveDescendant: function (radioId) {
- this.$element.attr('aria-activedescendant', radioId);
- }
- };
- }
- /**
- * Change the radio group's selected button by a given increment.
- * If no button is selected, select the first button.
- */
- function changeSelectedButton(parent, increment) {
- // Coerce all child radio buttons into an array, then wrap then in an iterator
- var buttons = $mdUtil.iterator(parent[0].querySelectorAll('md-radio-button'), true);
-
- if (buttons.count()) {
- var validate = function (button) {
- // If disabled, then NOT valid
- return !angular.element(button).attr("disabled");
- };
- var selected = parent[0].querySelector('md-radio-button.md-checked');
- var target = buttons[increment < 0 ? 'previous' : 'next'](selected, validate) || buttons.first();
- // Activate radioButton's click listener (triggerHandler won't create a real click event)
- angular.element(target).triggerHandler('click');
-
-
- }
- }
-
-}
-mdRadioGroupDirective.$inject = ["$mdUtil", "$mdConstant", "$mdTheming", "$timeout"];
-
-/**
- * @ngdoc directive
- * @module material.components.radioButton
- * @name mdRadioButton
- *
- * @restrict E
- *
- * @description
- * The `<md-radio-button>`directive is the child directive required to be used within `<md-radio-group>` elements.
- *
- * While similar to the `<input type="radio" ng-model="" value="">` directive,
- * the `<md-radio-button>` directive provides ink effects, ARIA support, and
- * supports use within named radio groups.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {string} ngValue Angular expression which sets the value to which the expression should
- * be set when selected.*
- * @param {string} value The value to which the expression should be set when selected.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} aria-label Adds label to radio button for accessibility.
- * Defaults to radio button's text. If no text content is available, a warning will be logged.
- *
- * @usage
- * <hljs lang="html">
- *
- * <md-radio-button value="1" aria-label="Label 1">
- * Label 1
- * </md-radio-button>
- *
- * <md-radio-button ng-model="color" ng-value="specialValue" aria-label="Green">
- * Green
- * </md-radio-button>
- *
- * </hljs>
- *
- */
-function mdRadioButtonDirective($mdAria, $mdUtil, $mdTheming) {
-
- var CHECKED_CSS = 'md-checked';
-
- return {
- restrict: 'E',
- require: '^mdRadioGroup',
- transclude: true,
- template: '<div class="md-container" md-ink-ripple md-ink-ripple-checkbox>' +
- '<div class="md-off"></div>' +
- '<div class="md-on"></div>' +
- '</div>' +
- '<div ng-transclude class="md-label"></div>',
- link: link
- };
-
- function link(scope, element, attr, rgCtrl) {
- var lastChecked;
-
- $mdTheming(element);
- configureAria(element, scope);
-
- rgCtrl.add(render);
- attr.$observe('value', render);
-
- element
- .on('click', listener)
- .on('$destroy', function() {
- rgCtrl.remove(render);
- });
-
- function listener(ev) {
- if (element[0].hasAttribute('disabled')) return;
-
- scope.$apply(function() {
- rgCtrl.setViewValue(attr.value, ev && ev.type);
- });
- }
-
- function render() {
- var checked = (rgCtrl.getViewValue() == attr.value);
- if (checked === lastChecked) {
- return;
- }
- lastChecked = checked;
- element.attr('aria-checked', checked);
- if (checked) {
- element.addClass(CHECKED_CSS);
- rgCtrl.setActiveDescendant(element.attr('id'));
- } else {
- element.removeClass(CHECKED_CSS);
- }
- }
- /**
- * Inject ARIA-specific attributes appropriate for each radio button
- */
- function configureAria( element, scope ){
- scope.ariaId = buildAriaID();
-
- element.attr({
- 'id' : scope.ariaId,
- 'role' : 'radio',
- 'aria-checked' : 'false'
- });
-
- $mdAria.expectWithText(element, 'aria-label');
-
- /**
- * Build a unique ID for each radio button that will be used with aria-activedescendant.
- * Preserve existing ID if already specified.
- * @returns {*|string}
- */
- function buildAriaID() {
- return attr.id || ( 'radio' + "_" + $mdUtil.nextUid() );
- }
- }
- }
-}
-mdRadioButtonDirective.$inject = ["$mdAria", "$mdUtil", "$mdTheming"];
-
-ng.material.components.radioButton = angular.module("material.components.radioButton"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select-default-theme.css
deleted file mode 100644
index fc712622..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select-default-theme.css
+++ /dev/null
@@ -1,42 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label {
- color: '{{warn-500}}' !important;
- border-bottom-color: '{{warn-500}}' !important; }
-md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label {
- border-bottom-color: '{{primary-color}}';
- color: '{{ foreground-1 }}'; }
- md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder {
- color: '{{ foreground-1 }}'; }
-md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label {
- border-bottom-color: '{{accent-color}}'; }
-md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label {
- border-bottom-color: '{{warn-color}}'; }
-md-select.md-THEME_NAME-theme[disabled] .md-select-label {
- color: '{{foreground-3}}'; }
- md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder {
- color: '{{foreground-3}}'; }
-md-select.md-THEME_NAME-theme .md-select-label {
- border-bottom-color: '{{foreground-4}}'; }
- md-select.md-THEME_NAME-theme .md-select-label.md-placeholder {
- color: '{{foreground-2}}'; }
-
-md-select-menu.md-THEME_NAME-theme md-optgroup {
- color: '{{foreground-2}}'; }
- md-select-menu.md-THEME_NAME-theme md-optgroup md-option {
- color: '{{foreground-1}}'; }
-md-select-menu.md-THEME_NAME-theme md-option[selected] {
- color: '{{primary-500}}'; }
- md-select-menu.md-THEME_NAME-theme md-option[selected]:focus {
- color: '{{primary-600}}'; }
- md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent {
- color: '{{accent-500}}'; }
- md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus {
- color: '{{accent-600}}'; }
-md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) {
- background: '{{background-200}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select.css
deleted file mode 100644
index d1744af9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select.css
+++ /dev/null
@@ -1,168 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-select-menu-container {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 99;
- opacity: 0; }
- .md-select-menu-container:not(.md-clickable) {
- pointer-events: none; }
- .md-select-menu-container md-progress-circular {
- display: table;
- margin: 24px auto !important; }
- .md-select-menu-container.md-active {
- opacity: 1; }
- .md-select-menu-container.md-active md-select-menu {
- transition: -webkit-transform all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition: transform all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-duration: 200ms; }
- .md-select-menu-container.md-active md-select-menu > * {
- opacity: 1;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- transition-duration: 200ms;
- transition-delay: 100ms; }
- .md-select-menu-container.md-leave {
- opacity: 0;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- transition-duration: 250ms; }
-
-md-input-container > md-select {
- margin: 0;
- margin-top: 3px; }
-
-md-select {
- padding: 24px 2px 26px;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex; }
- md-select:focus {
- outline: none; }
- md-select[disabled]:hover {
- cursor: default; }
- md-select:not([disabled]):hover {
- cursor: pointer; }
- md-select:not([disabled]).ng-invalid.ng-dirty .md-select-label {
- border-bottom: 2px solid;
- padding-bottom: 0; }
- md-select:not([disabled]):focus .md-select-label {
- border-bottom: 2px solid;
- padding-bottom: 0; }
-
-.md-select-label {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- padding: 2px 2px 1px;
- border-bottom: 1px solid;
- position: relative;
- box-sizing: content-box;
- min-width: 64px;
- min-height: 26px; }
- .md-select-label *:first-child {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- max-width: calc(100% - 2*8px);
- -webkit-transform: translate3d(0, 2px, 0);
- transform: translate3d(0, 2px, 0); }
- .md-select-label .md-select-icon {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end;
- text-align: end;
- width: 24px;
- margin: 0 4px;
- -webkit-transform: translate3d(0, 1px, 0);
- transform: translate3d(0, 1px, 0); }
- .md-select-label .md-select-icon:after {
- display: block;
- content: '\25BC';
- position: relative;
- top: 2px;
- speak: none;
- -webkit-transform: scaleY(0.6) scaleX(1);
- transform: scaleY(0.6) scaleX(1); }
-
-md-select-menu {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084);
- max-height: 256px;
- min-height: 48px;
- overflow-y: hidden;
- -webkit-transform-origin: left top;
- transform-origin: left top;
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-select-menu.md-reverse {
- -webkit-flex-direction: column-reverse;
- -ms-flex-direction: column-reverse;
- flex-direction: column-reverse; }
- md-select-menu:not(.md-overflow) md-content {
- padding-top: 8px;
- padding-bottom: 8px; }
- html[dir=rtl] md-select-menu {
- -webkit-transform-origin: right top;
- transform-origin: right top; }
- md-select-menu md-content {
- min-width: 136px;
- min-height: 48px;
- max-height: 256px;
- overflow-y: auto; }
- md-select-menu > * {
- opacity: 0; }
-
-md-option {
- cursor: pointer;
- position: relative;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: auto;
- padding: 0 16px 0 16px;
- height: 48px; }
- md-option:focus {
- outline: none; }
- md-option .md-text {
- width: auto;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 16px; }
-
-md-optgroup {
- display: block; }
- md-optgroup label {
- display: block;
- font-size: 14px;
- text-transform: uppercase;
- padding: 16px;
- font-weight: 500; }
- md-optgroup md-option {
- padding-left: 32px;
- padding-right: 32px; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-select-backdrop {
- background-color: transparent; }
- md-select-menu {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select.js
deleted file mode 100644
index 5d944d0d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/select/select.js
+++ /dev/null
@@ -1,1056 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.select');
-goog.require('ng.material.components.backdrop');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.select
- */
-
-/***************************************************
-
-### TODO ###
-**DOCUMENTATION AND DEMOS**
-
-- [ ] ng-model with child mdOptions (basic)
-- [ ] ng-model="foo" ng-model-options="{ trackBy: '$value.id' }" for objects
-- [ ] mdOption with value
-- [ ] Usage with input inside
-
-### TODO - POST RC1 ###
-- [ ] Abstract placement logic in $mdSelect service to $mdMenu service
-
-***************************************************/
-
-var SELECT_EDGE_MARGIN = 8;
-var selectNextId = 0;
-
-angular.module('material.components.select', [
- 'material.core',
- 'material.components.backdrop'
-])
-.directive('mdSelect', SelectDirective)
-.directive('mdSelectMenu', SelectMenuDirective)
-.directive('mdOption', OptionDirective)
-.directive('mdOptgroup', OptgroupDirective)
-.provider('$mdSelect', SelectProvider);
-
-
-/**
- * @ngdoc directive
- * @name mdSelect
- * @restrict E
- * @module material.components.select
- *
- * @description Displays a select box, bound to an ng-model.
- *
- * @param {expression} ng-model The model!
- * @param {boolean=} multiple Whether it's multiple.
- * @param {string=} placeholder Placeholder hint text.
- * @param {string=} aria-label Optional label for accessibility. Only necessary if no placeholder or
- * explicit label is present.
- *
- * @usage
- * With a placeholder (label and aria-label are added dynamically)
- * <hljs lang="html">
- * <md-select
- * ng-model="someModel"
- * placeholder="Select a state">
- * <md-option ng-value="opt" ng-repeat="opt in neighborhoods2">{{ opt }}</md-option>
- * </md-select>
- * </hljs>
- *
- * With an explicit label
- * <hljs lang="html">
- * <md-select
- * ng-model="someModel">
- * <md-select-label>Select a state</md-select-label>
- * <md-option ng-value="opt" ng-repeat="opt in neighborhoods2">{{ opt }}</md-option>
- * </md-select>
- * </hljs>
- */
-function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $interpolate, $compile, $parse) {
- return {
- restrict: 'E',
- require: ['mdSelect', 'ngModel', '?^form'],
- compile: compile,
- controller: function() { } // empty placeholder controller to be initialized in link
- };
-
- function compile(element, attr) {
- // The user is allowed to provide a label for the select as md-select-label child
- var labelEl = element.find('md-select-label').remove();
-
- // If not provided, we automatically make one
- if (!labelEl.length) {
- labelEl = angular.element('<md-select-label><span></span></md-select-label>');
- } else {
- if (!labelEl[0].firstElementChild) {
- var spanWrapper = angular.element('<span>');
- spanWrapper.append(labelEl.contents());
- labelEl.append(spanWrapper);
- }
- }
- labelEl.append('<span class="md-select-icon" aria-hidden="true"></span>');
- labelEl.addClass('md-select-label');
- if (!labelEl[0].hasAttribute('id')) {
- labelEl.attr('id', 'select_label_' + $mdUtil.nextUid());
- }
-
- // There's got to be an md-content inside. If there's not one, let's add it.
- if (!element.find('md-content').length) {
- element.append( angular.element('<md-content>').append(element.contents()) );
- }
-
- // Add progress spinner for md-options-loading
- if (attr.mdOnOpen) {
- element.find('md-content').prepend(
- angular.element('<md-progress-circular>')
- .attr('md-mode', 'indeterminate')
- .attr('ng-hide', '$$loadingAsyncDone')
- .wrap('<div>')
- .parent()
- );
- }
-
- if (attr.name) {
- var autofillClone = angular.element('<select class="md-visually-hidden">');
- autofillClone.attr({
- 'name': '.' + attr.name,
- 'ng-model': attr.ngModel,
- 'aria-hidden': 'true',
- 'tabindex': '-1'
- });
- var opts = element.find('md-option');
- angular.forEach(opts, function(el) {
- var newEl = angular.element('<option>' + el.innerHTML + '</option>');
- if (el.hasAttribute('ng-value')) newEl.attr('ng-value', el.getAttribute('ng-value'));
- else if (el.hasAttribute('value')) newEl.attr('value', el.getAttribute('value'));
- autofillClone.append(newEl);
- });
-
- element.parent().append(autofillClone);
- }
-
- // Use everything that's left inside element.contents() as the contents of the menu
- var selectTemplate = '<div class="md-select-menu-container">' +
- '<md-select-menu ' +
- (angular.isDefined(attr.multiple) ? 'multiple' : '') + '>' +
- element.html() +
- '</md-select-menu></div>';
-
- element.empty().append(labelEl);
-
- attr.tabindex = attr.tabindex || '0';
-
- return function postLink(scope, element, attr, ctrls) {
- var isOpen;
- var isDisabled;
-
- var mdSelectCtrl = ctrls[0];
- var ngModel = ctrls[1];
- var formCtrl = ctrls[2];
-
- var labelEl = element.find('md-select-label');
- var customLabel = labelEl.text().length !== 0;
- var selectContainer, selectScope, selectMenuCtrl;
- createSelect();
-
- $mdTheming(element);
-
- if (attr.name && formCtrl) {
- var selectEl = element.parent()[0].querySelector('select[name=".' + attr.name + '"]')
- formCtrl.$removeControl(angular.element(selectEl).controller());
- }
-
- var originalRender = ngModel.$render;
- ngModel.$render = function() {
- originalRender();
- syncLabelText();
- };
-
- mdSelectCtrl.setLabelText = function(text) {
- if (customLabel) return; // Assume that user is handling it on their own
- mdSelectCtrl.setIsPlaceholder(!text);
- text = text || attr.placeholder || '';
- var target = customLabel ? labelEl : labelEl.children().eq(0);
- target.text(text);
- };
-
- mdSelectCtrl.setIsPlaceholder = function(val) {
- val ? labelEl.addClass('md-placeholder') : labelEl.removeClass('md-placeholder');
- };
-
- scope.$$postDigest(function() {
- setAriaLabel();
- syncLabelText();
- });
-
- function setAriaLabel() {
- var labelText = element.attr('placeholder');
- if (!labelText) {
- labelText = element.find('md-select-label').text();
- }
- $mdAria.expect(element, 'aria-label', labelText);
- }
-
- function syncLabelText() {
- if (selectContainer) {
- selectMenuCtrl = selectMenuCtrl || selectContainer.find('md-select-menu').controller('mdSelectMenu');
- mdSelectCtrl.setLabelText(selectMenuCtrl.selectedLabels());
- }
- }
-
- var deregisterWatcher;
- attr.$observe('ngMultiple', function(val) {
- if (deregisterWatcher) deregisterWatcher();
- var parser = $parse(val);
- deregisterWatcher = scope.$watch(function() { return parser(scope); }, function(multiple, prevVal) {
- if (multiple === undefined && prevVal === undefined) return; // assume compiler did a good job
- if (multiple) {
- element.attr('multiple', 'multiple');
- } else {
- element.removeAttr('multiple');
- }
- if (selectContainer) {
- selectMenuCtrl.setMultiple(multiple);
- originalRender = ngModel.$render;
- ngModel.$render = function() {
- originalRender();
- syncLabelText();
- };
- selectMenuCtrl.refreshViewValue();
- ngModel.$render();
- }
- });
- });
-
- attr.$observe('disabled', function(disabled) {
- if (typeof disabled == "string") {
- disabled = true;
- }
- // Prevent click event being registered twice
- if (isDisabled !== undefined && isDisabled === disabled) {
- return;
- }
- isDisabled = disabled;
- if (disabled) {
- element.attr({'tabindex': -1, 'aria-disabled': 'true'});
- element.off('click', openSelect);
- element.off('keydown', handleKeypress);
- } else {
- element.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'});
- element.on('click', openSelect);
- element.on('keydown', handleKeypress);
- }
- });
- if (!attr.disabled && !attr.ngDisabled) {
- element.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'});
- element.on('click', openSelect);
- element.on('keydown', handleKeypress);
- }
-
- var ariaAttrs = {
- role: 'combobox',
- 'aria-expanded': 'false'
- };
- if (!element[0].hasAttribute('id')) {
- ariaAttrs.id = 'select_' + $mdUtil.nextUid();
- }
- element.attr(ariaAttrs);
-
- scope.$on('$destroy', function() {
- if (isOpen) {
- $mdSelect.cancel().then(function() {
- selectContainer.remove();
- });
- } else {
- selectContainer.remove();
- }
- });
-
-
- // Create a fake select to find out the label value
- function createSelect() {
- selectContainer = angular.element(selectTemplate);
- var selectEl = selectContainer.find('md-select-menu');
- selectEl.data('$ngModelController', ngModel);
- selectEl.data('$mdSelectController', mdSelectCtrl);
- selectScope = scope.$new();
- selectContainer = $compile(selectContainer)(selectScope);
- selectMenuCtrl = selectContainer.find('md-select-menu').controller('mdSelectMenu');
- }
-
- function handleKeypress(e) {
- var allowedCodes = [32, 13, 38, 40];
- if (allowedCodes.indexOf(e.keyCode) != -1 ) {
- // prevent page scrolling on interaction
- e.preventDefault();
- openSelect(e);
- } else {
- if (e.keyCode <= 90 && e.keyCode >= 31) {
- e.preventDefault();
- var node = selectMenuCtrl.optNodeForKeyboardSearch(e);
- if (!node) return;
- var optionCtrl = angular.element(node).controller('mdOption');
- if (!selectMenuCtrl.isMultiple) {
- selectMenuCtrl.deselect( Object.keys(selectMenuCtrl.selected)[0] );
- }
- selectMenuCtrl.select(optionCtrl.hashKey, optionCtrl.value);
- selectMenuCtrl.refreshViewValue();
- ngModel.$render();
- }
- }
- }
-
- function openSelect() {
- scope.$evalAsync(function() {
- isOpen = true;
- $mdSelect.show({
- scope: selectScope,
- preserveScope: true,
- skipCompile: true,
- element: selectContainer,
- target: element[0],
- hasBackdrop: true,
- loadingAsync: attr.mdOnOpen ? scope.$eval(attr.mdOnOpen) || true : false,
- }).then(function(selectedText) {
- isOpen = false;
- });
- });
- }
- };
- }
-}
-SelectDirective.$inject = ["$mdSelect", "$mdUtil", "$mdTheming", "$mdAria", "$interpolate", "$compile", "$parse"];
-
-function SelectMenuDirective($parse, $mdUtil, $mdTheming) {
-
- SelectMenuController.$inject = ["$scope", "$attrs", "$element"];
- return {
- restrict: 'E',
- require: ['mdSelectMenu', '?ngModel'],
- controller: SelectMenuController,
- link: { pre: preLink }
- };
-
- // We use preLink instead of postLink to ensure that the select is initialized before
- // its child options run postLink.
- function preLink(scope, element, attr, ctrls) {
- var selectCtrl = ctrls[0];
- var ngModel = ctrls[1];
-
- $mdTheming(element);
- element.on('click', clickListener);
- element.on('keypress', keyListener);
- if (ngModel) selectCtrl.init(ngModel);
- configureAria();
-
- function configureAria() {
- element.attr({
- 'id': 'select_menu_' + $mdUtil.nextUid(),
- 'role': 'listbox',
- 'aria-multiselectable': (selectCtrl.isMultiple ? 'true' : 'false')
- });
- }
-
- function keyListener(e) {
- if (e.keyCode == 13 || e.keyCode == 32) {
- clickListener(e);
- }
- }
-
- function clickListener(ev) {
- var option = $mdUtil.getClosest(ev.target, 'md-option');
- var optionCtrl = option && angular.element(option).data('$mdOptionController');
- if (!option || !optionCtrl) return;
-
- var optionHashKey = selectCtrl.hashGetter(optionCtrl.value);
- var isSelected = angular.isDefined(selectCtrl.selected[optionHashKey]);
-
- scope.$apply(function() {
- if (selectCtrl.isMultiple) {
- if (isSelected) {
- selectCtrl.deselect(optionHashKey);
- } else {
- selectCtrl.select(optionHashKey, optionCtrl.value);
- }
- } else {
- if (!isSelected) {
- selectCtrl.deselect( Object.keys(selectCtrl.selected)[0] );
- selectCtrl.select( optionHashKey, optionCtrl.value );
- }
- }
- selectCtrl.refreshViewValue();
- });
- }
- }
-
-
-
- function SelectMenuController($scope, $attrs, $element) {
- var self = this;
- self.isMultiple = angular.isDefined($attrs.multiple);
- // selected is an object with keys matching all of the selected options' hashed values
- self.selected = {};
- // options is an object with keys matching every option's hash value,
- // and values matching every option's controller.
- self.options = {};
-
- $scope.$watch(function() { return self.options; }, function() {
- self.ngModel.$render();
- }, true);
-
- var deregisterCollectionWatch;
- self.setMultiple = function(isMultiple) {
- var ngModel = self.ngModel;
- self.isMultiple = isMultiple;
- if (deregisterCollectionWatch) deregisterCollectionWatch();
-
- if (self.isMultiple) {
- ngModel.$validators['md-multiple'] = validateArray;
- ngModel.$render = renderMultiple;
-
- // watchCollection on the model because by default ngModel only watches the model's
- // reference. This allowed the developer to also push and pop from their array.
- $scope.$watchCollection($attrs.ngModel, function(value) {
- if (validateArray(value)) renderMultiple(value);
- });
- } else {
- delete ngModel.$validators['md-multiple'];
- ngModel.$render = renderSingular;
- }
-
- function validateArray(modelValue, viewValue) {
- // If a value is truthy but not an array, reject it.
- // If value is undefined/falsy, accept that it's an empty array.
- return angular.isArray(modelValue || viewValue || []);
- }
- };
-
- var searchStr = '';
- var clearSearchTimeout, optNodes, optText;
- var CLEAR_SEARCH_AFTER = 300;
- self.optNodeForKeyboardSearch = function(e) {
- clearSearchTimeout && clearTimeout(clearSearchTimeout);
- clearSearchTimeout = setTimeout(function() {
- clearSearchTimeout = undefined;
- searchStr = '';
- optText = undefined;
- optNodes = undefined;
- }, CLEAR_SEARCH_AFTER);
- searchStr += String.fromCharCode(e.keyCode);
- var search = new RegExp('^' + searchStr, 'i');
- if (!optNodes) {
- optNodes = $element.find('md-option');
- optText = new Array(optNodes.length);
- angular.forEach(optNodes, function(el, i) {
- optText[i] = el.textContent.trim();
- });
- }
- for (var i = 0; i < optText.length; ++i) {
- if (search.test(optText[i])) {
- return optNodes[i];
- }
- }
- };
-
-
- self.init = function(ngModel) {
- self.ngModel = ngModel;
-
- // Allow users to provide `ng-model="foo" ng-model-options="{trackBy: 'foo.id'}"` so
- // that we can properly compare objects set on the model to the available options
- if (ngModel.$options && ngModel.$options.trackBy) {
- var trackByLocals = {};
- var trackByParsed = $parse(ngModel.$options.trackBy);
- self.hashGetter = function(value, valueScope) {
- trackByLocals.$value = value;
- return trackByParsed(valueScope || $scope, trackByLocals);
- };
- // If the user doesn't provide a trackBy, we automatically generate an id for every
- // value passed in
- } else {
- self.hashGetter = function getHashValue(value) {
- if (angular.isObject(value)) {
- return 'object_' + (value.$$mdSelectId || (value.$$mdSelectId = ++selectNextId));
- }
- return value;
- };
- }
- self.setMultiple(self.isMultiple);
- };
-
- self.selectedLabels = function() {
- var selectedOptionEls = nodesToArray($element[0].querySelectorAll('md-option[selected]'));
- if (selectedOptionEls.length) {
- return selectedOptionEls.map(function(el) { return el.textContent; }).join(', ');
- } else {
- return '';
- }
- };
-
- self.select = function(hashKey, hashedValue) {
- var option = self.options[hashKey];
- option && option.setSelected(true);
- self.selected[hashKey] = hashedValue;
- };
- self.deselect = function(hashKey) {
- var option = self.options[hashKey];
- option && option.setSelected(false);
- delete self.selected[hashKey];
- };
-
- self.addOption = function(hashKey, optionCtrl) {
- if (angular.isDefined(self.options[hashKey])) {
- throw new Error('Duplicate md-option values are not allowed in a select. ' +
- 'Duplicate value "' + optionCtrl.value + '" found.');
- }
- self.options[hashKey] = optionCtrl;
-
- // If this option's value was already in our ngModel, go ahead and select it.
- if (angular.isDefined(self.selected[hashKey])) {
- self.select(hashKey, optionCtrl.value);
- self.refreshViewValue();
- }
- };
- self.removeOption = function(hashKey) {
- delete self.options[hashKey];
- // Don't deselect an option when it's removed - the user's ngModel should be allowed
- // to have values that do not match a currently available option.
- };
-
- self.refreshViewValue = function() {
- var values = [];
- var option;
- for (var hashKey in self.selected) {
- // If this hashKey has an associated option, push that option's value to the model.
- if ((option = self.options[hashKey])) {
- values.push(option.value);
- } else {
- // Otherwise, the given hashKey has no associated option, and we got it
- // from an ngModel value at an earlier time. Push the unhashed value of
- // this hashKey to the model.
- // This allows the developer to put a value in the model that doesn't yet have
- // an associated option.
- values.push(self.selected[hashKey]);
- }
- }
- self.ngModel.$setViewValue(self.isMultiple ? values : values[0]);
- };
-
- function renderMultiple() {
- var newSelectedValues = self.ngModel.$modelValue || self.ngModel.$viewValue;
- if (!angular.isArray(newSelectedValues)) return;
-
- var oldSelected = Object.keys(self.selected);
-
- var newSelectedHashes = newSelectedValues.map(self.hashGetter);
- var deselected = oldSelected.filter(function(hash) {
- return newSelectedHashes.indexOf(hash) === -1;
- });
-
- deselected.forEach(self.deselect);
- newSelectedHashes.forEach(function(hashKey, i) {
- self.select(hashKey, newSelectedValues[i]);
- });
- }
- function renderSingular() {
- var value = self.ngModel.$viewValue || self.ngModel.$modelValue;
- Object.keys(self.selected).forEach(self.deselect);
- self.select( self.hashGetter(value), value );
- }
- }
-
-}
-SelectMenuDirective.$inject = ["$parse", "$mdUtil", "$mdTheming"];
-
-function OptionDirective($mdButtonInkRipple, $mdUtil) {
-
- OptionController.$inject = ["$element"];
- return {
- restrict: 'E',
- require: ['mdOption', '^^mdSelectMenu'],
- controller: OptionController,
- compile: compile
- };
-
- function compile(element, attr) {
- // Manual transclusion to avoid the extra inner <span> that ng-transclude generates
- element.append( angular.element('<div class="md-text">').append(element.contents()) );
-
- element.attr('tabindex', attr.tabindex || '0');
- return postLink;
- }
-
- function postLink(scope, element, attr, ctrls) {
- var optionCtrl = ctrls[0];
- var selectCtrl = ctrls[1];
-
- if (angular.isDefined(attr.ngValue)) {
- scope.$watch(attr.ngValue, setOptionValue);
- } else if (angular.isDefined(attr.value)) {
- setOptionValue(attr.value);
- } else {
- scope.$watch(function() { return element.text(); }, setOptionValue);
- }
-
- scope.$$postDigest(function() {
- attr.$observe('selected', function(selected) {
- if (!angular.isDefined(selected)) return;
- if (selected) {
- if (!selectCtrl.isMultiple) {
- selectCtrl.deselect( Object.keys(selectCtrl.selected)[0] );
- }
- selectCtrl.select(optionCtrl.hashKey, optionCtrl.value);
- } else {
- selectCtrl.deselect(optionCtrl.hashKey);
- }
- selectCtrl.refreshViewValue();
- selectCtrl.ngModel.$render();
- });
- });
-
- $mdButtonInkRipple.attach(scope, element);
- configureAria();
-
- function setOptionValue(newValue, oldValue) {
- var oldHashKey = selectCtrl.hashGetter(oldValue, scope);
- var newHashKey = selectCtrl.hashGetter(newValue, scope);
-
- optionCtrl.hashKey = newHashKey;
- optionCtrl.value = newValue;
-
- selectCtrl.removeOption(oldHashKey, optionCtrl);
- selectCtrl.addOption(newHashKey, optionCtrl);
- }
-
- scope.$on('$destroy', function() {
- selectCtrl.removeOption(optionCtrl.hashKey, optionCtrl);
- });
-
- function configureAria() {
- var ariaAttrs = {
- 'role': 'option',
- 'aria-selected': 'false'
- };
-
- if (!element[0].hasAttribute('id')) {
- ariaAttrs.id = 'select_option_' + $mdUtil.nextUid();
- }
- element.attr(ariaAttrs);
- }
- }
-
- function OptionController($element) {
- this.selected = false;
- this.setSelected = function(isSelected) {
- if (isSelected && !this.selected) {
- $element.attr({
- 'selected': 'selected',
- 'aria-selected': 'true'
- });
- } else if (!isSelected && this.selected) {
- $element.removeAttr('selected');
- $element.attr('aria-selected', 'false');
- }
- this.selected = isSelected;
- };
- }
-
-}
-OptionDirective.$inject = ["$mdButtonInkRipple", "$mdUtil"];
-
-function OptgroupDirective() {
- return {
- restrict: 'E',
- compile: compile
- };
- function compile(el, attrs) {
- var labelElement = el.find('label');
- if (!labelElement.length) {
- labelElement = angular.element('<label>');
- el.prepend(labelElement);
- }
- if (attrs.label) labelElement.text(attrs.label);
- }
-}
-
-function SelectProvider($$interimElementProvider) {
- selectDefaultOptions.$inject = ["$mdSelect", "$mdConstant", "$$rAF", "$mdUtil", "$mdTheming", "$timeout", "$window"];
- return $$interimElementProvider('$mdSelect')
- .setDefaults({
- methods: ['target'],
- options: selectDefaultOptions
- });
-
- /* ngInject */
- function selectDefaultOptions($mdSelect, $mdConstant, $$rAF, $mdUtil, $mdTheming, $timeout, $window ) {
- return {
- parent: 'body',
- onShow: onShow,
- onRemove: onRemove,
- hasBackdrop: true,
- disableParentScroll: true,
- themable: true
- };
-
- function onShow(scope, element, opts) {
- if (!opts.target) {
- throw new Error('$mdSelect.show() expected a target element in options.target but got ' +
- '"' + opts.target + '"!');
- }
-
- angular.extend(opts, {
- isRemoved: false,
- target: angular.element(opts.target), //make sure it's not a naked dom node
- parent: angular.element(opts.parent),
- selectEl: element.find('md-select-menu'),
- contentEl: element.find('md-content'),
- backdrop: opts.hasBackdrop && angular.element('<md-backdrop class="md-select-backdrop md-click-catcher">')
- });
-
- opts.resizeFn = function() {
- $$rAF(function() {
- $$rAF(function() {
- animateSelect(scope, element, opts);
- });
- });
- };
-
- angular.element($window).on('resize', opts.resizeFn);
- angular.element($window).on('orientationchange', opts.resizeFn);
-
-
- configureAria();
-
- element.removeClass('md-leave');
-
- var optionNodes = opts.selectEl[0].getElementsByTagName('md-option');
-
- if (opts.loadingAsync && opts.loadingAsync.then) {
- opts.loadingAsync.then(function() {
- scope.$$loadingAsyncDone = true;
- // Give ourselves two frames for the progress loader to clear out.
- $$rAF(function() {
- $$rAF(function() {
- // Don't go forward if the select has been removed in this time...
- if (opts.isRemoved) return;
- animateSelect(scope, element, opts);
- });
- });
- });
- } else if (opts.loadingAsync) {
- scope.$$loadingAsyncDone = true;
- }
-
- if (opts.disableParentScroll && !$mdUtil.getClosest(opts.target, 'MD-DIALOG')) {
- opts.restoreScroll = $mdUtil.disableScrollAround(opts.target);
- } else {
- opts.disableParentScroll = false;
- }
- // Only activate click listeners after a short time to stop accidental double taps/clicks
- // from clicking the wrong item
- $timeout(activateInteraction, 75, false);
-
- if (opts.backdrop) {
- $mdTheming.inherit(opts.backdrop, opts.parent);
- opts.parent.append(opts.backdrop);
- }
- opts.parent.append(element);
-
- // Give the select a frame to 'initialize' in the DOM,
- // so we can read its height/width/position
- $$rAF(function() {
- $$rAF(function() {
- if (opts.isRemoved) return;
- animateSelect(scope, element, opts);
- });
- });
-
- return $mdUtil.transitionEndPromise(opts.selectEl, {timeout: 350});
-
- function configureAria() {
- opts.target.attr('aria-expanded', 'true');
- }
-
- function activateInteraction() {
- if (opts.isRemoved) return;
- var selectCtrl = opts.selectEl.controller('mdSelectMenu') || {};
- element.addClass('md-clickable');
-
- opts.backdrop && opts.backdrop.on('click', function(e) {
- e.preventDefault();
- e.stopPropagation();
- opts.restoreFocus = false;
- scope.$apply($mdSelect.cancel);
- });
-
- // Escape to close
- opts.selectEl.on('keydown', function(ev) {
- switch (ev.keyCode) {
- case $mdConstant.KEY_CODE.SPACE:
- case $mdConstant.KEY_CODE.ENTER:
- var option = $mdUtil.getClosest(ev.target, 'md-option');
- if (option) {
- opts.selectEl.triggerHandler({
- type: 'click',
- target: option
- });
- ev.preventDefault();
- }
- break;
- case $mdConstant.KEY_CODE.TAB:
- case $mdConstant.KEY_CODE.ESCAPE:
- ev.preventDefault();
- opts.restoreFocus = true;
- scope.$apply($mdSelect.cancel);
- }
- });
-
- // Cycling of options, and closing on enter
- opts.selectEl.on('keydown', function(ev) {
- switch (ev.keyCode) {
- case $mdConstant.KEY_CODE.UP_ARROW: return focusPrevOption();
- case $mdConstant.KEY_CODE.DOWN_ARROW: return focusNextOption();
- default:
- if (ev.keyCode >= 31 && ev.keyCode <= 90) {
- var optNode = opts.selectEl.controller('mdSelectMenu').optNodeForKeyboardSearch(ev);
- optNode && optNode.focus();
- }
- }
- });
-
-
- function focusOption(direction) {
- var optionsArray = nodesToArray(optionNodes);
- var index = optionsArray.indexOf(opts.focusedNode);
- if (index === -1) {
- // We lost the previously focused element, reset to first option
- index = 0;
- } else if (direction === 'next' && index < optionsArray.length - 1) {
- index++;
- } else if (direction === 'prev' && index > 0) {
- index--;
- }
- var newOption = opts.focusedNode = optionsArray[index];
- newOption && newOption.focus();
- }
- function focusNextOption() {
- focusOption('next');
- }
- function focusPrevOption() {
- focusOption('prev');
- }
-
- opts.selectEl.on('click', checkCloseMenu);
- opts.selectEl.on('keydown', function(e) {
- if (e.keyCode == 32 || e.keyCode == 13) {
- checkCloseMenu();
- }
- });
-
- function checkCloseMenu() {
- if (!selectCtrl.isMultiple) {
- opts.restoreFocus = true;
- scope.$evalAsync(function() {
- $mdSelect.hide(selectCtrl.ngModel.$viewValue);
- });
- }
- }
- }
-
- }
-
- function onRemove(scope, element, opts) {
- opts.isRemoved = true;
- element.addClass('md-leave')
- .removeClass('md-clickable');
- opts.target.attr('aria-expanded', 'false');
-
-
- angular.element($window).off('resize', opts.resizeFn);
- angular.element($window).off('orientationchange', opts.resizefn);
- opts.resizeFn = undefined;
-
- var mdSelect = opts.selectEl.controller('mdSelect');
- if (mdSelect) {
- mdSelect.setLabelText(opts.selectEl.controller('mdSelectMenu').selectedLabels());
- }
-
- return $mdUtil.transitionEndPromise(element, { timeout: 350 }).then(function() {
- element.removeClass('md-active');
- opts.backdrop && opts.backdrop.remove();
- if (element[0].parentNode === opts.parent[0]) {
- opts.parent[0].removeChild(element[0]); // use browser to avoid $destroy event
- }
- if (opts.disableParentScroll) {
- opts.restoreScroll();
- }
- if (opts.restoreFocus) opts.target.focus();
- });
- }
-
- function animateSelect(scope, element, opts) {
- var containerNode = element[0],
- targetNode = opts.target[0].firstElementChild.firstElementChild, // target the first span, functioning as the label
- parentNode = opts.parent[0],
- selectNode = opts.selectEl[0],
- contentNode = opts.contentEl[0],
- parentRect = parentNode.getBoundingClientRect(),
- targetRect = targetNode.getBoundingClientRect(),
- shouldOpenAroundTarget = false,
- bounds = {
- left: parentRect.left + SELECT_EDGE_MARGIN,
- top: SELECT_EDGE_MARGIN,
- bottom: parentRect.height - SELECT_EDGE_MARGIN,
- right: parentRect.width - SELECT_EDGE_MARGIN - ($mdUtil.floatingScrollbars() ? 16 : 0)
- },
- spaceAvailable = {
- top: targetRect.top - bounds.top,
- left: targetRect.left - bounds.left,
- right: bounds.right - (targetRect.left + targetRect.width),
- bottom: bounds.bottom - (targetRect.top + targetRect.height)
- },
- maxWidth = parentRect.width - SELECT_EDGE_MARGIN * 2,
- isScrollable = contentNode.scrollHeight > contentNode.offsetHeight,
- selectedNode = selectNode.querySelector('md-option[selected]'),
- optionNodes = selectNode.getElementsByTagName('md-option'),
- optgroupNodes = selectNode.getElementsByTagName('md-optgroup');
-
-
- var centeredNode;
- // If a selected node, center around that
- if (selectedNode) {
- centeredNode = selectedNode;
- // If there are option groups, center around the first option group
- } else if (optgroupNodes.length) {
- centeredNode = optgroupNodes[0];
- // Otherwise, center around the first optionNode
- } else if (optionNodes.length){
- centeredNode = optionNodes[0];
- // In case there are no options, center on whatever's in there... (eg progress indicator)
- } else {
- centeredNode = contentNode.firstElementChild || contentNode;
- }
-
- if (contentNode.offsetWidth > maxWidth) {
- contentNode.style['max-width'] = maxWidth + 'px';
- }
- if (shouldOpenAroundTarget) {
- contentNode.style['min-width'] = targetRect.width + 'px';
- }
-
- // Remove padding before we compute the position of the menu
- if (isScrollable) {
- selectNode.classList.add('md-overflow');
- }
-
- // Get the selectMenuRect *after* max-width is possibly set above
- var selectMenuRect = selectNode.getBoundingClientRect();
- var centeredRect = getOffsetRect(centeredNode);
-
- if (centeredNode) {
- var centeredStyle = $window.getComputedStyle(centeredNode);
- centeredRect.paddingLeft = parseInt(centeredStyle.paddingLeft, 10) || 0;
- centeredRect.paddingRight = parseInt(centeredStyle.paddingRight, 10) || 0;
- }
-
- var focusedNode = centeredNode;
- if ((focusedNode.tagName || '').toUpperCase() === 'MD-OPTGROUP') {
- focusedNode = optionNodes[0] || contentNode.firstElementChild || contentNode;
- }
-
- if (isScrollable) {
- var scrollBuffer = contentNode.offsetHeight / 2;
- contentNode.scrollTop = centeredRect.top + centeredRect.height / 2 - scrollBuffer;
-
- if (spaceAvailable.top < scrollBuffer) {
- contentNode.scrollTop = Math.min(
- centeredRect.top,
- contentNode.scrollTop + scrollBuffer - spaceAvailable.top
- );
- } else if (spaceAvailable.bottom < scrollBuffer) {
- contentNode.scrollTop = Math.max(
- centeredRect.top + centeredRect.height - selectMenuRect.height,
- contentNode.scrollTop - scrollBuffer + spaceAvailable.bottom
- );
- }
- }
-
- var left, top, transformOrigin;
- if (shouldOpenAroundTarget) {
- left = targetRect.left;
- top = targetRect.top + targetRect.height;
- transformOrigin = '50% 0';
- if (top + selectMenuRect.height > bounds.bottom) {
- top = targetRect.top - selectMenuRect.height;
- transformOrigin = '50% 100%';
- }
- } else {
- left = targetRect.left + centeredRect.left - centeredRect.paddingLeft;
- top = Math.floor(targetRect.top + targetRect.height / 2 - centeredRect.height / 2 -
- centeredRect.top + contentNode.scrollTop);
-
-
- transformOrigin = (centeredRect.left + targetRect.width / 2) + 'px ' +
- (centeredRect.top + centeredRect.height / 2 - contentNode.scrollTop) + 'px 0px';
-
- containerNode.style.minWidth = targetRect.width + centeredRect.paddingLeft +
- centeredRect.paddingRight + 'px';
- }
-
- // Keep left and top within the window
- var containerRect = containerNode.getBoundingClientRect();
- containerNode.style.left = clamp(bounds.left, left, bounds.right - containerRect.width) + 'px';
- containerNode.style.top = clamp(bounds.top, top, bounds.bottom - containerRect.height) + 'px';
- selectNode.style[$mdConstant.CSS.TRANSFORM_ORIGIN] = transformOrigin;
-
- selectNode.style[$mdConstant.CSS.TRANSFORM] = 'scale(' +
- Math.min(targetRect.width / selectMenuRect.width, 1.0) + ',' +
- Math.min(targetRect.height / selectMenuRect.height, 1.0) +
- ')';
-
-
- $$rAF(function() {
- element.addClass('md-active');
- selectNode.style[$mdConstant.CSS.TRANSFORM] = '';
- if (focusedNode) {
- opts.focusedNode = focusedNode;
- focusedNode.focus();
- }
- });
- }
-
- }
-
- function clamp(min, n, max) {
- return Math.max(min, Math.min(n, max));
- }
-
- function getOffsetRect(node) {
- return node ? {
- left: node.offsetLeft,
- top: node.offsetTop,
- width: node.offsetWidth,
- height: node.offsetHeight
- } : { left: 0, top: 0, width: 0, height: 0 };
- }
-}
-SelectProvider.$inject = ["$$interimElementProvider"];
-
-// Annoying method to copy nodes to an array, thanks to IE
-function nodesToArray(nodes) {
- var results = [];
- for (var i = 0; i < nodes.length; ++i) {
- results.push(nodes.item(i));
- }
- return results;
-}
-
-ng.material.components.select = angular.module("material.components.select"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav-default-theme.css
deleted file mode 100644
index b625e2ab..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav-default-theme.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-sidenav.md-THEME_NAME-theme {
- background-color: '{{background-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav.css
deleted file mode 100644
index 402d88f1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav.css
+++ /dev/null
@@ -1,99 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-sidenav {
- box-sizing: border-box;
- position: absolute;
- width: 304px;
- min-width: 304px;
- max-width: 304px;
- bottom: 0;
- z-index: 60;
- background-color: white;
- overflow: auto;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- md-sidenav *, md-sidenav *:before, md-sidenav *:after {
- box-sizing: border-box; }
- md-sidenav ul {
- list-style: none; }
- md-sidenav.md-closed {
- display: none; }
- md-sidenav.md-closed-add, md-sidenav.md-closed-remove {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- /* this is required as of 1.3x to properly
- apply all styling in a show/hide animation */
- transition: 0s all; }
- md-sidenav.md-closed-add.md-closed-add-active, md-sidenav.md-closed-remove.md-closed-remove-active {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-sidenav.md-locked-open-add, md-sidenav.md-locked-open-remove {
- position: static;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-sidenav.md-locked-open {
- width: 304px;
- min-width: 304px;
- max-width: 304px; }
- md-sidenav.md-locked-open, md-sidenav.md-locked-open.md-closed, md-sidenav.md-locked-open.md-closed.md-sidenav-left, md-sidenav.md-locked-open.md-closed, md-sidenav.md-locked-open.md-closed.md-sidenav-right, md-sidenav.md-locked-open-remove.md-closed {
- position: static;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-sidenav.md-locked-open-remove-active {
- transition: width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2), min-width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- width: 0;
- min-width: 0; }
- md-sidenav.md-closed.md-locked-open-add {
- width: 0;
- min-width: 0;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
- md-sidenav.md-closed.md-locked-open-add-active {
- transition: width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2), min-width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- width: 304px;
- min-width: 304px;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
-
-.md-sidenav-backdrop.md-locked-open {
- display: none; }
-
-.md-sidenav-left, md-sidenav {
- left: 0;
- top: 0;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
- .md-sidenav-left.md-closed, md-sidenav.md-closed {
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0); }
-
-.md-sidenav-right {
- left: 100%;
- top: 0;
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0); }
- .md-sidenav-right.md-closed {
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
-
-@media (max-width: 360px) {
- md-sidenav {
- width: 85%; } }
-
-@media screen and (-ms-high-contrast: active) {
- .md-sidenav-left, md-sidenav {
- border-right: 1px solid #fff; }
- .md-sidenav-right {
- border-left: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav.js
deleted file mode 100644
index e11cdb56..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sidenav/sidenav.js
+++ /dev/null
@@ -1,424 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.sidenav');
-goog.require('ng.material.components.backdrop');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.sidenav
- *
- * @description
- * A Sidenav QP component.
- */
-angular.module('material.components.sidenav', [
- 'material.core',
- 'material.components.backdrop'
- ])
- .factory('$mdSidenav', SidenavService )
- .directive('mdSidenav', SidenavDirective)
- .directive('mdSidenavFocus', SidenavFocusDirective)
- .controller('$mdSidenavController', SidenavController);
-
-
-/**
- * @private
- * @ngdoc service
- * @name $mdSidenav
- * @module material.components.sidenav
- *
- * @description
- * `$mdSidenav` makes it easy to interact with multiple sidenavs
- * in an app.
- *
- * @usage
- * <hljs lang="js">
- * // Async lookup for sidenav instance; will resolve when the instance is available
- * $mdSidenav(componentId).then(function(instance) {
- * $log.debug( componentId + "is now ready" );
- * });
- * // Async toggle the given sidenav;
- * // when instance is known ready and lazy lookup is not needed.
- * $mdSidenav(componentId)
- * .toggle()
- * .then(function(){
- * $log.debug('toggled');
- * });
- * // Async open the given sidenav
- * $mdSidenav(componentId)
- * .open()
- * .then(function(){
- * $log.debug('opened');
- * });
- * // Async close the given sidenav
- * $mdSidenav(componentId)
- * .close()
- * .then(function(){
- * $log.debug('closed');
- * });
- * // Sync check to see if the specified sidenav is set to be open
- * $mdSidenav(componentId).isOpen();
- * // Sync check to whether given sidenav is locked open
- * // If this is true, the sidenav will be open regardless of close()
- * $mdSidenav(componentId).isLockedOpen();
- * </hljs>
- */
-function SidenavService($mdComponentRegistry, $q) {
- return function(handle) {
-
- // Lookup the controller instance for the specified sidNav instance
- var self;
- var errorMsg = "SideNav '" + handle + "' is not available!";
- var instance = $mdComponentRegistry.get(handle);
-
- if(!instance) {
- $mdComponentRegistry.notFoundError(handle);
- }
-
- return self = {
- // -----------------
- // Sync methods
- // -----------------
- isOpen: function() {
- return instance && instance.isOpen();
- },
- isLockedOpen: function() {
- return instance && instance.isLockedOpen();
- },
- // -----------------
- // Async methods
- // -----------------
- toggle: function() {
- return instance ? instance.toggle() : $q.reject(errorMsg);
- },
- open: function() {
- return instance ? instance.open() : $q.reject(errorMsg);
- },
- close: function() {
- return instance ? instance.close() : $q.reject(errorMsg);
- },
- then : function( callbackFn ) {
- var promise = instance ? $q.when(instance) : waitForInstance();
- return promise.then( callbackFn || angular.noop );
- }
- };
-
- /**
- * Deferred lookup of component instance using $component registry
- */
- function waitForInstance() {
- return $mdComponentRegistry
- .when(handle)
- .then(function( it ){
- instance = it;
- return it;
- });
- }
- };
-}
-SidenavService.$inject = ["$mdComponentRegistry", "$q"];
-/**
- * @ngdoc directive
- * @name mdSidenavFocus
- * @module material.components.sidenav
- *
- * @restrict A
- *
- * @description
- * `$mdSidenavFocus` provides a way to specify the focused element when a sidenav opens.
- * This is completely optional, as the sidenav itself is focused by default.
- *
- * @usage
- * <hljs lang="html">
- * <md-sidenav>
- * <form>
- * <md-input-container>
- * <label for="testInput">Label</label>
- * <input id="testInput" type="text" md-sidenav-focus>
- * </md-input-container>
- * </form>
- * </md-sidenav>
- * </hljs>
- **/
-function SidenavFocusDirective() {
- return {
- restrict: 'A',
- require: '^mdSidenav',
- link: function(scope, element, attr, sidenavCtrl) {
- sidenavCtrl.focusElement(element);
- }
- };
-}
-/**
- * @ngdoc directive
- * @name mdSidenav
- * @module material.components.sidenav
- * @restrict E
- *
- * @description
- *
- * A Sidenav component that can be opened and closed programatically.
- *
- * By default, upon opening it will slide out on top of the main content area.
- *
- * For keyboard and screen reader accessibility, focus is sent to the sidenav wrapper by default.
- * It can be overridden with the `md-sidenav-focus` directive on the child element you want focused.
- *
- * @usage
- * <hljs lang="html">
- * <div layout="row" ng-controller="MyController">
- * <md-sidenav md-component-id="left" class="md-sidenav-left">
- * Left Nav!
- * </md-sidenav>
- *
- * <md-content>
- * Center Content
- * <md-button ng-click="openLeftMenu()">
- * Open Left Menu
- * </md-button>
- * </md-content>
- *
- * <md-sidenav md-component-id="right"
- * md-is-locked-open="$mdMedia('min-width: 333px')"
- * class="md-sidenav-right">
- * <form>
- * <md-input-container>
- * <label for="testInput">Test input</label>
- * <input id="testInput" type="text"
- * ng-model="data" md-sidenav-focus>
- * </md-input-container>
- * </form>
- * </md-sidenav>
- * </div>
- * </hljs>
- *
- * <hljs lang="js">
- * var app = angular.module('myApp', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdSidenav) {
- * $scope.openLeftMenu = function() {
- * $mdSidenav('left').toggle();
- * };
- * });
- * </hljs>
- *
- * @param {expression=} md-is-open A model bound to whether the sidenav is opened.
- * @param {string=} md-component-id componentId to use with $mdSidenav service.
- * @param {expression=} md-is-locked-open When this expression evalutes to true,
- * the sidenav 'locks open': it falls into the content's flow instead
- * of appearing over it. This overrides the `is-open` attribute.
- *
- * The $mdMedia() service is exposed to the is-locked-open attribute, which
- * can be given a media query or one of the `sm`, `gt-sm`, `md`, `gt-md`, `lg` or `gt-lg` presets.
- * Examples:
- *
- * - `<md-sidenav md-is-locked-open="shouldLockOpen"></md-sidenav>`
- * - `<md-sidenav md-is-locked-open="$mdMedia('min-width: 1000px')"></md-sidenav>`
- * - `<md-sidenav md-is-locked-open="$mdMedia('sm')"></md-sidenav>` (locks open on small screens)
- */
-function SidenavDirective($timeout, $animate, $parse, $log, $mdMedia, $mdConstant, $compile, $mdTheming, $q, $document) {
- return {
- restrict: 'E',
- scope: {
- isOpen: '=?mdIsOpen'
- },
- controller: '$mdSidenavController',
- compile: function(element) {
- element.addClass('md-closed');
- element.attr('tabIndex', '-1');
- return postLink;
- }
- };
-
- /**
- * Directive Post Link function...
- */
- function postLink(scope, element, attr, sidenavCtrl) {
- var lastParentOverFlow;
- var triggeringElement = null;
- var promise = $q.when(true);
-
- var isLockedOpenParsed = $parse(attr.mdIsLockedOpen);
- var isLocked = function() {
- return isLockedOpenParsed(scope.$parent, {
- $media: function(arg) {
- $log.warn("$media is deprecated for is-locked-open. Use $mdMedia instead.");
- return $mdMedia(arg);
- },
- $mdMedia: $mdMedia
- });
- };
- var backdrop = $compile(
- '<md-backdrop class="md-sidenav-backdrop md-opaque ng-enter">'
- )(scope);
-
- element.on('$destroy', sidenavCtrl.destroy);
- $mdTheming.inherit(backdrop, element);
-
- scope.$watch(isLocked, updateIsLocked);
- scope.$watch('isOpen', updateIsOpen);
-
-
- // Publish special accessor for the Controller instance
- sidenavCtrl.$toggleOpen = toggleOpen;
- sidenavCtrl.focusElement( sidenavCtrl.focusElement() || element );
-
- /**
- * Toggle the DOM classes to indicate `locked`
- * @param isLocked
- */
- function updateIsLocked(isLocked, oldValue) {
- scope.isLockedOpen = isLocked;
- if (isLocked === oldValue) {
- element.toggleClass('md-locked-open', !!isLocked);
- } else {
- $animate[isLocked ? 'addClass' : 'removeClass'](element, 'md-locked-open');
- }
- backdrop.toggleClass('md-locked-open', !!isLocked);
- }
-
- /**
- * Toggle the SideNav view and attach/detach listeners
- * @param isOpen
- */
- function updateIsOpen(isOpen) {
- var parent = element.parent();
-
- parent[isOpen ? 'on' : 'off']('keydown', onKeyDown);
- backdrop[isOpen ? 'on' : 'off']('click', close);
-
- if ( isOpen ) {
- // Capture upon opening..
- triggeringElement = $document[0].activeElement;
- }
- var focusEl = sidenavCtrl.focusElement();
-
- disableParentScroll(isOpen);
-
- return promise = $q.all([
- isOpen ? $animate.enter(backdrop, parent) : $animate.leave(backdrop),
- $animate[isOpen ? 'removeClass' : 'addClass'](element, 'md-closed')
- ])
- .then(function() {
- // Perform focus when animations are ALL done...
- if (scope.isOpen) {
- focusEl && focusEl.focus();
- }
- });
- }
-
- /**
- * Prevent parent scrolling (when the SideNav is open)
- */
- function disableParentScroll(disabled) {
- var parent = element.parent();
- if ( disabled ) {
- lastParentOverFlow = parent.css('overflow');
- parent.css('overflow', 'hidden');
- } else if (angular.isDefined(lastParentOverFlow)) {
- parent.css('overflow', lastParentOverFlow);
- lastParentOverFlow = undefined;
- }
- }
-
- /**
- * Toggle the sideNav view and publish a promise to be resolved when
- * the view animation finishes.
- *
- * @param isOpen
- * @returns {*}
- */
- function toggleOpen( isOpen ) {
- if (scope.isOpen == isOpen ) {
-
- return $q.when(true);
-
- } else {
- var deferred = $q.defer();
-
- // Toggle value to force an async `updateIsOpen()` to run
- scope.isOpen = isOpen;
-
- $timeout(function() {
-
- // When the current `updateIsOpen()` animation finishes
- promise.then(function(result) {
-
- if ( !scope.isOpen ) {
- // reset focus to originating element (if available) upon close
- triggeringElement && triggeringElement.focus();
- triggeringElement = null;
- }
-
- deferred.resolve(result);
- });
-
- },0,false);
-
- return deferred.promise;
- }
- }
-
- /**
- * Auto-close sideNav when the `escape` key is pressed.
- * @param evt
- */
- function onKeyDown(ev) {
- var isEscape = (ev.keyCode === $mdConstant.KEY_CODE.ESCAPE);
- return isEscape ? close(ev) : $q.when(true);
- }
-
- /**
- * With backdrop `clicks` or `escape` key-press, immediately
- * apply the CSS close transition... Then notify the controller
- * to close() and perform its own actions.
- */
- function close(ev) {
- ev.preventDefault();
- ev.stopPropagation();
-
- return sidenavCtrl.close();
- }
-
- }
-}
-SidenavDirective.$inject = ["$timeout", "$animate", "$parse", "$log", "$mdMedia", "$mdConstant", "$compile", "$mdTheming", "$q", "$document"];
-
-/*
- * @private
- * @ngdoc controller
- * @name SidenavController
- * @module material.components.sidenav
- *
- */
-function SidenavController($scope, $element, $attrs, $mdComponentRegistry, $q) {
-
- var self = this,
- focusElement;
-
- // Use Default internal method until overridden by directive postLink
-
- // Synchronous getters
- self.isOpen = function() { return !!$scope.isOpen; };
- self.isLockedOpen = function() { return !!$scope.isLockedOpen; };
-
- // Async actions
- self.open = function() { return self.$toggleOpen( true ); };
- self.close = function() { return self.$toggleOpen( false ); };
- self.toggle = function() { return self.$toggleOpen( !$scope.isOpen ); };
- self.focusElement = function(el) {
- if ( angular.isDefined(el) ) {
- focusElement = el;
- }
- return focusElement;
- };
-
- self.$toggleOpen = function() { return $q.when($scope.isOpen); };
-
- self.destroy = $mdComponentRegistry.register(self, $attrs.mdComponentId);
-}
-SidenavController.$inject = ["$scope", "$element", "$attrs", "$mdComponentRegistry", "$q"];
-
-ng.material.components.sidenav = angular.module("material.components.sidenav"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider-default-theme.css
deleted file mode 100644
index 72a7c06a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider-default-theme.css
+++ /dev/null
@@ -1,56 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-slider.md-THEME_NAME-theme .md-track {
- background-color: '{{foreground-3}}'; }
-md-slider.md-THEME_NAME-theme .md-track-ticks {
- background-color: '{{foreground-4}}'; }
-md-slider.md-THEME_NAME-theme .md-focus-thumb {
- background-color: '{{foreground-2}}'; }
-md-slider.md-THEME_NAME-theme .md-focus-ring {
- border-color: '{{foreground-4}}'; }
-md-slider.md-THEME_NAME-theme .md-disabled-thumb {
- border-color: '{{background-color}}'; }
-md-slider.md-THEME_NAME-theme.md-min .md-thumb:after {
- background-color: '{{background-color}}'; }
-md-slider.md-THEME_NAME-theme .md-track.md-track-fill {
- background-color: '{{accent-color}}'; }
-md-slider.md-THEME_NAME-theme .md-thumb:after {
- border-color: '{{accent-color}}';
- background-color: '{{accent-color}}'; }
-md-slider.md-THEME_NAME-theme .md-sign {
- background-color: '{{accent-color}}'; }
- md-slider.md-THEME_NAME-theme .md-sign:after {
- border-top-color: '{{accent-color}}'; }
-md-slider.md-THEME_NAME-theme .md-thumb-text {
- color: '{{accent-contrast}}'; }
-md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill {
- background-color: '{{warn-color}}'; }
-md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after {
- border-color: '{{warn-color}}';
- background-color: '{{warn-color}}'; }
-md-slider.md-THEME_NAME-theme.md-warn .md-sign {
- background-color: '{{warn-color}}'; }
- md-slider.md-THEME_NAME-theme.md-warn .md-sign:after {
- border-top-color: '{{warn-color}}'; }
-md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text {
- color: '{{warn-contrast}}'; }
-md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill {
- background-color: '{{primary-color}}'; }
-md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after {
- border-color: '{{primary-color}}';
- background-color: '{{primary-color}}'; }
-md-slider.md-THEME_NAME-theme.md-primary .md-sign {
- background-color: '{{primary-color}}'; }
- md-slider.md-THEME_NAME-theme.md-primary .md-sign:after {
- border-top-color: '{{primary-color}}'; }
-md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text {
- color: '{{primary-contrast}}'; }
-md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after {
- border-color: '{{foreground-3}}'; }
-md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after {
- background-color: '{{foreground-3}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider.css
deleted file mode 100644
index 8912e165..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider.css
+++ /dev/null
@@ -1,220 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes sliderFocusThumb {
- 0% {
- opacity: 0;
- -webkit-transform: scale(0);
- transform: scale(0); }
-
- 50% {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-@keyframes sliderFocusThumb {
- 0% {
- opacity: 0;
- -webkit-transform: scale(0);
- transform: scale(0); }
-
- 50% {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-
-md-slider {
- height: 48px;
- position: relative;
- display: block;
- margin-left: 4px;
- margin-right: 4px;
- padding: 0;
- /**
- * Track
- */
- /**
- * Slider thumb
- */
- /* The sign that's focused in discrete mode */
- /**
- * The border/background that comes in when focused in non-discrete mode
- */
- /* Don't animate left/right while panning */ }
- md-slider *, md-slider *:after {
- box-sizing: border-box; }
- md-slider .md-slider-wrapper {
- position: relative; }
- md-slider .md-track-container {
- width: 100%;
- position: absolute;
- top: 23px;
- height: 2px; }
- md-slider .md-track {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%; }
- md-slider .md-track-fill {
- transition: width 0.05s linear; }
- md-slider .md-track-ticks {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%; }
- md-slider .md-thumb-container {
- position: absolute;
- left: 0;
- top: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0);
- transition: left 0.1s linear; }
- md-slider .md-thumb {
- z-index: 1;
- position: absolute;
- left: -19px;
- top: 5px;
- width: 38px;
- height: 38px;
- border-radius: 38px;
- -webkit-transform: scale(0.5);
- transform: scale(0.5);
- transition: all 0.1s linear; }
- md-slider .md-thumb:after {
- content: '';
- position: absolute;
- left: 3px;
- top: 3px;
- width: 32px;
- height: 32px;
- border-radius: 32px;
- border-width: 3px;
- border-style: solid; }
- md-slider .md-sign {
- /* Center the children (slider-thumb-text) */
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- position: absolute;
- left: -14px;
- top: -20px;
- width: 28px;
- height: 28px;
- border-radius: 28px;
- -webkit-transform: scale(0.4) translate3d(0, 70px, 0);
- transform: scale(0.4) translate3d(0, 70px, 0);
- transition: all 0.2s ease-in-out;
- /* The arrow pointing down under the sign */ }
- md-slider .md-sign:after {
- position: absolute;
- content: '';
- left: 0px;
- border-radius: 16px;
- top: 19px;
- border-left: 14px solid transparent;
- border-right: 14px solid transparent;
- border-top-width: 16px;
- border-top-style: solid;
- opacity: 0;
- -webkit-transform: translate3d(0, -8px, 0);
- transform: translate3d(0, -8px, 0);
- transition: all 0.2s ease-in-out; }
- md-slider .md-sign .md-thumb-text {
- z-index: 1;
- font-size: 12px;
- font-weight: bold; }
- md-slider .md-focus-thumb {
- position: absolute;
- left: -24px;
- top: 0px;
- width: 48px;
- height: 48px;
- border-radius: 48px;
- display: none;
- opacity: 0;
- background-color: #C0C0C0;
- -webkit-animation: sliderFocusThumb 0.4s linear;
- animation: sliderFocusThumb 0.4s linear; }
- md-slider .md-focus-ring {
- position: absolute;
- left: -24px;
- top: 0px;
- width: 48px;
- height: 48px;
- border-radius: 48px;
- border: 2px solid #D6D6D6;
- background-color: transparent;
- -webkit-transform: scale(0);
- transform: scale(0);
- transition: all 0.2s linear; }
- md-slider .md-disabled-thumb {
- position: absolute;
- left: -22px;
- top: 2px;
- width: 44px;
- height: 44px;
- border-radius: 44px;
- -webkit-transform: scale(0.35);
- transform: scale(0.35);
- border-width: 6px;
- border-style: solid;
- display: none; }
- md-slider.md-min .md-thumb:after {
- background-color: white; }
- md-slider.md-min .md-sign {
- opacity: 0; }
- md-slider:focus {
- outline: none; }
- md-slider.dragging .md-thumb-container, md-slider.dragging .md-track-fill {
- transition: none; }
- md-slider:not([md-discrete]) {
- /* Hide the sign and ticks in non-discrete mode */ }
- md-slider:not([md-discrete]) .md-track-ticks, md-slider:not([md-discrete]) .md-sign {
- display: none; }
- md-slider:not([md-discrete]):not([disabled]):hover .md-thumb {
- -webkit-transform: scale(0.6);
- transform: scale(0.6); }
- md-slider:not([md-discrete]):not([disabled]):focus .md-focus-thumb, md-slider:not([md-discrete]):not([disabled]).active .md-focus-thumb {
- display: block; }
- md-slider:not([md-discrete]):not([disabled]):focus .md-focus-ring, md-slider:not([md-discrete]):not([disabled]).active .md-focus-ring {
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-slider:not([md-discrete]):not([disabled]):focus .md-thumb, md-slider:not([md-discrete]):not([disabled]).active .md-thumb {
- -webkit-transform: scale(0.85);
- transform: scale(0.85); }
- md-slider[md-discrete] {
- /* Hide the focus thumb in discrete mode */ }
- md-slider[md-discrete] .md-focus-thumb, md-slider[md-discrete] .md-focus-ring {
- display: none; }
- md-slider[md-discrete]:not([disabled]):focus .md-sign, md-slider[md-discrete]:not([disabled]):focus .md-sign:after, md-slider[md-discrete]:not([disabled]).active .md-sign, md-slider[md-discrete]:not([disabled]).active .md-sign:after {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0) scale(1);
- transform: translate3d(0, 0, 0) scale(1); }
- md-slider[disabled] .md-track-fill {
- display: none; }
- md-slider[disabled] .md-sign {
- display: none; }
- md-slider[disabled] .md-thumb {
- -webkit-transform: scale(0.35);
- transform: scale(0.35); }
- md-slider[disabled] .md-disabled-thumb {
- display: block; }
-
-@media screen and (-ms-high-contrast: active) {
- md-slider.md-default-theme .md-track {
- border-bottom: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider.js
deleted file mode 100644
index 6ae8e518..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/slider/slider.js
+++ /dev/null
@@ -1,403 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.slider');
-goog.require('ng.material.core');
- /**
- * @ngdoc module
- * @name material.components.slider
- */
- angular.module('material.components.slider', [
- 'material.core'
- ])
- .directive('mdSlider', SliderDirective);
-
-/**
- * @ngdoc directive
- * @name mdSlider
- * @module material.components.slider
- * @restrict E
- * @description
- * The `<md-slider>` component allows the user to choose from a range of
- * values.
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the slider is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * It has two modes: 'normal' mode, where the user slides between a wide range
- * of values, and 'discrete' mode, where the user slides between only a few
- * select values.
- *
- * To enable discrete mode, add the `md-discrete` attribute to a slider,
- * and use the `step` attribute to change the distance between
- * values the user is allowed to pick.
- *
- * @usage
- * <h4>Normal Mode</h4>
- * <hljs lang="html">
- * <md-slider ng-model="myValue" min="5" max="500">
- * </md-slider>
- * </hljs>
- * <h4>Discrete Mode</h4>
- * <hljs lang="html">
- * <md-slider md-discrete ng-model="myDiscreteValue" step="10" min="10" max="130">
- * </md-slider>
- * </hljs>
- *
- * @param {boolean=} md-discrete Whether to enable discrete mode.
- * @param {number=} step The distance between values the user is allowed to pick. Default 1.
- * @param {number=} min The minimum value the user is allowed to pick. Default 0.
- * @param {number=} max The maximum value the user is allowed to pick. Default 100.
- */
-function SliderDirective($$rAF, $window, $mdAria, $mdUtil, $mdConstant, $mdTheming, $mdGesture, $parse) {
- return {
- scope: {},
- require: '?ngModel',
- template:
- '<div class="md-slider-wrapper">\
- <div class="md-track-container">\
- <div class="md-track"></div>\
- <div class="md-track md-track-fill"></div>\
- <div class="md-track-ticks"></div>\
- </div>\
- <div class="md-thumb-container">\
- <div class="md-thumb"></div>\
- <div class="md-focus-thumb"></div>\
- <div class="md-focus-ring"></div>\
- <div class="md-sign">\
- <span class="md-thumb-text"></span>\
- </div>\
- <div class="md-disabled-thumb"></div>\
- </div>\
- </div>',
- compile: compile
- };
-
- // **********************************************************
- // Private Methods
- // **********************************************************
-
- function compile (tElement, tAttrs) {
- tElement.attr({
- tabIndex: 0,
- role: 'slider'
- });
-
- $mdAria.expect(tElement, 'aria-label');
-
- return postLink;
- }
-
- function postLink(scope, element, attr, ngModelCtrl) {
- $mdTheming(element);
- ngModelCtrl = ngModelCtrl || {
- // Mock ngModelController if it doesn't exist to give us
- // the minimum functionality needed
- $setViewValue: function(val) {
- this.$viewValue = val;
- this.$viewChangeListeners.forEach(function(cb) { cb(); });
- },
- $parsers: [],
- $formatters: [],
- $viewChangeListeners: []
- };
-
- var isDisabledParsed = attr.ngDisabled && $parse(attr.ngDisabled);
- var isDisabledGetter = isDisabledParsed ?
- function() { return isDisabledParsed(scope.$parent); } :
- angular.noop;
- var thumb = angular.element(element[0].querySelector('.md-thumb'));
- var thumbText = angular.element(element[0].querySelector('.md-thumb-text'));
- var thumbContainer = thumb.parent();
- var trackContainer = angular.element(element[0].querySelector('.md-track-container'));
- var activeTrack = angular.element(element[0].querySelector('.md-track-fill'));
- var tickContainer = angular.element(element[0].querySelector('.md-track-ticks'));
- var throttledRefreshDimensions = $mdUtil.throttle(refreshSliderDimensions, 5000);
-
- // Default values, overridable by attrs
- angular.isDefined(attr.min) ? attr.$observe('min', updateMin) : updateMin(0);
- angular.isDefined(attr.max) ? attr.$observe('max', updateMax) : updateMax(100);
- angular.isDefined(attr.step)? attr.$observe('step', updateStep) : updateStep(1);
-
- // We have to manually stop the $watch on ngDisabled because it exists
- // on the parent scope, and won't be automatically destroyed when
- // the component is destroyed.
- var stopDisabledWatch = angular.noop;
- if (attr.ngDisabled) {
- stopDisabledWatch = scope.$parent.$watch(attr.ngDisabled, updateAriaDisabled);
- }
-
- $mdGesture.register(element, 'drag');
-
- element
- .on('keydown', keydownListener)
- .on('$md.pressdown', onPressDown)
- .on('$md.pressup', onPressUp)
- .on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- // On resize, recalculate the slider's dimensions and re-render
- function updateAll() {
- refreshSliderDimensions();
- ngModelRender();
- redrawTicks();
- }
- setTimeout(updateAll);
-
- var debouncedUpdateAll = $$rAF.throttle(updateAll);
- angular.element($window).on('resize', debouncedUpdateAll);
-
- scope.$on('$destroy', function() {
- angular.element($window).off('resize', debouncedUpdateAll);
- stopDisabledWatch();
- });
-
- ngModelCtrl.$render = ngModelRender;
- ngModelCtrl.$viewChangeListeners.push(ngModelRender);
- ngModelCtrl.$formatters.push(minMaxValidator);
- ngModelCtrl.$formatters.push(stepValidator);
-
- /**
- * Attributes
- */
- var min;
- var max;
- var step;
- function updateMin(value) {
- min = parseFloat(value);
- element.attr('aria-valuemin', value);
- updateAll();
- }
- function updateMax(value) {
- max = parseFloat(value);
- element.attr('aria-valuemax', value);
- updateAll();
- }
- function updateStep(value) {
- step = parseFloat(value);
- redrawTicks();
- }
- function updateAriaDisabled(isDisabled) {
- element.attr('aria-disabled', !!isDisabled);
- }
-
- // Draw the ticks with canvas.
- // The alternative to drawing ticks with canvas is to draw one element for each tick,
- // which could quickly become a performance bottleneck.
- var tickCanvas, tickCtx;
- function redrawTicks() {
- if (!angular.isDefined(attr.mdDiscrete)) return;
-
- var numSteps = Math.floor( (max - min) / step );
- if (!tickCanvas) {
- var trackTicksStyle = $window.getComputedStyle(tickContainer[0]);
- tickCanvas = angular.element('<canvas style="position:absolute;">');
- tickCtx = tickCanvas[0].getContext('2d');
- tickCtx.fillStyle = trackTicksStyle.backgroundColor || 'black';
- tickContainer.append(tickCanvas);
- }
- var dimensions = getSliderDimensions();
- tickCanvas[0].width = dimensions.width;
- tickCanvas[0].height = dimensions.height;
-
- var distance;
- for (var i = 0; i <= numSteps; i++) {
- distance = Math.floor(dimensions.width * (i / numSteps));
- tickCtx.fillRect(distance - 1, 0, 2, dimensions.height);
- }
- }
-
-
- /**
- * Refreshing Dimensions
- */
- var sliderDimensions = {};
- refreshSliderDimensions();
- function refreshSliderDimensions() {
- sliderDimensions = trackContainer[0].getBoundingClientRect();
- }
- function getSliderDimensions() {
- throttledRefreshDimensions();
- return sliderDimensions;
- }
-
- /**
- * left/right arrow listener
- */
- function keydownListener(ev) {
- if(element[0].hasAttribute('disabled')) {
- return;
- }
-
- var changeAmount;
- if (ev.keyCode === $mdConstant.KEY_CODE.LEFT_ARROW) {
- changeAmount = -step;
- } else if (ev.keyCode === $mdConstant.KEY_CODE.RIGHT_ARROW) {
- changeAmount = step;
- }
- if (changeAmount) {
- if (ev.metaKey || ev.ctrlKey || ev.altKey) {
- changeAmount *= 4;
- }
- ev.preventDefault();
- ev.stopPropagation();
- scope.$evalAsync(function() {
- setModelValue(ngModelCtrl.$viewValue + changeAmount);
- });
- }
- }
-
- /**
- * ngModel setters and validators
- */
- function setModelValue(value) {
- ngModelCtrl.$setViewValue( minMaxValidator(stepValidator(value)) );
- }
- function ngModelRender() {
- if (isNaN(ngModelCtrl.$viewValue)) {
- ngModelCtrl.$viewValue = ngModelCtrl.$modelValue;
- }
-
- var percent = (ngModelCtrl.$viewValue - min) / (max - min);
- scope.modelValue = ngModelCtrl.$viewValue;
- element.attr('aria-valuenow', ngModelCtrl.$viewValue);
- setSliderPercent(percent);
- thumbText.text( ngModelCtrl.$viewValue );
- }
-
- function minMaxValidator(value) {
- if (angular.isNumber(value)) {
- return Math.max(min, Math.min(max, value));
- }
- }
- function stepValidator(value) {
- if (angular.isNumber(value)) {
- var formattedValue = (Math.round(value / step) * step);
- // Format to 3 digits after the decimal point - fixes #2015.
- return (Math.round(formattedValue * 1000) / 1000);
- }
- }
-
- /**
- * @param percent 0-1
- */
- function setSliderPercent(percent) {
- activeTrack.css('width', (percent * 100) + '%');
- thumbContainer.css(
- 'left',
- (percent * 100) + '%'
- );
- element.toggleClass('md-min', percent === 0);
- }
-
-
- /**
- * Slide listeners
- */
- var isDragging = false;
- var isDiscrete = angular.isDefined(attr.mdDiscrete);
-
- function onPressDown(ev) {
- if (isDisabledGetter()) return;
-
- element.addClass('active');
- element[0].focus();
- refreshSliderDimensions();
-
- var exactVal = percentToValue( positionToPercent( ev.pointer.x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- scope.$apply(function() {
- setModelValue( closestVal );
- setSliderPercent( valueToPercent(closestVal));
- });
- }
- function onPressUp(ev) {
- if (isDisabledGetter()) return;
-
- element.removeClass('dragging active');
-
- var exactVal = percentToValue( positionToPercent( ev.pointer.x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- scope.$apply(function() {
- setModelValue(closestVal);
- ngModelRender();
- });
- }
- function onDragStart(ev) {
- if (isDisabledGetter()) return;
- isDragging = true;
- ev.stopPropagation();
-
- element.addClass('dragging');
- setSliderFromEvent(ev);
- }
- function onDrag(ev) {
- if (!isDragging) return;
- ev.stopPropagation();
- setSliderFromEvent(ev);
- }
- function onDragEnd(ev) {
- if (!isDragging) return;
- ev.stopPropagation();
- isDragging = false;
- }
-
- function setSliderFromEvent(ev) {
- // While panning discrete, update only the
- // visual positioning but not the model value.
- if ( isDiscrete ) adjustThumbPosition( ev.pointer.x );
- else doSlide( ev.pointer.x );
- }
-
- /**
- * Slide the UI by changing the model value
- * @param x
- */
- function doSlide( x ) {
- scope.$evalAsync( function() {
- setModelValue( percentToValue( positionToPercent(x) ));
- });
- }
-
- /**
- * Slide the UI without changing the model (while dragging/panning)
- * @param x
- */
- function adjustThumbPosition( x ) {
- var exactVal = percentToValue( positionToPercent( x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- setSliderPercent( positionToPercent(x) );
- thumbText.text( closestVal );
- }
-
- /**
- * Convert horizontal position on slider to percentage value of offset from beginning...
- * @param x
- * @returns {number}
- */
- function positionToPercent( x ) {
- return Math.max(0, Math.min(1, (x - sliderDimensions.left) / (sliderDimensions.width)));
- }
-
- /**
- * Convert percentage offset on slide to equivalent model value
- * @param percent
- * @returns {*}
- */
- function percentToValue( percent ) {
- return (min + percent * (max - min));
- }
-
- function valueToPercent( val ) {
- return (val - min)/(max - min);
- }
- }
-}
-SliderDirective.$inject = ["$$rAF", "$window", "$mdAria", "$mdUtil", "$mdConstant", "$mdTheming", "$mdGesture", "$parse"];
-
-ng.material.components.slider = angular.module("material.components.slider"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sticky/sticky.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sticky/sticky.css
deleted file mode 100644
index cfbea4ac..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sticky/sticky.css
+++ /dev/null
@@ -1,21 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-sticky-clone {
- z-index: 2;
- top: 0;
- left: 0;
- right: 0;
- position: absolute !important;
- -webkit-transform: translate3d(-9999px, -9999px, 0);
- transform: translate3d(-9999px, -9999px, 0); }
- .md-sticky-clone[sticky-state="active"] {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- .md-sticky-clone[sticky-state="active"]:not(.md-sticky-no-effect) .md-subheader-inner {
- -webkit-animation: subheaderStickyHoverIn 0.3s ease-out both;
- animation: subheaderStickyHoverIn 0.3s ease-out both; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sticky/sticky.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sticky/sticky.js
deleted file mode 100644
index fc6baa43..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/sticky/sticky.js
+++ /dev/null
@@ -1,315 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.sticky');
-goog.require('ng.material.components.content');
-goog.require('ng.material.core');
-/*
- * @ngdoc module
- * @name material.components.sticky
- * @description
- *
- * Sticky effects for md
- */
-
-angular.module('material.components.sticky', [
- 'material.core',
- 'material.components.content'
-])
- .factory('$mdSticky', MdSticky);
-
-/*
- * @ngdoc service
- * @name $mdSticky
- * @module material.components.sticky
- *
- * @description
- * The `$mdSticky`service provides a mixin to make elements sticky.
- *
- * @returns A `$mdSticky` function that takes three arguments:
- * - `scope`
- * - `element`: The element that will be 'sticky'
- * - `elementClone`: A clone of the element, that will be shown
- * when the user starts scrolling past the original element.
- * If not provided, it will use the result of `element.clone()`.
- */
-
-function MdSticky($document, $mdConstant, $compile, $$rAF, $mdUtil) {
-
- var browserStickySupport = checkStickySupport();
-
- /**
- * Registers an element as sticky, used internally by directives to register themselves
- */
- return function registerStickyElement(scope, element, stickyClone) {
- var contentCtrl = element.controller('mdContent');
- if (!contentCtrl) return;
-
- if (browserStickySupport) {
- element.css({
- position: browserStickySupport,
- top: 0,
- 'z-index': 2
- });
- } else {
- var $$sticky = contentCtrl.$element.data('$$sticky');
- if (!$$sticky) {
- $$sticky = setupSticky(contentCtrl);
- contentCtrl.$element.data('$$sticky', $$sticky);
- }
-
- var deregister = $$sticky.add(element, stickyClone || element.clone());
- scope.$on('$destroy', deregister);
- }
- };
-
- function setupSticky(contentCtrl) {
- var contentEl = contentCtrl.$element;
-
- // Refresh elements is very expensive, so we use the debounced
- // version when possible.
- var debouncedRefreshElements = $$rAF.throttle(refreshElements);
-
- // setupAugmentedScrollEvents gives us `$scrollstart` and `$scroll`,
- // more reliable than `scroll` on android.
- setupAugmentedScrollEvents(contentEl);
- contentEl.on('$scrollstart', debouncedRefreshElements);
- contentEl.on('$scroll', onScroll);
-
- var self;
- var stickyBaseoffset = contentEl.prop('offsetTop');
- return self = {
- prev: null,
- current: null, //the currently stickied item
- next: null,
- items: [],
- add: add,
- refreshElements: refreshElements
- };
-
- /***************
- * Public
- ***************/
- // Add an element and its sticky clone to this content's sticky collection
- function add(element, stickyClone) {
- stickyClone.addClass('md-sticky-clone');
- stickyClone.css('top', stickyBaseoffset + 'px');
-
- var item = {
- element: element,
- clone: stickyClone
- };
- self.items.push(item);
-
- contentEl.parent().prepend(item.clone);
-
- debouncedRefreshElements();
-
- return function remove() {
- self.items.forEach(function(item, index) {
- if (item.element[0] === element[0]) {
- self.items.splice(index, 1);
- item.clone.remove();
- }
- });
- debouncedRefreshElements();
- };
- }
-
- function refreshElements() {
- // Sort our collection of elements by their current position in the DOM.
- // We need to do this because our elements' order of being added may not
- // be the same as their order of display.
- self.items.forEach(refreshPosition);
- self.items = self.items.sort(function(a, b) {
- return a.top < b.top ? -1 : 1;
- });
-
- // Find which item in the list should be active,
- // based upon the content's current scroll position
- var item;
- var currentScrollTop = contentEl.prop('scrollTop');
- for (var i = self.items.length - 1; i >= 0; i--) {
- if (currentScrollTop > self.items[i].top) {
- item = self.items[i];
- break;
- }
- }
- setCurrentItem(item);
- }
-
-
- /***************
- * Private
- ***************/
-
- // Find the `top` of an item relative to the content element,
- // and also the height.
- function refreshPosition(item) {
- // Find the top of an item by adding to the offsetHeight until we reach the
- // content element.
- var current = item.element[0];
- item.top = 0;
- item.left = 0;
- while (current && current !== contentEl[0]) {
- item.top += current.offsetTop;
- item.left += current.offsetLeft;
- current = current.offsetParent;
- }
- item.height = item.element.prop('offsetHeight');
- item.clone.css('margin-left', item.left + 'px');
- if ($mdUtil.floatingScrollbars()) {
- item.clone.css('margin-right', '0');
- }
- }
-
-
- // As we scroll, push in and select the correct sticky element.
- function onScroll() {
- var scrollTop = contentEl.prop('scrollTop');
- var isScrollingDown = scrollTop > (onScroll.prevScrollTop || 0);
- onScroll.prevScrollTop = scrollTop;
-
- // At the top?
- if (scrollTop === 0) {
- setCurrentItem(null);
-
- // Going to next item?
- } else if (isScrollingDown && self.next) {
- if (self.next.top - scrollTop <= 0) {
- // Sticky the next item if we've scrolled past its position.
- setCurrentItem(self.next);
- } else if (self.current) {
- // Push the current item up when we're almost at the next item.
- if (self.next.top - scrollTop <= self.next.height) {
- translate(self.current, self.next.top - self.next.height - scrollTop);
- } else {
- translate(self.current, null);
- }
- }
-
- // Scrolling up with a current sticky item?
- } else if (!isScrollingDown && self.current) {
- if (scrollTop < self.current.top) {
- // Sticky the previous item if we've scrolled up past
- // the original position of the currently stickied item.
- setCurrentItem(self.prev);
- }
- // Scrolling up, and just bumping into the item above (just set to current)?
- // If we have a next item bumping into the current item, translate
- // the current item up from the top as it scrolls into view.
- if (self.current && self.next) {
- if (scrollTop >= self.next.top - self.current.height) {
- translate(self.current, self.next.top - scrollTop - self.current.height);
- } else {
- translate(self.current, null);
- }
- }
- }
- }
-
- function setCurrentItem(item) {
- if (self.current === item) return;
- // Deactivate currently active item
- if (self.current) {
- translate(self.current, null);
- setStickyState(self.current, null);
- }
-
- // Activate new item if given
- if (item) {
- setStickyState(item, 'active');
- }
-
- self.current = item;
- var index = self.items.indexOf(item);
- // If index === -1, index + 1 = 0. It works out.
- self.next = self.items[index + 1];
- self.prev = self.items[index - 1];
- setStickyState(self.next, 'next');
- setStickyState(self.prev, 'prev');
- }
-
- function setStickyState(item, state) {
- if (!item || item.state === state) return;
- if (item.state) {
- item.clone.attr('sticky-prev-state', item.state);
- item.element.attr('sticky-prev-state', item.state);
- }
- item.clone.attr('sticky-state', state);
- item.element.attr('sticky-state', state);
- item.state = state;
- }
-
- function translate(item, amount) {
- if (!item) return;
- if (amount === null || amount === undefined) {
- if (item.translateY) {
- item.translateY = null;
- item.clone.css($mdConstant.CSS.TRANSFORM, '');
- }
- } else {
- item.translateY = amount;
- item.clone.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(' + item.left + 'px,' + amount + 'px,0)'
- );
- }
- }
- }
-
- // Function to check for browser sticky support
- function checkStickySupport($el) {
- var stickyProp;
- var testEl = angular.element('<div>');
- $document[0].body.appendChild(testEl[0]);
-
- var stickyProps = ['sticky', '-webkit-sticky'];
- for (var i = 0; i < stickyProps.length; ++i) {
- testEl.css({position: stickyProps[i], top: 0, 'z-index': 2});
- if (testEl.css('position') == stickyProps[i]) {
- stickyProp = stickyProps[i];
- break;
- }
- }
- testEl.remove();
- return stickyProp;
- }
-
- // Android 4.4 don't accurately give scroll events.
- // To fix this problem, we setup a fake scroll event. We say:
- // > If a scroll or touchmove event has happened in the last DELAY milliseconds,
- // then send a `$scroll` event every animationFrame.
- // Additionally, we add $scrollstart and $scrollend events.
- function setupAugmentedScrollEvents(element) {
- var SCROLL_END_DELAY = 200;
- var isScrolling;
- var lastScrollTime;
- element.on('scroll touchmove', function() {
- if (!isScrolling) {
- isScrolling = true;
- $$rAF(loopScrollEvent);
- element.triggerHandler('$scrollstart');
- }
- element.triggerHandler('$scroll');
- lastScrollTime = +$mdUtil.now();
- });
-
- function loopScrollEvent() {
- if (+$mdUtil.now() - lastScrollTime > SCROLL_END_DELAY) {
- isScrolling = false;
- element.triggerHandler('$scrollend');
- } else {
- element.triggerHandler('$scroll');
- $$rAF(loopScrollEvent);
- }
- }
- }
-
-}
-MdSticky.$inject = ["$document", "$mdConstant", "$compile", "$$rAF", "$mdUtil"];
-
-ng.material.components.sticky = angular.module("material.components.sticky"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader-default-theme.css
deleted file mode 100644
index 426a24d2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader-default-theme.css
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-subheader.md-THEME_NAME-theme {
- color: '{{ foreground-2-0.23 }}';
- background-color: '{{background-color}}'; }
- .md-subheader.md-THEME_NAME-theme.md-primary {
- color: '{{primary-color}}'; }
- .md-subheader.md-THEME_NAME-theme.md-accent {
- color: '{{accent-color}}'; }
- .md-subheader.md-THEME_NAME-theme.md-warn {
- color: '{{warn-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader.css
deleted file mode 100644
index b134d795..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader.css
+++ /dev/null
@@ -1,63 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes subheaderStickyHoverIn {
- 0% {
- box-shadow: 0 0 0 0 transparent; }
-
- 100% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
-@keyframes subheaderStickyHoverIn {
- 0% {
- box-shadow: 0 0 0 0 transparent; }
-
- 100% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
-
-@-webkit-keyframes subheaderStickyHoverOut {
- 0% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
-
- 100% {
- box-shadow: 0 0 0 0 transparent; } }
-
-@keyframes subheaderStickyHoverOut {
- 0% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
-
- 100% {
- box-shadow: 0 0 0 0 transparent; } }
-
-.md-subheader {
- display: block;
- font-size: 14px;
- font-weight: 500;
- line-height: 1em;
- margin: 0 0 0 0;
- margin-right: 16px;
- position: relative; }
- .md-subheader .md-subheader-inner {
- padding: 16px 0px 16px 16px; }
- .md-subheader:not(.md-sticky-no-effect) {
- transition: 0.2s ease-out margin; }
- .md-subheader:not(.md-sticky-no-effect):after {
- position: absolute;
- left: 0;
- bottom: 0;
- top: 0;
- right: -16px;
- content: ''; }
- .md-subheader:not(.md-sticky-no-effect).md-sticky-clone {
- z-index: 2; }
- .md-subheader:not(.md-sticky-no-effect)[sticky-state="active"] {
- margin-top: -2px; }
- .md-subheader:not(.md-sticky-no-effect):not(.md-sticky-clone)[sticky-prev-state="active"] .md-subheader-inner:after {
- -webkit-animation: subheaderStickyHoverOut 0.3s ease-out both;
- animation: subheaderStickyHoverOut 0.3s ease-out both; }
- .md-subheader .md-subheader-content {
- z-index: 1;
- position: relative; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader.js
deleted file mode 100644
index 8442cf32..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/subheader/subheader.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.subheader');
-goog.require('ng.material.components.sticky');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.subheader
- * @description
- * SubHeader module
- *
- * Subheaders are special list tiles that delineate distinct sections of a
- * list or grid list and are typically related to the current filtering or
- * sorting criteria. Subheader tiles are either displayed inline with tiles or
- * can be associated with content, for example, in an adjacent column.
- *
- * Upon scrolling, subheaders remain pinned to the top of the screen and remain
- * pinned until pushed on or off screen by the next subheader. @see [Material
- * Design Specifications](https://www.google.com/design/spec/components/subheaders.html)
- *
- * > To improve the visual grouping of content, use the system color for your subheaders.
- *
- */
-angular.module('material.components.subheader', [
- 'material.core',
- 'material.components.sticky'
-])
- .directive('mdSubheader', MdSubheaderDirective);
-
-/**
- * @ngdoc directive
- * @name mdSubheader
- * @module material.components.subheader
- *
- * @restrict E
- *
- * @description
- * The `<md-subheader>` directive is a subheader for a section. By default it is sticky.
- * You can make it not sticky by applying the `md-no-sticky` class to the subheader.
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-subheader>Online Friends</md-subheader>
- * </hljs>
- */
-
-function MdSubheaderDirective($mdSticky, $compile, $mdTheming) {
- return {
- restrict: 'E',
- replace: true,
- transclude: true,
- template:
- '<h2 class="md-subheader">' +
- '<div class="md-subheader-inner">' +
- '<span class="md-subheader-content"></span>' +
- '</div>' +
- '</h2>',
- compile: function(element, attr, transclude) {
- return function postLink(scope, element, attr) {
- $mdTheming(element);
- var outerHTML = element[0].outerHTML;
-
- function getContent(el) {
- return angular.element(el[0].querySelector('.md-subheader-content'));
- }
-
- // Transclude the user-given contents of the subheader
- // the conventional way.
- transclude(scope, function(clone) {
- getContent(element).append(clone);
- });
-
- // Create another clone, that uses the outer and inner contents
- // of the element, that will be 'stickied' as the user scrolls.
- if (!element.hasClass('md-no-sticky')) {
- transclude(scope, function(clone) {
- var stickyClone = $compile(angular.element(outerHTML))(scope);
- getContent(stickyClone).append(clone);
- $mdSticky(scope, element, stickyClone);
- });
- }
- };
- }
- };
-}
-MdSubheaderDirective.$inject = ["$mdSticky", "$compile", "$mdTheming"];
-
-ng.material.components.subheader = angular.module("material.components.subheader"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/swipe/swipe.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/swipe/swipe.js
deleted file mode 100644
index 294b396d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/swipe/swipe.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.swipe');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.swipe
- * @description Swipe module!
- */
-/**
- * @ngdoc directive
- * @module material.components.swipe
- * @name mdSwipeLeft
- *
- * @restrict A
- *
- * @description
- * The md-swipe-left directives allows you to specify custom behavior when an element is swiped
- * left.
- *
- * @usage
- * <hljs lang="html">
- * <div md-swipe-left="onSwipeLeft()">Swipe me left!</div>
- * </hljs>
- */
-/**
- * @ngdoc directive
- * @module material.components.swipe
- * @name mdSwipeRight
- *
- * @restrict A
- *
- * @description
- * The md-swipe-right directives allows you to specify custom behavior when an element is swiped
- * right.
- *
- * @usage
- * <hljs lang="html">
- * <div md-swipe-right="onSwipeRight()">Swipe me right!</div>
- * </hljs>
- */
-
-angular.module('material.components.swipe', ['material.core'])
- .directive('mdSwipeLeft', getDirective('SwipeLeft'))
- .directive('mdSwipeRight', getDirective('SwipeRight'));
-
-function getDirective(name) {
- var directiveName = 'md' + name;
- var eventName = '$md.' + name.toLowerCase();
-
- DirectiveFactory.$inject = ["$parse"];
- return DirectiveFactory;
-
- /* ngInject */
- function DirectiveFactory($parse) {
- return { restrict: 'A', link: postLink };
- function postLink(scope, element, attr) {
- var fn = $parse(attr[directiveName]);
- element.on(eventName, function(ev) {
- scope.$apply(function() { fn(scope, { $event: ev }); });
- });
- }
- }
-}
-
-
-
-ng.material.components.swipe = angular.module("material.components.swipe"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch-default-theme.css
deleted file mode 100644
index 087b5383..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch-default-theme.css
+++ /dev/null
@@ -1,33 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-switch.md-THEME_NAME-theme .md-thumb {
- background-color: '{{background-50}}'; }
-md-switch.md-THEME_NAME-theme .md-bar {
- background-color: '{{background-500}}'; }
-md-switch.md-THEME_NAME-theme.md-checked .md-thumb {
- background-color: '{{accent-color}}'; }
-md-switch.md-THEME_NAME-theme.md-checked .md-bar {
- background-color: '{{accent-color-0.5}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before {
- background-color: '{{accent-color-0.26}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb {
- background-color: '{{primary-color}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar {
- background-color: '{{primary-color-0.5}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before {
- background-color: '{{primary-color-0.26}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb {
- background-color: '{{warn-color}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar {
- background-color: '{{warn-color-0.5}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before {
- background-color: '{{warn-color-0.26}}'; }
-md-switch.md-THEME_NAME-theme[disabled] .md-thumb {
- background-color: '{{background-400}}'; }
-md-switch.md-THEME_NAME-theme[disabled] .md-bar {
- background-color: '{{foreground-4}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch.css
deleted file mode 100644
index af4314ae..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch.css
+++ /dev/null
@@ -1,110 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-switch {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- margin: 15px;
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none; }
- md-switch .md-container {
- cursor: -webkit-grab;
- cursor: grab;
- width: 36px;
- height: 24px;
- position: relative;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- margin-right: 8px; }
- md-switch:not([disabled]) .md-dragging, md-switch:not([disabled]).md-dragging .md-container {
- cursor: -webkit-grabbing;
- cursor: grabbing; }
- md-switch.md-focused:not([disabled]) .md-thumb:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
- md-switch.md-focused:not([disabled]):not(.md-checked) .md-thumb:before {
- background-color: rgba(0, 0, 0, 0.12); }
- md-switch .md-label {
- border-color: transparent;
- border-width: 0; }
- md-switch .md-bar {
- left: 1px;
- width: 34px;
- top: 5px;
- height: 14px;
- border-radius: 8px;
- position: absolute; }
- md-switch .md-thumb-container {
- top: 2px;
- left: 0;
- width: 16px;
- position: absolute;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- z-index: 1; }
- md-switch.md-checked .md-thumb-container {
- -webkit-transform: translate3d(100%, 0, 0);
- transform: translate3d(100%, 0, 0); }
- md-switch .md-thumb {
- position: absolute;
- margin: 0;
- left: 0;
- top: 0;
- outline: none;
- height: 20px;
- width: 20px;
- border-radius: 50%;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
- md-switch .md-thumb:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-switch .md-thumb .md-ripple-container {
- position: absolute;
- display: block;
- width: auto;
- height: auto;
- left: -20px;
- top: -20px;
- right: -20px;
- bottom: -20px; }
- md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb-container, md-switch:not(.md-dragging) .md-thumb {
- transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition-property: -webkit-transform, background-color;
- transition-property: transform, background-color; }
- md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb {
- transition-delay: 0.05s; }
-
-@media screen and (-ms-high-contrast: active) {
- md-switch.md-default-theme .md-bar {
- background-color: #666; }
- md-switch.md-default-theme.md-checked .md-bar {
- background-color: #9E9E9E; }
- md-switch.md-default-theme .md-thumb {
- background-color: #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch.js
deleted file mode 100644
index 7fc6edcb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/switch/switch.js
+++ /dev/null
@@ -1,169 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.switch');
-goog.require('ng.material.components.checkbox');
-goog.require('ng.material.core');
-/**
- * @private
- * @ngdoc module
- * @name material.components.switch
- */
-
-angular.module('material.components.switch', [
- 'material.core',
- 'material.components.checkbox'
-])
- .directive('mdSwitch', MdSwitch);
-
-/**
- * @private
- * @ngdoc directive
- * @module material.components.switch
- * @name mdSwitch
- * @restrict E
- *
- * The switch directive is used very much like the normal [angular checkbox](https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D).
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the switch is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {expression=} ng-true-value The value to which the expression should be set when selected.
- * @param {expression=} ng-false-value The value to which the expression should be set when not selected.
- * @param {string=} ng-change Angular expression to be executed when input changes due to user interaction with the input element.
- * @param {boolean=} md-no-ink Use of attribute indicates use of ripple ink effects.
- * @param {string=} aria-label Publish the button label used by screen-readers for accessibility. Defaults to the switch's text.
- *
- * @usage
- * <hljs lang="html">
- * <md-switch ng-model="isActive" aria-label="Finished?">
- * Finished ?
- * </md-switch>
- *
- * <md-switch md-no-ink ng-model="hasInk" aria-label="No Ink Effects">
- * No Ink Effects
- * </md-switch>
- *
- * <md-switch ng-disabled="true" ng-model="isDisabled" aria-label="Disabled">
- * Disabled
- * </md-switch>
- *
- * </hljs>
- */
-function MdSwitch(mdCheckboxDirective, $mdTheming, $mdUtil, $document, $mdConstant, $parse, $$rAF, $mdGesture) {
- var checkboxDirective = mdCheckboxDirective[0];
-
- return {
- restrict: 'E',
- priority:210, // Run before ngAria
- transclude: true,
- template:
- '<div class="md-container">' +
- '<div class="md-bar"></div>' +
- '<div class="md-thumb-container">' +
- '<div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div>' +
- '</div>'+
- '</div>' +
- '<div ng-transclude class="md-label">' +
- '</div>',
- require: '?ngModel',
- compile: compile
- };
-
- function compile(element, attr) {
- var checkboxLink = checkboxDirective.compile(element, attr);
- // no transition on initial load
- element.addClass('md-dragging');
-
- return function (scope, element, attr, ngModel) {
- ngModel = ngModel || $mdUtil.fakeNgModel();
- var disabledGetter = $parse(attr.ngDisabled);
- var thumbContainer = angular.element(element[0].querySelector('.md-thumb-container'));
- var switchContainer = angular.element(element[0].querySelector('.md-container'));
-
- // no transition on initial load
- $$rAF(function() {
- element.removeClass('md-dragging');
- });
-
- checkboxLink(scope, element, attr, ngModel);
-
- if (angular.isDefined(attr.ngDisabled)) {
- scope.$watch(disabledGetter, function(isDisabled) {
- element.attr('tabindex', isDisabled ? -1 : 0);
- });
- }
-
- // These events are triggered by setup drag
- $mdGesture.register(switchContainer, 'drag');
- switchContainer
- .on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- var drag;
- function onDragStart(ev) {
- // Don't go if ng-disabled===true
- if (disabledGetter(scope)) return;
- ev.stopPropagation();
-
- element.addClass('md-dragging');
- drag = {
- width: thumbContainer.prop('offsetWidth')
- };
- element.removeClass('transition');
- }
-
- function onDrag(ev) {
- if (!drag) return;
- ev.stopPropagation();
- ev.srcEvent && ev.srcEvent.preventDefault();
-
- var percent = ev.pointer.distanceX / drag.width;
-
- //if checked, start from right. else, start from left
- var translate = ngModel.$viewValue ? 1 + percent : percent;
- // Make sure the switch stays inside its bounds, 0-1%
- translate = Math.max(0, Math.min(1, translate));
-
- thumbContainer.css($mdConstant.CSS.TRANSFORM, 'translate3d(' + (100*translate) + '%,0,0)');
- drag.translate = translate;
- }
-
- function onDragEnd(ev) {
- if (!drag) return;
- ev.stopPropagation();
-
- element.removeClass('md-dragging');
- thumbContainer.css($mdConstant.CSS.TRANSFORM, '');
-
- // We changed if there is no distance (this is a click a click),
- // or if the drag distance is >50% of the total.
- var isChanged = ngModel.$viewValue ? drag.translate < 0.5 : drag.translate > 0.5;
- if (isChanged) {
- applyModelValue(!ngModel.$viewValue);
- }
- drag = null;
- }
-
- function applyModelValue(newValue) {
- scope.$apply(function() {
- ngModel.$setViewValue(newValue);
- ngModel.$render();
- });
- }
-
- };
- }
-
-
-}
-MdSwitch.$inject = ["mdCheckboxDirective", "$mdTheming", "$mdUtil", "$document", "$mdConstant", "$parse", "$$rAF", "$mdGesture"];
-
-ng.material.components.switch = angular.module("material.components.switch"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs-arrow.svg b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs-arrow.svg
deleted file mode 100644
index 81582f8e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs-arrow.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.7.1-master-b48be15
- */
-<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"> <g id="Header"> <g> <rect x="-618" y="-1208" fill="none" width="1400" height="3600"/> </g> </g> <g id="Label"> </g> <g id="Icon"> <g> <polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 " style="fill:white;"/> <rect fill="none" width="24" height="24"/> </g> </g> <g id="Grid" display="none"> <g display="inline"> </g> </g> </svg>
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs-default-theme.css
deleted file mode 100644
index 8af08b30..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs-default-theme.css
+++ /dev/null
@@ -1,82 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
- background-color: transparent;
- border-color: '{{foreground-4}}'; }
-md-tabs.md-THEME_NAME-theme .md-paginator md-icon {
- color: '{{primary-color}}'; }
-md-tabs.md-THEME_NAME-theme md-ink-bar {
- color: '{{accent-color}}';
- background: '{{accent-color}}'; }
-md-tabs.md-THEME_NAME-theme .md-tab {
- color: '{{foreground-2}}'; }
- md-tabs.md-THEME_NAME-theme .md-tab[disabled] {
- color: '{{foreground-3}}'; }
- md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused {
- color: '{{primary-color}}'; }
- md-tabs.md-THEME_NAME-theme .md-tab.md-focused {
- background: '{{primary-color-0.1}}'; }
- md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container {
- color: '{{accent-100}}'; }
-md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper {
- background-color: '{{accent-color}}'; }
-md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) {
- color: '{{accent-100}}'; }
- md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused {
- color: '{{accent-contrast}}'; }
- md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused {
- background: '{{accent-contrast-0.1}}'; }
-md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar {
- color: '{{primary-600-1}}';
- background: '{{primary-600-1}}'; }
-md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper {
- background-color: '{{primary-color}}'; }
-md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) {
- color: '{{primary-100}}'; }
- md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused {
- color: '{{primary-contrast}}'; }
- md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused {
- background: '{{primary-contrast-0.1}}'; }
-md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper {
- background-color: '{{warn-color}}'; }
-md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) {
- color: '{{warn-100}}'; }
- md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused {
- color: '{{warn-contrast}}'; }
- md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused {
- background: '{{warn-contrast-0.1}}'; }
-
-md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
- background-color: '{{primary-color}}'; }
-md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) {
- color: '{{primary-100}}'; }
- md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- color: '{{primary-contrast}}'; }
- md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- background: '{{primary-contrast-0.1}}'; }
-
-md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
- background-color: '{{accent-color}}'; }
-md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) {
- color: '{{accent-100}}'; }
- md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- color: '{{accent-contrast}}'; }
- md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- background: '{{accent-contrast-0.1}}'; }
-md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar {
- color: '{{primary-600-1}}';
- background: '{{primary-600-1}}'; }
-
-md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
- background-color: '{{warn-color}}'; }
-md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) {
- color: '{{warn-100}}'; }
- md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- color: '{{warn-contrast}}'; }
- md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- background: '{{warn-contrast-0.1}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs.css
deleted file mode 100644
index fbd4539e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs.css
+++ /dev/null
@@ -1,272 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes md-tab-content-hide {
- 0% {
- opacity: 1; }
-
- 50% {
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-@keyframes md-tab-content-hide {
- 0% {
- opacity: 1; }
-
- 50% {
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-
-md-tab-data {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: -1;
- opacity: 0; }
-
-md-tabs {
- display: block;
- margin: 0;
- border-radius: 2px;
- overflow: hidden;
- position: relative;
- -webkit-flex-shrink: 0;
- -ms-flex-negative: 0;
- flex-shrink: 0; }
- md-tabs.ng-animate {
- transition: height 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-tabs:not(.md-no-tab-content):not([md-dynamic-height]) {
- min-height: 248px; }
- md-tabs[md-align-tabs="bottom"] md-tabs-wrapper {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- height: 48px; }
- md-tabs[md-align-tabs="bottom"] md-tabs-content-wrapper {
- top: 0;
- bottom: 48px; }
- md-tabs[md-dynamic-height] md-tabs-content-wrapper {
- min-height: 0;
- position: relative;
- top: auto;
- left: auto;
- right: auto;
- bottom: auto;
- overflow: visible; }
- md-tabs[md-dynamic-height] md-tab-content.md-active {
- position: relative; }
- md-tabs[md-border-bottom] md-tabs-wrapper {
- border-width: 0 0 1px;
- border-style: solid; }
- md-tabs[md-border-bottom] md-tabs-wrapper .md-tab {
- padding-bottom: 11px; }
- md-tabs[md-border-bottom]:not([md-dynamic-height]) md-tabs-content-wrapper {
- top: 49px; }
-
-md-tabs-wrapper {
- display: block;
- position: relative; }
- md-tabs-wrapper md-prev-button, md-tabs-wrapper md-next-button {
- height: 100%;
- width: 32px;
- position: absolute;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- line-height: 1em;
- z-index: 2;
- cursor: pointer;
- font-size: 16px;
- background: transparent no-repeat center center;
- transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-tabs-wrapper md-prev-button:focus, md-tabs-wrapper md-next-button:focus {
- outline: none; }
- md-tabs-wrapper md-prev-button.md-disabled, md-tabs-wrapper md-next-button.md-disabled {
- opacity: 0.25;
- cursor: default; }
- md-tabs-wrapper md-prev-button.ng-leave, md-tabs-wrapper md-next-button.ng-leave {
- transition: none; }
- md-tabs-wrapper md-prev-button md-icon, md-tabs-wrapper md-next-button md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0); }
- md-tabs-wrapper md-prev-button {
- left: 0;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMjA4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyIAkJIiBzdHlsZT0iZmlsbDp3aGl0ZTsiLz4gPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+IDwvZz4gPC9nPiA8ZyBpZD0iR3JpZCIgZGlzcGxheT0ibm9uZSI+IDxnIGRpc3BsYXk9ImlubGluZSI+IDwvZz4gPC9nPiA8L3N2Zz4NCg=='); }
- md-tabs-wrapper md-next-button {
- right: 0;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMzM2IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTAsNiA4LjYsNy40IDEzLjIsMTIgOC42LDE2LjYgMTAsMTggMTYsMTIgCQkiIHN0eWxlPSJmaWxsOndoaXRlOyIvPiA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4gPC9nPiA8L2c+IDxnIGlkPSJHcmlkIiBkaXNwbGF5PSJub25lIj4gPGcgZGlzcGxheT0iaW5saW5lIj4gPC9nPiA8L2c+IDwvc3ZnPg0K'); }
- md-tabs-wrapper md-next-button md-icon {
- -webkit-transform: translate3d(-50%, -50%, 0) rotate(180deg);
- transform: translate3d(-50%, -50%, 0) rotate(180deg); }
- md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper {
- width: 100%;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper md-tab-item {
- -webkit-flex-grow: 1;
- -ms-flex-positive: 1;
- flex-grow: 1; }
-
-md-tabs-canvas {
- position: relative;
- overflow: hidden;
- display: block;
- height: 48px; }
- md-tabs-canvas:after {
- content: '';
- display: table;
- clear: both; }
- md-tabs-canvas .md-dummy-wrapper {
- position: absolute;
- top: 0;
- left: 0; }
- md-tabs-canvas.md-paginated {
- margin: 0 32px; }
- md-tabs-canvas.md-center-tabs {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
-
-md-pagination-wrapper {
- height: 48px;
- display: block;
- transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- position: absolute;
- width: 999999px;
- left: 0;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-pagination-wrapper:after {
- content: '';
- display: table;
- clear: both; }
- md-pagination-wrapper.md-center-tabs {
- position: relative;
- width: initial;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- margin: 0 auto; }
-
-md-tabs-content-wrapper {
- display: block;
- position: absolute;
- top: 48px;
- left: 0;
- right: 0;
- bottom: 0;
- overflow: hidden; }
-
-md-tab-content {
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- -webkit-transform: translateX(0);
- transform: translateX(0);
- transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- overflow: auto; }
- md-tab-content.md-no-scroll {
- bottom: auto;
- overflow: hidden; }
- md-tab-content.ng-leave, md-tab-content.md-no-transition {
- transition: none; }
- md-tab-content.md-left {
- -webkit-transform: translateX(-100%);
- transform: translateX(-100%);
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide;
- opacity: 0; }
- md-tab-content.md-left * {
- transition: visibility 0s linear;
- transition-delay: 0.5s;
- visibility: hidden; }
- md-tab-content.md-right {
- -webkit-transform: translateX(100%);
- transform: translateX(100%);
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide;
- opacity: 0; }
- md-tab-content.md-right * {
- transition: visibility 0s linear;
- transition-delay: 0.5s;
- visibility: hidden; }
- md-tab-content > div.ng-leave {
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide; }
-
-md-ink-bar {
- position: absolute;
- left: auto;
- right: auto;
- bottom: 0;
- height: 2px; }
- md-ink-bar.md-left {
- transition: left 0.225s cubic-bezier(0.35, 0, 0.25, 1), right 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-ink-bar.md-right {
- transition: left 0.5s cubic-bezier(0.35, 0, 0.25, 1), right 0.225s cubic-bezier(0.35, 0, 0.25, 1); }
-
-md-tab {
- position: absolute;
- z-index: -1;
- left: -9999px; }
-
-.md-tab {
- font-size: 14px;
- text-align: center;
- line-height: 24px;
- padding: 12px 24px;
- transition: background-color 0.35s cubic-bezier(0.35, 0, 0.25, 1);
- cursor: pointer;
- white-space: nowrap;
- position: relative;
- text-transform: uppercase;
- float: left;
- font-weight: 500;
- box-sizing: border-box; }
- .md-tab.md-focused {
- box-shadow: none;
- outline: none; }
- .md-tab.md-active {
- cursor: default; }
- .md-tab.md-disabled {
- pointer-events: none;
- -ms-touch-action: pan-y;
- touch-action: pan-y;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-user-drag: none;
- opacity: 0.5;
- cursor: default; }
- .md-tab.ng-leave {
- transition: none; }
-
-md-toolbar + md-tabs {
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs.js
deleted file mode 100644
index 95117604..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tabs/tabs.js
+++ /dev/null
@@ -1,867 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.tabs');
-goog.require('ng.material.components.icon');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.tabs
- * @description
- *
- * Tabs, created with the `<md-tabs>` directive provide *tabbed* navigation with different styles.
- * The Tabs component consists of clickable tabs that are aligned horizontally side-by-side.
- *
- * Features include support for:
- *
- * - static or dynamic tabs,
- * - responsive designs,
- * - accessibility support (ARIA),
- * - tab pagination,
- * - external or internal tab content,
- * - focus indicators and arrow-key navigations,
- * - programmatic lookup and access to tab controllers, and
- * - dynamic transitions through different tab contents.
- *
- */
-/*
- * @see js folder for tabs implementation
- */
-angular.module('material.components.tabs', [
- 'material.core',
- 'material.components.icon'
-]);
-
-/**
- * @ngdoc directive
- * @name mdTab
- * @module material.components.tabs
- *
- * @restrict E
- *
- * @description
- * Use the `<md-tab>` a nested directive used within `<md-tabs>` to specify a tab with a **label** and optional *view content*.
- *
- * If the `label` attribute is not specified, then an optional `<md-tab-label>` tag can be used to specify more
- * complex tab header markup. If neither the **label** nor the **md-tab-label** are specified, then the nested
- * markup of the `<md-tab>` is used as the tab header markup.
- *
- * Please note that if you use `<md-tab-label>`, your content **MUST** be wrapped in the `<md-tab-body>` tag. This
- * is to define a clear separation between the tab content and the tab label.
- *
- * If a tab **label** has been identified, then any **non-**`<md-tab-label>` markup
- * will be considered tab content and will be transcluded to the internal `<div class="md-tabs-content">` container.
- *
- * This container is used by the TabsController to show/hide the active tab's content view. This synchronization is
- * automatically managed by the internal TabsController whenever the tab selection changes. Selection changes can
- * be initiated via data binding changes, programmatic invocation, or user gestures.
- *
- * @param {string=} label Optional attribute to specify a simple string as the tab label
- * @param {boolean=} disabled If present, disabled tab selection.
- * @param {expression=} md-on-deselect Expression to be evaluated after the tab has been de-selected.
- * @param {expression=} md-on-select Expression to be evaluated after the tab has been selected.
- *
- *
- * @usage
- *
- * <hljs lang="html">
- * <md-tab label="" disabled="" md-on-select="" md-on-deselect="" >
- * <h3>My Tab content</h3>
- * </md-tab>
- *
- * <md-tab >
- * <md-tab-label>
- * <h3>My Tab content</h3>
- * </md-tab-label>
- * <md-tab-body>
- * <p>
- * Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
- * totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
- * dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
- * sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
- * </p>
- * </md-tab-body>
- * </md-tab>
- * </hljs>
- *
- */
-angular
- .module('material.components.tabs')
- .directive('mdTab', MdTab);
-
-function MdTab () {
- return {
- require: '^?mdTabs',
- terminal: true,
- template: function (element, attr) {
- var label = getLabel(),
- body = getTemplate();
- return '' +
- '<md-tab-label>' + label + '</md-tab-label>' +
- '<md-tab-body>' + body + '</md-tab-body>';
- function getLabel () {
- return getLabelElement() || getLabelAttribute() || getElementContents();
- function getLabelAttribute () { return attr.label; }
- function getLabelElement () {
- var label = element.find('md-tab-label');
- if (label.length) return label.remove().html();
- }
- function getElementContents () {
- var html = element.html();
- element.empty();
- return html;
- }
- }
- function getTemplate () {
- var content = element.find('md-tab-body'),
- template = content.length ? content.html() : attr.label ? element.html() : '';
- if (content.length) content.remove();
- else if (attr.label) element.empty();
- return template;
- }
- },
- scope: {
- active: '=?mdActive',
- disabled: '=?ngDisabled',
- select: '&?mdOnSelect',
- deselect: '&?mdOnDeselect'
- },
- link: postLink
- };
-
- function postLink (scope, element, attr, ctrl) {
- if (!ctrl) return;
- var tabs = element.parent()[0].getElementsByTagName('md-tab'),
- index = Array.prototype.indexOf.call(tabs, element[0]),
- body = element.find('md-tab-body').remove(),
- label = element.find('md-tab-label').remove(),
- data = ctrl.insertTab({
- scope: scope,
- parent: scope.$parent,
- index: index,
- element: element,
- template: body.html(),
- label: label.html()
- }, index);
-
- scope.select = scope.select || angular.noop;
- scope.deselect = scope.deselect || angular.noop;
-
- scope.$watch('active', function (active) { if (active) ctrl.select(data.getIndex()); });
- scope.$watch('disabled', function () { ctrl.refreshIndex(); });
- scope.$watch(
- function () {
- return Array.prototype.indexOf.call(tabs, element[0]);
- },
- function (newIndex) {
- data.index = newIndex;
- ctrl.updateTabOrder();
- }
- );
- scope.$on('$destroy', function () { ctrl.removeTab(data); });
-
- }
-}
-
-angular
- .module('material.components.tabs')
- .directive('mdTabItem', MdTabItem);
-
-function MdTabItem () {
- return {
- require: '^?mdTabs',
- link: function link (scope, element, attr, ctrl) {
- if (!ctrl) return;
- ctrl.attachRipple(scope, element);
- }
- };
-}
-
-angular
- .module('material.components.tabs')
- .directive('mdTabLabel', MdTabLabel);
-
-function MdTabLabel () {
- return { terminal: true };
-}
-
-
-angular.module('material.components.tabs')
- .directive('mdTabScroll', MdTabScroll);
-
-function MdTabScroll ($parse) {
- return {
- restrict: 'A',
- compile: function ($element, attr) {
- var fn = $parse(attr.mdTabScroll, null, true);
- return function ngEventHandler (scope, element) {
- element.on('mousewheel', function (event) {
- scope.$apply(function () { fn(scope, { $event: event }); });
- });
- };
- }
- }
-}
-MdTabScroll.$inject = ["$parse"];
-
-angular
- .module('material.components.tabs')
- .controller('MdTabsController', MdTabsController);
-
-/**
- * ngInject
- */
-function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $mdTabInkRipple,
- $mdUtil, $animate) {
- var ctrl = this,
- locked = false,
- elements = getElements(),
- queue = [],
- destroyed = false;
-
- ctrl.scope = $scope;
- ctrl.parent = $scope.$parent;
- ctrl.tabs = [];
- ctrl.lastSelectedIndex = null;
- ctrl.focusIndex = $scope.selectedIndex || 0;
- ctrl.offsetLeft = 0;
- ctrl.hasContent = false;
- ctrl.hasFocus = false;
- ctrl.lastClick = true;
-
- ctrl.redirectFocus = redirectFocus;
- ctrl.attachRipple = attachRipple;
- ctrl.shouldStretchTabs = shouldStretchTabs;
- ctrl.shouldPaginate = shouldPaginate;
- ctrl.shouldCenterTabs = shouldCenterTabs;
- ctrl.insertTab = insertTab;
- ctrl.removeTab = removeTab;
- ctrl.select = select;
- ctrl.scroll = scroll;
- ctrl.nextPage = nextPage;
- ctrl.previousPage = previousPage;
- ctrl.keydown = keydown;
- ctrl.canPageForward = canPageForward;
- ctrl.canPageBack = canPageBack;
- ctrl.refreshIndex = refreshIndex;
- ctrl.incrementSelectedIndex = incrementSelectedIndex;
- ctrl.updateInkBarStyles = $mdUtil.debounce(updateInkBarStyles, 100);
- ctrl.updateTabOrder = $mdUtil.debounce(updateTabOrder, 100);
-
- init();
-
- function init () {
- $scope.$watch('selectedIndex', handleSelectedIndexChange);
- $scope.$watch('$mdTabsCtrl.focusIndex', handleFocusIndexChange);
- $scope.$watch('$mdTabsCtrl.offsetLeft', handleOffsetChange);
- $scope.$watch('$mdTabsCtrl.hasContent', handleHasContent);
- angular.element($window).on('resize', handleWindowResize);
- angular.element(elements.paging).on('DOMSubtreeModified', ctrl.updateInkBarStyles);
- $timeout(updateHeightFromContent, 0, false);
- $timeout(adjustOffset);
- $scope.$on('$destroy', cleanup);
- }
-
- function cleanup () {
- destroyed = true;
- angular.element($window).off('resize', handleWindowResize);
- angular.element(elements.paging).off('DOMSubtreeModified', ctrl.updateInkBarStyles);
- }
-
- //-- Change handlers
-
- function handleHasContent (hasContent) {
- $element[hasContent ? 'removeClass' : 'addClass']('md-no-tab-content');
- }
-
- function handleOffsetChange (left) {
- var newValue = shouldCenterTabs() ? '' : '-' + left + 'px';
- angular.element(elements.paging).css('transform', 'translate3d(' + newValue + ', 0, 0)');
- $scope.$broadcast('$mdTabsPaginationChanged');
- }
-
- function handleFocusIndexChange (newIndex, oldIndex) {
- if (newIndex === oldIndex) return;
- if (!elements.tabs[newIndex]) return;
- adjustOffset();
- redirectFocus();
- }
-
- function handleSelectedIndexChange (newValue, oldValue) {
- if (newValue === oldValue) return;
-
- $scope.selectedIndex = getNearestSafeIndex(newValue);
- ctrl.lastSelectedIndex = oldValue;
- ctrl.updateInkBarStyles();
- updateHeightFromContent();
- $scope.$broadcast('$mdTabsChanged');
- ctrl.tabs[oldValue] && ctrl.tabs[oldValue].scope.deselect();
- ctrl.tabs[newValue] && ctrl.tabs[newValue].scope.select();
- }
-
- function handleResizeWhenVisible () {
- //-- if there is already a watcher waiting for resize, do nothing
- if (handleResizeWhenVisible.watcher) return;
- //-- otherwise, we will abuse the $watch function to check for visible
- handleResizeWhenVisible.watcher = $scope.$watch(function () {
- //-- since we are checking for DOM size, we use $timeout to wait for after the DOM updates
- $timeout(function () {
- //-- if the watcher has already run (ie. multiple digests in one cycle), do nothing
- if (!handleResizeWhenVisible.watcher) return;
-
- if ($element.prop('offsetParent')) {
- handleResizeWhenVisible.watcher();
- handleResizeWhenVisible.watcher = null;
-
- //-- we have to trigger our own $apply so that the DOM bindings will update
- handleWindowResize();
- }
- }, 0, false);
- });
- }
-
- //-- Event handlers / actions
-
- function keydown (event) {
- switch (event.keyCode) {
- case $mdConstant.KEY_CODE.LEFT_ARROW:
- event.preventDefault();
- incrementSelectedIndex(-1, true);
- break;
- case $mdConstant.KEY_CODE.RIGHT_ARROW:
- event.preventDefault();
- incrementSelectedIndex(1, true);
- break;
- case $mdConstant.KEY_CODE.SPACE:
- case $mdConstant.KEY_CODE.ENTER:
- event.preventDefault();
- if (!locked) $scope.selectedIndex = ctrl.focusIndex;
- break;
- }
- ctrl.lastClick = false;
- }
-
- function select (index) {
- if (!locked) ctrl.focusIndex = $scope.selectedIndex = index;
- ctrl.lastClick = true;
- ctrl.tabs[index].element.triggerHandler('click');
- }
-
- function scroll (event) {
- if (!shouldPaginate()) return;
- event.preventDefault();
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft - event.wheelDelta);
- }
-
- function nextPage () {
- var viewportWidth = elements.canvas.clientWidth,
- totalWidth = viewportWidth + ctrl.offsetLeft,
- i, tab;
- for (i = 0; i < elements.tabs.length; i++) {
- tab = elements.tabs[i];
- if (tab.offsetLeft + tab.offsetWidth > totalWidth) break;
- }
- ctrl.offsetLeft = fixOffset(tab.offsetLeft);
- }
-
- function previousPage () {
- var i, tab;
- for (i = 0; i < elements.tabs.length; i++) {
- tab = elements.tabs[i];
- if (tab.offsetLeft + tab.offsetWidth >= ctrl.offsetLeft) break;
- }
- ctrl.offsetLeft = fixOffset(tab.offsetLeft + tab.offsetWidth - elements.canvas.clientWidth);
- }
-
- function handleWindowResize () {
- $scope.$apply(function () {
- ctrl.lastSelectedIndex = $scope.selectedIndex;
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft);
- $timeout(ctrl.updateInkBarStyles, 0, false);
- });
- }
-
- function removeTab (tabData) {
- var selectedIndex = $scope.selectedIndex,
- tab = ctrl.tabs.splice(tabData.getIndex(), 1)[0];
- refreshIndex();
- //-- when removing a tab, if the selected index did not change, we have to manually trigger the
- // tab select/deselect events
- if ($scope.selectedIndex === selectedIndex && !destroyed) {
- tab.scope.deselect();
- ctrl.tabs[$scope.selectedIndex] && ctrl.tabs[$scope.selectedIndex].scope.select();
- }
- $timeout(function () {
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft);
- });
- }
-
- function insertTab (tabData, index) {
- var proto = {
- getIndex: function () { return ctrl.tabs.indexOf(tab); },
- isActive: function () { return this.getIndex() === $scope.selectedIndex; },
- isLeft: function () { return this.getIndex() < $scope.selectedIndex; },
- isRight: function () { return this.getIndex() > $scope.selectedIndex; },
- shouldRender: function () { return !$scope.noDisconnect || this.isActive(); },
- hasFocus: function () { return !ctrl.lastClick && ctrl.hasFocus && this.getIndex() === ctrl.focusIndex; },
- id: $mdUtil.nextUid()
- },
- tab = angular.extend(proto, tabData);
- if (angular.isDefined(index)) {
- ctrl.tabs.splice(index, 0, tab);
- } else {
- ctrl.tabs.push(tab);
- }
- processQueue();
- updateHasContent();
- return tab;
- }
-
- //-- Getter methods
-
- function getElements () {
- var elements = {};
-
- //-- gather tab bar elements
- elements.wrapper = $element[0].getElementsByTagName('md-tabs-wrapper')[0];
- elements.canvas = elements.wrapper.getElementsByTagName('md-tabs-canvas')[0];
- elements.paging = elements.canvas.getElementsByTagName('md-pagination-wrapper')[0];
- elements.tabs = elements.paging.getElementsByTagName('md-tab-item');
- elements.dummies = elements.canvas.getElementsByTagName('md-dummy-tab');
- elements.inkBar = elements.paging.getElementsByTagName('md-ink-bar')[0];
-
- //-- gather tab content elements
- elements.contentsWrapper = $element[0].getElementsByTagName('md-tabs-content-wrapper')[0];
- elements.contents = elements.contentsWrapper.getElementsByTagName('md-tab-content');
-
- return elements;
- }
-
- function canPageBack () {
- return ctrl.offsetLeft > 0;
- }
-
- function canPageForward () {
- var lastTab = elements.tabs[elements.tabs.length - 1];
- return lastTab && lastTab.offsetLeft + lastTab.offsetWidth > elements.canvas.clientWidth + ctrl.offsetLeft;
- }
-
- function shouldStretchTabs () {
- switch ($scope.stretchTabs) {
- case 'always': return true;
- case 'never': return false;
- default: return !shouldPaginate() && $window.matchMedia('(max-width: 600px)').matches;
- }
- }
-
- function shouldCenterTabs () {
- return $scope.centerTabs && !shouldPaginate();
- }
-
- function shouldPaginate () {
- if ($scope.noPagination) return false;
- var canvasWidth = $element.prop('clientWidth');
- angular.forEach(elements.tabs, function (tab) { canvasWidth -= tab.offsetWidth; });
- return canvasWidth < 0;
- }
-
- function getNearestSafeIndex(newIndex) {
- var maxOffset = Math.max(ctrl.tabs.length - newIndex, newIndex),
- i, tab;
- for (i = 0; i <= maxOffset; i++) {
- tab = ctrl.tabs[newIndex + i];
- if (tab && (tab.scope.disabled !== true)) return tab.getIndex();
- tab = ctrl.tabs[newIndex - i];
- if (tab && (tab.scope.disabled !== true)) return tab.getIndex();
- }
- return newIndex;
- }
-
- //-- Utility methods
-
- function updateTabOrder () {
- var selectedItem = ctrl.tabs[$scope.selectedIndex],
- focusItem = ctrl.tabs[ctrl.focusIndex];
- ctrl.tabs = ctrl.tabs.sort(function (a, b) {
- return a.index - b.index;
- });
- $scope.selectedIndex = ctrl.tabs.indexOf(selectedItem);
- ctrl.focusIndex = ctrl.tabs.indexOf(focusItem);
- }
-
- function incrementSelectedIndex (inc, focus) {
- var newIndex,
- index = focus ? ctrl.focusIndex : $scope.selectedIndex;
- for (newIndex = index + inc;
- ctrl.tabs[newIndex] && ctrl.tabs[newIndex].scope.disabled;
- newIndex += inc) {}
- if (ctrl.tabs[newIndex]) {
- if (focus) ctrl.focusIndex = newIndex;
- else $scope.selectedIndex = newIndex;
- }
- }
-
- function redirectFocus () {
- elements.dummies[ctrl.focusIndex].focus();
- }
-
- function adjustOffset () {
- if (shouldCenterTabs()) return;
- var tab = elements.tabs[ctrl.focusIndex],
- left = tab.offsetLeft,
- right = tab.offsetWidth + left;
- ctrl.offsetLeft = Math.max(ctrl.offsetLeft, fixOffset(right - elements.canvas.clientWidth));
- ctrl.offsetLeft = Math.min(ctrl.offsetLeft, fixOffset(left));
- }
-
- function processQueue () {
- queue.forEach(function (func) { $timeout(func); });
- queue = [];
- }
-
- function updateHasContent () {
- var hasContent = false;
- angular.forEach(ctrl.tabs, function (tab) {
- if (tab.template) hasContent = true;
- });
- ctrl.hasContent = hasContent;
- }
-
- function refreshIndex () {
- $scope.selectedIndex = getNearestSafeIndex($scope.selectedIndex);
- ctrl.focusIndex = getNearestSafeIndex(ctrl.focusIndex);
- }
-
- function updateHeightFromContent () {
- if (!$scope.dynamicHeight) return $element.css('height', '');
- if (!ctrl.tabs.length) return queue.push(updateHeightFromContent);
- var tabContent = elements.contents[$scope.selectedIndex],
- contentHeight = tabContent ? tabContent.offsetHeight : 0,
- tabsHeight = elements.wrapper.offsetHeight,
- newHeight = contentHeight + tabsHeight,
- currentHeight = $element.prop('clientHeight');
- if (currentHeight === newHeight) return;
- locked = true;
- $animate
- .animate(
- $element,
- { height: currentHeight + 'px' },
- { height: newHeight + 'px'}
- )
- .then(function () {
- $element.css('height', '');
- locked = false;
- });
- }
-
- function updateInkBarStyles () {
- if (!elements.tabs[$scope.selectedIndex]) return;
- if (!ctrl.tabs.length) return queue.push(ctrl.updateInkBarStyles);
- //-- if the element is not visible, we will not be able to calculate sizes until it is
- //-- we should treat that as a resize event rather than just updating the ink bar
- if (!$element.prop('offsetParent')) return handleResizeWhenVisible();
- var index = $scope.selectedIndex,
- totalWidth = elements.paging.offsetWidth,
- tab = elements.tabs[index],
- left = tab.offsetLeft,
- right = totalWidth - left - tab.offsetWidth;
- updateInkBarClassName();
- angular.element(elements.inkBar).css({ left: left + 'px', right: right + 'px' });
- }
-
- function updateInkBarClassName () {
- var newIndex = $scope.selectedIndex,
- oldIndex = ctrl.lastSelectedIndex,
- ink = angular.element(elements.inkBar);
- ink.removeClass('md-left md-right');
- if (!angular.isNumber(oldIndex)) return;
- if (newIndex < oldIndex) {
- ink.addClass('md-left');
- } else if (newIndex > oldIndex) {
- ink.addClass('md-right');
- }
- }
-
- function fixOffset (value) {
- if (!elements.tabs.length || !shouldPaginate()) return 0;
- var lastTab = elements.tabs[elements.tabs.length - 1],
- totalWidth = lastTab.offsetLeft + lastTab.offsetWidth;
- value = Math.max(0, value);
- value = Math.min(totalWidth - elements.canvas.clientWidth, value);
- return value;
- }
-
- function attachRipple (scope, element) {
- var options = { colorElement: angular.element(elements.inkBar) };
- $mdTabInkRipple.attach(scope, element, options);
- }
-}
-MdTabsController.$inject = ["$scope", "$element", "$window", "$timeout", "$mdConstant", "$mdTabInkRipple", "$mdUtil", "$animate"];
-
-/**
- * @ngdoc directive
- * @name mdTabs
- * @module material.components.tabs
- *
- * @restrict E
- *
- * @description
- * The `<md-tabs>` directive serves as the container for 1..n `<md-tab>` child directives to produces a Tabs components.
- * In turn, the nested `<md-tab>` directive is used to specify a tab label for the **header button** and a [optional] tab view
- * content that will be associated with each tab button.
- *
- * Below is the markup for its simplest usage:
- *
- * <hljs lang="html">
- * <md-tabs>
- * <md-tab label="Tab #1"></md-tab>
- * <md-tab label="Tab #2"></md-tab>
- * <md-tab label="Tab #3"></md-tab>
- * </md-tabs>
- * </hljs>
- *
- * Tabs supports three (3) usage scenarios:
- *
- * 1. Tabs (buttons only)
- * 2. Tabs with internal view content
- * 3. Tabs with external view content
- *
- * **Tab-only** support is useful when tab buttons are used for custom navigation regardless of any other components, content, or views.
- * **Tabs with internal views** are the traditional usages where each tab has associated view content and the view switching is managed internally by the Tabs component.
- * **Tabs with external view content** is often useful when content associated with each tab is independently managed and data-binding notifications announce tab selection changes.
- *
- * Additional features also include:
- *
- * * Content can include any markup.
- * * If a tab is disabled while active/selected, then the next tab will be auto-selected.
- *
- * ### Explanation of tab stretching
- *
- * Initially, tabs will have an inherent size. This size will either be defined by how much space is needed to accommodate their text or set by the user through CSS. Calculations will be based on this size.
- *
- * On mobile devices, tabs will be expanded to fill the available horizontal space. When this happens, all tabs will become the same size.
- *
- * On desktops, by default, stretching will never occur.
- *
- * This default behavior can be overridden through the `md-stretch-tabs` attribute. Here is a table showing when stretching will occur:
- *
- * `md-stretch-tabs` | mobile | desktop
- * ------------------|-----------|--------
- * `auto` | stretched | ---
- * `always` | stretched | stretched
- * `never` | --- | ---
- *
- * @param {integer=} md-selected Index of the active/selected tab
- * @param {boolean=} md-no-ink If present, disables ink ripple effects.
- * @param {boolean=} md-no-bar If present, disables the selection ink bar.
- * @param {string=} md-align-tabs Attribute to indicate position of tab buttons: `bottom` or `top`; default is `top`
- * @param {string=} md-stretch-tabs Attribute to indicate whether or not to stretch tabs: `auto`, `always`, or `never`; default is `auto`
- * @param {boolean=} md-dynamic-height When enabled, the tab wrapper will resize based on the contents of the selected tab
- * @param {boolean=} md-center-tabs When enabled, tabs will be centered provided there is no need for pagination
- * @param {boolean=} md-no-pagination When enabled, pagination will remain off
- * @param {boolean=} md-swipe-content When enabled, swipe gestures will be enabled for the content area to jump between tabs
- * @param {boolean=} md-no-disconnect If your tab content has background tasks (ie. event listeners), you will want to include this to prevent the scope from being disconnected
- *
- * @usage
- * <hljs lang="html">
- * <md-tabs md-selected="selectedIndex" >
- * <img ng-src="img/angular.png" class="centered">
- * <md-tab
- * ng-repeat="tab in tabs | orderBy:predicate:reversed"
- * md-on-select="onTabSelected(tab)"
- * md-on-deselect="announceDeselected(tab)"
- * ng-disabled="tab.disabled">
- * <md-tab-label>
- * {{tab.title}}
- * <img src="img/removeTab.png" ng-click="removeTab(tab)" class="delete">
- * </md-tab-label>
- * <md-tab-body>
- * {{tab.content}}
- * </md-tab-body>
- * </md-tab>
- * </md-tabs>
- * </hljs>
- *
- */
-angular
- .module('material.components.tabs')
- .directive('mdTabs', MdTabs);
-
-function MdTabs ($mdTheming, $mdUtil, $compile) {
- return {
- scope: {
- noPagination: '=?mdNoPagination',
- dynamicHeight: '=?mdDynamicHeight',
- centerTabs: '=?mdCenterTabs',
- selectedIndex: '=?mdSelected',
- stretchTabs: '@?mdStretchTabs',
- swipeContent: '=?mdSwipeContent',
- noDisconnect: '=?mdNoDisconnect'
- },
- template: function (element, attr) {
- attr["$mdTabsTemplate"] = element.html();
- return '\
- <md-tabs-wrapper ng-class="{ \'md-stretch-tabs\': $mdTabsCtrl.shouldStretchTabs() }">\
- <md-tab-data></md-tab-data>\
- <md-prev-button\
- tabindex="-1"\
- role="button"\
- aria-label="Previous Page"\
- aria-disabled="{{!$mdTabsCtrl.canPageBack()}}"\
- ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }"\
- ng-if="$mdTabsCtrl.shouldPaginate()"\
- ng-click="$mdTabsCtrl.previousPage()">\
- <md-icon md-svg-icon="md-tabs-arrow"></md-icon>\
- </md-prev-button>\
- <md-next-button\
- tabindex="-1"\
- role="button"\
- aria-label="Next Page"\
- aria-disabled="{{!$mdTabsCtrl.canPageForward()}}"\
- ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }"\
- ng-if="$mdTabsCtrl.shouldPaginate()"\
- ng-click="$mdTabsCtrl.nextPage()">\
- <md-icon md-svg-icon="md-tabs-arrow"></md-icon>\
- </md-next-button>\
- <md-tabs-canvas\
- tabindex="0"\
- aria-activedescendant="tab-item-{{$mdTabsCtrl.tabs[$mdTabsCtrl.focusIndex].id}}"\
- ng-focus="$mdTabsCtrl.redirectFocus()"\
- ng-class="{\
- \'md-paginated\': $mdTabsCtrl.shouldPaginate(),\
- \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs()\
- }"\
- ng-keydown="$mdTabsCtrl.keydown($event)"\
- role="tablist">\
- <md-pagination-wrapper\
- ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs() }"\
- md-tab-scroll="$mdTabsCtrl.scroll($event)">\
- <md-tab-item\
- tabindex="-1"\
- class="md-tab"\
- style="max-width: {{ tabWidth ? tabWidth + \'px\' : \'none\' }}"\
- ng-repeat="tab in $mdTabsCtrl.tabs"\
- role="tab"\
- aria-controls="tab-content-{{tab.id}}"\
- aria-selected="{{tab.isActive()}}"\
- aria-disabled="{{tab.scope.disabled || \'false\'}}"\
- ng-click="$mdTabsCtrl.select(tab.getIndex())"\
- ng-class="{\
- \'md-active\': tab.isActive(),\
- \'md-focused\': tab.hasFocus(),\
- \'md-disabled\': tab.scope.disabled\
- }"\
- ng-disabled="tab.scope.disabled"\
- md-swipe-left="$mdTabsCtrl.nextPage()"\
- md-swipe-right="$mdTabsCtrl.previousPage()"\
- md-template="tab.label"\
- md-scope="tab.parent"></md-tab-item>\
- <md-ink-bar ng-hide="noInkBar"></md-ink-bar>\
- </md-pagination-wrapper>\
- <div class="md-visually-hidden md-dummy-wrapper">\
- <md-dummy-tab\
- tabindex="-1"\
- id="tab-item-{{tab.id}}"\
- role="tab"\
- aria-controls="tab-content-{{tab.id}}"\
- aria-selected="{{tab.isActive()}}"\
- aria-disabled="{{tab.scope.disabled || \'false\'}}"\
- ng-focus="$mdTabsCtrl.hasFocus = true"\
- ng-blur="$mdTabsCtrl.hasFocus = false"\
- ng-repeat="tab in $mdTabsCtrl.tabs"\
- md-template="tab.label"\
- md-scope="tab.parent"></md-dummy-tab>\
- </div>\
- </md-tabs-canvas>\
- </md-tabs-wrapper>\
- <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent">\
- <md-tab-content\
- id="tab-content-{{tab.id}}"\
- role="tabpanel"\
- aria-labelledby="tab-item-{{tab.id}}"\
- md-swipe-left="swipeContent && $mdTabsCtrl.incrementSelectedIndex(1)"\
- md-swipe-right="swipeContent && $mdTabsCtrl.incrementSelectedIndex(-1)"\
- ng-if="$mdTabsCtrl.hasContent"\
- ng-repeat="(index, tab) in $mdTabsCtrl.tabs"\
- md-connected-if="tab.isActive()"\
- ng-class="{\
- \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null,\
- \'md-active\': tab.isActive(),\
- \'md-left\': tab.isLeft(),\
- \'md-right\': tab.isRight(),\
- \'md-no-scroll\': dynamicHeight\
- }">\
- <div\
- md-template="tab.template"\
- md-scope="tab.parent"\
- ng-if="tab.shouldRender()"></div>\
- </md-tab-content>\
- </md-tabs-content-wrapper>\
- ';
- },
- controller: 'MdTabsController',
- controllerAs: '$mdTabsCtrl',
- link: function (scope, element, attr) {
- compileTabData(attr.$mdTabsTemplate);
- delete attr.$mdTabsTemplate;
-
- $mdUtil.initOptionalProperties(scope, attr);
-
- //-- watch attributes
- attr.$observe('mdNoBar', function (value) { scope.noInkBar = angular.isDefined(value); });
- //-- set default value for selectedIndex
- scope.selectedIndex = angular.isNumber(scope.selectedIndex) ? scope.selectedIndex : 0;
- //-- apply themes
- $mdTheming(element);
-
- function compileTabData (template) {
- var dataElement = element.find('md-tab-data');
- dataElement.html(template);
- $compile(dataElement.contents())(scope.$parent);
- }
- }
- };
-}
-MdTabs.$inject = ["$mdTheming", "$mdUtil", "$compile"];
-
-angular
- .module('material.components.tabs')
- .directive('mdTemplate', MdTemplate);
-
-function MdTemplate ($compile, $mdUtil, $timeout) {
- return {
- restrict: 'A',
- link: link,
- scope: {
- template: '=mdTemplate',
- compileScope: '=mdScope',
- connected: '=?mdConnectedIf'
- },
- require: '^?mdTabs'
- };
- function link (scope, element, attr, ctrl) {
- if (!ctrl) return;
- var compileScope = scope.compileScope.$new();
- element.html(scope.template);
- $compile(element.contents())(compileScope);
- return $timeout(handleScope);
- function handleScope () {
- scope.$watch('connected', function (value) { value === false ? disconnect() : reconnect(); });
- scope.$on('$destroy', reconnect);
- }
- function disconnect () {
- if (ctrl.scope.noDisconnect) return;
- $mdUtil.disconnectScope(compileScope);
- }
- function reconnect () {
- if (ctrl.scope.noDisconnect) return;
- $mdUtil.reconnectScope(compileScope);
- }
- }
-}
-MdTemplate.$inject = ["$compile", "$mdUtil", "$timeout"];
-
-ng.material.components.tabs = angular.module("material.components.tabs"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField-default-theme.css
deleted file mode 100644
index fa7efdb4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField-default-theme.css
+++ /dev/null
@@ -1,30 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-input-group.md-THEME_NAME-theme input, md-input-group.md-THEME_NAME-theme textarea {
- text-shadow: '{{foreground-shadow}}'; }
- md-input-group.md-THEME_NAME-theme input::-webkit-input-placeholder, md-input-group.md-THEME_NAME-theme input::-moz-placeholder, md-input-group.md-THEME_NAME-theme input:-moz-placeholder, md-input-group.md-THEME_NAME-theme input:-ms-input-placeholder, md-input-group.md-THEME_NAME-theme textarea::-webkit-input-placeholder, md-input-group.md-THEME_NAME-theme textarea::-moz-placeholder, md-input-group.md-THEME_NAME-theme textarea:-moz-placeholder, md-input-group.md-THEME_NAME-theme textarea:-ms-input-placeholder {
- color: '{{foreground-3}}'; }
-md-input-group.md-THEME_NAME-theme label {
- text-shadow: '{{foreground-shadow}}';
- color: '{{foreground-3}}'; }
-md-input-group.md-THEME_NAME-theme input, md-input-group.md-THEME_NAME-theme textarea {
- color: '{{foreground-1}}';
- border-color: '{{foreground-4}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-focused input, md-input-group.md-THEME_NAME-theme.md-input-focused textarea {
- border-color: '{{primary-500}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-focused label {
- color: '{{primary-500}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent input, md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent textarea {
- border-color: '{{accent-500}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent label {
- color: '{{accent-500}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-has-value:not(.md-input-focused) label {
- color: '{{foreground-2}}'; }
-md-input-group.md-THEME_NAME-theme .md-input[disabled] {
- border-bottom-color: '{{foreground-4}}';
- color: '{{foreground-3}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField.css
deleted file mode 100644
index 95044d44..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField.css
+++ /dev/null
@@ -1,111 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-input-group label, .md-input-group label {
- display: block;
- font-size: 1.2rem; }
-md-input-group textarea, md-input-group input[type="text"], md-input-group input[type="password"], md-input-group input[type="datetime"], md-input-group input[type="datetime-local"], md-input-group input[type="date"], md-input-group input[type="month"], md-input-group input[type="time"], md-input-group input[type="week"], md-input-group input[type="number"], md-input-group input[type="email"], md-input-group input[type="url"], md-input-group input[type="search"], md-input-group input[type="tel"], md-input-group input[type="color"], .md-input-group textarea, .md-input-group input[type="text"], .md-input-group input[type="password"], .md-input-group input[type="datetime"], .md-input-group input[type="datetime-local"], .md-input-group input[type="date"], .md-input-group input[type="month"], .md-input-group input[type="time"], .md-input-group input[type="week"], .md-input-group input[type="number"], .md-input-group input[type="email"], .md-input-group input[type="url"], .md-input-group input[type="search"], .md-input-group input[type="tel"], .md-input-group input[type="color"] {
- display: block;
- border-width: 0 0 1px 0;
- padding-top: 2px;
- line-height: 26px;
- padding-bottom: 1px; }
- md-input-group textarea:focus, md-input-group input[type="text"]:focus, md-input-group input[type="password"]:focus, md-input-group input[type="datetime"]:focus, md-input-group input[type="datetime-local"]:focus, md-input-group input[type="date"]:focus, md-input-group input[type="month"]:focus, md-input-group input[type="time"]:focus, md-input-group input[type="week"]:focus, md-input-group input[type="number"]:focus, md-input-group input[type="email"]:focus, md-input-group input[type="url"]:focus, md-input-group input[type="search"]:focus, md-input-group input[type="tel"]:focus, md-input-group input[type="color"]:focus, .md-input-group textarea:focus, .md-input-group input[type="text"]:focus, .md-input-group input[type="password"]:focus, .md-input-group input[type="datetime"]:focus, .md-input-group input[type="datetime-local"]:focus, .md-input-group input[type="date"]:focus, .md-input-group input[type="month"]:focus, .md-input-group input[type="time"]:focus, .md-input-group input[type="week"]:focus, .md-input-group input[type="number"]:focus, .md-input-group input[type="email"]:focus, .md-input-group input[type="url"]:focus, .md-input-group input[type="search"]:focus, .md-input-group input[type="tel"]:focus, .md-input-group input[type="color"]:focus {
- outline: 0; }
-md-input-group input, md-input-group textarea, .md-input-group input, .md-input-group textarea {
- background: none; }
-
-md-input-group, .md-input-group {
- padding-bottom: 2px;
- margin: 10px 0 8px 0;
- position: relative;
- display: block; }
- md-input-group label, .md-input-group label {
- font-size: 1.6rem;
- z-index: 1;
- pointer-events: none;
- -webkit-font-smoothing: antialiased; }
- md-input-group label:hover, .md-input-group label:hover {
- cursor: text; }
- md-input-group label, .md-input-group label {
- -webkit-transform: translate3d(0, 22px, 0);
- transform: translate3d(0, 22px, 0);
- transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1);
- transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group label, html[dir=rtl] .md-input-group label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group input, md-input-group textarea, .md-input-group input, .md-input-group textarea {
- border-bottom-width: 1px;
- transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1); }
- md-input-group.md-input-focused label, .md-input-group.md-input-focused label {
- -webkit-transform: translate3d(0, 4px, 0) scale(0.75);
- transform: translate3d(0, 4px, 0) scale(0.75);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group.md-input-focused label, html[dir=rtl] .md-input-group.md-input-focused label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group.md-input-focused input, md-input-group.md-input-focused textarea, .md-input-group.md-input-focused input, .md-input-group.md-input-focused textarea {
- border-bottom-width: 2px; }
- md-input-group.md-input-focused input, .md-input-group.md-input-focused input {
- padding-bottom: 0; }
- md-input-group.md-input-has-value label, .md-input-group.md-input-has-value label {
- -webkit-transform: translate3d(0, 4px, 0) scale(0.75);
- transform: translate3d(0, 4px, 0) scale(0.75);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group.md-input-has-value label, html[dir=rtl] .md-input-group.md-input-has-value label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group.md-input-has-value:not(.md-input-focused) label, .md-input-group.md-input-has-value:not(.md-input-focused) label {
- -webkit-transform: translate3d(0, 4px, 0) scale(0.75);
- transform: translate3d(0, 4px, 0) scale(0.75);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group.md-input-has-value:not(.md-input-focused) label, html[dir=rtl] .md-input-group.md-input-has-value:not(.md-input-focused) label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group[disabled] input, md-input-group[disabled] textarea, .md-input-group[disabled] input, .md-input-group[disabled] textarea {
- border-bottom-width: 0px; }
- md-input-group[disabled] input, md-input-group[disabled] textarea, .md-input-group[disabled] input, .md-input-group[disabled] textarea {
- background-size: 3px 1px;
- background-position: 0 bottom;
- background-size: 2px 1px;
- background-repeat: repeat-x;
- pointer-events: none; }
- md-input-group[disabled] label, .md-input-group[disabled] label {
- -webkit-transform: translate3d(0, 4px, 0) scale(0.75);
- transform: translate3d(0, 4px, 0) scale(0.75);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group[disabled] label, html[dir=rtl] .md-input-group[disabled] label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group[disabled] *:not(.md-input-has-value) label, .md-input-group[disabled] *:not(.md-input-has-value) label {
- -webkit-transform: translate3d(0, 22px, 0);
- transform: translate3d(0, 22px, 0);
- transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group[disabled] *:not(.md-input-has-value) label, html[dir=rtl] .md-input-group[disabled] *:not(.md-input-has-value) label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField.js
deleted file mode 100644
index aaa9242b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/textField/textField.js
+++ /dev/null
@@ -1,145 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */
-goog.provide('ng.material.components.textField');
-goog.require('ng.material.core');
-(function() {
-'use strict';
-
-/**
- * @ngdoc module
- * @name material.components.textField
- * @description
- * Form
- */
-ng.material.components.textField = angular.module('material.components.textField', [
- 'material.core'
-])
- .directive('mdInputGroup', mdInputGroupDirective)
- .directive('mdInput', mdInputDirective)
- .directive('mdTextFloat', mdTextFloatDirective);
-
-
-function mdTextFloatDirective($mdTheming, $mdUtil, $parse, $log) {
- return {
- restrict: 'E',
- replace: true,
- scope : {
- fid : '@?mdFid',
- label : '@?',
- value : '=ngModel'
- },
- compile : function(element, attr) {
-
- $log.warn('<md-text-float> is deprecated. Please use `<md-input-container>` and `<input>`.' +
- 'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
-
- if ( angular.isUndefined(attr.mdFid) ) {
- attr.mdFid = $mdUtil.nextUid();
- }
-
- return {
- pre : function(scope, element, attrs) {
- var disabledParsed = $parse(attrs.ngDisabled);
- scope.isDisabled = function() {
- return disabledParsed(scope.$parent);
- };
-
- scope.inputType = attrs.type || "text";
- },
- post: $mdTheming
- };
- },
- template:
- '<md-input-group tabindex="-1">' +
- ' <label for="{{fid}}" >{{label}}</label>' +
- ' <md-input id="{{fid}}" ng-disabled="isDisabled()" ng-model="value" type="{{inputType}}"></md-input>' +
- '</md-input-group>'
- };
-}
-mdTextFloatDirective.$inject = ["$mdTheming", "$mdUtil", "$parse", "$log"];
-
-function mdInputGroupDirective($log) {
- return {
- restrict: 'CE',
- controller: ['$element', function($element) {
-
- $log.warn('<md-input-group> is deprecated. Please use `<md-input-container>` and `<input>`.' +
- 'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
- this.setFocused = function(isFocused) {
- $element.toggleClass('md-input-focused', !!isFocused);
- };
- this.setHasValue = function(hasValue) {
- $element.toggleClass('md-input-has-value', hasValue );
- };
- }]
- };
-
-}
-mdInputGroupDirective.$inject = ["$log"];
-
-function mdInputDirective($mdUtil, $log) {
- return {
- restrict: 'E',
- replace: true,
- template: '<input >',
- require: ['^?mdInputGroup', '?ngModel'],
- link: function(scope, element, attr, ctrls) {
- if ( !ctrls[0] ) return;
-
- $log.warn('<md-input> is deprecated. Please use `<md-input-container>` and `<input>`.' +
- 'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
-
- var inputGroupCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1];
-
- scope.$watch(scope.isDisabled, function(isDisabled) {
- element.attr('aria-disabled', !!isDisabled);
- element.attr('tabindex', !!isDisabled);
- });
- element.attr('type', attr.type || element.parent().attr('type') || "text");
-
- // When the input value changes, check if it "has" a value, and
- // set the appropriate class on the input group
- if (ngModelCtrl) {
- //Add a $formatter so we don't use up the render function
- ngModelCtrl.$formatters.push(function(value) {
- inputGroupCtrl.setHasValue( isNotEmpty(value) );
- return value;
- });
- }
-
- element
- .on('input', function() {
- inputGroupCtrl.setHasValue( isNotEmpty() );
- })
- .on('focus', function(e) {
- // When the input focuses, add the focused class to the group
- inputGroupCtrl.setFocused(true);
- })
- .on('blur', function(e) {
- // When the input blurs, remove the focused class from the group
- inputGroupCtrl.setFocused(false);
- inputGroupCtrl.setHasValue( isNotEmpty() );
- });
-
- scope.$on('$destroy', function() {
- inputGroupCtrl.setFocused(false);
- inputGroupCtrl.setHasValue(false);
- });
-
-
- function isNotEmpty(value) {
- value = angular.isUndefined(value) ? element.val() : value;
- return (angular.isDefined(value) && (value!==null) &&
- (value.toString().trim() !== ""));
- }
- }
- };
-}
-mdInputDirective.$inject = ["$mdUtil", "$log"];
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast-default-theme.css
deleted file mode 100644
index ff07e0eb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast-default-theme.css
+++ /dev/null
@@ -1,18 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-toast.md-THEME_NAME-theme {
- background-color: #323232;
- color: '{{background-50}}'; }
- md-toast.md-THEME_NAME-theme .md-button {
- color: '{{background-50}}'; }
- md-toast.md-THEME_NAME-theme .md-button.md-highlight {
- color: '{{primary-A200}}'; }
- md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent {
- color: '{{accent-A200}}'; }
- md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn {
- color: '{{warn-A200}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast.css
deleted file mode 100644
index 5b01f1aa..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast.css
+++ /dev/null
@@ -1,119 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-toast {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- position: absolute;
- box-sizing: border-box;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- min-height: 48px;
- padding-left: 24px;
- padding-right: 24px;
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
- border-radius: 2px;
- font-size: 14px;
- cursor: default;
- max-width: 100%;
- max-height: 40px;
- height: 24px;
- z-index: 90;
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0) rotateZ(0deg);
- transform: translate3d(0, 0, 0) rotateZ(0deg);
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- /* Transition differently when swiping */ }
- md-toast.md-capsule {
- border-radius: 24px; }
- md-toast.ng-leave-active {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-toast.md-swipeleft, md-toast.md-swiperight, md-toast.md-swipeup, md-toast.md-swipedown {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-toast.ng-enter {
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0);
- opacity: 0; }
- md-toast.ng-enter.md-top {
- -webkit-transform: translate3d(0, -100%, 0);
- transform: translate3d(0, -100%, 0); }
- md-toast.ng-enter.ng-enter-active {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- opacity: 1; }
- md-toast.ng-leave.ng-leave-active {
- opacity: 0;
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0); }
- md-toast.ng-leave.ng-leave-active.md-top {
- -webkit-transform: translate3d(0, -100%, 0);
- transform: translate3d(0, -100%, 0); }
- md-toast.ng-leave.ng-leave-active.md-swipeleft {
- -webkit-transform: translate3d(-100%, 0%, 0);
- transform: translate3d(-100%, 0%, 0); }
- md-toast.ng-leave.ng-leave-active.md-swiperight {
- -webkit-transform: translate3d(100%, 0%, 0);
- transform: translate3d(100%, 0%, 0); }
- md-toast .md-action {
- line-height: 19px;
- margin-left: 24px;
- cursor: pointer;
- text-transform: uppercase;
- float: right; }
- md-toast .md-action.md-button {
- min-width: 0; }
-
-@media (max-width: 600px) {
- md-toast {
- left: 0;
- right: 0;
- width: 100%;
- max-width: 100%;
- min-width: 0;
- border-radius: 0;
- bottom: 0; }
- md-toast.md-top {
- bottom: auto;
- top: 0; } }
-
-@media (min-width: 600px) {
- md-toast {
- min-width: 288px;
- /*
- * When the toast doesn't take up the whole screen,
- * make it rotate when the user swipes it away
- */ }
- md-toast.md-bottom {
- bottom: 8px; }
- md-toast.md-left {
- left: 8px; }
- md-toast.md-right {
- right: 8px; }
- md-toast.md-top {
- top: 8px; }
- md-toast.ng-leave.ng-leave-active.md-swipeleft {
- -webkit-transform: translate3d(-100%, 25%, 0) rotateZ(-15deg);
- transform: translate3d(-100%, 25%, 0) rotateZ(-15deg); }
- md-toast.ng-leave.ng-leave-active.md-swiperight {
- -webkit-transform: translate3d(100%, 25%, 0) rotateZ(15deg);
- transform: translate3d(100%, 25%, 0) rotateZ(15deg); }
- md-toast.ng-leave.ng-leave-active.md-top.md-swipeleft {
- -webkit-transform: translate3d(-100%, 0, 0) rotateZ(-15deg);
- transform: translate3d(-100%, 0, 0) rotateZ(-15deg); }
- md-toast.ng-leave.ng-leave-active.md-top.md-swiperight {
- -webkit-transform: translate3d(100%, 0, 0) rotateZ(15deg);
- transform: translate3d(100%, 0, 0) rotateZ(15deg); } }
-
-@media (min-width: 1200px) {
- md-toast {
- max-width: 568px; } }
-
-@media screen and (-ms-high-contrast: active) {
- md-toast {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast.js
deleted file mode 100644
index 12742fed..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toast/toast.js
+++ /dev/null
@@ -1,265 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.toast');
-goog.require('ng.material.components.button');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.toast
- * @description
- * Toast
- */
-angular.module('material.components.toast', [
- 'material.core',
- 'material.components.button'
-])
- .directive('mdToast', MdToastDirective)
- .provider('$mdToast', MdToastProvider);
-
-function MdToastDirective() {
- return {
- restrict: 'E'
- };
-}
-
-/**
- * @ngdoc service
- * @name $mdToast
- * @module material.components.toast
- *
- * @description
- * `$mdToast` is a service to build a toast notification on any position
- * on the screen with an optional duration, and provides a simple promise API.
- *
- *
- * ## Restrictions on custom toasts
- * - The toast's template must have an outer `<md-toast>` element.
- * - For a toast action, use element with class `md-action`.
- * - Add the class `md-capsule` for curved corners.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-controller="MyController">
- * <md-button ng-click="openToast()">
- * Open a Toast!
- * </md-button>
- * </div>
- * </hljs>
- *
- * <hljs lang="js">
- * var app = angular.module('app', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdToast) {
- * $scope.openToast = function($event) {
- * $mdToast.show($mdToast.simple().content('Hello!'));
- * // Could also do $mdToast.showSimple('Hello');
- * };
- * });
- * </hljs>
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#showSimple
- *
- * @description
- * Convenience method which builds and shows a simple toast.
- *
- * @returns {promise} A promise that can be resolved with `$mdToast.hide()` or
- * rejected with `$mdToast.cancel()`.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#simple
- *
- * @description
- * Builds a preconfigured toast.
- *
- * @returns {obj} a `$mdToastPreset` with the chainable configuration methods:
- *
- * - $mdToastPreset#content(string) - sets toast content to string
- * - $mdToastPreset#action(string) - adds an action button, which resolves the promise returned from `show()` if clicked.
- * - $mdToastPreset#highlightAction(boolean) - sets action button to be highlighted
- * - $mdToastPreset#capsule(boolean) - adds 'md-capsule' class to the toast (curved corners)
- * - $mdToastPreset#theme(boolean) - sets the theme on the toast to theme (default is `$mdThemingProvider`'s default theme)
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#updateContent
- *
- * @description
- * Updates the content of an existing toast. Useful for updating things like counts, etc.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#build
- *
- * @description
- * Creates a custom `$mdToastPreset` that you can configure.
- *
- * @returns {obj} a `$mdToastPreset` with the chainable configuration methods for shows' options (see below).
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#show
- *
- * @description Shows the toast.
- *
- * @param {object} optionsOrPreset Either provide an `$mdToastPreset` returned from `simple()`
- * and `build()`, or an options object with the following properties:
- *
- * - `templateUrl` - `{string=}`: The url of an html template file that will
- * be used as the content of the toast. Restrictions: the template must
- * have an outer `md-toast` element.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual
- * template string.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope.
- * This scope will be destroyed when the toast is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `hideDelay` - `{number=}`: How many milliseconds the toast should stay
- * active before automatically closing. Set to 0 or false to have the toast stay open until
- * closed manually. Default: 3000.
- * - `position` - `{string=}`: Where to place the toast. Available: any combination
- * of 'bottom', 'left', 'top', 'right', 'fit'. Default: 'bottom left'.
- * - `controller` - `{string=}`: The controller to associate with this toast.
- * The controller will be injected the local `$hideToast`, which is a function
- * used to hide the toast.
- * - `locals` - `{string=}`: An object containing key/value pairs. The keys will
- * be used as names of values to inject into the controller. For example,
- * `locals: {three: 3}` would inject `three` into the controller with the value
- * of 3.
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in. These values will not be available until after initialization.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
- * and the toast will not open until the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the toast to. Defaults to appending
- * to the root element of the application.
- *
- * @returns {promise} A promise that can be resolved with `$mdToast.hide()` or
- * rejected with `$mdToast.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#hide
- *
- * @description
- * Hide an existing toast and resolve the promise returned from `$mdToast.show()`.
- *
- * @param {*=} response An argument for the resolved promise.
- *
- * @returns {promise} a promise that is called when the existing element is removed from the DOM
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#cancel
- *
- * @description
- * Hide the existing toast and reject the promise returned from
- * `$mdToast.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- * @returns {promise} a promise that is called when the existing element is removed from the DOM
- *
- */
-
-function MdToastProvider($$interimElementProvider) {
- var activeToastContent;
- var $mdToast = $$interimElementProvider('$mdToast')
- .setDefaults({
- methods: ['position', 'hideDelay', 'capsule' ],
- options: toastDefaultOptions
- })
- .addPreset('simple', {
- argOption: 'content',
- methods: ['content', 'action', 'highlightAction', 'theme', 'parent'],
- options: /* ngInject */ ["$mdToast", "$mdTheming", function($mdToast, $mdTheming) {
- var opts = {
- template: [
- '<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">',
- '<span flex>{{ toast.content }}</span>',
- '<md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}">',
- '{{ toast.action }}',
- '</md-button>',
- '</md-toast>'
- ].join(''),
- controller: /* ngInject */ ["$scope", function mdToastCtrl($scope) {
- var self = this;
- $scope.$watch(function() { return activeToastContent; }, function() {
- self.content = activeToastContent;
- });
- this.resolve = function() {
- $mdToast.hide();
- };
- }],
- theme: $mdTheming.defaultTheme(),
- controllerAs: 'toast',
- bindToController: true
- };
- return opts;
- }]
- })
- .addMethod('updateContent', function(newContent) {
- activeToastContent = newContent;
- });
-
- toastDefaultOptions.$inject = ["$timeout", "$animate", "$mdToast", "$mdUtil"];
- return $mdToast;
-
- /* ngInject */
- function toastDefaultOptions($timeout, $animate, $mdToast, $mdUtil) {
- return {
- onShow: onShow,
- onRemove: onRemove,
- position: 'bottom left',
- themable: true,
- hideDelay: 3000
- };
-
- function onShow(scope, element, options) {
- element = $mdUtil.extractElementByName(element, 'md-toast');
-
- // 'top left' -> 'md-top md-left'
- activeToastContent = options.content;
- element.addClass(options.position.split(' ').map(function(pos) {
- return 'md-' + pos;
- }).join(' '));
- options.parent.addClass(toastOpenClass(options.position));
-
- options.onSwipe = function(ev, gesture) {
- //Add swipeleft/swiperight class to element so it can animate correctly
- element.addClass('md-' + ev.type.replace('$md.',''));
- $timeout($mdToast.cancel);
- };
- element.on('$md.swipeleft $md.swiperight', options.onSwipe);
- return $animate.enter(element, options.parent);
- }
-
- function onRemove(scope, element, options) {
- element.off('$md.swipeleft $md.swiperight', options.onSwipe);
- options.parent.removeClass(toastOpenClass(options.position));
- return $animate.leave(element);
- }
-
- function toastOpenClass(position) {
- return 'md-toast-open-' +
- (position.indexOf('top') > -1 ? 'top' : 'bottom');
- }
- }
-
-}
-MdToastProvider.$inject = ["$$interimElementProvider"];
-
-ng.material.components.toast = angular.module("material.components.toast"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar-default-theme.css
deleted file mode 100644
index adab0ade..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar-default-theme.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-toolbar.md-THEME_NAME-theme {
- background-color: '{{primary-color}}';
- color: '{{primary-contrast}}'; }
- md-toolbar.md-THEME_NAME-theme md-icon {
- color: '{{primary-contrast}}'; }
- md-toolbar.md-THEME_NAME-theme .md-button {
- color: '{{primary-contrast}}'; }
- md-toolbar.md-THEME_NAME-theme.md-accent {
- background-color: '{{accent-color}}';
- color: '{{accent-contrast}}'; }
- md-toolbar.md-THEME_NAME-theme.md-warn {
- background-color: '{{warn-color}}';
- color: '{{warn-contrast}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar.css
deleted file mode 100644
index a93dfe35..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar.css
+++ /dev/null
@@ -1,83 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-toolbar {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- position: relative;
- z-index: 2;
- font-size: 20px;
- min-height: 64px;
- width: 100%; }
- md-toolbar.md-whiteframe-z1-add, md-toolbar.md-whiteframe-z1-remove {
- transition: box-shadow 0.5s linear; }
- md-toolbar *, md-toolbar *:before, md-toolbar *:after {
- box-sizing: border-box; }
- md-toolbar.md-tall {
- height: 128px;
- min-height: 128px;
- max-height: 128px; }
- md-toolbar.md-medium-tall {
- height: 88px;
- min-height: 88px;
- max-height: 88px; }
- md-toolbar.md-medium-tall .md-toolbar-tools {
- height: 48px;
- min-height: 48px;
- max-height: 48px; }
- md-toolbar .md-indent {
- margin-left: 64px; }
- md-toolbar ~ md-content > md-list {
- padding: 0; }
- md-toolbar ~ md-content > md-list md-list-item:last-child md-divider {
- display: none; }
-
-.md-toolbar-tools {
- font-weight: 400;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- width: 100%;
- height: 64px;
- max-height: 64px;
- padding: 0 16px;
- margin: 0; }
- .md-toolbar-tools h1, .md-toolbar-tools h2, .md-toolbar-tools h3 {
- font-size: inherit;
- font-weight: inherit;
- margin: inherit; }
- .md-toolbar-tools a {
- color: inherit;
- text-decoration: none; }
- .md-toolbar-tools .fill-height {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- .md-toolbar-tools .md-button {
- margin-top: 0;
- margin-bottom: 0; }
- .md-toolbar-tools > .md-button:first-child {
- margin-left: -8px; }
- .md-toolbar-tools > .md-button:last-child {
- margin-right: -8px; }
- @media screen and (-ms-high-contrast: active) {
- .md-toolbar-tools {
- border-bottom: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar.js
deleted file mode 100644
index e28550eb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/toolbar/toolbar.js
+++ /dev/null
@@ -1,169 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.toolbar');
-goog.require('ng.material.components.content');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.toolbar
- */
-angular.module('material.components.toolbar', [
- 'material.core',
- 'material.components.content'
-])
- .directive('mdToolbar', mdToolbarDirective);
-
-/**
- * @ngdoc directive
- * @name mdToolbar
- * @module material.components.toolbar
- * @restrict E
- * @description
- * `md-toolbar` is used to place a toolbar in your app.
- *
- * Toolbars are usually used above a content area to display the title of the
- * current page, and show relevant action buttons for that page.
- *
- * You can change the height of the toolbar by adding either the
- * `md-medium-tall` or `md-tall` class to the toolbar.
- *
- * @usage
- * <hljs lang="html">
- * <div layout="column" layout-fill>
- * <md-toolbar>
- *
- * <div class="md-toolbar-tools">
- * <span>My App's Title</span>
- *
- * <!-- fill up the space between left and right area -->
- * <span flex></span>
- *
- * <md-button>
- * Right Bar Button
- * </md-button>
- * </div>
- *
- * </md-toolbar>
- * <md-content>
- * Hello!
- * </md-content>
- * </div>
- * </hljs>
- *
- * @param {boolean=} md-scroll-shrink Whether the header should shrink away as
- * the user scrolls down, and reveal itself as the user scrolls up.
- * Note: for scrollShrink to work, the toolbar must be a sibling of a
- * `md-content` element, placed before it. See the scroll shrink demo.
- *
- *
- * @param {number=} md-shrink-speed-factor How much to change the speed of the toolbar's
- * shrinking by. For example, if 0.25 is given then the toolbar will shrink
- * at one fourth the rate at which the user scrolls down. Default 0.5.
- */
-function mdToolbarDirective($$rAF, $mdConstant, $mdUtil, $mdTheming, $animate, $timeout) {
-
- return {
- restrict: 'E',
- controller: angular.noop,
- link: function(scope, element, attr) {
- $mdTheming(element);
-
- if (angular.isDefined(attr.mdScrollShrink)) {
- setupScrollShrink();
- }
-
- function setupScrollShrink() {
- // Current "y" position of scroll
- var y = 0;
- // Store the last scroll top position
- var prevScrollTop = 0;
-
- var shrinkSpeedFactor = attr.mdShrinkSpeedFactor || 0.5;
-
- var toolbarHeight;
- var contentElement;
-
- var debouncedContentScroll = $$rAF.throttle(onContentScroll);
- var debouncedUpdateHeight = $mdUtil.debounce(updateToolbarHeight, 5 * 1000);
-
- // Wait for $mdContentLoaded event from mdContent directive.
- // If the mdContent element is a sibling of our toolbar, hook it up
- // to scroll events.
- scope.$on('$mdContentLoaded', onMdContentLoad);
-
- function onMdContentLoad($event, newContentEl) {
- // Toolbar and content must be siblings
- if (element.parent()[0] === newContentEl.parent()[0]) {
- // unhook old content event listener if exists
- if (contentElement) {
- contentElement.off('scroll', debouncedContentScroll);
- }
-
- newContentEl.on('scroll', debouncedContentScroll);
- newContentEl.attr('scroll-shrink', 'true');
-
- contentElement = newContentEl;
- $$rAF(updateToolbarHeight);
- }
- }
-
- function updateToolbarHeight() {
- toolbarHeight = element.prop('offsetHeight');
- // Add a negative margin-top the size of the toolbar to the content el.
- // The content will start transformed down the toolbarHeight amount,
- // so everything looks normal.
- //
- // As the user scrolls down, the content will be transformed up slowly
- // to put the content underneath where the toolbar was.
- var margin = (-toolbarHeight * shrinkSpeedFactor) + 'px';
- contentElement.css('margin-top', margin);
- contentElement.css('margin-bottom', margin);
-
- onContentScroll();
- }
-
- function onContentScroll(e) {
- var scrollTop = e ? e.target.scrollTop : prevScrollTop;
-
- debouncedUpdateHeight();
-
- y = Math.min(
- toolbarHeight / shrinkSpeedFactor,
- Math.max(0, y + scrollTop - prevScrollTop)
- );
-
- element.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(0,' + (-y * shrinkSpeedFactor) + 'px,0)'
- );
- contentElement.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(0,' + ((toolbarHeight - y) * shrinkSpeedFactor) + 'px,0)'
- );
-
- prevScrollTop = scrollTop;
-
- if (element.hasClass('md-whiteframe-z1')) {
- if (!y) {
- $timeout(function () { $animate.removeClass(element, 'md-whiteframe-z1'); });
- }
- } else {
- if (y) {
- $timeout(function () { $animate.addClass(element, 'md-whiteframe-z1'); });
- }
- }
- }
-
- }
-
- }
- };
-
-}
-mdToolbarDirective.$inject = ["$$rAF", "$mdConstant", "$mdUtil", "$mdTheming", "$animate", "$timeout"];
-
-ng.material.components.toolbar = angular.module("material.components.toolbar"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip-default-theme.css
deleted file mode 100644
index 23d24c17..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip-default-theme.css
+++ /dev/null
@@ -1,11 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-tooltip.md-THEME_NAME-theme {
- color: '{{background-A100}}'; }
- md-tooltip.md-THEME_NAME-theme .md-background {
- background-color: '{{foreground-2}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip.css
deleted file mode 100644
index 6679568d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip.css
+++ /dev/null
@@ -1,72 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-tooltip {
- position: absolute;
- z-index: 100;
- overflow: hidden;
- pointer-events: none;
- border-radius: 4px;
- font-weight: 500;
- font-size: 14px; }
- @media screen and (min-width: 600px) {
- md-tooltip {
- font-size: 10px; } }
- md-tooltip .md-background {
- position: absolute;
- border-radius: 50%;
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 1; }
- md-tooltip .md-background.md-show-add {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 0; }
- md-tooltip .md-background.md-show, md-tooltip .md-background.md-show-add-active {
- -webkit-transform: translate(-50%, -50%) scale(1);
- transform: translate(-50%, -50%) scale(1);
- opacity: 1; }
- md-tooltip .md-background.md-show-remove {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip .md-background.md-show-remove.md-show-remove-active {
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 0; }
- md-tooltip .md-content {
- position: relative;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- background: transparent;
- opacity: 0;
- height: 32px;
- line-height: 32px;
- padding-left: 16px;
- padding-right: 16px; }
- @media screen and (min-width: 600px) {
- md-tooltip .md-content {
- height: 22px;
- line-height: 22px;
- padding-left: 8px;
- padding-right: 8px; } }
- md-tooltip .md-content.md-show-add {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- opacity: 0; }
- md-tooltip .md-content.md-show, md-tooltip .md-content.md-show-add-active {
- opacity: 1; }
- md-tooltip .md-content.md-show-remove {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip .md-content.md-show-remove.md-show-remove-active {
- opacity: 0; }
- md-tooltip.md-hide {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip.md-show {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- pointer-events: auto;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip.js
deleted file mode 100644
index 0ce4fb43..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/tooltip/tooltip.js
+++ /dev/null
@@ -1,267 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.tooltip');
-goog.require('ng.material.core');
-/**
- * @ngdoc module
- * @name material.components.tooltip
- */
-angular
- .module('material.components.tooltip', [ 'material.core' ])
- .directive('mdTooltip', MdTooltipDirective);
-
-/**
- * @ngdoc directive
- * @name mdTooltip
- * @module material.components.tooltip
- * @description
- * Tooltips are used to describe elements that are interactive and primarily graphical (not textual).
- *
- * Place a `<md-tooltip>` as a child of the element it describes.
- *
- * A tooltip will activate when the user focuses, hovers over, or touches the parent.
- *
- * @usage
- * <hljs lang="html">
- * <md-button class="md-fab md-accent" aria-label="Play">
- * <md-tooltip>
- * Play Music
- * </md-tooltip>
- * <md-icon icon="img/icons/ic_play_arrow_24px.svg"></md-icon>
- * </md-button>
- * </hljs>
- *
- * @param {expression=} md-visible Boolean bound to whether the tooltip is
- * currently visible.
- * @param {number=} md-delay How many milliseconds to wait to show the tooltip after the user focuses, hovers, or touches the parent. Defaults to 400ms.
- * @param {string=} md-direction Which direction would you like the tooltip to go? Supports left, right, top, and bottom. Defaults to bottom.
- * @param {boolean=} md-autohide If present or provided with a boolean value, the tooltip will hide on mouse leave, regardless of focus
- */
-function MdTooltipDirective($timeout, $window, $$rAF, $document, $mdUtil, $mdTheming, $rootElement,
- $animate, $q) {
-
- var TOOLTIP_SHOW_DELAY = 300;
- var TOOLTIP_WINDOW_EDGE_SPACE = 8;
-
- return {
- restrict: 'E',
- transclude: true,
- priority:210, // Before ngAria
- template: '\
- <div class="md-background"></div>\
- <div class="md-content" ng-transclude></div>',
- scope: {
- visible: '=?mdVisible',
- delay: '=?mdDelay',
- autohide: '=?mdAutohide'
- },
- link: postLink
- };
-
- function postLink(scope, element, attr) {
-
- $mdTheming(element);
-
- var parent = getParentWithPointerEvents(),
- background = angular.element(element[0].getElementsByClassName('md-background')[0]),
- content = angular.element(element[0].getElementsByClassName('md-content')[0]),
- direction = attr.mdDirection,
- current = getNearestContentElement(),
- tooltipParent = angular.element(current || document.body),
- debouncedOnResize = $$rAF.throttle(function () { if (scope.visible) positionTooltip(); });
-
- return init();
-
- function init () {
- setDefaults();
- manipulateElement();
- bindEvents();
- configureWatchers();
- addAriaLabel();
- }
-
- function setDefaults () {
- if (!angular.isDefined(attr.mdDelay)) scope.delay = TOOLTIP_SHOW_DELAY;
- }
-
- function configureWatchers () {
- scope.$on('$destroy', function() {
- scope.visible = false;
- element.remove();
- angular.element($window).off('resize', debouncedOnResize);
- });
- scope.$watch('visible', function (isVisible) {
- if (isVisible) showTooltip();
- else hideTooltip();
- });
- }
-
- function addAriaLabel () {
- if (!parent.attr('aria-label') && !parent.text().trim()) {
- parent.attr('aria-label', element.text().trim());
- }
- }
-
- function manipulateElement () {
- element.detach();
- element.attr('role', 'tooltip');
- }
-
- function getParentWithPointerEvents () {
- var parent = element.parent();
- while (parent && $window.getComputedStyle(parent[0])['pointer-events'] == 'none') {
- parent = parent.parent();
- }
- return parent;
- }
-
- function getNearestContentElement () {
- var current = element.parent()[0];
- // Look for the nearest parent md-content, stopping at the rootElement.
- while (current && current !== $rootElement[0] && current !== document.body) {
- current = current.parentNode;
- }
- return current;
- }
-
- function hasComputedStyleValue(key, value) {
- // Check if we should show it or not...
- var computedStyles = $window.getComputedStyle(element[0]);
- return angular.isDefined(computedStyles[key]) && (computedStyles[key] == value);
- }
-
- function bindEvents () {
- var mouseActive = false;
- var enterHandler = function() {
- if (!hasComputedStyleValue('pointer-events','none')) {
- setVisible(true);
- }
- };
- var leaveHandler = function () {
- var autohide = scope.hasOwnProperty('autohide') ? scope.autohide : attr.hasOwnProperty('mdAutohide');
- if (autohide || mouseActive || ($document[0].activeElement !== parent[0]) ) {
- setVisible(false);
- }
- mouseActive = false;
- };
-
- // to avoid `synthetic clicks` we listen to mousedown instead of `click`
- parent.on('mousedown', function() { mouseActive = true; });
- parent.on('focus mouseenter touchstart', enterHandler );
- parent.on('blur mouseleave touchend touchcancel', leaveHandler );
-
-
- angular.element($window).on('resize', debouncedOnResize);
- }
-
- function setVisible (value) {
- setVisible.value = !!value;
- if (!setVisible.queued) {
- if (value) {
- setVisible.queued = true;
- $timeout(function() {
- scope.visible = setVisible.value;
- setVisible.queued = false;
- }, scope.delay);
- } else {
- $timeout(function() { scope.visible = false; });
- }
- }
- }
-
- function showTooltip() {
- // Insert the element before positioning it, so we can get the position
- // and check if we should display it
- tooltipParent.append(element);
-
- // Check if we should display it or not.
- // This handles hide-* and show-* along with any user defined css
- if ( hasComputedStyleValue('display','none') ) {
- scope.visible = false;
- element.detach();
- return;
- }
-
- positionTooltip();
- angular.forEach([element, background, content], function (element) {
- $animate.addClass(element, 'md-show');
- });
- }
-
- function hideTooltip() {
- $q.all([
- $animate.removeClass(content, 'md-show'),
- $animate.removeClass(background, 'md-show'),
- $animate.removeClass(element, 'md-show')
- ]).then(function () {
- if (!scope.visible) element.detach();
- });
- }
-
- function positionTooltip() {
- var tipRect = $mdUtil.offsetRect(element, tooltipParent);
- var parentRect = $mdUtil.offsetRect(parent, tooltipParent);
- var newPosition = getPosition(direction);
-
- // If the user provided a direction, just nudge the tooltip onto the screen
- // Otherwise, recalculate based on 'top' since default is 'bottom'
- if (direction) {
- newPosition = fitInParent(newPosition);
- } else if (newPosition.top > element.prop('offsetParent').scrollHeight - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE) {
- newPosition = fitInParent(getPosition('top'));
- }
-
- element.css({top: newPosition.top + 'px', left: newPosition.left + 'px'});
-
- positionBackground();
-
- function positionBackground () {
- var size = direction === 'left' || direction === 'right'
- ? Math.sqrt(Math.pow(tipRect.width, 2) + Math.pow(tipRect.height / 2, 2)) * 2
- : Math.sqrt(Math.pow(tipRect.width / 2, 2) + Math.pow(tipRect.height, 2)) * 2,
- position = direction === 'left' ? { left: 100, top: 50 }
- : direction === 'right' ? { left: 0, top: 50 }
- : direction === 'top' ? { left: 50, top: 100 }
- : { left: 50, top: 0 };
- background.css({
- width: size + 'px',
- height: size + 'px',
- left: position.left + '%',
- top: position.top + '%'
- });
- }
-
- function fitInParent (pos) {
- var newPosition = { left: pos.left, top: pos.top };
- newPosition.left = Math.min( newPosition.left, tooltipParent.prop('scrollWidth') - tipRect.width - TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.left = Math.max( newPosition.left, TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.top = Math.min( newPosition.top, tooltipParent.prop('scrollHeight') - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.top = Math.max( newPosition.top, TOOLTIP_WINDOW_EDGE_SPACE );
- return newPosition;
- }
-
- function getPosition (dir) {
- return dir === 'left'
- ? { left: parentRect.left - tipRect.width - TOOLTIP_WINDOW_EDGE_SPACE,
- top: parentRect.top + parentRect.height / 2 - tipRect.height / 2 }
- : dir === 'right'
- ? { left: parentRect.left + parentRect.width + TOOLTIP_WINDOW_EDGE_SPACE,
- top: parentRect.top + parentRect.height / 2 - tipRect.height / 2 }
- : dir === 'top'
- ? { left: parentRect.left + parentRect.width / 2 - tipRect.width / 2,
- top: parentRect.top - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE }
- : { left: parentRect.left + parentRect.width / 2 - tipRect.width / 2,
- top: parentRect.top + parentRect.height + TOOLTIP_WINDOW_EDGE_SPACE };
- }
- }
-
- }
-
-}
-MdTooltipDirective.$inject = ["$timeout", "$window", "$$rAF", "$document", "$mdUtil", "$mdTheming", "$rootElement", "$animate", "$q"];
-
-ng.material.components.tooltip = angular.module("material.components.tooltip"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/whiteframe/whiteframe.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/whiteframe/whiteframe.css
deleted file mode 100644
index a08590d4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/whiteframe/whiteframe.css
+++ /dev/null
@@ -1,25 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-whiteframe-z1 {
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z2 {
- box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.14), 0 4px 5px 0 rgba(0, 0, 0, 0.098), 0 1px 10px 0 rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z3 {
- box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.14), 0px 6px 10px 0px rgba(0, 0, 0, 0.098), 0px 1px 18px 0px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z4 {
- box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.14), 0px 8px 10px 1px rgba(0, 0, 0, 0.098), 0px 3px 14px 2px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z5 {
- box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.14), 0px 16px 24px 2px rgba(0, 0, 0, 0.098), 0px 6px 30px 5px rgba(0, 0, 0, 0.084); }
-
-@media screen and (-ms-high-contrast: active) {
- md-whiteframe {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/whiteframe/whiteframe.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/whiteframe/whiteframe.js
deleted file mode 100644
index dd3fd118..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/closure/whiteframe/whiteframe.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-goog.provide('ng.material.components.whiteframe');
-
-/**
- * @ngdoc module
- * @name material.components.whiteframe
- */
-angular.module('material.components.whiteframe', []);
-
-ng.material.components.whiteframe = angular.module("material.components.whiteframe"); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/css/angular-material-layout.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/css/angular-material-layout.css
deleted file mode 100644
index cce3b0d2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/css/angular-material-layout.css
+++ /dev/null
@@ -1,2375 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* Sizes:
- 0 <= size < 600 Phone
- 600 <= size < 960 Tablet
- 960 <= size < 1200 Tablet-Landscape
- 1200 <= size PC
-*/
-[layout] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
-
-[layout=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
-
-[layout=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
-
-[layout-padding] > [flex-sm], [layout-padding] > [flex-lt-md] {
- padding: 4px; }
-
-[layout-padding], [layout-padding] > [flex], [layout-padding] > [flex-gt-sm], [layout-padding] > [flex-md], [layout-padding] > [flex-lt-lg] {
- padding: 8px; }
-
-[layout-padding] > [flex-gt-md], [layout-padding] > [flex-lg] {
- padding: 16px; }
-
-[layout-margin] > [flex-sm], [layout-margin] > [flex-lt-md] {
- margin: 4px; }
-
-[layout-margin], [layout-margin] > [flex], [layout-margin] > [flex-gt-sm], [layout-margin] > [flex-md], [layout-margin] > [flex-lt-lg] {
- margin: 8px; }
-
-[layout-margin] > [flex-gt-md], [layout-margin] > [flex-lg] {
- margin: 16px; }
-
-[layout-wrap] {
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap; }
-
-[layout-fill] {
- margin: 0;
- min-height: 100%;
- width: 100%; }
-
-@-moz-document url-prefix() {
- [layout-fill] {
- margin: 0;
- width: 100%;
- min-height: auto;
- height: inherit; } }
-
-[flex] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
-
-[flex="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
-
-[layout="row"] > [flex="0"] {
- max-width: 0%; }
-
-[layout="column"] > [flex="0"] {
- max-height: 0%; }
-
-[flex="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
-
-[layout="row"] > [flex="5"] {
- max-width: 5%; }
-
-[layout="column"] > [flex="5"] {
- max-height: 5%; }
-
-[flex="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
-
-[layout="row"] > [flex="10"] {
- max-width: 10%; }
-
-[layout="column"] > [flex="10"] {
- max-height: 10%; }
-
-[flex="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
-
-[layout="row"] > [flex="15"] {
- max-width: 15%; }
-
-[layout="column"] > [flex="15"] {
- max-height: 15%; }
-
-[flex="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
-
-[layout="row"] > [flex="20"] {
- max-width: 20%; }
-
-[layout="column"] > [flex="20"] {
- max-height: 20%; }
-
-[flex="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
-
-[layout="row"] > [flex="25"] {
- max-width: 25%; }
-
-[layout="column"] > [flex="25"] {
- max-height: 25%; }
-
-[flex="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
-
-[layout="row"] > [flex="30"] {
- max-width: 30%; }
-
-[layout="column"] > [flex="30"] {
- max-height: 30%; }
-
-[flex="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
-
-[layout="row"] > [flex="35"] {
- max-width: 35%; }
-
-[layout="column"] > [flex="35"] {
- max-height: 35%; }
-
-[flex="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
-
-[layout="row"] > [flex="40"] {
- max-width: 40%; }
-
-[layout="column"] > [flex="40"] {
- max-height: 40%; }
-
-[flex="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
-
-[layout="row"] > [flex="45"] {
- max-width: 45%; }
-
-[layout="column"] > [flex="45"] {
- max-height: 45%; }
-
-[flex="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
-
-[layout="row"] > [flex="50"] {
- max-width: 50%; }
-
-[layout="column"] > [flex="50"] {
- max-height: 50%; }
-
-[flex="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
-
-[layout="row"] > [flex="55"] {
- max-width: 55%; }
-
-[layout="column"] > [flex="55"] {
- max-height: 55%; }
-
-[flex="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
-
-[layout="row"] > [flex="60"] {
- max-width: 60%; }
-
-[layout="column"] > [flex="60"] {
- max-height: 60%; }
-
-[flex="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
-
-[layout="row"] > [flex="65"] {
- max-width: 65%; }
-
-[layout="column"] > [flex="65"] {
- max-height: 65%; }
-
-[flex="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
-
-[layout="row"] > [flex="70"] {
- max-width: 70%; }
-
-[layout="column"] > [flex="70"] {
- max-height: 70%; }
-
-[flex="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
-
-[layout="row"] > [flex="75"] {
- max-width: 75%; }
-
-[layout="column"] > [flex="75"] {
- max-height: 75%; }
-
-[flex="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
-
-[layout="row"] > [flex="80"] {
- max-width: 80%; }
-
-[layout="column"] > [flex="80"] {
- max-height: 80%; }
-
-[flex="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
-
-[layout="row"] > [flex="85"] {
- max-width: 85%; }
-
-[layout="column"] > [flex="85"] {
- max-height: 85%; }
-
-[flex="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
-
-[layout="row"] > [flex="90"] {
- max-width: 90%; }
-
-[layout="column"] > [flex="90"] {
- max-height: 90%; }
-
-[flex="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
-
-[layout="row"] > [flex="95"] {
- max-width: 95%; }
-
-[layout="column"] > [flex="95"] {
- max-height: 95%; }
-
-[flex="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
-
-[layout="row"] > [flex="100"] {
- max-width: 100%; }
-
-[layout="column"] > [flex="100"] {
- max-height: 100%; }
-
-[flex="33"], [flex="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
-
-[flex="66"], [flex="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
-
-[layout="row"] > [flex="33"], [layout="row"] > [flex="34"] {
- max-width: 33.33%; }
-[layout="row"] > [flex="66"], [layout="row"] > [flex="67"] {
- max-width: 66.66%; }
-
-[layout="column"] > [flex="33"], [layout="column"] > [flex="34"] {
- max-height: 33.33%; }
-[layout="column"] > [flex="66"], [layout="column"] > [flex="67"] {
- max-height: 66.66%; }
-
-[layout-align="center"], [layout-align="center center"], [layout-align="center start"], [layout-align="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
-
-[layout-align="end"], [layout-align="end center"], [layout-align="end start"], [layout-align="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
-
-[layout-align="space-around"], [layout-align="space-around center"], [layout-align="space-around start"], [layout-align="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
-
-[layout-align="space-between"], [layout-align="space-between center"], [layout-align="space-between start"], [layout-align="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
-
-[layout-align="center center"], [layout-align="start center"], [layout-align="end center"], [layout-align="space-between center"], [layout-align="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
-
-[layout-align="center start"], [layout-align="start start"], [layout-align="end start"], [layout-align="space-between start"], [layout-align="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
-
-[layout-align="center end"], [layout-align="start end"], [layout-align="end end"], [layout-align="space-between end"], [layout-align="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
-
-[flex-order="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
-
-[flex-order="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
-
-[flex-order="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
-
-[flex-order="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
-
-[flex-order="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
-
-[flex-order="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
-
-[flex-order="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
-
-[flex-order="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
-
-[flex-order="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
-
-[flex-order="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
-
-[offset="5"] {
- margin-left: 5%; }
-
-[offset="10"] {
- margin-left: 10%; }
-
-[offset="15"] {
- margin-left: 15%; }
-
-[offset="20"] {
- margin-left: 20%; }
-
-[offset="25"] {
- margin-left: 25%; }
-
-[offset="30"] {
- margin-left: 30%; }
-
-[offset="35"] {
- margin-left: 35%; }
-
-[offset="40"] {
- margin-left: 40%; }
-
-[offset="45"] {
- margin-left: 45%; }
-
-[offset="50"] {
- margin-left: 50%; }
-
-[offset="55"] {
- margin-left: 55%; }
-
-[offset="60"] {
- margin-left: 60%; }
-
-[offset="65"] {
- margin-left: 65%; }
-
-[offset="70"] {
- margin-left: 70%; }
-
-[offset="75"] {
- margin-left: 75%; }
-
-[offset="80"] {
- margin-left: 80%; }
-
-[offset="85"] {
- margin-left: 85%; }
-
-[offset="90"] {
- margin-left: 90%; }
-
-[offset="95"] {
- margin-left: 95%; }
-
-[offset="33"], [offset="34"] {
- margin-left: 33.33%; }
-
-[offset="66"], [offset="67"] {
- margin-left: 66.66%; }
-
-/**
- * `hide-gt-sm show-gt-lg` should hide from 600px to 1200px
- * `show-md hide-gt-sm` should show from 0px to 960px and hide at >960px
- * `hide-gt-md show-gt-sm` should show everywhere (show overrides hide)`
- */
-@media (max-width: 599px) {
- [hide-sm]:not([show-sm]):not([show]), [hide]:not([show-sm]):not([show]) {
- display: none; }
- [flex-order-sm="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-sm="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-sm="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-sm="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-sm="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-sm="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-sm="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-sm="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-sm="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-sm="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-sm="center"], [layout-align-sm="center center"], [layout-align-sm="center start"], [layout-align-sm="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-sm="end"], [layout-align-sm="end center"], [layout-align-sm="end start"], [layout-align-sm="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-sm="space-around"], [layout-align-sm="space-around center"], [layout-align-sm="space-around start"], [layout-align-sm="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-sm="space-between"], [layout-align-sm="space-between center"], [layout-align-sm="space-between start"], [layout-align-sm="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-sm="center center"], [layout-align-sm="start center"], [layout-align-sm="end center"], [layout-align-sm="space-between center"], [layout-align-sm="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-sm="center start"], [layout-align-sm="start start"], [layout-align-sm="end start"], [layout-align-sm="space-between start"], [layout-align-sm="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-sm="center end"], [layout-align-sm="start end"], [layout-align-sm="end end"], [layout-align-sm="space-between end"], [layout-align-sm="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-sm] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-sm=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-sm=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-sm="5"] {
- margin-left: 5%; }
- [offset-sm="10"] {
- margin-left: 10%; }
- [offset-sm="15"] {
- margin-left: 15%; }
- [offset-sm="20"] {
- margin-left: 20%; }
- [offset-sm="25"] {
- margin-left: 25%; }
- [offset-sm="30"] {
- margin-left: 30%; }
- [offset-sm="35"] {
- margin-left: 35%; }
- [offset-sm="40"] {
- margin-left: 40%; }
- [offset-sm="45"] {
- margin-left: 45%; }
- [offset-sm="50"] {
- margin-left: 50%; }
- [offset-sm="55"] {
- margin-left: 55%; }
- [offset-sm="60"] {
- margin-left: 60%; }
- [offset-sm="65"] {
- margin-left: 65%; }
- [offset-sm="70"] {
- margin-left: 70%; }
- [offset-sm="75"] {
- margin-left: 75%; }
- [offset-sm="80"] {
- margin-left: 80%; }
- [offset-sm="85"] {
- margin-left: 85%; }
- [offset-sm="90"] {
- margin-left: 90%; }
- [offset-sm="95"] {
- margin-left: 95%; }
- [offset-sm="33"], [offset-sm="34"] {
- margin-left: 33.33%; }
- [offset-sm="66"], [offset-sm="67"] {
- margin-left: 66.66%; }
- [flex-sm] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-sm="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-sm="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-sm="0"] {
- max-height: 0%; }
- [flex-sm="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-sm="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-sm="5"] {
- max-height: 5%; }
- [flex-sm="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-sm="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-sm="10"] {
- max-height: 10%; }
- [flex-sm="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-sm="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-sm="15"] {
- max-height: 15%; }
- [flex-sm="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-sm="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-sm="20"] {
- max-height: 20%; }
- [flex-sm="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-sm="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-sm="25"] {
- max-height: 25%; }
- [flex-sm="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-sm="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-sm="30"] {
- max-height: 30%; }
- [flex-sm="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-sm="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-sm="35"] {
- max-height: 35%; }
- [flex-sm="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-sm="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-sm="40"] {
- max-height: 40%; }
- [flex-sm="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-sm="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-sm="45"] {
- max-height: 45%; }
- [flex-sm="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-sm="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-sm="50"] {
- max-height: 50%; }
- [flex-sm="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-sm="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-sm="55"] {
- max-height: 55%; }
- [flex-sm="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-sm="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-sm="60"] {
- max-height: 60%; }
- [flex-sm="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-sm="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-sm="65"] {
- max-height: 65%; }
- [flex-sm="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-sm="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-sm="70"] {
- max-height: 70%; }
- [flex-sm="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-sm="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-sm="75"] {
- max-height: 75%; }
- [flex-sm="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-sm="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-sm="80"] {
- max-height: 80%; }
- [flex-sm="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-sm="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-sm="85"] {
- max-height: 85%; }
- [flex-sm="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-sm="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-sm="90"] {
- max-height: 90%; }
- [flex-sm="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-sm="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-sm="95"] {
- max-height: 95%; }
- [flex-sm="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-sm="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-sm="100"] {
- max-height: 100%; }
- [flex-sm="33"], [flex-sm="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-sm="66"], [flex-sm="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-sm="33"], [layout="row"] > [flex-sm="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-sm="66"], [layout="row"] > [flex-sm="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-sm="33"], [layout="column"] > [flex-sm="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-sm="66"], [layout="column"] > [flex-sm="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 600px) {
- [flex-order-gt-sm="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-sm="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-sm="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-sm="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-sm="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-sm="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-sm="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-sm="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-sm="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-sm="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-sm="center"], [layout-align-gt-sm="center center"], [layout-align-gt-sm="center start"], [layout-align-gt-sm="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-sm="end"], [layout-align-gt-sm="end center"], [layout-align-gt-sm="end start"], [layout-align-gt-sm="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-sm="space-around"], [layout-align-gt-sm="space-around center"], [layout-align-gt-sm="space-around start"], [layout-align-gt-sm="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-sm="space-between"], [layout-align-gt-sm="space-between center"], [layout-align-gt-sm="space-between start"], [layout-align-gt-sm="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-sm="center center"], [layout-align-gt-sm="start center"], [layout-align-gt-sm="end center"], [layout-align-gt-sm="space-between center"], [layout-align-gt-sm="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-sm="center start"], [layout-align-gt-sm="start start"], [layout-align-gt-sm="end start"], [layout-align-gt-sm="space-between start"], [layout-align-gt-sm="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-sm="center end"], [layout-align-gt-sm="start end"], [layout-align-gt-sm="end end"], [layout-align-gt-sm="space-between end"], [layout-align-gt-sm="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-sm] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-sm=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-sm=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-sm="5"] {
- margin-left: 5%; }
- [offset-gt-sm="10"] {
- margin-left: 10%; }
- [offset-gt-sm="15"] {
- margin-left: 15%; }
- [offset-gt-sm="20"] {
- margin-left: 20%; }
- [offset-gt-sm="25"] {
- margin-left: 25%; }
- [offset-gt-sm="30"] {
- margin-left: 30%; }
- [offset-gt-sm="35"] {
- margin-left: 35%; }
- [offset-gt-sm="40"] {
- margin-left: 40%; }
- [offset-gt-sm="45"] {
- margin-left: 45%; }
- [offset-gt-sm="50"] {
- margin-left: 50%; }
- [offset-gt-sm="55"] {
- margin-left: 55%; }
- [offset-gt-sm="60"] {
- margin-left: 60%; }
- [offset-gt-sm="65"] {
- margin-left: 65%; }
- [offset-gt-sm="70"] {
- margin-left: 70%; }
- [offset-gt-sm="75"] {
- margin-left: 75%; }
- [offset-gt-sm="80"] {
- margin-left: 80%; }
- [offset-gt-sm="85"] {
- margin-left: 85%; }
- [offset-gt-sm="90"] {
- margin-left: 90%; }
- [offset-gt-sm="95"] {
- margin-left: 95%; }
- [offset-gt-sm="33"], [offset-gt-sm="34"] {
- margin-left: 33.33%; }
- [offset-gt-sm="66"], [offset-gt-sm="67"] {
- margin-left: 66.66%; }
- [flex-gt-sm] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-sm="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-sm="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-sm="0"] {
- max-height: 0%; }
- [flex-gt-sm="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-sm="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-sm="5"] {
- max-height: 5%; }
- [flex-gt-sm="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-sm="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-sm="10"] {
- max-height: 10%; }
- [flex-gt-sm="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-sm="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-sm="15"] {
- max-height: 15%; }
- [flex-gt-sm="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-sm="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-sm="20"] {
- max-height: 20%; }
- [flex-gt-sm="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-sm="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-sm="25"] {
- max-height: 25%; }
- [flex-gt-sm="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-sm="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-sm="30"] {
- max-height: 30%; }
- [flex-gt-sm="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-sm="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-sm="35"] {
- max-height: 35%; }
- [flex-gt-sm="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-sm="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-sm="40"] {
- max-height: 40%; }
- [flex-gt-sm="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-sm="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-sm="45"] {
- max-height: 45%; }
- [flex-gt-sm="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-sm="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-sm="50"] {
- max-height: 50%; }
- [flex-gt-sm="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-sm="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-sm="55"] {
- max-height: 55%; }
- [flex-gt-sm="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-sm="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-sm="60"] {
- max-height: 60%; }
- [flex-gt-sm="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-sm="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-sm="65"] {
- max-height: 65%; }
- [flex-gt-sm="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-sm="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-sm="70"] {
- max-height: 70%; }
- [flex-gt-sm="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-sm="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-sm="75"] {
- max-height: 75%; }
- [flex-gt-sm="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-sm="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-sm="80"] {
- max-height: 80%; }
- [flex-gt-sm="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-sm="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-sm="85"] {
- max-height: 85%; }
- [flex-gt-sm="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-sm="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-sm="90"] {
- max-height: 90%; }
- [flex-gt-sm="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-sm="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-sm="95"] {
- max-height: 95%; }
- [flex-gt-sm="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-sm="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-sm="100"] {
- max-height: 100%; }
- [flex-gt-sm="33"], [flex-gt-sm="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-sm="66"], [flex-gt-sm="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-sm="33"], [layout="row"] > [flex-gt-sm="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-sm="66"], [layout="row"] > [flex-gt-sm="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-sm="33"], [layout="column"] > [flex-gt-sm="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-sm="66"], [layout="column"] > [flex-gt-sm="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 600px) and (max-width: 959px) {
- [hide]:not([show-gt-sm]):not([show-md]):not([show]), [hide-gt-sm]:not([show-gt-sm]):not([show-md]):not([show]) {
- display: none; }
- [hide-md]:not([show-md]):not([show]) {
- display: none; }
- [flex-order-md="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-md="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-md="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-md="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-md="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-md="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-md="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-md="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-md="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-md="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-md="center"], [layout-align-md="center center"], [layout-align-md="center start"], [layout-align-md="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-md="end"], [layout-align-md="end center"], [layout-align-md="end start"], [layout-align-md="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-md="space-around"], [layout-align-md="space-around center"], [layout-align-md="space-around start"], [layout-align-md="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-md="space-between"], [layout-align-md="space-between center"], [layout-align-md="space-between start"], [layout-align-md="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-md="center center"], [layout-align-md="start center"], [layout-align-md="end center"], [layout-align-md="space-between center"], [layout-align-md="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-md="center start"], [layout-align-md="start start"], [layout-align-md="end start"], [layout-align-md="space-between start"], [layout-align-md="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-md="center end"], [layout-align-md="start end"], [layout-align-md="end end"], [layout-align-md="space-between end"], [layout-align-md="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-md] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-md=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-md=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-md="5"] {
- margin-left: 5%; }
- [offset-md="10"] {
- margin-left: 10%; }
- [offset-md="15"] {
- margin-left: 15%; }
- [offset-md="20"] {
- margin-left: 20%; }
- [offset-md="25"] {
- margin-left: 25%; }
- [offset-md="30"] {
- margin-left: 30%; }
- [offset-md="35"] {
- margin-left: 35%; }
- [offset-md="40"] {
- margin-left: 40%; }
- [offset-md="45"] {
- margin-left: 45%; }
- [offset-md="50"] {
- margin-left: 50%; }
- [offset-md="55"] {
- margin-left: 55%; }
- [offset-md="60"] {
- margin-left: 60%; }
- [offset-md="65"] {
- margin-left: 65%; }
- [offset-md="70"] {
- margin-left: 70%; }
- [offset-md="75"] {
- margin-left: 75%; }
- [offset-md="80"] {
- margin-left: 80%; }
- [offset-md="85"] {
- margin-left: 85%; }
- [offset-md="90"] {
- margin-left: 90%; }
- [offset-md="95"] {
- margin-left: 95%; }
- [offset-md="33"], [offset-md="34"] {
- margin-left: 33.33%; }
- [offset-md="66"], [offset-md="67"] {
- margin-left: 66.66%; }
- [flex-md] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-md="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-md="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-md="0"] {
- max-height: 0%; }
- [flex-md="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-md="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-md="5"] {
- max-height: 5%; }
- [flex-md="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-md="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-md="10"] {
- max-height: 10%; }
- [flex-md="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-md="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-md="15"] {
- max-height: 15%; }
- [flex-md="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-md="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-md="20"] {
- max-height: 20%; }
- [flex-md="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-md="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-md="25"] {
- max-height: 25%; }
- [flex-md="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-md="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-md="30"] {
- max-height: 30%; }
- [flex-md="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-md="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-md="35"] {
- max-height: 35%; }
- [flex-md="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-md="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-md="40"] {
- max-height: 40%; }
- [flex-md="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-md="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-md="45"] {
- max-height: 45%; }
- [flex-md="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-md="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-md="50"] {
- max-height: 50%; }
- [flex-md="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-md="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-md="55"] {
- max-height: 55%; }
- [flex-md="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-md="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-md="60"] {
- max-height: 60%; }
- [flex-md="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-md="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-md="65"] {
- max-height: 65%; }
- [flex-md="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-md="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-md="70"] {
- max-height: 70%; }
- [flex-md="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-md="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-md="75"] {
- max-height: 75%; }
- [flex-md="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-md="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-md="80"] {
- max-height: 80%; }
- [flex-md="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-md="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-md="85"] {
- max-height: 85%; }
- [flex-md="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-md="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-md="90"] {
- max-height: 90%; }
- [flex-md="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-md="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-md="95"] {
- max-height: 95%; }
- [flex-md="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-md="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-md="100"] {
- max-height: 100%; }
- [flex-md="33"], [flex-md="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-md="66"], [flex-md="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-md="33"], [layout="row"] > [flex-md="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-md="66"], [layout="row"] > [flex-md="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-md="33"], [layout="column"] > [flex-md="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-md="66"], [layout="column"] > [flex-md="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 960px) {
- [flex-order-gt-md="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-md="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-md="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-md="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-md="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-md="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-md="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-md="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-md="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-md="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-md="center"], [layout-align-gt-md="center center"], [layout-align-gt-md="center start"], [layout-align-gt-md="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-md="end"], [layout-align-gt-md="end center"], [layout-align-gt-md="end start"], [layout-align-gt-md="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-md="space-around"], [layout-align-gt-md="space-around center"], [layout-align-gt-md="space-around start"], [layout-align-gt-md="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-md="space-between"], [layout-align-gt-md="space-between center"], [layout-align-gt-md="space-between start"], [layout-align-gt-md="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-md="center center"], [layout-align-gt-md="start center"], [layout-align-gt-md="end center"], [layout-align-gt-md="space-between center"], [layout-align-gt-md="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-md="center start"], [layout-align-gt-md="start start"], [layout-align-gt-md="end start"], [layout-align-gt-md="space-between start"], [layout-align-gt-md="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-md="center end"], [layout-align-gt-md="start end"], [layout-align-gt-md="end end"], [layout-align-gt-md="space-between end"], [layout-align-gt-md="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-md] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-md=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-md=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-md="5"] {
- margin-left: 5%; }
- [offset-gt-md="10"] {
- margin-left: 10%; }
- [offset-gt-md="15"] {
- margin-left: 15%; }
- [offset-gt-md="20"] {
- margin-left: 20%; }
- [offset-gt-md="25"] {
- margin-left: 25%; }
- [offset-gt-md="30"] {
- margin-left: 30%; }
- [offset-gt-md="35"] {
- margin-left: 35%; }
- [offset-gt-md="40"] {
- margin-left: 40%; }
- [offset-gt-md="45"] {
- margin-left: 45%; }
- [offset-gt-md="50"] {
- margin-left: 50%; }
- [offset-gt-md="55"] {
- margin-left: 55%; }
- [offset-gt-md="60"] {
- margin-left: 60%; }
- [offset-gt-md="65"] {
- margin-left: 65%; }
- [offset-gt-md="70"] {
- margin-left: 70%; }
- [offset-gt-md="75"] {
- margin-left: 75%; }
- [offset-gt-md="80"] {
- margin-left: 80%; }
- [offset-gt-md="85"] {
- margin-left: 85%; }
- [offset-gt-md="90"] {
- margin-left: 90%; }
- [offset-gt-md="95"] {
- margin-left: 95%; }
- [offset-gt-md="33"], [offset-gt-md="34"] {
- margin-left: 33.33%; }
- [offset-gt-md="66"], [offset-gt-md="67"] {
- margin-left: 66.66%; }
- [flex-gt-md] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-md="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-md="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-md="0"] {
- max-height: 0%; }
- [flex-gt-md="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-md="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-md="5"] {
- max-height: 5%; }
- [flex-gt-md="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-md="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-md="10"] {
- max-height: 10%; }
- [flex-gt-md="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-md="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-md="15"] {
- max-height: 15%; }
- [flex-gt-md="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-md="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-md="20"] {
- max-height: 20%; }
- [flex-gt-md="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-md="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-md="25"] {
- max-height: 25%; }
- [flex-gt-md="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-md="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-md="30"] {
- max-height: 30%; }
- [flex-gt-md="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-md="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-md="35"] {
- max-height: 35%; }
- [flex-gt-md="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-md="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-md="40"] {
- max-height: 40%; }
- [flex-gt-md="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-md="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-md="45"] {
- max-height: 45%; }
- [flex-gt-md="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-md="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-md="50"] {
- max-height: 50%; }
- [flex-gt-md="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-md="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-md="55"] {
- max-height: 55%; }
- [flex-gt-md="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-md="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-md="60"] {
- max-height: 60%; }
- [flex-gt-md="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-md="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-md="65"] {
- max-height: 65%; }
- [flex-gt-md="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-md="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-md="70"] {
- max-height: 70%; }
- [flex-gt-md="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-md="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-md="75"] {
- max-height: 75%; }
- [flex-gt-md="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-md="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-md="80"] {
- max-height: 80%; }
- [flex-gt-md="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-md="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-md="85"] {
- max-height: 85%; }
- [flex-gt-md="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-md="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-md="90"] {
- max-height: 90%; }
- [flex-gt-md="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-md="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-md="95"] {
- max-height: 95%; }
- [flex-gt-md="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-md="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-md="100"] {
- max-height: 100%; }
- [flex-gt-md="33"], [flex-gt-md="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-md="66"], [flex-gt-md="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-md="33"], [layout="row"] > [flex-gt-md="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-md="66"], [layout="row"] > [flex-gt-md="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-md="33"], [layout="column"] > [flex-gt-md="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-md="66"], [layout="column"] > [flex-gt-md="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 960px) and (max-width: 1199px) {
- [hide]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]), [hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]), [hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]) {
- display: none; }
- [hide-lg]:not([show-lg]):not([show]) {
- display: none; }
- [flex-order-lg="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-lg="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-lg="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-lg="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-lg="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-lg="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-lg="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-lg="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-lg="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-lg="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-lg="center"], [layout-align-lg="center center"], [layout-align-lg="center start"], [layout-align-lg="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-lg="end"], [layout-align-lg="end center"], [layout-align-lg="end start"], [layout-align-lg="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-lg="space-around"], [layout-align-lg="space-around center"], [layout-align-lg="space-around start"], [layout-align-lg="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-lg="space-between"], [layout-align-lg="space-between center"], [layout-align-lg="space-between start"], [layout-align-lg="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-lg="center center"], [layout-align-lg="start center"], [layout-align-lg="end center"], [layout-align-lg="space-between center"], [layout-align-lg="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-lg="center start"], [layout-align-lg="start start"], [layout-align-lg="end start"], [layout-align-lg="space-between start"], [layout-align-lg="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-lg="center end"], [layout-align-lg="start end"], [layout-align-lg="end end"], [layout-align-lg="space-between end"], [layout-align-lg="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-lg] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-lg=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-lg=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-lg="5"] {
- margin-left: 5%; }
- [offset-lg="10"] {
- margin-left: 10%; }
- [offset-lg="15"] {
- margin-left: 15%; }
- [offset-lg="20"] {
- margin-left: 20%; }
- [offset-lg="25"] {
- margin-left: 25%; }
- [offset-lg="30"] {
- margin-left: 30%; }
- [offset-lg="35"] {
- margin-left: 35%; }
- [offset-lg="40"] {
- margin-left: 40%; }
- [offset-lg="45"] {
- margin-left: 45%; }
- [offset-lg="50"] {
- margin-left: 50%; }
- [offset-lg="55"] {
- margin-left: 55%; }
- [offset-lg="60"] {
- margin-left: 60%; }
- [offset-lg="65"] {
- margin-left: 65%; }
- [offset-lg="70"] {
- margin-left: 70%; }
- [offset-lg="75"] {
- margin-left: 75%; }
- [offset-lg="80"] {
- margin-left: 80%; }
- [offset-lg="85"] {
- margin-left: 85%; }
- [offset-lg="90"] {
- margin-left: 90%; }
- [offset-lg="95"] {
- margin-left: 95%; }
- [offset-lg="33"], [offset-lg="34"] {
- margin-left: 33.33%; }
- [offset-lg="66"], [offset-lg="67"] {
- margin-left: 66.66%; }
- [flex-lg] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-lg="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-lg="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-lg="0"] {
- max-height: 0%; }
- [flex-lg="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-lg="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-lg="5"] {
- max-height: 5%; }
- [flex-lg="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-lg="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-lg="10"] {
- max-height: 10%; }
- [flex-lg="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-lg="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-lg="15"] {
- max-height: 15%; }
- [flex-lg="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-lg="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-lg="20"] {
- max-height: 20%; }
- [flex-lg="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-lg="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-lg="25"] {
- max-height: 25%; }
- [flex-lg="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-lg="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-lg="30"] {
- max-height: 30%; }
- [flex-lg="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-lg="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-lg="35"] {
- max-height: 35%; }
- [flex-lg="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-lg="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-lg="40"] {
- max-height: 40%; }
- [flex-lg="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-lg="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-lg="45"] {
- max-height: 45%; }
- [flex-lg="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-lg="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-lg="50"] {
- max-height: 50%; }
- [flex-lg="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-lg="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-lg="55"] {
- max-height: 55%; }
- [flex-lg="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-lg="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-lg="60"] {
- max-height: 60%; }
- [flex-lg="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-lg="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-lg="65"] {
- max-height: 65%; }
- [flex-lg="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-lg="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-lg="70"] {
- max-height: 70%; }
- [flex-lg="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-lg="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-lg="75"] {
- max-height: 75%; }
- [flex-lg="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-lg="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-lg="80"] {
- max-height: 80%; }
- [flex-lg="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-lg="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-lg="85"] {
- max-height: 85%; }
- [flex-lg="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-lg="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-lg="90"] {
- max-height: 90%; }
- [flex-lg="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-lg="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-lg="95"] {
- max-height: 95%; }
- [flex-lg="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-lg="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-lg="100"] {
- max-height: 100%; }
- [flex-lg="33"], [flex-lg="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-lg="66"], [flex-lg="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-lg="33"], [layout="row"] > [flex-lg="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-lg="66"], [layout="row"] > [flex-lg="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-lg="33"], [layout="column"] > [flex-lg="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-lg="66"], [layout="column"] > [flex-lg="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 1200px) {
- [hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide-gt-lg]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]) {
- display: none; }
- [flex-order-gt-lg="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-lg="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-lg="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-lg="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-lg="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-lg="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-lg="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-lg="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-lg="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-lg="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-lg="center"], [layout-align-gt-lg="center center"], [layout-align-gt-lg="center start"], [layout-align-gt-lg="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-lg="end"], [layout-align-gt-lg="end center"], [layout-align-gt-lg="end start"], [layout-align-gt-lg="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-lg="space-around"], [layout-align-gt-lg="space-around center"], [layout-align-gt-lg="space-around start"], [layout-align-gt-lg="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-lg="space-between"], [layout-align-gt-lg="space-between center"], [layout-align-gt-lg="space-between start"], [layout-align-gt-lg="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-lg="center center"], [layout-align-gt-lg="start center"], [layout-align-gt-lg="end center"], [layout-align-gt-lg="space-between center"], [layout-align-gt-lg="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-lg="center start"], [layout-align-gt-lg="start start"], [layout-align-gt-lg="end start"], [layout-align-gt-lg="space-between start"], [layout-align-gt-lg="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-lg="center end"], [layout-align-gt-lg="start end"], [layout-align-gt-lg="end end"], [layout-align-gt-lg="space-between end"], [layout-align-gt-lg="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-lg] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-lg=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-lg=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-lg="5"] {
- margin-left: 5%; }
- [offset-gt-lg="10"] {
- margin-left: 10%; }
- [offset-gt-lg="15"] {
- margin-left: 15%; }
- [offset-gt-lg="20"] {
- margin-left: 20%; }
- [offset-gt-lg="25"] {
- margin-left: 25%; }
- [offset-gt-lg="30"] {
- margin-left: 30%; }
- [offset-gt-lg="35"] {
- margin-left: 35%; }
- [offset-gt-lg="40"] {
- margin-left: 40%; }
- [offset-gt-lg="45"] {
- margin-left: 45%; }
- [offset-gt-lg="50"] {
- margin-left: 50%; }
- [offset-gt-lg="55"] {
- margin-left: 55%; }
- [offset-gt-lg="60"] {
- margin-left: 60%; }
- [offset-gt-lg="65"] {
- margin-left: 65%; }
- [offset-gt-lg="70"] {
- margin-left: 70%; }
- [offset-gt-lg="75"] {
- margin-left: 75%; }
- [offset-gt-lg="80"] {
- margin-left: 80%; }
- [offset-gt-lg="85"] {
- margin-left: 85%; }
- [offset-gt-lg="90"] {
- margin-left: 90%; }
- [offset-gt-lg="95"] {
- margin-left: 95%; }
- [offset-gt-lg="33"], [offset-gt-lg="34"] {
- margin-left: 33.33%; }
- [offset-gt-lg="66"], [offset-gt-lg="67"] {
- margin-left: 66.66%; }
- [flex-gt-lg] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-lg="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-lg="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-lg="0"] {
- max-height: 0%; }
- [flex-gt-lg="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-lg="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-lg="5"] {
- max-height: 5%; }
- [flex-gt-lg="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-lg="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-lg="10"] {
- max-height: 10%; }
- [flex-gt-lg="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-lg="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-lg="15"] {
- max-height: 15%; }
- [flex-gt-lg="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-lg="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-lg="20"] {
- max-height: 20%; }
- [flex-gt-lg="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-lg="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-lg="25"] {
- max-height: 25%; }
- [flex-gt-lg="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-lg="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-lg="30"] {
- max-height: 30%; }
- [flex-gt-lg="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-lg="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-lg="35"] {
- max-height: 35%; }
- [flex-gt-lg="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-lg="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-lg="40"] {
- max-height: 40%; }
- [flex-gt-lg="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-lg="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-lg="45"] {
- max-height: 45%; }
- [flex-gt-lg="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-lg="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-lg="50"] {
- max-height: 50%; }
- [flex-gt-lg="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-lg="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-lg="55"] {
- max-height: 55%; }
- [flex-gt-lg="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-lg="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-lg="60"] {
- max-height: 60%; }
- [flex-gt-lg="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-lg="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-lg="65"] {
- max-height: 65%; }
- [flex-gt-lg="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-lg="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-lg="70"] {
- max-height: 70%; }
- [flex-gt-lg="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-lg="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-lg="75"] {
- max-height: 75%; }
- [flex-gt-lg="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-lg="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-lg="80"] {
- max-height: 80%; }
- [flex-gt-lg="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-lg="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-lg="85"] {
- max-height: 85%; }
- [flex-gt-lg="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-lg="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-lg="90"] {
- max-height: 90%; }
- [flex-gt-lg="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-lg="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-lg="95"] {
- max-height: 95%; }
- [flex-gt-lg="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-lg="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-lg="100"] {
- max-height: 100%; }
- [flex-gt-lg="33"], [flex-gt-lg="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-lg="66"], [flex-gt-lg="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-lg="33"], [layout="row"] > [flex-gt-lg="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-lg="66"], [layout="row"] > [flex-gt-lg="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-lg="33"], [layout="column"] > [flex-gt-lg="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-lg="66"], [layout="column"] > [flex-gt-lg="67"] {
- max-height: 66.66%; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.css
deleted file mode 100644
index d5374598..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.css
+++ /dev/null
@@ -1,24 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-autocomplete.md-THEME_NAME-theme {
- background: '{{background-50}}'; }
- md-autocomplete.md-THEME_NAME-theme[disabled] {
- background: '{{background-100}}'; }
- md-autocomplete.md-THEME_NAME-theme button md-icon path {
- fill: '{{background-600}}'; }
- md-autocomplete.md-THEME_NAME-theme button:after {
- background: '{{background-600-0.3}}'; }
-
-.md-autocomplete-suggestions.md-THEME_NAME-theme {
- background: '{{background-50}}'; }
- .md-autocomplete-suggestions.md-THEME_NAME-theme li {
- color: '{{background-900}}'; }
- .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight {
- color: '{{background-600}}'; }
- .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected {
- background: '{{background-200}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.min.css
deleted file mode 100644
index 94f5aff9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-autocomplete.md-THEME_NAME-theme,md-autocomplete.md-THEME_NAME-theme[disabled]{background:0 0}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:'{{background-600}}'}.md-autocomplete-suggestions.md-THEME_NAME-theme,md-autocomplete.md-THEME_NAME-theme button:after{background:0 0}.md-autocomplete-suggestions.md-THEME_NAME-theme li{color:'{{background-900}}'}.md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight{color:'{{background-600}}'}.md-autocomplete-suggestions.md-THEME_NAME-theme li.selected,.md-autocomplete-suggestions.md-THEME_NAME-theme li:hover{background:0 0} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.css
deleted file mode 100644
index 51c3f857..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.css
+++ /dev/null
@@ -1,220 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes md-autocomplete-list-out {
- 0% {
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 50% {
- opacity: 0;
- height: 40px;
- -webkit-animation-timing-function: ease-in;
- animation-timing-function: ease-in; }
-
- 100% {
- height: 0;
- opacity: 0; } }
-@keyframes md-autocomplete-list-out {
- 0% {
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 50% {
- opacity: 0;
- height: 40px;
- -webkit-animation-timing-function: ease-in;
- animation-timing-function: ease-in; }
-
- 100% {
- height: 0;
- opacity: 0; } }
-
-@-webkit-keyframes md-autocomplete-list-in {
- 0% {
- opacity: 0;
- height: 0;
- -webkit-animation-timing-function: ease-out;
- animation-timing-function: ease-out; }
-
- 50% {
- opacity: 0;
- height: 40px; }
-
- 100% {
- opacity: 1;
- height: 40px; } }
-
-@keyframes md-autocomplete-list-in {
- 0% {
- opacity: 0;
- height: 0;
- -webkit-animation-timing-function: ease-out;
- animation-timing-function: ease-out; }
-
- 50% {
- opacity: 0;
- height: 40px; }
-
- 100% {
- opacity: 1;
- height: 40px; } }
-
-md-autocomplete {
- border-radius: 2px;
- display: block;
- height: 40px;
- position: relative;
- overflow: visible;
- min-width: 190px; }
- md-autocomplete[disabled] input {
- cursor: not-allowed; }
- md-autocomplete[md-floating-label] {
- padding-bottom: 26px;
- border-radius: 0;
- background: transparent;
- height: auto; }
- md-autocomplete[md-floating-label] md-input-container {
- padding-bottom: 0; }
- md-autocomplete[md-floating-label] md-autocomplete-wrap {
- height: auto; }
- md-autocomplete[md-floating-label] button {
- position: absolute;
- top: auto;
- bottom: 0;
- right: 0;
- width: 30px;
- height: 30px; }
- md-autocomplete md-autocomplete-wrap {
- display: block;
- position: relative;
- overflow: visible;
- height: 40px; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate] {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 3px;
- transition: none; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate] .md-container {
- transition: none;
- top: auto;
- height: 3px; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter {
- transition: opacity 0.15s linear; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter.ng-enter-active {
- opacity: 1; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave {
- transition: opacity 0.15s linear; }
- md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave.ng-leave-active {
- opacity: 0; }
- md-autocomplete input:not(.md-input) {
- width: 100%;
- box-sizing: border-box;
- border: none;
- box-shadow: none;
- padding: 0 15px;
- font-size: 14px;
- line-height: 40px;
- height: 40px;
- outline: none;
- background: transparent; }
- md-autocomplete input:not(.md-input)::-ms-clear {
- display: none; }
- md-autocomplete button {
- position: relative;
- line-height: 20px;
- text-align: center;
- width: 30px;
- height: 30px;
- cursor: pointer;
- border: none;
- border-radius: 50%;
- padding: 0;
- font-size: 12px;
- background: transparent;
- margin: auto 5px; }
- md-autocomplete button:after {
- content: '';
- position: absolute;
- top: -6px;
- right: -6px;
- bottom: -6px;
- left: -6px;
- border-radius: 50%;
- -webkit-transform: scale(0);
- transform: scale(0);
- opacity: 0;
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-autocomplete button:focus {
- outline: none; }
- md-autocomplete button:focus:after {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
- md-autocomplete button md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0) scale(0.9);
- transform: translate3d(-50%, -50%, 0) scale(0.9); }
- md-autocomplete button md-icon path {
- stroke-width: 0; }
- md-autocomplete button.ng-enter {
- -webkit-transform: scale(0);
- transform: scale(0);
- transition: -webkit-transform 0.15s ease-out;
- transition: transform 0.15s ease-out; }
- md-autocomplete button.ng-enter.ng-enter-active {
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-autocomplete button.ng-leave {
- transition: -webkit-transform 0.15s ease-out;
- transition: transform 0.15s ease-out; }
- md-autocomplete button.ng-leave.ng-leave-active {
- -webkit-transform: scale(0);
- transform: scale(0); }
- @media screen and (-ms-high-contrast: active) {
- md-autocomplete input {
- border: 1px solid #fff; }
- md-autocomplete li:focus {
- color: #fff; } }
-
-.md-autocomplete-suggestions {
- position: absolute;
- margin: 0;
- list-style: none;
- padding: 0;
- overflow: auto;
- max-height: 225.5px;
- z-index: 100; }
- .md-autocomplete-suggestions li {
- cursor: pointer;
- font-size: 14px;
- overflow: hidden;
- padding: 0 15px;
- line-height: 48px;
- height: 48px;
- transition: background 0.15s linear;
- margin: 0;
- white-space: nowrap;
- text-overflow: ellipsis; }
- .md-autocomplete-suggestions li.ng-enter, .md-autocomplete-suggestions li.ng-hide-remove {
- transition: none;
- -webkit-animation: md-autocomplete-list-in 0.2s;
- animation: md-autocomplete-list-in 0.2s; }
- .md-autocomplete-suggestions li.ng-leave, .md-autocomplete-suggestions li.ng-hide-add {
- transition: none;
- -webkit-animation: md-autocomplete-list-out 0.2s;
- animation: md-autocomplete-list-out 0.2s; }
- .md-autocomplete-suggestions li:focus {
- outline: none; }
-
-@media screen and (-ms-high-contrast: active) {
- md-autocomplete, .md-autocomplete-suggestions {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.js
deleted file mode 100644
index 061cf329..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.js
+++ /dev/null
@@ -1,794 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.autocomplete
- */
-/*
- * @see js folder for autocomplete implementation
- */
-angular.module('material.components.autocomplete', [
- 'material.core',
- 'material.components.icon'
-]);
-
-angular
- .module('material.components.autocomplete')
- .controller('MdAutocompleteCtrl', MdAutocompleteCtrl);
-
-var ITEM_HEIGHT = 41,
- MAX_HEIGHT = 5.5 * ITEM_HEIGHT,
- MENU_PADDING = 8;
-
-function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $timeout, $mdTheming, $window, $animate, $rootElement) {
-
- //-- private variables
-
- var self = this,
- itemParts = $scope.itemsExpr.split(/ in /i),
- itemExpr = itemParts[1],
- elements = null,
- promise = null,
- cache = {},
- noBlur = false,
- selectedItemWatchers = [],
- hasFocus = false,
- lastCount = 0;
-
- //-- public variables
-
- self.scope = $scope;
- self.parent = $scope.$parent;
- self.itemName = itemParts[0];
- self.matches = [];
- self.loading = false;
- self.hidden = true;
- self.index = null;
- self.messages = [];
- self.id = $mdUtil.nextUid();
-
- //-- public methods
-
- self.keydown = keydown;
- self.blur = blur;
- self.focus = focus;
- self.clear = clearValue;
- self.select = select;
- self.getCurrentDisplayValue = getCurrentDisplayValue;
- self.registerSelectedItemWatcher = registerSelectedItemWatcher;
- self.unregisterSelectedItemWatcher = unregisterSelectedItemWatcher;
-
- self.listEnter = function () { noBlur = true; };
- self.listLeave = function () {
- noBlur = false;
- if (!hasFocus) self.hidden = true;
- };
- self.mouseUp = function () { elements.input.focus(); };
-
- return init();
-
- //-- initialization methods
-
- function init () {
- configureWatchers();
- $timeout(function () {
- gatherElements();
- focusElement();
- moveDropdown();
- });
- }
-
- function positionDropdown () {
- if (!elements) return $timeout(positionDropdown, 0, false);
- var hrect = elements.wrap.getBoundingClientRect(),
- vrect = elements.snap.getBoundingClientRect(),
- root = elements.root.getBoundingClientRect(),
- top = vrect.bottom - root.top,
- bot = root.bottom - vrect.top,
- left = hrect.left - root.left,
- width = hrect.width,
- styles = {
- left: left + 'px',
- minWidth: width + 'px',
- maxWidth: Math.max(hrect.right - root.left, root.right - hrect.left) - MENU_PADDING + 'px'
- };
- if (top > bot && root.height - hrect.bottom - MENU_PADDING < MAX_HEIGHT) {
- styles.top = 'auto';
- styles.bottom = bot + 'px';
- styles.maxHeight = Math.min(MAX_HEIGHT, hrect.top - root.top - MENU_PADDING) + 'px';
- } else {
- styles.top = top + 'px';
- styles.bottom = 'auto';
- styles.maxHeight = Math.min(MAX_HEIGHT, root.bottom - hrect.bottom - MENU_PADDING) + 'px';
- }
- elements.$.ul.css(styles);
- $timeout(correctHorizontalAlignment, 0, false);
-
- function correctHorizontalAlignment () {
- var dropdown = elements.ul.getBoundingClientRect(),
- styles = {};
- if (dropdown.right > root.right - MENU_PADDING) {
- styles.left = (hrect.right - dropdown.width) + 'px';
- }
- elements.$.ul.css(styles);
- }
- }
-
- function moveDropdown () {
- if (!elements.$.root.length) return;
- $mdTheming(elements.$.ul);
- elements.$.ul.detach();
- elements.$.root.append(elements.$.ul);
- if ($animate.pin) $animate.pin(elements.$.ul, $rootElement);
- }
-
- function focusElement () {
- if ($scope.autofocus) elements.input.focus();
- }
-
- function configureWatchers () {
- var wait = parseInt($scope.delay, 10) || 0;
- $scope.$watch('searchText', wait
- ? $mdUtil.debounce(handleSearchText, wait)
- : handleSearchText);
- registerSelectedItemWatcher(selectedItemChange);
- $scope.$watch('selectedItem', handleSelectedItemChange);
- $scope.$watch('$mdAutocompleteCtrl.hidden', function (hidden, oldHidden) {
- if (!hidden && oldHidden) positionDropdown();
- });
- angular.element($window).on('resize', positionDropdown);
- $scope.$on('$destroy', cleanup);
- }
-
- function cleanup () {
- elements.$.ul.remove();
- }
-
- function gatherElements () {
- elements = {
- main: $element[0],
- ul: $element.find('ul')[0],
- input: $element.find('input')[0],
- wrap: $element.find('md-autocomplete-wrap')[0],
- root: document.body
- };
- elements.li = elements.ul.getElementsByTagName('li');
- elements.snap = getSnapTarget();
- elements.$ = getAngularElements(elements);
- }
-
- function getSnapTarget () {
- for (var element = $element; element.length; element = element.parent()) {
- if (angular.isDefined(element.attr('md-autocomplete-snap'))) return element[0];
- }
- return elements.wrap;
- }
-
- function getAngularElements (elements) {
- var obj = {};
- for (var key in elements) {
- obj[key] = angular.element(elements[key]);
- }
- return obj;
- }
-
- //-- event/change handlers
-
- function selectedItemChange (selectedItem, previousSelectedItem) {
- if (selectedItem) {
- $scope.searchText = getDisplayValue(selectedItem);
- }
- if ($scope.itemChange && selectedItem !== previousSelectedItem)
- $scope.itemChange(getItemScope(selectedItem));
- }
-
- function handleSelectedItemChange(selectedItem, previousSelectedItem) {
- for (var i = 0; i < selectedItemWatchers.length; ++i) {
- selectedItemWatchers[i](selectedItem, previousSelectedItem);
- }
- }
-
- /**
- * Register a function to be called when the selected item changes.
- * @param cb
- */
- function registerSelectedItemWatcher(cb) {
- if (selectedItemWatchers.indexOf(cb) == -1) {
- selectedItemWatchers.push(cb);
- }
- }
-
- /**
- * Unregister a function previously registered for selected item changes.
- * @param cb
- */
- function unregisterSelectedItemWatcher(cb) {
- var i = selectedItemWatchers.indexOf(cb);
- if (i != -1) {
- selectedItemWatchers.splice(i, 1);
- }
- }
-
- function handleSearchText (searchText, previousSearchText) {
- self.index = getDefaultIndex();
- //-- do nothing on init
- if (searchText === previousSearchText) return;
- //-- clear selected item if search text no longer matches it
- if (searchText !== getDisplayValue($scope.selectedItem)) $scope.selectedItem = null;
- else return;
- //-- trigger change event if available
- if ($scope.textChange && searchText !== previousSearchText)
- $scope.textChange(getItemScope($scope.selectedItem));
- //-- cancel results if search text is not long enough
- if (!isMinLengthMet()) {
- self.loading = false;
- self.matches = [];
- self.hidden = shouldHide();
- updateMessages();
- } else {
- handleQuery();
- }
- }
-
- function blur () {
- hasFocus = false;
- if (!noBlur) self.hidden = true;
- }
-
- function focus () {
- hasFocus = true;
- //-- if searchText is null, let's force it to be a string
- if (!angular.isString($scope.searchText)) $scope.searchText = '';
- if ($scope.minLength > 0) return;
- self.hidden = shouldHide();
- if (!self.hidden) handleQuery();
- }
-
- function keydown (event) {
- switch (event.keyCode) {
- case $mdConstant.KEY_CODE.DOWN_ARROW:
- if (self.loading) return;
- event.preventDefault();
- self.index = Math.min(self.index + 1, self.matches.length - 1);
- updateScroll();
- updateMessages();
- break;
- case $mdConstant.KEY_CODE.UP_ARROW:
- if (self.loading) return;
- event.preventDefault();
- self.index = self.index < 0 ? self.matches.length - 1 : Math.max(0, self.index - 1);
- updateScroll();
- updateMessages();
- break;
- case $mdConstant.KEY_CODE.TAB:
- case $mdConstant.KEY_CODE.ENTER:
- if (self.hidden || self.loading || self.index < 0 || self.matches.length < 1) return;
- event.preventDefault();
- select(self.index);
- break;
- case $mdConstant.KEY_CODE.ESCAPE:
- self.matches = [];
- self.hidden = true;
- self.index = getDefaultIndex();
- break;
- default:
- }
- }
-
- //-- getters
-
- function getMinLength () {
- return angular.isNumber($scope.minLength) ? $scope.minLength : 1;
- }
-
- function getDisplayValue (item) {
- return (item && $scope.itemText) ? $scope.itemText(getItemScope(item)) : item;
- }
-
- function getItemScope (item) {
- if (!item) return;
- var locals = {};
- if (self.itemName) locals[self.itemName] = item;
- return locals;
- }
-
- function getDefaultIndex () {
- return $scope.autoselect ? 0 : -1;
- }
-
- function shouldHide () {
- if (!isMinLengthMet()) return true;
- }
-
- function getCurrentDisplayValue () {
- return getDisplayValue(self.matches[self.index]);
- }
-
- function isMinLengthMet () {
- return $scope.searchText && $scope.searchText.length >= getMinLength();
- }
-
- //-- actions
-
- function select (index) {
- $scope.selectedItem = self.matches[index];
- self.hidden = true;
- self.index = 0;
- self.matches = [];
- //-- force form to update state for validation
- $timeout(function () {
- elements.$.input.controller('ngModel').$setViewValue(getDisplayValue($scope.selectedItem) || $scope.searchText);
- self.hidden = true;
- });
- }
-
- function clearValue () {
- $scope.searchText = '';
- select(-1);
-
- // Per http://www.w3schools.com/jsref/event_oninput.asp
- var eventObj = document.createEvent('CustomEvent');
- eventObj.initCustomEvent('input', true, true, {value: $scope.searchText});
- elements.input.dispatchEvent(eventObj);
-
- elements.input.focus();
- }
-
- function fetchResults (searchText) {
- var items = $scope.$parent.$eval(itemExpr),
- term = searchText.toLowerCase();
- if (angular.isArray(items)) {
- handleResults(items);
- } else {
- self.loading = true;
- if (items.success) items.success(handleResults);
- if (items.then) items.then(handleResults);
- if (items.error) items.error(function () { self.loading = false; });
- }
- function handleResults (matches) {
- cache[term] = matches;
- if (searchText !== $scope.searchText) return; //-- just cache the results if old request
- self.loading = false;
- promise = null;
- self.matches = matches;
- self.hidden = shouldHide();
- updateMessages();
- positionDropdown();
- }
- }
-
- function updateMessages () {
- self.messages = [ getCountMessage(), getCurrentDisplayValue() ];
- }
-
- function getCountMessage () {
- if (lastCount === self.matches.length) return '';
- lastCount = self.matches.length;
- switch (self.matches.length) {
- case 0: return 'There are no matches available.';
- case 1: return 'There is 1 match available.';
- default: return 'There are ' + self.matches.length + ' matches available.';
- }
- }
-
- function updateScroll () {
- if (!elements.li[self.index]) return;
- var li = elements.li[self.index],
- top = li.offsetTop,
- bot = top + li.offsetHeight,
- hgt = elements.ul.clientHeight;
- if (top < elements.ul.scrollTop) {
- elements.ul.scrollTop = top;
- } else if (bot > elements.ul.scrollTop + hgt) {
- elements.ul.scrollTop = bot - hgt;
- }
- }
-
- function handleQuery () {
- var searchText = $scope.searchText,
- term = searchText.toLowerCase();
- //-- cancel promise if a promise is in progress
- if (promise && promise.cancel) {
- promise.cancel();
- promise = null;
- }
- //-- if results are cached, pull in cached results
- if (!$scope.noCache && cache[term]) {
- self.matches = cache[term];
- updateMessages();
- } else {
- fetchResults(searchText);
- }
- if (hasFocus) self.hidden = shouldHide();
- }
-
-}
-MdAutocompleteCtrl.$inject = ["$scope", "$element", "$mdUtil", "$mdConstant", "$timeout", "$mdTheming", "$window", "$animate", "$rootElement"];
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocomplete', MdAutocomplete);
-
-/**
- * @ngdoc directive
- * @name mdAutocomplete
- * @module material.components.autocomplete
- *
- * @description
- * `<md-autocomplete>` is a special input component with a drop-down of all possible matches to a custom query.
- * This component allows you to provide real-time suggestions as the user types in the input area.
- *
- * To start, you will need to specify the required parameters and provide a template for your results.
- * The content inside `md-autocomplete` will be treated as a template.
- *
- * In more complex cases, you may want to include other content such as a message to display when
- * no matches were found. You can do this by wrapping your template in `md-item-template` and adding
- * a tag for `md-not-found`. An example of this is shown below.
- * ### Validation
- *
- * You can use `ng-messages` to include validation the same way that you would normally validate;
- * however, if you want to replicate a standard input with a floating label, you will have to do the
- * following:
- *
- * - Make sure that your template is wrapped in `md-item-template`
- * - Add your `ng-messages` code inside of `md-autocomplete`
- * - Add your validation properties to `md-autocomplete` (ie. `required`)
- * - Add a `name` to `md-autocomplete` (to be used on the generated `input`)
- *
- * There is an example below of how this should look.
- *
- *
- * @param {expression} md-items An expression in the format of `item in items` to iterate over matches for your search.
- * @param {expression=} md-selected-item-change An expression to be run each time a new item is selected
- * @param {expression=} md-search-text-change An expression to be run each time the search text updates
- * @param {string=} md-search-text A model to bind the search query text to
- * @param {object=} md-selected-item A model to bind the selected item to
- * @param {string=} md-item-text An expression that will convert your object to a single string.
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {boolean=} md-no-cache Disables the internal caching that happens in autocomplete
- * @param {boolean=} ng-disabled Determines whether or not to disable the input field
- * @param {number=} md-min-length Specifies the minimum length of text before autocomplete will make suggestions
- * @param {number=} md-delay Specifies the amount of time (in milliseconds) to wait before looking for results
- * @param {boolean=} md-autofocus If true, will immediately focus the input element
- * @param {boolean=} md-autoselect If true, the first item will be selected by default
- * @param {string=} md-menu-class This will be applied to the dropdown menu for styling
- * @param {string=} md-floating-label This will add a floating label to autocomplete and wrap it in `md-input-container`
- *
- * @usage
- * ###Basic Example
- * <hljs lang="html">
- * <md-autocomplete
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-autocomplete>
- * </hljs>
- *
- * ###Example with "not found" message
- * <hljs lang="html">
- * <md-autocomplete
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <md-item-template>
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-item-template>
- * <md-not-found>
- * No matches found.
- * </md-not-found>
- * </md-autocomplete>
- * </hljs>
- *
- * In this example, our code utilizes `md-item-template` and `md-not-found` to specify the different
- * parts that make up our component.
- *
- * ### Example with validation
- * <hljs lang="html">
- * <form name="autocompleteForm">
- * <md-autocomplete
- * required
- * input-name="autocomplete"
- * md-selected-item="selectedItem"
- * md-search-text="searchText"
- * md-items="item in getMatches(searchText)"
- * md-item-text="item.display">
- * <md-item-template>
- * <span md-highlight-text="searchText">{{item.display}}</span>
- * </md-item-template>
- * <div ng-messages="autocompleteForm.autocomplete.$error">
- * <div ng-message="required">This field is required</div>
- * </div>
- * </md-autocomplete>
- * </form>
- * </hljs>
- *
- * In this example, our code utilizes `md-item-template` and `md-not-found` to specify the different
- * parts that make up our component.
- */
-
-function MdAutocomplete ($mdTheming, $mdUtil) {
- return {
- controller: 'MdAutocompleteCtrl',
- controllerAs: '$mdAutocompleteCtrl',
- link: link,
- scope: {
- inputName: '@mdInputName',
- inputMinlength: '@mdInputMinlength',
- inputMaxlength: '@mdInputMaxlength',
- searchText: '=?mdSearchText',
- selectedItem: '=?mdSelectedItem',
- itemsExpr: '@mdItems',
- itemText: '&mdItemText',
- placeholder: '@placeholder',
- noCache: '=?mdNoCache',
- itemChange: '&?mdSelectedItemChange',
- textChange: '&?mdSearchTextChange',
- minLength: '=?mdMinLength',
- delay: '=?mdDelay',
- autofocus: '=?mdAutofocus',
- floatingLabel: '@?mdFloatingLabel',
- autoselect: '=?mdAutoselect',
- menuClass: '@?mdMenuClass'
- },
- template: function (element, attr) {
- var noItemsTemplate = getNoItemsTemplate(),
- itemTemplate = getItemTemplate(),
- leftover = element.html();
- return '\
- <md-autocomplete-wrap\
- layout="row"\
- ng-class="{ \'md-whiteframe-z1\': !floatingLabel }"\
- role="listbox">\
- ' + getInputElement() + '\
- <md-progress-linear\
- ng-if="$mdAutocompleteCtrl.loading"\
- md-mode="indeterminate"></md-progress-linear>\
- <ul role="presentation"\
- class="md-autocomplete-suggestions md-whiteframe-z1 {{menuClass || \'\'}}"\
- id="ul-{{$mdAutocompleteCtrl.id}}"\
- ng-mouseenter="$mdAutocompleteCtrl.listEnter()"\
- ng-mouseleave="$mdAutocompleteCtrl.listLeave()"\
- ng-mouseup="$mdAutocompleteCtrl.mouseUp()">\
- <li ng-repeat="(index, item) in $mdAutocompleteCtrl.matches"\
- ng-class="{ selected: index === $mdAutocompleteCtrl.index }"\
- ng-hide="$mdAutocompleteCtrl.hidden"\
- ng-click="$mdAutocompleteCtrl.select(index)"\
- md-autocomplete-list-item="$mdAutocompleteCtrl.itemName">\
- ' + itemTemplate + '\
- </li>\
- ' + noItemsTemplate + '\
- </ul>\
- </md-autocomplete-wrap>\
- <aria-status\
- class="md-visually-hidden"\
- role="status"\
- aria-live="assertive">\
- <p ng-repeat="message in $mdAutocompleteCtrl.messages" ng-if="message">{{message}}</p>\
- </aria-status>';
-
- function getItemTemplate() {
- var templateTag = element.find('md-item-template').remove(),
- html = templateTag.length ? templateTag.html() : element.html();
- if (!templateTag.length) element.empty();
- return html;
- }
-
- function getNoItemsTemplate() {
- var templateTag = element.find('md-not-found').remove(),
- template = templateTag.length ? templateTag.html() : '';
- return template
- ? '<li ng-if="!$mdAutocompleteCtrl.matches.length && !$mdAutocompleteCtrl.loading\
- && !$mdAutocompleteCtrl.hidden"\
- ng-hide="$mdAutocompleteCtrl.hidden"\
- md-autocomplete-parent-scope>' + template + '</li>'
- : '';
-
- }
-
- function getInputElement() {
- if (attr.mdFloatingLabel) {
- return '\
- <md-input-container flex ng-if="floatingLabel">\
- <label>{{floatingLabel}}</label>\
- <input type="search"\
- id="fl-input-{{$mdAutocompleteCtrl.id}}"\
- name="{{inputName}}"\
- autocomplete="off"\
- ng-required="isRequired"\
- ng-minlength="inputMinlength"\
- ng-maxlength="inputMaxlength"\
- ng-disabled="isDisabled"\
- ng-model="$mdAutocompleteCtrl.scope.searchText"\
- ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
- ng-blur="$mdAutocompleteCtrl.blur()"\
- ng-focus="$mdAutocompleteCtrl.focus()"\
- aria-owns="ul-{{$mdAutocompleteCtrl.id}}"\
- aria-label="{{floatingLabel}}"\
- aria-autocomplete="list"\
- aria-haspopup="true"\
- aria-activedescendant=""\
- aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
- <div md-autocomplete-parent-scope md-autocomplete-replace>' + leftover + '</div>\
- </md-input-container>';
- } else {
- return '\
- <input flex type="search"\
- id="input-{{$mdAutocompleteCtrl.id}}"\
- name="{{inputName}}"\
- ng-if="!floatingLabel"\
- autocomplete="off"\
- ng-required="isRequired"\
- ng-disabled="isDisabled"\
- ng-model="$mdAutocompleteCtrl.scope.searchText"\
- ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
- ng-blur="$mdAutocompleteCtrl.blur()"\
- ng-focus="$mdAutocompleteCtrl.focus()"\
- placeholder="{{placeholder}}"\
- aria-owns="ul-{{$mdAutocompleteCtrl.id}}"\
- aria-label="{{placeholder}}"\
- aria-autocomplete="list"\
- aria-haspopup="true"\
- aria-activedescendant=""\
- aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
- <button\
- type="button"\
- tabindex="-1"\
- ng-if="$mdAutocompleteCtrl.scope.searchText && !isDisabled"\
- ng-click="$mdAutocompleteCtrl.clear()">\
- <md-icon md-svg-icon="md-close"></md-icon>\
- <span class="md-visually-hidden">Clear</span>\
- </button>\
- ';
- }
- }
- }
- };
-
- function link (scope, element, attr) {
- attr.$observe('disabled', function (value) { scope.isDisabled = value; });
- attr.$observe('required', function (value) { scope.isRequired = value !== null; });
-
- $mdUtil.initOptionalProperties(scope, attr, {searchText:null, selectedItem:null} );
-
- $mdTheming(element);
- }
-}
-MdAutocomplete.$inject = ["$mdTheming", "$mdUtil"];
-
-angular
- .module('material.components.autocomplete')
- .controller('MdHighlightCtrl', MdHighlightCtrl);
-
-function MdHighlightCtrl ($scope, $element, $interpolate) {
- this.init = init;
-
- return init();
-
- function init (term) {
- var unsafeText = $interpolate($element.html())($scope),
- text = angular.element('<div>').text(unsafeText).html(),
- flags = $element.attr('md-highlight-flags') || '',
- watcher = $scope.$watch(term, function (term) {
- var regex = getRegExp(term, flags),
- html = text.replace(regex, '<span class="highlight">$&</span>');
- $element.html(html);
- });
- $element.on('$destroy', function () { watcher(); });
- }
-
- function sanitize (term) {
- if (!term) return term;
- return term.replace(/[\\\^\$\*\+\?\.\(\)\|\{\}\[\]]/g, '\\$&');
- }
-
- function getRegExp (text, flags) {
- var str = '';
- if (flags.indexOf('^') >= 1) str += '^';
- str += text;
- if (flags.indexOf('$') >= 1) str += '$';
- return new RegExp(sanitize(str), flags.replace(/[\$\^]/g, ''));
- }
-}
-MdHighlightCtrl.$inject = ["$scope", "$element", "$interpolate"];
-
-angular
- .module('material.components.autocomplete')
- .directive('mdHighlightText', MdHighlight);
-
-/**
- * @ngdoc directive
- * @name mdHighlightText
- * @module material.components.autocomplete
- *
- * @description
- * The `md-highlight-text` directive allows you to specify text that should be highlighted within
- * an element. Highlighted text will be wrapped in `<span class="highlight"></span>` which can
- * be styled through CSS. Please note that child elements may not be used with this directive.
- *
- * @param {string} md-highlight-text A model to be searched for
- * @param {string=} md-highlight-flags A list of flags (loosely based on JavaScript RexExp flags).
- * #### **Supported flags**:
- * - `g`: Find all matches within the provided text
- * - `i`: Ignore case when searching for matches
- * - `$`: Only match if the text ends with the search term
- * - `^`: Only match if the text begins with the search term
- *
- * @usage
- * <hljs lang="html">
- * <input placeholder="Enter a search term..." ng-model="searchTerm" type="text" />
- * <ul>
- * <li ng-repeat="result in results" md-highlight-text="searchTerm">
- * {{result.text}}
- * </li>
- * </ul>
- * </hljs>
- */
-
-function MdHighlight () {
- return {
- terminal: true,
- scope: false,
- controller: 'MdHighlightCtrl',
- link: function (scope, element, attr, ctrl) {
- ctrl.init(attr.mdHighlightText);
- }
- };
-}
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocompleteListItem', MdAutocompleteListItem);
-
-function MdAutocompleteListItem ($compile, $mdUtil) {
- return {
- terminal: true,
- link: postLink,
- scope: false
- };
- function postLink (scope, element, attr) {
- var ctrl = scope.$parent.$mdAutocompleteCtrl,
- newScope = ctrl.parent.$new(false, ctrl.parent),
- itemName = ctrl.scope.$eval(attr.mdAutocompleteListItem);
- newScope[itemName] = scope.item;
- $compile(element.contents())(newScope);
- element.attr({
- role: 'option',
- id: 'item_' + $mdUtil.nextUid()
- });
- }
-}
-MdAutocompleteListItem.$inject = ["$compile", "$mdUtil"];
-
-angular
- .module('material.components.autocomplete')
- .directive('mdAutocompleteParentScope', MdAutocompleteParentScope);
-
-function MdAutocompleteParentScope ($compile, $mdUtil) {
- return {
- restrict: 'A',
- terminal: true,
- link: postLink,
- scope: false
- };
- function postLink (scope, element, attr) {
- var ctrl = scope.$parent.$mdAutocompleteCtrl;
- $compile(element.contents())(ctrl.parent);
- if (attr.hasOwnProperty('mdAutocompleteReplace')) {
- element.after(element.contents());
- element.remove();
- }
- }
-}
-MdAutocompleteParentScope.$inject = ["$compile", "$mdUtil"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.css
deleted file mode 100644
index a22d6407..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */@-webkit-keyframes md-autocomplete-list-out{0%{-webkit-animation-timing-function:linear;animation-timing-function:linear}50%{opacity:0;height:40px;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{height:0;opacity:0}}@keyframes md-autocomplete-list-out{0%{-webkit-animation-timing-function:linear;animation-timing-function:linear}50%{opacity:0;height:40px;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{height:0;opacity:0}}@-webkit-keyframes md-autocomplete-list-in{0%{opacity:0;height:0;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{opacity:0;height:40px}100%{opacity:1;height:40px}}@keyframes md-autocomplete-list-in{0%{opacity:0;height:0;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{opacity:0;height:40px}100%{opacity:1;height:40px}}md-autocomplete{border-radius:2px;display:block;height:40px;position:relative;overflow:visible;min-width:190px}md-autocomplete[disabled] input{cursor:not-allowed}md-autocomplete[md-floating-label]{padding-bottom:26px;border-radius:0;background:0 0;height:auto}md-autocomplete[md-floating-label] md-input-container{padding-bottom:0}md-autocomplete[md-floating-label] md-autocomplete-wrap{height:auto}md-autocomplete[md-floating-label] button{position:absolute;top:auto;bottom:0;right:0;width:30px;height:30px}md-autocomplete md-autocomplete-wrap{display:block;position:relative;overflow:visible;height:40px}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate]{position:absolute;bottom:0;left:0;width:100%;height:3px;transition:none}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate] .md-container{transition:none;top:auto;height:3px}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter{transition:opacity .15s linear}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-enter.ng-enter-active{opacity:1}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave{transition:opacity .15s linear}md-autocomplete md-autocomplete-wrap md-progress-linear[md-mode=indeterminate].ng-leave.ng-leave-active{opacity:0}md-autocomplete input:not(.md-input){width:100%;box-sizing:border-box;border:none;box-shadow:none;padding:0 15px;font-size:14px;line-height:40px;height:40px;outline:0;background:0 0}md-autocomplete input:not(.md-input)::-ms-clear{display:none}md-autocomplete button{position:relative;line-height:20px;text-align:center;width:30px;height:30px;cursor:pointer;border:none;border-radius:50%;padding:0;font-size:12px;background:0 0;margin:auto 5px}md-autocomplete button:after{content:'';position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;border-radius:50%;-webkit-transform:scale(0);transform:scale(0);opacity:0;transition:all .4s cubic-bezier(.25,.8,.25,1)}md-autocomplete button:focus{outline:0}md-autocomplete button:focus:after{-webkit-transform:scale(1);transform:scale(1);opacity:1}md-autocomplete button md-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9)}md-autocomplete button md-icon path{stroke-width:0}md-autocomplete button.ng-enter{-webkit-transform:scale(0);transform:scale(0);transition:-webkit-transform .15s ease-out;transition:transform .15s ease-out}md-autocomplete button.ng-enter.ng-enter-active{-webkit-transform:scale(1);transform:scale(1)}md-autocomplete button.ng-leave{transition:-webkit-transform .15s ease-out;transition:transform .15s ease-out}md-autocomplete button.ng-leave.ng-leave-active{-webkit-transform:scale(0);transform:scale(0)}@media screen and (-ms-high-contrast:active){md-autocomplete input{border:1px solid #fff}md-autocomplete li:focus{color:#fff}}.md-autocomplete-suggestions{position:absolute;margin:0;list-style:none;padding:0;overflow:auto;max-height:225.5px;z-index:100}.md-autocomplete-suggestions li{cursor:pointer;font-size:14px;overflow:hidden;padding:0 15px;line-height:48px;height:48px;transition:background .15s linear;margin:0;white-space:nowrap;text-overflow:ellipsis}.md-autocomplete-suggestions li.ng-enter,.md-autocomplete-suggestions li.ng-hide-remove{transition:none;-webkit-animation:md-autocomplete-list-in .2s;animation:md-autocomplete-list-in .2s}.md-autocomplete-suggestions li.ng-hide-add,.md-autocomplete-suggestions li.ng-leave{transition:none;-webkit-animation:md-autocomplete-list-out .2s;animation:md-autocomplete-list-out .2s}.md-autocomplete-suggestions li:focus{outline:0}@media screen and (-ms-high-contrast:active){.md-autocomplete-suggestions,md-autocomplete{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.js
deleted file mode 100644
index 93112977..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/autocomplete.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function o(e,n,o,i,l,a,r,m,c){function s(){f(),l(function(){x(),g(),h()})}function p(){function e(){var e=z.ul.getBoundingClientRect(),n={};e.right>o.right-d&&(n.left=t.right-e.width+"px"),z.$.ul.css(n)}if(!z)return l(p,0,!1);var t=z.wrap.getBoundingClientRect(),n=z.snap.getBoundingClientRect(),o=z.root.getBoundingClientRect(),i=n.bottom-o.top,a=o.bottom-n.top,r=t.left-o.left,m=t.width,c={left:r+"px",minWidth:m+"px",maxWidth:Math.max(t.right-o.left,o.right-t.left)-d+"px"};i>a&&o.height-t.bottom-d<u?(c.top="auto",c.bottom=a+"px",c.maxHeight=Math.min(u,t.top-o.top-d)+"px"):(c.top=i+"px",c.bottom="auto",c.maxHeight=Math.min(u,o.bottom-t.bottom-d)+"px"),z.$.ul.css(c),l(e,0,!1)}function h(){z.$.root.length&&(a(z.$.ul),z.$.ul.detach(),z.$.root.append(z.$.ul),m.pin&&m.pin(z.$.ul,c))}function g(){e.autofocus&&z.input.focus()}function f(){var n=parseInt(e.delay,10)||0;e.$watch("searchText",n?o.debounce(E,n):E),T(A),e.$watch("selectedItem",b),e.$watch("$mdAutocompleteCtrl.hidden",function(e,t){!e&&t&&p()}),t.element(r).on("resize",p),e.$on("$destroy",$)}function $(){z.$.ul.remove()}function x(){z={main:n[0],ul:n.find("ul")[0],input:n.find("input")[0],wrap:n.find("md-autocomplete-wrap")[0],root:document.body},z.li=z.ul.getElementsByTagName("li"),z.snap=C(),z.$=v(z)}function C(){for(var e=n;e.length;e=e.parent())if(t.isDefined(e.attr("md-autocomplete-snap")))return e[0];return z.wrap}function v(e){var n={};for(var o in e)n[o]=t.element(e[o]);return n}function A(t,n){t&&(e.searchText=D(t)),e.itemChange&&t!==n&&e.itemChange(k(t))}function b(e,t){for(var n=0;n<J.length;++n)J[n](e,t)}function T(e){-1==J.indexOf(e)&&J.push(e)}function w(e){var t=J.indexOf(e);-1!=t&&J.splice(t,1)}function E(t,n){K.index=O(),t!==n&&t!==D(e.selectedItem)&&(e.selectedItem=null,e.textChange&&t!==n&&e.textChange(k(e.selectedItem)),S()?j():(K.loading=!1,K.matches=[],K.hidden=R(),W()))}function y(){Q=!1,G||(K.hidden=!0)}function I(){Q=!0,t.isString(e.searchText)||(e.searchText=""),e.minLength>0||(K.hidden=R(),K.hidden||j())}function L(e){switch(e.keyCode){case i.KEY_CODE.DOWN_ARROW:if(K.loading)return;e.preventDefault(),K.index=Math.min(K.index+1,K.matches.length-1),B(),W();break;case i.KEY_CODE.UP_ARROW:if(K.loading)return;e.preventDefault(),K.index=K.index<0?K.matches.length-1:Math.max(0,K.index-1),B(),W();break;case i.KEY_CODE.TAB:case i.KEY_CODE.ENTER:if(K.hidden||K.loading||K.index<0||K.matches.length<1)return;e.preventDefault(),U(K.index);break;case i.KEY_CODE.ESCAPE:K.matches=[],K.hidden=!0,K.index=O()}}function M(){return t.isNumber(e.minLength)?e.minLength:1}function D(t){return t&&e.itemText?e.itemText(k(t)):t}function k(e){if(e){var t={};return K.itemName&&(t[K.itemName]=e),t}}function O(){return e.autoselect?0:-1}function R(){return S()?void 0:!0}function N(){return D(K.matches[K.index])}function S(){return e.searchText&&e.searchText.length>=M()}function U(t){e.selectedItem=K.matches[t],K.hidden=!0,K.index=0,K.matches=[],l(function(){z.$.input.controller("ngModel").$setViewValue(D(e.selectedItem)||e.searchText),K.hidden=!0})}function H(){e.searchText="",U(-1);var t=document.createEvent("CustomEvent");t.initCustomEvent("input",!0,!0,{value:e.searchText}),z.input.dispatchEvent(t),z.input.focus()}function _(n){function o(t){F[l]=t,n===e.searchText&&(K.loading=!1,V=null,K.matches=t,K.hidden=R(),W(),p())}var i=e.$parent.$eval(Y),l=n.toLowerCase();t.isArray(i)?o(i):(K.loading=!0,i.success&&i.success(o),i.then&&i.then(o),i.error&&i.error(function(){K.loading=!1}))}function W(){K.messages=[q(),N()]}function q(){if(X===K.matches.length)return"";switch(X=K.matches.length,K.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+K.matches.length+" matches available."}}function B(){if(z.li[K.index]){var e=z.li[K.index],t=e.offsetTop,n=t+e.offsetHeight,o=z.ul.clientHeight;t<z.ul.scrollTop?z.ul.scrollTop=t:n>z.ul.scrollTop+o&&(z.ul.scrollTop=n-o)}}function j(){var t=e.searchText,n=t.toLowerCase();V&&V.cancel&&(V.cancel(),V=null),!e.noCache&&F[n]?(K.matches=F[n],W()):_(t),Q&&(K.hidden=R())}var K=this,P=e.itemsExpr.split(/ in /i),Y=P[1],z=null,V=null,F={},G=!1,J=[],Q=!1,X=0;return K.scope=e,K.parent=e.$parent,K.itemName=P[0],K.matches=[],K.loading=!1,K.hidden=!0,K.index=null,K.messages=[],K.id=o.nextUid(),K.keydown=L,K.blur=y,K.focus=I,K.clear=H,K.select=U,K.getCurrentDisplayValue=N,K.registerSelectedItemWatcher=T,K.unregisterSelectedItemWatcher=w,K.listEnter=function(){G=!0},K.listLeave=function(){G=!1,Q||(K.hidden=!0)},K.mouseUp=function(){z.input.focus()},s()}function i(e,t){function n(n,o,i){i.$observe("disabled",function(e){n.isDisabled=e}),i.$observe("required",function(e){n.isRequired=null!==e}),t.initOptionalProperties(n,i,{searchText:null,selectedItem:null}),e(o)}return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",link:n,scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",noCache:"=?mdNoCache",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass"},template:function(e,t){function n(){var t=e.find("md-item-template").remove(),n=t.length?t.html():e.html();return t.length||e.empty(),n}function o(){var t=e.find("md-not-found").remove(),n=t.length?t.html():"";return n?'<li ng-if="!$mdAutocompleteCtrl.matches.length && !$mdAutocompleteCtrl.loading && !$mdAutocompleteCtrl.hidden" ng-hide="$mdAutocompleteCtrl.hidden" md-autocomplete-parent-scope>'+n+"</li>":""}function i(){return t.mdFloatingLabel?' <md-input-container flex ng-if="floatingLabel"> <label>{{floatingLabel}}</label> <input type="search" id="fl-input-{{$mdAutocompleteCtrl.id}}" name="{{inputName}}" autocomplete="off" ng-required="isRequired" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-disabled="isDisabled" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur()" ng-focus="$mdAutocompleteCtrl.focus()" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{floatingLabel}}" aria-autocomplete="list" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/> <div md-autocomplete-parent-scope md-autocomplete-replace>'+r+"</div> </md-input-container>":' <input flex type="search" id="input-{{$mdAutocompleteCtrl.id}}" name="{{inputName}}" ng-if="!floatingLabel" autocomplete="off" ng-required="isRequired" ng-disabled="isDisabled" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur()" ng-focus="$mdAutocompleteCtrl.focus()" placeholder="{{placeholder}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{placeholder}}" aria-autocomplete="list" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/> <button type="button" tabindex="-1" ng-if="$mdAutocompleteCtrl.scope.searchText && !isDisabled" ng-click="$mdAutocompleteCtrl.clear()"> <md-icon md-svg-icon="md-close"></md-icon> <span class="md-visually-hidden">Clear</span> </button> '}var l=o(),a=n(),r=e.html();return' <md-autocomplete-wrap layout="row" ng-class="{ \'md-whiteframe-z1\': !floatingLabel }" role="listbox"> '+i()+' <md-progress-linear ng-if="$mdAutocompleteCtrl.loading" md-mode="indeterminate"></md-progress-linear> <ul role="presentation" class="md-autocomplete-suggestions md-whiteframe-z1 {{menuClass || \'\'}}" id="ul-{{$mdAutocompleteCtrl.id}}" ng-mouseenter="$mdAutocompleteCtrl.listEnter()" ng-mouseleave="$mdAutocompleteCtrl.listLeave()" ng-mouseup="$mdAutocompleteCtrl.mouseUp()"> <li ng-repeat="(index, item) in $mdAutocompleteCtrl.matches" ng-class="{ selected: index === $mdAutocompleteCtrl.index }" ng-hide="$mdAutocompleteCtrl.hidden" ng-click="$mdAutocompleteCtrl.select(index)" md-autocomplete-list-item="$mdAutocompleteCtrl.itemName"> '+a+" </li> "+l+' </ul> </md-autocomplete-wrap> <aria-status class="md-visually-hidden" role="status" aria-live="assertive"> <p ng-repeat="message in $mdAutocompleteCtrl.messages" ng-if="message">{{message}}</p> </aria-status>'}}}function l(e,n,o){function i(i){var l=o(n.html())(e),r=t.element("<div>").text(l).html(),m=n.attr("md-highlight-flags")||"",c=e.$watch(i,function(e){var t=a(e,m),o=r.replace(t,'<span class="highlight">$&</span>');n.html(o)});n.on("$destroy",function(){c()})}function l(e){return e?e.replace(/[\\\^\$\*\+\?\.\(\)\|\{\}\[\]]/g,"\\$&"):e}function a(e,t){var n="";return t.indexOf("^")>=1&&(n+="^"),n+=e,t.indexOf("$")>=1&&(n+="$"),new RegExp(l(n),t.replace(/[\$\^]/g,""))}return this.init=i,i()}function a(){return{terminal:!0,scope:!1,controller:"MdHighlightCtrl",link:function(e,t,n,o){o.init(n.mdHighlightText)}}}function r(e,t){function n(n,o,i){var l=n.$parent.$mdAutocompleteCtrl,a=l.parent.$new(!1,l.parent),r=l.scope.$eval(i.mdAutocompleteListItem);a[r]=n.item,e(o.contents())(a),o.attr({role:"option",id:"item_"+t.nextUid()})}return{terminal:!0,link:n,scope:!1}}function m(e,t){function n(t,n,o){var i=t.$parent.$mdAutocompleteCtrl;e(n.contents())(i.parent),o.hasOwnProperty("mdAutocompleteReplace")&&(n.after(n.contents()),n.remove())}return{restrict:"A",terminal:!0,link:n,scope:!1}}t.module("material.components.autocomplete",["material.core","material.components.icon"]),t.module("material.components.autocomplete").controller("MdAutocompleteCtrl",o);var c=41,u=5.5*c,d=8;o.$inject=["$scope","$element","$mdUtil","$mdConstant","$timeout","$mdTheming","$window","$animate","$rootElement"],t.module("material.components.autocomplete").directive("mdAutocomplete",i),i.$inject=["$mdTheming","$mdUtil"],t.module("material.components.autocomplete").controller("MdHighlightCtrl",l),l.$inject=["$scope","$element","$interpolate"],t.module("material.components.autocomplete").directive("mdHighlightText",a),t.module("material.components.autocomplete").directive("mdAutocompleteListItem",r),r.$inject=["$compile","$mdUtil"],t.module("material.components.autocomplete").directive("mdAutocompleteParentScope",m),m.$inject=["$compile","$mdUtil"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/bower.json
deleted file mode 100644
index 59be5c4b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/autocomplete/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-autocomplete",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-icon": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.css
deleted file mode 100644
index 6177ae75..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-backdrop.md-opaque.md-THEME_NAME-theme {
- background-color: '{{foreground-4-0.5}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.min.css
deleted file mode 100644
index 191c2065..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:'{{foreground-4-0.5}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.css
deleted file mode 100644
index d20683a5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-backdrop {
- z-index: 50;
- background-color: transparent;
- position: absolute;
- height: 100%;
- left: 0;
- right: 0; }
- md-backdrop.md-select-backdrop {
- z-index: 81; }
- md-backdrop.md-dialog-backdrop {
- z-index: 79; }
- md-backdrop.md-bottom-sheet-backdrop {
- z-index: 69; }
- md-backdrop.md-sidenav-backdrop {
- z-index: 59; }
- md-backdrop.md-click-catcher {
- top: 0;
- position: fixed; }
- md-backdrop.ng-enter {
- -webkit-animation: cubic-bezier(0.25, 0.8, 0.25, 1) mdBackdropFadeIn 0.5s both;
- animation: cubic-bezier(0.25, 0.8, 0.25, 1) mdBackdropFadeIn 0.5s both; }
- md-backdrop.ng-leave {
- -webkit-animation: cubic-bezier(0.55, 0, 0.55, 0.2) mdBackdropFadeOut 0.2s both;
- animation: cubic-bezier(0.55, 0, 0.55, 0.2) mdBackdropFadeOut 0.2s both; }
-
-@-webkit-keyframes mdBackdropFadeIn {
- from {
- opacity: 0; }
-
- to {
- opacity: 1; } }
-
-@keyframes mdBackdropFadeIn {
- from {
- opacity: 0; }
-
- to {
- opacity: 1; } }
-
-@-webkit-keyframes mdBackdropFadeOut {
- from {
- opacity: 1; }
-
- to {
- opacity: 0; } }
-
-@keyframes mdBackdropFadeOut {
- from {
- opacity: 1; }
-
- to {
- opacity: 0; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.js
deleted file mode 100644
index cb938267..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/*
- * @ngdoc module
- * @name material.components.backdrop
- * @description Backdrop
- */
-
-/**
- * @ngdoc directive
- * @name mdBackdrop
- * @module material.components.backdrop
- *
- * @restrict E
- *
- * @description
- * `<md-backdrop>` is a backdrop element used by other components, such as dialog and bottom sheet.
- * Apply class `opaque` to make the backdrop use the theme backdrop color.
- *
- */
-
-angular.module('material.components.backdrop', [
- 'material.core'
-])
- .directive('mdBackdrop', BackdropDirective);
-
-function BackdropDirective($mdTheming) {
- return $mdTheming;
-}
-BackdropDirective.$inject = ["$mdTheming"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.min.css
deleted file mode 100644
index 41ac50b6..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-backdrop{z-index:50;background-color:transparent;position:absolute;height:100%;left:0;right:0}md-backdrop.md-select-backdrop{z-index:81}md-backdrop.md-dialog-backdrop{z-index:79}md-backdrop.md-bottom-sheet-backdrop{z-index:69}md-backdrop.md-sidenav-backdrop{z-index:59}md-backdrop.md-click-catcher{top:0;position:fixed}md-backdrop.ng-enter{-webkit-animation:cubic-bezier(.25,.8,.25,1) mdBackdropFadeIn .5s both;animation:cubic-bezier(.25,.8,.25,1) mdBackdropFadeIn .5s both}md-backdrop.ng-leave{-webkit-animation:cubic-bezier(.55,0,.55,.2) mdBackdropFadeOut .2s both;animation:cubic-bezier(.55,0,.55,.2) mdBackdropFadeOut .2s both}@-webkit-keyframes mdBackdropFadeIn{from{opacity:0}to{opacity:1}}@keyframes mdBackdropFadeIn{from{opacity:0}to{opacity:1}}@-webkit-keyframes mdBackdropFadeOut{from{opacity:1}to{opacity:0}}@keyframes mdBackdropFadeOut{from{opacity:1}to{opacity:0}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.min.js
deleted file mode 100644
index 1f096afd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/backdrop.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(n,e,i){"use strict";function o(n){return n}e.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",o),o.$inject=["$mdTheming"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/bower.json
deleted file mode 100644
index 9c9e0643..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/backdrop/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-backdrop",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.css
deleted file mode 100644
index 82e3eb39..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.css
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-bottom-sheet.md-THEME_NAME-theme {
- background-color: '{{background-50}}';
- border-top-color: '{{background-300}}'; }
- md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item {
- color: '{{foreground-1}}'; }
- md-bottom-sheet.md-THEME_NAME-theme .md-subheader {
- background-color: '{{background-50}}'; }
- md-bottom-sheet.md-THEME_NAME-theme .md-subheader {
- color: '{{foreground-1}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.min.css
deleted file mode 100644
index ac127d3c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-bottom-sheet.md-THEME_NAME-theme{background-color:'{{background-50}}';border-top-color:'{{background-300}}'}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:'{{foreground-1}}'}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:'{{background-50}}';color:'{{foreground-1}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.css
deleted file mode 100644
index 88a429f2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.css
+++ /dev/null
@@ -1,170 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-bottom-sheet {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- padding: 8px 16px 88px 16px;
- z-index: 70;
- border-top-width: 1px;
- border-top-style: solid;
- -webkit-transform: translate3d(0, 80px, 0);
- transform: translate3d(0, 80px, 0);
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-property: -webkit-transform;
- transition-property: transform; }
- md-bottom-sheet.md-has-header {
- padding-top: 0; }
- md-bottom-sheet.ng-enter {
- opacity: 0;
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0); }
- md-bottom-sheet.ng-enter-active {
- opacity: 1;
- display: block;
- -webkit-transform: translate3d(0, 80px, 0) !important;
- transform: translate3d(0, 80px, 0) !important; }
- md-bottom-sheet.ng-leave-active {
- -webkit-transform: translate3d(0, 100%, 0) !important;
- transform: translate3d(0, 100%, 0) !important;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-bottom-sheet .md-subheader {
- background-color: transparent;
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif;
- line-height: 56px;
- padding: 0;
- white-space: nowrap; }
- md-bottom-sheet md-inline-icon {
- display: inline-block;
- height: 24px;
- width: 24px;
- fill: #444; }
- md-bottom-sheet md-list-item {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- outline: none; }
- md-bottom-sheet md-list-item:hover {
- cursor: pointer; }
- md-bottom-sheet.md-list md-list-item {
- padding: 0;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- height: 48px; }
- md-bottom-sheet.md-list md-list-item div.md-icon-container {
- display: inline-block;
- height: 24px;
- margin-right: 32px; }
- md-bottom-sheet.md-grid {
- padding-left: 24px;
- padding-right: 24px;
- padding-top: 0; }
- md-bottom-sheet.md-grid md-list {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
- transition: all 0.5s;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- transition: all 0.5s;
- height: 96px;
- margin-top: 8px;
- margin-bottom: 8px;
- /* Mixin for how many grid items to show per row */ }
- @media screen and (max-width: 600px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 33.33333%;
- -ms-flex: 1 1 33.33333%;
- flex: 1 1 33.33333%;
- max-width: 33.33333%; }
- md-bottom-sheet.md-grid md-list-item:nth-of-type(3n+1) {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- md-bottom-sheet.md-grid md-list-item:nth-of-type(3n) {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; } }
- @media screen and (min-width: 600px) and (max-width: 960px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 25%;
- -ms-flex: 1 1 25%;
- flex: 1 1 25%;
- max-width: 25%; } }
- @media screen and (min-width: 960px) and (max-width: 1200px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 16.66667%;
- -ms-flex: 1 1 16.66667%;
- flex: 1 1 16.66667%;
- max-width: 16.66667%; } }
- @media screen and (min-width: 1200px) {
- md-bottom-sheet.md-grid md-list-item {
- -webkit-flex: 1 1 14.28571%;
- -ms-flex: 1 1 14.28571%;
- flex: 1 1 14.28571%;
- max-width: 14.28571%; } }
- md-bottom-sheet.md-grid md-list-item .md-list-item-content {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: 48px;
- padding-bottom: 16px; }
- md-bottom-sheet.md-grid md-list-item .md-grid-item-content {
- border: 1px solid transparent;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: 80px; }
- md-bottom-sheet.md-grid md-list-item .md-icon-container {
- display: inline-block;
- box-sizing: border-box;
- height: 48px;
- width: 48px;
- margin: 0 0; }
- md-bottom-sheet.md-grid md-list-item .md-grid-text {
- font-weight: 400;
- line-height: 16px;
- font-size: 13px;
- margin: 0;
- white-space: nowrap;
- width: 64px;
- text-align: center;
- text-transform: none;
- padding-top: 8px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-bottom-sheet {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.js
deleted file mode 100644
index 1ade20c3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.js
+++ /dev/null
@@ -1,267 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.bottomSheet
- * @description
- * BottomSheet
- */
-angular.module('material.components.bottomSheet', [
- 'material.core',
- 'material.components.backdrop'
-])
- .directive('mdBottomSheet', MdBottomSheetDirective)
- .provider('$mdBottomSheet', MdBottomSheetProvider);
-
-function MdBottomSheetDirective() {
- return {
- restrict: 'E'
- };
-}
-
-/**
- * @ngdoc service
- * @name $mdBottomSheet
- * @module material.components.bottomSheet
- *
- * @description
- * `$mdBottomSheet` opens a bottom sheet over the app and provides a simple promise API.
- *
- * ## Restrictions
- *
- * - The bottom sheet's template must have an outer `<md-bottom-sheet>` element.
- * - Add the `md-grid` class to the bottom sheet for a grid layout.
- * - Add the `md-list` class to the bottom sheet for a list layout.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-controller="MyController">
- * <md-button ng-click="openBottomSheet()">
- * Open a Bottom Sheet!
- * </md-button>
- * </div>
- * </hljs>
- * <hljs lang="js">
- * var app = angular.module('app', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdBottomSheet) {
- * $scope.openBottomSheet = function() {
- * $mdBottomSheet.show({
- * template: '<md-bottom-sheet>Hello!</md-bottom-sheet>'
- * });
- * };
- * });
- * </hljs>
- */
-
- /**
- * @ngdoc method
- * @name $mdBottomSheet#show
- *
- * @description
- * Show a bottom sheet with the specified options.
- *
- * @param {object} options An options object, with the following properties:
- *
- * - `templateUrl` - `{string=}`: The url of an html template file that will
- * be used as the content of the bottom sheet. Restrictions: the template must
- * have an outer `md-bottom-sheet` element.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual
- * template string.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope.
- * This scope will be destroyed when the bottom sheet is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `controller` - `{string=}`: The controller to associate with this bottom sheet.
- * - `locals` - `{string=}`: An object containing key/value pairs. The keys will
- * be used as names of values to inject into the controller. For example,
- * `locals: {three: 3}` would inject `three` into the controller with the value
- * of 3.
- * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
- * the location of the click will be used as the starting point for the opening animation
- * of the the dialog.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
- * and the bottom sheet will not open until the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the bottom sheet to. The `parent` may be a `function`, `string`,
- * `object`, or null. Defaults to appending to the body of the root element (or the root element) of the application.
- * e.g. angular.element(document.getElementById('content')) or "#content"
- * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the bottom sheet is open.
- * Default true.
- *
- * @returns {promise} A promise that can be resolved with `$mdBottomSheet.hide()` or
- * rejected with `$mdBottomSheet.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdBottomSheet#hide
- *
- * @description
- * Hide the existing bottom sheet and resolve the promise returned from
- * `$mdBottomSheet.show()`. This call will close the most recently opened/current bottomsheet (if any).
- *
- * @param {*=} response An argument for the resolved promise.
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdBottomSheet#cancel
- *
- * @description
- * Hide the existing bottom sheet and reject the promise returned from
- * `$mdBottomSheet.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- */
-
-function MdBottomSheetProvider($$interimElementProvider) {
- // how fast we need to flick down to close the sheet, pixels/ms
- var CLOSING_VELOCITY = 0.5;
- var PADDING = 80; // same as css
-
- bottomSheetDefaults.$inject = ["$animate", "$mdConstant", "$mdUtil", "$timeout", "$compile", "$mdTheming", "$mdBottomSheet", "$rootElement", "$mdGesture"];
- return $$interimElementProvider('$mdBottomSheet')
- .setDefaults({
- methods: ['disableParentScroll', 'escapeToClose', 'targetEvent'],
- options: bottomSheetDefaults
- });
-
- /* ngInject */
- function bottomSheetDefaults($animate, $mdConstant, $mdUtil, $timeout, $compile, $mdTheming, $mdBottomSheet, $rootElement, $mdGesture) {
- var backdrop;
-
- return {
- themable: true,
- targetEvent: null,
- onShow: onShow,
- onRemove: onRemove,
- escapeToClose: true,
- disableParentScroll: true
- };
-
-
- function onShow(scope, element, options) {
-
- element = $mdUtil.extractElementByName(element, 'md-bottom-sheet');
-
- // Add a backdrop that will close on click
- backdrop = $compile('<md-backdrop class="md-opaque md-bottom-sheet-backdrop">')(scope);
- backdrop.on('click', function() {
- $timeout($mdBottomSheet.cancel);
- });
- $mdTheming.inherit(backdrop, options.parent);
-
- $animate.enter(backdrop, options.parent, null);
-
- var bottomSheet = new BottomSheet(element, options.parent);
- options.bottomSheet = bottomSheet;
-
- // Give up focus on calling item
- options.targetEvent && angular.element(options.targetEvent.target).blur();
- $mdTheming.inherit(bottomSheet.element, options.parent);
-
- if (options.disableParentScroll) {
- options.lastOverflow = options.parent.css('overflow');
- options.parent.css('overflow', 'hidden');
- }
-
- return $animate.enter(bottomSheet.element, options.parent)
- .then(function() {
- var focusable = angular.element(
- element[0].querySelector('button') ||
- element[0].querySelector('a') ||
- element[0].querySelector('[ng-click]')
- );
- focusable.focus();
-
- if (options.escapeToClose) {
- options.rootElementKeyupCallback = function(e) {
- if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
- $timeout($mdBottomSheet.cancel);
- }
- };
- $rootElement.on('keyup', options.rootElementKeyupCallback);
- }
- });
-
- }
-
- function onRemove(scope, element, options) {
-
- var bottomSheet = options.bottomSheet;
-
- $animate.leave(backdrop);
- return $animate.leave(bottomSheet.element).then(function() {
- if (options.disableParentScroll) {
- options.parent.css('overflow', options.lastOverflow);
- delete options.lastOverflow;
- }
-
- bottomSheet.cleanup();
-
- // Restore focus
- options.targetEvent && angular.element(options.targetEvent.target).focus();
- });
- }
-
- /**
- * BottomSheet class to apply bottom-sheet behavior to an element
- */
- function BottomSheet(element, parent) {
- var deregister = $mdGesture.register(parent, 'drag', { horizontal: false });
- parent.on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- return {
- element: element,
- cleanup: function cleanup() {
- deregister();
- parent.off('$md.dragstart', onDragStart)
- .off('$md.drag', onDrag)
- .off('$md.dragend', onDragEnd);
- }
- };
-
- function onDragStart(ev) {
- // Disable transitions on transform so that it feels fast
- element.css($mdConstant.CSS.TRANSITION_DURATION, '0ms');
- }
-
- function onDrag(ev) {
- var transform = ev.pointer.distanceY;
- if (transform < 5) {
- // Slow down drag when trying to drag up, and stop after PADDING
- transform = Math.max(-PADDING, transform / 2);
- }
- element.css($mdConstant.CSS.TRANSFORM, 'translate3d(0,' + (PADDING + transform) + 'px,0)');
- }
-
- function onDragEnd(ev) {
- if (ev.pointer.distanceY > 0 &&
- (ev.pointer.distanceY > 20 || Math.abs(ev.pointer.velocityY) > CLOSING_VELOCITY)) {
- var distanceRemaining = element.prop('offsetHeight') - ev.pointer.distanceY;
- var transitionDuration = Math.min(distanceRemaining / ev.pointer.velocityY * 0.75, 500);
- element.css($mdConstant.CSS.TRANSITION_DURATION, transitionDuration + 'ms');
- $timeout($mdBottomSheet.cancel);
- } else {
- element.css($mdConstant.CSS.TRANSITION_DURATION, '');
- element.css($mdConstant.CSS.TRANSFORM, '');
- }
- }
- }
-
- }
-
-}
-MdBottomSheetProvider.$inject = ["$$interimElementProvider"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.css
deleted file mode 100644
index 16ff96d8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-bottom-sheet{position:absolute;left:0;right:0;bottom:0;padding:8px 16px 88px;z-index:70;border-top-width:1px;border-top-style:solid;-webkit-transform:translate3d(0,80px,0);transform:translate3d(0,80px,0);transition:all .4s cubic-bezier(.25,.8,.25,1);transition-property:-webkit-transform;transition-property:transform}md-bottom-sheet.md-has-header{padding-top:0}md-bottom-sheet.ng-enter{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}md-bottom-sheet.ng-enter-active{opacity:1;display:block;-webkit-transform:translate3d(0,80px,0)!important;transform:translate3d(0,80px,0)!important}md-bottom-sheet.ng-leave-active{-webkit-transform:translate3d(0,100%,0)!important;transform:translate3d(0,100%,0)!important;transition:all .3s cubic-bezier(.55,0,.55,.2)}md-bottom-sheet .md-subheader{background-color:transparent;font-family:RobotoDraft,Roboto,'Helvetica Neue',sans-serif;line-height:56px;padding:0;white-space:nowrap}md-bottom-sheet md-inline-icon{display:inline-block;height:24px;width:24px;fill:#444}md-bottom-sheet md-list-item{display:-webkit-flex;display:-ms-flexbox;display:flex;outline:0}md-bottom-sheet md-list-item:hover{cursor:pointer}md-bottom-sheet.md-list md-list-item{padding:0;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:48px}md-bottom-sheet.md-list md-list-item div.md-icon-container{display:inline-block;height:24px;margin-right:32px}md-bottom-sheet.md-grid{padding-left:24px;padding-right:24px;padding-top:0}md-bottom-sheet.md-grid md-list{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;transition:all .5s;-webkit-align-items:center;-ms-flex-align:center;align-items:center}md-bottom-sheet.md-grid md-list-item{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-ms-flex-align:center;align-items:center;transition:all .5s;height:96px;margin-top:8px;margin-bottom:8px}@media screen and (max-width:600px){md-bottom-sheet.md-grid md-list-item{-webkit-flex:1 1 33.33333%;-ms-flex:1 1 33.33333%;flex:1 1 33.33333%;max-width:33.33333%}md-bottom-sheet.md-grid md-list-item:nth-of-type(3n+1){-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}md-bottom-sheet.md-grid md-list-item:nth-of-type(3n){-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}}@media screen and (min-width:600px) and (max-width:960px){md-bottom-sheet.md-grid md-list-item{-webkit-flex:1 1 25%;-ms-flex:1 1 25%;flex:1 1 25%;max-width:25%}}@media screen and (min-width:960px) and (max-width:1200px){md-bottom-sheet.md-grid md-list-item{-webkit-flex:1 1 16.66667%;-ms-flex:1 1 16.66667%;flex:1 1 16.66667%;max-width:16.66667%}}@media screen and (min-width:1200px){md-bottom-sheet.md-grid md-list-item{-webkit-flex:1 1 14.28571%;-ms-flex:1 1 14.28571%;flex:1 1 14.28571%;max-width:14.28571%}}md-bottom-sheet.md-grid md-list-item .md-list-item-content{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:48px;padding-bottom:16px}md-bottom-sheet.md-grid md-list-item .md-grid-item-content{border:1px solid transparent;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:80px}md-bottom-sheet.md-grid md-list-item .md-icon-container{display:inline-block;box-sizing:border-box;height:48px;width:48px;margin:0}md-bottom-sheet.md-grid md-list-item .md-grid-text{font-weight:400;line-height:16px;font-size:13px;margin:0;white-space:nowrap;width:64px;text-align:center;text-transform:none;padding-top:8px}@media screen and (-ms-high-contrast:active){md-bottom-sheet{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.js
deleted file mode 100644
index 67f85da9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bottomSheet.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function o(){return{restrict:"E"}}function r(e){function n(e,n,a,l,c,i,s,m,d){function u(o,r,d){r=a.extractElementByName(r,"md-bottom-sheet"),S=c('<md-backdrop class="md-opaque md-bottom-sheet-backdrop">')(o),S.on("click",function(){l(s.cancel)}),i.inherit(S,d.parent),e.enter(S,d.parent,null);var u=new f(r,d.parent);return d.bottomSheet=u,d.targetEvent&&t.element(d.targetEvent.target).blur(),i.inherit(u.element,d.parent),d.disableParentScroll&&(d.lastOverflow=d.parent.css("overflow"),d.parent.css("overflow","hidden")),e.enter(u.element,d.parent).then(function(){var e=t.element(r[0].querySelector("button")||r[0].querySelector("a")||r[0].querySelector("[ng-click]"));e.focus(),d.escapeToClose&&(d.rootElementKeyupCallback=function(e){e.keyCode===n.KEY_CODE.ESCAPE&&l(s.cancel)},m.on("keyup",d.rootElementKeyupCallback))})}function p(n,o,r){var a=r.bottomSheet;return e.leave(S),e.leave(a.element).then(function(){r.disableParentScroll&&(r.parent.css("overflow",r.lastOverflow),delete r.lastOverflow),a.cleanup(),r.targetEvent&&t.element(r.targetEvent.target).focus()})}function f(e,t){function a(t){e.css(n.CSS.TRANSITION_DURATION,"0ms")}function c(t){var o=t.pointer.distanceY;5>o&&(o=Math.max(-r,o/2)),e.css(n.CSS.TRANSFORM,"translate3d(0,"+(r+o)+"px,0)")}function i(t){if(t.pointer.distanceY>0&&(t.pointer.distanceY>20||Math.abs(t.pointer.velocityY)>o)){var r=e.prop("offsetHeight")-t.pointer.distanceY,a=Math.min(r/t.pointer.velocityY*.75,500);e.css(n.CSS.TRANSITION_DURATION,a+"ms"),l(s.cancel)}else e.css(n.CSS.TRANSITION_DURATION,""),e.css(n.CSS.TRANSFORM,"")}var m=d.register(t,"drag",{horizontal:!1});return t.on("$md.dragstart",a).on("$md.drag",c).on("$md.dragend",i),{element:e,cleanup:function(){m(),t.off("$md.dragstart",a).off("$md.drag",c).off("$md.dragend",i)}}}var S;return{themable:!0,targetEvent:null,onShow:u,onRemove:p,escapeToClose:!0,disableParentScroll:!0}}var o=.5,r=80;return n.$inject=["$animate","$mdConstant","$mdUtil","$timeout","$compile","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture"],e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","targetEvent"],options:n})}t.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",o).provider("$mdBottomSheet",r),r.$inject=["$$interimElementProvider"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bower.json
deleted file mode 100644
index ae567438..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/bottomSheet/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-bottomSheet",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-backdrop": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/bower.json
deleted file mode 100644
index 98d86b40..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-button",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button-default-theme.css
deleted file mode 100644
index d26c5cbf..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button-default-theme.css
+++ /dev/null
@@ -1,94 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme {
- border-radius: 3px; }
- a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover {
- background-color: '{{background-500-0.2}}'; }
- a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused {
- background-color: '{{background-500-0.2}}'; }
- a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover {
- background-color: transparent; }
- a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab {
- border-radius: 50%;
- background-color: '{{accent-color}}';
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon {
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover {
- background-color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused {
- background-color: '{{accent-A700}}'; }
- a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button {
- border-radius: 50%; }
- a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary {
- color: '{{primary-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab {
- color: '{{primary-contrast}}';
- background-color: '{{primary-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon {
- color: '{{primary-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover {
- background-color: '{{primary-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused {
- background-color: '{{primary-600}}'; }
- a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon {
- color: '{{primary-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab {
- border-radius: 50%;
- background-color: '{{accent-color}}';
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon {
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover {
- background-color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused {
- background-color: '{{accent-A700}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised {
- color: '{{background-contrast}}';
- background-color: '{{background-50}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon {
- color: '{{background-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover {
- background-color: '{{background-50}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused {
- background-color: '{{background-200}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn {
- color: '{{warn-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab {
- color: '{{warn-contrast}}';
- background-color: '{{warn-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon {
- color: '{{warn-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover {
- background-color: '{{warn-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused {
- background-color: '{{warn-700}}'; }
- a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon {
- color: '{{warn-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent {
- color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab {
- color: '{{accent-contrast}}';
- background-color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon {
- color: '{{accent-contrast}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover {
- background-color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused {
- background-color: '{{accent-700}}'; }
- a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon {
- color: '{{accent-color}}'; }
- a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] {
- color: '{{foreground-3}}';
- cursor: not-allowed; }
- a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon {
- color: '{{foreground-3}}'; }
- a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] {
- background-color: '{{foreground-4}}'; }
- a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] {
- background-color: transparent; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button-default-theme.min.css
deleted file mode 100644
index 9273305d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-button.md-THEME_NAME-theme,a.md-button.md-THEME_NAME-theme{border-radius:3px}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover,a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:'{{background-500-0.2}}'}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover,a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon,a.md-button.md-THEME_NAME-theme.md-fab md-icon{color:'{{accent-contrast}}'}.md-button.md-THEME_NAME-theme.md-icon-button,a.md-button.md-THEME_NAME-theme.md-icon-button{border-radius:50%}.md-button.md-THEME_NAME-theme.md-primary,a.md-button.md-THEME_NAME-theme.md-primary{color:'{{primary-color}}'}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised,a.md-button.md-THEME_NAME-theme.md-primary.md-fab,a.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:'{{primary-contrast}}';background-color:'{{primary-color}}'}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:'{{primary-contrast}}'}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover,a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:'{{primary-color}}'}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused{background-color:'{{primary-600}}'}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:'{{primary-color}}'}.md-button.md-THEME_NAME-theme.md-fab,a.md-button.md-THEME_NAME-theme.md-fab{border-radius:50%;background-color:'{{accent-color}}';color:'{{accent-contrast}}'}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon,a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:'{{accent-contrast}}'}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover,a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused{background-color:'{{accent-A700}}'}.md-button.md-THEME_NAME-theme.md-raised,a.md-button.md-THEME_NAME-theme.md-raised{color:'{{background-contrast}}';background-color:'{{background-50}}'}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon,a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon{color:'{{background-contrast}}'}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover,a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:'{{background-50}}'}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:'{{background-200}}'}.md-button.md-THEME_NAME-theme.md-warn,a.md-button.md-THEME_NAME-theme.md-warn{color:'{{warn-color}}'}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised,a.md-button.md-THEME_NAME-theme.md-warn.md-fab,a.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:'{{warn-contrast}}';background-color:'{{warn-color}}'}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:'{{warn-contrast}}'}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover,a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:'{{warn-color}}'}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused{background-color:'{{warn-700}}'}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:'{{warn-color}}'}.md-button.md-THEME_NAME-theme.md-accent,a.md-button.md-THEME_NAME-theme.md-accent{color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised,a.md-button.md-THEME_NAME-theme.md-accent.md-fab,a.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:'{{accent-contrast}}';background-color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:'{{accent-contrast}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover,a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused{background-color:'{{accent-700}}'}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon,a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:'{{accent-color}}'}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled],a.md-button.md-THEME_NAME-theme.md-accent[disabled],a.md-button.md-THEME_NAME-theme.md-fab[disabled],a.md-button.md-THEME_NAME-theme.md-raised[disabled],a.md-button.md-THEME_NAME-theme.md-warn[disabled],a.md-button.md-THEME_NAME-theme[disabled]{color:'{{foreground-3}}';cursor:not-allowed}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon,a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,a.md-button.md-THEME_NAME-theme[disabled] md-icon{color:'{{foreground-3}}'}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],a.md-button.md-THEME_NAME-theme.md-fab[disabled],a.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:'{{foreground-4}}'}.md-button.md-THEME_NAME-theme[disabled],a.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.css
deleted file mode 100644
index 310df601..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.css
+++ /dev/null
@@ -1,158 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-/**
- * Position a FAB button.
- */
-.md-button {
- box-sizing: border-box;
- color: currentColor;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- position: relative;
- outline: none;
- border: 0;
- display: inline-block;
- padding: 0 6px;
- margin: 6px 8px;
- line-height: 36px;
- min-height: 36px;
- background: transparent;
- white-space: nowrap;
- min-width: 88px;
- text-align: center;
- text-transform: uppercase;
- font-weight: 500;
- font-size: 14px;
- font-style: inherit;
- font-variant: inherit;
- font-family: inherit;
- text-decoration: none;
- cursor: pointer;
- overflow: hidden;
- transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- .md-button *, .md-button *:before, .md-button *:after {
- box-sizing: border-box; }
- .md-button:focus {
- outline: none; }
- .md-button:hover, .md-button:focus {
- text-decoration: none; }
- .md-button.ng-hide, .md-button.ng-leave {
- transition: none; }
- .md-button.md-cornered {
- border-radius: 0; }
- .md-button.md-icon {
- padding: 0;
- background: none; }
- .md-button.md-icon-button {
- margin: 0 6px;
- height: 48px;
- min-width: 0;
- line-height: 48px;
- padding-left: 0;
- padding-right: 0;
- width: 48px;
- border-radius: 50%; }
- .md-button.md-icon-button .md-ripple-container {
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC'); }
- .md-button.md-fab {
- z-index: 20;
- line-height: 56px;
- min-width: 0;
- width: 56px;
- height: 56px;
- vertical-align: middle;
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- transition: 0.2s linear;
- transition-property: background-color, box-shadow; }
- .md-button.md-fab.md-fab-bottom-right {
- top: auto;
- right: 20px;
- bottom: 20px;
- left: auto;
- position: absolute; }
- .md-button.md-fab.md-fab-bottom-left {
- top: auto;
- right: auto;
- bottom: 20px;
- left: 20px;
- position: absolute; }
- .md-button.md-fab.md-fab-top-right {
- top: 20px;
- right: 20px;
- bottom: auto;
- left: auto;
- position: absolute; }
- .md-button.md-fab.md-fab-top-left {
- top: 20px;
- right: auto;
- bottom: auto;
- left: 20px;
- position: absolute; }
- .md-button.md-fab .md-ripple-container {
- border-radius: 50%;
- background-clip: padding-box;
- overflow: hidden;
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC'); }
- .md-button.md-fab md-icon {
- margin-top: 0; }
- .md-button.md-fab.md-mini {
- line-height: 40px;
- width: 40px;
- height: 40px; }
-
-.md-toast-open-top .md-button.md-fab-top-left, .md-toast-open-top .md-button.md-fab-top-right {
- -webkit-transform: translate3d(0, 42px, 0);
- transform: translate3d(0, 42px, 0); }
- .md-toast-open-top .md-button.md-fab-top-left:not([disabled]).md-focused, .md-toast-open-top .md-button.md-fab-top-left:not([disabled]):hover, .md-toast-open-top .md-button.md-fab-top-right:not([disabled]).md-focused, .md-toast-open-top .md-button.md-fab-top-right:not([disabled]):hover {
- -webkit-transform: translate3d(0, 41px, 0);
- transform: translate3d(0, 41px, 0); }
-
-.md-toast-open-bottom .md-button.md-fab-bottom-left, .md-toast-open-bottom .md-button.md-fab-bottom-right {
- -webkit-transform: translate3d(0, -42px, 0);
- transform: translate3d(0, -42px, 0); }
- .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]).md-focused, .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]):hover, .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]).md-focused, .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):hover {
- -webkit-transform: translate3d(0, -43px, 0);
- transform: translate3d(0, -43px, 0); }
-
-.md-button-group {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- width: 100%; }
-
-.md-button-group > .md-button {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- display: block;
- overflow: hidden;
- width: 0;
- border-width: 1px 0px 1px 1px;
- border-radius: 0;
- text-align: center;
- text-overflow: ellipsis;
- white-space: nowrap; }
- .md-button-group > .md-button:first-child {
- border-radius: 2px 0px 0px 2px; }
- .md-button-group > .md-button:last-child {
- border-right-width: 1px;
- border-radius: 0px 2px 2px 0px; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-button.md-raised, .md-button.md-fab {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.js
deleted file mode 100644
index eff33266..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.js
+++ /dev/null
@@ -1,136 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.button
- * @description
- *
- * Button
- */
-angular
- .module('material.components.button', [ 'material.core' ])
- .directive('mdButton', MdButtonDirective);
-
-/**
- * @ngdoc directive
- * @name mdButton
- * @module material.components.button
- *
- * @restrict E
- *
- * @description
- * `<md-button>` is a button directive with optional ink ripples (default enabled).
- *
- * If you supply a `href` or `ng-href` attribute, it will become an `<a>` element. Otherwise, it will
- * become a `<button>` element. As per the [Material Design specifications](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the FAB button background is filled with the accent color [by default]. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {boolean=} md-no-ink If present, disable ripple ink effects.
- * @param {expression=} ng-disabled En/Disable based on the expression
- * @param {string=} md-ripple-size Overrides the default ripple size logic. Options: `full`, `partial`, `auto`
- * @param {string=} aria-label Adds alternative text to button for accessibility, useful for icon buttons.
- * If no default text is found, a warning will be logged.
- *
- * @usage
- *
- * Regular buttons:
- *
- * <hljs lang="html">
- * <md-button> Flat Button </md-button>
- * <md-button href="http://google.com"> Flat link </md-button>
- * <md-button class="md-raised"> Raised Button </md-button>
- * <md-button ng-disabled="true"> Disabled Button </md-button>
- * <md-button>
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * Register Now
- * </md-button>
- * </hljs>
- *
- * FAB buttons:
- *
- * <hljs lang="html">
- * <md-button class="md-fab" aria-label="FAB">
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * </md-button>
- * <!-- mini-FAB -->
- * <md-button class="md-fab md-mini" aria-label="Mini FAB">
- * <md-icon md-svg-src="your/icon.svg"></md-icon>
- * </md-button>
- * <!-- Button with SVG Icon -->
- * <md-button class="md-icon-button" aria-label="Custom Icon Button">
- * <md-icon md-svg-icon="path/to/your.svg"></md-icon>
- * </md-button>
- * </hljs>
- */
-function MdButtonDirective($mdButtonInkRipple, $mdTheming, $mdAria, $timeout) {
-
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- template: getTemplate,
- link: postLink
- };
-
- function isAnchor(attr) {
- return angular.isDefined(attr.href) || angular.isDefined(attr.ngHref) || angular.isDefined(attr.ngLink) || angular.isDefined(attr.uiSref);
- }
-
- function getTemplate(element, attr) {
- return isAnchor(attr) ?
- '<a class="md-button" ng-transclude></a>' :
- '<button class="md-button" ng-transclude></button>';
- }
-
- function postLink(scope, element, attr) {
- var node = element[0];
- $mdTheming(element);
- $mdButtonInkRipple.attach(scope, element);
-
- var elementHasText = node.textContent.trim();
- if (!elementHasText) {
- $mdAria.expect(element, 'aria-label');
- }
-
- // For anchor elements, we have to set tabindex manually when the
- // element is disabled
- if (isAnchor(attr) && angular.isDefined(attr.ngDisabled) ) {
- scope.$watch(attr.ngDisabled, function(isDisabled) {
- element.attr('tabindex', isDisabled ? -1 : 0);
- });
- }
-
- // disabling click event when disabled is true
- element.on('click', function(e){
- if (attr.disabled === true) {
- e.preventDefault();
- e.stopImmediatePropagation();
- }
- });
-
- // restrict focus styles to the keyboard
- scope.mouseActive = false;
- element.on('mousedown', function() {
- scope.mouseActive = true;
- $timeout(function(){
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { element.addClass('md-focused'); }
- })
- .on('blur', function() { element.removeClass('md-focused'); });
- }
-
-}
-MdButtonDirective.$inject = ["$mdButtonInkRipple", "$mdTheming", "$mdAria", "$timeout"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.min.css
deleted file mode 100644
index 304b27bb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-button{box-sizing:border-box;color:currentColor;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;outline:0;border:0;display:inline-block;padding:0 6px;margin:6px 8px;line-height:36px;min-height:36px;background:0 0;white-space:nowrap;min-width:88px;text-align:center;text-transform:uppercase;font-weight:500;font-size:14px;font-style:inherit;font-variant:inherit;font-family:inherit;text-decoration:none;cursor:pointer;overflow:hidden;transition:box-shadow .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.md-button *,.md-button :after,.md-button :before{box-sizing:border-box}.md-button:focus{outline:0}.md-button:focus,.md-button:hover{text-decoration:none}.md-button.ng-hide,.md-button.ng-leave{transition:none}.md-button.md-cornered{border-radius:0}.md-button.md-icon{padding:0;background:0 0}.md-button.md-icon-button{margin:0 6px;height:48px;min-width:0;line-height:48px;padding-left:0;padding-right:0;width:48px;border-radius:50%}.md-button.md-icon-button .md-ripple-container{border-radius:50%;background-clip:padding-box;overflow:hidden;-webkit-mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC)}.md-button.md-fab{z-index:20;line-height:56px;min-width:0;width:56px;height:56px;vertical-align:middle;border-radius:50%;background-clip:padding-box;overflow:hidden;transition:.2s linear;transition-property:background-color,box-shadow}.md-button.md-fab.md-fab-bottom-right{top:auto;right:20px;bottom:20px;left:auto;position:absolute}.md-button.md-fab.md-fab-bottom-left{top:auto;right:auto;bottom:20px;left:20px;position:absolute}.md-button.md-fab.md-fab-top-right{top:20px;right:20px;bottom:auto;left:auto;position:absolute}.md-button.md-fab.md-fab-top-left{top:20px;right:auto;bottom:auto;left:20px;position:absolute}.md-button.md-fab .md-ripple-container{border-radius:50%;background-clip:padding-box;overflow:hidden;-webkit-mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC)}.md-button.md-fab md-icon{margin-top:0}.md-button.md-fab.md-mini{line-height:40px;width:40px;height:40px}.md-toast-open-top .md-button.md-fab-top-left,.md-toast-open-top .md-button.md-fab-top-right{-webkit-transform:translate3d(0,42px,0);transform:translate3d(0,42px,0)}.md-toast-open-top .md-button.md-fab-top-left:not([disabled]).md-focused,.md-toast-open-top .md-button.md-fab-top-left:not([disabled]):hover,.md-toast-open-top .md-button.md-fab-top-right:not([disabled]).md-focused,.md-toast-open-top .md-button.md-fab-top-right:not([disabled]):hover{-webkit-transform:translate3d(0,41px,0);transform:translate3d(0,41px,0)}.md-toast-open-bottom .md-button.md-fab-bottom-left,.md-toast-open-bottom .md-button.md-fab-bottom-right{-webkit-transform:translate3d(0,-42px,0);transform:translate3d(0,-42px,0)}.md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]).md-focused,.md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]):hover,.md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]).md-focused,.md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):hover{-webkit-transform:translate3d(0,-43px,0);transform:translate3d(0,-43px,0)}.md-button-group{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;width:100%}.md-button-group>.md-button{-webkit-flex:1;-ms-flex:1;flex:1;display:block;overflow:hidden;width:0;border-width:1px 0 1px 1px;border-radius:0;text-align:center;text-overflow:ellipsis;white-space:nowrap}.md-button-group>.md-button:first-child{border-radius:2px 0 0 2px}.md-button-group>.md-button:last-child{border-right-width:1px;border-radius:0 2px 2px 0}@media screen and (-ms-high-contrast:active){.md-button.md-fab,.md-button.md-raised{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.min.js
deleted file mode 100644
index fdbb6931..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/button/button.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(n,t,e){"use strict";function i(n,e,i,o){function u(n){return t.isDefined(n.href)||t.isDefined(n.ngHref)||t.isDefined(n.ngLink)||t.isDefined(n.uiSref)}function a(n,t){return u(t)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" ng-transclude></button>'}function c(a,c,s){var d=c[0];e(c),n.attach(a,c);var r=d.textContent.trim();r||i.expect(c,"aria-label"),u(s)&&t.isDefined(s.ngDisabled)&&a.$watch(s.ngDisabled,function(n){c.attr("tabindex",n?-1:0)}),c.on("click",function(n){s.disabled===!0&&(n.preventDefault(),n.stopImmediatePropagation())}),a.mouseActive=!1,c.on("mousedown",function(){a.mouseActive=!0,o(function(){a.mouseActive=!1},100)}).on("focus",function(){a.mouseActive===!1&&c.addClass("md-focused")}).on("blur",function(){c.removeClass("md-focused")})}return{restrict:"EA",replace:!0,transclude:!0,template:a,link:c}}t.module("material.components.button",["material.core"]).directive("mdButton",i),i.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$timeout"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/bower.json
deleted file mode 100644
index ccd35586..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-card",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card-default-theme.css
deleted file mode 100644
index 02f7b56f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card-default-theme.css
+++ /dev/null
@@ -1,12 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-card.md-THEME_NAME-theme {
- background-color: '{{background-color}}';
- border-radius: 2px; }
- md-card.md-THEME_NAME-theme .md-card-image {
- border-radius: 2px 2px 0 0; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card-default-theme.min.css
deleted file mode 100644
index 8efbd14e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-card.md-THEME_NAME-theme{background-color:'{{background-color}}';border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.css
deleted file mode 100644
index 7c201992..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.css
+++ /dev/null
@@ -1,34 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-card {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- margin: 8px;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
- md-card > img, md-card > :not(md-card-content) img {
- width: 100%; }
- md-card md-card-content {
- padding: 16px; }
- md-card .md-actions {
- margin: 0; }
- md-card .md-actions .md-button {
- margin-bottom: 8px;
- margin-top: 8px;
- margin-right: 4px;
- margin-left: 4px; }
- md-card md-card-footer {
- padding: 16px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-card {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.js
deleted file mode 100644
index 7f0298a0..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.card
- *
- * @description
- * Card components.
- */
-angular.module('material.components.card', [
- 'material.core'
-])
- .directive('mdCard', mdCardDirective);
-
-
-
-/**
- * @ngdoc directive
- * @name mdCard
- * @module material.components.card
- *
- * @restrict E
- *
- * @description
- * The `<md-card>` directive is a container element used within `<md-content>` containers.
- *
- * An image included as a direct descendant will fill the card's width, while the `<md-card-content>`
- * container will wrap text content and provide padding. An `<md-card-footer>` element can be
- * optionally included to put content flush against the bottom edge of the card.
- *
- * Action buttons can be included in an element with the `.md-actions` class, also used in `md-dialog`.
- * You can then position buttons using layout attributes.
- *
- * Cards have constant width and variable heights; where the maximum height is limited to what can
- * fit within a single view on a platform, but it can temporarily expand as needed.
- *
- * @usage
- * ###Card with optional footer
- * <hljs lang="html">
- * <md-card>
- * <img src="card-image.png" class="md-card-image" alt="image caption">
- * <md-card-content>
- * <h2>Card headline</h2>
- * <p>Card content</p>
- * </md-card-content>
- * <md-card-footer>
- * Card footer
- * </md-card-footer>
- * </md-card>
- * </hljs>
- *
- * ###Card with actions
- * <hljs lang="html">
- * <md-card>
- * <img src="card-image.png" class="md-card-image" alt="image caption">
- * <md-card-content>
- * <h2>Card headline</h2>
- * <p>Card content</p>
- * </md-card-content>
- * <div class="md-actions" layout="row" layout-align="end center">
- * <md-button>Action 1</md-button>
- * <md-button>Action 2</md-button>
- * </div>
- * </md-card>
- * </hljs>
- *
- */
-function mdCardDirective($mdTheming) {
- return {
- restrict: 'E',
- link: function($scope, $element, $attr) {
- $mdTheming($element);
- }
- };
-}
-mdCardDirective.$inject = ["$mdTheming"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.min.css
deleted file mode 100644
index 06a2c819..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-card{box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin:8px;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084)}md-card>:not(md-card-content) img,md-card>img{width:100%}md-card md-card-content{padding:16px}md-card .md-actions{margin:0}md-card .md-actions .md-button{margin:8px 4px}md-card md-card-footer{padding:16px}@media screen and (-ms-high-contrast:active){md-card{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.min.js
deleted file mode 100644
index 51e21f59..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/card/card.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(n,i,t){"use strict";function e(n){return{restrict:"E",link:function(i,t,e){n(t)}}}i.module("material.components.card",["material.core"]).directive("mdCard",e),e.$inject=["$mdTheming"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/bower.json
deleted file mode 100644
index 5a26f2e8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-checkbox",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.css
deleted file mode 100644
index c23e596c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.css
+++ /dev/null
@@ -1,47 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-checkbox.md-THEME_NAME-theme .md-ripple {
- color: '{{accent-600}}'; }
-md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple {
- color: '{{background-600}}'; }
-md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before {
- background-color: '{{accent-color-0.26}}'; }
-md-checkbox.md-THEME_NAME-theme .md-icon {
- border-color: '{{foreground-2}}'; }
-md-checkbox.md-THEME_NAME-theme.md-checked .md-icon {
- background-color: '{{accent-color-0.87}}'; }
-md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after {
- border-color: '{{background-200}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple {
- color: '{{primary-600}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple {
- color: '{{background-600}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon {
- border-color: '{{foreground-2}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon {
- background-color: '{{primary-color-0.87}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before {
- background-color: '{{primary-color-0.26}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after {
- border-color: '{{background-200}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple {
- color: '{{warn-600}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon {
- border-color: '{{foreground-2}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon {
- background-color: '{{warn-color-0.87}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before {
- background-color: '{{warn-color-0.26}}'; }
-md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after {
- border-color: '{{background-200}}'; }
-md-checkbox.md-THEME_NAME-theme[disabled] .md-icon {
- border-color: '{{foreground-3}}'; }
-md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon {
- background-color: '{{foreground-3}}'; }
-md-checkbox.md-THEME_NAME-theme[disabled] .md-label {
- color: '{{foreground-3}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.min.css
deleted file mode 100644
index 4eea8f80..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-checkbox.md-THEME_NAME-theme .md-ripple{color:'{{accent-600}}'}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:'{{background-600}}'}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:'{{accent-color-0.26}}'}md-checkbox.md-THEME_NAME-theme .md-icon{border-color:'{{foreground-2}}'}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:'{{accent-color-0.87}}'}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:'{{background-200}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:'{{primary-600}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:'{{background-600}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon{border-color:'{{foreground-2}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:'{{primary-color-0.87}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:'{{primary-color-0.26}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:'{{background-200}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:'{{warn-600}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon{border-color:'{{foreground-2}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:'{{warn-color-0.87}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:'{{warn-color-0.26}}'}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:'{{background-200}}'}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon{border-color:'{{foreground-3}}'}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:'{{foreground-3}}'}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:'{{foreground-3}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.css
deleted file mode 100644
index 652ba9f1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.css
+++ /dev/null
@@ -1,125 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-checkbox {
- box-sizing: border-box;
- display: block;
- margin: 8px;
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- padding-left: 18px;
- padding-right: 0;
- position: relative;
- line-height: 26px;
- min-width: 18px;
- min-height: 18px; }
- html[dir=rtl] md-checkbox {
- padding-left: 0; }
- html[dir=rtl] md-checkbox {
- padding-right: 18px; }
- md-checkbox *, md-checkbox *:before, md-checkbox *:after {
- box-sizing: border-box; }
- md-checkbox.md-focused:not([disabled]) .md-container:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
- md-checkbox.md-focused:not([disabled]):not(.md-checked) .md-container:before {
- background-color: rgba(0, 0, 0, 0.12); }
- md-checkbox .md-container {
- position: absolute;
- top: 50%;
- display: inline-block;
- width: 18px;
- height: 18px;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- left: 0;
- right: auto; }
- html[dir=rtl] md-checkbox .md-container {
- left: auto; }
- html[dir=rtl] md-checkbox .md-container {
- right: 0; }
- md-checkbox .md-container:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-checkbox .md-container:after {
- content: '';
- position: absolute;
- top: -10px;
- right: -10px;
- bottom: -10px;
- left: -10px; }
- md-checkbox .md-container .md-ripple-container {
- position: absolute;
- display: block;
- width: auto;
- height: auto;
- left: -15px;
- top: -15px;
- right: -15px;
- bottom: -15px; }
- md-checkbox .md-icon {
- transition: 240ms;
- position: absolute;
- top: 0;
- left: 0;
- width: 18px;
- height: 18px;
- border-width: 2px;
- border-style: solid;
- border-radius: 2px; }
- md-checkbox.md-checked .md-icon {
- border: none; }
- md-checkbox[disabled] {
- cursor: no-drop; }
- md-checkbox.md-checked .md-icon:after {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
- position: absolute;
- left: 6px;
- top: 2px;
- display: table;
- width: 6px;
- height: 12px;
- border-width: 2px;
- border-style: solid;
- border-top: 0;
- border-left: 0;
- content: ''; }
- md-checkbox .md-label {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- white-space: normal;
- pointer-events: none;
- -webkit-user-select: text;
- -moz-user-select: text;
- -ms-user-select: text;
- user-select: text; }
- md-checkbox .md-label span {
- margin-left: 10px;
- margin-right: 0; }
- html[dir=rtl] md-checkbox .md-label span {
- margin-left: 0; }
- html[dir=rtl] md-checkbox .md-label span {
- margin-right: 10px; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.js
deleted file mode 100644
index 0b28ffd3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.js
+++ /dev/null
@@ -1,167 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.checkbox
- * @description Checkbox module!
- */
-angular
- .module('material.components.checkbox', ['material.core'])
- .directive('mdCheckbox', MdCheckboxDirective);
-
-/**
- * @ngdoc directive
- * @name mdCheckbox
- * @module material.components.checkbox
- * @restrict E
- *
- * @description
- * The checkbox directive is used like the normal [angular checkbox](https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D).
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the checkbox is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {expression=} ng-true-value The value to which the expression should be set when selected.
- * @param {expression=} ng-false-value The value to which the expression should be set when not selected.
- * @param {string=} ng-change Angular expression to be executed when input changes due to user interaction with the input element.
- * @param {boolean=} md-no-ink Use of attribute indicates use of ripple ink effects
- * @param {string=} aria-label Adds label to checkbox for accessibility.
- * Defaults to checkbox's text. If no default text is found, a warning will be logged.
- *
- * @usage
- * <hljs lang="html">
- * <md-checkbox ng-model="isChecked" aria-label="Finished?">
- * Finished ?
- * </md-checkbox>
- *
- * <md-checkbox md-no-ink ng-model="hasInk" aria-label="No Ink Effects">
- * No Ink Effects
- * </md-checkbox>
- *
- * <md-checkbox ng-disabled="true" ng-model="isDisabled" aria-label="Disabled">
- * Disabled
- * </md-checkbox>
- *
- * </hljs>
- *
- */
-function MdCheckboxDirective(inputDirective, $mdInkRipple, $mdAria, $mdConstant, $mdTheming, $mdUtil, $timeout) {
- inputDirective = inputDirective[0];
- var CHECKED_CSS = 'md-checked';
-
- return {
- restrict: 'E',
- transclude: true,
- require: '?ngModel',
- priority:210, // Run before ngAria
- template:
- '<div class="md-container" md-ink-ripple md-ink-ripple-checkbox>' +
- '<div class="md-icon"></div>' +
- '</div>' +
- '<div ng-transclude class="md-label"></div>',
- compile: compile
- };
-
- // **********************************************************
- // Private Methods
- // **********************************************************
-
- function compile (tElement, tAttrs) {
-
- tAttrs.type = 'checkbox';
- tAttrs.tabindex = tAttrs.tabindex || '0';
- tElement.attr('role', tAttrs.type);
-
- return function postLink(scope, element, attr, ngModelCtrl) {
- ngModelCtrl = ngModelCtrl || $mdUtil.fakeNgModel();
- $mdTheming(element);
-
- if (attr.ngChecked) {
- scope.$watch(
- scope.$eval.bind(scope, attr.ngChecked),
- ngModelCtrl.$setViewValue.bind(ngModelCtrl)
- );
- }
- $$watchExpr('ngDisabled', 'tabindex', {
- true: '-1',
- false: attr.tabindex
- });
- $mdAria.expectWithText(element, 'aria-label');
-
- // Reuse the original input[type=checkbox] directive from Angular core.
- // This is a bit hacky as we need our own event listener and own render
- // function.
- inputDirective.link.pre(scope, {
- on: angular.noop,
- 0: {}
- }, attr, [ngModelCtrl]);
-
- scope.mouseActive = false;
- element.on('click', listener)
- .on('keypress', keypressHandler)
- .on('mousedown', function() {
- scope.mouseActive = true;
- $timeout(function(){
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { element.addClass('md-focused'); }
- })
- .on('blur', function() { element.removeClass('md-focused'); });
-
- ngModelCtrl.$render = render;
-
- function $$watchExpr(expr, htmlAttr, valueOpts) {
- if (attr[expr]) {
- scope.$watch(attr[expr], function(val) {
- if (valueOpts[val]) {
- element.attr(htmlAttr, valueOpts[val]);
- }
- });
- }
- }
-
- function keypressHandler(ev) {
- var keyCode = ev.which || ev.keyCode;
- if (keyCode === $mdConstant.KEY_CODE.SPACE || keyCode === $mdConstant.KEY_CODE.ENTER) {
- ev.preventDefault();
- if (!element.hasClass('md-focused')) { element.addClass('md-focused'); }
- listener(ev);
- }
- }
- function listener(ev) {
- if (element[0].hasAttribute('disabled')) return;
-
- scope.$apply(function() {
- // Toggle the checkbox value...
- var viewValue = attr.ngChecked ? attr.checked : !ngModelCtrl.$viewValue;
-
- ngModelCtrl.$setViewValue( viewValue, ev && ev.type);
- ngModelCtrl.$render();
- });
- }
-
- function render() {
- if(ngModelCtrl.$viewValue) {
- element.addClass(CHECKED_CSS);
- } else {
- element.removeClass(CHECKED_CSS);
- }
- }
- };
- }
-}
-MdCheckboxDirective.$inject = ["inputDirective", "$mdInkRipple", "$mdAria", "$mdConstant", "$mdTheming", "$mdUtil", "$timeout"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.min.css
deleted file mode 100644
index 231352a0..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-checkbox{box-sizing:border-box;display:block;margin:8px;white-space:nowrap;cursor:pointer;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-left:18px;padding-right:0;position:relative;line-height:26px;min-width:18px;min-height:18px}html[dir=rtl] md-checkbox{padding-left:0;padding-right:18px}md-checkbox *,md-checkbox :after,md-checkbox :before{box-sizing:border-box}md-checkbox.md-focused:not([disabled]) .md-container:before{left:-8px;top:-8px;right:-8px;bottom:-8px}md-checkbox.md-focused:not([disabled]):not(.md-checked) .md-container:before{background-color:rgba(0,0,0,.12)}md-checkbox .md-container{position:absolute;top:50%;display:inline-block;width:18px;height:18px;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:0;right:auto}html[dir=rtl] md-checkbox .md-container{left:auto;right:0}md-checkbox .md-container:before{background-color:transparent;border-radius:50%;content:'';position:absolute;display:block;height:auto;left:0;top:0;right:0;bottom:0;transition:all .5s;width:auto}md-checkbox .md-container:after{content:'';position:absolute;top:-10px;right:-10px;bottom:-10px;left:-10px}md-checkbox .md-container .md-ripple-container{position:absolute;display:block;width:auto;height:auto;left:-15px;top:-15px;right:-15px;bottom:-15px}md-checkbox .md-icon{transition:240ms;position:absolute;top:0;left:0;width:18px;height:18px;border-width:2px;border-style:solid;border-radius:2px}md-checkbox.md-checked .md-icon{border:none}md-checkbox[disabled]{cursor:no-drop}md-checkbox.md-checked .md-icon:after{-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;left:6px;top:2px;display:table;width:6px;height:12px;border-width:2px;border-style:solid;border-top:0;border-left:0;content:''}md-checkbox .md-label{position:relative;display:inline-block;vertical-align:middle;white-space:normal;pointer-events:none;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}md-checkbox .md-label span{margin-left:10px;margin-right:0}html[dir=rtl] md-checkbox .md-label span{margin-left:0;margin-right:10px} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.min.js
deleted file mode 100644
index 74575091..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/checkbox/checkbox.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,n,i){"use strict";function t(e,i,t,c,d,o,a){function s(i,s){return s.type="checkbox",s.tabindex=s.tabindex||"0",i.attr("role",s.type),function(i,s,u,l){function m(e,n,t){u[e]&&i.$watch(u[e],function(e){t[e]&&s.attr(n,t[e])})}function f(e){var n=e.which||e.keyCode;(n===c.KEY_CODE.SPACE||n===c.KEY_CODE.ENTER)&&(e.preventDefault(),s.hasClass("md-focused")||s.addClass("md-focused"),p(e))}function p(e){s[0].hasAttribute("disabled")||i.$apply(function(){var n=u.ngChecked?u.checked:!l.$viewValue;l.$setViewValue(n,e&&e.type),l.$render()})}function v(){l.$viewValue?s.addClass(r):s.removeClass(r)}l=l||o.fakeNgModel(),d(s),u.ngChecked&&i.$watch(i.$eval.bind(i,u.ngChecked),l.$setViewValue.bind(l)),m("ngDisabled","tabindex",{"true":"-1","false":u.tabindex}),t.expectWithText(s,"aria-label"),e.link.pre(i,{on:n.noop,0:{}},u,[l]),i.mouseActive=!1,s.on("click",p).on("keypress",f).on("mousedown",function(){i.mouseActive=!0,a(function(){i.mouseActive=!1},100)}).on("focus",function(){i.mouseActive===!1&&s.addClass("md-focused")}).on("blur",function(){s.removeClass("md-focused")}),l.$render=v}}e=e[0];var r="md-checked";return{restrict:"E",transclude:!0,require:"?ngModel",priority:210,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:s}}n.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",t),t.$inject=["inputDirective","$mdInkRipple","$mdAria","$mdConstant","$mdTheming","$mdUtil","$timeout"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/bower.json
deleted file mode 100644
index c6199f5c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-chips",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-autocomplete": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips-default-theme.css
deleted file mode 100644
index 4a2fa22f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips-default-theme.css
+++ /dev/null
@@ -1,24 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-chips.md-THEME_NAME-theme .md-chips {
- box-shadow: 0 1px '{{background-300}}'; }
- md-chips.md-THEME_NAME-theme .md-chips.md-focused {
- box-shadow: 0 2px '{{primary-color}}'; }
-md-chips.md-THEME_NAME-theme .md-chip {
- background: '{{background-300}}';
- color: '{{background-800}}'; }
- md-chips.md-THEME_NAME-theme .md-chip.md-focused {
- background: '{{primary-color}}';
- color: '{{primary-contrast}}'; }
- md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon {
- color: '{{primary-contrast}}'; }
-md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path {
- fill: '{{background-500}}'; }
-
-.md-contact-suggestion span.md-contact-email {
- color: '{{background-400}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips-default-theme.min.css
deleted file mode 100644
index ee124b78..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px '{{background-300}}'}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px '{{primary-color}}'}md-chips.md-THEME_NAME-theme .md-chip{background:0 0;color:'{{background-800}}'}md-chips.md-THEME_NAME-theme .md-chip.md-focused{background:0 0;color:'{{primary-contrast}}'}md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon{color:'{{primary-contrast}}'}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:'{{background-500}}'}.md-contact-suggestion span.md-contact-email{color:'{{background-400}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.css
deleted file mode 100644
index 571a0d0c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.css
+++ /dev/null
@@ -1,131 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-contact-chips .md-chips .md-chip {
- padding: 0 8px 0 0; }
- .md-contact-chips .md-chips .md-chip .md-contact-avatar {
- float: left; }
- .md-contact-chips .md-chips .md-chip .md-contact-avatar img {
- height: 32px;
- border-radius: 16px; }
- .md-contact-chips .md-chips .md-chip .md-contact-name {
- display: inline-block;
- height: 32px;
- margin-left: 8px; }
-
-.md-contact-suggestion {
- height: 56px; }
- .md-contact-suggestion img {
- height: 40px;
- border-radius: 20px;
- margin-top: 8px; }
- .md-contact-suggestion .md-contact-name {
- margin-left: 8px;
- width: 120px; }
- .md-contact-suggestion .md-contact-name, .md-contact-suggestion .md-contact-email {
- display: inline-block;
- overflow: hidden;
- text-overflow: ellipsis; }
-
-.md-contact-chips-suggestions li {
- height: 100%; }
-
-.md-chips {
- display: block;
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif;
- font-size: 13px;
- padding: 0 0 8px 0;
- vertical-align: middle;
- cursor: text; }
- .md-chips:after {
- content: '';
- display: table;
- clear: both; }
- .md-chips .md-chip {
- cursor: default;
- border-radius: 16px;
- display: block;
- height: 32px;
- line-height: 32px;
- margin: 8px 8px 0 0;
- padding: 0 8px 0 12px;
- float: left; }
- .md-chips .md-chip .md-chip-content {
- display: block;
- padding-right: 4px;
- float: left;
- white-space: nowrap; }
- .md-chips .md-chip .md-chip-content:focus {
- outline: none; }
- .md-chips .md-chip .md-chip-remove-container {
- display: inline-block;
- margin-right: -5px; }
- .md-chips .md-chip .md-chip-remove {
- text-align: center;
- width: 32px;
- height: 32px;
- min-width: 0;
- padding: 0;
- background: transparent;
- border: none;
- box-shadow: none;
- margin: 0;
- position: relative; }
- .md-chips .md-chip .md-chip-remove md-icon {
- height: 18px;
- width: 18px;
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0); }
- .md-chips .md-chip-input-container {
- display: block;
- line-height: 32px;
- margin: 8px 8px 0 0;
- padding: 0 8px 0 12px;
- float: left; }
- .md-chips .md-chip-input-container input:not([type]), .md-chips .md-chip-input-container input[type="email"], .md-chips .md-chip-input-container input[type="number"], .md-chips .md-chip-input-container input[type="tel"], .md-chips .md-chip-input-container input[type="url"], .md-chips .md-chip-input-container input[type="text"] {
- border: 0;
- height: 32px;
- line-height: 32px;
- padding: 0; }
- .md-chips .md-chip-input-container input:not([type]):focus, .md-chips .md-chip-input-container input[type="email"]:focus, .md-chips .md-chip-input-container input[type="number"]:focus, .md-chips .md-chip-input-container input[type="tel"]:focus, .md-chips .md-chip-input-container input[type="url"]:focus, .md-chips .md-chip-input-container input[type="text"]:focus {
- outline: none; }
- .md-chips .md-chip-input-container md-autocomplete, .md-chips .md-chip-input-container md-autocomplete-wrap {
- background: transparent;
- height: 32px; }
- .md-chips .md-chip-input-container md-autocomplete md-autocomplete-wrap {
- box-shadow: none; }
- .md-chips .md-chip-input-container md-autocomplete input {
- position: relative; }
- .md-chips .md-chip-input-container input {
- border: 0;
- height: 32px;
- line-height: 32px;
- padding: 0; }
- .md-chips .md-chip-input-container input:focus {
- outline: none; }
- .md-chips .md-chip-input-container md-autocomplete, .md-chips .md-chip-input-container md-autocomplete-wrap {
- height: 32px; }
- .md-chips .md-chip-input-container md-autocomplete {
- box-shadow: none; }
- .md-chips .md-chip-input-container md-autocomplete input {
- position: relative; }
- .md-chips .md-chip-input-container:not(:first-child) {
- margin: 8px 8px 0 0; }
- .md-chips .md-chip-input-container input {
- background: transparent;
- border-width: 0; }
- .md-chips md-autocomplete button {
- display: none; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-chip-input-container, md-chip {
- border: 1px solid #fff; }
- .md-chip-input-container md-autocomplete {
- border: none; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.js
deleted file mode 100644
index e2d7e29b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.js
+++ /dev/null
@@ -1,949 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.chips
- */
-/*
- * @see js folder for chips implementation
- */
-angular.module('material.components.chips', [
- 'material.core',
- 'material.components.autocomplete'
-]);
-
-angular
- .module('material.components.chips')
- .directive('mdChip', MdChip);
-
-/**
- * @ngdoc directive
- * @name mdChip
- * @module material.components.chips
- *
- * @description
- * `<md-chip>` is a component used within `<md-chips>` and is responsible for rendering individual
- * chips.
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-chip>{{$chip}}</md-chip>
- * </hljs>
- *
- */
-
-// This hint text is hidden within a chip but used by screen readers to
-// inform the user how they can interact with a chip.
-var DELETE_HINT_TEMPLATE = '\
- <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden">\
- {{$mdChipsCtrl.deleteHint}}\
- </span>';
-
-/**
- * MDChip Directive Definition
- *
- * @param $mdTheming
- * @param $mdInkRipple
- * ngInject
- */
-function MdChip($mdTheming) {
- return {
- restrict: 'E',
- require: '^?mdChips',
- compile: compile
- };
-
- function compile(element, attr) {
- element.append(DELETE_HINT_TEMPLATE);
- return function postLink(scope, element, attr, ctrl) {
- element.addClass('md-chip');
- $mdTheming(element);
-
- if (ctrl) angular.element(element[0].querySelector('.md-chip-content'))
- .on('blur', function () {
- ctrl.selectedChip = -1;
- });
- };
- }
-}
-MdChip.$inject = ["$mdTheming"];
-
-angular
- .module('material.components.chips')
- .directive('mdChipRemove', MdChipRemove);
-
-/**
- * @ngdoc directive
- * @name mdChipRemove
- * @module material.components.chips
- *
- * @description
- * `<md-chip-remove>`
- * Designates an element to be used as the delete button for a chip. This
- * element is passed as a child of the `md-chips` element.
- *
- * @usage
- * <hljs lang="html">
- * <md-chips><button md-chip-remove>DEL</button></md-chips>
- * </hljs>
- */
-
-
-/**
- * MdChipRemove Directive Definition.
- *
- * @param $compile
- * @param $timeout
- * @returns {{restrict: string, require: string[], link: Function, scope: boolean}}
- * @constructor
- */
-function MdChipRemove ($timeout) {
- return {
- restrict: 'A',
- require: '^mdChips',
- scope: false,
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrl) {
- element.on('click', function(event) {
- scope.$apply(function() {
- ctrl.removeChip(scope.$$replacedScope.$index);
- });
- });
-
- // Child elements aren't available until after a $timeout tick as they are hidden by an
- // `ng-if`. see http://goo.gl/zIWfuw
- $timeout(function() {
- element.attr({ tabindex: -1, ariaHidden: true });
- element.find('button').attr('tabindex', '-1');
- });
- }
-}
-MdChipRemove.$inject = ["$timeout"];
-
-angular
- .module('material.components.chips')
- .directive('mdChipTransclude', MdChipTransclude);
-
-function MdChipTransclude ($compile, $mdUtil) {
- return {
- restrict: 'EA',
- terminal: true,
- link: link,
- scope: false
- };
- function link (scope, element, attr) {
- var ctrl = scope.$parent.$mdChipsCtrl,
- newScope = ctrl.parent.$new(false, ctrl.parent);
- newScope.$$replacedScope = scope;
- newScope.$chip = scope.$chip;
- newScope.$mdChipsCtrl = ctrl;
- element.html(ctrl.$scope.$eval(attr.mdChipTransclude));
- $compile(element.contents())(newScope);
- }
-}
-MdChipTransclude.$inject = ["$compile", "$mdUtil"];
-
-angular
- .module('material.components.chips')
- .controller('MdChipsCtrl', MdChipsCtrl);
-
-/**
- * Controller for the MdChips component. Responsible for adding to and
- * removing from the list of chips, marking chips as selected, and binding to
- * the models of various input components.
- *
- * @param $scope
- * @param $mdConstant
- * @param $log
- * @param $element
- * @constructor
- */
-function MdChipsCtrl ($scope, $mdConstant, $log, $element, $timeout) {
- /** @type {$timeout} **/
- this.$timeout = $timeout;
-
- /** @type {Object} */
- this.$mdConstant = $mdConstant;
-
- /** @type {angular.$scope} */
- this.$scope = $scope;
-
- /** @type {angular.$scope} */
- this.parent = $scope.$parent;
-
- /** @type {$log} */
- this.$log = $log;
-
- /** @type {$element} */
- this.$element = $element;
-
- /** @type {angular.NgModelController} */
- this.ngModelCtrl = null;
-
- /** @type {angular.NgModelController} */
- this.userInputNgModelCtrl = null;
-
- /** @type {Element} */
- this.userInputElement = null;
-
- /** @type {Array.<Object>} */
- this.items = [];
-
- /** @type {number} */
- this.selectedChip = -1;
-
-
- /**
- * Hidden hint text for how to delete a chip. Used to give context to screen readers.
- * @type {string}
- */
- this.deleteHint = 'Press delete to remove this chip.';
-
- /**
- * Hidden label for the delete button. Used to give context to screen readers.
- * @type {string}
- */
- this.deleteButtonLabel = 'Remove';
-
- /**
- * Model used by the input element.
- * @type {string}
- */
- this.chipBuffer = '';
-
- /**
- * Whether to use the mdOnAppend expression to transform the chip buffer
- * before appending it to the list.
- * @type {boolean}
- */
- this.useMdOnAppend = false;
-}
-MdChipsCtrl.$inject = ["$scope", "$mdConstant", "$log", "$element", "$timeout"];
-
-/**
- * Handles the keydown event on the input element: <enter> appends the
- * buffer to the chip list, while backspace removes the last chip in the list
- * if the current buffer is empty.
- * @param event
- */
-MdChipsCtrl.prototype.inputKeydown = function(event) {
- var chipBuffer = this.getChipBuffer();
- switch (event.keyCode) {
- case this.$mdConstant.KEY_CODE.ENTER:
- if (this.$scope.requireMatch || !chipBuffer) break;
- event.preventDefault();
- this.appendChip(chipBuffer);
- this.resetChipBuffer();
- break;
- case this.$mdConstant.KEY_CODE.BACKSPACE:
- if (chipBuffer) break;
- event.stopPropagation();
- if (this.items.length) this.selectAndFocusChipSafe(this.items.length - 1);
- break;
- }
-};
-
-/**
- * Handles the keydown event on the chip elements: backspace removes the selected chip, arrow
- * keys switch which chips is active
- * @param event
- */
-MdChipsCtrl.prototype.chipKeydown = function (event) {
- if (this.getChipBuffer()) return;
- switch (event.keyCode) {
- case this.$mdConstant.KEY_CODE.BACKSPACE:
- case this.$mdConstant.KEY_CODE.DELETE:
- if (this.selectedChip < 0) return;
- event.preventDefault();
- this.removeAndSelectAdjacentChip(this.selectedChip);
- break;
- case this.$mdConstant.KEY_CODE.LEFT_ARROW:
- event.preventDefault();
- if (this.selectedChip < 0) this.selectedChip = this.items.length;
- if (this.items.length) this.selectAndFocusChipSafe(this.selectedChip - 1);
- break;
- case this.$mdConstant.KEY_CODE.RIGHT_ARROW:
- event.preventDefault();
- this.selectAndFocusChipSafe(this.selectedChip + 1);
- break;
- case this.$mdConstant.KEY_CODE.ESCAPE:
- case this.$mdConstant.KEY_CODE.TAB:
- if (this.selectedChip < 0) return;
- event.preventDefault();
- this.onFocus();
- break;
- }
-};
-
-/**
- * Get the input's placeholder - uses `placeholder` when list is empty and `secondary-placeholder`
- * when the list is non-empty. If `secondary-placeholder` is not provided, `placeholder` is used
- * always.
- */
-MdChipsCtrl.prototype.getPlaceholder = function() {
- // Allow `secondary-placeholder` to be blank.
- var useSecondary = (this.items.length &&
- (this.secondaryPlaceholder == '' || this.secondaryPlaceholder));
- return useSecondary ? this.placeholder : this.secondaryPlaceholder;
-};
-
-/**
- * Removes chip at {@code index} and selects the adjacent chip.
- * @param index
- */
-MdChipsCtrl.prototype.removeAndSelectAdjacentChip = function(index) {
- var selIndex = this.getAdjacentChipIndex(index);
- this.removeChip(index);
- this.$timeout(angular.bind(this, function () {
- this.selectAndFocusChipSafe(selIndex);
- }));
-};
-
-/**
- * Sets the selected chip index to -1.
- */
-MdChipsCtrl.prototype.resetSelectedChip = function() {
- this.selectedChip = -1;
-};
-
-/**
- * Gets the index of an adjacent chip to select after deletion. Adjacency is
- * determined as the next chip in the list, unless the target chip is the
- * last in the list, then it is the chip immediately preceding the target. If
- * there is only one item in the list, -1 is returned (select none).
- * The number returned is the index to select AFTER the target has been
- * removed.
- * If the current chip is not selected, then -1 is returned to select none.
- */
-MdChipsCtrl.prototype.getAdjacentChipIndex = function(index) {
- var len = this.items.length - 1;
- return (len == 0) ? -1 :
- (index == len) ? index -1 : index;
-};
-
-/**
- * Append the contents of the buffer to the chip list. This method will first
- * call out to the md-on-append method, if provided
- * @param newChip
- */
-MdChipsCtrl.prototype.appendChip = function(newChip) {
- if (this.items.indexOf(newChip) + 1) return;
- if (this.useMdOnAppend && this.mdOnAppend) {
- newChip = this.mdOnAppend({'$chip': newChip});
- }
- this.items.push(newChip);
-};
-
-/**
- * Sets whether to use the md-on-append expression. This expression is
- * bound to scope and controller in {@code MdChipsDirective} as
- * {@code mdOnAppend}. Due to the nature of directive scope bindings, the
- * controller cannot know on its own/from the scope whether an expression was
- * actually provided.
- */
-MdChipsCtrl.prototype.useMdOnAppendExpression = function() {
- this.useMdOnAppend = true;
-};
-
-/**
- * Gets the input buffer. The input buffer can be the model bound to the
- * default input item {@code this.chipBuffer}, the {@code selectedItem}
- * model of an {@code md-autocomplete}, or, through some magic, the model
- * bound to any inpput or text area element found within a
- * {@code md-input-container} element.
- * @return {Object|string}
- */
-MdChipsCtrl.prototype.getChipBuffer = function() {
- return !this.userInputElement ? this.chipBuffer :
- this.userInputNgModelCtrl ? this.userInputNgModelCtrl.$viewValue :
- this.userInputElement[0].value;
-};
-
-/**
- * Resets the input buffer for either the internal input or user provided input element.
- */
-MdChipsCtrl.prototype.resetChipBuffer = function() {
- if (this.userInputElement) {
- if (this.userInputNgModelCtrl) {
- this.userInputNgModelCtrl.$setViewValue('');
- this.userInputNgModelCtrl.$render();
- } else {
- this.userInputElement[0].value = '';
- }
- } else {
- this.chipBuffer = '';
- }
-};
-
-/**
- * Removes the chip at the given index.
- * @param index
- */
-MdChipsCtrl.prototype.removeChip = function(index) {
- this.items.splice(index, 1);
-};
-
-MdChipsCtrl.prototype.removeChipAndFocusInput = function (index) {
- this.removeChip(index);
- this.onFocus();
-};
-/**
- * Selects the chip at `index`,
- * @param index
- */
-MdChipsCtrl.prototype.selectAndFocusChipSafe = function(index) {
- if (!this.items.length) {
- this.selectChip(-1);
- this.onFocus();
- return;
- }
- if (index === this.items.length) return this.onFocus();
- index = Math.max(index, 0);
- index = Math.min(index, this.items.length - 1);
- this.selectChip(index);
- this.focusChip(index);
-};
-
-/**
- * Marks the chip at the given index as selected.
- * @param index
- */
-MdChipsCtrl.prototype.selectChip = function(index) {
- if (index >= -1 && index <= this.items.length) {
- this.selectedChip = index;
- } else {
- this.$log.warn('Selected Chip index out of bounds; ignoring.');
- }
-};
-
-/**
- * Selects the chip at `index` and gives it focus.
- * @param index
- */
-MdChipsCtrl.prototype.selectAndFocusChip = function(index) {
- this.selectChip(index);
- if (index != -1) {
- this.focusChip(index);
- }
-};
-
-/**
- * Call `focus()` on the chip at `index`
- */
-MdChipsCtrl.prototype.focusChip = function(index) {
- this.$element[0].querySelector('md-chip[index="' + index + '"] .md-chip-content').focus();
-};
-
-/**
- * Configures the required interactions with the ngModel Controller.
- * Specifically, set {@code this.items} to the {@code NgModelCtrl#$viewVale}.
- * @param ngModelCtrl
- */
-MdChipsCtrl.prototype.configureNgModel = function(ngModelCtrl) {
- this.ngModelCtrl = ngModelCtrl;
-
- var self = this;
- ngModelCtrl.$render = function() {
- // model is updated. do something.
- self.items = self.ngModelCtrl.$viewValue;
- };
-};
-
-MdChipsCtrl.prototype.onFocus = function () {
- var input = this.$element[0].querySelector('input');
- input && input.focus();
- this.resetSelectedChip();
-};
-
-MdChipsCtrl.prototype.onInputFocus = function () {
- this.inputHasFocus = true;
- this.resetSelectedChip();
-};
-
-MdChipsCtrl.prototype.onInputBlur = function () {
- this.inputHasFocus = false;
-};
-
-/**
- * Configure event bindings on a user-provided input element.
- * @param inputElement
- */
-MdChipsCtrl.prototype.configureUserInput = function(inputElement) {
- this.userInputElement = inputElement;
-
- // Find the NgModelCtrl for the input element
- var ngModelCtrl = inputElement.controller('ngModel');
- // `.controller` will look in the parent as well.
- if (ngModelCtrl != this.ngModelCtrl) {
- this.userInputNgModelCtrl = ngModelCtrl;
- }
-
- // Bind to keydown and focus events of input
- var scope = this.$scope;
- var ctrl = this;
- inputElement
- .attr({ tabindex: 0 })
- .on('keydown', function(event) { scope.$apply( angular.bind(ctrl, function() { ctrl.inputKeydown(event); })) })
- .on('focus', angular.bind(ctrl, ctrl.onInputFocus))
- .on('blur', angular.bind(ctrl, ctrl.onInputBlur));
-};
-
-MdChipsCtrl.prototype.configureAutocomplete = function(ctrl) {
-
- ctrl.registerSelectedItemWatcher(angular.bind(this, function (item) {
- if (item) {
- this.appendChip(item);
- this.resetChipBuffer();
- }
- }));
-
- this.$element.find('input')
- .on('focus',angular.bind(this, this.onInputFocus) )
- .on('blur', angular.bind(this, this.onInputBlur) );
-};
-
-MdChipsCtrl.prototype.hasFocus = function () {
- return this.inputHasFocus || this.selectedChip >= 0;
-};
-
- angular
- .module('material.components.chips')
- .directive('mdChips', MdChips);
-
- /**
- * @ngdoc directive
- * @name mdChips
- * @module material.components.chips
- *
- * @description
- * `<md-chips>` is an input component for building lists of strings or objects. The list items are
- * displayed as 'chips'. This component can make use of an `<input>` element or an
- * `<md-autocomplete>` element.
- *
- * <strong>Custom `<md-chip-template>` template</strong>
- * A custom template may be provided to render the content of each chip. This is achieved by
- * specifying an `<md-chip-template>` element as a child of `<md-chips>`. Note: Any attributes on
- * `<md-chip-template>` will be dropped as only the innerHTML is used for the chip template. The
- * variables `$chip` and `$index` are available in the scope of `<md-chip-template>`, representing
- * the chip object and its index in the list of chips, respectively.
- * To override the chip delete control, include an element (ideally a button) with the attribute
- * `md-chip-remove`. A click listener to remove the chip will be added automatically. The element
- * is also placed as a sibling to the chip content (on which there are also click listeners) to
- * avoid a nested ng-click situation.
- *
- * <h3> Pending Features </h3>
- * <ul style="padding-left:20px;">
- *
- * <ul>Style
- * <li>Colours for hover, press states (ripple?).</li>
- * </ul>
- *
- * <ul>List Manipulation
- * <li>delete item via DEL or backspace keys when selected</li>
- * </ul>
- *
- * <ul>Validation
- * <li>de-dupe values (or support duplicates, but fix the ng-repeat duplicate key issue)</li>
- * <li>allow a validation callback</li>
- * <li>hilighting style for invalid chips</li>
- * </ul>
- *
- * <ul>Item mutation
- * <li>Support `
- * <md-chip-edit>` template, show/hide the edit element on tap/click? double tap/double
- * click?
- * </li>
- * </ul>
- *
- * <ul>Truncation and Disambiguation (?)
- * <li>Truncate chip text where possible, but do not truncate entries such that two are
- * indistinguishable.</li>
- * </ul>
- *
- * <ul>Drag and Drop
- * <li>Drag and drop chips between related `<md-chips>` elements.
- * </li>
- * </ul>
- * </ul>
- *
- * <span style="font-size:.8em;text-align:center">
- * Warning: This component is a WORK IN PROGRESS. If you use it now,
- * it will probably break on you in the future.
- * </span>
- *
- * @param {string=|object=} ng-model A model to bind the list of items to
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {string=} secondary-placeholder Placeholder text that will be forwarded to the input,
- * displayed when there is at least on item in the list
- * @param {boolean=} readonly Disables list manipulation (deleting or adding list items), hiding
- * the input and delete buttons
- * @param {expression} md-on-append An expression expected to convert the input string into an
- * object when adding a chip.
- * @param {string=} delete-hint A string read by screen readers instructing users that pressing
- * the delete key will remove the chip.
- * @param {string=} delete-button-label A label for the delete button. Also hidden and read by
- * screen readers.
- *
- * @usage
- * <hljs lang="html">
- * <md-chips
- * ng-model="myItems"
- * placeholder="Add an item"
- * readonly="isReadOnly">
- * </md-chips>
- * </hljs>
- *
- */
-
-
- var MD_CHIPS_TEMPLATE = '\
- <md-chips-wrap\
- ng-if="!$mdChipsCtrl.readonly || $mdChipsCtrl.items.length > 0"\
- ng-keydown="$mdChipsCtrl.chipKeydown($event)"\
- ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus() }"\
- class="md-chips">\
- <md-chip ng-repeat="$chip in $mdChipsCtrl.items"\
- index="{{$index}}"\
- ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index}">\
- <div class="md-chip-content"\
- tabindex="-1"\
- aria-hidden="true"\
- ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"\
- md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>\
- <div class="md-chip-remove-container"\
- md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>\
- </md-chip>\
- <div ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"\
- class="md-chip-input-container"\
- md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>\
- </div>\
- </md-chips-wrap>';
-
- var CHIP_INPUT_TEMPLATE = '\
- <input\
- tabindex="0"\
- placeholder="{{$mdChipsCtrl.getPlaceholder()}}"\
- aria-label="{{$mdChipsCtrl.getPlaceholder()}}"\
- ng-model="$mdChipsCtrl.chipBuffer"\
- ng-focus="$mdChipsCtrl.onInputFocus()"\
- ng-blur="$mdChipsCtrl.onInputBlur()"\
- ng-keydown="$mdChipsCtrl.inputKeydown($event)">';
-
- var CHIP_DEFAULT_TEMPLATE = '\
- <span>{{$chip}}</span>';
-
- var CHIP_REMOVE_TEMPLATE = '\
- <button\
- class="md-chip-remove"\
- ng-if="!$mdChipsCtrl.readonly"\
- ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)"\
- type="button"\
- aria-hidden="true"\
- tabindex="-1">\
- <md-icon md-svg-icon="md-close"></md-icon>\
- <span class="md-visually-hidden">\
- {{$mdChipsCtrl.deleteButtonLabel}}\
- </span>\
- </button>';
-
- /**
- * MDChips Directive Definition
- */
- function MdChips ($mdTheming, $mdUtil, $compile, $log, $timeout) {
- return {
- template: function(element, attrs) {
- // Clone the element into an attribute. By prepending the attribute
- // name with '$', Angular won't write it into the DOM. The cloned
- // element propagates to the link function via the attrs argument,
- // where various contained-elements can be consumed.
- var content = attrs['$mdUserTemplate'] = element.clone();
- return MD_CHIPS_TEMPLATE;
- },
- require: ['mdChips'],
- restrict: 'E',
- controller: 'MdChipsCtrl',
- controllerAs: '$mdChipsCtrl',
- bindToController: true,
- compile: compile,
- scope: {
- readonly: '=readonly',
- placeholder: '@',
- secondaryPlaceholder: '@',
- mdOnAppend: '&',
- deleteHint: '@',
- deleteButtonLabel: '@',
- requireMatch: '=?mdRequireMatch'
- }
- };
-
- /**
- * Builds the final template for `md-chips` and returns the postLink function.
- *
- * Building the template involves 3 key components:
- * static chips
- * chip template
- * input control
- *
- * If no `ng-model` is provided, only the static chip work needs to be done.
- *
- * If no user-passed `md-chip-template` exists, the default template is used. This resulting
- * template is appended to the chip content element.
- *
- * The remove button may be overridden by passing an element with an md-chip-remove attribute.
- *
- * If an `input` or `md-autocomplete` element is provided by the caller, it is set aside for
- * transclusion later. The transclusion happens in `postLink` as the parent scope is required.
- * If no user input is provided, a default one is appended to the input container node in the
- * template.
- *
- * Static Chips (i.e. `md-chip` elements passed from the caller) are gathered and set aside for
- * transclusion in the `postLink` function.
- *
- *
- * @param element
- * @param attr
- * @returns {Function}
- */
- function compile(element, attr) {
- // Grab the user template from attr and reset the attribute to null.
- var userTemplate = attr['$mdUserTemplate'];
- attr['$mdUserTemplate'] = null;
-
- // Set the chip remove, chip contents and chip input templates. The link function will put
- // them on the scope for transclusion later.
- var chipRemoveTemplate = getTemplateByQuery('md-chips>*[md-chip-remove]') || CHIP_REMOVE_TEMPLATE,
- chipContentsTemplate = getTemplateByQuery('md-chips>md-chip-template') || CHIP_DEFAULT_TEMPLATE,
- chipInputTemplate = getTemplateByQuery('md-chips>md-autocomplete')
- || getTemplateByQuery('md-chips>input')
- || CHIP_INPUT_TEMPLATE,
- staticChips = userTemplate.find('md-chip');
-
- // Warn of malformed template. See #2545
- if (userTemplate[0].querySelector('md-chip-template>*[md-chip-remove]')) {
- $log.warn('invalid placement of md-chip-remove within md-chip-template.');
- }
-
- function getTemplateByQuery (query) {
- if (!attr.ngModel) return;
- var element = userTemplate[0].querySelector(query);
- return element && element.outerHTML;
- }
-
- /**
- * Configures controller and transcludes.
- */
- return function postLink(scope, element, attrs, controllers) {
-
- $mdUtil.initOptionalProperties(scope, attr);
-
- $mdTheming(element);
- var mdChipsCtrl = controllers[0];
- mdChipsCtrl.chipContentsTemplate = chipContentsTemplate;
- mdChipsCtrl.chipRemoveTemplate = chipRemoveTemplate;
- mdChipsCtrl.chipInputTemplate = chipInputTemplate;
-
- element
- .attr({ ariaHidden: true, tabindex: -1 })
- .on('focus', function () { mdChipsCtrl.onFocus(); });
-
- if (attr.ngModel) {
- mdChipsCtrl.configureNgModel(element.controller('ngModel'));
-
- // If an `md-on-append` attribute was set, tell the controller to use the expression
- // when appending chips.
- if (attrs.mdOnAppend) mdChipsCtrl.useMdOnAppendExpression();
-
- // The md-autocomplete and input elements won't be compiled until after this directive
- // is complete (due to their nested nature). Wait a tick before looking for them to
- // configure the controller.
- if (chipInputTemplate != CHIP_INPUT_TEMPLATE) {
- $timeout(function() {
- if (chipInputTemplate.indexOf('<md-autocomplete') === 0)
- mdChipsCtrl
- .configureAutocomplete(element.find('md-autocomplete')
- .controller('mdAutocomplete'));
- mdChipsCtrl.configureUserInput(element.find('input'));
- });
- }
- }
-
- // Compile with the parent's scope and prepend any static chips to the wrapper.
- if (staticChips.length > 0) {
- var compiledStaticChips = $compile(staticChips)(scope.$parent);
- $timeout(function() { element.find('md-chips-wrap').prepend(compiledStaticChips); });
- }
- };
- }
- }
- MdChips.$inject = ["$mdTheming", "$mdUtil", "$compile", "$log", "$timeout"];
-
-angular
- .module('material.components.chips')
- .controller('MdContactChipsCtrl', MdContactChipsCtrl);
-
-
-
-/**
- * Controller for the MdContactChips component
- * @constructor
- */
-function MdContactChipsCtrl () {
- /** @type {Object} */
- this.selectedItem = null;
-
- /** @type {string} */
- this.searchText = '';
-}
-
-
-MdContactChipsCtrl.prototype.queryContact = function(searchText) {
- var results = this.contactQuery({'$query': searchText});
- return this.filterSelected ?
- results.filter(angular.bind(this, this.filterSelectedContacts)) : results;
-};
-
-
-MdContactChipsCtrl.prototype.filterSelectedContacts = function(contact) {
- return this.contacts.indexOf(contact) == -1;
-};
-
- angular
- .module('material.components.chips')
- .directive('mdContactChips', MdContactChips);
-
- /**
- * @ngdoc directive
- * @name mdContactChips
- * @module material.components.chips
- *
- * @description
- * `<md-contact-chips>` is an input component based on `md-chips` and makes use of an
- * `md-autocomplete` element. The component allows the caller to supply a query expression
- * which returns a list of possible contacts. The user can select one of these and add it to
- * the list of chips.
- *
- * @param {string=|object=} ng-model A model to bind the list of items to
- * @param {string=} placeholder Placeholder text that will be forwarded to the input.
- * @param {string=} secondary-placeholder Placeholder text that will be forwarded to the input,
- * displayed when there is at least on item in the list
- * @param {expression} md-contacts An expression expected to return contacts matching the search
- * test, `$query`.
- * @param {string} md-contact-name The field name of the contact object representing the
- * contact's name.
- * @param {string} md-contact-email The field name of the contact object representing the
- * contact's email address.
- * @param {string} md-contact-image The field name of the contact object representing the
- * contact's image.
- *
- *
- * // The following attribute has been removed but may come back.
- * @param {expression=} filter-selected Whether to filter selected contacts from the list of
- * suggestions shown in the autocomplete.
- *
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-contact-chips
- * ng-model="ctrl.contacts"
- * md-contacts="ctrl.querySearch($query)"
- * md-contact-name="name"
- * md-contact-image="image"
- * md-contact-email="email"
- * placeholder="To">
- * </md-contact-chips>
- * </hljs>
- *
- */
-
-
- var MD_CONTACT_CHIPS_TEMPLATE = '\
- <md-chips class="md-contact-chips"\
- ng-model="$mdContactChipsCtrl.contacts"\
- md-require-match="$mdContactChipsCtrl.requireMatch"\
- md-autocomplete-snap>\
- <md-autocomplete\
- md-menu-class="md-contact-chips-suggestions"\
- md-selected-item="$mdContactChipsCtrl.selectedItem"\
- md-search-text="$mdContactChipsCtrl.searchText"\
- md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"\
- md-item-text="$mdContactChipsCtrl.mdContactName"\
- md-no-cache="true"\
- md-autoselect\
- placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ?\
- $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">\
- <div class="md-contact-suggestion">\
- <img \
- ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"\
- alt="{{item[$mdContactChipsCtrl.contactName]}}" />\
- <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText">\
- {{item[$mdContactChipsCtrl.contactName]}}\
- </span>\
- <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>\
- </div>\
- </md-autocomplete>\
- <md-chip-template>\
- <div class="md-contact-avatar">\
- <img \
- ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"\
- alt="{{$chip[$mdContactChipsCtrl.contactName]}}" />\
- </div>\
- <div class="md-contact-name">\
- {{$chip[$mdContactChipsCtrl.contactName]}}\
- </div>\
- </md-chip-template>\
- </md-chips>';
-
-
- /**
- * MDContactChips Directive Definition
- *
- * @param $mdTheming
- * @returns {*}
- * ngInject
- */
- function MdContactChips ($mdTheming, $mdUtil) {
- return {
- template: function(element, attrs) {
- return MD_CONTACT_CHIPS_TEMPLATE;
- },
- restrict: 'E',
- controller: 'MdContactChipsCtrl',
- controllerAs: '$mdContactChipsCtrl',
- bindToController: true,
- compile: compile,
- scope: {
- contactQuery: '&mdContacts',
- placeholder: '@',
- secondaryPlaceholder: '@',
- contactName: '@mdContactName',
- contactImage: '@mdContactImage',
- contactEmail: '@mdContactEmail',
- contacts: '=ngModel',
- requireMatch: '=?mdRequireMatch'
- }
- };
-
- function compile(element, attr) {
- return function postLink(scope, element, attrs, controllers) {
-
- $mdUtil.initOptionalProperties(scope, attr);
- $mdTheming(element);
-
- element.attr('tabindex', '-1');
- };
- }
- }
- MdContactChips.$inject = ["$mdTheming", "$mdUtil"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.min.css
deleted file mode 100644
index 6343b502..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-contact-chips .md-chips .md-chip{padding:0 8px 0 0}.md-contact-chips .md-chips .md-chip .md-contact-avatar{float:left}.md-contact-chips .md-chips .md-chip .md-contact-avatar img{height:32px;border-radius:16px}.md-contact-chips .md-chips .md-chip .md-contact-name{display:inline-block;height:32px;margin-left:8px}.md-contact-suggestion{height:56px}.md-contact-suggestion img{height:40px;border-radius:20px;margin-top:8px}.md-contact-suggestion .md-contact-name{margin-left:8px;width:120px}.md-contact-suggestion .md-contact-email,.md-contact-suggestion .md-contact-name{display:inline-block;overflow:hidden;text-overflow:ellipsis}.md-contact-chips-suggestions li{height:100%}.md-chips{display:block;font-family:RobotoDraft,Roboto,'Helvetica Neue',sans-serif;font-size:13px;padding:0 0 8px;vertical-align:middle;cursor:text}.md-chips:after{content:'';display:table;clear:both}.md-chips .md-chip{cursor:default;border-radius:16px;display:block;height:32px;line-height:32px;margin:8px 8px 0 0;padding:0 8px 0 12px;float:left}.md-chips .md-chip .md-chip-content{display:block;padding-right:4px;float:left;white-space:nowrap}.md-chips .md-chip .md-chip-content:focus{outline:0}.md-chips .md-chip .md-chip-remove-container{display:inline-block;margin-right:-5px}.md-chips .md-chip .md-chip-remove{text-align:center;width:32px;height:32px;min-width:0;padding:0;background:0 0;border:none;box-shadow:none;margin:0;position:relative}.md-chips .md-chip .md-chip-remove md-icon{height:18px;width:18px;position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.md-chips .md-chip-input-container{display:block;line-height:32px;margin:8px 8px 0 0;padding:0 8px 0 12px;float:left}.md-chips .md-chip-input-container input:not([type]),.md-chips .md-chip-input-container input[type=email],.md-chips .md-chip-input-container input[type=number],.md-chips .md-chip-input-container input[type=tel],.md-chips .md-chip-input-container input[type=url],.md-chips .md-chip-input-container input[type=text]{border:0;height:32px;line-height:32px;padding:0}.md-chips .md-chip-input-container input:not([type]):focus,.md-chips .md-chip-input-container input[type=email]:focus,.md-chips .md-chip-input-container input[type=number]:focus,.md-chips .md-chip-input-container input[type=tel]:focus,.md-chips .md-chip-input-container input[type=url]:focus,.md-chips .md-chip-input-container input[type=text]:focus{outline:0}.md-chips .md-chip-input-container md-autocomplete,.md-chips .md-chip-input-container md-autocomplete-wrap{background:0 0}.md-chips .md-chip-input-container md-autocomplete md-autocomplete-wrap{box-shadow:none}.md-chips .md-chip-input-container input{border:0;height:32px;line-height:32px;padding:0}.md-chips .md-chip-input-container input:focus{outline:0}.md-chips .md-chip-input-container md-autocomplete,.md-chips .md-chip-input-container md-autocomplete-wrap{height:32px}.md-chips .md-chip-input-container md-autocomplete{box-shadow:none}.md-chips .md-chip-input-container md-autocomplete input{position:relative}.md-chips .md-chip-input-container:not(:first-child){margin:8px 8px 0 0}.md-chips .md-chip-input-container input{background:0 0;border-width:0}.md-chips md-autocomplete button{display:none}@media screen and (-ms-high-contrast:active){.md-chip-input-container,md-chip{border:1px solid #fff}.md-chip-input-container md-autocomplete{border:none}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.min.js
deleted file mode 100644
index 55ed20b4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/chips/chips.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(t,e,i){"use strict";function n(t){function i(i,n){return i.append(l),function(i,n,o,s){n.addClass("md-chip"),t(n),s&&e.element(n[0].querySelector(".md-chip-content")).on("blur",function(){s.selectedChip=-1})}}return{restrict:"E",require:"^?mdChips",compile:i}}function o(t){function e(e,i,n,o){i.on("click",function(t){e.$apply(function(){o.removeChip(e.$$replacedScope.$index)})}),t(function(){i.attr({tabindex:-1,ariaHidden:!0}),i.find("button").attr("tabindex","-1")})}return{restrict:"A",require:"^mdChips",scope:!1,link:e}}function s(t,e){function i(e,i,n){var o=e.$parent.$mdChipsCtrl,s=o.parent.$new(!1,o.parent);s.$$replacedScope=e,s.$chip=e.$chip,s.$mdChipsCtrl=o,i.html(o.$scope.$eval(n.mdChipTransclude)),t(i.contents())(s)}return{restrict:"EA",terminal:!0,link:i,scope:!1}}function c(t,e,i,n,o){this.$timeout=o,this.$mdConstant=e,this.$scope=t,this.parent=t.$parent,this.$log=i,this.$element=n,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useMdOnAppend=!1}function r(t,e,i,n,o){function s(s,c){function r(t){if(c.ngModel){var e=p[0].querySelector(t);return e&&e.outerHTML}}var p=c.$mdUserTemplate;c.$mdUserTemplate=null;var d=r("md-chips>*[md-chip-remove]")||u,l=r("md-chips>md-chip-template")||m,h=r("md-chips>md-autocomplete")||r("md-chips>input")||a,C=p.find("md-chip");return p[0].querySelector("md-chip-template>*[md-chip-remove]")&&n.warn("invalid placement of md-chip-remove within md-chip-template."),function(n,s,r,p){e.initOptionalProperties(n,c),t(s);var m=p[0];if(m.chipContentsTemplate=l,m.chipRemoveTemplate=d,m.chipInputTemplate=h,s.attr({ariaHidden:!0,tabindex:-1}).on("focus",function(){m.onFocus()}),c.ngModel&&(m.configureNgModel(s.controller("ngModel")),r.mdOnAppend&&m.useMdOnAppendExpression(),h!=a&&o(function(){0===h.indexOf("<md-autocomplete")&&m.configureAutocomplete(s.find("md-autocomplete").controller("mdAutocomplete")),m.configureUserInput(s.find("input"))})),C.length>0){var u=i(C)(n.$parent);o(function(){s.find("md-chips-wrap").prepend(u)})}}}return{template:function(t,e){e.$mdUserTemplate=t.clone();return h},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:s,scope:{readonly:"=readonly",placeholder:"@",secondaryPlaceholder:"@",mdOnAppend:"&",deleteHint:"@",deleteButtonLabel:"@",requireMatch:"=?mdRequireMatch"}}}function p(){this.selectedItem=null,this.searchText=""}function d(t,e){function i(i,n){return function(i,o,s,c){e.initOptionalProperties(i,n),t(o),o.attr("tabindex","-1")}}return{template:function(t,e){return C},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:i,scope:{contactQuery:"&mdContacts",placeholder:"@",secondaryPlaceholder:"@",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",requireMatch:"=?mdRequireMatch"}}}e.module("material.components.chips",["material.core","material.components.autocomplete"]),e.module("material.components.chips").directive("mdChip",n);var l=' <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden"> {{$mdChipsCtrl.deleteHint}} </span>';n.$inject=["$mdTheming"],e.module("material.components.chips").directive("mdChipRemove",o),o.$inject=["$timeout"],e.module("material.components.chips").directive("mdChipTransclude",s),s.$inject=["$compile","$mdUtil"],e.module("material.components.chips").controller("MdChipsCtrl",c),c.$inject=["$scope","$mdConstant","$log","$element","$timeout"],c.prototype.inputKeydown=function(t){var e=this.getChipBuffer();switch(t.keyCode){case this.$mdConstant.KEY_CODE.ENTER:if(this.$scope.requireMatch||!e)break;t.preventDefault(),this.appendChip(e),this.resetChipBuffer();break;case this.$mdConstant.KEY_CODE.BACKSPACE:if(e)break;t.stopPropagation(),this.items.length&&this.selectAndFocusChipSafe(this.items.length-1)}},c.prototype.chipKeydown=function(t){if(!this.getChipBuffer())switch(t.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;t.preventDefault(),this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:t.preventDefault(),this.selectedChip<0&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:t.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;t.preventDefault(),this.onFocus()}},c.prototype.getPlaceholder=function(){var t=this.items.length&&(""==this.secondaryPlaceholder||this.secondaryPlaceholder);return t?this.placeholder:this.secondaryPlaceholder},c.prototype.removeAndSelectAdjacentChip=function(t){var i=this.getAdjacentChipIndex(t);this.removeChip(t),this.$timeout(e.bind(this,function(){this.selectAndFocusChipSafe(i)}))},c.prototype.resetSelectedChip=function(){this.selectedChip=-1},c.prototype.getAdjacentChipIndex=function(t){var e=this.items.length-1;return 0==e?-1:t==e?t-1:t},c.prototype.appendChip=function(t){this.items.indexOf(t)+1||(this.useMdOnAppend&&this.mdOnAppend&&(t=this.mdOnAppend({$chip:t})),this.items.push(t))},c.prototype.useMdOnAppendExpression=function(){this.useMdOnAppend=!0},c.prototype.getChipBuffer=function(){return this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer},c.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},c.prototype.removeChip=function(t){this.items.splice(t,1)},c.prototype.removeChipAndFocusInput=function(t){this.removeChip(t),this.onFocus()},c.prototype.selectAndFocusChipSafe=function(t){return this.items.length?t===this.items.length?this.onFocus():(t=Math.max(t,0),t=Math.min(t,this.items.length-1),this.selectChip(t),void this.focusChip(t)):(this.selectChip(-1),void this.onFocus())},c.prototype.selectChip=function(t){t>=-1&&t<=this.items.length?this.selectedChip=t:this.$log.warn("Selected Chip index out of bounds; ignoring.")},c.prototype.selectAndFocusChip=function(t){this.selectChip(t),-1!=t&&this.focusChip(t)},c.prototype.focusChip=function(t){this.$element[0].querySelector('md-chip[index="'+t+'"] .md-chip-content').focus()},c.prototype.configureNgModel=function(t){this.ngModelCtrl=t;var e=this;t.$render=function(){e.items=e.ngModelCtrl.$viewValue}},c.prototype.onFocus=function(){var t=this.$element[0].querySelector("input");t&&t.focus(),this.resetSelectedChip()},c.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.resetSelectedChip()},c.prototype.onInputBlur=function(){this.inputHasFocus=!1},c.prototype.configureUserInput=function(t){this.userInputElement=t;var i=t.controller("ngModel");i!=this.ngModelCtrl&&(this.userInputNgModelCtrl=i);var n=this.$scope,o=this;t.attr({tabindex:0}).on("keydown",function(t){n.$apply(e.bind(o,function(){o.inputKeydown(t)}))}).on("focus",e.bind(o,o.onInputFocus)).on("blur",e.bind(o,o.onInputBlur))},c.prototype.configureAutocomplete=function(t){t.registerSelectedItemWatcher(e.bind(this,function(t){t&&(this.appendChip(t),this.resetChipBuffer())})),this.$element.find("input").on("focus",e.bind(this,this.onInputFocus)).on("blur",e.bind(this,this.onInputBlur))},c.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0},e.module("material.components.chips").directive("mdChips",r);var h=' <md-chips-wrap ng-if="!$mdChipsCtrl.readonly || $mdChipsCtrl.items.length > 0" ng-keydown="$mdChipsCtrl.chipKeydown($event)" ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus() }" class="md-chips"> <md-chip ng-repeat="$chip in $mdChipsCtrl.items" index="{{$index}}" ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index}"> <div class="md-chip-content" tabindex="-1" aria-hidden="true" ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)" md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div> <div class="md-chip-remove-container" md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div> </md-chip> <div ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl" class="md-chip-input-container" md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div> </div> </md-chips-wrap>',a=' <input tabindex="0" placeholder="{{$mdChipsCtrl.getPlaceholder()}}" aria-label="{{$mdChipsCtrl.getPlaceholder()}}" ng-model="$mdChipsCtrl.chipBuffer" ng-focus="$mdChipsCtrl.onInputFocus()" ng-blur="$mdChipsCtrl.onInputBlur()" ng-keydown="$mdChipsCtrl.inputKeydown($event)">',m=" <span>{{$chip}}</span>",u=' <button class="md-chip-remove" ng-if="!$mdChipsCtrl.readonly" ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)" type="button" aria-hidden="true" tabindex="-1"> <md-icon md-svg-icon="md-close"></md-icon> <span class="md-visually-hidden"> {{$mdChipsCtrl.deleteButtonLabel}} </span> </button>';r.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout"],e.module("material.components.chips").controller("MdContactChipsCtrl",p),p.prototype.queryContact=function(t){var i=this.contactQuery({$query:t});return this.filterSelected?i.filter(e.bind(this,this.filterSelectedContacts)):i},p.prototype.filterSelectedContacts=function(t){return-1==this.contacts.indexOf(t)},e.module("material.components.chips").directive("mdContactChips",d);var C=' <md-chips class="md-contact-chips" ng-model="$mdContactChipsCtrl.contacts" md-require-match="$mdContactChipsCtrl.requireMatch" md-autocomplete-snap> <md-autocomplete md-menu-class="md-contact-chips-suggestions" md-selected-item="$mdContactChipsCtrl.selectedItem" md-search-text="$mdContactChipsCtrl.searchText" md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)" md-item-text="$mdContactChipsCtrl.mdContactName" md-no-cache="true" md-autoselect placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ? $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}"> <div class="md-contact-suggestion"> <img ng-src="{{item[$mdContactChipsCtrl.contactImage]}}" alt="{{item[$mdContactChipsCtrl.contactName]}}" /> <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText"> {{item[$mdContactChipsCtrl.contactName]}} </span> <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span> </div> </md-autocomplete> <md-chip-template> <div class="md-contact-avatar"> <img ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}" alt="{{$chip[$mdContactChipsCtrl.contactName]}}" /> </div> <div class="md-contact-name"> {{$chip[$mdContactChipsCtrl.contactName]}} </div> </md-chip-template> </md-chips>';d.$inject=["$mdTheming","$mdUtil"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/bower.json
deleted file mode 100644
index a88a677b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-content",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content-default-theme.css
deleted file mode 100644
index 3b7b4dca..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content-default-theme.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-content.md-THEME_NAME-theme {
- background-color: '{{background-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content-default-theme.min.css
deleted file mode 100644
index 5da5131d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-content.md-THEME_NAME-theme{background-color:'{{background-color}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.css
deleted file mode 100644
index 2909004d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-content {
- display: block;
- position: relative;
- overflow: auto;
- -webkit-overflow-scrolling: touch; }
- md-content[md-scroll-y] {
- overflow-y: auto;
- overflow-x: hidden; }
- md-content[md-scroll-x] {
- overflow-x: auto;
- overflow-y: hidden; }
- md-content.autoScroll {
- -webkit-overflow-scrolling: auto; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.js
deleted file mode 100644
index 5e191e29..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.content
- *
- * @description
- * Scrollable content
- */
-angular.module('material.components.content', [
- 'material.core'
-])
- .directive('mdContent', mdContentDirective);
-
-/**
- * @ngdoc directive
- * @name mdContent
- * @module material.components.content
- *
- * @restrict E
- *
- * @description
- * The `<md-content>` directive is a container element useful for scrollable content
- *
- * @usage
- *
- * - Add the `[layout-padding]` attribute to make the content padded.
- *
- * <hljs lang="html">
- * <md-content layout-padding>
- * Lorem ipsum dolor sit amet, ne quod novum mei.
- * </md-content>
- * </hljs>
- *
- */
-
-function mdContentDirective($mdTheming) {
- return {
- restrict: 'E',
- controller: ['$scope', '$element', ContentController],
- link: function(scope, element, attr) {
- var node = element[0];
-
- $mdTheming(element);
- scope.$broadcast('$mdContentLoaded', element);
-
- iosScrollFix(element[0]);
- }
- };
-
- function ContentController($scope, $element) {
- this.$scope = $scope;
- this.$element = $element;
- }
-}
-mdContentDirective.$inject = ["$mdTheming"];
-
-function iosScrollFix(node) {
- // IOS FIX:
- // If we scroll where there is no more room for the webview to scroll,
- // by default the webview itself will scroll up and down, this looks really
- // bad. So if we are scrolling to the very top or bottom, add/subtract one
- angular.element(node).on('$md.pressdown', function(ev) {
- // Only touch events
- if (ev.pointer.type !== 't') return;
- // Don't let a child content's touchstart ruin it for us.
- if (ev.$materialScrollFixed) return;
- ev.$materialScrollFixed = true;
-
- if (node.scrollTop === 0) {
- node.scrollTop = 1;
- } else if (node.scrollHeight === node.scrollTop + node.offsetHeight) {
- node.scrollTop -= 1;
- }
- });
-}
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.min.css
deleted file mode 100644
index 877f4adb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}md-content[md-scroll-y]{overflow-y:auto;overflow-x:hidden}md-content[md-scroll-x]{overflow-x:auto;overflow-y:hidden}md-content.autoScroll{-webkit-overflow-scrolling:auto} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.min.js
deleted file mode 100644
index a5110a27..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/content/content.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,o){"use strict";function n(e){function t(e,t){this.$scope=e,this.$element=t}return{restrict:"E",controller:["$scope","$element",t],link:function(t,o,n){o[0];e(o),t.$broadcast("$mdContentLoaded",o),i(o[0])}}}function i(e){t.element(e).on("$md.pressdown",function(t){"t"===t.pointer.type&&(t.$materialScrollFixed||(t.$materialScrollFixed=!0,0===e.scrollTop?e.scrollTop=1:e.scrollHeight===e.scrollTop+e.offsetHeight&&(e.scrollTop-=1)))})}t.module("material.components.content",["material.core"]).directive("mdContent",n),n.$inject=["$mdTheming"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/bower.json
deleted file mode 100644
index e2f67f88..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-core",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-gestures": "0.9.8",
- "angular-material-theming": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.css
deleted file mode 100644
index 6789b140..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.css
+++ /dev/null
@@ -1,2590 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-/* Sizes:
- 0 <= size < 600 Phone
- 600 <= size < 960 Tablet
- 960 <= size < 1200 Tablet-Landscape
- 1200 <= size PC
-*/
-[layout] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
-
-[layout=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
-
-[layout=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
-
-[layout-padding] > [flex-sm], [layout-padding] > [flex-lt-md] {
- padding: 4px; }
-
-[layout-padding], [layout-padding] > [flex], [layout-padding] > [flex-gt-sm], [layout-padding] > [flex-md], [layout-padding] > [flex-lt-lg] {
- padding: 8px; }
-
-[layout-padding] > [flex-gt-md], [layout-padding] > [flex-lg] {
- padding: 16px; }
-
-[layout-margin] > [flex-sm], [layout-margin] > [flex-lt-md] {
- margin: 4px; }
-
-[layout-margin], [layout-margin] > [flex], [layout-margin] > [flex-gt-sm], [layout-margin] > [flex-md], [layout-margin] > [flex-lt-lg] {
- margin: 8px; }
-
-[layout-margin] > [flex-gt-md], [layout-margin] > [flex-lg] {
- margin: 16px; }
-
-[layout-wrap] {
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap; }
-
-[layout-fill] {
- margin: 0;
- min-height: 100%;
- width: 100%; }
-
-@-moz-document url-prefix() {
- [layout-fill] {
- margin: 0;
- width: 100%;
- min-height: auto;
- height: inherit; } }
-
-[flex] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
-
-[flex="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
-
-[layout="row"] > [flex="0"] {
- max-width: 0%; }
-
-[layout="column"] > [flex="0"] {
- max-height: 0%; }
-
-[flex="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
-
-[layout="row"] > [flex="5"] {
- max-width: 5%; }
-
-[layout="column"] > [flex="5"] {
- max-height: 5%; }
-
-[flex="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
-
-[layout="row"] > [flex="10"] {
- max-width: 10%; }
-
-[layout="column"] > [flex="10"] {
- max-height: 10%; }
-
-[flex="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
-
-[layout="row"] > [flex="15"] {
- max-width: 15%; }
-
-[layout="column"] > [flex="15"] {
- max-height: 15%; }
-
-[flex="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
-
-[layout="row"] > [flex="20"] {
- max-width: 20%; }
-
-[layout="column"] > [flex="20"] {
- max-height: 20%; }
-
-[flex="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
-
-[layout="row"] > [flex="25"] {
- max-width: 25%; }
-
-[layout="column"] > [flex="25"] {
- max-height: 25%; }
-
-[flex="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
-
-[layout="row"] > [flex="30"] {
- max-width: 30%; }
-
-[layout="column"] > [flex="30"] {
- max-height: 30%; }
-
-[flex="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
-
-[layout="row"] > [flex="35"] {
- max-width: 35%; }
-
-[layout="column"] > [flex="35"] {
- max-height: 35%; }
-
-[flex="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
-
-[layout="row"] > [flex="40"] {
- max-width: 40%; }
-
-[layout="column"] > [flex="40"] {
- max-height: 40%; }
-
-[flex="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
-
-[layout="row"] > [flex="45"] {
- max-width: 45%; }
-
-[layout="column"] > [flex="45"] {
- max-height: 45%; }
-
-[flex="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
-
-[layout="row"] > [flex="50"] {
- max-width: 50%; }
-
-[layout="column"] > [flex="50"] {
- max-height: 50%; }
-
-[flex="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
-
-[layout="row"] > [flex="55"] {
- max-width: 55%; }
-
-[layout="column"] > [flex="55"] {
- max-height: 55%; }
-
-[flex="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
-
-[layout="row"] > [flex="60"] {
- max-width: 60%; }
-
-[layout="column"] > [flex="60"] {
- max-height: 60%; }
-
-[flex="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
-
-[layout="row"] > [flex="65"] {
- max-width: 65%; }
-
-[layout="column"] > [flex="65"] {
- max-height: 65%; }
-
-[flex="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
-
-[layout="row"] > [flex="70"] {
- max-width: 70%; }
-
-[layout="column"] > [flex="70"] {
- max-height: 70%; }
-
-[flex="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
-
-[layout="row"] > [flex="75"] {
- max-width: 75%; }
-
-[layout="column"] > [flex="75"] {
- max-height: 75%; }
-
-[flex="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
-
-[layout="row"] > [flex="80"] {
- max-width: 80%; }
-
-[layout="column"] > [flex="80"] {
- max-height: 80%; }
-
-[flex="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
-
-[layout="row"] > [flex="85"] {
- max-width: 85%; }
-
-[layout="column"] > [flex="85"] {
- max-height: 85%; }
-
-[flex="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
-
-[layout="row"] > [flex="90"] {
- max-width: 90%; }
-
-[layout="column"] > [flex="90"] {
- max-height: 90%; }
-
-[flex="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
-
-[layout="row"] > [flex="95"] {
- max-width: 95%; }
-
-[layout="column"] > [flex="95"] {
- max-height: 95%; }
-
-[flex="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
-
-[layout="row"] > [flex="100"] {
- max-width: 100%; }
-
-[layout="column"] > [flex="100"] {
- max-height: 100%; }
-
-[flex="33"], [flex="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
-
-[flex="66"], [flex="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
-
-[layout="row"] > [flex="33"], [layout="row"] > [flex="34"] {
- max-width: 33.33%; }
-[layout="row"] > [flex="66"], [layout="row"] > [flex="67"] {
- max-width: 66.66%; }
-
-[layout="column"] > [flex="33"], [layout="column"] > [flex="34"] {
- max-height: 33.33%; }
-[layout="column"] > [flex="66"], [layout="column"] > [flex="67"] {
- max-height: 66.66%; }
-
-[layout-align="center"], [layout-align="center center"], [layout-align="center start"], [layout-align="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
-
-[layout-align="end"], [layout-align="end center"], [layout-align="end start"], [layout-align="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
-
-[layout-align="space-around"], [layout-align="space-around center"], [layout-align="space-around start"], [layout-align="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
-
-[layout-align="space-between"], [layout-align="space-between center"], [layout-align="space-between start"], [layout-align="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
-
-[layout-align="center center"], [layout-align="start center"], [layout-align="end center"], [layout-align="space-between center"], [layout-align="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
-
-[layout-align="center start"], [layout-align="start start"], [layout-align="end start"], [layout-align="space-between start"], [layout-align="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
-
-[layout-align="center end"], [layout-align="start end"], [layout-align="end end"], [layout-align="space-between end"], [layout-align="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
-
-[flex-order="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
-
-[flex-order="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
-
-[flex-order="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
-
-[flex-order="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
-
-[flex-order="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
-
-[flex-order="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
-
-[flex-order="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
-
-[flex-order="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
-
-[flex-order="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
-
-[flex-order="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
-
-[offset="5"] {
- margin-left: 5%; }
-
-[offset="10"] {
- margin-left: 10%; }
-
-[offset="15"] {
- margin-left: 15%; }
-
-[offset="20"] {
- margin-left: 20%; }
-
-[offset="25"] {
- margin-left: 25%; }
-
-[offset="30"] {
- margin-left: 30%; }
-
-[offset="35"] {
- margin-left: 35%; }
-
-[offset="40"] {
- margin-left: 40%; }
-
-[offset="45"] {
- margin-left: 45%; }
-
-[offset="50"] {
- margin-left: 50%; }
-
-[offset="55"] {
- margin-left: 55%; }
-
-[offset="60"] {
- margin-left: 60%; }
-
-[offset="65"] {
- margin-left: 65%; }
-
-[offset="70"] {
- margin-left: 70%; }
-
-[offset="75"] {
- margin-left: 75%; }
-
-[offset="80"] {
- margin-left: 80%; }
-
-[offset="85"] {
- margin-left: 85%; }
-
-[offset="90"] {
- margin-left: 90%; }
-
-[offset="95"] {
- margin-left: 95%; }
-
-[offset="33"], [offset="34"] {
- margin-left: 33.33%; }
-
-[offset="66"], [offset="67"] {
- margin-left: 66.66%; }
-
-/**
- * `hide-gt-sm show-gt-lg` should hide from 600px to 1200px
- * `show-md hide-gt-sm` should show from 0px to 960px and hide at >960px
- * `hide-gt-md show-gt-sm` should show everywhere (show overrides hide)`
- */
-@media (max-width: 599px) {
- [hide-sm]:not([show-sm]):not([show]), [hide]:not([show-sm]):not([show]) {
- display: none; }
- [flex-order-sm="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-sm="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-sm="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-sm="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-sm="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-sm="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-sm="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-sm="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-sm="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-sm="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-sm="center"], [layout-align-sm="center center"], [layout-align-sm="center start"], [layout-align-sm="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-sm="end"], [layout-align-sm="end center"], [layout-align-sm="end start"], [layout-align-sm="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-sm="space-around"], [layout-align-sm="space-around center"], [layout-align-sm="space-around start"], [layout-align-sm="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-sm="space-between"], [layout-align-sm="space-between center"], [layout-align-sm="space-between start"], [layout-align-sm="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-sm="center center"], [layout-align-sm="start center"], [layout-align-sm="end center"], [layout-align-sm="space-between center"], [layout-align-sm="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-sm="center start"], [layout-align-sm="start start"], [layout-align-sm="end start"], [layout-align-sm="space-between start"], [layout-align-sm="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-sm="center end"], [layout-align-sm="start end"], [layout-align-sm="end end"], [layout-align-sm="space-between end"], [layout-align-sm="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-sm] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-sm=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-sm=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-sm="5"] {
- margin-left: 5%; }
- [offset-sm="10"] {
- margin-left: 10%; }
- [offset-sm="15"] {
- margin-left: 15%; }
- [offset-sm="20"] {
- margin-left: 20%; }
- [offset-sm="25"] {
- margin-left: 25%; }
- [offset-sm="30"] {
- margin-left: 30%; }
- [offset-sm="35"] {
- margin-left: 35%; }
- [offset-sm="40"] {
- margin-left: 40%; }
- [offset-sm="45"] {
- margin-left: 45%; }
- [offset-sm="50"] {
- margin-left: 50%; }
- [offset-sm="55"] {
- margin-left: 55%; }
- [offset-sm="60"] {
- margin-left: 60%; }
- [offset-sm="65"] {
- margin-left: 65%; }
- [offset-sm="70"] {
- margin-left: 70%; }
- [offset-sm="75"] {
- margin-left: 75%; }
- [offset-sm="80"] {
- margin-left: 80%; }
- [offset-sm="85"] {
- margin-left: 85%; }
- [offset-sm="90"] {
- margin-left: 90%; }
- [offset-sm="95"] {
- margin-left: 95%; }
- [offset-sm="33"], [offset-sm="34"] {
- margin-left: 33.33%; }
- [offset-sm="66"], [offset-sm="67"] {
- margin-left: 66.66%; }
- [flex-sm] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-sm="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-sm="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-sm="0"] {
- max-height: 0%; }
- [flex-sm="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-sm="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-sm="5"] {
- max-height: 5%; }
- [flex-sm="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-sm="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-sm="10"] {
- max-height: 10%; }
- [flex-sm="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-sm="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-sm="15"] {
- max-height: 15%; }
- [flex-sm="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-sm="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-sm="20"] {
- max-height: 20%; }
- [flex-sm="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-sm="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-sm="25"] {
- max-height: 25%; }
- [flex-sm="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-sm="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-sm="30"] {
- max-height: 30%; }
- [flex-sm="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-sm="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-sm="35"] {
- max-height: 35%; }
- [flex-sm="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-sm="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-sm="40"] {
- max-height: 40%; }
- [flex-sm="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-sm="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-sm="45"] {
- max-height: 45%; }
- [flex-sm="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-sm="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-sm="50"] {
- max-height: 50%; }
- [flex-sm="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-sm="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-sm="55"] {
- max-height: 55%; }
- [flex-sm="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-sm="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-sm="60"] {
- max-height: 60%; }
- [flex-sm="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-sm="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-sm="65"] {
- max-height: 65%; }
- [flex-sm="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-sm="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-sm="70"] {
- max-height: 70%; }
- [flex-sm="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-sm="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-sm="75"] {
- max-height: 75%; }
- [flex-sm="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-sm="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-sm="80"] {
- max-height: 80%; }
- [flex-sm="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-sm="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-sm="85"] {
- max-height: 85%; }
- [flex-sm="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-sm="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-sm="90"] {
- max-height: 90%; }
- [flex-sm="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-sm="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-sm="95"] {
- max-height: 95%; }
- [flex-sm="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-sm="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-sm="100"] {
- max-height: 100%; }
- [flex-sm="33"], [flex-sm="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-sm="66"], [flex-sm="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-sm="33"], [layout="row"] > [flex-sm="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-sm="66"], [layout="row"] > [flex-sm="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-sm="33"], [layout="column"] > [flex-sm="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-sm="66"], [layout="column"] > [flex-sm="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 600px) {
- [flex-order-gt-sm="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-sm="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-sm="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-sm="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-sm="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-sm="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-sm="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-sm="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-sm="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-sm="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-sm="center"], [layout-align-gt-sm="center center"], [layout-align-gt-sm="center start"], [layout-align-gt-sm="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-sm="end"], [layout-align-gt-sm="end center"], [layout-align-gt-sm="end start"], [layout-align-gt-sm="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-sm="space-around"], [layout-align-gt-sm="space-around center"], [layout-align-gt-sm="space-around start"], [layout-align-gt-sm="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-sm="space-between"], [layout-align-gt-sm="space-between center"], [layout-align-gt-sm="space-between start"], [layout-align-gt-sm="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-sm="center center"], [layout-align-gt-sm="start center"], [layout-align-gt-sm="end center"], [layout-align-gt-sm="space-between center"], [layout-align-gt-sm="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-sm="center start"], [layout-align-gt-sm="start start"], [layout-align-gt-sm="end start"], [layout-align-gt-sm="space-between start"], [layout-align-gt-sm="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-sm="center end"], [layout-align-gt-sm="start end"], [layout-align-gt-sm="end end"], [layout-align-gt-sm="space-between end"], [layout-align-gt-sm="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-sm] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-sm=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-sm=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-sm="5"] {
- margin-left: 5%; }
- [offset-gt-sm="10"] {
- margin-left: 10%; }
- [offset-gt-sm="15"] {
- margin-left: 15%; }
- [offset-gt-sm="20"] {
- margin-left: 20%; }
- [offset-gt-sm="25"] {
- margin-left: 25%; }
- [offset-gt-sm="30"] {
- margin-left: 30%; }
- [offset-gt-sm="35"] {
- margin-left: 35%; }
- [offset-gt-sm="40"] {
- margin-left: 40%; }
- [offset-gt-sm="45"] {
- margin-left: 45%; }
- [offset-gt-sm="50"] {
- margin-left: 50%; }
- [offset-gt-sm="55"] {
- margin-left: 55%; }
- [offset-gt-sm="60"] {
- margin-left: 60%; }
- [offset-gt-sm="65"] {
- margin-left: 65%; }
- [offset-gt-sm="70"] {
- margin-left: 70%; }
- [offset-gt-sm="75"] {
- margin-left: 75%; }
- [offset-gt-sm="80"] {
- margin-left: 80%; }
- [offset-gt-sm="85"] {
- margin-left: 85%; }
- [offset-gt-sm="90"] {
- margin-left: 90%; }
- [offset-gt-sm="95"] {
- margin-left: 95%; }
- [offset-gt-sm="33"], [offset-gt-sm="34"] {
- margin-left: 33.33%; }
- [offset-gt-sm="66"], [offset-gt-sm="67"] {
- margin-left: 66.66%; }
- [flex-gt-sm] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-sm="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-sm="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-sm="0"] {
- max-height: 0%; }
- [flex-gt-sm="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-sm="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-sm="5"] {
- max-height: 5%; }
- [flex-gt-sm="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-sm="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-sm="10"] {
- max-height: 10%; }
- [flex-gt-sm="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-sm="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-sm="15"] {
- max-height: 15%; }
- [flex-gt-sm="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-sm="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-sm="20"] {
- max-height: 20%; }
- [flex-gt-sm="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-sm="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-sm="25"] {
- max-height: 25%; }
- [flex-gt-sm="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-sm="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-sm="30"] {
- max-height: 30%; }
- [flex-gt-sm="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-sm="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-sm="35"] {
- max-height: 35%; }
- [flex-gt-sm="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-sm="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-sm="40"] {
- max-height: 40%; }
- [flex-gt-sm="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-sm="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-sm="45"] {
- max-height: 45%; }
- [flex-gt-sm="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-sm="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-sm="50"] {
- max-height: 50%; }
- [flex-gt-sm="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-sm="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-sm="55"] {
- max-height: 55%; }
- [flex-gt-sm="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-sm="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-sm="60"] {
- max-height: 60%; }
- [flex-gt-sm="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-sm="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-sm="65"] {
- max-height: 65%; }
- [flex-gt-sm="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-sm="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-sm="70"] {
- max-height: 70%; }
- [flex-gt-sm="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-sm="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-sm="75"] {
- max-height: 75%; }
- [flex-gt-sm="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-sm="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-sm="80"] {
- max-height: 80%; }
- [flex-gt-sm="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-sm="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-sm="85"] {
- max-height: 85%; }
- [flex-gt-sm="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-sm="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-sm="90"] {
- max-height: 90%; }
- [flex-gt-sm="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-sm="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-sm="95"] {
- max-height: 95%; }
- [flex-gt-sm="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-sm="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-sm="100"] {
- max-height: 100%; }
- [flex-gt-sm="33"], [flex-gt-sm="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-sm="66"], [flex-gt-sm="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-sm="33"], [layout="row"] > [flex-gt-sm="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-sm="66"], [layout="row"] > [flex-gt-sm="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-sm="33"], [layout="column"] > [flex-gt-sm="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-sm="66"], [layout="column"] > [flex-gt-sm="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 600px) and (max-width: 959px) {
- [hide]:not([show-gt-sm]):not([show-md]):not([show]), [hide-gt-sm]:not([show-gt-sm]):not([show-md]):not([show]) {
- display: none; }
- [hide-md]:not([show-md]):not([show]) {
- display: none; }
- [flex-order-md="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-md="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-md="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-md="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-md="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-md="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-md="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-md="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-md="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-md="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-md="center"], [layout-align-md="center center"], [layout-align-md="center start"], [layout-align-md="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-md="end"], [layout-align-md="end center"], [layout-align-md="end start"], [layout-align-md="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-md="space-around"], [layout-align-md="space-around center"], [layout-align-md="space-around start"], [layout-align-md="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-md="space-between"], [layout-align-md="space-between center"], [layout-align-md="space-between start"], [layout-align-md="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-md="center center"], [layout-align-md="start center"], [layout-align-md="end center"], [layout-align-md="space-between center"], [layout-align-md="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-md="center start"], [layout-align-md="start start"], [layout-align-md="end start"], [layout-align-md="space-between start"], [layout-align-md="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-md="center end"], [layout-align-md="start end"], [layout-align-md="end end"], [layout-align-md="space-between end"], [layout-align-md="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-md] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-md=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-md=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-md="5"] {
- margin-left: 5%; }
- [offset-md="10"] {
- margin-left: 10%; }
- [offset-md="15"] {
- margin-left: 15%; }
- [offset-md="20"] {
- margin-left: 20%; }
- [offset-md="25"] {
- margin-left: 25%; }
- [offset-md="30"] {
- margin-left: 30%; }
- [offset-md="35"] {
- margin-left: 35%; }
- [offset-md="40"] {
- margin-left: 40%; }
- [offset-md="45"] {
- margin-left: 45%; }
- [offset-md="50"] {
- margin-left: 50%; }
- [offset-md="55"] {
- margin-left: 55%; }
- [offset-md="60"] {
- margin-left: 60%; }
- [offset-md="65"] {
- margin-left: 65%; }
- [offset-md="70"] {
- margin-left: 70%; }
- [offset-md="75"] {
- margin-left: 75%; }
- [offset-md="80"] {
- margin-left: 80%; }
- [offset-md="85"] {
- margin-left: 85%; }
- [offset-md="90"] {
- margin-left: 90%; }
- [offset-md="95"] {
- margin-left: 95%; }
- [offset-md="33"], [offset-md="34"] {
- margin-left: 33.33%; }
- [offset-md="66"], [offset-md="67"] {
- margin-left: 66.66%; }
- [flex-md] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-md="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-md="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-md="0"] {
- max-height: 0%; }
- [flex-md="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-md="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-md="5"] {
- max-height: 5%; }
- [flex-md="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-md="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-md="10"] {
- max-height: 10%; }
- [flex-md="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-md="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-md="15"] {
- max-height: 15%; }
- [flex-md="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-md="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-md="20"] {
- max-height: 20%; }
- [flex-md="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-md="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-md="25"] {
- max-height: 25%; }
- [flex-md="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-md="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-md="30"] {
- max-height: 30%; }
- [flex-md="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-md="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-md="35"] {
- max-height: 35%; }
- [flex-md="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-md="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-md="40"] {
- max-height: 40%; }
- [flex-md="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-md="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-md="45"] {
- max-height: 45%; }
- [flex-md="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-md="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-md="50"] {
- max-height: 50%; }
- [flex-md="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-md="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-md="55"] {
- max-height: 55%; }
- [flex-md="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-md="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-md="60"] {
- max-height: 60%; }
- [flex-md="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-md="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-md="65"] {
- max-height: 65%; }
- [flex-md="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-md="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-md="70"] {
- max-height: 70%; }
- [flex-md="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-md="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-md="75"] {
- max-height: 75%; }
- [flex-md="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-md="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-md="80"] {
- max-height: 80%; }
- [flex-md="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-md="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-md="85"] {
- max-height: 85%; }
- [flex-md="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-md="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-md="90"] {
- max-height: 90%; }
- [flex-md="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-md="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-md="95"] {
- max-height: 95%; }
- [flex-md="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-md="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-md="100"] {
- max-height: 100%; }
- [flex-md="33"], [flex-md="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-md="66"], [flex-md="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-md="33"], [layout="row"] > [flex-md="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-md="66"], [layout="row"] > [flex-md="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-md="33"], [layout="column"] > [flex-md="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-md="66"], [layout="column"] > [flex-md="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 960px) {
- [flex-order-gt-md="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-md="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-md="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-md="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-md="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-md="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-md="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-md="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-md="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-md="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-md="center"], [layout-align-gt-md="center center"], [layout-align-gt-md="center start"], [layout-align-gt-md="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-md="end"], [layout-align-gt-md="end center"], [layout-align-gt-md="end start"], [layout-align-gt-md="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-md="space-around"], [layout-align-gt-md="space-around center"], [layout-align-gt-md="space-around start"], [layout-align-gt-md="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-md="space-between"], [layout-align-gt-md="space-between center"], [layout-align-gt-md="space-between start"], [layout-align-gt-md="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-md="center center"], [layout-align-gt-md="start center"], [layout-align-gt-md="end center"], [layout-align-gt-md="space-between center"], [layout-align-gt-md="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-md="center start"], [layout-align-gt-md="start start"], [layout-align-gt-md="end start"], [layout-align-gt-md="space-between start"], [layout-align-gt-md="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-md="center end"], [layout-align-gt-md="start end"], [layout-align-gt-md="end end"], [layout-align-gt-md="space-between end"], [layout-align-gt-md="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-md] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-md=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-md=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-md="5"] {
- margin-left: 5%; }
- [offset-gt-md="10"] {
- margin-left: 10%; }
- [offset-gt-md="15"] {
- margin-left: 15%; }
- [offset-gt-md="20"] {
- margin-left: 20%; }
- [offset-gt-md="25"] {
- margin-left: 25%; }
- [offset-gt-md="30"] {
- margin-left: 30%; }
- [offset-gt-md="35"] {
- margin-left: 35%; }
- [offset-gt-md="40"] {
- margin-left: 40%; }
- [offset-gt-md="45"] {
- margin-left: 45%; }
- [offset-gt-md="50"] {
- margin-left: 50%; }
- [offset-gt-md="55"] {
- margin-left: 55%; }
- [offset-gt-md="60"] {
- margin-left: 60%; }
- [offset-gt-md="65"] {
- margin-left: 65%; }
- [offset-gt-md="70"] {
- margin-left: 70%; }
- [offset-gt-md="75"] {
- margin-left: 75%; }
- [offset-gt-md="80"] {
- margin-left: 80%; }
- [offset-gt-md="85"] {
- margin-left: 85%; }
- [offset-gt-md="90"] {
- margin-left: 90%; }
- [offset-gt-md="95"] {
- margin-left: 95%; }
- [offset-gt-md="33"], [offset-gt-md="34"] {
- margin-left: 33.33%; }
- [offset-gt-md="66"], [offset-gt-md="67"] {
- margin-left: 66.66%; }
- [flex-gt-md] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-md="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-md="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-md="0"] {
- max-height: 0%; }
- [flex-gt-md="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-md="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-md="5"] {
- max-height: 5%; }
- [flex-gt-md="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-md="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-md="10"] {
- max-height: 10%; }
- [flex-gt-md="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-md="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-md="15"] {
- max-height: 15%; }
- [flex-gt-md="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-md="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-md="20"] {
- max-height: 20%; }
- [flex-gt-md="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-md="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-md="25"] {
- max-height: 25%; }
- [flex-gt-md="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-md="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-md="30"] {
- max-height: 30%; }
- [flex-gt-md="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-md="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-md="35"] {
- max-height: 35%; }
- [flex-gt-md="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-md="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-md="40"] {
- max-height: 40%; }
- [flex-gt-md="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-md="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-md="45"] {
- max-height: 45%; }
- [flex-gt-md="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-md="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-md="50"] {
- max-height: 50%; }
- [flex-gt-md="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-md="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-md="55"] {
- max-height: 55%; }
- [flex-gt-md="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-md="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-md="60"] {
- max-height: 60%; }
- [flex-gt-md="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-md="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-md="65"] {
- max-height: 65%; }
- [flex-gt-md="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-md="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-md="70"] {
- max-height: 70%; }
- [flex-gt-md="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-md="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-md="75"] {
- max-height: 75%; }
- [flex-gt-md="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-md="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-md="80"] {
- max-height: 80%; }
- [flex-gt-md="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-md="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-md="85"] {
- max-height: 85%; }
- [flex-gt-md="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-md="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-md="90"] {
- max-height: 90%; }
- [flex-gt-md="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-md="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-md="95"] {
- max-height: 95%; }
- [flex-gt-md="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-md="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-md="100"] {
- max-height: 100%; }
- [flex-gt-md="33"], [flex-gt-md="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-md="66"], [flex-gt-md="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-md="33"], [layout="row"] > [flex-gt-md="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-md="66"], [layout="row"] > [flex-gt-md="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-md="33"], [layout="column"] > [flex-gt-md="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-md="66"], [layout="column"] > [flex-gt-md="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 960px) and (max-width: 1199px) {
- [hide]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]), [hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]), [hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]) {
- display: none; }
- [hide-lg]:not([show-lg]):not([show]) {
- display: none; }
- [flex-order-lg="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-lg="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-lg="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-lg="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-lg="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-lg="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-lg="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-lg="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-lg="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-lg="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-lg="center"], [layout-align-lg="center center"], [layout-align-lg="center start"], [layout-align-lg="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-lg="end"], [layout-align-lg="end center"], [layout-align-lg="end start"], [layout-align-lg="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-lg="space-around"], [layout-align-lg="space-around center"], [layout-align-lg="space-around start"], [layout-align-lg="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-lg="space-between"], [layout-align-lg="space-between center"], [layout-align-lg="space-between start"], [layout-align-lg="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-lg="center center"], [layout-align-lg="start center"], [layout-align-lg="end center"], [layout-align-lg="space-between center"], [layout-align-lg="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-lg="center start"], [layout-align-lg="start start"], [layout-align-lg="end start"], [layout-align-lg="space-between start"], [layout-align-lg="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-lg="center end"], [layout-align-lg="start end"], [layout-align-lg="end end"], [layout-align-lg="space-between end"], [layout-align-lg="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-lg] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-lg=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-lg=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-lg="5"] {
- margin-left: 5%; }
- [offset-lg="10"] {
- margin-left: 10%; }
- [offset-lg="15"] {
- margin-left: 15%; }
- [offset-lg="20"] {
- margin-left: 20%; }
- [offset-lg="25"] {
- margin-left: 25%; }
- [offset-lg="30"] {
- margin-left: 30%; }
- [offset-lg="35"] {
- margin-left: 35%; }
- [offset-lg="40"] {
- margin-left: 40%; }
- [offset-lg="45"] {
- margin-left: 45%; }
- [offset-lg="50"] {
- margin-left: 50%; }
- [offset-lg="55"] {
- margin-left: 55%; }
- [offset-lg="60"] {
- margin-left: 60%; }
- [offset-lg="65"] {
- margin-left: 65%; }
- [offset-lg="70"] {
- margin-left: 70%; }
- [offset-lg="75"] {
- margin-left: 75%; }
- [offset-lg="80"] {
- margin-left: 80%; }
- [offset-lg="85"] {
- margin-left: 85%; }
- [offset-lg="90"] {
- margin-left: 90%; }
- [offset-lg="95"] {
- margin-left: 95%; }
- [offset-lg="33"], [offset-lg="34"] {
- margin-left: 33.33%; }
- [offset-lg="66"], [offset-lg="67"] {
- margin-left: 66.66%; }
- [flex-lg] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-lg="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-lg="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-lg="0"] {
- max-height: 0%; }
- [flex-lg="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-lg="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-lg="5"] {
- max-height: 5%; }
- [flex-lg="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-lg="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-lg="10"] {
- max-height: 10%; }
- [flex-lg="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-lg="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-lg="15"] {
- max-height: 15%; }
- [flex-lg="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-lg="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-lg="20"] {
- max-height: 20%; }
- [flex-lg="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-lg="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-lg="25"] {
- max-height: 25%; }
- [flex-lg="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-lg="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-lg="30"] {
- max-height: 30%; }
- [flex-lg="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-lg="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-lg="35"] {
- max-height: 35%; }
- [flex-lg="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-lg="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-lg="40"] {
- max-height: 40%; }
- [flex-lg="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-lg="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-lg="45"] {
- max-height: 45%; }
- [flex-lg="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-lg="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-lg="50"] {
- max-height: 50%; }
- [flex-lg="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-lg="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-lg="55"] {
- max-height: 55%; }
- [flex-lg="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-lg="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-lg="60"] {
- max-height: 60%; }
- [flex-lg="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-lg="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-lg="65"] {
- max-height: 65%; }
- [flex-lg="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-lg="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-lg="70"] {
- max-height: 70%; }
- [flex-lg="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-lg="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-lg="75"] {
- max-height: 75%; }
- [flex-lg="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-lg="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-lg="80"] {
- max-height: 80%; }
- [flex-lg="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-lg="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-lg="85"] {
- max-height: 85%; }
- [flex-lg="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-lg="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-lg="90"] {
- max-height: 90%; }
- [flex-lg="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-lg="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-lg="95"] {
- max-height: 95%; }
- [flex-lg="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-lg="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-lg="100"] {
- max-height: 100%; }
- [flex-lg="33"], [flex-lg="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-lg="66"], [flex-lg="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-lg="33"], [layout="row"] > [flex-lg="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-lg="66"], [layout="row"] > [flex-lg="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-lg="33"], [layout="column"] > [flex-lg="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-lg="66"], [layout="column"] > [flex-lg="67"] {
- max-height: 66.66%; } }
-
-@media (min-width: 1200px) {
- [hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide-gt-lg]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]), [hide]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]) {
- display: none; }
- [flex-order-gt-lg="0"] {
- -webkit-order: 0;
- -ms-flex-order: 0;
- order: 0; }
- [flex-order-gt-lg="1"] {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1; }
- [flex-order-gt-lg="2"] {
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2; }
- [flex-order-gt-lg="3"] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3; }
- [flex-order-gt-lg="4"] {
- -webkit-order: 4;
- -ms-flex-order: 4;
- order: 4; }
- [flex-order-gt-lg="5"] {
- -webkit-order: 5;
- -ms-flex-order: 5;
- order: 5; }
- [flex-order-gt-lg="6"] {
- -webkit-order: 6;
- -ms-flex-order: 6;
- order: 6; }
- [flex-order-gt-lg="7"] {
- -webkit-order: 7;
- -ms-flex-order: 7;
- order: 7; }
- [flex-order-gt-lg="8"] {
- -webkit-order: 8;
- -ms-flex-order: 8;
- order: 8; }
- [flex-order-gt-lg="9"] {
- -webkit-order: 9;
- -ms-flex-order: 9;
- order: 9; }
- [layout-align-gt-lg="center"], [layout-align-gt-lg="center center"], [layout-align-gt-lg="center start"], [layout-align-gt-lg="center end"] {
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center; }
- [layout-align-gt-lg="end"], [layout-align-gt-lg="end center"], [layout-align-gt-lg="end start"], [layout-align-gt-lg="end end"] {
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end; }
- [layout-align-gt-lg="space-around"], [layout-align-gt-lg="space-around center"], [layout-align-gt-lg="space-around start"], [layout-align-gt-lg="space-around end"] {
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around; }
- [layout-align-gt-lg="space-between"], [layout-align-gt-lg="space-between center"], [layout-align-gt-lg="space-between start"], [layout-align-gt-lg="space-between end"] {
- -webkit-justify-content: space-between;
- -ms-flex-pack: justify;
- justify-content: space-between; }
- [layout-align-gt-lg="center center"], [layout-align-gt-lg="start center"], [layout-align-gt-lg="end center"], [layout-align-gt-lg="space-between center"], [layout-align-gt-lg="space-around center"] {
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- [layout-align-gt-lg="center start"], [layout-align-gt-lg="start start"], [layout-align-gt-lg="end start"], [layout-align-gt-lg="space-between start"], [layout-align-gt-lg="space-around start"] {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- [layout-align-gt-lg="center end"], [layout-align-gt-lg="start end"], [layout-align-gt-lg="end end"], [layout-align-gt-lg="space-between end"], [layout-align-gt-lg="space-around end"] {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end; }
- [layout-gt-lg] {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex; }
- [layout-gt-lg=column] {
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- [layout-gt-lg=row] {
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- [offset-gt-lg="5"] {
- margin-left: 5%; }
- [offset-gt-lg="10"] {
- margin-left: 10%; }
- [offset-gt-lg="15"] {
- margin-left: 15%; }
- [offset-gt-lg="20"] {
- margin-left: 20%; }
- [offset-gt-lg="25"] {
- margin-left: 25%; }
- [offset-gt-lg="30"] {
- margin-left: 30%; }
- [offset-gt-lg="35"] {
- margin-left: 35%; }
- [offset-gt-lg="40"] {
- margin-left: 40%; }
- [offset-gt-lg="45"] {
- margin-left: 45%; }
- [offset-gt-lg="50"] {
- margin-left: 50%; }
- [offset-gt-lg="55"] {
- margin-left: 55%; }
- [offset-gt-lg="60"] {
- margin-left: 60%; }
- [offset-gt-lg="65"] {
- margin-left: 65%; }
- [offset-gt-lg="70"] {
- margin-left: 70%; }
- [offset-gt-lg="75"] {
- margin-left: 75%; }
- [offset-gt-lg="80"] {
- margin-left: 80%; }
- [offset-gt-lg="85"] {
- margin-left: 85%; }
- [offset-gt-lg="90"] {
- margin-left: 90%; }
- [offset-gt-lg="95"] {
- margin-left: 95%; }
- [offset-gt-lg="33"], [offset-gt-lg="34"] {
- margin-left: 33.33%; }
- [offset-gt-lg="66"], [offset-gt-lg="67"] {
- margin-left: 66.66%; }
- [flex-gt-lg] {
- box-sizing: border-box;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- [flex-gt-lg="0"] {
- -webkit-flex: 0 0 0%;
- -ms-flex: 0 0 0%;
- flex: 0 0 0%; }
- [layout="row"] > [flex-gt-lg="0"] {
- max-width: 0%; }
- [layout="column"] > [flex-gt-lg="0"] {
- max-height: 0%; }
- [flex-gt-lg="5"] {
- -webkit-flex: 0 0 5%;
- -ms-flex: 0 0 5%;
- flex: 0 0 5%; }
- [layout="row"] > [flex-gt-lg="5"] {
- max-width: 5%; }
- [layout="column"] > [flex-gt-lg="5"] {
- max-height: 5%; }
- [flex-gt-lg="10"] {
- -webkit-flex: 0 0 10%;
- -ms-flex: 0 0 10%;
- flex: 0 0 10%; }
- [layout="row"] > [flex-gt-lg="10"] {
- max-width: 10%; }
- [layout="column"] > [flex-gt-lg="10"] {
- max-height: 10%; }
- [flex-gt-lg="15"] {
- -webkit-flex: 0 0 15%;
- -ms-flex: 0 0 15%;
- flex: 0 0 15%; }
- [layout="row"] > [flex-gt-lg="15"] {
- max-width: 15%; }
- [layout="column"] > [flex-gt-lg="15"] {
- max-height: 15%; }
- [flex-gt-lg="20"] {
- -webkit-flex: 0 0 20%;
- -ms-flex: 0 0 20%;
- flex: 0 0 20%; }
- [layout="row"] > [flex-gt-lg="20"] {
- max-width: 20%; }
- [layout="column"] > [flex-gt-lg="20"] {
- max-height: 20%; }
- [flex-gt-lg="25"] {
- -webkit-flex: 0 0 25%;
- -ms-flex: 0 0 25%;
- flex: 0 0 25%; }
- [layout="row"] > [flex-gt-lg="25"] {
- max-width: 25%; }
- [layout="column"] > [flex-gt-lg="25"] {
- max-height: 25%; }
- [flex-gt-lg="30"] {
- -webkit-flex: 0 0 30%;
- -ms-flex: 0 0 30%;
- flex: 0 0 30%; }
- [layout="row"] > [flex-gt-lg="30"] {
- max-width: 30%; }
- [layout="column"] > [flex-gt-lg="30"] {
- max-height: 30%; }
- [flex-gt-lg="35"] {
- -webkit-flex: 0 0 35%;
- -ms-flex: 0 0 35%;
- flex: 0 0 35%; }
- [layout="row"] > [flex-gt-lg="35"] {
- max-width: 35%; }
- [layout="column"] > [flex-gt-lg="35"] {
- max-height: 35%; }
- [flex-gt-lg="40"] {
- -webkit-flex: 0 0 40%;
- -ms-flex: 0 0 40%;
- flex: 0 0 40%; }
- [layout="row"] > [flex-gt-lg="40"] {
- max-width: 40%; }
- [layout="column"] > [flex-gt-lg="40"] {
- max-height: 40%; }
- [flex-gt-lg="45"] {
- -webkit-flex: 0 0 45%;
- -ms-flex: 0 0 45%;
- flex: 0 0 45%; }
- [layout="row"] > [flex-gt-lg="45"] {
- max-width: 45%; }
- [layout="column"] > [flex-gt-lg="45"] {
- max-height: 45%; }
- [flex-gt-lg="50"] {
- -webkit-flex: 0 0 50%;
- -ms-flex: 0 0 50%;
- flex: 0 0 50%; }
- [layout="row"] > [flex-gt-lg="50"] {
- max-width: 50%; }
- [layout="column"] > [flex-gt-lg="50"] {
- max-height: 50%; }
- [flex-gt-lg="55"] {
- -webkit-flex: 0 0 55%;
- -ms-flex: 0 0 55%;
- flex: 0 0 55%; }
- [layout="row"] > [flex-gt-lg="55"] {
- max-width: 55%; }
- [layout="column"] > [flex-gt-lg="55"] {
- max-height: 55%; }
- [flex-gt-lg="60"] {
- -webkit-flex: 0 0 60%;
- -ms-flex: 0 0 60%;
- flex: 0 0 60%; }
- [layout="row"] > [flex-gt-lg="60"] {
- max-width: 60%; }
- [layout="column"] > [flex-gt-lg="60"] {
- max-height: 60%; }
- [flex-gt-lg="65"] {
- -webkit-flex: 0 0 65%;
- -ms-flex: 0 0 65%;
- flex: 0 0 65%; }
- [layout="row"] > [flex-gt-lg="65"] {
- max-width: 65%; }
- [layout="column"] > [flex-gt-lg="65"] {
- max-height: 65%; }
- [flex-gt-lg="70"] {
- -webkit-flex: 0 0 70%;
- -ms-flex: 0 0 70%;
- flex: 0 0 70%; }
- [layout="row"] > [flex-gt-lg="70"] {
- max-width: 70%; }
- [layout="column"] > [flex-gt-lg="70"] {
- max-height: 70%; }
- [flex-gt-lg="75"] {
- -webkit-flex: 0 0 75%;
- -ms-flex: 0 0 75%;
- flex: 0 0 75%; }
- [layout="row"] > [flex-gt-lg="75"] {
- max-width: 75%; }
- [layout="column"] > [flex-gt-lg="75"] {
- max-height: 75%; }
- [flex-gt-lg="80"] {
- -webkit-flex: 0 0 80%;
- -ms-flex: 0 0 80%;
- flex: 0 0 80%; }
- [layout="row"] > [flex-gt-lg="80"] {
- max-width: 80%; }
- [layout="column"] > [flex-gt-lg="80"] {
- max-height: 80%; }
- [flex-gt-lg="85"] {
- -webkit-flex: 0 0 85%;
- -ms-flex: 0 0 85%;
- flex: 0 0 85%; }
- [layout="row"] > [flex-gt-lg="85"] {
- max-width: 85%; }
- [layout="column"] > [flex-gt-lg="85"] {
- max-height: 85%; }
- [flex-gt-lg="90"] {
- -webkit-flex: 0 0 90%;
- -ms-flex: 0 0 90%;
- flex: 0 0 90%; }
- [layout="row"] > [flex-gt-lg="90"] {
- max-width: 90%; }
- [layout="column"] > [flex-gt-lg="90"] {
- max-height: 90%; }
- [flex-gt-lg="95"] {
- -webkit-flex: 0 0 95%;
- -ms-flex: 0 0 95%;
- flex: 0 0 95%; }
- [layout="row"] > [flex-gt-lg="95"] {
- max-width: 95%; }
- [layout="column"] > [flex-gt-lg="95"] {
- max-height: 95%; }
- [flex-gt-lg="100"] {
- -webkit-flex: 0 0 100%;
- -ms-flex: 0 0 100%;
- flex: 0 0 100%; }
- [layout="row"] > [flex-gt-lg="100"] {
- max-width: 100%; }
- [layout="column"] > [flex-gt-lg="100"] {
- max-height: 100%; }
- [flex-gt-lg="33"], [flex-gt-lg="34"] {
- -webkit-flex: 0 0 33.33%;
- -ms-flex: 0 0 33.33%;
- flex: 0 0 33.33%; }
- [flex-gt-lg="66"], [flex-gt-lg="67"] {
- -webkit-flex: 0 0 66.66%;
- -ms-flex: 0 0 66.66%;
- flex: 0 0 66.66%; }
- [layout="row"] > [flex-gt-lg="33"], [layout="row"] > [flex-gt-lg="34"] {
- max-width: 33.33%; }
- [layout="row"] > [flex-gt-lg="66"], [layout="row"] > [flex-gt-lg="67"] {
- max-width: 66.66%; }
- [layout="column"] > [flex-gt-lg="33"], [layout="column"] > [flex-gt-lg="34"] {
- max-height: 33.33%; }
- [layout="column"] > [flex-gt-lg="66"], [layout="column"] > [flex-gt-lg="67"] {
- max-height: 66.66%; } }
-
-/* mixin definition ; sets LTR and RTL within the same style call */
-html, body {
- height: 100%;
- color: rgba(0, 0, 0, 0.87);
- background: white;
- position: relative; }
-
-body {
- margin: 0;
- padding: 0; }
-
-[tabindex='-1']:focus {
- outline: none; }
-
-.inset {
- padding: 10px; }
-
-button.md-no-style {
- font-weight: normal;
- background-color: inherit;
- text-align: left;
- border: none;
- padding: 0;
- margin: 0; }
-
-select, button, textarea, input {
- vertical-align: baseline; }
-
-input[type="reset"], input[type="submit"], html input[type="button"], button {
- cursor: pointer;
- -webkit-appearance: button; }
- input[type="reset"][disabled], input[type="submit"][disabled], html input[type="button"][disabled], button[disabled] {
- cursor: default; }
-
-textarea {
- vertical-align: top;
- overflow: auto; }
-
-input[type="search"] {
- -webkit-appearance: textfield;
- box-sizing: content-box;
- -webkit-box-sizing: content-box; }
- input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button {
- -webkit-appearance: none; }
-
-.md-visually-hidden {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- text-transform: none;
- width: 1px; }
-
-.md-shadow {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- border-radius: inherit;
- pointer-events: none; }
-
-.md-shadow-bottom-z-1 {
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); }
-
-.md-shadow-bottom-z-2 {
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4); }
-
-.md-shadow-animated.md-shadow {
- transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
-
-/*
- * A container inside of a rippling element (eg a button),
- * which contains all of the individual ripples
- */
-.md-ripple-container {
- pointer-events: none;
- position: absolute;
- overflow: hidden;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- transition: all 0.55s cubic-bezier(0.25, 0.8, 0.25, 1); }
-
-.md-ripple {
- position: absolute;
- -webkit-transform: scale(0);
- transform: scale(0);
- -webkit-transform-origin: 50% 50%;
- transform-origin: 50% 50%;
- opacity: 0;
- border-radius: 50%; }
- .md-ripple.md-ripple-placed {
- transition: left 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), top 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), margin 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), border 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), height 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition: left 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), top 1.8s cubic-bezier(0.25, 0.8, 0.25, 1), margin 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), border 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), width 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), height 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
- .md-ripple.md-ripple-scaled {
- -webkit-transform: scale(1);
- transform: scale(1); }
- .md-ripple.md-ripple-active, .md-ripple.md-ripple-full, .md-ripple.md-ripple-visible {
- opacity: 0.20; }
-
-.md-padding {
- padding: 8px; }
-
-.md-margin {
- margin: 8px; }
-
-.md-scroll-mask {
- position: absolute;
- background-color: transparent; }
- .md-scroll-mask > .md-scroll-mask-bar {
- display: block;
- position: absolute;
- background-color: #fafafa;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 65;
- box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.3); }
-
-@media (min-width: 600px) {
- .md-padding {
- padding: 16px; } }
-
-/* mixin definition ; sets LTR and RTL within the same style call */
-/* mixin definition ; sets LTR and RTL within the same style call */
-/* mixin definition ; sets LTR and RTL within the same style call */
-html, body {
- -webkit-tap-highlight-color: transparent;
- -webkit-touch-callout: none;
- -webkit-text-size-adjust: 100%;
- -webkit-font-smoothing: antialiased; }
-
-md-select, md-card, md-list, md-toolbar, ul, ol, p, h1, h2, h3, h4, h5, h6 {
- text-rendering: optimizeLegibility; }
-
-/************
- * Headings
- ************/
-.md-display-4 {
- font-size: 112px;
- font-weight: 300;
- letter-spacing: -0.01em;
- line-height: 112px; }
-
-.md-display-3 {
- font-size: 56px;
- font-weight: 400;
- letter-spacing: -0.005em;
- line-height: 56px; }
-
-.md-display-2 {
- font-size: 45px;
- font-weight: 400;
- line-height: 64px; }
-
-.md-display-1 {
- font-size: 34px;
- font-weight: 400;
- line-height: 40px; }
-
-.md-headline {
- font-size: 24px;
- font-weight: 400;
- line-height: 32px; }
-
-.md-title {
- font-size: 20px;
- font-weight: 500;
- letter-spacing: 0.005em; }
-
-.md-subhead {
- font-size: 16px;
- font-weight: 400;
- letter-spacing: 0.01em;
- line-height: 24px; }
-
-/************
- * Body Copy
- ************/
-.md-body-1 {
- font-size: 14px;
- font-weight: 400;
- letter-spacing: 0.01em;
- line-height: 20px; }
-
-.md-body-2 {
- font-size: 14px;
- font-weight: 500;
- letter-spacing: 0.01em;
- line-height: 24px; }
-
-.md-caption {
- font-size: 12px;
- letter-spacing: 0.02em; }
-
-.md-button {
- letter-spacing: 0.01em; }
-
-/************
- * Defaults
- ************/
-button, select, html, textarea, input {
- font-family: RobotoDraft, Roboto, 'Helvetica Neue', sans-serif; }
-
-select, button, textarea, input {
- font-size: 100%; }
-
-/* mixin definition ; sets LTR and RTL within the same style call */ \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.js
deleted file mode 100644
index 66c2fc46..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.js
+++ /dev/null
@@ -1,3779 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-
-/**
- * Initialization function that validates environment
- * requirements.
- */
-angular
- .module('material.core', [ 'material.core.gestures', 'material.core.theming' ])
- .config( MdCoreConfigure );
-
-
-function MdCoreConfigure($provide, $mdThemingProvider) {
-
- $provide.decorator('$$rAF', ["$delegate", rAFDecorator]);
-
- $mdThemingProvider.theme('default')
- .primaryPalette('indigo')
- .accentPalette('pink')
- .warnPalette('red')
- .backgroundPalette('grey');
-}
-MdCoreConfigure.$inject = ["$provide", "$mdThemingProvider"];
-
-function rAFDecorator( $delegate ) {
- /**
- * Use this to throttle events that come in often.
- * The throttled function will always use the *last* invocation before the
- * coming frame.
- *
- * For example, window resize events that fire many times a second:
- * If we set to use an raf-throttled callback on window resize, then
- * our callback will only be fired once per frame, with the last resize
- * event that happened before that frame.
- *
- * @param {function} callback function to debounce
- */
- $delegate.throttle = function(cb) {
- var queueArgs, alreadyQueued, queueCb, context;
- return function debounced() {
- queueArgs = arguments;
- context = this;
- queueCb = cb;
- if (!alreadyQueued) {
- alreadyQueued = true;
- $delegate(function() {
- queueCb.apply(context, queueArgs);
- alreadyQueued = false;
- });
- }
- };
- };
- return $delegate;
-}
-
-angular.module('material.core')
-.factory('$mdConstant', MdConstantFactory);
-
-function MdConstantFactory($$rAF, $sniffer) {
-
- var webkit = /webkit/i.test($sniffer.vendorPrefix);
- function vendorProperty(name) {
- return webkit ? ('webkit' + name.charAt(0).toUpperCase() + name.substring(1)) : name;
- }
-
- return {
- KEY_CODE: {
- ENTER: 13,
- ESCAPE: 27,
- SPACE: 32,
- LEFT_ARROW : 37,
- UP_ARROW : 38,
- RIGHT_ARROW : 39,
- DOWN_ARROW : 40,
- TAB : 9,
- BACKSPACE: 8,
- DELETE: 46
- },
- CSS: {
- /* Constants */
- TRANSITIONEND: 'transitionend' + (webkit ? ' webkitTransitionEnd' : ''),
- ANIMATIONEND: 'animationend' + (webkit ? ' webkitAnimationEnd' : ''),
-
- TRANSFORM: vendorProperty('transform'),
- TRANSFORM_ORIGIN: vendorProperty('transformOrigin'),
- TRANSITION: vendorProperty('transition'),
- TRANSITION_DURATION: vendorProperty('transitionDuration'),
- ANIMATION_PLAY_STATE: vendorProperty('animationPlayState'),
- ANIMATION_DURATION: vendorProperty('animationDuration'),
- ANIMATION_NAME: vendorProperty('animationName'),
- ANIMATION_TIMING: vendorProperty('animationTimingFunction'),
- ANIMATION_DIRECTION: vendorProperty('animationDirection')
- },
- MEDIA: {
- 'sm': '(max-width: 600px)',
- 'gt-sm': '(min-width: 600px)',
- 'md': '(min-width: 600px) and (max-width: 960px)',
- 'gt-md': '(min-width: 960px)',
- 'lg': '(min-width: 960px) and (max-width: 1200px)',
- 'gt-lg': '(min-width: 1200px)'
- },
- MEDIA_PRIORITY: [
- 'gt-lg',
- 'lg',
- 'gt-md',
- 'md',
- 'gt-sm',
- 'sm'
- ]
- };
-}
-MdConstantFactory.$inject = ["$$rAF", "$sniffer"];
-
- angular
- .module('material.core')
- .config( ["$provide", function($provide){
- $provide.decorator('$mdUtil', ['$delegate', function ($delegate){
- /**
- * Inject the iterator facade to easily support iteration and accessors
- * @see iterator below
- */
- $delegate.iterator = MdIterator;
-
- return $delegate;
- }
- ]);
- }]);
-
- /**
- * iterator is a list facade to easily support iteration and accessors
- *
- * @param items Array list which this iterator will enumerate
- * @param reloop Boolean enables iterator to consider the list as an endless reloop
- */
- function MdIterator(items, reloop) {
- var trueFn = function() { return true; };
-
- if (items && !angular.isArray(items)) {
- items = Array.prototype.slice.call(items);
- }
-
- reloop = !!reloop;
- var _items = items || [ ];
-
- // Published API
- return {
- items: getItems,
- count: count,
-
- inRange: inRange,
- contains: contains,
- indexOf: indexOf,
- itemAt: itemAt,
-
- findBy: findBy,
-
- add: add,
- remove: remove,
-
- first: first,
- last: last,
- next: angular.bind(null, findSubsequentItem, false),
- previous: angular.bind(null, findSubsequentItem, true),
-
- hasPrevious: hasPrevious,
- hasNext: hasNext
-
- };
-
- /**
- * Publish copy of the enumerable set
- * @returns {Array|*}
- */
- function getItems() {
- return [].concat(_items);
- }
-
- /**
- * Determine length of the list
- * @returns {Array.length|*|number}
- */
- function count() {
- return _items.length;
- }
-
- /**
- * Is the index specified valid
- * @param index
- * @returns {Array.length|*|number|boolean}
- */
- function inRange(index) {
- return _items.length && ( index > -1 ) && (index < _items.length );
- }
-
- /**
- * Can the iterator proceed to the next item in the list; relative to
- * the specified item.
- *
- * @param item
- * @returns {Array.length|*|number|boolean}
- */
- function hasNext(item) {
- return item ? inRange(indexOf(item) + 1) : false;
- }
-
- /**
- * Can the iterator proceed to the previous item in the list; relative to
- * the specified item.
- *
- * @param item
- * @returns {Array.length|*|number|boolean}
- */
- function hasPrevious(item) {
- return item ? inRange(indexOf(item) - 1) : false;
- }
-
- /**
- * Get item at specified index/position
- * @param index
- * @returns {*}
- */
- function itemAt(index) {
- return inRange(index) ? _items[index] : null;
- }
-
- /**
- * Find all elements matching the key/value pair
- * otherwise return null
- *
- * @param val
- * @param key
- *
- * @return array
- */
- function findBy(key, val) {
- return _items.filter(function(item) {
- return item[key] === val;
- });
- }
-
- /**
- * Add item to list
- * @param item
- * @param index
- * @returns {*}
- */
- function add(item, index) {
- if ( !item ) return -1;
-
- if (!angular.isNumber(index)) {
- index = _items.length;
- }
-
- _items.splice(index, 0, item);
-
- return indexOf(item);
- }
-
- /**
- * Remove item from list...
- * @param item
- */
- function remove(item) {
- if ( contains(item) ){
- _items.splice(indexOf(item), 1);
- }
- }
-
- /**
- * Get the zero-based index of the target item
- * @param item
- * @returns {*}
- */
- function indexOf(item) {
- return _items.indexOf(item);
- }
-
- /**
- * Boolean existence check
- * @param item
- * @returns {boolean}
- */
- function contains(item) {
- return item && (indexOf(item) > -1);
- }
-
- /**
- * Return first item in the list
- * @returns {*}
- */
- function first() {
- return _items.length ? _items[0] : null;
- }
-
- /**
- * Return last item in the list...
- * @returns {*}
- */
- function last() {
- return _items.length ? _items[_items.length - 1] : null;
- }
-
- /**
- * Find the next item. If reloop is true and at the end of the list, it will go back to the
- * first item. If given, the `validate` callback will be used to determine whether the next item
- * is valid. If not valid, it will try to find the next item again.
- *
- * @param {boolean} backwards Specifies the direction of searching (forwards/backwards)
- * @param {*} item The item whose subsequent item we are looking for
- * @param {Function=} validate The `validate` function
- * @param {integer=} limit The recursion limit
- *
- * @returns {*} The subsequent item or null
- */
- function findSubsequentItem(backwards, item, validate, limit) {
- validate = validate || trueFn;
-
- var curIndex = indexOf(item);
- while (true) {
- if (!inRange(curIndex)) return null;
-
- var nextIndex = curIndex + (backwards ? -1 : 1);
- var foundItem = null;
- if (inRange(nextIndex)) {
- foundItem = _items[nextIndex];
- } else if (reloop) {
- foundItem = backwards ? last() : first();
- nextIndex = indexOf(foundItem);
- }
-
- if ((foundItem === null) || (nextIndex === limit)) return null;
- if (validate(foundItem)) return foundItem;
-
- if (angular.isUndefined(limit)) limit = nextIndex;
-
- curIndex = nextIndex;
- }
- }
- }
-
-
-angular.module('material.core')
-.factory('$mdMedia', mdMediaFactory);
-
-/**
- * @ngdoc service
- * @name $mdMedia
- * @module material.core
- *
- * @description
- * `$mdMedia` is used to evaluate whether a given media query is true or false given the
- * current device's screen / window size. The media query will be re-evaluated on resize, allowing
- * you to register a watch.
- *
- * `$mdMedia` also has pre-programmed support for media queries that match the layout breakpoints.
- * (`sm`, `gt-sm`, `md`, `gt-md`, `lg`, `gt-lg`).
- *
- * @returns {boolean} a boolean representing whether or not the given media query is true or false.
- *
- * @usage
- * <hljs lang="js">
- * app.controller('MyController', function($mdMedia, $scope) {
- * $scope.$watch(function() { return $mdMedia('lg'); }, function(big) {
- * $scope.bigScreen = big;
- * });
- *
- * $scope.screenIsSmall = $mdMedia('sm');
- * $scope.customQuery = $mdMedia('(min-width: 1234px)');
- * $scope.anotherCustom = $mdMedia('max-width: 300px');
- * });
- * </hljs>
- */
-
-function mdMediaFactory($mdConstant, $rootScope, $window) {
- var queries = {};
- var mqls = {};
- var results = {};
- var normalizeCache = {};
-
- $mdMedia.getResponsiveAttribute = getResponsiveAttribute;
- $mdMedia.getQuery = getQuery;
- $mdMedia.watchResponsiveAttributes = watchResponsiveAttributes;
-
- return $mdMedia;
-
- function $mdMedia(query) {
- var validated = queries[query];
- if (angular.isUndefined(validated)) {
- validated = queries[query] = validate(query);
- }
-
- var result = results[validated];
- if (angular.isUndefined(result)) {
- result = add(validated);
- }
-
- return result;
- }
-
- function validate(query) {
- return $mdConstant.MEDIA[query] ||
- ((query.charAt(0) !== '(') ? ('(' + query + ')') : query);
- }
-
- function add(query) {
- var result = mqls[query] = $window.matchMedia(query);
- result.addListener(onQueryChange);
- return (results[result.media] = !!result.matches);
- }
-
- function onQueryChange(query) {
- $rootScope.$evalAsync(function() {
- results[query.media] = !!query.matches;
- });
- }
-
- function getQuery(name) {
- return mqls[name];
- }
-
- function getResponsiveAttribute(attrs, attrName) {
- for (var i = 0; i < $mdConstant.MEDIA_PRIORITY.length; i++) {
- var mediaName = $mdConstant.MEDIA_PRIORITY[i];
- if (!mqls[queries[mediaName]].matches) {
- continue;
- }
-
- var normalizedName = getNormalizedName(attrs, attrName + '-' + mediaName);
- if (attrs[normalizedName]) {
- return attrs[normalizedName];
- }
- }
-
- // fallback on unprefixed
- return attrs[getNormalizedName(attrs, attrName)];
- }
-
- function watchResponsiveAttributes(attrNames, attrs, watchFn) {
- var unwatchFns = [];
- attrNames.forEach(function(attrName) {
- var normalizedName = getNormalizedName(attrs, attrName);
- if (attrs[normalizedName]) {
- unwatchFns.push(
- attrs.$observe(normalizedName, angular.bind(void 0, watchFn, null)));
- }
-
- for (var mediaName in $mdConstant.MEDIA) {
- normalizedName = getNormalizedName(attrs, attrName + '-' + mediaName);
- if (!attrs[normalizedName]) {
- return;
- }
-
- unwatchFns.push(attrs.$observe(normalizedName, angular.bind(void 0, watchFn, mediaName)));
- }
- });
-
- return function unwatch() {
- unwatchFns.forEach(function(fn) { fn(); })
- };
- }
-
- // Improves performance dramatically
- function getNormalizedName(attrs, attrName) {
- return normalizeCache[attrName] ||
- (normalizeCache[attrName] = attrs.$normalize(attrName));
- }
-}
-mdMediaFactory.$inject = ["$mdConstant", "$rootScope", "$window"];
-
-/*
- * This var has to be outside the angular factory, otherwise when
- * there are multiple material apps on the same page, each app
- * will create its own instance of this array and the app's IDs
- * will not be unique.
- */
-var nextUniqueId = 0;
-
-angular.module('material.core')
-.factory('$mdUtil', ["$cacheFactory", "$document", "$timeout", "$q", "$window", "$mdConstant", function($cacheFactory, $document, $timeout, $q, $window, $mdConstant) {
- var Util;
-
- function getNode(el) {
- return el[0] || el;
- }
-
- return Util = {
- now: window.performance ?
- angular.bind(window.performance, window.performance.now) :
- Date.now,
-
- clientRect: function(element, offsetParent, isOffsetRect) {
- var node = getNode(element);
- offsetParent = getNode(offsetParent || node.offsetParent || document.body);
- var nodeRect = node.getBoundingClientRect();
-
- // The user can ask for an offsetRect: a rect relative to the offsetParent,
- // or a clientRect: a rect relative to the page
- var offsetRect = isOffsetRect ?
- offsetParent.getBoundingClientRect() :
- { left: 0, top: 0, width: 0, height: 0 };
- return {
- left: nodeRect.left - offsetRect.left,
- top: nodeRect.top - offsetRect.top,
- width: nodeRect.width,
- height: nodeRect.height
- };
- },
- offsetRect: function(element, offsetParent) {
- return Util.clientRect(element, offsetParent, true);
- },
- // Disables scroll around the passed element. Goes up the DOM to find a
- // disableTarget (a md-content that is scrolling, or the body as a fallback)
- // and uses CSS/JS to prevent it from scrolling
- disableScrollAround: function(element) {
- element = element instanceof angular.element ? element[0] : element;
- var parentEl = element;
- var disableTarget;
-
- // Find the highest level scrolling md-content
- while (parentEl = this.getClosest(parentEl, 'MD-CONTENT', true)) {
- if (isScrolling(parentEl)) {
- disableTarget = angular.element(parentEl)[0];
- }
- }
-
- // Default to the body if no scrolling md-content
- if (!disableTarget) {
- disableTarget = $document[0].body;
- if (!isScrolling(disableTarget)) return angular.noop;
- }
-
- if (disableTarget.nodeName == 'BODY') {
- return disableBodyScroll();
- } else {
- return disableElementScroll();
- }
-
- // Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
- function disableElementScroll() {
- var scrollMask = angular.element('<div class="md-scroll-mask"><div class="md-scroll-mask-bar"></div></div>');
- var computedStyle = $window.getComputedStyle(disableTarget);
- var disableRect = disableTarget.getBoundingClientRect();
- var scrollWidth = disableRect.width - disableTarget.clientWidth;
- applyStyles(scrollMask[0], {
- zIndex: computedStyle.zIndex == 'auto' ? 2 : computedStyle.zIndex + 1,
- width: disableRect.width + 'px',
- height: disableRect.height + 'px',
- top: disableRect.top + 'px',
- left: disableRect.left + 'px'
- });
- scrollMask[0].firstElementChild.style.width = scrollWidth + 'px';
- $document[0].body.appendChild(scrollMask[0]);
-
- scrollMask.on('wheel', preventDefault);
- scrollMask.on('touchmove', preventDefault);
- $document.on('keydown', disableKeyNav);
-
- return function restoreScroll() {
- scrollMask.off('wheel');
- scrollMask.off('touchmove');
- scrollMask[0].parentNode.removeChild(scrollMask[0]);
- $document.off('keydown', disableKeyNav);
- };
-
- // Prevent keypresses from elements inside the disableTarget
- // used to stop the keypresses that could cause the page to scroll
- // (arrow keys, spacebar, tab, etc).
- function disableKeyNav(e) {
- if (disableTarget.contains(e.target)) {
- e.preventDefault();
- e.stopImmediatePropagation();
- }
- }
-
- function preventDefault(e) {
- e.preventDefault();
- }
- }
-
- // Converts the disableTarget (body) to a position fixed block and translate it to the propper scroll position
- function disableBodyScroll() {
- var restoreStyle = disableTarget.getAttribute('style') || '';
- var scrollOffset = disableTarget.scrollTop;
-
- applyStyles(disableTarget, {
- position: 'fixed',
- width: '100%',
- overflowY: 'scroll',
- top: -scrollOffset + 'px'
- });
-
- return function restoreScroll() {
- disableTarget.setAttribute('style', restoreStyle);
- disableTarget.scrollTop = scrollOffset;
- };
- }
-
- function applyStyles (el, styles) {
- for (var key in styles) {
- el.style[key] = styles[key];
- }
- }
-
- function isScrolling(el) {
- if (el instanceof angular.element) el = el[0];
- return el.scrollHeight > el.offsetHeight;
- }
- },
-
- floatingScrollbars: function() {
- if (this.floatingScrollbars.cached === undefined) {
- var tempNode = angular.element('<div style="width: 100%; z-index: -1; position: absolute; height: 35px; overflow-y: scroll"><div style="height: 60;"></div></div>');
- $document[0].body.appendChild(tempNode[0]);
- this.floatingScrollbars.cached = (tempNode[0].offsetWidth == tempNode[0].childNodes[0].offsetWidth);
- tempNode.remove();
- }
- return this.floatingScrollbars.cached;
- },
-
- // Mobile safari only allows you to set focus in click event listeners...
- forceFocus: function(element) {
- var node = element[0] || element;
-
- document.addEventListener('click', function focusOnClick(ev) {
- if (ev.target === node && ev.$focus) {
- node.focus();
- ev.stopImmediatePropagation();
- ev.preventDefault();
- node.removeEventListener('click', focusOnClick);
- }
- }, true);
-
- var newEvent = document.createEvent('MouseEvents');
- newEvent.initMouseEvent('click', false, true, window, {}, 0, 0, 0, 0,
- false, false, false, false, 0, null);
- newEvent.$material = true;
- newEvent.$focus = true;
- node.dispatchEvent(newEvent);
- },
-
- transitionEndPromise: function(element, opts) {
- opts = opts || {};
- var deferred = $q.defer();
- element.on($mdConstant.CSS.TRANSITIONEND, finished);
- function finished(ev) {
- // Make sure this transitionend didn't bubble up from a child
- if (!ev || ev.target === element[0]) {
- element.off($mdConstant.CSS.TRANSITIONEND, finished);
- deferred.resolve();
- }
- }
- if (opts.timeout) $timeout(finished, opts.timeout);
- return deferred.promise;
- },
-
- fakeNgModel: function() {
- return {
- $fake: true,
- $setTouched: angular.noop,
- $setViewValue: function(value) {
- this.$viewValue = value;
- this.$render(value);
- this.$viewChangeListeners.forEach(function(cb) { cb(); });
- },
- $isEmpty: function(value) {
- return ('' + value).length === 0;
- },
- $parsers: [],
- $formatters: [],
- $viewChangeListeners: [],
- $render: angular.noop
- };
- },
-
- // Returns a function, that, as long as it continues to be invoked, will not
- // be triggered. The function will be called after it stops being called for
- // N milliseconds.
- // @param wait Integer value of msecs to delay (since last debounce reset); default value 10 msecs
- // @param invokeApply should the $timeout trigger $digest() dirty checking
- debounce: function (func, wait, scope, invokeApply) {
- var timer;
-
- return function debounced() {
- var context = scope,
- args = Array.prototype.slice.call(arguments);
-
- $timeout.cancel(timer);
- timer = $timeout(function() {
-
- timer = undefined;
- func.apply(context, args);
-
- }, wait || 10, invokeApply );
- };
- },
-
- // Returns a function that can only be triggered every `delay` milliseconds.
- // In other words, the function will not be called unless it has been more
- // than `delay` milliseconds since the last call.
- throttle: function throttle(func, delay) {
- var recent;
- return function throttled() {
- var context = this;
- var args = arguments;
- var now = Util.now();
-
- if (!recent || (now - recent > delay)) {
- func.apply(context, args);
- recent = now;
- }
- };
- },
-
- /**
- * Measures the number of milliseconds taken to run the provided callback
- * function. Uses a high-precision timer if available.
- */
- time: function time(cb) {
- var start = Util.now();
- cb();
- return Util.now() - start;
- },
-
- /**
- * Get a unique ID.
- *
- * @returns {string} an unique numeric string
- */
- nextUid: function() {
- return '' + nextUniqueId++;
- },
-
- // Stop watchers and events from firing on a scope without destroying it,
- // by disconnecting it from its parent and its siblings' linked lists.
- disconnectScope: function disconnectScope(scope) {
- if (!scope) return;
-
- // we can't destroy the root scope or a scope that has been already destroyed
- if (scope.$root === scope) return;
- if (scope.$$destroyed ) return;
-
- var parent = scope.$parent;
- scope.$$disconnected = true;
-
- // See Scope.$destroy
- if (parent.$$childHead === scope) parent.$$childHead = scope.$$nextSibling;
- if (parent.$$childTail === scope) parent.$$childTail = scope.$$prevSibling;
- if (scope.$$prevSibling) scope.$$prevSibling.$$nextSibling = scope.$$nextSibling;
- if (scope.$$nextSibling) scope.$$nextSibling.$$prevSibling = scope.$$prevSibling;
-
- scope.$$nextSibling = scope.$$prevSibling = null;
-
- },
-
- // Undo the effects of disconnectScope above.
- reconnectScope: function reconnectScope(scope) {
- if (!scope) return;
-
- // we can't disconnect the root node or scope already disconnected
- if (scope.$root === scope) return;
- if (!scope.$$disconnected) return;
-
- var child = scope;
-
- var parent = child.$parent;
- child.$$disconnected = false;
- // See Scope.$new for this logic...
- child.$$prevSibling = parent.$$childTail;
- if (parent.$$childHead) {
- parent.$$childTail.$$nextSibling = child;
- parent.$$childTail = child;
- } else {
- parent.$$childHead = parent.$$childTail = child;
- }
- },
-
- /*
- * getClosest replicates jQuery.closest() to walk up the DOM tree until it finds a matching nodeName
- *
- * @param el Element to start walking the DOM from
- * @param tagName Tag name to find closest to el, such as 'form'
- */
- getClosest: function getClosest(el, tagName, onlyParent) {
- if (el instanceof angular.element) el = el[0];
- tagName = tagName.toUpperCase();
- if (onlyParent) el = el.parentNode;
- if (!el) return null;
- do {
- if (el.nodeName === tagName) {
- return el;
- }
- } while (el = el.parentNode);
- return null;
- },
-
- /**
- * Functional equivalent for $element.filter(‘md-bottom-sheet’)
- * useful with interimElements where the element and its container are important...
- */
- extractElementByName: function (element, nodeName) {
- for (var i = 0, len = element.length; i < len; i++) {
- if (element[i].nodeName.toLowerCase() === nodeName){
- return angular.element(element[i]);
- }
- }
- return element;
- },
-
- /**
- * Give optional properties with no value a boolean true by default
- */
- initOptionalProperties: function (scope, attr, defaults ) {
- defaults = defaults || { };
- angular.forEach(scope.$$isolateBindings, function (binding, key) {
- if (binding.optional && angular.isUndefined(scope[key])) {
- var hasKey = attr.hasOwnProperty(attr.$normalize(binding.attrName));
-
- scope[key] = angular.isDefined(defaults[key]) ? defaults[key] : hasKey;
- }
- });
- }
-
- };
-
-}]);
-
-/*
- * Since removing jQuery from the demos, some code that uses `element.focus()` is broken.
- *
- * We need to add `element.focus()`, because it's testable unlike `element[0].focus`.
- *
- * TODO(ajoslin): This should be added in a better place later.
- */
-
-angular.element.prototype.focus = angular.element.prototype.focus || function() {
- if (this.length) {
- this[0].focus();
- }
- return this;
-};
-angular.element.prototype.blur = angular.element.prototype.blur || function() {
- if (this.length) {
- this[0].blur();
- }
- return this;
-};
-
-
-angular.module('material.core')
- .service('$mdAria', AriaService);
-
-/*
- * ngInject
- */
-function AriaService($$rAF, $log, $window) {
-
- return {
- expect: expect,
- expectAsync: expectAsync,
- expectWithText: expectWithText
- };
-
- /**
- * Check if expected attribute has been specified on the target element or child
- * @param element
- * @param attrName
- * @param {optional} defaultValue What to set the attr to if no value is found
- */
- function expect(element, attrName, defaultValue) {
- var node = element[0] || element;
-
- // if node exists and neither it nor its children have the attribute
- if (node &&
- ((!node.hasAttribute(attrName) ||
- node.getAttribute(attrName).length === 0) &&
- !childHasAttribute(node, attrName))) {
-
- defaultValue = angular.isString(defaultValue) ? defaultValue.trim() : '';
- if (defaultValue.length) {
- element.attr(attrName, defaultValue);
- } else {
- $log.warn('ARIA: Attribute "', attrName, '", required for accessibility, is missing on node:', node);
- }
-
- }
- }
-
- function expectAsync(element, attrName, defaultValueGetter) {
- // Problem: when retrieving the element's contents synchronously to find the label,
- // the text may not be defined yet in the case of a binding.
- // There is a higher chance that a binding will be defined if we wait one frame.
- $$rAF(function() {
- expect(element, attrName, defaultValueGetter());
- });
- }
-
- function expectWithText(element, attrName) {
- expectAsync(element, attrName, function() {
- return getText(element);
- });
- }
-
- function getText(element) {
- return element.text().trim();
- }
-
- function childHasAttribute(node, attrName) {
- var hasChildren = node.hasChildNodes(),
- hasAttr = false;
-
- function isHidden(el) {
- var style = el.currentStyle ? el.currentStyle : $window.getComputedStyle(el);
- return (style.display === 'none');
- }
-
- if(hasChildren) {
- var children = node.childNodes;
- for(var i=0; i<children.length; i++){
- var child = children[i];
- if(child.nodeType === 1 && child.hasAttribute(attrName)) {
- if(!isHidden(child)){
- hasAttr = true;
- }
- }
- }
- }
- return hasAttr;
- }
-}
-AriaService.$inject = ["$$rAF", "$log", "$window"];
-
-angular.module('material.core')
- .service('$mdCompiler', mdCompilerService);
-
-function mdCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
- /* jshint validthis: true */
-
- /*
- * @ngdoc service
- * @name $mdCompiler
- * @module material.core
- * @description
- * The $mdCompiler service is an abstraction of angular's compiler, that allows the developer
- * to easily compile an element with a templateUrl, controller, and locals.
- *
- * @usage
- * <hljs lang="js">
- * $mdCompiler.compile({
- * templateUrl: 'modal.html',
- * controller: 'ModalCtrl',
- * locals: {
- * modal: myModalInstance;
- * }
- * }).then(function(compileData) {
- * compileData.element; // modal.html's template in an element
- * compileData.link(myScope); //attach controller & scope to element
- * });
- * </hljs>
- */
-
- /*
- * @ngdoc method
- * @name $mdCompiler#compile
- * @description A helper to compile an HTML template/templateUrl with a given controller,
- * locals, and scope.
- * @param {object} options An options object, with the following properties:
- *
- * - `controller` - `{(string=|function()=}` Controller fn that should be associated with
- * newly created scope or the name of a registered controller if passed as a string.
- * - `controllerAs` - `{string=}` A controller alias name. If present the controller will be
- * published to scope under the `controllerAs` name.
- * - `template` - `{string=}` An html template as a string.
- * - `templateUrl` - `{string=}` A path to an html template.
- * - `transformTemplate` - `{function(template)=}` A function which transforms the template after
- * it is loaded. It will be given the template string as a parameter, and should
- * return a a new string representing the transformed template.
- * - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should
- * be injected into the controller. If any of these dependencies are promises, the compiler
- * will wait for them all to be resolved, or if one is rejected before the controller is
- * instantiated `compile()` will fail..
- * * `key` - `{string}`: a name of a dependency to be injected into the controller.
- * * `factory` - `{string|function}`: If `string` then it is an alias for a service.
- * Otherwise if function, then it is injected and the return value is treated as the
- * dependency. If the result is a promise, it is resolved before its value is
- * injected into the controller.
- *
- * @returns {object=} promise A promise, which will be resolved with a `compileData` object.
- * `compileData` has the following properties:
- *
- * - `element` - `{element}`: an uncompiled element matching the provided template.
- * - `link` - `{function(scope)}`: A link function, which, when called, will compile
- * the element and instantiate the provided controller (if given).
- * - `locals` - `{object}`: The locals which will be passed into the controller once `link` is
- * called. If `bindToController` is true, they will be coppied to the ctrl instead
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in.
- */
- this.compile = function(options) {
- var templateUrl = options.templateUrl;
- var template = options.template || '';
- var controller = options.controller;
- var controllerAs = options.controllerAs;
- var resolve = options.resolve || {};
- var locals = options.locals || {};
- var transformTemplate = options.transformTemplate || angular.identity;
- var bindToController = options.bindToController;
-
- // Take resolve values and invoke them.
- // Resolves can either be a string (value: 'MyRegisteredAngularConst'),
- // or an invokable 'factory' of sorts: (value: function ValueGetter($dependency) {})
- angular.forEach(resolve, function(value, key) {
- if (angular.isString(value)) {
- resolve[key] = $injector.get(value);
- } else {
- resolve[key] = $injector.invoke(value);
- }
- });
- //Add the locals, which are just straight values to inject
- //eg locals: { three: 3 }, will inject three into the controller
- angular.extend(resolve, locals);
-
- if (templateUrl) {
- resolve.$template = $http.get(templateUrl, {cache: $templateCache})
- .then(function(response) {
- return response.data;
- });
- } else {
- resolve.$template = $q.when(template);
- }
-
- // Wait for all the resolves to finish if they are promises
- return $q.all(resolve).then(function(locals) {
-
- var template = transformTemplate(locals.$template);
- var element = options.element || angular.element('<div>').html(template.trim()).contents();
- var linkFn = $compile(element);
-
- //Return a linking function that can be used later when the element is ready
- return {
- locals: locals,
- element: element,
- link: function link(scope) {
- locals.$scope = scope;
-
- //Instantiate controller if it exists, because we have scope
- if (controller) {
- var invokeCtrl = $controller(controller, locals, true);
- if (bindToController) {
- angular.extend(invokeCtrl.instance, locals);
- }
- var ctrl = invokeCtrl();
- //See angular-route source for this logic
- element.data('$ngControllerController', ctrl);
- element.children().data('$ngControllerController', ctrl);
-
- if (controllerAs) {
- scope[controllerAs] = ctrl;
- }
- }
- return linkFn(scope);
- }
- };
- });
-
- };
-}
-mdCompilerService.$inject = ["$q", "$http", "$injector", "$compile", "$controller", "$templateCache"];
-
- var HANDLERS = {};
- /* The state of the current 'pointer'
- * The pointer represents the state of the current touch.
- * It contains normalized x and y coordinates from DOM events,
- * as well as other information abstracted from the DOM.
- */
- var pointer, lastPointer, forceSkipClickHijack = false;
-
- // Used to attach event listeners once when multiple ng-apps are running.
- var isInitialized = false;
-
- angular
- .module('material.core.gestures', [ ])
- .provider('$mdGesture', MdGestureProvider)
- .factory('$$MdGestureHandler', MdGestureHandler)
- .run( attachToDocument );
-
- /**
- * @ngdoc service
- * @name $mdGestureProvider
- * @module material.core.gestures
- *
- * @description
- * In some scenarios on Mobile devices (without jQuery), the click events should NOT be hijacked.
- * `$mdGestureProvider` is used to configure the Gesture module to ignore or skip click hijacking on mobile
- * devices.
- *
- * <hljs lang="js">
- * app.config(function($mdGestureProvider) {
- *
- * // For mobile devices without jQuery loaded, do not
- * // intercept click events during the capture phase.
- * $mdGestureProvider.skipClickHijack();
- *
- * });
- * </hljs>
- *
- */
- function MdGestureProvider() { }
-
- MdGestureProvider.prototype = {
-
- // Publish access to setter to configure a variable BEFORE the
- // $mdGesture service is instantiated...
- skipClickHijack: function() {
- return forceSkipClickHijack = true;
- },
-
- /**
- * $get is used to build an instance of $mdGesture
- * ngInject
- */
- $get : ["$$MdGestureHandler", "$$rAF", "$timeout", function($$MdGestureHandler, $$rAF, $timeout) {
- return new MdGesture($$MdGestureHandler, $$rAF, $timeout);
- }]
- };
-
-
-
- /**
- * MdGesture factory construction function
- * ngInject
- */
- function MdGesture($$MdGestureHandler, $$rAF, $timeout) {
- var userAgent = navigator.userAgent || navigator.vendor || window.opera;
- var isIos = userAgent.match(/ipad|iphone|ipod/i);
- var isAndroid = userAgent.match(/android/i);
- var hasJQuery = (typeof window.jQuery !== 'undefined') && (angular.element === window.jQuery);
-
- var self = {
- handler: addHandler,
- register: register,
- // On mobile w/out jQuery, we normally intercept clicks. Should we skip that?
- isHijackingClicks: (isIos || isAndroid) && !hasJQuery && !forceSkipClickHijack
- };
-
- if (self.isHijackingClicks) {
- self.handler('click', {
- options: {
- maxDistance: 6
- },
- onEnd: function (ev, pointer) {
- if (pointer.distance < this.state.options.maxDistance) {
- this.dispatchEvent(ev, 'click');
- }
- }
- });
- }
-
- /*
- * Register an element to listen for a handler.
- * This allows an element to override the default options for a handler.
- * Additionally, some handlers like drag and hold only dispatch events if
- * the domEvent happens inside an element that's registered to listen for these events.
- *
- * @see GestureHandler for how overriding of default options works.
- * @example $mdGesture.register(myElement, 'drag', { minDistance: 20, horziontal: false })
- */
- function register(element, handlerName, options) {
- var handler = HANDLERS[handlerName.replace(/^\$md./, '')];
- if (!handler) {
- throw new Error('Failed to register element with handler ' + handlerName + '. ' +
- 'Available handlers: ' + Object.keys(HANDLERS).join(', '));
- }
- return handler.registerElement(element, options);
- }
-
- /*
- * add a handler to $mdGesture. see below.
- */
- function addHandler(name, definition) {
- var handler = new $$MdGestureHandler(name);
- angular.extend(handler, definition);
- HANDLERS[name] = handler;
-
- return self;
- }
-
- /*
- * Register handlers. These listen to touch/start/move events, interpret them,
- * and dispatch gesture events depending on options & conditions. These are all
- * instances of GestureHandler.
- * @see GestureHandler
- */
- return self
- /*
- * The press handler dispatches an event on touchdown/touchend.
- * It's a simple abstraction of touch/mouse/pointer start and end.
- */
- .handler('press', {
- onStart: function (ev, pointer) {
- this.dispatchEvent(ev, '$md.pressdown');
- },
- onEnd: function (ev, pointer) {
- this.dispatchEvent(ev, '$md.pressup');
- }
- })
-
- /*
- * The hold handler dispatches an event if the user keeps their finger within
- * the same <maxDistance> area for <delay> ms.
- * The hold handler will only run if a parent of the touch target is registered
- * to listen for hold events through $mdGesture.register()
- */
- .handler('hold', {
- options: {
- maxDistance: 6,
- delay: 500
- },
- onCancel: function () {
- $timeout.cancel(this.state.timeout);
- },
- onStart: function (ev, pointer) {
- // For hold, require a parent to be registered with $mdGesture.register()
- // Because we prevent scroll events, this is necessary.
- if (!this.state.registeredParent) return this.cancel();
-
- this.state.pos = {x: pointer.x, y: pointer.y};
- this.state.timeout = $timeout(angular.bind(this, function holdDelayFn() {
- this.dispatchEvent(ev, '$md.hold');
- this.cancel(); //we're done!
- }), this.state.options.delay, false);
- },
- onMove: function (ev, pointer) {
- // Don't scroll while waiting for hold.
- // If we don't preventDefault touchmove events here, Android will assume we don't
- // want to listen to anymore touch events. It will start scrolling and stop sending
- // touchmove events.
- ev.preventDefault();
-
- // If the user moves greater than <maxDistance> pixels, stop the hold timer
- // set in onStart
- var dx = this.state.pos.x - pointer.x;
- var dy = this.state.pos.y - pointer.y;
- if (Math.sqrt(dx * dx + dy * dy) > this.options.maxDistance) {
- this.cancel();
- }
- },
- onEnd: function () {
- this.onCancel();
- }
- })
-
- /*
- * The drag handler dispatches a drag event if the user holds and moves his finger greater than
- * <minDistance> px in the x or y direction, depending on options.horizontal.
- * The drag will be cancelled if the user moves his finger greater than <minDistance>*<cancelMultiplier> in
- * the perpindicular direction. Eg if the drag is horizontal and the user moves his finger <minDistance>*<cancelMultiplier>
- * pixels vertically, this handler won't consider the move part of a drag.
- */
- .handler('drag', {
- options: {
- minDistance: 6,
- horizontal: true,
- cancelMultiplier: 1.5
- },
- onStart: function (ev) {
- // For drag, require a parent to be registered with $mdGesture.register()
- if (!this.state.registeredParent) this.cancel();
- },
- onMove: function (ev, pointer) {
- var shouldStartDrag, shouldCancel;
- // Don't scroll while deciding if this touchmove qualifies as a drag event.
- // If we don't preventDefault touchmove events here, Android will assume we don't
- // want to listen to anymore touch events. It will start scrolling and stop sending
- // touchmove events.
- ev.preventDefault();
-
- if (!this.state.dragPointer) {
- if (this.state.options.horizontal) {
- shouldStartDrag = Math.abs(pointer.distanceX) > this.state.options.minDistance;
- shouldCancel = Math.abs(pointer.distanceY) > this.state.options.minDistance * this.state.options.cancelMultiplier;
- } else {
- shouldStartDrag = Math.abs(pointer.distanceY) > this.state.options.minDistance;
- shouldCancel = Math.abs(pointer.distanceX) > this.state.options.minDistance * this.state.options.cancelMultiplier;
- }
-
- if (shouldStartDrag) {
- // Create a new pointer representing this drag, starting at this point where the drag started.
- this.state.dragPointer = makeStartPointer(ev);
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.dragstart', this.state.dragPointer);
-
- } else if (shouldCancel) {
- this.cancel();
- }
- } else {
- this.dispatchDragMove(ev);
- }
- },
- // Only dispatch dragmove events every frame; any more is unnecessray
- dispatchDragMove: $$rAF.throttle(function (ev) {
- // Make sure the drag didn't stop while waiting for the next frame
- if (this.state.isRunning) {
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.drag', this.state.dragPointer);
- }
- }),
- onEnd: function (ev, pointer) {
- if (this.state.dragPointer) {
- updatePointerState(ev, this.state.dragPointer);
- this.dispatchEvent(ev, '$md.dragend', this.state.dragPointer);
- }
- }
- })
-
- /*
- * The swipe handler will dispatch a swipe event if, on the end of a touch,
- * the velocity and distance were high enough.
- * TODO: add vertical swiping with a `horizontal` option similar to the drag handler.
- */
- .handler('swipe', {
- options: {
- minVelocity: 0.65,
- minDistance: 10
- },
- onEnd: function (ev, pointer) {
- if (Math.abs(pointer.velocityX) > this.state.options.minVelocity &&
- Math.abs(pointer.distanceX) > this.state.options.minDistance) {
- var eventType = pointer.directionX == 'left' ? '$md.swipeleft' : '$md.swiperight';
- this.dispatchEvent(ev, eventType);
- }
- }
- });
-
- }
- MdGesture.$inject = ["$$MdGestureHandler", "$$rAF", "$timeout"];
-
- /**
- * MdGestureHandler
- * A GestureHandler is an object which is able to dispatch custom dom events
- * based on native dom {touch,pointer,mouse}{start,move,end} events.
- *
- * A gesture will manage its lifecycle through the start,move,end, and cancel
- * functions, which are called by native dom events.
- *
- * A gesture has the concept of 'options' (eg a swipe's required velocity), which can be
- * overridden by elements registering through $mdGesture.register()
- */
- function GestureHandler (name) {
- this.name = name;
- this.state = {};
- }
-
- function MdGestureHandler() {
- var hasJQuery = (typeof window.jQuery !== 'undefined') && (angular.element === window.jQuery);
-
- GestureHandler.prototype = {
- options: {},
- // jQuery listeners don't work with custom DOMEvents, so we have to dispatch events
- // differently when jQuery is loaded
- dispatchEvent: hasJQuery ? jQueryDispatchEvent : nativeDispatchEvent,
-
- // These are overridden by the registered handler
- onStart: angular.noop,
- onMove: angular.noop,
- onEnd: angular.noop,
- onCancel: angular.noop,
-
- // onStart sets up a new state for the handler, which includes options from the
- // nearest registered parent element of ev.target.
- start: function (ev, pointer) {
- if (this.state.isRunning) return;
- var parentTarget = this.getNearestParent(ev.target);
- // Get the options from the nearest registered parent
- var parentTargetOptions = parentTarget && parentTarget.$mdGesture[this.name] || {};
-
- this.state = {
- isRunning: true,
- // Override the default options with the nearest registered parent's options
- options: angular.extend({}, this.options, parentTargetOptions),
- // Pass in the registered parent node to the state so the onStart listener can use
- registeredParent: parentTarget
- };
- this.onStart(ev, pointer);
- },
- move: function (ev, pointer) {
- if (!this.state.isRunning) return;
- this.onMove(ev, pointer);
- },
- end: function (ev, pointer) {
- if (!this.state.isRunning) return;
- this.onEnd(ev, pointer);
- this.state.isRunning = false;
- },
- cancel: function (ev, pointer) {
- this.onCancel(ev, pointer);
- this.state = {};
- },
-
- // Find and return the nearest parent element that has been registered to
- // listen for this handler via $mdGesture.register(element, 'handlerName').
- getNearestParent: function (node) {
- var current = node;
- while (current) {
- if ((current.$mdGesture || {})[this.name]) {
- return current;
- }
- current = current.parentNode;
- }
- return null;
- },
-
- // Called from $mdGesture.register when an element reigsters itself with a handler.
- // Store the options the user gave on the DOMElement itself. These options will
- // be retrieved with getNearestParent when the handler starts.
- registerElement: function (element, options) {
- var self = this;
- element[0].$mdGesture = element[0].$mdGesture || {};
- element[0].$mdGesture[this.name] = options || {};
- element.on('$destroy', onDestroy);
-
- return onDestroy;
-
- function onDestroy() {
- delete element[0].$mdGesture[self.name];
- element.off('$destroy', onDestroy);
- }
- }
- };
-
- return GestureHandler;
-
- /*
- * Dispatch an event with jQuery
- * TODO: Make sure this sends bubbling events
- *
- * @param srcEvent the original DOM touch event that started this.
- * @param eventType the name of the custom event to send (eg 'click' or '$md.drag')
- * @param eventPointer the pointer object that matches this event.
- */
- function jQueryDispatchEvent(srcEvent, eventType, eventPointer) {
- eventPointer = eventPointer || pointer;
- var eventObj = new angular.element.Event(eventType);
-
- eventObj.$material = true;
- eventObj.pointer = eventPointer;
- eventObj.srcEvent = srcEvent;
-
- angular.extend(eventObj, {
- clientX: eventPointer.x,
- clientY: eventPointer.y,
- screenX: eventPointer.x,
- screenY: eventPointer.y,
- pageX: eventPointer.x,
- pageY: eventPointer.y,
- ctrlKey: srcEvent.ctrlKey,
- altKey: srcEvent.altKey,
- shiftKey: srcEvent.shiftKey,
- metaKey: srcEvent.metaKey
- });
- angular.element(eventPointer.target).trigger(eventObj);
- }
-
- /*
- * NOTE: nativeDispatchEvent is very performance sensitive.
- * @param srcEvent the original DOM touch event that started this.
- * @param eventType the name of the custom event to send (eg 'click' or '$md.drag')
- * @param eventPointer the pointer object that matches this event.
- */
- function nativeDispatchEvent(srcEvent, eventType, eventPointer) {
- eventPointer = eventPointer || pointer;
- var eventObj;
-
- if (eventType === 'click') {
- eventObj = document.createEvent('MouseEvents');
- eventObj.initMouseEvent(
- 'click', true, true, window, srcEvent.detail,
- eventPointer.x, eventPointer.y, eventPointer.x, eventPointer.y,
- srcEvent.ctrlKey, srcEvent.altKey, srcEvent.shiftKey, srcEvent.metaKey,
- srcEvent.button, srcEvent.relatedTarget || null
- );
-
- } else {
- eventObj = document.createEvent('CustomEvent');
- eventObj.initCustomEvent(eventType, true, true, {});
- }
- eventObj.$material = true;
- eventObj.pointer = eventPointer;
- eventObj.srcEvent = srcEvent;
- eventPointer.target.dispatchEvent(eventObj);
- }
-
- }
-
- /**
- * Attach Gestures: hook document and check shouldHijack clicks
- * ngInject
- */
- function attachToDocument( $mdGesture, $$MdGestureHandler ) {
-
- // Polyfill document.contains for IE11.
- // TODO: move to util
- document.contains || (document.contains = function (node) {
- return document.body.contains(node);
- });
-
- if (!isInitialized && $mdGesture.isHijackingClicks ) {
- /*
- * If hijack clicks is true, we preventDefault any click that wasn't
- * sent by ngMaterial. This is because on older Android & iOS, a false, or 'ghost',
- * click event will be sent ~400ms after a touchend event happens.
- * The only way to know if this click is real is to prevent any normal
- * click events, and add a flag to events sent by material so we know not to prevent those.
- *
- * Two exceptions to click events that should be prevented are:
- * - click events sent by the keyboard (eg form submit)
- * - events that originate from an Ionic app
- */
- document.addEventListener('click', function clickHijacker(ev) {
- var isKeyClick = ev.clientX === 0 && ev.clientY === 0;
- if (!isKeyClick && !ev.$material && !ev.isIonicTap) {
- ev.preventDefault();
- ev.stopPropagation();
- }
- }, true);
-
- isInitialized = true;
- }
-
- // Listen to all events to cover all platforms.
- var START_EVENTS = 'mousedown touchstart pointerdown';
- var MOVE_EVENTS = 'mousemove touchmove pointermove';
- var END_EVENTS = 'mouseup mouseleave touchend touchcancel pointerup pointercancel';
-
- angular.element(document)
- .on(START_EVENTS, gestureStart)
- .on(MOVE_EVENTS, gestureMove)
- .on(END_EVENTS, gestureEnd)
- // For testing
- .on('$$mdGestureReset', function gestureClearCache () {
- lastPointer = pointer = null;
- });
-
- /*
- * When a DOM event happens, run all registered gesture handlers' lifecycle
- * methods which match the DOM event.
- * Eg when a 'touchstart' event happens, runHandlers('start') will call and
- * run `handler.cancel()` and `handler.start()` on all registered handlers.
- */
- function runHandlers(handlerEvent, event) {
- var handler;
- for (var name in HANDLERS) {
- handler = HANDLERS[name];
- if( handler instanceof $$MdGestureHandler ) {
-
- if (handlerEvent === 'start') {
- // Run cancel to reset any handlers' state
- handler.cancel();
- }
- handler[handlerEvent](event, pointer);
-
- }
- }
- }
-
- /*
- * gestureStart vets if a start event is legitimate (and not part of a 'ghost click' from iOS/Android)
- * If it is legitimate, we initiate the pointer state and mark the current pointer's type
- * For example, for a touchstart event, mark the current pointer as a 'touch' pointer, so mouse events
- * won't effect it.
- */
- function gestureStart(ev) {
- // If we're already touched down, abort
- if (pointer) return;
-
- var now = +Date.now();
-
- // iOS & old android bug: after a touch event, a click event is sent 350 ms later.
- // If <400ms have passed, don't allow an event of a different type than the previous event
- if (lastPointer && !typesMatch(ev, lastPointer) && (now - lastPointer.endTime < 1500)) {
- return;
- }
-
- pointer = makeStartPointer(ev);
-
- runHandlers('start', ev);
- }
- /*
- * If a move event happens of the right type, update the pointer and run all the move handlers.
- * "of the right type": if a mousemove happens but our pointer started with a touch event, do nothing.
- */
- function gestureMove(ev) {
- if (!pointer || !typesMatch(ev, pointer)) return;
-
- updatePointerState(ev, pointer);
- runHandlers('move', ev);
- }
- /*
- * If an end event happens of the right type, update the pointer, run endHandlers, and save the pointer as 'lastPointer'
- */
- function gestureEnd(ev) {
- if (!pointer || !typesMatch(ev, pointer)) return;
-
- updatePointerState(ev, pointer);
- pointer.endTime = +Date.now();
-
- runHandlers('end', ev);
-
- lastPointer = pointer;
- pointer = null;
- }
-
- }
- attachToDocument.$inject = ["$mdGesture", "$$MdGestureHandler"];
-
- // ********************
- // Module Functions
- // ********************
-
- /*
- * Initiate the pointer. x, y, and the pointer's type.
- */
- function makeStartPointer(ev) {
- var point = getEventPoint(ev);
- var startPointer = {
- startTime: +Date.now(),
- target: ev.target,
- // 'p' for pointer events, 'm' for mouse, 't' for touch
- type: ev.type.charAt(0)
- };
- startPointer.startX = startPointer.x = point.pageX;
- startPointer.startY = startPointer.y = point.pageY;
- return startPointer;
- }
-
- /*
- * return whether the pointer's type matches the event's type.
- * Eg if a touch event happens but the pointer has a mouse type, return false.
- */
- function typesMatch(ev, pointer) {
- return ev && pointer && ev.type.charAt(0) === pointer.type;
- }
-
- /*
- * Update the given pointer based upon the given DOMEvent.
- * Distance, velocity, direction, duration, etc
- */
- function updatePointerState(ev, pointer) {
- var point = getEventPoint(ev);
- var x = pointer.x = point.pageX;
- var y = pointer.y = point.pageY;
-
- pointer.distanceX = x - pointer.startX;
- pointer.distanceY = y - pointer.startY;
- pointer.distance = Math.sqrt(
- pointer.distanceX * pointer.distanceX + pointer.distanceY * pointer.distanceY
- );
-
- pointer.directionX = pointer.distanceX > 0 ? 'right' : pointer.distanceX < 0 ? 'left' : '';
- pointer.directionY = pointer.distanceY > 0 ? 'up' : pointer.distanceY < 0 ? 'down' : '';
-
- pointer.duration = +Date.now() - pointer.startTime;
- pointer.velocityX = pointer.distanceX / pointer.duration;
- pointer.velocityY = pointer.distanceY / pointer.duration;
- }
-
- /*
- * Normalize the point where the DOM event happened whether it's touch or mouse.
- * @returns point event obj with pageX and pageY on it.
- */
- function getEventPoint(ev) {
- ev = ev.originalEvent || ev; // support jQuery events
- return (ev.touches && ev.touches[0]) ||
- (ev.changedTouches && ev.changedTouches[0]) ||
- ev;
- }
-
-angular.module('material.core')
- .provider('$$interimElement', InterimElementProvider);
-
-/*
- * @ngdoc service
- * @name $$interimElement
- * @module material.core
- *
- * @description
- *
- * Factory that contructs `$$interimElement.$service` services.
- * Used internally in material design for elements that appear on screen temporarily.
- * The service provides a promise-like API for interacting with the temporary
- * elements.
- *
- * ```js
- * app.service('$mdToast', function($$interimElement) {
- * var $mdToast = $$interimElement(toastDefaultOptions);
- * return $mdToast;
- * });
- * ```
- * @param {object=} defaultOptions Options used by default for the `show` method on the service.
- *
- * @returns {$$interimElement.$service}
- *
- */
-
-function InterimElementProvider() {
- createInterimElementProvider.$get = InterimElementFactory;
- InterimElementFactory.$inject = ["$document", "$q", "$rootScope", "$timeout", "$rootElement", "$animate", "$interpolate", "$mdCompiler", "$mdTheming"];
- return createInterimElementProvider;
-
- /**
- * Returns a new provider which allows configuration of a new interimElement
- * service. Allows configuration of default options & methods for options,
- * as well as configuration of 'preset' methods (eg dialog.basic(): basic is a preset method)
- */
- function createInterimElementProvider(interimFactoryName) {
- var EXPOSED_METHODS = ['onHide', 'onShow', 'onRemove'];
-
- var customMethods = {};
- var providerConfig = {
- presets: {}
- };
-
- var provider = {
- setDefaults: setDefaults,
- addPreset: addPreset,
- addMethod: addMethod,
- $get: factory
- };
-
- /**
- * all interim elements will come with the 'build' preset
- */
- provider.addPreset('build', {
- methods: ['controller', 'controllerAs', 'resolve',
- 'template', 'templateUrl', 'themable', 'transformTemplate', 'parent']
- });
-
- factory.$inject = ["$$interimElement", "$animate", "$injector"];
- return provider;
-
- /**
- * Save the configured defaults to be used when the factory is instantiated
- */
- function setDefaults(definition) {
- providerConfig.optionsFactory = definition.options;
- providerConfig.methods = (definition.methods || []).concat(EXPOSED_METHODS);
- return provider;
- }
-
- /**
- * Add a method to the factory that isn't specific to any interim element operations
- */
-
- function addMethod(name, fn) {
- customMethods[name] = fn;
- return provider;
- }
-
- /**
- * Save the configured preset to be used when the factory is instantiated
- */
- function addPreset(name, definition) {
- definition = definition || {};
- definition.methods = definition.methods || [];
- definition.options = definition.options || function() { return {}; };
-
- if (/^cancel|hide|show$/.test(name)) {
- throw new Error("Preset '" + name + "' in " + interimFactoryName + " is reserved!");
- }
- if (definition.methods.indexOf('_options') > -1) {
- throw new Error("Method '_options' in " + interimFactoryName + " is reserved!");
- }
- providerConfig.presets[name] = {
- methods: definition.methods.concat(EXPOSED_METHODS),
- optionsFactory: definition.options,
- argOption: definition.argOption
- };
- return provider;
- }
-
- /**
- * Create a factory that has the given methods & defaults implementing interimElement
- */
- /* ngInject */
- function factory($$interimElement, $animate, $injector) {
- var defaultMethods;
- var defaultOptions;
- var interimElementService = $$interimElement();
-
- /*
- * publicService is what the developer will be using.
- * It has methods hide(), cancel(), show(), build(), and any other
- * presets which were set during the config phase.
- */
- var publicService = {
- hide: interimElementService.hide,
- cancel: interimElementService.cancel,
- show: showInterimElement
- };
-
- defaultMethods = providerConfig.methods || [];
- // This must be invoked after the publicService is initialized
- defaultOptions = invokeFactory(providerConfig.optionsFactory, {});
-
- // Copy over the simple custom methods
- angular.forEach(customMethods, function(fn, name) {
- publicService[name] = fn;
- });
-
- angular.forEach(providerConfig.presets, function(definition, name) {
- var presetDefaults = invokeFactory(definition.optionsFactory, {});
- var presetMethods = (definition.methods || []).concat(defaultMethods);
-
- // Every interimElement built with a preset has a field called `$type`,
- // which matches the name of the preset.
- // Eg in preset 'confirm', options.$type === 'confirm'
- angular.extend(presetDefaults, { $type: name });
-
- // This creates a preset class which has setter methods for every
- // method given in the `.addPreset()` function, as well as every
- // method given in the `.setDefaults()` function.
- //
- // @example
- // .setDefaults({
- // methods: ['hasBackdrop', 'clickOutsideToClose', 'escapeToClose', 'targetEvent'],
- // options: dialogDefaultOptions
- // })
- // .addPreset('alert', {
- // methods: ['title', 'ok'],
- // options: alertDialogOptions
- // })
- //
- // Set values will be passed to the options when interimElemnt.show() is called.
- function Preset(opts) {
- this._options = angular.extend({}, presetDefaults, opts);
- }
- angular.forEach(presetMethods, function(name) {
- Preset.prototype[name] = function(value) {
- this._options[name] = value;
- return this;
- };
- });
-
- // Create shortcut method for one-linear methods
- if (definition.argOption) {
- var methodName = 'show' + name.charAt(0).toUpperCase() + name.slice(1);
- publicService[methodName] = function(arg) {
- var config = publicService[name](arg);
- return publicService.show(config);
- };
- }
-
- // eg $mdDialog.alert() will return a new alert preset
- publicService[name] = function(arg) {
- // If argOption is supplied, eg `argOption: 'content'`, then we assume
- // if the argument is not an options object then it is the `argOption` option.
- //
- // @example `$mdToast.simple('hello')` // sets options.content to hello
- // // because argOption === 'content'
- if (arguments.length && definition.argOption && !angular.isObject(arg) &&
- !angular.isArray(arg)) {
- return (new Preset())[definition.argOption](arg);
- } else {
- return new Preset(arg);
- }
-
- };
- });
-
- return publicService;
-
- function showInterimElement(opts) {
- // opts is either a preset which stores its options on an _options field,
- // or just an object made up of options
- if (opts && opts._options) opts = opts._options;
- return interimElementService.show(
- angular.extend({}, defaultOptions, opts)
- );
- }
-
- /**
- * Helper to call $injector.invoke with a local of the factory name for
- * this provider.
- * If an $mdDialog is providing options for a dialog and tries to inject
- * $mdDialog, a circular dependency error will happen.
- * We get around that by manually injecting $mdDialog as a local.
- */
- function invokeFactory(factory, defaultVal) {
- var locals = {};
- locals[interimFactoryName] = publicService;
- return $injector.invoke(factory || function() { return defaultVal; }, {}, locals);
- }
-
- }
-
- }
-
- /* ngInject */
- function InterimElementFactory($document, $q, $rootScope, $timeout, $rootElement, $animate,
- $interpolate, $mdCompiler, $mdTheming ) {
- var startSymbol = $interpolate.startSymbol(),
- endSymbol = $interpolate.endSymbol(),
- usesStandardSymbols = ((startSymbol === '{{') && (endSymbol === '}}')),
- processTemplate = usesStandardSymbols ? angular.identity : replaceInterpolationSymbols;
-
- return function createInterimElementService() {
- /*
- * @ngdoc service
- * @name $$interimElement.$service
- *
- * @description
- * A service used to control inserting and removing an element into the DOM.
- *
- */
- var stack = [];
- var service;
- return service = {
- show: show,
- hide: hide,
- cancel: cancel
- };
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#show
- * @kind function
- *
- * @description
- * Adds the `$interimElement` to the DOM and returns a promise that will be resolved or rejected
- * with hide or cancel, respectively.
- *
- * @param {*} options is hashMap of settings
- * @returns a Promise
- *
- */
- function show(options) {
- if (stack.length) {
- return service.cancel().then(function() {
- return show(options);
- });
- } else {
- var interimElement = new InterimElement(options);
- stack.push(interimElement);
- return interimElement.show().then(function() {
- return interimElement.deferred.promise;
- });
- }
- }
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#hide
- * @kind function
- *
- * @description
- * Removes the `$interimElement` from the DOM and resolves the promise returned from `show`
- *
- * @param {*} resolveParam Data to resolve the promise with
- * @returns a Promise that will be resolved after the element has been removed.
- *
- */
- function hide(response) {
- var interimElement = stack.shift();
- return interimElement && interimElement.remove().then(function() {
- interimElement.deferred.resolve(response);
- });
- }
-
- /*
- * @ngdoc method
- * @name $$interimElement.$service#cancel
- * @kind function
- *
- * @description
- * Removes the `$interimElement` from the DOM and rejects the promise returned from `show`
- *
- * @param {*} reason Data to reject the promise with
- * @returns Promise that will be resolved after the element has been removed.
- *
- */
- function cancel(reason) {
- var interimElement = stack.shift();
- return $q.when(interimElement && interimElement.remove().then(function() {
- interimElement.deferred.reject(reason);
- }));
- }
-
-
- /*
- * Internal Interim Element Object
- * Used internally to manage the DOM element and related data
- */
- function InterimElement(options) {
- var self;
- var hideTimeout, element, showDone, removeDone;
-
- options = options || {};
- options = angular.extend({
- preserveScope: false,
- scope: options.scope || $rootScope.$new(options.isolateScope),
- onShow: function(scope, element, options) {
- return $animate.enter(element, options.parent);
- },
- onRemove: function(scope, element, options) {
- // Element could be undefined if a new element is shown before
- // the old one finishes compiling.
- return element && $animate.leave(element) || $q.when();
- }
- }, options);
-
- if (options.template) {
- options.template = processTemplate(options.template);
- }
-
- return self = {
- options: options,
- deferred: $q.defer(),
- show: function() {
- var compilePromise;
- if (options.skipCompile) {
- compilePromise = $q(function(resolve) {
- resolve({
- locals: {},
- link: function() { return options.element; }
- });
- });
- } else {
- compilePromise = $mdCompiler.compile(options);
- }
-
- return showDone = compilePromise.then(function(compileData) {
- angular.extend(compileData.locals, self.options);
-
- element = compileData.link(options.scope);
-
- // Search for parent at insertion time, if not specified
- if (angular.isFunction(options.parent)) {
- options.parent = options.parent(options.scope, element, options);
- } else if (angular.isString(options.parent)) {
- options.parent = angular.element($document[0].querySelector(options.parent));
- }
-
- // If parent querySelector/getter function fails, or it's just null,
- // find a default.
- if (!(options.parent || {}).length) {
- var el;
- if ($rootElement[0] && $rootElement[0].querySelector) {
- el = $rootElement[0].querySelector(':not(svg) > body');
- }
- if (!el) el = $rootElement[0];
- if (el.nodeName == '#comment') {
- el = $document[0].body;
- }
- options.parent = angular.element(el);
- }
-
- if (options.themable) $mdTheming(element);
- var ret = options.onShow(options.scope, element, options);
- return $q.when(ret)
- .then(function(){
- // Issue onComplete callback when the `show()` finishes
- (options.onComplete || angular.noop)(options.scope, element, options);
- startHideTimeout();
- });
-
- function startHideTimeout() {
- if (options.hideDelay) {
- hideTimeout = $timeout(service.cancel, options.hideDelay) ;
- }
- }
- }, function(reason) { showDone = true; self.deferred.reject(reason); });
- },
- cancelTimeout: function() {
- if (hideTimeout) {
- $timeout.cancel(hideTimeout);
- hideTimeout = undefined;
- }
- },
- remove: function() {
- self.cancelTimeout();
- return removeDone = $q.when(showDone).then(function() {
- var ret = element ? options.onRemove(options.scope, element, options) : true;
- return $q.when(ret).then(function() {
- if (!options.preserveScope) options.scope.$destroy();
- removeDone = true;
- });
- });
- }
- };
- }
- };
-
- /*
- * Replace `{{` and `}}` in a string (usually a template) with the actual start-/endSymbols used
- * for interpolation. This allows pre-defined templates (for components such as dialog, toast etc)
- * to continue to work in apps that use custom interpolation start-/endSymbols.
- *
- * @param {string} text The text in which to replace `{{` / `}}`
- * @returns {string} The modified string using the actual interpolation start-/endSymbols
- */
- function replaceInterpolationSymbols(text) {
- if (!text || !angular.isString(text)) return text;
- return text.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol);
- }
- }
-
-}
-
- /**
- * @ngdoc module
- * @name material.core.componentRegistry
- *
- * @description
- * A component instance registration service.
- * Note: currently this as a private service in the SideNav component.
- */
- angular.module('material.core')
- .factory('$mdComponentRegistry', ComponentRegistry);
-
- /*
- * @private
- * @ngdoc factory
- * @name ComponentRegistry
- * @module material.core.componentRegistry
- *
- */
- function ComponentRegistry($log, $q) {
-
- var self;
- var instances = [ ];
- var pendings = { };
-
- return self = {
- /**
- * Used to print an error when an instance for a handle isn't found.
- */
- notFoundError: function(handle) {
- $log.error('No instance found for handle', handle);
- },
- /**
- * Return all registered instances as an array.
- */
- getInstances: function() {
- return instances;
- },
-
- /**
- * Get a registered instance.
- * @param handle the String handle to look up for a registered instance.
- */
- get: function(handle) {
- if ( !isValidID(handle) ) return null;
-
- var i, j, instance;
- for(i = 0, j = instances.length; i < j; i++) {
- instance = instances[i];
- if(instance.$$mdHandle === handle) {
- return instance;
- }
- }
- return null;
- },
-
- /**
- * Register an instance.
- * @param instance the instance to register
- * @param handle the handle to identify the instance under.
- */
- register: function(instance, handle) {
- if ( !handle ) return angular.noop;
-
- instance.$$mdHandle = handle;
- instances.push(instance);
- resolveWhen();
-
- return deregister;
-
- /**
- * Remove registration for an instance
- */
- function deregister() {
- var index = instances.indexOf(instance);
- if (index !== -1) {
- instances.splice(index, 1);
- }
- }
-
- /**
- * Resolve any pending promises for this instance
- */
- function resolveWhen() {
- var dfd = pendings[handle];
- if ( dfd ) {
- dfd.resolve( instance );
- delete pendings[handle];
- }
- }
- },
-
- /**
- * Async accessor to registered component instance
- * If not available then a promise is created to notify
- * all listeners when the instance is registered.
- */
- when : function(handle) {
- if ( isValidID(handle) ) {
- var deferred = $q.defer();
- var instance = self.get(handle);
-
- if ( instance ) {
- deferred.resolve( instance );
- } else {
- pendings[handle] = deferred;
- }
-
- return deferred.promise;
- }
- return $q.reject("Invalid `md-component-id` value.");
- }
-
- };
-
- function isValidID(handle){
- return handle && (handle !== "");
- }
-
- }
- ComponentRegistry.$inject = ["$log", "$q"];
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdButtonInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-button. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdButtonInkRipple', MdButtonInkRipple);
-
- function MdButtonInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- var elementOptions = optionsForElement(element);
- return $mdInkRipple.attach(scope, element, angular.extend(elementOptions, options));
- };
-
- function optionsForElement(element) {
- if (element.hasClass('md-icon-button')) {
- return {
- isMenuItem: element.hasClass('md-menu-item'),
- fitRipple: true,
- center: true
- };
- } else {
- return {
- isMenuItem: element.hasClass('md-menu-item'),
- dimBackground: true
- }
- }
- };
- }
- MdButtonInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdCheckboxInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-checkbox. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdCheckboxInkRipple', MdCheckboxInkRipple);
-
- function MdCheckboxInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: true,
- dimBackground: false,
- fitRipple: true
- }, options));
- };
- }
- MdCheckboxInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdListInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-list. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdListInkRipple', MdListInkRipple);
-
- function MdListInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: false,
- dimBackground: true,
- outline: false,
- rippleSize: 'full'
- }, options));
- };
- }
- MdListInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-angular.module('material.core')
- .factory('$mdInkRipple', InkRippleService)
- .directive('mdInkRipple', InkRippleDirective)
- .directive('mdNoInk', attrNoDirective())
- .directive('mdNoBar', attrNoDirective())
- .directive('mdNoStretch', attrNoDirective());
-
-function InkRippleDirective($mdButtonInkRipple, $mdCheckboxInkRipple) {
- return {
- controller: angular.noop,
- link: function (scope, element, attr) {
- if (attr.hasOwnProperty('mdInkRippleCheckbox')) {
- $mdCheckboxInkRipple.attach(scope, element);
- } else {
- $mdButtonInkRipple.attach(scope, element);
- }
- }
- };
-}
-InkRippleDirective.$inject = ["$mdButtonInkRipple", "$mdCheckboxInkRipple"];
-
-function InkRippleService($window, $timeout) {
-
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- if (element.controller('mdNoInk')) return angular.noop;
-
- options = angular.extend({
- colorElement: element,
- mousedown: true,
- hover: true,
- focus: true,
- center: false,
- mousedownPauseTime: 150,
- dimBackground: false,
- outline: false,
- fullRipple: true,
- isMenuItem: false,
- fitRipple: false
- }, options);
-
- var rippleSize,
- controller = element.controller('mdInkRipple') || {},
- counter = 0,
- ripples = [],
- states = [],
- isActiveExpr = element.attr('md-highlight'),
- isActive = false,
- isHeld = false,
- node = element[0],
- rippleSizeSetting = element.attr('md-ripple-size'),
- color = parseColor(element.attr('md-ink-ripple')) || parseColor(options.colorElement.length && $window.getComputedStyle(options.colorElement[0]).color || 'rgb(0, 0, 0)');
-
- switch (rippleSizeSetting) {
- case 'full':
- options.fullRipple = true;
- break;
- case 'partial':
- options.fullRipple = false;
- break;
- }
-
- // expose onInput for ripple testing
- if (options.mousedown) {
- element.on('$md.pressdown', onPressDown)
- .on('$md.pressup', onPressUp);
- }
-
- controller.createRipple = createRipple;
-
- if (isActiveExpr) {
- scope.$watch(isActiveExpr, function watchActive(newValue) {
- isActive = newValue;
- if (isActive && !ripples.length) {
- $timeout(function () { createRipple(0, 0); }, 0, false);
- }
- angular.forEach(ripples, updateElement);
- });
- }
-
- // Publish self-detach method if desired...
- return function detach() {
- element.off('$md.pressdown', onPressDown)
- .off('$md.pressup', onPressUp);
- getRippleContainer().remove();
- };
-
- /**
- * Gets the current ripple container
- * If there is no ripple container, it creates one and returns it
- *
- * @returns {angular.element} ripple container element
- */
- function getRippleContainer() {
- var container = element.data('$mdRippleContainer');
- if (container) return container;
- container = angular.element('<div class="md-ripple-container">');
- element.append(container);
- element.data('$mdRippleContainer', container);
- return container;
- }
-
- function parseColor(color) {
- if (!color) return;
- if (color.indexOf('rgba') === 0) return color.replace(/\d?\.?\d*\s*\)\s*$/, '0.1)');
- if (color.indexOf('rgb') === 0) return rgbToRGBA(color);
- if (color.indexOf('#') === 0) return hexToRGBA(color);
-
- /**
- * Converts a hex value to an rgba string
- *
- * @param {string} hex value (3 or 6 digits) to be converted
- *
- * @returns {string} rgba color with 0.1 alpha
- */
- function hexToRGBA(color) {
- var hex = color.charAt(0) === '#' ? color.substr(1) : color,
- dig = hex.length / 3,
- red = hex.substr(0, dig),
- grn = hex.substr(dig, dig),
- blu = hex.substr(dig * 2);
- if (dig === 1) {
- red += red;
- grn += grn;
- blu += blu;
- }
- return 'rgba(' + parseInt(red, 16) + ',' + parseInt(grn, 16) + ',' + parseInt(blu, 16) + ',0.1)';
- }
-
- /**
- * Converts rgb value to rgba string
- *
- * @param {string} rgb color string
- *
- * @returns {string} rgba color with 0.1 alpha
- */
- function rgbToRGBA(color) {
- return color.replace(')', ', 0.1)').replace('(', 'a(');
- }
-
- }
-
- function removeElement(elem, wait) {
- ripples.splice(ripples.indexOf(elem), 1);
- if (ripples.length === 0) {
- getRippleContainer().css({ backgroundColor: '' });
- }
- $timeout(function () { elem.remove(); }, wait, false);
- }
-
- function updateElement(elem) {
- var index = ripples.indexOf(elem),
- state = states[index] || {},
- elemIsActive = ripples.length > 1 ? false : isActive,
- elemIsHeld = ripples.length > 1 ? false : isHeld;
- if (elemIsActive || state.animating || elemIsHeld) {
- elem.addClass('md-ripple-visible');
- } else if (elem) {
- elem.removeClass('md-ripple-visible');
- if (options.outline) {
- elem.css({
- width: rippleSize + 'px',
- height: rippleSize + 'px',
- marginLeft: (rippleSize * -1) + 'px',
- marginTop: (rippleSize * -1) + 'px'
- });
- }
- removeElement(elem, options.outline ? 450 : 650);
- }
- }
-
- /**
- * Creates a ripple at the provided coordinates
- *
- * @param {number} left cursor position
- * @param {number} top cursor position
- *
- * @returns {angular.element} the generated ripple element
- */
- function createRipple(left, top) {
-
- color = parseColor(element.attr('md-ink-ripple')) || parseColor($window.getComputedStyle(options.colorElement[0]).color || 'rgb(0, 0, 0)');
-
- var container = getRippleContainer(),
- size = getRippleSize(left, top),
- css = getRippleCss(size, left, top),
- elem = getRippleElement(css),
- index = ripples.indexOf(elem),
- state = states[index] || {};
-
- rippleSize = size;
-
- state.animating = true;
-
- $timeout(function () {
- if (options.dimBackground) {
- container.css({ backgroundColor: color });
- }
- elem.addClass('md-ripple-placed md-ripple-scaled');
- if (options.outline) {
- elem.css({
- borderWidth: (size * 0.5) + 'px',
- marginLeft: (size * -0.5) + 'px',
- marginTop: (size * -0.5) + 'px'
- });
- } else {
- elem.css({ left: '50%', top: '50%' });
- }
- updateElement(elem);
- $timeout(function () {
- state.animating = false;
- updateElement(elem);
- }, (options.outline ? 450 : 225), false);
- }, 0, false);
-
- return elem;
-
- /**
- * Creates the ripple element with the provided css
- *
- * @param {object} css properties to be applied
- *
- * @returns {angular.element} the generated ripple element
- */
- function getRippleElement(css) {
- var elem = angular.element('<div class="md-ripple" data-counter="' + counter++ + '">');
- ripples.unshift(elem);
- states.unshift({ animating: true });
- container.append(elem);
- css && elem.css(css);
- return elem;
- }
-
- /**
- * Calculate the ripple size
- *
- * @returns {number} calculated ripple diameter
- */
- function getRippleSize(left, top) {
- var width = container.prop('offsetWidth'),
- height = container.prop('offsetHeight'),
- multiplier, size, rect;
- if (options.isMenuItem) {
- size = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
- } else if (options.outline) {
- rect = node.getBoundingClientRect();
- left -= rect.left;
- top -= rect.top;
- width = Math.max(left, width - left);
- height = Math.max(top, height - top);
- size = 2 * Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
- } else {
- multiplier = options.fullRipple ? 1.1 : 0.8;
- size = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2)) * multiplier;
- if (options.fitRipple) {
- size = Math.min(height, width, size);
- }
- }
- return size;
- }
-
- /**
- * Generates the ripple css
- *
- * @param {number} the diameter of the ripple
- * @param {number} the left cursor offset
- * @param {number} the top cursor offset
- *
- * @returns {{backgroundColor: string, borderColor: string, width: string, height: string}}
- */
- function getRippleCss(size, left, top) {
- var rect = node.getBoundingClientRect(),
- css = {
- backgroundColor: rgbaToRGB(color),
- borderColor: rgbaToRGB(color),
- width: size + 'px',
- height: size + 'px'
- };
-
- if (options.outline) {
- css.width = 0;
- css.height = 0;
- } else {
- css.marginLeft = css.marginTop = (size * -0.5) + 'px';
- }
-
- if (options.center) {
- css.left = css.top = '50%';
- } else {
- css.left = Math.round((left - rect.left) / container.prop('offsetWidth') * 100) + '%';
- css.top = Math.round((top - rect.top) / container.prop('offsetHeight') * 100) + '%';
- }
-
- return css;
-
- /**
- * Converts rgba string to rgb, removing the alpha value
- *
- * @param {string} rgba color
- *
- * @returns {string} rgb color
- */
- function rgbaToRGB(color) {
- return color.replace('rgba', 'rgb').replace(/,[^\),]+\)/, ')');
- }
- }
- }
-
- /**
- * Handles user input start and stop events
- *
- */
- function onPressDown(ev) {
- if (!isRippleAllowed()) return;
-
- createRipple(ev.pointer.x, ev.pointer.y);
- isHeld = true;
- }
- function onPressUp() {
- isHeld = false;
- var ripple = ripples[ ripples.length - 1 ];
- $timeout(function () { updateElement(ripple); }, 0, false);
- }
-
- /**
- * Determines if the ripple is allowed
- *
- * @returns {boolean} true if the ripple is allowed, false if not
- */
- function isRippleAllowed() {
- var parent = node.parentNode;
- var grandparent = parent && parent.parentNode;
- var ancestor = grandparent && grandparent.parentNode;
- return !isDisabled(node) && !isDisabled(parent) && !isDisabled(grandparent) && !isDisabled(ancestor);
- function isDisabled (elem) {
- return elem && elem.hasAttribute && elem.hasAttribute('disabled');
- }
- }
-
- }
-}
-InkRippleService.$inject = ["$window", "$timeout"];
-
-/**
- * noink/nobar/nostretch directive: make any element that has one of
- * these attributes be given a controller, so that other directives can
- * `require:` these and see if there is a `no<xxx>` parent attribute.
- *
- * @usage
- * <hljs lang="html">
- * <parent md-no-ink>
- * <child detect-no>
- * </child>
- * </parent>
- * </hljs>
- *
- * <hljs lang="js">
- * myApp.directive('detectNo', function() {
- * return {
- * require: ['^?mdNoInk', ^?mdNoBar'],
- * link: function(scope, element, attr, ctrls) {
- * var noinkCtrl = ctrls[0];
- * var nobarCtrl = ctrls[1];
- * if (noInkCtrl) {
- * alert("the md-no-ink flag has been specified on an ancestor!");
- * }
- * if (nobarCtrl) {
- * alert("the md-no-bar flag has been specified on an ancestor!");
- * }
- * }
- * };
- * });
- * </hljs>
- */
-function attrNoDirective() {
- return function() {
- return {
- controller: angular.noop
- };
- };
-}
-
-(function() {
- 'use strict';
-
- /**
- * @ngdoc service
- * @name $mdTabInkRipple
- * @module material.core
- *
- * @description
- * Provides ripple effects for md-tabs. See $mdInkRipple service for all possible configuration options.
- *
- * @param {object=} scope Scope within the current context
- * @param {object=} element The element the ripple effect should be applied to
- * @param {object=} options (Optional) Configuration options to override the defaultripple configuration
- */
-
- angular.module('material.core')
- .factory('$mdTabInkRipple', MdTabInkRipple);
-
- function MdTabInkRipple($mdInkRipple) {
- return {
- attach: attach
- };
-
- function attach(scope, element, options) {
- return $mdInkRipple.attach(scope, element, angular.extend({
- center: false,
- dimBackground: true,
- outline: false,
- rippleSize: 'full'
- }, options));
- };
- }
- MdTabInkRipple.$inject = ["$mdInkRipple"];;
-})();
-
-angular.module('material.core.theming.palette', [])
-.constant('$mdColorPalette', {
- 'red': {
- '50': '#ffebee',
- '100': '#ffcdd2',
- '200': '#ef9a9a',
- '300': '#e57373',
- '400': '#ef5350',
- '500': '#f44336',
- '600': '#e53935',
- '700': '#d32f2f',
- '800': '#c62828',
- '900': '#b71c1c',
- 'A100': '#ff8a80',
- 'A200': '#ff5252',
- 'A400': '#ff1744',
- 'A700': '#d50000',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 700 A200 A400 A700'
- },
- 'pink': {
- '50': '#fce4ec',
- '100': '#f8bbd0',
- '200': '#f48fb1',
- '300': '#f06292',
- '400': '#ec407a',
- '500': '#e91e63',
- '600': '#d81b60',
- '700': '#c2185b',
- '800': '#ad1457',
- '900': '#880e4f',
- 'A100': '#ff80ab',
- 'A200': '#ff4081',
- 'A400': '#f50057',
- 'A700': '#c51162',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 A200 A400 A700'
- },
- 'purple': {
- '50': '#f3e5f5',
- '100': '#e1bee7',
- '200': '#ce93d8',
- '300': '#ba68c8',
- '400': '#ab47bc',
- '500': '#9c27b0',
- '600': '#8e24aa',
- '700': '#7b1fa2',
- '800': '#6a1b9a',
- '900': '#4a148c',
- 'A100': '#ea80fc',
- 'A200': '#e040fb',
- 'A400': '#d500f9',
- 'A700': '#aa00ff',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200 A400 A700'
- },
- 'deep-purple': {
- '50': '#ede7f6',
- '100': '#d1c4e9',
- '200': '#b39ddb',
- '300': '#9575cd',
- '400': '#7e57c2',
- '500': '#673ab7',
- '600': '#5e35b1',
- '700': '#512da8',
- '800': '#4527a0',
- '900': '#311b92',
- 'A100': '#b388ff',
- 'A200': '#7c4dff',
- 'A400': '#651fff',
- 'A700': '#6200ea',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200'
- },
- 'indigo': {
- '50': '#e8eaf6',
- '100': '#c5cae9',
- '200': '#9fa8da',
- '300': '#7986cb',
- '400': '#5c6bc0',
- '500': '#3f51b5',
- '600': '#3949ab',
- '700': '#303f9f',
- '800': '#283593',
- '900': '#1a237e',
- 'A100': '#8c9eff',
- 'A200': '#536dfe',
- 'A400': '#3d5afe',
- 'A700': '#304ffe',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 A100',
- 'contrastStrongLightColors': '300 400 A200 A400'
- },
- 'blue': {
- '50': '#e3f2fd',
- '100': '#bbdefb',
- '200': '#90caf9',
- '300': '#64b5f6',
- '400': '#42a5f5',
- '500': '#2196f3',
- '600': '#1e88e5',
- '700': '#1976d2',
- '800': '#1565c0',
- '900': '#0d47a1',
- 'A100': '#82b1ff',
- 'A200': '#448aff',
- 'A400': '#2979ff',
- 'A700': '#2962ff',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '100 200 300 400 A100',
- 'contrastStrongLightColors': '500 600 700 A200 A400 A700'
- },
- 'light-blue': {
- '50': '#e1f5fe',
- '100': '#b3e5fc',
- '200': '#81d4fa',
- '300': '#4fc3f7',
- '400': '#29b6f6',
- '500': '#03a9f4',
- '600': '#039be5',
- '700': '#0288d1',
- '800': '#0277bd',
- '900': '#01579b',
- 'A100': '#80d8ff',
- 'A200': '#40c4ff',
- 'A400': '#00b0ff',
- 'A700': '#0091ea',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900 A700',
- 'contrastStrongLightColors': '500 600 700 800 A700'
- },
- 'cyan': {
- '50': '#e0f7fa',
- '100': '#b2ebf2',
- '200': '#80deea',
- '300': '#4dd0e1',
- '400': '#26c6da',
- '500': '#00bcd4',
- '600': '#00acc1',
- '700': '#0097a7',
- '800': '#00838f',
- '900': '#006064',
- 'A100': '#84ffff',
- 'A200': '#18ffff',
- 'A400': '#00e5ff',
- 'A700': '#00b8d4',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700 800'
- },
- 'teal': {
- '50': '#e0f2f1',
- '100': '#b2dfdb',
- '200': '#80cbc4',
- '300': '#4db6ac',
- '400': '#26a69a',
- '500': '#009688',
- '600': '#00897b',
- '700': '#00796b',
- '800': '#00695c',
- '900': '#004d40',
- 'A100': '#a7ffeb',
- 'A200': '#64ffda',
- 'A400': '#1de9b6',
- 'A700': '#00bfa5',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700'
- },
- 'green': {
- '50': '#e8f5e9',
- '100': '#c8e6c9',
- '200': '#a5d6a7',
- '300': '#81c784',
- '400': '#66bb6a',
- '500': '#4caf50',
- '600': '#43a047',
- '700': '#388e3c',
- '800': '#2e7d32',
- '900': '#1b5e20',
- 'A100': '#b9f6ca',
- 'A200': '#69f0ae',
- 'A400': '#00e676',
- 'A700': '#00c853',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '500 600 700 800 900',
- 'contrastStrongLightColors': '500 600 700'
- },
- 'light-green': {
- '50': '#f1f8e9',
- '100': '#dcedc8',
- '200': '#c5e1a5',
- '300': '#aed581',
- '400': '#9ccc65',
- '500': '#8bc34a',
- '600': '#7cb342',
- '700': '#689f38',
- '800': '#558b2f',
- '900': '#33691e',
- 'A100': '#ccff90',
- 'A200': '#b2ff59',
- 'A400': '#76ff03',
- 'A700': '#64dd17',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '800 900',
- 'contrastStrongLightColors': '800 900'
- },
- 'lime': {
- '50': '#f9fbe7',
- '100': '#f0f4c3',
- '200': '#e6ee9c',
- '300': '#dce775',
- '400': '#d4e157',
- '500': '#cddc39',
- '600': '#c0ca33',
- '700': '#afb42b',
- '800': '#9e9d24',
- '900': '#827717',
- 'A100': '#f4ff81',
- 'A200': '#eeff41',
- 'A400': '#c6ff00',
- 'A700': '#aeea00',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '900',
- 'contrastStrongLightColors': '900'
- },
- 'yellow': {
- '50': '#fffde7',
- '100': '#fff9c4',
- '200': '#fff59d',
- '300': '#fff176',
- '400': '#ffee58',
- '500': '#ffeb3b',
- '600': '#fdd835',
- '700': '#fbc02d',
- '800': '#f9a825',
- '900': '#f57f17',
- 'A100': '#ffff8d',
- 'A200': '#ffff00',
- 'A400': '#ffea00',
- 'A700': '#ffd600',
- 'contrastDefaultColor': 'dark'
- },
- 'amber': {
- '50': '#fff8e1',
- '100': '#ffecb3',
- '200': '#ffe082',
- '300': '#ffd54f',
- '400': '#ffca28',
- '500': '#ffc107',
- '600': '#ffb300',
- '700': '#ffa000',
- '800': '#ff8f00',
- '900': '#ff6f00',
- 'A100': '#ffe57f',
- 'A200': '#ffd740',
- 'A400': '#ffc400',
- 'A700': '#ffab00',
- 'contrastDefaultColor': 'dark'
- },
- 'orange': {
- '50': '#fff3e0',
- '100': '#ffe0b2',
- '200': '#ffcc80',
- '300': '#ffb74d',
- '400': '#ffa726',
- '500': '#ff9800',
- '600': '#fb8c00',
- '700': '#f57c00',
- '800': '#ef6c00',
- '900': '#e65100',
- 'A100': '#ffd180',
- 'A200': '#ffab40',
- 'A400': '#ff9100',
- 'A700': '#ff6d00',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '800 900',
- 'contrastStrongLightColors': '800 900'
- },
- 'deep-orange': {
- '50': '#fbe9e7',
- '100': '#ffccbc',
- '200': '#ffab91',
- '300': '#ff8a65',
- '400': '#ff7043',
- '500': '#ff5722',
- '600': '#f4511e',
- '700': '#e64a19',
- '800': '#d84315',
- '900': '#bf360c',
- 'A100': '#ff9e80',
- 'A200': '#ff6e40',
- 'A400': '#ff3d00',
- 'A700': '#dd2c00',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300 400 A100 A200',
- 'contrastStrongLightColors': '500 600 700 800 900 A400 A700'
- },
- 'brown': {
- '50': '#efebe9',
- '100': '#d7ccc8',
- '200': '#bcaaa4',
- '300': '#a1887f',
- '400': '#8d6e63',
- '500': '#795548',
- '600': '#6d4c41',
- '700': '#5d4037',
- '800': '#4e342e',
- '900': '#3e2723',
- 'A100': '#d7ccc8',
- 'A200': '#bcaaa4',
- 'A400': '#8d6e63',
- 'A700': '#5d4037',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200',
- 'contrastStrongLightColors': '300 400'
- },
- 'grey': {
- '50': '#fafafa',
- '100': '#f5f5f5',
- '200': '#eeeeee',
- '300': '#e0e0e0',
- '400': '#bdbdbd',
- '500': '#9e9e9e',
- '600': '#757575',
- '700': '#616161',
- '800': '#424242',
- '900': '#212121',
- '1000': '#000000',
- 'A100': '#ffffff',
- 'A200': '#eeeeee',
- 'A400': '#bdbdbd',
- 'A700': '#616161',
- 'contrastDefaultColor': 'dark',
- 'contrastLightColors': '600 700 800 900'
- },
- 'blue-grey': {
- '50': '#eceff1',
- '100': '#cfd8dc',
- '200': '#b0bec5',
- '300': '#90a4ae',
- '400': '#78909c',
- '500': '#607d8b',
- '600': '#546e7a',
- '700': '#455a64',
- '800': '#37474f',
- '900': '#263238',
- 'A100': '#cfd8dc',
- 'A200': '#b0bec5',
- 'A400': '#78909c',
- 'A700': '#455a64',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': '50 100 200 300',
- 'contrastStrongLightColors': '400 500'
- }
-});
-
-angular.module('material.core.theming', ['material.core.theming.palette'])
- .directive('mdTheme', ThemingDirective)
- .directive('mdThemable', ThemableDirective)
- .provider('$mdTheming', ThemingProvider)
- .run(generateThemes);
-
-/**
- * @ngdoc provider
- * @name $mdThemingProvider
- * @module material.core
- *
- * @description Provider to configure the `$mdTheming` service.
- */
-
-/**
- * @ngdoc method
- * @name $mdThemingProvider#setDefaultTheme
- * @param {string} themeName Default theme name to be applied to elements. Default value is `default`.
- */
-
-/**
- * @ngdoc method
- * @name $mdThemingProvider#alwaysWatchTheme
- * @param {boolean} watch Whether or not to always watch themes for changes and re-apply
- * classes when they change. Default is `false`. Enabling can reduce performance.
- */
-
-/* Some Example Valid Theming Expressions
- * =======================================
- *
- * Intention group expansion: (valid for primary, accent, warn, background)
- *
- * {{primary-100}} - grab shade 100 from the primary palette
- * {{primary-100-0.7}} - grab shade 100, apply opacity of 0.7
- * {{primary-hue-1}} - grab the shade assigned to hue-1 from the primary palette
- * {{primary-hue-1-0.7}} - apply 0.7 opacity to primary-hue-1
- * {{primary-color}} - Generates .md-hue-1, .md-hue-2, .md-hue-3 with configured shades set for each hue
- * {{primary-color-0.7}} - Apply 0.7 opacity to each of the above rules
- * {{primary-contrast}} - Generates .md-hue-1, .md-hue-2, .md-hue-3 with configured contrast (ie. text) color shades set for each hue
- * {{primary-contrast-0.7}} - Apply 0.7 opacity to each of the above rules
- *
- * Foreground expansion: Applies rgba to black/white foreground text
- *
- * {{foreground-1}} - used for primary text
- * {{foreground-2}} - used for secondary text/divider
- * {{foreground-3}} - used for disabled text
- * {{foreground-4}} - used for dividers
- *
- */
-
-// In memory generated CSS rules; registered by theme.name
-var GENERATED = { };
-
-// In memory storage of defined themes and color palettes (both loaded by CSS, and user specified)
-var PALETTES;
-var THEMES;
-
-var DARK_FOREGROUND = {
- name: 'dark',
- '1': 'rgba(0,0,0,0.87)',
- '2': 'rgba(0,0,0,0.54)',
- '3': 'rgba(0,0,0,0.26)',
- '4': 'rgba(0,0,0,0.12)'
-};
-var LIGHT_FOREGROUND = {
- name: 'light',
- '1': 'rgba(255,255,255,1.0)',
- '2': 'rgba(255,255,255,0.7)',
- '3': 'rgba(255,255,255,0.3)',
- '4': 'rgba(255,255,255,0.12)'
-};
-
-var DARK_SHADOW = '1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)';
-var LIGHT_SHADOW = '';
-
-var DARK_CONTRAST_COLOR = colorToRgbaArray('rgba(0,0,0,0.87)');
-var LIGHT_CONTRAST_COLOR = colorToRgbaArray('rgba(255,255,255,0.87');
-var STRONG_LIGHT_CONTRAST_COLOR = colorToRgbaArray('rgb(255,255,255)');
-
-var THEME_COLOR_TYPES = ['primary', 'accent', 'warn', 'background'];
-var DEFAULT_COLOR_TYPE = 'primary';
-
-// A color in a theme will use these hues by default, if not specified by user.
-var LIGHT_DEFAULT_HUES = {
- 'accent': {
- 'default': 'A200',
- 'hue-1': 'A100',
- 'hue-2': 'A400',
- 'hue-3': 'A700'
- },
- 'background': {
- 'default': 'A100',
- 'hue-1': '300',
- 'hue-2': '800',
- 'hue-3': '900'
- }
-};
-
-var DARK_DEFAULT_HUES = {
- 'background': {
- 'default': '800',
- 'hue-1': '300',
- 'hue-2': '600',
- 'hue-3': '900'
- }
-};
-THEME_COLOR_TYPES.forEach(function(colorType) {
- // Color types with unspecified default hues will use these default hue values
- var defaultDefaultHues = {
- 'default': '500',
- 'hue-1': '300',
- 'hue-2': '800',
- 'hue-3': 'A100'
- };
- if (!LIGHT_DEFAULT_HUES[colorType]) LIGHT_DEFAULT_HUES[colorType] = defaultDefaultHues;
- if (!DARK_DEFAULT_HUES[colorType]) DARK_DEFAULT_HUES[colorType] = defaultDefaultHues;
-});
-
-var VALID_HUE_VALUES = [
- '50', '100', '200', '300', '400', '500', '600',
- '700', '800', '900', 'A100', 'A200', 'A400', 'A700'
-];
-
-function ThemingProvider($mdColorPalette) {
- PALETTES = { };
- THEMES = { };
-
- var themingProvider;
- var defaultTheme = 'default';
- var alwaysWatchTheme = false;
-
- // Load JS Defined Palettes
- angular.extend(PALETTES, $mdColorPalette);
-
- // Default theme defined in core.js
-
- ThemingService.$inject = ["$rootScope", "$log"];
- return themingProvider = {
- definePalette: definePalette,
- extendPalette: extendPalette,
- theme: registerTheme,
-
- setDefaultTheme: function(theme) {
- defaultTheme = theme;
- },
- alwaysWatchTheme: function(alwaysWatch) {
- alwaysWatchTheme = alwaysWatch;
- },
- $get: ThemingService,
- _LIGHT_DEFAULT_HUES: LIGHT_DEFAULT_HUES,
- _DARK_DEFAULT_HUES: DARK_DEFAULT_HUES,
- _PALETTES: PALETTES,
- _THEMES: THEMES,
- _parseRules: parseRules,
- _rgba: rgba
- };
-
- // Example: $mdThemingProvider.definePalette('neonRed', { 50: '#f5fafa', ... });
- function definePalette(name, map) {
- map = map || {};
- PALETTES[name] = checkPaletteValid(name, map);
- return themingProvider;
- }
-
- // Returns an new object which is a copy of a given palette `name` with variables from
- // `map` overwritten
- // Example: var neonRedMap = $mdThemingProvider.extendPalette('red', { 50: '#f5fafafa' });
- function extendPalette(name, map) {
- return checkPaletteValid(name, angular.extend({}, PALETTES[name] || {}, map) );
- }
-
- // Make sure that palette has all required hues
- function checkPaletteValid(name, map) {
- var missingColors = VALID_HUE_VALUES.filter(function(field) {
- return !map[field];
- });
- if (missingColors.length) {
- throw new Error("Missing colors %1 in palette %2!"
- .replace('%1', missingColors.join(', '))
- .replace('%2', name));
- }
-
- return map;
- }
-
- // Register a theme (which is a collection of color palettes to use with various states
- // ie. warn, accent, primary )
- // Optionally inherit from an existing theme
- // $mdThemingProvider.theme('custom-theme').primaryPalette('red');
- function registerTheme(name, inheritFrom) {
- if (THEMES[name]) return THEMES[name];
-
- inheritFrom = inheritFrom || 'default';
-
- var parentTheme = typeof inheritFrom === 'string' ? THEMES[inheritFrom] : inheritFrom;
- var theme = new Theme(name);
-
- if (parentTheme) {
- angular.forEach(parentTheme.colors, function(color, colorType) {
- theme.colors[colorType] = {
- name: color.name,
- // Make sure a COPY of the hues is given to the child color,
- // not the same reference.
- hues: angular.extend({}, color.hues)
- };
- });
- }
- THEMES[name] = theme;
-
- return theme;
- }
-
- function Theme(name) {
- var self = this;
- self.name = name;
- self.colors = {};
-
- self.dark = setDark;
- setDark(false);
-
- function setDark(isDark) {
- isDark = arguments.length === 0 ? true : !!isDark;
-
- // If no change, abort
- if (isDark === self.isDark) return;
-
- self.isDark = isDark;
-
- self.foregroundPalette = self.isDark ? LIGHT_FOREGROUND : DARK_FOREGROUND;
- self.foregroundShadow = self.isDark ? DARK_SHADOW : LIGHT_SHADOW;
-
- // Light and dark themes have different default hues.
- // Go through each existing color type for this theme, and for every
- // hue value that is still the default hue value from the previous light/dark setting,
- // set it to the default hue value from the new light/dark setting.
- var newDefaultHues = self.isDark ? DARK_DEFAULT_HUES : LIGHT_DEFAULT_HUES;
- var oldDefaultHues = self.isDark ? LIGHT_DEFAULT_HUES : DARK_DEFAULT_HUES;
- angular.forEach(newDefaultHues, function(newDefaults, colorType) {
- var color = self.colors[colorType];
- var oldDefaults = oldDefaultHues[colorType];
- if (color) {
- for (var hueName in color.hues) {
- if (color.hues[hueName] === oldDefaults[hueName]) {
- color.hues[hueName] = newDefaults[hueName];
- }
- }
- }
- });
-
- return self;
- }
-
- THEME_COLOR_TYPES.forEach(function(colorType) {
- var defaultHues = (self.isDark ? DARK_DEFAULT_HUES : LIGHT_DEFAULT_HUES)[colorType];
- self[colorType + 'Palette'] = function setPaletteType(paletteName, hues) {
- var color = self.colors[colorType] = {
- name: paletteName,
- hues: angular.extend({}, defaultHues, hues)
- };
-
- Object.keys(color.hues).forEach(function(name) {
- if (!defaultHues[name]) {
- throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4"
- .replace('%1', name)
- .replace('%2', self.name)
- .replace('%3', paletteName)
- .replace('%4', Object.keys(defaultHues).join(', '))
- );
- }
- });
- Object.keys(color.hues).map(function(key) {
- return color.hues[key];
- }).forEach(function(hueValue) {
- if (VALID_HUE_VALUES.indexOf(hueValue) == -1) {
- throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5"
- .replace('%1', hueValue)
- .replace('%2', self.name)
- .replace('%3', colorType)
- .replace('%4', paletteName)
- .replace('%5', VALID_HUE_VALUES.join(', '))
- );
- }
- });
- return self;
- };
-
- self[colorType + 'Color'] = function() {
- var args = Array.prototype.slice.call(arguments);
- console.warn('$mdThemingProviderTheme.' + colorType + 'Color() has been deprecated. ' +
- 'Use $mdThemingProviderTheme.' + colorType + 'Palette() instead.');
- return self[colorType + 'Palette'].apply(self, args);
- };
- });
- }
-
- /**
- * @ngdoc service
- * @name $mdTheming
- *
- * @description
- *
- * Service that makes an element apply theming related classes to itself.
- *
- * ```js
- * app.directive('myFancyDirective', function($mdTheming) {
- * return {
- * restrict: 'e',
- * link: function(scope, el, attrs) {
- * $mdTheming(el);
- * }
- * };
- * });
- * ```
- * @param {el=} element to apply theming to
- */
- /* ngInject */
- function ThemingService($rootScope, $log) {
-
- applyTheme.inherit = function(el, parent) {
- var ctrl = parent.controller('mdTheme');
-
- var attrThemeValue = el.attr('md-theme-watch');
- if ( (alwaysWatchTheme || angular.isDefined(attrThemeValue)) && attrThemeValue != 'false') {
- var deregisterWatch = $rootScope.$watch(function() {
- return ctrl && ctrl.$mdTheme || defaultTheme;
- }, changeTheme);
- el.on('$destroy', deregisterWatch);
- } else {
- var theme = ctrl && ctrl.$mdTheme || defaultTheme;
- changeTheme(theme);
- }
-
- function changeTheme(theme) {
- if (!registered(theme)) {
- $log.warn('Attempted to use unregistered theme \'' + theme + '\'. ' +
- 'Register it with $mdThemingProvider.theme().');
- }
- var oldTheme = el.data('$mdThemeName');
- if (oldTheme) el.removeClass('md-' + oldTheme +'-theme');
- el.addClass('md-' + theme + '-theme');
- el.data('$mdThemeName', theme);
- }
- };
-
- applyTheme.THEMES = angular.extend({}, THEMES);
- applyTheme.defaultTheme = function() { return defaultTheme; };
- applyTheme.registered = registered;
-
- return applyTheme;
-
- function registered(themeName) {
- if (themeName === undefined || themeName === '') return true;
- return applyTheme.THEMES[themeName] !== undefined;
- }
-
- function applyTheme(scope, el) {
- // Allow us to be invoked via a linking function signature.
- if (el === undefined) {
- el = scope;
- scope = undefined;
- }
- if (scope === undefined) {
- scope = $rootScope;
- }
- applyTheme.inherit(el, el);
- }
- }
-}
-ThemingProvider.$inject = ["$mdColorPalette"];
-
-function ThemingDirective($mdTheming, $interpolate, $log) {
- return {
- priority: 100,
- link: {
- pre: function(scope, el, attrs) {
- var ctrl = {
- $setTheme: function(theme) {
- if (!$mdTheming.registered(theme)) {
- $log.warn('attempted to use unregistered theme \'' + theme + '\'');
- }
- ctrl.$mdTheme = theme;
- }
- };
- el.data('$mdThemeController', ctrl);
- ctrl.$setTheme($interpolate(attrs.mdTheme)(scope));
- attrs.$observe('mdTheme', ctrl.$setTheme);
- }
- }
- };
-}
-ThemingDirective.$inject = ["$mdTheming", "$interpolate", "$log"];
-
-function ThemableDirective($mdTheming) {
- return $mdTheming;
-}
-ThemableDirective.$inject = ["$mdTheming"];
-
-function parseRules(theme, colorType, rules) {
- checkValidPalette(theme, colorType);
-
- rules = rules.replace(/THEME_NAME/g, theme.name);
- var generatedRules = [];
- var color = theme.colors[colorType];
-
- var themeNameRegex = new RegExp('.md-' + theme.name + '-theme', 'g');
- // Matches '{{ primary-color }}', etc
- var hueRegex = new RegExp('(\'|")?{{\\s*(' + colorType + ')-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|\')?','g');
- var simpleVariableRegex = /'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow)-?(\d\.?\d*)?\s*\}\}'?"?/g;
- var palette = PALETTES[color.name];
-
- // find and replace simple variables where we use a specific hue, not an entire palette
- // eg. "{{primary-100}}"
- //\(' + THEME_COLOR_TYPES.join('\|') + '\)'
- rules = rules.replace(simpleVariableRegex, function(match, colorType, hue, opacity) {
- if (colorType === 'foreground') {
- if (hue == 'shadow') {
- return theme.foregroundShadow;
- } else {
- return theme.foregroundPalette[hue] || theme.foregroundPalette['1'];
- }
- }
- if (hue.indexOf('hue') === 0) {
- hue = theme.colors[colorType].hues[hue];
- }
- return rgba( (PALETTES[ theme.colors[colorType].name ][hue] || '').value, opacity );
- });
-
- // For each type, generate rules for each hue (ie. default, md-hue-1, md-hue-2, md-hue-3)
- angular.forEach(color.hues, function(hueValue, hueName) {
- var newRule = rules
- .replace(hueRegex, function(match, _, colorType, hueType, opacity) {
- return rgba(palette[hueValue][hueType === 'color' ? 'value' : 'contrast'], opacity);
- });
- if (hueName !== 'default') {
- newRule = newRule.replace(themeNameRegex, '.md-' + theme.name + '-theme.md-' + hueName);
- }
-
- // Don't apply a selector rule to the default theme, making it easier to override
- // styles of the base-component
- if (theme.name == 'default') {
- newRule = newRule.replace(/\.md-default-theme/g, '');
- }
- generatedRules.push(newRule);
- });
-
- return generatedRules;
-}
-
-// Generate our themes at run time given the state of THEMES and PALETTES
-function generateThemes($injector) {
-
- var head = document.getElementsByTagName('head')[0];
- var firstChild = head ? head.firstElementChild : null;
- var themeCss = $injector.has('$MD_THEME_CSS') ? $injector.get('$MD_THEME_CSS') : '';
-
- if ( !firstChild ) return;
- if (themeCss.length === 0) return; // no rules, so no point in running this expensive task
-
- // Expose contrast colors for palettes to ensure that text is always readable
- angular.forEach(PALETTES, sanitizePalette);
-
- // MD_THEME_CSS is a string generated by the build process that includes all the themable
- // components as templates
-
- // Break the CSS into individual rules
- var rulesByType = {};
- var rules = themeCss
- .split(/\}(?!(\}|'|"|;))/)
- .filter(function(rule) { return rule && rule.length; })
- .map(function(rule) { return rule.trim() + '}'; });
-
-
- var ruleMatchRegex = new RegExp('md-(' + THEME_COLOR_TYPES.join('|') + ')', 'g');
-
- THEME_COLOR_TYPES.forEach(function(type) {
- rulesByType[type] = '';
- });
-
-
- // Sort the rules based on type, allowing us to do color substitution on a per-type basis
- rules.forEach(function(rule) {
- var match = rule.match(ruleMatchRegex);
- // First: test that if the rule has '.md-accent', it goes into the accent set of rules
- for (var i = 0, type; type = THEME_COLOR_TYPES[i]; i++) {
- if (rule.indexOf('.md-' + type) > -1) {
- return rulesByType[type] += rule;
- }
- }
-
- // If no eg 'md-accent' class is found, try to just find 'accent' in the rule and guess from
- // there
- for (i = 0; type = THEME_COLOR_TYPES[i]; i++) {
- if (rule.indexOf(type) > -1) {
- return rulesByType[type] += rule;
- }
- }
-
- // Default to the primary array
- return rulesByType[DEFAULT_COLOR_TYPE] += rule;
- });
-
- // For each theme, use the color palettes specified for
- // `primary`, `warn` and `accent` to generate CSS rules.
-
- angular.forEach(THEMES, function(theme) {
- if ( !GENERATED[theme.name] ) {
-
-
- THEME_COLOR_TYPES.forEach(function(colorType) {
- var styleStrings = parseRules(theme, colorType, rulesByType[colorType]);
- while (styleStrings.length) {
- var style = document.createElement('style');
- style.setAttribute('type', 'text/css');
- style.appendChild(document.createTextNode(styleStrings.shift()));
- head.insertBefore(style, firstChild);
- }
- });
-
-
- if (theme.colors.primary.name == theme.colors.accent.name) {
- console.warn("$mdThemingProvider: Using the same palette for primary and" +
- " accent. This violates the material design spec.");
- }
-
- GENERATED[theme.name] = true;
- }
- });
-
-
- // *************************
- // Internal functions
- // *************************
-
- // The user specifies a 'default' contrast color as either light or dark,
- // then explicitly lists which hues are the opposite contrast (eg. A100 has dark, A200 has light)
- function sanitizePalette(palette) {
- var defaultContrast = palette.contrastDefaultColor;
- var lightColors = palette.contrastLightColors || [];
- var strongLightColors = palette.contrastStrongLightColors || [];
- var darkColors = palette.contrastDarkColors || [];
-
- // These colors are provided as space-separated lists
- if (typeof lightColors === 'string') lightColors = lightColors.split(' ');
- if (typeof strongLightColors === 'string') strongLightColors = strongLightColors.split(' ');
- if (typeof darkColors === 'string') darkColors = darkColors.split(' ');
-
- // Cleanup after ourselves
- delete palette.contrastDefaultColor;
- delete palette.contrastLightColors;
- delete palette.contrastStrongLightColors;
- delete palette.contrastDarkColors;
-
- // Change { 'A100': '#fffeee' } to { 'A100': { value: '#fffeee', contrast:DARK_CONTRAST_COLOR }
- angular.forEach(palette, function(hueValue, hueName) {
- if (angular.isObject(hueValue)) return; // Already converted
- // Map everything to rgb colors
- var rgbValue = colorToRgbaArray(hueValue);
- if (!rgbValue) {
- throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected."
- .replace('%1', hueValue)
- .replace('%2', palette.name)
- .replace('%3', hueName));
- }
-
- palette[hueName] = {
- value: rgbValue,
- contrast: getContrastColor()
- };
- function getContrastColor() {
- if (defaultContrast === 'light') {
- if (darkColors.indexOf(hueName) > -1) {
- return DARK_CONTRAST_COLOR;
- } else {
- return strongLightColors.indexOf(hueName) > -1 ? STRONG_LIGHT_CONTRAST_COLOR
- : LIGHT_CONTRAST_COLOR;
- }
- } else {
- if (lightColors.indexOf(hueName) > -1) {
- return strongLightColors.indexOf(hueName) > -1 ? STRONG_LIGHT_CONTRAST_COLOR
- : LIGHT_CONTRAST_COLOR;
- } else {
- return DARK_CONTRAST_COLOR;
- }
- }
- }
- });
- }
-
-
-}
-generateThemes.$inject = ["$injector"];
-
-function checkValidPalette(theme, colorType) {
- // If theme attempts to use a palette that doesnt exist, throw error
- if (!PALETTES[ (theme.colors[colorType] || {}).name ]) {
- throw new Error(
- "You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3"
- .replace('%1', theme.name)
- .replace('%2', colorType)
- .replace('%3', Object.keys(PALETTES).join(', '))
- );
- }
-}
-
-function colorToRgbaArray(clr) {
- if (angular.isArray(clr) && clr.length == 3) return clr;
- if (/^rgb/.test(clr)) {
- return clr.replace(/(^\s*rgba?\(|\)\s*$)/g, '').split(',').map(function(value, i) {
- return i == 3 ? parseFloat(value, 10) : parseInt(value, 10);
- });
- }
- if (clr.charAt(0) == '#') clr = clr.substring(1);
- if (!/^([a-fA-F0-9]{3}){1,2}$/g.test(clr)) return;
-
- var dig = clr.length / 3;
- var red = clr.substr(0, dig);
- var grn = clr.substr(dig, dig);
- var blu = clr.substr(dig * 2);
- if (dig === 1) {
- red += red;
- grn += grn;
- blu += blu;
- }
- return [parseInt(red, 16), parseInt(grn, 16), parseInt(blu, 16)];
-}
-
-function rgba(rgbArray, opacity) {
- if ( !rgbArray ) return "rgb('0,0,0')";
-
- if (rgbArray.length == 4) {
- rgbArray = angular.copy(rgbArray);
- opacity ? rgbArray.pop() : opacity = rgbArray.pop();
- }
- return opacity && (typeof opacity == 'number' || (typeof opacity == 'string' && opacity.length)) ?
- 'rgba(' + rgbArray.join(',') + ',' + opacity + ')' :
- 'rgb(' + rgbArray.join(',') + ')';
-}
-
-
-(function(){
-angular.module("material.core").constant("$MD_THEME_CSS", "/* mixin definition ; sets LTR and RTL within the same style call */md-autocomplete.md-THEME_NAME-theme { background: '{{background-50}}'; } md-autocomplete.md-THEME_NAME-theme[disabled] { background: '{{background-100}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions.md-THEME_NAME-theme { background: '{{background-50}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{foreground-4-0.5}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme { border-radius: 3px; } a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button { border-radius: 50%; } a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised { color: '{{background-contrast}}'; background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon { color: '{{background-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover { background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused { background-color: '{{background-200}}'; } a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab { color: '{{warn-contrast}}'; background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon { color: '{{warn-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover { background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused { background-color: '{{warn-700}}'; } a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab { color: '{{accent-contrast}}'; background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused { background-color: '{{accent-700}}'; } a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] { color: '{{foreground-3}}'; cursor: not-allowed; } a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon { color: '{{foreground-3}}'; } a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] { background-color: '{{foreground-4}}'; } a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] { background-color: transparent; }md-card.md-THEME_NAME-theme { background-color: '{{background-color}}'; border-radius: 2px; } md-card.md-THEME_NAME-theme .md-card-image { border-radius: 2px 2px 0 0; }md-chips.md-THEME_NAME-theme .md-chips { box-shadow: 0 1px '{{background-300}}'; } md-chips.md-THEME_NAME-theme .md-chips.md-focused { box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip { background: '{{background-300}}'; color: '{{background-800}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused { background: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon { color: '{{primary-contrast}}'; }md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path { fill: '{{background-500}}'; }.md-contact-suggestion span.md-contact-email { color: '{{background-400}}'; }md-content.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-checkbox.md-THEME_NAME-theme .md-ripple { color: '{{accent-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before { background-color: '{{accent-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon { background-color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple { color: '{{primary-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon { background-color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before { background-color: '{{primary-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple { color: '{{warn-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon { background-color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before { background-color: '{{warn-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-icon { border-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon { background-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-label { color: '{{foreground-3}}'; }md-dialog.md-THEME_NAME-theme { border-radius: 4px; background-color: '{{background-color}}'; } md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions { border-top-color: '{{foreground-4}}'; }md-divider.md-THEME_NAME-theme { border-top-color: '{{foreground-4}}'; }md-icon.md-THEME_NAME-theme { color: '{{foreground-2}}'; } md-icon.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } md-icon.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } md-icon.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-input-container.md-THEME_NAME-theme .md-input { color: '{{foreground-1}}'; border-color: '{{foreground-4}}'; text-shadow: '{{foreground-shadow}}'; } md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder { color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme > md-icon { color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder { text-shadow: '{{foreground-shadow}}'; color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label { color: '{{foreground-2}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input { border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input { border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label { color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input { border-bottom-color: transparent; color: '{{foreground-3}}'; background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%); background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-3}}' 100%); }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 { color: '{{foreground-1}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p { color: '{{foreground-2}}'; }md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style { background-color: '{{background-100}}'; }md-list.md-THEME_NAME-theme md-list-item > md-icon { color: '{{foreground-2}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight { color: '{{primary-color}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent { color: '{{accent-color}}'; }md-list.md-THEME_NAME-theme md-list-item button { background-color: '{{background-color}}'; } md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover { background-color: '{{background-color}}'; }md-progress-circular.md-THEME_NAME-theme { background-color: transparent; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap { border-top-color: '{{primary-color}}'; border-bottom-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-top-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-right-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle { border-left-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap { border-top-color: '{{warn-color}}'; border-bottom-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-top-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-right-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle { border-left-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap { border-top-color: '{{accent-color}}'; border-bottom-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-top-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-right-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle { border-left-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme .md-container { background-color: '{{primary-100}}'; }md-progress-linear.md-THEME_NAME-theme .md-bar { background-color: '{{primary-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-container { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar { background-color: '{{warn-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-container { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar { background-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before { background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before { background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }md-radio-button.md-THEME_NAME-theme .md-off { border-color: '{{foreground-2}}'; }md-radio-button.md-THEME_NAME-theme .md-on { background-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-off { border-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple { color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme .md-container .md-ripple { color: '{{accent-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on { background-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off { border-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple { color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple { color: '{{primary-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on { background-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off { border-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple { color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple { color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] { color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off { border-color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on { border-color: '{{foreground-3}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before { background-color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before { background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before { background-color: '{{warn-color-0.26}}'; }md-sidenav.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label { color: '{{warn-500}}' !important; border-bottom-color: '{{warn-500}}' !important; }md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label { border-bottom-color: '{{primary-color}}'; color: '{{ foreground-1 }}'; } md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder { color: '{{ foreground-1 }}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label { border-bottom-color: '{{accent-color}}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label { border-bottom-color: '{{warn-color}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-label { color: '{{foreground-3}}'; } md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder { color: '{{foreground-3}}'; }md-select.md-THEME_NAME-theme .md-select-label { border-bottom-color: '{{foreground-4}}'; } md-select.md-THEME_NAME-theme .md-select-label.md-placeholder { color: '{{foreground-2}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup { color: '{{foreground-2}}'; } md-select-menu.md-THEME_NAME-theme md-optgroup md-option { color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] { color: '{{primary-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected]:focus { color: '{{primary-600}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent { color: '{{accent-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus { color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) { background: '{{background-200}}'; }md-slider.md-THEME_NAME-theme .md-track { background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks { background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb { background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring { border-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb { border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track.md-track-fill { background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb:after { border-color: '{{accent-color}}'; background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-sign { background-color: '{{accent-color}}'; } md-slider.md-THEME_NAME-theme .md-sign:after { border-top-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb-text { color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill { background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after { border-color: '{{warn-color}}'; background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-sign { background-color: '{{warn-color}}'; } md-slider.md-THEME_NAME-theme.md-warn .md-sign:after { border-top-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text { color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill { background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after { border-color: '{{primary-color}}'; background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-sign { background-color: '{{primary-color}}'; } md-slider.md-THEME_NAME-theme.md-primary .md-sign:after { border-top-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text { color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after { border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after { background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme { color: '{{ foreground-2-0.23 }}'; background-color: '{{background-color}}'; } .md-subheader.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } .md-subheader.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } .md-subheader.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme .md-thumb { background-color: '{{background-50}}'; }md-switch.md-THEME_NAME-theme .md-bar { background-color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-thumb { background-color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-bar { background-color: '{{accent-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before { background-color: '{{accent-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb { background-color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar { background-color: '{{primary-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before { background-color: '{{primary-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb { background-color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar { background-color: '{{warn-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before { background-color: '{{warn-color-0.26}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-thumb { background-color: '{{background-400}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-bar { background-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: transparent; border-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme .md-paginator md-icon { color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{accent-color}}'; background: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme .md-tab { color: '{{foreground-2}}'; } md-tabs.md-THEME_NAME-theme .md-tab[disabled] { color: '{{foreground-3}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused { color: '{{primary-color}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-focused { background: '{{primary-color-0.1}}'; } md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container { color: '{{accent-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper { background-color: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper { background-color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper { background-color: '{{warn-color}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{primary-color}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{accent-color}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{warn-color}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toast.md-THEME_NAME-theme { background-color: #323232; color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button { color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight { color: '{{primary-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent { color: '{{accent-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn { color: '{{warn-A200}}'; }md-toolbar.md-THEME_NAME-theme { background-color: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme md-icon { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme .md-button { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-accent { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-warn { background-color: '{{warn-color}}'; color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme { color: '{{background-A100}}'; } md-tooltip.md-THEME_NAME-theme .md-background { background-color: '{{foreground-2}}'; }");
-})();
-
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.min.css
deleted file mode 100644
index 51b5b9a1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */[layout]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[layout-padding]>[flex-lt-md],[layout-padding]>[flex-sm]{padding:4px}[layout-padding],[layout-padding]>[flex-gt-sm],[layout-padding]>[flex-lt-lg],[layout-padding]>[flex-md],[layout-padding]>[flex]{padding:8px}[layout-padding]>[flex-gt-md],[layout-padding]>[flex-lg]{padding:16px}[layout-margin]>[flex-lt-md],[layout-margin]>[flex-sm]{margin:4px}[layout-margin],[layout-margin]>[flex-gt-sm],[layout-margin]>[flex-lt-lg],[layout-margin]>[flex-md],[layout-margin]>[flex]{margin:8px}[layout-margin]>[flex-gt-md],[layout-margin]>[flex-lg]{margin:16px}[layout-wrap]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}[layout-fill]{margin:0;min-height:100%;width:100%}@-moz-document url-prefix(){[layout-fill]{margin:0;width:100%;min-height:auto;height:inherit}}[flex]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex="0"]{max-width:0}[layout=column]>[flex="0"]{max-height:0}[flex="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex="5"]{max-width:5%}[layout=column]>[flex="5"]{max-height:5%}[flex="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex="10"]{max-width:10%}[layout=column]>[flex="10"]{max-height:10%}[flex="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex="15"]{max-width:15%}[layout=column]>[flex="15"]{max-height:15%}[flex="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex="20"]{max-width:20%}[layout=column]>[flex="20"]{max-height:20%}[flex="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex="25"]{max-width:25%}[layout=column]>[flex="25"]{max-height:25%}[flex="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex="30"]{max-width:30%}[layout=column]>[flex="30"]{max-height:30%}[flex="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex="35"]{max-width:35%}[layout=column]>[flex="35"]{max-height:35%}[flex="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex="40"]{max-width:40%}[layout=column]>[flex="40"]{max-height:40%}[flex="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex="45"]{max-width:45%}[layout=column]>[flex="45"]{max-height:45%}[flex="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex="50"]{max-width:50%}[layout=column]>[flex="50"]{max-height:50%}[flex="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex="55"]{max-width:55%}[layout=column]>[flex="55"]{max-height:55%}[flex="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex="60"]{max-width:60%}[layout=column]>[flex="60"]{max-height:60%}[flex="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex="65"]{max-width:65%}[layout=column]>[flex="65"]{max-height:65%}[flex="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex="70"]{max-width:70%}[layout=column]>[flex="70"]{max-height:70%}[flex="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex="75"]{max-width:75%}[layout=column]>[flex="75"]{max-height:75%}[flex="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex="80"]{max-width:80%}[layout=column]>[flex="80"]{max-height:80%}[flex="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex="85"]{max-width:85%}[layout=column]>[flex="85"]{max-height:85%}[flex="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex="90"]{max-width:90%}[layout=column]>[flex="90"]{max-height:90%}[flex="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex="95"]{max-width:95%}[layout=column]>[flex="95"]{max-height:95%}[flex="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex="100"]{max-width:100%}[layout=column]>[flex="100"]{max-height:100%}[flex="33"],[flex="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex="66"],[flex="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex="33"],[layout=row]>[flex="34"]{max-width:33.33%}[layout=row]>[flex="66"],[layout=row]>[flex="67"]{max-width:66.66%}[layout=column]>[flex="33"],[layout=column]>[flex="34"]{max-height:33.33%}[layout=column]>[flex="66"],[layout=column]>[flex="67"]{max-height:66.66%}[layout-align=center],[layout-align="center center"],[layout-align="center start"],[layout-align="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align=end],[layout-align="end center"],[layout-align="end start"],[layout-align="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align=space-around],[layout-align="space-around center"],[layout-align="space-around start"],[layout-align="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align=space-between],[layout-align="space-between center"],[layout-align="space-between start"],[layout-align="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align="center center"],[layout-align="end center"],[layout-align="space-around center"],[layout-align="space-between center"],[layout-align="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align="center start"],[layout-align="end start"],[layout-align="space-around start"],[layout-align="space-between start"],[layout-align="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align="center end"],[layout-align="end end"],[layout-align="space-around end"],[layout-align="space-between end"],[layout-align="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[flex-order="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[offset="5"]{margin-left:5%}[offset="10"]{margin-left:10%}[offset="15"]{margin-left:15%}[offset="20"]{margin-left:20%}[offset="25"]{margin-left:25%}[offset="30"]{margin-left:30%}[offset="35"]{margin-left:35%}[offset="40"]{margin-left:40%}[offset="45"]{margin-left:45%}[offset="50"]{margin-left:50%}[offset="55"]{margin-left:55%}[offset="60"]{margin-left:60%}[offset="65"]{margin-left:65%}[offset="70"]{margin-left:70%}[offset="75"]{margin-left:75%}[offset="80"]{margin-left:80%}[offset="85"]{margin-left:85%}[offset="90"]{margin-left:90%}[offset="95"]{margin-left:95%}[offset="33"],[offset="34"]{margin-left:33.33%}[offset="66"],[offset="67"]{margin-left:66.66%}@media (max-width:599px){[hide-sm]:not([show-sm]):not([show]),[hide]:not([show-sm]):not([show]){display:none}[flex-order-sm="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-sm="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-sm="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-sm="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-sm="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-sm="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-sm="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-sm="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-sm="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-sm="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-sm=center],[layout-align-sm="center center"],[layout-align-sm="center start"],[layout-align-sm="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-sm=end],[layout-align-sm="end center"],[layout-align-sm="end start"],[layout-align-sm="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-sm=space-around],[layout-align-sm="space-around center"],[layout-align-sm="space-around start"],[layout-align-sm="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-sm=space-between],[layout-align-sm="space-between center"],[layout-align-sm="space-between start"],[layout-align-sm="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-sm="center center"],[layout-align-sm="end center"],[layout-align-sm="space-around center"],[layout-align-sm="space-between center"],[layout-align-sm="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-sm="center start"],[layout-align-sm="end start"],[layout-align-sm="space-around start"],[layout-align-sm="space-between start"],[layout-align-sm="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-sm="center end"],[layout-align-sm="end end"],[layout-align-sm="space-around end"],[layout-align-sm="space-between end"],[layout-align-sm="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-sm]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-sm=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-sm=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-sm="5"]{margin-left:5%}[offset-sm="10"]{margin-left:10%}[offset-sm="15"]{margin-left:15%}[offset-sm="20"]{margin-left:20%}[offset-sm="25"]{margin-left:25%}[offset-sm="30"]{margin-left:30%}[offset-sm="35"]{margin-left:35%}[offset-sm="40"]{margin-left:40%}[offset-sm="45"]{margin-left:45%}[offset-sm="50"]{margin-left:50%}[offset-sm="55"]{margin-left:55%}[offset-sm="60"]{margin-left:60%}[offset-sm="65"]{margin-left:65%}[offset-sm="70"]{margin-left:70%}[offset-sm="75"]{margin-left:75%}[offset-sm="80"]{margin-left:80%}[offset-sm="85"]{margin-left:85%}[offset-sm="90"]{margin-left:90%}[offset-sm="95"]{margin-left:95%}[offset-sm="33"],[offset-sm="34"]{margin-left:33.33%}[offset-sm="66"],[offset-sm="67"]{margin-left:66.66%}[flex-sm]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-sm="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-sm="0"]{max-width:0}[layout=column]>[flex-sm="0"]{max-height:0}[flex-sm="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-sm="5"]{max-width:5%}[layout=column]>[flex-sm="5"]{max-height:5%}[flex-sm="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-sm="10"]{max-width:10%}[layout=column]>[flex-sm="10"]{max-height:10%}[flex-sm="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-sm="15"]{max-width:15%}[layout=column]>[flex-sm="15"]{max-height:15%}[flex-sm="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-sm="20"]{max-width:20%}[layout=column]>[flex-sm="20"]{max-height:20%}[flex-sm="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-sm="25"]{max-width:25%}[layout=column]>[flex-sm="25"]{max-height:25%}[flex-sm="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-sm="30"]{max-width:30%}[layout=column]>[flex-sm="30"]{max-height:30%}[flex-sm="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-sm="35"]{max-width:35%}[layout=column]>[flex-sm="35"]{max-height:35%}[flex-sm="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-sm="40"]{max-width:40%}[layout=column]>[flex-sm="40"]{max-height:40%}[flex-sm="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-sm="45"]{max-width:45%}[layout=column]>[flex-sm="45"]{max-height:45%}[flex-sm="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-sm="50"]{max-width:50%}[layout=column]>[flex-sm="50"]{max-height:50%}[flex-sm="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-sm="55"]{max-width:55%}[layout=column]>[flex-sm="55"]{max-height:55%}[flex-sm="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-sm="60"]{max-width:60%}[layout=column]>[flex-sm="60"]{max-height:60%}[flex-sm="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-sm="65"]{max-width:65%}[layout=column]>[flex-sm="65"]{max-height:65%}[flex-sm="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-sm="70"]{max-width:70%}[layout=column]>[flex-sm="70"]{max-height:70%}[flex-sm="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-sm="75"]{max-width:75%}[layout=column]>[flex-sm="75"]{max-height:75%}[flex-sm="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-sm="80"]{max-width:80%}[layout=column]>[flex-sm="80"]{max-height:80%}[flex-sm="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-sm="85"]{max-width:85%}[layout=column]>[flex-sm="85"]{max-height:85%}[flex-sm="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-sm="90"]{max-width:90%}[layout=column]>[flex-sm="90"]{max-height:90%}[flex-sm="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-sm="95"]{max-width:95%}[layout=column]>[flex-sm="95"]{max-height:95%}[flex-sm="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-sm="100"]{max-width:100%}[layout=column]>[flex-sm="100"]{max-height:100%}[flex-sm="33"],[flex-sm="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-sm="66"],[flex-sm="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-sm="33"],[layout=row]>[flex-sm="34"]{max-width:33.33%}[layout=row]>[flex-sm="66"],[layout=row]>[flex-sm="67"]{max-width:66.66%}[layout=column]>[flex-sm="33"],[layout=column]>[flex-sm="34"]{max-height:33.33%}[layout=column]>[flex-sm="66"],[layout=column]>[flex-sm="67"]{max-height:66.66%}}@media (min-width:600px){[flex-order-gt-sm="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-gt-sm="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-gt-sm="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-gt-sm="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-gt-sm="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-gt-sm="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-gt-sm="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-gt-sm="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-gt-sm="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-gt-sm="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-gt-sm=center],[layout-align-gt-sm="center center"],[layout-align-gt-sm="center start"],[layout-align-gt-sm="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-gt-sm=end],[layout-align-gt-sm="end center"],[layout-align-gt-sm="end start"],[layout-align-gt-sm="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-gt-sm=space-around],[layout-align-gt-sm="space-around center"],[layout-align-gt-sm="space-around start"],[layout-align-gt-sm="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-gt-sm=space-between],[layout-align-gt-sm="space-between center"],[layout-align-gt-sm="space-between start"],[layout-align-gt-sm="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-gt-sm="center center"],[layout-align-gt-sm="end center"],[layout-align-gt-sm="space-around center"],[layout-align-gt-sm="space-between center"],[layout-align-gt-sm="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-gt-sm="center start"],[layout-align-gt-sm="end start"],[layout-align-gt-sm="space-around start"],[layout-align-gt-sm="space-between start"],[layout-align-gt-sm="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-gt-sm="center end"],[layout-align-gt-sm="end end"],[layout-align-gt-sm="space-around end"],[layout-align-gt-sm="space-between end"],[layout-align-gt-sm="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-gt-sm]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-gt-sm=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-gt-sm=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-gt-sm="5"]{margin-left:5%}[offset-gt-sm="10"]{margin-left:10%}[offset-gt-sm="15"]{margin-left:15%}[offset-gt-sm="20"]{margin-left:20%}[offset-gt-sm="25"]{margin-left:25%}[offset-gt-sm="30"]{margin-left:30%}[offset-gt-sm="35"]{margin-left:35%}[offset-gt-sm="40"]{margin-left:40%}[offset-gt-sm="45"]{margin-left:45%}[offset-gt-sm="50"]{margin-left:50%}[offset-gt-sm="55"]{margin-left:55%}[offset-gt-sm="60"]{margin-left:60%}[offset-gt-sm="65"]{margin-left:65%}[offset-gt-sm="70"]{margin-left:70%}[offset-gt-sm="75"]{margin-left:75%}[offset-gt-sm="80"]{margin-left:80%}[offset-gt-sm="85"]{margin-left:85%}[offset-gt-sm="90"]{margin-left:90%}[offset-gt-sm="95"]{margin-left:95%}[offset-gt-sm="33"],[offset-gt-sm="34"]{margin-left:33.33%}[offset-gt-sm="66"],[offset-gt-sm="67"]{margin-left:66.66%}[flex-gt-sm]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-gt-sm="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-gt-sm="0"]{max-width:0}[layout=column]>[flex-gt-sm="0"]{max-height:0}[flex-gt-sm="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-gt-sm="5"]{max-width:5%}[layout=column]>[flex-gt-sm="5"]{max-height:5%}[flex-gt-sm="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-gt-sm="10"]{max-width:10%}[layout=column]>[flex-gt-sm="10"]{max-height:10%}[flex-gt-sm="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-gt-sm="15"]{max-width:15%}[layout=column]>[flex-gt-sm="15"]{max-height:15%}[flex-gt-sm="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-gt-sm="20"]{max-width:20%}[layout=column]>[flex-gt-sm="20"]{max-height:20%}[flex-gt-sm="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-gt-sm="25"]{max-width:25%}[layout=column]>[flex-gt-sm="25"]{max-height:25%}[flex-gt-sm="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-gt-sm="30"]{max-width:30%}[layout=column]>[flex-gt-sm="30"]{max-height:30%}[flex-gt-sm="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-gt-sm="35"]{max-width:35%}[layout=column]>[flex-gt-sm="35"]{max-height:35%}[flex-gt-sm="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-gt-sm="40"]{max-width:40%}[layout=column]>[flex-gt-sm="40"]{max-height:40%}[flex-gt-sm="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-gt-sm="45"]{max-width:45%}[layout=column]>[flex-gt-sm="45"]{max-height:45%}[flex-gt-sm="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-gt-sm="50"]{max-width:50%}[layout=column]>[flex-gt-sm="50"]{max-height:50%}[flex-gt-sm="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-gt-sm="55"]{max-width:55%}[layout=column]>[flex-gt-sm="55"]{max-height:55%}[flex-gt-sm="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-gt-sm="60"]{max-width:60%}[layout=column]>[flex-gt-sm="60"]{max-height:60%}[flex-gt-sm="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-gt-sm="65"]{max-width:65%}[layout=column]>[flex-gt-sm="65"]{max-height:65%}[flex-gt-sm="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-gt-sm="70"]{max-width:70%}[layout=column]>[flex-gt-sm="70"]{max-height:70%}[flex-gt-sm="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-gt-sm="75"]{max-width:75%}[layout=column]>[flex-gt-sm="75"]{max-height:75%}[flex-gt-sm="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-gt-sm="80"]{max-width:80%}[layout=column]>[flex-gt-sm="80"]{max-height:80%}[flex-gt-sm="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-gt-sm="85"]{max-width:85%}[layout=column]>[flex-gt-sm="85"]{max-height:85%}[flex-gt-sm="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-gt-sm="90"]{max-width:90%}[layout=column]>[flex-gt-sm="90"]{max-height:90%}[flex-gt-sm="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-gt-sm="95"]{max-width:95%}[layout=column]>[flex-gt-sm="95"]{max-height:95%}[flex-gt-sm="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-gt-sm="100"]{max-width:100%}[layout=column]>[flex-gt-sm="100"]{max-height:100%}[flex-gt-sm="33"],[flex-gt-sm="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-gt-sm="66"],[flex-gt-sm="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-gt-sm="33"],[layout=row]>[flex-gt-sm="34"]{max-width:33.33%}[layout=row]>[flex-gt-sm="66"],[layout=row]>[flex-gt-sm="67"]{max-width:66.66%}[layout=column]>[flex-gt-sm="33"],[layout=column]>[flex-gt-sm="34"]{max-height:33.33%}[layout=column]>[flex-gt-sm="66"],[layout=column]>[flex-gt-sm="67"]{max-height:66.66%}}@media (min-width:600px) and (max-width:959px){[hide-gt-sm]:not([show-gt-sm]):not([show-md]):not([show]),[hide-md]:not([show-md]):not([show]),[hide]:not([show-gt-sm]):not([show-md]):not([show]){display:none}[flex-order-md="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-md="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-md="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-md="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-md="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-md="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-md="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-md="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-md="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-md="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-md=center],[layout-align-md="center center"],[layout-align-md="center start"],[layout-align-md="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-md=end],[layout-align-md="end center"],[layout-align-md="end start"],[layout-align-md="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-md=space-around],[layout-align-md="space-around center"],[layout-align-md="space-around start"],[layout-align-md="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-md=space-between],[layout-align-md="space-between center"],[layout-align-md="space-between start"],[layout-align-md="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-md="center center"],[layout-align-md="end center"],[layout-align-md="space-around center"],[layout-align-md="space-between center"],[layout-align-md="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-md="center start"],[layout-align-md="end start"],[layout-align-md="space-around start"],[layout-align-md="space-between start"],[layout-align-md="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-md="center end"],[layout-align-md="end end"],[layout-align-md="space-around end"],[layout-align-md="space-between end"],[layout-align-md="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-md]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-md=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-md=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-md="5"]{margin-left:5%}[offset-md="10"]{margin-left:10%}[offset-md="15"]{margin-left:15%}[offset-md="20"]{margin-left:20%}[offset-md="25"]{margin-left:25%}[offset-md="30"]{margin-left:30%}[offset-md="35"]{margin-left:35%}[offset-md="40"]{margin-left:40%}[offset-md="45"]{margin-left:45%}[offset-md="50"]{margin-left:50%}[offset-md="55"]{margin-left:55%}[offset-md="60"]{margin-left:60%}[offset-md="65"]{margin-left:65%}[offset-md="70"]{margin-left:70%}[offset-md="75"]{margin-left:75%}[offset-md="80"]{margin-left:80%}[offset-md="85"]{margin-left:85%}[offset-md="90"]{margin-left:90%}[offset-md="95"]{margin-left:95%}[offset-md="33"],[offset-md="34"]{margin-left:33.33%}[offset-md="66"],[offset-md="67"]{margin-left:66.66%}[flex-md]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-md="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-md="0"]{max-width:0}[layout=column]>[flex-md="0"]{max-height:0}[flex-md="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-md="5"]{max-width:5%}[layout=column]>[flex-md="5"]{max-height:5%}[flex-md="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-md="10"]{max-width:10%}[layout=column]>[flex-md="10"]{max-height:10%}[flex-md="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-md="15"]{max-width:15%}[layout=column]>[flex-md="15"]{max-height:15%}[flex-md="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-md="20"]{max-width:20%}[layout=column]>[flex-md="20"]{max-height:20%}[flex-md="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-md="25"]{max-width:25%}[layout=column]>[flex-md="25"]{max-height:25%}[flex-md="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-md="30"]{max-width:30%}[layout=column]>[flex-md="30"]{max-height:30%}[flex-md="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-md="35"]{max-width:35%}[layout=column]>[flex-md="35"]{max-height:35%}[flex-md="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-md="40"]{max-width:40%}[layout=column]>[flex-md="40"]{max-height:40%}[flex-md="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-md="45"]{max-width:45%}[layout=column]>[flex-md="45"]{max-height:45%}[flex-md="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-md="50"]{max-width:50%}[layout=column]>[flex-md="50"]{max-height:50%}[flex-md="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-md="55"]{max-width:55%}[layout=column]>[flex-md="55"]{max-height:55%}[flex-md="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-md="60"]{max-width:60%}[layout=column]>[flex-md="60"]{max-height:60%}[flex-md="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-md="65"]{max-width:65%}[layout=column]>[flex-md="65"]{max-height:65%}[flex-md="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-md="70"]{max-width:70%}[layout=column]>[flex-md="70"]{max-height:70%}[flex-md="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-md="75"]{max-width:75%}[layout=column]>[flex-md="75"]{max-height:75%}[flex-md="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-md="80"]{max-width:80%}[layout=column]>[flex-md="80"]{max-height:80%}[flex-md="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-md="85"]{max-width:85%}[layout=column]>[flex-md="85"]{max-height:85%}[flex-md="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-md="90"]{max-width:90%}[layout=column]>[flex-md="90"]{max-height:90%}[flex-md="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-md="95"]{max-width:95%}[layout=column]>[flex-md="95"]{max-height:95%}[flex-md="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-md="100"]{max-width:100%}[layout=column]>[flex-md="100"]{max-height:100%}[flex-md="33"],[flex-md="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-md="66"],[flex-md="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-md="33"],[layout=row]>[flex-md="34"]{max-width:33.33%}[layout=row]>[flex-md="66"],[layout=row]>[flex-md="67"]{max-width:66.66%}[layout=column]>[flex-md="33"],[layout=column]>[flex-md="34"]{max-height:33.33%}[layout=column]>[flex-md="66"],[layout=column]>[flex-md="67"]{max-height:66.66%}}@media (min-width:960px){[flex-order-gt-md="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-gt-md="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-gt-md="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-gt-md="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-gt-md="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-gt-md="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-gt-md="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-gt-md="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-gt-md="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-gt-md="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-gt-md=center],[layout-align-gt-md="center center"],[layout-align-gt-md="center start"],[layout-align-gt-md="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-gt-md=end],[layout-align-gt-md="end center"],[layout-align-gt-md="end start"],[layout-align-gt-md="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-gt-md=space-around],[layout-align-gt-md="space-around center"],[layout-align-gt-md="space-around start"],[layout-align-gt-md="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-gt-md=space-between],[layout-align-gt-md="space-between center"],[layout-align-gt-md="space-between start"],[layout-align-gt-md="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-gt-md="center center"],[layout-align-gt-md="end center"],[layout-align-gt-md="space-around center"],[layout-align-gt-md="space-between center"],[layout-align-gt-md="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-gt-md="center start"],[layout-align-gt-md="end start"],[layout-align-gt-md="space-around start"],[layout-align-gt-md="space-between start"],[layout-align-gt-md="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-gt-md="center end"],[layout-align-gt-md="end end"],[layout-align-gt-md="space-around end"],[layout-align-gt-md="space-between end"],[layout-align-gt-md="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-gt-md]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-gt-md=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-gt-md=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-gt-md="5"]{margin-left:5%}[offset-gt-md="10"]{margin-left:10%}[offset-gt-md="15"]{margin-left:15%}[offset-gt-md="20"]{margin-left:20%}[offset-gt-md="25"]{margin-left:25%}[offset-gt-md="30"]{margin-left:30%}[offset-gt-md="35"]{margin-left:35%}[offset-gt-md="40"]{margin-left:40%}[offset-gt-md="45"]{margin-left:45%}[offset-gt-md="50"]{margin-left:50%}[offset-gt-md="55"]{margin-left:55%}[offset-gt-md="60"]{margin-left:60%}[offset-gt-md="65"]{margin-left:65%}[offset-gt-md="70"]{margin-left:70%}[offset-gt-md="75"]{margin-left:75%}[offset-gt-md="80"]{margin-left:80%}[offset-gt-md="85"]{margin-left:85%}[offset-gt-md="90"]{margin-left:90%}[offset-gt-md="95"]{margin-left:95%}[offset-gt-md="33"],[offset-gt-md="34"]{margin-left:33.33%}[offset-gt-md="66"],[offset-gt-md="67"]{margin-left:66.66%}[flex-gt-md]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-gt-md="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-gt-md="0"]{max-width:0}[layout=column]>[flex-gt-md="0"]{max-height:0}[flex-gt-md="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-gt-md="5"]{max-width:5%}[layout=column]>[flex-gt-md="5"]{max-height:5%}[flex-gt-md="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-gt-md="10"]{max-width:10%}[layout=column]>[flex-gt-md="10"]{max-height:10%}[flex-gt-md="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-gt-md="15"]{max-width:15%}[layout=column]>[flex-gt-md="15"]{max-height:15%}[flex-gt-md="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-gt-md="20"]{max-width:20%}[layout=column]>[flex-gt-md="20"]{max-height:20%}[flex-gt-md="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-gt-md="25"]{max-width:25%}[layout=column]>[flex-gt-md="25"]{max-height:25%}[flex-gt-md="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-gt-md="30"]{max-width:30%}[layout=column]>[flex-gt-md="30"]{max-height:30%}[flex-gt-md="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-gt-md="35"]{max-width:35%}[layout=column]>[flex-gt-md="35"]{max-height:35%}[flex-gt-md="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-gt-md="40"]{max-width:40%}[layout=column]>[flex-gt-md="40"]{max-height:40%}[flex-gt-md="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-gt-md="45"]{max-width:45%}[layout=column]>[flex-gt-md="45"]{max-height:45%}[flex-gt-md="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-gt-md="50"]{max-width:50%}[layout=column]>[flex-gt-md="50"]{max-height:50%}[flex-gt-md="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-gt-md="55"]{max-width:55%}[layout=column]>[flex-gt-md="55"]{max-height:55%}[flex-gt-md="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-gt-md="60"]{max-width:60%}[layout=column]>[flex-gt-md="60"]{max-height:60%}[flex-gt-md="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-gt-md="65"]{max-width:65%}[layout=column]>[flex-gt-md="65"]{max-height:65%}[flex-gt-md="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-gt-md="70"]{max-width:70%}[layout=column]>[flex-gt-md="70"]{max-height:70%}[flex-gt-md="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-gt-md="75"]{max-width:75%}[layout=column]>[flex-gt-md="75"]{max-height:75%}[flex-gt-md="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-gt-md="80"]{max-width:80%}[layout=column]>[flex-gt-md="80"]{max-height:80%}[flex-gt-md="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-gt-md="85"]{max-width:85%}[layout=column]>[flex-gt-md="85"]{max-height:85%}[flex-gt-md="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-gt-md="90"]{max-width:90%}[layout=column]>[flex-gt-md="90"]{max-height:90%}[flex-gt-md="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-gt-md="95"]{max-width:95%}[layout=column]>[flex-gt-md="95"]{max-height:95%}[flex-gt-md="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-gt-md="100"]{max-width:100%}[layout=column]>[flex-gt-md="100"]{max-height:100%}[flex-gt-md="33"],[flex-gt-md="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-gt-md="66"],[flex-gt-md="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-gt-md="33"],[layout=row]>[flex-gt-md="34"]{max-width:33.33%}[layout=row]>[flex-gt-md="66"],[layout=row]>[flex-gt-md="67"]{max-width:66.66%}[layout=column]>[flex-gt-md="33"],[layout=column]>[flex-gt-md="34"]{max-height:33.33%}[layout=column]>[flex-gt-md="66"],[layout=column]>[flex-gt-md="67"]{max-height:66.66%}}@media (min-width:960px) and (max-width:1199px){[hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]),[hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]),[hide-lg]:not([show-lg]):not([show]),[hide]:not([show-gt-sm]):not([show-gt-md]):not([show-lg]):not([show]){display:none}[flex-order-lg="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-lg="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-lg="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-lg="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-lg="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-lg="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-lg="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-lg="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-lg="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-lg="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-lg=center],[layout-align-lg="center center"],[layout-align-lg="center start"],[layout-align-lg="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-lg=end],[layout-align-lg="end center"],[layout-align-lg="end start"],[layout-align-lg="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-lg=space-around],[layout-align-lg="space-around center"],[layout-align-lg="space-around start"],[layout-align-lg="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-lg=space-between],[layout-align-lg="space-between center"],[layout-align-lg="space-between start"],[layout-align-lg="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-lg="center center"],[layout-align-lg="end center"],[layout-align-lg="space-around center"],[layout-align-lg="space-between center"],[layout-align-lg="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-lg="center start"],[layout-align-lg="end start"],[layout-align-lg="space-around start"],[layout-align-lg="space-between start"],[layout-align-lg="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-lg="center end"],[layout-align-lg="end end"],[layout-align-lg="space-around end"],[layout-align-lg="space-between end"],[layout-align-lg="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-lg]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-lg=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-lg=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-lg="5"]{margin-left:5%}[offset-lg="10"]{margin-left:10%}[offset-lg="15"]{margin-left:15%}[offset-lg="20"]{margin-left:20%}[offset-lg="25"]{margin-left:25%}[offset-lg="30"]{margin-left:30%}[offset-lg="35"]{margin-left:35%}[offset-lg="40"]{margin-left:40%}[offset-lg="45"]{margin-left:45%}[offset-lg="50"]{margin-left:50%}[offset-lg="55"]{margin-left:55%}[offset-lg="60"]{margin-left:60%}[offset-lg="65"]{margin-left:65%}[offset-lg="70"]{margin-left:70%}[offset-lg="75"]{margin-left:75%}[offset-lg="80"]{margin-left:80%}[offset-lg="85"]{margin-left:85%}[offset-lg="90"]{margin-left:90%}[offset-lg="95"]{margin-left:95%}[offset-lg="33"],[offset-lg="34"]{margin-left:33.33%}[offset-lg="66"],[offset-lg="67"]{margin-left:66.66%}[flex-lg]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-lg="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-lg="0"]{max-width:0}[layout=column]>[flex-lg="0"]{max-height:0}[flex-lg="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-lg="5"]{max-width:5%}[layout=column]>[flex-lg="5"]{max-height:5%}[flex-lg="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-lg="10"]{max-width:10%}[layout=column]>[flex-lg="10"]{max-height:10%}[flex-lg="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-lg="15"]{max-width:15%}[layout=column]>[flex-lg="15"]{max-height:15%}[flex-lg="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-lg="20"]{max-width:20%}[layout=column]>[flex-lg="20"]{max-height:20%}[flex-lg="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-lg="25"]{max-width:25%}[layout=column]>[flex-lg="25"]{max-height:25%}[flex-lg="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-lg="30"]{max-width:30%}[layout=column]>[flex-lg="30"]{max-height:30%}[flex-lg="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-lg="35"]{max-width:35%}[layout=column]>[flex-lg="35"]{max-height:35%}[flex-lg="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-lg="40"]{max-width:40%}[layout=column]>[flex-lg="40"]{max-height:40%}[flex-lg="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-lg="45"]{max-width:45%}[layout=column]>[flex-lg="45"]{max-height:45%}[flex-lg="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-lg="50"]{max-width:50%}[layout=column]>[flex-lg="50"]{max-height:50%}[flex-lg="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-lg="55"]{max-width:55%}[layout=column]>[flex-lg="55"]{max-height:55%}[flex-lg="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-lg="60"]{max-width:60%}[layout=column]>[flex-lg="60"]{max-height:60%}[flex-lg="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-lg="65"]{max-width:65%}[layout=column]>[flex-lg="65"]{max-height:65%}[flex-lg="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-lg="70"]{max-width:70%}[layout=column]>[flex-lg="70"]{max-height:70%}[flex-lg="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-lg="75"]{max-width:75%}[layout=column]>[flex-lg="75"]{max-height:75%}[flex-lg="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-lg="80"]{max-width:80%}[layout=column]>[flex-lg="80"]{max-height:80%}[flex-lg="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-lg="85"]{max-width:85%}[layout=column]>[flex-lg="85"]{max-height:85%}[flex-lg="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-lg="90"]{max-width:90%}[layout=column]>[flex-lg="90"]{max-height:90%}[flex-lg="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-lg="95"]{max-width:95%}[layout=column]>[flex-lg="95"]{max-height:95%}[flex-lg="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-lg="100"]{max-width:100%}[layout=column]>[flex-lg="100"]{max-height:100%}[flex-lg="33"],[flex-lg="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-lg="66"],[flex-lg="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-lg="33"],[layout=row]>[flex-lg="34"]{max-width:33.33%}[layout=row]>[flex-lg="66"],[layout=row]>[flex-lg="67"]{max-width:66.66%}[layout=column]>[flex-lg="33"],[layout=column]>[flex-lg="34"]{max-height:33.33%}[layout=column]>[flex-lg="66"],[layout=column]>[flex-lg="67"]{max-height:66.66%}}@media (min-width:1200px){[hide-gt-lg]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]),[hide-gt-md]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]),[hide-gt-sm]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]),[hide]:not([show-gt-sm]):not([show-gt-md]):not([show-gt-lg]):not([show]){display:none}[flex-order-gt-lg="0"]{-webkit-order:0;-ms-flex-order:0;order:0}[flex-order-gt-lg="1"]{-webkit-order:1;-ms-flex-order:1;order:1}[flex-order-gt-lg="2"]{-webkit-order:2;-ms-flex-order:2;order:2}[flex-order-gt-lg="3"]{-webkit-order:3;-ms-flex-order:3;order:3}[flex-order-gt-lg="4"]{-webkit-order:4;-ms-flex-order:4;order:4}[flex-order-gt-lg="5"]{-webkit-order:5;-ms-flex-order:5;order:5}[flex-order-gt-lg="6"]{-webkit-order:6;-ms-flex-order:6;order:6}[flex-order-gt-lg="7"]{-webkit-order:7;-ms-flex-order:7;order:7}[flex-order-gt-lg="8"]{-webkit-order:8;-ms-flex-order:8;order:8}[flex-order-gt-lg="9"]{-webkit-order:9;-ms-flex-order:9;order:9}[layout-align-gt-lg=center],[layout-align-gt-lg="center center"],[layout-align-gt-lg="center start"],[layout-align-gt-lg="center end"]{-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[layout-align-gt-lg=end],[layout-align-gt-lg="end center"],[layout-align-gt-lg="end start"],[layout-align-gt-lg="end end"]{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}[layout-align-gt-lg=space-around],[layout-align-gt-lg="space-around center"],[layout-align-gt-lg="space-around start"],[layout-align-gt-lg="space-around end"]{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}[layout-align-gt-lg=space-between],[layout-align-gt-lg="space-between center"],[layout-align-gt-lg="space-between start"],[layout-align-gt-lg="space-between end"]{-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}[layout-align-gt-lg="center center"],[layout-align-gt-lg="end center"],[layout-align-gt-lg="space-around center"],[layout-align-gt-lg="space-between center"],[layout-align-gt-lg="start center"]{-webkit-align-items:center;-ms-flex-align:center;align-items:center}[layout-align-gt-lg="center start"],[layout-align-gt-lg="end start"],[layout-align-gt-lg="space-around start"],[layout-align-gt-lg="space-between start"],[layout-align-gt-lg="start start"]{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}[layout-align-gt-lg="center end"],[layout-align-gt-lg="end end"],[layout-align-gt-lg="space-around end"],[layout-align-gt-lg="space-between end"],[layout-align-gt-lg="start end"]{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}[layout-gt-lg]{box-sizing:border-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}[layout-gt-lg=column]{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}[layout-gt-lg=row]{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}[offset-gt-lg="5"]{margin-left:5%}[offset-gt-lg="10"]{margin-left:10%}[offset-gt-lg="15"]{margin-left:15%}[offset-gt-lg="20"]{margin-left:20%}[offset-gt-lg="25"]{margin-left:25%}[offset-gt-lg="30"]{margin-left:30%}[offset-gt-lg="35"]{margin-left:35%}[offset-gt-lg="40"]{margin-left:40%}[offset-gt-lg="45"]{margin-left:45%}[offset-gt-lg="50"]{margin-left:50%}[offset-gt-lg="55"]{margin-left:55%}[offset-gt-lg="60"]{margin-left:60%}[offset-gt-lg="65"]{margin-left:65%}[offset-gt-lg="70"]{margin-left:70%}[offset-gt-lg="75"]{margin-left:75%}[offset-gt-lg="80"]{margin-left:80%}[offset-gt-lg="85"]{margin-left:85%}[offset-gt-lg="90"]{margin-left:90%}[offset-gt-lg="95"]{margin-left:95%}[offset-gt-lg="33"],[offset-gt-lg="34"]{margin-left:33.33%}[offset-gt-lg="66"],[offset-gt-lg="67"]{margin-left:66.66%}[flex-gt-lg]{box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1}[flex-gt-lg="0"]{-webkit-flex:0 0 0;-ms-flex:0 0 0;flex:0 0 0}[layout=row]>[flex-gt-lg="0"]{max-width:0}[layout=column]>[flex-gt-lg="0"]{max-height:0}[flex-gt-lg="5"]{-webkit-flex:0 0 5%;-ms-flex:0 0 5%;flex:0 0 5%}[layout=row]>[flex-gt-lg="5"]{max-width:5%}[layout=column]>[flex-gt-lg="5"]{max-height:5%}[flex-gt-lg="10"]{-webkit-flex:0 0 10%;-ms-flex:0 0 10%;flex:0 0 10%}[layout=row]>[flex-gt-lg="10"]{max-width:10%}[layout=column]>[flex-gt-lg="10"]{max-height:10%}[flex-gt-lg="15"]{-webkit-flex:0 0 15%;-ms-flex:0 0 15%;flex:0 0 15%}[layout=row]>[flex-gt-lg="15"]{max-width:15%}[layout=column]>[flex-gt-lg="15"]{max-height:15%}[flex-gt-lg="20"]{-webkit-flex:0 0 20%;-ms-flex:0 0 20%;flex:0 0 20%}[layout=row]>[flex-gt-lg="20"]{max-width:20%}[layout=column]>[flex-gt-lg="20"]{max-height:20%}[flex-gt-lg="25"]{-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%}[layout=row]>[flex-gt-lg="25"]{max-width:25%}[layout=column]>[flex-gt-lg="25"]{max-height:25%}[flex-gt-lg="30"]{-webkit-flex:0 0 30%;-ms-flex:0 0 30%;flex:0 0 30%}[layout=row]>[flex-gt-lg="30"]{max-width:30%}[layout=column]>[flex-gt-lg="30"]{max-height:30%}[flex-gt-lg="35"]{-webkit-flex:0 0 35%;-ms-flex:0 0 35%;flex:0 0 35%}[layout=row]>[flex-gt-lg="35"]{max-width:35%}[layout=column]>[flex-gt-lg="35"]{max-height:35%}[flex-gt-lg="40"]{-webkit-flex:0 0 40%;-ms-flex:0 0 40%;flex:0 0 40%}[layout=row]>[flex-gt-lg="40"]{max-width:40%}[layout=column]>[flex-gt-lg="40"]{max-height:40%}[flex-gt-lg="45"]{-webkit-flex:0 0 45%;-ms-flex:0 0 45%;flex:0 0 45%}[layout=row]>[flex-gt-lg="45"]{max-width:45%}[layout=column]>[flex-gt-lg="45"]{max-height:45%}[flex-gt-lg="50"]{-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%}[layout=row]>[flex-gt-lg="50"]{max-width:50%}[layout=column]>[flex-gt-lg="50"]{max-height:50%}[flex-gt-lg="55"]{-webkit-flex:0 0 55%;-ms-flex:0 0 55%;flex:0 0 55%}[layout=row]>[flex-gt-lg="55"]{max-width:55%}[layout=column]>[flex-gt-lg="55"]{max-height:55%}[flex-gt-lg="60"]{-webkit-flex:0 0 60%;-ms-flex:0 0 60%;flex:0 0 60%}[layout=row]>[flex-gt-lg="60"]{max-width:60%}[layout=column]>[flex-gt-lg="60"]{max-height:60%}[flex-gt-lg="65"]{-webkit-flex:0 0 65%;-ms-flex:0 0 65%;flex:0 0 65%}[layout=row]>[flex-gt-lg="65"]{max-width:65%}[layout=column]>[flex-gt-lg="65"]{max-height:65%}[flex-gt-lg="70"]{-webkit-flex:0 0 70%;-ms-flex:0 0 70%;flex:0 0 70%}[layout=row]>[flex-gt-lg="70"]{max-width:70%}[layout=column]>[flex-gt-lg="70"]{max-height:70%}[flex-gt-lg="75"]{-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%}[layout=row]>[flex-gt-lg="75"]{max-width:75%}[layout=column]>[flex-gt-lg="75"]{max-height:75%}[flex-gt-lg="80"]{-webkit-flex:0 0 80%;-ms-flex:0 0 80%;flex:0 0 80%}[layout=row]>[flex-gt-lg="80"]{max-width:80%}[layout=column]>[flex-gt-lg="80"]{max-height:80%}[flex-gt-lg="85"]{-webkit-flex:0 0 85%;-ms-flex:0 0 85%;flex:0 0 85%}[layout=row]>[flex-gt-lg="85"]{max-width:85%}[layout=column]>[flex-gt-lg="85"]{max-height:85%}[flex-gt-lg="90"]{-webkit-flex:0 0 90%;-ms-flex:0 0 90%;flex:0 0 90%}[layout=row]>[flex-gt-lg="90"]{max-width:90%}[layout=column]>[flex-gt-lg="90"]{max-height:90%}[flex-gt-lg="95"]{-webkit-flex:0 0 95%;-ms-flex:0 0 95%;flex:0 0 95%}[layout=row]>[flex-gt-lg="95"]{max-width:95%}[layout=column]>[flex-gt-lg="95"]{max-height:95%}[flex-gt-lg="100"]{-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%}[layout=row]>[flex-gt-lg="100"]{max-width:100%}[layout=column]>[flex-gt-lg="100"]{max-height:100%}[flex-gt-lg="33"],[flex-gt-lg="34"]{-webkit-flex:0 0 33.33%;-ms-flex:0 0 33.33%;flex:0 0 33.33%}[flex-gt-lg="66"],[flex-gt-lg="67"]{-webkit-flex:0 0 66.66%;-ms-flex:0 0 66.66%;flex:0 0 66.66%}[layout=row]>[flex-gt-lg="33"],[layout=row]>[flex-gt-lg="34"]{max-width:33.33%}[layout=row]>[flex-gt-lg="66"],[layout=row]>[flex-gt-lg="67"]{max-width:66.66%}[layout=column]>[flex-gt-lg="33"],[layout=column]>[flex-gt-lg="34"]{max-height:33.33%}[layout=column]>[flex-gt-lg="66"],[layout=column]>[flex-gt-lg="67"]{max-height:66.66%}}body,html{height:100%;color:rgba(0,0,0,.87);background:#fff;position:relative}body{margin:0;padding:0}[tabindex='-1']:focus{outline:0}.inset{padding:10px}button.md-no-style{font-weight:400;background-color:inherit;text-align:left;border:none;padding:0;margin:0}button,input,select,textarea{vertical-align:baseline}button,html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[type=button][disabled],input[type=reset][disabled],input[type=submit][disabled]{cursor:default}textarea{vertical-align:top;overflow:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box;-webkit-box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.md-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;text-transform:none;width:1px}.md-shadow{position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;pointer-events:none}.md-shadow-bottom-z-1{box-shadow:0 2px 5px 0 rgba(0,0,0,.26)}.md-shadow-bottom-z-2{box-shadow:0 4px 8px 0 rgba(0,0,0,.4)}.md-shadow-animated.md-shadow{transition:box-shadow .28s cubic-bezier(.4,0,.2,1)}.md-ripple-container{pointer-events:none;position:absolute;overflow:hidden;left:0;top:0;width:100%;height:100%;transition:all .55s cubic-bezier(.25,.8,.25,1)}.md-ripple{position:absolute;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;opacity:0;border-radius:50%}.md-ripple.md-ripple-placed{transition:left 1.8s cubic-bezier(.25,.8,.25,1),top 1.8s cubic-bezier(.25,.8,.25,1),margin 1.3s cubic-bezier(.25,.8,.25,1),border 1.3s cubic-bezier(.25,.8,.25,1),width 1.3s cubic-bezier(.25,.8,.25,1),height 1.3s cubic-bezier(.25,.8,.25,1),opacity 1.3s cubic-bezier(.25,.8,.25,1),-webkit-transform 1.3s cubic-bezier(.25,.8,.25,1);transition:left 1.8s cubic-bezier(.25,.8,.25,1),top 1.8s cubic-bezier(.25,.8,.25,1),margin 1.3s cubic-bezier(.25,.8,.25,1),border 1.3s cubic-bezier(.25,.8,.25,1),width 1.3s cubic-bezier(.25,.8,.25,1),height 1.3s cubic-bezier(.25,.8,.25,1),opacity 1.3s cubic-bezier(.25,.8,.25,1),transform 1.3s cubic-bezier(.25,.8,.25,1)}.md-ripple.md-ripple-scaled{-webkit-transform:scale(1);transform:scale(1)}.md-ripple.md-ripple-active,.md-ripple.md-ripple-full,.md-ripple.md-ripple-visible{opacity:.2}.md-padding{padding:8px}.md-margin{margin:8px}.md-scroll-mask{position:absolute;background-color:transparent}.md-scroll-mask>.md-scroll-mask-bar{display:block;position:absolute;background-color:#fafafa;right:0;top:0;bottom:0;z-index:65;box-shadow:inset 0 0 1px rgba(0,0,0,.3)}@media (min-width:600px){.md-padding{padding:16px}}body,html{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5,h6,md-card,md-list,md-select,md-toolbar,ol,p,ul{text-rendering:optimizeLegibility}.md-display-4{font-size:112px;font-weight:300;letter-spacing:-.01em;line-height:112px}.md-display-3{font-size:56px;font-weight:400;letter-spacing:-.005em;line-height:56px}.md-display-2{font-size:45px;font-weight:400;line-height:64px}.md-display-1{font-size:34px;font-weight:400;line-height:40px}.md-headline{font-size:24px;font-weight:400;line-height:32px}.md-title{font-size:20px;font-weight:500;letter-spacing:.005em}.md-subhead{font-size:16px;font-weight:400;letter-spacing:.01em;line-height:24px}.md-body-1{font-size:14px;font-weight:400;letter-spacing:.01em;line-height:20px}.md-body-2{font-size:14px;font-weight:500;letter-spacing:.01em;line-height:24px}.md-caption{font-size:12px;letter-spacing:.02em}.md-button{letter-spacing:.01em}button,html,input,select,textarea{font-family:RobotoDraft,Roboto,'Helvetica Neue',sans-serif}button,input,select,textarea{font-size:100%} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.min.js
deleted file mode 100644
index c00e5760..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/core.min.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,o){"use strict";function d(e,t){e.decorator("$$rAF",["$delegate",r]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("red").backgroundPalette("grey")}function r(e){return e.throttle=function(t){var o,d,r,n;return function(){o=arguments,n=this,r=t,d||(d=!0,e(function(){r.apply(n,o),d=!1}))}},e}function n(e,t){function o(e){return d?"webkit"+e.charAt(0).toUpperCase()+e.substring(1):e}var d=/webkit/i.test(t.vendorPrefix);return{KEY_CODE:{ENTER:13,ESCAPE:27,SPACE:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(d?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(d?" webkitAnimationEnd":""),TRANSFORM:o("transform"),TRANSFORM_ORIGIN:o("transformOrigin"),TRANSITION:o("transition"),TRANSITION_DURATION:o("transitionDuration"),ANIMATION_PLAY_STATE:o("animationPlayState"),ANIMATION_DURATION:o("animationDuration"),ANIMATION_NAME:o("animationName"),ANIMATION_TIMING:o("animationTimingFunction"),ANIMATION_DIRECTION:o("animationDirection")},MEDIA:{sm:"(max-width: 600px)","gt-sm":"(min-width: 600px)",md:"(min-width: 600px) and (max-width: 960px)","gt-md":"(min-width: 960px)",lg:"(min-width: 960px) and (max-width: 1200px)","gt-lg":"(min-width: 1200px)"},MEDIA_PRIORITY:["gt-lg","lg","gt-md","md","gt-sm","sm"]}}function m(e,o){function d(){return[].concat(M)}function r(){return M.length}function n(e){return M.length&&e>-1&&e<M.length}function m(e){return e?n(u(e)+1):!1}function a(e){return e?n(u(e)-1):!1}function c(e){return n(e)?M[e]:null}function i(e,t){return M.filter(function(o){return o[e]===t})}function l(e,o){return e?(t.isNumber(o)||(o=M.length),M.splice(o,0,e),u(e)):-1}function s(e){E(e)&&M.splice(u(e),1)}function u(e){return M.indexOf(e)}function E(e){return e&&u(e)>-1}function h(){return M.length?M[0]:null}function f(){return M.length?M[M.length-1]:null}function b(e,d,r,m){r=r||p;for(var a=u(d);;){if(!n(a))return null;var c=a+(e?-1:1),i=null;if(n(c)?i=M[c]:o&&(i=e?f():h(),c=u(i)),null===i||c===m)return null;if(r(i))return i;t.isUndefined(m)&&(m=c),a=c}}var p=function(){return!0};e&&!t.isArray(e)&&(e=Array.prototype.slice.call(e)),o=!!o;var M=e||[];return{items:d,count:r,inRange:n,contains:E,indexOf:u,itemAt:c,findBy:i,add:l,remove:s,first:h,last:f,next:t.bind(null,b,!1),previous:t.bind(null,b,!0),hasPrevious:a,hasNext:m}}function a(e,o,d){function r(e){var o=u[e];t.isUndefined(o)&&(o=u[e]=n(e));var d=h[o];return t.isUndefined(d)&&(d=m(o)),d}function n(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function m(e){var t=E[e]=d.matchMedia(e);return t.addListener(a),h[t.media]=!!t.matches}function a(e){o.$evalAsync(function(){h[e.media]=!!e.matches})}function c(e){return E[e]}function i(t,o){for(var d=0;d<e.MEDIA_PRIORITY.length;d++){var r=e.MEDIA_PRIORITY[d];if(E[u[r]].matches){var n=s(t,o+"-"+r);if(t[n])return t[n]}}return t[s(t,o)]}function l(o,d,r){var n=[];return o.forEach(function(o){var m=s(d,o);d[m]&&n.push(d.$observe(m,t.bind(void 0,r,null)));for(var a in e.MEDIA){if(m=s(d,o+"-"+a),!d[m])return;n.push(d.$observe(m,t.bind(void 0,r,a)))}}),function(){n.forEach(function(e){e()})}}function s(e,t){return f[t]||(f[t]=e.$normalize(t))}var u={},E={},h={},f={};return r.getResponsiveAttribute=i,r.getQuery=c,r.watchResponsiveAttributes=l,r}function c(e,o,d){function r(e,d,r){var n=e[0]||e;!n||n.hasAttribute(d)&&0!==n.getAttribute(d).length||c(n,d)||(r=t.isString(r)?r.trim():"",r.length?e.attr(d,r):o.warn('ARIA: Attribute "',d,'", required for accessibility, is missing on node:',n))}function n(t,o,d){e(function(){r(t,o,d())})}function m(e,t){n(e,t,function(){return a(e)})}function a(e){return e.text().trim()}function c(e,t){function o(e){var t=e.currentStyle?e.currentStyle:d.getComputedStyle(e);return"none"===t.display}var r=e.hasChildNodes(),n=!1;if(r)for(var m=e.childNodes,a=0;a<m.length;a++){var c=m[a];1===c.nodeType&&c.hasAttribute(t)&&(o(c)||(n=!0))}return n}return{expect:r,expectAsync:n,expectWithText:m}}function i(e,o,d,r,n,m){this.compile=function(a){var c=a.templateUrl,i=a.template||"",l=a.controller,s=a.controllerAs,u=a.resolve||{},E=a.locals||{},h=a.transformTemplate||t.identity,f=a.bindToController;return t.forEach(u,function(e,o){u[o]=t.isString(e)?d.get(e):d.invoke(e)}),t.extend(u,E),u.$template=c?o.get(c,{cache:m}).then(function(e){return e.data}):e.when(i),e.all(u).then(function(e){var o=h(e.$template),d=a.element||t.element("<div>").html(o.trim()).contents(),m=r(d);return{locals:e,element:d,link:function(o){if(e.$scope=o,l){var r=n(l,e,!0);f&&t.extend(r.instance,e);var a=r();d.data("$ngControllerController",a),d.children().data("$ngControllerController",a),s&&(o[s]=a)}return m(o)}}})}}function l(){}function s(o,d,r){function n(e,t,o){var d=I[t.replace(/^\$md./,"")];if(!d)throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(I).join(", "));return d.registerElement(e,o)}function m(e,d){var r=new o(e);return t.extend(r,d),I[e]=r,s}var a=navigator.userAgent||navigator.vendor||e.opera,c=a.match(/ipad|iphone|ipod/i),i=a.match(/android/i),l="undefined"!=typeof e.jQuery&&t.element===e.jQuery,s={handler:m,register:n,isHijackingClicks:(c||i)&&!l&&!O};return s.isHijackingClicks&&s.handler("click",{options:{maxDistance:6},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&this.dispatchEvent(e,"click")}}),s.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){r.cancel(this.state.timeout)},onStart:function(e,o){return this.state.registeredParent?(this.state.pos={x:o.x,y:o.y},void(this.state.timeout=r(t.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1))):this.cancel()},onMove:function(e,t){e.preventDefault();var o=this.state.pos.x-t.x,d=this.state.pos.y-t.y;Math.sqrt(o*o+d*d)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var o,d;e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(o=Math.abs(t.distanceX)>this.state.options.minDistance,d=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(o=Math.abs(t.distanceY)>this.state.options.minDistance,d=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),o?(this.state.dragPointer=f(e),p(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):d&&this.cancel())},dispatchDragMove:d.throttle(function(e){this.state.isRunning&&(p(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(p(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){if(Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance){var o="left"==t.directionX?"$md.swipeleft":"$md.swiperight";this.dispatchEvent(e,o)}}})}function u(e){this.name=e,this.state={}}function E(){function o(e,o,d){d=d||D;var r=new t.element.Event(o);r.$material=!0,r.pointer=d,r.srcEvent=e,t.extend(r,{clientX:d.x,clientY:d.y,screenX:d.x,screenY:d.y,pageX:d.x,pageY:d.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),t.element(d.target).trigger(r)}function d(t,o,d){d=d||D;var r;"click"===o?(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!0,e,t.detail,d.x,d.y,d.x,d.y,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget||null)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(o,!0,!0,{})),r.$material=!0,r.pointer=d,r.srcEvent=t,d.target.dispatchEvent(r)}var r="undefined"!=typeof e.jQuery&&t.element===e.jQuery;return u.prototype={options:{},dispatchEvent:r?o:d,onStart:t.noop,onMove:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(e,o){if(!this.state.isRunning){var d=this.getNearestParent(e.target),r=d&&d.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,r),registeredParent:d},this.onStart(e,o)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.onEnd(e,t),this.state.isRunning=!1)},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){function o(){delete e[0].$mdGesture[d.name],e.off("$destroy",o)}var d=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",o),o}},u}function h(e,o){function d(e,t){var d;for(var r in I)d=I[r],d instanceof o&&("start"===e&&d.cancel(),d[e](t,D))}function r(e){if(!D){var t=+Date.now();R&&!b(e,R)&&t-R.endTime<1500||(D=f(e),d("start",e))}}function n(e){D&&b(e,D)&&(p(e,D),d("move",e))}function m(e){D&&b(e,D)&&(p(e,D),D.endTime=+Date.now(),d("end",e),R=D,D=null)}document.contains||(document.contains=function(e){return document.body.contains(e)}),!P&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t=0===e.clientX&&0===e.clientY;t||e.$material||e.isIonicTap||(e.preventDefault(),e.stopPropagation())},!0),P=!0);var a="mousedown touchstart pointerdown",c="mousemove touchmove pointermove",i="mouseup mouseleave touchend touchcancel pointerup pointercancel";t.element(document).on(a,r).on(c,n).on(i,m).on("$$mdGestureReset",function(){R=D=null})}function f(e){var t=M(e),o={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return o.startX=o.x=t.pageX,o.startY=o.y=t.pageY,o}function b(e,t){return e&&t&&e.type.charAt(0)===t.type}function p(e,t){var o=M(e),d=t.x=o.pageX,r=t.y=o.pageY;t.distanceX=d-t.startX,t.distanceY=r-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX>0?"right":t.distanceX<0?"left":"",t.directionY=t.distanceY>0?"up":t.distanceY<0?"down":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function M(e){return e=e.originalEvent||e,e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function g(){function e(e){function o(e){return c.optionsFactory=e.options,c.methods=(e.methods||[]).concat(m),i}function d(e,t){return a[e]=t,i}function r(t,o){if(o=o||{},o.methods=o.methods||[],o.options=o.options||function(){return{}},/^cancel|hide|show$/.test(t))throw new Error("Preset '"+t+"' in "+e+" is reserved!");if(o.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+e+" is reserved!");return c.presets[t]={methods:o.methods.concat(m),optionsFactory:o.options,argOption:o.argOption},i}function n(o,d,r){function n(e){return e&&e._options&&(e=e._options),s.show(t.extend({},l,e))}function m(t,o){var d={};return d[e]=u,r.invoke(t||function(){return o},{},d)}var i,l,s=o(),u={hide:s.hide,cancel:s.cancel,show:n};return i=c.methods||[],l=m(c.optionsFactory,{}),t.forEach(a,function(e,t){u[t]=e}),t.forEach(c.presets,function(e,o){function d(e){this._options=t.extend({},r,e)}var r=m(e.optionsFactory,{}),n=(e.methods||[]).concat(i);if(t.extend(r,{$type:o}),t.forEach(n,function(e){d.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var a="show"+o.charAt(0).toUpperCase()+o.slice(1);u[a]=function(e){var t=u[o](e);return u.show(t)}}u[o]=function(o){return arguments.length&&e.argOption&&!t.isObject(o)&&!t.isArray(o)?(new d)[e.argOption](o):new d(o)}}),u}var m=["onHide","onShow","onRemove"],a={},c={presets:{}},i={setDefaults:o,addPreset:r,addMethod:d,$get:n};return i.addPreset("build",{methods:["controller","controllerAs","resolve","template","templateUrl","themable","transformTemplate","parent"]}),n.$inject=["$$interimElement","$animate","$injector"],i}function d(e,d,r,n,m,a,c,i,l){function s(e){return e&&t.isString(e)?e.replace(/\{\{/g,u).replace(/}}/g,E):e}var u=c.startSymbol(),E=c.endSymbol(),h="{{"===u&&"}}"===E,f=h?t.identity:s;return function(){function c(e){if(b.length)return h.cancel().then(function(){return c(e)});var t=new E(e);return b.push(t),t.show().then(function(){return t.deferred.promise})}function s(e){var t=b.shift();return t&&t.remove().then(function(){t.deferred.resolve(e)})}function u(e){var t=b.shift();return d.when(t&&t.remove().then(function(){t.deferred.reject(e)}))}function E(c){var s,u,E,b,p;return c=c||{},c=t.extend({preserveScope:!1,scope:c.scope||r.$new(c.isolateScope),onShow:function(e,t,o){return a.enter(t,o.parent)},onRemove:function(e,t,o){return t&&a.leave(t)||d.when()}},c),c.template&&(c.template=f(c.template)),s={options:c,deferred:d.defer(),show:function(){var o;return o=c.skipCompile?d(function(e){e({locals:{},link:function(){return c.element}})}):i.compile(c),b=o.then(function(o){function r(){c.hideDelay&&(u=n(h.cancel,c.hideDelay))}if(t.extend(o.locals,s.options),E=o.link(c.scope),t.isFunction(c.parent)?c.parent=c.parent(c.scope,E,c):t.isString(c.parent)&&(c.parent=t.element(e[0].querySelector(c.parent))),!(c.parent||{}).length){var a;m[0]&&m[0].querySelector&&(a=m[0].querySelector(":not(svg) > body")),a||(a=m[0]),"#comment"==a.nodeName&&(a=e[0].body),c.parent=t.element(a)}c.themable&&l(E);var i=c.onShow(c.scope,E,c);return d.when(i).then(function(){(c.onComplete||t.noop)(c.scope,E,c),r()})},function(e){b=!0,s.deferred.reject(e)})},cancelTimeout:function(){u&&(n.cancel(u),u=o)},remove:function(){return s.cancelTimeout(),p=d.when(b).then(function(){var e=E?c.onRemove(c.scope,E,c):!0;return d.when(e).then(function(){c.preserveScope||c.scope.$destroy(),p=!0})})}}}var h,b=[];return h={show:c,hide:s,cancel:u}}}return e.$get=d,d.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$interpolate","$mdCompiler","$mdTheming"],e}function A(e,o){function d(e){return e&&""!==e}var r,n=[],m={};return r={notFoundError:function(t){e.error("No instance found for handle",t)},getInstances:function(){return n},get:function(e){if(!d(e))return null;var t,o,r;for(t=0,o=n.length;o>t;t++)if(r=n[t],r.$$mdHandle===e)return r;return null},register:function(e,o){function d(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}function r(){var t=m[o];t&&(t.resolve(e),delete m[o])}return o?(e.$$mdHandle=o,n.push(e),r(),d):t.noop},when:function(e){if(d(e)){var t=o.defer(),n=r.get(e);return n?t.resolve(n):m[e]=t,t.promise}return o.reject("Invalid `md-component-id` value.")}}}function T(e,o){return{controller:t.noop,link:function(t,d,r){r.hasOwnProperty("mdInkRippleCheckbox")?o.attach(t,d):e.attach(t,d)}}}function N(e,o){function d(d,r,n){function m(){var e=r.data("$mdRippleContainer");return e?e:(e=t.element('<div class="md-ripple-container">'),r.append(e),r.data("$mdRippleContainer",e),e)}function a(e){function t(e){var t="#"===e.charAt(0)?e.substr(1):e,o=t.length/3,d=t.substr(0,o),r=t.substr(o,o),n=t.substr(2*o);return 1===o&&(d+=d,r+=r,n+=n),"rgba("+parseInt(d,16)+","+parseInt(r,16)+","+parseInt(n,16)+",0.1)"}function o(e){return e.replace(")",", 0.1)").replace("(","a(")}if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,"0.1)"):0===e.indexOf("rgb")?o(e):0===e.indexOf("#")?t(e):void 0}function c(e,t){p.splice(p.indexOf(e),1),0===p.length&&m().css({backgroundColor:""}),o(function(){e.remove()},t,!1)}function i(e){var t=p.indexOf(e),o=M[t]||{},d=p.length>1?!1:A,r=p.length>1?!1:T;d||o.animating||r?e.addClass("md-ripple-visible"):e&&(e.removeClass("md-ripple-visible"),n.outline&&e.css({width:h+"px",height:h+"px",marginLeft:-1*h+"px",marginTop:-1*h+"px"}),c(e,n.outline?450:650))}function l(d,c){function l(e){var o=t.element('<div class="md-ripple" data-counter="'+b++ +'">');return p.unshift(o),M.unshift({animating:!0}),E.append(o),e&&o.css(e),o}function s(e,t){var o,d,r,m=E.prop("offsetWidth"),a=E.prop("offsetHeight");return n.isMenuItem?d=Math.sqrt(Math.pow(m,2)+Math.pow(a,2)):n.outline?(r=N.getBoundingClientRect(),e-=r.left,t-=r.top,m=Math.max(e,m-e),a=Math.max(t,a-t),d=2*Math.sqrt(Math.pow(m,2)+Math.pow(a,2))):(o=n.fullRipple?1.1:.8,d=Math.sqrt(Math.pow(m,2)+Math.pow(a,2))*o,n.fitRipple&&(d=Math.min(a,m,d))),d}function u(e,t,o){function d(e){return e.replace("rgba","rgb").replace(/,[^\),]+\)/,")")}var r=N.getBoundingClientRect(),m={backgroundColor:d(H),borderColor:d(H),width:e+"px",height:e+"px"};return n.outline?(m.width=0,m.height=0):m.marginLeft=m.marginTop=e*-.5+"px",n.center?m.left=m.top="50%":(m.left=Math.round((t-r.left)/E.prop("offsetWidth")*100)+"%",m.top=Math.round((o-r.top)/E.prop("offsetHeight")*100)+"%"),m}H=a(r.attr("md-ink-ripple"))||a(e.getComputedStyle(n.colorElement[0]).color||"rgb(0, 0, 0)");var E=m(),f=s(d,c),g=u(f,d,c),A=l(g),T=p.indexOf(A),_=M[T]||{};return h=f,_.animating=!0,o(function(){n.dimBackground&&E.css({backgroundColor:H}),A.addClass("md-ripple-placed md-ripple-scaled"),A.css(n.outline?{borderWidth:.5*f+"px",marginLeft:f*-.5+"px",marginTop:f*-.5+"px"}:{left:"50%",top:"50%"}),i(A),o(function(){_.animating=!1,i(A)},n.outline?450:225,!1)},0,!1),A}function s(e){E()&&(l(e.pointer.x,e.pointer.y),T=!0)}function u(){T=!1;var e=p[p.length-1];o(function(){i(e)},0,!1)}function E(){function e(e){return e&&e.hasAttribute&&e.hasAttribute("disabled")}var t=N.parentNode,o=t&&t.parentNode,d=o&&o.parentNode;return!(e(N)||e(t)||e(o)||e(d))}if(r.controller("mdNoInk"))return t.noop;n=t.extend({colorElement:r,mousedown:!0,hover:!0,focus:!0,center:!1,mousedownPauseTime:150,dimBackground:!1,outline:!1,fullRipple:!0,isMenuItem:!1,fitRipple:!1},n);var h,f=r.controller("mdInkRipple")||{},b=0,p=[],M=[],g=r.attr("md-highlight"),A=!1,T=!1,N=r[0],_=r.attr("md-ripple-size"),H=a(r.attr("md-ink-ripple"))||a(n.colorElement.length&&e.getComputedStyle(n.colorElement[0]).color||"rgb(0, 0, 0)");switch(_){case"full":n.fullRipple=!0;break;case"partial":n.fullRipple=!1}return n.mousedown&&r.on("$md.pressdown",s).on("$md.pressup",u),f.createRipple=l,g&&d.$watch(g,function(e){A=e,A&&!p.length&&o(function(){l(0,0)},0,!1),t.forEach(p,i)}),function(){r.off("$md.pressdown",s).off("$md.pressup",u),m().remove()}}return{attach:d}}function _(){return function(){return{controller:t.noop}}}function H(e){function d(e,t){return t=t||{},j[e]=n(e,t),i}function r(e,o){return n(e,t.extend({},j[e]||{},o))}function n(e,t){var o=Z.filter(function(e){return!t[e]});if(o.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",o.join(", ")).replace("%2",e));return t}function m(e,o){if(L[e])return L[e];o=o||"default";var d="string"==typeof o?L[o]:o,r=new a(e);return d&&t.forEach(d.colors,function(e,o){r.colors[o]={name:e.name,hues:t.extend({},e.hues)}}),L[e]=r,r}function a(e){function o(e){if(e=0===arguments.length?!0:!!e,e!==d.isDark){d.isDark=e,d.foregroundPalette=d.isDark?F:B,d.foregroundShadow=d.isDark?U:X;var o=d.isDark?V:Q,r=d.isDark?Q:V;return t.forEach(o,function(e,t){var o=d.colors[t],n=r[t];if(o)for(var m in o.hues)o.hues[m]===n[m]&&(o.hues[m]=e[m])}),d}}var d=this;d.name=e,d.colors={},d.dark=o,o(!1),z.forEach(function(e){var o=(d.isDark?V:Q)[e];d[e+"Palette"]=function(r,n){var m=d.colors[e]={name:r,hues:t.extend({},o,n)};return Object.keys(m.hues).forEach(function(e){if(!o[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",d.name).replace("%3",r).replace("%4",Object.keys(o).join(", ")))}),Object.keys(m.hues).map(function(e){return m.hues[e]}).forEach(function(t){if(-1==Z.indexOf(t))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",t).replace("%2",d.name).replace("%3",e).replace("%4",r).replace("%5",Z.join(", ")))}),d},d[e+"Color"]=function(){var t=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+e+"Color() has been deprecated. Use $mdThemingProviderTheme."+e+"Palette() instead."),d[e+"Palette"].apply(d,t)}})}function c(e,d){function r(e){return e===o||""===e?!0:n.THEMES[e]!==o}function n(t,d){d===o&&(d=t,t=o),t===o&&(t=e),n.inherit(d,d)}return n.inherit=function(o,n){function m(e){r(e)||d.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var t=o.data("$mdThemeName");t&&o.removeClass("md-"+t+"-theme"),o.addClass("md-"+e+"-theme"),o.data("$mdThemeName",e)}var a=n.controller("mdTheme"),c=o.attr("md-theme-watch");if((s||t.isDefined(c))&&"false"!=c){var i=e.$watch(function(){return a&&a.$mdTheme||l},m);o.on("$destroy",i)}else{var u=a&&a.$mdTheme||l;m(u)}},n.THEMES=t.extend({},L),n.defaultTheme=function(){return l},n.registered=r,n}j={},L={};var i,l="default",s=!1;return t.extend(j,e),c.$inject=["$rootScope","$log"],i={definePalette:d,extendPalette:r,theme:m,setDefaultTheme:function(e){l=e},alwaysWatchTheme:function(e){s=e},$get:c,_LIGHT_DEFAULT_HUES:Q,_DARK_DEFAULT_HUES:V,_PALETTES:j,_THEMES:L,_parseRules:w,_rgba:C}}function k(e,t,o){return{priority:100,link:{pre:function(d,r,n){var m={$setTheme:function(t){e.registered(t)||o.warn("attempted to use unregistered theme '"+t+"'"),m.$mdTheme=t}};r.data("$mdThemeController",m),m.$setTheme(t(n.mdTheme)(d)),n.$observe("mdTheme",m.$setTheme)}}}}function v(e){return e}function w(e,o,d){$(e,o),d=d.replace(/THEME_NAME/g,e.name);var r=[],n=e.colors[o],m=new RegExp(".md-"+e.name+"-theme","g"),a=new RegExp("('|\")?{{\\s*("+o+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),c=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow)-?(\d\.?\d*)?\s*\}\}'?"?/g,i=j[n.name];return d=d.replace(c,function(t,o,d,r){return"foreground"===o?"shadow"==d?e.foregroundShadow:e.foregroundPalette[d]||e.foregroundPalette[1]:(0===d.indexOf("hue")&&(d=e.colors[o].hues[d]),C((j[e.colors[o].name][d]||"").value,r))}),t.forEach(n.hues,function(t,o){var n=d.replace(a,function(e,o,d,r,n){return C(i[t]["color"===r?"value":"contrast"],n)});"default"!==o&&(n=n.replace(m,".md-"+e.name+"-theme.md-"+o)),"default"==e.name&&(n=n.replace(/\.md-default-theme/g,"")),r.push(n)}),r}function y(e){function o(e){var o=e.contrastDefaultColor,d=e.contrastLightColors||[],r=e.contrastStrongLightColors||[],n=e.contrastDarkColors||[];"string"==typeof d&&(d=d.split(" ")),"string"==typeof r&&(r=r.split(" ")),"string"==typeof n&&(n=n.split(" ")),delete e.contrastDefaultColor,delete e.contrastLightColors,delete e.contrastStrongLightColors,delete e.contrastDarkColors,t.forEach(e,function(m,a){function c(){return"light"===o?n.indexOf(a)>-1?G:r.indexOf(a)>-1?q:K:d.indexOf(a)>-1?r.indexOf(a)>-1?q:K:G}if(!t.isObject(m)){var i=x(m);if(!i)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",m).replace("%2",e.name).replace("%3",a));e[a]={value:i,contrast:c()}}})}var d=document.getElementsByTagName("head")[0],r=d?d.firstElementChild:null,n=e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(r&&0!==n.length){t.forEach(j,o);var m={},a=n.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.length}).map(function(e){return e.trim()+"}"}),c=new RegExp("md-("+z.join("|")+")","g");z.forEach(function(e){m[e]=""}),a.forEach(function(e){for(var t,o=(e.match(c),0);t=z[o];o++)if(e.indexOf(".md-"+t)>-1)return m[t]+=e;for(o=0;t=z[o];o++)if(e.indexOf(t)>-1)return m[t]+=e;return m[W]+=e}),t.forEach(L,function(e){Y[e.name]||(z.forEach(function(t){for(var o=w(e,t,m[t]);o.length;){var n=document.createElement("style");n.setAttribute("type","text/css"),n.appendChild(document.createTextNode(o.shift())),d.insertBefore(n,r)}}),e.colors.primary.name==e.colors.accent.name&&console.warn("$mdThemingProvider: Using the same palette for primary and accent. This violates the material design spec."),Y[e.name]=!0)})}}function $(e,t){if(!j[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(j).join(", ")))}function x(e){if(t.isArray(e)&&3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==e.charAt(0)&&(e=e.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(e)){var o=e.length/3,d=e.substr(0,o),r=e.substr(o,o),n=e.substr(2*o);return 1===o&&(d+=d,r+=r,n+=n),[parseInt(d,16),parseInt(r,16),parseInt(n,16)]}}function C(e,o){return e?(4==e.length&&(e=t.copy(e),o?e.pop():o=e.pop()),o&&("number"==typeof o||"string"==typeof o&&o.length)?"rgba("+e.join(",")+","+o+")":"rgb("+e.join(",")+")"):"rgb('0,0,0')"}t.module("material.core",["material.core.gestures","material.core.theming"]).config(d),d.$inject=["$provide","$mdThemingProvider"],t.module("material.core").factory("$mdConstant",n),n.$inject=["$$rAF","$sniffer"],t.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.iterator=m,e}])}]),t.module("material.core").factory("$mdMedia",a),a.$inject=["$mdConstant","$rootScope","$window"];var S=0;t.module("material.core").factory("$mdUtil",["$cacheFactory","$document","$timeout","$q","$window","$mdConstant",function(d,r,n,m,a,c){function i(e){return e[0]||e}var l;return l={now:e.performance?t.bind(e.performance,e.performance.now):Date.now,clientRect:function(e,t,o){var d=i(e);t=i(t||d.offsetParent||document.body);var r=d.getBoundingClientRect(),n=o?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:r.left-n.left,top:r.top-n.top,width:r.width,height:r.height}},offsetRect:function(e,t){return l.clientRect(e,t,!0)},disableScrollAround:function(e){function o(){function e(e){c.contains(e.target)&&(e.preventDefault(),e.stopImmediatePropagation())}function o(e){e.preventDefault()}var d=t.element('<div class="md-scroll-mask"><div class="md-scroll-mask-bar"></div></div>'),m=a.getComputedStyle(c),i=c.getBoundingClientRect(),l=i.width-c.clientWidth;return n(d[0],{zIndex:"auto"==m.zIndex?2:m.zIndex+1,width:i.width+"px",height:i.height+"px",top:i.top+"px",left:i.left+"px"}),d[0].firstElementChild.style.width=l+"px",r[0].body.appendChild(d[0]),d.on("wheel",o),d.on("touchmove",o),r.on("keydown",e),function(){d.off("wheel"),d.off("touchmove"),d[0].parentNode.removeChild(d[0]),r.off("keydown",e)}}function d(){var e=c.getAttribute("style")||"",t=c.scrollTop;return n(c,{position:"fixed",width:"100%",overflowY:"scroll",top:-t+"px"}),function(){c.setAttribute("style",e),c.scrollTop=t}}function n(e,t){for(var o in t)e.style[o]=t[o]}function m(e){return e instanceof t.element&&(e=e[0]),e.scrollHeight>e.offsetHeight}e=e instanceof t.element?e[0]:e;for(var c,i=e;i=this.getClosest(i,"MD-CONTENT",!0);)m(i)&&(c=t.element(i)[0]);return c||(c=r[0].body,m(c))?"BODY"==c.nodeName?d():o():t.noop},floatingScrollbars:function(){if(this.floatingScrollbars.cached===o){var e=t.element('<div style="width: 100%; z-index: -1; position: absolute; height: 35px; overflow-y: scroll"><div style="height: 60;"></div></div>');r[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(t){var o=t[0]||t;document.addEventListener("click",function r(e){e.target===o&&e.$focus&&(o.focus(),e.stopImmediatePropagation(),e.preventDefault(),o.removeEventListener("click",r))},!0);var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!1,!0,e,{},0,0,0,0,!1,!1,!1,!1,0,null),d.$material=!0,d.$focus=!0,o.dispatchEvent(d)},transitionEndPromise:function(e,t){function o(t){t&&t.target!==e[0]||(e.off(c.CSS.TRANSITIONEND,o),d.resolve())}t=t||{};var d=m.defer();return e.on(c.CSS.TRANSITIONEND,o),t.timeout&&n(o,t.timeout),d.promise},fakeNgModel:function(){return{$fake:!0,$setTouched:t.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:t.noop}},debounce:function(e,t,d,r){var m;return function(){var a=d,c=Array.prototype.slice.call(arguments);n.cancel(m),m=n(function(){m=o,e.apply(a,c)},t||10,r)}},throttle:function(e,t){var o;return function(){var d=this,r=arguments,n=l.now();(!o||n-o>t)&&(e.apply(d,r),o=n)}},time:function(e){var t=l.now();return e(),l.now()-t},nextUid:function(){return""+S++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,o=t.$parent;t.$$disconnected=!1,t.$$prevSibling=o.$$childTail,o.$$childHead?(o.$$childTail.$$nextSibling=t,o.$$childTail=t):o.$$childHead=o.$$childTail=t}},getClosest:function(e,o,d){if(e instanceof t.element&&(e=e[0]),o=o.toUpperCase(),d&&(e=e.parentNode),!e)return null;do if(e.nodeName===o)return e;while(e=e.parentNode);return null},extractElementByName:function(e,o){for(var d=0,r=e.length;r>d;d++)if(e[d].nodeName.toLowerCase()===o)return t.element(e[d]);return e},initOptionalProperties:function(e,o,d){d=d||{},t.forEach(e.$$isolateBindings,function(r,n){if(r.optional&&t.isUndefined(e[n])){var m=o.hasOwnProperty(o.$normalize(r.attrName));e[n]=t.isDefined(d[n])?d[n]:m}})}}}]),t.element.prototype.focus=t.element.prototype.focus||function(){return this.length&&this[0].focus(),this},t.element.prototype.blur=t.element.prototype.blur||function(){return this.length&&this[0].blur(),this},t.module("material.core").service("$mdAria",c),c.$inject=["$$rAF","$log","$window"],t.module("material.core").service("$mdCompiler",i),i.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"];var D,R,I={},O=!1,P=!1;t.module("material.core.gestures",[]).provider("$mdGesture",l).factory("$$MdGestureHandler",E).run(h),l.prototype={skipClickHijack:function(){return O=!0},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,o){return new s(e,t,o)}]},s.$inject=["$$MdGestureHandler","$$rAF","$timeout"],h.$inject=["$mdGesture","$$MdGestureHandler"],t.module("material.core").provider("$$interimElement",g),t.module("material.core").factory("$mdComponentRegistry",A),A.$inject=["$log","$q"],function(){function e(e){function o(o,r,n){var m=d(r);return e.attach(o,r,t.extend(m,n))}function d(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}return{attach:o}}t.module("material.core").factory("$mdButtonInkRipple",e),e.$inject=["$mdInkRipple"]}(),function(){function e(e){function o(o,d,r){return e.attach(o,d,t.extend({center:!0,dimBackground:!1,fitRipple:!0},r))}return{attach:o}}t.module("material.core").factory("$mdCheckboxInkRipple",e),e.$inject=["$mdInkRipple"]}(),function(){function e(e){function o(o,d,r){return e.attach(o,d,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},r))}return{attach:o}}t.module("material.core").factory("$mdListInkRipple",e),e.$inject=["$mdInkRipple"]}(),t.module("material.core").factory("$mdInkRipple",N).directive("mdInkRipple",T).directive("mdNoInk",_()).directive("mdNoBar",_()).directive("mdNoStretch",_()),T.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],N.$inject=["$window","$timeout"],function(){function e(e){function o(o,d,r){return e.attach(o,d,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},r))}return{attach:o}}t.module("material.core").factory("$mdTabInkRipple",e),e.$inject=["$mdInkRipple"]}(),t.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",
-contrastStrongLightColors:"500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900 A700",contrastStrongLightColors:"500 600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700 800"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1000:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300",contrastStrongLightColors:"400 500"}}),t.module("material.core.theming",["material.core.theming.palette"]).directive("mdTheme",k).directive("mdThemable",v).provider("$mdTheming",H).run(y);var j,L,Y={},B={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.26)",4:"rgba(0,0,0,0.12)"},F={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.3)",4:"rgba(255,255,255,0.12)"},U="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",X="",G=x("rgba(0,0,0,0.87)"),K=x("rgba(255,255,255,0.87"),q=x("rgb(255,255,255)"),z=["primary","accent","warn","background"],W="primary",Q={accent:{"default":"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{"default":"A100","hue-1":"300","hue-2":"800","hue-3":"900"}},V={background:{"default":"800","hue-1":"300","hue-2":"600","hue-3":"900"}};z.forEach(function(e){var t={"default":"500","hue-1":"300","hue-2":"800","hue-3":"A100"};Q[e]||(Q[e]=t),V[e]||(V[e]=t)});var Z=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"];H.$inject=["$mdColorPalette"],k.$inject=["$mdTheming","$interpolate","$log"],v.$inject=["$mdTheming"],y.$inject=["$injector"],function(){t.module("material.core").constant("$MD_THEME_CSS","/* mixin definition ; sets LTR and RTL within the same style call */md-autocomplete.md-THEME_NAME-theme { background: '{{background-50}}'; } md-autocomplete.md-THEME_NAME-theme[disabled] { background: '{{background-100}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions.md-THEME_NAME-theme { background: '{{background-50}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{foreground-4-0.5}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme { border-radius: 3px; } a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button { border-radius: 50%; } a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised { color: '{{background-contrast}}'; background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon { color: '{{background-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover { background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused { background-color: '{{background-200}}'; } a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab { color: '{{warn-contrast}}'; background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon { color: '{{warn-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover { background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused { background-color: '{{warn-700}}'; } a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab { color: '{{accent-contrast}}'; background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused { background-color: '{{accent-700}}'; } a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] { color: '{{foreground-3}}'; cursor: not-allowed; } a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon { color: '{{foreground-3}}'; } a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] { background-color: '{{foreground-4}}'; } a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] { background-color: transparent; }md-card.md-THEME_NAME-theme { background-color: '{{background-color}}'; border-radius: 2px; } md-card.md-THEME_NAME-theme .md-card-image { border-radius: 2px 2px 0 0; }md-chips.md-THEME_NAME-theme .md-chips { box-shadow: 0 1px '{{background-300}}'; } md-chips.md-THEME_NAME-theme .md-chips.md-focused { box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip { background: '{{background-300}}'; color: '{{background-800}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused { background: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon { color: '{{primary-contrast}}'; }md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path { fill: '{{background-500}}'; }.md-contact-suggestion span.md-contact-email { color: '{{background-400}}'; }md-content.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-checkbox.md-THEME_NAME-theme .md-ripple { color: '{{accent-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before { background-color: '{{accent-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon { background-color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple { color: '{{primary-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon { background-color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before { background-color: '{{primary-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple { color: '{{warn-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon { background-color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before { background-color: '{{warn-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-icon { border-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon { background-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-label { color: '{{foreground-3}}'; }md-dialog.md-THEME_NAME-theme { border-radius: 4px; background-color: '{{background-color}}'; } md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions { border-top-color: '{{foreground-4}}'; }md-divider.md-THEME_NAME-theme { border-top-color: '{{foreground-4}}'; }md-icon.md-THEME_NAME-theme { color: '{{foreground-2}}'; } md-icon.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } md-icon.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } md-icon.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-input-container.md-THEME_NAME-theme .md-input { color: '{{foreground-1}}'; border-color: '{{foreground-4}}'; text-shadow: '{{foreground-shadow}}'; } md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder { color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme > md-icon { color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder { text-shadow: '{{foreground-shadow}}'; color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label { color: '{{foreground-2}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input { border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input { border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label { color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input { border-bottom-color: transparent; color: '{{foreground-3}}'; background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%); background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-3}}' 100%); }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 { color: '{{foreground-1}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p { color: '{{foreground-2}}'; }md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style { background-color: '{{background-100}}'; }md-list.md-THEME_NAME-theme md-list-item > md-icon { color: '{{foreground-2}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight { color: '{{primary-color}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent { color: '{{accent-color}}'; }md-list.md-THEME_NAME-theme md-list-item button { background-color: '{{background-color}}'; } md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover { background-color: '{{background-color}}'; }md-progress-circular.md-THEME_NAME-theme { background-color: transparent; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap { border-top-color: '{{primary-color}}'; border-bottom-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-top-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-right-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle { border-left-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap { border-top-color: '{{warn-color}}'; border-bottom-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-top-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-right-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle { border-left-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap { border-top-color: '{{accent-color}}'; border-bottom-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-top-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-right-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle { border-left-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme .md-container { background-color: '{{primary-100}}'; }md-progress-linear.md-THEME_NAME-theme .md-bar { background-color: '{{primary-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-container { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar { background-color: '{{warn-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-container { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar { background-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before { background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before { background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }md-radio-button.md-THEME_NAME-theme .md-off { border-color: '{{foreground-2}}'; }md-radio-button.md-THEME_NAME-theme .md-on { background-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-off { border-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple { color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme .md-container .md-ripple { color: '{{accent-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on { background-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off { border-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple { color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple { color: '{{primary-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on { background-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off { border-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple { color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple { color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] { color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off { border-color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on { border-color: '{{foreground-3}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before { background-color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before { background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before { background-color: '{{warn-color-0.26}}'; }md-sidenav.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label { color: '{{warn-500}}' !important; border-bottom-color: '{{warn-500}}' !important; }md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label { border-bottom-color: '{{primary-color}}'; color: '{{ foreground-1 }}'; } md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder { color: '{{ foreground-1 }}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label { border-bottom-color: '{{accent-color}}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label { border-bottom-color: '{{warn-color}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-label { color: '{{foreground-3}}'; } md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder { color: '{{foreground-3}}'; }md-select.md-THEME_NAME-theme .md-select-label { border-bottom-color: '{{foreground-4}}'; } md-select.md-THEME_NAME-theme .md-select-label.md-placeholder { color: '{{foreground-2}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup { color: '{{foreground-2}}'; } md-select-menu.md-THEME_NAME-theme md-optgroup md-option { color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] { color: '{{primary-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected]:focus { color: '{{primary-600}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent { color: '{{accent-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus { color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) { background: '{{background-200}}'; }md-slider.md-THEME_NAME-theme .md-track { background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks { background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb { background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring { border-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb { border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track.md-track-fill { background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb:after { border-color: '{{accent-color}}'; background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-sign { background-color: '{{accent-color}}'; } md-slider.md-THEME_NAME-theme .md-sign:after { border-top-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb-text { color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill { background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after { border-color: '{{warn-color}}'; background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-sign { background-color: '{{warn-color}}'; } md-slider.md-THEME_NAME-theme.md-warn .md-sign:after { border-top-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text { color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill { background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after { border-color: '{{primary-color}}'; background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-sign { background-color: '{{primary-color}}'; } md-slider.md-THEME_NAME-theme.md-primary .md-sign:after { border-top-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text { color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after { border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after { background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme { color: '{{ foreground-2-0.23 }}'; background-color: '{{background-color}}'; } .md-subheader.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } .md-subheader.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } .md-subheader.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme .md-thumb { background-color: '{{background-50}}'; }md-switch.md-THEME_NAME-theme .md-bar { background-color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-thumb { background-color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-bar { background-color: '{{accent-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before { background-color: '{{accent-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb { background-color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar { background-color: '{{primary-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before { background-color: '{{primary-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb { background-color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar { background-color: '{{warn-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before { background-color: '{{warn-color-0.26}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-thumb { background-color: '{{background-400}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-bar { background-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: transparent; border-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme .md-paginator md-icon { color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{accent-color}}'; background: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme .md-tab { color: '{{foreground-2}}'; } md-tabs.md-THEME_NAME-theme .md-tab[disabled] { color: '{{foreground-3}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused { color: '{{primary-color}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-focused { background: '{{primary-color-0.1}}'; } md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container { color: '{{accent-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper { background-color: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper { background-color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper { background-color: '{{warn-color}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{primary-color}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{accent-color}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{warn-color}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toast.md-THEME_NAME-theme { background-color: #323232; color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button { color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight { color: '{{primary-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent { color: '{{accent-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn { color: '{{warn-A200}}'; }md-toolbar.md-THEME_NAME-theme { background-color: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme md-icon { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme .md-button { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-accent { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-warn { background-color: '{{warn-color}}'; color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme { color: '{{background-A100}}'; } md-tooltip.md-THEME_NAME-theme .md-background { background-color: '{{foreground-2}}'; }");
-
-}()}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/default-theme.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/default-theme.js
deleted file mode 100644
index 9ccfb69e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/core/default-theme.js
+++ /dev/null
@@ -1,4 +0,0 @@
-(function(){
-angular.module("material.core").constant("$MD_THEME_CSS", "/* mixin definition ; sets LTR and RTL within the same style call */md-autocomplete.md-THEME_NAME-theme { background: '{{background-50}}'; } md-autocomplete.md-THEME_NAME-theme button md-icon path { fill: '{{background-600}}'; } md-autocomplete.md-THEME_NAME-theme button:after { background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions.md-THEME_NAME-theme { background: '{{background-50}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li { color: '{{background-900}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li .highlight { color: '{{background-600}}'; } .md-autocomplete-suggestions.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions.md-THEME_NAME-theme li.selected { background: '{{background-200}}'; }md-backdrop.md-opaque.md-THEME_NAME-theme { background-color: '{{foreground-4-0.5}}'; }md-bottom-sheet.md-THEME_NAME-theme { background-color: '{{background-50}}'; border-top-color: '{{background-300}}'; } md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item { color: '{{foreground-1}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { background-color: '{{background-50}}'; } md-bottom-sheet.md-THEME_NAME-theme .md-subheader { color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme, .md-button.md-THEME_NAME-theme { border-radius: 3px; } a.md-button.md-THEME_NAME-theme:not([disabled]):hover, .md-button.md-THEME_NAME-theme:not([disabled]):hover { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme:not([disabled]).md-focused { background-color: '{{background-500-0.2}}'; } a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover, .md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover { background-color: transparent; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab md-icon, .md-button.md-THEME_NAME-theme.md-fab md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-icon-button, .md-button.md-THEME_NAME-theme.md-icon-button { border-radius: 50%; } a.md-button.md-THEME_NAME-theme.md-primary, .md-button.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab, .md-button.md-THEME_NAME-theme.md-primary.md-raised, .md-button.md-THEME_NAME-theme.md-primary.md-fab { color: '{{primary-contrast}}'; background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon { color: '{{primary-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover { background-color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused { background-color: '{{primary-600}}'; } a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon { color: '{{primary-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab, .md-button.md-THEME_NAME-theme.md-fab { border-radius: 50%; background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused { background-color: '{{accent-A700}}'; } a.md-button.md-THEME_NAME-theme.md-raised, .md-button.md-THEME_NAME-theme.md-raised { color: '{{background-contrast}}'; background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon { color: '{{background-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover { background-color: '{{background-50}}'; } a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused { background-color: '{{background-200}}'; } a.md-button.md-THEME_NAME-theme.md-warn, .md-button.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab, .md-button.md-THEME_NAME-theme.md-warn.md-raised, .md-button.md-THEME_NAME-theme.md-warn.md-fab { color: '{{warn-contrast}}'; background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon { color: '{{warn-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover { background-color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused { background-color: '{{warn-700}}'; } a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon { color: '{{warn-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent, .md-button.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab, .md-button.md-THEME_NAME-theme.md-accent.md-raised, .md-button.md-THEME_NAME-theme.md-accent.md-fab { color: '{{accent-contrast}}'; background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon { color: '{{accent-contrast}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover { background-color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused { background-color: '{{accent-700}}'; } a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon, .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon { color: '{{accent-color}}'; } a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled], .md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-accent[disabled], .md-button.md-THEME_NAME-theme.md-warn[disabled] { color: '{{foreground-3}}'; cursor: not-allowed; } a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon, .md-button.md-THEME_NAME-theme[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon { color: '{{foreground-3}}'; } a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], .md-button.md-THEME_NAME-theme.md-raised[disabled], .md-button.md-THEME_NAME-theme.md-fab[disabled] { background-color: '{{foreground-4}}'; } a.md-button.md-THEME_NAME-theme[disabled], .md-button.md-THEME_NAME-theme[disabled] { background-color: transparent; }md-card.md-THEME_NAME-theme { background-color: '{{background-color}}'; border-radius: 2px; } md-card.md-THEME_NAME-theme .md-card-image { border-radius: 2px 2px 0 0; }md-checkbox.md-THEME_NAME-theme .md-ripple { color: '{{accent-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before { background-color: '{{accent-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon { background-color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple { color: '{{primary-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple { color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon { background-color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before { background-color: '{{primary-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple { color: '{{warn-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon { border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon { background-color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before { background-color: '{{warn-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after { border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-icon { border-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon { background-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-label { color: '{{foreground-3}}'; }md-chips.md-THEME_NAME-theme .md-chips { box-shadow: 0 1px '{{background-300}}'; } md-chips.md-THEME_NAME-theme .md-chips.md-focused { box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip { background: '{{background-300}}'; color: '{{background-800}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused { background: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon { color: '{{primary-contrast}}'; }md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path { fill: '{{background-500}}'; }.md-contact-suggestion span.md-contact-email { color: '{{background-400}}'; }md-content.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-dialog.md-THEME_NAME-theme { border-radius: 4px; background-color: '{{background-color}}'; } md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions { border-top-color: '{{foreground-4}}'; }md-divider.md-THEME_NAME-theme { border-top-color: '{{foreground-4}}'; }md-icon.md-THEME_NAME-theme { color: '{{foreground-2}}'; } md-icon.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } md-icon.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } md-icon.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-input-container.md-THEME_NAME-theme .md-input { color: '{{foreground-1}}'; border-color: '{{foreground-4}}'; text-shadow: '{{foreground-shadow}}'; } md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder { color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme > md-icon { color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder { text-shadow: '{{foreground-shadow}}'; color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label { color: '{{foreground-2}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input { border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon { color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input { border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label { color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input { border-color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter { color: '{{warn-500}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input { border-bottom-color: transparent; color: '{{foreground-3}}'; background-image: linear-gradient(to right, '{{foreground-4}}' 0%, '{{foreground-4}}' 33%, transparent 0%); background-image: -ms-linear-gradient(left, transparent 0%, '{{foreground-4}}' 100%); }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 { color: '{{foreground-1}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p { color: '{{foreground-2}}'; }md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style { background-color: '{{background-100}}'; }md-list.md-THEME_NAME-theme md-list-item > md-icon { color: '{{foreground-2}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight { color: '{{primary-color}}'; } md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent { color: '{{accent-color}}'; }md-list.md-THEME_NAME-theme md-list-item button { background-color: '{{background-color}}'; } md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover { background-color: '{{background-color}}'; }md-progress-circular.md-THEME_NAME-theme { background-color: transparent; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap { border-top-color: '{{primary-color}}'; border-bottom-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-top-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle { border-right-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle { border-left-color: '{{primary-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap { border-top-color: '{{warn-color}}'; border-bottom-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-top-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle { border-right-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle { border-left-color: '{{warn-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap { border-top-color: '{{accent-color}}'; border-bottom-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-top-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle { border-right-color: '{{accent-color}}'; } md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle { border-left-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme .md-container { background-color: '{{primary-100}}'; }md-progress-linear.md-THEME_NAME-theme .md-bar { background-color: '{{primary-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-container { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar { background-color: '{{warn-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-container { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar { background-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 { background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before { background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 { background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before { background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }md-radio-button.md-THEME_NAME-theme .md-off { border-color: '{{foreground-2}}'; }md-radio-button.md-THEME_NAME-theme .md-on { background-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-off { border-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple { color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme .md-container .md-ripple { color: '{{accent-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on { background-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off { border-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple { color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple { color: '{{primary-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on { background-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off { border-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple { color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple { color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] { color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off { border-color: '{{foreground-3}}'; } md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on { border-color: '{{foreground-3}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before { background-color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before { background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before { background-color: '{{warn-color-0.26}}'; }md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label { color: '{{warn-500}}' !important; border-bottom-color: '{{warn-500}}' !important; }md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label { border-bottom-color: '{{primary-color}}'; color: '{{ foreground-1 }}'; } md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder { color: '{{ foreground-1 }}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label { border-bottom-color: '{{accent-color}}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label { border-bottom-color: '{{warn-color}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-label { color: '{{foreground-3}}'; } md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder { color: '{{foreground-3}}'; }md-select.md-THEME_NAME-theme .md-select-label { border-bottom-color: '{{foreground-4}}'; } md-select.md-THEME_NAME-theme .md-select-label.md-placeholder { color: '{{foreground-2}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup { color: '{{foreground-2}}'; } md-select-menu.md-THEME_NAME-theme md-optgroup md-option { color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] { color: '{{primary-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected]:focus { color: '{{primary-600}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent { color: '{{accent-500}}'; } md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus { color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) { background: '{{background-200}}'; }md-sidenav.md-THEME_NAME-theme { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track { background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks { background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb { background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring { border-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb { border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after { background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track.md-track-fill { background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb:after { border-color: '{{accent-color}}'; background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-sign { background-color: '{{accent-color}}'; } md-slider.md-THEME_NAME-theme .md-sign:after { border-top-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb-text { color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill { background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after { border-color: '{{warn-color}}'; background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-sign { background-color: '{{warn-color}}'; } md-slider.md-THEME_NAME-theme.md-warn .md-sign:after { border-top-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text { color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill { background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after { border-color: '{{primary-color}}'; background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-sign { background-color: '{{primary-color}}'; } md-slider.md-THEME_NAME-theme.md-primary .md-sign:after { border-top-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text { color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after { border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after { background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme { color: '{{ foreground-2-0.23 }}'; background-color: '{{background-color}}'; } .md-subheader.md-THEME_NAME-theme.md-primary { color: '{{primary-color}}'; } .md-subheader.md-THEME_NAME-theme.md-accent { color: '{{accent-color}}'; } .md-subheader.md-THEME_NAME-theme.md-warn { color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme .md-thumb { background-color: '{{background-50}}'; }md-switch.md-THEME_NAME-theme .md-bar { background-color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-thumb { background-color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-bar { background-color: '{{accent-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before { background-color: '{{accent-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb { background-color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar { background-color: '{{primary-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before { background-color: '{{primary-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb { background-color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar { background-color: '{{warn-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before { background-color: '{{warn-color-0.26}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-thumb { background-color: '{{background-400}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-bar { background-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: transparent; border-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme .md-paginator md-icon { color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{accent-color}}'; background: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme .md-tab { color: '{{foreground-2}}'; } md-tabs.md-THEME_NAME-theme .md-tab[disabled] { color: '{{foreground-3}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused { color: '{{primary-color}}'; } md-tabs.md-THEME_NAME-theme .md-tab.md-focused { background: '{{primary-color-0.1}}'; } md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container { color: '{{accent-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper { background-color: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper { background-color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper { background-color: '{{warn-color}}'; }md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{primary-color}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{primary-100}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{primary-contrast}}'; } md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{accent-color}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{accent-100}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{accent-contrast}}'; } md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{accent-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar { color: '{{primary-600-1}}'; background: '{{primary-600-1}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper { background-color: '{{warn-color}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) { color: '{{warn-100}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { color: '{{warn-contrast}}'; } md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused { background: '{{warn-contrast-0.1}}'; }md-toast.md-THEME_NAME-theme { background-color: #323232; color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button { color: '{{background-50}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight { color: '{{primary-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent { color: '{{accent-A200}}'; } md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn { color: '{{warn-A200}}'; }md-toolbar.md-THEME_NAME-theme { background-color: '{{primary-color}}'; color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme md-icon { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme .md-button { color: '{{primary-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-accent { background-color: '{{accent-color}}'; color: '{{accent-contrast}}'; } md-toolbar.md-THEME_NAME-theme.md-warn { background-color: '{{warn-color}}'; color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme { color: '{{background-A100}}'; } md-tooltip.md-THEME_NAME-theme .md-background { background-color: '{{foreground-2}}'; }");
-})();
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/bower.json
deleted file mode 100644
index 52623b3f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-dialog",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-backdrop": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css
deleted file mode 100644
index d69b1259..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css
+++ /dev/null
@@ -1,12 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-dialog.md-THEME_NAME-theme {
- border-radius: 4px;
- background-color: '{{background-color}}'; }
- md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions {
- border-top-color: '{{foreground-4}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css
deleted file mode 100644
index 9ae8431b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:'{{background-color}}'}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions{border-top-color:'{{foreground-4}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.css
deleted file mode 100644
index 12cc2a57..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.css
+++ /dev/null
@@ -1,111 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-dialog-is-showing {
- max-height: 100%; }
-
-.md-dialog-container {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 80; }
-
-md-dialog {
- opacity: 0;
- min-width: 240px;
- max-width: 80%;
- max-height: 80%;
- position: relative;
- overflow: hidden;
- box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.14), 0px 16px 24px 2px rgba(0, 0, 0, 0.098), 0px 6px 30px 5px rgba(0, 0, 0, 0.084);
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- md-dialog.transition-in {
- opacity: 1;
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate3d(0, 0, 0) scale(1);
- transform: translate3d(0, 0, 0) scale(1); }
- md-dialog.transition-out {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate3d(0, 100%, 0) scale(0.2);
- transform: translate3d(0, 100%, 0) scale(0.2); }
- md-dialog > form {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- overflow: auto; }
- md-dialog md-dialog-content {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- padding: 24px;
- overflow: auto;
- -webkit-overflow-scrolling: touch; }
- md-dialog md-dialog-content:not([layout=row]) > *:first-child:not(.md-subheader) {
- margin-top: 0; }
- md-dialog md-dialog-content:focus {
- outline: none; }
- md-dialog md-dialog-content .md-subheader {
- margin: 0; }
- md-dialog md-dialog-content .md-subheader.sticky-clone {
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16); }
- md-dialog md-dialog-content.sticky-container {
- padding: 0; }
- md-dialog md-dialog-content.sticky-container > div {
- padding: 24px;
- padding-top: 0; }
- md-dialog .md-actions {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2;
- box-sizing: border-box;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end;
- margin-bottom: 0;
- padding-right: 8px;
- padding-left: 16px;
- min-height: 52px; }
- md-dialog .md-actions .md-button {
- margin-bottom: 8px;
- margin-left: 8px;
- margin-right: 0;
- margin-top: 8px; }
- md-dialog.md-content-overflow .md-actions {
- border-top-width: 1px;
- border-top-style: solid; }
-
-@media screen and (-ms-high-contrast: active) {
- md-dialog {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.js
deleted file mode 100644
index c0df1596..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.js
+++ /dev/null
@@ -1,713 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.dialog
- */
-angular.module('material.components.dialog', [
- 'material.core',
- 'material.components.backdrop'
-])
- .directive('mdDialog', MdDialogDirective)
- .provider('$mdDialog', MdDialogProvider);
-
-function MdDialogDirective($$rAF, $mdTheming) {
- return {
- restrict: 'E',
- link: function(scope, element, attr) {
- $mdTheming(element);
- $$rAF(function() {
- var content = element[0].querySelector('md-dialog-content');
- if (content && content.scrollHeight > content.clientHeight) {
- element.addClass('md-content-overflow');
- }
- });
- }
- };
-}
-MdDialogDirective.$inject = ["$$rAF", "$mdTheming"];
-
-/**
- * @ngdoc service
- * @name $mdDialog
- * @module material.components.dialog
- *
- * @description
- * `$mdDialog` opens a dialog over the app to inform users about critical information or require
- * them to make decisions. There are two approaches for setup: a simple promise API
- * and regular object syntax.
- *
- * ## Restrictions
- *
- * - The dialog is always given an isolate scope.
- * - The dialog's template must have an outer `<md-dialog>` element.
- * Inside, use an `<md-dialog-content>` element for the dialog's content, and use
- * an element with class `md-actions` for the dialog's actions.
- * - Dialogs must cover the entire application to keep interactions inside of them.
- * Use the `parent` option to change where dialogs are appended.
- *
- * ## Sizing
- * - Complex dialogs can be sized with `flex="percentage"`, i.e. `flex="66"`.
- * - Default max-width is 80% of the `rootElement` or `parent`.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-app="demoApp" ng-controller="EmployeeController">
- * <div>
- * <md-button ng-click="showAlert()" class="md-raised md-warn">
- * Employee Alert!
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="showDialog($event)" class="md-raised">
- * Custom Dialog
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="closeAlert()" ng-disabled="!hasAlert()" class="md-raised">
- * Close Alert
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="showGreeting($event)" class="md-raised md-primary" >
- * Greet Employee
- * </md-button>
- * </div>
- * </div>
- * </hljs>
- *
- * ### JavaScript: object syntax
- * <hljs lang="js">
- * (function(angular, undefined){
- * "use strict";
- *
- * angular
- * .module('demoApp', ['ngMaterial'])
- * .controller('AppCtrl', AppController);
- *
- * function AppController($scope, $mdDialog) {
- * var alert;
- * $scope.showAlert = showAlert;
- * $scope.showDialog = showDialog;
- * $scope.items = [1, 2, 3];
- *
- * // Internal method
- * function showAlert() {
- * alert = $mdDialog.alert({
- * title: 'Attention',
- * content: 'This is an example of how easy dialogs can be!',
- * ok: 'Close'
- * });
- *
- * $mdDialog
- * .show( alert )
- * .finally(function() {
- * alert = undefined;
- * });
- * }
- *
- * function showDialog($event) {
- * var parentEl = angular.element(document.body);
- * $mdDialog.show({
- * parent: parentEl,
- * targetEvent: $event,
- * template:
- * '<md-dialog aria-label="List dialog">' +
- * ' <md-dialog-content>'+
- * ' <md-list>'+
- * ' <md-list-item ng-repeat="item in items">'+
- * ' <p>Number {{item}}</p>' +
- * ' </md-item>'+
- * ' </md-list>'+
- * ' </md-dialog-content>' +
- * ' <div class="md-actions">' +
- * ' <md-button ng-click="closeDialog()" class="md-primary">' +
- * ' Close Dialog' +
- * ' </md-button>' +
- * ' </div>' +
- * '</md-dialog>',
- * locals: {
- * items: $scope.items
- * },
- * controller: DialogController
- * });
- * function DialogController($scope, $mdDialog, items) {
- * $scope.items = items;
- * $scope.closeDialog = function() {
- * $mdDialog.hide();
- * }
- * }
- * }
- * }
- * })(angular);
- * </hljs>
- *
- * ### JavaScript: promise API syntax, custom dialog template
- * <hljs lang="js">
- * (function(angular, undefined){
- * "use strict";
- *
- * angular
- * .module('demoApp', ['ngMaterial'])
- * .controller('EmployeeController', EmployeeEditor)
- * .controller('GreetingController', GreetingController);
- *
- * // Fictitious Employee Editor to show how to use simple and complex dialogs.
- *
- * function EmployeeEditor($scope, $mdDialog) {
- * var alert;
- *
- * $scope.showAlert = showAlert;
- * $scope.closeAlert = closeAlert;
- * $scope.showGreeting = showCustomGreeting;
- *
- * $scope.hasAlert = function() { return !!alert };
- * $scope.userName = $scope.userName || 'Bobby';
- *
- * // Dialog #1 - Show simple alert dialog and cache
- * // reference to dialog instance
- *
- * function showAlert() {
- * alert = $mdDialog.alert()
- * .title('Attention, ' + $scope.userName)
- * .content('This is an example of how easy dialogs can be!')
- * .ok('Close');
- *
- * $mdDialog
- * .show( alert )
- * .finally(function() {
- * alert = undefined;
- * });
- * }
- *
- * // Close the specified dialog instance and resolve with 'finished' flag
- * // Normally this is not needed, just use '$mdDialog.hide()' to close
- * // the most recent dialog popup.
- *
- * function closeAlert() {
- * $mdDialog.hide( alert, "finished" );
- * alert = undefined;
- * }
- *
- * // Dialog #2 - Demonstrate more complex dialogs construction and popup.
- *
- * function showCustomGreeting($event) {
- * $mdDialog.show({
- * targetEvent: $event,
- * template:
- * '<md-dialog>' +
- *
- * ' <md-dialog-content>Hello {{ employee }}!</md-dialog-content>' +
- *
- * ' <div class="md-actions">' +
- * ' <md-button ng-click="closeDialog()" class="md-primary">' +
- * ' Close Greeting' +
- * ' </md-button>' +
- * ' </div>' +
- * '</md-dialog>',
- * controller: 'GreetingController',
- * onComplete: afterShowAnimation,
- * locals: { employee: $scope.userName }
- * });
- *
- * // When the 'enter' animation finishes...
- *
- * function afterShowAnimation(scope, element, options) {
- * // post-show code here: DOM element focus, etc.
- * }
- * }
- *
- * // Dialog #3 - Demonstrate use of ControllerAs and passing $scope to dialog
- * // Here we used ng-controller="GreetingController as vm" and
- * // $scope.vm === <controller instance>
- *
- * function showCustomGreeting() {
- *
- * $mdDialog.show({
- * clickOutsideToClose: true,
- *
- * scope: $scope, // use parent scope in template
- * preserveScope: true, // do not forget this if use parent scope
-
- * // Since GreetingController is instantiated with ControllerAs syntax
- * // AND we are passing the parent '$scope' to the dialog, we MUST
- * // use 'vm.<xxx>' in the template markup
- *
- * template: '<md-dialog>' +
- * ' <md-dialog-content>' +
- * ' Hi There {{vm.employee}}' +
- * ' </md-dialog-content>' +
- * '</md-dialog>',
- *
- * controller: function DialogController($scope, $mdDialog) {
- * $scope.closeDialog = function() {
- * $mdDialog.hide();
- * }
- * }
- * });
- * }
- *
- * }
- *
- * // Greeting controller used with the more complex 'showCustomGreeting()' custom dialog
- *
- * function GreetingController($scope, $mdDialog, employee) {
- * // Assigned from construction <code>locals</code> options...
- * $scope.employee = employee;
- *
- * $scope.closeDialog = function() {
- * // Easily hides most recent dialog shown...
- * // no specific instance reference is needed.
- * $mdDialog.hide();
- * };
- * }
- *
- * })(angular);
- * </hljs>
- */
-
- /**
- * @ngdoc method
- * @name $mdDialog#alert
- *
- * @description
- * Builds a preconfigured dialog with the specified message.
- *
- * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
- *
- * - $mdDialogPreset#title(string) - sets title to string
- * - $mdDialogPreset#content(string) - sets content / message to string
- * - $mdDialogPreset#ok(string) - sets okay button text to string
- * - $mdDialogPreset#theme(string) - sets the theme of the dialog
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdDialog#confirm
- *
- * @description
- * Builds a preconfigured dialog with the specified message. You can call show and the promise returned
- * will be resolved only if the user clicks the confirm action on the dialog.
- *
- * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
- *
- * Additionally, it supports the following methods:
- *
- * - $mdDialogPreset#title(string) - sets title to string
- * - $mdDialogPreset#content(string) - sets content / message to string
- * - $mdDialogPreset#ok(string) - sets okay button text to string
- * - $mdDialogPreset#cancel(string) - sets cancel button text to string
- * - $mdDialogPreset#theme(string) - sets the theme of the dialog
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#show
- *
- * @description
- * Show a dialog with the specified options.
- *
- * @param {object} optionsOrPreset Either provide an `$mdDialogPreset` returned from `alert()`, and
- * `confirm()`, or an options object with the following properties:
- * - `templateUrl` - `{string=}`: The url of a template that will be used as the content
- * of the dialog.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual template string.
- * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
- * the location of the click will be used as the starting point for the opening animation
- * of the the dialog.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified,
- * it will create a new isolate scope.
- * This scope will be destroyed when the dialog is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the dialog is open.
- * Default true.
- * - `hasBackdrop` - `{boolean=}`: Whether there should be an opaque backdrop behind the dialog.
- * Default true.
- * - `clickOutsideToClose` - `{boolean=}`: Whether the user can click outside the dialog to
- * close it. Default false.
- * - `escapeToClose` - `{boolean=}`: Whether the user can press escape to close the dialog.
- * Default true.
- * - `focusOnOpen` - `{boolean=}`: An option to override focus behavior on open. Only disable if
- * focusing some other way, as focus management is required for dialogs to be accessible.
- * Defaults to true.
- * - `controller` - `{string=}`: The controller to associate with the dialog. The controller
- * will be injected with the local `$mdDialog`, which passes along a scope for the dialog.
- * - `locals` - `{object=}`: An object containing key/value pairs. The keys will be used as names
- * of values to inject into the controller. For example, `locals: {three: 3}` would inject
- * `three` into the controller, with the value 3. If `bindToController` is true, they will be
- * copied to the controller instead.
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in.
- * These values will not be available until after initialization.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values, and the
- * dialog will not open until all of the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the dialog to. Defaults to appending
- * to the root element of the application.
- * - `onComplete` `{function=}`: Callback function used to announce when the show() action is
- * finished.
- *
- * @returns {promise} A promise that can be resolved with `$mdDialog.hide()` or
- * rejected with `$mdDialog.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#hide
- *
- * @description
- * Hide an existing dialog and resolve the promise returned from `$mdDialog.show()`.
- *
- * @param {*=} response An argument for the resolved promise.
- *
- * @returns {promise} A promise that is resolved when the dialog has been closed.
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#cancel
- *
- * @description
- * Hide an existing dialog and reject the promise returned from `$mdDialog.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- * @returns {promise} A promise that is resolved when the dialog has been closed.
- */
-
-function MdDialogProvider($$interimElementProvider) {
-
- var alertDialogMethods = ['title', 'content', 'ariaLabel', 'ok'];
-
- advancedDialogOptions.$inject = ["$mdDialog", "$mdTheming"];
- dialogDefaultOptions.$inject = ["$mdAria", "$document", "$mdUtil", "$mdConstant", "$mdTheming", "$mdDialog", "$timeout", "$rootElement", "$animate", "$$rAF", "$q"];
- return $$interimElementProvider('$mdDialog')
- .setDefaults({
- methods: ['disableParentScroll', 'hasBackdrop', 'clickOutsideToClose', 'escapeToClose', 'targetEvent', 'parent'],
- options: dialogDefaultOptions
- })
- .addPreset('alert', {
- methods: ['title', 'content', 'ariaLabel', 'ok', 'theme'],
- options: advancedDialogOptions
- })
- .addPreset('confirm', {
- methods: ['title', 'content', 'ariaLabel', 'ok', 'cancel', 'theme'],
- options: advancedDialogOptions
- });
-
- /* ngInject */
- function advancedDialogOptions($mdDialog, $mdTheming) {
- return {
- template: [
- '<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}">',
- '<md-dialog-content role="document" tabIndex="-1">',
- '<h2 class="md-title">{{ dialog.title }}</h2>',
- '<p>{{ dialog.content }}</p>',
- '</md-dialog-content>',
- '<div class="md-actions">',
- '<md-button ng-if="dialog.$type == \'confirm\'"' +
- ' ng-click="dialog.abort()" class="md-primary">',
- '{{ dialog.cancel }}',
- '</md-button>',
- '<md-button ng-click="dialog.hide()" class="md-primary">',
- '{{ dialog.ok }}',
- '</md-button>',
- '</div>',
- '</md-dialog>'
- ].join(''),
- controller: function mdDialogCtrl() {
- this.hide = function() {
- $mdDialog.hide(true);
- };
- this.abort = function() {
- $mdDialog.cancel();
- };
- },
- controllerAs: 'dialog',
- bindToController: true,
- theme: $mdTheming.defaultTheme()
- };
- }
-
- /* ngInject */
- function dialogDefaultOptions($mdAria, $document, $mdUtil, $mdConstant, $mdTheming, $mdDialog, $timeout, $rootElement, $animate, $$rAF, $q) {
- return {
- hasBackdrop: true,
- isolateScope: true,
- onShow: onShow,
- onRemove: onRemove,
- clickOutsideToClose: false,
- escapeToClose: true,
- targetEvent: null,
- focusOnOpen: true,
- disableParentScroll: true,
- transformTemplate: function(template) {
- return '<div class="md-dialog-container">' + template + '</div>';
- }
- };
-
- function trapFocus(ev) {
- var dialog = document.querySelector('md-dialog');
-
- if (dialog && !dialog.contains(ev.target)) {
- ev.stopImmediatePropagation();
- dialog.focus();
- }
- }
-
- // On show method for dialogs
- function onShow(scope, element, options) {
- angular.element($document[0].body).addClass('md-dialog-is-showing');
- element = $mdUtil.extractElementByName(element, 'md-dialog');
-
- // Incase the user provides a raw dom element, always wrap it in jqLite
- options.parent = angular.element(options.parent);
-
- options.popInTarget = angular.element((options.targetEvent || {}).target);
- var closeButton = findCloseButton();
-
- if (options.hasBackdrop) {
- // Fix for IE 10
- var computeFrom = (options.parent[0] == $document[0].body && $document[0].documentElement
- && $document[0].documentElement.scrollTop) ? angular.element($document[0].documentElement) : options.parent;
- var parentOffset = computeFrom.prop('scrollTop');
- options.backdrop = angular.element('<md-backdrop class="md-dialog-backdrop md-opaque">');
- options.backdrop.css('top', parentOffset +'px');
- $mdTheming.inherit(options.backdrop, options.parent);
- $animate.enter(options.backdrop, options.parent);
- element.css('top', parentOffset +'px');
- }
-
- var role = 'dialog',
- elementToFocus = closeButton;
-
- if (options.$type === 'alert') {
- role = 'alertdialog';
- elementToFocus = element.find('md-dialog-content');
- }
-
- configureAria(element.find('md-dialog'), role, options);
-
- document.addEventListener('focus', trapFocus, true);
-
- if (options.disableParentScroll) {
- options.lastOverflow = options.parent.css('overflow');
- options.parent.css('overflow', 'hidden');
- }
-
- return dialogPopIn(
- element,
- options.parent,
- options.popInTarget && options.popInTarget.length && options.popInTarget
- )
- .then(function() {
-
- applyAriaToSiblings(element, true);
-
- if (options.escapeToClose) {
- options.rootElementKeyupCallback = function(e) {
- if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
- $timeout($mdDialog.cancel);
- }
- };
- $rootElement.on('keyup', options.rootElementKeyupCallback);
- }
-
- if (options.clickOutsideToClose) {
- options.dialogClickOutsideCallback = function(ev) {
- // Only close if we click the flex container outside the backdrop
- if (ev.target === element[0]) {
- $timeout($mdDialog.cancel);
- }
- };
- element.on('click', options.dialogClickOutsideCallback);
- }
-
- if (options.focusOnOpen) {
- elementToFocus.focus();
- }
- });
-
-
- function findCloseButton() {
- //If no element with class dialog-close, try to find the last
- //button child in md-actions and assume it is a close button
- var closeButton = element[0].querySelector('.dialog-close');
- if (!closeButton) {
- var actionButtons = element[0].querySelectorAll('.md-actions button');
- closeButton = actionButtons[ actionButtons.length - 1 ];
- }
- return angular.element(closeButton);
- }
-
- }
-
- // On remove function for all dialogs
- function onRemove(scope, element, options) {
- angular.element($document[0].body).removeClass('md-dialog-is-showing');
-
- if (options.backdrop) {
- $animate.leave(options.backdrop);
- }
- if (options.disableParentScroll) {
- options.parent.css('overflow', options.lastOverflow);
- delete options.lastOverflow;
- }
- if (options.escapeToClose) {
- $rootElement.off('keyup', options.rootElementKeyupCallback);
- }
- if (options.clickOutsideToClose) {
- element.off('click', options.dialogClickOutsideCallback);
- }
-
- applyAriaToSiblings(element, false);
-
- document.removeEventListener('focus', trapFocus, true);
-
- return dialogPopOut(
- element,
- options.parent,
- options.popInTarget && options.popInTarget.length && options.popInTarget
- ).then(function() {
- element.remove();
- options.popInTarget && options.popInTarget.focus();
- });
-
- }
-
- /**
- * Inject ARIA-specific attributes appropriate for Dialogs
- */
- function configureAria(element, role, options) {
-
- element.attr({
- 'role': role,
- 'tabIndex': '-1'
- });
-
- var dialogContent = element.find('md-dialog-content');
- if (dialogContent.length === 0){
- dialogContent = element;
- }
-
- var dialogId = element.attr('id') || ('dialog_' + $mdUtil.nextUid());
- dialogContent.attr('id', dialogId);
- element.attr('aria-describedby', dialogId);
-
- if (options.ariaLabel) {
- $mdAria.expect(element, 'aria-label', options.ariaLabel);
- }
- else {
- $mdAria.expectAsync(element, 'aria-label', function() {
- var words = dialogContent.text().split(/\s+/);
- if (words.length > 3) words = words.slice(0,3).concat('...');
- return words.join(' ');
- });
- }
- }
- /**
- * Utility function to filter out raw DOM nodes
- */
- function isNodeOneOf(elem, nodeTypeArray) {
- if (nodeTypeArray.indexOf(elem.nodeName) !== -1) {
- return true;
- }
- }
- /**
- * Walk DOM to apply or remove aria-hidden on sibling nodes
- * and parent sibling nodes
- *
- * Prevents screen reader interaction behind modal window
- * on swipe interfaces
- */
- function applyAriaToSiblings(element, value) {
- var attribute = 'aria-hidden';
-
- // get raw DOM node
- element = element[0];
-
- function walkDOM(element) {
- while (element.parentNode) {
- if (element === document.body) {
- return;
- }
- var children = element.parentNode.children;
- for (var i = 0; i < children.length; i++) {
- // skip over child if it is an ascendant of the dialog
- // or a script or style tag
- if (element !== children[i] && !isNodeOneOf(children[i], ['SCRIPT', 'STYLE'])) {
- children[i].setAttribute(attribute, value);
- }
- }
-
- walkDOM(element = element.parentNode);
- }
- }
- walkDOM(element);
- }
-
- function dialogPopIn(container, parentElement, clickElement) {
- var dialogEl = container.find('md-dialog');
-
- parentElement.append(container);
- transformToClickElement(dialogEl, clickElement);
-
- $$rAF(function() {
- dialogEl.addClass('transition-in')
- .css($mdConstant.CSS.TRANSFORM, '');
- });
-
- return $mdUtil.transitionEndPromise(dialogEl);
- }
-
- function dialogPopOut(container, parentElement, clickElement) {
- var dialogEl = container.find('md-dialog');
-
- dialogEl.addClass('transition-out').removeClass('transition-in');
- transformToClickElement(dialogEl, clickElement);
-
- return $mdUtil.transitionEndPromise(dialogEl);
- }
-
- function transformToClickElement(dialogEl, clickElement) {
- if (clickElement) {
- var clickRect = clickElement[0].getBoundingClientRect();
- var dialogRect = dialogEl[0].getBoundingClientRect();
-
- var scaleX = Math.min(0.5, clickRect.width / dialogRect.width);
- var scaleY = Math.min(0.5, clickRect.height / dialogRect.height);
-
- dialogEl.css($mdConstant.CSS.TRANSFORM, 'translate3d(' +
- (-dialogRect.left + clickRect.left + clickRect.width/2 - dialogRect.width/2) + 'px,' +
- (-dialogRect.top + clickRect.top + clickRect.height/2 - dialogRect.height/2) + 'px,' +
- '0) scale(' + scaleX + ',' + scaleY + ')'
- );
- }
- }
-
- function dialogTransitionEnd(dialogEl) {
- var deferred = $q.defer();
- dialogEl.on($mdConstant.CSS.TRANSITIONEND, finished);
- function finished(ev) {
- //Make sure this transitionend didn't bubble up from a child
- if (ev.target === dialogEl[0]) {
- dialogEl.off($mdConstant.CSS.TRANSITIONEND, finished);
- deferred.resolve();
- }
- }
- return deferred.promise;
- }
-
- }
-}
-MdDialogProvider.$inject = ["$$interimElementProvider"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.css
deleted file mode 100644
index 9d29c13a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-dialog-is-showing{max-height:100%}.md-dialog-container{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:80}md-dialog{opacity:0;min-width:240px;max-width:80%;max-height:80%;position:relative;overflow:hidden;box-shadow:0 8px 10px -5px rgba(0,0,0,.14),0 16px 24px 2px rgba(0,0,0,.098),0 6px 30px 5px rgba(0,0,0,.084);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}md-dialog.transition-in{opacity:1;transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}md-dialog.transition-out{transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transform:translate3d(0,100%,0) scale(.2);transform:translate3d(0,100%,0) scale(.2)}md-dialog>form{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:auto}md-dialog md-dialog-content{-webkit-order:1;-ms-flex-order:1;order:1;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:24px;overflow:auto;-webkit-overflow-scrolling:touch}md-dialog md-dialog-content:not([layout=row])>:first-child:not(.md-subheader){margin-top:0}md-dialog md-dialog-content:focus{outline:0}md-dialog md-dialog-content .md-subheader{margin:0}md-dialog md-dialog-content .md-subheader.sticky-clone{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}md-dialog md-dialog-content.sticky-container{padding:0}md-dialog md-dialog-content.sticky-container>div{padding:0 24px 24px}md-dialog .md-actions{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-order:2;-ms-flex-order:2;order:2;box-sizing:border-box;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:0;padding-right:8px;padding-left:16px;min-height:52px}md-dialog .md-actions .md-button{margin:8px 0 8px 8px}md-dialog.md-content-overflow .md-actions{border-top-width:1px;border-top-style:solid}@media screen and (-ms-high-contrast:active){md-dialog{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.js
deleted file mode 100644
index 597f83fb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function o(e,t){return{restrict:"E",link:function(n,o,a){t(o),e(function(){var e=o[0].querySelector("md-dialog-content");e&&e.scrollHeight>e.clientHeight&&o.addClass("md-content-overflow")})}}}function a(e){function n(e,t){return{template:['<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}">','<md-dialog-content role="document" tabIndex="-1">','<h2 class="md-title">{{ dialog.title }}</h2>',"<p>{{ dialog.content }}</p>","</md-dialog-content>",'<div class="md-actions">','<md-button ng-if="dialog.$type == \'confirm\'" ng-click="dialog.abort()" class="md-primary">',"{{ dialog.cancel }}","</md-button>",'<md-button ng-click="dialog.hide()" class="md-primary">',"{{ dialog.ok }}","</md-button>","</div>","</md-dialog>"].join(""),controller:function(){this.hide=function(){e.hide(!0)},this.abort=function(){e.cancel()}},controllerAs:"dialog",bindToController:!0,theme:t.defaultTheme()}}function o(e,n,o,a,i,l,r,d,c,s,m){function p(e){var t=document.querySelector("md-dialog");t&&!t.contains(e.target)&&(e.stopImmediatePropagation(),t.focus())}function u(e,s,m){function u(){var e=s[0].querySelector(".dialog-close");if(!e){var n=s[0].querySelectorAll(".md-actions button");e=n[n.length-1]}return t.element(e)}t.element(n[0].body).addClass("md-dialog-is-showing"),s=o.extractElementByName(s,"md-dialog"),m.parent=t.element(m.parent),m.popInTarget=t.element((m.targetEvent||{}).target);var g=u();if(m.hasBackdrop){var h=m.parent[0]==n[0].body&&n[0].documentElement&&n[0].documentElement.scrollTop?t.element(n[0].documentElement):m.parent,k=h.prop("scrollTop");m.backdrop=t.element('<md-backdrop class="md-dialog-backdrop md-opaque">'),m.backdrop.css("top",k+"px"),i.inherit(m.backdrop,m.parent),c.enter(m.backdrop,m.parent),s.css("top",k+"px")}var C="dialog",T=g;return"alert"===m.$type&&(C="alertdialog",T=s.find("md-dialog-content")),f(s.find("md-dialog"),C,m),document.addEventListener("focus",p,!0),m.disableParentScroll&&(m.lastOverflow=m.parent.css("overflow"),m.parent.css("overflow","hidden")),v(s,m.parent,m.popInTarget&&m.popInTarget.length&&m.popInTarget).then(function(){b(s,!0),m.escapeToClose&&(m.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&r(l.cancel)},d.on("keyup",m.rootElementKeyupCallback)),m.clickOutsideToClose&&(m.dialogClickOutsideCallback=function(e){e.target===s[0]&&r(l.cancel)},s.on("click",m.dialogClickOutsideCallback)),m.focusOnOpen&&T.focus()})}function g(e,o,a){return t.element(n[0].body).removeClass("md-dialog-is-showing"),a.backdrop&&c.leave(a.backdrop),a.disableParentScroll&&(a.parent.css("overflow",a.lastOverflow),delete a.lastOverflow),a.escapeToClose&&d.off("keyup",a.rootElementKeyupCallback),a.clickOutsideToClose&&o.off("click",a.dialogClickOutsideCallback),b(o,!1),document.removeEventListener("focus",p,!0),k(o,a.parent,a.popInTarget&&a.popInTarget.length&&a.popInTarget).then(function(){o.remove(),a.popInTarget&&a.popInTarget.focus()})}function f(t,n,a){t.attr({role:n,tabIndex:"-1"});var i=t.find("md-dialog-content");0===i.length&&(i=t);var l=t.attr("id")||"dialog_"+o.nextUid();i.attr("id",l),t.attr("aria-describedby",l),a.ariaLabel?e.expect(t,"aria-label",a.ariaLabel):e.expectAsync(t,"aria-label",function(){var e=i.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")})}function h(e,t){return-1!==t.indexOf(e.nodeName)?!0:void 0}function b(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var a=e.parentNode.children,i=0;i<a.length;i++)e===a[i]||h(a[i],["SCRIPT","STYLE"])||a[i].setAttribute(o,t);n(e=e.parentNode)}}var o="aria-hidden";e=e[0],n(e)}function v(e,t,n){var i=e.find("md-dialog");return t.append(e),C(i,n),s(function(){i.addClass("transition-in").css(a.CSS.TRANSFORM,"")}),o.transitionEndPromise(i)}function k(e,t,n){var a=e.find("md-dialog");return a.addClass("transition-out").removeClass("transition-in"),C(a,n),o.transitionEndPromise(a)}function C(e,t){if(t){var n=t[0].getBoundingClientRect(),o=e[0].getBoundingClientRect(),i=Math.min(.5,n.width/o.width),l=Math.min(.5,n.height/o.height);e.css(a.CSS.TRANSFORM,"translate3d("+(-o.left+n.left+n.width/2-o.width/2)+"px,"+(-o.top+n.top+n.height/2-o.height/2)+"px,0) scale("+i+","+l+")")}}return{hasBackdrop:!0,isolateScope:!0,onShow:u,onRemove:g,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,focusOnOpen:!0,disableParentScroll:!0,transformTemplate:function(e){return'<div class="md-dialog-container">'+e+"</div>"}}}return n.$inject=["$mdDialog","$mdTheming"],o.$inject=["$mdAria","$document","$mdUtil","$mdConstant","$mdTheming","$mdDialog","$timeout","$rootElement","$animate","$$rAF","$q"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","parent"],options:o}).addPreset("alert",{methods:["title","content","ariaLabel","ok","theme"],options:n}).addPreset("confirm",{methods:["title","content","ariaLabel","ok","cancel","theme"],options:n})}t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",o).provider("$mdDialog",a),o.$inject=["$$rAF","$mdTheming"],a.$inject=["$$interimElementProvider"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/bower.json
deleted file mode 100644
index bdbc18c3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-divider",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider-default-theme.css
deleted file mode 100644
index 4e2fb829..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider-default-theme.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-divider.md-THEME_NAME-theme {
- border-top-color: '{{foreground-4}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider-default-theme.min.css
deleted file mode 100644
index bcf8e57b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-divider.md-THEME_NAME-theme{border-top-color:'{{foreground-4}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.css
deleted file mode 100644
index 270c06b5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.css
+++ /dev/null
@@ -1,14 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-divider {
- display: block;
- border-top-width: 1px;
- border-top-style: solid;
- margin: 0; }
- md-divider[md-inset] {
- margin-left: 80px; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.js
deleted file mode 100644
index ac834389..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.divider
- * @description Divider module!
- */
-angular.module('material.components.divider', [
- 'material.core'
-])
- .directive('mdDivider', MdDividerDirective);
-
-/**
- * @ngdoc directive
- * @name mdDivider
- * @module material.components.divider
- * @restrict E
- *
- * @description
- * Dividers group and separate content within lists and page layouts using strong visual and spatial distinctions. This divider is a thin rule, lightweight enough to not distract the user from content.
- *
- * @param {boolean=} md-inset Add this attribute to activate the inset divider style.
- * @usage
- * <hljs lang="html">
- * <md-divider></md-divider>
- *
- * <md-divider md-inset></md-divider>
- * </hljs>
- *
- */
-function MdDividerDirective($mdTheming) {
- return {
- restrict: 'E',
- link: $mdTheming
- };
-}
-MdDividerDirective.$inject = ["$mdTheming"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.min.css
deleted file mode 100644
index b99f02c7..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-divider{display:block;border-top-width:1px;border-top-style:solid;margin:0}md-divider[md-inset]{margin-left:80px} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.min.js
deleted file mode 100644
index c3acac45..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/divider/divider.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(i,e,n){"use strict";function r(i){return{restrict:"E",link:i}}e.module("material.components.divider",["material.core"]).directive("mdDivider",r),r.$inject=["$mdTheming"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/bower.json
deleted file mode 100644
index bb8c78a0..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-gridList",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.css
deleted file mode 100644
index 2705de84..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.css
+++ /dev/null
@@ -1,68 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-grid-list {
- box-sizing: border-box;
- display: block;
- position: relative; }
- md-grid-list *, md-grid-list *:before, md-grid-list *:after {
- box-sizing: border-box; }
- md-grid-list md-grid-tile {
- display: block;
- position: absolute; }
- md-grid-list md-grid-tile figure {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- height: 100%;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 0;
- margin: 0; }
- md-grid-list md-grid-tile md-grid-tile-header, md-grid-list md-grid-tile md-grid-tile-footer {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- height: 48px;
- color: #fff;
- background: rgba(0, 0, 0, 0.18);
- overflow: hidden;
- position: absolute;
- left: 0;
- right: 0; }
- md-grid-list md-grid-tile md-grid-tile-header h3, md-grid-list md-grid-tile md-grid-tile-header h4, md-grid-list md-grid-tile md-grid-tile-footer h3, md-grid-list md-grid-tile md-grid-tile-footer h4 {
- font-weight: 400;
- margin: 0 0 0 16px; }
- md-grid-list md-grid-tile md-grid-tile-header h3, md-grid-list md-grid-tile md-grid-tile-footer h3 {
- font-size: 14px; }
- md-grid-list md-grid-tile md-grid-tile-header h4, md-grid-list md-grid-tile md-grid-tile-footer h4 {
- font-size: 12px; }
- md-grid-list md-grid-tile md-grid-tile-header {
- top: 0; }
- md-grid-list md-grid-tile md-grid-tile-footer {
- bottom: 0; }
-
-@media screen and (-ms-high-contrast: active) {
- md-grid-tile {
- border: 1px solid #fff; }
- md-grid-tile-footer {
- border-top: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.js
deleted file mode 100644
index adffa314..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.js
+++ /dev/null
@@ -1,763 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.gridList
- */
-angular.module('material.components.gridList', ['material.core'])
- .directive('mdGridList', GridListDirective)
- .directive('mdGridTile', GridTileDirective)
- .directive('mdGridTileFooter', GridTileCaptionDirective)
- .directive('mdGridTileHeader', GridTileCaptionDirective)
- .factory('$mdGridLayout', GridLayoutFactory);
-
-/**
- * @ngdoc directive
- * @name mdGridList
- * @module material.components.gridList
- * @restrict E
- * @description
- * Grid lists are an alternative to standard list views. Grid lists are distinct
- * from grids used for layouts and other visual presentations.
- *
- * A grid list is best suited to presenting a homogenous data type, typically
- * images, and is optimized for visual comprehension and differentiating between
- * like data types.
- *
- * A grid list is a continuous element consisting of tessellated, regular
- * subdivisions called cells that contain tiles (`md-grid-tile`).
- *
- * <img src="//material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7OVlEaXZ5YmU1Xzg/components_grids_usage2.png"
- * style="width: 300px; height: auto; margin-right: 16px;" alt="Concept of grid explained visually">
- * <img src="//material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7VGhsOE5idWlJWXM/components_grids_usage3.png"
- * style="width: 300px; height: auto;" alt="Grid concepts legend">
- *
- * Cells are arrayed vertically and horizontally within the grid.
- *
- * Tiles hold content and can span one or more cells vertically or horizontally.
- *
- * ### Responsive Attributes
- *
- * The `md-grid-list` directive supports "responsive" attributes, which allow
- * different `md-cols`, `md-gutter` and `md-row-height` values depending on the
- * currently matching media query (as defined in `$mdConstant.MEDIA`).
- *
- * In order to set a responsive attribute, first define the fallback value with
- * the standard attribute name, then add additional attributes with the
- * following convention: `{base-attribute-name}-{media-query-name}="{value}"`
- * (ie. `md-cols-lg="8"`)
- *
- * @param {number} md-cols Number of columns in the grid.
- * @param {string} md-row-height One of
- * <ul>
- * <li>CSS length - Fixed height rows (eg. `8px` or `1rem`)</li>
- * <li>`{width}:{height}` - Ratio of width to height (eg.
- * `md-row-height="16:9"`)</li>
- * <li>`"fit"` - Height will be determined by subdividing the available
- * height by the number of rows</li>
- * </ul>
- * @param {string=} md-gutter The amount of space between tiles in CSS units
- * (default 1px)
- * @param {expression=} md-on-layout Expression to evaluate after layout. Event
- * object is available as `$event`, and contains performance information.
- *
- * @usage
- * Basic:
- * <hljs lang="html">
- * <md-grid-list md-cols="5" md-gutter="1em" md-row-height="4:3">
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Fixed-height rows:
- * <hljs lang="html">
- * <md-grid-list md-cols="4" md-row-height="200px" ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Fit rows:
- * <hljs lang="html">
- * <md-grid-list md-cols="4" md-row-height="fit" style="height: 400px;" ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- *
- * Using responsive attributes:
- * <hljs lang="html">
- * <md-grid-list
- * md-cols-sm="2"
- * md-cols-md="4"
- * md-cols-lg="8"
- * md-cols-gt-lg="12"
- * ...>
- * <md-grid-tile></md-grid-tile>
- * </md-grid-list>
- * </hljs>
- */
-function GridListDirective($interpolate, $mdConstant, $mdGridLayout, $mdMedia) {
- return {
- restrict: 'E',
- controller: GridListController,
- scope: {
- mdOnLayout: '&'
- },
- link: postLink
- };
-
- function postLink(scope, element, attrs, ctrl) {
- // Apply semantics
- element.attr('role', 'list');
-
- // Provide the controller with a way to trigger layouts.
- ctrl.layoutDelegate = layoutDelegate;
-
- var invalidateLayout = angular.bind(ctrl, ctrl.invalidateLayout),
- unwatchAttrs = watchMedia();
- scope.$on('$destroy', unwatchMedia);
-
- /**
- * Watches for changes in media, invalidating layout as necessary.
- */
- function watchMedia() {
- for (var mediaName in $mdConstant.MEDIA) {
- $mdMedia(mediaName); // initialize
- $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
- .addListener(invalidateLayout);
- }
- return $mdMedia.watchResponsiveAttributes(
- ['md-cols', 'md-row-height'], attrs, layoutIfMediaMatch);
- }
-
- function unwatchMedia() {
- ctrl.layoutDelegate = angular.noop;
-
- unwatchAttrs();
- for (var mediaName in $mdConstant.MEDIA) {
- $mdMedia.getQuery($mdConstant.MEDIA[mediaName])
- .removeListener(invalidateLayout);
- }
- }
-
- /**
- * Performs grid layout if the provided mediaName matches the currently
- * active media type.
- */
- function layoutIfMediaMatch(mediaName) {
- if (mediaName == null) {
- // TODO(shyndman): It would be nice to only layout if we have
- // instances of attributes using this media type
- ctrl.invalidateLayout();
- } else if ($mdMedia(mediaName)) {
- ctrl.invalidateLayout();
- }
- }
-
- var lastLayoutProps;
-
- /**
- * Invokes the layout engine, and uses its results to lay out our
- * tile elements.
- *
- * @param {boolean} tilesInvalidated Whether tiles have been
- * added/removed/moved since the last layout. This is to avoid situations
- * where tiles are replaced with properties identical to their removed
- * counterparts.
- */
- function layoutDelegate(tilesInvalidated) {
- var tiles = getTileElements();
- var props = {
- tileSpans: getTileSpans(tiles),
- colCount: getColumnCount(),
- rowMode: getRowMode(),
- rowHeight: getRowHeight(),
- gutter: getGutter()
- };
-
- if (!tilesInvalidated && angular.equals(props, lastLayoutProps)) {
- return;
- }
-
- var performance =
- $mdGridLayout(props.colCount, props.tileSpans, tiles)
- .map(function(tilePositions, rowCount) {
- return {
- grid: {
- element: element,
- style: getGridStyle(props.colCount, rowCount,
- props.gutter, props.rowMode, props.rowHeight)
- },
- tiles: tilePositions.map(function(ps, i) {
- return {
- element: angular.element(tiles[i]),
- style: getTileStyle(ps.position, ps.spans,
- props.colCount, props.rowCount,
- props.gutter, props.rowMode, props.rowHeight)
- }
- })
- }
- })
- .reflow()
- .performance();
-
- // Report layout
- scope.mdOnLayout({
- $event: {
- performance: performance
- }
- });
-
- lastLayoutProps = props;
- }
-
- // Use $interpolate to do some simple string interpolation as a convenience.
-
- var startSymbol = $interpolate.startSymbol();
- var endSymbol = $interpolate.endSymbol();
-
- // Returns an expression wrapped in the interpolator's start and end symbols.
- function expr(exprStr) {
- return startSymbol + exprStr + endSymbol;
- }
-
- // The amount of space a single 1x1 tile would take up (either width or height), used as
- // a basis for other calculations. This consists of taking the base size percent (as would be
- // if evenly dividing the size between cells), and then subtracting the size of one gutter.
- // However, since there are no gutters on the edges, each tile only uses a fration
- // (gutterShare = numGutters / numCells) of the gutter size. (Imagine having one gutter per
- // tile, and then breaking up the extra gutter on the edge evenly among the cells).
- var UNIT = $interpolate(expr('share') + '% - (' + expr('gutter') + ' * ' + expr('gutterShare') + ')');
-
- // The horizontal or vertical position of a tile, e.g., the 'top' or 'left' property value.
- // The position comes the size of a 1x1 tile plus gutter for each previous tile in the
- // row/column (offset).
- var POSITION = $interpolate('calc((' + expr('unit') + ' + ' + expr('gutter') + ') * ' + expr('offset') + ')');
-
- // The actual size of a tile, e.g., width or height, taking rowSpan or colSpan into account.
- // This is computed by multiplying the base unit by the rowSpan/colSpan, and then adding back
- // in the space that the gutter would normally have used (which was already accounted for in
- // the base unit calculation).
- var DIMENSION = $interpolate('calc((' + expr('unit') + ') * ' + expr('span') + ' + (' + expr('span') + ' - 1) * ' + expr('gutter') + ')');
-
- /**
- * Gets the styles applied to a tile element described by the given parameters.
- * @param {{row: number, col: number}} position The row and column indices of the tile.
- * @param {{row: number, col: number}} spans The rowSpan and colSpan of the tile.
- * @param {number} colCount The number of columns.
- * @param {number} rowCount The number of rows.
- * @param {string} gutter The amount of space between tiles. This will be something like
- * '5px' or '2em'.
- * @param {string} rowMode The row height mode. Can be one of:
- * 'fixed': all rows have a fixed size, given by rowHeight,
- * 'ratio': row height defined as a ratio to width, or
- * 'fit': fit to the grid-list element height, divinding evenly among rows.
- * @param {string|number} rowHeight The height of a row. This is only used for 'fixed' mode and
- * for 'ratio' mode. For 'ratio' mode, this is the *ratio* of width-to-height (e.g., 0.75).
- * @returns {Object} Map of CSS properties to be applied to the style element. Will define
- * values for top, left, width, height, marginTop, and paddingTop.
- */
- function getTileStyle(position, spans, colCount, rowCount, gutter, rowMode, rowHeight) {
- // TODO(shyndman): There are style caching opportunities here.
-
- // Percent of the available horizontal space that one column takes up.
- var hShare = (1 / colCount) * 100;
-
- // Fraction of the gutter size that each column takes up.
- var hGutterShare = (colCount - 1) / colCount;
-
- // Base horizontal size of a column.
- var hUnit = UNIT({share: hShare, gutterShare: hGutterShare, gutter: gutter});
-
- // The width and horizontal position of each tile is always calculated the same way, but the
- // height and vertical position depends on the rowMode.
- var style = {
- left: POSITION({ unit: hUnit, offset: position.col, gutter: gutter }),
- width: DIMENSION({ unit: hUnit, span: spans.col, gutter: gutter }),
- // resets
- paddingTop: '',
- marginTop: '',
- top: '',
- height: ''
- };
-
- switch (rowMode) {
- case 'fixed':
- // In fixed mode, simply use the given rowHeight.
- style.top = POSITION({ unit: rowHeight, offset: position.row, gutter: gutter });
- style.height = DIMENSION({ unit: rowHeight, span: spans.row, gutter: gutter });
- break;
-
- case 'ratio':
- // Percent of the available vertical space that one row takes up. Here, rowHeight holds
- // the ratio value. For example, if the width:height ratio is 4:3, rowHeight = 1.333.
- var vShare = hShare / rowHeight;
-
- // Base veritcal size of a row.
- var vUnit = UNIT({ share: vShare, gutterShare: hGutterShare, gutter: gutter });
-
- // padidngTop and marginTop are used to maintain the given aspect ratio, as
- // a percentage-based value for these properties is applied to the *width* of the
- // containing block. See http://www.w3.org/TR/CSS2/box.html#margin-properties
- style.paddingTop = DIMENSION({ unit: vUnit, span: spans.row, gutter: gutter});
- style.marginTop = POSITION({ unit: vUnit, offset: position.row, gutter: gutter });
- break;
-
- case 'fit':
- // Fraction of the gutter size that each column takes up.
- var vGutterShare = (rowCount - 1) / rowCount;
-
- // Percent of the available vertical space that one row takes up.
- var vShare = (1 / rowCount) * 100;
-
- // Base vertical size of a row.
- var vUnit = UNIT({share: vShare, gutterShare: vGutterShare, gutter: gutter});
-
- style.top = POSITION({unit: vUnit, offset: position.row, gutter: gutter});
- style.height = DIMENSION({unit: vUnit, span: spans.row, gutter: gutter});
- break;
- }
-
- return style;
- }
-
- function getGridStyle(colCount, rowCount, gutter, rowMode, rowHeight) {
- var style = {
- height: '',
- paddingBottom: ''
- };
-
- switch(rowMode) {
- case 'fixed':
- style.height = DIMENSION({ unit: rowHeight, span: rowCount, gutter: gutter });
- break;
-
- case 'ratio':
- // rowHeight is width / height
- var hGutterShare = colCount === 1 ? 0 : (colCount - 1) / colCount,
- hShare = (1 / colCount) * 100,
- vShare = hShare * (1 / rowHeight),
- vUnit = UNIT({ share: vShare, gutterShare: hGutterShare, gutter: gutter });
-
- style.paddingBottom = DIMENSION({ unit: vUnit, span: rowCount, gutter: gutter});
- break;
-
- case 'fit':
- // noop, as the height is user set
- break;
- }
-
- return style;
- }
-
- function getTileElements() {
- return [].filter.call(element.children(), function(ele) {
- return ele.tagName == 'MD-GRID-TILE';
- });
- }
-
- /**
- * Gets an array of objects containing the rowspan and colspan for each tile.
- * @returns {Array<{row: number, col: number}>}
- */
- function getTileSpans(tileElements) {
- return [].map.call(tileElements, function(ele) {
- var ctrl = angular.element(ele).controller('mdGridTile');
- return {
- row: parseInt(
- $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1,
- col: parseInt(
- $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-colspan'), 10) || 1
- };
- });
- }
-
- function getColumnCount() {
- var colCount = parseInt($mdMedia.getResponsiveAttribute(attrs, 'md-cols'), 10);
- if (isNaN(colCount)) {
- throw 'md-grid-list: md-cols attribute was not found, or contained a non-numeric value';
- }
- return colCount;
- }
-
- function getGutter() {
- return applyDefaultUnit($mdMedia.getResponsiveAttribute(attrs, 'md-gutter') || 1);
- }
-
- function getRowHeight() {
- var rowHeight = $mdMedia.getResponsiveAttribute(attrs, 'md-row-height');
- switch (getRowMode()) {
- case 'fixed':
- return applyDefaultUnit(rowHeight);
- case 'ratio':
- var whRatio = rowHeight.split(':');
- return parseFloat(whRatio[0]) / parseFloat(whRatio[1]);
- case 'fit':
- return 0; // N/A
- }
- }
-
- function getRowMode() {
- var rowHeight = $mdMedia.getResponsiveAttribute(attrs, 'md-row-height');
- if (rowHeight == 'fit') {
- return 'fit';
- } else if (rowHeight.indexOf(':') !== -1) {
- return 'ratio';
- } else {
- return 'fixed';
- }
- }
-
- function applyDefaultUnit(val) {
- return /\D$/.test(val) ? val : val + 'px';
- }
- }
-}
-GridListDirective.$inject = ["$interpolate", "$mdConstant", "$mdGridLayout", "$mdMedia"];
-
-/* ngInject */
-function GridListController($timeout) {
- this.layoutInvalidated = false;
- this.tilesInvalidated = false;
- this.$timeout_ = $timeout;
- this.layoutDelegate = angular.noop;
-}
-GridListController.$inject = ["$timeout"];
-
-GridListController.prototype = {
- invalidateTiles: function() {
- this.tilesInvalidated = true;
- this.invalidateLayout();
- },
-
- invalidateLayout: function() {
- if (this.layoutInvalidated) {
- return;
- }
- this.layoutInvalidated = true;
- this.$timeout_(angular.bind(this, this.layout));
- },
-
- layout: function() {
- try {
- this.layoutDelegate(this.tilesInvalidated);
- } finally {
- this.layoutInvalidated = false;
- this.tilesInvalidated = false;
- }
- }
-};
-
-
-/* ngInject */
-function GridLayoutFactory($mdUtil) {
- var defaultAnimator = GridTileAnimator;
-
- /**
- * Set the reflow animator callback
- */
- GridLayout.animateWith = function(customAnimator) {
- defaultAnimator = !angular.isFunction(customAnimator) ? GridTileAnimator : customAnimator;
- };
-
- return GridLayout;
-
- /**
- * Publish layout function
- */
- function GridLayout(colCount, tileSpans) {
- var self, layoutInfo, gridStyles, layoutTime, mapTime, reflowTime;
-
- layoutTime = $mdUtil.time(function() {
- layoutInfo = calculateGridFor(colCount, tileSpans);
- });
-
- return self = {
-
- /**
- * An array of objects describing each tile's position in the grid.
- */
- layoutInfo: function() {
- return layoutInfo;
- },
-
- /**
- * Maps grid positioning to an element and a set of styles using the
- * provided updateFn.
- */
- map: function(updateFn) {
- mapTime = $mdUtil.time(function() {
- var info = self.layoutInfo();
- gridStyles = updateFn(info.positioning, info.rowCount);
- });
- return self;
- },
-
- /**
- * Default animator simply sets the element.css( <styles> ). An alternate
- * animator can be provided as an argument. The function has the following
- * signature:
- *
- * function({grid: {element: JQLite, style: Object}, tiles: Array<{element: JQLite, style: Object}>)
- */
- reflow: function(animatorFn) {
- reflowTime = $mdUtil.time(function() {
- var animator = animatorFn || defaultAnimator;
- animator(gridStyles.grid, gridStyles.tiles);
- });
- return self;
- },
-
- /**
- * Timing for the most recent layout run.
- */
- performance: function() {
- return {
- tileCount: tileSpans.length,
- layoutTime: layoutTime,
- mapTime: mapTime,
- reflowTime: reflowTime,
- totalTime: layoutTime + mapTime + reflowTime
- };
- }
- };
- }
-
- /**
- * Default Gridlist animator simple sets the css for each element;
- * NOTE: any transitions effects must be manually set in the CSS.
- * e.g.
- *
- * md-grid-tile {
- * transition: all 700ms ease-out 50ms;
- * }
- *
- */
- function GridTileAnimator(grid, tiles) {
- grid.element.css(grid.style);
- tiles.forEach(function(t) {
- t.element.css(t.style);
- })
- }
-
- /**
- * Calculates the positions of tiles.
- *
- * The algorithm works as follows:
- * An Array<Number> with length colCount (spaceTracker) keeps track of
- * available tiling positions, where elements of value 0 represents an
- * empty position. Space for a tile is reserved by finding a sequence of
- * 0s with length <= than the tile's colspan. When such a space has been
- * found, the occupied tile positions are incremented by the tile's
- * rowspan value, as these positions have become unavailable for that
- * many rows.
- *
- * If the end of a row has been reached without finding space for the
- * tile, spaceTracker's elements are each decremented by 1 to a minimum
- * of 0. Rows are searched in this fashion until space is found.
- */
- function calculateGridFor(colCount, tileSpans) {
- var curCol = 0,
- curRow = 0,
- spaceTracker = newSpaceTracker();
-
- return {
- positioning: tileSpans.map(function(spans, i) {
- return {
- spans: spans,
- position: reserveSpace(spans, i)
- };
- }),
- rowCount: curRow + Math.max.apply(Math, spaceTracker)
- };
-
- function reserveSpace(spans, i) {
- if (spans.col > colCount) {
- throw 'md-grid-list: Tile at position ' + i + ' has a colspan ' +
- '(' + spans.col + ') that exceeds the column count ' +
- '(' + colCount + ')';
- }
-
- var start = 0,
- end = 0;
-
- // TODO(shyndman): This loop isn't strictly necessary if you can
- // determine the minimum number of rows before a space opens up. To do
- // this, recognize that you've iterated across an entire row looking for
- // space, and if so fast-forward by the minimum rowSpan count. Repeat
- // until the required space opens up.
- while (end - start < spans.col) {
- if (curCol >= colCount) {
- nextRow();
- continue;
- }
-
- start = spaceTracker.indexOf(0, curCol);
- if (start === -1 || (end = findEnd(start + 1)) === -1) {
- start = end = 0;
- nextRow();
- continue;
- }
-
- curCol = end + 1;
- }
-
- adjustRow(start, spans.col, spans.row);
- curCol = start + spans.col;
-
- return {
- col: start,
- row: curRow
- };
- }
-
- function nextRow() {
- curCol = 0;
- curRow++;
- adjustRow(0, colCount, -1); // Decrement row spans by one
- }
-
- function adjustRow(from, cols, by) {
- for (var i = from; i < from + cols; i++) {
- spaceTracker[i] = Math.max(spaceTracker[i] + by, 0);
- }
- }
-
- function findEnd(start) {
- var i;
- for (i = start; i < spaceTracker.length; i++) {
- if (spaceTracker[i] !== 0) {
- return i;
- }
- }
-
- if (i === spaceTracker.length) {
- return i;
- }
- }
-
- function newSpaceTracker() {
- var tracker = [];
- for (var i = 0; i < colCount; i++) {
- tracker.push(0);
- }
- return tracker;
- }
- }
-}
-GridLayoutFactory.$inject = ["$mdUtil"];
-
-/**
- * @ngdoc directive
- * @name mdGridTile
- * @module material.components.gridList
- * @restrict E
- * @description
- * Tiles contain the content of an `md-grid-list`. They span one or more grid
- * cells vertically or horizontally, and use `md-grid-tile-{footer,header}` to
- * display secondary content.
- *
- * ### Responsive Attributes
- *
- * The `md-grid-tile` directive supports "responsive" attributes, which allow
- * different `md-rowspan` and `md-colspan` values depending on the currently
- * matching media query (as defined in `$mdConstant.MEDIA`).
- *
- * In order to set a responsive attribute, first define the fallback value with
- * the standard attribute name, then add additional attributes with the
- * following convention: `{base-attribute-name}-{media-query-name}="{value}"`
- * (ie. `md-colspan-sm="4"`)
- *
- * @param {number=} md-colspan The number of columns to span (default 1). Cannot
- * exceed the number of columns in the grid. Supports interpolation.
- * @param {number=} md-rowspan The number of rows to span (default 1). Supports
- * interpolation.
- *
- * @usage
- * With header:
- * <hljs lang="html">
- * <md-grid-tile>
- * <md-grid-tile-header>
- * <h3>This is a header</h3>
- * </md-grid-tile-header>
- * </md-grid-tile>
- * </hljs>
- *
- * With footer:
- * <hljs lang="html">
- * <md-grid-tile>
- * <md-grid-tile-footer>
- * <h3>This is a footer</h3>
- * </md-grid-tile-footer>
- * </md-grid-tile>
- * </hljs>
- *
- * Spanning multiple rows/columns:
- * <hljs lang="html">
- * <md-grid-tile md-colspan="2" md-rowspan="3">
- * </md-grid-tile>
- * </hljs>
- *
- * Responsive attributes:
- * <hljs lang="html">
- * <md-grid-tile md-colspan="1" md-colspan-sm="3" md-colspan-md="5">
- * </md-grid-tile>
- * </hljs>
- */
-function GridTileDirective($mdMedia) {
- return {
- restrict: 'E',
- require: '^mdGridList',
- template: '<figure ng-transclude></figure>',
- transclude: true,
- scope: {},
- // Simple controller that exposes attributes to the grid directive
- controller: ["$attrs", function($attrs) {
- this.$attrs = $attrs;
- }],
- link: postLink
- };
-
- function postLink(scope, element, attrs, gridCtrl) {
- // Apply semantics
- element.attr('role', 'listitem');
-
- // If our colspan or rowspan changes, trigger a layout
- var unwatchAttrs = $mdMedia.watchResponsiveAttributes(['md-colspan', 'md-rowspan'],
- attrs, angular.bind(gridCtrl, gridCtrl.invalidateLayout));
-
- // Tile registration/deregistration
- gridCtrl.invalidateTiles();
- scope.$on('$destroy', function() {
- unwatchAttrs();
- gridCtrl.invalidateLayout();
- });
-
- if (angular.isDefined(scope.$parent.$index)) {
- scope.$watch(function() { return scope.$parent.$index; },
- function indexChanged(newIdx, oldIdx) {
- if (newIdx === oldIdx) {
- return;
- }
- gridCtrl.invalidateTiles();
- });
- }
- }
-}
-GridTileDirective.$inject = ["$mdMedia"];
-
-
-function GridTileCaptionDirective() {
- return {
- template: '<figcaption ng-transclude></figcaption>',
- transclude: true
- };
-}
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.min.css
deleted file mode 100644
index d25d8284..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-grid-list{box-sizing:border-box;display:block;position:relative}md-grid-list *,md-grid-list :after,md-grid-list :before{box-sizing:border-box}md-grid-list md-grid-tile{display:block;position:absolute}md-grid-list md-grid-tile figure{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;padding:0;margin:0}md-grid-list md-grid-tile md-grid-tile-footer,md-grid-list md-grid-tile md-grid-tile-header{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.18);overflow:hidden;position:absolute;left:0;right:0}md-grid-list md-grid-tile md-grid-tile-footer h3,md-grid-list md-grid-tile md-grid-tile-footer h4,md-grid-list md-grid-tile md-grid-tile-header h3,md-grid-list md-grid-tile md-grid-tile-header h4{font-weight:400;margin:0 0 0 16px}md-grid-list md-grid-tile md-grid-tile-footer h3,md-grid-list md-grid-tile md-grid-tile-header h3{font-size:14px}md-grid-list md-grid-tile md-grid-tile-footer h4,md-grid-list md-grid-tile md-grid-tile-header h4{font-size:12px}md-grid-list md-grid-tile md-grid-tile-header{top:0}md-grid-list md-grid-tile md-grid-tile-footer{bottom:0}@media screen and (-ms-high-contrast:active){md-grid-tile{border:1px solid #fff}md-grid-tile-footer{border-top:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.min.js
deleted file mode 100644
index 5b82ed7c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/gridList/gridList.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(t,e,n){"use strict";function i(t,n,i,o){function a(r,a,u,s){function l(){for(var t in n.MEDIA)o(t),o.getQuery(n.MEDIA[t]).addListener(L);return o.watchResponsiveAttributes(["md-cols","md-row-height"],u,d)}function c(){s.layoutDelegate=e.noop,T();for(var t in n.MEDIA)o.getQuery(n.MEDIA[t]).removeListener(L)}function d(t){null==t?s.invalidateLayout():o(t)&&s.invalidateLayout()}function f(t){var n=h(),o={tileSpans:v(n),colCount:w(),rowMode:I(),rowHeight:$(),gutter:y()};if(t||!e.equals(o,M)){var u=i(o.colCount,o.tileSpans,n).map(function(t,i){return{grid:{element:a,style:m(o.colCount,i,o.gutter,o.rowMode,o.rowHeight)},tiles:t.map(function(t,i){return{element:e.element(n[i]),style:g(t.position,t.spans,o.colCount,o.rowCount,o.gutter,o.rowMode,o.rowHeight)}})}}).reflow().performance();r.mdOnLayout({$event:{performance:u}}),M=o}}function p(t){return x+t+A}function g(t,e,n,i,r,o,a){var u=1/n*100,s=(n-1)/n,l=D({share:u,gutterShare:s,gutter:r}),c={left:C({unit:l,offset:t.col,gutter:r}),width:G({unit:l,span:e.col,gutter:r}),paddingTop:"",marginTop:"",top:"",height:""};switch(o){case"fixed":c.top=C({unit:a,offset:t.row,gutter:r}),c.height=G({unit:a,span:e.row,gutter:r});break;case"ratio":var d=u/a,f=D({share:d,gutterShare:s,gutter:r});c.paddingTop=G({unit:f,span:e.row,gutter:r}),c.marginTop=C({unit:f,offset:t.row,gutter:r});break;case"fit":var p=(i-1)/i,d=1/i*100,f=D({share:d,gutterShare:p,gutter:r});c.top=C({unit:f,offset:t.row,gutter:r}),c.height=G({unit:f,span:e.row,gutter:r})}return c}function m(t,e,n,i,r){var o={height:"",paddingBottom:""};switch(i){case"fixed":o.height=G({unit:r,span:e,gutter:n});break;case"ratio":var a=1===t?0:(t-1)/t,u=1/t*100,s=u*(1/r),l=D({share:s,gutterShare:a,gutter:n});o.paddingBottom=G({unit:l,span:e,gutter:n});break;case"fit":}return o}function h(){return[].filter.call(a.children(),function(t){return"MD-GRID-TILE"==t.tagName})}function v(t){return[].map.call(t,function(t){var n=e.element(t).controller("mdGridTile");return{row:parseInt(o.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(o.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}})}function w(){var t=parseInt(o.getResponsiveAttribute(u,"md-cols"),10);if(isNaN(t))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return t}function y(){return b(o.getResponsiveAttribute(u,"md-gutter")||1)}function $(){var t=o.getResponsiveAttribute(u,"md-row-height");switch(I()){case"fixed":return b(t);case"ratio":var e=t.split(":");return parseFloat(e[0])/parseFloat(e[1]);case"fit":return 0}}function I(){var t=o.getResponsiveAttribute(u,"md-row-height");return"fit"==t?"fit":-1!==t.indexOf(":")?"ratio":"fixed"}function b(t){return/\D$/.test(t)?t:t+"px"}a.attr("role","list"),s.layoutDelegate=f;var L=e.bind(s,s.invalidateLayout),T=l();r.$on("$destroy",c);var M,x=t.startSymbol(),A=t.endSymbol(),D=t(p("share")+"% - ("+p("gutter")+" * "+p("gutterShare")+")"),C=t("calc(("+p("unit")+" + "+p("gutter")+") * "+p("offset")+")"),G=t("calc(("+p("unit")+") * "+p("span")+" + ("+p("span")+" - 1) * "+p("gutter")+")")}return{restrict:"E",controller:r,scope:{mdOnLayout:"&"},link:a}}function r(t){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=t,this.layoutDelegate=e.noop}function o(t){function n(e,n){var i,a,u,s,l,c;return s=t.time(function(){a=r(e,n)}),i={layoutInfo:function(){return a},map:function(e){return l=t.time(function(){var t=i.layoutInfo();u=e(t.positioning,t.rowCount)}),i},reflow:function(e){return c=t.time(function(){var t=e||o;t(u.grid,u.tiles)}),i},performance:function(){return{tileCount:n.length,layoutTime:s,mapTime:l,reflowTime:c,totalTime:s+l+c}}}}function i(t,e){t.element.css(t.style),e.forEach(function(t){t.element.css(t.style)})}function r(t,e){function n(e,n){if(e.col>t)throw"md-grid-list: Tile at position "+n+" has a colspan ("+e.col+") that exceeds the column count ("+t+")";for(var a=0,c=0;c-a<e.col;)u>=t?i():(a=l.indexOf(0,u),-1!==a&&-1!==(c=o(a+1))?u=c+1:(a=c=0,i()));return r(a,e.col,e.row),u=a+e.col,{col:a,row:s}}function i(){u=0,s++,r(0,t,-1)}function r(t,e,n){for(var i=t;t+e>i;i++)l[i]=Math.max(l[i]+n,0)}function o(t){var e;for(e=t;e<l.length;e++)if(0!==l[e])return e;return e===l.length?e:void 0}function a(){for(var e=[],n=0;t>n;n++)e.push(0);return e}var u=0,s=0,l=a();return{positioning:e.map(function(t,e){return{spans:t,position:n(t,e)}}),rowCount:s+Math.max.apply(Math,l)}}var o=i;return n.animateWith=function(t){o=e.isFunction(t)?t:i},n}function a(t){function n(n,i,r,o){i.attr("role","listitem");var a=t.watchResponsiveAttributes(["md-colspan","md-rowspan"],r,e.bind(o,o.invalidateLayout));o.invalidateTiles(),n.$on("$destroy",function(){a(),o.invalidateLayout()}),e.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(t,e){t!==e&&o.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(t){this.$attrs=t}],link:n}}function u(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}e.module("material.components.gridList",["material.core"]).directive("mdGridList",i).directive("mdGridTile",a).directive("mdGridTileFooter",u).directive("mdGridTileHeader",u).factory("$mdGridLayout",o),i.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],r.$inject=["$timeout"],r.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(e.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},o.$inject=["$mdUtil"],a.$inject=["$mdMedia"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/bower.json
deleted file mode 100644
index 58d91a81..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-icon",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon-default-theme.css
deleted file mode 100644
index eaa5d39f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon-default-theme.css
+++ /dev/null
@@ -1,15 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-icon.md-THEME_NAME-theme {
- color: '{{foreground-2}}'; }
- md-icon.md-THEME_NAME-theme.md-primary {
- color: '{{primary-color}}'; }
- md-icon.md-THEME_NAME-theme.md-accent {
- color: '{{accent-color}}'; }
- md-icon.md-THEME_NAME-theme.md-warn {
- color: '{{warn-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon-default-theme.min.css
deleted file mode 100644
index 42c29964..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-icon.md-THEME_NAME-theme{color:'{{foreground-2}}'}md-icon.md-THEME_NAME-theme.md-primary{color:'{{primary-color}}'}md-icon.md-THEME_NAME-theme.md-accent{color:'{{accent-color}}'}md-icon.md-THEME_NAME-theme.md-warn{color:'{{warn-color}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.css
deleted file mode 100644
index c55add2c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-icon {
- margin: auto;
- background-repeat: no-repeat no-repeat;
- display: inline-block;
- vertical-align: middle;
- fill: currentColor;
- height: 24px;
- width: 24px; }
- md-icon svg {
- pointer-events: none; }
- md-icon[md-font-icon] {
- line-height: 1;
- width: auto; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.js
deleted file mode 100644
index e6a6cad6..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.js
+++ /dev/null
@@ -1,788 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.icon
- * @description
- * Icon
- */
-angular.module('material.components.icon', [
- 'material.core'
- ])
- .directive('mdIcon', mdIconDirective);
-
-/**
- * @ngdoc directive
- * @name mdIcon
- * @module material.components.icon
- *
- * @restrict E
- *
- * @description
- * The `<md-icon>` directive is an markup element useful for showing an icon based on a font-icon
- * or a SVG. Icons are view-only elements that should not be used directly as buttons; instead nest a `<md-icon>`
- * inside a `md-button` to add hover and click features.
- *
- * When using SVGs, both external SVGs (via URLs) or sets of SVGs [from icon sets] can be
- * easily loaded and used.When use font-icons, developers must following three (3) simple steps:
- *
- * <ol>
- * <li>Load the font library. e.g.<br/>
- * &lt;link href="https://fonts.googleapis.com/icon?family=Material+Icons"
- * rel="stylesheet"&gt;
- * </li>
- * <li> Use either (a) font-icon class names or (b) font ligatures to render the font glyph by using its textual name</li>
- * <li> Use &lt;md-icon md-font-icon="classname" /&gt; or <br/>
- * use &lt;md-icon md-font-set="font library classname or alias"&gt; textual_name &lt;/md-icon&gt; or <br/>
- * use &lt;md-icon md-font-set="font library classname or alias"&gt; numerical_character_reference &lt;/md-icon&gt;
- * </li>
- * </ol>
- *
- * Full details for these steps can be found:
- *
- * <ul>
- * <li>http://google.github.io/material-design-icons/</li>
- * <li>http://google.github.io/material-design-icons/#icon-font-for-the-web</li>
- * </ul>
- *
- * The Material Design icon style <code>.material-icons</code> and the icon font references are published in
- * Material Design Icons:
- *
- * <ul>
- * <li>http://www.google.com/design/icons/</li>
- * <li>https://www.google.com/design/icons/#ic_accessibility</li>
- * </ul>
- *
- * <h2 id="material_design_icons">Material Design Icons</h2>
- * Using the Material Design Icon-Selector, developers can easily and quickly search for a Material Design font-icon and
- * determine its textual name and character reference code. Click on any icon to see the slide-up information
- * panel with details regarding a SVG download or information on the font-icon usage.
- *
- * <a href="https://www.google.com/design/icons/#ic_accessibility" target="_blank" style="border-bottom:none;">
- * <img src="https://cloud.githubusercontent.com/assets/210413/7902490/fe8dd14c-0780-11e5-98fb-c821cc6475e6.png"
- * aria-label="Material Design Icon-Selector" style="max-width:75%;padding-left:10%">
- * </a>
- *
- * <span class="image_caption">
- * Click on the image above to link to the
- * <a href="https://www.google.com/design/icons/#ic_accessibility" target="_blank">Material Design Icon-Selector</a>.
- * </span>
- *
- * @param {string} md-font-icon Name of CSS icon associated with the font-face will be used
- * to render the icon. Requires the fonts and the named CSS styles to be preloaded.
- * @param {string} md-font-set CSS style name associated with the font library; which will be assigned as
- * the class for the font-icon ligature. This value may also be an alias that is used to lookup the classname;
- * internally use `$mdIconProvider.fontSet(<alias>)` to determine the style name.
- * @param {string} md-svg-src URL [or expression ] used to load, cache, and display an external SVG.
- * @param {string} md-svg-icon Name used for lookup of the icon from the internal cache; interpolated strings or
- * expressions may also be used. Specific set names can be used with the syntax `<set name>:<icon name>`.<br/><br/>
- * To use icon sets, developers are required to pre-register the sets using the `$mdIconProvider` service.
- * @param {string=} aria-label Labels icon for accessibility. If an empty string is provided, icon
- * will be hidden from accessibility layer with `aria-hidden="true"`. If there's no aria-label on the icon
- * nor a label on the parent element, a warning will be logged to the console.
- *
- * @usage
- * When using SVGs:
- * <hljs lang="html">
- *
- * <!-- Icon ID; may contain optional icon set prefix; icons must registered using $mdIconProvider -->
- * <md-icon md-svg-icon="social:android" aria-label="android " ></md-icon>
- *
- * <!-- Icon urls; may be preloaded in templateCache -->
- * <md-icon md-svg-src="/android.svg" aria-label="android " ></md-icon>
- * <md-icon md-svg-src="{{ getAndroid() }}" aria-label="android " ></md-icon>
- *
- * </hljs>
- *
- * Use the <code>$mdIconProvider</code> to configure your application with
- * svg iconsets.
- *
- * <hljs lang="js">
- * angular.module('appSvgIconSets', ['ngMaterial'])
- * .controller('DemoCtrl', function($scope) {})
- * .config(function($mdIconProvider) {
- * $mdIconProvider
- * .iconSet('social', 'img/icons/sets/social-icons.svg', 24)
- * .defaultIconSet('img/icons/sets/core-icons.svg', 24);
- * });
- * </hljs>
- *
- *
- * When using Font Icons with classnames:
- * <hljs lang="html">
- *
- * <md-icon md-font-icon="android" aria-label="android" ></md-icon>
- * <md-icon class="icon_home" aria-label="Home" ></md-icon>
- *
- * </hljs>
- *
- * When using Material Font Icons with ligatures:
- * <hljs lang="html">
- * <!-- For Material Design Icons -->
- * <!-- The class '.material-icons' is auto-added. -->
- * <md-icon> face </md-icon>
- * <md-icon class="md-light md-48"> face </md-icon>
- * <md-icon md-font-set="material-icons"> face </md-icon>
- * <md-icon> #xE87C; </md-icon>
- * </hljs>
- *
- * When using other Font-Icon libraries:
- *
- * <hljs lang="js">
- * // Specify a font-icon style alias
- * angular.config(function($mdIconProvider) {
- * $mdIconProvider.fontSet('fa', 'fontawesome');
- * });
- * </hljs>
- *
- * <hljs lang="html">
- * <md-icon md-font-set="fa">email</md-icon>
- * </hljs>
- *
- */
-function mdIconDirective($mdIcon, $mdTheming, $mdAria, $interpolate ) {
-
- return {
- scope: {
- fontSet : '@mdFontSet',
- fontIcon: '@mdFontIcon',
- svgIcon : '@mdSvgIcon',
- svgSrc : '@mdSvgSrc'
- },
- restrict: 'E',
- transclude:true,
- template: getTemplate,
- link: postLink
- };
-
- function getTemplate(element, attr) {
- var isEmptyAttr = function(key) { return angular.isDefined(attr[key]) ? attr[key].length == 0 : false },
- hasAttrValue = function(key) { return attr[key] && attr[key].length > 0; },
- attrValue = function(key) { return hasAttrValue(key) ? attr[key] : '' };
-
- // If using the deprecated md-font-icon API
- // If using ligature-based font-icons, transclude the ligature or NRCs
-
- var tmplFontIcon = '<span class="md-font {{classNames}}" ng-class="fontIcon"></span>';
- var tmplFontSet = '<span class="{{classNames}}" ng-transclude></span>';
-
- var tmpl = hasAttrValue('mdSvgIcon') ? '' :
- hasAttrValue('mdSvgSrc') ? '' :
- isEmptyAttr('mdFontIcon') ? '' :
- hasAttrValue('mdFontIcon') ? tmplFontIcon : tmplFontSet;
-
- // If available, lookup the fontSet style and add to the list of classnames
- // NOTE: Material Icons expects classnames like `.material-icons.md-48` instead of `.material-icons .md-48`
-
- var names = (tmpl == tmplFontSet) ? $mdIcon.fontSet(attrValue('mdFontSet')) + ' ' : '';
- names = (names + attrValue('class')).trim();
-
- return $interpolate( tmpl )({ classNames: names });
- }
-
-
- /**
- * Directive postLink
- * Supports embedded SVGs, font-icons, & external SVGs
- */
- function postLink(scope, element, attr) {
- $mdTheming(element);
-
- // If using a font-icon, then the textual name of the icon itself
- // provides the aria-label.
-
- var label = attr.alt || scope.fontIcon || scope.svgIcon || element.text();
- var attrName = attr.$normalize(attr.$attr.mdSvgIcon || attr.$attr.mdSvgSrc || '');
-
- if ( !attr['aria-label'] ) {
-
- if (label != '' && !parentsHaveText() ) {
-
- $mdAria.expect(element, 'aria-label', label);
- $mdAria.expect(element, 'role', 'img');
-
- } else if ( !element.text() ) {
- // If not a font-icon with ligature, then
- // hide from the accessibility layer.
-
- $mdAria.expect(element, 'aria-hidden', 'true');
- }
- }
-
- if (attrName) {
- // Use either pre-configured SVG or URL source, respectively.
- attr.$observe(attrName, function(attrVal) {
-
- element.empty();
- if (attrVal) {
- $mdIcon(attrVal).then(function(svg) {
- element.append(svg);
- });
- }
-
- });
- }
- function parentsHaveText() {
- var parent = element.parent();
- if (parent.attr('aria-label') || parent.text()) {
- return true;
- }
- else if(parent.parent().attr('aria-label') || parent.parent().text()) {
- return true;
- }
- return false;
- }
- }
-}
-mdIconDirective.$inject = ["$mdIcon", "$mdTheming", "$mdAria", "$interpolate"];
-
- angular
- .module('material.components.icon' )
- .provider('$mdIcon', MdIconProvider);
-
- /**
- * @ngdoc service
- * @name $mdIconProvider
- * @module material.components.icon
- *
- * @description
- * `$mdIconProvider` is used only to register icon IDs with URLs. These configuration features allow
- * icons and icon sets to be pre-registered and associated with source URLs **before** the `<md-icon />`
- * directives are compiled.
- *
- * If using font-icons, the developer is repsonsible for loading the fonts.
- *
- * If using SVGs, loading of the actual svg files are deferred to on-demand requests and are loaded
- * internally by the `$mdIcon` service using the `$http` service. When an SVG is requested by name/ID,
- * the `$mdIcon` service searches its registry for the associated source URL;
- * that URL is used to on-demand load and parse the SVG dynamically.
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultFontSet( 'fontawesome' )
- * .defaultIconSet('my/app/icons.svg') // Register a default set of SVG icons
- * .iconSet('social', 'my/app/social.svg') // Register a named icon set of SVGs
- * .icon('android', 'my/app/android.svg') // Register a specific icon (by name)
- * .icon('work:chair', 'my/app/chair.svg'); // Register icon in a specific set
- * });
- * </hljs>
- *
- * SVG icons and icon sets can be easily pre-loaded and cached using either (a) a build process or (b) a runtime
- * **startup** process (shown below):
- *
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Register a default set of SVG icon definitions
- * $mdIconProvider.defaultIconSet('my/app/icons.svg')
- *
- * })
- * .run(function($http, $templateCache){
- *
- * // Pre-fetch icons sources by URL and cache in the $templateCache...
- * // subsequent $http calls will look there first.
- *
- * var urls = [ 'imy/app/icons.svg', 'img/icons/android.svg'];
- *
- * angular.forEach(urls, function(url) {
- * $http.get(url, {cache: $templateCache});
- * });
- *
- * });
- *
- * </hljs>
- *
- * NOTE: the loaded SVG data is subsequently cached internally for future requests.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdIconProvider#icon
- *
- * @description
- * Register a source URL for a specific icon name; the name may include optional 'icon set' name prefix.
- * These icons will later be retrieved from the cache using `$mdIcon( <icon name> )`
- *
- * @param {string} id Icon name/id used to register the icon
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .icon('android', 'my/app/android.svg') // Register a specific icon (by name)
- * .icon('work:chair', 'my/app/chair.svg'); // Register icon in a specific set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#iconSet
- *
- * @description
- * Register a source URL for a 'named' set of icons; group of SVG definitions where each definition
- * has an icon id. Individual icons can be subsequently retrieved from this cached set using
- * `$mdIcon(<icon set name>:<icon name>)`
- *
- * @param {string} id Icon name/id used to register the iconset
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .iconSet('social', 'my/app/social.svg') // Register a named icon set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultIconSet
- *
- * @description
- * Register a source URL for the default 'named' set of icons. Unless explicitly registered,
- * subsequent lookups of icons will failover to search this 'default' icon set.
- * Icon can be retrieved from this cached, default set using `$mdIcon(<name>)`
- *
- * @param {string} url specifies the external location for the data file. Used internally by `$http` to load the
- * data or as part of the lookup in `$templateCache` if pre-loading was configured.
- * @param {string=} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultIconSet( 'my/app/social.svg' ) // Register a default icon set
- * });
- * </hljs>
- *
- */
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultFontSet
- *
- * @description
- * When using Font-Icons, Angular Material assumes the the Material Design icons will be used and automatically
- * configures the default font-set == 'material-icons'. Note that the font-set references the font-icon library
- * class style that should be applied to the `<md-icon>`.
- *
- * Configuring the default means that the attributes
- * `md-font-set="material-icons"` or `class="material-icons"` do not need to be explicitly declared on the
- * `<md-icon>` markup. For example:
- *
- * `<md-icon> face </md-icon>`
- * will render as
- * `<span class="material-icons"> face </span>`, and
- *
- * `<md-icon md-font-set="fa"> face </md-icon>`
- * will render as
- * `<span class="fa"> face </span>`
- *
- * @param {string} name of the font-library style that should be applied to the md-icon DOM element
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- * $mdIconProvider.defaultFontSet( 'fontawesome' );
- * });
- * </hljs>
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdIconProvider#defaultIconSize
- *
- * @description
- * While `<md-icon />` markup can also be style with sizing CSS, this method configures
- * the default width **and** height used for all icons; unless overridden by specific CSS.
- * The default sizing is (24px, 24px).
- *
- * @param {string} iconSize Number indicating the width and height of the icons in the set. All icons
- * in the icon set must be the same size. Default size is 24.
- *
- * @returns {obj} an `$mdIconProvider` reference; used to support method call chains for the API
- *
- * @usage
- * <hljs lang="js">
- * app.config(function($mdIconProvider) {
- *
- * // Configure URLs for icons specified by [set:]id.
- *
- * $mdIconProvider
- * .defaultIconSize(36) // Register a default icon size (width == height)
- * });
- * </hljs>
- *
- */
-
- var config = {
- defaultIconSize: 24,
- defaultFontSet: 'material-icons',
- fontSets : [ ]
- };
-
- function MdIconProvider() { }
-
- MdIconProvider.prototype = {
-
- icon : function icon(id, url, iconSize) {
- if ( id.indexOf(':') == -1 ) id = '$default:' + id;
-
- config[id] = new ConfigurationItem(url, iconSize );
- return this;
- },
- iconSet : function iconSet(id, url, iconSize) {
- config[id] = new ConfigurationItem(url, iconSize );
- return this;
- },
- defaultIconSet : function defaultIconSet(url, iconSize) {
- var setName = '$default';
-
- if ( !config[setName] ) {
- config[setName] = new ConfigurationItem(url, iconSize );
- }
-
- config[setName].iconSize = iconSize || config.defaultIconSize;
- return this;
- },
-
- /**
- * Register an alias name associated with a font-icon library style ;
- */
- fontSet : function fontSet(alias, className) {
- config.fontSets.push({
- alias : alias,
- fontSet : className || alias
- });
- },
-
- /**
- * Specify a default style name associated with a font-icon library
- * fallback to Material Icons.
- *
- */
- defaultFontSet : function defaultFontSet(className) {
- config.defaultFontSet = !className ? '' : className;
- return this;
- },
-
- defaultIconSize : function defaultIconSize(iconSize) {
- config.defaultIconSize = iconSize;
- return this;
- },
-
- preloadIcons: function ($templateCache) {
- var iconProvider = this;
- var svgRegistry = [
- {
- id : 'md-tabs-arrow',
- url: 'md-tabs-arrow.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 "/></g></svg>'
- },
- {
- id : 'md-close',
- url: 'md-close.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"/></g></svg>'
- },
- {
- id: 'md-cancel',
- url: 'md-cancel.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M12 2c-5.53 0-10 4.47-10 10s4.47 10 10 10 10-4.47 10-10-4.47-10-10-10zm5 13.59l-1.41 1.41-3.59-3.59-3.59 3.59-1.41-1.41 3.59-3.59-3.59-3.59 1.41-1.41 3.59 3.59 3.59-3.59 1.41 1.41-3.59 3.59 3.59 3.59z"/></g></svg>'
- },
- {
- id: 'md-menu',
- url: 'md-menu.svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100"><path d="M 50 0 L 100 14 L 92 80 L 50 100 L 8 80 L 0 14 Z" fill="#b2b2b2"></path><path d="M 50 5 L 6 18 L 13.5 77 L 50 94 Z" fill="#E42939"></path><path d="M 50 5 L 94 18 L 86.5 77 L 50 94 Z" fill="#B72833"></path><path d="M 50 7 L 83 75 L 72 75 L 65 59 L 50 59 L 50 50 L 61 50 L 50 26 Z" fill="#b2b2b2"></path><path d="M 50 7 L 17 75 L 28 75 L 35 59 L 50 59 L 50 50 L 39 50 L 50 26 Z" fill="#fff"></path></svg>'
- },
- {
- id: 'md-toggle-arrow',
- url: 'md-toggle-arrow-svg',
- svg: '<svg version="1.1" x="0px" y="0px" viewBox="0 0 48 48"><path d="M24 16l-12 12 2.83 2.83 9.17-9.17 9.17 9.17 2.83-2.83z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>'
- }
- ];
-
- svgRegistry.forEach(function(asset){
- iconProvider.icon(asset.id, asset.url);
- $templateCache.put(asset.url, asset.svg);
- });
-
- },
-
- $get : ['$http', '$q', '$log', '$templateCache', function($http, $q, $log, $templateCache) {
- this.preloadIcons($templateCache);
- return MdIconService(config, $http, $q, $log, $templateCache);
- }]
- };
-
- /**
- * Configuration item stored in the Icon registry; used for lookups
- * to load if not already cached in the `loaded` cache
- */
- function ConfigurationItem(url, iconSize) {
- this.url = url;
- this.iconSize = iconSize || config.defaultIconSize;
- }
-
- /**
- * @ngdoc service
- * @name $mdIcon
- * @module material.components.icon
- *
- * @description
- * The `$mdIcon` service is a function used to lookup SVG icons.
- *
- * @param {string} id Query value for a unique Id or URL. If the argument is a URL, then the service will retrieve the icon element
- * from its internal cache or load the icon and cache it first. If the value is not a URL-type string, then an ID lookup is
- * performed. The Id may be a unique icon ID or may include an iconSet ID prefix.
- *
- * For the **id** query to work properly, this means that all id-to-URL mappings must have been previously configured
- * using the `$mdIconProvider`.
- *
- * @returns {obj} Clone of the initial SVG DOM element; which was created from the SVG markup in the SVG data file.
- *
- * @usage
- * <hljs lang="js">
- * function SomeDirective($mdIcon) {
- *
- * // See if the icon has already been loaded, if not
- * // then lookup the icon from the registry cache, load and cache
- * // it for future requests.
- * // NOTE: ID queries require configuration with $mdIconProvider
- *
- * $mdIcon('android').then(function(iconEl) { element.append(iconEl); });
- * $mdIcon('work:chair').then(function(iconEl) { element.append(iconEl); });
- *
- * // Load and cache the external SVG using a URL
- *
- * $mdIcon('img/icons/android.svg').then(function(iconEl) {
- * element.append(iconEl);
- * });
- * };
- * </hljs>
- *
- * NOTE: The `<md-icon /> ` directive internally uses the `$mdIcon` service to query, loaded, and instantiate
- * SVG DOM elements.
- */
- function MdIconService(config, $http, $q, $log, $templateCache) {
- var iconCache = {};
- var urlRegex = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i;
-
- Icon.prototype = { clone : cloneSVG, prepare: prepareAndStyle };
- getIcon.fontSet = findRegisteredFontSet;
-
- // Publish service...
- return getIcon;
-
- /**
- * Actual $mdIcon service is essentially a lookup function
- */
- function getIcon(id) {
- id = id || '';
-
- // If already loaded and cached, use a clone of the cached icon.
- // Otherwise either load by URL, or lookup in the registry and then load by URL, and cache.
-
- if ( iconCache[id] ) return $q.when( iconCache[id].clone() );
- if ( urlRegex.test(id) ) return loadByURL(id).then( cacheIcon(id) );
- if ( id.indexOf(':') == -1 ) id = '$default:' + id;
-
- return loadByID(id)
- .catch(loadFromIconSet)
- .catch(announceIdNotFound)
- .catch(announceNotFound)
- .then( cacheIcon(id) );
- }
-
- /**
- * Lookup registered fontSet style using its alias...
- * If not found,
- */
- function findRegisteredFontSet(alias) {
- var useDefault = angular.isUndefined(alias) || !(alias && alias.length);
- if ( useDefault ) return config.defaultFontSet;
-
- var result = alias;
- angular.forEach(config.fontSets, function(it){
- if ( it.alias == alias ) result = it.fontSet || result;
- });
-
- return result;
- }
-
- /**
- * Prepare and cache the loaded icon for the specified `id`
- */
- function cacheIcon( id ) {
-
- return function updateCache( icon ) {
- iconCache[id] = isIcon(icon) ? icon : new Icon(icon, config[id]);
-
- return iconCache[id].clone();
- };
- }
-
- /**
- * Lookup the configuration in the registry, if !registered throw an error
- * otherwise load the icon [on-demand] using the registered URL.
- *
- */
- function loadByID(id) {
- var iconConfig = config[id];
-
- return !iconConfig ? $q.reject(id) : loadByURL(iconConfig.url).then(function(icon) {
- return new Icon(icon, iconConfig);
- });
- }
-
- /**
- * Loads the file as XML and uses querySelector( <id> ) to find
- * the desired node...
- */
- function loadFromIconSet(id) {
- var setName = id.substring(0, id.lastIndexOf(':')) || '$default';
- var iconSetConfig = config[setName];
-
- return !iconSetConfig ? $q.reject(id) : loadByURL(iconSetConfig.url).then(extractFromSet);
-
- function extractFromSet(set) {
- var iconName = id.slice(id.lastIndexOf(':') + 1);
- var icon = set.querySelector('#' + iconName);
- return !icon ? $q.reject(id) : new Icon(icon, iconSetConfig);
- }
- }
-
- /**
- * Load the icon by URL (may use the $templateCache).
- * Extract the data for later conversion to Icon
- */
- function loadByURL(url) {
- return $http
- .get(url, { cache: $templateCache })
- .then(function(response) {
- return angular.element('<div>').append(response.data).find('svg')[0];
- });
- }
-
- /**
- * User did not specify a URL and the ID has not been registered with the $mdIcon
- * registry
- */
- function announceIdNotFound(id) {
- var msg;
-
- if (angular.isString(id)) {
- msg = 'icon ' + id + ' not found';
- $log.warn(msg);
- }
-
- return $q.reject(msg || id);
- }
-
- /**
- * Catch HTTP or generic errors not related to incorrect icon IDs.
- */
- function announceNotFound(err) {
- var msg = angular.isString(err) ? err : (err.message || err.data || err.statusText);
- $log.warn(msg);
-
- return $q.reject(msg);
- }
-
- /**
- * Check target signature to see if it is an Icon instance.
- */
- function isIcon(target) {
- return angular.isDefined(target.element) && angular.isDefined(target.config);
- }
-
- /**
- * Define the Icon class
- */
- function Icon(el, config) {
- if (el.tagName != 'svg') {
- el = angular.element('<svg xmlns="http://www.w3.org/2000/svg">').append(el)[0];
- }
-
- // Inject the namespace if not available...
- if ( !el.getAttribute('xmlns') ) {
- el.setAttribute('xmlns', "http://www.w3.org/2000/svg");
- }
-
- this.element = el;
- this.config = config;
- this.prepare();
- }
-
- /**
- * Prepare the DOM element that will be cached in the
- * loaded iconCache store.
- */
- function prepareAndStyle() {
- var iconSize = this.config ? this.config.iconSize : config.defaultIconSize;
- angular.forEach({
- 'fit' : '',
- 'height': '100%',
- 'width' : '100%',
- 'preserveAspectRatio': 'xMidYMid meet',
- 'viewBox' : this.element.getAttribute('viewBox') || ('0 0 ' + iconSize + ' ' + iconSize)
- }, function(val, attr) {
- this.element.setAttribute(attr, val);
- }, this);
-
- angular.forEach({
- 'pointer-events' : 'none',
- 'display' : 'block'
- }, function(val, style) {
- this.element.style[style] = val;
- }, this);
- }
-
- /**
- * Clone the Icon DOM element.
- */
- function cloneSVG(){
- return this.element.cloneNode(true);
- }
-
- }
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.min.css
deleted file mode 100644
index 12c5e23f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-icon{margin:auto;background-repeat:no-repeat no-repeat;display:inline-block;vertical-align:middle;fill:currentColor;height:24px;width:24px}md-icon svg{pointer-events:none}md-icon[md-font-icon]{line-height:1;width:auto} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.min.js
deleted file mode 100644
index ff83d0f0..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/icon/icon.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(t,n,e){"use strict";function i(t,e,i,o){function r(e,i){var r=function(t){return n.isDefined(i[t])?0==i[t].length:!1},a=function(t){return i[t]&&i[t].length>0},c=function(t){return a(t)?i[t]:""},s='<span class="md-font {{classNames}}" ng-class="fontIcon"></span>',u='<span class="{{classNames}}" ng-transclude></span>',l=a("mdSvgIcon")?"":a("mdSvgSrc")?"":r("mdFontIcon")?"":a("mdFontIcon")?s:u,f=l==u?t.fontSet(c("mdFontSet"))+" ":"";return f=(f+c("class")).trim(),o(l)({classNames:f})}function a(n,o,r){function a(){var t=o.parent();return t.attr("aria-label")||t.text()?!0:t.parent().attr("aria-label")||t.parent().text()?!0:!1}e(o);var c=r.alt||n.fontIcon||n.svgIcon||o.text(),s=r.$normalize(r.$attr.mdSvgIcon||r.$attr.mdSvgSrc||"");r["aria-label"]||(""==c||a()?o.text()||i.expect(o,"aria-hidden","true"):(i.expect(o,"aria-label",c),i.expect(o,"role","img"))),s&&r.$observe(s,function(n){o.empty(),n&&t(n).then(function(t){o.append(t)})})}return{scope:{fontSet:"@mdFontSet",fontIcon:"@mdFontIcon",svgIcon:"@mdSvgIcon",svgSrc:"@mdSvgSrc"},restrict:"E",transclude:!0,template:r,link:a}}function o(){}function r(t,n){this.url=t,this.iconSize=n||c.defaultIconSize}function a(t,e,i,o,r){function a(t){return t=t||"",S[t]?i.when(S[t].clone()):x.test(t)?f(t).then(s(t)):(-1==t.indexOf(":")&&(t="$default:"+t),u(t)["catch"](l)["catch"](d)["catch"](g).then(s(t)))}function c(e){var i=n.isUndefined(e)||!(e&&e.length);if(i)return t.defaultFontSet;var o=e;return n.forEach(t.fontSets,function(t){t.alias==e&&(o=t.fontSet||o)}),o}function s(n){return function(e){return S[n]=p(e)?e:new v(e,t[n]),S[n].clone()}}function u(n){var e=t[n];return e?f(e.url).then(function(t){return new v(t,e)}):i.reject(n)}function l(n){function e(t){var e=n.slice(n.lastIndexOf(":")+1),o=t.querySelector("#"+e);return o?new v(o,r):i.reject(n)}var o=n.substring(0,n.lastIndexOf(":"))||"$default",r=t[o];return r?f(r.url).then(e):i.reject(n)}function f(t){return e.get(t,{cache:r}).then(function(t){return n.element("<div>").append(t.data).find("svg")[0]})}function d(t){var e;return n.isString(t)&&(e="icon "+t+" not found",o.warn(e)),i.reject(e||t)}function g(t){var e=n.isString(t)?t:t.message||t.data||t.statusText;return o.warn(e),i.reject(e)}function p(t){return n.isDefined(t.element)&&n.isDefined(t.config)}function v(t,e){"svg"!=t.tagName&&(t=n.element('<svg xmlns="http://www.w3.org/2000/svg">').append(t)[0]),t.getAttribute("xmlns")||t.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=t,this.config=e,this.prepare()}function h(){var e=this.config?this.config.iconSize:t.defaultIconSize;n.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+e+" "+e},function(t,n){this.element.setAttribute(n,t)},this),n.forEach({"pointer-events":"none",display:"block"},function(t,n){this.element.style[n]=t},this)}function m(){return this.element.cloneNode(!0)}var S={},x=/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i;return v.prototype={clone:m,prepare:h},a.fontSet=c,a}n.module("material.components.icon",["material.core"]).directive("mdIcon",i),i.$inject=["$mdIcon","$mdTheming","$mdAria","$interpolate"],n.module("material.components.icon").provider("$mdIcon",o);var c={defaultIconSize:24,defaultFontSet:"material-icons",fontSets:[]};o.prototype={icon:function(t,n,e){return-1==t.indexOf(":")&&(t="$default:"+t),c[t]=new r(n,e),this},iconSet:function(t,n,e){return c[t]=new r(n,e),this},defaultIconSet:function(t,n){var e="$default";return c[e]||(c[e]=new r(t,n)),c[e].iconSize=n||c.defaultIconSize,this},fontSet:function(t,n){c.fontSets.push({alias:t,fontSet:n||t})},defaultFontSet:function(t){return c.defaultFontSet=t?t:"",this},defaultIconSize:function(t){return c.defaultIconSize=t,this},preloadIcons:function(t){var n=this,e=[{id:"md-tabs-arrow",url:"md-tabs-arrow.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 "/></g></svg>'},{id:"md-close",url:"md-close.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"/></g></svg>'},{id:"md-cancel",url:"md-cancel.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M12 2c-5.53 0-10 4.47-10 10s4.47 10 10 10 10-4.47 10-10-4.47-10-10-10zm5 13.59l-1.41 1.41-3.59-3.59-3.59 3.59-1.41-1.41 3.59-3.59-3.59-3.59 1.41-1.41 3.59 3.59 3.59-3.59 1.41 1.41-3.59 3.59 3.59 3.59z"/></g></svg>'},{id:"md-menu",url:"md-menu.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100"><path d="M 50 0 L 100 14 L 92 80 L 50 100 L 8 80 L 0 14 Z" fill="#b2b2b2"></path><path d="M 50 5 L 6 18 L 13.5 77 L 50 94 Z" fill="#E42939"></path><path d="M 50 5 L 94 18 L 86.5 77 L 50 94 Z" fill="#B72833"></path><path d="M 50 7 L 83 75 L 72 75 L 65 59 L 50 59 L 50 50 L 61 50 L 50 26 Z" fill="#b2b2b2"></path><path d="M 50 7 L 17 75 L 28 75 L 35 59 L 50 59 L 50 50 L 39 50 L 50 26 Z" fill="#fff"></path></svg>'},{id:"md-toggle-arrow",url:"md-toggle-arrow-svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 48 48"><path d="M24 16l-12 12 2.83 2.83 9.17-9.17 9.17 9.17 2.83-2.83z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>'}];e.forEach(function(e){n.icon(e.id,e.url),t.put(e.url,e.svg)})},$get:["$http","$q","$log","$templateCache",function(t,n,e,i){return this.preloadIcons(i),a(c,t,n,e,i)}]}}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/bower.json
deleted file mode 100644
index 8f4c2642..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-input",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input-default-theme.css
deleted file mode 100644
index c4dc50c7..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input-default-theme.css
+++ /dev/null
@@ -1,46 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-input-container.md-THEME_NAME-theme .md-input {
- color: '{{foreground-1}}';
- border-color: '{{foreground-4}}';
- text-shadow: '{{foreground-shadow}}'; }
- md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder {
- color: '{{foreground-3}}'; }
-md-input-container.md-THEME_NAME-theme > md-icon {
- color: '{{foreground-1}}'; }
-md-input-container.md-THEME_NAME-theme label, md-input-container.md-THEME_NAME-theme .md-placeholder {
- text-shadow: '{{foreground-shadow}}';
- color: '{{foreground-3}}'; }
-md-input-container.md-THEME_NAME-theme ng-messages, md-input-container.md-THEME_NAME-theme [ng-message], md-input-container.md-THEME_NAME-theme [data-ng-message], md-input-container.md-THEME_NAME-theme [x-ng-message] {
- color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label {
- color: '{{foreground-2}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input {
- border-color: '{{primary-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label {
- color: '{{primary-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon {
- color: '{{primary-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input {
- border-color: '{{accent-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label {
- color: '{{accent-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input {
- border-color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label {
- color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input {
- border-color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label {
- color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter {
- color: '{{warn-500}}'; }
-md-input-container.md-THEME_NAME-theme .md-input[disabled], [disabled] md-input-container.md-THEME_NAME-theme .md-input {
- border-bottom-color: transparent;
- color: '{{foreground-3}}';
- background-image: linear-gradient(to right, '{{foreground-3}}' 0%, '{{foreground-3}}' 33%, transparent 0%); }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input-default-theme.min.css
deleted file mode 100644
index 0ff5bb98..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-input-container.md-THEME_NAME-theme .md-input{color:'{{foreground-1}}';border-color:'{{foreground-4}}';text-shadow:'{{foreground-shadow}}'}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:'{{foreground-3}}'}md-input-container.md-THEME_NAME-theme>md-icon{color:'{{foreground-1}}'}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{text-shadow:'{{foreground-shadow}}';color:'{{foreground-3}}'}md-input-container.md-THEME_NAME-theme [data-ng-message],md-input-container.md-THEME_NAME-theme [ng-message],md-input-container.md-THEME_NAME-theme [x-ng-message],md-input-container.md-THEME_NAME-theme ng-messages{color:'{{warn-500}}'}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:'{{foreground-2}}'}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input{border-color:'{{primary-500}}'}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:'{{primary-500}}'}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:'{{accent-500}}'}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label{color:'{{accent-500}}'}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:'{{warn-500}}'}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label{color:'{{warn-500}}'}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:'{{warn-500}}'}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message],md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message],md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message],md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message,md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message,md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message,md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label{color:'{{warn-500}}'}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:'{{foreground-3}}';background-image:linear-gradient(to right,'{{foreground-3}}' 0,'{{foreground-3}}' 33%,transparent 0)} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.css
deleted file mode 100644
index fb731109..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.css
+++ /dev/null
@@ -1,162 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-input-container {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- position: relative;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- padding: 2px;
- padding-bottom: 26px;
- /*
- * The .md-input class is added to the input/textarea
- */ }
- md-input-container > md-icon {
- position: absolute;
- top: 5px;
- left: 2px; }
- md-input-container > md-icon + input {
- margin-left: 36px; }
- md-input-container textarea, md-input-container input[type="text"], md-input-container input[type="password"], md-input-container input[type="datetime"], md-input-container input[type="datetime-local"], md-input-container input[type="date"], md-input-container input[type="month"], md-input-container input[type="time"], md-input-container input[type="week"], md-input-container input[type="number"], md-input-container input[type="email"], md-input-container input[type="url"], md-input-container input[type="search"], md-input-container input[type="tel"], md-input-container input[type="color"] {
- /* remove default appearance from all input/textarea */
- -moz-appearance: none;
- -webkit-appearance: none; }
- md-input-container input[type="date"], md-input-container input[type="datetime-local"], md-input-container input[type="month"], md-input-container input[type="time"], md-input-container input[type="week"] {
- min-height: 26px; }
- md-input-container textarea {
- resize: none;
- overflow: hidden; }
- md-input-container textarea.md-input {
- min-height: 56px;
- -ms-flex-preferred-size: auto; }
- md-input-container label {
- position: relative;
- top: -2px; }
- md-input-container label:not(.md-no-float), md-input-container .md-placeholder:not(.md-select-label) {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1;
- pointer-events: none;
- -webkit-font-smoothing: antialiased;
- padding-left: 2px;
- z-index: 1;
- -webkit-transform: translate3d(0, 28px, 0) scale(1);
- transform: translate3d(0, 28px, 0) scale(1);
- transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
- transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
- -webkit-transform-origin: left top;
- transform-origin: left top; }
- html[dir=rtl] md-input-container label:not(.md-no-float), html[dir=rtl] md-input-container .md-placeholder:not(.md-select-label) {
- -webkit-transform-origin: right top;
- transform-origin: right top; }
- md-input-container .md-placeholder:not(.md-select-label) {
- position: absolute;
- top: 0;
- opacity: 0;
- transition-property: opacity, -webkit-transform;
- transition-property: opacity, transform;
- -webkit-transform: translate3d(0, 30px, 0);
- transform: translate3d(0, 30px, 0); }
- md-input-container.md-input-focused .md-placeholder {
- opacity: 1;
- -webkit-transform: translate3d(0, 24px, 0);
- transform: translate3d(0, 24px, 0); }
- md-input-container.md-input-has-value .md-placeholder {
- transition: none;
- opacity: 0; }
- md-input-container:not(.md-input-has-value) input:not(:focus) {
- color: transparent; }
- md-input-container .md-input {
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2;
- display: block;
- background: none;
- padding-top: 2px;
- padding-bottom: 1px;
- padding-left: 2px;
- padding-right: 2px;
- border-width: 0 0 1px 0;
- line-height: 26px;
- -ms-flex-preferred-size: 26px;
- border-radius: 0; }
- md-input-container .md-input:focus {
- outline: none; }
- md-input-container .md-input:invalid {
- outline: none;
- box-shadow: none; }
- md-input-container ng-messages, md-input-container data-ng-messages, md-input-container x-ng-messages, md-input-container [ng-messages], md-input-container [data-ng-messages], md-input-container [x-ng-messages] {
- -webkit-order: 3;
- -ms-flex-order: 3;
- order: 3;
- position: relative; }
- md-input-container ng-message, md-input-container data-ng-message, md-input-container x-ng-message, md-input-container [ng-message], md-input-container [data-ng-message], md-input-container [x-ng-message], md-input-container .md-char-counter {
- -webkit-font-smoothing: antialiased;
- position: absolute;
- font-size: 12px;
- line-height: 24px; }
- md-input-container ng-message:not(.md-char-counter), md-input-container data-ng-message:not(.md-char-counter), md-input-container x-ng-message:not(.md-char-counter), md-input-container [ng-message]:not(.md-char-counter), md-input-container [data-ng-message]:not(.md-char-counter), md-input-container [x-ng-message]:not(.md-char-counter), md-input-container .md-char-counter:not(.md-char-counter) {
- padding-right: 30px; }
- md-input-container ng-message.ng-enter, md-input-container data-ng-message.ng-enter, md-input-container x-ng-message.ng-enter, md-input-container [ng-message].ng-enter, md-input-container [data-ng-message].ng-enter, md-input-container [x-ng-message].ng-enter, md-input-container .md-char-counter.ng-enter {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-delay: 0.2s; }
- md-input-container ng-message.ng-leave, md-input-container data-ng-message.ng-leave, md-input-container x-ng-message.ng-leave, md-input-container [ng-message].ng-leave, md-input-container [data-ng-message].ng-leave, md-input-container [x-ng-message].ng-leave, md-input-container .md-char-counter.ng-leave {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-input-container ng-message.ng-enter, md-input-container ng-message.ng-leave.ng-leave-active, md-input-container data-ng-message.ng-enter, md-input-container data-ng-message.ng-leave.ng-leave-active, md-input-container x-ng-message.ng-enter, md-input-container x-ng-message.ng-leave.ng-leave-active, md-input-container [ng-message].ng-enter, md-input-container [ng-message].ng-leave.ng-leave-active, md-input-container [data-ng-message].ng-enter, md-input-container [data-ng-message].ng-leave.ng-leave-active, md-input-container [x-ng-message].ng-enter, md-input-container [x-ng-message].ng-leave.ng-leave-active, md-input-container .md-char-counter.ng-enter, md-input-container .md-char-counter.ng-leave.ng-leave-active {
- opacity: 0;
- -webkit-transform: translate3d(0, -20%, 0);
- transform: translate3d(0, -20%, 0); }
- md-input-container ng-message.ng-leave, md-input-container ng-message.ng-enter.ng-enter-active, md-input-container data-ng-message.ng-leave, md-input-container data-ng-message.ng-enter.ng-enter-active, md-input-container x-ng-message.ng-leave, md-input-container x-ng-message.ng-enter.ng-enter-active, md-input-container [ng-message].ng-leave, md-input-container [ng-message].ng-enter.ng-enter-active, md-input-container [data-ng-message].ng-leave, md-input-container [data-ng-message].ng-enter.ng-enter-active, md-input-container [x-ng-message].ng-leave, md-input-container [x-ng-message].ng-enter.ng-enter-active, md-input-container .md-char-counter.ng-leave, md-input-container .md-char-counter.ng-enter.ng-enter-active {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-input-container .md-char-counter {
- bottom: 2px;
- right: 2px; }
- md-input-container.md-input-focused label:not(.md-no-float), md-input-container.md-input-has-value label:not(.md-no-float) {
- -webkit-transform: translate3d(0, 6px, 0) scale(0.75);
- transform: translate3d(0, 6px, 0) scale(0.75); }
- md-input-container.md-input-focused .md-input, md-input-container .md-input.ng-invalid.ng-dirty {
- padding-bottom: 0;
- border-width: 0 0 2px 0; }
- md-input-container .md-input[disabled], [disabled] md-input-container .md-input {
- background-position: 0 bottom;
- background-size: 4px 1px;
- background-repeat: repeat-x;
- margin-bottom: -1px; }
-
-md-input-container.md-icon-float {
- margin-top: -16px;
- transition: margin-top 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-input-container.md-icon-float > label {
- pointer-events: none;
- position: absolute;
- margin-left: 36px; }
- md-input-container.md-icon-float > md-icon {
- top: 26px;
- left: 2px; }
- md-input-container.md-icon-float > md-icon + input {
- margin-left: 36px; }
- md-input-container.md-icon-float > input {
- padding-top: 24px; }
- md-input-container.md-icon-float.md-input-focused, md-input-container.md-icon-float.md-input-has-value {
- margin-top: -8px; }
- md-input-container.md-icon-float.md-input-focused label, md-input-container.md-icon-float.md-input-has-value label {
- -webkit-transform: translate3d(0, 6px, 0) scale(0.75);
- transform: translate3d(0, 6px, 0) scale(0.75);
- transition: -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s;
- transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s; }
-
-@media screen and (-ms-high-contrast: active) {
- md-input-container.md-default-theme > md-icon {
- fill: #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.js
deleted file mode 100644
index 4e6666be..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.js
+++ /dev/null
@@ -1,372 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.input
- */
-
-angular.module('material.components.input', [
- 'material.core'
-])
- .directive('mdInputContainer', mdInputContainerDirective)
- .directive('label', labelDirective)
- .directive('input', inputTextareaDirective)
- .directive('textarea', inputTextareaDirective)
- .directive('mdMaxlength', mdMaxlengthDirective)
- .directive('placeholder', placeholderDirective);
-
-/**
- * @ngdoc directive
- * @name mdInputContainer
- * @module material.components.input
- *
- * @restrict E
- *
- * @description
- * `<md-input-container>` is the parent of any input or textarea element.
- *
- * Input and textarea elements will not behave properly unless the md-input-container
- * parent is provided.
- *
- * @param md-is-error {expression=} When the given expression evaluates to true, the input container will go into error state. Defaults to erroring if the input has been touched and is invalid.
- * @param md-no-float {boolean=} When present, placeholders will not be converted to floating labels
- *
- * @usage
- * <hljs lang="html">
- *
- * <md-input-container>
- * <label>Username</label>
- * <input type="text" ng-model="user.name">
- * </md-input-container>
- *
- * <md-input-container>
- * <label>Description</label>
- * <textarea ng-model="user.description"></textarea>
- * </md-input-container>
- *
- * </hljs>
- */
-function mdInputContainerDirective($mdTheming, $parse) {
- ContainerCtrl.$inject = ["$scope", "$element", "$attrs"];
- return {
- restrict: 'E',
- link: postLink,
- controller: ContainerCtrl
- };
-
- function postLink(scope, element, attr) {
- $mdTheming(element);
- }
- function ContainerCtrl($scope, $element, $attrs) {
- var self = this;
-
- self.isErrorGetter = $attrs.mdIsError && $parse($attrs.mdIsError);
-
- self.delegateClick = function() {
- self.input.focus();
- };
- self.element = $element;
- self.setFocused = function(isFocused) {
- $element.toggleClass('md-input-focused', !!isFocused);
- };
- self.setHasValue = function(hasValue) {
- $element.toggleClass('md-input-has-value', !!hasValue);
- };
- self.setInvalid = function(isInvalid) {
- $element.toggleClass('md-input-invalid', !!isInvalid);
- };
- $scope.$watch(function() {
- return self.label && self.input;
- }, function(hasLabelAndInput) {
- if (hasLabelAndInput && !self.label.attr('for')) {
- self.label.attr('for', self.input.attr('id'));
- }
- });
- }
-}
-mdInputContainerDirective.$inject = ["$mdTheming", "$parse"];
-
-function labelDirective() {
- return {
- restrict: 'E',
- require: '^?mdInputContainer',
- link: function(scope, element, attr, containerCtrl) {
- if (!containerCtrl || attr.mdNoFloat) return;
-
- containerCtrl.label = element;
- scope.$on('$destroy', function() {
- containerCtrl.label = null;
- });
- }
- };
-}
-
-/**
- * @ngdoc directive
- * @name mdInput
- * @restrict E
- * @module material.components.input
- *
- * @description
- * Use the `<input>` or the `<textarea>` as a child of an `<md-input-container>`.
- *
- * @param {number=} md-maxlength The maximum number of characters allowed in this input. If this is specified, a character counter will be shown underneath the input.<br/><br/>
- * The purpose of **`md-maxlength`** is exactly to show the max length counter text. If you don't want the counter text and only need "plain" validation, you can use the "simple" `ng-maxlength` or maxlength attributes.
- * @param {string=} aria-label Aria-label is required when no label is present. A warning message will be logged in the console if not present.
- * @param {string=} placeholder An alternative approach to using aria-label when the label is not present. The placeholder text is copied to the aria-label attribute.
- *
- * @usage
- * <hljs lang="html">
- * <md-input-container>
- * <label>Color</label>
- * <input type="text" ng-model="color" required md-maxlength="10">
- * </md-input-container>
- * </hljs>
- * <h3>With Errors</h3>
- *
- * <hljs lang="html">
- * <form name="userForm">
- * <md-input-container>
- * <label>Last Name</label>
- * <input name="lastName" ng-model="lastName" required md-maxlength="10" minlength="4">
- * <div ng-messages="userForm.lastName.$error" ng-show="userForm.lastName.$dirty">
- * <div ng-message="required">This is required!</div>
- * <div ng-message="md-maxlength">That's too long!</div>
- * <div ng-message="minlength">That's too short!</div>
- * </div>
- * </md-input-container>
- * <md-input-container>
- * <label>Biography</label>
- * <textarea name="bio" ng-model="biography" required md-maxlength="150"></textarea>
- * <div ng-messages="userForm.bio.$error" ng-show="userForm.bio.$dirty">
- * <div ng-message="required">This is required!</div>
- * <div ng-message="md-maxlength">That's too long!</div>
- * </div>
- * </md-input-container>
- * <md-input-container>
- * <input aria-label='title' ng-model='title'>
- * </md-input-container>
- * <md-input-container>
- * <input placeholder='title' ng-model='title'>
- * </md-input-container>
- * </form>
- * </hljs>
- *
- * Requires [ngMessages](https://docs.angularjs.org/api/ngMessages).
- * Behaves like the [AngularJS input directive](https://docs.angularjs.org/api/ng/directive/input).
- *
- */
-
-function inputTextareaDirective($mdUtil, $window, $mdAria) {
- return {
- restrict: 'E',
- require: ['^?mdInputContainer', '?ngModel'],
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrls) {
-
- var containerCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1] || $mdUtil.fakeNgModel();
- var isReadonly = angular.isDefined(attr.readonly);
-
- if ( !containerCtrl ) return;
- if (containerCtrl.input) {
- throw new Error("<md-input-container> can only have *one* <input> or <textarea> child element!");
- }
- containerCtrl.input = element;
-
- if(!containerCtrl.label) {
- $mdAria.expect(element, 'aria-label', element.attr('placeholder'));
- }
-
- element.addClass('md-input');
- if (!element.attr('id')) {
- element.attr('id', 'input_' + $mdUtil.nextUid());
- }
-
- if (element[0].tagName.toLowerCase() === 'textarea') {
- setupTextarea();
- }
-
- var isErrorGetter = containerCtrl.isErrorGetter || function() {
- return ngModelCtrl.$invalid && ngModelCtrl.$touched;
- };
- scope.$watch(isErrorGetter, containerCtrl.setInvalid);
-
- ngModelCtrl.$parsers.push(ngModelPipelineCheckValue);
- ngModelCtrl.$formatters.push(ngModelPipelineCheckValue);
-
- element.on('input', inputCheckValue);
-
- if (!isReadonly) {
- element
- .on('focus', function(ev) {
- containerCtrl.setFocused(true);
- })
- .on('blur', function(ev) {
- containerCtrl.setFocused(false);
- inputCheckValue();
- });
-
- }
-
- //ngModelCtrl.$setTouched();
- //if( ngModelCtrl.$invalid ) containerCtrl.setInvalid();
-
- scope.$on('$destroy', function() {
- containerCtrl.setFocused(false);
- containerCtrl.setHasValue(false);
- containerCtrl.input = null;
- });
-
- /**
- *
- */
- function ngModelPipelineCheckValue(arg) {
- containerCtrl.setHasValue(!ngModelCtrl.$isEmpty(arg));
- return arg;
- }
- function inputCheckValue() {
- // An input's value counts if its length > 0,
- // or if the input's validity state says it has bad input (eg string in a number input)
- containerCtrl.setHasValue(element.val().length > 0 || (element[0].validity||{}).badInput);
- }
-
- function setupTextarea() {
- var node = element[0];
- var onChangeTextarea = $mdUtil.debounce(growTextarea, 1);
-
- function pipelineListener(value) {
- onChangeTextarea();
- return value;
- }
-
- if (ngModelCtrl) {
- ngModelCtrl.$formatters.push(pipelineListener);
- ngModelCtrl.$viewChangeListeners.push(pipelineListener);
- } else {
- onChangeTextarea();
- }
- element.on('keydown input', onChangeTextarea);
- element.on('scroll', onScroll);
- angular.element($window).on('resize', onChangeTextarea);
-
- scope.$on('$destroy', function() {
- angular.element($window).off('resize', onChangeTextarea);
- });
-
- function growTextarea() {
- node.style.height = "auto";
- node.scrollTop = 0;
- var height = getHeight();
- if (height) node.style.height = height + 'px';
- }
-
- function getHeight () {
- var line = node.scrollHeight - node.offsetHeight;
- return node.offsetHeight + (line > 0 ? line : 0);
- }
-
- function onScroll(e) {
- node.scrollTop = 0;
- // for smooth new line adding
- var line = node.scrollHeight - node.offsetHeight;
- var height = node.offsetHeight + line;
- node.style.height = height + 'px';
- }
- }
- }
-}
-inputTextareaDirective.$inject = ["$mdUtil", "$window", "$mdAria"];
-
-function mdMaxlengthDirective($animate) {
- return {
- restrict: 'A',
- require: ['ngModel', '^mdInputContainer'],
- link: postLink
- };
-
- function postLink(scope, element, attr, ctrls) {
- var maxlength;
- var ngModelCtrl = ctrls[0];
- var containerCtrl = ctrls[1];
- var charCountEl = angular.element('<div class="md-char-counter">');
-
- // Stop model from trimming. This makes it so whitespace
- // over the maxlength still counts as invalid.
- attr.$set('ngTrim', 'false');
- containerCtrl.element.append(charCountEl);
-
- ngModelCtrl.$formatters.push(renderCharCount);
- ngModelCtrl.$viewChangeListeners.push(renderCharCount);
- element.on('input keydown', function() {
- renderCharCount(); //make sure it's called with no args
- });
-
- scope.$watch(attr.mdMaxlength, function(value) {
- maxlength = value;
- if (angular.isNumber(value) && value > 0) {
- if (!charCountEl.parent().length) {
- $animate.enter(charCountEl, containerCtrl.element,
- angular.element(containerCtrl.element[0].lastElementChild));
- }
- renderCharCount();
- } else {
- $animate.leave(charCountEl);
- }
- });
-
- ngModelCtrl.$validators['md-maxlength'] = function(modelValue, viewValue) {
- if (!angular.isNumber(maxlength) || maxlength < 0) {
- return true;
- }
- return ( modelValue || element.val() || viewValue || '' ).length <= maxlength;
- };
-
- function renderCharCount(value) {
- charCountEl.text( ( element.val() || value || '' ).length + '/' + maxlength );
- return value;
- }
- }
-}
-mdMaxlengthDirective.$inject = ["$animate"];
-
-function placeholderDirective($log) {
- var blackListElements = ['MD-SELECT'];
- return {
- restrict: 'A',
- require: '^^?mdInputContainer',
- priority: 200,
- link: postLink
- };
-
- function postLink(scope, element, attr, inputContainer) {
- if (!inputContainer) return;
- if (blackListElements.indexOf(element[0].nodeName) != -1) return;
- if (angular.isDefined(inputContainer.element.attr('md-no-float'))) return;
-
- var placeholderText = attr.placeholder;
- element.removeAttr('placeholder');
-
- if ( inputContainer.element.find('label').length == 0 ) {
- var placeholder = '<label ng-click="delegateClick()">' + placeholderText + '</label>';
-
- inputContainer.element.addClass('md-icon-float');
- inputContainer.element.prepend(placeholder);
- } else {
- $log.warn("The placeholder='" + placeholderText + "' will be ignored since this md-input-container has a child label element.");
- }
-
- }
-}
-placeholderDirective.$inject = ["$log"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.min.css
deleted file mode 100644
index 491a1057..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-input-container{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:2px 2px 26px}md-input-container>md-icon{position:absolute;top:5px;left:2px}md-input-container>md-icon+input{margin-left:36px}md-input-container input[type=text],md-input-container input[type=url],md-input-container input[type=search],md-input-container input[type=tel],md-input-container input[type=color],md-input-container input[type=password],md-input-container input[type=datetime],md-input-container input[type=datetime-local],md-input-container input[type=date],md-input-container input[type=month],md-input-container input[type=time],md-input-container input[type=week],md-input-container input[type=number],md-input-container input[type=email],md-input-container textarea{-moz-appearance:none;-webkit-appearance:none}md-input-container input[type=datetime-local],md-input-container input[type=date],md-input-container input[type=month],md-input-container input[type=time],md-input-container input[type=week]{min-height:26px}md-input-container textarea{resize:none;overflow:hidden}md-input-container textarea.md-input{min-height:56px;-ms-flex-preferred-size:auto}md-input-container label{position:relative;top:-2px}md-input-container .md-placeholder:not(.md-select-label),md-input-container label:not(.md-no-float){-webkit-order:1;-ms-flex-order:1;order:1;pointer-events:none;-webkit-font-smoothing:antialiased;padding-left:2px;z-index:1;-webkit-transform:translate3d(0,28px,0) scale(1);transform:translate3d(0,28px,0) scale(1);transition:-webkit-transform cubic-bezier(.25,.8,.25,1) .25s;transition:transform cubic-bezier(.25,.8,.25,1) .25s;-webkit-transform-origin:left top;transform-origin:left top}html[dir=rtl] md-input-container .md-placeholder:not(.md-select-label),html[dir=rtl] md-input-container label:not(.md-no-float){-webkit-transform-origin:right top;transform-origin:right top}md-input-container .md-placeholder:not(.md-select-label){position:absolute;top:0;opacity:0;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;-webkit-transform:translate3d(0,30px,0);transform:translate3d(0,30px,0)}md-input-container.md-input-focused .md-placeholder{opacity:1;-webkit-transform:translate3d(0,24px,0);transform:translate3d(0,24px,0)}md-input-container.md-input-has-value .md-placeholder{transition:none;opacity:0}md-input-container:not(.md-input-has-value) input:not(:focus){color:transparent}md-input-container .md-input{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-order:2;-ms-flex-order:2;order:2;display:block;background:0 0;padding:2px 2px 1px;border-width:0 0 1px;line-height:26px;-ms-flex-preferred-size:26px;border-radius:0}md-input-container .md-input:focus{outline:0}md-input-container .md-input:invalid{outline:0;box-shadow:none}md-input-container [data-ng-messages],md-input-container [ng-messages],md-input-container [x-ng-messages],md-input-container data-ng-messages,md-input-container ng-messages,md-input-container x-ng-messages{-webkit-order:3;-ms-flex-order:3;order:3;position:relative}md-input-container .md-char-counter,md-input-container [data-ng-message],md-input-container [ng-message],md-input-container [x-ng-message],md-input-container data-ng-message,md-input-container ng-message,md-input-container x-ng-message{-webkit-font-smoothing:antialiased;position:absolute;font-size:12px;line-height:24px}md-input-container .md-char-counter:not(.md-char-counter),md-input-container [data-ng-message]:not(.md-char-counter),md-input-container [ng-message]:not(.md-char-counter),md-input-container [x-ng-message]:not(.md-char-counter),md-input-container data-ng-message:not(.md-char-counter),md-input-container ng-message:not(.md-char-counter),md-input-container x-ng-message:not(.md-char-counter){padding-right:30px}md-input-container .md-char-counter.ng-enter,md-input-container [data-ng-message].ng-enter,md-input-container [ng-message].ng-enter,md-input-container [x-ng-message].ng-enter,md-input-container data-ng-message.ng-enter,md-input-container ng-message.ng-enter,md-input-container x-ng-message.ng-enter{transition:all .4s cubic-bezier(.25,.8,.25,1);transition-delay:.2s}md-input-container .md-char-counter.ng-leave,md-input-container [data-ng-message].ng-leave,md-input-container [ng-message].ng-leave,md-input-container [x-ng-message].ng-leave,md-input-container data-ng-message.ng-leave,md-input-container ng-message.ng-leave,md-input-container x-ng-message.ng-leave{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-input-container .md-char-counter.ng-enter,md-input-container .md-char-counter.ng-leave.ng-leave-active,md-input-container [data-ng-message].ng-enter,md-input-container [data-ng-message].ng-leave.ng-leave-active,md-input-container [ng-message].ng-enter,md-input-container [ng-message].ng-leave.ng-leave-active,md-input-container [x-ng-message].ng-enter,md-input-container [x-ng-message].ng-leave.ng-leave-active,md-input-container data-ng-message.ng-enter,md-input-container data-ng-message.ng-leave.ng-leave-active,md-input-container ng-message.ng-enter,md-input-container ng-message.ng-leave.ng-leave-active,md-input-container x-ng-message.ng-enter,md-input-container x-ng-message.ng-leave.ng-leave-active{opacity:0;-webkit-transform:translate3d(0,-20%,0);transform:translate3d(0,-20%,0)}md-input-container .md-char-counter.ng-enter.ng-enter-active,md-input-container .md-char-counter.ng-leave,md-input-container [data-ng-message].ng-enter.ng-enter-active,md-input-container [data-ng-message].ng-leave,md-input-container [ng-message].ng-enter.ng-enter-active,md-input-container [ng-message].ng-leave,md-input-container [x-ng-message].ng-enter.ng-enter-active,md-input-container [x-ng-message].ng-leave,md-input-container data-ng-message.ng-enter.ng-enter-active,md-input-container data-ng-message.ng-leave,md-input-container ng-message.ng-enter.ng-enter-active,md-input-container ng-message.ng-leave,md-input-container x-ng-message.ng-enter.ng-enter-active,md-input-container x-ng-message.ng-leave{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-input-container .md-char-counter{bottom:2px;right:2px}md-input-container.md-input-focused label:not(.md-no-float),md-input-container.md-input-has-value label:not(.md-no-float){-webkit-transform:translate3d(0,6px,0) scale(.75);transform:translate3d(0,6px,0) scale(.75)}md-input-container .md-input.ng-invalid.ng-dirty,md-input-container.md-input-focused .md-input{padding-bottom:0;border-width:0 0 2px}[disabled] md-input-container .md-input,md-input-container .md-input[disabled]{background-position:0 bottom;background-size:4px 1px;background-repeat:repeat-x;margin-bottom:-1px}md-input-container.md-icon-float{margin-top:-16px;transition:margin-top .5s cubic-bezier(.25,.8,.25,1)}md-input-container.md-icon-float>label{pointer-events:none;position:absolute;margin-left:36px}md-input-container.md-icon-float>md-icon{top:26px;left:2px}md-input-container.md-icon-float>md-icon+input{margin-left:36px}md-input-container.md-icon-float>input{padding-top:24px}md-input-container.md-icon-float.md-input-focused,md-input-container.md-icon-float.md-input-has-value{margin-top:-8px}md-input-container.md-icon-float.md-input-focused label,md-input-container.md-icon-float.md-input-has-value label{-webkit-transform:translate3d(0,6px,0) scale(.75);transform:translate3d(0,6px,0) scale(.75);transition:-webkit-transform cubic-bezier(.25,.8,.25,1) .5s;transition:transform cubic-bezier(.25,.8,.25,1) .5s}@media screen and (-ms-high-contrast:active){md-input-container.md-default-theme>md-icon{fill:#fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.min.js
deleted file mode 100644
index d6ce01cd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/input/input.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function i(e,t){function n(t,n,i){e(n)}function i(e,n,i){var r=this;r.isErrorGetter=i.mdIsError&&t(i.mdIsError),r.delegateClick=function(){r.input.focus()},r.element=n,r.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},r.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},r.setInvalid=function(e){n.toggleClass("md-input-invalid",!!e)},e.$watch(function(){return r.label&&r.input},function(e){e&&!r.label.attr("for")&&r.label.attr("for",r.input.attr("id"))})}return i.$inject=["$scope","$element","$attrs"],{restrict:"E",link:n,controller:i}}function r(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,i){i&&!n.mdNoFloat&&(i.label=t,e.$on("$destroy",function(){i.label=null}))}}}function l(e,n,i){function r(r,l,o,a){function u(e){return d.setHasValue(!f.$isEmpty(e)),e}function s(){d.setHasValue(l.val().length>0||(l[0].validity||{}).badInput)}function c(){function i(e){return c(),e}function o(){s.style.height="auto",s.scrollTop=0;var e=a();e&&(s.style.height=e+"px")}function a(){var e=s.scrollHeight-s.offsetHeight;return s.offsetHeight+(e>0?e:0)}function u(e){s.scrollTop=0;var t=s.scrollHeight-s.offsetHeight,n=s.offsetHeight+t;s.style.height=n+"px"}var s=l[0],c=e.debounce(o,1);f?(f.$formatters.push(i),f.$viewChangeListeners.push(i)):c(),l.on("keydown input",c),l.on("scroll",u),t.element(n).on("resize",c),r.$on("$destroy",function(){t.element(n).off("resize",c)})}var d=a[0],f=a[1]||e.fakeNgModel(),m=t.isDefined(o.readonly);if(d){if(d.input)throw new Error("<md-input-container> can only have *one* <input> or <textarea> child element!");d.input=l,d.label||i.expect(l,"aria-label",l.attr("placeholder")),l.addClass("md-input"),l.attr("id")||l.attr("id","input_"+e.nextUid()),"textarea"===l[0].tagName.toLowerCase()&&c();var p=d.isErrorGetter||function(){return f.$invalid&&f.$touched};r.$watch(p,d.setInvalid),f.$parsers.push(u),f.$formatters.push(u),l.on("input",s),m||l.on("focus",function(e){d.setFocused(!0)}).on("blur",function(e){d.setFocused(!1),s()}),r.$on("$destroy",function(){d.setFocused(!1),d.setHasValue(!1),d.input=null})}}return{restrict:"E",require:["^?mdInputContainer","?ngModel"],link:r}}function o(e){function n(n,i,r,l){function o(e){return c.text((i.val()||e||"").length+"/"+a),e}var a,u=l[0],s=l[1],c=t.element('<div class="md-char-counter">');r.$set("ngTrim","false"),s.element.append(c),u.$formatters.push(o),u.$viewChangeListeners.push(o),i.on("input keydown",function(){o()}),n.$watch(r.mdMaxlength,function(n){a=n,t.isNumber(n)&&n>0?(c.parent().length||e.enter(c,s.element,t.element(s.element[0].lastElementChild)),o()):e.leave(c)}),u.$validators["md-maxlength"]=function(e,n){return!t.isNumber(a)||0>a?!0:(e||i.val()||n||"").length<=a}}return{restrict:"A",require:["ngModel","^mdInputContainer"],link:n}}function a(e){function n(n,r,l,o){if(o&&-1==i.indexOf(r[0].nodeName)&&!t.isDefined(o.element.attr("md-no-float"))){var a=l.placeholder;if(r.removeAttr("placeholder"),0==o.element.find("label").length){var u='<label ng-click="delegateClick()">'+a+"</label>";o.element.addClass("md-icon-float"),o.element.prepend(u)}else e.warn("The placeholder='"+a+"' will be ignored since this md-input-container has a child label element.")}}var i=["MD-SELECT"];return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:n}}t.module("material.components.input",["material.core"]).directive("mdInputContainer",i).directive("label",r).directive("input",l).directive("textarea",l).directive("mdMaxlength",o).directive("placeholder",a),i.$inject=["$mdTheming","$parse"],l.$inject=["$mdUtil","$window","$mdAria"],o.$inject=["$animate"],a.$inject=["$log"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/bower.json
deleted file mode 100644
index 882b5f05..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-list",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list-default-theme.css
deleted file mode 100644
index 0f987b14..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list-default-theme.css
+++ /dev/null
@@ -1,23 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 {
- color: '{{foreground-1}}'; }
-md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p, md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p {
- color: '{{foreground-2}}'; }
-md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style {
- background-color: '{{background-100}}'; }
-md-list.md-THEME_NAME-theme md-list-item > md-icon {
- color: '{{foreground-2}}'; }
- md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight {
- color: '{{primary-color}}'; }
- md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent {
- color: '{{accent-color}}'; }
-md-list.md-THEME_NAME-theme md-list-item button {
- background-color: '{{background-color}}'; }
- md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover {
- background-color: '{{background-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list-default-theme.min.css
deleted file mode 100644
index 810960ec..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:'{{foreground-1}}'}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:'{{foreground-2}}'}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:'{{background-100}}'}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:'{{foreground-2}}'}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:'{{primary-color}}'}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:'{{accent-color}}'}md-list.md-THEME_NAME-theme md-list-item button,md-list.md-THEME_NAME-theme md-list-item button.md-button:not([disabled]):hover{background-color:'{{background-color}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.css
deleted file mode 100644
index 5835d322..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.css
+++ /dev/null
@@ -1,147 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-list {
- display: block;
- padding: 8px 0px 8px 0px; }
- md-list .md-subheader {
- line-height: 0.75em; }
-
-md-list-item.md-proxy-focus.md-focused .md-no-style {
- transition: background-color 0.15s linear; }
-md-list-item.md-no-proxy, md-list-item .md-no-style {
- position: relative;
- padding: 0px 16px;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- md-list-item.md-no-proxy.md-button, md-list-item .md-no-style.md-button {
- font-size: inherit;
- height: inherit;
- text-align: left;
- text-transform: none;
- width: 100%;
- white-space: normal; }
- md-list-item.md-no-proxy:focus, md-list-item .md-no-style:focus {
- outline: none; }
-md-list-item.md-with-secondary {
- position: relative; }
-md-list-item.md-clickable:hover {
- cursor: pointer; }
-md-list-item md-divider {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%; }
- md-list-item md-divider[md-inset] {
- left: 96px;
- width: calc(100% - 96px);
- margin: 0; }
-
-md-list-item, md-list-item .md-list-item-inner {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-justify-content: flex-start;
- -ms-flex-pack: start;
- justify-content: flex-start;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- min-height: 48px; }
- md-list-item > div.md-primary > md-icon, md-list-item > div.md-secondary > md-icon, md-list-item > md-icon:first-child, md-list-item > md-icon.md-secondary, md-list-item .md-list-item-inner > div.md-primary > md-icon, md-list-item .md-list-item-inner > div.md-secondary > md-icon, md-list-item .md-list-item-inner > md-icon:first-child, md-list-item .md-list-item-inner > md-icon.md-secondary {
- width: 24px;
- margin-top: 16px;
- margin-bottom: 12px;
- box-sizing: content-box; }
- md-list-item > div.md-primary > md-checkbox, md-list-item > div.md-secondary > md-checkbox, md-list-item > md-checkbox:first-child, md-list-item md-checkbox.md-secondary, md-list-item .md-list-item-inner > div.md-primary > md-checkbox, md-list-item .md-list-item-inner > div.md-secondary > md-checkbox, md-list-item .md-list-item-inner > md-checkbox:first-child, md-list-item .md-list-item-inner md-checkbox.md-secondary {
- -webkit-align-self: center;
- -ms-flex-item-align: center;
- align-self: center; }
- md-list-item > div.md-primary > md-checkbox .md-label, md-list-item > div.md-secondary > md-checkbox .md-label, md-list-item > md-checkbox:first-child .md-label, md-list-item md-checkbox.md-secondary .md-label, md-list-item .md-list-item-inner > div.md-primary > md-checkbox .md-label, md-list-item .md-list-item-inner > div.md-secondary > md-checkbox .md-label, md-list-item .md-list-item-inner > md-checkbox:first-child .md-label, md-list-item .md-list-item-inner md-checkbox.md-secondary .md-label {
- display: none; }
- md-list-item > md-icon:first-child, md-list-item .md-list-item-inner > md-icon:first-child {
- margin-right: 32px; }
- md-list-item > md-checkbox:first-child, md-list-item .md-list-item-inner > md-checkbox:first-child {
- width: 24px;
- margin-left: 3px;
- margin-right: 29px; }
- md-list-item > .md-avatar:first-child, md-list-item .md-list-item-inner > .md-avatar:first-child {
- width: 40px;
- height: 40px;
- margin-top: 8px;
- margin-bottom: 8px;
- margin-right: 16px;
- border-radius: 50%;
- box-sizing: content-box; }
- md-list-item md-checkbox.md-secondary, md-list-item md-switch.md-secondary, md-list-item .md-list-item-inner md-checkbox.md-secondary, md-list-item .md-list-item-inner md-switch.md-secondary {
- margin-right: 0;
- margin-top: 0;
- margin-bottom: 0; }
- md-list-item button.md-button.md-secondary-container, md-list-item .md-list-item-inner button.md-button.md-secondary-container {
- background-color: transparent;
- -webkit-align-self: center;
- -ms-flex-item-align: center;
- align-self: center;
- border-radius: 50%;
- margin: 0px;
- min-width: 0px; }
- md-list-item button.md-button.md-secondary-container .md-ripple, md-list-item button.md-button.md-secondary-container .md-ripple-container, md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple, md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple-container {
- border-radius: 50%; }
- md-list-item .md-secondary-container, md-list-item .md-secondary, md-list-item .md-list-item-inner .md-secondary-container, md-list-item .md-list-item-inner .md-secondary {
- margin-left: 16px;
- position: absolute;
- right: 16px;
- top: 50%;
- -webkit-transform: translate3d(0, -50%, 0);
- transform: translate3d(0, -50%, 0); }
- md-list-item > .md-button.md-secondary-container > .md-secondary, md-list-item .md-list-item-inner > .md-button.md-secondary-container > .md-secondary {
- margin-left: 0px;
- position: static; }
- md-list-item > p, md-list-item > .md-list-item-inner > p, md-list-item .md-list-item-inner > p, md-list-item .md-list-item-inner > .md-list-item-inner > p {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- margin: 0; }
-
-md-list-item.md-2-line, md-list-item.md-2-line > .md-no-style, md-list-item.md-3-line, md-list-item.md-3-line > .md-no-style {
- -webkit-align-items: flex-start;
- -ms-flex-align: start;
- align-items: flex-start; }
- md-list-item.md-2-line .md-list-item-text, md-list-item.md-2-line > .md-no-style .md-list-item-text, md-list-item.md-3-line .md-list-item-text, md-list-item.md-3-line > .md-no-style .md-list-item-text {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- padding: 16px 0;
- text-overflow: ellipsis; }
- md-list-item.md-2-line .md-list-item-text.md-offset, md-list-item.md-2-line > .md-no-style .md-list-item-text.md-offset, md-list-item.md-3-line .md-list-item-text.md-offset, md-list-item.md-3-line > .md-no-style .md-list-item-text.md-offset {
- margin-left: 56px; }
- md-list-item.md-2-line .md-list-item-text h3, md-list-item.md-2-line > .md-no-style .md-list-item-text h3, md-list-item.md-3-line .md-list-item-text h3, md-list-item.md-3-line > .md-no-style .md-list-item-text h3 {
- margin: 0 0 6px 0;
- line-height: 0.75em; }
- md-list-item.md-2-line .md-list-item-text h4, md-list-item.md-2-line > .md-no-style .md-list-item-text h4, md-list-item.md-3-line .md-list-item-text h4, md-list-item.md-3-line > .md-no-style .md-list-item-text h4 {
- font-weight: 400;
- margin: 10px 0 5px 0;
- line-height: 0.75em; }
- md-list-item.md-2-line .md-list-item-text p, md-list-item.md-2-line > .md-no-style .md-list-item-text p, md-list-item.md-3-line .md-list-item-text p, md-list-item.md-3-line > .md-no-style .md-list-item-text p {
- margin: 0 0 0px 0;
- line-height: 1.6em; }
-
-md-list-item.md-2-line > .md-avatar:first-child, md-list-item.md-2-line > .md-no-style > .md-avatar:first-child {
- margin-top: 12px; }
-md-list-item.md-2-line > md-icon:first-child, md-list-item.md-2-line > .md-no-style > md-icon:first-child {
- -webkit-align-self: flex-start;
- -ms-flex-item-align: start;
- align-self: flex-start; }
-md-list-item.md-2-line .md-list-item-text, md-list-item.md-2-line > .md-no-style .md-list-item-text {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- padding-top: 19px; }
-
-md-list-item.md-3-line > md-icon:first-child, md-list-item.md-3-line > .md-avatar:first-child, md-list-item.md-3-line > .md-no-style > md-icon:first-child, md-list-item.md-3-line > .md-no-style > .md-avatar:first-child {
- margin-top: 16px; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.js
deleted file mode 100644
index f073de1b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.js
+++ /dev/null
@@ -1,274 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.list
- * @description
- * List module
- */
-angular.module('material.components.list', [
- 'material.core'
-])
- .controller('MdListController', MdListController)
- .directive('mdList', mdListDirective)
- .directive('mdListItem', mdListItemDirective);
-
-/**
- * @ngdoc directive
- * @name mdList
- * @module material.components.list
- *
- * @restrict E
- *
- * @description
- * The `<md-list>` directive is a list container for 1..n `<md-list-item>` tags.
- *
- * @usage
- * <hljs lang="html">
- * <md-list>
- * <md-list-item class="md-2-line" ng-repeat="item in todos">
- * <md-checkbox ng-model="item.done"></md-checkbox>
- * <div class="md-list-item-text">
- * <h3>{{item.title}}</h3>
- * <p>{{item.description}}</p>
- * </div>
- * </md-list-item>
- * </md-list>
- * </hljs>
- */
-
-function mdListDirective($mdTheming) {
- return {
- restrict: 'E',
- compile: function(tEl) {
- tEl[0].setAttribute('role', 'list');
- return $mdTheming;
- }
- };
-}
-mdListDirective.$inject = ["$mdTheming"];
-/**
- * @ngdoc directive
- * @name mdListItem
- * @module material.components.list
- *
- * @restrict E
- *
- * @description
- * The `<md-list-item>` directive is a container intended for row items in a `<md-list>` container.
- *
- * @usage
- * <hljs lang="html">
- * <md-list>
- * <md-list-item>
- * Item content in list
- * </md-list-item>
- * </md-list>
- * </hljs>
- *
- */
-function mdListItemDirective($mdAria, $mdConstant, $timeout) {
- var proxiedTypes = ['md-checkbox', 'md-switch'];
- return {
- restrict: 'E',
- controller: 'MdListController',
- compile: function(tEl, tAttrs) {
- // Check for proxy controls (no ng-click on parent, and a control inside)
- var secondaryItem = tEl[0].querySelector('.md-secondary');
- var hasProxiedElement;
- var proxyElement;
-
- tEl[0].setAttribute('role', 'listitem');
-
- if (!tAttrs.ngClick) {
- for (var i = 0, type; type = proxiedTypes[i]; ++i) {
- if (proxyElement = tEl[0].querySelector(type)) {
- hasProxiedElement = true;
- break;
- }
- }
- if (hasProxiedElement) {
- wrapIn('div');
- } else if (!tEl[0].querySelector('md-button')) {
- tEl.addClass('md-no-proxy');
- }
- } else {
- wrapIn('button');
- }
- setupToggleAria();
-
-
- function setupToggleAria() {
- var toggleTypes = ['md-switch', 'md-checkbox'];
- var toggle;
-
- for (var i = 0, toggleType; toggleType = toggleTypes[i]; ++i) {
- if (toggle = tEl.find(toggleType)[0]) {
- if (!toggle.hasAttribute('aria-label')) {
- var p = tEl.find('p')[0];
- if (!p) return;
- toggle.setAttribute('aria-label', 'Toggle ' + p.textContent);
- }
- }
- }
- }
-
- function wrapIn(type) {
- var container;
- if (type == 'div') {
- container = angular.element('<div class="md-no-style md-list-item-inner">');
- container.append(tEl.contents());
- tEl.addClass('md-proxy-focus');
- } else {
- container = angular.element('<md-button class="md-no-style"><div class="md-list-item-inner"></div></md-button>');
- var copiedAttrs = ['ng-click', 'aria-label', 'ng-disabled'];
- angular.forEach(copiedAttrs, function(attr) {
- if (tEl[0].hasAttribute(attr)) {
- container[0].setAttribute(attr, tEl[0].getAttribute(attr));
- tEl[0].removeAttribute(attr);
- }
- });
- container.children().eq(0).append(tEl.contents());
- }
-
- tEl[0].setAttribute('tabindex', '-1');
- tEl.append(container);
-
- if (secondaryItem && secondaryItem.hasAttribute('ng-click')) {
- $mdAria.expect(secondaryItem, 'aria-label');
- var buttonWrapper = angular.element('<md-button class="md-secondary-container md-icon-button">');
- buttonWrapper.attr('ng-click', secondaryItem.getAttribute('ng-click'));
- secondaryItem.removeAttribute('ng-click');
- secondaryItem.setAttribute('tabindex', '-1');
- secondaryItem.classList.remove('md-secondary');
- buttonWrapper.append(secondaryItem);
- secondaryItem = buttonWrapper[0];
- }
-
- // Check for a secondary item and move it outside
- if ( secondaryItem && (
- secondaryItem.hasAttribute('ng-click') ||
- ( tAttrs.ngClick &&
- isProxiedElement(secondaryItem) )
- )) {
- tEl.addClass('md-with-secondary');
- tEl.append(secondaryItem);
- }
- }
-
- function isProxiedElement(el) {
- return proxiedTypes.indexOf(el.nodeName.toLowerCase()) != -1;
- }
-
- return postLink;
-
- function postLink($scope, $element, $attr, ctrl) {
-
- var proxies = [],
- firstChild = $element[0].firstElementChild,
- hasClick = firstChild && firstChild.hasAttribute('ng-click');
-
- computeProxies();
- computeClickable();
-
- if ($element.hasClass('md-proxy-focus') && proxies.length) {
- angular.forEach(proxies, function(proxy) {
- proxy = angular.element(proxy);
-
- $scope.mouseActive = false;
- proxy.on('mousedown', function() {
- $scope.mouseActive = true;
- $timeout(function(){
- $scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if ($scope.mouseActive === false) { $element.addClass('md-focused'); }
- proxy.on('blur', function proxyOnBlur() {
- $element.removeClass('md-focused');
- proxy.off('blur', proxyOnBlur);
- });
- });
- });
- }
-
- function computeProxies() {
- var children = $element.children();
- if (children.length && !children[0].hasAttribute('ng-click')) {
- angular.forEach(proxiedTypes, function(type) {
- angular.forEach(firstChild.querySelectorAll(type), function(child) {
- proxies.push(child);
- });
- });
- }
- }
- function computeClickable() {
- if (proxies.length || hasClick) {
- $element.addClass('md-clickable');
-
- ctrl.attachRipple($scope, angular.element($element[0].querySelector('.md-no-style')));
- }
- }
-
- if (!hasClick && !proxies.length) {
- firstChild && firstChild.addEventListener('keypress', function(e) {
- if (e.target.nodeName != 'INPUT' && e.target.nodeName != 'TEXTAREA') {
- var keyCode = e.which || e.keyCode;
- if (keyCode == $mdConstant.KEY_CODE.SPACE) {
- if (firstChild) {
- firstChild.click();
- e.preventDefault();
- e.stopPropagation();
- }
- }
- }
- });
- }
-
- $element.off('click');
- $element.off('keypress');
-
- if (proxies.length && firstChild) {
- $element.children().eq(0).on('click', function(e) {
- if (firstChild.contains(e.target)) {
- angular.forEach(proxies, function(proxy) {
- if (e.target !== proxy && !proxy.contains(e.target)) {
- angular.element(proxy).triggerHandler('click');
- }
- });
- }
- });
- }
- }
- }
- };
-}
-mdListItemDirective.$inject = ["$mdAria", "$mdConstant", "$timeout"];
-
-/*
- * @private
- * @ngdoc controller
- * @name MdListController
- * @module material.components.list
- *
- */
-function MdListController($scope, $element, $mdListInkRipple) {
- var ctrl = this;
- ctrl.attachRipple = attachRipple;
-
- function attachRipple (scope, element) {
- var options = {};
- $mdListInkRipple.attach(scope, element, options);
- }
-}
-MdListController.$inject = ["$scope", "$element", "$mdListInkRipple"];
-
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.min.css
deleted file mode 100644
index 0f1c4c40..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-list{display:block;padding:8px 0}md-list .md-subheader{line-height:.75em}md-list-item.md-proxy-focus.md-focused .md-no-style{transition:background-color .15s linear}md-list-item .md-no-style,md-list-item.md-no-proxy{position:relative;padding:0 16px;-webkit-flex:1;-ms-flex:1;flex:1}md-list-item .md-no-style.md-button,md-list-item.md-no-proxy.md-button{font-size:inherit;height:inherit;text-align:left;text-transform:none;width:100%;white-space:normal}md-list-item .md-no-style:focus,md-list-item.md-no-proxy:focus{outline:0}md-list-item.md-with-secondary{position:relative}md-list-item.md-clickable:hover{cursor:pointer}md-list-item md-divider{position:absolute;bottom:0;left:0;width:100%}md-list-item md-divider[md-inset]{left:96px;width:calc(100% - 96px);margin:0}md-list-item,md-list-item .md-list-item-inner{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-height:48px}md-list-item .md-list-item-inner>div.md-primary>md-icon,md-list-item .md-list-item-inner>div.md-secondary>md-icon,md-list-item .md-list-item-inner>md-icon.md-secondary,md-list-item .md-list-item-inner>md-icon:first-child,md-list-item>div.md-primary>md-icon,md-list-item>div.md-secondary>md-icon,md-list-item>md-icon.md-secondary,md-list-item>md-icon:first-child{width:24px;margin-top:16px;margin-bottom:12px;box-sizing:content-box}md-list-item .md-list-item-inner md-checkbox.md-secondary,md-list-item .md-list-item-inner>div.md-primary>md-checkbox,md-list-item .md-list-item-inner>div.md-secondary>md-checkbox,md-list-item .md-list-item-inner>md-checkbox:first-child,md-list-item md-checkbox.md-secondary,md-list-item>div.md-primary>md-checkbox,md-list-item>div.md-secondary>md-checkbox,md-list-item>md-checkbox:first-child{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}md-list-item .md-list-item-inner md-checkbox.md-secondary .md-label,md-list-item .md-list-item-inner>div.md-primary>md-checkbox .md-label,md-list-item .md-list-item-inner>div.md-secondary>md-checkbox .md-label,md-list-item .md-list-item-inner>md-checkbox:first-child .md-label,md-list-item md-checkbox.md-secondary .md-label,md-list-item>div.md-primary>md-checkbox .md-label,md-list-item>div.md-secondary>md-checkbox .md-label,md-list-item>md-checkbox:first-child .md-label{display:none}md-list-item .md-list-item-inner>md-icon:first-child,md-list-item>md-icon:first-child{margin-right:32px}md-list-item .md-list-item-inner>md-checkbox:first-child,md-list-item>md-checkbox:first-child{width:24px;margin-left:3px;margin-right:29px}md-list-item .md-list-item-inner>.md-avatar:first-child,md-list-item>.md-avatar:first-child{width:40px;height:40px;margin-top:8px;margin-bottom:8px;margin-right:16px;border-radius:50%;box-sizing:content-box}md-list-item .md-list-item-inner md-checkbox.md-secondary,md-list-item .md-list-item-inner md-switch.md-secondary,md-list-item md-checkbox.md-secondary,md-list-item md-switch.md-secondary{margin-right:0;margin-top:0;margin-bottom:0}md-list-item .md-list-item-inner button.md-button.md-secondary-container,md-list-item button.md-button.md-secondary-container{background-color:transparent;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-radius:50%;margin:0;min-width:0}md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple,md-list-item .md-list-item-inner button.md-button.md-secondary-container .md-ripple-container,md-list-item button.md-button.md-secondary-container .md-ripple,md-list-item button.md-button.md-secondary-container .md-ripple-container{border-radius:50%}md-list-item .md-list-item-inner .md-secondary,md-list-item .md-list-item-inner .md-secondary-container,md-list-item .md-secondary,md-list-item .md-secondary-container{margin-left:16px;position:absolute;right:16px;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}md-list-item .md-list-item-inner>.md-button.md-secondary-container>.md-secondary,md-list-item>.md-button.md-secondary-container>.md-secondary{margin-left:0;position:static}md-list-item .md-list-item-inner>.md-list-item-inner>p,md-list-item .md-list-item-inner>p,md-list-item>.md-list-item-inner>p,md-list-item>p{-webkit-flex:1;-ms-flex:1;flex:1;margin:0}md-list-item.md-2-line,md-list-item.md-2-line>.md-no-style,md-list-item.md-3-line,md-list-item.md-3-line>.md-no-style{-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}md-list-item.md-2-line .md-list-item-text,md-list-item.md-2-line>.md-no-style .md-list-item-text,md-list-item.md-3-line .md-list-item-text,md-list-item.md-3-line>.md-no-style .md-list-item-text{-webkit-flex:1;-ms-flex:1;flex:1;padding:16px 0;text-overflow:ellipsis}md-list-item.md-2-line .md-list-item-text.md-offset,md-list-item.md-2-line>.md-no-style .md-list-item-text.md-offset,md-list-item.md-3-line .md-list-item-text.md-offset,md-list-item.md-3-line>.md-no-style .md-list-item-text.md-offset{margin-left:56px}md-list-item.md-2-line .md-list-item-text h3,md-list-item.md-2-line>.md-no-style .md-list-item-text h3,md-list-item.md-3-line .md-list-item-text h3,md-list-item.md-3-line>.md-no-style .md-list-item-text h3{margin:0 0 6px;line-height:.75em}md-list-item.md-2-line .md-list-item-text h4,md-list-item.md-2-line>.md-no-style .md-list-item-text h4,md-list-item.md-3-line .md-list-item-text h4,md-list-item.md-3-line>.md-no-style .md-list-item-text h4{font-weight:400;margin:10px 0 5px;line-height:.75em}md-list-item.md-2-line .md-list-item-text p,md-list-item.md-2-line>.md-no-style .md-list-item-text p,md-list-item.md-3-line .md-list-item-text p,md-list-item.md-3-line>.md-no-style .md-list-item-text p{margin:0;line-height:1.6em}md-list-item.md-2-line>.md-avatar:first-child,md-list-item.md-2-line>.md-no-style>.md-avatar:first-child{margin-top:12px}md-list-item.md-2-line>.md-no-style>md-icon:first-child,md-list-item.md-2-line>md-icon:first-child{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}md-list-item.md-2-line .md-list-item-text,md-list-item.md-2-line>.md-no-style .md-list-item-text{-webkit-flex:1;-ms-flex:1;flex:1;padding-top:19px}md-list-item.md-3-line>.md-avatar:first-child,md-list-item.md-3-line>.md-no-style>.md-avatar:first-child,md-list-item.md-3-line>.md-no-style>md-icon:first-child,md-list-item.md-3-line>md-icon:first-child{margin-top:16px} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.min.js
deleted file mode 100644
index 7dfddac8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/list/list.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(t,e,n){"use strict";function i(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function r(t,n,i){var r=["md-checkbox","md-switch"];return{restrict:"E",controller:"MdListController",compile:function(c,o){function a(){for(var t,e,n=["md-switch","md-checkbox"],i=0;e=n[i];++i)if((t=c.find(e)[0])&&!t.hasAttribute("aria-label")){var r=c.find("p")[0];if(!r)return;t.setAttribute("aria-label","Toggle "+r.textContent)}}function l(n){var i;if("div"==n)i=e.element('<div class="md-no-style md-list-item-inner">'),i.append(c.contents()),c.addClass("md-proxy-focus");else{i=e.element('<md-button class="md-no-style"><div class="md-list-item-inner"></div></md-button>');var r=["ng-click","aria-label","ng-disabled"];e.forEach(r,function(t){c[0].hasAttribute(t)&&(i[0].setAttribute(t,c[0].getAttribute(t)),c[0].removeAttribute(t))}),i.children().eq(0).append(c.contents())}if(c[0].setAttribute("tabindex","-1"),c.append(i),f&&f.hasAttribute("ng-click")){t.expect(f,"aria-label");var a=e.element('<md-button class="md-secondary-container md-icon-button">');a.attr("ng-click",f.getAttribute("ng-click")),f.removeAttribute("ng-click"),f.setAttribute("tabindex","-1"),f.classList.remove("md-secondary"),a.append(f),f=a[0]}f&&(f.hasAttribute("ng-click")||o.ngClick&&s(f))&&(c.addClass("md-with-secondary"),c.append(f))}function s(t){return-1!=r.indexOf(t.nodeName.toLowerCase())}function d(t,c,o,a){function l(){var t=c.children();t.length&&!t[0].hasAttribute("ng-click")&&e.forEach(r,function(t){e.forEach(u.querySelectorAll(t),function(t){d.push(t)})})}function s(){(d.length||m)&&(c.addClass("md-clickable"),a.attachRipple(t,e.element(c[0].querySelector(".md-no-style"))))}var d=[],u=c[0].firstElementChild,m=u&&u.hasAttribute("ng-click");l(),s(),c.hasClass("md-proxy-focus")&&d.length&&e.forEach(d,function(n){n=e.element(n),t.mouseActive=!1,n.on("mousedown",function(){t.mouseActive=!0,i(function(){t.mouseActive=!1},100)}).on("focus",function(){t.mouseActive===!1&&c.addClass("md-focused"),n.on("blur",function e(){c.removeClass("md-focused"),n.off("blur",e)})})}),m||d.length||u&&u.addEventListener("keypress",function(t){if("INPUT"!=t.target.nodeName&&"TEXTAREA"!=t.target.nodeName){var e=t.which||t.keyCode;e==n.KEY_CODE.SPACE&&u&&(u.click(),t.preventDefault(),t.stopPropagation())}}),c.off("click"),c.off("keypress"),d.length&&u&&c.children().eq(0).on("click",function(t){u.contains(t.target)&&e.forEach(d,function(n){t.target===n||n.contains(t.target)||e.element(n).triggerHandler("click")})})}var u,m,f=c[0].querySelector(".md-secondary");if(c[0].setAttribute("role","listitem"),o.ngClick)l("button");else{for(var b,h=0;b=r[h];++h)if(m=c[0].querySelector(b)){u=!0;break}u?l("div"):c[0].querySelector("md-button")||c.addClass("md-no-proxy")}return a(),d}}}function c(t,e,n){function i(t,e){var i={};n.attach(t,e,i)}var r=this;r.attachRipple=i}e.module("material.components.list",["material.core"]).controller("MdListController",c).directive("mdList",i).directive("mdListItem",r),i.$inject=["$mdTheming"],r.$inject=["$mdAria","$mdConstant","$timeout"],c.$inject=["$scope","$element","$mdListInkRipple"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/bower.json
deleted file mode 100644
index cdf456de..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/bower.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "angular-material-menu",
- "version": "0.6.0",
- "dependencies": {}
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.css
deleted file mode 100644
index 3731bdbe..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.6.0
- */
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.js
deleted file mode 100644
index 09921d0f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.6.0
- */
-
-angular.module('material.components.menu', [
-])
-
-.factory('$mdMenu', MenuProvider);
-
-function MenuProvider($$interimElementProvider) {
- return $$interimElementProvider('$mdMenu')
- .setDefaults({
- methods: ['placement'],
- options: menuDefaultOptions
- });
-
- /* @ngInject */
- function menuDefaultOptions() {
-
- }
-}
-MenuProvider.$inject = ["$$interimElementProvider"];
-
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.min.css
deleted file mode 100644
index 63385b7c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.6.0
- */ \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.min.js
deleted file mode 100644
index 116dccc6..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/menu/menu.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.6.0
- */
-function MenuProvider(e){function n(){}return e("$mdMenu").setDefaults({methods:["placement"],options:n})}angular.module("material.components.menu",[]).factory("$mdMenu",MenuProvider),MenuProvider.$inject=["$$interimElementProvider"]; \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/bower.json
deleted file mode 100644
index cf77c450..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-progressCircular",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.css
deleted file mode 100644
index c3ae544e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.css
+++ /dev/null
@@ -1,36 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-progress-circular.md-THEME_NAME-theme {
- background-color: transparent; }
- md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap {
- border-top-color: '{{primary-color}}';
- border-bottom-color: '{{primary-color}}'; }
- md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {
- border-top-color: '{{primary-color}}'; }
- md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {
- border-right-color: '{{primary-color}}'; }
- md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle {
- border-left-color: '{{primary-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap {
- border-top-color: '{{warn-color}}';
- border-bottom-color: '{{warn-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {
- border-top-color: '{{warn-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {
- border-right-color: '{{warn-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle {
- border-left-color: '{{warn-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap {
- border-top-color: '{{accent-color}}';
- border-bottom-color: '{{accent-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {
- border-top-color: '{{accent-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {
- border-right-color: '{{accent-color}}'; }
- md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle {
- border-left-color: '{{accent-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.min.css
deleted file mode 100644
index 636fe006..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-progress-circular.md-THEME_NAME-theme{background-color:transparent}md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap{border-top-color:'{{primary-color}}';border-bottom-color:'{{primary-color}}'}md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle,md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle{border-top-color:'{{primary-color}}'}md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle{border-right-color:'{{primary-color}}'}md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle{border-left-color:'{{primary-color}}'}md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap{border-top-color:'{{warn-color}}';border-bottom-color:'{{warn-color}}'}md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle,md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle{border-top-color:'{{warn-color}}'}md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle{border-right-color:'{{warn-color}}'}md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle{border-left-color:'{{warn-color}}'}md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap{border-top-color:'{{accent-color}}';border-bottom-color:'{{accent-color}}'}md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle,md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle{border-top-color:'{{accent-color}}'}md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle{border-right-color:'{{accent-color}}'}md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle{border-left-color:'{{accent-color}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.css
deleted file mode 100644
index 7fa7c668..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.css
+++ /dev/null
@@ -1,1306 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes outer-rotate {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg); } }
-@keyframes outer-rotate {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg); } }
-
-@-webkit-keyframes left-wobble {
- 0%, 100% {
- -webkit-transform: rotate(130deg);
- transform: rotate(130deg); }
-
- 50% {
- -webkit-transform: rotate(-5deg);
- transform: rotate(-5deg); } }
-
-@keyframes left-wobble {
- 0%, 100% {
- -webkit-transform: rotate(130deg);
- transform: rotate(130deg); }
-
- 50% {
- -webkit-transform: rotate(-5deg);
- transform: rotate(-5deg); } }
-
-@-webkit-keyframes right-wobble {
- 0%, 100% {
- -webkit-transform: rotate(-130deg);
- transform: rotate(-130deg); }
-
- 50% {
- -webkit-transform: rotate(5deg);
- transform: rotate(5deg); } }
-
-@keyframes right-wobble {
- 0%, 100% {
- -webkit-transform: rotate(-130deg);
- transform: rotate(-130deg); }
-
- 50% {
- -webkit-transform: rotate(5deg);
- transform: rotate(5deg); } }
-
-@-webkit-keyframes sporadic-rotate {
- 12.5% {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
-
- 25% {
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg); }
-
- 37.5% {
- -webkit-transform: rotate(405deg);
- transform: rotate(405deg); }
-
- 50% {
- -webkit-transform: rotate(540deg);
- transform: rotate(540deg); }
-
- 62.5% {
- -webkit-transform: rotate(675deg);
- transform: rotate(675deg); }
-
- 75% {
- -webkit-transform: rotate(810deg);
- transform: rotate(810deg); }
-
- 87.5% {
- -webkit-transform: rotate(945deg);
- transform: rotate(945deg); }
-
- 100% {
- -webkit-transform: rotate(1080deg);
- transform: rotate(1080deg); } }
-
-@keyframes sporadic-rotate {
- 12.5% {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
-
- 25% {
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg); }
-
- 37.5% {
- -webkit-transform: rotate(405deg);
- transform: rotate(405deg); }
-
- 50% {
- -webkit-transform: rotate(540deg);
- transform: rotate(540deg); }
-
- 62.5% {
- -webkit-transform: rotate(675deg);
- transform: rotate(675deg); }
-
- 75% {
- -webkit-transform: rotate(810deg);
- transform: rotate(810deg); }
-
- 87.5% {
- -webkit-transform: rotate(945deg);
- transform: rotate(945deg); }
-
- 100% {
- -webkit-transform: rotate(1080deg);
- transform: rotate(1080deg); } }
-
-md-progress-circular {
- width: 50px;
- height: 50px;
- display: block;
- position: relative;
- padding-top: 0 !important;
- margin-bottom: 0 !important;
- overflow: hidden; }
- md-progress-circular .md-inner {
- width: 50px;
- height: 50px;
- position: relative; }
- md-progress-circular .md-inner .md-gap {
- position: absolute;
- left: 24px;
- right: 24px;
- top: 0;
- bottom: 0;
- border-top: 5px solid black;
- box-sizing: border-box; }
- md-progress-circular .md-inner .md-left, md-progress-circular .md-inner .md-right {
- position: absolute;
- top: 0;
- height: 50px;
- width: 25px;
- overflow: hidden; }
- md-progress-circular .md-inner .md-left .md-half-circle, md-progress-circular .md-inner .md-right .md-half-circle {
- position: absolute;
- top: 0;
- width: 50px;
- height: 50px;
- box-sizing: border-box;
- border: 5px solid black;
- border-bottom-color: transparent;
- border-radius: 50%; }
- md-progress-circular .md-inner .md-left {
- left: 0; }
- md-progress-circular .md-inner .md-left .md-half-circle {
- left: 0;
- border-right-color: transparent; }
- md-progress-circular .md-inner .md-right {
- right: 0; }
- md-progress-circular .md-inner .md-right .md-half-circle {
- right: 0;
- border-left-color: transparent; }
- md-progress-circular[value="0"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="0"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-135deg);
- transform: rotate(-135deg); }
- md-progress-circular[value="0"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="1"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="1"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-131.4deg);
- transform: rotate(-131.4deg); }
- md-progress-circular[value="1"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="2"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="2"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-127.8deg);
- transform: rotate(-127.8deg); }
- md-progress-circular[value="2"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="3"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="3"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-124.2deg);
- transform: rotate(-124.2deg); }
- md-progress-circular[value="3"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="4"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="4"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-120.6deg);
- transform: rotate(-120.6deg); }
- md-progress-circular[value="4"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="5"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="5"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-117deg);
- transform: rotate(-117deg); }
- md-progress-circular[value="5"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="6"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="6"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-113.4deg);
- transform: rotate(-113.4deg); }
- md-progress-circular[value="6"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="7"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="7"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-109.8deg);
- transform: rotate(-109.8deg); }
- md-progress-circular[value="7"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="8"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="8"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-106.2deg);
- transform: rotate(-106.2deg); }
- md-progress-circular[value="8"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="9"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="9"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-102.6deg);
- transform: rotate(-102.6deg); }
- md-progress-circular[value="9"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="10"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="10"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-99deg);
- transform: rotate(-99deg); }
- md-progress-circular[value="10"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="11"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="11"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-95.4deg);
- transform: rotate(-95.4deg); }
- md-progress-circular[value="11"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="12"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="12"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-91.8deg);
- transform: rotate(-91.8deg); }
- md-progress-circular[value="12"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="13"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="13"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-88.2deg);
- transform: rotate(-88.2deg); }
- md-progress-circular[value="13"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="14"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="14"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-84.6deg);
- transform: rotate(-84.6deg); }
- md-progress-circular[value="14"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="15"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="15"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-81deg);
- transform: rotate(-81deg); }
- md-progress-circular[value="15"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="16"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="16"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-77.4deg);
- transform: rotate(-77.4deg); }
- md-progress-circular[value="16"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="17"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="17"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-73.8deg);
- transform: rotate(-73.8deg); }
- md-progress-circular[value="17"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="18"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="18"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-70.2deg);
- transform: rotate(-70.2deg); }
- md-progress-circular[value="18"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="19"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="19"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-66.6deg);
- transform: rotate(-66.6deg); }
- md-progress-circular[value="19"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="20"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="20"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-63deg);
- transform: rotate(-63deg); }
- md-progress-circular[value="20"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="21"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="21"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-59.4deg);
- transform: rotate(-59.4deg); }
- md-progress-circular[value="21"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="22"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="22"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-55.8deg);
- transform: rotate(-55.8deg); }
- md-progress-circular[value="22"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="23"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="23"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-52.2deg);
- transform: rotate(-52.2deg); }
- md-progress-circular[value="23"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="24"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="24"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-48.6deg);
- transform: rotate(-48.6deg); }
- md-progress-circular[value="24"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="25"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="25"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-45deg);
- transform: rotate(-45deg); }
- md-progress-circular[value="25"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="26"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="26"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-41.4deg);
- transform: rotate(-41.4deg); }
- md-progress-circular[value="26"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="27"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="27"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-37.8deg);
- transform: rotate(-37.8deg); }
- md-progress-circular[value="27"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="28"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="28"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-34.2deg);
- transform: rotate(-34.2deg); }
- md-progress-circular[value="28"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="29"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="29"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-30.6deg);
- transform: rotate(-30.6deg); }
- md-progress-circular[value="29"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="30"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="30"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-27deg);
- transform: rotate(-27deg); }
- md-progress-circular[value="30"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="31"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="31"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-23.4deg);
- transform: rotate(-23.4deg); }
- md-progress-circular[value="31"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="32"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="32"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-19.8deg);
- transform: rotate(-19.8deg); }
- md-progress-circular[value="32"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="33"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="33"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-16.2deg);
- transform: rotate(-16.2deg); }
- md-progress-circular[value="33"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="34"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="34"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-12.6deg);
- transform: rotate(-12.6deg); }
- md-progress-circular[value="34"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="35"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="35"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-9deg);
- transform: rotate(-9deg); }
- md-progress-circular[value="35"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="36"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="36"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-5.4deg);
- transform: rotate(-5.4deg); }
- md-progress-circular[value="36"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="37"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="37"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(-1.8deg);
- transform: rotate(-1.8deg); }
- md-progress-circular[value="37"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="38"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="38"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(1.8deg);
- transform: rotate(1.8deg); }
- md-progress-circular[value="38"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="39"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="39"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(5.4deg);
- transform: rotate(5.4deg); }
- md-progress-circular[value="39"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="40"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="40"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(9deg);
- transform: rotate(9deg); }
- md-progress-circular[value="40"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="41"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="41"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(12.6deg);
- transform: rotate(12.6deg); }
- md-progress-circular[value="41"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="42"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="42"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(16.2deg);
- transform: rotate(16.2deg); }
- md-progress-circular[value="42"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="43"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="43"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(19.8deg);
- transform: rotate(19.8deg); }
- md-progress-circular[value="43"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="44"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="44"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(23.4deg);
- transform: rotate(23.4deg); }
- md-progress-circular[value="44"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="45"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="45"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(27deg);
- transform: rotate(27deg); }
- md-progress-circular[value="45"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="46"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="46"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(30.6deg);
- transform: rotate(30.6deg); }
- md-progress-circular[value="46"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="47"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="47"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(34.2deg);
- transform: rotate(34.2deg); }
- md-progress-circular[value="47"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="48"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="48"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(37.8deg);
- transform: rotate(37.8deg); }
- md-progress-circular[value="48"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="49"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="49"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(41.4deg);
- transform: rotate(41.4deg); }
- md-progress-circular[value="49"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="50"] .md-inner .md-left .md-half-circle {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg); }
- md-progress-circular[value="50"] .md-inner .md-right .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="50"] .md-inner .md-gap {
- border-bottom: 5px solid;
- border-bottom-color: transparent !important; }
- md-progress-circular[value="51"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(138.6deg);
- transform: rotate(138.6deg); }
- md-progress-circular[value="51"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="51"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="52"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(142.2deg);
- transform: rotate(142.2deg); }
- md-progress-circular[value="52"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="52"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="53"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(145.8deg);
- transform: rotate(145.8deg); }
- md-progress-circular[value="53"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="53"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="54"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(149.4deg);
- transform: rotate(149.4deg); }
- md-progress-circular[value="54"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="54"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="55"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(153deg);
- transform: rotate(153deg); }
- md-progress-circular[value="55"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="55"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="56"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(156.6deg);
- transform: rotate(156.6deg); }
- md-progress-circular[value="56"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="56"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="57"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(160.2deg);
- transform: rotate(160.2deg); }
- md-progress-circular[value="57"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="57"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="58"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(163.8deg);
- transform: rotate(163.8deg); }
- md-progress-circular[value="58"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="58"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="59"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(167.4deg);
- transform: rotate(167.4deg); }
- md-progress-circular[value="59"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="59"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="60"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(171deg);
- transform: rotate(171deg); }
- md-progress-circular[value="60"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="60"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="61"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(174.6deg);
- transform: rotate(174.6deg); }
- md-progress-circular[value="61"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="61"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="62"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(178.2deg);
- transform: rotate(178.2deg); }
- md-progress-circular[value="62"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="62"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="63"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(181.8deg);
- transform: rotate(181.8deg); }
- md-progress-circular[value="63"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="63"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="64"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(185.4deg);
- transform: rotate(185.4deg); }
- md-progress-circular[value="64"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="64"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="65"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(189deg);
- transform: rotate(189deg); }
- md-progress-circular[value="65"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="65"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="66"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(192.6deg);
- transform: rotate(192.6deg); }
- md-progress-circular[value="66"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="66"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="67"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(196.2deg);
- transform: rotate(196.2deg); }
- md-progress-circular[value="67"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="67"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="68"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(199.8deg);
- transform: rotate(199.8deg); }
- md-progress-circular[value="68"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="68"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="69"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(203.4deg);
- transform: rotate(203.4deg); }
- md-progress-circular[value="69"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="69"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="70"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(207deg);
- transform: rotate(207deg); }
- md-progress-circular[value="70"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="70"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="71"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(210.6deg);
- transform: rotate(210.6deg); }
- md-progress-circular[value="71"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="71"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="72"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(214.2deg);
- transform: rotate(214.2deg); }
- md-progress-circular[value="72"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="72"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="73"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(217.8deg);
- transform: rotate(217.8deg); }
- md-progress-circular[value="73"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="73"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="74"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(221.4deg);
- transform: rotate(221.4deg); }
- md-progress-circular[value="74"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="74"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="75"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(225deg);
- transform: rotate(225deg); }
- md-progress-circular[value="75"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="75"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="76"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(228.6deg);
- transform: rotate(228.6deg); }
- md-progress-circular[value="76"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="76"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="77"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(232.2deg);
- transform: rotate(232.2deg); }
- md-progress-circular[value="77"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="77"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="78"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(235.8deg);
- transform: rotate(235.8deg); }
- md-progress-circular[value="78"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="78"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="79"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(239.4deg);
- transform: rotate(239.4deg); }
- md-progress-circular[value="79"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="79"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="80"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(243deg);
- transform: rotate(243deg); }
- md-progress-circular[value="80"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="80"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="81"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(246.6deg);
- transform: rotate(246.6deg); }
- md-progress-circular[value="81"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="81"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="82"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(250.2deg);
- transform: rotate(250.2deg); }
- md-progress-circular[value="82"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="82"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="83"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(253.8deg);
- transform: rotate(253.8deg); }
- md-progress-circular[value="83"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="83"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="84"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(257.4deg);
- transform: rotate(257.4deg); }
- md-progress-circular[value="84"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="84"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="85"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(261deg);
- transform: rotate(261deg); }
- md-progress-circular[value="85"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="85"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="86"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(264.6deg);
- transform: rotate(264.6deg); }
- md-progress-circular[value="86"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="86"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="87"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(268.2deg);
- transform: rotate(268.2deg); }
- md-progress-circular[value="87"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="87"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="88"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(271.8deg);
- transform: rotate(271.8deg); }
- md-progress-circular[value="88"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="88"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="89"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(275.4deg);
- transform: rotate(275.4deg); }
- md-progress-circular[value="89"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="89"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="90"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(279deg);
- transform: rotate(279deg); }
- md-progress-circular[value="90"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="90"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="91"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(282.6deg);
- transform: rotate(282.6deg); }
- md-progress-circular[value="91"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="91"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="92"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(286.2deg);
- transform: rotate(286.2deg); }
- md-progress-circular[value="92"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="92"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="93"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(289.8deg);
- transform: rotate(289.8deg); }
- md-progress-circular[value="93"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="93"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="94"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(293.4deg);
- transform: rotate(293.4deg); }
- md-progress-circular[value="94"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="94"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="95"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(297deg);
- transform: rotate(297deg); }
- md-progress-circular[value="95"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="95"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="96"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(300.6deg);
- transform: rotate(300.6deg); }
- md-progress-circular[value="96"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="96"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="97"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(304.2deg);
- transform: rotate(304.2deg); }
- md-progress-circular[value="97"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="97"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="98"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(307.8deg);
- transform: rotate(307.8deg); }
- md-progress-circular[value="98"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="98"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="99"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(311.4deg);
- transform: rotate(311.4deg); }
- md-progress-circular[value="99"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="99"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[value="100"] .md-inner .md-left .md-half-circle {
- transition: -webkit-transform 0.1s linear;
- transition: transform 0.1s linear;
- -webkit-transform: rotate(315deg);
- transform: rotate(315deg); }
- md-progress-circular[value="100"] .md-inner .md-right .md-half-circle {
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg); }
- md-progress-circular[value="100"] .md-inner .md-gap {
- border-bottom: 5px solid;
- transition: border-bottom-color 0.1s linear; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper {
- -webkit-animation: outer-rotate 2.91667s linear infinite;
- animation: outer-rotate 2.91667s linear infinite; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner {
- -webkit-animation: sporadic-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite;
- animation: sporadic-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle, md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-iteration-count: infinite;
- animation-iteration-count: infinite;
- -webkit-animation-duration: 1.3125s;
- animation-duration: 1.3125s;
- -webkit-animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
- animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1); }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle {
- -webkit-animation-name: left-wobble;
- animation-name: left-wobble; }
- md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-name: right-wobble;
- animation-name: right-wobble; }
-
-.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper {
- -webkit-animation: none;
- animation: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner {
- -webkit-animation: none;
- animation: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle {
- -webkit-animation-name: none;
- animation-name: none; }
- .ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle, md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle {
- -webkit-animation-name: none;
- animation-name: none; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.js
deleted file mode 100644
index c59b6af5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.js
+++ /dev/null
@@ -1,110 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.progressCircular
- * @description Circular Progress module!
- */
-angular.module('material.components.progressCircular', [
- 'material.core'
-])
- .directive('mdProgressCircular', MdProgressCircularDirective);
-
-/**
- * @ngdoc directive
- * @name mdProgressCircular
- * @module material.components.progressCircular
- * @restrict E
- *
-* @description
- * The circular progress directive is used to make loading content in your app as delightful and
- * painless as possible by minimizing the amount of visual change a user sees before they can view
- * and interact with content.
- *
- * For operations where the percentage of the operation completed can be determined, use a
- * determinate indicator. They give users a quick sense of how long an operation will take.
- *
- * For operations where the user is asked to wait a moment while something finishes up, and it’s
- * not necessary to expose what's happening behind the scenes and how long it will take, use an
- * indeterminate indicator.
- *
- * @param {string} md-mode Select from one of two modes: determinate and indeterminate.
- * @param {number=} value In determinate mode, this number represents the percentage of the
- * circular progress. Default: 0
- * @param {number=} md-diameter This specifies the diamter of the circular progress. Default: 48
- *
- * @usage
- * <hljs lang="html">
- * <md-progress-circular md-mode="determinate" value="..."></md-progress-circular>
- *
- * <md-progress-circular md-mode="determinate" ng-value="..."></md-progress-circular>
- *
- * <md-progress-circular md-mode="determinate" value="..." md-diameter="100"></md-progress-circular>
- *
- * <md-progress-circular md-mode="indeterminate"></md-progress-circular>
- * </hljs>
- */
-function MdProgressCircularDirective($mdConstant, $mdTheming) {
- return {
- restrict: 'E',
- template:
- // The progress 'circle' is composed of two half-circles: the left side and the right
- // side. Each side has CSS applied to 'fill-in' the half-circle to the appropriate progress.
- '<div class="md-spinner-wrapper">' +
- '<div class="md-inner">' +
- '<div class="md-gap"></div>' +
- '<div class="md-left">' +
- '<div class="md-half-circle"></div>' +
- '</div>' +
- '<div class="md-right">' +
- '<div class="md-half-circle"></div>' +
- '</div>' +
- '</div>' +
- '</div>',
- compile: compile
- };
-
- function compile(tElement) {
- // The javascript in this file is mainly responsible for setting the correct aria attributes.
- // The animation of the progress spinner is done entirely with just CSS.
- tElement.attr('aria-valuemin', 0);
- tElement.attr('aria-valuemax', 100);
- tElement.attr('role', 'progressbar');
-
- return postLink;
- }
-
- function postLink(scope, element, attr) {
- $mdTheming(element);
- var circle = element[0];
-
- // Scale the progress circle based on the default diameter.
- var diameter = attr.mdDiameter || 48;
- var scale = diameter / 48;
- circle.style[$mdConstant.CSS.TRANSFORM] = 'scale(' + scale + ')';
-
- attr.$observe('value', function(value) {
- var percentValue = clamp(value);
- element.attr('aria-valuenow', percentValue);
- });
- }
-
- /**
- * Clamps the value to be between 0 and 100.
- * @param {number} value The value to clamp.
- * @returns {number}
- */
- function clamp(value) {
- return Math.max(0, Math.min(value || 0, 100));
- }
-}
-MdProgressCircularDirective.$inject = ["$mdConstant", "$mdTheming"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.css
deleted file mode 100644
index 0765f266..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */@-webkit-keyframes outer-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes outer-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes left-wobble{0%,100%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}}@keyframes left-wobble{0%,100%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}}@-webkit-keyframes right-wobble{0%,100%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}}@keyframes right-wobble{0%,100%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}}@-webkit-keyframes sporadic-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}100%{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@keyframes sporadic-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}100%{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}md-progress-circular{width:50px;height:50px;display:block;position:relative;padding-top:0!important;margin-bottom:0!important;overflow:hidden}md-progress-circular .md-inner{width:50px;height:50px;position:relative}md-progress-circular .md-inner .md-gap{position:absolute;left:24px;right:24px;top:0;bottom:0;border-top:5px solid #000;box-sizing:border-box}md-progress-circular .md-inner .md-left,md-progress-circular .md-inner .md-right{position:absolute;top:0;height:50px;width:25px;overflow:hidden}md-progress-circular .md-inner .md-left .md-half-circle,md-progress-circular .md-inner .md-right .md-half-circle{position:absolute;top:0;width:50px;height:50px;box-sizing:border-box;border:5px solid #000;border-bottom-color:transparent;border-radius:50%}md-progress-circular .md-inner .md-left{left:0}md-progress-circular .md-inner .md-left .md-half-circle{left:0;border-right-color:transparent}md-progress-circular .md-inner .md-right{right:0}md-progress-circular .md-inner .md-right .md-half-circle{right:0;border-left-color:transparent}md-progress-circular[value="0"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="0"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}md-progress-circular[value="0"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="1"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="1"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-131.4deg);transform:rotate(-131.4deg)}md-progress-circular[value="1"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="2"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="2"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-127.8deg);transform:rotate(-127.8deg)}md-progress-circular[value="2"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="3"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="3"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-124.2deg);transform:rotate(-124.2deg)}md-progress-circular[value="3"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="4"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="4"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-120.6deg);transform:rotate(-120.6deg)}md-progress-circular[value="4"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="5"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="5"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-117deg);transform:rotate(-117deg)}md-progress-circular[value="5"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="6"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="6"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-113.4deg);transform:rotate(-113.4deg)}md-progress-circular[value="6"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="7"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="7"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-109.8deg);transform:rotate(-109.8deg)}md-progress-circular[value="7"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="8"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="8"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-106.2deg);transform:rotate(-106.2deg)}md-progress-circular[value="8"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="9"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="9"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-102.6deg);transform:rotate(-102.6deg)}md-progress-circular[value="9"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="10"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="10"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-99deg);transform:rotate(-99deg)}md-progress-circular[value="10"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="11"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="11"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-95.4deg);transform:rotate(-95.4deg)}md-progress-circular[value="11"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="12"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="12"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-91.8deg);transform:rotate(-91.8deg)}md-progress-circular[value="12"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="13"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="13"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-88.2deg);transform:rotate(-88.2deg)}md-progress-circular[value="13"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="14"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="14"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-84.6deg);transform:rotate(-84.6deg)}md-progress-circular[value="14"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="15"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="15"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-81deg);transform:rotate(-81deg)}md-progress-circular[value="15"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="16"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="16"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-77.4deg);transform:rotate(-77.4deg)}md-progress-circular[value="16"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="17"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="17"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-73.8deg);transform:rotate(-73.8deg)}md-progress-circular[value="17"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="18"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="18"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-70.2deg);transform:rotate(-70.2deg)}md-progress-circular[value="18"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="19"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="19"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-66.6deg);transform:rotate(-66.6deg)}md-progress-circular[value="19"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="20"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="20"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-63deg);transform:rotate(-63deg)}md-progress-circular[value="20"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="21"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="21"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-59.4deg);transform:rotate(-59.4deg)}md-progress-circular[value="21"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="22"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="22"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-55.8deg);transform:rotate(-55.8deg)}md-progress-circular[value="22"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="23"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="23"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-52.2deg);transform:rotate(-52.2deg)}md-progress-circular[value="23"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="24"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="24"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-48.6deg);transform:rotate(-48.6deg)}md-progress-circular[value="24"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="25"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="25"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}md-progress-circular[value="25"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="26"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="26"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-41.4deg);transform:rotate(-41.4deg)}md-progress-circular[value="26"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="27"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="27"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-37.8deg);transform:rotate(-37.8deg)}md-progress-circular[value="27"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="28"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="28"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-34.2deg);transform:rotate(-34.2deg)}md-progress-circular[value="28"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="29"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="29"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-30.6deg);transform:rotate(-30.6deg)}md-progress-circular[value="29"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="30"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="30"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-27deg);transform:rotate(-27deg)}md-progress-circular[value="30"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="31"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="31"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-23.4deg);transform:rotate(-23.4deg)}md-progress-circular[value="31"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="32"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="32"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-19.8deg);transform:rotate(-19.8deg)}md-progress-circular[value="32"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="33"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="33"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-16.2deg);transform:rotate(-16.2deg)}md-progress-circular[value="33"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="34"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="34"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-12.6deg);transform:rotate(-12.6deg)}md-progress-circular[value="34"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="35"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="35"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-9deg);transform:rotate(-9deg)}md-progress-circular[value="35"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="36"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="36"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-5.4deg);transform:rotate(-5.4deg)}md-progress-circular[value="36"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="37"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="37"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(-1.8deg);transform:rotate(-1.8deg)}md-progress-circular[value="37"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="38"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="38"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(1.8deg);transform:rotate(1.8deg)}md-progress-circular[value="38"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="39"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="39"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(5.4deg);transform:rotate(5.4deg)}md-progress-circular[value="39"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="40"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="40"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(9deg);transform:rotate(9deg)}md-progress-circular[value="40"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="41"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="41"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(12.6deg);transform:rotate(12.6deg)}md-progress-circular[value="41"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="42"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="42"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(16.2deg);transform:rotate(16.2deg)}md-progress-circular[value="42"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="43"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="43"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(19.8deg);transform:rotate(19.8deg)}md-progress-circular[value="43"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="44"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="44"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(23.4deg);transform:rotate(23.4deg)}md-progress-circular[value="44"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="45"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="45"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(27deg);transform:rotate(27deg)}md-progress-circular[value="45"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="46"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="46"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(30.6deg);transform:rotate(30.6deg)}md-progress-circular[value="46"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="47"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="47"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(34.2deg);transform:rotate(34.2deg)}md-progress-circular[value="47"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="48"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="48"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(37.8deg);transform:rotate(37.8deg)}md-progress-circular[value="48"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="49"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="49"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(41.4deg);transform:rotate(41.4deg)}md-progress-circular[value="49"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="50"] .md-inner .md-left .md-half-circle{-webkit-transform:rotate(135deg);transform:rotate(135deg)}md-progress-circular[value="50"] .md-inner .md-right .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="50"] .md-inner .md-gap{border-bottom:5px solid;border-bottom-color:transparent!important}md-progress-circular[value="51"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(138.6deg);transform:rotate(138.6deg)}md-progress-circular[value="51"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="51"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="52"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(142.2deg);transform:rotate(142.2deg)}md-progress-circular[value="52"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="52"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="53"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(145.8deg);transform:rotate(145.8deg)}md-progress-circular[value="53"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="53"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="54"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(149.4deg);transform:rotate(149.4deg)}md-progress-circular[value="54"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="54"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="55"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(153deg);transform:rotate(153deg)}md-progress-circular[value="55"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="55"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="56"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(156.6deg);transform:rotate(156.6deg)}md-progress-circular[value="56"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="56"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="57"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(160.2deg);transform:rotate(160.2deg)}md-progress-circular[value="57"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="57"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="58"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(163.8deg);transform:rotate(163.8deg)}md-progress-circular[value="58"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="58"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="59"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(167.4deg);transform:rotate(167.4deg)}md-progress-circular[value="59"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="59"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="60"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(171deg);transform:rotate(171deg)}md-progress-circular[value="60"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="60"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="61"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(174.6deg);transform:rotate(174.6deg)}md-progress-circular[value="61"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="61"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="62"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(178.2deg);transform:rotate(178.2deg)}md-progress-circular[value="62"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="62"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="63"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(181.8deg);transform:rotate(181.8deg)}md-progress-circular[value="63"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="63"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="64"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(185.4deg);transform:rotate(185.4deg)}md-progress-circular[value="64"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="64"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="65"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(189deg);transform:rotate(189deg)}md-progress-circular[value="65"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="65"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="66"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(192.6deg);transform:rotate(192.6deg)}md-progress-circular[value="66"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="66"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="67"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(196.2deg);transform:rotate(196.2deg)}md-progress-circular[value="67"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="67"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="68"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(199.8deg);transform:rotate(199.8deg)}md-progress-circular[value="68"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="68"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="69"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(203.4deg);transform:rotate(203.4deg)}md-progress-circular[value="69"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="69"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="70"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(207deg);transform:rotate(207deg)}md-progress-circular[value="70"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="70"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="71"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(210.6deg);transform:rotate(210.6deg)}md-progress-circular[value="71"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="71"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="72"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(214.2deg);transform:rotate(214.2deg)}md-progress-circular[value="72"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="72"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="73"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(217.8deg);transform:rotate(217.8deg)}md-progress-circular[value="73"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="73"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="74"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(221.4deg);transform:rotate(221.4deg)}md-progress-circular[value="74"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="74"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="75"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(225deg);transform:rotate(225deg)}md-progress-circular[value="75"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="75"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="76"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(228.6deg);transform:rotate(228.6deg)}md-progress-circular[value="76"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="76"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="77"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(232.2deg);transform:rotate(232.2deg)}md-progress-circular[value="77"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="77"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="78"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(235.8deg);transform:rotate(235.8deg)}md-progress-circular[value="78"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="78"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="79"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(239.4deg);transform:rotate(239.4deg)}md-progress-circular[value="79"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="79"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="80"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(243deg);transform:rotate(243deg)}md-progress-circular[value="80"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="80"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="81"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(246.6deg);transform:rotate(246.6deg)}md-progress-circular[value="81"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="81"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="82"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(250.2deg);transform:rotate(250.2deg)}md-progress-circular[value="82"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="82"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="83"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(253.8deg);transform:rotate(253.8deg)}md-progress-circular[value="83"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="83"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="84"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(257.4deg);transform:rotate(257.4deg)}md-progress-circular[value="84"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="84"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="85"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(261deg);transform:rotate(261deg)}md-progress-circular[value="85"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="85"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="86"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(264.6deg);transform:rotate(264.6deg)}md-progress-circular[value="86"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="86"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="87"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(268.2deg);transform:rotate(268.2deg)}md-progress-circular[value="87"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="87"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="88"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(271.8deg);transform:rotate(271.8deg)}md-progress-circular[value="88"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="88"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="89"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(275.4deg);transform:rotate(275.4deg)}md-progress-circular[value="89"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="89"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="90"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(279deg);transform:rotate(279deg)}md-progress-circular[value="90"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="90"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="91"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(282.6deg);transform:rotate(282.6deg)}md-progress-circular[value="91"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="91"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="92"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(286.2deg);transform:rotate(286.2deg)}md-progress-circular[value="92"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="92"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="93"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(289.8deg);transform:rotate(289.8deg)}md-progress-circular[value="93"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="93"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="94"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(293.4deg);transform:rotate(293.4deg)}md-progress-circular[value="94"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="94"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="95"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(297deg);transform:rotate(297deg)}md-progress-circular[value="95"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="95"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="96"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(300.6deg);transform:rotate(300.6deg)}md-progress-circular[value="96"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="96"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="97"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(304.2deg);transform:rotate(304.2deg)}md-progress-circular[value="97"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="97"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="98"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(307.8deg);transform:rotate(307.8deg)}md-progress-circular[value="98"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="98"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="99"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(311.4deg);transform:rotate(311.4deg)}md-progress-circular[value="99"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="99"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[value="100"] .md-inner .md-left .md-half-circle{transition:-webkit-transform .1s linear;transition:transform .1s linear;-webkit-transform:rotate(315deg);transform:rotate(315deg)}md-progress-circular[value="100"] .md-inner .md-right .md-half-circle{-webkit-transform:rotate(45deg);transform:rotate(45deg)}md-progress-circular[value="100"] .md-inner .md-gap{border-bottom:5px solid;transition:border-bottom-color .1s linear}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper{-webkit-animation:outer-rotate 2.91667s linear infinite;animation:outer-rotate 2.91667s linear infinite}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner{-webkit-animation:sporadic-rotate 5.25s cubic-bezier(.35,0,.25,1) infinite;animation:sporadic-rotate 5.25s cubic-bezier(.35,0,.25,1) infinite}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle,md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-duration:1.3125s;animation-duration:1.3125s;-webkit-animation-timing-function:cubic-bezier(.35,0,.25,1);animation-timing-function:cubic-bezier(.35,0,.25,1)}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle{-webkit-animation-name:left-wobble;animation-name:left-wobble}md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle{-webkit-animation-name:right-wobble;animation-name:right-wobble}.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper,.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner,md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper,md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner{-webkit-animation:none;animation:none}.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle,.ng-hide md-progress-circular[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle,md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-left .md-half-circle,md-progress-circular.ng-hide[md-mode=indeterminate] .md-spinner-wrapper .md-inner .md-right .md-half-circle{-webkit-animation-name:none;animation-name:none} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.js
deleted file mode 100644
index 55f099a6..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressCircular/progressCircular.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(a,i,r){"use strict";function e(a,i){function r(a){return a.attr("aria-valuemin",0),a.attr("aria-valuemax",100),a.attr("role","progressbar"),e}function e(r,e,n){i(e);var d=e[0],s=n.mdDiameter||48,c=s/48;d.style[a.CSS.TRANSFORM]="scale("+c+")",n.$observe("value",function(a){var i=t(a);e.attr("aria-valuenow",i)})}function t(a){return Math.max(0,Math.min(a||0,100))}return{restrict:"E",template:'<div class="md-spinner-wrapper"><div class="md-inner"><div class="md-gap"></div><div class="md-left"><div class="md-half-circle"></div></div><div class="md-right"><div class="md-half-circle"></div></div></div></div>',compile:r}}i.module("material.components.progressCircular",["material.core"]).directive("mdProgressCircular",e),e.$inject=["$mdConstant","$mdTheming"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/bower.json
deleted file mode 100644
index c106904d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-progressLinear",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.css
deleted file mode 100644
index 6680eb20..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.css
+++ /dev/null
@@ -1,27 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-progress-linear.md-THEME_NAME-theme .md-container {
- background-color: '{{primary-100}}'; }
-md-progress-linear.md-THEME_NAME-theme .md-bar {
- background-color: '{{primary-color}}'; }
-md-progress-linear.md-THEME_NAME-theme.md-warn .md-container {
- background-color: '{{warn-100}}'; }
-md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar {
- background-color: '{{warn-color}}'; }
-md-progress-linear.md-THEME_NAME-theme.md-accent .md-container {
- background-color: '{{accent-100}}'; }
-md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar {
- background-color: '{{accent-color}}'; }
-md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 {
- background-color: '{{warn-100}}'; }
-md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before {
- background: radial-gradient('{{warn-100}}' 0%, '{{warn-100}}' 16%, transparent 42%); }
-md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 {
- background-color: '{{accent-100}}'; }
-md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before {
- background: radial-gradient('{{accent-100}}' 0%, '{{accent-100}}' 16%, transparent 42%); }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.min.css
deleted file mode 100644
index f1ce146f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-progress-linear.md-THEME_NAME-theme .md-container{background-color:'{{primary-100}}'}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:'{{primary-color}}'}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:'{{warn-100}}'}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:'{{warn-color}}'}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:'{{accent-100}}'}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:'{{accent-color}}'}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:'{{warn-100}}'}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:0 0}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:'{{accent-100}}'}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:0 0} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.css
deleted file mode 100644
index 31da85d2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.css
+++ /dev/null
@@ -1,287 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-progress-linear:not([md-mode="indeterminate"]) {
- display: block;
- width: 100%;
- height: 5px; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-container {
- overflow: hidden;
- position: relative;
- height: 5px;
- top: 5px;
- -webkit-transform: translate(0, 5px) scale(1, 0);
- transform: translate(0, 5px) scale(1, 0);
- transition: all .3s linear; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-container.md-ready {
- -webkit-transform: translate(0, 0) scale(1, 1);
- transform: translate(0, 0) scale(1, 1); }
- md-progress-linear:not([md-mode="indeterminate"]) .md-bar {
- height: 5px;
- position: absolute;
- width: 100%; }
- md-progress-linear:not([md-mode="indeterminate"]) .md-bar1, md-progress-linear:not([md-mode="indeterminate"]) .md-bar2 {
- transition: all 0.2s linear; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=determinate] .md-bar1 {
- display: none; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=buffer] .md-container {
- background-color: transparent !important; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=buffer] .md-dashed:before {
- content: "";
- display: block;
- height: 5px;
- width: 100%;
- margin-top: 0;
- position: absolute;
- background-color: transparent;
- background-size: 10px 10px !important;
- background-position: 0px -23px;
- -webkit-animation: buffer 3s infinite linear;
- animation: buffer 3s infinite linear; }
- md-progress-linear:not([md-mode="indeterminate"])[md-mode=query] .md-bar2 {
- -webkit-animation: query .8s infinite cubic-bezier(0.39, 0.575, 0.565, 1);
- animation: query .8s infinite cubic-bezier(0.39, 0.575, 0.565, 1); }
-
-md-progress-linear[md-mode="indeterminate"] {
- display: block;
- width: 100%;
- height: 5px;
- position: relative; }
- md-progress-linear[md-mode="indeterminate"] .md-container {
- width: 100%;
- overflow: hidden;
- position: relative;
- height: 5px;
- top: 5px;
- transition: all .3s linear; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar {
- height: 5px;
- left: 0;
- width: 80%;
- position: absolute;
- top: 0;
- bottom: 0; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar1 {
- -webkit-animation: md-progress-linear-indeterminate-scale-1 4s infinite, md-progress-linear-indeterminate-1 4s infinite;
- animation: md-progress-linear-indeterminate-scale-1 4s infinite, md-progress-linear-indeterminate-1 4s infinite; }
- md-progress-linear[md-mode="indeterminate"] .md-container .md-bar2 {
- -webkit-animation: md-progress-linear-indeterminate-scale-2 4s infinite, md-progress-linear-indeterminate-2 4s infinite;
- animation: md-progress-linear-indeterminate-scale-2 4s infinite, md-progress-linear-indeterminate-2 4s infinite; }
-
-@-webkit-keyframes query {
- 0% {
- opacity: 1;
- -webkit-transform: translateX(35%) scale(.3, 1);
- transform: translateX(35%) scale(.3, 1); }
-
- 100% {
- opacity: 0;
- -webkit-transform: translateX(-50%) scale(0, 1);
- transform: translateX(-50%) scale(0, 1); } }
-
-@keyframes query {
- 0% {
- opacity: 1;
- -webkit-transform: translateX(35%) scale(.3, 1);
- transform: translateX(35%) scale(.3, 1); }
-
- 100% {
- opacity: 0;
- -webkit-transform: translateX(-50%) scale(0, 1);
- transform: translateX(-50%) scale(0, 1); } }
-
-@-webkit-keyframes buffer {
- 0% {
- opacity: 1;
- background-position: 0px -23px; }
-
- 50% {
- opacity: 0; }
-
- 100% {
- opacity: 1;
- background-position: -200px -23px; } }
-
-@keyframes buffer {
- 0% {
- opacity: 1;
- background-position: 0px -23px; }
-
- 50% {
- opacity: 0; }
-
- 100% {
- opacity: 1;
- background-position: -200px -23px; } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-scale-1 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 36.6% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);
- animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); }
-
- 69.15% {
- -webkit-transform: scaleX(0.83);
- transform: scaleX(0.83);
- -webkit-animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098);
- animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@keyframes md-progress-linear-indeterminate-scale-1 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 36.6% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);
- animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); }
-
- 69.15% {
- -webkit-transform: scaleX(0.83);
- transform: scaleX(0.83);
- -webkit-animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098);
- animation-timing-function: cubic-bezier(0.22573, 0, 0.23365, 1.37098); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-1 {
- 0% {
- left: -105.16667%;
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 20% {
- left: -105.16667%;
- -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);
- animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); }
-
- 69.15% {
- left: 21.5%;
- -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);
- animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); }
-
- 100% {
- left: 95.44444%; } }
-
-@keyframes md-progress-linear-indeterminate-1 {
- 0% {
- left: -105.16667%;
- -webkit-animation-timing-function: linear;
- animation-timing-function: linear; }
-
- 20% {
- left: -105.16667%;
- -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);
- animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); }
-
- 69.15% {
- left: 21.5%;
- -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);
- animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); }
-
- 100% {
- left: 95.44444%; } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-scale-2 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);
- animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397); }
-
- 19.15% {
- -webkit-transform: scaleX(0.57);
- transform: scaleX(0.57);
- -webkit-animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);
- animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432); }
-
- 44.15% {
- -webkit-transform: scaleX(0.91);
- transform: scaleX(0.91);
- -webkit-animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);
- animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@keyframes md-progress-linear-indeterminate-scale-2 {
- 0% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1);
- -webkit-animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);
- animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397); }
-
- 19.15% {
- -webkit-transform: scaleX(0.57);
- transform: scaleX(0.57);
- -webkit-animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);
- animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432); }
-
- 44.15% {
- -webkit-transform: scaleX(0.91);
- transform: scaleX(0.91);
- -webkit-animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);
- animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179); }
-
- 100% {
- -webkit-transform: scaleX(0.1);
- transform: scaleX(0.1); } }
-
-@-webkit-keyframes md-progress-linear-indeterminate-2 {
- 0% {
- left: -54.88889%;
- -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968);
- animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968); }
-
- 25% {
- left: -17.25%;
- -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372);
- animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372); }
-
- 48.35% {
- left: 29.5%;
- -webkit-animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203);
- animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203); }
-
- 100% {
- left: 117.38889%; } }
-
-@keyframes md-progress-linear-indeterminate-2 {
- 0% {
- left: -54.88889%;
- -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968);
- animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40968); }
-
- 25% {
- left: -17.25%;
- -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372);
- animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73372); }
-
- 48.35% {
- left: 29.5%;
- -webkit-animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203);
- animation-timing-function: cubic-bezier(0.4, 0.62703, 0.6, 0.90203); }
-
- 100% {
- left: 117.38889%; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.js
deleted file mode 100644
index df7e432f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.js
+++ /dev/null
@@ -1,127 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.progressLinear
- * @description Linear Progress module!
- */
-angular.module('material.components.progressLinear', [
- 'material.core'
-])
- .directive('mdProgressLinear', MdProgressLinearDirective);
-
-/**
- * @ngdoc directive
- * @name mdProgressLinear
- * @module material.components.progressLinear
- * @restrict E
- *
- * @description
- * The linear progress directive is used to make loading content in your app as delightful and painless as possible by minimizing the amount of visual change a user sees before they can view and interact with content. Each operation should only be represented by one activity indicator—for example, one refresh operation should not display both a refresh bar and an activity circle.
- *
- * For operations where the percentage of the operation completed can be determined, use a determinate indicator. They give users a quick sense of how long an operation will take.
- *
- * For operations where the user is asked to wait a moment while something finishes up, and it’s not necessary to expose what's happening behind the scenes and how long it will take, use an indeterminate indicator.
- *
- * @param {string} md-mode Select from one of four modes: determinate, indeterminate, buffer or query.
- * @param {number=} value In determinate and buffer modes, this number represents the percentage of the primary progress bar. Default: 0
- * @param {number=} md-buffer-value In the buffer mode, this number represents the precentage of the secondary progress bar. Default: 0
- *
- * @usage
- * <hljs lang="html">
- * <md-progress-linear md-mode="determinate" value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="determinate" ng-value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="indeterminate"></md-progress-linear>
- *
- * <md-progress-linear md-mode="buffer" value="..." md-buffer-value="..."></md-progress-linear>
- *
- * <md-progress-linear md-mode="query"></md-progress-linear>
- * </hljs>
- */
-function MdProgressLinearDirective($$rAF, $mdConstant, $mdTheming) {
-
- return {
- restrict: 'E',
- template: '<div class="md-container">' +
- '<div class="md-dashed"></div>' +
- '<div class="md-bar md-bar1"></div>' +
- '<div class="md-bar md-bar2"></div>' +
- '</div>',
- compile: compile
- };
-
- function compile(tElement, tAttrs, transclude) {
- tElement.attr('aria-valuemin', 0);
- tElement.attr('aria-valuemax', 100);
- tElement.attr('role', 'progressbar');
-
- return postLink;
- }
- function postLink(scope, element, attr) {
- $mdTheming(element);
- var bar1Style = element[0].querySelector('.md-bar1').style,
- bar2Style = element[0].querySelector('.md-bar2').style,
- container = angular.element(element[0].querySelector('.md-container'));
-
- attr.$observe('value', function(value) {
- if (attr.mdMode == 'query') {
- return;
- }
-
- var clamped = clamp(value);
- element.attr('aria-valuenow', clamped);
- bar2Style[$mdConstant.CSS.TRANSFORM] = transforms[clamped];
- });
-
- attr.$observe('mdBufferValue', function(value) {
- bar1Style[$mdConstant.CSS.TRANSFORM] = transforms[clamp(value)];
- });
-
- $$rAF(function() {
- container.addClass('md-ready');
- });
- }
-
- function clamp(value) {
- if (value > 100) {
- return 100;
- }
-
- if (value < 0) {
- return 0;
- }
-
- return Math.ceil(value || 0);
- }
-}
-MdProgressLinearDirective.$inject = ["$$rAF", "$mdConstant", "$mdTheming"];
-
-
-// **********************************************************
-// Private Methods
-// **********************************************************
-var transforms = (function() {
- var values = new Array(101);
- for(var i = 0; i < 101; i++){
- values[i] = makeTransform(i);
- }
-
- return values;
-
- function makeTransform(value){
- var scale = value/100;
- var translateX = (value-100)/2;
- return 'translateX(' + translateX.toString() + '%) scale(' + scale.toString() + ', 1)';
- }
-})();
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.css
deleted file mode 100644
index edd4d93d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-progress-linear:not([md-mode=indeterminate]){display:block;width:100%;height:5px}md-progress-linear:not([md-mode=indeterminate]) .md-container{overflow:hidden;position:relative;height:5px;top:5px;-webkit-transform:translate(0,5px) scale(1,0);transform:translate(0,5px) scale(1,0);transition:all .3s linear}md-progress-linear:not([md-mode=indeterminate]) .md-container.md-ready{-webkit-transform:translate(0,0) scale(1,1);transform:translate(0,0) scale(1,1)}md-progress-linear:not([md-mode=indeterminate]) .md-bar{height:5px;position:absolute;width:100%}md-progress-linear:not([md-mode=indeterminate]) .md-bar1,md-progress-linear:not([md-mode=indeterminate]) .md-bar2{transition:all .2s linear}md-progress-linear:not([md-mode=indeterminate])[md-mode=determinate] .md-bar1{display:none}md-progress-linear:not([md-mode=indeterminate])[md-mode=buffer] .md-container{background-color:transparent!important}md-progress-linear:not([md-mode=indeterminate])[md-mode=buffer] .md-dashed:before{content:"";display:block;height:5px;width:100%;margin-top:0;position:absolute;background-color:transparent;background-size:10px 10px!important;background-position:0 -23px;-webkit-animation:buffer 3s infinite linear;animation:buffer 3s infinite linear}md-progress-linear:not([md-mode=indeterminate])[md-mode=query] .md-bar2{-webkit-animation:query .8s infinite cubic-bezier(.39,.575,.565,1);animation:query .8s infinite cubic-bezier(.39,.575,.565,1)}md-progress-linear[md-mode=indeterminate]{display:block;width:100%;height:5px;position:relative}md-progress-linear[md-mode=indeterminate] .md-container{width:100%;overflow:hidden;position:relative;height:5px;top:5px;transition:all .3s linear}md-progress-linear[md-mode=indeterminate] .md-container .md-bar{height:5px;left:0;width:80%;position:absolute;top:0;bottom:0}md-progress-linear[md-mode=indeterminate] .md-container .md-bar1{-webkit-animation:md-progress-linear-indeterminate-scale-1 4s infinite,md-progress-linear-indeterminate-1 4s infinite;animation:md-progress-linear-indeterminate-scale-1 4s infinite,md-progress-linear-indeterminate-1 4s infinite}md-progress-linear[md-mode=indeterminate] .md-container .md-bar2{-webkit-animation:md-progress-linear-indeterminate-scale-2 4s infinite,md-progress-linear-indeterminate-2 4s infinite;animation:md-progress-linear-indeterminate-scale-2 4s infinite,md-progress-linear-indeterminate-2 4s infinite}@-webkit-keyframes query{0%{opacity:1;-webkit-transform:translateX(35%) scale(.3,1);transform:translateX(35%) scale(.3,1)}100%{opacity:0;-webkit-transform:translateX(-50%) scale(0,1);transform:translateX(-50%) scale(0,1)}}@keyframes query{0%{opacity:1;-webkit-transform:translateX(35%) scale(.3,1);transform:translateX(35%) scale(.3,1)}100%{opacity:0;-webkit-transform:translateX(-50%) scale(0,1);transform:translateX(-50%) scale(0,1)}}@-webkit-keyframes buffer{0%{opacity:1;background-position:0 -23px}50%{opacity:0}100%{opacity:1;background-position:-200px -23px}}@keyframes buffer{0%{opacity:1;background-position:0 -23px}50%{opacity:0}100%{opacity:1;background-position:-200px -23px}}@-webkit-keyframes md-progress-linear-indeterminate-scale-1{0%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:linear;animation-timing-function:linear}36.6%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);animation-timing-function:cubic-bezier(.33473,.12482,.78584,1)}69.15%{-webkit-transform:scaleX(.83);transform:scaleX(.83);-webkit-animation-timing-function:cubic-bezier(.22573,0,.23365,1.37098);animation-timing-function:cubic-bezier(.22573,0,.23365,1.37098)}100%{-webkit-transform:scaleX(.1);transform:scaleX(.1)}}@keyframes md-progress-linear-indeterminate-scale-1{0%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:linear;animation-timing-function:linear}36.6%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);animation-timing-function:cubic-bezier(.33473,.12482,.78584,1)}69.15%{-webkit-transform:scaleX(.83);transform:scaleX(.83);-webkit-animation-timing-function:cubic-bezier(.22573,0,.23365,1.37098);animation-timing-function:cubic-bezier(.22573,0,.23365,1.37098)}100%{-webkit-transform:scaleX(.1);transform:scaleX(.1)}}@-webkit-keyframes md-progress-linear-indeterminate-1{0%{left:-105.16667%;-webkit-animation-timing-function:linear;animation-timing-function:linear}20%{left:-105.16667%;-webkit-animation-timing-function:cubic-bezier(.5,0,.70173,.49582);animation-timing-function:cubic-bezier(.5,0,.70173,.49582)}69.15%{left:21.5%;-webkit-animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635)}100%{left:95.44444%}}@keyframes md-progress-linear-indeterminate-1{0%{left:-105.16667%;-webkit-animation-timing-function:linear;animation-timing-function:linear}20%{left:-105.16667%;-webkit-animation-timing-function:cubic-bezier(.5,0,.70173,.49582);animation-timing-function:cubic-bezier(.5,0,.70173,.49582)}69.15%{left:21.5%;-webkit-animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635)}100%{left:95.44444%}}@-webkit-keyframes md-progress-linear-indeterminate-scale-2{0%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:cubic-bezier(.20503,.05705,.57661,.45397);animation-timing-function:cubic-bezier(.20503,.05705,.57661,.45397)}19.15%{-webkit-transform:scaleX(.57);transform:scaleX(.57);-webkit-animation-timing-function:cubic-bezier(.15231,.19643,.64837,1.00432);animation-timing-function:cubic-bezier(.15231,.19643,.64837,1.00432)}44.15%{-webkit-transform:scaleX(.91);transform:scaleX(.91);-webkit-animation-timing-function:cubic-bezier(.25776,-.00316,.21176,1.38179);animation-timing-function:cubic-bezier(.25776,-.00316,.21176,1.38179)}100%{-webkit-transform:scaleX(.1);transform:scaleX(.1)}}@keyframes md-progress-linear-indeterminate-scale-2{0%{-webkit-transform:scaleX(.1);transform:scaleX(.1);-webkit-animation-timing-function:cubic-bezier(.20503,.05705,.57661,.45397);animation-timing-function:cubic-bezier(.20503,.05705,.57661,.45397)}19.15%{-webkit-transform:scaleX(.57);transform:scaleX(.57);-webkit-animation-timing-function:cubic-bezier(.15231,.19643,.64837,1.00432);animation-timing-function:cubic-bezier(.15231,.19643,.64837,1.00432)}44.15%{-webkit-transform:scaleX(.91);transform:scaleX(.91);-webkit-animation-timing-function:cubic-bezier(.25776,-.00316,.21176,1.38179);animation-timing-function:cubic-bezier(.25776,-.00316,.21176,1.38179)}100%{-webkit-transform:scaleX(.1);transform:scaleX(.1)}}@-webkit-keyframes md-progress-linear-indeterminate-2{0%{left:-54.88889%;-webkit-animation-timing-function:cubic-bezier(.15,0,.51506,.40968);animation-timing-function:cubic-bezier(.15,0,.51506,.40968)}25%{left:-17.25%;-webkit-animation-timing-function:cubic-bezier(.31033,.28406,.8,.73372);animation-timing-function:cubic-bezier(.31033,.28406,.8,.73372)}48.35%{left:29.5%;-webkit-animation-timing-function:cubic-bezier(.4,.62703,.6,.90203);animation-timing-function:cubic-bezier(.4,.62703,.6,.90203)}100%{left:117.38889%}}@keyframes md-progress-linear-indeterminate-2{0%{left:-54.88889%;-webkit-animation-timing-function:cubic-bezier(.15,0,.51506,.40968);animation-timing-function:cubic-bezier(.15,0,.51506,.40968)}25%{left:-17.25%;-webkit-animation-timing-function:cubic-bezier(.31033,.28406,.8,.73372);animation-timing-function:cubic-bezier(.31033,.28406,.8,.73372)}48.35%{left:29.5%;-webkit-animation-timing-function:cubic-bezier(.4,.62703,.6,.90203);animation-timing-function:cubic-bezier(.4,.62703,.6,.90203)}100%{left:117.38889%}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.js
deleted file mode 100644
index 876009f0..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/progressLinear/progressLinear.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(r,e,a){"use strict";function t(r,a,t){function i(r,e,a){return r.attr("aria-valuemin",0),r.attr("aria-valuemax",100),r.attr("role","progressbar"),o}function o(i,o,c){t(o);var s=o[0].querySelector(".md-bar1").style,u=o[0].querySelector(".md-bar2").style,l=e.element(o[0].querySelector(".md-container"));c.$observe("value",function(r){if("query"!=c.mdMode){var e=d(r);o.attr("aria-valuenow",e),u[a.CSS.TRANSFORM]=n[e]}}),c.$observe("mdBufferValue",function(r){s[a.CSS.TRANSFORM]=n[d(r)]}),r(function(){l.addClass("md-ready")})}function d(r){return r>100?100:0>r?0:Math.ceil(r||0)}return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:i}}e.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",t),t.$inject=["$$rAF","$mdConstant","$mdTheming"];var n=function(){function r(r){var e=r/100,a=(r-100)/2;return"translateX("+a.toString()+"%) scale("+e.toString()+", 1)"}for(var e=new Array(101),a=0;101>a;a++)e[a]=r(a);return e}()}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/bower.json
deleted file mode 100644
index 602b44e9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-radioButton",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.css
deleted file mode 100644
index 8e4eb604..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.css
+++ /dev/null
@@ -1,47 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-radio-button.md-THEME_NAME-theme .md-off {
- border-color: '{{foreground-2}}'; }
-md-radio-button.md-THEME_NAME-theme .md-on {
- background-color: '{{accent-color-0.87}}'; }
-md-radio-button.md-THEME_NAME-theme.md-checked .md-off {
- border-color: '{{accent-color-0.87}}'; }
-md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple {
- color: '{{accent-color-0.87}}'; }
-md-radio-button.md-THEME_NAME-theme .md-container .md-ripple {
- color: '{{accent-600}}'; }
-
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on {
- background-color: '{{primary-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off {
- border-color: '{{primary-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple {
- color: '{{primary-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple {
- color: '{{primary-600}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on {
- background-color: '{{warn-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off {
- border-color: '{{warn-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple {
- color: '{{warn-color-0.87}}'; }
-md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple {
- color: '{{warn-600}}'; }
-md-radio-group.md-THEME_NAME-theme[disabled], md-radio-button.md-THEME_NAME-theme[disabled] {
- color: '{{foreground-3}}'; }
- md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off {
- border-color: '{{foreground-3}}'; }
- md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on, md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on {
- border-color: '{{foreground-3}}'; }
-
-md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before {
- background-color: '{{accent-color-0.26}}'; }
-md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before {
- background-color: '{{primary-color-0.26}}'; }
-md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before {
- background-color: '{{warn-color-0.26}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.min.css
deleted file mode 100644
index 43b883ba..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-radio-button.md-THEME_NAME-theme .md-off{border-color:'{{foreground-2}}'}md-radio-button.md-THEME_NAME-theme .md-on{background-color:'{{accent-color-0.87}}'}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:'{{accent-color-0.87}}'}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:'{{accent-color-0.87}}'}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:'{{accent-600}}'}md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on{background-color:'{{primary-color-0.87}}'}md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off{border-color:'{{primary-color-0.87}}'}md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:'{{primary-color-0.87}}'}md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple{color:'{{primary-600}}'}md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on{background-color:'{{warn-color-0.87}}'}md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off{border-color:'{{warn-color-0.87}}'}md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:'{{warn-color-0.87}}'}md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple{color:'{{warn-600}}'}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:'{{foreground-3}}'}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:'{{foreground-3}}'}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:'{{accent-color-0.26}}'}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked:not([disabled]).md-primary .md-container:before{background-color:'{{primary-color-0.26}}'}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before{background-color:'{{warn-color-0.26}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.css
deleted file mode 100644
index bc036e8d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.css
+++ /dev/null
@@ -1,90 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-radio-button, .md-switch-thumb {
- box-sizing: border-box;
- display: block;
- margin: 15px;
- white-space: nowrap;
- cursor: pointer; }
- md-radio-button *, md-radio-button *:before, md-radio-button *:after, .md-switch-thumb *, .md-switch-thumb *:before, .md-switch-thumb *:after {
- box-sizing: border-box; }
- md-radio-button input, .md-switch-thumb input {
- display: none; }
- md-radio-button .md-container, .md-switch-thumb .md-container {
- position: relative;
- top: 4px;
- display: inline-block;
- width: 16px;
- height: 16px;
- cursor: pointer; }
- md-radio-button .md-container .md-ripple-container, .md-switch-thumb .md-container .md-ripple-container {
- position: absolute;
- display: block;
- width: 48px;
- height: 48px;
- left: -16px;
- top: -16px; }
- md-radio-button .md-container:before, .md-switch-thumb .md-container:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-radio-button .md-off, .md-switch-thumb .md-off {
- position: absolute;
- top: 0;
- left: 0;
- width: 16px;
- height: 16px;
- border: solid 2px;
- border-radius: 50%;
- transition: border-color ease 0.28s; }
- md-radio-button .md-on, .md-switch-thumb .md-on {
- position: absolute;
- top: 0;
- left: 0;
- width: 16px;
- height: 16px;
- border-radius: 50%;
- transition: -webkit-transform ease 0.28s;
- transition: transform ease 0.28s;
- -webkit-transform: scale(0);
- transform: scale(0); }
- md-radio-button.md-checked .md-on, .md-switch-thumb.md-checked .md-on {
- -webkit-transform: scale(0.5);
- transform: scale(0.5); }
- md-radio-button .md-label, .md-switch-thumb .md-label {
- position: relative;
- display: inline-block;
- margin-left: 10px;
- margin-right: 10px;
- vertical-align: middle;
- white-space: normal;
- pointer-events: none;
- width: auto; }
- md-radio-button .circle, .md-switch-thumb .circle {
- border-radius: 50%; }
-
-md-radio-group:focus {
- outline: none; }
-md-radio-group.md-focused .md-checked .md-container:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
-
-@media screen and (-ms-high-contrast: active) {
- md-radio-button.md-default-theme .md-on {
- background-color: #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.js
deleted file mode 100644
index 7110021f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.js
+++ /dev/null
@@ -1,313 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.radioButton
- * @description radioButton module!
- */
-angular.module('material.components.radioButton', [
- 'material.core'
-])
- .directive('mdRadioGroup', mdRadioGroupDirective)
- .directive('mdRadioButton', mdRadioButtonDirective);
-
-/**
- * @ngdoc directive
- * @module material.components.radioButton
- * @name mdRadioGroup
- *
- * @restrict E
- *
- * @description
- * The `<md-radio-group>` directive identifies a grouping
- * container for the 1..n grouped radio buttons; specified using nested
- * `<md-radio-button>` tags.
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the radio button is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * Note: `<md-radio-group>` and `<md-radio-button>` handle tabindex differently
- * than the native `<input type='radio'>` controls. Whereas the native controls
- * force the user to tab through all the radio buttons, `<md-radio-group>`
- * is focusable, and by default the `<md-radio-button>`s are not.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {boolean=} md-no-ink Use of attribute indicates flag to disable ink ripple effects.
- *
- * @usage
- * <hljs lang="html">
- * <md-radio-group ng-model="selected">
- *
- * <md-radio-button
- * ng-repeat="d in colorOptions"
- * ng-value="d.value" aria-label="{{ d.label }}">
- *
- * {{ d.label }}
- *
- * </md-radio-button>
- *
- * </md-radio-group>
- * </hljs>
- *
- */
-function mdRadioGroupDirective($mdUtil, $mdConstant, $mdTheming, $timeout) {
- RadioGroupController.prototype = createRadioGroupControllerProto();
-
- return {
- restrict: 'E',
- controller: ['$element', RadioGroupController],
- require: ['mdRadioGroup', '?ngModel'],
- link: { pre: linkRadioGroup }
- };
-
- function linkRadioGroup(scope, element, attr, ctrls) {
- $mdTheming(element);
- var rgCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1] || $mdUtil.fakeNgModel();
-
- function setFocus() {
- if (!element.hasClass('md-focused')) { element.addClass('md-focused'); }
- }
-
- function keydownListener(ev) {
- var keyCode = ev.which || ev.keyCode;
- switch(keyCode) {
- case $mdConstant.KEY_CODE.LEFT_ARROW:
- case $mdConstant.KEY_CODE.UP_ARROW:
- ev.preventDefault();
- rgCtrl.selectPrevious();
- setFocus();
- break;
-
- case $mdConstant.KEY_CODE.RIGHT_ARROW:
- case $mdConstant.KEY_CODE.DOWN_ARROW:
- ev.preventDefault();
- rgCtrl.selectNext();
- setFocus();
- break;
-
- case $mdConstant.KEY_CODE.ENTER:
- var form = angular.element($mdUtil.getClosest(element[0], 'form'));
- if (form.length > 0) {
- form.triggerHandler('submit');
- }
- break;
- }
- }
-
- rgCtrl.init(ngModelCtrl);
-
- scope.mouseActive = false;
- element.attr({
- 'role': 'radiogroup',
- 'tabIndex': element.attr('tabindex') || '0'
- })
- .on('keydown', keydownListener)
- .on('mousedown', function(event) {
- scope.mouseActive = true;
- $timeout(function() {
- scope.mouseActive = false;
- }, 100);
- })
- .on('focus', function() {
- if(scope.mouseActive === false) { rgCtrl.$element.addClass('md-focused'); }
- })
- .on('blur', function() { rgCtrl.$element.removeClass('md-focused'); });
- }
-
- function RadioGroupController($element) {
- this._radioButtonRenderFns = [];
- this.$element = $element;
- }
-
- function createRadioGroupControllerProto() {
- return {
- init: function(ngModelCtrl) {
- this._ngModelCtrl = ngModelCtrl;
- this._ngModelCtrl.$render = angular.bind(this, this.render);
- },
- add: function(rbRender) {
- this._radioButtonRenderFns.push(rbRender);
- },
- remove: function(rbRender) {
- var index = this._radioButtonRenderFns.indexOf(rbRender);
- if (index !== -1) {
- this._radioButtonRenderFns.splice(index, 1);
- }
- },
- render: function() {
- this._radioButtonRenderFns.forEach(function(rbRender) {
- rbRender();
- });
- },
- setViewValue: function(value, eventType) {
- this._ngModelCtrl.$setViewValue(value, eventType);
- // update the other radio buttons as well
- this.render();
- },
- getViewValue: function() {
- return this._ngModelCtrl.$viewValue;
- },
- selectNext: function() {
- return changeSelectedButton(this.$element, 1);
- },
- selectPrevious: function() {
- return changeSelectedButton(this.$element, -1);
- },
- setActiveDescendant: function (radioId) {
- this.$element.attr('aria-activedescendant', radioId);
- }
- };
- }
- /**
- * Change the radio group's selected button by a given increment.
- * If no button is selected, select the first button.
- */
- function changeSelectedButton(parent, increment) {
- // Coerce all child radio buttons into an array, then wrap then in an iterator
- var buttons = $mdUtil.iterator(parent[0].querySelectorAll('md-radio-button'), true);
-
- if (buttons.count()) {
- var validate = function (button) {
- // If disabled, then NOT valid
- return !angular.element(button).attr("disabled");
- };
- var selected = parent[0].querySelector('md-radio-button.md-checked');
- var target = buttons[increment < 0 ? 'previous' : 'next'](selected, validate) || buttons.first();
- // Activate radioButton's click listener (triggerHandler won't create a real click event)
- angular.element(target).triggerHandler('click');
-
-
- }
- }
-
-}
-mdRadioGroupDirective.$inject = ["$mdUtil", "$mdConstant", "$mdTheming", "$timeout"];
-
-/**
- * @ngdoc directive
- * @module material.components.radioButton
- * @name mdRadioButton
- *
- * @restrict E
- *
- * @description
- * The `<md-radio-button>`directive is the child directive required to be used within `<md-radio-group>` elements.
- *
- * While similar to the `<input type="radio" ng-model="" value="">` directive,
- * the `<md-radio-button>` directive provides ink effects, ARIA support, and
- * supports use within named radio groups.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {string} ngValue Angular expression which sets the value to which the expression should
- * be set when selected.*
- * @param {string} value The value to which the expression should be set when selected.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} aria-label Adds label to radio button for accessibility.
- * Defaults to radio button's text. If no text content is available, a warning will be logged.
- *
- * @usage
- * <hljs lang="html">
- *
- * <md-radio-button value="1" aria-label="Label 1">
- * Label 1
- * </md-radio-button>
- *
- * <md-radio-button ng-model="color" ng-value="specialValue" aria-label="Green">
- * Green
- * </md-radio-button>
- *
- * </hljs>
- *
- */
-function mdRadioButtonDirective($mdAria, $mdUtil, $mdTheming) {
-
- var CHECKED_CSS = 'md-checked';
-
- return {
- restrict: 'E',
- require: '^mdRadioGroup',
- transclude: true,
- template: '<div class="md-container" md-ink-ripple md-ink-ripple-checkbox>' +
- '<div class="md-off"></div>' +
- '<div class="md-on"></div>' +
- '</div>' +
- '<div ng-transclude class="md-label"></div>',
- link: link
- };
-
- function link(scope, element, attr, rgCtrl) {
- var lastChecked;
-
- $mdTheming(element);
- configureAria(element, scope);
-
- rgCtrl.add(render);
- attr.$observe('value', render);
-
- element
- .on('click', listener)
- .on('$destroy', function() {
- rgCtrl.remove(render);
- });
-
- function listener(ev) {
- if (element[0].hasAttribute('disabled')) return;
-
- scope.$apply(function() {
- rgCtrl.setViewValue(attr.value, ev && ev.type);
- });
- }
-
- function render() {
- var checked = (rgCtrl.getViewValue() == attr.value);
- if (checked === lastChecked) {
- return;
- }
- lastChecked = checked;
- element.attr('aria-checked', checked);
- if (checked) {
- element.addClass(CHECKED_CSS);
- rgCtrl.setActiveDescendant(element.attr('id'));
- } else {
- element.removeClass(CHECKED_CSS);
- }
- }
- /**
- * Inject ARIA-specific attributes appropriate for each radio button
- */
- function configureAria( element, scope ){
- scope.ariaId = buildAriaID();
-
- element.attr({
- 'id' : scope.ariaId,
- 'role' : 'radio',
- 'aria-checked' : 'false'
- });
-
- $mdAria.expectWithText(element, 'aria-label');
-
- /**
- * Build a unique ID for each radio button that will be used with aria-activedescendant.
- * Preserve existing ID if already specified.
- * @returns {*|string}
- */
- function buildAriaID() {
- return attr.id || ( 'radio' + "_" + $mdUtil.nextUid() );
- }
- }
- }
-}
-mdRadioButtonDirective.$inject = ["$mdAria", "$mdUtil", "$mdTheming"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.min.css
deleted file mode 100644
index 104408ee..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-switch-thumb,md-radio-button{box-sizing:border-box;display:block;margin:15px;white-space:nowrap;cursor:pointer}.md-switch-thumb *,.md-switch-thumb :after,.md-switch-thumb :before,md-radio-button *,md-radio-button :after,md-radio-button :before{box-sizing:border-box}.md-switch-thumb input,md-radio-button input{display:none}.md-switch-thumb .md-container,md-radio-button .md-container{position:relative;top:4px;display:inline-block;width:16px;height:16px;cursor:pointer}.md-switch-thumb .md-container .md-ripple-container,md-radio-button .md-container .md-ripple-container{position:absolute;display:block;width:48px;height:48px;left:-16px;top:-16px}.md-switch-thumb .md-container:before,md-radio-button .md-container:before{background-color:transparent;border-radius:50%;content:'';position:absolute;display:block;height:auto;left:0;top:0;right:0;bottom:0;transition:all .5s;width:auto}.md-switch-thumb .md-off,md-radio-button .md-off{position:absolute;top:0;left:0;width:16px;height:16px;border:2px solid;border-radius:50%;transition:border-color ease .28s}.md-switch-thumb .md-on,md-radio-button .md-on{position:absolute;top:0;left:0;width:16px;height:16px;border-radius:50%;transition:-webkit-transform ease .28s;transition:transform ease .28s;-webkit-transform:scale(0);transform:scale(0)}.md-switch-thumb.md-checked .md-on,md-radio-button.md-checked .md-on{-webkit-transform:scale(.5);transform:scale(.5)}.md-switch-thumb .md-label,md-radio-button .md-label{position:relative;display:inline-block;margin-left:10px;margin-right:10px;vertical-align:middle;white-space:normal;pointer-events:none;width:auto}.md-switch-thumb .circle,md-radio-button .circle{border-radius:50%}md-radio-group:focus{outline:0}md-radio-group.md-focused .md-checked .md-container:before{left:-8px;top:-8px;right:-8px;bottom:-8px}@media screen and (-ms-high-contrast:active){md-radio-button.md-default-theme .md-on{background-color:#fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.min.js
deleted file mode 100644
index 5a713697..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/radioButton/radioButton.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function i(e,n,i,r){function o(o,d,a,c){function s(){d.hasClass("md-focused")||d.addClass("md-focused")}function u(i){var r=i.which||i.keyCode;switch(r){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:i.preventDefault(),l.selectPrevious(),s();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:i.preventDefault(),l.selectNext(),s();break;case n.KEY_CODE.ENTER:var o=t.element(e.getClosest(d[0],"form"));o.length>0&&o.triggerHandler("submit")}}i(d);var l=c[0],m=c[1]||e.fakeNgModel();l.init(m),o.mouseActive=!1,d.attr({role:"radiogroup",tabIndex:d.attr("tabindex")||"0"}).on("keydown",u).on("mousedown",function(e){o.mouseActive=!0,r(function(){o.mouseActive=!1},100)}).on("focus",function(){o.mouseActive===!1&&l.$element.addClass("md-focused")}).on("blur",function(){l.$element.removeClass("md-focused")})}function d(e){this._radioButtonRenderFns=[],this.$element=e}function a(){return{init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=t.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach(function(e){e()})},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return c(this.$element,1)},selectPrevious:function(){return c(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)}}}function c(n,i){var r=e.iterator(n[0].querySelectorAll("md-radio-button"),!0);if(r.count()){var o=function(e){return!t.element(e).attr("disabled")},d=n[0].querySelector("md-radio-button.md-checked"),a=r[0>i?"previous":"next"](d,o)||r.first();t.element(a).triggerHandler("click")}}return d.prototype=a(),{restrict:"E",controller:["$element",d],require:["mdRadioGroup","?ngModel"],link:{pre:o}}}function r(e,t,n){function i(i,o,d,a){function c(e){o[0].hasAttribute("disabled")||i.$apply(function(){a.setViewValue(d.value,e&&e.type)})}function s(){var e=a.getViewValue()==d.value;e!==l&&(l=e,o.attr("aria-checked",e),e?(o.addClass(r),a.setActiveDescendant(o.attr("id"))):o.removeClass(r))}function u(n,i){function r(){return d.id||"radio_"+t.nextUid()}i.ariaId=r(),n.attr({id:i.ariaId,role:"radio","aria-checked":"false"}),e.expectWithText(n,"aria-label")}var l;n(o),u(o,i),a.add(s),d.$observe("value",s),o.on("click",c).on("$destroy",function(){a.remove(s)})}var r="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:i}}t.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",i).directive("mdRadioButton",r),i.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],r.$inject=["$mdAria","$mdUtil","$mdTheming"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/bower.json
deleted file mode 100644
index 339f153b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-select",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-backdrop": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select-default-theme.css
deleted file mode 100644
index fc712622..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select-default-theme.css
+++ /dev/null
@@ -1,42 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label {
- color: '{{warn-500}}' !important;
- border-bottom-color: '{{warn-500}}' !important; }
-md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label {
- border-bottom-color: '{{primary-color}}';
- color: '{{ foreground-1 }}'; }
- md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder {
- color: '{{ foreground-1 }}'; }
-md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label {
- border-bottom-color: '{{accent-color}}'; }
-md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label {
- border-bottom-color: '{{warn-color}}'; }
-md-select.md-THEME_NAME-theme[disabled] .md-select-label {
- color: '{{foreground-3}}'; }
- md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder {
- color: '{{foreground-3}}'; }
-md-select.md-THEME_NAME-theme .md-select-label {
- border-bottom-color: '{{foreground-4}}'; }
- md-select.md-THEME_NAME-theme .md-select-label.md-placeholder {
- color: '{{foreground-2}}'; }
-
-md-select-menu.md-THEME_NAME-theme md-optgroup {
- color: '{{foreground-2}}'; }
- md-select-menu.md-THEME_NAME-theme md-optgroup md-option {
- color: '{{foreground-1}}'; }
-md-select-menu.md-THEME_NAME-theme md-option[selected] {
- color: '{{primary-500}}'; }
- md-select-menu.md-THEME_NAME-theme md-option[selected]:focus {
- color: '{{primary-600}}'; }
- md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent {
- color: '{{accent-500}}'; }
- md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus {
- color: '{{accent-600}}'; }
-md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]) {
- background: '{{background-200}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select-default-theme.min.css
deleted file mode 100644
index 5f51cc2c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-label{color:'{{warn-500}}'!important;border-bottom-color:'{{warn-500}}'!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label{border-bottom-color:'{{primary-color}}';color:'{{ foreground-1 }}'}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-label.md-placeholder{color:'{{ foreground-1 }}'}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-label{border-bottom-color:'{{accent-color}}'}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-label{border-bottom-color:'{{warn-color}}'}md-select.md-THEME_NAME-theme[disabled] .md-select-label,md-select.md-THEME_NAME-theme[disabled] .md-select-label.md-placeholder{color:'{{foreground-3}}'}md-select.md-THEME_NAME-theme .md-select-label{border-bottom-color:'{{foreground-4}}'}md-select-menu.md-THEME_NAME-theme md-optgroup,md-select.md-THEME_NAME-theme .md-select-label.md-placeholder{color:'{{foreground-2}}'}md-select-menu.md-THEME_NAME-theme md-optgroup md-option{color:'{{foreground-1}}'}md-select-menu.md-THEME_NAME-theme md-option[selected]{color:'{{primary-500}}'}md-select-menu.md-THEME_NAME-theme md-option[selected]:focus{color:'{{primary-600}}'}md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent{color:'{{accent-500}}'}md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus{color:'{{accent-600}}'}md-select-menu.md-THEME_NAME-theme md-option:focus:not([selected]){background:0 0} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.css
deleted file mode 100644
index d1744af9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.css
+++ /dev/null
@@ -1,168 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-select-menu-container {
- position: fixed;
- left: 0;
- top: 0;
- z-index: 99;
- opacity: 0; }
- .md-select-menu-container:not(.md-clickable) {
- pointer-events: none; }
- .md-select-menu-container md-progress-circular {
- display: table;
- margin: 24px auto !important; }
- .md-select-menu-container.md-active {
- opacity: 1; }
- .md-select-menu-container.md-active md-select-menu {
- transition: -webkit-transform all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition: transform all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- transition-duration: 200ms; }
- .md-select-menu-container.md-active md-select-menu > * {
- opacity: 1;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- transition-duration: 200ms;
- transition-delay: 100ms; }
- .md-select-menu-container.md-leave {
- opacity: 0;
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- transition-duration: 250ms; }
-
-md-input-container > md-select {
- margin: 0;
- margin-top: 3px; }
-
-md-select {
- padding: 24px 2px 26px;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex; }
- md-select:focus {
- outline: none; }
- md-select[disabled]:hover {
- cursor: default; }
- md-select:not([disabled]):hover {
- cursor: pointer; }
- md-select:not([disabled]).ng-invalid.ng-dirty .md-select-label {
- border-bottom: 2px solid;
- padding-bottom: 0; }
- md-select:not([disabled]):focus .md-select-label {
- border-bottom: 2px solid;
- padding-bottom: 0; }
-
-.md-select-label {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- padding: 2px 2px 1px;
- border-bottom: 1px solid;
- position: relative;
- box-sizing: content-box;
- min-width: 64px;
- min-height: 26px; }
- .md-select-label *:first-child {
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- max-width: calc(100% - 2*8px);
- -webkit-transform: translate3d(0, 2px, 0);
- transform: translate3d(0, 2px, 0); }
- .md-select-label .md-select-icon {
- -webkit-align-items: flex-end;
- -ms-flex-align: end;
- align-items: flex-end;
- text-align: end;
- width: 24px;
- margin: 0 4px;
- -webkit-transform: translate3d(0, 1px, 0);
- transform: translate3d(0, 1px, 0); }
- .md-select-label .md-select-icon:after {
- display: block;
- content: '\25BC';
- position: relative;
- top: 2px;
- speak: none;
- -webkit-transform: scaleY(0.6) scaleX(1);
- transform: scaleY(0.6) scaleX(1); }
-
-md-select-menu {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084);
- max-height: 256px;
- min-height: 48px;
- overflow-y: hidden;
- -webkit-transform-origin: left top;
- transform-origin: left top;
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-select-menu.md-reverse {
- -webkit-flex-direction: column-reverse;
- -ms-flex-direction: column-reverse;
- flex-direction: column-reverse; }
- md-select-menu:not(.md-overflow) md-content {
- padding-top: 8px;
- padding-bottom: 8px; }
- html[dir=rtl] md-select-menu {
- -webkit-transform-origin: right top;
- transform-origin: right top; }
- md-select-menu md-content {
- min-width: 136px;
- min-height: 48px;
- max-height: 256px;
- overflow-y: auto; }
- md-select-menu > * {
- opacity: 0; }
-
-md-option {
- cursor: pointer;
- position: relative;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- width: auto;
- padding: 0 16px 0 16px;
- height: 48px; }
- md-option:focus {
- outline: none; }
- md-option .md-text {
- width: auto;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 16px; }
-
-md-optgroup {
- display: block; }
- md-optgroup label {
- display: block;
- font-size: 14px;
- text-transform: uppercase;
- padding: 16px;
- font-weight: 500; }
- md-optgroup md-option {
- padding-left: 32px;
- padding-right: 32px; }
-
-@media screen and (-ms-high-contrast: active) {
- .md-select-backdrop {
- background-color: transparent; }
- md-select-menu {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.js
deleted file mode 100644
index 969e06b7..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.js
+++ /dev/null
@@ -1,1056 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.select
- */
-
-/***************************************************
-
-### TODO ###
-**DOCUMENTATION AND DEMOS**
-
-- [ ] ng-model with child mdOptions (basic)
-- [ ] ng-model="foo" ng-model-options="{ trackBy: '$value.id' }" for objects
-- [ ] mdOption with value
-- [ ] Usage with input inside
-
-### TODO - POST RC1 ###
-- [ ] Abstract placement logic in $mdSelect service to $mdMenu service
-
-***************************************************/
-
-var SELECT_EDGE_MARGIN = 8;
-var selectNextId = 0;
-
-angular.module('material.components.select', [
- 'material.core',
- 'material.components.backdrop'
-])
-.directive('mdSelect', SelectDirective)
-.directive('mdSelectMenu', SelectMenuDirective)
-.directive('mdOption', OptionDirective)
-.directive('mdOptgroup', OptgroupDirective)
-.provider('$mdSelect', SelectProvider);
-
-
-/**
- * @ngdoc directive
- * @name mdSelect
- * @restrict E
- * @module material.components.select
- *
- * @description Displays a select box, bound to an ng-model.
- *
- * @param {expression} ng-model The model!
- * @param {boolean=} multiple Whether it's multiple.
- * @param {string=} placeholder Placeholder hint text.
- * @param {string=} aria-label Optional label for accessibility. Only necessary if no placeholder or
- * explicit label is present.
- *
- * @usage
- * With a placeholder (label and aria-label are added dynamically)
- * <hljs lang="html">
- * <md-select
- * ng-model="someModel"
- * placeholder="Select a state">
- * <md-option ng-value="opt" ng-repeat="opt in neighborhoods2">{{ opt }}</md-option>
- * </md-select>
- * </hljs>
- *
- * With an explicit label
- * <hljs lang="html">
- * <md-select
- * ng-model="someModel">
- * <md-select-label>Select a state</md-select-label>
- * <md-option ng-value="opt" ng-repeat="opt in neighborhoods2">{{ opt }}</md-option>
- * </md-select>
- * </hljs>
- */
-function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $interpolate, $compile, $parse) {
- return {
- restrict: 'E',
- require: ['mdSelect', 'ngModel', '?^form'],
- compile: compile,
- controller: function() { } // empty placeholder controller to be initialized in link
- };
-
- function compile(element, attr) {
- // The user is allowed to provide a label for the select as md-select-label child
- var labelEl = element.find('md-select-label').remove();
-
- // If not provided, we automatically make one
- if (!labelEl.length) {
- labelEl = angular.element('<md-select-label><span></span></md-select-label>');
- } else {
- if (!labelEl[0].firstElementChild) {
- var spanWrapper = angular.element('<span>');
- spanWrapper.append(labelEl.contents());
- labelEl.append(spanWrapper);
- }
- }
- labelEl.append('<span class="md-select-icon" aria-hidden="true"></span>');
- labelEl.addClass('md-select-label');
- if (!labelEl[0].hasAttribute('id')) {
- labelEl.attr('id', 'select_label_' + $mdUtil.nextUid());
- }
-
- // There's got to be an md-content inside. If there's not one, let's add it.
- if (!element.find('md-content').length) {
- element.append( angular.element('<md-content>').append(element.contents()) );
- }
-
- // Add progress spinner for md-options-loading
- if (attr.mdOnOpen) {
- element.find('md-content').prepend(
- angular.element('<md-progress-circular>')
- .attr('md-mode', 'indeterminate')
- .attr('ng-hide', '$$loadingAsyncDone')
- .wrap('<div>')
- .parent()
- );
- }
-
- if (attr.name) {
- var autofillClone = angular.element('<select class="md-visually-hidden">');
- autofillClone.attr({
- 'name': '.' + attr.name,
- 'ng-model': attr.ngModel,
- 'aria-hidden': 'true',
- 'tabindex': '-1'
- });
- var opts = element.find('md-option');
- angular.forEach(opts, function(el) {
- var newEl = angular.element('<option>' + el.innerHTML + '</option>');
- if (el.hasAttribute('ng-value')) newEl.attr('ng-value', el.getAttribute('ng-value'));
- else if (el.hasAttribute('value')) newEl.attr('value', el.getAttribute('value'));
- autofillClone.append(newEl);
- });
-
- element.parent().append(autofillClone);
- }
-
- // Use everything that's left inside element.contents() as the contents of the menu
- var selectTemplate = '<div class="md-select-menu-container">' +
- '<md-select-menu ' +
- (angular.isDefined(attr.multiple) ? 'multiple' : '') + '>' +
- element.html() +
- '</md-select-menu></div>';
-
- element.empty().append(labelEl);
-
- attr.tabindex = attr.tabindex || '0';
-
- return function postLink(scope, element, attr, ctrls) {
- var isOpen;
- var isDisabled;
-
- var mdSelectCtrl = ctrls[0];
- var ngModel = ctrls[1];
- var formCtrl = ctrls[2];
-
- var labelEl = element.find('md-select-label');
- var customLabel = labelEl.text().length !== 0;
- var selectContainer, selectScope, selectMenuCtrl;
- createSelect();
-
- $mdTheming(element);
-
- if (attr.name && formCtrl) {
- var selectEl = element.parent()[0].querySelector('select[name=".' + attr.name + '"]')
- formCtrl.$removeControl(angular.element(selectEl).controller());
- }
-
- var originalRender = ngModel.$render;
- ngModel.$render = function() {
- originalRender();
- syncLabelText();
- };
-
- mdSelectCtrl.setLabelText = function(text) {
- if (customLabel) return; // Assume that user is handling it on their own
- mdSelectCtrl.setIsPlaceholder(!text);
- text = text || attr.placeholder || '';
- var target = customLabel ? labelEl : labelEl.children().eq(0);
- target.text(text);
- };
-
- mdSelectCtrl.setIsPlaceholder = function(val) {
- val ? labelEl.addClass('md-placeholder') : labelEl.removeClass('md-placeholder');
- };
-
- scope.$$postDigest(function() {
- setAriaLabel();
- syncLabelText();
- });
-
- function setAriaLabel() {
- var labelText = element.attr('placeholder');
- if (!labelText) {
- labelText = element.find('md-select-label').text();
- }
- $mdAria.expect(element, 'aria-label', labelText);
- }
-
- function syncLabelText() {
- if (selectContainer) {
- selectMenuCtrl = selectMenuCtrl || selectContainer.find('md-select-menu').controller('mdSelectMenu');
- mdSelectCtrl.setLabelText(selectMenuCtrl.selectedLabels());
- }
- }
-
- var deregisterWatcher;
- attr.$observe('ngMultiple', function(val) {
- if (deregisterWatcher) deregisterWatcher();
- var parser = $parse(val);
- deregisterWatcher = scope.$watch(function() { return parser(scope); }, function(multiple, prevVal) {
- if (multiple === undefined && prevVal === undefined) return; // assume compiler did a good job
- if (multiple) {
- element.attr('multiple', 'multiple');
- } else {
- element.removeAttr('multiple');
- }
- if (selectContainer) {
- selectMenuCtrl.setMultiple(multiple);
- originalRender = ngModel.$render;
- ngModel.$render = function() {
- originalRender();
- syncLabelText();
- };
- selectMenuCtrl.refreshViewValue();
- ngModel.$render();
- }
- });
- });
-
- attr.$observe('disabled', function(disabled) {
- if (typeof disabled == "string") {
- disabled = true;
- }
- // Prevent click event being registered twice
- if (isDisabled !== undefined && isDisabled === disabled) {
- return;
- }
- isDisabled = disabled;
- if (disabled) {
- element.attr({'tabindex': -1, 'aria-disabled': 'true'});
- element.off('click', openSelect);
- element.off('keydown', handleKeypress);
- } else {
- element.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'});
- element.on('click', openSelect);
- element.on('keydown', handleKeypress);
- }
- });
- if (!attr.disabled && !attr.ngDisabled) {
- element.attr({'tabindex': attr.tabindex, 'aria-disabled': 'false'});
- element.on('click', openSelect);
- element.on('keydown', handleKeypress);
- }
-
- var ariaAttrs = {
- role: 'combobox',
- 'aria-expanded': 'false'
- };
- if (!element[0].hasAttribute('id')) {
- ariaAttrs.id = 'select_' + $mdUtil.nextUid();
- }
- element.attr(ariaAttrs);
-
- scope.$on('$destroy', function() {
- if (isOpen) {
- $mdSelect.cancel().then(function() {
- selectContainer.remove();
- });
- } else {
- selectContainer.remove();
- }
- });
-
-
- // Create a fake select to find out the label value
- function createSelect() {
- selectContainer = angular.element(selectTemplate);
- var selectEl = selectContainer.find('md-select-menu');
- selectEl.data('$ngModelController', ngModel);
- selectEl.data('$mdSelectController', mdSelectCtrl);
- selectScope = scope.$new();
- selectContainer = $compile(selectContainer)(selectScope);
- selectMenuCtrl = selectContainer.find('md-select-menu').controller('mdSelectMenu');
- }
-
- function handleKeypress(e) {
- var allowedCodes = [32, 13, 38, 40];
- if (allowedCodes.indexOf(e.keyCode) != -1 ) {
- // prevent page scrolling on interaction
- e.preventDefault();
- openSelect(e);
- } else {
- if (e.keyCode <= 90 && e.keyCode >= 31) {
- e.preventDefault();
- var node = selectMenuCtrl.optNodeForKeyboardSearch(e);
- if (!node) return;
- var optionCtrl = angular.element(node).controller('mdOption');
- if (!selectMenuCtrl.isMultiple) {
- selectMenuCtrl.deselect( Object.keys(selectMenuCtrl.selected)[0] );
- }
- selectMenuCtrl.select(optionCtrl.hashKey, optionCtrl.value);
- selectMenuCtrl.refreshViewValue();
- ngModel.$render();
- }
- }
- }
-
- function openSelect() {
- scope.$evalAsync(function() {
- isOpen = true;
- $mdSelect.show({
- scope: selectScope,
- preserveScope: true,
- skipCompile: true,
- element: selectContainer,
- target: element[0],
- hasBackdrop: true,
- loadingAsync: attr.mdOnOpen ? scope.$eval(attr.mdOnOpen) || true : false,
- }).then(function(selectedText) {
- isOpen = false;
- });
- });
- }
- };
- }
-}
-SelectDirective.$inject = ["$mdSelect", "$mdUtil", "$mdTheming", "$mdAria", "$interpolate", "$compile", "$parse"];
-
-function SelectMenuDirective($parse, $mdUtil, $mdTheming) {
-
- SelectMenuController.$inject = ["$scope", "$attrs", "$element"];
- return {
- restrict: 'E',
- require: ['mdSelectMenu', '?ngModel'],
- controller: SelectMenuController,
- link: { pre: preLink }
- };
-
- // We use preLink instead of postLink to ensure that the select is initialized before
- // its child options run postLink.
- function preLink(scope, element, attr, ctrls) {
- var selectCtrl = ctrls[0];
- var ngModel = ctrls[1];
-
- $mdTheming(element);
- element.on('click', clickListener);
- element.on('keypress', keyListener);
- if (ngModel) selectCtrl.init(ngModel);
- configureAria();
-
- function configureAria() {
- element.attr({
- 'id': 'select_menu_' + $mdUtil.nextUid(),
- 'role': 'listbox',
- 'aria-multiselectable': (selectCtrl.isMultiple ? 'true' : 'false')
- });
- }
-
- function keyListener(e) {
- if (e.keyCode == 13 || e.keyCode == 32) {
- clickListener(e);
- }
- }
-
- function clickListener(ev) {
- var option = $mdUtil.getClosest(ev.target, 'md-option');
- var optionCtrl = option && angular.element(option).data('$mdOptionController');
- if (!option || !optionCtrl) return;
-
- var optionHashKey = selectCtrl.hashGetter(optionCtrl.value);
- var isSelected = angular.isDefined(selectCtrl.selected[optionHashKey]);
-
- scope.$apply(function() {
- if (selectCtrl.isMultiple) {
- if (isSelected) {
- selectCtrl.deselect(optionHashKey);
- } else {
- selectCtrl.select(optionHashKey, optionCtrl.value);
- }
- } else {
- if (!isSelected) {
- selectCtrl.deselect( Object.keys(selectCtrl.selected)[0] );
- selectCtrl.select( optionHashKey, optionCtrl.value );
- }
- }
- selectCtrl.refreshViewValue();
- });
- }
- }
-
-
-
- function SelectMenuController($scope, $attrs, $element) {
- var self = this;
- self.isMultiple = angular.isDefined($attrs.multiple);
- // selected is an object with keys matching all of the selected options' hashed values
- self.selected = {};
- // options is an object with keys matching every option's hash value,
- // and values matching every option's controller.
- self.options = {};
-
- $scope.$watch(function() { return self.options; }, function() {
- self.ngModel.$render();
- }, true);
-
- var deregisterCollectionWatch;
- self.setMultiple = function(isMultiple) {
- var ngModel = self.ngModel;
- self.isMultiple = isMultiple;
- if (deregisterCollectionWatch) deregisterCollectionWatch();
-
- if (self.isMultiple) {
- ngModel.$validators['md-multiple'] = validateArray;
- ngModel.$render = renderMultiple;
-
- // watchCollection on the model because by default ngModel only watches the model's
- // reference. This allowed the developer to also push and pop from their array.
- $scope.$watchCollection($attrs.ngModel, function(value) {
- if (validateArray(value)) renderMultiple(value);
- });
- } else {
- delete ngModel.$validators['md-multiple'];
- ngModel.$render = renderSingular;
- }
-
- function validateArray(modelValue, viewValue) {
- // If a value is truthy but not an array, reject it.
- // If value is undefined/falsy, accept that it's an empty array.
- return angular.isArray(modelValue || viewValue || []);
- }
- };
-
- var searchStr = '';
- var clearSearchTimeout, optNodes, optText;
- var CLEAR_SEARCH_AFTER = 300;
- self.optNodeForKeyboardSearch = function(e) {
- clearSearchTimeout && clearTimeout(clearSearchTimeout);
- clearSearchTimeout = setTimeout(function() {
- clearSearchTimeout = undefined;
- searchStr = '';
- optText = undefined;
- optNodes = undefined;
- }, CLEAR_SEARCH_AFTER);
- searchStr += String.fromCharCode(e.keyCode);
- var search = new RegExp('^' + searchStr, 'i');
- if (!optNodes) {
- optNodes = $element.find('md-option');
- optText = new Array(optNodes.length);
- angular.forEach(optNodes, function(el, i) {
- optText[i] = el.textContent.trim();
- });
- }
- for (var i = 0; i < optText.length; ++i) {
- if (search.test(optText[i])) {
- return optNodes[i];
- }
- }
- };
-
-
- self.init = function(ngModel) {
- self.ngModel = ngModel;
-
- // Allow users to provide `ng-model="foo" ng-model-options="{trackBy: 'foo.id'}"` so
- // that we can properly compare objects set on the model to the available options
- if (ngModel.$options && ngModel.$options.trackBy) {
- var trackByLocals = {};
- var trackByParsed = $parse(ngModel.$options.trackBy);
- self.hashGetter = function(value, valueScope) {
- trackByLocals.$value = value;
- return trackByParsed(valueScope || $scope, trackByLocals);
- };
- // If the user doesn't provide a trackBy, we automatically generate an id for every
- // value passed in
- } else {
- self.hashGetter = function getHashValue(value) {
- if (angular.isObject(value)) {
- return 'object_' + (value.$$mdSelectId || (value.$$mdSelectId = ++selectNextId));
- }
- return value;
- };
- }
- self.setMultiple(self.isMultiple);
- };
-
- self.selectedLabels = function() {
- var selectedOptionEls = nodesToArray($element[0].querySelectorAll('md-option[selected]'));
- if (selectedOptionEls.length) {
- return selectedOptionEls.map(function(el) { return el.textContent; }).join(', ');
- } else {
- return '';
- }
- };
-
- self.select = function(hashKey, hashedValue) {
- var option = self.options[hashKey];
- option && option.setSelected(true);
- self.selected[hashKey] = hashedValue;
- };
- self.deselect = function(hashKey) {
- var option = self.options[hashKey];
- option && option.setSelected(false);
- delete self.selected[hashKey];
- };
-
- self.addOption = function(hashKey, optionCtrl) {
- if (angular.isDefined(self.options[hashKey])) {
- throw new Error('Duplicate md-option values are not allowed in a select. ' +
- 'Duplicate value "' + optionCtrl.value + '" found.');
- }
- self.options[hashKey] = optionCtrl;
-
- // If this option's value was already in our ngModel, go ahead and select it.
- if (angular.isDefined(self.selected[hashKey])) {
- self.select(hashKey, optionCtrl.value);
- self.refreshViewValue();
- }
- };
- self.removeOption = function(hashKey) {
- delete self.options[hashKey];
- // Don't deselect an option when it's removed - the user's ngModel should be allowed
- // to have values that do not match a currently available option.
- };
-
- self.refreshViewValue = function() {
- var values = [];
- var option;
- for (var hashKey in self.selected) {
- // If this hashKey has an associated option, push that option's value to the model.
- if ((option = self.options[hashKey])) {
- values.push(option.value);
- } else {
- // Otherwise, the given hashKey has no associated option, and we got it
- // from an ngModel value at an earlier time. Push the unhashed value of
- // this hashKey to the model.
- // This allows the developer to put a value in the model that doesn't yet have
- // an associated option.
- values.push(self.selected[hashKey]);
- }
- }
- self.ngModel.$setViewValue(self.isMultiple ? values : values[0]);
- };
-
- function renderMultiple() {
- var newSelectedValues = self.ngModel.$modelValue || self.ngModel.$viewValue;
- if (!angular.isArray(newSelectedValues)) return;
-
- var oldSelected = Object.keys(self.selected);
-
- var newSelectedHashes = newSelectedValues.map(self.hashGetter);
- var deselected = oldSelected.filter(function(hash) {
- return newSelectedHashes.indexOf(hash) === -1;
- });
-
- deselected.forEach(self.deselect);
- newSelectedHashes.forEach(function(hashKey, i) {
- self.select(hashKey, newSelectedValues[i]);
- });
- }
- function renderSingular() {
- var value = self.ngModel.$viewValue || self.ngModel.$modelValue;
- Object.keys(self.selected).forEach(self.deselect);
- self.select( self.hashGetter(value), value );
- }
- }
-
-}
-SelectMenuDirective.$inject = ["$parse", "$mdUtil", "$mdTheming"];
-
-function OptionDirective($mdButtonInkRipple, $mdUtil) {
-
- OptionController.$inject = ["$element"];
- return {
- restrict: 'E',
- require: ['mdOption', '^^mdSelectMenu'],
- controller: OptionController,
- compile: compile
- };
-
- function compile(element, attr) {
- // Manual transclusion to avoid the extra inner <span> that ng-transclude generates
- element.append( angular.element('<div class="md-text">').append(element.contents()) );
-
- element.attr('tabindex', attr.tabindex || '0');
- return postLink;
- }
-
- function postLink(scope, element, attr, ctrls) {
- var optionCtrl = ctrls[0];
- var selectCtrl = ctrls[1];
-
- if (angular.isDefined(attr.ngValue)) {
- scope.$watch(attr.ngValue, setOptionValue);
- } else if (angular.isDefined(attr.value)) {
- setOptionValue(attr.value);
- } else {
- scope.$watch(function() { return element.text(); }, setOptionValue);
- }
-
- scope.$$postDigest(function() {
- attr.$observe('selected', function(selected) {
- if (!angular.isDefined(selected)) return;
- if (selected) {
- if (!selectCtrl.isMultiple) {
- selectCtrl.deselect( Object.keys(selectCtrl.selected)[0] );
- }
- selectCtrl.select(optionCtrl.hashKey, optionCtrl.value);
- } else {
- selectCtrl.deselect(optionCtrl.hashKey);
- }
- selectCtrl.refreshViewValue();
- selectCtrl.ngModel.$render();
- });
- });
-
- $mdButtonInkRipple.attach(scope, element);
- configureAria();
-
- function setOptionValue(newValue, oldValue) {
- var oldHashKey = selectCtrl.hashGetter(oldValue, scope);
- var newHashKey = selectCtrl.hashGetter(newValue, scope);
-
- optionCtrl.hashKey = newHashKey;
- optionCtrl.value = newValue;
-
- selectCtrl.removeOption(oldHashKey, optionCtrl);
- selectCtrl.addOption(newHashKey, optionCtrl);
- }
-
- scope.$on('$destroy', function() {
- selectCtrl.removeOption(optionCtrl.hashKey, optionCtrl);
- });
-
- function configureAria() {
- var ariaAttrs = {
- 'role': 'option',
- 'aria-selected': 'false'
- };
-
- if (!element[0].hasAttribute('id')) {
- ariaAttrs.id = 'select_option_' + $mdUtil.nextUid();
- }
- element.attr(ariaAttrs);
- }
- }
-
- function OptionController($element) {
- this.selected = false;
- this.setSelected = function(isSelected) {
- if (isSelected && !this.selected) {
- $element.attr({
- 'selected': 'selected',
- 'aria-selected': 'true'
- });
- } else if (!isSelected && this.selected) {
- $element.removeAttr('selected');
- $element.attr('aria-selected', 'false');
- }
- this.selected = isSelected;
- };
- }
-
-}
-OptionDirective.$inject = ["$mdButtonInkRipple", "$mdUtil"];
-
-function OptgroupDirective() {
- return {
- restrict: 'E',
- compile: compile
- };
- function compile(el, attrs) {
- var labelElement = el.find('label');
- if (!labelElement.length) {
- labelElement = angular.element('<label>');
- el.prepend(labelElement);
- }
- if (attrs.label) labelElement.text(attrs.label);
- }
-}
-
-function SelectProvider($$interimElementProvider) {
- selectDefaultOptions.$inject = ["$mdSelect", "$mdConstant", "$$rAF", "$mdUtil", "$mdTheming", "$timeout", "$window"];
- return $$interimElementProvider('$mdSelect')
- .setDefaults({
- methods: ['target'],
- options: selectDefaultOptions
- });
-
- /* ngInject */
- function selectDefaultOptions($mdSelect, $mdConstant, $$rAF, $mdUtil, $mdTheming, $timeout, $window ) {
- return {
- parent: 'body',
- onShow: onShow,
- onRemove: onRemove,
- hasBackdrop: true,
- disableParentScroll: true,
- themable: true
- };
-
- function onShow(scope, element, opts) {
- if (!opts.target) {
- throw new Error('$mdSelect.show() expected a target element in options.target but got ' +
- '"' + opts.target + '"!');
- }
-
- angular.extend(opts, {
- isRemoved: false,
- target: angular.element(opts.target), //make sure it's not a naked dom node
- parent: angular.element(opts.parent),
- selectEl: element.find('md-select-menu'),
- contentEl: element.find('md-content'),
- backdrop: opts.hasBackdrop && angular.element('<md-backdrop class="md-select-backdrop md-click-catcher">')
- });
-
- opts.resizeFn = function() {
- $$rAF(function() {
- $$rAF(function() {
- animateSelect(scope, element, opts);
- });
- });
- };
-
- angular.element($window).on('resize', opts.resizeFn);
- angular.element($window).on('orientationchange', opts.resizeFn);
-
-
- configureAria();
-
- element.removeClass('md-leave');
-
- var optionNodes = opts.selectEl[0].getElementsByTagName('md-option');
-
- if (opts.loadingAsync && opts.loadingAsync.then) {
- opts.loadingAsync.then(function() {
- scope.$$loadingAsyncDone = true;
- // Give ourselves two frames for the progress loader to clear out.
- $$rAF(function() {
- $$rAF(function() {
- // Don't go forward if the select has been removed in this time...
- if (opts.isRemoved) return;
- animateSelect(scope, element, opts);
- });
- });
- });
- } else if (opts.loadingAsync) {
- scope.$$loadingAsyncDone = true;
- }
-
- if (opts.disableParentScroll && !$mdUtil.getClosest(opts.target, 'MD-DIALOG')) {
- opts.restoreScroll = $mdUtil.disableScrollAround(opts.target);
- } else {
- opts.disableParentScroll = false;
- }
- // Only activate click listeners after a short time to stop accidental double taps/clicks
- // from clicking the wrong item
- $timeout(activateInteraction, 75, false);
-
- if (opts.backdrop) {
- $mdTheming.inherit(opts.backdrop, opts.parent);
- opts.parent.append(opts.backdrop);
- }
- opts.parent.append(element);
-
- // Give the select a frame to 'initialize' in the DOM,
- // so we can read its height/width/position
- $$rAF(function() {
- $$rAF(function() {
- if (opts.isRemoved) return;
- animateSelect(scope, element, opts);
- });
- });
-
- return $mdUtil.transitionEndPromise(opts.selectEl, {timeout: 350});
-
- function configureAria() {
- opts.target.attr('aria-expanded', 'true');
- }
-
- function activateInteraction() {
- if (opts.isRemoved) return;
- var selectCtrl = opts.selectEl.controller('mdSelectMenu') || {};
- element.addClass('md-clickable');
-
- opts.backdrop && opts.backdrop.on('click', function(e) {
- e.preventDefault();
- e.stopPropagation();
- opts.restoreFocus = false;
- scope.$apply($mdSelect.cancel);
- });
-
- // Escape to close
- opts.selectEl.on('keydown', function(ev) {
- switch (ev.keyCode) {
- case $mdConstant.KEY_CODE.SPACE:
- case $mdConstant.KEY_CODE.ENTER:
- var option = $mdUtil.getClosest(ev.target, 'md-option');
- if (option) {
- opts.selectEl.triggerHandler({
- type: 'click',
- target: option
- });
- ev.preventDefault();
- }
- break;
- case $mdConstant.KEY_CODE.TAB:
- case $mdConstant.KEY_CODE.ESCAPE:
- ev.preventDefault();
- opts.restoreFocus = true;
- scope.$apply($mdSelect.cancel);
- }
- });
-
- // Cycling of options, and closing on enter
- opts.selectEl.on('keydown', function(ev) {
- switch (ev.keyCode) {
- case $mdConstant.KEY_CODE.UP_ARROW: return focusPrevOption();
- case $mdConstant.KEY_CODE.DOWN_ARROW: return focusNextOption();
- default:
- if (ev.keyCode >= 31 && ev.keyCode <= 90) {
- var optNode = opts.selectEl.controller('mdSelectMenu').optNodeForKeyboardSearch(ev);
- optNode && optNode.focus();
- }
- }
- });
-
-
- function focusOption(direction) {
- var optionsArray = nodesToArray(optionNodes);
- var index = optionsArray.indexOf(opts.focusedNode);
- if (index === -1) {
- // We lost the previously focused element, reset to first option
- index = 0;
- } else if (direction === 'next' && index < optionsArray.length - 1) {
- index++;
- } else if (direction === 'prev' && index > 0) {
- index--;
- }
- var newOption = opts.focusedNode = optionsArray[index];
- newOption && newOption.focus();
- }
- function focusNextOption() {
- focusOption('next');
- }
- function focusPrevOption() {
- focusOption('prev');
- }
-
- opts.selectEl.on('click', checkCloseMenu);
- opts.selectEl.on('keydown', function(e) {
- if (e.keyCode == 32 || e.keyCode == 13) {
- checkCloseMenu();
- }
- });
-
- function checkCloseMenu() {
- if (!selectCtrl.isMultiple) {
- opts.restoreFocus = true;
- scope.$evalAsync(function() {
- $mdSelect.hide(selectCtrl.ngModel.$viewValue);
- });
- }
- }
- }
-
- }
-
- function onRemove(scope, element, opts) {
- opts.isRemoved = true;
- element.addClass('md-leave')
- .removeClass('md-clickable');
- opts.target.attr('aria-expanded', 'false');
-
-
- angular.element($window).off('resize', opts.resizeFn);
- angular.element($window).off('orientationchange', opts.resizefn);
- opts.resizeFn = undefined;
-
- var mdSelect = opts.selectEl.controller('mdSelect');
- if (mdSelect) {
- mdSelect.setLabelText(opts.selectEl.controller('mdSelectMenu').selectedLabels());
- }
-
- return $mdUtil.transitionEndPromise(element, { timeout: 350 }).then(function() {
- element.removeClass('md-active');
- opts.backdrop && opts.backdrop.remove();
- if (element[0].parentNode === opts.parent[0]) {
- opts.parent[0].removeChild(element[0]); // use browser to avoid $destroy event
- }
- if (opts.disableParentScroll) {
- opts.restoreScroll();
- }
- if (opts.restoreFocus) opts.target.focus();
- });
- }
-
- function animateSelect(scope, element, opts) {
- var containerNode = element[0],
- targetNode = opts.target[0].firstElementChild.firstElementChild, // target the first span, functioning as the label
- parentNode = opts.parent[0],
- selectNode = opts.selectEl[0],
- contentNode = opts.contentEl[0],
- parentRect = parentNode.getBoundingClientRect(),
- targetRect = targetNode.getBoundingClientRect(),
- shouldOpenAroundTarget = false,
- bounds = {
- left: parentRect.left + SELECT_EDGE_MARGIN,
- top: SELECT_EDGE_MARGIN,
- bottom: parentRect.height - SELECT_EDGE_MARGIN,
- right: parentRect.width - SELECT_EDGE_MARGIN - ($mdUtil.floatingScrollbars() ? 16 : 0)
- },
- spaceAvailable = {
- top: targetRect.top - bounds.top,
- left: targetRect.left - bounds.left,
- right: bounds.right - (targetRect.left + targetRect.width),
- bottom: bounds.bottom - (targetRect.top + targetRect.height)
- },
- maxWidth = parentRect.width - SELECT_EDGE_MARGIN * 2,
- isScrollable = contentNode.scrollHeight > contentNode.offsetHeight,
- selectedNode = selectNode.querySelector('md-option[selected]'),
- optionNodes = selectNode.getElementsByTagName('md-option'),
- optgroupNodes = selectNode.getElementsByTagName('md-optgroup');
-
-
- var centeredNode;
- // If a selected node, center around that
- if (selectedNode) {
- centeredNode = selectedNode;
- // If there are option groups, center around the first option group
- } else if (optgroupNodes.length) {
- centeredNode = optgroupNodes[0];
- // Otherwise, center around the first optionNode
- } else if (optionNodes.length){
- centeredNode = optionNodes[0];
- // In case there are no options, center on whatever's in there... (eg progress indicator)
- } else {
- centeredNode = contentNode.firstElementChild || contentNode;
- }
-
- if (contentNode.offsetWidth > maxWidth) {
- contentNode.style['max-width'] = maxWidth + 'px';
- }
- if (shouldOpenAroundTarget) {
- contentNode.style['min-width'] = targetRect.width + 'px';
- }
-
- // Remove padding before we compute the position of the menu
- if (isScrollable) {
- selectNode.classList.add('md-overflow');
- }
-
- // Get the selectMenuRect *after* max-width is possibly set above
- var selectMenuRect = selectNode.getBoundingClientRect();
- var centeredRect = getOffsetRect(centeredNode);
-
- if (centeredNode) {
- var centeredStyle = $window.getComputedStyle(centeredNode);
- centeredRect.paddingLeft = parseInt(centeredStyle.paddingLeft, 10) || 0;
- centeredRect.paddingRight = parseInt(centeredStyle.paddingRight, 10) || 0;
- }
-
- var focusedNode = centeredNode;
- if ((focusedNode.tagName || '').toUpperCase() === 'MD-OPTGROUP') {
- focusedNode = optionNodes[0] || contentNode.firstElementChild || contentNode;
- }
-
- if (isScrollable) {
- var scrollBuffer = contentNode.offsetHeight / 2;
- contentNode.scrollTop = centeredRect.top + centeredRect.height / 2 - scrollBuffer;
-
- if (spaceAvailable.top < scrollBuffer) {
- contentNode.scrollTop = Math.min(
- centeredRect.top,
- contentNode.scrollTop + scrollBuffer - spaceAvailable.top
- );
- } else if (spaceAvailable.bottom < scrollBuffer) {
- contentNode.scrollTop = Math.max(
- centeredRect.top + centeredRect.height - selectMenuRect.height,
- contentNode.scrollTop - scrollBuffer + spaceAvailable.bottom
- );
- }
- }
-
- var left, top, transformOrigin;
- if (shouldOpenAroundTarget) {
- left = targetRect.left;
- top = targetRect.top + targetRect.height;
- transformOrigin = '50% 0';
- if (top + selectMenuRect.height > bounds.bottom) {
- top = targetRect.top - selectMenuRect.height;
- transformOrigin = '50% 100%';
- }
- } else {
- left = targetRect.left + centeredRect.left - centeredRect.paddingLeft;
- top = Math.floor(targetRect.top + targetRect.height / 2 - centeredRect.height / 2 -
- centeredRect.top + contentNode.scrollTop);
-
-
- transformOrigin = (centeredRect.left + targetRect.width / 2) + 'px ' +
- (centeredRect.top + centeredRect.height / 2 - contentNode.scrollTop) + 'px 0px';
-
- containerNode.style.minWidth = targetRect.width + centeredRect.paddingLeft +
- centeredRect.paddingRight + 'px';
- }
-
- // Keep left and top within the window
- var containerRect = containerNode.getBoundingClientRect();
- containerNode.style.left = clamp(bounds.left, left, bounds.right - containerRect.width) + 'px';
- containerNode.style.top = clamp(bounds.top, top, bounds.bottom - containerRect.height) + 'px';
- selectNode.style[$mdConstant.CSS.TRANSFORM_ORIGIN] = transformOrigin;
-
- selectNode.style[$mdConstant.CSS.TRANSFORM] = 'scale(' +
- Math.min(targetRect.width / selectMenuRect.width, 1.0) + ',' +
- Math.min(targetRect.height / selectMenuRect.height, 1.0) +
- ')';
-
-
- $$rAF(function() {
- element.addClass('md-active');
- selectNode.style[$mdConstant.CSS.TRANSFORM] = '';
- if (focusedNode) {
- opts.focusedNode = focusedNode;
- focusedNode.focus();
- }
- });
- }
-
- }
-
- function clamp(min, n, max) {
- return Math.max(min, Math.min(n, max));
- }
-
- function getOffsetRect(node) {
- return node ? {
- left: node.offsetLeft,
- top: node.offsetTop,
- width: node.offsetWidth,
- height: node.offsetHeight
- } : { left: 0, top: 0, width: 0, height: 0 };
- }
-}
-SelectProvider.$inject = ["$$interimElementProvider"];
-
-// Annoying method to copy nodes to an array, thanks to IE
-function nodesToArray(nodes) {
- var results = [];
- for (var i = 0; i < nodes.length; ++i) {
- results.push(nodes.item(i));
- }
- return results;
-}
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.min.css
deleted file mode 100644
index 21fe130d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-select-menu-container{position:fixed;left:0;top:0;z-index:99;opacity:0}.md-select-menu-container:not(.md-clickable){pointer-events:none}.md-select-menu-container md-progress-circular{display:table;margin:24px auto!important}.md-select-menu-container.md-active{opacity:1}.md-select-menu-container.md-active md-select-menu{transition:-webkit-transform all .4s cubic-bezier(.25,.8,.25,1);transition:transform all .4s cubic-bezier(.25,.8,.25,1);transition-duration:200ms}.md-select-menu-container.md-active md-select-menu>*{opacity:1;transition:all .3s cubic-bezier(.55,0,.55,.2);transition-duration:200ms;transition-delay:100ms}.md-select-menu-container.md-leave{opacity:0;transition:all .3s cubic-bezier(.55,0,.55,.2);transition-duration:250ms}md-input-container>md-select{margin:3px 0 0}md-select{padding:24px 2px 26px;display:-webkit-flex;display:-ms-flexbox;display:flex}md-select:focus{outline:0}md-select[disabled]:hover{cursor:default}md-select:not([disabled]):hover{cursor:pointer}md-select:not([disabled]).ng-invalid.ng-dirty .md-select-label,md-select:not([disabled]):focus .md-select-label{border-bottom:2px solid;padding-bottom:0}.md-select-label{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:2px 2px 1px;border-bottom:1px solid;position:relative;box-sizing:content-box;min-width:64px;min-height:26px}.md-select-label :first-child{-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:calc(100% - 2*8px);-webkit-transform:translate3d(0,2px,0);transform:translate3d(0,2px,0)}.md-select-label .md-select-icon{-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;text-align:end;width:24px;margin:0 4px;-webkit-transform:translate3d(0,1px,0);transform:translate3d(0,1px,0)}.md-select-label .md-select-icon:after{display:block;content:'\25BC';position:relative;top:2px;speak:none;-webkit-transform:scaleY(.6) scaleX(1);transform:scaleY(.6) scaleX(1)}md-select-menu{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);max-height:256px;min-height:48px;overflow-y:hidden;-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(1);transform:scale(1)}md-select-menu.md-reverse{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}md-select-menu:not(.md-overflow) md-content{padding-top:8px;padding-bottom:8px}html[dir=rtl] md-select-menu{-webkit-transform-origin:right top;transform-origin:right top}md-select-menu md-content{min-width:136px;min-height:48px;max-height:256px;overflow-y:auto}md-select-menu>*{opacity:0}md-option{cursor:pointer;position:relative;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:auto;padding:0 16px;height:48px}md-option:focus{outline:0}md-option .md-text{width:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px}md-optgroup{display:block}md-optgroup label{display:block;font-size:14px;text-transform:uppercase;padding:16px;font-weight:500}md-optgroup md-option{padding-left:32px;padding-right:32px}@media screen and (-ms-high-contrast:active){.md-select-backdrop{background-color:transparent}md-select-menu{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.min.js
deleted file mode 100644
index 536f69ac..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/select/select.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function l(e,l,o,i,r,a,d){function c(r,c){var s=r.find("md-select-label").remove();if(s.length){if(!s[0].firstElementChild){var u=t.element("<span>");u.append(s.contents()),s.append(u)}}else s=t.element("<md-select-label><span></span></md-select-label>");if(s.append('<span class="md-select-icon" aria-hidden="true"></span>'),s.addClass("md-select-label"),s[0].hasAttribute("id")||s.attr("id","select_label_"+l.nextUid()),r.find("md-content").length||r.append(t.element("<md-content>").append(r.contents())),c.mdOnOpen&&r.find("md-content").prepend(t.element("<md-progress-circular>").attr("md-mode","indeterminate").attr("ng-hide","$$loadingAsyncDone").wrap("<div>").parent()),c.name){var p=t.element('<select class="md-visually-hidden">');p.attr({name:"."+c.name,"ng-model":c.ngModel,"aria-hidden":"true",tabindex:"-1"});var f=r.find("md-option");t.forEach(f,function(e){var n=t.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?n.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&n.attr("value",e.getAttribute("value")),p.append(n)}),r.parent().append(p)}var m='<div class="md-select-menu-container"><md-select-menu '+(t.isDefined(c.multiple)?"multiple":"")+">"+r.html()+"</md-select-menu></div>";return r.empty().append(s),c.tabindex=c.tabindex||"0",function(r,c,s,u){function p(){var e=c.attr("placeholder");e||(e=c.find("md-select-label").text()),i.expect(c,"aria-label",e)}function f(){y&&(w=w||y.find("md-select-menu").controller("mdSelectMenu"),E.setLabelText(w.selectedLabels()))}function h(){y=t.element(m);var e=y.find("md-select-menu");e.data("$ngModelController",k),e.data("$mdSelectController",E),C=r.$new(),y=a(y)(C),w=y.find("md-select-menu").controller("mdSelectMenu")}function g(e){var n=[32,13,38,40];if(-1!=n.indexOf(e.keyCode))e.preventDefault(),v(e);else if(e.keyCode<=90&&e.keyCode>=31){e.preventDefault();var l=w.optNodeForKeyboardSearch(e);if(!l)return;var o=t.element(l).controller("mdOption");w.isMultiple||w.deselect(Object.keys(w.selected)[0]),w.select(o.hashKey,o.value),w.refreshViewValue(),k.$render()}}function v(){r.$evalAsync(function(){$=!0,e.show({scope:C,preserveScope:!0,skipCompile:!0,element:y,target:c[0],hasBackdrop:!0,loadingAsync:s.mdOnOpen?r.$eval(s.mdOnOpen)||!0:!1}).then(function(e){$=!1})})}var $,b,y,C,w,E=u[0],k=u[1],S=u[2],x=c.find("md-select-label"),M=0!==x.text().length;if(h(),o(c),s.name&&S){var O=c.parent()[0].querySelector('select[name=".'+s.name+'"]');S.$removeControl(t.element(O).controller())}var A=k.$render;k.$render=function(){A(),f()},E.setLabelText=function(e){if(!M){E.setIsPlaceholder(!e),e=e||s.placeholder||"";var t=M?x:x.children().eq(0);t.text(e)}},E.setIsPlaceholder=function(e){e?x.addClass("md-placeholder"):x.removeClass("md-placeholder")},r.$$postDigest(function(){p(),f()});var D;s.$observe("ngMultiple",function(e){D&&D();var t=d(e);D=r.$watch(function(){return t(r)},function(e,t){(e!==n||t!==n)&&(e?c.attr("multiple","multiple"):c.removeAttr("multiple"),y&&(w.setMultiple(e),A=k.$render,k.$render=function(){A(),f()},w.refreshViewValue(),k.$render()))})}),s.$observe("disabled",function(e){"string"==typeof e&&(e=!0),(b===n||b!==e)&&(b=e,e?(c.attr({tabindex:-1,"aria-disabled":"true"}),c.off("click",v),c.off("keydown",g)):(c.attr({tabindex:s.tabindex,"aria-disabled":"false"}),c.on("click",v),c.on("keydown",g)))}),s.disabled||s.ngDisabled||(c.attr({tabindex:s.tabindex,"aria-disabled":"false"}),c.on("click",v),c.on("keydown",g));var R={role:"combobox","aria-expanded":"false"};c[0].hasAttribute("id")||(R.id="select_"+l.nextUid()),c.attr(R),r.$on("$destroy",function(){$?e.cancel().then(function(){y.remove()}):y.remove()})}}return{restrict:"E",require:["mdSelect","ngModel","?^form"],compile:c,controller:function(){}}}function o(e,l,o){function i(e,n,i,r){function a(){n.attr({id:"select_menu_"+l.nextUid(),role:"listbox","aria-multiselectable":s.isMultiple?"true":"false"})}function d(e){(13==e.keyCode||32==e.keyCode)&&c(e)}function c(n){var o=l.getClosest(n.target,"md-option"),i=o&&t.element(o).data("$mdOptionController");if(o&&i){var r=s.hashGetter(i.value),a=t.isDefined(s.selected[r]);e.$apply(function(){s.isMultiple?a?s.deselect(r):s.select(r,i.value):a||(s.deselect(Object.keys(s.selected)[0]),s.select(r,i.value)),s.refreshViewValue()})}}var s=r[0],u=r[1];o(n),n.on("click",c),n.on("keypress",d),u&&s.init(u),a()}function r(l,o,i){function r(){var e=c.ngModel.$modelValue||c.ngModel.$viewValue;if(t.isArray(e)){var n=Object.keys(c.selected),l=e.map(c.hashGetter),o=n.filter(function(e){return-1===l.indexOf(e)});o.forEach(c.deselect),l.forEach(function(t,n){c.select(t,e[n])})}}function a(){var e=c.ngModel.$viewValue||c.ngModel.$modelValue;Object.keys(c.selected).forEach(c.deselect),c.select(c.hashGetter(e),e)}var c=this;c.isMultiple=t.isDefined(o.multiple),c.selected={},c.options={},l.$watch(function(){return c.options},function(){c.ngModel.$render()},!0);var u;c.setMultiple=function(e){function n(e,n){return t.isArray(e||n||[])}var i=c.ngModel;c.isMultiple=e,u&&u(),c.isMultiple?(i.$validators["md-multiple"]=n,i.$render=r,l.$watchCollection(o.ngModel,function(e){n(e)&&r(e)})):(delete i.$validators["md-multiple"],i.$render=a)};var p,f,m,h="",g=300;c.optNodeForKeyboardSearch=function(e){p&&clearTimeout(p),p=setTimeout(function(){p=n,h="",m=n,f=n},g),h+=String.fromCharCode(e.keyCode);var l=new RegExp("^"+h,"i");f||(f=i.find("md-option"),m=new Array(f.length),t.forEach(f,function(e,t){m[t]=e.textContent.trim()}));for(var o=0;o<m.length;++o)if(l.test(m[o]))return f[o]},c.init=function(n){if(c.ngModel=n,n.$options&&n.$options.trackBy){var o={},i=e(n.$options.trackBy);c.hashGetter=function(e,t){return o.$value=e,i(t||l,o)}}else c.hashGetter=function(e){return t.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++s)):e};c.setMultiple(c.isMultiple)},c.selectedLabels=function(){var e=d(i[0].querySelectorAll("md-option[selected]"));return e.length?e.map(function(e){return e.textContent}).join(", "):""},c.select=function(e,t){var n=c.options[e];n&&n.setSelected(!0),c.selected[e]=t},c.deselect=function(e){var t=c.options[e];t&&t.setSelected(!1),delete c.selected[e]},c.addOption=function(e,n){if(t.isDefined(c.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');c.options[e]=n,t.isDefined(c.selected[e])&&(c.select(e,n.value),c.refreshViewValue())},c.removeOption=function(e){delete c.options[e]},c.refreshViewValue=function(){var e,t=[];for(var n in c.selected)t.push((e=c.options[n])?e.value:c.selected[n]);c.ngModel.$setViewValue(c.isMultiple?t:t[0])}}return r.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu","?ngModel"],controller:r,link:{pre:i}}}function i(e,n){function l(e,n){return e.append(t.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),o}function o(l,o,i,r){function a(e,t){var n=s.hashGetter(t,l),o=s.hashGetter(e,l);c.hashKey=o,c.value=e,s.removeOption(n,c),s.addOption(o,c)}function d(){var e={role:"option","aria-selected":"false"};o[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid()),o.attr(e)}var c=r[0],s=r[1];t.isDefined(i.ngValue)?l.$watch(i.ngValue,a):t.isDefined(i.value)?a(i.value):l.$watch(function(){return o.text()},a),l.$$postDigest(function(){i.$observe("selected",function(e){t.isDefined(e)&&(e?(s.isMultiple||s.deselect(Object.keys(s.selected)[0]),s.select(c.hashKey,c.value)):s.deselect(c.hashKey),s.refreshViewValue(),s.ngModel.$render())})}),e.attach(l,o),d(),l.$on("$destroy",function(){s.removeOption(c.hashKey,c)})}function i(e){this.selected=!1,this.setSelected=function(t){t&&!this.selected?e.attr({selected:"selected","aria-selected":"true"}):!t&&this.selected&&(e.removeAttr("selected"),e.attr("aria-selected","false")),this.selected=t}}return i.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:i,compile:l}}function r(){function e(e,n){var l=e.find("label");l.length||(l=t.element("<label>"),e.prepend(l)),n.label&&l.text(n.label)}return{restrict:"E",compile:e}}function a(e){function l(e,l,r,a,s,u,p){function f(n,o,i){function c(){i.target.attr("aria-expanded","true")}function f(){function t(e){var t=d(m),n=t.indexOf(i.focusedNode);-1===n?n=0:"next"===e&&n<t.length-1?n++:"prev"===e&&n>0&&n--;var l=i.focusedNode=t[n];l&&l.focus()}function r(){t("next")}function c(){t("prev")}function s(){u.isMultiple||(i.restoreFocus=!0,n.$evalAsync(function(){e.hide(u.ngModel.$viewValue)}))}if(!i.isRemoved){var u=i.selectEl.controller("mdSelectMenu")||{};o.addClass("md-clickable"),i.backdrop&&i.backdrop.on("click",function(t){t.preventDefault(),t.stopPropagation(),i.restoreFocus=!1,n.$apply(e.cancel)}),i.selectEl.on("keydown",function(t){switch(t.keyCode){case l.KEY_CODE.SPACE:case l.KEY_CODE.ENTER:var o=a.getClosest(t.target,"md-option");o&&(i.selectEl.triggerHandler({type:"click",target:o}),t.preventDefault());break;case l.KEY_CODE.TAB:case l.KEY_CODE.ESCAPE:t.preventDefault(),i.restoreFocus=!0,n.$apply(e.cancel)}}),i.selectEl.on("keydown",function(e){switch(e.keyCode){case l.KEY_CODE.UP_ARROW:return c();case l.KEY_CODE.DOWN_ARROW:return r();default:if(e.keyCode>=31&&e.keyCode<=90){var t=i.selectEl.controller("mdSelectMenu").optNodeForKeyboardSearch(e);t&&t.focus()}}}),i.selectEl.on("click",s),i.selectEl.on("keydown",function(e){(32==e.keyCode||13==e.keyCode)&&s()})}}if(!i.target)throw new Error('$mdSelect.show() expected a target element in options.target but got "'+i.target+'"!');t.extend(i,{isRemoved:!1,target:t.element(i.target),parent:t.element(i.parent),selectEl:o.find("md-select-menu"),contentEl:o.find("md-content"),backdrop:i.hasBackdrop&&t.element('<md-backdrop class="md-select-backdrop md-click-catcher">')}),i.resizeFn=function(){r(function(){r(function(){h(n,o,i)})})},t.element(p).on("resize",i.resizeFn),t.element(p).on("orientationchange",i.resizeFn),c(),o.removeClass("md-leave");var m=i.selectEl[0].getElementsByTagName("md-option");return i.loadingAsync&&i.loadingAsync.then?i.loadingAsync.then(function(){n.$$loadingAsyncDone=!0,r(function(){r(function(){i.isRemoved||h(n,o,i)})})}):i.loadingAsync&&(n.$$loadingAsyncDone=!0),i.disableParentScroll&&!a.getClosest(i.target,"MD-DIALOG")?i.restoreScroll=a.disableScrollAround(i.target):i.disableParentScroll=!1,u(f,75,!1),i.backdrop&&(s.inherit(i.backdrop,i.parent),i.parent.append(i.backdrop)),i.parent.append(o),r(function(){r(function(){i.isRemoved||h(n,o,i)})}),a.transitionEndPromise(i.selectEl,{timeout:350})}function m(e,l,o){o.isRemoved=!0,l.addClass("md-leave").removeClass("md-clickable"),o.target.attr("aria-expanded","false"),t.element(p).off("resize",o.resizeFn),t.element(p).off("orientationchange",o.resizefn),o.resizeFn=n;var i=o.selectEl.controller("mdSelect");return i&&i.setLabelText(o.selectEl.controller("mdSelectMenu").selectedLabels()),a.transitionEndPromise(l,{timeout:350}).then(function(){l.removeClass("md-active"),o.backdrop&&o.backdrop.remove(),l[0].parentNode===o.parent[0]&&o.parent[0].removeChild(l[0]),o.disableParentScroll&&o.restoreScroll(),o.restoreFocus&&o.target.focus()})}function h(e,t,n){var d,s=t[0],u=n.target[0].firstElementChild.firstElementChild,f=n.parent[0],m=n.selectEl[0],h=n.contentEl[0],g=f.getBoundingClientRect(),v=u.getBoundingClientRect(),$=!1,b={left:g.left+c,top:c,bottom:g.height-c,right:g.width-c-(a.floatingScrollbars()?16:0)},y={top:v.top-b.top,left:v.left-b.left,right:b.right-(v.left+v.width),bottom:b.bottom-(v.top+v.height)},C=g.width-2*c,w=h.scrollHeight>h.offsetHeight,E=m.querySelector("md-option[selected]"),k=m.getElementsByTagName("md-option"),S=m.getElementsByTagName("md-optgroup");d=E?E:S.length?S[0]:k.length?k[0]:h.firstElementChild||h,h.offsetWidth>C&&(h.style["max-width"]=C+"px"),$&&(h.style["min-width"]=v.width+"px"),w&&m.classList.add("md-overflow");var x=m.getBoundingClientRect(),M=i(d);if(d){var O=p.getComputedStyle(d);M.paddingLeft=parseInt(O.paddingLeft,10)||0,M.paddingRight=parseInt(O.paddingRight,10)||0}var A=d;if("MD-OPTGROUP"===(A.tagName||"").toUpperCase()&&(A=k[0]||h.firstElementChild||h),w){var D=h.offsetHeight/2;h.scrollTop=M.top+M.height/2-D,y.top<D?h.scrollTop=Math.min(M.top,h.scrollTop+D-y.top):y.bottom<D&&(h.scrollTop=Math.max(M.top+M.height-x.height,h.scrollTop-D+y.bottom))}var R,T,V;$?(R=v.left,T=v.top+v.height,V="50% 0",T+x.height>b.bottom&&(T=v.top-x.height,V="50% 100%")):(R=v.left+M.left-M.paddingLeft,T=Math.floor(v.top+v.height/2-M.height/2-M.top+h.scrollTop),V=M.left+v.width/2+"px "+(M.top+M.height/2-h.scrollTop)+"px 0px",s.style.minWidth=v.width+M.paddingLeft+M.paddingRight+"px");var N=s.getBoundingClientRect();s.style.left=o(b.left,R,b.right-N.width)+"px",s.style.top=o(b.top,T,b.bottom-N.height)+"px",m.style[l.CSS.TRANSFORM_ORIGIN]=V,m.style[l.CSS.TRANSFORM]="scale("+Math.min(v.width/x.width,1)+","+Math.min(v.height/x.height,1)+")",r(function(){t.addClass("md-active"),m.style[l.CSS.TRANSFORM]="",A&&(n.focusedNode=A,A.focus())})}return{parent:"body",onShow:f,onRemove:m,hasBackdrop:!0,disableParentScroll:!0,themable:!0}}function o(e,t,n){return Math.max(e,Math.min(t,n))}function i(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}return l.$inject=["$mdSelect","$mdConstant","$$rAF","$mdUtil","$mdTheming","$timeout","$window"],e("$mdSelect").setDefaults({methods:["target"],options:l})}function d(e){for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t}var c=8,s=0;t.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",l).directive("mdSelectMenu",o).directive("mdOption",i).directive("mdOptgroup",r).provider("$mdSelect",a),l.$inject=["$mdSelect","$mdUtil","$mdTheming","$mdAria","$interpolate","$compile","$parse"],o.$inject=["$parse","$mdUtil","$mdTheming"],i.$inject=["$mdButtonInkRipple","$mdUtil"],a.$inject=["$$interimElementProvider"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/bower.json
deleted file mode 100644
index 9bf7ad1b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-sidenav",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-backdrop": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.css
deleted file mode 100644
index b625e2ab..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-sidenav.md-THEME_NAME-theme {
- background-color: '{{background-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.min.css
deleted file mode 100644
index aa10df71..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-sidenav.md-THEME_NAME-theme{background-color:'{{background-color}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.css
deleted file mode 100644
index 402d88f1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.css
+++ /dev/null
@@ -1,99 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-sidenav {
- box-sizing: border-box;
- position: absolute;
- width: 304px;
- min-width: 304px;
- max-width: 304px;
- bottom: 0;
- z-index: 60;
- background-color: white;
- overflow: auto;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- md-sidenav *, md-sidenav *:before, md-sidenav *:after {
- box-sizing: border-box; }
- md-sidenav ul {
- list-style: none; }
- md-sidenav.md-closed {
- display: none; }
- md-sidenav.md-closed-add, md-sidenav.md-closed-remove {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- /* this is required as of 1.3x to properly
- apply all styling in a show/hide animation */
- transition: 0s all; }
- md-sidenav.md-closed-add.md-closed-add-active, md-sidenav.md-closed-remove.md-closed-remove-active {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-sidenav.md-locked-open-add, md-sidenav.md-locked-open-remove {
- position: static;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-sidenav.md-locked-open {
- width: 304px;
- min-width: 304px;
- max-width: 304px; }
- md-sidenav.md-locked-open, md-sidenav.md-locked-open.md-closed, md-sidenav.md-locked-open.md-closed.md-sidenav-left, md-sidenav.md-locked-open.md-closed, md-sidenav.md-locked-open.md-closed.md-sidenav-right, md-sidenav.md-locked-open-remove.md-closed {
- position: static;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-sidenav.md-locked-open-remove-active {
- transition: width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2), min-width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- width: 0;
- min-width: 0; }
- md-sidenav.md-closed.md-locked-open-add {
- width: 0;
- min-width: 0;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
- md-sidenav.md-closed.md-locked-open-add-active {
- transition: width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2), min-width 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- width: 304px;
- min-width: 304px;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
-
-.md-sidenav-backdrop.md-locked-open {
- display: none; }
-
-.md-sidenav-left, md-sidenav {
- left: 0;
- top: 0;
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
- .md-sidenav-left.md-closed, md-sidenav.md-closed {
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0); }
-
-.md-sidenav-right {
- left: 100%;
- top: 0;
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0); }
- .md-sidenav-right.md-closed {
- -webkit-transform: translate3d(0%, 0, 0);
- transform: translate3d(0%, 0, 0); }
-
-@media (max-width: 360px) {
- md-sidenav {
- width: 85%; } }
-
-@media screen and (-ms-high-contrast: active) {
- .md-sidenav-left, md-sidenav {
- border-right: 1px solid #fff; }
- .md-sidenav-right {
- border-left: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.js
deleted file mode 100644
index 092dda51..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.js
+++ /dev/null
@@ -1,424 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.sidenav
- *
- * @description
- * A Sidenav QP component.
- */
-angular.module('material.components.sidenav', [
- 'material.core',
- 'material.components.backdrop'
- ])
- .factory('$mdSidenav', SidenavService )
- .directive('mdSidenav', SidenavDirective)
- .directive('mdSidenavFocus', SidenavFocusDirective)
- .controller('$mdSidenavController', SidenavController);
-
-
-/**
- * @private
- * @ngdoc service
- * @name $mdSidenav
- * @module material.components.sidenav
- *
- * @description
- * `$mdSidenav` makes it easy to interact with multiple sidenavs
- * in an app.
- *
- * @usage
- * <hljs lang="js">
- * // Async lookup for sidenav instance; will resolve when the instance is available
- * $mdSidenav(componentId).then(function(instance) {
- * $log.debug( componentId + "is now ready" );
- * });
- * // Async toggle the given sidenav;
- * // when instance is known ready and lazy lookup is not needed.
- * $mdSidenav(componentId)
- * .toggle()
- * .then(function(){
- * $log.debug('toggled');
- * });
- * // Async open the given sidenav
- * $mdSidenav(componentId)
- * .open()
- * .then(function(){
- * $log.debug('opened');
- * });
- * // Async close the given sidenav
- * $mdSidenav(componentId)
- * .close()
- * .then(function(){
- * $log.debug('closed');
- * });
- * // Sync check to see if the specified sidenav is set to be open
- * $mdSidenav(componentId).isOpen();
- * // Sync check to whether given sidenav is locked open
- * // If this is true, the sidenav will be open regardless of close()
- * $mdSidenav(componentId).isLockedOpen();
- * </hljs>
- */
-function SidenavService($mdComponentRegistry, $q) {
- return function(handle) {
-
- // Lookup the controller instance for the specified sidNav instance
- var self;
- var errorMsg = "SideNav '" + handle + "' is not available!";
- var instance = $mdComponentRegistry.get(handle);
-
- if(!instance) {
- $mdComponentRegistry.notFoundError(handle);
- }
-
- return self = {
- // -----------------
- // Sync methods
- // -----------------
- isOpen: function() {
- return instance && instance.isOpen();
- },
- isLockedOpen: function() {
- return instance && instance.isLockedOpen();
- },
- // -----------------
- // Async methods
- // -----------------
- toggle: function() {
- return instance ? instance.toggle() : $q.reject(errorMsg);
- },
- open: function() {
- return instance ? instance.open() : $q.reject(errorMsg);
- },
- close: function() {
- return instance ? instance.close() : $q.reject(errorMsg);
- },
- then : function( callbackFn ) {
- var promise = instance ? $q.when(instance) : waitForInstance();
- return promise.then( callbackFn || angular.noop );
- }
- };
-
- /**
- * Deferred lookup of component instance using $component registry
- */
- function waitForInstance() {
- return $mdComponentRegistry
- .when(handle)
- .then(function( it ){
- instance = it;
- return it;
- });
- }
- };
-}
-SidenavService.$inject = ["$mdComponentRegistry", "$q"];
-/**
- * @ngdoc directive
- * @name mdSidenavFocus
- * @module material.components.sidenav
- *
- * @restrict A
- *
- * @description
- * `$mdSidenavFocus` provides a way to specify the focused element when a sidenav opens.
- * This is completely optional, as the sidenav itself is focused by default.
- *
- * @usage
- * <hljs lang="html">
- * <md-sidenav>
- * <form>
- * <md-input-container>
- * <label for="testInput">Label</label>
- * <input id="testInput" type="text" md-sidenav-focus>
- * </md-input-container>
- * </form>
- * </md-sidenav>
- * </hljs>
- **/
-function SidenavFocusDirective() {
- return {
- restrict: 'A',
- require: '^mdSidenav',
- link: function(scope, element, attr, sidenavCtrl) {
- sidenavCtrl.focusElement(element);
- }
- };
-}
-/**
- * @ngdoc directive
- * @name mdSidenav
- * @module material.components.sidenav
- * @restrict E
- *
- * @description
- *
- * A Sidenav component that can be opened and closed programatically.
- *
- * By default, upon opening it will slide out on top of the main content area.
- *
- * For keyboard and screen reader accessibility, focus is sent to the sidenav wrapper by default.
- * It can be overridden with the `md-sidenav-focus` directive on the child element you want focused.
- *
- * @usage
- * <hljs lang="html">
- * <div layout="row" ng-controller="MyController">
- * <md-sidenav md-component-id="left" class="md-sidenav-left">
- * Left Nav!
- * </md-sidenav>
- *
- * <md-content>
- * Center Content
- * <md-button ng-click="openLeftMenu()">
- * Open Left Menu
- * </md-button>
- * </md-content>
- *
- * <md-sidenav md-component-id="right"
- * md-is-locked-open="$mdMedia('min-width: 333px')"
- * class="md-sidenav-right">
- * <form>
- * <md-input-container>
- * <label for="testInput">Test input</label>
- * <input id="testInput" type="text"
- * ng-model="data" md-sidenav-focus>
- * </md-input-container>
- * </form>
- * </md-sidenav>
- * </div>
- * </hljs>
- *
- * <hljs lang="js">
- * var app = angular.module('myApp', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdSidenav) {
- * $scope.openLeftMenu = function() {
- * $mdSidenav('left').toggle();
- * };
- * });
- * </hljs>
- *
- * @param {expression=} md-is-open A model bound to whether the sidenav is opened.
- * @param {string=} md-component-id componentId to use with $mdSidenav service.
- * @param {expression=} md-is-locked-open When this expression evalutes to true,
- * the sidenav 'locks open': it falls into the content's flow instead
- * of appearing over it. This overrides the `is-open` attribute.
- *
- * The $mdMedia() service is exposed to the is-locked-open attribute, which
- * can be given a media query or one of the `sm`, `gt-sm`, `md`, `gt-md`, `lg` or `gt-lg` presets.
- * Examples:
- *
- * - `<md-sidenav md-is-locked-open="shouldLockOpen"></md-sidenav>`
- * - `<md-sidenav md-is-locked-open="$mdMedia('min-width: 1000px')"></md-sidenav>`
- * - `<md-sidenav md-is-locked-open="$mdMedia('sm')"></md-sidenav>` (locks open on small screens)
- */
-function SidenavDirective($timeout, $animate, $parse, $log, $mdMedia, $mdConstant, $compile, $mdTheming, $q, $document) {
- return {
- restrict: 'E',
- scope: {
- isOpen: '=?mdIsOpen'
- },
- controller: '$mdSidenavController',
- compile: function(element) {
- element.addClass('md-closed');
- element.attr('tabIndex', '-1');
- return postLink;
- }
- };
-
- /**
- * Directive Post Link function...
- */
- function postLink(scope, element, attr, sidenavCtrl) {
- var lastParentOverFlow;
- var triggeringElement = null;
- var promise = $q.when(true);
-
- var isLockedOpenParsed = $parse(attr.mdIsLockedOpen);
- var isLocked = function() {
- return isLockedOpenParsed(scope.$parent, {
- $media: function(arg) {
- $log.warn("$media is deprecated for is-locked-open. Use $mdMedia instead.");
- return $mdMedia(arg);
- },
- $mdMedia: $mdMedia
- });
- };
- var backdrop = $compile(
- '<md-backdrop class="md-sidenav-backdrop md-opaque ng-enter">'
- )(scope);
-
- element.on('$destroy', sidenavCtrl.destroy);
- $mdTheming.inherit(backdrop, element);
-
- scope.$watch(isLocked, updateIsLocked);
- scope.$watch('isOpen', updateIsOpen);
-
-
- // Publish special accessor for the Controller instance
- sidenavCtrl.$toggleOpen = toggleOpen;
- sidenavCtrl.focusElement( sidenavCtrl.focusElement() || element );
-
- /**
- * Toggle the DOM classes to indicate `locked`
- * @param isLocked
- */
- function updateIsLocked(isLocked, oldValue) {
- scope.isLockedOpen = isLocked;
- if (isLocked === oldValue) {
- element.toggleClass('md-locked-open', !!isLocked);
- } else {
- $animate[isLocked ? 'addClass' : 'removeClass'](element, 'md-locked-open');
- }
- backdrop.toggleClass('md-locked-open', !!isLocked);
- }
-
- /**
- * Toggle the SideNav view and attach/detach listeners
- * @param isOpen
- */
- function updateIsOpen(isOpen) {
- var parent = element.parent();
-
- parent[isOpen ? 'on' : 'off']('keydown', onKeyDown);
- backdrop[isOpen ? 'on' : 'off']('click', close);
-
- if ( isOpen ) {
- // Capture upon opening..
- triggeringElement = $document[0].activeElement;
- }
- var focusEl = sidenavCtrl.focusElement();
-
- disableParentScroll(isOpen);
-
- return promise = $q.all([
- isOpen ? $animate.enter(backdrop, parent) : $animate.leave(backdrop),
- $animate[isOpen ? 'removeClass' : 'addClass'](element, 'md-closed')
- ])
- .then(function() {
- // Perform focus when animations are ALL done...
- if (scope.isOpen) {
- focusEl && focusEl.focus();
- }
- });
- }
-
- /**
- * Prevent parent scrolling (when the SideNav is open)
- */
- function disableParentScroll(disabled) {
- var parent = element.parent();
- if ( disabled ) {
- lastParentOverFlow = parent.css('overflow');
- parent.css('overflow', 'hidden');
- } else if (angular.isDefined(lastParentOverFlow)) {
- parent.css('overflow', lastParentOverFlow);
- lastParentOverFlow = undefined;
- }
- }
-
- /**
- * Toggle the sideNav view and publish a promise to be resolved when
- * the view animation finishes.
- *
- * @param isOpen
- * @returns {*}
- */
- function toggleOpen( isOpen ) {
- if (scope.isOpen == isOpen ) {
-
- return $q.when(true);
-
- } else {
- var deferred = $q.defer();
-
- // Toggle value to force an async `updateIsOpen()` to run
- scope.isOpen = isOpen;
-
- $timeout(function() {
-
- // When the current `updateIsOpen()` animation finishes
- promise.then(function(result) {
-
- if ( !scope.isOpen ) {
- // reset focus to originating element (if available) upon close
- triggeringElement && triggeringElement.focus();
- triggeringElement = null;
- }
-
- deferred.resolve(result);
- });
-
- },0,false);
-
- return deferred.promise;
- }
- }
-
- /**
- * Auto-close sideNav when the `escape` key is pressed.
- * @param evt
- */
- function onKeyDown(ev) {
- var isEscape = (ev.keyCode === $mdConstant.KEY_CODE.ESCAPE);
- return isEscape ? close(ev) : $q.when(true);
- }
-
- /**
- * With backdrop `clicks` or `escape` key-press, immediately
- * apply the CSS close transition... Then notify the controller
- * to close() and perform its own actions.
- */
- function close(ev) {
- ev.preventDefault();
- ev.stopPropagation();
-
- return sidenavCtrl.close();
- }
-
- }
-}
-SidenavDirective.$inject = ["$timeout", "$animate", "$parse", "$log", "$mdMedia", "$mdConstant", "$compile", "$mdTheming", "$q", "$document"];
-
-/*
- * @private
- * @ngdoc controller
- * @name SidenavController
- * @module material.components.sidenav
- *
- */
-function SidenavController($scope, $element, $attrs, $mdComponentRegistry, $q) {
-
- var self = this,
- focusElement;
-
- // Use Default internal method until overridden by directive postLink
-
- // Synchronous getters
- self.isOpen = function() { return !!$scope.isOpen; };
- self.isLockedOpen = function() { return !!$scope.isLockedOpen; };
-
- // Async actions
- self.open = function() { return self.$toggleOpen( true ); };
- self.close = function() { return self.$toggleOpen( false ); };
- self.toggle = function() { return self.$toggleOpen( !$scope.isOpen ); };
- self.focusElement = function(el) {
- if ( angular.isDefined(el) ) {
- focusElement = el;
- }
- return focusElement;
- };
-
- self.$toggleOpen = function() { return $q.when($scope.isOpen); };
-
- self.destroy = $mdComponentRegistry.register(self, $attrs.mdComponentId);
-}
-SidenavController.$inject = ["$scope", "$element", "$attrs", "$mdComponentRegistry", "$q"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.min.css
deleted file mode 100644
index 8ef1054e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-sidenav{box-sizing:border-box;position:absolute;width:304px;min-width:304px;max-width:304px;bottom:0;z-index:60;background-color:#fff;overflow:auto;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}md-sidenav *,md-sidenav :after,md-sidenav :before{box-sizing:border-box}md-sidenav ul{list-style:none}md-sidenav.md-closed{display:none}md-sidenav.md-closed-add,md-sidenav.md-closed-remove{display:-webkit-flex;display:-ms-flexbox;display:flex;transition:0s all}md-sidenav.md-closed-add.md-closed-add-active,md-sidenav.md-closed-remove.md-closed-remove-active{transition:all .4s cubic-bezier(.25,.8,.25,1)}md-sidenav.md-locked-open-add,md-sidenav.md-locked-open-remove{position:static;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-sidenav.md-locked-open{width:304px;min-width:304px;max-width:304px}md-sidenav.md-locked-open,md-sidenav.md-locked-open-remove.md-closed,md-sidenav.md-locked-open.md-closed,md-sidenav.md-locked-open.md-closed.md-sidenav-left,md-sidenav.md-locked-open.md-closed.md-sidenav-right{position:static;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-sidenav.md-locked-open-remove-active{transition:width .3s cubic-bezier(.55,0,.55,.2),min-width .3s cubic-bezier(.55,0,.55,.2);width:0;min-width:0}md-sidenav.md-closed.md-locked-open-add{width:0;min-width:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-sidenav.md-closed.md-locked-open-add-active{transition:width .3s cubic-bezier(.55,0,.55,.2),min-width .3s cubic-bezier(.55,0,.55,.2);width:304px;min-width:304px;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.md-sidenav-backdrop.md-locked-open{display:none}.md-sidenav-left,md-sidenav{left:0;top:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.md-sidenav-left.md-closed,md-sidenav.md-closed{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.md-sidenav-right{left:100%;top:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.md-sidenav-right.md-closed{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@media (max-width:360px){md-sidenav{width:85%}}@media screen and (-ms-high-contrast:active){.md-sidenav-left,md-sidenav{border-right:1px solid #fff}.md-sidenav-right{border-left:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.min.js
deleted file mode 100644
index 8f58a309..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sidenav/sidenav.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,n,t){"use strict";function o(e,t){return function(o){function r(){return e.when(o).then(function(e){return s=e,e})}var i,c="SideNav '"+o+"' is not available!",s=e.get(o);return s||e.notFoundError(o),i={isOpen:function(){return s&&s.isOpen()},isLockedOpen:function(){return s&&s.isLockedOpen()},toggle:function(){return s?s.toggle():t.reject(c)},open:function(){return s?s.open():t.reject(c)},close:function(){return s?s.close():t.reject(c)},then:function(e){var o=s?t.when(s):r();return o.then(e||n.noop)}}}}function r(){return{restrict:"A",require:"^mdSidenav",link:function(e,n,t,o){o.focusElement(n)}}}function i(e,o,r,i,c,s,d,u,a,l){function f(f,p,m,$){function v(e,n){f.isLockedOpen=e,e===n?p.toggleClass("md-locked-open",!!e):o[e?"addClass":"removeClass"](p,"md-locked-open"),L.toggleClass("md-locked-open",!!e)}function g(e){var n=p.parent();n[e?"on":"off"]("keydown",k),L[e?"on":"off"]("click",w),e&&(E=l[0].activeElement);var t=$.focusElement();return O(e),y=a.all([e?o.enter(L,n):o.leave(L),o[e?"removeClass":"addClass"](p,"md-closed")]).then(function(){f.isOpen&&t&&t.focus()})}function O(e){var o=p.parent();e?(C=o.css("overflow"),o.css("overflow","hidden")):n.isDefined(C)&&(o.css("overflow",C),C=t)}function h(n){if(f.isOpen==n)return a.when(!0);var t=a.defer();return f.isOpen=n,e(function(){y.then(function(e){f.isOpen||(E&&E.focus(),E=null),t.resolve(e)})},0,!1),t.promise}function k(e){var n=e.keyCode===s.KEY_CODE.ESCAPE;return n?w(e):a.when(!0)}function w(e){return e.preventDefault(),e.stopPropagation(),$.close()}var C,E=null,y=a.when(!0),S=r(m.mdIsLockedOpen),j=function(){return S(f.$parent,{$media:function(e){return i.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),c(e)},$mdMedia:c})},L=d('<md-backdrop class="md-sidenav-backdrop md-opaque ng-enter">')(f);p.on("$destroy",$.destroy),u.inherit(L,p),f.$watch(j,v),f.$watch("isOpen",g),$.$toggleOpen=h,$.focusElement($.focusElement()||p)}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed"),e.attr("tabIndex","-1"),f}}}function c(e,t,o,r,i){var c,s=this;s.isOpen=function(){return!!e.isOpen},s.isLockedOpen=function(){return!!e.isLockedOpen},s.open=function(){return s.$toggleOpen(!0)},s.close=function(){return s.$toggleOpen(!1)},s.toggle=function(){return s.$toggleOpen(!e.isOpen)},s.focusElement=function(e){return n.isDefined(e)&&(c=e),c},s.$toggleOpen=function(){return i.when(e.isOpen)},s.destroy=r.register(s,o.mdComponentId)}n.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",o).directive("mdSidenav",i).directive("mdSidenavFocus",r).controller("$mdSidenavController",c),o.$inject=["$mdComponentRegistry","$q"],i.$inject=["$timeout","$animate","$parse","$log","$mdMedia","$mdConstant","$compile","$mdTheming","$q","$document"],c.$inject=["$scope","$element","$attrs","$mdComponentRegistry","$q"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/bower.json
deleted file mode 100644
index d9e3a6ca..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-slider",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider-default-theme.css
deleted file mode 100644
index 72a7c06a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider-default-theme.css
+++ /dev/null
@@ -1,56 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-slider.md-THEME_NAME-theme .md-track {
- background-color: '{{foreground-3}}'; }
-md-slider.md-THEME_NAME-theme .md-track-ticks {
- background-color: '{{foreground-4}}'; }
-md-slider.md-THEME_NAME-theme .md-focus-thumb {
- background-color: '{{foreground-2}}'; }
-md-slider.md-THEME_NAME-theme .md-focus-ring {
- border-color: '{{foreground-4}}'; }
-md-slider.md-THEME_NAME-theme .md-disabled-thumb {
- border-color: '{{background-color}}'; }
-md-slider.md-THEME_NAME-theme.md-min .md-thumb:after {
- background-color: '{{background-color}}'; }
-md-slider.md-THEME_NAME-theme .md-track.md-track-fill {
- background-color: '{{accent-color}}'; }
-md-slider.md-THEME_NAME-theme .md-thumb:after {
- border-color: '{{accent-color}}';
- background-color: '{{accent-color}}'; }
-md-slider.md-THEME_NAME-theme .md-sign {
- background-color: '{{accent-color}}'; }
- md-slider.md-THEME_NAME-theme .md-sign:after {
- border-top-color: '{{accent-color}}'; }
-md-slider.md-THEME_NAME-theme .md-thumb-text {
- color: '{{accent-contrast}}'; }
-md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill {
- background-color: '{{warn-color}}'; }
-md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after {
- border-color: '{{warn-color}}';
- background-color: '{{warn-color}}'; }
-md-slider.md-THEME_NAME-theme.md-warn .md-sign {
- background-color: '{{warn-color}}'; }
- md-slider.md-THEME_NAME-theme.md-warn .md-sign:after {
- border-top-color: '{{warn-color}}'; }
-md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text {
- color: '{{warn-contrast}}'; }
-md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill {
- background-color: '{{primary-color}}'; }
-md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after {
- border-color: '{{primary-color}}';
- background-color: '{{primary-color}}'; }
-md-slider.md-THEME_NAME-theme.md-primary .md-sign {
- background-color: '{{primary-color}}'; }
- md-slider.md-THEME_NAME-theme.md-primary .md-sign:after {
- border-top-color: '{{primary-color}}'; }
-md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text {
- color: '{{primary-contrast}}'; }
-md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after {
- border-color: '{{foreground-3}}'; }
-md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after {
- background-color: '{{foreground-3}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider-default-theme.min.css
deleted file mode 100644
index 6145b67d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-slider.md-THEME_NAME-theme .md-track{background-color:'{{foreground-3}}'}md-slider.md-THEME_NAME-theme .md-track-ticks{background-color:'{{foreground-4}}'}md-slider.md-THEME_NAME-theme .md-focus-thumb{background-color:'{{foreground-2}}'}md-slider.md-THEME_NAME-theme .md-focus-ring{border-color:'{{foreground-4}}'}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:'{{background-color}}'}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:'{{background-color}}'}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:'{{accent-color}}'}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:'{{accent-color}}';background-color:'{{accent-color}}'}md-slider.md-THEME_NAME-theme .md-sign{background-color:'{{accent-color}}'}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:'{{accent-color}}'}md-slider.md-THEME_NAME-theme .md-thumb-text{color:'{{accent-contrast}}'}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:'{{warn-color}}'}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:'{{warn-color}}';background-color:'{{warn-color}}'}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:'{{warn-color}}'}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:'{{warn-color}}'}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:'{{warn-contrast}}'}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:'{{primary-color}}'}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:'{{primary-color}}';background-color:'{{primary-color}}'}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:'{{primary-color}}'}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:'{{primary-color}}'}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:'{{primary-contrast}}'}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:'{{foreground-3}}'}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after{background-color:'{{foreground-3}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.css
deleted file mode 100644
index 8912e165..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.css
+++ /dev/null
@@ -1,220 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes sliderFocusThumb {
- 0% {
- opacity: 0;
- -webkit-transform: scale(0);
- transform: scale(0); }
-
- 50% {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-@keyframes sliderFocusThumb {
- 0% {
- opacity: 0;
- -webkit-transform: scale(0);
- transform: scale(0); }
-
- 50% {
- -webkit-transform: scale(1);
- transform: scale(1);
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-
-md-slider {
- height: 48px;
- position: relative;
- display: block;
- margin-left: 4px;
- margin-right: 4px;
- padding: 0;
- /**
- * Track
- */
- /**
- * Slider thumb
- */
- /* The sign that's focused in discrete mode */
- /**
- * The border/background that comes in when focused in non-discrete mode
- */
- /* Don't animate left/right while panning */ }
- md-slider *, md-slider *:after {
- box-sizing: border-box; }
- md-slider .md-slider-wrapper {
- position: relative; }
- md-slider .md-track-container {
- width: 100%;
- position: absolute;
- top: 23px;
- height: 2px; }
- md-slider .md-track {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%; }
- md-slider .md-track-fill {
- transition: width 0.05s linear; }
- md-slider .md-track-ticks {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%; }
- md-slider .md-thumb-container {
- position: absolute;
- left: 0;
- top: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0);
- transition: left 0.1s linear; }
- md-slider .md-thumb {
- z-index: 1;
- position: absolute;
- left: -19px;
- top: 5px;
- width: 38px;
- height: 38px;
- border-radius: 38px;
- -webkit-transform: scale(0.5);
- transform: scale(0.5);
- transition: all 0.1s linear; }
- md-slider .md-thumb:after {
- content: '';
- position: absolute;
- left: 3px;
- top: 3px;
- width: 32px;
- height: 32px;
- border-radius: 32px;
- border-width: 3px;
- border-style: solid; }
- md-slider .md-sign {
- /* Center the children (slider-thumb-text) */
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- position: absolute;
- left: -14px;
- top: -20px;
- width: 28px;
- height: 28px;
- border-radius: 28px;
- -webkit-transform: scale(0.4) translate3d(0, 70px, 0);
- transform: scale(0.4) translate3d(0, 70px, 0);
- transition: all 0.2s ease-in-out;
- /* The arrow pointing down under the sign */ }
- md-slider .md-sign:after {
- position: absolute;
- content: '';
- left: 0px;
- border-radius: 16px;
- top: 19px;
- border-left: 14px solid transparent;
- border-right: 14px solid transparent;
- border-top-width: 16px;
- border-top-style: solid;
- opacity: 0;
- -webkit-transform: translate3d(0, -8px, 0);
- transform: translate3d(0, -8px, 0);
- transition: all 0.2s ease-in-out; }
- md-slider .md-sign .md-thumb-text {
- z-index: 1;
- font-size: 12px;
- font-weight: bold; }
- md-slider .md-focus-thumb {
- position: absolute;
- left: -24px;
- top: 0px;
- width: 48px;
- height: 48px;
- border-radius: 48px;
- display: none;
- opacity: 0;
- background-color: #C0C0C0;
- -webkit-animation: sliderFocusThumb 0.4s linear;
- animation: sliderFocusThumb 0.4s linear; }
- md-slider .md-focus-ring {
- position: absolute;
- left: -24px;
- top: 0px;
- width: 48px;
- height: 48px;
- border-radius: 48px;
- border: 2px solid #D6D6D6;
- background-color: transparent;
- -webkit-transform: scale(0);
- transform: scale(0);
- transition: all 0.2s linear; }
- md-slider .md-disabled-thumb {
- position: absolute;
- left: -22px;
- top: 2px;
- width: 44px;
- height: 44px;
- border-radius: 44px;
- -webkit-transform: scale(0.35);
- transform: scale(0.35);
- border-width: 6px;
- border-style: solid;
- display: none; }
- md-slider.md-min .md-thumb:after {
- background-color: white; }
- md-slider.md-min .md-sign {
- opacity: 0; }
- md-slider:focus {
- outline: none; }
- md-slider.dragging .md-thumb-container, md-slider.dragging .md-track-fill {
- transition: none; }
- md-slider:not([md-discrete]) {
- /* Hide the sign and ticks in non-discrete mode */ }
- md-slider:not([md-discrete]) .md-track-ticks, md-slider:not([md-discrete]) .md-sign {
- display: none; }
- md-slider:not([md-discrete]):not([disabled]):hover .md-thumb {
- -webkit-transform: scale(0.6);
- transform: scale(0.6); }
- md-slider:not([md-discrete]):not([disabled]):focus .md-focus-thumb, md-slider:not([md-discrete]):not([disabled]).active .md-focus-thumb {
- display: block; }
- md-slider:not([md-discrete]):not([disabled]):focus .md-focus-ring, md-slider:not([md-discrete]):not([disabled]).active .md-focus-ring {
- -webkit-transform: scale(1);
- transform: scale(1); }
- md-slider:not([md-discrete]):not([disabled]):focus .md-thumb, md-slider:not([md-discrete]):not([disabled]).active .md-thumb {
- -webkit-transform: scale(0.85);
- transform: scale(0.85); }
- md-slider[md-discrete] {
- /* Hide the focus thumb in discrete mode */ }
- md-slider[md-discrete] .md-focus-thumb, md-slider[md-discrete] .md-focus-ring {
- display: none; }
- md-slider[md-discrete]:not([disabled]):focus .md-sign, md-slider[md-discrete]:not([disabled]):focus .md-sign:after, md-slider[md-discrete]:not([disabled]).active .md-sign, md-slider[md-discrete]:not([disabled]).active .md-sign:after {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0) scale(1);
- transform: translate3d(0, 0, 0) scale(1); }
- md-slider[disabled] .md-track-fill {
- display: none; }
- md-slider[disabled] .md-sign {
- display: none; }
- md-slider[disabled] .md-thumb {
- -webkit-transform: scale(0.35);
- transform: scale(0.35); }
- md-slider[disabled] .md-disabled-thumb {
- display: block; }
-
-@media screen and (-ms-high-contrast: active) {
- md-slider.md-default-theme .md-track {
- border-bottom: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.js
deleted file mode 100644
index 2664c105..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.js
+++ /dev/null
@@ -1,404 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
- /**
- * @ngdoc module
- * @name material.components.slider
- */
- angular.module('material.components.slider', [
- 'material.core'
- ])
- .directive('mdSlider', SliderDirective);
-
-/**
- * @ngdoc directive
- * @name mdSlider
- * @module material.components.slider
- * @restrict E
- * @description
- * The `<md-slider>` component allows the user to choose from a range of
- * values.
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the slider is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * It has two modes: 'normal' mode, where the user slides between a wide range
- * of values, and 'discrete' mode, where the user slides between only a few
- * select values.
- *
- * To enable discrete mode, add the `md-discrete` attribute to a slider,
- * and use the `step` attribute to change the distance between
- * values the user is allowed to pick.
- *
- * @usage
- * <h4>Normal Mode</h4>
- * <hljs lang="html">
- * <md-slider ng-model="myValue" min="5" max="500">
- * </md-slider>
- * </hljs>
- * <h4>Discrete Mode</h4>
- * <hljs lang="html">
- * <md-slider md-discrete ng-model="myDiscreteValue" step="10" min="10" max="130">
- * </md-slider>
- * </hljs>
- *
- * @param {boolean=} md-discrete Whether to enable discrete mode.
- * @param {number=} step The distance between values the user is allowed to pick. Default 1.
- * @param {number=} min The minimum value the user is allowed to pick. Default 0.
- * @param {number=} max The maximum value the user is allowed to pick. Default 100.
- */
-function SliderDirective($$rAF, $window, $mdAria, $mdUtil, $mdConstant, $mdTheming, $mdGesture, $parse) {
- return {
- scope: {},
- require: '?ngModel',
- template:
- '<div class="md-slider-wrapper">\
- <div class="md-track-container">\
- <div class="md-track"></div>\
- <div class="md-track md-track-fill"></div>\
- <div class="md-track-ticks"></div>\
- </div>\
- <div class="md-thumb-container">\
- <div class="md-thumb"></div>\
- <div class="md-focus-thumb"></div>\
- <div class="md-focus-ring"></div>\
- <div class="md-sign">\
- <span class="md-thumb-text"></span>\
- </div>\
- <div class="md-disabled-thumb"></div>\
- </div>\
- </div>',
- compile: compile
- };
-
- // **********************************************************
- // Private Methods
- // **********************************************************
-
- function compile (tElement, tAttrs) {
- tElement.attr({
- tabIndex: 0,
- role: 'slider'
- });
-
- $mdAria.expect(tElement, 'aria-label');
-
- return postLink;
- }
-
- function postLink(scope, element, attr, ngModelCtrl) {
- $mdTheming(element);
- ngModelCtrl = ngModelCtrl || {
- // Mock ngModelController if it doesn't exist to give us
- // the minimum functionality needed
- $setViewValue: function(val) {
- this.$viewValue = val;
- this.$viewChangeListeners.forEach(function(cb) { cb(); });
- },
- $parsers: [],
- $formatters: [],
- $viewChangeListeners: []
- };
-
- var isDisabledParsed = attr.ngDisabled && $parse(attr.ngDisabled);
- var isDisabledGetter = isDisabledParsed ?
- function() { return isDisabledParsed(scope.$parent); } :
- angular.noop;
- var thumb = angular.element(element[0].querySelector('.md-thumb'));
- var thumbText = angular.element(element[0].querySelector('.md-thumb-text'));
- var thumbContainer = thumb.parent();
- var trackContainer = angular.element(element[0].querySelector('.md-track-container'));
- var activeTrack = angular.element(element[0].querySelector('.md-track-fill'));
- var tickContainer = angular.element(element[0].querySelector('.md-track-ticks'));
- var throttledRefreshDimensions = $mdUtil.throttle(refreshSliderDimensions, 5000);
-
- // Default values, overridable by attrs
- angular.isDefined(attr.min) ? attr.$observe('min', updateMin) : updateMin(0);
- angular.isDefined(attr.max) ? attr.$observe('max', updateMax) : updateMax(100);
- angular.isDefined(attr.step)? attr.$observe('step', updateStep) : updateStep(1);
-
- // We have to manually stop the $watch on ngDisabled because it exists
- // on the parent scope, and won't be automatically destroyed when
- // the component is destroyed.
- var stopDisabledWatch = angular.noop;
- if (attr.ngDisabled) {
- stopDisabledWatch = scope.$parent.$watch(attr.ngDisabled, updateAriaDisabled);
- }
-
- $mdGesture.register(element, 'drag');
-
- element
- .on('keydown', keydownListener)
- .on('$md.pressdown', onPressDown)
- .on('$md.pressup', onPressUp)
- .on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- // On resize, recalculate the slider's dimensions and re-render
- function updateAll() {
- refreshSliderDimensions();
- ngModelRender();
- redrawTicks();
- }
- setTimeout(updateAll);
-
- var debouncedUpdateAll = $$rAF.throttle(updateAll);
- angular.element($window).on('resize', debouncedUpdateAll);
-
- scope.$on('$destroy', function() {
- angular.element($window).off('resize', debouncedUpdateAll);
- stopDisabledWatch();
- });
-
- ngModelCtrl.$render = ngModelRender;
- ngModelCtrl.$viewChangeListeners.push(ngModelRender);
- ngModelCtrl.$formatters.push(minMaxValidator);
- ngModelCtrl.$formatters.push(stepValidator);
-
- /**
- * Attributes
- */
- var min;
- var max;
- var step;
- function updateMin(value) {
- min = parseFloat(value);
- element.attr('aria-valuemin', value);
- updateAll();
- }
- function updateMax(value) {
- max = parseFloat(value);
- element.attr('aria-valuemax', value);
- updateAll();
- }
- function updateStep(value) {
- step = parseFloat(value);
- redrawTicks();
- }
- function updateAriaDisabled(isDisabled) {
- element.attr('aria-disabled', !!isDisabled);
- }
-
- // Draw the ticks with canvas.
- // The alternative to drawing ticks with canvas is to draw one element for each tick,
- // which could quickly become a performance bottleneck.
- var tickCanvas, tickCtx;
- function redrawTicks() {
- if (!angular.isDefined(attr.mdDiscrete)) return;
-
- var numSteps = Math.floor( (max - min) / step );
- if (!tickCanvas) {
- var trackTicksStyle = $window.getComputedStyle(tickContainer[0]);
- tickCanvas = angular.element('<canvas style="position:absolute;">');
- tickCtx = tickCanvas[0].getContext('2d');
- tickCtx.fillStyle = trackTicksStyle.backgroundColor || 'black';
- tickContainer.append(tickCanvas);
- }
- var dimensions = getSliderDimensions();
- tickCanvas[0].width = dimensions.width;
- tickCanvas[0].height = dimensions.height;
-
- var distance;
- for (var i = 0; i <= numSteps; i++) {
- distance = Math.floor(dimensions.width * (i / numSteps));
- tickCtx.fillRect(distance - 1, 0, 2, dimensions.height);
- }
- }
-
-
- /**
- * Refreshing Dimensions
- */
- var sliderDimensions = {};
- refreshSliderDimensions();
- function refreshSliderDimensions() {
- sliderDimensions = trackContainer[0].getBoundingClientRect();
- }
- function getSliderDimensions() {
- throttledRefreshDimensions();
- return sliderDimensions;
- }
-
- /**
- * left/right arrow listener
- */
- function keydownListener(ev) {
- if(element[0].hasAttribute('disabled')) {
- return;
- }
-
- var changeAmount;
- if (ev.keyCode === $mdConstant.KEY_CODE.LEFT_ARROW) {
- changeAmount = -step;
- } else if (ev.keyCode === $mdConstant.KEY_CODE.RIGHT_ARROW) {
- changeAmount = step;
- }
- if (changeAmount) {
- if (ev.metaKey || ev.ctrlKey || ev.altKey) {
- changeAmount *= 4;
- }
- ev.preventDefault();
- ev.stopPropagation();
- scope.$evalAsync(function() {
- setModelValue(ngModelCtrl.$viewValue + changeAmount);
- });
- }
- }
-
- /**
- * ngModel setters and validators
- */
- function setModelValue(value) {
- ngModelCtrl.$setViewValue( minMaxValidator(stepValidator(value)) );
- }
- function ngModelRender() {
- if (isNaN(ngModelCtrl.$viewValue)) {
- ngModelCtrl.$viewValue = ngModelCtrl.$modelValue;
- }
-
- var percent = (ngModelCtrl.$viewValue - min) / (max - min);
- scope.modelValue = ngModelCtrl.$viewValue;
- element.attr('aria-valuenow', ngModelCtrl.$viewValue);
- setSliderPercent(percent);
- thumbText.text( ngModelCtrl.$viewValue );
- }
-
- function minMaxValidator(value) {
- if (angular.isNumber(value)) {
- return Math.max(min, Math.min(max, value));
- }
- }
- function stepValidator(value) {
- if (angular.isNumber(value)) {
- var formattedValue = (Math.round(value / step) * step);
- // Format to 3 digits after the decimal point - fixes #2015.
- return (Math.round(formattedValue * 1000) / 1000);
- }
- }
-
- /**
- * @param percent 0-1
- */
- function setSliderPercent(percent) {
- activeTrack.css('width', (percent * 100) + '%');
- thumbContainer.css(
- 'left',
- (percent * 100) + '%'
- );
- element.toggleClass('md-min', percent === 0);
- }
-
-
- /**
- * Slide listeners
- */
- var isDragging = false;
- var isDiscrete = angular.isDefined(attr.mdDiscrete);
-
- function onPressDown(ev) {
- if (isDisabledGetter()) return;
-
- element.addClass('active');
- element[0].focus();
- refreshSliderDimensions();
-
- var exactVal = percentToValue( positionToPercent( ev.pointer.x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- scope.$apply(function() {
- setModelValue( closestVal );
- setSliderPercent( valueToPercent(closestVal));
- });
- }
- function onPressUp(ev) {
- if (isDisabledGetter()) return;
-
- element.removeClass('dragging active');
-
- var exactVal = percentToValue( positionToPercent( ev.pointer.x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- scope.$apply(function() {
- setModelValue(closestVal);
- ngModelRender();
- });
- }
- function onDragStart(ev) {
- if (isDisabledGetter()) return;
- isDragging = true;
- ev.stopPropagation();
-
- element.addClass('dragging');
- setSliderFromEvent(ev);
- }
- function onDrag(ev) {
- if (!isDragging) return;
- ev.stopPropagation();
- setSliderFromEvent(ev);
- }
- function onDragEnd(ev) {
- if (!isDragging) return;
- ev.stopPropagation();
- isDragging = false;
- }
-
- function setSliderFromEvent(ev) {
- // While panning discrete, update only the
- // visual positioning but not the model value.
- if ( isDiscrete ) adjustThumbPosition( ev.pointer.x );
- else doSlide( ev.pointer.x );
- }
-
- /**
- * Slide the UI by changing the model value
- * @param x
- */
- function doSlide( x ) {
- scope.$evalAsync( function() {
- setModelValue( percentToValue( positionToPercent(x) ));
- });
- }
-
- /**
- * Slide the UI without changing the model (while dragging/panning)
- * @param x
- */
- function adjustThumbPosition( x ) {
- var exactVal = percentToValue( positionToPercent( x ));
- var closestVal = minMaxValidator( stepValidator(exactVal) );
- setSliderPercent( positionToPercent(x) );
- thumbText.text( closestVal );
- }
-
- /**
- * Convert horizontal position on slider to percentage value of offset from beginning...
- * @param x
- * @returns {number}
- */
- function positionToPercent( x ) {
- return Math.max(0, Math.min(1, (x - sliderDimensions.left) / (sliderDimensions.width)));
- }
-
- /**
- * Convert percentage offset on slide to equivalent model value
- * @param percent
- * @returns {*}
- */
- function percentToValue( percent ) {
- return (min + percent * (max - min));
- }
-
- function valueToPercent( val ) {
- return (val - min)/(max - min);
- }
- }
-}
-SliderDirective.$inject = ["$$rAF", "$window", "$mdAria", "$mdUtil", "$mdConstant", "$mdTheming", "$mdGesture", "$parse"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.min.css
deleted file mode 100644
index 29125c6f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */@-webkit-keyframes sliderFocusThumb{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{opacity:0}}@keyframes sliderFocusThumb{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{opacity:0}}md-slider{height:48px;position:relative;display:block;margin-left:4px;margin-right:4px;padding:0}md-slider *,md-slider :after{box-sizing:border-box}md-slider .md-slider-wrapper{position:relative}md-slider .md-track-container{width:100%;position:absolute;top:23px;height:2px}md-slider .md-track{position:absolute;left:0;right:0;height:100%}md-slider .md-track-fill{transition:width .05s linear}md-slider .md-track-ticks{position:absolute;left:0;right:0;height:100%}md-slider .md-thumb-container{position:absolute;left:0;top:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);transition:left .1s linear}md-slider .md-thumb{z-index:1;position:absolute;left:-19px;top:5px;width:38px;height:38px;border-radius:38px;-webkit-transform:scale(.5);transform:scale(.5);transition:all .1s linear}md-slider .md-thumb:after{content:'';position:absolute;left:3px;top:3px;width:32px;height:32px;border-radius:32px;border-width:3px;border-style:solid}md-slider .md-sign{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:absolute;left:-14px;top:-20px;width:28px;height:28px;border-radius:28px;-webkit-transform:scale(.4) translate3d(0,70px,0);transform:scale(.4) translate3d(0,70px,0);transition:all .2s ease-in-out}md-slider .md-sign:after{position:absolute;content:'';left:0;border-radius:16px;top:19px;border-left:14px solid transparent;border-right:14px solid transparent;border-top-width:16px;border-top-style:solid;opacity:0;-webkit-transform:translate3d(0,-8px,0);transform:translate3d(0,-8px,0);transition:all .2s ease-in-out}md-slider .md-sign .md-thumb-text{z-index:1;font-size:12px;font-weight:700}md-slider .md-focus-thumb{position:absolute;left:-24px;top:0;width:48px;height:48px;border-radius:48px;display:none;opacity:0;background-color:silver;-webkit-animation:sliderFocusThumb .4s linear;animation:sliderFocusThumb .4s linear}md-slider .md-focus-ring{position:absolute;left:-24px;top:0;width:48px;height:48px;border-radius:48px;border:2px solid #D6D6D6;background-color:transparent;-webkit-transform:scale(0);transform:scale(0);transition:all .2s linear}md-slider .md-disabled-thumb{position:absolute;left:-22px;top:2px;width:44px;height:44px;border-radius:44px;-webkit-transform:scale(.35);transform:scale(.35);border-width:6px;border-style:solid;display:none}md-slider.md-min .md-thumb:after{background-color:#fff}md-slider.md-min .md-sign{opacity:0}md-slider:focus{outline:0}md-slider.dragging .md-thumb-container,md-slider.dragging .md-track-fill{transition:none}md-slider:not([md-discrete]) .md-sign,md-slider:not([md-discrete]) .md-track-ticks{display:none}md-slider:not([md-discrete]):not([disabled]):hover .md-thumb{-webkit-transform:scale(.6);transform:scale(.6)}md-slider:not([md-discrete]):not([disabled]).active .md-focus-thumb,md-slider:not([md-discrete]):not([disabled]):focus .md-focus-thumb{display:block}md-slider:not([md-discrete]):not([disabled]).active .md-focus-ring,md-slider:not([md-discrete]):not([disabled]):focus .md-focus-ring{-webkit-transform:scale(1);transform:scale(1)}md-slider:not([md-discrete]):not([disabled]).active .md-thumb,md-slider:not([md-discrete]):not([disabled]):focus .md-thumb{-webkit-transform:scale(.85);transform:scale(.85)}md-slider[md-discrete] .md-focus-ring,md-slider[md-discrete] .md-focus-thumb{display:none}md-slider[md-discrete]:not([disabled]).active .md-sign,md-slider[md-discrete]:not([disabled]).active .md-sign:after,md-slider[md-discrete]:not([disabled]):focus .md-sign,md-slider[md-discrete]:not([disabled]):focus .md-sign:after{opacity:1;-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}md-slider[disabled] .md-sign,md-slider[disabled] .md-track-fill{display:none}md-slider[disabled] .md-thumb{-webkit-transform:scale(.35);transform:scale(.35)}md-slider[disabled] .md-disabled-thumb{display:block}@media screen and (-ms-high-contrast:active){md-slider.md-default-theme .md-track{border-bottom:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.min.js
deleted file mode 100644
index 9ffc1568..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/slider/slider.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,i){"use strict";function n(e,i,n,a,r,o,s,d){function l(e,t){return e.attr({tabIndex:0,role:"slider"}),n.expect(e,"aria-label"),u}function u(n,l,u,c){function m(){g(),x(),h()}function f(e){H=parseFloat(e),l.attr("aria-valuemin",e),m()}function v(e){U=parseFloat(e),l.attr("aria-valuemax",e),m()}function p(e){J=parseFloat(e),h()}function $(e){l.attr("aria-disabled",!!e)}function h(){if(t.isDefined(u.mdDiscrete)){var e=Math.floor((U-H)/J);if(!Q){var n=i.getComputedStyle(W[0]);Q=t.element('<canvas style="position:absolute;">'),X=Q[0].getContext("2d"),X.fillStyle=n.backgroundColor||"black",W.append(Q)}var a=w();Q[0].width=a.width,Q[0].height=a.height;for(var r,o=0;e>=o;o++)r=Math.floor(a.width*(o/e)),X.fillRect(r-1,0,2,a.height)}}function g(){Z=G[0].getBoundingClientRect()}function w(){return Y(),Z}function b(e){if(!l[0].hasAttribute("disabled")){var t;e.keyCode===r.KEY_CODE.LEFT_ARROW?t=-J:e.keyCode===r.KEY_CODE.RIGHT_ARROW&&(t=J),t&&((e.metaKey||e.ctrlKey||e.altKey)&&(t*=4),e.preventDefault(),e.stopPropagation(),n.$evalAsync(function(){y(c.$viewValue+t)}))}}function y(e){c.$setViewValue(C(k(e)))}function x(){isNaN(c.$viewValue)&&(c.$viewValue=c.$modelValue);var e=(c.$viewValue-H)/(U-H);n.modelValue=c.$viewValue,l.attr("aria-valuenow",c.$viewValue),D(e),_.text(c.$viewValue)}function C(e){return t.isNumber(e)?Math.max(H,Math.min(U,e)):void 0}function k(e){if(t.isNumber(e)){var i=Math.round(e/J)*J;return Math.round(1e3*i)/1e3}}function D(e){I.css("width",100*e+"%"),z.css("left",100*e+"%"),l.toggleClass("md-min",0===e)}function V(e){if(!P()){l.addClass("active"),l[0].focus(),g();var t=L(K(e.pointer.x)),i=C(k(t));n.$apply(function(){y(i),D(N(i))})}}function M(e){if(!P()){l.removeClass("dragging active");var t=L(K(e.pointer.x)),i=C(k(t));n.$apply(function(){y(i),x()})}}function S(e){P()||(ee=!0,e.stopPropagation(),l.addClass("dragging"),q(e))}function A(e){ee&&(e.stopPropagation(),q(e))}function R(e){ee&&(e.stopPropagation(),ee=!1)}function q(e){te?F(e.pointer.x):E(e.pointer.x)}function E(e){n.$evalAsync(function(){y(L(K(e)))})}function F(e){var t=L(K(e)),i=C(k(t));D(K(e)),_.text(i)}function K(e){return Math.max(0,Math.min(1,(e-Z.left)/Z.width))}function L(e){return H+e*(U-H)}function N(e){return(e-H)/(U-H)}o(l),c=c||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]};var O=u.ngDisabled&&d(u.ngDisabled),P=O?function(){return O(n.$parent)}:t.noop,T=t.element(l[0].querySelector(".md-thumb")),_=t.element(l[0].querySelector(".md-thumb-text")),z=T.parent(),G=t.element(l[0].querySelector(".md-track-container")),I=t.element(l[0].querySelector(".md-track-fill")),W=t.element(l[0].querySelector(".md-track-ticks")),Y=a.throttle(g,5e3);t.isDefined(u.min)?u.$observe("min",f):f(0),t.isDefined(u.max)?u.$observe("max",v):v(100),t.isDefined(u.step)?u.$observe("step",p):p(1);var j=t.noop;u.ngDisabled&&(j=n.$parent.$watch(u.ngDisabled,$)),s.register(l,"drag"),l.on("keydown",b).on("$md.pressdown",V).on("$md.pressup",M).on("$md.dragstart",S).on("$md.drag",A).on("$md.dragend",R),setTimeout(m);var B=e.throttle(m);t.element(i).on("resize",B),n.$on("$destroy",function(){t.element(i).off("resize",B),j()}),c.$render=x,c.$viewChangeListeners.push(x),c.$formatters.push(C),c.$formatters.push(k);var H,U,J,Q,X,Z={};g();var ee=!1,te=t.isDefined(u.mdDiscrete)}return{scope:{},require:"?ngModel",template:'<div class="md-slider-wrapper"> <div class="md-track-container"> <div class="md-track"></div> <div class="md-track md-track-fill"></div> <div class="md-track-ticks"></div> </div> <div class="md-thumb-container"> <div class="md-thumb"></div> <div class="md-focus-thumb"></div> <div class="md-focus-ring"></div> <div class="md-sign"> <span class="md-thumb-text"></span> </div> <div class="md-disabled-thumb"></div> </div> </div>',compile:l}}t.module("material.components.slider",["material.core"]).directive("mdSlider",n),n.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/bower.json
deleted file mode 100644
index d75212fc..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-sticky",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-content": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.css
deleted file mode 100644
index cfbea4ac..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.css
+++ /dev/null
@@ -1,21 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-sticky-clone {
- z-index: 2;
- top: 0;
- left: 0;
- right: 0;
- position: absolute !important;
- -webkit-transform: translate3d(-9999px, -9999px, 0);
- transform: translate3d(-9999px, -9999px, 0); }
- .md-sticky-clone[sticky-state="active"] {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- .md-sticky-clone[sticky-state="active"]:not(.md-sticky-no-effect) .md-subheader-inner {
- -webkit-animation: subheaderStickyHoverIn 0.3s ease-out both;
- animation: subheaderStickyHoverIn 0.3s ease-out both; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.js
deleted file mode 100644
index 7e0b9a32..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.js
+++ /dev/null
@@ -1,315 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/*
- * @ngdoc module
- * @name material.components.sticky
- * @description
- *
- * Sticky effects for md
- */
-
-angular.module('material.components.sticky', [
- 'material.core',
- 'material.components.content'
-])
- .factory('$mdSticky', MdSticky);
-
-/*
- * @ngdoc service
- * @name $mdSticky
- * @module material.components.sticky
- *
- * @description
- * The `$mdSticky`service provides a mixin to make elements sticky.
- *
- * @returns A `$mdSticky` function that takes three arguments:
- * - `scope`
- * - `element`: The element that will be 'sticky'
- * - `elementClone`: A clone of the element, that will be shown
- * when the user starts scrolling past the original element.
- * If not provided, it will use the result of `element.clone()`.
- */
-
-function MdSticky($document, $mdConstant, $compile, $$rAF, $mdUtil) {
-
- var browserStickySupport = checkStickySupport();
-
- /**
- * Registers an element as sticky, used internally by directives to register themselves
- */
- return function registerStickyElement(scope, element, stickyClone) {
- var contentCtrl = element.controller('mdContent');
- if (!contentCtrl) return;
-
- if (browserStickySupport) {
- element.css({
- position: browserStickySupport,
- top: 0,
- 'z-index': 2
- });
- } else {
- var $$sticky = contentCtrl.$element.data('$$sticky');
- if (!$$sticky) {
- $$sticky = setupSticky(contentCtrl);
- contentCtrl.$element.data('$$sticky', $$sticky);
- }
-
- var deregister = $$sticky.add(element, stickyClone || element.clone());
- scope.$on('$destroy', deregister);
- }
- };
-
- function setupSticky(contentCtrl) {
- var contentEl = contentCtrl.$element;
-
- // Refresh elements is very expensive, so we use the debounced
- // version when possible.
- var debouncedRefreshElements = $$rAF.throttle(refreshElements);
-
- // setupAugmentedScrollEvents gives us `$scrollstart` and `$scroll`,
- // more reliable than `scroll` on android.
- setupAugmentedScrollEvents(contentEl);
- contentEl.on('$scrollstart', debouncedRefreshElements);
- contentEl.on('$scroll', onScroll);
-
- var self;
- var stickyBaseoffset = contentEl.prop('offsetTop');
- return self = {
- prev: null,
- current: null, //the currently stickied item
- next: null,
- items: [],
- add: add,
- refreshElements: refreshElements
- };
-
- /***************
- * Public
- ***************/
- // Add an element and its sticky clone to this content's sticky collection
- function add(element, stickyClone) {
- stickyClone.addClass('md-sticky-clone');
- stickyClone.css('top', stickyBaseoffset + 'px');
-
- var item = {
- element: element,
- clone: stickyClone
- };
- self.items.push(item);
-
- contentEl.parent().prepend(item.clone);
-
- debouncedRefreshElements();
-
- return function remove() {
- self.items.forEach(function(item, index) {
- if (item.element[0] === element[0]) {
- self.items.splice(index, 1);
- item.clone.remove();
- }
- });
- debouncedRefreshElements();
- };
- }
-
- function refreshElements() {
- // Sort our collection of elements by their current position in the DOM.
- // We need to do this because our elements' order of being added may not
- // be the same as their order of display.
- self.items.forEach(refreshPosition);
- self.items = self.items.sort(function(a, b) {
- return a.top < b.top ? -1 : 1;
- });
-
- // Find which item in the list should be active,
- // based upon the content's current scroll position
- var item;
- var currentScrollTop = contentEl.prop('scrollTop');
- for (var i = self.items.length - 1; i >= 0; i--) {
- if (currentScrollTop > self.items[i].top) {
- item = self.items[i];
- break;
- }
- }
- setCurrentItem(item);
- }
-
-
- /***************
- * Private
- ***************/
-
- // Find the `top` of an item relative to the content element,
- // and also the height.
- function refreshPosition(item) {
- // Find the top of an item by adding to the offsetHeight until we reach the
- // content element.
- var current = item.element[0];
- item.top = 0;
- item.left = 0;
- while (current && current !== contentEl[0]) {
- item.top += current.offsetTop;
- item.left += current.offsetLeft;
- current = current.offsetParent;
- }
- item.height = item.element.prop('offsetHeight');
- item.clone.css('margin-left', item.left + 'px');
- if ($mdUtil.floatingScrollbars()) {
- item.clone.css('margin-right', '0');
- }
- }
-
-
- // As we scroll, push in and select the correct sticky element.
- function onScroll() {
- var scrollTop = contentEl.prop('scrollTop');
- var isScrollingDown = scrollTop > (onScroll.prevScrollTop || 0);
- onScroll.prevScrollTop = scrollTop;
-
- // At the top?
- if (scrollTop === 0) {
- setCurrentItem(null);
-
- // Going to next item?
- } else if (isScrollingDown && self.next) {
- if (self.next.top - scrollTop <= 0) {
- // Sticky the next item if we've scrolled past its position.
- setCurrentItem(self.next);
- } else if (self.current) {
- // Push the current item up when we're almost at the next item.
- if (self.next.top - scrollTop <= self.next.height) {
- translate(self.current, self.next.top - self.next.height - scrollTop);
- } else {
- translate(self.current, null);
- }
- }
-
- // Scrolling up with a current sticky item?
- } else if (!isScrollingDown && self.current) {
- if (scrollTop < self.current.top) {
- // Sticky the previous item if we've scrolled up past
- // the original position of the currently stickied item.
- setCurrentItem(self.prev);
- }
- // Scrolling up, and just bumping into the item above (just set to current)?
- // If we have a next item bumping into the current item, translate
- // the current item up from the top as it scrolls into view.
- if (self.current && self.next) {
- if (scrollTop >= self.next.top - self.current.height) {
- translate(self.current, self.next.top - scrollTop - self.current.height);
- } else {
- translate(self.current, null);
- }
- }
- }
- }
-
- function setCurrentItem(item) {
- if (self.current === item) return;
- // Deactivate currently active item
- if (self.current) {
- translate(self.current, null);
- setStickyState(self.current, null);
- }
-
- // Activate new item if given
- if (item) {
- setStickyState(item, 'active');
- }
-
- self.current = item;
- var index = self.items.indexOf(item);
- // If index === -1, index + 1 = 0. It works out.
- self.next = self.items[index + 1];
- self.prev = self.items[index - 1];
- setStickyState(self.next, 'next');
- setStickyState(self.prev, 'prev');
- }
-
- function setStickyState(item, state) {
- if (!item || item.state === state) return;
- if (item.state) {
- item.clone.attr('sticky-prev-state', item.state);
- item.element.attr('sticky-prev-state', item.state);
- }
- item.clone.attr('sticky-state', state);
- item.element.attr('sticky-state', state);
- item.state = state;
- }
-
- function translate(item, amount) {
- if (!item) return;
- if (amount === null || amount === undefined) {
- if (item.translateY) {
- item.translateY = null;
- item.clone.css($mdConstant.CSS.TRANSFORM, '');
- }
- } else {
- item.translateY = amount;
- item.clone.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(' + item.left + 'px,' + amount + 'px,0)'
- );
- }
- }
- }
-
- // Function to check for browser sticky support
- function checkStickySupport($el) {
- var stickyProp;
- var testEl = angular.element('<div>');
- $document[0].body.appendChild(testEl[0]);
-
- var stickyProps = ['sticky', '-webkit-sticky'];
- for (var i = 0; i < stickyProps.length; ++i) {
- testEl.css({position: stickyProps[i], top: 0, 'z-index': 2});
- if (testEl.css('position') == stickyProps[i]) {
- stickyProp = stickyProps[i];
- break;
- }
- }
- testEl.remove();
- return stickyProp;
- }
-
- // Android 4.4 don't accurately give scroll events.
- // To fix this problem, we setup a fake scroll event. We say:
- // > If a scroll or touchmove event has happened in the last DELAY milliseconds,
- // then send a `$scroll` event every animationFrame.
- // Additionally, we add $scrollstart and $scrollend events.
- function setupAugmentedScrollEvents(element) {
- var SCROLL_END_DELAY = 200;
- var isScrolling;
- var lastScrollTime;
- element.on('scroll touchmove', function() {
- if (!isScrolling) {
- isScrolling = true;
- $$rAF(loopScrollEvent);
- element.triggerHandler('$scrollstart');
- }
- element.triggerHandler('$scroll');
- lastScrollTime = +$mdUtil.now();
- });
-
- function loopScrollEvent() {
- if (+$mdUtil.now() - lastScrollTime > SCROLL_END_DELAY) {
- isScrolling = false;
- element.triggerHandler('$scrollend');
- } else {
- element.triggerHandler('$scroll');
- $$rAF(loopScrollEvent);
- }
- }
- }
-
-}
-MdSticky.$inject = ["$document", "$mdConstant", "$compile", "$$rAF", "$mdUtil"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.min.css
deleted file mode 100644
index 25f2c4b4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-sticky-clone{z-index:2;top:0;left:0;right:0;position:absolute!important;-webkit-transform:translate3d(-9999px,-9999px,0);transform:translate3d(-9999px,-9999px,0)}.md-sticky-clone[sticky-state=active]{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.md-sticky-clone[sticky-state=active]:not(.md-sticky-no-effect) .md-subheader-inner{-webkit-animation:subheaderStickyHoverIn .3s ease-out both;animation:subheaderStickyHoverIn .3s ease-out both} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.min.js
deleted file mode 100644
index 299c5b88..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/sticky/sticky.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(t,e,n){"use strict";function r(t,r,o,l,c){function s(t){function e(t,e){e.addClass("md-sticky-clone"),e.css("top",$+"px");var n={element:t,clone:e};return v.items.push(n),m.parent().prepend(n.clone),d(),function(){v.items.forEach(function(e,n){e.element[0]===t[0]&&(v.items.splice(n,1),e.clone.remove())}),d()}}function o(){v.items.forEach(s),v.items=v.items.sort(function(t,e){return t.top<e.top?-1:1});for(var t,e=m.prop("scrollTop"),n=v.items.length-1;n>=0;n--)if(e>v.items[n].top){t=v.items[n];break}u(t)}function s(t){var e=t.element[0];for(t.top=0,t.left=0;e&&e!==m[0];)t.top+=e.offsetTop,t.left+=e.offsetLeft,e=e.offsetParent;t.height=t.element.prop("offsetHeight"),t.clone.css("margin-left",t.left+"px"),c.floatingScrollbars()&&t.clone.css("margin-right","0")}function i(){var t=m.prop("scrollTop"),e=t>(i.prevScrollTop||0);i.prevScrollTop=t,0===t?u(null):e&&v.next?v.next.top-t<=0?u(v.next):v.current&&(v.next.top-t<=v.next.height?f(v.current,v.next.top-v.next.height-t):f(v.current,null)):!e&&v.current&&(t<v.current.top&&u(v.prev),v.current&&v.next&&(t>=v.next.top-v.current.height?f(v.current,v.next.top-t-v.current.height):f(v.current,null)))}function u(t){if(v.current!==t){v.current&&(f(v.current,null),p(v.current,null)),t&&p(t,"active"),v.current=t;var e=v.items.indexOf(t);v.next=v.items[e+1],v.prev=v.items[e-1],p(v.next,"next"),p(v.prev,"prev")}}function p(t,e){t&&t.state!==e&&(t.state&&(t.clone.attr("sticky-prev-state",t.state),t.element.attr("sticky-prev-state",t.state)),t.clone.attr("sticky-state",e),t.element.attr("sticky-state",e),t.state=e)}function f(t,e){t&&(null===e||e===n?t.translateY&&(t.translateY=null,t.clone.css(r.CSS.TRANSFORM,"")):(t.translateY=e,t.clone.css(r.CSS.TRANSFORM,"translate3d("+t.left+"px,"+e+"px,0)")))}var m=t.$element,d=l.throttle(o);a(m),m.on("$scrollstart",d),m.on("$scroll",i);var v,$=m.prop("offsetTop");return v={prev:null,current:null,next:null,items:[],add:e,refreshElements:o}}function i(n){var r,o=e.element("<div>");t[0].body.appendChild(o[0]);for(var l=["sticky","-webkit-sticky"],c=0;c<l.length;++c)if(o.css({position:l[c],top:0,"z-index":2}),o.css("position")==l[c]){r=l[c];break}return o.remove(),r}function a(t){function e(){+c.now()-r>o?(n=!1,t.triggerHandler("$scrollend")):(t.triggerHandler("$scroll"),l(e))}var n,r,o=200;t.on("scroll touchmove",function(){n||(n=!0,l(e),t.triggerHandler("$scrollstart")),t.triggerHandler("$scroll"),r=+c.now()})}var u=i();return function(t,e,n){var r=e.controller("mdContent");if(r)if(u)e.css({position:u,top:0,"z-index":2});else{var o=r.$element.data("$$sticky");o||(o=s(r),r.$element.data("$$sticky",o));var l=o.add(e,n||e.clone());t.$on("$destroy",l)}}}e.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",r),r.$inject=["$document","$mdConstant","$compile","$$rAF","$mdUtil"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/bower.json
deleted file mode 100644
index 9ea34c7b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-subheader",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-sticky": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader-default-theme.css
deleted file mode 100644
index 426a24d2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader-default-theme.css
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-subheader.md-THEME_NAME-theme {
- color: '{{ foreground-2-0.23 }}';
- background-color: '{{background-color}}'; }
- .md-subheader.md-THEME_NAME-theme.md-primary {
- color: '{{primary-color}}'; }
- .md-subheader.md-THEME_NAME-theme.md-accent {
- color: '{{accent-color}}'; }
- .md-subheader.md-THEME_NAME-theme.md-warn {
- color: '{{warn-color}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader-default-theme.min.css
deleted file mode 100644
index 29857f93..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-subheader.md-THEME_NAME-theme{color:'{{ foreground-2-0.23 }}';background-color:'{{background-color}}'}.md-subheader.md-THEME_NAME-theme.md-primary{color:'{{primary-color}}'}.md-subheader.md-THEME_NAME-theme.md-accent{color:'{{accent-color}}'}.md-subheader.md-THEME_NAME-theme.md-warn{color:'{{warn-color}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.css
deleted file mode 100644
index b134d795..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.css
+++ /dev/null
@@ -1,63 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes subheaderStickyHoverIn {
- 0% {
- box-shadow: 0 0 0 0 transparent; }
-
- 100% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
-@keyframes subheaderStickyHoverIn {
- 0% {
- box-shadow: 0 0 0 0 transparent; }
-
- 100% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); } }
-
-@-webkit-keyframes subheaderStickyHoverOut {
- 0% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
-
- 100% {
- box-shadow: 0 0 0 0 transparent; } }
-
-@keyframes subheaderStickyHoverOut {
- 0% {
- box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.16); }
-
- 100% {
- box-shadow: 0 0 0 0 transparent; } }
-
-.md-subheader {
- display: block;
- font-size: 14px;
- font-weight: 500;
- line-height: 1em;
- margin: 0 0 0 0;
- margin-right: 16px;
- position: relative; }
- .md-subheader .md-subheader-inner {
- padding: 16px 0px 16px 16px; }
- .md-subheader:not(.md-sticky-no-effect) {
- transition: 0.2s ease-out margin; }
- .md-subheader:not(.md-sticky-no-effect):after {
- position: absolute;
- left: 0;
- bottom: 0;
- top: 0;
- right: -16px;
- content: ''; }
- .md-subheader:not(.md-sticky-no-effect).md-sticky-clone {
- z-index: 2; }
- .md-subheader:not(.md-sticky-no-effect)[sticky-state="active"] {
- margin-top: -2px; }
- .md-subheader:not(.md-sticky-no-effect):not(.md-sticky-clone)[sticky-prev-state="active"] .md-subheader-inner:after {
- -webkit-animation: subheaderStickyHoverOut 0.3s ease-out both;
- animation: subheaderStickyHoverOut 0.3s ease-out both; }
- .md-subheader .md-subheader-content {
- z-index: 1;
- position: relative; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.js
deleted file mode 100644
index 8e4bf0db..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.subheader
- * @description
- * SubHeader module
- *
- * Subheaders are special list tiles that delineate distinct sections of a
- * list or grid list and are typically related to the current filtering or
- * sorting criteria. Subheader tiles are either displayed inline with tiles or
- * can be associated with content, for example, in an adjacent column.
- *
- * Upon scrolling, subheaders remain pinned to the top of the screen and remain
- * pinned until pushed on or off screen by the next subheader. @see [Material
- * Design Specifications](https://www.google.com/design/spec/components/subheaders.html)
- *
- * > To improve the visual grouping of content, use the system color for your subheaders.
- *
- */
-angular.module('material.components.subheader', [
- 'material.core',
- 'material.components.sticky'
-])
- .directive('mdSubheader', MdSubheaderDirective);
-
-/**
- * @ngdoc directive
- * @name mdSubheader
- * @module material.components.subheader
- *
- * @restrict E
- *
- * @description
- * The `<md-subheader>` directive is a subheader for a section. By default it is sticky.
- * You can make it not sticky by applying the `md-no-sticky` class to the subheader.
- *
- *
- * @usage
- * <hljs lang="html">
- * <md-subheader>Online Friends</md-subheader>
- * </hljs>
- */
-
-function MdSubheaderDirective($mdSticky, $compile, $mdTheming) {
- return {
- restrict: 'E',
- replace: true,
- transclude: true,
- template:
- '<h2 class="md-subheader">' +
- '<div class="md-subheader-inner">' +
- '<span class="md-subheader-content"></span>' +
- '</div>' +
- '</h2>',
- compile: function(element, attr, transclude) {
- return function postLink(scope, element, attr) {
- $mdTheming(element);
- var outerHTML = element[0].outerHTML;
-
- function getContent(el) {
- return angular.element(el[0].querySelector('.md-subheader-content'));
- }
-
- // Transclude the user-given contents of the subheader
- // the conventional way.
- transclude(scope, function(clone) {
- getContent(element).append(clone);
- });
-
- // Create another clone, that uses the outer and inner contents
- // of the element, that will be 'stickied' as the user scrolls.
- if (!element.hasClass('md-no-sticky')) {
- transclude(scope, function(clone) {
- var stickyClone = $compile(angular.element(outerHTML))(scope);
- getContent(stickyClone).append(clone);
- $mdSticky(scope, element, stickyClone);
- });
- }
- };
- }
- };
-}
-MdSubheaderDirective.$inject = ["$mdSticky", "$compile", "$mdTheming"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.min.css
deleted file mode 100644
index bc7b5029..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */@-webkit-keyframes subheaderStickyHoverIn{0%{box-shadow:0 0 0 0 transparent}100%{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}}@keyframes subheaderStickyHoverIn{0%{box-shadow:0 0 0 0 transparent}100%{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}}@-webkit-keyframes subheaderStickyHoverOut{0%{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}100%{box-shadow:0 0 0 0 transparent}}@keyframes subheaderStickyHoverOut{0%{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}100%{box-shadow:0 0 0 0 transparent}}.md-subheader{display:block;font-size:14px;font-weight:500;line-height:1em;margin:0 16px 0 0;position:relative}.md-subheader .md-subheader-inner{padding:16px 0 16px 16px}.md-subheader:not(.md-sticky-no-effect){transition:.2s ease-out margin}.md-subheader:not(.md-sticky-no-effect):after{position:absolute;left:0;bottom:0;top:0;right:-16px;content:''}.md-subheader:not(.md-sticky-no-effect).md-sticky-clone{z-index:2}.md-subheader:not(.md-sticky-no-effect)[sticky-state=active]{margin-top:-2px}.md-subheader:not(.md-sticky-no-effect):not(.md-sticky-clone)[sticky-prev-state=active] .md-subheader-inner:after{-webkit-animation:subheaderStickyHoverOut .3s ease-out both;animation:subheaderStickyHoverOut .3s ease-out both}.md-subheader .md-subheader-content{z-index:1;position:relative} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.min.js
deleted file mode 100644
index e230c065..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/subheader/subheader.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,n,t){"use strict";function r(e,t,r){return{restrict:"E",replace:!0,transclude:!0,template:'<h2 class="md-subheader"><div class="md-subheader-inner"><span class="md-subheader-content"></span></div></h2>',compile:function(a,c,i){return function(a,c,s){function d(e){return n.element(e[0].querySelector(".md-subheader-content"))}r(c);var o=c[0].outerHTML;i(a,function(e){d(c).append(e)}),c.hasClass("md-no-sticky")||i(a,function(r){var i=t(n.element(o))(a);d(i).append(r),e(a,c,i)})}}}}n.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",r),r.$inject=["$mdSticky","$compile","$mdTheming"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/bower.json
deleted file mode 100644
index 2596da9b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-swipe",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/swipe.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/swipe.js
deleted file mode 100644
index ce54b113..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/swipe.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.swipe
- * @description Swipe module!
- */
-/**
- * @ngdoc directive
- * @module material.components.swipe
- * @name mdSwipeLeft
- *
- * @restrict A
- *
- * @description
- * The md-swipe-left directives allows you to specify custom behavior when an element is swiped
- * left.
- *
- * @usage
- * <hljs lang="html">
- * <div md-swipe-left="onSwipeLeft()">Swipe me left!</div>
- * </hljs>
- */
-/**
- * @ngdoc directive
- * @module material.components.swipe
- * @name mdSwipeRight
- *
- * @restrict A
- *
- * @description
- * The md-swipe-right directives allows you to specify custom behavior when an element is swiped
- * right.
- *
- * @usage
- * <hljs lang="html">
- * <div md-swipe-right="onSwipeRight()">Swipe me right!</div>
- * </hljs>
- */
-
-angular.module('material.components.swipe', ['material.core'])
- .directive('mdSwipeLeft', getDirective('SwipeLeft'))
- .directive('mdSwipeRight', getDirective('SwipeRight'));
-
-function getDirective(name) {
- var directiveName = 'md' + name;
- var eventName = '$md.' + name.toLowerCase();
-
- DirectiveFactory.$inject = ["$parse"];
- return DirectiveFactory;
-
- /* ngInject */
- function DirectiveFactory($parse) {
- return { restrict: 'A', link: postLink };
- function postLink(scope, element, attr) {
- var fn = $parse(attr[directiveName]);
- element.on(eventName, function(ev) {
- scope.$apply(function() { fn(scope, { $event: ev }); });
- });
- }
- }
-}
-
-
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/swipe.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/swipe.min.js
deleted file mode 100644
index 11b20708..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/swipe/swipe.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,i,t){"use strict";function n(e){function i(e){function i(i,r,o){var c=e(o[t]);r.on(n,function(e){i.$apply(function(){c(i,{$event:e})})})}return{restrict:"A",link:i}}var t="md"+e,n="$md."+e.toLowerCase();return i.$inject=["$parse"],i}i.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",n("SwipeLeft")).directive("mdSwipeRight",n("SwipeRight"))}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/bower.json
deleted file mode 100644
index b88382da..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-switch",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-checkbox": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch-default-theme.css
deleted file mode 100644
index 087b5383..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch-default-theme.css
+++ /dev/null
@@ -1,33 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-switch.md-THEME_NAME-theme .md-thumb {
- background-color: '{{background-50}}'; }
-md-switch.md-THEME_NAME-theme .md-bar {
- background-color: '{{background-500}}'; }
-md-switch.md-THEME_NAME-theme.md-checked .md-thumb {
- background-color: '{{accent-color}}'; }
-md-switch.md-THEME_NAME-theme.md-checked .md-bar {
- background-color: '{{accent-color-0.5}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before {
- background-color: '{{accent-color-0.26}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb {
- background-color: '{{primary-color}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar {
- background-color: '{{primary-color-0.5}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before {
- background-color: '{{primary-color-0.26}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb {
- background-color: '{{warn-color}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar {
- background-color: '{{warn-color-0.5}}'; }
-md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before {
- background-color: '{{warn-color-0.26}}'; }
-md-switch.md-THEME_NAME-theme[disabled] .md-thumb {
- background-color: '{{background-400}}'; }
-md-switch.md-THEME_NAME-theme[disabled] .md-bar {
- background-color: '{{foreground-4}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch-default-theme.min.css
deleted file mode 100644
index 9b814ad1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-switch.md-THEME_NAME-theme .md-thumb{background-color:'{{background-50}}'}md-switch.md-THEME_NAME-theme .md-bar{background-color:'{{background-500}}'}md-switch.md-THEME_NAME-theme.md-checked .md-thumb{background-color:'{{accent-color}}'}md-switch.md-THEME_NAME-theme.md-checked .md-bar{background-color:'{{accent-color-0.5}}'}md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before{background-color:'{{accent-color-0.26}}'}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb{background-color:'{{primary-color}}'}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar{background-color:'{{primary-color-0.5}}'}md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before{background-color:'{{primary-color-0.26}}'}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb{background-color:'{{warn-color}}'}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar{background-color:'{{warn-color-0.5}}'}md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before{background-color:'{{warn-color-0.26}}'}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:'{{background-400}}'}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:'{{foreground-4}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.css
deleted file mode 100644
index af4314ae..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.css
+++ /dev/null
@@ -1,110 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-switch {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- margin: 15px;
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none; }
- md-switch .md-container {
- cursor: -webkit-grab;
- cursor: grab;
- width: 36px;
- height: 24px;
- position: relative;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- margin-right: 8px; }
- md-switch:not([disabled]) .md-dragging, md-switch:not([disabled]).md-dragging .md-container {
- cursor: -webkit-grabbing;
- cursor: grabbing; }
- md-switch.md-focused:not([disabled]) .md-thumb:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px; }
- md-switch.md-focused:not([disabled]):not(.md-checked) .md-thumb:before {
- background-color: rgba(0, 0, 0, 0.12); }
- md-switch .md-label {
- border-color: transparent;
- border-width: 0; }
- md-switch .md-bar {
- left: 1px;
- width: 34px;
- top: 5px;
- height: 14px;
- border-radius: 8px;
- position: absolute; }
- md-switch .md-thumb-container {
- top: 2px;
- left: 0;
- width: 16px;
- position: absolute;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- z-index: 1; }
- md-switch.md-checked .md-thumb-container {
- -webkit-transform: translate3d(100%, 0, 0);
- transform: translate3d(100%, 0, 0); }
- md-switch .md-thumb {
- position: absolute;
- margin: 0;
- left: 0;
- top: 0;
- outline: none;
- height: 20px;
- width: 20px;
- border-radius: 50%;
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
- md-switch .md-thumb:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto; }
- md-switch .md-thumb .md-ripple-container {
- position: absolute;
- display: block;
- width: auto;
- height: auto;
- left: -20px;
- top: -20px;
- right: -20px;
- bottom: -20px; }
- md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb-container, md-switch:not(.md-dragging) .md-thumb {
- transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition-property: -webkit-transform, background-color;
- transition-property: transform, background-color; }
- md-switch:not(.md-dragging) .md-bar, md-switch:not(.md-dragging) .md-thumb {
- transition-delay: 0.05s; }
-
-@media screen and (-ms-high-contrast: active) {
- md-switch.md-default-theme .md-bar {
- background-color: #666; }
- md-switch.md-default-theme.md-checked .md-bar {
- background-color: #9E9E9E; }
- md-switch.md-default-theme .md-thumb {
- background-color: #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.js
deleted file mode 100644
index 131e9a14..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.js
+++ /dev/null
@@ -1,169 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @private
- * @ngdoc module
- * @name material.components.switch
- */
-
-angular.module('material.components.switch', [
- 'material.core',
- 'material.components.checkbox'
-])
- .directive('mdSwitch', MdSwitch);
-
-/**
- * @private
- * @ngdoc directive
- * @module material.components.switch
- * @name mdSwitch
- * @restrict E
- *
- * The switch directive is used very much like the normal [angular checkbox](https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D).
- *
- * As per the [material design spec](http://www.google.com/design/spec/style/color.html#color-ui-color-application)
- * the switch is in the accent color by default. The primary color palette may be used with
- * the `md-primary` class.
- *
- * @param {string} ng-model Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {expression=} ng-true-value The value to which the expression should be set when selected.
- * @param {expression=} ng-false-value The value to which the expression should be set when not selected.
- * @param {string=} ng-change Angular expression to be executed when input changes due to user interaction with the input element.
- * @param {boolean=} md-no-ink Use of attribute indicates use of ripple ink effects.
- * @param {string=} aria-label Publish the button label used by screen-readers for accessibility. Defaults to the switch's text.
- *
- * @usage
- * <hljs lang="html">
- * <md-switch ng-model="isActive" aria-label="Finished?">
- * Finished ?
- * </md-switch>
- *
- * <md-switch md-no-ink ng-model="hasInk" aria-label="No Ink Effects">
- * No Ink Effects
- * </md-switch>
- *
- * <md-switch ng-disabled="true" ng-model="isDisabled" aria-label="Disabled">
- * Disabled
- * </md-switch>
- *
- * </hljs>
- */
-function MdSwitch(mdCheckboxDirective, $mdTheming, $mdUtil, $document, $mdConstant, $parse, $$rAF, $mdGesture) {
- var checkboxDirective = mdCheckboxDirective[0];
-
- return {
- restrict: 'E',
- priority:210, // Run before ngAria
- transclude: true,
- template:
- '<div class="md-container">' +
- '<div class="md-bar"></div>' +
- '<div class="md-thumb-container">' +
- '<div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div>' +
- '</div>'+
- '</div>' +
- '<div ng-transclude class="md-label">' +
- '</div>',
- require: '?ngModel',
- compile: compile
- };
-
- function compile(element, attr) {
- var checkboxLink = checkboxDirective.compile(element, attr);
- // no transition on initial load
- element.addClass('md-dragging');
-
- return function (scope, element, attr, ngModel) {
- ngModel = ngModel || $mdUtil.fakeNgModel();
- var disabledGetter = $parse(attr.ngDisabled);
- var thumbContainer = angular.element(element[0].querySelector('.md-thumb-container'));
- var switchContainer = angular.element(element[0].querySelector('.md-container'));
-
- // no transition on initial load
- $$rAF(function() {
- element.removeClass('md-dragging');
- });
-
- checkboxLink(scope, element, attr, ngModel);
-
- if (angular.isDefined(attr.ngDisabled)) {
- scope.$watch(disabledGetter, function(isDisabled) {
- element.attr('tabindex', isDisabled ? -1 : 0);
- });
- }
-
- // These events are triggered by setup drag
- $mdGesture.register(switchContainer, 'drag');
- switchContainer
- .on('$md.dragstart', onDragStart)
- .on('$md.drag', onDrag)
- .on('$md.dragend', onDragEnd);
-
- var drag;
- function onDragStart(ev) {
- // Don't go if ng-disabled===true
- if (disabledGetter(scope)) return;
- ev.stopPropagation();
-
- element.addClass('md-dragging');
- drag = {
- width: thumbContainer.prop('offsetWidth')
- };
- element.removeClass('transition');
- }
-
- function onDrag(ev) {
- if (!drag) return;
- ev.stopPropagation();
- ev.srcEvent && ev.srcEvent.preventDefault();
-
- var percent = ev.pointer.distanceX / drag.width;
-
- //if checked, start from right. else, start from left
- var translate = ngModel.$viewValue ? 1 + percent : percent;
- // Make sure the switch stays inside its bounds, 0-1%
- translate = Math.max(0, Math.min(1, translate));
-
- thumbContainer.css($mdConstant.CSS.TRANSFORM, 'translate3d(' + (100*translate) + '%,0,0)');
- drag.translate = translate;
- }
-
- function onDragEnd(ev) {
- if (!drag) return;
- ev.stopPropagation();
-
- element.removeClass('md-dragging');
- thumbContainer.css($mdConstant.CSS.TRANSFORM, '');
-
- // We changed if there is no distance (this is a click a click),
- // or if the drag distance is >50% of the total.
- var isChanged = ngModel.$viewValue ? drag.translate < 0.5 : drag.translate > 0.5;
- if (isChanged) {
- applyModelValue(!ngModel.$viewValue);
- }
- drag = null;
- }
-
- function applyModelValue(newValue) {
- scope.$apply(function() {
- ngModel.$setViewValue(newValue);
- ngModel.$render();
- });
- }
-
- };
- }
-
-
-}
-MdSwitch.$inject = ["mdCheckboxDirective", "$mdTheming", "$mdUtil", "$document", "$mdConstant", "$parse", "$$rAF", "$mdGesture"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.min.css
deleted file mode 100644
index a4defdce..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-switch{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:15px;white-space:nowrap;cursor:pointer;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}md-switch .md-container{cursor:-webkit-grab;cursor:grab;width:36px;height:24px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:8px}md-switch:not([disabled]) .md-dragging,md-switch:not([disabled]).md-dragging .md-container{cursor:-webkit-grabbing;cursor:grabbing}md-switch.md-focused:not([disabled]) .md-thumb:before{left:-8px;top:-8px;right:-8px;bottom:-8px}md-switch.md-focused:not([disabled]):not(.md-checked) .md-thumb:before{background-color:rgba(0,0,0,.12)}md-switch .md-label{border-color:transparent;border-width:0}md-switch .md-bar{left:1px;width:34px;top:5px;height:14px;border-radius:8px;position:absolute}md-switch .md-thumb-container{top:2px;left:0;width:16px;position:absolute;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:1}md-switch.md-checked .md-thumb-container{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}md-switch .md-thumb{position:absolute;margin:0;left:0;top:0;outline:0;height:20px;width:20px;border-radius:50%;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084)}md-switch .md-thumb:before{background-color:transparent;border-radius:50%;content:'';position:absolute;display:block;height:auto;left:0;top:0;right:0;bottom:0;transition:all .5s;width:auto}md-switch .md-thumb .md-ripple-container{position:absolute;display:block;width:auto;height:auto;left:-20px;top:-20px;right:-20px;bottom:-20px}md-switch:not(.md-dragging) .md-bar,md-switch:not(.md-dragging) .md-thumb,md-switch:not(.md-dragging) .md-thumb-container{transition:all .5s cubic-bezier(.35,0,.25,1);transition-property:-webkit-transform,background-color;transition-property:transform,background-color}md-switch:not(.md-dragging) .md-bar,md-switch:not(.md-dragging) .md-thumb{transition-delay:.05s}@media screen and (-ms-high-contrast:active){md-switch.md-default-theme .md-bar{background-color:#666}md-switch.md-default-theme.md-checked .md-bar{background-color:#9E9E9E}md-switch.md-default-theme .md-thumb{background-color:#fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.min.js
deleted file mode 100644
index 43adb166..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/switch/switch.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function a(e,n,a,i,r,d,o,s){function c(e,n){var i=l.compile(e,n);return e.addClass("md-dragging"),function(e,n,c,l){function m(t){p(e)||(t.stopPropagation(),n.addClass("md-dragging"),h={width:$.prop("offsetWidth")},n.removeClass("transition"))}function u(e){if(h){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/h.width,n=l.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),$.css(r.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),h.translate=n}}function g(e){if(h){e.stopPropagation(),n.removeClass("md-dragging"),$.css(r.CSS.TRANSFORM,"");var t=l.$viewValue?h.translate<.5:h.translate>.5;t&&v(!l.$viewValue),h=null}}function v(t){e.$apply(function(){l.$setViewValue(t),l.$render()})}l=l||a.fakeNgModel();var p=d(c.ngDisabled),$=t.element(n[0].querySelector(".md-thumb-container")),f=t.element(n[0].querySelector(".md-container"));o(function(){n.removeClass("md-dragging")}),i(e,n,c,l),t.isDefined(c.ngDisabled)&&e.$watch(p,function(e){n.attr("tabindex",e?-1:0)}),s.register(f,"drag"),f.on("$md.dragstart",m).on("$md.drag",u).on("$md.dragend",g);var h}}var l=e[0];return{restrict:"E",priority:210,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:"?ngModel",compile:c}}t.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",a),a.$inject=["mdCheckboxDirective","$mdTheming","$mdUtil","$document","$mdConstant","$parse","$$rAF","$mdGesture"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/bower.json
deleted file mode 100644
index ce0aede5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-tabs",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-icon": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs-default-theme.css
deleted file mode 100644
index 8af08b30..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs-default-theme.css
+++ /dev/null
@@ -1,82 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
- background-color: transparent;
- border-color: '{{foreground-4}}'; }
-md-tabs.md-THEME_NAME-theme .md-paginator md-icon {
- color: '{{primary-color}}'; }
-md-tabs.md-THEME_NAME-theme md-ink-bar {
- color: '{{accent-color}}';
- background: '{{accent-color}}'; }
-md-tabs.md-THEME_NAME-theme .md-tab {
- color: '{{foreground-2}}'; }
- md-tabs.md-THEME_NAME-theme .md-tab[disabled] {
- color: '{{foreground-3}}'; }
- md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-focused {
- color: '{{primary-color}}'; }
- md-tabs.md-THEME_NAME-theme .md-tab.md-focused {
- background: '{{primary-color-0.1}}'; }
- md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container {
- color: '{{accent-100}}'; }
-md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper {
- background-color: '{{accent-color}}'; }
-md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]) {
- color: '{{accent-100}}'; }
- md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused {
- color: '{{accent-contrast}}'; }
- md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused {
- background: '{{accent-contrast-0.1}}'; }
-md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar {
- color: '{{primary-600-1}}';
- background: '{{primary-600-1}}'; }
-md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper {
- background-color: '{{primary-color}}'; }
-md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]) {
- color: '{{primary-100}}'; }
- md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused {
- color: '{{primary-contrast}}'; }
- md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused {
- background: '{{primary-contrast-0.1}}'; }
-md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper {
- background-color: '{{warn-color}}'; }
-md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]) {
- color: '{{warn-100}}'; }
- md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused {
- color: '{{warn-contrast}}'; }
- md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused {
- background: '{{warn-contrast-0.1}}'; }
-
-md-toolbar > md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
- background-color: '{{primary-color}}'; }
-md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) {
- color: '{{primary-100}}'; }
- md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- color: '{{primary-contrast}}'; }
- md-toolbar > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- background: '{{primary-contrast-0.1}}'; }
-
-md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
- background-color: '{{accent-color}}'; }
-md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) {
- color: '{{accent-100}}'; }
- md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- color: '{{accent-contrast}}'; }
- md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- background: '{{accent-contrast-0.1}}'; }
-md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme md-ink-bar {
- color: '{{primary-600-1}}';
- background: '{{primary-600-1}}'; }
-
-md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
- background-color: '{{warn-color}}'; }
-md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]) {
- color: '{{warn-100}}'; }
- md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- color: '{{warn-contrast}}'; }
- md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused {
- background: '{{warn-contrast-0.1}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs-default-theme.min.css
deleted file mode 100644
index 698054d3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:'{{foreground-4}}'}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:'{{primary-color}}'}md-tabs.md-THEME_NAME-theme md-ink-bar{color:'{{accent-color}}';background:0 0}md-tabs.md-THEME_NAME-theme .md-tab{color:'{{foreground-2}}'}md-tabs.md-THEME_NAME-theme .md-tab[disabled]{color:'{{foreground-3}}'}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-focused{color:'{{primary-color}}'}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:0 0}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:'{{accent-100}}'}md-tabs.md-THEME_NAME-theme.md-accent md-tabs-wrapper{background-color:'{{accent-color}}'}md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]){color:'{{accent-100}}'}md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused{color:'{{accent-contrast}}'}md-tabs.md-THEME_NAME-theme.md-accent md-tab-item:not([disabled]).md-focused{background:0 0}md-tabs.md-THEME_NAME-theme.md-accent md-ink-bar{color:'{{primary-600-1}}';background:0 0}md-tabs.md-THEME_NAME-theme.md-primary md-tabs-wrapper{background-color:'{{primary-color}}'}md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]){color:'{{primary-100}}'}md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused{color:'{{primary-contrast}}'}md-tabs.md-THEME_NAME-theme.md-primary md-tab-item:not([disabled]).md-focused{background:0 0}md-tabs.md-THEME_NAME-theme.md-warn md-tabs-wrapper{background-color:'{{warn-color}}'}md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]){color:'{{warn-100}}'}md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused{color:'{{warn-contrast}}'}md-tabs.md-THEME_NAME-theme.md-warn md-tab-item:not([disabled]).md-focused{background:0 0}md-toolbar>md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:'{{primary-color}}'}md-toolbar>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]){color:'{{primary-100}}'}md-toolbar>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused{color:'{{primary-contrast}}'}md-toolbar>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused{background:0 0}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:'{{accent-color}}'}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]){color:'{{accent-100}}'}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused{color:'{{accent-contrast}}'}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused{background:0 0}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme md-ink-bar{color:'{{primary-600-1}}';background:0 0}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:'{{warn-color}}'}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]){color:'{{warn-100}}'}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused{color:'{{warn-contrast}}'}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme md-tab-item:not([disabled]).md-focused{background:0 0} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.css
deleted file mode 100644
index fbd4539e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.css
+++ /dev/null
@@ -1,272 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-@-webkit-keyframes md-tab-content-hide {
- 0% {
- opacity: 1; }
-
- 50% {
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-@keyframes md-tab-content-hide {
- 0% {
- opacity: 1; }
-
- 50% {
- opacity: 1; }
-
- 100% {
- opacity: 0; } }
-
-md-tab-data {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: -1;
- opacity: 0; }
-
-md-tabs {
- display: block;
- margin: 0;
- border-radius: 2px;
- overflow: hidden;
- position: relative;
- -webkit-flex-shrink: 0;
- -ms-flex-negative: 0;
- flex-shrink: 0; }
- md-tabs.ng-animate {
- transition: height 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-tabs:not(.md-no-tab-content):not([md-dynamic-height]) {
- min-height: 248px; }
- md-tabs[md-align-tabs="bottom"] md-tabs-wrapper {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- height: 48px; }
- md-tabs[md-align-tabs="bottom"] md-tabs-content-wrapper {
- top: 0;
- bottom: 48px; }
- md-tabs[md-dynamic-height] md-tabs-content-wrapper {
- min-height: 0;
- position: relative;
- top: auto;
- left: auto;
- right: auto;
- bottom: auto;
- overflow: visible; }
- md-tabs[md-dynamic-height] md-tab-content.md-active {
- position: relative; }
- md-tabs[md-border-bottom] md-tabs-wrapper {
- border-width: 0 0 1px;
- border-style: solid; }
- md-tabs[md-border-bottom] md-tabs-wrapper .md-tab {
- padding-bottom: 11px; }
- md-tabs[md-border-bottom]:not([md-dynamic-height]) md-tabs-content-wrapper {
- top: 49px; }
-
-md-tabs-wrapper {
- display: block;
- position: relative; }
- md-tabs-wrapper md-prev-button, md-tabs-wrapper md-next-button {
- height: 100%;
- width: 32px;
- position: absolute;
- top: 50%;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- line-height: 1em;
- z-index: 2;
- cursor: pointer;
- font-size: 16px;
- background: transparent no-repeat center center;
- transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-tabs-wrapper md-prev-button:focus, md-tabs-wrapper md-next-button:focus {
- outline: none; }
- md-tabs-wrapper md-prev-button.md-disabled, md-tabs-wrapper md-next-button.md-disabled {
- opacity: 0.25;
- cursor: default; }
- md-tabs-wrapper md-prev-button.ng-leave, md-tabs-wrapper md-next-button.ng-leave {
- transition: none; }
- md-tabs-wrapper md-prev-button md-icon, md-tabs-wrapper md-next-button md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate3d(-50%, -50%, 0);
- transform: translate3d(-50%, -50%, 0); }
- md-tabs-wrapper md-prev-button {
- left: 0;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMjA4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyIAkJIiBzdHlsZT0iZmlsbDp3aGl0ZTsiLz4gPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+IDwvZz4gPC9nPiA8ZyBpZD0iR3JpZCIgZGlzcGxheT0ibm9uZSI+IDxnIGRpc3BsYXk9ImlubGluZSI+IDwvZz4gPC9nPiA8L3N2Zz4NCg=='); }
- md-tabs-wrapper md-next-button {
- right: 0;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMzM2IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTAsNiA4LjYsNy40IDEzLjIsMTIgOC42LDE2LjYgMTAsMTggMTYsMTIgCQkiIHN0eWxlPSJmaWxsOndoaXRlOyIvPiA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4gPC9nPiA8L2c+IDxnIGlkPSJHcmlkIiBkaXNwbGF5PSJub25lIj4gPGcgZGlzcGxheT0iaW5saW5lIj4gPC9nPiA8L2c+IDwvc3ZnPg0K'); }
- md-tabs-wrapper md-next-button md-icon {
- -webkit-transform: translate3d(-50%, -50%, 0) rotate(180deg);
- transform: translate3d(-50%, -50%, 0) rotate(180deg); }
- md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper {
- width: 100%;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row; }
- md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper md-tab-item {
- -webkit-flex-grow: 1;
- -ms-flex-positive: 1;
- flex-grow: 1; }
-
-md-tabs-canvas {
- position: relative;
- overflow: hidden;
- display: block;
- height: 48px; }
- md-tabs-canvas:after {
- content: '';
- display: table;
- clear: both; }
- md-tabs-canvas .md-dummy-wrapper {
- position: absolute;
- top: 0;
- left: 0; }
- md-tabs-canvas.md-paginated {
- margin: 0 32px; }
- md-tabs-canvas.md-center-tabs {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
-
-md-pagination-wrapper {
- height: 48px;
- display: block;
- transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- position: absolute;
- width: 999999px;
- left: 0;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
- md-pagination-wrapper:after {
- content: '';
- display: table;
- clear: both; }
- md-pagination-wrapper.md-center-tabs {
- position: relative;
- width: initial;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- margin: 0 auto; }
-
-md-tabs-content-wrapper {
- display: block;
- position: absolute;
- top: 48px;
- left: 0;
- right: 0;
- bottom: 0;
- overflow: hidden; }
-
-md-tab-content {
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- -webkit-transform: translateX(0);
- transform: translateX(0);
- transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
- overflow: auto; }
- md-tab-content.md-no-scroll {
- bottom: auto;
- overflow: hidden; }
- md-tab-content.ng-leave, md-tab-content.md-no-transition {
- transition: none; }
- md-tab-content.md-left {
- -webkit-transform: translateX(-100%);
- transform: translateX(-100%);
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide;
- opacity: 0; }
- md-tab-content.md-left * {
- transition: visibility 0s linear;
- transition-delay: 0.5s;
- visibility: hidden; }
- md-tab-content.md-right {
- -webkit-transform: translateX(100%);
- transform: translateX(100%);
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide;
- opacity: 0; }
- md-tab-content.md-right * {
- transition: visibility 0s linear;
- transition-delay: 0.5s;
- visibility: hidden; }
- md-tab-content > div.ng-leave {
- -webkit-animation: 1s md-tab-content-hide;
- animation: 1s md-tab-content-hide; }
-
-md-ink-bar {
- position: absolute;
- left: auto;
- right: auto;
- bottom: 0;
- height: 2px; }
- md-ink-bar.md-left {
- transition: left 0.225s cubic-bezier(0.35, 0, 0.25, 1), right 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
- md-ink-bar.md-right {
- transition: left 0.5s cubic-bezier(0.35, 0, 0.25, 1), right 0.225s cubic-bezier(0.35, 0, 0.25, 1); }
-
-md-tab {
- position: absolute;
- z-index: -1;
- left: -9999px; }
-
-.md-tab {
- font-size: 14px;
- text-align: center;
- line-height: 24px;
- padding: 12px 24px;
- transition: background-color 0.35s cubic-bezier(0.35, 0, 0.25, 1);
- cursor: pointer;
- white-space: nowrap;
- position: relative;
- text-transform: uppercase;
- float: left;
- font-weight: 500;
- box-sizing: border-box; }
- .md-tab.md-focused {
- box-shadow: none;
- outline: none; }
- .md-tab.md-active {
- cursor: default; }
- .md-tab.md-disabled {
- pointer-events: none;
- -ms-touch-action: pan-y;
- touch-action: pan-y;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- -webkit-user-drag: none;
- opacity: 0.5;
- cursor: default; }
- .md-tab.ng-leave {
- transition: none; }
-
-md-toolbar + md-tabs {
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.js
deleted file mode 100644
index 4d182464..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.js
+++ /dev/null
@@ -1,867 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.tabs
- * @description
- *
- * Tabs, created with the `<md-tabs>` directive provide *tabbed* navigation with different styles.
- * The Tabs component consists of clickable tabs that are aligned horizontally side-by-side.
- *
- * Features include support for:
- *
- * - static or dynamic tabs,
- * - responsive designs,
- * - accessibility support (ARIA),
- * - tab pagination,
- * - external or internal tab content,
- * - focus indicators and arrow-key navigations,
- * - programmatic lookup and access to tab controllers, and
- * - dynamic transitions through different tab contents.
- *
- */
-/*
- * @see js folder for tabs implementation
- */
-angular.module('material.components.tabs', [
- 'material.core',
- 'material.components.icon'
-]);
-
-/**
- * @ngdoc directive
- * @name mdTab
- * @module material.components.tabs
- *
- * @restrict E
- *
- * @description
- * Use the `<md-tab>` a nested directive used within `<md-tabs>` to specify a tab with a **label** and optional *view content*.
- *
- * If the `label` attribute is not specified, then an optional `<md-tab-label>` tag can be used to specify more
- * complex tab header markup. If neither the **label** nor the **md-tab-label** are specified, then the nested
- * markup of the `<md-tab>` is used as the tab header markup.
- *
- * Please note that if you use `<md-tab-label>`, your content **MUST** be wrapped in the `<md-tab-body>` tag. This
- * is to define a clear separation between the tab content and the tab label.
- *
- * If a tab **label** has been identified, then any **non-**`<md-tab-label>` markup
- * will be considered tab content and will be transcluded to the internal `<div class="md-tabs-content">` container.
- *
- * This container is used by the TabsController to show/hide the active tab's content view. This synchronization is
- * automatically managed by the internal TabsController whenever the tab selection changes. Selection changes can
- * be initiated via data binding changes, programmatic invocation, or user gestures.
- *
- * @param {string=} label Optional attribute to specify a simple string as the tab label
- * @param {boolean=} disabled If present, disabled tab selection.
- * @param {expression=} md-on-deselect Expression to be evaluated after the tab has been de-selected.
- * @param {expression=} md-on-select Expression to be evaluated after the tab has been selected.
- *
- *
- * @usage
- *
- * <hljs lang="html">
- * <md-tab label="" disabled="" md-on-select="" md-on-deselect="" >
- * <h3>My Tab content</h3>
- * </md-tab>
- *
- * <md-tab >
- * <md-tab-label>
- * <h3>My Tab content</h3>
- * </md-tab-label>
- * <md-tab-body>
- * <p>
- * Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
- * totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
- * dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
- * sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
- * </p>
- * </md-tab-body>
- * </md-tab>
- * </hljs>
- *
- */
-angular
- .module('material.components.tabs')
- .directive('mdTab', MdTab);
-
-function MdTab () {
- return {
- require: '^?mdTabs',
- terminal: true,
- template: function (element, attr) {
- var label = getLabel(),
- body = getTemplate();
- return '' +
- '<md-tab-label>' + label + '</md-tab-label>' +
- '<md-tab-body>' + body + '</md-tab-body>';
- function getLabel () {
- return getLabelElement() || getLabelAttribute() || getElementContents();
- function getLabelAttribute () { return attr.label; }
- function getLabelElement () {
- var label = element.find('md-tab-label');
- if (label.length) return label.remove().html();
- }
- function getElementContents () {
- var html = element.html();
- element.empty();
- return html;
- }
- }
- function getTemplate () {
- var content = element.find('md-tab-body'),
- template = content.length ? content.html() : attr.label ? element.html() : '';
- if (content.length) content.remove();
- else if (attr.label) element.empty();
- return template;
- }
- },
- scope: {
- active: '=?mdActive',
- disabled: '=?ngDisabled',
- select: '&?mdOnSelect',
- deselect: '&?mdOnDeselect'
- },
- link: postLink
- };
-
- function postLink (scope, element, attr, ctrl) {
- if (!ctrl) return;
- var tabs = element.parent()[0].getElementsByTagName('md-tab'),
- index = Array.prototype.indexOf.call(tabs, element[0]),
- body = element.find('md-tab-body').remove(),
- label = element.find('md-tab-label').remove(),
- data = ctrl.insertTab({
- scope: scope,
- parent: scope.$parent,
- index: index,
- element: element,
- template: body.html(),
- label: label.html()
- }, index);
-
- scope.select = scope.select || angular.noop;
- scope.deselect = scope.deselect || angular.noop;
-
- scope.$watch('active', function (active) { if (active) ctrl.select(data.getIndex()); });
- scope.$watch('disabled', function () { ctrl.refreshIndex(); });
- scope.$watch(
- function () {
- return Array.prototype.indexOf.call(tabs, element[0]);
- },
- function (newIndex) {
- data.index = newIndex;
- ctrl.updateTabOrder();
- }
- );
- scope.$on('$destroy', function () { ctrl.removeTab(data); });
-
- }
-}
-
-angular
- .module('material.components.tabs')
- .directive('mdTabItem', MdTabItem);
-
-function MdTabItem () {
- return {
- require: '^?mdTabs',
- link: function link (scope, element, attr, ctrl) {
- if (!ctrl) return;
- ctrl.attachRipple(scope, element);
- }
- };
-}
-
-angular
- .module('material.components.tabs')
- .directive('mdTabLabel', MdTabLabel);
-
-function MdTabLabel () {
- return { terminal: true };
-}
-
-
-angular.module('material.components.tabs')
- .directive('mdTabScroll', MdTabScroll);
-
-function MdTabScroll ($parse) {
- return {
- restrict: 'A',
- compile: function ($element, attr) {
- var fn = $parse(attr.mdTabScroll, null, true);
- return function ngEventHandler (scope, element) {
- element.on('mousewheel', function (event) {
- scope.$apply(function () { fn(scope, { $event: event }); });
- });
- };
- }
- }
-}
-MdTabScroll.$inject = ["$parse"];
-
-angular
- .module('material.components.tabs')
- .controller('MdTabsController', MdTabsController);
-
-/**
- * ngInject
- */
-function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $mdTabInkRipple,
- $mdUtil, $animate) {
- var ctrl = this,
- locked = false,
- elements = getElements(),
- queue = [],
- destroyed = false;
-
- ctrl.scope = $scope;
- ctrl.parent = $scope.$parent;
- ctrl.tabs = [];
- ctrl.lastSelectedIndex = null;
- ctrl.focusIndex = $scope.selectedIndex || 0;
- ctrl.offsetLeft = 0;
- ctrl.hasContent = false;
- ctrl.hasFocus = false;
- ctrl.lastClick = true;
-
- ctrl.redirectFocus = redirectFocus;
- ctrl.attachRipple = attachRipple;
- ctrl.shouldStretchTabs = shouldStretchTabs;
- ctrl.shouldPaginate = shouldPaginate;
- ctrl.shouldCenterTabs = shouldCenterTabs;
- ctrl.insertTab = insertTab;
- ctrl.removeTab = removeTab;
- ctrl.select = select;
- ctrl.scroll = scroll;
- ctrl.nextPage = nextPage;
- ctrl.previousPage = previousPage;
- ctrl.keydown = keydown;
- ctrl.canPageForward = canPageForward;
- ctrl.canPageBack = canPageBack;
- ctrl.refreshIndex = refreshIndex;
- ctrl.incrementSelectedIndex = incrementSelectedIndex;
- ctrl.updateInkBarStyles = $mdUtil.debounce(updateInkBarStyles, 100);
- ctrl.updateTabOrder = $mdUtil.debounce(updateTabOrder, 100);
-
- init();
-
- function init () {
- $scope.$watch('selectedIndex', handleSelectedIndexChange);
- $scope.$watch('$mdTabsCtrl.focusIndex', handleFocusIndexChange);
- $scope.$watch('$mdTabsCtrl.offsetLeft', handleOffsetChange);
- $scope.$watch('$mdTabsCtrl.hasContent', handleHasContent);
- angular.element($window).on('resize', handleWindowResize);
- angular.element(elements.paging).on('DOMSubtreeModified', ctrl.updateInkBarStyles);
- $timeout(updateHeightFromContent, 0, false);
- $timeout(adjustOffset);
- $scope.$on('$destroy', cleanup);
- }
-
- function cleanup () {
- destroyed = true;
- angular.element($window).off('resize', handleWindowResize);
- angular.element(elements.paging).off('DOMSubtreeModified', ctrl.updateInkBarStyles);
- }
-
- //-- Change handlers
-
- function handleHasContent (hasContent) {
- $element[hasContent ? 'removeClass' : 'addClass']('md-no-tab-content');
- }
-
- function handleOffsetChange (left) {
- var newValue = shouldCenterTabs() ? '' : '-' + left + 'px';
- angular.element(elements.paging).css('transform', 'translate3d(' + newValue + ', 0, 0)');
- $scope.$broadcast('$mdTabsPaginationChanged');
- }
-
- function handleFocusIndexChange (newIndex, oldIndex) {
- if (newIndex === oldIndex) return;
- if (!elements.tabs[newIndex]) return;
- adjustOffset();
- redirectFocus();
- }
-
- function handleSelectedIndexChange (newValue, oldValue) {
- if (newValue === oldValue) return;
-
- $scope.selectedIndex = getNearestSafeIndex(newValue);
- ctrl.lastSelectedIndex = oldValue;
- ctrl.updateInkBarStyles();
- updateHeightFromContent();
- $scope.$broadcast('$mdTabsChanged');
- ctrl.tabs[oldValue] && ctrl.tabs[oldValue].scope.deselect();
- ctrl.tabs[newValue] && ctrl.tabs[newValue].scope.select();
- }
-
- function handleResizeWhenVisible () {
- //-- if there is already a watcher waiting for resize, do nothing
- if (handleResizeWhenVisible.watcher) return;
- //-- otherwise, we will abuse the $watch function to check for visible
- handleResizeWhenVisible.watcher = $scope.$watch(function () {
- //-- since we are checking for DOM size, we use $timeout to wait for after the DOM updates
- $timeout(function () {
- //-- if the watcher has already run (ie. multiple digests in one cycle), do nothing
- if (!handleResizeWhenVisible.watcher) return;
-
- if ($element.prop('offsetParent')) {
- handleResizeWhenVisible.watcher();
- handleResizeWhenVisible.watcher = null;
-
- //-- we have to trigger our own $apply so that the DOM bindings will update
- handleWindowResize();
- }
- }, 0, false);
- });
- }
-
- //-- Event handlers / actions
-
- function keydown (event) {
- switch (event.keyCode) {
- case $mdConstant.KEY_CODE.LEFT_ARROW:
- event.preventDefault();
- incrementSelectedIndex(-1, true);
- break;
- case $mdConstant.KEY_CODE.RIGHT_ARROW:
- event.preventDefault();
- incrementSelectedIndex(1, true);
- break;
- case $mdConstant.KEY_CODE.SPACE:
- case $mdConstant.KEY_CODE.ENTER:
- event.preventDefault();
- if (!locked) $scope.selectedIndex = ctrl.focusIndex;
- break;
- }
- ctrl.lastClick = false;
- }
-
- function select (index) {
- if (!locked) ctrl.focusIndex = $scope.selectedIndex = index;
- ctrl.lastClick = true;
- ctrl.tabs[index].element.triggerHandler('click');
- }
-
- function scroll (event) {
- if (!shouldPaginate()) return;
- event.preventDefault();
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft - event.wheelDelta);
- }
-
- function nextPage () {
- var viewportWidth = elements.canvas.clientWidth,
- totalWidth = viewportWidth + ctrl.offsetLeft,
- i, tab;
- for (i = 0; i < elements.tabs.length; i++) {
- tab = elements.tabs[i];
- if (tab.offsetLeft + tab.offsetWidth > totalWidth) break;
- }
- ctrl.offsetLeft = fixOffset(tab.offsetLeft);
- }
-
- function previousPage () {
- var i, tab;
- for (i = 0; i < elements.tabs.length; i++) {
- tab = elements.tabs[i];
- if (tab.offsetLeft + tab.offsetWidth >= ctrl.offsetLeft) break;
- }
- ctrl.offsetLeft = fixOffset(tab.offsetLeft + tab.offsetWidth - elements.canvas.clientWidth);
- }
-
- function handleWindowResize () {
- $scope.$apply(function () {
- ctrl.lastSelectedIndex = $scope.selectedIndex;
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft);
- $timeout(ctrl.updateInkBarStyles, 0, false);
- });
- }
-
- function removeTab (tabData) {
- var selectedIndex = $scope.selectedIndex,
- tab = ctrl.tabs.splice(tabData.getIndex(), 1)[0];
- refreshIndex();
- //-- when removing a tab, if the selected index did not change, we have to manually trigger the
- // tab select/deselect events
- if ($scope.selectedIndex === selectedIndex && !destroyed) {
- tab.scope.deselect();
- ctrl.tabs[$scope.selectedIndex] && ctrl.tabs[$scope.selectedIndex].scope.select();
- }
- $timeout(function () {
- ctrl.offsetLeft = fixOffset(ctrl.offsetLeft);
- });
- }
-
- function insertTab (tabData, index) {
- var proto = {
- getIndex: function () { return ctrl.tabs.indexOf(tab); },
- isActive: function () { return this.getIndex() === $scope.selectedIndex; },
- isLeft: function () { return this.getIndex() < $scope.selectedIndex; },
- isRight: function () { return this.getIndex() > $scope.selectedIndex; },
- shouldRender: function () { return !$scope.noDisconnect || this.isActive(); },
- hasFocus: function () { return !ctrl.lastClick && ctrl.hasFocus && this.getIndex() === ctrl.focusIndex; },
- id: $mdUtil.nextUid()
- },
- tab = angular.extend(proto, tabData);
- if (angular.isDefined(index)) {
- ctrl.tabs.splice(index, 0, tab);
- } else {
- ctrl.tabs.push(tab);
- }
- processQueue();
- updateHasContent();
- return tab;
- }
-
- //-- Getter methods
-
- function getElements () {
- var elements = {};
-
- //-- gather tab bar elements
- elements.wrapper = $element[0].getElementsByTagName('md-tabs-wrapper')[0];
- elements.canvas = elements.wrapper.getElementsByTagName('md-tabs-canvas')[0];
- elements.paging = elements.canvas.getElementsByTagName('md-pagination-wrapper')[0];
- elements.tabs = elements.paging.getElementsByTagName('md-tab-item');
- elements.dummies = elements.canvas.getElementsByTagName('md-dummy-tab');
- elements.inkBar = elements.paging.getElementsByTagName('md-ink-bar')[0];
-
- //-- gather tab content elements
- elements.contentsWrapper = $element[0].getElementsByTagName('md-tabs-content-wrapper')[0];
- elements.contents = elements.contentsWrapper.getElementsByTagName('md-tab-content');
-
- return elements;
- }
-
- function canPageBack () {
- return ctrl.offsetLeft > 0;
- }
-
- function canPageForward () {
- var lastTab = elements.tabs[elements.tabs.length - 1];
- return lastTab && lastTab.offsetLeft + lastTab.offsetWidth > elements.canvas.clientWidth + ctrl.offsetLeft;
- }
-
- function shouldStretchTabs () {
- switch ($scope.stretchTabs) {
- case 'always': return true;
- case 'never': return false;
- default: return !shouldPaginate() && $window.matchMedia('(max-width: 600px)').matches;
- }
- }
-
- function shouldCenterTabs () {
- return $scope.centerTabs && !shouldPaginate();
- }
-
- function shouldPaginate () {
- if ($scope.noPagination) return false;
- var canvasWidth = $element.prop('clientWidth');
- angular.forEach(elements.tabs, function (tab) { canvasWidth -= tab.offsetWidth; });
- return canvasWidth < 0;
- }
-
- function getNearestSafeIndex(newIndex) {
- var maxOffset = Math.max(ctrl.tabs.length - newIndex, newIndex),
- i, tab;
- for (i = 0; i <= maxOffset; i++) {
- tab = ctrl.tabs[newIndex + i];
- if (tab && (tab.scope.disabled !== true)) return tab.getIndex();
- tab = ctrl.tabs[newIndex - i];
- if (tab && (tab.scope.disabled !== true)) return tab.getIndex();
- }
- return newIndex;
- }
-
- //-- Utility methods
-
- function updateTabOrder () {
- var selectedItem = ctrl.tabs[$scope.selectedIndex],
- focusItem = ctrl.tabs[ctrl.focusIndex];
- ctrl.tabs = ctrl.tabs.sort(function (a, b) {
- return a.index - b.index;
- });
- $scope.selectedIndex = ctrl.tabs.indexOf(selectedItem);
- ctrl.focusIndex = ctrl.tabs.indexOf(focusItem);
- }
-
- function incrementSelectedIndex (inc, focus) {
- var newIndex,
- index = focus ? ctrl.focusIndex : $scope.selectedIndex;
- for (newIndex = index + inc;
- ctrl.tabs[newIndex] && ctrl.tabs[newIndex].scope.disabled;
- newIndex += inc) {}
- if (ctrl.tabs[newIndex]) {
- if (focus) ctrl.focusIndex = newIndex;
- else $scope.selectedIndex = newIndex;
- }
- }
-
- function redirectFocus () {
- elements.dummies[ctrl.focusIndex].focus();
- }
-
- function adjustOffset () {
- if (shouldCenterTabs()) return;
- var tab = elements.tabs[ctrl.focusIndex],
- left = tab.offsetLeft,
- right = tab.offsetWidth + left;
- ctrl.offsetLeft = Math.max(ctrl.offsetLeft, fixOffset(right - elements.canvas.clientWidth));
- ctrl.offsetLeft = Math.min(ctrl.offsetLeft, fixOffset(left));
- }
-
- function processQueue () {
- queue.forEach(function (func) { $timeout(func); });
- queue = [];
- }
-
- function updateHasContent () {
- var hasContent = false;
- angular.forEach(ctrl.tabs, function (tab) {
- if (tab.template) hasContent = true;
- });
- ctrl.hasContent = hasContent;
- }
-
- function refreshIndex () {
- $scope.selectedIndex = getNearestSafeIndex($scope.selectedIndex);
- ctrl.focusIndex = getNearestSafeIndex(ctrl.focusIndex);
- }
-
- function updateHeightFromContent () {
- if (!$scope.dynamicHeight) return $element.css('height', '');
- if (!ctrl.tabs.length) return queue.push(updateHeightFromContent);
- var tabContent = elements.contents[$scope.selectedIndex],
- contentHeight = tabContent ? tabContent.offsetHeight : 0,
- tabsHeight = elements.wrapper.offsetHeight,
- newHeight = contentHeight + tabsHeight,
- currentHeight = $element.prop('clientHeight');
- if (currentHeight === newHeight) return;
- locked = true;
- $animate
- .animate(
- $element,
- { height: currentHeight + 'px' },
- { height: newHeight + 'px'}
- )
- .then(function () {
- $element.css('height', '');
- locked = false;
- });
- }
-
- function updateInkBarStyles () {
- if (!elements.tabs[$scope.selectedIndex]) return;
- if (!ctrl.tabs.length) return queue.push(ctrl.updateInkBarStyles);
- //-- if the element is not visible, we will not be able to calculate sizes until it is
- //-- we should treat that as a resize event rather than just updating the ink bar
- if (!$element.prop('offsetParent')) return handleResizeWhenVisible();
- var index = $scope.selectedIndex,
- totalWidth = elements.paging.offsetWidth,
- tab = elements.tabs[index],
- left = tab.offsetLeft,
- right = totalWidth - left - tab.offsetWidth;
- updateInkBarClassName();
- angular.element(elements.inkBar).css({ left: left + 'px', right: right + 'px' });
- }
-
- function updateInkBarClassName () {
- var newIndex = $scope.selectedIndex,
- oldIndex = ctrl.lastSelectedIndex,
- ink = angular.element(elements.inkBar);
- ink.removeClass('md-left md-right');
- if (!angular.isNumber(oldIndex)) return;
- if (newIndex < oldIndex) {
- ink.addClass('md-left');
- } else if (newIndex > oldIndex) {
- ink.addClass('md-right');
- }
- }
-
- function fixOffset (value) {
- if (!elements.tabs.length || !shouldPaginate()) return 0;
- var lastTab = elements.tabs[elements.tabs.length - 1],
- totalWidth = lastTab.offsetLeft + lastTab.offsetWidth;
- value = Math.max(0, value);
- value = Math.min(totalWidth - elements.canvas.clientWidth, value);
- return value;
- }
-
- function attachRipple (scope, element) {
- var options = { colorElement: angular.element(elements.inkBar) };
- $mdTabInkRipple.attach(scope, element, options);
- }
-}
-MdTabsController.$inject = ["$scope", "$element", "$window", "$timeout", "$mdConstant", "$mdTabInkRipple", "$mdUtil", "$animate"];
-
-/**
- * @ngdoc directive
- * @name mdTabs
- * @module material.components.tabs
- *
- * @restrict E
- *
- * @description
- * The `<md-tabs>` directive serves as the container for 1..n `<md-tab>` child directives to produces a Tabs components.
- * In turn, the nested `<md-tab>` directive is used to specify a tab label for the **header button** and a [optional] tab view
- * content that will be associated with each tab button.
- *
- * Below is the markup for its simplest usage:
- *
- * <hljs lang="html">
- * <md-tabs>
- * <md-tab label="Tab #1"></md-tab>
- * <md-tab label="Tab #2"></md-tab>
- * <md-tab label="Tab #3"></md-tab>
- * </md-tabs>
- * </hljs>
- *
- * Tabs supports three (3) usage scenarios:
- *
- * 1. Tabs (buttons only)
- * 2. Tabs with internal view content
- * 3. Tabs with external view content
- *
- * **Tab-only** support is useful when tab buttons are used for custom navigation regardless of any other components, content, or views.
- * **Tabs with internal views** are the traditional usages where each tab has associated view content and the view switching is managed internally by the Tabs component.
- * **Tabs with external view content** is often useful when content associated with each tab is independently managed and data-binding notifications announce tab selection changes.
- *
- * Additional features also include:
- *
- * * Content can include any markup.
- * * If a tab is disabled while active/selected, then the next tab will be auto-selected.
- *
- * ### Explanation of tab stretching
- *
- * Initially, tabs will have an inherent size. This size will either be defined by how much space is needed to accommodate their text or set by the user through CSS. Calculations will be based on this size.
- *
- * On mobile devices, tabs will be expanded to fill the available horizontal space. When this happens, all tabs will become the same size.
- *
- * On desktops, by default, stretching will never occur.
- *
- * This default behavior can be overridden through the `md-stretch-tabs` attribute. Here is a table showing when stretching will occur:
- *
- * `md-stretch-tabs` | mobile | desktop
- * ------------------|-----------|--------
- * `auto` | stretched | ---
- * `always` | stretched | stretched
- * `never` | --- | ---
- *
- * @param {integer=} md-selected Index of the active/selected tab
- * @param {boolean=} md-no-ink If present, disables ink ripple effects.
- * @param {boolean=} md-no-bar If present, disables the selection ink bar.
- * @param {string=} md-align-tabs Attribute to indicate position of tab buttons: `bottom` or `top`; default is `top`
- * @param {string=} md-stretch-tabs Attribute to indicate whether or not to stretch tabs: `auto`, `always`, or `never`; default is `auto`
- * @param {boolean=} md-dynamic-height When enabled, the tab wrapper will resize based on the contents of the selected tab
- * @param {boolean=} md-center-tabs When enabled, tabs will be centered provided there is no need for pagination
- * @param {boolean=} md-no-pagination When enabled, pagination will remain off
- * @param {boolean=} md-swipe-content When enabled, swipe gestures will be enabled for the content area to jump between tabs
- * @param {boolean=} md-no-disconnect If your tab content has background tasks (ie. event listeners), you will want to include this to prevent the scope from being disconnected
- *
- * @usage
- * <hljs lang="html">
- * <md-tabs md-selected="selectedIndex" >
- * <img ng-src="img/angular.png" class="centered">
- * <md-tab
- * ng-repeat="tab in tabs | orderBy:predicate:reversed"
- * md-on-select="onTabSelected(tab)"
- * md-on-deselect="announceDeselected(tab)"
- * ng-disabled="tab.disabled">
- * <md-tab-label>
- * {{tab.title}}
- * <img src="img/removeTab.png" ng-click="removeTab(tab)" class="delete">
- * </md-tab-label>
- * <md-tab-body>
- * {{tab.content}}
- * </md-tab-body>
- * </md-tab>
- * </md-tabs>
- * </hljs>
- *
- */
-angular
- .module('material.components.tabs')
- .directive('mdTabs', MdTabs);
-
-function MdTabs ($mdTheming, $mdUtil, $compile) {
- return {
- scope: {
- noPagination: '=?mdNoPagination',
- dynamicHeight: '=?mdDynamicHeight',
- centerTabs: '=?mdCenterTabs',
- selectedIndex: '=?mdSelected',
- stretchTabs: '@?mdStretchTabs',
- swipeContent: '=?mdSwipeContent',
- noDisconnect: '=?mdNoDisconnect'
- },
- template: function (element, attr) {
- attr["$mdTabsTemplate"] = element.html();
- return '\
- <md-tabs-wrapper ng-class="{ \'md-stretch-tabs\': $mdTabsCtrl.shouldStretchTabs() }">\
- <md-tab-data></md-tab-data>\
- <md-prev-button\
- tabindex="-1"\
- role="button"\
- aria-label="Previous Page"\
- aria-disabled="{{!$mdTabsCtrl.canPageBack()}}"\
- ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }"\
- ng-if="$mdTabsCtrl.shouldPaginate()"\
- ng-click="$mdTabsCtrl.previousPage()">\
- <md-icon md-svg-icon="md-tabs-arrow"></md-icon>\
- </md-prev-button>\
- <md-next-button\
- tabindex="-1"\
- role="button"\
- aria-label="Next Page"\
- aria-disabled="{{!$mdTabsCtrl.canPageForward()}}"\
- ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }"\
- ng-if="$mdTabsCtrl.shouldPaginate()"\
- ng-click="$mdTabsCtrl.nextPage()">\
- <md-icon md-svg-icon="md-tabs-arrow"></md-icon>\
- </md-next-button>\
- <md-tabs-canvas\
- tabindex="0"\
- aria-activedescendant="tab-item-{{$mdTabsCtrl.tabs[$mdTabsCtrl.focusIndex].id}}"\
- ng-focus="$mdTabsCtrl.redirectFocus()"\
- ng-class="{\
- \'md-paginated\': $mdTabsCtrl.shouldPaginate(),\
- \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs()\
- }"\
- ng-keydown="$mdTabsCtrl.keydown($event)"\
- role="tablist">\
- <md-pagination-wrapper\
- ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs() }"\
- md-tab-scroll="$mdTabsCtrl.scroll($event)">\
- <md-tab-item\
- tabindex="-1"\
- class="md-tab"\
- style="max-width: {{ tabWidth ? tabWidth + \'px\' : \'none\' }}"\
- ng-repeat="tab in $mdTabsCtrl.tabs"\
- role="tab"\
- aria-controls="tab-content-{{tab.id}}"\
- aria-selected="{{tab.isActive()}}"\
- aria-disabled="{{tab.scope.disabled || \'false\'}}"\
- ng-click="$mdTabsCtrl.select(tab.getIndex())"\
- ng-class="{\
- \'md-active\': tab.isActive(),\
- \'md-focused\': tab.hasFocus(),\
- \'md-disabled\': tab.scope.disabled\
- }"\
- ng-disabled="tab.scope.disabled"\
- md-swipe-left="$mdTabsCtrl.nextPage()"\
- md-swipe-right="$mdTabsCtrl.previousPage()"\
- md-template="tab.label"\
- md-scope="tab.parent"></md-tab-item>\
- <md-ink-bar ng-hide="noInkBar"></md-ink-bar>\
- </md-pagination-wrapper>\
- <div class="md-visually-hidden md-dummy-wrapper">\
- <md-dummy-tab\
- tabindex="-1"\
- id="tab-item-{{tab.id}}"\
- role="tab"\
- aria-controls="tab-content-{{tab.id}}"\
- aria-selected="{{tab.isActive()}}"\
- aria-disabled="{{tab.scope.disabled || \'false\'}}"\
- ng-focus="$mdTabsCtrl.hasFocus = true"\
- ng-blur="$mdTabsCtrl.hasFocus = false"\
- ng-repeat="tab in $mdTabsCtrl.tabs"\
- md-template="tab.label"\
- md-scope="tab.parent"></md-dummy-tab>\
- </div>\
- </md-tabs-canvas>\
- </md-tabs-wrapper>\
- <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent">\
- <md-tab-content\
- id="tab-content-{{tab.id}}"\
- role="tabpanel"\
- aria-labelledby="tab-item-{{tab.id}}"\
- md-swipe-left="swipeContent && $mdTabsCtrl.incrementSelectedIndex(1)"\
- md-swipe-right="swipeContent && $mdTabsCtrl.incrementSelectedIndex(-1)"\
- ng-if="$mdTabsCtrl.hasContent"\
- ng-repeat="(index, tab) in $mdTabsCtrl.tabs"\
- md-connected-if="tab.isActive()"\
- ng-class="{\
- \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null,\
- \'md-active\': tab.isActive(),\
- \'md-left\': tab.isLeft(),\
- \'md-right\': tab.isRight(),\
- \'md-no-scroll\': dynamicHeight\
- }">\
- <div\
- md-template="tab.template"\
- md-scope="tab.parent"\
- ng-if="tab.shouldRender()"></div>\
- </md-tab-content>\
- </md-tabs-content-wrapper>\
- ';
- },
- controller: 'MdTabsController',
- controllerAs: '$mdTabsCtrl',
- link: function (scope, element, attr) {
- compileTabData(attr.$mdTabsTemplate);
- delete attr.$mdTabsTemplate;
-
- $mdUtil.initOptionalProperties(scope, attr);
-
- //-- watch attributes
- attr.$observe('mdNoBar', function (value) { scope.noInkBar = angular.isDefined(value); });
- //-- set default value for selectedIndex
- scope.selectedIndex = angular.isNumber(scope.selectedIndex) ? scope.selectedIndex : 0;
- //-- apply themes
- $mdTheming(element);
-
- function compileTabData (template) {
- var dataElement = element.find('md-tab-data');
- dataElement.html(template);
- $compile(dataElement.contents())(scope.$parent);
- }
- }
- };
-}
-MdTabs.$inject = ["$mdTheming", "$mdUtil", "$compile"];
-
-angular
- .module('material.components.tabs')
- .directive('mdTemplate', MdTemplate);
-
-function MdTemplate ($compile, $mdUtil, $timeout) {
- return {
- restrict: 'A',
- link: link,
- scope: {
- template: '=mdTemplate',
- compileScope: '=mdScope',
- connected: '=?mdConnectedIf'
- },
- require: '^?mdTabs'
- };
- function link (scope, element, attr, ctrl) {
- if (!ctrl) return;
- var compileScope = scope.compileScope.$new();
- element.html(scope.template);
- $compile(element.contents())(compileScope);
- return $timeout(handleScope);
- function handleScope () {
- scope.$watch('connected', function (value) { value === false ? disconnect() : reconnect(); });
- scope.$on('$destroy', reconnect);
- }
- function disconnect () {
- if (ctrl.scope.noDisconnect) return;
- $mdUtil.disconnectScope(compileScope);
- }
- function reconnect () {
- if (ctrl.scope.noDisconnect) return;
- $mdUtil.reconnectScope(compileScope);
- }
- }
-}
-MdTemplate.$inject = ["$compile", "$mdUtil", "$timeout"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.min.css
deleted file mode 100644
index 5f887cd8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */@-webkit-keyframes md-tab-content-hide{0%,50%{opacity:1}100%{opacity:0}}@keyframes md-tab-content-hide{0%,50%{opacity:1}100%{opacity:0}}md-tab-data{position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;opacity:0}md-tabs{display:block;margin:0;border-radius:2px;overflow:hidden;position:relative;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}md-tabs.ng-animate{transition:height .5s cubic-bezier(.35,0,.25,1)}md-tabs:not(.md-no-tab-content):not([md-dynamic-height]){min-height:248px}md-tabs[md-align-tabs=bottom] md-tabs-wrapper{position:absolute;bottom:0;left:0;right:0;height:48px}md-tabs[md-align-tabs=bottom] md-tabs-content-wrapper{top:0;bottom:48px}md-tabs[md-dynamic-height] md-tabs-content-wrapper{min-height:0;position:relative;top:auto;left:auto;right:auto;bottom:auto;overflow:visible}md-tabs[md-dynamic-height] md-tab-content.md-active{position:relative}md-tabs[md-border-bottom] md-tabs-wrapper{border-width:0 0 1px;border-style:solid}md-tabs[md-border-bottom] md-tabs-wrapper .md-tab{padding-bottom:11px}md-tabs[md-border-bottom]:not([md-dynamic-height]) md-tabs-content-wrapper{top:49px}md-tabs-wrapper{display:block;position:relative}md-tabs-wrapper md-next-button,md-tabs-wrapper md-prev-button{height:100%;width:32px;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);line-height:1em;z-index:2;cursor:pointer;font-size:16px;background:center center no-repeat;transition:all .5s cubic-bezier(.35,0,.25,1)}md-tabs-wrapper md-next-button:focus,md-tabs-wrapper md-prev-button:focus{outline:0}md-tabs-wrapper md-next-button.md-disabled,md-tabs-wrapper md-prev-button.md-disabled{opacity:.25;cursor:default}md-tabs-wrapper md-next-button.ng-leave,md-tabs-wrapper md-prev-button.ng-leave{transition:none}md-tabs-wrapper md-next-button md-icon,md-tabs-wrapper md-prev-button md-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}md-tabs-wrapper md-prev-button{left:0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMjA4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyIAkJIiBzdHlsZT0iZmlsbDp3aGl0ZTsiLz4gPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+IDwvZz4gPC9nPiA8ZyBpZD0iR3JpZCIgZGlzcGxheT0ibm9uZSI+IDxnIGRpc3BsYXk9ImlubGluZSI+IDwvZz4gPC9nPiA8L3N2Zz4NCg==)}md-tabs-wrapper md-next-button{right:0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMzM2IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTAsNiA4LjYsNy40IDEzLjIsMTIgOC42LDE2LjYgMTAsMTggMTYsMTIgCQkiIHN0eWxlPSJmaWxsOndoaXRlOyIvPiA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4gPC9nPiA8L2c+IDxnIGlkPSJHcmlkIiBkaXNwbGF5PSJub25lIj4gPGcgZGlzcGxheT0iaW5saW5lIj4gPC9nPiA8L2c+IDwvc3ZnPg0K)}md-tabs-wrapper md-next-button md-icon{-webkit-transform:translate3d(-50%,-50%,0) rotate(180deg);transform:translate3d(-50%,-50%,0) rotate(180deg)}md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper{width:100%;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper md-tab-item{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}md-tabs-canvas{position:relative;overflow:hidden;display:block;height:48px}md-tabs-canvas:after{content:'';display:table;clear:both}md-tabs-canvas .md-dummy-wrapper{position:absolute;top:0;left:0}md-tabs-canvas.md-paginated{margin:0 32px}md-tabs-canvas.md-center-tabs{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}md-pagination-wrapper{height:48px;display:block;transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1);position:absolute;width:999999px;left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-pagination-wrapper:after{content:'';display:table;clear:both}md-pagination-wrapper.md-center-tabs{position:relative;width:initial;-webkit-flex:1;-ms-flex:1;flex:1;margin:0 auto}md-tabs-content-wrapper{display:block;position:absolute;top:48px;left:0;right:0;bottom:0;overflow:hidden}md-tab-content{display:block;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0);transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1);overflow:auto}md-tab-content.md-no-scroll{bottom:auto;overflow:hidden}md-tab-content.md-no-transition,md-tab-content.ng-leave{transition:none}md-tab-content.md-left{-webkit-transform:translateX(-100%);transform:translateX(-100%);-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide;opacity:0}md-tab-content.md-left *{transition:visibility 0s linear;transition-delay:.5s;visibility:hidden}md-tab-content.md-right{-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide;opacity:0}md-tab-content.md-right *{transition:visibility 0s linear;transition-delay:.5s;visibility:hidden}md-tab-content>div.ng-leave{-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide}md-ink-bar{position:absolute;left:auto;right:auto;bottom:0;height:2px}md-ink-bar.md-left{transition:left .225s cubic-bezier(.35,0,.25,1),right .5s cubic-bezier(.35,0,.25,1)}md-ink-bar.md-right{transition:left .5s cubic-bezier(.35,0,.25,1),right .225s cubic-bezier(.35,0,.25,1)}md-tab{position:absolute;z-index:-1;left:-9999px}.md-tab{font-size:14px;text-align:center;line-height:24px;padding:12px 24px;transition:background-color .35s cubic-bezier(.35,0,.25,1);cursor:pointer;white-space:nowrap;position:relative;text-transform:uppercase;float:left;font-weight:500;box-sizing:border-box}.md-tab.md-focused{box-shadow:none;outline:0}.md-tab.md-active{cursor:default}.md-tab.md-disabled{pointer-events:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;opacity:.5;cursor:default}.md-tab.ng-leave{transition:none}md-toolbar+md-tabs{border-top-left-radius:0;border-top-right-radius:0} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.min.js
deleted file mode 100644
index 54722f5a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tabs/tabs.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function a(){function e(e,n,a,s){if(s){var d=n.parent()[0].getElementsByTagName("md-tab"),i=Array.prototype.indexOf.call(d,n[0]),c=n.find("md-tab-body").remove(),o=n.find("md-tab-label").remove(),r=s.insertTab({scope:e,parent:e.$parent,index:i,element:n,template:c.html(),label:o.html()},i);e.select=e.select||t.noop,e.deselect=e.deselect||t.noop,e.$watch("active",function(e){e&&s.select(r.getIndex())}),e.$watch("disabled",function(){s.refreshIndex()}),e.$watch(function(){return Array.prototype.indexOf.call(d,n[0])},function(e){r.index=e,s.updateTabOrder()}),e.$on("$destroy",function(){s.removeTab(r)})}}return{require:"^?mdTabs",terminal:!0,template:function(e,t){function n(){function n(){return t.label}function a(){var t=e.find("md-tab-label");return t.length?t.remove().html():void 0}function s(){var t=e.html();return e.empty(),t}return a()||n()||s()}function a(){var n=e.find("md-tab-body"),a=n.length?n.html():t.label?e.html():"";return n.length?n.remove():t.label&&e.empty(),a}var s=n(),d=a();return"<md-tab-label>"+s+"</md-tab-label><md-tab-body>"+d+"</md-tab-body>"},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect"},link:e}}function s(){return{require:"^?mdTabs",link:function(e,t,n,a){a&&a.attachRipple(e,t)}}}function d(){return{terminal:!0}}function i(e){return{restrict:"A",compile:function(t,n){var a=e(n.mdTabScroll,null,!0);return function(e,t){t.on("mousewheel",function(t){e.$apply(function(){a(e,{$event:t})})})}}}}function c(e,n,a,s,d,i,c,o){function r(){e.$watch("selectedIndex",u),e.$watch("$mdTabsCtrl.focusIndex",b),e.$watch("$mdTabsCtrl.offsetLeft",f),e.$watch("$mdTabsCtrl.hasContent",m),t.element(a).on("resize",$),t.element(Y.paging).on("DOMSubtreeModified",K.updateInkBarStyles),s(F,0,!1),s(O),e.$on("$destroy",l)}function l(){z=!0,t.element(a).off("resize",$),t.element(Y.paging).off("DOMSubtreeModified",K.updateInkBarStyles)}function m(e){n[e?"removeClass":"addClass"]("md-no-tab-content")}function f(n){var a=S()?"":"-"+n+"px";t.element(Y.paging).css("transform","translate3d("+a+", 0, 0)"),e.$broadcast("$mdTabsPaginationChanged")}function b(e,t){e!==t&&Y.tabs[e]&&(O(),W())}function u(t,n){t!==n&&(e.selectedIndex=B(t),K.lastSelectedIndex=n,K.updateInkBarStyles(),F(),e.$broadcast("$mdTabsChanged"),K.tabs[n]&&K.tabs[n].scope.deselect(),K.tabs[t]&&K.tabs[t].scope.select())}function p(){p.watcher||(p.watcher=e.$watch(function(){s(function(){p.watcher&&n.prop("offsetParent")&&(p.watcher(),p.watcher=null,$())},0,!1)}))}function h(t){switch(t.keyCode){case d.KEY_CODE.LEFT_ARROW:t.preventDefault(),D(-1,!0);break;case d.KEY_CODE.RIGHT_ARROW:t.preventDefault(),D(1,!0);break;case d.KEY_CODE.SPACE:case d.KEY_CODE.ENTER:t.preventDefault(),U||(e.selectedIndex=K.focusIndex)}K.lastClick=!1}function g(t){U||(K.focusIndex=e.selectedIndex=t),K.lastClick=!0,K.tabs[t].element.triggerHandler("click")}function x(e){P()&&(e.preventDefault(),K.offsetLeft=_(K.offsetLeft-e.wheelDelta))}function v(){var e,t,n=Y.canvas.clientWidth,a=n+K.offsetLeft;for(e=0;e<Y.tabs.length&&(t=Y.tabs[e],!(t.offsetLeft+t.offsetWidth>a));e++);K.offsetLeft=_(t.offsetLeft)}function T(){var e,t;for(e=0;e<Y.tabs.length&&(t=Y.tabs[e],!(t.offsetLeft+t.offsetWidth>=K.offsetLeft));e++);K.offsetLeft=_(t.offsetLeft+t.offsetWidth-Y.canvas.clientWidth)}function $(){e.$apply(function(){K.lastSelectedIndex=e.selectedIndex,K.offsetLeft=_(K.offsetLeft),s(K.updateInkBarStyles,0,!1)})}function I(t){var n=e.selectedIndex,a=K.tabs.splice(t.getIndex(),1)[0];R(),e.selectedIndex!==n||z||(a.scope.deselect(),K.tabs[e.selectedIndex]&&K.tabs[e.selectedIndex].scope.select()),s(function(){K.offsetLeft=_(K.offsetLeft)})}function C(n,a){var s={getIndex:function(){return K.tabs.indexOf(d)},isActive:function(){return this.getIndex()===e.selectedIndex},isLeft:function(){return this.getIndex()<e.selectedIndex},isRight:function(){return this.getIndex()>e.selectedIndex},shouldRender:function(){return!e.noDisconnect||this.isActive()},hasFocus:function(){return!K.lastClick&&K.hasFocus&&this.getIndex()===K.focusIndex},id:c.nextUid()},d=t.extend(s,n);return t.isDefined(a)?K.tabs.splice(a,0,d):K.tabs.push(d),A(),N(),d}function w(){var e={};return e.wrapper=n[0].getElementsByTagName("md-tabs-wrapper")[0],e.canvas=e.wrapper.getElementsByTagName("md-tabs-canvas")[0],e.paging=e.canvas.getElementsByTagName("md-pagination-wrapper")[0],e.tabs=e.paging.getElementsByTagName("md-tab-item"),e.dummies=e.canvas.getElementsByTagName("md-dummy-tab"),e.inkBar=e.paging.getElementsByTagName("md-ink-bar")[0],e.contentsWrapper=n[0].getElementsByTagName("md-tabs-content-wrapper")[0],e.contents=e.contentsWrapper.getElementsByTagName("md-tab-content"),e}function y(){return K.offsetLeft>0}function k(){var e=Y.tabs[Y.tabs.length-1];return e&&e.offsetLeft+e.offsetWidth>Y.canvas.clientWidth+K.offsetLeft}function L(){switch(e.stretchTabs){case"always":return!0;case"never":return!1;default:return!P()&&a.matchMedia("(max-width: 600px)").matches}}function S(){return e.centerTabs&&!P()}function P(){if(e.noPagination)return!1;var a=n.prop("clientWidth");return t.forEach(Y.tabs,function(e){a-=e.offsetWidth}),0>a}function B(e){var t,n,a=Math.max(K.tabs.length-e,e);for(t=0;a>=t;t++){if(n=K.tabs[e+t],n&&n.scope.disabled!==!0)return n.getIndex();if(n=K.tabs[e-t],n&&n.scope.disabled!==!0)return n.getIndex()}return e}function E(){var t=K.tabs[e.selectedIndex],n=K.tabs[K.focusIndex];K.tabs=K.tabs.sort(function(e,t){return e.index-t.index}),e.selectedIndex=K.tabs.indexOf(t),K.focusIndex=K.tabs.indexOf(n)}function D(t,n){var a,s=n?K.focusIndex:e.selectedIndex;for(a=s+t;K.tabs[a]&&K.tabs[a].scope.disabled;a+=t);K.tabs[a]&&(n?K.focusIndex=a:e.selectedIndex=a)}function W(){Y.dummies[K.focusIndex].focus()}function O(){if(!S()){var e=Y.tabs[K.focusIndex],t=e.offsetLeft,n=e.offsetWidth+t;K.offsetLeft=Math.max(K.offsetLeft,_(n-Y.canvas.clientWidth)),K.offsetLeft=Math.min(K.offsetLeft,_(t))}}function A(){q.forEach(function(e){s(e)}),q=[]}function N(){var e=!1;t.forEach(K.tabs,function(t){t.template&&(e=!0)}),K.hasContent=e}function R(){e.selectedIndex=B(e.selectedIndex),K.focusIndex=B(K.focusIndex)}function F(){if(!e.dynamicHeight)return n.css("height","");if(!K.tabs.length)return q.push(F);var t=Y.contents[e.selectedIndex],a=t?t.offsetHeight:0,s=Y.wrapper.offsetHeight,d=a+s,i=n.prop("clientHeight");i!==d&&(U=!0,o.animate(n,{height:i+"px"},{height:d+"px"}).then(function(){n.css("height",""),U=!1}))}function M(){if(Y.tabs[e.selectedIndex]){if(!K.tabs.length)return q.push(K.updateInkBarStyles);if(!n.prop("offsetParent"))return p();var a=e.selectedIndex,s=Y.paging.offsetWidth,d=Y.tabs[a],i=d.offsetLeft,c=s-i-d.offsetWidth;H(),t.element(Y.inkBar).css({left:i+"px",right:c+"px"})}}function H(){var n=e.selectedIndex,a=K.lastSelectedIndex,s=t.element(Y.inkBar);s.removeClass("md-left md-right"),t.isNumber(a)&&(a>n?s.addClass("md-left"):n>a&&s.addClass("md-right"))}function _(e){if(!Y.tabs.length||!P())return 0;var t=Y.tabs[Y.tabs.length-1],n=t.offsetLeft+t.offsetWidth;return e=Math.max(0,e),e=Math.min(n-Y.canvas.clientWidth,e)}function j(e,n){var a={colorElement:t.element(Y.inkBar)};i.attach(e,n,a)}var K=this,U=!1,Y=w(),q=[],z=!1;K.scope=e,K.parent=e.$parent,K.tabs=[],K.lastSelectedIndex=null,K.focusIndex=e.selectedIndex||0,K.offsetLeft=0,K.hasContent=!1,K.hasFocus=!1,K.lastClick=!0,K.redirectFocus=W,K.attachRipple=j,K.shouldStretchTabs=L,K.shouldPaginate=P,K.shouldCenterTabs=S,K.insertTab=C,K.removeTab=I,K.select=g,K.scroll=x,K.nextPage=v,K.previousPage=T,K.keydown=h,K.canPageForward=k,K.canPageBack=y,K.refreshIndex=R,K.incrementSelectedIndex=D,K.updateInkBarStyles=c.debounce(M,100),K.updateTabOrder=c.debounce(E,100),r()}function o(e,n,a){return{scope:{noPagination:"=?mdNoPagination",dynamicHeight:"=?mdDynamicHeight",centerTabs:"=?mdCenterTabs",selectedIndex:"=?mdSelected",stretchTabs:"@?mdStretchTabs",swipeContent:"=?mdSwipeContent",noDisconnect:"=?mdNoDisconnect"},template:function(e,t){return t.$mdTabsTemplate=e.html(),' <md-tabs-wrapper ng-class="{ \'md-stretch-tabs\': $mdTabsCtrl.shouldStretchTabs() }"> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate()" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-icon="md-tabs-arrow"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate()" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-icon="md-tabs-arrow"></md-icon> </md-next-button> <md-tabs-canvas tabindex="0" aria-activedescendant="tab-item-{{$mdTabsCtrl.tabs[$mdTabsCtrl.focusIndex].id}}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate(), \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs() }" ng-keydown="$mdTabsCtrl.keydown($event)" role="tablist"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs() }" md-tab-scroll="$mdTabsCtrl.scroll($event)"> <md-tab-item tabindex="-1" class="md-tab" style="max-width: {{ tabWidth ? tabWidth + \'px\' : \'none\' }}" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" aria-controls="tab-content-{{tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-class="{ \'md-active\': tab.isActive(), \'md-focused\': tab.hasFocus(), \'md-disabled\': tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-template="tab.label" md-scope="tab.parent"></md-tab-item> <md-ink-bar ng-hide="noInkBar"></md-ink-bar> </md-pagination-wrapper> <div class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab tabindex="-1" id="tab-item-{{tab.id}}" role="tab" aria-controls="tab-content-{{tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-template="tab.label" md-scope="tab.parent"></md-dummy-tab> </div> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent"> <md-tab-content id="tab-content-{{tab.id}}" role="tabpanel" aria-labelledby="tab-item-{{tab.id}}" md-swipe-left="swipeContent && $mdTabsCtrl.incrementSelectedIndex(1)" md-swipe-right="swipeContent && $mdTabsCtrl.incrementSelectedIndex(-1)" ng-if="$mdTabsCtrl.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" md-connected-if="tab.isActive()" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\': tab.isActive(), \'md-left\': tab.isLeft(), \'md-right\': tab.isRight(), \'md-no-scroll\': dynamicHeight }"> <div md-template="tab.template" md-scope="tab.parent" ng-if="tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper> '},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",link:function(s,d,i){function c(e){var t=d.find("md-tab-data");t.html(e),a(t.contents())(s.$parent)}c(i.$mdTabsTemplate),delete i.$mdTabsTemplate,n.initOptionalProperties(s,i),i.$observe("mdNoBar",function(e){s.noInkBar=t.isDefined(e)}),s.selectedIndex=t.isNumber(s.selectedIndex)?s.selectedIndex:0,e(d)}}}function r(e,t,n){function a(a,s,d,i){function c(){a.$watch("connected",function(e){e===!1?o():r()}),a.$on("$destroy",r)}function o(){i.scope.noDisconnect||t.disconnectScope(l)}function r(){i.scope.noDisconnect||t.reconnectScope(l)}if(i){var l=a.compileScope.$new();return s.html(a.template),e(s.contents())(l),n(c)}}return{restrict:"A",link:a,scope:{template:"=mdTemplate",compileScope:"=mdScope",connected:"=?mdConnectedIf"},require:"^?mdTabs"}}t.module("material.components.tabs",["material.core","material.components.icon"]),t.module("material.components.tabs").directive("mdTab",a),t.module("material.components.tabs").directive("mdTabItem",s),t.module("material.components.tabs").directive("mdTabLabel",d),t.module("material.components.tabs").directive("mdTabScroll",i),i.$inject=["$parse"],t.module("material.components.tabs").controller("MdTabsController",c),c.$inject=["$scope","$element","$window","$timeout","$mdConstant","$mdTabInkRipple","$mdUtil","$animate"],t.module("material.components.tabs").directive("mdTabs",o),o.$inject=["$mdTheming","$mdUtil","$compile"],t.module("material.components.tabs").directive("mdTemplate",r),r.$inject=["$compile","$mdUtil","$timeout"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/bower.json
deleted file mode 100644
index 433b8f0f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-textField",
- "version": "0.9.0-rc1-master-3c0ce9b",
- "dependencies": {
- "angular-material-core": "0.9.0-rc1-master-3c0ce9b"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField-default-theme.css
deleted file mode 100644
index fa7efdb4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField-default-theme.css
+++ /dev/null
@@ -1,30 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-input-group.md-THEME_NAME-theme input, md-input-group.md-THEME_NAME-theme textarea {
- text-shadow: '{{foreground-shadow}}'; }
- md-input-group.md-THEME_NAME-theme input::-webkit-input-placeholder, md-input-group.md-THEME_NAME-theme input::-moz-placeholder, md-input-group.md-THEME_NAME-theme input:-moz-placeholder, md-input-group.md-THEME_NAME-theme input:-ms-input-placeholder, md-input-group.md-THEME_NAME-theme textarea::-webkit-input-placeholder, md-input-group.md-THEME_NAME-theme textarea::-moz-placeholder, md-input-group.md-THEME_NAME-theme textarea:-moz-placeholder, md-input-group.md-THEME_NAME-theme textarea:-ms-input-placeholder {
- color: '{{foreground-3}}'; }
-md-input-group.md-THEME_NAME-theme label {
- text-shadow: '{{foreground-shadow}}';
- color: '{{foreground-3}}'; }
-md-input-group.md-THEME_NAME-theme input, md-input-group.md-THEME_NAME-theme textarea {
- color: '{{foreground-1}}';
- border-color: '{{foreground-4}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-focused input, md-input-group.md-THEME_NAME-theme.md-input-focused textarea {
- border-color: '{{primary-500}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-focused label {
- color: '{{primary-500}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent input, md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent textarea {
- border-color: '{{accent-500}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent label {
- color: '{{accent-500}}'; }
-md-input-group.md-THEME_NAME-theme.md-input-has-value:not(.md-input-focused) label {
- color: '{{foreground-2}}'; }
-md-input-group.md-THEME_NAME-theme .md-input[disabled] {
- border-bottom-color: '{{foreground-4}}';
- color: '{{foreground-3}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField-default-theme.min.css
deleted file mode 100644
index 7e7beabd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */md-input-group.md-THEME_NAME-theme input,md-input-group.md-THEME_NAME-theme textarea{text-shadow:'{{foreground-shadow}}'}md-input-group.md-THEME_NAME-theme input:-moz-placeholder,md-input-group.md-THEME_NAME-theme input:-ms-input-placeholder,md-input-group.md-THEME_NAME-theme input::-moz-placeholder,md-input-group.md-THEME_NAME-theme input::-webkit-input-placeholder,md-input-group.md-THEME_NAME-theme textarea:-moz-placeholder,md-input-group.md-THEME_NAME-theme textarea:-ms-input-placeholder,md-input-group.md-THEME_NAME-theme textarea::-moz-placeholder,md-input-group.md-THEME_NAME-theme textarea::-webkit-input-placeholder{color:'{{foreground-3}}'}md-input-group.md-THEME_NAME-theme label{text-shadow:'{{foreground-shadow}}';color:'{{foreground-3}}'}md-input-group.md-THEME_NAME-theme input,md-input-group.md-THEME_NAME-theme textarea{color:'{{foreground-1}}';border-color:'{{foreground-4}}'}md-input-group.md-THEME_NAME-theme.md-input-focused input,md-input-group.md-THEME_NAME-theme.md-input-focused textarea{border-color:'{{primary-500}}'}md-input-group.md-THEME_NAME-theme.md-input-focused label{color:'{{primary-500}}'}md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent input,md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent textarea{border-color:'{{accent-500}}'}md-input-group.md-THEME_NAME-theme.md-input-focused.md-accent label{color:'{{accent-500}}'}md-input-group.md-THEME_NAME-theme.md-input-has-value:not(.md-input-focused) label{color:'{{foreground-2}}'}md-input-group.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:'{{foreground-4}}';color:'{{foreground-3}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.css
deleted file mode 100644
index 95044d44..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.css
+++ /dev/null
@@ -1,111 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-input-group label, .md-input-group label {
- display: block;
- font-size: 1.2rem; }
-md-input-group textarea, md-input-group input[type="text"], md-input-group input[type="password"], md-input-group input[type="datetime"], md-input-group input[type="datetime-local"], md-input-group input[type="date"], md-input-group input[type="month"], md-input-group input[type="time"], md-input-group input[type="week"], md-input-group input[type="number"], md-input-group input[type="email"], md-input-group input[type="url"], md-input-group input[type="search"], md-input-group input[type="tel"], md-input-group input[type="color"], .md-input-group textarea, .md-input-group input[type="text"], .md-input-group input[type="password"], .md-input-group input[type="datetime"], .md-input-group input[type="datetime-local"], .md-input-group input[type="date"], .md-input-group input[type="month"], .md-input-group input[type="time"], .md-input-group input[type="week"], .md-input-group input[type="number"], .md-input-group input[type="email"], .md-input-group input[type="url"], .md-input-group input[type="search"], .md-input-group input[type="tel"], .md-input-group input[type="color"] {
- display: block;
- border-width: 0 0 1px 0;
- padding-top: 2px;
- line-height: 26px;
- padding-bottom: 1px; }
- md-input-group textarea:focus, md-input-group input[type="text"]:focus, md-input-group input[type="password"]:focus, md-input-group input[type="datetime"]:focus, md-input-group input[type="datetime-local"]:focus, md-input-group input[type="date"]:focus, md-input-group input[type="month"]:focus, md-input-group input[type="time"]:focus, md-input-group input[type="week"]:focus, md-input-group input[type="number"]:focus, md-input-group input[type="email"]:focus, md-input-group input[type="url"]:focus, md-input-group input[type="search"]:focus, md-input-group input[type="tel"]:focus, md-input-group input[type="color"]:focus, .md-input-group textarea:focus, .md-input-group input[type="text"]:focus, .md-input-group input[type="password"]:focus, .md-input-group input[type="datetime"]:focus, .md-input-group input[type="datetime-local"]:focus, .md-input-group input[type="date"]:focus, .md-input-group input[type="month"]:focus, .md-input-group input[type="time"]:focus, .md-input-group input[type="week"]:focus, .md-input-group input[type="number"]:focus, .md-input-group input[type="email"]:focus, .md-input-group input[type="url"]:focus, .md-input-group input[type="search"]:focus, .md-input-group input[type="tel"]:focus, .md-input-group input[type="color"]:focus {
- outline: 0; }
-md-input-group input, md-input-group textarea, .md-input-group input, .md-input-group textarea {
- background: none; }
-
-md-input-group, .md-input-group {
- padding-bottom: 2px;
- margin: 10px 0 8px 0;
- position: relative;
- display: block; }
- md-input-group label, .md-input-group label {
- font-size: 1.6rem;
- z-index: 1;
- pointer-events: none;
- -webkit-font-smoothing: antialiased; }
- md-input-group label:hover, .md-input-group label:hover {
- cursor: text; }
- md-input-group label, .md-input-group label {
- -webkit-transform: translate3d(0, 22px, 0);
- transform: translate3d(0, 22px, 0);
- transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1);
- transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group label, html[dir=rtl] .md-input-group label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group input, md-input-group textarea, .md-input-group input, .md-input-group textarea {
- border-bottom-width: 1px;
- transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1); }
- md-input-group.md-input-focused label, .md-input-group.md-input-focused label {
- -webkit-transform: translate3d(0, 4px, 0) scale(0.75);
- transform: translate3d(0, 4px, 0) scale(0.75);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group.md-input-focused label, html[dir=rtl] .md-input-group.md-input-focused label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group.md-input-focused input, md-input-group.md-input-focused textarea, .md-input-group.md-input-focused input, .md-input-group.md-input-focused textarea {
- border-bottom-width: 2px; }
- md-input-group.md-input-focused input, .md-input-group.md-input-focused input {
- padding-bottom: 0; }
- md-input-group.md-input-has-value label, .md-input-group.md-input-has-value label {
- -webkit-transform: translate3d(0, 4px, 0) scale(0.75);
- transform: translate3d(0, 4px, 0) scale(0.75);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group.md-input-has-value label, html[dir=rtl] .md-input-group.md-input-has-value label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group.md-input-has-value:not(.md-input-focused) label, .md-input-group.md-input-has-value:not(.md-input-focused) label {
- -webkit-transform: translate3d(0, 4px, 0) scale(0.75);
- transform: translate3d(0, 4px, 0) scale(0.75);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group.md-input-has-value:not(.md-input-focused) label, html[dir=rtl] .md-input-group.md-input-has-value:not(.md-input-focused) label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group[disabled] input, md-input-group[disabled] textarea, .md-input-group[disabled] input, .md-input-group[disabled] textarea {
- border-bottom-width: 0px; }
- md-input-group[disabled] input, md-input-group[disabled] textarea, .md-input-group[disabled] input, .md-input-group[disabled] textarea {
- background-size: 3px 1px;
- background-position: 0 bottom;
- background-size: 2px 1px;
- background-repeat: repeat-x;
- pointer-events: none; }
- md-input-group[disabled] label, .md-input-group[disabled] label {
- -webkit-transform: translate3d(0, 4px, 0) scale(0.75);
- transform: translate3d(0, 4px, 0) scale(0.75);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group[disabled] label, html[dir=rtl] .md-input-group[disabled] label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
- md-input-group[disabled] *:not(.md-input-has-value) label, .md-input-group[disabled] *:not(.md-input-has-value) label {
- -webkit-transform: translate3d(0, 22px, 0);
- transform: translate3d(0, 22px, 0);
- transition: all 0.15s cubic-bezier(0.35, 0, 0.25, 1);
- -webkit-transform-origin: left center;
- transform-origin: left center; }
- html[dir=rtl] md-input-group[disabled] *:not(.md-input-has-value) label, html[dir=rtl] .md-input-group[disabled] *:not(.md-input-has-value) label {
- -webkit-transform-origin: left center;
- transform-origin: left center;
- -webkit-transform-origin: right center;
- transform-origin: right center; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.js
deleted file mode 100644
index f171b9de..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.js
+++ /dev/null
@@ -1,143 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */
-(function() {
-'use strict';
-
-/**
- * @ngdoc module
- * @name material.components.textField
- * @description
- * Form
- */
-angular.module('material.components.textField', [
- 'material.core'
-])
- .directive('mdInputGroup', mdInputGroupDirective)
- .directive('mdInput', mdInputDirective)
- .directive('mdTextFloat', mdTextFloatDirective);
-
-
-function mdTextFloatDirective($mdTheming, $mdUtil, $parse, $log) {
- return {
- restrict: 'E',
- replace: true,
- scope : {
- fid : '@?mdFid',
- label : '@?',
- value : '=ngModel'
- },
- compile : function(element, attr) {
-
- $log.warn('<md-text-float> is deprecated. Please use `<md-input-container>` and `<input>`.' +
- 'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
-
- if ( angular.isUndefined(attr.mdFid) ) {
- attr.mdFid = $mdUtil.nextUid();
- }
-
- return {
- pre : function(scope, element, attrs) {
- var disabledParsed = $parse(attrs.ngDisabled);
- scope.isDisabled = function() {
- return disabledParsed(scope.$parent);
- };
-
- scope.inputType = attrs.type || "text";
- },
- post: $mdTheming
- };
- },
- template:
- '<md-input-group tabindex="-1">' +
- ' <label for="{{fid}}" >{{label}}</label>' +
- ' <md-input id="{{fid}}" ng-disabled="isDisabled()" ng-model="value" type="{{inputType}}"></md-input>' +
- '</md-input-group>'
- };
-}
-mdTextFloatDirective.$inject = ["$mdTheming", "$mdUtil", "$parse", "$log"];
-
-function mdInputGroupDirective($log) {
- return {
- restrict: 'CE',
- controller: ['$element', function($element) {
-
- $log.warn('<md-input-group> is deprecated. Please use `<md-input-container>` and `<input>`.' +
- 'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
- this.setFocused = function(isFocused) {
- $element.toggleClass('md-input-focused', !!isFocused);
- };
- this.setHasValue = function(hasValue) {
- $element.toggleClass('md-input-has-value', hasValue );
- };
- }]
- };
-
-}
-mdInputGroupDirective.$inject = ["$log"];
-
-function mdInputDirective($mdUtil, $log) {
- return {
- restrict: 'E',
- replace: true,
- template: '<input >',
- require: ['^?mdInputGroup', '?ngModel'],
- link: function(scope, element, attr, ctrls) {
- if ( !ctrls[0] ) return;
-
- $log.warn('<md-input> is deprecated. Please use `<md-input-container>` and `<input>`.' +
- 'More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer');
-
- var inputGroupCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1];
-
- scope.$watch(scope.isDisabled, function(isDisabled) {
- element.attr('aria-disabled', !!isDisabled);
- element.attr('tabindex', !!isDisabled);
- });
- element.attr('type', attr.type || element.parent().attr('type') || "text");
-
- // When the input value changes, check if it "has" a value, and
- // set the appropriate class on the input group
- if (ngModelCtrl) {
- //Add a $formatter so we don't use up the render function
- ngModelCtrl.$formatters.push(function(value) {
- inputGroupCtrl.setHasValue( isNotEmpty(value) );
- return value;
- });
- }
-
- element
- .on('input', function() {
- inputGroupCtrl.setHasValue( isNotEmpty() );
- })
- .on('focus', function(e) {
- // When the input focuses, add the focused class to the group
- inputGroupCtrl.setFocused(true);
- })
- .on('blur', function(e) {
- // When the input blurs, remove the focused class from the group
- inputGroupCtrl.setFocused(false);
- inputGroupCtrl.setHasValue( isNotEmpty() );
- });
-
- scope.$on('$destroy', function() {
- inputGroupCtrl.setFocused(false);
- inputGroupCtrl.setHasValue(false);
- });
-
-
- function isNotEmpty(value) {
- value = angular.isUndefined(value) ? element.val() : value;
- return (angular.isDefined(value) && (value!==null) &&
- (value.toString().trim() !== ""));
- }
- }
- };
-}
-mdInputDirective.$inject = ["$mdUtil", "$log"];
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.min.css
deleted file mode 100644
index f9f7181a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */.md-input-group label,md-input-group label{display:block}.md-input-group input[type=text],.md-input-group input[type=url],.md-input-group input[type=search],.md-input-group input[type=tel],.md-input-group input[type=color],.md-input-group input[type=password],.md-input-group input[type=datetime],.md-input-group input[type=datetime-local],.md-input-group input[type=date],.md-input-group input[type=month],.md-input-group input[type=time],.md-input-group input[type=week],.md-input-group input[type=number],.md-input-group input[type=email],.md-input-group textarea,md-input-group input[type=text],md-input-group input[type=url],md-input-group input[type=search],md-input-group input[type=tel],md-input-group input[type=color],md-input-group input[type=password],md-input-group input[type=datetime],md-input-group input[type=datetime-local],md-input-group input[type=date],md-input-group input[type=month],md-input-group input[type=time],md-input-group input[type=week],md-input-group input[type=number],md-input-group input[type=email],md-input-group textarea{display:block;border-width:0 0 1px;padding-top:2px;line-height:26px;padding-bottom:1px}.md-input-group input[type=text]:focus,.md-input-group input[type=url]:focus,.md-input-group input[type=search]:focus,.md-input-group input[type=tel]:focus,.md-input-group input[type=color]:focus,.md-input-group input[type=password]:focus,.md-input-group input[type=datetime]:focus,.md-input-group input[type=datetime-local]:focus,.md-input-group input[type=date]:focus,.md-input-group input[type=month]:focus,.md-input-group input[type=time]:focus,.md-input-group input[type=week]:focus,.md-input-group input[type=number]:focus,.md-input-group input[type=email]:focus,.md-input-group textarea:focus,md-input-group input[type=text]:focus,md-input-group input[type=url]:focus,md-input-group input[type=search]:focus,md-input-group input[type=tel]:focus,md-input-group input[type=color]:focus,md-input-group input[type=password]:focus,md-input-group input[type=datetime]:focus,md-input-group input[type=datetime-local]:focus,md-input-group input[type=date]:focus,md-input-group input[type=month]:focus,md-input-group input[type=time]:focus,md-input-group input[type=week]:focus,md-input-group input[type=number]:focus,md-input-group input[type=email]:focus,md-input-group textarea:focus{outline:0}.md-input-group input,.md-input-group textarea,md-input-group input,md-input-group textarea{background:0 0}.md-input-group,md-input-group{padding-bottom:2px;margin:10px 0 8px;position:relative;display:block}.md-input-group label,md-input-group label{font-size:1.6rem;z-index:1;pointer-events:none;-webkit-font-smoothing:antialiased}.md-input-group label:hover,md-input-group label:hover{cursor:text}.md-input-group label,md-input-group label{-webkit-transform:translate3d(0,22px,0);transform:translate3d(0,22px,0);transition:all .15s cubic-bezier(.35,0,.25,1);-webkit-transform-origin:left center;transform-origin:left center}html[dir=rtl] .md-input-group label,html[dir=rtl] md-input-group label{-webkit-transform-origin:right center;transform-origin:right center}.md-input-group input,.md-input-group textarea,md-input-group input,md-input-group textarea{border-bottom-width:1px;transition:all .15s cubic-bezier(.35,0,.25,1)}.md-input-group.md-input-focused label,md-input-group.md-input-focused label{-webkit-transform:translate3d(0,4px,0) scale(.75);transform:translate3d(0,4px,0) scale(.75);-webkit-transform-origin:left center;transform-origin:left center}html[dir=rtl] .md-input-group.md-input-focused label,html[dir=rtl] md-input-group.md-input-focused label{-webkit-transform-origin:right center;transform-origin:right center}.md-input-group.md-input-focused input,.md-input-group.md-input-focused textarea,md-input-group.md-input-focused input,md-input-group.md-input-focused textarea{border-bottom-width:2px}.md-input-group.md-input-focused input,md-input-group.md-input-focused input{padding-bottom:0}.md-input-group.md-input-has-value label,md-input-group.md-input-has-value label{-webkit-transform:translate3d(0,4px,0) scale(.75);transform:translate3d(0,4px,0) scale(.75);-webkit-transform-origin:left center;transform-origin:left center}html[dir=rtl] .md-input-group.md-input-has-value label,html[dir=rtl] md-input-group.md-input-has-value label{-webkit-transform-origin:right center;transform-origin:right center}.md-input-group.md-input-has-value:not(.md-input-focused) label,md-input-group.md-input-has-value:not(.md-input-focused) label{-webkit-transform:translate3d(0,4px,0) scale(.75);transform:translate3d(0,4px,0) scale(.75);-webkit-transform-origin:left center;transform-origin:left center}html[dir=rtl] .md-input-group.md-input-has-value:not(.md-input-focused) label,html[dir=rtl] md-input-group.md-input-has-value:not(.md-input-focused) label{-webkit-transform-origin:right center;transform-origin:right center}.md-input-group[disabled] input,.md-input-group[disabled] textarea,md-input-group[disabled] input,md-input-group[disabled] textarea{border-bottom-width:0;background-position:0 bottom;background-size:2px 1px;background-repeat:repeat-x;pointer-events:none}.md-input-group[disabled] label,md-input-group[disabled] label{-webkit-transform:translate3d(0,4px,0) scale(.75);transform:translate3d(0,4px,0) scale(.75);-webkit-transform-origin:left center;transform-origin:left center}html[dir=rtl] .md-input-group[disabled] label,html[dir=rtl] md-input-group[disabled] label{-webkit-transform-origin:right center;transform-origin:right center}.md-input-group[disabled] :not(.md-input-has-value) label,md-input-group[disabled] :not(.md-input-has-value) label{-webkit-transform:translate3d(0,22px,0);transform:translate3d(0,22px,0);transition:all .15s cubic-bezier(.35,0,.25,1);-webkit-transform-origin:left center;transform-origin:left center}html[dir=rtl] .md-input-group[disabled] :not(.md-input-has-value) label,html[dir=rtl] md-input-group[disabled] :not(.md-input-has-value) label{-webkit-transform-origin:right center;transform-origin:right center} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.min.js
deleted file mode 100644
index e97345ba..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/textField/textField.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.0-rc1-master-3c0ce9b
- */
-!function(){"use strict";function t(t,e,n,i){return{restrict:"E",replace:!0,scope:{fid:"@?mdFid",label:"@?",value:"=ngModel"},compile:function(a,r){return i.warn("<md-text-float> is deprecated. Please use `<md-input-container>` and `<input>`.More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer"),angular.isUndefined(r.mdFid)&&(r.mdFid=e.nextUid()),{pre:function(t,e,i){var a=n(i.ngDisabled);t.isDisabled=function(){return a(t.$parent)},t.inputType=i.type||"text"},post:t}},template:'<md-input-group tabindex="-1"> <label for="{{fid}}" >{{label}}</label> <md-input id="{{fid}}" ng-disabled="isDisabled()" ng-model="value" type="{{inputType}}"></md-input></md-input-group>'}}function e(t){return{restrict:"CE",controller:["$element",function(e){t.warn("<md-input-group> is deprecated. Please use `<md-input-container>` and `<input>`.More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer"),this.setFocused=function(t){e.toggleClass("md-input-focused",!!t)},this.setHasValue=function(t){e.toggleClass("md-input-has-value",t)}}]}}function n(t,e){return{restrict:"E",replace:!0,template:"<input >",require:["^?mdInputGroup","?ngModel"],link:function(t,n,i,a){function r(t){return t=angular.isUndefined(t)?n.val():t,angular.isDefined(t)&&null!==t&&""!==t.toString().trim()}if(a[0]){e.warn("<md-input> is deprecated. Please use `<md-input-container>` and `<input>`.More information at http://material.angularjs.org/#/api/material.components.input/directive/mdInputContainer");var u=a[0],o=a[1];t.$watch(t.isDisabled,function(t){n.attr("aria-disabled",!!t),n.attr("tabindex",!!t)}),n.attr("type",i.type||n.parent().attr("type")||"text"),o&&o.$formatters.push(function(t){return u.setHasValue(r(t)),t}),n.on("input",function(){u.setHasValue(r())}).on("focus",function(t){u.setFocused(!0)}).on("blur",function(t){u.setFocused(!1),u.setHasValue(r())}),t.$on("$destroy",function(){u.setFocused(!1),u.setHasValue(!1)})}}}}angular.module("material.components.textField",["material.core"]).directive("mdInputGroup",e).directive("mdInput",n).directive("mdTextFloat",t),t.$inject=["$mdTheming","$mdUtil","$parse","$log"],e.$inject=["$log"],n.$inject=["$mdUtil","$log"]}(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/bower.json
deleted file mode 100644
index fb61bd56..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-toast",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-button": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast-default-theme.css
deleted file mode 100644
index ff07e0eb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast-default-theme.css
+++ /dev/null
@@ -1,18 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-toast.md-THEME_NAME-theme {
- background-color: #323232;
- color: '{{background-50}}'; }
- md-toast.md-THEME_NAME-theme .md-button {
- color: '{{background-50}}'; }
- md-toast.md-THEME_NAME-theme .md-button.md-highlight {
- color: '{{primary-A200}}'; }
- md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent {
- color: '{{accent-A200}}'; }
- md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn {
- color: '{{warn-A200}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast-default-theme.min.css
deleted file mode 100644
index c2745fef..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-toast.md-THEME_NAME-theme{background-color:#323232;color:'{{background-50}}'}md-toast.md-THEME_NAME-theme .md-button{color:'{{background-50}}'}md-toast.md-THEME_NAME-theme .md-button.md-highlight{color:'{{primary-A200}}'}md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-accent{color:'{{accent-A200}}'}md-toast.md-THEME_NAME-theme .md-button.md-highlight.md-warn{color:'{{warn-A200}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.css
deleted file mode 100644
index 5b01f1aa..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.css
+++ /dev/null
@@ -1,119 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-toast {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- position: absolute;
- box-sizing: border-box;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- min-height: 48px;
- padding-left: 24px;
- padding-right: 24px;
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
- border-radius: 2px;
- font-size: 14px;
- cursor: default;
- max-width: 100%;
- max-height: 40px;
- height: 24px;
- z-index: 90;
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0) rotateZ(0deg);
- transform: translate3d(0, 0, 0) rotateZ(0deg);
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- /* Transition differently when swiping */ }
- md-toast.md-capsule {
- border-radius: 24px; }
- md-toast.ng-leave-active {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-toast.md-swipeleft, md-toast.md-swiperight, md-toast.md-swipeup, md-toast.md-swipedown {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
- md-toast.ng-enter {
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0);
- opacity: 0; }
- md-toast.ng-enter.md-top {
- -webkit-transform: translate3d(0, -100%, 0);
- transform: translate3d(0, -100%, 0); }
- md-toast.ng-enter.ng-enter-active {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- opacity: 1; }
- md-toast.ng-leave.ng-leave-active {
- opacity: 0;
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0); }
- md-toast.ng-leave.ng-leave-active.md-top {
- -webkit-transform: translate3d(0, -100%, 0);
- transform: translate3d(0, -100%, 0); }
- md-toast.ng-leave.ng-leave-active.md-swipeleft {
- -webkit-transform: translate3d(-100%, 0%, 0);
- transform: translate3d(-100%, 0%, 0); }
- md-toast.ng-leave.ng-leave-active.md-swiperight {
- -webkit-transform: translate3d(100%, 0%, 0);
- transform: translate3d(100%, 0%, 0); }
- md-toast .md-action {
- line-height: 19px;
- margin-left: 24px;
- cursor: pointer;
- text-transform: uppercase;
- float: right; }
- md-toast .md-action.md-button {
- min-width: 0; }
-
-@media (max-width: 600px) {
- md-toast {
- left: 0;
- right: 0;
- width: 100%;
- max-width: 100%;
- min-width: 0;
- border-radius: 0;
- bottom: 0; }
- md-toast.md-top {
- bottom: auto;
- top: 0; } }
-
-@media (min-width: 600px) {
- md-toast {
- min-width: 288px;
- /*
- * When the toast doesn't take up the whole screen,
- * make it rotate when the user swipes it away
- */ }
- md-toast.md-bottom {
- bottom: 8px; }
- md-toast.md-left {
- left: 8px; }
- md-toast.md-right {
- right: 8px; }
- md-toast.md-top {
- top: 8px; }
- md-toast.ng-leave.ng-leave-active.md-swipeleft {
- -webkit-transform: translate3d(-100%, 25%, 0) rotateZ(-15deg);
- transform: translate3d(-100%, 25%, 0) rotateZ(-15deg); }
- md-toast.ng-leave.ng-leave-active.md-swiperight {
- -webkit-transform: translate3d(100%, 25%, 0) rotateZ(15deg);
- transform: translate3d(100%, 25%, 0) rotateZ(15deg); }
- md-toast.ng-leave.ng-leave-active.md-top.md-swipeleft {
- -webkit-transform: translate3d(-100%, 0, 0) rotateZ(-15deg);
- transform: translate3d(-100%, 0, 0) rotateZ(-15deg); }
- md-toast.ng-leave.ng-leave-active.md-top.md-swiperight {
- -webkit-transform: translate3d(100%, 0, 0) rotateZ(15deg);
- transform: translate3d(100%, 0, 0) rotateZ(15deg); } }
-
-@media (min-width: 1200px) {
- md-toast {
- max-width: 568px; } }
-
-@media screen and (-ms-high-contrast: active) {
- md-toast {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.js
deleted file mode 100644
index 5d882e54..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.js
+++ /dev/null
@@ -1,265 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.toast
- * @description
- * Toast
- */
-angular.module('material.components.toast', [
- 'material.core',
- 'material.components.button'
-])
- .directive('mdToast', MdToastDirective)
- .provider('$mdToast', MdToastProvider);
-
-function MdToastDirective() {
- return {
- restrict: 'E'
- };
-}
-
-/**
- * @ngdoc service
- * @name $mdToast
- * @module material.components.toast
- *
- * @description
- * `$mdToast` is a service to build a toast notification on any position
- * on the screen with an optional duration, and provides a simple promise API.
- *
- *
- * ## Restrictions on custom toasts
- * - The toast's template must have an outer `<md-toast>` element.
- * - For a toast action, use element with class `md-action`.
- * - Add the class `md-capsule` for curved corners.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-controller="MyController">
- * <md-button ng-click="openToast()">
- * Open a Toast!
- * </md-button>
- * </div>
- * </hljs>
- *
- * <hljs lang="js">
- * var app = angular.module('app', ['ngMaterial']);
- * app.controller('MyController', function($scope, $mdToast) {
- * $scope.openToast = function($event) {
- * $mdToast.show($mdToast.simple().content('Hello!'));
- * // Could also do $mdToast.showSimple('Hello');
- * };
- * });
- * </hljs>
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#showSimple
- *
- * @description
- * Convenience method which builds and shows a simple toast.
- *
- * @returns {promise} A promise that can be resolved with `$mdToast.hide()` or
- * rejected with `$mdToast.cancel()`.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#simple
- *
- * @description
- * Builds a preconfigured toast.
- *
- * @returns {obj} a `$mdToastPreset` with the chainable configuration methods:
- *
- * - $mdToastPreset#content(string) - sets toast content to string
- * - $mdToastPreset#action(string) - adds an action button, which resolves the promise returned from `show()` if clicked.
- * - $mdToastPreset#highlightAction(boolean) - sets action button to be highlighted
- * - $mdToastPreset#capsule(boolean) - adds 'md-capsule' class to the toast (curved corners)
- * - $mdToastPreset#theme(boolean) - sets the theme on the toast to theme (default is `$mdThemingProvider`'s default theme)
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#updateContent
- *
- * @description
- * Updates the content of an existing toast. Useful for updating things like counts, etc.
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#build
- *
- * @description
- * Creates a custom `$mdToastPreset` that you can configure.
- *
- * @returns {obj} a `$mdToastPreset` with the chainable configuration methods for shows' options (see below).
- */
-
- /**
- * @ngdoc method
- * @name $mdToast#show
- *
- * @description Shows the toast.
- *
- * @param {object} optionsOrPreset Either provide an `$mdToastPreset` returned from `simple()`
- * and `build()`, or an options object with the following properties:
- *
- * - `templateUrl` - `{string=}`: The url of an html template file that will
- * be used as the content of the toast. Restrictions: the template must
- * have an outer `md-toast` element.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual
- * template string.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope.
- * This scope will be destroyed when the toast is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `hideDelay` - `{number=}`: How many milliseconds the toast should stay
- * active before automatically closing. Set to 0 or false to have the toast stay open until
- * closed manually. Default: 3000.
- * - `position` - `{string=}`: Where to place the toast. Available: any combination
- * of 'bottom', 'left', 'top', 'right', 'fit'. Default: 'bottom left'.
- * - `controller` - `{string=}`: The controller to associate with this toast.
- * The controller will be injected the local `$hideToast`, which is a function
- * used to hide the toast.
- * - `locals` - `{string=}`: An object containing key/value pairs. The keys will
- * be used as names of values to inject into the controller. For example,
- * `locals: {three: 3}` would inject `three` into the controller with the value
- * of 3.
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in. These values will not be available until after initialization.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
- * and the toast will not open until the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the toast to. Defaults to appending
- * to the root element of the application.
- *
- * @returns {promise} A promise that can be resolved with `$mdToast.hide()` or
- * rejected with `$mdToast.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#hide
- *
- * @description
- * Hide an existing toast and resolve the promise returned from `$mdToast.show()`.
- *
- * @param {*=} response An argument for the resolved promise.
- *
- * @returns {promise} a promise that is called when the existing element is removed from the DOM
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdToast#cancel
- *
- * @description
- * Hide the existing toast and reject the promise returned from
- * `$mdToast.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- * @returns {promise} a promise that is called when the existing element is removed from the DOM
- *
- */
-
-function MdToastProvider($$interimElementProvider) {
- var activeToastContent;
- var $mdToast = $$interimElementProvider('$mdToast')
- .setDefaults({
- methods: ['position', 'hideDelay', 'capsule' ],
- options: toastDefaultOptions
- })
- .addPreset('simple', {
- argOption: 'content',
- methods: ['content', 'action', 'highlightAction', 'theme', 'parent'],
- options: /* ngInject */ ["$mdToast", "$mdTheming", function($mdToast, $mdTheming) {
- var opts = {
- template: [
- '<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">',
- '<span flex>{{ toast.content }}</span>',
- '<md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}">',
- '{{ toast.action }}',
- '</md-button>',
- '</md-toast>'
- ].join(''),
- controller: /* ngInject */ ["$scope", function mdToastCtrl($scope) {
- var self = this;
- $scope.$watch(function() { return activeToastContent; }, function() {
- self.content = activeToastContent;
- });
- this.resolve = function() {
- $mdToast.hide();
- };
- }],
- theme: $mdTheming.defaultTheme(),
- controllerAs: 'toast',
- bindToController: true
- };
- return opts;
- }]
- })
- .addMethod('updateContent', function(newContent) {
- activeToastContent = newContent;
- });
-
- toastDefaultOptions.$inject = ["$timeout", "$animate", "$mdToast", "$mdUtil"];
- return $mdToast;
-
- /* ngInject */
- function toastDefaultOptions($timeout, $animate, $mdToast, $mdUtil) {
- return {
- onShow: onShow,
- onRemove: onRemove,
- position: 'bottom left',
- themable: true,
- hideDelay: 3000
- };
-
- function onShow(scope, element, options) {
- element = $mdUtil.extractElementByName(element, 'md-toast');
-
- // 'top left' -> 'md-top md-left'
- activeToastContent = options.content;
- element.addClass(options.position.split(' ').map(function(pos) {
- return 'md-' + pos;
- }).join(' '));
- options.parent.addClass(toastOpenClass(options.position));
-
- options.onSwipe = function(ev, gesture) {
- //Add swipeleft/swiperight class to element so it can animate correctly
- element.addClass('md-' + ev.type.replace('$md.',''));
- $timeout($mdToast.cancel);
- };
- element.on('$md.swipeleft $md.swiperight', options.onSwipe);
- return $animate.enter(element, options.parent);
- }
-
- function onRemove(scope, element, options) {
- element.off('$md.swipeleft $md.swiperight', options.onSwipe);
- options.parent.removeClass(toastOpenClass(options.position));
- return $animate.leave(element);
- }
-
- function toastOpenClass(position) {
- return 'md-toast-open-' +
- (position.indexOf('top') > -1 ? 'top' : 'bottom');
- }
- }
-
-}
-MdToastProvider.$inject = ["$$interimElementProvider"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.min.css
deleted file mode 100644
index 84033237..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-toast{display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;box-sizing:border-box;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-height:48px;padding-left:24px;padding-right:24px;box-shadow:0 2px 5px 0 rgba(0,0,0,.26);border-radius:2px;font-size:14px;cursor:default;max-width:100%;max-height:40px;height:24px;z-index:90;opacity:1;-webkit-transform:translate3d(0,0,0) rotateZ(0deg);transform:translate3d(0,0,0) rotateZ(0deg);transition:all .4s cubic-bezier(.25,.8,.25,1)}md-toast.md-capsule{border-radius:24px}md-toast.ng-leave-active{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-toast.md-swipedown,md-toast.md-swipeleft,md-toast.md-swiperight,md-toast.md-swipeup{transition:all .4s cubic-bezier(.25,.8,.25,1)}md-toast.ng-enter{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);opacity:0}md-toast.ng-enter.md-top{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}md-toast.ng-enter.ng-enter-active{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}md-toast.ng-leave.ng-leave-active{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}md-toast.ng-leave.ng-leave-active.md-top{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}md-toast.ng-leave.ng-leave-active.md-swipeleft{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}md-toast.ng-leave.ng-leave-active.md-swiperight{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}md-toast .md-action{line-height:19px;margin-left:24px;cursor:pointer;text-transform:uppercase;float:right}md-toast .md-action.md-button{min-width:0}@media (max-width:600px){md-toast{left:0;right:0;width:100%;max-width:100%;min-width:0;border-radius:0;bottom:0}md-toast.md-top{bottom:auto;top:0}}@media (min-width:600px){md-toast{min-width:288px}md-toast.md-bottom{bottom:8px}md-toast.md-left{left:8px}md-toast.md-right{right:8px}md-toast.md-top{top:8px}md-toast.ng-leave.ng-leave-active.md-swipeleft{-webkit-transform:translate3d(-100%,25%,0) rotateZ(-15deg);transform:translate3d(-100%,25%,0) rotateZ(-15deg)}md-toast.ng-leave.ng-leave-active.md-swiperight{-webkit-transform:translate3d(100%,25%,0) rotateZ(15deg);transform:translate3d(100%,25%,0) rotateZ(15deg)}md-toast.ng-leave.ng-leave-active.md-top.md-swipeleft{-webkit-transform:translate3d(-100%,0,0) rotateZ(-15deg);transform:translate3d(-100%,0,0) rotateZ(-15deg)}md-toast.ng-leave.ng-leave-active.md-top.md-swiperight{-webkit-transform:translate3d(100%,0,0) rotateZ(15deg);transform:translate3d(100%,0,0) rotateZ(15deg)}}@media (min-width:1200px){md-toast{max-width:568px}}@media screen and (-ms-high-contrast:active){md-toast{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.min.js
deleted file mode 100644
index 3f2a3fcf..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toast/toast.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(t,e,n){"use strict";function o(){return{restrict:"E"}}function i(t){function e(t,e,o,i){function a(a,s,m){return s=i.extractElementByName(s,"md-toast"),n=m.content,s.addClass(m.position.split(" ").map(function(t){return"md-"+t}).join(" ")),m.parent.addClass(r(m.position)),m.onSwipe=function(e,n){s.addClass("md-"+e.type.replace("$md.","")),t(o.cancel)},s.on("$md.swipeleft $md.swiperight",m.onSwipe),e.enter(s,m.parent)}function s(t,n,o){return n.off("$md.swipeleft $md.swiperight",o.onSwipe),o.parent.removeClass(r(o.position)),e.leave(n)}function r(t){return"md-toast-open-"+(t.indexOf("top")>-1?"top":"bottom")}return{onShow:a,onRemove:s,position:"bottom left",themable:!0,hideDelay:3e3}}var n,o=t("$mdToast").setDefaults({methods:["position","hideDelay","capsule"],options:e}).addPreset("simple",{argOption:"content",methods:["content","action","highlightAction","theme","parent"],options:["$mdToast","$mdTheming",function(t,e){var o={template:['<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">',"<span flex>{{ toast.content }}</span>",'<md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}">',"{{ toast.action }}","</md-button>","</md-toast>"].join(""),controller:["$scope",function(e){var o=this;e.$watch(function(){return n},function(){o.content=n}),this.resolve=function(){t.hide()}}],theme:e.defaultTheme(),controllerAs:"toast",bindToController:!0};return o}]}).addMethod("updateContent",function(t){n=t});return e.$inject=["$timeout","$animate","$mdToast","$mdUtil"],o}e.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",o).provider("$mdToast",i),i.$inject=["$$interimElementProvider"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/bower.json
deleted file mode 100644
index f6dd3844..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-toolbar",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-content": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.css
deleted file mode 100644
index adab0ade..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-toolbar.md-THEME_NAME-theme {
- background-color: '{{primary-color}}';
- color: '{{primary-contrast}}'; }
- md-toolbar.md-THEME_NAME-theme md-icon {
- color: '{{primary-contrast}}'; }
- md-toolbar.md-THEME_NAME-theme .md-button {
- color: '{{primary-contrast}}'; }
- md-toolbar.md-THEME_NAME-theme.md-accent {
- background-color: '{{accent-color}}';
- color: '{{accent-contrast}}'; }
- md-toolbar.md-THEME_NAME-theme.md-warn {
- background-color: '{{warn-color}}';
- color: '{{warn-contrast}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.min.css
deleted file mode 100644
index 563f96e8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-toolbar.md-THEME_NAME-theme{background-color:'{{primary-color}}';color:'{{primary-contrast}}'}md-toolbar.md-THEME_NAME-theme .md-button,md-toolbar.md-THEME_NAME-theme md-icon{color:'{{primary-contrast}}'}md-toolbar.md-THEME_NAME-theme.md-accent{background-color:'{{accent-color}}';color:'{{accent-contrast}}'}md-toolbar.md-THEME_NAME-theme.md-warn{background-color:'{{warn-color}}';color:'{{warn-contrast}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.css
deleted file mode 100644
index a93dfe35..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.css
+++ /dev/null
@@ -1,83 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-toolbar {
- box-sizing: border-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- position: relative;
- z-index: 2;
- font-size: 20px;
- min-height: 64px;
- width: 100%; }
- md-toolbar.md-whiteframe-z1-add, md-toolbar.md-whiteframe-z1-remove {
- transition: box-shadow 0.5s linear; }
- md-toolbar *, md-toolbar *:before, md-toolbar *:after {
- box-sizing: border-box; }
- md-toolbar.md-tall {
- height: 128px;
- min-height: 128px;
- max-height: 128px; }
- md-toolbar.md-medium-tall {
- height: 88px;
- min-height: 88px;
- max-height: 88px; }
- md-toolbar.md-medium-tall .md-toolbar-tools {
- height: 48px;
- min-height: 48px;
- max-height: 48px; }
- md-toolbar .md-indent {
- margin-left: 64px; }
- md-toolbar ~ md-content > md-list {
- padding: 0; }
- md-toolbar ~ md-content > md-list md-list-item:last-child md-divider {
- display: none; }
-
-.md-toolbar-tools {
- font-weight: 400;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-flex-direction: row;
- -ms-flex-direction: row;
- flex-direction: row;
- width: 100%;
- height: 64px;
- max-height: 64px;
- padding: 0 16px;
- margin: 0; }
- .md-toolbar-tools h1, .md-toolbar-tools h2, .md-toolbar-tools h3 {
- font-size: inherit;
- font-weight: inherit;
- margin: inherit; }
- .md-toolbar-tools a {
- color: inherit;
- text-decoration: none; }
- .md-toolbar-tools .fill-height {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center; }
- .md-toolbar-tools .md-button {
- margin-top: 0;
- margin-bottom: 0; }
- .md-toolbar-tools > .md-button:first-child {
- margin-left: -8px; }
- .md-toolbar-tools > .md-button:last-child {
- margin-right: -8px; }
- @media screen and (-ms-high-contrast: active) {
- .md-toolbar-tools {
- border-bottom: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.js
deleted file mode 100644
index 8508470b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.js
+++ /dev/null
@@ -1,169 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.toolbar
- */
-angular.module('material.components.toolbar', [
- 'material.core',
- 'material.components.content'
-])
- .directive('mdToolbar', mdToolbarDirective);
-
-/**
- * @ngdoc directive
- * @name mdToolbar
- * @module material.components.toolbar
- * @restrict E
- * @description
- * `md-toolbar` is used to place a toolbar in your app.
- *
- * Toolbars are usually used above a content area to display the title of the
- * current page, and show relevant action buttons for that page.
- *
- * You can change the height of the toolbar by adding either the
- * `md-medium-tall` or `md-tall` class to the toolbar.
- *
- * @usage
- * <hljs lang="html">
- * <div layout="column" layout-fill>
- * <md-toolbar>
- *
- * <div class="md-toolbar-tools">
- * <span>My App's Title</span>
- *
- * <!-- fill up the space between left and right area -->
- * <span flex></span>
- *
- * <md-button>
- * Right Bar Button
- * </md-button>
- * </div>
- *
- * </md-toolbar>
- * <md-content>
- * Hello!
- * </md-content>
- * </div>
- * </hljs>
- *
- * @param {boolean=} md-scroll-shrink Whether the header should shrink away as
- * the user scrolls down, and reveal itself as the user scrolls up.
- * Note: for scrollShrink to work, the toolbar must be a sibling of a
- * `md-content` element, placed before it. See the scroll shrink demo.
- *
- *
- * @param {number=} md-shrink-speed-factor How much to change the speed of the toolbar's
- * shrinking by. For example, if 0.25 is given then the toolbar will shrink
- * at one fourth the rate at which the user scrolls down. Default 0.5.
- */
-function mdToolbarDirective($$rAF, $mdConstant, $mdUtil, $mdTheming, $animate, $timeout) {
-
- return {
- restrict: 'E',
- controller: angular.noop,
- link: function(scope, element, attr) {
- $mdTheming(element);
-
- if (angular.isDefined(attr.mdScrollShrink)) {
- setupScrollShrink();
- }
-
- function setupScrollShrink() {
- // Current "y" position of scroll
- var y = 0;
- // Store the last scroll top position
- var prevScrollTop = 0;
-
- var shrinkSpeedFactor = attr.mdShrinkSpeedFactor || 0.5;
-
- var toolbarHeight;
- var contentElement;
-
- var debouncedContentScroll = $$rAF.throttle(onContentScroll);
- var debouncedUpdateHeight = $mdUtil.debounce(updateToolbarHeight, 5 * 1000);
-
- // Wait for $mdContentLoaded event from mdContent directive.
- // If the mdContent element is a sibling of our toolbar, hook it up
- // to scroll events.
- scope.$on('$mdContentLoaded', onMdContentLoad);
-
- function onMdContentLoad($event, newContentEl) {
- // Toolbar and content must be siblings
- if (element.parent()[0] === newContentEl.parent()[0]) {
- // unhook old content event listener if exists
- if (contentElement) {
- contentElement.off('scroll', debouncedContentScroll);
- }
-
- newContentEl.on('scroll', debouncedContentScroll);
- newContentEl.attr('scroll-shrink', 'true');
-
- contentElement = newContentEl;
- $$rAF(updateToolbarHeight);
- }
- }
-
- function updateToolbarHeight() {
- toolbarHeight = element.prop('offsetHeight');
- // Add a negative margin-top the size of the toolbar to the content el.
- // The content will start transformed down the toolbarHeight amount,
- // so everything looks normal.
- //
- // As the user scrolls down, the content will be transformed up slowly
- // to put the content underneath where the toolbar was.
- var margin = (-toolbarHeight * shrinkSpeedFactor) + 'px';
- contentElement.css('margin-top', margin);
- contentElement.css('margin-bottom', margin);
-
- onContentScroll();
- }
-
- function onContentScroll(e) {
- var scrollTop = e ? e.target.scrollTop : prevScrollTop;
-
- debouncedUpdateHeight();
-
- y = Math.min(
- toolbarHeight / shrinkSpeedFactor,
- Math.max(0, y + scrollTop - prevScrollTop)
- );
-
- element.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(0,' + (-y * shrinkSpeedFactor) + 'px,0)'
- );
- contentElement.css(
- $mdConstant.CSS.TRANSFORM,
- 'translate3d(0,' + ((toolbarHeight - y) * shrinkSpeedFactor) + 'px,0)'
- );
-
- prevScrollTop = scrollTop;
-
- if (element.hasClass('md-whiteframe-z1')) {
- if (!y) {
- $timeout(function () { $animate.removeClass(element, 'md-whiteframe-z1'); });
- }
- } else {
- if (y) {
- $timeout(function () { $animate.addClass(element, 'md-whiteframe-z1'); });
- }
- }
- }
-
- }
-
- }
- };
-
-}
-mdToolbarDirective.$inject = ["$$rAF", "$mdConstant", "$mdUtil", "$mdTheming", "$animate", "$timeout"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.min.css
deleted file mode 100644
index 633f4c81..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-toolbar{box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;z-index:2;font-size:20px;min-height:64px;width:100%}md-toolbar.md-whiteframe-z1-add,md-toolbar.md-whiteframe-z1-remove{transition:box-shadow .5s linear}md-toolbar *,md-toolbar :after,md-toolbar :before{box-sizing:border-box}md-toolbar.md-tall{height:128px;min-height:128px;max-height:128px}md-toolbar.md-medium-tall{height:88px;min-height:88px;max-height:88px}md-toolbar.md-medium-tall .md-toolbar-tools{height:48px;min-height:48px;max-height:48px}md-toolbar .md-indent{margin-left:64px}md-toolbar~md-content>md-list{padding:0}md-toolbar~md-content>md-list md-list-item:last-child md-divider{display:none}.md-toolbar-tools{font-weight:400;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:100%;height:64px;max-height:64px;padding:0 16px;margin:0}.md-toolbar-tools h1,.md-toolbar-tools h2,.md-toolbar-tools h3{font-size:inherit;font-weight:inherit;margin:inherit}.md-toolbar-tools a{color:inherit;text-decoration:none}.md-toolbar-tools .fill-height{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.md-toolbar-tools .md-button{margin-top:0;margin-bottom:0}.md-toolbar-tools>.md-button:first-child{margin-left:-8px}.md-toolbar-tools>.md-button:last-child{margin-right:-8px}@media screen and (-ms-high-contrast:active){.md-toolbar-tools{border-bottom:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.min.js
deleted file mode 100644
index 14c15599..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/toolbar/toolbar.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(t,n,o){"use strict";function e(t,o,e,r,a,i){return{restrict:"E",controller:n.noop,link:function(s,c,m){function l(){function n(n,o){c.parent()[0]===o.parent()[0]&&(f&&f.off("scroll",S),o.on("scroll",S),o.attr("scroll-shrink","true"),f=o,t(r))}function r(){d=c.prop("offsetHeight");var t=-d*h+"px";f.css("margin-top",t),f.css("margin-bottom",t),l()}function l(t){var n=t?t.target.scrollTop:p;$(),u=Math.min(d/h,Math.max(0,u+n-p)),c.css(o.CSS.TRANSFORM,"translate3d(0,"+-u*h+"px,0)"),f.css(o.CSS.TRANSFORM,"translate3d(0,"+(d-u)*h+"px,0)"),p=n,c.hasClass("md-whiteframe-z1")?u||i(function(){a.removeClass(c,"md-whiteframe-z1")}):u&&i(function(){a.addClass(c,"md-whiteframe-z1")})}var d,f,u=0,p=0,h=m.mdShrinkSpeedFactor||.5,S=t.throttle(l),$=e.debounce(r,5e3);s.$on("$mdContentLoaded",n)}r(c),n.isDefined(m.mdScrollShrink)&&l()}}}n.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e),e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate","$timeout"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/bower.json
deleted file mode 100644
index 0e4dbfb3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/bower.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "angular-material-tooltip",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.css
deleted file mode 100644
index 23d24c17..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.css
+++ /dev/null
@@ -1,11 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-tooltip.md-THEME_NAME-theme {
- color: '{{background-A100}}'; }
- md-tooltip.md-THEME_NAME-theme .md-background {
- background-color: '{{foreground-2}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.min.css
deleted file mode 100644
index 306430dc..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-tooltip.md-THEME_NAME-theme{color:'{{background-A100}}'}md-tooltip.md-THEME_NAME-theme .md-background{background-color:'{{foreground-2}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.css
deleted file mode 100644
index 6679568d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.css
+++ /dev/null
@@ -1,72 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-tooltip {
- position: absolute;
- z-index: 100;
- overflow: hidden;
- pointer-events: none;
- border-radius: 4px;
- font-weight: 500;
- font-size: 14px; }
- @media screen and (min-width: 600px) {
- md-tooltip {
- font-size: 10px; } }
- md-tooltip .md-background {
- position: absolute;
- border-radius: 50%;
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 1; }
- md-tooltip .md-background.md-show-add {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 0; }
- md-tooltip .md-background.md-show, md-tooltip .md-background.md-show-add-active {
- -webkit-transform: translate(-50%, -50%) scale(1);
- transform: translate(-50%, -50%) scale(1);
- opacity: 1; }
- md-tooltip .md-background.md-show-remove {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip .md-background.md-show-remove.md-show-remove-active {
- -webkit-transform: translate(-50%, -50%) scale(0);
- transform: translate(-50%, -50%) scale(0);
- opacity: 0; }
- md-tooltip .md-content {
- position: relative;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- background: transparent;
- opacity: 0;
- height: 32px;
- line-height: 32px;
- padding-left: 16px;
- padding-right: 16px; }
- @media screen and (min-width: 600px) {
- md-tooltip .md-content {
- height: 22px;
- line-height: 22px;
- padding-left: 8px;
- padding-right: 8px; } }
- md-tooltip .md-content.md-show-add {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- opacity: 0; }
- md-tooltip .md-content.md-show, md-tooltip .md-content.md-show-add-active {
- opacity: 1; }
- md-tooltip .md-content.md-show-remove {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip .md-content.md-show-remove.md-show-remove-active {
- opacity: 0; }
- md-tooltip.md-hide {
- transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2); }
- md-tooltip.md-show {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- pointer-events: auto;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0); }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.js
deleted file mode 100644
index b2e428ed..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.js
+++ /dev/null
@@ -1,268 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.tooltip
- */
-angular
- .module('material.components.tooltip', [ 'material.core' ])
- .directive('mdTooltip', MdTooltipDirective);
-
-/**
- * @ngdoc directive
- * @name mdTooltip
- * @module material.components.tooltip
- * @description
- * Tooltips are used to describe elements that are interactive and primarily graphical (not textual).
- *
- * Place a `<md-tooltip>` as a child of the element it describes.
- *
- * A tooltip will activate when the user focuses, hovers over, or touches the parent.
- *
- * @usage
- * <hljs lang="html">
- * <md-button class="md-fab md-accent" aria-label="Play">
- * <md-tooltip>
- * Play Music
- * </md-tooltip>
- * <md-icon icon="img/icons/ic_play_arrow_24px.svg"></md-icon>
- * </md-button>
- * </hljs>
- *
- * @param {expression=} md-visible Boolean bound to whether the tooltip is
- * currently visible.
- * @param {number=} md-delay How many milliseconds to wait to show the tooltip after the user focuses, hovers, or touches the parent. Defaults to 400ms.
- * @param {string=} md-direction Which direction would you like the tooltip to go? Supports left, right, top, and bottom. Defaults to bottom.
- * @param {boolean=} md-autohide If present or provided with a boolean value, the tooltip will hide on mouse leave, regardless of focus
- */
-function MdTooltipDirective($timeout, $window, $$rAF, $document, $mdUtil, $mdTheming, $rootElement,
- $animate, $q) {
-
- var TOOLTIP_SHOW_DELAY = 300;
- var TOOLTIP_WINDOW_EDGE_SPACE = 8;
-
- return {
- restrict: 'E',
- transclude: true,
- priority:210, // Before ngAria
- template: '\
- <div class="md-background"></div>\
- <div class="md-content" ng-transclude></div>',
- scope: {
- visible: '=?mdVisible',
- delay: '=?mdDelay',
- autohide: '=?mdAutohide'
- },
- link: postLink
- };
-
- function postLink(scope, element, attr) {
-
- $mdTheming(element);
-
- var parent = getParentWithPointerEvents(),
- background = angular.element(element[0].getElementsByClassName('md-background')[0]),
- content = angular.element(element[0].getElementsByClassName('md-content')[0]),
- direction = attr.mdDirection,
- current = getNearestContentElement(),
- tooltipParent = angular.element(current || document.body),
- debouncedOnResize = $$rAF.throttle(function () { if (scope.visible) positionTooltip(); });
-
- return init();
-
- function init () {
- setDefaults();
- manipulateElement();
- bindEvents();
- configureWatchers();
- addAriaLabel();
- }
-
- function setDefaults () {
- if (!angular.isDefined(attr.mdDelay)) scope.delay = TOOLTIP_SHOW_DELAY;
- }
-
- function configureWatchers () {
- scope.$on('$destroy', function() {
- scope.visible = false;
- element.remove();
- angular.element($window).off('resize', debouncedOnResize);
- });
- scope.$watch('visible', function (isVisible) {
- if (isVisible) showTooltip();
- else hideTooltip();
- });
- }
-
- function addAriaLabel () {
- if (!parent.attr('aria-label') && !parent.text().trim()) {
- parent.attr('aria-label', element.text().trim());
- }
- }
-
- function manipulateElement () {
- element.detach();
- element.attr('role', 'tooltip');
- }
-
- function getParentWithPointerEvents () {
- var parent = element.parent();
- while (parent && $window.getComputedStyle(parent[0])['pointer-events'] == 'none') {
- parent = parent.parent();
- }
- return parent;
- }
-
- function getNearestContentElement () {
- var current = element.parent()[0];
- // Look for the nearest parent md-content, stopping at the rootElement.
- while (current && current !== $rootElement[0] && current !== document.body) {
- current = current.parentNode;
- }
- return current;
- }
-
- function hasComputedStyleValue(key, value) {
- // Check if we should show it or not...
- var computedStyles = $window.getComputedStyle(element[0]);
- return angular.isDefined(computedStyles[key]) && (computedStyles[key] == value);
- }
-
- function bindEvents () {
- var mouseActive = false;
- var enterHandler = function() {
- if (!hasComputedStyleValue('pointer-events','none')) {
- setVisible(true);
- }
- };
- var leaveHandler = function () {
- var autohide = scope.hasOwnProperty('autohide') ? scope.autohide : attr.hasOwnProperty('mdAutohide');
- if (autohide || mouseActive || ($document[0].activeElement !== parent[0]) ) {
- setVisible(false);
- }
- mouseActive = false;
- };
-
- // to avoid `synthetic clicks` we listen to mousedown instead of `click`
- parent.on('mousedown', function() { mouseActive = true; });
- parent.on('focus mouseenter touchstart', enterHandler );
- parent.on('blur mouseleave touchend touchcancel', leaveHandler );
-
-
- angular.element($window).on('resize', debouncedOnResize);
- }
-
- function setVisible (value) {
- setVisible.value = !!value;
- if (!setVisible.queued) {
- if (value) {
- setVisible.queued = true;
- $timeout(function() {
- scope.visible = setVisible.value;
- setVisible.queued = false;
- }, scope.delay);
- } else {
- $timeout(function() { scope.visible = false; });
- }
- }
- }
-
- function showTooltip() {
- // Insert the element before positioning it, so we can get the position
- // and check if we should display it
- tooltipParent.append(element);
-
- // Check if we should display it or not.
- // This handles hide-* and show-* along with any user defined css
- if ( hasComputedStyleValue('display','none') ) {
- scope.visible = false;
- element.detach();
- return;
- }
-
- positionTooltip();
- angular.forEach([element, background, content], function (element) {
- $animate.addClass(element, 'md-show');
- });
- }
-
- function hideTooltip() {
- $q.all([
- $animate.removeClass(content, 'md-show'),
- $animate.removeClass(background, 'md-show'),
- $animate.removeClass(element, 'md-show')
- ]).then(function () {
- if (!scope.visible) element.detach();
- });
- }
-
- function positionTooltip() {
- var tipRect = $mdUtil.offsetRect(element, tooltipParent);
- var parentRect = $mdUtil.offsetRect(parent, tooltipParent);
- var newPosition = getPosition(direction);
-
- // If the user provided a direction, just nudge the tooltip onto the screen
- // Otherwise, recalculate based on 'top' since default is 'bottom'
- if (direction) {
- newPosition = fitInParent(newPosition);
- } else if (newPosition.top > element.prop('offsetParent').scrollHeight - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE) {
- newPosition = fitInParent(getPosition('top'));
- }
-
- element.css({top: newPosition.top + 'px', left: newPosition.left + 'px'});
-
- positionBackground();
-
- function positionBackground () {
- var size = direction === 'left' || direction === 'right'
- ? Math.sqrt(Math.pow(tipRect.width, 2) + Math.pow(tipRect.height / 2, 2)) * 2
- : Math.sqrt(Math.pow(tipRect.width / 2, 2) + Math.pow(tipRect.height, 2)) * 2,
- position = direction === 'left' ? { left: 100, top: 50 }
- : direction === 'right' ? { left: 0, top: 50 }
- : direction === 'top' ? { left: 50, top: 100 }
- : { left: 50, top: 0 };
- background.css({
- width: size + 'px',
- height: size + 'px',
- left: position.left + '%',
- top: position.top + '%'
- });
- }
-
- function fitInParent (pos) {
- var newPosition = { left: pos.left, top: pos.top };
- newPosition.left = Math.min( newPosition.left, tooltipParent.prop('scrollWidth') - tipRect.width - TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.left = Math.max( newPosition.left, TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.top = Math.min( newPosition.top, tooltipParent.prop('scrollHeight') - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE );
- newPosition.top = Math.max( newPosition.top, TOOLTIP_WINDOW_EDGE_SPACE );
- return newPosition;
- }
-
- function getPosition (dir) {
- return dir === 'left'
- ? { left: parentRect.left - tipRect.width - TOOLTIP_WINDOW_EDGE_SPACE,
- top: parentRect.top + parentRect.height / 2 - tipRect.height / 2 }
- : dir === 'right'
- ? { left: parentRect.left + parentRect.width + TOOLTIP_WINDOW_EDGE_SPACE,
- top: parentRect.top + parentRect.height / 2 - tipRect.height / 2 }
- : dir === 'top'
- ? { left: parentRect.left + parentRect.width / 2 - tipRect.width / 2,
- top: parentRect.top - tipRect.height - TOOLTIP_WINDOW_EDGE_SPACE }
- : { left: parentRect.left + parentRect.width / 2 - tipRect.width / 2,
- top: parentRect.top + parentRect.height + TOOLTIP_WINDOW_EDGE_SPACE };
- }
- }
-
- }
-
-}
-MdTooltipDirective.$inject = ["$timeout", "$window", "$$rAF", "$document", "$mdUtil", "$mdTheming", "$rootElement", "$animate", "$q"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.min.css
deleted file mode 100644
index b0641c05..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-tooltip{position:absolute;z-index:100;overflow:hidden;pointer-events:none;border-radius:4px;font-weight:500;font-size:14px}@media screen and (min-width:600px){md-tooltip{font-size:10px}}md-tooltip .md-background{position:absolute;border-radius:50%;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);opacity:1}md-tooltip .md-background.md-show-add{transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);opacity:0}md-tooltip .md-background.md-show,md-tooltip .md-background.md-show-add-active{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1);opacity:1}md-tooltip .md-background.md-show-remove{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-tooltip .md-background.md-show-remove.md-show-remove-active{-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);opacity:0}md-tooltip .md-content{position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:0 0;opacity:0;height:32px;line-height:32px;padding-left:16px;padding-right:16px}@media screen and (min-width:600px){md-tooltip .md-content{height:22px;line-height:22px;padding-left:8px;padding-right:8px}}md-tooltip .md-content.md-show-add{transition:all .4s cubic-bezier(.25,.8,.25,1);opacity:0}md-tooltip .md-content.md-show,md-tooltip .md-content.md-show-add-active{opacity:1}md-tooltip .md-content.md-show-remove{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-tooltip .md-content.md-show-remove.md-show-remove-active{opacity:0}md-tooltip.md-hide{transition:all .3s cubic-bezier(.55,0,.55,.2)}md-tooltip.md-show{transition:all .4s cubic-bezier(.25,.8,.25,1);pointer-events:auto;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.min.js
deleted file mode 100644
index 993472d1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/tooltip/tooltip.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(t,e,o){"use strict";function n(t,o,n,i,l,r,a,d,u){function h(h,s,p){function m(){v(),b(),x(),w(),g()}function v(){e.isDefined(p.mdDelay)||(h.delay=f)}function w(){h.$on("$destroy",function(){h.visible=!1,s.remove(),e.element(o).off("resize",H)}),h.$watch("visible",function(t){t?q():E()})}function g(){k.attr("aria-label")||k.text().trim()||k.attr("aria-label",s.text().trim())}function b(){s.detach(),s.attr("role","tooltip")}function y(){for(var t=s.parent();t&&"none"==o.getComputedStyle(t[0])["pointer-events"];)t=t.parent();return t}function $(){for(var t=s.parent()[0];t&&t!==a[0]&&t!==document.body;)t=t.parentNode;return t}function M(t,n){var i=o.getComputedStyle(s[0]);return e.isDefined(i[t])&&i[t]==n}function x(){var t=!1,n=function(){M("pointer-events","none")||C(!0)},l=function(){var e=h.hasOwnProperty("autohide")?h.autohide:p.hasOwnProperty("mdAutohide");(e||t||i[0].activeElement!==k[0])&&C(!1),t=!1};k.on("mousedown",function(){t=!0}),k.on("focus mouseenter touchstart",n),k.on("blur mouseleave touchend touchcancel",l),e.element(o).on("resize",H)}function C(e){C.value=!!e,C.queued||(e?(C.queued=!0,t(function(){h.visible=C.value,C.queued=!1},h.delay)):t(function(){h.visible=!1}))}function q(){return B.append(s),M("display","none")?(h.visible=!1,void s.detach()):(D(),void e.forEach([s,A,N],function(t){d.addClass(t,"md-show")}))}function E(){u.all([d.removeClass(N,"md-show"),d.removeClass(A,"md-show"),d.removeClass(s,"md-show")]).then(function(){h.visible||s.detach()})}function D(){function t(){var t="left"===P||"right"===P?2*Math.sqrt(Math.pow(n.width,2)+Math.pow(n.height/2,2)):2*Math.sqrt(Math.pow(n.width/2,2)+Math.pow(n.height,2)),e="left"===P?{left:100,top:50}:"right"===P?{left:0,top:50}:"top"===P?{left:50,top:100}:{left:50,top:0};A.css({width:t+"px",height:t+"px",left:e.left+"%",top:e.top+"%"})}function e(t){var e={left:t.left,top:t.top};return e.left=Math.min(e.left,B.prop("scrollWidth")-n.width-c),e.left=Math.max(e.left,c),e.top=Math.min(e.top,B.prop("scrollHeight")-n.height-c),e.top=Math.max(e.top,c),e}function o(t){return"left"===t?{left:i.left-n.width-c,top:i.top+i.height/2-n.height/2}:"right"===t?{left:i.left+i.width+c,top:i.top+i.height/2-n.height/2}:"top"===t?{left:i.left+i.width/2-n.width/2,top:i.top-n.height-c}:{left:i.left+i.width/2-n.width/2,top:i.top+i.height+c}}var n=l.offsetRect(s,B),i=l.offsetRect(k,B),r=o(P);P?r=e(r):r.top>s.prop("offsetParent").scrollHeight-n.height-c&&(r=e(o("top"))),s.css({top:r.top+"px",left:r.left+"px"}),t()}r(s);var k=y(),A=e.element(s[0].getElementsByClassName("md-background")[0]),N=e.element(s[0].getElementsByClassName("md-content")[0]),P=p.mdDirection,z=$(),B=e.element(z||document.body),H=n.throttle(function(){h.visible&&D()});return m()}var f=300,c=8;return{restrict:"E",transclude:!0,priority:210,template:' <div class="md-background"></div> <div class="md-content" ng-transclude></div>',scope:{visible:"=?mdVisible",delay:"=?mdDelay",autohide:"=?mdAutohide"},link:h}}e.module("material.components.tooltip",["material.core"]).directive("mdTooltip",n),n.$inject=["$timeout","$window","$$rAF","$document","$mdUtil","$mdTheming","$rootElement","$animate","$q"]}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/bower.json
deleted file mode 100644
index 45cadc56..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/bower.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "angular-material-whiteframe",
- "version": "0.9.8",
- "dependencies": {}
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.css
deleted file mode 100644
index a08590d4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.css
+++ /dev/null
@@ -1,25 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-whiteframe-z1 {
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.14), 0px 2px 2px 0px rgba(0, 0, 0, 0.098), 0px 1px 5px 0px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z2 {
- box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.14), 0 4px 5px 0 rgba(0, 0, 0, 0.098), 0 1px 10px 0 rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z3 {
- box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.14), 0px 6px 10px 0px rgba(0, 0, 0, 0.098), 0px 1px 18px 0px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z4 {
- box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.14), 0px 8px 10px 1px rgba(0, 0, 0, 0.098), 0px 3px 14px 2px rgba(0, 0, 0, 0.084); }
-
-.md-whiteframe-z5 {
- box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.14), 0px 16px 24px 2px rgba(0, 0, 0, 0.098), 0px 6px 30px 5px rgba(0, 0, 0, 0.084); }
-
-@media screen and (-ms-high-contrast: active) {
- md-whiteframe {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.js
deleted file mode 100644
index 9129122e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.whiteframe
- */
-angular.module('material.components.whiteframe', []);
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.css
deleted file mode 100644
index e46fc5a1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-whiteframe-z1{box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084)}.md-whiteframe-z2{box-shadow:0 2px 4px -1px rgba(0,0,0,.14),0 4px 5px 0 rgba(0,0,0,.098),0 1px 10px 0 rgba(0,0,0,.084)}.md-whiteframe-z3{box-shadow:0 3px 5px -1px rgba(0,0,0,.14),0 6px 10px 0 rgba(0,0,0,.098),0 1px 18px 0 rgba(0,0,0,.084)}.md-whiteframe-z4{box-shadow:0 5px 5px -3px rgba(0,0,0,.14),0 8px 10px 1px rgba(0,0,0,.098),0 3px 14px 2px rgba(0,0,0,.084)}.md-whiteframe-z5{box-shadow:0 8px 10px -5px rgba(0,0,0,.14),0 16px 24px 2px rgba(0,0,0,.098),0 6px 30px 5px rgba(0,0,0,.084)}@media screen and (-ms-high-contrast:active){md-whiteframe{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.js
deleted file mode 100644
index 575ea494..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/whiteframe/whiteframe.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(n,e,i){"use strict";e.module("material.components.whiteframe",[])}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/package.json b/ecomp-portal-FE/client/bower_components/angular-material/package.json
deleted file mode 100644
index 71c8eac4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "name": "angular-material",
- "version": "0.9.8",
- "main": "index",
- "format": "cjs",
- "registry": "github",
- "peerDependencies": {
- "angular": "^1.3.15 || >1.4.0-beta.0",
- "angular-animate": "^1.3.15 || >1.4.0-beta.0",
- "angular-aria": "^1.3.15 || >1.4.0-beta.0"
- },
- "jspm": {
- "dependencies": {
- "angular": "angular/bower-angular@^1.3.15",
- "angular-animate": "angular/bower-angular-animate@^1.3.15",
- "angular-aria": "angular/bower-angular-aria@^1.3.15",
- "css": "systemjs/plugin-css@^0.1.9"
- },
- "shim": {
- "angular-material": {
- "deps": [
- "./angular-material.css!"
- ]
- }
- },
- "peerDependencies": {}
- },
- "homepage": "https://material.angularjs.org",
- "repository": {
- "type": "git",
- "url": "git://github.com/angular/material.git"
- },
- "licenses": [
- {
- "type": "MIT",
- "url": "https://github.com/angular/material/blob/master/LICENSE"
- }
- ],
- "keywords": [
- "angular",
- "material",
- "browser",
- "client-side"
- ],
- "bugs": {
- "url": "https://github.com/angular/material/issues"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/.bower.json b/ecomp-portal-FE/client/bower_components/angular-messages/.bower.json
deleted file mode 100644
index 21cfce15..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-messages",
- "version": "1.5.11",
- "license": "MIT",
- "main": "./angular-messages.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.11"
- },
- "homepage": "https://github.com/angular/bower-angular-messages",
- "_release": "1.5.11",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.11",
- "commit": "4853e43f00243d582b4f6145b6096129ca91fbdf"
- },
- "_source": "https://github.com/angular/bower-angular-messages.git",
- "_target": "~1.5.0",
- "_originalSource": "angular-messages"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/LICENSE.md b/ecomp-portal-FE/client/bower_components/angular-messages/LICENSE.md
deleted file mode 100644
index 2c395eef..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016 Angular
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/README.md b/ecomp-portal-FE/client/bower_components/angular-messages/README.md
deleted file mode 100644
index 1a151749..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/README.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# packaged angular-messages
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngMessages).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-messages
-```
-
-Then add `ngMessages` as a dependency for your app:
-
-```javascript
-angular.module('myApp', [require('angular-messages')]);
-```
-
-### bower
-
-```shell
-bower install angular-messages
-```
-
-Add a `<script>` to your `index.html`:
-
-```html
-<script src="/bower_components/angular-messages/angular-messages.js"></script>
-```
-
-Then add `ngMessages` as a dependency for your app:
-
-```javascript
-angular.module('myApp', ['ngMessages']);
-```
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/api/ngMessages).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.js b/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.js
deleted file mode 100644
index b102046e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.js
+++ /dev/null
@@ -1,739 +0,0 @@
-/**
- * @license AngularJS v1.5.11
- * (c) 2010-2017 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular) {'use strict';
-
-var forEach;
-var isArray;
-var isString;
-var jqLite;
-
-/**
- * @ngdoc module
- * @name ngMessages
- * @description
- *
- * The `ngMessages` module provides enhanced support for displaying messages within templates
- * (typically within forms or when rendering message objects that return key/value data).
- * Instead of relying on JavaScript code and/or complex ng-if statements within your form template to
- * show and hide error messages specific to the state of an input field, the `ngMessages` and
- * `ngMessage` directives are designed to handle the complexity, inheritance and priority
- * sequencing based on the order of how the messages are defined in the template.
- *
- * Currently, the ngMessages module only contains the code for the `ngMessages`, `ngMessagesInclude`
- * `ngMessage` and `ngMessageExp` directives.
- *
- * # Usage
- * The `ngMessages` directive allows keys in a key/value collection to be associated with a child element
- * (or 'message') that will show or hide based on the truthiness of that key's value in the collection. A common use
- * case for `ngMessages` is to display error messages for inputs using the `$error` object exposed by the
- * {@link ngModel ngModel} directive.
- *
- * The child elements of the `ngMessages` directive are matched to the collection keys by a `ngMessage` or
- * `ngMessageExp` directive. The value of these attributes must match a key in the collection that is provided by
- * the `ngMessages` directive.
- *
- * Consider the following example, which illustrates a typical use case of `ngMessages`. Within the form `myForm` we
- * have a text input named `myField` which is bound to the scope variable `field` using the {@link ngModel ngModel}
- * directive.
- *
- * The `myField` field is a required input of type `email` with a maximum length of 15 characters.
- *
- * ```html
- * <form name="myForm">
- * <label>
- * Enter text:
- * <input type="email" ng-model="field" name="myField" required maxlength="15" />
- * </label>
- * <div ng-messages="myForm.myField.$error" role="alert">
- * <div ng-message="required">Please enter a value for this field.</div>
- * <div ng-message="email">This field must be a valid email address.</div>
- * <div ng-message="maxlength">This field can be at most 15 characters long.</div>
- * </div>
- * </form>
- * ```
- *
- * In order to show error messages corresponding to `myField` we first create an element with an `ngMessages` attribute
- * set to the `$error` object owned by the `myField` input in our `myForm` form.
- *
- * Within this element we then create separate elements for each of the possible errors that `myField` could have.
- * The `ngMessage` attribute is used to declare which element(s) will appear for which error - for example,
- * setting `ng-message="required"` specifies that this particular element should be displayed when there
- * is no value present for the required field `myField` (because the key `required` will be `true` in the object
- * `myForm.myField.$error`).
- *
- * ### Message order
- *
- * By default, `ngMessages` will only display one message for a particular key/value collection at any time. If more
- * than one message (or error) key is currently true, then which message is shown is determined by the order of messages
- * in the HTML template code (messages declared first are prioritised). This mechanism means the developer does not have
- * to prioritize messages using custom JavaScript code.
- *
- * Given the following error object for our example (which informs us that the field `myField` currently has both the
- * `required` and `email` errors):
- *
- * ```javascript
- * <!-- keep in mind that ngModel automatically sets these error flags -->
- * myField.$error = { required : true, email: true, maxlength: false };
- * ```
- * The `required` message will be displayed to the user since it appears before the `email` message in the DOM.
- * Once the user types a single character, the `required` message will disappear (since the field now has a value)
- * but the `email` message will be visible because it is still applicable.
- *
- * ### Displaying multiple messages at the same time
- *
- * While `ngMessages` will by default only display one error element at a time, the `ng-messages-multiple` attribute can
- * be applied to the `ngMessages` container element to cause it to display all applicable error messages at once:
- *
- * ```html
- * <!-- attribute-style usage -->
- * <div ng-messages="myForm.myField.$error" ng-messages-multiple>...</div>
- *
- * <!-- element-style usage -->
- * <ng-messages for="myForm.myField.$error" multiple>...</ng-messages>
- * ```
- *
- * ## Reusing and Overriding Messages
- * In addition to prioritization, ngMessages also allows for including messages from a remote or an inline
- * template. This allows for generic collection of messages to be reused across multiple parts of an
- * application.
- *
- * ```html
- * <script type="text/ng-template" id="error-messages">
- * <div ng-message="required">This field is required</div>
- * <div ng-message="minlength">This field is too short</div>
- * </script>
- *
- * <div ng-messages="myForm.myField.$error" role="alert">
- * <div ng-messages-include="error-messages"></div>
- * </div>
- * ```
- *
- * However, including generic messages may not be useful enough to match all input fields, therefore,
- * `ngMessages` provides the ability to override messages defined in the remote template by redefining
- * them within the directive container.
- *
- * ```html
- * <!-- a generic template of error messages known as "my-custom-messages" -->
- * <script type="text/ng-template" id="my-custom-messages">
- * <div ng-message="required">This field is required</div>
- * <div ng-message="minlength">This field is too short</div>
- * </script>
- *
- * <form name="myForm">
- * <label>
- * Email address
- * <input type="email"
- * id="email"
- * name="myEmail"
- * ng-model="email"
- * minlength="5"
- * required />
- * </label>
- * <!-- any ng-message elements that appear BEFORE the ng-messages-include will
- * override the messages present in the ng-messages-include template -->
- * <div ng-messages="myForm.myEmail.$error" role="alert">
- * <!-- this required message has overridden the template message -->
- * <div ng-message="required">You did not enter your email address</div>
- *
- * <!-- this is a brand new message and will appear last in the prioritization -->
- * <div ng-message="email">Your email address is invalid</div>
- *
- * <!-- and here are the generic error messages -->
- * <div ng-messages-include="my-custom-messages"></div>
- * </div>
- * </form>
- * ```
- *
- * In the example HTML code above the message that is set on required will override the corresponding
- * required message defined within the remote template. Therefore, with particular input fields (such
- * email addresses, date fields, autocomplete inputs, etc...), specialized error messages can be applied
- * while more generic messages can be used to handle other, more general input errors.
- *
- * ## Dynamic Messaging
- * ngMessages also supports using expressions to dynamically change key values. Using arrays and
- * repeaters to list messages is also supported. This means that the code below will be able to
- * fully adapt itself and display the appropriate message when any of the expression data changes:
- *
- * ```html
- * <form name="myForm">
- * <label>
- * Email address
- * <input type="email"
- * name="myEmail"
- * ng-model="email"
- * minlength="5"
- * required />
- * </label>
- * <div ng-messages="myForm.myEmail.$error" role="alert">
- * <div ng-message="required">You did not enter your email address</div>
- * <div ng-repeat="errorMessage in errorMessages">
- * <!-- use ng-message-exp for a message whose key is given by an expression -->
- * <div ng-message-exp="errorMessage.type">{{ errorMessage.text }}</div>
- * </div>
- * </div>
- * </form>
- * ```
- *
- * The `errorMessage.type` expression can be a string value or it can be an array so
- * that multiple errors can be associated with a single error message:
- *
- * ```html
- * <label>
- * Email address
- * <input type="email"
- * ng-model="data.email"
- * name="myEmail"
- * ng-minlength="5"
- * ng-maxlength="100"
- * required />
- * </label>
- * <div ng-messages="myForm.myEmail.$error" role="alert">
- * <div ng-message-exp="'required'">You did not enter your email address</div>
- * <div ng-message-exp="['minlength', 'maxlength']">
- * Your email must be between 5 and 100 characters long
- * </div>
- * </div>
- * ```
- *
- * Feel free to use other structural directives such as ng-if and ng-switch to further control
- * what messages are active and when. Be careful, if you place ng-message on the same element
- * as these structural directives, Angular may not be able to determine if a message is active
- * or not. Therefore it is best to place the ng-message on a child element of the structural
- * directive.
- *
- * ```html
- * <div ng-messages="myForm.myEmail.$error" role="alert">
- * <div ng-if="showRequiredError">
- * <div ng-message="required">Please enter something</div>
- * </div>
- * </div>
- * ```
- *
- * ## Animations
- * If the `ngAnimate` module is active within the application then the `ngMessages`, `ngMessage` and
- * `ngMessageExp` directives will trigger animations whenever any messages are added and removed from
- * the DOM by the `ngMessages` directive.
- *
- * Whenever the `ngMessages` directive contains one or more visible messages then the `.ng-active` CSS
- * class will be added to the element. The `.ng-inactive` CSS class will be applied when there are no
- * messages present. Therefore, CSS transitions and keyframes as well as JavaScript animations can
- * hook into the animations whenever these classes are added/removed.
- *
- * Let's say that our HTML code for our messages container looks like so:
- *
- * ```html
- * <div ng-messages="myMessages" class="my-messages" role="alert">
- * <div ng-message="alert" class="some-message">...</div>
- * <div ng-message="fail" class="some-message">...</div>
- * </div>
- * ```
- *
- * Then the CSS animation code for the message container looks like so:
- *
- * ```css
- * .my-messages {
- * transition:1s linear all;
- * }
- * .my-messages.ng-active {
- * // messages are visible
- * }
- * .my-messages.ng-inactive {
- * // messages are hidden
- * }
- * ```
- *
- * Whenever an inner message is attached (becomes visible) or removed (becomes hidden) then the enter
- * and leave animation is triggered for each particular element bound to the `ngMessage` directive.
- *
- * Therefore, the CSS code for the inner messages looks like so:
- *
- * ```css
- * .some-message {
- * transition:1s linear all;
- * }
- *
- * .some-message.ng-enter {}
- * .some-message.ng-enter.ng-enter-active {}
- *
- * .some-message.ng-leave {}
- * .some-message.ng-leave.ng-leave-active {}
- * ```
- *
- * {@link ngAnimate Click here} to learn how to use JavaScript animations or to learn more about ngAnimate.
- */
-angular.module('ngMessages', [], function initAngularHelpers() {
- // Access helpers from angular core.
- // Do it inside a `config` block to ensure `window.angular` is available.
- forEach = angular.forEach;
- isArray = angular.isArray;
- isString = angular.isString;
- jqLite = angular.element;
-})
-
- /**
- * @ngdoc directive
- * @module ngMessages
- * @name ngMessages
- * @restrict AE
- *
- * @description
- * `ngMessages` is a directive that is designed to show and hide messages based on the state
- * of a key/value object that it listens on. The directive itself complements error message
- * reporting with the `ngModel` $error object (which stores a key/value state of validation errors).
- *
- * `ngMessages` manages the state of internal messages within its container element. The internal
- * messages use the `ngMessage` directive and will be inserted/removed from the page depending
- * on if they're present within the key/value object. By default, only one message will be displayed
- * at a time and this depends on the prioritization of the messages within the template. (This can
- * be changed by using the `ng-messages-multiple` or `multiple` attribute on the directive container.)
- *
- * A remote template can also be used to promote message reusability and messages can also be
- * overridden.
- *
- * {@link module:ngMessages Click here} to learn more about `ngMessages` and `ngMessage`.
- *
- * @usage
- * ```html
- * <!-- using attribute directives -->
- * <ANY ng-messages="expression" role="alert">
- * <ANY ng-message="stringValue">...</ANY>
- * <ANY ng-message="stringValue1, stringValue2, ...">...</ANY>
- * <ANY ng-message-exp="expressionValue">...</ANY>
- * </ANY>
- *
- * <!-- or by using element directives -->
- * <ng-messages for="expression" role="alert">
- * <ng-message when="stringValue">...</ng-message>
- * <ng-message when="stringValue1, stringValue2, ...">...</ng-message>
- * <ng-message when-exp="expressionValue">...</ng-message>
- * </ng-messages>
- * ```
- *
- * @param {string} ngMessages an angular expression evaluating to a key/value object
- * (this is typically the $error object on an ngModel instance).
- * @param {string=} ngMessagesMultiple|multiple when set, all messages will be displayed with true
- *
- * @example
- * <example name="ngMessages-directive" module="ngMessagesExample"
- * deps="angular-messages.js"
- * animations="true" fixBase="true">
- * <file name="index.html">
- * <form name="myForm">
- * <label>
- * Enter your name:
- * <input type="text"
- * name="myName"
- * ng-model="name"
- * ng-minlength="5"
- * ng-maxlength="20"
- * required />
- * </label>
- * <pre>myForm.myName.$error = {{ myForm.myName.$error | json }}</pre>
- *
- * <div ng-messages="myForm.myName.$error" style="color:maroon" role="alert">
- * <div ng-message="required">You did not enter a field</div>
- * <div ng-message="minlength">Your field is too short</div>
- * <div ng-message="maxlength">Your field is too long</div>
- * </div>
- * </form>
- * </file>
- * <file name="script.js">
- * angular.module('ngMessagesExample', ['ngMessages']);
- * </file>
- * </example>
- */
- .directive('ngMessages', ['$animate', function($animate) {
- var ACTIVE_CLASS = 'ng-active';
- var INACTIVE_CLASS = 'ng-inactive';
-
- return {
- require: 'ngMessages',
- restrict: 'AE',
- controller: ['$element', '$scope', '$attrs', function NgMessagesCtrl($element, $scope, $attrs) {
- var ctrl = this;
- var latestKey = 0;
- var nextAttachId = 0;
-
- this.getAttachId = function getAttachId() { return nextAttachId++; };
-
- var messages = this.messages = {};
- var renderLater, cachedCollection;
-
- this.render = function(collection) {
- collection = collection || {};
-
- renderLater = false;
- cachedCollection = collection;
-
- // this is true if the attribute is empty or if the attribute value is truthy
- var multiple = isAttrTruthy($scope, $attrs.ngMessagesMultiple) ||
- isAttrTruthy($scope, $attrs.multiple);
-
- var unmatchedMessages = [];
- var matchedKeys = {};
- var messageItem = ctrl.head;
- var messageFound = false;
- var totalMessages = 0;
-
- // we use != instead of !== to allow for both undefined and null values
- while (messageItem != null) {
- totalMessages++;
- var messageCtrl = messageItem.message;
-
- var messageUsed = false;
- if (!messageFound) {
- forEach(collection, function(value, key) {
- if (!messageUsed && truthy(value) && messageCtrl.test(key)) {
- // this is to prevent the same error name from showing up twice
- if (matchedKeys[key]) return;
- matchedKeys[key] = true;
-
- messageUsed = true;
- messageCtrl.attach();
- }
- });
- }
-
- if (messageUsed) {
- // unless we want to display multiple messages then we should
- // set a flag here to avoid displaying the next message in the list
- messageFound = !multiple;
- } else {
- unmatchedMessages.push(messageCtrl);
- }
-
- messageItem = messageItem.next;
- }
-
- forEach(unmatchedMessages, function(messageCtrl) {
- messageCtrl.detach();
- });
-
- if (unmatchedMessages.length !== totalMessages) {
- $animate.setClass($element, ACTIVE_CLASS, INACTIVE_CLASS);
- } else {
- $animate.setClass($element, INACTIVE_CLASS, ACTIVE_CLASS);
- }
- };
-
- $scope.$watchCollection($attrs.ngMessages || $attrs['for'], ctrl.render);
-
- // If the element is destroyed, proactively destroy all the currently visible messages
- $element.on('$destroy', function() {
- forEach(messages, function(item) {
- item.message.detach();
- });
- });
-
- this.reRender = function() {
- if (!renderLater) {
- renderLater = true;
- $scope.$evalAsync(function() {
- if (renderLater && cachedCollection) {
- ctrl.render(cachedCollection);
- }
- });
- }
- };
-
- this.register = function(comment, messageCtrl) {
- var nextKey = latestKey.toString();
- messages[nextKey] = {
- message: messageCtrl
- };
- insertMessageNode($element[0], comment, nextKey);
- comment.$$ngMessageNode = nextKey;
- latestKey++;
-
- ctrl.reRender();
- };
-
- this.deregister = function(comment) {
- var key = comment.$$ngMessageNode;
- delete comment.$$ngMessageNode;
- removeMessageNode($element[0], comment, key);
- delete messages[key];
- ctrl.reRender();
- };
-
- function findPreviousMessage(parent, comment) {
- var prevNode = comment;
- var parentLookup = [];
-
- while (prevNode && prevNode !== parent) {
- var prevKey = prevNode.$$ngMessageNode;
- if (prevKey && prevKey.length) {
- return messages[prevKey];
- }
-
- // dive deeper into the DOM and examine its children for any ngMessage
- // comments that may be in an element that appears deeper in the list
- if (prevNode.childNodes.length && parentLookup.indexOf(prevNode) === -1) {
- parentLookup.push(prevNode);
- prevNode = prevNode.childNodes[prevNode.childNodes.length - 1];
- } else if (prevNode.previousSibling) {
- prevNode = prevNode.previousSibling;
- } else {
- prevNode = prevNode.parentNode;
- parentLookup.push(prevNode);
- }
- }
- }
-
- function insertMessageNode(parent, comment, key) {
- var messageNode = messages[key];
- if (!ctrl.head) {
- ctrl.head = messageNode;
- } else {
- var match = findPreviousMessage(parent, comment);
- if (match) {
- messageNode.next = match.next;
- match.next = messageNode;
- } else {
- messageNode.next = ctrl.head;
- ctrl.head = messageNode;
- }
- }
- }
-
- function removeMessageNode(parent, comment, key) {
- var messageNode = messages[key];
-
- var match = findPreviousMessage(parent, comment);
- if (match) {
- match.next = messageNode.next;
- } else {
- ctrl.head = messageNode.next;
- }
- }
- }]
- };
-
- function isAttrTruthy(scope, attr) {
- return (isString(attr) && attr.length === 0) || //empty attribute
- truthy(scope.$eval(attr));
- }
-
- function truthy(val) {
- return isString(val) ? val.length : !!val;
- }
- }])
-
- /**
- * @ngdoc directive
- * @name ngMessagesInclude
- * @restrict AE
- * @scope
- *
- * @description
- * `ngMessagesInclude` is a directive with the purpose to import existing ngMessage template
- * code from a remote template and place the downloaded template code into the exact spot
- * that the ngMessagesInclude directive is placed within the ngMessages container. This allows
- * for a series of pre-defined messages to be reused and also allows for the developer to
- * determine what messages are overridden due to the placement of the ngMessagesInclude directive.
- *
- * @usage
- * ```html
- * <!-- using attribute directives -->
- * <ANY ng-messages="expression" role="alert">
- * <ANY ng-messages-include="remoteTplString">...</ANY>
- * </ANY>
- *
- * <!-- or by using element directives -->
- * <ng-messages for="expression" role="alert">
- * <ng-messages-include src="expressionValue1">...</ng-messages-include>
- * </ng-messages>
- * ```
- *
- * {@link module:ngMessages Click here} to learn more about `ngMessages` and `ngMessage`.
- *
- * @param {string} ngMessagesInclude|src a string value corresponding to the remote template.
- */
- .directive('ngMessagesInclude',
- ['$templateRequest', '$document', '$compile', function($templateRequest, $document, $compile) {
-
- return {
- restrict: 'AE',
- require: '^^ngMessages', // we only require this for validation sake
- link: function($scope, element, attrs) {
- var src = attrs.ngMessagesInclude || attrs.src;
- $templateRequest(src).then(function(html) {
- if ($scope.$$destroyed) return;
-
- if (isString(html) && !html.trim()) {
- // Empty template - nothing to compile
- replaceElementWithMarker(element, src);
- } else {
- // Non-empty template - compile and link
- $compile(html)($scope, function(contents) {
- element.after(contents);
- replaceElementWithMarker(element, src);
- });
- }
- });
- }
- };
-
- // Helpers
- function replaceElementWithMarker(element, src) {
- // A comment marker is placed for debugging purposes
- var comment = $compile.$$createComment ?
- $compile.$$createComment('ngMessagesInclude', src) :
- $document[0].createComment(' ngMessagesInclude: ' + src + ' ');
- var marker = jqLite(comment);
- element.after(marker);
-
- // Don't pollute the DOM anymore by keeping an empty directive element
- element.remove();
- }
- }])
-
- /**
- * @ngdoc directive
- * @name ngMessage
- * @restrict AE
- * @scope
- *
- * @description
- * `ngMessage` is a directive with the purpose to show and hide a particular message.
- * For `ngMessage` to operate, a parent `ngMessages` directive on a parent DOM element
- * must be situated since it determines which messages are visible based on the state
- * of the provided key/value map that `ngMessages` listens on.
- *
- * More information about using `ngMessage` can be found in the
- * {@link module:ngMessages `ngMessages` module documentation}.
- *
- * @usage
- * ```html
- * <!-- using attribute directives -->
- * <ANY ng-messages="expression" role="alert">
- * <ANY ng-message="stringValue">...</ANY>
- * <ANY ng-message="stringValue1, stringValue2, ...">...</ANY>
- * </ANY>
- *
- * <!-- or by using element directives -->
- * <ng-messages for="expression" role="alert">
- * <ng-message when="stringValue">...</ng-message>
- * <ng-message when="stringValue1, stringValue2, ...">...</ng-message>
- * </ng-messages>
- * ```
- *
- * @param {expression} ngMessage|when a string value corresponding to the message key.
- */
- .directive('ngMessage', ngMessageDirectiveFactory())
-
-
- /**
- * @ngdoc directive
- * @name ngMessageExp
- * @restrict AE
- * @priority 1
- * @scope
- *
- * @description
- * `ngMessageExp` is the same as {@link directive:ngMessage `ngMessage`}, but instead of a static
- * value, it accepts an expression to be evaluated for the message key.
- *
- * @usage
- * ```html
- * <!-- using attribute directives -->
- * <ANY ng-messages="expression">
- * <ANY ng-message-exp="expressionValue">...</ANY>
- * </ANY>
- *
- * <!-- or by using element directives -->
- * <ng-messages for="expression">
- * <ng-message when-exp="expressionValue">...</ng-message>
- * </ng-messages>
- * ```
- *
- * {@link module:ngMessages Click here} to learn more about `ngMessages` and `ngMessage`.
- *
- * @param {expression} ngMessageExp|whenExp an expression value corresponding to the message key.
- */
- .directive('ngMessageExp', ngMessageDirectiveFactory());
-
-function ngMessageDirectiveFactory() {
- return ['$animate', function($animate) {
- return {
- restrict: 'AE',
- transclude: 'element',
- priority: 1, // must run before ngBind, otherwise the text is set on the comment
- terminal: true,
- require: '^^ngMessages',
- link: function(scope, element, attrs, ngMessagesCtrl, $transclude) {
- var commentNode = element[0];
-
- var records;
- var staticExp = attrs.ngMessage || attrs.when;
- var dynamicExp = attrs.ngMessageExp || attrs.whenExp;
- var assignRecords = function(items) {
- records = items
- ? (isArray(items)
- ? items
- : items.split(/[\s,]+/))
- : null;
- ngMessagesCtrl.reRender();
- };
-
- if (dynamicExp) {
- assignRecords(scope.$eval(dynamicExp));
- scope.$watchCollection(dynamicExp, assignRecords);
- } else {
- assignRecords(staticExp);
- }
-
- var currentElement, messageCtrl;
- ngMessagesCtrl.register(commentNode, messageCtrl = {
- test: function(name) {
- return contains(records, name);
- },
- attach: function() {
- if (!currentElement) {
- $transclude(function(elm, newScope) {
- $animate.enter(elm, null, element);
- currentElement = elm;
-
- // Each time we attach this node to a message we get a new id that we can match
- // when we are destroying the node later.
- var $$attachId = currentElement.$$attachId = ngMessagesCtrl.getAttachId();
-
- // in the event that the element or a parent element is destroyed
- // by another structural directive then it's time
- // to deregister the message from the controller
- currentElement.on('$destroy', function() {
- if (currentElement && currentElement.$$attachId === $$attachId) {
- ngMessagesCtrl.deregister(commentNode);
- messageCtrl.detach();
- }
- newScope.$destroy();
- });
- });
- }
- },
- detach: function() {
- if (currentElement) {
- var elm = currentElement;
- currentElement = null;
- $animate.leave(elm);
- }
- }
- });
- }
- };
- }];
-
- function contains(collection, key) {
- if (collection) {
- return isArray(collection)
- ? collection.indexOf(key) >= 0
- : collection.hasOwnProperty(key);
- }
- }
-}
-
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.min.js b/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.min.js
deleted file mode 100644
index 9d6faecb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.min.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- AngularJS v1.5.11
- (c) 2010-2017 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(y,l){'use strict';function w(){return["$animate",function(t){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(u,n,a,c,f){var e=n[0],d,r=a.ngMessage||a.when;a=a.ngMessageExp||a.whenExp;var k=function(a){d=a?p(a)?a:a.split(/[\s,]+/):null;c.reRender()};a?(k(u.$eval(a)),u.$watchCollection(a,k)):k(r);var g,s;c.register(e,s={test:function(a){var m=d;a=m?p(m)?0<=m.indexOf(a):m.hasOwnProperty(a):void 0;return a},attach:function(){g||f(function(a,
-m){t.enter(a,null,n);g=a;var d=g.$$attachId=c.getAttachId();g.on("$destroy",function(){g&&g.$$attachId===d&&(c.deregister(e),s.detach());m.$destroy()})})},detach:function(){if(g){var a=g;g=null;t.leave(a)}}})}}}]}var v,p,q,x;l.module("ngMessages",[],function(){v=l.forEach;p=l.isArray;q=l.isString;x=l.element}).directive("ngMessages",["$animate",function(t){function u(a,c){return q(c)&&0===c.length||n(a.$eval(c))}function n(a){return q(a)?a.length:!!a}return{require:"ngMessages",restrict:"AE",controller:["$element",
-"$scope","$attrs",function(a,c,f){function e(a,c){for(var b=c,d=[];b&&b!==a;){var h=b.$$ngMessageNode;if(h&&h.length)return g[h];b.childNodes.length&&-1===d.indexOf(b)?(d.push(b),b=b.childNodes[b.childNodes.length-1]):b.previousSibling?b=b.previousSibling:(b=b.parentNode,d.push(b))}}var d=this,r=0,k=0;this.getAttachId=function(){return k++};var g=this.messages={},s,l;this.render=function(m){m=m||{};s=!1;l=m;for(var g=u(c,f.ngMessagesMultiple)||u(c,f.multiple),b=[],e={},h=d.head,r=!1,k=0;null!=h;){k++;
-var q=h.message,p=!1;r||v(m,function(a,b){!p&&n(a)&&q.test(b)&&!e[b]&&(p=e[b]=!0,q.attach())});p?r=!g:b.push(q);h=h.next}v(b,function(a){a.detach()});b.length!==k?t.setClass(a,"ng-active","ng-inactive"):t.setClass(a,"ng-inactive","ng-active")};c.$watchCollection(f.ngMessages||f["for"],d.render);a.on("$destroy",function(){v(g,function(a){a.message.detach()})});this.reRender=function(){s||(s=!0,c.$evalAsync(function(){s&&l&&d.render(l)}))};this.register=function(c,f){var b=r.toString();g[b]={message:f};
-var k=a[0],h=g[b];d.head?(k=e(k,c))?(h.next=k.next,k.next=h):(h.next=d.head,d.head=h):d.head=h;c.$$ngMessageNode=b;r++;d.reRender()};this.deregister=function(c){var f=c.$$ngMessageNode;delete c.$$ngMessageNode;var b=g[f];(c=e(a[0],c))?c.next=b.next:d.head=b.next;delete g[f];d.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(l,p,n){function a(a,f){var e=n.$$createComment?n.$$createComment("ngMessagesInclude",f):p[0].createComment(" ngMessagesInclude: "+
-f+" "),e=x(e);a.after(e);a.remove()}return{restrict:"AE",require:"^^ngMessages",link:function(c,f,e){var d=e.ngMessagesInclude||e.src;l(d).then(function(e){c.$$destroyed||(q(e)&&!e.trim()?a(f,d):n(e)(c,function(c){f.after(c);a(f,d)}))})}}}]).directive("ngMessage",w()).directive("ngMessageExp",w())})(window,window.angular);
-//# sourceMappingURL=angular-messages.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.min.js.map b/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.min.js.map
deleted file mode 100644
index 33517564..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/angular-messages.min.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-"version":3,
-"file":"angular-messages.min.js",
-"lineCount":11,
-"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkB,CA6oB3BC,QAASA,EAAyB,EAAG,CACnC,MAAO,CAAC,UAAD,CAAa,QAAQ,CAACC,CAAD,CAAW,CACrC,MAAO,CACLC,SAAU,IADL,CAELC,WAAY,SAFP,CAGLC,SAAU,CAHL,CAILC,SAAU,CAAA,CAJL,CAKLC,QAAS,cALJ,CAMLC,KAAMA,QAAQ,CAACC,CAAD,CAAQC,CAAR,CAAiBC,CAAjB,CAAwBC,CAAxB,CAAwCC,CAAxC,CAAqD,CACjE,IAAIC,EAAcJ,CAAA,CAAQ,CAAR,CAAlB,CAEIK,CAFJ,CAGIC,EAAYL,CAAAM,UAAZD,EAA+BL,CAAAO,KAC/BC,EAAAA,CAAaR,CAAAS,aAAbD,EAAmCR,CAAAU,QACvC,KAAIC,EAAgBA,QAAQ,CAACC,CAAD,CAAQ,CAClCR,CAAA,CAAUQ,CAAA,CACHC,CAAA,CAAQD,CAAR,CAAA,CACGA,CADH,CAEGA,CAAAE,MAAA,CAAY,QAAZ,CAHA,CAIJ,IACNb,EAAAc,SAAA,EANkC,CAShCP,EAAJ,EACEG,CAAA,CAAcb,CAAAkB,MAAA,CAAYR,CAAZ,CAAd,CACA,CAAAV,CAAAmB,iBAAA,CAAuBT,CAAvB,CAAmCG,CAAnC,CAFF,EAIEA,CAAA,CAAcN,CAAd,CAnB+D,KAsB7Da,CAtB6D,CAsB7CC,CACpBlB,EAAAmB,SAAA,CAAwBjB,CAAxB,CAAqCgB,CAArC,CAAmD,CACjDE,KAAMA,QAAQ,CAACC,CAAD,CAAO,CACHlB,IAAAA,EAAAA,CAuCtB,EAAA,CADEmB,CAAJ,CACSV,CAAA,CAAQU,CAAR,CAAA,CAC0B,CAD1B,EACDA,CAAAC,QAAA,CAxCyBF,CAwCzB,CADC,CAEDC,CAAAE,eAAA,CAzCyBH,CAyCzB,CAHR,CADiC,IAAA,EArCzB,OAAO,EADY,CAD4B,CAIjDI,OAAQA,QAAQ,EAAG,CACZR,CAAL,EACEhB,CAAA,CAAY,QAAQ,CAACyB,CAAD;AAAMC,CAAN,CAAgB,CAClCrC,CAAAsC,MAAA,CAAeF,CAAf,CAAoB,IAApB,CAA0B5B,CAA1B,CACAmB,EAAA,CAAiBS,CAIjB,KAAIG,EAAaZ,CAAAY,WAAbA,CAAyC7B,CAAA8B,YAAA,EAK7Cb,EAAAc,GAAA,CAAkB,UAAlB,CAA8B,QAAQ,EAAG,CACnCd,CAAJ,EAAsBA,CAAAY,WAAtB,GAAoDA,CAApD,GACE7B,CAAAgC,WAAA,CAA0B9B,CAA1B,CACA,CAAAgB,CAAAe,OAAA,EAFF,CAIAN,EAAAO,SAAA,EALuC,CAAzC,CAXkC,CAApC,CAFe,CAJ8B,CA2BjDD,OAAQA,QAAQ,EAAG,CACjB,GAAIhB,CAAJ,CAAoB,CAClB,IAAIS,EAAMT,CACVA,EAAA,CAAiB,IACjB3B,EAAA6C,MAAA,CAAeT,CAAf,CAHkB,CADH,CA3B8B,CAAnD,CAvBiE,CAN9D,CAD8B,CAAhC,CAD4B,CA3oBrC,IAAIU,CAAJ,CACIxB,CADJ,CAEIyB,CAFJ,CAGIC,CAgQJlD,EAAAmD,OAAA,CAAe,YAAf,CAA6B,EAA7B,CAAiCC,QAA2B,EAAG,CAG7DJ,CAAA,CAAUhD,CAAAgD,QACVxB,EAAA,CAAUxB,CAAAwB,QACVyB,EAAA,CAAWjD,CAAAiD,SACXC,EAAA,CAASlD,CAAAU,QANoD,CAA/D,CAAA2C,UAAA,CAiFa,YAjFb,CAiF2B,CAAC,UAAD,CAAa,QAAQ,CAACnD,CAAD,CAAW,CAuKvDoD,QAASA,EAAY,CAAC7C,CAAD,CAAQ8C,CAAR,CAAc,CAClC,MAAQN,EAAA,CAASM,CAAT,CAAR,EAA0C,CAA1C,GAA0BA,CAAAC,OAA1B,EACOC,CAAA,CAAOhD,CAAAkB,MAAA,CAAY4B,CAAZ,CAAP,CAF2B,CAKnCE,QAASA,EAAM,CAACC,CAAD,CAAM,CACnB,MAAOT,EAAA,CAASS,CAAT,CAAA,CAAgBA,CAAAF,OAAhB,CAA6B,CAAEE,CAAAA,CADnB,CAxKrB,MAAO,CACLnD,QAAS,YADJ,CAELJ,SAAU,IAFL,CAGLwD,WAAY,CAAC,UAAD;AAAa,QAAb,CAAuB,QAAvB,CAAiCC,QAAuB,CAACC,CAAD,CAAWC,CAAX,CAAmBC,CAAnB,CAA2B,CA2G7FC,QAASA,EAAmB,CAACC,CAAD,CAASC,CAAT,CAAkB,CAI5C,IAHA,IAAIC,EAAWD,CAAf,CACIE,EAAe,EAEnB,CAAOD,CAAP,EAAmBA,CAAnB,GAAgCF,CAAhC,CAAA,CAAwC,CACtC,IAAII,EAAUF,CAAAG,gBACd,IAAID,CAAJ,EAAeA,CAAAb,OAAf,CACE,MAAOe,EAAA,CAASF,CAAT,CAKLF,EAAAK,WAAAhB,OAAJ,EAAsE,EAAtE,GAAkCY,CAAAjC,QAAA,CAAqBgC,CAArB,CAAlC,EACEC,CAAAK,KAAA,CAAkBN,CAAlB,CACA,CAAAA,CAAA,CAAWA,CAAAK,WAAA,CAAoBL,CAAAK,WAAAhB,OAApB,CAAiD,CAAjD,CAFb,EAGWW,CAAAO,gBAAJ,CACLP,CADK,CACMA,CAAAO,gBADN,EAGLP,CACA,CADWA,CAAAQ,WACX,CAAAP,CAAAK,KAAA,CAAkBN,CAAlB,CAJK,CAX+B,CAJI,CA1G9C,IAAIS,EAAO,IAAX,CACIC,EAAY,CADhB,CAEIC,EAAe,CAEnB,KAAApC,YAAA,CAAmBqC,QAAoB,EAAG,CAAE,MAAOD,EAAA,EAAT,CAE1C,KAAIP,EAAW,IAAAA,SAAXA,CAA2B,EAA/B,CACIS,CADJ,CACiBC,CAEjB,KAAAC,OAAA,CAAcC,QAAQ,CAACjD,CAAD,CAAa,CACjCA,CAAA,CAAaA,CAAb,EAA2B,EAE3B8C,EAAA,CAAc,CAAA,CACdC,EAAA,CAAmB/C,CAanB,KAVA,IAAIkD,EAAW9B,CAAA,CAAaQ,CAAb,CAAqBC,CAAAsB,mBAArB,CAAXD,EACW9B,CAAA,CAAaQ,CAAb,CAAqBC,CAAAqB,SAArB,CADf,CAGIE,EAAoB,EAHxB,CAIIC,EAAc,EAJlB,CAKIC,EAAcZ,CAAAa,KALlB,CAMIC,EAAe,CAAA,CANnB,CAOIC,EAAgB,CAGpB,CAAsB,IAAtB,EAAOH,CAAP,CAAA,CAA4B,CAC1BG,CAAA,EACA;IAAI7D,EAAc0D,CAAAI,QAAlB,CAEIC,EAAc,CAAA,CACbH,EAAL,EACE1C,CAAA,CAAQd,CAAR,CAAoB,QAAQ,CAAC4D,CAAD,CAAQC,CAAR,CAAa,CAClCF,CAAAA,CAAL,EAAoBpC,CAAA,CAAOqC,CAAP,CAApB,EAAqChE,CAAAE,KAAA,CAAiB+D,CAAjB,CAArC,EAEM,CAAAR,CAAA,CAAYQ,CAAZ,CAFN,GAKEF,CACA,CAHAN,CAAA,CAAYQ,CAAZ,CAGA,CAHmB,CAAA,CAGnB,CAAAjE,CAAAO,OAAA,EANF,CADuC,CAAzC,CAYEwD,EAAJ,CAGEH,CAHF,CAGiB,CAACN,CAHlB,CAKEE,CAAAb,KAAA,CAAuB3C,CAAvB,CAGF0D,EAAA,CAAcA,CAAAQ,KA1BY,CA6B5BhD,CAAA,CAAQsC,CAAR,CAA2B,QAAQ,CAACxD,CAAD,CAAc,CAC/CA,CAAAe,OAAA,EAD+C,CAAjD,CAIIyC,EAAA9B,OAAJ,GAAiCmC,CAAjC,CACEzF,CAAA+F,SAAA,CAAkBpC,CAAlB,CAnEWqC,WAmEX,CAlEaC,aAkEb,CADF,CAGEjG,CAAA+F,SAAA,CAAkBpC,CAAlB,CApEasC,aAoEb,CArEWD,WAqEX,CArD+B,CAyDnCpC,EAAAlC,iBAAA,CAAwBmC,CAAAqC,WAAxB,EAA6CrC,CAAA,CAAO,KAAP,CAA7C,CAA4Da,CAAAM,OAA5D,CAGArB,EAAAlB,GAAA,CAAY,UAAZ,CAAwB,QAAQ,EAAG,CACjCK,CAAA,CAAQuB,CAAR,CAAkB,QAAQ,CAAC8B,CAAD,CAAO,CAC/BA,CAAAT,QAAA/C,OAAA,EAD+B,CAAjC,CADiC,CAAnC,CAMA,KAAAnB,SAAA,CAAgB4E,QAAQ,EAAG,CACpBtB,CAAL,GACEA,CACA,CADc,CAAA,CACd,CAAAlB,CAAAyC,WAAA,CAAkB,QAAQ,EAAG,CACvBvB,CAAJ,EAAmBC,CAAnB,EACEL,CAAAM,OAAA,CAAYD,CAAZ,CAFyB,CAA7B,CAFF,CADyB,CAW3B,KAAAlD,SAAA,CAAgByE,QAAQ,CAACtC,CAAD,CAAUpC,CAAV,CAAuB,CAC7C,IAAI2E,EAAU5B,CAAA6B,SAAA,EACdnC,EAAA,CAASkC,CAAT,CAAA,CAAoB,CAClBb,QAAS9D,CADS,CAGF;IAAA,EAAA+B,CAAA,CAAS,CAAT,CAAA,CAwCd8C,EAAcpC,CAAA,CAxCsBkC,CAwCtB,CACb7B,EAAAa,KAAL,CAIE,CADImB,CACJ,CADY5C,CAAA,CAAoBC,CAApB,CA5CiBC,CA4CjB,CACZ,GACEyC,CAAAX,KACA,CADmBY,CAAAZ,KACnB,CAAAY,CAAAZ,KAAA,CAAaW,CAFf,GAIEA,CAAAX,KACA,CADmBpB,CAAAa,KACnB,CAAAb,CAAAa,KAAA,CAAYkB,CALd,CAJF,CACE/B,CAAAa,KADF,CACckB,CAzCdzC,EAAAI,gBAAA,CAA0BmC,CAC1B5B,EAAA,EAEAD,EAAAlD,SAAA,EAT6C,CAY/C,KAAAkB,WAAA,CAAkBiE,QAAQ,CAAC3C,CAAD,CAAU,CAClC,IAAI6B,EAAM7B,CAAAI,gBACV,QAAOJ,CAAAI,gBA+CP,KAAIqC,EAAcpC,CAAA,CA9CsBwB,CA8CtB,CAGlB,EADIa,CACJ,CADY5C,CAAA,CAhDMH,CAAAI,CAAS,CAATA,CAgDN,CAhDmBC,CAgDnB,CACZ,EACE0C,CAAAZ,KADF,CACeW,CAAAX,KADf,CAGEpB,CAAAa,KAHF,CAGckB,CAAAX,KAnDd,QAAOzB,CAAA,CAASwB,CAAT,CACPnB,EAAAlD,SAAA,EALkC,CAnGyD,CAAnF,CAHP,CAJgD,CAAhC,CAjF3B,CAAA2B,UAAA,CAgSa,mBAhSb,CAiSI,CAAC,kBAAD,CAAqB,WAArB,CAAkC,UAAlC,CAA8C,QAAQ,CAACyD,CAAD,CAAmBC,CAAnB,CAA8BC,CAA9B,CAAwC,CAyB9FC,QAASA,EAAwB,CAACvG,CAAD,CAAUwG,CAAV,CAAe,CAE9C,IAAIhD,EAAU8C,CAAAG,gBAAA,CACVH,CAAAG,gBAAA,CAAyB,mBAAzB,CAA8CD,CAA9C,CADU,CAEVH,CAAA,CAAU,CAAV,CAAAK,cAAA,CAA2B,sBAA3B;AAAoDF,CAApD,CAA0D,GAA1D,CAFJ,CAGIG,EAASnE,CAAA,CAAOgB,CAAP,CACbxD,EAAA4G,MAAA,CAAcD,CAAd,CAGA3G,EAAA6G,OAAA,EAT8C,CAvBhD,MAAO,CACLpH,SAAU,IADL,CAELI,QAAS,cAFJ,CAGLC,KAAMA,QAAQ,CAACsD,CAAD,CAASpD,CAAT,CAAkBC,CAAlB,CAAyB,CACrC,IAAIuG,EAAMvG,CAAA6G,kBAANN,EAAiCvG,CAAAuG,IACrCJ,EAAA,CAAiBI,CAAjB,CAAAO,KAAA,CAA2B,QAAQ,CAACC,CAAD,CAAO,CACpC5D,CAAA6D,YAAJ,GAEI1E,CAAA,CAASyE,CAAT,CAAJ,EAAuB,CAAAA,CAAAE,KAAA,EAAvB,CAEEX,CAAA,CAAyBvG,CAAzB,CAAkCwG,CAAlC,CAFF,CAKEF,CAAA,CAASU,CAAT,CAAA,CAAe5D,CAAf,CAAuB,QAAQ,CAAC+D,CAAD,CAAW,CACxCnH,CAAA4G,MAAA,CAAcO,CAAd,CACAZ,EAAA,CAAyBvG,CAAzB,CAAkCwG,CAAlC,CAFwC,CAA1C,CAPF,CADwC,CAA1C,CAFqC,CAHlC,CAFuF,CAA9F,CAjSJ,CAAA7D,UAAA,CAuWa,WAvWb,CAuW0BpD,CAAA,EAvW1B,CAAAoD,UAAA,CAsYa,cAtYb,CAsY6BpD,CAAA,EAtY7B,CArQ2B,CAA1B,CAAD,CA6tBGF,MA7tBH,CA6tBWA,MAAAC,QA7tBX;",
-"sources":["angular-messages.js"],
-"names":["window","angular","ngMessageDirectiveFactory","$animate","restrict","transclude","priority","terminal","require","link","scope","element","attrs","ngMessagesCtrl","$transclude","commentNode","records","staticExp","ngMessage","when","dynamicExp","ngMessageExp","whenExp","assignRecords","items","isArray","split","reRender","$eval","$watchCollection","currentElement","messageCtrl","register","test","name","collection","indexOf","hasOwnProperty","attach","elm","newScope","enter","$$attachId","getAttachId","on","deregister","detach","$destroy","leave","forEach","isString","jqLite","module","initAngularHelpers","directive","isAttrTruthy","attr","length","truthy","val","controller","NgMessagesCtrl","$element","$scope","$attrs","findPreviousMessage","parent","comment","prevNode","parentLookup","prevKey","$$ngMessageNode","messages","childNodes","push","previousSibling","parentNode","ctrl","latestKey","nextAttachId","this.getAttachId","renderLater","cachedCollection","render","this.render","multiple","ngMessagesMultiple","unmatchedMessages","matchedKeys","messageItem","head","messageFound","totalMessages","message","messageUsed","value","key","next","setClass","ACTIVE_CLASS","INACTIVE_CLASS","ngMessages","item","this.reRender","$evalAsync","this.register","nextKey","toString","messageNode","match","this.deregister","$templateRequest","$document","$compile","replaceElementWithMarker","src","$$createComment","createComment","marker","after","remove","ngMessagesInclude","then","html","$$destroyed","trim","contents"]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/bower.json b/ecomp-portal-FE/client/bower_components/angular-messages/bower.json
deleted file mode 100644
index e03fefb8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-messages",
- "version": "1.5.11",
- "license": "MIT",
- "main": "./angular-messages.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.11"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/index.js b/ecomp-portal-FE/client/bower_components/angular-messages/index.js
deleted file mode 100644
index 9e04c9fe..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-messages');
-module.exports = 'ngMessages';
diff --git a/ecomp-portal-FE/client/bower_components/angular-messages/package.json b/ecomp-portal-FE/client/bower_components/angular-messages/package.json
deleted file mode 100644
index 780c9bdd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-messages/package.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "angular-messages",
- "version": "1.5.11",
- "description": "AngularJS module that provides enhanced support for displaying messages within templates",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org",
- "jspm": {
- "shim": {
- "angular-messages": {
- "deps": ["angular"]
- }
- }
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/.bower.json b/ecomp-portal-FE/client/bower_components/angular-mocks/.bower.json
deleted file mode 100644
index 6aee5b3e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-mocks",
- "version": "1.5.11",
- "license": "MIT",
- "main": "./angular-mocks.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.11"
- },
- "homepage": "https://github.com/angular/bower-angular-mocks",
- "_release": "1.5.11",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.11",
- "commit": "8f1c89737c8a7e82fd91957cef92f577dad07565"
- },
- "_source": "https://github.com/angular/bower-angular-mocks.git",
- "_target": "~1.5.0",
- "_originalSource": "angular-mocks"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/LICENSE.md b/ecomp-portal-FE/client/bower_components/angular-mocks/LICENSE.md
deleted file mode 100644
index 2c395eef..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016 Angular
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/README.md b/ecomp-portal-FE/client/bower_components/angular-mocks/README.md
deleted file mode 100644
index 61b9d8c0..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/README.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# packaged angular-mocks
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngMock).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-mocks
-```
-
-You can `require` ngMock modules:
-
-```js
-var angular = require('angular');
-angular.module('myMod', [
- require('angular-animate'),
- require('angular-mocks/ngMock'),
- require('angular-mocks/ngAnimateMock')
-]);
-```
-
-### bower
-
-```shell
-bower install angular-mocks
-```
-
-The mocks are then available at `bower_components/angular-mocks/angular-mocks.js`.
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](https://docs.angularjs.org/guide/unit-testing).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/angular-mocks.js b/ecomp-portal-FE/client/bower_components/angular-mocks/angular-mocks.js
deleted file mode 100644
index 25f89b5c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/angular-mocks.js
+++ /dev/null
@@ -1,3170 +0,0 @@
-/**
- * @license AngularJS v1.5.11
- * (c) 2010-2017 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular) {
-
-'use strict';
-
-/**
- * @ngdoc object
- * @name angular.mock
- * @description
- *
- * Namespace from 'angular-mocks.js' which contains testing related code.
- *
- */
-angular.mock = {};
-
-/**
- * ! This is a private undocumented service !
- *
- * @name $browser
- *
- * @description
- * This service is a mock implementation of {@link ng.$browser}. It provides fake
- * implementation for commonly used browser apis that are hard to test, e.g. setTimeout, xhr,
- * cookies, etc.
- *
- * The api of this service is the same as that of the real {@link ng.$browser $browser}, except
- * that there are several helper methods available which can be used in tests.
- */
-angular.mock.$BrowserProvider = function() {
- this.$get = function() {
- return new angular.mock.$Browser();
- };
-};
-
-angular.mock.$Browser = function() {
- var self = this;
-
- this.isMock = true;
- self.$$url = 'http://server/';
- self.$$lastUrl = self.$$url; // used by url polling fn
- self.pollFns = [];
-
- // TODO(vojta): remove this temporary api
- self.$$completeOutstandingRequest = angular.noop;
- self.$$incOutstandingRequestCount = angular.noop;
-
-
- // register url polling fn
-
- self.onUrlChange = function(listener) {
- self.pollFns.push(
- function() {
- if (self.$$lastUrl !== self.$$url || self.$$state !== self.$$lastState) {
- self.$$lastUrl = self.$$url;
- self.$$lastState = self.$$state;
- listener(self.$$url, self.$$state);
- }
- }
- );
-
- return listener;
- };
-
- self.$$applicationDestroyed = angular.noop;
- self.$$checkUrlChange = angular.noop;
-
- self.deferredFns = [];
- self.deferredNextId = 0;
-
- self.defer = function(fn, delay) {
- delay = delay || 0;
- self.deferredFns.push({time:(self.defer.now + delay), fn:fn, id: self.deferredNextId});
- self.deferredFns.sort(function(a, b) { return a.time - b.time;});
- return self.deferredNextId++;
- };
-
-
- /**
- * @name $browser#defer.now
- *
- * @description
- * Current milliseconds mock time.
- */
- self.defer.now = 0;
-
-
- self.defer.cancel = function(deferId) {
- var fnIndex;
-
- angular.forEach(self.deferredFns, function(fn, index) {
- if (fn.id === deferId) fnIndex = index;
- });
-
- if (angular.isDefined(fnIndex)) {
- self.deferredFns.splice(fnIndex, 1);
- return true;
- }
-
- return false;
- };
-
-
- /**
- * @name $browser#defer.flush
- *
- * @description
- * Flushes all pending requests and executes the defer callbacks.
- *
- * @param {number=} number of milliseconds to flush. See {@link #defer.now}
- */
- self.defer.flush = function(delay) {
- var nextTime;
-
- if (angular.isDefined(delay)) {
- // A delay was passed so compute the next time
- nextTime = self.defer.now + delay;
- } else {
- if (self.deferredFns.length) {
- // No delay was passed so set the next time so that it clears the deferred queue
- nextTime = self.deferredFns[self.deferredFns.length - 1].time;
- } else {
- // No delay passed, but there are no deferred tasks so flush - indicates an error!
- throw new Error('No deferred tasks to be flushed');
- }
- }
-
- while (self.deferredFns.length && self.deferredFns[0].time <= nextTime) {
- // Increment the time and call the next deferred function
- self.defer.now = self.deferredFns[0].time;
- self.deferredFns.shift().fn();
- }
-
- // Ensure that the current time is correct
- self.defer.now = nextTime;
- };
-
- self.$$baseHref = '/';
- self.baseHref = function() {
- return this.$$baseHref;
- };
-};
-angular.mock.$Browser.prototype = {
-
- /**
- * @name $browser#poll
- *
- * @description
- * run all fns in pollFns
- */
- poll: function poll() {
- angular.forEach(this.pollFns, function(pollFn) {
- pollFn();
- });
- },
-
- url: function(url, replace, state) {
- if (angular.isUndefined(state)) {
- state = null;
- }
- if (url) {
- this.$$url = url;
- // Native pushState serializes & copies the object; simulate it.
- this.$$state = angular.copy(state);
- return this;
- }
-
- return this.$$url;
- },
-
- state: function() {
- return this.$$state;
- },
-
- notifyWhenNoOutstandingRequests: function(fn) {
- fn();
- }
-};
-
-
-/**
- * @ngdoc provider
- * @name $exceptionHandlerProvider
- *
- * @description
- * Configures the mock implementation of {@link ng.$exceptionHandler} to rethrow or to log errors
- * passed to the `$exceptionHandler`.
- */
-
-/**
- * @ngdoc service
- * @name $exceptionHandler
- *
- * @description
- * Mock implementation of {@link ng.$exceptionHandler} that rethrows or logs errors passed
- * to it. See {@link ngMock.$exceptionHandlerProvider $exceptionHandlerProvider} for configuration
- * information.
- *
- *
- * ```js
- * describe('$exceptionHandlerProvider', function() {
- *
- * it('should capture log messages and exceptions', function() {
- *
- * module(function($exceptionHandlerProvider) {
- * $exceptionHandlerProvider.mode('log');
- * });
- *
- * inject(function($log, $exceptionHandler, $timeout) {
- * $timeout(function() { $log.log(1); });
- * $timeout(function() { $log.log(2); throw 'banana peel'; });
- * $timeout(function() { $log.log(3); });
- * expect($exceptionHandler.errors).toEqual([]);
- * expect($log.assertEmpty());
- * $timeout.flush();
- * expect($exceptionHandler.errors).toEqual(['banana peel']);
- * expect($log.log.logs).toEqual([[1], [2], [3]]);
- * });
- * });
- * });
- * ```
- */
-
-angular.mock.$ExceptionHandlerProvider = function() {
- var handler;
-
- /**
- * @ngdoc method
- * @name $exceptionHandlerProvider#mode
- *
- * @description
- * Sets the logging mode.
- *
- * @param {string} mode Mode of operation, defaults to `rethrow`.
- *
- * - `log`: Sometimes it is desirable to test that an error is thrown, for this case the `log`
- * mode stores an array of errors in `$exceptionHandler.errors`, to allow later assertion of
- * them. See {@link ngMock.$log#assertEmpty assertEmpty()} and
- * {@link ngMock.$log#reset reset()}.
- * - `rethrow`: If any errors are passed to the handler in tests, it typically means that there
- * is a bug in the application or test, so this mock will make these tests fail. For any
- * implementations that expect exceptions to be thrown, the `rethrow` mode will also maintain
- * a log of thrown errors in `$exceptionHandler.errors`.
- */
- this.mode = function(mode) {
-
- switch (mode) {
- case 'log':
- case 'rethrow':
- var errors = [];
- handler = function(e) {
- if (arguments.length === 1) {
- errors.push(e);
- } else {
- errors.push([].slice.call(arguments, 0));
- }
- if (mode === 'rethrow') {
- throw e;
- }
- };
- handler.errors = errors;
- break;
- default:
- throw new Error('Unknown mode \'' + mode + '\', only \'log\'/\'rethrow\' modes are allowed!');
- }
- };
-
- this.$get = function() {
- return handler;
- };
-
- this.mode('rethrow');
-};
-
-
-/**
- * @ngdoc service
- * @name $log
- *
- * @description
- * Mock implementation of {@link ng.$log} that gathers all logged messages in arrays
- * (one array per logging level). These arrays are exposed as `logs` property of each of the
- * level-specific log function, e.g. for level `error` the array is exposed as `$log.error.logs`.
- *
- */
-angular.mock.$LogProvider = function() {
- var debug = true;
-
- function concat(array1, array2, index) {
- return array1.concat(Array.prototype.slice.call(array2, index));
- }
-
- this.debugEnabled = function(flag) {
- if (angular.isDefined(flag)) {
- debug = flag;
- return this;
- } else {
- return debug;
- }
- };
-
- this.$get = function() {
- var $log = {
- log: function() { $log.log.logs.push(concat([], arguments, 0)); },
- warn: function() { $log.warn.logs.push(concat([], arguments, 0)); },
- info: function() { $log.info.logs.push(concat([], arguments, 0)); },
- error: function() { $log.error.logs.push(concat([], arguments, 0)); },
- debug: function() {
- if (debug) {
- $log.debug.logs.push(concat([], arguments, 0));
- }
- }
- };
-
- /**
- * @ngdoc method
- * @name $log#reset
- *
- * @description
- * Reset all of the logging arrays to empty.
- */
- $log.reset = function() {
- /**
- * @ngdoc property
- * @name $log#log.logs
- *
- * @description
- * Array of messages logged using {@link ng.$log#log `log()`}.
- *
- * @example
- * ```js
- * $log.log('Some Log');
- * var first = $log.log.logs.unshift();
- * ```
- */
- $log.log.logs = [];
- /**
- * @ngdoc property
- * @name $log#info.logs
- *
- * @description
- * Array of messages logged using {@link ng.$log#info `info()`}.
- *
- * @example
- * ```js
- * $log.info('Some Info');
- * var first = $log.info.logs.unshift();
- * ```
- */
- $log.info.logs = [];
- /**
- * @ngdoc property
- * @name $log#warn.logs
- *
- * @description
- * Array of messages logged using {@link ng.$log#warn `warn()`}.
- *
- * @example
- * ```js
- * $log.warn('Some Warning');
- * var first = $log.warn.logs.unshift();
- * ```
- */
- $log.warn.logs = [];
- /**
- * @ngdoc property
- * @name $log#error.logs
- *
- * @description
- * Array of messages logged using {@link ng.$log#error `error()`}.
- *
- * @example
- * ```js
- * $log.error('Some Error');
- * var first = $log.error.logs.unshift();
- * ```
- */
- $log.error.logs = [];
- /**
- * @ngdoc property
- * @name $log#debug.logs
- *
- * @description
- * Array of messages logged using {@link ng.$log#debug `debug()`}.
- *
- * @example
- * ```js
- * $log.debug('Some Error');
- * var first = $log.debug.logs.unshift();
- * ```
- */
- $log.debug.logs = [];
- };
-
- /**
- * @ngdoc method
- * @name $log#assertEmpty
- *
- * @description
- * Assert that all of the logging methods have no logged messages. If any messages are present,
- * an exception is thrown.
- */
- $log.assertEmpty = function() {
- var errors = [];
- angular.forEach(['error', 'warn', 'info', 'log', 'debug'], function(logLevel) {
- angular.forEach($log[logLevel].logs, function(log) {
- angular.forEach(log, function(logItem) {
- errors.push('MOCK $log (' + logLevel + '): ' + String(logItem) + '\n' +
- (logItem.stack || ''));
- });
- });
- });
- if (errors.length) {
- errors.unshift('Expected $log to be empty! Either a message was logged unexpectedly, or ' +
- 'an expected log message was not checked and removed:');
- errors.push('');
- throw new Error(errors.join('\n---------\n'));
- }
- };
-
- $log.reset();
- return $log;
- };
-};
-
-
-/**
- * @ngdoc service
- * @name $interval
- *
- * @description
- * Mock implementation of the $interval service.
- *
- * Use {@link ngMock.$interval#flush `$interval.flush(millis)`} to
- * move forward by `millis` milliseconds and trigger any functions scheduled to run in that
- * time.
- *
- * @param {function()} fn A function that should be called repeatedly.
- * @param {number} delay Number of milliseconds between each function call.
- * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat
- * indefinitely.
- * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
- * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
- * @param {...*=} Pass additional parameters to the executed function.
- * @returns {promise} A promise which will be notified on each iteration.
- */
-angular.mock.$IntervalProvider = function() {
- this.$get = ['$browser', '$rootScope', '$q', '$$q',
- function($browser, $rootScope, $q, $$q) {
- var repeatFns = [],
- nextRepeatId = 0,
- now = 0;
-
- var $interval = function(fn, delay, count, invokeApply) {
- var hasParams = arguments.length > 4,
- args = hasParams ? Array.prototype.slice.call(arguments, 4) : [],
- iteration = 0,
- skipApply = (angular.isDefined(invokeApply) && !invokeApply),
- deferred = (skipApply ? $$q : $q).defer(),
- promise = deferred.promise;
-
- count = (angular.isDefined(count)) ? count : 0;
- promise.then(null, null, (!hasParams) ? fn : function() {
- fn.apply(null, args);
- });
-
- promise.$$intervalId = nextRepeatId;
-
- function tick() {
- deferred.notify(iteration++);
-
- if (count > 0 && iteration >= count) {
- var fnIndex;
- deferred.resolve(iteration);
-
- angular.forEach(repeatFns, function(fn, index) {
- if (fn.id === promise.$$intervalId) fnIndex = index;
- });
-
- if (angular.isDefined(fnIndex)) {
- repeatFns.splice(fnIndex, 1);
- }
- }
-
- if (skipApply) {
- $browser.defer.flush();
- } else {
- $rootScope.$apply();
- }
- }
-
- repeatFns.push({
- nextTime:(now + delay),
- delay: delay,
- fn: tick,
- id: nextRepeatId,
- deferred: deferred
- });
- repeatFns.sort(function(a, b) { return a.nextTime - b.nextTime;});
-
- nextRepeatId++;
- return promise;
- };
- /**
- * @ngdoc method
- * @name $interval#cancel
- *
- * @description
- * Cancels a task associated with the `promise`.
- *
- * @param {promise} promise A promise from calling the `$interval` function.
- * @returns {boolean} Returns `true` if the task was successfully cancelled.
- */
- $interval.cancel = function(promise) {
- if (!promise) return false;
- var fnIndex;
-
- angular.forEach(repeatFns, function(fn, index) {
- if (fn.id === promise.$$intervalId) fnIndex = index;
- });
-
- if (angular.isDefined(fnIndex)) {
- repeatFns[fnIndex].deferred.reject('canceled');
- repeatFns.splice(fnIndex, 1);
- return true;
- }
-
- return false;
- };
-
- /**
- * @ngdoc method
- * @name $interval#flush
- * @description
- *
- * Runs interval tasks scheduled to be run in the next `millis` milliseconds.
- *
- * @param {number=} millis maximum timeout amount to flush up until.
- *
- * @return {number} The amount of time moved forward.
- */
- $interval.flush = function(millis) {
- now += millis;
- while (repeatFns.length && repeatFns[0].nextTime <= now) {
- var task = repeatFns[0];
- task.fn();
- task.nextTime += task.delay;
- repeatFns.sort(function(a, b) { return a.nextTime - b.nextTime;});
- }
- return millis;
- };
-
- return $interval;
- }];
-};
-
-
-function jsonStringToDate(string) {
- // The R_ISO8061_STR regex is never going to fit into the 100 char limit!
- // eslit-disable-next-line max-len
- var R_ISO8061_STR = /^(-?\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;
-
- var match;
- if ((match = string.match(R_ISO8061_STR))) {
- var date = new Date(0),
- tzHour = 0,
- tzMin = 0;
- if (match[9]) {
- tzHour = toInt(match[9] + match[10]);
- tzMin = toInt(match[9] + match[11]);
- }
- date.setUTCFullYear(toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));
- date.setUTCHours(toInt(match[4] || 0) - tzHour,
- toInt(match[5] || 0) - tzMin,
- toInt(match[6] || 0),
- toInt(match[7] || 0));
- return date;
- }
- return string;
-}
-
-function toInt(str) {
- return parseInt(str, 10);
-}
-
-function padNumberInMock(num, digits, trim) {
- var neg = '';
- if (num < 0) {
- neg = '-';
- num = -num;
- }
- num = '' + num;
- while (num.length < digits) num = '0' + num;
- if (trim) {
- num = num.substr(num.length - digits);
- }
- return neg + num;
-}
-
-
-/**
- * @ngdoc type
- * @name angular.mock.TzDate
- * @description
- *
- * *NOTE*: this is not an injectable instance, just a globally available mock class of `Date`.
- *
- * Mock of the Date type which has its timezone specified via constructor arg.
- *
- * The main purpose is to create Date-like instances with timezone fixed to the specified timezone
- * offset, so that we can test code that depends on local timezone settings without dependency on
- * the time zone settings of the machine where the code is running.
- *
- * @param {number} offset Offset of the *desired* timezone in hours (fractions will be honored)
- * @param {(number|string)} timestamp Timestamp representing the desired time in *UTC*
- *
- * @example
- * !!!! WARNING !!!!!
- * This is not a complete Date object so only methods that were implemented can be called safely.
- * To make matters worse, TzDate instances inherit stuff from Date via a prototype.
- *
- * We do our best to intercept calls to "unimplemented" methods, but since the list of methods is
- * incomplete we might be missing some non-standard methods. This can result in errors like:
- * "Date.prototype.foo called on incompatible Object".
- *
- * ```js
- * var newYearInBratislava = new TzDate(-1, '2009-12-31T23:00:00Z');
- * newYearInBratislava.getTimezoneOffset() => -60;
- * newYearInBratislava.getFullYear() => 2010;
- * newYearInBratislava.getMonth() => 0;
- * newYearInBratislava.getDate() => 1;
- * newYearInBratislava.getHours() => 0;
- * newYearInBratislava.getMinutes() => 0;
- * newYearInBratislava.getSeconds() => 0;
- * ```
- *
- */
-angular.mock.TzDate = function(offset, timestamp) {
- var self = new Date(0);
- if (angular.isString(timestamp)) {
- var tsStr = timestamp;
-
- self.origDate = jsonStringToDate(timestamp);
-
- timestamp = self.origDate.getTime();
- if (isNaN(timestamp)) {
- // eslint-disable-next-line no-throw-literal
- throw {
- name: 'Illegal Argument',
- message: 'Arg \'' + tsStr + '\' passed into TzDate constructor is not a valid date string'
- };
- }
- } else {
- self.origDate = new Date(timestamp);
- }
-
- var localOffset = new Date(timestamp).getTimezoneOffset();
- self.offsetDiff = localOffset * 60 * 1000 - offset * 1000 * 60 * 60;
- self.date = new Date(timestamp + self.offsetDiff);
-
- self.getTime = function() {
- return self.date.getTime() - self.offsetDiff;
- };
-
- self.toLocaleDateString = function() {
- return self.date.toLocaleDateString();
- };
-
- self.getFullYear = function() {
- return self.date.getFullYear();
- };
-
- self.getMonth = function() {
- return self.date.getMonth();
- };
-
- self.getDate = function() {
- return self.date.getDate();
- };
-
- self.getHours = function() {
- return self.date.getHours();
- };
-
- self.getMinutes = function() {
- return self.date.getMinutes();
- };
-
- self.getSeconds = function() {
- return self.date.getSeconds();
- };
-
- self.getMilliseconds = function() {
- return self.date.getMilliseconds();
- };
-
- self.getTimezoneOffset = function() {
- return offset * 60;
- };
-
- self.getUTCFullYear = function() {
- return self.origDate.getUTCFullYear();
- };
-
- self.getUTCMonth = function() {
- return self.origDate.getUTCMonth();
- };
-
- self.getUTCDate = function() {
- return self.origDate.getUTCDate();
- };
-
- self.getUTCHours = function() {
- return self.origDate.getUTCHours();
- };
-
- self.getUTCMinutes = function() {
- return self.origDate.getUTCMinutes();
- };
-
- self.getUTCSeconds = function() {
- return self.origDate.getUTCSeconds();
- };
-
- self.getUTCMilliseconds = function() {
- return self.origDate.getUTCMilliseconds();
- };
-
- self.getDay = function() {
- return self.date.getDay();
- };
-
- // provide this method only on browsers that already have it
- if (self.toISOString) {
- self.toISOString = function() {
- return padNumberInMock(self.origDate.getUTCFullYear(), 4) + '-' +
- padNumberInMock(self.origDate.getUTCMonth() + 1, 2) + '-' +
- padNumberInMock(self.origDate.getUTCDate(), 2) + 'T' +
- padNumberInMock(self.origDate.getUTCHours(), 2) + ':' +
- padNumberInMock(self.origDate.getUTCMinutes(), 2) + ':' +
- padNumberInMock(self.origDate.getUTCSeconds(), 2) + '.' +
- padNumberInMock(self.origDate.getUTCMilliseconds(), 3) + 'Z';
- };
- }
-
- //hide all methods not implemented in this mock that the Date prototype exposes
- var unimplementedMethods = ['getUTCDay',
- 'getYear', 'setDate', 'setFullYear', 'setHours', 'setMilliseconds',
- 'setMinutes', 'setMonth', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFullYear',
- 'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds',
- 'setYear', 'toDateString', 'toGMTString', 'toJSON', 'toLocaleFormat', 'toLocaleString',
- 'toLocaleTimeString', 'toSource', 'toString', 'toTimeString', 'toUTCString', 'valueOf'];
-
- angular.forEach(unimplementedMethods, function(methodName) {
- self[methodName] = function() {
- throw new Error('Method \'' + methodName + '\' is not implemented in the TzDate mock');
- };
- });
-
- return self;
-};
-
-//make "tzDateInstance instanceof Date" return true
-angular.mock.TzDate.prototype = Date.prototype;
-
-
-/**
- * @ngdoc service
- * @name $animate
- *
- * @description
- * Mock implementation of the {@link ng.$animate `$animate`} service. Exposes two additional methods
- * for testing animations.
- *
- * You need to require the `ngAnimateMock` module in your test suite for instance `beforeEach(module('ngAnimateMock'))`
- */
-angular.mock.animate = angular.module('ngAnimateMock', ['ng'])
-
- .config(['$provide', function($provide) {
-
- $provide.factory('$$forceReflow', function() {
- function reflowFn() {
- reflowFn.totalReflows++;
- }
- reflowFn.totalReflows = 0;
- return reflowFn;
- });
-
- $provide.factory('$$animateAsyncRun', function() {
- var queue = [];
- var queueFn = function() {
- return function(fn) {
- queue.push(fn);
- };
- };
- queueFn.flush = function() {
- if (queue.length === 0) return false;
-
- for (var i = 0; i < queue.length; i++) {
- queue[i]();
- }
- queue = [];
-
- return true;
- };
- return queueFn;
- });
-
- $provide.decorator('$$animateJs', ['$delegate', function($delegate) {
- var runners = [];
-
- var animateJsConstructor = function() {
- var animator = $delegate.apply($delegate, arguments);
- // If no javascript animation is found, animator is undefined
- if (animator) {
- runners.push(animator);
- }
- return animator;
- };
-
- animateJsConstructor.$closeAndFlush = function() {
- runners.forEach(function(runner) {
- runner.end();
- });
- runners = [];
- };
-
- return animateJsConstructor;
- }]);
-
- $provide.decorator('$animateCss', ['$delegate', function($delegate) {
- var runners = [];
-
- var animateCssConstructor = function(element, options) {
- var animator = $delegate(element, options);
- runners.push(animator);
- return animator;
- };
-
- animateCssConstructor.$closeAndFlush = function() {
- runners.forEach(function(runner) {
- runner.end();
- });
- runners = [];
- };
-
- return animateCssConstructor;
- }]);
-
- $provide.decorator('$animate', ['$delegate', '$timeout', '$browser', '$$rAF', '$animateCss', '$$animateJs',
- '$$forceReflow', '$$animateAsyncRun', '$rootScope',
- function($delegate, $timeout, $browser, $$rAF, $animateCss, $$animateJs,
- $$forceReflow, $$animateAsyncRun, $rootScope) {
- var animate = {
- queue: [],
- cancel: $delegate.cancel,
- on: $delegate.on,
- off: $delegate.off,
- pin: $delegate.pin,
- get reflows() {
- return $$forceReflow.totalReflows;
- },
- enabled: $delegate.enabled,
- /**
- * @ngdoc method
- * @name $animate#closeAndFlush
- * @description
- *
- * This method will close all pending animations (both {@link ngAnimate#javascript-based-animations Javascript}
- * and {@link ngAnimate.$animateCss CSS}) and it will also flush any remaining animation frames and/or callbacks.
- */
- closeAndFlush: function() {
- // we allow the flush command to swallow the errors
- // because depending on whether CSS or JS animations are
- // used, there may not be a RAF flush. The primary flush
- // at the end of this function must throw an exception
- // because it will track if there were pending animations
- this.flush(true);
- $animateCss.$closeAndFlush();
- $$animateJs.$closeAndFlush();
- this.flush();
- },
- /**
- * @ngdoc method
- * @name $animate#flush
- * @description
- *
- * This method is used to flush the pending callbacks and animation frames to either start
- * an animation or conclude an animation. Note that this will not actually close an
- * actively running animation (see {@link ngMock.$animate#closeAndFlush `closeAndFlush()`} for that).
- */
- flush: function(hideErrors) {
- $rootScope.$digest();
-
- var doNextRun, somethingFlushed = false;
- do {
- doNextRun = false;
-
- if ($$rAF.queue.length) {
- $$rAF.flush();
- doNextRun = somethingFlushed = true;
- }
-
- if ($$animateAsyncRun.flush()) {
- doNextRun = somethingFlushed = true;
- }
- } while (doNextRun);
-
- if (!somethingFlushed && !hideErrors) {
- throw new Error('No pending animations ready to be closed or flushed');
- }
-
- $rootScope.$digest();
- }
- };
-
- angular.forEach(
- ['animate','enter','leave','move','addClass','removeClass','setClass'], function(method) {
- animate[method] = function() {
- animate.queue.push({
- event: method,
- element: arguments[0],
- options: arguments[arguments.length - 1],
- args: arguments
- });
- return $delegate[method].apply($delegate, arguments);
- };
- });
-
- return animate;
- }]);
-
- }]);
-
-
-/**
- * @ngdoc function
- * @name angular.mock.dump
- * @description
- *
- * *NOTE*: This is not an injectable instance, just a globally available function.
- *
- * Method for serializing common angular objects (scope, elements, etc..) into strings.
- * It is useful for logging objects to the console when debugging.
- *
- * @param {*} object - any object to turn into string.
- * @return {string} a serialized string of the argument
- */
-angular.mock.dump = function(object) {
- return serialize(object);
-
- function serialize(object) {
- var out;
-
- if (angular.isElement(object)) {
- object = angular.element(object);
- out = angular.element('<div></div>');
- angular.forEach(object, function(element) {
- out.append(angular.element(element).clone());
- });
- out = out.html();
- } else if (angular.isArray(object)) {
- out = [];
- angular.forEach(object, function(o) {
- out.push(serialize(o));
- });
- out = '[ ' + out.join(', ') + ' ]';
- } else if (angular.isObject(object)) {
- if (angular.isFunction(object.$eval) && angular.isFunction(object.$apply)) {
- out = serializeScope(object);
- } else if (object instanceof Error) {
- out = object.stack || ('' + object.name + ': ' + object.message);
- } else {
- // TODO(i): this prevents methods being logged,
- // we should have a better way to serialize objects
- out = angular.toJson(object, true);
- }
- } else {
- out = String(object);
- }
-
- return out;
- }
-
- function serializeScope(scope, offset) {
- offset = offset || ' ';
- var log = [offset + 'Scope(' + scope.$id + '): {'];
- for (var key in scope) {
- if (Object.prototype.hasOwnProperty.call(scope, key) && !key.match(/^(\$|this)/)) {
- log.push(' ' + key + ': ' + angular.toJson(scope[key]));
- }
- }
- var child = scope.$$childHead;
- while (child) {
- log.push(serializeScope(child, offset + ' '));
- child = child.$$nextSibling;
- }
- log.push('}');
- return log.join('\n' + offset);
- }
-};
-
-/**
- * @ngdoc service
- * @name $httpBackend
- * @description
- * Fake HTTP backend implementation suitable for unit testing applications that use the
- * {@link ng.$http $http service}.
- *
- * <div class="alert alert-info">
- * **Note**: For fake HTTP backend implementation suitable for end-to-end testing or backend-less
- * development please see {@link ngMockE2E.$httpBackend e2e $httpBackend mock}.
- * </div>
- *
- * During unit testing, we want our unit tests to run quickly and have no external dependencies so
- * we don’t want to send [XHR](https://developer.mozilla.org/en/xmlhttprequest) or
- * [JSONP](http://en.wikipedia.org/wiki/JSONP) requests to a real server. All we really need is
- * to verify whether a certain request has been sent or not, or alternatively just let the
- * application make requests, respond with pre-trained responses and assert that the end result is
- * what we expect it to be.
- *
- * This mock implementation can be used to respond with static or dynamic responses via the
- * `expect` and `when` apis and their shortcuts (`expectGET`, `whenPOST`, etc).
- *
- * When an Angular application needs some data from a server, it calls the $http service, which
- * sends the request to a real server using $httpBackend service. With dependency injection, it is
- * easy to inject $httpBackend mock (which has the same API as $httpBackend) and use it to verify
- * the requests and respond with some testing data without sending a request to a real server.
- *
- * There are two ways to specify what test data should be returned as http responses by the mock
- * backend when the code under test makes http requests:
- *
- * - `$httpBackend.expect` - specifies a request expectation
- * - `$httpBackend.when` - specifies a backend definition
- *
- *
- * ## Request Expectations vs Backend Definitions
- *
- * Request expectations provide a way to make assertions about requests made by the application and
- * to define responses for those requests. The test will fail if the expected requests are not made
- * or they are made in the wrong order.
- *
- * Backend definitions allow you to define a fake backend for your application which doesn't assert
- * if a particular request was made or not, it just returns a trained response if a request is made.
- * The test will pass whether or not the request gets made during testing.
- *
- *
- * <table class="table">
- * <tr><th width="220px"></th><th>Request expectations</th><th>Backend definitions</th></tr>
- * <tr>
- * <th>Syntax</th>
- * <td>.expect(...).respond(...)</td>
- * <td>.when(...).respond(...)</td>
- * </tr>
- * <tr>
- * <th>Typical usage</th>
- * <td>strict unit tests</td>
- * <td>loose (black-box) unit testing</td>
- * </tr>
- * <tr>
- * <th>Fulfills multiple requests</th>
- * <td>NO</td>
- * <td>YES</td>
- * </tr>
- * <tr>
- * <th>Order of requests matters</th>
- * <td>YES</td>
- * <td>NO</td>
- * </tr>
- * <tr>
- * <th>Request required</th>
- * <td>YES</td>
- * <td>NO</td>
- * </tr>
- * <tr>
- * <th>Response required</th>
- * <td>optional (see below)</td>
- * <td>YES</td>
- * </tr>
- * </table>
- *
- * In cases where both backend definitions and request expectations are specified during unit
- * testing, the request expectations are evaluated first.
- *
- * If a request expectation has no response specified, the algorithm will search your backend
- * definitions for an appropriate response.
- *
- * If a request didn't match any expectation or if the expectation doesn't have the response
- * defined, the backend definitions are evaluated in sequential order to see if any of them match
- * the request. The response from the first matched definition is returned.
- *
- *
- * ## Flushing HTTP requests
- *
- * The $httpBackend used in production always responds to requests asynchronously. If we preserved
- * this behavior in unit testing, we'd have to create async unit tests, which are hard to write,
- * to follow and to maintain. But neither can the testing mock respond synchronously; that would
- * change the execution of the code under test. For this reason, the mock $httpBackend has a
- * `flush()` method, which allows the test to explicitly flush pending requests. This preserves
- * the async api of the backend, while allowing the test to execute synchronously.
- *
- *
- * ## Unit testing with mock $httpBackend
- * The following code shows how to setup and use the mock backend when unit testing a controller.
- * First we create the controller under test:
- *
- ```js
- // The module code
- angular
- .module('MyApp', [])
- .controller('MyController', MyController);
-
- // The controller code
- function MyController($scope, $http) {
- var authToken;
-
- $http.get('/auth.py').then(function(response) {
- authToken = response.headers('A-Token');
- $scope.user = response.data;
- });
-
- $scope.saveMessage = function(message) {
- var headers = { 'Authorization': authToken };
- $scope.status = 'Saving...';
-
- $http.post('/add-msg.py', message, { headers: headers } ).then(function(response) {
- $scope.status = '';
- })['catch'](function() {
- $scope.status = 'Failed...';
- });
- };
- }
- ```
- *
- * Now we setup the mock backend and create the test specs:
- *
- ```js
- // testing controller
- describe('MyController', function() {
- var $httpBackend, $rootScope, createController, authRequestHandler;
-
- // Set up the module
- beforeEach(module('MyApp'));
-
- beforeEach(inject(function($injector) {
- // Set up the mock http service responses
- $httpBackend = $injector.get('$httpBackend');
- // backend definition common for all tests
- authRequestHandler = $httpBackend.when('GET', '/auth.py')
- .respond({userId: 'userX'}, {'A-Token': 'xxx'});
-
- // Get hold of a scope (i.e. the root scope)
- $rootScope = $injector.get('$rootScope');
- // The $controller service is used to create instances of controllers
- var $controller = $injector.get('$controller');
-
- createController = function() {
- return $controller('MyController', {'$scope' : $rootScope });
- };
- }));
-
-
- afterEach(function() {
- $httpBackend.verifyNoOutstandingExpectation();
- $httpBackend.verifyNoOutstandingRequest();
- });
-
-
- it('should fetch authentication token', function() {
- $httpBackend.expectGET('/auth.py');
- var controller = createController();
- $httpBackend.flush();
- });
-
-
- it('should fail authentication', function() {
-
- // Notice how you can change the response even after it was set
- authRequestHandler.respond(401, '');
-
- $httpBackend.expectGET('/auth.py');
- var controller = createController();
- $httpBackend.flush();
- expect($rootScope.status).toBe('Failed...');
- });
-
-
- it('should send msg to server', function() {
- var controller = createController();
- $httpBackend.flush();
-
- // now you don’t care about the authentication, but
- // the controller will still send the request and
- // $httpBackend will respond without you having to
- // specify the expectation and response for this request
-
- $httpBackend.expectPOST('/add-msg.py', 'message content').respond(201, '');
- $rootScope.saveMessage('message content');
- expect($rootScope.status).toBe('Saving...');
- $httpBackend.flush();
- expect($rootScope.status).toBe('');
- });
-
-
- it('should send auth header', function() {
- var controller = createController();
- $httpBackend.flush();
-
- $httpBackend.expectPOST('/add-msg.py', undefined, function(headers) {
- // check if the header was sent, if it wasn't the expectation won't
- // match the request and the test will fail
- return headers['Authorization'] === 'xxx';
- }).respond(201, '');
-
- $rootScope.saveMessage('whatever');
- $httpBackend.flush();
- });
- });
- ```
- *
- * ## Dynamic responses
- *
- * You define a response to a request by chaining a call to `respond()` onto a definition or expectation.
- * If you provide a **callback** as the first parameter to `respond(callback)` then you can dynamically generate
- * a response based on the properties of the request.
- *
- * The `callback` function should be of the form `function(method, url, data, headers, params)`.
- *
- * ### Query parameters
- *
- * By default, query parameters on request URLs are parsed into the `params` object. So a request URL
- * of `/list?q=searchstr&orderby=-name` would set `params` to be `{q: 'searchstr', orderby: '-name'}`.
- *
- * ### Regex parameter matching
- *
- * If an expectation or definition uses a **regex** to match the URL, you can provide an array of **keys** via a
- * `params` argument. The index of each **key** in the array will match the index of a **group** in the
- * **regex**.
- *
- * The `params` object in the **callback** will now have properties with these keys, which hold the value of the
- * corresponding **group** in the **regex**.
- *
- * This also applies to the `when` and `expect` shortcut methods.
- *
- *
- * ```js
- * $httpBackend.expect('GET', /\/user\/(.+)/, undefined, undefined, ['id'])
- * .respond(function(method, url, data, headers, params) {
- * // for requested url of '/user/1234' params is {id: '1234'}
- * });
- *
- * $httpBackend.whenPATCH(/\/user\/(.+)\/article\/(.+)/, undefined, undefined, ['user', 'article'])
- * .respond(function(method, url, data, headers, params) {
- * // for url of '/user/1234/article/567' params is {user: '1234', article: '567'}
- * });
- * ```
- *
- * ## Matching route requests
- *
- * For extra convenience, `whenRoute` and `expectRoute` shortcuts are available. These methods offer colon
- * delimited matching of the url path, ignoring the query string. This allows declarations
- * similar to how application routes are configured with `$routeProvider`. Because these methods convert
- * the definition url to regex, declaration order is important. Combined with query parameter parsing,
- * the following is possible:
- *
- ```js
- $httpBackend.whenRoute('GET', '/users/:id')
- .respond(function(method, url, data, headers, params) {
- return [200, MockUserList[Number(params.id)]];
- });
-
- $httpBackend.whenRoute('GET', '/users')
- .respond(function(method, url, data, headers, params) {
- var userList = angular.copy(MockUserList),
- defaultSort = 'lastName',
- count, pages, isPrevious, isNext;
-
- // paged api response '/v1/users?page=2'
- params.page = Number(params.page) || 1;
-
- // query for last names '/v1/users?q=Archer'
- if (params.q) {
- userList = $filter('filter')({lastName: params.q});
- }
-
- pages = Math.ceil(userList.length / pagingLength);
- isPrevious = params.page > 1;
- isNext = params.page < pages;
-
- return [200, {
- count: userList.length,
- previous: isPrevious,
- next: isNext,
- // sort field -> '/v1/users?sortBy=firstName'
- results: $filter('orderBy')(userList, params.sortBy || defaultSort)
- .splice((params.page - 1) * pagingLength, pagingLength)
- }];
- });
- ```
- */
-angular.mock.$HttpBackendProvider = function() {
- this.$get = ['$rootScope', '$timeout', createHttpBackendMock];
-};
-
-/**
- * General factory function for $httpBackend mock.
- * Returns instance for unit testing (when no arguments specified):
- * - passing through is disabled
- * - auto flushing is disabled
- *
- * Returns instance for e2e testing (when `$delegate` and `$browser` specified):
- * - passing through (delegating request to real backend) is enabled
- * - auto flushing is enabled
- *
- * @param {Object=} $delegate Real $httpBackend instance (allow passing through if specified)
- * @param {Object=} $browser Auto-flushing enabled if specified
- * @return {Object} Instance of $httpBackend mock
- */
-function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
- var definitions = [],
- expectations = [],
- responses = [],
- responsesPush = angular.bind(responses, responses.push),
- copy = angular.copy;
-
- function createResponse(status, data, headers, statusText) {
- if (angular.isFunction(status)) return status;
-
- return function() {
- return angular.isNumber(status)
- ? [status, data, headers, statusText]
- : [200, status, data, headers];
- };
- }
-
- // TODO(vojta): change params to: method, url, data, headers, callback
- function $httpBackend(method, url, data, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers) {
-
- var xhr = new MockXhr(),
- expectation = expectations[0],
- wasExpected = false;
-
- xhr.$$events = eventHandlers;
- xhr.upload.$$events = uploadEventHandlers;
-
- function prettyPrint(data) {
- return (angular.isString(data) || angular.isFunction(data) || data instanceof RegExp)
- ? data
- : angular.toJson(data);
- }
-
- function wrapResponse(wrapped) {
- if (!$browser && timeout) {
- if (timeout.then) {
- timeout.then(handleTimeout);
- } else {
- $timeout(handleTimeout, timeout);
- }
- }
-
- return handleResponse;
-
- function handleResponse() {
- var response = wrapped.response(method, url, data, headers, wrapped.params(url));
- xhr.$$respHeaders = response[2];
- callback(copy(response[0]), copy(response[1]), xhr.getAllResponseHeaders(),
- copy(response[3] || ''));
- }
-
- function handleTimeout() {
- for (var i = 0, ii = responses.length; i < ii; i++) {
- if (responses[i] === handleResponse) {
- responses.splice(i, 1);
- callback(-1, undefined, '');
- break;
- }
- }
- }
- }
-
- if (expectation && expectation.match(method, url)) {
- if (!expectation.matchData(data)) {
- throw new Error('Expected ' + expectation + ' with different data\n' +
- 'EXPECTED: ' + prettyPrint(expectation.data) + '\nGOT: ' + data);
- }
-
- if (!expectation.matchHeaders(headers)) {
- throw new Error('Expected ' + expectation + ' with different headers\n' +
- 'EXPECTED: ' + prettyPrint(expectation.headers) + '\nGOT: ' +
- prettyPrint(headers));
- }
-
- expectations.shift();
-
- if (expectation.response) {
- responses.push(wrapResponse(expectation));
- return;
- }
- wasExpected = true;
- }
-
- var i = -1, definition;
- while ((definition = definitions[++i])) {
- if (definition.match(method, url, data, headers || {})) {
- if (definition.response) {
- // if $browser specified, we do auto flush all requests
- ($browser ? $browser.defer : responsesPush)(wrapResponse(definition));
- } else if (definition.passThrough) {
- $delegate(method, url, data, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers);
- } else throw new Error('No response defined !');
- return;
- }
- }
- throw wasExpected ?
- new Error('No response defined !') :
- new Error('Unexpected request: ' + method + ' ' + url + '\n' +
- (expectation ? 'Expected ' + expectation : 'No more request expected'));
- }
-
- /**
- * @ngdoc method
- * @name $httpBackend#when
- * @description
- * Creates a new backend definition.
- *
- * @param {string} method HTTP method.
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
- * data string and returns true if the data is as expected.
- * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header
- * object and returns true if the headers match the current definition.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- *
- * - respond –
- * ```js
- * {function([status,] data[, headers, statusText])
- * | function(function(method, url, data, headers, params)}
- * ```
- * – The respond method takes a set of static data to be returned or a function that can
- * return an array containing response status (number), response data (Array|Object|string),
- * response headers (Object), and the text for the status (string). The respond method returns
- * the `requestHandler` object for possible overrides.
- */
- $httpBackend.when = function(method, url, data, headers, keys) {
- var definition = new MockHttpExpectation(method, url, data, headers, keys),
- chain = {
- respond: function(status, data, headers, statusText) {
- definition.passThrough = undefined;
- definition.response = createResponse(status, data, headers, statusText);
- return chain;
- }
- };
-
- if ($browser) {
- chain.passThrough = function() {
- definition.response = undefined;
- definition.passThrough = true;
- return chain;
- };
- }
-
- definitions.push(definition);
- return chain;
- };
-
- /**
- * @ngdoc method
- * @name $httpBackend#whenGET
- * @description
- * Creates a new backend definition for GET requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#whenHEAD
- * @description
- * Creates a new backend definition for HEAD requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#whenDELETE
- * @description
- * Creates a new backend definition for DELETE requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#whenPOST
- * @description
- * Creates a new backend definition for POST requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
- * data string and returns true if the data is as expected.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#whenPUT
- * @description
- * Creates a new backend definition for PUT requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
- * data string and returns true if the data is as expected.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#whenJSONP
- * @description
- * Creates a new backend definition for JSONP requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
- createShortMethods('when');
-
- /**
- * @ngdoc method
- * @name $httpBackend#whenRoute
- * @description
- * Creates a new backend definition that compares only with the requested route.
- *
- * @param {string} method HTTP method.
- * @param {string} url HTTP url string that supports colon param matching.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled. See #when for more info.
- */
- $httpBackend.whenRoute = function(method, url) {
- var pathObj = parseRoute(url);
- return $httpBackend.when(method, pathObj.regexp, undefined, undefined, pathObj.keys);
- };
-
- function parseRoute(url) {
- var ret = {
- regexp: url
- },
- keys = ret.keys = [];
-
- if (!url || !angular.isString(url)) return ret;
-
- url = url
- .replace(/([().])/g, '\\$1')
- .replace(/(\/)?:(\w+)([?*])?/g, function(_, slash, key, option) {
- var optional = option === '?' ? option : null;
- var star = option === '*' ? option : null;
- keys.push({ name: key, optional: !!optional });
- slash = slash || '';
- return ''
- + (optional ? '' : slash)
- + '(?:'
- + (optional ? slash : '')
- + (star && '(.+?)' || '([^/]+)')
- + (optional || '')
- + ')'
- + (optional || '');
- })
- .replace(/([/$*])/g, '\\$1');
-
- ret.regexp = new RegExp('^' + url, 'i');
- return ret;
- }
-
- /**
- * @ngdoc method
- * @name $httpBackend#expect
- * @description
- * Creates a new request expectation.
- *
- * @param {string} method HTTP method.
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that
- * receives data string and returns true if the data is as expected, or Object if request body
- * is in JSON format.
- * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header
- * object and returns true if the headers match the current expectation.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- *
- * - respond –
- * ```
- * { function([status,] data[, headers, statusText])
- * | function(function(method, url, data, headers, params)}
- * ```
- * – The respond method takes a set of static data to be returned or a function that can
- * return an array containing response status (number), response data (Array|Object|string),
- * response headers (Object), and the text for the status (string). The respond method returns
- * the `requestHandler` object for possible overrides.
- */
- $httpBackend.expect = function(method, url, data, headers, keys) {
- var expectation = new MockHttpExpectation(method, url, data, headers, keys),
- chain = {
- respond: function(status, data, headers, statusText) {
- expectation.response = createResponse(status, data, headers, statusText);
- return chain;
- }
- };
-
- expectations.push(expectation);
- return chain;
- };
-
- /**
- * @ngdoc method
- * @name $httpBackend#expectGET
- * @description
- * Creates a new request expectation for GET requests. For more info see `expect()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {Object=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled. See #expect for more info.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#expectHEAD
- * @description
- * Creates a new request expectation for HEAD requests. For more info see `expect()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {Object=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#expectDELETE
- * @description
- * Creates a new request expectation for DELETE requests. For more info see `expect()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {Object=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#expectPOST
- * @description
- * Creates a new request expectation for POST requests. For more info see `expect()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that
- * receives data string and returns true if the data is as expected, or Object if request body
- * is in JSON format.
- * @param {Object=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#expectPUT
- * @description
- * Creates a new request expectation for PUT requests. For more info see `expect()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that
- * receives data string and returns true if the data is as expected, or Object if request body
- * is in JSON format.
- * @param {Object=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#expectPATCH
- * @description
- * Creates a new request expectation for PATCH requests. For more info see `expect()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that
- * receives data string and returns true if the data is as expected, or Object if request body
- * is in JSON format.
- * @param {Object=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
-
- /**
- * @ngdoc method
- * @name $httpBackend#expectJSONP
- * @description
- * Creates a new request expectation for JSONP requests. For more info see `expect()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives an url
- * and returns true if the url matches the current definition.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described above.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled.
- */
- createShortMethods('expect');
-
- /**
- * @ngdoc method
- * @name $httpBackend#expectRoute
- * @description
- * Creates a new request expectation that compares only with the requested route.
- *
- * @param {string} method HTTP method.
- * @param {string} url HTTP url string that supports colon param matching.
- * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
- * request is handled. You can save this object for later use and invoke `respond` again in
- * order to change how a matched request is handled. See #expect for more info.
- */
- $httpBackend.expectRoute = function(method, url) {
- var pathObj = parseRoute(url);
- return $httpBackend.expect(method, pathObj.regexp, undefined, undefined, pathObj.keys);
- };
-
-
- /**
- * @ngdoc method
- * @name $httpBackend#flush
- * @description
- * Flushes pending requests using the trained responses. Requests are flushed in the order they
- * were made, but it is also possible to skip one or more requests (for example to have them
- * flushed later). This is useful for simulating scenarios where responses arrive from the server
- * in any order.
- *
- * If there are no pending requests to flush when the method is called, an exception is thrown (as
- * this is typically a sign of programming error).
- *
- * @param {number=} count - Number of responses to flush. If undefined/null, all pending requests
- * (starting after `skip`) will be flushed.
- * @param {number=} [skip=0] - Number of pending requests to skip. For example, a value of `5`
- * would skip the first 5 pending requests and start flushing from the 6th onwards.
- */
- $httpBackend.flush = function(count, skip, digest) {
- if (digest !== false) $rootScope.$digest();
-
- skip = skip || 0;
- if (skip >= responses.length) throw new Error('No pending request to flush !');
-
- if (angular.isDefined(count) && count !== null) {
- while (count--) {
- var part = responses.splice(skip, 1);
- if (!part.length) throw new Error('No more pending request to flush !');
- part[0]();
- }
- } else {
- while (responses.length > skip) {
- responses.splice(skip, 1)[0]();
- }
- }
- $httpBackend.verifyNoOutstandingExpectation(digest);
- };
-
-
- /**
- * @ngdoc method
- * @name $httpBackend#verifyNoOutstandingExpectation
- * @description
- * Verifies that all of the requests defined via the `expect` api were made. If any of the
- * requests were not made, verifyNoOutstandingExpectation throws an exception.
- *
- * Typically, you would call this method following each test case that asserts requests using an
- * "afterEach" clause.
- *
- * ```js
- * afterEach($httpBackend.verifyNoOutstandingExpectation);
- * ```
- */
- $httpBackend.verifyNoOutstandingExpectation = function(digest) {
- if (digest !== false) $rootScope.$digest();
- if (expectations.length) {
- throw new Error('Unsatisfied requests: ' + expectations.join(', '));
- }
- };
-
-
- /**
- * @ngdoc method
- * @name $httpBackend#verifyNoOutstandingRequest
- * @description
- * Verifies that there are no outstanding requests that need to be flushed.
- *
- * Typically, you would call this method following each test case that asserts requests using an
- * "afterEach" clause.
- *
- * ```js
- * afterEach($httpBackend.verifyNoOutstandingRequest);
- * ```
- */
- $httpBackend.verifyNoOutstandingRequest = function() {
- if (responses.length) {
- throw new Error('Unflushed requests: ' + responses.length);
- }
- };
-
-
- /**
- * @ngdoc method
- * @name $httpBackend#resetExpectations
- * @description
- * Resets all request expectations, but preserves all backend definitions. Typically, you would
- * call resetExpectations during a multiple-phase test when you want to reuse the same instance of
- * $httpBackend mock.
- */
- $httpBackend.resetExpectations = function() {
- expectations.length = 0;
- responses.length = 0;
- };
-
- return $httpBackend;
-
-
- function createShortMethods(prefix) {
- angular.forEach(['GET', 'DELETE', 'JSONP', 'HEAD'], function(method) {
- $httpBackend[prefix + method] = function(url, headers, keys) {
- return $httpBackend[prefix](method, url, undefined, headers, keys);
- };
- });
-
- angular.forEach(['PUT', 'POST', 'PATCH'], function(method) {
- $httpBackend[prefix + method] = function(url, data, headers, keys) {
- return $httpBackend[prefix](method, url, data, headers, keys);
- };
- });
- }
-}
-
-function MockHttpExpectation(method, url, data, headers, keys) {
-
- function getUrlParams(u) {
- var params = u.slice(u.indexOf('?') + 1).split('&');
- return params.sort();
- }
-
- function compareUrl(u) {
- return (url.slice(0, url.indexOf('?')) === u.slice(0, u.indexOf('?')) &&
- getUrlParams(url).join() === getUrlParams(u).join());
- }
-
- this.data = data;
- this.headers = headers;
-
- this.match = function(m, u, d, h) {
- if (method !== m) return false;
- if (!this.matchUrl(u)) return false;
- if (angular.isDefined(d) && !this.matchData(d)) return false;
- if (angular.isDefined(h) && !this.matchHeaders(h)) return false;
- return true;
- };
-
- this.matchUrl = function(u) {
- if (!url) return true;
- if (angular.isFunction(url.test)) return url.test(u);
- if (angular.isFunction(url)) return url(u);
- return (url === u || compareUrl(u));
- };
-
- this.matchHeaders = function(h) {
- if (angular.isUndefined(headers)) return true;
- if (angular.isFunction(headers)) return headers(h);
- return angular.equals(headers, h);
- };
-
- this.matchData = function(d) {
- if (angular.isUndefined(data)) return true;
- if (data && angular.isFunction(data.test)) return data.test(d);
- if (data && angular.isFunction(data)) return data(d);
- if (data && !angular.isString(data)) {
- return angular.equals(angular.fromJson(angular.toJson(data)), angular.fromJson(d));
- }
- // eslint-disable-next-line eqeqeq
- return data == d;
- };
-
- this.toString = function() {
- return method + ' ' + url;
- };
-
- this.params = function(u) {
- return angular.extend(parseQuery(), pathParams());
-
- function pathParams() {
- var keyObj = {};
- if (!url || !angular.isFunction(url.test) || !keys || keys.length === 0) return keyObj;
-
- var m = url.exec(u);
- if (!m) return keyObj;
- for (var i = 1, len = m.length; i < len; ++i) {
- var key = keys[i - 1];
- var val = m[i];
- if (key && val) {
- keyObj[key.name || key] = val;
- }
- }
-
- return keyObj;
- }
-
- function parseQuery() {
- var obj = {}, key_value, key,
- queryStr = u.indexOf('?') > -1
- ? u.substring(u.indexOf('?') + 1)
- : '';
-
- angular.forEach(queryStr.split('&'), function(keyValue) {
- if (keyValue) {
- key_value = keyValue.replace(/\+/g,'%20').split('=');
- key = tryDecodeURIComponent(key_value[0]);
- if (angular.isDefined(key)) {
- var val = angular.isDefined(key_value[1]) ? tryDecodeURIComponent(key_value[1]) : true;
- if (!hasOwnProperty.call(obj, key)) {
- obj[key] = val;
- } else if (angular.isArray(obj[key])) {
- obj[key].push(val);
- } else {
- obj[key] = [obj[key],val];
- }
- }
- }
- });
- return obj;
- }
- function tryDecodeURIComponent(value) {
- try {
- return decodeURIComponent(value);
- } catch (e) {
- // Ignore any invalid uri component
- }
- }
- };
-}
-
-function createMockXhr() {
- return new MockXhr();
-}
-
-function MockXhr() {
-
- // hack for testing $http, $httpBackend
- MockXhr.$$lastInstance = this;
-
- this.open = function(method, url, async) {
- this.$$method = method;
- this.$$url = url;
- this.$$async = async;
- this.$$reqHeaders = {};
- this.$$respHeaders = {};
- };
-
- this.send = function(data) {
- this.$$data = data;
- };
-
- this.setRequestHeader = function(key, value) {
- this.$$reqHeaders[key] = value;
- };
-
- this.getResponseHeader = function(name) {
- // the lookup must be case insensitive,
- // that's why we try two quick lookups first and full scan last
- var header = this.$$respHeaders[name];
- if (header) return header;
-
- name = angular.lowercase(name);
- header = this.$$respHeaders[name];
- if (header) return header;
-
- header = undefined;
- angular.forEach(this.$$respHeaders, function(headerVal, headerName) {
- if (!header && angular.lowercase(headerName) === name) header = headerVal;
- });
- return header;
- };
-
- this.getAllResponseHeaders = function() {
- var lines = [];
-
- angular.forEach(this.$$respHeaders, function(value, key) {
- lines.push(key + ': ' + value);
- });
- return lines.join('\n');
- };
-
- this.abort = angular.noop;
-
- // This section simulates the events on a real XHR object (and the upload object)
- // When we are testing $httpBackend (inside the angular project) we make partial use of this
- // but store the events directly ourselves on `$$events`, instead of going through the `addEventListener`
- this.$$events = {};
- this.addEventListener = function(name, listener) {
- if (angular.isUndefined(this.$$events[name])) this.$$events[name] = [];
- this.$$events[name].push(listener);
- };
-
- this.upload = {
- $$events: {},
- addEventListener: this.addEventListener
- };
-}
-
-
-/**
- * @ngdoc service
- * @name $timeout
- * @description
- *
- * This service is just a simple decorator for {@link ng.$timeout $timeout} service
- * that adds a "flush" and "verifyNoPendingTasks" methods.
- */
-
-angular.mock.$TimeoutDecorator = ['$delegate', '$browser', function($delegate, $browser) {
-
- /**
- * @ngdoc method
- * @name $timeout#flush
- * @description
- *
- * Flushes the queue of pending tasks.
- *
- * @param {number=} delay maximum timeout amount to flush up until
- */
- $delegate.flush = function(delay) {
- $browser.defer.flush(delay);
- };
-
- /**
- * @ngdoc method
- * @name $timeout#verifyNoPendingTasks
- * @description
- *
- * Verifies that there are no pending tasks that need to be flushed.
- */
- $delegate.verifyNoPendingTasks = function() {
- if ($browser.deferredFns.length) {
- throw new Error('Deferred tasks to flush (' + $browser.deferredFns.length + '): ' +
- formatPendingTasksAsString($browser.deferredFns));
- }
- };
-
- function formatPendingTasksAsString(tasks) {
- var result = [];
- angular.forEach(tasks, function(task) {
- result.push('{id: ' + task.id + ', time: ' + task.time + '}');
- });
-
- return result.join(', ');
- }
-
- return $delegate;
-}];
-
-angular.mock.$RAFDecorator = ['$delegate', function($delegate) {
- var rafFn = function(fn) {
- var index = rafFn.queue.length;
- rafFn.queue.push(fn);
- return function() {
- rafFn.queue.splice(index, 1);
- };
- };
-
- rafFn.queue = [];
- rafFn.supported = $delegate.supported;
-
- rafFn.flush = function() {
- if (rafFn.queue.length === 0) {
- throw new Error('No rAF callbacks present');
- }
-
- var length = rafFn.queue.length;
- for (var i = 0; i < length; i++) {
- rafFn.queue[i]();
- }
-
- rafFn.queue = rafFn.queue.slice(i);
- };
-
- return rafFn;
-}];
-
-/**
- *
- */
-var originalRootElement;
-angular.mock.$RootElementProvider = function() {
- this.$get = ['$injector', function($injector) {
- originalRootElement = angular.element('<div ng-app></div>').data('$injector', $injector);
- return originalRootElement;
- }];
-};
-
-/**
- * @ngdoc service
- * @name $controller
- * @description
- * A decorator for {@link ng.$controller} with additional `bindings` parameter, useful when testing
- * controllers of directives that use {@link $compile#-bindtocontroller- `bindToController`}.
- *
- * Depending on the value of
- * {@link ng.$compileProvider#preAssignBindingsEnabled `preAssignBindingsEnabled()`}, the properties
- * will be bound before or after invoking the constructor.
- *
- *
- * ## Example
- *
- * ```js
- *
- * // Directive definition ...
- *
- * myMod.directive('myDirective', {
- * controller: 'MyDirectiveController',
- * bindToController: {
- * name: '@'
- * }
- * });
- *
- *
- * // Controller definition ...
- *
- * myMod.controller('MyDirectiveController', ['$log', function($log) {
- * this.log = function() {
- * $log.info(this.name);
- * };
- * }]);
- *
- *
- * // In a test ...
- *
- * describe('myDirectiveController', function() {
- * describe('log()', function() {
- * it('should write the bound name to the log', inject(function($controller, $log) {
- * var ctrl = $controller('MyDirectiveController', { /* no locals &#42;/ }, { name: 'Clark Kent' });
- * ctrl.log();
- *
- * expect(ctrl.name).toEqual('Clark Kent');
- * expect($log.info.logs).toEqual(['Clark Kent']);
- * }));
- * });
- * });
- *
- * ```
- *
- * @param {Function|string} constructor If called with a function then it's considered to be the
- * controller constructor function. Otherwise it's considered to be a string which is used
- * to retrieve the controller constructor using the following steps:
- *
- * * check if a controller with given name is registered via `$controllerProvider`
- * * check if evaluating the string on the current scope returns a constructor
- * * if $controllerProvider#allowGlobals, check `window[constructor]` on the global
- * `window` object (not recommended)
- *
- * The string can use the `controller as property` syntax, where the controller instance is published
- * as the specified property on the `scope`; the `scope` must be injected into `locals` param for this
- * to work correctly.
- *
- * @param {Object} locals Injection locals for Controller.
- * @param {Object=} bindings Properties to add to the controller instance. This is used to simulate
- * the `bindToController` feature and simplify certain kinds of tests.
- * @return {Object} Instance of given controller.
- */
-function createControllerDecorator(compileProvider) {
- angular.mock.$ControllerDecorator = ['$delegate', function($delegate) {
- return function(expression, locals, later, ident) {
- if (later && typeof later === 'object') {
- var preAssignBindingsEnabled = compileProvider.preAssignBindingsEnabled();
-
- var instantiate = $delegate(expression, locals, true, ident);
- if (preAssignBindingsEnabled) {
- angular.extend(instantiate.instance, later);
- }
-
- var instance = instantiate();
- if (!preAssignBindingsEnabled || instance !== instantiate.instance) {
- angular.extend(instance, later);
- }
-
- return instance;
- }
- return $delegate(expression, locals, later, ident);
- };
- }];
-
- return angular.mock.$ControllerDecorator;
-}
-
-/**
- * @ngdoc service
- * @name $componentController
- * @description
- * A service that can be used to create instances of component controllers. Useful for unit-testing.
- *
- * Be aware that the controller will be instantiated and attached to the scope as specified in
- * the component definition object. If you do not provide a `$scope` object in the `locals` param
- * then the helper will create a new isolated scope as a child of `$rootScope`.
- *
- * If you are using `$element` or `$attrs` in the controller, make sure to provide them as `locals`.
- * The `$element` must be a jqLite-wrapped DOM element, and `$attrs` should be an object that
- * has all properties / functions that you are using in the controller. If this is getting too complex,
- * you should compile the component instead and access the component's controller via the
- * {@link angular.element#methods `controller`} function.
- *
- * See also the section on {@link guide/component#unit-testing-component-controllers unit-testing component controllers}
- * in the guide.
- *
- * @param {string} componentName the name of the component whose controller we want to instantiate
- * @param {Object} locals Injection locals for Controller.
- * @param {Object=} bindings Properties to add to the controller before invoking the constructor. This is used
- * to simulate the `bindToController` feature and simplify certain kinds of tests.
- * @param {string=} ident Override the property name to use when attaching the controller to the scope.
- * @return {Object} Instance of requested controller.
- */
-angular.mock.$ComponentControllerProvider = ['$compileProvider',
- function ComponentControllerProvider($compileProvider) {
- this.$get = ['$controller','$injector', '$rootScope', function($controller, $injector, $rootScope) {
- return function $componentController(componentName, locals, bindings, ident) {
- // get all directives associated to the component name
- var directives = $injector.get(componentName + 'Directive');
- // look for those directives that are components
- var candidateDirectives = directives.filter(function(directiveInfo) {
- // components have controller, controllerAs and restrict:'E'
- return directiveInfo.controller && directiveInfo.controllerAs && directiveInfo.restrict === 'E';
- });
- // check if valid directives found
- if (candidateDirectives.length === 0) {
- throw new Error('No component found');
- }
- if (candidateDirectives.length > 1) {
- throw new Error('Too many components found');
- }
- // get the info of the component
- var directiveInfo = candidateDirectives[0];
- // create a scope if needed
- locals = locals || {};
- locals.$scope = locals.$scope || $rootScope.$new(true);
- return $controller(directiveInfo.controller, locals, bindings, ident || directiveInfo.controllerAs);
- };
- }];
-}];
-
-
-/**
- * @ngdoc module
- * @name ngMock
- * @packageName angular-mocks
- * @description
- *
- * # ngMock
- *
- * The `ngMock` module provides support to inject and mock Angular services into unit tests.
- * In addition, ngMock also extends various core ng services such that they can be
- * inspected and controlled in a synchronous manner within test code.
- *
- *
- * <div doc-module-components="ngMock"></div>
- *
- * @installation
- *
- * First, download the file:
- * * [Google CDN](https://developers.google.com/speed/libraries/devguide#angularjs) e.g.
- * `"//ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/angular-mocks.js"`
- * * [NPM](https://www.npmjs.com/) e.g. `npm install angular-mocks@X.Y.Z`
- * * [Yarn](https://yarnpkg.com) e.g. `yarn add angular-mocks@X.Y.Z`
- * * [Bower](http://bower.io) e.g. `bower install angular-mocks#X.Y.Z`
- * * [code.angularjs.org](https://code.angularjs.org/) (discouraged for production use) e.g.
- * `"//code.angularjs.org/X.Y.Z/angular-mocks.js"`
- *
- * where X.Y.Z is the AngularJS version you are running.
- *
- * Then, configure your test runner to load `angular-mocks.js` after `angular.js`.
- * This example uses <a href="http://karma-runner.github.io/">Karma</a>:
- *
- * ```
- * config.set({
- * files: [
- * 'build/angular.js', // and other module files you need
- * 'build/angular-mocks.js',
- * '<path/to/application/files>',
- * '<path/to/spec/files>'
- * ]
- * });
- * ```
- *
- * Including the `angular-mocks.js` file automatically adds the `ngMock` module, so your tests
- * are ready to go!
- */
-angular.module('ngMock', ['ng']).provider({
- $browser: angular.mock.$BrowserProvider,
- $exceptionHandler: angular.mock.$ExceptionHandlerProvider,
- $log: angular.mock.$LogProvider,
- $interval: angular.mock.$IntervalProvider,
- $httpBackend: angular.mock.$HttpBackendProvider,
- $rootElement: angular.mock.$RootElementProvider,
- $componentController: angular.mock.$ComponentControllerProvider
-}).config(['$provide', '$compileProvider', function($provide, $compileProvider) {
- $provide.decorator('$timeout', angular.mock.$TimeoutDecorator);
- $provide.decorator('$$rAF', angular.mock.$RAFDecorator);
- $provide.decorator('$rootScope', angular.mock.$RootScopeDecorator);
- $provide.decorator('$controller', createControllerDecorator($compileProvider));
-}]);
-
-/**
- * @ngdoc module
- * @name ngMockE2E
- * @module ngMockE2E
- * @packageName angular-mocks
- * @description
- *
- * The `ngMockE2E` is an angular module which contains mocks suitable for end-to-end testing.
- * Currently there is only one mock present in this module -
- * the {@link ngMockE2E.$httpBackend e2e $httpBackend} mock.
- */
-angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
- $provide.value('$httpBackend', angular.injector(['ng']).get('$httpBackend'));
- $provide.decorator('$httpBackend', angular.mock.e2e.$httpBackendDecorator);
-}]);
-
-/**
- * @ngdoc service
- * @name $httpBackend
- * @module ngMockE2E
- * @description
- * Fake HTTP backend implementation suitable for end-to-end testing or backend-less development of
- * applications that use the {@link ng.$http $http service}.
- *
- * <div class="alert alert-info">
- * **Note**: For fake http backend implementation suitable for unit testing please see
- * {@link ngMock.$httpBackend unit-testing $httpBackend mock}.
- * </div>
- *
- * This implementation can be used to respond with static or dynamic responses via the `when` api
- * and its shortcuts (`whenGET`, `whenPOST`, etc) and optionally pass through requests to the
- * real $httpBackend for specific requests (e.g. to interact with certain remote apis or to fetch
- * templates from a webserver).
- *
- * As opposed to unit-testing, in an end-to-end testing scenario or in scenario when an application
- * is being developed with the real backend api replaced with a mock, it is often desirable for
- * certain category of requests to bypass the mock and issue a real http request (e.g. to fetch
- * templates or static files from the webserver). To configure the backend with this behavior
- * use the `passThrough` request handler of `when` instead of `respond`.
- *
- * Additionally, we don't want to manually have to flush mocked out requests like we do during unit
- * testing. For this reason the e2e $httpBackend flushes mocked out requests
- * automatically, closely simulating the behavior of the XMLHttpRequest object.
- *
- * To setup the application to run with this http backend, you have to create a module that depends
- * on the `ngMockE2E` and your application modules and defines the fake backend:
- *
- * ```js
- * var myAppDev = angular.module('myAppDev', ['myApp', 'ngMockE2E']);
- * myAppDev.run(function($httpBackend) {
- * var phones = [{name: 'phone1'}, {name: 'phone2'}];
- *
- * // returns the current list of phones
- * $httpBackend.whenGET('/phones').respond(phones);
- *
- * // adds a new phone to the phones array
- * $httpBackend.whenPOST('/phones').respond(function(method, url, data) {
- * var phone = angular.fromJson(data);
- * phones.push(phone);
- * return [200, phone, {}];
- * });
- * $httpBackend.whenGET(/^\/templates\//).passThrough(); // Requests for templare are handled by the real server
- * //...
- * });
- * ```
- *
- * Afterwards, bootstrap your app with this new module.
- *
- * ## Example
- * <example name="httpbackend-e2e-testing" module="myAppE2E" deps="angular-mocks.js">
- * <file name="app.js">
- * var myApp = angular.module('myApp', []);
- *
- * myApp.controller('MainCtrl', function MainCtrl($http) {
- * var ctrl = this;
- *
- * ctrl.phones = [];
- * ctrl.newPhone = {
- * name: ''
- * };
- *
- * ctrl.getPhones = function() {
- * $http.get('/phones').then(function(response) {
- * ctrl.phones = response.data;
- * });
- * };
- *
- * ctrl.addPhone = function(phone) {
- * $http.post('/phones', phone).then(function() {
- * ctrl.newPhone = {name: ''};
- * return ctrl.getPhones();
- * });
- * };
- *
- * ctrl.getPhones();
- * });
- * </file>
- * <file name="e2e.js">
- * var myAppDev = angular.module('myAppE2E', ['myApp', 'ngMockE2E']);
- *
- * myAppDev.run(function($httpBackend) {
- * var phones = [{name: 'phone1'}, {name: 'phone2'}];
- *
- * // returns the current list of phones
- * $httpBackend.whenGET('/phones').respond(phones);
- *
- * // adds a new phone to the phones array
- * $httpBackend.whenPOST('/phones').respond(function(method, url, data) {
- * var phone = angular.fromJson(data);
- * phones.push(phone);
- * return [200, phone, {}];
- * });
- * });
- * </file>
- * <file name="index.html">
- * <div ng-controller="MainCtrl as $ctrl">
- * <form name="newPhoneForm" ng-submit="$ctrl.addPhone($ctrl.newPhone)">
- * <input type="text" ng-model="$ctrl.newPhone.name">
- * <input type="submit" value="Add Phone">
- * </form>
- * <h1>Phones</h1>
- * <ul>
- * <li ng-repeat="phone in $ctrl.phones">{{phone.name}}</li>
- * </ul>
- * </div>
- * </file>
- * </example>
- *
- *
- */
-
-/**
- * @ngdoc method
- * @name $httpBackend#when
- * @module ngMockE2E
- * @description
- * Creates a new backend definition.
- *
- * @param {string} method HTTP method.
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
- * data string and returns true if the data is as expected.
- * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header
- * object and returns true if the headers match the current definition.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described on
- * {@link ngMock.$httpBackend $httpBackend mock}.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- *
- * - respond –
- * ```
- * { function([status,] data[, headers, statusText])
- * | function(function(method, url, data, headers, params)}
- * ```
- * – The respond method takes a set of static data to be returned or a function that can return
- * an array containing response status (number), response data (Array|Object|string), response
- * headers (Object), and the text for the status (string).
- * - passThrough – `{function()}` – Any request matching a backend definition with
- * `passThrough` handler will be passed through to the real backend (an XHR request will be made
- * to the server.)
- * - Both methods return the `requestHandler` object for possible overrides.
- */
-
-/**
- * @ngdoc method
- * @name $httpBackend#whenGET
- * @module ngMockE2E
- * @description
- * Creates a new backend definition for GET requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described on
- * {@link ngMock.$httpBackend $httpBackend mock}.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- */
-
-/**
- * @ngdoc method
- * @name $httpBackend#whenHEAD
- * @module ngMockE2E
- * @description
- * Creates a new backend definition for HEAD requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described on
- * {@link ngMock.$httpBackend $httpBackend mock}.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- */
-
-/**
- * @ngdoc method
- * @name $httpBackend#whenDELETE
- * @module ngMockE2E
- * @description
- * Creates a new backend definition for DELETE requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described on
- * {@link ngMock.$httpBackend $httpBackend mock}.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- */
-
-/**
- * @ngdoc method
- * @name $httpBackend#whenPOST
- * @module ngMockE2E
- * @description
- * Creates a new backend definition for POST requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
- * data string and returns true if the data is as expected.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described on
- * {@link ngMock.$httpBackend $httpBackend mock}.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- */
-
-/**
- * @ngdoc method
- * @name $httpBackend#whenPUT
- * @module ngMockE2E
- * @description
- * Creates a new backend definition for PUT requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
- * data string and returns true if the data is as expected.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described on
- * {@link ngMock.$httpBackend $httpBackend mock}.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- */
-
-/**
- * @ngdoc method
- * @name $httpBackend#whenPATCH
- * @module ngMockE2E
- * @description
- * Creates a new backend definition for PATCH requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
- * data string and returns true if the data is as expected.
- * @param {(Object|function(Object))=} headers HTTP headers.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described on
- * {@link ngMock.$httpBackend $httpBackend mock}.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- */
-
-/**
- * @ngdoc method
- * @name $httpBackend#whenJSONP
- * @module ngMockE2E
- * @description
- * Creates a new backend definition for JSONP requests. For more info see `when()`.
- *
- * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
- * and returns true if the url matches the current definition.
- * @param {(Array)=} keys Array of keys to assign to regex matches in request url described on
- * {@link ngMock.$httpBackend $httpBackend mock}.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- */
-/**
- * @ngdoc method
- * @name $httpBackend#whenRoute
- * @module ngMockE2E
- * @description
- * Creates a new backend definition that compares only with the requested route.
- *
- * @param {string} method HTTP method.
- * @param {string} url HTTP url string that supports colon param matching.
- * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
- * control how a matched request is handled. You can save this object for later use and invoke
- * `respond` or `passThrough` again in order to change how a matched request is handled.
- */
-angular.mock.e2e = {};
-angular.mock.e2e.$httpBackendDecorator =
- ['$rootScope', '$timeout', '$delegate', '$browser', createHttpBackendMock];
-
-
-/**
- * @ngdoc type
- * @name $rootScope.Scope
- * @module ngMock
- * @description
- * {@link ng.$rootScope.Scope Scope} type decorated with helper methods useful for testing. These
- * methods are automatically available on any {@link ng.$rootScope.Scope Scope} instance when
- * `ngMock` module is loaded.
- *
- * In addition to all the regular `Scope` methods, the following helper methods are available:
- */
-angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
-
- var $rootScopePrototype = Object.getPrototypeOf($delegate);
-
- $rootScopePrototype.$countChildScopes = countChildScopes;
- $rootScopePrototype.$countWatchers = countWatchers;
-
- return $delegate;
-
- // ------------------------------------------------------------------------------------------ //
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$countChildScopes
- * @module ngMock
- * @this $rootScope.Scope
- * @description
- * Counts all the direct and indirect child scopes of the current scope.
- *
- * The current scope is excluded from the count. The count includes all isolate child scopes.
- *
- * @returns {number} Total number of child scopes.
- */
- function countChildScopes() {
- var count = 0; // exclude the current scope
- var pendingChildHeads = [this.$$childHead];
- var currentScope;
-
- while (pendingChildHeads.length) {
- currentScope = pendingChildHeads.shift();
-
- while (currentScope) {
- count += 1;
- pendingChildHeads.push(currentScope.$$childHead);
- currentScope = currentScope.$$nextSibling;
- }
- }
-
- return count;
- }
-
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$countWatchers
- * @this $rootScope.Scope
- * @module ngMock
- * @description
- * Counts all the watchers of direct and indirect child scopes of the current scope.
- *
- * The watchers of the current scope are included in the count and so are all the watchers of
- * isolate child scopes.
- *
- * @returns {number} Total number of watchers.
- */
- function countWatchers() {
- var count = this.$$watchers ? this.$$watchers.length : 0; // include the current scope
- var pendingChildHeads = [this.$$childHead];
- var currentScope;
-
- while (pendingChildHeads.length) {
- currentScope = pendingChildHeads.shift();
-
- while (currentScope) {
- count += currentScope.$$watchers ? currentScope.$$watchers.length : 0;
- pendingChildHeads.push(currentScope.$$childHead);
- currentScope = currentScope.$$nextSibling;
- }
- }
-
- return count;
- }
-}];
-
-
-(function(jasmineOrMocha) {
-
- if (!jasmineOrMocha) {
- return;
- }
-
- var currentSpec = null,
- injectorState = new InjectorState(),
- annotatedFunctions = [],
- wasInjectorCreated = function() {
- return !!currentSpec;
- };
-
- angular.mock.$$annotate = angular.injector.$$annotate;
- angular.injector.$$annotate = function(fn) {
- if (typeof fn === 'function' && !fn.$inject) {
- annotatedFunctions.push(fn);
- }
- return angular.mock.$$annotate.apply(this, arguments);
- };
-
- /**
- * @ngdoc function
- * @name angular.mock.module
- * @description
- *
- * *NOTE*: This function is also published on window for easy access.<br>
- * *NOTE*: This function is declared ONLY WHEN running tests with jasmine or mocha
- *
- * This function registers a module configuration code. It collects the configuration information
- * which will be used when the injector is created by {@link angular.mock.inject inject}.
- *
- * See {@link angular.mock.inject inject} for usage example
- *
- * @param {...(string|Function|Object)} fns any number of modules which are represented as string
- * aliases or as anonymous module initialization functions. The modules are used to
- * configure the injector. The 'ng' and 'ngMock' modules are automatically loaded. If an
- * object literal is passed each key-value pair will be registered on the module via
- * {@link auto.$provide $provide}.value, the key being the string name (or token) to associate
- * with the value on the injector.
- */
- var module = window.module = angular.mock.module = function() {
- var moduleFns = Array.prototype.slice.call(arguments, 0);
- return wasInjectorCreated() ? workFn() : workFn;
- /////////////////////
- function workFn() {
- if (currentSpec.$injector) {
- throw new Error('Injector already created, can not register a module!');
- } else {
- var fn, modules = currentSpec.$modules || (currentSpec.$modules = []);
- angular.forEach(moduleFns, function(module) {
- if (angular.isObject(module) && !angular.isArray(module)) {
- fn = ['$provide', function($provide) {
- angular.forEach(module, function(value, key) {
- $provide.value(key, value);
- });
- }];
- } else {
- fn = module;
- }
- if (currentSpec.$providerInjector) {
- currentSpec.$providerInjector.invoke(fn);
- } else {
- modules.push(fn);
- }
- });
- }
- }
- };
-
- module.$$beforeAllHook = (window.before || window.beforeAll);
- module.$$afterAllHook = (window.after || window.afterAll);
-
- // purely for testing ngMock itself
- module.$$currentSpec = function(to) {
- if (arguments.length === 0) return to;
- currentSpec = to;
- };
-
- /**
- * @ngdoc function
- * @name angular.mock.module.sharedInjector
- * @description
- *
- * *NOTE*: This function is declared ONLY WHEN running tests with jasmine or mocha
- *
- * This function ensures a single injector will be used for all tests in a given describe context.
- * This contrasts with the default behaviour where a new injector is created per test case.
- *
- * Use sharedInjector when you want to take advantage of Jasmine's `beforeAll()`, or mocha's
- * `before()` methods. Call `module.sharedInjector()` before you setup any other hooks that
- * will create (i.e call `module()`) or use (i.e call `inject()`) the injector.
- *
- * You cannot call `sharedInjector()` from within a context already using `sharedInjector()`.
- *
- * ## Example
- *
- * Typically beforeAll is used to make many assertions about a single operation. This can
- * cut down test run-time as the test setup doesn't need to be re-run, and enabling focussed
- * tests each with a single assertion.
- *
- * ```js
- * describe("Deep Thought", function() {
- *
- * module.sharedInjector();
- *
- * beforeAll(module("UltimateQuestion"));
- *
- * beforeAll(inject(function(DeepThought) {
- * expect(DeepThought.answer).toBeUndefined();
- * DeepThought.generateAnswer();
- * }));
- *
- * it("has calculated the answer correctly", inject(function(DeepThought) {
- * // Because of sharedInjector, we have access to the instance of the DeepThought service
- * // that was provided to the beforeAll() hook. Therefore we can test the generated answer
- * expect(DeepThought.answer).toBe(42);
- * }));
- *
- * it("has calculated the answer within the expected time", inject(function(DeepThought) {
- * expect(DeepThought.runTimeMillennia).toBeLessThan(8000);
- * }));
- *
- * it("has double checked the answer", inject(function(DeepThought) {
- * expect(DeepThought.absolutelySureItIsTheRightAnswer).toBe(true);
- * }));
- *
- * });
- *
- * ```
- */
- module.sharedInjector = function() {
- if (!(module.$$beforeAllHook && module.$$afterAllHook)) {
- throw Error('sharedInjector() cannot be used unless your test runner defines beforeAll/afterAll');
- }
-
- var initialized = false;
-
- module.$$beforeAllHook(/** @this */ function() {
- if (injectorState.shared) {
- injectorState.sharedError = Error('sharedInjector() cannot be called inside a context that has already called sharedInjector()');
- throw injectorState.sharedError;
- }
- initialized = true;
- currentSpec = this;
- injectorState.shared = true;
- });
-
- module.$$afterAllHook(function() {
- if (initialized) {
- injectorState = new InjectorState();
- module.$$cleanup();
- } else {
- injectorState.sharedError = null;
- }
- });
- };
-
- module.$$beforeEach = function() {
- if (injectorState.shared && currentSpec && currentSpec !== this) {
- var state = currentSpec;
- currentSpec = this;
- angular.forEach(['$injector','$modules','$providerInjector', '$injectorStrict'], function(k) {
- currentSpec[k] = state[k];
- state[k] = null;
- });
- } else {
- currentSpec = this;
- originalRootElement = null;
- annotatedFunctions = [];
- }
- };
-
- module.$$afterEach = function() {
- if (injectorState.cleanupAfterEach()) {
- module.$$cleanup();
- }
- };
-
- module.$$cleanup = function() {
- var injector = currentSpec.$injector;
-
- annotatedFunctions.forEach(function(fn) {
- delete fn.$inject;
- });
-
- angular.forEach(currentSpec.$modules, function(module) {
- if (module && module.$$hashKey) {
- module.$$hashKey = undefined;
- }
- });
-
- currentSpec.$injector = null;
- currentSpec.$modules = null;
- currentSpec.$providerInjector = null;
- currentSpec = null;
-
- if (injector) {
- // Ensure `$rootElement` is instantiated, before checking `originalRootElement`
- var $rootElement = injector.get('$rootElement');
- var rootNode = $rootElement && $rootElement[0];
- var cleanUpNodes = !originalRootElement ? [] : [originalRootElement[0]];
- if (rootNode && (!originalRootElement || rootNode !== originalRootElement[0])) {
- cleanUpNodes.push(rootNode);
- }
- angular.element.cleanData(cleanUpNodes);
-
- // Ensure `$destroy()` is available, before calling it
- // (a mocked `$rootScope` might not implement it (or not even be an object at all))
- var $rootScope = injector.get('$rootScope');
- if ($rootScope && $rootScope.$destroy) $rootScope.$destroy();
- }
-
- // clean up jquery's fragment cache
- angular.forEach(angular.element.fragments, function(val, key) {
- delete angular.element.fragments[key];
- });
-
- MockXhr.$$lastInstance = null;
-
- angular.forEach(angular.callbacks, function(val, key) {
- delete angular.callbacks[key];
- });
- angular.callbacks.$$counter = 0;
- };
-
- (window.beforeEach || window.setup)(module.$$beforeEach);
- (window.afterEach || window.teardown)(module.$$afterEach);
-
- /**
- * @ngdoc function
- * @name angular.mock.inject
- * @description
- *
- * *NOTE*: This function is also published on window for easy access.<br>
- * *NOTE*: This function is declared ONLY WHEN running tests with jasmine or mocha
- *
- * The inject function wraps a function into an injectable function. The inject() creates new
- * instance of {@link auto.$injector $injector} per test, which is then used for
- * resolving references.
- *
- *
- * ## Resolving References (Underscore Wrapping)
- * Often, we would like to inject a reference once, in a `beforeEach()` block and reuse this
- * in multiple `it()` clauses. To be able to do this we must assign the reference to a variable
- * that is declared in the scope of the `describe()` block. Since we would, most likely, want
- * the variable to have the same name of the reference we have a problem, since the parameter
- * to the `inject()` function would hide the outer variable.
- *
- * To help with this, the injected parameters can, optionally, be enclosed with underscores.
- * These are ignored by the injector when the reference name is resolved.
- *
- * For example, the parameter `_myService_` would be resolved as the reference `myService`.
- * Since it is available in the function body as `_myService_`, we can then assign it to a variable
- * defined in an outer scope.
- *
- * ```
- * // Defined out reference variable outside
- * var myService;
- *
- * // Wrap the parameter in underscores
- * beforeEach( inject( function(_myService_){
- * myService = _myService_;
- * }));
- *
- * // Use myService in a series of tests.
- * it('makes use of myService', function() {
- * myService.doStuff();
- * });
- *
- * ```
- *
- * See also {@link angular.mock.module angular.mock.module}
- *
- * ## Example
- * Example of what a typical jasmine tests looks like with the inject method.
- * ```js
- *
- * angular.module('myApplicationModule', [])
- * .value('mode', 'app')
- * .value('version', 'v1.0.1');
- *
- *
- * describe('MyApp', function() {
- *
- * // You need to load modules that you want to test,
- * // it loads only the "ng" module by default.
- * beforeEach(module('myApplicationModule'));
- *
- *
- * // inject() is used to inject arguments of all given functions
- * it('should provide a version', inject(function(mode, version) {
- * expect(version).toEqual('v1.0.1');
- * expect(mode).toEqual('app');
- * }));
- *
- *
- * // The inject and module method can also be used inside of the it or beforeEach
- * it('should override a version and test the new version is injected', function() {
- * // module() takes functions or strings (module aliases)
- * module(function($provide) {
- * $provide.value('version', 'overridden'); // override version here
- * });
- *
- * inject(function(version) {
- * expect(version).toEqual('overridden');
- * });
- * });
- * });
- *
- * ```
- *
- * @param {...Function} fns any number of functions which will be injected using the injector.
- */
-
-
-
- var ErrorAddingDeclarationLocationStack = function ErrorAddingDeclarationLocationStack(e, errorForStack) {
- this.message = e.message;
- this.name = e.name;
- if (e.line) this.line = e.line;
- if (e.sourceId) this.sourceId = e.sourceId;
- if (e.stack && errorForStack)
- this.stack = e.stack + '\n' + errorForStack.stack;
- if (e.stackArray) this.stackArray = e.stackArray;
- };
- ErrorAddingDeclarationLocationStack.prototype = Error.prototype;
-
- window.inject = angular.mock.inject = function() {
- var blockFns = Array.prototype.slice.call(arguments, 0);
- var errorForStack = new Error('Declaration Location');
- // IE10+ and PhanthomJS do not set stack trace information, until the error is thrown
- if (!errorForStack.stack) {
- try {
- throw errorForStack;
- } catch (e) { /* empty */ }
- }
- return wasInjectorCreated() ? WorkFn.call(currentSpec) : WorkFn;
- /////////////////////
- function WorkFn() {
- var modules = currentSpec.$modules || [];
- var strictDi = !!currentSpec.$injectorStrict;
- modules.unshift(['$injector', function($injector) {
- currentSpec.$providerInjector = $injector;
- }]);
- modules.unshift('ngMock');
- modules.unshift('ng');
- var injector = currentSpec.$injector;
- if (!injector) {
- if (strictDi) {
- // If strictDi is enabled, annotate the providerInjector blocks
- angular.forEach(modules, function(moduleFn) {
- if (typeof moduleFn === 'function') {
- angular.injector.$$annotate(moduleFn);
- }
- });
- }
- injector = currentSpec.$injector = angular.injector(modules, strictDi);
- currentSpec.$injectorStrict = strictDi;
- }
- for (var i = 0, ii = blockFns.length; i < ii; i++) {
- if (currentSpec.$injectorStrict) {
- // If the injector is strict / strictDi, and the spec wants to inject using automatic
- // annotation, then annotate the function here.
- injector.annotate(blockFns[i]);
- }
- try {
- injector.invoke(blockFns[i] || angular.noop, this);
- } catch (e) {
- if (e.stack && errorForStack) {
- throw new ErrorAddingDeclarationLocationStack(e, errorForStack);
- }
- throw e;
- } finally {
- errorForStack = null;
- }
- }
- }
- };
-
-
- angular.mock.inject.strictDi = function(value) {
- value = arguments.length ? !!value : true;
- return wasInjectorCreated() ? workFn() : workFn;
-
- function workFn() {
- if (value !== currentSpec.$injectorStrict) {
- if (currentSpec.$injector) {
- throw new Error('Injector already created, can not modify strict annotations');
- } else {
- currentSpec.$injectorStrict = value;
- }
- }
- }
- };
-
- function InjectorState() {
- this.shared = false;
- this.sharedError = null;
-
- this.cleanupAfterEach = function() {
- return !this.shared || this.sharedError;
- };
- }
-})(window.jasmine || window.mocha);
-
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/bower.json b/ecomp-portal-FE/client/bower_components/angular-mocks/bower.json
deleted file mode 100644
index 9c195726..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-mocks",
- "version": "1.5.11",
- "license": "MIT",
- "main": "./angular-mocks.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.11"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/ngAnimateMock.js b/ecomp-portal-FE/client/bower_components/angular-mocks/ngAnimateMock.js
deleted file mode 100644
index 6f99e62e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/ngAnimateMock.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-mocks');
-module.exports = 'ngAnimateMock';
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/ngMock.js b/ecomp-portal-FE/client/bower_components/angular-mocks/ngMock.js
deleted file mode 100644
index 7944de7d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/ngMock.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-mocks');
-module.exports = 'ngMock';
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/ngMockE2E.js b/ecomp-portal-FE/client/bower_components/angular-mocks/ngMockE2E.js
deleted file mode 100644
index fc2e539d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/ngMockE2E.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-mocks');
-module.exports = 'ngMockE2E';
diff --git a/ecomp-portal-FE/client/bower_components/angular-mocks/package.json b/ecomp-portal-FE/client/bower_components/angular-mocks/package.json
deleted file mode 100644
index 7fb4f428..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-mocks/package.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "angular-mocks",
- "version": "1.5.11",
- "description": "AngularJS mocks for testing",
- "main": "angular-mocks.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "mocks",
- "testing",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org",
- "jspm": {
- "shim": {
- "angular-mocks": {
- "deps": ["angular"]
- }
- }
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-resource/.bower.json b/ecomp-portal-FE/client/bower_components/angular-resource/.bower.json
deleted file mode 100644
index b609ef25..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-resource/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-resource",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-resource.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- },
- "homepage": "https://github.com/angular/bower-angular-resource",
- "_release": "1.5.0",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.0",
- "commit": "b228ac478f5a422dce74c4422c9e5f5328896a64"
- },
- "_source": "https://github.com/angular/bower-angular-resource.git",
- "_target": "1.5.0",
- "_originalSource": "angular-resource"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-resource/README.md b/ecomp-portal-FE/client/bower_components/angular-resource/README.md
deleted file mode 100644
index f3bd119c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-resource/README.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# packaged angular-resource
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngResource).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-resource
-```
-
-Then add `ngResource` as a dependency for your app:
-
-```javascript
-angular.module('myApp', [require('angular-resource')]);
-```
-
-### bower
-
-```shell
-bower install angular-resource
-```
-
-Add a `<script>` to your `index.html`:
-
-```html
-<script src="/bower_components/angular-resource/angular-resource.js"></script>
-```
-
-Then add `ngResource` as a dependency for your app:
-
-```javascript
-angular.module('myApp', ['ngResource']);
-```
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/api/ngResource).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.js b/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.js
deleted file mode 100644
index 444be83c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.js
+++ /dev/null
@@ -1,768 +0,0 @@
-/**
- * @license AngularJS v1.5.0
- * (c) 2010-2016 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular, undefined) {'use strict';
-
-var $resourceMinErr = angular.$$minErr('$resource');
-
-// Helper functions and regex to lookup a dotted path on an object
-// stopping at undefined/null. The path must be composed of ASCII
-// identifiers (just like $parse)
-var MEMBER_NAME_REGEX = /^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;
-
-function isValidDottedPath(path) {
- return (path != null && path !== '' && path !== 'hasOwnProperty' &&
- MEMBER_NAME_REGEX.test('.' + path));
-}
-
-function lookupDottedPath(obj, path) {
- if (!isValidDottedPath(path)) {
- throw $resourceMinErr('badmember', 'Dotted member path "@{0}" is invalid.', path);
- }
- var keys = path.split('.');
- for (var i = 0, ii = keys.length; i < ii && angular.isDefined(obj); i++) {
- var key = keys[i];
- obj = (obj !== null) ? obj[key] : undefined;
- }
- return obj;
-}
-
-/**
- * Create a shallow copy of an object and clear other fields from the destination
- */
-function shallowClearAndCopy(src, dst) {
- dst = dst || {};
-
- angular.forEach(dst, function(value, key) {
- delete dst[key];
- });
-
- for (var key in src) {
- if (src.hasOwnProperty(key) && !(key.charAt(0) === '$' && key.charAt(1) === '$')) {
- dst[key] = src[key];
- }
- }
-
- return dst;
-}
-
-/**
- * @ngdoc module
- * @name ngResource
- * @description
- *
- * # ngResource
- *
- * The `ngResource` module provides interaction support with RESTful services
- * via the $resource service.
- *
- *
- * <div doc-module-components="ngResource"></div>
- *
- * See {@link ngResource.$resource `$resource`} for usage.
- */
-
-/**
- * @ngdoc service
- * @name $resource
- * @requires $http
- * @requires ng.$log
- * @requires $q
- * @requires ng.$timeout
- *
- * @description
- * A factory which creates a resource object that lets you interact with
- * [RESTful](http://en.wikipedia.org/wiki/Representational_State_Transfer) server-side data sources.
- *
- * The returned resource object has action methods which provide high-level behaviors without
- * the need to interact with the low level {@link ng.$http $http} service.
- *
- * Requires the {@link ngResource `ngResource`} module to be installed.
- *
- * By default, trailing slashes will be stripped from the calculated URLs,
- * which can pose problems with server backends that do not expect that
- * behavior. This can be disabled by configuring the `$resourceProvider` like
- * this:
- *
- * ```js
- app.config(['$resourceProvider', function($resourceProvider) {
- // Don't strip trailing slashes from calculated URLs
- $resourceProvider.defaults.stripTrailingSlashes = false;
- }]);
- * ```
- *
- * @param {string} url A parameterized URL template with parameters prefixed by `:` as in
- * `/user/:username`. If you are using a URL with a port number (e.g.
- * `http://example.com:8080/api`), it will be respected.
- *
- * If you are using a url with a suffix, just add the suffix, like this:
- * `$resource('http://example.com/resource.json')` or `$resource('http://example.com/:id.json')`
- * or even `$resource('http://example.com/resource/:resource_id.:format')`
- * If the parameter before the suffix is empty, :resource_id in this case, then the `/.` will be
- * collapsed down to a single `.`. If you need this sequence to appear and not collapse then you
- * can escape it with `/\.`.
- *
- * @param {Object=} paramDefaults Default values for `url` parameters. These can be overridden in
- * `actions` methods. If a parameter value is a function, it will be executed every time
- * when a param value needs to be obtained for a request (unless the param was overridden).
- *
- * Each key value in the parameter object is first bound to url template if present and then any
- * excess keys are appended to the url search query after the `?`.
- *
- * Given a template `/path/:verb` and parameter `{verb:'greet', salutation:'Hello'}` results in
- * URL `/path/greet?salutation=Hello`.
- *
- * If the parameter value is prefixed with `@` then the value for that parameter will be extracted
- * from the corresponding property on the `data` object (provided when calling an action method).
- * For example, if the `defaultParam` object is `{someParam: '@someProp'}` then the value of
- * `someParam` will be `data.someProp`.
- *
- * @param {Object.<Object>=} actions Hash with declaration of custom actions that should extend
- * the default set of resource actions. The declaration should be created in the format of {@link
- * ng.$http#usage $http.config}:
- *
- * {action1: {method:?, params:?, isArray:?, headers:?, ...},
- * action2: {method:?, params:?, isArray:?, headers:?, ...},
- * ...}
- *
- * Where:
- *
- * - **`action`** – {string} – The name of action. This name becomes the name of the method on
- * your resource object.
- * - **`method`** – {string} – Case insensitive HTTP method (e.g. `GET`, `POST`, `PUT`,
- * `DELETE`, `JSONP`, etc).
- * - **`params`** – {Object=} – Optional set of pre-bound parameters for this action. If any of
- * the parameter value is a function, it will be executed every time when a param value needs to
- * be obtained for a request (unless the param was overridden).
- * - **`url`** – {string} – action specific `url` override. The url templating is supported just
- * like for the resource-level urls.
- * - **`isArray`** – {boolean=} – If true then the returned object for this action is an array,
- * see `returns` section.
- * - **`transformRequest`** –
- * `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
- * transform function or an array of such functions. The transform function takes the http
- * request body and headers and returns its transformed (typically serialized) version.
- * By default, transformRequest will contain one function that checks if the request data is
- * an object and serializes to using `angular.toJson`. To prevent this behavior, set
- * `transformRequest` to an empty array: `transformRequest: []`
- * - **`transformResponse`** –
- * `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
- * transform function or an array of such functions. The transform function takes the http
- * response body and headers and returns its transformed (typically deserialized) version.
- * By default, transformResponse will contain one function that checks if the response looks
- * like a JSON string and deserializes it using `angular.fromJson`. To prevent this behavior,
- * set `transformResponse` to an empty array: `transformResponse: []`
- * - **`cache`** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the
- * GET request, otherwise if a cache instance built with
- * {@link ng.$cacheFactory $cacheFactory}, this cache will be used for
- * caching.
- * - **`timeout`** – `{number}` – timeout in milliseconds.<br />
- * **Note:** In contrast to {@link ng.$http#usage $http.config}, {@link ng.$q promises} are
- * **not** supported in $resource, because the same value would be used for multiple requests.
- * If you are looking for a way to cancel requests, you should use the `cancellable` option.
- * - **`cancellable`** – `{boolean}` – if set to true, the request made by a "non-instance" call
- * will be cancelled (if not already completed) by calling `$cancelRequest()` on the call's
- * return value. Calling `$cancelRequest()` for a non-cancellable or an already
- * completed/cancelled request will have no effect.<br />
- * - **`withCredentials`** - `{boolean}` - whether to set the `withCredentials` flag on the
- * XHR object. See
- * [requests with credentials](https://developer.mozilla.org/en/http_access_control#section_5)
- * for more information.
- * - **`responseType`** - `{string}` - see
- * [requestType](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType).
- * - **`interceptor`** - `{Object=}` - The interceptor object has two optional methods -
- * `response` and `responseError`. Both `response` and `responseError` interceptors get called
- * with `http response` object. See {@link ng.$http $http interceptors}.
- *
- * @param {Object} options Hash with custom settings that should extend the
- * default `$resourceProvider` behavior. The supported options are:
- *
- * - **`stripTrailingSlashes`** – {boolean} – If true then the trailing
- * slashes from any calculated URL will be stripped. (Defaults to true.)
- * - **`cancellable`** – {boolean} – If true, the request made by a "non-instance" call will be
- * cancelled (if not already completed) by calling `$cancelRequest()` on the call's return value.
- * This can be overwritten per action. (Defaults to false.)
- *
- * @returns {Object} A resource "class" object with methods for the default set of resource actions
- * optionally extended with custom `actions`. The default set contains these actions:
- * ```js
- * { 'get': {method:'GET'},
- * 'save': {method:'POST'},
- * 'query': {method:'GET', isArray:true},
- * 'remove': {method:'DELETE'},
- * 'delete': {method:'DELETE'} };
- * ```
- *
- * Calling these methods invoke an {@link ng.$http} with the specified http method,
- * destination and parameters. When the data is returned from the server then the object is an
- * instance of the resource class. The actions `save`, `remove` and `delete` are available on it
- * as methods with the `$` prefix. This allows you to easily perform CRUD operations (create,
- * read, update, delete) on server-side data like this:
- * ```js
- * var User = $resource('/user/:userId', {userId:'@id'});
- * var user = User.get({userId:123}, function() {
- * user.abc = true;
- * user.$save();
- * });
- * ```
- *
- * It is important to realize that invoking a $resource object method immediately returns an
- * empty reference (object or array depending on `isArray`). Once the data is returned from the
- * server the existing reference is populated with the actual data. This is a useful trick since
- * usually the resource is assigned to a model which is then rendered by the view. Having an empty
- * object results in no rendering, once the data arrives from the server then the object is
- * populated with the data and the view automatically re-renders itself showing the new data. This
- * means that in most cases one never has to write a callback function for the action methods.
- *
- * The action methods on the class object or instance object can be invoked with the following
- * parameters:
- *
- * - HTTP GET "class" actions: `Resource.action([parameters], [success], [error])`
- * - non-GET "class" actions: `Resource.action([parameters], postData, [success], [error])`
- * - non-GET instance actions: `instance.$action([parameters], [success], [error])`
- *
- *
- * Success callback is called with (value, responseHeaders) arguments, where the value is
- * the populated resource instance or collection object. The error callback is called
- * with (httpResponse) argument.
- *
- * Class actions return empty instance (with additional properties below).
- * Instance actions return promise of the action.
- *
- * The Resource instances and collections have these additional properties:
- *
- * - `$promise`: the {@link ng.$q promise} of the original server interaction that created this
- * instance or collection.
- *
- * On success, the promise is resolved with the same resource instance or collection object,
- * updated with data from server. This makes it easy to use in
- * {@link ngRoute.$routeProvider resolve section of $routeProvider.when()} to defer view
- * rendering until the resource(s) are loaded.
- *
- * On failure, the promise is rejected with the {@link ng.$http http response} object, without
- * the `resource` property.
- *
- * If an interceptor object was provided, the promise will instead be resolved with the value
- * returned by the interceptor.
- *
- * - `$resolved`: `true` after first server interaction is completed (either with success or
- * rejection), `false` before that. Knowing if the Resource has been resolved is useful in
- * data-binding.
- *
- * The Resource instances and collections have these additional methods:
- *
- * - `$cancelRequest`: If there is a cancellable, pending request related to the instance or
- * collection, calling this method will abort the request.
- *
- * @example
- *
- * # Credit card resource
- *
- * ```js
- // Define CreditCard class
- var CreditCard = $resource('/user/:userId/card/:cardId',
- {userId:123, cardId:'@id'}, {
- charge: {method:'POST', params:{charge:true}}
- });
-
- // We can retrieve a collection from the server
- var cards = CreditCard.query(function() {
- // GET: /user/123/card
- // server returns: [ {id:456, number:'1234', name:'Smith'} ];
-
- var card = cards[0];
- // each item is an instance of CreditCard
- expect(card instanceof CreditCard).toEqual(true);
- card.name = "J. Smith";
- // non GET methods are mapped onto the instances
- card.$save();
- // POST: /user/123/card/456 {id:456, number:'1234', name:'J. Smith'}
- // server returns: {id:456, number:'1234', name: 'J. Smith'};
-
- // our custom method is mapped as well.
- card.$charge({amount:9.99});
- // POST: /user/123/card/456?amount=9.99&charge=true {id:456, number:'1234', name:'J. Smith'}
- });
-
- // we can create an instance as well
- var newCard = new CreditCard({number:'0123'});
- newCard.name = "Mike Smith";
- newCard.$save();
- // POST: /user/123/card {number:'0123', name:'Mike Smith'}
- // server returns: {id:789, number:'0123', name: 'Mike Smith'};
- expect(newCard.id).toEqual(789);
- * ```
- *
- * The object returned from this function execution is a resource "class" which has "static" method
- * for each action in the definition.
- *
- * Calling these methods invoke `$http` on the `url` template with the given `method`, `params` and
- * `headers`.
- *
- * @example
- *
- * # User resource
- *
- * When the data is returned from the server then the object is an instance of the resource type and
- * all of the non-GET methods are available with `$` prefix. This allows you to easily support CRUD
- * operations (create, read, update, delete) on server-side data.
-
- ```js
- var User = $resource('/user/:userId', {userId:'@id'});
- User.get({userId:123}, function(user) {
- user.abc = true;
- user.$save();
- });
- ```
- *
- * It's worth noting that the success callback for `get`, `query` and other methods gets passed
- * in the response that came from the server as well as $http header getter function, so one
- * could rewrite the above example and get access to http headers as:
- *
- ```js
- var User = $resource('/user/:userId', {userId:'@id'});
- User.get({userId:123}, function(user, getResponseHeaders){
- user.abc = true;
- user.$save(function(user, putResponseHeaders) {
- //user => saved user object
- //putResponseHeaders => $http header getter
- });
- });
- ```
- *
- * You can also access the raw `$http` promise via the `$promise` property on the object returned
- *
- ```
- var User = $resource('/user/:userId', {userId:'@id'});
- User.get({userId:123})
- .$promise.then(function(user) {
- $scope.user = user;
- });
- ```
- *
- * @example
- *
- * # Creating a custom 'PUT' request
- *
- * In this example we create a custom method on our resource to make a PUT request
- * ```js
- * var app = angular.module('app', ['ngResource', 'ngRoute']);
- *
- * // Some APIs expect a PUT request in the format URL/object/ID
- * // Here we are creating an 'update' method
- * app.factory('Notes', ['$resource', function($resource) {
- * return $resource('/notes/:id', null,
- * {
- * 'update': { method:'PUT' }
- * });
- * }]);
- *
- * // In our controller we get the ID from the URL using ngRoute and $routeParams
- * // We pass in $routeParams and our Notes factory along with $scope
- * app.controller('NotesCtrl', ['$scope', '$routeParams', 'Notes',
- function($scope, $routeParams, Notes) {
- * // First get a note object from the factory
- * var note = Notes.get({ id:$routeParams.id });
- * $id = note.id;
- *
- * // Now call update passing in the ID first then the object you are updating
- * Notes.update({ id:$id }, note);
- *
- * // This will PUT /notes/ID with the note object in the request payload
- * }]);
- * ```
- *
- * @example
- *
- * # Cancelling requests
- *
- * If an action's configuration specifies that it is cancellable, you can cancel the request related
- * to an instance or collection (as long as it is a result of a "non-instance" call):
- *
- ```js
- // ...defining the `Hotel` resource...
- var Hotel = $resource('/api/hotel/:id', {id: '@id'}, {
- // Let's make the `query()` method cancellable
- query: {method: 'get', isArray: true, cancellable: true}
- });
-
- // ...somewhere in the PlanVacationController...
- ...
- this.onDestinationChanged = function onDestinationChanged(destination) {
- // We don't care about any pending request for hotels
- // in a different destination any more
- this.availableHotels.$cancelRequest();
-
- // Let's query for hotels in '<destination>'
- // (calls: /api/hotel?location=<destination>)
- this.availableHotels = Hotel.query({location: destination});
- };
- ```
- *
- */
-angular.module('ngResource', ['ng']).
- provider('$resource', function() {
- var PROTOCOL_AND_DOMAIN_REGEX = /^https?:\/\/[^\/]*/;
- var provider = this;
-
- this.defaults = {
- // Strip slashes by default
- stripTrailingSlashes: true,
-
- // Default actions configuration
- actions: {
- 'get': {method: 'GET'},
- 'save': {method: 'POST'},
- 'query': {method: 'GET', isArray: true},
- 'remove': {method: 'DELETE'},
- 'delete': {method: 'DELETE'}
- }
- };
-
- this.$get = ['$http', '$log', '$q', '$timeout', function($http, $log, $q, $timeout) {
-
- var noop = angular.noop,
- forEach = angular.forEach,
- extend = angular.extend,
- copy = angular.copy,
- isFunction = angular.isFunction;
-
- /**
- * We need our custom method because encodeURIComponent is too aggressive and doesn't follow
- * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set
- * (pchar) allowed in path segments:
- * segment = *pchar
- * pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
- * pct-encoded = "%" HEXDIG HEXDIG
- * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
- * sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
- * / "*" / "+" / "," / ";" / "="
- */
- function encodeUriSegment(val) {
- return encodeUriQuery(val, true).
- replace(/%26/gi, '&').
- replace(/%3D/gi, '=').
- replace(/%2B/gi, '+');
- }
-
-
- /**
- * This method is intended for encoding *key* or *value* parts of query component. We need a
- * custom method because encodeURIComponent is too aggressive and encodes stuff that doesn't
- * have to be encoded per http://tools.ietf.org/html/rfc3986:
- * query = *( pchar / "/" / "?" )
- * pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
- * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
- * pct-encoded = "%" HEXDIG HEXDIG
- * sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
- * / "*" / "+" / "," / ";" / "="
- */
- function encodeUriQuery(val, pctEncodeSpaces) {
- return encodeURIComponent(val).
- replace(/%40/gi, '@').
- replace(/%3A/gi, ':').
- replace(/%24/g, '$').
- replace(/%2C/gi, ',').
- replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));
- }
-
- function Route(template, defaults) {
- this.template = template;
- this.defaults = extend({}, provider.defaults, defaults);
- this.urlParams = {};
- }
-
- Route.prototype = {
- setUrlParams: function(config, params, actionUrl) {
- var self = this,
- url = actionUrl || self.template,
- val,
- encodedVal,
- protocolAndDomain = '';
-
- var urlParams = self.urlParams = {};
- forEach(url.split(/\W/), function(param) {
- if (param === 'hasOwnProperty') {
- throw $resourceMinErr('badname', "hasOwnProperty is not a valid parameter name.");
- }
- if (!(new RegExp("^\\d+$").test(param)) && param &&
- (new RegExp("(^|[^\\\\]):" + param + "(\\W|$)").test(url))) {
- urlParams[param] = {
- isQueryParamValue: (new RegExp("\\?.*=:" + param + "(?:\\W|$)")).test(url)
- };
- }
- });
- url = url.replace(/\\:/g, ':');
- url = url.replace(PROTOCOL_AND_DOMAIN_REGEX, function(match) {
- protocolAndDomain = match;
- return '';
- });
-
- params = params || {};
- forEach(self.urlParams, function(paramInfo, urlParam) {
- val = params.hasOwnProperty(urlParam) ? params[urlParam] : self.defaults[urlParam];
- if (angular.isDefined(val) && val !== null) {
- if (paramInfo.isQueryParamValue) {
- encodedVal = encodeUriQuery(val, true);
- } else {
- encodedVal = encodeUriSegment(val);
- }
- url = url.replace(new RegExp(":" + urlParam + "(\\W|$)", "g"), function(match, p1) {
- return encodedVal + p1;
- });
- } else {
- url = url.replace(new RegExp("(\/?):" + urlParam + "(\\W|$)", "g"), function(match,
- leadingSlashes, tail) {
- if (tail.charAt(0) == '/') {
- return tail;
- } else {
- return leadingSlashes + tail;
- }
- });
- }
- });
-
- // strip trailing slashes and set the url (unless this behavior is specifically disabled)
- if (self.defaults.stripTrailingSlashes) {
- url = url.replace(/\/+$/, '') || '/';
- }
-
- // then replace collapse `/.` if found in the last URL path segment before the query
- // E.g. `http://url.com/id./format?q=x` becomes `http://url.com/id.format?q=x`
- url = url.replace(/\/\.(?=\w+($|\?))/, '.');
- // replace escaped `/\.` with `/.`
- config.url = protocolAndDomain + url.replace(/\/\\\./, '/.');
-
-
- // set params - delegate param encoding to $http
- forEach(params, function(value, key) {
- if (!self.urlParams[key]) {
- config.params = config.params || {};
- config.params[key] = value;
- }
- });
- }
- };
-
-
- function resourceFactory(url, paramDefaults, actions, options) {
- var route = new Route(url, options);
-
- actions = extend({}, provider.defaults.actions, actions);
-
- function extractParams(data, actionParams) {
- var ids = {};
- actionParams = extend({}, paramDefaults, actionParams);
- forEach(actionParams, function(value, key) {
- if (isFunction(value)) { value = value(); }
- ids[key] = value && value.charAt && value.charAt(0) == '@' ?
- lookupDottedPath(data, value.substr(1)) : value;
- });
- return ids;
- }
-
- function defaultResponseInterceptor(response) {
- return response.resource;
- }
-
- function Resource(value) {
- shallowClearAndCopy(value || {}, this);
- }
-
- Resource.prototype.toJSON = function() {
- var data = extend({}, this);
- delete data.$promise;
- delete data.$resolved;
- return data;
- };
-
- forEach(actions, function(action, name) {
- var hasBody = /^(POST|PUT|PATCH)$/i.test(action.method);
- var numericTimeout = action.timeout;
- var cancellable = angular.isDefined(action.cancellable) ? action.cancellable :
- (options && angular.isDefined(options.cancellable)) ? options.cancellable :
- provider.defaults.cancellable;
-
- if (numericTimeout && !angular.isNumber(numericTimeout)) {
- $log.debug('ngResource:\n' +
- ' Only numeric values are allowed as `timeout`.\n' +
- ' Promises are not supported in $resource, because the same value would ' +
- 'be used for multiple requests. If you are looking for a way to cancel ' +
- 'requests, you should use the `cancellable` option.');
- delete action.timeout;
- numericTimeout = null;
- }
-
- Resource[name] = function(a1, a2, a3, a4) {
- var params = {}, data, success, error;
-
- /* jshint -W086 */ /* (purposefully fall through case statements) */
- switch (arguments.length) {
- case 4:
- error = a4;
- success = a3;
- //fallthrough
- case 3:
- case 2:
- if (isFunction(a2)) {
- if (isFunction(a1)) {
- success = a1;
- error = a2;
- break;
- }
-
- success = a2;
- error = a3;
- //fallthrough
- } else {
- params = a1;
- data = a2;
- success = a3;
- break;
- }
- case 1:
- if (isFunction(a1)) success = a1;
- else if (hasBody) data = a1;
- else params = a1;
- break;
- case 0: break;
- default:
- throw $resourceMinErr('badargs',
- "Expected up to 4 arguments [params, data, success, error], got {0} arguments",
- arguments.length);
- }
- /* jshint +W086 */ /* (purposefully fall through case statements) */
-
- var isInstanceCall = this instanceof Resource;
- var value = isInstanceCall ? data : (action.isArray ? [] : new Resource(data));
- var httpConfig = {};
- var responseInterceptor = action.interceptor && action.interceptor.response ||
- defaultResponseInterceptor;
- var responseErrorInterceptor = action.interceptor && action.interceptor.responseError ||
- undefined;
- var timeoutDeferred;
- var numericTimeoutPromise;
-
- forEach(action, function(value, key) {
- switch (key) {
- default:
- httpConfig[key] = copy(value);
- break;
- case 'params':
- case 'isArray':
- case 'interceptor':
- case 'cancellable':
- break;
- }
- });
-
- if (!isInstanceCall && cancellable) {
- timeoutDeferred = $q.defer();
- httpConfig.timeout = timeoutDeferred.promise;
-
- if (numericTimeout) {
- numericTimeoutPromise = $timeout(timeoutDeferred.resolve, numericTimeout);
- }
- }
-
- if (hasBody) httpConfig.data = data;
- route.setUrlParams(httpConfig,
- extend({}, extractParams(data, action.params || {}), params),
- action.url);
-
- var promise = $http(httpConfig).then(function(response) {
- var data = response.data;
-
- if (data) {
- // Need to convert action.isArray to boolean in case it is undefined
- // jshint -W018
- if (angular.isArray(data) !== (!!action.isArray)) {
- throw $resourceMinErr('badcfg',
- 'Error in resource configuration for action `{0}`. Expected response to ' +
- 'contain an {1} but got an {2} (Request: {3} {4})', name, action.isArray ? 'array' : 'object',
- angular.isArray(data) ? 'array' : 'object', httpConfig.method, httpConfig.url);
- }
- // jshint +W018
- if (action.isArray) {
- value.length = 0;
- forEach(data, function(item) {
- if (typeof item === "object") {
- value.push(new Resource(item));
- } else {
- // Valid JSON values may be string literals, and these should not be converted
- // into objects. These items will not have access to the Resource prototype
- // methods, but unfortunately there
- value.push(item);
- }
- });
- } else {
- var promise = value.$promise; // Save the promise
- shallowClearAndCopy(data, value);
- value.$promise = promise; // Restore the promise
- }
- }
- response.resource = value;
-
- return response;
- }, function(response) {
- (error || noop)(response);
- return $q.reject(response);
- });
-
- promise.finally(function() {
- value.$resolved = true;
- if (!isInstanceCall && cancellable) {
- value.$cancelRequest = angular.noop;
- $timeout.cancel(numericTimeoutPromise);
- timeoutDeferred = numericTimeoutPromise = httpConfig.timeout = null;
- }
- });
-
- promise = promise.then(
- function(response) {
- var value = responseInterceptor(response);
- (success || noop)(value, response.headers);
- return value;
- },
- responseErrorInterceptor);
-
- if (!isInstanceCall) {
- // we are creating instance / collection
- // - set the initial promise
- // - return the instance / collection
- value.$promise = promise;
- value.$resolved = false;
- if (cancellable) value.$cancelRequest = timeoutDeferred.resolve;
-
- return value;
- }
-
- // instance call
- return promise;
- };
-
-
- Resource.prototype['$' + name] = function(params, success, error) {
- if (isFunction(params)) {
- error = success; success = params; params = {};
- }
- var result = Resource[name].call(this, params, this, success, error);
- return result.$promise || result;
- };
- });
-
- Resource.bind = function(additionalParamDefaults) {
- return resourceFactory(url, extend({}, paramDefaults, additionalParamDefaults), actions);
- };
-
- return Resource;
- }
-
- return resourceFactory;
- }];
- });
-
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.min.js b/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.min.js
deleted file mode 100644
index 306657dc..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.min.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- AngularJS v1.5.0
- (c) 2010-2016 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(Q,d,G){'use strict';function H(t,g){g=g||{};d.forEach(g,function(d,q){delete g[q]});for(var q in t)!t.hasOwnProperty(q)||"$"===q.charAt(0)&&"$"===q.charAt(1)||(g[q]=t[q]);return g}var z=d.$$minErr("$resource"),N=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;d.module("ngResource",["ng"]).provider("$resource",function(){var t=/^https?:\/\/[^\/]*/,g=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}};
-this.$get=["$http","$log","$q","$timeout",function(q,M,I,J){function A(d,h){return encodeURIComponent(d).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,h?"%20":"+")}function B(d,h){this.template=d;this.defaults=v({},g.defaults,h);this.urlParams={}}function K(e,h,n,k){function c(a,b){var c={};b=v({},h,b);u(b,function(b,h){x(b)&&(b=b());var f;if(b&&b.charAt&&"@"==b.charAt(0)){f=a;var l=b.substr(1);if(null==l||""===l||"hasOwnProperty"===l||!N.test("."+
-l))throw z("badmember",l);for(var l=l.split("."),m=0,k=l.length;m<k&&d.isDefined(f);m++){var r=l[m];f=null!==f?f[r]:G}}else f=b;c[h]=f});return c}function O(a){return a.resource}function m(a){H(a||{},this)}var t=new B(e,k);n=v({},g.defaults.actions,n);m.prototype.toJSON=function(){var a=v({},this);delete a.$promise;delete a.$resolved;return a};u(n,function(a,b){var h=/^(POST|PUT|PATCH)$/i.test(a.method),e=a.timeout,E=d.isDefined(a.cancellable)?a.cancellable:k&&d.isDefined(k.cancellable)?k.cancellable:
-g.defaults.cancellable;e&&!d.isNumber(e)&&(M.debug("ngResource:\n Only numeric values are allowed as `timeout`.\n Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete a.timeout,e=null);m[b]=function(f,l,k,g){var r={},n,w,C;switch(arguments.length){case 4:C=g,w=k;case 3:case 2:if(x(l)){if(x(f)){w=f;C=l;break}w=l;C=k}else{r=f;n=l;w=k;break}case 1:x(f)?
-w=f:h?n=f:r=f;break;case 0:break;default:throw z("badargs",arguments.length);}var D=this instanceof m,p=D?n:a.isArray?[]:new m(n),s={},A=a.interceptor&&a.interceptor.response||O,B=a.interceptor&&a.interceptor.responseError||G,y,F;u(a,function(a,b){switch(b){default:s[b]=P(a);case "params":case "isArray":case "interceptor":case "cancellable":}});!D&&E&&(y=I.defer(),s.timeout=y.promise,e&&(F=J(y.resolve,e)));h&&(s.data=n);t.setUrlParams(s,v({},c(n,a.params||{}),r),a.url);r=q(s).then(function(f){var c=
-f.data;if(c){if(d.isArray(c)!==!!a.isArray)throw z("badcfg",b,a.isArray?"array":"object",d.isArray(c)?"array":"object",s.method,s.url);if(a.isArray)p.length=0,u(c,function(b){"object"===typeof b?p.push(new m(b)):p.push(b)});else{var l=p.$promise;H(c,p);p.$promise=l}}f.resource=p;return f},function(b){(C||L)(b);return I.reject(b)});r.finally(function(){p.$resolved=!0;!D&&E&&(p.$cancelRequest=d.noop,J.cancel(F),y=F=s.timeout=null)});r=r.then(function(b){var a=A(b);(w||L)(a,b.headers);return a},B);return D?
-r:(p.$promise=r,p.$resolved=!1,E&&(p.$cancelRequest=y.resolve),p)};m.prototype["$"+b]=function(a,c,d){x(a)&&(d=c,c=a,a={});a=m[b].call(this,a,this,c,d);return a.$promise||a}});m.bind=function(a){return K(e,v({},h,a),n)};return m}var L=d.noop,u=d.forEach,v=d.extend,P=d.copy,x=d.isFunction;B.prototype={setUrlParams:function(e,h,n){var k=this,c=n||k.template,g,m,q="",a=k.urlParams={};u(c.split(/\W/),function(b){if("hasOwnProperty"===b)throw z("badname");!/^\d+$/.test(b)&&b&&(new RegExp("(^|[^\\\\]):"+
-b+"(\\W|$)")).test(c)&&(a[b]={isQueryParamValue:(new RegExp("\\?.*=:"+b+"(?:\\W|$)")).test(c)})});c=c.replace(/\\:/g,":");c=c.replace(t,function(a){q=a;return""});h=h||{};u(k.urlParams,function(a,e){g=h.hasOwnProperty(e)?h[e]:k.defaults[e];d.isDefined(g)&&null!==g?(m=a.isQueryParamValue?A(g,!0):A(g,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+"),c=c.replace(new RegExp(":"+e+"(\\W|$)","g"),function(a,b){return m+b})):c=c.replace(new RegExp("(/?):"+e+"(\\W|$)","g"),function(a,b,c){return"/"==
-c.charAt(0)?c:b+c})});k.defaults.stripTrailingSlashes&&(c=c.replace(/\/+$/,"")||"/");c=c.replace(/\/\.(?=\w+($|\?))/,".");e.url=q+c.replace(/\/\\\./,"/.");u(h,function(a,c){k.urlParams[c]||(e.params=e.params||{},e.params[c]=a)})}};return K}]})})(window,window.angular);
-//# sourceMappingURL=angular-resource.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.min.js.map b/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.min.js.map
deleted file mode 100644
index 5174e18b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-resource/angular-resource.min.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-"version":3,
-"file":"angular-resource.min.js",
-"lineCount":14,
-"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA6BtCC,QAASA,EAAmB,CAACC,CAAD,CAAMC,CAAN,CAAW,CACrCA,CAAA,CAAMA,CAAN,EAAa,EAEbJ,EAAAK,QAAA,CAAgBD,CAAhB,CAAqB,QAAQ,CAACE,CAAD,CAAQC,CAAR,CAAa,CACxC,OAAOH,CAAA,CAAIG,CAAJ,CADiC,CAA1C,CAIA,KAASA,IAAAA,CAAT,GAAgBJ,EAAhB,CACM,CAAAA,CAAAK,eAAA,CAAmBD,CAAnB,CAAJ,EAAmD,GAAnD,GAAiCA,CAAAE,OAAA,CAAW,CAAX,CAAjC,EAA4E,GAA5E,GAA0DF,CAAAE,OAAA,CAAW,CAAX,CAA1D,GACEL,CAAA,CAAIG,CAAJ,CADF,CACaJ,CAAA,CAAII,CAAJ,CADb,CAKF,OAAOH,EAb8B,CA3BvC,IAAIM,EAAkBV,CAAAW,SAAA,CAAiB,WAAjB,CAAtB,CAKIC,EAAoB,mCAwYxBZ,EAAAa,OAAA,CAAe,YAAf,CAA6B,CAAC,IAAD,CAA7B,CAAAC,SAAA,CACW,WADX,CACwB,QAAQ,EAAG,CAC/B,IAAIC,EAA4B,oBAAhC,CACID,EAAW,IAEf,KAAAE,SAAA,CAAgB,CAEdC,qBAAsB,CAAA,CAFR,CAKdC,QAAS,CACP,IAAO,CAACC,OAAQ,KAAT,CADA,CAEP,KAAQ,CAACA,OAAQ,MAAT,CAFD,CAGP,MAAS,CAACA,OAAQ,KAAT,CAAgBC,QAAS,CAAA,CAAzB,CAHF,CAIP,OAAU,CAACD,OAAQ,QAAT,CAJH,CAKP,SAAU,CAACA,OAAQ,QAAT,CALH,CALK,CAchB;IAAAE,KAAA,CAAY,CAAC,OAAD,CAAU,MAAV,CAAkB,IAAlB,CAAwB,UAAxB,CAAoC,QAAQ,CAACC,CAAD,CAAQC,CAAR,CAAcC,CAAd,CAAkBC,CAAlB,CAA4B,CAsClFC,QAASA,EAAc,CAACC,CAAD,CAAMC,CAAN,CAAuB,CAC5C,MAAOC,mBAAA,CAAmBF,CAAnB,CAAAG,QAAA,CACG,OADH,CACY,GADZ,CAAAA,QAAA,CAEG,OAFH,CAEY,GAFZ,CAAAA,QAAA,CAGG,MAHH,CAGW,GAHX,CAAAA,QAAA,CAIG,OAJH,CAIY,GAJZ,CAAAA,QAAA,CAKG,MALH,CAKYF,CAAA,CAAkB,KAAlB,CAA0B,GALtC,CADqC,CAS9CG,QAASA,EAAK,CAACC,CAAD,CAAWhB,CAAX,CAAqB,CACjC,IAAAgB,SAAA,CAAgBA,CAChB,KAAAhB,SAAA,CAAgBiB,CAAA,CAAO,EAAP,CAAWnB,CAAAE,SAAX,CAA8BA,CAA9B,CAChB,KAAAkB,UAAA,CAAiB,EAHgB,CA+EnCC,QAASA,EAAe,CAACC,CAAD,CAAMC,CAAN,CAAqBnB,CAArB,CAA8BoB,CAA9B,CAAuC,CAK7DC,QAASA,EAAa,CAACC,CAAD,CAAOC,CAAP,CAAqB,CACzC,IAAIC,EAAM,EACVD,EAAA,CAAeR,CAAA,CAAO,EAAP,CAAWI,CAAX,CAA0BI,CAA1B,CACfpC,EAAA,CAAQoC,CAAR,CAAsB,QAAQ,CAACnC,CAAD,CAAQC,CAAR,CAAa,CACrCoC,CAAA,CAAWrC,CAAX,CAAJ,GAAyBA,CAAzB,CAAiCA,CAAA,EAAjC,CACW,KAAA,CAAA,IAAAA,CAAA,EAASA,CAAAG,OAAT,EAA4C,GAA5C,EAAyBH,CAAAG,OAAA,CAAa,CAAb,CAAzB,CAAA,CACT,CAAA,CAAA,CAAA,KAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CA5hBZ,IALgB,IAKhB,EAAuBmC,CAAvB,EALiC,EAKjC,GAAuBA,CAAvB,EALgD,gBAKhD,GAAuBA,CAAvB,EAJI,CAAAhC,CAAAiC,KAAA,CAAuB,GAAvB;AAImBD,CAJnB,CAIJ,CACE,KAAMlC,EAAA,CAAgB,WAAhB,CAAsEkC,CAAtE,CAAN,CAGF,IADIE,IAAAA,EAAOF,CAAAG,MAAA,CAAW,GAAX,CAAPD,CACKE,EAAI,CADTF,CACYG,EAAKH,CAAAI,OAArB,CAAkCF,CAAlC,CAAsCC,CAAtC,EAA4CjD,CAAAmD,UAAA,CAAkBC,CAAlB,CAA5C,CAAoEJ,CAAA,EAApE,CAAyE,CACvE,IAAIzC,EAAMuC,CAAA,CAAKE,CAAL,CACVI,EAAA,CAAe,IAAT,GAACA,CAAD,CAAiBA,CAAA,CAAI7C,CAAJ,CAAjB,CAA4BN,CAFqC,CAuhBpD,CAAA,IACiCK,EAAAA,CAAAA,CAD5CoC,EAAA,CAAInC,CAAJ,CAAA,CAAW,CAF8B,CAA3C,CAKA,OAAOmC,EARkC,CAW3CW,QAASA,EAA0B,CAACC,CAAD,CAAW,CAC5C,MAAOA,EAAAC,SADqC,CAI9CC,QAASA,EAAQ,CAAClD,CAAD,CAAQ,CACvBJ,CAAA,CAAoBI,CAApB,EAA6B,EAA7B,CAAiC,IAAjC,CADuB,CAnBzB,IAAImD,EAAQ,IAAI1B,CAAJ,CAAUK,CAAV,CAAeE,CAAf,CAEZpB,EAAA,CAAUe,CAAA,CAAO,EAAP,CAAWnB,CAAAE,SAAAE,QAAX,CAAsCA,CAAtC,CAqBVsC,EAAAE,UAAAC,OAAA,CAA4BC,QAAQ,EAAG,CACrC,IAAIpB,EAAOP,CAAA,CAAO,EAAP,CAAW,IAAX,CACX,QAAOO,CAAAqB,SACP,QAAOrB,CAAAsB,UACP,OAAOtB,EAJ8B,CAOvCnC,EAAA,CAAQa,CAAR,CAAiB,QAAQ,CAAC6C,CAAD,CAASC,CAAT,CAAe,CACtC,IAAIC,EAAU,qBAAApB,KAAA,CAA2BkB,CAAA5C,OAA3B,CAAd,CACI+C,EAAiBH,CAAAI,QADrB,CAEIC,EAAcpE,CAAAmD,UAAA,CAAkBY,CAAAK,YAAlB,CAAA,CAAwCL,CAAAK,YAAxC,CACb9B,CAAD,EAAYtC,CAAAmD,UAAA,CAAkBb,CAAA8B,YAAlB,CAAZ,CAAsD9B,CAAA8B,YAAtD;AACAtD,CAAAE,SAAAoD,YAEAF,EAAJ,EAAuB,CAAAlE,CAAAqE,SAAA,CAAiBH,CAAjB,CAAvB,GACE3C,CAAA+C,MAAA,CAAW,gQAAX,CAMA,CADA,OAAOP,CAAAI,QACP,CAAAD,CAAA,CAAiB,IAPnB,CAUAV,EAAA,CAASQ,CAAT,CAAA,CAAiB,QAAQ,CAACO,CAAD,CAAKC,CAAL,CAASC,CAAT,CAAaC,CAAb,CAAiB,CAAA,IACpCC,EAAS,EAD2B,CACvBnC,CADuB,CACjBoC,CADiB,CACRC,CAGhC,QAAQC,SAAA5B,OAAR,EACE,KAAK,CAAL,CACE2B,CACA,CADQH,CACR,CAAAE,CAAA,CAAUH,CAEZ,MAAK,CAAL,CACA,KAAK,CAAL,CACE,GAAI9B,CAAA,CAAW6B,CAAX,CAAJ,CAAoB,CAClB,GAAI7B,CAAA,CAAW4B,CAAX,CAAJ,CAAoB,CAClBK,CAAA,CAAUL,CACVM,EAAA,CAAQL,CACR,MAHkB,CAMpBI,CAAA,CAAUJ,CACVK,EAAA,CAAQJ,CARU,CAApB,IAUO,CACLE,CAAA,CAASJ,CACT/B,EAAA,CAAOgC,CACPI,EAAA,CAAUH,CACV,MAJK,CAMT,KAAK,CAAL,CACM9B,CAAA,CAAW4B,CAAX,CAAJ;AAAoBK,CAApB,CAA8BL,CAA9B,CACSN,CAAJ,CAAazB,CAAb,CAAoB+B,CAApB,CACAI,CADA,CACSJ,CACd,MACF,MAAK,CAAL,CAAQ,KACR,SACE,KAAM7D,EAAA,CAAgB,SAAhB,CAEJoE,SAAA5B,OAFI,CAAN,CA9BJ,CAoCA,IAAI6B,EAAiB,IAAjBA,WAAiCvB,EAArC,CACIlD,EAAQyE,CAAA,CAAiBvC,CAAjB,CAAyBuB,CAAA3C,QAAA,CAAiB,EAAjB,CAAsB,IAAIoC,CAAJ,CAAahB,CAAb,CAD3D,CAEIwC,EAAa,EAFjB,CAGIC,EAAsBlB,CAAAmB,YAAtBD,EAA4ClB,CAAAmB,YAAA5B,SAA5C2B,EACF5B,CAJF,CAKI8B,EAA2BpB,CAAAmB,YAA3BC,EAAiDpB,CAAAmB,YAAAE,cAAjDD,EACFlF,CANF,CAOIoF,CAPJ,CAQIC,CAEJjF,EAAA,CAAQ0D,CAAR,CAAgB,QAAQ,CAACzD,CAAD,CAAQC,CAAR,CAAa,CACnC,OAAQA,CAAR,EACE,QACEyE,CAAA,CAAWzE,CAAX,CAAA,CAAkBgF,CAAA,CAAKjF,CAAL,CAEpB,MAAK,QAAL,CACA,KAAK,SAAL,CACA,KAAK,aAAL,CACA,KAAK,aAAL,CAPF,CADmC,CAArC,CAaKyE,EAAAA,CAAL,EAAuBX,CAAvB,GACEiB,CAGA,CAHkB7D,CAAAgE,MAAA,EAGlB,CAFAR,CAAAb,QAEA,CAFqBkB,CAAAI,QAErB,CAAIvB,CAAJ,GACEoB,CADF,CAC0B7D,CAAA,CAAS4D,CAAAK,QAAT,CAAkCxB,CAAlC,CAD1B,CAJF,CASID,EAAJ,GAAae,CAAAxC,KAAb,CAA+BA,CAA/B,CACAiB,EAAAkC,aAAA,CAAmBX,CAAnB,CACE/C,CAAA,CAAO,EAAP,CAAWM,CAAA,CAAcC,CAAd,CAAoBuB,CAAAY,OAApB,EAAqC,EAArC,CAAX,CAAqDA,CAArD,CADF,CAEEZ,CAAA3B,IAFF,CAIIqD,EAAAA,CAAUnE,CAAA,CAAM0D,CAAN,CAAAY,KAAA,CAAuB,QAAQ,CAACtC,CAAD,CAAW,CACtD,IAAId;AAAOc,CAAAd,KAEX,IAAIA,CAAJ,CAAU,CAGR,GAAIxC,CAAAoB,QAAA,CAAgBoB,CAAhB,CAAJ,GAA+B,CAAEpB,CAAA2C,CAAA3C,QAAjC,CACE,KAAMV,EAAA,CAAgB,QAAhB,CAEkDsD,CAFlD,CAEwDD,CAAA3C,QAAA,CAAiB,OAAjB,CAA2B,QAFnF,CAGJpB,CAAAoB,QAAA,CAAgBoB,CAAhB,CAAA,CAAwB,OAAxB,CAAkC,QAH9B,CAGwCwC,CAAA7D,OAHxC,CAG2D6D,CAAA5C,IAH3D,CAAN,CAMF,GAAI2B,CAAA3C,QAAJ,CACEd,CAAA4C,OACA,CADe,CACf,CAAA7C,CAAA,CAAQmC,CAAR,CAAc,QAAQ,CAACqD,CAAD,CAAO,CACP,QAApB,GAAI,MAAOA,EAAX,CACEvF,CAAAwF,KAAA,CAAW,IAAItC,CAAJ,CAAaqC,CAAb,CAAX,CADF,CAMEvF,CAAAwF,KAAA,CAAWD,CAAX,CAPyB,CAA7B,CAFF,KAYO,CACL,IAAIJ,EAAUnF,CAAAuD,SACd3D,EAAA,CAAoBsC,CAApB,CAA0BlC,CAA1B,CACAA,EAAAuD,SAAA,CAAiB4B,CAHZ,CAtBC,CA4BVnC,CAAAC,SAAA,CAAoBjD,CAEpB,OAAOgD,EAjC+C,CAA1C,CAkCX,QAAQ,CAACA,CAAD,CAAW,CACpB,CAACuB,CAAD,EAAUkB,CAAV,EAAgBzC,CAAhB,CACA,OAAO9B,EAAAwE,OAAA,CAAU1C,CAAV,CAFa,CAlCR,CAuCdmC,EAAAQ,QAAA,CAAgB,QAAQ,EAAG,CACzB3F,CAAAwD,UAAA,CAAkB,CAAA,CACbiB,EAAAA,CAAL,EAAuBX,CAAvB,GACE9D,CAAA4F,eAEA,CAFuBlG,CAAA+F,KAEvB,CADAtE,CAAA0E,OAAA,CAAgBb,CAAhB,CACA,CAAAD,CAAA,CAAkBC,CAAlB,CAA0CN,CAAAb,QAA1C,CAA+D,IAHjE,CAFyB,CAA3B,CASAsB,EAAA,CAAUA,CAAAG,KAAA,CACR,QAAQ,CAACtC,CAAD,CAAW,CACjB,IAAIhD,EAAQ2E,CAAA,CAAoB3B,CAApB,CACZ,EAACsB,CAAD,EAAYmB,CAAZ,EAAkBzF,CAAlB,CAAyBgD,CAAA8C,QAAzB,CACA,OAAO9F,EAHU,CADX,CAMR6E,CANQ,CAQV,OAAKJ,EAAL;AAYOU,CAZP,EAIEnF,CAAAuD,SAIOvD,CAJUmF,CAIVnF,CAHPA,CAAAwD,UAGOxD,CAHW,CAAA,CAGXA,CAFH8D,CAEG9D,GAFUA,CAAA4F,eAEV5F,CAFiC+E,CAAAK,QAEjCpF,EAAAA,CART,CArIwC,CAqJ1CkD,EAAAE,UAAA,CAAmB,GAAnB,CAAyBM,CAAzB,CAAA,CAAiC,QAAQ,CAACW,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAAyB,CAC5DlC,CAAA,CAAWgC,CAAX,CAAJ,GACEE,CAAmC,CAA3BD,CAA2B,CAAlBA,CAAkB,CAARD,CAAQ,CAAAA,CAAA,CAAS,EAD9C,CAGI0B,EAAAA,CAAS7C,CAAA,CAASQ,CAAT,CAAAsC,KAAA,CAAoB,IAApB,CAA0B3B,CAA1B,CAAkC,IAAlC,CAAwCC,CAAxC,CAAiDC,CAAjD,CACb,OAAOwB,EAAAxC,SAAP,EAA0BwC,CALsC,CAtK5B,CAAxC,CA+KA7C,EAAA+C,KAAA,CAAgBC,QAAQ,CAACC,CAAD,CAA0B,CAChD,MAAOtE,EAAA,CAAgBC,CAAhB,CAAqBH,CAAA,CAAO,EAAP,CAAWI,CAAX,CAA0BoE,CAA1B,CAArB,CAAyEvF,CAAzE,CADyC,CAIlD,OAAOsC,EAlNsD,CA9HmB,IAE9EuC,EAAO/F,CAAA+F,KAFuE,CAGhF1F,EAAUL,CAAAK,QAHsE,CAIhF4B,EAASjC,CAAAiC,OAJuE,CAKhFsD,EAAOvF,CAAAuF,KALyE,CAMhF5C,EAAa3C,CAAA2C,WA+CfZ,EAAA2B,UAAA,CAAkB,CAChBiC,aAAcA,QAAQ,CAACe,CAAD,CAAS/B,CAAT,CAAiBgC,CAAjB,CAA4B,CAAA,IAC5CC,EAAO,IADqC,CAE9CxE,EAAMuE,CAANvE,EAAmBwE,CAAA5E,SAF2B,CAG9CL,CAH8C,CAI9CkF,CAJ8C,CAK9CC,EAAoB,EAL0B,CAO5C5E,EAAY0E,CAAA1E,UAAZA,CAA6B,EACjC7B,EAAA,CAAQ+B,CAAAW,MAAA,CAAU,IAAV,CAAR,CAAyB,QAAQ,CAACgE,CAAD,CAAQ,CACvC,GAAc,gBAAd,GAAIA,CAAJ,CACE,KAAMrG,EAAA,CAAgB,SAAhB,CAAN,CAEI,CAAA,OAAAmC,KAAA,CAA0BkE,CAA1B,CAAN,EAA2CA,CAA3C,EACGlE,CAAA,IAAImE,MAAJ,CAAW,cAAX;AAA4BD,CAA5B,CAAoC,SAApC,CAAAlE,MAAA,CAAoDT,CAApD,CADH,GAEEF,CAAA,CAAU6E,CAAV,CAFF,CAEqB,CACjBE,kBAAmBpE,CAAC,IAAImE,MAAJ,CAAW,SAAX,CAAuBD,CAAvB,CAA+B,WAA/B,CAADlE,MAAA,CAAmDT,CAAnD,CADF,CAFrB,CAJuC,CAAzC,CAWAA,EAAA,CAAMA,CAAAN,QAAA,CAAY,MAAZ,CAAoB,GAApB,CACNM,EAAA,CAAMA,CAAAN,QAAA,CAAYf,CAAZ,CAAuC,QAAQ,CAACmG,CAAD,CAAQ,CAC3DJ,CAAA,CAAoBI,CACpB,OAAO,EAFoD,CAAvD,CAKNvC,EAAA,CAASA,CAAT,EAAmB,EACnBtE,EAAA,CAAQuG,CAAA1E,UAAR,CAAwB,QAAQ,CAACiF,CAAD,CAAYC,CAAZ,CAAsB,CACpDzF,CAAA,CAAMgD,CAAAnE,eAAA,CAAsB4G,CAAtB,CAAA,CAAkCzC,CAAA,CAAOyC,CAAP,CAAlC,CAAqDR,CAAA5F,SAAA,CAAcoG,CAAd,CACvDpH,EAAAmD,UAAA,CAAkBxB,CAAlB,CAAJ,EAAsC,IAAtC,GAA8BA,CAA9B,EAEIkF,CAIF,CALIM,CAAAF,kBAAJ,CACevF,CAAA,CAAeC,CAAf,CAAoB,CAAA,CAApB,CADf,CA/DCD,CAAA,CAkE+BC,CAlE/B,CAAoB,CAAA,CAApB,CAAAG,QAAA,CACG,OADH,CACY,GADZ,CAAAA,QAAA,CAEG,OAFH,CAEY,GAFZ,CAAAA,QAAA,CAGG,OAHH,CAGY,GAHZ,CAoED,CAAAM,CAAA,CAAMA,CAAAN,QAAA,CAAY,IAAIkF,MAAJ,CAAW,GAAX,CAAiBI,CAAjB,CAA4B,SAA5B,CAAuC,GAAvC,CAAZ,CAAyD,QAAQ,CAACF,CAAD,CAAQG,CAAR,CAAY,CACjF,MAAOR,EAAP,CAAoBQ,CAD6D,CAA7E,CANR,EAUEjF,CAVF,CAUQA,CAAAN,QAAA,CAAY,IAAIkF,MAAJ,CAAW,OAAX,CAAsBI,CAAtB,CAAiC,SAAjC,CAA4C,GAA5C,CAAZ,CAA8D,QAAQ,CAACF,CAAD,CACxEI,CADwE,CACxDC,CADwD,CAClD,CACxB,MAAsB,GAAtB;AAAIA,CAAA9G,OAAA,CAAY,CAAZ,CAAJ,CACS8G,CADT,CAGSD,CAHT,CAG0BC,CAJF,CADpB,CAZ4C,CAAtD,CAwBIX,EAAA5F,SAAAC,qBAAJ,GACEmB,CADF,CACQA,CAAAN,QAAA,CAAY,MAAZ,CAAoB,EAApB,CADR,EACmC,GADnC,CAMAM,EAAA,CAAMA,CAAAN,QAAA,CAAY,mBAAZ,CAAiC,GAAjC,CAEN4E,EAAAtE,IAAA,CAAa0E,CAAb,CAAiC1E,CAAAN,QAAA,CAAY,QAAZ,CAAsB,IAAtB,CAIjCzB,EAAA,CAAQsE,CAAR,CAAgB,QAAQ,CAACrE,CAAD,CAAQC,CAAR,CAAa,CAC9BqG,CAAA1E,UAAA,CAAe3B,CAAf,CAAL,GACEmG,CAAA/B,OACA,CADgB+B,CAAA/B,OAChB,EADiC,EACjC,CAAA+B,CAAA/B,OAAA,CAAcpE,CAAd,CAAA,CAAqBD,CAFvB,CADmC,CAArC,CA9DgD,CADlC,CA8RlB,OAAO6B,EAnV2E,CAAxE,CAlBmB,CADnC,CA/YsC,CAArC,CAAD,CA0vBGpC,MA1vBH,CA0vBWA,MAAAC,QA1vBX;",
-"sources":["angular-resource.js"],
-"names":["window","angular","undefined","shallowClearAndCopy","src","dst","forEach","value","key","hasOwnProperty","charAt","$resourceMinErr","$$minErr","MEMBER_NAME_REGEX","module","provider","PROTOCOL_AND_DOMAIN_REGEX","defaults","stripTrailingSlashes","actions","method","isArray","$get","$http","$log","$q","$timeout","encodeUriQuery","val","pctEncodeSpaces","encodeURIComponent","replace","Route","template","extend","urlParams","resourceFactory","url","paramDefaults","options","extractParams","data","actionParams","ids","isFunction","path","test","keys","split","i","ii","length","isDefined","obj","defaultResponseInterceptor","response","resource","Resource","route","prototype","toJSON","Resource.prototype.toJSON","$promise","$resolved","action","name","hasBody","numericTimeout","timeout","cancellable","isNumber","debug","a1","a2","a3","a4","params","success","error","arguments","isInstanceCall","httpConfig","responseInterceptor","interceptor","responseErrorInterceptor","responseError","timeoutDeferred","numericTimeoutPromise","copy","defer","promise","resolve","setUrlParams","then","item","push","noop","reject","finally","$cancelRequest","cancel","headers","result","call","bind","Resource.bind","additionalParamDefaults","config","actionUrl","self","encodedVal","protocolAndDomain","param","RegExp","isQueryParamValue","match","paramInfo","urlParam","p1","leadingSlashes","tail"]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-resource/bower.json b/ecomp-portal-FE/client/bower_components/angular-resource/bower.json
deleted file mode 100644
index 5259fa97..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-resource/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-resource",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-resource.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-resource/index.js b/ecomp-portal-FE/client/bower_components/angular-resource/index.js
deleted file mode 100644
index fc401529..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-resource/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-resource');
-module.exports = 'ngResource';
diff --git a/ecomp-portal-FE/client/bower_components/angular-resource/package.json b/ecomp-portal-FE/client/bower_components/angular-resource/package.json
deleted file mode 100644
index 2a033c93..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-resource/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "angular-resource",
- "version": "1.5.0",
- "description": "AngularJS module for interacting with RESTful server-side data sources",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "rest",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org"
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-route/.bower.json b/ecomp-portal-FE/client/bower_components/angular-route/.bower.json
deleted file mode 100644
index d244d0c5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-route/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-route",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-route.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- },
- "homepage": "https://github.com/angular/bower-angular-route",
- "_release": "1.5.0",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.0",
- "commit": "6f03a206107b3ae860ee7f7fd061db252c452903"
- },
- "_source": "https://github.com/angular/bower-angular-route.git",
- "_target": "1.5.0",
- "_originalSource": "angular-route"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-route/README.md b/ecomp-portal-FE/client/bower_components/angular-route/README.md
deleted file mode 100644
index 2cd4f909..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-route/README.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# packaged angular-route
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngRoute).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-route
-```
-
-Then add `ngRoute` as a dependency for your app:
-
-```javascript
-angular.module('myApp', [require('angular-route')]);
-```
-
-### bower
-
-```shell
-bower install angular-route
-```
-
-Add a `<script>` to your `index.html`:
-
-```html
-<script src="/bower_components/angular-route/angular-route.js"></script>
-```
-
-Then add `ngRoute` as a dependency for your app:
-
-```javascript
-angular.module('myApp', ['ngRoute']);
-```
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/api/ngRoute).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-route/angular-route.js b/ecomp-portal-FE/client/bower_components/angular-route/angular-route.js
deleted file mode 100644
index 45ac238e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-route/angular-route.js
+++ /dev/null
@@ -1,1016 +0,0 @@
-/**
- * @license AngularJS v1.5.0
- * (c) 2010-2016 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular, undefined) {'use strict';
-
-/**
- * @ngdoc module
- * @name ngRoute
- * @description
- *
- * # ngRoute
- *
- * The `ngRoute` module provides routing and deeplinking services and directives for angular apps.
- *
- * ## Example
- * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`.
- *
- *
- * <div doc-module-components="ngRoute"></div>
- */
- /* global -ngRouteModule */
-var ngRouteModule = angular.module('ngRoute', ['ng']).
- provider('$route', $RouteProvider),
- $routeMinErr = angular.$$minErr('ngRoute');
-
-/**
- * @ngdoc provider
- * @name $routeProvider
- *
- * @description
- *
- * Used for configuring routes.
- *
- * ## Example
- * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`.
- *
- * ## Dependencies
- * Requires the {@link ngRoute `ngRoute`} module to be installed.
- */
-function $RouteProvider() {
- function inherit(parent, extra) {
- return angular.extend(Object.create(parent), extra);
- }
-
- var routes = {};
-
- /**
- * @ngdoc method
- * @name $routeProvider#when
- *
- * @param {string} path Route path (matched against `$location.path`). If `$location.path`
- * contains redundant trailing slash or is missing one, the route will still match and the
- * `$location.path` will be updated to add or drop the trailing slash to exactly match the
- * route definition.
- *
- * * `path` can contain named groups starting with a colon: e.g. `:name`. All characters up
- * to the next slash are matched and stored in `$routeParams` under the given `name`
- * when the route matches.
- * * `path` can contain named groups starting with a colon and ending with a star:
- * e.g.`:name*`. All characters are eagerly stored in `$routeParams` under the given `name`
- * when the route matches.
- * * `path` can contain optional named groups with a question mark: e.g.`:name?`.
- *
- * For example, routes like `/color/:color/largecode/:largecode*\/edit` will match
- * `/color/brown/largecode/code/with/slashes/edit` and extract:
- *
- * * `color: brown`
- * * `largecode: code/with/slashes`.
- *
- *
- * @param {Object} route Mapping information to be assigned to `$route.current` on route
- * match.
- *
- * Object properties:
- *
- * - `controller` – `{(string|function()=}` – Controller fn that should be associated with
- * newly created scope or the name of a {@link angular.Module#controller registered
- * controller} if passed as a string.
- * - `controllerAs` – `{string=}` – An identifier name for a reference to the controller.
- * If present, the controller will be published to scope under the `controllerAs` name.
- * - `template` – `{string=|function()=}` – html template as a string or a function that
- * returns an html template as a string which should be used by {@link
- * ngRoute.directive:ngView ngView} or {@link ng.directive:ngInclude ngInclude} directives.
- * This property takes precedence over `templateUrl`.
- *
- * If `template` is a function, it will be called with the following parameters:
- *
- * - `{Array.<Object>}` - route parameters extracted from the current
- * `$location.path()` by applying the current route
- *
- * - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html
- * template that should be used by {@link ngRoute.directive:ngView ngView}.
- *
- * If `templateUrl` is a function, it will be called with the following parameters:
- *
- * - `{Array.<Object>}` - route parameters extracted from the current
- * `$location.path()` by applying the current route
- *
- * - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should
- * be injected into the controller. If any of these dependencies are promises, the router
- * will wait for them all to be resolved or one to be rejected before the controller is
- * instantiated.
- * If all the promises are resolved successfully, the values of the resolved promises are
- * injected and {@link ngRoute.$route#$routeChangeSuccess $routeChangeSuccess} event is
- * fired. If any of the promises are rejected the
- * {@link ngRoute.$route#$routeChangeError $routeChangeError} event is fired.
- * For easier access to the resolved dependencies from the template, the `resolve` map will
- * be available on the scope of the route, under `$resolve` (by default) or a custom name
- * specified by the `resolveAs` property (see below). This can be particularly useful, when
- * working with {@link angular.Module#component components} as route templates.<br />
- * <div class="alert alert-warning">
- * **Note:** If your scope already contains a property with this name, it will be hidden
- * or overwritten. Make sure, you specify an appropriate name for this property, that
- * does not collide with other properties on the scope.
- * </div>
- * The map object is:
- *
- * - `key` – `{string}`: a name of a dependency to be injected into the controller.
- * - `factory` - `{string|function}`: If `string` then it is an alias for a service.
- * Otherwise if function, then it is {@link auto.$injector#invoke injected}
- * and the return value is treated as the dependency. If the result is a promise, it is
- * resolved before its value is injected into the controller. Be aware that
- * `ngRoute.$routeParams` will still refer to the previous route within these resolve
- * functions. Use `$route.current.params` to access the new route parameters, instead.
- *
- * - `resolveAs` - `{string=}` - The name under which the `resolve` map will be available on
- * the scope of the route. If omitted, defaults to `$resolve`.
- *
- * - `redirectTo` – `{(string|function())=}` – value to update
- * {@link ng.$location $location} path with and trigger route redirection.
- *
- * If `redirectTo` is a function, it will be called with the following parameters:
- *
- * - `{Object.<string>}` - route parameters extracted from the current
- * `$location.path()` by applying the current route templateUrl.
- * - `{string}` - current `$location.path()`
- * - `{Object}` - current `$location.search()`
- *
- * The custom `redirectTo` function is expected to return a string which will be used
- * to update `$location.path()` and `$location.search()`.
- *
- * - `[reloadOnSearch=true]` - `{boolean=}` - reload route when only `$location.search()`
- * or `$location.hash()` changes.
- *
- * If the option is set to `false` and url in the browser changes, then
- * `$routeUpdate` event is broadcasted on the root scope.
- *
- * - `[caseInsensitiveMatch=false]` - `{boolean=}` - match routes without being case sensitive
- *
- * If the option is set to `true`, then the particular route can be matched without being
- * case sensitive
- *
- * @returns {Object} self
- *
- * @description
- * Adds a new route definition to the `$route` service.
- */
- this.when = function(path, route) {
- //copy original route object to preserve params inherited from proto chain
- var routeCopy = angular.copy(route);
- if (angular.isUndefined(routeCopy.reloadOnSearch)) {
- routeCopy.reloadOnSearch = true;
- }
- if (angular.isUndefined(routeCopy.caseInsensitiveMatch)) {
- routeCopy.caseInsensitiveMatch = this.caseInsensitiveMatch;
- }
- routes[path] = angular.extend(
- routeCopy,
- path && pathRegExp(path, routeCopy)
- );
-
- // create redirection for trailing slashes
- if (path) {
- var redirectPath = (path[path.length - 1] == '/')
- ? path.substr(0, path.length - 1)
- : path + '/';
-
- routes[redirectPath] = angular.extend(
- {redirectTo: path},
- pathRegExp(redirectPath, routeCopy)
- );
- }
-
- return this;
- };
-
- /**
- * @ngdoc property
- * @name $routeProvider#caseInsensitiveMatch
- * @description
- *
- * A boolean property indicating if routes defined
- * using this provider should be matched using a case insensitive
- * algorithm. Defaults to `false`.
- */
- this.caseInsensitiveMatch = false;
-
- /**
- * @param path {string} path
- * @param opts {Object} options
- * @return {?Object}
- *
- * @description
- * Normalizes the given path, returning a regular expression
- * and the original path.
- *
- * Inspired by pathRexp in visionmedia/express/lib/utils.js.
- */
- function pathRegExp(path, opts) {
- var insensitive = opts.caseInsensitiveMatch,
- ret = {
- originalPath: path,
- regexp: path
- },
- keys = ret.keys = [];
-
- path = path
- .replace(/([().])/g, '\\$1')
- .replace(/(\/)?:(\w+)([\?\*])?/g, function(_, slash, key, option) {
- var optional = option === '?' ? option : null;
- var star = option === '*' ? option : null;
- keys.push({ name: key, optional: !!optional });
- slash = slash || '';
- return ''
- + (optional ? '' : slash)
- + '(?:'
- + (optional ? slash : '')
- + (star && '(.+?)' || '([^/]+)')
- + (optional || '')
- + ')'
- + (optional || '');
- })
- .replace(/([\/$\*])/g, '\\$1');
-
- ret.regexp = new RegExp('^' + path + '$', insensitive ? 'i' : '');
- return ret;
- }
-
- /**
- * @ngdoc method
- * @name $routeProvider#otherwise
- *
- * @description
- * Sets route definition that will be used on route change when no other route definition
- * is matched.
- *
- * @param {Object|string} params Mapping information to be assigned to `$route.current`.
- * If called with a string, the value maps to `redirectTo`.
- * @returns {Object} self
- */
- this.otherwise = function(params) {
- if (typeof params === 'string') {
- params = {redirectTo: params};
- }
- this.when(null, params);
- return this;
- };
-
-
- this.$get = ['$rootScope',
- '$location',
- '$routeParams',
- '$q',
- '$injector',
- '$templateRequest',
- '$sce',
- function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
-
- /**
- * @ngdoc service
- * @name $route
- * @requires $location
- * @requires $routeParams
- *
- * @property {Object} current Reference to the current route definition.
- * The route definition contains:
- *
- * - `controller`: The controller constructor as defined in the route definition.
- * - `locals`: A map of locals which is used by {@link ng.$controller $controller} service for
- * controller instantiation. The `locals` contain
- * the resolved values of the `resolve` map. Additionally the `locals` also contain:
- *
- * - `$scope` - The current route scope.
- * - `$template` - The current route template HTML.
- *
- * The `locals` will be assigned to the route scope's `$resolve` property. You can override
- * the property name, using `resolveAs` in the route definition. See
- * {@link ngRoute.$routeProvider $routeProvider} for more info.
- *
- * @property {Object} routes Object with all route configuration Objects as its properties.
- *
- * @description
- * `$route` is used for deep-linking URLs to controllers and views (HTML partials).
- * It watches `$location.url()` and tries to map the path to an existing route definition.
- *
- * Requires the {@link ngRoute `ngRoute`} module to be installed.
- *
- * You can define routes through {@link ngRoute.$routeProvider $routeProvider}'s API.
- *
- * The `$route` service is typically used in conjunction with the
- * {@link ngRoute.directive:ngView `ngView`} directive and the
- * {@link ngRoute.$routeParams `$routeParams`} service.
- *
- * @example
- * This example shows how changing the URL hash causes the `$route` to match a route against the
- * URL, and the `ngView` pulls in the partial.
- *
- * <example name="$route-service" module="ngRouteExample"
- * deps="angular-route.js" fixBase="true">
- * <file name="index.html">
- * <div ng-controller="MainController">
- * Choose:
- * <a href="Book/Moby">Moby</a> |
- * <a href="Book/Moby/ch/1">Moby: Ch1</a> |
- * <a href="Book/Gatsby">Gatsby</a> |
- * <a href="Book/Gatsby/ch/4?key=value">Gatsby: Ch4</a> |
- * <a href="Book/Scarlet">Scarlet Letter</a><br/>
- *
- * <div ng-view></div>
- *
- * <hr />
- *
- * <pre>$location.path() = {{$location.path()}}</pre>
- * <pre>$route.current.templateUrl = {{$route.current.templateUrl}}</pre>
- * <pre>$route.current.params = {{$route.current.params}}</pre>
- * <pre>$route.current.scope.name = {{$route.current.scope.name}}</pre>
- * <pre>$routeParams = {{$routeParams}}</pre>
- * </div>
- * </file>
- *
- * <file name="book.html">
- * controller: {{name}}<br />
- * Book Id: {{params.bookId}}<br />
- * </file>
- *
- * <file name="chapter.html">
- * controller: {{name}}<br />
- * Book Id: {{params.bookId}}<br />
- * Chapter Id: {{params.chapterId}}
- * </file>
- *
- * <file name="script.js">
- * angular.module('ngRouteExample', ['ngRoute'])
- *
- * .controller('MainController', function($scope, $route, $routeParams, $location) {
- * $scope.$route = $route;
- * $scope.$location = $location;
- * $scope.$routeParams = $routeParams;
- * })
- *
- * .controller('BookController', function($scope, $routeParams) {
- * $scope.name = "BookController";
- * $scope.params = $routeParams;
- * })
- *
- * .controller('ChapterController', function($scope, $routeParams) {
- * $scope.name = "ChapterController";
- * $scope.params = $routeParams;
- * })
- *
- * .config(function($routeProvider, $locationProvider) {
- * $routeProvider
- * .when('/Book/:bookId', {
- * templateUrl: 'book.html',
- * controller: 'BookController',
- * resolve: {
- * // I will cause a 1 second delay
- * delay: function($q, $timeout) {
- * var delay = $q.defer();
- * $timeout(delay.resolve, 1000);
- * return delay.promise;
- * }
- * }
- * })
- * .when('/Book/:bookId/ch/:chapterId', {
- * templateUrl: 'chapter.html',
- * controller: 'ChapterController'
- * });
- *
- * // configure html5 to get links working on jsfiddle
- * $locationProvider.html5Mode(true);
- * });
- *
- * </file>
- *
- * <file name="protractor.js" type="protractor">
- * it('should load and compile correct template', function() {
- * element(by.linkText('Moby: Ch1')).click();
- * var content = element(by.css('[ng-view]')).getText();
- * expect(content).toMatch(/controller\: ChapterController/);
- * expect(content).toMatch(/Book Id\: Moby/);
- * expect(content).toMatch(/Chapter Id\: 1/);
- *
- * element(by.partialLinkText('Scarlet')).click();
- *
- * content = element(by.css('[ng-view]')).getText();
- * expect(content).toMatch(/controller\: BookController/);
- * expect(content).toMatch(/Book Id\: Scarlet/);
- * });
- * </file>
- * </example>
- */
-
- /**
- * @ngdoc event
- * @name $route#$routeChangeStart
- * @eventType broadcast on root scope
- * @description
- * Broadcasted before a route change. At this point the route services starts
- * resolving all of the dependencies needed for the route change to occur.
- * Typically this involves fetching the view template as well as any dependencies
- * defined in `resolve` route property. Once all of the dependencies are resolved
- * `$routeChangeSuccess` is fired.
- *
- * The route change (and the `$location` change that triggered it) can be prevented
- * by calling `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on}
- * for more details about event object.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {Route} next Future route information.
- * @param {Route} current Current route information.
- */
-
- /**
- * @ngdoc event
- * @name $route#$routeChangeSuccess
- * @eventType broadcast on root scope
- * @description
- * Broadcasted after a route change has happened successfully.
- * The `resolve` dependencies are now available in the `current.locals` property.
- *
- * {@link ngRoute.directive:ngView ngView} listens for the directive
- * to instantiate the controller and render the view.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {Route} current Current route information.
- * @param {Route|Undefined} previous Previous route information, or undefined if current is
- * first route entered.
- */
-
- /**
- * @ngdoc event
- * @name $route#$routeChangeError
- * @eventType broadcast on root scope
- * @description
- * Broadcasted if any of the resolve promises are rejected.
- *
- * @param {Object} angularEvent Synthetic event object
- * @param {Route} current Current route information.
- * @param {Route} previous Previous route information.
- * @param {Route} rejection Rejection of the promise. Usually the error of the failed promise.
- */
-
- /**
- * @ngdoc event
- * @name $route#$routeUpdate
- * @eventType broadcast on root scope
- * @description
- * The `reloadOnSearch` property has been set to false, and we are reusing the same
- * instance of the Controller.
- *
- * @param {Object} angularEvent Synthetic event object
- * @param {Route} current Current/previous route information.
- */
-
- var forceReload = false,
- preparedRoute,
- preparedRouteIsUpdateOnly,
- $route = {
- routes: routes,
-
- /**
- * @ngdoc method
- * @name $route#reload
- *
- * @description
- * Causes `$route` service to reload the current route even if
- * {@link ng.$location $location} hasn't changed.
- *
- * As a result of that, {@link ngRoute.directive:ngView ngView}
- * creates new scope and reinstantiates the controller.
- */
- reload: function() {
- forceReload = true;
-
- var fakeLocationEvent = {
- defaultPrevented: false,
- preventDefault: function fakePreventDefault() {
- this.defaultPrevented = true;
- forceReload = false;
- }
- };
-
- $rootScope.$evalAsync(function() {
- prepareRoute(fakeLocationEvent);
- if (!fakeLocationEvent.defaultPrevented) commitRoute();
- });
- },
-
- /**
- * @ngdoc method
- * @name $route#updateParams
- *
- * @description
- * Causes `$route` service to update the current URL, replacing
- * current route parameters with those specified in `newParams`.
- * Provided property names that match the route's path segment
- * definitions will be interpolated into the location's path, while
- * remaining properties will be treated as query params.
- *
- * @param {!Object<string, string>} newParams mapping of URL parameter names to values
- */
- updateParams: function(newParams) {
- if (this.current && this.current.$$route) {
- newParams = angular.extend({}, this.current.params, newParams);
- $location.path(interpolate(this.current.$$route.originalPath, newParams));
- // interpolate modifies newParams, only query params are left
- $location.search(newParams);
- } else {
- throw $routeMinErr('norout', 'Tried updating route when with no current route');
- }
- }
- };
-
- $rootScope.$on('$locationChangeStart', prepareRoute);
- $rootScope.$on('$locationChangeSuccess', commitRoute);
-
- return $route;
-
- /////////////////////////////////////////////////////
-
- /**
- * @param on {string} current url
- * @param route {Object} route regexp to match the url against
- * @return {?Object}
- *
- * @description
- * Check if the route matches the current url.
- *
- * Inspired by match in
- * visionmedia/express/lib/router/router.js.
- */
- function switchRouteMatcher(on, route) {
- var keys = route.keys,
- params = {};
-
- if (!route.regexp) return null;
-
- var m = route.regexp.exec(on);
- if (!m) return null;
-
- for (var i = 1, len = m.length; i < len; ++i) {
- var key = keys[i - 1];
-
- var val = m[i];
-
- if (key && val) {
- params[key.name] = val;
- }
- }
- return params;
- }
-
- function prepareRoute($locationEvent) {
- var lastRoute = $route.current;
-
- preparedRoute = parseRoute();
- preparedRouteIsUpdateOnly = preparedRoute && lastRoute && preparedRoute.$$route === lastRoute.$$route
- && angular.equals(preparedRoute.pathParams, lastRoute.pathParams)
- && !preparedRoute.reloadOnSearch && !forceReload;
-
- if (!preparedRouteIsUpdateOnly && (lastRoute || preparedRoute)) {
- if ($rootScope.$broadcast('$routeChangeStart', preparedRoute, lastRoute).defaultPrevented) {
- if ($locationEvent) {
- $locationEvent.preventDefault();
- }
- }
- }
- }
-
- function commitRoute() {
- var lastRoute = $route.current;
- var nextRoute = preparedRoute;
-
- if (preparedRouteIsUpdateOnly) {
- lastRoute.params = nextRoute.params;
- angular.copy(lastRoute.params, $routeParams);
- $rootScope.$broadcast('$routeUpdate', lastRoute);
- } else if (nextRoute || lastRoute) {
- forceReload = false;
- $route.current = nextRoute;
- if (nextRoute) {
- if (nextRoute.redirectTo) {
- if (angular.isString(nextRoute.redirectTo)) {
- $location.path(interpolate(nextRoute.redirectTo, nextRoute.params)).search(nextRoute.params)
- .replace();
- } else {
- $location.url(nextRoute.redirectTo(nextRoute.pathParams, $location.path(), $location.search()))
- .replace();
- }
- }
- }
-
- $q.when(nextRoute).
- then(function() {
- if (nextRoute) {
- var locals = angular.extend({}, nextRoute.resolve),
- template, templateUrl;
-
- angular.forEach(locals, function(value, key) {
- locals[key] = angular.isString(value) ?
- $injector.get(value) : $injector.invoke(value, null, null, key);
- });
-
- if (angular.isDefined(template = nextRoute.template)) {
- if (angular.isFunction(template)) {
- template = template(nextRoute.params);
- }
- } else if (angular.isDefined(templateUrl = nextRoute.templateUrl)) {
- if (angular.isFunction(templateUrl)) {
- templateUrl = templateUrl(nextRoute.params);
- }
- if (angular.isDefined(templateUrl)) {
- nextRoute.loadedTemplateUrl = $sce.valueOf(templateUrl);
- template = $templateRequest(templateUrl);
- }
- }
- if (angular.isDefined(template)) {
- locals['$template'] = template;
- }
- return $q.all(locals);
- }
- }).
- then(function(locals) {
- // after route change
- if (nextRoute == $route.current) {
- if (nextRoute) {
- nextRoute.locals = locals;
- angular.copy(nextRoute.params, $routeParams);
- }
- $rootScope.$broadcast('$routeChangeSuccess', nextRoute, lastRoute);
- }
- }, function(error) {
- if (nextRoute == $route.current) {
- $rootScope.$broadcast('$routeChangeError', nextRoute, lastRoute, error);
- }
- });
- }
- }
-
-
- /**
- * @returns {Object} the current active route, by matching it against the URL
- */
- function parseRoute() {
- // Match a route
- var params, match;
- angular.forEach(routes, function(route, path) {
- if (!match && (params = switchRouteMatcher($location.path(), route))) {
- match = inherit(route, {
- params: angular.extend({}, $location.search(), params),
- pathParams: params});
- match.$$route = route;
- }
- });
- // No route matched; fallback to "otherwise" route
- return match || routes[null] && inherit(routes[null], {params: {}, pathParams:{}});
- }
-
- /**
- * @returns {string} interpolation of the redirect path with the parameters
- */
- function interpolate(string, params) {
- var result = [];
- angular.forEach((string || '').split(':'), function(segment, i) {
- if (i === 0) {
- result.push(segment);
- } else {
- var segmentMatch = segment.match(/(\w+)(?:[?*])?(.*)/);
- var key = segmentMatch[1];
- result.push(params[key]);
- result.push(segmentMatch[2] || '');
- delete params[key];
- }
- });
- return result.join('');
- }
- }];
-}
-
-ngRouteModule.provider('$routeParams', $RouteParamsProvider);
-
-
-/**
- * @ngdoc service
- * @name $routeParams
- * @requires $route
- *
- * @description
- * The `$routeParams` service allows you to retrieve the current set of route parameters.
- *
- * Requires the {@link ngRoute `ngRoute`} module to be installed.
- *
- * The route parameters are a combination of {@link ng.$location `$location`}'s
- * {@link ng.$location#search `search()`} and {@link ng.$location#path `path()`}.
- * The `path` parameters are extracted when the {@link ngRoute.$route `$route`} path is matched.
- *
- * In case of parameter name collision, `path` params take precedence over `search` params.
- *
- * The service guarantees that the identity of the `$routeParams` object will remain unchanged
- * (but its properties will likely change) even when a route change occurs.
- *
- * Note that the `$routeParams` are only updated *after* a route change completes successfully.
- * This means that you cannot rely on `$routeParams` being correct in route resolve functions.
- * Instead you can use `$route.current.params` to access the new route's parameters.
- *
- * @example
- * ```js
- * // Given:
- * // URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby
- * // Route: /Chapter/:chapterId/Section/:sectionId
- * //
- * // Then
- * $routeParams ==> {chapterId:'1', sectionId:'2', search:'moby'}
- * ```
- */
-function $RouteParamsProvider() {
- this.$get = function() { return {}; };
-}
-
-ngRouteModule.directive('ngView', ngViewFactory);
-ngRouteModule.directive('ngView', ngViewFillContentFactory);
-
-
-/**
- * @ngdoc directive
- * @name ngView
- * @restrict ECA
- *
- * @description
- * # Overview
- * `ngView` is a directive that complements the {@link ngRoute.$route $route} service by
- * including the rendered template of the current route into the main layout (`index.html`) file.
- * Every time the current route changes, the included view changes with it according to the
- * configuration of the `$route` service.
- *
- * Requires the {@link ngRoute `ngRoute`} module to be installed.
- *
- * @animations
- * enter - animation is used to bring new content into the browser.
- * leave - animation is used to animate existing content away.
- *
- * The enter and leave animation occur concurrently.
- *
- * @scope
- * @priority 400
- * @param {string=} onload Expression to evaluate whenever the view updates.
- *
- * @param {string=} autoscroll Whether `ngView` should call {@link ng.$anchorScroll
- * $anchorScroll} to scroll the viewport after the view is updated.
- *
- * - If the attribute is not set, disable scrolling.
- * - If the attribute is set without value, enable scrolling.
- * - Otherwise enable scrolling only if the `autoscroll` attribute value evaluated
- * as an expression yields a truthy value.
- * @example
- <example name="ngView-directive" module="ngViewExample"
- deps="angular-route.js;angular-animate.js"
- animations="true" fixBase="true">
- <file name="index.html">
- <div ng-controller="MainCtrl as main">
- Choose:
- <a href="Book/Moby">Moby</a> |
- <a href="Book/Moby/ch/1">Moby: Ch1</a> |
- <a href="Book/Gatsby">Gatsby</a> |
- <a href="Book/Gatsby/ch/4?key=value">Gatsby: Ch4</a> |
- <a href="Book/Scarlet">Scarlet Letter</a><br/>
-
- <div class="view-animate-container">
- <div ng-view class="view-animate"></div>
- </div>
- <hr />
-
- <pre>$location.path() = {{main.$location.path()}}</pre>
- <pre>$route.current.templateUrl = {{main.$route.current.templateUrl}}</pre>
- <pre>$route.current.params = {{main.$route.current.params}}</pre>
- <pre>$routeParams = {{main.$routeParams}}</pre>
- </div>
- </file>
-
- <file name="book.html">
- <div>
- controller: {{book.name}}<br />
- Book Id: {{book.params.bookId}}<br />
- </div>
- </file>
-
- <file name="chapter.html">
- <div>
- controller: {{chapter.name}}<br />
- Book Id: {{chapter.params.bookId}}<br />
- Chapter Id: {{chapter.params.chapterId}}
- </div>
- </file>
-
- <file name="animations.css">
- .view-animate-container {
- position:relative;
- height:100px!important;
- background:white;
- border:1px solid black;
- height:40px;
- overflow:hidden;
- }
-
- .view-animate {
- padding:10px;
- }
-
- .view-animate.ng-enter, .view-animate.ng-leave {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
-
- display:block;
- width:100%;
- border-left:1px solid black;
-
- position:absolute;
- top:0;
- left:0;
- right:0;
- bottom:0;
- padding:10px;
- }
-
- .view-animate.ng-enter {
- left:100%;
- }
- .view-animate.ng-enter.ng-enter-active {
- left:0;
- }
- .view-animate.ng-leave.ng-leave-active {
- left:-100%;
- }
- </file>
-
- <file name="script.js">
- angular.module('ngViewExample', ['ngRoute', 'ngAnimate'])
- .config(['$routeProvider', '$locationProvider',
- function($routeProvider, $locationProvider) {
- $routeProvider
- .when('/Book/:bookId', {
- templateUrl: 'book.html',
- controller: 'BookCtrl',
- controllerAs: 'book'
- })
- .when('/Book/:bookId/ch/:chapterId', {
- templateUrl: 'chapter.html',
- controller: 'ChapterCtrl',
- controllerAs: 'chapter'
- });
-
- $locationProvider.html5Mode(true);
- }])
- .controller('MainCtrl', ['$route', '$routeParams', '$location',
- function($route, $routeParams, $location) {
- this.$route = $route;
- this.$location = $location;
- this.$routeParams = $routeParams;
- }])
- .controller('BookCtrl', ['$routeParams', function($routeParams) {
- this.name = "BookCtrl";
- this.params = $routeParams;
- }])
- .controller('ChapterCtrl', ['$routeParams', function($routeParams) {
- this.name = "ChapterCtrl";
- this.params = $routeParams;
- }]);
-
- </file>
-
- <file name="protractor.js" type="protractor">
- it('should load and compile correct template', function() {
- element(by.linkText('Moby: Ch1')).click();
- var content = element(by.css('[ng-view]')).getText();
- expect(content).toMatch(/controller\: ChapterCtrl/);
- expect(content).toMatch(/Book Id\: Moby/);
- expect(content).toMatch(/Chapter Id\: 1/);
-
- element(by.partialLinkText('Scarlet')).click();
-
- content = element(by.css('[ng-view]')).getText();
- expect(content).toMatch(/controller\: BookCtrl/);
- expect(content).toMatch(/Book Id\: Scarlet/);
- });
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc event
- * @name ngView#$viewContentLoaded
- * @eventType emit on the current ngView scope
- * @description
- * Emitted every time the ngView content is reloaded.
- */
-ngViewFactory.$inject = ['$route', '$anchorScroll', '$animate'];
-function ngViewFactory($route, $anchorScroll, $animate) {
- return {
- restrict: 'ECA',
- terminal: true,
- priority: 400,
- transclude: 'element',
- link: function(scope, $element, attr, ctrl, $transclude) {
- var currentScope,
- currentElement,
- previousLeaveAnimation,
- autoScrollExp = attr.autoscroll,
- onloadExp = attr.onload || '';
-
- scope.$on('$routeChangeSuccess', update);
- update();
-
- function cleanupLastView() {
- if (previousLeaveAnimation) {
- $animate.cancel(previousLeaveAnimation);
- previousLeaveAnimation = null;
- }
-
- if (currentScope) {
- currentScope.$destroy();
- currentScope = null;
- }
- if (currentElement) {
- previousLeaveAnimation = $animate.leave(currentElement);
- previousLeaveAnimation.then(function() {
- previousLeaveAnimation = null;
- });
- currentElement = null;
- }
- }
-
- function update() {
- var locals = $route.current && $route.current.locals,
- template = locals && locals.$template;
-
- if (angular.isDefined(template)) {
- var newScope = scope.$new();
- var current = $route.current;
-
- // Note: This will also link all children of ng-view that were contained in the original
- // html. If that content contains controllers, ... they could pollute/change the scope.
- // However, using ng-view on an element with additional content does not make sense...
- // Note: We can't remove them in the cloneAttchFn of $transclude as that
- // function is called before linking the content, which would apply child
- // directives to non existing elements.
- var clone = $transclude(newScope, function(clone) {
- $animate.enter(clone, null, currentElement || $element).then(function onNgViewEnter() {
- if (angular.isDefined(autoScrollExp)
- && (!autoScrollExp || scope.$eval(autoScrollExp))) {
- $anchorScroll();
- }
- });
- cleanupLastView();
- });
-
- currentElement = clone;
- currentScope = current.scope = newScope;
- currentScope.$emit('$viewContentLoaded');
- currentScope.$eval(onloadExp);
- } else {
- cleanupLastView();
- }
- }
- }
- };
-}
-
-// This directive is called during the $transclude call of the first `ngView` directive.
-// It will replace and compile the content of the element with the loaded template.
-// We need this directive so that the element content is already filled when
-// the link function of another directive on the same element as ngView
-// is called.
-ngViewFillContentFactory.$inject = ['$compile', '$controller', '$route'];
-function ngViewFillContentFactory($compile, $controller, $route) {
- return {
- restrict: 'ECA',
- priority: -400,
- link: function(scope, $element) {
- var current = $route.current,
- locals = current.locals;
-
- $element.html(locals.$template);
-
- var link = $compile($element.contents());
-
- if (current.controller) {
- locals.$scope = scope;
- var controller = $controller(current.controller, locals);
- if (current.controllerAs) {
- scope[current.controllerAs] = controller;
- }
- $element.data('$ngControllerController', controller);
- $element.children().data('$ngControllerController', controller);
- }
- scope[current.resolveAs || '$resolve'] = locals;
-
- link(scope);
- }
- };
-}
-
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-route/angular-route.min.js b/ecomp-portal-FE/client/bower_components/angular-route/angular-route.min.js
deleted file mode 100644
index 4d0d0187..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-route/angular-route.min.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- AngularJS v1.5.0
- (c) 2010-2016 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(r,d,C){'use strict';function x(s,h,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,c,b,f,y){function k(){n&&(g.cancel(n),n=null);l&&(l.$destroy(),l=null);m&&(n=g.leave(m),n.then(function(){n=null}),m=null)}function z(){var b=s.current&&s.current.locals;if(d.isDefined(b&&b.$template)){var b=a.$new(),f=s.current;m=y(b,function(b){g.enter(b,null,m||c).then(function(){!d.isDefined(u)||u&&!a.$eval(u)||h()});k()});l=f.scope=b;l.$emit("$viewContentLoaded");
-l.$eval(v)}else k()}var l,m,n,u=b.autoscroll,v=b.onload||"";a.$on("$routeChangeSuccess",z);z()}}}function A(d,h,g){return{restrict:"ECA",priority:-400,link:function(a,c){var b=g.current,f=b.locals;c.html(f.$template);var y=d(c.contents());if(b.controller){f.$scope=a;var k=h(b.controller,f);b.controllerAs&&(a[b.controllerAs]=k);c.data("$ngControllerController",k);c.children().data("$ngControllerController",k)}a[b.resolveAs||"$resolve"]=f;y(a)}}}r=d.module("ngRoute",["ng"]).provider("$route",function(){function s(a,
-c){return d.extend(Object.create(a),c)}function h(a,d){var b=d.caseInsensitiveMatch,f={originalPath:a,regexp:a},g=f.keys=[];a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,d,b,c){a="?"===c?c:null;c="*"===c?c:null;g.push({name:b,optional:!!a});d=d||"";return""+(a?"":d)+"(?:"+(a?d:"")+(c&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1");f.regexp=new RegExp("^"+a+"$",b?"i":"");return f}var g={};this.when=function(a,c){var b=d.copy(c);d.isUndefined(b.reloadOnSearch)&&
-(b.reloadOnSearch=!0);d.isUndefined(b.caseInsensitiveMatch)&&(b.caseInsensitiveMatch=this.caseInsensitiveMatch);g[a]=d.extend(b,a&&h(a,b));if(a){var f="/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";g[f]=d.extend({redirectTo:a},h(f,b))}return this};this.caseInsensitiveMatch=!1;this.otherwise=function(a){"string"===typeof a&&(a={redirectTo:a});this.when(null,a);return this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(a,c,b,f,h,k,r){function l(b){var e=
-t.current;(x=(p=n())&&e&&p.$$route===e.$$route&&d.equals(p.pathParams,e.pathParams)&&!p.reloadOnSearch&&!v)||!e&&!p||a.$broadcast("$routeChangeStart",p,e).defaultPrevented&&b&&b.preventDefault()}function m(){var w=t.current,e=p;if(x)w.params=e.params,d.copy(w.params,b),a.$broadcast("$routeUpdate",w);else if(e||w)v=!1,(t.current=e)&&e.redirectTo&&(d.isString(e.redirectTo)?c.path(u(e.redirectTo,e.params)).search(e.params).replace():c.url(e.redirectTo(e.pathParams,c.path(),c.search())).replace()),f.when(e).then(function(){if(e){var a=
-d.extend({},e.resolve),b,c;d.forEach(a,function(b,e){a[e]=d.isString(b)?h.get(b):h.invoke(b,null,null,e)});d.isDefined(b=e.template)?d.isFunction(b)&&(b=b(e.params)):d.isDefined(c=e.templateUrl)&&(d.isFunction(c)&&(c=c(e.params)),d.isDefined(c)&&(e.loadedTemplateUrl=r.valueOf(c),b=k(c)));d.isDefined(b)&&(a.$template=b);return f.all(a)}}).then(function(c){e==t.current&&(e&&(e.locals=c,d.copy(e.params,b)),a.$broadcast("$routeChangeSuccess",e,w))},function(b){e==t.current&&a.$broadcast("$routeChangeError",
-e,w,b)})}function n(){var a,b;d.forEach(g,function(f,g){var q;if(q=!b){var h=c.path();q=f.keys;var l={};if(f.regexp)if(h=f.regexp.exec(h)){for(var k=1,n=h.length;k<n;++k){var m=q[k-1],p=h[k];m&&p&&(l[m.name]=p)}q=l}else q=null;else q=null;q=a=q}q&&(b=s(f,{params:d.extend({},c.search(),a),pathParams:a}),b.$$route=f)});return b||g[null]&&s(g[null],{params:{},pathParams:{}})}function u(a,b){var c=[];d.forEach((a||"").split(":"),function(a,d){if(0===d)c.push(a);else{var f=a.match(/(\w+)(?:[?*])?(.*)/),
-g=f[1];c.push(b[g]);c.push(f[2]||"");delete b[g]}});return c.join("")}var v=!1,p,x,t={routes:g,reload:function(){v=!0;var b={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0;v=!1}};a.$evalAsync(function(){l(b);b.defaultPrevented||m()})},updateParams:function(a){if(this.current&&this.current.$$route)a=d.extend({},this.current.params,a),c.path(u(this.current.$$route.originalPath,a)),c.search(a);else throw B("norout");}};a.$on("$locationChangeStart",l);a.$on("$locationChangeSuccess",
-m);return t}]});var B=d.$$minErr("ngRoute");r.provider("$routeParams",function(){this.$get=function(){return{}}});r.directive("ngView",x);r.directive("ngView",A);x.$inject=["$route","$anchorScroll","$animate"];A.$inject=["$compile","$controller","$route"]})(window,window.angular);
-//# sourceMappingURL=angular-route.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular-route/angular-route.min.js.map b/ecomp-portal-FE/client/bower_components/angular-route/angular-route.min.js.map
deleted file mode 100644
index fb5cffce..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-route/angular-route.min.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-"version":3,
-"file":"angular-route.min.js",
-"lineCount":14,
-"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CAw4BtCC,QAASA,EAAa,CAACC,CAAD,CAASC,CAAT,CAAwBC,CAAxB,CAAkC,CACtD,MAAO,CACLC,SAAU,KADL,CAELC,SAAU,CAAA,CAFL,CAGLC,SAAU,GAHL,CAILC,WAAY,SAJP,CAKLC,KAAMA,QAAQ,CAACC,CAAD,CAAQC,CAAR,CAAkBC,CAAlB,CAAwBC,CAAxB,CAA8BC,CAA9B,CAA2C,CAUrDC,QAASA,EAAe,EAAG,CACrBC,CAAJ,GACEZ,CAAAa,OAAA,CAAgBD,CAAhB,CACA,CAAAA,CAAA,CAAyB,IAF3B,CAKIE,EAAJ,GACEA,CAAAC,SAAA,EACA,CAAAD,CAAA,CAAe,IAFjB,CAIIE,EAAJ,GACEJ,CAIA,CAJyBZ,CAAAiB,MAAA,CAAeD,CAAf,CAIzB,CAHAJ,CAAAM,KAAA,CAA4B,QAAQ,EAAG,CACrCN,CAAA,CAAyB,IADY,CAAvC,CAGA,CAAAI,CAAA,CAAiB,IALnB,CAVyB,CAmB3BG,QAASA,EAAM,EAAG,CAAA,IACZC,EAAStB,CAAAuB,QAATD,EAA2BtB,CAAAuB,QAAAD,OAG/B,IAAIzB,CAAA2B,UAAA,CAFWF,CAEX,EAFqBA,CAAAG,UAErB,CAAJ,CAAiC,CAC3BC,IAAAA,EAAWlB,CAAAmB,KAAA,EAAXD,CACAH,EAAUvB,CAAAuB,QAkBdL,EAAA,CAVYN,CAAAgB,CAAYF,CAAZE,CAAsB,QAAQ,CAACA,CAAD,CAAQ,CAChD1B,CAAA2B,MAAA,CAAeD,CAAf,CAAsB,IAAtB,CAA4BV,CAA5B,EAA8CT,CAA9C,CAAAW,KAAA,CAA6DU,QAAsB,EAAG,CAChF,CAAAjC,CAAA2B,UAAA,CAAkBO,CAAlB,CAAJ,EACOA,CADP,EACwB,CAAAvB,CAAAwB,MAAA,CAAYD,CAAZ,CADxB,EAEE9B,CAAA,EAHkF,CAAtF,CAMAY,EAAA,EAPgD,CAAtCe,CAWZZ,EAAA,CAAeO,CAAAf,MAAf,CAA+BkB,CAC/BV,EAAAiB,MAAA,CAAmB,oBAAnB,CACAjB;CAAAgB,MAAA,CAAmBE,CAAnB,CAvB+B,CAAjC,IAyBErB,EAAA,EA7Bc,CA7BmC,IACjDG,CADiD,CAEjDE,CAFiD,CAGjDJ,CAHiD,CAIjDiB,EAAgBrB,CAAAyB,WAJiC,CAKjDD,EAAYxB,CAAA0B,OAAZF,EAA2B,EAE/B1B,EAAA6B,IAAA,CAAU,qBAAV,CAAiChB,CAAjC,CACAA,EAAA,EARqD,CALpD,CAD+C,CA6ExDiB,QAASA,EAAwB,CAACC,CAAD,CAAWC,CAAX,CAAwBxC,CAAxB,CAAgC,CAC/D,MAAO,CACLG,SAAU,KADL,CAELE,SAAW,IAFN,CAGLE,KAAMA,QAAQ,CAACC,CAAD,CAAQC,CAAR,CAAkB,CAAA,IAC1Bc,EAAUvB,CAAAuB,QADgB,CAE1BD,EAASC,CAAAD,OAEbb,EAAAgC,KAAA,CAAcnB,CAAAG,UAAd,CAEA,KAAIlB,EAAOgC,CAAA,CAAS9B,CAAAiC,SAAA,EAAT,CAEX,IAAInB,CAAAoB,WAAJ,CAAwB,CACtBrB,CAAAsB,OAAA,CAAgBpC,CAChB,KAAImC,EAAaH,CAAA,CAAYjB,CAAAoB,WAAZ,CAAgCrB,CAAhC,CACbC,EAAAsB,aAAJ,GACErC,CAAA,CAAMe,CAAAsB,aAAN,CADF,CACgCF,CADhC,CAGAlC,EAAAqC,KAAA,CAAc,yBAAd,CAAyCH,CAAzC,CACAlC,EAAAsC,SAAA,EAAAD,KAAA,CAAyB,yBAAzB,CAAoDH,CAApD,CAPsB,CASxBnC,CAAA,CAAMe,CAAAyB,UAAN,EAA2B,UAA3B,CAAA,CAAyC1B,CAEzCf,EAAA,CAAKC,CAAL,CAnB8B,CAH3B,CADwD,CAn8B7DyC,CAAAA,CAAgBpD,CAAAqD,OAAA,CAAe,SAAf,CAA0B,CAAC,IAAD,CAA1B,CAAAC,SAAA,CACa,QADb,CAkBpBC,QAAuB,EAAG,CACxBC,QAASA,EAAO,CAACC,CAAD;AAASC,CAAT,CAAgB,CAC9B,MAAO1D,EAAA2D,OAAA,CAAeC,MAAAC,OAAA,CAAcJ,CAAd,CAAf,CAAsCC,CAAtC,CADuB,CAwKhCI,QAASA,EAAU,CAACC,CAAD,CAAOC,CAAP,CAAa,CAAA,IAC1BC,EAAcD,CAAAE,qBADY,CAE1BC,EAAM,CACJC,aAAcL,CADV,CAEJM,OAAQN,CAFJ,CAFoB,CAM1BO,EAAOH,CAAAG,KAAPA,CAAkB,EAEtBP,EAAA,CAAOA,CAAAQ,QAAA,CACI,UADJ,CACgB,MADhB,CAAAA,QAAA,CAEI,uBAFJ,CAE6B,QAAQ,CAACC,CAAD,CAAIC,CAAJ,CAAWC,CAAX,CAAgBC,CAAhB,CAAwB,CAC5DC,CAAAA,CAAsB,GAAX,GAAAD,CAAA,CAAiBA,CAAjB,CAA0B,IACrCE,EAAAA,CAAkB,GAAX,GAAAF,CAAA,CAAiBA,CAAjB,CAA0B,IACrCL,EAAAQ,KAAA,CAAU,CAAEC,KAAML,CAAR,CAAaE,SAAU,CAAEA,CAAAA,CAAzB,CAAV,CACAH,EAAA,CAAQA,CAAR,EAAiB,EACjB,OAAO,EAAP,EACKG,CAAA,CAAW,EAAX,CAAgBH,CADrB,EAEI,KAFJ,EAGKG,CAAA,CAAWH,CAAX,CAAmB,EAHxB,GAIKI,CAJL,EAIa,OAJb,EAIwB,SAJxB,GAKKD,CALL,EAKiB,EALjB,EAMI,GANJ,EAOKA,CAPL,EAOiB,EAPjB,CALgE,CAF7D,CAAAL,QAAA,CAgBI,YAhBJ,CAgBkB,MAhBlB,CAkBPJ,EAAAE,OAAA,CAAa,IAAIW,MAAJ,CAAW,GAAX,CAAiBjB,CAAjB,CAAwB,GAAxB,CAA6BE,CAAA,CAAc,GAAd,CAAoB,EAAjD,CACb,OAAOE,EA3BuB,CApKhC,IAAIc,EAAS,EAiHb,KAAAC,KAAA,CAAYC,QAAQ,CAACpB,CAAD,CAAOqB,CAAP,CAAc,CAEhC,IAAIC,EAAYrF,CAAAsF,KAAA,CAAaF,CAAb,CACZpF,EAAAuF,YAAA,CAAoBF,CAAAG,eAApB,CAAJ;CACEH,CAAAG,eADF,CAC6B,CAAA,CAD7B,CAGIxF,EAAAuF,YAAA,CAAoBF,CAAAnB,qBAApB,CAAJ,GACEmB,CAAAnB,qBADF,CACmC,IAAAA,qBADnC,CAGAe,EAAA,CAAOlB,CAAP,CAAA,CAAe/D,CAAA2D,OAAA,CACb0B,CADa,CAEbtB,CAFa,EAELD,CAAA,CAAWC,CAAX,CAAiBsB,CAAjB,CAFK,CAMf,IAAItB,CAAJ,CAAU,CACR,IAAI0B,EAAyC,GAA1B,EAAC1B,CAAA,CAAKA,CAAA2B,OAAL,CAAmB,CAAnB,CAAD,CACX3B,CAAA4B,OAAA,CAAY,CAAZ,CAAe5B,CAAA2B,OAAf,CAA6B,CAA7B,CADW,CAEX3B,CAFW,CAEJ,GAEfkB,EAAA,CAAOQ,CAAP,CAAA,CAAuBzF,CAAA2D,OAAA,CACrB,CAACiC,WAAY7B,CAAb,CADqB,CAErBD,CAAA,CAAW2B,CAAX,CAAyBJ,CAAzB,CAFqB,CALf,CAWV,MAAO,KA1ByB,CAsClC,KAAAnB,qBAAA,CAA4B,CAAA,CAuD5B,KAAA2B,UAAA,CAAiBC,QAAQ,CAACC,CAAD,CAAS,CACV,QAAtB,GAAI,MAAOA,EAAX,GACEA,CADF,CACW,CAACH,WAAYG,CAAb,CADX,CAGA,KAAAb,KAAA,CAAU,IAAV,CAAgBa,CAAhB,CACA,OAAO,KALyB,CASlC,KAAAC,KAAA,CAAY,CAAC,YAAD,CACC,WADD,CAEC,cAFD,CAGC,IAHD,CAIC,WAJD,CAKC,kBALD,CAMC,MAND,CAOR,QAAQ,CAACC,CAAD,CAAaC,CAAb,CAAwBC,CAAxB,CAAsCC,CAAtC,CAA0CC,CAA1C,CAAqDC,CAArD,CAAuEC,CAAvE,CAA6E,CAySvFC,QAASA,EAAY,CAACC,CAAD,CAAiB,CACpC,IAAIC;AAAYvG,CAAAuB,QAOhB,EAJAiF,CAIA,EALAC,CAKA,CALgBC,CAAA,EAKhB,GAJ6CH,CAI7C,EAJ0DE,CAAAE,QAI1D,GAJoFJ,CAAAI,QAIpF,EAHO9G,CAAA+G,OAAA,CAAeH,CAAAI,WAAf,CAAyCN,CAAAM,WAAzC,CAGP,EAFO,CAACJ,CAAApB,eAER,EAFwC,CAACyB,CAEzC,GAAmCP,CAAAA,CAAnC,EAAgDE,CAAAA,CAAhD,EACMX,CAAAiB,WAAA,CAAsB,mBAAtB,CAA2CN,CAA3C,CAA0DF,CAA1D,CAAAS,iBADN,EAEQV,CAFR,EAGMA,CAAAW,eAAA,EAX8B,CAiBtCC,QAASA,EAAW,EAAG,CACrB,IAAIX,EAAYvG,CAAAuB,QAAhB,CACI4F,EAAYV,CAEhB,IAAID,CAAJ,CACED,CAAAX,OAEA,CAFmBuB,CAAAvB,OAEnB,CADA/F,CAAAsF,KAAA,CAAaoB,CAAAX,OAAb,CAA+BI,CAA/B,CACA,CAAAF,CAAAiB,WAAA,CAAsB,cAAtB,CAAsCR,CAAtC,CAHF,KAIO,IAAIY,CAAJ,EAAiBZ,CAAjB,CACLO,CAcA,CAdc,CAAA,CAcd,EAbA9G,CAAAuB,QAaA,CAbiB4F,CAajB,GAXMA,CAAA1B,WAWN,GAVQ5F,CAAAuH,SAAA,CAAiBD,CAAA1B,WAAjB,CAAJ,CACEM,CAAAnC,KAAA,CAAeyD,CAAA,CAAYF,CAAA1B,WAAZ,CAAkC0B,CAAAvB,OAAlC,CAAf,CAAA0B,OAAA,CAA2EH,CAAAvB,OAA3E,CAAAxB,QAAA,EADF,CAIE2B,CAAAwB,IAAA,CAAcJ,CAAA1B,WAAA,CAAqB0B,CAAAN,WAArB,CAA2Cd,CAAAnC,KAAA,EAA3C,CAA6DmC,CAAAuB,OAAA,EAA7D,CAAd,CAAAlD,QAAA,EAMN,EAAA6B,CAAAlB,KAAA,CAAQoC,CAAR,CAAA/F,KAAA,CACO,QAAQ,EAAG,CACd,GAAI+F,CAAJ,CAAe,CAAA,IACT7F;AAASzB,CAAA2D,OAAA,CAAe,EAAf,CAAmB2D,CAAAK,QAAnB,CADA,CAETC,CAFS,CAECC,CAEd7H,EAAA8H,QAAA,CAAgBrG,CAAhB,CAAwB,QAAQ,CAACsG,CAAD,CAAQrD,CAAR,CAAa,CAC3CjD,CAAA,CAAOiD,CAAP,CAAA,CAAc1E,CAAAuH,SAAA,CAAiBQ,CAAjB,CAAA,CACV1B,CAAA2B,IAAA,CAAcD,CAAd,CADU,CACa1B,CAAA4B,OAAA,CAAiBF,CAAjB,CAAwB,IAAxB,CAA8B,IAA9B,CAAoCrD,CAApC,CAFgB,CAA7C,CAKI1E,EAAA2B,UAAA,CAAkBiG,CAAlB,CAA6BN,CAAAM,SAA7B,CAAJ,CACM5H,CAAAkI,WAAA,CAAmBN,CAAnB,CADN,GAEIA,CAFJ,CAEeA,CAAA,CAASN,CAAAvB,OAAT,CAFf,EAIW/F,CAAA2B,UAAA,CAAkBkG,CAAlB,CAAgCP,CAAAO,YAAhC,CAJX,GAKM7H,CAAAkI,WAAA,CAAmBL,CAAnB,CAGJ,GAFEA,CAEF,CAFgBA,CAAA,CAAYP,CAAAvB,OAAZ,CAEhB,EAAI/F,CAAA2B,UAAA,CAAkBkG,CAAlB,CAAJ,GACEP,CAAAa,kBACA,CAD8B5B,CAAA6B,QAAA,CAAaP,CAAb,CAC9B,CAAAD,CAAA,CAAWtB,CAAA,CAAiBuB,CAAjB,CAFb,CARF,CAaI7H,EAAA2B,UAAA,CAAkBiG,CAAlB,CAAJ,GACEnG,CAAA,UADF,CACwBmG,CADxB,CAGA,OAAOxB,EAAAiC,IAAA,CAAO5G,CAAP,CAzBM,CADD,CADlB,CAAAF,KAAA,CA8BO,QAAQ,CAACE,CAAD,CAAS,CAEhB6F,CAAJ,EAAiBnH,CAAAuB,QAAjB,GACM4F,CAIJ,GAHEA,CAAA7F,OACA,CADmBA,CACnB,CAAAzB,CAAAsF,KAAA,CAAagC,CAAAvB,OAAb,CAA+BI,CAA/B,CAEF,EAAAF,CAAAiB,WAAA,CAAsB,qBAAtB,CAA6CI,CAA7C,CAAwDZ,CAAxD,CALF,CAFoB,CA9BxB,CAuCK,QAAQ,CAAC4B,CAAD,CAAQ,CACbhB,CAAJ,EAAiBnH,CAAAuB,QAAjB,EACEuE,CAAAiB,WAAA,CAAsB,mBAAtB;AAA2CI,CAA3C,CAAsDZ,CAAtD,CAAiE4B,CAAjE,CAFe,CAvCrB,CAvBmB,CA0EvBzB,QAASA,EAAU,EAAG,CAAA,IAEhBd,CAFgB,CAERwC,CACZvI,EAAA8H,QAAA,CAAgB7C,CAAhB,CAAwB,QAAQ,CAACG,CAAD,CAAQrB,CAAR,CAAc,CACxC,IAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,IAAA,EAAA,CAAA,KAAA,EAnHbO,EAAAA,CAmHac,CAnHNd,KAAX,KACIyB,EAAS,EAEb,IAgHiBX,CAhHZf,OAAL,CAGA,GADImE,CACJ,CA6GiBpD,CA9GTf,OAAAoE,KAAA,CAAkBC,CAAlB,CACR,CAAA,CAEA,IATqC,IAS5BC,EAAI,CATwB,CASrBC,EAAMJ,CAAA9C,OAAtB,CAAgCiD,CAAhC,CAAoCC,CAApC,CAAyC,EAAED,CAA3C,CAA8C,CAC5C,IAAIjE,EAAMJ,CAAA,CAAKqE,CAAL,CAAS,CAAT,CAAV,CAEIE,EAAML,CAAA,CAAEG,CAAF,CAENjE,EAAJ,EAAWmE,CAAX,GACE9C,CAAA,CAAOrB,CAAAK,KAAP,CADF,CACqB8D,CADrB,CAL4C,CAS9C,CAAA,CAAO9C,CAXP,CAAA,IAAQ,EAAA,CAAO,IAHf,KAAmB,EAAA,CAAO,IAgHT,EAAA,CAAA,CAAA,CAAA,CAAX,CAAA,CAAJ,GACEwC,CAGA,CAHQ/E,CAAA,CAAQ4B,CAAR,CAAe,CACrBW,OAAQ/F,CAAA2D,OAAA,CAAe,EAAf,CAAmBuC,CAAAuB,OAAA,EAAnB,CAAuC1B,CAAvC,CADa,CAErBiB,WAAYjB,CAFS,CAAf,CAGR,CAAAwC,CAAAzB,QAAA,CAAgB1B,CAJlB,CAD4C,CAA9C,CASA,OAAOmD,EAAP,EAAgBtD,CAAA,CAAO,IAAP,CAAhB,EAAgCzB,CAAA,CAAQyB,CAAA,CAAO,IAAP,CAAR,CAAsB,CAACc,OAAQ,EAAT,CAAaiB,WAAW,EAAxB,CAAtB,CAZZ,CAkBtBQ,QAASA,EAAW,CAACsB,CAAD,CAAS/C,CAAT,CAAiB,CACnC,IAAIgD,EAAS,EACb/I,EAAA8H,QAAA,CAAgBkB,CAACF,CAADE,EAAW,EAAXA,OAAA,CAAqB,GAArB,CAAhB,CAA2C,QAAQ,CAACC,CAAD,CAAUN,CAAV,CAAa,CAC9D,GAAU,CAAV,GAAIA,CAAJ,CACEI,CAAAjE,KAAA,CAAYmE,CAAZ,CADF,KAEO,CACL,IAAIC,EAAeD,CAAAV,MAAA,CAAc,oBAAd,CAAnB;AACI7D,EAAMwE,CAAA,CAAa,CAAb,CACVH,EAAAjE,KAAA,CAAYiB,CAAA,CAAOrB,CAAP,CAAZ,CACAqE,EAAAjE,KAAA,CAAYoE,CAAA,CAAa,CAAb,CAAZ,EAA+B,EAA/B,CACA,QAAOnD,CAAA,CAAOrB,CAAP,CALF,CAHuD,CAAhE,CAWA,OAAOqE,EAAAI,KAAA,CAAY,EAAZ,CAb4B,CAtZkD,IAuMnFlC,EAAc,CAAA,CAvMqE,CAwMnFL,CAxMmF,CAyMnFD,CAzMmF,CA0MnFxG,EAAS,CACP8E,OAAQA,CADD,CAcPmE,OAAQA,QAAQ,EAAG,CACjBnC,CAAA,CAAc,CAAA,CAEd,KAAIoC,EAAoB,CACtBlC,iBAAkB,CAAA,CADI,CAEtBC,eAAgBkC,QAA2B,EAAG,CAC5C,IAAAnC,iBAAA,CAAwB,CAAA,CACxBF,EAAA,CAAc,CAAA,CAF8B,CAFxB,CAQxBhB,EAAAsD,WAAA,CAAsB,QAAQ,EAAG,CAC/B/C,CAAA,CAAa6C,CAAb,CACKA,EAAAlC,iBAAL,EAAyCE,CAAA,EAFV,CAAjC,CAXiB,CAdZ,CA4CPmC,aAAcA,QAAQ,CAACC,CAAD,CAAY,CAChC,GAAI,IAAA/H,QAAJ,EAAoB,IAAAA,QAAAoF,QAApB,CACE2C,CAGA,CAHYzJ,CAAA2D,OAAA,CAAe,EAAf,CAAmB,IAAAjC,QAAAqE,OAAnB,CAAwC0D,CAAxC,CAGZ,CAFAvD,CAAAnC,KAAA,CAAeyD,CAAA,CAAY,IAAA9F,QAAAoF,QAAA1C,aAAZ,CAA+CqF,CAA/C,CAAf,CAEA,CAAAvD,CAAAuB,OAAA,CAAiBgC,CAAjB,CAJF,KAME,MAAMC,EAAA,CAAa,QAAb,CAAN,CAP8B,CA5C3B,CAwDbzD,EAAAzD,IAAA,CAAe,sBAAf,CAAuCgE,CAAvC,CACAP,EAAAzD,IAAA,CAAe,wBAAf;AAAyC6E,CAAzC,CAEA,OAAOlH,EArQgF,CAP7E,CA5NY,CAlBN,CAApB,KAEIuJ,EAAe1J,CAAA2J,SAAA,CAAiB,SAAjB,CA2pBnBvG,EAAAE,SAAA,CAAuB,cAAvB,CAoCAsG,QAA6B,EAAG,CAC9B,IAAA5D,KAAA,CAAY6D,QAAQ,EAAG,CAAE,MAAO,EAAT,CADO,CApChC,CAwCAzG,EAAA0G,UAAA,CAAwB,QAAxB,CAAkC5J,CAAlC,CACAkD,EAAA0G,UAAA,CAAwB,QAAxB,CAAkCrH,CAAlC,CA+KAvC,EAAA6J,QAAA,CAAwB,CAAC,QAAD,CAAW,eAAX,CAA4B,UAA5B,CA6ExBtH,EAAAsH,QAAA,CAAmC,CAAC,UAAD,CAAa,aAAb,CAA4B,QAA5B,CAp9BG,CAArC,CAAD,CAk/BGhK,MAl/BH,CAk/BWA,MAAAC,QAl/BX;",
-"sources":["angular-route.js"],
-"names":["window","angular","undefined","ngViewFactory","$route","$anchorScroll","$animate","restrict","terminal","priority","transclude","link","scope","$element","attr","ctrl","$transclude","cleanupLastView","previousLeaveAnimation","cancel","currentScope","$destroy","currentElement","leave","then","update","locals","current","isDefined","$template","newScope","$new","clone","enter","onNgViewEnter","autoScrollExp","$eval","$emit","onloadExp","autoscroll","onload","$on","ngViewFillContentFactory","$compile","$controller","html","contents","controller","$scope","controllerAs","data","children","resolveAs","ngRouteModule","module","provider","$RouteProvider","inherit","parent","extra","extend","Object","create","pathRegExp","path","opts","insensitive","caseInsensitiveMatch","ret","originalPath","regexp","keys","replace","_","slash","key","option","optional","star","push","name","RegExp","routes","when","this.when","route","routeCopy","copy","isUndefined","reloadOnSearch","redirectPath","length","substr","redirectTo","otherwise","this.otherwise","params","$get","$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","prepareRoute","$locationEvent","lastRoute","preparedRouteIsUpdateOnly","preparedRoute","parseRoute","$$route","equals","pathParams","forceReload","$broadcast","defaultPrevented","preventDefault","commitRoute","nextRoute","isString","interpolate","search","url","resolve","template","templateUrl","forEach","value","get","invoke","isFunction","loadedTemplateUrl","valueOf","all","error","match","m","exec","on","i","len","val","string","result","split","segment","segmentMatch","join","reload","fakeLocationEvent","fakePreventDefault","$evalAsync","updateParams","newParams","$routeMinErr","$$minErr","$RouteParamsProvider","this.$get","directive","$inject"]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-route/bower.json b/ecomp-portal-FE/client/bower_components/angular-route/bower.json
deleted file mode 100644
index df7f2e5b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-route/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-route",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-route.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-route/index.js b/ecomp-portal-FE/client/bower_components/angular-route/index.js
deleted file mode 100644
index 9ed2645e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-route/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-route');
-module.exports = 'ngRoute';
diff --git a/ecomp-portal-FE/client/bower_components/angular-route/package.json b/ecomp-portal-FE/client/bower_components/angular-route/package.json
deleted file mode 100644
index 194b2739..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-route/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "angular-route",
- "version": "1.5.0",
- "description": "AngularJS router module",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "router",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org"
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-sanitize/.bower.json b/ecomp-portal-FE/client/bower_components/angular-sanitize/.bower.json
deleted file mode 100644
index e9fab16f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-sanitize/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-sanitize",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-sanitize.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- },
- "homepage": "https://github.com/angular/bower-angular-sanitize",
- "_release": "1.5.0",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.0",
- "commit": "ba852e624a011a529197a53957063712094898bf"
- },
- "_source": "https://github.com/angular/bower-angular-sanitize.git",
- "_target": "1.5.0",
- "_originalSource": "angular-sanitize"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-sanitize/README.md b/ecomp-portal-FE/client/bower_components/angular-sanitize/README.md
deleted file mode 100644
index b84aaf6d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-sanitize/README.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# packaged angular-sanitize
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngSanitize).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-sanitize
-```
-
-Then add `ngSanitize` as a dependency for your app:
-
-```javascript
-angular.module('myApp', [require('angular-sanitize')]);
-```
-
-### bower
-
-```shell
-bower install angular-sanitize
-```
-
-Add a `<script>` to your `index.html`:
-
-```html
-<script src="/bower_components/angular-sanitize/angular-sanitize.js"></script>
-```
-
-Then add `ngSanitize` as a dependency for your app:
-
-```javascript
-angular.module('myApp', ['ngSanitize']);
-```
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/api/ngSanitize).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.js b/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.js
deleted file mode 100644
index 8b610c76..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.js
+++ /dev/null
@@ -1,717 +0,0 @@
-/**
- * @license AngularJS v1.5.0
- * (c) 2010-2016 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular, undefined) {'use strict';
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables likes document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-var $sanitizeMinErr = angular.$$minErr('$sanitize');
-
-/**
- * @ngdoc module
- * @name ngSanitize
- * @description
- *
- * # ngSanitize
- *
- * The `ngSanitize` module provides functionality to sanitize HTML.
- *
- *
- * <div doc-module-components="ngSanitize"></div>
- *
- * See {@link ngSanitize.$sanitize `$sanitize`} for usage.
- */
-
-/**
- * @ngdoc service
- * @name $sanitize
- * @kind function
- *
- * @description
- * Sanitizes an html string by stripping all potentially dangerous tokens.
- *
- * The input is sanitized by parsing the HTML into tokens. All safe tokens (from a whitelist) are
- * then serialized back to properly escaped html string. This means that no unsafe input can make
- * it into the returned string.
- *
- * The whitelist for URL sanitization of attribute values is configured using the functions
- * `aHrefSanitizationWhitelist` and `imgSrcSanitizationWhitelist` of {@link ng.$compileProvider
- * `$compileProvider`}.
- *
- * The input may also contain SVG markup if this is enabled via {@link $sanitizeProvider}.
- *
- * @param {string} html HTML input.
- * @returns {string} Sanitized HTML.
- *
- * @example
- <example module="sanitizeExample" deps="angular-sanitize.js">
- <file name="index.html">
- <script>
- angular.module('sanitizeExample', ['ngSanitize'])
- .controller('ExampleController', ['$scope', '$sce', function($scope, $sce) {
- $scope.snippet =
- '<p style="color:blue">an html\n' +
- '<em onmouseover="this.textContent=\'PWN3D!\'">click here</em>\n' +
- 'snippet</p>';
- $scope.deliberatelyTrustDangerousSnippet = function() {
- return $sce.trustAsHtml($scope.snippet);
- };
- }]);
- </script>
- <div ng-controller="ExampleController">
- Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
- <table>
- <tr>
- <td>Directive</td>
- <td>How</td>
- <td>Source</td>
- <td>Rendered</td>
- </tr>
- <tr id="bind-html-with-sanitize">
- <td>ng-bind-html</td>
- <td>Automatically uses $sanitize</td>
- <td><pre>&lt;div ng-bind-html="snippet"&gt;<br/>&lt;/div&gt;</pre></td>
- <td><div ng-bind-html="snippet"></div></td>
- </tr>
- <tr id="bind-html-with-trust">
- <td>ng-bind-html</td>
- <td>Bypass $sanitize by explicitly trusting the dangerous value</td>
- <td>
- <pre>&lt;div ng-bind-html="deliberatelyTrustDangerousSnippet()"&gt;
-&lt;/div&gt;</pre>
- </td>
- <td><div ng-bind-html="deliberatelyTrustDangerousSnippet()"></div></td>
- </tr>
- <tr id="bind-default">
- <td>ng-bind</td>
- <td>Automatically escapes</td>
- <td><pre>&lt;div ng-bind="snippet"&gt;<br/>&lt;/div&gt;</pre></td>
- <td><div ng-bind="snippet"></div></td>
- </tr>
- </table>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should sanitize the html snippet by default', function() {
- expect(element(by.css('#bind-html-with-sanitize div')).getInnerHtml()).
- toBe('<p>an html\n<em>click here</em>\nsnippet</p>');
- });
-
- it('should inline raw snippet if bound to a trusted value', function() {
- expect(element(by.css('#bind-html-with-trust div')).getInnerHtml()).
- toBe("<p style=\"color:blue\">an html\n" +
- "<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" +
- "snippet</p>");
- });
-
- it('should escape snippet without any filter', function() {
- expect(element(by.css('#bind-default div')).getInnerHtml()).
- toBe("&lt;p style=\"color:blue\"&gt;an html\n" +
- "&lt;em onmouseover=\"this.textContent='PWN3D!'\"&gt;click here&lt;/em&gt;\n" +
- "snippet&lt;/p&gt;");
- });
-
- it('should update', function() {
- element(by.model('snippet')).clear();
- element(by.model('snippet')).sendKeys('new <b onclick="alert(1)">text</b>');
- expect(element(by.css('#bind-html-with-sanitize div')).getInnerHtml()).
- toBe('new <b>text</b>');
- expect(element(by.css('#bind-html-with-trust div')).getInnerHtml()).toBe(
- 'new <b onclick="alert(1)">text</b>');
- expect(element(by.css('#bind-default div')).getInnerHtml()).toBe(
- "new &lt;b onclick=\"alert(1)\"&gt;text&lt;/b&gt;");
- });
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc provider
- * @name $sanitizeProvider
- *
- * @description
- * Creates and configures {@link $sanitize} instance.
- */
-function $SanitizeProvider() {
- var svgEnabled = false;
-
- this.$get = ['$$sanitizeUri', function($$sanitizeUri) {
- if (svgEnabled) {
- angular.extend(validElements, svgElements);
- }
- return function(html) {
- var buf = [];
- htmlParser(html, htmlSanitizeWriter(buf, function(uri, isImage) {
- return !/^unsafe:/.test($$sanitizeUri(uri, isImage));
- }));
- return buf.join('');
- };
- }];
-
-
- /**
- * @ngdoc method
- * @name $sanitizeProvider#enableSvg
- * @kind function
- *
- * @description
- * Enables a subset of svg to be supported by the sanitizer.
- *
- * <div class="alert alert-warning">
- * <p>By enabling this setting without taking other precautions, you might expose your
- * application to click-hijacking attacks. In these attacks, sanitized svg elements could be positioned
- * outside of the containing element and be rendered over other elements on the page (e.g. a login
- * link). Such behavior can then result in phishing incidents.</p>
- *
- * <p>To protect against these, explicitly setup `overflow: hidden` css rule for all potential svg
- * tags within the sanitized content:</p>
- *
- * <br>
- *
- * <pre><code>
- * .rootOfTheIncludedContent svg {
- * overflow: hidden !important;
- * }
- * </code></pre>
- * </div>
- *
- * @param {boolean=} regexp New regexp to whitelist urls with.
- * @returns {boolean|ng.$sanitizeProvider} Returns the currently configured value if called
- * without an argument or self for chaining otherwise.
- */
- this.enableSvg = function(enableSvg) {
- if (angular.isDefined(enableSvg)) {
- svgEnabled = enableSvg;
- return this;
- } else {
- return svgEnabled;
- }
- };
-}
-
-function sanitizeText(chars) {
- var buf = [];
- var writer = htmlSanitizeWriter(buf, angular.noop);
- writer.chars(chars);
- return buf.join('');
-}
-
-
-// Regular Expressions for parsing tags and attributes
-var SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
- // Match everything outside of normal chars and " (quote character)
- NON_ALPHANUMERIC_REGEXP = /([^\#-~ |!])/g;
-
-
-// Good source of info about elements and attributes
-// http://dev.w3.org/html5/spec/Overview.html#semantics
-// http://simon.html5.org/html-elements
-
-// Safe Void Elements - HTML5
-// http://dev.w3.org/html5/spec/Overview.html#void-elements
-var voidElements = toMap("area,br,col,hr,img,wbr");
-
-// Elements that you can, intentionally, leave open (and which close themselves)
-// http://dev.w3.org/html5/spec/Overview.html#optional-tags
-var optionalEndTagBlockElements = toMap("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),
- optionalEndTagInlineElements = toMap("rp,rt"),
- optionalEndTagElements = angular.extend({},
- optionalEndTagInlineElements,
- optionalEndTagBlockElements);
-
-// Safe Block Elements - HTML5
-var blockElements = angular.extend({}, optionalEndTagBlockElements, toMap("address,article," +
- "aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5," +
- "h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul"));
-
-// Inline Elements - HTML5
-var inlineElements = angular.extend({}, optionalEndTagInlineElements, toMap("a,abbr,acronym,b," +
- "bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s," +
- "samp,small,span,strike,strong,sub,sup,time,tt,u,var"));
-
-// SVG Elements
-// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Elements
-// Note: the elements animate,animateColor,animateMotion,animateTransform,set are intentionally omitted.
-// They can potentially allow for arbitrary javascript to be executed. See #11290
-var svgElements = toMap("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph," +
- "hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline," +
- "radialGradient,rect,stop,svg,switch,text,title,tspan");
-
-// Blocked Elements (will be stripped)
-var blockedElements = toMap("script,style");
-
-var validElements = angular.extend({},
- voidElements,
- blockElements,
- inlineElements,
- optionalEndTagElements);
-
-//Attributes that have href and hence need to be sanitized
-var uriAttrs = toMap("background,cite,href,longdesc,src,xlink:href");
-
-var htmlAttrs = toMap('abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,' +
- 'color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,' +
- 'ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,' +
- 'scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,' +
- 'valign,value,vspace,width');
-
-// SVG attributes (without "id" and "name" attributes)
-// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes
-var svgAttrs = toMap('accent-height,accumulate,additive,alphabetic,arabic-form,ascent,' +
- 'baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,' +
- 'cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,' +
- 'font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,' +
- 'height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,' +
- 'marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,' +
- 'max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,' +
- 'path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,' +
- 'requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,' +
- 'stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,' +
- 'stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,' +
- 'stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,' +
- 'underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,' +
- 'width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,' +
- 'xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan', true);
-
-var validAttrs = angular.extend({},
- uriAttrs,
- svgAttrs,
- htmlAttrs);
-
-function toMap(str, lowercaseKeys) {
- var obj = {}, items = str.split(','), i;
- for (i = 0; i < items.length; i++) {
- obj[lowercaseKeys ? angular.lowercase(items[i]) : items[i]] = true;
- }
- return obj;
-}
-
-var inertBodyElement;
-(function(window) {
- var doc;
- if (window.document && window.document.implementation) {
- doc = window.document.implementation.createHTMLDocument("inert");
- } else {
- throw $sanitizeMinErr('noinert', "Can't create an inert html document");
- }
- var docElement = doc.documentElement || doc.getDocumentElement();
- var bodyElements = docElement.getElementsByTagName('body');
-
- // usually there should be only one body element in the document, but IE doesn't have any, so we need to create one
- if (bodyElements.length === 1) {
- inertBodyElement = bodyElements[0];
- } else {
- var html = doc.createElement('html');
- inertBodyElement = doc.createElement('body');
- html.appendChild(inertBodyElement);
- doc.appendChild(html);
- }
-})(window);
-
-/**
- * @example
- * htmlParser(htmlString, {
- * start: function(tag, attrs) {},
- * end: function(tag) {},
- * chars: function(text) {},
- * comment: function(text) {}
- * });
- *
- * @param {string} html string
- * @param {object} handler
- */
-function htmlParser(html, handler) {
- if (html === null || html === undefined) {
- html = '';
- } else if (typeof html !== 'string') {
- html = '' + html;
- }
- inertBodyElement.innerHTML = html;
-
- //mXSS protection
- var mXSSAttempts = 5;
- do {
- if (mXSSAttempts === 0) {
- throw $sanitizeMinErr('uinput', "Failed to sanitize html because the input is unstable");
- }
- mXSSAttempts--;
-
- // strip custom-namespaced attributes on IE<=11
- if (document.documentMode <= 11) {
- stripCustomNsAttrs(inertBodyElement);
- }
- html = inertBodyElement.innerHTML; //trigger mXSS
- inertBodyElement.innerHTML = html;
- } while (html !== inertBodyElement.innerHTML);
-
- var node = inertBodyElement.firstChild;
- while (node) {
- switch (node.nodeType) {
- case 1: // ELEMENT_NODE
- handler.start(node.nodeName.toLowerCase(), attrToMap(node.attributes));
- break;
- case 3: // TEXT NODE
- handler.chars(node.textContent);
- break;
- }
-
- var nextNode;
- if (!(nextNode = node.firstChild)) {
- if (node.nodeType == 1) {
- handler.end(node.nodeName.toLowerCase());
- }
- nextNode = node.nextSibling;
- if (!nextNode) {
- while (nextNode == null) {
- node = node.parentNode;
- if (node === inertBodyElement) break;
- nextNode = node.nextSibling;
- if (node.nodeType == 1) {
- handler.end(node.nodeName.toLowerCase());
- }
- }
- }
- }
- node = nextNode;
- }
-
- while (node = inertBodyElement.firstChild) {
- inertBodyElement.removeChild(node);
- }
-}
-
-function attrToMap(attrs) {
- var map = {};
- for (var i = 0, ii = attrs.length; i < ii; i++) {
- var attr = attrs[i];
- map[attr.name] = attr.value;
- }
- return map;
-}
-
-
-/**
- * Escapes all potentially dangerous characters, so that the
- * resulting string can be safely inserted into attribute or
- * element text.
- * @param value
- * @returns {string} escaped text
- */
-function encodeEntities(value) {
- return value.
- replace(/&/g, '&amp;').
- replace(SURROGATE_PAIR_REGEXP, function(value) {
- var hi = value.charCodeAt(0);
- var low = value.charCodeAt(1);
- return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';';
- }).
- replace(NON_ALPHANUMERIC_REGEXP, function(value) {
- return '&#' + value.charCodeAt(0) + ';';
- }).
- replace(/</g, '&lt;').
- replace(/>/g, '&gt;');
-}
-
-/**
- * create an HTML/XML writer which writes to buffer
- * @param {Array} buf use buf.join('') to get out sanitized html string
- * @returns {object} in the form of {
- * start: function(tag, attrs) {},
- * end: function(tag) {},
- * chars: function(text) {},
- * comment: function(text) {}
- * }
- */
-function htmlSanitizeWriter(buf, uriValidator) {
- var ignoreCurrentElement = false;
- var out = angular.bind(buf, buf.push);
- return {
- start: function(tag, attrs) {
- tag = angular.lowercase(tag);
- if (!ignoreCurrentElement && blockedElements[tag]) {
- ignoreCurrentElement = tag;
- }
- if (!ignoreCurrentElement && validElements[tag] === true) {
- out('<');
- out(tag);
- angular.forEach(attrs, function(value, key) {
- var lkey=angular.lowercase(key);
- var isImage = (tag === 'img' && lkey === 'src') || (lkey === 'background');
- if (validAttrs[lkey] === true &&
- (uriAttrs[lkey] !== true || uriValidator(value, isImage))) {
- out(' ');
- out(key);
- out('="');
- out(encodeEntities(value));
- out('"');
- }
- });
- out('>');
- }
- },
- end: function(tag) {
- tag = angular.lowercase(tag);
- if (!ignoreCurrentElement && validElements[tag] === true && voidElements[tag] !== true) {
- out('</');
- out(tag);
- out('>');
- }
- if (tag == ignoreCurrentElement) {
- ignoreCurrentElement = false;
- }
- },
- chars: function(chars) {
- if (!ignoreCurrentElement) {
- out(encodeEntities(chars));
- }
- }
- };
-}
-
-
-/**
- * When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1' attribute to declare
- * ns1 namespace and prefixes the attribute with 'ns1' (e.g. 'ns1:xlink:foo'). This is undesirable since we don't want
- * to allow any of these custom attributes. This method strips them all.
- *
- * @param node Root element to process
- */
-function stripCustomNsAttrs(node) {
- if (node.nodeType === Node.ELEMENT_NODE) {
- var attrs = node.attributes;
- for (var i = 0, l = attrs.length; i < l; i++) {
- var attrNode = attrs[i];
- var attrName = attrNode.name.toLowerCase();
- if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {
- node.removeAttributeNode(attrNode);
- i--;
- l--;
- }
- }
- }
-
- var nextNode = node.firstChild;
- if (nextNode) {
- stripCustomNsAttrs(nextNode);
- }
-
- nextNode = node.nextSibling;
- if (nextNode) {
- stripCustomNsAttrs(nextNode);
- }
-}
-
-
-
-// define ngSanitize module and register $sanitize service
-angular.module('ngSanitize', []).provider('$sanitize', $SanitizeProvider);
-
-/* global sanitizeText: false */
-
-/**
- * @ngdoc filter
- * @name linky
- * @kind function
- *
- * @description
- * Finds links in text input and turns them into html links. Supports `http/https/ftp/mailto` and
- * plain email address links.
- *
- * Requires the {@link ngSanitize `ngSanitize`} module to be installed.
- *
- * @param {string} text Input text.
- * @param {string} target Window (`_blank|_self|_parent|_top`) or named frame to open links in.
- * @param {object|function(url)} [attributes] Add custom attributes to the link element.
- *
- * Can be one of:
- *
- * - `object`: A map of attributes
- * - `function`: Takes the url as a parameter and returns a map of attributes
- *
- * If the map of attributes contains a value for `target`, it overrides the value of
- * the target parameter.
- *
- *
- * @returns {string} Html-linkified and {@link $sanitize sanitized} text.
- *
- * @usage
- <span ng-bind-html="linky_expression | linky"></span>
- *
- * @example
- <example module="linkyExample" deps="angular-sanitize.js">
- <file name="index.html">
- <div ng-controller="ExampleController">
- Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
- <table>
- <tr>
- <th>Filter</th>
- <th>Source</th>
- <th>Rendered</th>
- </tr>
- <tr id="linky-filter">
- <td>linky filter</td>
- <td>
- <pre>&lt;div ng-bind-html="snippet | linky"&gt;<br>&lt;/div&gt;</pre>
- </td>
- <td>
- <div ng-bind-html="snippet | linky"></div>
- </td>
- </tr>
- <tr id="linky-target">
- <td>linky target</td>
- <td>
- <pre>&lt;div ng-bind-html="snippetWithSingleURL | linky:'_blank'"&gt;<br>&lt;/div&gt;</pre>
- </td>
- <td>
- <div ng-bind-html="snippetWithSingleURL | linky:'_blank'"></div>
- </td>
- </tr>
- <tr id="linky-custom-attributes">
- <td>linky custom attributes</td>
- <td>
- <pre>&lt;div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}"&gt;<br>&lt;/div&gt;</pre>
- </td>
- <td>
- <div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}"></div>
- </td>
- </tr>
- <tr id="escaped-html">
- <td>no filter</td>
- <td><pre>&lt;div ng-bind="snippet"&gt;<br>&lt;/div&gt;</pre></td>
- <td><div ng-bind="snippet"></div></td>
- </tr>
- </table>
- </file>
- <file name="script.js">
- angular.module('linkyExample', ['ngSanitize'])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.snippet =
- 'Pretty text with some links:\n'+
- 'http://angularjs.org/,\n'+
- 'mailto:us@somewhere.org,\n'+
- 'another@somewhere.org,\n'+
- 'and one more: ftp://127.0.0.1/.';
- $scope.snippetWithSingleURL = 'http://angularjs.org/';
- }]);
- </file>
- <file name="protractor.js" type="protractor">
- it('should linkify the snippet with urls', function() {
- expect(element(by.id('linky-filter')).element(by.binding('snippet | linky')).getText()).
- toBe('Pretty text with some links: http://angularjs.org/, us@somewhere.org, ' +
- 'another@somewhere.org, and one more: ftp://127.0.0.1/.');
- expect(element.all(by.css('#linky-filter a')).count()).toEqual(4);
- });
-
- it('should not linkify snippet without the linky filter', function() {
- expect(element(by.id('escaped-html')).element(by.binding('snippet')).getText()).
- toBe('Pretty text with some links: http://angularjs.org/, mailto:us@somewhere.org, ' +
- 'another@somewhere.org, and one more: ftp://127.0.0.1/.');
- expect(element.all(by.css('#escaped-html a')).count()).toEqual(0);
- });
-
- it('should update', function() {
- element(by.model('snippet')).clear();
- element(by.model('snippet')).sendKeys('new http://link.');
- expect(element(by.id('linky-filter')).element(by.binding('snippet | linky')).getText()).
- toBe('new http://link.');
- expect(element.all(by.css('#linky-filter a')).count()).toEqual(1);
- expect(element(by.id('escaped-html')).element(by.binding('snippet')).getText())
- .toBe('new http://link.');
- });
-
- it('should work with the target property', function() {
- expect(element(by.id('linky-target')).
- element(by.binding("snippetWithSingleURL | linky:'_blank'")).getText()).
- toBe('http://angularjs.org/');
- expect(element(by.css('#linky-target a')).getAttribute('target')).toEqual('_blank');
- });
-
- it('should optionally add custom attributes', function() {
- expect(element(by.id('linky-custom-attributes')).
- element(by.binding("snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}")).getText()).
- toBe('http://angularjs.org/');
- expect(element(by.css('#linky-custom-attributes a')).getAttribute('rel')).toEqual('nofollow');
- });
- </file>
- </example>
- */
-angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {
- var LINKY_URL_REGEXP =
- /((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,
- MAILTO_REGEXP = /^mailto:/i;
-
- var linkyMinErr = angular.$$minErr('linky');
- var isString = angular.isString;
-
- return function(text, target, attributes) {
- if (text == null || text === '') return text;
- if (!isString(text)) throw linkyMinErr('notstring', 'Expected string but received: {0}', text);
-
- var match;
- var raw = text;
- var html = [];
- var url;
- var i;
- while ((match = raw.match(LINKY_URL_REGEXP))) {
- // We can not end in these as they are sometimes found at the end of the sentence
- url = match[0];
- // if we did not match ftp/http/www/mailto then assume mailto
- if (!match[2] && !match[4]) {
- url = (match[3] ? 'http://' : 'mailto:') + url;
- }
- i = match.index;
- addText(raw.substr(0, i));
- addLink(url, match[0].replace(MAILTO_REGEXP, ''));
- raw = raw.substring(i + match[0].length);
- }
- addText(raw);
- return $sanitize(html.join(''));
-
- function addText(text) {
- if (!text) {
- return;
- }
- html.push(sanitizeText(text));
- }
-
- function addLink(url, text) {
- var key;
- html.push('<a ');
- if (angular.isFunction(attributes)) {
- attributes = attributes(url);
- }
- if (angular.isObject(attributes)) {
- for (key in attributes) {
- html.push(key + '="' + attributes[key] + '" ');
- }
- } else {
- attributes = {};
- }
- if (angular.isDefined(target) && !('target' in attributes)) {
- html.push('target="',
- target,
- '" ');
- }
- html.push('href="',
- url.replace(/"/g, '&quot;'),
- '">');
- addText(text);
- html.push('</a>');
- }
- };
-}]);
-
-
-})(window, window.angular);
diff --git a/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.min.js b/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.min.js
deleted file mode 100644
index 135d5a0e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.min.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- AngularJS v1.5.0
- (c) 2010-2016 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(A,e,B){'use strict';function C(a){var c=[];v(c,e.noop).chars(a);return c.join("")}function h(a,c){var b={},d=a.split(","),l;for(l=0;l<d.length;l++)b[c?e.lowercase(d[l]):d[l]]=!0;return b}function D(a,c){null===a||a===B?a="":"string"!==typeof a&&(a=""+a);g.innerHTML=a;var b=5;do{if(0===b)throw w("uinput");b--;11>=document.documentMode&&n(g);a=g.innerHTML;g.innerHTML=a}while(a!==g.innerHTML);for(b=g.firstChild;b;){switch(b.nodeType){case 1:c.start(b.nodeName.toLowerCase(),E(b.attributes));
-break;case 3:c.chars(b.textContent)}var d;if(!(d=b.firstChild)&&(1==b.nodeType&&c.end(b.nodeName.toLowerCase()),d=b.nextSibling,!d))for(;null==d;){b=b.parentNode;if(b===g)break;d=b.nextSibling;1==b.nodeType&&c.end(b.nodeName.toLowerCase())}b=d}for(;b=g.firstChild;)g.removeChild(b)}function E(a){for(var c={},b=0,d=a.length;b<d;b++){var l=a[b];c[l.name]=l.value}return c}function x(a){return a.replace(/&/g,"&amp;").replace(F,function(a){var b=a.charCodeAt(0);a=a.charCodeAt(1);return"&#"+(1024*(b-55296)+
-(a-56320)+65536)+";"}).replace(G,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function v(a,c){var b=!1,d=e.bind(a,a.push);return{start:function(a,f){a=e.lowercase(a);!b&&H[a]&&(b=a);b||!0!==t[a]||(d("<"),d(a),e.forEach(f,function(b,f){var g=e.lowercase(f),h="img"===a&&"src"===g||"background"===g;!0!==I[g]||!0===y[g]&&!c(b,h)||(d(" "),d(f),d('="'),d(x(b)),d('"'))}),d(">"))},end:function(a){a=e.lowercase(a);b||!0!==t[a]||!0===z[a]||(d("</"),d(a),d(">"));a==
-b&&(b=!1)},chars:function(a){b||d(x(a))}}}function n(a){if(a.nodeType===Node.ELEMENT_NODE)for(var c=a.attributes,b=0,d=c.length;b<d;b++){var e=c[b],f=e.name.toLowerCase();if("xmlns:ns1"===f||0===f.indexOf("ns1:"))a.removeAttributeNode(e),b--,d--}(c=a.firstChild)&&n(c);(c=a.nextSibling)&&n(c)}var w=e.$$minErr("$sanitize"),F=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,G=/([^\#-~ |!])/g,z=h("area,br,col,hr,img,wbr"),q=h("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),k=h("rp,rt"),u=e.extend({},k,q),q=e.extend({},
-q,h("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),k=e.extend({},k,h("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),J=h("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),
-H=h("script,style"),t=e.extend({},z,q,k,u),y=h("background,cite,href,longdesc,src,xlink:href"),u=h("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),k=h("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",
-!0),I=e.extend({},y,k,u),g;(function(a){if(a.document&&a.document.implementation)a=a.document.implementation.createHTMLDocument("inert");else throw w("noinert");var c=(a.documentElement||a.getDocumentElement()).getElementsByTagName("body");1===c.length?g=c[0]:(c=a.createElement("html"),g=a.createElement("body"),c.appendChild(g),a.appendChild(c))})(A);e.module("ngSanitize",[]).provider("$sanitize",function(){var a=!1;this.$get=["$$sanitizeUri",function(c){a&&e.extend(t,J);return function(a){var d=
-[];D(a,v(d,function(a,b){return!/^unsafe:/.test(c(a,b))}));return d.join("")}}];this.enableSvg=function(c){return e.isDefined(c)?(a=c,this):a}});e.module("ngSanitize").filter("linky",["$sanitize",function(a){var c=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,b=/^mailto:/i,d=e.$$minErr("linky"),g=e.isString;return function(f,h,m){function k(a){a&&p.push(C(a))}function q(a,b){var c;p.push("<a ");e.isFunction(m)&&(m=m(a));if(e.isObject(m))for(c in m)p.push(c+
-'="'+m[c]+'" ');else m={};!e.isDefined(h)||"target"in m||p.push('target="',h,'" ');p.push('href="',a.replace(/"/g,"&quot;"),'">');k(b);p.push("</a>")}if(null==f||""===f)return f;if(!g(f))throw d("notstring",f);for(var r=f,p=[],s,n;f=r.match(c);)s=f[0],f[2]||f[4]||(s=(f[3]?"http://":"mailto:")+s),n=f.index,k(r.substr(0,n)),q(s,f[0].replace(b,"")),r=r.substring(n+f[0].length);k(r);return a(p.join(""))}}])})(window,window.angular);
-//# sourceMappingURL=angular-sanitize.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.min.js.map b/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.min.js.map
deleted file mode 100644
index 7276abd2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-sanitize/angular-sanitize.min.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-"version":3,
-"file":"angular-sanitize.min.js",
-"lineCount":14,
-"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CAsMtCC,QAASA,EAAY,CAACC,CAAD,CAAQ,CAC3B,IAAIC,EAAM,EACGC,EAAAC,CAAmBF,CAAnBE,CAAwBN,CAAAO,KAAxBD,CACbH,MAAA,CAAaA,CAAb,CACA,OAAOC,EAAAI,KAAA,CAAS,EAAT,CAJoB,CAyF7BC,QAASA,EAAK,CAACC,CAAD,CAAMC,CAAN,CAAqB,CAAA,IAC7BC,EAAM,EADuB,CACnBC,EAAQH,CAAAI,MAAA,CAAU,GAAV,CADW,CACKC,CACtC,KAAKA,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBF,CAAAG,OAAhB,CAA8BD,CAAA,EAA9B,CACEH,CAAA,CAAID,CAAA,CAAgBX,CAAAiB,UAAA,CAAkBJ,CAAA,CAAME,CAAN,CAAlB,CAAhB,CAA8CF,CAAA,CAAME,CAAN,CAAlD,CAAA,CAA8D,CAAA,CAEhE,OAAOH,EAL0B,CA0CnCM,QAASA,EAAU,CAACC,CAAD,CAAOC,CAAP,CAAgB,CACpB,IAAb,GAAID,CAAJ,EAAqBA,CAArB,GAA8BlB,CAA9B,CACEkB,CADF,CACS,EADT,CAE2B,QAF3B,GAEW,MAAOA,EAFlB,GAGEA,CAHF,CAGS,EAHT,CAGcA,CAHd,CAKAE,EAAAC,UAAA,CAA6BH,CAG7B,KAAII,EAAe,CACnB,GAAG,CACD,GAAqB,CAArB,GAAIA,CAAJ,CACE,KAAMC,EAAA,CAAgB,QAAhB,CAAN,CAEFD,CAAA,EAG6B,GAA7B,EAAIE,QAAAC,aAAJ,EACEC,CAAA,CAAmBN,CAAnB,CAEFF,EAAA,CAAOE,CAAAC,UACPD,EAAAC,UAAA,CAA6BH,CAX5B,CAAH,MAYSA,CAZT,GAYkBE,CAAAC,UAZlB,CAeA,KADIM,CACJ,CADWP,CAAAQ,WACX,CAAOD,CAAP,CAAA,CAAa,CACX,OAAQA,CAAAE,SAAR,EACE,KAAK,CAAL,CACEV,CAAAW,MAAA,CAAcH,CAAAI,SAAAC,YAAA,EAAd,CAA2CC,CAAA,CAAUN,CAAAO,WAAV,CAA3C,CACA;KACF,MAAK,CAAL,CACEf,CAAAjB,MAAA,CAAcyB,CAAAQ,YAAd,CALJ,CASA,IAAIC,CACJ,IAAM,EAAAA,CAAA,CAAWT,CAAAC,WAAX,CAAN,GACuB,CAIhBQ,EAJDT,CAAAE,SAICO,EAHHjB,CAAAkB,IAAA,CAAYV,CAAAI,SAAAC,YAAA,EAAZ,CAGGI,CADLA,CACKA,CADMT,CAAAW,YACNF,CAAAA,CAAAA,CALP,EAMI,IAAA,CAAmB,IAAnB,EAAOA,CAAP,CAAA,CAAyB,CACvBT,CAAA,CAAOA,CAAAY,WACP,IAAIZ,CAAJ,GAAaP,CAAb,CAA+B,KAC/BgB,EAAA,CAAWT,CAAAW,YACU,EAArB,EAAIX,CAAAE,SAAJ,EACEV,CAAAkB,IAAA,CAAYV,CAAAI,SAAAC,YAAA,EAAZ,CALqB,CAU7BL,CAAA,CAAOS,CA3BI,CA8Bb,IAAA,CAAOT,CAAP,CAAcP,CAAAQ,WAAd,CAAA,CACER,CAAAoB,YAAA,CAA6Bb,CAA7B,CAxD+B,CA4DnCM,QAASA,EAAS,CAACQ,CAAD,CAAQ,CAExB,IADA,IAAIC,EAAM,EAAV,CACS5B,EAAI,CADb,CACgB6B,EAAKF,CAAA1B,OAArB,CAAmCD,CAAnC,CAAuC6B,CAAvC,CAA2C7B,CAAA,EAA3C,CAAgD,CAC9C,IAAI8B,EAAOH,CAAA,CAAM3B,CAAN,CACX4B,EAAA,CAAIE,CAAAC,KAAJ,CAAA,CAAiBD,CAAAE,MAF6B,CAIhD,MAAOJ,EANiB,CAiB1BK,QAASA,EAAc,CAACD,CAAD,CAAQ,CAC7B,MAAOA,EAAAE,QAAA,CACG,IADH,CACS,OADT,CAAAA,QAAA,CAEGC,CAFH,CAE0B,QAAQ,CAACH,CAAD,CAAQ,CAC7C,IAAII,EAAKJ,CAAAK,WAAA,CAAiB,CAAjB,CACLC,EAAAA,CAAMN,CAAAK,WAAA,CAAiB,CAAjB,CACV,OAAO,IAAP,EAAgC,IAAhC,EAAiBD,CAAjB,CAAsB,KAAtB;CAA0CE,CAA1C,CAAgD,KAAhD,EAA0D,KAA1D,EAAqE,GAHxB,CAF1C,CAAAJ,QAAA,CAOGK,CAPH,CAO4B,QAAQ,CAACP,CAAD,CAAQ,CAC/C,MAAO,IAAP,CAAcA,CAAAK,WAAA,CAAiB,CAAjB,CAAd,CAAoC,GADW,CAP5C,CAAAH,QAAA,CAUG,IAVH,CAUS,MAVT,CAAAA,QAAA,CAWG,IAXH,CAWS,MAXT,CADsB,CAyB/B5C,QAASA,EAAkB,CAACD,CAAD,CAAMmD,CAAN,CAAoB,CAC7C,IAAIC,EAAuB,CAAA,CAA3B,CACIC,EAAMzD,CAAA0D,KAAA,CAAatD,CAAb,CAAkBA,CAAAuD,KAAlB,CACV,OAAO,CACL5B,MAAOA,QAAQ,CAAC6B,CAAD,CAAMlB,CAAN,CAAa,CAC1BkB,CAAA,CAAM5D,CAAAiB,UAAA,CAAkB2C,CAAlB,CACDJ,EAAAA,CAAL,EAA6BK,CAAA,CAAgBD,CAAhB,CAA7B,GACEJ,CADF,CACyBI,CADzB,CAGKJ,EAAL,EAAoD,CAAA,CAApD,GAA6BM,CAAA,CAAcF,CAAd,CAA7B,GACEH,CAAA,CAAI,GAAJ,CAcA,CAbAA,CAAA,CAAIG,CAAJ,CAaA,CAZA5D,CAAA+D,QAAA,CAAgBrB,CAAhB,CAAuB,QAAQ,CAACK,CAAD,CAAQiB,CAAR,CAAa,CAC1C,IAAIC,EAAKjE,CAAAiB,UAAA,CAAkB+C,CAAlB,CAAT,CACIE,EAAmB,KAAnBA,GAAWN,CAAXM,EAAqC,KAArCA,GAA4BD,CAA5BC,EAAyD,YAAzDA,GAAgDD,CAC3B,EAAA,CAAzB,GAAIE,CAAA,CAAWF,CAAX,CAAJ,EACsB,CAAA,CADtB,GACGG,CAAA,CAASH,CAAT,CADH,EAC8B,CAAAV,CAAA,CAAaR,CAAb,CAAoBmB,CAApB,CAD9B,GAEET,CAAA,CAAI,GAAJ,CAIA,CAHAA,CAAA,CAAIO,CAAJ,CAGA,CAFAP,CAAA,CAAI,IAAJ,CAEA,CADAA,CAAA,CAAIT,CAAA,CAAeD,CAAf,CAAJ,CACA,CAAAU,CAAA,CAAI,GAAJ,CANF,CAH0C,CAA5C,CAYA,CAAAA,CAAA,CAAI,GAAJ,CAfF,CAL0B,CADvB,CAwBLnB,IAAKA,QAAQ,CAACsB,CAAD,CAAM,CACjBA,CAAA,CAAM5D,CAAAiB,UAAA,CAAkB2C,CAAlB,CACDJ,EAAL,EAAoD,CAAA,CAApD,GAA6BM,CAAA,CAAcF,CAAd,CAA7B,EAAkF,CAAA,CAAlF,GAA4DS,CAAA,CAAaT,CAAb,CAA5D,GACEH,CAAA,CAAI,IAAJ,CAEA,CADAA,CAAA,CAAIG,CAAJ,CACA,CAAAH,CAAA,CAAI,GAAJ,CAHF,CAKIG,EAAJ;AAAWJ,CAAX,GACEA,CADF,CACyB,CAAA,CADzB,CAPiB,CAxBd,CAmCLrD,MAAOA,QAAQ,CAACA,CAAD,CAAQ,CAChBqD,CAAL,EACEC,CAAA,CAAIT,CAAA,CAAe7C,CAAf,CAAJ,CAFmB,CAnClB,CAHsC,CAsD/CwB,QAASA,EAAkB,CAACC,CAAD,CAAO,CAChC,GAAIA,CAAAE,SAAJ,GAAsBwC,IAAAC,aAAtB,CAEE,IADA,IAAI7B,EAAQd,CAAAO,WAAZ,CACSpB,EAAI,CADb,CACgByD,EAAI9B,CAAA1B,OAApB,CAAkCD,CAAlC,CAAsCyD,CAAtC,CAAyCzD,CAAA,EAAzC,CAA8C,CAC5C,IAAI0D,EAAW/B,CAAA,CAAM3B,CAAN,CAAf,CACI2D,EAAWD,CAAA3B,KAAAb,YAAA,EACf,IAAiB,WAAjB,GAAIyC,CAAJ,EAA6D,CAA7D,GAAgCA,CAAAC,QAAA,CAAiB,MAAjB,CAAhC,CACE/C,CAAAgD,oBAAA,CAAyBH,CAAzB,CAEA,CADA1D,CAAA,EACA,CAAAyD,CAAA,EAN0C,CAYhD,CADInC,CACJ,CADeT,CAAAC,WACf,GACEF,CAAA,CAAmBU,CAAnB,CAIF,EADAA,CACA,CADWT,CAAAW,YACX,GACEZ,CAAA,CAAmBU,CAAnB,CArB8B,CAxdlC,IAAIb,EAAkBxB,CAAA6E,SAAA,CAAiB,WAAjB,CAAtB,CAkMI3B,EAAwB,iCAlM5B,CAoMEI,EAA0B,eApM5B,CA6MIe,EAAe5D,CAAA,CAAM,wBAAN,CA7MnB,CAiNIqE,EAA8BrE,CAAA,CAAM,gDAAN,CAjNlC,CAkNIsE,EAA+BtE,CAAA,CAAM,OAAN,CAlNnC,CAmNIuE,EAAyBhF,CAAAiF,OAAA,CAAe,EAAf,CACeF,CADf,CAEeD,CAFf,CAnN7B,CAwNII,EAAgBlF,CAAAiF,OAAA,CAAe,EAAf;AAAmBH,CAAnB,CAAgDrE,CAAA,CAAM,qKAAN,CAAhD,CAxNpB,CA6NI0E,EAAiBnF,CAAAiF,OAAA,CAAe,EAAf,CAAmBF,CAAnB,CAAiDtE,CAAA,CAAM,2JAAN,CAAjD,CA7NrB,CAqOI2E,EAAc3E,CAAA,CAAM,wNAAN,CArOlB;AA0OIoD,EAAkBpD,CAAA,CAAM,cAAN,CA1OtB,CA4OIqD,EAAgB9D,CAAAiF,OAAA,CAAe,EAAf,CACeZ,CADf,CAEea,CAFf,CAGeC,CAHf,CAIeH,CAJf,CA5OpB,CAmPIZ,EAAW3D,CAAA,CAAM,8CAAN,CAnPf,CAqPI4E,EAAY5E,CAAA,CAAM,kTAAN,CArPhB,CA6PI6E,EAAW7E,CAAA,CAAM,guCAAN;AAcoE,CAAA,CAdpE,CA7Pf,CA6QI0D,EAAanE,CAAAiF,OAAA,CAAe,EAAf,CACeb,CADf,CAEekB,CAFf,CAGeD,CAHf,CA7QjB,CA0RIhE,CACH,UAAQ,CAACtB,CAAD,CAAS,CAEhB,GAAIA,CAAA0B,SAAJ,EAAuB1B,CAAA0B,SAAA8D,eAAvB,CACEC,CAAA,CAAMzF,CAAA0B,SAAA8D,eAAAE,mBAAA,CAAkD,OAAlD,CADR,KAGE,MAAMjE,EAAA,CAAgB,SAAhB,CAAN,CAGF,IAAIkE,EAAeC,CADFH,CAAAI,gBACED,EADqBH,CAAAK,mBAAA,EACrBF,sBAAA,CAAgC,MAAhC,CAGS,EAA5B,GAAID,CAAA1E,OAAJ,CACEK,CADF,CACqBqE,CAAA,CAAa,CAAb,CADrB,EAGMvE,CAGJ,CAHWqE,CAAAM,cAAA,CAAkB,MAAlB,CAGX,CAFAzE,CAEA,CAFmBmE,CAAAM,cAAA,CAAkB,MAAlB,CAEnB,CADA3E,CAAA4E,YAAA,CAAiB1E,CAAjB,CACA,CAAAmE,CAAAO,YAAA,CAAgB5E,CAAhB,CANF,CAXgB,CAAjB,CAAD,CAmBGpB,CAnBH,CAyNAC,EAAAgG,OAAA,CAAe,YAAf,CAA6B,EAA7B,CAAAC,SAAA,CAA0C,WAA1C,CApXAC,QAA0B,EAAG,CAC3B,IAAIC,EAAa,CAAA,CAEjB,KAAAC,KAAA,CAAY,CAAC,eAAD,CAAkB,QAAQ,CAACC,CAAD,CAAgB,CAChDF,CAAJ,EACEnG,CAAAiF,OAAA,CAAenB,CAAf,CAA8BsB,CAA9B,CAEF,OAAO,SAAQ,CAACjE,CAAD,CAAO,CACpB,IAAIf;AAAM,EACVc,EAAA,CAAWC,CAAX,CAAiBd,CAAA,CAAmBD,CAAnB,CAAwB,QAAQ,CAACkG,CAAD,CAAMpC,CAAN,CAAe,CAC9D,MAAO,CAAC,UAAAqC,KAAA,CAAgBF,CAAA,CAAcC,CAAd,CAAmBpC,CAAnB,CAAhB,CADsD,CAA/C,CAAjB,CAGA,OAAO9D,EAAAI,KAAA,CAAS,EAAT,CALa,CAJ8B,CAA1C,CA4CZ,KAAAgG,UAAA,CAAiBC,QAAQ,CAACD,CAAD,CAAY,CACnC,MAAIxG,EAAA0G,UAAA,CAAkBF,CAAlB,CAAJ,EACEL,CACO,CADMK,CACN,CAAA,IAFT,EAISL,CAL0B,CA/CV,CAoX7B,CAmIAnG,EAAAgG,OAAA,CAAe,YAAf,CAAAW,OAAA,CAAoC,OAApC,CAA6C,CAAC,WAAD,CAAc,QAAQ,CAACC,CAAD,CAAY,CAAA,IACzEC,EACE,yFAFuE,CAGzEC,EAAgB,WAHyD,CAKzEC,EAAc/G,CAAA6E,SAAA,CAAiB,OAAjB,CAL2D,CAMzEmC,EAAWhH,CAAAgH,SAEf,OAAO,SAAQ,CAACC,CAAD,CAAOC,CAAP,CAAe/E,CAAf,CAA2B,CAwBxCgF,QAASA,EAAO,CAACF,CAAD,CAAO,CAChBA,CAAL,EAGA9F,CAAAwC,KAAA,CAAUzD,CAAA,CAAa+G,CAAb,CAAV,CAJqB,CAOvBG,QAASA,EAAO,CAACC,CAAD,CAAMJ,CAAN,CAAY,CAC1B,IAAIjD,CACJ7C,EAAAwC,KAAA,CAAU,KAAV,CACI3D,EAAAsH,WAAA,CAAmBnF,CAAnB,CAAJ,GACEA,CADF,CACeA,CAAA,CAAWkF,CAAX,CADf,CAGA,IAAIrH,CAAAuH,SAAA,CAAiBpF,CAAjB,CAAJ,CACE,IAAK6B,CAAL,GAAY7B,EAAZ,CACEhB,CAAAwC,KAAA,CAAUK,CAAV;AAAgB,IAAhB,CAAuB7B,CAAA,CAAW6B,CAAX,CAAvB,CAAyC,IAAzC,CAFJ,KAKE7B,EAAA,CAAa,EAEX,EAAAnC,CAAA0G,UAAA,CAAkBQ,CAAlB,CAAJ,EAAmC,QAAnC,EAA+C/E,EAA/C,EACEhB,CAAAwC,KAAA,CAAU,UAAV,CACUuD,CADV,CAEU,IAFV,CAIF/F,EAAAwC,KAAA,CAAU,QAAV,CACU0D,CAAApE,QAAA,CAAY,IAAZ,CAAkB,QAAlB,CADV,CAEU,IAFV,CAGAkE,EAAA,CAAQF,CAAR,CACA9F,EAAAwC,KAAA,CAAU,MAAV,CAtB0B,CA9B5B,GAAY,IAAZ,EAAIsD,CAAJ,EAA6B,EAA7B,GAAoBA,CAApB,CAAiC,MAAOA,EACxC,IAAK,CAAAD,CAAA,CAASC,CAAT,CAAL,CAAqB,KAAMF,EAAA,CAAY,WAAZ,CAA8DE,CAA9D,CAAN,CAOrB,IAJA,IAAIO,EAAMP,CAAV,CACI9F,EAAO,EADX,CAEIkG,CAFJ,CAGItG,CACJ,CAAQ0G,CAAR,CAAgBD,CAAAC,MAAA,CAAUZ,CAAV,CAAhB,CAAA,CAEEQ,CAQA,CARMI,CAAA,CAAM,CAAN,CAQN,CANKA,CAAA,CAAM,CAAN,CAML,EANkBA,CAAA,CAAM,CAAN,CAMlB,GALEJ,CAKF,EALSI,CAAA,CAAM,CAAN,CAAA,CAAW,SAAX,CAAuB,SAKhC,EAL6CJ,CAK7C,EAHAtG,CAGA,CAHI0G,CAAAC,MAGJ,CAFAP,CAAA,CAAQK,CAAAG,OAAA,CAAW,CAAX,CAAc5G,CAAd,CAAR,CAEA,CADAqG,CAAA,CAAQC,CAAR,CAAaI,CAAA,CAAM,CAAN,CAAAxE,QAAA,CAAiB6D,CAAjB,CAAgC,EAAhC,CAAb,CACA,CAAAU,CAAA,CAAMA,CAAAI,UAAA,CAAc7G,CAAd,CAAkB0G,CAAA,CAAM,CAAN,CAAAzG,OAAlB,CAERmG,EAAA,CAAQK,CAAR,CACA,OAAOZ,EAAA,CAAUzF,CAAAX,KAAA,CAAU,EAAV,CAAV,CAtBiC,CARmC,CAAlC,CAA7C,CApoBsC,CAArC,CAAD,CAusBGT,MAvsBH,CAusBWA,MAAAC,QAvsBX;",
-"sources":["angular-sanitize.js"],
-"names":["window","angular","undefined","sanitizeText","chars","buf","htmlSanitizeWriter","writer","noop","join","toMap","str","lowercaseKeys","obj","items","split","i","length","lowercase","htmlParser","html","handler","inertBodyElement","innerHTML","mXSSAttempts","$sanitizeMinErr","document","documentMode","stripCustomNsAttrs","node","firstChild","nodeType","start","nodeName","toLowerCase","attrToMap","attributes","textContent","nextNode","end","nextSibling","parentNode","removeChild","attrs","map","ii","attr","name","value","encodeEntities","replace","SURROGATE_PAIR_REGEXP","hi","charCodeAt","low","NON_ALPHANUMERIC_REGEXP","uriValidator","ignoreCurrentElement","out","bind","push","tag","blockedElements","validElements","forEach","key","lkey","isImage","validAttrs","uriAttrs","voidElements","Node","ELEMENT_NODE","l","attrNode","attrName","indexOf","removeAttributeNode","$$minErr","optionalEndTagBlockElements","optionalEndTagInlineElements","optionalEndTagElements","extend","blockElements","inlineElements","svgElements","htmlAttrs","svgAttrs","implementation","doc","createHTMLDocument","bodyElements","getElementsByTagName","documentElement","getDocumentElement","createElement","appendChild","module","provider","$SanitizeProvider","svgEnabled","$get","$$sanitizeUri","uri","test","enableSvg","this.enableSvg","isDefined","filter","$sanitize","LINKY_URL_REGEXP","MAILTO_REGEXP","linkyMinErr","isString","text","target","addText","addLink","url","isFunction","isObject","raw","match","index","substr","substring"]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-sanitize/bower.json b/ecomp-portal-FE/client/bower_components/angular-sanitize/bower.json
deleted file mode 100644
index 3f31319a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-sanitize/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-sanitize",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular-sanitize.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-sanitize/index.js b/ecomp-portal-FE/client/bower_components/angular-sanitize/index.js
deleted file mode 100644
index dd5d22e4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-sanitize/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular-sanitize');
-module.exports = 'ngSanitize';
diff --git a/ecomp-portal-FE/client/bower_components/angular-sanitize/package.json b/ecomp-portal-FE/client/bower_components/angular-sanitize/package.json
deleted file mode 100644
index 3f706558..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-sanitize/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "angular-sanitize",
- "version": "1.5.0",
- "description": "AngularJS module for sanitizing HTML",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "html",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org"
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-scenario/.bower.json b/ecomp-portal-FE/client/bower_components/angular-scenario/.bower.json
deleted file mode 100644
index daa21e1c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-scenario/.bower.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "angular-scenario",
- "version": "1.5.11",
- "license": "MIT",
- "main": "./angular-scenario.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.11"
- },
- "homepage": "https://github.com/angular/bower-angular-scenario",
- "_release": "1.5.11",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.11",
- "commit": "477d9520de0f6eeadd0d97b7fa820b7c111ba572"
- },
- "_source": "https://github.com/angular/bower-angular-scenario.git",
- "_target": "~1.5.0",
- "_originalSource": "angular-scenario"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-scenario/LICENSE.md b/ecomp-portal-FE/client/bower_components/angular-scenario/LICENSE.md
deleted file mode 100644
index 2c395eef..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-scenario/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016 Angular
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-scenario/README.md b/ecomp-portal-FE/client/bower_components/angular-scenario/README.md
deleted file mode 100644
index a4a00534..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-scenario/README.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# packaged angular-scenario
-
-This tool is now in maintenance mode. If you are starting a new project, please use
-[Protractor](https://github.com/angular/protractor). Existing projects using scenario runner are
-advised to migrate to protractor, as this tool is unlikely to receive updates.
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngScenario).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular-scenario
-```
-
-The files are then available at `node_modules/angular-scenario/`.
-
-Note that this package is not in CommonJS format, so doing `require('angular-scenario')` will
-return `undefined`.
-
-### bower
-
-```shell
-bower install angular-scenario
-```
-
-The files are then available at `bower_components/angular-scenario/`.
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-scenario/angular-scenario.js b/ecomp-portal-FE/client/bower_components/angular-scenario/angular-scenario.js
deleted file mode 100644
index d9fca0b1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-scenario/angular-scenario.js
+++ /dev/null
@@ -1,44994 +0,0 @@
-/*eslint-disable no-unused-vars*/
-/*!
- * jQuery JavaScript Library v3.1.0
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2016-07-07T21:44Z
- */
-( function( global, factory ) {
-
-if ( typeof module === "object" && typeof module.exports === "object" ) {
-
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
-// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
-// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
-// enough that all such attempts are guarded in a try block.
-
-var arr = [];
-
-var document = window.document;
-
-var getProto = Object.getPrototypeOf;
-
-var slice = arr.slice;
-
-var concat = arr.concat;
-
-var push = arr.push;
-
-var indexOf = arr.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var fnToString = hasOwn.toString;
-
-var ObjectFunctionString = fnToString.call( Object );
-
-var support = {};
-
-
-
- function DOMEval( code, doc ) {
- doc = doc || document;
-
- var script = doc.createElement( "script" );
-
- script.text = code;
- doc.head.appendChild( script ).parentNode.removeChild( script );
- }
-/* global Symbol */
-// Defining this global in .eslintrc would create a danger of using the global
-// unguarded in another place, it seems safer to define global only for this module
-
-
-
-var
- version = "3.1.0",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
-
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- },
-
- // Support: Android <=4.0 only
- // Make sure we trim BOM and NBSP
- rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
-
- // Matches dashed string for camelizing
- rmsPrefix = /^-ms-/,
- rdashAlpha = /-([a-z])/g,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn = jQuery.prototype = {
-
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num != null ?
-
- // Return just the one element from the set
- ( num < 0 ? this[ num + this.length ] : this[ num ] ) :
-
- // Return all the elements in a clean array
- slice.call( this );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- each: function( callback ) {
- return jQuery.each( this, callback );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map( this, function( elem, i ) {
- return callback.call( elem, i, elem );
- } ) );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor();
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: arr.sort,
- splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[ 0 ] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // Skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
- target = {};
- }
-
- // Extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
-
- // Only deal with non-null/undefined values
- if ( ( options = arguments[ i ] ) != null ) {
-
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
-
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray( src ) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject( src ) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend( {
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- isFunction: function( obj ) {
- return jQuery.type( obj ) === "function";
- },
-
- isArray: Array.isArray,
-
- isWindow: function( obj ) {
- return obj != null && obj === obj.window;
- },
-
- isNumeric: function( obj ) {
-
- // As of jQuery 3.0, isNumeric is limited to
- // strings and numbers (primitives or objects)
- // that can be coerced to finite numbers (gh-2662)
- var type = jQuery.type( obj );
- return ( type === "number" || type === "string" ) &&
-
- // parseFloat NaNs numeric-cast false positives ("")
- // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
- // subtraction forces infinities to NaN
- !isNaN( obj - parseFloat( obj ) );
- },
-
- isPlainObject: function( obj ) {
- var proto, Ctor;
-
- // Detect obvious negatives
- // Use toString instead of jQuery.type to catch host objects
- if ( !obj || toString.call( obj ) !== "[object Object]" ) {
- return false;
- }
-
- proto = getProto( obj );
-
- // Objects with no prototype (e.g., `Object.create( null )`) are plain
- if ( !proto ) {
- return true;
- }
-
- // Objects with prototype are plain iff they were constructed by a global Object function
- Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
- return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
- },
-
- isEmptyObject: function( obj ) {
-
- /* eslint-disable no-unused-vars */
- // See https://github.com/eslint/eslint/issues/6125
- var name;
-
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- type: function( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
-
- // Support: Android <=2.3 only (functionish RegExp)
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
- },
-
- // Evaluates a script in a global context
- globalEval: function( code ) {
- DOMEval( code );
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Support: IE <=9 - 11, Edge 12 - 13
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
- },
-
- each: function( obj, callback ) {
- var length, i = 0;
-
- if ( isArrayLike( obj ) ) {
- length = obj.length;
- for ( ; i < length; i++ ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- }
-
- return obj;
- },
-
- // Support: Android <=4.0 only
- trim: function( text ) {
- return text == null ?
- "" :
- ( text + "" ).replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArrayLike( Object( arr ) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- return arr == null ? -1 : indexOf.call( arr, elem, i );
- },
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- for ( ; j < len; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var length, value,
- i = 0,
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArrayLike( elems ) ) {
- length = elems.length;
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- var tmp, args, proxy;
-
- if ( typeof context === "string" ) {
- tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- args = slice.call( arguments, 2 );
- proxy = function() {
- return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
- return proxy;
- },
-
- now: Date.now,
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-} );
-
-if ( typeof Symbol === "function" ) {
- jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( i, name ) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
- // Support: real iOS 8.2 only (not reproducible in simulator)
- // `in` check used to prevent JIT error (gh-2145)
- // hasOwn isn't used here due to false negatives
- // regarding Nodelist length in IE
- var length = !!obj && "length" in obj && obj.length,
- type = jQuery.type( obj );
-
- if ( type === "function" || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v2.3.0
- * https://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2016-01-04
- */
-(function( window ) {'use strict';
-
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + 1 * new Date(),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // Instance methods
- hasOwn = ({}).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- push_native = arr.push,
- push = arr.push,
- slice = arr.slice,
- // Use a stripped-down indexOf as it's faster than native
- // https://jsperf.com/thor-indexof-vs-for/5
- indexOf = function( list, elem ) {
- var i = 0,
- len = list.length;
- for ( ; i < len; i++ ) {
- if ( list[i] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
-
- // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
- identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
- // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
- "*\\]",
-
- pseudos = ":(" + identifier + ")(?:\\((" +
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rwhitespace = new RegExp( whitespace + "+", "g" ),
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
-
- rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + identifier + ")" ),
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
- "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
- "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
- whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
-
- // CSS escapes
- // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
- funescape = function( _, escaped, escapedWhitespace ) {
- var high = "0x" + escaped - 0x10000;
- // NaN means non-codepoint
- // Support: Firefox<24
- // Workaround erroneous numeric interpretation of +"0x"
- return high !== high || escapedWhitespace ?
- escaped :
- high < 0 ?
- // BMP codepoint
- String.fromCharCode( high + 0x10000 ) :
- // Supplemental Plane codepoint (surrogate pair)
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- },
-
- // CSS string/identifier serialization
- // https://drafts.csswg.org/cssom/#common-serializing-idioms
- rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
- fcssescape = function( ch, asCodePoint ) {
- if ( asCodePoint ) {
-
- // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
- if ( ch === "\0" ) {
- return "\uFFFD";
- }
-
- // Control characters and (dependent upon position) numbers get escaped as code points
- return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
- }
-
- // Other potentially-special ASCII characters get backslash-escaped
- return "\\" + ch;
- },
-
- // Used for iframes
- // See setDocument()
- // Removing the function wrapper causes a "Permission Denied"
- // error in IE
- unloadHandler = function() {
- setDocument();
- },
-
- disabledAncestor = addCombinator(
- function( elem ) {
- return elem.disabled === true;
- },
- { dir: "parentNode", next: "legend" }
- );
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- (arr = slice.call( preferredDoc.childNodes )),
- preferredDoc.childNodes
- );
- // Support: Android<4.0
- // Detect silently failing push.apply
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- push_native.apply( target, slice.call(els) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
- // Can't trust NodeList.length
- while ( (target[j++] = els[i++]) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var m, i, elem, nid, match, groups, newSelector,
- newContext = context && context.ownerDocument,
-
- // nodeType defaults to 9, since context defaults to document
- nodeType = context ? context.nodeType : 9;
-
- results = results || [];
-
- // Return early from calls with invalid selector or context
- if ( typeof selector !== "string" || !selector ||
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
- return results;
- }
-
- // Try to shortcut find operations (as opposed to filters) in HTML documents
- if ( !seed ) {
-
- if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
- setDocument( context );
- }
- context = context || document;
-
- if ( documentIsHTML ) {
-
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
- // (excepting DocumentFragment context, where the methods don't exist)
- if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
-
- // ID selector
- if ( (m = match[1]) ) {
-
- // Document context
- if ( nodeType === 9 ) {
- if ( (elem = context.getElementById( m )) ) {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
-
- // Element context
- } else {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( newContext && (elem = newContext.getElementById( m )) &&
- contains( context, elem ) &&
- elem.id === m ) {
-
- results.push( elem );
- return results;
- }
- }
-
- // Type selector
- } else if ( match[2] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Class selector
- } else if ( (m = match[3]) && support.getElementsByClassName &&
- context.getElementsByClassName ) {
-
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // Take advantage of querySelectorAll
- if ( support.qsa &&
- !compilerCache[ selector + " " ] &&
- (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
-
- if ( nodeType !== 1 ) {
- newContext = context;
- newSelector = selector;
-
- // qSA looks outside Element context, which is not what we want
- // Thanks to Andrew Dupont for this workaround technique
- // Support: IE <=8
- // Exclude object elements
- } else if ( context.nodeName.toLowerCase() !== "object" ) {
-
- // Capture the context ID, setting it first if necessary
- if ( (nid = context.getAttribute( "id" )) ) {
- nid = nid.replace( rcssescape, fcssescape );
- } else {
- context.setAttribute( "id", (nid = expando) );
- }
-
- // Prefix every selector in the list
- groups = tokenize( selector );
- i = groups.length;
- while ( i-- ) {
- groups[i] = "#" + nid + " " + toSelector( groups[i] );
- }
- newSelector = groups.join( "," );
-
- // Expand context for sibling selectors
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
- context;
- }
-
- if ( newSelector ) {
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch ( qsaError ) {
- } finally {
- if ( nid === expando ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return (cache[ key + " " ] = value);
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created element and returns a boolean result
- */
-function assert( fn ) {
- var el = document.createElement("fieldset");
-
- try {
- return !!fn( el );
- } catch (e) {
- return false;
- } finally {
- // Remove from its parent by default
- if ( el.parentNode ) {
- el.parentNode.removeChild( el );
- }
- // release memory in IE
- el = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split("|"),
- i = arr.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[i] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- a.sourceIndex - b.sourceIndex;
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( (cur = cur.nextSibling) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for :enabled/:disabled
- * @param {Boolean} disabled true for :disabled; false for :enabled
- */
-function createDisabledPseudo( disabled ) {
- // Known :disabled false positives:
- // IE: *[disabled]:not(button, input, select, textarea, optgroup, option, menuitem, fieldset)
- // not IE: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
- return function( elem ) {
-
- // Check form elements and option elements for explicit disabling
- return "label" in elem && elem.disabled === disabled ||
- "form" in elem && elem.disabled === disabled ||
-
- // Check non-disabled form elements for fieldset[disabled] ancestors
- "form" in elem && elem.disabled === false && (
- // Support: IE6-11+
- // Ancestry is covered for us
- elem.isDisabled === disabled ||
-
- // Otherwise, assume any non-<option> under fieldset[disabled] is disabled
- /* jshint -W018 */
- elem.isDisabled !== !disabled &&
- ("label" in elem || !disabledAncestor( elem )) !== disabled
- );
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction(function( argument ) {
- argument = +argument;
- return markFunction(function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ (j = matchIndexes[i]) ] ) {
- seed[j] = !(matches[j] = seed[j]);
- }
- }
- });
- });
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && (elem.ownerDocument || elem).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare, subWindow,
- doc = node ? node.ownerDocument || node : preferredDoc;
-
- // Return early if doc is invalid or already selected
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Update global variables
- document = doc;
- docElem = document.documentElement;
- documentIsHTML = !isXML( document );
-
- // Support: IE 9-11, Edge
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
- if ( preferredDoc !== document &&
- (subWindow = document.defaultView) && subWindow.top !== subWindow ) {
-
- // Support: IE 11, Edge
- if ( subWindow.addEventListener ) {
- subWindow.addEventListener( "unload", unloadHandler, false );
-
- // Support: IE 9 - 10 only
- } else if ( subWindow.attachEvent ) {
- subWindow.attachEvent( "onunload", unloadHandler );
- }
- }
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties
- // (excepting IE8 booleans)
- support.attributes = assert(function( el ) {
- el.className = "i";
- return !el.getAttribute("className");
- });
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert(function( el ) {
- el.appendChild( document.createComment("") );
- return !el.getElementsByTagName("*").length;
- });
-
- // Support: IE<9
- support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programmatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert(function( el ) {
- docElem.appendChild( el ).id = expando;
- return !document.getElementsByName || !document.getElementsByName( expando ).length;
- });
-
- // ID find and filter
- if ( support.getById ) {
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var m = context.getElementById( id );
- return m ? [ m ] : [];
- }
- };
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute("id") === attrId;
- };
- };
- } else {
- // Support: IE6/7
- // getElementById is not reliable as a find shortcut
- delete Expr.find["ID"];
-
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== "undefined" &&
- elem.getAttributeNode("id");
- return node && node.value === attrId;
- };
- };
- }
-
- // Tag
- Expr.find["TAG"] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( tag );
-
- // DocumentFragment nodes don't have gEBTN
- } else if ( support.qsa ) {
- return context.querySelectorAll( tag );
- }
- } :
-
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
- // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( (elem = results[i++]) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See https://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert(function( el ) {
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // https://bugs.jquery.com/ticket/12359
- docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
- "<select id='" + expando + "-\r\\' msallowcapture=''>" +
- "<option selected=''></option></select>";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( el.querySelectorAll("[msallowcapture^='']").length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !el.querySelectorAll("[selected]").length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
- if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
- rbuggyQSA.push("~=");
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !el.querySelectorAll(":checked").length ) {
- rbuggyQSA.push(":checked");
- }
-
- // Support: Safari 8+, iOS 8+
- // https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibling-combinator selector` fails
- if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
- rbuggyQSA.push(".#.+[+~]");
- }
- });
-
- assert(function( el ) {
- el.innerHTML = "<a href='' disabled='disabled'></a>" +
- "<select disabled='disabled'><option/></select>";
-
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = document.createElement("input");
- input.setAttribute( "type", "hidden" );
- el.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( el.querySelectorAll("[name=d]").length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( el.querySelectorAll(":enabled").length !== 2 ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Support: IE9-11+
- // IE's :disabled selector does not pick up the children of disabled fieldsets
- docElem.appendChild( el ).disabled = true;
- if ( el.querySelectorAll(":disabled").length !== 2 ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Opera 10-11 does not throw on post-comma invalid pseudos
- el.querySelectorAll("*,:x");
- rbuggyQSA.push(",.*:");
- });
- }
-
- if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector) )) ) {
-
- assert(function( el ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( el, "*" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( el, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- });
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully self-exclusive
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ));
- } :
- function( a, b ) {
- if ( b ) {
- while ( (b = b.parentNode) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
- return -1;
- }
- if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
- return a === document ? -1 :
- b === document ? 1 :
- aup ? -1 :
- bup ? 1 :
- sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( (cur = cur.parentNode) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( (cur = cur.parentNode) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[i] === bp[i] ) {
- i++;
- }
-
- return i ?
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[i], bp[i] ) :
-
- // Otherwise nodes in our document sort first
- ap[i] === preferredDoc ? -1 :
- bp[i] === preferredDoc ? 1 :
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- // Make sure that attribute selectors are quoted
- expr = expr.replace( rattributeQuotes, "='$1']" );
-
- if ( support.matchesSelector && documentIsHTML &&
- !compilerCache[ expr + " " ] &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch (e) {}
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
- // Set document vars if needed
- if ( ( context.ownerDocument || context ) !== document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- (val = elem.getAttributeNode(name)) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.escape = function( sel ) {
- return (sel + "").replace( rcssescape, fcssescape );
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( (elem = results[i++]) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
- // If no nodeType, this is expected to be an array
- while ( (node = elem[i++]) ) {
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[1] = match[1].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
-
- if ( match[2] === "~=" ) {
- match[3] = " " + match[3] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[1] = match[1].toLowerCase();
-
- if ( match[1].slice( 0, 3 ) === "nth" ) {
- // nth-* requires argument
- if ( !match[3] ) {
- Sizzle.error( match[0] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
- match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[3] ) {
- Sizzle.error( match[0] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[6] && match[2];
-
- if ( matchExpr["CHILD"].test( match[0] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[3] ) {
- match[2] = match[4] || match[5] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
- // Get excess from tokenize (recursively)
- (excess = tokenize( unquoted, true )) &&
- // advance to the next closing parenthesis
- (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
- // excess is a negative index
- match[0] = match[0].slice( 0, excess );
- match[2] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() { return true; } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
- classCache( className, function( elem ) {
- return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
- });
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- };
- },
-
- "CHILD": function( type, what, argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, context, xml ) {
- var cache, uniqueCache, outerCache, node, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType,
- diff = false;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( (node = node[ dir ]) ) {
- if ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) {
-
- return false;
- }
- }
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
-
- // Seek `elem` from a previously-cached index
-
- // ...in a gzip-friendly way
- node = parent;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex && cache[ 2 ];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( (node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- } else {
- // Use previously-cached element index if available
- if ( useCache ) {
- // ...in a gzip-friendly way
- node = elem;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex;
- }
-
- // xml :nth-child(...)
- // or :nth-last-child(...) or :nth(-last)?-of-type(...)
- if ( diff === false ) {
- // Use the same loop as above to seek `elem` from the start
- while ( (node = ++nodeIndex && node && node[ dir ] ||
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- if ( ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) &&
- ++diff ) {
-
- // Cache the index of each encountered element
- if ( useCache ) {
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- uniqueCache[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction(function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf( seed, matched[i] );
- seed[ idx ] = !( matches[ idx ] = matched[i] );
- }
- }) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
- // Potentially complex pseudos
- "not": markFunction(function( selector ) {
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction(function( seed, matches, context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( (elem = unmatched[i]) ) {
- seed[i] = !(matches[i] = elem);
- }
- }
- }) :
- function( elem, context, xml ) {
- input[0] = elem;
- matcher( input, null, xml, results );
- // Don't keep the element (issue #299)
- input[0] = null;
- return !results.pop();
- };
- }),
-
- "has": markFunction(function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- }),
-
- "contains": markFunction(function( text ) {
- text = text.replace( runescape, funescape );
- return function( elem ) {
- return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
- };
- }),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
- // lang value must be a valid identifier
- if ( !ridentifier.test(lang || "") ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( (elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
- return false;
- };
- }),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
- },
-
- // Boolean properties
- "enabled": createDisabledPseudo( false ),
- "disabled": createDisabledPseudo( true ),
-
- "checked": function( elem ) {
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
- },
-
- "selected": function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos["empty"]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo(function() {
- return [ 0 ];
- }),
-
- "last": createPositionalPseudo(function( matchIndexes, length ) {
- return [ length - 1 ];
- }),
-
- "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- }),
-
- "even": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "odd": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- })
- }
-};
-
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || (match = rcomma.exec( soFar )) ) {
- if ( match ) {
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[0].length ) || soFar;
- }
- groups.push( (tokens = []) );
- }
-
- matched = false;
-
- // Combinators
- if ( (match = rcombinators.exec( soFar )) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- // Cast descendant combinators to space
- type: match[0].replace( rtrim, " " )
- });
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
- (match = preFilters[ type ]( match ))) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- type: type,
- matches: match
- });
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[i].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- skip = combinator.next,
- key = skip || dir,
- checkNonElements = base && key === "parentNode",
- doneName = done++;
-
- return combinator.first ?
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, uniqueCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
- if ( xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || (elem[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
-
- if ( skip && skip === elem.nodeName.toLowerCase() ) {
- elem = elem[ dir ] || elem;
- } else if ( (oldCache = uniqueCache[ key ]) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return (newCache[ 2 ] = oldCache[ 2 ]);
- } else {
- // Reuse newcache so results back-propagate to previous elements
- uniqueCache[ key ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
- return true;
- }
- }
- }
- }
- }
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[i]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[0];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[i], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( (elem = unmatched[i]) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction(function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( (elem = temp[i]) ) {
- matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) ) {
- // Restore matcherIn since elem is not yet a final match
- temp.push( (matcherIn[i] = elem) );
- }
- }
- postFinder( null, (matcherOut = []), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) &&
- (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
-
- seed[temp] = !(results[temp] = elem);
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- });
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[0].type ],
- implicitRelative = leadingRelative || Expr.relative[" "],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- (checkContext = context).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
- // Avoid hanging onto element (issue #299)
- checkContext = null;
- return ret;
- } ];
-
- for ( ; i < len; i++ ) {
- if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
- matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
- } else {
- matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[j].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
- ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
- len = elems.length;
-
- if ( outermost ) {
- outermostContext = context === document || context || outermost;
- }
-
- // Add elements passing elementMatchers directly to results
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
- for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
- if ( !context && elem.ownerDocument !== document ) {
- setDocument( elem );
- xml = !documentIsHTML;
- }
- while ( (matcher = elementMatchers[j++]) ) {
- if ( matcher( elem, context || document, xml) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
- // They will have gone through all possible matchers
- if ( (elem = !matcher && elem) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // `i` is now the count of elements visited above, and adding it to `matchedCount`
- // makes the latter nonnegative.
- matchedCount += i;
-
- // Apply set filters to unmatched elements
- // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
- // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
- // no element matchers and no seed.
- // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
- // case, which will result in a "00" `matchedCount` that differs from `i` but is also
- // numerically zero.
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( (matcher = setMatchers[j++]) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !(unmatched[i] || setMatched[i]) ) {
- setMatched[i] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[i] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( (selector = compiled.selector || selector) );
-
- results = results || [];
-
- // Try to minimize operations if there is only one selector in the list and no seed
- // (the latter of which guarantees us context)
- if ( match.length === 1 ) {
-
- // Reduce context if the leading compound selector is an ID
- tokens = match[0] = match[0].slice( 0 );
- if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
- support.getById && context.nodeType === 9 && documentIsHTML &&
- Expr.relative[ tokens[1].type ] ) {
-
- context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[i];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ (type = token.type) ] ) {
- break;
- }
- if ( (find = Expr.find[ type ]) ) {
- // Search, expanding context for leading sibling combinators
- if ( (seed = find(
- token.matches[0].replace( runescape, funescape ),
- rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
- )) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert(function( el ) {
- // Should return 1, but returns 4 (following)
- return el.compareDocumentPosition( document.createElement("fieldset") ) & 1;
-});
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert(function( el ) {
- el.innerHTML = "<a href='#'></a>";
- return el.firstChild.getAttribute("href") === "#" ;
-}) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- });
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert(function( el ) {
- el.innerHTML = "<input/>";
- el.firstChild.setAttribute( "value", "" );
- return el.firstChild.getAttribute( "value" ) === "";
-}) ) {
- addHandle( "value", function( elem, name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- });
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert(function( el ) {
- return el.getAttribute("disabled") == null;
-}) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- (val = elem.getAttributeNode( name )) && val.specified ?
- val.value :
- null;
- }
- });
-}
-
-return Sizzle;
-
-})( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-
-// Deprecated
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-jQuery.escapeSelector = Sizzle.escape;
-
-
-
-
-var dir = function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
-};
-
-
-var siblings = function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
-};
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
-
-
-
-var risSimple = /^.[^:#\[\.,]*$/;
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- return !!qualifier.call( elem, i, elem ) !== not;
- } );
-
- }
-
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- } );
-
- }
-
- if ( typeof qualifier === "string" ) {
- if ( risSimple.test( qualifier ) ) {
- return jQuery.filter( qualifier, elements, not );
- }
-
- qualifier = jQuery.filter( qualifier, elements );
- }
-
- return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;
- } );
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 && elem.nodeType === 1 ?
- jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
- jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- } ) );
-};
-
-jQuery.fn.extend( {
- find: function( selector ) {
- var i, ret,
- len = this.length,
- self = this;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- } ) );
- }
-
- ret = this.pushStack( [] );
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- return len > 1 ? jQuery.uniqueSort( ret ) : ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow( this, selector || [], false ) );
- },
- not: function( selector ) {
- return this.pushStack( winnow( this, selector || [], true ) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-} );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // A simple way to check for HTML strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- // Shortcut simple #id case for speed
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
-
- init = jQuery.fn.init = function( selector, context, root ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Method init() accepts an alternate rootjQuery
- // so migrate can support jQuery.sub (gh-2101)
- root = root || rootjQuery;
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector[ 0 ] === "<" &&
- selector[ selector.length - 1 ] === ">" &&
- selector.length >= 3 ) {
-
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && ( match[ 1 ] || !context ) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[ 1 ] ) {
- context = context instanceof jQuery ? context[ 0 ] : context;
-
- // Option to run scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[ 1 ],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
-
- // Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[ 2 ] );
-
- if ( elem ) {
-
- // Inject the element directly into the jQuery object
- this[ 0 ] = elem;
- this.length = 1;
- }
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || root ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this[ 0 ] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return root.ready !== undefined ?
- root.ready( selector ) :
-
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
- // Methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend( {
- has: function( target ) {
- var targets = jQuery( target, this ),
- l = targets.length;
-
- return this.filter( function() {
- var i = 0;
- for ( ; i < l; i++ ) {
- if ( jQuery.contains( this, targets[ i ] ) ) {
- return true;
- }
- }
- } );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- targets = typeof selectors !== "string" && jQuery( selectors );
-
- // Positional selectors never match, since there's no _selection_ context
- if ( !rneedsContext.test( selectors ) ) {
- for ( ; i < l; i++ ) {
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
- // Always skip document fragments
- if ( cur.nodeType < 11 && ( targets ?
- targets.index( cur ) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
- },
-
- // Determine the position of an element within the set
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // Index in selector
- if ( typeof elem === "string" ) {
- return indexOf.call( jQuery( elem ), this[ 0 ] );
- }
-
- // Locate the position of the desired element
- return indexOf.call( this,
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem
- );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.uniqueSort(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter( selector )
- );
- }
-} );
-
-function sibling( cur, dir ) {
- while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
- return cur;
-}
-
-jQuery.each( {
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return siblings( elem.firstChild );
- },
- contents: function( elem ) {
- return elem.contentDocument || jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var matched = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- matched = jQuery.filter( selector, matched );
- }
-
- if ( this.length > 1 ) {
-
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- jQuery.uniqueSort( matched );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- matched.reverse();
- }
- }
-
- return this.pushStack( matched );
- };
-} );
-var rnotwhite = ( /\S+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
- var object = {};
- jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- } );
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- createOptions( options ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
-
- // Last fire value for non-forgettable lists
- memory,
-
- // Flag to know if list was already fired
- fired,
-
- // Flag to prevent firing
- locked,
-
- // Actual callback list
- list = [],
-
- // Queue of execution data for repeatable lists
- queue = [],
-
- // Index of currently firing callback (modified by add/remove as needed)
- firingIndex = -1,
-
- // Fire callbacks
- fire = function() {
-
- // Enforce single-firing
- locked = options.once;
-
- // Execute callbacks for all pending executions,
- // respecting firingIndex overrides and runtime changes
- fired = firing = true;
- for ( ; queue.length; firingIndex = -1 ) {
- memory = queue.shift();
- while ( ++firingIndex < list.length ) {
-
- // Run callback and check for early termination
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
- options.stopOnFalse ) {
-
- // Jump to end and forget the data so .add doesn't re-fire
- firingIndex = list.length;
- memory = false;
- }
- }
- }
-
- // Forget the data if we're done with it
- if ( !options.memory ) {
- memory = false;
- }
-
- firing = false;
-
- // Clean up if we're done firing for good
- if ( locked ) {
-
- // Keep an empty list if we have data for future add calls
- if ( memory ) {
- list = [];
-
- // Otherwise, this object is spent
- } else {
- list = "";
- }
- }
- },
-
- // Actual Callbacks object
- self = {
-
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
-
- // If we have memory from a past run, we should fire after adding
- if ( memory && !firing ) {
- firingIndex = list.length - 1;
- queue.push( memory );
- }
-
- ( function add( args ) {
- jQuery.each( args, function( _, arg ) {
- if ( jQuery.isFunction( arg ) ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
-
- // Inspect recursively
- add( arg );
- }
- } );
- } )( arguments );
-
- if ( memory && !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Remove a callback from the list
- remove: function() {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
-
- // Handle firing indexes
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- } );
- return this;
- },
-
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ?
- jQuery.inArray( fn, list ) > -1 :
- list.length > 0;
- },
-
- // Remove all callbacks from the list
- empty: function() {
- if ( list ) {
- list = [];
- }
- return this;
- },
-
- // Disable .fire and .add
- // Abort any current/pending executions
- // Clear all callbacks and values
- disable: function() {
- locked = queue = [];
- list = memory = "";
- return this;
- },
- disabled: function() {
- return !list;
- },
-
- // Disable .fire
- // Also disable .add unless we have memory (since it would have no effect)
- // Abort any pending executions
- lock: function() {
- locked = queue = [];
- if ( !memory && !firing ) {
- list = memory = "";
- }
- return this;
- },
- locked: function() {
- return !!locked;
- },
-
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( !locked ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- queue.push( args );
- if ( !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
-
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-function Identity( v ) {
- return v;
-}
-function Thrower( ex ) {
- throw ex;
-}
-
-function adoptValue( value, resolve, reject ) {
- var method;
-
- try {
-
- // Check for promise aspect first to privilege synchronous behavior
- if ( value && jQuery.isFunction( ( method = value.promise ) ) ) {
- method.call( value ).done( resolve ).fail( reject );
-
- // Other thenables
- } else if ( value && jQuery.isFunction( ( method = value.then ) ) ) {
- method.call( value, resolve, reject );
-
- // Other non-thenables
- } else {
-
- // Support: Android 4.0 only
- // Strict mode functions invoked without .call/.apply get global-object context
- resolve.call( undefined, value );
- }
-
- // For Promises/A+, convert exceptions into rejections
- // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
- // Deferred#then to conditionally suppress rejection.
- } catch ( value ) {
-
- // Support: Android 4.0 only
- // Strict mode functions invoked without .call/.apply get global-object context
- reject.call( undefined, value );
- }
-}
-
-jQuery.extend( {
-
- Deferred: function( func ) {
- var tuples = [
-
- // action, add listener, callbacks,
- // ... .then handlers, argument index, [final state]
- [ "notify", "progress", jQuery.Callbacks( "memory" ),
- jQuery.Callbacks( "memory" ), 2 ],
- [ "resolve", "done", jQuery.Callbacks( "once memory" ),
- jQuery.Callbacks( "once memory" ), 0, "resolved" ],
- [ "reject", "fail", jQuery.Callbacks( "once memory" ),
- jQuery.Callbacks( "once memory" ), 1, "rejected" ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- "catch": function( fn ) {
- return promise.then( null, fn );
- },
-
- // Keep pipe for back-compat
- pipe: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
-
- return jQuery.Deferred( function( newDefer ) {
- jQuery.each( tuples, function( i, tuple ) {
-
- // Map tuples (progress, done, fail) to arguments (done, fail, progress)
- var fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
-
- // deferred.progress(function() { bind to newDefer or newDefer.notify })
- // deferred.done(function() { bind to newDefer or newDefer.resolve })
- // deferred.fail(function() { bind to newDefer or newDefer.reject })
- deferred[ tuple[ 1 ] ]( function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise()
- .progress( newDefer.notify )
- .done( newDefer.resolve )
- .fail( newDefer.reject );
- } else {
- newDefer[ tuple[ 0 ] + "With" ](
- this,
- fn ? [ returned ] : arguments
- );
- }
- } );
- } );
- fns = null;
- } ).promise();
- },
- then: function( onFulfilled, onRejected, onProgress ) {
- var maxDepth = 0;
- function resolve( depth, deferred, handler, special ) {
- return function() {
- var that = this,
- args = arguments,
- mightThrow = function() {
- var returned, then;
-
- // Support: Promises/A+ section 2.3.3.3.3
- // https://promisesaplus.com/#point-59
- // Ignore double-resolution attempts
- if ( depth < maxDepth ) {
- return;
- }
-
- returned = handler.apply( that, args );
-
- // Support: Promises/A+ section 2.3.1
- // https://promisesaplus.com/#point-48
- if ( returned === deferred.promise() ) {
- throw new TypeError( "Thenable self-resolution" );
- }
-
- // Support: Promises/A+ sections 2.3.3.1, 3.5
- // https://promisesaplus.com/#point-54
- // https://promisesaplus.com/#point-75
- // Retrieve `then` only once
- then = returned &&
-
- // Support: Promises/A+ section 2.3.4
- // https://promisesaplus.com/#point-64
- // Only check objects and functions for thenability
- ( typeof returned === "object" ||
- typeof returned === "function" ) &&
- returned.then;
-
- // Handle a returned thenable
- if ( jQuery.isFunction( then ) ) {
-
- // Special processors (notify) just wait for resolution
- if ( special ) {
- then.call(
- returned,
- resolve( maxDepth, deferred, Identity, special ),
- resolve( maxDepth, deferred, Thrower, special )
- );
-
- // Normal processors (resolve) also hook into progress
- } else {
-
- // ...and disregard older resolution values
- maxDepth++;
-
- then.call(
- returned,
- resolve( maxDepth, deferred, Identity, special ),
- resolve( maxDepth, deferred, Thrower, special ),
- resolve( maxDepth, deferred, Identity,
- deferred.notifyWith )
- );
- }
-
- // Handle all other returned values
- } else {
-
- // Only substitute handlers pass on context
- // and multiple values (non-spec behavior)
- if ( handler !== Identity ) {
- that = undefined;
- args = [ returned ];
- }
-
- // Process the value(s)
- // Default process is resolve
- ( special || deferred.resolveWith )( that, args );
- }
- },
-
- // Only normal processors (resolve) catch and reject exceptions
- process = special ?
- mightThrow :
- function() {
- try {
- mightThrow();
- } catch ( e ) {
-
- if ( jQuery.Deferred.exceptionHook ) {
- jQuery.Deferred.exceptionHook( e,
- process.stackTrace );
- }
-
- // Support: Promises/A+ section 2.3.3.3.4.1
- // https://promisesaplus.com/#point-61
- // Ignore post-resolution exceptions
- if ( depth + 1 >= maxDepth ) {
-
- // Only substitute handlers pass on context
- // and multiple values (non-spec behavior)
- if ( handler !== Thrower ) {
- that = undefined;
- args = [ e ];
- }
-
- deferred.rejectWith( that, args );
- }
- }
- };
-
- // Support: Promises/A+ section 2.3.3.3.1
- // https://promisesaplus.com/#point-57
- // Re-resolve promises immediately to dodge false rejection from
- // subsequent errors
- if ( depth ) {
- process();
- } else {
-
- // Call an optional hook to record the stack, in case of exception
- // since it's otherwise lost when execution goes async
- if ( jQuery.Deferred.getStackHook ) {
- process.stackTrace = jQuery.Deferred.getStackHook();
- }
- window.setTimeout( process );
- }
- };
- }
-
- return jQuery.Deferred( function( newDefer ) {
-
- // progress_handlers.add( ... )
- tuples[ 0 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- jQuery.isFunction( onProgress ) ?
- onProgress :
- Identity,
- newDefer.notifyWith
- )
- );
-
- // fulfilled_handlers.add( ... )
- tuples[ 1 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- jQuery.isFunction( onFulfilled ) ?
- onFulfilled :
- Identity
- )
- );
-
- // rejected_handlers.add( ... )
- tuples[ 2 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- jQuery.isFunction( onRejected ) ?
- onRejected :
- Thrower
- )
- );
- } ).promise();
- },
-
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 5 ];
-
- // promise.progress = list.add
- // promise.done = list.add
- // promise.fail = list.add
- promise[ tuple[ 1 ] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add(
- function() {
-
- // state = "resolved" (i.e., fulfilled)
- // state = "rejected"
- state = stateString;
- },
-
- // rejected_callbacks.disable
- // fulfilled_callbacks.disable
- tuples[ 3 - i ][ 2 ].disable,
-
- // progress_callbacks.lock
- tuples[ 0 ][ 2 ].lock
- );
- }
-
- // progress_handlers.fire
- // fulfilled_handlers.fire
- // rejected_handlers.fire
- list.add( tuple[ 3 ].fire );
-
- // deferred.notify = function() { deferred.notifyWith(...) }
- // deferred.resolve = function() { deferred.resolveWith(...) }
- // deferred.reject = function() { deferred.rejectWith(...) }
- deferred[ tuple[ 0 ] ] = function() {
- deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
- return this;
- };
-
- // deferred.notifyWith = list.fireWith
- // deferred.resolveWith = list.fireWith
- // deferred.rejectWith = list.fireWith
- deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
- } );
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( singleValue ) {
- var
-
- // count of uncompleted subordinates
- remaining = arguments.length,
-
- // count of unprocessed arguments
- i = remaining,
-
- // subordinate fulfillment data
- resolveContexts = Array( i ),
- resolveValues = slice.call( arguments ),
-
- // the master Deferred
- master = jQuery.Deferred(),
-
- // subordinate callback factory
- updateFunc = function( i ) {
- return function( value ) {
- resolveContexts[ i ] = this;
- resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( !( --remaining ) ) {
- master.resolveWith( resolveContexts, resolveValues );
- }
- };
- };
-
- // Single- and empty arguments are adopted like Promise.resolve
- if ( remaining <= 1 ) {
- adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject );
-
- // Use .then() to unwrap secondary thenables (cf. gh-3000)
- if ( master.state() === "pending" ||
- jQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
-
- return master.then();
- }
- }
-
- // Multiple arguments are aggregated like Promise.all array elements
- while ( i-- ) {
- adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
- }
-
- return master.promise();
- }
-} );
-
-
-// These usually indicate a programmer mistake during development,
-// warn about them ASAP rather than swallowing them by default.
-var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
-
-jQuery.Deferred.exceptionHook = function( error, stack ) {
-
- // Support: IE 8 - 9 only
- // Console exists when dev tools are open, which can happen at any time
- if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
- window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
- }
-};
-
-
-
-
-jQuery.readyException = function( error ) {
- window.setTimeout( function() {
- throw error;
- } );
-};
-
-
-
-
-// The deferred used on DOM ready
-var readyList = jQuery.Deferred();
-
-jQuery.fn.ready = function( fn ) {
-
- readyList
- .then( fn )
-
- // Wrap jQuery.readyException in a function so that the lookup
- // happens at the time of error handling instead of callback
- // registration.
- .catch( function( error ) {
- jQuery.readyException( error );
- } );
-
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
- }
-} );
-
-jQuery.ready.then = readyList.then;
-
-// The ready event handler and self cleanup method
-function completed() {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
- jQuery.ready();
-}
-
-// Catch cases where $(document).ready() is called
-// after the browser event has already occurred.
-// Support: IE <=9 - 10 only
-// Older IE sometimes signals "interactive" too soon
-if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
-} else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
-}
-
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- len = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( jQuery.type( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !jQuery.isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
-
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < len; i++ ) {
- fn(
- elems[ i ], key, raw ?
- value :
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
- );
- }
- }
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- len ? fn( elems[ 0 ], key ) : emptyGet;
-};
-var acceptData = function( owner ) {
-
- // Accepts only:
- // - Node
- // - Node.ELEMENT_NODE
- // - Node.DOCUMENT_NODE
- // - Object
- // - Any
- return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-};
-
-
-
-
-function Data() {
- this.expando = jQuery.expando + Data.uid++;
-}
-
-Data.uid = 1;
-
-Data.prototype = {
-
- cache: function( owner ) {
-
- // Check if the owner object already has a cache
- var value = owner[ this.expando ];
-
- // If not, create one
- if ( !value ) {
- value = {};
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( acceptData( owner ) ) {
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable property
- // configurable must be true to allow the property to be
- // deleted when data is removed
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- configurable: true
- } );
- }
- }
- }
-
- return value;
- },
- set: function( owner, data, value ) {
- var prop,
- cache = this.cache( owner );
-
- // Handle: [ owner, key, value ] args
- // Always use camelCase key (gh-2257)
- if ( typeof data === "string" ) {
- cache[ jQuery.camelCase( data ) ] = value;
-
- // Handle: [ owner, { properties } ] args
- } else {
-
- // Copy the properties one-by-one to the cache object
- for ( prop in data ) {
- cache[ jQuery.camelCase( prop ) ] = data[ prop ];
- }
- }
- return cache;
- },
- get: function( owner, key ) {
- return key === undefined ?
- this.cache( owner ) :
-
- // Always use camelCase key (gh-2257)
- owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];
- },
- access: function( owner, key, value ) {
-
- // In cases where either:
- //
- // 1. No key was specified
- // 2. A string key was specified, but no value provided
- //
- // Take the "read" path and allow the get method to determine
- // which value to return, respectively either:
- //
- // 1. The entire cache object
- // 2. The data stored at the key
- //
- if ( key === undefined ||
- ( ( key && typeof key === "string" ) && value === undefined ) ) {
-
- return this.get( owner, key );
- }
-
- // When the key is not a string, or both a key and value
- // are specified, set or extend (existing objects) with either:
- //
- // 1. An object of properties
- // 2. A key and value
- //
- this.set( owner, key, value );
-
- // Since the "set" path can have two possible entry points
- // return the expected data based on which path was taken[*]
- return value !== undefined ? value : key;
- },
- remove: function( owner, key ) {
- var i,
- cache = owner[ this.expando ];
-
- if ( cache === undefined ) {
- return;
- }
-
- if ( key !== undefined ) {
-
- // Support array or space separated string of keys
- if ( jQuery.isArray( key ) ) {
-
- // If key is an array of keys...
- // We always set camelCase keys, so remove that.
- key = key.map( jQuery.camelCase );
- } else {
- key = jQuery.camelCase( key );
-
- // If a key with the spaces exists, use it.
- // Otherwise, create an array by matching non-whitespace
- key = key in cache ?
- [ key ] :
- ( key.match( rnotwhite ) || [] );
- }
-
- i = key.length;
-
- while ( i-- ) {
- delete cache[ key[ i ] ];
- }
- }
-
- // Remove the expando if there's no more data
- if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
- // Support: Chrome <=35 - 45
- // Webkit & Blink performance suffers when deleting properties
- // from DOM nodes, so set to undefined instead
- // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
- if ( owner.nodeType ) {
- owner[ this.expando ] = undefined;
- } else {
- delete owner[ this.expando ];
- }
- }
- },
- hasData: function( owner ) {
- var cache = owner[ this.expando ];
- return cache !== undefined && !jQuery.isEmptyObject( cache );
- }
-};
-var dataPriv = new Data();
-
-var dataUser = new Data();
-
-
-
-// Implementation Summary
-//
-// 1. Enforce API surface and semantic compatibility with 1.9.x branch
-// 2. Improve the module's maintainability by reducing the storage
-// paths to a single mechanism.
-// 3. Use the same single mechanism to support "private" and "user" data.
-// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-// 5. Avoid exposing implementation details on user objects (eg. expando properties)
-// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /[A-Z]/g;
-
-function dataAttr( elem, key, data ) {
- var name;
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
-
- // Only convert to a number if it doesn't change the string
- +data + "" === data ? +data :
- rbrace.test( data ) ? JSON.parse( data ) :
- data;
- } catch ( e ) {}
-
- // Make sure we set the data so it isn't changed later
- dataUser.set( elem, key, data );
- } else {
- data = undefined;
- }
- }
- return data;
-}
-
-jQuery.extend( {
- hasData: function( elem ) {
- return dataUser.hasData( elem ) || dataPriv.hasData( elem );
- },
-
- data: function( elem, name, data ) {
- return dataUser.access( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- dataUser.remove( elem, name );
- },
-
- // TODO: Now that all calls to _data and _removeData have been replaced
- // with direct calls to dataPriv methods, these can be deprecated.
- _data: function( elem, name, data ) {
- return dataPriv.access( elem, name, data );
- },
-
- _removeData: function( elem, name ) {
- dataPriv.remove( elem, name );
- }
-} );
-
-jQuery.fn.extend( {
- data: function( key, value ) {
- var i, name, data,
- elem = this[ 0 ],
- attrs = elem && elem.attributes;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = dataUser.get( elem );
-
- if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE 11 only
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.slice( 5 ) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- dataPriv.set( elem, "hasDataAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each( function() {
- dataUser.set( this, key );
- } );
- }
-
- return access( this, function( value ) {
- var data;
-
- // The calling jQuery object (element matches) is not empty
- // (and therefore has an element appears at this[ 0 ]) and the
- // `value` parameter was not undefined. An empty jQuery object
- // will result in `undefined` for elem = this[ 0 ] which will
- // throw an exception if an attempt to read a data cache is made.
- if ( elem && value === undefined ) {
-
- // Attempt to get data from the cache
- // The key will always be camelCased in Data
- data = dataUser.get( elem, key );
- if ( data !== undefined ) {
- return data;
- }
-
- // Attempt to "discover" the data in
- // HTML5 custom data-* attrs
- data = dataAttr( elem, key );
- if ( data !== undefined ) {
- return data;
- }
-
- // We tried really hard, but the data doesn't exist.
- return;
- }
-
- // Set the data...
- this.each( function() {
-
- // We always store the camelCased key
- dataUser.set( this, key, value );
- } );
- }, null, value, arguments.length > 1, null, true );
- },
-
- removeData: function( key ) {
- return this.each( function() {
- dataUser.remove( this, key );
- } );
- }
-} );
-
-
-jQuery.extend( {
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = dataPriv.get( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || jQuery.isArray( data ) ) {
- queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // Clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // Not public - generate a queueHooks object, or return the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
- empty: jQuery.Callbacks( "once memory" ).add( function() {
- dataPriv.remove( elem, [ type + "queue", key ] );
- } )
- } );
- }
-} );
-
-jQuery.fn.extend( {
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[ 0 ], type );
- }
-
- return data === undefined ?
- this :
- this.each( function() {
- var queue = jQuery.queue( this, type, data );
-
- // Ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- dequeue: function( type ) {
- return this.each( function() {
- jQuery.dequeue( this, type );
- } );
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
-
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-} );
-var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var isHiddenWithinTree = function( elem, el ) {
-
- // isHiddenWithinTree might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
-
- // Inline style trumps all
- return elem.style.display === "none" ||
- elem.style.display === "" &&
-
- // Otherwise, check computed style
- // Support: Firefox <=43 - 45
- // Disconnected elements can have computed display: none, so first confirm that elem is
- // in the document.
- jQuery.contains( elem.ownerDocument, elem ) &&
-
- jQuery.css( elem, "display" ) === "none";
- };
-
-var swap = function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
-};
-
-
-
-
-function adjustCSS( elem, prop, valueParts, tween ) {
- var adjusted,
- scale = 1,
- maxIterations = 20,
- currentValue = tween ?
- function() {
- return tween.cur();
- } :
- function() {
- return jQuery.css( elem, prop, "" );
- },
- initial = currentValue(),
- unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
- rcssNum.exec( jQuery.css( elem, prop ) );
-
- if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
- // Trust units reported by jQuery.css
- unit = unit || initialInUnit[ 3 ];
-
- // Make sure we update the tween properties later on
- valueParts = valueParts || [];
-
- // Iteratively approximate from a nonzero starting point
- initialInUnit = +initial || 1;
-
- do {
-
- // If previous iteration zeroed out, double until we get *something*.
- // Use string for doubling so we don't accidentally see scale as unchanged below
- scale = scale || ".5";
-
- // Adjust and apply
- initialInUnit = initialInUnit / scale;
- jQuery.style( elem, prop, initialInUnit + unit );
-
- // Update scale, tolerating zero or NaN from tween.cur()
- // Break the loop if scale is unchanged or perfect, or if we've just had enough.
- } while (
- scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
- );
- }
-
- if ( valueParts ) {
- initialInUnit = +initialInUnit || +initial || 0;
-
- // Apply relative offset (+=/-=) if specified
- adjusted = valueParts[ 1 ] ?
- initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
- +valueParts[ 2 ];
- if ( tween ) {
- tween.unit = unit;
- tween.start = initialInUnit;
- tween.end = adjusted;
- }
- }
- return adjusted;
-}
-
-
-var defaultDisplayMap = {};
-
-function getDefaultDisplay( elem ) {
- var temp,
- doc = elem.ownerDocument,
- nodeName = elem.nodeName,
- display = defaultDisplayMap[ nodeName ];
-
- if ( display ) {
- return display;
- }
-
- temp = doc.body.appendChild( doc.createElement( nodeName ) ),
- display = jQuery.css( temp, "display" );
-
- temp.parentNode.removeChild( temp );
-
- if ( display === "none" ) {
- display = "block";
- }
- defaultDisplayMap[ nodeName ] = display;
-
- return display;
-}
-
-function showHide( elements, show ) {
- var display, elem,
- values = [],
- index = 0,
- length = elements.length;
-
- // Determine new display value for elements that need to change
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- display = elem.style.display;
- if ( show ) {
-
- // Since we force visibility upon cascade-hidden elements, an immediate (and slow)
- // check is required in this first loop unless we have a nonempty display value (either
- // inline or about-to-be-restored)
- if ( display === "none" ) {
- values[ index ] = dataPriv.get( elem, "display" ) || null;
- if ( !values[ index ] ) {
- elem.style.display = "";
- }
- }
- if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
- values[ index ] = getDefaultDisplay( elem );
- }
- } else {
- if ( display !== "none" ) {
- values[ index ] = "none";
-
- // Remember what we're overwriting
- dataPriv.set( elem, "display", display );
- }
- }
- }
-
- // Set the display of the elements in a second loop to avoid constant reflow
- for ( index = 0; index < length; index++ ) {
- if ( values[ index ] != null ) {
- elements[ index ].style.display = values[ index ];
- }
- }
-
- return elements;
-}
-
-jQuery.fn.extend( {
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each( function() {
- if ( isHiddenWithinTree( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- } );
- }
-} );
-var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i );
-
-var rscriptType = ( /^$|\/(?:java|ecma)script/i );
-
-
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
-
- // Support: IE <=9 only
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
-
- // XHTML parsers do not magically insert elements in the
- // same way that tag soup parsers do. So we cannot shorten
- // this by omitting <tbody> or other required elements.
- thead: [ 1, "<table>", "</table>" ],
- col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
- _default: [ 0, "", "" ]
-};
-
-// Support: IE <=9 only
-wrapMap.optgroup = wrapMap.option;
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-
-function getAll( context, tag ) {
-
- // Support: IE <=9 - 11 only
- // Use typeof to avoid zero-argument method invocation on host objects (#15151)
- var ret = typeof context.getElementsByTagName !== "undefined" ?
- context.getElementsByTagName( tag || "*" ) :
- typeof context.querySelectorAll !== "undefined" ?
- context.querySelectorAll( tag || "*" ) :
- [];
-
- return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
- jQuery.merge( [ context ], ret ) :
- ret;
-}
-
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- dataPriv.set(
- elems[ i ],
- "globalEval",
- !refElements || dataPriv.get( refElements[ i ], "globalEval" )
- );
- }
-}
-
-
-var rhtml = /<|&#?\w+;/;
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
- var elem, tmp, tag, wrap, contains, j,
- fragment = context.createDocumentFragment(),
- nodes = [],
- i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( jQuery.type( elem ) === "object" ) {
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, tmp.childNodes );
-
- // Remember the top-level container
- tmp = fragment.firstChild;
-
- // Ensure the created nodes are orphaned (#12392)
- tmp.textContent = "";
- }
- }
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
-
- i = 0;
- while ( ( elem = nodes[ i++ ] ) ) {
-
- // Skip elements already in the context collection (trac-4087)
- if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
- if ( ignored ) {
- ignored.push( elem );
- }
- continue;
- }
-
- contains = jQuery.contains( elem.ownerDocument, elem );
-
- // Append to fragment
- tmp = getAll( fragment.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( contains ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( ( elem = tmp[ j++ ] ) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- return fragment;
-}
-
-
-( function() {
- var fragment = document.createDocumentFragment(),
- div = fragment.appendChild( document.createElement( "div" ) ),
- input = document.createElement( "input" );
-
- // Support: Android 4.0 - 4.3 only
- // Check state lost if the name is set (#11217)
- // Support: Windows Web Apps (WWA)
- // `name` and `type` must use .setAttribute for WWA (#14901)
- input.setAttribute( "type", "radio" );
- input.setAttribute( "checked", "checked" );
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
-
- // Support: Android <=4.1 only
- // Older WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE <=11 only
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- div.innerHTML = "<textarea>x</textarea>";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-} )();
-var documentElement = document.documentElement;
-
-
-
-var
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-// Support: IE <=9 only
-// See #13393 for more info
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
-
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
-
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- on( elem, type, selector, data, types[ type ], one );
- }
- return elem;
- }
-
- if ( data == null && fn == null ) {
-
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
-
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
-
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return elem;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
-
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
-
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return elem.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- } );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
-
- var handleObjIn, eventHandle, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.get( elem );
-
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- if ( !elemData ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Ensure that invalid selectors throw exceptions at attach time
- // Evaluate against documentElement in case elem is a non-element node (e.g., document)
- if ( selector ) {
- jQuery.find.matchesSelector( documentElement, selector );
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !( events = elemData.events ) ) {
- events = elemData.events = {};
- }
- if ( !( eventHandle = elemData.handle ) ) {
- eventHandle = elemData.handle = function( e ) {
-
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
- jQuery.event.dispatch.apply( elem, arguments ) : undefined;
- };
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend( {
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join( "." )
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !( handlers = events[ type ] ) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener if the special events handler returns false
- if ( !special.setup ||
- special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var j, origCount, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
- if ( !elemData || !( events = elemData.events ) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[ 2 ] &&
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector ||
- selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown ||
- special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove data and the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- dataPriv.remove( elem, "handle events" );
- }
- },
-
- dispatch: function( nativeEvent ) {
-
- // Make a writable jQuery.Event from the native event object
- var event = jQuery.event.fix( nativeEvent );
-
- var i, j, ret, matched, handleObj, handlerQueue,
- args = new Array( arguments.length ),
- handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[ 0 ] = event;
-
- for ( i = 1; i < arguments.length; i++ ) {
- args[ i ] = arguments[ i ];
- }
-
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( ( handleObj = matched.handlers[ j++ ] ) &&
- !event.isImmediatePropagationStopped() ) {
-
- // Triggered event must either 1) have no namespace, or 2) have namespace(s)
- // a subset or equal to those in the bound event (both can have no namespace).
- if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
- handleObj.handler ).apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( ( event.result = ret ) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, matches, sel, handleObj,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Support: IE <=9
- // Find delegate handlers
- // Black-hole SVG <use> instance trees (#13180)
- //
- // Support: Firefox <=42
- // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
- if ( delegateCount && cur.nodeType &&
- ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
-
- for ( ; cur !== this; cur = cur.parentNode || this ) {
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) {
- matches = [];
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matches[ sel ] === undefined ) {
- matches[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) > -1 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matches[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push( { elem: cur, handlers: matches } );
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( delegateCount < handlers.length ) {
- handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );
- }
-
- return handlerQueue;
- },
-
- addProp: function( name, hook ) {
- Object.defineProperty( jQuery.Event.prototype, name, {
- enumerable: true,
- configurable: true,
-
- get: jQuery.isFunction( hook ) ?
- function() {
- if ( this.originalEvent ) {
- return hook( this.originalEvent );
- }
- } :
- function() {
- if ( this.originalEvent ) {
- return this.originalEvent[ name ];
- }
- },
-
- set: function( value ) {
- Object.defineProperty( this, name, {
- enumerable: true,
- configurable: true,
- writable: true,
- value: value
- } );
- }
- } );
- },
-
- fix: function( originalEvent ) {
- return originalEvent[ jQuery.expando ] ?
- originalEvent :
- new jQuery.Event( originalEvent );
- },
-
- special: {
- load: {
-
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- focus: {
-
- // Fire native event if possible so blur/focus sequence is correct
- trigger: function() {
- if ( this !== safeActiveElement() && this.focus ) {
- this.focus();
- return false;
- }
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if ( this === safeActiveElement() && this.blur ) {
- this.blur();
- return false;
- }
- },
- delegateType: "focusout"
- },
- click: {
-
- // For checkbox, fire native event so checked state will be right
- trigger: function() {
- if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
- this.click();
- return false;
- }
- },
-
- // For cross-browser consistency, don't fire native .click() on links
- _default: function( event ) {
- return jQuery.nodeName( event.target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- }
-};
-
-jQuery.removeEvent = function( elem, type, handle ) {
-
- // This "if" is needed for plain objects
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle );
- }
-};
-
-jQuery.Event = function( src, props ) {
-
- // Allow instantiation without the 'new' keyword
- if ( !( this instanceof jQuery.Event ) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
-
- // Support: Android <=2.3 only
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Create target properties
- // Support: Safari <=6 - 7 only
- // Target should not be a text node (#504, #13143)
- this.target = ( src.target && src.target.nodeType === 3 ) ?
- src.target.parentNode :
- src.target;
-
- this.currentTarget = src.currentTarget;
- this.relatedTarget = src.relatedTarget;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- constructor: jQuery.Event,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
- isSimulated: false,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.preventDefault();
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopPropagation();
- }
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Includes all common event props including KeyEvent and MouseEvent specific props
-jQuery.each( {
- altKey: true,
- bubbles: true,
- cancelable: true,
- changedTouches: true,
- ctrlKey: true,
- detail: true,
- eventPhase: true,
- metaKey: true,
- pageX: true,
- pageY: true,
- shiftKey: true,
- view: true,
- "char": true,
- charCode: true,
- key: true,
- keyCode: true,
- button: true,
- buttons: true,
- clientX: true,
- clientY: true,
- offsetX: true,
- offsetY: true,
- pointerId: true,
- pointerType: true,
- screenX: true,
- screenY: true,
- targetTouches: true,
- toElement: true,
- touches: true,
-
- which: function( event ) {
- var button = event.button;
-
- // Add which for key events
- if ( event.which == null && rkeyEvent.test( event.type ) ) {
- return event.charCode != null ? event.charCode : event.keyCode;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
- return ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event.which;
- }
-}, jQuery.event.addProp );
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mouseenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-} );
-
-jQuery.fn.extend( {
-
- on: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn );
- },
- one: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
-
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ?
- handleObj.origType + "." + handleObj.namespace :
- handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
-
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
-
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each( function() {
- jQuery.event.remove( this, types, fn, selector );
- } );
- }
-} );
-
-
-var
-
- /* eslint-disable max-len */
-
- // See https://github.com/eslint/eslint/issues/3229
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
-
- /* eslint-enable */
-
- // Support: IE <=10 - 11, Edge 12 - 13
- // In IE/Edge using regex groups here causes severe slowdowns.
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
- rnoInnerhtml = /<script|<style|<link/i,
-
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptTypeMasked = /^true\/(.*)/,
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
-function manipulationTarget( elem, content ) {
- if ( jQuery.nodeName( elem, "table" ) &&
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
-
- return elem.getElementsByTagName( "tbody" )[ 0 ] || elem;
- }
-
- return elem;
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
- elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
- return elem;
-}
-function restoreScript( elem ) {
- var match = rscriptTypeMasked.exec( elem.type );
-
- if ( match ) {
- elem.type = match[ 1 ];
- } else {
- elem.removeAttribute( "type" );
- }
-
- return elem;
-}
-
-function cloneCopyEvent( src, dest ) {
- var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
-
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- // 1. Copy private data: events, handlers, etc.
- if ( dataPriv.hasData( src ) ) {
- pdataOld = dataPriv.access( src );
- pdataCur = dataPriv.set( dest, pdataOld );
- events = pdataOld.events;
-
- if ( events ) {
- delete pdataCur.handle;
- pdataCur.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
- }
-
- // 2. Copy user data
- if ( dataUser.hasData( src ) ) {
- udataOld = dataUser.access( src );
- udataCur = jQuery.extend( {}, udataOld );
-
- dataUser.set( dest, udataCur );
- }
-}
-
-// Fix IE bugs, see support tests
-function fixInput( src, dest ) {
- var nodeName = dest.nodeName.toLowerCase();
-
- // Fails to persist the checked state of a cloned checkbox or radio button.
- if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
- dest.checked = src.checked;
-
- // Fails to return the selected option to the default selected state when cloning options
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-}
-
-function domManip( collection, args, callback, ignored ) {
-
- // Flatten any nested arrays
- args = concat.apply( [], args );
-
- var fragment, first, scripts, hasScripts, node, doc,
- i = 0,
- l = collection.length,
- iNoClone = l - 1,
- value = args[ 0 ],
- isFunction = jQuery.isFunction( value );
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( isFunction ||
- ( l > 1 && typeof value === "string" &&
- !support.checkClone && rchecked.test( value ) ) ) {
- return collection.each( function( index ) {
- var self = collection.eq( index );
- if ( isFunction ) {
- args[ 0 ] = value.call( this, index, self.html() );
- }
- domManip( self, args, callback, ignored );
- } );
- }
-
- if ( l ) {
- fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
- first = fragment.firstChild;
-
- if ( fragment.childNodes.length === 1 ) {
- fragment = first;
- }
-
- // Require either new content or an interest in ignored elements to invoke the callback
- if ( first || ignored ) {
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
- hasScripts = scripts.length;
-
- // Use the original fragment for the last item
- // instead of the first because it can end up
- // being emptied incorrectly in certain situations (#8070).
- for ( ; i < l; i++ ) {
- node = fragment;
-
- if ( i !== iNoClone ) {
- node = jQuery.clone( node, true, true );
-
- // Keep references to cloned scripts for later restoration
- if ( hasScripts ) {
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( scripts, getAll( node, "script" ) );
- }
- }
-
- callback.call( collection[ i ], node, i );
- }
-
- if ( hasScripts ) {
- doc = scripts[ scripts.length - 1 ].ownerDocument;
-
- // Reenable scripts
- jQuery.map( scripts, restoreScript );
-
- // Evaluate executable scripts on first document insertion
- for ( i = 0; i < hasScripts; i++ ) {
- node = scripts[ i ];
- if ( rscriptType.test( node.type || "" ) &&
- !dataPriv.access( node, "globalEval" ) &&
- jQuery.contains( doc, node ) ) {
-
- if ( node.src ) {
-
- // Optional AJAX dependency, but won't run scripts if not present
- if ( jQuery._evalUrl ) {
- jQuery._evalUrl( node.src );
- }
- } else {
- DOMEval( node.textContent.replace( rcleanScript, "" ), doc );
- }
- }
- }
- }
- }
- }
-
- return collection;
-}
-
-function remove( elem, selector, keepData ) {
- var node,
- nodes = selector ? jQuery.filter( selector, elem ) : elem,
- i = 0;
-
- for ( ; ( node = nodes[ i ] ) != null; i++ ) {
- if ( !keepData && node.nodeType === 1 ) {
- jQuery.cleanData( getAll( node ) );
- }
-
- if ( node.parentNode ) {
- if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
- setGlobalEval( getAll( node, "script" ) );
- }
- node.parentNode.removeChild( node );
- }
- }
-
- return elem;
-}
-
-jQuery.extend( {
- htmlPrefilter: function( html ) {
- return html.replace( rxhtmlTag, "<$1></$2>" );
- },
-
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var i, l, srcElements, destElements,
- clone = elem.cloneNode( true ),
- inPage = jQuery.contains( elem.ownerDocument, elem );
-
- // Fix IE cloning issues
- if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
- !jQuery.isXMLDoc( elem ) ) {
-
- // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
- destElements = getAll( clone );
- srcElements = getAll( elem );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- fixInput( srcElements[ i ], destElements[ i ] );
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- if ( deepDataAndEvents ) {
- srcElements = srcElements || getAll( elem );
- destElements = destElements || getAll( clone );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- cloneCopyEvent( srcElements[ i ], destElements[ i ] );
- }
- } else {
- cloneCopyEvent( elem, clone );
- }
- }
-
- // Preserve script evaluation history
- destElements = getAll( clone, "script" );
- if ( destElements.length > 0 ) {
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
- }
-
- // Return the cloned set
- return clone;
- },
-
- cleanData: function( elems ) {
- var data, elem, type,
- special = jQuery.event.special,
- i = 0;
-
- for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
- if ( acceptData( elem ) ) {
- if ( ( data = elem[ dataPriv.expando ] ) ) {
- if ( data.events ) {
- for ( type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
-
- // Support: Chrome <=35 - 45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataPriv.expando ] = undefined;
- }
- if ( elem[ dataUser.expando ] ) {
-
- // Support: Chrome <=35 - 45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataUser.expando ] = undefined;
- }
- }
- }
- }
-} );
-
-jQuery.fn.extend( {
- detach: function( selector ) {
- return remove( this, selector, true );
- },
-
- remove: function( selector ) {
- return remove( this, selector );
- },
-
- text: function( value ) {
- return access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().each( function() {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- this.textContent = value;
- }
- } );
- }, null, value, arguments.length );
- },
-
- append: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.appendChild( elem );
- }
- } );
- },
-
- prepend: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.insertBefore( elem, target.firstChild );
- }
- } );
- },
-
- before: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this );
- }
- } );
- },
-
- after: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- }
- } );
- },
-
- empty: function() {
- var elem,
- i = 0;
-
- for ( ; ( elem = this[ i ] ) != null; i++ ) {
- if ( elem.nodeType === 1 ) {
-
- // Prevent memory leaks
- jQuery.cleanData( getAll( elem, false ) );
-
- // Remove any remaining nodes
- elem.textContent = "";
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function() {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- } );
- },
-
- html: function( value ) {
- return access( this, function( value ) {
- var elem = this[ 0 ] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined && elem.nodeType === 1 ) {
- return elem.innerHTML;
- }
-
- // See if we can take a shortcut and just use innerHTML
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
- value = jQuery.htmlPrefilter( value );
-
- try {
- for ( ; i < l; i++ ) {
- elem = this[ i ] || {};
-
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch ( e ) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function() {
- var ignored = [];
-
- // Make the changes, replacing each non-ignored context element with the new content
- return domManip( this, arguments, function( elem ) {
- var parent = this.parentNode;
-
- if ( jQuery.inArray( this, ignored ) < 0 ) {
- jQuery.cleanData( getAll( this ) );
- if ( parent ) {
- parent.replaceChild( elem, this );
- }
- }
-
- // Force callback invocation
- }, ignored );
- }
-} );
-
-jQuery.each( {
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var elems,
- ret = [],
- insert = jQuery( selector ),
- last = insert.length - 1,
- i = 0;
-
- for ( ; i <= last; i++ ) {
- elems = i === last ? this : this.clone( true );
- jQuery( insert[ i ] )[ original ]( elems );
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // .get() because push.apply(_, arraylike) throws on ancient WebKit
- push.apply( ret, elems.get() );
- }
-
- return this.pushStack( ret );
- };
-} );
-var rmargin = ( /^margin/ );
-
-var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-
-var getStyles = function( elem ) {
-
- // Support: IE <=11 only, Firefox <=30 (#15098, #14150)
- // IE throws on elements created in popups
- // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
- var view = elem.ownerDocument.defaultView;
-
- if ( !view || !view.opener ) {
- view = window;
- }
-
- return view.getComputedStyle( elem );
- };
-
-
-
-( function() {
-
- // Executing both pixelPosition & boxSizingReliable tests require only one layout
- // so they're executed at the same time to save the second computation.
- function computeStyleTests() {
-
- // This is a singleton, we need to execute it only once
- if ( !div ) {
- return;
- }
-
- div.style.cssText =
- "box-sizing:border-box;" +
- "position:relative;display:block;" +
- "margin:auto;border:1px;padding:1px;" +
- "top:1%;width:50%";
- div.innerHTML = "";
- documentElement.appendChild( container );
-
- var divStyle = window.getComputedStyle( div );
- pixelPositionVal = divStyle.top !== "1%";
-
- // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
- reliableMarginLeftVal = divStyle.marginLeft === "2px";
- boxSizingReliableVal = divStyle.width === "4px";
-
- // Support: Android 4.0 - 4.3 only
- // Some styles come back with percentage values, even though they shouldn't
- div.style.marginRight = "50%";
- pixelMarginRightVal = divStyle.marginRight === "4px";
-
- documentElement.removeChild( container );
-
- // Nullify the div so it wouldn't be stored in the memory and
- // it will also be a sign that checks already performed
- div = null;
- }
-
- var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
- container = document.createElement( "div" ),
- div = document.createElement( "div" );
-
- // Finish early in limited (non-browser) environments
- if ( !div.style ) {
- return;
- }
-
- // Support: IE <=9 - 11 only
- // Style of cloned element affects source element cloned (#8908)
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
- "padding:0;margin-top:1px;position:absolute";
- container.appendChild( div );
-
- jQuery.extend( support, {
- pixelPosition: function() {
- computeStyleTests();
- return pixelPositionVal;
- },
- boxSizingReliable: function() {
- computeStyleTests();
- return boxSizingReliableVal;
- },
- pixelMarginRight: function() {
- computeStyleTests();
- return pixelMarginRightVal;
- },
- reliableMarginLeft: function() {
- computeStyleTests();
- return reliableMarginLeftVal;
- }
- } );
-} )();
-
-
-function curCSS( elem, name, computed ) {
- var width, minWidth, maxWidth, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
-
- // Support: IE <=9 only
- // getPropertyValue is only needed for .css('filter') (#12537)
- if ( computed ) {
- ret = computed.getPropertyValue( name ) || computed[ name ];
-
- if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
- ret = jQuery.style( elem, name );
- }
-
- // A tribute to the "awesome hack by Dean Edwards"
- // Android Browser returns percentage for some values,
- // but width seems to be reliably pixels.
- // This is against the CSSOM draft spec:
- // https://drafts.csswg.org/cssom/#resolved-values
- if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
- // Remember the original values
- width = style.width;
- minWidth = style.minWidth;
- maxWidth = style.maxWidth;
-
- // Put in the new values to get a computed value out
- style.minWidth = style.maxWidth = style.width = ret;
- ret = computed.width;
-
- // Revert the changed values
- style.width = width;
- style.minWidth = minWidth;
- style.maxWidth = maxWidth;
- }
- }
-
- return ret !== undefined ?
-
- // Support: IE <=9 - 11 only
- // IE returns zIndex value as an integer.
- ret + "" :
- ret;
-}
-
-
-function addGetHookIf( conditionFn, hookFn ) {
-
- // Define the hook, we'll check on the first run if it's really needed.
- return {
- get: function() {
- if ( conditionFn() ) {
-
- // Hook not needed (or it's not possible to use it due
- // to missing dependency), remove it.
- delete this.get;
- return;
- }
-
- // Hook needed; redefine it so that the support test is not executed again.
- return ( this.get = hookFn ).apply( this, arguments );
- }
- };
-}
-
-
-var
-
- // Swappable if display is none or starts with table
- // except "table", "table-cell", or "table-caption"
- // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssNormalTransform = {
- letterSpacing: "0",
- fontWeight: "400"
- },
-
- cssPrefixes = [ "Webkit", "Moz", "ms" ],
- emptyStyle = document.createElement( "div" ).style;
-
-// Return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( name ) {
-
- // Shortcut for names that are not vendor prefixed
- if ( name in emptyStyle ) {
- return name;
- }
-
- // Check for vendor prefixed names
- var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
- i = cssPrefixes.length;
-
- while ( i-- ) {
- name = cssPrefixes[ i ] + capName;
- if ( name in emptyStyle ) {
- return name;
- }
- }
-}
-
-function setPositiveNumber( elem, value, subtract ) {
-
- // Any relative (+/-) values have already been
- // normalized at this point
- var matches = rcssNum.exec( value );
- return matches ?
-
- // Guard against undefined "subtract", e.g., when used as in cssHooks
- Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
- value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
-
- // If we already have the right measurement, avoid augmentation
- 4 :
-
- // Otherwise initialize for horizontal or vertical properties
- name === "width" ? 1 : 0,
-
- val = 0;
-
- for ( ; i < 4; i += 2 ) {
-
- // Both box models exclude margin, so add it if we want it
- if ( extra === "margin" ) {
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
- }
-
- if ( isBorderBox ) {
-
- // border-box includes padding, so remove it if we want content
- if ( extra === "content" ) {
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
- }
-
- // At this point, extra isn't border nor margin, so remove border
- if ( extra !== "margin" ) {
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- } else {
-
- // At this point, extra isn't content, so add padding
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
- // At this point, extra isn't content nor padding, so add border
- if ( extra !== "padding" ) {
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- }
- }
-
- return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property, which is equivalent to the border-box value
- var val,
- valueIsBorderBox = true,
- styles = getStyles( elem ),
- isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
- // Support: IE <=11 only
- // Running getBoundingClientRect on a disconnected node
- // in IE throws an error.
- if ( elem.getClientRects().length ) {
- val = elem.getBoundingClientRect()[ name ];
- }
-
- // Some non-html elements return undefined for offsetWidth, so check for null/undefined
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
- if ( val <= 0 || val == null ) {
-
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name, styles );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test( val ) ) {
- return val;
- }
-
- // Check for style in case a browser which returns unreliable values
- // for getComputedStyle silently falls back to the reliable elem.style
- valueIsBorderBox = isBorderBox &&
- ( support.boxSizingReliable() || val === elem.style[ name ] );
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
- }
-
- // Use the active box-sizing model to add/subtract irrelevant styles
- return ( val +
- augmentWidthOrHeight(
- elem,
- name,
- extra || ( isBorderBox ? "border" : "content" ),
- valueIsBorderBox,
- styles
- )
- ) + "px";
-}
-
-jQuery.extend( {
-
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
-
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
- }
- }
- }
- },
-
- // Don't automatically add "px" to these possibly-unitless properties
- cssNumber: {
- "animationIterationCount": true,
- "columnCount": true,
- "fillOpacity": true,
- "flexGrow": true,
- "flexShrink": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "order": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- "float": "cssFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
-
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, hooks,
- origName = jQuery.camelCase( name ),
- style = elem.style;
-
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Gets hook for the prefixed version, then unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // Convert "+=" or "-=" to relative numbers (#7345)
- if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
- value = adjustCSS( elem, name, ret );
-
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that null and NaN values aren't set (#7116)
- if ( value == null || value !== value ) {
- return;
- }
-
- // If a number was passed in, add the unit (except for certain CSS properties)
- if ( type === "number" ) {
- value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
- }
-
- // background-* props affect original clone's values
- if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
- style[ name ] = "inherit";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !( "set" in hooks ) ||
- ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
-
- style[ name ] = value;
- }
-
- } else {
-
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks &&
- ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
-
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra, styles ) {
- var val, num, hooks,
- origName = jQuery.camelCase( name );
-
- // Make sure that we're working with the right name
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Try prefixed name followed by the unprefixed name
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks ) {
- val = hooks.get( elem, true, extra );
- }
-
- // Otherwise, if a way to get the computed value exists, use that
- if ( val === undefined ) {
- val = curCSS( elem, name, styles );
- }
-
- // Convert "normal" to computed value
- if ( val === "normal" && name in cssNormalTransform ) {
- val = cssNormalTransform[ name ];
- }
-
- // Make numeric if forced or a qualifier was provided and val looks numeric
- if ( extra === "" || extra ) {
- num = parseFloat( val );
- return extra === true || isFinite( num ) ? num || 0 : val;
- }
- return val;
- }
-} );
-
-jQuery.each( [ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
-
- // Certain elements can have dimension info if we invisibly show them
- // but it must have a current display style that would benefit
- return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
-
- // Support: Safari 8+
- // Table columns in Safari have non-zero offsetWidth & zero
- // getBoundingClientRect().width unless display is changed.
- // Support: IE <=11 only
- // Running getBoundingClientRect on a disconnected node
- // in IE throws an error.
- ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
- swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- } ) :
- getWidthOrHeight( elem, name, extra );
- }
- },
-
- set: function( elem, value, extra ) {
- var matches,
- styles = extra && getStyles( elem ),
- subtract = extra && augmentWidthOrHeight(
- elem,
- name,
- extra,
- jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
- styles
- );
-
- // Convert to pixels if value adjustment is needed
- if ( subtract && ( matches = rcssNum.exec( value ) ) &&
- ( matches[ 3 ] || "px" ) !== "px" ) {
-
- elem.style[ name ] = value;
- value = jQuery.css( elem, name );
- }
-
- return setPositiveNumber( elem, value, subtract );
- }
- };
-} );
-
-jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
- function( elem, computed ) {
- if ( computed ) {
- return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
- elem.getBoundingClientRect().left -
- swap( elem, { marginLeft: 0 }, function() {
- return elem.getBoundingClientRect().left;
- } )
- ) + "px";
- }
- }
-);
-
-// These hooks are used by animate to expand properties
-jQuery.each( {
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i = 0,
- expanded = {},
-
- // Assumes a single number if not a string
- parts = typeof value === "string" ? value.split( " " ) : [ value ];
-
- for ( ; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-
- if ( !rmargin.test( prefix ) ) {
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
- }
-} );
-
-jQuery.fn.extend( {
- css: function( name, value ) {
- return access( this, function( elem, name, value ) {
- var styles, len,
- map = {},
- i = 0;
-
- if ( jQuery.isArray( name ) ) {
- styles = getStyles( elem );
- len = name.length;
-
- for ( ; i < len; i++ ) {
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
- }
-
- return map;
- }
-
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
- }
-} );
-
-
-function Tween( elem, options, prop, end, easing ) {
- return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
- constructor: Tween,
- init: function( elem, options, prop, end, easing, unit ) {
- this.elem = elem;
- this.prop = prop;
- this.easing = easing || jQuery.easing._default;
- this.options = options;
- this.start = this.now = this.cur();
- this.end = end;
- this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
- },
- cur: function() {
- var hooks = Tween.propHooks[ this.prop ];
-
- return hooks && hooks.get ?
- hooks.get( this ) :
- Tween.propHooks._default.get( this );
- },
- run: function( percent ) {
- var eased,
- hooks = Tween.propHooks[ this.prop ];
-
- if ( this.options.duration ) {
- this.pos = eased = jQuery.easing[ this.easing ](
- percent, this.options.duration * percent, 0, 1, this.options.duration
- );
- } else {
- this.pos = eased = percent;
- }
- this.now = ( this.end - this.start ) * eased + this.start;
-
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- if ( hooks && hooks.set ) {
- hooks.set( this );
- } else {
- Tween.propHooks._default.set( this );
- }
- return this;
- }
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
- _default: {
- get: function( tween ) {
- var result;
-
- // Use a property on the element directly when it is not a DOM element,
- // or when there is no matching style property that exists.
- if ( tween.elem.nodeType !== 1 ||
- tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
- return tween.elem[ tween.prop ];
- }
-
- // Passing an empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails.
- // Simple values such as "10px" are parsed to Float;
- // complex values such as "rotate(1rad)" are returned as-is.
- result = jQuery.css( tween.elem, tween.prop, "" );
-
- // Empty strings, null, undefined and "auto" are converted to 0.
- return !result || result === "auto" ? 0 : result;
- },
- set: function( tween ) {
-
- // Use step hook for back compat.
- // Use cssHook if its there.
- // Use .style if available and use plain properties where available.
- if ( jQuery.fx.step[ tween.prop ] ) {
- jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.nodeType === 1 &&
- ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
- jQuery.cssHooks[ tween.prop ] ) ) {
- jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
- } else {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
- }
-};
-
-// Support: IE <=9 only
-// Panic based approach to setting things on disconnected nodes
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
- set: function( tween ) {
- if ( tween.elem.nodeType && tween.elem.parentNode ) {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
-};
-
-jQuery.easing = {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return 0.5 - Math.cos( p * Math.PI ) / 2;
- },
- _default: "swing"
-};
-
-jQuery.fx = Tween.prototype.init;
-
-// Back compat <1.8 extension point
-jQuery.fx.step = {};
-
-
-
-
-var
- fxNow, timerId,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rrun = /queueHooks$/;
-
-function raf() {
- if ( timerId ) {
- window.requestAnimationFrame( raf );
- jQuery.fx.tick();
- }
-}
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- window.setTimeout( function() {
- fxNow = undefined;
- } );
- return ( fxNow = jQuery.now() );
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
- var which,
- i = 0,
- attrs = { height: type };
-
- // If we include width, step value is 1 to do all cssExpand values,
- // otherwise step value is 2 to skip over Left and Right
- includeWidth = includeWidth ? 1 : 0;
- for ( ; i < 4; i += 2 - includeWidth ) {
- which = cssExpand[ i ];
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
- }
-
- if ( includeWidth ) {
- attrs.opacity = attrs.width = type;
- }
-
- return attrs;
-}
-
-function createTween( value, prop, animation ) {
- var tween,
- collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
- index = 0,
- length = collection.length;
- for ( ; index < length; index++ ) {
- if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
-
- // We're done with this property
- return tween;
- }
- }
-}
-
-function defaultPrefilter( elem, props, opts ) {
- var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
- isBox = "width" in props || "height" in props,
- anim = this,
- orig = {},
- style = elem.style,
- hidden = elem.nodeType && isHiddenWithinTree( elem ),
- dataShow = dataPriv.get( elem, "fxshow" );
-
- // Queue-skipping animations hijack the fx hooks
- if ( !opts.queue ) {
- hooks = jQuery._queueHooks( elem, "fx" );
- if ( hooks.unqueued == null ) {
- hooks.unqueued = 0;
- oldfire = hooks.empty.fire;
- hooks.empty.fire = function() {
- if ( !hooks.unqueued ) {
- oldfire();
- }
- };
- }
- hooks.unqueued++;
-
- anim.always( function() {
-
- // Ensure the complete handler is called before this completes
- anim.always( function() {
- hooks.unqueued--;
- if ( !jQuery.queue( elem, "fx" ).length ) {
- hooks.empty.fire();
- }
- } );
- } );
- }
-
- // Detect show/hide animations
- for ( prop in props ) {
- value = props[ prop ];
- if ( rfxtypes.test( value ) ) {
- delete props[ prop ];
- toggle = toggle || value === "toggle";
- if ( value === ( hidden ? "hide" : "show" ) ) {
-
- // Pretend to be hidden if this is a "show" and
- // there is still data from a stopped show/hide
- if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
- hidden = true;
-
- // Ignore all other no-op show/hide data
- } else {
- continue;
- }
- }
- orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
- }
- }
-
- // Bail out if this is a no-op like .hide().hide()
- propTween = !jQuery.isEmptyObject( props );
- if ( !propTween && jQuery.isEmptyObject( orig ) ) {
- return;
- }
-
- // Restrict "overflow" and "display" styles during box animations
- if ( isBox && elem.nodeType === 1 ) {
-
- // Support: IE <=9 - 11, Edge 12 - 13
- // Record all 3 overflow attributes because IE does not infer the shorthand
- // from identically-valued overflowX and overflowY
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
- // Identify a display type, preferring old show/hide data over the CSS cascade
- restoreDisplay = dataShow && dataShow.display;
- if ( restoreDisplay == null ) {
- restoreDisplay = dataPriv.get( elem, "display" );
- }
- display = jQuery.css( elem, "display" );
- if ( display === "none" ) {
- if ( restoreDisplay ) {
- display = restoreDisplay;
- } else {
-
- // Get nonempty value(s) by temporarily forcing visibility
- showHide( [ elem ], true );
- restoreDisplay = elem.style.display || restoreDisplay;
- display = jQuery.css( elem, "display" );
- showHide( [ elem ] );
- }
- }
-
- // Animate inline elements as inline-block
- if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
- if ( jQuery.css( elem, "float" ) === "none" ) {
-
- // Restore the original display value at the end of pure show/hide animations
- if ( !propTween ) {
- anim.done( function() {
- style.display = restoreDisplay;
- } );
- if ( restoreDisplay == null ) {
- display = style.display;
- restoreDisplay = display === "none" ? "" : display;
- }
- }
- style.display = "inline-block";
- }
- }
- }
-
- if ( opts.overflow ) {
- style.overflow = "hidden";
- anim.always( function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- } );
- }
-
- // Implement show/hide animations
- propTween = false;
- for ( prop in orig ) {
-
- // General show/hide setup for this element animation
- if ( !propTween ) {
- if ( dataShow ) {
- if ( "hidden" in dataShow ) {
- hidden = dataShow.hidden;
- }
- } else {
- dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
- }
-
- // Store hidden/visible for toggle so `.stop().toggle()` "reverses"
- if ( toggle ) {
- dataShow.hidden = !hidden;
- }
-
- // Show elements before animating them
- if ( hidden ) {
- showHide( [ elem ], true );
- }
-
- /* eslint-disable no-loop-func */
-
- anim.done( function() {
-
- /* eslint-enable no-loop-func */
-
- // The final step of a "hide" animation is actually hiding the element
- if ( !hidden ) {
- showHide( [ elem ] );
- }
- dataPriv.remove( elem, "fxshow" );
- for ( prop in orig ) {
- jQuery.style( elem, prop, orig[ prop ] );
- }
- } );
- }
-
- // Per-property setup
- propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
- if ( !( prop in dataShow ) ) {
- dataShow[ prop ] = propTween.start;
- if ( hidden ) {
- propTween.end = propTween.start;
- propTween.start = 0;
- }
- }
- }
-}
-
-function propFilter( props, specialEasing ) {
- var index, name, easing, value, hooks;
-
- // camelCase, specialEasing and expand cssHook pass
- for ( index in props ) {
- name = jQuery.camelCase( index );
- easing = specialEasing[ name ];
- value = props[ index ];
- if ( jQuery.isArray( value ) ) {
- easing = value[ 1 ];
- value = props[ index ] = value[ 0 ];
- }
-
- if ( index !== name ) {
- props[ name ] = value;
- delete props[ index ];
- }
-
- hooks = jQuery.cssHooks[ name ];
- if ( hooks && "expand" in hooks ) {
- value = hooks.expand( value );
- delete props[ name ];
-
- // Not quite $.extend, this won't overwrite existing keys.
- // Reusing 'index' because we have the correct "name"
- for ( index in value ) {
- if ( !( index in props ) ) {
- props[ index ] = value[ index ];
- specialEasing[ index ] = easing;
- }
- }
- } else {
- specialEasing[ name ] = easing;
- }
- }
-}
-
-function Animation( elem, properties, options ) {
- var result,
- stopped,
- index = 0,
- length = Animation.prefilters.length,
- deferred = jQuery.Deferred().always( function() {
-
- // Don't match elem in the :animated selector
- delete tick.elem;
- } ),
- tick = function() {
- if ( stopped ) {
- return false;
- }
- var currentTime = fxNow || createFxNow(),
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
-
- // Support: Android 2.3 only
- // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
- temp = remaining / animation.duration || 0,
- percent = 1 - temp,
- index = 0,
- length = animation.tweens.length;
-
- for ( ; index < length; index++ ) {
- animation.tweens[ index ].run( percent );
- }
-
- deferred.notifyWith( elem, [ animation, percent, remaining ] );
-
- if ( percent < 1 && length ) {
- return remaining;
- } else {
- deferred.resolveWith( elem, [ animation ] );
- return false;
- }
- },
- animation = deferred.promise( {
- elem: elem,
- props: jQuery.extend( {}, properties ),
- opts: jQuery.extend( true, {
- specialEasing: {},
- easing: jQuery.easing._default
- }, options ),
- originalProperties: properties,
- originalOptions: options,
- startTime: fxNow || createFxNow(),
- duration: options.duration,
- tweens: [],
- createTween: function( prop, end ) {
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
- animation.tweens.push( tween );
- return tween;
- },
- stop: function( gotoEnd ) {
- var index = 0,
-
- // If we are going to the end, we want to run all the tweens
- // otherwise we skip this part
- length = gotoEnd ? animation.tweens.length : 0;
- if ( stopped ) {
- return this;
- }
- stopped = true;
- for ( ; index < length; index++ ) {
- animation.tweens[ index ].run( 1 );
- }
-
- // Resolve when we played the last frame; otherwise, reject
- if ( gotoEnd ) {
- deferred.notifyWith( elem, [ animation, 1, 0 ] );
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
- } else {
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
- }
- return this;
- }
- } ),
- props = animation.props;
-
- propFilter( props, animation.opts.specialEasing );
-
- for ( ; index < length; index++ ) {
- result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
- if ( result ) {
- if ( jQuery.isFunction( result.stop ) ) {
- jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
- jQuery.proxy( result.stop, result );
- }
- return result;
- }
- }
-
- jQuery.map( props, createTween, animation );
-
- if ( jQuery.isFunction( animation.opts.start ) ) {
- animation.opts.start.call( elem, animation );
- }
-
- jQuery.fx.timer(
- jQuery.extend( tick, {
- elem: elem,
- anim: animation,
- queue: animation.opts.queue
- } )
- );
-
- // attach callbacks from options
- return animation.progress( animation.opts.progress )
- .done( animation.opts.done, animation.opts.complete )
- .fail( animation.opts.fail )
- .always( animation.opts.always );
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
-
- tweeners: {
- "*": [ function( prop, value ) {
- var tween = this.createTween( prop, value );
- adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
- return tween;
- } ]
- },
-
- tweener: function( props, callback ) {
- if ( jQuery.isFunction( props ) ) {
- callback = props;
- props = [ "*" ];
- } else {
- props = props.match( rnotwhite );
- }
-
- var prop,
- index = 0,
- length = props.length;
-
- for ( ; index < length; index++ ) {
- prop = props[ index ];
- Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
- Animation.tweeners[ prop ].unshift( callback );
- }
- },
-
- prefilters: [ defaultPrefilter ],
-
- prefilter: function( callback, prepend ) {
- if ( prepend ) {
- Animation.prefilters.unshift( callback );
- } else {
- Animation.prefilters.push( callback );
- }
- }
-} );
-
-jQuery.speed = function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- // Go to the end state if fx are off or if document is hidden
- if ( jQuery.fx.off || document.hidden ) {
- opt.duration = 0;
-
- } else {
- opt.duration = typeof opt.duration === "number" ?
- opt.duration : opt.duration in jQuery.fx.speeds ?
- jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
- }
-
- // Normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function() {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- }
- };
-
- return opt;
-};
-
-jQuery.fn.extend( {
- fadeTo: function( speed, to, easing, callback ) {
-
- // Show any hidden elements after setting opacity to 0
- return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
-
- // Animate to the value specified
- .end().animate( { opacity: to }, speed, easing, callback );
- },
- animate: function( prop, speed, easing, callback ) {
- var empty = jQuery.isEmptyObject( prop ),
- optall = jQuery.speed( speed, easing, callback ),
- doAnimation = function() {
-
- // Operate on a copy of prop so per-property easing won't be lost
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
- // Empty animations, or finishing resolves immediately
- if ( empty || dataPriv.get( this, "finish" ) ) {
- anim.stop( true );
- }
- };
- doAnimation.finish = doAnimation;
-
- return empty || optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
- stop: function( type, clearQueue, gotoEnd ) {
- var stopQueue = function( hooks ) {
- var stop = hooks.stop;
- delete hooks.stop;
- stop( gotoEnd );
- };
-
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each( function() {
- var dequeue = true,
- index = type != null && type + "queueHooks",
- timers = jQuery.timers,
- data = dataPriv.get( this );
-
- if ( index ) {
- if ( data[ index ] && data[ index ].stop ) {
- stopQueue( data[ index ] );
- }
- } else {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
- stopQueue( data[ index ] );
- }
- }
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this &&
- ( type == null || timers[ index ].queue === type ) ) {
-
- timers[ index ].anim.stop( gotoEnd );
- dequeue = false;
- timers.splice( index, 1 );
- }
- }
-
- // Start the next in the queue if the last step wasn't forced.
- // Timers currently will call their complete callbacks, which
- // will dequeue but only if they were gotoEnd.
- if ( dequeue || !gotoEnd ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- finish: function( type ) {
- if ( type !== false ) {
- type = type || "fx";
- }
- return this.each( function() {
- var index,
- data = dataPriv.get( this ),
- queue = data[ type + "queue" ],
- hooks = data[ type + "queueHooks" ],
- timers = jQuery.timers,
- length = queue ? queue.length : 0;
-
- // Enable finishing flag on private data
- data.finish = true;
-
- // Empty the queue first
- jQuery.queue( this, type, [] );
-
- if ( hooks && hooks.stop ) {
- hooks.stop.call( this, true );
- }
-
- // Look for any active animations, and finish them
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
- timers[ index ].anim.stop( true );
- timers.splice( index, 1 );
- }
- }
-
- // Look for any animations in the old queue and finish them
- for ( index = 0; index < length; index++ ) {
- if ( queue[ index ] && queue[ index ].finish ) {
- queue[ index ].finish.call( this );
- }
- }
-
- // Turn off finishing flag
- delete data.finish;
- } );
- }
-} );
-
-jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
- var cssFn = jQuery.fn[ name ];
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return speed == null || typeof speed === "boolean" ?
- cssFn.apply( this, arguments ) :
- this.animate( genFx( name, true ), speed, easing, callback );
- };
-} );
-
-// Generate shortcuts for custom animations
-jQuery.each( {
- slideDown: genFx( "show" ),
- slideUp: genFx( "hide" ),
- slideToggle: genFx( "toggle" ),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-} );
-
-jQuery.timers = [];
-jQuery.fx.tick = function() {
- var timer,
- i = 0,
- timers = jQuery.timers;
-
- fxNow = jQuery.now();
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
-
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
- jQuery.timers.push( timer );
- if ( timer() ) {
- jQuery.fx.start();
- } else {
- jQuery.timers.pop();
- }
-};
-
-jQuery.fx.interval = 13;
-jQuery.fx.start = function() {
- if ( !timerId ) {
- timerId = window.requestAnimationFrame ?
- window.requestAnimationFrame( raf ) :
- window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
- }
-};
-
-jQuery.fx.stop = function() {
- if ( window.cancelAnimationFrame ) {
- window.cancelAnimationFrame( timerId );
- } else {
- window.clearInterval( timerId );
- }
-
- timerId = null;
-};
-
-jQuery.fx.speeds = {
- slow: 600,
- fast: 200,
-
- // Default speed
- _default: 400
-};
-
-
-// Based off of the plugin by Clint Helfers, with permission.
-// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
-jQuery.fn.delay = function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = window.setTimeout( next, time );
- hooks.stop = function() {
- window.clearTimeout( timeout );
- };
- } );
-};
-
-
-( function() {
- var input = document.createElement( "input" ),
- select = document.createElement( "select" ),
- opt = select.appendChild( document.createElement( "option" ) );
-
- input.type = "checkbox";
-
- // Support: Android <=4.3 only
- // Default value for a checkbox should be "on"
- support.checkOn = input.value !== "";
-
- // Support: IE <=11 only
- // Must access selectedIndex to make default options select
- support.optSelected = opt.selected;
-
- // Support: IE <=11 only
- // An input loses its value after becoming a radio
- input = document.createElement( "input" );
- input.value = "t";
- input.type = "radio";
- support.radioValue = input.value === "t";
-} )();
-
-
-var boolHook,
- attrHandle = jQuery.expr.attrHandle;
-
-jQuery.fn.extend( {
- attr: function( name, value ) {
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each( function() {
- jQuery.removeAttr( this, name );
- } );
- }
-} );
-
-jQuery.extend( {
- attr: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set attributes on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === "undefined" ) {
- return jQuery.prop( elem, name, value );
- }
-
- // Attribute hooks are determined by the lowercase version
- // Grab necessary hook if one is defined
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
- hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
- ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
- }
-
- if ( value !== undefined ) {
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
- return;
- }
-
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- elem.setAttribute( name, value + "" );
- return value;
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- ret = jQuery.find.attr( elem, name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret == null ? undefined : ret;
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- if ( !support.radioValue && value === "radio" &&
- jQuery.nodeName( elem, "input" ) ) {
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- }
- },
-
- removeAttr: function( elem, value ) {
- var name,
- i = 0,
- attrNames = value && value.match( rnotwhite );
-
- if ( attrNames && elem.nodeType === 1 ) {
- while ( ( name = attrNames[ i++ ] ) ) {
- elem.removeAttribute( name );
- }
- }
- }
-} );
-
-// Hooks for boolean attributes
-boolHook = {
- set: function( elem, value, name ) {
- if ( value === false ) {
-
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else {
- elem.setAttribute( name, name );
- }
- return name;
- }
-};
-
-jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
- var getter = attrHandle[ name ] || jQuery.find.attr;
-
- attrHandle[ name ] = function( elem, name, isXML ) {
- var ret, handle,
- lowercaseName = name.toLowerCase();
-
- if ( !isXML ) {
-
- // Avoid an infinite loop by temporarily removing this function from the getter
- handle = attrHandle[ lowercaseName ];
- attrHandle[ lowercaseName ] = ret;
- ret = getter( elem, name, isXML ) != null ?
- lowercaseName :
- null;
- attrHandle[ lowercaseName ] = handle;
- }
- return ret;
- };
-} );
-
-
-
-
-var rfocusable = /^(?:input|select|textarea|button)$/i,
- rclickable = /^(?:a|area)$/i;
-
-jQuery.fn.extend( {
- prop: function( name, value ) {
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- return this.each( function() {
- delete this[ jQuery.propFix[ name ] || name ];
- } );
- }
-} );
-
-jQuery.extend( {
- prop: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set properties on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- return ( elem[ name ] = value );
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- return elem[ name ];
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
-
- // Support: IE <=9 - 11 only
- // elem.tabIndex doesn't always return the
- // correct value when it hasn't been explicitly set
- // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- // Use proper attribute retrieval(#12072)
- var tabindex = jQuery.find.attr( elem, "tabindex" );
-
- return tabindex ?
- parseInt( tabindex, 10 ) :
- rfocusable.test( elem.nodeName ) ||
- rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- -1;
- }
- }
- },
-
- propFix: {
- "for": "htmlFor",
- "class": "className"
- }
-} );
-
-// Support: IE <=11 only
-// Accessing the selectedIndex property
-// forces the browser to respect setting selected
-// on the option
-// The getter ensures a default option is selected
-// when in an optgroup
-if ( !support.optSelected ) {
- jQuery.propHooks.selected = {
- get: function( elem ) {
- var parent = elem.parentNode;
- if ( parent && parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- return null;
- },
- set: function( elem ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
- };
-}
-
-jQuery.each( [
- "tabIndex",
- "readOnly",
- "maxLength",
- "cellSpacing",
- "cellPadding",
- "rowSpan",
- "colSpan",
- "useMap",
- "frameBorder",
- "contentEditable"
-], function() {
- jQuery.propFix[ this.toLowerCase() ] = this;
-} );
-
-
-
-
-var rclass = /[\t\r\n\f]/g;
-
-function getClass( elem ) {
- return elem.getAttribute && elem.getAttribute( "class" ) || "";
-}
-
-jQuery.fn.extend( {
- addClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
- cur += clazz + " ";
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( !arguments.length ) {
- return this.attr( "class", "" );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
-
- // This expression is here for better compressibility (see addClass)
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
-
- // Remove *all* instances
- while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
- cur = cur.replace( " " + clazz + " ", " " );
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value;
-
- if ( typeof stateVal === "boolean" && type === "string" ) {
- return stateVal ? this.addClass( value ) : this.removeClass( value );
- }
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( i ) {
- jQuery( this ).toggleClass(
- value.call( this, i, getClass( this ), stateVal ),
- stateVal
- );
- } );
- }
-
- return this.each( function() {
- var className, i, self, classNames;
-
- if ( type === "string" ) {
-
- // Toggle individual class names
- i = 0;
- self = jQuery( this );
- classNames = value.match( rnotwhite ) || [];
-
- while ( ( className = classNames[ i++ ] ) ) {
-
- // Check each className given, space separated list
- if ( self.hasClass( className ) ) {
- self.removeClass( className );
- } else {
- self.addClass( className );
- }
- }
-
- // Toggle whole class name
- } else if ( value === undefined || type === "boolean" ) {
- className = getClass( this );
- if ( className ) {
-
- // Store className if set
- dataPriv.set( this, "__className__", className );
- }
-
- // If the element has a class name or if we're passed `false`,
- // then remove the whole classname (if there was one, the above saved it).
- // Otherwise bring back whatever was previously saved (if anything),
- // falling back to the empty string if nothing was stored.
- if ( this.setAttribute ) {
- this.setAttribute( "class",
- className || value === false ?
- "" :
- dataPriv.get( this, "__className__" ) || ""
- );
- }
- }
- } );
- },
-
- hasClass: function( selector ) {
- var className, elem,
- i = 0;
-
- className = " " + selector + " ";
- while ( ( elem = this[ i++ ] ) ) {
- if ( elem.nodeType === 1 &&
- ( " " + getClass( elem ) + " " ).replace( rclass, " " )
- .indexOf( className ) > -1
- ) {
- return true;
- }
- }
-
- return false;
- }
-} );
-
-
-
-
-var rreturn = /\r/g,
- rspaces = /[\x20\t\r\n\f]+/g;
-
-jQuery.fn.extend( {
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[ 0 ];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] ||
- jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks &&
- "get" in hooks &&
- ( ret = hooks.get( elem, "value" ) ) !== undefined
- ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
-
- // Handle most common string cases
- ret.replace( rreturn, "" ) :
-
- // Handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each( function( i ) {
- var val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, jQuery( this ).val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
-
- } else if ( typeof val === "number" ) {
- val += "";
-
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map( val, function( value ) {
- return value == null ? "" : value + "";
- } );
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- } );
- }
-} );
-
-jQuery.extend( {
- valHooks: {
- option: {
- get: function( elem ) {
-
- var val = jQuery.find.attr( elem, "value" );
- return val != null ?
- val :
-
- // Support: IE <=10 - 11 only
- // option.text throws exceptions (#14686, #14858)
- // Strip and collapse whitespace
- // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
- jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
- }
- },
- select: {
- get: function( elem ) {
- var value, option,
- options = elem.options,
- index = elem.selectedIndex,
- one = elem.type === "select-one",
- values = one ? null : [],
- max = one ? index + 1 : options.length,
- i = index < 0 ?
- max :
- one ? index : 0;
-
- // Loop through all the selected options
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // Support: IE <=9 only
- // IE8-9 doesn't update selected after form reset (#2551)
- if ( ( option.selected || i === index ) &&
-
- // Don't return options that are disabled or in a disabled optgroup
- !option.disabled &&
- ( !option.parentNode.disabled ||
- !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var optionSet, option,
- options = elem.options,
- values = jQuery.makeArray( value ),
- i = options.length;
-
- while ( i-- ) {
- option = options[ i ];
-
- /* eslint-disable no-cond-assign */
-
- if ( option.selected =
- jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
- ) {
- optionSet = true;
- }
-
- /* eslint-enable no-cond-assign */
- }
-
- // Force browsers to behave consistently when non-matching value is set
- if ( !optionSet ) {
- elem.selectedIndex = -1;
- }
- return values;
- }
- }
- }
-} );
-
-// Radios and checkboxes getter/setter
-jQuery.each( [ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
- }
- }
- };
- if ( !support.checkOn ) {
- jQuery.valHooks[ this ].get = function( elem ) {
- return elem.getAttribute( "value" ) === null ? "on" : elem.value;
- };
- }
-} );
-
-
-
-
-// Return jQuery for attributes-only inclusion
-
-
-var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
-
-jQuery.extend( jQuery.event, {
-
- trigger: function( event, data, elem, onlyHandlers ) {
-
- var i, cur, tmp, bubbleType, ontype, handle, special,
- eventPath = [ elem || document ],
- type = hasOwn.call( event, "type" ) ? event.type : event,
- namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
-
- cur = tmp = elem = elem || document;
-
- // Don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf( "." ) > -1 ) {
-
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split( "." );
- type = namespaces.shift();
- namespaces.sort();
- }
- ontype = type.indexOf( ":" ) < 0 && "on" + type;
-
- // Caller can pass in a jQuery.Event object, Object, or just an event type string
- event = event[ jQuery.expando ] ?
- event :
- new jQuery.Event( type, typeof event === "object" && event );
-
- // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
- event.isTrigger = onlyHandlers ? 2 : 3;
- event.namespace = namespaces.join( "." );
- event.rnamespace = event.namespace ?
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
- null;
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data == null ?
- [ event ] :
- jQuery.makeArray( data, [ event ] );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- if ( !rfocusMorph.test( bubbleType + type ) ) {
- cur = cur.parentNode;
- }
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push( cur );
- tmp = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( tmp === ( elem.ownerDocument || document ) ) {
- eventPath.push( tmp.defaultView || tmp.parentWindow || window );
- }
- }
-
- // Fire handlers on the event path
- i = 0;
- while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
-
- event.type = i > 1 ?
- bubbleType :
- special.bindType || type;
-
- // jQuery handler
- handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
- dataPriv.get( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
-
- // Native handler
- handle = ontype && cur[ ontype ];
- if ( handle && handle.apply && acceptData( cur ) ) {
- event.result = handle.apply( cur, data );
- if ( event.result === false ) {
- event.preventDefault();
- }
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( ( !special._default ||
- special._default.apply( eventPath.pop(), data ) === false ) &&
- acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name as the event.
- // Don't do default actions on window, that's where global variables be (#6170)
- if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- tmp = elem[ ontype ];
-
- if ( tmp ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- elem[ type ]();
- jQuery.event.triggered = undefined;
-
- if ( tmp ) {
- elem[ ontype ] = tmp;
- }
- }
- }
- }
-
- return event.result;
- },
-
- // Piggyback on a donor event to simulate a different one
- // Used only for `focus(in | out)` events
- simulate: function( type, elem, event ) {
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- {
- type: type,
- isSimulated: true
- }
- );
-
- jQuery.event.trigger( e, null, elem );
- }
-
-} );
-
-jQuery.fn.extend( {
-
- trigger: function( type, data ) {
- return this.each( function() {
- jQuery.event.trigger( type, data, this );
- } );
- },
- triggerHandler: function( type, data ) {
- var elem = this[ 0 ];
- if ( elem ) {
- return jQuery.event.trigger( type, data, elem, true );
- }
- }
-} );
-
-
-jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup contextmenu" ).split( " " ),
- function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-} );
-
-jQuery.fn.extend( {
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-} );
-
-
-
-
-support.focusin = "onfocusin" in window;
-
-
-// Support: Firefox <=44
-// Firefox doesn't have focus(in | out) events
-// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
-//
-// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
-// focus(in | out) events fire after focus & blur events,
-// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
-// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
-if ( !support.focusin ) {
- jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler on the document while someone wants focusin/focusout
- var handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix );
-
- if ( !attaches ) {
- doc.addEventListener( orig, handler, true );
- }
- dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
- },
- teardown: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix ) - 1;
-
- if ( !attaches ) {
- doc.removeEventListener( orig, handler, true );
- dataPriv.remove( doc, fix );
-
- } else {
- dataPriv.access( doc, fix, attaches );
- }
- }
- };
- } );
-}
-var location = window.location;
-
-var nonce = jQuery.now();
-
-var rquery = ( /\?/ );
-
-
-
-// Cross-browser xml parsing
-jQuery.parseXML = function( data ) {
- var xml;
- if ( !data || typeof data !== "string" ) {
- return null;
- }
-
- // Support: IE 9 - 11 only
- // IE throws on parseFromString with invalid input.
- try {
- xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
- } catch ( e ) {
- xml = undefined;
- }
-
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
-};
-
-
-var
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-function buildParams( prefix, obj, traditional, add ) {
- var name;
-
- if ( jQuery.isArray( obj ) ) {
-
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
-
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
-
- // Item is non-scalar (array or object), encode its numeric index.
- buildParams(
- prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
- v,
- traditional,
- add
- );
- }
- } );
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
-
- // Serialize object item.
- for ( name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
-
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-jQuery.param = function( a, traditional ) {
- var prefix,
- s = [],
- add = function( key, valueOrFunction ) {
-
- // If value is a function, invoke it and use its return value
- var value = jQuery.isFunction( valueOrFunction ) ?
- valueOrFunction() :
- valueOrFunction;
-
- s[ s.length ] = encodeURIComponent( key ) + "=" +
- encodeURIComponent( value == null ? "" : value );
- };
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- } );
-
- } else {
-
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" );
-};
-
-jQuery.fn.extend( {
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
- serializeArray: function() {
- return this.map( function() {
-
- // Can add propHook for "elements" to filter or add form elements
- var elements = jQuery.prop( this, "elements" );
- return elements ? jQuery.makeArray( elements ) : this;
- } )
- .filter( function() {
- var type = this.type;
-
- // Use .is( ":disabled" ) so that fieldset[disabled] works
- return this.name && !jQuery( this ).is( ":disabled" ) &&
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !rcheckableType.test( type ) );
- } )
- .map( function( i, elem ) {
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val ) {
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ).get();
- }
-} );
-
-
-var
- r20 = /%20/g,
- rhash = /#.*$/,
- rts = /([?&])_=[^&]*/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
-
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = "*/".concat( "*" ),
-
- // Anchor tag for parsing the document origin
- originAnchor = document.createElement( "a" );
- originAnchor.href = location.href;
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- var dataType,
- i = 0,
- dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
-
- if ( jQuery.isFunction( func ) ) {
-
- // For each dataType in the dataTypeExpression
- while ( ( dataType = dataTypes[ i++ ] ) ) {
-
- // Prepend if requested
- if ( dataType[ 0 ] === "+" ) {
- dataType = dataType.slice( 1 ) || "*";
- ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
-
- // Otherwise append
- } else {
- ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
- }
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
- var inspected = {},
- seekingTransport = ( structure === transports );
-
- function inspect( dataType ) {
- var selected;
- inspected[ dataType ] = true;
- jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
- var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
- if ( typeof dataTypeOrTransport === "string" &&
- !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
-
- options.dataTypes.unshift( dataTypeOrTransport );
- inspect( dataTypeOrTransport );
- return false;
- } else if ( seekingTransport ) {
- return !( selected = dataTypeOrTransport );
- }
- } );
- return selected;
- }
-
- return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var key, deep,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-
- return target;
-}
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var ct, type, finalDataType, firstDataType,
- contents = s.contents,
- dataTypes = s.dataTypes;
-
- // Remove auto dataType and get content-type in the process
- while ( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
-
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
-
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
- var conv2, current, conv, tmp, prev,
- converters = {},
-
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice();
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- current = dataTypes.shift();
-
- // Convert to each sequential dataType
- while ( current ) {
-
- if ( s.responseFields[ current ] ) {
- jqXHR[ s.responseFields[ current ] ] = response;
- }
-
- // Apply the dataFilter if provided
- if ( !prev && isSuccess && s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- prev = current;
- current = dataTypes.shift();
-
- if ( current ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current === "*" ) {
-
- current = prev;
-
- // Convert response if prev dataType is non-auto and differs from current
- } else if ( prev !== "*" && prev !== current ) {
-
- // Seek a direct converter
- conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
- // If none found, seek a pair
- if ( !conv ) {
- for ( conv2 in converters ) {
-
- // If conv2 outputs current
- tmp = conv2.split( " " );
- if ( tmp[ 1 ] === current ) {
-
- // If prev can be converted to accepted input
- conv = converters[ prev + " " + tmp[ 0 ] ] ||
- converters[ "* " + tmp[ 0 ] ];
- if ( conv ) {
-
- // Condense equivalence converters
- if ( conv === true ) {
- conv = converters[ conv2 ];
-
- // Otherwise, insert the intermediate dataType
- } else if ( converters[ conv2 ] !== true ) {
- current = tmp[ 0 ];
- dataTypes.unshift( tmp[ 1 ] );
- }
- break;
- }
- }
- }
- }
-
- // Apply converter (if not an equivalence)
- if ( conv !== true ) {
-
- // Unless errors are allowed to bubble, catch and return them
- if ( conv && s.throws ) {
- response = conv( response );
- } else {
- try {
- response = conv( response );
- } catch ( e ) {
- return {
- state: "parsererror",
- error: conv ? e : "No conversion from " + prev + " to " + current
- };
- }
- }
- }
- }
- }
- }
-
- return { state: "success", data: response };
-}
-
-jQuery.extend( {
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajaxSettings: {
- url: location.href,
- type: "GET",
- isLocal: rlocalProtocol.test( location.protocol ),
- global: true,
- processData: true,
- async: true,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
-
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- throws: false,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- "*": allTypes,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
-
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": JSON.parse,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- url: true,
- context: true
- }
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- return settings ?
-
- // Building a settings object
- ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
- // Extending ajaxSettings
- ajaxExtend( jQuery.ajaxSettings, target );
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var transport,
-
- // URL without anti-cache param
- cacheURL,
-
- // Response headers
- responseHeadersString,
- responseHeaders,
-
- // timeout handle
- timeoutTimer,
-
- // Url cleanup var
- urlAnchor,
-
- // Request state (becomes false upon send and true upon completion)
- completed,
-
- // To know if global events are to be dispatched
- fireGlobals,
-
- // Loop variable
- i,
-
- // uncached part of the url
- uncached,
-
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
-
- // Callbacks context
- callbackContext = s.context || s,
-
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context &&
- ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
-
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks( "once memory" ),
-
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
-
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
-
- // Default abort message
- strAbort = "canceled",
-
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( completed ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return completed ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- if ( completed == null ) {
- name = requestHeadersNames[ name.toLowerCase() ] =
- requestHeadersNames[ name.toLowerCase() ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( completed == null ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( completed ) {
-
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- } else {
-
- // Lazy-add the new callbacks in a way that preserves old ones
- for ( code in map ) {
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR );
-
- // Add protocol if not provided (prefilters might expect it)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || location.href ) + "" )
- .replace( rprotocol, location.protocol + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
-
- // A cross-domain request is in order when the origin doesn't match the current origin.
- if ( s.crossDomain == null ) {
- urlAnchor = document.createElement( "a" );
-
- // Support: IE <=8 - 11, Edge 12 - 13
- // IE throws exception on accessing the href property if url is malformed,
- // e.g. http://example.com:80x/
- try {
- urlAnchor.href = s.url;
-
- // Support: IE <=8 - 11 only
- // Anchor's host property isn't correctly set when s.url is relative
- urlAnchor.href = urlAnchor.href;
- s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
- urlAnchor.protocol + "//" + urlAnchor.host;
- } catch ( e ) {
-
- // If there is an error parsing the URL, assume it is crossDomain,
- // it can be rejected by the transport if it is invalid
- s.crossDomain = true;
- }
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( completed ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
- fireGlobals = jQuery.event && s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- // Remove hash to simplify url manipulation
- cacheURL = s.url.replace( rhash, "" );
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // Remember the hash so we can put it back
- uncached = s.url.slice( cacheURL.length );
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
-
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add anti-cache in uncached url if needed
- if ( s.cache === false ) {
- cacheURL = cacheURL.replace( rts, "" );
- uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached;
- }
-
- // Put hash and anti-cache on the URL that will be requested (gh-1732)
- s.url = cacheURL + uncached;
-
- // Change '%20' to '+' if this is encoded form body content (gh-2658)
- } else if ( s.data && s.processData &&
- ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
- s.data = s.data.replace( r20, "+" );
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
- s.accepts[ s.dataTypes[ 0 ] ] +
- ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend &&
- ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
-
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // Aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- completeDeferred.add( s.complete );
- jqXHR.done( s.success );
- jqXHR.fail( s.error );
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
-
- // If request was aborted inside ajaxSend, stop there
- if ( completed ) {
- return jqXHR;
- }
-
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = window.setTimeout( function() {
- jqXHR.abort( "timeout" );
- }, s.timeout );
- }
-
- try {
- completed = false;
- transport.send( requestHeaders, done );
- } catch ( e ) {
-
- // Rethrow post-completion exceptions
- if ( completed ) {
- throw e;
- }
-
- // Propagate others as results
- done( -1, e );
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Ignore repeat invocations
- if ( completed ) {
- return;
- }
-
- completed = true;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- window.clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Determine if successful
- isSuccess = status >= 200 && status < 300 || status === 304;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // Convert no matter what (that way responseXXX fields are always set)
- response = ajaxConvert( s, response, jqXHR, isSuccess );
-
- // If successful, handle type chaining
- if ( isSuccess ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader( "Last-Modified" );
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader( "etag" );
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // if no content
- if ( status === 204 || s.type === "HEAD" ) {
- statusText = "nocontent";
-
- // if not modified
- } else if ( status === 304 ) {
- statusText = "notmodified";
-
- // If we have data, let's convert it
- } else {
- statusText = response.state;
- success = response.data;
- error = response.error;
- isSuccess = !error;
- }
- } else {
-
- // Extract error from statusText and normalize for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- return jqXHR;
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- }
-} );
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
-
- // Shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- // The url can be an options object (which then must have .url)
- return jQuery.ajax( jQuery.extend( {
- url: url,
- type: method,
- dataType: type,
- data: data,
- success: callback
- }, jQuery.isPlainObject( url ) && url ) );
- };
-} );
-
-
-jQuery._evalUrl = function( url ) {
- return jQuery.ajax( {
- url: url,
-
- // Make this explicit, since user can override this through ajaxSetup (#11264)
- type: "GET",
- dataType: "script",
- cache: true,
- async: false,
- global: false,
- "throws": true
- } );
-};
-
-
-jQuery.fn.extend( {
- wrapAll: function( html ) {
- var wrap;
-
- if ( this[ 0 ] ) {
- if ( jQuery.isFunction( html ) ) {
- html = html.call( this[ 0 ] );
- }
-
- // The elements to wrap the target around
- wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
- if ( this[ 0 ].parentNode ) {
- wrap.insertBefore( this[ 0 ] );
- }
-
- wrap.map( function() {
- var elem = this;
-
- while ( elem.firstElementChild ) {
- elem = elem.firstElementChild;
- }
-
- return elem;
- } ).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapInner( html.call( this, i ) );
- } );
- }
-
- return this.each( function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- } );
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each( function( i ) {
- jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
- } );
- },
-
- unwrap: function( selector ) {
- this.parent( selector ).not( "body" ).each( function() {
- jQuery( this ).replaceWith( this.childNodes );
- } );
- return this;
- }
-} );
-
-
-jQuery.expr.pseudos.hidden = function( elem ) {
- return !jQuery.expr.pseudos.visible( elem );
-};
-jQuery.expr.pseudos.visible = function( elem ) {
- return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
-};
-
-
-
-
-jQuery.ajaxSettings.xhr = function() {
- try {
- return new window.XMLHttpRequest();
- } catch ( e ) {}
-};
-
-var xhrSuccessStatus = {
-
- // File protocol always yields status code 0, assume 200
- 0: 200,
-
- // Support: IE <=9 only
- // #1450: sometimes IE returns 1223 when it should be 204
- 1223: 204
- },
- xhrSupported = jQuery.ajaxSettings.xhr();
-
-support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-support.ajax = xhrSupported = !!xhrSupported;
-
-jQuery.ajaxTransport( function( options ) {
- var callback, errorCallback;
-
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( support.cors || xhrSupported && !options.crossDomain ) {
- return {
- send: function( headers, complete ) {
- var i,
- xhr = options.xhr();
-
- xhr.open(
- options.type,
- options.url,
- options.async,
- options.username,
- options.password
- );
-
- // Apply custom fields if provided
- if ( options.xhrFields ) {
- for ( i in options.xhrFields ) {
- xhr[ i ] = options.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( options.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( options.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
- }
-
- // Set headers
- for ( i in headers ) {
- xhr.setRequestHeader( i, headers[ i ] );
- }
-
- // Callback
- callback = function( type ) {
- return function() {
- if ( callback ) {
- callback = errorCallback = xhr.onload =
- xhr.onerror = xhr.onabort = xhr.onreadystatechange = null;
-
- if ( type === "abort" ) {
- xhr.abort();
- } else if ( type === "error" ) {
-
- // Support: IE <=9 only
- // On a manual native abort, IE9 throws
- // errors on any property access that is not readyState
- if ( typeof xhr.status !== "number" ) {
- complete( 0, "error" );
- } else {
- complete(
-
- // File: protocol always yields status 0; see #8605, #14207
- xhr.status,
- xhr.statusText
- );
- }
- } else {
- complete(
- xhrSuccessStatus[ xhr.status ] || xhr.status,
- xhr.statusText,
-
- // Support: IE <=9 only
- // IE9 has no XHR2 but throws on binary (trac-11426)
- // For XHR2 non-text, let the caller handle it (gh-2498)
- ( xhr.responseType || "text" ) !== "text" ||
- typeof xhr.responseText !== "string" ?
- { binary: xhr.response } :
- { text: xhr.responseText },
- xhr.getAllResponseHeaders()
- );
- }
- }
- };
- };
-
- // Listen to events
- xhr.onload = callback();
- errorCallback = xhr.onerror = callback( "error" );
-
- // Support: IE 9 only
- // Use onreadystatechange to replace onabort
- // to handle uncaught aborts
- if ( xhr.onabort !== undefined ) {
- xhr.onabort = errorCallback;
- } else {
- xhr.onreadystatechange = function() {
-
- // Check readyState before timeout as it changes
- if ( xhr.readyState === 4 ) {
-
- // Allow onerror to be called first,
- // but that will not handle a native abort
- // Also, save errorCallback to a variable
- // as xhr.onerror cannot be accessed
- window.setTimeout( function() {
- if ( callback ) {
- errorCallback();
- }
- } );
- }
- };
- }
-
- // Create the abort callback
- callback = callback( "abort" );
-
- try {
-
- // Do send the request (this may raise an exception)
- xhr.send( options.hasContent && options.data || null );
- } catch ( e ) {
-
- // #14683: Only rethrow if this hasn't been notified as an error yet
- if ( callback ) {
- throw e;
- }
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-
-
-
-// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
-jQuery.ajaxPrefilter( function( s ) {
- if ( s.crossDomain ) {
- s.contents.script = false;
- }
-} );
-
-// Install script dataType
-jQuery.ajaxSetup( {
- accepts: {
- script: "text/javascript, application/javascript, " +
- "application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-} );
-
-// Handle cache's special case and crossDomain
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- }
-} );
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function( s ) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
- var script, callback;
- return {
- send: function( _, complete ) {
- script = jQuery( "<script>" ).prop( {
- charset: s.scriptCharset,
- src: s.url
- } ).on(
- "load error",
- callback = function( evt ) {
- script.remove();
- callback = null;
- if ( evt ) {
- complete( evt.type === "error" ? 404 : 200, evt.type );
- }
- }
- );
-
- // Use native DOM manipulation to avoid our domManip AJAX trickery
- document.head.appendChild( script[ 0 ] );
- },
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-
-
-
-var oldCallbacks = [],
- rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup( {
- jsonp: "callback",
- jsonpCallback: function() {
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
- this[ callback ] = true;
- return callback;
- }
-} );
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var callbackName, overwritten, responseContainer,
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
- "url" :
- typeof s.data === "string" &&
- ( s.contentType || "" )
- .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
- rjsonp.test( s.data ) && "data"
- );
-
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
- // Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
- s.jsonpCallback() :
- s.jsonpCallback;
-
- // Insert callback into url or form data
- if ( jsonProp ) {
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
- } else if ( s.jsonp !== false ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
- }
-
- // Use data converter to retrieve json after script execution
- s.converters[ "script json" ] = function() {
- if ( !responseContainer ) {
- jQuery.error( callbackName + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // Force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Install callback
- overwritten = window[ callbackName ];
- window[ callbackName ] = function() {
- responseContainer = arguments;
- };
-
- // Clean-up function (fires after converters)
- jqXHR.always( function() {
-
- // If previous value didn't exist - remove it
- if ( overwritten === undefined ) {
- jQuery( window ).removeProp( callbackName );
-
- // Otherwise restore preexisting value
- } else {
- window[ callbackName ] = overwritten;
- }
-
- // Save back as free
- if ( s[ callbackName ] ) {
-
- // Make sure that re-using the options doesn't screw things around
- s.jsonpCallback = originalSettings.jsonpCallback;
-
- // Save the callback name for future use
- oldCallbacks.push( callbackName );
- }
-
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
- overwritten( responseContainer[ 0 ] );
- }
-
- responseContainer = overwritten = undefined;
- } );
-
- // Delegate to script
- return "script";
- }
-} );
-
-
-
-
-// Support: Safari 8 only
-// In Safari 8 documents created via document.implementation.createHTMLDocument
-// collapse sibling forms: the second one becomes a child of the first one.
-// Because of that, this security measure has to be disabled in Safari 8.
-// https://bugs.webkit.org/show_bug.cgi?id=137337
-support.createHTMLDocument = ( function() {
- var body = document.implementation.createHTMLDocument( "" ).body;
- body.innerHTML = "<form></form><form></form>";
- return body.childNodes.length === 2;
-} )();
-
-
-// Argument "data" should be string of html
-// context (optional): If specified, the fragment will be created in this context,
-// defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-jQuery.parseHTML = function( data, context, keepScripts ) {
- if ( typeof data !== "string" ) {
- return [];
- }
- if ( typeof context === "boolean" ) {
- keepScripts = context;
- context = false;
- }
-
- var base, parsed, scripts;
-
- if ( !context ) {
-
- // Stop scripts or inline event handlers from being executed immediately
- // by using document.implementation
- if ( support.createHTMLDocument ) {
- context = document.implementation.createHTMLDocument( "" );
-
- // Set the base href for the created document
- // so any parsed elements with URLs
- // are based on the document's URL (gh-2965)
- base = context.createElement( "base" );
- base.href = document.location.href;
- context.head.appendChild( base );
- } else {
- context = document;
- }
- }
-
- parsed = rsingleTag.exec( data );
- scripts = !keepScripts && [];
-
- // Single tag
- if ( parsed ) {
- return [ context.createElement( parsed[ 1 ] ) ];
- }
-
- parsed = buildFragment( [ data ], context, scripts );
-
- if ( scripts && scripts.length ) {
- jQuery( scripts ).remove();
- }
-
- return jQuery.merge( [], parsed.childNodes );
-};
-
-
-/**
- * Load a url into a page
- */
-jQuery.fn.load = function( url, params, callback ) {
- var selector, type, response,
- self = this,
- off = url.indexOf( " " );
-
- if ( off > -1 ) {
- selector = jQuery.trim( url.slice( off ) );
- url = url.slice( 0, off );
- }
-
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
-
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( params && typeof params === "object" ) {
- type = "POST";
- }
-
- // If we have elements to modify, make the request
- if ( self.length > 0 ) {
- jQuery.ajax( {
- url: url,
-
- // If "type" variable is undefined, then "GET" method will be used.
- // Make value of this field explicit since
- // user can override it through ajaxSetup method
- type: type || "GET",
- dataType: "html",
- data: params
- } ).done( function( responseText ) {
-
- // Save response for use in complete callback
- response = arguments;
-
- self.html( selector ?
-
- // If a selector was specified, locate the right elements in a dummy div
- // Exclude scripts to avoid IE 'Permission Denied' errors
- jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- // If the request succeeds, this function gets "data", "status", "jqXHR"
- // but they are ignored because response was set above.
- // If it fails, this function gets "jqXHR", "status", "error"
- } ).always( callback && function( jqXHR, status ) {
- self.each( function() {
- callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
- } );
- } );
- }
-
- return this;
-};
-
-
-
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [
- "ajaxStart",
- "ajaxStop",
- "ajaxComplete",
- "ajaxError",
- "ajaxSuccess",
- "ajaxSend"
-], function( i, type ) {
- jQuery.fn[ type ] = function( fn ) {
- return this.on( type, fn );
- };
-} );
-
-
-
-
-jQuery.expr.pseudos.animated = function( elem ) {
- return jQuery.grep( jQuery.timers, function( fn ) {
- return elem === fn.elem;
- } ).length;
-};
-
-
-
-
-/**
- * Gets a window from an element
- */
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
-}
-
-jQuery.offset = {
- setOffset: function( elem, options, i ) {
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
- position = jQuery.css( elem, "position" ),
- curElem = jQuery( elem ),
- props = {};
-
- // Set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- curOffset = curElem.offset();
- curCSSTop = jQuery.css( elem, "top" );
- curCSSLeft = jQuery.css( elem, "left" );
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
- ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
-
- // Need to be able to calculate position if either
- // top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
-
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
-
- // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
- options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
-
- } else {
- curElem.css( props );
- }
- }
-};
-
-jQuery.fn.extend( {
- offset: function( options ) {
-
- // Preserve chaining for setter
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each( function( i ) {
- jQuery.offset.setOffset( this, options, i );
- } );
- }
-
- var docElem, win, rect, doc,
- elem = this[ 0 ];
-
- if ( !elem ) {
- return;
- }
-
- // Support: IE <=11 only
- // Running getBoundingClientRect on a
- // disconnected node in IE throws an error
- if ( !elem.getClientRects().length ) {
- return { top: 0, left: 0 };
- }
-
- rect = elem.getBoundingClientRect();
-
- // Make sure element is not hidden (display: none)
- if ( rect.width || rect.height ) {
- doc = elem.ownerDocument;
- win = getWindow( doc );
- docElem = doc.documentElement;
-
- return {
- top: rect.top + win.pageYOffset - docElem.clientTop,
- left: rect.left + win.pageXOffset - docElem.clientLeft
- };
- }
-
- // Return zeros for disconnected and hidden elements (gh-2310)
- return rect;
- },
-
- position: function() {
- if ( !this[ 0 ] ) {
- return;
- }
-
- var offsetParent, offset,
- elem = this[ 0 ],
- parentOffset = { top: 0, left: 0 };
-
- // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
- // because it is its only offset parent
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
-
- // Assume getBoundingClientRect is there when computed position is fixed
- offset = elem.getBoundingClientRect();
-
- } else {
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent();
-
- // Get correct offsets
- offset = this.offset();
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
- parentOffset = offsetParent.offset();
- }
-
- // Add offsetParent borders
- parentOffset = {
- top: parentOffset.top + jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ),
- left: parentOffset.left + jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true )
- };
- }
-
- // Subtract parent offsets and element margins
- return {
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
- };
- },
-
- // This method will return documentElement in the following cases:
- // 1) For the element inside the iframe without offsetParent, this method will return
- // documentElement of the parent window
- // 2) For the hidden or detached element
- // 3) For body or html element, i.e. in case of the html node - it will return itself
- //
- // but those exceptions were never presented as a real life use-cases
- // and might be considered as more preferable results.
- //
- // This logic, however, is not guaranteed and can change at any point in the future
- offsetParent: function() {
- return this.map( function() {
- var offsetParent = this.offsetParent;
-
- while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
- offsetParent = offsetParent.offsetParent;
- }
-
- return offsetParent || documentElement;
- } );
- }
-} );
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
- var top = "pageYOffset" === prop;
-
- jQuery.fn[ method ] = function( val ) {
- return access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? win[ prop ] : elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : win.pageXOffset,
- top ? val : win.pageYOffset
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length );
- };
-} );
-
-// Support: Safari <=7 - 9.1, Chrome <=37 - 49
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
-// getComputedStyle returns percent when specified for top/left/bottom/right;
-// rather than make the css module depend on the offset module, just check for it here
-jQuery.each( [ "top", "left" ], function( i, prop ) {
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
- function( elem, computed ) {
- if ( computed ) {
- computed = curCSS( elem, prop );
-
- // If curCSS returns percentage, fallback to offset
- return rnumnonpx.test( computed ) ?
- jQuery( elem ).position()[ prop ] + "px" :
- computed;
- }
- }
- );
-} );
-
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
- function( defaultExtra, funcName ) {
-
- // Margin is only for outerHeight, outerWidth
- jQuery.fn[ funcName ] = function( margin, value ) {
- var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
- extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
- return access( this, function( elem, type, value ) {
- var doc;
-
- if ( jQuery.isWindow( elem ) ) {
-
- // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
- return funcName.indexOf( "outer" ) === 0 ?
- elem[ "inner" + name ] :
- elem.document.documentElement[ "client" + name ];
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- doc = elem.documentElement;
-
- // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
- // whichever is greatest
- return Math.max(
- elem.body[ "scroll" + name ], doc[ "scroll" + name ],
- elem.body[ "offset" + name ], doc[ "offset" + name ],
- doc[ "client" + name ]
- );
- }
-
- return value === undefined ?
-
- // Get width or height on the element, requesting but not forcing parseFloat
- jQuery.css( elem, type, extra ) :
-
- // Set width or height on the element
- jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable );
- };
- } );
-} );
-
-
-jQuery.fn.extend( {
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
-
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ?
- this.off( selector, "**" ) :
- this.off( types, selector || "**", fn );
- }
-} );
-
-jQuery.parseJSON = JSON.parse;
-
-
-
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-if ( typeof define === "function" && define.amd ) {
- define( "jquery", [], function() {
- return jQuery;
- } );
-}
-
-
-
-
-
-var
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$;
-
-jQuery.noConflict = function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
-};
-
-// Expose jQuery and $ identifiers, even in AMD
-// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-if ( !noGlobal ) {
- window.jQuery = window.$ = jQuery;
-}
-
-
-return jQuery;
-} );
-
-/**
- * @license AngularJS v1.5.11
- * (c) 2010-2017 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window){
- var _jQuery = window.jQuery.noConflict(true);
-
-/**
- * @description
- *
- * This object provides a utility for producing rich Error messages within
- * Angular. It can be called as follows:
- *
- * var exampleMinErr = minErr('example');
- * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);
- *
- * The above creates an instance of minErr in the example namespace. The
- * resulting error will have a namespaced error code of example.one. The
- * resulting error will replace {0} with the value of foo, and {1} with the
- * value of bar. The object is not restricted in the number of arguments it can
- * take.
- *
- * If fewer arguments are specified than necessary for interpolation, the extra
- * interpolation markers will be preserved in the final string.
- *
- * Since data will be parsed statically during a build step, some restrictions
- * are applied with respect to how minErr instances are created and called.
- * Instances should have names of the form namespaceMinErr for a minErr created
- * using minErr('namespace') . Error codes, namespaces and template strings
- * should all be static strings, not variables or general expressions.
- *
- * @param {string} module The namespace to use for the new minErr instance.
- * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning
- * error from returned function, for cases when a particular type of error is useful.
- * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance
- */
-
-function minErr(module, ErrorConstructor) {
- ErrorConstructor = ErrorConstructor || Error;
- return function() {
- var SKIP_INDEXES = 2;
-
- var templateArgs = arguments,
- code = templateArgs[0],
- message = '[' + (module ? module + ':' : '') + code + '] ',
- template = templateArgs[1],
- paramPrefix, i;
-
- message += template.replace(/\{\d+\}/g, function(match) {
- var index = +match.slice(1, -1),
- shiftedIndex = index + SKIP_INDEXES;
-
- if (shiftedIndex < templateArgs.length) {
- return toDebugString(templateArgs[shiftedIndex]);
- }
-
- return match;
- });
-
- message += '\nhttp://errors.angularjs.org/1.5.11/' +
- (module ? module + '/' : '') + code;
-
- for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
- message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' +
- encodeURIComponent(toDebugString(templateArgs[i]));
- }
-
- return new ErrorConstructor(message);
- };
-}
-
-/* We need to tell ESLint what variables are being exported */
-/* exported
- angular,
- msie,
- jqLite,
- jQuery,
- slice,
- splice,
- push,
- toString,
- ngMinErr,
- angularModule,
- uid,
- REGEX_STRING_REGEXP,
- VALIDITY_STATE_PROPERTY,
-
- lowercase,
- uppercase,
- manualLowercase,
- manualUppercase,
- nodeName_,
- isArrayLike,
- forEach,
- forEachSorted,
- reverseParams,
- nextUid,
- setHashKey,
- extend,
- toInt,
- inherit,
- merge,
- noop,
- identity,
- valueFn,
- isUndefined,
- isDefined,
- isObject,
- isBlankObject,
- isString,
- isNumber,
- isNumberNaN,
- isDate,
- isArray,
- isFunction,
- isRegExp,
- isWindow,
- isScope,
- isFile,
- isFormData,
- isBlob,
- isBoolean,
- isPromiseLike,
- trim,
- escapeForRegexp,
- isElement,
- makeMap,
- includes,
- arrayRemove,
- copy,
- equals,
- csp,
- jq,
- concat,
- sliceArgs,
- bind,
- toJsonReplacer,
- toJson,
- fromJson,
- convertTimezoneToLocal,
- timezoneToOffset,
- startingTag,
- tryDecodeURIComponent,
- parseKeyValue,
- toKeyValue,
- encodeUriSegment,
- encodeUriQuery,
- angularInit,
- bootstrap,
- getTestability,
- snake_case,
- bindJQuery,
- assertArg,
- assertArgFn,
- assertNotHasOwnProperty,
- getter,
- getBlockNodes,
- hasOwnProperty,
- createMap,
-
- NODE_TYPE_ELEMENT,
- NODE_TYPE_ATTRIBUTE,
- NODE_TYPE_TEXT,
- NODE_TYPE_COMMENT,
- NODE_TYPE_DOCUMENT,
- NODE_TYPE_DOCUMENT_FRAGMENT
-*/
-
-////////////////////////////////////
-
-/**
- * @ngdoc module
- * @name ng
- * @module ng
- * @installation
- * @description
- *
- * # ng (core module)
- * The ng module is loaded by default when an AngularJS application is started. The module itself
- * contains the essential components for an AngularJS application to function. The table below
- * lists a high level breakdown of each of the services/factories, filters, directives and testing
- * components available within this core module.
- *
- * <div doc-module-components="ng"></div>
- */
-
-var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/;
-
-// The name of a form control's ValidityState property.
-// This is used so that it's possible for internal tests to create mock ValidityStates.
-var VALIDITY_STATE_PROPERTY = 'validity';
-
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-
-var lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};
-var uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};
-
-
-var manualLowercase = function(s) {
- /* eslint-disable no-bitwise */
- return isString(s)
- ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})
- : s;
- /* eslint-enable */
-};
-var manualUppercase = function(s) {
- /* eslint-disable no-bitwise */
- return isString(s)
- ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})
- : s;
- /* eslint-enable */
-};
-
-
-// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish
-// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods
-// with correct but slower alternatives. See https://github.com/angular/angular.js/issues/11387
-if ('i' !== 'I'.toLowerCase()) {
- lowercase = manualLowercase;
- uppercase = manualUppercase;
-}
-
-
-var
- msie, // holds major version number for IE, or NaN if UA is not IE.
- jqLite, // delay binding since jQuery could be loaded after us.
- jQuery, // delay binding
- slice = [].slice,
- splice = [].splice,
- push = [].push,
- toString = Object.prototype.toString,
- getPrototypeOf = Object.getPrototypeOf,
- ngMinErr = minErr('ng'),
-
- /** @name angular */
- angular = window.angular || (window.angular = {}),
- angularModule,
- uid = 0;
-
-/**
- * documentMode is an IE-only property
- * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx
- */
-msie = window.document.documentMode;
-
-
-/**
- * @private
- * @param {*} obj
- * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,
- * String ...)
- */
-function isArrayLike(obj) {
-
- // `null`, `undefined` and `window` are not array-like
- if (obj == null || isWindow(obj)) return false;
-
- // arrays, strings and jQuery/jqLite objects are array like
- // * jqLite is either the jQuery or jqLite constructor function
- // * we have to check the existence of jqLite first as this method is called
- // via the forEach method when constructing the jqLite object in the first place
- if (isArray(obj) || isString(obj) || (jqLite && obj instanceof jqLite)) return true;
-
- // Support: iOS 8.2 (not reproducible in simulator)
- // "length" in obj used to prevent JIT error (gh-11508)
- var length = 'length' in Object(obj) && obj.length;
-
- // NodeList objects (with `item` method) and
- // other objects with suitable length characteristics are array-like
- return isNumber(length) &&
- (length >= 0 && ((length - 1) in obj || obj instanceof Array) || typeof obj.item === 'function');
-
-}
-
-/**
- * @ngdoc function
- * @name angular.forEach
- * @module ng
- * @kind function
- *
- * @description
- * Invokes the `iterator` function once for each item in `obj` collection, which can be either an
- * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`
- * is the value of an object property or an array element, `key` is the object property key or
- * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.
- *
- * It is worth noting that `.forEach` does not iterate over inherited properties because it filters
- * using the `hasOwnProperty` method.
- *
- * Unlike ES262's
- * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),
- * providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just
- * return the value provided.
- *
- ```js
- var values = {name: 'misko', gender: 'male'};
- var log = [];
- angular.forEach(values, function(value, key) {
- this.push(key + ': ' + value);
- }, log);
- expect(log).toEqual(['name: misko', 'gender: male']);
- ```
- *
- * @param {Object|Array} obj Object to iterate over.
- * @param {Function} iterator Iterator function.
- * @param {Object=} context Object to become context (`this`) for the iterator function.
- * @returns {Object|Array} Reference to `obj`.
- */
-
-function forEach(obj, iterator, context) {
- var key, length;
- if (obj) {
- if (isFunction(obj)) {
- for (key in obj) {
- // Need to check if hasOwnProperty exists,
- // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function
- if (key !== 'prototype' && key !== 'length' && key !== 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) {
- iterator.call(context, obj[key], key, obj);
- }
- }
- } else if (isArray(obj) || isArrayLike(obj)) {
- var isPrimitive = typeof obj !== 'object';
- for (key = 0, length = obj.length; key < length; key++) {
- if (isPrimitive || key in obj) {
- iterator.call(context, obj[key], key, obj);
- }
- }
- } else if (obj.forEach && obj.forEach !== forEach) {
- obj.forEach(iterator, context, obj);
- } else if (isBlankObject(obj)) {
- // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
- for (key in obj) {
- iterator.call(context, obj[key], key, obj);
- }
- } else if (typeof obj.hasOwnProperty === 'function') {
- // Slow path for objects inheriting Object.prototype, hasOwnProperty check needed
- for (key in obj) {
- if (obj.hasOwnProperty(key)) {
- iterator.call(context, obj[key], key, obj);
- }
- }
- } else {
- // Slow path for objects which do not have a method `hasOwnProperty`
- for (key in obj) {
- if (hasOwnProperty.call(obj, key)) {
- iterator.call(context, obj[key], key, obj);
- }
- }
- }
- }
- return obj;
-}
-
-function forEachSorted(obj, iterator, context) {
- var keys = Object.keys(obj).sort();
- for (var i = 0; i < keys.length; i++) {
- iterator.call(context, obj[keys[i]], keys[i]);
- }
- return keys;
-}
-
-
-/**
- * when using forEach the params are value, key, but it is often useful to have key, value.
- * @param {function(string, *)} iteratorFn
- * @returns {function(*, string)}
- */
-function reverseParams(iteratorFn) {
- return function(value, key) {iteratorFn(key, value);};
-}
-
-/**
- * A consistent way of creating unique IDs in angular.
- *
- * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before
- * we hit number precision issues in JavaScript.
- *
- * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M
- *
- * @returns {number} an unique alpha-numeric string
- */
-function nextUid() {
- return ++uid;
-}
-
-
-/**
- * Set or clear the hashkey for an object.
- * @param obj object
- * @param h the hashkey (!truthy to delete the hashkey)
- */
-function setHashKey(obj, h) {
- if (h) {
- obj.$$hashKey = h;
- } else {
- delete obj.$$hashKey;
- }
-}
-
-
-function baseExtend(dst, objs, deep) {
- var h = dst.$$hashKey;
-
- for (var i = 0, ii = objs.length; i < ii; ++i) {
- var obj = objs[i];
- if (!isObject(obj) && !isFunction(obj)) continue;
- var keys = Object.keys(obj);
- for (var j = 0, jj = keys.length; j < jj; j++) {
- var key = keys[j];
- var src = obj[key];
-
- if (deep && isObject(src)) {
- if (isDate(src)) {
- dst[key] = new Date(src.valueOf());
- } else if (isRegExp(src)) {
- dst[key] = new RegExp(src);
- } else if (src.nodeName) {
- dst[key] = src.cloneNode(true);
- } else if (isElement(src)) {
- dst[key] = src.clone();
- } else {
- if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {};
- baseExtend(dst[key], [src], true);
- }
- } else {
- dst[key] = src;
- }
- }
- }
-
- setHashKey(dst, h);
- return dst;
-}
-
-/**
- * @ngdoc function
- * @name angular.extend
- * @module ng
- * @kind function
- *
- * @description
- * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
- * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
- * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.
- *
- * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use
- * {@link angular.merge} for this.
- *
- * @param {Object} dst Destination object.
- * @param {...Object} src Source object(s).
- * @returns {Object} Reference to `dst`.
- */
-function extend(dst) {
- return baseExtend(dst, slice.call(arguments, 1), false);
-}
-
-
-/**
-* @ngdoc function
-* @name angular.merge
-* @module ng
-* @kind function
-*
-* @description
-* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
-* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
-* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`.
-*
-* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source
-* objects, performing a deep copy.
-*
-* @param {Object} dst Destination object.
-* @param {...Object} src Source object(s).
-* @returns {Object} Reference to `dst`.
-*/
-function merge(dst) {
- return baseExtend(dst, slice.call(arguments, 1), true);
-}
-
-
-
-function toInt(str) {
- return parseInt(str, 10);
-}
-
-var isNumberNaN = Number.isNaN || function isNumberNaN(num) {
- // eslint-disable-next-line no-self-compare
- return num !== num;
-};
-
-
-function inherit(parent, extra) {
- return extend(Object.create(parent), extra);
-}
-
-/**
- * @ngdoc function
- * @name angular.noop
- * @module ng
- * @kind function
- *
- * @description
- * A function that performs no operations. This function can be useful when writing code in the
- * functional style.
- ```js
- function foo(callback) {
- var result = calculateResult();
- (callback || angular.noop)(result);
- }
- ```
- */
-function noop() {}
-noop.$inject = [];
-
-
-/**
- * @ngdoc function
- * @name angular.identity
- * @module ng
- * @kind function
- *
- * @description
- * A function that returns its first argument. This function is useful when writing code in the
- * functional style.
- *
- ```js
- function transformer(transformationFn, value) {
- return (transformationFn || angular.identity)(value);
- };
-
- // E.g.
- function getResult(fn, input) {
- return (fn || angular.identity)(input);
- };
-
- getResult(function(n) { return n * 2; }, 21); // returns 42
- getResult(null, 21); // returns 21
- getResult(undefined, 21); // returns 21
- ```
- *
- * @param {*} value to be returned.
- * @returns {*} the value passed in.
- */
-function identity($) {return $;}
-identity.$inject = [];
-
-
-function valueFn(value) {return function valueRef() {return value;};}
-
-function hasCustomToString(obj) {
- return isFunction(obj.toString) && obj.toString !== toString;
-}
-
-
-/**
- * @ngdoc function
- * @name angular.isUndefined
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is undefined.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is undefined.
- */
-function isUndefined(value) {return typeof value === 'undefined';}
-
-
-/**
- * @ngdoc function
- * @name angular.isDefined
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is defined.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is defined.
- */
-function isDefined(value) {return typeof value !== 'undefined';}
-
-
-/**
- * @ngdoc function
- * @name angular.isObject
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
- * considered to be objects. Note that JavaScript arrays are objects.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is an `Object` but not `null`.
- */
-function isObject(value) {
- // http://jsperf.com/isobject4
- return value !== null && typeof value === 'object';
-}
-
-
-/**
- * Determine if a value is an object with a null prototype
- *
- * @returns {boolean} True if `value` is an `Object` with a null prototype
- */
-function isBlankObject(value) {
- return value !== null && typeof value === 'object' && !getPrototypeOf(value);
-}
-
-
-/**
- * @ngdoc function
- * @name angular.isString
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is a `String`.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `String`.
- */
-function isString(value) {return typeof value === 'string';}
-
-
-/**
- * @ngdoc function
- * @name angular.isNumber
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is a `Number`.
- *
- * This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`.
- *
- * If you wish to exclude these then you can use the native
- * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)
- * method.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `Number`.
- */
-function isNumber(value) {return typeof value === 'number';}
-
-
-/**
- * @ngdoc function
- * @name angular.isDate
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a value is a date.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `Date`.
- */
-function isDate(value) {
- return toString.call(value) === '[object Date]';
-}
-
-
-/**
- * @ngdoc function
- * @name angular.isArray
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is an `Array`. Alias of Array.isArray.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is an `Array`.
- */
-var isArray = Array.isArray;
-
-/**
- * @ngdoc function
- * @name angular.isFunction
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is a `Function`.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `Function`.
- */
-function isFunction(value) {return typeof value === 'function';}
-
-
-/**
- * Determines if a value is a regular expression object.
- *
- * @private
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `RegExp`.
- */
-function isRegExp(value) {
- return toString.call(value) === '[object RegExp]';
-}
-
-
-/**
- * Checks if `obj` is a window object.
- *
- * @private
- * @param {*} obj Object to check
- * @returns {boolean} True if `obj` is a window obj.
- */
-function isWindow(obj) {
- return obj && obj.window === obj;
-}
-
-
-function isScope(obj) {
- return obj && obj.$evalAsync && obj.$watch;
-}
-
-
-function isFile(obj) {
- return toString.call(obj) === '[object File]';
-}
-
-
-function isFormData(obj) {
- return toString.call(obj) === '[object FormData]';
-}
-
-
-function isBlob(obj) {
- return toString.call(obj) === '[object Blob]';
-}
-
-
-function isBoolean(value) {
- return typeof value === 'boolean';
-}
-
-
-function isPromiseLike(obj) {
- return obj && isFunction(obj.then);
-}
-
-
-var TYPED_ARRAY_REGEXP = /^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;
-function isTypedArray(value) {
- return value && isNumber(value.length) && TYPED_ARRAY_REGEXP.test(toString.call(value));
-}
-
-function isArrayBuffer(obj) {
- return toString.call(obj) === '[object ArrayBuffer]';
-}
-
-
-var trim = function(value) {
- return isString(value) ? value.trim() : value;
-};
-
-// Copied from:
-// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021
-// Prereq: s is a string.
-var escapeForRegexp = function(s) {
- return s
- .replace(/([-()[\]{}+?*.$^|,:#<!\\])/g, '\\$1')
- // eslint-disable-next-line no-control-regex
- .replace(/\x08/g, '\\x08');
-};
-
-
-/**
- * @ngdoc function
- * @name angular.isElement
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is a DOM element (or wrapped jQuery element).
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
- */
-function isElement(node) {
- return !!(node &&
- (node.nodeName // We are a direct element.
- || (node.prop && node.attr && node.find))); // We have an on and find method part of jQuery API.
-}
-
-/**
- * @param str 'key1,key2,...'
- * @returns {object} in the form of {key1:true, key2:true, ...}
- */
-function makeMap(str) {
- var obj = {}, items = str.split(','), i;
- for (i = 0; i < items.length; i++) {
- obj[items[i]] = true;
- }
- return obj;
-}
-
-
-function nodeName_(element) {
- return lowercase(element.nodeName || (element[0] && element[0].nodeName));
-}
-
-function includes(array, obj) {
- return Array.prototype.indexOf.call(array, obj) !== -1;
-}
-
-function arrayRemove(array, value) {
- var index = array.indexOf(value);
- if (index >= 0) {
- array.splice(index, 1);
- }
- return index;
-}
-
-/**
- * @ngdoc function
- * @name angular.copy
- * @module ng
- * @kind function
- *
- * @description
- * Creates a deep copy of `source`, which should be an object or an array.
- *
- * * If no destination is supplied, a copy of the object or array is created.
- * * If a destination is provided, all of its elements (for arrays) or properties (for objects)
- * are deleted and then all elements/properties from the source are copied to it.
- * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.
- * * If `source` is identical to `destination` an exception will be thrown.
- *
- * <br />
- * <div class="alert alert-warning">
- * Only enumerable properties are taken into account. Non-enumerable properties (both on `source`
- * and on `destination`) will be ignored.
- * </div>
- *
- * @param {*} source The source that will be used to make a copy.
- * Can be any type, including primitives, `null`, and `undefined`.
- * @param {(Object|Array)=} destination Destination into which the source is copied. If
- * provided, must be of the same type as `source`.
- * @returns {*} The copy or updated `destination`, if `destination` was specified.
- *
- * @example
- <example module="copyExample" name="angular-copy">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form novalidate class="simple-form">
- <label>Name: <input type="text" ng-model="user.name" /></label><br />
- <label>Age: <input type="number" ng-model="user.age" /></label><br />
- Gender: <label><input type="radio" ng-model="user.gender" value="male" />male</label>
- <label><input type="radio" ng-model="user.gender" value="female" />female</label><br />
- <button ng-click="reset()">RESET</button>
- <button ng-click="update(user)">SAVE</button>
- </form>
- <pre>form = {{user | json}}</pre>
- <pre>master = {{master | json}}</pre>
- </div>
- </file>
- <file name="script.js">
- // Module: copyExample
- angular.
- module('copyExample', []).
- controller('ExampleController', ['$scope', function($scope) {
- $scope.master = {};
-
- $scope.reset = function() {
- // Example with 1 argument
- $scope.user = angular.copy($scope.master);
- };
-
- $scope.update = function(user) {
- // Example with 2 arguments
- angular.copy(user, $scope.master);
- };
-
- $scope.reset();
- }]);
- </file>
- </example>
- */
-function copy(source, destination) {
- var stackSource = [];
- var stackDest = [];
-
- if (destination) {
- if (isTypedArray(destination) || isArrayBuffer(destination)) {
- throw ngMinErr('cpta', 'Can\'t copy! TypedArray destination cannot be mutated.');
- }
- if (source === destination) {
- throw ngMinErr('cpi', 'Can\'t copy! Source and destination are identical.');
- }
-
- // Empty the destination object
- if (isArray(destination)) {
- destination.length = 0;
- } else {
- forEach(destination, function(value, key) {
- if (key !== '$$hashKey') {
- delete destination[key];
- }
- });
- }
-
- stackSource.push(source);
- stackDest.push(destination);
- return copyRecurse(source, destination);
- }
-
- return copyElement(source);
-
- function copyRecurse(source, destination) {
- var h = destination.$$hashKey;
- var key;
- if (isArray(source)) {
- for (var i = 0, ii = source.length; i < ii; i++) {
- destination.push(copyElement(source[i]));
- }
- } else if (isBlankObject(source)) {
- // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
- for (key in source) {
- destination[key] = copyElement(source[key]);
- }
- } else if (source && typeof source.hasOwnProperty === 'function') {
- // Slow path, which must rely on hasOwnProperty
- for (key in source) {
- if (source.hasOwnProperty(key)) {
- destination[key] = copyElement(source[key]);
- }
- }
- } else {
- // Slowest path --- hasOwnProperty can't be called as a method
- for (key in source) {
- if (hasOwnProperty.call(source, key)) {
- destination[key] = copyElement(source[key]);
- }
- }
- }
- setHashKey(destination, h);
- return destination;
- }
-
- function copyElement(source) {
- // Simple values
- if (!isObject(source)) {
- return source;
- }
-
- // Already copied values
- var index = stackSource.indexOf(source);
- if (index !== -1) {
- return stackDest[index];
- }
-
- if (isWindow(source) || isScope(source)) {
- throw ngMinErr('cpws',
- 'Can\'t copy! Making copies of Window or Scope instances is not supported.');
- }
-
- var needsRecurse = false;
- var destination = copyType(source);
-
- if (destination === undefined) {
- destination = isArray(source) ? [] : Object.create(getPrototypeOf(source));
- needsRecurse = true;
- }
-
- stackSource.push(source);
- stackDest.push(destination);
-
- return needsRecurse
- ? copyRecurse(source, destination)
- : destination;
- }
-
- function copyType(source) {
- switch (toString.call(source)) {
- case '[object Int8Array]':
- case '[object Int16Array]':
- case '[object Int32Array]':
- case '[object Float32Array]':
- case '[object Float64Array]':
- case '[object Uint8Array]':
- case '[object Uint8ClampedArray]':
- case '[object Uint16Array]':
- case '[object Uint32Array]':
- return new source.constructor(copyElement(source.buffer), source.byteOffset, source.length);
-
- case '[object ArrayBuffer]':
- // Support: IE10
- if (!source.slice) {
- // If we're in this case we know the environment supports ArrayBuffer
- /* eslint-disable no-undef */
- var copied = new ArrayBuffer(source.byteLength);
- new Uint8Array(copied).set(new Uint8Array(source));
- /* eslint-enable */
- return copied;
- }
- return source.slice(0);
-
- case '[object Boolean]':
- case '[object Number]':
- case '[object String]':
- case '[object Date]':
- return new source.constructor(source.valueOf());
-
- case '[object RegExp]':
- var re = new RegExp(source.source, source.toString().match(/[^/]*$/)[0]);
- re.lastIndex = source.lastIndex;
- return re;
-
- case '[object Blob]':
- return new source.constructor([source], {type: source.type});
- }
-
- if (isFunction(source.cloneNode)) {
- return source.cloneNode(true);
- }
- }
-}
-
-
-/**
- * @ngdoc function
- * @name angular.equals
- * @module ng
- * @kind function
- *
- * @description
- * Determines if two objects or two values are equivalent. Supports value types, regular
- * expressions, arrays and objects.
- *
- * Two objects or values are considered equivalent if at least one of the following is true:
- *
- * * Both objects or values pass `===` comparison.
- * * Both objects or values are of the same type and all of their properties are equal by
- * comparing them with `angular.equals`.
- * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)
- * * Both values represent the same regular expression (In JavaScript,
- * /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual
- * representation matches).
- *
- * During a property comparison, properties of `function` type and properties with names
- * that begin with `$` are ignored.
- *
- * Scope and DOMWindow objects are being compared only by identify (`===`).
- *
- * @param {*} o1 Object or value to compare.
- * @param {*} o2 Object or value to compare.
- * @returns {boolean} True if arguments are equal.
- *
- * @example
- <example module="equalsExample" name="equalsExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form novalidate>
- <h3>User 1</h3>
- Name: <input type="text" ng-model="user1.name">
- Age: <input type="number" ng-model="user1.age">
-
- <h3>User 2</h3>
- Name: <input type="text" ng-model="user2.name">
- Age: <input type="number" ng-model="user2.age">
-
- <div>
- <br/>
- <input type="button" value="Compare" ng-click="compare()">
- </div>
- User 1: <pre>{{user1 | json}}</pre>
- User 2: <pre>{{user2 | json}}</pre>
- Equal: <pre>{{result}}</pre>
- </form>
- </div>
- </file>
- <file name="script.js">
- angular.module('equalsExample', []).controller('ExampleController', ['$scope', function($scope) {
- $scope.user1 = {};
- $scope.user2 = {};
- $scope.compare = function() {
- $scope.result = angular.equals($scope.user1, $scope.user2);
- };
- }]);
- </file>
- </example>
- */
-function equals(o1, o2) {
- if (o1 === o2) return true;
- if (o1 === null || o2 === null) return false;
- // eslint-disable-next-line no-self-compare
- if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
- var t1 = typeof o1, t2 = typeof o2, length, key, keySet;
- if (t1 === t2 && t1 === 'object') {
- if (isArray(o1)) {
- if (!isArray(o2)) return false;
- if ((length = o1.length) === o2.length) {
- for (key = 0; key < length; key++) {
- if (!equals(o1[key], o2[key])) return false;
- }
- return true;
- }
- } else if (isDate(o1)) {
- if (!isDate(o2)) return false;
- return equals(o1.getTime(), o2.getTime());
- } else if (isRegExp(o1)) {
- if (!isRegExp(o2)) return false;
- return o1.toString() === o2.toString();
- } else {
- if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) ||
- isArray(o2) || isDate(o2) || isRegExp(o2)) return false;
- keySet = createMap();
- for (key in o1) {
- if (key.charAt(0) === '$' || isFunction(o1[key])) continue;
- if (!equals(o1[key], o2[key])) return false;
- keySet[key] = true;
- }
- for (key in o2) {
- if (!(key in keySet) &&
- key.charAt(0) !== '$' &&
- isDefined(o2[key]) &&
- !isFunction(o2[key])) return false;
- }
- return true;
- }
- }
- return false;
-}
-
-var csp = function() {
- if (!isDefined(csp.rules)) {
-
-
- var ngCspElement = (window.document.querySelector('[ng-csp]') ||
- window.document.querySelector('[data-ng-csp]'));
-
- if (ngCspElement) {
- var ngCspAttribute = ngCspElement.getAttribute('ng-csp') ||
- ngCspElement.getAttribute('data-ng-csp');
- csp.rules = {
- noUnsafeEval: !ngCspAttribute || (ngCspAttribute.indexOf('no-unsafe-eval') !== -1),
- noInlineStyle: !ngCspAttribute || (ngCspAttribute.indexOf('no-inline-style') !== -1)
- };
- } else {
- csp.rules = {
- noUnsafeEval: noUnsafeEval(),
- noInlineStyle: false
- };
- }
- }
-
- return csp.rules;
-
- function noUnsafeEval() {
- try {
- // eslint-disable-next-line no-new, no-new-func
- new Function('');
- return false;
- } catch (e) {
- return true;
- }
- }
-};
-
-/**
- * @ngdoc directive
- * @module ng
- * @name ngJq
- *
- * @element ANY
- * @param {string=} ngJq the name of the library available under `window`
- * to be used for angular.element
- * @description
- * Use this directive to force the angular.element library. This should be
- * used to force either jqLite by leaving ng-jq blank or setting the name of
- * the jquery variable under window (eg. jQuery).
- *
- * Since angular looks for this directive when it is loaded (doesn't wait for the
- * DOMContentLoaded event), it must be placed on an element that comes before the script
- * which loads angular. Also, only the first instance of `ng-jq` will be used and all
- * others ignored.
- *
- * @example
- * This example shows how to force jqLite using the `ngJq` directive to the `html` tag.
- ```html
- <!doctype html>
- <html ng-app ng-jq>
- ...
- ...
- </html>
- ```
- * @example
- * This example shows how to use a jQuery based library of a different name.
- * The library name must be available at the top most 'window'.
- ```html
- <!doctype html>
- <html ng-app ng-jq="jQueryLib">
- ...
- ...
- </html>
- ```
- */
-var jq = function() {
- if (isDefined(jq.name_)) return jq.name_;
- var el;
- var i, ii = ngAttrPrefixes.length, prefix, name;
- for (i = 0; i < ii; ++i) {
- prefix = ngAttrPrefixes[i];
- el = window.document.querySelector('[' + prefix.replace(':', '\\:') + 'jq]');
- if (el) {
- name = el.getAttribute(prefix + 'jq');
- break;
- }
- }
-
- return (jq.name_ = name);
-};
-
-function concat(array1, array2, index) {
- return array1.concat(slice.call(array2, index));
-}
-
-function sliceArgs(args, startIndex) {
- return slice.call(args, startIndex || 0);
-}
-
-
-/**
- * @ngdoc function
- * @name angular.bind
- * @module ng
- * @kind function
- *
- * @description
- * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
- * `fn`). You can supply optional `args` that are prebound to the function. This feature is also
- * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as
- * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).
- *
- * @param {Object} self Context which `fn` should be evaluated in.
- * @param {function()} fn Function to be bound.
- * @param {...*} args Optional arguments to be prebound to the `fn` function call.
- * @returns {function()} Function that wraps the `fn` with all the specified bindings.
- */
-function bind(self, fn) {
- var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];
- if (isFunction(fn) && !(fn instanceof RegExp)) {
- return curryArgs.length
- ? function() {
- return arguments.length
- ? fn.apply(self, concat(curryArgs, arguments, 0))
- : fn.apply(self, curryArgs);
- }
- : function() {
- return arguments.length
- ? fn.apply(self, arguments)
- : fn.call(self);
- };
- } else {
- // In IE, native methods are not functions so they cannot be bound (note: they don't need to be).
- return fn;
- }
-}
-
-
-function toJsonReplacer(key, value) {
- var val = value;
-
- if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {
- val = undefined;
- } else if (isWindow(value)) {
- val = '$WINDOW';
- } else if (value && window.document === value) {
- val = '$DOCUMENT';
- } else if (isScope(value)) {
- val = '$SCOPE';
- }
-
- return val;
-}
-
-
-/**
- * @ngdoc function
- * @name angular.toJson
- * @module ng
- * @kind function
- *
- * @description
- * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be
- * stripped since angular uses this notation internally.
- *
- * @param {Object|Array|Date|string|number|boolean} obj Input to be serialized into JSON.
- * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
- * If set to an integer, the JSON output will contain that many spaces per indentation.
- * @returns {string|undefined} JSON-ified string representing `obj`.
- * @knownIssue
- *
- * The Safari browser throws a `RangeError` instead of returning `null` when it tries to stringify a `Date`
- * object with an invalid date value. The only reliable way to prevent this is to monkeypatch the
- * `Date.prototype.toJSON` method as follows:
- *
- * ```
- * var _DatetoJSON = Date.prototype.toJSON;
- * Date.prototype.toJSON = function() {
- * try {
- * return _DatetoJSON.call(this);
- * } catch(e) {
- * if (e instanceof RangeError) {
- * return null;
- * }
- * throw e;
- * }
- * };
- * ```
- *
- * See https://github.com/angular/angular.js/pull/14221 for more information.
- */
-function toJson(obj, pretty) {
- if (isUndefined(obj)) return undefined;
- if (!isNumber(pretty)) {
- pretty = pretty ? 2 : null;
- }
- return JSON.stringify(obj, toJsonReplacer, pretty);
-}
-
-
-/**
- * @ngdoc function
- * @name angular.fromJson
- * @module ng
- * @kind function
- *
- * @description
- * Deserializes a JSON string.
- *
- * @param {string} json JSON string to deserialize.
- * @returns {Object|Array|string|number} Deserialized JSON string.
- */
-function fromJson(json) {
- return isString(json)
- ? JSON.parse(json)
- : json;
-}
-
-
-var ALL_COLONS = /:/g;
-function timezoneToOffset(timezone, fallback) {
- // IE/Edge do not "understand" colon (`:`) in timezone
- timezone = timezone.replace(ALL_COLONS, '');
- var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
- return isNumberNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
-}
-
-
-function addDateMinutes(date, minutes) {
- date = new Date(date.getTime());
- date.setMinutes(date.getMinutes() + minutes);
- return date;
-}
-
-
-function convertTimezoneToLocal(date, timezone, reverse) {
- reverse = reverse ? -1 : 1;
- var dateTimezoneOffset = date.getTimezoneOffset();
- var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
- return addDateMinutes(date, reverse * (timezoneOffset - dateTimezoneOffset));
-}
-
-
-/**
- * @returns {string} Returns the string representation of the element.
- */
-function startingTag(element) {
- element = jqLite(element).clone();
- try {
- // turns out IE does not let you set .html() on elements which
- // are not allowed to have children. So we just ignore it.
- element.empty();
- } catch (e) { /* empty */ }
- var elemHtml = jqLite('<div>').append(element).html();
- try {
- return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :
- elemHtml.
- match(/^(<[^>]+>)/)[1].
- replace(/^<([\w-]+)/, function(match, nodeName) {return '<' + lowercase(nodeName);});
- } catch (e) {
- return lowercase(elemHtml);
- }
-
-}
-
-
-/////////////////////////////////////////////////
-
-/**
- * Tries to decode the URI component without throwing an exception.
- *
- * @private
- * @param str value potential URI component to check.
- * @returns {boolean} True if `value` can be decoded
- * with the decodeURIComponent function.
- */
-function tryDecodeURIComponent(value) {
- try {
- return decodeURIComponent(value);
- } catch (e) {
- // Ignore any invalid uri component.
- }
-}
-
-
-/**
- * Parses an escaped url query string into key-value pairs.
- * @returns {Object.<string,boolean|Array>}
- */
-function parseKeyValue(/**string*/keyValue) {
- var obj = {};
- forEach((keyValue || '').split('&'), function(keyValue) {
- var splitPoint, key, val;
- if (keyValue) {
- key = keyValue = keyValue.replace(/\+/g,'%20');
- splitPoint = keyValue.indexOf('=');
- if (splitPoint !== -1) {
- key = keyValue.substring(0, splitPoint);
- val = keyValue.substring(splitPoint + 1);
- }
- key = tryDecodeURIComponent(key);
- if (isDefined(key)) {
- val = isDefined(val) ? tryDecodeURIComponent(val) : true;
- if (!hasOwnProperty.call(obj, key)) {
- obj[key] = val;
- } else if (isArray(obj[key])) {
- obj[key].push(val);
- } else {
- obj[key] = [obj[key],val];
- }
- }
- }
- });
- return obj;
-}
-
-function toKeyValue(obj) {
- var parts = [];
- forEach(obj, function(value, key) {
- if (isArray(value)) {
- forEach(value, function(arrayValue) {
- parts.push(encodeUriQuery(key, true) +
- (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));
- });
- } else {
- parts.push(encodeUriQuery(key, true) +
- (value === true ? '' : '=' + encodeUriQuery(value, true)));
- }
- });
- return parts.length ? parts.join('&') : '';
-}
-
-
-/**
- * We need our custom method because encodeURIComponent is too aggressive and doesn't follow
- * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
- * segments:
- * segment = *pchar
- * pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
- * pct-encoded = "%" HEXDIG HEXDIG
- * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
- * sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
- * / "*" / "+" / "," / ";" / "="
- */
-function encodeUriSegment(val) {
- return encodeUriQuery(val, true).
- replace(/%26/gi, '&').
- replace(/%3D/gi, '=').
- replace(/%2B/gi, '+');
-}
-
-
-/**
- * This method is intended for encoding *key* or *value* parts of query component. We need a custom
- * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
- * encoded per http://tools.ietf.org/html/rfc3986:
- * query = *( pchar / "/" / "?" )
- * pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
- * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
- * pct-encoded = "%" HEXDIG HEXDIG
- * sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
- * / "*" / "+" / "," / ";" / "="
- */
-function encodeUriQuery(val, pctEncodeSpaces) {
- return encodeURIComponent(val).
- replace(/%40/gi, '@').
- replace(/%3A/gi, ':').
- replace(/%24/g, '$').
- replace(/%2C/gi, ',').
- replace(/%3B/gi, ';').
- replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));
-}
-
-var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];
-
-function getNgAttribute(element, ngAttr) {
- var attr, i, ii = ngAttrPrefixes.length;
- for (i = 0; i < ii; ++i) {
- attr = ngAttrPrefixes[i] + ngAttr;
- if (isString(attr = element.getAttribute(attr))) {
- return attr;
- }
- }
- return null;
-}
-
-function allowAutoBootstrap(document) {
- var script = document.currentScript;
- var src = script && script.getAttribute('src');
-
- if (!src) {
- return true;
- }
-
- var link = document.createElement('a');
- link.href = src;
-
- if (document.location.origin === link.origin) {
- // Same-origin resources are always allowed, even for non-whitelisted schemes.
- return true;
- }
- // Disabled bootstrapping unless angular.js was loaded from a known scheme used on the web.
- // This is to prevent angular.js bundled with browser extensions from being used to bypass the
- // content security policy in web pages and other browser extensions.
- switch (link.protocol) {
- case 'http:':
- case 'https:':
- case 'ftp:':
- case 'blob:':
- case 'file:':
- case 'data:':
- return true;
- default:
- return false;
- }
-}
-
-// Cached as it has to run during loading so that document.currentScript is available.
-var isAutoBootstrapAllowed = allowAutoBootstrap(window.document);
-
-/**
- * @ngdoc directive
- * @name ngApp
- * @module ng
- *
- * @element ANY
- * @param {angular.Module} ngApp an optional application
- * {@link angular.module module} name to load.
- * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be
- * created in "strict-di" mode. This means that the application will fail to invoke functions which
- * do not use explicit function annotation (and are thus unsuitable for minification), as described
- * in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in
- * tracking down the root of these bugs.
- *
- * @description
- *
- * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive
- * designates the **root element** of the application and is typically placed near the root element
- * of the page - e.g. on the `<body>` or `<html>` tags.
- *
- * There are a few things to keep in mind when using `ngApp`:
- * - only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`
- * found in the document will be used to define the root element to auto-bootstrap as an
- * application. To run multiple applications in an HTML document you must manually bootstrap them using
- * {@link angular.bootstrap} instead.
- * - AngularJS applications cannot be nested within each other.
- * - Do not use a directive that uses {@link ng.$compile#transclusion transclusion} on the same element as `ngApp`.
- * This includes directives such as {@link ng.ngIf `ngIf`}, {@link ng.ngInclude `ngInclude`} and
- * {@link ngRoute.ngView `ngView`}.
- * Doing this misplaces the app {@link ng.$rootElement `$rootElement`} and the app's {@link auto.$injector injector},
- * causing animations to stop working and making the injector inaccessible from outside the app.
- *
- * You can specify an **AngularJS module** to be used as the root module for the application. This
- * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It
- * should contain the application code needed or have dependencies on other modules that will
- * contain the code. See {@link angular.module} for more information.
- *
- * In the example below if the `ngApp` directive were not placed on the `html` element then the
- * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`
- * would not be resolved to `3`.
- *
- * `ngApp` is the easiest, and most common way to bootstrap an application.
- *
- <example module="ngAppDemo" name="ng-app">
- <file name="index.html">
- <div ng-controller="ngAppDemoController">
- I can add: {{a}} + {{b}} = {{ a+b }}
- </div>
- </file>
- <file name="script.js">
- angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {
- $scope.a = 1;
- $scope.b = 2;
- });
- </file>
- </example>
- *
- * Using `ngStrictDi`, you would see something like this:
- *
- <example ng-app-included="true" name="strict-di">
- <file name="index.html">
- <div ng-app="ngAppStrictDemo" ng-strict-di>
- <div ng-controller="GoodController1">
- I can add: {{a}} + {{b}} = {{ a+b }}
-
- <p>This renders because the controller does not fail to
- instantiate, by using explicit annotation style (see
- script.js for details)
- </p>
- </div>
-
- <div ng-controller="GoodController2">
- Name: <input ng-model="name"><br />
- Hello, {{name}}!
-
- <p>This renders because the controller does not fail to
- instantiate, by using explicit annotation style
- (see script.js for details)
- </p>
- </div>
-
- <div ng-controller="BadController">
- I can add: {{a}} + {{b}} = {{ a+b }}
-
- <p>The controller could not be instantiated, due to relying
- on automatic function annotations (which are disabled in
- strict mode). As such, the content of this section is not
- interpolated, and there should be an error in your web console.
- </p>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('ngAppStrictDemo', [])
- // BadController will fail to instantiate, due to relying on automatic function annotation,
- // rather than an explicit annotation
- .controller('BadController', function($scope) {
- $scope.a = 1;
- $scope.b = 2;
- })
- // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,
- // due to using explicit annotations using the array style and $inject property, respectively.
- .controller('GoodController1', ['$scope', function($scope) {
- $scope.a = 1;
- $scope.b = 2;
- }])
- .controller('GoodController2', GoodController2);
- function GoodController2($scope) {
- $scope.name = 'World';
- }
- GoodController2.$inject = ['$scope'];
- </file>
- <file name="style.css">
- div[ng-controller] {
- margin-bottom: 1em;
- -webkit-border-radius: 4px;
- border-radius: 4px;
- border: 1px solid;
- padding: .5em;
- }
- div[ng-controller^=Good] {
- border-color: #d6e9c6;
- background-color: #dff0d8;
- color: #3c763d;
- }
- div[ng-controller^=Bad] {
- border-color: #ebccd1;
- background-color: #f2dede;
- color: #a94442;
- margin-bottom: 0;
- }
- </file>
- </example>
- */
-function angularInit(element, bootstrap) {
- var appElement,
- module,
- config = {};
-
- // The element `element` has priority over any other element.
- forEach(ngAttrPrefixes, function(prefix) {
- var name = prefix + 'app';
-
- if (!appElement && element.hasAttribute && element.hasAttribute(name)) {
- appElement = element;
- module = element.getAttribute(name);
- }
- });
- forEach(ngAttrPrefixes, function(prefix) {
- var name = prefix + 'app';
- var candidate;
-
- if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\:') + ']'))) {
- appElement = candidate;
- module = candidate.getAttribute(name);
- }
- });
- if (appElement) {
- if (!isAutoBootstrapAllowed) {
- window.console.error('Angular: disabling automatic bootstrap. <script> protocol indicates ' +
- 'an extension, document.location.href does not match.');
- return;
- }
- config.strictDi = getNgAttribute(appElement, 'strict-di') !== null;
- bootstrap(appElement, module ? [module] : [], config);
- }
-}
-
-/**
- * @ngdoc function
- * @name angular.bootstrap
- * @module ng
- * @description
- * Use this function to manually start up angular application.
- *
- * For more information, see the {@link guide/bootstrap Bootstrap guide}.
- *
- * Angular will detect if it has been loaded into the browser more than once and only allow the
- * first loaded script to be bootstrapped and will report a warning to the browser console for
- * each of the subsequent scripts. This prevents strange results in applications, where otherwise
- * multiple instances of Angular try to work on the DOM.
- *
- * <div class="alert alert-warning">
- * **Note:** Protractor based end-to-end tests cannot use this function to bootstrap manually.
- * They must use {@link ng.directive:ngApp ngApp}.
- * </div>
- *
- * <div class="alert alert-warning">
- * **Note:** Do not bootstrap the app on an element with a directive that uses {@link ng.$compile#transclusion transclusion},
- * such as {@link ng.ngIf `ngIf`}, {@link ng.ngInclude `ngInclude`} and {@link ngRoute.ngView `ngView`}.
- * Doing this misplaces the app {@link ng.$rootElement `$rootElement`} and the app's {@link auto.$injector injector},
- * causing animations to stop working and making the injector inaccessible from outside the app.
- * </div>
- *
- * ```html
- * <!doctype html>
- * <html>
- * <body>
- * <div ng-controller="WelcomeController">
- * {{greeting}}
- * </div>
- *
- * <script src="angular.js"></script>
- * <script>
- * var app = angular.module('demo', [])
- * .controller('WelcomeController', function($scope) {
- * $scope.greeting = 'Welcome!';
- * });
- * angular.bootstrap(document, ['demo']);
- * </script>
- * </body>
- * </html>
- * ```
- *
- * @param {DOMElement} element DOM element which is the root of angular application.
- * @param {Array<String|Function|Array>=} modules an array of modules to load into the application.
- * Each item in the array should be the name of a predefined module or a (DI annotated)
- * function that will be invoked by the injector as a `config` block.
- * See: {@link angular.module modules}
- * @param {Object=} config an object for defining configuration options for the application. The
- * following keys are supported:
- *
- * * `strictDi` - disable automatic function annotation for the application. This is meant to
- * assist in finding bugs which break minified code. Defaults to `false`.
- *
- * @returns {auto.$injector} Returns the newly created injector for this app.
- */
-function bootstrap(element, modules, config) {
- if (!isObject(config)) config = {};
- var defaultConfig = {
- strictDi: false
- };
- config = extend(defaultConfig, config);
- var doBootstrap = function() {
- element = jqLite(element);
-
- if (element.injector()) {
- var tag = (element[0] === window.document) ? 'document' : startingTag(element);
- // Encode angle brackets to prevent input from being sanitized to empty string #8683.
- throw ngMinErr(
- 'btstrpd',
- 'App already bootstrapped with this element \'{0}\'',
- tag.replace(/</,'&lt;').replace(/>/,'&gt;'));
- }
-
- modules = modules || [];
- modules.unshift(['$provide', function($provide) {
- $provide.value('$rootElement', element);
- }]);
-
- if (config.debugInfoEnabled) {
- // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.
- modules.push(['$compileProvider', function($compileProvider) {
- $compileProvider.debugInfoEnabled(true);
- }]);
- }
-
- modules.unshift('ng');
- var injector = createInjector(modules, config.strictDi);
- injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',
- function bootstrapApply(scope, element, compile, injector) {
- scope.$apply(function() {
- element.data('$injector', injector);
- compile(element)(scope);
- });
- }]
- );
- return injector;
- };
-
- var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/;
- var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;
-
- if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) {
- config.debugInfoEnabled = true;
- window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, '');
- }
-
- if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {
- return doBootstrap();
- }
-
- window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');
- angular.resumeBootstrap = function(extraModules) {
- forEach(extraModules, function(module) {
- modules.push(module);
- });
- return doBootstrap();
- };
-
- if (isFunction(angular.resumeDeferredBootstrap)) {
- angular.resumeDeferredBootstrap();
- }
-}
-
-/**
- * @ngdoc function
- * @name angular.reloadWithDebugInfo
- * @module ng
- * @description
- * Use this function to reload the current application with debug information turned on.
- * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.
- *
- * See {@link ng.$compileProvider#debugInfoEnabled} for more.
- */
-function reloadWithDebugInfo() {
- window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name;
- window.location.reload();
-}
-
-/**
- * @name angular.getTestability
- * @module ng
- * @description
- * Get the testability service for the instance of Angular on the given
- * element.
- * @param {DOMElement} element DOM element which is the root of angular application.
- */
-function getTestability(rootElement) {
- var injector = angular.element(rootElement).injector();
- if (!injector) {
- throw ngMinErr('test',
- 'no injector found for element argument to getTestability');
- }
- return injector.get('$$testability');
-}
-
-var SNAKE_CASE_REGEXP = /[A-Z]/g;
-function snake_case(name, separator) {
- separator = separator || '_';
- return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {
- return (pos ? separator : '') + letter.toLowerCase();
- });
-}
-
-var bindJQueryFired = false;
-function bindJQuery() {
- var originalCleanData;
-
- if (bindJQueryFired) {
- return;
- }
-
- // bind to jQuery if present;
- var jqName = jq();
- jQuery = isUndefined(jqName) ? window.jQuery : // use jQuery (if present)
- !jqName ? undefined : // use jqLite
- window[jqName]; // use jQuery specified by `ngJq`
-
- // Use jQuery if it exists with proper functionality, otherwise default to us.
- // Angular 1.2+ requires jQuery 1.7+ for on()/off() support.
- // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older
- // versions. It will not work for sure with jQuery <1.7, though.
- if (jQuery && jQuery.fn.on) {
- jqLite = jQuery;
- extend(jQuery.fn, {
- scope: JQLitePrototype.scope,
- isolateScope: JQLitePrototype.isolateScope,
- controller: JQLitePrototype.controller,
- injector: JQLitePrototype.injector,
- inheritedData: JQLitePrototype.inheritedData
- });
-
- // All nodes removed from the DOM via various jQuery APIs like .remove()
- // are passed through jQuery.cleanData. Monkey-patch this method to fire
- // the $destroy event on all removed nodes.
- originalCleanData = jQuery.cleanData;
- jQuery.cleanData = function(elems) {
- var events;
- for (var i = 0, elem; (elem = elems[i]) != null; i++) {
- events = jQuery._data(elem, 'events');
- if (events && events.$destroy) {
- jQuery(elem).triggerHandler('$destroy');
- }
- }
- originalCleanData(elems);
- };
- } else {
- jqLite = JQLite;
- }
-
- angular.element = jqLite;
-
- // Prevent double-proxying.
- bindJQueryFired = true;
-}
-
-/**
- * throw error if the argument is falsy.
- */
-function assertArg(arg, name, reason) {
- if (!arg) {
- throw ngMinErr('areq', 'Argument \'{0}\' is {1}', (name || '?'), (reason || 'required'));
- }
- return arg;
-}
-
-function assertArgFn(arg, name, acceptArrayAnnotation) {
- if (acceptArrayAnnotation && isArray(arg)) {
- arg = arg[arg.length - 1];
- }
-
- assertArg(isFunction(arg), name, 'not a function, got ' +
- (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
- return arg;
-}
-
-/**
- * throw error if the name given is hasOwnProperty
- * @param {String} name the name to test
- * @param {String} context the context in which the name is used, such as module or directive
- */
-function assertNotHasOwnProperty(name, context) {
- if (name === 'hasOwnProperty') {
- throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);
- }
-}
-
-/**
- * Return the value accessible from the object by path. Any undefined traversals are ignored
- * @param {Object} obj starting object
- * @param {String} path path to traverse
- * @param {boolean} [bindFnToScope=true]
- * @returns {Object} value as accessible by path
- */
-//TODO(misko): this function needs to be removed
-function getter(obj, path, bindFnToScope) {
- if (!path) return obj;
- var keys = path.split('.');
- var key;
- var lastInstance = obj;
- var len = keys.length;
-
- for (var i = 0; i < len; i++) {
- key = keys[i];
- if (obj) {
- obj = (lastInstance = obj)[key];
- }
- }
- if (!bindFnToScope && isFunction(obj)) {
- return bind(lastInstance, obj);
- }
- return obj;
-}
-
-/**
- * Return the DOM siblings between the first and last node in the given array.
- * @param {Array} array like object
- * @returns {Array} the inputted object or a jqLite collection containing the nodes
- */
-function getBlockNodes(nodes) {
- // TODO(perf): update `nodes` instead of creating a new object?
- var node = nodes[0];
- var endNode = nodes[nodes.length - 1];
- var blockNodes;
-
- for (var i = 1; node !== endNode && (node = node.nextSibling); i++) {
- if (blockNodes || nodes[i] !== node) {
- if (!blockNodes) {
- blockNodes = jqLite(slice.call(nodes, 0, i));
- }
- blockNodes.push(node);
- }
- }
-
- return blockNodes || nodes;
-}
-
-
-/**
- * Creates a new object without a prototype. This object is useful for lookup without having to
- * guard against prototypically inherited properties via hasOwnProperty.
- *
- * Related micro-benchmarks:
- * - http://jsperf.com/object-create2
- * - http://jsperf.com/proto-map-lookup/2
- * - http://jsperf.com/for-in-vs-object-keys2
- *
- * @returns {Object}
- */
-function createMap() {
- return Object.create(null);
-}
-
-var NODE_TYPE_ELEMENT = 1;
-var NODE_TYPE_ATTRIBUTE = 2;
-var NODE_TYPE_TEXT = 3;
-var NODE_TYPE_COMMENT = 8;
-var NODE_TYPE_DOCUMENT = 9;
-var NODE_TYPE_DOCUMENT_FRAGMENT = 11;
-
-/**
- * @ngdoc type
- * @name angular.Module
- * @module ng
- * @description
- *
- * Interface for configuring angular {@link angular.module modules}.
- */
-
-function setupModuleLoader(window) {
-
- var $injectorMinErr = minErr('$injector');
- var ngMinErr = minErr('ng');
-
- function ensure(obj, name, factory) {
- return obj[name] || (obj[name] = factory());
- }
-
- var angular = ensure(window, 'angular', Object);
-
- // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap
- angular.$$minErr = angular.$$minErr || minErr;
-
- return ensure(angular, 'module', function() {
- /** @type {Object.<string, angular.Module>} */
- var modules = {};
-
- /**
- * @ngdoc function
- * @name angular.module
- * @module ng
- * @description
- *
- * The `angular.module` is a global place for creating, registering and retrieving Angular
- * modules.
- * All modules (angular core or 3rd party) that should be available to an application must be
- * registered using this mechanism.
- *
- * Passing one argument retrieves an existing {@link angular.Module},
- * whereas passing more than one argument creates a new {@link angular.Module}
- *
- *
- * # Module
- *
- * A module is a collection of services, directives, controllers, filters, and configuration information.
- * `angular.module` is used to configure the {@link auto.$injector $injector}.
- *
- * ```js
- * // Create a new module
- * var myModule = angular.module('myModule', []);
- *
- * // register a new service
- * myModule.value('appName', 'MyCoolApp');
- *
- * // configure existing services inside initialization blocks.
- * myModule.config(['$locationProvider', function($locationProvider) {
- * // Configure existing providers
- * $locationProvider.hashPrefix('!');
- * }]);
- * ```
- *
- * Then you can create an injector and load your modules like this:
- *
- * ```js
- * var injector = angular.injector(['ng', 'myModule'])
- * ```
- *
- * However it's more likely that you'll just use
- * {@link ng.directive:ngApp ngApp} or
- * {@link angular.bootstrap} to simplify this process for you.
- *
- * @param {!string} name The name of the module to create or retrieve.
- * @param {!Array.<string>=} requires If specified then new module is being created. If
- * unspecified then the module is being retrieved for further configuration.
- * @param {Function=} configFn Optional configuration function for the module. Same as
- * {@link angular.Module#config Module#config()}.
- * @returns {angular.Module} new module with the {@link angular.Module} api.
- */
- return function module(name, requires, configFn) {
- var assertNotHasOwnProperty = function(name, context) {
- if (name === 'hasOwnProperty') {
- throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);
- }
- };
-
- assertNotHasOwnProperty(name, 'module');
- if (requires && modules.hasOwnProperty(name)) {
- modules[name] = null;
- }
- return ensure(modules, name, function() {
- if (!requires) {
- throw $injectorMinErr('nomod', 'Module \'{0}\' is not available! You either misspelled ' +
- 'the module name or forgot to load it. If registering a module ensure that you ' +
- 'specify the dependencies as the second argument.', name);
- }
-
- /** @type {!Array.<Array.<*>>} */
- var invokeQueue = [];
-
- /** @type {!Array.<Function>} */
- var configBlocks = [];
-
- /** @type {!Array.<Function>} */
- var runBlocks = [];
-
- var config = invokeLater('$injector', 'invoke', 'push', configBlocks);
-
- /** @type {angular.Module} */
- var moduleInstance = {
- // Private state
- _invokeQueue: invokeQueue,
- _configBlocks: configBlocks,
- _runBlocks: runBlocks,
-
- /**
- * @ngdoc property
- * @name angular.Module#requires
- * @module ng
- *
- * @description
- * Holds the list of modules which the injector will load before the current module is
- * loaded.
- */
- requires: requires,
-
- /**
- * @ngdoc property
- * @name angular.Module#name
- * @module ng
- *
- * @description
- * Name of the module.
- */
- name: name,
-
-
- /**
- * @ngdoc method
- * @name angular.Module#provider
- * @module ng
- * @param {string} name service name
- * @param {Function} providerType Construction function for creating new instance of the
- * service.
- * @description
- * See {@link auto.$provide#provider $provide.provider()}.
- */
- provider: invokeLaterAndSetModuleName('$provide', 'provider'),
-
- /**
- * @ngdoc method
- * @name angular.Module#factory
- * @module ng
- * @param {string} name service name
- * @param {Function} providerFunction Function for creating new instance of the service.
- * @description
- * See {@link auto.$provide#factory $provide.factory()}.
- */
- factory: invokeLaterAndSetModuleName('$provide', 'factory'),
-
- /**
- * @ngdoc method
- * @name angular.Module#service
- * @module ng
- * @param {string} name service name
- * @param {Function} constructor A constructor function that will be instantiated.
- * @description
- * See {@link auto.$provide#service $provide.service()}.
- */
- service: invokeLaterAndSetModuleName('$provide', 'service'),
-
- /**
- * @ngdoc method
- * @name angular.Module#value
- * @module ng
- * @param {string} name service name
- * @param {*} object Service instance object.
- * @description
- * See {@link auto.$provide#value $provide.value()}.
- */
- value: invokeLater('$provide', 'value'),
-
- /**
- * @ngdoc method
- * @name angular.Module#constant
- * @module ng
- * @param {string} name constant name
- * @param {*} object Constant value.
- * @description
- * Because the constants are fixed, they get applied before other provide methods.
- * See {@link auto.$provide#constant $provide.constant()}.
- */
- constant: invokeLater('$provide', 'constant', 'unshift'),
-
- /**
- * @ngdoc method
- * @name angular.Module#decorator
- * @module ng
- * @param {string} name The name of the service to decorate.
- * @param {Function} decorFn This function will be invoked when the service needs to be
- * instantiated and should return the decorated service instance.
- * @description
- * See {@link auto.$provide#decorator $provide.decorator()}.
- */
- decorator: invokeLaterAndSetModuleName('$provide', 'decorator'),
-
- /**
- * @ngdoc method
- * @name angular.Module#animation
- * @module ng
- * @param {string} name animation name
- * @param {Function} animationFactory Factory function for creating new instance of an
- * animation.
- * @description
- *
- * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.
- *
- *
- * Defines an animation hook that can be later used with
- * {@link $animate $animate} service and directives that use this service.
- *
- * ```js
- * module.animation('.animation-name', function($inject1, $inject2) {
- * return {
- * eventName : function(element, done) {
- * //code to run the animation
- * //once complete, then run done()
- * return function cancellationFunction(element) {
- * //code to cancel the animation
- * }
- * }
- * }
- * })
- * ```
- *
- * See {@link ng.$animateProvider#register $animateProvider.register()} and
- * {@link ngAnimate ngAnimate module} for more information.
- */
- animation: invokeLaterAndSetModuleName('$animateProvider', 'register'),
-
- /**
- * @ngdoc method
- * @name angular.Module#filter
- * @module ng
- * @param {string} name Filter name - this must be a valid angular expression identifier
- * @param {Function} filterFactory Factory function for creating new instance of filter.
- * @description
- * See {@link ng.$filterProvider#register $filterProvider.register()}.
- *
- * <div class="alert alert-warning">
- * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
- * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
- * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
- * (`myapp_subsection_filterx`).
- * </div>
- */
- filter: invokeLaterAndSetModuleName('$filterProvider', 'register'),
-
- /**
- * @ngdoc method
- * @name angular.Module#controller
- * @module ng
- * @param {string|Object} name Controller name, or an object map of controllers where the
- * keys are the names and the values are the constructors.
- * @param {Function} constructor Controller constructor function.
- * @description
- * See {@link ng.$controllerProvider#register $controllerProvider.register()}.
- */
- controller: invokeLaterAndSetModuleName('$controllerProvider', 'register'),
-
- /**
- * @ngdoc method
- * @name angular.Module#directive
- * @module ng
- * @param {string|Object} name Directive name, or an object map of directives where the
- * keys are the names and the values are the factories.
- * @param {Function} directiveFactory Factory function for creating new instance of
- * directives.
- * @description
- * See {@link ng.$compileProvider#directive $compileProvider.directive()}.
- */
- directive: invokeLaterAndSetModuleName('$compileProvider', 'directive'),
-
- /**
- * @ngdoc method
- * @name angular.Module#component
- * @module ng
- * @param {string} name Name of the component in camel-case (i.e. myComp which will match as my-comp)
- * @param {Object} options Component definition object (a simplified
- * {@link ng.$compile#directive-definition-object directive definition object})
- *
- * @description
- * See {@link ng.$compileProvider#component $compileProvider.component()}.
- */
- component: invokeLaterAndSetModuleName('$compileProvider', 'component'),
-
- /**
- * @ngdoc method
- * @name angular.Module#config
- * @module ng
- * @param {Function} configFn Execute this function on module load. Useful for service
- * configuration.
- * @description
- * Use this method to register work which needs to be performed on module loading.
- * For more about how to configure services, see
- * {@link providers#provider-recipe Provider Recipe}.
- */
- config: config,
-
- /**
- * @ngdoc method
- * @name angular.Module#run
- * @module ng
- * @param {Function} initializationFn Execute this function after injector creation.
- * Useful for application initialization.
- * @description
- * Use this method to register work which should be performed when the injector is done
- * loading all modules.
- */
- run: function(block) {
- runBlocks.push(block);
- return this;
- }
- };
-
- if (configFn) {
- config(configFn);
- }
-
- return moduleInstance;
-
- /**
- * @param {string} provider
- * @param {string} method
- * @param {String=} insertMethod
- * @returns {angular.Module}
- */
- function invokeLater(provider, method, insertMethod, queue) {
- if (!queue) queue = invokeQueue;
- return function() {
- queue[insertMethod || 'push']([provider, method, arguments]);
- return moduleInstance;
- };
- }
-
- /**
- * @param {string} provider
- * @param {string} method
- * @returns {angular.Module}
- */
- function invokeLaterAndSetModuleName(provider, method) {
- return function(recipeName, factoryFunction) {
- if (factoryFunction && isFunction(factoryFunction)) factoryFunction.$$moduleName = name;
- invokeQueue.push([provider, method, arguments]);
- return moduleInstance;
- };
- }
- });
- };
- });
-
-}
-
-/* global shallowCopy: true */
-
-/**
- * Creates a shallow copy of an object, an array or a primitive.
- *
- * Assumes that there are no proto properties for objects.
- */
-function shallowCopy(src, dst) {
- if (isArray(src)) {
- dst = dst || [];
-
- for (var i = 0, ii = src.length; i < ii; i++) {
- dst[i] = src[i];
- }
- } else if (isObject(src)) {
- dst = dst || {};
-
- for (var key in src) {
- if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {
- dst[key] = src[key];
- }
- }
- }
-
- return dst || src;
-}
-
-/* global toDebugString: true */
-
-function serializeObject(obj) {
- var seen = [];
-
- return JSON.stringify(obj, function(key, val) {
- val = toJsonReplacer(key, val);
- if (isObject(val)) {
-
- if (seen.indexOf(val) >= 0) return '...';
-
- seen.push(val);
- }
- return val;
- });
-}
-
-function toDebugString(obj) {
- if (typeof obj === 'function') {
- return obj.toString().replace(/ \{[\s\S]*$/, '');
- } else if (isUndefined(obj)) {
- return 'undefined';
- } else if (typeof obj !== 'string') {
- return serializeObject(obj);
- }
- return obj;
-}
-
-/* global angularModule: true,
- version: true,
-
- $CompileProvider,
-
- htmlAnchorDirective,
- inputDirective,
- inputDirective,
- formDirective,
- scriptDirective,
- selectDirective,
- optionDirective,
- ngBindDirective,
- ngBindHtmlDirective,
- ngBindTemplateDirective,
- ngClassDirective,
- ngClassEvenDirective,
- ngClassOddDirective,
- ngCloakDirective,
- ngControllerDirective,
- ngFormDirective,
- ngHideDirective,
- ngIfDirective,
- ngIncludeDirective,
- ngIncludeFillContentDirective,
- ngInitDirective,
- ngNonBindableDirective,
- ngPluralizeDirective,
- ngRepeatDirective,
- ngShowDirective,
- ngStyleDirective,
- ngSwitchDirective,
- ngSwitchWhenDirective,
- ngSwitchDefaultDirective,
- ngOptionsDirective,
- ngTranscludeDirective,
- ngModelDirective,
- ngListDirective,
- ngChangeDirective,
- patternDirective,
- patternDirective,
- requiredDirective,
- requiredDirective,
- minlengthDirective,
- minlengthDirective,
- maxlengthDirective,
- maxlengthDirective,
- ngValueDirective,
- ngModelOptionsDirective,
- ngAttributeAliasDirectives,
- ngEventDirectives,
-
- $AnchorScrollProvider,
- $AnimateProvider,
- $CoreAnimateCssProvider,
- $$CoreAnimateJsProvider,
- $$CoreAnimateQueueProvider,
- $$AnimateRunnerFactoryProvider,
- $$AnimateAsyncRunFactoryProvider,
- $BrowserProvider,
- $CacheFactoryProvider,
- $ControllerProvider,
- $DateProvider,
- $DocumentProvider,
- $ExceptionHandlerProvider,
- $FilterProvider,
- $$ForceReflowProvider,
- $InterpolateProvider,
- $IntervalProvider,
- $$HashMapProvider,
- $HttpProvider,
- $HttpParamSerializerProvider,
- $HttpParamSerializerJQLikeProvider,
- $HttpBackendProvider,
- $xhrFactoryProvider,
- $jsonpCallbacksProvider,
- $LocationProvider,
- $LogProvider,
- $ParseProvider,
- $RootScopeProvider,
- $QProvider,
- $$QProvider,
- $$SanitizeUriProvider,
- $SceProvider,
- $SceDelegateProvider,
- $SnifferProvider,
- $TemplateCacheProvider,
- $TemplateRequestProvider,
- $$TestabilityProvider,
- $TimeoutProvider,
- $$RAFProvider,
- $WindowProvider,
- $$jqLiteProvider,
- $$CookieReaderProvider
-*/
-
-
-/**
- * @ngdoc object
- * @name angular.version
- * @module ng
- * @description
- * An object that contains information about the current AngularJS version.
- *
- * This object has the following properties:
- *
- * - `full` – `{string}` – Full version string, such as "0.9.18".
- * - `major` – `{number}` – Major version number, such as "0".
- * - `minor` – `{number}` – Minor version number, such as "9".
- * - `dot` – `{number}` – Dot version number, such as "18".
- * - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
- */
-var version = {
- // These placeholder strings will be replaced by grunt's `build` task.
- // They need to be double- or single-quoted.
- full: '1.5.11',
- major: 1,
- minor: 5,
- dot: 11,
- codeName: 'princely-quest'
-};
-
-
-function publishExternalAPI(angular) {
- extend(angular, {
- 'bootstrap': bootstrap,
- 'copy': copy,
- 'extend': extend,
- 'merge': merge,
- 'equals': equals,
- 'element': jqLite,
- 'forEach': forEach,
- 'injector': createInjector,
- 'noop': noop,
- 'bind': bind,
- 'toJson': toJson,
- 'fromJson': fromJson,
- 'identity': identity,
- 'isUndefined': isUndefined,
- 'isDefined': isDefined,
- 'isString': isString,
- 'isFunction': isFunction,
- 'isObject': isObject,
- 'isNumber': isNumber,
- 'isElement': isElement,
- 'isArray': isArray,
- 'version': version,
- 'isDate': isDate,
- 'lowercase': lowercase,
- 'uppercase': uppercase,
- 'callbacks': {$$counter: 0},
- 'getTestability': getTestability,
- '$$minErr': minErr,
- '$$csp': csp,
- 'reloadWithDebugInfo': reloadWithDebugInfo
- });
-
- angularModule = setupModuleLoader(window);
-
- angularModule('ng', ['ngLocale'], ['$provide',
- function ngModule($provide) {
- // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.
- $provide.provider({
- $$sanitizeUri: $$SanitizeUriProvider
- });
- $provide.provider('$compile', $CompileProvider).
- directive({
- a: htmlAnchorDirective,
- input: inputDirective,
- textarea: inputDirective,
- form: formDirective,
- script: scriptDirective,
- select: selectDirective,
- option: optionDirective,
- ngBind: ngBindDirective,
- ngBindHtml: ngBindHtmlDirective,
- ngBindTemplate: ngBindTemplateDirective,
- ngClass: ngClassDirective,
- ngClassEven: ngClassEvenDirective,
- ngClassOdd: ngClassOddDirective,
- ngCloak: ngCloakDirective,
- ngController: ngControllerDirective,
- ngForm: ngFormDirective,
- ngHide: ngHideDirective,
- ngIf: ngIfDirective,
- ngInclude: ngIncludeDirective,
- ngInit: ngInitDirective,
- ngNonBindable: ngNonBindableDirective,
- ngPluralize: ngPluralizeDirective,
- ngRepeat: ngRepeatDirective,
- ngShow: ngShowDirective,
- ngStyle: ngStyleDirective,
- ngSwitch: ngSwitchDirective,
- ngSwitchWhen: ngSwitchWhenDirective,
- ngSwitchDefault: ngSwitchDefaultDirective,
- ngOptions: ngOptionsDirective,
- ngTransclude: ngTranscludeDirective,
- ngModel: ngModelDirective,
- ngList: ngListDirective,
- ngChange: ngChangeDirective,
- pattern: patternDirective,
- ngPattern: patternDirective,
- required: requiredDirective,
- ngRequired: requiredDirective,
- minlength: minlengthDirective,
- ngMinlength: minlengthDirective,
- maxlength: maxlengthDirective,
- ngMaxlength: maxlengthDirective,
- ngValue: ngValueDirective,
- ngModelOptions: ngModelOptionsDirective
- }).
- directive({
- ngInclude: ngIncludeFillContentDirective
- }).
- directive(ngAttributeAliasDirectives).
- directive(ngEventDirectives);
- $provide.provider({
- $anchorScroll: $AnchorScrollProvider,
- $animate: $AnimateProvider,
- $animateCss: $CoreAnimateCssProvider,
- $$animateJs: $$CoreAnimateJsProvider,
- $$animateQueue: $$CoreAnimateQueueProvider,
- $$AnimateRunner: $$AnimateRunnerFactoryProvider,
- $$animateAsyncRun: $$AnimateAsyncRunFactoryProvider,
- $browser: $BrowserProvider,
- $cacheFactory: $CacheFactoryProvider,
- $controller: $ControllerProvider,
- $document: $DocumentProvider,
- $exceptionHandler: $ExceptionHandlerProvider,
- $filter: $FilterProvider,
- $$forceReflow: $$ForceReflowProvider,
- $interpolate: $InterpolateProvider,
- $interval: $IntervalProvider,
- $http: $HttpProvider,
- $httpParamSerializer: $HttpParamSerializerProvider,
- $httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,
- $httpBackend: $HttpBackendProvider,
- $xhrFactory: $xhrFactoryProvider,
- $jsonpCallbacks: $jsonpCallbacksProvider,
- $location: $LocationProvider,
- $log: $LogProvider,
- $parse: $ParseProvider,
- $rootScope: $RootScopeProvider,
- $q: $QProvider,
- $$q: $$QProvider,
- $sce: $SceProvider,
- $sceDelegate: $SceDelegateProvider,
- $sniffer: $SnifferProvider,
- $templateCache: $TemplateCacheProvider,
- $templateRequest: $TemplateRequestProvider,
- $$testability: $$TestabilityProvider,
- $timeout: $TimeoutProvider,
- $window: $WindowProvider,
- $$rAF: $$RAFProvider,
- $$jqLite: $$jqLiteProvider,
- $$HashMap: $$HashMapProvider,
- $$cookieReader: $$CookieReaderProvider
- });
- }
- ]);
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables likes document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/* global JQLitePrototype: true,
- addEventListenerFn: true,
- removeEventListenerFn: true,
- BOOLEAN_ATTR: true,
- ALIASED_ATTR: true
-*/
-
-//////////////////////////////////
-//JQLite
-//////////////////////////////////
-
-/**
- * @ngdoc function
- * @name angular.element
- * @module ng
- * @kind function
- *
- * @description
- * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.
- *
- * If jQuery is available, `angular.element` is an alias for the
- * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`
- * delegates to Angular's built-in subset of jQuery, called "jQuery lite" or **jqLite**.
- *
- * jqLite is a tiny, API-compatible subset of jQuery that allows
- * Angular to manipulate the DOM in a cross-browser compatible way. jqLite implements only the most
- * commonly needed functionality with the goal of having a very small footprint.
- *
- * To use `jQuery`, simply ensure it is loaded before the `angular.js` file. You can also use the
- * {@link ngJq `ngJq`} directive to specify that jqlite should be used over jQuery, or to use a
- * specific version of jQuery if multiple versions exist on the page.
- *
- * <div class="alert alert-info">**Note:** All element references in Angular are always wrapped with jQuery or
- * jqLite (such as the element argument in a directive's compile / link function). They are never raw DOM references.</div>
- *
- * <div class="alert alert-warning">**Note:** Keep in mind that this function will not find elements
- * by tag name / CSS selector. For lookups by tag name, try instead `angular.element(document).find(...)`
- * or `$document.find()`, or use the standard DOM APIs, e.g. `document.querySelectorAll()`.</div>
- *
- * ## Angular's jqLite
- * jqLite provides only the following jQuery methods:
- *
- * - [`addClass()`](http://api.jquery.com/addClass/) - Does not support a function as first argument
- * - [`after()`](http://api.jquery.com/after/)
- * - [`append()`](http://api.jquery.com/append/)
- * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters
- * - [`bind()`](http://api.jquery.com/bind/) - Does not support namespaces, selectors or eventData
- * - [`children()`](http://api.jquery.com/children/) - Does not support selectors
- * - [`clone()`](http://api.jquery.com/clone/)
- * - [`contents()`](http://api.jquery.com/contents/)
- * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`.
- * As a setter, does not convert numbers to strings or append 'px', and also does not have automatic property prefixing.
- * - [`data()`](http://api.jquery.com/data/)
- * - [`detach()`](http://api.jquery.com/detach/)
- * - [`empty()`](http://api.jquery.com/empty/)
- * - [`eq()`](http://api.jquery.com/eq/)
- * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name
- * - [`hasClass()`](http://api.jquery.com/hasClass/)
- * - [`html()`](http://api.jquery.com/html/)
- * - [`next()`](http://api.jquery.com/next/) - Does not support selectors
- * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData
- * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter
- * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors
- * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors
- * - [`prepend()`](http://api.jquery.com/prepend/)
- * - [`prop()`](http://api.jquery.com/prop/)
- * - [`ready()`](http://api.jquery.com/ready/)
- * - [`remove()`](http://api.jquery.com/remove/)
- * - [`removeAttr()`](http://api.jquery.com/removeAttr/) - Does not support multiple attributes
- * - [`removeClass()`](http://api.jquery.com/removeClass/) - Does not support a function as first argument
- * - [`removeData()`](http://api.jquery.com/removeData/)
- * - [`replaceWith()`](http://api.jquery.com/replaceWith/)
- * - [`text()`](http://api.jquery.com/text/)
- * - [`toggleClass()`](http://api.jquery.com/toggleClass/) - Does not support a function as first argument
- * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers
- * - [`unbind()`](http://api.jquery.com/unbind/) - Does not support namespaces or event object as parameter
- * - [`val()`](http://api.jquery.com/val/)
- * - [`wrap()`](http://api.jquery.com/wrap/)
- *
- * ## jQuery/jqLite Extras
- * Angular also provides the following additional methods and events to both jQuery and jqLite:
- *
- * ### Events
- * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event
- * on all DOM nodes being removed. This can be used to clean up any 3rd party bindings to the DOM
- * element before it is removed.
- *
- * ### Methods
- * - `controller(name)` - retrieves the controller of the current element or its parent. By default
- * retrieves controller associated with the `ngController` directive. If `name` is provided as
- * camelCase directive name, then the controller for this directive will be retrieved (e.g.
- * `'ngModel'`).
- * - `injector()` - retrieves the injector of the current element or its parent.
- * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current
- * element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to
- * be enabled.
- * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the
- * current element. This getter should be used only on elements that contain a directive which starts a new isolate
- * scope. Calling `scope()` on this element always returns the original non-isolate scope.
- * Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.
- * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top
- * parent element is reached.
- *
- * @knownIssue You cannot spy on `angular.element` if you are using Jasmine version 1.x. See
- * https://github.com/angular/angular.js/issues/14251 for more information.
- *
- * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.
- * @returns {Object} jQuery object.
- */
-
-JQLite.expando = 'ng339';
-
-var jqCache = JQLite.cache = {},
- jqId = 1,
- addEventListenerFn = function(element, type, fn) {
- element.addEventListener(type, fn, false);
- },
- removeEventListenerFn = function(element, type, fn) {
- element.removeEventListener(type, fn, false);
- };
-
-/*
- * !!! This is an undocumented "private" function !!!
- */
-JQLite._data = function(node) {
- //jQuery always returns an object on cache miss
- return this.cache[node[this.expando]] || {};
-};
-
-function jqNextId() { return ++jqId; }
-
-
-var SPECIAL_CHARS_REGEXP = /([:\-_]+(.))/g;
-var MOZ_HACK_REGEXP = /^moz([A-Z])/;
-var MOUSE_EVENT_MAP = { mouseleave: 'mouseout', mouseenter: 'mouseover' };
-var jqLiteMinErr = minErr('jqLite');
-
-/**
- * Converts snake_case to camelCase.
- * Also there is special case for Moz prefix starting with upper case letter.
- * @param name Name to normalize
- */
-function camelCase(name) {
- return name.
- replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
- return offset ? letter.toUpperCase() : letter;
- }).
- replace(MOZ_HACK_REGEXP, 'Moz$1');
-}
-
-var SINGLE_TAG_REGEXP = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/;
-var HTML_REGEXP = /<|&#?\w+;/;
-var TAG_NAME_REGEXP = /<([\w:-]+)/;
-var XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi;
-
-var wrapMap = {
- 'option': [1, '<select multiple="multiple">', '</select>'],
-
- 'thead': [1, '<table>', '</table>'],
- 'col': [2, '<table><colgroup>', '</colgroup></table>'],
- 'tr': [2, '<table><tbody>', '</tbody></table>'],
- 'td': [3, '<table><tbody><tr>', '</tr></tbody></table>'],
- '_default': [0, '', '']
-};
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-
-function jqLiteIsTextNode(html) {
- return !HTML_REGEXP.test(html);
-}
-
-function jqLiteAcceptsData(node) {
- // The window object can accept data but has no nodeType
- // Otherwise we are only interested in elements (1) and documents (9)
- var nodeType = node.nodeType;
- return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;
-}
-
-function jqLiteHasData(node) {
- for (var key in jqCache[node.ng339]) {
- return true;
- }
- return false;
-}
-
-function jqLiteCleanData(nodes) {
- for (var i = 0, ii = nodes.length; i < ii; i++) {
- jqLiteRemoveData(nodes[i]);
- }
-}
-
-function jqLiteBuildFragment(html, context) {
- var tmp, tag, wrap,
- fragment = context.createDocumentFragment(),
- nodes = [], i;
-
- if (jqLiteIsTextNode(html)) {
- // Convert non-html into a text node
- nodes.push(context.createTextNode(html));
- } else {
- // Convert html into DOM nodes
- tmp = fragment.appendChild(context.createElement('div'));
- tag = (TAG_NAME_REGEXP.exec(html) || ['', ''])[1].toLowerCase();
- wrap = wrapMap[tag] || wrapMap._default;
- tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, '<$1></$2>') + wrap[2];
-
- // Descend through wrappers to the right content
- i = wrap[0];
- while (i--) {
- tmp = tmp.lastChild;
- }
-
- nodes = concat(nodes, tmp.childNodes);
-
- tmp = fragment.firstChild;
- tmp.textContent = '';
- }
-
- // Remove wrapper from fragment
- fragment.textContent = '';
- fragment.innerHTML = ''; // Clear inner HTML
- forEach(nodes, function(node) {
- fragment.appendChild(node);
- });
-
- return fragment;
-}
-
-function jqLiteParseHTML(html, context) {
- context = context || window.document;
- var parsed;
-
- if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {
- return [context.createElement(parsed[1])];
- }
-
- if ((parsed = jqLiteBuildFragment(html, context))) {
- return parsed.childNodes;
- }
-
- return [];
-}
-
-function jqLiteWrapNode(node, wrapper) {
- var parent = node.parentNode;
-
- if (parent) {
- parent.replaceChild(wrapper, node);
- }
-
- wrapper.appendChild(node);
-}
-
-
-// IE9-11 has no method "contains" in SVG element and in Node.prototype. Bug #10259.
-var jqLiteContains = window.Node.prototype.contains || /** @this */ function(arg) {
- // eslint-disable-next-line no-bitwise
- return !!(this.compareDocumentPosition(arg) & 16);
-};
-
-/////////////////////////////////////////////
-function JQLite(element) {
- if (element instanceof JQLite) {
- return element;
- }
-
- var argIsString;
-
- if (isString(element)) {
- element = trim(element);
- argIsString = true;
- }
- if (!(this instanceof JQLite)) {
- if (argIsString && element.charAt(0) !== '<') {
- throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
- }
- return new JQLite(element);
- }
-
- if (argIsString) {
- jqLiteAddNodes(this, jqLiteParseHTML(element));
- } else {
- jqLiteAddNodes(this, element);
- }
-}
-
-function jqLiteClone(element) {
- return element.cloneNode(true);
-}
-
-function jqLiteDealoc(element, onlyDescendants) {
- if (!onlyDescendants) jqLiteRemoveData(element);
-
- if (element.querySelectorAll) {
- var descendants = element.querySelectorAll('*');
- for (var i = 0, l = descendants.length; i < l; i++) {
- jqLiteRemoveData(descendants[i]);
- }
- }
-}
-
-function jqLiteOff(element, type, fn, unsupported) {
- if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');
-
- var expandoStore = jqLiteExpandoStore(element);
- var events = expandoStore && expandoStore.events;
- var handle = expandoStore && expandoStore.handle;
-
- if (!handle) return; //no listeners registered
-
- if (!type) {
- for (type in events) {
- if (type !== '$destroy') {
- removeEventListenerFn(element, type, handle);
- }
- delete events[type];
- }
- } else {
-
- var removeHandler = function(type) {
- var listenerFns = events[type];
- if (isDefined(fn)) {
- arrayRemove(listenerFns || [], fn);
- }
- if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {
- removeEventListenerFn(element, type, handle);
- delete events[type];
- }
- };
-
- forEach(type.split(' '), function(type) {
- removeHandler(type);
- if (MOUSE_EVENT_MAP[type]) {
- removeHandler(MOUSE_EVENT_MAP[type]);
- }
- });
- }
-}
-
-function jqLiteRemoveData(element, name) {
- var expandoId = element.ng339;
- var expandoStore = expandoId && jqCache[expandoId];
-
- if (expandoStore) {
- if (name) {
- delete expandoStore.data[name];
- return;
- }
-
- if (expandoStore.handle) {
- if (expandoStore.events.$destroy) {
- expandoStore.handle({}, '$destroy');
- }
- jqLiteOff(element);
- }
- delete jqCache[expandoId];
- element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
- }
-}
-
-
-function jqLiteExpandoStore(element, createIfNecessary) {
- var expandoId = element.ng339,
- expandoStore = expandoId && jqCache[expandoId];
-
- if (createIfNecessary && !expandoStore) {
- element.ng339 = expandoId = jqNextId();
- expandoStore = jqCache[expandoId] = {events: {}, data: {}, handle: undefined};
- }
-
- return expandoStore;
-}
-
-
-function jqLiteData(element, key, value) {
- if (jqLiteAcceptsData(element)) {
-
- var isSimpleSetter = isDefined(value);
- var isSimpleGetter = !isSimpleSetter && key && !isObject(key);
- var massGetter = !key;
- var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter);
- var data = expandoStore && expandoStore.data;
-
- if (isSimpleSetter) { // data('key', value)
- data[key] = value;
- } else {
- if (massGetter) { // data()
- return data;
- } else {
- if (isSimpleGetter) { // data('key')
- // don't force creation of expandoStore if it doesn't exist yet
- return data && data[key];
- } else { // mass-setter: data({key1: val1, key2: val2})
- extend(data, key);
- }
- }
- }
- }
-}
-
-function jqLiteHasClass(element, selector) {
- if (!element.getAttribute) return false;
- return ((' ' + (element.getAttribute('class') || '') + ' ').replace(/[\n\t]/g, ' ').
- indexOf(' ' + selector + ' ') > -1);
-}
-
-function jqLiteRemoveClass(element, cssClasses) {
- if (cssClasses && element.setAttribute) {
- forEach(cssClasses.split(' '), function(cssClass) {
- element.setAttribute('class', trim(
- (' ' + (element.getAttribute('class') || '') + ' ')
- .replace(/[\n\t]/g, ' ')
- .replace(' ' + trim(cssClass) + ' ', ' '))
- );
- });
- }
-}
-
-function jqLiteAddClass(element, cssClasses) {
- if (cssClasses && element.setAttribute) {
- var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ')
- .replace(/[\n\t]/g, ' ');
-
- forEach(cssClasses.split(' '), function(cssClass) {
- cssClass = trim(cssClass);
- if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {
- existingClasses += cssClass + ' ';
- }
- });
-
- element.setAttribute('class', trim(existingClasses));
- }
-}
-
-
-function jqLiteAddNodes(root, elements) {
- // THIS CODE IS VERY HOT. Don't make changes without benchmarking.
-
- if (elements) {
-
- // if a Node (the most common case)
- if (elements.nodeType) {
- root[root.length++] = elements;
- } else {
- var length = elements.length;
-
- // if an Array or NodeList and not a Window
- if (typeof length === 'number' && elements.window !== elements) {
- if (length) {
- for (var i = 0; i < length; i++) {
- root[root.length++] = elements[i];
- }
- }
- } else {
- root[root.length++] = elements;
- }
- }
- }
-}
-
-
-function jqLiteController(element, name) {
- return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller');
-}
-
-function jqLiteInheritedData(element, name, value) {
- // if element is the document object work with the html element instead
- // this makes $(document).scope() possible
- if (element.nodeType === NODE_TYPE_DOCUMENT) {
- element = element.documentElement;
- }
- var names = isArray(name) ? name : [name];
-
- while (element) {
- for (var i = 0, ii = names.length; i < ii; i++) {
- if (isDefined(value = jqLite.data(element, names[i]))) return value;
- }
-
- // If dealing with a document fragment node with a host element, and no parent, use the host
- // element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM
- // to lookup parent controllers.
- element = element.parentNode || (element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host);
- }
-}
-
-function jqLiteEmpty(element) {
- jqLiteDealoc(element, true);
- while (element.firstChild) {
- element.removeChild(element.firstChild);
- }
-}
-
-function jqLiteRemove(element, keepData) {
- if (!keepData) jqLiteDealoc(element);
- var parent = element.parentNode;
- if (parent) parent.removeChild(element);
-}
-
-
-function jqLiteDocumentLoaded(action, win) {
- win = win || window;
- if (win.document.readyState === 'complete') {
- // Force the action to be run async for consistent behavior
- // from the action's point of view
- // i.e. it will definitely not be in a $apply
- win.setTimeout(action);
- } else {
- // No need to unbind this handler as load is only ever called once
- jqLite(win).on('load', action);
- }
-}
-
-//////////////////////////////////////////
-// Functions which are declared directly.
-//////////////////////////////////////////
-var JQLitePrototype = JQLite.prototype = {
- ready: function(fn) {
- var fired = false;
-
- function trigger() {
- if (fired) return;
- fired = true;
- fn();
- }
-
- // check if document is already loaded
- if (window.document.readyState === 'complete') {
- window.setTimeout(trigger);
- } else {
- this.on('DOMContentLoaded', trigger); // works for modern browsers and IE9
- // we can not use jqLite since we are not done loading and jQuery could be loaded later.
- // eslint-disable-next-line new-cap
- JQLite(window).on('load', trigger); // fallback to window.onload for others
- }
- },
- toString: function() {
- var value = [];
- forEach(this, function(e) { value.push('' + e);});
- return '[' + value.join(', ') + ']';
- },
-
- eq: function(index) {
- return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]);
- },
-
- length: 0,
- push: push,
- sort: [].sort,
- splice: [].splice
-};
-
-//////////////////////////////////////////
-// Functions iterating getter/setters.
-// these functions return self on setter and
-// value on get.
-//////////////////////////////////////////
-var BOOLEAN_ATTR = {};
-forEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) {
- BOOLEAN_ATTR[lowercase(value)] = value;
-});
-var BOOLEAN_ELEMENTS = {};
-forEach('input,select,option,textarea,button,form,details'.split(','), function(value) {
- BOOLEAN_ELEMENTS[value] = true;
-});
-var ALIASED_ATTR = {
- 'ngMinlength': 'minlength',
- 'ngMaxlength': 'maxlength',
- 'ngMin': 'min',
- 'ngMax': 'max',
- 'ngPattern': 'pattern'
-};
-
-function getBooleanAttrName(element, name) {
- // check dom last since we will most likely fail on name
- var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
-
- // booleanAttr is here twice to minimize DOM access
- return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
-}
-
-function getAliasedAttrName(name) {
- return ALIASED_ATTR[name];
-}
-
-forEach({
- data: jqLiteData,
- removeData: jqLiteRemoveData,
- hasData: jqLiteHasData,
- cleanData: jqLiteCleanData
-}, function(fn, name) {
- JQLite[name] = fn;
-});
-
-forEach({
- data: jqLiteData,
- inheritedData: jqLiteInheritedData,
-
- scope: function(element) {
- // Can't use jqLiteData here directly so we stay compatible with jQuery!
- return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);
- },
-
- isolateScope: function(element) {
- // Can't use jqLiteData here directly so we stay compatible with jQuery!
- return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate');
- },
-
- controller: jqLiteController,
-
- injector: function(element) {
- return jqLiteInheritedData(element, '$injector');
- },
-
- removeAttr: function(element, name) {
- element.removeAttribute(name);
- },
-
- hasClass: jqLiteHasClass,
-
- css: function(element, name, value) {
- name = camelCase(name);
-
- if (isDefined(value)) {
- element.style[name] = value;
- } else {
- return element.style[name];
- }
- },
-
- attr: function(element, name, value) {
- var nodeType = element.nodeType;
- if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT) {
- return;
- }
- var lowercasedName = lowercase(name);
- if (BOOLEAN_ATTR[lowercasedName]) {
- if (isDefined(value)) {
- if (value) {
- element[name] = true;
- element.setAttribute(name, lowercasedName);
- } else {
- element[name] = false;
- element.removeAttribute(lowercasedName);
- }
- } else {
- return (element[name] ||
- (element.attributes.getNamedItem(name) || noop).specified)
- ? lowercasedName
- : undefined;
- }
- } else if (isDefined(value)) {
- element.setAttribute(name, value);
- } else if (element.getAttribute) {
- // the extra argument "2" is to get the right thing for a.href in IE, see jQuery code
- // some elements (e.g. Document) don't have get attribute, so return undefined
- var ret = element.getAttribute(name, 2);
- // normalize non-existing attributes to undefined (as jQuery)
- return ret === null ? undefined : ret;
- }
- },
-
- prop: function(element, name, value) {
- if (isDefined(value)) {
- element[name] = value;
- } else {
- return element[name];
- }
- },
-
- text: (function() {
- getText.$dv = '';
- return getText;
-
- function getText(element, value) {
- if (isUndefined(value)) {
- var nodeType = element.nodeType;
- return (nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT) ? element.textContent : '';
- }
- element.textContent = value;
- }
- })(),
-
- val: function(element, value) {
- if (isUndefined(value)) {
- if (element.multiple && nodeName_(element) === 'select') {
- var result = [];
- forEach(element.options, function(option) {
- if (option.selected) {
- result.push(option.value || option.text);
- }
- });
- return result.length === 0 ? null : result;
- }
- return element.value;
- }
- element.value = value;
- },
-
- html: function(element, value) {
- if (isUndefined(value)) {
- return element.innerHTML;
- }
- jqLiteDealoc(element, true);
- element.innerHTML = value;
- },
-
- empty: jqLiteEmpty
-}, function(fn, name) {
- /**
- * Properties: writes return selection, reads return first value
- */
- JQLite.prototype[name] = function(arg1, arg2) {
- var i, key;
- var nodeCount = this.length;
-
- // jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it
- // in a way that survives minification.
- // jqLiteEmpty takes no arguments but is a setter.
- if (fn !== jqLiteEmpty &&
- (isUndefined((fn.length === 2 && (fn !== jqLiteHasClass && fn !== jqLiteController)) ? arg1 : arg2))) {
- if (isObject(arg1)) {
-
- // we are a write, but the object properties are the key/values
- for (i = 0; i < nodeCount; i++) {
- if (fn === jqLiteData) {
- // data() takes the whole object in jQuery
- fn(this[i], arg1);
- } else {
- for (key in arg1) {
- fn(this[i], key, arg1[key]);
- }
- }
- }
- // return self for chaining
- return this;
- } else {
- // we are a read, so read the first child.
- // TODO: do we still need this?
- var value = fn.$dv;
- // Only if we have $dv do we iterate over all, otherwise it is just the first element.
- var jj = (isUndefined(value)) ? Math.min(nodeCount, 1) : nodeCount;
- for (var j = 0; j < jj; j++) {
- var nodeValue = fn(this[j], arg1, arg2);
- value = value ? value + nodeValue : nodeValue;
- }
- return value;
- }
- } else {
- // we are a write, so apply to all children
- for (i = 0; i < nodeCount; i++) {
- fn(this[i], arg1, arg2);
- }
- // return self for chaining
- return this;
- }
- };
-});
-
-function createEventHandler(element, events) {
- var eventHandler = function(event, type) {
- // jQuery specific api
- event.isDefaultPrevented = function() {
- return event.defaultPrevented;
- };
-
- var eventFns = events[type || event.type];
- var eventFnsLength = eventFns ? eventFns.length : 0;
-
- if (!eventFnsLength) return;
-
- if (isUndefined(event.immediatePropagationStopped)) {
- var originalStopImmediatePropagation = event.stopImmediatePropagation;
- event.stopImmediatePropagation = function() {
- event.immediatePropagationStopped = true;
-
- if (event.stopPropagation) {
- event.stopPropagation();
- }
-
- if (originalStopImmediatePropagation) {
- originalStopImmediatePropagation.call(event);
- }
- };
- }
-
- event.isImmediatePropagationStopped = function() {
- return event.immediatePropagationStopped === true;
- };
-
- // Some events have special handlers that wrap the real handler
- var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper;
-
- // Copy event handlers in case event handlers array is modified during execution.
- if ((eventFnsLength > 1)) {
- eventFns = shallowCopy(eventFns);
- }
-
- for (var i = 0; i < eventFnsLength; i++) {
- if (!event.isImmediatePropagationStopped()) {
- handlerWrapper(element, event, eventFns[i]);
- }
- }
- };
-
- // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all
- // events on `element`
- eventHandler.elem = element;
- return eventHandler;
-}
-
-function defaultHandlerWrapper(element, event, handler) {
- handler.call(element, event);
-}
-
-function specialMouseHandlerWrapper(target, event, handler) {
- // Refer to jQuery's implementation of mouseenter & mouseleave
- // Read about mouseenter and mouseleave:
- // http://www.quirksmode.org/js/events_mouse.html#link8
- var related = event.relatedTarget;
- // For mousenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if (!related || (related !== target && !jqLiteContains.call(target, related))) {
- handler.call(target, event);
- }
-}
-
-//////////////////////////////////////////
-// Functions iterating traversal.
-// These functions chain results into a single
-// selector.
-//////////////////////////////////////////
-forEach({
- removeData: jqLiteRemoveData,
-
- on: function jqLiteOn(element, type, fn, unsupported) {
- if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');
-
- // Do not add event handlers to non-elements because they will not be cleaned up.
- if (!jqLiteAcceptsData(element)) {
- return;
- }
-
- var expandoStore = jqLiteExpandoStore(element, true);
- var events = expandoStore.events;
- var handle = expandoStore.handle;
-
- if (!handle) {
- handle = expandoStore.handle = createEventHandler(element, events);
- }
-
- // http://jsperf.com/string-indexof-vs-split
- var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type];
- var i = types.length;
-
- var addHandler = function(type, specialHandlerWrapper, noEventListener) {
- var eventFns = events[type];
-
- if (!eventFns) {
- eventFns = events[type] = [];
- eventFns.specialHandlerWrapper = specialHandlerWrapper;
- if (type !== '$destroy' && !noEventListener) {
- addEventListenerFn(element, type, handle);
- }
- }
-
- eventFns.push(fn);
- };
-
- while (i--) {
- type = types[i];
- if (MOUSE_EVENT_MAP[type]) {
- addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper);
- addHandler(type, undefined, true);
- } else {
- addHandler(type);
- }
- }
- },
-
- off: jqLiteOff,
-
- one: function(element, type, fn) {
- element = jqLite(element);
-
- //add the listener twice so that when it is called
- //you can remove the original function and still be
- //able to call element.off(ev, fn) normally
- element.on(type, function onFn() {
- element.off(type, fn);
- element.off(type, onFn);
- });
- element.on(type, fn);
- },
-
- replaceWith: function(element, replaceNode) {
- var index, parent = element.parentNode;
- jqLiteDealoc(element);
- forEach(new JQLite(replaceNode), function(node) {
- if (index) {
- parent.insertBefore(node, index.nextSibling);
- } else {
- parent.replaceChild(node, element);
- }
- index = node;
- });
- },
-
- children: function(element) {
- var children = [];
- forEach(element.childNodes, function(element) {
- if (element.nodeType === NODE_TYPE_ELEMENT) {
- children.push(element);
- }
- });
- return children;
- },
-
- contents: function(element) {
- return element.contentDocument || element.childNodes || [];
- },
-
- append: function(element, node) {
- var nodeType = element.nodeType;
- if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return;
-
- node = new JQLite(node);
-
- for (var i = 0, ii = node.length; i < ii; i++) {
- var child = node[i];
- element.appendChild(child);
- }
- },
-
- prepend: function(element, node) {
- if (element.nodeType === NODE_TYPE_ELEMENT) {
- var index = element.firstChild;
- forEach(new JQLite(node), function(child) {
- element.insertBefore(child, index);
- });
- }
- },
-
- wrap: function(element, wrapNode) {
- jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]);
- },
-
- remove: jqLiteRemove,
-
- detach: function(element) {
- jqLiteRemove(element, true);
- },
-
- after: function(element, newElement) {
- var index = element, parent = element.parentNode;
-
- if (parent) {
- newElement = new JQLite(newElement);
-
- for (var i = 0, ii = newElement.length; i < ii; i++) {
- var node = newElement[i];
- parent.insertBefore(node, index.nextSibling);
- index = node;
- }
- }
- },
-
- addClass: jqLiteAddClass,
- removeClass: jqLiteRemoveClass,
-
- toggleClass: function(element, selector, condition) {
- if (selector) {
- forEach(selector.split(' '), function(className) {
- var classCondition = condition;
- if (isUndefined(classCondition)) {
- classCondition = !jqLiteHasClass(element, className);
- }
- (classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className);
- });
- }
- },
-
- parent: function(element) {
- var parent = element.parentNode;
- return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null;
- },
-
- next: function(element) {
- return element.nextElementSibling;
- },
-
- find: function(element, selector) {
- if (element.getElementsByTagName) {
- return element.getElementsByTagName(selector);
- } else {
- return [];
- }
- },
-
- clone: jqLiteClone,
-
- triggerHandler: function(element, event, extraParameters) {
-
- var dummyEvent, eventFnsCopy, handlerArgs;
- var eventName = event.type || event;
- var expandoStore = jqLiteExpandoStore(element);
- var events = expandoStore && expandoStore.events;
- var eventFns = events && events[eventName];
-
- if (eventFns) {
- // Create a dummy event to pass to the handlers
- dummyEvent = {
- preventDefault: function() { this.defaultPrevented = true; },
- isDefaultPrevented: function() { return this.defaultPrevented === true; },
- stopImmediatePropagation: function() { this.immediatePropagationStopped = true; },
- isImmediatePropagationStopped: function() { return this.immediatePropagationStopped === true; },
- stopPropagation: noop,
- type: eventName,
- target: element
- };
-
- // If a custom event was provided then extend our dummy event with it
- if (event.type) {
- dummyEvent = extend(dummyEvent, event);
- }
-
- // Copy event handlers in case event handlers array is modified during execution.
- eventFnsCopy = shallowCopy(eventFns);
- handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent];
-
- forEach(eventFnsCopy, function(fn) {
- if (!dummyEvent.isImmediatePropagationStopped()) {
- fn.apply(element, handlerArgs);
- }
- });
- }
- }
-}, function(fn, name) {
- /**
- * chaining functions
- */
- JQLite.prototype[name] = function(arg1, arg2, arg3) {
- var value;
-
- for (var i = 0, ii = this.length; i < ii; i++) {
- if (isUndefined(value)) {
- value = fn(this[i], arg1, arg2, arg3);
- if (isDefined(value)) {
- // any function which returns a value needs to be wrapped
- value = jqLite(value);
- }
- } else {
- jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3));
- }
- }
- return isDefined(value) ? value : this;
- };
-});
-
-// bind legacy bind/unbind to on/off
-JQLite.prototype.bind = JQLite.prototype.on;
-JQLite.prototype.unbind = JQLite.prototype.off;
-
-
-// Provider for private $$jqLite service
-/** @this */
-function $$jqLiteProvider() {
- this.$get = function $$jqLite() {
- return extend(JQLite, {
- hasClass: function(node, classes) {
- if (node.attr) node = node[0];
- return jqLiteHasClass(node, classes);
- },
- addClass: function(node, classes) {
- if (node.attr) node = node[0];
- return jqLiteAddClass(node, classes);
- },
- removeClass: function(node, classes) {
- if (node.attr) node = node[0];
- return jqLiteRemoveClass(node, classes);
- }
- });
- };
-}
-
-/**
- * Computes a hash of an 'obj'.
- * Hash of a:
- * string is string
- * number is number as string
- * object is either result of calling $$hashKey function on the object or uniquely generated id,
- * that is also assigned to the $$hashKey property of the object.
- *
- * @param obj
- * @returns {string} hash string such that the same input will have the same hash string.
- * The resulting string key is in 'type:hashKey' format.
- */
-function hashKey(obj, nextUidFn) {
- var key = obj && obj.$$hashKey;
-
- if (key) {
- if (typeof key === 'function') {
- key = obj.$$hashKey();
- }
- return key;
- }
-
- var objType = typeof obj;
- if (objType === 'function' || (objType === 'object' && obj !== null)) {
- key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)();
- } else {
- key = objType + ':' + obj;
- }
-
- return key;
-}
-
-/**
- * HashMap which can use objects as keys
- */
-function HashMap(array, isolatedUid) {
- if (isolatedUid) {
- var uid = 0;
- this.nextUid = function() {
- return ++uid;
- };
- }
- forEach(array, this.put, this);
-}
-HashMap.prototype = {
- /**
- * Store key value pair
- * @param key key to store can be any type
- * @param value value to store can be any type
- */
- put: function(key, value) {
- this[hashKey(key, this.nextUid)] = value;
- },
-
- /**
- * @param key
- * @returns {Object} the value for the key
- */
- get: function(key) {
- return this[hashKey(key, this.nextUid)];
- },
-
- /**
- * Remove the key/value pair
- * @param key
- */
- remove: function(key) {
- var value = this[key = hashKey(key, this.nextUid)];
- delete this[key];
- return value;
- }
-};
-
-var $$HashMapProvider = [/** @this */function() {
- this.$get = [function() {
- return HashMap;
- }];
-}];
-
-/**
- * @ngdoc function
- * @module ng
- * @name angular.injector
- * @kind function
- *
- * @description
- * Creates an injector object that can be used for retrieving services as well as for
- * dependency injection (see {@link guide/di dependency injection}).
- *
- * @param {Array.<string|Function>} modules A list of module functions or their aliases. See
- * {@link angular.module}. The `ng` module must be explicitly added.
- * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which
- * disallows argument name annotation inference.
- * @returns {injector} Injector object. See {@link auto.$injector $injector}.
- *
- * @example
- * Typical usage
- * ```js
- * // create an injector
- * var $injector = angular.injector(['ng']);
- *
- * // use the injector to kick off your application
- * // use the type inference to auto inject arguments, or use implicit injection
- * $injector.invoke(function($rootScope, $compile, $document) {
- * $compile($document)($rootScope);
- * $rootScope.$digest();
- * });
- * ```
- *
- * Sometimes you want to get access to the injector of a currently running Angular app
- * from outside Angular. Perhaps, you want to inject and compile some markup after the
- * application has been bootstrapped. You can do this using the extra `injector()` added
- * to JQuery/jqLite elements. See {@link angular.element}.
- *
- * *This is fairly rare but could be the case if a third party library is injecting the
- * markup.*
- *
- * In the following example a new block of HTML containing a `ng-controller`
- * directive is added to the end of the document body by JQuery. We then compile and link
- * it into the current AngularJS scope.
- *
- * ```js
- * var $div = $('<div ng-controller="MyCtrl">{{content.label}}</div>');
- * $(document.body).append($div);
- *
- * angular.element(document).injector().invoke(function($compile) {
- * var scope = angular.element($div).scope();
- * $compile($div)(scope);
- * });
- * ```
- */
-
-
-/**
- * @ngdoc module
- * @name auto
- * @installation
- * @description
- *
- * Implicit module which gets automatically added to each {@link auto.$injector $injector}.
- */
-
-var ARROW_ARG = /^([^(]+?)=>/;
-var FN_ARGS = /^[^(]*\(\s*([^)]*)\)/m;
-var FN_ARG_SPLIT = /,/;
-var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/;
-var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
-var $injectorMinErr = minErr('$injector');
-
-function stringifyFn(fn) {
- // Support: Chrome 50-51 only
- // Creating a new string by adding `' '` at the end, to hack around some bug in Chrome v50/51
- // (See https://github.com/angular/angular.js/issues/14487.)
- // TODO (gkalpak): Remove workaround when Chrome v52 is released
- return Function.prototype.toString.call(fn) + ' ';
-}
-
-function extractArgs(fn) {
- var fnText = stringifyFn(fn).replace(STRIP_COMMENTS, ''),
- args = fnText.match(ARROW_ARG) || fnText.match(FN_ARGS);
- return args;
-}
-
-function anonFn(fn) {
- // For anonymous functions, showing at the very least the function signature can help in
- // debugging.
- var args = extractArgs(fn);
- if (args) {
- return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
- }
- return 'fn';
-}
-
-function annotate(fn, strictDi, name) {
- var $inject,
- argDecl,
- last;
-
- if (typeof fn === 'function') {
- if (!($inject = fn.$inject)) {
- $inject = [];
- if (fn.length) {
- if (strictDi) {
- if (!isString(name) || !name) {
- name = fn.name || anonFn(fn);
- }
- throw $injectorMinErr('strictdi',
- '{0} is not using explicit annotation and cannot be invoked in strict mode', name);
- }
- argDecl = extractArgs(fn);
- forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {
- arg.replace(FN_ARG, function(all, underscore, name) {
- $inject.push(name);
- });
- });
- }
- fn.$inject = $inject;
- }
- } else if (isArray(fn)) {
- last = fn.length - 1;
- assertArgFn(fn[last], 'fn');
- $inject = fn.slice(0, last);
- } else {
- assertArgFn(fn, 'fn', true);
- }
- return $inject;
-}
-
-///////////////////////////////////////
-
-/**
- * @ngdoc service
- * @name $injector
- *
- * @description
- *
- * `$injector` is used to retrieve object instances as defined by
- * {@link auto.$provide provider}, instantiate types, invoke methods,
- * and load modules.
- *
- * The following always holds true:
- *
- * ```js
- * var $injector = angular.injector();
- * expect($injector.get('$injector')).toBe($injector);
- * expect($injector.invoke(function($injector) {
- * return $injector;
- * })).toBe($injector);
- * ```
- *
- * # Injection Function Annotation
- *
- * JavaScript does not have annotations, and annotations are needed for dependency injection. The
- * following are all valid ways of annotating function with injection arguments and are equivalent.
- *
- * ```js
- * // inferred (only works if code not minified/obfuscated)
- * $injector.invoke(function(serviceA){});
- *
- * // annotated
- * function explicit(serviceA) {};
- * explicit.$inject = ['serviceA'];
- * $injector.invoke(explicit);
- *
- * // inline
- * $injector.invoke(['serviceA', function(serviceA){}]);
- * ```
- *
- * ## Inference
- *
- * In JavaScript calling `toString()` on a function returns the function definition. The definition
- * can then be parsed and the function arguments can be extracted. This method of discovering
- * annotations is disallowed when the injector is in strict mode.
- * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the
- * argument names.
- *
- * ## `$inject` Annotation
- * By adding an `$inject` property onto a function the injection parameters can be specified.
- *
- * ## Inline
- * As an array of injection names, where the last item in the array is the function to call.
- */
-
-/**
- * @ngdoc method
- * @name $injector#get
- *
- * @description
- * Return an instance of the service.
- *
- * @param {string} name The name of the instance to retrieve.
- * @param {string=} caller An optional string to provide the origin of the function call for error messages.
- * @return {*} The instance.
- */
-
-/**
- * @ngdoc method
- * @name $injector#invoke
- *
- * @description
- * Invoke the method and supply the method arguments from the `$injector`.
- *
- * @param {Function|Array.<string|Function>} fn The injectable function to invoke. Function parameters are
- * injected according to the {@link guide/di $inject Annotation} rules.
- * @param {Object=} self The `this` for the invoked method.
- * @param {Object=} locals Optional object. If preset then any argument names are read from this
- * object first, before the `$injector` is consulted.
- * @returns {*} the value returned by the invoked `fn` function.
- */
-
-/**
- * @ngdoc method
- * @name $injector#has
- *
- * @description
- * Allows the user to query if the particular service exists.
- *
- * @param {string} name Name of the service to query.
- * @returns {boolean} `true` if injector has given service.
- */
-
-/**
- * @ngdoc method
- * @name $injector#instantiate
- * @description
- * Create a new instance of JS type. The method takes a constructor function, invokes the new
- * operator, and supplies all of the arguments to the constructor function as specified by the
- * constructor annotation.
- *
- * @param {Function} Type Annotated constructor function.
- * @param {Object=} locals Optional object. If preset then any argument names are read from this
- * object first, before the `$injector` is consulted.
- * @returns {Object} new instance of `Type`.
- */
-
-/**
- * @ngdoc method
- * @name $injector#annotate
- *
- * @description
- * Returns an array of service names which the function is requesting for injection. This API is
- * used by the injector to determine which services need to be injected into the function when the
- * function is invoked. There are three ways in which the function can be annotated with the needed
- * dependencies.
- *
- * # Argument names
- *
- * The simplest form is to extract the dependencies from the arguments of the function. This is done
- * by converting the function into a string using `toString()` method and extracting the argument
- * names.
- * ```js
- * // Given
- * function MyController($scope, $route) {
- * // ...
- * }
- *
- * // Then
- * expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
- * ```
- *
- * You can disallow this method by using strict injection mode.
- *
- * This method does not work with code minification / obfuscation. For this reason the following
- * annotation strategies are supported.
- *
- * # The `$inject` property
- *
- * If a function has an `$inject` property and its value is an array of strings, then the strings
- * represent names of services to be injected into the function.
- * ```js
- * // Given
- * var MyController = function(obfuscatedScope, obfuscatedRoute) {
- * // ...
- * }
- * // Define function dependencies
- * MyController['$inject'] = ['$scope', '$route'];
- *
- * // Then
- * expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
- * ```
- *
- * # The array notation
- *
- * It is often desirable to inline Injected functions and that's when setting the `$inject` property
- * is very inconvenient. In these situations using the array notation to specify the dependencies in
- * a way that survives minification is a better choice:
- *
- * ```js
- * // We wish to write this (not minification / obfuscation safe)
- * injector.invoke(function($compile, $rootScope) {
- * // ...
- * });
- *
- * // We are forced to write break inlining
- * var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {
- * // ...
- * };
- * tmpFn.$inject = ['$compile', '$rootScope'];
- * injector.invoke(tmpFn);
- *
- * // To better support inline function the inline annotation is supported
- * injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {
- * // ...
- * }]);
- *
- * // Therefore
- * expect(injector.annotate(
- * ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])
- * ).toEqual(['$compile', '$rootScope']);
- * ```
- *
- * @param {Function|Array.<string|Function>} fn Function for which dependent service names need to
- * be retrieved as described above.
- *
- * @param {boolean=} [strictDi=false] Disallow argument name annotation inference.
- *
- * @returns {Array.<string>} The names of the services which the function requires.
- */
-
-
-
-/**
- * @ngdoc service
- * @name $provide
- *
- * @description
- *
- * The {@link auto.$provide $provide} service has a number of methods for registering components
- * with the {@link auto.$injector $injector}. Many of these functions are also exposed on
- * {@link angular.Module}.
- *
- * An Angular **service** is a singleton object created by a **service factory**. These **service
- * factories** are functions which, in turn, are created by a **service provider**.
- * The **service providers** are constructor functions. When instantiated they must contain a
- * property called `$get`, which holds the **service factory** function.
- *
- * When you request a service, the {@link auto.$injector $injector} is responsible for finding the
- * correct **service provider**, instantiating it and then calling its `$get` **service factory**
- * function to get the instance of the **service**.
- *
- * Often services have no configuration options and there is no need to add methods to the service
- * provider. The provider will be no more than a constructor function with a `$get` property. For
- * these cases the {@link auto.$provide $provide} service has additional helper methods to register
- * services without specifying a provider.
- *
- * * {@link auto.$provide#provider provider(name, provider)} - registers a **service provider** with the
- * {@link auto.$injector $injector}
- * * {@link auto.$provide#constant constant(name, obj)} - registers a value/object that can be accessed by
- * providers and services.
- * * {@link auto.$provide#value value(name, obj)} - registers a value/object that can only be accessed by
- * services, not providers.
- * * {@link auto.$provide#factory factory(name, fn)} - registers a service **factory function**
- * that will be wrapped in a **service provider** object, whose `$get` property will contain the
- * given factory function.
- * * {@link auto.$provide#service service(name, Fn)} - registers a **constructor function**
- * that will be wrapped in a **service provider** object, whose `$get` property will instantiate
- * a new object using the given constructor function.
- * * {@link auto.$provide#decorator decorator(name, decorFn)} - registers a **decorator function** that
- * will be able to modify or replace the implementation of another service.
- *
- * See the individual methods for more information and examples.
- */
-
-/**
- * @ngdoc method
- * @name $provide#provider
- * @description
- *
- * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions
- * are constructor functions, whose instances are responsible for "providing" a factory for a
- * service.
- *
- * Service provider names start with the name of the service they provide followed by `Provider`.
- * For example, the {@link ng.$log $log} service has a provider called
- * {@link ng.$logProvider $logProvider}.
- *
- * Service provider objects can have additional methods which allow configuration of the provider
- * and its service. Importantly, you can configure what kind of service is created by the `$get`
- * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a
- * method {@link ng.$logProvider#debugEnabled debugEnabled}
- * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the
- * console or not.
- *
- * @param {string} name The name of the instance. NOTE: the provider will be available under `name +
- 'Provider'` key.
- * @param {(Object|function())} provider If the provider is:
- *
- * - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
- * {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.
- * - `Constructor`: a new instance of the provider will be created using
- * {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.
- *
- * @returns {Object} registered provider instance
-
- * @example
- *
- * The following example shows how to create a simple event tracking service and register it using
- * {@link auto.$provide#provider $provide.provider()}.
- *
- * ```js
- * // Define the eventTracker provider
- * function EventTrackerProvider() {
- * var trackingUrl = '/track';
- *
- * // A provider method for configuring where the tracked events should been saved
- * this.setTrackingUrl = function(url) {
- * trackingUrl = url;
- * };
- *
- * // The service factory function
- * this.$get = ['$http', function($http) {
- * var trackedEvents = {};
- * return {
- * // Call this to track an event
- * event: function(event) {
- * var count = trackedEvents[event] || 0;
- * count += 1;
- * trackedEvents[event] = count;
- * return count;
- * },
- * // Call this to save the tracked events to the trackingUrl
- * save: function() {
- * $http.post(trackingUrl, trackedEvents);
- * }
- * };
- * }];
- * }
- *
- * describe('eventTracker', function() {
- * var postSpy;
- *
- * beforeEach(module(function($provide) {
- * // Register the eventTracker provider
- * $provide.provider('eventTracker', EventTrackerProvider);
- * }));
- *
- * beforeEach(module(function(eventTrackerProvider) {
- * // Configure eventTracker provider
- * eventTrackerProvider.setTrackingUrl('/custom-track');
- * }));
- *
- * it('tracks events', inject(function(eventTracker) {
- * expect(eventTracker.event('login')).toEqual(1);
- * expect(eventTracker.event('login')).toEqual(2);
- * }));
- *
- * it('saves to the tracking url', inject(function(eventTracker, $http) {
- * postSpy = spyOn($http, 'post');
- * eventTracker.event('login');
- * eventTracker.save();
- * expect(postSpy).toHaveBeenCalled();
- * expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');
- * expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');
- * expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });
- * }));
- * });
- * ```
- */
-
-/**
- * @ngdoc method
- * @name $provide#factory
- * @description
- *
- * Register a **service factory**, which will be called to return the service instance.
- * This is short for registering a service where its provider consists of only a `$get` property,
- * which is the given service factory function.
- * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to
- * configure your service in a provider.
- *
- * @param {string} name The name of the instance.
- * @param {Function|Array.<string|Function>} $getFn The injectable $getFn for the instance creation.
- * Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.
- * @returns {Object} registered provider instance
- *
- * @example
- * Here is an example of registering a service
- * ```js
- * $provide.factory('ping', ['$http', function($http) {
- * return function ping() {
- * return $http.send('/ping');
- * };
- * }]);
- * ```
- * You would then inject and use this service like this:
- * ```js
- * someModule.controller('Ctrl', ['ping', function(ping) {
- * ping();
- * }]);
- * ```
- */
-
-
-/**
- * @ngdoc method
- * @name $provide#service
- * @description
- *
- * Register a **service constructor**, which will be invoked with `new` to create the service
- * instance.
- * This is short for registering a service where its provider's `$get` property is a factory
- * function that returns an instance instantiated by the injector from the service constructor
- * function.
- *
- * Internally it looks a bit like this:
- *
- * ```
- * {
- * $get: function() {
- * return $injector.instantiate(constructor);
- * }
- * }
- * ```
- *
- *
- * You should use {@link auto.$provide#service $provide.service(class)} if you define your service
- * as a type/class.
- *
- * @param {string} name The name of the instance.
- * @param {Function|Array.<string|Function>} constructor An injectable class (constructor function)
- * that will be instantiated.
- * @returns {Object} registered provider instance
- *
- * @example
- * Here is an example of registering a service using
- * {@link auto.$provide#service $provide.service(class)}.
- * ```js
- * var Ping = function($http) {
- * this.$http = $http;
- * };
- *
- * Ping.$inject = ['$http'];
- *
- * Ping.prototype.send = function() {
- * return this.$http.get('/ping');
- * };
- * $provide.service('ping', Ping);
- * ```
- * You would then inject and use this service like this:
- * ```js
- * someModule.controller('Ctrl', ['ping', function(ping) {
- * ping.send();
- * }]);
- * ```
- */
-
-
-/**
- * @ngdoc method
- * @name $provide#value
- * @description
- *
- * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a
- * number, an array, an object or a function. This is short for registering a service where its
- * provider's `$get` property is a factory function that takes no arguments and returns the **value
- * service**. That also means it is not possible to inject other services into a value service.
- *
- * Value services are similar to constant services, except that they cannot be injected into a
- * module configuration function (see {@link angular.Module#config}) but they can be overridden by
- * an Angular {@link auto.$provide#decorator decorator}.
- *
- * @param {string} name The name of the instance.
- * @param {*} value The value.
- * @returns {Object} registered provider instance
- *
- * @example
- * Here are some examples of creating value services.
- * ```js
- * $provide.value('ADMIN_USER', 'admin');
- *
- * $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });
- *
- * $provide.value('halfOf', function(value) {
- * return value / 2;
- * });
- * ```
- */
-
-
-/**
- * @ngdoc method
- * @name $provide#constant
- * @description
- *
- * Register a **constant service** with the {@link auto.$injector $injector}, such as a string,
- * a number, an array, an object or a function. Like the {@link auto.$provide#value value}, it is not
- * possible to inject other services into a constant.
- *
- * But unlike {@link auto.$provide#value value}, a constant can be
- * injected into a module configuration function (see {@link angular.Module#config}) and it cannot
- * be overridden by an Angular {@link auto.$provide#decorator decorator}.
- *
- * @param {string} name The name of the constant.
- * @param {*} value The constant value.
- * @returns {Object} registered instance
- *
- * @example
- * Here a some examples of creating constants:
- * ```js
- * $provide.constant('SHARD_HEIGHT', 306);
- *
- * $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);
- *
- * $provide.constant('double', function(value) {
- * return value * 2;
- * });
- * ```
- */
-
-
-/**
- * @ngdoc method
- * @name $provide#decorator
- * @description
- *
- * Register a **decorator function** with the {@link auto.$injector $injector}. A decorator function
- * intercepts the creation of a service, allowing it to override or modify the behavior of the
- * service. The return value of the decorator function may be the original service, or a new service
- * that replaces (or wraps and delegates to) the original service.
- *
- * You can find out more about using decorators in the {@link guide/decorators} guide.
- *
- * @param {string} name The name of the service to decorate.
- * @param {Function|Array.<string|Function>} decorator This function will be invoked when the service needs to be
- * provided and should return the decorated service instance. The function is called using
- * the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.
- * Local injection arguments:
- *
- * * `$delegate` - The original service instance, which can be replaced, monkey patched, configured,
- * decorated or delegated to.
- *
- * @example
- * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting
- * calls to {@link ng.$log#error $log.warn()}.
- * ```js
- * $provide.decorator('$log', ['$delegate', function($delegate) {
- * $delegate.warn = $delegate.error;
- * return $delegate;
- * }]);
- * ```
- */
-
-
-function createInjector(modulesToLoad, strictDi) {
- strictDi = (strictDi === true);
- var INSTANTIATING = {},
- providerSuffix = 'Provider',
- path = [],
- loadedModules = new HashMap([], true),
- providerCache = {
- $provide: {
- provider: supportObject(provider),
- factory: supportObject(factory),
- service: supportObject(service),
- value: supportObject(value),
- constant: supportObject(constant),
- decorator: decorator
- }
- },
- providerInjector = (providerCache.$injector =
- createInternalInjector(providerCache, function(serviceName, caller) {
- if (angular.isString(caller)) {
- path.push(caller);
- }
- throw $injectorMinErr('unpr', 'Unknown provider: {0}', path.join(' <- '));
- })),
- instanceCache = {},
- protoInstanceInjector =
- createInternalInjector(instanceCache, function(serviceName, caller) {
- var provider = providerInjector.get(serviceName + providerSuffix, caller);
- return instanceInjector.invoke(
- provider.$get, provider, undefined, serviceName);
- }),
- instanceInjector = protoInstanceInjector;
-
- providerCache['$injector' + providerSuffix] = { $get: valueFn(protoInstanceInjector) };
- var runBlocks = loadModules(modulesToLoad);
- instanceInjector = protoInstanceInjector.get('$injector');
- instanceInjector.strictDi = strictDi;
- forEach(runBlocks, function(fn) { if (fn) instanceInjector.invoke(fn); });
-
- return instanceInjector;
-
- ////////////////////////////////////
- // $provider
- ////////////////////////////////////
-
- function supportObject(delegate) {
- return function(key, value) {
- if (isObject(key)) {
- forEach(key, reverseParams(delegate));
- } else {
- return delegate(key, value);
- }
- };
- }
-
- function provider(name, provider_) {
- assertNotHasOwnProperty(name, 'service');
- if (isFunction(provider_) || isArray(provider_)) {
- provider_ = providerInjector.instantiate(provider_);
- }
- if (!provider_.$get) {
- throw $injectorMinErr('pget', 'Provider \'{0}\' must define $get factory method.', name);
- }
- return (providerCache[name + providerSuffix] = provider_);
- }
-
- function enforceReturnValue(name, factory) {
- return /** @this */ function enforcedReturnValue() {
- var result = instanceInjector.invoke(factory, this);
- if (isUndefined(result)) {
- throw $injectorMinErr('undef', 'Provider \'{0}\' must return a value from $get factory method.', name);
- }
- return result;
- };
- }
-
- function factory(name, factoryFn, enforce) {
- return provider(name, {
- $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn
- });
- }
-
- function service(name, constructor) {
- return factory(name, ['$injector', function($injector) {
- return $injector.instantiate(constructor);
- }]);
- }
-
- function value(name, val) { return factory(name, valueFn(val), false); }
-
- function constant(name, value) {
- assertNotHasOwnProperty(name, 'constant');
- providerCache[name] = value;
- instanceCache[name] = value;
- }
-
- function decorator(serviceName, decorFn) {
- var origProvider = providerInjector.get(serviceName + providerSuffix),
- orig$get = origProvider.$get;
-
- origProvider.$get = function() {
- var origInstance = instanceInjector.invoke(orig$get, origProvider);
- return instanceInjector.invoke(decorFn, null, {$delegate: origInstance});
- };
- }
-
- ////////////////////////////////////
- // Module Loading
- ////////////////////////////////////
- function loadModules(modulesToLoad) {
- assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');
- var runBlocks = [], moduleFn;
- forEach(modulesToLoad, function(module) {
- if (loadedModules.get(module)) return;
- loadedModules.put(module, true);
-
- function runInvokeQueue(queue) {
- var i, ii;
- for (i = 0, ii = queue.length; i < ii; i++) {
- var invokeArgs = queue[i],
- provider = providerInjector.get(invokeArgs[0]);
-
- provider[invokeArgs[1]].apply(provider, invokeArgs[2]);
- }
- }
-
- try {
- if (isString(module)) {
- moduleFn = angularModule(module);
- runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);
- runInvokeQueue(moduleFn._invokeQueue);
- runInvokeQueue(moduleFn._configBlocks);
- } else if (isFunction(module)) {
- runBlocks.push(providerInjector.invoke(module));
- } else if (isArray(module)) {
- runBlocks.push(providerInjector.invoke(module));
- } else {
- assertArgFn(module, 'module');
- }
- } catch (e) {
- if (isArray(module)) {
- module = module[module.length - 1];
- }
- if (e.message && e.stack && e.stack.indexOf(e.message) === -1) {
- // Safari & FF's stack traces don't contain error.message content
- // unlike those of Chrome and IE
- // So if stack doesn't contain message, we create a new string that contains both.
- // Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.
- // eslint-disable-next-line no-ex-assign
- e = e.message + '\n' + e.stack;
- }
- throw $injectorMinErr('modulerr', 'Failed to instantiate module {0} due to:\n{1}',
- module, e.stack || e.message || e);
- }
- });
- return runBlocks;
- }
-
- ////////////////////////////////////
- // internal Injector
- ////////////////////////////////////
-
- function createInternalInjector(cache, factory) {
-
- function getService(serviceName, caller) {
- if (cache.hasOwnProperty(serviceName)) {
- if (cache[serviceName] === INSTANTIATING) {
- throw $injectorMinErr('cdep', 'Circular dependency found: {0}',
- serviceName + ' <- ' + path.join(' <- '));
- }
- return cache[serviceName];
- } else {
- try {
- path.unshift(serviceName);
- cache[serviceName] = INSTANTIATING;
- cache[serviceName] = factory(serviceName, caller);
- return cache[serviceName];
- } catch (err) {
- if (cache[serviceName] === INSTANTIATING) {
- delete cache[serviceName];
- }
- throw err;
- } finally {
- path.shift();
- }
- }
- }
-
-
- function injectionArgs(fn, locals, serviceName) {
- var args = [],
- $inject = createInjector.$$annotate(fn, strictDi, serviceName);
-
- for (var i = 0, length = $inject.length; i < length; i++) {
- var key = $inject[i];
- if (typeof key !== 'string') {
- throw $injectorMinErr('itkn',
- 'Incorrect injection token! Expected service name as string, got {0}', key);
- }
- args.push(locals && locals.hasOwnProperty(key) ? locals[key] :
- getService(key, serviceName));
- }
- return args;
- }
-
- function isClass(func) {
- // IE 9-11 do not support classes and IE9 leaks with the code below.
- if (msie <= 11) {
- return false;
- }
- // Support: Edge 12-13 only
- // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/
- return typeof func === 'function'
- && /^(?:class\b|constructor\()/.test(stringifyFn(func));
- }
-
- function invoke(fn, self, locals, serviceName) {
- if (typeof locals === 'string') {
- serviceName = locals;
- locals = null;
- }
-
- var args = injectionArgs(fn, locals, serviceName);
- if (isArray(fn)) {
- fn = fn[fn.length - 1];
- }
-
- if (!isClass(fn)) {
- // http://jsperf.com/angularjs-invoke-apply-vs-switch
- // #5388
- return fn.apply(self, args);
- } else {
- args.unshift(null);
- return new (Function.prototype.bind.apply(fn, args))();
- }
- }
-
-
- function instantiate(Type, locals, serviceName) {
- // Check if Type is annotated and use just the given function at n-1 as parameter
- // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
- var ctor = (isArray(Type) ? Type[Type.length - 1] : Type);
- var args = injectionArgs(Type, locals, serviceName);
- // Empty object at position 0 is ignored for invocation with `new`, but required.
- args.unshift(null);
- return new (Function.prototype.bind.apply(ctor, args))();
- }
-
-
- return {
- invoke: invoke,
- instantiate: instantiate,
- get: getService,
- annotate: createInjector.$$annotate,
- has: function(name) {
- return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);
- }
- };
- }
-}
-
-createInjector.$$annotate = annotate;
-
-/**
- * @ngdoc provider
- * @name $anchorScrollProvider
- * @this
- *
- * @description
- * Use `$anchorScrollProvider` to disable automatic scrolling whenever
- * {@link ng.$location#hash $location.hash()} changes.
- */
-function $AnchorScrollProvider() {
-
- var autoScrollingEnabled = true;
-
- /**
- * @ngdoc method
- * @name $anchorScrollProvider#disableAutoScrolling
- *
- * @description
- * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to
- * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />
- * Use this method to disable automatic scrolling.
- *
- * If automatic scrolling is disabled, one must explicitly call
- * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the
- * current hash.
- */
- this.disableAutoScrolling = function() {
- autoScrollingEnabled = false;
- };
-
- /**
- * @ngdoc service
- * @name $anchorScroll
- * @kind function
- * @requires $window
- * @requires $location
- * @requires $rootScope
- *
- * @description
- * When called, it scrolls to the element related to the specified `hash` or (if omitted) to the
- * current value of {@link ng.$location#hash $location.hash()}, according to the rules specified
- * in the
- * [HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/browsers.html#an-indicated-part-of-the-document).
- *
- * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to
- * match any anchor whenever it changes. This can be disabled by calling
- * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.
- *
- * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a
- * vertical scroll-offset (either fixed or dynamic).
- *
- * @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of
- * {@link ng.$location#hash $location.hash()} will be used.
- *
- * @property {(number|function|jqLite)} yOffset
- * If set, specifies a vertical scroll-offset. This is often useful when there are fixed
- * positioned elements at the top of the page, such as navbars, headers etc.
- *
- * `yOffset` can be specified in various ways:
- * - **number**: A fixed number of pixels to be used as offset.<br /><br />
- * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return
- * a number representing the offset (in pixels).<br /><br />
- * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from
- * the top of the page to the element's bottom will be used as offset.<br />
- * **Note**: The element will be taken into account only as long as its `position` is set to
- * `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust
- * their height and/or positioning according to the viewport's size.
- *
- * <br />
- * <div class="alert alert-warning">
- * In order for `yOffset` to work properly, scrolling should take place on the document's root and
- * not some child element.
- * </div>
- *
- * @example
- <example module="anchorScrollExample" name="anchor-scroll">
- <file name="index.html">
- <div id="scrollArea" ng-controller="ScrollController">
- <a ng-click="gotoBottom()">Go to bottom</a>
- <a id="bottom"></a> You're at the bottom!
- </div>
- </file>
- <file name="script.js">
- angular.module('anchorScrollExample', [])
- .controller('ScrollController', ['$scope', '$location', '$anchorScroll',
- function($scope, $location, $anchorScroll) {
- $scope.gotoBottom = function() {
- // set the location.hash to the id of
- // the element you wish to scroll to.
- $location.hash('bottom');
-
- // call $anchorScroll()
- $anchorScroll();
- };
- }]);
- </file>
- <file name="style.css">
- #scrollArea {
- height: 280px;
- overflow: auto;
- }
-
- #bottom {
- display: block;
- margin-top: 2000px;
- }
- </file>
- </example>
- *
- * <hr />
- * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).
- * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.
- *
- * @example
- <example module="anchorScrollOffsetExample" name="anchor-scroll-offset">
- <file name="index.html">
- <div class="fixed-header" ng-controller="headerCtrl">
- <a href="" ng-click="gotoAnchor(x)" ng-repeat="x in [1,2,3,4,5]">
- Go to anchor {{x}}
- </a>
- </div>
- <div id="anchor{{x}}" class="anchor" ng-repeat="x in [1,2,3,4,5]">
- Anchor {{x}} of 5
- </div>
- </file>
- <file name="script.js">
- angular.module('anchorScrollOffsetExample', [])
- .run(['$anchorScroll', function($anchorScroll) {
- $anchorScroll.yOffset = 50; // always scroll by 50 extra pixels
- }])
- .controller('headerCtrl', ['$anchorScroll', '$location', '$scope',
- function($anchorScroll, $location, $scope) {
- $scope.gotoAnchor = function(x) {
- var newHash = 'anchor' + x;
- if ($location.hash() !== newHash) {
- // set the $location.hash to `newHash` and
- // $anchorScroll will automatically scroll to it
- $location.hash('anchor' + x);
- } else {
- // call $anchorScroll() explicitly,
- // since $location.hash hasn't changed
- $anchorScroll();
- }
- };
- }
- ]);
- </file>
- <file name="style.css">
- body {
- padding-top: 50px;
- }
-
- .anchor {
- border: 2px dashed DarkOrchid;
- padding: 10px 10px 200px 10px;
- }
-
- .fixed-header {
- background-color: rgba(0, 0, 0, 0.2);
- height: 50px;
- position: fixed;
- top: 0; left: 0; right: 0;
- }
-
- .fixed-header > a {
- display: inline-block;
- margin: 5px 15px;
- }
- </file>
- </example>
- */
- this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) {
- var document = $window.document;
-
- // Helper function to get first anchor from a NodeList
- // (using `Array#some()` instead of `angular#forEach()` since it's more performant
- // and working in all supported browsers.)
- function getFirstAnchor(list) {
- var result = null;
- Array.prototype.some.call(list, function(element) {
- if (nodeName_(element) === 'a') {
- result = element;
- return true;
- }
- });
- return result;
- }
-
- function getYOffset() {
-
- var offset = scroll.yOffset;
-
- if (isFunction(offset)) {
- offset = offset();
- } else if (isElement(offset)) {
- var elem = offset[0];
- var style = $window.getComputedStyle(elem);
- if (style.position !== 'fixed') {
- offset = 0;
- } else {
- offset = elem.getBoundingClientRect().bottom;
- }
- } else if (!isNumber(offset)) {
- offset = 0;
- }
-
- return offset;
- }
-
- function scrollTo(elem) {
- if (elem) {
- elem.scrollIntoView();
-
- var offset = getYOffset();
-
- if (offset) {
- // `offset` is the number of pixels we should scroll UP in order to align `elem` properly.
- // This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the
- // top of the viewport.
- //
- // IF the number of pixels from the top of `elem` to the end of the page's content is less
- // than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some
- // way down the page.
- //
- // This is often the case for elements near the bottom of the page.
- //
- // In such cases we do not need to scroll the whole `offset` up, just the difference between
- // the top of the element and the offset, which is enough to align the top of `elem` at the
- // desired position.
- var elemTop = elem.getBoundingClientRect().top;
- $window.scrollBy(0, elemTop - offset);
- }
- } else {
- $window.scrollTo(0, 0);
- }
- }
-
- function scroll(hash) {
- // Allow numeric hashes
- hash = isString(hash) ? hash : isNumber(hash) ? hash.toString() : $location.hash();
- var elm;
-
- // empty hash, scroll to the top of the page
- if (!hash) scrollTo(null);
-
- // element with given id
- else if ((elm = document.getElementById(hash))) scrollTo(elm);
-
- // first anchor with given name :-D
- else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm);
-
- // no element and hash === 'top', scroll to the top of the page
- else if (hash === 'top') scrollTo(null);
- }
-
- // does not scroll when user clicks on anchor link that is currently on
- // (no url change, no $location.hash() change), browser native does scroll
- if (autoScrollingEnabled) {
- $rootScope.$watch(function autoScrollWatch() {return $location.hash();},
- function autoScrollWatchAction(newVal, oldVal) {
- // skip the initial scroll if $location.hash is empty
- if (newVal === oldVal && newVal === '') return;
-
- jqLiteDocumentLoaded(function() {
- $rootScope.$evalAsync(scroll);
- });
- });
- }
-
- return scroll;
- }];
-}
-
-var $animateMinErr = minErr('$animate');
-var ELEMENT_NODE = 1;
-var NG_ANIMATE_CLASSNAME = 'ng-animate';
-
-function mergeClasses(a,b) {
- if (!a && !b) return '';
- if (!a) return b;
- if (!b) return a;
- if (isArray(a)) a = a.join(' ');
- if (isArray(b)) b = b.join(' ');
- return a + ' ' + b;
-}
-
-function extractElementNode(element) {
- for (var i = 0; i < element.length; i++) {
- var elm = element[i];
- if (elm.nodeType === ELEMENT_NODE) {
- return elm;
- }
- }
-}
-
-function splitClasses(classes) {
- if (isString(classes)) {
- classes = classes.split(' ');
- }
-
- // Use createMap() to prevent class assumptions involving property names in
- // Object.prototype
- var obj = createMap();
- forEach(classes, function(klass) {
- // sometimes the split leaves empty string values
- // incase extra spaces were applied to the options
- if (klass.length) {
- obj[klass] = true;
- }
- });
- return obj;
-}
-
-// if any other type of options value besides an Object value is
-// passed into the $animate.method() animation then this helper code
-// will be run which will ignore it. While this patch is not the
-// greatest solution to this, a lot of existing plugins depend on
-// $animate to either call the callback (< 1.2) or return a promise
-// that can be changed. This helper function ensures that the options
-// are wiped clean incase a callback function is provided.
-function prepareAnimateOptions(options) {
- return isObject(options)
- ? options
- : {};
-}
-
-var $$CoreAnimateJsProvider = /** @this */ function() {
- this.$get = noop;
-};
-
-// this is prefixed with Core since it conflicts with
-// the animateQueueProvider defined in ngAnimate/animateQueue.js
-var $$CoreAnimateQueueProvider = /** @this */ function() {
- var postDigestQueue = new HashMap();
- var postDigestElements = [];
-
- this.$get = ['$$AnimateRunner', '$rootScope',
- function($$AnimateRunner, $rootScope) {
- return {
- enabled: noop,
- on: noop,
- off: noop,
- pin: noop,
-
- push: function(element, event, options, domOperation) {
- if (domOperation) {
- domOperation();
- }
-
- options = options || {};
- if (options.from) {
- element.css(options.from);
- }
- if (options.to) {
- element.css(options.to);
- }
-
- if (options.addClass || options.removeClass) {
- addRemoveClassesPostDigest(element, options.addClass, options.removeClass);
- }
-
- var runner = new $$AnimateRunner();
-
- // since there are no animations to run the runner needs to be
- // notified that the animation call is complete.
- runner.complete();
- return runner;
- }
- };
-
-
- function updateData(data, classes, value) {
- var changed = false;
- if (classes) {
- classes = isString(classes) ? classes.split(' ') :
- isArray(classes) ? classes : [];
- forEach(classes, function(className) {
- if (className) {
- changed = true;
- data[className] = value;
- }
- });
- }
- return changed;
- }
-
- function handleCSSClassChanges() {
- forEach(postDigestElements, function(element) {
- var data = postDigestQueue.get(element);
- if (data) {
- var existing = splitClasses(element.attr('class'));
- var toAdd = '';
- var toRemove = '';
- forEach(data, function(status, className) {
- var hasClass = !!existing[className];
- if (status !== hasClass) {
- if (status) {
- toAdd += (toAdd.length ? ' ' : '') + className;
- } else {
- toRemove += (toRemove.length ? ' ' : '') + className;
- }
- }
- });
-
- forEach(element, function(elm) {
- if (toAdd) {
- jqLiteAddClass(elm, toAdd);
- }
- if (toRemove) {
- jqLiteRemoveClass(elm, toRemove);
- }
- });
- postDigestQueue.remove(element);
- }
- });
- postDigestElements.length = 0;
- }
-
-
- function addRemoveClassesPostDigest(element, add, remove) {
- var data = postDigestQueue.get(element) || {};
-
- var classesAdded = updateData(data, add, true);
- var classesRemoved = updateData(data, remove, false);
-
- if (classesAdded || classesRemoved) {
-
- postDigestQueue.put(element, data);
- postDigestElements.push(element);
-
- if (postDigestElements.length === 1) {
- $rootScope.$$postDigest(handleCSSClassChanges);
- }
- }
- }
- }];
-};
-
-/**
- * @ngdoc provider
- * @name $animateProvider
- *
- * @description
- * Default implementation of $animate that doesn't perform any animations, instead just
- * synchronously performs DOM updates and resolves the returned runner promise.
- *
- * In order to enable animations the `ngAnimate` module has to be loaded.
- *
- * To see the functional implementation check out `src/ngAnimate/animate.js`.
- */
-var $AnimateProvider = ['$provide', /** @this */ function($provide) {
- var provider = this;
-
- this.$$registeredAnimations = Object.create(null);
-
- /**
- * @ngdoc method
- * @name $animateProvider#register
- *
- * @description
- * Registers a new injectable animation factory function. The factory function produces the
- * animation object which contains callback functions for each event that is expected to be
- * animated.
- *
- * * `eventFn`: `function(element, ... , doneFunction, options)`
- * The element to animate, the `doneFunction` and the options fed into the animation. Depending
- * on the type of animation additional arguments will be injected into the animation function. The
- * list below explains the function signatures for the different animation methods:
- *
- * - setClass: function(element, addedClasses, removedClasses, doneFunction, options)
- * - addClass: function(element, addedClasses, doneFunction, options)
- * - removeClass: function(element, removedClasses, doneFunction, options)
- * - enter, leave, move: function(element, doneFunction, options)
- * - animate: function(element, fromStyles, toStyles, doneFunction, options)
- *
- * Make sure to trigger the `doneFunction` once the animation is fully complete.
- *
- * ```js
- * return {
- * //enter, leave, move signature
- * eventFn : function(element, done, options) {
- * //code to run the animation
- * //once complete, then run done()
- * return function endFunction(wasCancelled) {
- * //code to cancel the animation
- * }
- * }
- * }
- * ```
- *
- * @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).
- * @param {Function} factory The factory function that will be executed to return the animation
- * object.
- */
- this.register = function(name, factory) {
- if (name && name.charAt(0) !== '.') {
- throw $animateMinErr('notcsel', 'Expecting class selector starting with \'.\' got \'{0}\'.', name);
- }
-
- var key = name + '-animation';
- provider.$$registeredAnimations[name.substr(1)] = key;
- $provide.factory(key, factory);
- };
-
- /**
- * @ngdoc method
- * @name $animateProvider#classNameFilter
- *
- * @description
- * Sets and/or returns the CSS class regular expression that is checked when performing
- * an animation. Upon bootstrap the classNameFilter value is not set at all and will
- * therefore enable $animate to attempt to perform an animation on any element that is triggered.
- * When setting the `classNameFilter` value, animations will only be performed on elements
- * that successfully match the filter expression. This in turn can boost performance
- * for low-powered devices as well as applications containing a lot of structural operations.
- * @param {RegExp=} expression The className expression which will be checked against all animations
- * @return {RegExp} The current CSS className expression value. If null then there is no expression value
- */
- this.classNameFilter = function(expression) {
- if (arguments.length === 1) {
- this.$$classNameFilter = (expression instanceof RegExp) ? expression : null;
- if (this.$$classNameFilter) {
- var reservedRegex = new RegExp('(\\s+|\\/)' + NG_ANIMATE_CLASSNAME + '(\\s+|\\/)');
- if (reservedRegex.test(this.$$classNameFilter.toString())) {
- throw $animateMinErr('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.', NG_ANIMATE_CLASSNAME);
-
- }
- }
- }
- return this.$$classNameFilter;
- };
-
- this.$get = ['$$animateQueue', function($$animateQueue) {
- function domInsert(element, parentElement, afterElement) {
- // if for some reason the previous element was removed
- // from the dom sometime before this code runs then let's
- // just stick to using the parent element as the anchor
- if (afterElement) {
- var afterNode = extractElementNode(afterElement);
- if (afterNode && !afterNode.parentNode && !afterNode.previousElementSibling) {
- afterElement = null;
- }
- }
- if (afterElement) {
- afterElement.after(element);
- } else {
- parentElement.prepend(element);
- }
- }
-
- /**
- * @ngdoc service
- * @name $animate
- * @description The $animate service exposes a series of DOM utility methods that provide support
- * for animation hooks. The default behavior is the application of DOM operations, however,
- * when an animation is detected (and animations are enabled), $animate will do the heavy lifting
- * to ensure that animation runs with the triggered DOM operation.
- *
- * By default $animate doesn't trigger any animations. This is because the `ngAnimate` module isn't
- * included and only when it is active then the animation hooks that `$animate` triggers will be
- * functional. Once active then all structural `ng-` directives will trigger animations as they perform
- * their DOM-related operations (enter, leave and move). Other directives such as `ngClass`,
- * `ngShow`, `ngHide` and `ngMessages` also provide support for animations.
- *
- * It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives.
- *
- * To learn more about enabling animation support, click here to visit the
- * {@link ngAnimate ngAnimate module page}.
- */
- return {
- // we don't call it directly since non-existant arguments may
- // be interpreted as null within the sub enabled function
-
- /**
- *
- * @ngdoc method
- * @name $animate#on
- * @kind function
- * @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...)
- * has fired on the given element or among any of its children. Once the listener is fired, the provided callback
- * is fired with the following params:
- *
- * ```js
- * $animate.on('enter', container,
- * function callback(element, phase) {
- * // cool we detected an enter animation within the container
- * }
- * );
- * ```
- *
- * @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...)
- * @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself
- * as well as among its children
- * @param {Function} callback the callback function that will be fired when the listener is triggered
- *
- * The arguments present in the callback function are:
- * * `element` - The captured DOM element that the animation was fired on.
- * * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends).
- */
- on: $$animateQueue.on,
-
- /**
- *
- * @ngdoc method
- * @name $animate#off
- * @kind function
- * @description Deregisters an event listener based on the event which has been associated with the provided element. This method
- * can be used in three different ways depending on the arguments:
- *
- * ```js
- * // remove all the animation event listeners listening for `enter`
- * $animate.off('enter');
- *
- * // remove listeners for all animation events from the container element
- * $animate.off(container);
- *
- * // remove all the animation event listeners listening for `enter` on the given element and its children
- * $animate.off('enter', container);
- *
- * // remove the event listener function provided by `callback` that is set
- * // to listen for `enter` on the given `container` as well as its children
- * $animate.off('enter', container, callback);
- * ```
- *
- * @param {string|DOMElement} event|container the animation event (e.g. enter, leave, move,
- * addClass, removeClass, etc...), or the container element. If it is the element, all other
- * arguments are ignored.
- * @param {DOMElement=} container the container element the event listener was placed on
- * @param {Function=} callback the callback function that was registered as the listener
- */
- off: $$animateQueue.off,
-
- /**
- * @ngdoc method
- * @name $animate#pin
- * @kind function
- * @description Associates the provided element with a host parent element to allow the element to be animated even if it exists
- * outside of the DOM structure of the Angular application. By doing so, any animation triggered via `$animate` can be issued on the
- * element despite being outside the realm of the application or within another application. Say for example if the application
- * was bootstrapped on an element that is somewhere inside of the `<body>` tag, but we wanted to allow for an element to be situated
- * as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind
- * that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association.
- *
- * Note that this feature is only active when the `ngAnimate` module is used.
- *
- * @param {DOMElement} element the external element that will be pinned
- * @param {DOMElement} parentElement the host parent element that will be associated with the external element
- */
- pin: $$animateQueue.pin,
-
- /**
- *
- * @ngdoc method
- * @name $animate#enabled
- * @kind function
- * @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This
- * function can be called in four ways:
- *
- * ```js
- * // returns true or false
- * $animate.enabled();
- *
- * // changes the enabled state for all animations
- * $animate.enabled(false);
- * $animate.enabled(true);
- *
- * // returns true or false if animations are enabled for an element
- * $animate.enabled(element);
- *
- * // changes the enabled state for an element and its children
- * $animate.enabled(element, true);
- * $animate.enabled(element, false);
- * ```
- *
- * @param {DOMElement=} element the element that will be considered for checking/setting the enabled state
- * @param {boolean=} enabled whether or not the animations will be enabled for the element
- *
- * @return {boolean} whether or not animations are enabled
- */
- enabled: $$animateQueue.enabled,
-
- /**
- * @ngdoc method
- * @name $animate#cancel
- * @kind function
- * @description Cancels the provided animation.
- *
- * @param {Promise} animationPromise The animation promise that is returned when an animation is started.
- */
- cancel: function(runner) {
- if (runner.end) {
- runner.end();
- }
- },
-
- /**
- *
- * @ngdoc method
- * @name $animate#enter
- * @kind function
- * @description Inserts the element into the DOM either after the `after` element (if provided) or
- * as the first child within the `parent` element and then triggers an animation.
- * A promise is returned that will be resolved during the next digest once the animation
- * has completed.
- *
- * @param {DOMElement} element the element which will be inserted into the DOM
- * @param {DOMElement} parent the parent element which will append the element as
- * a child (so long as the after element is not present)
- * @param {DOMElement=} after the sibling element after which the element will be appended
- * @param {object=} options an optional collection of options/styles that will be applied to the element.
- * The object can have the following properties:
- *
- * - **addClass** - `{string}` - space-separated CSS classes to add to element
- * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
- * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
- * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
- *
- * @return {Promise} the animation callback promise
- */
- enter: function(element, parent, after, options) {
- parent = parent && jqLite(parent);
- after = after && jqLite(after);
- parent = parent || after.parent();
- domInsert(element, parent, after);
- return $$animateQueue.push(element, 'enter', prepareAnimateOptions(options));
- },
-
- /**
- *
- * @ngdoc method
- * @name $animate#move
- * @kind function
- * @description Inserts (moves) the element into its new position in the DOM either after
- * the `after` element (if provided) or as the first child within the `parent` element
- * and then triggers an animation. A promise is returned that will be resolved
- * during the next digest once the animation has completed.
- *
- * @param {DOMElement} element the element which will be moved into the new DOM position
- * @param {DOMElement} parent the parent element which will append the element as
- * a child (so long as the after element is not present)
- * @param {DOMElement=} after the sibling element after which the element will be appended
- * @param {object=} options an optional collection of options/styles that will be applied to the element.
- * The object can have the following properties:
- *
- * - **addClass** - `{string}` - space-separated CSS classes to add to element
- * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
- * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
- * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
- *
- * @return {Promise} the animation callback promise
- */
- move: function(element, parent, after, options) {
- parent = parent && jqLite(parent);
- after = after && jqLite(after);
- parent = parent || after.parent();
- domInsert(element, parent, after);
- return $$animateQueue.push(element, 'move', prepareAnimateOptions(options));
- },
-
- /**
- * @ngdoc method
- * @name $animate#leave
- * @kind function
- * @description Triggers an animation and then removes the element from the DOM.
- * When the function is called a promise is returned that will be resolved during the next
- * digest once the animation has completed.
- *
- * @param {DOMElement} element the element which will be removed from the DOM
- * @param {object=} options an optional collection of options/styles that will be applied to the element.
- * The object can have the following properties:
- *
- * - **addClass** - `{string}` - space-separated CSS classes to add to element
- * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
- * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
- * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
- *
- * @return {Promise} the animation callback promise
- */
- leave: function(element, options) {
- return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() {
- element.remove();
- });
- },
-
- /**
- * @ngdoc method
- * @name $animate#addClass
- * @kind function
- *
- * @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon
- * execution, the addClass operation will only be handled after the next digest and it will not trigger an
- * animation if element already contains the CSS class or if the class is removed at a later step.
- * Note that class-based animations are treated differently compared to structural animations
- * (like enter, move and leave) since the CSS classes may be added/removed at different points
- * depending if CSS or JavaScript animations are used.
- *
- * @param {DOMElement} element the element which the CSS classes will be applied to
- * @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces)
- * @param {object=} options an optional collection of options/styles that will be applied to the element.
- * The object can have the following properties:
- *
- * - **addClass** - `{string}` - space-separated CSS classes to add to element
- * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
- * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
- * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
- *
- * @return {Promise} the animation callback promise
- */
- addClass: function(element, className, options) {
- options = prepareAnimateOptions(options);
- options.addClass = mergeClasses(options.addclass, className);
- return $$animateQueue.push(element, 'addClass', options);
- },
-
- /**
- * @ngdoc method
- * @name $animate#removeClass
- * @kind function
- *
- * @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon
- * execution, the removeClass operation will only be handled after the next digest and it will not trigger an
- * animation if element does not contain the CSS class or if the class is added at a later step.
- * Note that class-based animations are treated differently compared to structural animations
- * (like enter, move and leave) since the CSS classes may be added/removed at different points
- * depending if CSS or JavaScript animations are used.
- *
- * @param {DOMElement} element the element which the CSS classes will be applied to
- * @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces)
- * @param {object=} options an optional collection of options/styles that will be applied to the element.
- * The object can have the following properties:
- *
- * - **addClass** - `{string}` - space-separated CSS classes to add to element
- * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
- * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
- * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
- *
- * @return {Promise} the animation callback promise
- */
- removeClass: function(element, className, options) {
- options = prepareAnimateOptions(options);
- options.removeClass = mergeClasses(options.removeClass, className);
- return $$animateQueue.push(element, 'removeClass', options);
- },
-
- /**
- * @ngdoc method
- * @name $animate#setClass
- * @kind function
- *
- * @description Performs both the addition and removal of a CSS classes on an element and (during the process)
- * triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and
- * `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has
- * passed. Note that class-based animations are treated differently compared to structural animations
- * (like enter, move and leave) since the CSS classes may be added/removed at different points
- * depending if CSS or JavaScript animations are used.
- *
- * @param {DOMElement} element the element which the CSS classes will be applied to
- * @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces)
- * @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces)
- * @param {object=} options an optional collection of options/styles that will be applied to the element.
- * The object can have the following properties:
- *
- * - **addClass** - `{string}` - space-separated CSS classes to add to element
- * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
- * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
- * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
- *
- * @return {Promise} the animation callback promise
- */
- setClass: function(element, add, remove, options) {
- options = prepareAnimateOptions(options);
- options.addClass = mergeClasses(options.addClass, add);
- options.removeClass = mergeClasses(options.removeClass, remove);
- return $$animateQueue.push(element, 'setClass', options);
- },
-
- /**
- * @ngdoc method
- * @name $animate#animate
- * @kind function
- *
- * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.
- * If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take
- * on the provided styles. For example, if a transition animation is set for the given className, then the provided `from` and
- * `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding
- * style in `to`, the style in `from` is applied immediately, and no animation is run.
- * If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`
- * method (or as part of the `options` parameter):
- *
- * ```js
- * ngModule.animation('.my-inline-animation', function() {
- * return {
- * animate : function(element, from, to, done, options) {
- * //animation
- * done();
- * }
- * }
- * });
- * ```
- *
- * @param {DOMElement} element the element which the CSS styles will be applied to
- * @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.
- * @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.
- * @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If
- * this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.
- * (Note that if no animation is detected then this value will not be applied to the element.)
- * @param {object=} options an optional collection of options/styles that will be applied to the element.
- * The object can have the following properties:
- *
- * - **addClass** - `{string}` - space-separated CSS classes to add to element
- * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
- * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
- * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
- *
- * @return {Promise} the animation callback promise
- */
- animate: function(element, from, to, className, options) {
- options = prepareAnimateOptions(options);
- options.from = options.from ? extend(options.from, from) : from;
- options.to = options.to ? extend(options.to, to) : to;
-
- className = className || 'ng-inline-animate';
- options.tempClasses = mergeClasses(options.tempClasses, className);
- return $$animateQueue.push(element, 'animate', options);
- }
- };
- }];
-}];
-
-var $$AnimateAsyncRunFactoryProvider = /** @this */ function() {
- this.$get = ['$$rAF', function($$rAF) {
- var waitQueue = [];
-
- function waitForTick(fn) {
- waitQueue.push(fn);
- if (waitQueue.length > 1) return;
- $$rAF(function() {
- for (var i = 0; i < waitQueue.length; i++) {
- waitQueue[i]();
- }
- waitQueue = [];
- });
- }
-
- return function() {
- var passed = false;
- waitForTick(function() {
- passed = true;
- });
- return function(callback) {
- if (passed) {
- callback();
- } else {
- waitForTick(callback);
- }
- };
- };
- }];
-};
-
-var $$AnimateRunnerFactoryProvider = /** @this */ function() {
- this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$document', '$timeout',
- function($q, $sniffer, $$animateAsyncRun, $document, $timeout) {
-
- var INITIAL_STATE = 0;
- var DONE_PENDING_STATE = 1;
- var DONE_COMPLETE_STATE = 2;
-
- AnimateRunner.chain = function(chain, callback) {
- var index = 0;
-
- next();
- function next() {
- if (index === chain.length) {
- callback(true);
- return;
- }
-
- chain[index](function(response) {
- if (response === false) {
- callback(false);
- return;
- }
- index++;
- next();
- });
- }
- };
-
- AnimateRunner.all = function(runners, callback) {
- var count = 0;
- var status = true;
- forEach(runners, function(runner) {
- runner.done(onProgress);
- });
-
- function onProgress(response) {
- status = status && response;
- if (++count === runners.length) {
- callback(status);
- }
- }
- };
-
- function AnimateRunner(host) {
- this.setHost(host);
-
- var rafTick = $$animateAsyncRun();
- var timeoutTick = function(fn) {
- $timeout(fn, 0, false);
- };
-
- this._doneCallbacks = [];
- this._tick = function(fn) {
- var doc = $document[0];
-
- // the document may not be ready or attached
- // to the module for some internal tests
- if (doc && doc.hidden) {
- timeoutTick(fn);
- } else {
- rafTick(fn);
- }
- };
- this._state = 0;
- }
-
- AnimateRunner.prototype = {
- setHost: function(host) {
- this.host = host || {};
- },
-
- done: function(fn) {
- if (this._state === DONE_COMPLETE_STATE) {
- fn();
- } else {
- this._doneCallbacks.push(fn);
- }
- },
-
- progress: noop,
-
- getPromise: function() {
- if (!this.promise) {
- var self = this;
- this.promise = $q(function(resolve, reject) {
- self.done(function(status) {
- if (status === false) {
- reject();
- } else {
- resolve();
- }
- });
- });
- }
- return this.promise;
- },
-
- then: function(resolveHandler, rejectHandler) {
- return this.getPromise().then(resolveHandler, rejectHandler);
- },
-
- 'catch': function(handler) {
- return this.getPromise()['catch'](handler);
- },
-
- 'finally': function(handler) {
- return this.getPromise()['finally'](handler);
- },
-
- pause: function() {
- if (this.host.pause) {
- this.host.pause();
- }
- },
-
- resume: function() {
- if (this.host.resume) {
- this.host.resume();
- }
- },
-
- end: function() {
- if (this.host.end) {
- this.host.end();
- }
- this._resolve(true);
- },
-
- cancel: function() {
- if (this.host.cancel) {
- this.host.cancel();
- }
- this._resolve(false);
- },
-
- complete: function(response) {
- var self = this;
- if (self._state === INITIAL_STATE) {
- self._state = DONE_PENDING_STATE;
- self._tick(function() {
- self._resolve(response);
- });
- }
- },
-
- _resolve: function(response) {
- if (this._state !== DONE_COMPLETE_STATE) {
- forEach(this._doneCallbacks, function(fn) {
- fn(response);
- });
- this._doneCallbacks.length = 0;
- this._state = DONE_COMPLETE_STATE;
- }
- }
- };
-
- return AnimateRunner;
- }];
-};
-
-/* exported $CoreAnimateCssProvider */
-
-/**
- * @ngdoc service
- * @name $animateCss
- * @kind object
- * @this
- *
- * @description
- * This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,
- * then the `$animateCss` service will actually perform animations.
- *
- * Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.
- */
-var $CoreAnimateCssProvider = function() {
- this.$get = ['$$rAF', '$q', '$$AnimateRunner', function($$rAF, $q, $$AnimateRunner) {
-
- return function(element, initialOptions) {
- // all of the animation functions should create
- // a copy of the options data, however, if a
- // parent service has already created a copy then
- // we should stick to using that
- var options = initialOptions || {};
- if (!options.$$prepared) {
- options = copy(options);
- }
-
- // there is no point in applying the styles since
- // there is no animation that goes on at all in
- // this version of $animateCss.
- if (options.cleanupStyles) {
- options.from = options.to = null;
- }
-
- if (options.from) {
- element.css(options.from);
- options.from = null;
- }
-
- var closed, runner = new $$AnimateRunner();
- return {
- start: run,
- end: run
- };
-
- function run() {
- $$rAF(function() {
- applyAnimationContents();
- if (!closed) {
- runner.complete();
- }
- closed = true;
- });
- return runner;
- }
-
- function applyAnimationContents() {
- if (options.addClass) {
- element.addClass(options.addClass);
- options.addClass = null;
- }
- if (options.removeClass) {
- element.removeClass(options.removeClass);
- options.removeClass = null;
- }
- if (options.to) {
- element.css(options.to);
- options.to = null;
- }
- }
- };
- }];
-};
-
-/* global stripHash: true */
-
-/**
- * ! This is a private undocumented service !
- *
- * @name $browser
- * @requires $log
- * @description
- * This object has two goals:
- *
- * - hide all the global state in the browser caused by the window object
- * - abstract away all the browser specific features and inconsistencies
- *
- * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`
- * service, which can be used for convenient testing of the application without the interaction with
- * the real browser apis.
- */
-/**
- * @param {object} window The global window object.
- * @param {object} document jQuery wrapped document.
- * @param {object} $log window.console or an object with the same interface.
- * @param {object} $sniffer $sniffer service
- */
-function Browser(window, document, $log, $sniffer) {
- var self = this,
- location = window.location,
- history = window.history,
- setTimeout = window.setTimeout,
- clearTimeout = window.clearTimeout,
- pendingDeferIds = {};
-
- self.isMock = false;
-
- var outstandingRequestCount = 0;
- var outstandingRequestCallbacks = [];
-
- // TODO(vojta): remove this temporary api
- self.$$completeOutstandingRequest = completeOutstandingRequest;
- self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; };
-
- /**
- * Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`
- * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.
- */
- function completeOutstandingRequest(fn) {
- try {
- fn.apply(null, sliceArgs(arguments, 1));
- } finally {
- outstandingRequestCount--;
- if (outstandingRequestCount === 0) {
- while (outstandingRequestCallbacks.length) {
- try {
- outstandingRequestCallbacks.pop()();
- } catch (e) {
- $log.error(e);
- }
- }
- }
- }
- }
-
- function getHash(url) {
- var index = url.indexOf('#');
- return index === -1 ? '' : url.substr(index);
- }
-
- /**
- * @private
- * Note: this method is used only by scenario runner
- * TODO(vojta): prefix this method with $$ ?
- * @param {function()} callback Function that will be called when no outstanding request
- */
- self.notifyWhenNoOutstandingRequests = function(callback) {
- if (outstandingRequestCount === 0) {
- callback();
- } else {
- outstandingRequestCallbacks.push(callback);
- }
- };
-
- //////////////////////////////////////////////////////////////
- // URL API
- //////////////////////////////////////////////////////////////
-
- var cachedState, lastHistoryState,
- lastBrowserUrl = location.href,
- baseElement = document.find('base'),
- pendingLocation = null,
- getCurrentState = !$sniffer.history ? noop : function getCurrentState() {
- try {
- return history.state;
- } catch (e) {
- // MSIE can reportedly throw when there is no state (UNCONFIRMED).
- }
- };
-
- cacheState();
- lastHistoryState = cachedState;
-
- /**
- * @name $browser#url
- *
- * @description
- * GETTER:
- * Without any argument, this method just returns current value of location.href.
- *
- * SETTER:
- * With at least one argument, this method sets url to new value.
- * If html5 history api supported, pushState/replaceState is used, otherwise
- * location.href/location.replace is used.
- * Returns its own instance to allow chaining
- *
- * NOTE: this api is intended for use only by the $location service. Please use the
- * {@link ng.$location $location service} to change url.
- *
- * @param {string} url New url (when used as setter)
- * @param {boolean=} replace Should new url replace current history record?
- * @param {object=} state object to use with pushState/replaceState
- */
- self.url = function(url, replace, state) {
- // In modern browsers `history.state` is `null` by default; treating it separately
- // from `undefined` would cause `$browser.url('/foo')` to change `history.state`
- // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.
- if (isUndefined(state)) {
- state = null;
- }
-
- // Android Browser BFCache causes location, history reference to become stale.
- if (location !== window.location) location = window.location;
- if (history !== window.history) history = window.history;
-
- // setter
- if (url) {
- var sameState = lastHistoryState === state;
-
- // Don't change anything if previous and current URLs and states match. This also prevents
- // IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.
- // See https://github.com/angular/angular.js/commit/ffb2701
- if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {
- return self;
- }
- var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);
- lastBrowserUrl = url;
- lastHistoryState = state;
- // Don't use history API if only the hash changed
- // due to a bug in IE10/IE11 which leads
- // to not firing a `hashchange` nor `popstate` event
- // in some cases (see #9143).
- if ($sniffer.history && (!sameBase || !sameState)) {
- history[replace ? 'replaceState' : 'pushState'](state, '', url);
- cacheState();
- // Do the assignment again so that those two variables are referentially identical.
- lastHistoryState = cachedState;
- } else {
- if (!sameBase) {
- pendingLocation = url;
- }
- if (replace) {
- location.replace(url);
- } else if (!sameBase) {
- location.href = url;
- } else {
- location.hash = getHash(url);
- }
- if (location.href !== url) {
- pendingLocation = url;
- }
- }
- if (pendingLocation) {
- pendingLocation = url;
- }
- return self;
- // getter
- } else {
- // - pendingLocation is needed as browsers don't allow to read out
- // the new location.href if a reload happened or if there is a bug like in iOS 9 (see
- // https://openradar.appspot.com/22186109).
- // - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172
- return pendingLocation || location.href.replace(/%27/g,'\'');
- }
- };
-
- /**
- * @name $browser#state
- *
- * @description
- * This method is a getter.
- *
- * Return history.state or null if history.state is undefined.
- *
- * @returns {object} state
- */
- self.state = function() {
- return cachedState;
- };
-
- var urlChangeListeners = [],
- urlChangeInit = false;
-
- function cacheStateAndFireUrlChange() {
- pendingLocation = null;
- cacheState();
- fireUrlChange();
- }
-
- // This variable should be used *only* inside the cacheState function.
- var lastCachedState = null;
- function cacheState() {
- // This should be the only place in $browser where `history.state` is read.
- cachedState = getCurrentState();
- cachedState = isUndefined(cachedState) ? null : cachedState;
-
- // Prevent callbacks fo fire twice if both hashchange & popstate were fired.
- if (equals(cachedState, lastCachedState)) {
- cachedState = lastCachedState;
- }
- lastCachedState = cachedState;
- }
-
- function fireUrlChange() {
- if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {
- return;
- }
-
- lastBrowserUrl = self.url();
- lastHistoryState = cachedState;
- forEach(urlChangeListeners, function(listener) {
- listener(self.url(), cachedState);
- });
- }
-
- /**
- * @name $browser#onUrlChange
- *
- * @description
- * Register callback function that will be called, when url changes.
- *
- * It's only called when the url is changed from outside of angular:
- * - user types different url into address bar
- * - user clicks on history (forward/back) button
- * - user clicks on a link
- *
- * It's not called when url is changed by $browser.url() method
- *
- * The listener gets called with new url as parameter.
- *
- * NOTE: this api is intended for use only by the $location service. Please use the
- * {@link ng.$location $location service} to monitor url changes in angular apps.
- *
- * @param {function(string)} listener Listener function to be called when url changes.
- * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
- */
- self.onUrlChange = function(callback) {
- // TODO(vojta): refactor to use node's syntax for events
- if (!urlChangeInit) {
- // We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)
- // don't fire popstate when user change the address bar and don't fire hashchange when url
- // changed by push/replaceState
-
- // html5 history api - popstate event
- if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange);
- // hashchange event
- jqLite(window).on('hashchange', cacheStateAndFireUrlChange);
-
- urlChangeInit = true;
- }
-
- urlChangeListeners.push(callback);
- return callback;
- };
-
- /**
- * @private
- * Remove popstate and hashchange handler from window.
- *
- * NOTE: this api is intended for use only by $rootScope.
- */
- self.$$applicationDestroyed = function() {
- jqLite(window).off('hashchange popstate', cacheStateAndFireUrlChange);
- };
-
- /**
- * Checks whether the url has changed outside of Angular.
- * Needs to be exported to be able to check for changes that have been done in sync,
- * as hashchange/popstate events fire in async.
- */
- self.$$checkUrlChange = fireUrlChange;
-
- //////////////////////////////////////////////////////////////
- // Misc API
- //////////////////////////////////////////////////////////////
-
- /**
- * @name $browser#baseHref
- *
- * @description
- * Returns current <base href>
- * (always relative - without domain)
- *
- * @returns {string} The current base href
- */
- self.baseHref = function() {
- var href = baseElement.attr('href');
- return href ? href.replace(/^(https?:)?\/\/[^/]*/, '') : '';
- };
-
- /**
- * @name $browser#defer
- * @param {function()} fn A function, who's execution should be deferred.
- * @param {number=} [delay=0] of milliseconds to defer the function execution.
- * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
- *
- * @description
- * Executes a fn asynchronously via `setTimeout(fn, delay)`.
- *
- * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
- * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed
- * via `$browser.defer.flush()`.
- *
- */
- self.defer = function(fn, delay) {
- var timeoutId;
- outstandingRequestCount++;
- timeoutId = setTimeout(function() {
- delete pendingDeferIds[timeoutId];
- completeOutstandingRequest(fn);
- }, delay || 0);
- pendingDeferIds[timeoutId] = true;
- return timeoutId;
- };
-
-
- /**
- * @name $browser#defer.cancel
- *
- * @description
- * Cancels a deferred task identified with `deferId`.
- *
- * @param {*} deferId Token returned by the `$browser.defer` function.
- * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
- * canceled.
- */
- self.defer.cancel = function(deferId) {
- if (pendingDeferIds[deferId]) {
- delete pendingDeferIds[deferId];
- clearTimeout(deferId);
- completeOutstandingRequest(noop);
- return true;
- }
- return false;
- };
-
-}
-
-/** @this */
-function $BrowserProvider() {
- this.$get = ['$window', '$log', '$sniffer', '$document',
- function($window, $log, $sniffer, $document) {
- return new Browser($window, $document, $log, $sniffer);
- }];
-}
-
-/**
- * @ngdoc service
- * @name $cacheFactory
- * @this
- *
- * @description
- * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to
- * them.
- *
- * ```js
- *
- * var cache = $cacheFactory('cacheId');
- * expect($cacheFactory.get('cacheId')).toBe(cache);
- * expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();
- *
- * cache.put("key", "value");
- * cache.put("another key", "another value");
- *
- * // We've specified no options on creation
- * expect(cache.info()).toEqual({id: 'cacheId', size: 2});
- *
- * ```
- *
- *
- * @param {string} cacheId Name or id of the newly created cache.
- * @param {object=} options Options object that specifies the cache behavior. Properties:
- *
- * - `{number=}` `capacity` — turns the cache into LRU cache.
- *
- * @returns {object} Newly created cache object with the following set of methods:
- *
- * - `{object}` `info()` — Returns id, size, and options of cache.
- * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns
- * it.
- * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.
- * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.
- * - `{void}` `removeAll()` — Removes all cached values.
- * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.
- *
- * @example
- <example module="cacheExampleApp" name="cache-factory">
- <file name="index.html">
- <div ng-controller="CacheController">
- <input ng-model="newCacheKey" placeholder="Key">
- <input ng-model="newCacheValue" placeholder="Value">
- <button ng-click="put(newCacheKey, newCacheValue)">Cache</button>
-
- <p ng-if="keys.length">Cached Values</p>
- <div ng-repeat="key in keys">
- <span ng-bind="key"></span>
- <span>: </span>
- <b ng-bind="cache.get(key)"></b>
- </div>
-
- <p>Cache Info</p>
- <div ng-repeat="(key, value) in cache.info()">
- <span ng-bind="key"></span>
- <span>: </span>
- <b ng-bind="value"></b>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('cacheExampleApp', []).
- controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {
- $scope.keys = [];
- $scope.cache = $cacheFactory('cacheId');
- $scope.put = function(key, value) {
- if (angular.isUndefined($scope.cache.get(key))) {
- $scope.keys.push(key);
- }
- $scope.cache.put(key, angular.isUndefined(value) ? null : value);
- };
- }]);
- </file>
- <file name="style.css">
- p {
- margin: 10px 0 3px;
- }
- </file>
- </example>
- */
-function $CacheFactoryProvider() {
-
- this.$get = function() {
- var caches = {};
-
- function cacheFactory(cacheId, options) {
- if (cacheId in caches) {
- throw minErr('$cacheFactory')('iid', 'CacheId \'{0}\' is already taken!', cacheId);
- }
-
- var size = 0,
- stats = extend({}, options, {id: cacheId}),
- data = createMap(),
- capacity = (options && options.capacity) || Number.MAX_VALUE,
- lruHash = createMap(),
- freshEnd = null,
- staleEnd = null;
-
- /**
- * @ngdoc type
- * @name $cacheFactory.Cache
- *
- * @description
- * A cache object used to store and retrieve data, primarily used by
- * {@link $http $http} and the {@link ng.directive:script script} directive to cache
- * templates and other data.
- *
- * ```js
- * angular.module('superCache')
- * .factory('superCache', ['$cacheFactory', function($cacheFactory) {
- * return $cacheFactory('super-cache');
- * }]);
- * ```
- *
- * Example test:
- *
- * ```js
- * it('should behave like a cache', inject(function(superCache) {
- * superCache.put('key', 'value');
- * superCache.put('another key', 'another value');
- *
- * expect(superCache.info()).toEqual({
- * id: 'super-cache',
- * size: 2
- * });
- *
- * superCache.remove('another key');
- * expect(superCache.get('another key')).toBeUndefined();
- *
- * superCache.removeAll();
- * expect(superCache.info()).toEqual({
- * id: 'super-cache',
- * size: 0
- * });
- * }));
- * ```
- */
- return (caches[cacheId] = {
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#put
- * @kind function
- *
- * @description
- * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be
- * retrieved later, and incrementing the size of the cache if the key was not already
- * present in the cache. If behaving like an LRU cache, it will also remove stale
- * entries from the set.
- *
- * It will not insert undefined values into the cache.
- *
- * @param {string} key the key under which the cached data is stored.
- * @param {*} value the value to store alongside the key. If it is undefined, the key
- * will not be stored.
- * @returns {*} the value stored.
- */
- put: function(key, value) {
- if (isUndefined(value)) return;
- if (capacity < Number.MAX_VALUE) {
- var lruEntry = lruHash[key] || (lruHash[key] = {key: key});
-
- refresh(lruEntry);
- }
-
- if (!(key in data)) size++;
- data[key] = value;
-
- if (size > capacity) {
- this.remove(staleEnd.key);
- }
-
- return value;
- },
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#get
- * @kind function
- *
- * @description
- * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.
- *
- * @param {string} key the key of the data to be retrieved
- * @returns {*} the value stored.
- */
- get: function(key) {
- if (capacity < Number.MAX_VALUE) {
- var lruEntry = lruHash[key];
-
- if (!lruEntry) return;
-
- refresh(lruEntry);
- }
-
- return data[key];
- },
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#remove
- * @kind function
- *
- * @description
- * Removes an entry from the {@link $cacheFactory.Cache Cache} object.
- *
- * @param {string} key the key of the entry to be removed
- */
- remove: function(key) {
- if (capacity < Number.MAX_VALUE) {
- var lruEntry = lruHash[key];
-
- if (!lruEntry) return;
-
- if (lruEntry === freshEnd) freshEnd = lruEntry.p;
- if (lruEntry === staleEnd) staleEnd = lruEntry.n;
- link(lruEntry.n,lruEntry.p);
-
- delete lruHash[key];
- }
-
- if (!(key in data)) return;
-
- delete data[key];
- size--;
- },
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#removeAll
- * @kind function
- *
- * @description
- * Clears the cache object of any entries.
- */
- removeAll: function() {
- data = createMap();
- size = 0;
- lruHash = createMap();
- freshEnd = staleEnd = null;
- },
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#destroy
- * @kind function
- *
- * @description
- * Destroys the {@link $cacheFactory.Cache Cache} object entirely,
- * removing it from the {@link $cacheFactory $cacheFactory} set.
- */
- destroy: function() {
- data = null;
- stats = null;
- lruHash = null;
- delete caches[cacheId];
- },
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#info
- * @kind function
- *
- * @description
- * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.
- *
- * @returns {object} an object with the following properties:
- * <ul>
- * <li>**id**: the id of the cache instance</li>
- * <li>**size**: the number of entries kept in the cache instance</li>
- * <li>**...**: any additional properties from the options object when creating the
- * cache.</li>
- * </ul>
- */
- info: function() {
- return extend({}, stats, {size: size});
- }
- });
-
-
- /**
- * makes the `entry` the freshEnd of the LRU linked list
- */
- function refresh(entry) {
- if (entry !== freshEnd) {
- if (!staleEnd) {
- staleEnd = entry;
- } else if (staleEnd === entry) {
- staleEnd = entry.n;
- }
-
- link(entry.n, entry.p);
- link(entry, freshEnd);
- freshEnd = entry;
- freshEnd.n = null;
- }
- }
-
-
- /**
- * bidirectionally links two entries of the LRU linked list
- */
- function link(nextEntry, prevEntry) {
- if (nextEntry !== prevEntry) {
- if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
- if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
- }
- }
- }
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory#info
- *
- * @description
- * Get information about all the caches that have been created
- *
- * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`
- */
- cacheFactory.info = function() {
- var info = {};
- forEach(caches, function(cache, cacheId) {
- info[cacheId] = cache.info();
- });
- return info;
- };
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory#get
- *
- * @description
- * Get access to a cache object by the `cacheId` used when it was created.
- *
- * @param {string} cacheId Name or id of a cache to access.
- * @returns {object} Cache object identified by the cacheId or undefined if no such cache.
- */
- cacheFactory.get = function(cacheId) {
- return caches[cacheId];
- };
-
-
- return cacheFactory;
- };
-}
-
-/**
- * @ngdoc service
- * @name $templateCache
- * @this
- *
- * @description
- * The first time a template is used, it is loaded in the template cache for quick retrieval. You
- * can load templates directly into the cache in a `script` tag, or by consuming the
- * `$templateCache` service directly.
- *
- * Adding via the `script` tag:
- *
- * ```html
- * <script type="text/ng-template" id="templateId.html">
- * <p>This is the content of the template</p>
- * </script>
- * ```
- *
- * **Note:** the `script` tag containing the template does not need to be included in the `head` of
- * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE,
- * element with ng-app attribute), otherwise the template will be ignored.
- *
- * Adding via the `$templateCache` service:
- *
- * ```js
- * var myApp = angular.module('myApp', []);
- * myApp.run(function($templateCache) {
- * $templateCache.put('templateId.html', 'This is the content of the template');
- * });
- * ```
- *
- * To retrieve the template later, simply use it in your component:
- * ```js
- * myApp.component('myComponent', {
- * templateUrl: 'templateId.html'
- * });
- * ```
- *
- * or get it via the `$templateCache` service:
- * ```js
- * $templateCache.get('templateId.html')
- * ```
- *
- * See {@link ng.$cacheFactory $cacheFactory}.
- *
- */
-function $TemplateCacheProvider() {
- this.$get = ['$cacheFactory', function($cacheFactory) {
- return $cacheFactory('templates');
- }];
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables like document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!
- *
- * DOM-related variables:
- *
- * - "node" - DOM Node
- * - "element" - DOM Element or Node
- * - "$node" or "$element" - jqLite-wrapped node or element
- *
- *
- * Compiler related stuff:
- *
- * - "linkFn" - linking fn of a single directive
- * - "nodeLinkFn" - function that aggregates all linking fns for a particular node
- * - "childLinkFn" - function that aggregates all linking fns for child nodes of a particular node
- * - "compositeLinkFn" - function that aggregates all linking fns for a compilation root (nodeList)
- */
-
-
-/**
- * @ngdoc service
- * @name $compile
- * @kind function
- *
- * @description
- * Compiles an HTML string or DOM into a template and produces a template function, which
- * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.
- *
- * The compilation is a process of walking the DOM tree and matching DOM elements to
- * {@link ng.$compileProvider#directive directives}.
- *
- * <div class="alert alert-warning">
- * **Note:** This document is an in-depth reference of all directive options.
- * For a gentle introduction to directives with examples of common use cases,
- * see the {@link guide/directive directive guide}.
- * </div>
- *
- * ## Comprehensive Directive API
- *
- * There are many different options for a directive.
- *
- * The difference resides in the return value of the factory function.
- * You can either return a {@link $compile#directive-definition-object Directive Definition Object (see below)}
- * that defines the directive properties, or just the `postLink` function (all other properties will have
- * the default values).
- *
- * <div class="alert alert-success">
- * **Best Practice:** It's recommended to use the "directive definition object" form.
- * </div>
- *
- * Here's an example directive declared with a Directive Definition Object:
- *
- * ```js
- * var myModule = angular.module(...);
- *
- * myModule.directive('directiveName', function factory(injectables) {
- * var directiveDefinitionObject = {
- * {@link $compile#-priority- priority}: 0,
- * {@link $compile#-template- template}: '<div></div>', // or // function(tElement, tAttrs) { ... },
- * // or
- * // {@link $compile#-templateurl- templateUrl}: 'directive.html', // or // function(tElement, tAttrs) { ... },
- * {@link $compile#-transclude- transclude}: false,
- * {@link $compile#-restrict- restrict}: 'A',
- * {@link $compile#-templatenamespace- templateNamespace}: 'html',
- * {@link $compile#-scope- scope}: false,
- * {@link $compile#-controller- controller}: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
- * {@link $compile#-controlleras- controllerAs}: 'stringIdentifier',
- * {@link $compile#-bindtocontroller- bindToController}: false,
- * {@link $compile#-require- require}: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],
- * {@link $compile#-multielement- multiElement}: false,
- * {@link $compile#-compile- compile}: function compile(tElement, tAttrs, transclude) {
- * return {
- * {@link $compile#pre-linking-function pre}: function preLink(scope, iElement, iAttrs, controller) { ... },
- * {@link $compile#post-linking-function post}: function postLink(scope, iElement, iAttrs, controller) { ... }
- * }
- * // or
- * // return function postLink( ... ) { ... }
- * },
- * // or
- * // {@link $compile#-link- link}: {
- * // {@link $compile#pre-linking-function pre}: function preLink(scope, iElement, iAttrs, controller) { ... },
- * // {@link $compile#post-linking-function post}: function postLink(scope, iElement, iAttrs, controller) { ... }
- * // }
- * // or
- * // {@link $compile#-link- link}: function postLink( ... ) { ... }
- * };
- * return directiveDefinitionObject;
- * });
- * ```
- *
- * <div class="alert alert-warning">
- * **Note:** Any unspecified options will use the default value. You can see the default values below.
- * </div>
- *
- * Therefore the above can be simplified as:
- *
- * ```js
- * var myModule = angular.module(...);
- *
- * myModule.directive('directiveName', function factory(injectables) {
- * var directiveDefinitionObject = {
- * link: function postLink(scope, iElement, iAttrs) { ... }
- * };
- * return directiveDefinitionObject;
- * // or
- * // return function postLink(scope, iElement, iAttrs) { ... }
- * });
- * ```
- *
- * ### Life-cycle hooks
- * Directive controllers can provide the following methods that are called by Angular at points in the life-cycle of the
- * directive:
- * * `$onInit()` - Called on each controller after all the controllers on an element have been constructed and
- * had their bindings initialized (and before the pre &amp; post linking functions for the directives on
- * this element). This is a good place to put initialization code for your controller.
- * * `$onChanges(changesObj)` - Called whenever one-way (`<`) or interpolation (`@`) bindings are updated. The
- * `changesObj` is a hash whose keys are the names of the bound properties that have changed, and the values are an
- * object of the form `{ currentValue, previousValue, isFirstChange() }`. Use this hook to trigger updates within a
- * component such as cloning the bound value to prevent accidental mutation of the outer value.
- * * `$doCheck()` - Called on each turn of the digest cycle. Provides an opportunity to detect and act on
- * changes. Any actions that you wish to take in response to the changes that you detect must be
- * invoked from this hook; implementing this has no effect on when `$onChanges` is called. For example, this hook
- * could be useful if you wish to perform a deep equality check, or to check a Date object, changes to which would not
- * be detected by Angular's change detector and thus not trigger `$onChanges`. This hook is invoked with no arguments;
- * if detecting changes, you must store the previous value(s) for comparison to the current values.
- * * `$onDestroy()` - Called on a controller when its containing scope is destroyed. Use this hook for releasing
- * external resources, watches and event handlers. Note that components have their `$onDestroy()` hooks called in
- * the same order as the `$scope.$broadcast` events are triggered, which is top down. This means that parent
- * components will have their `$onDestroy()` hook called before child components.
- * * `$postLink()` - Called after this controller's element and its children have been linked. Similar to the post-link
- * function this hook can be used to set up DOM event handlers and do direct DOM manipulation.
- * Note that child elements that contain `templateUrl` directives will not have been compiled and linked since
- * they are waiting for their template to load asynchronously and their own compilation and linking has been
- * suspended until that occurs.
- *
- * #### Comparison with Angular 2 life-cycle hooks
- * Angular 2 also uses life-cycle hooks for its components. While the Angular 1 life-cycle hooks are similar there are
- * some differences that you should be aware of, especially when it comes to moving your code from Angular 1 to Angular 2:
- *
- * * Angular 1 hooks are prefixed with `$`, such as `$onInit`. Angular 2 hooks are prefixed with `ng`, such as `ngOnInit`.
- * * Angular 1 hooks can be defined on the controller prototype or added to the controller inside its constructor.
- * In Angular 2 you can only define hooks on the prototype of the Component class.
- * * Due to the differences in change-detection, you may get many more calls to `$doCheck` in Angular 1 than you would to
- * `ngDoCheck` in Angular 2
- * * Changes to the model inside `$doCheck` will trigger new turns of the digest loop, which will cause the changes to be
- * propagated throughout the application.
- * Angular 2 does not allow the `ngDoCheck` hook to trigger a change outside of the component. It will either throw an
- * error or do nothing depending upon the state of `enableProdMode()`.
- *
- * #### Life-cycle hook examples
- *
- * This example shows how you can check for mutations to a Date object even though the identity of the object
- * has not changed.
- *
- * <example name="doCheckDateExample" module="do-check-module">
- * <file name="app.js">
- * angular.module('do-check-module', [])
- * .component('app', {
- * template:
- * 'Month: <input ng-model="$ctrl.month" ng-change="$ctrl.updateDate()">' +
- * 'Date: {{ $ctrl.date }}' +
- * '<test date="$ctrl.date"></test>',
- * controller: function() {
- * this.date = new Date();
- * this.month = this.date.getMonth();
- * this.updateDate = function() {
- * this.date.setMonth(this.month);
- * };
- * }
- * })
- * .component('test', {
- * bindings: { date: '<' },
- * template:
- * '<pre>{{ $ctrl.log | json }}</pre>',
- * controller: function() {
- * var previousValue;
- * this.log = [];
- * this.$doCheck = function() {
- * var currentValue = this.date && this.date.valueOf();
- * if (previousValue !== currentValue) {
- * this.log.push('doCheck: date mutated: ' + this.date);
- * previousValue = currentValue;
- * }
- * };
- * }
- * });
- * </file>
- * <file name="index.html">
- * <app></app>
- * </file>
- * </example>
- *
- * This example show how you might use `$doCheck` to trigger changes in your component's inputs even if the
- * actual identity of the component doesn't change. (Be aware that cloning and deep equality checks on large
- * arrays or objects can have a negative impact on your application performance)
- *
- * <example name="doCheckArrayExample" module="do-check-module">
- * <file name="index.html">
- * <div ng-init="items = []">
- * <button ng-click="items.push(items.length)">Add Item</button>
- * <button ng-click="items = []">Reset Items</button>
- * <pre>{{ items }}</pre>
- * <test items="items"></test>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('do-check-module', [])
- * .component('test', {
- * bindings: { items: '<' },
- * template:
- * '<pre>{{ $ctrl.log | json }}</pre>',
- * controller: function() {
- * this.log = [];
- *
- * this.$doCheck = function() {
- * if (this.items_ref !== this.items) {
- * this.log.push('doCheck: items changed');
- * this.items_ref = this.items;
- * }
- * if (!angular.equals(this.items_clone, this.items)) {
- * this.log.push('doCheck: items mutated');
- * this.items_clone = angular.copy(this.items);
- * }
- * };
- * }
- * });
- * </file>
- * </example>
- *
- *
- * ### Directive Definition Object
- *
- * The directive definition object provides instructions to the {@link ng.$compile
- * compiler}. The attributes are:
- *
- * #### `multiElement`
- * When this property is set to true (default is `false`), the HTML compiler will collect DOM nodes between
- * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them
- * together as the directive elements. It is recommended that this feature be used on directives
- * which are not strictly behavioral (such as {@link ngClick}), and which
- * do not manipulate or replace child nodes (such as {@link ngInclude}).
- *
- * #### `priority`
- * When there are multiple directives defined on a single DOM element, sometimes it
- * is necessary to specify the order in which the directives are applied. The `priority` is used
- * to sort the directives before their `compile` functions get called. Priority is defined as a
- * number. Directives with greater numerical `priority` are compiled first. Pre-link functions
- * are also run in priority order, but post-link functions are run in reverse order. The order
- * of directives with the same priority is undefined. The default priority is `0`.
- *
- * #### `terminal`
- * If set to true then the current `priority` will be the last set of directives
- * which will execute (any directives at the current priority will still execute
- * as the order of execution on same `priority` is undefined). Note that expressions
- * and other directives used in the directive's template will also be excluded from execution.
- *
- * #### `scope`
- * The scope property can be `false`, `true`, or an object:
- *
- * * **`false` (default):** No scope will be created for the directive. The directive will use its
- * parent's scope.
- *
- * * **`true`:** A new child scope that prototypically inherits from its parent will be created for
- * the directive's element. If multiple directives on the same element request a new scope,
- * only one new scope is created.
- *
- * * **`{...}` (an object hash):** A new "isolate" scope is created for the directive's element. The
- * 'isolate' scope differs from normal scope in that it does not prototypically inherit from its parent
- * scope. This is useful when creating reusable components, which should not accidentally read or modify
- * data in the parent scope.
- *
- * The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the
- * directive's element. These local properties are useful for aliasing values for templates. The keys in
- * the object hash map to the name of the property on the isolate scope; the values define how the property
- * is bound to the parent scope, via matching attributes on the directive's element:
- *
- * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is
- * always a string since DOM attributes are strings. If no `attr` name is specified then the
- * attribute name is assumed to be the same as the local name. Given `<my-component
- * my-attr="hello {{name}}">` and the isolate scope definition `scope: { localName:'@myAttr' }`,
- * the directive's scope property `localName` will reflect the interpolated value of `hello
- * {{name}}`. As the `name` attribute changes so will the `localName` property on the directive's
- * scope. The `name` is read from the parent scope (not the directive's scope).
- *
- * * `=` or `=attr` - set up a bidirectional binding between a local scope property and an expression
- * passed via the attribute `attr`. The expression is evaluated in the context of the parent scope.
- * If no `attr` name is specified then the attribute name is assumed to be the same as the local
- * name. Given `<my-component my-attr="parentModel">` and the isolate scope definition `scope: {
- * localModel: '=myAttr' }`, the property `localModel` on the directive's scope will reflect the
- * value of `parentModel` on the parent scope. Changes to `parentModel` will be reflected in
- * `localModel` and vice versa. Optional attributes should be marked as such with a question mark:
- * `=?` or `=?attr`. If the binding expression is non-assignable, or if the attribute isn't
- * optional and doesn't exist, an exception ({@link error/$compile/nonassign `$compile:nonassign`})
- * will be thrown upon discovering changes to the local value, since it will be impossible to sync
- * them back to the parent scope. By default, the {@link ng.$rootScope.Scope#$watch `$watch`}
- * method is used for tracking changes, and the equality check is based on object identity.
- * However, if an object literal or an array literal is passed as the binding expression, the
- * equality check is done by value (using the {@link angular.equals} function). It's also possible
- * to watch the evaluated value shallowly with {@link ng.$rootScope.Scope#$watchCollection
- * `$watchCollection`}: use `=*` or `=*attr` (`=*?` or `=*?attr` if the attribute is optional).
- *
- * * `<` or `<attr` - set up a one-way (one-directional) binding between a local scope property and an
- * expression passed via the attribute `attr`. The expression is evaluated in the context of the
- * parent scope. If no `attr` name is specified then the attribute name is assumed to be the same as the
- * local name. You can also make the binding optional by adding `?`: `<?` or `<?attr`.
- *
- * For example, given `<my-component my-attr="parentModel">` and directive definition of
- * `scope: { localModel:'<myAttr' }`, then the isolated scope property `localModel` will reflect the
- * value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected
- * in `localModel`, but changes in `localModel` will not reflect in `parentModel`. There are however
- * two caveats:
- * 1. one-way binding does not copy the value from the parent to the isolate scope, it simply
- * sets the same value. That means if your bound value is an object, changes to its properties
- * in the isolated scope will be reflected in the parent scope (because both reference the same object).
- * 2. one-way binding watches changes to the **identity** of the parent value. That means the
- * {@link ng.$rootScope.Scope#$watch `$watch`} on the parent value only fires if the reference
- * to the value has changed. In most cases, this should not be of concern, but can be important
- * to know if you one-way bind to an object, and then replace that object in the isolated scope.
- * If you now change a property of the object in your parent scope, the change will not be
- * propagated to the isolated scope, because the identity of the object on the parent scope
- * has not changed. Instead you must assign a new object.
- *
- * One-way binding is useful if you do not plan to propagate changes to your isolated scope bindings
- * back to the parent. However, it does not make this completely impossible.
- *
- * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope. If
- * no `attr` name is specified then the attribute name is assumed to be the same as the local name.
- * Given `<my-component my-attr="count = count + value">` and the isolate scope definition `scope: {
- * localFn:'&myAttr' }`, the isolate scope property `localFn` will point to a function wrapper for
- * the `count = count + value` expression. Often it's desirable to pass data from the isolated scope
- * via an expression to the parent scope. This can be done by passing a map of local variable names
- * and values into the expression wrapper fn. For example, if the expression is `increment(amount)`
- * then we can specify the amount value by calling the `localFn` as `localFn({amount: 22})`.
- *
- * In general it's possible to apply more than one directive to one element, but there might be limitations
- * depending on the type of scope required by the directives. The following points will help explain these limitations.
- * For simplicity only two directives are taken into account, but it is also applicable for several directives:
- *
- * * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope
- * * **child scope** + **no scope** => Both directives will share one single child scope
- * * **child scope** + **child scope** => Both directives will share one single child scope
- * * **isolated scope** + **no scope** => The isolated directive will use it's own created isolated scope. The other directive will use
- * its parent's scope
- * * **isolated scope** + **child scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives cannot
- * be applied to the same element.
- * * **isolated scope** + **isolated scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives
- * cannot be applied to the same element.
- *
- *
- * #### `bindToController`
- * This property is used to bind scope properties directly to the controller. It can be either
- * `true` or an object hash with the same format as the `scope` property.
- *
- * When an isolate scope is used for a directive (see above), `bindToController: true` will
- * allow a component to have its properties bound to the controller, rather than to scope.
- *
- * After the controller is instantiated, the initial values of the isolate scope bindings will be bound to the controller
- * properties. You can access these bindings once they have been initialized by providing a controller method called
- * `$onInit`, which is called after all the controllers on an element have been constructed and had their bindings
- * initialized.
- *
- * <div class="alert alert-warning">
- * **Deprecation warning:** although bindings for non-ES6 class controllers are currently
- * bound to `this` before the controller constructor is called, this use is now deprecated. Please place initialization
- * code that relies upon bindings inside a `$onInit` method on the controller, instead.
- * </div>
- *
- * It is also possible to set `bindToController` to an object hash with the same format as the `scope` property.
- * This will set up the scope bindings to the controller directly. Note that `scope` can still be used
- * to define which kind of scope is created. By default, no scope is created. Use `scope: {}` to create an isolate
- * scope (useful for component directives).
- *
- * If both `bindToController` and `scope` are defined and have object hashes, `bindToController` overrides `scope`.
- *
- *
- * #### `controller`
- * Controller constructor function. The controller is instantiated before the
- * pre-linking phase and can be accessed by other directives (see
- * `require` attribute). This allows the directives to communicate with each other and augment
- * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:
- *
- * * `$scope` - Current scope associated with the element
- * * `$element` - Current element
- * * `$attrs` - Current attributes object for the element
- * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:
- * `function([scope], cloneLinkingFn, futureParentElement, slotName)`:
- * * `scope`: (optional) override the scope.
- * * `cloneLinkingFn`: (optional) argument to create clones of the original transcluded content.
- * * `futureParentElement` (optional):
- * * defines the parent to which the `cloneLinkingFn` will add the cloned elements.
- * * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.
- * * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)
- * and when the `cloneLinkingFn` is passed,
- * as those elements need to created and cloned in a special way when they are defined outside their
- * usual containers (e.g. like `<svg>`).
- * * See also the `directive.templateNamespace` property.
- * * `slotName`: (optional) the name of the slot to transclude. If falsy (e.g. `null`, `undefined` or `''`)
- * then the default transclusion is provided.
- * The `$transclude` function also has a method on it, `$transclude.isSlotFilled(slotName)`, which returns
- * `true` if the specified slot contains content (i.e. one or more DOM nodes).
- *
- * #### `require`
- * Require another directive and inject its controller as the fourth argument to the linking function. The
- * `require` property can be a string, an array or an object:
- * * a **string** containing the name of the directive to pass to the linking function
- * * an **array** containing the names of directives to pass to the linking function. The argument passed to the
- * linking function will be an array of controllers in the same order as the names in the `require` property
- * * an **object** whose property values are the names of the directives to pass to the linking function. The argument
- * passed to the linking function will also be an object with matching keys, whose values will hold the corresponding
- * controllers.
- *
- * If the `require` property is an object and `bindToController` is truthy, then the required controllers are
- * bound to the controller using the keys of the `require` property. This binding occurs after all the controllers
- * have been constructed but before `$onInit` is called.
- * If the name of the required controller is the same as the local name (the key), the name can be
- * omitted. For example, `{parentDir: '^^'}` is equivalent to `{parentDir: '^^parentDir'}`.
- * See the {@link $compileProvider#component} helper for an example of how this can be used.
- * If no such required directive(s) can be found, or if the directive does not have a controller, then an error is
- * raised (unless no link function is specified and the required controllers are not being bound to the directive
- * controller, in which case error checking is skipped). The name can be prefixed with:
- *
- * * (no prefix) - Locate the required controller on the current element. Throw an error if not found.
- * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.
- * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.
- * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.
- * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass
- * `null` to the `link` fn if not found.
- * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass
- * `null` to the `link` fn if not found.
- *
- *
- * #### `controllerAs`
- * Identifier name for a reference to the controller in the directive's scope.
- * This allows the controller to be referenced from the directive template. This is especially
- * useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible
- * to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the
- * `controllerAs` reference might overwrite a property that already exists on the parent scope.
- *
- *
- * #### `restrict`
- * String of subset of `EACM` which restricts the directive to a specific directive
- * declaration style. If omitted, the defaults (elements and attributes) are used.
- *
- * * `E` - Element name (default): `<my-directive></my-directive>`
- * * `A` - Attribute (default): `<div my-directive="exp"></div>`
- * * `C` - Class: `<div class="my-directive: exp;"></div>`
- * * `M` - Comment: `<!-- directive: my-directive exp -->`
- *
- *
- * #### `templateNamespace`
- * String representing the document type used by the markup in the template.
- * AngularJS needs this information as those elements need to be created and cloned
- * in a special way when they are defined outside their usual containers like `<svg>` and `<math>`.
- *
- * * `html` - All root nodes in the template are HTML. Root nodes may also be
- * top-level elements such as `<svg>` or `<math>`.
- * * `svg` - The root nodes in the template are SVG elements (excluding `<math>`).
- * * `math` - The root nodes in the template are MathML elements (excluding `<svg>`).
- *
- * If no `templateNamespace` is specified, then the namespace is considered to be `html`.
- *
- * #### `template`
- * HTML markup that may:
- * * Replace the contents of the directive's element (default).
- * * Replace the directive's element itself (if `replace` is true - DEPRECATED).
- * * Wrap the contents of the directive's element (if `transclude` is true).
- *
- * Value may be:
- *
- * * A string. For example `<div red-on-hover>{{delete_str}}</div>`.
- * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`
- * function api below) and returns a string value.
- *
- *
- * #### `templateUrl`
- * This is similar to `template` but the template is loaded from the specified URL, asynchronously.
- *
- * Because template loading is asynchronous the compiler will suspend compilation of directives on that element
- * for later when the template has been resolved. In the meantime it will continue to compile and link
- * sibling and parent elements as though this element had not contained any directives.
- *
- * The compiler does not suspend the entire compilation to wait for templates to be loaded because this
- * would result in the whole app "stalling" until all templates are loaded asynchronously - even in the
- * case when only one deeply nested directive has `templateUrl`.
- *
- * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}
- *
- * You can specify `templateUrl` as a string representing the URL or as a function which takes two
- * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns
- * a string value representing the url. In either case, the template URL is passed through {@link
- * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.
- *
- *
- * #### `replace` ([*DEPRECATED*!], will be removed in next major release - i.e. v2.0)
- * specify what the template should replace. Defaults to `false`.
- *
- * * `true` - the template will replace the directive's element.
- * * `false` - the template will replace the contents of the directive's element.
- *
- * The replacement process migrates all of the attributes / classes from the old element to the new
- * one. See the {@link guide/directive#template-expanding-directive
- * Directives Guide} for an example.
- *
- * There are very few scenarios where element replacement is required for the application function,
- * the main one being reusable custom components that are used within SVG contexts
- * (because SVG doesn't work with custom elements in the DOM tree).
- *
- * #### `transclude`
- * Extract the contents of the element where the directive appears and make it available to the directive.
- * The contents are compiled and provided to the directive as a **transclusion function**. See the
- * {@link $compile#transclusion Transclusion} section below.
- *
- *
- * #### `compile`
- *
- * ```js
- * function compile(tElement, tAttrs, transclude) { ... }
- * ```
- *
- * The compile function deals with transforming the template DOM. Since most directives do not do
- * template transformation, it is not used often. The compile function takes the following arguments:
- *
- * * `tElement` - template element - The element where the directive has been declared. It is
- * safe to do template transformation on the element and child elements only.
- *
- * * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared
- * between all directive compile functions.
- *
- * * `transclude` - [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`
- *
- * <div class="alert alert-warning">
- * **Note:** The template instance and the link instance may be different objects if the template has
- * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that
- * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration
- * should be done in a linking function rather than in a compile function.
- * </div>
-
- * <div class="alert alert-warning">
- * **Note:** The compile function cannot handle directives that recursively use themselves in their
- * own templates or compile functions. Compiling these directives results in an infinite loop and
- * stack overflow errors.
- *
- * This can be avoided by manually using $compile in the postLink function to imperatively compile
- * a directive's template instead of relying on automatic template compilation via `template` or
- * `templateUrl` declaration or manual compilation inside the compile function.
- * </div>
- *
- * <div class="alert alert-danger">
- * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it
- * e.g. does not know about the right outer scope. Please use the transclude function that is passed
- * to the link function instead.
- * </div>
-
- * A compile function can have a return value which can be either a function or an object.
- *
- * * returning a (post-link) function - is equivalent to registering the linking function via the
- * `link` property of the config object when the compile function is empty.
- *
- * * returning an object with function(s) registered via `pre` and `post` properties - allows you to
- * control when a linking function should be called during the linking phase. See info about
- * pre-linking and post-linking functions below.
- *
- *
- * #### `link`
- * This property is used only if the `compile` property is not defined.
- *
- * ```js
- * function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }
- * ```
- *
- * The link function is responsible for registering DOM listeners as well as updating the DOM. It is
- * executed after the template has been cloned. This is where most of the directive logic will be
- * put.
- *
- * * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the
- * directive for registering {@link ng.$rootScope.Scope#$watch watches}.
- *
- * * `iElement` - instance element - The element where the directive is to be used. It is safe to
- * manipulate the children of the element only in `postLink` function since the children have
- * already been linked.
- *
- * * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared
- * between all directive linking functions.
- *
- * * `controller` - the directive's required controller instance(s) - Instances are shared
- * among all directives, which allows the directives to use the controllers as a communication
- * channel. The exact value depends on the directive's `require` property:
- * * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one
- * * `string`: the controller instance
- * * `array`: array of controller instances
- *
- * If a required controller cannot be found, and it is optional, the instance is `null`,
- * otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.
- *
- * Note that you can also require the directive's own controller - it will be made available like
- * any other controller.
- *
- * * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.
- * This is the same as the `$transclude` parameter of directive controllers,
- * see {@link ng.$compile#-controller- the controller section for details}.
- * `function([scope], cloneLinkingFn, futureParentElement)`.
- *
- * #### Pre-linking function
- *
- * Executed before the child elements are linked. Not safe to do DOM transformation since the
- * compiler linking function will fail to locate the correct elements for linking.
- *
- * #### Post-linking function
- *
- * Executed after the child elements are linked.
- *
- * Note that child elements that contain `templateUrl` directives will not have been compiled
- * and linked since they are waiting for their template to load asynchronously and their own
- * compilation and linking has been suspended until that occurs.
- *
- * It is safe to do DOM transformation in the post-linking function on elements that are not waiting
- * for their async templates to be resolved.
- *
- *
- * ### Transclusion
- *
- * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and
- * copying them to another part of the DOM, while maintaining their connection to the original AngularJS
- * scope from where they were taken.
- *
- * Transclusion is used (often with {@link ngTransclude}) to insert the
- * original contents of a directive's element into a specified place in the template of the directive.
- * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded
- * content has access to the properties on the scope from which it was taken, even if the directive
- * has isolated scope.
- * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.
- *
- * This makes it possible for the widget to have private state for its template, while the transcluded
- * content has access to its originating scope.
- *
- * <div class="alert alert-warning">
- * **Note:** When testing an element transclude directive you must not place the directive at the root of the
- * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives
- * Testing Transclusion Directives}.
- * </div>
- *
- * There are three kinds of transclusion depending upon whether you want to transclude just the contents of the
- * directive's element, the entire element or multiple parts of the element contents:
- *
- * * `true` - transclude the content (i.e. the child nodes) of the directive's element.
- * * `'element'` - transclude the whole of the directive's element including any directives on this
- * element that defined at a lower priority than this directive. When used, the `template`
- * property is ignored.
- * * **`{...}` (an object hash):** - map elements of the content onto transclusion "slots" in the template.
- *
- * **Mult-slot transclusion** is declared by providing an object for the `transclude` property.
- *
- * This object is a map where the keys are the name of the slot to fill and the value is an element selector
- * used to match the HTML to the slot. The element selector should be in normalized form (e.g. `myElement`)
- * and will match the standard element variants (e.g. `my-element`, `my:element`, `data-my-element`, etc).
- *
- * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
- *
- * If the element selector is prefixed with a `?` then that slot is optional.
- *
- * For example, the transclude object `{ slotA: '?myCustomElement' }` maps `<my-custom-element>` elements to
- * the `slotA` slot, which can be accessed via the `$transclude` function or via the {@link ngTransclude} directive.
- *
- * Slots that are not marked as optional (`?`) will trigger a compile time error if there are no matching elements
- * in the transclude content. If you wish to know if an optional slot was filled with content, then you can call
- * `$transclude.isSlotFilled(slotName)` on the transclude function passed to the directive's link function and
- * injectable into the directive's controller.
- *
- *
- * #### Transclusion Functions
- *
- * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion
- * function** to the directive's `link` function and `controller`. This transclusion function is a special
- * **linking function** that will return the compiled contents linked to a new transclusion scope.
- *
- * <div class="alert alert-info">
- * If you are just using {@link ngTransclude} then you don't need to worry about this function, since
- * ngTransclude will deal with it for us.
- * </div>
- *
- * If you want to manually control the insertion and removal of the transcluded content in your directive
- * then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery
- * object that contains the compiled DOM, which is linked to the correct transclusion scope.
- *
- * When you call a transclusion function you can pass in a **clone attach function**. This function accepts
- * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded
- * content and the `scope` is the newly created transclusion scope, which the clone will be linked to.
- *
- * <div class="alert alert-info">
- * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a transclude function
- * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.
- * </div>
- *
- * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone
- * attach function**:
- *
- * ```js
- * var transcludedContent, transclusionScope;
- *
- * $transclude(function(clone, scope) {
- * element.append(clone);
- * transcludedContent = clone;
- * transclusionScope = scope;
- * });
- * ```
- *
- * Later, if you want to remove the transcluded content from your DOM then you should also destroy the
- * associated transclusion scope:
- *
- * ```js
- * transcludedContent.remove();
- * transclusionScope.$destroy();
- * ```
- *
- * <div class="alert alert-info">
- * **Best Practice**: if you intend to add and remove transcluded content manually in your directive
- * (by calling the transclude function to get the DOM and calling `element.remove()` to remove it),
- * then you are also responsible for calling `$destroy` on the transclusion scope.
- * </div>
- *
- * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}
- * automatically destroy their transcluded clones as necessary so you do not need to worry about this if
- * you are simply using {@link ngTransclude} to inject the transclusion into your directive.
- *
- *
- * #### Transclusion Scopes
- *
- * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion
- * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed
- * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it
- * was taken.
- *
- * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look
- * like this:
- *
- * ```html
- * <div ng-app>
- * <div isolate>
- * <div transclusion>
- * </div>
- * </div>
- * </div>
- * ```
- *
- * The `$parent` scope hierarchy will look like this:
- *
- ```
- - $rootScope
- - isolate
- - transclusion
- ```
- *
- * but the scopes will inherit prototypically from different scopes to their `$parent`.
- *
- ```
- - $rootScope
- - transclusion
- - isolate
- ```
- *
- *
- * ### Attributes
- *
- * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the
- * `link()` or `compile()` functions. It has a variety of uses.
- *
- * * *Accessing normalized attribute names:* Directives like 'ngBind' can be expressed in many ways:
- * 'ng:bind', `data-ng-bind`, or 'x-ng-bind'. The attributes object allows for normalized access
- * to the attributes.
- *
- * * *Directive inter-communication:* All directives share the same instance of the attributes
- * object which allows the directives to use the attributes object as inter directive
- * communication.
- *
- * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object
- * allowing other directives to read the interpolated value.
- *
- * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes
- * that contain interpolation (e.g. `src="{{bar}}"`). Not only is this very efficient but it's also
- * the only way to easily get the actual value because during the linking phase the interpolation
- * hasn't been evaluated yet and so the value is at this time set to `undefined`.
- *
- * ```js
- * function linkingFn(scope, elm, attrs, ctrl) {
- * // get the attribute value
- * console.log(attrs.ngModel);
- *
- * // change the attribute
- * attrs.$set('ngModel', 'new value');
- *
- * // observe changes to interpolated attribute
- * attrs.$observe('ngModel', function(value) {
- * console.log('ngModel has changed value to ' + value);
- * });
- * }
- * ```
- *
- * ## Example
- *
- * <div class="alert alert-warning">
- * **Note**: Typically directives are registered with `module.directive`. The example below is
- * to illustrate how `$compile` works.
- * </div>
- *
- <example module="compileExample" name="compile">
- <file name="index.html">
- <script>
- angular.module('compileExample', [], function($compileProvider) {
- // configure new 'compile' directive by passing a directive
- // factory function. The factory function injects the '$compile'
- $compileProvider.directive('compile', function($compile) {
- // directive factory creates a link function
- return function(scope, element, attrs) {
- scope.$watch(
- function(scope) {
- // watch the 'compile' expression for changes
- return scope.$eval(attrs.compile);
- },
- function(value) {
- // when the 'compile' expression changes
- // assign it into the current DOM
- element.html(value);
-
- // compile the new DOM and link it to the current
- // scope.
- // NOTE: we only compile .childNodes so that
- // we don't get into infinite loop compiling ourselves
- $compile(element.contents())(scope);
- }
- );
- };
- });
- })
- .controller('GreeterController', ['$scope', function($scope) {
- $scope.name = 'Angular';
- $scope.html = 'Hello {{name}}';
- }]);
- </script>
- <div ng-controller="GreeterController">
- <input ng-model="name"> <br/>
- <textarea ng-model="html"></textarea> <br/>
- <div compile="html"></div>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should auto compile', function() {
- var textarea = $('textarea');
- var output = $('div[compile]');
- // The initial state reads 'Hello Angular'.
- expect(output.getText()).toBe('Hello Angular');
- textarea.clear();
- textarea.sendKeys('{{name}}!');
- expect(output.getText()).toBe('Angular!');
- });
- </file>
- </example>
-
- *
- *
- * @param {string|DOMElement} element Element or HTML string to compile into a template function.
- * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.
- *
- * <div class="alert alert-danger">
- * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it
- * e.g. will not use the right outer scope. Please pass the transclude function as a
- * `parentBoundTranscludeFn` to the link function instead.
- * </div>
- *
- * @param {number} maxPriority only apply directives lower than given priority (Only effects the
- * root element(s), not their children)
- * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template
- * (a DOM element/tree) to a scope. Where:
- *
- * * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.
- * * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the
- * `template` and call the `cloneAttachFn` function allowing the caller to attach the
- * cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is
- * called as: <br/> `cloneAttachFn(clonedElement, scope)` where:
- *
- * * `clonedElement` - is a clone of the original `element` passed into the compiler.
- * * `scope` - is the current scope with which the linking function is working with.
- *
- * * `options` - An optional object hash with linking options. If `options` is provided, then the following
- * keys may be used to control linking behavior:
- *
- * * `parentBoundTranscludeFn` - the transclude function made available to
- * directives; if given, it will be passed through to the link functions of
- * directives found in `element` during compilation.
- * * `transcludeControllers` - an object hash with keys that map controller names
- * to a hash with the key `instance`, which maps to the controller instance;
- * if given, it will make the controllers available to directives on the compileNode:
- * ```
- * {
- * parent: {
- * instance: parentControllerInstance
- * }
- * }
- * ```
- * * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add
- * the cloned elements; only needed for transcludes that are allowed to contain non html
- * elements (e.g. SVG elements). See also the directive.controller property.
- *
- * Calling the linking function returns the element of the template. It is either the original
- * element passed in, or the clone of the element if the `cloneAttachFn` is provided.
- *
- * After linking the view is not updated until after a call to $digest which typically is done by
- * Angular automatically.
- *
- * If you need access to the bound view, there are two ways to do it:
- *
- * - If you are not asking the linking function to clone the template, create the DOM element(s)
- * before you send them to the compiler and keep this reference around.
- * ```js
- * var element = $compile('<p>{{total}}</p>')(scope);
- * ```
- *
- * - if on the other hand, you need the element to be cloned, the view reference from the original
- * example would not point to the clone, but rather to the original template that was cloned. In
- * this case, you can access the clone via the cloneAttachFn:
- * ```js
- * var templateElement = angular.element('<p>{{total}}</p>'),
- * scope = ....;
- *
- * var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {
- * //attach the clone to DOM document at the right place
- * });
- *
- * //now we have reference to the cloned DOM via `clonedElement`
- * ```
- *
- *
- * For information on how the compiler works, see the
- * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.
- *
- * @knownIssue
- *
- * ### Double Compilation
- *
- Double compilation occurs when an already compiled part of the DOM gets
- compiled again. This is an undesired effect and can lead to misbehaving directives, performance issues,
- and memory leaks. Refer to the Compiler Guide {@link guide/compiler#double-compilation-and-how-to-avoid-it
- section on double compilation} for an in-depth explanation and ways to avoid it.
- *
- */
-
-var $compileMinErr = minErr('$compile');
-
-function UNINITIALIZED_VALUE() {}
-var _UNINITIALIZED_VALUE = new UNINITIALIZED_VALUE();
-
-/**
- * @ngdoc provider
- * @name $compileProvider
- *
- * @description
- */
-$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];
-/** @this */
-function $CompileProvider($provide, $$sanitizeUriProvider) {
- var hasDirectives = {},
- Suffix = 'Directive',
- COMMENT_DIRECTIVE_REGEXP = /^\s*directive:\s*([\w-]+)\s+(.*)$/,
- CLASS_DIRECTIVE_REGEXP = /(([\w-]+)(?::([^;]+))?;?)/,
- ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'),
- REQUIRE_PREFIX_REGEXP = /^(?:(\^\^?)?(\?)?(\^\^?)?)?/;
-
- // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes
- // The assumption is that future DOM event attribute names will begin with
- // 'on' and be composed of only English letters.
- var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;
- var bindingCache = createMap();
-
- function parseIsolateBindings(scope, directiveName, isController) {
- var LOCAL_REGEXP = /^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/;
-
- var bindings = createMap();
-
- forEach(scope, function(definition, scopeName) {
- if (definition in bindingCache) {
- bindings[scopeName] = bindingCache[definition];
- return;
- }
- var match = definition.match(LOCAL_REGEXP);
-
- if (!match) {
- throw $compileMinErr('iscp',
- 'Invalid {3} for directive \'{0}\'.' +
- ' Definition: {... {1}: \'{2}\' ...}',
- directiveName, scopeName, definition,
- (isController ? 'controller bindings definition' :
- 'isolate scope definition'));
- }
-
- bindings[scopeName] = {
- mode: match[1][0],
- collection: match[2] === '*',
- optional: match[3] === '?',
- attrName: match[4] || scopeName
- };
- if (match[4]) {
- bindingCache[definition] = bindings[scopeName];
- }
- });
-
- return bindings;
- }
-
- function parseDirectiveBindings(directive, directiveName) {
- var bindings = {
- isolateScope: null,
- bindToController: null
- };
- if (isObject(directive.scope)) {
- if (directive.bindToController === true) {
- bindings.bindToController = parseIsolateBindings(directive.scope,
- directiveName, true);
- bindings.isolateScope = {};
- } else {
- bindings.isolateScope = parseIsolateBindings(directive.scope,
- directiveName, false);
- }
- }
- if (isObject(directive.bindToController)) {
- bindings.bindToController =
- parseIsolateBindings(directive.bindToController, directiveName, true);
- }
- if (bindings.bindToController && !directive.controller) {
- // There is no controller
- throw $compileMinErr('noctrl',
- 'Cannot bind to controller without directive \'{0}\'s controller.',
- directiveName);
- }
- return bindings;
- }
-
- function assertValidDirectiveName(name) {
- var letter = name.charAt(0);
- if (!letter || letter !== lowercase(letter)) {
- throw $compileMinErr('baddir', 'Directive/Component name \'{0}\' is invalid. The first character must be a lowercase letter', name);
- }
- if (name !== name.trim()) {
- throw $compileMinErr('baddir',
- 'Directive/Component name \'{0}\' is invalid. The name should not contain leading or trailing whitespaces',
- name);
- }
- }
-
- function getDirectiveRequire(directive) {
- var require = directive.require || (directive.controller && directive.name);
-
- if (!isArray(require) && isObject(require)) {
- forEach(require, function(value, key) {
- var match = value.match(REQUIRE_PREFIX_REGEXP);
- var name = value.substring(match[0].length);
- if (!name) require[key] = match[0] + key;
- });
- }
-
- return require;
- }
-
- function getDirectiveRestrict(restrict, name) {
- if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) {
- throw $compileMinErr('badrestrict',
- 'Restrict property \'{0}\' of directive \'{1}\' is invalid',
- restrict,
- name);
- }
-
- return restrict || 'EA';
- }
-
- /**
- * @ngdoc method
- * @name $compileProvider#directive
- * @kind function
- *
- * @description
- * Register a new directive with the compiler.
- *
- * @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which
- * will match as <code>ng-bind</code>), or an object map of directives where the keys are the
- * names and the values are the factories.
- * @param {Function|Array} directiveFactory An injectable directive factory function. See the
- * {@link guide/directive directive guide} and the {@link $compile compile API} for more info.
- * @returns {ng.$compileProvider} Self for chaining.
- */
- this.directive = function registerDirective(name, directiveFactory) {
- assertArg(name, 'name');
- assertNotHasOwnProperty(name, 'directive');
- if (isString(name)) {
- assertValidDirectiveName(name);
- assertArg(directiveFactory, 'directiveFactory');
- if (!hasDirectives.hasOwnProperty(name)) {
- hasDirectives[name] = [];
- $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',
- function($injector, $exceptionHandler) {
- var directives = [];
- forEach(hasDirectives[name], function(directiveFactory, index) {
- try {
- var directive = $injector.invoke(directiveFactory);
- if (isFunction(directive)) {
- directive = { compile: valueFn(directive) };
- } else if (!directive.compile && directive.link) {
- directive.compile = valueFn(directive.link);
- }
- directive.priority = directive.priority || 0;
- directive.index = index;
- directive.name = directive.name || name;
- directive.require = getDirectiveRequire(directive);
- directive.restrict = getDirectiveRestrict(directive.restrict, name);
- directive.$$moduleName = directiveFactory.$$moduleName;
- directives.push(directive);
- } catch (e) {
- $exceptionHandler(e);
- }
- });
- return directives;
- }]);
- }
- hasDirectives[name].push(directiveFactory);
- } else {
- forEach(name, reverseParams(registerDirective));
- }
- return this;
- };
-
- /**
- * @ngdoc method
- * @name $compileProvider#component
- * @module ng
- * @param {string} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`)
- * @param {Object} options Component definition object (a simplified
- * {@link ng.$compile#directive-definition-object directive definition object}),
- * with the following properties (all optional):
- *
- * - `controller` – `{(string|function()=}` – controller constructor function that should be
- * associated with newly created scope or the name of a {@link ng.$compile#-controller-
- * registered controller} if passed as a string. An empty `noop` function by default.
- * - `controllerAs` – `{string=}` – identifier name for to reference the controller in the component's scope.
- * If present, the controller will be published to scope under the `controllerAs` name.
- * If not present, this will default to be `$ctrl`.
- * - `template` – `{string=|function()=}` – html template as a string or a function that
- * returns an html template as a string which should be used as the contents of this component.
- * Empty string by default.
- *
- * If `template` is a function, then it is {@link auto.$injector#invoke injected} with
- * the following locals:
- *
- * - `$element` - Current element
- * - `$attrs` - Current attributes object for the element
- *
- * - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html
- * template that should be used as the contents of this component.
- *
- * If `templateUrl` is a function, then it is {@link auto.$injector#invoke injected} with
- * the following locals:
- *
- * - `$element` - Current element
- * - `$attrs` - Current attributes object for the element
- *
- * - `bindings` – `{object=}` – defines bindings between DOM attributes and component properties.
- * Component properties are always bound to the component controller and not to the scope.
- * See {@link ng.$compile#-bindtocontroller- `bindToController`}.
- * - `transclude` – `{boolean=}` – whether {@link $compile#transclusion content transclusion} is enabled.
- * Disabled by default.
- * - `require` - `{Object<string, string>=}` - requires the controllers of other directives and binds them to
- * this component's controller. The object keys specify the property names under which the required
- * controllers (object values) will be bound. See {@link ng.$compile#-require- `require`}.
- * - `$...` – additional properties to attach to the directive factory function and the controller
- * constructor function. (This is used by the component router to annotate)
- *
- * @returns {ng.$compileProvider} the compile provider itself, for chaining of function calls.
- * @description
- * Register a **component definition** with the compiler. This is a shorthand for registering a special
- * type of directive, which represents a self-contained UI component in your application. Such components
- * are always isolated (i.e. `scope: {}`) and are always restricted to elements (i.e. `restrict: 'E'`).
- *
- * Component definitions are very simple and do not require as much configuration as defining general
- * directives. Component definitions usually consist only of a template and a controller backing it.
- *
- * In order to make the definition easier, components enforce best practices like use of `controllerAs`,
- * `bindToController`. They always have **isolate scope** and are restricted to elements.
- *
- * Here are a few examples of how you would usually define components:
- *
- * ```js
- * var myMod = angular.module(...);
- * myMod.component('myComp', {
- * template: '<div>My name is {{$ctrl.name}}</div>',
- * controller: function() {
- * this.name = 'shahar';
- * }
- * });
- *
- * myMod.component('myComp', {
- * template: '<div>My name is {{$ctrl.name}}</div>',
- * bindings: {name: '@'}
- * });
- *
- * myMod.component('myComp', {
- * templateUrl: 'views/my-comp.html',
- * controller: 'MyCtrl',
- * controllerAs: 'ctrl',
- * bindings: {name: '@'}
- * });
- *
- * ```
- * For more examples, and an in-depth guide, see the {@link guide/component component guide}.
- *
- * <br />
- * See also {@link ng.$compileProvider#directive $compileProvider.directive()}.
- */
- this.component = function registerComponent(name, options) {
- var controller = options.controller || function() {};
-
- function factory($injector) {
- function makeInjectable(fn) {
- if (isFunction(fn) || isArray(fn)) {
- return /** @this */ function(tElement, tAttrs) {
- return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});
- };
- } else {
- return fn;
- }
- }
-
- var template = (!options.template && !options.templateUrl ? '' : options.template);
- var ddo = {
- controller: controller,
- controllerAs: identifierForController(options.controller) || options.controllerAs || '$ctrl',
- template: makeInjectable(template),
- templateUrl: makeInjectable(options.templateUrl),
- transclude: options.transclude,
- scope: {},
- bindToController: options.bindings || {},
- restrict: 'E',
- require: options.require
- };
-
- // Copy annotations (starting with $) over to the DDO
- forEach(options, function(val, key) {
- if (key.charAt(0) === '$') ddo[key] = val;
- });
-
- return ddo;
- }
-
- // TODO(pete) remove the following `forEach` before we release 1.6.0
- // The component-router@0.2.0 looks for the annotations on the controller constructor
- // Nothing in Angular looks for annotations on the factory function but we can't remove
- // it from 1.5.x yet.
-
- // Copy any annotation properties (starting with $) over to the factory and controller constructor functions
- // These could be used by libraries such as the new component router
- forEach(options, function(val, key) {
- if (key.charAt(0) === '$') {
- factory[key] = val;
- // Don't try to copy over annotations to named controller
- if (isFunction(controller)) controller[key] = val;
- }
- });
-
- factory.$inject = ['$injector'];
-
- return this.directive(name, factory);
- };
-
-
- /**
- * @ngdoc method
- * @name $compileProvider#aHrefSanitizationWhitelist
- * @kind function
- *
- * @description
- * Retrieves or overrides the default regular expression that is used for whitelisting of safe
- * urls during a[href] sanitization.
- *
- * The sanitization is a security measure aimed at preventing XSS attacks via html links.
- *
- * Any url about to be assigned to a[href] via data-binding is first normalized and turned into
- * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`
- * regular expression. If a match is found, the original url is written into the dom. Otherwise,
- * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
- *
- * @param {RegExp=} regexp New regexp to whitelist urls with.
- * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
- * chaining otherwise.
- */
- this.aHrefSanitizationWhitelist = function(regexp) {
- if (isDefined(regexp)) {
- $$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp);
- return this;
- } else {
- return $$sanitizeUriProvider.aHrefSanitizationWhitelist();
- }
- };
-
-
- /**
- * @ngdoc method
- * @name $compileProvider#imgSrcSanitizationWhitelist
- * @kind function
- *
- * @description
- * Retrieves or overrides the default regular expression that is used for whitelisting of safe
- * urls during img[src] sanitization.
- *
- * The sanitization is a security measure aimed at prevent XSS attacks via html links.
- *
- * Any url about to be assigned to img[src] via data-binding is first normalized and turned into
- * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`
- * regular expression. If a match is found, the original url is written into the dom. Otherwise,
- * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
- *
- * @param {RegExp=} regexp New regexp to whitelist urls with.
- * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
- * chaining otherwise.
- */
- this.imgSrcSanitizationWhitelist = function(regexp) {
- if (isDefined(regexp)) {
- $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp);
- return this;
- } else {
- return $$sanitizeUriProvider.imgSrcSanitizationWhitelist();
- }
- };
-
- /**
- * @ngdoc method
- * @name $compileProvider#debugInfoEnabled
- *
- * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the
- * current debugInfoEnabled state
- * @returns {*} current value if used as getter or itself (chaining) if used as setter
- *
- * @kind function
- *
- * @description
- * Call this method to enable/disable various debug runtime information in the compiler such as adding
- * binding information and a reference to the current scope on to DOM elements.
- * If enabled, the compiler will add the following to DOM elements that have been bound to the scope
- * * `ng-binding` CSS class
- * * `$binding` data property containing an array of the binding expressions
- *
- * You may want to disable this in production for a significant performance boost. See
- * {@link guide/production#disabling-debug-data Disabling Debug Data} for more.
- *
- * The default value is true.
- */
- var debugInfoEnabled = true;
- this.debugInfoEnabled = function(enabled) {
- if (isDefined(enabled)) {
- debugInfoEnabled = enabled;
- return this;
- }
- return debugInfoEnabled;
- };
-
- /**
- * @ngdoc method
- * @name $compileProvider#preAssignBindingsEnabled
- *
- * @param {boolean=} enabled update the preAssignBindingsEnabled state if provided, otherwise just return the
- * current preAssignBindingsEnabled state
- * @returns {*} current value if used as getter or itself (chaining) if used as setter
- *
- * @kind function
- *
- * @description
- * Call this method to enable/disable whether directive controllers are assigned bindings before
- * calling the controller's constructor.
- * If enabled (true), the compiler assigns the value of each of the bindings to the
- * properties of the controller object before the constructor of this object is called.
- *
- * If disabled (false), the compiler calls the constructor first before assigning bindings.
- *
- * The default value is true in Angular 1.5.x but will switch to false in Angular 1.6.x.
- */
- var preAssignBindingsEnabled = true;
- this.preAssignBindingsEnabled = function(enabled) {
- if (isDefined(enabled)) {
- preAssignBindingsEnabled = enabled;
- return this;
- }
- return preAssignBindingsEnabled;
- };
-
-
- var TTL = 10;
- /**
- * @ngdoc method
- * @name $compileProvider#onChangesTtl
- * @description
- *
- * Sets the number of times `$onChanges` hooks can trigger new changes before giving up and
- * assuming that the model is unstable.
- *
- * The current default is 10 iterations.
- *
- * In complex applications it's possible that dependencies between `$onChanges` hooks and bindings will result
- * in several iterations of calls to these hooks. However if an application needs more than the default 10
- * iterations to stabilize then you should investigate what is causing the model to continuously change during
- * the `$onChanges` hook execution.
- *
- * Increasing the TTL could have performance implications, so you should not change it without proper justification.
- *
- * @param {number} limit The number of `$onChanges` hook iterations.
- * @returns {number|object} the current limit (or `this` if called as a setter for chaining)
- */
- this.onChangesTtl = function(value) {
- if (arguments.length) {
- TTL = value;
- return this;
- }
- return TTL;
- };
-
- var commentDirectivesEnabledConfig = true;
- /**
- * @ngdoc method
- * @name $compileProvider#commentDirectivesEnabled
- * @description
- *
- * It indicates to the compiler
- * whether or not directives on comments should be compiled.
- * Defaults to `true`.
- *
- * Calling this function with false disables the compilation of directives
- * on comments for the whole application.
- * This results in a compilation performance gain,
- * as the compiler doesn't have to check comments when looking for directives.
- * This should however only be used if you are sure that no comment directives are used in
- * the application (including any 3rd party directives).
- *
- * @param {boolean} enabled `false` if the compiler may ignore directives on comments
- * @returns {boolean|object} the current value (or `this` if called as a setter for chaining)
- */
- this.commentDirectivesEnabled = function(value) {
- if (arguments.length) {
- commentDirectivesEnabledConfig = value;
- return this;
- }
- return commentDirectivesEnabledConfig;
- };
-
-
- var cssClassDirectivesEnabledConfig = true;
- /**
- * @ngdoc method
- * @name $compileProvider#cssClassDirectivesEnabled
- * @description
- *
- * It indicates to the compiler
- * whether or not directives on element classes should be compiled.
- * Defaults to `true`.
- *
- * Calling this function with false disables the compilation of directives
- * on element classes for the whole application.
- * This results in a compilation performance gain,
- * as the compiler doesn't have to check element classes when looking for directives.
- * This should however only be used if you are sure that no class directives are used in
- * the application (including any 3rd party directives).
- *
- * @param {boolean} enabled `false` if the compiler may ignore directives on element classes
- * @returns {boolean|object} the current value (or `this` if called as a setter for chaining)
- */
- this.cssClassDirectivesEnabled = function(value) {
- if (arguments.length) {
- cssClassDirectivesEnabledConfig = value;
- return this;
- }
- return cssClassDirectivesEnabledConfig;
- };
-
- this.$get = [
- '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse',
- '$controller', '$rootScope', '$sce', '$animate', '$$sanitizeUri',
- function($injector, $interpolate, $exceptionHandler, $templateRequest, $parse,
- $controller, $rootScope, $sce, $animate, $$sanitizeUri) {
-
- var SIMPLE_ATTR_NAME = /^\w/;
- var specialAttrHolder = window.document.createElement('div');
-
-
- var commentDirectivesEnabled = commentDirectivesEnabledConfig;
- var cssClassDirectivesEnabled = cssClassDirectivesEnabledConfig;
-
-
- var onChangesTtl = TTL;
- // The onChanges hooks should all be run together in a single digest
- // When changes occur, the call to trigger their hooks will be added to this queue
- var onChangesQueue;
-
- // This function is called in a $$postDigest to trigger all the onChanges hooks in a single digest
- function flushOnChangesQueue() {
- try {
- if (!(--onChangesTtl)) {
- // We have hit the TTL limit so reset everything
- onChangesQueue = undefined;
- throw $compileMinErr('infchng', '{0} $onChanges() iterations reached. Aborting!\n', TTL);
- }
- // We must run this hook in an apply since the $$postDigest runs outside apply
- $rootScope.$apply(function() {
- var errors = [];
- for (var i = 0, ii = onChangesQueue.length; i < ii; ++i) {
- try {
- onChangesQueue[i]();
- } catch (e) {
- errors.push(e);
- }
- }
- // Reset the queue to trigger a new schedule next time there is a change
- onChangesQueue = undefined;
- if (errors.length) {
- throw errors;
- }
- });
- } finally {
- onChangesTtl++;
- }
- }
-
-
- function Attributes(element, attributesToCopy) {
- if (attributesToCopy) {
- var keys = Object.keys(attributesToCopy);
- var i, l, key;
-
- for (i = 0, l = keys.length; i < l; i++) {
- key = keys[i];
- this[key] = attributesToCopy[key];
- }
- } else {
- this.$attr = {};
- }
-
- this.$$element = element;
- }
-
- Attributes.prototype = {
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$normalize
- * @kind function
- *
- * @description
- * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or
- * `data-`) to its normalized, camelCase form.
- *
- * Also there is special case for Moz prefix starting with upper case letter.
- *
- * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
- *
- * @param {string} name Name to normalize
- */
- $normalize: directiveNormalize,
-
-
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$addClass
- * @kind function
- *
- * @description
- * Adds the CSS class value specified by the classVal parameter to the element. If animations
- * are enabled then an animation will be triggered for the class addition.
- *
- * @param {string} classVal The className value that will be added to the element
- */
- $addClass: function(classVal) {
- if (classVal && classVal.length > 0) {
- $animate.addClass(this.$$element, classVal);
- }
- },
-
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$removeClass
- * @kind function
- *
- * @description
- * Removes the CSS class value specified by the classVal parameter from the element. If
- * animations are enabled then an animation will be triggered for the class removal.
- *
- * @param {string} classVal The className value that will be removed from the element
- */
- $removeClass: function(classVal) {
- if (classVal && classVal.length > 0) {
- $animate.removeClass(this.$$element, classVal);
- }
- },
-
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$updateClass
- * @kind function
- *
- * @description
- * Adds and removes the appropriate CSS class values to the element based on the difference
- * between the new and old CSS class values (specified as newClasses and oldClasses).
- *
- * @param {string} newClasses The current CSS className value
- * @param {string} oldClasses The former CSS className value
- */
- $updateClass: function(newClasses, oldClasses) {
- var toAdd = tokenDifference(newClasses, oldClasses);
- if (toAdd && toAdd.length) {
- $animate.addClass(this.$$element, toAdd);
- }
-
- var toRemove = tokenDifference(oldClasses, newClasses);
- if (toRemove && toRemove.length) {
- $animate.removeClass(this.$$element, toRemove);
- }
- },
-
- /**
- * Set a normalized attribute on the element in a way such that all directives
- * can share the attribute. This function properly handles boolean attributes.
- * @param {string} key Normalized key. (ie ngAttribute)
- * @param {string|boolean} value The value to set. If `null` attribute will be deleted.
- * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.
- * Defaults to true.
- * @param {string=} attrName Optional none normalized name. Defaults to key.
- */
- $set: function(key, value, writeAttr, attrName) {
- // TODO: decide whether or not to throw an error if "class"
- //is set through this function since it may cause $updateClass to
- //become unstable.
-
- var node = this.$$element[0],
- booleanKey = getBooleanAttrName(node, key),
- aliasedKey = getAliasedAttrName(key),
- observer = key,
- nodeName;
-
- if (booleanKey) {
- this.$$element.prop(key, value);
- attrName = booleanKey;
- } else if (aliasedKey) {
- this[aliasedKey] = value;
- observer = aliasedKey;
- }
-
- this[key] = value;
-
- // translate normalized key to actual key
- if (attrName) {
- this.$attr[key] = attrName;
- } else {
- attrName = this.$attr[key];
- if (!attrName) {
- this.$attr[key] = attrName = snake_case(key, '-');
- }
- }
-
- nodeName = nodeName_(this.$$element);
-
- if ((nodeName === 'a' && (key === 'href' || key === 'xlinkHref')) ||
- (nodeName === 'img' && key === 'src')) {
- // sanitize a[href] and img[src] values
- this[key] = value = $$sanitizeUri(value, key === 'src');
- } else if (nodeName === 'img' && key === 'srcset' && isDefined(value)) {
- // sanitize img[srcset] values
- var result = '';
-
- // first check if there are spaces because it's not the same pattern
- var trimmedSrcset = trim(value);
- // ( 999x ,| 999w ,| ,|, )
- var srcPattern = /(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/;
- var pattern = /\s/.test(trimmedSrcset) ? srcPattern : /(,)/;
-
- // split srcset into tuple of uri and descriptor except for the last item
- var rawUris = trimmedSrcset.split(pattern);
-
- // for each tuples
- var nbrUrisWith2parts = Math.floor(rawUris.length / 2);
- for (var i = 0; i < nbrUrisWith2parts; i++) {
- var innerIdx = i * 2;
- // sanitize the uri
- result += $$sanitizeUri(trim(rawUris[innerIdx]), true);
- // add the descriptor
- result += (' ' + trim(rawUris[innerIdx + 1]));
- }
-
- // split the last item into uri and descriptor
- var lastTuple = trim(rawUris[i * 2]).split(/\s/);
-
- // sanitize the last uri
- result += $$sanitizeUri(trim(lastTuple[0]), true);
-
- // and add the last descriptor if any
- if (lastTuple.length === 2) {
- result += (' ' + trim(lastTuple[1]));
- }
- this[key] = value = result;
- }
-
- if (writeAttr !== false) {
- if (value === null || isUndefined(value)) {
- this.$$element.removeAttr(attrName);
- } else {
- if (SIMPLE_ATTR_NAME.test(attrName)) {
- this.$$element.attr(attrName, value);
- } else {
- setSpecialAttr(this.$$element[0], attrName, value);
- }
- }
- }
-
- // fire observers
- var $$observers = this.$$observers;
- if ($$observers) {
- forEach($$observers[observer], function(fn) {
- try {
- fn(value);
- } catch (e) {
- $exceptionHandler(e);
- }
- });
- }
- },
-
-
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$observe
- * @kind function
- *
- * @description
- * Observes an interpolated attribute.
- *
- * The observer function will be invoked once during the next `$digest` following
- * compilation. The observer is then invoked whenever the interpolated value
- * changes.
- *
- * @param {string} key Normalized key. (ie ngAttribute) .
- * @param {function(interpolatedValue)} fn Function that will be called whenever
- the interpolated value of the attribute changes.
- * See the {@link guide/interpolation#how-text-and-attribute-bindings-work Interpolation
- * guide} for more info.
- * @returns {function()} Returns a deregistration function for this observer.
- */
- $observe: function(key, fn) {
- var attrs = this,
- $$observers = (attrs.$$observers || (attrs.$$observers = createMap())),
- listeners = ($$observers[key] || ($$observers[key] = []));
-
- listeners.push(fn);
- $rootScope.$evalAsync(function() {
- if (!listeners.$$inter && attrs.hasOwnProperty(key) && !isUndefined(attrs[key])) {
- // no one registered attribute interpolation function, so lets call it manually
- fn(attrs[key]);
- }
- });
-
- return function() {
- arrayRemove(listeners, fn);
- };
- }
- };
-
- function setSpecialAttr(element, attrName, value) {
- // Attributes names that do not start with letters (such as `(click)`) cannot be set using `setAttribute`
- // so we have to jump through some hoops to get such an attribute
- // https://github.com/angular/angular.js/pull/13318
- specialAttrHolder.innerHTML = '<span ' + attrName + '>';
- var attributes = specialAttrHolder.firstChild.attributes;
- var attribute = attributes[0];
- // We have to remove the attribute from its container element before we can add it to the destination element
- attributes.removeNamedItem(attribute.name);
- attribute.value = value;
- element.attributes.setNamedItem(attribute);
- }
-
- function safeAddClass($element, className) {
- try {
- $element.addClass(className);
- } catch (e) {
- // ignore, since it means that we are trying to set class on
- // SVG element, where class name is read-only.
- }
- }
-
-
- var startSymbol = $interpolate.startSymbol(),
- endSymbol = $interpolate.endSymbol(),
- denormalizeTemplate = (startSymbol === '{{' && endSymbol === '}}')
- ? identity
- : function denormalizeTemplate(template) {
- return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol);
- },
- NG_ATTR_BINDING = /^ngAttr[A-Z]/;
- var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/;
-
- compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) {
- var bindings = $element.data('$binding') || [];
-
- if (isArray(binding)) {
- bindings = bindings.concat(binding);
- } else {
- bindings.push(binding);
- }
-
- $element.data('$binding', bindings);
- } : noop;
-
- compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) {
- safeAddClass($element, 'ng-binding');
- } : noop;
-
- compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) {
- var dataName = isolated ? (noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope') : '$scope';
- $element.data(dataName, scope);
- } : noop;
-
- compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) {
- safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope');
- } : noop;
-
- compile.$$createComment = function(directiveName, comment) {
- var content = '';
- if (debugInfoEnabled) {
- content = ' ' + (directiveName || '') + ': ';
- if (comment) content += comment + ' ';
- }
- return window.document.createComment(content);
- };
-
- return compile;
-
- //================================
-
- function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective,
- previousCompileContext) {
- if (!($compileNodes instanceof jqLite)) {
- // jquery always rewraps, whereas we need to preserve the original selector so that we can
- // modify it.
- $compileNodes = jqLite($compileNodes);
- }
-
- var NOT_EMPTY = /\S+/;
-
- // We can not compile top level text elements since text nodes can be merged and we will
- // not be able to attach scope data to them, so we will wrap them in <span>
- for (var i = 0, len = $compileNodes.length; i < len; i++) {
- var domNode = $compileNodes[i];
-
- if (domNode.nodeType === NODE_TYPE_TEXT && domNode.nodeValue.match(NOT_EMPTY) /* non-empty */) {
- jqLiteWrapNode(domNode, $compileNodes[i] = window.document.createElement('span'));
- }
- }
-
- var compositeLinkFn =
- compileNodes($compileNodes, transcludeFn, $compileNodes,
- maxPriority, ignoreDirective, previousCompileContext);
- compile.$$addScopeClass($compileNodes);
- var namespace = null;
- return function publicLinkFn(scope, cloneConnectFn, options) {
- assertArg(scope, 'scope');
-
- if (previousCompileContext && previousCompileContext.needsNewScope) {
- // A parent directive did a replace and a directive on this element asked
- // for transclusion, which caused us to lose a layer of element on which
- // we could hold the new transclusion scope, so we will create it manually
- // here.
- scope = scope.$parent.$new();
- }
-
- options = options || {};
- var parentBoundTranscludeFn = options.parentBoundTranscludeFn,
- transcludeControllers = options.transcludeControllers,
- futureParentElement = options.futureParentElement;
-
- // When `parentBoundTranscludeFn` is passed, it is a
- // `controllersBoundTransclude` function (it was previously passed
- // as `transclude` to directive.link) so we must unwrap it to get
- // its `boundTranscludeFn`
- if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) {
- parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude;
- }
-
- if (!namespace) {
- namespace = detectNamespaceForChildElements(futureParentElement);
- }
- var $linkNode;
- if (namespace !== 'html') {
- // When using a directive with replace:true and templateUrl the $compileNodes
- // (or a child element inside of them)
- // might change, so we need to recreate the namespace adapted compileNodes
- // for call to the link function.
- // Note: This will already clone the nodes...
- $linkNode = jqLite(
- wrapTemplate(namespace, jqLite('<div>').append($compileNodes).html())
- );
- } else if (cloneConnectFn) {
- // important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart
- // and sometimes changes the structure of the DOM.
- $linkNode = JQLitePrototype.clone.call($compileNodes);
- } else {
- $linkNode = $compileNodes;
- }
-
- if (transcludeControllers) {
- for (var controllerName in transcludeControllers) {
- $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance);
- }
- }
-
- compile.$$addScopeInfo($linkNode, scope);
-
- if (cloneConnectFn) cloneConnectFn($linkNode, scope);
- if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn);
- return $linkNode;
- };
- }
-
- function detectNamespaceForChildElements(parentElement) {
- // TODO: Make this detect MathML as well...
- var node = parentElement && parentElement[0];
- if (!node) {
- return 'html';
- } else {
- return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html';
- }
- }
-
- /**
- * Compile function matches each node in nodeList against the directives. Once all directives
- * for a particular node are collected their compile functions are executed. The compile
- * functions return values - the linking functions - are combined into a composite linking
- * function, which is the a linking function for the node.
- *
- * @param {NodeList} nodeList an array of nodes or NodeList to compile
- * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the
- * scope argument is auto-generated to the new child of the transcluded parent scope.
- * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then
- * the rootElement must be set the jqLite collection of the compile root. This is
- * needed so that the jqLite collection items can be replaced with widgets.
- * @param {number=} maxPriority Max directive priority.
- * @returns {Function} A composite linking function of all of the matched directives or null.
- */
- function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,
- previousCompileContext) {
- var linkFns = [],
- attrs, directives, nodeLinkFn, childNodes, childLinkFn, linkFnFound, nodeLinkFnFound;
-
- for (var i = 0; i < nodeList.length; i++) {
- attrs = new Attributes();
-
- // we must always refer to nodeList[i] since the nodes can be replaced underneath us.
- directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined,
- ignoreDirective);
-
- nodeLinkFn = (directives.length)
- ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement,
- null, [], [], previousCompileContext)
- : null;
-
- if (nodeLinkFn && nodeLinkFn.scope) {
- compile.$$addScopeClass(attrs.$$element);
- }
-
- childLinkFn = (nodeLinkFn && nodeLinkFn.terminal ||
- !(childNodes = nodeList[i].childNodes) ||
- !childNodes.length)
- ? null
- : compileNodes(childNodes,
- nodeLinkFn ? (
- (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement)
- && nodeLinkFn.transclude) : transcludeFn);
-
- if (nodeLinkFn || childLinkFn) {
- linkFns.push(i, nodeLinkFn, childLinkFn);
- linkFnFound = true;
- nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn;
- }
-
- //use the previous context only for the first element in the virtual group
- previousCompileContext = null;
- }
-
- // return a linking function if we have found anything, null otherwise
- return linkFnFound ? compositeLinkFn : null;
-
- function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {
- var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;
- var stableNodeList;
-
-
- if (nodeLinkFnFound) {
- // copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our
- // offsets don't get screwed up
- var nodeListLength = nodeList.length;
- stableNodeList = new Array(nodeListLength);
-
- // create a sparse array by only copying the elements which have a linkFn
- for (i = 0; i < linkFns.length; i += 3) {
- idx = linkFns[i];
- stableNodeList[idx] = nodeList[idx];
- }
- } else {
- stableNodeList = nodeList;
- }
-
- for (i = 0, ii = linkFns.length; i < ii;) {
- node = stableNodeList[linkFns[i++]];
- nodeLinkFn = linkFns[i++];
- childLinkFn = linkFns[i++];
-
- if (nodeLinkFn) {
- if (nodeLinkFn.scope) {
- childScope = scope.$new();
- compile.$$addScopeInfo(jqLite(node), childScope);
- } else {
- childScope = scope;
- }
-
- if (nodeLinkFn.transcludeOnThisElement) {
- childBoundTranscludeFn = createBoundTranscludeFn(
- scope, nodeLinkFn.transclude, parentBoundTranscludeFn);
-
- } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {
- childBoundTranscludeFn = parentBoundTranscludeFn;
-
- } else if (!parentBoundTranscludeFn && transcludeFn) {
- childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn);
-
- } else {
- childBoundTranscludeFn = null;
- }
-
- nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn);
-
- } else if (childLinkFn) {
- childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);
- }
- }
- }
- }
-
- function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
- function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
-
- if (!transcludedScope) {
- transcludedScope = scope.$new(false, containingScope);
- transcludedScope.$$transcluded = true;
- }
-
- return transcludeFn(transcludedScope, cloneFn, {
- parentBoundTranscludeFn: previousBoundTranscludeFn,
- transcludeControllers: controllers,
- futureParentElement: futureParentElement
- });
- }
-
- // We need to attach the transclusion slots onto the `boundTranscludeFn`
- // so that they are available inside the `controllersBoundTransclude` function
- var boundSlots = boundTranscludeFn.$$slots = createMap();
- for (var slotName in transcludeFn.$$slots) {
- if (transcludeFn.$$slots[slotName]) {
- boundSlots[slotName] = createBoundTranscludeFn(scope, transcludeFn.$$slots[slotName], previousBoundTranscludeFn);
- } else {
- boundSlots[slotName] = null;
- }
- }
-
- return boundTranscludeFn;
- }
-
- /**
- * Looks for directives on the given node and adds them to the directive collection which is
- * sorted.
- *
- * @param node Node to search.
- * @param directives An array to which the directives are added to. This array is sorted before
- * the function returns.
- * @param attrs The shared attrs object which is used to populate the normalized attributes.
- * @param {number=} maxPriority Max directive priority.
- */
- function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) {
- var nodeType = node.nodeType,
- attrsMap = attrs.$attr,
- match,
- nodeName,
- className;
-
- switch (nodeType) {
- case NODE_TYPE_ELEMENT: /* Element */
-
- nodeName = nodeName_(node);
-
- // use the node name: <directive>
- addDirective(directives,
- directiveNormalize(nodeName), 'E', maxPriority, ignoreDirective);
-
- // iterate over the attributes
- for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes,
- j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {
- var attrStartName = false;
- var attrEndName = false;
-
- attr = nAttrs[j];
- name = attr.name;
- value = trim(attr.value);
-
- // support ngAttr attribute binding
- ngAttrName = directiveNormalize(name);
- isNgAttr = NG_ATTR_BINDING.test(ngAttrName);
- if (isNgAttr) {
- name = name.replace(PREFIX_REGEXP, '')
- .substr(8).replace(/_(.)/g, function(match, letter) {
- return letter.toUpperCase();
- });
- }
-
- var multiElementMatch = ngAttrName.match(MULTI_ELEMENT_DIR_RE);
- if (multiElementMatch && directiveIsMultiElement(multiElementMatch[1])) {
- attrStartName = name;
- attrEndName = name.substr(0, name.length - 5) + 'end';
- name = name.substr(0, name.length - 6);
- }
-
- nName = directiveNormalize(name.toLowerCase());
- attrsMap[nName] = name;
- if (isNgAttr || !attrs.hasOwnProperty(nName)) {
- attrs[nName] = value;
- if (getBooleanAttrName(node, nName)) {
- attrs[nName] = true; // presence means true
- }
- }
- addAttrInterpolateDirective(node, directives, value, nName, isNgAttr);
- addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName,
- attrEndName);
- }
-
- if (nodeName === 'input' && node.getAttribute('type') === 'hidden') {
- // Hidden input elements can have strange behaviour when navigating back to the page
- // This tells the browser not to try to cache and reinstate previous values
- node.setAttribute('autocomplete', 'off');
- }
-
- // use class as directive
- if (!cssClassDirectivesEnabled) break;
- className = node.className;
- if (isObject(className)) {
- // Maybe SVGAnimatedString
- className = className.animVal;
- }
- if (isString(className) && className !== '') {
- while ((match = CLASS_DIRECTIVE_REGEXP.exec(className))) {
- nName = directiveNormalize(match[2]);
- if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) {
- attrs[nName] = trim(match[3]);
- }
- className = className.substr(match.index + match[0].length);
- }
- }
- break;
- case NODE_TYPE_TEXT: /* Text Node */
- if (msie === 11) {
- // Workaround for #11781
- while (node.parentNode && node.nextSibling && node.nextSibling.nodeType === NODE_TYPE_TEXT) {
- node.nodeValue = node.nodeValue + node.nextSibling.nodeValue;
- node.parentNode.removeChild(node.nextSibling);
- }
- }
- addTextInterpolateDirective(directives, node.nodeValue);
- break;
- case NODE_TYPE_COMMENT: /* Comment */
- if (!commentDirectivesEnabled) break;
- collectCommentDirectives(node, directives, attrs, maxPriority, ignoreDirective);
- break;
- }
-
- directives.sort(byPriority);
- return directives;
- }
-
- function collectCommentDirectives(node, directives, attrs, maxPriority, ignoreDirective) {
- // function created because of performance, try/catch disables
- // the optimization of the whole function #14848
- try {
- var match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);
- if (match) {
- var nName = directiveNormalize(match[1]);
- if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) {
- attrs[nName] = trim(match[2]);
- }
- }
- } catch (e) {
- // turns out that under some circumstances IE9 throws errors when one attempts to read
- // comment's node value.
- // Just ignore it and continue. (Can't seem to reproduce in test case.)
- }
- }
-
- /**
- * Given a node with a directive-start it collects all of the siblings until it finds
- * directive-end.
- * @param node
- * @param attrStart
- * @param attrEnd
- * @returns {*}
- */
- function groupScan(node, attrStart, attrEnd) {
- var nodes = [];
- var depth = 0;
- if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {
- do {
- if (!node) {
- throw $compileMinErr('uterdir',
- 'Unterminated attribute, found \'{0}\' but no matching \'{1}\' found.',
- attrStart, attrEnd);
- }
- if (node.nodeType === NODE_TYPE_ELEMENT) {
- if (node.hasAttribute(attrStart)) depth++;
- if (node.hasAttribute(attrEnd)) depth--;
- }
- nodes.push(node);
- node = node.nextSibling;
- } while (depth > 0);
- } else {
- nodes.push(node);
- }
-
- return jqLite(nodes);
- }
-
- /**
- * Wrapper for linking function which converts normal linking function into a grouped
- * linking function.
- * @param linkFn
- * @param attrStart
- * @param attrEnd
- * @returns {Function}
- */
- function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) {
- return function groupedElementsLink(scope, element, attrs, controllers, transcludeFn) {
- element = groupScan(element[0], attrStart, attrEnd);
- return linkFn(scope, element, attrs, controllers, transcludeFn);
- };
- }
-
- /**
- * A function generator that is used to support both eager and lazy compilation
- * linking function.
- * @param eager
- * @param $compileNodes
- * @param transcludeFn
- * @param maxPriority
- * @param ignoreDirective
- * @param previousCompileContext
- * @returns {Function}
- */
- function compilationGenerator(eager, $compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext) {
- var compiled;
-
- if (eager) {
- return compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext);
- }
- return /** @this */ function lazyCompilation() {
- if (!compiled) {
- compiled = compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext);
-
- // Null out all of these references in order to make them eligible for garbage collection
- // since this is a potentially long lived closure
- $compileNodes = transcludeFn = previousCompileContext = null;
- }
- return compiled.apply(this, arguments);
- };
- }
-
- /**
- * Once the directives have been collected, their compile functions are executed. This method
- * is responsible for inlining directive templates as well as terminating the application
- * of the directives if the terminal directive has been reached.
- *
- * @param {Array} directives Array of collected directives to execute their compile function.
- * this needs to be pre-sorted by priority order.
- * @param {Node} compileNode The raw DOM node to apply the compile functions to
- * @param {Object} templateAttrs The shared attribute function
- * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the
- * scope argument is auto-generated to the new
- * child of the transcluded parent scope.
- * @param {JQLite} jqCollection If we are working on the root of the compile tree then this
- * argument has the root jqLite array so that we can replace nodes
- * on it.
- * @param {Object=} originalReplaceDirective An optional directive that will be ignored when
- * compiling the transclusion.
- * @param {Array.<Function>} preLinkFns
- * @param {Array.<Function>} postLinkFns
- * @param {Object} previousCompileContext Context used for previous compilation of the current
- * node
- * @returns {Function} linkFn
- */
- function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,
- jqCollection, originalReplaceDirective, preLinkFns, postLinkFns,
- previousCompileContext) {
- previousCompileContext = previousCompileContext || {};
-
- var terminalPriority = -Number.MAX_VALUE,
- newScopeDirective = previousCompileContext.newScopeDirective,
- controllerDirectives = previousCompileContext.controllerDirectives,
- newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective,
- templateDirective = previousCompileContext.templateDirective,
- nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective,
- hasTranscludeDirective = false,
- hasTemplate = false,
- hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective,
- $compileNode = templateAttrs.$$element = jqLite(compileNode),
- directive,
- directiveName,
- $template,
- replaceDirective = originalReplaceDirective,
- childTranscludeFn = transcludeFn,
- linkFn,
- didScanForMultipleTransclusion = false,
- mightHaveMultipleTransclusionError = false,
- directiveValue;
-
- // executes all directives on the current element
- for (var i = 0, ii = directives.length; i < ii; i++) {
- directive = directives[i];
- var attrStart = directive.$$start;
- var attrEnd = directive.$$end;
-
- // collect multiblock sections
- if (attrStart) {
- $compileNode = groupScan(compileNode, attrStart, attrEnd);
- }
- $template = undefined;
-
- if (terminalPriority > directive.priority) {
- break; // prevent further processing of directives
- }
-
- directiveValue = directive.scope;
-
- if (directiveValue) {
-
- // skip the check for directives with async templates, we'll check the derived sync
- // directive when the template arrives
- if (!directive.templateUrl) {
- if (isObject(directiveValue)) {
- // This directive is trying to add an isolated scope.
- // Check that there is no scope of any kind already
- assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective,
- directive, $compileNode);
- newIsolateScopeDirective = directive;
- } else {
- // This directive is trying to add a child scope.
- // Check that there is no isolated scope already
- assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive,
- $compileNode);
- }
- }
-
- newScopeDirective = newScopeDirective || directive;
- }
-
- directiveName = directive.name;
-
- // If we encounter a condition that can result in transclusion on the directive,
- // then scan ahead in the remaining directives for others that may cause a multiple
- // transclusion error to be thrown during the compilation process. If a matching directive
- // is found, then we know that when we encounter a transcluded directive, we need to eagerly
- // compile the `transclude` function rather than doing it lazily in order to throw
- // exceptions at the correct time
- if (!didScanForMultipleTransclusion && ((directive.replace && (directive.templateUrl || directive.template))
- || (directive.transclude && !directive.$$tlb))) {
- var candidateDirective;
-
- for (var scanningIndex = i + 1; (candidateDirective = directives[scanningIndex++]);) {
- if ((candidateDirective.transclude && !candidateDirective.$$tlb)
- || (candidateDirective.replace && (candidateDirective.templateUrl || candidateDirective.template))) {
- mightHaveMultipleTransclusionError = true;
- break;
- }
- }
-
- didScanForMultipleTransclusion = true;
- }
-
- if (!directive.templateUrl && directive.controller) {
- controllerDirectives = controllerDirectives || createMap();
- assertNoDuplicate('\'' + directiveName + '\' controller',
- controllerDirectives[directiveName], directive, $compileNode);
- controllerDirectives[directiveName] = directive;
- }
-
- directiveValue = directive.transclude;
-
- if (directiveValue) {
- hasTranscludeDirective = true;
-
- // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.
- // This option should only be used by directives that know how to safely handle element transclusion,
- // where the transcluded nodes are added or replaced after linking.
- if (!directive.$$tlb) {
- assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode);
- nonTlbTranscludeDirective = directive;
- }
-
- if (directiveValue === 'element') {
- hasElementTranscludeDirective = true;
- terminalPriority = directive.priority;
- $template = $compileNode;
- $compileNode = templateAttrs.$$element =
- jqLite(compile.$$createComment(directiveName, templateAttrs[directiveName]));
- compileNode = $compileNode[0];
- replaceWith(jqCollection, sliceArgs($template), compileNode);
-
- // Support: Chrome < 50
- // https://github.com/angular/angular.js/issues/14041
-
- // In the versions of V8 prior to Chrome 50, the document fragment that is created
- // in the `replaceWith` function is improperly garbage collected despite still
- // being referenced by the `parentNode` property of all of the child nodes. By adding
- // a reference to the fragment via a different property, we can avoid that incorrect
- // behavior.
- // TODO: remove this line after Chrome 50 has been released
- $template[0].$$parentNode = $template[0].parentNode;
-
- childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, terminalPriority,
- replaceDirective && replaceDirective.name, {
- // Don't pass in:
- // - controllerDirectives - otherwise we'll create duplicates controllers
- // - newIsolateScopeDirective or templateDirective - combining templates with
- // element transclusion doesn't make sense.
- //
- // We need only nonTlbTranscludeDirective so that we prevent putting transclusion
- // on the same element more than once.
- nonTlbTranscludeDirective: nonTlbTranscludeDirective
- });
- } else {
-
- var slots = createMap();
-
- $template = jqLite(jqLiteClone(compileNode)).contents();
-
- if (isObject(directiveValue)) {
-
- // We have transclusion slots,
- // collect them up, compile them and store their transclusion functions
- $template = [];
-
- var slotMap = createMap();
- var filledSlots = createMap();
-
- // Parse the element selectors
- forEach(directiveValue, function(elementSelector, slotName) {
- // If an element selector starts with a ? then it is optional
- var optional = (elementSelector.charAt(0) === '?');
- elementSelector = optional ? elementSelector.substring(1) : elementSelector;
-
- slotMap[elementSelector] = slotName;
-
- // We explicitly assign `null` since this implies that a slot was defined but not filled.
- // Later when calling boundTransclusion functions with a slot name we only error if the
- // slot is `undefined`
- slots[slotName] = null;
-
- // filledSlots contains `true` for all slots that are either optional or have been
- // filled. This is used to check that we have not missed any required slots
- filledSlots[slotName] = optional;
- });
-
- // Add the matching elements into their slot
- forEach($compileNode.contents(), function(node) {
- var slotName = slotMap[directiveNormalize(nodeName_(node))];
- if (slotName) {
- filledSlots[slotName] = true;
- slots[slotName] = slots[slotName] || [];
- slots[slotName].push(node);
- } else {
- $template.push(node);
- }
- });
-
- // Check for required slots that were not filled
- forEach(filledSlots, function(filled, slotName) {
- if (!filled) {
- throw $compileMinErr('reqslot', 'Required transclusion slot `{0}` was not filled.', slotName);
- }
- });
-
- for (var slotName in slots) {
- if (slots[slotName]) {
- // Only define a transclusion function if the slot was filled
- slots[slotName] = compilationGenerator(mightHaveMultipleTransclusionError, slots[slotName], transcludeFn);
- }
- }
- }
-
- $compileNode.empty(); // clear contents
- childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, undefined,
- undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope});
- childTranscludeFn.$$slots = slots;
- }
- }
-
- if (directive.template) {
- hasTemplate = true;
- assertNoDuplicate('template', templateDirective, directive, $compileNode);
- templateDirective = directive;
-
- directiveValue = (isFunction(directive.template))
- ? directive.template($compileNode, templateAttrs)
- : directive.template;
-
- directiveValue = denormalizeTemplate(directiveValue);
-
- if (directive.replace) {
- replaceDirective = directive;
- if (jqLiteIsTextNode(directiveValue)) {
- $template = [];
- } else {
- $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));
- }
- compileNode = $template[0];
-
- if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {
- throw $compileMinErr('tplrt',
- 'Template for directive \'{0}\' must have exactly one root element. {1}',
- directiveName, '');
- }
-
- replaceWith(jqCollection, $compileNode, compileNode);
-
- var newTemplateAttrs = {$attr: {}};
-
- // combine directives from the original node and from the template:
- // - take the array of directives for this element
- // - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)
- // - collect directives from the template and sort them by priority
- // - combine directives as: processed + template + unprocessed
- var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs);
- var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1));
-
- if (newIsolateScopeDirective || newScopeDirective) {
- // The original directive caused the current element to be replaced but this element
- // also needs to have a new scope, so we need to tell the template directives
- // that they would need to get their scope from further up, if they require transclusion
- markDirectiveScope(templateDirectives, newIsolateScopeDirective, newScopeDirective);
- }
- directives = directives.concat(templateDirectives).concat(unprocessedDirectives);
- mergeTemplateAttributes(templateAttrs, newTemplateAttrs);
-
- ii = directives.length;
- } else {
- $compileNode.html(directiveValue);
- }
- }
-
- if (directive.templateUrl) {
- hasTemplate = true;
- assertNoDuplicate('template', templateDirective, directive, $compileNode);
- templateDirective = directive;
-
- if (directive.replace) {
- replaceDirective = directive;
- }
-
- // eslint-disable-next-line no-func-assign
- nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode,
- templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, {
- controllerDirectives: controllerDirectives,
- newScopeDirective: (newScopeDirective !== directive) && newScopeDirective,
- newIsolateScopeDirective: newIsolateScopeDirective,
- templateDirective: templateDirective,
- nonTlbTranscludeDirective: nonTlbTranscludeDirective
- });
- ii = directives.length;
- } else if (directive.compile) {
- try {
- linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);
- var context = directive.$$originalDirective || directive;
- if (isFunction(linkFn)) {
- addLinkFns(null, bind(context, linkFn), attrStart, attrEnd);
- } else if (linkFn) {
- addLinkFns(bind(context, linkFn.pre), bind(context, linkFn.post), attrStart, attrEnd);
- }
- } catch (e) {
- $exceptionHandler(e, startingTag($compileNode));
- }
- }
-
- if (directive.terminal) {
- nodeLinkFn.terminal = true;
- terminalPriority = Math.max(terminalPriority, directive.priority);
- }
-
- }
-
- nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;
- nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;
- nodeLinkFn.templateOnThisElement = hasTemplate;
- nodeLinkFn.transclude = childTranscludeFn;
-
- previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective;
-
- // might be normal or delayed nodeLinkFn depending on if templateUrl is present
- return nodeLinkFn;
-
- ////////////////////
-
- function addLinkFns(pre, post, attrStart, attrEnd) {
- if (pre) {
- if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
- pre.require = directive.require;
- pre.directiveName = directiveName;
- if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
- pre = cloneAndAnnotateFn(pre, {isolateScope: true});
- }
- preLinkFns.push(pre);
- }
- if (post) {
- if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
- post.require = directive.require;
- post.directiveName = directiveName;
- if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
- post = cloneAndAnnotateFn(post, {isolateScope: true});
- }
- postLinkFns.push(post);
- }
- }
-
- function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
- var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element,
- attrs, scopeBindingInfo;
-
- if (compileNode === linkNode) {
- attrs = templateAttrs;
- $element = templateAttrs.$$element;
- } else {
- $element = jqLite(linkNode);
- attrs = new Attributes($element, templateAttrs);
- }
-
- controllerScope = scope;
- if (newIsolateScopeDirective) {
- isolateScope = scope.$new(true);
- } else if (newScopeDirective) {
- controllerScope = scope.$parent;
- }
-
- if (boundTranscludeFn) {
- // track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`
- // is later passed as `parentBoundTranscludeFn` to `publicLinkFn`
- transcludeFn = controllersBoundTransclude;
- transcludeFn.$$boundTransclude = boundTranscludeFn;
- // expose the slots on the `$transclude` function
- transcludeFn.isSlotFilled = function(slotName) {
- return !!boundTranscludeFn.$$slots[slotName];
- };
- }
-
- if (controllerDirectives) {
- elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective);
- }
-
- if (newIsolateScopeDirective) {
- // Initialize isolate scope bindings for new isolate scope directive.
- compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective ||
- templateDirective === newIsolateScopeDirective.$$originalDirective)));
- compile.$$addScopeClass($element, true);
- isolateScope.$$isolateBindings =
- newIsolateScopeDirective.$$isolateBindings;
- scopeBindingInfo = initializeDirectiveBindings(scope, attrs, isolateScope,
- isolateScope.$$isolateBindings,
- newIsolateScopeDirective);
- if (scopeBindingInfo.removeWatches) {
- isolateScope.$on('$destroy', scopeBindingInfo.removeWatches);
- }
- }
-
- // Initialize bindToController bindings
- for (var name in elementControllers) {
- var controllerDirective = controllerDirectives[name];
- var controller = elementControllers[name];
- var bindings = controllerDirective.$$bindings.bindToController;
-
- if (preAssignBindingsEnabled) {
- if (bindings) {
- controller.bindingInfo =
- initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);
- } else {
- controller.bindingInfo = {};
- }
-
- var controllerResult = controller();
- if (controllerResult !== controller.instance) {
- // If the controller constructor has a return value, overwrite the instance
- // from setupControllers
- controller.instance = controllerResult;
- $element.data('$' + controllerDirective.name + 'Controller', controllerResult);
- if (controller.bindingInfo.removeWatches) {
- controller.bindingInfo.removeWatches();
- }
- controller.bindingInfo =
- initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);
- }
- } else {
- controller.instance = controller();
- $element.data('$' + controllerDirective.name + 'Controller', controller.instance);
- controller.bindingInfo =
- initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);
- }
- }
-
- // Bind the required controllers to the controller, if `require` is an object and `bindToController` is truthy
- forEach(controllerDirectives, function(controllerDirective, name) {
- var require = controllerDirective.require;
- if (controllerDirective.bindToController && !isArray(require) && isObject(require)) {
- extend(elementControllers[name].instance, getControllers(name, require, $element, elementControllers));
- }
- });
-
- // Handle the init and destroy lifecycle hooks on all controllers that have them
- forEach(elementControllers, function(controller) {
- var controllerInstance = controller.instance;
- if (isFunction(controllerInstance.$onChanges)) {
- try {
- controllerInstance.$onChanges(controller.bindingInfo.initialChanges);
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- if (isFunction(controllerInstance.$onInit)) {
- try {
- controllerInstance.$onInit();
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- if (isFunction(controllerInstance.$doCheck)) {
- controllerScope.$watch(function() { controllerInstance.$doCheck(); });
- controllerInstance.$doCheck();
- }
- if (isFunction(controllerInstance.$onDestroy)) {
- controllerScope.$on('$destroy', function callOnDestroyHook() {
- controllerInstance.$onDestroy();
- });
- }
- });
-
- // PRELINKING
- for (i = 0, ii = preLinkFns.length; i < ii; i++) {
- linkFn = preLinkFns[i];
- invokeLinkFn(linkFn,
- linkFn.isolateScope ? isolateScope : scope,
- $element,
- attrs,
- linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),
- transcludeFn
- );
- }
-
- // RECURSION
- // We only pass the isolate scope, if the isolate directive has a template,
- // otherwise the child elements do not belong to the isolate directive.
- var scopeToChild = scope;
- if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) {
- scopeToChild = isolateScope;
- }
- if (childLinkFn) {
- childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn);
- }
-
- // POSTLINKING
- for (i = postLinkFns.length - 1; i >= 0; i--) {
- linkFn = postLinkFns[i];
- invokeLinkFn(linkFn,
- linkFn.isolateScope ? isolateScope : scope,
- $element,
- attrs,
- linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),
- transcludeFn
- );
- }
-
- // Trigger $postLink lifecycle hooks
- forEach(elementControllers, function(controller) {
- var controllerInstance = controller.instance;
- if (isFunction(controllerInstance.$postLink)) {
- controllerInstance.$postLink();
- }
- });
-
- // This is the function that is injected as `$transclude`.
- // Note: all arguments are optional!
- function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement, slotName) {
- var transcludeControllers;
- // No scope passed in:
- if (!isScope(scope)) {
- slotName = futureParentElement;
- futureParentElement = cloneAttachFn;
- cloneAttachFn = scope;
- scope = undefined;
- }
-
- if (hasElementTranscludeDirective) {
- transcludeControllers = elementControllers;
- }
- if (!futureParentElement) {
- futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;
- }
- if (slotName) {
- // slotTranscludeFn can be one of three things:
- // * a transclude function - a filled slot
- // * `null` - an optional slot that was not filled
- // * `undefined` - a slot that was not declared (i.e. invalid)
- var slotTranscludeFn = boundTranscludeFn.$$slots[slotName];
- if (slotTranscludeFn) {
- return slotTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
- } else if (isUndefined(slotTranscludeFn)) {
- throw $compileMinErr('noslot',
- 'No parent directive that requires a transclusion with slot name "{0}". ' +
- 'Element: {1}',
- slotName, startingTag($element));
- }
- } else {
- return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
- }
- }
- }
- }
-
- function getControllers(directiveName, require, $element, elementControllers) {
- var value;
-
- if (isString(require)) {
- var match = require.match(REQUIRE_PREFIX_REGEXP);
- var name = require.substring(match[0].length);
- var inheritType = match[1] || match[3];
- var optional = match[2] === '?';
-
- //If only parents then start at the parent element
- if (inheritType === '^^') {
- $element = $element.parent();
- //Otherwise attempt getting the controller from elementControllers in case
- //the element is transcluded (and has no data) and to avoid .data if possible
- } else {
- value = elementControllers && elementControllers[name];
- value = value && value.instance;
- }
-
- if (!value) {
- var dataName = '$' + name + 'Controller';
- value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName);
- }
-
- if (!value && !optional) {
- throw $compileMinErr('ctreq',
- 'Controller \'{0}\', required by directive \'{1}\', can\'t be found!',
- name, directiveName);
- }
- } else if (isArray(require)) {
- value = [];
- for (var i = 0, ii = require.length; i < ii; i++) {
- value[i] = getControllers(directiveName, require[i], $element, elementControllers);
- }
- } else if (isObject(require)) {
- value = {};
- forEach(require, function(controller, property) {
- value[property] = getControllers(directiveName, controller, $element, elementControllers);
- });
- }
-
- return value || null;
- }
-
- function setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope, newIsolateScopeDirective) {
- var elementControllers = createMap();
- for (var controllerKey in controllerDirectives) {
- var directive = controllerDirectives[controllerKey];
- var locals = {
- $scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,
- $element: $element,
- $attrs: attrs,
- $transclude: transcludeFn
- };
-
- var controller = directive.controller;
- if (controller === '@') {
- controller = attrs[directive.name];
- }
-
- var controllerInstance = $controller(controller, locals, true, directive.controllerAs);
-
- // For directives with element transclusion the element is a comment.
- // In this case .data will not attach any data.
- // Instead, we save the controllers for the element in a local hash and attach to .data
- // later, once we have the actual element.
- elementControllers[directive.name] = controllerInstance;
- $element.data('$' + directive.name + 'Controller', controllerInstance.instance);
- }
- return elementControllers;
- }
-
- // Depending upon the context in which a directive finds itself it might need to have a new isolated
- // or child scope created. For instance:
- // * if the directive has been pulled into a template because another directive with a higher priority
- // asked for element transclusion
- // * if the directive itself asks for transclusion but it is at the root of a template and the original
- // element was replaced. See https://github.com/angular/angular.js/issues/12936
- function markDirectiveScope(directives, isolateScope, newScope) {
- for (var j = 0, jj = directives.length; j < jj; j++) {
- directives[j] = inherit(directives[j], {$$isolateScope: isolateScope, $$newScope: newScope});
- }
- }
-
- /**
- * looks up the directive and decorates it with exception handling and proper parameters. We
- * call this the boundDirective.
- *
- * @param {string} name name of the directive to look up.
- * @param {string} location The directive must be found in specific format.
- * String containing any of theses characters:
- *
- * * `E`: element name
- * * `A': attribute
- * * `C`: class
- * * `M`: comment
- * @returns {boolean} true if directive was added.
- */
- function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName,
- endAttrName) {
- if (name === ignoreDirective) return null;
- var match = null;
- if (hasDirectives.hasOwnProperty(name)) {
- for (var directive, directives = $injector.get(name + Suffix),
- i = 0, ii = directives.length; i < ii; i++) {
- directive = directives[i];
- if ((isUndefined(maxPriority) || maxPriority > directive.priority) &&
- directive.restrict.indexOf(location) !== -1) {
- if (startAttrName) {
- directive = inherit(directive, {$$start: startAttrName, $$end: endAttrName});
- }
- if (!directive.$$bindings) {
- var bindings = directive.$$bindings =
- parseDirectiveBindings(directive, directive.name);
- if (isObject(bindings.isolateScope)) {
- directive.$$isolateBindings = bindings.isolateScope;
- }
- }
- tDirectives.push(directive);
- match = directive;
- }
- }
- }
- return match;
- }
-
-
- /**
- * looks up the directive and returns true if it is a multi-element directive,
- * and therefore requires DOM nodes between -start and -end markers to be grouped
- * together.
- *
- * @param {string} name name of the directive to look up.
- * @returns true if directive was registered as multi-element.
- */
- function directiveIsMultiElement(name) {
- if (hasDirectives.hasOwnProperty(name)) {
- for (var directive, directives = $injector.get(name + Suffix),
- i = 0, ii = directives.length; i < ii; i++) {
- directive = directives[i];
- if (directive.multiElement) {
- return true;
- }
- }
- }
- return false;
- }
-
- /**
- * When the element is replaced with HTML template then the new attributes
- * on the template need to be merged with the existing attributes in the DOM.
- * The desired effect is to have both of the attributes present.
- *
- * @param {object} dst destination attributes (original DOM)
- * @param {object} src source attributes (from the directive template)
- */
- function mergeTemplateAttributes(dst, src) {
- var srcAttr = src.$attr,
- dstAttr = dst.$attr;
-
- // reapply the old attributes to the new element
- forEach(dst, function(value, key) {
- if (key.charAt(0) !== '$') {
- if (src[key] && src[key] !== value) {
- value += (key === 'style' ? ';' : ' ') + src[key];
- }
- dst.$set(key, value, true, srcAttr[key]);
- }
- });
-
- // copy the new attributes on the old attrs object
- forEach(src, function(value, key) {
- // Check if we already set this attribute in the loop above.
- // `dst` will never contain hasOwnProperty as DOM parser won't let it.
- // You will get an "InvalidCharacterError: DOM Exception 5" error if you
- // have an attribute like "has-own-property" or "data-has-own-property", etc.
- if (!dst.hasOwnProperty(key) && key.charAt(0) !== '$') {
- dst[key] = value;
-
- if (key !== 'class' && key !== 'style') {
- dstAttr[key] = srcAttr[key];
- }
- }
- });
- }
-
-
- function compileTemplateUrl(directives, $compileNode, tAttrs,
- $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) {
- var linkQueue = [],
- afterTemplateNodeLinkFn,
- afterTemplateChildLinkFn,
- beforeTemplateCompileNode = $compileNode[0],
- origAsyncDirective = directives.shift(),
- derivedSyncDirective = inherit(origAsyncDirective, {
- templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective
- }),
- templateUrl = (isFunction(origAsyncDirective.templateUrl))
- ? origAsyncDirective.templateUrl($compileNode, tAttrs)
- : origAsyncDirective.templateUrl,
- templateNamespace = origAsyncDirective.templateNamespace;
-
- $compileNode.empty();
-
- $templateRequest(templateUrl)
- .then(function(content) {
- var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn;
-
- content = denormalizeTemplate(content);
-
- if (origAsyncDirective.replace) {
- if (jqLiteIsTextNode(content)) {
- $template = [];
- } else {
- $template = removeComments(wrapTemplate(templateNamespace, trim(content)));
- }
- compileNode = $template[0];
-
- if ($template.length !== 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {
- throw $compileMinErr('tplrt',
- 'Template for directive \'{0}\' must have exactly one root element. {1}',
- origAsyncDirective.name, templateUrl);
- }
-
- tempTemplateAttrs = {$attr: {}};
- replaceWith($rootElement, $compileNode, compileNode);
- var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs);
-
- if (isObject(origAsyncDirective.scope)) {
- // the original directive that caused the template to be loaded async required
- // an isolate scope
- markDirectiveScope(templateDirectives, true);
- }
- directives = templateDirectives.concat(directives);
- mergeTemplateAttributes(tAttrs, tempTemplateAttrs);
- } else {
- compileNode = beforeTemplateCompileNode;
- $compileNode.html(content);
- }
-
- directives.unshift(derivedSyncDirective);
-
- afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs,
- childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns,
- previousCompileContext);
- forEach($rootElement, function(node, i) {
- if (node === compileNode) {
- $rootElement[i] = $compileNode[0];
- }
- });
- afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);
-
- while (linkQueue.length) {
- var scope = linkQueue.shift(),
- beforeTemplateLinkNode = linkQueue.shift(),
- linkRootElement = linkQueue.shift(),
- boundTranscludeFn = linkQueue.shift(),
- linkNode = $compileNode[0];
-
- if (scope.$$destroyed) continue;
-
- if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {
- var oldClasses = beforeTemplateLinkNode.className;
-
- if (!(previousCompileContext.hasElementTranscludeDirective &&
- origAsyncDirective.replace)) {
- // it was cloned therefore we have to clone as well.
- linkNode = jqLiteClone(compileNode);
- }
- replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);
-
- // Copy in CSS classes from original node
- safeAddClass(jqLite(linkNode), oldClasses);
- }
- if (afterTemplateNodeLinkFn.transcludeOnThisElement) {
- childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);
- } else {
- childBoundTranscludeFn = boundTranscludeFn;
- }
- afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement,
- childBoundTranscludeFn);
- }
- linkQueue = null;
- });
-
- return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) {
- var childBoundTranscludeFn = boundTranscludeFn;
- if (scope.$$destroyed) return;
- if (linkQueue) {
- linkQueue.push(scope,
- node,
- rootElement,
- childBoundTranscludeFn);
- } else {
- if (afterTemplateNodeLinkFn.transcludeOnThisElement) {
- childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);
- }
- afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn);
- }
- };
- }
-
-
- /**
- * Sorting function for bound directives.
- */
- function byPriority(a, b) {
- var diff = b.priority - a.priority;
- if (diff !== 0) return diff;
- if (a.name !== b.name) return (a.name < b.name) ? -1 : 1;
- return a.index - b.index;
- }
-
- function assertNoDuplicate(what, previousDirective, directive, element) {
-
- function wrapModuleNameIfDefined(moduleName) {
- return moduleName ?
- (' (module: ' + moduleName + ')') :
- '';
- }
-
- if (previousDirective) {
- throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',
- previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),
- directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));
- }
- }
-
-
- function addTextInterpolateDirective(directives, text) {
- var interpolateFn = $interpolate(text, true);
- if (interpolateFn) {
- directives.push({
- priority: 0,
- compile: function textInterpolateCompileFn(templateNode) {
- var templateNodeParent = templateNode.parent(),
- hasCompileParent = !!templateNodeParent.length;
-
- // When transcluding a template that has bindings in the root
- // we don't have a parent and thus need to add the class during linking fn.
- if (hasCompileParent) compile.$$addBindingClass(templateNodeParent);
-
- return function textInterpolateLinkFn(scope, node) {
- var parent = node.parent();
- if (!hasCompileParent) compile.$$addBindingClass(parent);
- compile.$$addBindingInfo(parent, interpolateFn.expressions);
- scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {
- node[0].nodeValue = value;
- });
- };
- }
- });
- }
- }
-
-
- function wrapTemplate(type, template) {
- type = lowercase(type || 'html');
- switch (type) {
- case 'svg':
- case 'math':
- var wrapper = window.document.createElement('div');
- wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
- return wrapper.childNodes[0].childNodes;
- default:
- return template;
- }
- }
-
-
- function getTrustedContext(node, attrNormalizedName) {
- if (attrNormalizedName === 'srcdoc') {
- return $sce.HTML;
- }
- var tag = nodeName_(node);
- // All tags with src attributes require a RESOURCE_URL value, except for
- // img and various html5 media tags.
- if (attrNormalizedName === 'src' || attrNormalizedName === 'ngSrc') {
- if (['img', 'video', 'audio', 'source', 'track'].indexOf(tag) === -1) {
- return $sce.RESOURCE_URL;
- }
- // maction[xlink:href] can source SVG. It's not limited to <maction>.
- } else if (attrNormalizedName === 'xlinkHref' ||
- (tag === 'form' && attrNormalizedName === 'action')
- ) {
- return $sce.RESOURCE_URL;
- }
- }
-
-
- function addAttrInterpolateDirective(node, directives, value, name, isNgAttr) {
- var trustedContext = getTrustedContext(node, name);
- var mustHaveExpression = !isNgAttr;
- var allOrNothing = ALL_OR_NOTHING_ATTRS[name] || isNgAttr;
-
- var interpolateFn = $interpolate(value, mustHaveExpression, trustedContext, allOrNothing);
-
- // no interpolation found -> ignore
- if (!interpolateFn) return;
-
- if (name === 'multiple' && nodeName_(node) === 'select') {
- throw $compileMinErr('selmulti',
- 'Binding to the \'multiple\' attribute is not supported. Element: {0}',
- startingTag(node));
- }
-
- directives.push({
- priority: 100,
- compile: function() {
- return {
- pre: function attrInterpolatePreLinkFn(scope, element, attr) {
- var $$observers = (attr.$$observers || (attr.$$observers = createMap()));
-
- if (EVENT_HANDLER_ATTR_REGEXP.test(name)) {
- throw $compileMinErr('nodomevents',
- 'Interpolations for HTML DOM event attributes are disallowed. Please use the ' +
- 'ng- versions (such as ng-click instead of onclick) instead.');
- }
-
- // If the attribute has changed since last $interpolate()ed
- var newValue = attr[name];
- if (newValue !== value) {
- // we need to interpolate again since the attribute value has been updated
- // (e.g. by another directive's compile function)
- // ensure unset/empty values make interpolateFn falsy
- interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing);
- value = newValue;
- }
-
- // if attribute was updated so that there is no interpolation going on we don't want to
- // register any observers
- if (!interpolateFn) return;
-
- // initialize attr object so that it's ready in case we need the value for isolate
- // scope initialization, otherwise the value would not be available from isolate
- // directive's linking fn during linking phase
- attr[name] = interpolateFn(scope);
-
- ($$observers[name] || ($$observers[name] = [])).$$inter = true;
- (attr.$$observers && attr.$$observers[name].$$scope || scope).
- $watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) {
- //special case for class attribute addition + removal
- //so that class changes can tap into the animation
- //hooks provided by the $animate service. Be sure to
- //skip animations when the first digest occurs (when
- //both the new and the old values are the same) since
- //the CSS classes are the non-interpolated values
- if (name === 'class' && newValue !== oldValue) {
- attr.$updateClass(newValue, oldValue);
- } else {
- attr.$set(name, newValue);
- }
- });
- }
- };
- }
- });
- }
-
-
- /**
- * This is a special jqLite.replaceWith, which can replace items which
- * have no parents, provided that the containing jqLite collection is provided.
- *
- * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes
- * in the root of the tree.
- * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep
- * the shell, but replace its DOM node reference.
- * @param {Node} newNode The new DOM node.
- */
- function replaceWith($rootElement, elementsToRemove, newNode) {
- var firstElementToRemove = elementsToRemove[0],
- removeCount = elementsToRemove.length,
- parent = firstElementToRemove.parentNode,
- i, ii;
-
- if ($rootElement) {
- for (i = 0, ii = $rootElement.length; i < ii; i++) {
- if ($rootElement[i] === firstElementToRemove) {
- $rootElement[i++] = newNode;
- for (var j = i, j2 = j + removeCount - 1,
- jj = $rootElement.length;
- j < jj; j++, j2++) {
- if (j2 < jj) {
- $rootElement[j] = $rootElement[j2];
- } else {
- delete $rootElement[j];
- }
- }
- $rootElement.length -= removeCount - 1;
-
- // If the replaced element is also the jQuery .context then replace it
- // .context is a deprecated jQuery api, so we should set it only when jQuery set it
- // http://api.jquery.com/context/
- if ($rootElement.context === firstElementToRemove) {
- $rootElement.context = newNode;
- }
- break;
- }
- }
- }
-
- if (parent) {
- parent.replaceChild(newNode, firstElementToRemove);
- }
-
- // Append all the `elementsToRemove` to a fragment. This will...
- // - remove them from the DOM
- // - allow them to still be traversed with .nextSibling
- // - allow a single fragment.qSA to fetch all elements being removed
- var fragment = window.document.createDocumentFragment();
- for (i = 0; i < removeCount; i++) {
- fragment.appendChild(elementsToRemove[i]);
- }
-
- if (jqLite.hasData(firstElementToRemove)) {
- // Copy over user data (that includes Angular's $scope etc.). Don't copy private
- // data here because there's no public interface in jQuery to do that and copying over
- // event listeners (which is the main use of private data) wouldn't work anyway.
- jqLite.data(newNode, jqLite.data(firstElementToRemove));
-
- // Remove $destroy event listeners from `firstElementToRemove`
- jqLite(firstElementToRemove).off('$destroy');
- }
-
- // Cleanup any data/listeners on the elements and children.
- // This includes invoking the $destroy event on any elements with listeners.
- jqLite.cleanData(fragment.querySelectorAll('*'));
-
- // Update the jqLite collection to only contain the `newNode`
- for (i = 1; i < removeCount; i++) {
- delete elementsToRemove[i];
- }
- elementsToRemove[0] = newNode;
- elementsToRemove.length = 1;
- }
-
-
- function cloneAndAnnotateFn(fn, annotation) {
- return extend(function() { return fn.apply(null, arguments); }, fn, annotation);
- }
-
-
- function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) {
- try {
- linkFn(scope, $element, attrs, controllers, transcludeFn);
- } catch (e) {
- $exceptionHandler(e, startingTag($element));
- }
- }
-
-
- // Set up $watches for isolate scope and controller bindings.
- function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) {
- var removeWatchCollection = [];
- var initialChanges = {};
- var changes;
- forEach(bindings, function initializeBinding(definition, scopeName) {
- var attrName = definition.attrName,
- optional = definition.optional,
- mode = definition.mode, // @, =, <, or &
- lastValue,
- parentGet, parentSet, compare, removeWatch;
-
- switch (mode) {
-
- case '@':
- if (!optional && !hasOwnProperty.call(attrs, attrName)) {
- destination[scopeName] = attrs[attrName] = undefined;
- }
- removeWatch = attrs.$observe(attrName, function(value) {
- if (isString(value) || isBoolean(value)) {
- var oldValue = destination[scopeName];
- recordChanges(scopeName, value, oldValue);
- destination[scopeName] = value;
- }
- });
- attrs.$$observers[attrName].$$scope = scope;
- lastValue = attrs[attrName];
- if (isString(lastValue)) {
- // If the attribute has been provided then we trigger an interpolation to ensure
- // the value is there for use in the link fn
- destination[scopeName] = $interpolate(lastValue)(scope);
- } else if (isBoolean(lastValue)) {
- // If the attributes is one of the BOOLEAN_ATTR then Angular will have converted
- // the value to boolean rather than a string, so we special case this situation
- destination[scopeName] = lastValue;
- }
- initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]);
- removeWatchCollection.push(removeWatch);
- break;
-
- case '=':
- if (!hasOwnProperty.call(attrs, attrName)) {
- if (optional) break;
- attrs[attrName] = undefined;
- }
- if (optional && !attrs[attrName]) break;
-
- parentGet = $parse(attrs[attrName]);
- if (parentGet.literal) {
- compare = equals;
- } else {
- // eslint-disable-next-line no-self-compare
- compare = function simpleCompare(a, b) { return a === b || (a !== a && b !== b); };
- }
- parentSet = parentGet.assign || function() {
- // reset the change, or we will throw this exception on every $digest
- lastValue = destination[scopeName] = parentGet(scope);
- throw $compileMinErr('nonassign',
- 'Expression \'{0}\' in attribute \'{1}\' used with directive \'{2}\' is non-assignable!',
- attrs[attrName], attrName, directive.name);
- };
- lastValue = destination[scopeName] = parentGet(scope);
- var parentValueWatch = function parentValueWatch(parentValue) {
- if (!compare(parentValue, destination[scopeName])) {
- // we are out of sync and need to copy
- if (!compare(parentValue, lastValue)) {
- // parent changed and it has precedence
- destination[scopeName] = parentValue;
- } else {
- // if the parent can be assigned then do so
- parentSet(scope, parentValue = destination[scopeName]);
- }
- }
- lastValue = parentValue;
- return lastValue;
- };
- parentValueWatch.$stateful = true;
- if (definition.collection) {
- removeWatch = scope.$watchCollection(attrs[attrName], parentValueWatch);
- } else {
- removeWatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);
- }
- removeWatchCollection.push(removeWatch);
- break;
-
- case '<':
- if (!hasOwnProperty.call(attrs, attrName)) {
- if (optional) break;
- attrs[attrName] = undefined;
- }
- if (optional && !attrs[attrName]) break;
-
- parentGet = $parse(attrs[attrName]);
- var deepWatch = parentGet.literal;
-
- var initialValue = destination[scopeName] = parentGet(scope);
- initialChanges[scopeName] = new SimpleChange(_UNINITIALIZED_VALUE, destination[scopeName]);
-
- removeWatch = scope.$watch(parentGet, function parentValueWatchAction(newValue, oldValue) {
- if (oldValue === newValue) {
- if (oldValue === initialValue || (deepWatch && equals(oldValue, initialValue))) {
- return;
- }
- oldValue = initialValue;
- }
- recordChanges(scopeName, newValue, oldValue);
- destination[scopeName] = newValue;
- }, deepWatch);
-
- removeWatchCollection.push(removeWatch);
- break;
-
- case '&':
- // Don't assign Object.prototype method to scope
- parentGet = attrs.hasOwnProperty(attrName) ? $parse(attrs[attrName]) : noop;
-
- // Don't assign noop to destination if expression is not valid
- if (parentGet === noop && optional) break;
-
- destination[scopeName] = function(locals) {
- return parentGet(scope, locals);
- };
- break;
- }
- });
-
- function recordChanges(key, currentValue, previousValue) {
- if (isFunction(destination.$onChanges) && currentValue !== previousValue &&
- // eslint-disable-next-line no-self-compare
- (currentValue === currentValue || previousValue === previousValue)) {
- // If we have not already scheduled the top level onChangesQueue handler then do so now
- if (!onChangesQueue) {
- scope.$$postDigest(flushOnChangesQueue);
- onChangesQueue = [];
- }
- // If we have not already queued a trigger of onChanges for this controller then do so now
- if (!changes) {
- changes = {};
- onChangesQueue.push(triggerOnChangesHook);
- }
- // If the has been a change on this property already then we need to reuse the previous value
- if (changes[key]) {
- previousValue = changes[key].previousValue;
- }
- // Store this change
- changes[key] = new SimpleChange(previousValue, currentValue);
- }
- }
-
- function triggerOnChangesHook() {
- destination.$onChanges(changes);
- // Now clear the changes so that we schedule onChanges when more changes arrive
- changes = undefined;
- }
-
- return {
- initialChanges: initialChanges,
- removeWatches: removeWatchCollection.length && function removeWatches() {
- for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) {
- removeWatchCollection[i]();
- }
- }
- };
- }
- }];
-}
-
-function SimpleChange(previous, current) {
- this.previousValue = previous;
- this.currentValue = current;
-}
-SimpleChange.prototype.isFirstChange = function() { return this.previousValue === _UNINITIALIZED_VALUE; };
-
-
-var PREFIX_REGEXP = /^((?:x|data)[:\-_])/i;
-/**
- * Converts all accepted directives format into proper directive name.
- * @param name Name to normalize
- */
-function directiveNormalize(name) {
- return camelCase(name.replace(PREFIX_REGEXP, ''));
-}
-
-/**
- * @ngdoc type
- * @name $compile.directive.Attributes
- *
- * @description
- * A shared object between directive compile / linking functions which contains normalized DOM
- * element attributes. The values reflect current binding state `{{ }}`. The normalization is
- * needed since all of these are treated as equivalent in Angular:
- *
- * ```
- * <span ng:bind="a" ng-bind="a" data-ng-bind="a" x-ng-bind="a">
- * ```
- */
-
-/**
- * @ngdoc property
- * @name $compile.directive.Attributes#$attr
- *
- * @description
- * A map of DOM element attribute names to the normalized name. This is
- * needed to do reverse lookup from normalized name back to actual name.
- */
-
-
-/**
- * @ngdoc method
- * @name $compile.directive.Attributes#$set
- * @kind function
- *
- * @description
- * Set DOM element attribute value.
- *
- *
- * @param {string} name Normalized element attribute name of the property to modify. The name is
- * reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}
- * property to the original name.
- * @param {string} value Value to set the attribute to. The value can be an interpolated string.
- */
-
-
-
-/**
- * Closure compiler type information
- */
-
-function nodesetLinkingFn(
- /* angular.Scope */ scope,
- /* NodeList */ nodeList,
- /* Element */ rootElement,
- /* function(Function) */ boundTranscludeFn
-) {}
-
-function directiveLinkingFn(
- /* nodesetLinkingFn */ nodesetLinkingFn,
- /* angular.Scope */ scope,
- /* Node */ node,
- /* Element */ rootElement,
- /* function(Function) */ boundTranscludeFn
-) {}
-
-function tokenDifference(str1, str2) {
- var values = '',
- tokens1 = str1.split(/\s+/),
- tokens2 = str2.split(/\s+/);
-
- outer:
- for (var i = 0; i < tokens1.length; i++) {
- var token = tokens1[i];
- for (var j = 0; j < tokens2.length; j++) {
- if (token === tokens2[j]) continue outer;
- }
- values += (values.length > 0 ? ' ' : '') + token;
- }
- return values;
-}
-
-function removeComments(jqNodes) {
- jqNodes = jqLite(jqNodes);
- var i = jqNodes.length;
-
- if (i <= 1) {
- return jqNodes;
- }
-
- while (i--) {
- var node = jqNodes[i];
- if (node.nodeType === NODE_TYPE_COMMENT ||
- (node.nodeType === NODE_TYPE_TEXT && node.nodeValue.trim() === '')) {
- splice.call(jqNodes, i, 1);
- }
- }
- return jqNodes;
-}
-
-var $controllerMinErr = minErr('$controller');
-
-
-var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
-function identifierForController(controller, ident) {
- if (ident && isString(ident)) return ident;
- if (isString(controller)) {
- var match = CNTRL_REG.exec(controller);
- if (match) return match[3];
- }
-}
-
-
-/**
- * @ngdoc provider
- * @name $controllerProvider
- * @this
- *
- * @description
- * The {@link ng.$controller $controller service} is used by Angular to create new
- * controllers.
- *
- * This provider allows controller registration via the
- * {@link ng.$controllerProvider#register register} method.
- */
-function $ControllerProvider() {
- var controllers = {},
- globals = false;
-
- /**
- * @ngdoc method
- * @name $controllerProvider#has
- * @param {string} name Controller name to check.
- */
- this.has = function(name) {
- return controllers.hasOwnProperty(name);
- };
-
- /**
- * @ngdoc method
- * @name $controllerProvider#register
- * @param {string|Object} name Controller name, or an object map of controllers where the keys are
- * the names and the values are the constructors.
- * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI
- * annotations in the array notation).
- */
- this.register = function(name, constructor) {
- assertNotHasOwnProperty(name, 'controller');
- if (isObject(name)) {
- extend(controllers, name);
- } else {
- controllers[name] = constructor;
- }
- };
-
- /**
- * @ngdoc method
- * @name $controllerProvider#allowGlobals
- *
- * @deprecated
- * sinceVersion="v1.3.0"
- * removeVersion="v1.7.0"
- * This method of finding controllers has been deprecated.
- *
- * @description If called, allows `$controller` to find controller constructors on `window` *
- */
- this.allowGlobals = function() {
- globals = true;
- };
-
-
- this.$get = ['$injector', '$window', function($injector, $window) {
-
- /**
- * @ngdoc service
- * @name $controller
- * @requires $injector
- *
- * @param {Function|string} constructor If called with a function then it's considered to be the
- * controller constructor function. Otherwise it's considered to be a string which is used
- * to retrieve the controller constructor using the following steps:
- *
- * * check if a controller with given name is registered via `$controllerProvider`
- * * check if evaluating the string on the current scope returns a constructor
- * * if $controllerProvider#allowGlobals, check `window[constructor]` on the global
- * `window` object (not recommended)
- *
- * The string can use the `controller as property` syntax, where the controller instance is published
- * as the specified property on the `scope`; the `scope` must be injected into `locals` param for this
- * to work correctly.
- *
- * @param {Object} locals Injection locals for Controller.
- * @return {Object} Instance of given controller.
- *
- * @description
- * `$controller` service is responsible for instantiating controllers.
- *
- * It's just a simple call to {@link auto.$injector $injector}, but extracted into
- * a service, so that one can override this service with [BC version](https://gist.github.com/1649788).
- */
- return function $controller(expression, locals, later, ident) {
- // PRIVATE API:
- // param `later` --- indicates that the controller's constructor is invoked at a later time.
- // If true, $controller will allocate the object with the correct
- // prototype chain, but will not invoke the controller until a returned
- // callback is invoked.
- // param `ident` --- An optional label which overrides the label parsed from the controller
- // expression, if any.
- var instance, match, constructor, identifier;
- later = later === true;
- if (ident && isString(ident)) {
- identifier = ident;
- }
-
- if (isString(expression)) {
- match = expression.match(CNTRL_REG);
- if (!match) {
- throw $controllerMinErr('ctrlfmt',
- 'Badly formed controller string \'{0}\'. ' +
- 'Must match `__name__ as __id__` or `__name__`.', expression);
- }
- constructor = match[1];
- identifier = identifier || match[3];
- expression = controllers.hasOwnProperty(constructor)
- ? controllers[constructor]
- : getter(locals.$scope, constructor, true) ||
- (globals ? getter($window, constructor, true) : undefined);
-
- if (!expression) {
- throw $controllerMinErr('ctrlreg',
- 'The controller with the name \'{0}\' is not registered.', constructor);
- }
-
- assertArgFn(expression, constructor, true);
- }
-
- if (later) {
- // Instantiate controller later:
- // This machinery is used to create an instance of the object before calling the
- // controller's constructor itself.
- //
- // This allows properties to be added to the controller before the constructor is
- // invoked. Primarily, this is used for isolate scope bindings in $compile.
- //
- // This feature is not intended for use by applications, and is thus not documented
- // publicly.
- // Object creation: http://jsperf.com/create-constructor/2
- var controllerPrototype = (isArray(expression) ?
- expression[expression.length - 1] : expression).prototype;
- instance = Object.create(controllerPrototype || null);
-
- if (identifier) {
- addIdentifier(locals, identifier, instance, constructor || expression.name);
- }
-
- return extend(function $controllerInit() {
- var result = $injector.invoke(expression, instance, locals, constructor);
- if (result !== instance && (isObject(result) || isFunction(result))) {
- instance = result;
- if (identifier) {
- // If result changed, re-assign controllerAs value to scope.
- addIdentifier(locals, identifier, instance, constructor || expression.name);
- }
- }
- return instance;
- }, {
- instance: instance,
- identifier: identifier
- });
- }
-
- instance = $injector.instantiate(expression, locals, constructor);
-
- if (identifier) {
- addIdentifier(locals, identifier, instance, constructor || expression.name);
- }
-
- return instance;
- };
-
- function addIdentifier(locals, identifier, instance, name) {
- if (!(locals && isObject(locals.$scope))) {
- throw minErr('$controller')('noscp',
- 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.',
- name, identifier);
- }
-
- locals.$scope[identifier] = instance;
- }
- }];
-}
-
-/**
- * @ngdoc service
- * @name $document
- * @requires $window
- * @this
- *
- * @description
- * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.
- *
- * @example
- <example module="documentExample" name="document">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <p>$document title: <b ng-bind="title"></b></p>
- <p>window.document title: <b ng-bind="windowTitle"></b></p>
- </div>
- </file>
- <file name="script.js">
- angular.module('documentExample', [])
- .controller('ExampleController', ['$scope', '$document', function($scope, $document) {
- $scope.title = $document[0].title;
- $scope.windowTitle = angular.element(window.document)[0].title;
- }]);
- </file>
- </example>
- */
-function $DocumentProvider() {
- this.$get = ['$window', function(window) {
- return jqLite(window.document);
- }];
-}
-
-/**
- * @ngdoc service
- * @name $exceptionHandler
- * @requires ng.$log
- * @this
- *
- * @description
- * Any uncaught exception in angular expressions is delegated to this service.
- * The default implementation simply delegates to `$log.error` which logs it into
- * the browser console.
- *
- * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by
- * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.
- *
- * ## Example:
- *
- * The example below will overwrite the default `$exceptionHandler` in order to (a) log uncaught
- * errors to the backend for later inspection by the developers and (b) to use `$log.warn()` instead
- * of `$log.error()`.
- *
- * ```js
- * angular.
- * module('exceptionOverwrite', []).
- * factory('$exceptionHandler', ['$log', 'logErrorsToBackend', function($log, logErrorsToBackend) {
- * return function myExceptionHandler(exception, cause) {
- * logErrorsToBackend(exception, cause);
- * $log.warn(exception, cause);
- * };
- * }]);
- * ```
- *
- * <hr />
- * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`
- * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}
- * (unless executed during a digest).
- *
- * If you wish, you can manually delegate exceptions, e.g.
- * `try { ... } catch(e) { $exceptionHandler(e); }`
- *
- * @param {Error} exception Exception associated with the error.
- * @param {string=} cause Optional information about the context in which
- * the error was thrown.
- *
- */
-function $ExceptionHandlerProvider() {
- this.$get = ['$log', function($log) {
- return function(exception, cause) {
- $log.error.apply($log, arguments);
- };
- }];
-}
-
-var $$ForceReflowProvider = /** @this */ function() {
- this.$get = ['$document', function($document) {
- return function(domNode) {
- //the line below will force the browser to perform a repaint so
- //that all the animated elements within the animation frame will
- //be properly updated and drawn on screen. This is required to
- //ensure that the preparation animation is properly flushed so that
- //the active state picks up from there. DO NOT REMOVE THIS LINE.
- //DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH
- //WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND
- //WILL TAKE YEARS AWAY FROM YOUR LIFE.
- if (domNode) {
- if (!domNode.nodeType && domNode instanceof jqLite) {
- domNode = domNode[0];
- }
- } else {
- domNode = $document[0].body;
- }
- return domNode.offsetWidth + 1;
- };
- }];
-};
-
-var APPLICATION_JSON = 'application/json';
-var CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};
-var JSON_START = /^\[|^\{(?!\{)/;
-var JSON_ENDS = {
- '[': /]$/,
- '{': /}$/
-};
-var JSON_PROTECTION_PREFIX = /^\)]\}',?\n/;
-var $httpMinErr = minErr('$http');
-var $httpMinErrLegacyFn = function(method) {
- return function() {
- throw $httpMinErr('legacy', 'The method `{0}` on the promise returned from `$http` has been disabled.', method);
- };
-};
-
-function serializeValue(v) {
- if (isObject(v)) {
- return isDate(v) ? v.toISOString() : toJson(v);
- }
- return v;
-}
-
-
-/** @this */
-function $HttpParamSerializerProvider() {
- /**
- * @ngdoc service
- * @name $httpParamSerializer
- * @description
- *
- * Default {@link $http `$http`} params serializer that converts objects to strings
- * according to the following rules:
- *
- * * `{'foo': 'bar'}` results in `foo=bar`
- * * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object)
- * * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element)
- * * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D` (stringified and encoded representation of an object)
- *
- * Note that serializer will sort the request parameters alphabetically.
- * */
-
- this.$get = function() {
- return function ngParamSerializer(params) {
- if (!params) return '';
- var parts = [];
- forEachSorted(params, function(value, key) {
- if (value === null || isUndefined(value)) return;
- if (isArray(value)) {
- forEach(value, function(v) {
- parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(v)));
- });
- } else {
- parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(value)));
- }
- });
-
- return parts.join('&');
- };
- };
-}
-
-/** @this */
-function $HttpParamSerializerJQLikeProvider() {
- /**
- * @ngdoc service
- * @name $httpParamSerializerJQLike
- *
- * @description
- *
- * Alternative {@link $http `$http`} params serializer that follows
- * jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic.
- * The serializer will also sort the params alphabetically.
- *
- * To use it for serializing `$http` request parameters, set it as the `paramSerializer` property:
- *
- * ```js
- * $http({
- * url: myUrl,
- * method: 'GET',
- * params: myParams,
- * paramSerializer: '$httpParamSerializerJQLike'
- * });
- * ```
- *
- * It is also possible to set it as the default `paramSerializer` in the
- * {@link $httpProvider#defaults `$httpProvider`}.
- *
- * Additionally, you can inject the serializer and use it explicitly, for example to serialize
- * form data for submission:
- *
- * ```js
- * .controller(function($http, $httpParamSerializerJQLike) {
- * //...
- *
- * $http({
- * url: myUrl,
- * method: 'POST',
- * data: $httpParamSerializerJQLike(myData),
- * headers: {
- * 'Content-Type': 'application/x-www-form-urlencoded'
- * }
- * });
- *
- * });
- * ```
- *
- * */
- this.$get = function() {
- return function jQueryLikeParamSerializer(params) {
- if (!params) return '';
- var parts = [];
- serialize(params, '', true);
- return parts.join('&');
-
- function serialize(toSerialize, prefix, topLevel) {
- if (toSerialize === null || isUndefined(toSerialize)) return;
- if (isArray(toSerialize)) {
- forEach(toSerialize, function(value, index) {
- serialize(value, prefix + '[' + (isObject(value) ? index : '') + ']');
- });
- } else if (isObject(toSerialize) && !isDate(toSerialize)) {
- forEachSorted(toSerialize, function(value, key) {
- serialize(value, prefix +
- (topLevel ? '' : '[') +
- key +
- (topLevel ? '' : ']'));
- });
- } else {
- parts.push(encodeUriQuery(prefix) + '=' + encodeUriQuery(serializeValue(toSerialize)));
- }
- }
- };
- };
-}
-
-function defaultHttpResponseTransform(data, headers) {
- if (isString(data)) {
- // Strip json vulnerability protection prefix and trim whitespace
- var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim();
-
- if (tempData) {
- var contentType = headers('Content-Type');
- if ((contentType && (contentType.indexOf(APPLICATION_JSON) === 0)) || isJsonLike(tempData)) {
- data = fromJson(tempData);
- }
- }
- }
-
- return data;
-}
-
-function isJsonLike(str) {
- var jsonStart = str.match(JSON_START);
- return jsonStart && JSON_ENDS[jsonStart[0]].test(str);
-}
-
-/**
- * Parse headers into key value object
- *
- * @param {string} headers Raw headers as a string
- * @returns {Object} Parsed headers as key value object
- */
-function parseHeaders(headers) {
- var parsed = createMap(), i;
-
- function fillInParsed(key, val) {
- if (key) {
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
- }
- }
-
- if (isString(headers)) {
- forEach(headers.split('\n'), function(line) {
- i = line.indexOf(':');
- fillInParsed(lowercase(trim(line.substr(0, i))), trim(line.substr(i + 1)));
- });
- } else if (isObject(headers)) {
- forEach(headers, function(headerVal, headerKey) {
- fillInParsed(lowercase(headerKey), trim(headerVal));
- });
- }
-
- return parsed;
-}
-
-
-/**
- * Returns a function that provides access to parsed headers.
- *
- * Headers are lazy parsed when first requested.
- * @see parseHeaders
- *
- * @param {(string|Object)} headers Headers to provide access to.
- * @returns {function(string=)} Returns a getter function which if called with:
- *
- * - if called with an argument returns a single header value or null
- * - if called with no arguments returns an object containing all headers.
- */
-function headersGetter(headers) {
- var headersObj;
-
- return function(name) {
- if (!headersObj) headersObj = parseHeaders(headers);
-
- if (name) {
- var value = headersObj[lowercase(name)];
- if (value === undefined) {
- value = null;
- }
- return value;
- }
-
- return headersObj;
- };
-}
-
-
-/**
- * Chain all given functions
- *
- * This function is used for both request and response transforming
- *
- * @param {*} data Data to transform.
- * @param {function(string=)} headers HTTP headers getter fn.
- * @param {number} status HTTP status code of the response.
- * @param {(Function|Array.<Function>)} fns Function or an array of functions.
- * @returns {*} Transformed data.
- */
-function transformData(data, headers, status, fns) {
- if (isFunction(fns)) {
- return fns(data, headers, status);
- }
-
- forEach(fns, function(fn) {
- data = fn(data, headers, status);
- });
-
- return data;
-}
-
-
-function isSuccess(status) {
- return 200 <= status && status < 300;
-}
-
-
-/**
- * @ngdoc provider
- * @name $httpProvider
- * @this
- *
- * @description
- * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.
- * */
-function $HttpProvider() {
- /**
- * @ngdoc property
- * @name $httpProvider#defaults
- * @description
- *
- * Object containing default values for all {@link ng.$http $http} requests.
- *
- * - **`defaults.cache`** - {boolean|Object} - A boolean value or object created with
- * {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of HTTP responses
- * by default. See {@link $http#caching $http Caching} for more information.
- *
- * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.
- * Defaults value is `'XSRF-TOKEN'`.
- *
- * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the
- * XSRF token. Defaults value is `'X-XSRF-TOKEN'`.
- *
- * - **`defaults.headers`** - {Object} - Default headers for all $http requests.
- * Refer to {@link ng.$http#setting-http-headers $http} for documentation on
- * setting default headers.
- * - **`defaults.headers.common`**
- * - **`defaults.headers.post`**
- * - **`defaults.headers.put`**
- * - **`defaults.headers.patch`**
- *
- *
- * - **`defaults.paramSerializer`** - `{string|function(Object<string,string>):string}` - A function
- * used to the prepare string representation of request parameters (specified as an object).
- * If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}.
- * Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}.
- *
- **/
- var defaults = this.defaults = {
- // transform incoming response data
- transformResponse: [defaultHttpResponseTransform],
-
- // transform outgoing request data
- transformRequest: [function(d) {
- return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d;
- }],
-
- // default headers
- headers: {
- common: {
- 'Accept': 'application/json, text/plain, */*'
- },
- post: shallowCopy(CONTENT_TYPE_APPLICATION_JSON),
- put: shallowCopy(CONTENT_TYPE_APPLICATION_JSON),
- patch: shallowCopy(CONTENT_TYPE_APPLICATION_JSON)
- },
-
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
-
- paramSerializer: '$httpParamSerializer'
- };
-
- var useApplyAsync = false;
- /**
- * @ngdoc method
- * @name $httpProvider#useApplyAsync
- * @description
- *
- * Configure $http service to combine processing of multiple http responses received at around
- * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in
- * significant performance improvement for bigger applications that make many HTTP requests
- * concurrently (common during application bootstrap).
- *
- * Defaults to false. If no value is specified, returns the current configured value.
- *
- * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred
- * "apply" on the next tick, giving time for subsequent requests in a roughly ~10ms window
- * to load and share the same digest cycle.
- *
- * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
- * otherwise, returns the current configured value.
- **/
- this.useApplyAsync = function(value) {
- if (isDefined(value)) {
- useApplyAsync = !!value;
- return this;
- }
- return useApplyAsync;
- };
-
- var useLegacyPromise = true;
- /**
- * @ngdoc method
- * @name $httpProvider#useLegacyPromiseExtensions
- * @description
- *
- * @deprecated
- * sinceVersion="v1.4.4"
- * removeVersion="v1.6.0"
- * This method will be removed in v1.6.0 along with the legacy promise methods.
- *
- * Configure `$http` service to return promises without the shorthand methods `success` and `error`.
- * This should be used to make sure that applications work without these methods.
- *
- * Defaults to true. If no value is specified, returns the current configured value.
- *
- * @param {boolean=} value If true, `$http` will return a promise with the deprecated legacy `success` and `error` methods.
- *
- * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
- * otherwise, returns the current configured value.
- **/
- this.useLegacyPromiseExtensions = function(value) {
- if (isDefined(value)) {
- useLegacyPromise = !!value;
- return this;
- }
- return useLegacyPromise;
- };
-
- /**
- * @ngdoc property
- * @name $httpProvider#interceptors
- * @description
- *
- * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}
- * pre-processing of request or postprocessing of responses.
- *
- * These service factories are ordered by request, i.e. they are applied in the same order as the
- * array, on request, but reverse order, on response.
- *
- * {@link ng.$http#interceptors Interceptors detailed info}
- **/
- var interceptorFactories = this.interceptors = [];
-
- this.$get = ['$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector',
- function($httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector) {
-
- var defaultCache = $cacheFactory('$http');
-
- /**
- * Make sure that default param serializer is exposed as a function
- */
- defaults.paramSerializer = isString(defaults.paramSerializer) ?
- $injector.get(defaults.paramSerializer) : defaults.paramSerializer;
-
- /**
- * Interceptors stored in reverse order. Inner interceptors before outer interceptors.
- * The reversal is needed so that we can build up the interception chain around the
- * server request.
- */
- var reversedInterceptors = [];
-
- forEach(interceptorFactories, function(interceptorFactory) {
- reversedInterceptors.unshift(isString(interceptorFactory)
- ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));
- });
-
- /**
- * @ngdoc service
- * @kind function
- * @name $http
- * @requires ng.$httpBackend
- * @requires $cacheFactory
- * @requires $rootScope
- * @requires $q
- * @requires $injector
- *
- * @description
- * The `$http` service is a core Angular service that facilitates communication with the remote
- * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)
- * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).
- *
- * For unit testing applications that use `$http` service, see
- * {@link ngMock.$httpBackend $httpBackend mock}.
- *
- * For a higher level of abstraction, please check out the {@link ngResource.$resource
- * $resource} service.
- *
- * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by
- * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage
- * it is important to familiarize yourself with these APIs and the guarantees they provide.
- *
- *
- * ## General usage
- * The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} —
- * that is used to generate an HTTP request and returns a {@link ng.$q promise}.
- *
- * ```js
- * // Simple GET request example:
- * $http({
- * method: 'GET',
- * url: '/someUrl'
- * }).then(function successCallback(response) {
- * // this callback will be called asynchronously
- * // when the response is available
- * }, function errorCallback(response) {
- * // called asynchronously if an error occurs
- * // or server returns response with an error status.
- * });
- * ```
- *
- * The response object has these properties:
- *
- * - **data** – `{string|Object}` – The response body transformed with the transform
- * functions.
- * - **status** – `{number}` – HTTP status code of the response.
- * - **headers** – `{function([headerName])}` – Header getter function.
- * - **config** – `{Object}` – The configuration object that was used to generate the request.
- * - **statusText** – `{string}` – HTTP status text of the response.
- *
- * A response status code between 200 and 299 is considered a success status and will result in
- * the success callback being called. Any response status code outside of that range is
- * considered an error status and will result in the error callback being called.
- * Also, status codes less than -1 are normalized to zero. -1 usually means the request was
- * aborted, e.g. using a `config.timeout`.
- * Note that if the response is a redirect, XMLHttpRequest will transparently follow it, meaning
- * that the outcome (success or error) will be determined by the final response status code.
- *
- *
- * ## Shortcut methods
- *
- * Shortcut methods are also available. All shortcut methods require passing in the URL, and
- * request data must be passed in for POST/PUT requests. An optional config can be passed as the
- * last argument.
- *
- * ```js
- * $http.get('/someUrl', config).then(successCallback, errorCallback);
- * $http.post('/someUrl', data, config).then(successCallback, errorCallback);
- * ```
- *
- * Complete list of shortcut methods:
- *
- * - {@link ng.$http#get $http.get}
- * - {@link ng.$http#head $http.head}
- * - {@link ng.$http#post $http.post}
- * - {@link ng.$http#put $http.put}
- * - {@link ng.$http#delete $http.delete}
- * - {@link ng.$http#jsonp $http.jsonp}
- * - {@link ng.$http#patch $http.patch}
- *
- *
- * ## Writing Unit Tests that use $http
- * When unit testing (using {@link ngMock ngMock}), it is necessary to call
- * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending
- * request using trained responses.
- *
- * ```
- * $httpBackend.expectGET(...);
- * $http.get(...);
- * $httpBackend.flush();
- * ```
- *
- * ## Deprecation Notice
- * <div class="alert alert-danger">
- * The `$http` legacy promise methods `success` and `error` have been deprecated and will be
- * removed in v1.6.0.
- * Use the standard `then` method instead.
- * If {@link $httpProvider#useLegacyPromiseExtensions `$httpProvider.useLegacyPromiseExtensions`} is set to
- * `false` then these methods will throw {@link $http:legacy `$http/legacy`} error.
- * </div>
- *
- * ## Setting HTTP Headers
- *
- * The $http service will automatically add certain HTTP headers to all requests. These defaults
- * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration
- * object, which currently contains this default configuration:
- *
- * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):
- * - <code>Accept: application/json, text/plain, \*&#65279;/&#65279;\*</code>
- * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)
- * - `Content-Type: application/json`
- * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)
- * - `Content-Type: application/json`
- *
- * To add or overwrite these defaults, simply add or remove a property from these configuration
- * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object
- * with the lowercased HTTP method name as the key, e.g.
- * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`.
- *
- * The defaults can also be set at runtime via the `$http.defaults` object in the same
- * fashion. For example:
- *
- * ```
- * module.run(function($http) {
- * $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w';
- * });
- * ```
- *
- * In addition, you can supply a `headers` property in the config object passed when
- * calling `$http(config)`, which overrides the defaults without changing them globally.
- *
- * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,
- * Use the `headers` property, setting the desired header to `undefined`. For example:
- *
- * ```js
- * var req = {
- * method: 'POST',
- * url: 'http://example.com',
- * headers: {
- * 'Content-Type': undefined
- * },
- * data: { test: 'test' }
- * }
- *
- * $http(req).then(function(){...}, function(){...});
- * ```
- *
- * ## Transforming Requests and Responses
- *
- * Both requests and responses can be transformed using transformation functions: `transformRequest`
- * and `transformResponse`. These properties can be a single function that returns
- * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,
- * which allows you to `push` or `unshift` a new transformation function into the transformation chain.
- *
- * <div class="alert alert-warning">
- * **Note:** Angular does not make a copy of the `data` parameter before it is passed into the `transformRequest` pipeline.
- * That means changes to the properties of `data` are not local to the transform function (since Javascript passes objects by reference).
- * For example, when calling `$http.get(url, $scope.myObject)`, modifications to the object's properties in a transformRequest
- * function will be reflected on the scope and in any templates where the object is data-bound.
- * To prevent this, transform functions should have no side-effects.
- * If you need to modify properties, it is recommended to make a copy of the data, or create new object to return.
- * </div>
- *
- * ### Default Transformations
- *
- * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and
- * `defaults.transformResponse` properties. If a request does not provide its own transformations
- * then these will be applied.
- *
- * You can augment or replace the default transformations by modifying these properties by adding to or
- * replacing the array.
- *
- * Angular provides the following default transformations:
- *
- * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`):
- *
- * - If the `data` property of the request configuration object contains an object, serialize it
- * into JSON format.
- *
- * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`):
- *
- * - If XSRF prefix is detected, strip it (see Security Considerations section below).
- * - If JSON response is detected, deserialize it using a JSON parser.
- *
- *
- * ### Overriding the Default Transformations Per Request
- *
- * If you wish to override the request/response transformations only for a single request then provide
- * `transformRequest` and/or `transformResponse` properties on the configuration object passed
- * into `$http`.
- *
- * Note that if you provide these properties on the config object the default transformations will be
- * overwritten. If you wish to augment the default transformations then you must include them in your
- * local transformation array.
- *
- * The following code demonstrates adding a new response transformation to be run after the default response
- * transformations have been run.
- *
- * ```js
- * function appendTransform(defaults, transform) {
- *
- * // We can't guarantee that the default transformation is an array
- * defaults = angular.isArray(defaults) ? defaults : [defaults];
- *
- * // Append the new transformation to the defaults
- * return defaults.concat(transform);
- * }
- *
- * $http({
- * url: '...',
- * method: 'GET',
- * transformResponse: appendTransform($http.defaults.transformResponse, function(value) {
- * return doTransform(value);
- * })
- * });
- * ```
- *
- *
- * ## Caching
- *
- * {@link ng.$http `$http`} responses are not cached by default. To enable caching, you must
- * set the config.cache value or the default cache value to TRUE or to a cache object (created
- * with {@link ng.$cacheFactory `$cacheFactory`}). If defined, the value of config.cache takes
- * precedence over the default cache value.
- *
- * In order to:
- * * cache all responses - set the default cache value to TRUE or to a cache object
- * * cache a specific response - set config.cache value to TRUE or to a cache object
- *
- * If caching is enabled, but neither the default cache nor config.cache are set to a cache object,
- * then the default `$cacheFactory("$http")` object is used.
- *
- * The default cache value can be set by updating the
- * {@link ng.$http#defaults `$http.defaults.cache`} property or the
- * {@link $httpProvider#defaults `$httpProvider.defaults.cache`} property.
- *
- * When caching is enabled, {@link ng.$http `$http`} stores the response from the server using
- * the relevant cache object. The next time the same request is made, the response is returned
- * from the cache without sending a request to the server.
- *
- * Take note that:
- *
- * * Only GET and JSONP requests are cached.
- * * The cache key is the request URL including search parameters; headers are not considered.
- * * Cached responses are returned asynchronously, in the same way as responses from the server.
- * * If multiple identical requests are made using the same cache, which is not yet populated,
- * one request will be made to the server and remaining requests will return the same response.
- * * A cache-control header on the response does not affect if or how responses are cached.
- *
- *
- * ## Interceptors
- *
- * Before you start creating interceptors, be sure to understand the
- * {@link ng.$q $q and deferred/promise APIs}.
- *
- * For purposes of global error handling, authentication, or any kind of synchronous or
- * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be
- * able to intercept requests before they are handed to the server and
- * responses before they are handed over to the application code that
- * initiated these requests. The interceptors leverage the {@link ng.$q
- * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.
- *
- * The interceptors are service factories that are registered with the `$httpProvider` by
- * adding them to the `$httpProvider.interceptors` array. The factory is called and
- * injected with dependencies (if specified) and returns the interceptor.
- *
- * There are two kinds of interceptors (and two kinds of rejection interceptors):
- *
- * * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to
- * modify the `config` object or create a new one. The function needs to return the `config`
- * object directly, or a promise containing the `config` or a new `config` object.
- * * `requestError`: interceptor gets called when a previous interceptor threw an error or
- * resolved with a rejection.
- * * `response`: interceptors get called with http `response` object. The function is free to
- * modify the `response` object or create a new one. The function needs to return the `response`
- * object directly, or as a promise containing the `response` or a new `response` object.
- * * `responseError`: interceptor gets called when a previous interceptor threw an error or
- * resolved with a rejection.
- *
- *
- * ```js
- * // register the interceptor as a service
- * $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {
- * return {
- * // optional method
- * 'request': function(config) {
- * // do something on success
- * return config;
- * },
- *
- * // optional method
- * 'requestError': function(rejection) {
- * // do something on error
- * if (canRecover(rejection)) {
- * return responseOrNewPromise
- * }
- * return $q.reject(rejection);
- * },
- *
- *
- *
- * // optional method
- * 'response': function(response) {
- * // do something on success
- * return response;
- * },
- *
- * // optional method
- * 'responseError': function(rejection) {
- * // do something on error
- * if (canRecover(rejection)) {
- * return responseOrNewPromise
- * }
- * return $q.reject(rejection);
- * }
- * };
- * });
- *
- * $httpProvider.interceptors.push('myHttpInterceptor');
- *
- *
- * // alternatively, register the interceptor via an anonymous factory
- * $httpProvider.interceptors.push(function($q, dependency1, dependency2) {
- * return {
- * 'request': function(config) {
- * // same as above
- * },
- *
- * 'response': function(response) {
- * // same as above
- * }
- * };
- * });
- * ```
- *
- * ## Security Considerations
- *
- * When designing web applications, consider security threats from:
- *
- * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)
- * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)
- *
- * Both server and the client must cooperate in order to eliminate these threats. Angular comes
- * pre-configured with strategies that address these issues, but for this to work backend server
- * cooperation is required.
- *
- * ### JSON Vulnerability Protection
- *
- * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)
- * allows third party website to turn your JSON resource URL into
- * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To
- * counter this your server can prefix all JSON requests with following string `")]}',\n"`.
- * Angular will automatically strip the prefix before processing it as JSON.
- *
- * For example if your server needs to return:
- * ```js
- * ['one','two']
- * ```
- *
- * which is vulnerable to attack, your server can return:
- * ```js
- * )]}',
- * ['one','two']
- * ```
- *
- * Angular will strip the prefix, before processing the JSON.
- *
- *
- * ### Cross Site Request Forgery (XSRF) Protection
- *
- * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is an attack technique by
- * which the attacker can trick an authenticated user into unknowingly executing actions on your
- * website. Angular provides a mechanism to counter XSRF. When performing XHR requests, the
- * $http service reads a token from a cookie (by default, `XSRF-TOKEN`) and sets it as an HTTP
- * header (`X-XSRF-TOKEN`). Since only JavaScript that runs on your domain could read the
- * cookie, your server can be assured that the XHR came from JavaScript running on your domain.
- * The header will not be set for cross-domain requests.
- *
- * To take advantage of this, your server needs to set a token in a JavaScript readable session
- * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the
- * server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure
- * that only JavaScript running on your domain could have sent the request. The token must be
- * unique for each user and must be verifiable by the server (to prevent the JavaScript from
- * making up its own tokens). We recommend that the token is a digest of your site's
- * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography&#41;)
- * for added security.
- *
- * The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName
- * properties of either $httpProvider.defaults at config-time, $http.defaults at run-time,
- * or the per-request config object.
- *
- * In order to prevent collisions in environments where multiple Angular apps share the
- * same domain or subdomain, we recommend that each application uses unique cookie name.
- *
- * @param {object} config Object describing the request to be made and how it should be
- * processed. The object has following properties:
- *
- * - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)
- * - **url** – `{string}` – Absolute or relative URL of the resource that is being requested.
- * - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be serialized
- * with the `paramSerializer` and appended as GET parameters.
- * - **data** – `{string|Object}` – Data to be sent as the request message data.
- * - **headers** – `{Object}` – Map of strings or functions which return strings representing
- * HTTP headers to send to the server. If the return value of a function is null, the
- * header will not be sent. Functions accept a config object as an argument.
- * - **eventHandlers** - `{Object}` - Event listeners to be bound to the XMLHttpRequest object.
- * To bind events to the XMLHttpRequest upload object, use `uploadEventHandlers`.
- * The handler will be called in the context of a `$apply` block.
- * - **uploadEventHandlers** - `{Object}` - Event listeners to be bound to the XMLHttpRequest upload
- * object. To bind events to the XMLHttpRequest object, use `eventHandlers`.
- * The handler will be called in the context of a `$apply` block.
- * - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.
- * - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.
- * - **transformRequest** –
- * `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
- * transform function or an array of such functions. The transform function takes the http
- * request body and headers and returns its transformed (typically serialized) version.
- * See {@link ng.$http#overriding-the-default-transformations-per-request
- * Overriding the Default Transformations}
- * - **transformResponse** –
- * `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}` –
- * transform function or an array of such functions. The transform function takes the http
- * response body, headers and status and returns its transformed (typically deserialized) version.
- * See {@link ng.$http#overriding-the-default-transformations-per-request
- * Overriding the Default Transformations}
- * - **paramSerializer** - `{string|function(Object<string,string>):string}` - A function used to
- * prepare the string representation of request parameters (specified as an object).
- * If specified as string, it is interpreted as function registered with the
- * {@link $injector $injector}, which means you can create your own serializer
- * by registering it as a {@link auto.$provide#service service}.
- * The default serializer is the {@link $httpParamSerializer $httpParamSerializer};
- * alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike}
- * - **cache** – `{boolean|Object}` – A boolean value or object created with
- * {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of the HTTP response.
- * See {@link $http#caching $http Caching} for more information.
- * - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}
- * that should abort the request when resolved.
- * - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the
- * XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)
- * for more information.
- * - **responseType** - `{string}` - see
- * [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype).
- *
- * @returns {HttpPromise} Returns a {@link ng.$q `Promise}` that will be resolved to a response object
- * when the request succeeds or fails.
- *
- *
- * @property {Array.<Object>} pendingRequests Array of config objects for currently pending
- * requests. This is primarily meant to be used for debugging purposes.
- *
- *
- * @example
-<example module="httpExample" name="http-service">
-<file name="index.html">
- <div ng-controller="FetchController">
- <select ng-model="method" aria-label="Request method">
- <option>GET</option>
- <option>JSONP</option>
- </select>
- <input type="text" ng-model="url" size="80" aria-label="URL" />
- <button id="fetchbtn" ng-click="fetch()">fetch</button><br>
- <button id="samplegetbtn" ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
- <button id="samplejsonpbtn"
- ng-click="updateModel('JSONP',
- 'https://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')">
- Sample JSONP
- </button>
- <button id="invalidjsonpbtn"
- ng-click="updateModel('JSONP', 'https://angularjs.org/doesntexist&callback=JSON_CALLBACK')">
- Invalid JSONP
- </button>
- <pre>http status code: {{status}}</pre>
- <pre>http response data: {{data}}</pre>
- </div>
-</file>
-<file name="script.js">
- angular.module('httpExample', [])
- .controller('FetchController', ['$scope', '$http', '$templateCache',
- function($scope, $http, $templateCache) {
- $scope.method = 'GET';
- $scope.url = 'http-hello.html';
-
- $scope.fetch = function() {
- $scope.code = null;
- $scope.response = null;
-
- $http({method: $scope.method, url: $scope.url, cache: $templateCache}).
- then(function(response) {
- $scope.status = response.status;
- $scope.data = response.data;
- }, function(response) {
- $scope.data = response.data || 'Request failed';
- $scope.status = response.status;
- });
- };
-
- $scope.updateModel = function(method, url) {
- $scope.method = method;
- $scope.url = url;
- };
- }]);
-</file>
-<file name="http-hello.html">
- Hello, $http!
-</file>
-<file name="protractor.js" type="protractor">
- var status = element(by.binding('status'));
- var data = element(by.binding('data'));
- var fetchBtn = element(by.id('fetchbtn'));
- var sampleGetBtn = element(by.id('samplegetbtn'));
- var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));
-
- it('should make an xhr GET request', function() {
- sampleGetBtn.click();
- fetchBtn.click();
- expect(status.getText()).toMatch('200');
- expect(data.getText()).toMatch(/Hello, \$http!/);
- });
-
-// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185
-// it('should make a JSONP request to angularjs.org', function() {
-// var sampleJsonpBtn = element(by.id('samplejsonpbtn'));
-// sampleJsonpBtn.click();
-// fetchBtn.click();
-// expect(status.getText()).toMatch('200');
-// expect(data.getText()).toMatch(/Super Hero!/);
-// });
-
- it('should make JSONP request to invalid URL and invoke the error handler',
- function() {
- invalidJsonpBtn.click();
- fetchBtn.click();
- expect(status.getText()).toMatch('0');
- expect(data.getText()).toMatch('Request failed');
- });
-</file>
-</example>
- */
- function $http(requestConfig) {
-
- if (!isObject(requestConfig)) {
- throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig);
- }
-
- if (!isString(requestConfig.url)) {
- throw minErr('$http')('badreq', 'Http request configuration url must be a string. Received: {0}', requestConfig.url);
- }
-
- var config = extend({
- method: 'get',
- transformRequest: defaults.transformRequest,
- transformResponse: defaults.transformResponse,
- paramSerializer: defaults.paramSerializer
- }, requestConfig);
-
- config.headers = mergeHeaders(requestConfig);
- config.method = uppercase(config.method);
- config.paramSerializer = isString(config.paramSerializer) ?
- $injector.get(config.paramSerializer) : config.paramSerializer;
-
- var requestInterceptors = [];
- var responseInterceptors = [];
- var promise = $q.when(config);
-
- // apply interceptors
- forEach(reversedInterceptors, function(interceptor) {
- if (interceptor.request || interceptor.requestError) {
- requestInterceptors.unshift(interceptor.request, interceptor.requestError);
- }
- if (interceptor.response || interceptor.responseError) {
- responseInterceptors.push(interceptor.response, interceptor.responseError);
- }
- });
-
- promise = chainInterceptors(promise, requestInterceptors);
- promise = promise.then(serverRequest);
- promise = chainInterceptors(promise, responseInterceptors);
-
- if (useLegacyPromise) {
- promise.success = function(fn) {
- assertArgFn(fn, 'fn');
-
- promise.then(function(response) {
- fn(response.data, response.status, response.headers, config);
- });
- return promise;
- };
-
- promise.error = function(fn) {
- assertArgFn(fn, 'fn');
-
- promise.then(null, function(response) {
- fn(response.data, response.status, response.headers, config);
- });
- return promise;
- };
- } else {
- promise.success = $httpMinErrLegacyFn('success');
- promise.error = $httpMinErrLegacyFn('error');
- }
-
- return promise;
-
-
- function chainInterceptors(promise, interceptors) {
- for (var i = 0, ii = interceptors.length; i < ii;) {
- var thenFn = interceptors[i++];
- var rejectFn = interceptors[i++];
-
- promise = promise.then(thenFn, rejectFn);
- }
-
- interceptors.length = 0;
-
- return promise;
- }
-
- function executeHeaderFns(headers, config) {
- var headerContent, processedHeaders = {};
-
- forEach(headers, function(headerFn, header) {
- if (isFunction(headerFn)) {
- headerContent = headerFn(config);
- if (headerContent != null) {
- processedHeaders[header] = headerContent;
- }
- } else {
- processedHeaders[header] = headerFn;
- }
- });
-
- return processedHeaders;
- }
-
- function mergeHeaders(config) {
- var defHeaders = defaults.headers,
- reqHeaders = extend({}, config.headers),
- defHeaderName, lowercaseDefHeaderName, reqHeaderName;
-
- defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);
-
- // using for-in instead of forEach to avoid unnecessary iteration after header has been found
- defaultHeadersIteration:
- for (defHeaderName in defHeaders) {
- lowercaseDefHeaderName = lowercase(defHeaderName);
-
- for (reqHeaderName in reqHeaders) {
- if (lowercase(reqHeaderName) === lowercaseDefHeaderName) {
- continue defaultHeadersIteration;
- }
- }
-
- reqHeaders[defHeaderName] = defHeaders[defHeaderName];
- }
-
- // execute if header value is a function for merged headers
- return executeHeaderFns(reqHeaders, shallowCopy(config));
- }
-
- function serverRequest(config) {
- var headers = config.headers;
- var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest);
-
- // strip content-type if data is undefined
- if (isUndefined(reqData)) {
- forEach(headers, function(value, header) {
- if (lowercase(header) === 'content-type') {
- delete headers[header];
- }
- });
- }
-
- if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {
- config.withCredentials = defaults.withCredentials;
- }
-
- // send request
- return sendReq(config, reqData).then(transformResponse, transformResponse);
- }
-
- function transformResponse(response) {
- // make a copy since the response must be cacheable
- var resp = extend({}, response);
- resp.data = transformData(response.data, response.headers, response.status,
- config.transformResponse);
- return (isSuccess(response.status))
- ? resp
- : $q.reject(resp);
- }
- }
-
- $http.pendingRequests = [];
-
- /**
- * @ngdoc method
- * @name $http#get
- *
- * @description
- * Shortcut method to perform `GET` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#delete
- *
- * @description
- * Shortcut method to perform `DELETE` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#head
- *
- * @description
- * Shortcut method to perform `HEAD` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#jsonp
- *
- * @description
- * Shortcut method to perform `JSONP` request.
- * If you would like to customize where and how the callbacks are stored then try overriding
- * or decorating the {@link $jsonpCallbacks} service.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request.
- * The name of the callback should be the string `JSON_CALLBACK`.
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
- createShortMethods('get', 'delete', 'head', 'jsonp');
-
- /**
- * @ngdoc method
- * @name $http#post
- *
- * @description
- * Shortcut method to perform `POST` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {*} data Request content
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#put
- *
- * @description
- * Shortcut method to perform `PUT` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {*} data Request content
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#patch
- *
- * @description
- * Shortcut method to perform `PATCH` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {*} data Request content
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
- createShortMethodsWithData('post', 'put', 'patch');
-
- /**
- * @ngdoc property
- * @name $http#defaults
- *
- * @description
- * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of
- * default headers, withCredentials as well as request and response transformations.
- *
- * See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.
- */
- $http.defaults = defaults;
-
-
- return $http;
-
-
- function createShortMethods(names) {
- forEach(arguments, function(name) {
- $http[name] = function(url, config) {
- return $http(extend({}, config || {}, {
- method: name,
- url: url
- }));
- };
- });
- }
-
-
- function createShortMethodsWithData(name) {
- forEach(arguments, function(name) {
- $http[name] = function(url, data, config) {
- return $http(extend({}, config || {}, {
- method: name,
- url: url,
- data: data
- }));
- };
- });
- }
-
-
- /**
- * Makes the request.
- *
- * !!! ACCESSES CLOSURE VARS:
- * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests
- */
- function sendReq(config, reqData) {
- var deferred = $q.defer(),
- promise = deferred.promise,
- cache,
- cachedResp,
- reqHeaders = config.headers,
- url = buildUrl(config.url, config.paramSerializer(config.params));
-
- $http.pendingRequests.push(config);
- promise.then(removePendingReq, removePendingReq);
-
-
- if ((config.cache || defaults.cache) && config.cache !== false &&
- (config.method === 'GET' || config.method === 'JSONP')) {
- cache = isObject(config.cache) ? config.cache
- : isObject(defaults.cache) ? defaults.cache
- : defaultCache;
- }
-
- if (cache) {
- cachedResp = cache.get(url);
- if (isDefined(cachedResp)) {
- if (isPromiseLike(cachedResp)) {
- // cached request has already been sent, but there is no response yet
- cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult);
- } else {
- // serving from cache
- if (isArray(cachedResp)) {
- resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3]);
- } else {
- resolvePromise(cachedResp, 200, {}, 'OK');
- }
- }
- } else {
- // put the promise for the non-transformed response into cache as a placeholder
- cache.put(url, promise);
- }
- }
-
-
- // if we won't have the response in cache, set the xsrf headers and
- // send the request to the backend
- if (isUndefined(cachedResp)) {
- var xsrfValue = urlIsSameOrigin(config.url)
- ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName]
- : undefined;
- if (xsrfValue) {
- reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue;
- }
-
- $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,
- config.withCredentials, config.responseType,
- createApplyHandlers(config.eventHandlers),
- createApplyHandlers(config.uploadEventHandlers));
- }
-
- return promise;
-
- function createApplyHandlers(eventHandlers) {
- if (eventHandlers) {
- var applyHandlers = {};
- forEach(eventHandlers, function(eventHandler, key) {
- applyHandlers[key] = function(event) {
- if (useApplyAsync) {
- $rootScope.$applyAsync(callEventHandler);
- } else if ($rootScope.$$phase) {
- callEventHandler();
- } else {
- $rootScope.$apply(callEventHandler);
- }
-
- function callEventHandler() {
- eventHandler(event);
- }
- };
- });
- return applyHandlers;
- }
- }
-
-
- /**
- * Callback registered to $httpBackend():
- * - caches the response if desired
- * - resolves the raw $http promise
- * - calls $apply
- */
- function done(status, response, headersString, statusText) {
- if (cache) {
- if (isSuccess(status)) {
- cache.put(url, [status, response, parseHeaders(headersString), statusText]);
- } else {
- // remove promise from the cache
- cache.remove(url);
- }
- }
-
- function resolveHttpPromise() {
- resolvePromise(response, status, headersString, statusText);
- }
-
- if (useApplyAsync) {
- $rootScope.$applyAsync(resolveHttpPromise);
- } else {
- resolveHttpPromise();
- if (!$rootScope.$$phase) $rootScope.$apply();
- }
- }
-
-
- /**
- * Resolves the raw $http promise.
- */
- function resolvePromise(response, status, headers, statusText) {
- //status: HTTP response status code, 0, -1 (aborted by timeout / promise)
- status = status >= -1 ? status : 0;
-
- (isSuccess(status) ? deferred.resolve : deferred.reject)({
- data: response,
- status: status,
- headers: headersGetter(headers),
- config: config,
- statusText: statusText
- });
- }
-
- function resolvePromiseWithResult(result) {
- resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText);
- }
-
- function removePendingReq() {
- var idx = $http.pendingRequests.indexOf(config);
- if (idx !== -1) $http.pendingRequests.splice(idx, 1);
- }
- }
-
-
- function buildUrl(url, serializedParams) {
- if (serializedParams.length > 0) {
- url += ((url.indexOf('?') === -1) ? '?' : '&') + serializedParams;
- }
- return url;
- }
- }];
-}
-
-/**
- * @ngdoc service
- * @name $xhrFactory
- * @this
- *
- * @description
- * Factory function used to create XMLHttpRequest objects.
- *
- * Replace or decorate this service to create your own custom XMLHttpRequest objects.
- *
- * ```
- * angular.module('myApp', [])
- * .factory('$xhrFactory', function() {
- * return function createXhr(method, url) {
- * return new window.XMLHttpRequest({mozSystem: true});
- * };
- * });
- * ```
- *
- * @param {string} method HTTP method of the request (GET, POST, PUT, ..)
- * @param {string} url URL of the request.
- */
-function $xhrFactoryProvider() {
- this.$get = function() {
- return function createXhr() {
- return new window.XMLHttpRequest();
- };
- };
-}
-
-/**
- * @ngdoc service
- * @name $httpBackend
- * @requires $jsonpCallbacks
- * @requires $document
- * @requires $xhrFactory
- * @this
- *
- * @description
- * HTTP backend used by the {@link ng.$http service} that delegates to
- * XMLHttpRequest object or JSONP and deals with browser incompatibilities.
- *
- * You should never need to use this service directly, instead use the higher-level abstractions:
- * {@link ng.$http $http} or {@link ngResource.$resource $resource}.
- *
- * During testing this implementation is swapped with {@link ngMock.$httpBackend mock
- * $httpBackend} which can be trained with responses.
- */
-function $HttpBackendProvider() {
- this.$get = ['$browser', '$jsonpCallbacks', '$document', '$xhrFactory', function($browser, $jsonpCallbacks, $document, $xhrFactory) {
- return createHttpBackend($browser, $xhrFactory, $browser.defer, $jsonpCallbacks, $document[0]);
- }];
-}
-
-function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
- // TODO(vojta): fix the signature
- return function(method, url, post, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers) {
- $browser.$$incOutstandingRequestCount();
- url = url || $browser.url();
-
- if (lowercase(method) === 'jsonp') {
- var callbackPath = callbacks.createCallback(url);
- var jsonpDone = jsonpReq(url, callbackPath, function(status, text) {
- // jsonpReq only ever sets status to 200 (OK), 404 (ERROR) or -1 (WAITING)
- var response = (status === 200) && callbacks.getResponse(callbackPath);
- completeRequest(callback, status, response, '', text);
- callbacks.removeCallback(callbackPath);
- });
- } else {
-
- var xhr = createXhr(method, url);
-
- xhr.open(method, url, true);
- forEach(headers, function(value, key) {
- if (isDefined(value)) {
- xhr.setRequestHeader(key, value);
- }
- });
-
- xhr.onload = function requestLoaded() {
- var statusText = xhr.statusText || '';
-
- // responseText is the old-school way of retrieving response (supported by IE9)
- // response/responseType properties were introduced in XHR Level2 spec (supported by IE10)
- var response = ('response' in xhr) ? xhr.response : xhr.responseText;
-
- // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)
- var status = xhr.status === 1223 ? 204 : xhr.status;
-
- // fix status code when it is 0 (0 status is undocumented).
- // Occurs when accessing file resources or on Android 4.1 stock browser
- // while retrieving files from application cache.
- if (status === 0) {
- status = response ? 200 : urlResolve(url).protocol === 'file' ? 404 : 0;
- }
-
- completeRequest(callback,
- status,
- response,
- xhr.getAllResponseHeaders(),
- statusText);
- };
-
- var requestError = function() {
- // The response is always empty
- // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error
- completeRequest(callback, -1, null, null, '');
- };
-
- xhr.onerror = requestError;
- xhr.onabort = requestError;
- xhr.ontimeout = requestError;
-
- forEach(eventHandlers, function(value, key) {
- xhr.addEventListener(key, value);
- });
-
- forEach(uploadEventHandlers, function(value, key) {
- xhr.upload.addEventListener(key, value);
- });
-
- if (withCredentials) {
- xhr.withCredentials = true;
- }
-
- if (responseType) {
- try {
- xhr.responseType = responseType;
- } catch (e) {
- // WebKit added support for the json responseType value on 09/03/2013
- // https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are
- // known to throw when setting the value "json" as the response type. Other older
- // browsers implementing the responseType
- //
- // The json response type can be ignored if not supported, because JSON payloads are
- // parsed on the client-side regardless.
- if (responseType !== 'json') {
- throw e;
- }
- }
- }
-
- xhr.send(isUndefined(post) ? null : post);
- }
-
- if (timeout > 0) {
- var timeoutId = $browserDefer(timeoutRequest, timeout);
- } else if (isPromiseLike(timeout)) {
- timeout.then(timeoutRequest);
- }
-
-
- function timeoutRequest() {
- if (jsonpDone) {
- jsonpDone();
- }
- if (xhr) {
- xhr.abort();
- }
- }
-
- function completeRequest(callback, status, response, headersString, statusText) {
- // cancel timeout and subsequent timeout promise resolution
- if (isDefined(timeoutId)) {
- $browserDefer.cancel(timeoutId);
- }
- jsonpDone = xhr = null;
-
- callback(status, response, headersString, statusText);
- $browser.$$completeOutstandingRequest(noop);
- }
- };
-
- function jsonpReq(url, callbackPath, done) {
- url = url.replace('JSON_CALLBACK', callbackPath);
- // we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:
- // - fetches local scripts via XHR and evals them
- // - adds and immediately removes script elements from the document
- var script = rawDocument.createElement('script'), callback = null;
- script.type = 'text/javascript';
- script.src = url;
- script.async = true;
-
- callback = function(event) {
- removeEventListenerFn(script, 'load', callback);
- removeEventListenerFn(script, 'error', callback);
- rawDocument.body.removeChild(script);
- script = null;
- var status = -1;
- var text = 'unknown';
-
- if (event) {
- if (event.type === 'load' && !callbacks.wasCalled(callbackPath)) {
- event = { type: 'error' };
- }
- text = event.type;
- status = event.type === 'error' ? 404 : 200;
- }
-
- if (done) {
- done(status, text);
- }
- };
-
- addEventListenerFn(script, 'load', callback);
- addEventListenerFn(script, 'error', callback);
- rawDocument.body.appendChild(script);
- return callback;
- }
-}
-
-var $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate');
-$interpolateMinErr.throwNoconcat = function(text) {
- throw $interpolateMinErr('noconcat',
- 'Error while interpolating: {0}\nStrict Contextual Escaping disallows ' +
- 'interpolations that concatenate multiple expressions when a trusted value is ' +
- 'required. See http://docs.angularjs.org/api/ng.$sce', text);
-};
-
-$interpolateMinErr.interr = function(text, err) {
- return $interpolateMinErr('interr', 'Can\'t interpolate: {0}\n{1}', text, err.toString());
-};
-
-/**
- * @ngdoc provider
- * @name $interpolateProvider
- * @this
- *
- * @description
- *
- * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
- *
- * <div class="alert alert-danger">
- * This feature is sometimes used to mix different markup languages, e.g. to wrap an Angular
- * template within a Python Jinja template (or any other template language). Mixing templating
- * languages is **very dangerous**. The embedding template language will not safely escape Angular
- * expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS)
- * security bugs!
- * </div>
- *
- * @example
-<example name="custom-interpolation-markup" module="customInterpolationApp">
-<file name="index.html">
-<script>
- var customInterpolationApp = angular.module('customInterpolationApp', []);
-
- customInterpolationApp.config(function($interpolateProvider) {
- $interpolateProvider.startSymbol('//');
- $interpolateProvider.endSymbol('//');
- });
-
-
- customInterpolationApp.controller('DemoController', function() {
- this.label = "This binding is brought you by // interpolation symbols.";
- });
-</script>
-<div ng-controller="DemoController as demo">
- //demo.label//
-</div>
-</file>
-<file name="protractor.js" type="protractor">
- it('should interpolate binding with custom symbols', function() {
- expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');
- });
-</file>
-</example>
- */
-function $InterpolateProvider() {
- var startSymbol = '{{';
- var endSymbol = '}}';
-
- /**
- * @ngdoc method
- * @name $interpolateProvider#startSymbol
- * @description
- * Symbol to denote start of expression in the interpolated string. Defaults to `{{`.
- *
- * @param {string=} value new value to set the starting symbol to.
- * @returns {string|self} Returns the symbol when used as getter and self if used as setter.
- */
- this.startSymbol = function(value) {
- if (value) {
- startSymbol = value;
- return this;
- } else {
- return startSymbol;
- }
- };
-
- /**
- * @ngdoc method
- * @name $interpolateProvider#endSymbol
- * @description
- * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
- *
- * @param {string=} value new value to set the ending symbol to.
- * @returns {string|self} Returns the symbol when used as getter and self if used as setter.
- */
- this.endSymbol = function(value) {
- if (value) {
- endSymbol = value;
- return this;
- } else {
- return endSymbol;
- }
- };
-
-
- this.$get = ['$parse', '$exceptionHandler', '$sce', function($parse, $exceptionHandler, $sce) {
- var startSymbolLength = startSymbol.length,
- endSymbolLength = endSymbol.length,
- escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'),
- escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');
-
- function escape(ch) {
- return '\\\\\\' + ch;
- }
-
- function unescapeText(text) {
- return text.replace(escapedStartRegexp, startSymbol).
- replace(escapedEndRegexp, endSymbol);
- }
-
- function stringify(value) {
- if (value == null) { // null || undefined
- return '';
- }
- switch (typeof value) {
- case 'string':
- break;
- case 'number':
- value = '' + value;
- break;
- default:
- value = toJson(value);
- }
-
- return value;
- }
-
- // TODO: this is the same as the constantWatchDelegate in parse.js
- function constantWatchDelegate(scope, listener, objectEquality, constantInterp) {
- var unwatch = scope.$watch(function constantInterpolateWatch(scope) {
- unwatch();
- return constantInterp(scope);
- }, listener, objectEquality);
- return unwatch;
- }
-
- /**
- * @ngdoc service
- * @name $interpolate
- * @kind function
- *
- * @requires $parse
- * @requires $sce
- *
- * @description
- *
- * Compiles a string with markup into an interpolation function. This service is used by the
- * HTML {@link ng.$compile $compile} service for data binding. See
- * {@link ng.$interpolateProvider $interpolateProvider} for configuring the
- * interpolation markup.
- *
- *
- * ```js
- * var $interpolate = ...; // injected
- * var exp = $interpolate('Hello {{name | uppercase}}!');
- * expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!');
- * ```
- *
- * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is
- * `true`, the interpolation function will return `undefined` unless all embedded expressions
- * evaluate to a value other than `undefined`.
- *
- * ```js
- * var $interpolate = ...; // injected
- * var context = {greeting: 'Hello', name: undefined };
- *
- * // default "forgiving" mode
- * var exp = $interpolate('{{greeting}} {{name}}!');
- * expect(exp(context)).toEqual('Hello !');
- *
- * // "allOrNothing" mode
- * exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
- * expect(exp(context)).toBeUndefined();
- * context.name = 'Angular';
- * expect(exp(context)).toEqual('Hello Angular!');
- * ```
- *
- * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.
- *
- * #### Escaped Interpolation
- * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers
- * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).
- * It will be rendered as a regular start/end marker, and will not be interpreted as an expression
- * or binding.
- *
- * This enables web-servers to prevent script injection attacks and defacing attacks, to some
- * degree, while also enabling code examples to work without relying on the
- * {@link ng.directive:ngNonBindable ngNonBindable} directive.
- *
- * **For security purposes, it is strongly encouraged that web servers escape user-supplied data,
- * replacing angle brackets (&lt;, &gt;) with &amp;lt; and &amp;gt; respectively, and replacing all
- * interpolation start/end markers with their escaped counterparts.**
- *
- * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered
- * output when the $interpolate service processes the text. So, for HTML elements interpolated
- * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter
- * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,
- * this is typically useful only when user-data is used in rendering a template from the server, or
- * when otherwise untrusted data is used by a directive.
- *
- * <example name="interpolation">
- * <file name="index.html">
- * <div ng-init="username='A user'">
- * <p ng-init="apptitle='Escaping demo'">{{apptitle}}: \{\{ username = "defaced value"; \}\}
- * </p>
- * <p><strong>{{username}}</strong> attempts to inject code which will deface the
- * application, but fails to accomplish their task, because the server has correctly
- * escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)
- * characters.</p>
- * <p>Instead, the result of the attempted script injection is visible, and can be removed
- * from the database by an administrator.</p>
- * </div>
- * </file>
- * </example>
- *
- * @knownIssue
- * It is currently not possible for an interpolated expression to contain the interpolation end
- * symbol. For example, `{{ '}}' }}` will be incorrectly interpreted as `{{ ' }}` + `' }}`, i.e.
- * an interpolated expression consisting of a single-quote (`'`) and the `' }}` string.
- *
- * @knownIssue
- * All directives and components must use the standard `{{` `}}` interpolation symbols
- * in their templates. If you change the application interpolation symbols the {@link $compile}
- * service will attempt to denormalize the standard symbols to the custom symbols.
- * The denormalization process is not clever enough to know not to replace instances of the standard
- * symbols where they would not normally be treated as interpolation symbols. For example in the following
- * code snippet the closing braces of the literal object will get incorrectly denormalized:
- *
- * ```
- * <div data-context='{"context":{"id":3,"type":"page"}}">
- * ```
- *
- * The workaround is to ensure that such instances are separated by whitespace:
- * ```
- * <div data-context='{"context":{"id":3,"type":"page"} }">
- * ```
- *
- * See https://github.com/angular/angular.js/pull/14610#issuecomment-219401099 for more information.
- *
- * @param {string} text The text with markup to interpolate.
- * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have
- * embedded expression in order to return an interpolation function. Strings with no
- * embedded expression will return null for the interpolation function.
- * @param {string=} trustedContext when provided, the returned function passes the interpolated
- * result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,
- * trustedContext)} before returning it. Refer to the {@link ng.$sce $sce} service that
- * provides Strict Contextual Escaping for details.
- * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined
- * unless all embedded expressions evaluate to a value other than `undefined`.
- * @returns {function(context)} an interpolation function which is used to compute the
- * interpolated string. The function has these parameters:
- *
- * - `context`: evaluation context for all expressions embedded in the interpolated text
- */
- function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) {
- // Provide a quick exit and simplified result function for text with no interpolation
- if (!text.length || text.indexOf(startSymbol) === -1) {
- var constantInterp;
- if (!mustHaveExpression) {
- var unescapedText = unescapeText(text);
- constantInterp = valueFn(unescapedText);
- constantInterp.exp = text;
- constantInterp.expressions = [];
- constantInterp.$$watchDelegate = constantWatchDelegate;
- }
- return constantInterp;
- }
-
- allOrNothing = !!allOrNothing;
- var startIndex,
- endIndex,
- index = 0,
- expressions = [],
- parseFns = [],
- textLength = text.length,
- exp,
- concat = [],
- expressionPositions = [];
-
- while (index < textLength) {
- if (((startIndex = text.indexOf(startSymbol, index)) !== -1) &&
- ((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) !== -1)) {
- if (index !== startIndex) {
- concat.push(unescapeText(text.substring(index, startIndex)));
- }
- exp = text.substring(startIndex + startSymbolLength, endIndex);
- expressions.push(exp);
- parseFns.push($parse(exp, parseStringifyInterceptor));
- index = endIndex + endSymbolLength;
- expressionPositions.push(concat.length);
- concat.push('');
- } else {
- // we did not find an interpolation, so we have to add the remainder to the separators array
- if (index !== textLength) {
- concat.push(unescapeText(text.substring(index)));
- }
- break;
- }
- }
-
- // Concatenating expressions makes it hard to reason about whether some combination of
- // concatenated values are unsafe to use and could easily lead to XSS. By requiring that a
- // single expression be used for iframe[src], object[src], etc., we ensure that the value
- // that's used is assigned or constructed by some JS code somewhere that is more testable or
- // make it obvious that you bound the value to some user controlled value. This helps reduce
- // the load when auditing for XSS issues.
- if (trustedContext && concat.length > 1) {
- $interpolateMinErr.throwNoconcat(text);
- }
-
- if (!mustHaveExpression || expressions.length) {
- var compute = function(values) {
- for (var i = 0, ii = expressions.length; i < ii; i++) {
- if (allOrNothing && isUndefined(values[i])) return;
- concat[expressionPositions[i]] = values[i];
- }
- return concat.join('');
- };
-
- var getValue = function(value) {
- return trustedContext ?
- $sce.getTrusted(trustedContext, value) :
- $sce.valueOf(value);
- };
-
- return extend(function interpolationFn(context) {
- var i = 0;
- var ii = expressions.length;
- var values = new Array(ii);
-
- try {
- for (; i < ii; i++) {
- values[i] = parseFns[i](context);
- }
-
- return compute(values);
- } catch (err) {
- $exceptionHandler($interpolateMinErr.interr(text, err));
- }
-
- }, {
- // all of these properties are undocumented for now
- exp: text, //just for compatibility with regular watchers created via $watch
- expressions: expressions,
- $$watchDelegate: function(scope, listener) {
- var lastValue;
- return scope.$watchGroup(parseFns, /** @this */ function interpolateFnWatcher(values, oldValues) {
- var currValue = compute(values);
- if (isFunction(listener)) {
- listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope);
- }
- lastValue = currValue;
- });
- }
- });
- }
-
- function parseStringifyInterceptor(value) {
- try {
- value = getValue(value);
- return allOrNothing && !isDefined(value) ? value : stringify(value);
- } catch (err) {
- $exceptionHandler($interpolateMinErr.interr(text, err));
- }
- }
- }
-
-
- /**
- * @ngdoc method
- * @name $interpolate#startSymbol
- * @description
- * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.
- *
- * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change
- * the symbol.
- *
- * @returns {string} start symbol.
- */
- $interpolate.startSymbol = function() {
- return startSymbol;
- };
-
-
- /**
- * @ngdoc method
- * @name $interpolate#endSymbol
- * @description
- * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
- *
- * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change
- * the symbol.
- *
- * @returns {string} end symbol.
- */
- $interpolate.endSymbol = function() {
- return endSymbol;
- };
-
- return $interpolate;
- }];
-}
-
-/** @this */
-function $IntervalProvider() {
- this.$get = ['$rootScope', '$window', '$q', '$$q', '$browser',
- function($rootScope, $window, $q, $$q, $browser) {
- var intervals = {};
-
-
- /**
- * @ngdoc service
- * @name $interval
- *
- * @description
- * Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay`
- * milliseconds.
- *
- * The return value of registering an interval function is a promise. This promise will be
- * notified upon each tick of the interval, and will be resolved after `count` iterations, or
- * run indefinitely if `count` is not defined. The value of the notification will be the
- * number of iterations that have run.
- * To cancel an interval, call `$interval.cancel(promise)`.
- *
- * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to
- * move forward by `millis` milliseconds and trigger any functions scheduled to run in that
- * time.
- *
- * <div class="alert alert-warning">
- * **Note**: Intervals created by this service must be explicitly destroyed when you are finished
- * with them. In particular they are not automatically destroyed when a controller's scope or a
- * directive's element are destroyed.
- * You should take this into consideration and make sure to always cancel the interval at the
- * appropriate moment. See the example below for more details on how and when to do this.
- * </div>
- *
- * @param {function()} fn A function that should be called repeatedly. If no additional arguments
- * are passed (see below), the function is called with the current iteration count.
- * @param {number} delay Number of milliseconds between each function call.
- * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat
- * indefinitely.
- * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
- * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
- * @param {...*=} Pass additional parameters to the executed function.
- * @returns {promise} A promise which will be notified on each iteration.
- *
- * @example
- * <example module="intervalExample" name="interval-service">
- * <file name="index.html">
- * <script>
- * angular.module('intervalExample', [])
- * .controller('ExampleController', ['$scope', '$interval',
- * function($scope, $interval) {
- * $scope.format = 'M/d/yy h:mm:ss a';
- * $scope.blood_1 = 100;
- * $scope.blood_2 = 120;
- *
- * var stop;
- * $scope.fight = function() {
- * // Don't start a new fight if we are already fighting
- * if ( angular.isDefined(stop) ) return;
- *
- * stop = $interval(function() {
- * if ($scope.blood_1 > 0 && $scope.blood_2 > 0) {
- * $scope.blood_1 = $scope.blood_1 - 3;
- * $scope.blood_2 = $scope.blood_2 - 4;
- * } else {
- * $scope.stopFight();
- * }
- * }, 100);
- * };
- *
- * $scope.stopFight = function() {
- * if (angular.isDefined(stop)) {
- * $interval.cancel(stop);
- * stop = undefined;
- * }
- * };
- *
- * $scope.resetFight = function() {
- * $scope.blood_1 = 100;
- * $scope.blood_2 = 120;
- * };
- *
- * $scope.$on('$destroy', function() {
- * // Make sure that the interval is destroyed too
- * $scope.stopFight();
- * });
- * }])
- * // Register the 'myCurrentTime' directive factory method.
- * // We inject $interval and dateFilter service since the factory method is DI.
- * .directive('myCurrentTime', ['$interval', 'dateFilter',
- * function($interval, dateFilter) {
- * // return the directive link function. (compile function not needed)
- * return function(scope, element, attrs) {
- * var format, // date format
- * stopTime; // so that we can cancel the time updates
- *
- * // used to update the UI
- * function updateTime() {
- * element.text(dateFilter(new Date(), format));
- * }
- *
- * // watch the expression, and update the UI on change.
- * scope.$watch(attrs.myCurrentTime, function(value) {
- * format = value;
- * updateTime();
- * });
- *
- * stopTime = $interval(updateTime, 1000);
- *
- * // listen on DOM destroy (removal) event, and cancel the next UI update
- * // to prevent updating time after the DOM element was removed.
- * element.on('$destroy', function() {
- * $interval.cancel(stopTime);
- * });
- * }
- * }]);
- * </script>
- *
- * <div>
- * <div ng-controller="ExampleController">
- * <label>Date format: <input ng-model="format"></label> <hr/>
- * Current time is: <span my-current-time="format"></span>
- * <hr/>
- * Blood 1 : <font color='red'>{{blood_1}}</font>
- * Blood 2 : <font color='red'>{{blood_2}}</font>
- * <button type="button" data-ng-click="fight()">Fight</button>
- * <button type="button" data-ng-click="stopFight()">StopFight</button>
- * <button type="button" data-ng-click="resetFight()">resetFight</button>
- * </div>
- * </div>
- *
- * </file>
- * </example>
- */
- function interval(fn, delay, count, invokeApply) {
- var hasParams = arguments.length > 4,
- args = hasParams ? sliceArgs(arguments, 4) : [],
- setInterval = $window.setInterval,
- clearInterval = $window.clearInterval,
- iteration = 0,
- skipApply = (isDefined(invokeApply) && !invokeApply),
- deferred = (skipApply ? $$q : $q).defer(),
- promise = deferred.promise;
-
- count = isDefined(count) ? count : 0;
-
- promise.$$intervalId = setInterval(function tick() {
- if (skipApply) {
- $browser.defer(callback);
- } else {
- $rootScope.$evalAsync(callback);
- }
- deferred.notify(iteration++);
-
- if (count > 0 && iteration >= count) {
- deferred.resolve(iteration);
- clearInterval(promise.$$intervalId);
- delete intervals[promise.$$intervalId];
- }
-
- if (!skipApply) $rootScope.$apply();
-
- }, delay);
-
- intervals[promise.$$intervalId] = deferred;
-
- return promise;
-
- function callback() {
- if (!hasParams) {
- fn(iteration);
- } else {
- fn.apply(null, args);
- }
- }
- }
-
-
- /**
- * @ngdoc method
- * @name $interval#cancel
- *
- * @description
- * Cancels a task associated with the `promise`.
- *
- * @param {Promise=} promise returned by the `$interval` function.
- * @returns {boolean} Returns `true` if the task was successfully canceled.
- */
- interval.cancel = function(promise) {
- if (promise && promise.$$intervalId in intervals) {
- intervals[promise.$$intervalId].reject('canceled');
- $window.clearInterval(promise.$$intervalId);
- delete intervals[promise.$$intervalId];
- return true;
- }
- return false;
- };
-
- return interval;
- }];
-}
-
-/**
- * @ngdoc service
- * @name $jsonpCallbacks
- * @requires $window
- * @description
- * This service handles the lifecycle of callbacks to handle JSONP requests.
- * Override this service if you wish to customise where the callbacks are stored and
- * how they vary compared to the requested url.
- */
-var $jsonpCallbacksProvider = /** @this */ function() {
- this.$get = ['$window', function($window) {
- var callbacks = $window.angular.callbacks;
- var callbackMap = {};
-
- function createCallback(callbackId) {
- var callback = function(data) {
- callback.data = data;
- callback.called = true;
- };
- callback.id = callbackId;
- return callback;
- }
-
- return {
- /**
- * @ngdoc method
- * @name $jsonpCallbacks#createCallback
- * @param {string} url the url of the JSONP request
- * @returns {string} the callback path to send to the server as part of the JSONP request
- * @description
- * {@link $httpBackend} calls this method to create a callback and get hold of the path to the callback
- * to pass to the server, which will be used to call the callback with its payload in the JSONP response.
- */
- createCallback: function(url) {
- var callbackId = '_' + (callbacks.$$counter++).toString(36);
- var callbackPath = 'angular.callbacks.' + callbackId;
- var callback = createCallback(callbackId);
- callbackMap[callbackPath] = callbacks[callbackId] = callback;
- return callbackPath;
- },
- /**
- * @ngdoc method
- * @name $jsonpCallbacks#wasCalled
- * @param {string} callbackPath the path to the callback that was sent in the JSONP request
- * @returns {boolean} whether the callback has been called, as a result of the JSONP response
- * @description
- * {@link $httpBackend} calls this method to find out whether the JSONP response actually called the
- * callback that was passed in the request.
- */
- wasCalled: function(callbackPath) {
- return callbackMap[callbackPath].called;
- },
- /**
- * @ngdoc method
- * @name $jsonpCallbacks#getResponse
- * @param {string} callbackPath the path to the callback that was sent in the JSONP request
- * @returns {*} the data received from the response via the registered callback
- * @description
- * {@link $httpBackend} calls this method to get hold of the data that was provided to the callback
- * in the JSONP response.
- */
- getResponse: function(callbackPath) {
- return callbackMap[callbackPath].data;
- },
- /**
- * @ngdoc method
- * @name $jsonpCallbacks#removeCallback
- * @param {string} callbackPath the path to the callback that was sent in the JSONP request
- * @description
- * {@link $httpBackend} calls this method to remove the callback after the JSONP request has
- * completed or timed-out.
- */
- removeCallback: function(callbackPath) {
- var callback = callbackMap[callbackPath];
- delete callbacks[callback.id];
- delete callbackMap[callbackPath];
- }
- };
- }];
-};
-
-/**
- * @ngdoc service
- * @name $locale
- *
- * @description
- * $locale service provides localization rules for various Angular components. As of right now the
- * only public api is:
- *
- * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)
- */
-
-var PATH_MATCH = /^([^?#]*)(\?([^#]*))?(#(.*))?$/,
- DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};
-var $locationMinErr = minErr('$location');
-
-
-/**
- * Encode path using encodeUriSegment, ignoring forward slashes
- *
- * @param {string} path Path to encode
- * @returns {string}
- */
-function encodePath(path) {
- var segments = path.split('/'),
- i = segments.length;
-
- while (i--) {
- segments[i] = encodeUriSegment(segments[i]);
- }
-
- return segments.join('/');
-}
-
-function parseAbsoluteUrl(absoluteUrl, locationObj) {
- var parsedUrl = urlResolve(absoluteUrl);
-
- locationObj.$$protocol = parsedUrl.protocol;
- locationObj.$$host = parsedUrl.hostname;
- locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
-}
-
-var DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/;
-function parseAppUrl(url, locationObj) {
-
- if (DOUBLE_SLASH_REGEX.test(url)) {
- throw $locationMinErr('badpath', 'Invalid url "{0}".', url);
- }
-
- var prefixed = (url.charAt(0) !== '/');
- if (prefixed) {
- url = '/' + url;
- }
- var match = urlResolve(url);
- locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ?
- match.pathname.substring(1) : match.pathname);
- locationObj.$$search = parseKeyValue(match.search);
- locationObj.$$hash = decodeURIComponent(match.hash);
-
- // make sure path starts with '/';
- if (locationObj.$$path && locationObj.$$path.charAt(0) !== '/') {
- locationObj.$$path = '/' + locationObj.$$path;
- }
-}
-
-function startsWith(str, search) {
- return str.slice(0, search.length) === search;
-}
-
-/**
- *
- * @param {string} base
- * @param {string} url
- * @returns {string} returns text from `url` after `base` or `undefined` if it does not begin with
- * the expected string.
- */
-function stripBaseUrl(base, url) {
- if (startsWith(url, base)) {
- return url.substr(base.length);
- }
-}
-
-
-function stripHash(url) {
- var index = url.indexOf('#');
- return index === -1 ? url : url.substr(0, index);
-}
-
-function trimEmptyHash(url) {
- return url.replace(/(#.+)|#$/, '$1');
-}
-
-
-function stripFile(url) {
- return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
-}
-
-/* return the server only (scheme://host:port) */
-function serverBase(url) {
- return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));
-}
-
-
-/**
- * LocationHtml5Url represents a URL
- * This object is exposed as $location service when HTML5 mode is enabled and supported
- *
- * @constructor
- * @param {string} appBase application base URL
- * @param {string} appBaseNoFile application base URL stripped of any filename
- * @param {string} basePrefix URL path prefix
- */
-function LocationHtml5Url(appBase, appBaseNoFile, basePrefix) {
- this.$$html5 = true;
- basePrefix = basePrefix || '';
- parseAbsoluteUrl(appBase, this);
-
-
- /**
- * Parse given HTML5 (regular) URL string into properties
- * @param {string} url HTML5 URL
- * @private
- */
- this.$$parse = function(url) {
- var pathUrl = stripBaseUrl(appBaseNoFile, url);
- if (!isString(pathUrl)) {
- throw $locationMinErr('ipthprfx', 'Invalid url "{0}", missing path prefix "{1}".', url,
- appBaseNoFile);
- }
-
- parseAppUrl(pathUrl, this);
-
- if (!this.$$path) {
- this.$$path = '/';
- }
-
- this.$$compose();
- };
-
- /**
- * Compose url and update `absUrl` property
- * @private
- */
- this.$$compose = function() {
- var search = toKeyValue(this.$$search),
- hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
-
- this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
- this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'
- };
-
- this.$$parseLinkUrl = function(url, relHref) {
- if (relHref && relHref[0] === '#') {
- // special case for links to hash fragments:
- // keep the old url and only replace the hash fragment
- this.hash(relHref.slice(1));
- return true;
- }
- var appUrl, prevAppUrl;
- var rewrittenUrl;
-
-
- if (isDefined(appUrl = stripBaseUrl(appBase, url))) {
- prevAppUrl = appUrl;
- if (basePrefix && isDefined(appUrl = stripBaseUrl(basePrefix, appUrl))) {
- rewrittenUrl = appBaseNoFile + (stripBaseUrl('/', appUrl) || appUrl);
- } else {
- rewrittenUrl = appBase + prevAppUrl;
- }
- } else if (isDefined(appUrl = stripBaseUrl(appBaseNoFile, url))) {
- rewrittenUrl = appBaseNoFile + appUrl;
- } else if (appBaseNoFile === url + '/') {
- rewrittenUrl = appBaseNoFile;
- }
- if (rewrittenUrl) {
- this.$$parse(rewrittenUrl);
- }
- return !!rewrittenUrl;
- };
-}
-
-
-/**
- * LocationHashbangUrl represents URL
- * This object is exposed as $location service when developer doesn't opt into html5 mode.
- * It also serves as the base class for html5 mode fallback on legacy browsers.
- *
- * @constructor
- * @param {string} appBase application base URL
- * @param {string} appBaseNoFile application base URL stripped of any filename
- * @param {string} hashPrefix hashbang prefix
- */
-function LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {
-
- parseAbsoluteUrl(appBase, this);
-
-
- /**
- * Parse given hashbang URL into properties
- * @param {string} url Hashbang URL
- * @private
- */
- this.$$parse = function(url) {
- var withoutBaseUrl = stripBaseUrl(appBase, url) || stripBaseUrl(appBaseNoFile, url);
- var withoutHashUrl;
-
- if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') {
-
- // The rest of the URL starts with a hash so we have
- // got either a hashbang path or a plain hash fragment
- withoutHashUrl = stripBaseUrl(hashPrefix, withoutBaseUrl);
- if (isUndefined(withoutHashUrl)) {
- // There was no hashbang prefix so we just have a hash fragment
- withoutHashUrl = withoutBaseUrl;
- }
-
- } else {
- // There was no hashbang path nor hash fragment:
- // If we are in HTML5 mode we use what is left as the path;
- // Otherwise we ignore what is left
- if (this.$$html5) {
- withoutHashUrl = withoutBaseUrl;
- } else {
- withoutHashUrl = '';
- if (isUndefined(withoutBaseUrl)) {
- appBase = url;
- this.replace();
- }
- }
- }
-
- parseAppUrl(withoutHashUrl, this);
-
- this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase);
-
- this.$$compose();
-
- /*
- * In Windows, on an anchor node on documents loaded from
- * the filesystem, the browser will return a pathname
- * prefixed with the drive name ('/C:/path') when a
- * pathname without a drive is set:
- * * a.setAttribute('href', '/foo')
- * * a.pathname === '/C:/foo' //true
- *
- * Inside of Angular, we're always using pathnames that
- * do not include drive names for routing.
- */
- function removeWindowsDriveName(path, url, base) {
- /*
- Matches paths for file protocol on windows,
- such as /C:/foo/bar, and captures only /foo/bar.
- */
- var windowsFilePathExp = /^\/[A-Z]:(\/.*)/;
-
- var firstPathSegmentMatch;
-
- //Get the relative path from the input URL.
- if (startsWith(url, base)) {
- url = url.replace(base, '');
- }
-
- // The input URL intentionally contains a first path segment that ends with a colon.
- if (windowsFilePathExp.exec(url)) {
- return path;
- }
-
- firstPathSegmentMatch = windowsFilePathExp.exec(path);
- return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path;
- }
- };
-
- /**
- * Compose hashbang URL and update `absUrl` property
- * @private
- */
- this.$$compose = function() {
- var search = toKeyValue(this.$$search),
- hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
-
- this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
- this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');
- };
-
- this.$$parseLinkUrl = function(url, relHref) {
- if (stripHash(appBase) === stripHash(url)) {
- this.$$parse(url);
- return true;
- }
- return false;
- };
-}
-
-
-/**
- * LocationHashbangUrl represents URL
- * This object is exposed as $location service when html5 history api is enabled but the browser
- * does not support it.
- *
- * @constructor
- * @param {string} appBase application base URL
- * @param {string} appBaseNoFile application base URL stripped of any filename
- * @param {string} hashPrefix hashbang prefix
- */
-function LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) {
- this.$$html5 = true;
- LocationHashbangUrl.apply(this, arguments);
-
- this.$$parseLinkUrl = function(url, relHref) {
- if (relHref && relHref[0] === '#') {
- // special case for links to hash fragments:
- // keep the old url and only replace the hash fragment
- this.hash(relHref.slice(1));
- return true;
- }
-
- var rewrittenUrl;
- var appUrl;
-
- if (appBase === stripHash(url)) {
- rewrittenUrl = url;
- } else if ((appUrl = stripBaseUrl(appBaseNoFile, url))) {
- rewrittenUrl = appBase + hashPrefix + appUrl;
- } else if (appBaseNoFile === url + '/') {
- rewrittenUrl = appBaseNoFile;
- }
- if (rewrittenUrl) {
- this.$$parse(rewrittenUrl);
- }
- return !!rewrittenUrl;
- };
-
- this.$$compose = function() {
- var search = toKeyValue(this.$$search),
- hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
-
- this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
- // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#'
- this.$$absUrl = appBase + hashPrefix + this.$$url;
- };
-
-}
-
-
-var locationPrototype = {
-
- /**
- * Ensure absolute URL is initialized.
- * @private
- */
- $$absUrl:'',
-
- /**
- * Are we in html5 mode?
- * @private
- */
- $$html5: false,
-
- /**
- * Has any change been replacing?
- * @private
- */
- $$replace: false,
-
- /**
- * @ngdoc method
- * @name $location#absUrl
- *
- * @description
- * This method is getter only.
- *
- * Return full URL representation with all segments encoded according to rules specified in
- * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).
- *
- *
- * ```js
- * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
- * var absUrl = $location.absUrl();
- * // => "http://example.com/#/some/path?foo=bar&baz=xoxo"
- * ```
- *
- * @return {string} full URL
- */
- absUrl: locationGetter('$$absUrl'),
-
- /**
- * @ngdoc method
- * @name $location#url
- *
- * @description
- * This method is getter / setter.
- *
- * Return URL (e.g. `/path?a=b#hash`) when called without any parameter.
- *
- * Change path, search and hash, when called with parameter and return `$location`.
- *
- *
- * ```js
- * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
- * var url = $location.url();
- * // => "/some/path?foo=bar&baz=xoxo"
- * ```
- *
- * @param {string=} url New URL without base prefix (e.g. `/path?a=b#hash`)
- * @return {string} url
- */
- url: function(url) {
- if (isUndefined(url)) {
- return this.$$url;
- }
-
- var match = PATH_MATCH.exec(url);
- if (match[1] || url === '') this.path(decodeURIComponent(match[1]));
- if (match[2] || match[1] || url === '') this.search(match[3] || '');
- this.hash(match[5] || '');
-
- return this;
- },
-
- /**
- * @ngdoc method
- * @name $location#protocol
- *
- * @description
- * This method is getter only.
- *
- * Return protocol of current URL.
- *
- *
- * ```js
- * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
- * var protocol = $location.protocol();
- * // => "http"
- * ```
- *
- * @return {string} protocol of current URL
- */
- protocol: locationGetter('$$protocol'),
-
- /**
- * @ngdoc method
- * @name $location#host
- *
- * @description
- * This method is getter only.
- *
- * Return host of current URL.
- *
- * Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.
- *
- *
- * ```js
- * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
- * var host = $location.host();
- * // => "example.com"
- *
- * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo
- * host = $location.host();
- * // => "example.com"
- * host = location.host;
- * // => "example.com:8080"
- * ```
- *
- * @return {string} host of current URL.
- */
- host: locationGetter('$$host'),
-
- /**
- * @ngdoc method
- * @name $location#port
- *
- * @description
- * This method is getter only.
- *
- * Return port of current URL.
- *
- *
- * ```js
- * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
- * var port = $location.port();
- * // => 80
- * ```
- *
- * @return {Number} port
- */
- port: locationGetter('$$port'),
-
- /**
- * @ngdoc method
- * @name $location#path
- *
- * @description
- * This method is getter / setter.
- *
- * Return path of current URL when called without any parameter.
- *
- * Change path when called with parameter and return `$location`.
- *
- * Note: Path should always begin with forward slash (/), this method will add the forward slash
- * if it is missing.
- *
- *
- * ```js
- * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
- * var path = $location.path();
- * // => "/some/path"
- * ```
- *
- * @param {(string|number)=} path New path
- * @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter
- */
- path: locationGetterSetter('$$path', function(path) {
- path = path !== null ? path.toString() : '';
- return path.charAt(0) === '/' ? path : '/' + path;
- }),
-
- /**
- * @ngdoc method
- * @name $location#search
- *
- * @description
- * This method is getter / setter.
- *
- * Return search part (as object) of current URL when called without any parameter.
- *
- * Change search part when called with parameter and return `$location`.
- *
- *
- * ```js
- * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
- * var searchObject = $location.search();
- * // => {foo: 'bar', baz: 'xoxo'}
- *
- * // set foo to 'yipee'
- * $location.search('foo', 'yipee');
- * // $location.search() => {foo: 'yipee', baz: 'xoxo'}
- * ```
- *
- * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or
- * hash object.
- *
- * When called with a single argument the method acts as a setter, setting the `search` component
- * of `$location` to the specified value.
- *
- * If the argument is a hash object containing an array of values, these values will be encoded
- * as duplicate search parameters in the URL.
- *
- * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number, then `paramValue`
- * will override only a single search property.
- *
- * If `paramValue` is an array, it will override the property of the `search` component of
- * `$location` specified via the first argument.
- *
- * If `paramValue` is `null`, the property specified via the first argument will be deleted.
- *
- * If `paramValue` is `true`, the property specified via the first argument will be added with no
- * value nor trailing equal sign.
- *
- * @return {Object} If called with no arguments returns the parsed `search` object. If called with
- * one or more arguments returns `$location` object itself.
- */
- search: function(search, paramValue) {
- switch (arguments.length) {
- case 0:
- return this.$$search;
- case 1:
- if (isString(search) || isNumber(search)) {
- search = search.toString();
- this.$$search = parseKeyValue(search);
- } else if (isObject(search)) {
- search = copy(search, {});
- // remove object undefined or null properties
- forEach(search, function(value, key) {
- if (value == null) delete search[key];
- });
-
- this.$$search = search;
- } else {
- throw $locationMinErr('isrcharg',
- 'The first argument of the `$location#search()` call must be a string or an object.');
- }
- break;
- default:
- if (isUndefined(paramValue) || paramValue === null) {
- delete this.$$search[search];
- } else {
- this.$$search[search] = paramValue;
- }
- }
-
- this.$$compose();
- return this;
- },
-
- /**
- * @ngdoc method
- * @name $location#hash
- *
- * @description
- * This method is getter / setter.
- *
- * Returns the hash fragment when called without any parameters.
- *
- * Changes the hash fragment when called with a parameter and returns `$location`.
- *
- *
- * ```js
- * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue
- * var hash = $location.hash();
- * // => "hashValue"
- * ```
- *
- * @param {(string|number)=} hash New hash fragment
- * @return {string} hash
- */
- hash: locationGetterSetter('$$hash', function(hash) {
- return hash !== null ? hash.toString() : '';
- }),
-
- /**
- * @ngdoc method
- * @name $location#replace
- *
- * @description
- * If called, all changes to $location during the current `$digest` will replace the current history
- * record, instead of adding a new one.
- */
- replace: function() {
- this.$$replace = true;
- return this;
- }
-};
-
-forEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function(Location) {
- Location.prototype = Object.create(locationPrototype);
-
- /**
- * @ngdoc method
- * @name $location#state
- *
- * @description
- * This method is getter / setter.
- *
- * Return the history state object when called without any parameter.
- *
- * Change the history state object when called with one parameter and return `$location`.
- * The state object is later passed to `pushState` or `replaceState`.
- *
- * NOTE: This method is supported only in HTML5 mode and only in browsers supporting
- * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support
- * older browsers (like IE9 or Android < 4.0), don't use this method.
- *
- * @param {object=} state State object for pushState or replaceState
- * @return {object} state
- */
- Location.prototype.state = function(state) {
- if (!arguments.length) {
- return this.$$state;
- }
-
- if (Location !== LocationHtml5Url || !this.$$html5) {
- throw $locationMinErr('nostate', 'History API state support is available only ' +
- 'in HTML5 mode and only in browsers supporting HTML5 History API');
- }
- // The user might modify `stateObject` after invoking `$location.state(stateObject)`
- // but we're changing the $$state reference to $browser.state() during the $digest
- // so the modification window is narrow.
- this.$$state = isUndefined(state) ? null : state;
-
- return this;
- };
-});
-
-
-function locationGetter(property) {
- return /** @this */ function() {
- return this[property];
- };
-}
-
-
-function locationGetterSetter(property, preprocess) {
- return /** @this */ function(value) {
- if (isUndefined(value)) {
- return this[property];
- }
-
- this[property] = preprocess(value);
- this.$$compose();
-
- return this;
- };
-}
-
-
-/**
- * @ngdoc service
- * @name $location
- *
- * @requires $rootElement
- *
- * @description
- * The $location service parses the URL in the browser address bar (based on the
- * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL
- * available to your application. Changes to the URL in the address bar are reflected into
- * $location service and changes to $location are reflected into the browser address bar.
- *
- * **The $location service:**
- *
- * - Exposes the current URL in the browser address bar, so you can
- * - Watch and observe the URL.
- * - Change the URL.
- * - Synchronizes the URL with the browser when the user
- * - Changes the address bar.
- * - Clicks the back or forward button (or clicks a History link).
- * - Clicks on a link.
- * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).
- *
- * For more information see {@link guide/$location Developer Guide: Using $location}
- */
-
-/**
- * @ngdoc provider
- * @name $locationProvider
- * @this
- *
- * @description
- * Use the `$locationProvider` to configure how the application deep linking paths are stored.
- */
-function $LocationProvider() {
- var hashPrefix = '',
- html5Mode = {
- enabled: false,
- requireBase: true,
- rewriteLinks: true
- };
-
- /**
- * @ngdoc method
- * @name $locationProvider#hashPrefix
- * @description
- * The default value for the prefix is `''`.
- * @param {string=} prefix Prefix for hash part (containing path and search)
- * @returns {*} current value if used as getter or itself (chaining) if used as setter
- */
- this.hashPrefix = function(prefix) {
- if (isDefined(prefix)) {
- hashPrefix = prefix;
- return this;
- } else {
- return hashPrefix;
- }
- };
-
- /**
- * @ngdoc method
- * @name $locationProvider#html5Mode
- * @description
- * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.
- * If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported
- * properties:
- * - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to
- * change urls where supported. Will fall back to hash-prefixed paths in browsers that do not
- * support `pushState`.
- * - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies
- * whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are
- * true, and a base tag is not present, an error will be thrown when `$location` is injected.
- * See the {@link guide/$location $location guide for more information}
- * - **rewriteLinks** - `{boolean|string}` - (default: `true`) When html5Mode is enabled,
- * enables/disables URL rewriting for relative links. If set to a string, URL rewriting will
- * only happen on links with an attribute that matches the given string. For example, if set
- * to `'internal-link'`, then the URL will only be rewritten for `<a internal-link>` links.
- * Note that [attribute name normalization](guide/directive#normalization) does not apply
- * here, so `'internalLink'` will **not** match `'internal-link'`.
- *
- * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter
- */
- this.html5Mode = function(mode) {
- if (isBoolean(mode)) {
- html5Mode.enabled = mode;
- return this;
- } else if (isObject(mode)) {
-
- if (isBoolean(mode.enabled)) {
- html5Mode.enabled = mode.enabled;
- }
-
- if (isBoolean(mode.requireBase)) {
- html5Mode.requireBase = mode.requireBase;
- }
-
- if (isBoolean(mode.rewriteLinks) || isString(mode.rewriteLinks)) {
- html5Mode.rewriteLinks = mode.rewriteLinks;
- }
-
- return this;
- } else {
- return html5Mode;
- }
- };
-
- /**
- * @ngdoc event
- * @name $location#$locationChangeStart
- * @eventType broadcast on root scope
- * @description
- * Broadcasted before a URL will change.
- *
- * This change can be prevented by calling
- * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more
- * details about event object. Upon successful change
- * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.
- *
- * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
- * the browser supports the HTML5 History API.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {string} newUrl New URL
- * @param {string=} oldUrl URL that was before it was changed.
- * @param {string=} newState New history state object
- * @param {string=} oldState History state object that was before it was changed.
- */
-
- /**
- * @ngdoc event
- * @name $location#$locationChangeSuccess
- * @eventType broadcast on root scope
- * @description
- * Broadcasted after a URL was changed.
- *
- * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
- * the browser supports the HTML5 History API.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {string} newUrl New URL
- * @param {string=} oldUrl URL that was before it was changed.
- * @param {string=} newState New history state object
- * @param {string=} oldState History state object that was before it was changed.
- */
-
- this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window',
- function($rootScope, $browser, $sniffer, $rootElement, $window) {
- var $location,
- LocationMode,
- baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to ''
- initialUrl = $browser.url(),
- appBase;
-
- if (html5Mode.enabled) {
- if (!baseHref && html5Mode.requireBase) {
- throw $locationMinErr('nobase',
- '$location in HTML5 mode requires a <base> tag to be present!');
- }
- appBase = serverBase(initialUrl) + (baseHref || '/');
- LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;
- } else {
- appBase = stripHash(initialUrl);
- LocationMode = LocationHashbangUrl;
- }
- var appBaseNoFile = stripFile(appBase);
-
- $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix);
- $location.$$parseLinkUrl(initialUrl, initialUrl);
-
- $location.$$state = $browser.state();
-
- var IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i;
-
- function setBrowserUrlWithFallback(url, replace, state) {
- var oldUrl = $location.url();
- var oldState = $location.$$state;
- try {
- $browser.url(url, replace, state);
-
- // Make sure $location.state() returns referentially identical (not just deeply equal)
- // state object; this makes possible quick checking if the state changed in the digest
- // loop. Checking deep equality would be too expensive.
- $location.$$state = $browser.state();
- } catch (e) {
- // Restore old values if pushState fails
- $location.url(oldUrl);
- $location.$$state = oldState;
-
- throw e;
- }
- }
-
- $rootElement.on('click', function(event) {
- var rewriteLinks = html5Mode.rewriteLinks;
- // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)
- // currently we open nice url link and redirect then
-
- if (!rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 || event.button === 2) return;
-
- var elm = jqLite(event.target);
-
- // traverse the DOM up to find first A tag
- while (nodeName_(elm[0]) !== 'a') {
- // ignore rewriting if no A tag (reached root element, or no parent - removed from document)
- if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;
- }
-
- if (isString(rewriteLinks) && isUndefined(elm.attr(rewriteLinks))) return;
-
- var absHref = elm.prop('href');
- // get the actual href attribute - see
- // http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx
- var relHref = elm.attr('href') || elm.attr('xlink:href');
-
- if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') {
- // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during
- // an animation.
- absHref = urlResolve(absHref.animVal).href;
- }
-
- // Ignore when url is started with javascript: or mailto:
- if (IGNORE_URI_REGEXP.test(absHref)) return;
-
- if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) {
- if ($location.$$parseLinkUrl(absHref, relHref)) {
- // We do a preventDefault for all urls that are part of the angular application,
- // in html5mode and also without, so that we are able to abort navigation without
- // getting double entries in the location history.
- event.preventDefault();
- // update location manually
- if ($location.absUrl() !== $browser.url()) {
- $rootScope.$apply();
- // hack to work around FF6 bug 684208 when scenario runner clicks on links
- $window.angular['ff-684208-preventDefault'] = true;
- }
- }
- }
- });
-
-
- // rewrite hashbang url <> html5 url
- if (trimEmptyHash($location.absUrl()) !== trimEmptyHash(initialUrl)) {
- $browser.url($location.absUrl(), true);
- }
-
- var initializing = true;
-
- // update $location when $browser url changes
- $browser.onUrlChange(function(newUrl, newState) {
-
- if (isUndefined(stripBaseUrl(appBaseNoFile, newUrl))) {
- // If we are navigating outside of the app then force a reload
- $window.location.href = newUrl;
- return;
- }
-
- $rootScope.$evalAsync(function() {
- var oldUrl = $location.absUrl();
- var oldState = $location.$$state;
- var defaultPrevented;
- newUrl = trimEmptyHash(newUrl);
- $location.$$parse(newUrl);
- $location.$$state = newState;
-
- defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,
- newState, oldState).defaultPrevented;
-
- // if the location was changed by a `$locationChangeStart` handler then stop
- // processing this location change
- if ($location.absUrl() !== newUrl) return;
-
- if (defaultPrevented) {
- $location.$$parse(oldUrl);
- $location.$$state = oldState;
- setBrowserUrlWithFallback(oldUrl, false, oldState);
- } else {
- initializing = false;
- afterLocationChange(oldUrl, oldState);
- }
- });
- if (!$rootScope.$$phase) $rootScope.$digest();
- });
-
- // update browser
- $rootScope.$watch(function $locationWatch() {
- var oldUrl = trimEmptyHash($browser.url());
- var newUrl = trimEmptyHash($location.absUrl());
- var oldState = $browser.state();
- var currentReplace = $location.$$replace;
- var urlOrStateChanged = oldUrl !== newUrl ||
- ($location.$$html5 && $sniffer.history && oldState !== $location.$$state);
-
- if (initializing || urlOrStateChanged) {
- initializing = false;
-
- $rootScope.$evalAsync(function() {
- var newUrl = $location.absUrl();
- var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,
- $location.$$state, oldState).defaultPrevented;
-
- // if the location was changed by a `$locationChangeStart` handler then stop
- // processing this location change
- if ($location.absUrl() !== newUrl) return;
-
- if (defaultPrevented) {
- $location.$$parse(oldUrl);
- $location.$$state = oldState;
- } else {
- if (urlOrStateChanged) {
- setBrowserUrlWithFallback(newUrl, currentReplace,
- oldState === $location.$$state ? null : $location.$$state);
- }
- afterLocationChange(oldUrl, oldState);
- }
- });
- }
-
- $location.$$replace = false;
-
- // we don't need to return anything because $evalAsync will make the digest loop dirty when
- // there is a change
- });
-
- return $location;
-
- function afterLocationChange(oldUrl, oldState) {
- $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl,
- $location.$$state, oldState);
- }
-}];
-}
-
-/**
- * @ngdoc service
- * @name $log
- * @requires $window
- *
- * @description
- * Simple service for logging. Default implementation safely writes the message
- * into the browser's console (if present).
- *
- * The main purpose of this service is to simplify debugging and troubleshooting.
- *
- * The default is to log `debug` messages. You can use
- * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.
- *
- * @example
- <example module="logExample" name="log-service">
- <file name="script.js">
- angular.module('logExample', [])
- .controller('LogController', ['$scope', '$log', function($scope, $log) {
- $scope.$log = $log;
- $scope.message = 'Hello World!';
- }]);
- </file>
- <file name="index.html">
- <div ng-controller="LogController">
- <p>Reload this page with open console, enter text and hit the log button...</p>
- <label>Message:
- <input type="text" ng-model="message" /></label>
- <button ng-click="$log.log(message)">log</button>
- <button ng-click="$log.warn(message)">warn</button>
- <button ng-click="$log.info(message)">info</button>
- <button ng-click="$log.error(message)">error</button>
- <button ng-click="$log.debug(message)">debug</button>
- </div>
- </file>
- </example>
- */
-
-/**
- * @ngdoc provider
- * @name $logProvider
- * @this
- *
- * @description
- * Use the `$logProvider` to configure how the application logs messages
- */
-function $LogProvider() {
- var debug = true,
- self = this;
-
- /**
- * @ngdoc method
- * @name $logProvider#debugEnabled
- * @description
- * @param {boolean=} flag enable or disable debug level messages
- * @returns {*} current value if used as getter or itself (chaining) if used as setter
- */
- this.debugEnabled = function(flag) {
- if (isDefined(flag)) {
- debug = flag;
- return this;
- } else {
- return debug;
- }
- };
-
- this.$get = ['$window', function($window) {
- return {
- /**
- * @ngdoc method
- * @name $log#log
- *
- * @description
- * Write a log message
- */
- log: consoleLog('log'),
-
- /**
- * @ngdoc method
- * @name $log#info
- *
- * @description
- * Write an information message
- */
- info: consoleLog('info'),
-
- /**
- * @ngdoc method
- * @name $log#warn
- *
- * @description
- * Write a warning message
- */
- warn: consoleLog('warn'),
-
- /**
- * @ngdoc method
- * @name $log#error
- *
- * @description
- * Write an error message
- */
- error: consoleLog('error'),
-
- /**
- * @ngdoc method
- * @name $log#debug
- *
- * @description
- * Write a debug message
- */
- debug: (function() {
- var fn = consoleLog('debug');
-
- return function() {
- if (debug) {
- fn.apply(self, arguments);
- }
- };
- })()
- };
-
- function formatError(arg) {
- if (arg instanceof Error) {
- if (arg.stack) {
- arg = (arg.message && arg.stack.indexOf(arg.message) === -1)
- ? 'Error: ' + arg.message + '\n' + arg.stack
- : arg.stack;
- } else if (arg.sourceURL) {
- arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line;
- }
- }
- return arg;
- }
-
- function consoleLog(type) {
- var console = $window.console || {},
- logFn = console[type] || console.log || noop,
- hasApply = false;
-
- // Note: reading logFn.apply throws an error in IE11 in IE8 document mode.
- // The reason behind this is that console.log has type "object" in IE8...
- try {
- hasApply = !!logFn.apply;
- } catch (e) { /* empty */ }
-
- if (hasApply) {
- return function() {
- var args = [];
- forEach(arguments, function(arg) {
- args.push(formatError(arg));
- });
- return logFn.apply(console, args);
- };
- }
-
- // we are IE which either doesn't have window.console => this is noop and we do nothing,
- // or we are IE where console.log doesn't have apply so we log at least first 2 args
- return function(arg1, arg2) {
- logFn(arg1, arg2 == null ? '' : arg2);
- };
- }
- }];
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables likes document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-var $parseMinErr = minErr('$parse');
-
-var ARRAY_CTOR = [].constructor;
-var BOOLEAN_CTOR = (false).constructor;
-var FUNCTION_CTOR = Function.constructor;
-var NUMBER_CTOR = (0).constructor;
-var OBJECT_CTOR = {}.constructor;
-var STRING_CTOR = ''.constructor;
-var ARRAY_CTOR_PROTO = ARRAY_CTOR.prototype;
-var BOOLEAN_CTOR_PROTO = BOOLEAN_CTOR.prototype;
-var FUNCTION_CTOR_PROTO = FUNCTION_CTOR.prototype;
-var NUMBER_CTOR_PROTO = NUMBER_CTOR.prototype;
-var OBJECT_CTOR_PROTO = OBJECT_CTOR.prototype;
-var STRING_CTOR_PROTO = STRING_CTOR.prototype;
-
-var CALL = FUNCTION_CTOR_PROTO.call;
-var APPLY = FUNCTION_CTOR_PROTO.apply;
-var BIND = FUNCTION_CTOR_PROTO.bind;
-
-var objectValueOf = OBJECT_CTOR_PROTO.valueOf;
-
-// Sandboxing Angular Expressions
-// ------------------------------
-// Angular expressions are generally considered safe because these expressions only have direct
-// access to `$scope` and locals. However, one can obtain the ability to execute arbitrary JS code by
-// obtaining a reference to native JS functions such as the Function constructor.
-//
-// As an example, consider the following Angular expression:
-//
-// {}.toString.constructor('alert("evil JS code")')
-//
-// This sandboxing technique is not perfect and doesn't aim to be. The goal is to prevent exploits
-// against the expression language, but not to prevent exploits that were enabled by exposing
-// sensitive JavaScript or browser APIs on Scope. Exposing such objects on a Scope is never a good
-// practice and therefore we are not even trying to protect against interaction with an object
-// explicitly exposed in this way.
-//
-// In general, it is not possible to access a Window object from an angular expression unless a
-// window or some DOM object that has a reference to window is published onto a Scope.
-// Similarly we prevent invocations of function known to be dangerous, as well as assignments to
-// native objects.
-//
-// See https://docs.angularjs.org/guide/security
-
-
-function ensureSafeMemberName(name, fullExpression) {
- if (name === '__defineGetter__' || name === '__defineSetter__'
- || name === '__lookupGetter__' || name === '__lookupSetter__'
- || name === '__proto__') {
- throw $parseMinErr('isecfld',
- 'Attempting to access a disallowed field in Angular expressions! '
- + 'Expression: {0}', fullExpression);
- }
- return name;
-}
-
-function getStringValue(name) {
- // Property names must be strings. This means that non-string objects cannot be used
- // as keys in an object. Any non-string object, including a number, is typecasted
- // into a string via the toString method.
- // -- MDN, https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Property_accessors#Property_names
- //
- // So, to ensure that we are checking the same `name` that JavaScript would use, we cast it
- // to a string. It's not always possible. If `name` is an object and its `toString` method is
- // 'broken' (doesn't return a string, isn't a function, etc.), an error will be thrown:
- //
- // TypeError: Cannot convert object to primitive value
- //
- // For performance reasons, we don't catch this error here and allow it to propagate up the call
- // stack. Note that you'll get the same error in JavaScript if you try to access a property using
- // such a 'broken' object as a key.
- return name + '';
-}
-
-function ensureSafeObject(obj, fullExpression) {
- // nifty check if obj is Function that is fast and works across iframes and other contexts
- if (obj) {
- if (obj.constructor === obj) {
- throw $parseMinErr('isecfn',
- 'Referencing Function in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- } else if (// isWindow(obj)
- obj.window === obj) {
- throw $parseMinErr('isecwindow',
- 'Referencing the Window in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- } else if (// isElement(obj)
- obj.children && (obj.nodeName || (obj.prop && obj.attr && obj.find))) {
- throw $parseMinErr('isecdom',
- 'Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- } else if (// block Object so that we can't get hold of dangerous Object.* methods
- obj === Object) {
- throw $parseMinErr('isecobj',
- 'Referencing Object in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- }
- }
- return obj;
-}
-
-function ensureSafeFunction(obj, fullExpression) {
- if (obj) {
- if (obj.constructor === obj) {
- throw $parseMinErr('isecfn',
- 'Referencing Function in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- } else if (obj === CALL || obj === APPLY || obj === BIND) {
- throw $parseMinErr('isecff',
- 'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- }
- }
-}
-
-function ensureSafeAssignContext(obj, fullExpression) {
- if (obj) {
- if (obj === ARRAY_CTOR ||
- obj === BOOLEAN_CTOR ||
- obj === FUNCTION_CTOR ||
- obj === NUMBER_CTOR ||
- obj === OBJECT_CTOR ||
- obj === STRING_CTOR ||
- obj === ARRAY_CTOR_PROTO ||
- obj === BOOLEAN_CTOR_PROTO ||
- obj === FUNCTION_CTOR_PROTO ||
- obj === NUMBER_CTOR_PROTO ||
- obj === OBJECT_CTOR_PROTO ||
- obj === STRING_CTOR_PROTO) {
- throw $parseMinErr('isecaf',
- 'Assigning to a constructor or its prototype is disallowed! Expression: {0}',
- fullExpression);
- }
- }
-}
-
-var OPERATORS = createMap();
-forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; });
-var ESCAPE = {'n':'\n', 'f':'\f', 'r':'\r', 't':'\t', 'v':'\v', '\'':'\'', '"':'"'};
-
-
-/////////////////////////////////////////
-
-
-/**
- * @constructor
- */
-var Lexer = function Lexer(options) {
- this.options = options;
-};
-
-Lexer.prototype = {
- constructor: Lexer,
-
- lex: function(text) {
- this.text = text;
- this.index = 0;
- this.tokens = [];
-
- while (this.index < this.text.length) {
- var ch = this.text.charAt(this.index);
- if (ch === '"' || ch === '\'') {
- this.readString(ch);
- } else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) {
- this.readNumber();
- } else if (this.isIdentifierStart(this.peekMultichar())) {
- this.readIdent();
- } else if (this.is(ch, '(){}[].,;:?')) {
- this.tokens.push({index: this.index, text: ch});
- this.index++;
- } else if (this.isWhitespace(ch)) {
- this.index++;
- } else {
- var ch2 = ch + this.peek();
- var ch3 = ch2 + this.peek(2);
- var op1 = OPERATORS[ch];
- var op2 = OPERATORS[ch2];
- var op3 = OPERATORS[ch3];
- if (op1 || op2 || op3) {
- var token = op3 ? ch3 : (op2 ? ch2 : ch);
- this.tokens.push({index: this.index, text: token, operator: true});
- this.index += token.length;
- } else {
- this.throwError('Unexpected next character ', this.index, this.index + 1);
- }
- }
- }
- return this.tokens;
- },
-
- is: function(ch, chars) {
- return chars.indexOf(ch) !== -1;
- },
-
- peek: function(i) {
- var num = i || 1;
- return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false;
- },
-
- isNumber: function(ch) {
- return ('0' <= ch && ch <= '9') && typeof ch === 'string';
- },
-
- isWhitespace: function(ch) {
- // IE treats non-breaking space as \u00A0
- return (ch === ' ' || ch === '\r' || ch === '\t' ||
- ch === '\n' || ch === '\v' || ch === '\u00A0');
- },
-
- isIdentifierStart: function(ch) {
- return this.options.isIdentifierStart ?
- this.options.isIdentifierStart(ch, this.codePointAt(ch)) :
- this.isValidIdentifierStart(ch);
- },
-
- isValidIdentifierStart: function(ch) {
- return ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- '_' === ch || ch === '$');
- },
-
- isIdentifierContinue: function(ch) {
- return this.options.isIdentifierContinue ?
- this.options.isIdentifierContinue(ch, this.codePointAt(ch)) :
- this.isValidIdentifierContinue(ch);
- },
-
- isValidIdentifierContinue: function(ch, cp) {
- return this.isValidIdentifierStart(ch, cp) || this.isNumber(ch);
- },
-
- codePointAt: function(ch) {
- if (ch.length === 1) return ch.charCodeAt(0);
- // eslint-disable-next-line no-bitwise
- return (ch.charCodeAt(0) << 10) + ch.charCodeAt(1) - 0x35FDC00;
- },
-
- peekMultichar: function() {
- var ch = this.text.charAt(this.index);
- var peek = this.peek();
- if (!peek) {
- return ch;
- }
- var cp1 = ch.charCodeAt(0);
- var cp2 = peek.charCodeAt(0);
- if (cp1 >= 0xD800 && cp1 <= 0xDBFF && cp2 >= 0xDC00 && cp2 <= 0xDFFF) {
- return ch + peek;
- }
- return ch;
- },
-
- isExpOperator: function(ch) {
- return (ch === '-' || ch === '+' || this.isNumber(ch));
- },
-
- throwError: function(error, start, end) {
- end = end || this.index;
- var colStr = (isDefined(start)
- ? 's ' + start + '-' + this.index + ' [' + this.text.substring(start, end) + ']'
- : ' ' + end);
- throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].',
- error, colStr, this.text);
- },
-
- readNumber: function() {
- var number = '';
- var start = this.index;
- while (this.index < this.text.length) {
- var ch = lowercase(this.text.charAt(this.index));
- if (ch === '.' || this.isNumber(ch)) {
- number += ch;
- } else {
- var peekCh = this.peek();
- if (ch === 'e' && this.isExpOperator(peekCh)) {
- number += ch;
- } else if (this.isExpOperator(ch) &&
- peekCh && this.isNumber(peekCh) &&
- number.charAt(number.length - 1) === 'e') {
- number += ch;
- } else if (this.isExpOperator(ch) &&
- (!peekCh || !this.isNumber(peekCh)) &&
- number.charAt(number.length - 1) === 'e') {
- this.throwError('Invalid exponent');
- } else {
- break;
- }
- }
- this.index++;
- }
- this.tokens.push({
- index: start,
- text: number,
- constant: true,
- value: Number(number)
- });
- },
-
- readIdent: function() {
- var start = this.index;
- this.index += this.peekMultichar().length;
- while (this.index < this.text.length) {
- var ch = this.peekMultichar();
- if (!this.isIdentifierContinue(ch)) {
- break;
- }
- this.index += ch.length;
- }
- this.tokens.push({
- index: start,
- text: this.text.slice(start, this.index),
- identifier: true
- });
- },
-
- readString: function(quote) {
- var start = this.index;
- this.index++;
- var string = '';
- var rawString = quote;
- var escape = false;
- while (this.index < this.text.length) {
- var ch = this.text.charAt(this.index);
- rawString += ch;
- if (escape) {
- if (ch === 'u') {
- var hex = this.text.substring(this.index + 1, this.index + 5);
- if (!hex.match(/[\da-f]{4}/i)) {
- this.throwError('Invalid unicode escape [\\u' + hex + ']');
- }
- this.index += 4;
- string += String.fromCharCode(parseInt(hex, 16));
- } else {
- var rep = ESCAPE[ch];
- string = string + (rep || ch);
- }
- escape = false;
- } else if (ch === '\\') {
- escape = true;
- } else if (ch === quote) {
- this.index++;
- this.tokens.push({
- index: start,
- text: rawString,
- constant: true,
- value: string
- });
- return;
- } else {
- string += ch;
- }
- this.index++;
- }
- this.throwError('Unterminated quote', start);
- }
-};
-
-var AST = function AST(lexer, options) {
- this.lexer = lexer;
- this.options = options;
-};
-
-AST.Program = 'Program';
-AST.ExpressionStatement = 'ExpressionStatement';
-AST.AssignmentExpression = 'AssignmentExpression';
-AST.ConditionalExpression = 'ConditionalExpression';
-AST.LogicalExpression = 'LogicalExpression';
-AST.BinaryExpression = 'BinaryExpression';
-AST.UnaryExpression = 'UnaryExpression';
-AST.CallExpression = 'CallExpression';
-AST.MemberExpression = 'MemberExpression';
-AST.Identifier = 'Identifier';
-AST.Literal = 'Literal';
-AST.ArrayExpression = 'ArrayExpression';
-AST.Property = 'Property';
-AST.ObjectExpression = 'ObjectExpression';
-AST.ThisExpression = 'ThisExpression';
-AST.LocalsExpression = 'LocalsExpression';
-
-// Internal use only
-AST.NGValueParameter = 'NGValueParameter';
-
-AST.prototype = {
- ast: function(text) {
- this.text = text;
- this.tokens = this.lexer.lex(text);
-
- var value = this.program();
-
- if (this.tokens.length !== 0) {
- this.throwError('is an unexpected token', this.tokens[0]);
- }
-
- return value;
- },
-
- program: function() {
- var body = [];
- while (true) {
- if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']'))
- body.push(this.expressionStatement());
- if (!this.expect(';')) {
- return { type: AST.Program, body: body};
- }
- }
- },
-
- expressionStatement: function() {
- return { type: AST.ExpressionStatement, expression: this.filterChain() };
- },
-
- filterChain: function() {
- var left = this.expression();
- while (this.expect('|')) {
- left = this.filter(left);
- }
- return left;
- },
-
- expression: function() {
- return this.assignment();
- },
-
- assignment: function() {
- var result = this.ternary();
- if (this.expect('=')) {
- if (!isAssignable(result)) {
- throw $parseMinErr('lval', 'Trying to assign a value to a non l-value');
- }
-
- result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='};
- }
- return result;
- },
-
- ternary: function() {
- var test = this.logicalOR();
- var alternate;
- var consequent;
- if (this.expect('?')) {
- alternate = this.expression();
- if (this.consume(':')) {
- consequent = this.expression();
- return { type: AST.ConditionalExpression, test: test, alternate: alternate, consequent: consequent};
- }
- }
- return test;
- },
-
- logicalOR: function() {
- var left = this.logicalAND();
- while (this.expect('||')) {
- left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() };
- }
- return left;
- },
-
- logicalAND: function() {
- var left = this.equality();
- while (this.expect('&&')) {
- left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()};
- }
- return left;
- },
-
- equality: function() {
- var left = this.relational();
- var token;
- while ((token = this.expect('==','!=','===','!=='))) {
- left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() };
- }
- return left;
- },
-
- relational: function() {
- var left = this.additive();
- var token;
- while ((token = this.expect('<', '>', '<=', '>='))) {
- left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() };
- }
- return left;
- },
-
- additive: function() {
- var left = this.multiplicative();
- var token;
- while ((token = this.expect('+','-'))) {
- left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() };
- }
- return left;
- },
-
- multiplicative: function() {
- var left = this.unary();
- var token;
- while ((token = this.expect('*','/','%'))) {
- left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.unary() };
- }
- return left;
- },
-
- unary: function() {
- var token;
- if ((token = this.expect('+', '-', '!'))) {
- return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() };
- } else {
- return this.primary();
- }
- },
-
- primary: function() {
- var primary;
- if (this.expect('(')) {
- primary = this.filterChain();
- this.consume(')');
- } else if (this.expect('[')) {
- primary = this.arrayDeclaration();
- } else if (this.expect('{')) {
- primary = this.object();
- } else if (this.selfReferential.hasOwnProperty(this.peek().text)) {
- primary = copy(this.selfReferential[this.consume().text]);
- } else if (this.options.literals.hasOwnProperty(this.peek().text)) {
- primary = { type: AST.Literal, value: this.options.literals[this.consume().text]};
- } else if (this.peek().identifier) {
- primary = this.identifier();
- } else if (this.peek().constant) {
- primary = this.constant();
- } else {
- this.throwError('not a primary expression', this.peek());
- }
-
- var next;
- while ((next = this.expect('(', '[', '.'))) {
- if (next.text === '(') {
- primary = {type: AST.CallExpression, callee: primary, arguments: this.parseArguments() };
- this.consume(')');
- } else if (next.text === '[') {
- primary = { type: AST.MemberExpression, object: primary, property: this.expression(), computed: true };
- this.consume(']');
- } else if (next.text === '.') {
- primary = { type: AST.MemberExpression, object: primary, property: this.identifier(), computed: false };
- } else {
- this.throwError('IMPOSSIBLE');
- }
- }
- return primary;
- },
-
- filter: function(baseExpression) {
- var args = [baseExpression];
- var result = {type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true};
-
- while (this.expect(':')) {
- args.push(this.expression());
- }
-
- return result;
- },
-
- parseArguments: function() {
- var args = [];
- if (this.peekToken().text !== ')') {
- do {
- args.push(this.filterChain());
- } while (this.expect(','));
- }
- return args;
- },
-
- identifier: function() {
- var token = this.consume();
- if (!token.identifier) {
- this.throwError('is not a valid identifier', token);
- }
- return { type: AST.Identifier, name: token.text };
- },
-
- constant: function() {
- // TODO check that it is a constant
- return { type: AST.Literal, value: this.consume().value };
- },
-
- arrayDeclaration: function() {
- var elements = [];
- if (this.peekToken().text !== ']') {
- do {
- if (this.peek(']')) {
- // Support trailing commas per ES5.1.
- break;
- }
- elements.push(this.expression());
- } while (this.expect(','));
- }
- this.consume(']');
-
- return { type: AST.ArrayExpression, elements: elements };
- },
-
- object: function() {
- var properties = [], property;
- if (this.peekToken().text !== '}') {
- do {
- if (this.peek('}')) {
- // Support trailing commas per ES5.1.
- break;
- }
- property = {type: AST.Property, kind: 'init'};
- if (this.peek().constant) {
- property.key = this.constant();
- property.computed = false;
- this.consume(':');
- property.value = this.expression();
- } else if (this.peek().identifier) {
- property.key = this.identifier();
- property.computed = false;
- if (this.peek(':')) {
- this.consume(':');
- property.value = this.expression();
- } else {
- property.value = property.key;
- }
- } else if (this.peek('[')) {
- this.consume('[');
- property.key = this.expression();
- this.consume(']');
- property.computed = true;
- this.consume(':');
- property.value = this.expression();
- } else {
- this.throwError('invalid key', this.peek());
- }
- properties.push(property);
- } while (this.expect(','));
- }
- this.consume('}');
-
- return {type: AST.ObjectExpression, properties: properties };
- },
-
- throwError: function(msg, token) {
- throw $parseMinErr('syntax',
- 'Syntax Error: Token \'{0}\' {1} at column {2} of the expression [{3}] starting at [{4}].',
- token.text, msg, (token.index + 1), this.text, this.text.substring(token.index));
- },
-
- consume: function(e1) {
- if (this.tokens.length === 0) {
- throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);
- }
-
- var token = this.expect(e1);
- if (!token) {
- this.throwError('is unexpected, expecting [' + e1 + ']', this.peek());
- }
- return token;
- },
-
- peekToken: function() {
- if (this.tokens.length === 0) {
- throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);
- }
- return this.tokens[0];
- },
-
- peek: function(e1, e2, e3, e4) {
- return this.peekAhead(0, e1, e2, e3, e4);
- },
-
- peekAhead: function(i, e1, e2, e3, e4) {
- if (this.tokens.length > i) {
- var token = this.tokens[i];
- var t = token.text;
- if (t === e1 || t === e2 || t === e3 || t === e4 ||
- (!e1 && !e2 && !e3 && !e4)) {
- return token;
- }
- }
- return false;
- },
-
- expect: function(e1, e2, e3, e4) {
- var token = this.peek(e1, e2, e3, e4);
- if (token) {
- this.tokens.shift();
- return token;
- }
- return false;
- },
-
- selfReferential: {
- 'this': {type: AST.ThisExpression },
- '$locals': {type: AST.LocalsExpression }
- }
-};
-
-function ifDefined(v, d) {
- return typeof v !== 'undefined' ? v : d;
-}
-
-function plusFn(l, r) {
- if (typeof l === 'undefined') return r;
- if (typeof r === 'undefined') return l;
- return l + r;
-}
-
-function isStateless($filter, filterName) {
- var fn = $filter(filterName);
- return !fn.$stateful;
-}
-
-function findConstantAndWatchExpressions(ast, $filter) {
- var allConstants;
- var argsToWatch;
- var isStatelessFilter;
- switch (ast.type) {
- case AST.Program:
- allConstants = true;
- forEach(ast.body, function(expr) {
- findConstantAndWatchExpressions(expr.expression, $filter);
- allConstants = allConstants && expr.expression.constant;
- });
- ast.constant = allConstants;
- break;
- case AST.Literal:
- ast.constant = true;
- ast.toWatch = [];
- break;
- case AST.UnaryExpression:
- findConstantAndWatchExpressions(ast.argument, $filter);
- ast.constant = ast.argument.constant;
- ast.toWatch = ast.argument.toWatch;
- break;
- case AST.BinaryExpression:
- findConstantAndWatchExpressions(ast.left, $filter);
- findConstantAndWatchExpressions(ast.right, $filter);
- ast.constant = ast.left.constant && ast.right.constant;
- ast.toWatch = ast.left.toWatch.concat(ast.right.toWatch);
- break;
- case AST.LogicalExpression:
- findConstantAndWatchExpressions(ast.left, $filter);
- findConstantAndWatchExpressions(ast.right, $filter);
- ast.constant = ast.left.constant && ast.right.constant;
- ast.toWatch = ast.constant ? [] : [ast];
- break;
- case AST.ConditionalExpression:
- findConstantAndWatchExpressions(ast.test, $filter);
- findConstantAndWatchExpressions(ast.alternate, $filter);
- findConstantAndWatchExpressions(ast.consequent, $filter);
- ast.constant = ast.test.constant && ast.alternate.constant && ast.consequent.constant;
- ast.toWatch = ast.constant ? [] : [ast];
- break;
- case AST.Identifier:
- ast.constant = false;
- ast.toWatch = [ast];
- break;
- case AST.MemberExpression:
- findConstantAndWatchExpressions(ast.object, $filter);
- if (ast.computed) {
- findConstantAndWatchExpressions(ast.property, $filter);
- }
- ast.constant = ast.object.constant && (!ast.computed || ast.property.constant);
- ast.toWatch = [ast];
- break;
- case AST.CallExpression:
- isStatelessFilter = ast.filter ? isStateless($filter, ast.callee.name) : false;
- allConstants = isStatelessFilter;
- argsToWatch = [];
- forEach(ast.arguments, function(expr) {
- findConstantAndWatchExpressions(expr, $filter);
- allConstants = allConstants && expr.constant;
- if (!expr.constant) {
- argsToWatch.push.apply(argsToWatch, expr.toWatch);
- }
- });
- ast.constant = allConstants;
- ast.toWatch = isStatelessFilter ? argsToWatch : [ast];
- break;
- case AST.AssignmentExpression:
- findConstantAndWatchExpressions(ast.left, $filter);
- findConstantAndWatchExpressions(ast.right, $filter);
- ast.constant = ast.left.constant && ast.right.constant;
- ast.toWatch = [ast];
- break;
- case AST.ArrayExpression:
- allConstants = true;
- argsToWatch = [];
- forEach(ast.elements, function(expr) {
- findConstantAndWatchExpressions(expr, $filter);
- allConstants = allConstants && expr.constant;
- if (!expr.constant) {
- argsToWatch.push.apply(argsToWatch, expr.toWatch);
- }
- });
- ast.constant = allConstants;
- ast.toWatch = argsToWatch;
- break;
- case AST.ObjectExpression:
- allConstants = true;
- argsToWatch = [];
- forEach(ast.properties, function(property) {
- findConstantAndWatchExpressions(property.value, $filter);
- allConstants = allConstants && property.value.constant && !property.computed;
- if (!property.value.constant) {
- argsToWatch.push.apply(argsToWatch, property.value.toWatch);
- }
- });
- ast.constant = allConstants;
- ast.toWatch = argsToWatch;
- break;
- case AST.ThisExpression:
- ast.constant = false;
- ast.toWatch = [];
- break;
- case AST.LocalsExpression:
- ast.constant = false;
- ast.toWatch = [];
- break;
- }
-}
-
-function getInputs(body) {
- if (body.length !== 1) return;
- var lastExpression = body[0].expression;
- var candidate = lastExpression.toWatch;
- if (candidate.length !== 1) return candidate;
- return candidate[0] !== lastExpression ? candidate : undefined;
-}
-
-function isAssignable(ast) {
- return ast.type === AST.Identifier || ast.type === AST.MemberExpression;
-}
-
-function assignableAST(ast) {
- if (ast.body.length === 1 && isAssignable(ast.body[0].expression)) {
- return {type: AST.AssignmentExpression, left: ast.body[0].expression, right: {type: AST.NGValueParameter}, operator: '='};
- }
-}
-
-function isLiteral(ast) {
- return ast.body.length === 0 ||
- ast.body.length === 1 && (
- ast.body[0].expression.type === AST.Literal ||
- ast.body[0].expression.type === AST.ArrayExpression ||
- ast.body[0].expression.type === AST.ObjectExpression);
-}
-
-function isConstant(ast) {
- return ast.constant;
-}
-
-function ASTCompiler(astBuilder, $filter) {
- this.astBuilder = astBuilder;
- this.$filter = $filter;
-}
-
-ASTCompiler.prototype = {
- compile: function(expression, expensiveChecks) {
- var self = this;
- var ast = this.astBuilder.ast(expression);
- this.state = {
- nextId: 0,
- filters: {},
- expensiveChecks: expensiveChecks,
- fn: {vars: [], body: [], own: {}},
- assign: {vars: [], body: [], own: {}},
- inputs: []
- };
- findConstantAndWatchExpressions(ast, self.$filter);
- var extra = '';
- var assignable;
- this.stage = 'assign';
- if ((assignable = assignableAST(ast))) {
- this.state.computing = 'assign';
- var result = this.nextId();
- this.recurse(assignable, result);
- this.return_(result);
- extra = 'fn.assign=' + this.generateFunction('assign', 's,v,l');
- }
- var toWatch = getInputs(ast.body);
- self.stage = 'inputs';
- forEach(toWatch, function(watch, key) {
- var fnKey = 'fn' + key;
- self.state[fnKey] = {vars: [], body: [], own: {}};
- self.state.computing = fnKey;
- var intoId = self.nextId();
- self.recurse(watch, intoId);
- self.return_(intoId);
- self.state.inputs.push(fnKey);
- watch.watchId = key;
- });
- this.state.computing = 'fn';
- this.stage = 'main';
- this.recurse(ast);
- var fnString =
- // The build and minification steps remove the string "use strict" from the code, but this is done using a regex.
- // This is a workaround for this until we do a better job at only removing the prefix only when we should.
- '"' + this.USE + ' ' + this.STRICT + '";\n' +
- this.filterPrefix() +
- 'var fn=' + this.generateFunction('fn', 's,l,a,i') +
- extra +
- this.watchFns() +
- 'return fn;';
-
- // eslint-disable-next-line no-new-func
- var fn = (new Function('$filter',
- 'ensureSafeMemberName',
- 'ensureSafeObject',
- 'ensureSafeFunction',
- 'getStringValue',
- 'ensureSafeAssignContext',
- 'ifDefined',
- 'plus',
- 'text',
- fnString))(
- this.$filter,
- ensureSafeMemberName,
- ensureSafeObject,
- ensureSafeFunction,
- getStringValue,
- ensureSafeAssignContext,
- ifDefined,
- plusFn,
- expression);
- this.state = this.stage = undefined;
- fn.literal = isLiteral(ast);
- fn.constant = isConstant(ast);
- return fn;
- },
-
- USE: 'use',
-
- STRICT: 'strict',
-
- watchFns: function() {
- var result = [];
- var fns = this.state.inputs;
- var self = this;
- forEach(fns, function(name) {
- result.push('var ' + name + '=' + self.generateFunction(name, 's'));
- });
- if (fns.length) {
- result.push('fn.inputs=[' + fns.join(',') + '];');
- }
- return result.join('');
- },
-
- generateFunction: function(name, params) {
- return 'function(' + params + '){' +
- this.varsPrefix(name) +
- this.body(name) +
- '};';
- },
-
- filterPrefix: function() {
- var parts = [];
- var self = this;
- forEach(this.state.filters, function(id, filter) {
- parts.push(id + '=$filter(' + self.escape(filter) + ')');
- });
- if (parts.length) return 'var ' + parts.join(',') + ';';
- return '';
- },
-
- varsPrefix: function(section) {
- return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : '';
- },
-
- body: function(section) {
- return this.state[section].body.join('');
- },
-
- recurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {
- var left, right, self = this, args, expression, computed;
- recursionFn = recursionFn || noop;
- if (!skipWatchIdCheck && isDefined(ast.watchId)) {
- intoId = intoId || this.nextId();
- this.if_('i',
- this.lazyAssign(intoId, this.computedMember('i', ast.watchId)),
- this.lazyRecurse(ast, intoId, nameId, recursionFn, create, true)
- );
- return;
- }
- switch (ast.type) {
- case AST.Program:
- forEach(ast.body, function(expression, pos) {
- self.recurse(expression.expression, undefined, undefined, function(expr) { right = expr; });
- if (pos !== ast.body.length - 1) {
- self.current().body.push(right, ';');
- } else {
- self.return_(right);
- }
- });
- break;
- case AST.Literal:
- expression = this.escape(ast.value);
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.UnaryExpression:
- this.recurse(ast.argument, undefined, undefined, function(expr) { right = expr; });
- expression = ast.operator + '(' + this.ifDefined(right, 0) + ')';
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.BinaryExpression:
- this.recurse(ast.left, undefined, undefined, function(expr) { left = expr; });
- this.recurse(ast.right, undefined, undefined, function(expr) { right = expr; });
- if (ast.operator === '+') {
- expression = this.plus(left, right);
- } else if (ast.operator === '-') {
- expression = this.ifDefined(left, 0) + ast.operator + this.ifDefined(right, 0);
- } else {
- expression = '(' + left + ')' + ast.operator + '(' + right + ')';
- }
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.LogicalExpression:
- intoId = intoId || this.nextId();
- self.recurse(ast.left, intoId);
- self.if_(ast.operator === '&&' ? intoId : self.not(intoId), self.lazyRecurse(ast.right, intoId));
- recursionFn(intoId);
- break;
- case AST.ConditionalExpression:
- intoId = intoId || this.nextId();
- self.recurse(ast.test, intoId);
- self.if_(intoId, self.lazyRecurse(ast.alternate, intoId), self.lazyRecurse(ast.consequent, intoId));
- recursionFn(intoId);
- break;
- case AST.Identifier:
- intoId = intoId || this.nextId();
- if (nameId) {
- nameId.context = self.stage === 'inputs' ? 's' : this.assign(this.nextId(), this.getHasOwnProperty('l', ast.name) + '?l:s');
- nameId.computed = false;
- nameId.name = ast.name;
- }
- ensureSafeMemberName(ast.name);
- self.if_(self.stage === 'inputs' || self.not(self.getHasOwnProperty('l', ast.name)),
- function() {
- self.if_(self.stage === 'inputs' || 's', function() {
- if (create && create !== 1) {
- self.if_(
- self.not(self.nonComputedMember('s', ast.name)),
- self.lazyAssign(self.nonComputedMember('s', ast.name), '{}'));
- }
- self.assign(intoId, self.nonComputedMember('s', ast.name));
- });
- }, intoId && self.lazyAssign(intoId, self.nonComputedMember('l', ast.name))
- );
- if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.name)) {
- self.addEnsureSafeObject(intoId);
- }
- recursionFn(intoId);
- break;
- case AST.MemberExpression:
- left = nameId && (nameId.context = this.nextId()) || this.nextId();
- intoId = intoId || this.nextId();
- self.recurse(ast.object, left, undefined, function() {
- self.if_(self.notNull(left), function() {
- if (create && create !== 1) {
- self.addEnsureSafeAssignContext(left);
- }
- if (ast.computed) {
- right = self.nextId();
- self.recurse(ast.property, right);
- self.getStringValue(right);
- self.addEnsureSafeMemberName(right);
- if (create && create !== 1) {
- self.if_(self.not(self.computedMember(left, right)), self.lazyAssign(self.computedMember(left, right), '{}'));
- }
- expression = self.ensureSafeObject(self.computedMember(left, right));
- self.assign(intoId, expression);
- if (nameId) {
- nameId.computed = true;
- nameId.name = right;
- }
- } else {
- ensureSafeMemberName(ast.property.name);
- if (create && create !== 1) {
- self.if_(self.not(self.nonComputedMember(left, ast.property.name)), self.lazyAssign(self.nonComputedMember(left, ast.property.name), '{}'));
- }
- expression = self.nonComputedMember(left, ast.property.name);
- if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.property.name)) {
- expression = self.ensureSafeObject(expression);
- }
- self.assign(intoId, expression);
- if (nameId) {
- nameId.computed = false;
- nameId.name = ast.property.name;
- }
- }
- }, function() {
- self.assign(intoId, 'undefined');
- });
- recursionFn(intoId);
- }, !!create);
- break;
- case AST.CallExpression:
- intoId = intoId || this.nextId();
- if (ast.filter) {
- right = self.filter(ast.callee.name);
- args = [];
- forEach(ast.arguments, function(expr) {
- var argument = self.nextId();
- self.recurse(expr, argument);
- args.push(argument);
- });
- expression = right + '(' + args.join(',') + ')';
- self.assign(intoId, expression);
- recursionFn(intoId);
- } else {
- right = self.nextId();
- left = {};
- args = [];
- self.recurse(ast.callee, right, left, function() {
- self.if_(self.notNull(right), function() {
- self.addEnsureSafeFunction(right);
- forEach(ast.arguments, function(expr) {
- self.recurse(expr, self.nextId(), undefined, function(argument) {
- args.push(self.ensureSafeObject(argument));
- });
- });
- if (left.name) {
- if (!self.state.expensiveChecks) {
- self.addEnsureSafeObject(left.context);
- }
- expression = self.member(left.context, left.name, left.computed) + '(' + args.join(',') + ')';
- } else {
- expression = right + '(' + args.join(',') + ')';
- }
- expression = self.ensureSafeObject(expression);
- self.assign(intoId, expression);
- }, function() {
- self.assign(intoId, 'undefined');
- });
- recursionFn(intoId);
- });
- }
- break;
- case AST.AssignmentExpression:
- right = this.nextId();
- left = {};
- this.recurse(ast.left, undefined, left, function() {
- self.if_(self.notNull(left.context), function() {
- self.recurse(ast.right, right);
- self.addEnsureSafeObject(self.member(left.context, left.name, left.computed));
- self.addEnsureSafeAssignContext(left.context);
- expression = self.member(left.context, left.name, left.computed) + ast.operator + right;
- self.assign(intoId, expression);
- recursionFn(intoId || expression);
- });
- }, 1);
- break;
- case AST.ArrayExpression:
- args = [];
- forEach(ast.elements, function(expr) {
- self.recurse(expr, self.nextId(), undefined, function(argument) {
- args.push(argument);
- });
- });
- expression = '[' + args.join(',') + ']';
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.ObjectExpression:
- args = [];
- computed = false;
- forEach(ast.properties, function(property) {
- if (property.computed) {
- computed = true;
- }
- });
- if (computed) {
- intoId = intoId || this.nextId();
- this.assign(intoId, '{}');
- forEach(ast.properties, function(property) {
- if (property.computed) {
- left = self.nextId();
- self.recurse(property.key, left);
- } else {
- left = property.key.type === AST.Identifier ?
- property.key.name :
- ('' + property.key.value);
- }
- right = self.nextId();
- self.recurse(property.value, right);
- self.assign(self.member(intoId, left, property.computed), right);
- });
- } else {
- forEach(ast.properties, function(property) {
- self.recurse(property.value, ast.constant ? undefined : self.nextId(), undefined, function(expr) {
- args.push(self.escape(
- property.key.type === AST.Identifier ? property.key.name :
- ('' + property.key.value)) +
- ':' + expr);
- });
- });
- expression = '{' + args.join(',') + '}';
- this.assign(intoId, expression);
- }
- recursionFn(intoId || expression);
- break;
- case AST.ThisExpression:
- this.assign(intoId, 's');
- recursionFn('s');
- break;
- case AST.LocalsExpression:
- this.assign(intoId, 'l');
- recursionFn('l');
- break;
- case AST.NGValueParameter:
- this.assign(intoId, 'v');
- recursionFn('v');
- break;
- }
- },
-
- getHasOwnProperty: function(element, property) {
- var key = element + '.' + property;
- var own = this.current().own;
- if (!own.hasOwnProperty(key)) {
- own[key] = this.nextId(false, element + '&&(' + this.escape(property) + ' in ' + element + ')');
- }
- return own[key];
- },
-
- assign: function(id, value) {
- if (!id) return;
- this.current().body.push(id, '=', value, ';');
- return id;
- },
-
- filter: function(filterName) {
- if (!this.state.filters.hasOwnProperty(filterName)) {
- this.state.filters[filterName] = this.nextId(true);
- }
- return this.state.filters[filterName];
- },
-
- ifDefined: function(id, defaultValue) {
- return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')';
- },
-
- plus: function(left, right) {
- return 'plus(' + left + ',' + right + ')';
- },
-
- return_: function(id) {
- this.current().body.push('return ', id, ';');
- },
-
- if_: function(test, alternate, consequent) {
- if (test === true) {
- alternate();
- } else {
- var body = this.current().body;
- body.push('if(', test, '){');
- alternate();
- body.push('}');
- if (consequent) {
- body.push('else{');
- consequent();
- body.push('}');
- }
- }
- },
-
- not: function(expression) {
- return '!(' + expression + ')';
- },
-
- notNull: function(expression) {
- return expression + '!=null';
- },
-
- nonComputedMember: function(left, right) {
- var SAFE_IDENTIFIER = /^[$_a-zA-Z][$_a-zA-Z0-9]*$/;
- var UNSAFE_CHARACTERS = /[^$_a-zA-Z0-9]/g;
- if (SAFE_IDENTIFIER.test(right)) {
- return left + '.' + right;
- } else {
- return left + '["' + right.replace(UNSAFE_CHARACTERS, this.stringEscapeFn) + '"]';
- }
- },
-
- computedMember: function(left, right) {
- return left + '[' + right + ']';
- },
-
- member: function(left, right, computed) {
- if (computed) return this.computedMember(left, right);
- return this.nonComputedMember(left, right);
- },
-
- addEnsureSafeObject: function(item) {
- this.current().body.push(this.ensureSafeObject(item), ';');
- },
-
- addEnsureSafeMemberName: function(item) {
- this.current().body.push(this.ensureSafeMemberName(item), ';');
- },
-
- addEnsureSafeFunction: function(item) {
- this.current().body.push(this.ensureSafeFunction(item), ';');
- },
-
- addEnsureSafeAssignContext: function(item) {
- this.current().body.push(this.ensureSafeAssignContext(item), ';');
- },
-
- ensureSafeObject: function(item) {
- return 'ensureSafeObject(' + item + ',text)';
- },
-
- ensureSafeMemberName: function(item) {
- return 'ensureSafeMemberName(' + item + ',text)';
- },
-
- ensureSafeFunction: function(item) {
- return 'ensureSafeFunction(' + item + ',text)';
- },
-
- getStringValue: function(item) {
- this.assign(item, 'getStringValue(' + item + ')');
- },
-
- ensureSafeAssignContext: function(item) {
- return 'ensureSafeAssignContext(' + item + ',text)';
- },
-
- lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {
- var self = this;
- return function() {
- self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck);
- };
- },
-
- lazyAssign: function(id, value) {
- var self = this;
- return function() {
- self.assign(id, value);
- };
- },
-
- stringEscapeRegex: /[^ a-zA-Z0-9]/g,
-
- stringEscapeFn: function(c) {
- return '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4);
- },
-
- escape: function(value) {
- if (isString(value)) return '\'' + value.replace(this.stringEscapeRegex, this.stringEscapeFn) + '\'';
- if (isNumber(value)) return value.toString();
- if (value === true) return 'true';
- if (value === false) return 'false';
- if (value === null) return 'null';
- if (typeof value === 'undefined') return 'undefined';
-
- throw $parseMinErr('esc', 'IMPOSSIBLE');
- },
-
- nextId: function(skip, init) {
- var id = 'v' + (this.state.nextId++);
- if (!skip) {
- this.current().vars.push(id + (init ? '=' + init : ''));
- }
- return id;
- },
-
- current: function() {
- return this.state[this.state.computing];
- }
-};
-
-
-function ASTInterpreter(astBuilder, $filter) {
- this.astBuilder = astBuilder;
- this.$filter = $filter;
-}
-
-ASTInterpreter.prototype = {
- compile: function(expression, expensiveChecks) {
- var self = this;
- var ast = this.astBuilder.ast(expression);
- this.expression = expression;
- this.expensiveChecks = expensiveChecks;
- findConstantAndWatchExpressions(ast, self.$filter);
- var assignable;
- var assign;
- if ((assignable = assignableAST(ast))) {
- assign = this.recurse(assignable);
- }
- var toWatch = getInputs(ast.body);
- var inputs;
- if (toWatch) {
- inputs = [];
- forEach(toWatch, function(watch, key) {
- var input = self.recurse(watch);
- watch.input = input;
- inputs.push(input);
- watch.watchId = key;
- });
- }
- var expressions = [];
- forEach(ast.body, function(expression) {
- expressions.push(self.recurse(expression.expression));
- });
- var fn = ast.body.length === 0 ? noop :
- ast.body.length === 1 ? expressions[0] :
- function(scope, locals) {
- var lastValue;
- forEach(expressions, function(exp) {
- lastValue = exp(scope, locals);
- });
- return lastValue;
- };
- if (assign) {
- fn.assign = function(scope, value, locals) {
- return assign(scope, locals, value);
- };
- }
- if (inputs) {
- fn.inputs = inputs;
- }
- fn.literal = isLiteral(ast);
- fn.constant = isConstant(ast);
- return fn;
- },
-
- recurse: function(ast, context, create) {
- var left, right, self = this, args;
- if (ast.input) {
- return this.inputs(ast.input, ast.watchId);
- }
- switch (ast.type) {
- case AST.Literal:
- return this.value(ast.value, context);
- case AST.UnaryExpression:
- right = this.recurse(ast.argument);
- return this['unary' + ast.operator](right, context);
- case AST.BinaryExpression:
- left = this.recurse(ast.left);
- right = this.recurse(ast.right);
- return this['binary' + ast.operator](left, right, context);
- case AST.LogicalExpression:
- left = this.recurse(ast.left);
- right = this.recurse(ast.right);
- return this['binary' + ast.operator](left, right, context);
- case AST.ConditionalExpression:
- return this['ternary?:'](
- this.recurse(ast.test),
- this.recurse(ast.alternate),
- this.recurse(ast.consequent),
- context
- );
- case AST.Identifier:
- ensureSafeMemberName(ast.name, self.expression);
- return self.identifier(ast.name,
- self.expensiveChecks || isPossiblyDangerousMemberName(ast.name),
- context, create, self.expression);
- case AST.MemberExpression:
- left = this.recurse(ast.object, false, !!create);
- if (!ast.computed) {
- ensureSafeMemberName(ast.property.name, self.expression);
- right = ast.property.name;
- }
- if (ast.computed) right = this.recurse(ast.property);
- return ast.computed ?
- this.computedMember(left, right, context, create, self.expression) :
- this.nonComputedMember(left, right, self.expensiveChecks, context, create, self.expression);
- case AST.CallExpression:
- args = [];
- forEach(ast.arguments, function(expr) {
- args.push(self.recurse(expr));
- });
- if (ast.filter) right = this.$filter(ast.callee.name);
- if (!ast.filter) right = this.recurse(ast.callee, true);
- return ast.filter ?
- function(scope, locals, assign, inputs) {
- var values = [];
- for (var i = 0; i < args.length; ++i) {
- values.push(args[i](scope, locals, assign, inputs));
- }
- var value = right.apply(undefined, values, inputs);
- return context ? {context: undefined, name: undefined, value: value} : value;
- } :
- function(scope, locals, assign, inputs) {
- var rhs = right(scope, locals, assign, inputs);
- var value;
- if (rhs.value != null) {
- ensureSafeObject(rhs.context, self.expression);
- ensureSafeFunction(rhs.value, self.expression);
- var values = [];
- for (var i = 0; i < args.length; ++i) {
- values.push(ensureSafeObject(args[i](scope, locals, assign, inputs), self.expression));
- }
- value = ensureSafeObject(rhs.value.apply(rhs.context, values), self.expression);
- }
- return context ? {value: value} : value;
- };
- case AST.AssignmentExpression:
- left = this.recurse(ast.left, true, 1);
- right = this.recurse(ast.right);
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- var rhs = right(scope, locals, assign, inputs);
- ensureSafeObject(lhs.value, self.expression);
- ensureSafeAssignContext(lhs.context);
- lhs.context[lhs.name] = rhs;
- return context ? {value: rhs} : rhs;
- };
- case AST.ArrayExpression:
- args = [];
- forEach(ast.elements, function(expr) {
- args.push(self.recurse(expr));
- });
- return function(scope, locals, assign, inputs) {
- var value = [];
- for (var i = 0; i < args.length; ++i) {
- value.push(args[i](scope, locals, assign, inputs));
- }
- return context ? {value: value} : value;
- };
- case AST.ObjectExpression:
- args = [];
- forEach(ast.properties, function(property) {
- if (property.computed) {
- args.push({key: self.recurse(property.key),
- computed: true,
- value: self.recurse(property.value)
- });
- } else {
- args.push({key: property.key.type === AST.Identifier ?
- property.key.name :
- ('' + property.key.value),
- computed: false,
- value: self.recurse(property.value)
- });
- }
- });
- return function(scope, locals, assign, inputs) {
- var value = {};
- for (var i = 0; i < args.length; ++i) {
- if (args[i].computed) {
- value[args[i].key(scope, locals, assign, inputs)] = args[i].value(scope, locals, assign, inputs);
- } else {
- value[args[i].key] = args[i].value(scope, locals, assign, inputs);
- }
- }
- return context ? {value: value} : value;
- };
- case AST.ThisExpression:
- return function(scope) {
- return context ? {value: scope} : scope;
- };
- case AST.LocalsExpression:
- return function(scope, locals) {
- return context ? {value: locals} : locals;
- };
- case AST.NGValueParameter:
- return function(scope, locals, assign) {
- return context ? {value: assign} : assign;
- };
- }
- },
-
- 'unary+': function(argument, context) {
- return function(scope, locals, assign, inputs) {
- var arg = argument(scope, locals, assign, inputs);
- if (isDefined(arg)) {
- arg = +arg;
- } else {
- arg = 0;
- }
- return context ? {value: arg} : arg;
- };
- },
- 'unary-': function(argument, context) {
- return function(scope, locals, assign, inputs) {
- var arg = argument(scope, locals, assign, inputs);
- if (isDefined(arg)) {
- arg = -arg;
- } else {
- arg = 0;
- }
- return context ? {value: arg} : arg;
- };
- },
- 'unary!': function(argument, context) {
- return function(scope, locals, assign, inputs) {
- var arg = !argument(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary+': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- var rhs = right(scope, locals, assign, inputs);
- var arg = plusFn(lhs, rhs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary-': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- var rhs = right(scope, locals, assign, inputs);
- var arg = (isDefined(lhs) ? lhs : 0) - (isDefined(rhs) ? rhs : 0);
- return context ? {value: arg} : arg;
- };
- },
- 'binary*': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) * right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary/': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) / right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary%': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) % right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary===': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) === right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary!==': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) !== right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary==': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- // eslint-disable-next-line eqeqeq
- var arg = left(scope, locals, assign, inputs) == right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary!=': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- // eslint-disable-next-line eqeqeq
- var arg = left(scope, locals, assign, inputs) != right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary<': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) < right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary>': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) > right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary<=': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) <= right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary>=': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) >= right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary&&': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) && right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary||': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) || right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'ternary?:': function(test, alternate, consequent, context) {
- return function(scope, locals, assign, inputs) {
- var arg = test(scope, locals, assign, inputs) ? alternate(scope, locals, assign, inputs) : consequent(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- value: function(value, context) {
- return function() { return context ? {context: undefined, name: undefined, value: value} : value; };
- },
- identifier: function(name, expensiveChecks, context, create, expression) {
- return function(scope, locals, assign, inputs) {
- var base = locals && (name in locals) ? locals : scope;
- if (create && create !== 1 && base && !(base[name])) {
- base[name] = {};
- }
- var value = base ? base[name] : undefined;
- if (expensiveChecks) {
- ensureSafeObject(value, expression);
- }
- if (context) {
- return {context: base, name: name, value: value};
- } else {
- return value;
- }
- };
- },
- computedMember: function(left, right, context, create, expression) {
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- var rhs;
- var value;
- if (lhs != null) {
- rhs = right(scope, locals, assign, inputs);
- rhs = getStringValue(rhs);
- ensureSafeMemberName(rhs, expression);
- if (create && create !== 1) {
- ensureSafeAssignContext(lhs);
- if (lhs && !(lhs[rhs])) {
- lhs[rhs] = {};
- }
- }
- value = lhs[rhs];
- ensureSafeObject(value, expression);
- }
- if (context) {
- return {context: lhs, name: rhs, value: value};
- } else {
- return value;
- }
- };
- },
- nonComputedMember: function(left, right, expensiveChecks, context, create, expression) {
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- if (create && create !== 1) {
- ensureSafeAssignContext(lhs);
- if (lhs && !(lhs[right])) {
- lhs[right] = {};
- }
- }
- var value = lhs != null ? lhs[right] : undefined;
- if (expensiveChecks || isPossiblyDangerousMemberName(right)) {
- ensureSafeObject(value, expression);
- }
- if (context) {
- return {context: lhs, name: right, value: value};
- } else {
- return value;
- }
- };
- },
- inputs: function(input, watchId) {
- return function(scope, value, locals, inputs) {
- if (inputs) return inputs[watchId];
- return input(scope, value, locals);
- };
- }
-};
-
-/**
- * @constructor
- */
-var Parser = function Parser(lexer, $filter, options) {
- this.lexer = lexer;
- this.$filter = $filter;
- this.options = options;
- this.ast = new AST(lexer, options);
- this.astCompiler = options.csp ? new ASTInterpreter(this.ast, $filter) :
- new ASTCompiler(this.ast, $filter);
-};
-
-Parser.prototype = {
- constructor: Parser,
-
- parse: function(text) {
- return this.astCompiler.compile(text, this.options.expensiveChecks);
- }
-};
-
-function isPossiblyDangerousMemberName(name) {
- return name === 'constructor';
-}
-
-function getValueOf(value) {
- return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value);
-}
-
-///////////////////////////////////
-
-/**
- * @ngdoc service
- * @name $parse
- * @kind function
- *
- * @description
- *
- * Converts Angular {@link guide/expression expression} into a function.
- *
- * ```js
- * var getter = $parse('user.name');
- * var setter = getter.assign;
- * var context = {user:{name:'angular'}};
- * var locals = {user:{name:'local'}};
- *
- * expect(getter(context)).toEqual('angular');
- * setter(context, 'newValue');
- * expect(context.user.name).toEqual('newValue');
- * expect(getter(context, locals)).toEqual('local');
- * ```
- *
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- *
- * The returned function also has the following properties:
- * * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript
- * literal.
- * * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript
- * constant literals.
- * * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be
- * set to a function to change its value on the given context.
- *
- */
-
-
-/**
- * @ngdoc provider
- * @name $parseProvider
- * @this
- *
- * @description
- * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}
- * service.
- */
-function $ParseProvider() {
- var cacheDefault = createMap();
- var cacheExpensive = createMap();
- var literals = {
- 'true': true,
- 'false': false,
- 'null': null,
- 'undefined': undefined
- };
- var identStart, identContinue;
-
- /**
- * @ngdoc method
- * @name $parseProvider#addLiteral
- * @description
- *
- * Configure $parse service to add literal values that will be present as literal at expressions.
- *
- * @param {string} literalName Token for the literal value. The literal name value must be a valid literal name.
- * @param {*} literalValue Value for this literal. All literal values must be primitives or `undefined`.
- *
- **/
- this.addLiteral = function(literalName, literalValue) {
- literals[literalName] = literalValue;
- };
-
- /**
- * @ngdoc method
- * @name $parseProvider#setIdentifierFns
- *
- * @description
- *
- * Allows defining the set of characters that are allowed in Angular expressions. The function
- * `identifierStart` will get called to know if a given character is a valid character to be the
- * first character for an identifier. The function `identifierContinue` will get called to know if
- * a given character is a valid character to be a follow-up identifier character. The functions
- * `identifierStart` and `identifierContinue` will receive as arguments the single character to be
- * identifier and the character code point. These arguments will be `string` and `numeric`. Keep in
- * mind that the `string` parameter can be two characters long depending on the character
- * representation. It is expected for the function to return `true` or `false`, whether that
- * character is allowed or not.
- *
- * Since this function will be called extensively, keep the implementation of these functions fast,
- * as the performance of these functions have a direct impact on the expressions parsing speed.
- *
- * @param {function=} identifierStart The function that will decide whether the given character is
- * a valid identifier start character.
- * @param {function=} identifierContinue The function that will decide whether the given character is
- * a valid identifier continue character.
- */
- this.setIdentifierFns = function(identifierStart, identifierContinue) {
- identStart = identifierStart;
- identContinue = identifierContinue;
- return this;
- };
-
- this.$get = ['$filter', function($filter) {
- var noUnsafeEval = csp().noUnsafeEval;
- var $parseOptions = {
- csp: noUnsafeEval,
- expensiveChecks: false,
- literals: copy(literals),
- isIdentifierStart: isFunction(identStart) && identStart,
- isIdentifierContinue: isFunction(identContinue) && identContinue
- },
- $parseOptionsExpensive = {
- csp: noUnsafeEval,
- expensiveChecks: true,
- literals: copy(literals),
- isIdentifierStart: isFunction(identStart) && identStart,
- isIdentifierContinue: isFunction(identContinue) && identContinue
- };
- var runningChecksEnabled = false;
-
- $parse.$$runningExpensiveChecks = function() {
- return runningChecksEnabled;
- };
-
- return $parse;
-
- function $parse(exp, interceptorFn, expensiveChecks) {
- var parsedExpression, oneTime, cacheKey;
-
- expensiveChecks = expensiveChecks || runningChecksEnabled;
-
- switch (typeof exp) {
- case 'string':
- exp = exp.trim();
- cacheKey = exp;
-
- var cache = (expensiveChecks ? cacheExpensive : cacheDefault);
- parsedExpression = cache[cacheKey];
-
- if (!parsedExpression) {
- if (exp.charAt(0) === ':' && exp.charAt(1) === ':') {
- oneTime = true;
- exp = exp.substring(2);
- }
- var parseOptions = expensiveChecks ? $parseOptionsExpensive : $parseOptions;
- var lexer = new Lexer(parseOptions);
- var parser = new Parser(lexer, $filter, parseOptions);
- parsedExpression = parser.parse(exp);
- if (parsedExpression.constant) {
- parsedExpression.$$watchDelegate = constantWatchDelegate;
- } else if (oneTime) {
- parsedExpression.$$watchDelegate = parsedExpression.literal ?
- oneTimeLiteralWatchDelegate : oneTimeWatchDelegate;
- } else if (parsedExpression.inputs) {
- parsedExpression.$$watchDelegate = inputsWatchDelegate;
- }
- if (expensiveChecks) {
- parsedExpression = expensiveChecksInterceptor(parsedExpression);
- }
- cache[cacheKey] = parsedExpression;
- }
- return addInterceptor(parsedExpression, interceptorFn);
-
- case 'function':
- return addInterceptor(exp, interceptorFn);
-
- default:
- return addInterceptor(noop, interceptorFn);
- }
- }
-
- function expensiveChecksInterceptor(fn) {
- if (!fn) return fn;
- expensiveCheckFn.$$watchDelegate = fn.$$watchDelegate;
- expensiveCheckFn.assign = expensiveChecksInterceptor(fn.assign);
- expensiveCheckFn.constant = fn.constant;
- expensiveCheckFn.literal = fn.literal;
- for (var i = 0; fn.inputs && i < fn.inputs.length; ++i) {
- fn.inputs[i] = expensiveChecksInterceptor(fn.inputs[i]);
- }
- expensiveCheckFn.inputs = fn.inputs;
-
- return expensiveCheckFn;
-
- function expensiveCheckFn(scope, locals, assign, inputs) {
- var expensiveCheckOldValue = runningChecksEnabled;
- runningChecksEnabled = true;
- try {
- return fn(scope, locals, assign, inputs);
- } finally {
- runningChecksEnabled = expensiveCheckOldValue;
- }
- }
- }
-
- function expressionInputDirtyCheck(newValue, oldValueOfValue) {
-
- if (newValue == null || oldValueOfValue == null) { // null/undefined
- return newValue === oldValueOfValue;
- }
-
- if (typeof newValue === 'object') {
-
- // attempt to convert the value to a primitive type
- // TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can
- // be cheaply dirty-checked
- newValue = getValueOf(newValue);
-
- if (typeof newValue === 'object') {
- // objects/arrays are not supported - deep-watching them would be too expensive
- return false;
- }
-
- // fall-through to the primitive equality check
- }
-
- //Primitive or NaN
- // eslint-disable-next-line no-self-compare
- return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue);
- }
-
- function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {
- var inputExpressions = parsedExpression.inputs;
- var lastResult;
-
- if (inputExpressions.length === 1) {
- var oldInputValueOf = expressionInputDirtyCheck; // init to something unique so that equals check fails
- inputExpressions = inputExpressions[0];
- return scope.$watch(function expressionInputWatch(scope) {
- var newInputValue = inputExpressions(scope);
- if (!expressionInputDirtyCheck(newInputValue, oldInputValueOf)) {
- lastResult = parsedExpression(scope, undefined, undefined, [newInputValue]);
- oldInputValueOf = newInputValue && getValueOf(newInputValue);
- }
- return lastResult;
- }, listener, objectEquality, prettyPrintExpression);
- }
-
- var oldInputValueOfValues = [];
- var oldInputValues = [];
- for (var i = 0, ii = inputExpressions.length; i < ii; i++) {
- oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails
- oldInputValues[i] = null;
- }
-
- return scope.$watch(function expressionInputsWatch(scope) {
- var changed = false;
-
- for (var i = 0, ii = inputExpressions.length; i < ii; i++) {
- var newInputValue = inputExpressions[i](scope);
- if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i]))) {
- oldInputValues[i] = newInputValue;
- oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue);
- }
- }
-
- if (changed) {
- lastResult = parsedExpression(scope, undefined, undefined, oldInputValues);
- }
-
- return lastResult;
- }, listener, objectEquality, prettyPrintExpression);
- }
-
- function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression) {
- var unwatch, lastValue;
- unwatch = scope.$watch(function oneTimeWatch(scope) {
- return parsedExpression(scope);
- }, /** @this */ function oneTimeListener(value, old, scope) {
- lastValue = value;
- if (isFunction(listener)) {
- listener.apply(this, arguments);
- }
- if (isDefined(value)) {
- scope.$$postDigest(function() {
- if (isDefined(lastValue)) {
- unwatch();
- }
- });
- }
- }, objectEquality);
- return unwatch;
- }
-
- function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) {
- var unwatch, lastValue;
- unwatch = scope.$watch(function oneTimeWatch(scope) {
- return parsedExpression(scope);
- }, /** @this */ function oneTimeListener(value, old, scope) {
- lastValue = value;
- if (isFunction(listener)) {
- listener.call(this, value, old, scope);
- }
- if (isAllDefined(value)) {
- scope.$$postDigest(function() {
- if (isAllDefined(lastValue)) unwatch();
- });
- }
- }, objectEquality);
-
- return unwatch;
-
- function isAllDefined(value) {
- var allDefined = true;
- forEach(value, function(val) {
- if (!isDefined(val)) allDefined = false;
- });
- return allDefined;
- }
- }
-
- function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {
- var unwatch = scope.$watch(function constantWatch(scope) {
- unwatch();
- return parsedExpression(scope);
- }, listener, objectEquality);
- return unwatch;
- }
-
- function addInterceptor(parsedExpression, interceptorFn) {
- if (!interceptorFn) return parsedExpression;
- var watchDelegate = parsedExpression.$$watchDelegate;
- var useInputs = false;
-
- var regularWatch =
- watchDelegate !== oneTimeLiteralWatchDelegate &&
- watchDelegate !== oneTimeWatchDelegate;
-
- var fn = regularWatch ? function regularInterceptedExpression(scope, locals, assign, inputs) {
- var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs);
- return interceptorFn(value, scope, locals);
- } : function oneTimeInterceptedExpression(scope, locals, assign, inputs) {
- var value = parsedExpression(scope, locals, assign, inputs);
- var result = interceptorFn(value, scope, locals);
- // we only return the interceptor's result if the
- // initial value is defined (for bind-once)
- return isDefined(value) ? result : value;
- };
-
- // Propagate $$watchDelegates other then inputsWatchDelegate
- if (parsedExpression.$$watchDelegate &&
- parsedExpression.$$watchDelegate !== inputsWatchDelegate) {
- fn.$$watchDelegate = parsedExpression.$$watchDelegate;
- } else if (!interceptorFn.$stateful) {
- // If there is an interceptor, but no watchDelegate then treat the interceptor like
- // we treat filters - it is assumed to be a pure function unless flagged with $stateful
- fn.$$watchDelegate = inputsWatchDelegate;
- useInputs = !parsedExpression.inputs;
- fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression];
- }
-
- return fn;
- }
- }];
-}
-
-/**
- * @ngdoc service
- * @name $q
- * @requires $rootScope
- * @this
- *
- * @description
- * A service that helps you run functions asynchronously, and use their return values (or exceptions)
- * when they are done processing.
- *
- * This is an implementation of promises/deferred objects inspired by
- * [Kris Kowal's Q](https://github.com/kriskowal/q).
- *
- * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred
- * implementations, and the other which resembles ES6 (ES2015) promises to some degree.
- *
- * # $q constructor
- *
- * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`
- * function as the first argument. This is similar to the native Promise implementation from ES6,
- * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
- *
- * While the constructor-style use is supported, not all of the supporting methods from ES6 promises are
- * available yet.
- *
- * It can be used like so:
- *
- * ```js
- * // for the purpose of this example let's assume that variables `$q` and `okToGreet`
- * // are available in the current lexical scope (they could have been injected or passed in).
- *
- * function asyncGreet(name) {
- * // perform some asynchronous operation, resolve or reject the promise when appropriate.
- * return $q(function(resolve, reject) {
- * setTimeout(function() {
- * if (okToGreet(name)) {
- * resolve('Hello, ' + name + '!');
- * } else {
- * reject('Greeting ' + name + ' is not allowed.');
- * }
- * }, 1000);
- * });
- * }
- *
- * var promise = asyncGreet('Robin Hood');
- * promise.then(function(greeting) {
- * alert('Success: ' + greeting);
- * }, function(reason) {
- * alert('Failed: ' + reason);
- * });
- * ```
- *
- * Note: progress/notify callbacks are not currently supported via the ES6-style interface.
- *
- * Note: unlike ES6 behavior, an exception thrown in the constructor function will NOT implicitly reject the promise.
- *
- * However, the more traditional CommonJS-style usage is still available, and documented below.
- *
- * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an
- * interface for interacting with an object that represents the result of an action that is
- * performed asynchronously, and may or may not be finished at any given point in time.
- *
- * From the perspective of dealing with error handling, deferred and promise APIs are to
- * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.
- *
- * ```js
- * // for the purpose of this example let's assume that variables `$q` and `okToGreet`
- * // are available in the current lexical scope (they could have been injected or passed in).
- *
- * function asyncGreet(name) {
- * var deferred = $q.defer();
- *
- * setTimeout(function() {
- * deferred.notify('About to greet ' + name + '.');
- *
- * if (okToGreet(name)) {
- * deferred.resolve('Hello, ' + name + '!');
- * } else {
- * deferred.reject('Greeting ' + name + ' is not allowed.');
- * }
- * }, 1000);
- *
- * return deferred.promise;
- * }
- *
- * var promise = asyncGreet('Robin Hood');
- * promise.then(function(greeting) {
- * alert('Success: ' + greeting);
- * }, function(reason) {
- * alert('Failed: ' + reason);
- * }, function(update) {
- * alert('Got notification: ' + update);
- * });
- * ```
- *
- * At first it might not be obvious why this extra complexity is worth the trouble. The payoff
- * comes in the way of guarantees that promise and deferred APIs make, see
- * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.
- *
- * Additionally the promise api allows for composition that is very hard to do with the
- * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.
- * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the
- * section on serial or parallel joining of promises.
- *
- * # The Deferred API
- *
- * A new instance of deferred is constructed by calling `$q.defer()`.
- *
- * The purpose of the deferred object is to expose the associated Promise instance as well as APIs
- * that can be used for signaling the successful or unsuccessful completion, as well as the status
- * of the task.
- *
- * **Methods**
- *
- * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection
- * constructed via `$q.reject`, the promise will be rejected instead.
- * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to
- * resolving it with a rejection constructed via `$q.reject`.
- * - `notify(value)` - provides updates on the status of the promise's execution. This may be called
- * multiple times before the promise is either resolved or rejected.
- *
- * **Properties**
- *
- * - promise – `{Promise}` – promise object associated with this deferred.
- *
- *
- * # The Promise API
- *
- * A new promise instance is created when a deferred instance is created and can be retrieved by
- * calling `deferred.promise`.
- *
- * The purpose of the promise object is to allow for interested parties to get access to the result
- * of the deferred task when it completes.
- *
- * **Methods**
- *
- * - `then(successCallback, [errorCallback], [notifyCallback])` – regardless of when the promise was or
- * will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously
- * as soon as the result is available. The callbacks are called with a single argument: the result
- * or rejection reason. Additionally, the notify callback may be called zero or more times to
- * provide a progress indication, before the promise is resolved or rejected.
- *
- * This method *returns a new promise* which is resolved or rejected via the return value of the
- * `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved
- * with the value which is resolved in that promise using
- * [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).
- * It also notifies via the return value of the `notifyCallback` method. The promise cannot be
- * resolved or rejected from the notifyCallback method. The errorCallback and notifyCallback
- * arguments are optional.
- *
- * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`
- *
- * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,
- * but to do so without modifying the final value. This is useful to release resources or do some
- * clean-up that needs to be done whether the promise was rejected or resolved. See the [full
- * specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for
- * more information.
- *
- * # Chaining promises
- *
- * Because calling the `then` method of a promise returns a new derived promise, it is easily
- * possible to create a chain of promises:
- *
- * ```js
- * promiseB = promiseA.then(function(result) {
- * return result + 1;
- * });
- *
- * // promiseB will be resolved immediately after promiseA is resolved and its value
- * // will be the result of promiseA incremented by 1
- * ```
- *
- * It is possible to create chains of any length and since a promise can be resolved with another
- * promise (which will defer its resolution further), it is possible to pause/defer resolution of
- * the promises at any point in the chain. This makes it possible to implement powerful APIs like
- * $http's response interceptors.
- *
- *
- * # Differences between Kris Kowal's Q and $q
- *
- * There are two main differences:
- *
- * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation
- * mechanism in angular, which means faster propagation of resolution or rejection into your
- * models and avoiding unnecessary browser repaints, which would result in flickering UI.
- * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains
- * all the important functionality needed for common async tasks.
- *
- * # Testing
- *
- * ```js
- * it('should simulate promise', inject(function($q, $rootScope) {
- * var deferred = $q.defer();
- * var promise = deferred.promise;
- * var resolvedValue;
- *
- * promise.then(function(value) { resolvedValue = value; });
- * expect(resolvedValue).toBeUndefined();
- *
- * // Simulate resolving of promise
- * deferred.resolve(123);
- * // Note that the 'then' function does not get called synchronously.
- * // This is because we want the promise API to always be async, whether or not
- * // it got called synchronously or asynchronously.
- * expect(resolvedValue).toBeUndefined();
- *
- * // Propagate promise resolution to 'then' functions using $apply().
- * $rootScope.$apply();
- * expect(resolvedValue).toEqual(123);
- * }));
- * ```
- *
- * @param {function(function, function)} resolver Function which is responsible for resolving or
- * rejecting the newly created promise. The first parameter is a function which resolves the
- * promise, the second parameter is a function which rejects the promise.
- *
- * @returns {Promise} The newly created promise.
- */
-function $QProvider() {
-
- this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
- return qFactory(function(callback) {
- $rootScope.$evalAsync(callback);
- }, $exceptionHandler);
- }];
-}
-
-/** @this */
-function $$QProvider() {
- this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {
- return qFactory(function(callback) {
- $browser.defer(callback);
- }, $exceptionHandler);
- }];
-}
-
-/**
- * Constructs a promise manager.
- *
- * @param {function(function)} nextTick Function for executing functions in the next turn.
- * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for
- * debugging purposes.
- * @returns {object} Promise manager.
- */
-function qFactory(nextTick, exceptionHandler) {
- var $qMinErr = minErr('$q', TypeError);
-
- /**
- * @ngdoc method
- * @name ng.$q#defer
- * @kind function
- *
- * @description
- * Creates a `Deferred` object which represents a task which will finish in the future.
- *
- * @returns {Deferred} Returns a new instance of deferred.
- */
- function defer() {
- var d = new Deferred();
- //Necessary to support unbound execution :/
- d.resolve = simpleBind(d, d.resolve);
- d.reject = simpleBind(d, d.reject);
- d.notify = simpleBind(d, d.notify);
- return d;
- }
-
- function Promise() {
- this.$$state = { status: 0 };
- }
-
- extend(Promise.prototype, {
- then: function(onFulfilled, onRejected, progressBack) {
- if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) {
- return this;
- }
- var result = new Deferred();
-
- this.$$state.pending = this.$$state.pending || [];
- this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]);
- if (this.$$state.status > 0) scheduleProcessQueue(this.$$state);
-
- return result.promise;
- },
-
- 'catch': function(callback) {
- return this.then(null, callback);
- },
-
- 'finally': function(callback, progressBack) {
- return this.then(function(value) {
- return handleCallback(value, resolve, callback);
- }, function(error) {
- return handleCallback(error, reject, callback);
- }, progressBack);
- }
- });
-
- //Faster, more basic than angular.bind http://jsperf.com/angular-bind-vs-custom-vs-native
- function simpleBind(context, fn) {
- return function(value) {
- fn.call(context, value);
- };
- }
-
- function processQueue(state) {
- var fn, deferred, pending;
-
- pending = state.pending;
- state.processScheduled = false;
- state.pending = undefined;
- for (var i = 0, ii = pending.length; i < ii; ++i) {
- deferred = pending[i][0];
- fn = pending[i][state.status];
- try {
- if (isFunction(fn)) {
- deferred.resolve(fn(state.value));
- } else if (state.status === 1) {
- deferred.resolve(state.value);
- } else {
- deferred.reject(state.value);
- }
- } catch (e) {
- deferred.reject(e);
- exceptionHandler(e);
- }
- }
- }
-
- function scheduleProcessQueue(state) {
- if (state.processScheduled || !state.pending) return;
- state.processScheduled = true;
- nextTick(function() { processQueue(state); });
- }
-
- function Deferred() {
- this.promise = new Promise();
- }
-
- extend(Deferred.prototype, {
- resolve: function(val) {
- if (this.promise.$$state.status) return;
- if (val === this.promise) {
- this.$$reject($qMinErr(
- 'qcycle',
- 'Expected promise to be resolved with value other than itself \'{0}\'',
- val));
- } else {
- this.$$resolve(val);
- }
-
- },
-
- $$resolve: function(val) {
- var then;
- var that = this;
- var done = false;
- try {
- if ((isObject(val) || isFunction(val))) then = val && val.then;
- if (isFunction(then)) {
- this.promise.$$state.status = -1;
- then.call(val, resolvePromise, rejectPromise, simpleBind(this, this.notify));
- } else {
- this.promise.$$state.value = val;
- this.promise.$$state.status = 1;
- scheduleProcessQueue(this.promise.$$state);
- }
- } catch (e) {
- rejectPromise(e);
- exceptionHandler(e);
- }
-
- function resolvePromise(val) {
- if (done) return;
- done = true;
- that.$$resolve(val);
- }
- function rejectPromise(val) {
- if (done) return;
- done = true;
- that.$$reject(val);
- }
- },
-
- reject: function(reason) {
- if (this.promise.$$state.status) return;
- this.$$reject(reason);
- },
-
- $$reject: function(reason) {
- this.promise.$$state.value = reason;
- this.promise.$$state.status = 2;
- scheduleProcessQueue(this.promise.$$state);
- },
-
- notify: function(progress) {
- var callbacks = this.promise.$$state.pending;
-
- if ((this.promise.$$state.status <= 0) && callbacks && callbacks.length) {
- nextTick(function() {
- var callback, result;
- for (var i = 0, ii = callbacks.length; i < ii; i++) {
- result = callbacks[i][0];
- callback = callbacks[i][3];
- try {
- result.notify(isFunction(callback) ? callback(progress) : progress);
- } catch (e) {
- exceptionHandler(e);
- }
- }
- });
- }
- }
- });
-
- /**
- * @ngdoc method
- * @name $q#reject
- * @kind function
- *
- * @description
- * Creates a promise that is resolved as rejected with the specified `reason`. This api should be
- * used to forward rejection in a chain of promises. If you are dealing with the last promise in
- * a promise chain, you don't need to worry about it.
- *
- * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of
- * `reject` as the `throw` keyword in JavaScript. This also means that if you "catch" an error via
- * a promise error callback and you want to forward the error to the promise derived from the
- * current promise, you have to "rethrow" the error by returning a rejection constructed via
- * `reject`.
- *
- * ```js
- * promiseB = promiseA.then(function(result) {
- * // success: do something and resolve promiseB
- * // with the old or a new result
- * return result;
- * }, function(reason) {
- * // error: handle the error if possible and
- * // resolve promiseB with newPromiseOrValue,
- * // otherwise forward the rejection to promiseB
- * if (canHandle(reason)) {
- * // handle the error and recover
- * return newPromiseOrValue;
- * }
- * return $q.reject(reason);
- * });
- * ```
- *
- * @param {*} reason Constant, message, exception or an object representing the rejection reason.
- * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.
- */
- function reject(reason) {
- var result = new Deferred();
- result.reject(reason);
- return result.promise;
- }
-
- function handleCallback(value, resolver, callback) {
- var callbackOutput = null;
- try {
- if (isFunction(callback)) callbackOutput = callback();
- } catch (e) {
- return reject(e);
- }
- if (isPromiseLike(callbackOutput)) {
- return callbackOutput.then(function() {
- return resolver(value);
- }, reject);
- } else {
- return resolver(value);
- }
- }
-
- /**
- * @ngdoc method
- * @name $q#when
- * @kind function
- *
- * @description
- * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
- * This is useful when you are dealing with an object that might or might not be a promise, or if
- * the promise comes from a source that can't be trusted.
- *
- * @param {*} value Value or a promise
- * @param {Function=} successCallback
- * @param {Function=} errorCallback
- * @param {Function=} progressCallback
- * @returns {Promise} Returns a promise of the passed value or promise
- */
-
-
- function when(value, callback, errback, progressBack) {
- var result = new Deferred();
- result.resolve(value);
- return result.promise.then(callback, errback, progressBack);
- }
-
- /**
- * @ngdoc method
- * @name $q#resolve
- * @kind function
- *
- * @description
- * Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.
- *
- * @param {*} value Value or a promise
- * @param {Function=} successCallback
- * @param {Function=} errorCallback
- * @param {Function=} progressCallback
- * @returns {Promise} Returns a promise of the passed value or promise
- */
- var resolve = when;
-
- /**
- * @ngdoc method
- * @name $q#all
- * @kind function
- *
- * @description
- * Combines multiple promises into a single promise that is resolved when all of the input
- * promises are resolved.
- *
- * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
- * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,
- * each value corresponding to the promise at the same index/key in the `promises` array/hash.
- * If any of the promises is resolved with a rejection, this resulting promise will be rejected
- * with the same rejection value.
- */
-
- function all(promises) {
- var deferred = new Deferred(),
- counter = 0,
- results = isArray(promises) ? [] : {};
-
- forEach(promises, function(promise, key) {
- counter++;
- when(promise).then(function(value) {
- results[key] = value;
- if (!(--counter)) deferred.resolve(results);
- }, function(reason) {
- deferred.reject(reason);
- });
- });
-
- if (counter === 0) {
- deferred.resolve(results);
- }
-
- return deferred.promise;
- }
-
- /**
- * @ngdoc method
- * @name $q#race
- * @kind function
- *
- * @description
- * Returns a promise that resolves or rejects as soon as one of those promises
- * resolves or rejects, with the value or reason from that promise.
- *
- * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
- * @returns {Promise} a promise that resolves or rejects as soon as one of the `promises`
- * resolves or rejects, with the value or reason from that promise.
- */
-
- function race(promises) {
- var deferred = defer();
-
- forEach(promises, function(promise) {
- when(promise).then(deferred.resolve, deferred.reject);
- });
-
- return deferred.promise;
- }
-
- function $Q(resolver) {
- if (!isFunction(resolver)) {
- throw $qMinErr('norslvr', 'Expected resolverFn, got \'{0}\'', resolver);
- }
-
- var deferred = new Deferred();
-
- function resolveFn(value) {
- deferred.resolve(value);
- }
-
- function rejectFn(reason) {
- deferred.reject(reason);
- }
-
- resolver(resolveFn, rejectFn);
-
- return deferred.promise;
- }
-
- // Let's make the instanceof operator work for promises, so that
- // `new $q(fn) instanceof $q` would evaluate to true.
- $Q.prototype = Promise.prototype;
-
- $Q.defer = defer;
- $Q.reject = reject;
- $Q.when = when;
- $Q.resolve = resolve;
- $Q.all = all;
- $Q.race = race;
-
- return $Q;
-}
-
-/** @this */
-function $$RAFProvider() { //rAF
- this.$get = ['$window', '$timeout', function($window, $timeout) {
- var requestAnimationFrame = $window.requestAnimationFrame ||
- $window.webkitRequestAnimationFrame;
-
- var cancelAnimationFrame = $window.cancelAnimationFrame ||
- $window.webkitCancelAnimationFrame ||
- $window.webkitCancelRequestAnimationFrame;
-
- var rafSupported = !!requestAnimationFrame;
- var raf = rafSupported
- ? function(fn) {
- var id = requestAnimationFrame(fn);
- return function() {
- cancelAnimationFrame(id);
- };
- }
- : function(fn) {
- var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666
- return function() {
- $timeout.cancel(timer);
- };
- };
-
- raf.supported = rafSupported;
-
- return raf;
- }];
-}
-
-/**
- * DESIGN NOTES
- *
- * The design decisions behind the scope are heavily favored for speed and memory consumption.
- *
- * The typical use of scope is to watch the expressions, which most of the time return the same
- * value as last time so we optimize the operation.
- *
- * Closures construction is expensive in terms of speed as well as memory:
- * - No closures, instead use prototypical inheritance for API
- * - Internal state needs to be stored on scope directly, which means that private state is
- * exposed as $$____ properties
- *
- * Loop operations are optimized by using while(count--) { ... }
- * - This means that in order to keep the same order of execution as addition we have to add
- * items to the array at the beginning (unshift) instead of at the end (push)
- *
- * Child scopes are created and removed often
- * - Using an array would be slow since inserts in the middle are expensive; so we use linked lists
- *
- * There are fewer watches than observers. This is why you don't want the observer to be implemented
- * in the same way as watch. Watch requires return of the initialization function which is expensive
- * to construct.
- */
-
-
-/**
- * @ngdoc provider
- * @name $rootScopeProvider
- * @description
- *
- * Provider for the $rootScope service.
- */
-
-/**
- * @ngdoc method
- * @name $rootScopeProvider#digestTtl
- * @description
- *
- * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and
- * assuming that the model is unstable.
- *
- * The current default is 10 iterations.
- *
- * In complex applications it's possible that the dependencies between `$watch`s will result in
- * several digest iterations. However if an application needs more than the default 10 digest
- * iterations for its model to stabilize then you should investigate what is causing the model to
- * continuously change during the digest.
- *
- * Increasing the TTL could have performance implications, so you should not change it without
- * proper justification.
- *
- * @param {number} limit The number of digest iterations.
- */
-
-
-/**
- * @ngdoc service
- * @name $rootScope
- * @this
- *
- * @description
- *
- * Every application has a single root {@link ng.$rootScope.Scope scope}.
- * All other scopes are descendant scopes of the root scope. Scopes provide separation
- * between the model and the view, via a mechanism for watching the model for changes.
- * They also provide event emission/broadcast and subscription facility. See the
- * {@link guide/scope developer guide on scopes}.
- */
-function $RootScopeProvider() {
- var TTL = 10;
- var $rootScopeMinErr = minErr('$rootScope');
- var lastDirtyWatch = null;
- var applyAsyncId = null;
-
- this.digestTtl = function(value) {
- if (arguments.length) {
- TTL = value;
- }
- return TTL;
- };
-
- function createChildScopeClass(parent) {
- function ChildScope() {
- this.$$watchers = this.$$nextSibling =
- this.$$childHead = this.$$childTail = null;
- this.$$listeners = {};
- this.$$listenerCount = {};
- this.$$watchersCount = 0;
- this.$id = nextUid();
- this.$$ChildScope = null;
- }
- ChildScope.prototype = parent;
- return ChildScope;
- }
-
- this.$get = ['$exceptionHandler', '$parse', '$browser',
- function($exceptionHandler, $parse, $browser) {
-
- function destroyChildScope($event) {
- $event.currentScope.$$destroyed = true;
- }
-
- function cleanUpScope($scope) {
-
- if (msie === 9) {
- // There is a memory leak in IE9 if all child scopes are not disconnected
- // completely when a scope is destroyed. So this code will recurse up through
- // all this scopes children
- //
- // See issue https://github.com/angular/angular.js/issues/10706
- if ($scope.$$childHead) {
- cleanUpScope($scope.$$childHead);
- }
- if ($scope.$$nextSibling) {
- cleanUpScope($scope.$$nextSibling);
- }
- }
-
- // The code below works around IE9 and V8's memory leaks
- //
- // See:
- // - https://code.google.com/p/v8/issues/detail?id=2073#c26
- // - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909
- // - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451
-
- $scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead =
- $scope.$$childTail = $scope.$root = $scope.$$watchers = null;
- }
-
- /**
- * @ngdoc type
- * @name $rootScope.Scope
- *
- * @description
- * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the
- * {@link auto.$injector $injector}. Child scopes are created using the
- * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when
- * compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for
- * an in-depth introduction and usage examples.
- *
- *
- * # Inheritance
- * A scope can inherit from a parent scope, as in this example:
- * ```js
- var parent = $rootScope;
- var child = parent.$new();
-
- parent.salutation = "Hello";
- expect(child.salutation).toEqual('Hello');
-
- child.salutation = "Welcome";
- expect(child.salutation).toEqual('Welcome');
- expect(parent.salutation).toEqual('Hello');
- * ```
- *
- * When interacting with `Scope` in tests, additional helper methods are available on the
- * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional
- * details.
- *
- *
- * @param {Object.<string, function()>=} providers Map of service factory which need to be
- * provided for the current scope. Defaults to {@link ng}.
- * @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should
- * append/override services provided by `providers`. This is handy
- * when unit-testing and having the need to override a default
- * service.
- * @returns {Object} Newly created scope.
- *
- */
- function Scope() {
- this.$id = nextUid();
- this.$$phase = this.$parent = this.$$watchers =
- this.$$nextSibling = this.$$prevSibling =
- this.$$childHead = this.$$childTail = null;
- this.$root = this;
- this.$$destroyed = false;
- this.$$listeners = {};
- this.$$listenerCount = {};
- this.$$watchersCount = 0;
- this.$$isolateBindings = null;
- }
-
- /**
- * @ngdoc property
- * @name $rootScope.Scope#$id
- *
- * @description
- * Unique scope ID (monotonically increasing) useful for debugging.
- */
-
- /**
- * @ngdoc property
- * @name $rootScope.Scope#$parent
- *
- * @description
- * Reference to the parent scope.
- */
-
- /**
- * @ngdoc property
- * @name $rootScope.Scope#$root
- *
- * @description
- * Reference to the root scope.
- */
-
- Scope.prototype = {
- constructor: Scope,
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$new
- * @kind function
- *
- * @description
- * Creates a new child {@link ng.$rootScope.Scope scope}.
- *
- * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.
- * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.
- *
- * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is
- * desired for the scope and its child scopes to be permanently detached from the parent and
- * thus stop participating in model change detection and listener notification by invoking.
- *
- * @param {boolean} isolate If true, then the scope does not prototypically inherit from the
- * parent scope. The scope is isolated, as it can not see parent scope properties.
- * When creating widgets, it is useful for the widget to not accidentally read parent
- * state.
- *
- * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`
- * of the newly created scope. Defaults to `this` scope if not provided.
- * This is used when creating a transclude scope to correctly place it
- * in the scope hierarchy while maintaining the correct prototypical
- * inheritance.
- *
- * @returns {Object} The newly created child scope.
- *
- */
- $new: function(isolate, parent) {
- var child;
-
- parent = parent || this;
-
- if (isolate) {
- child = new Scope();
- child.$root = this.$root;
- } else {
- // Only create a child scope class if somebody asks for one,
- // but cache it to allow the VM to optimize lookups.
- if (!this.$$ChildScope) {
- this.$$ChildScope = createChildScopeClass(this);
- }
- child = new this.$$ChildScope();
- }
- child.$parent = parent;
- child.$$prevSibling = parent.$$childTail;
- if (parent.$$childHead) {
- parent.$$childTail.$$nextSibling = child;
- parent.$$childTail = child;
- } else {
- parent.$$childHead = parent.$$childTail = child;
- }
-
- // When the new scope is not isolated or we inherit from `this`, and
- // the parent scope is destroyed, the property `$$destroyed` is inherited
- // prototypically. In all other cases, this property needs to be set
- // when the parent scope is destroyed.
- // The listener needs to be added after the parent is set
- if (isolate || parent !== this) child.$on('$destroy', destroyChildScope);
-
- return child;
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$watch
- * @kind function
- *
- * @description
- * Registers a `listener` callback to be executed whenever the `watchExpression` changes.
- *
- * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest
- * $digest()} and should return the value that will be watched. (`watchExpression` should not change
- * its value when executed multiple times with the same input because it may be executed multiple
- * times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be
- * [idempotent](http://en.wikipedia.org/wiki/Idempotence).)
- * - The `listener` is called only when the value from the current `watchExpression` and the
- * previous call to `watchExpression` are not equal (with the exception of the initial run,
- * see below). Inequality is determined according to reference inequality,
- * [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)
- * via the `!==` Javascript operator, unless `objectEquality == true`
- * (see next point)
- * - When `objectEquality == true`, inequality of the `watchExpression` is determined
- * according to the {@link angular.equals} function. To save the value of the object for
- * later comparison, the {@link angular.copy} function is used. This therefore means that
- * watching complex objects will have adverse memory and performance implications.
- * - The watch `listener` may change the model, which may trigger other `listener`s to fire.
- * This is achieved by rerunning the watchers until no changes are detected. The rerun
- * iteration limit is 10 to prevent an infinite loop deadlock.
- *
- *
- * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,
- * you can register a `watchExpression` function with no `listener`. (Be prepared for
- * multiple calls to your `watchExpression` because it will execute multiple times in a
- * single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.)
- *
- * After a watcher is registered with the scope, the `listener` fn is called asynchronously
- * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the
- * watcher. In rare cases, this is undesirable because the listener is called when the result
- * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you
- * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the
- * listener was called due to initialization.
- *
- *
- *
- * # Example
- * ```js
- // let's assume that scope was dependency injected as the $rootScope
- var scope = $rootScope;
- scope.name = 'misko';
- scope.counter = 0;
-
- expect(scope.counter).toEqual(0);
- scope.$watch('name', function(newValue, oldValue) {
- scope.counter = scope.counter + 1;
- });
- expect(scope.counter).toEqual(0);
-
- scope.$digest();
- // the listener is always called during the first $digest loop after it was registered
- expect(scope.counter).toEqual(1);
-
- scope.$digest();
- // but now it will not be called unless the value changes
- expect(scope.counter).toEqual(1);
-
- scope.name = 'adam';
- scope.$digest();
- expect(scope.counter).toEqual(2);
-
-
-
- // Using a function as a watchExpression
- var food;
- scope.foodCounter = 0;
- expect(scope.foodCounter).toEqual(0);
- scope.$watch(
- // This function returns the value being watched. It is called for each turn of the $digest loop
- function() { return food; },
- // This is the change listener, called when the value returned from the above function changes
- function(newValue, oldValue) {
- if ( newValue !== oldValue ) {
- // Only increment the counter if the value changed
- scope.foodCounter = scope.foodCounter + 1;
- }
- }
- );
- // No digest has been run so the counter will be zero
- expect(scope.foodCounter).toEqual(0);
-
- // Run the digest but since food has not changed count will still be zero
- scope.$digest();
- expect(scope.foodCounter).toEqual(0);
-
- // Update food and run digest. Now the counter will increment
- food = 'cheeseburger';
- scope.$digest();
- expect(scope.foodCounter).toEqual(1);
-
- * ```
- *
- *
- *
- * @param {(function()|string)} watchExpression Expression that is evaluated on each
- * {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers
- * a call to the `listener`.
- *
- * - `string`: Evaluated as {@link guide/expression expression}
- * - `function(scope)`: called with current `scope` as a parameter.
- * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value
- * of `watchExpression` changes.
- *
- * - `newVal` contains the current value of the `watchExpression`
- * - `oldVal` contains the previous value of the `watchExpression`
- * - `scope` refers to the current scope
- * @param {boolean=} [objectEquality=false] Compare for object equality using {@link angular.equals} instead of
- * comparing for reference equality.
- * @returns {function()} Returns a deregistration function for this listener.
- */
- $watch: function(watchExp, listener, objectEquality, prettyPrintExpression) {
- var get = $parse(watchExp);
-
- if (get.$$watchDelegate) {
- return get.$$watchDelegate(this, listener, objectEquality, get, watchExp);
- }
- var scope = this,
- array = scope.$$watchers,
- watcher = {
- fn: listener,
- last: initWatchVal,
- get: get,
- exp: prettyPrintExpression || watchExp,
- eq: !!objectEquality
- };
-
- lastDirtyWatch = null;
-
- if (!isFunction(listener)) {
- watcher.fn = noop;
- }
-
- if (!array) {
- array = scope.$$watchers = [];
- array.$$digestWatchIndex = -1;
- }
- // we use unshift since we use a while loop in $digest for speed.
- // the while loop reads in reverse order.
- array.unshift(watcher);
- array.$$digestWatchIndex++;
- incrementWatchersCount(this, 1);
-
- return function deregisterWatch() {
- var index = arrayRemove(array, watcher);
- if (index >= 0) {
- incrementWatchersCount(scope, -1);
- if (index < array.$$digestWatchIndex) {
- array.$$digestWatchIndex--;
- }
- }
- lastDirtyWatch = null;
- };
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$watchGroup
- * @kind function
- *
- * @description
- * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.
- * If any one expression in the collection changes the `listener` is executed.
- *
- * - The items in the `watchExpressions` array are observed via the standard `$watch` operation. Their return
- * values are examined for changes on every call to `$digest`.
- * - The `listener` is called whenever any expression in the `watchExpressions` array changes.
- *
- * @param {Array.<string|Function(scope)>} watchExpressions Array of expressions that will be individually
- * watched using {@link ng.$rootScope.Scope#$watch $watch()}
- *
- * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any
- * expression in `watchExpressions` changes
- * The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching
- * those of `watchExpression`
- * and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching
- * those of `watchExpression`
- * The `scope` refers to the current scope.
- * @returns {function()} Returns a de-registration function for all listeners.
- */
- $watchGroup: function(watchExpressions, listener) {
- var oldValues = new Array(watchExpressions.length);
- var newValues = new Array(watchExpressions.length);
- var deregisterFns = [];
- var self = this;
- var changeReactionScheduled = false;
- var firstRun = true;
-
- if (!watchExpressions.length) {
- // No expressions means we call the listener ASAP
- var shouldCall = true;
- self.$evalAsync(function() {
- if (shouldCall) listener(newValues, newValues, self);
- });
- return function deregisterWatchGroup() {
- shouldCall = false;
- };
- }
-
- if (watchExpressions.length === 1) {
- // Special case size of one
- return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) {
- newValues[0] = value;
- oldValues[0] = oldValue;
- listener(newValues, (value === oldValue) ? newValues : oldValues, scope);
- });
- }
-
- forEach(watchExpressions, function(expr, i) {
- var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) {
- newValues[i] = value;
- oldValues[i] = oldValue;
- if (!changeReactionScheduled) {
- changeReactionScheduled = true;
- self.$evalAsync(watchGroupAction);
- }
- });
- deregisterFns.push(unwatchFn);
- });
-
- function watchGroupAction() {
- changeReactionScheduled = false;
-
- if (firstRun) {
- firstRun = false;
- listener(newValues, newValues, self);
- } else {
- listener(newValues, oldValues, self);
- }
- }
-
- return function deregisterWatchGroup() {
- while (deregisterFns.length) {
- deregisterFns.shift()();
- }
- };
- },
-
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$watchCollection
- * @kind function
- *
- * @description
- * Shallow watches the properties of an object and fires whenever any of the properties change
- * (for arrays, this implies watching the array items; for object maps, this implies watching
- * the properties). If a change is detected, the `listener` callback is fired.
- *
- * - The `obj` collection is observed via standard $watch operation and is examined on every
- * call to $digest() to see if any items have been added, removed, or moved.
- * - The `listener` is called whenever anything within the `obj` has changed. Examples include
- * adding, removing, and moving items belonging to an object or array.
- *
- *
- * # Example
- * ```js
- $scope.names = ['igor', 'matias', 'misko', 'james'];
- $scope.dataCount = 4;
-
- $scope.$watchCollection('names', function(newNames, oldNames) {
- $scope.dataCount = newNames.length;
- });
-
- expect($scope.dataCount).toEqual(4);
- $scope.$digest();
-
- //still at 4 ... no changes
- expect($scope.dataCount).toEqual(4);
-
- $scope.names.pop();
- $scope.$digest();
-
- //now there's been a change
- expect($scope.dataCount).toEqual(3);
- * ```
- *
- *
- * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The
- * expression value should evaluate to an object or an array which is observed on each
- * {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the
- * collection will trigger a call to the `listener`.
- *
- * @param {function(newCollection, oldCollection, scope)} listener a callback function called
- * when a change is detected.
- * - The `newCollection` object is the newly modified data obtained from the `obj` expression
- * - The `oldCollection` object is a copy of the former collection data.
- * Due to performance considerations, the`oldCollection` value is computed only if the
- * `listener` function declares two or more arguments.
- * - The `scope` argument refers to the current scope.
- *
- * @returns {function()} Returns a de-registration function for this listener. When the
- * de-registration function is executed, the internal watch operation is terminated.
- */
- $watchCollection: function(obj, listener) {
- $watchCollectionInterceptor.$stateful = true;
-
- var self = this;
- // the current value, updated on each dirty-check run
- var newValue;
- // a shallow copy of the newValue from the last dirty-check run,
- // updated to match newValue during dirty-check run
- var oldValue;
- // a shallow copy of the newValue from when the last change happened
- var veryOldValue;
- // only track veryOldValue if the listener is asking for it
- var trackVeryOldValue = (listener.length > 1);
- var changeDetected = 0;
- var changeDetector = $parse(obj, $watchCollectionInterceptor);
- var internalArray = [];
- var internalObject = {};
- var initRun = true;
- var oldLength = 0;
-
- function $watchCollectionInterceptor(_value) {
- newValue = _value;
- var newLength, key, bothNaN, newItem, oldItem;
-
- // If the new value is undefined, then return undefined as the watch may be a one-time watch
- if (isUndefined(newValue)) return;
-
- if (!isObject(newValue)) { // if primitive
- if (oldValue !== newValue) {
- oldValue = newValue;
- changeDetected++;
- }
- } else if (isArrayLike(newValue)) {
- if (oldValue !== internalArray) {
- // we are transitioning from something which was not an array into array.
- oldValue = internalArray;
- oldLength = oldValue.length = 0;
- changeDetected++;
- }
-
- newLength = newValue.length;
-
- if (oldLength !== newLength) {
- // if lengths do not match we need to trigger change notification
- changeDetected++;
- oldValue.length = oldLength = newLength;
- }
- // copy the items to oldValue and look for changes.
- for (var i = 0; i < newLength; i++) {
- oldItem = oldValue[i];
- newItem = newValue[i];
-
- // eslint-disable-next-line no-self-compare
- bothNaN = (oldItem !== oldItem) && (newItem !== newItem);
- if (!bothNaN && (oldItem !== newItem)) {
- changeDetected++;
- oldValue[i] = newItem;
- }
- }
- } else {
- if (oldValue !== internalObject) {
- // we are transitioning from something which was not an object into object.
- oldValue = internalObject = {};
- oldLength = 0;
- changeDetected++;
- }
- // copy the items to oldValue and look for changes.
- newLength = 0;
- for (key in newValue) {
- if (hasOwnProperty.call(newValue, key)) {
- newLength++;
- newItem = newValue[key];
- oldItem = oldValue[key];
-
- if (key in oldValue) {
- // eslint-disable-next-line no-self-compare
- bothNaN = (oldItem !== oldItem) && (newItem !== newItem);
- if (!bothNaN && (oldItem !== newItem)) {
- changeDetected++;
- oldValue[key] = newItem;
- }
- } else {
- oldLength++;
- oldValue[key] = newItem;
- changeDetected++;
- }
- }
- }
- if (oldLength > newLength) {
- // we used to have more keys, need to find them and destroy them.
- changeDetected++;
- for (key in oldValue) {
- if (!hasOwnProperty.call(newValue, key)) {
- oldLength--;
- delete oldValue[key];
- }
- }
- }
- }
- return changeDetected;
- }
-
- function $watchCollectionAction() {
- if (initRun) {
- initRun = false;
- listener(newValue, newValue, self);
- } else {
- listener(newValue, veryOldValue, self);
- }
-
- // make a copy for the next time a collection is changed
- if (trackVeryOldValue) {
- if (!isObject(newValue)) {
- //primitive
- veryOldValue = newValue;
- } else if (isArrayLike(newValue)) {
- veryOldValue = new Array(newValue.length);
- for (var i = 0; i < newValue.length; i++) {
- veryOldValue[i] = newValue[i];
- }
- } else { // if object
- veryOldValue = {};
- for (var key in newValue) {
- if (hasOwnProperty.call(newValue, key)) {
- veryOldValue[key] = newValue[key];
- }
- }
- }
- }
- }
-
- return this.$watch(changeDetector, $watchCollectionAction);
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$digest
- * @kind function
- *
- * @description
- * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and
- * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change
- * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}
- * until no more listeners are firing. This means that it is possible to get into an infinite
- * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of
- * iterations exceeds 10.
- *
- * Usually, you don't call `$digest()` directly in
- * {@link ng.directive:ngController controllers} or in
- * {@link ng.$compileProvider#directive directives}.
- * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within
- * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.
- *
- * If you want to be notified whenever `$digest()` is called,
- * you can register a `watchExpression` function with
- * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.
- *
- * In unit tests, you may need to call `$digest()` to simulate the scope life cycle.
- *
- * # Example
- * ```js
- var scope = ...;
- scope.name = 'misko';
- scope.counter = 0;
-
- expect(scope.counter).toEqual(0);
- scope.$watch('name', function(newValue, oldValue) {
- scope.counter = scope.counter + 1;
- });
- expect(scope.counter).toEqual(0);
-
- scope.$digest();
- // the listener is always called during the first $digest loop after it was registered
- expect(scope.counter).toEqual(1);
-
- scope.$digest();
- // but now it will not be called unless the value changes
- expect(scope.counter).toEqual(1);
-
- scope.name = 'adam';
- scope.$digest();
- expect(scope.counter).toEqual(2);
- * ```
- *
- */
- $digest: function() {
- var watch, value, last, fn, get,
- watchers,
- dirty, ttl = TTL,
- next, current, target = this,
- watchLog = [],
- logIdx, asyncTask;
-
- beginPhase('$digest');
- // Check for changes to browser url that happened in sync before the call to $digest
- $browser.$$checkUrlChange();
-
- if (this === $rootScope && applyAsyncId !== null) {
- // If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then
- // cancel the scheduled $apply and flush the queue of expressions to be evaluated.
- $browser.defer.cancel(applyAsyncId);
- flushApplyAsync();
- }
-
- lastDirtyWatch = null;
-
- do { // "while dirty" loop
- dirty = false;
- current = target;
-
- // It's safe for asyncQueuePosition to be a local variable here because this loop can't
- // be reentered recursively. Calling $digest from a function passed to $applyAsync would
- // lead to a '$digest already in progress' error.
- for (var asyncQueuePosition = 0; asyncQueuePosition < asyncQueue.length; asyncQueuePosition++) {
- try {
- asyncTask = asyncQueue[asyncQueuePosition];
- asyncTask.scope.$eval(asyncTask.expression, asyncTask.locals);
- } catch (e) {
- $exceptionHandler(e);
- }
- lastDirtyWatch = null;
- }
- asyncQueue.length = 0;
-
- traverseScopesLoop:
- do { // "traverse the scopes" loop
- if ((watchers = current.$$watchers)) {
- // process our watches
- watchers.$$digestWatchIndex = watchers.length;
- while (watchers.$$digestWatchIndex--) {
- try {
- watch = watchers[watchers.$$digestWatchIndex];
- // Most common watches are on primitives, in which case we can short
- // circuit it with === operator, only when === fails do we use .equals
- if (watch) {
- get = watch.get;
- if ((value = get(current)) !== (last = watch.last) &&
- !(watch.eq
- ? equals(value, last)
- : (isNumberNaN(value) && isNumberNaN(last)))) {
- dirty = true;
- lastDirtyWatch = watch;
- watch.last = watch.eq ? copy(value, null) : value;
- fn = watch.fn;
- fn(value, ((last === initWatchVal) ? value : last), current);
- if (ttl < 5) {
- logIdx = 4 - ttl;
- if (!watchLog[logIdx]) watchLog[logIdx] = [];
- watchLog[logIdx].push({
- msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp,
- newVal: value,
- oldVal: last
- });
- }
- } else if (watch === lastDirtyWatch) {
- // If the most recently dirty watcher is now clean, short circuit since the remaining watchers
- // have already been tested.
- dirty = false;
- break traverseScopesLoop;
- }
- }
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- }
-
- // Insanity Warning: scope depth-first traversal
- // yes, this code is a bit crazy, but it works and we have tests to prove it!
- // this piece should be kept in sync with the traversal in $broadcast
- if (!(next = ((current.$$watchersCount && current.$$childHead) ||
- (current !== target && current.$$nextSibling)))) {
- while (current !== target && !(next = current.$$nextSibling)) {
- current = current.$parent;
- }
- }
- } while ((current = next));
-
- // `break traverseScopesLoop;` takes us to here
-
- if ((dirty || asyncQueue.length) && !(ttl--)) {
- clearPhase();
- throw $rootScopeMinErr('infdig',
- '{0} $digest() iterations reached. Aborting!\n' +
- 'Watchers fired in the last 5 iterations: {1}',
- TTL, watchLog);
- }
-
- } while (dirty || asyncQueue.length);
-
- clearPhase();
-
- // postDigestQueuePosition isn't local here because this loop can be reentered recursively.
- while (postDigestQueuePosition < postDigestQueue.length) {
- try {
- postDigestQueue[postDigestQueuePosition++]();
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- postDigestQueue.length = postDigestQueuePosition = 0;
- },
-
-
- /**
- * @ngdoc event
- * @name $rootScope.Scope#$destroy
- * @eventType broadcast on scope being destroyed
- *
- * @description
- * Broadcasted when a scope and its children are being destroyed.
- *
- * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
- * clean up DOM bindings before an element is removed from the DOM.
- */
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$destroy
- * @kind function
- *
- * @description
- * Removes the current scope (and all of its children) from the parent scope. Removal implies
- * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer
- * propagate to the current scope and its children. Removal also implies that the current
- * scope is eligible for garbage collection.
- *
- * The `$destroy()` is usually used by directives such as
- * {@link ng.directive:ngRepeat ngRepeat} for managing the
- * unrolling of the loop.
- *
- * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.
- * Application code can register a `$destroy` event handler that will give it a chance to
- * perform any necessary cleanup.
- *
- * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
- * clean up DOM bindings before an element is removed from the DOM.
- */
- $destroy: function() {
- // We can't destroy a scope that has been already destroyed.
- if (this.$$destroyed) return;
- var parent = this.$parent;
-
- this.$broadcast('$destroy');
- this.$$destroyed = true;
-
- if (this === $rootScope) {
- //Remove handlers attached to window when $rootScope is removed
- $browser.$$applicationDestroyed();
- }
-
- incrementWatchersCount(this, -this.$$watchersCount);
- for (var eventName in this.$$listenerCount) {
- decrementListenerCount(this, this.$$listenerCount[eventName], eventName);
- }
-
- // sever all the references to parent scopes (after this cleanup, the current scope should
- // not be retained by any of our references and should be eligible for garbage collection)
- if (parent && parent.$$childHead === this) parent.$$childHead = this.$$nextSibling;
- if (parent && parent.$$childTail === this) parent.$$childTail = this.$$prevSibling;
- if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;
- if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;
-
- // Disable listeners, watchers and apply/digest methods
- this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop;
- this.$on = this.$watch = this.$watchGroup = function() { return noop; };
- this.$$listeners = {};
-
- // Disconnect the next sibling to prevent `cleanUpScope` destroying those too
- this.$$nextSibling = null;
- cleanUpScope(this);
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$eval
- * @kind function
- *
- * @description
- * Executes the `expression` on the current scope and returns the result. Any exceptions in
- * the expression are propagated (uncaught). This is useful when evaluating Angular
- * expressions.
- *
- * # Example
- * ```js
- var scope = ng.$rootScope.Scope();
- scope.a = 1;
- scope.b = 2;
-
- expect(scope.$eval('a+b')).toEqual(3);
- expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);
- * ```
- *
- * @param {(string|function())=} expression An angular expression to be executed.
- *
- * - `string`: execute using the rules as defined in {@link guide/expression expression}.
- * - `function(scope)`: execute the function with the current `scope` parameter.
- *
- * @param {(object)=} locals Local variables object, useful for overriding values in scope.
- * @returns {*} The result of evaluating the expression.
- */
- $eval: function(expr, locals) {
- return $parse(expr)(this, locals);
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$evalAsync
- * @kind function
- *
- * @description
- * Executes the expression on the current scope at a later point in time.
- *
- * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only
- * that:
- *
- * - it will execute after the function that scheduled the evaluation (preferably before DOM
- * rendering).
- * - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after
- * `expression` execution.
- *
- * Any exceptions from the execution of the expression are forwarded to the
- * {@link ng.$exceptionHandler $exceptionHandler} service.
- *
- * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle
- * will be scheduled. However, it is encouraged to always call code that changes the model
- * from within an `$apply` call. That includes code evaluated via `$evalAsync`.
- *
- * @param {(string|function())=} expression An angular expression to be executed.
- *
- * - `string`: execute using the rules as defined in {@link guide/expression expression}.
- * - `function(scope)`: execute the function with the current `scope` parameter.
- *
- * @param {(object)=} locals Local variables object, useful for overriding values in scope.
- */
- $evalAsync: function(expr, locals) {
- // if we are outside of an $digest loop and this is the first time we are scheduling async
- // task also schedule async auto-flush
- if (!$rootScope.$$phase && !asyncQueue.length) {
- $browser.defer(function() {
- if (asyncQueue.length) {
- $rootScope.$digest();
- }
- });
- }
-
- asyncQueue.push({scope: this, expression: $parse(expr), locals: locals});
- },
-
- $$postDigest: function(fn) {
- postDigestQueue.push(fn);
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$apply
- * @kind function
- *
- * @description
- * `$apply()` is used to execute an expression in angular from outside of the angular
- * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).
- * Because we are calling into the angular framework we need to perform proper scope life
- * cycle of {@link ng.$exceptionHandler exception handling},
- * {@link ng.$rootScope.Scope#$digest executing watches}.
- *
- * ## Life cycle
- *
- * # Pseudo-Code of `$apply()`
- * ```js
- function $apply(expr) {
- try {
- return $eval(expr);
- } catch (e) {
- $exceptionHandler(e);
- } finally {
- $root.$digest();
- }
- }
- * ```
- *
- *
- * Scope's `$apply()` method transitions through the following stages:
- *
- * 1. The {@link guide/expression expression} is executed using the
- * {@link ng.$rootScope.Scope#$eval $eval()} method.
- * 2. Any exceptions from the execution of the expression are forwarded to the
- * {@link ng.$exceptionHandler $exceptionHandler} service.
- * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the
- * expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.
- *
- *
- * @param {(string|function())=} exp An angular expression to be executed.
- *
- * - `string`: execute using the rules as defined in {@link guide/expression expression}.
- * - `function(scope)`: execute the function with current `scope` parameter.
- *
- * @returns {*} The result of evaluating the expression.
- */
- $apply: function(expr) {
- try {
- beginPhase('$apply');
- try {
- return this.$eval(expr);
- } finally {
- clearPhase();
- }
- } catch (e) {
- $exceptionHandler(e);
- } finally {
- try {
- $rootScope.$digest();
- } catch (e) {
- $exceptionHandler(e);
- // eslint-disable-next-line no-unsafe-finally
- throw e;
- }
- }
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$applyAsync
- * @kind function
- *
- * @description
- * Schedule the invocation of $apply to occur at a later time. The actual time difference
- * varies across browsers, but is typically around ~10 milliseconds.
- *
- * This can be used to queue up multiple expressions which need to be evaluated in the same
- * digest.
- *
- * @param {(string|function())=} exp An angular expression to be executed.
- *
- * - `string`: execute using the rules as defined in {@link guide/expression expression}.
- * - `function(scope)`: execute the function with current `scope` parameter.
- */
- $applyAsync: function(expr) {
- var scope = this;
- if (expr) {
- applyAsyncQueue.push($applyAsyncExpression);
- }
- expr = $parse(expr);
- scheduleApplyAsync();
-
- function $applyAsyncExpression() {
- scope.$eval(expr);
- }
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$on
- * @kind function
- *
- * @description
- * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for
- * discussion of event life cycle.
- *
- * The event listener function format is: `function(event, args...)`. The `event` object
- * passed into the listener has the following attributes:
- *
- * - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or
- * `$broadcast`-ed.
- * - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the
- * event propagates through the scope hierarchy, this property is set to null.
- * - `name` - `{string}`: name of the event.
- * - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel
- * further event propagation (available only for events that were `$emit`-ed).
- * - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag
- * to true.
- * - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
- *
- * @param {string} name Event name to listen on.
- * @param {function(event, ...args)} listener Function to call when the event is emitted.
- * @returns {function()} Returns a deregistration function for this listener.
- */
- $on: function(name, listener) {
- var namedListeners = this.$$listeners[name];
- if (!namedListeners) {
- this.$$listeners[name] = namedListeners = [];
- }
- namedListeners.push(listener);
-
- var current = this;
- do {
- if (!current.$$listenerCount[name]) {
- current.$$listenerCount[name] = 0;
- }
- current.$$listenerCount[name]++;
- } while ((current = current.$parent));
-
- var self = this;
- return function() {
- var indexOfListener = namedListeners.indexOf(listener);
- if (indexOfListener !== -1) {
- namedListeners[indexOfListener] = null;
- decrementListenerCount(self, 1, name);
- }
- };
- },
-
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$emit
- * @kind function
- *
- * @description
- * Dispatches an event `name` upwards through the scope hierarchy notifying the
- * registered {@link ng.$rootScope.Scope#$on} listeners.
- *
- * The event life cycle starts at the scope on which `$emit` was called. All
- * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get
- * notified. Afterwards, the event traverses upwards toward the root scope and calls all
- * registered listeners along the way. The event will stop propagating if one of the listeners
- * cancels it.
- *
- * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
- * onto the {@link ng.$exceptionHandler $exceptionHandler} service.
- *
- * @param {string} name Event name to emit.
- * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
- * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).
- */
- $emit: function(name, args) {
- var empty = [],
- namedListeners,
- scope = this,
- stopPropagation = false,
- event = {
- name: name,
- targetScope: scope,
- stopPropagation: function() {stopPropagation = true;},
- preventDefault: function() {
- event.defaultPrevented = true;
- },
- defaultPrevented: false
- },
- listenerArgs = concat([event], arguments, 1),
- i, length;
-
- do {
- namedListeners = scope.$$listeners[name] || empty;
- event.currentScope = scope;
- for (i = 0, length = namedListeners.length; i < length; i++) {
-
- // if listeners were deregistered, defragment the array
- if (!namedListeners[i]) {
- namedListeners.splice(i, 1);
- i--;
- length--;
- continue;
- }
- try {
- //allow all listeners attached to the current scope to run
- namedListeners[i].apply(null, listenerArgs);
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- //if any listener on the current scope stops propagation, prevent bubbling
- if (stopPropagation) {
- event.currentScope = null;
- return event;
- }
- //traverse upwards
- scope = scope.$parent;
- } while (scope);
-
- event.currentScope = null;
-
- return event;
- },
-
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$broadcast
- * @kind function
- *
- * @description
- * Dispatches an event `name` downwards to all child scopes (and their children) notifying the
- * registered {@link ng.$rootScope.Scope#$on} listeners.
- *
- * The event life cycle starts at the scope on which `$broadcast` was called. All
- * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get
- * notified. Afterwards, the event propagates to all direct and indirect scopes of the current
- * scope and calls all registered listeners along the way. The event cannot be canceled.
- *
- * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
- * onto the {@link ng.$exceptionHandler $exceptionHandler} service.
- *
- * @param {string} name Event name to broadcast.
- * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
- * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}
- */
- $broadcast: function(name, args) {
- var target = this,
- current = target,
- next = target,
- event = {
- name: name,
- targetScope: target,
- preventDefault: function() {
- event.defaultPrevented = true;
- },
- defaultPrevented: false
- };
-
- if (!target.$$listenerCount[name]) return event;
-
- var listenerArgs = concat([event], arguments, 1),
- listeners, i, length;
-
- //down while you can, then up and next sibling or up and next sibling until back at root
- while ((current = next)) {
- event.currentScope = current;
- listeners = current.$$listeners[name] || [];
- for (i = 0, length = listeners.length; i < length; i++) {
- // if listeners were deregistered, defragment the array
- if (!listeners[i]) {
- listeners.splice(i, 1);
- i--;
- length--;
- continue;
- }
-
- try {
- listeners[i].apply(null, listenerArgs);
- } catch (e) {
- $exceptionHandler(e);
- }
- }
-
- // Insanity Warning: scope depth-first traversal
- // yes, this code is a bit crazy, but it works and we have tests to prove it!
- // this piece should be kept in sync with the traversal in $digest
- // (though it differs due to having the extra check for $$listenerCount)
- if (!(next = ((current.$$listenerCount[name] && current.$$childHead) ||
- (current !== target && current.$$nextSibling)))) {
- while (current !== target && !(next = current.$$nextSibling)) {
- current = current.$parent;
- }
- }
- }
-
- event.currentScope = null;
- return event;
- }
- };
-
- var $rootScope = new Scope();
-
- //The internal queues. Expose them on the $rootScope for debugging/testing purposes.
- var asyncQueue = $rootScope.$$asyncQueue = [];
- var postDigestQueue = $rootScope.$$postDigestQueue = [];
- var applyAsyncQueue = $rootScope.$$applyAsyncQueue = [];
-
- var postDigestQueuePosition = 0;
-
- return $rootScope;
-
-
- function beginPhase(phase) {
- if ($rootScope.$$phase) {
- throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase);
- }
-
- $rootScope.$$phase = phase;
- }
-
- function clearPhase() {
- $rootScope.$$phase = null;
- }
-
- function incrementWatchersCount(current, count) {
- do {
- current.$$watchersCount += count;
- } while ((current = current.$parent));
- }
-
- function decrementListenerCount(current, count, name) {
- do {
- current.$$listenerCount[name] -= count;
-
- if (current.$$listenerCount[name] === 0) {
- delete current.$$listenerCount[name];
- }
- } while ((current = current.$parent));
- }
-
- /**
- * function used as an initial value for watchers.
- * because it's unique we can easily tell it apart from other values
- */
- function initWatchVal() {}
-
- function flushApplyAsync() {
- while (applyAsyncQueue.length) {
- try {
- applyAsyncQueue.shift()();
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- applyAsyncId = null;
- }
-
- function scheduleApplyAsync() {
- if (applyAsyncId === null) {
- applyAsyncId = $browser.defer(function() {
- $rootScope.$apply(flushApplyAsync);
- });
- }
- }
- }];
-}
-
-/**
- * @ngdoc service
- * @name $rootElement
- *
- * @description
- * The root element of Angular application. This is either the element where {@link
- * ng.directive:ngApp ngApp} was declared or the element passed into
- * {@link angular.bootstrap}. The element represents the root element of application. It is also the
- * location where the application's {@link auto.$injector $injector} service gets
- * published, and can be retrieved using `$rootElement.injector()`.
- */
-
-
-// the implementation is in angular.bootstrap
-
-/**
- * @this
- * @description
- * Private service to sanitize uris for links and images. Used by $compile and $sanitize.
- */
-function $$SanitizeUriProvider() {
- var aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|file):/,
- imgSrcSanitizationWhitelist = /^\s*((https?|ftp|file|blob):|data:image\/)/;
-
- /**
- * @description
- * Retrieves or overrides the default regular expression that is used for whitelisting of safe
- * urls during a[href] sanitization.
- *
- * The sanitization is a security measure aimed at prevent XSS attacks via html links.
- *
- * Any url about to be assigned to a[href] via data-binding is first normalized and turned into
- * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`
- * regular expression. If a match is found, the original url is written into the dom. Otherwise,
- * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
- *
- * @param {RegExp=} regexp New regexp to whitelist urls with.
- * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
- * chaining otherwise.
- */
- this.aHrefSanitizationWhitelist = function(regexp) {
- if (isDefined(regexp)) {
- aHrefSanitizationWhitelist = regexp;
- return this;
- }
- return aHrefSanitizationWhitelist;
- };
-
-
- /**
- * @description
- * Retrieves or overrides the default regular expression that is used for whitelisting of safe
- * urls during img[src] sanitization.
- *
- * The sanitization is a security measure aimed at prevent XSS attacks via html links.
- *
- * Any url about to be assigned to img[src] via data-binding is first normalized and turned into
- * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`
- * regular expression. If a match is found, the original url is written into the dom. Otherwise,
- * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
- *
- * @param {RegExp=} regexp New regexp to whitelist urls with.
- * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
- * chaining otherwise.
- */
- this.imgSrcSanitizationWhitelist = function(regexp) {
- if (isDefined(regexp)) {
- imgSrcSanitizationWhitelist = regexp;
- return this;
- }
- return imgSrcSanitizationWhitelist;
- };
-
- this.$get = function() {
- return function sanitizeUri(uri, isImage) {
- var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist;
- var normalizedVal;
- normalizedVal = urlResolve(uri).href;
- if (normalizedVal !== '' && !normalizedVal.match(regex)) {
- return 'unsafe:' + normalizedVal;
- }
- return uri;
- };
- };
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables likes document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/* exported $SceProvider, $SceDelegateProvider */
-
-var $sceMinErr = minErr('$sce');
-
-var SCE_CONTEXTS = {
- HTML: 'html',
- CSS: 'css',
- URL: 'url',
- // RESOURCE_URL is a subtype of URL used in contexts where a privileged resource is sourced from a
- // url. (e.g. ng-include, script src, templateUrl)
- RESOURCE_URL: 'resourceUrl',
- JS: 'js'
-};
-
-// Helper functions follow.
-
-function adjustMatcher(matcher) {
- if (matcher === 'self') {
- return matcher;
- } else if (isString(matcher)) {
- // Strings match exactly except for 2 wildcards - '*' and '**'.
- // '*' matches any character except those from the set ':/.?&'.
- // '**' matches any character (like .* in a RegExp).
- // More than 2 *'s raises an error as it's ill defined.
- if (matcher.indexOf('***') > -1) {
- throw $sceMinErr('iwcard',
- 'Illegal sequence *** in string matcher. String: {0}', matcher);
- }
- matcher = escapeForRegexp(matcher).
- replace(/\\\*\\\*/g, '.*').
- replace(/\\\*/g, '[^:/.?&;]*');
- return new RegExp('^' + matcher + '$');
- } else if (isRegExp(matcher)) {
- // The only other type of matcher allowed is a Regexp.
- // Match entire URL / disallow partial matches.
- // Flags are reset (i.e. no global, ignoreCase or multiline)
- return new RegExp('^' + matcher.source + '$');
- } else {
- throw $sceMinErr('imatcher',
- 'Matchers may only be "self", string patterns or RegExp objects');
- }
-}
-
-
-function adjustMatchers(matchers) {
- var adjustedMatchers = [];
- if (isDefined(matchers)) {
- forEach(matchers, function(matcher) {
- adjustedMatchers.push(adjustMatcher(matcher));
- });
- }
- return adjustedMatchers;
-}
-
-
-/**
- * @ngdoc service
- * @name $sceDelegate
- * @kind function
- *
- * @description
- *
- * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict
- * Contextual Escaping (SCE)} services to AngularJS.
- *
- * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of
- * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS. This is
- * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to
- * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things
- * work because `$sce` delegates to `$sceDelegate` for these operations.
- *
- * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.
- *
- * The default instance of `$sceDelegate` should work out of the box with little pain. While you
- * can override it completely to change the behavior of `$sce`, the common case would
- * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting
- * your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as
- * templates. Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist
- * $sceDelegateProvider.resourceUrlWhitelist} and {@link
- * ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}
- */
-
-/**
- * @ngdoc provider
- * @name $sceDelegateProvider
- * @this
- *
- * @description
- *
- * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate
- * $sceDelegate} service. This allows one to get/set the whitelists and blacklists used to ensure
- * that the URLs used for sourcing Angular templates are safe. Refer {@link
- * ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist} and
- * {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}
- *
- * For the general details about this service in Angular, read the main page for {@link ng.$sce
- * Strict Contextual Escaping (SCE)}.
- *
- * **Example**: Consider the following case. <a name="example"></a>
- *
- * - your app is hosted at url `http://myapp.example.com/`
- * - but some of your templates are hosted on other domains you control such as
- * `http://srv01.assets.example.com/`, `http://srv02.assets.example.com/`, etc.
- * - and you have an open redirect at `http://myapp.example.com/clickThru?...`.
- *
- * Here is what a secure configuration for this scenario might look like:
- *
- * ```
- * angular.module('myApp', []).config(function($sceDelegateProvider) {
- * $sceDelegateProvider.resourceUrlWhitelist([
- * // Allow same origin resource loads.
- * 'self',
- * // Allow loading from our assets domain. Notice the difference between * and **.
- * 'http://srv*.assets.example.com/**'
- * ]);
- *
- * // The blacklist overrides the whitelist so the open redirect here is blocked.
- * $sceDelegateProvider.resourceUrlBlacklist([
- * 'http://myapp.example.com/clickThru**'
- * ]);
- * });
- * ```
- */
-
-function $SceDelegateProvider() {
- this.SCE_CONTEXTS = SCE_CONTEXTS;
-
- // Resource URLs can also be trusted by policy.
- var resourceUrlWhitelist = ['self'],
- resourceUrlBlacklist = [];
-
- /**
- * @ngdoc method
- * @name $sceDelegateProvider#resourceUrlWhitelist
- * @kind function
- *
- * @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value
- * provided. This must be an array or null. A snapshot of this array is used so further
- * changes to the array are ignored.
- *
- * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
- * allowed in this array.
- *
- * <div class="alert alert-warning">
- * **Note:** an empty whitelist array will block all URLs!
- * </div>
- *
- * @return {Array} the currently set whitelist array.
- *
- * The **default value** when no whitelist has been explicitly set is `['self']` allowing only
- * same origin resource requests.
- *
- * @description
- * Sets/Gets the whitelist of trusted resource URLs.
- */
- this.resourceUrlWhitelist = function(value) {
- if (arguments.length) {
- resourceUrlWhitelist = adjustMatchers(value);
- }
- return resourceUrlWhitelist;
- };
-
- /**
- * @ngdoc method
- * @name $sceDelegateProvider#resourceUrlBlacklist
- * @kind function
- *
- * @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value
- * provided. This must be an array or null. A snapshot of this array is used so further
- * changes to the array are ignored.
- *
- * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
- * allowed in this array.
- *
- * The typical usage for the blacklist is to **block
- * [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as
- * these would otherwise be trusted but actually return content from the redirected domain.
- *
- * Finally, **the blacklist overrides the whitelist** and has the final say.
- *
- * @return {Array} the currently set blacklist array.
- *
- * The **default value** when no whitelist has been explicitly set is the empty array (i.e. there
- * is no blacklist.)
- *
- * @description
- * Sets/Gets the blacklist of trusted resource URLs.
- */
-
- this.resourceUrlBlacklist = function(value) {
- if (arguments.length) {
- resourceUrlBlacklist = adjustMatchers(value);
- }
- return resourceUrlBlacklist;
- };
-
- this.$get = ['$injector', function($injector) {
-
- var htmlSanitizer = function htmlSanitizer(html) {
- throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');
- };
-
- if ($injector.has('$sanitize')) {
- htmlSanitizer = $injector.get('$sanitize');
- }
-
-
- function matchUrl(matcher, parsedUrl) {
- if (matcher === 'self') {
- return urlIsSameOrigin(parsedUrl);
- } else {
- // definitely a regex. See adjustMatchers()
- return !!matcher.exec(parsedUrl.href);
- }
- }
-
- function isResourceUrlAllowedByPolicy(url) {
- var parsedUrl = urlResolve(url.toString());
- var i, n, allowed = false;
- // Ensure that at least one item from the whitelist allows this url.
- for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) {
- if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) {
- allowed = true;
- break;
- }
- }
- if (allowed) {
- // Ensure that no item from the blacklist blocked this url.
- for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) {
- if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) {
- allowed = false;
- break;
- }
- }
- }
- return allowed;
- }
-
- function generateHolderType(Base) {
- var holderType = function TrustedValueHolderType(trustedValue) {
- this.$$unwrapTrustedValue = function() {
- return trustedValue;
- };
- };
- if (Base) {
- holderType.prototype = new Base();
- }
- holderType.prototype.valueOf = function sceValueOf() {
- return this.$$unwrapTrustedValue();
- };
- holderType.prototype.toString = function sceToString() {
- return this.$$unwrapTrustedValue().toString();
- };
- return holderType;
- }
-
- var trustedValueHolderBase = generateHolderType(),
- byType = {};
-
- byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase);
- byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase);
- byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase);
- byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase);
- byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]);
-
- /**
- * @ngdoc method
- * @name $sceDelegate#trustAs
- *
- * @description
- * Returns an object that is trusted by angular for use in specified strict
- * contextual escaping contexts (such as ng-bind-html, ng-include, any src
- * attribute interpolation, any dom event binding attribute interpolation
- * such as for onclick, etc.) that uses the provided value.
- * See {@link ng.$sce $sce} for enabling strict contextual escaping.
- *
- * @param {string} type The kind of context in which this value is safe for use. e.g. url,
- * resourceUrl, html, js and css.
- * @param {*} value The value that that should be considered trusted/safe.
- * @returns {*} A value that can be used to stand in for the provided `value` in places
- * where Angular expects a $sce.trustAs() return value.
- */
- function trustAs(type, trustedValue) {
- var Constructor = (byType.hasOwnProperty(type) ? byType[type] : null);
- if (!Constructor) {
- throw $sceMinErr('icontext',
- 'Attempted to trust a value in invalid context. Context: {0}; Value: {1}',
- type, trustedValue);
- }
- if (trustedValue === null || isUndefined(trustedValue) || trustedValue === '') {
- return trustedValue;
- }
- // All the current contexts in SCE_CONTEXTS happen to be strings. In order to avoid trusting
- // mutable objects, we ensure here that the value passed in is actually a string.
- if (typeof trustedValue !== 'string') {
- throw $sceMinErr('itype',
- 'Attempted to trust a non-string value in a content requiring a string: Context: {0}',
- type);
- }
- return new Constructor(trustedValue);
- }
-
- /**
- * @ngdoc method
- * @name $sceDelegate#valueOf
- *
- * @description
- * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs
- * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link
- * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.
- *
- * If the passed parameter is not a value that had been returned by {@link
- * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, returns it as-is.
- *
- * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}
- * call or anything else.
- * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs
- * `$sceDelegate.trustAs`} if `value` is the result of such a call. Otherwise, returns
- * `value` unchanged.
- */
- function valueOf(maybeTrusted) {
- if (maybeTrusted instanceof trustedValueHolderBase) {
- return maybeTrusted.$$unwrapTrustedValue();
- } else {
- return maybeTrusted;
- }
- }
-
- /**
- * @ngdoc method
- * @name $sceDelegate#getTrusted
- *
- * @description
- * Takes the result of a {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call and
- * returns the originally supplied value if the queried context type is a supertype of the
- * created type. If this condition isn't satisfied, throws an exception.
- *
- * <div class="alert alert-danger">
- * Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting
- * (XSS) vulnerability in your application.
- * </div>
- *
- * @param {string} type The kind of context in which this value is to be used.
- * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs
- * `$sceDelegate.trustAs`} call.
- * @returns {*} The value the was originally provided to {@link ng.$sceDelegate#trustAs
- * `$sceDelegate.trustAs`} if valid in this context. Otherwise, throws an exception.
- */
- function getTrusted(type, maybeTrusted) {
- if (maybeTrusted === null || isUndefined(maybeTrusted) || maybeTrusted === '') {
- return maybeTrusted;
- }
- var constructor = (byType.hasOwnProperty(type) ? byType[type] : null);
- if (constructor && maybeTrusted instanceof constructor) {
- return maybeTrusted.$$unwrapTrustedValue();
- }
- // If we get here, then we may only take one of two actions.
- // 1. sanitize the value for the requested type, or
- // 2. throw an exception.
- if (type === SCE_CONTEXTS.RESOURCE_URL) {
- if (isResourceUrlAllowedByPolicy(maybeTrusted)) {
- return maybeTrusted;
- } else {
- throw $sceMinErr('insecurl',
- 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}',
- maybeTrusted.toString());
- }
- } else if (type === SCE_CONTEXTS.HTML) {
- return htmlSanitizer(maybeTrusted);
- }
- throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');
- }
-
- return { trustAs: trustAs,
- getTrusted: getTrusted,
- valueOf: valueOf };
- }];
-}
-
-
-/**
- * @ngdoc provider
- * @name $sceProvider
- * @this
- *
- * @description
- *
- * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.
- * - enable/disable Strict Contextual Escaping (SCE) in a module
- * - override the default implementation with a custom delegate
- *
- * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.
- */
-
-/**
- * @ngdoc service
- * @name $sce
- * @kind function
- *
- * @description
- *
- * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.
- *
- * # Strict Contextual Escaping
- *
- * Strict Contextual Escaping (SCE) is a mode in which AngularJS requires bindings in certain
- * contexts to result in a value that is marked as safe to use for that context. One example of
- * such a context is binding arbitrary html controlled by the user via `ng-bind-html`. We refer
- * to these contexts as privileged or SCE contexts.
- *
- * As of version 1.2, Angular ships with SCE enabled by default.
- *
- * Note: When enabled (the default), IE<11 in quirks mode is not supported. In this mode, IE<11 allow
- * one to execute arbitrary javascript by the use of the expression() syntax. Refer
- * <http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx> to learn more about them.
- * You can ensure your document is in standards mode and not quirks mode by adding `<!doctype html>`
- * to the top of your HTML document.
- *
- * SCE assists in writing code in a way that (a) is secure by default and (b) makes auditing for
- * security vulnerabilities such as XSS, clickjacking, etc. a lot easier.
- *
- * Here's an example of a binding in a privileged context:
- *
- * ```
- * <input ng-model="userHtml" aria-label="User input">
- * <div ng-bind-html="userHtml"></div>
- * ```
- *
- * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE
- * disabled, this application allows the user to render arbitrary HTML into the DIV.
- * In a more realistic example, one may be rendering user comments, blog articles, etc. via
- * bindings. (HTML is just one example of a context where rendering user controlled input creates
- * security vulnerabilities.)
- *
- * For the case of HTML, you might use a library, either on the client side, or on the server side,
- * to sanitize unsafe HTML before binding to the value and rendering it in the document.
- *
- * How would you ensure that every place that used these types of bindings was bound to a value that
- * was sanitized by your library (or returned as safe for rendering by your server?) How can you
- * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some
- * properties/fields and forgot to update the binding to the sanitized value?
- *
- * To be secure by default, you want to ensure that any such bindings are disallowed unless you can
- * determine that something explicitly says it's safe to use a value for binding in that
- * context. You can then audit your code (a simple grep would do) to ensure that this is only done
- * for those values that you can easily tell are safe - because they were received from your server,
- * sanitized by your library, etc. You can organize your codebase to help with this - perhaps
- * allowing only the files in a specific directory to do this. Ensuring that the internal API
- * exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.
- *
- * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}
- * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to
- * obtain values that will be accepted by SCE / privileged contexts.
- *
- *
- * ## How does it work?
- *
- * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted
- * $sce.getTrusted(context, value)} rather than to the value directly. Directives use {@link
- * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs the
- * {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals.
- *
- * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link
- * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}. Here's the actual code (slightly
- * simplified):
- *
- * ```
- * var ngBindHtmlDirective = ['$sce', function($sce) {
- * return function(scope, element, attr) {
- * scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {
- * element.html(value || '');
- * });
- * };
- * }];
- * ```
- *
- * ## Impact on loading templates
- *
- * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as
- * `templateUrl`'s specified by {@link guide/directive directives}.
- *
- * By default, Angular only loads templates from the same domain and protocol as the application
- * document. This is done by calling {@link ng.$sce#getTrustedResourceUrl
- * $sce.getTrustedResourceUrl} on the template URL. To load templates from other domains and/or
- * protocols, you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist
- * them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.
- *
- * *Please note*:
- * The browser's
- * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
- * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
- * policy apply in addition to this and may further restrict whether the template is successfully
- * loaded. This means that without the right CORS policy, loading templates from a different domain
- * won't work on all browsers. Also, loading templates from `file://` URL does not work on some
- * browsers.
- *
- * ## This feels like too much overhead
- *
- * It's important to remember that SCE only applies to interpolation expressions.
- *
- * If your expressions are constant literals, they're automatically trusted and you don't need to
- * call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g.
- * `<div ng-bind-html="'<b>implicitly trusted</b>'"></div>`) just works.
- *
- * Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them
- * through {@link ng.$sce#getTrusted $sce.getTrusted}. SCE doesn't play a role here.
- *
- * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load
- * templates in `ng-include` from your application's domain without having to even know about SCE.
- * It blocks loading templates from other domains or loading templates over http from an https
- * served document. You can change these by setting your own custom {@link
- * ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link
- * ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs.
- *
- * This significantly reduces the overhead. It is far easier to pay the small overhead and have an
- * application that's secure and can be audited to verify that with much more ease than bolting
- * security onto an application later.
- *
- * <a name="contexts"></a>
- * ## What trusted context types are supported?
- *
- * | Context | Notes |
- * |---------------------|----------------|
- * | `$sce.HTML` | For HTML that's safe to source into the application. The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |
- * | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. |
- * | `$sce.URL` | For URLs that are safe to follow as links. Currently unused (`<a href=` and `<img src=` sanitize their urls and don't constitute an SCE context. |
- * | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application. Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG`, `VIDEO`, `AUDIO`, `SOURCE`, and `TRACK` (e.g. `IFRAME`, `OBJECT`, etc.) <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. |
- * | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. |
- *
- * ## Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist} <a name="resourceUrlPatternItem"></a>
- *
- * Each element in these arrays must be one of the following:
- *
- * - **'self'**
- * - The special **string**, `'self'`, can be used to match against all URLs of the **same
- * domain** as the application document using the **same protocol**.
- * - **String** (except the special value `'self'`)
- * - The string is matched against the full *normalized / absolute URL* of the resource
- * being tested (substring matches are not good enough.)
- * - There are exactly **two wildcard sequences** - `*` and `**`. All other characters
- * match themselves.
- * - `*`: matches zero or more occurrences of any character other than one of the following 6
- * characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'. It's a useful wildcard for use
- * in a whitelist.
- * - `**`: matches zero or more occurrences of *any* character. As such, it's not
- * appropriate for use in a scheme, domain, etc. as it would match too much. (e.g.
- * http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might
- * not have been the intention.) Its usage at the very end of the path is ok. (e.g.
- * http://foo.example.com/templates/**).
- * - **RegExp** (*see caveat below*)
- * - *Caveat*: While regular expressions are powerful and offer great flexibility, their syntax
- * (and all the inevitable escaping) makes them *harder to maintain*. It's easy to
- * accidentally introduce a bug when one updates a complex expression (imho, all regexes should
- * have good test coverage). For instance, the use of `.` in the regex is correct only in a
- * small number of cases. A `.` character in the regex used when matching the scheme or a
- * subdomain could be matched against a `:` or literal `.` that was likely not intended. It
- * is highly recommended to use the string patterns and only fall back to regular expressions
- * as a last resort.
- * - The regular expression must be an instance of RegExp (i.e. not a string.) It is
- * matched against the **entire** *normalized / absolute URL* of the resource being tested
- * (even when the RegExp did not have the `^` and `$` codes.) In addition, any flags
- * present on the RegExp (such as multiline, global, ignoreCase) are ignored.
- * - If you are generating your JavaScript from some other templating engine (not
- * recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),
- * remember to escape your regular expression (and be aware that you might need more than
- * one level of escaping depending on your templating engine and the way you interpolated
- * the value.) Do make use of your platform's escaping mechanism as it might be good
- * enough before coding your own. E.g. Ruby has
- * [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)
- * and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).
- * Javascript lacks a similar built in function for escaping. Take a look at Google
- * Closure library's [goog.string.regExpEscape(s)](
- * http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).
- *
- * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.
- *
- * ## Show me an example using SCE.
- *
- * <example module="mySceApp" deps="angular-sanitize.js" name="sce-service">
- * <file name="index.html">
- * <div ng-controller="AppController as myCtrl">
- * <i ng-bind-html="myCtrl.explicitlyTrustedHtml" id="explicitlyTrustedHtml"></i><br><br>
- * <b>User comments</b><br>
- * By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when
- * $sanitize is available. If $sanitize isn't available, this results in an error instead of an
- * exploit.
- * <div class="well">
- * <div ng-repeat="userComment in myCtrl.userComments">
- * <b>{{userComment.name}}</b>:
- * <span ng-bind-html="userComment.htmlComment" class="htmlComment"></span>
- * <br>
- * </div>
- * </div>
- * </div>
- * </file>
- *
- * <file name="script.js">
- * angular.module('mySceApp', ['ngSanitize'])
- * .controller('AppController', ['$http', '$templateCache', '$sce',
- * function AppController($http, $templateCache, $sce) {
- * var self = this;
- * $http.get('test_data.json', {cache: $templateCache}).success(function(userComments) {
- * self.userComments = userComments;
- * });
- * self.explicitlyTrustedHtml = $sce.trustAsHtml(
- * '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +
- * 'sanitization.&quot;">Hover over this text.</span>');
- * }]);
- * </file>
- *
- * <file name="test_data.json">
- * [
- * { "name": "Alice",
- * "htmlComment":
- * "<span onmouseover='this.textContent=\"PWN3D!\"'>Is <i>anyone</i> reading this?</span>"
- * },
- * { "name": "Bob",
- * "htmlComment": "<i>Yes!</i> Am I the only other one?"
- * }
- * ]
- * </file>
- *
- * <file name="protractor.js" type="protractor">
- * describe('SCE doc demo', function() {
- * it('should sanitize untrusted values', function() {
- * expect(element.all(by.css('.htmlComment')).first().getAttribute('innerHTML'))
- * .toBe('<span>Is <i>anyone</i> reading this?</span>');
- * });
- *
- * it('should NOT sanitize explicitly trusted values', function() {
- * expect(element(by.id('explicitlyTrustedHtml')).getAttribute('innerHTML')).toBe(
- * '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +
- * 'sanitization.&quot;">Hover over this text.</span>');
- * });
- * });
- * </file>
- * </example>
- *
- *
- *
- * ## Can I disable SCE completely?
- *
- * Yes, you can. However, this is strongly discouraged. SCE gives you a lot of security benefits
- * for little coding overhead. It will be much harder to take an SCE disabled application and
- * either secure it on your own or enable SCE at a later stage. It might make sense to disable SCE
- * for cases where you have a lot of existing code that was written before SCE was introduced and
- * you're migrating them a module at a time.
- *
- * That said, here's how you can completely disable SCE:
- *
- * ```
- * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {
- * // Completely disable SCE. For demonstration purposes only!
- * // Do not use in new projects.
- * $sceProvider.enabled(false);
- * });
- * ```
- *
- */
-
-function $SceProvider() {
- var enabled = true;
-
- /**
- * @ngdoc method
- * @name $sceProvider#enabled
- * @kind function
- *
- * @param {boolean=} value If provided, then enables/disables SCE.
- * @return {boolean} true if SCE is enabled, false otherwise.
- *
- * @description
- * Enables/disables SCE and returns the current value.
- */
- this.enabled = function(value) {
- if (arguments.length) {
- enabled = !!value;
- }
- return enabled;
- };
-
-
- /* Design notes on the default implementation for SCE.
- *
- * The API contract for the SCE delegate
- * -------------------------------------
- * The SCE delegate object must provide the following 3 methods:
- *
- * - trustAs(contextEnum, value)
- * This method is used to tell the SCE service that the provided value is OK to use in the
- * contexts specified by contextEnum. It must return an object that will be accepted by
- * getTrusted() for a compatible contextEnum and return this value.
- *
- * - valueOf(value)
- * For values that were not produced by trustAs(), return them as is. For values that were
- * produced by trustAs(), return the corresponding input value to trustAs. Basically, if
- * trustAs is wrapping the given values into some type, this operation unwraps it when given
- * such a value.
- *
- * - getTrusted(contextEnum, value)
- * This function should return the a value that is safe to use in the context specified by
- * contextEnum or throw and exception otherwise.
- *
- * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be
- * opaque or wrapped in some holder object. That happens to be an implementation detail. For
- * instance, an implementation could maintain a registry of all trusted objects by context. In
- * such a case, trustAs() would return the same object that was passed in. getTrusted() would
- * return the same object passed in if it was found in the registry under a compatible context or
- * throw an exception otherwise. An implementation might only wrap values some of the time based
- * on some criteria. getTrusted() might return a value and not throw an exception for special
- * constants or objects even if not wrapped. All such implementations fulfill this contract.
- *
- *
- * A note on the inheritance model for SCE contexts
- * ------------------------------------------------
- * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types. This
- * is purely an implementation details.
- *
- * The contract is simply this:
- *
- * getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)
- * will also succeed.
- *
- * Inheritance happens to capture this in a natural way. In some future, we
- * may not use inheritance anymore. That is OK because no code outside of
- * sce.js and sceSpecs.js would need to be aware of this detail.
- */
-
- this.$get = ['$parse', '$sceDelegate', function(
- $parse, $sceDelegate) {
- // Prereq: Ensure that we're not running in IE<11 quirks mode. In that mode, IE < 11 allow
- // the "expression(javascript expression)" syntax which is insecure.
- if (enabled && msie < 8) {
- throw $sceMinErr('iequirks',
- 'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' +
- 'mode. You can fix this by adding the text <!doctype html> to the top of your HTML ' +
- 'document. See http://docs.angularjs.org/api/ng.$sce for more information.');
- }
-
- var sce = shallowCopy(SCE_CONTEXTS);
-
- /**
- * @ngdoc method
- * @name $sce#isEnabled
- * @kind function
- *
- * @return {Boolean} true if SCE is enabled, false otherwise. If you want to set the value, you
- * have to do it at module config time on {@link ng.$sceProvider $sceProvider}.
- *
- * @description
- * Returns a boolean indicating if SCE is enabled.
- */
- sce.isEnabled = function() {
- return enabled;
- };
- sce.trustAs = $sceDelegate.trustAs;
- sce.getTrusted = $sceDelegate.getTrusted;
- sce.valueOf = $sceDelegate.valueOf;
-
- if (!enabled) {
- sce.trustAs = sce.getTrusted = function(type, value) { return value; };
- sce.valueOf = identity;
- }
-
- /**
- * @ngdoc method
- * @name $sce#parseAs
- *
- * @description
- * Converts Angular {@link guide/expression expression} into a function. This is like {@link
- * ng.$parse $parse} and is identical when the expression is a literal constant. Otherwise, it
- * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,
- * *result*)}
- *
- * @param {string} type The kind of SCE context in which this result will be used.
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
- sce.parseAs = function sceParseAs(type, expr) {
- var parsed = $parse(expr);
- if (parsed.literal && parsed.constant) {
- return parsed;
- } else {
- return $parse(expr, function(value) {
- return sce.getTrusted(type, value);
- });
- }
- };
-
- /**
- * @ngdoc method
- * @name $sce#trustAs
- *
- * @description
- * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}. As such,
- * returns an object that is trusted by angular for use in specified strict contextual
- * escaping contexts (such as ng-bind-html, ng-include, any src attribute
- * interpolation, any dom event binding attribute interpolation such as for onclick, etc.)
- * that uses the provided value. See * {@link ng.$sce $sce} for enabling strict contextual
- * escaping.
- *
- * @param {string} type The kind of context in which this value is safe for use. e.g. url,
- * resourceUrl, html, js and css.
- * @param {*} value The value that that should be considered trusted/safe.
- * @returns {*} A value that can be used to stand in for the provided `value` in places
- * where Angular expects a $sce.trustAs() return value.
- */
-
- /**
- * @ngdoc method
- * @name $sce#trustAsHtml
- *
- * @description
- * Shorthand method. `$sce.trustAsHtml(value)` →
- * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}
- *
- * @param {*} value The value to trustAs.
- * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedHtml
- * $sce.getTrustedHtml(value)} to obtain the original value. (privileged directives
- * only accept expressions that are either literal constants or are the
- * return value of {@link ng.$sce#trustAs $sce.trustAs}.)
- */
-
- /**
- * @ngdoc method
- * @name $sce#trustAsUrl
- *
- * @description
- * Shorthand method. `$sce.trustAsUrl(value)` →
- * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}
- *
- * @param {*} value The value to trustAs.
- * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedUrl
- * $sce.getTrustedUrl(value)} to obtain the original value. (privileged directives
- * only accept expressions that are either literal constants or are the
- * return value of {@link ng.$sce#trustAs $sce.trustAs}.)
- */
-
- /**
- * @ngdoc method
- * @name $sce#trustAsResourceUrl
- *
- * @description
- * Shorthand method. `$sce.trustAsResourceUrl(value)` →
- * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}
- *
- * @param {*} value The value to trustAs.
- * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedResourceUrl
- * $sce.getTrustedResourceUrl(value)} to obtain the original value. (privileged directives
- * only accept expressions that are either literal constants or are the return
- * value of {@link ng.$sce#trustAs $sce.trustAs}.)
- */
-
- /**
- * @ngdoc method
- * @name $sce#trustAsJs
- *
- * @description
- * Shorthand method. `$sce.trustAsJs(value)` →
- * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}
- *
- * @param {*} value The value to trustAs.
- * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedJs
- * $sce.getTrustedJs(value)} to obtain the original value. (privileged directives
- * only accept expressions that are either literal constants or are the
- * return value of {@link ng.$sce#trustAs $sce.trustAs}.)
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrusted
- *
- * @description
- * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}. As such,
- * takes the result of a {@link ng.$sce#trustAs `$sce.trustAs`}() call and returns the
- * originally supplied value if the queried context type is a supertype of the created type.
- * If this condition isn't satisfied, throws an exception.
- *
- * @param {string} type The kind of context in which this value is to be used.
- * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs `$sce.trustAs`}
- * call.
- * @returns {*} The value the was originally provided to
- * {@link ng.$sce#trustAs `$sce.trustAs`} if valid in this context.
- * Otherwise, throws an exception.
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedHtml
- *
- * @description
- * Shorthand method. `$sce.getTrustedHtml(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}
- *
- * @param {*} value The value to pass to `$sce.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.HTML, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedCss
- *
- * @description
- * Shorthand method. `$sce.getTrustedCss(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}
- *
- * @param {*} value The value to pass to `$sce.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.CSS, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedUrl
- *
- * @description
- * Shorthand method. `$sce.getTrustedUrl(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}
- *
- * @param {*} value The value to pass to `$sce.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.URL, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedResourceUrl
- *
- * @description
- * Shorthand method. `$sce.getTrustedResourceUrl(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}
- *
- * @param {*} value The value to pass to `$sceDelegate.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedJs
- *
- * @description
- * Shorthand method. `$sce.getTrustedJs(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}
- *
- * @param {*} value The value to pass to `$sce.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.JS, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsHtml
- *
- * @description
- * Shorthand method. `$sce.parseAsHtml(expression string)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsCss
- *
- * @description
- * Shorthand method. `$sce.parseAsCss(value)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsUrl
- *
- * @description
- * Shorthand method. `$sce.parseAsUrl(value)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsResourceUrl
- *
- * @description
- * Shorthand method. `$sce.parseAsResourceUrl(value)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsJs
- *
- * @description
- * Shorthand method. `$sce.parseAsJs(value)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- // Shorthand delegations.
- var parse = sce.parseAs,
- getTrusted = sce.getTrusted,
- trustAs = sce.trustAs;
-
- forEach(SCE_CONTEXTS, function(enumValue, name) {
- var lName = lowercase(name);
- sce[camelCase('parse_as_' + lName)] = function(expr) {
- return parse(enumValue, expr);
- };
- sce[camelCase('get_trusted_' + lName)] = function(value) {
- return getTrusted(enumValue, value);
- };
- sce[camelCase('trust_as_' + lName)] = function(value) {
- return trustAs(enumValue, value);
- };
- });
-
- return sce;
- }];
-}
-
-/* exported $SnifferProvider */
-
-/**
- * !!! This is an undocumented "private" service !!!
- *
- * @name $sniffer
- * @requires $window
- * @requires $document
- * @this
- *
- * @property {boolean} history Does the browser support html5 history api ?
- * @property {boolean} transitions Does the browser support CSS transition events ?
- * @property {boolean} animations Does the browser support CSS animation events ?
- *
- * @description
- * This is very simple implementation of testing browser's features.
- */
-function $SnifferProvider() {
- this.$get = ['$window', '$document', function($window, $document) {
- var eventSupport = {},
- // Chrome Packaged Apps are not allowed to access `history.pushState`.
- // If not sandboxed, they can be detected by the presence of `chrome.app.runtime`
- // (see https://developer.chrome.com/apps/api_index). If sandboxed, they can be detected by
- // the presence of an extension runtime ID and the absence of other Chrome runtime APIs
- // (see https://developer.chrome.com/apps/manifest/sandbox).
- isChromePackagedApp =
- $window.chrome &&
- ($window.chrome.app && $window.chrome.app.runtime ||
- !$window.chrome.app && $window.chrome.runtime && $window.chrome.runtime.id),
- hasHistoryPushState = !isChromePackagedApp && $window.history && $window.history.pushState,
- android =
- toInt((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
- boxee = /Boxee/i.test(($window.navigator || {}).userAgent),
- document = $document[0] || {},
- vendorPrefix,
- vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/,
- bodyStyle = document.body && document.body.style,
- transitions = false,
- animations = false,
- match;
-
- if (bodyStyle) {
- for (var prop in bodyStyle) {
- if ((match = vendorRegex.exec(prop))) {
- vendorPrefix = match[0];
- vendorPrefix = vendorPrefix[0].toUpperCase() + vendorPrefix.substr(1);
- break;
- }
- }
-
- if (!vendorPrefix) {
- vendorPrefix = ('WebkitOpacity' in bodyStyle) && 'webkit';
- }
-
- transitions = !!(('transition' in bodyStyle) || (vendorPrefix + 'Transition' in bodyStyle));
- animations = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));
-
- if (android && (!transitions || !animations)) {
- transitions = isString(bodyStyle.webkitTransition);
- animations = isString(bodyStyle.webkitAnimation);
- }
- }
-
-
- return {
- // Android has history.pushState, but it does not update location correctly
- // so let's not use the history API at all.
- // http://code.google.com/p/android/issues/detail?id=17471
- // https://github.com/angular/angular.js/issues/904
-
- // older webkit browser (533.9) on Boxee box has exactly the same problem as Android has
- // so let's not use the history API also
- // We are purposefully using `!(android < 4)` to cover the case when `android` is undefined
- history: !!(hasHistoryPushState && !(android < 4) && !boxee),
- hasEvent: function(event) {
- // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
- // it. In particular the event is not fired when backspace or delete key are pressed or
- // when cut operation is performed.
- // IE10+ implements 'input' event but it erroneously fires under various situations,
- // e.g. when placeholder changes, or a form is focused.
- if (event === 'input' && msie <= 11) return false;
-
- if (isUndefined(eventSupport[event])) {
- var divElm = document.createElement('div');
- eventSupport[event] = 'on' + event in divElm;
- }
-
- return eventSupport[event];
- },
- csp: csp(),
- vendorPrefix: vendorPrefix,
- transitions: transitions,
- animations: animations,
- android: android
- };
- }];
-}
-
-var $templateRequestMinErr = minErr('$compile');
-
-/**
- * @ngdoc provider
- * @name $templateRequestProvider
- * @this
- *
- * @description
- * Used to configure the options passed to the {@link $http} service when making a template request.
- *
- * For example, it can be used for specifying the "Accept" header that is sent to the server, when
- * requesting a template.
- */
-function $TemplateRequestProvider() {
-
- var httpOptions;
-
- /**
- * @ngdoc method
- * @name $templateRequestProvider#httpOptions
- * @description
- * The options to be passed to the {@link $http} service when making the request.
- * You can use this to override options such as the "Accept" header for template requests.
- *
- * The {@link $templateRequest} will set the `cache` and the `transformResponse` properties of the
- * options if not overridden here.
- *
- * @param {string=} value new value for the {@link $http} options.
- * @returns {string|self} Returns the {@link $http} options when used as getter and self if used as setter.
- */
- this.httpOptions = function(val) {
- if (val) {
- httpOptions = val;
- return this;
- }
- return httpOptions;
- };
-
- /**
- * @ngdoc service
- * @name $templateRequest
- *
- * @description
- * The `$templateRequest` service runs security checks then downloads the provided template using
- * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request
- * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the
- * exception can be thwarted by setting the 2nd parameter of the function to true). Note that the
- * contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted
- * when `tpl` is of type string and `$templateCache` has the matching entry.
- *
- * If you want to pass custom options to the `$http` service, such as setting the Accept header you
- * can configure this via {@link $templateRequestProvider#httpOptions}.
- *
- * @param {string|TrustedResourceUrl} tpl The HTTP request template URL
- * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty
- *
- * @return {Promise} a promise for the HTTP response data of the given URL.
- *
- * @property {number} totalPendingRequests total amount of pending template requests being downloaded.
- */
- this.$get = ['$templateCache', '$http', '$q', '$sce', function($templateCache, $http, $q, $sce) {
-
- function handleRequestFn(tpl, ignoreRequestError) {
- handleRequestFn.totalPendingRequests++;
-
- // We consider the template cache holds only trusted templates, so
- // there's no need to go through whitelisting again for keys that already
- // are included in there. This also makes Angular accept any script
- // directive, no matter its name. However, we still need to unwrap trusted
- // types.
- if (!isString(tpl) || isUndefined($templateCache.get(tpl))) {
- tpl = $sce.getTrustedResourceUrl(tpl);
- }
-
- var transformResponse = $http.defaults && $http.defaults.transformResponse;
-
- if (isArray(transformResponse)) {
- transformResponse = transformResponse.filter(function(transformer) {
- return transformer !== defaultHttpResponseTransform;
- });
- } else if (transformResponse === defaultHttpResponseTransform) {
- transformResponse = null;
- }
-
- return $http.get(tpl, extend({
- cache: $templateCache,
- transformResponse: transformResponse
- }, httpOptions)
- )['finally'](function() {
- handleRequestFn.totalPendingRequests--;
- })
- .then(function(response) {
- $templateCache.put(tpl, response.data);
- return response.data;
- }, handleError);
-
- function handleError(resp) {
- if (!ignoreRequestError) {
- throw $templateRequestMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})',
- tpl, resp.status, resp.statusText);
- }
- return $q.reject(resp);
- }
- }
-
- handleRequestFn.totalPendingRequests = 0;
-
- return handleRequestFn;
- }];
-}
-
-/** @this */
-function $$TestabilityProvider() {
- this.$get = ['$rootScope', '$browser', '$location',
- function($rootScope, $browser, $location) {
-
- /**
- * @name $testability
- *
- * @description
- * The private $$testability service provides a collection of methods for use when debugging
- * or by automated test and debugging tools.
- */
- var testability = {};
-
- /**
- * @name $$testability#findBindings
- *
- * @description
- * Returns an array of elements that are bound (via ng-bind or {{}})
- * to expressions matching the input.
- *
- * @param {Element} element The element root to search from.
- * @param {string} expression The binding expression to match.
- * @param {boolean} opt_exactMatch If true, only returns exact matches
- * for the expression. Filters and whitespace are ignored.
- */
- testability.findBindings = function(element, expression, opt_exactMatch) {
- var bindings = element.getElementsByClassName('ng-binding');
- var matches = [];
- forEach(bindings, function(binding) {
- var dataBinding = angular.element(binding).data('$binding');
- if (dataBinding) {
- forEach(dataBinding, function(bindingName) {
- if (opt_exactMatch) {
- var matcher = new RegExp('(^|\\s)' + escapeForRegexp(expression) + '(\\s|\\||$)');
- if (matcher.test(bindingName)) {
- matches.push(binding);
- }
- } else {
- if (bindingName.indexOf(expression) !== -1) {
- matches.push(binding);
- }
- }
- });
- }
- });
- return matches;
- };
-
- /**
- * @name $$testability#findModels
- *
- * @description
- * Returns an array of elements that are two-way found via ng-model to
- * expressions matching the input.
- *
- * @param {Element} element The element root to search from.
- * @param {string} expression The model expression to match.
- * @param {boolean} opt_exactMatch If true, only returns exact matches
- * for the expression.
- */
- testability.findModels = function(element, expression, opt_exactMatch) {
- var prefixes = ['ng-', 'data-ng-', 'ng\\:'];
- for (var p = 0; p < prefixes.length; ++p) {
- var attributeEquals = opt_exactMatch ? '=' : '*=';
- var selector = '[' + prefixes[p] + 'model' + attributeEquals + '"' + expression + '"]';
- var elements = element.querySelectorAll(selector);
- if (elements.length) {
- return elements;
- }
- }
- };
-
- /**
- * @name $$testability#getLocation
- *
- * @description
- * Shortcut for getting the location in a browser agnostic way. Returns
- * the path, search, and hash. (e.g. /path?a=b#hash)
- */
- testability.getLocation = function() {
- return $location.url();
- };
-
- /**
- * @name $$testability#setLocation
- *
- * @description
- * Shortcut for navigating to a location without doing a full page reload.
- *
- * @param {string} url The location url (path, search and hash,
- * e.g. /path?a=b#hash) to go to.
- */
- testability.setLocation = function(url) {
- if (url !== $location.url()) {
- $location.url(url);
- $rootScope.$digest();
- }
- };
-
- /**
- * @name $$testability#whenStable
- *
- * @description
- * Calls the callback when $timeout and $http requests are completed.
- *
- * @param {function} callback
- */
- testability.whenStable = function(callback) {
- $browser.notifyWhenNoOutstandingRequests(callback);
- };
-
- return testability;
- }];
-}
-
-/** @this */
-function $TimeoutProvider() {
- this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler',
- function($rootScope, $browser, $q, $$q, $exceptionHandler) {
-
- var deferreds = {};
-
-
- /**
- * @ngdoc service
- * @name $timeout
- *
- * @description
- * Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch
- * block and delegates any exceptions to
- * {@link ng.$exceptionHandler $exceptionHandler} service.
- *
- * The return value of calling `$timeout` is a promise, which will be resolved when
- * the delay has passed and the timeout function, if provided, is executed.
- *
- * To cancel a timeout request, call `$timeout.cancel(promise)`.
- *
- * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to
- * synchronously flush the queue of deferred functions.
- *
- * If you only want a promise that will be resolved after some specified delay
- * then you can call `$timeout` without the `fn` function.
- *
- * @param {function()=} fn A function, whose execution should be delayed.
- * @param {number=} [delay=0] Delay in milliseconds.
- * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
- * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
- * @param {...*=} Pass additional parameters to the executed function.
- * @returns {Promise} Promise that will be resolved when the timeout is reached. The promise
- * will be resolved with the return value of the `fn` function.
- *
- */
- function timeout(fn, delay, invokeApply) {
- if (!isFunction(fn)) {
- invokeApply = delay;
- delay = fn;
- fn = noop;
- }
-
- var args = sliceArgs(arguments, 3),
- skipApply = (isDefined(invokeApply) && !invokeApply),
- deferred = (skipApply ? $$q : $q).defer(),
- promise = deferred.promise,
- timeoutId;
-
- timeoutId = $browser.defer(function() {
- try {
- deferred.resolve(fn.apply(null, args));
- } catch (e) {
- deferred.reject(e);
- $exceptionHandler(e);
- } finally {
- delete deferreds[promise.$$timeoutId];
- }
-
- if (!skipApply) $rootScope.$apply();
- }, delay);
-
- promise.$$timeoutId = timeoutId;
- deferreds[timeoutId] = deferred;
-
- return promise;
- }
-
-
- /**
- * @ngdoc method
- * @name $timeout#cancel
- *
- * @description
- * Cancels a task associated with the `promise`. As a result of this, the promise will be
- * resolved with a rejection.
- *
- * @param {Promise=} promise Promise returned by the `$timeout` function.
- * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
- * canceled.
- */
- timeout.cancel = function(promise) {
- if (promise && promise.$$timeoutId in deferreds) {
- deferreds[promise.$$timeoutId].reject('canceled');
- delete deferreds[promise.$$timeoutId];
- return $browser.defer.cancel(promise.$$timeoutId);
- }
- return false;
- };
-
- return timeout;
- }];
-}
-
-// NOTE: The usage of window and document instead of $window and $document here is
-// deliberate. This service depends on the specific behavior of anchor nodes created by the
-// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and
-// cause us to break tests. In addition, when the browser resolves a URL for XHR, it
-// doesn't know about mocked locations and resolves URLs to the real document - which is
-// exactly the behavior needed here. There is little value is mocking these out for this
-// service.
-var urlParsingNode = window.document.createElement('a');
-var originUrl = urlResolve(window.location.href);
-
-
-/**
- *
- * Implementation Notes for non-IE browsers
- * ----------------------------------------
- * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,
- * results both in the normalizing and parsing of the URL. Normalizing means that a relative
- * URL will be resolved into an absolute URL in the context of the application document.
- * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related
- * properties are all populated to reflect the normalized URL. This approach has wide
- * compatibility - Safari 1+, Mozilla 1+, Opera 7+,e etc. See
- * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
- *
- * Implementation Notes for IE
- * ---------------------------
- * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other
- * browsers. However, the parsed components will not be set if the URL assigned did not specify
- * them. (e.g. if you assign a.href = "foo", then a.protocol, a.host, etc. will be empty.) We
- * work around that by performing the parsing in a 2nd step by taking a previously normalized
- * URL (e.g. by assigning to a.href) and assigning it a.href again. This correctly populates the
- * properties such as protocol, hostname, port, etc.
- *
- * References:
- * http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement
- * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
- * http://url.spec.whatwg.org/#urlutils
- * https://github.com/angular/angular.js/pull/2902
- * http://james.padolsey.com/javascript/parsing-urls-with-the-dom/
- *
- * @kind function
- * @param {string} url The URL to be parsed.
- * @description Normalizes and parses a URL.
- * @returns {object} Returns the normalized URL as a dictionary.
- *
- * | member name | Description |
- * |---------------|----------------|
- * | href | A normalized version of the provided URL if it was not an absolute URL |
- * | protocol | The protocol including the trailing colon |
- * | host | The host and port (if the port is non-default) of the normalizedUrl |
- * | search | The search params, minus the question mark |
- * | hash | The hash string, minus the hash symbol
- * | hostname | The hostname
- * | port | The port, without ":"
- * | pathname | The pathname, beginning with "/"
- *
- */
-function urlResolve(url) {
- var href = url;
-
- if (msie) {
- // Normalize before parse. Refer Implementation Notes on why this is
- // done in two steps on IE.
- urlParsingNode.setAttribute('href', href);
- href = urlParsingNode.href;
- }
-
- urlParsingNode.setAttribute('href', href);
-
- // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
- return {
- href: urlParsingNode.href,
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
- host: urlParsingNode.host,
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
- hostname: urlParsingNode.hostname,
- port: urlParsingNode.port,
- pathname: (urlParsingNode.pathname.charAt(0) === '/')
- ? urlParsingNode.pathname
- : '/' + urlParsingNode.pathname
- };
-}
-
-/**
- * Parse a request URL and determine whether this is a same-origin request as the application document.
- *
- * @param {string|object} requestUrl The url of the request as a string that will be resolved
- * or a parsed URL object.
- * @returns {boolean} Whether the request is for the same origin as the application document.
- */
-function urlIsSameOrigin(requestUrl) {
- var parsed = (isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;
- return (parsed.protocol === originUrl.protocol &&
- parsed.host === originUrl.host);
-}
-
-/**
- * @ngdoc service
- * @name $window
- * @this
- *
- * @description
- * A reference to the browser's `window` object. While `window`
- * is globally available in JavaScript, it causes testability problems, because
- * it is a global variable. In angular we always refer to it through the
- * `$window` service, so it may be overridden, removed or mocked for testing.
- *
- * Expressions, like the one defined for the `ngClick` directive in the example
- * below, are evaluated with respect to the current scope. Therefore, there is
- * no risk of inadvertently coding in a dependency on a global value in such an
- * expression.
- *
- * @example
- <example module="windowExample" name="window-service">
- <file name="index.html">
- <script>
- angular.module('windowExample', [])
- .controller('ExampleController', ['$scope', '$window', function($scope, $window) {
- $scope.greeting = 'Hello, World!';
- $scope.doGreeting = function(greeting) {
- $window.alert(greeting);
- };
- }]);
- </script>
- <div ng-controller="ExampleController">
- <input type="text" ng-model="greeting" aria-label="greeting" />
- <button ng-click="doGreeting(greeting)">ALERT</button>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should display the greeting in the input box', function() {
- element(by.model('greeting')).sendKeys('Hello, E2E Tests');
- // If we click the button it will block the test runner
- // element(':button').click();
- });
- </file>
- </example>
- */
-function $WindowProvider() {
- this.$get = valueFn(window);
-}
-
-/**
- * @name $$cookieReader
- * @requires $document
- *
- * @description
- * This is a private service for reading cookies used by $http and ngCookies
- *
- * @return {Object} a key/value map of the current cookies
- */
-function $$CookieReader($document) {
- var rawDocument = $document[0] || {};
- var lastCookies = {};
- var lastCookieString = '';
-
- function safeGetCookie(rawDocument) {
- try {
- return rawDocument.cookie || '';
- } catch (e) {
- return '';
- }
- }
-
- function safeDecodeURIComponent(str) {
- try {
- return decodeURIComponent(str);
- } catch (e) {
- return str;
- }
- }
-
- return function() {
- var cookieArray, cookie, i, index, name;
- var currentCookieString = safeGetCookie(rawDocument);
-
- if (currentCookieString !== lastCookieString) {
- lastCookieString = currentCookieString;
- cookieArray = lastCookieString.split('; ');
- lastCookies = {};
-
- for (i = 0; i < cookieArray.length; i++) {
- cookie = cookieArray[i];
- index = cookie.indexOf('=');
- if (index > 0) { //ignore nameless cookies
- name = safeDecodeURIComponent(cookie.substring(0, index));
- // the first value that is seen for a cookie is the most
- // specific one. values for the same cookie name that
- // follow are for less specific paths.
- if (isUndefined(lastCookies[name])) {
- lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1));
- }
- }
- }
- }
- return lastCookies;
- };
-}
-
-$$CookieReader.$inject = ['$document'];
-
-/** @this */
-function $$CookieReaderProvider() {
- this.$get = $$CookieReader;
-}
-
-/* global currencyFilter: true,
- dateFilter: true,
- filterFilter: true,
- jsonFilter: true,
- limitToFilter: true,
- lowercaseFilter: true,
- numberFilter: true,
- orderByFilter: true,
- uppercaseFilter: true,
- */
-
-/**
- * @ngdoc provider
- * @name $filterProvider
- * @description
- *
- * Filters are just functions which transform input to an output. However filters need to be
- * Dependency Injected. To achieve this a filter definition consists of a factory function which is
- * annotated with dependencies and is responsible for creating a filter function.
- *
- * <div class="alert alert-warning">
- * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
- * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
- * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
- * (`myapp_subsection_filterx`).
- * </div>
- *
- * ```js
- * // Filter registration
- * function MyModule($provide, $filterProvider) {
- * // create a service to demonstrate injection (not always needed)
- * $provide.value('greet', function(name){
- * return 'Hello ' + name + '!';
- * });
- *
- * // register a filter factory which uses the
- * // greet service to demonstrate DI.
- * $filterProvider.register('greet', function(greet){
- * // return the filter function which uses the greet service
- * // to generate salutation
- * return function(text) {
- * // filters need to be forgiving so check input validity
- * return text && greet(text) || text;
- * };
- * });
- * }
- * ```
- *
- * The filter function is registered with the `$injector` under the filter name suffix with
- * `Filter`.
- *
- * ```js
- * it('should be the same instance', inject(
- * function($filterProvider) {
- * $filterProvider.register('reverse', function(){
- * return ...;
- * });
- * },
- * function($filter, reverseFilter) {
- * expect($filter('reverse')).toBe(reverseFilter);
- * });
- * ```
- *
- *
- * For more information about how angular filters work, and how to create your own filters, see
- * {@link guide/filter Filters} in the Angular Developer Guide.
- */
-
-/**
- * @ngdoc service
- * @name $filter
- * @kind function
- * @description
- * Filters are used for formatting data displayed to the user.
- *
- * They can be used in view templates, controllers or services.Angular comes
- * with a collection of [built-in filters](api/ng/filter), but it is easy to
- * define your own as well.
- *
- * The general syntax in templates is as follows:
- *
- * ```html
- * {{ expression [| filter_name[:parameter_value] ... ] }}
- * ```
- *
- * @param {String} name Name of the filter function to retrieve
- * @return {Function} the filter function
- * @example
- <example name="$filter" module="filterExample">
- <file name="index.html">
- <div ng-controller="MainCtrl">
- <h3>{{ originalText }}</h3>
- <h3>{{ filteredText }}</h3>
- </div>
- </file>
-
- <file name="script.js">
- angular.module('filterExample', [])
- .controller('MainCtrl', function($scope, $filter) {
- $scope.originalText = 'hello';
- $scope.filteredText = $filter('uppercase')($scope.originalText);
- });
- </file>
- </example>
- */
-$FilterProvider.$inject = ['$provide'];
-/** @this */
-function $FilterProvider($provide) {
- var suffix = 'Filter';
-
- /**
- * @ngdoc method
- * @name $filterProvider#register
- * @param {string|Object} name Name of the filter function, or an object map of filters where
- * the keys are the filter names and the values are the filter factories.
- *
- * <div class="alert alert-warning">
- * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
- * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
- * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
- * (`myapp_subsection_filterx`).
- * </div>
- * @param {Function} factory If the first argument was a string, a factory function for the filter to be registered.
- * @returns {Object} Registered filter instance, or if a map of filters was provided then a map
- * of the registered filter instances.
- */
- function register(name, factory) {
- if (isObject(name)) {
- var filters = {};
- forEach(name, function(filter, key) {
- filters[key] = register(key, filter);
- });
- return filters;
- } else {
- return $provide.factory(name + suffix, factory);
- }
- }
- this.register = register;
-
- this.$get = ['$injector', function($injector) {
- return function(name) {
- return $injector.get(name + suffix);
- };
- }];
-
- ////////////////////////////////////////
-
- /* global
- currencyFilter: false,
- dateFilter: false,
- filterFilter: false,
- jsonFilter: false,
- limitToFilter: false,
- lowercaseFilter: false,
- numberFilter: false,
- orderByFilter: false,
- uppercaseFilter: false
- */
-
- register('currency', currencyFilter);
- register('date', dateFilter);
- register('filter', filterFilter);
- register('json', jsonFilter);
- register('limitTo', limitToFilter);
- register('lowercase', lowercaseFilter);
- register('number', numberFilter);
- register('orderBy', orderByFilter);
- register('uppercase', uppercaseFilter);
-}
-
-/**
- * @ngdoc filter
- * @name filter
- * @kind function
- *
- * @description
- * Selects a subset of items from `array` and returns it as a new array.
- *
- * @param {Array} array The source array.
- * @param {string|Object|function()} expression The predicate to be used for selecting items from
- * `array`.
- *
- * Can be one of:
- *
- * - `string`: The string is used for matching against the contents of the `array`. All strings or
- * objects with string properties in `array` that match this string will be returned. This also
- * applies to nested object properties.
- * The predicate can be negated by prefixing the string with `!`.
- *
- * - `Object`: A pattern object can be used to filter specific properties on objects contained
- * by `array`. For example `{name:"M", phone:"1"}` predicate will return an array of items
- * which have property `name` containing "M" and property `phone` containing "1". A special
- * property name (`$` by default) can be used (e.g. as in `{$: "text"}`) to accept a match
- * against any property of the object or its nested object properties. That's equivalent to the
- * simple substring match with a `string` as described above. The special property name can be
- * overwritten, using the `anyPropertyKey` parameter.
- * The predicate can be negated by prefixing the string with `!`.
- * For example `{name: "!M"}` predicate will return an array of items which have property `name`
- * not containing "M".
- *
- * Note that a named property will match properties on the same level only, while the special
- * `$` property will match properties on the same level or deeper. E.g. an array item like
- * `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but
- * **will** be matched by `{$: 'John'}`.
- *
- * - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.
- * The function is called for each element of the array, with the element, its index, and
- * the entire array itself as arguments.
- *
- * The final result is an array of those elements that the predicate returned true for.
- *
- * @param {function(actual, expected)|true|false} [comparator] Comparator which is used in
- * determining if the expected value (from the filter expression) and actual value (from
- * the object in the array) should be considered a match.
- *
- * Can be one of:
- *
- * - `function(actual, expected)`:
- * The function will be given the object value and the predicate value to compare and
- * should return true if both values should be considered equal.
- *
- * - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.
- * This is essentially strict comparison of expected and actual.
- *
- * - `false`: A short hand for a function which will look for a substring match in a case
- * insensitive way. Primitive values are converted to strings. Objects are not compared against
- * primitives, unless they have a custom `toString` method (e.g. `Date` objects).
- *
- *
- * Defaults to `false`.
- *
- * @param {string} [anyPropertyKey] The special property name that matches against any property.
- * By default `$`.
- *
- * @example
- <example name="filter-filter">
- <file name="index.html">
- <div ng-init="friends = [{name:'John', phone:'555-1276'},
- {name:'Mary', phone:'800-BIG-MARY'},
- {name:'Mike', phone:'555-4321'},
- {name:'Adam', phone:'555-5678'},
- {name:'Julie', phone:'555-8765'},
- {name:'Juliette', phone:'555-5678'}]"></div>
-
- <label>Search: <input ng-model="searchText"></label>
- <table id="searchTextResults">
- <tr><th>Name</th><th>Phone</th></tr>
- <tr ng-repeat="friend in friends | filter:searchText">
- <td>{{friend.name}}</td>
- <td>{{friend.phone}}</td>
- </tr>
- </table>
- <hr>
- <label>Any: <input ng-model="search.$"></label> <br>
- <label>Name only <input ng-model="search.name"></label><br>
- <label>Phone only <input ng-model="search.phone"></label><br>
- <label>Equality <input type="checkbox" ng-model="strict"></label><br>
- <table id="searchObjResults">
- <tr><th>Name</th><th>Phone</th></tr>
- <tr ng-repeat="friendObj in friends | filter:search:strict">
- <td>{{friendObj.name}}</td>
- <td>{{friendObj.phone}}</td>
- </tr>
- </table>
- </file>
- <file name="protractor.js" type="protractor">
- var expectFriendNames = function(expectedNames, key) {
- element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {
- arr.forEach(function(wd, i) {
- expect(wd.getText()).toMatch(expectedNames[i]);
- });
- });
- };
-
- it('should search across all fields when filtering with a string', function() {
- var searchText = element(by.model('searchText'));
- searchText.clear();
- searchText.sendKeys('m');
- expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');
-
- searchText.clear();
- searchText.sendKeys('76');
- expectFriendNames(['John', 'Julie'], 'friend');
- });
-
- it('should search in specific fields when filtering with a predicate object', function() {
- var searchAny = element(by.model('search.$'));
- searchAny.clear();
- searchAny.sendKeys('i');
- expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');
- });
- it('should use a equal comparison when comparator is true', function() {
- var searchName = element(by.model('search.name'));
- var strict = element(by.model('strict'));
- searchName.clear();
- searchName.sendKeys('Julie');
- strict.click();
- expectFriendNames(['Julie'], 'friendObj');
- });
- </file>
- </example>
- */
-
-function filterFilter() {
- return function(array, expression, comparator, anyPropertyKey) {
- if (!isArrayLike(array)) {
- if (array == null) {
- return array;
- } else {
- throw minErr('filter')('notarray', 'Expected array but received: {0}', array);
- }
- }
-
- anyPropertyKey = anyPropertyKey || '$';
- var expressionType = getTypeForFilter(expression);
- var predicateFn;
- var matchAgainstAnyProp;
-
- switch (expressionType) {
- case 'function':
- predicateFn = expression;
- break;
- case 'boolean':
- case 'null':
- case 'number':
- case 'string':
- matchAgainstAnyProp = true;
- // falls through
- case 'object':
- predicateFn = createPredicateFn(expression, comparator, anyPropertyKey, matchAgainstAnyProp);
- break;
- default:
- return array;
- }
-
- return Array.prototype.filter.call(array, predicateFn);
- };
-}
-
-// Helper functions for `filterFilter`
-function createPredicateFn(expression, comparator, anyPropertyKey, matchAgainstAnyProp) {
- var shouldMatchPrimitives = isObject(expression) && (anyPropertyKey in expression);
- var predicateFn;
-
- if (comparator === true) {
- comparator = equals;
- } else if (!isFunction(comparator)) {
- comparator = function(actual, expected) {
- if (isUndefined(actual)) {
- // No substring matching against `undefined`
- return false;
- }
- if ((actual === null) || (expected === null)) {
- // No substring matching against `null`; only match against `null`
- return actual === expected;
- }
- if (isObject(expected) || (isObject(actual) && !hasCustomToString(actual))) {
- // Should not compare primitives against objects, unless they have custom `toString` method
- return false;
- }
-
- actual = lowercase('' + actual);
- expected = lowercase('' + expected);
- return actual.indexOf(expected) !== -1;
- };
- }
-
- predicateFn = function(item) {
- if (shouldMatchPrimitives && !isObject(item)) {
- return deepCompare(item, expression[anyPropertyKey], comparator, anyPropertyKey, false);
- }
- return deepCompare(item, expression, comparator, anyPropertyKey, matchAgainstAnyProp);
- };
-
- return predicateFn;
-}
-
-function deepCompare(actual, expected, comparator, anyPropertyKey, matchAgainstAnyProp, dontMatchWholeObject) {
- var actualType = getTypeForFilter(actual);
- var expectedType = getTypeForFilter(expected);
-
- if ((expectedType === 'string') && (expected.charAt(0) === '!')) {
- return !deepCompare(actual, expected.substring(1), comparator, anyPropertyKey, matchAgainstAnyProp);
- } else if (isArray(actual)) {
- // In case `actual` is an array, consider it a match
- // if ANY of it's items matches `expected`
- return actual.some(function(item) {
- return deepCompare(item, expected, comparator, anyPropertyKey, matchAgainstAnyProp);
- });
- }
-
- switch (actualType) {
- case 'object':
- var key;
- if (matchAgainstAnyProp) {
- for (key in actual) {
- if ((key.charAt(0) !== '$') && deepCompare(actual[key], expected, comparator, anyPropertyKey, true)) {
- return true;
- }
- }
- return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, anyPropertyKey, false);
- } else if (expectedType === 'object') {
- for (key in expected) {
- var expectedVal = expected[key];
- if (isFunction(expectedVal) || isUndefined(expectedVal)) {
- continue;
- }
-
- var matchAnyProperty = key === anyPropertyKey;
- var actualVal = matchAnyProperty ? actual : actual[key];
- if (!deepCompare(actualVal, expectedVal, comparator, anyPropertyKey, matchAnyProperty, matchAnyProperty)) {
- return false;
- }
- }
- return true;
- } else {
- return comparator(actual, expected);
- }
- case 'function':
- return false;
- default:
- return comparator(actual, expected);
- }
-}
-
-// Used for easily differentiating between `null` and actual `object`
-function getTypeForFilter(val) {
- return (val === null) ? 'null' : typeof val;
-}
-
-var MAX_DIGITS = 22;
-var DECIMAL_SEP = '.';
-var ZERO_CHAR = '0';
-
-/**
- * @ngdoc filter
- * @name currency
- * @kind function
- *
- * @description
- * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default
- * symbol for current locale is used.
- *
- * @param {number} amount Input to filter.
- * @param {string=} symbol Currency symbol or identifier to be displayed.
- * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale
- * @returns {string} Formatted number.
- *
- *
- * @example
- <example module="currencyExample" name="currency-filter">
- <file name="index.html">
- <script>
- angular.module('currencyExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.amount = 1234.56;
- }]);
- </script>
- <div ng-controller="ExampleController">
- <input type="number" ng-model="amount" aria-label="amount"> <br>
- default currency symbol ($): <span id="currency-default">{{amount | currency}}</span><br>
- custom currency identifier (USD$): <span id="currency-custom">{{amount | currency:"USD$"}}</span>
- no fractions (0): <span id="currency-no-fractions">{{amount | currency:"USD$":0}}</span>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should init with 1234.56', function() {
- expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');
- expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');
- expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');
- });
- it('should update', function() {
- if (browser.params.browser === 'safari') {
- // Safari does not understand the minus key. See
- // https://github.com/angular/protractor/issues/481
- return;
- }
- element(by.model('amount')).clear();
- element(by.model('amount')).sendKeys('-1234');
- expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00');
- expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00');
- expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234');
- });
- </file>
- </example>
- */
-currencyFilter.$inject = ['$locale'];
-function currencyFilter($locale) {
- var formats = $locale.NUMBER_FORMATS;
- return function(amount, currencySymbol, fractionSize) {
- if (isUndefined(currencySymbol)) {
- currencySymbol = formats.CURRENCY_SYM;
- }
-
- if (isUndefined(fractionSize)) {
- fractionSize = formats.PATTERNS[1].maxFrac;
- }
-
- // if null or undefined pass it through
- return (amount == null)
- ? amount
- : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).
- replace(/\u00A4/g, currencySymbol);
- };
-}
-
-/**
- * @ngdoc filter
- * @name number
- * @kind function
- *
- * @description
- * Formats a number as text.
- *
- * If the input is null or undefined, it will just be returned.
- * If the input is infinite (Infinity or -Infinity), the Infinity symbol '∞' or '-∞' is returned, respectively.
- * If the input is not a number an empty string is returned.
- *
- *
- * @param {number|string} number Number to format.
- * @param {(number|string)=} fractionSize Number of decimal places to round the number to.
- * If this is not provided then the fraction size is computed from the current locale's number
- * formatting pattern. In the case of the default locale, it will be 3.
- * @returns {string} Number rounded to `fractionSize` appropriately formatted based on the current
- * locale (e.g., in the en_US locale it will have "." as the decimal separator and
- * include "," group separators after each third digit).
- *
- * @example
- <example module="numberFilterExample" name="number-filter">
- <file name="index.html">
- <script>
- angular.module('numberFilterExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.val = 1234.56789;
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>Enter number: <input ng-model='val'></label><br>
- Default formatting: <span id='number-default'>{{val | number}}</span><br>
- No fractions: <span>{{val | number:0}}</span><br>
- Negative number: <span>{{-val | number:4}}</span>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should format numbers', function() {
- expect(element(by.id('number-default')).getText()).toBe('1,234.568');
- expect(element(by.binding('val | number:0')).getText()).toBe('1,235');
- expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');
- });
-
- it('should update', function() {
- element(by.model('val')).clear();
- element(by.model('val')).sendKeys('3374.333');
- expect(element(by.id('number-default')).getText()).toBe('3,374.333');
- expect(element(by.binding('val | number:0')).getText()).toBe('3,374');
- expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');
- });
- </file>
- </example>
- */
-numberFilter.$inject = ['$locale'];
-function numberFilter($locale) {
- var formats = $locale.NUMBER_FORMATS;
- return function(number, fractionSize) {
-
- // if null or undefined pass it through
- return (number == null)
- ? number
- : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,
- fractionSize);
- };
-}
-
-/**
- * Parse a number (as a string) into three components that can be used
- * for formatting the number.
- *
- * (Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/)
- *
- * @param {string} numStr The number to parse
- * @return {object} An object describing this number, containing the following keys:
- * - d : an array of digits containing leading zeros as necessary
- * - i : the number of the digits in `d` that are to the left of the decimal point
- * - e : the exponent for numbers that would need more than `MAX_DIGITS` digits in `d`
- *
- */
-function parse(numStr) {
- var exponent = 0, digits, numberOfIntegerDigits;
- var i, j, zeros;
-
- // Decimal point?
- if ((numberOfIntegerDigits = numStr.indexOf(DECIMAL_SEP)) > -1) {
- numStr = numStr.replace(DECIMAL_SEP, '');
- }
-
- // Exponential form?
- if ((i = numStr.search(/e/i)) > 0) {
- // Work out the exponent.
- if (numberOfIntegerDigits < 0) numberOfIntegerDigits = i;
- numberOfIntegerDigits += +numStr.slice(i + 1);
- numStr = numStr.substring(0, i);
- } else if (numberOfIntegerDigits < 0) {
- // There was no decimal point or exponent so it is an integer.
- numberOfIntegerDigits = numStr.length;
- }
-
- // Count the number of leading zeros.
- for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { /* empty */ }
-
- if (i === (zeros = numStr.length)) {
- // The digits are all zero.
- digits = [0];
- numberOfIntegerDigits = 1;
- } else {
- // Count the number of trailing zeros
- zeros--;
- while (numStr.charAt(zeros) === ZERO_CHAR) zeros--;
-
- // Trailing zeros are insignificant so ignore them
- numberOfIntegerDigits -= i;
- digits = [];
- // Convert string to array of digits without leading/trailing zeros.
- for (j = 0; i <= zeros; i++, j++) {
- digits[j] = +numStr.charAt(i);
- }
- }
-
- // If the number overflows the maximum allowed digits then use an exponent.
- if (numberOfIntegerDigits > MAX_DIGITS) {
- digits = digits.splice(0, MAX_DIGITS - 1);
- exponent = numberOfIntegerDigits - 1;
- numberOfIntegerDigits = 1;
- }
-
- return { d: digits, e: exponent, i: numberOfIntegerDigits };
-}
-
-/**
- * Round the parsed number to the specified number of decimal places
- * This function changed the parsedNumber in-place
- */
-function roundNumber(parsedNumber, fractionSize, minFrac, maxFrac) {
- var digits = parsedNumber.d;
- var fractionLen = digits.length - parsedNumber.i;
-
- // determine fractionSize if it is not specified; `+fractionSize` converts it to a number
- fractionSize = (isUndefined(fractionSize)) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize;
-
- // The index of the digit to where rounding is to occur
- var roundAt = fractionSize + parsedNumber.i;
- var digit = digits[roundAt];
-
- if (roundAt > 0) {
- // Drop fractional digits beyond `roundAt`
- digits.splice(Math.max(parsedNumber.i, roundAt));
-
- // Set non-fractional digits beyond `roundAt` to 0
- for (var j = roundAt; j < digits.length; j++) {
- digits[j] = 0;
- }
- } else {
- // We rounded to zero so reset the parsedNumber
- fractionLen = Math.max(0, fractionLen);
- parsedNumber.i = 1;
- digits.length = Math.max(1, roundAt = fractionSize + 1);
- digits[0] = 0;
- for (var i = 1; i < roundAt; i++) digits[i] = 0;
- }
-
- if (digit >= 5) {
- if (roundAt - 1 < 0) {
- for (var k = 0; k > roundAt; k--) {
- digits.unshift(0);
- parsedNumber.i++;
- }
- digits.unshift(1);
- parsedNumber.i++;
- } else {
- digits[roundAt - 1]++;
- }
- }
-
- // Pad out with zeros to get the required fraction length
- for (; fractionLen < Math.max(0, fractionSize); fractionLen++) digits.push(0);
-
-
- // Do any carrying, e.g. a digit was rounded up to 10
- var carry = digits.reduceRight(function(carry, d, i, digits) {
- d = d + carry;
- digits[i] = d % 10;
- return Math.floor(d / 10);
- }, 0);
- if (carry) {
- digits.unshift(carry);
- parsedNumber.i++;
- }
-}
-
-/**
- * Format a number into a string
- * @param {number} number The number to format
- * @param {{
- * minFrac, // the minimum number of digits required in the fraction part of the number
- * maxFrac, // the maximum number of digits required in the fraction part of the number
- * gSize, // number of digits in each group of separated digits
- * lgSize, // number of digits in the last group of digits before the decimal separator
- * negPre, // the string to go in front of a negative number (e.g. `-` or `(`))
- * posPre, // the string to go in front of a positive number
- * negSuf, // the string to go after a negative number (e.g. `)`)
- * posSuf // the string to go after a positive number
- * }} pattern
- * @param {string} groupSep The string to separate groups of number (e.g. `,`)
- * @param {string} decimalSep The string to act as the decimal separator (e.g. `.`)
- * @param {[type]} fractionSize The size of the fractional part of the number
- * @return {string} The number formatted as a string
- */
-function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {
-
- if (!(isString(number) || isNumber(number)) || isNaN(number)) return '';
-
- var isInfinity = !isFinite(number);
- var isZero = false;
- var numStr = Math.abs(number) + '',
- formattedText = '',
- parsedNumber;
-
- if (isInfinity) {
- formattedText = '\u221e';
- } else {
- parsedNumber = parse(numStr);
-
- roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac);
-
- var digits = parsedNumber.d;
- var integerLen = parsedNumber.i;
- var exponent = parsedNumber.e;
- var decimals = [];
- isZero = digits.reduce(function(isZero, d) { return isZero && !d; }, true);
-
- // pad zeros for small numbers
- while (integerLen < 0) {
- digits.unshift(0);
- integerLen++;
- }
-
- // extract decimals digits
- if (integerLen > 0) {
- decimals = digits.splice(integerLen, digits.length);
- } else {
- decimals = digits;
- digits = [0];
- }
-
- // format the integer digits with grouping separators
- var groups = [];
- if (digits.length >= pattern.lgSize) {
- groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));
- }
- while (digits.length > pattern.gSize) {
- groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));
- }
- if (digits.length) {
- groups.unshift(digits.join(''));
- }
- formattedText = groups.join(groupSep);
-
- // append the decimal digits
- if (decimals.length) {
- formattedText += decimalSep + decimals.join('');
- }
-
- if (exponent) {
- formattedText += 'e+' + exponent;
- }
- }
- if (number < 0 && !isZero) {
- return pattern.negPre + formattedText + pattern.negSuf;
- } else {
- return pattern.posPre + formattedText + pattern.posSuf;
- }
-}
-
-function padNumber(num, digits, trim, negWrap) {
- var neg = '';
- if (num < 0 || (negWrap && num <= 0)) {
- if (negWrap) {
- num = -num + 1;
- } else {
- num = -num;
- neg = '-';
- }
- }
- num = '' + num;
- while (num.length < digits) num = ZERO_CHAR + num;
- if (trim) {
- num = num.substr(num.length - digits);
- }
- return neg + num;
-}
-
-
-function dateGetter(name, size, offset, trim, negWrap) {
- offset = offset || 0;
- return function(date) {
- var value = date['get' + name]();
- if (offset > 0 || value > -offset) {
- value += offset;
- }
- if (value === 0 && offset === -12) value = 12;
- return padNumber(value, size, trim, negWrap);
- };
-}
-
-function dateStrGetter(name, shortForm, standAlone) {
- return function(date, formats) {
- var value = date['get' + name]();
- var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');
- var get = uppercase(propPrefix + name);
-
- return formats[get][value];
- };
-}
-
-function timeZoneGetter(date, formats, offset) {
- var zone = -1 * offset;
- var paddedZone = (zone >= 0) ? '+' : '';
-
- paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
- padNumber(Math.abs(zone % 60), 2);
-
- return paddedZone;
-}
-
-function getFirstThursdayOfYear(year) {
- // 0 = index of January
- var dayOfWeekOnFirst = (new Date(year, 0, 1)).getDay();
- // 4 = index of Thursday (+1 to account for 1st = 5)
- // 11 = index of *next* Thursday (+1 account for 1st = 12)
- return new Date(year, 0, ((dayOfWeekOnFirst <= 4) ? 5 : 12) - dayOfWeekOnFirst);
-}
-
-function getThursdayThisWeek(datetime) {
- return new Date(datetime.getFullYear(), datetime.getMonth(),
- // 4 = index of Thursday
- datetime.getDate() + (4 - datetime.getDay()));
-}
-
-function weekGetter(size) {
- return function(date) {
- var firstThurs = getFirstThursdayOfYear(date.getFullYear()),
- thisThurs = getThursdayThisWeek(date);
-
- var diff = +thisThurs - +firstThurs,
- result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week
-
- return padNumber(result, size);
- };
-}
-
-function ampmGetter(date, formats) {
- return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];
-}
-
-function eraGetter(date, formats) {
- return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1];
-}
-
-function longEraGetter(date, formats) {
- return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1];
-}
-
-var DATE_FORMATS = {
- yyyy: dateGetter('FullYear', 4, 0, false, true),
- yy: dateGetter('FullYear', 2, 0, true, true),
- y: dateGetter('FullYear', 1, 0, false, true),
- MMMM: dateStrGetter('Month'),
- MMM: dateStrGetter('Month', true),
- MM: dateGetter('Month', 2, 1),
- M: dateGetter('Month', 1, 1),
- LLLL: dateStrGetter('Month', false, true),
- dd: dateGetter('Date', 2),
- d: dateGetter('Date', 1),
- HH: dateGetter('Hours', 2),
- H: dateGetter('Hours', 1),
- hh: dateGetter('Hours', 2, -12),
- h: dateGetter('Hours', 1, -12),
- mm: dateGetter('Minutes', 2),
- m: dateGetter('Minutes', 1),
- ss: dateGetter('Seconds', 2),
- s: dateGetter('Seconds', 1),
- // while ISO 8601 requires fractions to be prefixed with `.` or `,`
- // we can be just safely rely on using `sss` since we currently don't support single or two digit fractions
- sss: dateGetter('Milliseconds', 3),
- EEEE: dateStrGetter('Day'),
- EEE: dateStrGetter('Day', true),
- a: ampmGetter,
- Z: timeZoneGetter,
- ww: weekGetter(2),
- w: weekGetter(1),
- G: eraGetter,
- GG: eraGetter,
- GGG: eraGetter,
- GGGG: longEraGetter
-};
-
-var DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,
- NUMBER_STRING = /^-?\d+$/;
-
-/**
- * @ngdoc filter
- * @name date
- * @kind function
- *
- * @description
- * Formats `date` to a string based on the requested `format`.
- *
- * `format` string can be composed of the following elements:
- *
- * * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)
- * * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)
- * * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)
- * * `'MMMM'`: Month in year (January-December)
- * * `'MMM'`: Month in year (Jan-Dec)
- * * `'MM'`: Month in year, padded (01-12)
- * * `'M'`: Month in year (1-12)
- * * `'LLLL'`: Stand-alone month in year (January-December)
- * * `'dd'`: Day in month, padded (01-31)
- * * `'d'`: Day in month (1-31)
- * * `'EEEE'`: Day in Week,(Sunday-Saturday)
- * * `'EEE'`: Day in Week, (Sun-Sat)
- * * `'HH'`: Hour in day, padded (00-23)
- * * `'H'`: Hour in day (0-23)
- * * `'hh'`: Hour in AM/PM, padded (01-12)
- * * `'h'`: Hour in AM/PM, (1-12)
- * * `'mm'`: Minute in hour, padded (00-59)
- * * `'m'`: Minute in hour (0-59)
- * * `'ss'`: Second in minute, padded (00-59)
- * * `'s'`: Second in minute (0-59)
- * * `'sss'`: Millisecond in second, padded (000-999)
- * * `'a'`: AM/PM marker
- * * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)
- * * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year
- * * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year
- * * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')
- * * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')
- *
- * `format` string can also be one of the following predefined
- * {@link guide/i18n localizable formats}:
- *
- * * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale
- * (e.g. Sep 3, 2010 12:05:08 PM)
- * * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 PM)
- * * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US locale
- * (e.g. Friday, September 3, 2010)
- * * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010)
- * * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010)
- * * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)
- * * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)
- * * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)
- *
- * `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.
- * `"h 'in the morning'"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence
- * (e.g. `"h 'o''clock'"`).
- *
- * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or
- * number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its
- * shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is
- * specified in the string input, the time is considered to be in the local timezone.
- * @param {string=} format Formatting rules (see Description). If not specified,
- * `mediumDate` is used.
- * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the
- * continental US time zone abbreviations, but for general use, use a time zone offset, for
- * example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
- * If not specified, the timezone of the browser will be used.
- * @returns {string} Formatted string or the input if input is not recognized as date/millis.
- *
- * @example
- <example name="filter-date">
- <file name="index.html">
- <span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:
- <span>{{1288323623006 | date:'medium'}}</span><br>
- <span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:
- <span>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span><br>
- <span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:
- <span>{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}</span><br>
- <span ng-non-bindable>{{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}</span>:
- <span>{{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}</span><br>
- </file>
- <file name="protractor.js" type="protractor">
- it('should format date', function() {
- expect(element(by.binding("1288323623006 | date:'medium'")).getText()).
- toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (AM|PM)/);
- expect(element(by.binding("1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'")).getText()).
- toMatch(/2010-10-2\d \d{2}:\d{2}:\d{2} (-|\+)?\d{4}/);
- expect(element(by.binding("'1288323623006' | date:'MM/dd/yyyy @ h:mma'")).getText()).
- toMatch(/10\/2\d\/2010 @ \d{1,2}:\d{2}(AM|PM)/);
- expect(element(by.binding("'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"")).getText()).
- toMatch(/10\/2\d\/2010 at \d{1,2}:\d{2}(AM|PM)/);
- });
- </file>
- </example>
- */
-dateFilter.$inject = ['$locale'];
-function dateFilter($locale) {
-
-
- var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
- // 1 2 3 4 5 6 7 8 9 10 11
- function jsonStringToDate(string) {
- var match;
- if ((match = string.match(R_ISO8601_STR))) {
- var date = new Date(0),
- tzHour = 0,
- tzMin = 0,
- dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,
- timeSetter = match[8] ? date.setUTCHours : date.setHours;
-
- if (match[9]) {
- tzHour = toInt(match[9] + match[10]);
- tzMin = toInt(match[9] + match[11]);
- }
- dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));
- var h = toInt(match[4] || 0) - tzHour;
- var m = toInt(match[5] || 0) - tzMin;
- var s = toInt(match[6] || 0);
- var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);
- timeSetter.call(date, h, m, s, ms);
- return date;
- }
- return string;
- }
-
-
- return function(date, format, timezone) {
- var text = '',
- parts = [],
- fn, match;
-
- format = format || 'mediumDate';
- format = $locale.DATETIME_FORMATS[format] || format;
- if (isString(date)) {
- date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date);
- }
-
- if (isNumber(date)) {
- date = new Date(date);
- }
-
- if (!isDate(date) || !isFinite(date.getTime())) {
- return date;
- }
-
- while (format) {
- match = DATE_FORMATS_SPLIT.exec(format);
- if (match) {
- parts = concat(parts, match, 1);
- format = parts.pop();
- } else {
- parts.push(format);
- format = null;
- }
- }
-
- var dateTimezoneOffset = date.getTimezoneOffset();
- if (timezone) {
- dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
- date = convertTimezoneToLocal(date, timezone, true);
- }
- forEach(parts, function(value) {
- fn = DATE_FORMATS[value];
- text += fn ? fn(date, $locale.DATETIME_FORMATS, dateTimezoneOffset)
- : value === '\'\'' ? '\'' : value.replace(/(^'|'$)/g, '').replace(/''/g, '\'');
- });
-
- return text;
- };
-}
-
-
-/**
- * @ngdoc filter
- * @name json
- * @kind function
- *
- * @description
- * Allows you to convert a JavaScript object into JSON string.
- *
- * This filter is mostly useful for debugging. When using the double curly {{value}} notation
- * the binding is automatically converted to JSON.
- *
- * @param {*} object Any JavaScript object (including arrays and primitive types) to filter.
- * @param {number=} spacing The number of spaces to use per indentation, defaults to 2.
- * @returns {string} JSON string.
- *
- *
- * @example
- <example name="filter-json">
- <file name="index.html">
- <pre id="default-spacing">{{ {'name':'value'} | json }}</pre>
- <pre id="custom-spacing">{{ {'name':'value'} | json:4 }}</pre>
- </file>
- <file name="protractor.js" type="protractor">
- it('should jsonify filtered objects', function() {
- expect(element(by.id('default-spacing')).getText()).toMatch(/\{\n {2}"name": ?"value"\n}/);
- expect(element(by.id('custom-spacing')).getText()).toMatch(/\{\n {4}"name": ?"value"\n}/);
- });
- </file>
- </example>
- *
- */
-function jsonFilter() {
- return function(object, spacing) {
- if (isUndefined(spacing)) {
- spacing = 2;
- }
- return toJson(object, spacing);
- };
-}
-
-
-/**
- * @ngdoc filter
- * @name lowercase
- * @kind function
- * @description
- * Converts string to lowercase.
- * @see angular.lowercase
- */
-var lowercaseFilter = valueFn(lowercase);
-
-
-/**
- * @ngdoc filter
- * @name uppercase
- * @kind function
- * @description
- * Converts string to uppercase.
- * @see angular.uppercase
- */
-var uppercaseFilter = valueFn(uppercase);
-
-/**
- * @ngdoc filter
- * @name limitTo
- * @kind function
- *
- * @description
- * Creates a new array or string containing only a specified number of elements. The elements are
- * taken from either the beginning or the end of the source array, string or number, as specified by
- * the value and sign (positive or negative) of `limit`. Other array-like objects are also supported
- * (e.g. array subclasses, NodeLists, jqLite/jQuery collections etc). If a number is used as input,
- * it is converted to a string.
- *
- * @param {Array|ArrayLike|string|number} input - Array/array-like, string or number to be limited.
- * @param {string|number} limit - The length of the returned array or string. If the `limit` number
- * is positive, `limit` number of items from the beginning of the source array/string are copied.
- * If the number is negative, `limit` number of items from the end of the source array/string
- * are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,
- * the input will be returned unchanged.
- * @param {(string|number)=} begin - Index at which to begin limitation. As a negative index,
- * `begin` indicates an offset from the end of `input`. Defaults to `0`.
- * @returns {Array|string} A new sub-array or substring of length `limit` or less if the input had
- * less than `limit` elements.
- *
- * @example
- <example module="limitToExample" name="limit-to-filter">
- <file name="index.html">
- <script>
- angular.module('limitToExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.numbers = [1,2,3,4,5,6,7,8,9];
- $scope.letters = "abcdefghi";
- $scope.longNumber = 2345432342;
- $scope.numLimit = 3;
- $scope.letterLimit = 3;
- $scope.longNumberLimit = 3;
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>
- Limit {{numbers}} to:
- <input type="number" step="1" ng-model="numLimit">
- </label>
- <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>
- <label>
- Limit {{letters}} to:
- <input type="number" step="1" ng-model="letterLimit">
- </label>
- <p>Output letters: {{ letters | limitTo:letterLimit }}</p>
- <label>
- Limit {{longNumber}} to:
- <input type="number" step="1" ng-model="longNumberLimit">
- </label>
- <p>Output long number: {{ longNumber | limitTo:longNumberLimit }}</p>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- var numLimitInput = element(by.model('numLimit'));
- var letterLimitInput = element(by.model('letterLimit'));
- var longNumberLimitInput = element(by.model('longNumberLimit'));
- var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));
- var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));
- var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));
-
- it('should limit the number array to first three items', function() {
- expect(numLimitInput.getAttribute('value')).toBe('3');
- expect(letterLimitInput.getAttribute('value')).toBe('3');
- expect(longNumberLimitInput.getAttribute('value')).toBe('3');
- expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');
- expect(limitedLetters.getText()).toEqual('Output letters: abc');
- expect(limitedLongNumber.getText()).toEqual('Output long number: 234');
- });
-
- // There is a bug in safari and protractor that doesn't like the minus key
- // it('should update the output when -3 is entered', function() {
- // numLimitInput.clear();
- // numLimitInput.sendKeys('-3');
- // letterLimitInput.clear();
- // letterLimitInput.sendKeys('-3');
- // longNumberLimitInput.clear();
- // longNumberLimitInput.sendKeys('-3');
- // expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');
- // expect(limitedLetters.getText()).toEqual('Output letters: ghi');
- // expect(limitedLongNumber.getText()).toEqual('Output long number: 342');
- // });
-
- it('should not exceed the maximum size of input array', function() {
- numLimitInput.clear();
- numLimitInput.sendKeys('100');
- letterLimitInput.clear();
- letterLimitInput.sendKeys('100');
- longNumberLimitInput.clear();
- longNumberLimitInput.sendKeys('100');
- expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');
- expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');
- expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');
- });
- </file>
- </example>
-*/
-function limitToFilter() {
- return function(input, limit, begin) {
- if (Math.abs(Number(limit)) === Infinity) {
- limit = Number(limit);
- } else {
- limit = toInt(limit);
- }
- if (isNumberNaN(limit)) return input;
-
- if (isNumber(input)) input = input.toString();
- if (!isArrayLike(input)) return input;
-
- begin = (!begin || isNaN(begin)) ? 0 : toInt(begin);
- begin = (begin < 0) ? Math.max(0, input.length + begin) : begin;
-
- if (limit >= 0) {
- return sliceFn(input, begin, begin + limit);
- } else {
- if (begin === 0) {
- return sliceFn(input, limit, input.length);
- } else {
- return sliceFn(input, Math.max(0, begin + limit), begin);
- }
- }
- };
-}
-
-function sliceFn(input, begin, end) {
- if (isString(input)) return input.slice(begin, end);
-
- return slice.call(input, begin, end);
-}
-
-/**
- * @ngdoc filter
- * @name orderBy
- * @kind function
- *
- * @description
- * Returns an array containing the items from the specified `collection`, ordered by a `comparator`
- * function based on the values computed using the `expression` predicate.
- *
- * For example, `[{id: 'foo'}, {id: 'bar'}] | orderBy:'id'` would result in
- * `[{id: 'bar'}, {id: 'foo'}]`.
- *
- * The `collection` can be an Array or array-like object (e.g. NodeList, jQuery object, TypedArray,
- * String, etc).
- *
- * The `expression` can be a single predicate, or a list of predicates each serving as a tie-breaker
- * for the preceding one. The `expression` is evaluated against each item and the output is used
- * for comparing with other items.
- *
- * You can change the sorting order by setting `reverse` to `true`. By default, items are sorted in
- * ascending order.
- *
- * The comparison is done using the `comparator` function. If none is specified, a default, built-in
- * comparator is used (see below for details - in a nutshell, it compares numbers numerically and
- * strings alphabetically).
- *
- * ### Under the hood
- *
- * Ordering the specified `collection` happens in two phases:
- *
- * 1. All items are passed through the predicate (or predicates), and the returned values are saved
- * along with their type (`string`, `number` etc). For example, an item `{label: 'foo'}`, passed
- * through a predicate that extracts the value of the `label` property, would be transformed to:
- * ```
- * {
- * value: 'foo',
- * type: 'string',
- * index: ...
- * }
- * ```
- * 2. The comparator function is used to sort the items, based on the derived values, types and
- * indices.
- *
- * If you use a custom comparator, it will be called with pairs of objects of the form
- * `{value: ..., type: '...', index: ...}` and is expected to return `0` if the objects are equal
- * (as far as the comparator is concerned), `-1` if the 1st one should be ranked higher than the
- * second, or `1` otherwise.
- *
- * In order to ensure that the sorting will be deterministic across platforms, if none of the
- * specified predicates can distinguish between two items, `orderBy` will automatically introduce a
- * dummy predicate that returns the item's index as `value`.
- * (If you are using a custom comparator, make sure it can handle this predicate as well.)
- *
- * Finally, in an attempt to simplify things, if a predicate returns an object as the extracted
- * value for an item, `orderBy` will try to convert that object to a primitive value, before passing
- * it to the comparator. The following rules govern the conversion:
- *
- * 1. If the object has a `valueOf()` method that returns a primitive, its return value will be
- * used instead.<br />
- * (If the object has a `valueOf()` method that returns another object, then the returned object
- * will be used in subsequent steps.)
- * 2. If the object has a custom `toString()` method (i.e. not the one inherited from `Object`) that
- * returns a primitive, its return value will be used instead.<br />
- * (If the object has a `toString()` method that returns another object, then the returned object
- * will be used in subsequent steps.)
- * 3. No conversion; the object itself is used.
- *
- * ### The default comparator
- *
- * The default, built-in comparator should be sufficient for most usecases. In short, it compares
- * numbers numerically, strings alphabetically (and case-insensitively), for objects falls back to
- * using their index in the original collection, and sorts values of different types by type.
- *
- * More specifically, it follows these steps to determine the relative order of items:
- *
- * 1. If the compared values are of different types, compare the types themselves alphabetically.
- * 2. If both values are of type `string`, compare them alphabetically in a case- and
- * locale-insensitive way.
- * 3. If both values are objects, compare their indices instead.
- * 4. Otherwise, return:
- * - `0`, if the values are equal (by strict equality comparison, i.e. using `===`).
- * - `-1`, if the 1st value is "less than" the 2nd value (compared using the `<` operator).
- * - `1`, otherwise.
- *
- * **Note:** If you notice numbers not being sorted as expected, make sure they are actually being
- * saved as numbers and not strings.
- * **Note:** For the purpose of sorting, `null` values are treated as the string `'null'` (i.e.
- * `type: 'string'`, `value: 'null'`). This may cause unexpected sort order relative to
- * other values.
- *
- * @param {Array|ArrayLike} collection - The collection (array or array-like object) to sort.
- * @param {(Function|string|Array.<Function|string>)=} expression - A predicate (or list of
- * predicates) to be used by the comparator to determine the order of elements.
- *
- * Can be one of:
- *
- * - `Function`: A getter function. This function will be called with each item as argument and
- * the return value will be used for sorting.
- * - `string`: An Angular expression. This expression will be evaluated against each item and the
- * result will be used for sorting. For example, use `'label'` to sort by a property called
- * `label` or `'label.substring(0, 3)'` to sort by the first 3 characters of the `label`
- * property.<br />
- * (The result of a constant expression is interpreted as a property name to be used for
- * comparison. For example, use `'"special name"'` (note the extra pair of quotes) to sort by a
- * property called `special name`.)<br />
- * An expression can be optionally prefixed with `+` or `-` to control the sorting direction,
- * ascending or descending. For example, `'+label'` or `'-label'`. If no property is provided,
- * (e.g. `'+'` or `'-'`), the collection element itself is used in comparisons.
- * - `Array`: An array of function and/or string predicates. If a predicate cannot determine the
- * relative order of two items, the next predicate is used as a tie-breaker.
- *
- * **Note:** If the predicate is missing or empty then it defaults to `'+'`.
- *
- * @param {boolean=} reverse - If `true`, reverse the sorting order.
- * @param {(Function)=} comparator - The comparator function used to determine the relative order of
- * value pairs. If omitted, the built-in comparator will be used.
- *
- * @returns {Array} - The sorted array.
- *
- *
- * @example
- * ### Ordering a table with `ngRepeat`
- *
- * The example below demonstrates a simple {@link ngRepeat ngRepeat}, where the data is sorted by
- * age in descending order (expression is set to `'-age'`). The `comparator` is not set, which means
- * it defaults to the built-in comparator.
- *
- <example name="orderBy-static" module="orderByExample1">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <table class="friends">
- <tr>
- <th>Name</th>
- <th>Phone Number</th>
- <th>Age</th>
- </tr>
- <tr ng-repeat="friend in friends | orderBy:'-age'">
- <td>{{friend.name}}</td>
- <td>{{friend.phone}}</td>
- <td>{{friend.age}}</td>
- </tr>
- </table>
- </div>
- </file>
- <file name="script.js">
- angular.module('orderByExample1', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.friends = [
- {name: 'John', phone: '555-1212', age: 10},
- {name: 'Mary', phone: '555-9876', age: 19},
- {name: 'Mike', phone: '555-4321', age: 21},
- {name: 'Adam', phone: '555-5678', age: 35},
- {name: 'Julie', phone: '555-8765', age: 29}
- ];
- }]);
- </file>
- <file name="style.css">
- .friends {
- border-collapse: collapse;
- }
-
- .friends th {
- border-bottom: 1px solid;
- }
- .friends td, .friends th {
- border-left: 1px solid;
- padding: 5px 10px;
- }
- .friends td:first-child, .friends th:first-child {
- border-left: none;
- }
- </file>
- <file name="protractor.js" type="protractor">
- // Element locators
- var names = element.all(by.repeater('friends').column('friend.name'));
-
- it('should sort friends by age in reverse order', function() {
- expect(names.get(0).getText()).toBe('Adam');
- expect(names.get(1).getText()).toBe('Julie');
- expect(names.get(2).getText()).toBe('Mike');
- expect(names.get(3).getText()).toBe('Mary');
- expect(names.get(4).getText()).toBe('John');
- });
- </file>
- </example>
- * <hr />
- *
- * @example
- * ### Changing parameters dynamically
- *
- * All parameters can be changed dynamically. The next example shows how you can make the columns of
- * a table sortable, by binding the `expression` and `reverse` parameters to scope properties.
- *
- <example name="orderBy-dynamic" module="orderByExample2">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <pre>Sort by = {{propertyName}}; reverse = {{reverse}}</pre>
- <hr/>
- <button ng-click="propertyName = null; reverse = false">Set to unsorted</button>
- <hr/>
- <table class="friends">
- <tr>
- <th>
- <button ng-click="sortBy('name')">Name</button>
- <span class="sortorder" ng-show="propertyName === 'name'" ng-class="{reverse: reverse}"></span>
- </th>
- <th>
- <button ng-click="sortBy('phone')">Phone Number</button>
- <span class="sortorder" ng-show="propertyName === 'phone'" ng-class="{reverse: reverse}"></span>
- </th>
- <th>
- <button ng-click="sortBy('age')">Age</button>
- <span class="sortorder" ng-show="propertyName === 'age'" ng-class="{reverse: reverse}"></span>
- </th>
- </tr>
- <tr ng-repeat="friend in friends | orderBy:propertyName:reverse">
- <td>{{friend.name}}</td>
- <td>{{friend.phone}}</td>
- <td>{{friend.age}}</td>
- </tr>
- </table>
- </div>
- </file>
- <file name="script.js">
- angular.module('orderByExample2', [])
- .controller('ExampleController', ['$scope', function($scope) {
- var friends = [
- {name: 'John', phone: '555-1212', age: 10},
- {name: 'Mary', phone: '555-9876', age: 19},
- {name: 'Mike', phone: '555-4321', age: 21},
- {name: 'Adam', phone: '555-5678', age: 35},
- {name: 'Julie', phone: '555-8765', age: 29}
- ];
-
- $scope.propertyName = 'age';
- $scope.reverse = true;
- $scope.friends = friends;
-
- $scope.sortBy = function(propertyName) {
- $scope.reverse = ($scope.propertyName === propertyName) ? !$scope.reverse : false;
- $scope.propertyName = propertyName;
- };
- }]);
- </file>
- <file name="style.css">
- .friends {
- border-collapse: collapse;
- }
-
- .friends th {
- border-bottom: 1px solid;
- }
- .friends td, .friends th {
- border-left: 1px solid;
- padding: 5px 10px;
- }
- .friends td:first-child, .friends th:first-child {
- border-left: none;
- }
-
- .sortorder:after {
- content: '\25b2'; // BLACK UP-POINTING TRIANGLE
- }
- .sortorder.reverse:after {
- content: '\25bc'; // BLACK DOWN-POINTING TRIANGLE
- }
- </file>
- <file name="protractor.js" type="protractor">
- // Element locators
- var unsortButton = element(by.partialButtonText('unsorted'));
- var nameHeader = element(by.partialButtonText('Name'));
- var phoneHeader = element(by.partialButtonText('Phone'));
- var ageHeader = element(by.partialButtonText('Age'));
- var firstName = element(by.repeater('friends').column('friend.name').row(0));
- var lastName = element(by.repeater('friends').column('friend.name').row(4));
-
- it('should sort friends by some property, when clicking on the column header', function() {
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('John');
-
- phoneHeader.click();
- expect(firstName.getText()).toBe('John');
- expect(lastName.getText()).toBe('Mary');
-
- nameHeader.click();
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('Mike');
-
- ageHeader.click();
- expect(firstName.getText()).toBe('John');
- expect(lastName.getText()).toBe('Adam');
- });
-
- it('should sort friends in reverse order, when clicking on the same column', function() {
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('John');
-
- ageHeader.click();
- expect(firstName.getText()).toBe('John');
- expect(lastName.getText()).toBe('Adam');
-
- ageHeader.click();
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('John');
- });
-
- it('should restore the original order, when clicking "Set to unsorted"', function() {
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('John');
-
- unsortButton.click();
- expect(firstName.getText()).toBe('John');
- expect(lastName.getText()).toBe('Julie');
- });
- </file>
- </example>
- * <hr />
- *
- * @example
- * ### Using `orderBy` inside a controller
- *
- * It is also possible to call the `orderBy` filter manually, by injecting `orderByFilter`, and
- * calling it with the desired parameters. (Alternatively, you could inject the `$filter` factory
- * and retrieve the `orderBy` filter with `$filter('orderBy')`.)
- *
- <example name="orderBy-call-manually" module="orderByExample3">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <pre>Sort by = {{propertyName}}; reverse = {{reverse}}</pre>
- <hr/>
- <button ng-click="sortBy(null)">Set to unsorted</button>
- <hr/>
- <table class="friends">
- <tr>
- <th>
- <button ng-click="sortBy('name')">Name</button>
- <span class="sortorder" ng-show="propertyName === 'name'" ng-class="{reverse: reverse}"></span>
- </th>
- <th>
- <button ng-click="sortBy('phone')">Phone Number</button>
- <span class="sortorder" ng-show="propertyName === 'phone'" ng-class="{reverse: reverse}"></span>
- </th>
- <th>
- <button ng-click="sortBy('age')">Age</button>
- <span class="sortorder" ng-show="propertyName === 'age'" ng-class="{reverse: reverse}"></span>
- </th>
- </tr>
- <tr ng-repeat="friend in friends">
- <td>{{friend.name}}</td>
- <td>{{friend.phone}}</td>
- <td>{{friend.age}}</td>
- </tr>
- </table>
- </div>
- </file>
- <file name="script.js">
- angular.module('orderByExample3', [])
- .controller('ExampleController', ['$scope', 'orderByFilter', function($scope, orderBy) {
- var friends = [
- {name: 'John', phone: '555-1212', age: 10},
- {name: 'Mary', phone: '555-9876', age: 19},
- {name: 'Mike', phone: '555-4321', age: 21},
- {name: 'Adam', phone: '555-5678', age: 35},
- {name: 'Julie', phone: '555-8765', age: 29}
- ];
-
- $scope.propertyName = 'age';
- $scope.reverse = true;
- $scope.friends = orderBy(friends, $scope.propertyName, $scope.reverse);
-
- $scope.sortBy = function(propertyName) {
- $scope.reverse = (propertyName !== null && $scope.propertyName === propertyName)
- ? !$scope.reverse : false;
- $scope.propertyName = propertyName;
- $scope.friends = orderBy(friends, $scope.propertyName, $scope.reverse);
- };
- }]);
- </file>
- <file name="style.css">
- .friends {
- border-collapse: collapse;
- }
-
- .friends th {
- border-bottom: 1px solid;
- }
- .friends td, .friends th {
- border-left: 1px solid;
- padding: 5px 10px;
- }
- .friends td:first-child, .friends th:first-child {
- border-left: none;
- }
-
- .sortorder:after {
- content: '\25b2'; // BLACK UP-POINTING TRIANGLE
- }
- .sortorder.reverse:after {
- content: '\25bc'; // BLACK DOWN-POINTING TRIANGLE
- }
- </file>
- <file name="protractor.js" type="protractor">
- // Element locators
- var unsortButton = element(by.partialButtonText('unsorted'));
- var nameHeader = element(by.partialButtonText('Name'));
- var phoneHeader = element(by.partialButtonText('Phone'));
- var ageHeader = element(by.partialButtonText('Age'));
- var firstName = element(by.repeater('friends').column('friend.name').row(0));
- var lastName = element(by.repeater('friends').column('friend.name').row(4));
-
- it('should sort friends by some property, when clicking on the column header', function() {
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('John');
-
- phoneHeader.click();
- expect(firstName.getText()).toBe('John');
- expect(lastName.getText()).toBe('Mary');
-
- nameHeader.click();
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('Mike');
-
- ageHeader.click();
- expect(firstName.getText()).toBe('John');
- expect(lastName.getText()).toBe('Adam');
- });
-
- it('should sort friends in reverse order, when clicking on the same column', function() {
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('John');
-
- ageHeader.click();
- expect(firstName.getText()).toBe('John');
- expect(lastName.getText()).toBe('Adam');
-
- ageHeader.click();
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('John');
- });
-
- it('should restore the original order, when clicking "Set to unsorted"', function() {
- expect(firstName.getText()).toBe('Adam');
- expect(lastName.getText()).toBe('John');
-
- unsortButton.click();
- expect(firstName.getText()).toBe('John');
- expect(lastName.getText()).toBe('Julie');
- });
- </file>
- </example>
- * <hr />
- *
- * @example
- * ### Using a custom comparator
- *
- * If you have very specific requirements about the way items are sorted, you can pass your own
- * comparator function. For example, you might need to compare some strings in a locale-sensitive
- * way. (When specifying a custom comparator, you also need to pass a value for the `reverse`
- * argument - passing `false` retains the default sorting order, i.e. ascending.)
- *
- <example name="orderBy-custom-comparator" module="orderByExample4">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <div class="friends-container custom-comparator">
- <h3>Locale-sensitive Comparator</h3>
- <table class="friends">
- <tr>
- <th>Name</th>
- <th>Favorite Letter</th>
- </tr>
- <tr ng-repeat="friend in friends | orderBy:'favoriteLetter':false:localeSensitiveComparator">
- <td>{{friend.name}}</td>
- <td>{{friend.favoriteLetter}}</td>
- </tr>
- </table>
- </div>
- <div class="friends-container default-comparator">
- <h3>Default Comparator</h3>
- <table class="friends">
- <tr>
- <th>Name</th>
- <th>Favorite Letter</th>
- </tr>
- <tr ng-repeat="friend in friends | orderBy:'favoriteLetter'">
- <td>{{friend.name}}</td>
- <td>{{friend.favoriteLetter}}</td>
- </tr>
- </table>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('orderByExample4', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.friends = [
- {name: 'John', favoriteLetter: 'Ä'},
- {name: 'Mary', favoriteLetter: 'Ü'},
- {name: 'Mike', favoriteLetter: 'Ö'},
- {name: 'Adam', favoriteLetter: 'H'},
- {name: 'Julie', favoriteLetter: 'Z'}
- ];
-
- $scope.localeSensitiveComparator = function(v1, v2) {
- // If we don't get strings, just compare by index
- if (v1.type !== 'string' || v2.type !== 'string') {
- return (v1.index < v2.index) ? -1 : 1;
- }
-
- // Compare strings alphabetically, taking locale into account
- return v1.value.localeCompare(v2.value);
- };
- }]);
- </file>
- <file name="style.css">
- .friends-container {
- display: inline-block;
- margin: 0 30px;
- }
-
- .friends {
- border-collapse: collapse;
- }
-
- .friends th {
- border-bottom: 1px solid;
- }
- .friends td, .friends th {
- border-left: 1px solid;
- padding: 5px 10px;
- }
- .friends td:first-child, .friends th:first-child {
- border-left: none;
- }
- </file>
- <file name="protractor.js" type="protractor">
- // Element locators
- var container = element(by.css('.custom-comparator'));
- var names = container.all(by.repeater('friends').column('friend.name'));
-
- it('should sort friends by favorite letter (in correct alphabetical order)', function() {
- expect(names.get(0).getText()).toBe('John');
- expect(names.get(1).getText()).toBe('Adam');
- expect(names.get(2).getText()).toBe('Mike');
- expect(names.get(3).getText()).toBe('Mary');
- expect(names.get(4).getText()).toBe('Julie');
- });
- </file>
- </example>
- *
- */
-orderByFilter.$inject = ['$parse'];
-function orderByFilter($parse) {
- return function(array, sortPredicate, reverseOrder, compareFn) {
-
- if (array == null) return array;
- if (!isArrayLike(array)) {
- throw minErr('orderBy')('notarray', 'Expected array but received: {0}', array);
- }
-
- if (!isArray(sortPredicate)) { sortPredicate = [sortPredicate]; }
- if (sortPredicate.length === 0) { sortPredicate = ['+']; }
-
- var predicates = processPredicates(sortPredicate);
-
- var descending = reverseOrder ? -1 : 1;
-
- // Define the `compare()` function. Use a default comparator if none is specified.
- var compare = isFunction(compareFn) ? compareFn : defaultCompare;
-
- // The next three lines are a version of a Swartzian Transform idiom from Perl
- // (sometimes called the Decorate-Sort-Undecorate idiom)
- // See https://en.wikipedia.org/wiki/Schwartzian_transform
- var compareValues = Array.prototype.map.call(array, getComparisonObject);
- compareValues.sort(doComparison);
- array = compareValues.map(function(item) { return item.value; });
-
- return array;
-
- function getComparisonObject(value, index) {
- // NOTE: We are adding an extra `tieBreaker` value based on the element's index.
- // This will be used to keep the sort stable when none of the input predicates can
- // distinguish between two elements.
- return {
- value: value,
- tieBreaker: {value: index, type: 'number', index: index},
- predicateValues: predicates.map(function(predicate) {
- return getPredicateValue(predicate.get(value), index);
- })
- };
- }
-
- function doComparison(v1, v2) {
- for (var i = 0, ii = predicates.length; i < ii; i++) {
- var result = compare(v1.predicateValues[i], v2.predicateValues[i]);
- if (result) {
- return result * predicates[i].descending * descending;
- }
- }
-
- return compare(v1.tieBreaker, v2.tieBreaker) * descending;
- }
- };
-
- function processPredicates(sortPredicates) {
- return sortPredicates.map(function(predicate) {
- var descending = 1, get = identity;
-
- if (isFunction(predicate)) {
- get = predicate;
- } else if (isString(predicate)) {
- if ((predicate.charAt(0) === '+' || predicate.charAt(0) === '-')) {
- descending = predicate.charAt(0) === '-' ? -1 : 1;
- predicate = predicate.substring(1);
- }
- if (predicate !== '') {
- get = $parse(predicate);
- if (get.constant) {
- var key = get();
- get = function(value) { return value[key]; };
- }
- }
- }
- return {get: get, descending: descending};
- });
- }
-
- function isPrimitive(value) {
- switch (typeof value) {
- case 'number': /* falls through */
- case 'boolean': /* falls through */
- case 'string':
- return true;
- default:
- return false;
- }
- }
-
- function objectValue(value) {
- // If `valueOf` is a valid function use that
- if (isFunction(value.valueOf)) {
- value = value.valueOf();
- if (isPrimitive(value)) return value;
- }
- // If `toString` is a valid function and not the one from `Object.prototype` use that
- if (hasCustomToString(value)) {
- value = value.toString();
- if (isPrimitive(value)) return value;
- }
-
- return value;
- }
-
- function getPredicateValue(value, index) {
- var type = typeof value;
- if (value === null) {
- type = 'string';
- value = 'null';
- } else if (type === 'object') {
- value = objectValue(value);
- }
- return {value: value, type: type, index: index};
- }
-
- function defaultCompare(v1, v2) {
- var result = 0;
- var type1 = v1.type;
- var type2 = v2.type;
-
- if (type1 === type2) {
- var value1 = v1.value;
- var value2 = v2.value;
-
- if (type1 === 'string') {
- // Compare strings case-insensitively
- value1 = value1.toLowerCase();
- value2 = value2.toLowerCase();
- } else if (type1 === 'object') {
- // For basic objects, use the position of the object
- // in the collection instead of the value
- if (isObject(value1)) value1 = v1.index;
- if (isObject(value2)) value2 = v2.index;
- }
-
- if (value1 !== value2) {
- result = value1 < value2 ? -1 : 1;
- }
- } else {
- result = type1 < type2 ? -1 : 1;
- }
-
- return result;
- }
-}
-
-function ngDirective(directive) {
- if (isFunction(directive)) {
- directive = {
- link: directive
- };
- }
- directive.restrict = directive.restrict || 'AC';
- return valueFn(directive);
-}
-
-/**
- * @ngdoc directive
- * @name a
- * @restrict E
- *
- * @description
- * Modifies the default behavior of the html a tag so that the default action is prevented when
- * the href attribute is empty.
- *
- * For dynamically creating `href` attributes for a tags, see the {@link ng.ngHref `ngHref`} directive.
- */
-var htmlAnchorDirective = valueFn({
- restrict: 'E',
- compile: function(element, attr) {
- if (!attr.href && !attr.xlinkHref) {
- return function(scope, element) {
- // If the linked element is not an anchor tag anymore, do nothing
- if (element[0].nodeName.toLowerCase() !== 'a') return;
-
- // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
- var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?
- 'xlink:href' : 'href';
- element.on('click', function(event) {
- // if we have no href url, then don't navigate anywhere.
- if (!element.attr(href)) {
- event.preventDefault();
- }
- });
- };
- }
- }
-});
-
-/**
- * @ngdoc directive
- * @name ngHref
- * @restrict A
- * @priority 99
- *
- * @description
- * Using Angular markup like `{{hash}}` in an href attribute will
- * make the link go to the wrong URL if the user clicks it before
- * Angular has a chance to replace the `{{hash}}` markup with its
- * value. Until Angular replaces the markup the link will be broken
- * and will most likely return a 404 error. The `ngHref` directive
- * solves this problem.
- *
- * The wrong way to write it:
- * ```html
- * <a href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
- * ```
- *
- * The correct way to write it:
- * ```html
- * <a ng-href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
- * ```
- *
- * @element A
- * @param {template} ngHref any string which can contain `{{}}` markup.
- *
- * @example
- * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes
- * in links and their different behaviors:
- <example name="ng-href">
- <file name="index.html">
- <input ng-model="value" /><br />
- <a id="link-1" href ng-click="value = 1">link 1</a> (link, don't reload)<br />
- <a id="link-2" href="" ng-click="value = 2">link 2</a> (link, don't reload)<br />
- <a id="link-3" ng-href="/{{'123'}}">link 3</a> (link, reload!)<br />
- <a id="link-4" href="" name="xx" ng-click="value = 4">anchor</a> (link, don't reload)<br />
- <a id="link-5" name="xxx" ng-click="value = 5">anchor</a> (no link)<br />
- <a id="link-6" ng-href="{{value}}">link</a> (link, change location)
- </file>
- <file name="protractor.js" type="protractor">
- it('should execute ng-click but not reload when href without value', function() {
- element(by.id('link-1')).click();
- expect(element(by.model('value')).getAttribute('value')).toEqual('1');
- expect(element(by.id('link-1')).getAttribute('href')).toBe('');
- });
-
- it('should execute ng-click but not reload when href empty string', function() {
- element(by.id('link-2')).click();
- expect(element(by.model('value')).getAttribute('value')).toEqual('2');
- expect(element(by.id('link-2')).getAttribute('href')).toBe('');
- });
-
- it('should execute ng-click and change url when ng-href specified', function() {
- expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\/123$/);
-
- element(by.id('link-3')).click();
-
- // At this point, we navigate away from an Angular page, so we need
- // to use browser.driver to get the base webdriver.
-
- browser.wait(function() {
- return browser.driver.getCurrentUrl().then(function(url) {
- return url.match(/\/123$/);
- });
- }, 5000, 'page should navigate to /123');
- });
-
- it('should execute ng-click but not reload when href empty string and name specified', function() {
- element(by.id('link-4')).click();
- expect(element(by.model('value')).getAttribute('value')).toEqual('4');
- expect(element(by.id('link-4')).getAttribute('href')).toBe('');
- });
-
- it('should execute ng-click but not reload when no href but name specified', function() {
- element(by.id('link-5')).click();
- expect(element(by.model('value')).getAttribute('value')).toEqual('5');
- expect(element(by.id('link-5')).getAttribute('href')).toBe(null);
- });
-
- it('should only change url when only ng-href', function() {
- element(by.model('value')).clear();
- element(by.model('value')).sendKeys('6');
- expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\/6$/);
-
- element(by.id('link-6')).click();
-
- // At this point, we navigate away from an Angular page, so we need
- // to use browser.driver to get the base webdriver.
- browser.wait(function() {
- return browser.driver.getCurrentUrl().then(function(url) {
- return url.match(/\/6$/);
- });
- }, 5000, 'page should navigate to /6');
- });
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngSrc
- * @restrict A
- * @priority 99
- *
- * @description
- * Using Angular markup like `{{hash}}` in a `src` attribute doesn't
- * work right: The browser will fetch from the URL with the literal
- * text `{{hash}}` until Angular replaces the expression inside
- * `{{hash}}`. The `ngSrc` directive solves this problem.
- *
- * The buggy way to write it:
- * ```html
- * <img src="http://www.gravatar.com/avatar/{{hash}}" alt="Description"/>
- * ```
- *
- * The correct way to write it:
- * ```html
- * <img ng-src="http://www.gravatar.com/avatar/{{hash}}" alt="Description" />
- * ```
- *
- * @element IMG
- * @param {template} ngSrc any string which can contain `{{}}` markup.
- */
-
-/**
- * @ngdoc directive
- * @name ngSrcset
- * @restrict A
- * @priority 99
- *
- * @description
- * Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't
- * work right: The browser will fetch from the URL with the literal
- * text `{{hash}}` until Angular replaces the expression inside
- * `{{hash}}`. The `ngSrcset` directive solves this problem.
- *
- * The buggy way to write it:
- * ```html
- * <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description"/>
- * ```
- *
- * The correct way to write it:
- * ```html
- * <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description" />
- * ```
- *
- * @element IMG
- * @param {template} ngSrcset any string which can contain `{{}}` markup.
- */
-
-/**
- * @ngdoc directive
- * @name ngDisabled
- * @restrict A
- * @priority 100
- *
- * @description
- *
- * This directive sets the `disabled` attribute on the element if the
- * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.
- *
- * A special directive is necessary because we cannot use interpolation inside the `disabled`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * @example
- <example name="ng-disabled">
- <file name="index.html">
- <label>Click me to toggle: <input type="checkbox" ng-model="checked"></label><br/>
- <button ng-model="button" ng-disabled="checked">Button</button>
- </file>
- <file name="protractor.js" type="protractor">
- it('should toggle button', function() {
- expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();
- element(by.model('checked')).click();
- expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element INPUT
- * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
- * then the `disabled` attribute will be set on the element
- */
-
-
-/**
- * @ngdoc directive
- * @name ngChecked
- * @restrict A
- * @priority 100
- *
- * @description
- * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.
- *
- * Note that this directive should not be used together with {@link ngModel `ngModel`},
- * as this can lead to unexpected behavior.
- *
- * A special directive is necessary because we cannot use interpolation inside the `checked`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * @example
- <example name="ng-checked">
- <file name="index.html">
- <label>Check me to check both: <input type="checkbox" ng-model="master"></label><br/>
- <input id="checkSlave" type="checkbox" ng-checked="master" aria-label="Slave input">
- </file>
- <file name="protractor.js" type="protractor">
- it('should check both checkBoxes', function() {
- expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy();
- element(by.model('master')).click();
- expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element INPUT
- * @param {expression} ngChecked If the {@link guide/expression expression} is truthy,
- * then the `checked` attribute will be set on the element
- */
-
-
-/**
- * @ngdoc directive
- * @name ngReadonly
- * @restrict A
- * @priority 100
- *
- * @description
- *
- * Sets the `readonly` attribute on the element, if the expression inside `ngReadonly` is truthy.
- * Note that `readonly` applies only to `input` elements with specific types. [See the input docs on
- * MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) for more information.
- *
- * A special directive is necessary because we cannot use interpolation inside the `readonly`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * @example
- <example name="ng-readonly">
- <file name="index.html">
- <label>Check me to make text readonly: <input type="checkbox" ng-model="checked"></label><br/>
- <input type="text" ng-readonly="checked" value="I'm Angular" aria-label="Readonly field" />
- </file>
- <file name="protractor.js" type="protractor">
- it('should toggle readonly attr', function() {
- expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeFalsy();
- element(by.model('checked')).click();
- expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element INPUT
- * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,
- * then special attribute "readonly" will be set on the element
- */
-
-
-/**
- * @ngdoc directive
- * @name ngSelected
- * @restrict A
- * @priority 100
- *
- * @description
- *
- * Sets the `selected` attribute on the element, if the expression inside `ngSelected` is truthy.
- *
- * A special directive is necessary because we cannot use interpolation inside the `selected`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * <div class="alert alert-warning">
- * **Note:** `ngSelected` does not interact with the `select` and `ngModel` directives, it only
- * sets the `selected` attribute on the element. If you are using `ngModel` on the select, you
- * should not use `ngSelected` on the options, as `ngModel` will set the select value and
- * selected options.
- * </div>
- *
- * @example
- <example name="ng-selected">
- <file name="index.html">
- <label>Check me to select: <input type="checkbox" ng-model="selected"></label><br/>
- <select aria-label="ngSelected demo">
- <option>Hello!</option>
- <option id="greet" ng-selected="selected">Greetings!</option>
- </select>
- </file>
- <file name="protractor.js" type="protractor">
- it('should select Greetings!', function() {
- expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();
- element(by.model('selected')).click();
- expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element OPTION
- * @param {expression} ngSelected If the {@link guide/expression expression} is truthy,
- * then special attribute "selected" will be set on the element
- */
-
-/**
- * @ngdoc directive
- * @name ngOpen
- * @restrict A
- * @priority 100
- *
- * @description
- *
- * Sets the `open` attribute on the element, if the expression inside `ngOpen` is truthy.
- *
- * A special directive is necessary because we cannot use interpolation inside the `open`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * ## A note about browser compatibility
- *
- * Edge, Firefox, and Internet Explorer do not support the `details` element, it is
- * recommended to use {@link ng.ngShow} and {@link ng.ngHide} instead.
- *
- * @example
- <example name="ng-open">
- <file name="index.html">
- <label>Check me check multiple: <input type="checkbox" ng-model="open"></label><br/>
- <details id="details" ng-open="open">
- <summary>Show/Hide me</summary>
- </details>
- </file>
- <file name="protractor.js" type="protractor">
- it('should toggle open', function() {
- expect(element(by.id('details')).getAttribute('open')).toBeFalsy();
- element(by.model('open')).click();
- expect(element(by.id('details')).getAttribute('open')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element DETAILS
- * @param {expression} ngOpen If the {@link guide/expression expression} is truthy,
- * then special attribute "open" will be set on the element
- */
-
-var ngAttributeAliasDirectives = {};
-
-// boolean attrs are evaluated
-forEach(BOOLEAN_ATTR, function(propName, attrName) {
- // binding to multiple is not supported
- if (propName === 'multiple') return;
-
- function defaultLinkFn(scope, element, attr) {
- scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {
- attr.$set(attrName, !!value);
- });
- }
-
- var normalized = directiveNormalize('ng-' + attrName);
- var linkFn = defaultLinkFn;
-
- if (propName === 'checked') {
- linkFn = function(scope, element, attr) {
- // ensuring ngChecked doesn't interfere with ngModel when both are set on the same input
- if (attr.ngModel !== attr[normalized]) {
- defaultLinkFn(scope, element, attr);
- }
- };
- }
-
- ngAttributeAliasDirectives[normalized] = function() {
- return {
- restrict: 'A',
- priority: 100,
- link: linkFn
- };
- };
-});
-
-// aliased input attrs are evaluated
-forEach(ALIASED_ATTR, function(htmlAttr, ngAttr) {
- ngAttributeAliasDirectives[ngAttr] = function() {
- return {
- priority: 100,
- link: function(scope, element, attr) {
- //special case ngPattern when a literal regular expression value
- //is used as the expression (this way we don't have to watch anything).
- if (ngAttr === 'ngPattern' && attr.ngPattern.charAt(0) === '/') {
- var match = attr.ngPattern.match(REGEX_STRING_REGEXP);
- if (match) {
- attr.$set('ngPattern', new RegExp(match[1], match[2]));
- return;
- }
- }
-
- scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) {
- attr.$set(ngAttr, value);
- });
- }
- };
- };
-});
-
-// ng-src, ng-srcset, ng-href are interpolated
-forEach(['src', 'srcset', 'href'], function(attrName) {
- var normalized = directiveNormalize('ng-' + attrName);
- ngAttributeAliasDirectives[normalized] = function() {
- return {
- priority: 99, // it needs to run after the attributes are interpolated
- link: function(scope, element, attr) {
- var propName = attrName,
- name = attrName;
-
- if (attrName === 'href' &&
- toString.call(element.prop('href')) === '[object SVGAnimatedString]') {
- name = 'xlinkHref';
- attr.$attr[name] = 'xlink:href';
- propName = null;
- }
-
- attr.$observe(normalized, function(value) {
- if (!value) {
- if (attrName === 'href') {
- attr.$set(name, null);
- }
- return;
- }
-
- attr.$set(name, value);
-
- // on IE, if "ng:src" directive declaration is used and "src" attribute doesn't exist
- // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need
- // to set the property as well to achieve the desired effect.
- // we use attr[attrName] value since $set can sanitize the url.
- if (msie && propName) element.prop(propName, attr[name]);
- });
- }
- };
- };
-});
-
-/* global -nullFormCtrl, -SUBMITTED_CLASS, addSetValidityMethod: true
- */
-var nullFormCtrl = {
- $addControl: noop,
- $$renameControl: nullFormRenameControl,
- $removeControl: noop,
- $setValidity: noop,
- $setDirty: noop,
- $setPristine: noop,
- $setSubmitted: noop
-},
-SUBMITTED_CLASS = 'ng-submitted';
-
-function nullFormRenameControl(control, name) {
- control.$name = name;
-}
-
-/**
- * @ngdoc type
- * @name form.FormController
- *
- * @property {boolean} $pristine True if user has not interacted with the form yet.
- * @property {boolean} $dirty True if user has already interacted with the form.
- * @property {boolean} $valid True if all of the containing forms and controls are valid.
- * @property {boolean} $invalid True if at least one containing control or form is invalid.
- * @property {boolean} $pending True if at least one containing control or form is pending.
- * @property {boolean} $submitted True if user has submitted the form even if its invalid.
- *
- * @property {Object} $error Is an object hash, containing references to controls or
- * forms with failing validators, where:
- *
- * - keys are validation tokens (error names),
- * - values are arrays of controls or forms that have a failing validator for given error name.
- *
- * Built-in validation tokens:
- *
- * - `email`
- * - `max`
- * - `maxlength`
- * - `min`
- * - `minlength`
- * - `number`
- * - `pattern`
- * - `required`
- * - `url`
- * - `date`
- * - `datetimelocal`
- * - `time`
- * - `week`
- * - `month`
- *
- * @description
- * `FormController` keeps track of all its controls and nested forms as well as the state of them,
- * such as being valid/invalid or dirty/pristine.
- *
- * Each {@link ng.directive:form form} directive creates an instance
- * of `FormController`.
- *
- */
-//asks for $scope to fool the BC controller module
-FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];
-function FormController(element, attrs, $scope, $animate, $interpolate) {
- var form = this,
- controls = [];
-
- // init state
- form.$error = {};
- form.$$success = {};
- form.$pending = undefined;
- form.$name = $interpolate(attrs.name || attrs.ngForm || '')($scope);
- form.$dirty = false;
- form.$pristine = true;
- form.$valid = true;
- form.$invalid = false;
- form.$submitted = false;
- form.$$parentForm = nullFormCtrl;
-
- /**
- * @ngdoc method
- * @name form.FormController#$rollbackViewValue
- *
- * @description
- * Rollback all form controls pending updates to the `$modelValue`.
- *
- * Updates may be pending by a debounced event or because the input is waiting for a some future
- * event defined in `ng-model-options`. This method is typically needed by the reset button of
- * a form that uses `ng-model-options` to pend updates.
- */
- form.$rollbackViewValue = function() {
- forEach(controls, function(control) {
- control.$rollbackViewValue();
- });
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$commitViewValue
- *
- * @description
- * Commit all form controls pending updates to the `$modelValue`.
- *
- * Updates may be pending by a debounced event or because the input is waiting for a some future
- * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`
- * usually handles calling this in response to input events.
- */
- form.$commitViewValue = function() {
- forEach(controls, function(control) {
- control.$commitViewValue();
- });
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$addControl
- * @param {object} control control object, either a {@link form.FormController} or an
- * {@link ngModel.NgModelController}
- *
- * @description
- * Register a control with the form. Input elements using ngModelController do this automatically
- * when they are linked.
- *
- * Note that the current state of the control will not be reflected on the new parent form. This
- * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`
- * state.
- *
- * However, if the method is used programmatically, for example by adding dynamically created controls,
- * or controls that have been previously removed without destroying their corresponding DOM element,
- * it's the developers responsibility to make sure the current state propagates to the parent form.
- *
- * For example, if an input control is added that is already `$dirty` and has `$error` properties,
- * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.
- */
- form.$addControl = function(control) {
- // Breaking change - before, inputs whose name was "hasOwnProperty" were quietly ignored
- // and not added to the scope. Now we throw an error.
- assertNotHasOwnProperty(control.$name, 'input');
- controls.push(control);
-
- if (control.$name) {
- form[control.$name] = control;
- }
-
- control.$$parentForm = form;
- };
-
- // Private API: rename a form control
- form.$$renameControl = function(control, newName) {
- var oldName = control.$name;
-
- if (form[oldName] === control) {
- delete form[oldName];
- }
- form[newName] = control;
- control.$name = newName;
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$removeControl
- * @param {object} control control object, either a {@link form.FormController} or an
- * {@link ngModel.NgModelController}
- *
- * @description
- * Deregister a control from the form.
- *
- * Input elements using ngModelController do this automatically when they are destroyed.
- *
- * Note that only the removed control's validation state (`$errors`etc.) will be removed from the
- * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be
- * different from case to case. For example, removing the only `$dirty` control from a form may or
- * may not mean that the form is still `$dirty`.
- */
- form.$removeControl = function(control) {
- if (control.$name && form[control.$name] === control) {
- delete form[control.$name];
- }
- forEach(form.$pending, function(value, name) {
- form.$setValidity(name, null, control);
- });
- forEach(form.$error, function(value, name) {
- form.$setValidity(name, null, control);
- });
- forEach(form.$$success, function(value, name) {
- form.$setValidity(name, null, control);
- });
-
- arrayRemove(controls, control);
- control.$$parentForm = nullFormCtrl;
- };
-
-
- /**
- * @ngdoc method
- * @name form.FormController#$setValidity
- *
- * @description
- * Sets the validity of a form control.
- *
- * This method will also propagate to parent forms.
- */
- addSetValidityMethod({
- ctrl: this,
- $element: element,
- set: function(object, property, controller) {
- var list = object[property];
- if (!list) {
- object[property] = [controller];
- } else {
- var index = list.indexOf(controller);
- if (index === -1) {
- list.push(controller);
- }
- }
- },
- unset: function(object, property, controller) {
- var list = object[property];
- if (!list) {
- return;
- }
- arrayRemove(list, controller);
- if (list.length === 0) {
- delete object[property];
- }
- },
- $animate: $animate
- });
-
- /**
- * @ngdoc method
- * @name form.FormController#$setDirty
- *
- * @description
- * Sets the form to a dirty state.
- *
- * This method can be called to add the 'ng-dirty' class and set the form to a dirty
- * state (ng-dirty class). This method will also propagate to parent forms.
- */
- form.$setDirty = function() {
- $animate.removeClass(element, PRISTINE_CLASS);
- $animate.addClass(element, DIRTY_CLASS);
- form.$dirty = true;
- form.$pristine = false;
- form.$$parentForm.$setDirty();
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$setPristine
- *
- * @description
- * Sets the form to its pristine state.
- *
- * This method sets the form's `$pristine` state to true, the `$dirty` state to false, removes
- * the `ng-dirty` class and adds the `ng-pristine` class. Additionally, it sets the `$submitted`
- * state to false.
- *
- * This method will also propagate to all the controls contained in this form.
- *
- * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after
- * saving or resetting it.
- */
- form.$setPristine = function() {
- $animate.setClass(element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS);
- form.$dirty = false;
- form.$pristine = true;
- form.$submitted = false;
- forEach(controls, function(control) {
- control.$setPristine();
- });
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$setUntouched
- *
- * @description
- * Sets the form to its untouched state.
- *
- * This method can be called to remove the 'ng-touched' class and set the form controls to their
- * untouched state (ng-untouched class).
- *
- * Setting a form controls back to their untouched state is often useful when setting the form
- * back to its pristine state.
- */
- form.$setUntouched = function() {
- forEach(controls, function(control) {
- control.$setUntouched();
- });
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$setSubmitted
- *
- * @description
- * Sets the form to its submitted state.
- */
- form.$setSubmitted = function() {
- $animate.addClass(element, SUBMITTED_CLASS);
- form.$submitted = true;
- form.$$parentForm.$setSubmitted();
- };
-}
-
-/**
- * @ngdoc directive
- * @name ngForm
- * @restrict EAC
- *
- * @description
- * Nestable alias of {@link ng.directive:form `form`} directive. HTML
- * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a
- * sub-group of controls needs to be determined.
- *
- * Note: the purpose of `ngForm` is to group controls,
- * but not to be a replacement for the `<form>` tag with all of its capabilities
- * (e.g. posting to the server, ...).
- *
- * @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into
- * related scope, under this name.
- *
- */
-
- /**
- * @ngdoc directive
- * @name form
- * @restrict E
- *
- * @description
- * Directive that instantiates
- * {@link form.FormController FormController}.
- *
- * If the `name` attribute is specified, the form controller is published onto the current scope under
- * this name.
- *
- * # Alias: {@link ng.directive:ngForm `ngForm`}
- *
- * In Angular, forms can be nested. This means that the outer form is valid when all of the child
- * forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so
- * Angular provides the {@link ng.directive:ngForm `ngForm`} directive, which behaves identically to
- * `form` but can be nested. Nested forms can be useful, for example, if the validity of a sub-group
- * of controls needs to be determined.
- *
- * # CSS classes
- * - `ng-valid` is set if the form is valid.
- * - `ng-invalid` is set if the form is invalid.
- * - `ng-pending` is set if the form is pending.
- * - `ng-pristine` is set if the form is pristine.
- * - `ng-dirty` is set if the form is dirty.
- * - `ng-submitted` is set if the form was submitted.
- *
- * Keep in mind that ngAnimate can detect each of these classes when added and removed.
- *
- *
- * # Submitting a form and preventing the default action
- *
- * Since the role of forms in client-side Angular applications is different than in classical
- * roundtrip apps, it is desirable for the browser not to translate the form submission into a full
- * page reload that sends the data to the server. Instead some javascript logic should be triggered
- * to handle the form submission in an application-specific way.
- *
- * For this reason, Angular prevents the default action (form submission to the server) unless the
- * `<form>` element has an `action` attribute specified.
- *
- * You can use one of the following two ways to specify what javascript method should be called when
- * a form is submitted:
- *
- * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element
- * - {@link ng.directive:ngClick ngClick} directive on the first
- * button or input field of type submit (input[type=submit])
- *
- * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}
- * or {@link ng.directive:ngClick ngClick} directives.
- * This is because of the following form submission rules in the HTML specification:
- *
- * - If a form has only one input field then hitting enter in this field triggers form submit
- * (`ngSubmit`)
- * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter
- * doesn't trigger submit
- * - if a form has one or more input fields and one or more buttons or input[type=submit] then
- * hitting enter in any of the input fields will trigger the click handler on the *first* button or
- * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)
- *
- * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is
- * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
- * to have access to the updated model.
- *
- * ## Animation Hooks
- *
- * Animations in ngForm are triggered when any of the associated CSS classes are added and removed.
- * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any
- * other validations that are performed within the form. Animations in ngForm are similar to how
- * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well
- * as JS animations.
- *
- * The following example shows a simple way to utilize CSS transitions to style a form element
- * that has been rendered as invalid after it has been validated:
- *
- * <pre>
- * //be sure to include ngAnimate as a module to hook into more
- * //advanced animations
- * .my-form {
- * transition:0.5s linear all;
- * background: white;
- * }
- * .my-form.ng-invalid {
- * background: red;
- * color:white;
- * }
- * </pre>
- *
- * @example
- <example name="ng-form" deps="angular-animate.js" animations="true" fixBase="true" module="formExample">
- <file name="index.html">
- <script>
- angular.module('formExample', [])
- .controller('FormController', ['$scope', function($scope) {
- $scope.userType = 'guest';
- }]);
- </script>
- <style>
- .my-form {
- transition:all linear 0.5s;
- background: transparent;
- }
- .my-form.ng-invalid {
- background: red;
- }
- </style>
- <form name="myForm" ng-controller="FormController" class="my-form">
- userType: <input name="input" ng-model="userType" required>
- <span class="error" ng-show="myForm.input.$error.required">Required!</span><br>
- <code>userType = {{userType}}</code><br>
- <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br>
- <code>myForm.input.$error = {{myForm.input.$error}}</code><br>
- <code>myForm.$valid = {{myForm.$valid}}</code><br>
- <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- it('should initialize to model', function() {
- var userType = element(by.binding('userType'));
- var valid = element(by.binding('myForm.input.$valid'));
-
- expect(userType.getText()).toContain('guest');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- var userType = element(by.binding('userType'));
- var valid = element(by.binding('myForm.input.$valid'));
- var userInput = element(by.model('userType'));
-
- userInput.clear();
- userInput.sendKeys('');
-
- expect(userType.getText()).toEqual('userType =');
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- *
- * @param {string=} name Name of the form. If specified, the form controller will be published into
- * related scope, under this name.
- */
-var formDirectiveFactory = function(isNgForm) {
- return ['$timeout', '$parse', function($timeout, $parse) {
- var formDirective = {
- name: 'form',
- restrict: isNgForm ? 'EAC' : 'E',
- require: ['form', '^^?form'], //first is the form's own ctrl, second is an optional parent form
- controller: FormController,
- compile: function ngFormCompile(formElement, attr) {
- // Setup initial state of the control
- formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);
-
- var nameAttr = attr.name ? 'name' : (isNgForm && attr.ngForm ? 'ngForm' : false);
-
- return {
- pre: function ngFormPreLink(scope, formElement, attr, ctrls) {
- var controller = ctrls[0];
-
- // if `action` attr is not present on the form, prevent the default action (submission)
- if (!('action' in attr)) {
- // we can't use jq events because if a form is destroyed during submission the default
- // action is not prevented. see #1238
- //
- // IE 9 is not affected because it doesn't fire a submit event and try to do a full
- // page reload if the form was destroyed by submission of the form via a click handler
- // on a button in the form. Looks like an IE9 specific bug.
- var handleFormSubmission = function(event) {
- scope.$apply(function() {
- controller.$commitViewValue();
- controller.$setSubmitted();
- });
-
- event.preventDefault();
- };
-
- addEventListenerFn(formElement[0], 'submit', handleFormSubmission);
-
- // unregister the preventDefault listener so that we don't not leak memory but in a
- // way that will achieve the prevention of the default action.
- formElement.on('$destroy', function() {
- $timeout(function() {
- removeEventListenerFn(formElement[0], 'submit', handleFormSubmission);
- }, 0, false);
- });
- }
-
- var parentFormCtrl = ctrls[1] || controller.$$parentForm;
- parentFormCtrl.$addControl(controller);
-
- var setter = nameAttr ? getSetter(controller.$name) : noop;
-
- if (nameAttr) {
- setter(scope, controller);
- attr.$observe(nameAttr, function(newValue) {
- if (controller.$name === newValue) return;
- setter(scope, undefined);
- controller.$$parentForm.$$renameControl(controller, newValue);
- setter = getSetter(controller.$name);
- setter(scope, controller);
- });
- }
- formElement.on('$destroy', function() {
- controller.$$parentForm.$removeControl(controller);
- setter(scope, undefined);
- extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards
- });
- }
- };
- }
- };
-
- return formDirective;
-
- function getSetter(expression) {
- if (expression === '') {
- //create an assignable expression, so forms with an empty name can be renamed later
- return $parse('this[""]').assign;
- }
- return $parse(expression).assign || noop;
- }
- }];
-};
-
-var formDirective = formDirectiveFactory();
-var ngFormDirective = formDirectiveFactory(true);
-
-/* global
- VALID_CLASS: false,
- INVALID_CLASS: false,
- PRISTINE_CLASS: false,
- DIRTY_CLASS: false,
- ngModelMinErr: false
-*/
-
-// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
-var ISO_DATE_REGEXP = /^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/;
-// See valid URLs in RFC3987 (http://tools.ietf.org/html/rfc3987)
-// Note: We are being more lenient, because browsers are too.
-// 1. Scheme
-// 2. Slashes
-// 3. Username
-// 4. Password
-// 5. Hostname
-// 6. Port
-// 7. Path
-// 8. Query
-// 9. Fragment
-// 1111111111111111 222 333333 44444 55555555555555555555555 666 77777777 8888888 999
-var URL_REGEXP = /^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i;
-// eslint-disable-next-line max-len
-var EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;
-var NUMBER_REGEXP = /^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/;
-var DATE_REGEXP = /^(\d{4,})-(\d{2})-(\d{2})$/;
-var DATETIMELOCAL_REGEXP = /^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;
-var WEEK_REGEXP = /^(\d{4,})-W(\d\d)$/;
-var MONTH_REGEXP = /^(\d{4,})-(\d\d)$/;
-var TIME_REGEXP = /^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;
-
-var PARTIAL_VALIDATION_EVENTS = 'keydown wheel mousedown';
-var PARTIAL_VALIDATION_TYPES = createMap();
-forEach('date,datetime-local,month,time,week'.split(','), function(type) {
- PARTIAL_VALIDATION_TYPES[type] = true;
-});
-
-var inputType = {
-
- /**
- * @ngdoc input
- * @name input[text]
- *
- * @description
- * Standard HTML text input with angular data binding, inherited by most of the `input` elements.
- *
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Adds `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
- * any length.
- * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
- * that contains the regular expression body that will be converted to a regular expression
- * as in the ngPattern directive.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
- * This parameter is ignored for input[type=password] controls, which will never trim the
- * input.
- *
- * @example
- <example name="text-input-directive" module="textInputExample">
- <file name="index.html">
- <script>
- angular.module('textInputExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.example = {
- text: 'guest',
- word: /^\s*\w*\s*$/
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>Single word:
- <input type="text" name="input" ng-model="example.text"
- ng-pattern="example.word" required ng-trim="false">
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.pattern">
- Single word only!</span>
- </div>
- <code>text = {{example.text}}</code><br/>
- <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br/>
- <code>myForm.input.$error = {{myForm.input.$error}}</code><br/>
- <code>myForm.$valid = {{myForm.$valid}}</code><br/>
- <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var text = element(by.binding('example.text'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.text'));
-
- it('should initialize to model', function() {
- expect(text.getText()).toContain('guest');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- input.clear();
- input.sendKeys('');
-
- expect(text.getText()).toEqual('text =');
- expect(valid.getText()).toContain('false');
- });
-
- it('should be invalid if multi word', function() {
- input.clear();
- input.sendKeys('hello world');
-
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- */
- 'text': textInputType,
-
- /**
- * @ngdoc input
- * @name input[date]
- *
- * @description
- * Input with date validation and transformation. In browsers that do not yet support
- * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601
- * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many
- * modern browsers do not yet support this input type, it is important to provide cues to users on the
- * expected input format via a placeholder or label.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a
- * valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute
- * (e.g. `min="{{minDate | date:'yyyy-MM-dd'}}"`). Note that `min` will also add native HTML5
- * constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be
- * a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute
- * (e.g. `max="{{maxDate | date:'yyyy-MM-dd'}}"`). Note that `max` will also add native HTML5
- * constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string
- * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string
- * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="date-input-directive" module="dateInputExample">
- <file name="index.html">
- <script>
- angular.module('dateInputExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(2013, 9, 22)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label for="exampleInput">Pick a date in 2013:</label>
- <input type="date" id="exampleInput" name="input" ng-model="example.value"
- placeholder="yyyy-MM-dd" min="2013-01-01" max="2013-12-31" required />
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.date">
- Not a valid date!</span>
- </div>
- <tt>value = {{example.value | date: "yyyy-MM-dd"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "yyyy-MM-dd"'));
- var valid = element(by.binding('myForm.input.$valid'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (see https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('2013-10-22');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('2015-01-01');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'date': createDateInputType('date', DATE_REGEXP,
- createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']),
- 'yyyy-MM-dd'),
-
- /**
- * @ngdoc input
- * @name input[datetime-local]
- *
- * @description
- * Input with datetime validation and transformation. In browsers that do not yet support
- * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
- * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation
- * inside this attribute (e.g. `min="{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`).
- * Note that `min` will also add native HTML5 constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation
- * inside this attribute (e.g. `max="{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`).
- * Note that `max` will also add native HTML5 constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string
- * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string
- * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="datetimelocal-input-directive" module="dateExample">
- <file name="index.html">
- <script>
- angular.module('dateExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(2010, 11, 28, 14, 57)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label for="exampleInput">Pick a date between in 2013:</label>
- <input type="datetime-local" id="exampleInput" name="input" ng-model="example.value"
- placeholder="yyyy-MM-ddTHH:mm:ss" min="2001-01-01T00:00:00" max="2013-12-31T00:00:00" required />
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.datetimelocal">
- Not a valid date!</span>
- </div>
- <tt>value = {{example.value | date: "yyyy-MM-ddTHH:mm:ss"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "yyyy-MM-ddTHH:mm:ss"'));
- var valid = element(by.binding('myForm.input.$valid'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('2010-12-28T14:57:00');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('2015-01-01T23:59:00');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP,
- createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']),
- 'yyyy-MM-ddTHH:mm:ss.sss'),
-
- /**
- * @ngdoc input
- * @name input[time]
- *
- * @description
- * Input with time validation and transformation. In browsers that do not yet support
- * the HTML5 time input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
- * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a
- * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this
- * attribute (e.g. `min="{{minTime | date:'HH:mm:ss'}}"`). Note that `min` will also add
- * native HTML5 constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this
- * attribute (e.g. `max="{{maxTime | date:'HH:mm:ss'}}"`). Note that `max` will also add
- * native HTML5 constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the
- * `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the
- * `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="time-input-directive" module="timeExample">
- <file name="index.html">
- <script>
- angular.module('timeExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(1970, 0, 1, 14, 57, 0)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label for="exampleInput">Pick a time between 8am and 5pm:</label>
- <input type="time" id="exampleInput" name="input" ng-model="example.value"
- placeholder="HH:mm:ss" min="08:00:00" max="17:00:00" required />
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.time">
- Not a valid date!</span>
- </div>
- <tt>value = {{example.value | date: "HH:mm:ss"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "HH:mm:ss"'));
- var valid = element(by.binding('myForm.input.$valid'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('14:57:00');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('23:59:00');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'time': createDateInputType('time', TIME_REGEXP,
- createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']),
- 'HH:mm:ss.sss'),
-
- /**
- * @ngdoc input
- * @name input[week]
- *
- * @description
- * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support
- * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
- * week format (yyyy-W##), for example: `2013-W02`.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this
- * attribute (e.g. `min="{{minWeek | date:'yyyy-Www'}}"`). Note that `min` will also add
- * native HTML5 constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this
- * attribute (e.g. `max="{{maxWeek | date:'yyyy-Www'}}"`). Note that `max` will also add
- * native HTML5 constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string
- * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string
- * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="week-input-directive" module="weekExample">
- <file name="index.html">
- <script>
- angular.module('weekExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(2013, 0, 3)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label>Pick a date between in 2013:
- <input id="exampleInput" type="week" name="input" ng-model="example.value"
- placeholder="YYYY-W##" min="2012-W32"
- max="2013-W52" required />
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.week">
- Not a valid date!</span>
- </div>
- <tt>value = {{example.value | date: "yyyy-Www"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "yyyy-Www"'));
- var valid = element(by.binding('myForm.input.$valid'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('2013-W01');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('2015-W01');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'),
-
- /**
- * @ngdoc input
- * @name input[month]
- *
- * @description
- * Input with month validation and transformation. In browsers that do not yet support
- * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
- * month format (yyyy-MM), for example: `2009-01`.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- * If the model is not set to the first of the month, the next view to model update will set it
- * to the first of the month.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this
- * attribute (e.g. `min="{{minMonth | date:'yyyy-MM'}}"`). Note that `min` will also add
- * native HTML5 constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this
- * attribute (e.g. `max="{{maxMonth | date:'yyyy-MM'}}"`). Note that `max` will also add
- * native HTML5 constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string
- * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string
- * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
-
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="month-input-directive" module="monthExample">
- <file name="index.html">
- <script>
- angular.module('monthExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(2013, 9, 1)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label for="exampleInput">Pick a month in 2013:</label>
- <input id="exampleInput" type="month" name="input" ng-model="example.value"
- placeholder="yyyy-MM" min="2013-01" max="2013-12" required />
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.month">
- Not a valid month!</span>
- </div>
- <tt>value = {{example.value | date: "yyyy-MM"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "yyyy-MM"'));
- var valid = element(by.binding('myForm.input.$valid'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('2013-10');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('2015-01');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'month': createDateInputType('month', MONTH_REGEXP,
- createDateParser(MONTH_REGEXP, ['yyyy', 'MM']),
- 'yyyy-MM'),
-
- /**
- * @ngdoc input
- * @name input[number]
- *
- * @description
- * Text input with number validation and transformation. Sets the `number` validation
- * error if not a valid number.
- *
- * <div class="alert alert-warning">
- * The model must always be of type `number` otherwise Angular will throw an error.
- * Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt}
- * error docs for more information and an example of how to convert your model if necessary.
- * </div>
- *
- * ## Issues with HTML5 constraint validation
- *
- * In browsers that follow the
- * [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),
- * `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}.
- * If a non-number is entered in the input, the browser will report the value as an empty string,
- * which means the view / model values in `ngModel` and subsequently the scope value
- * will also be an empty string.
- *
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
- * any length.
- * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
- * that contains the regular expression body that will be converted to a regular expression
- * as in the ngPattern directive.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="number-input-directive" module="numberExample">
- <file name="index.html">
- <script>
- angular.module('numberExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.example = {
- value: 12
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>Number:
- <input type="number" name="input" ng-model="example.value"
- min="0" max="99" required>
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.number">
- Not valid number!</span>
- </div>
- <tt>value = {{example.value}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.value'));
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('12');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- input.clear();
- input.sendKeys('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('false');
- });
-
- it('should be invalid if over max', function() {
- input.clear();
- input.sendKeys('123');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- */
- 'number': numberInputType,
-
-
- /**
- * @ngdoc input
- * @name input[url]
- *
- * @description
- * Text input with URL validation. Sets the `url` validation error key if the content is not a
- * valid URL.
- *
- * <div class="alert alert-warning">
- * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex
- * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify
- * the built-in validators (see the {@link guide/forms Forms guide})
- * </div>
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
- * any length.
- * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
- * that contains the regular expression body that will be converted to a regular expression
- * as in the ngPattern directive.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="url-input-directive" module="urlExample">
- <file name="index.html">
- <script>
- angular.module('urlExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.url = {
- text: 'http://google.com'
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>URL:
- <input type="url" name="input" ng-model="url.text" required>
- <label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.url">
- Not valid url!</span>
- </div>
- <tt>text = {{url.text}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- <tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var text = element(by.binding('url.text'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('url.text'));
-
- it('should initialize to model', function() {
- expect(text.getText()).toContain('http://google.com');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- input.clear();
- input.sendKeys('');
-
- expect(text.getText()).toEqual('text =');
- expect(valid.getText()).toContain('false');
- });
-
- it('should be invalid if not url', function() {
- input.clear();
- input.sendKeys('box');
-
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- */
- 'url': urlInputType,
-
-
- /**
- * @ngdoc input
- * @name input[email]
- *
- * @description
- * Text input with email validation. Sets the `email` validation error key if not a valid email
- * address.
- *
- * <div class="alert alert-warning">
- * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex
- * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can
- * use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide})
- * </div>
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
- * any length.
- * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
- * that contains the regular expression body that will be converted to a regular expression
- * as in the ngPattern directive.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="email-input-directive" module="emailExample">
- <file name="index.html">
- <script>
- angular.module('emailExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.email = {
- text: 'me@example.com'
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>Email:
- <input type="email" name="input" ng-model="email.text" required>
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.email">
- Not valid email!</span>
- </div>
- <tt>text = {{email.text}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- <tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var text = element(by.binding('email.text'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('email.text'));
-
- it('should initialize to model', function() {
- expect(text.getText()).toContain('me@example.com');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- input.clear();
- input.sendKeys('');
- expect(text.getText()).toEqual('text =');
- expect(valid.getText()).toContain('false');
- });
-
- it('should be invalid if not email', function() {
- input.clear();
- input.sendKeys('xxx');
-
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- */
- 'email': emailInputType,
-
-
- /**
- * @ngdoc input
- * @name input[radio]
- *
- * @description
- * HTML radio button.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string} value The value to which the `ngModel` expression should be set when selected.
- * Note that `value` only supports `string` values, i.e. the scope model needs to be a string,
- * too. Use `ngValue` if you need complex models (`number`, `object`, ...).
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {string} ngValue Angular expression to which `ngModel` will be be set when the radio
- * is selected. Should be used instead of the `value` attribute if you need
- * a non-string `ngModel` (`boolean`, `array`, ...).
- *
- * @example
- <example name="radio-input-directive" module="radioExample">
- <file name="index.html">
- <script>
- angular.module('radioExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.color = {
- name: 'blue'
- };
- $scope.specialValue = {
- "id": "12345",
- "value": "green"
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>
- <input type="radio" ng-model="color.name" value="red">
- Red
- </label><br/>
- <label>
- <input type="radio" ng-model="color.name" ng-value="specialValue">
- Green
- </label><br/>
- <label>
- <input type="radio" ng-model="color.name" value="blue">
- Blue
- </label><br/>
- <tt>color = {{color.name | json}}</tt><br/>
- </form>
- Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`.
- </file>
- <file name="protractor.js" type="protractor">
- it('should change state', function() {
- var inputs = element.all(by.model('color.name'));
- var color = element(by.binding('color.name'));
-
- expect(color.getText()).toContain('blue');
-
- inputs.get(0).click();
- expect(color.getText()).toContain('red');
-
- inputs.get(1).click();
- expect(color.getText()).toContain('green');
- });
- </file>
- </example>
- */
- 'radio': radioInputType,
-
- /**
- * @ngdoc input
- * @name input[range]
- *
- * @description
- * Native range input with validation and transformation.
- *
- * <div class="alert alert-warning">
- * <p>
- * In v1.5.9+, in order to avoid interfering with already existing, custom directives for
- * `input[range]`, you need to let Angular know that you want to enable its built-in support.
- * You can do this by adding the `ng-input-range` attribute to the input element. E.g.:
- * `<input type="range" ng-input-range ... />`
- * </p><br />
- * <p>
- * Input elements without the `ng-input-range` attibute will continue to be treated the same
- * as in previous versions (e.g. their model value will be a string not a number and Angular
- * will not take `min`/`max`/`step` attributes and properties into account).
- * </p><br />
- * <p>
- * **Note:** From v1.6.x onwards, the support for `input[range]` will be always enabled and
- * the `ng-input-range` attribute will have no effect.
- * </p><br />
- * <p>
- * This documentation page refers to elements which have the built-in support enabled; i.e.
- * elements _with_ the `ng-input-range` attribute.
- * </p>
- * </div>
- *
- * The model for the range input must always be a `Number`.
- *
- * IE9 and other browsers that do not support the `range` type fall back
- * to a text input without any default values for `min`, `max` and `step`. Model binding,
- * validation and number parsing are nevertheless supported.
- *
- * Browsers that support range (latest Chrome, Safari, Firefox, Edge) treat `input[range]`
- * in a way that never allows the input to hold an invalid value. That means:
- * - any non-numerical value is set to `(max + min) / 2`.
- * - any numerical value that is less than the current min val, or greater than the current max val
- * is set to the min / max val respectively.
- * - additionally, the current `step` is respected, so the nearest value that satisfies a step
- * is used.
- *
- * See the [HTML Spec on input[type=range]](https://www.w3.org/TR/html5/forms.html#range-state-(type=range))
- * for more info.
- *
- * This has the following consequences for Angular:
- *
- * Since the element value should always reflect the current model value, a range input
- * will set the bound ngModel expression to the value that the browser has set for the
- * input element. For example, in the following input `<input type="range" ng-input-range ng-model="model.value">`,
- * if the application sets `model.value = null`, the browser will set the input to `'50'`.
- * Angular will then set the model to `50`, to prevent input and model value being out of sync.
- *
- * That means the model for range will immediately be set to `50` after `ngModel` has been
- * initialized. It also means a range input can never have the required error.
- *
- * This does not only affect changes to the model value, but also to the values of the `min`,
- * `max`, and `step` attributes. When these change in a way that will cause the browser to modify
- * the input value, Angular will also update the model value.
- *
- * Automatic value adjustment also means that a range input element can never have the `required`,
- * `min`, or `max` errors.
- *
- * However, `step` is currently only fully implemented by Firefox. Other browsers have problems
- * when the step value changes dynamically - they do not adjust the element value correctly, but
- * instead may set the `stepMismatch` error. If that's the case, the Angular will set the `step`
- * error on the input, and set the model to `undefined`.
- *
- * Note that `input[range]` is not compatible with `ngMax`, `ngMin`, and `ngStep`, because they do
- * not set the `min` and `max` attributes, which means that the browser won't automatically adjust
- * the input value based on their values, and will always assume min = 0, max = 100, and step = 1.
- *
- * @param ngInputRange The presense of this attribute enables the built-in support for
- * `input[range]`.
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation to ensure that the value entered is greater
- * than `min`. Can be interpolated.
- * @param {string=} max Sets the `max` validation to ensure that the value entered is less than `max`.
- * Can be interpolated.
- * @param {string=} step Sets the `step` validation to ensure that the value entered matches the `step`
- * Can be interpolated.
- * @param {string=} ngChange Angular expression to be executed when the ngModel value changes due
- * to user interaction with the input element.
- * @param {expression=} ngChecked If the expression is truthy, then the `checked` attribute will be set on the
- * element. **Note** : `ngChecked` should not be used alongside `ngModel`.
- * Checkout {@link ng.directive:ngChecked ngChecked} for usage.
- *
- * @example
- <example name="range-input-directive" module="rangeExample">
- <file name="index.html">
- <script>
- angular.module('rangeExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.value = 75;
- $scope.min = 10;
- $scope.max = 90;
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
-
- Model as range: <input type="range" ng-input-range name="range" ng-model="value" min="{{min}}" max="{{max}}">
- <hr>
- Model as number: <input type="number" ng-model="value"><br>
- Min: <input type="number" ng-model="min"><br>
- Max: <input type="number" ng-model="max"><br>
- value = <code>{{value}}</code><br/>
- myForm.range.$valid = <code>{{myForm.range.$valid}}</code><br/>
- myForm.range.$error = <code>{{myForm.range.$error}}</code>
- </form>
- </file>
- </example>
-
- * ## Range Input with ngMin & ngMax attributes
-
- * @example
- <example name="range-input-directive-ng" module="rangeExample">
- <file name="index.html">
- <script>
- angular.module('rangeExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.value = 75;
- $scope.min = 10;
- $scope.max = 90;
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- Model as range: <input type="range" ng-input-range name="range" ng-model="value" ng-min="min" ng-max="max">
- <hr>
- Model as number: <input type="number" ng-model="value"><br>
- Min: <input type="number" ng-model="min"><br>
- Max: <input type="number" ng-model="max"><br>
- value = <code>{{value}}</code><br/>
- myForm.range.$valid = <code>{{myForm.range.$valid}}</code><br/>
- myForm.range.$error = <code>{{myForm.range.$error}}</code>
- </form>
- </file>
- </example>
-
- */
- 'range': rangeInputType,
-
- /**
- * @ngdoc input
- * @name input[checkbox]
- *
- * @description
- * HTML checkbox.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {expression=} ngTrueValue The value to which the expression should be set when selected.
- * @param {expression=} ngFalseValue The value to which the expression should be set when not selected.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="checkbox-input-directive" module="checkboxExample">
- <file name="index.html">
- <script>
- angular.module('checkboxExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.checkboxModel = {
- value1 : true,
- value2 : 'YES'
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>Value1:
- <input type="checkbox" ng-model="checkboxModel.value1">
- </label><br/>
- <label>Value2:
- <input type="checkbox" ng-model="checkboxModel.value2"
- ng-true-value="'YES'" ng-false-value="'NO'">
- </label><br/>
- <tt>value1 = {{checkboxModel.value1}}</tt><br/>
- <tt>value2 = {{checkboxModel.value2}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- it('should change state', function() {
- var value1 = element(by.binding('checkboxModel.value1'));
- var value2 = element(by.binding('checkboxModel.value2'));
-
- expect(value1.getText()).toContain('true');
- expect(value2.getText()).toContain('YES');
-
- element(by.model('checkboxModel.value1')).click();
- element(by.model('checkboxModel.value2')).click();
-
- expect(value1.getText()).toContain('false');
- expect(value2.getText()).toContain('NO');
- });
- </file>
- </example>
- */
- 'checkbox': checkboxInputType,
-
- 'hidden': noop,
- 'button': noop,
- 'submit': noop,
- 'reset': noop,
- 'file': noop
-};
-
-function stringBasedInputType(ctrl) {
- ctrl.$formatters.push(function(value) {
- return ctrl.$isEmpty(value) ? value : value.toString();
- });
-}
-
-function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- stringBasedInputType(ctrl);
-}
-
-function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- var type = lowercase(element[0].type);
-
- // In composition mode, users are still inputting intermediate text buffer,
- // hold the listener until composition is done.
- // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent
- if (!$sniffer.android) {
- var composing = false;
-
- element.on('compositionstart', function() {
- composing = true;
- });
-
- element.on('compositionend', function() {
- composing = false;
- listener();
- });
- }
-
- var timeout;
-
- var listener = function(ev) {
- if (timeout) {
- $browser.defer.cancel(timeout);
- timeout = null;
- }
- if (composing) return;
- var value = element.val(),
- event = ev && ev.type;
-
- // By default we will trim the value
- // If the attribute ng-trim exists we will avoid trimming
- // If input type is 'password', the value is never trimmed
- if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) {
- value = trim(value);
- }
-
- // If a control is suffering from bad input (due to native validators), browsers discard its
- // value, so it may be necessary to revalidate (by calling $setViewValue again) even if the
- // control's value is the same empty value twice in a row.
- if (ctrl.$viewValue !== value || (value === '' && ctrl.$$hasNativeValidators)) {
- ctrl.$setViewValue(value, event);
- }
- };
-
- // if the browser does support "input" event, we are fine - except on IE9 which doesn't fire the
- // input event on backspace, delete or cut
- if ($sniffer.hasEvent('input')) {
- element.on('input', listener);
- } else {
- var deferListener = function(ev, input, origValue) {
- if (!timeout) {
- timeout = $browser.defer(function() {
- timeout = null;
- if (!input || input.value !== origValue) {
- listener(ev);
- }
- });
- }
- };
-
- element.on('keydown', /** @this */ function(event) {
- var key = event.keyCode;
-
- // ignore
- // command modifiers arrows
- if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;
-
- deferListener(event, this, this.value);
- });
-
- // if user modifies input value using context menu in IE, we need "paste" and "cut" events to catch it
- if ($sniffer.hasEvent('paste')) {
- element.on('paste cut', deferListener);
- }
- }
-
- // if user paste into input using mouse on older browser
- // or form autocomplete on newer browser, we need "change" event to catch it
- element.on('change', listener);
-
- // Some native input types (date-family) have the ability to change validity without
- // firing any input/change events.
- // For these event types, when native validators are present and the browser supports the type,
- // check for validity changes on various DOM events.
- if (PARTIAL_VALIDATION_TYPES[type] && ctrl.$$hasNativeValidators && type === attr.type) {
- element.on(PARTIAL_VALIDATION_EVENTS, /** @this */ function(ev) {
- if (!timeout) {
- var validity = this[VALIDITY_STATE_PROPERTY];
- var origBadInput = validity.badInput;
- var origTypeMismatch = validity.typeMismatch;
- timeout = $browser.defer(function() {
- timeout = null;
- if (validity.badInput !== origBadInput || validity.typeMismatch !== origTypeMismatch) {
- listener(ev);
- }
- });
- }
- });
- }
-
- ctrl.$render = function() {
- // Workaround for Firefox validation #12102.
- var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue;
- if (element.val() !== value) {
- element.val(value);
- }
- };
-}
-
-function weekParser(isoWeek, existingDate) {
- if (isDate(isoWeek)) {
- return isoWeek;
- }
-
- if (isString(isoWeek)) {
- WEEK_REGEXP.lastIndex = 0;
- var parts = WEEK_REGEXP.exec(isoWeek);
- if (parts) {
- var year = +parts[1],
- week = +parts[2],
- hours = 0,
- minutes = 0,
- seconds = 0,
- milliseconds = 0,
- firstThurs = getFirstThursdayOfYear(year),
- addDays = (week - 1) * 7;
-
- if (existingDate) {
- hours = existingDate.getHours();
- minutes = existingDate.getMinutes();
- seconds = existingDate.getSeconds();
- milliseconds = existingDate.getMilliseconds();
- }
-
- return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds);
- }
- }
-
- return NaN;
-}
-
-function createDateParser(regexp, mapping) {
- return function(iso, date) {
- var parts, map;
-
- if (isDate(iso)) {
- return iso;
- }
-
- if (isString(iso)) {
- // When a date is JSON'ified to wraps itself inside of an extra
- // set of double quotes. This makes the date parsing code unable
- // to match the date string and parse it as a date.
- if (iso.charAt(0) === '"' && iso.charAt(iso.length - 1) === '"') {
- iso = iso.substring(1, iso.length - 1);
- }
- if (ISO_DATE_REGEXP.test(iso)) {
- return new Date(iso);
- }
- regexp.lastIndex = 0;
- parts = regexp.exec(iso);
-
- if (parts) {
- parts.shift();
- if (date) {
- map = {
- yyyy: date.getFullYear(),
- MM: date.getMonth() + 1,
- dd: date.getDate(),
- HH: date.getHours(),
- mm: date.getMinutes(),
- ss: date.getSeconds(),
- sss: date.getMilliseconds() / 1000
- };
- } else {
- map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };
- }
-
- forEach(parts, function(part, index) {
- if (index < mapping.length) {
- map[mapping[index]] = +part;
- }
- });
- return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);
- }
- }
-
- return NaN;
- };
-}
-
-function createDateInputType(type, regexp, parseDate, format) {
- return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {
- badInputChecker(scope, element, attr, ctrl);
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- var timezone = ctrl && ctrl.$options && ctrl.$options.timezone;
- var previousDate;
-
- ctrl.$$parserName = type;
- ctrl.$parsers.push(function(value) {
- if (ctrl.$isEmpty(value)) return null;
- if (regexp.test(value)) {
- // Note: We cannot read ctrl.$modelValue, as there might be a different
- // parser/formatter in the processing chain so that the model
- // contains some different data format!
- var parsedDate = parseDate(value, previousDate);
- if (timezone) {
- parsedDate = convertTimezoneToLocal(parsedDate, timezone);
- }
- return parsedDate;
- }
- return undefined;
- });
-
- ctrl.$formatters.push(function(value) {
- if (value && !isDate(value)) {
- throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value);
- }
- if (isValidDate(value)) {
- previousDate = value;
- if (previousDate && timezone) {
- previousDate = convertTimezoneToLocal(previousDate, timezone, true);
- }
- return $filter('date')(value, format, timezone);
- } else {
- previousDate = null;
- return '';
- }
- });
-
- if (isDefined(attr.min) || attr.ngMin) {
- var minVal;
- ctrl.$validators.min = function(value) {
- return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal;
- };
- attr.$observe('min', function(val) {
- minVal = parseObservedDateValue(val);
- ctrl.$validate();
- });
- }
-
- if (isDefined(attr.max) || attr.ngMax) {
- var maxVal;
- ctrl.$validators.max = function(value) {
- return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal;
- };
- attr.$observe('max', function(val) {
- maxVal = parseObservedDateValue(val);
- ctrl.$validate();
- });
- }
-
- function isValidDate(value) {
- // Invalid Date: getTime() returns NaN
- return value && !(value.getTime && value.getTime() !== value.getTime());
- }
-
- function parseObservedDateValue(val) {
- return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val;
- }
- };
-}
-
-function badInputChecker(scope, element, attr, ctrl) {
- var node = element[0];
- var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);
- if (nativeValidation) {
- ctrl.$parsers.push(function(value) {
- var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};
- return validity.badInput || validity.typeMismatch ? undefined : value;
- });
- }
-}
-
-function numberFormatterParser(ctrl) {
- ctrl.$$parserName = 'number';
- ctrl.$parsers.push(function(value) {
- if (ctrl.$isEmpty(value)) return null;
- if (NUMBER_REGEXP.test(value)) return parseFloat(value);
- return undefined;
- });
-
- ctrl.$formatters.push(function(value) {
- if (!ctrl.$isEmpty(value)) {
- if (!isNumber(value)) {
- throw ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value);
- }
- value = value.toString();
- }
- return value;
- });
-}
-
-function parseNumberAttrVal(val) {
- if (isDefined(val) && !isNumber(val)) {
- val = parseFloat(val);
- }
- return !isNumberNaN(val) ? val : undefined;
-}
-
-function isNumberInteger(num) {
- // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066
- // (minus the assumption that `num` is a number)
-
- // eslint-disable-next-line no-bitwise
- return (num | 0) === num;
-}
-
-function countDecimals(num) {
- var numString = num.toString();
- var decimalSymbolIndex = numString.indexOf('.');
-
- if (decimalSymbolIndex === -1) {
- if (-1 < num && num < 1) {
- // It may be in the exponential notation format (`1e-X`)
- var match = /e-(\d+)$/.exec(numString);
-
- if (match) {
- return Number(match[1]);
- }
- }
-
- return 0;
- }
-
- return numString.length - decimalSymbolIndex - 1;
-}
-
-function isValidForStep(viewValue, stepBase, step) {
- // At this point `stepBase` and `step` are expected to be non-NaN values
- // and `viewValue` is expected to be a valid stringified number.
- var value = Number(viewValue);
-
- // Due to limitations in Floating Point Arithmetic (e.g. `0.3 - 0.2 !== 0.1` or
- // `0.5 % 0.1 !== 0`), we need to convert all numbers to integers.
- if (!isNumberInteger(value) || !isNumberInteger(stepBase) || !isNumberInteger(step)) {
- var decimalCount = Math.max(countDecimals(value), countDecimals(stepBase), countDecimals(step));
- var multiplier = Math.pow(10, decimalCount);
-
- value = value * multiplier;
- stepBase = stepBase * multiplier;
- step = step * multiplier;
- }
-
- return (value - stepBase) % step === 0;
-}
-
-function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- badInputChecker(scope, element, attr, ctrl);
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- numberFormatterParser(ctrl);
-
- var minVal;
- var maxVal;
-
- if (isDefined(attr.min) || attr.ngMin) {
- ctrl.$validators.min = function(value) {
- return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;
- };
-
- attr.$observe('min', function(val) {
- minVal = parseNumberAttrVal(val);
- // TODO(matsko): implement validateLater to reduce number of validations
- ctrl.$validate();
- });
- }
-
- if (isDefined(attr.max) || attr.ngMax) {
- ctrl.$validators.max = function(value) {
- return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;
- };
-
- attr.$observe('max', function(val) {
- maxVal = parseNumberAttrVal(val);
- // TODO(matsko): implement validateLater to reduce number of validations
- ctrl.$validate();
- });
- }
-}
-
-function rangeInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- badInputChecker(scope, element, attr, ctrl);
- numberFormatterParser(ctrl);
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
-
- var supportsRange = ctrl.$$hasNativeValidators && element[0].type === 'range',
- minVal = supportsRange ? 0 : undefined,
- maxVal = supportsRange ? 100 : undefined,
- stepVal = supportsRange ? 1 : undefined,
- validity = element[0].validity,
- hasMinAttr = isDefined(attr.min),
- hasMaxAttr = isDefined(attr.max),
- hasStepAttr = isDefined(attr.step);
-
- var originalRender = ctrl.$render;
-
- ctrl.$render = supportsRange && isDefined(validity.rangeUnderflow) && isDefined(validity.rangeOverflow) ?
- //Browsers that implement range will set these values automatically, but reading the adjusted values after
- //$render would cause the min / max validators to be applied with the wrong value
- function rangeRender() {
- originalRender();
- ctrl.$setViewValue(element.val());
- } :
- originalRender;
-
- if (hasMinAttr) {
- ctrl.$validators.min = supportsRange ?
- // Since all browsers set the input to a valid value, we don't need to check validity
- function noopMinValidator() { return true; } :
- // non-support browsers validate the min val
- function minValidator(modelValue, viewValue) {
- return ctrl.$isEmpty(viewValue) || isUndefined(minVal) || viewValue >= minVal;
- };
-
- setInitialValueAndObserver('min', minChange);
- }
-
- if (hasMaxAttr) {
- ctrl.$validators.max = supportsRange ?
- // Since all browsers set the input to a valid value, we don't need to check validity
- function noopMaxValidator() { return true; } :
- // non-support browsers validate the max val
- function maxValidator(modelValue, viewValue) {
- return ctrl.$isEmpty(viewValue) || isUndefined(maxVal) || viewValue <= maxVal;
- };
-
- setInitialValueAndObserver('max', maxChange);
- }
-
- if (hasStepAttr) {
- ctrl.$validators.step = supportsRange ?
- function nativeStepValidator() {
- // Currently, only FF implements the spec on step change correctly (i.e. adjusting the
- // input element value to a valid value). It's possible that other browsers set the stepMismatch
- // validity error instead, so we can at least report an error in that case.
- return !validity.stepMismatch;
- } :
- // ngStep doesn't set the setp attr, so the browser doesn't adjust the input value as setting step would
- function stepValidator(modelValue, viewValue) {
- return ctrl.$isEmpty(viewValue) || isUndefined(stepVal) ||
- isValidForStep(viewValue, minVal || 0, stepVal);
- };
-
- setInitialValueAndObserver('step', stepChange);
- }
-
- function setInitialValueAndObserver(htmlAttrName, changeFn) {
- // interpolated attributes set the attribute value only after a digest, but we need the
- // attribute value when the input is first rendered, so that the browser can adjust the
- // input value based on the min/max value
- element.attr(htmlAttrName, attr[htmlAttrName]);
- attr.$observe(htmlAttrName, changeFn);
- }
-
- function minChange(val) {
- minVal = parseNumberAttrVal(val);
- // ignore changes before model is initialized
- if (isNumberNaN(ctrl.$modelValue)) {
- return;
- }
-
- if (supportsRange) {
- var elVal = element.val();
- // IE11 doesn't set the el val correctly if the minVal is greater than the element value
- if (minVal > elVal) {
- elVal = minVal;
- element.val(elVal);
- }
- ctrl.$setViewValue(elVal);
- } else {
- // TODO(matsko): implement validateLater to reduce number of validations
- ctrl.$validate();
- }
- }
-
- function maxChange(val) {
- maxVal = parseNumberAttrVal(val);
- // ignore changes before model is initialized
- if (isNumberNaN(ctrl.$modelValue)) {
- return;
- }
-
- if (supportsRange) {
- var elVal = element.val();
- // IE11 doesn't set the el val correctly if the maxVal is less than the element value
- if (maxVal < elVal) {
- element.val(maxVal);
- // IE11 and Chrome don't set the value to the minVal when max < min
- elVal = maxVal < minVal ? minVal : maxVal;
- }
- ctrl.$setViewValue(elVal);
- } else {
- // TODO(matsko): implement validateLater to reduce number of validations
- ctrl.$validate();
- }
- }
-
- function stepChange(val) {
- stepVal = parseNumberAttrVal(val);
- // ignore changes before model is initialized
- if (isNumberNaN(ctrl.$modelValue)) {
- return;
- }
-
- // Some browsers don't adjust the input value correctly, but set the stepMismatch error
- if (supportsRange && ctrl.$viewValue !== element.val()) {
- ctrl.$setViewValue(element.val());
- } else {
- // TODO(matsko): implement validateLater to reduce number of validations
- ctrl.$validate();
- }
- }
-}
-
-function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- // Note: no badInputChecker here by purpose as `url` is only a validation
- // in browsers, i.e. we can always read out input.value even if it is not valid!
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- stringBasedInputType(ctrl);
-
- ctrl.$$parserName = 'url';
- ctrl.$validators.url = function(modelValue, viewValue) {
- var value = modelValue || viewValue;
- return ctrl.$isEmpty(value) || URL_REGEXP.test(value);
- };
-}
-
-function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- // Note: no badInputChecker here by purpose as `url` is only a validation
- // in browsers, i.e. we can always read out input.value even if it is not valid!
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- stringBasedInputType(ctrl);
-
- ctrl.$$parserName = 'email';
- ctrl.$validators.email = function(modelValue, viewValue) {
- var value = modelValue || viewValue;
- return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);
- };
-}
-
-function radioInputType(scope, element, attr, ctrl) {
- // make the name unique, if not defined
- if (isUndefined(attr.name)) {
- element.attr('name', nextUid());
- }
-
- var listener = function(ev) {
- if (element[0].checked) {
- ctrl.$setViewValue(attr.value, ev && ev.type);
- }
- };
-
- element.on('click', listener);
-
- ctrl.$render = function() {
- var value = attr.value;
- // We generally use strict comparison. This is behavior we cannot change without a BC.
- // eslint-disable-next-line eqeqeq
- element[0].checked = (value == ctrl.$viewValue);
- };
-
- attr.$observe('value', ctrl.$render);
-}
-
-function parseConstantExpr($parse, context, name, expression, fallback) {
- var parseFn;
- if (isDefined(expression)) {
- parseFn = $parse(expression);
- if (!parseFn.constant) {
- throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' +
- '`{1}`.', name, expression);
- }
- return parseFn(context);
- }
- return fallback;
-}
-
-function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {
- var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);
- var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false);
-
- var listener = function(ev) {
- ctrl.$setViewValue(element[0].checked, ev && ev.type);
- };
-
- element.on('click', listener);
-
- ctrl.$render = function() {
- element[0].checked = ctrl.$viewValue;
- };
-
- // Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`
- // This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert
- // it to a boolean.
- ctrl.$isEmpty = function(value) {
- return value === false;
- };
-
- ctrl.$formatters.push(function(value) {
- return equals(value, trueValue);
- });
-
- ctrl.$parsers.push(function(value) {
- return value ? trueValue : falseValue;
- });
-}
-
-
-/**
- * @ngdoc directive
- * @name textarea
- * @restrict E
- *
- * @description
- * HTML textarea element control with angular data-binding. The data-binding and validation
- * properties of this element are exactly the same as those of the
- * {@link ng.directive:input input element}.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
- * length.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
- *
- * @knownIssue
- *
- * When specifying the `placeholder` attribute of `<textarea>`, Internet Explorer will temporarily
- * insert the placeholder value as the textarea's content. If the placeholder value contains
- * interpolation (`{{ ... }}`), an error will be logged in the console when Angular tries to update
- * the value of the by-then-removed text node. This doesn't affect the functionality of the
- * textarea, but can be undesirable.
- *
- * You can work around this Internet Explorer issue by using `ng-attr-placeholder` instead of
- * `placeholder` on textareas, whenever you need interpolation in the placeholder value. You can
- * find more details on `ngAttr` in the
- * [Interpolation](guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes) section of the
- * Developer Guide.
- */
-
-
-/**
- * @ngdoc directive
- * @name input
- * @restrict E
- *
- * @description
- * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,
- * input state control, and validation.
- * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.
- *
- * <div class="alert alert-warning">
- * **Note:** Not every feature offered is available for all input types.
- * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.
- * </div>
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {boolean=} ngRequired Sets `required` attribute if set to true
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
- * length.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * value does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
- * This parameter is ignored for input[type=password] controls, which will never trim the
- * input.
- *
- * @example
- <example name="input-directive" module="inputExample">
- <file name="index.html">
- <script>
- angular.module('inputExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.user = {name: 'guest', last: 'visitor'};
- }]);
- </script>
- <div ng-controller="ExampleController">
- <form name="myForm">
- <label>
- User name:
- <input type="text" name="userName" ng-model="user.name" required>
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.userName.$error.required">
- Required!</span>
- </div>
- <label>
- Last name:
- <input type="text" name="lastName" ng-model="user.last"
- ng-minlength="3" ng-maxlength="10">
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.lastName.$error.minlength">
- Too short!</span>
- <span class="error" ng-show="myForm.lastName.$error.maxlength">
- Too long!</span>
- </div>
- </form>
- <hr>
- <tt>user = {{user}}</tt><br/>
- <tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br/>
- <tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br/>
- <tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br/>
- <tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- <tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br/>
- <tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br/>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- var user = element(by.exactBinding('user'));
- var userNameValid = element(by.binding('myForm.userName.$valid'));
- var lastNameValid = element(by.binding('myForm.lastName.$valid'));
- var lastNameError = element(by.binding('myForm.lastName.$error'));
- var formValid = element(by.binding('myForm.$valid'));
- var userNameInput = element(by.model('user.name'));
- var userLastInput = element(by.model('user.last'));
-
- it('should initialize to model', function() {
- expect(user.getText()).toContain('{"name":"guest","last":"visitor"}');
- expect(userNameValid.getText()).toContain('true');
- expect(formValid.getText()).toContain('true');
- });
-
- it('should be invalid if empty when required', function() {
- userNameInput.clear();
- userNameInput.sendKeys('');
-
- expect(user.getText()).toContain('{"last":"visitor"}');
- expect(userNameValid.getText()).toContain('false');
- expect(formValid.getText()).toContain('false');
- });
-
- it('should be valid if empty when min length is set', function() {
- userLastInput.clear();
- userLastInput.sendKeys('');
-
- expect(user.getText()).toContain('{"name":"guest","last":""}');
- expect(lastNameValid.getText()).toContain('true');
- expect(formValid.getText()).toContain('true');
- });
-
- it('should be invalid if less than required min length', function() {
- userLastInput.clear();
- userLastInput.sendKeys('xx');
-
- expect(user.getText()).toContain('{"name":"guest"}');
- expect(lastNameValid.getText()).toContain('false');
- expect(lastNameError.getText()).toContain('minlength');
- expect(formValid.getText()).toContain('false');
- });
-
- it('should be invalid if longer than max length', function() {
- userLastInput.clear();
- userLastInput.sendKeys('some ridiculously long name');
-
- expect(user.getText()).toContain('{"name":"guest"}');
- expect(lastNameValid.getText()).toContain('false');
- expect(lastNameError.getText()).toContain('maxlength');
- expect(formValid.getText()).toContain('false');
- });
- </file>
- </example>
- */
-var inputDirective = ['$browser', '$sniffer', '$filter', '$parse',
- function($browser, $sniffer, $filter, $parse) {
- return {
- restrict: 'E',
- require: ['?ngModel'],
- link: {
- pre: function(scope, element, attr, ctrls) {
- if (ctrls[0]) {
- var type = lowercase(attr.type);
- if ((type === 'range') && !attr.hasOwnProperty('ngInputRange')) {
- type = 'text';
- }
- (inputType[type] || inputType.text)(scope, element, attr, ctrls[0], $sniffer,
- $browser, $filter, $parse);
- }
- }
- }
- };
-}];
-
-
-
-var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
-/**
- * @ngdoc directive
- * @name ngValue
- *
- * @description
- * Binds the given expression to the value of `<option>` or {@link input[radio] `input[radio]`},
- * so that when the element is selected, the {@link ngModel `ngModel`} of that element is set to
- * the bound value.
- *
- * `ngValue` is useful when dynamically generating lists of radio buttons using
- * {@link ngRepeat `ngRepeat`}, as shown below.
- *
- * Likewise, `ngValue` can be used to generate `<option>` elements for
- * the {@link select `select`} element. In that case however, only strings are supported
- * for the `value `attribute, so the resulting `ngModel` will always be a string.
- * Support for `select` models with non-string values is available via `ngOptions`.
- *
- * @element input
- * @param {string=} ngValue angular expression, whose value will be bound to the `value` attribute
- * of the `input` element
- *
- * @example
- <example name="ngValue-directive" module="valueExample">
- <file name="index.html">
- <script>
- angular.module('valueExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.names = ['pizza', 'unicorns', 'robots'];
- $scope.my = { favorite: 'unicorns' };
- }]);
- </script>
- <form ng-controller="ExampleController">
- <h2>Which is your favorite?</h2>
- <label ng-repeat="name in names" for="{{name}}">
- {{name}}
- <input type="radio"
- ng-model="my.favorite"
- ng-value="name"
- id="{{name}}"
- name="favorite">
- </label>
- <div>You chose {{my.favorite}}</div>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var favorite = element(by.binding('my.favorite'));
-
- it('should initialize to model', function() {
- expect(favorite.getText()).toContain('unicorns');
- });
- it('should bind the values to the inputs', function() {
- element.all(by.model('my.favorite')).get(0).click();
- expect(favorite.getText()).toContain('pizza');
- });
- </file>
- </example>
- */
-var ngValueDirective = function() {
- return {
- restrict: 'A',
- priority: 100,
- compile: function(tpl, tplAttr) {
- if (CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)) {
- return function ngValueConstantLink(scope, elm, attr) {
- attr.$set('value', scope.$eval(attr.ngValue));
- };
- } else {
- return function ngValueLink(scope, elm, attr) {
- scope.$watch(attr.ngValue, function valueWatchAction(value) {
- attr.$set('value', value);
- });
- };
- }
- }
- };
-};
-
-/**
- * @ngdoc directive
- * @name ngBind
- * @restrict AC
- *
- * @description
- * The `ngBind` attribute tells Angular to replace the text content of the specified HTML element
- * with the value of a given expression, and to update the text content when the value of that
- * expression changes.
- *
- * Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
- * `{{ expression }}` which is similar but less verbose.
- *
- * It is preferable to use `ngBind` instead of `{{ expression }}` if a template is momentarily
- * displayed by the browser in its raw state before Angular compiles it. Since `ngBind` is an
- * element attribute, it makes the bindings invisible to the user while the page is loading.
- *
- * An alternative solution to this problem would be using the
- * {@link ng.directive:ngCloak ngCloak} directive.
- *
- *
- * @element ANY
- * @param {expression} ngBind {@link guide/expression Expression} to evaluate.
- *
- * @example
- * Enter a name in the Live Preview text box; the greeting below the text box changes instantly.
- <example module="bindExample" name="ng-bind">
- <file name="index.html">
- <script>
- angular.module('bindExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.name = 'Whirled';
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>Enter name: <input type="text" ng-model="name"></label><br>
- Hello <span ng-bind="name"></span>!
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-bind', function() {
- var nameInput = element(by.model('name'));
-
- expect(element(by.binding('name')).getText()).toBe('Whirled');
- nameInput.clear();
- nameInput.sendKeys('world');
- expect(element(by.binding('name')).getText()).toBe('world');
- });
- </file>
- </example>
- */
-var ngBindDirective = ['$compile', function($compile) {
- return {
- restrict: 'AC',
- compile: function ngBindCompile(templateElement) {
- $compile.$$addBindingClass(templateElement);
- return function ngBindLink(scope, element, attr) {
- $compile.$$addBindingInfo(element, attr.ngBind);
- element = element[0];
- scope.$watch(attr.ngBind, function ngBindWatchAction(value) {
- element.textContent = isUndefined(value) ? '' : value;
- });
- };
- }
- };
-}];
-
-
-/**
- * @ngdoc directive
- * @name ngBindTemplate
- *
- * @description
- * The `ngBindTemplate` directive specifies that the element
- * text content should be replaced with the interpolation of the template
- * in the `ngBindTemplate` attribute.
- * Unlike `ngBind`, the `ngBindTemplate` can contain multiple `{{` `}}`
- * expressions. This directive is needed since some HTML elements
- * (such as TITLE and OPTION) cannot contain SPAN elements.
- *
- * @element ANY
- * @param {string} ngBindTemplate template of form
- * <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.
- *
- * @example
- * Try it here: enter text in text box and watch the greeting change.
- <example module="bindExample" name="ng-bind-template">
- <file name="index.html">
- <script>
- angular.module('bindExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.salutation = 'Hello';
- $scope.name = 'World';
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>Salutation: <input type="text" ng-model="salutation"></label><br>
- <label>Name: <input type="text" ng-model="name"></label><br>
- <pre ng-bind-template="{{salutation}} {{name}}!"></pre>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-bind', function() {
- var salutationElem = element(by.binding('salutation'));
- var salutationInput = element(by.model('salutation'));
- var nameInput = element(by.model('name'));
-
- expect(salutationElem.getText()).toBe('Hello World!');
-
- salutationInput.clear();
- salutationInput.sendKeys('Greetings');
- nameInput.clear();
- nameInput.sendKeys('user');
-
- expect(salutationElem.getText()).toBe('Greetings user!');
- });
- </file>
- </example>
- */
-var ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate, $compile) {
- return {
- compile: function ngBindTemplateCompile(templateElement) {
- $compile.$$addBindingClass(templateElement);
- return function ngBindTemplateLink(scope, element, attr) {
- var interpolateFn = $interpolate(element.attr(attr.$attr.ngBindTemplate));
- $compile.$$addBindingInfo(element, interpolateFn.expressions);
- element = element[0];
- attr.$observe('ngBindTemplate', function(value) {
- element.textContent = isUndefined(value) ? '' : value;
- });
- };
- }
- };
-}];
-
-
-/**
- * @ngdoc directive
- * @name ngBindHtml
- *
- * @description
- * Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,
- * the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.
- * To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link
- * ngSanitize} in your module's dependencies (not in core Angular). In order to use {@link ngSanitize}
- * in your module's dependencies, you need to include "angular-sanitize.js" in your application.
- *
- * You may also bypass sanitization for values you know are safe. To do so, bind to
- * an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}. See the example
- * under {@link ng.$sce#show-me-an-example-using-sce- Strict Contextual Escaping (SCE)}.
- *
- * Note: If a `$sanitize` service is unavailable and the bound value isn't explicitly trusted, you
- * will have an exception (instead of an exploit.)
- *
- * @element ANY
- * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.
- *
- * @example
-
- <example module="bindHtmlExample" deps="angular-sanitize.js" name="ng-bind-html">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <p ng-bind-html="myHTML"></p>
- </div>
- </file>
-
- <file name="script.js">
- angular.module('bindHtmlExample', ['ngSanitize'])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.myHTML =
- 'I am an <code>HTML</code>string with ' +
- '<a href="#">links!</a> and other <em>stuff</em>';
- }]);
- </file>
-
- <file name="protractor.js" type="protractor">
- it('should check ng-bind-html', function() {
- expect(element(by.binding('myHTML')).getText()).toBe(
- 'I am an HTMLstring with links! and other stuff');
- });
- </file>
- </example>
- */
-var ngBindHtmlDirective = ['$sce', '$parse', '$compile', function($sce, $parse, $compile) {
- return {
- restrict: 'A',
- compile: function ngBindHtmlCompile(tElement, tAttrs) {
- var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);
- var ngBindHtmlWatch = $parse(tAttrs.ngBindHtml, function sceValueOf(val) {
- // Unwrap the value to compare the actual inner safe value, not the wrapper object.
- return $sce.valueOf(val);
- });
- $compile.$$addBindingClass(tElement);
-
- return function ngBindHtmlLink(scope, element, attr) {
- $compile.$$addBindingInfo(element, attr.ngBindHtml);
-
- scope.$watch(ngBindHtmlWatch, function ngBindHtmlWatchAction() {
- // The watched value is the unwrapped value. To avoid re-escaping, use the direct getter.
- var value = ngBindHtmlGetter(scope);
- element.html($sce.getTrustedHtml(value) || '');
- });
- };
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngChange
- *
- * @description
- * Evaluate the given expression when the user changes the input.
- * The expression is evaluated immediately, unlike the JavaScript onchange event
- * which only triggers at the end of a change (usually, when the user leaves the
- * form element or presses the return key).
- *
- * The `ngChange` expression is only evaluated when a change in the input value causes
- * a new value to be committed to the model.
- *
- * It will not be evaluated:
- * * if the value returned from the `$parsers` transformation pipeline has not changed
- * * if the input has continued to be invalid since the model will stay `null`
- * * if the model is changed programmatically and not by a change to the input value
- *
- *
- * Note, this directive requires `ngModel` to be present.
- *
- * @element input
- * @param {expression} ngChange {@link guide/expression Expression} to evaluate upon change
- * in input value.
- *
- * @example
- * <example name="ngChange-directive" module="changeExample">
- * <file name="index.html">
- * <script>
- * angular.module('changeExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.counter = 0;
- * $scope.change = function() {
- * $scope.counter++;
- * };
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <input type="checkbox" ng-model="confirmed" ng-change="change()" id="ng-change-example1" />
- * <input type="checkbox" ng-model="confirmed" id="ng-change-example2" />
- * <label for="ng-change-example2">Confirmed</label><br />
- * <tt>debug = {{confirmed}}</tt><br/>
- * <tt>counter = {{counter}}</tt><br/>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- * var counter = element(by.binding('counter'));
- * var debug = element(by.binding('confirmed'));
- *
- * it('should evaluate the expression if changing from view', function() {
- * expect(counter.getText()).toContain('0');
- *
- * element(by.id('ng-change-example1')).click();
- *
- * expect(counter.getText()).toContain('1');
- * expect(debug.getText()).toContain('true');
- * });
- *
- * it('should not evaluate the expression if changing from model', function() {
- * element(by.id('ng-change-example2')).click();
-
- * expect(counter.getText()).toContain('0');
- * expect(debug.getText()).toContain('true');
- * });
- * </file>
- * </example>
- */
-var ngChangeDirective = valueFn({
- restrict: 'A',
- require: 'ngModel',
- link: function(scope, element, attr, ctrl) {
- ctrl.$viewChangeListeners.push(function() {
- scope.$eval(attr.ngChange);
- });
- }
-});
-
-/* exported
- ngClassDirective,
- ngClassEvenDirective,
- ngClassOddDirective
-*/
-
-function classDirective(name, selector) {
- name = 'ngClass' + name;
- return ['$animate', function($animate) {
- return {
- restrict: 'AC',
- link: function(scope, element, attr) {
- var oldVal;
-
- attr.$observe('class', function(value) {
- ngClassWatchAction(scope.$eval(attr[name]));
- });
-
-
- if (name !== 'ngClass') {
- scope.$watch('$index', function($index, old$index) {
- /* eslint-disable no-bitwise */
- var mod = $index & 1;
- if (mod !== (old$index & 1)) {
- var classes = arrayClasses(oldVal);
- if (mod === selector) {
- addClasses(classes);
- } else {
- removeClasses(classes);
- }
- }
- /* eslint-enable */
- });
- }
-
- scope.$watch(attr[name], ngClassWatchAction, true);
-
- function addClasses(classes) {
- var newClasses = digestClassCounts(classes, 1);
- attr.$addClass(newClasses);
- }
-
- function removeClasses(classes) {
- var newClasses = digestClassCounts(classes, -1);
- attr.$removeClass(newClasses);
- }
-
- function digestClassCounts(classes, count) {
- // Use createMap() to prevent class assumptions involving property
- // names in Object.prototype
- var classCounts = element.data('$classCounts') || createMap();
- var classesToUpdate = [];
- forEach(classes, function(className) {
- if (count > 0 || classCounts[className]) {
- classCounts[className] = (classCounts[className] || 0) + count;
- if (classCounts[className] === +(count > 0)) {
- classesToUpdate.push(className);
- }
- }
- });
- element.data('$classCounts', classCounts);
- return classesToUpdate.join(' ');
- }
-
- function updateClasses(oldClasses, newClasses) {
- var toAdd = arrayDifference(newClasses, oldClasses);
- var toRemove = arrayDifference(oldClasses, newClasses);
- toAdd = digestClassCounts(toAdd, 1);
- toRemove = digestClassCounts(toRemove, -1);
- if (toAdd && toAdd.length) {
- $animate.addClass(element, toAdd);
- }
- if (toRemove && toRemove.length) {
- $animate.removeClass(element, toRemove);
- }
- }
-
- function ngClassWatchAction(newVal) {
- // eslint-disable-next-line no-bitwise
- if (selector === true || (scope.$index & 1) === selector) {
- var newClasses = arrayClasses(newVal || []);
- if (!oldVal) {
- addClasses(newClasses);
- } else if (!equals(newVal,oldVal)) {
- var oldClasses = arrayClasses(oldVal);
- updateClasses(oldClasses, newClasses);
- }
- }
- if (isArray(newVal)) {
- oldVal = newVal.map(function(v) { return shallowCopy(v); });
- } else {
- oldVal = shallowCopy(newVal);
- }
- }
- }
- };
-
- function arrayDifference(tokens1, tokens2) {
- var values = [];
-
- outer:
- for (var i = 0; i < tokens1.length; i++) {
- var token = tokens1[i];
- for (var j = 0; j < tokens2.length; j++) {
- if (token === tokens2[j]) continue outer;
- }
- values.push(token);
- }
- return values;
- }
-
- function arrayClasses(classVal) {
- var classes = [];
- if (isArray(classVal)) {
- forEach(classVal, function(v) {
- classes = classes.concat(arrayClasses(v));
- });
- return classes;
- } else if (isString(classVal)) {
- return classVal.split(' ');
- } else if (isObject(classVal)) {
- forEach(classVal, function(v, k) {
- if (v) {
- classes = classes.concat(k.split(' '));
- }
- });
- return classes;
- }
- return classVal;
- }
- }];
-}
-
-/**
- * @ngdoc directive
- * @name ngClass
- * @restrict AC
- *
- * @description
- * The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding
- * an expression that represents all classes to be added.
- *
- * The directive operates in three different ways, depending on which of three types the expression
- * evaluates to:
- *
- * 1. If the expression evaluates to a string, the string should be one or more space-delimited class
- * names.
- *
- * 2. If the expression evaluates to an object, then for each key-value pair of the
- * object with a truthy value the corresponding key is used as a class name.
- *
- * 3. If the expression evaluates to an array, each element of the array should either be a string as in
- * type 1 or an object as in type 2. This means that you can mix strings and objects together in an array
- * to give you more control over what CSS classes appear. See the code below for an example of this.
- *
- *
- * The directive won't add duplicate classes if a particular class was already set.
- *
- * When the expression changes, the previously added classes are removed and only then are the
- * new classes added.
- *
- * @knownIssue
- * You should not use {@link guide/interpolation interpolation} in the value of the `class`
- * attribute, when using the `ngClass` directive on the same element.
- * See {@link guide/interpolation#known-issues here} for more info.
- *
- * @animations
- * | Animation | Occurs |
- * |----------------------------------|-------------------------------------|
- * | {@link ng.$animate#addClass addClass} | just before the class is applied to the element |
- * | {@link ng.$animate#removeClass removeClass} | just before the class is removed from the element |
- *
- * @element ANY
- * @param {expression} ngClass {@link guide/expression Expression} to eval. The result
- * of the evaluation can be a string representing space delimited class
- * names, an array, or a map of class names to boolean values. In the case of a map, the
- * names of the properties whose values are truthy will be added as css classes to the
- * element.
- *
- * @example Example that demonstrates basic bindings via ngClass directive.
- <example name="ng-class">
- <file name="index.html">
- <p ng-class="{strike: deleted, bold: important, 'has-error': error}">Map Syntax Example</p>
- <label>
- <input type="checkbox" ng-model="deleted">
- deleted (apply "strike" class)
- </label><br>
- <label>
- <input type="checkbox" ng-model="important">
- important (apply "bold" class)
- </label><br>
- <label>
- <input type="checkbox" ng-model="error">
- error (apply "has-error" class)
- </label>
- <hr>
- <p ng-class="style">Using String Syntax</p>
- <input type="text" ng-model="style"
- placeholder="Type: bold strike red" aria-label="Type: bold strike red">
- <hr>
- <p ng-class="[style1, style2, style3]">Using Array Syntax</p>
- <input ng-model="style1"
- placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red"><br>
- <input ng-model="style2"
- placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red 2"><br>
- <input ng-model="style3"
- placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red 3"><br>
- <hr>
- <p ng-class="[style4, {orange: warning}]">Using Array and Map Syntax</p>
- <input ng-model="style4" placeholder="Type: bold, strike" aria-label="Type: bold, strike"><br>
- <label><input type="checkbox" ng-model="warning"> warning (apply "orange" class)</label>
- </file>
- <file name="style.css">
- .strike {
- text-decoration: line-through;
- }
- .bold {
- font-weight: bold;
- }
- .red {
- color: red;
- }
- .has-error {
- color: red;
- background-color: yellow;
- }
- .orange {
- color: orange;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var ps = element.all(by.css('p'));
-
- it('should let you toggle the class', function() {
-
- expect(ps.first().getAttribute('class')).not.toMatch(/bold/);
- expect(ps.first().getAttribute('class')).not.toMatch(/has-error/);
-
- element(by.model('important')).click();
- expect(ps.first().getAttribute('class')).toMatch(/bold/);
-
- element(by.model('error')).click();
- expect(ps.first().getAttribute('class')).toMatch(/has-error/);
- });
-
- it('should let you toggle string example', function() {
- expect(ps.get(1).getAttribute('class')).toBe('');
- element(by.model('style')).clear();
- element(by.model('style')).sendKeys('red');
- expect(ps.get(1).getAttribute('class')).toBe('red');
- });
-
- it('array example should have 3 classes', function() {
- expect(ps.get(2).getAttribute('class')).toBe('');
- element(by.model('style1')).sendKeys('bold');
- element(by.model('style2')).sendKeys('strike');
- element(by.model('style3')).sendKeys('red');
- expect(ps.get(2).getAttribute('class')).toBe('bold strike red');
- });
-
- it('array with map example should have 2 classes', function() {
- expect(ps.last().getAttribute('class')).toBe('');
- element(by.model('style4')).sendKeys('bold');
- element(by.model('warning')).click();
- expect(ps.last().getAttribute('class')).toBe('bold orange');
- });
- </file>
- </example>
-
- ## Animations
-
- The example below demonstrates how to perform animations using ngClass.
-
- <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-class">
- <file name="index.html">
- <input id="setbtn" type="button" value="set" ng-click="myVar='my-class'">
- <input id="clearbtn" type="button" value="clear" ng-click="myVar=''">
- <br>
- <span class="base-class" ng-class="myVar">Sample Text</span>
- </file>
- <file name="style.css">
- .base-class {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
- }
-
- .base-class.my-class {
- color: red;
- font-size:3em;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-class', function() {
- expect(element(by.css('.base-class')).getAttribute('class')).not.
- toMatch(/my-class/);
-
- element(by.id('setbtn')).click();
-
- expect(element(by.css('.base-class')).getAttribute('class')).
- toMatch(/my-class/);
-
- element(by.id('clearbtn')).click();
-
- expect(element(by.css('.base-class')).getAttribute('class')).not.
- toMatch(/my-class/);
- });
- </file>
- </example>
-
-
- ## ngClass and pre-existing CSS3 Transitions/Animations
- The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.
- Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder
- any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure
- to view the step by step details of {@link $animate#addClass $animate.addClass} and
- {@link $animate#removeClass $animate.removeClass}.
- */
-var ngClassDirective = classDirective('', true);
-
-/**
- * @ngdoc directive
- * @name ngClassOdd
- * @restrict AC
- *
- * @description
- * The `ngClassOdd` and `ngClassEven` directives work exactly as
- * {@link ng.directive:ngClass ngClass}, except they work in
- * conjunction with `ngRepeat` and take effect only on odd (even) rows.
- *
- * This directive can be applied only within the scope of an
- * {@link ng.directive:ngRepeat ngRepeat}.
- *
- * @element ANY
- * @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result
- * of the evaluation can be a string representing space delimited class names or an array.
- *
- * @example
- <example name="ng-class-odd">
- <file name="index.html">
- <ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
- <li ng-repeat="name in names">
- <span ng-class-odd="'odd'" ng-class-even="'even'">
- {{name}}
- </span>
- </li>
- </ol>
- </file>
- <file name="style.css">
- .odd {
- color: red;
- }
- .even {
- color: blue;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-class-odd and ng-class-even', function() {
- expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).
- toMatch(/odd/);
- expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).
- toMatch(/even/);
- });
- </file>
- </example>
- */
-var ngClassOddDirective = classDirective('Odd', 0);
-
-/**
- * @ngdoc directive
- * @name ngClassEven
- * @restrict AC
- *
- * @description
- * The `ngClassOdd` and `ngClassEven` directives work exactly as
- * {@link ng.directive:ngClass ngClass}, except they work in
- * conjunction with `ngRepeat` and take effect only on odd (even) rows.
- *
- * This directive can be applied only within the scope of an
- * {@link ng.directive:ngRepeat ngRepeat}.
- *
- * @element ANY
- * @param {expression} ngClassEven {@link guide/expression Expression} to eval. The
- * result of the evaluation can be a string representing space delimited class names or an array.
- *
- * @example
- <example name="ng-class-even">
- <file name="index.html">
- <ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
- <li ng-repeat="name in names">
- <span ng-class-odd="'odd'" ng-class-even="'even'">
- {{name}} &nbsp; &nbsp; &nbsp;
- </span>
- </li>
- </ol>
- </file>
- <file name="style.css">
- .odd {
- color: red;
- }
- .even {
- color: blue;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-class-odd and ng-class-even', function() {
- expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).
- toMatch(/odd/);
- expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).
- toMatch(/even/);
- });
- </file>
- </example>
- */
-var ngClassEvenDirective = classDirective('Even', 1);
-
-/**
- * @ngdoc directive
- * @name ngCloak
- * @restrict AC
- *
- * @description
- * The `ngCloak` directive is used to prevent the Angular html template from being briefly
- * displayed by the browser in its raw (uncompiled) form while your application is loading. Use this
- * directive to avoid the undesirable flicker effect caused by the html template display.
- *
- * The directive can be applied to the `<body>` element, but the preferred usage is to apply
- * multiple `ngCloak` directives to small portions of the page to permit progressive rendering
- * of the browser view.
- *
- * `ngCloak` works in cooperation with the following css rule embedded within `angular.js` and
- * `angular.min.js`.
- * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).
- *
- * ```css
- * [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
- * display: none !important;
- * }
- * ```
- *
- * When this css rule is loaded by the browser, all html elements (including their children) that
- * are tagged with the `ngCloak` directive are hidden. When Angular encounters this directive
- * during the compilation of the template it deletes the `ngCloak` element attribute, making
- * the compiled element visible.
- *
- * For the best result, the `angular.js` script must be loaded in the head section of the html
- * document; alternatively, the css rule above must be included in the external stylesheet of the
- * application.
- *
- * @element ANY
- *
- * @example
- <example name="ng-cloak">
- <file name="index.html">
- <div id="template1" ng-cloak>{{ 'hello' }}</div>
- <div id="template2" class="ng-cloak">{{ 'world' }}</div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should remove the template directive and css class', function() {
- expect($('#template1').getAttribute('ng-cloak')).
- toBeNull();
- expect($('#template2').getAttribute('ng-cloak')).
- toBeNull();
- });
- </file>
- </example>
- *
- */
-var ngCloakDirective = ngDirective({
- compile: function(element, attr) {
- attr.$set('ngCloak', undefined);
- element.removeClass('ng-cloak');
- }
-});
-
-/**
- * @ngdoc directive
- * @name ngController
- *
- * @description
- * The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular
- * supports the principles behind the Model-View-Controller design pattern.
- *
- * MVC components in angular:
- *
- * * Model — Models are the properties of a scope; scopes are attached to the DOM where scope properties
- * are accessed through bindings.
- * * View — The template (HTML with data bindings) that is rendered into the View.
- * * Controller — The `ngController` directive specifies a Controller class; the class contains business
- * logic behind the application to decorate the scope with functions and values
- *
- * Note that you can also attach controllers to the DOM by declaring it in a route definition
- * via the {@link ngRoute.$route $route} service. A common mistake is to declare the controller
- * again using `ng-controller` in the template itself. This will cause the controller to be attached
- * and executed twice.
- *
- * @element ANY
- * @scope
- * @priority 500
- * @param {expression} ngController Name of a constructor function registered with the current
- * {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}
- * that on the current scope evaluates to a constructor function.
- *
- * The controller instance can be published into a scope property by specifying
- * `ng-controller="as propertyName"`.
- *
- * If the current `$controllerProvider` is configured to use globals (via
- * {@link ng.$controllerProvider#allowGlobals `$controllerProvider.allowGlobals()` }), this may
- * also be the name of a globally accessible constructor function (not recommended).
- *
- * @example
- * Here is a simple form for editing user contact information. Adding, removing, clearing, and
- * greeting are methods declared on the controller (see source tab). These methods can
- * easily be called from the angular markup. Any changes to the data are automatically reflected
- * in the View without the need for a manual update.
- *
- * Two different declaration styles are included below:
- *
- * * one binds methods and properties directly onto the controller using `this`:
- * `ng-controller="SettingsController1 as settings"`
- * * one injects `$scope` into the controller:
- * `ng-controller="SettingsController2"`
- *
- * The second option is more common in the Angular community, and is generally used in boilerplates
- * and in this guide. However, there are advantages to binding properties directly to the controller
- * and avoiding scope.
- *
- * * Using `controller as` makes it obvious which controller you are accessing in the template when
- * multiple controllers apply to an element.
- * * If you are writing your controllers as classes you have easier access to the properties and
- * methods, which will appear on the scope, from inside the controller code.
- * * Since there is always a `.` in the bindings, you don't have to worry about prototypal
- * inheritance masking primitives.
- *
- * This example demonstrates the `controller as` syntax.
- *
- * <example name="ngControllerAs" module="controllerAsExample">
- * <file name="index.html">
- * <div id="ctrl-as-exmpl" ng-controller="SettingsController1 as settings">
- * <label>Name: <input type="text" ng-model="settings.name"/></label>
- * <button ng-click="settings.greet()">greet</button><br/>
- * Contact:
- * <ul>
- * <li ng-repeat="contact in settings.contacts">
- * <select ng-model="contact.type" aria-label="Contact method" id="select_{{$index}}">
- * <option>phone</option>
- * <option>email</option>
- * </select>
- * <input type="text" ng-model="contact.value" aria-labelledby="select_{{$index}}" />
- * <button ng-click="settings.clearContact(contact)">clear</button>
- * <button ng-click="settings.removeContact(contact)" aria-label="Remove">X</button>
- * </li>
- * <li><button ng-click="settings.addContact()">add</button></li>
- * </ul>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('controllerAsExample', [])
- * .controller('SettingsController1', SettingsController1);
- *
- * function SettingsController1() {
- * this.name = 'John Smith';
- * this.contacts = [
- * {type: 'phone', value: '408 555 1212'},
- * {type: 'email', value: 'john.smith@example.org'}
- * ];
- * }
- *
- * SettingsController1.prototype.greet = function() {
- * alert(this.name);
- * };
- *
- * SettingsController1.prototype.addContact = function() {
- * this.contacts.push({type: 'email', value: 'yourname@example.org'});
- * };
- *
- * SettingsController1.prototype.removeContact = function(contactToRemove) {
- * var index = this.contacts.indexOf(contactToRemove);
- * this.contacts.splice(index, 1);
- * };
- *
- * SettingsController1.prototype.clearContact = function(contact) {
- * contact.type = 'phone';
- * contact.value = '';
- * };
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should check controller as', function() {
- * var container = element(by.id('ctrl-as-exmpl'));
- * expect(container.element(by.model('settings.name'))
- * .getAttribute('value')).toBe('John Smith');
- *
- * var firstRepeat =
- * container.element(by.repeater('contact in settings.contacts').row(0));
- * var secondRepeat =
- * container.element(by.repeater('contact in settings.contacts').row(1));
- *
- * expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('408 555 1212');
- *
- * expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('john.smith@example.org');
- *
- * firstRepeat.element(by.buttonText('clear')).click();
- *
- * expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('');
- *
- * container.element(by.buttonText('add')).click();
- *
- * expect(container.element(by.repeater('contact in settings.contacts').row(2))
- * .element(by.model('contact.value'))
- * .getAttribute('value'))
- * .toBe('yourname@example.org');
- * });
- * </file>
- * </example>
- *
- * This example demonstrates the "attach to `$scope`" style of controller.
- *
- * <example name="ngController" module="controllerExample">
- * <file name="index.html">
- * <div id="ctrl-exmpl" ng-controller="SettingsController2">
- * <label>Name: <input type="text" ng-model="name"/></label>
- * <button ng-click="greet()">greet</button><br/>
- * Contact:
- * <ul>
- * <li ng-repeat="contact in contacts">
- * <select ng-model="contact.type" id="select_{{$index}}">
- * <option>phone</option>
- * <option>email</option>
- * </select>
- * <input type="text" ng-model="contact.value" aria-labelledby="select_{{$index}}" />
- * <button ng-click="clearContact(contact)">clear</button>
- * <button ng-click="removeContact(contact)">X</button>
- * </li>
- * <li>[ <button ng-click="addContact()">add</button> ]</li>
- * </ul>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('controllerExample', [])
- * .controller('SettingsController2', ['$scope', SettingsController2]);
- *
- * function SettingsController2($scope) {
- * $scope.name = 'John Smith';
- * $scope.contacts = [
- * {type:'phone', value:'408 555 1212'},
- * {type:'email', value:'john.smith@example.org'}
- * ];
- *
- * $scope.greet = function() {
- * alert($scope.name);
- * };
- *
- * $scope.addContact = function() {
- * $scope.contacts.push({type:'email', value:'yourname@example.org'});
- * };
- *
- * $scope.removeContact = function(contactToRemove) {
- * var index = $scope.contacts.indexOf(contactToRemove);
- * $scope.contacts.splice(index, 1);
- * };
- *
- * $scope.clearContact = function(contact) {
- * contact.type = 'phone';
- * contact.value = '';
- * };
- * }
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should check controller', function() {
- * var container = element(by.id('ctrl-exmpl'));
- *
- * expect(container.element(by.model('name'))
- * .getAttribute('value')).toBe('John Smith');
- *
- * var firstRepeat =
- * container.element(by.repeater('contact in contacts').row(0));
- * var secondRepeat =
- * container.element(by.repeater('contact in contacts').row(1));
- *
- * expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('408 555 1212');
- * expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('john.smith@example.org');
- *
- * firstRepeat.element(by.buttonText('clear')).click();
- *
- * expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('');
- *
- * container.element(by.buttonText('add')).click();
- *
- * expect(container.element(by.repeater('contact in contacts').row(2))
- * .element(by.model('contact.value'))
- * .getAttribute('value'))
- * .toBe('yourname@example.org');
- * });
- * </file>
- *</example>
-
- */
-var ngControllerDirective = [function() {
- return {
- restrict: 'A',
- scope: true,
- controller: '@',
- priority: 500
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngCsp
- *
- * @restrict A
- * @element ANY
- * @description
- *
- * Angular has some features that can conflict with certain restrictions that are applied when using
- * [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) rules.
- *
- * If you intend to implement CSP with these rules then you must tell Angular not to use these
- * features.
- *
- * This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.
- *
- *
- * The following default rules in CSP affect Angular:
- *
- * * The use of `eval()`, `Function(string)` and similar functions to dynamically create and execute
- * code from strings is forbidden. Angular makes use of this in the {@link $parse} service to
- * provide a 30% increase in the speed of evaluating Angular expressions. (This CSP rule can be
- * disabled with the CSP keyword `unsafe-eval`, but it is generally not recommended as it would
- * weaken the protections offered by CSP.)
- *
- * * The use of inline resources, such as inline `<script>` and `<style>` elements, are forbidden.
- * This prevents apps from injecting custom styles directly into the document. Angular makes use of
- * this to include some CSS rules (e.g. {@link ngCloak} and {@link ngHide}). To make these
- * directives work when a CSP rule is blocking inline styles, you must link to the `angular-csp.css`
- * in your HTML manually. (This CSP rule can be disabled with the CSP keyword `unsafe-inline`, but
- * it is generally not recommended as it would weaken the protections offered by CSP.)
- *
- * If you do not provide `ngCsp` then Angular tries to autodetect if CSP is blocking dynamic code
- * creation from strings (e.g., `unsafe-eval` not specified in CSP header) and automatically
- * deactivates this feature in the {@link $parse} service. This autodetection, however, triggers a
- * CSP error to be logged in the console:
- *
- * ```
- * Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of
- * script in the following Content Security Policy directive: "default-src 'self'". Note that
- * 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
- * ```
- *
- * This error is harmless but annoying. To prevent the error from showing up, put the `ngCsp`
- * directive on an element of the HTML document that appears before the `<script>` tag that loads
- * the `angular.js` file.
- *
- * *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.*
- *
- * You can specify which of the CSP related Angular features should be deactivated by providing
- * a value for the `ng-csp` attribute. The options are as follows:
- *
- * * no-inline-style: this stops Angular from injecting CSS styles into the DOM
- *
- * * no-unsafe-eval: this stops Angular from optimizing $parse with unsafe eval of strings
- *
- * You can use these values in the following combinations:
- *
- *
- * * No declaration means that Angular will assume that you can do inline styles, but it will do
- * a runtime check for unsafe-eval. E.g. `<body>`. This is backwardly compatible with previous
- * versions of Angular.
- *
- * * A simple `ng-csp` (or `data-ng-csp`) attribute will tell Angular to deactivate both inline
- * styles and unsafe eval. E.g. `<body ng-csp>`. This is backwardly compatible with previous
- * versions of Angular.
- *
- * * Specifying only `no-unsafe-eval` tells Angular that we must not use eval, but that we can
- * inject inline styles. E.g. `<body ng-csp="no-unsafe-eval">`.
- *
- * * Specifying only `no-inline-style` tells Angular that we must not inject styles, but that we can
- * run eval - no automatic check for unsafe eval will occur. E.g. `<body ng-csp="no-inline-style">`
- *
- * * Specifying both `no-unsafe-eval` and `no-inline-style` tells Angular that we must not inject
- * styles nor use eval, which is the same as an empty: ng-csp.
- * E.g.`<body ng-csp="no-inline-style;no-unsafe-eval">`
- *
- * @example
- * This example shows how to apply the `ngCsp` directive to the `html` tag.
- ```html
- <!doctype html>
- <html ng-app ng-csp>
- ...
- ...
- </html>
- ```
- * @example
- <!-- Note: the `.csp` suffix in the example name triggers CSP mode in our http server! -->
- <example name="example.csp" module="cspExample" ng-csp="true">
- <file name="index.html">
- <div ng-controller="MainController as ctrl">
- <div>
- <button ng-click="ctrl.inc()" id="inc">Increment</button>
- <span id="counter">
- {{ctrl.counter}}
- </span>
- </div>
-
- <div>
- <button ng-click="ctrl.evil()" id="evil">Evil</button>
- <span id="evilError">
- {{ctrl.evilError}}
- </span>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('cspExample', [])
- .controller('MainController', function MainController() {
- this.counter = 0;
- this.inc = function() {
- this.counter++;
- };
- this.evil = function() {
- try {
- eval('1+2'); // eslint-disable-line no-eval
- } catch (e) {
- this.evilError = e.message;
- }
- };
- });
- </file>
- <file name="protractor.js" type="protractor">
- var util, webdriver;
-
- var incBtn = element(by.id('inc'));
- var counter = element(by.id('counter'));
- var evilBtn = element(by.id('evil'));
- var evilError = element(by.id('evilError'));
-
- function getAndClearSevereErrors() {
- return browser.manage().logs().get('browser').then(function(browserLog) {
- return browserLog.filter(function(logEntry) {
- return logEntry.level.value > webdriver.logging.Level.WARNING.value;
- });
- });
- }
-
- function clearErrors() {
- getAndClearSevereErrors();
- }
-
- function expectNoErrors() {
- getAndClearSevereErrors().then(function(filteredLog) {
- expect(filteredLog.length).toEqual(0);
- if (filteredLog.length) {
- console.log('browser console errors: ' + util.inspect(filteredLog));
- }
- });
- }
-
- function expectError(regex) {
- getAndClearSevereErrors().then(function(filteredLog) {
- var found = false;
- filteredLog.forEach(function(log) {
- if (log.message.match(regex)) {
- found = true;
- }
- });
- if (!found) {
- throw new Error('expected an error that matches ' + regex);
- }
- });
- }
-
- beforeEach(function() {
- util = require('util');
- webdriver = require('selenium-webdriver');
- });
-
- // For now, we only test on Chrome,
- // as Safari does not load the page with Protractor's injected scripts,
- // and Firefox webdriver always disables content security policy (#6358)
- if (browser.params.browser !== 'chrome') {
- return;
- }
-
- it('should not report errors when the page is loaded', function() {
- // clear errors so we are not dependent on previous tests
- clearErrors();
- // Need to reload the page as the page is already loaded when
- // we come here
- browser.driver.getCurrentUrl().then(function(url) {
- browser.get(url);
- });
- expectNoErrors();
- });
-
- it('should evaluate expressions', function() {
- expect(counter.getText()).toEqual('0');
- incBtn.click();
- expect(counter.getText()).toEqual('1');
- expectNoErrors();
- });
-
- it('should throw and report an error when using "eval"', function() {
- evilBtn.click();
- expect(evilError.getText()).toMatch(/Content Security Policy/);
- expectError(/Content Security Policy/);
- });
- </file>
- </example>
- */
-
-// `ngCsp` is not implemented as a proper directive any more, because we need it be processed while
-// we bootstrap the app (before `$parse` is instantiated). For this reason, we just have the `csp()`
-// fn that looks for the `ng-csp` attribute anywhere in the current doc.
-
-/**
- * @ngdoc directive
- * @name ngClick
- *
- * @description
- * The ngClick directive allows you to specify custom behavior when
- * an element is clicked.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon
- * click. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-click">
- <file name="index.html">
- <button ng-click="count = count + 1" ng-init="count=0">
- Increment
- </button>
- <span>
- count: {{count}}
- </span>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-click', function() {
- expect(element(by.binding('count')).getText()).toMatch('0');
- element(by.css('button')).click();
- expect(element(by.binding('count')).getText()).toMatch('1');
- });
- </file>
- </example>
- */
-/*
- * A collection of directives that allows creation of custom event handlers that are defined as
- * angular expressions and are compiled and executed within the current scope.
- */
-var ngEventDirectives = {};
-
-// For events that might fire synchronously during DOM manipulation
-// we need to execute their event handlers asynchronously using $evalAsync,
-// so that they are not executed in an inconsistent state.
-var forceAsyncEvents = {
- 'blur': true,
- 'focus': true
-};
-forEach(
- 'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '),
- function(eventName) {
- var directiveName = directiveNormalize('ng-' + eventName);
- ngEventDirectives[directiveName] = ['$parse', '$rootScope', function($parse, $rootScope) {
- return {
- restrict: 'A',
- compile: function($element, attr) {
- // We expose the powerful $event object on the scope that provides access to the Window,
- // etc. that isn't protected by the fast paths in $parse. We explicitly request better
- // checks at the cost of speed since event handler expressions are not executed as
- // frequently as regular change detection.
- var fn = $parse(attr[directiveName], /* interceptorFn */ null, /* expensiveChecks */ true);
- return function ngEventHandler(scope, element) {
- element.on(eventName, function(event) {
- var callback = function() {
- fn(scope, {$event:event});
- };
- if (forceAsyncEvents[eventName] && $rootScope.$$phase) {
- scope.$evalAsync(callback);
- } else {
- scope.$apply(callback);
- }
- });
- };
- }
- };
- }];
- }
-);
-
-/**
- * @ngdoc directive
- * @name ngDblclick
- *
- * @description
- * The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon
- * a dblclick. (The Event object is available as `$event`)
- *
- * @example
- <example name="ng-dblclick">
- <file name="index.html">
- <button ng-dblclick="count = count + 1" ng-init="count=0">
- Increment (on double click)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMousedown
- *
- * @description
- * The ngMousedown directive allows you to specify custom behavior on mousedown event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon
- * mousedown. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-mousedown">
- <file name="index.html">
- <button ng-mousedown="count = count + 1" ng-init="count=0">
- Increment (on mouse down)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMouseup
- *
- * @description
- * Specify custom behavior on mouseup event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon
- * mouseup. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-mouseup">
- <file name="index.html">
- <button ng-mouseup="count = count + 1" ng-init="count=0">
- Increment (on mouse up)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngMouseover
- *
- * @description
- * Specify custom behavior on mouseover event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon
- * mouseover. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-mouseover">
- <file name="index.html">
- <button ng-mouseover="count = count + 1" ng-init="count=0">
- Increment (when mouse is over)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMouseenter
- *
- * @description
- * Specify custom behavior on mouseenter event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon
- * mouseenter. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-mouseenter">
- <file name="index.html">
- <button ng-mouseenter="count = count + 1" ng-init="count=0">
- Increment (when mouse enters)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMouseleave
- *
- * @description
- * Specify custom behavior on mouseleave event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon
- * mouseleave. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-mouseleave">
- <file name="index.html">
- <button ng-mouseleave="count = count + 1" ng-init="count=0">
- Increment (when mouse leaves)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMousemove
- *
- * @description
- * Specify custom behavior on mousemove event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon
- * mousemove. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-mousemove">
- <file name="index.html">
- <button ng-mousemove="count = count + 1" ng-init="count=0">
- Increment (when mouse moves)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngKeydown
- *
- * @description
- * Specify custom behavior on keydown event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon
- * keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
- *
- * @example
- <example name="ng-keydown">
- <file name="index.html">
- <input ng-keydown="count = count + 1" ng-init="count=0">
- key down count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngKeyup
- *
- * @description
- * Specify custom behavior on keyup event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon
- * keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
- *
- * @example
- <example name="ng-keyup">
- <file name="index.html">
- <p>Typing in the input box below updates the key count</p>
- <input ng-keyup="count = count + 1" ng-init="count=0"> key up count: {{count}}
-
- <p>Typing in the input box below updates the keycode</p>
- <input ng-keyup="event=$event">
- <p>event keyCode: {{ event.keyCode }}</p>
- <p>event altKey: {{ event.altKey }}</p>
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngKeypress
- *
- * @description
- * Specify custom behavior on keypress event.
- *
- * @element ANY
- * @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon
- * keypress. ({@link guide/expression#-event- Event object is available as `$event`}
- * and can be interrogated for keyCode, altKey, etc.)
- *
- * @example
- <example name="ng-keypress">
- <file name="index.html">
- <input ng-keypress="count = count + 1" ng-init="count=0">
- key press count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngSubmit
- *
- * @description
- * Enables binding angular expressions to onsubmit events.
- *
- * Additionally it prevents the default action (which for form means sending the request to the
- * server and reloading the current page), but only if the form does not contain `action`,
- * `data-action`, or `x-action` attributes.
- *
- * <div class="alert alert-warning">
- * **Warning:** Be careful not to cause "double-submission" by using both the `ngClick` and
- * `ngSubmit` handlers together. See the
- * {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}
- * for a detailed discussion of when `ngSubmit` may be triggered.
- * </div>
- *
- * @element form
- * @priority 0
- * @param {expression} ngSubmit {@link guide/expression Expression} to eval.
- * ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example module="submitExample" name="ng-submit">
- <file name="index.html">
- <script>
- angular.module('submitExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.list = [];
- $scope.text = 'hello';
- $scope.submit = function() {
- if ($scope.text) {
- $scope.list.push(this.text);
- $scope.text = '';
- }
- };
- }]);
- </script>
- <form ng-submit="submit()" ng-controller="ExampleController">
- Enter text and hit enter:
- <input type="text" ng-model="text" name="text" />
- <input type="submit" id="submit" value="Submit" />
- <pre>list={{list}}</pre>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-submit', function() {
- expect(element(by.binding('list')).getText()).toBe('list=[]');
- element(by.css('#submit')).click();
- expect(element(by.binding('list')).getText()).toContain('hello');
- expect(element(by.model('text')).getAttribute('value')).toBe('');
- });
- it('should ignore empty strings', function() {
- expect(element(by.binding('list')).getText()).toBe('list=[]');
- element(by.css('#submit')).click();
- element(by.css('#submit')).click();
- expect(element(by.binding('list')).getText()).toContain('hello');
- });
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngFocus
- *
- * @description
- * Specify custom behavior on focus event.
- *
- * Note: As the `focus` event is executed synchronously when calling `input.focus()`
- * AngularJS executes the expression using `scope.$evalAsync` if the event is fired
- * during an `$apply` to ensure a consistent state.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon
- * focus. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- * See {@link ng.directive:ngClick ngClick}
- */
-
-/**
- * @ngdoc directive
- * @name ngBlur
- *
- * @description
- * Specify custom behavior on blur event.
- *
- * A [blur event](https://developer.mozilla.org/en-US/docs/Web/Events/blur) fires when
- * an element has lost focus.
- *
- * Note: As the `blur` event is executed synchronously also during DOM manipulations
- * (e.g. removing a focussed input),
- * AngularJS executes the expression using `scope.$evalAsync` if the event is fired
- * during an `$apply` to ensure a consistent state.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon
- * blur. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- * See {@link ng.directive:ngClick ngClick}
- */
-
-/**
- * @ngdoc directive
- * @name ngCopy
- *
- * @description
- * Specify custom behavior on copy event.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon
- * copy. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-copy">
- <file name="index.html">
- <input ng-copy="copied=true" ng-init="copied=false; value='copy me'" ng-model="value">
- copied: {{copied}}
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngCut
- *
- * @description
- * Specify custom behavior on cut event.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon
- * cut. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-cut">
- <file name="index.html">
- <input ng-cut="cut=true" ng-init="cut=false; value='cut me'" ng-model="value">
- cut: {{cut}}
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngPaste
- *
- * @description
- * Specify custom behavior on paste event.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon
- * paste. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example name="ng-paste">
- <file name="index.html">
- <input ng-paste="paste=true" ng-init="paste=false" placeholder='paste here'>
- pasted: {{paste}}
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngIf
- * @restrict A
- * @multiElement
- *
- * @description
- * The `ngIf` directive removes or recreates a portion of the DOM tree based on an
- * {expression}. If the expression assigned to `ngIf` evaluates to a false
- * value then the element is removed from the DOM, otherwise a clone of the
- * element is reinserted into the DOM.
- *
- * `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the
- * element in the DOM rather than changing its visibility via the `display` css property. A common
- * case when this difference is significant is when using css selectors that rely on an element's
- * position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.
- *
- * Note that when an element is removed using `ngIf` its scope is destroyed and a new scope
- * is created when the element is restored. The scope created within `ngIf` inherits from
- * its parent scope using
- * [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).
- * An important implication of this is if `ngModel` is used within `ngIf` to bind to
- * a javascript primitive defined in the parent scope. In this case any modifications made to the
- * variable within the child scope will override (hide) the value in the parent scope.
- *
- * Also, `ngIf` recreates elements using their compiled state. An example of this behavior
- * is if an element's class attribute is directly modified after it's compiled, using something like
- * jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element
- * the added class will be lost because the original compiled state is used to regenerate the element.
- *
- * Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`
- * and `leave` effects.
- *
- * @animations
- * | Animation | Occurs |
- * |----------------------------------|-------------------------------------|
- * | {@link ng.$animate#enter enter} | just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container |
- * | {@link ng.$animate#leave leave} | just before the `ngIf` contents are removed from the DOM |
- *
- * @element ANY
- * @scope
- * @priority 600
- * @param {expression} ngIf If the {@link guide/expression expression} is falsy then
- * the element is removed from the DOM tree. If it is truthy a copy of the compiled
- * element is added to the DOM tree.
- *
- * @example
- <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-if">
- <file name="index.html">
- <label>Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /></label><br/>
- Show when checked:
- <span ng-if="checked" class="animate-if">
- This is removed when the checkbox is unchecked.
- </span>
- </file>
- <file name="animations.css">
- .animate-if {
- background:white;
- border:1px solid black;
- padding:10px;
- }
-
- .animate-if.ng-enter, .animate-if.ng-leave {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
- }
-
- .animate-if.ng-enter,
- .animate-if.ng-leave.ng-leave-active {
- opacity:0;
- }
-
- .animate-if.ng-leave,
- .animate-if.ng-enter.ng-enter-active {
- opacity:1;
- }
- </file>
- </example>
- */
-var ngIfDirective = ['$animate', '$compile', function($animate, $compile) {
- return {
- multiElement: true,
- transclude: 'element',
- priority: 600,
- terminal: true,
- restrict: 'A',
- $$tlb: true,
- link: function($scope, $element, $attr, ctrl, $transclude) {
- var block, childScope, previousElements;
- $scope.$watch($attr.ngIf, function ngIfWatchAction(value) {
-
- if (value) {
- if (!childScope) {
- $transclude(function(clone, newScope) {
- childScope = newScope;
- clone[clone.length++] = $compile.$$createComment('end ngIf', $attr.ngIf);
- // Note: We only need the first/last node of the cloned nodes.
- // However, we need to keep the reference to the jqlite wrapper as it might be changed later
- // by a directive with templateUrl when its template arrives.
- block = {
- clone: clone
- };
- $animate.enter(clone, $element.parent(), $element);
- });
- }
- } else {
- if (previousElements) {
- previousElements.remove();
- previousElements = null;
- }
- if (childScope) {
- childScope.$destroy();
- childScope = null;
- }
- if (block) {
- previousElements = getBlockNodes(block.clone);
- $animate.leave(previousElements).done(function(response) {
- if (response !== false) previousElements = null;
- });
- block = null;
- }
- }
- });
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngInclude
- * @restrict ECA
- *
- * @description
- * Fetches, compiles and includes an external HTML fragment.
- *
- * By default, the template URL is restricted to the same domain and protocol as the
- * application document. This is done by calling {@link $sce#getTrustedResourceUrl
- * $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols
- * you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or
- * {@link $sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link
- * ng.$sce Strict Contextual Escaping}.
- *
- * In addition, the browser's
- * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
- * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
- * policy may further restrict whether the template is successfully loaded.
- * For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://`
- * access on some browsers.
- *
- * @animations
- * | Animation | Occurs |
- * |----------------------------------|-------------------------------------|
- * | {@link ng.$animate#enter enter} | when the expression changes, on the new include |
- * | {@link ng.$animate#leave leave} | when the expression changes, on the old include |
- *
- * The enter and leave animation occur concurrently.
- *
- * @scope
- * @priority 400
- *
- * @param {string} ngInclude|src angular expression evaluating to URL. If the source is a string constant,
- * make sure you wrap it in **single** quotes, e.g. `src="'myPartialTemplate.html'"`.
- * @param {string=} onload Expression to evaluate when a new partial is loaded.
- * <div class="alert alert-warning">
- * **Note:** When using onload on SVG elements in IE11, the browser will try to call
- * a function with the name on the window element, which will usually throw a
- * "function is undefined" error. To fix this, you can instead use `data-onload` or a
- * different form that {@link guide/directive#normalization matches} `onload`.
- * </div>
- *
- * @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll
- * $anchorScroll} to scroll the viewport after the content is loaded.
- *
- * - If the attribute is not set, disable scrolling.
- * - If the attribute is set without value, enable scrolling.
- * - Otherwise enable scrolling only if the expression evaluates to truthy value.
- *
- * @example
- <example module="includeExample" deps="angular-animate.js" animations="true" name="ng-include">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <select ng-model="template" ng-options="t.name for t in templates">
- <option value="">(blank)</option>
- </select>
- url of the template: <code>{{template.url}}</code>
- <hr/>
- <div class="slide-animate-container">
- <div class="slide-animate" ng-include="template.url"></div>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('includeExample', ['ngAnimate'])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.templates =
- [{ name: 'template1.html', url: 'template1.html'},
- { name: 'template2.html', url: 'template2.html'}];
- $scope.template = $scope.templates[0];
- }]);
- </file>
- <file name="template1.html">
- Content of template1.html
- </file>
- <file name="template2.html">
- Content of template2.html
- </file>
- <file name="animations.css">
- .slide-animate-container {
- position:relative;
- background:white;
- border:1px solid black;
- height:40px;
- overflow:hidden;
- }
-
- .slide-animate {
- padding:10px;
- }
-
- .slide-animate.ng-enter, .slide-animate.ng-leave {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-
- position:absolute;
- top:0;
- left:0;
- right:0;
- bottom:0;
- display:block;
- padding:10px;
- }
-
- .slide-animate.ng-enter {
- top:-50px;
- }
- .slide-animate.ng-enter.ng-enter-active {
- top:0;
- }
-
- .slide-animate.ng-leave {
- top:0;
- }
- .slide-animate.ng-leave.ng-leave-active {
- top:50px;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var templateSelect = element(by.model('template'));
- var includeElem = element(by.css('[ng-include]'));
-
- it('should load template1.html', function() {
- expect(includeElem.getText()).toMatch(/Content of template1.html/);
- });
-
- it('should load template2.html', function() {
- if (browser.params.browser === 'firefox') {
- // Firefox can't handle using selects
- // See https://github.com/angular/protractor/issues/480
- return;
- }
- templateSelect.click();
- templateSelect.all(by.css('option')).get(2).click();
- expect(includeElem.getText()).toMatch(/Content of template2.html/);
- });
-
- it('should change to blank', function() {
- if (browser.params.browser === 'firefox') {
- // Firefox can't handle using selects
- return;
- }
- templateSelect.click();
- templateSelect.all(by.css('option')).get(0).click();
- expect(includeElem.isPresent()).toBe(false);
- });
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc event
- * @name ngInclude#$includeContentRequested
- * @eventType emit on the scope ngInclude was declared in
- * @description
- * Emitted every time the ngInclude content is requested.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {String} src URL of content to load.
- */
-
-
-/**
- * @ngdoc event
- * @name ngInclude#$includeContentLoaded
- * @eventType emit on the current ngInclude scope
- * @description
- * Emitted every time the ngInclude content is reloaded.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {String} src URL of content to load.
- */
-
-
-/**
- * @ngdoc event
- * @name ngInclude#$includeContentError
- * @eventType emit on the scope ngInclude was declared in
- * @description
- * Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299)
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {String} src URL of content to load.
- */
-var ngIncludeDirective = ['$templateRequest', '$anchorScroll', '$animate',
- function($templateRequest, $anchorScroll, $animate) {
- return {
- restrict: 'ECA',
- priority: 400,
- terminal: true,
- transclude: 'element',
- controller: angular.noop,
- compile: function(element, attr) {
- var srcExp = attr.ngInclude || attr.src,
- onloadExp = attr.onload || '',
- autoScrollExp = attr.autoscroll;
-
- return function(scope, $element, $attr, ctrl, $transclude) {
- var changeCounter = 0,
- currentScope,
- previousElement,
- currentElement;
-
- var cleanupLastIncludeContent = function() {
- if (previousElement) {
- previousElement.remove();
- previousElement = null;
- }
- if (currentScope) {
- currentScope.$destroy();
- currentScope = null;
- }
- if (currentElement) {
- $animate.leave(currentElement).done(function(response) {
- if (response !== false) previousElement = null;
- });
- previousElement = currentElement;
- currentElement = null;
- }
- };
-
- scope.$watch(srcExp, function ngIncludeWatchAction(src) {
- var afterAnimation = function(response) {
- if (response !== false && isDefined(autoScrollExp) &&
- (!autoScrollExp || scope.$eval(autoScrollExp))) {
- $anchorScroll();
- }
- };
- var thisChangeId = ++changeCounter;
-
- if (src) {
- //set the 2nd param to true to ignore the template request error so that the inner
- //contents and scope can be cleaned up.
- $templateRequest(src, true).then(function(response) {
- if (scope.$$destroyed) return;
-
- if (thisChangeId !== changeCounter) return;
- var newScope = scope.$new();
- ctrl.template = response;
-
- // Note: This will also link all children of ng-include that were contained in the original
- // html. If that content contains controllers, ... they could pollute/change the scope.
- // However, using ng-include on an element with additional content does not make sense...
- // Note: We can't remove them in the cloneAttchFn of $transclude as that
- // function is called before linking the content, which would apply child
- // directives to non existing elements.
- var clone = $transclude(newScope, function(clone) {
- cleanupLastIncludeContent();
- $animate.enter(clone, null, $element).done(afterAnimation);
- });
-
- currentScope = newScope;
- currentElement = clone;
-
- currentScope.$emit('$includeContentLoaded', src);
- scope.$eval(onloadExp);
- }, function() {
- if (scope.$$destroyed) return;
-
- if (thisChangeId === changeCounter) {
- cleanupLastIncludeContent();
- scope.$emit('$includeContentError', src);
- }
- });
- scope.$emit('$includeContentRequested', src);
- } else {
- cleanupLastIncludeContent();
- ctrl.template = null;
- }
- });
- };
- }
- };
-}];
-
-// This directive is called during the $transclude call of the first `ngInclude` directive.
-// It will replace and compile the content of the element with the loaded template.
-// We need this directive so that the element content is already filled when
-// the link function of another directive on the same element as ngInclude
-// is called.
-var ngIncludeFillContentDirective = ['$compile',
- function($compile) {
- return {
- restrict: 'ECA',
- priority: -400,
- require: 'ngInclude',
- link: function(scope, $element, $attr, ctrl) {
- if (toString.call($element[0]).match(/SVG/)) {
- // WebKit: https://bugs.webkit.org/show_bug.cgi?id=135698 --- SVG elements do not
- // support innerHTML, so detect this here and try to generate the contents
- // specially.
- $element.empty();
- $compile(jqLiteBuildFragment(ctrl.template, window.document).childNodes)(scope,
- function namespaceAdaptedClone(clone) {
- $element.append(clone);
- }, {futureParentElement: $element});
- return;
- }
-
- $element.html(ctrl.template);
- $compile($element.contents())(scope);
- }
- };
- }];
-
-/**
- * @ngdoc directive
- * @name ngInit
- * @restrict AC
- *
- * @description
- * The `ngInit` directive allows you to evaluate an expression in the
- * current scope.
- *
- * <div class="alert alert-danger">
- * This directive can be abused to add unnecessary amounts of logic into your templates.
- * There are only a few appropriate uses of `ngInit`, such as for aliasing special properties of
- * {@link ng.directive:ngRepeat `ngRepeat`}, as seen in the demo below; and for injecting data via
- * server side scripting. Besides these few cases, you should use {@link guide/controller controllers}
- * rather than `ngInit` to initialize values on a scope.
- * </div>
- *
- * <div class="alert alert-warning">
- * **Note**: If you have assignment in `ngInit` along with a {@link ng.$filter `filter`}, make
- * sure you have parentheses to ensure correct operator precedence:
- * <pre class="prettyprint">
- * `<div ng-init="test1 = ($index | toString)"></div>`
- * </pre>
- * </div>
- *
- * @priority 450
- *
- * @element ANY
- * @param {expression} ngInit {@link guide/expression Expression} to eval.
- *
- * @example
- <example module="initExample" name="ng-init">
- <file name="index.html">
- <script>
- angular.module('initExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.list = [['a', 'b'], ['c', 'd']];
- }]);
- </script>
- <div ng-controller="ExampleController">
- <div ng-repeat="innerList in list" ng-init="outerIndex = $index">
- <div ng-repeat="value in innerList" ng-init="innerIndex = $index">
- <span class="example-init">list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};</span>
- </div>
- </div>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should alias index positions', function() {
- var elements = element.all(by.css('.example-init'));
- expect(elements.get(0).getText()).toBe('list[ 0 ][ 0 ] = a;');
- expect(elements.get(1).getText()).toBe('list[ 0 ][ 1 ] = b;');
- expect(elements.get(2).getText()).toBe('list[ 1 ][ 0 ] = c;');
- expect(elements.get(3).getText()).toBe('list[ 1 ][ 1 ] = d;');
- });
- </file>
- </example>
- */
-var ngInitDirective = ngDirective({
- priority: 450,
- compile: function() {
- return {
- pre: function(scope, element, attrs) {
- scope.$eval(attrs.ngInit);
- }
- };
- }
-});
-
-/**
- * @ngdoc directive
- * @name ngList
- *
- * @description
- * Text input that converts between a delimited string and an array of strings. The default
- * delimiter is a comma followed by a space - equivalent to `ng-list=", "`. You can specify a custom
- * delimiter as the value of the `ngList` attribute - for example, `ng-list=" | "`.
- *
- * The behaviour of the directive is affected by the use of the `ngTrim` attribute.
- * * If `ngTrim` is set to `"false"` then whitespace around both the separator and each
- * list item is respected. This implies that the user of the directive is responsible for
- * dealing with whitespace but also allows you to use whitespace as a delimiter, such as a
- * tab or newline character.
- * * Otherwise whitespace around the delimiter is ignored when splitting (although it is respected
- * when joining the list items back together) and whitespace around each list item is stripped
- * before it is added to the model.
- *
- * ### Example with Validation
- *
- * <example name="ngList-directive" module="listExample">
- * <file name="app.js">
- * angular.module('listExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.names = ['morpheus', 'neo', 'trinity'];
- * }]);
- * </file>
- * <file name="index.html">
- * <form name="myForm" ng-controller="ExampleController">
- * <label>List: <input name="namesInput" ng-model="names" ng-list required></label>
- * <span role="alert">
- * <span class="error" ng-show="myForm.namesInput.$error.required">
- * Required!</span>
- * </span>
- * <br>
- * <tt>names = {{names}}</tt><br/>
- * <tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>
- * <tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>
- * <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- * <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- * </form>
- * </file>
- * <file name="protractor.js" type="protractor">
- * var listInput = element(by.model('names'));
- * var names = element(by.exactBinding('names'));
- * var valid = element(by.binding('myForm.namesInput.$valid'));
- * var error = element(by.css('span.error'));
- *
- * it('should initialize to model', function() {
- * expect(names.getText()).toContain('["morpheus","neo","trinity"]');
- * expect(valid.getText()).toContain('true');
- * expect(error.getCssValue('display')).toBe('none');
- * });
- *
- * it('should be invalid if empty', function() {
- * listInput.clear();
- * listInput.sendKeys('');
- *
- * expect(names.getText()).toContain('');
- * expect(valid.getText()).toContain('false');
- * expect(error.getCssValue('display')).not.toBe('none');
- * });
- * </file>
- * </example>
- *
- * ### Example - splitting on newline
- * <example name="ngList-directive-newlines">
- * <file name="index.html">
- * <textarea ng-model="list" ng-list="&#10;" ng-trim="false"></textarea>
- * <pre>{{ list | json }}</pre>
- * </file>
- * <file name="protractor.js" type="protractor">
- * it("should split the text by newlines", function() {
- * var listInput = element(by.model('list'));
- * var output = element(by.binding('list | json'));
- * listInput.sendKeys('abc\ndef\nghi');
- * expect(output.getText()).toContain('[\n "abc",\n "def",\n "ghi"\n]');
- * });
- * </file>
- * </example>
- *
- * @element input
- * @param {string=} ngList optional delimiter that should be used to split the value.
- */
-var ngListDirective = function() {
- return {
- restrict: 'A',
- priority: 100,
- require: 'ngModel',
- link: function(scope, element, attr, ctrl) {
- // We want to control whitespace trimming so we use this convoluted approach
- // to access the ngList attribute, which doesn't pre-trim the attribute
- var ngList = element.attr(attr.$attr.ngList) || ', ';
- var trimValues = attr.ngTrim !== 'false';
- var separator = trimValues ? trim(ngList) : ngList;
-
- var parse = function(viewValue) {
- // If the viewValue is invalid (say required but empty) it will be `undefined`
- if (isUndefined(viewValue)) return;
-
- var list = [];
-
- if (viewValue) {
- forEach(viewValue.split(separator), function(value) {
- if (value) list.push(trimValues ? trim(value) : value);
- });
- }
-
- return list;
- };
-
- ctrl.$parsers.push(parse);
- ctrl.$formatters.push(function(value) {
- if (isArray(value)) {
- return value.join(ngList);
- }
-
- return undefined;
- });
-
- // Override the standard $isEmpty because an empty array means the input is empty.
- ctrl.$isEmpty = function(value) {
- return !value || !value.length;
- };
- }
- };
-};
-
-/* global VALID_CLASS: true,
- INVALID_CLASS: true,
- PRISTINE_CLASS: true,
- DIRTY_CLASS: true,
- UNTOUCHED_CLASS: true,
- TOUCHED_CLASS: true
-*/
-
-var VALID_CLASS = 'ng-valid',
- INVALID_CLASS = 'ng-invalid',
- PRISTINE_CLASS = 'ng-pristine',
- DIRTY_CLASS = 'ng-dirty',
- UNTOUCHED_CLASS = 'ng-untouched',
- TOUCHED_CLASS = 'ng-touched',
- PENDING_CLASS = 'ng-pending',
- EMPTY_CLASS = 'ng-empty',
- NOT_EMPTY_CLASS = 'ng-not-empty';
-
-var ngModelMinErr = minErr('ngModel');
-
-/**
- * @ngdoc type
- * @name ngModel.NgModelController
- *
- * @property {*} $viewValue The actual value from the control's view. For `input` elements, this is a
- * String. See {@link ngModel.NgModelController#$setViewValue} for information about when the $viewValue
- * is set.
- * @property {*} $modelValue The value in the model that the control is bound to.
- * @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever
- the control reads value from the DOM. The functions are called in array order, each passing
- its return value through to the next. The last return value is forwarded to the
- {@link ngModel.NgModelController#$validators `$validators`} collection.
-
-Parsers are used to sanitize / convert the {@link ngModel.NgModelController#$viewValue
-`$viewValue`}.
-
-Returning `undefined` from a parser means a parse error occurred. In that case,
-no {@link ngModel.NgModelController#$validators `$validators`} will run and the `ngModel`
-will be set to `undefined` unless {@link ngModelOptions `ngModelOptions.allowInvalid`}
-is set to `true`. The parse error is stored in `ngModel.$error.parse`.
-
- *
- * @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever
- the model value changes. The functions are called in reverse array order, each passing the value through to the
- next. The last return value is used as the actual DOM value.
- Used to format / convert values for display in the control.
- * ```js
- * function formatter(value) {
- * if (value) {
- * return value.toUpperCase();
- * }
- * }
- * ngModel.$formatters.push(formatter);
- * ```
- *
- * @property {Object.<string, function>} $validators A collection of validators that are applied
- * whenever the model value changes. The key value within the object refers to the name of the
- * validator while the function refers to the validation operation. The validation operation is
- * provided with the model value as an argument and must return a true or false value depending
- * on the response of that validation.
- *
- * ```js
- * ngModel.$validators.validCharacters = function(modelValue, viewValue) {
- * var value = modelValue || viewValue;
- * return /[0-9]+/.test(value) &&
- * /[a-z]+/.test(value) &&
- * /[A-Z]+/.test(value) &&
- * /\W+/.test(value);
- * };
- * ```
- *
- * @property {Object.<string, function>} $asyncValidators A collection of validations that are expected to
- * perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided
- * is expected to return a promise when it is run during the model validation process. Once the promise
- * is delivered then the validation status will be set to true when fulfilled and false when rejected.
- * When the asynchronous validators are triggered, each of the validators will run in parallel and the model
- * value will only be updated once all validators have been fulfilled. As long as an asynchronous validator
- * is unfulfilled, its key will be added to the controllers `$pending` property. Also, all asynchronous validators
- * will only run once all synchronous validators have passed.
- *
- * Please note that if $http is used then it is important that the server returns a success HTTP response code
- * in order to fulfill the validation and a status level of `4xx` in order to reject the validation.
- *
- * ```js
- * ngModel.$asyncValidators.uniqueUsername = function(modelValue, viewValue) {
- * var value = modelValue || viewValue;
- *
- * // Lookup user by username
- * return $http.get('/api/users/' + value).
- * then(function resolved() {
- * //username exists, this means validation fails
- * return $q.reject('exists');
- * }, function rejected() {
- * //username does not exist, therefore this validation passes
- * return true;
- * });
- * };
- * ```
- *
- * @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the
- * view value has changed. It is called with no arguments, and its return value is ignored.
- * This can be used in place of additional $watches against the model value.
- *
- * @property {Object} $error An object hash with all failing validator ids as keys.
- * @property {Object} $pending An object hash with all pending validator ids as keys.
- *
- * @property {boolean} $untouched True if control has not lost focus yet.
- * @property {boolean} $touched True if control has lost focus.
- * @property {boolean} $pristine True if user has not interacted with the control yet.
- * @property {boolean} $dirty True if user has already interacted with the control.
- * @property {boolean} $valid True if there is no error.
- * @property {boolean} $invalid True if at least one error on the control.
- * @property {string} $name The name attribute of the control.
- *
- * @description
- *
- * `NgModelController` provides API for the {@link ngModel `ngModel`} directive.
- * The controller contains services for data-binding, validation, CSS updates, and value formatting
- * and parsing. It purposefully does not contain any logic which deals with DOM rendering or
- * listening to DOM events.
- * Such DOM related logic should be provided by other directives which make use of
- * `NgModelController` for data-binding to control elements.
- * Angular provides this DOM logic for most {@link input `input`} elements.
- * At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example
- * custom control example} that uses `ngModelController` to bind to `contenteditable` elements.
- *
- * @example
- * ### Custom Control Example
- * This example shows how to use `NgModelController` with a custom control to achieve
- * data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)
- * collaborate together to achieve the desired result.
- *
- * `contenteditable` is an HTML5 attribute, which tells the browser to let the element
- * contents be edited in place by the user.
- *
- * We are using the {@link ng.service:$sce $sce} service here and include the {@link ngSanitize $sanitize}
- * module to automatically remove "bad" content like inline event listener (e.g. `<span onclick="...">`).
- * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks
- * that content using the `$sce` service.
- *
- * <example name="NgModelController" module="customControl" deps="angular-sanitize.js">
- <file name="style.css">
- [contenteditable] {
- border: 1px solid black;
- background-color: white;
- min-height: 20px;
- }
-
- .ng-invalid {
- border: 1px solid red;
- }
-
- </file>
- <file name="script.js">
- angular.module('customControl', ['ngSanitize']).
- directive('contenteditable', ['$sce', function($sce) {
- return {
- restrict: 'A', // only activate on element attribute
- require: '?ngModel', // get a hold of NgModelController
- link: function(scope, element, attrs, ngModel) {
- if (!ngModel) return; // do nothing if no ng-model
-
- // Specify how UI should be updated
- ngModel.$render = function() {
- element.html($sce.getTrustedHtml(ngModel.$viewValue || ''));
- };
-
- // Listen for change events to enable binding
- element.on('blur keyup change', function() {
- scope.$evalAsync(read);
- });
- read(); // initialize
-
- // Write data to the model
- function read() {
- var html = element.html();
- // When we clear the content editable the browser leaves a <br> behind
- // If strip-br attribute is provided then we strip this out
- if (attrs.stripBr && html === '<br>') {
- html = '';
- }
- ngModel.$setViewValue(html);
- }
- }
- };
- }]);
- </file>
- <file name="index.html">
- <form name="myForm">
- <div contenteditable
- name="myWidget" ng-model="userContent"
- strip-br="true"
- required>Change me!</div>
- <span ng-show="myForm.myWidget.$error.required">Required!</span>
- <hr>
- <textarea ng-model="userContent" aria-label="Dynamic textarea"></textarea>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- it('should data-bind and become invalid', function() {
- if (browser.params.browser === 'safari' || browser.params.browser === 'firefox') {
- // SafariDriver can't handle contenteditable
- // and Firefox driver can't clear contenteditables very well
- return;
- }
- var contentEditable = element(by.css('[contenteditable]'));
- var content = 'Change me!';
-
- expect(contentEditable.getText()).toEqual(content);
-
- contentEditable.clear();
- contentEditable.sendKeys(protractor.Key.BACK_SPACE);
- expect(contentEditable.getText()).toEqual('');
- expect(contentEditable.getAttribute('class')).toMatch(/ng-invalid-required/);
- });
- </file>
- * </example>
- *
- *
- */
-var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$parse', '$animate', '$timeout', '$rootScope', '$q', '$interpolate',
- /** @this */ function($scope, $exceptionHandler, $attr, $element, $parse, $animate, $timeout, $rootScope, $q, $interpolate) {
- this.$viewValue = Number.NaN;
- this.$modelValue = Number.NaN;
- this.$$rawModelValue = undefined; // stores the parsed modelValue / model set from scope regardless of validity.
- this.$validators = {};
- this.$asyncValidators = {};
- this.$parsers = [];
- this.$formatters = [];
- this.$viewChangeListeners = [];
- this.$untouched = true;
- this.$touched = false;
- this.$pristine = true;
- this.$dirty = false;
- this.$valid = true;
- this.$invalid = false;
- this.$error = {}; // keep invalid keys here
- this.$$success = {}; // keep valid keys here
- this.$pending = undefined; // keep pending keys here
- this.$name = $interpolate($attr.name || '', false)($scope);
- this.$$parentForm = nullFormCtrl;
-
- var parsedNgModel = $parse($attr.ngModel),
- parsedNgModelAssign = parsedNgModel.assign,
- ngModelGet = parsedNgModel,
- ngModelSet = parsedNgModelAssign,
- pendingDebounce = null,
- parserValid,
- ctrl = this;
-
- this.$$setOptions = function(options) {
- ctrl.$options = options;
- if (options && options.getterSetter) {
- var invokeModelGetter = $parse($attr.ngModel + '()'),
- invokeModelSetter = $parse($attr.ngModel + '($$$p)');
-
- ngModelGet = function($scope) {
- var modelValue = parsedNgModel($scope);
- if (isFunction(modelValue)) {
- modelValue = invokeModelGetter($scope);
- }
- return modelValue;
- };
- ngModelSet = function($scope, newValue) {
- if (isFunction(parsedNgModel($scope))) {
- invokeModelSetter($scope, {$$$p: newValue});
- } else {
- parsedNgModelAssign($scope, newValue);
- }
- };
- } else if (!parsedNgModel.assign) {
- throw ngModelMinErr('nonassign', 'Expression \'{0}\' is non-assignable. Element: {1}',
- $attr.ngModel, startingTag($element));
- }
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$render
- *
- * @description
- * Called when the view needs to be updated. It is expected that the user of the ng-model
- * directive will implement this method.
- *
- * The `$render()` method is invoked in the following situations:
- *
- * * `$rollbackViewValue()` is called. If we are rolling back the view value to the last
- * committed value then `$render()` is called to update the input control.
- * * The value referenced by `ng-model` is changed programmatically and both the `$modelValue` and
- * the `$viewValue` are different from last time.
- *
- * Since `ng-model` does not do a deep watch, `$render()` is only invoked if the values of
- * `$modelValue` and `$viewValue` are actually different from their previous values. If `$modelValue`
- * or `$viewValue` are objects (rather than a string or number) then `$render()` will not be
- * invoked if you only change a property on the objects.
- */
- this.$render = noop;
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$isEmpty
- *
- * @description
- * This is called when we need to determine if the value of an input is empty.
- *
- * For instance, the required directive does this to work out if the input has data or not.
- *
- * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`.
- *
- * You can override this for input directives whose concept of being empty is different from the
- * default. The `checkboxInputType` directive does this because in its case a value of `false`
- * implies empty.
- *
- * @param {*} value The value of the input to check for emptiness.
- * @returns {boolean} True if `value` is "empty".
- */
- this.$isEmpty = function(value) {
- // eslint-disable-next-line no-self-compare
- return isUndefined(value) || value === '' || value === null || value !== value;
- };
-
- this.$$updateEmptyClasses = function(value) {
- if (ctrl.$isEmpty(value)) {
- $animate.removeClass($element, NOT_EMPTY_CLASS);
- $animate.addClass($element, EMPTY_CLASS);
- } else {
- $animate.removeClass($element, EMPTY_CLASS);
- $animate.addClass($element, NOT_EMPTY_CLASS);
- }
- };
-
-
- var currentValidationRunId = 0;
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setValidity
- *
- * @description
- * Change the validity state, and notify the form.
- *
- * This method can be called within $parsers/$formatters or a custom validation implementation.
- * However, in most cases it should be sufficient to use the `ngModel.$validators` and
- * `ngModel.$asyncValidators` collections which will call `$setValidity` automatically.
- *
- * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be assigned
- * to either `$error[validationErrorKey]` or `$pending[validationErrorKey]`
- * (for unfulfilled `$asyncValidators`), so that it is available for data-binding.
- * The `validationErrorKey` should be in camelCase and will get converted into dash-case
- * for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`
- * class and can be bound to as `{{someForm.someControl.$error.myError}}` .
- * @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending (undefined),
- * or skipped (null). Pending is used for unfulfilled `$asyncValidators`.
- * Skipped is used by Angular when validators do not run because of parse errors and
- * when `$asyncValidators` do not run because any of the `$validators` failed.
- */
- addSetValidityMethod({
- ctrl: this,
- $element: $element,
- set: function(object, property) {
- object[property] = true;
- },
- unset: function(object, property) {
- delete object[property];
- },
- $animate: $animate
- });
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setPristine
- *
- * @description
- * Sets the control to its pristine state.
- *
- * This method can be called to remove the `ng-dirty` class and set the control to its pristine
- * state (`ng-pristine` class). A model is considered to be pristine when the control
- * has not been changed from when first compiled.
- */
- this.$setPristine = function() {
- ctrl.$dirty = false;
- ctrl.$pristine = true;
- $animate.removeClass($element, DIRTY_CLASS);
- $animate.addClass($element, PRISTINE_CLASS);
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setDirty
- *
- * @description
- * Sets the control to its dirty state.
- *
- * This method can be called to remove the `ng-pristine` class and set the control to its dirty
- * state (`ng-dirty` class). A model is considered to be dirty when the control has been changed
- * from when first compiled.
- */
- this.$setDirty = function() {
- ctrl.$dirty = true;
- ctrl.$pristine = false;
- $animate.removeClass($element, PRISTINE_CLASS);
- $animate.addClass($element, DIRTY_CLASS);
- ctrl.$$parentForm.$setDirty();
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setUntouched
- *
- * @description
- * Sets the control to its untouched state.
- *
- * This method can be called to remove the `ng-touched` class and set the control to its
- * untouched state (`ng-untouched` class). Upon compilation, a model is set as untouched
- * by default, however this function can be used to restore that state if the model has
- * already been touched by the user.
- */
- this.$setUntouched = function() {
- ctrl.$touched = false;
- ctrl.$untouched = true;
- $animate.setClass($element, UNTOUCHED_CLASS, TOUCHED_CLASS);
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setTouched
- *
- * @description
- * Sets the control to its touched state.
- *
- * This method can be called to remove the `ng-untouched` class and set the control to its
- * touched state (`ng-touched` class). A model is considered to be touched when the user has
- * first focused the control element and then shifted focus away from the control (blur event).
- */
- this.$setTouched = function() {
- ctrl.$touched = true;
- ctrl.$untouched = false;
- $animate.setClass($element, TOUCHED_CLASS, UNTOUCHED_CLASS);
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$rollbackViewValue
- *
- * @description
- * Cancel an update and reset the input element's value to prevent an update to the `$modelValue`,
- * which may be caused by a pending debounced event or because the input is waiting for some
- * future event.
- *
- * If you have an input that uses `ng-model-options` to set up debounced updates or updates that
- * depend on special events such as `blur`, there can be a period when the `$viewValue` is out of
- * sync with the ngModel's `$modelValue`.
- *
- * In this case, you can use `$rollbackViewValue()` to manually cancel the debounced / future update
- * and reset the input to the last committed view value.
- *
- * It is also possible that you run into difficulties if you try to update the ngModel's `$modelValue`
- * programmatically before these debounced/future events have resolved/occurred, because Angular's
- * dirty checking mechanism is not able to tell whether the model has actually changed or not.
- *
- * The `$rollbackViewValue()` method should be called before programmatically changing the model of an
- * input which may have such events pending. This is important in order to make sure that the
- * input field will be updated with the new model value and any pending operations are cancelled.
- *
- * <example name="ng-model-cancel-update" module="cancel-update-example">
- * <file name="app.js">
- * angular.module('cancel-update-example', [])
- *
- * .controller('CancelUpdateController', ['$scope', function($scope) {
- * $scope.model = {value1: '', value2: ''};
- *
- * $scope.setEmpty = function(e, value, rollback) {
- * if (e.keyCode === 27) {
- * e.preventDefault();
- * if (rollback) {
- * $scope.myForm[value].$rollbackViewValue();
- * }
- * $scope.model[value] = '';
- * }
- * };
- * }]);
- * </file>
- * <file name="index.html">
- * <div ng-controller="CancelUpdateController">
- * <p>Both of these inputs are only updated if they are blurred. Hitting escape should
- * empty them. Follow these steps and observe the difference:</p>
- * <ol>
- * <li>Type something in the input. You will see that the model is not yet updated</li>
- * <li>Press the Escape key.
- * <ol>
- * <li> In the first example, nothing happens, because the model is already '', and no
- * update is detected. If you blur the input, the model will be set to the current view.
- * </li>
- * <li> In the second example, the pending update is cancelled, and the input is set back
- * to the last committed view value (''). Blurring the input does nothing.
- * </li>
- * </ol>
- * </li>
- * </ol>
- *
- * <form name="myForm" ng-model-options="{ updateOn: 'blur' }">
- * <div>
- * <p id="inputDescription1">Without $rollbackViewValue():</p>
- * <input name="value1" aria-describedby="inputDescription1" ng-model="model.value1"
- * ng-keydown="setEmpty($event, 'value1')">
- * value1: "{{ model.value1 }}"
- * </div>
- *
- * <div>
- * <p id="inputDescription2">With $rollbackViewValue():</p>
- * <input name="value2" aria-describedby="inputDescription2" ng-model="model.value2"
- * ng-keydown="setEmpty($event, 'value2', true)">
- * value2: "{{ model.value2 }}"
- * </div>
- * </form>
- * </div>
- * </file>
- <file name="style.css">
- div {
- display: table-cell;
- }
- div:nth-child(1) {
- padding-right: 30px;
- }
-
- </file>
- * </example>
- */
- this.$rollbackViewValue = function() {
- $timeout.cancel(pendingDebounce);
- ctrl.$viewValue = ctrl.$$lastCommittedViewValue;
- ctrl.$render();
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$validate
- *
- * @description
- * Runs each of the registered validators (first synchronous validators and then
- * asynchronous validators).
- * If the validity changes to invalid, the model will be set to `undefined`,
- * unless {@link ngModelOptions `ngModelOptions.allowInvalid`} is `true`.
- * If the validity changes to valid, it will set the model to the last available valid
- * `$modelValue`, i.e. either the last parsed value or the last value set from the scope.
- */
- this.$validate = function() {
- // ignore $validate before model is initialized
- if (isNumberNaN(ctrl.$modelValue)) {
- return;
- }
-
- var viewValue = ctrl.$$lastCommittedViewValue;
- // Note: we use the $$rawModelValue as $modelValue might have been
- // set to undefined during a view -> model update that found validation
- // errors. We can't parse the view here, since that could change
- // the model although neither viewValue nor the model on the scope changed
- var modelValue = ctrl.$$rawModelValue;
-
- var prevValid = ctrl.$valid;
- var prevModelValue = ctrl.$modelValue;
-
- var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;
-
- ctrl.$$runValidators(modelValue, viewValue, function(allValid) {
- // If there was no change in validity, don't update the model
- // This prevents changing an invalid modelValue to undefined
- if (!allowInvalid && prevValid !== allValid) {
- // Note: Don't check ctrl.$valid here, as we could have
- // external validators (e.g. calculated on the server),
- // that just call $setValidity and need the model value
- // to calculate their validity.
- ctrl.$modelValue = allValid ? modelValue : undefined;
-
- if (ctrl.$modelValue !== prevModelValue) {
- ctrl.$$writeModelToScope();
- }
- }
- });
-
- };
-
- this.$$runValidators = function(modelValue, viewValue, doneCallback) {
- currentValidationRunId++;
- var localValidationRunId = currentValidationRunId;
-
- // check parser error
- if (!processParseErrors()) {
- validationDone(false);
- return;
- }
- if (!processSyncValidators()) {
- validationDone(false);
- return;
- }
- processAsyncValidators();
-
- function processParseErrors() {
- var errorKey = ctrl.$$parserName || 'parse';
- if (isUndefined(parserValid)) {
- setValidity(errorKey, null);
- } else {
- if (!parserValid) {
- forEach(ctrl.$validators, function(v, name) {
- setValidity(name, null);
- });
- forEach(ctrl.$asyncValidators, function(v, name) {
- setValidity(name, null);
- });
- }
- // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
- setValidity(errorKey, parserValid);
- return parserValid;
- }
- return true;
- }
-
- function processSyncValidators() {
- var syncValidatorsValid = true;
- forEach(ctrl.$validators, function(validator, name) {
- var result = validator(modelValue, viewValue);
- syncValidatorsValid = syncValidatorsValid && result;
- setValidity(name, result);
- });
- if (!syncValidatorsValid) {
- forEach(ctrl.$asyncValidators, function(v, name) {
- setValidity(name, null);
- });
- return false;
- }
- return true;
- }
-
- function processAsyncValidators() {
- var validatorPromises = [];
- var allValid = true;
- forEach(ctrl.$asyncValidators, function(validator, name) {
- var promise = validator(modelValue, viewValue);
- if (!isPromiseLike(promise)) {
- throw ngModelMinErr('nopromise',
- 'Expected asynchronous validator to return a promise but got \'{0}\' instead.', promise);
- }
- setValidity(name, undefined);
- validatorPromises.push(promise.then(function() {
- setValidity(name, true);
- }, function() {
- allValid = false;
- setValidity(name, false);
- }));
- });
- if (!validatorPromises.length) {
- validationDone(true);
- } else {
- $q.all(validatorPromises).then(function() {
- validationDone(allValid);
- }, noop);
- }
- }
-
- function setValidity(name, isValid) {
- if (localValidationRunId === currentValidationRunId) {
- ctrl.$setValidity(name, isValid);
- }
- }
-
- function validationDone(allValid) {
- if (localValidationRunId === currentValidationRunId) {
-
- doneCallback(allValid);
- }
- }
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$commitViewValue
- *
- * @description
- * Commit a pending update to the `$modelValue`.
- *
- * Updates may be pending by a debounced event or because the input is waiting for a some future
- * event defined in `ng-model-options`. this method is rarely needed as `NgModelController`
- * usually handles calling this in response to input events.
- */
- this.$commitViewValue = function() {
- var viewValue = ctrl.$viewValue;
-
- $timeout.cancel(pendingDebounce);
-
- // If the view value has not changed then we should just exit, except in the case where there is
- // a native validator on the element. In this case the validation state may have changed even though
- // the viewValue has stayed empty.
- if (ctrl.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !ctrl.$$hasNativeValidators)) {
- return;
- }
- ctrl.$$updateEmptyClasses(viewValue);
- ctrl.$$lastCommittedViewValue = viewValue;
-
- // change to dirty
- if (ctrl.$pristine) {
- this.$setDirty();
- }
- this.$$parseAndValidate();
- };
-
- this.$$parseAndValidate = function() {
- var viewValue = ctrl.$$lastCommittedViewValue;
- var modelValue = viewValue;
- parserValid = isUndefined(modelValue) ? undefined : true;
-
- if (parserValid) {
- for (var i = 0; i < ctrl.$parsers.length; i++) {
- modelValue = ctrl.$parsers[i](modelValue);
- if (isUndefined(modelValue)) {
- parserValid = false;
- break;
- }
- }
- }
- if (isNumberNaN(ctrl.$modelValue)) {
- // ctrl.$modelValue has not been touched yet...
- ctrl.$modelValue = ngModelGet($scope);
- }
- var prevModelValue = ctrl.$modelValue;
- var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;
- ctrl.$$rawModelValue = modelValue;
-
- if (allowInvalid) {
- ctrl.$modelValue = modelValue;
- writeToModelIfNeeded();
- }
-
- // Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.
- // This can happen if e.g. $setViewValue is called from inside a parser
- ctrl.$$runValidators(modelValue, ctrl.$$lastCommittedViewValue, function(allValid) {
- if (!allowInvalid) {
- // Note: Don't check ctrl.$valid here, as we could have
- // external validators (e.g. calculated on the server),
- // that just call $setValidity and need the model value
- // to calculate their validity.
- ctrl.$modelValue = allValid ? modelValue : undefined;
- writeToModelIfNeeded();
- }
- });
-
- function writeToModelIfNeeded() {
- if (ctrl.$modelValue !== prevModelValue) {
- ctrl.$$writeModelToScope();
- }
- }
- };
-
- this.$$writeModelToScope = function() {
- ngModelSet($scope, ctrl.$modelValue);
- forEach(ctrl.$viewChangeListeners, function(listener) {
- try {
- listener();
- } catch (e) {
- $exceptionHandler(e);
- }
- });
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setViewValue
- *
- * @description
- * Update the view value.
- *
- * This method should be called when a control wants to change the view value; typically,
- * this is done from within a DOM event handler. For example, the {@link ng.directive:input input}
- * directive calls it when the value of the input changes and {@link ng.directive:select select}
- * calls it when an option is selected.
- *
- * When `$setViewValue` is called, the new `value` will be staged for committing through the `$parsers`
- * and `$validators` pipelines. If there are no special {@link ngModelOptions} specified then the staged
- * value sent directly for processing, finally to be applied to `$modelValue` and then the
- * **expression** specified in the `ng-model` attribute. Lastly, all the registered change listeners,
- * in the `$viewChangeListeners` list, are called.
- *
- * In case the {@link ng.directive:ngModelOptions ngModelOptions} directive is used with `updateOn`
- * and the `default` trigger is not listed, all those actions will remain pending until one of the
- * `updateOn` events is triggered on the DOM element.
- * All these actions will be debounced if the {@link ng.directive:ngModelOptions ngModelOptions}
- * directive is used with a custom debounce for this particular event.
- * Note that a `$digest` is only triggered once the `updateOn` events are fired, or if `debounce`
- * is specified, once the timer runs out.
- *
- * When used with standard inputs, the view value will always be a string (which is in some cases
- * parsed into another type, such as a `Date` object for `input[date]`.)
- * However, custom controls might also pass objects to this method. In this case, we should make
- * a copy of the object before passing it to `$setViewValue`. This is because `ngModel` does not
- * perform a deep watch of objects, it only looks for a change of identity. If you only change
- * the property of the object then ngModel will not realize that the object has changed and
- * will not invoke the `$parsers` and `$validators` pipelines. For this reason, you should
- * not change properties of the copy once it has been passed to `$setViewValue`.
- * Otherwise you may cause the model value on the scope to change incorrectly.
- *
- * <div class="alert alert-info">
- * In any case, the value passed to the method should always reflect the current value
- * of the control. For example, if you are calling `$setViewValue` for an input element,
- * you should pass the input DOM value. Otherwise, the control and the scope model become
- * out of sync. It's also important to note that `$setViewValue` does not call `$render` or change
- * the control's DOM value in any way. If we want to change the control's DOM value
- * programmatically, we should update the `ngModel` scope expression. Its new value will be
- * picked up by the model controller, which will run it through the `$formatters`, `$render` it
- * to update the DOM, and finally call `$validate` on it.
- * </div>
- *
- * @param {*} value value from the view.
- * @param {string} trigger Event that triggered the update.
- */
- this.$setViewValue = function(value, trigger) {
- ctrl.$viewValue = value;
- if (!ctrl.$options || ctrl.$options.updateOnDefault) {
- ctrl.$$debounceViewValueCommit(trigger);
- }
- };
-
- this.$$debounceViewValueCommit = function(trigger) {
- var debounceDelay = 0,
- options = ctrl.$options,
- debounce;
-
- if (options && isDefined(options.debounce)) {
- debounce = options.debounce;
- if (isNumber(debounce)) {
- debounceDelay = debounce;
- } else if (isNumber(debounce[trigger])) {
- debounceDelay = debounce[trigger];
- } else if (isNumber(debounce['default'])) {
- debounceDelay = debounce['default'];
- }
- }
-
- $timeout.cancel(pendingDebounce);
- if (debounceDelay) {
- pendingDebounce = $timeout(function() {
- ctrl.$commitViewValue();
- }, debounceDelay);
- } else if ($rootScope.$$phase) {
- ctrl.$commitViewValue();
- } else {
- $scope.$apply(function() {
- ctrl.$commitViewValue();
- });
- }
- };
-
- // model -> value
- // Note: we cannot use a normal scope.$watch as we want to detect the following:
- // 1. scope value is 'a'
- // 2. user enters 'b'
- // 3. ng-change kicks in and reverts scope value to 'a'
- // -> scope value did not change since the last digest as
- // ng-change executes in apply phase
- // 4. view should be changed back to 'a'
- $scope.$watch(function ngModelWatch() {
- var modelValue = ngModelGet($scope);
-
- // if scope model value and ngModel value are out of sync
- // TODO(perf): why not move this to the action fn?
- if (modelValue !== ctrl.$modelValue &&
- // checks for NaN is needed to allow setting the model to NaN when there's an asyncValidator
- // eslint-disable-next-line no-self-compare
- (ctrl.$modelValue === ctrl.$modelValue || modelValue === modelValue)
- ) {
- ctrl.$modelValue = ctrl.$$rawModelValue = modelValue;
- parserValid = undefined;
-
- var formatters = ctrl.$formatters,
- idx = formatters.length;
-
- var viewValue = modelValue;
- while (idx--) {
- viewValue = formatters[idx](viewValue);
- }
- if (ctrl.$viewValue !== viewValue) {
- ctrl.$$updateEmptyClasses(viewValue);
- ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;
- ctrl.$render();
-
- // It is possible that model and view value have been updated during render
- ctrl.$$runValidators(ctrl.$modelValue, ctrl.$viewValue, noop);
- }
- }
-
- return modelValue;
- });
-}];
-
-
-/**
- * @ngdoc directive
- * @name ngModel
- *
- * @element input
- * @priority 1
- *
- * @description
- * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a
- * property on the scope using {@link ngModel.NgModelController NgModelController},
- * which is created and exposed by this directive.
- *
- * `ngModel` is responsible for:
- *
- * - Binding the view into the model, which other directives such as `input`, `textarea` or `select`
- * require.
- * - Providing validation behavior (i.e. required, number, email, url).
- * - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).
- * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`,
- * `ng-untouched`, `ng-empty`, `ng-not-empty`) including animations.
- * - Registering the control with its parent {@link ng.directive:form form}.
- *
- * Note: `ngModel` will try to bind to the property given by evaluating the expression on the
- * current scope. If the property doesn't already exist on this scope, it will be created
- * implicitly and added to the scope.
- *
- * For best practices on using `ngModel`, see:
- *
- * - [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)
- *
- * For basic examples, how to use `ngModel`, see:
- *
- * - {@link ng.directive:input input}
- * - {@link input[text] text}
- * - {@link input[checkbox] checkbox}
- * - {@link input[radio] radio}
- * - {@link input[number] number}
- * - {@link input[email] email}
- * - {@link input[url] url}
- * - {@link input[date] date}
- * - {@link input[datetime-local] datetime-local}
- * - {@link input[time] time}
- * - {@link input[month] month}
- * - {@link input[week] week}
- * - {@link ng.directive:select select}
- * - {@link ng.directive:textarea textarea}
- *
- * # Complex Models (objects or collections)
- *
- * By default, `ngModel` watches the model by reference, not value. This is important to know when
- * binding inputs to models that are objects (e.g. `Date`) or collections (e.g. arrays). If only properties of the
- * object or collection change, `ngModel` will not be notified and so the input will not be re-rendered.
- *
- * The model must be assigned an entirely new object or collection before a re-rendering will occur.
- *
- * Some directives have options that will cause them to use a custom `$watchCollection` on the model expression
- * - for example, `ngOptions` will do so when a `track by` clause is included in the comprehension expression or
- * if the select is given the `multiple` attribute.
- *
- * The `$watchCollection()` method only does a shallow comparison, meaning that changing properties deeper than the
- * first level of the object (or only changing the properties of an item in the collection if it's an array) will still
- * not trigger a re-rendering of the model.
- *
- * # CSS classes
- * The following CSS classes are added and removed on the associated input/select/textarea element
- * depending on the validity of the model.
- *
- * - `ng-valid`: the model is valid
- * - `ng-invalid`: the model is invalid
- * - `ng-valid-[key]`: for each valid key added by `$setValidity`
- * - `ng-invalid-[key]`: for each invalid key added by `$setValidity`
- * - `ng-pristine`: the control hasn't been interacted with yet
- * - `ng-dirty`: the control has been interacted with
- * - `ng-touched`: the control has been blurred
- * - `ng-untouched`: the control hasn't been blurred
- * - `ng-pending`: any `$asyncValidators` are unfulfilled
- * - `ng-empty`: the view does not contain a value or the value is deemed "empty", as defined
- * by the {@link ngModel.NgModelController#$isEmpty} method
- * - `ng-not-empty`: the view contains a non-empty value
- *
- * Keep in mind that ngAnimate can detect each of these classes when added and removed.
- *
- * ## Animation Hooks
- *
- * Animations within models are triggered when any of the associated CSS classes are added and removed
- * on the input element which is attached to the model. These classes include: `.ng-pristine`, `.ng-dirty`,
- * `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.
- * The animations that are triggered within ngModel are similar to how they work in ngClass and
- * animations can be hooked into using CSS transitions, keyframes as well as JS animations.
- *
- * The following example shows a simple way to utilize CSS transitions to style an input element
- * that has been rendered as invalid after it has been validated:
- *
- * <pre>
- * //be sure to include ngAnimate as a module to hook into more
- * //advanced animations
- * .my-input {
- * transition:0.5s linear all;
- * background: white;
- * }
- * .my-input.ng-invalid {
- * background: red;
- * color:white;
- * }
- * </pre>
- *
- * @example
- * <example deps="angular-animate.js" animations="true" fixBase="true" module="inputExample" name="ng-model">
- <file name="index.html">
- <script>
- angular.module('inputExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.val = '1';
- }]);
- </script>
- <style>
- .my-input {
- transition:all linear 0.5s;
- background: transparent;
- }
- .my-input.ng-invalid {
- color:white;
- background: red;
- }
- </style>
- <p id="inputDescription">
- Update input to see transitions when valid/invalid.
- Integer is a valid value.
- </p>
- <form name="testForm" ng-controller="ExampleController">
- <input ng-model="val" ng-pattern="/^\d+$/" name="anim" class="my-input"
- aria-describedby="inputDescription" />
- </form>
- </file>
- * </example>
- *
- * ## Binding to a getter/setter
- *
- * Sometimes it's helpful to bind `ngModel` to a getter/setter function. A getter/setter is a
- * function that returns a representation of the model when called with zero arguments, and sets
- * the internal state of a model when called with an argument. It's sometimes useful to use this
- * for models that have an internal representation that's different from what the model exposes
- * to the view.
- *
- * <div class="alert alert-success">
- * **Best Practice:** It's best to keep getters fast because Angular is likely to call them more
- * frequently than other parts of your code.
- * </div>
- *
- * You use this behavior by adding `ng-model-options="{ getterSetter: true }"` to an element that
- * has `ng-model` attached to it. You can also add `ng-model-options="{ getterSetter: true }"` to
- * a `<form>`, which will enable this behavior for all `<input>`s within it. See
- * {@link ng.directive:ngModelOptions `ngModelOptions`} for more.
- *
- * The following example shows how to use `ngModel` with a getter/setter:
- *
- * @example
- * <example name="ngModel-getter-setter" module="getterSetterExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form name="userForm">
- <label>Name:
- <input type="text" name="userName"
- ng-model="user.name"
- ng-model-options="{ getterSetter: true }" />
- </label>
- </form>
- <pre>user.name = <span ng-bind="user.name()"></span></pre>
- </div>
- </file>
- <file name="app.js">
- angular.module('getterSetterExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- var _name = 'Brian';
- $scope.user = {
- name: function(newName) {
- // Note that newName can be undefined for two reasons:
- // 1. Because it is called as a getter and thus called with no arguments
- // 2. Because the property should actually be set to undefined. This happens e.g. if the
- // input is invalid
- return arguments.length ? (_name = newName) : _name;
- }
- };
- }]);
- </file>
- * </example>
- */
-var ngModelDirective = ['$rootScope', function($rootScope) {
- return {
- restrict: 'A',
- require: ['ngModel', '^?form', '^?ngModelOptions'],
- controller: NgModelController,
- // Prelink needs to run before any input directive
- // so that we can set the NgModelOptions in NgModelController
- // before anyone else uses it.
- priority: 1,
- compile: function ngModelCompile(element) {
- // Setup initial state of the control
- element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);
-
- return {
- pre: function ngModelPreLink(scope, element, attr, ctrls) {
- var modelCtrl = ctrls[0],
- formCtrl = ctrls[1] || modelCtrl.$$parentForm;
-
- modelCtrl.$$setOptions(ctrls[2] && ctrls[2].$options);
-
- // notify others, especially parent forms
- formCtrl.$addControl(modelCtrl);
-
- attr.$observe('name', function(newValue) {
- if (modelCtrl.$name !== newValue) {
- modelCtrl.$$parentForm.$$renameControl(modelCtrl, newValue);
- }
- });
-
- scope.$on('$destroy', function() {
- modelCtrl.$$parentForm.$removeControl(modelCtrl);
- });
- },
- post: function ngModelPostLink(scope, element, attr, ctrls) {
- var modelCtrl = ctrls[0];
- if (modelCtrl.$options && modelCtrl.$options.updateOn) {
- element.on(modelCtrl.$options.updateOn, function(ev) {
- modelCtrl.$$debounceViewValueCommit(ev && ev.type);
- });
- }
-
- element.on('blur', function() {
- if (modelCtrl.$touched) return;
-
- if ($rootScope.$$phase) {
- scope.$evalAsync(modelCtrl.$setTouched);
- } else {
- scope.$apply(modelCtrl.$setTouched);
- }
- });
- }
- };
- }
- };
-}];
-
-
-
-var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
-
-/**
- * @ngdoc directive
- * @name ngModelOptions
- *
- * @description
- * Allows tuning how model updates are done. Using `ngModelOptions` you can specify a custom list of
- * events that will trigger a model update and/or a debouncing delay so that the actual update only
- * takes place when a timer expires; this timer will be reset after another change takes place.
- *
- * Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might
- * be different from the value in the actual model. This means that if you update the model you
- * should also invoke {@link ngModel.NgModelController `$rollbackViewValue`} on the relevant input field in
- * order to make sure it is synchronized with the model and that any debounced action is canceled.
- *
- * The easiest way to reference the control's {@link ngModel.NgModelController `$rollbackViewValue`}
- * method is by making sure the input is placed inside a form that has a `name` attribute. This is
- * important because `form` controllers are published to the related scope under the name in their
- * `name` attribute.
- *
- * Any pending changes will take place immediately when an enclosing form is submitted via the
- * `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
- * to have access to the updated model.
- *
- * `ngModelOptions` has an effect on the element it's declared on and its descendants.
- *
- * @param {Object} ngModelOptions options to apply to the current model. Valid keys are:
- * - `updateOn`: string specifying which event should the input be bound to. You can set several
- * events using an space delimited list. There is a special event called `default` that
- * matches the default events belonging of the control.
- * - `debounce`: integer value which contains the debounce model update value in milliseconds. A
- * value of 0 triggers an immediate update. If an object is supplied instead, you can specify a
- * custom value for each event. For example:
- * `ng-model-options="{ updateOn: 'default blur', debounce: { 'default': 500, 'blur': 0 } }"`
- * - `allowInvalid`: boolean value which indicates that the model can be set with values that did
- * not validate correctly instead of the default behavior of setting the model to undefined.
- * - `getterSetter`: boolean value which determines whether or not to treat functions bound to
- `ngModel` as getters/setters.
- * - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for
- * `<input type="date">`, `<input type="time">`, ... . It understands UTC/GMT and the
- * continental US time zone abbreviations, but for general use, use a time zone offset, for
- * example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
- * If not specified, the timezone of the browser will be used.
- *
- * @example
-
- The following example shows how to override immediate updates. Changes on the inputs within the
- form will update the model only when the control loses focus (blur event). If `escape` key is
- pressed while the input field is focused, the value is reset to the value in the current model.
-
- <example name="ngModelOptions-directive-blur" module="optionsExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form name="userForm">
- <label>Name:
- <input type="text" name="userName"
- ng-model="user.name"
- ng-model-options="{ updateOn: 'blur' }"
- ng-keyup="cancel($event)" />
- </label><br />
- <label>Other data:
- <input type="text" ng-model="user.data" />
- </label><br />
- </form>
- <pre>user.name = <span ng-bind="user.name"></span></pre>
- <pre>user.data = <span ng-bind="user.data"></span></pre>
- </div>
- </file>
- <file name="app.js">
- angular.module('optionsExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.user = { name: 'John', data: '' };
-
- $scope.cancel = function(e) {
- if (e.keyCode === 27) {
- $scope.userForm.userName.$rollbackViewValue();
- }
- };
- }]);
- </file>
- <file name="protractor.js" type="protractor">
- var model = element(by.binding('user.name'));
- var input = element(by.model('user.name'));
- var other = element(by.model('user.data'));
-
- it('should allow custom events', function() {
- input.sendKeys(' Doe');
- input.click();
- expect(model.getText()).toEqual('John');
- other.click();
- expect(model.getText()).toEqual('John Doe');
- });
-
- it('should $rollbackViewValue when model changes', function() {
- input.sendKeys(' Doe');
- expect(input.getAttribute('value')).toEqual('John Doe');
- input.sendKeys(protractor.Key.ESCAPE);
- expect(input.getAttribute('value')).toEqual('John');
- other.click();
- expect(model.getText()).toEqual('John');
- });
- </file>
- </example>
-
- This one shows how to debounce model changes. Model will be updated only 1 sec after last change.
- If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.
-
- <example name="ngModelOptions-directive-debounce" module="optionsExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form name="userForm">
- <label>Name:
- <input type="text" name="userName"
- ng-model="user.name"
- ng-model-options="{ debounce: 1000 }" />
- </label>
- <button ng-click="userForm.userName.$rollbackViewValue(); user.name=''">Clear</button>
- <br />
- </form>
- <pre>user.name = <span ng-bind="user.name"></span></pre>
- </div>
- </file>
- <file name="app.js">
- angular.module('optionsExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.user = { name: 'Igor' };
- }]);
- </file>
- </example>
-
- This one shows how to bind to getter/setters:
-
- <example name="ngModelOptions-directive-getter-setter" module="getterSetterExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form name="userForm">
- <label>Name:
- <input type="text" name="userName"
- ng-model="user.name"
- ng-model-options="{ getterSetter: true }" />
- </label>
- </form>
- <pre>user.name = <span ng-bind="user.name()"></span></pre>
- </div>
- </file>
- <file name="app.js">
- angular.module('getterSetterExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- var _name = 'Brian';
- $scope.user = {
- name: function(newName) {
- // Note that newName can be undefined for two reasons:
- // 1. Because it is called as a getter and thus called with no arguments
- // 2. Because the property should actually be set to undefined. This happens e.g. if the
- // input is invalid
- return arguments.length ? (_name = newName) : _name;
- }
- };
- }]);
- </file>
- </example>
- */
-var ngModelOptionsDirective = function() {
- return {
- restrict: 'A',
- controller: ['$scope', '$attrs', function NgModelOptionsController($scope, $attrs) {
- var that = this;
- this.$options = copy($scope.$eval($attrs.ngModelOptions));
- // Allow adding/overriding bound events
- if (isDefined(this.$options.updateOn)) {
- this.$options.updateOnDefault = false;
- // extract "default" pseudo-event from list of events that can trigger a model update
- this.$options.updateOn = trim(this.$options.updateOn.replace(DEFAULT_REGEXP, function() {
- that.$options.updateOnDefault = true;
- return ' ';
- }));
- } else {
- this.$options.updateOnDefault = true;
- }
- }]
- };
-};
-
-
-
-// helper methods
-function addSetValidityMethod(context) {
- var ctrl = context.ctrl,
- $element = context.$element,
- classCache = {},
- set = context.set,
- unset = context.unset,
- $animate = context.$animate;
-
- classCache[INVALID_CLASS] = !(classCache[VALID_CLASS] = $element.hasClass(VALID_CLASS));
-
- ctrl.$setValidity = setValidity;
-
- function setValidity(validationErrorKey, state, controller) {
- if (isUndefined(state)) {
- createAndSet('$pending', validationErrorKey, controller);
- } else {
- unsetAndCleanup('$pending', validationErrorKey, controller);
- }
- if (!isBoolean(state)) {
- unset(ctrl.$error, validationErrorKey, controller);
- unset(ctrl.$$success, validationErrorKey, controller);
- } else {
- if (state) {
- unset(ctrl.$error, validationErrorKey, controller);
- set(ctrl.$$success, validationErrorKey, controller);
- } else {
- set(ctrl.$error, validationErrorKey, controller);
- unset(ctrl.$$success, validationErrorKey, controller);
- }
- }
- if (ctrl.$pending) {
- cachedToggleClass(PENDING_CLASS, true);
- ctrl.$valid = ctrl.$invalid = undefined;
- toggleValidationCss('', null);
- } else {
- cachedToggleClass(PENDING_CLASS, false);
- ctrl.$valid = isObjectEmpty(ctrl.$error);
- ctrl.$invalid = !ctrl.$valid;
- toggleValidationCss('', ctrl.$valid);
- }
-
- // re-read the state as the set/unset methods could have
- // combined state in ctrl.$error[validationError] (used for forms),
- // where setting/unsetting only increments/decrements the value,
- // and does not replace it.
- var combinedState;
- if (ctrl.$pending && ctrl.$pending[validationErrorKey]) {
- combinedState = undefined;
- } else if (ctrl.$error[validationErrorKey]) {
- combinedState = false;
- } else if (ctrl.$$success[validationErrorKey]) {
- combinedState = true;
- } else {
- combinedState = null;
- }
-
- toggleValidationCss(validationErrorKey, combinedState);
- ctrl.$$parentForm.$setValidity(validationErrorKey, combinedState, ctrl);
- }
-
- function createAndSet(name, value, controller) {
- if (!ctrl[name]) {
- ctrl[name] = {};
- }
- set(ctrl[name], value, controller);
- }
-
- function unsetAndCleanup(name, value, controller) {
- if (ctrl[name]) {
- unset(ctrl[name], value, controller);
- }
- if (isObjectEmpty(ctrl[name])) {
- ctrl[name] = undefined;
- }
- }
-
- function cachedToggleClass(className, switchValue) {
- if (switchValue && !classCache[className]) {
- $animate.addClass($element, className);
- classCache[className] = true;
- } else if (!switchValue && classCache[className]) {
- $animate.removeClass($element, className);
- classCache[className] = false;
- }
- }
-
- function toggleValidationCss(validationErrorKey, isValid) {
- validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
-
- cachedToggleClass(VALID_CLASS + validationErrorKey, isValid === true);
- cachedToggleClass(INVALID_CLASS + validationErrorKey, isValid === false);
- }
-}
-
-function isObjectEmpty(obj) {
- if (obj) {
- for (var prop in obj) {
- if (obj.hasOwnProperty(prop)) {
- return false;
- }
- }
- }
- return true;
-}
-
-/**
- * @ngdoc directive
- * @name ngNonBindable
- * @restrict AC
- * @priority 1000
- *
- * @description
- * The `ngNonBindable` directive tells Angular not to compile or bind the contents of the current
- * DOM element. This is useful if the element contains what appears to be Angular directives and
- * bindings but which should be ignored by Angular. This could be the case if you have a site that
- * displays snippets of code, for instance.
- *
- * @element ANY
- *
- * @example
- * In this example there are two locations where a simple interpolation binding (`{{}}`) is present,
- * but the one wrapped in `ngNonBindable` is left alone.
- *
- * @example
- <example name="ng-non-bindable">
- <file name="index.html">
- <div>Normal: {{1 + 2}}</div>
- <div ng-non-bindable>Ignored: {{1 + 2}}</div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-non-bindable', function() {
- expect(element(by.binding('1 + 2')).getText()).toContain('3');
- expect(element.all(by.css('div')).last().getText()).toMatch(/1 \+ 2/);
- });
- </file>
- </example>
- */
-var ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 });
-
-/* exported ngOptionsDirective */
-
-/* global jqLiteRemove */
-
-var ngOptionsMinErr = minErr('ngOptions');
-
-/**
- * @ngdoc directive
- * @name ngOptions
- * @restrict A
- *
- * @description
- *
- * The `ngOptions` attribute can be used to dynamically generate a list of `<option>`
- * elements for the `<select>` element using the array or object obtained by evaluating the
- * `ngOptions` comprehension expression.
- *
- * In many cases, {@link ng.directive:ngRepeat ngRepeat} can be used on `<option>` elements
- * instead of `ngOptions` to achieve a similar result.
- * However, `ngOptions` provides some benefits such as reducing memory and
- * increasing speed by not creating a new scope for each repeated instance, as well as providing
- * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
- * comprehension expression. `ngOptions` should be used when the `<select>` model needs to be bound
- * to a non-string value. This is because an option element can only be bound to string values at
- * present.
- *
- * When an item in the `<select>` menu is selected, the array element or object property
- * represented by the selected option will be bound to the model identified by the `ngModel`
- * directive.
- *
- * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
- * be nested into the `<select>` element. This element will then represent the `null` or "not selected"
- * option. See example below for demonstration.
- *
- * ## Complex Models (objects or collections)
- *
- * By default, `ngModel` watches the model by reference, not value. This is important to know when
- * binding the select to a model that is an object or a collection.
- *
- * One issue occurs if you want to preselect an option. For example, if you set
- * the model to an object that is equal to an object in your collection, `ngOptions` won't be able to set the selection,
- * because the objects are not identical. So by default, you should always reference the item in your collection
- * for preselections, e.g.: `$scope.selected = $scope.collection[3]`.
- *
- * Another solution is to use a `track by` clause, because then `ngOptions` will track the identity
- * of the item not by reference, but by the result of the `track by` expression. For example, if your
- * collection items have an id property, you would `track by item.id`.
- *
- * A different issue with objects or collections is that ngModel won't detect if an object property or
- * a collection item changes. For that reason, `ngOptions` additionally watches the model using
- * `$watchCollection`, when the expression contains a `track by` clause or the the select has the `multiple` attribute.
- * This allows ngOptions to trigger a re-rendering of the options even if the actual object/collection
- * has not changed identity, but only a property on the object or an item in the collection changes.
- *
- * Note that `$watchCollection` does a shallow comparison of the properties of the object (or the items in the collection
- * if the model is an array). This means that changing a property deeper than the first level inside the
- * object/collection will not trigger a re-rendering.
- *
- * ## `select` **`as`**
- *
- * Using `select` **`as`** will bind the result of the `select` expression to the model, but
- * the value of the `<select>` and `<option>` html elements will be either the index (for array data sources)
- * or property name (for object data sources) of the value within the collection. If a **`track by`** expression
- * is used, the result of that expression will be set as the value of the `option` and `select` elements.
- *
- *
- * ### `select` **`as`** and **`track by`**
- *
- * <div class="alert alert-warning">
- * Be careful when using `select` **`as`** and **`track by`** in the same expression.
- * </div>
- *
- * Given this array of items on the $scope:
- *
- * ```js
- * $scope.items = [{
- * id: 1,
- * label: 'aLabel',
- * subItem: { name: 'aSubItem' }
- * }, {
- * id: 2,
- * label: 'bLabel',
- * subItem: { name: 'bSubItem' }
- * }];
- * ```
- *
- * This will work:
- *
- * ```html
- * <select ng-options="item as item.label for item in items track by item.id" ng-model="selected"></select>
- * ```
- * ```js
- * $scope.selected = $scope.items[0];
- * ```
- *
- * but this will not work:
- *
- * ```html
- * <select ng-options="item.subItem as item.label for item in items track by item.id" ng-model="selected"></select>
- * ```
- * ```js
- * $scope.selected = $scope.items[0].subItem;
- * ```
- *
- * In both examples, the **`track by`** expression is applied successfully to each `item` in the
- * `items` array. Because the selected option has been set programmatically in the controller, the
- * **`track by`** expression is also applied to the `ngModel` value. In the first example, the
- * `ngModel` value is `items[0]` and the **`track by`** expression evaluates to `items[0].id` with
- * no issue. In the second example, the `ngModel` value is `items[0].subItem` and the **`track by`**
- * expression evaluates to `items[0].subItem.id` (which is undefined). As a result, the model value
- * is not matched against any `<option>` and the `<select>` appears as having no selected value.
- *
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required The control is considered valid only if value is entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {comprehension_expression=} ngOptions in one of the following forms:
- *
- * * for array data sources:
- * * `label` **`for`** `value` **`in`** `array`
- * * `select` **`as`** `label` **`for`** `value` **`in`** `array`
- * * `label` **`group by`** `group` **`for`** `value` **`in`** `array`
- * * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array`
- * * `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
- * * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
- * * `label` **`for`** `value` **`in`** `array` | orderBy:`orderexpr` **`track by`** `trackexpr`
- * (for including a filter with `track by`)
- * * for object data sources:
- * * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
- * * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
- * * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`
- * * `label` **`disable when`** `disable` **`for (`**`key`**`,`** `value`**`) in`** `object`
- * * `select` **`as`** `label` **`group by`** `group`
- * **`for` `(`**`key`**`,`** `value`**`) in`** `object`
- * * `select` **`as`** `label` **`disable when`** `disable`
- * **`for` `(`**`key`**`,`** `value`**`) in`** `object`
- *
- * Where:
- *
- * * `array` / `object`: an expression which evaluates to an array / object to iterate over.
- * * `value`: local variable which will refer to each item in the `array` or each property value
- * of `object` during iteration.
- * * `key`: local variable which will refer to a property name in `object` during iteration.
- * * `label`: The result of this expression will be the label for `<option>` element. The
- * `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).
- * * `select`: The result of this expression will be bound to the model of the parent `<select>`
- * element. If not specified, `select` expression will default to `value`.
- * * `group`: The result of this expression will be used to group options using the `<optgroup>`
- * DOM element.
- * * `disable`: The result of this expression will be used to disable the rendered `<option>`
- * element. Return `true` to disable.
- * * `trackexpr`: Used when working with an array of objects. The result of this expression will be
- * used to identify the objects in the array. The `trackexpr` will most likely refer to the
- * `value` variable (e.g. `value.propertyName`). With this the selection is preserved
- * even when the options are recreated (e.g. reloaded from the server).
- *
- * @example
- <example module="selectExample" name="select">
- <file name="index.html">
- <script>
- angular.module('selectExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.colors = [
- {name:'black', shade:'dark'},
- {name:'white', shade:'light', notAnOption: true},
- {name:'red', shade:'dark'},
- {name:'blue', shade:'dark', notAnOption: true},
- {name:'yellow', shade:'light', notAnOption: false}
- ];
- $scope.myColor = $scope.colors[2]; // red
- }]);
- </script>
- <div ng-controller="ExampleController">
- <ul>
- <li ng-repeat="color in colors">
- <label>Name: <input ng-model="color.name"></label>
- <label><input type="checkbox" ng-model="color.notAnOption"> Disabled?</label>
- <button ng-click="colors.splice($index, 1)" aria-label="Remove">X</button>
- </li>
- <li>
- <button ng-click="colors.push({})">add</button>
- </li>
- </ul>
- <hr/>
- <label>Color (null not allowed):
- <select ng-model="myColor" ng-options="color.name for color in colors"></select>
- </label><br/>
- <label>Color (null allowed):
- <span class="nullable">
- <select ng-model="myColor" ng-options="color.name for color in colors">
- <option value="">-- choose color --</option>
- </select>
- </span></label><br/>
-
- <label>Color grouped by shade:
- <select ng-model="myColor" ng-options="color.name group by color.shade for color in colors">
- </select>
- </label><br/>
-
- <label>Color grouped by shade, with some disabled:
- <select ng-model="myColor"
- ng-options="color.name group by color.shade disable when color.notAnOption for color in colors">
- </select>
- </label><br/>
-
-
-
- Select <button ng-click="myColor = { name:'not in list', shade: 'other' }">bogus</button>.
- <br/>
- <hr/>
- Currently selected: {{ {selected_color:myColor} }}
- <div style="border:solid 1px black; height:20px"
- ng-style="{'background-color':myColor.name}">
- </div>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-options', function() {
- expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('red');
- element.all(by.model('myColor')).first().click();
- element.all(by.css('select[ng-model="myColor"] option')).first().click();
- expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('black');
- element(by.css('.nullable select[ng-model="myColor"]')).click();
- element.all(by.css('.nullable select[ng-model="myColor"] option')).first().click();
- expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('null');
- });
- </file>
- </example>
- */
-
-/* eslint-disable max-len */
-// //00001111111111000000000002222222222000000000000000000000333333333300000000000000000000000004444444444400000000000005555555555555000000000666666666666600000007777777777777000000000000000888888888800000000000000000009999999999
-var NG_OPTIONS_REGEXP = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/;
- // 1: value expression (valueFn)
- // 2: label expression (displayFn)
- // 3: group by expression (groupByFn)
- // 4: disable when expression (disableWhenFn)
- // 5: array item variable name
- // 6: object item key variable name
- // 7: object item value variable name
- // 8: collection expression
- // 9: track by expression
-/* eslint-enable */
-
-
-var ngOptionsDirective = ['$compile', '$document', '$parse', function($compile, $document, $parse) {
-
- function parseOptionsExpression(optionsExp, selectElement, scope) {
-
- var match = optionsExp.match(NG_OPTIONS_REGEXP);
- if (!(match)) {
- throw ngOptionsMinErr('iexp',
- 'Expected expression in form of ' +
- '\'_select_ (as _label_)? for (_key_,)?_value_ in _collection_\'' +
- ' but got \'{0}\'. Element: {1}',
- optionsExp, startingTag(selectElement));
- }
-
- // Extract the parts from the ngOptions expression
-
- // The variable name for the value of the item in the collection
- var valueName = match[5] || match[7];
- // The variable name for the key of the item in the collection
- var keyName = match[6];
-
- // An expression that generates the viewValue for an option if there is a label expression
- var selectAs = / as /.test(match[0]) && match[1];
- // An expression that is used to track the id of each object in the options collection
- var trackBy = match[9];
- // An expression that generates the viewValue for an option if there is no label expression
- var valueFn = $parse(match[2] ? match[1] : valueName);
- var selectAsFn = selectAs && $parse(selectAs);
- var viewValueFn = selectAsFn || valueFn;
- var trackByFn = trackBy && $parse(trackBy);
-
- // Get the value by which we are going to track the option
- // if we have a trackFn then use that (passing scope and locals)
- // otherwise just hash the given viewValue
- var getTrackByValueFn = trackBy ?
- function(value, locals) { return trackByFn(scope, locals); } :
- function getHashOfValue(value) { return hashKey(value); };
- var getTrackByValue = function(value, key) {
- return getTrackByValueFn(value, getLocals(value, key));
- };
-
- var displayFn = $parse(match[2] || match[1]);
- var groupByFn = $parse(match[3] || '');
- var disableWhenFn = $parse(match[4] || '');
- var valuesFn = $parse(match[8]);
-
- var locals = {};
- var getLocals = keyName ? function(value, key) {
- locals[keyName] = key;
- locals[valueName] = value;
- return locals;
- } : function(value) {
- locals[valueName] = value;
- return locals;
- };
-
-
- function Option(selectValue, viewValue, label, group, disabled) {
- this.selectValue = selectValue;
- this.viewValue = viewValue;
- this.label = label;
- this.group = group;
- this.disabled = disabled;
- }
-
- function getOptionValuesKeys(optionValues) {
- var optionValuesKeys;
-
- if (!keyName && isArrayLike(optionValues)) {
- optionValuesKeys = optionValues;
- } else {
- // if object, extract keys, in enumeration order, unsorted
- optionValuesKeys = [];
- for (var itemKey in optionValues) {
- if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {
- optionValuesKeys.push(itemKey);
- }
- }
- }
- return optionValuesKeys;
- }
-
- return {
- trackBy: trackBy,
- getTrackByValue: getTrackByValue,
- getWatchables: $parse(valuesFn, function(optionValues) {
- // Create a collection of things that we would like to watch (watchedArray)
- // so that they can all be watched using a single $watchCollection
- // that only runs the handler once if anything changes
- var watchedArray = [];
- optionValues = optionValues || [];
-
- var optionValuesKeys = getOptionValuesKeys(optionValues);
- var optionValuesLength = optionValuesKeys.length;
- for (var index = 0; index < optionValuesLength; index++) {
- var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];
- var value = optionValues[key];
-
- var locals = getLocals(value, key);
- var selectValue = getTrackByValueFn(value, locals);
- watchedArray.push(selectValue);
-
- // Only need to watch the displayFn if there is a specific label expression
- if (match[2] || match[1]) {
- var label = displayFn(scope, locals);
- watchedArray.push(label);
- }
-
- // Only need to watch the disableWhenFn if there is a specific disable expression
- if (match[4]) {
- var disableWhen = disableWhenFn(scope, locals);
- watchedArray.push(disableWhen);
- }
- }
- return watchedArray;
- }),
-
- getOptions: function() {
-
- var optionItems = [];
- var selectValueMap = {};
-
- // The option values were already computed in the `getWatchables` fn,
- // which must have been called to trigger `getOptions`
- var optionValues = valuesFn(scope) || [];
- var optionValuesKeys = getOptionValuesKeys(optionValues);
- var optionValuesLength = optionValuesKeys.length;
-
- for (var index = 0; index < optionValuesLength; index++) {
- var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];
- var value = optionValues[key];
- var locals = getLocals(value, key);
- var viewValue = viewValueFn(scope, locals);
- var selectValue = getTrackByValueFn(viewValue, locals);
- var label = displayFn(scope, locals);
- var group = groupByFn(scope, locals);
- var disabled = disableWhenFn(scope, locals);
- var optionItem = new Option(selectValue, viewValue, label, group, disabled);
-
- optionItems.push(optionItem);
- selectValueMap[selectValue] = optionItem;
- }
-
- return {
- items: optionItems,
- selectValueMap: selectValueMap,
- getOptionFromViewValue: function(value) {
- return selectValueMap[getTrackByValue(value)];
- },
- getViewValueFromOption: function(option) {
- // If the viewValue could be an object that may be mutated by the application,
- // we need to make a copy and not return the reference to the value on the option.
- return trackBy ? copy(option.viewValue) : option.viewValue;
- }
- };
- }
- };
- }
-
-
- // we can't just jqLite('<option>') since jqLite is not smart enough
- // to create it in <select> and IE barfs otherwise.
- var optionTemplate = window.document.createElement('option'),
- optGroupTemplate = window.document.createElement('optgroup');
-
- function ngOptionsPostLink(scope, selectElement, attr, ctrls) {
-
- var selectCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1];
- var multiple = attr.multiple;
-
- // The emptyOption allows the application developer to provide their own custom "empty"
- // option when the viewValue does not match any of the option values.
- var emptyOption;
- for (var i = 0, children = selectElement.children(), ii = children.length; i < ii; i++) {
- if (children[i].value === '') {
- emptyOption = children.eq(i);
- break;
- }
- }
-
- var providedEmptyOption = !!emptyOption;
- var emptyOptionRendered = false;
-
- var unknownOption = jqLite(optionTemplate.cloneNode(false));
- unknownOption.val('?');
-
- var options;
- var ngOptions = parseOptionsExpression(attr.ngOptions, selectElement, scope);
- // This stores the newly created options before they are appended to the select.
- // Since the contents are removed from the fragment when it is appended,
- // we only need to create it once.
- var listFragment = $document[0].createDocumentFragment();
-
- var renderEmptyOption = function() {
- if (!providedEmptyOption) {
- selectElement.prepend(emptyOption);
- }
- selectElement.val('');
- if (emptyOptionRendered) {
- emptyOption.prop('selected', true); // needed for IE
- emptyOption.attr('selected', true);
- }
- };
-
- var removeEmptyOption = function() {
- if (!providedEmptyOption) {
- emptyOption.remove();
- } else if (emptyOptionRendered) {
- emptyOption.removeAttr('selected');
- }
- };
-
- var renderUnknownOption = function() {
- selectElement.prepend(unknownOption);
- selectElement.val('?');
- unknownOption.prop('selected', true); // needed for IE
- unknownOption.attr('selected', true);
- };
-
- var removeUnknownOption = function() {
- unknownOption.remove();
- };
-
- // Update the controller methods for multiple selectable options
- if (!multiple) {
-
- selectCtrl.writeValue = function writeNgOptionsValue(value) {
- var selectedOption = options.selectValueMap[selectElement.val()];
- var option = options.getOptionFromViewValue(value);
-
- // Make sure to remove the selected attribute from the previously selected option
- // Otherwise, screen readers might get confused
- if (selectedOption) selectedOption.element.removeAttribute('selected');
-
- if (option) {
- // Don't update the option when it is already selected.
- // For example, the browser will select the first option by default. In that case,
- // most properties are set automatically - except the `selected` attribute, which we
- // set always
-
- if (selectElement[0].value !== option.selectValue) {
- removeUnknownOption();
- removeEmptyOption();
-
- selectElement[0].value = option.selectValue;
- option.element.selected = true;
- }
-
- option.element.setAttribute('selected', 'selected');
- } else {
- if (value === null || providedEmptyOption) {
- removeUnknownOption();
- renderEmptyOption();
- } else {
- removeEmptyOption();
- renderUnknownOption();
- }
- }
- };
-
- selectCtrl.readValue = function readNgOptionsValue() {
-
- var selectedOption = options.selectValueMap[selectElement.val()];
-
- if (selectedOption && !selectedOption.disabled) {
- removeEmptyOption();
- removeUnknownOption();
- return options.getViewValueFromOption(selectedOption);
- }
- return null;
- };
-
- // If we are using `track by` then we must watch the tracked value on the model
- // since ngModel only watches for object identity change
- // FIXME: When a user selects an option, this watch will fire needlessly
- if (ngOptions.trackBy) {
- scope.$watch(
- function() { return ngOptions.getTrackByValue(ngModelCtrl.$viewValue); },
- function() { ngModelCtrl.$render(); }
- );
- }
-
- } else {
-
- ngModelCtrl.$isEmpty = function(value) {
- return !value || value.length === 0;
- };
-
-
- selectCtrl.writeValue = function writeNgOptionsMultiple(value) {
- options.items.forEach(function(option) {
- option.element.selected = false;
- });
-
- if (value) {
- value.forEach(function(item) {
- var option = options.getOptionFromViewValue(item);
- if (option) option.element.selected = true;
- });
- }
- };
-
-
- selectCtrl.readValue = function readNgOptionsMultiple() {
- var selectedValues = selectElement.val() || [],
- selections = [];
-
- forEach(selectedValues, function(value) {
- var option = options.selectValueMap[value];
- if (option && !option.disabled) selections.push(options.getViewValueFromOption(option));
- });
-
- return selections;
- };
-
- // If we are using `track by` then we must watch these tracked values on the model
- // since ngModel only watches for object identity change
- if (ngOptions.trackBy) {
-
- scope.$watchCollection(function() {
- if (isArray(ngModelCtrl.$viewValue)) {
- return ngModelCtrl.$viewValue.map(function(value) {
- return ngOptions.getTrackByValue(value);
- });
- }
- }, function() {
- ngModelCtrl.$render();
- });
-
- }
- }
-
-
- if (providedEmptyOption) {
-
- // we need to remove it before calling selectElement.empty() because otherwise IE will
- // remove the label from the element. wtf?
- emptyOption.remove();
-
- // compile the element since there might be bindings in it
- $compile(emptyOption)(scope);
-
- if (emptyOption[0].nodeType === NODE_TYPE_COMMENT) {
- // This means the empty option has currently no actual DOM node, probably because
- // it has been modified by a transclusion directive.
-
- emptyOptionRendered = false;
-
- // Redefine the registerOption function, which will catch
- // options that are added by ngIf etc. (rendering of the node is async because of
- // lazy transclusion)
- selectCtrl.registerOption = function(optionScope, optionEl) {
- if (optionEl.val() === '') {
- emptyOptionRendered = true;
- emptyOption = optionEl;
- emptyOption.removeClass('ng-scope');
- // This ensures the new empty option is selected if previously no option was selected
- ngModelCtrl.$render();
-
- optionEl.on('$destroy', function() {
- emptyOption = undefined;
- emptyOptionRendered = false;
- });
- }
- };
-
- } else {
- emptyOption.removeClass('ng-scope');
- emptyOptionRendered = true;
- }
-
- } else {
- emptyOption = jqLite(optionTemplate.cloneNode(false));
- }
-
- selectElement.empty();
-
- // We need to do this here to ensure that the options object is defined
- // when we first hit it in writeNgOptionsValue
- updateOptions();
-
- // We will re-render the option elements if the option values or labels change
- scope.$watchCollection(ngOptions.getWatchables, updateOptions);
-
- // ------------------------------------------------------------------ //
-
- function addOptionElement(option, parent) {
- var optionElement = optionTemplate.cloneNode(false);
- parent.appendChild(optionElement);
- updateOptionElement(option, optionElement);
- }
-
-
- function updateOptionElement(option, element) {
- option.element = element;
- element.disabled = option.disabled;
- // NOTE: The label must be set before the value, otherwise IE10/11/EDGE create unresponsive
- // selects in certain circumstances when multiple selects are next to each other and display
- // the option list in listbox style, i.e. the select is [multiple], or specifies a [size].
- // See https://github.com/angular/angular.js/issues/11314 for more info.
- // This is unfortunately untestable with unit / e2e tests
- if (option.label !== element.label) {
- element.label = option.label;
- element.textContent = option.label;
- }
- element.value = option.selectValue;
- }
-
- function updateOptions() {
- var previousValue = options && selectCtrl.readValue();
-
- // We must remove all current options, but cannot simply set innerHTML = null
- // since the providedEmptyOption might have an ngIf on it that inserts comments which we
- // must preserve.
- // Instead, iterate over the current option elements and remove them or their optgroup
- // parents
- if (options) {
-
- for (var i = options.items.length - 1; i >= 0; i--) {
- var option = options.items[i];
- if (isDefined(option.group)) {
- jqLiteRemove(option.element.parentNode);
- } else {
- jqLiteRemove(option.element);
- }
- }
- }
-
- options = ngOptions.getOptions();
-
- var groupElementMap = {};
-
- // Ensure that the empty option is always there if it was explicitly provided
- if (providedEmptyOption) {
- selectElement.prepend(emptyOption);
- }
-
- options.items.forEach(function addOption(option) {
- var groupElement;
-
- if (isDefined(option.group)) {
-
- // This option is to live in a group
- // See if we have already created this group
- groupElement = groupElementMap[option.group];
-
- if (!groupElement) {
-
- groupElement = optGroupTemplate.cloneNode(false);
- listFragment.appendChild(groupElement);
-
- // Update the label on the group element
- // "null" is special cased because of Safari
- groupElement.label = option.group === null ? 'null' : option.group;
-
- // Store it for use later
- groupElementMap[option.group] = groupElement;
- }
-
- addOptionElement(option, groupElement);
-
- } else {
-
- // This option is not in a group
- addOptionElement(option, listFragment);
- }
- });
-
- selectElement[0].appendChild(listFragment);
-
- ngModelCtrl.$render();
-
- // Check to see if the value has changed due to the update to the options
- if (!ngModelCtrl.$isEmpty(previousValue)) {
- var nextValue = selectCtrl.readValue();
- var isNotPrimitive = ngOptions.trackBy || multiple;
- if (isNotPrimitive ? !equals(previousValue, nextValue) : previousValue !== nextValue) {
- ngModelCtrl.$setViewValue(nextValue);
- ngModelCtrl.$render();
- }
- }
-
- }
- }
-
- return {
- restrict: 'A',
- terminal: true,
- require: ['select', 'ngModel'],
- link: {
- pre: function ngOptionsPreLink(scope, selectElement, attr, ctrls) {
- // Deactivate the SelectController.register method to prevent
- // option directives from accidentally registering themselves
- // (and unwanted $destroy handlers etc.)
- ctrls[0].registerOption = noop;
- },
- post: ngOptionsPostLink
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngPluralize
- * @restrict EA
- *
- * @description
- * `ngPluralize` is a directive that displays messages according to en-US localization rules.
- * These rules are bundled with angular.js, but can be overridden
- * (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive
- * by specifying the mappings between
- * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
- * and the strings to be displayed.
- *
- * # Plural categories and explicit number rules
- * There are two
- * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
- * in Angular's default en-US locale: "one" and "other".
- *
- * While a plural category may match many numbers (for example, in en-US locale, "other" can match
- * any number that is not 1), an explicit number rule can only match one number. For example, the
- * explicit number rule for "3" matches the number 3. There are examples of plural categories
- * and explicit number rules throughout the rest of this documentation.
- *
- * # Configuring ngPluralize
- * You configure ngPluralize by providing 2 attributes: `count` and `when`.
- * You can also provide an optional attribute, `offset`.
- *
- * The value of the `count` attribute can be either a string or an {@link guide/expression
- * Angular expression}; these are evaluated on the current scope for its bound value.
- *
- * The `when` attribute specifies the mappings between plural categories and the actual
- * string to be displayed. The value of the attribute should be a JSON object.
- *
- * The following example shows how to configure ngPluralize:
- *
- * ```html
- * <ng-pluralize count="personCount"
- when="{'0': 'Nobody is viewing.',
- * 'one': '1 person is viewing.',
- * 'other': '{} people are viewing.'}">
- * </ng-pluralize>
- *```
- *
- * In the example, `"0: Nobody is viewing."` is an explicit number rule. If you did not
- * specify this rule, 0 would be matched to the "other" category and "0 people are viewing"
- * would be shown instead of "Nobody is viewing". You can specify an explicit number rule for
- * other numbers, for example 12, so that instead of showing "12 people are viewing", you can
- * show "a dozen people are viewing".
- *
- * You can use a set of closed braces (`{}`) as a placeholder for the number that you want substituted
- * into pluralized strings. In the previous example, Angular will replace `{}` with
- * <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder
- * for <span ng-non-bindable>{{numberExpression}}</span>.
- *
- * If no rule is defined for a category, then an empty string is displayed and a warning is generated.
- * Note that some locales define more categories than `one` and `other`. For example, fr-fr defines `few` and `many`.
- *
- * # Configuring ngPluralize with offset
- * The `offset` attribute allows further customization of pluralized text, which can result in
- * a better user experience. For example, instead of the message "4 people are viewing this document",
- * you might display "John, Kate and 2 others are viewing this document".
- * The offset attribute allows you to offset a number by any desired value.
- * Let's take a look at an example:
- *
- * ```html
- * <ng-pluralize count="personCount" offset=2
- * when="{'0': 'Nobody is viewing.',
- * '1': '{{person1}} is viewing.',
- * '2': '{{person1}} and {{person2}} are viewing.',
- * 'one': '{{person1}}, {{person2}} and one other person are viewing.',
- * 'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
- * </ng-pluralize>
- * ```
- *
- * Notice that we are still using two plural categories(one, other), but we added
- * three explicit number rules 0, 1 and 2.
- * When one person, perhaps John, views the document, "John is viewing" will be shown.
- * When three people view the document, no explicit number rule is found, so
- * an offset of 2 is taken off 3, and Angular uses 1 to decide the plural category.
- * In this case, plural category 'one' is matched and "John, Mary and one other person are viewing"
- * is shown.
- *
- * Note that when you specify offsets, you must provide explicit number rules for
- * numbers from 0 up to and including the offset. If you use an offset of 3, for example,
- * you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for
- * plural categories "one" and "other".
- *
- * @param {string|expression} count The variable to be bound to.
- * @param {string} when The mapping between plural category to its corresponding strings.
- * @param {number=} offset Offset to deduct from the total number.
- *
- * @example
- <example module="pluralizeExample" name="ng-pluralize">
- <file name="index.html">
- <script>
- angular.module('pluralizeExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.person1 = 'Igor';
- $scope.person2 = 'Misko';
- $scope.personCount = 1;
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>Person 1:<input type="text" ng-model="person1" value="Igor" /></label><br/>
- <label>Person 2:<input type="text" ng-model="person2" value="Misko" /></label><br/>
- <label>Number of People:<input type="text" ng-model="personCount" value="1" /></label><br/>
-
- <!--- Example with simple pluralization rules for en locale --->
- Without Offset:
- <ng-pluralize count="personCount"
- when="{'0': 'Nobody is viewing.',
- 'one': '1 person is viewing.',
- 'other': '{} people are viewing.'}">
- </ng-pluralize><br>
-
- <!--- Example with offset --->
- With Offset(2):
- <ng-pluralize count="personCount" offset=2
- when="{'0': 'Nobody is viewing.',
- '1': '{{person1}} is viewing.',
- '2': '{{person1}} and {{person2}} are viewing.',
- 'one': '{{person1}}, {{person2}} and one other person are viewing.',
- 'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
- </ng-pluralize>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should show correct pluralized string', function() {
- var withoutOffset = element.all(by.css('ng-pluralize')).get(0);
- var withOffset = element.all(by.css('ng-pluralize')).get(1);
- var countInput = element(by.model('personCount'));
-
- expect(withoutOffset.getText()).toEqual('1 person is viewing.');
- expect(withOffset.getText()).toEqual('Igor is viewing.');
-
- countInput.clear();
- countInput.sendKeys('0');
-
- expect(withoutOffset.getText()).toEqual('Nobody is viewing.');
- expect(withOffset.getText()).toEqual('Nobody is viewing.');
-
- countInput.clear();
- countInput.sendKeys('2');
-
- expect(withoutOffset.getText()).toEqual('2 people are viewing.');
- expect(withOffset.getText()).toEqual('Igor and Misko are viewing.');
-
- countInput.clear();
- countInput.sendKeys('3');
-
- expect(withoutOffset.getText()).toEqual('3 people are viewing.');
- expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.');
-
- countInput.clear();
- countInput.sendKeys('4');
-
- expect(withoutOffset.getText()).toEqual('4 people are viewing.');
- expect(withOffset.getText()).toEqual('Igor, Misko and 2 other people are viewing.');
- });
- it('should show data-bound names', function() {
- var withOffset = element.all(by.css('ng-pluralize')).get(1);
- var personCount = element(by.model('personCount'));
- var person1 = element(by.model('person1'));
- var person2 = element(by.model('person2'));
- personCount.clear();
- personCount.sendKeys('4');
- person1.clear();
- person1.sendKeys('Di');
- person2.clear();
- person2.sendKeys('Vojta');
- expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');
- });
- </file>
- </example>
- */
-var ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale, $interpolate, $log) {
- var BRACE = /{}/g,
- IS_WHEN = /^when(Minus)?(.+)$/;
-
- return {
- link: function(scope, element, attr) {
- var numberExp = attr.count,
- whenExp = attr.$attr.when && element.attr(attr.$attr.when), // we have {{}} in attrs
- offset = attr.offset || 0,
- whens = scope.$eval(whenExp) || {},
- whensExpFns = {},
- startSymbol = $interpolate.startSymbol(),
- endSymbol = $interpolate.endSymbol(),
- braceReplacement = startSymbol + numberExp + '-' + offset + endSymbol,
- watchRemover = angular.noop,
- lastCount;
-
- forEach(attr, function(expression, attributeName) {
- var tmpMatch = IS_WHEN.exec(attributeName);
- if (tmpMatch) {
- var whenKey = (tmpMatch[1] ? '-' : '') + lowercase(tmpMatch[2]);
- whens[whenKey] = element.attr(attr.$attr[attributeName]);
- }
- });
- forEach(whens, function(expression, key) {
- whensExpFns[key] = $interpolate(expression.replace(BRACE, braceReplacement));
-
- });
-
- scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) {
- var count = parseFloat(newVal);
- var countIsNaN = isNumberNaN(count);
-
- if (!countIsNaN && !(count in whens)) {
- // If an explicit number rule such as 1, 2, 3... is defined, just use it.
- // Otherwise, check it against pluralization rules in $locale service.
- count = $locale.pluralCat(count - offset);
- }
-
- // If both `count` and `lastCount` are NaN, we don't need to re-register a watch.
- // In JS `NaN !== NaN`, so we have to explicitly check.
- if ((count !== lastCount) && !(countIsNaN && isNumberNaN(lastCount))) {
- watchRemover();
- var whenExpFn = whensExpFns[count];
- if (isUndefined(whenExpFn)) {
- if (newVal != null) {
- $log.debug('ngPluralize: no rule defined for \'' + count + '\' in ' + whenExp);
- }
- watchRemover = noop;
- updateElementText();
- } else {
- watchRemover = scope.$watch(whenExpFn, updateElementText);
- }
- lastCount = count;
- }
- });
-
- function updateElementText(newText) {
- element.text(newText || '');
- }
- }
- };
-}];
-
-/* exported ngRepeatDirective */
-
-/**
- * @ngdoc directive
- * @name ngRepeat
- * @multiElement
- *
- * @description
- * The `ngRepeat` directive instantiates a template once per item from a collection. Each template
- * instance gets its own scope, where the given loop variable is set to the current collection item,
- * and `$index` is set to the item index or key.
- *
- * Special properties are exposed on the local scope of each template instance, including:
- *
- * | Variable | Type | Details |
- * |-----------|-----------------|-----------------------------------------------------------------------------|
- * | `$index` | {@type number} | iterator offset of the repeated element (0..length-1) |
- * | `$first` | {@type boolean} | true if the repeated element is first in the iterator. |
- * | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |
- * | `$last` | {@type boolean} | true if the repeated element is last in the iterator. |
- * | `$even` | {@type boolean} | true if the iterator position `$index` is even (otherwise false). |
- * | `$odd` | {@type boolean} | true if the iterator position `$index` is odd (otherwise false). |
- *
- * <div class="alert alert-info">
- * Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.
- * This may be useful when, for instance, nesting ngRepeats.
- * </div>
- *
- *
- * # Iterating over object properties
- *
- * It is possible to get `ngRepeat` to iterate over the properties of an object using the following
- * syntax:
- *
- * ```js
- * <div ng-repeat="(key, value) in myObj"> ... </div>
- * ```
- *
- * However, there are a few limitations compared to array iteration:
- *
- * - The JavaScript specification does not define the order of keys
- * returned for an object, so Angular relies on the order returned by the browser
- * when running `for key in myObj`. Browsers generally follow the strategy of providing
- * keys in the order in which they were defined, although there are exceptions when keys are deleted
- * and reinstated. See the
- * [MDN page on `delete` for more info](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#Cross-browser_notes).
- *
- * - `ngRepeat` will silently *ignore* object keys starting with `$`, because
- * it's a prefix used by Angular for public (`$`) and private (`$$`) properties.
- *
- * - The built-in filters {@link ng.orderBy orderBy} and {@link ng.filter filter} do not work with
- * objects, and will throw an error if used with one.
- *
- * If you are hitting any of these limitations, the recommended workaround is to convert your object into an array
- * that is sorted into the order that you prefer before providing it to `ngRepeat`. You could
- * do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)
- * or implement a `$watch` on the object yourself.
- *
- *
- * # Tracking and Duplicates
- *
- * `ngRepeat` uses {@link $rootScope.Scope#$watchCollection $watchCollection} to detect changes in
- * the collection. When a change happens, `ngRepeat` then makes the corresponding changes to the DOM:
- *
- * * When an item is added, a new instance of the template is added to the DOM.
- * * When an item is removed, its template instance is removed from the DOM.
- * * When items are reordered, their respective templates are reordered in the DOM.
- *
- * To minimize creation of DOM elements, `ngRepeat` uses a function
- * to "keep track" of all items in the collection and their corresponding DOM elements.
- * For example, if an item is added to the collection, `ngRepeat` will know that all other items
- * already have DOM elements, and will not re-render them.
- *
- * The default tracking function (which tracks items by their identity) does not allow
- * duplicate items in arrays. This is because when there are duplicates, it is not possible
- * to maintain a one-to-one mapping between collection items and DOM elements.
- *
- * If you do need to repeat duplicate items, you can substitute the default tracking behavior
- * with your own using the `track by` expression.
- *
- * For example, you may track items by the index of each item in the collection, using the
- * special scope property `$index`:
- * ```html
- * <div ng-repeat="n in [42, 42, 43, 43] track by $index">
- * {{n}}
- * </div>
- * ```
- *
- * You may also use arbitrary expressions in `track by`, including references to custom functions
- * on the scope:
- * ```html
- * <div ng-repeat="n in [42, 42, 43, 43] track by myTrackingFunction(n)">
- * {{n}}
- * </div>
- * ```
- *
- * <div class="alert alert-success">
- * If you are working with objects that have a unique identifier property, you should track
- * by this identifier instead of the object instance. Should you reload your data later, `ngRepeat`
- * will not have to rebuild the DOM elements for items it has already rendered, even if the
- * JavaScript objects in the collection have been substituted for new ones. For large collections,
- * this significantly improves rendering performance. If you don't have a unique identifier,
- * `track by $index` can also provide a performance boost.
- * </div>
- *
- * ```html
- * <div ng-repeat="model in collection track by model.id">
- * {{model.name}}
- * </div>
- * ```
- *
- * <br />
- * <div class="alert alert-warning">
- * Avoid using `track by $index` when the repeated template contains
- * {@link guide/expression#one-time-binding one-time bindings}. In such cases, the `nth` DOM
- * element will always be matched with the `nth` item of the array, so the bindings on that element
- * will not be updated even when the corresponding item changes, essentially causing the view to get
- * out-of-sync with the underlying data.
- * </div>
- *
- * When no `track by` expression is provided, it is equivalent to tracking by the built-in
- * `$id` function, which tracks items by their identity:
- * ```html
- * <div ng-repeat="obj in collection track by $id(obj)">
- * {{obj.prop}}
- * </div>
- * ```
- *
- * <br />
- * <div class="alert alert-warning">
- * **Note:** `track by` must always be the last expression:
- * </div>
- * ```
- * <div ng-repeat="model in collection | orderBy: 'id' as filtered_result track by model.id">
- * {{model.name}}
- * </div>
- * ```
- *
- *
- * # Special repeat start and end points
- * To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending
- * the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.
- * The **ng-repeat-start** directive works the same as **ng-repeat**, but will repeat all the HTML code (including the tag it's defined on)
- * up to and including the ending HTML tag where **ng-repeat-end** is placed.
- *
- * The example below makes use of this feature:
- * ```html
- * <header ng-repeat-start="item in items">
- * Header {{ item }}
- * </header>
- * <div class="body">
- * Body {{ item }}
- * </div>
- * <footer ng-repeat-end>
- * Footer {{ item }}
- * </footer>
- * ```
- *
- * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to:
- * ```html
- * <header>
- * Header A
- * </header>
- * <div class="body">
- * Body A
- * </div>
- * <footer>
- * Footer A
- * </footer>
- * <header>
- * Header B
- * </header>
- * <div class="body">
- * Body B
- * </div>
- * <footer>
- * Footer B
- * </footer>
- * ```
- *
- * The custom start and end points for ngRepeat also support all other HTML directive syntax flavors provided in AngularJS (such
- * as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).
- *
- * @animations
- * | Animation | Occurs |
- * |----------------------------------|-------------------------------------|
- * | {@link ng.$animate#enter enter} | when a new item is added to the list or when an item is revealed after a filter |
- * | {@link ng.$animate#leave leave} | when an item is removed from the list or when an item is filtered out |
- * | {@link ng.$animate#move move } | when an adjacent item is filtered out causing a reorder or when the item contents are reordered |
- *
- * See the example below for defining CSS animations with ngRepeat.
- *
- * @element ANY
- * @scope
- * @priority 1000
- * @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These
- * formats are currently supported:
- *
- * * `variable in expression` – where variable is the user defined loop variable and `expression`
- * is a scope expression giving the collection to enumerate.
- *
- * For example: `album in artist.albums`.
- *
- * * `(key, value) in expression` – where `key` and `value` can be any user defined identifiers,
- * and `expression` is the scope expression giving the collection to enumerate.
- *
- * For example: `(name, age) in {'adam':10, 'amalie':12}`.
- *
- * * `variable in expression track by tracking_expression` – You can also provide an optional tracking expression
- * which can be used to associate the objects in the collection with the DOM elements. If no tracking expression
- * is specified, ng-repeat associates elements by identity. It is an error to have
- * more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are
- * mapped to the same DOM element, which is not possible.)
- *
- * Note that the tracking expression must come last, after any filters, and the alias expression.
- *
- * For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements
- * will be associated by item identity in the array.
- *
- * For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique
- * `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements
- * with the corresponding item in the array by identity. Moving the same object in array would move the DOM
- * element in the same way in the DOM.
- *
- * For example: `item in items track by item.id` is a typical pattern when the items come from the database. In this
- * case the object identity does not matter. Two objects are considered equivalent as long as their `id`
- * property is same.
- *
- * For example: `item in items | filter:searchText track by item.id` is a pattern that might be used to apply a filter
- * to items in conjunction with a tracking expression.
- *
- * * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the
- * intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message
- * when a filter is active on the repeater, but the filtered result set is empty.
- *
- * For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after
- * the items have been processed through the filter.
- *
- * Please note that `as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end
- * (and not as operator, inside an expression).
- *
- * For example: `item in items | filter : x | orderBy : order | limitTo : limit as results` .
- *
- * @example
- * This example uses `ngRepeat` to display a list of people. A filter is used to restrict the displayed
- * results by name or by age. New (entering) and removed (leaving) items are animated.
- <example module="ngRepeat" name="ngRepeat" deps="angular-animate.js" animations="true" name="ng-repeat">
- <file name="index.html">
- <div ng-controller="repeatController">
- I have {{friends.length}} friends. They are:
- <input type="search" ng-model="q" placeholder="filter friends..." aria-label="filter friends" />
- <ul class="example-animate-container">
- <li class="animate-repeat" ng-repeat="friend in friends | filter:q as results">
- [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.
- </li>
- <li class="animate-repeat" ng-if="results.length === 0">
- <strong>No results found...</strong>
- </li>
- </ul>
- </div>
- </file>
- <file name="script.js">
- angular.module('ngRepeat', ['ngAnimate']).controller('repeatController', function($scope) {
- $scope.friends = [
- {name:'John', age:25, gender:'boy'},
- {name:'Jessie', age:30, gender:'girl'},
- {name:'Johanna', age:28, gender:'girl'},
- {name:'Joy', age:15, gender:'girl'},
- {name:'Mary', age:28, gender:'girl'},
- {name:'Peter', age:95, gender:'boy'},
- {name:'Sebastian', age:50, gender:'boy'},
- {name:'Erika', age:27, gender:'girl'},
- {name:'Patrick', age:40, gender:'boy'},
- {name:'Samantha', age:60, gender:'girl'}
- ];
- });
- </file>
- <file name="animations.css">
- .example-animate-container {
- background:white;
- border:1px solid black;
- list-style:none;
- margin:0;
- padding:0 10px;
- }
-
- .animate-repeat {
- line-height:30px;
- list-style:none;
- box-sizing:border-box;
- }
-
- .animate-repeat.ng-move,
- .animate-repeat.ng-enter,
- .animate-repeat.ng-leave {
- transition:all linear 0.5s;
- }
-
- .animate-repeat.ng-leave.ng-leave-active,
- .animate-repeat.ng-move,
- .animate-repeat.ng-enter {
- opacity:0;
- max-height:0;
- }
-
- .animate-repeat.ng-leave,
- .animate-repeat.ng-move.ng-move-active,
- .animate-repeat.ng-enter.ng-enter-active {
- opacity:1;
- max-height:30px;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var friends = element.all(by.repeater('friend in friends'));
-
- it('should render initial data set', function() {
- expect(friends.count()).toBe(10);
- expect(friends.get(0).getText()).toEqual('[1] John who is 25 years old.');
- expect(friends.get(1).getText()).toEqual('[2] Jessie who is 30 years old.');
- expect(friends.last().getText()).toEqual('[10] Samantha who is 60 years old.');
- expect(element(by.binding('friends.length')).getText())
- .toMatch("I have 10 friends. They are:");
- });
-
- it('should update repeater when filter predicate changes', function() {
- expect(friends.count()).toBe(10);
-
- element(by.model('q')).sendKeys('ma');
-
- expect(friends.count()).toBe(2);
- expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.');
- expect(friends.last().getText()).toEqual('[2] Samantha who is 60 years old.');
- });
- </file>
- </example>
- */
-var ngRepeatDirective = ['$parse', '$animate', '$compile', function($parse, $animate, $compile) {
- var NG_REMOVED = '$$NG_REMOVED';
- var ngRepeatMinErr = minErr('ngRepeat');
-
- var updateScope = function(scope, index, valueIdentifier, value, keyIdentifier, key, arrayLength) {
- // TODO(perf): generate setters to shave off ~40ms or 1-1.5%
- scope[valueIdentifier] = value;
- if (keyIdentifier) scope[keyIdentifier] = key;
- scope.$index = index;
- scope.$first = (index === 0);
- scope.$last = (index === (arrayLength - 1));
- scope.$middle = !(scope.$first || scope.$last);
- // eslint-disable-next-line no-bitwise
- scope.$odd = !(scope.$even = (index & 1) === 0);
- };
-
- var getBlockStart = function(block) {
- return block.clone[0];
- };
-
- var getBlockEnd = function(block) {
- return block.clone[block.clone.length - 1];
- };
-
-
- return {
- restrict: 'A',
- multiElement: true,
- transclude: 'element',
- priority: 1000,
- terminal: true,
- $$tlb: true,
- compile: function ngRepeatCompile($element, $attr) {
- var expression = $attr.ngRepeat;
- var ngRepeatEndComment = $compile.$$createComment('end ngRepeat', expression);
-
- var match = expression.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);
-
- if (!match) {
- throw ngRepeatMinErr('iexp', 'Expected expression in form of \'_item_ in _collection_[ track by _id_]\' but got \'{0}\'.',
- expression);
- }
-
- var lhs = match[1];
- var rhs = match[2];
- var aliasAs = match[3];
- var trackByExp = match[4];
-
- match = lhs.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);
-
- if (!match) {
- throw ngRepeatMinErr('iidexp', '\'_item_\' in \'_item_ in _collection_\' should be an identifier or \'(_key_, _value_)\' expression, but got \'{0}\'.',
- lhs);
- }
- var valueIdentifier = match[3] || match[1];
- var keyIdentifier = match[2];
-
- if (aliasAs && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs) ||
- /^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(aliasAs))) {
- throw ngRepeatMinErr('badident', 'alias \'{0}\' is invalid --- must be a valid JS identifier which is not a reserved name.',
- aliasAs);
- }
-
- var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn;
- var hashFnLocals = {$id: hashKey};
-
- if (trackByExp) {
- trackByExpGetter = $parse(trackByExp);
- } else {
- trackByIdArrayFn = function(key, value) {
- return hashKey(value);
- };
- trackByIdObjFn = function(key) {
- return key;
- };
- }
-
- return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) {
-
- if (trackByExpGetter) {
- trackByIdExpFn = function(key, value, index) {
- // assign key, value, and $index to the locals so that they can be used in hash functions
- if (keyIdentifier) hashFnLocals[keyIdentifier] = key;
- hashFnLocals[valueIdentifier] = value;
- hashFnLocals.$index = index;
- return trackByExpGetter($scope, hashFnLocals);
- };
- }
-
- // Store a list of elements from previous run. This is a hash where key is the item from the
- // iterator, and the value is objects with following properties.
- // - scope: bound scope
- // - element: previous element.
- // - index: position
- //
- // We are using no-proto object so that we don't need to guard against inherited props via
- // hasOwnProperty.
- var lastBlockMap = createMap();
-
- //watch props
- $scope.$watchCollection(rhs, function ngRepeatAction(collection) {
- var index, length,
- previousNode = $element[0], // node that cloned nodes should be inserted after
- // initialized to the comment node anchor
- nextNode,
- // Same as lastBlockMap but it has the current state. It will become the
- // lastBlockMap on the next iteration.
- nextBlockMap = createMap(),
- collectionLength,
- key, value, // key/value of iteration
- trackById,
- trackByIdFn,
- collectionKeys,
- block, // last object information {scope, element, id}
- nextBlockOrder,
- elementsToRemove;
-
- if (aliasAs) {
- $scope[aliasAs] = collection;
- }
-
- if (isArrayLike(collection)) {
- collectionKeys = collection;
- trackByIdFn = trackByIdExpFn || trackByIdArrayFn;
- } else {
- trackByIdFn = trackByIdExpFn || trackByIdObjFn;
- // if object, extract keys, in enumeration order, unsorted
- collectionKeys = [];
- for (var itemKey in collection) {
- if (hasOwnProperty.call(collection, itemKey) && itemKey.charAt(0) !== '$') {
- collectionKeys.push(itemKey);
- }
- }
- }
-
- collectionLength = collectionKeys.length;
- nextBlockOrder = new Array(collectionLength);
-
- // locate existing items
- for (index = 0; index < collectionLength; index++) {
- key = (collection === collectionKeys) ? index : collectionKeys[index];
- value = collection[key];
- trackById = trackByIdFn(key, value, index);
- if (lastBlockMap[trackById]) {
- // found previously seen block
- block = lastBlockMap[trackById];
- delete lastBlockMap[trackById];
- nextBlockMap[trackById] = block;
- nextBlockOrder[index] = block;
- } else if (nextBlockMap[trackById]) {
- // if collision detected. restore lastBlockMap and throw an error
- forEach(nextBlockOrder, function(block) {
- if (block && block.scope) lastBlockMap[block.id] = block;
- });
- throw ngRepeatMinErr('dupes',
- 'Duplicates in a repeater are not allowed. Use \'track by\' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}',
- expression, trackById, value);
- } else {
- // new never before seen block
- nextBlockOrder[index] = {id: trackById, scope: undefined, clone: undefined};
- nextBlockMap[trackById] = true;
- }
- }
-
- // remove leftover items
- for (var blockKey in lastBlockMap) {
- block = lastBlockMap[blockKey];
- elementsToRemove = getBlockNodes(block.clone);
- $animate.leave(elementsToRemove);
- if (elementsToRemove[0].parentNode) {
- // if the element was not removed yet because of pending animation, mark it as deleted
- // so that we can ignore it later
- for (index = 0, length = elementsToRemove.length; index < length; index++) {
- elementsToRemove[index][NG_REMOVED] = true;
- }
- }
- block.scope.$destroy();
- }
-
- // we are not using forEach for perf reasons (trying to avoid #call)
- for (index = 0; index < collectionLength; index++) {
- key = (collection === collectionKeys) ? index : collectionKeys[index];
- value = collection[key];
- block = nextBlockOrder[index];
-
- if (block.scope) {
- // if we have already seen this object, then we need to reuse the
- // associated scope/element
-
- nextNode = previousNode;
-
- // skip nodes that are already pending removal via leave animation
- do {
- nextNode = nextNode.nextSibling;
- } while (nextNode && nextNode[NG_REMOVED]);
-
- if (getBlockStart(block) !== nextNode) {
- // existing item which got moved
- $animate.move(getBlockNodes(block.clone), null, previousNode);
- }
- previousNode = getBlockEnd(block);
- updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);
- } else {
- // new item which we don't know about
- $transclude(function ngRepeatTransclude(clone, scope) {
- block.scope = scope;
- // http://jsperf.com/clone-vs-createcomment
- var endNode = ngRepeatEndComment.cloneNode(false);
- clone[clone.length++] = endNode;
-
- $animate.enter(clone, null, previousNode);
- previousNode = endNode;
- // Note: We only need the first/last node of the cloned nodes.
- // However, we need to keep the reference to the jqlite wrapper as it might be changed later
- // by a directive with templateUrl when its template arrives.
- block.clone = clone;
- nextBlockMap[block.id] = block;
- updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);
- });
- }
- }
- lastBlockMap = nextBlockMap;
- });
- };
- }
- };
-}];
-
-var NG_HIDE_CLASS = 'ng-hide';
-var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
-/**
- * @ngdoc directive
- * @name ngShow
- * @multiElement
- *
- * @description
- * The `ngShow` directive shows or hides the given HTML element based on the expression provided to
- * the `ngShow` attribute.
- *
- * The element is shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
- * The `.ng-hide` CSS class is predefined in AngularJS and sets the display style to none (using an
- * `!important` flag). For CSP mode please add `angular-csp.css` to your HTML file (see
- * {@link ng.directive:ngCsp ngCsp}).
- *
- * ```html
- * <!-- when $scope.myValue is truthy (element is visible) -->
- * <div ng-show="myValue"></div>
- *
- * <!-- when $scope.myValue is falsy (element is hidden) -->
- * <div ng-show="myValue" class="ng-hide"></div>
- * ```
- *
- * When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added
- * to the class attribute on the element causing it to become hidden. When truthy, the `.ng-hide`
- * CSS class is removed from the element causing the element not to appear hidden.
- *
- * ## Why is `!important` used?
- *
- * You may be wondering why `!important` is used for the `.ng-hide` CSS class. This is because the
- * `.ng-hide` selector can be easily overridden by heavier selectors. For example, something as
- * simple as changing the display style on a HTML list item would make hidden elements appear
- * visible. This also becomes a bigger issue when dealing with CSS frameworks.
- *
- * By using `!important`, the show and hide behavior will work as expected despite any clash between
- * CSS selector specificity (when `!important` isn't used with any conflicting styles). If a
- * developer chooses to override the styling to change how to hide an element then it is just a
- * matter of using `!important` in their own CSS code.
- *
- * ### Overriding `.ng-hide`
- *
- * By default, the `.ng-hide` class will style the element with `display: none !important`. If you
- * wish to change the hide behavior with `ngShow`/`ngHide`, you can simply overwrite the styles for
- * the `.ng-hide` CSS class. Note that the selector that needs to be used is actually
- * `.ng-hide:not(.ng-hide-animate)` to cope with extra animation classes that can be added.
- *
- * ```css
- * .ng-hide:not(.ng-hide-animate) {
- * /&#42; These are just alternative ways of hiding an element &#42;/
- * display: block!important;
- * position: absolute;
- * top: -9999px;
- * left: -9999px;
- * }
- * ```
- *
- * By default you don't need to override anything in CSS and the animations will work around the
- * display style.
- *
- * ## A note about animations with `ngShow`
- *
- * Animations in `ngShow`/`ngHide` work with the show and hide events that are triggered when the
- * directive expression is true and false. This system works like the animation system present with
- * `ngClass` except that you must also include the `!important` flag to override the display
- * property so that the elements are not actually hidden during the animation.
- *
- * ```css
- * /&#42; A working example can be found at the bottom of this page. &#42;/
- * .my-element.ng-hide-add, .my-element.ng-hide-remove {
- * transition: all 0.5s linear;
- * }
- *
- * .my-element.ng-hide-add { ... }
- * .my-element.ng-hide-add.ng-hide-add-active { ... }
- * .my-element.ng-hide-remove { ... }
- * .my-element.ng-hide-remove.ng-hide-remove-active { ... }
- * ```
- *
- * Keep in mind that, as of AngularJS version 1.3, there is no need to change the display property
- * to block during animation states - ngAnimate will automatically handle the style toggling for you.
- *
- * @animations
- * | Animation | Occurs |
- * |-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
- * | {@link $animate#addClass addClass} `.ng-hide` | After the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden. |
- * | {@link $animate#removeClass removeClass} `.ng-hide` | After the `ngShow` expression evaluates to a truthy value and just before contents are set to visible. |
- *
- * @element ANY
- * @param {expression} ngShow If the {@link guide/expression expression} is truthy/falsy then the
- * element is shown/hidden respectively.
- *
- * @example
- * A simple example, animating the element's opacity:
- *
- <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-show-simple">
- <file name="index.html">
- Show: <input type="checkbox" ng-model="checked" aria-label="Toggle ngShow"><br />
- <div class="check-element animate-show-hide" ng-show="checked">
- I show up when your checkbox is checked.
- </div>
- </file>
- <file name="animations.css">
- .animate-show-hide.ng-hide {
- opacity: 0;
- }
-
- .animate-show-hide.ng-hide-add,
- .animate-show-hide.ng-hide-remove {
- transition: all linear 0.5s;
- }
-
- .check-element {
- border: 1px solid black;
- opacity: 1;
- padding: 10px;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ngShow', function() {
- var checkbox = element(by.model('checked'));
- var checkElem = element(by.css('.check-element'));
-
- expect(checkElem.isDisplayed()).toBe(false);
- checkbox.click();
- expect(checkElem.isDisplayed()).toBe(true);
- });
- </file>
- </example>
- *
- * <hr />
- * @example
- * A more complex example, featuring different show/hide animations:
- *
- <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-show-complex">
- <file name="index.html">
- Show: <input type="checkbox" ng-model="checked" aria-label="Toggle ngShow"><br />
- <div class="check-element funky-show-hide" ng-show="checked">
- I show up when your checkbox is checked.
- </div>
- </file>
- <file name="animations.css">
- body {
- overflow: hidden;
- perspective: 1000px;
- }
-
- .funky-show-hide.ng-hide-add {
- transform: rotateZ(0);
- transform-origin: right;
- transition: all 0.5s ease-in-out;
- }
-
- .funky-show-hide.ng-hide-add.ng-hide-add-active {
- transform: rotateZ(-135deg);
- }
-
- .funky-show-hide.ng-hide-remove {
- transform: rotateY(90deg);
- transform-origin: left;
- transition: all 0.5s ease;
- }
-
- .funky-show-hide.ng-hide-remove.ng-hide-remove-active {
- transform: rotateY(0);
- }
-
- .check-element {
- border: 1px solid black;
- opacity: 1;
- padding: 10px;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ngShow', function() {
- var checkbox = element(by.model('checked'));
- var checkElem = element(by.css('.check-element'));
-
- expect(checkElem.isDisplayed()).toBe(false);
- checkbox.click();
- expect(checkElem.isDisplayed()).toBe(true);
- });
- </file>
- </example>
- */
-var ngShowDirective = ['$animate', function($animate) {
- return {
- restrict: 'A',
- multiElement: true,
- link: function(scope, element, attr) {
- scope.$watch(attr.ngShow, function ngShowWatchAction(value) {
- // we're adding a temporary, animation-specific class for ng-hide since this way
- // we can control when the element is actually displayed on screen without having
- // to have a global/greedy CSS selector that breaks when other animations are run.
- // Read: https://github.com/angular/angular.js/issues/9103#issuecomment-58335845
- $animate[value ? 'removeClass' : 'addClass'](element, NG_HIDE_CLASS, {
- tempClasses: NG_HIDE_IN_PROGRESS_CLASS
- });
- });
- }
- };
-}];
-
-
-/**
- * @ngdoc directive
- * @name ngHide
- * @multiElement
- *
- * @description
- * The `ngHide` directive shows or hides the given HTML element based on the expression provided to
- * the `ngHide` attribute.
- *
- * The element is shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
- * The `.ng-hide` CSS class is predefined in AngularJS and sets the display style to none (using an
- * `!important` flag). For CSP mode please add `angular-csp.css` to your HTML file (see
- * {@link ng.directive:ngCsp ngCsp}).
- *
- * ```html
- * <!-- when $scope.myValue is truthy (element is hidden) -->
- * <div ng-hide="myValue" class="ng-hide"></div>
- *
- * <!-- when $scope.myValue is falsy (element is visible) -->
- * <div ng-hide="myValue"></div>
- * ```
- *
- * When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added
- * to the class attribute on the element causing it to become hidden. When falsy, the `.ng-hide`
- * CSS class is removed from the element causing the element not to appear hidden.
- *
- * ## Why is `!important` used?
- *
- * You may be wondering why `!important` is used for the `.ng-hide` CSS class. This is because the
- * `.ng-hide` selector can be easily overridden by heavier selectors. For example, something as
- * simple as changing the display style on a HTML list item would make hidden elements appear
- * visible. This also becomes a bigger issue when dealing with CSS frameworks.
- *
- * By using `!important`, the show and hide behavior will work as expected despite any clash between
- * CSS selector specificity (when `!important` isn't used with any conflicting styles). If a
- * developer chooses to override the styling to change how to hide an element then it is just a
- * matter of using `!important` in their own CSS code.
- *
- * ### Overriding `.ng-hide`
- *
- * By default, the `.ng-hide` class will style the element with `display: none !important`. If you
- * wish to change the hide behavior with `ngShow`/`ngHide`, you can simply overwrite the styles for
- * the `.ng-hide` CSS class. Note that the selector that needs to be used is actually
- * `.ng-hide:not(.ng-hide-animate)` to cope with extra animation classes that can be added.
- *
- * ```css
- * .ng-hide:not(.ng-hide-animate) {
- * /&#42; These are just alternative ways of hiding an element &#42;/
- * display: block!important;
- * position: absolute;
- * top: -9999px;
- * left: -9999px;
- * }
- * ```
- *
- * By default you don't need to override in CSS anything and the animations will work around the
- * display style.
- *
- * ## A note about animations with `ngHide`
- *
- * Animations in `ngShow`/`ngHide` work with the show and hide events that are triggered when the
- * directive expression is true and false. This system works like the animation system present with
- * `ngClass` except that you must also include the `!important` flag to override the display
- * property so that the elements are not actually hidden during the animation.
- *
- * ```css
- * /&#42; A working example can be found at the bottom of this page. &#42;/
- * .my-element.ng-hide-add, .my-element.ng-hide-remove {
- * transition: all 0.5s linear;
- * }
- *
- * .my-element.ng-hide-add { ... }
- * .my-element.ng-hide-add.ng-hide-add-active { ... }
- * .my-element.ng-hide-remove { ... }
- * .my-element.ng-hide-remove.ng-hide-remove-active { ... }
- * ```
- *
- * Keep in mind that, as of AngularJS version 1.3, there is no need to change the display property
- * to block during animation states - ngAnimate will automatically handle the style toggling for you.
- *
- * @animations
- * | Animation | Occurs |
- * |-----------------------------------------------------|------------------------------------------------------------------------------------------------------------|
- * | {@link $animate#addClass addClass} `.ng-hide` | After the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden. |
- * | {@link $animate#removeClass removeClass} `.ng-hide` | After the `ngHide` expression evaluates to a non truthy value and just before contents are set to visible. |
- *
- *
- * @element ANY
- * @param {expression} ngHide If the {@link guide/expression expression} is truthy/falsy then the
- * element is hidden/shown respectively.
- *
- * @example
- * A simple example, animating the element's opacity:
- *
- <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-hide-simple">
- <file name="index.html">
- Hide: <input type="checkbox" ng-model="checked" aria-label="Toggle ngHide"><br />
- <div class="check-element animate-show-hide" ng-hide="checked">
- I hide when your checkbox is checked.
- </div>
- </file>
- <file name="animations.css">
- .animate-show-hide.ng-hide {
- opacity: 0;
- }
-
- .animate-show-hide.ng-hide-add,
- .animate-show-hide.ng-hide-remove {
- transition: all linear 0.5s;
- }
-
- .check-element {
- border: 1px solid black;
- opacity: 1;
- padding: 10px;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ngHide', function() {
- var checkbox = element(by.model('checked'));
- var checkElem = element(by.css('.check-element'));
-
- expect(checkElem.isDisplayed()).toBe(true);
- checkbox.click();
- expect(checkElem.isDisplayed()).toBe(false);
- });
- </file>
- </example>
- *
- * <hr />
- * @example
- * A more complex example, featuring different show/hide animations:
- *
- <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-hide-complex">
- <file name="index.html">
- Hide: <input type="checkbox" ng-model="checked" aria-label="Toggle ngHide"><br />
- <div class="check-element funky-show-hide" ng-hide="checked">
- I hide when your checkbox is checked.
- </div>
- </file>
- <file name="animations.css">
- body {
- overflow: hidden;
- perspective: 1000px;
- }
-
- .funky-show-hide.ng-hide-add {
- transform: rotateZ(0);
- transform-origin: right;
- transition: all 0.5s ease-in-out;
- }
-
- .funky-show-hide.ng-hide-add.ng-hide-add-active {
- transform: rotateZ(-135deg);
- }
-
- .funky-show-hide.ng-hide-remove {
- transform: rotateY(90deg);
- transform-origin: left;
- transition: all 0.5s ease;
- }
-
- .funky-show-hide.ng-hide-remove.ng-hide-remove-active {
- transform: rotateY(0);
- }
-
- .check-element {
- border: 1px solid black;
- opacity: 1;
- padding: 10px;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ngHide', function() {
- var checkbox = element(by.model('checked'));
- var checkElem = element(by.css('.check-element'));
-
- expect(checkElem.isDisplayed()).toBe(true);
- checkbox.click();
- expect(checkElem.isDisplayed()).toBe(false);
- });
- </file>
- </example>
- */
-var ngHideDirective = ['$animate', function($animate) {
- return {
- restrict: 'A',
- multiElement: true,
- link: function(scope, element, attr) {
- scope.$watch(attr.ngHide, function ngHideWatchAction(value) {
- // The comment inside of the ngShowDirective explains why we add and
- // remove a temporary class for the show/hide animation
- $animate[value ? 'addClass' : 'removeClass'](element,NG_HIDE_CLASS, {
- tempClasses: NG_HIDE_IN_PROGRESS_CLASS
- });
- });
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngStyle
- * @restrict AC
- *
- * @description
- * The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.
- *
- * @knownIssue
- * You should not use {@link guide/interpolation interpolation} in the value of the `style`
- * attribute, when using the `ngStyle` directive on the same element.
- * See {@link guide/interpolation#known-issues here} for more info.
- *
- * @element ANY
- * @param {expression} ngStyle
- *
- * {@link guide/expression Expression} which evals to an
- * object whose keys are CSS style names and values are corresponding values for those CSS
- * keys.
- *
- * Since some CSS style names are not valid keys for an object, they must be quoted.
- * See the 'background-color' style in the example below.
- *
- * @example
- <example name="ng-style">
- <file name="index.html">
- <input type="button" value="set color" ng-click="myStyle={color:'red'}">
- <input type="button" value="set background" ng-click="myStyle={'background-color':'blue'}">
- <input type="button" value="clear" ng-click="myStyle={}">
- <br/>
- <span ng-style="myStyle">Sample Text</span>
- <pre>myStyle={{myStyle}}</pre>
- </file>
- <file name="style.css">
- span {
- color: black;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var colorSpan = element(by.css('span'));
-
- it('should check ng-style', function() {
- expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
- element(by.css('input[value=\'set color\']')).click();
- expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');
- element(by.css('input[value=clear]')).click();
- expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
- });
- </file>
- </example>
- */
-var ngStyleDirective = ngDirective(function(scope, element, attr) {
- scope.$watch(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {
- if (oldStyles && (newStyles !== oldStyles)) {
- forEach(oldStyles, function(val, style) { element.css(style, '');});
- }
- if (newStyles) element.css(newStyles);
- }, true);
-});
-
-/**
- * @ngdoc directive
- * @name ngSwitch
- * @restrict EA
- *
- * @description
- * The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.
- * Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at the location
- * as specified in the template.
- *
- * The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it
- * from the template cache), `ngSwitch` simply chooses one of the nested elements and makes it visible based on which element
- * matches the value obtained from the evaluated expression. In other words, you define a container element
- * (where you place the directive), place an expression on the **`on="..."` attribute**
- * (or the **`ng-switch="..."` attribute**), define any inner elements inside of the directive and place
- * a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on
- * expression is evaluated. If a matching expression is not found via a when attribute then an element with the default
- * attribute is displayed.
- *
- * <div class="alert alert-info">
- * Be aware that the attribute values to match against cannot be expressions. They are interpreted
- * as literal string values to match against.
- * For example, **`ng-switch-when="someVal"`** will match against the string `"someVal"` not against the
- * value of the expression `$scope.someVal`.
- * </div>
-
- * @animations
- * | Animation | Occurs |
- * |----------------------------------|-------------------------------------|
- * | {@link ng.$animate#enter enter} | after the ngSwitch contents change and the matched child element is placed inside the container |
- * | {@link ng.$animate#leave leave} | after the ngSwitch contents change and just before the former contents are removed from the DOM |
- *
- * @usage
- *
- * ```
- * <ANY ng-switch="expression">
- * <ANY ng-switch-when="matchValue1">...</ANY>
- * <ANY ng-switch-when="matchValue2">...</ANY>
- * <ANY ng-switch-default>...</ANY>
- * </ANY>
- * ```
- *
- *
- * @scope
- * @priority 1200
- * @param {*} ngSwitch|on expression to match against <code>ng-switch-when</code>.
- * On child elements add:
- *
- * * `ngSwitchWhen`: the case statement to match against. If match then this
- * case will be displayed. If the same match appears multiple times, all the
- * elements will be displayed. It is possible to associate multiple values to
- * the same `ngSwitchWhen` by defining the optional attribute
- * `ngSwitchWhenSeparator`. The separator will be used to split the value of
- * the `ngSwitchWhen` attribute into multiple tokens, and the element will show
- * if any of the `ngSwitch` evaluates to any of these tokens.
- * * `ngSwitchDefault`: the default case when no other case match. If there
- * are multiple default cases, all of them will be displayed when no other
- * case match.
- *
- *
- * @example
- <example module="switchExample" deps="angular-animate.js" animations="true" name="ng-switch">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <select ng-model="selection" ng-options="item for item in items">
- </select>
- <code>selection={{selection}}</code>
- <hr/>
- <div class="animate-switch-container"
- ng-switch on="selection">
- <div class="animate-switch" ng-switch-when="settings|options" ng-switch-when-separator="|">Settings Div</div>
- <div class="animate-switch" ng-switch-when="home">Home Span</div>
- <div class="animate-switch" ng-switch-default>default</div>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('switchExample', ['ngAnimate'])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.items = ['settings', 'home', 'options', 'other'];
- $scope.selection = $scope.items[0];
- }]);
- </file>
- <file name="animations.css">
- .animate-switch-container {
- position:relative;
- background:white;
- border:1px solid black;
- height:40px;
- overflow:hidden;
- }
-
- .animate-switch {
- padding:10px;
- }
-
- .animate-switch.ng-animate {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-
- position:absolute;
- top:0;
- left:0;
- right:0;
- bottom:0;
- }
-
- .animate-switch.ng-leave.ng-leave-active,
- .animate-switch.ng-enter {
- top:-50px;
- }
- .animate-switch.ng-leave,
- .animate-switch.ng-enter.ng-enter-active {
- top:0;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var switchElem = element(by.css('[ng-switch]'));
- var select = element(by.model('selection'));
-
- it('should start in settings', function() {
- expect(switchElem.getText()).toMatch(/Settings Div/);
- });
- it('should change to home', function() {
- select.all(by.css('option')).get(1).click();
- expect(switchElem.getText()).toMatch(/Home Span/);
- });
- it('should change to settings via "options"', function() {
- select.all(by.css('option')).get(2).click();
- expect(switchElem.getText()).toMatch(/Settings Div/);
- });
- it('should select default', function() {
- select.all(by.css('option')).get(3).click();
- expect(switchElem.getText()).toMatch(/default/);
- });
- </file>
- </example>
- */
-var ngSwitchDirective = ['$animate', '$compile', function($animate, $compile) {
- return {
- require: 'ngSwitch',
-
- // asks for $scope to fool the BC controller module
- controller: ['$scope', function NgSwitchController() {
- this.cases = {};
- }],
- link: function(scope, element, attr, ngSwitchController) {
- var watchExpr = attr.ngSwitch || attr.on,
- selectedTranscludes = [],
- selectedElements = [],
- previousLeaveAnimations = [],
- selectedScopes = [];
-
- var spliceFactory = function(array, index) {
- return function(response) {
- if (response !== false) array.splice(index, 1);
- };
- };
-
- scope.$watch(watchExpr, function ngSwitchWatchAction(value) {
- var i, ii;
-
- // Start with the last, in case the array is modified during the loop
- while (previousLeaveAnimations.length) {
- $animate.cancel(previousLeaveAnimations.pop());
- }
-
- for (i = 0, ii = selectedScopes.length; i < ii; ++i) {
- var selected = getBlockNodes(selectedElements[i].clone);
- selectedScopes[i].$destroy();
- var runner = previousLeaveAnimations[i] = $animate.leave(selected);
- runner.done(spliceFactory(previousLeaveAnimations, i));
- }
-
- selectedElements.length = 0;
- selectedScopes.length = 0;
-
- if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) {
- forEach(selectedTranscludes, function(selectedTransclude) {
- selectedTransclude.transclude(function(caseElement, selectedScope) {
- selectedScopes.push(selectedScope);
- var anchor = selectedTransclude.element;
- caseElement[caseElement.length++] = $compile.$$createComment('end ngSwitchWhen');
- var block = { clone: caseElement };
-
- selectedElements.push(block);
- $animate.enter(caseElement, anchor.parent(), anchor);
- });
- });
- }
- });
- }
- };
-}];
-
-var ngSwitchWhenDirective = ngDirective({
- transclude: 'element',
- priority: 1200,
- require: '^ngSwitch',
- multiElement: true,
- link: function(scope, element, attrs, ctrl, $transclude) {
-
- var cases = attrs.ngSwitchWhen.split(attrs.ngSwitchWhenSeparator).sort().filter(
- // Filter duplicate cases
- function(element, index, array) { return array[index - 1] !== element; }
- );
-
- forEach(cases, function(whenCase) {
- ctrl.cases['!' + whenCase] = (ctrl.cases['!' + whenCase] || []);
- ctrl.cases['!' + whenCase].push({ transclude: $transclude, element: element });
- });
- }
-});
-
-var ngSwitchDefaultDirective = ngDirective({
- transclude: 'element',
- priority: 1200,
- require: '^ngSwitch',
- multiElement: true,
- link: function(scope, element, attr, ctrl, $transclude) {
- ctrl.cases['?'] = (ctrl.cases['?'] || []);
- ctrl.cases['?'].push({ transclude: $transclude, element: element });
- }
-});
-
-/**
- * @ngdoc directive
- * @name ngTransclude
- * @restrict EAC
- *
- * @description
- * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.
- *
- * You can specify that you want to insert a named transclusion slot, instead of the default slot, by providing the slot name
- * as the value of the `ng-transclude` or `ng-transclude-slot` attribute.
- *
- * If the transcluded content is not empty (i.e. contains one or more DOM nodes, including whitespace text nodes), any existing
- * content of this element will be removed before the transcluded content is inserted.
- * If the transcluded content is empty, the existing content is left intact. This lets you provide fallback content in the case
- * that no transcluded content is provided.
- *
- * @element ANY
- *
- * @param {string} ngTransclude|ngTranscludeSlot the name of the slot to insert at this point. If this is not provided, is empty
- * or its value is the same as the name of the attribute then the default slot is used.
- *
- * @example
- * ### Basic transclusion
- * This example demonstrates basic transclusion of content into a component directive.
- * <example name="simpleTranscludeExample" module="transcludeExample">
- * <file name="index.html">
- * <script>
- * angular.module('transcludeExample', [])
- * .directive('pane', function(){
- * return {
- * restrict: 'E',
- * transclude: true,
- * scope: { title:'@' },
- * template: '<div style="border: 1px solid black;">' +
- * '<div style="background-color: gray">{{title}}</div>' +
- * '<ng-transclude></ng-transclude>' +
- * '</div>'
- * };
- * })
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.title = 'Lorem Ipsum';
- * $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <input ng-model="title" aria-label="title"> <br/>
- * <textarea ng-model="text" aria-label="text"></textarea> <br/>
- * <pane title="{{title}}">{{text}}</pane>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should have transcluded', function() {
- * var titleElement = element(by.model('title'));
- * titleElement.clear();
- * titleElement.sendKeys('TITLE');
- * var textElement = element(by.model('text'));
- * textElement.clear();
- * textElement.sendKeys('TEXT');
- * expect(element(by.binding('title')).getText()).toEqual('TITLE');
- * expect(element(by.binding('text')).getText()).toEqual('TEXT');
- * });
- * </file>
- * </example>
- *
- * @example
- * ### Transclude fallback content
- * This example shows how to use `NgTransclude` with fallback content, that
- * is displayed if no transcluded content is provided.
- *
- * <example module="transcludeFallbackContentExample" name="ng-transclude">
- * <file name="index.html">
- * <script>
- * angular.module('transcludeFallbackContentExample', [])
- * .directive('myButton', function(){
- * return {
- * restrict: 'E',
- * transclude: true,
- * scope: true,
- * template: '<button style="cursor: pointer;">' +
- * '<ng-transclude>' +
- * '<b style="color: red;">Button1</b>' +
- * '</ng-transclude>' +
- * '</button>'
- * };
- * });
- * </script>
- * <!-- fallback button content -->
- * <my-button id="fallback"></my-button>
- * <!-- modified button content -->
- * <my-button id="modified">
- * <i style="color: green;">Button2</i>
- * </my-button>
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should have different transclude element content', function() {
- * expect(element(by.id('fallback')).getText()).toBe('Button1');
- * expect(element(by.id('modified')).getText()).toBe('Button2');
- * });
- * </file>
- * </example>
- *
- * @example
- * ### Multi-slot transclusion
- * This example demonstrates using multi-slot transclusion in a component directive.
- * <example name="multiSlotTranscludeExample" module="multiSlotTranscludeExample">
- * <file name="index.html">
- * <style>
- * .title, .footer {
- * background-color: gray
- * }
- * </style>
- * <div ng-controller="ExampleController">
- * <input ng-model="title" aria-label="title"> <br/>
- * <textarea ng-model="text" aria-label="text"></textarea> <br/>
- * <pane>
- * <pane-title><a ng-href="{{link}}">{{title}}</a></pane-title>
- * <pane-body><p>{{text}}</p></pane-body>
- * </pane>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('multiSlotTranscludeExample', [])
- * .directive('pane', function() {
- * return {
- * restrict: 'E',
- * transclude: {
- * 'title': '?paneTitle',
- * 'body': 'paneBody',
- * 'footer': '?paneFooter'
- * },
- * template: '<div style="border: 1px solid black;">' +
- * '<div class="title" ng-transclude="title">Fallback Title</div>' +
- * '<div ng-transclude="body"></div>' +
- * '<div class="footer" ng-transclude="footer">Fallback Footer</div>' +
- * '</div>'
- * };
- * })
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.title = 'Lorem Ipsum';
- * $scope.link = 'https://google.com';
- * $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
- * }]);
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should have transcluded the title and the body', function() {
- * var titleElement = element(by.model('title'));
- * titleElement.clear();
- * titleElement.sendKeys('TITLE');
- * var textElement = element(by.model('text'));
- * textElement.clear();
- * textElement.sendKeys('TEXT');
- * expect(element(by.css('.title')).getText()).toEqual('TITLE');
- * expect(element(by.binding('text')).getText()).toEqual('TEXT');
- * expect(element(by.css('.footer')).getText()).toEqual('Fallback Footer');
- * });
- * </file>
- * </example>
- */
-var ngTranscludeMinErr = minErr('ngTransclude');
-var ngTranscludeDirective = ['$compile', function($compile) {
- return {
- restrict: 'EAC',
- terminal: true,
- compile: function ngTranscludeCompile(tElement) {
-
- // Remove and cache any original content to act as a fallback
- var fallbackLinkFn = $compile(tElement.contents());
- tElement.empty();
-
- return function ngTranscludePostLink($scope, $element, $attrs, controller, $transclude) {
-
- if (!$transclude) {
- throw ngTranscludeMinErr('orphan',
- 'Illegal use of ngTransclude directive in the template! ' +
- 'No parent directive that requires a transclusion found. ' +
- 'Element: {0}',
- startingTag($element));
- }
-
-
- // If the attribute is of the form: `ng-transclude="ng-transclude"` then treat it like the default
- if ($attrs.ngTransclude === $attrs.$attr.ngTransclude) {
- $attrs.ngTransclude = '';
- }
- var slotName = $attrs.ngTransclude || $attrs.ngTranscludeSlot;
-
- // If the slot is required and no transclusion content is provided then this call will throw an error
- $transclude(ngTranscludeCloneAttachFn, null, slotName);
-
- // If the slot is optional and no transclusion content is provided then use the fallback content
- if (slotName && !$transclude.isSlotFilled(slotName)) {
- useFallbackContent();
- }
-
- function ngTranscludeCloneAttachFn(clone, transcludedScope) {
- if (clone.length) {
- $element.append(clone);
- } else {
- useFallbackContent();
- // There is nothing linked against the transcluded scope since no content was available,
- // so it should be safe to clean up the generated scope.
- transcludedScope.$destroy();
- }
- }
-
- function useFallbackContent() {
- // Since this is the fallback content rather than the transcluded content,
- // we link against the scope of this directive rather than the transcluded scope
- fallbackLinkFn($scope, function(clone) {
- $element.append(clone);
- });
- }
- };
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name script
- * @restrict E
- *
- * @description
- * Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the
- * template can be used by {@link ng.directive:ngInclude `ngInclude`},
- * {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the
- * `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be
- * assigned through the element's `id`, which can then be used as a directive's `templateUrl`.
- *
- * @param {string} type Must be set to `'text/ng-template'`.
- * @param {string} id Cache name of the template.
- *
- * @example
- <example name="script-tag">
- <file name="index.html">
- <script type="text/ng-template" id="/tpl.html">
- Content of the template.
- </script>
-
- <a ng-click="currentTpl='/tpl.html'" id="tpl-link">Load inlined template</a>
- <div id="tpl-content" ng-include src="currentTpl"></div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should load template defined inside script tag', function() {
- element(by.css('#tpl-link')).click();
- expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);
- });
- </file>
- </example>
- */
-var scriptDirective = ['$templateCache', function($templateCache) {
- return {
- restrict: 'E',
- terminal: true,
- compile: function(element, attr) {
- if (attr.type === 'text/ng-template') {
- var templateUrl = attr.id,
- text = element[0].text;
-
- $templateCache.put(templateUrl, text);
- }
- }
- };
-}];
-
-/* exported selectDirective, optionDirective */
-
-var noopNgModelController = { $setViewValue: noop, $render: noop };
-
-function chromeHack(optionElement) {
- // Workaround for https://code.google.com/p/chromium/issues/detail?id=381459
- // Adding an <option selected="selected"> element to a <select required="required"> should
- // automatically select the new element
- if (optionElement[0].hasAttribute('selected')) {
- optionElement[0].selected = true;
- }
-}
-
-/**
- * @ngdoc type
- * @name select.SelectController
- * @description
- * The controller for the `<select>` directive. This provides support for reading
- * and writing the selected value(s) of the control and also coordinates dynamically
- * added `<option>` elements, perhaps by an `ngRepeat` directive.
- */
-var SelectController =
- ['$element', '$scope', /** @this */ function($element, $scope) {
-
- var self = this,
- optionsMap = new HashMap();
-
- // If the ngModel doesn't get provided then provide a dummy noop version to prevent errors
- self.ngModelCtrl = noopNgModelController;
-
- // The "unknown" option is one that is prepended to the list if the viewValue
- // does not match any of the options. When it is rendered the value of the unknown
- // option is '? XXX ?' where XXX is the hashKey of the value that is not known.
- //
- // We can't just jqLite('<option>') since jqLite is not smart enough
- // to create it in <select> and IE barfs otherwise.
- self.unknownOption = jqLite(window.document.createElement('option'));
- self.renderUnknownOption = function(val) {
- var unknownVal = '? ' + hashKey(val) + ' ?';
- self.unknownOption.val(unknownVal);
- $element.prepend(self.unknownOption);
- $element.val(unknownVal);
- };
-
- $scope.$on('$destroy', function() {
- // disable unknown option so that we don't do work when the whole select is being destroyed
- self.renderUnknownOption = noop;
- });
-
- self.removeUnknownOption = function() {
- if (self.unknownOption.parent()) self.unknownOption.remove();
- };
-
-
- // Read the value of the select control, the implementation of this changes depending
- // upon whether the select can have multiple values and whether ngOptions is at work.
- self.readValue = function readSingleValue() {
- self.removeUnknownOption();
- return $element.val();
- };
-
-
- // Write the value to the select control, the implementation of this changes depending
- // upon whether the select can have multiple values and whether ngOptions is at work.
- self.writeValue = function writeSingleValue(value) {
- if (self.hasOption(value)) {
- self.removeUnknownOption();
- $element.val(value);
- if (value === '') self.emptyOption.prop('selected', true); // to make IE9 happy
- } else {
- if (value == null && self.emptyOption) {
- self.removeUnknownOption();
- $element.val('');
- } else {
- self.renderUnknownOption(value);
- }
- }
- };
-
-
- // Tell the select control that an option, with the given value, has been added
- self.addOption = function(value, element) {
- // Skip comment nodes, as they only pollute the `optionsMap`
- if (element[0].nodeType === NODE_TYPE_COMMENT) return;
-
- assertNotHasOwnProperty(value, '"option value"');
- if (value === '') {
- self.emptyOption = element;
- }
- var count = optionsMap.get(value) || 0;
- optionsMap.put(value, count + 1);
- self.ngModelCtrl.$render();
- chromeHack(element);
- };
-
- // Tell the select control that an option, with the given value, has been removed
- self.removeOption = function(value) {
- var count = optionsMap.get(value);
- if (count) {
- if (count === 1) {
- optionsMap.remove(value);
- if (value === '') {
- self.emptyOption = undefined;
- }
- } else {
- optionsMap.put(value, count - 1);
- }
- }
- };
-
- // Check whether the select control has an option matching the given value
- self.hasOption = function(value) {
- return !!optionsMap.get(value);
- };
-
-
- self.registerOption = function(optionScope, optionElement, optionAttrs, hasDynamicValueAttr, interpolateTextFn) {
-
- if (hasDynamicValueAttr) {
- // either "value" is interpolated directly, or set by ngValue
- var oldVal;
- optionAttrs.$observe('value', function valueAttributeObserveAction(newVal) {
- if (isDefined(oldVal)) {
- self.removeOption(oldVal);
- }
- oldVal = newVal;
- self.addOption(newVal, optionElement);
- });
- } else if (interpolateTextFn) {
- // The text content is interpolated
- optionScope.$watch(interpolateTextFn, function interpolateWatchAction(newVal, oldVal) {
- optionAttrs.$set('value', newVal);
- if (oldVal !== newVal) {
- self.removeOption(oldVal);
- }
- self.addOption(newVal, optionElement);
- });
- } else {
- // The value attribute is static
- self.addOption(optionAttrs.value, optionElement);
- }
-
- optionElement.on('$destroy', function() {
- self.removeOption(optionAttrs.value);
- self.ngModelCtrl.$render();
- });
- };
-}];
-
-/**
- * @ngdoc directive
- * @name select
- * @restrict E
- *
- * @description
- * HTML `SELECT` element with angular data-binding.
- *
- * The `select` directive is used together with {@link ngModel `ngModel`} to provide data-binding
- * between the scope and the `<select>` control (including setting default values).
- * It also handles dynamic `<option>` elements, which can be added using the {@link ngRepeat `ngRepeat}` or
- * {@link ngOptions `ngOptions`} directives.
- *
- * When an item in the `<select>` menu is selected, the value of the selected option will be bound
- * to the model identified by the `ngModel` directive. With static or repeated options, this is
- * the content of the `value` attribute or the textContent of the `<option>`, if the value attribute is missing.
- * For dynamic options, use interpolation inside the `value` attribute or the `textContent`. Using
- * {@link ngValue ngValue} is also possible (as it sets the `value` attribute), and will take
- * precedence over `value` and `textContent`.
- *
- * <div class="alert alert-warning">
- * Note that the value of a `select` directive used without `ngOptions` is always a string.
- * When the model needs to be bound to a non-string value, you must either explicitly convert it
- * using a directive (see example below) or use `ngOptions` to specify the set of options.
- * This is because an option element can only be bound to string values at present.
- * </div>
- *
- * If the viewValue of `ngModel` does not match any of the options, then the control
- * will automatically add an "unknown" option, which it then removes when the mismatch is resolved.
- *
- * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
- * be nested into the `<select>` element. This element will then represent the `null` or "not selected"
- * option. See example below for demonstration.
- *
- * <div class="alert alert-info">
- * In many cases, `ngRepeat` can be used on `<option>` elements instead of {@link ng.directive:ngOptions
- * ngOptions} to achieve a similar result. However, `ngOptions` provides some benefits, such as
- * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
- * comprehension expression, and additionally in reducing memory and increasing speed by not creating
- * a new scope for each repeated instance.
- * </div>
- *
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} multiple Allows multiple options to be selected. The selected values will be
- * bound to the model as an array.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds required attribute and required validation constraint to
- * the element when the ngRequired expression evaluates to true. Use ngRequired instead of required
- * when you want to data-bind to the required attribute.
- * @param {string=} ngChange Angular expression to be executed when selected option(s) changes due to user
- * interaction with the select element.
- * @param {string=} ngOptions sets the options that the select is populated with and defines what is
- * set on the model on selection. See {@link ngOptions `ngOptions`}.
- *
- * @example
- * ### Simple `select` elements with static options
- *
- * <example name="static-select" module="staticSelect">
- * <file name="index.html">
- * <div ng-controller="ExampleController">
- * <form name="myForm">
- * <label for="singleSelect"> Single select: </label><br>
- * <select name="singleSelect" ng-model="data.singleSelect">
- * <option value="option-1">Option 1</option>
- * <option value="option-2">Option 2</option>
- * </select><br>
- *
- * <label for="singleSelect"> Single select with "not selected" option and dynamic option values: </label><br>
- * <select name="singleSelect" id="singleSelect" ng-model="data.singleSelect">
- * <option value="">---Please select---</option> <!-- not selected / blank option -->
- * <option value="{{data.option1}}">Option 1</option> <!-- interpolation -->
- * <option value="option-2">Option 2</option>
- * </select><br>
- * <button ng-click="forceUnknownOption()">Force unknown option</button><br>
- * <tt>singleSelect = {{data.singleSelect}}</tt>
- *
- * <hr>
- * <label for="multipleSelect"> Multiple select: </label><br>
- * <select name="multipleSelect" id="multipleSelect" ng-model="data.multipleSelect" multiple>
- * <option value="option-1">Option 1</option>
- * <option value="option-2">Option 2</option>
- * <option value="option-3">Option 3</option>
- * </select><br>
- * <tt>multipleSelect = {{data.multipleSelect}}</tt><br/>
- * </form>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('staticSelect', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.data = {
- * singleSelect: null,
- * multipleSelect: [],
- * option1: 'option-1'
- * };
- *
- * $scope.forceUnknownOption = function() {
- * $scope.data.singleSelect = 'nonsense';
- * };
- * }]);
- * </file>
- *</example>
- *
- * ### Using `ngRepeat` to generate `select` options
- * <example name="ngrepeat-select" module="ngrepeatSelect">
- * <file name="index.html">
- * <div ng-controller="ExampleController">
- * <form name="myForm">
- * <label for="repeatSelect"> Repeat select: </label>
- * <select name="repeatSelect" id="repeatSelect" ng-model="data.repeatSelect">
- * <option ng-repeat="option in data.availableOptions" value="{{option.id}}">{{option.name}}</option>
- * </select>
- * </form>
- * <hr>
- * <tt>repeatSelect = {{data.repeatSelect}}</tt><br/>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('ngrepeatSelect', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.data = {
- * repeatSelect: null,
- * availableOptions: [
- * {id: '1', name: 'Option A'},
- * {id: '2', name: 'Option B'},
- * {id: '3', name: 'Option C'}
- * ]
- * };
- * }]);
- * </file>
- *</example>
- *
- *
- * ### Using `select` with `ngOptions` and setting a default value
- * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples.
- *
- * <example name="select-with-default-values" module="defaultValueSelect">
- * <file name="index.html">
- * <div ng-controller="ExampleController">
- * <form name="myForm">
- * <label for="mySelect">Make a choice:</label>
- * <select name="mySelect" id="mySelect"
- * ng-options="option.name for option in data.availableOptions track by option.id"
- * ng-model="data.selectedOption"></select>
- * </form>
- * <hr>
- * <tt>option = {{data.selectedOption}}</tt><br/>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('defaultValueSelect', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.data = {
- * availableOptions: [
- * {id: '1', name: 'Option A'},
- * {id: '2', name: 'Option B'},
- * {id: '3', name: 'Option C'}
- * ],
- * selectedOption: {id: '3', name: 'Option C'} //This sets the default value of the select in the ui
- * };
- * }]);
- * </file>
- *</example>
- *
- *
- * ### Binding `select` to a non-string value via `ngModel` parsing / formatting
- *
- * <example name="select-with-non-string-options" module="nonStringSelect">
- * <file name="index.html">
- * <select ng-model="model.id" convert-to-number>
- * <option value="0">Zero</option>
- * <option value="1">One</option>
- * <option value="2">Two</option>
- * </select>
- * {{ model }}
- * </file>
- * <file name="app.js">
- * angular.module('nonStringSelect', [])
- * .run(function($rootScope) {
- * $rootScope.model = { id: 2 };
- * })
- * .directive('convertToNumber', function() {
- * return {
- * require: 'ngModel',
- * link: function(scope, element, attrs, ngModel) {
- * ngModel.$parsers.push(function(val) {
- * return parseInt(val, 10);
- * });
- * ngModel.$formatters.push(function(val) {
- * return '' + val;
- * });
- * }
- * };
- * });
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should initialize to model', function() {
- * expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two');
- * });
- * </file>
- * </example>
- *
- */
-var selectDirective = function() {
-
- return {
- restrict: 'E',
- require: ['select', '?ngModel'],
- controller: SelectController,
- priority: 1,
- link: {
- pre: selectPreLink,
- post: selectPostLink
- }
- };
-
- function selectPreLink(scope, element, attr, ctrls) {
-
- // if ngModel is not defined, we don't need to do anything
- var ngModelCtrl = ctrls[1];
- if (!ngModelCtrl) return;
-
- var selectCtrl = ctrls[0];
-
- selectCtrl.ngModelCtrl = ngModelCtrl;
-
- // When the selected item(s) changes we delegate getting the value of the select control
- // to the `readValue` method, which can be changed if the select can have multiple
- // selected values or if the options are being generated by `ngOptions`
- element.on('change', function() {
- scope.$apply(function() {
- ngModelCtrl.$setViewValue(selectCtrl.readValue());
- });
- });
-
- // If the select allows multiple values then we need to modify how we read and write
- // values from and to the control; also what it means for the value to be empty and
- // we have to add an extra watch since ngModel doesn't work well with arrays - it
- // doesn't trigger rendering if only an item in the array changes.
- if (attr.multiple) {
-
- // Read value now needs to check each option to see if it is selected
- selectCtrl.readValue = function readMultipleValue() {
- var array = [];
- forEach(element.find('option'), function(option) {
- if (option.selected) {
- array.push(option.value);
- }
- });
- return array;
- };
-
- // Write value now needs to set the selected property of each matching option
- selectCtrl.writeValue = function writeMultipleValue(value) {
- var items = new HashMap(value);
- forEach(element.find('option'), function(option) {
- option.selected = isDefined(items.get(option.value));
- });
- };
-
- // we have to do it on each watch since ngModel watches reference, but
- // we need to work of an array, so we need to see if anything was inserted/removed
- var lastView, lastViewRef = NaN;
- scope.$watch(function selectMultipleWatch() {
- if (lastViewRef === ngModelCtrl.$viewValue && !equals(lastView, ngModelCtrl.$viewValue)) {
- lastView = shallowCopy(ngModelCtrl.$viewValue);
- ngModelCtrl.$render();
- }
- lastViewRef = ngModelCtrl.$viewValue;
- });
-
- // If we are a multiple select then value is now a collection
- // so the meaning of $isEmpty changes
- ngModelCtrl.$isEmpty = function(value) {
- return !value || value.length === 0;
- };
-
- }
- }
-
- function selectPostLink(scope, element, attrs, ctrls) {
- // if ngModel is not defined, we don't need to do anything
- var ngModelCtrl = ctrls[1];
- if (!ngModelCtrl) return;
-
- var selectCtrl = ctrls[0];
-
- // We delegate rendering to the `writeValue` method, which can be changed
- // if the select can have multiple selected values or if the options are being
- // generated by `ngOptions`.
- // This must be done in the postLink fn to prevent $render to be called before
- // all nodes have been linked correctly.
- ngModelCtrl.$render = function() {
- selectCtrl.writeValue(ngModelCtrl.$viewValue);
- };
- }
-};
-
-
-// The option directive is purely designed to communicate the existence (or lack of)
-// of dynamically created (and destroyed) option elements to their containing select
-// directive via its controller.
-var optionDirective = ['$interpolate', function($interpolate) {
- return {
- restrict: 'E',
- priority: 100,
- compile: function(element, attr) {
- var hasDynamicValueAttr, interpolateTextFn;
-
- if (isDefined(attr.ngValue)) {
- // If ngValue is defined, then the value attr will be set to the result of the expression,
- // and the selectCtrl must set up an observer
- hasDynamicValueAttr = true;
- } else if (isDefined(attr.value)) {
- // If the value attr contains an interpolation, the selectCtrl must set up an observer
- hasDynamicValueAttr = $interpolate(attr.value, true);
- } else {
- // If the value attribute is not defined then we fall back to the
- // text content of the option element, which may be interpolated
- interpolateTextFn = $interpolate(element.text(), true);
- if (!interpolateTextFn) {
- attr.$set('value', element.text());
- }
- }
-
- return function(scope, element, attr) {
- // This is an optimization over using ^^ since we don't want to have to search
- // all the way to the root of the DOM for every single option element
- var selectCtrlName = '$selectController',
- parent = element.parent(),
- selectCtrl = parent.data(selectCtrlName) ||
- parent.parent().data(selectCtrlName); // in case we are in optgroup
-
- if (selectCtrl) {
- selectCtrl.registerOption(scope, element, attr, hasDynamicValueAttr, interpolateTextFn);
- }
- };
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngRequired
- * @restrict A
- *
- * @description
- *
- * ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
- * It is most often used for {@link input `input`} and {@link select `select`} controls, but can also be
- * applied to custom controls.
- *
- * The directive sets the `required` attribute on the element if the Angular expression inside
- * `ngRequired` evaluates to true. A special directive for setting `required` is necessary because we
- * cannot use interpolation inside `required`. See the {@link guide/interpolation interpolation guide}
- * for more info.
- *
- * The validator will set the `required` error key to true if the `required` attribute is set and
- * calling {@link ngModel.NgModelController#$isEmpty `NgModelController.$isEmpty`} with the
- * {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`} returns `true`. For example, the
- * `$isEmpty()` implementation for `input[text]` checks the length of the `$viewValue`. When developing
- * custom controls, `$isEmpty()` can be overwritten to account for a $viewValue that is not string-based.
- *
- * @example
- * <example name="ngRequiredDirective" module="ngRequiredExample">
- * <file name="index.html">
- * <script>
- * angular.module('ngRequiredExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.required = true;
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <form name="form">
- * <label for="required">Toggle required: </label>
- * <input type="checkbox" ng-model="required" id="required" />
- * <br>
- * <label for="input">This input must be filled if `required` is true: </label>
- * <input type="text" ng-model="model" id="input" name="input" ng-required="required" /><br>
- * <hr>
- * required error set? = <code>{{form.input.$error.required}}</code><br>
- * model = <code>{{model}}</code>
- * </form>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- var required = element(by.binding('form.input.$error.required'));
- var model = element(by.binding('model'));
- var input = element(by.id('input'));
-
- it('should set the required error', function() {
- expect(required.getText()).toContain('true');
-
- input.sendKeys('123');
- expect(required.getText()).not.toContain('true');
- expect(model.getText()).toContain('123');
- });
- * </file>
- * </example>
- */
-var requiredDirective = function() {
- return {
- restrict: 'A',
- require: '?ngModel',
- link: function(scope, elm, attr, ctrl) {
- if (!ctrl) return;
- attr.required = true; // force truthy in case we are on non input element
-
- ctrl.$validators.required = function(modelValue, viewValue) {
- return !attr.required || !ctrl.$isEmpty(viewValue);
- };
-
- attr.$observe('required', function() {
- ctrl.$validate();
- });
- }
- };
-};
-
-/**
- * @ngdoc directive
- * @name ngPattern
- *
- * @description
- *
- * ngPattern adds the pattern {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
- *
- * The validator sets the `pattern` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
- * does not match a RegExp which is obtained by evaluating the Angular expression given in the
- * `ngPattern` attribute value:
- * * If the expression evaluates to a RegExp object, then this is used directly.
- * * If the expression evaluates to a string, then it will be converted to a RegExp after wrapping it
- * in `^` and `$` characters. For instance, `"abc"` will be converted to `new RegExp('^abc$')`.
- *
- * <div class="alert alert-info">
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * </div>
- *
- * <div class="alert alert-info">
- * **Note:** This directive is also added when the plain `pattern` attribute is used, with two
- * differences:
- * <ol>
- * <li>
- * `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is
- * not available.
- * </li>
- * <li>
- * The `ngPattern` attribute must be an expression, while the `pattern` value must be
- * interpolated.
- * </li>
- * </ol>
- * </div>
- *
- * @example
- * <example name="ngPatternDirective" module="ngPatternExample">
- * <file name="index.html">
- * <script>
- * angular.module('ngPatternExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.regex = '\\d+';
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <form name="form">
- * <label for="regex">Set a pattern (regex string): </label>
- * <input type="text" ng-model="regex" id="regex" />
- * <br>
- * <label for="input">This input is restricted by the current pattern: </label>
- * <input type="text" ng-model="model" id="input" name="input" ng-pattern="regex" /><br>
- * <hr>
- * input valid? = <code>{{form.input.$valid}}</code><br>
- * model = <code>{{model}}</code>
- * </form>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- var model = element(by.binding('model'));
- var input = element(by.id('input'));
-
- it('should validate the input with the default pattern', function() {
- input.sendKeys('aaa');
- expect(model.getText()).not.toContain('aaa');
-
- input.clear().then(function() {
- input.sendKeys('123');
- expect(model.getText()).toContain('123');
- });
- });
- * </file>
- * </example>
- */
-var patternDirective = function() {
- return {
- restrict: 'A',
- require: '?ngModel',
- link: function(scope, elm, attr, ctrl) {
- if (!ctrl) return;
-
- var regexp, patternExp = attr.ngPattern || attr.pattern;
- attr.$observe('pattern', function(regex) {
- if (isString(regex) && regex.length > 0) {
- regex = new RegExp('^' + regex + '$');
- }
-
- if (regex && !regex.test) {
- throw minErr('ngPattern')('noregexp',
- 'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp,
- regex, startingTag(elm));
- }
-
- regexp = regex || undefined;
- ctrl.$validate();
- });
-
- ctrl.$validators.pattern = function(modelValue, viewValue) {
- // HTML5 pattern constraint validates the input value, so we validate the viewValue
- return ctrl.$isEmpty(viewValue) || isUndefined(regexp) || regexp.test(viewValue);
- };
- }
- };
-};
-
-/**
- * @ngdoc directive
- * @name ngMaxlength
- *
- * @description
- *
- * ngMaxlength adds the maxlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
- *
- * The validator sets the `maxlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
- * is longer than the integer obtained by evaluating the Angular expression given in the
- * `ngMaxlength` attribute value.
- *
- * <div class="alert alert-info">
- * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two
- * differences:
- * <ol>
- * <li>
- * `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint
- * validation is not available.
- * </li>
- * <li>
- * The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be
- * interpolated.
- * </li>
- * </ol>
- * </div>
- *
- * @example
- * <example name="ngMaxlengthDirective" module="ngMaxlengthExample">
- * <file name="index.html">
- * <script>
- * angular.module('ngMaxlengthExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.maxlength = 5;
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <form name="form">
- * <label for="maxlength">Set a maxlength: </label>
- * <input type="number" ng-model="maxlength" id="maxlength" />
- * <br>
- * <label for="input">This input is restricted by the current maxlength: </label>
- * <input type="text" ng-model="model" id="input" name="input" ng-maxlength="maxlength" /><br>
- * <hr>
- * input valid? = <code>{{form.input.$valid}}</code><br>
- * model = <code>{{model}}</code>
- * </form>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- var model = element(by.binding('model'));
- var input = element(by.id('input'));
-
- it('should validate the input with the default maxlength', function() {
- input.sendKeys('abcdef');
- expect(model.getText()).not.toContain('abcdef');
-
- input.clear().then(function() {
- input.sendKeys('abcde');
- expect(model.getText()).toContain('abcde');
- });
- });
- * </file>
- * </example>
- */
-var maxlengthDirective = function() {
- return {
- restrict: 'A',
- require: '?ngModel',
- link: function(scope, elm, attr, ctrl) {
- if (!ctrl) return;
-
- var maxlength = -1;
- attr.$observe('maxlength', function(value) {
- var intVal = toInt(value);
- maxlength = isNumberNaN(intVal) ? -1 : intVal;
- ctrl.$validate();
- });
- ctrl.$validators.maxlength = function(modelValue, viewValue) {
- return (maxlength < 0) || ctrl.$isEmpty(viewValue) || (viewValue.length <= maxlength);
- };
- }
- };
-};
-
-/**
- * @ngdoc directive
- * @name ngMinlength
- *
- * @description
- *
- * ngMinlength adds the minlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
- *
- * The validator sets the `minlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
- * is shorter than the integer obtained by evaluating the Angular expression given in the
- * `ngMinlength` attribute value.
- *
- * <div class="alert alert-info">
- * **Note:** This directive is also added when the plain `minlength` attribute is used, with two
- * differences:
- * <ol>
- * <li>
- * `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint
- * validation is not available.
- * </li>
- * <li>
- * The `ngMinlength` value must be an expression, while the `minlength` value must be
- * interpolated.
- * </li>
- * </ol>
- * </div>
- *
- * @example
- * <example name="ngMinlengthDirective" module="ngMinlengthExample">
- * <file name="index.html">
- * <script>
- * angular.module('ngMinlengthExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.minlength = 3;
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <form name="form">
- * <label for="minlength">Set a minlength: </label>
- * <input type="number" ng-model="minlength" id="minlength" />
- * <br>
- * <label for="input">This input is restricted by the current minlength: </label>
- * <input type="text" ng-model="model" id="input" name="input" ng-minlength="minlength" /><br>
- * <hr>
- * input valid? = <code>{{form.input.$valid}}</code><br>
- * model = <code>{{model}}</code>
- * </form>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- var model = element(by.binding('model'));
- var input = element(by.id('input'));
-
- it('should validate the input with the default minlength', function() {
- input.sendKeys('ab');
- expect(model.getText()).not.toContain('ab');
-
- input.sendKeys('abc');
- expect(model.getText()).toContain('abc');
- });
- * </file>
- * </example>
- */
-var minlengthDirective = function() {
- return {
- restrict: 'A',
- require: '?ngModel',
- link: function(scope, elm, attr, ctrl) {
- if (!ctrl) return;
-
- var minlength = 0;
- attr.$observe('minlength', function(value) {
- minlength = toInt(value) || 0;
- ctrl.$validate();
- });
- ctrl.$validators.minlength = function(modelValue, viewValue) {
- return ctrl.$isEmpty(viewValue) || viewValue.length >= minlength;
- };
- }
- };
-};
-
-if (window.angular.bootstrap) {
- //AngularJS is already loaded, so we can return here...
- if (window.console) {
- console.log('WARNING: Tried to load angular more than once.');
- }
- return;
-}
-
-//try to bind to jquery now so that one can write jqLite(document).ready()
-//but we will rebind on bootstrap again.
-bindJQuery();
-
-publishExternalAPI(angular);
-
-angular.module("ngLocale", [], ["$provide", function($provide) {
-var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
-function getDecimals(n) {
- n = n + '';
- var i = n.indexOf('.');
- return (i == -1) ? 0 : n.length - i - 1;
-}
-
-function getVF(n, opt_precision) {
- var v = opt_precision;
-
- if (undefined === v) {
- v = Math.min(getDecimals(n), 3);
- }
-
- var base = Math.pow(10, v);
- var f = ((n * base) | 0) % base;
- return {v: v, f: f};
-}
-
-$provide.value("$locale", {
- "DATETIME_FORMATS": {
- "AMPMS": [
- "AM",
- "PM"
- ],
- "DAY": [
- "Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday"
- ],
- "ERANAMES": [
- "Before Christ",
- "Anno Domini"
- ],
- "ERAS": [
- "BC",
- "AD"
- ],
- "FIRSTDAYOFWEEK": 6,
- "MONTH": [
- "January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December"
- ],
- "SHORTDAY": [
- "Sun",
- "Mon",
- "Tue",
- "Wed",
- "Thu",
- "Fri",
- "Sat"
- ],
- "SHORTMONTH": [
- "Jan",
- "Feb",
- "Mar",
- "Apr",
- "May",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Oct",
- "Nov",
- "Dec"
- ],
- "STANDALONEMONTH": [
- "January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December"
- ],
- "WEEKENDRANGE": [
- 5,
- 6
- ],
- "fullDate": "EEEE, MMMM d, y",
- "longDate": "MMMM d, y",
- "medium": "MMM d, y h:mm:ss a",
- "mediumDate": "MMM d, y",
- "mediumTime": "h:mm:ss a",
- "short": "M/d/yy h:mm a",
- "shortDate": "M/d/yy",
- "shortTime": "h:mm a"
- },
- "NUMBER_FORMATS": {
- "CURRENCY_SYM": "$",
- "DECIMAL_SEP": ".",
- "GROUP_SEP": ",",
- "PATTERNS": [
- {
- "gSize": 3,
- "lgSize": 3,
- "maxFrac": 3,
- "minFrac": 0,
- "minInt": 1,
- "negPre": "-",
- "negSuf": "",
- "posPre": "",
- "posSuf": ""
- },
- {
- "gSize": 3,
- "lgSize": 3,
- "maxFrac": 2,
- "minFrac": 2,
- "minInt": 1,
- "negPre": "-\u00a4",
- "negSuf": "",
- "posPre": "\u00a4",
- "posSuf": ""
- }
- ]
- },
- "id": "en-us",
- "localeID": "en_US",
- "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
-});
-}]);
-
-/**
- * Setup file for the Scenario.
- * Must be first in the compilation/bootstrap list.
- */
-
-// Public namespace
-angular.scenario = angular.scenario || {};
-
-/**
- * Expose jQuery (e.g. for custom dsl extensions).
- */
-angular.scenario.jQuery = _jQuery;
-
-/**
- * Defines a new output format.
- *
- * @param {string} name the name of the new output format
- * @param {function()} fn function(context, runner) that generates the output
- */
-angular.scenario.output = angular.scenario.output || function(name, fn) {
- angular.scenario.output[name] = fn;
-};
-
-/**
- * Defines a new DSL statement. If your factory function returns a Future
- * it's returned, otherwise the result is assumed to be a map of functions
- * for chaining. Chained functions are subject to the same rules.
- *
- * Note: All functions on the chain are bound to the chain scope so values
- * set on "this" in your statement function are available in the chained
- * functions.
- *
- * @param {string} name The name of the statement
- * @param {function()} fn Factory function(), return a function for
- * the statement.
- */
-angular.scenario.dsl = angular.scenario.dsl || function(name, fn) {
- angular.scenario.dsl[name] = function() {
- // The dsl binds `this` for us when calling chained functions
- /** @this */
- function executeStatement(statement, args) {
- var result = statement.apply(this, args);
- if (angular.isFunction(result) || result instanceof angular.scenario.Future) {
- return result;
- }
- var self = this;
- var chain = angular.extend({}, result);
- angular.forEach(chain, function(value, name) {
- if (angular.isFunction(value)) {
- chain[name] = function() {
- return executeStatement.call(self, value, arguments);
- };
- } else {
- chain[name] = value;
- }
- });
- return chain;
- }
- var statement = fn.apply(this, arguments);
- return /** @this */ function() {
- return executeStatement.call(this, statement, arguments);
- };
- };
-};
-
-/**
- * Defines a new matcher for use with the expects() statement. The value
- * this.actual (like in Jasmine) is available in your matcher to compare
- * against. Your function should return a boolean. The future is automatically
- * created for you.
- *
- * @param {string} name The name of the matcher
- * @param {function()} fn The matching function(expected).
- */
-angular.scenario.matcher = angular.scenario.matcher || function(name, fn) {
- angular.scenario.matcher[name] = function(expected) {
- var description = this.future.name +
- (this.inverse ? ' not ' : ' ') + name +
- ' ' + angular.toJson(expected);
- var self = this;
- this.addFuture('expect ' + description,
- function(done) {
- var error;
- self.actual = self.future.value;
- if ((self.inverse && fn.call(self, expected)) ||
- (!self.inverse && !fn.call(self, expected))) {
- error = 'expected ' + description +
- ' but was ' + angular.toJson(self.actual);
- }
- done(error);
- });
- };
-};
-
-/**
- * Initialize the scenario runner and run !
- *
- * Access global window and document object
- * Access $runner through closure
- *
- * @param {Object=} config Config options
- */
-angular.scenario.setUpAndRun = function(config) {
- var href = window.location.href;
- var body = _jQuery(window.document.body);
- var output = [];
- var objModel = new angular.scenario.ObjectModel($runner);
-
- if (config && config.scenario_output) {
- output = config.scenario_output.split(',');
- }
-
- angular.forEach(angular.scenario.output, function(fn, name) {
- if (!output.length || output.indexOf(name) !== -1) {
- var context = body.append('<div></div>').find('div:last');
- context.attr('id', name);
- fn.call({}, context, $runner, objModel);
- }
- });
-
- if (!/^http/.test(href) && !/^https/.test(href)) {
- body.append('<p id="system-error"></p>');
- body.find('#system-error').text(
- 'Scenario runner must be run using http or https. The protocol ' +
- href.split(':')[0] + ':// is not supported.'
- );
- return;
- }
-
- var appFrame = body.append('<div id="application"></div>').find('#application');
- var application = new angular.scenario.Application(appFrame);
-
- $runner.on('RunnerEnd', function() {
- appFrame.css('display', 'none');
- appFrame.find('iframe').attr('src', 'about:blank');
- });
-
- $runner.on('RunnerError', function(error) {
- if (window.console) {
- console.log(formatException(error));
- } else {
- // Do something for IE
- // eslint-disable-next-line no-alert
- alert(error);
- }
- });
-
- $runner.run(application);
-};
-
-/**
- * Iterates through list with iterator function that must call the
- * continueFunction to continue iterating.
- *
- * @param {Array} list list to iterate over
- * @param {function()} iterator Callback function(value, continueFunction)
- * @param {function()} done Callback function(error, result) called when
- * iteration finishes or an error occurs.
- */
-function asyncForEach(list, iterator, done) {
- var i = 0;
- function loop(error, index) {
- if (index && index > i) {
- i = index;
- }
- if (error || i >= list.length) {
- done(error);
- } else {
- try {
- iterator(list[i++], loop);
- } catch (e) {
- done(e);
- }
- }
- }
- loop();
-}
-
-/**
- * Formats an exception into a string with the stack trace, but limits
- * to a specific line length.
- *
- * @param {Object} error The exception to format, can be anything throwable
- * @param {Number=} [maxStackLines=5] max lines of the stack trace to include
- * default is 5.
- */
-function formatException(error, maxStackLines) {
- maxStackLines = maxStackLines || 5;
- var message = error.toString();
- if (error.stack) {
- var stack = error.stack.split('\n');
- if (stack[0].indexOf(message) === -1) {
- maxStackLines++;
- stack.unshift(error.message);
- }
- message = stack.slice(0, maxStackLines).join('\n');
- }
- return message;
-}
-
-/**
- * Returns a function that gets the file name and line number from a
- * location in the stack if available based on the call site.
- *
- * Note: this returns another function because accessing .stack is very
- * expensive in Chrome.
- *
- * @param {Number} offset Number of stack lines to skip
- */
-function callerFile(offset) {
- var error = new Error();
-
- return function() {
- var line = (error.stack || '').split('\n')[offset];
-
- // Clean up the stack trace line
- if (line) {
- if (line.indexOf('@') !== -1) {
- // Firefox
- line = line.substring(line.indexOf('@') + 1);
- } else {
- // Chrome
- line = line.substring(line.indexOf('(') + 1).replace(')', '');
- }
- }
-
- return line || '';
- };
-}
-
-
-/**
- * Don't use the jQuery trigger method since it works incorrectly.
- *
- * jQuery notifies listeners and then changes the state of a checkbox and
- * does not create a real browser event. A real click changes the state of
- * the checkbox and then notifies listeners.
- *
- * To work around this we instead use our own handler that fires a real event.
- */
-(function(fn) {
- // We need a handle to the original trigger function for input tests.
- var parentTrigger = fn._originalTrigger = fn.trigger;
- fn.trigger = function(type) {
- if (/(click|change|keydown|blur|input|mousedown|mouseup)/.test(type)) {
- var processDefaults = [];
- this.each(function(index, node) {
- processDefaults.push(browserTrigger(node, type));
- });
-
- // this is not compatible with jQuery - we return an array of returned values,
- // so that scenario runner know whether JS code has preventDefault() of the event or not...
- return processDefaults;
- }
- return parentTrigger.apply(this, arguments);
- };
-})(_jQuery.fn);
-
-/**
- * Finds all bindings with the substring match of name and returns an
- * array of their values.
- *
- * @param {string} bindExp The name to match
- * @return {Array.<string>} String of binding values
- */
-_jQuery.fn.bindings = function(windowJquery, bindExp) {
- var result = [], match,
- bindSelector = '.ng-binding:visible';
- if (angular.isString(bindExp)) {
- bindExp = bindExp.replace(/\s/g, '');
- match = function(actualExp) {
- if (actualExp) {
- actualExp = actualExp.replace(/\s/g, '');
- if (actualExp === bindExp) return true;
- if (actualExp.indexOf(bindExp) === 0) {
- return actualExp.charAt(bindExp.length) === '|';
- }
- }
- };
- } else if (bindExp) {
- match = function(actualExp) {
- return actualExp && bindExp.exec(actualExp);
- };
- } else {
- match = function(actualExp) {
- return !!actualExp;
- };
- }
- var selection = this.find(bindSelector);
- if (this.is(bindSelector)) {
- selection = selection.add(this);
- }
-
- function push(value) {
- if (angular.isUndefined(value)) {
- value = '';
- } else if (typeof value !== 'string') {
- value = angular.toJson(value);
- }
- result.push('' + value);
- }
-
- selection.each(/* @this Node */ function() {
- var element = windowJquery(this),
- bindings;
- if ((bindings = element.data('$binding'))) {
- for (var expressions = [], binding, j = 0, jj = bindings.length; j < jj; j++) {
- binding = bindings[j];
-
- if (binding.expressions) {
- expressions = binding.expressions;
- } else {
- expressions = [binding];
- }
- for (var scope, expression, i = 0, ii = expressions.length; i < ii; i++) {
- expression = expressions[i];
- if (match(expression)) {
- scope = scope || element.scope();
- push(scope.$eval(expression));
- }
- }
- }
- }
- });
- return result;
-};
-
-(function() {
- /**
- * Triggers a browser event. Attempts to choose the right event if one is
- * not specified.
- *
- * @param {Object} element Either a wrapped jQuery/jqLite node or a DOMElement
- * @param {string} eventType Optional event type
- * @param {Object=} eventData An optional object which contains additional event data (such as x,y
- * coordinates, keys, etc...) that are passed into the event when triggered
- */
- window.browserTrigger = function browserTrigger(element, eventType, eventData) {
- if (element && !element.nodeName) element = element[0];
- if (!element) return;
-
- eventData = eventData || {};
- var relatedTarget = eventData.relatedTarget || element;
- var keys = eventData.keys;
- var x = eventData.x;
- var y = eventData.y;
-
- var inputType = (element.type) ? element.type.toLowerCase() : null,
- nodeName = element.nodeName.toLowerCase();
- if (!eventType) {
- eventType = {
- 'text': 'change',
- 'textarea': 'change',
- 'hidden': 'change',
- 'password': 'change',
- 'button': 'click',
- 'submit': 'click',
- 'reset': 'click',
- 'image': 'click',
- 'checkbox': 'click',
- 'radio': 'click',
- 'select-one': 'change',
- 'select-multiple': 'change',
- '_default_': 'click'
- }[inputType || '_default_'];
- }
-
- if (nodeName === 'option') {
- element.parentNode.value = element.value;
- element = element.parentNode;
- eventType = 'change';
- }
-
- keys = keys || [];
- function pressed(key) {
- return keys.indexOf(key) !== -1;
- }
-
- var evnt;
- if (/transitionend/.test(eventType)) {
- if (window.WebKitTransitionEvent) {
- evnt = new window.WebKitTransitionEvent(eventType, eventData);
- evnt.initEvent(eventType, false, true);
- } else {
- try {
- evnt = new window.TransitionEvent(eventType, eventData);
- } catch (e) {
- evnt = window.document.createEvent('TransitionEvent');
- evnt.initTransitionEvent(eventType, null, null, null, eventData.elapsedTime || 0);
- }
- }
- } else if (/animationend/.test(eventType)) {
- if (window.WebKitAnimationEvent) {
- evnt = new window.WebKitAnimationEvent(eventType, eventData);
- evnt.initEvent(eventType, false, true);
- } else {
- try {
- evnt = new window.AnimationEvent(eventType, eventData);
- } catch (e) {
- evnt = window.document.createEvent('AnimationEvent');
- evnt.initAnimationEvent(eventType, null, null, null, eventData.elapsedTime || 0);
- }
- }
- } else if (/touch/.test(eventType) && supportsTouchEvents()) {
- evnt = createTouchEvent(element, eventType, x, y);
- } else if (/key/.test(eventType)) {
- evnt = window.document.createEvent('Events');
- evnt.initEvent(eventType, eventData.bubbles, eventData.cancelable);
- evnt.view = window;
- evnt.ctrlKey = pressed('ctrl');
- evnt.altKey = pressed('alt');
- evnt.shiftKey = pressed('shift');
- evnt.metaKey = pressed('meta');
- evnt.keyCode = eventData.keyCode;
- evnt.charCode = eventData.charCode;
- evnt.which = eventData.which;
- } else {
- evnt = window.document.createEvent('MouseEvents');
- x = x || 0;
- y = y || 0;
- evnt.initMouseEvent(eventType, true, true, window, 0, x, y, x, y, pressed('ctrl'),
- pressed('alt'), pressed('shift'), pressed('meta'), 0, relatedTarget);
- }
-
- /* we're unable to change the timeStamp value directly so this
- * is only here to allow for testing where the timeStamp value is
- * read */
- evnt.$manualTimeStamp = eventData.timeStamp;
-
- if (!evnt) return;
-
- var originalPreventDefault = evnt.preventDefault,
- appWindow = element.ownerDocument.defaultView,
- fakeProcessDefault = true,
- finalProcessDefault,
- angular = appWindow.angular || {};
-
- // igor: temporary fix for https://bugzilla.mozilla.org/show_bug.cgi?id=684208
- angular['ff-684208-preventDefault'] = false;
- evnt.preventDefault = function() {
- fakeProcessDefault = false;
- return originalPreventDefault.apply(evnt, arguments);
- };
-
- if (!eventData.bubbles || supportsEventBubblingInDetachedTree() || isAttachedToDocument(element)) {
- element.dispatchEvent(evnt);
- } else {
- triggerForPath(element, evnt);
- }
-
- finalProcessDefault = !(angular['ff-684208-preventDefault'] || !fakeProcessDefault);
-
- delete angular['ff-684208-preventDefault'];
-
- return finalProcessDefault;
- };
-
- function supportsTouchEvents() {
- if ('_cached' in supportsTouchEvents) {
- return supportsTouchEvents._cached;
- }
- if (!window.document.createTouch || !window.document.createTouchList) {
- supportsTouchEvents._cached = false;
- return false;
- }
- try {
- window.document.createEvent('TouchEvent');
- } catch (e) {
- supportsTouchEvents._cached = false;
- return false;
- }
- supportsTouchEvents._cached = true;
- return true;
- }
-
- function createTouchEvent(element, eventType, x, y) {
- var evnt = new window.Event(eventType);
- x = x || 0;
- y = y || 0;
-
- var touch = window.document.createTouch(window, element, Date.now(), x, y, x, y);
- var touches = window.document.createTouchList(touch);
-
- evnt.touches = touches;
-
- return evnt;
- }
-
- function supportsEventBubblingInDetachedTree() {
- if ('_cached' in supportsEventBubblingInDetachedTree) {
- return supportsEventBubblingInDetachedTree._cached;
- }
- supportsEventBubblingInDetachedTree._cached = false;
- var doc = window.document;
- if (doc) {
- var parent = doc.createElement('div'),
- child = parent.cloneNode();
- parent.appendChild(child);
- parent.addEventListener('e', function() {
- supportsEventBubblingInDetachedTree._cached = true;
- });
- var evnt = window.document.createEvent('Events');
- evnt.initEvent('e', true, true);
- child.dispatchEvent(evnt);
- }
- return supportsEventBubblingInDetachedTree._cached;
- }
-
- function triggerForPath(element, evnt) {
- var stop = false;
-
- var _stopPropagation = evnt.stopPropagation;
- evnt.stopPropagation = function() {
- stop = true;
- _stopPropagation.apply(evnt, arguments);
- };
- patchEventTargetForBubbling(evnt, element);
- do {
- element.dispatchEvent(evnt);
- // eslint-disable-next-line no-unmodified-loop-condition
- } while (!stop && (element = element.parentNode));
- }
-
- function patchEventTargetForBubbling(event, target) {
- event._target = target;
- Object.defineProperty(event, 'target', {get: function() { return this._target;}});
- }
-
- function isAttachedToDocument(element) {
- while ((element = element.parentNode)) {
- if (element === window) {
- return true;
- }
- }
- return false;
- }
-})();
-
-/**
- * Represents the application currently being tested and abstracts usage
- * of iframes or separate windows.
- *
- * @param {Object} context jQuery wrapper around HTML context.
- */
-angular.scenario.Application = function(context) {
- this.context = context;
- context.append(
- '<h2>Current URL: <a href="about:blank">None</a></h2>' +
- '<div id="test-frames"></div>'
- );
-};
-
-/**
- * Gets the jQuery collection of frames. Don't use this directly because
- * frames may go stale.
- *
- * @private
- * @return {Object} jQuery collection
- */
-angular.scenario.Application.prototype.getFrame_ = function() {
- return this.context.find('#test-frames iframe:last');
-};
-
-/**
- * Gets the window of the test runner frame. Always favor executeAction()
- * instead of this method since it prevents you from getting a stale window.
- *
- * @private
- * @return {Object} the window of the frame
- */
-angular.scenario.Application.prototype.getWindow_ = function() {
- var contentWindow = this.getFrame_().prop('contentWindow');
- if (!contentWindow) {
- throw new Error('Frame window is not accessible.');
- }
- return contentWindow;
-};
-
-/**
- * Changes the location of the frame.
- *
- * @param {string} url The URL. If it begins with a # then only the
- * hash of the page is changed.
- * @param {function()} loadFn function($window, $document) Called when frame loads.
- * @param {function()} errorFn function(error) Called if any error when loading.
- */
-angular.scenario.Application.prototype.navigateTo = function(url, loadFn, errorFn) {
- var self = this;
- var frame = self.getFrame_();
- //TODO(esprehn): Refactor to use rethrow()
- errorFn = errorFn || function(e) { throw e; };
- if (url === 'about:blank') {
- errorFn('Sandbox Error: Navigating to about:blank is not allowed.');
- } else if (url.charAt(0) === '#') {
- url = frame.attr('src').split('#')[0] + url;
- frame.attr('src', url);
- self.executeAction(loadFn);
- } else {
- frame.remove();
- self.context.find('#test-frames').append('<iframe>');
- frame = self.getFrame_();
-
- frame.on('load', function() {
- frame.off();
- try {
- var $window = self.getWindow_();
-
- if (!$window.angular) {
- self.executeAction(loadFn);
- return;
- }
-
- if (!$window.angular.resumeBootstrap) {
- $window.angular.resumeDeferredBootstrap = resumeDeferredBootstrap;
- } else {
- resumeDeferredBootstrap();
- }
-
- } catch (e) {
- errorFn(e);
- }
-
- function resumeDeferredBootstrap() {
- // Disable animations
- var $injector = $window.angular.resumeBootstrap([['$provide', function($provide) {
- return ['$animate', function($animate) {
- $animate.enabled(false);
- }];
- }]]);
- self.rootElement = $injector.get('$rootElement')[0];
- self.executeAction(loadFn);
- }
- }).attr('src', url);
-
- // for IE compatibility set the name *after* setting the frame url
- frame[0].contentWindow.name = 'NG_DEFER_BOOTSTRAP!';
- }
- self.context.find('> h2 a').attr('href', url).text(url);
-};
-
-/**
- * Executes a function in the context of the tested application. Will wait
- * for all pending angular xhr requests before executing.
- *
- * @param {function()} action The callback to execute. function($window, $document)
- * $document is a jQuery wrapped document.
- */
-angular.scenario.Application.prototype.executeAction = function(action) {
- var self = this;
- var $window = this.getWindow_();
- if (!$window.document) {
- throw new Error('Sandbox Error: Application document not accessible.');
- }
- if (!$window.angular) {
- return action.call(this, $window, _jQuery($window.document));
- }
-
- if (this.rootElement) {
- executeWithElement(this.rootElement);
- } else {
- angularInit($window.document, angular.bind(this, executeWithElement));
- }
-
- function executeWithElement(element) {
- var $injector = $window.angular.element(element).injector();
- var $element = _jQuery(element);
-
- $element.injector = function() {
- return $injector;
- };
-
- $injector.invoke(function($browser) {
- $browser.notifyWhenNoOutstandingRequests(function() {
- action.call(self, $window, $element);
- });
- });
- }
-};
-
-/**
- * The representation of define blocks. Don't used directly, instead use
- * define() in your tests.
- *
- * @param {string} descName Name of the block
- * @param {Object} parent describe or undefined if the root.
- */
-angular.scenario.Describe = function(descName, parent) {
- this.only = parent && parent.only;
- this.beforeEachFns = [];
- this.afterEachFns = [];
- this.its = [];
- this.children = [];
- this.name = descName;
- this.parent = parent;
- this.id = angular.scenario.Describe.id++;
-
- /**
- * Calls all before functions.
- */
- var beforeEachFns = this.beforeEachFns;
- this.setupBefore = function() {
- if (parent) parent.setupBefore.call(this);
- angular.forEach(beforeEachFns, /** @this */ function(fn) { fn.call(this); }, this);
- };
-
- /**
- * Calls all after functions.
- */
- var afterEachFns = this.afterEachFns;
- this.setupAfter = function() {
- angular.forEach(afterEachFns, /** @this */ function(fn) { fn.call(this); }, this);
- if (parent) parent.setupAfter.call(this);
- };
-};
-
-// Shared Unique ID generator for every describe block
-angular.scenario.Describe.id = 0;
-
-// Shared Unique ID generator for every it (spec)
-angular.scenario.Describe.specId = 0;
-
-/**
- * Defines a block to execute before each it or nested describe.
- *
- * @param {function()} body Body of the block.
- */
-angular.scenario.Describe.prototype.beforeEach = function(body) {
- this.beforeEachFns.push(body);
-};
-
-/**
- * Defines a block to execute after each it or nested describe.
- *
- * @param {function()} body Body of the block.
- */
-angular.scenario.Describe.prototype.afterEach = function(body) {
- this.afterEachFns.push(body);
-};
-
-/**
- * Creates a new describe block that's a child of this one.
- *
- * @param {string} name Name of the block. Appended to the parent block's name.
- * @param {function()} body Body of the block.
- */
-angular.scenario.Describe.prototype.describe = function(name, body) {
- var child = new angular.scenario.Describe(name, this);
- this.children.push(child);
- body.call(child);
-};
-
-/**
- * Same as describe() but makes ddescribe blocks the only to run.
- *
- * @param {string} name Name of the test.
- * @param {function()} body Body of the block.
- */
-angular.scenario.Describe.prototype.ddescribe = function(name, body) {
- var child = new angular.scenario.Describe(name, this);
- child.only = true;
- this.children.push(child);
- body.call(child);
-};
-
-/**
- * Use to disable a describe block.
- */
-angular.scenario.Describe.prototype.xdescribe = angular.noop;
-
-/**
- * Defines a test.
- *
- * @param {string} name Name of the test.
- * @param {function()} body Body of the block.
- */
-angular.scenario.Describe.prototype.it = function(name, body) {
- this.its.push({
- id: angular.scenario.Describe.specId++,
- definition: this,
- only: this.only,
- name: name,
- before: this.setupBefore,
- body: body,
- after: this.setupAfter
- });
-};
-
-/**
- * Same as it() but makes iit tests the only test to run.
- *
- * @param {string} name Name of the test.
- * @param {function()} body Body of the block.
- */
-angular.scenario.Describe.prototype.iit = function(name, body) {
- this.it.apply(this, arguments);
- this.its[this.its.length - 1].only = true;
-};
-
-/**
- * Use to disable a test block.
- */
-angular.scenario.Describe.prototype.xit = angular.noop;
-
-/**
- * Gets an array of functions representing all the tests (recursively).
- * that can be executed with SpecRunner's.
- *
- * @return {Array<Object>} Array of it blocks {
- * definition : Object // parent Describe
- * only: boolean
- * name: string
- * before: Function
- * body: Function
- * after: Function
- * }
- */
-angular.scenario.Describe.prototype.getSpecs = function() {
- var specs = arguments[0] || [];
- angular.forEach(this.children, function(child) {
- child.getSpecs(specs);
- });
- angular.forEach(this.its, function(it) {
- specs.push(it);
- });
- var only = [];
- angular.forEach(specs, function(it) {
- if (it.only) {
- only.push(it);
- }
- });
- return (only.length && only) || specs;
-};
-
-/**
- * A future action in a spec.
- *
- * @param {string} name name of the future action
- * @param {function()} behavior future callback(error, result)
- * @param {function()} line Optional. function that returns the file/line number.
- */
-angular.scenario.Future = function(name, behavior, line) {
- this.name = name;
- this.behavior = behavior;
- this.fulfilled = false;
- this.value = undefined;
- this.parser = angular.identity;
- this.line = line || function() { return ''; };
-};
-
-/**
- * Executes the behavior of the closure.
- *
- * @param {function()} doneFn Callback function(error, result)
- */
-angular.scenario.Future.prototype.execute = function(doneFn) {
- var self = this;
- this.behavior(function(error, result) {
- self.fulfilled = true;
- if (result) {
- try {
- result = self.parser(result);
- } catch (e) {
- error = e;
- }
- }
- self.value = error || result;
- doneFn(error, result);
- });
-};
-
-/**
- * Configures the future to convert its final with a function fn(value)
- *
- * @param {function()} fn function(value) that returns the parsed value
- */
-angular.scenario.Future.prototype.parsedWith = function(fn) {
- this.parser = fn;
- return this;
-};
-
-/**
- * Configures the future to parse its final value from JSON
- * into objects.
- */
-angular.scenario.Future.prototype.fromJson = function() {
- return this.parsedWith(angular.fromJson);
-};
-
-/**
- * Configures the future to convert its final value from objects
- * into JSON.
- */
-angular.scenario.Future.prototype.toJson = function() {
- return this.parsedWith(angular.toJson);
-};
-
-/**
- * Maintains an object tree from the runner events.
- *
- * @param {Object} runner The scenario Runner instance to connect to.
- *
- * TODO(esprehn): Every output type creates one of these, but we probably
- * want one global shared instance. Need to handle events better too
- * so the HTML output doesn't need to do spec model.getSpec(spec.id)
- * silliness.
- *
- * TODO(vojta) refactor on, emit methods (from all objects) - use inheritance
- */
-angular.scenario.ObjectModel = function(runner) {
- var self = this;
-
- this.specMap = {};
- this.listeners = [];
- this.value = {
- name: '',
- children: {}
- };
-
- runner.on('SpecBegin', function(spec) {
- var block = self.value,
- definitions = [];
-
- angular.forEach(self.getDefinitionPath(spec), function(def) {
- if (!block.children[def.name]) {
- block.children[def.name] = {
- id: def.id,
- name: def.name,
- children: {},
- specs: {}
- };
- }
- block = block.children[def.name];
- definitions.push(def.name);
- });
-
- var it = self.specMap[spec.id] =
- block.specs[spec.name] =
- new angular.scenario.ObjectModel.Spec(spec.id, spec.name, definitions);
-
- // forward the event
- self.emit('SpecBegin', it);
- });
-
- runner.on('SpecError', function(spec, error) {
- var it = self.getSpec(spec.id);
- it.status = 'error';
- it.error = error;
-
- // forward the event
- self.emit('SpecError', it, error);
- });
-
- runner.on('SpecEnd', function(spec) {
- var it = self.getSpec(spec.id);
- complete(it);
-
- // forward the event
- self.emit('SpecEnd', it);
- });
-
- runner.on('StepBegin', function(spec, step) {
- var it = self.getSpec(spec.id);
- step = new angular.scenario.ObjectModel.Step(step.name);
- it.steps.push(step);
-
- // forward the event
- self.emit('StepBegin', it, step);
- });
-
- runner.on('StepEnd', function(spec) {
- var it = self.getSpec(spec.id);
- var step = it.getLastStep();
- if (step.name !== step.name) {
- throw new Error('Events fired in the wrong order. Step names don\'t match.');
- }
- complete(step);
-
- // forward the event
- self.emit('StepEnd', it, step);
- });
-
- runner.on('StepFailure', function(spec, step, error) {
- var it = self.getSpec(spec.id),
- modelStep = it.getLastStep();
-
- modelStep.setErrorStatus('failure', error, step.line());
- it.setStatusFromStep(modelStep);
-
- // forward the event
- self.emit('StepFailure', it, modelStep, error);
- });
-
- runner.on('StepError', function(spec, step, error) {
- var it = self.getSpec(spec.id),
- modelStep = it.getLastStep();
-
- modelStep.setErrorStatus('error', error, step.line());
- it.setStatusFromStep(modelStep);
-
- // forward the event
- self.emit('StepError', it, modelStep, error);
- });
-
- runner.on('RunnerBegin', function() {
- self.emit('RunnerBegin');
- });
- runner.on('RunnerEnd', function() {
- self.emit('RunnerEnd');
- });
-
- function complete(item) {
- item.endTime = Date.now();
- item.duration = item.endTime - item.startTime;
- item.status = item.status || 'success';
- }
-};
-
-/**
- * Adds a listener for an event.
- *
- * @param {string} eventName Name of the event to add a handler for
- * @param {function()} listener Function that will be called when event is fired
- */
-angular.scenario.ObjectModel.prototype.on = function(eventName, listener) {
- eventName = eventName.toLowerCase();
- this.listeners[eventName] = this.listeners[eventName] || [];
- this.listeners[eventName].push(listener);
-};
-
-/**
- * Emits an event which notifies listeners and passes extra
- * arguments.
- *
- * @param {string} eventName Name of the event to fire.
- */
-angular.scenario.ObjectModel.prototype.emit = function(eventName) {
- var self = this,
- args = Array.prototype.slice.call(arguments, 1);
-
- eventName = eventName.toLowerCase();
-
- if (this.listeners[eventName]) {
- angular.forEach(this.listeners[eventName], function(listener) {
- listener.apply(self, args);
- });
- }
-};
-
-/**
- * Computes the path of definition describe blocks that wrap around
- * this spec.
- *
- * @param spec Spec to compute the path for.
- * @return {Array<Describe>} The describe block path
- */
-angular.scenario.ObjectModel.prototype.getDefinitionPath = function(spec) {
- var path = [];
- var currentDefinition = spec.definition;
- while (currentDefinition && currentDefinition.name) {
- path.unshift(currentDefinition);
- currentDefinition = currentDefinition.parent;
- }
- return path;
-};
-
-/**
- * Gets a spec by id.
- *
- * @param {string} id The id of the spec to get the object for.
- * @return {Object} the Spec instance
- */
-angular.scenario.ObjectModel.prototype.getSpec = function(id) {
- return this.specMap[id];
-};
-
-/**
- * A single it block.
- *
- * @param {string} id Id of the spec
- * @param {string} name Name of the spec
- * @param {Array<string>=} definitionNames List of all describe block names that wrap this spec
- */
-angular.scenario.ObjectModel.Spec = function(id, name, definitionNames) {
- this.id = id;
- this.name = name;
- this.startTime = Date.now();
- this.steps = [];
- this.fullDefinitionName = (definitionNames || []).join(' ');
-};
-
-/**
- * Adds a new step to the Spec.
- *
- * @param {string} name Name of the step (really name of the future)
- * @return {Object} the added step
- */
-angular.scenario.ObjectModel.Spec.prototype.addStep = function(name) {
- var step = new angular.scenario.ObjectModel.Step(name);
- this.steps.push(step);
- return step;
-};
-
-/**
- * Gets the most recent step.
- *
- * @return {Object} the step
- */
-angular.scenario.ObjectModel.Spec.prototype.getLastStep = function() {
- return this.steps[this.steps.length - 1];
-};
-
-/**
- * Set status of the Spec from given Step
- *
- * @param {angular.scenario.ObjectModel.Step} step
- */
-angular.scenario.ObjectModel.Spec.prototype.setStatusFromStep = function(step) {
- if (!this.status || step.status === 'error') {
- this.status = step.status;
- this.error = step.error;
- this.line = step.line;
- }
-};
-
-/**
- * A single step inside a Spec.
- *
- * @param {string} name Name of the step
- */
-angular.scenario.ObjectModel.Step = function(name) {
- this.name = name;
- this.startTime = Date.now();
-};
-
-/**
- * Helper method for setting all error status related properties
- *
- * @param {string} status
- * @param {string} error
- * @param {string} line
- */
-angular.scenario.ObjectModel.Step.prototype.setErrorStatus = function(status, error, line) {
- this.status = status;
- this.error = error;
- this.line = line;
-};
-
-/**
- * Runner for scenarios
- *
- * Has to be initialized before any test is loaded,
- * because it publishes the API into window (global space).
- */
-angular.scenario.Runner = function($window) {
- this.listeners = [];
- this.$window = $window;
- this.rootDescribe = new angular.scenario.Describe();
- this.currentDescribe = this.rootDescribe;
- this.api = {
- it: this.it,
- iit: this.iit,
- xit: angular.noop,
- describe: this.describe,
- ddescribe: this.ddescribe,
- xdescribe: angular.noop,
- beforeEach: this.beforeEach,
- afterEach: this.afterEach
- };
- angular.forEach(this.api, angular.bind(this, /** @this */ function(fn, key) {
- this.$window[key] = angular.bind(this, fn);
- }));
-};
-
-/**
- * Emits an event which notifies listeners and passes extra
- * arguments.
- *
- * @param {string} eventName Name of the event to fire.
- */
-angular.scenario.Runner.prototype.emit = function(eventName) {
- var self = this;
- var args = Array.prototype.slice.call(arguments, 1);
- eventName = eventName.toLowerCase();
- if (!this.listeners[eventName]) {
- return;
- }
- angular.forEach(this.listeners[eventName], function(listener) {
- listener.apply(self, args);
- });
-};
-
-/**
- * Adds a listener for an event.
- *
- * @param {string} eventName The name of the event to add a handler for
- * @param {string} listener The fn(...) that takes the extra arguments from emit()
- */
-angular.scenario.Runner.prototype.on = function(eventName, listener) {
- eventName = eventName.toLowerCase();
- this.listeners[eventName] = this.listeners[eventName] || [];
- this.listeners[eventName].push(listener);
-};
-
-/**
- * Defines a describe block of a spec.
- *
- * @see Describe.js
- *
- * @param {string} name Name of the block
- * @param {function()} body Body of the block
- */
-angular.scenario.Runner.prototype.describe = function(name, body) {
- var self = this;
- this.currentDescribe.describe(name, /** @this */ function() {
- var parentDescribe = self.currentDescribe;
- self.currentDescribe = this;
- try {
- body.call(this);
- } finally {
- self.currentDescribe = parentDescribe;
- }
- });
-};
-
-/**
- * Same as describe, but makes ddescribe the only blocks to run.
- *
- * @see Describe.js
- *
- * @param {string} name Name of the block
- * @param {function()} body Body of the block
- */
-angular.scenario.Runner.prototype.ddescribe = function(name, body) {
- var self = this;
- this.currentDescribe.ddescribe(name, /** @this */ function() {
- var parentDescribe = self.currentDescribe;
- self.currentDescribe = this;
- try {
- body.call(this);
- } finally {
- self.currentDescribe = parentDescribe;
- }
- });
-};
-
-/**
- * Defines a test in a describe block of a spec.
- *
- * @see Describe.js
- *
- * @param {string} name Name of the block
- * @param {function()} body Body of the block
- */
-angular.scenario.Runner.prototype.it = function(name, body) {
- this.currentDescribe.it(name, body);
-};
-
-/**
- * Same as it, but makes iit tests the only tests to run.
- *
- * @see Describe.js
- *
- * @param {string} name Name of the block
- * @param {function()} body Body of the block
- */
-angular.scenario.Runner.prototype.iit = function(name, body) {
- this.currentDescribe.iit(name, body);
-};
-
-/**
- * Defines a function to be called before each it block in the describe
- * (and before all nested describes).
- *
- * @see Describe.js
- *
- * @param {function()} Callback to execute
- */
-angular.scenario.Runner.prototype.beforeEach = function(body) {
- this.currentDescribe.beforeEach(body);
-};
-
-/**
- * Defines a function to be called after each it block in the describe
- * (and before all nested describes).
- *
- * @see Describe.js
- *
- * @param {function()} Callback to execute
- */
-angular.scenario.Runner.prototype.afterEach = function(body) {
- this.currentDescribe.afterEach(body);
-};
-
-/**
- * Creates a new spec runner.
- *
- * @private
- * @param {Object} scope parent scope
- */
-angular.scenario.Runner.prototype.createSpecRunner_ = function(scope) {
- var child = scope.$new();
- var Cls = angular.scenario.SpecRunner;
-
- // Export all the methods to child scope manually as now we don't mess controllers with scopes
- // TODO(vojta): refactor scenario runner so that these objects are not tightly coupled as current
- for (var name in Cls.prototype) {
- child[name] = angular.bind(child, Cls.prototype[name]);
- }
-
- Cls.call(child);
- return child;
-};
-
-/**
- * Runs all the loaded tests with the specified runner class on the
- * provided application.
- *
- * @param {angular.scenario.Application} application App to remote control.
- */
-angular.scenario.Runner.prototype.run = function(application) {
- var self = this;
- var $root = angular.injector(['ng']).get('$rootScope');
- angular.extend($root, this);
- angular.forEach(angular.scenario.Runner.prototype, function(fn, name) {
- $root[name] = angular.bind(self, fn);
- });
- $root.application = application;
- $root.emit('RunnerBegin');
- asyncForEach(this.rootDescribe.getSpecs(), function(spec, specDone) {
- var dslCache = {};
- var runner = self.createSpecRunner_($root);
- angular.forEach(angular.scenario.dsl, function(fn, key) {
- dslCache[key] = fn.call($root);
- });
- angular.forEach(angular.scenario.dsl, function(fn, key) {
- self.$window[key] = function() {
- var line = callerFile(3);
- var scope = runner.$new();
-
- // Make the dsl accessible on the current chain
- scope.dsl = {};
- angular.forEach(dslCache, function(fn, key) {
- scope.dsl[key] = function() {
- return dslCache[key].apply(scope, arguments);
- };
- });
-
- // Make these methods work on the current chain
- scope.addFuture = function() {
- Array.prototype.push.call(arguments, line);
- return angular.scenario.SpecRunner.
- prototype.addFuture.apply(scope, arguments);
- };
- scope.addFutureAction = function() {
- Array.prototype.push.call(arguments, line);
- return angular.scenario.SpecRunner.
- prototype.addFutureAction.apply(scope, arguments);
- };
-
- return scope.dsl[key].apply(scope, arguments);
- };
- });
- runner.run(spec, /** @this */ function() {
- runner.$destroy();
- specDone.apply(this, arguments);
- });
- },
- function(error) {
- if (error) {
- self.emit('RunnerError', error);
- }
- self.emit('RunnerEnd');
- });
-};
-
-/**
- * This class is the "this" of the it/beforeEach/afterEach method.
- * Responsibilities:
- * - "this" for it/beforeEach/afterEach
- * - keep state for single it/beforeEach/afterEach execution
- * - keep track of all of the futures to execute
- * - run single spec (execute each future)
- */
-angular.scenario.SpecRunner = function() {
- this.futures = [];
- this.afterIndex = 0;
-};
-
-/**
- * Executes a spec which is an it block with associated before/after functions
- * based on the describe nesting.
- *
- * @param {Object} spec A spec object
- * @param {function()} specDone function that is called when the spec finishes,
- * of the form `Function(error, index)`
- */
-angular.scenario.SpecRunner.prototype.run = function(spec, specDone) {
- var self = this;
- this.spec = spec;
-
- this.emit('SpecBegin', spec);
-
- try {
- spec.before.call(this);
- spec.body.call(this);
- this.afterIndex = this.futures.length;
- spec.after.call(this);
- } catch (e) {
- this.emit('SpecError', spec, e);
- this.emit('SpecEnd', spec);
- specDone();
- return;
- }
-
- var handleError = function(error, done) {
- if (self.error) {
- return done();
- }
- self.error = true;
- done(null, self.afterIndex);
- };
-
- asyncForEach(
- this.futures,
- function(future, futureDone) {
- self.step = future;
- self.emit('StepBegin', spec, future);
- try {
- future.execute(function(error) {
- if (error) {
- self.emit('StepFailure', spec, future, error);
- self.emit('StepEnd', spec, future);
- return handleError(error, futureDone);
- }
- self.emit('StepEnd', spec, future);
- self.$window.setTimeout(function() { futureDone(); }, 0);
- });
- } catch (e) {
- self.emit('StepError', spec, future, e);
- self.emit('StepEnd', spec, future);
- handleError(e, futureDone);
- }
- },
- function(e) {
- if (e) {
- self.emit('SpecError', spec, e);
- }
- self.emit('SpecEnd', spec);
- // Call done in a timeout so exceptions don't recursively
- // call this function
- self.$window.setTimeout(function() { specDone(); }, 0);
- }
- );
-};
-
-/**
- * Adds a new future action.
- *
- * Note: Do not pass line manually. It happens automatically.
- *
- * @param {string} name Name of the future
- * @param {function()} behavior Behavior of the future
- * @param {function()} line fn() that returns file/line number
- */
-angular.scenario.SpecRunner.prototype.addFuture = function(name, behavior, line) {
- var future = new angular.scenario.Future(name, angular.bind(this, behavior), line);
- this.futures.push(future);
- return future;
-};
-
-/**
- * Adds a new future action to be executed on the application window.
- *
- * Note: Do not pass line manually. It happens automatically.
- *
- * @param {string} name Name of the future
- * @param {function()} behavior Behavior of the future
- * @param {function()} line fn() that returns file/line number
- */
-angular.scenario.SpecRunner.prototype.addFutureAction = function(name, behavior, line) {
- var self = this;
- var NG = /\[ng\\:/;
- return this.addFuture(name, /** @this */ function(done) {
- this.application.executeAction(function($window, $document) {
-
- //TODO(esprehn): Refactor this so it doesn't need to be in here.
- $document.elements = function(selector) {
- var args = Array.prototype.slice.call(arguments, 1);
- selector = (self.selector || '') + ' ' + (selector || '');
- selector = _jQuery.trim(selector) || '*';
- angular.forEach(args, function(value, index) {
- selector = selector.replace('$' + (index + 1), value);
- });
- var result = $document.find(selector);
- if (selector.match(NG)) {
- angular.forEach(['[ng-','[data-ng-','[x-ng-'], function(value, index) {
- result = result.add(selector.replace(NG, value), $document);
- });
- }
- if (!result.length) {
- // eslint-disable-next-line no-throw-literal
- throw {
- type: 'selector',
- message: 'Selector ' + selector + ' did not match any elements.'
- };
- }
-
- return result;
- };
-
- try {
- behavior.call(self, $window, $document, done);
- } catch (e) {
- if (e.type && e.type === 'selector') {
- done(e.message);
- } else {
- throw e;
- }
- }
- });
- }, line);
-};
-
-/* eslint-disable no-invalid-this */
-
-/**
- * Shared DSL statements that are useful to all scenarios.
- */
-
- /**
- * Usage:
- * pause() pauses until you call resume() in the console
- */
-angular.scenario.dsl('pause', function() {
- return function() {
- return this.addFuture('pausing for you to resume', function(done) {
- this.emit('InteractivePause', this.spec, this.step);
- this.$window.resume = function() { done(); };
- });
- };
-});
-
-/**
- * Usage:
- * sleep(seconds) pauses the test for specified number of seconds
- */
-angular.scenario.dsl('sleep', function() {
- return function(time) {
- return this.addFuture('sleep for ' + time + ' seconds', function(done) {
- this.$window.setTimeout(function() { done(null, time * 1000); }, time * 1000);
- });
- };
-});
-
-/**
- * Usage:
- * browser().navigateTo(url) Loads the url into the frame
- * browser().navigateTo(url, fn) where fn(url) is called and returns the URL to navigate to
- * browser().reload() refresh the page (reload the same URL)
- * browser().window.href() window.location.href
- * browser().window.path() window.location.pathname
- * browser().window.search() window.location.search
- * browser().window.hash() window.location.hash without # prefix
- * browser().location().url() see ng.$location#url
- * browser().location().path() see ng.$location#path
- * browser().location().search() see ng.$location#search
- * browser().location().hash() see ng.$location#hash
- */
-angular.scenario.dsl('browser', function() {
- var chain = {};
-
- chain.navigateTo = function(url, delegate) {
- var application = this.application;
- return this.addFuture('browser navigate to \'' + url + '\'', function(done) {
- if (delegate) {
- url = delegate.call(this, url);
- }
- application.navigateTo(url, function() {
- done(null, url);
- }, done);
- });
- };
-
- chain.reload = function() {
- var application = this.application;
- return this.addFutureAction('browser reload', function($window, $document, done) {
- var href = $window.location.href;
- application.navigateTo(href, function() {
- done(null, href);
- }, done);
- });
- };
-
- chain.window = function() {
- var api = {};
-
- api.href = function() {
- return this.addFutureAction('window.location.href', function($window, $document, done) {
- done(null, $window.location.href);
- });
- };
-
- api.path = function() {
- return this.addFutureAction('window.location.path', function($window, $document, done) {
- done(null, $window.location.pathname);
- });
- };
-
- api.search = function() {
- return this.addFutureAction('window.location.search', function($window, $document, done) {
- done(null, $window.location.search);
- });
- };
-
- api.hash = function() {
- return this.addFutureAction('window.location.hash', function($window, $document, done) {
- done(null, $window.location.hash.replace('#', ''));
- });
- };
-
- return api;
- };
-
- chain.location = function() {
- var api = {};
-
- api.url = function() {
- return this.addFutureAction('$location.url()', function($window, $document, done) {
- done(null, $document.injector().get('$location').url());
- });
- };
-
- api.path = function() {
- return this.addFutureAction('$location.path()', function($window, $document, done) {
- done(null, $document.injector().get('$location').path());
- });
- };
-
- api.search = function() {
- return this.addFutureAction('$location.search()', function($window, $document, done) {
- done(null, $document.injector().get('$location').search());
- });
- };
-
- api.hash = function() {
- return this.addFutureAction('$location.hash()', function($window, $document, done) {
- done(null, $document.injector().get('$location').hash());
- });
- };
-
- return api;
- };
-
- return function() {
- return chain;
- };
-});
-
-/**
- * Usage:
- * expect(future).{matcher} where matcher is one of the matchers defined
- * with angular.scenario.matcher
- *
- * ex. expect(binding("name")).toEqual("Elliott")
- */
-angular.scenario.dsl('expect', function() {
- var chain = angular.extend({}, angular.scenario.matcher);
-
- chain.not = function() {
- this.inverse = true;
- return chain;
- };
-
- return function(future) {
- this.future = future;
- return chain;
- };
-});
-
-/**
- * Usage:
- * using(selector, label) scopes the next DSL element selection
- *
- * ex.
- * using('#foo', "'Foo' text field").input('bar')
- */
-angular.scenario.dsl('using', function() {
- return function(selector, label) {
- this.selector = _jQuery.trim((this.selector || '') + ' ' + selector);
- if (angular.isString(label) && label.length) {
- this.label = label + ' ( ' + this.selector + ' )';
- } else {
- this.label = this.selector;
- }
- return this.dsl;
- };
-});
-
-/**
- * Usage:
- * binding(name) returns the value of the first matching binding
- */
-angular.scenario.dsl('binding', function() {
- return function(name) {
- return this.addFutureAction('select binding \'' + name + '\'',
- function($window, $document, done) {
- var values = $document.elements().bindings($window.angular.element, name);
- if (!values.length) {
- return done('Binding selector \'' + name + '\' did not match.');
- }
- done(null, values[0]);
- });
- };
-});
-
-/**
- * Usage:
- * input(name).enter(value) enters value in input with specified name
- * input(name).check() checks checkbox
- * input(name).select(value) selects the radio button with specified name/value
- * input(name).val() returns the value of the input.
- */
-angular.scenario.dsl('input', function() {
- var chain = {};
- var supportInputEvent = 'oninput' in window.document.createElement('div') && !msie;
-
- chain.enter = function(value, event) {
- return this.addFutureAction('input \'' + this.name + '\' enter \'' + value + '\'',
- function($window, $document, done) {
- var input = $document.elements('[ng\\:model="$1"]', this.name).filter(':input');
- input.val(value);
- input.trigger(event || (supportInputEvent ? 'input' : 'change'));
- done();
- });
- };
-
- chain.check = function() {
- return this.addFutureAction('checkbox \'' + this.name + '\' toggle',
- function($window, $document, done) {
- var input = $document.elements('[ng\\:model="$1"]', this.name).filter(':checkbox');
- input.trigger('click');
- done();
- });
- };
-
- chain.select = function(value) {
- return this.addFutureAction('radio button \'' + this.name + '\' toggle \'' + value + '\'',
- function($window, $document, done) {
- var input = $document.
- elements('[ng\\:model="$1"][value="$2"]', this.name, value).filter(':radio');
- input.trigger('click');
- done();
- });
- };
-
- chain.val = function() {
- return this.addFutureAction('return input val', function($window, $document, done) {
- var input = $document.elements('[ng\\:model="$1"]', this.name).filter(':input');
- done(null,input.val());
- });
- };
-
- return function(name) {
- this.name = name;
- return chain;
- };
-});
-
-
-/**
- * Usage:
- * repeater('#products table', 'Product List').count() number of rows
- * repeater('#products table', 'Product List').row(1) all bindings in row as an array
- * repeater('#products table', 'Product List').column('product.name') all values across all rows
- * in an array
- */
-angular.scenario.dsl('repeater', function() {
- var chain = {};
-
- chain.count = function() {
- return this.addFutureAction('repeater \'' + this.label + '\' count',
- function($window, $document, done) {
- try {
- done(null, $document.elements().length);
- } catch (e) {
- done(null, 0);
- }
- });
- };
-
- chain.column = function(binding) {
- return this.addFutureAction('repeater \'' + this.label + '\' column \'' + binding + '\'',
- function($window, $document, done) {
- done(null, $document.elements().bindings($window.angular.element, binding));
- });
- };
-
- chain.row = function(index) {
- return this.addFutureAction('repeater \'' + this.label + '\' row \'' + index + '\'',
- function($window, $document, done) {
- var matches = $document.elements().slice(index, index + 1);
- if (!matches.length) {
- return done('row ' + index + ' out of bounds');
- }
- done(null, matches.bindings($window.angular.element));
- });
- };
-
- return function(selector, label) {
- this.dsl.using(selector, label);
- return chain;
- };
-});
-
-/**
- * Usage:
- * select(name).option('value') select one option
- * select(name).options('value1', 'value2', ...) select options from a multi select
- */
-angular.scenario.dsl('select', function() {
- var chain = {};
-
- chain.option = function(value) {
- return this.addFutureAction('select \'' + this.name + '\' option \'' + value + '\'',
- function($window, $document, done) {
- var select = $document.elements('select[ng\\:model="$1"]', this.name);
- var option = select.find('option[value="' + value + '"]');
- if (option.length) {
- select.val(value);
- } else {
- option = select.find('option').filter(function() {
- return _jQuery(this).text() === value;
- });
- if (!option.length) {
- option = select.find('option:contains("' + value + '")');
- }
- if (option.length) {
- select.val(option.val());
- } else {
- return done('option \'' + value + '\' not found');
- }
- }
- select.trigger('change');
- done();
- });
- };
-
- chain.options = function() {
- var values = arguments;
- return this.addFutureAction('select \'' + this.name + '\' options \'' + values + '\'',
- function($window, $document, done) {
- var select = $document.elements('select[multiple][ng\\:model="$1"]', this.name);
- select.val(values);
- select.trigger('change');
- done();
- });
- };
-
- return function(name) {
- this.name = name;
- return chain;
- };
-});
-
-/**
- * Usage:
- * element(selector, label).count() get the number of elements that match selector
- * element(selector, label).click() clicks an element
- * element(selector, label).mouseover() mouseover an element
- * element(selector, label).mousedown() mousedown an element
- * element(selector, label).mouseup() mouseup an element
- * element(selector, label).query(fn) executes fn(selectedElements, done)
- * element(selector, label).{method}() gets the value (as defined by jQuery, ex. val)
- * element(selector, label).{method}(value) sets the value (as defined by jQuery, ex. val)
- * element(selector, label).{method}(key) gets the value (as defined by jQuery, ex. attr)
- * element(selector, label).{method}(key, value) sets the value (as defined by jQuery, ex. attr)
- */
-angular.scenario.dsl('element', function() {
- var KEY_VALUE_METHODS = ['attr', 'css', 'prop'];
- var VALUE_METHODS = [
- 'val', 'text', 'html', 'height', 'innerHeight', 'outerHeight', 'width',
- 'innerWidth', 'outerWidth', 'position', 'scrollLeft', 'scrollTop', 'offset'
- ];
- var chain = {};
-
- chain.count = function() {
- return this.addFutureAction('element \'' + this.label + '\' count',
- function($window, $document, done) {
- try {
- done(null, $document.elements().length);
- } catch (e) {
- done(null, 0);
- }
- });
- };
-
- chain.click = function() {
- return this.addFutureAction('element \'' + this.label + '\' click',
- function($window, $document, done) {
- var elements = $document.elements();
- var href = elements.attr('href');
- var eventProcessDefault = elements.trigger('click')[0];
-
- if (href && elements[0].nodeName.toLowerCase() === 'a' && eventProcessDefault) {
- this.application.navigateTo(href, function() {
- done();
- }, done);
- } else {
- done();
- }
- });
- };
-
- chain.dblclick = function() {
- return this.addFutureAction('element \'' + this.label + '\' dblclick',
- function($window, $document, done) {
- var elements = $document.elements();
- var href = elements.attr('href');
- var eventProcessDefault = elements.trigger('dblclick')[0];
-
- if (href && elements[0].nodeName.toLowerCase() === 'a' && eventProcessDefault) {
- this.application.navigateTo(href, function() {
- done();
- }, done);
- } else {
- done();
- }
- });
- };
-
- chain.mouseover = function() {
- return this.addFutureAction('element \'' + this.label + '\' mouseover',
- function($window, $document, done) {
- var elements = $document.elements();
- elements.trigger('mouseover');
- done();
- });
- };
-
- chain.mousedown = function() {
- return this.addFutureAction('element \'' + this.label + '\' mousedown',
- function($window, $document, done) {
- var elements = $document.elements();
- elements.trigger('mousedown');
- done();
- });
- };
-
- chain.mouseup = function() {
- return this.addFutureAction('element \'' + this.label + '\' mouseup',
- function($window, $document, done) {
- var elements = $document.elements();
- elements.trigger('mouseup');
- done();
- });
- };
-
- chain.query = function(fn) {
- return this.addFutureAction('element ' + this.label + ' custom query',
- function($window, $document, done) {
- fn.call(this, $document.elements(), done);
- });
- };
-
- angular.forEach(KEY_VALUE_METHODS, function(methodName) {
- chain[methodName] = function(name, value) {
- var args = arguments,
- futureName = (args.length === 1)
- ? 'element \'' + this.label + '\' get ' + methodName + ' \'' + name + '\''
- : 'element \'' + this.label + '\' set ' + methodName + ' \'' + name + '\' to \'' +
- value + '\'';
-
- return this.addFutureAction(futureName, function($window, $document, done) {
- var element = $document.elements();
- done(null, element[methodName].apply(element, args));
- });
- };
- });
-
- angular.forEach(VALUE_METHODS, function(methodName) {
- chain[methodName] = function(value) {
- var args = arguments,
- futureName = (args.length === 0)
- ? 'element \'' + this.label + '\' ' + methodName
- : 'element \'' + this.label + '\' set ' + methodName + ' to \'' + value + '\'';
-
- return this.addFutureAction(futureName, function($window, $document, done) {
- var element = $document.elements();
- done(null, element[methodName].apply(element, args));
- });
- };
- });
-
- return function(selector, label) {
- this.dsl.using(selector, label);
- return chain;
- };
-});
-
-/**
- * Matchers for implementing specs. Follows the Jasmine spec conventions.
- */
-
-angular.scenario.matcher('toEqual', /** @this */ function(expected) {
- return angular.equals(this.actual, expected);
-});
-
-angular.scenario.matcher('toBe', /** @this */ function(expected) {
- return this.actual === expected;
-});
-
-angular.scenario.matcher('toBeDefined', /** @this */ function() {
- return angular.isDefined(this.actual);
-});
-
-angular.scenario.matcher('toBeTruthy', /** @this */ function() {
- return this.actual;
-});
-
-angular.scenario.matcher('toBeFalsy', /** @this */ function() {
- return !this.actual;
-});
-
-angular.scenario.matcher('toMatch', /** @this */ function(expected) {
- return new RegExp(expected).test(this.actual);
-});
-
-angular.scenario.matcher('toBeNull', /** @this */ function() {
- return this.actual === null;
-});
-
-angular.scenario.matcher('toContain', /** @this */ function(expected) {
- return includes(this.actual, expected);
-});
-
-angular.scenario.matcher('toBeLessThan', /** @this */ function(expected) {
- return this.actual < expected;
-});
-
-angular.scenario.matcher('toBeGreaterThan', /** @this */ function(expected) {
- return this.actual > expected;
-});
-
-/**
- * User Interface for the Scenario Runner.
- *
- * TODO(esprehn): This should be refactored now that ObjectModel exists
- * to use angular bindings for the UI.
- */
-angular.scenario.output('html', function(context, runner, model) {
- var specUiMap = {},
- lastStepUiMap = {};
-
- context.append(
- '<div id="header">' +
- ' <h1><span class="angular">AngularJS</span>: Scenario Test Runner</h1>' +
- ' <ul id="status-legend" class="status-display">' +
- ' <li class="status-error">0 Errors</li>' +
- ' <li class="status-failure">0 Failures</li>' +
- ' <li class="status-success">0 Passed</li>' +
- ' </ul>' +
- '</div>' +
- '<div id="specs">' +
- ' <div class="test-children"></div>' +
- '</div>'
- );
-
- runner.on('InteractivePause', function(spec) {
- var ui = lastStepUiMap[spec.id];
- ui.find('.test-title').
- html('paused... <a href="javascript:resume()">resume</a> when ready.');
- });
-
- runner.on('SpecBegin', function(spec) {
- var ui = findContext(spec);
- ui.find('> .tests').append(
- '<li class="status-pending test-it"></li>'
- );
- ui = ui.find('> .tests li:last');
- ui.append(
- '<div class="test-info">' +
- ' <p class="test-title">' +
- ' <span class="timer-result"></span>' +
- ' <span class="test-name"></span>' +
- ' </p>' +
- '</div>' +
- '<div class="scrollpane">' +
- ' <ol class="test-actions"></ol>' +
- '</div>'
- );
- ui.find('> .test-info .test-name').text(spec.name);
- ui.find('> .test-info').click(function() {
- var scrollpane = ui.find('> .scrollpane');
- var actions = scrollpane.find('> .test-actions');
- var name = context.find('> .test-info .test-name');
- if (actions.find(':visible').length) {
- actions.hide();
- name.removeClass('open').addClass('closed');
- } else {
- actions.show();
- scrollpane.attr('scrollTop', scrollpane.attr('scrollHeight'));
- name.removeClass('closed').addClass('open');
- }
- });
-
- specUiMap[spec.id] = ui;
- });
-
- runner.on('SpecError', function(spec, error) {
- var ui = specUiMap[spec.id];
- ui.append('<pre></pre>');
- ui.find('> pre').text(formatException(error));
- });
-
- runner.on('SpecEnd', function(spec) {
- var ui = specUiMap[spec.id];
- spec = model.getSpec(spec.id);
- ui.removeClass('status-pending');
- ui.addClass('status-' + spec.status);
- ui.find('> .test-info .timer-result').text(spec.duration + 'ms');
- if (spec.status === 'success') {
- ui.find('> .test-info .test-name').addClass('closed');
- ui.find('> .scrollpane .test-actions').hide();
- }
- updateTotals(spec.status);
- });
-
- runner.on('StepBegin', function(spec, step) {
- var ui = specUiMap[spec.id];
- spec = model.getSpec(spec.id);
- step = spec.getLastStep();
- ui.find('> .scrollpane .test-actions').append('<li class="status-pending"></li>');
- var stepUi = lastStepUiMap[spec.id] = ui.find('> .scrollpane .test-actions li:last');
- stepUi.append(
- '<div class="timer-result"></div>' +
- '<div class="test-title"></div>'
- );
- stepUi.find('> .test-title').text(step.name);
- var scrollpane = stepUi.parents('.scrollpane');
- scrollpane.attr('scrollTop', scrollpane.attr('scrollHeight'));
- });
-
- runner.on('StepFailure', function(spec, step, error) {
- var ui = lastStepUiMap[spec.id];
- addError(ui, step.line, error);
- });
-
- runner.on('StepError', function(spec, step, error) {
- var ui = lastStepUiMap[spec.id];
- addError(ui, step.line, error);
- });
-
- runner.on('StepEnd', function(spec, step) {
- var stepUi = lastStepUiMap[spec.id];
- spec = model.getSpec(spec.id);
- step = spec.getLastStep();
- stepUi.find('.timer-result').text(step.duration + 'ms');
- stepUi.removeClass('status-pending');
- stepUi.addClass('status-' + step.status);
- var scrollpane = specUiMap[spec.id].find('> .scrollpane');
- scrollpane.attr('scrollTop', scrollpane.attr('scrollHeight'));
- });
-
- /**
- * Finds the context of a spec block defined by the passed definition.
- *
- * @param {Object} The definition created by the Describe object.
- */
- function findContext(spec) {
- var currentContext = context.find('#specs');
- angular.forEach(model.getDefinitionPath(spec), function(defn) {
- var id = 'describe-' + defn.id;
- if (!context.find('#' + id).length) {
- currentContext.find('> .test-children').append(
- '<div class="test-describe" id="' + id + '">' +
- ' <h2></h2>' +
- ' <div class="test-children"></div>' +
- ' <ul class="tests"></ul>' +
- '</div>'
- );
- context.find('#' + id).find('> h2').text('describe: ' + defn.name);
- }
- currentContext = context.find('#' + id);
- });
- return context.find('#describe-' + spec.definition.id);
- }
-
- /**
- * Updates the test counter for the status.
- *
- * @param {string} the status.
- */
- function updateTotals(status) {
- var legend = context.find('#status-legend .status-' + status);
- var parts = legend.text().split(' ');
- var value = (parts[0] * 1) + 1;
- legend.text(value + ' ' + parts[1]);
- }
-
- /**
- * Add an error to a step.
- *
- * @param {Object} The JQuery wrapped context
- * @param {function()} fn() that should return the file/line number of the error
- * @param {Object} the error.
- */
- function addError(context, line, error) {
- context.find('.test-title').append('<pre></pre>');
- var message = _jQuery.trim(line() + '\n\n' + formatException(error));
- context.find('.test-title pre:last').text(message);
- }
-});
-
-/**
- * Generates JSON output into a context.
- */
-angular.scenario.output('json', function(context, runner, model) {
- model.on('RunnerEnd', function() {
- context.text(angular.toJson(model.value));
- });
-});
-
-/**
- * Generates XML output into a context.
- */
-angular.scenario.output('xml', function(context, runner, model) {
- var $ = function(args) {
- // eslint-disable-next-line new-cap
- return new context.init(args);
- };
- model.on('RunnerEnd', function() {
- var scenario = $('<scenario></scenario>');
- context.append(scenario);
- serializeXml(scenario, model.value);
- });
-
- /**
- * Convert the tree into XML.
- *
- * @param {Object} context jQuery context to add the XML to.
- * @param {Object} tree node to serialize
- */
- function serializeXml(context, tree) {
- angular.forEach(tree.children, function(child) {
- var describeContext = $('<describe></describe>');
- describeContext.attr('id', child.id);
- describeContext.attr('name', child.name);
- context.append(describeContext);
- serializeXml(describeContext, child);
- });
- var its = $('<its></its>');
- context.append(its);
- angular.forEach(tree.specs, function(spec) {
- var it = $('<it></it>');
- it.attr('id', spec.id);
- it.attr('name', spec.name);
- it.attr('duration', spec.duration);
- it.attr('status', spec.status);
- its.append(it);
- angular.forEach(spec.steps, function(step) {
- var stepContext = $('<step></step>');
- stepContext.attr('name', step.name);
- stepContext.attr('duration', step.duration);
- stepContext.attr('status', step.status);
- it.append(stepContext);
- if (step.error) {
- var error = $('<error></error>');
- stepContext.append(error);
- error.text(formatException(step.error));
- }
- });
- });
- }
-});
-
-/**
- * Creates a global value $result with the result of the runner.
- */
-angular.scenario.output('object', function(context, runner, model) {
- runner.$window.$result = model.value;
-});
-
-bindJQuery();
-publishExternalAPI(angular);
-
-var $runner = new angular.scenario.Runner(window),
- scripts = window.document.getElementsByTagName('script'),
- script = scripts[scripts.length - 1],
- config = {};
-
-angular.forEach(script.attributes, function(attr) {
- var match = attr.name.match(/ng[:\-](.*)/);
- if (match) {
- config[match[1]] = attr.value || true;
- }
-});
-
-if (config.autotest) {
- JQLite(window.document).ready(function() {
- angular.scenario.setUpAndRun(config);
- });
-}
-})(window);
-
-
-!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";\n\n[ng\\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],\n.ng-cloak, .x-ng-cloak,\n.ng-hide:not(.ng-hide-animate) {\n display: none !important;\n}\n\nng\\:form {\n display: block;\n}\n\n.ng-animate-shim {\n visibility:hidden;\n}\n\n.ng-anchor {\n position:absolute;\n}\n</style>');
-!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";\n/* CSS Document */\n\n/** Structure */\nbody {\n font-family: Arial, sans-serif;\n margin: 0;\n font-size: 14px;\n}\n\n#system-error {\n font-size: 1.5em;\n text-align: center;\n}\n\n#json, #xml {\n display: none;\n}\n\n#header {\n position: fixed;\n width: 100%;\n}\n\n#specs {\n padding-top: 50px;\n}\n\n#header .angular {\n font-family: Courier New, monospace;\n font-weight: bold;\n}\n\n#header h1 {\n font-weight: normal;\n float: left;\n font-size: 30px;\n line-height: 30px;\n margin: 0;\n padding: 10px 10px;\n height: 30px;\n}\n\n#application h2,\n#specs h2 {\n margin: 0;\n padding: 0.5em;\n font-size: 1.1em;\n}\n\n#status-legend {\n margin-top: 10px;\n margin-right: 10px;\n}\n\n#header,\n#application,\n.test-info,\n.test-actions li {\n overflow: hidden;\n}\n\n#application {\n margin: 10px;\n}\n\n#application iframe {\n width: 100%;\n height: 758px;\n}\n\n#application .popout {\n float: right;\n}\n\n#application iframe {\n border: none;\n}\n\n.tests li,\n.test-actions li,\n.test-it li,\n.test-it ol,\n.status-display {\n list-style-type: none;\n}\n\n.tests,\n.test-it ol,\n.status-display {\n margin: 0;\n padding: 0;\n}\n\n.test-info {\n margin-left: 1em;\n margin-top: 0.5em;\n border-radius: 8px 0 0 8px;\n -webkit-border-radius: 8px 0 0 8px;\n -moz-border-radius: 8px 0 0 8px;\n cursor: pointer;\n}\n\n.test-info:hover .test-name {\n text-decoration: underline;\n}\n\n.test-info .closed:before {\n content: \'\\25b8\\00A0\';\n}\n\n.test-info .open:before {\n content: \'\\25be\\00A0\';\n font-weight: bold;\n}\n\n.test-it ol {\n margin-left: 2.5em;\n}\n\n.status-display,\n.status-display li {\n float: right;\n}\n\n.status-display li {\n padding: 5px 10px;\n}\n\n.timer-result,\n.test-title {\n display: inline-block;\n margin: 0;\n padding: 4px;\n}\n\n.test-actions .test-title,\n.test-actions .test-result {\n display: table-cell;\n padding-left: 0.5em;\n padding-right: 0.5em;\n}\n\n.test-actions {\n display: table;\n}\n\n.test-actions li {\n display: table-row;\n}\n\n.timer-result {\n width: 4em;\n padding: 0 10px;\n text-align: right;\n font-family: monospace;\n}\n\n.test-it pre,\n.test-actions pre {\n clear: left;\n color: black;\n margin-left: 6em;\n}\n\n.test-describe {\n padding-bottom: 0.5em;\n}\n\n.test-describe .test-describe {\n margin: 5px 5px 10px 2em;\n}\n\n.test-actions .status-pending .test-title:before {\n content: \'\\00bb\\00A0\';\n}\n\n.scrollpane {\n max-height: 20em;\n overflow: auto;\n}\n\n/** Colors */\n\n#header {\n background-color: #F2C200;\n}\n\n#specs h2 {\n border-top: 2px solid #BABAD1;\n}\n\n#specs h2,\n#application h2 {\n background-color: #efefef;\n}\n\n#application {\n border: 1px solid #BABAD1;\n}\n\n.test-describe .test-describe {\n border-left: 1px solid #BABAD1;\n border-right: 1px solid #BABAD1;\n border-bottom: 1px solid #BABAD1;\n}\n\n.status-display {\n border: 1px solid #777;\n}\n\n.status-display .status-pending,\n.status-pending .test-info {\n background-color: #F9EEBC;\n}\n\n.status-display .status-success,\n.status-success .test-info {\n background-color: #B1D7A1;\n}\n\n.status-display .status-failure,\n.status-failure .test-info {\n background-color: #FF8286;\n}\n\n.status-display .status-error,\n.status-error .test-info {\n background-color: black;\n color: white;\n}\n\n.test-actions .status-success .test-title {\n color: #30B30A;\n}\n\n.test-actions .status-failure .test-title {\n color: #DF0000;\n}\n\n.test-actions .status-error .test-title {\n color: black;\n}\n\n.test-actions .timer-result {\n color: #888;\n}\n</style>'); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-scenario/bower.json b/ecomp-portal-FE/client/bower_components/angular-scenario/bower.json
deleted file mode 100644
index 899847a1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-scenario/bower.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "angular-scenario",
- "version": "1.5.11",
- "license": "MIT",
- "main": "./angular-scenario.js",
- "ignore": [],
- "dependencies": {
- "angular": "1.5.11"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-scenario/jstd-scenario-adapter-config.js b/ecomp-portal-FE/client/bower_components/angular-scenario/jstd-scenario-adapter-config.js
deleted file mode 100644
index 212dd148..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-scenario/jstd-scenario-adapter-config.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Configuration for jstd scenario adapter
- */
-var jstdScenarioAdapter = {
- relativeUrlPrefix: '/build/docs/'
-};
diff --git a/ecomp-portal-FE/client/bower_components/angular-scenario/jstd-scenario-adapter.js b/ecomp-portal-FE/client/bower_components/angular-scenario/jstd-scenario-adapter.js
deleted file mode 100644
index f65afd90..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-scenario/jstd-scenario-adapter.js
+++ /dev/null
@@ -1,185 +0,0 @@
-/**
- * @license AngularJS v1.0.4
- * (c) 2010-2012 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window) {
-'use strict';
-
-/**
- * JSTestDriver adapter for angular scenario tests
- *
- * Example of jsTestDriver.conf for running scenario tests with JSTD:
- <pre>
- server: http://localhost:9877
-
- load:
- - lib/angular-scenario.js
- - lib/jstd-scenario-adapter-config.js
- - lib/jstd-scenario-adapter.js
- # your test files go here #
-
- proxy:
- - {matcher: "/your-prefix/*", server: "http://localhost:8000/"}
- </pre>
- *
- * For more information on how to configure jstd proxy, see {@link http://code.google.com/p/js-test-driver/wiki/Proxy}
- * Note the order of files - it's important !
- *
- * Example of jstd-scenario-adapter-config.js
- <pre>
- var jstdScenarioAdapter = {
- relativeUrlPrefix: '/your-prefix/'
- };
- </pre>
- *
- * Whenever you use <code>browser().navigateTo('relativeUrl')</code> in your scenario test, the relativeUrlPrefix will be prepended.
- * You have to configure this to work together with JSTD proxy.
- *
- * Let's assume you are using the above configuration (jsTestDriver.conf and jstd-scenario-adapter-config.js):
- * Now, when you call <code>browser().navigateTo('index.html')</code> in your scenario test, the browser will open /your-prefix/index.html.
- * That matches the proxy, so JSTD will proxy this request to http://localhost:8000/index.html.
- */
-
-/**
- * Custom type of test case
- *
- * @const
- * @see jstestdriver.TestCaseInfo
- */
-var SCENARIO_TYPE = 'scenario';
-
-/**
- * Plugin for JSTestDriver
- * Connection point between scenario's jstd output and jstestdriver.
- *
- * @see jstestdriver.PluginRegistrar
- */
-function JstdPlugin() {
- var nop = function() {};
-
- this.reportResult = nop;
- this.reportEnd = nop;
- this.runScenario = nop;
-
- this.name = 'Angular Scenario Adapter';
-
- /**
- * Called for each JSTD TestCase
- *
- * Handles only SCENARIO_TYPE test cases. There should be only one fake TestCase.
- * Runs all scenario tests (under one fake TestCase) and report all results to JSTD.
- *
- * @param {jstestdriver.TestRunConfiguration} configuration
- * @param {Function} onTestDone
- * @param {Function} onAllTestsComplete
- * @returns {boolean} True if this type of test is handled by this plugin, false otherwise
- */
- this.runTestConfiguration = function(configuration, onTestDone, onAllTestsComplete) {
- if (configuration.getTestCaseInfo().getType() != SCENARIO_TYPE) return false;
-
- this.reportResult = onTestDone;
- this.reportEnd = onAllTestsComplete;
- this.runScenario();
-
- return true;
- };
-
- this.getTestRunsConfigurationFor = function(testCaseInfos, expressions, testRunsConfiguration) {
- testRunsConfiguration.push(
- new jstestdriver.TestRunConfiguration(
- new jstestdriver.TestCaseInfo(
- 'Angular Scenario Tests', function() {}, SCENARIO_TYPE), []));
-
- return true;
- };
-}
-
-/**
- * Singleton instance of the plugin
- * Accessed using closure by:
- * - jstd output (reports to this plugin)
- * - initScenarioAdapter (register the plugin to jstd)
- */
-var plugin = new JstdPlugin();
-
-/**
- * Initialise scenario jstd-adapter
- * (only if jstestdriver is defined)
- *
- * @param {Object} jstestdriver Undefined when run from browser (without jstd)
- * @param {Function} initScenarioAndRun Function that inits scenario and runs all the tests
- * @param {Object=} config Configuration object, supported properties:
- * - relativeUrlPrefix: prefix for all relative links when navigateTo()
- */
-function initScenarioAdapter(jstestdriver, initScenarioAndRun, config) {
- if (jstestdriver) {
- // create and register ScenarioPlugin
- jstestdriver.pluginRegistrar.register(plugin);
- plugin.runScenario = initScenarioAndRun;
-
- /**
- * HACK (angular.scenario.Application.navigateTo)
- *
- * We need to navigate to relative urls when running from browser (without JSTD),
- * because we want to allow running scenario tests without creating its own virtual host.
- * For example: http://angular.local/build/docs/docs-scenario.html
- *
- * On the other hand, when running with JSTD, we need to navigate to absolute urls,
- * because of JSTD proxy. (proxy, because of same domain policy)
- *
- * So this hack is applied only if running with JSTD and change all relative urls to absolute.
- */
- var appProto = angular.scenario.Application.prototype,
- navigateTo = appProto.navigateTo,
- relativeUrlPrefix = config && config.relativeUrlPrefix || '/';
-
- appProto.navigateTo = function(url, loadFn, errorFn) {
- if (url.charAt(0) != '/' && url.charAt(0) != '#' &&
- url != 'about:blank' && !url.match(/^https?/)) {
- url = relativeUrlPrefix + url;
- }
-
- return navigateTo.call(this, url, loadFn, errorFn);
- };
- }
-}
-
-/**
- * Builds proper TestResult object from given model spec
- *
- * TODO(vojta) report error details
- *
- * @param {angular.scenario.ObjectModel.Spec} spec
- * @returns {jstestdriver.TestResult}
- */
-function createTestResultFromSpec(spec) {
- var map = {
- success: 'PASSED',
- error: 'ERROR',
- failure: 'FAILED'
- };
-
- return new jstestdriver.TestResult(
- spec.fullDefinitionName,
- spec.name,
- jstestdriver.TestResult.RESULT[map[spec.status]],
- spec.error || '',
- spec.line || '',
- spec.duration);
-}
-
-/**
- * Generates JSTD output (jstestdriver.TestResult)
- */
-angular.scenario.output('jstd', function(context, runner, model) {
- model.on('SpecEnd', function(spec) {
- plugin.reportResult(createTestResultFromSpec(spec));
- });
-
- model.on('RunnerEnd', function() {
- plugin.reportEnd();
- });
-});
-initScenarioAdapter(window.jstestdriver, angular.scenario.setUpAndRun, window.jstdScenarioAdapter);
-})(window);
diff --git a/ecomp-portal-FE/client/bower_components/angular-scenario/package.json b/ecomp-portal-FE/client/bower_components/angular-scenario/package.json
deleted file mode 100644
index 70b8b604..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-scenario/package.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "name": "angular-scenario",
- "version": "1.5.11",
- "description": "AngularJS module for end-to-end testing",
- "main": "angular-scenario.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "testing",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org",
- "jspm": {
- "shim": {
- "angular-scenario": {
- "deps": ["angular"]
- }
- }
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/.bower.json b/ecomp-portal-FE/client/bower_components/angular-smart-table/.bower.json
deleted file mode 100644
index 869436dc..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/.bower.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "angular-smart-table",
- "version": "2.1.8",
- "homepage": "https://github.com/lorenzofox3/Smart-Table",
- "authors": [
- "lorenzofox3 <laurent34azerty@gmail.com>"
- ],
- "description": "table module for angular",
- "main": "dist/smart-table.js",
- "keywords": [
- "smart-table",
- "angular",
- "table"
- ],
- "license": "MIT",
- "ignore": [
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ],
- "dependencies": {
- "angular": "^1.0.0"
- },
- "devDependencies": {
- "angular-mocks": "^1.0.0",
- "jquery": "^2.0.0"
- },
- "_release": "2.1.8",
- "_resolution": {
- "type": "version",
- "tag": "v2.1.8",
- "commit": "a63502153e89227b33cc540e82b8b6b035ab7bf3"
- },
- "_source": "https://github.com/lorenzofox3/Smart-Table.git",
- "_target": "~2.1.8",
- "_originalSource": "angular-smart-table"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/.gitignore b/ecomp-portal-FE/client/bower_components/angular-smart-table/.gitignore
deleted file mode 100644
index 07cd6610..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-.idea
-node_modules
-example-app
-bower_components
-coverage
-.DS_Store
-test/.DS_Storesmart-table-website
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/.travis.yml b/ecomp-portal-FE/client/bower_components/angular-smart-table/.travis.yml
deleted file mode 100644
index f42dba6e..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-language: node_js
-node_js:
- - "0.10"
-
-
-before_script:
- - npm install -g gulp bower
- - npm install
- - bower install
-
-script:
- - gulp build \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/ISSUE_TEMPLATE.md b/ecomp-portal-FE/client/bower_components/angular-smart-table/ISSUE_TEMPLATE.md
deleted file mode 100644
index 94a3f113..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,15 +0,0 @@
-## Hello contributor !
-
-Please before you submit your issue, make sure all the below can be checked (note if anything is expected, you can simply add it under the relevant checkbox)
-
-1) [] I have searched through the issue section and on [stackoverflow](http://stackoverflow.com/questions/tagged/smart-table?sort=newest&pageSize=30) if my issue has already been raised.
-2) [] I have provided Angular version.
-3) [] I have provided Smart table version.
-4) [] I have set a precise description of my problem, mentioning the expected result.
-5) [] I have given a way to reproduce my issue, by providing a <strong>running example</strong>, I can use [plunkr](http://plnkr.co/). Note if you want to mimic ajax loading behaviour you can use [$timeout](https://docs.angularjs.org/api/ng/service/$timeout) angular service or [$httpBackend](https://docs.angularjs.org/api/ng/service/$httpBackend).
-
-Note that it not all the above checkbox can be marked as checked the issue will immediately be closed. Thanks for your understanding.
-
-And don't forget to close you issue when it is solved !
-
-Thanks again for your contribution. \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/bower.json b/ecomp-portal-FE/client/bower_components/angular-smart-table/bower.json
deleted file mode 100644
index 6c54113d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/bower.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "angular-smart-table",
- "version": "2.1.8",
- "homepage": "https://github.com/lorenzofox3/Smart-Table",
- "authors": [
- "lorenzofox3 <laurent34azerty@gmail.com>"
- ],
- "description": "table module for angular",
- "main": "dist/smart-table.js",
- "keywords": [
- "smart-table",
- "angular",
- "table"
- ],
- "license": "MIT",
- "ignore": [
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ],
- "dependencies": {
- "angular": "^1.0.0"
- },
- "devDependencies": {
- "angular-mocks": "^1.0.0",
- "jquery": "^2.0.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/changeLog.md b/ecomp-portal-FE/client/bower_components/angular-smart-table/changeLog.md
deleted file mode 100644
index 18316a53..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/changeLog.md
+++ /dev/null
@@ -1,175 +0,0 @@
-## version 1.1.0
-
-* allow binding on search predicate [https://github.com/lorenzofox3/Smart-Table/issues/142] (issue 142)
-Note that if you want to search against a property name you have now to put in under single quote otherwise it will be considered as a binding
-```markup
-<input st-search="'name'"/>
-```
-
-## version 1.1.1
-
-* fix #146 and #148, set stPipe before stPagination is called. Thanks [brianchance](https://github.com/brianchance)
-
-## version 1.2.1
-
-* implement #149 (default sorting)
-
-## version 1.2.2
-
-* hide pagination when less than 1 page
-* add unit tests for pagination directive
-
-## version 1.2.3
-
-* fix back to natural sort order
-* use same strategy view -> table state, table state -> view for all the plugins
-
-## version 1.2.4
-
-* fix #161
-
-## version 1.2.5
-
-* fix #162
-
-## version 1.2.6
-
-* fix #165
-* ability to overwrite class names for (st-sort-ascent and st-sort-descent) thanks to [replacement87](https://github.com/replacement87)
-
-## version 1.2.7
-
-* fix #167
-
-## version 1.3.0
-
-* new feature, items by page and displayed page can be bound
-
-## version 1.4.0
-
-* support external template for pagination
-* support angular v1.3.x
-
-## version 1.4.1
-
-* ability to skip natural ordering state (ie fix #192)
-
-## versiokn 1.4.2
-
-* fix #200, `this` in a custom pipe function does not refer to the table controller anymore, and the signature of a custom pipe function is
-```javascript
-function(tableState, tableController){
-
-}
-```
-
-## version 1.4.3
-
-* ability to set filter function <code>st-set-filter</code>
-* ability to set sort function <code>st-set-sort</code>
-
-## version 1.4.4
-
-* patch for sync problem
-
-## version 1.4.5
-
-* merge #234, #218
-* fix #233 #237
-
-## version 1.4.6
-
-* evaluate sort predicate as late as possible
-* fix #262
-
-## version 1.4.7
-
-* fix #276
-
-## version 1.4.8
-
-* fix #281
-
-## version 1.4.9
-
-* fix #285
-
-## version 1.4.10
-
-* fix #284
-* fix #290
-
-## version 1.4.11
-
-* fix #296
-* add possibility to bind a callback when page changes
-
-## version 1.4.12
-
-* don't use pagination class twice
-* build improvement
-
-## version 1.4.13
-
-* use a global configuration
-* expose filtered collection result
-
-## version 2.0.0
-
-* use interpolation rather than binding for st-search directive (to avoid the creation of isolated scope)
-
-**This is a breaking change as now, you will have to remove the single quote around the predicate property name, and if you were using a binding, you'll have to interpolate it with the curly brace notation**
-
-## version 2.0.1
-
-* fix #328
-
-## version 2.0.2
-
-* add debounce to custom pipe function to make sure tableState is stable
-* fix #329
-
-## version 2.0.3
-
-* implements #379
-* fix #390
-
-## version 2.1.0
-
-* support nested search (thanks to @jansabbe)
-* fix #254
-* fix wrong path to default config for stSkipNatural (@phuvo)
-* fix #406
-
-## version 2.1.1
-
-* support commonjs
-* add totalItemCount on tableState (@eirikbell)
-
-## version 2.1.2
-
-* improve build #461 [stanleyxu](https://github.com/stanleyxu2005)
-
-## version 2.1.3
-
-* fix #477
-
-## version 2.1.4
-
-* add throttle to sort
-* add watch to first item in collection (@matthewbednarski)
-
-## version 2.1.5
-
-* #544
-* #533
-* #515
-
-## version 2.1.6
-
-* #559
-
-## version 2.1.7
-
-* fix [#468](https://github.com/lorenzofox3/Smart-Table/issues/468) thanks to Douglas-Treadwell
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.js
deleted file mode 100644
index e0246d45..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.js
+++ /dev/null
@@ -1,534 +0,0 @@
-/**
-* @version 2.1.8
-* @license MIT
-*/
-(function (ng, undefined){
- 'use strict';
-
-ng.module('smart-table', []).run(['$templateCache', function ($templateCache) {
- $templateCache.put('template/smart-table/pagination.html',
- '<nav ng-if="numPages && pages.length >= 2"><ul class="pagination">' +
- '<li ng-repeat="page in pages" ng-class="{active: page==currentPage}"><a href="javascript: void(0);" ng-click="selectPage(page)">{{page}}</a></li>' +
- '</ul></nav>');
-}]);
-
-
-ng.module('smart-table')
- .constant('stConfig', {
- pagination: {
- template: 'template/smart-table/pagination.html',
- itemsByPage: 10,
- displayedPages: 5
- },
- search: {
- delay: 400, // ms
- inputEvent: 'input'
- },
- select: {
- mode: 'single',
- selectedClass: 'st-selected'
- },
- sort: {
- ascentClass: 'st-sort-ascent',
- descentClass: 'st-sort-descent',
- descendingFirst: false,
- skipNatural: false,
- delay:300
- },
- pipe: {
- delay: 100 //ms
- }
- });
-ng.module('smart-table')
- .controller('stTableController', ['$scope', '$parse', '$filter', '$attrs', function StTableController ($scope, $parse, $filter, $attrs) {
- var propertyName = $attrs.stTable;
- var displayGetter = $parse(propertyName);
- var displaySetter = displayGetter.assign;
- var safeGetter;
- var orderBy = $filter('orderBy');
- var filter = $filter('filter');
- var safeCopy = copyRefs(displayGetter($scope));
- var tableState = {
- sort: {},
- search: {},
- pagination: {
- start: 0,
- totalItemCount: 0
- }
- };
- var filtered;
- var pipeAfterSafeCopy = true;
- var ctrl = this;
- var lastSelected;
-
- function copyRefs (src) {
- return src ? [].concat(src) : [];
- }
-
- function updateSafeCopy () {
- safeCopy = copyRefs(safeGetter($scope));
- if (pipeAfterSafeCopy === true) {
- ctrl.pipe();
- }
- }
-
- function deepDelete (object, path) {
- if (path.indexOf('.') != -1) {
- var partials = path.split('.');
- var key = partials.pop();
- var parentPath = partials.join('.');
- var parentObject = $parse(parentPath)(object)
- delete parentObject[key];
- if (Object.keys(parentObject).length == 0) {
- deepDelete(object, parentPath);
- }
- } else {
- delete object[path];
- }
- }
-
- if ($attrs.stSafeSrc) {
- safeGetter = $parse($attrs.stSafeSrc);
- $scope.$watch(function () {
- var safeSrc = safeGetter($scope);
- return safeSrc && safeSrc.length ? safeSrc[0] : undefined;
- }, function (newValue, oldValue) {
- if (newValue !== oldValue) {
- updateSafeCopy();
- }
- });
- $scope.$watch(function () {
- var safeSrc = safeGetter($scope);
- return safeSrc ? safeSrc.length : 0;
- }, function (newValue, oldValue) {
- if (newValue !== safeCopy.length) {
- updateSafeCopy();
- }
- });
- $scope.$watch(function () {
- return safeGetter($scope);
- }, function (newValue, oldValue) {
- if (newValue !== oldValue) {
- tableState.pagination.start = 0;
- updateSafeCopy();
- }
- });
- }
-
- /**
- * sort the rows
- * @param {Function | String} predicate - function or string which will be used as predicate for the sorting
- * @param [reverse] - if you want to reverse the order
- */
- this.sortBy = function sortBy (predicate, reverse) {
- tableState.sort.predicate = predicate;
- tableState.sort.reverse = reverse === true;
-
- if (ng.isFunction(predicate)) {
- tableState.sort.functionName = predicate.name;
- } else {
- delete tableState.sort.functionName;
- }
-
- tableState.pagination.start = 0;
- return this.pipe();
- };
-
- /**
- * search matching rows
- * @param {String} input - the input string
- * @param {String} [predicate] - the property name against you want to check the match, otherwise it will search on all properties
- */
- this.search = function search (input, predicate) {
- var predicateObject = tableState.search.predicateObject || {};
- var prop = predicate ? predicate : '$';
-
- input = ng.isString(input) ? input.trim() : input;
- $parse(prop).assign(predicateObject, input);
- // to avoid to filter out null value
- if (!input) {
- deepDelete(predicateObject, prop);
- }
- tableState.search.predicateObject = predicateObject;
- tableState.pagination.start = 0;
- return this.pipe();
- };
-
- /**
- * this will chain the operations of sorting and filtering based on the current table state (sort options, filtering, ect)
- */
- this.pipe = function pipe () {
- var pagination = tableState.pagination;
- var output;
- filtered = tableState.search.predicateObject ? filter(safeCopy, tableState.search.predicateObject) : safeCopy;
- if (tableState.sort.predicate) {
- filtered = orderBy(filtered, tableState.sort.predicate, tableState.sort.reverse);
- }
- pagination.totalItemCount = filtered.length;
- if (pagination.number !== undefined) {
- pagination.numberOfPages = filtered.length > 0 ? Math.ceil(filtered.length / pagination.number) : 1;
- pagination.start = pagination.start >= filtered.length ? (pagination.numberOfPages - 1) * pagination.number : pagination.start;
- output = filtered.slice(pagination.start, pagination.start + parseInt(pagination.number));
- }
- displaySetter($scope, output || filtered);
- };
-
- /**
- * select a dataRow (it will add the attribute isSelected to the row object)
- * @param {Object} row - the row to select
- * @param {String} [mode] - "single" or "multiple" (multiple by default)
- */
- this.select = function select (row, mode) {
- var rows = copyRefs(displayGetter($scope));
- var index = rows.indexOf(row);
- if (index !== -1) {
- if (mode === 'single') {
- row.isSelected = row.isSelected !== true;
- if (lastSelected) {
- lastSelected.isSelected = false;
- }
- lastSelected = row.isSelected === true ? row : undefined;
- } else {
- rows[index].isSelected = !rows[index].isSelected;
- }
- }
- };
-
- /**
- * take a slice of the current sorted/filtered collection (pagination)
- *
- * @param {Number} start - start index of the slice
- * @param {Number} number - the number of item in the slice
- */
- this.slice = function splice (start, number) {
- tableState.pagination.start = start;
- tableState.pagination.number = number;
- return this.pipe();
- };
-
- /**
- * return the current state of the table
- * @returns {{sort: {}, search: {}, pagination: {start: number}}}
- */
- this.tableState = function getTableState () {
- return tableState;
- };
-
- this.getFilteredCollection = function getFilteredCollection () {
- return filtered || safeCopy;
- };
-
- /**
- * Use a different filter function than the angular FilterFilter
- * @param filterName the name under which the custom filter is registered
- */
- this.setFilterFunction = function setFilterFunction (filterName) {
- filter = $filter(filterName);
- };
-
- /**
- * Use a different function than the angular orderBy
- * @param sortFunctionName the name under which the custom order function is registered
- */
- this.setSortFunction = function setSortFunction (sortFunctionName) {
- orderBy = $filter(sortFunctionName);
- };
-
- /**
- * Usually when the safe copy is updated the pipe function is called.
- * Calling this method will prevent it, which is something required when using a custom pipe function
- */
- this.preventPipeOnWatch = function preventPipe () {
- pipeAfterSafeCopy = false;
- };
- }])
- .directive('stTable', function () {
- return {
- restrict: 'A',
- controller: 'stTableController',
- link: function (scope, element, attr, ctrl) {
-
- if (attr.stSetFilter) {
- ctrl.setFilterFunction(attr.stSetFilter);
- }
-
- if (attr.stSetSort) {
- ctrl.setSortFunction(attr.stSetSort);
- }
- }
- };
- });
-
-ng.module('smart-table')
- .directive('stSearch', ['stConfig', '$timeout','$parse', function (stConfig, $timeout, $parse) {
- return {
- require: '^stTable',
- link: function (scope, element, attr, ctrl) {
- var tableCtrl = ctrl;
- var promise = null;
- var throttle = attr.stDelay || stConfig.search.delay;
- var event = attr.stInputEvent || stConfig.search.inputEvent;
-
- attr.$observe('stSearch', function (newValue, oldValue) {
- var input = element[0].value;
- if (newValue !== oldValue && input) {
- ctrl.tableState().search = {};
- tableCtrl.search(input, newValue);
- }
- });
-
- //table state -> view
- scope.$watch(function () {
- return ctrl.tableState().search;
- }, function (newValue, oldValue) {
- var predicateExpression = attr.stSearch || '$';
- if (newValue.predicateObject && $parse(predicateExpression)(newValue.predicateObject) !== element[0].value) {
- element[0].value = $parse(predicateExpression)(newValue.predicateObject) || '';
- }
- }, true);
-
- // view -> table state
- element.bind(event, function (evt) {
- evt = evt.originalEvent || evt;
- if (promise !== null) {
- $timeout.cancel(promise);
- }
-
- promise = $timeout(function () {
- tableCtrl.search(evt.target.value, attr.stSearch || '');
- promise = null;
- }, throttle);
- });
- }
- };
- }]);
-
-ng.module('smart-table')
- .directive('stSelectRow', ['stConfig', function (stConfig) {
- return {
- restrict: 'A',
- require: '^stTable',
- scope: {
- row: '=stSelectRow'
- },
- link: function (scope, element, attr, ctrl) {
- var mode = attr.stSelectMode || stConfig.select.mode;
- element.bind('click', function () {
- scope.$apply(function () {
- ctrl.select(scope.row, mode);
- });
- });
-
- scope.$watch('row.isSelected', function (newValue) {
- if (newValue === true) {
- element.addClass(stConfig.select.selectedClass);
- } else {
- element.removeClass(stConfig.select.selectedClass);
- }
- });
- }
- };
- }]);
-
-ng.module('smart-table')
- .directive('stSort', ['stConfig', '$parse', '$timeout', function (stConfig, $parse, $timeout) {
- return {
- restrict: 'A',
- require: '^stTable',
- link: function (scope, element, attr, ctrl) {
-
- var predicate = attr.stSort;
- var getter = $parse(predicate);
- var index = 0;
- var classAscent = attr.stClassAscent || stConfig.sort.ascentClass;
- var classDescent = attr.stClassDescent || stConfig.sort.descentClass;
- var stateClasses = [classAscent, classDescent];
- var sortDefault;
- var skipNatural = attr.stSkipNatural !== undefined ? attr.stSkipNatural : stConfig.sort.skipNatural;
- var descendingFirst = attr.stDescendingFirst !== undefined ? attr.stDescendingFirst : stConfig.sort.descendingFirst;
- var promise = null;
- var throttle = attr.stDelay || stConfig.sort.delay;
-
- if (attr.stSortDefault) {
- sortDefault = scope.$eval(attr.stSortDefault) !== undefined ? scope.$eval(attr.stSortDefault) : attr.stSortDefault;
- }
-
- //view --> table state
- function sort () {
- if (descendingFirst) {
- index = index === 0 ? 2 : index - 1;
- } else {
- index++;
- }
-
- var func;
- predicate = ng.isFunction(getter(scope)) || ng.isArray(getter(scope)) ? getter(scope) : attr.stSort;
- if (index % 3 === 0 && !!skipNatural !== true) {
- //manual reset
- index = 0;
- ctrl.tableState().sort = {};
- ctrl.tableState().pagination.start = 0;
- func = ctrl.pipe.bind(ctrl);
- } else {
- func = ctrl.sortBy.bind(ctrl, predicate, index % 2 === 0);
- }
- if (promise !== null) {
- $timeout.cancel(promise);
- }
- if (throttle < 0) {
- func();
- } else {
- promise = $timeout(func, throttle);
- }
- }
-
- element.bind('click', function sortClick () {
- if (predicate) {
- scope.$apply(sort);
- }
- });
-
- if (sortDefault) {
- index = sortDefault === 'reverse' ? 1 : 0;
- sort();
- }
-
- //table state --> view
- scope.$watch(function () {
- return ctrl.tableState().sort;
- }, function (newValue) {
- if (newValue.predicate !== predicate) {
- index = 0;
- element
- .removeClass(classAscent)
- .removeClass(classDescent);
- } else {
- index = newValue.reverse === true ? 2 : 1;
- element
- .removeClass(stateClasses[index % 2])
- .addClass(stateClasses[index - 1]);
- }
- }, true);
- }
- };
- }]);
-
-ng.module('smart-table')
- .directive('stPagination', ['stConfig', function (stConfig) {
- return {
- restrict: 'EA',
- require: '^stTable',
- scope: {
- stItemsByPage: '=?',
- stDisplayedPages: '=?',
- stPageChange: '&'
- },
- templateUrl: function (element, attrs) {
- if (attrs.stTemplate) {
- return attrs.stTemplate;
- }
- return stConfig.pagination.template;
- },
- link: function (scope, element, attrs, ctrl) {
-
- scope.stItemsByPage = scope.stItemsByPage ? +(scope.stItemsByPage) : stConfig.pagination.itemsByPage;
- scope.stDisplayedPages = scope.stDisplayedPages ? +(scope.stDisplayedPages) : stConfig.pagination.displayedPages;
-
- scope.currentPage = 1;
- scope.pages = [];
-
- function redraw () {
- var paginationState = ctrl.tableState().pagination;
- var start = 1;
- var end;
- var i;
- var prevPage = scope.currentPage;
- scope.totalItemCount = paginationState.totalItemCount;
- scope.currentPage = Math.floor(paginationState.start / paginationState.number) + 1;
-
- start = Math.max(start, scope.currentPage - Math.abs(Math.floor(scope.stDisplayedPages / 2)));
- end = start + scope.stDisplayedPages;
-
- if (end > paginationState.numberOfPages) {
- end = paginationState.numberOfPages + 1;
- start = Math.max(1, end - scope.stDisplayedPages);
- }
-
- scope.pages = [];
- scope.numPages = paginationState.numberOfPages;
-
- for (i = start; i < end; i++) {
- scope.pages.push(i);
- }
-
- if (prevPage !== scope.currentPage) {
- scope.stPageChange({newPage: scope.currentPage});
- }
- }
-
- //table state --> view
- scope.$watch(function () {
- return ctrl.tableState().pagination;
- }, redraw, true);
-
- //scope --> table state (--> view)
- scope.$watch('stItemsByPage', function (newValue, oldValue) {
- if (newValue !== oldValue) {
- scope.selectPage(1);
- }
- });
-
- scope.$watch('stDisplayedPages', redraw);
-
- //view -> table state
- scope.selectPage = function (page) {
- if (page > 0 && page <= scope.numPages) {
- ctrl.slice((page - 1) * scope.stItemsByPage, scope.stItemsByPage);
- }
- };
-
- if (!ctrl.tableState().pagination.number) {
- ctrl.slice(0, scope.stItemsByPage);
- }
- }
- };
- }]);
-
-ng.module('smart-table')
- .directive('stPipe', ['stConfig', '$timeout', function (config, $timeout) {
- return {
- require: 'stTable',
- scope: {
- stPipe: '='
- },
- link: {
-
- pre: function (scope, element, attrs, ctrl) {
-
- var pipePromise = null;
-
- if (ng.isFunction(scope.stPipe)) {
- ctrl.preventPipeOnWatch();
- ctrl.pipe = function () {
-
- if (pipePromise !== null) {
- $timeout.cancel(pipePromise)
- }
-
- pipePromise = $timeout(function () {
- scope.stPipe(ctrl.tableState(), ctrl);
- }, config.pipe.delay);
-
- return pipePromise;
- }
- }
- },
-
- post: function (scope, element, attrs, ctrl) {
- ctrl.pipe();
- }
- }
- };
- }]);
-
-})(angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.min.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.min.js
deleted file mode 100644
index 0a65eaab..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.min.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
-* @version 2.1.8
-* @license MIT
-*/
-!function(t,e){"use strict";t.module("smart-table",[]).run(["$templateCache",function(t){t.put("template/smart-table/pagination.html",'<nav ng-if="numPages && pages.length >= 2"><ul class="pagination"><li ng-repeat="page in pages" ng-class="{active: page==currentPage}"><a href="javascript: void(0);" ng-click="selectPage(page)">{{page}}</a></li></ul></nav>')}]),t.module("smart-table").constant("stConfig",{pagination:{template:"template/smart-table/pagination.html",itemsByPage:10,displayedPages:5},search:{delay:400,inputEvent:"input"},select:{mode:"single",selectedClass:"st-selected"},sort:{ascentClass:"st-sort-ascent",descentClass:"st-sort-descent",descendingFirst:!1,skipNatural:!1,delay:300},pipe:{delay:100}}),t.module("smart-table").controller("stTableController",["$scope","$parse","$filter","$attrs",function(a,n,s,i){function r(t){return t?[].concat(t):[]}function l(){b=r(o(a)),v===!0&&S.pipe()}function c(t,e){if(-1!=e.indexOf(".")){var a=e.split("."),s=a.pop(),i=a.join("."),r=n(i)(t);delete r[s],0==Object.keys(r).length&&c(t,i)}else delete t[e]}var o,u,p,g=i.stTable,d=n(g),f=d.assign,m=s("orderBy"),h=s("filter"),b=r(d(a)),P={sort:{},search:{},pagination:{start:0,totalItemCount:0}},v=!0,S=this;i.stSafeSrc&&(o=n(i.stSafeSrc),a.$watch(function(){var t=o(a);return t&&t.length?t[0]:e},function(t,e){t!==e&&l()}),a.$watch(function(){var t=o(a);return t?t.length:0},function(t){t!==b.length&&l()}),a.$watch(function(){return o(a)},function(t,e){t!==e&&(P.pagination.start=0,l())})),this.sortBy=function(e,a){return P.sort.predicate=e,P.sort.reverse=a===!0,t.isFunction(e)?P.sort.functionName=e.name:delete P.sort.functionName,P.pagination.start=0,this.pipe()},this.search=function(e,a){var s=P.search.predicateObject||{},i=a?a:"$";return e=t.isString(e)?e.trim():e,n(i).assign(s,e),e||c(s,i),P.search.predicateObject=s,P.pagination.start=0,this.pipe()},this.pipe=function(){var t,n=P.pagination;u=P.search.predicateObject?h(b,P.search.predicateObject):b,P.sort.predicate&&(u=m(u,P.sort.predicate,P.sort.reverse)),n.totalItemCount=u.length,n.number!==e&&(n.numberOfPages=u.length>0?Math.ceil(u.length/n.number):1,n.start=n.start>=u.length?(n.numberOfPages-1)*n.number:n.start,t=u.slice(n.start,n.start+parseInt(n.number))),f(a,t||u)},this.select=function(t,n){var s=r(d(a)),i=s.indexOf(t);-1!==i&&("single"===n?(t.isSelected=t.isSelected!==!0,p&&(p.isSelected=!1),p=t.isSelected===!0?t:e):s[i].isSelected=!s[i].isSelected)},this.slice=function(t,e){return P.pagination.start=t,P.pagination.number=e,this.pipe()},this.tableState=function(){return P},this.getFilteredCollection=function(){return u||b},this.setFilterFunction=function(t){h=s(t)},this.setSortFunction=function(t){m=s(t)},this.preventPipeOnWatch=function(){v=!1}}]).directive("stTable",function(){return{restrict:"A",controller:"stTableController",link:function(t,e,a,n){a.stSetFilter&&n.setFilterFunction(a.stSetFilter),a.stSetSort&&n.setSortFunction(a.stSetSort)}}}),t.module("smart-table").directive("stSearch",["stConfig","$timeout","$parse",function(t,e,a){return{require:"^stTable",link:function(n,s,i,r){var l=r,c=null,o=i.stDelay||t.search.delay,u=i.stInputEvent||t.search.inputEvent;i.$observe("stSearch",function(t,e){var a=s[0].value;t!==e&&a&&(r.tableState().search={},l.search(a,t))}),n.$watch(function(){return r.tableState().search},function(t){var e=i.stSearch||"$";t.predicateObject&&a(e)(t.predicateObject)!==s[0].value&&(s[0].value=a(e)(t.predicateObject)||"")},!0),s.bind(u,function(t){t=t.originalEvent||t,null!==c&&e.cancel(c),c=e(function(){l.search(t.target.value,i.stSearch||""),c=null},o)})}}}]),t.module("smart-table").directive("stSelectRow",["stConfig",function(t){return{restrict:"A",require:"^stTable",scope:{row:"=stSelectRow"},link:function(e,a,n,s){var i=n.stSelectMode||t.select.mode;a.bind("click",function(){e.$apply(function(){s.select(e.row,i)})}),e.$watch("row.isSelected",function(e){e===!0?a.addClass(t.select.selectedClass):a.removeClass(t.select.selectedClass)})}}}]),t.module("smart-table").directive("stSort",["stConfig","$parse","$timeout",function(a,n,s){return{restrict:"A",require:"^stTable",link:function(i,r,l,c){function o(){P?d=0===d?2:d-1:d++;var e;p=t.isFunction(g(i))||t.isArray(g(i))?g(i):l.stSort,d%3===0&&!!b!=!0?(d=0,c.tableState().sort={},c.tableState().pagination.start=0,e=c.pipe.bind(c)):e=c.sortBy.bind(c,p,d%2===0),null!==v&&s.cancel(v),0>S?e():v=s(e,S)}var u,p=l.stSort,g=n(p),d=0,f=l.stClassAscent||a.sort.ascentClass,m=l.stClassDescent||a.sort.descentClass,h=[f,m],b=l.stSkipNatural!==e?l.stSkipNatural:a.sort.skipNatural,P=l.stDescendingFirst!==e?l.stDescendingFirst:a.sort.descendingFirst,v=null,S=l.stDelay||a.sort.delay;l.stSortDefault&&(u=i.$eval(l.stSortDefault)!==e?i.$eval(l.stSortDefault):l.stSortDefault),r.bind("click",function(){p&&i.$apply(o)}),u&&(d="reverse"===u?1:0,o()),i.$watch(function(){return c.tableState().sort},function(t){t.predicate!==p?(d=0,r.removeClass(f).removeClass(m)):(d=t.reverse===!0?2:1,r.removeClass(h[d%2]).addClass(h[d-1]))},!0)}}}]),t.module("smart-table").directive("stPagination",["stConfig",function(t){return{restrict:"EA",require:"^stTable",scope:{stItemsByPage:"=?",stDisplayedPages:"=?",stPageChange:"&"},templateUrl:function(e,a){return a.stTemplate?a.stTemplate:t.pagination.template},link:function(e,a,n,s){function i(){var t,a,n=s.tableState().pagination,i=1,r=e.currentPage;for(e.totalItemCount=n.totalItemCount,e.currentPage=Math.floor(n.start/n.number)+1,i=Math.max(i,e.currentPage-Math.abs(Math.floor(e.stDisplayedPages/2))),t=i+e.stDisplayedPages,t>n.numberOfPages&&(t=n.numberOfPages+1,i=Math.max(1,t-e.stDisplayedPages)),e.pages=[],e.numPages=n.numberOfPages,a=i;t>a;a++)e.pages.push(a);r!==e.currentPage&&e.stPageChange({newPage:e.currentPage})}e.stItemsByPage=e.stItemsByPage?+e.stItemsByPage:t.pagination.itemsByPage,e.stDisplayedPages=e.stDisplayedPages?+e.stDisplayedPages:t.pagination.displayedPages,e.currentPage=1,e.pages=[],e.$watch(function(){return s.tableState().pagination},i,!0),e.$watch("stItemsByPage",function(t,a){t!==a&&e.selectPage(1)}),e.$watch("stDisplayedPages",i),e.selectPage=function(t){t>0&&t<=e.numPages&&s.slice((t-1)*e.stItemsByPage,e.stItemsByPage)},s.tableState().pagination.number||s.slice(0,e.stItemsByPage)}}}]),t.module("smart-table").directive("stPipe",["stConfig","$timeout",function(e,a){return{require:"stTable",scope:{stPipe:"="},link:{pre:function(n,s,i,r){var l=null;t.isFunction(n.stPipe)&&(r.preventPipeOnWatch(),r.pipe=function(){return null!==l&&a.cancel(l),l=a(function(){n.stPipe(r.tableState(),r)},e.pipe.delay)})},post:function(t,e,a,n){n.pipe()}}}}])}(angular);
-//# sourceMappingURL=smart-table.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.min.js.map b/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.min.js.map
deleted file mode 100644
index 186e03c1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/dist/smart-table.min.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["smart-table.min.js"],"names":["ng","undefined","module","run","$templateCache","put","constant","pagination","template","itemsByPage","displayedPages","search","delay","inputEvent","select","mode","selectedClass","sort","ascentClass","descentClass","descendingFirst","skipNatural","pipe","controller","$scope","$parse","$filter","$attrs","copyRefs","src","concat","updateSafeCopy","safeCopy","safeGetter","pipeAfterSafeCopy","ctrl","deepDelete","object","path","indexOf","partials","split","key","pop","parentPath","join","parentObject","Object","keys","length","filtered","lastSelected","propertyName","stTable","displayGetter","displaySetter","assign","orderBy","filter","tableState","start","totalItemCount","this","stSafeSrc","$watch","safeSrc","newValue","oldValue","sortBy","predicate","reverse","isFunction","functionName","name","input","predicateObject","prop","isString","trim","output","number","numberOfPages","Math","ceil","slice","parseInt","row","rows","index","isSelected","getFilteredCollection","setFilterFunction","filterName","setSortFunction","sortFunctionName","preventPipeOnWatch","directive","restrict","link","scope","element","attr","stSetFilter","stSetSort","stConfig","$timeout","require","tableCtrl","promise","throttle","stDelay","event","stInputEvent","$observe","value","predicateExpression","stSearch","bind","evt","originalEvent","cancel","target","stSelectMode","$apply","addClass","removeClass","func","getter","isArray","stSort","sortDefault","classAscent","stClassAscent","classDescent","stClassDescent","stateClasses","stSkipNatural","stDescendingFirst","stSortDefault","$eval","stItemsByPage","stDisplayedPages","stPageChange","templateUrl","attrs","stTemplate","redraw","end","i","paginationState","prevPage","currentPage","floor","max","abs","pages","numPages","push","newPage","selectPage","page","config","stPipe","pre","pipePromise","post","angular"],"mappings":"CAAA,SAAWA,EAAIC,GACX,YAEJD,GAAGE,OAAO,kBAAmBC,KAAK,iBAAkB,SAAUC,GAC1DA,EAAeC,IAAI,uCACf,qOAMRL,EAAGE,OAAO,eACPI,SAAS,YACRC,YACEC,SAAU,uCACVC,YAAa,GACbC,eAAgB,GAElBC,QACEC,MAAO,IACPC,WAAY,SAEdC,QACEC,KAAM,SACNC,cAAe,eAEjBC,MACEC,YAAa,iBACbC,aAAc,kBACdC,iBAAiB,EACjBC,aAAa,EACbT,MAAM,KAERU,MACEV,MAAO,OAGbZ,EAAGE,OAAO,eACPqB,WAAW,qBAAsB,SAAU,SAAU,UAAW,SAAU,SAA4BC,EAAQC,EAAQC,EAASC,GAqB9H,QAASC,GAAUC,GACjB,MAAOA,MAASC,OAAOD,MAGzB,QAASE,KACPC,EAAWJ,EAASK,EAAWT,IAC3BU,KAAsB,GACxBC,EAAKb,OAIT,QAASc,GAAYC,EAAQC,GAC3B,GAAyB,IAArBA,EAAKC,QAAQ,KAAY,CAC3B,GAAIC,GAAWF,EAAKG,MAAM,KACtBC,EAAMF,EAASG,MACfC,EAAaJ,EAASK,KAAK,KAC3BC,EAAerB,EAAOmB,GAAYP,SAC/BS,GAAaJ,GACoB,GAApCK,OAAOC,KAAKF,GAAcG,QAC5Bb,EAAWC,EAAQO,cAGdP,GAAOC,GA1ClB,GAGIL,GAYAiB,EAGAC,EAlBAC,EAAezB,EAAO0B,QACtBC,EAAgB7B,EAAO2B,GACvBG,EAAgBD,EAAcE,OAE9BC,EAAU/B,EAAQ,WAClBgC,EAAShC,EAAQ,UACjBM,EAAWJ,EAAS0B,EAAc9B,IAClCmC,GACF1C,QACAN,UACAJ,YACEqD,MAAO,EACPC,eAAgB,IAIhB3B,GAAoB,EACpBC,EAAO2B,IA6BPnC,GAAOoC,YACT9B,EAAaR,EAAOE,EAAOoC,WAC3BvC,EAAOwC,OAAO,WACZ,GAAIC,GAAUhC,EAAWT,EACzB,OAAOyC,IAAWA,EAAQhB,OAASgB,EAAQ,GAAKhE,GAC/C,SAAUiE,EAAUC,GACjBD,IAAaC,GACfpC,MAGJP,EAAOwC,OAAO,WACZ,GAAIC,GAAUhC,EAAWT,EACzB,OAAOyC,GAAUA,EAAQhB,OAAS,GACjC,SAAUiB,GACPA,IAAalC,EAASiB,QACxBlB,MAGJP,EAAOwC,OAAO,WACZ,MAAO/B,GAAWT,IACjB,SAAU0C,EAAUC,GACjBD,IAAaC,IACfR,EAAWpD,WAAWqD,MAAQ,EAC9B7B,QAUN+B,KAAKM,OAAS,SAAiBC,EAAWC,GAWxC,MAVAX,GAAW1C,KAAKoD,UAAYA,EAC5BV,EAAW1C,KAAKqD,QAAUA,KAAY,EAElCtE,EAAGuE,WAAWF,GAChBV,EAAW1C,KAAKuD,aAAeH,EAAUI,WAElCd,GAAW1C,KAAKuD,aAGzBb,EAAWpD,WAAWqD,MAAQ,EACvBE,KAAKxC,QAQdwC,KAAKnD,OAAS,SAAiB+D,EAAOL,GACpC,GAAIM,GAAkBhB,EAAWhD,OAAOgE,oBACpCC,EAAOP,EAAYA,EAAY,GAUnC,OARAK,GAAQ1E,EAAG6E,SAASH,GAASA,EAAMI,OAASJ,EAC5CjD,EAAOmD,GAAMpB,OAAOmB,EAAiBD,GAEhCA,GACHtC,EAAWuC,EAAiBC,GAE9BjB,EAAWhD,OAAOgE,gBAAkBA,EACpChB,EAAWpD,WAAWqD,MAAQ,EACvBE,KAAKxC,QAMdwC,KAAKxC,KAAO,WACV,GACIyD,GADAxE,EAAaoD,EAAWpD,UAE5B2C,GAAWS,EAAWhD,OAAOgE,gBAAkBjB,EAAO1B,EAAU2B,EAAWhD,OAAOgE,iBAAmB3C,EACjG2B,EAAW1C,KAAKoD,YAClBnB,EAAWO,EAAQP,EAAUS,EAAW1C,KAAKoD,UAAWV,EAAW1C,KAAKqD,UAE1E/D,EAAWsD,eAAiBX,EAASD,OACjC1C,EAAWyE,SAAW/E,IACxBM,EAAW0E,cAAgB/B,EAASD,OAAS,EAAIiC,KAAKC,KAAKjC,EAASD,OAAS1C,EAAWyE,QAAU,EAClGzE,EAAWqD,MAAQrD,EAAWqD,OAASV,EAASD,QAAU1C,EAAW0E,cAAgB,GAAK1E,EAAWyE,OAASzE,EAAWqD,MACzHmB,EAAS7B,EAASkC,MAAM7E,EAAWqD,MAAOrD,EAAWqD,MAAQyB,SAAS9E,EAAWyE,UAEnFzB,EAAc/B,EAAQuD,GAAU7B,IAQlCY,KAAKhD,OAAS,SAAiBwE,EAAKvE,GAClC,GAAIwE,GAAO3D,EAAS0B,EAAc9B,IAC9BgE,EAAQD,EAAKhD,QAAQ+C,EACX,MAAVE,IACW,WAATzE,GACFuE,EAAIG,WAAaH,EAAIG,cAAe,EAChCtC,IACFA,EAAasC,YAAa,GAE5BtC,EAAemC,EAAIG,cAAe,EAAOH,EAAMrF,GAE/CsF,EAAKC,GAAOC,YAAcF,EAAKC,GAAOC,aAW5C3B,KAAKsB,MAAQ,SAAiBxB,EAAOoB,GAGnC,MAFArB,GAAWpD,WAAWqD,MAAQA,EAC9BD,EAAWpD,WAAWyE,OAASA,EACxBlB,KAAKxC,QAOdwC,KAAKH,WAAa,WAChB,MAAOA,IAGTG,KAAK4B,sBAAwB,WAC3B,MAAOxC,IAAYlB,GAOrB8B,KAAK6B,kBAAoB,SAA4BC,GACnDlC,EAAShC,EAAQkE,IAOnB9B,KAAK+B,gBAAkB,SAA0BC,GAC/CrC,EAAU/B,EAAQoE,IAOpBhC,KAAKiC,mBAAqB,WACxB7D,GAAoB,MAGvB8D,UAAU,UAAW,WACpB,OACEC,SAAU,IACV1E,WAAY,oBACZ2E,KAAM,SAAUC,EAAOC,EAASC,EAAMlE,GAEhCkE,EAAKC,aACPnE,EAAKwD,kBAAkBU,EAAKC,aAG1BD,EAAKE,WACPpE,EAAK0D,gBAAgBQ,EAAKE,eAMpCvG,EAAGE,OAAO,eACP8F,UAAU,YAAa,WAAY,WAAW,SAAU,SAAUQ,EAAUC,EAAUhF,GACrF,OACEiF,QAAS,WACTR,KAAM,SAAUC,EAAOC,EAASC,EAAMlE,GACpC,GAAIwE,GAAYxE,EACZyE,EAAU,KACVC,EAAWR,EAAKS,SAAWN,EAAS7F,OAAOC,MAC3CmG,EAAQV,EAAKW,cAAgBR,EAAS7F,OAAOE,UAEjDwF,GAAKY,SAAS,WAAY,SAAU/C,EAAUC,GAC5C,GAAIO,GAAQ0B,EAAQ,GAAGc,KACnBhD,KAAaC,GAAYO,IAC3BvC,EAAKwB,aAAahD,UAClBgG,EAAUhG,OAAO+D,EAAOR,MAK5BiC,EAAMnC,OAAO,WACX,MAAO7B,GAAKwB,aAAahD,QACxB,SAAUuD,GACX,GAAIiD,GAAsBd,EAAKe,UAAY,GACvClD,GAASS,iBAAmBlD,EAAO0F,GAAqBjD,EAASS,mBAAqByB,EAAQ,GAAGc,QACnGd,EAAQ,GAAGc,MAAQzF,EAAO0F,GAAqBjD,EAASS,kBAAoB,MAE7E,GAGHyB,EAAQiB,KAAKN,EAAO,SAAUO,GAC5BA,EAAMA,EAAIC,eAAiBD,EACX,OAAZV,GACFH,EAASe,OAAOZ,GAGlBA,EAAUH,EAAS,WACjBE,EAAUhG,OAAO2G,EAAIG,OAAOP,MAAOb,EAAKe,UAAY,IACpDR,EAAU,MACTC,UAMb7G,EAAGE,OAAO,eACP8F,UAAU,eAAgB,WAAY,SAAUQ,GAC/C,OACEP,SAAU,IACVS,QAAS,WACTP,OACEb,IAAK,gBAEPY,KAAM,SAAUC,EAAOC,EAASC,EAAMlE,GACpC,GAAIpB,GAAOsF,EAAKqB,cAAgBlB,EAAS1F,OAAOC,IAChDqF,GAAQiB,KAAK,QAAS,WACpBlB,EAAMwB,OAAO,WACXxF,EAAKrB,OAAOqF,EAAMb,IAAKvE,OAI3BoF,EAAMnC,OAAO,iBAAkB,SAAUE,GACnCA,KAAa,EACfkC,EAAQwB,SAASpB,EAAS1F,OAAOE,eAEjCoF,EAAQyB,YAAYrB,EAAS1F,OAAOE,sBAOhDhB,EAAGE,OAAO,eACP8F,UAAU,UAAW,WAAY,SAAU,WAAY,SAAUQ,EAAU/E,EAAQgF,GAClF,OACER,SAAU,IACVS,QAAS,WACTR,KAAM,SAAUC,EAAOC,EAASC,EAAMlE,GAmBpC,QAASlB,KACHG,EACFoE,EAAkB,IAAVA,EAAc,EAAIA,EAAQ,EAElCA,GAGF,IAAIsC,EACJzD,GAAYrE,EAAGuE,WAAWwD,EAAO5B,KAAWnG,EAAGgI,QAAQD,EAAO5B,IAAU4B,EAAO5B,GAASE,EAAK4B,OACzFzC,EAAQ,IAAM,KAAOnE,IAAgB,GAEvCmE,EAAQ,EACRrD,EAAKwB,aAAa1C,QAClBkB,EAAKwB,aAAapD,WAAWqD,MAAQ,EACrCkE,EAAO3F,EAAKb,KAAK+F,KAAKlF,IAEtB2F,EAAO3F,EAAKiC,OAAOiD,KAAKlF,EAAMkC,EAAWmB,EAAQ,IAAM,GAEzC,OAAZoB,GACFH,EAASe,OAAOZ,GAEH,EAAXC,EACFiB,IAEAlB,EAAUH,EAASqB,EAAMjB,GAzC7B,GAMIqB,GANA7D,EAAYgC,EAAK4B,OACjBF,EAAStG,EAAO4C,GAChBmB,EAAQ,EACR2C,EAAc9B,EAAK+B,eAAiB5B,EAASvF,KAAKC,YAClDmH,EAAehC,EAAKiC,gBAAkB9B,EAASvF,KAAKE,aACpDoH,GAAgBJ,EAAaE,GAE7BhH,EAAcgF,EAAKmC,gBAAkBvI,EAAYoG,EAAKmC,cAAgBhC,EAASvF,KAAKI,YACpFD,EAAkBiF,EAAKoC,oBAAsBxI,EAAYoG,EAAKoC,kBAAoBjC,EAASvF,KAAKG,gBAChGwF,EAAU,KACVC,EAAWR,EAAKS,SAAWN,EAASvF,KAAKL,KAEzCyF,GAAKqC,gBACPR,EAAc/B,EAAMwC,MAAMtC,EAAKqC,iBAAmBzI,EAAYkG,EAAMwC,MAAMtC,EAAKqC,eAAiBrC,EAAKqC,eAgCvGtC,EAAQiB,KAAK,QAAS,WAChBhD,GACF8B,EAAMwB,OAAO1G,KAIbiH,IACF1C,EAAwB,YAAhB0C,EAA4B,EAAI,EACxCjH,KAIFkF,EAAMnC,OAAO,WACX,MAAO7B,GAAKwB,aAAa1C,MACxB,SAAUiD,GACPA,EAASG,YAAcA,GACzBmB,EAAQ,EACRY,EACGyB,YAAYM,GACZN,YAAYQ,KAEf7C,EAAQtB,EAASI,WAAY,EAAO,EAAI,EACxC8B,EACGyB,YAAYU,EAAa/C,EAAQ,IACjCoC,SAASW,EAAa/C,EAAQ,OAElC,QAKXxF,EAAGE,OAAO,eACP8F,UAAU,gBAAiB,WAAY,SAAUQ,GAChD,OACEP,SAAU,KACVS,QAAS,WACTP,OACEyC,cAAe,KACfC,iBAAkB,KAClBC,aAAc,KAEhBC,YAAa,SAAU3C,EAAS4C,GAC9B,MAAIA,GAAMC,WACDD,EAAMC,WAERzC,EAASjG,WAAWC,UAE7B0F,KAAM,SAAUC,EAAOC,EAAS4C,EAAO7G,GAQrC,QAAS+G,KACP,GAEIC,GACAC,EAHAC,EAAkBlH,EAAKwB,aAAapD,WACpCqD,EAAQ,EAGR0F,EAAWnD,EAAMoD,WAerB,KAdApD,EAAMtC,eAAiBwF,EAAgBxF,eACvCsC,EAAMoD,YAAcrE,KAAKsE,MAAMH,EAAgBzF,MAAQyF,EAAgBrE,QAAU,EAEjFpB,EAAQsB,KAAKuE,IAAI7F,EAAOuC,EAAMoD,YAAcrE,KAAKwE,IAAIxE,KAAKsE,MAAMrD,EAAM0C,iBAAmB,KACzFM,EAAMvF,EAAQuC,EAAM0C,iBAEhBM,EAAME,EAAgBpE,gBACxBkE,EAAME,EAAgBpE,cAAgB,EACtCrB,EAAQsB,KAAKuE,IAAI,EAAGN,EAAMhD,EAAM0C,mBAGlC1C,EAAMwD,SACNxD,EAAMyD,SAAWP,EAAgBpE,cAE5BmE,EAAIxF,EAAWuF,EAAJC,EAASA,IACvBjD,EAAMwD,MAAME,KAAKT,EAGfE,KAAanD,EAAMoD,aACrBpD,EAAM2C,cAAcgB,QAAS3D,EAAMoD,cA/BvCpD,EAAMyC,cAAgBzC,EAAMyC,eAAkBzC,EAAmB,cAAIK,EAASjG,WAAWE,YACzF0F,EAAM0C,iBAAmB1C,EAAM0C,kBAAqB1C,EAAsB,iBAAIK,EAASjG,WAAWG,eAElGyF,EAAMoD,YAAc,EACpBpD,EAAMwD,SAgCNxD,EAAMnC,OAAO,WACX,MAAO7B,GAAKwB,aAAapD,YACxB2I,GAAQ,GAGX/C,EAAMnC,OAAO,gBAAiB,SAAUE,EAAUC,GAC5CD,IAAaC,GACfgC,EAAM4D,WAAW,KAIrB5D,EAAMnC,OAAO,mBAAoBkF,GAGjC/C,EAAM4D,WAAa,SAAUC,GACvBA,EAAO,GAAKA,GAAQ7D,EAAMyD,UAC5BzH,EAAKiD,OAAO4E,EAAO,GAAK7D,EAAMyC,cAAezC,EAAMyC,gBAIlDzG,EAAKwB,aAAapD,WAAWyE,QAChC7C,EAAKiD,MAAM,EAAGe,EAAMyC,oBAM9B5I,EAAGE,OAAO,eACP8F,UAAU,UAAW,WAAY,WAAY,SAAUiE,EAAQxD,GAC9D,OACEC,QAAS,UACTP,OACE+D,OAAQ,KAEVhE,MAEEiE,IAAK,SAAUhE,EAAOC,EAAS4C,EAAO7G,GAEpC,GAAIiI,GAAc,IAEdpK,GAAGuE,WAAW4B,EAAM+D,UACtB/H,EAAK4D,qBACL5D,EAAKb,KAAO,WAUV,MARoB,QAAhB8I,GACF3D,EAASe,OAAO4C,GAGlBA,EAAc3D,EAAS,WACrBN,EAAM+D,OAAO/H,EAAKwB,aAAcxB,IAC/B8H,EAAO3I,KAAKV,UAOrByJ,KAAM,SAAUlE,EAAOC,EAAS4C,EAAO7G,GACrCA,EAAKb,cAMZgJ","file":"smart-table.min.js","sourcesContent":["(function (ng, undefined){\n 'use strict';\n\nng.module('smart-table', []).run(['$templateCache', function ($templateCache) {\n $templateCache.put('template/smart-table/pagination.html',\n '<nav ng-if=\"numPages && pages.length >= 2\"><ul class=\"pagination\">' +\n '<li ng-repeat=\"page in pages\" ng-class=\"{active: page==currentPage}\"><a href=\"javascript: void(0);\" ng-click=\"selectPage(page)\">{{page}}</a></li>' +\n '</ul></nav>');\n}]);\n\n\nng.module('smart-table')\n .constant('stConfig', {\n pagination: {\n template: 'template/smart-table/pagination.html',\n itemsByPage: 10,\n displayedPages: 5\n },\n search: {\n delay: 400, // ms\n inputEvent: 'input'\n },\n select: {\n mode: 'single',\n selectedClass: 'st-selected'\n },\n sort: {\n ascentClass: 'st-sort-ascent',\n descentClass: 'st-sort-descent',\n descendingFirst: false,\n skipNatural: false,\n delay:300\n },\n pipe: {\n delay: 100 //ms\n }\n });\nng.module('smart-table')\n .controller('stTableController', ['$scope', '$parse', '$filter', '$attrs', function StTableController ($scope, $parse, $filter, $attrs) {\n var propertyName = $attrs.stTable;\n var displayGetter = $parse(propertyName);\n var displaySetter = displayGetter.assign;\n var safeGetter;\n var orderBy = $filter('orderBy');\n var filter = $filter('filter');\n var safeCopy = copyRefs(displayGetter($scope));\n var tableState = {\n sort: {},\n search: {},\n pagination: {\n start: 0,\n totalItemCount: 0\n }\n };\n var filtered;\n var pipeAfterSafeCopy = true;\n var ctrl = this;\n var lastSelected;\n\n function copyRefs (src) {\n return src ? [].concat(src) : [];\n }\n\n function updateSafeCopy () {\n safeCopy = copyRefs(safeGetter($scope));\n if (pipeAfterSafeCopy === true) {\n ctrl.pipe();\n }\n }\n\n function deepDelete (object, path) {\n if (path.indexOf('.') != -1) {\n var partials = path.split('.');\n var key = partials.pop();\n var parentPath = partials.join('.');\n var parentObject = $parse(parentPath)(object)\n delete parentObject[key];\n if (Object.keys(parentObject).length == 0) {\n deepDelete(object, parentPath);\n }\n } else {\n delete object[path];\n }\n }\n\n if ($attrs.stSafeSrc) {\n safeGetter = $parse($attrs.stSafeSrc);\n $scope.$watch(function () {\n var safeSrc = safeGetter($scope);\n return safeSrc && safeSrc.length ? safeSrc[0] : undefined;\n }, function (newValue, oldValue) {\n if (newValue !== oldValue) {\n updateSafeCopy();\n }\n });\n $scope.$watch(function () {\n var safeSrc = safeGetter($scope);\n return safeSrc ? safeSrc.length : 0;\n }, function (newValue, oldValue) {\n if (newValue !== safeCopy.length) {\n updateSafeCopy();\n }\n });\n $scope.$watch(function () {\n return safeGetter($scope);\n }, function (newValue, oldValue) {\n if (newValue !== oldValue) {\n tableState.pagination.start = 0;\n updateSafeCopy();\n }\n });\n }\n\n /**\n * sort the rows\n * @param {Function | String} predicate - function or string which will be used as predicate for the sorting\n * @param [reverse] - if you want to reverse the order\n */\n this.sortBy = function sortBy (predicate, reverse) {\n tableState.sort.predicate = predicate;\n tableState.sort.reverse = reverse === true;\n\n if (ng.isFunction(predicate)) {\n tableState.sort.functionName = predicate.name;\n } else {\n delete tableState.sort.functionName;\n }\n\n tableState.pagination.start = 0;\n return this.pipe();\n };\n\n /**\n * search matching rows\n * @param {String} input - the input string\n * @param {String} [predicate] - the property name against you want to check the match, otherwise it will search on all properties\n */\n this.search = function search (input, predicate) {\n var predicateObject = tableState.search.predicateObject || {};\n var prop = predicate ? predicate : '$';\n\n input = ng.isString(input) ? input.trim() : input;\n $parse(prop).assign(predicateObject, input);\n // to avoid to filter out null value\n if (!input) {\n deepDelete(predicateObject, prop);\n }\n tableState.search.predicateObject = predicateObject;\n tableState.pagination.start = 0;\n return this.pipe();\n };\n\n /**\n * this will chain the operations of sorting and filtering based on the current table state (sort options, filtering, ect)\n */\n this.pipe = function pipe () {\n var pagination = tableState.pagination;\n var output;\n filtered = tableState.search.predicateObject ? filter(safeCopy, tableState.search.predicateObject) : safeCopy;\n if (tableState.sort.predicate) {\n filtered = orderBy(filtered, tableState.sort.predicate, tableState.sort.reverse);\n }\n pagination.totalItemCount = filtered.length;\n if (pagination.number !== undefined) {\n pagination.numberOfPages = filtered.length > 0 ? Math.ceil(filtered.length / pagination.number) : 1;\n pagination.start = pagination.start >= filtered.length ? (pagination.numberOfPages - 1) * pagination.number : pagination.start;\n output = filtered.slice(pagination.start, pagination.start + parseInt(pagination.number));\n }\n displaySetter($scope, output || filtered);\n };\n\n /**\n * select a dataRow (it will add the attribute isSelected to the row object)\n * @param {Object} row - the row to select\n * @param {String} [mode] - \"single\" or \"multiple\" (multiple by default)\n */\n this.select = function select (row, mode) {\n var rows = copyRefs(displayGetter($scope));\n var index = rows.indexOf(row);\n if (index !== -1) {\n if (mode === 'single') {\n row.isSelected = row.isSelected !== true;\n if (lastSelected) {\n lastSelected.isSelected = false;\n }\n lastSelected = row.isSelected === true ? row : undefined;\n } else {\n rows[index].isSelected = !rows[index].isSelected;\n }\n }\n };\n\n /**\n * take a slice of the current sorted/filtered collection (pagination)\n *\n * @param {Number} start - start index of the slice\n * @param {Number} number - the number of item in the slice\n */\n this.slice = function splice (start, number) {\n tableState.pagination.start = start;\n tableState.pagination.number = number;\n return this.pipe();\n };\n\n /**\n * return the current state of the table\n * @returns {{sort: {}, search: {}, pagination: {start: number}}}\n */\n this.tableState = function getTableState () {\n return tableState;\n };\n\n this.getFilteredCollection = function getFilteredCollection () {\n return filtered || safeCopy;\n };\n\n /**\n * Use a different filter function than the angular FilterFilter\n * @param filterName the name under which the custom filter is registered\n */\n this.setFilterFunction = function setFilterFunction (filterName) {\n filter = $filter(filterName);\n };\n\n /**\n * Use a different function than the angular orderBy\n * @param sortFunctionName the name under which the custom order function is registered\n */\n this.setSortFunction = function setSortFunction (sortFunctionName) {\n orderBy = $filter(sortFunctionName);\n };\n\n /**\n * Usually when the safe copy is updated the pipe function is called.\n * Calling this method will prevent it, which is something required when using a custom pipe function\n */\n this.preventPipeOnWatch = function preventPipe () {\n pipeAfterSafeCopy = false;\n };\n }])\n .directive('stTable', function () {\n return {\n restrict: 'A',\n controller: 'stTableController',\n link: function (scope, element, attr, ctrl) {\n\n if (attr.stSetFilter) {\n ctrl.setFilterFunction(attr.stSetFilter);\n }\n\n if (attr.stSetSort) {\n ctrl.setSortFunction(attr.stSetSort);\n }\n }\n };\n });\n\nng.module('smart-table')\n .directive('stSearch', ['stConfig', '$timeout','$parse', function (stConfig, $timeout, $parse) {\n return {\n require: '^stTable',\n link: function (scope, element, attr, ctrl) {\n var tableCtrl = ctrl;\n var promise = null;\n var throttle = attr.stDelay || stConfig.search.delay;\n var event = attr.stInputEvent || stConfig.search.inputEvent;\n\n attr.$observe('stSearch', function (newValue, oldValue) {\n var input = element[0].value;\n if (newValue !== oldValue && input) {\n ctrl.tableState().search = {};\n tableCtrl.search(input, newValue);\n }\n });\n\n //table state -> view\n scope.$watch(function () {\n return ctrl.tableState().search;\n }, function (newValue, oldValue) {\n var predicateExpression = attr.stSearch || '$';\n if (newValue.predicateObject && $parse(predicateExpression)(newValue.predicateObject) !== element[0].value) {\n element[0].value = $parse(predicateExpression)(newValue.predicateObject) || '';\n }\n }, true);\n\n // view -> table state\n element.bind(event, function (evt) {\n evt = evt.originalEvent || evt;\n if (promise !== null) {\n $timeout.cancel(promise);\n }\n\n promise = $timeout(function () {\n tableCtrl.search(evt.target.value, attr.stSearch || '');\n promise = null;\n }, throttle);\n });\n }\n };\n }]);\n\nng.module('smart-table')\n .directive('stSelectRow', ['stConfig', function (stConfig) {\n return {\n restrict: 'A',\n require: '^stTable',\n scope: {\n row: '=stSelectRow'\n },\n link: function (scope, element, attr, ctrl) {\n var mode = attr.stSelectMode || stConfig.select.mode;\n element.bind('click', function () {\n scope.$apply(function () {\n ctrl.select(scope.row, mode);\n });\n });\n\n scope.$watch('row.isSelected', function (newValue) {\n if (newValue === true) {\n element.addClass(stConfig.select.selectedClass);\n } else {\n element.removeClass(stConfig.select.selectedClass);\n }\n });\n }\n };\n }]);\n\nng.module('smart-table')\n .directive('stSort', ['stConfig', '$parse', '$timeout', function (stConfig, $parse, $timeout) {\n return {\n restrict: 'A',\n require: '^stTable',\n link: function (scope, element, attr, ctrl) {\n\n var predicate = attr.stSort;\n var getter = $parse(predicate);\n var index = 0;\n var classAscent = attr.stClassAscent || stConfig.sort.ascentClass;\n var classDescent = attr.stClassDescent || stConfig.sort.descentClass;\n var stateClasses = [classAscent, classDescent];\n var sortDefault;\n var skipNatural = attr.stSkipNatural !== undefined ? attr.stSkipNatural : stConfig.sort.skipNatural;\n var descendingFirst = attr.stDescendingFirst !== undefined ? attr.stDescendingFirst : stConfig.sort.descendingFirst;\n var promise = null;\n var throttle = attr.stDelay || stConfig.sort.delay;\n\n if (attr.stSortDefault) {\n sortDefault = scope.$eval(attr.stSortDefault) !== undefined ? scope.$eval(attr.stSortDefault) : attr.stSortDefault;\n }\n\n //view --> table state\n function sort () {\n if (descendingFirst) {\n index = index === 0 ? 2 : index - 1;\n } else {\n index++;\n }\n\n var func;\n predicate = ng.isFunction(getter(scope)) || ng.isArray(getter(scope)) ? getter(scope) : attr.stSort;\n if (index % 3 === 0 && !!skipNatural !== true) {\n //manual reset\n index = 0;\n ctrl.tableState().sort = {};\n ctrl.tableState().pagination.start = 0;\n func = ctrl.pipe.bind(ctrl);\n } else {\n func = ctrl.sortBy.bind(ctrl, predicate, index % 2 === 0);\n }\n if (promise !== null) {\n $timeout.cancel(promise);\n }\n if (throttle < 0) {\n func();\n } else {\n promise = $timeout(func, throttle);\n }\n }\n\n element.bind('click', function sortClick () {\n if (predicate) {\n scope.$apply(sort);\n }\n });\n\n if (sortDefault) {\n index = sortDefault === 'reverse' ? 1 : 0;\n sort();\n }\n\n //table state --> view\n scope.$watch(function () {\n return ctrl.tableState().sort;\n }, function (newValue) {\n if (newValue.predicate !== predicate) {\n index = 0;\n element\n .removeClass(classAscent)\n .removeClass(classDescent);\n } else {\n index = newValue.reverse === true ? 2 : 1;\n element\n .removeClass(stateClasses[index % 2])\n .addClass(stateClasses[index - 1]);\n }\n }, true);\n }\n };\n }]);\n\nng.module('smart-table')\n .directive('stPagination', ['stConfig', function (stConfig) {\n return {\n restrict: 'EA',\n require: '^stTable',\n scope: {\n stItemsByPage: '=?',\n stDisplayedPages: '=?',\n stPageChange: '&'\n },\n templateUrl: function (element, attrs) {\n if (attrs.stTemplate) {\n return attrs.stTemplate;\n }\n return stConfig.pagination.template;\n },\n link: function (scope, element, attrs, ctrl) {\n\n scope.stItemsByPage = scope.stItemsByPage ? +(scope.stItemsByPage) : stConfig.pagination.itemsByPage;\n scope.stDisplayedPages = scope.stDisplayedPages ? +(scope.stDisplayedPages) : stConfig.pagination.displayedPages;\n\n scope.currentPage = 1;\n scope.pages = [];\n\n function redraw () {\n var paginationState = ctrl.tableState().pagination;\n var start = 1;\n var end;\n var i;\n var prevPage = scope.currentPage;\n scope.totalItemCount = paginationState.totalItemCount;\n scope.currentPage = Math.floor(paginationState.start / paginationState.number) + 1;\n\n start = Math.max(start, scope.currentPage - Math.abs(Math.floor(scope.stDisplayedPages / 2)));\n end = start + scope.stDisplayedPages;\n\n if (end > paginationState.numberOfPages) {\n end = paginationState.numberOfPages + 1;\n start = Math.max(1, end - scope.stDisplayedPages);\n }\n\n scope.pages = [];\n scope.numPages = paginationState.numberOfPages;\n\n for (i = start; i < end; i++) {\n scope.pages.push(i);\n }\n\n if (prevPage !== scope.currentPage) {\n scope.stPageChange({newPage: scope.currentPage});\n }\n }\n\n //table state --> view\n scope.$watch(function () {\n return ctrl.tableState().pagination;\n }, redraw, true);\n\n //scope --> table state (--> view)\n scope.$watch('stItemsByPage', function (newValue, oldValue) {\n if (newValue !== oldValue) {\n scope.selectPage(1);\n }\n });\n\n scope.$watch('stDisplayedPages', redraw);\n\n //view -> table state\n scope.selectPage = function (page) {\n if (page > 0 && page <= scope.numPages) {\n ctrl.slice((page - 1) * scope.stItemsByPage, scope.stItemsByPage);\n }\n };\n\n if (!ctrl.tableState().pagination.number) {\n ctrl.slice(0, scope.stItemsByPage);\n }\n }\n };\n }]);\n\nng.module('smart-table')\n .directive('stPipe', ['stConfig', '$timeout', function (config, $timeout) {\n return {\n require: 'stTable',\n scope: {\n stPipe: '='\n },\n link: {\n\n pre: function (scope, element, attrs, ctrl) {\n\n var pipePromise = null;\n\n if (ng.isFunction(scope.stPipe)) {\n ctrl.preventPipeOnWatch();\n ctrl.pipe = function () {\n\n if (pipePromise !== null) {\n $timeout.cancel(pipePromise)\n }\n\n pipePromise = $timeout(function () {\n scope.stPipe(ctrl.tableState(), ctrl);\n }, config.pipe.delay);\n\n return pipePromise;\n }\n }\n },\n\n post: function (scope, element, attrs, ctrl) {\n ctrl.pipe();\n }\n }\n };\n }]);\n\n})(angular);"],"sourceRoot":"/source/"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/gulpFile.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/gulpFile.js
deleted file mode 100644
index cd2bb702..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/gulpFile.js
+++ /dev/null
@@ -1,60 +0,0 @@
-var gulp = require('gulp');
-var concat = require('gulp-concat');
-var uglify = require('gulp-uglify');
-var karma = require('karma').server;
-var jshint = require('gulp-jshint');
-var insert = require('gulp-insert');
-var sourcemaps = require('gulp-sourcemaps');
-var stylish = require('jshint-stylish');
-var packageJson = require('./package.json');
-var pluginList = ['stSearch', 'stSelectRow', 'stSort', 'stPagination', 'stPipe'];
-var disFolder = './dist/';
-var src = (['smart-table.module', 'stConfig', 'stTable']).concat(pluginList).map(function (val) {
- return 'src/' + val + '.js';
-});
-
-src.push('src/bottom.txt');
-src.unshift('src/top.txt');
-
-//just as indication
-gulp.task('lint', function () {
- gulp.src(src)
- .pipe(jshint())
- .pipe(jshint.reporter(stylish));
-});
-
-
-gulp.task('karma-CI', function (done) {
- var conf = require('./test/karma.common.js');
- conf.singleRun = true;
- conf.browsers = ['PhantomJS'];
- conf.basePath = './';
- karma.start(conf, done);
-});
-
-gulp.task('uglify', function () {
- gulp.src(src)
- .pipe(concat('smart-table.min.js'))
- .pipe(sourcemaps.init())
- .pipe(uglify())
- .pipe(sourcemaps.write('.'))
- .pipe(gulp.dest(disFolder));
-});
-
-gulp.task('concat', function () {
- gulp.src(src, { base: '.' })
- .pipe(concat('smart-table.js'))
- .pipe(gulp.dest(disFolder));
-});
-
-gulp.task('test', ['karma-CI']);
-
-gulp.task('build',['test', 'uglify', 'concat'], function () {
-
- var version = packageJson.version;
- var string = '/** \n* @version ' + version + '\n* @license MIT\n*/\n';
-
- gulp.src(disFolder + '*.js')
- .pipe(insert.prepend(string))
- .pipe(gulp.dest(disFolder));
-});
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/index.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/index.js
deleted file mode 100644
index dd107014..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./dist/smart-table.js');
-module.exports = 'smart-table'; \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/package.json b/ecomp-portal-FE/client/bower_components/angular-smart-table/package.json
deleted file mode 100644
index ba604057..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "angular-smart-table",
- "version": "2.1.8",
- "description": "",
- "main": "index.js",
- "scripts": {
- "test": "node ./node_modules/.bin/gulp karma-CI"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/lorenzofox3/Smart-Table.git"
- },
- "author": "Laurent Renard",
- "license": "MIT",
- "devDependencies": {
- "gulp": "^3.8.7",
- "gulp-concat": "^2.3.4",
- "gulp-insert": "^0.4.0",
- "gulp-jshint": "^1.8.4",
- "gulp-sourcemaps": "^1.3.0",
- "gulp-uglify": "^0.3.1",
- "jshint-stylish": "^0.4.0",
- "karma": "^0.12.21",
- "karma-chrome-launcher": "^0.1.4",
- "karma-coverage": "^0.2.6",
- "karma-jasmine": "^0.1.5",
- "karma-phantomjs-launcher": "^0.1.4"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/readme.md b/ecomp-portal-FE/client/bower_components/angular-smart-table/readme.md
deleted file mode 100644
index bc069add..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/readme.md
+++ /dev/null
@@ -1,72 +0,0 @@
-[![Build Status](https://travis-ci.org/lorenzofox3/Smart-Table.svg?branch=master)](https://travis-ci.org/lorenzofox3/Smart-Table)
-
-# Smart Table
-[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/lorenzofox3/Smart-Table?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-
-Smart Table is a table module for angular js. It allows you to quickly compose your table in a declarative way including sorting, filtering, row selection, and pagination.
-It is lightweight (around 3kb minified) and has no other dependencies than Angular itself.
-Check the [documentation](http://lorenzofox3.github.io/smart-table-website/) website for more details
-
-## Submitting an issue
-
-Please be responsible -- investigate potential issues yourself to eliminate the possibility that your issue isn't just an error. If you are still having problems, try posting on our [gitter](https://gitter.im/lorenzofox3/Smart-Table). When submitting an issue try as much as possible to:
-
-1. Search in the already existing issues or on [stackoverflow](http://stackoverflow.com/questions/tagged/smart-table?sort=newest&pageSize=30) if your issue has not been raised before.
-
-2. Give a precise description mentionning angular version, smart-table version.
-
-3. Give a way to reproduce your issue, the best would be with a <strong>running example</strong>, you can use [plunkr](http://plnkr.co/) (smart-table is the list of available packages). Note if you want to mimic ajax loading behaviour you can use [$timeout](https://docs.angularjs.org/api/ng/service/$timeout) angular service or [$httpBackend](https://docs.angularjs.org/api/ng/service/$httpBackend).
-
-4. Isolate your code sample on the probable issue to avoid pollution and noise.
-
-5. Close your issue when a solution has been found (and share it with the community).
-
-Note that 80% of the open issues are actually not issues but due to lack of good investigation. These issues create unnecessary work, so please be considerate.
-
-Any open issue which do not follow the steps above will be closed without investigation.
-
-## Install
-
-The easiest way is to run `bower install angular-smart-table`, then you just have to add the script and register the module `smart-table` to you application.
-
-## Test
-
-Run `npm install` after you have installed the dependencies (`npm install` and `bower install`).
-
-## Custom builds
-
-Smart Table is based around a main directive which generate a top level controller whose API can be accessed by sub directives
-(plugins). If you don't need some of these, simply edit the gulpfile (the pluginList variable) and run `gulp build`.
-
-## Older versions
-
-Smart Table used to be configuration based and if you rely on this version, you can still access the code on the [0.2.x](https://github.com/lorenzofox3/Smart-Table/tree/vx.2.x) branch. You will be able to find the documentation related to this version
-[here](https://github.com/lorenzofox3/smart-table-website) (simply open index.html in a browser).
-
-Note, I have closed all the issues related to these versions as people get confused when reading these issues and commented on them like it was related to the newer version. Feel free to reopen any of them (or open a new one), but don't forget to mention it is related to the older versions.
-
-## License
-
-Smart Table module is under MIT license:
-
-> Copyright (C) 2015 Laurent Renard.
->
-> Permission is hereby granted, free of charge, to any person
-> obtaining a copy of this software and associated documentation files
-> (the "Software"), to deal in the Software without restriction,
-> including without limitation the rights to use, copy, modify, merge,
-> publish, distribute, sublicense, and/or sell copies of the Software,
-> and to permit persons to whom the Software is furnished to do so,
-> subject to the following conditions:
->
-> The above copyright notice and this permission notice shall be
-> included in all copies or substantial portions of the Software.
->
-> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-> BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-> ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-> SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/bottom.txt b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/bottom.txt
deleted file mode 100644
index 0384cb19..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/bottom.txt
+++ /dev/null
@@ -1 +0,0 @@
-})(angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/smart-table.module.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/smart-table.module.js
deleted file mode 100644
index 6e8eaf55..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/smart-table.module.js
+++ /dev/null
@@ -1,7 +0,0 @@
-ng.module('smart-table', []).run(['$templateCache', function ($templateCache) {
- $templateCache.put('template/smart-table/pagination.html',
- '<nav ng-if="numPages && pages.length >= 2"><ul class="pagination">' +
- '<li ng-repeat="page in pages" ng-class="{active: page==currentPage}"><a href="javascript: void(0);" ng-click="selectPage(page)">{{page}}</a></li>' +
- '</ul></nav>');
-}]);
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stConfig.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stConfig.js
deleted file mode 100644
index 6cddf486..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stConfig.js
+++ /dev/null
@@ -1,26 +0,0 @@
-ng.module('smart-table')
- .constant('stConfig', {
- pagination: {
- template: 'template/smart-table/pagination.html',
- itemsByPage: 10,
- displayedPages: 5
- },
- search: {
- delay: 400, // ms
- inputEvent: 'input'
- },
- select: {
- mode: 'single',
- selectedClass: 'st-selected'
- },
- sort: {
- ascentClass: 'st-sort-ascent',
- descentClass: 'st-sort-descent',
- descendingFirst: false,
- skipNatural: false,
- delay:300
- },
- pipe: {
- delay: 100 //ms
- }
- }); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stPagination.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stPagination.js
deleted file mode 100644
index fa27bfc2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stPagination.js
+++ /dev/null
@@ -1,80 +0,0 @@
-ng.module('smart-table')
- .directive('stPagination', ['stConfig', function (stConfig) {
- return {
- restrict: 'EA',
- require: '^stTable',
- scope: {
- stItemsByPage: '=?',
- stDisplayedPages: '=?',
- stPageChange: '&'
- },
- templateUrl: function (element, attrs) {
- if (attrs.stTemplate) {
- return attrs.stTemplate;
- }
- return stConfig.pagination.template;
- },
- link: function (scope, element, attrs, ctrl) {
-
- scope.stItemsByPage = scope.stItemsByPage ? +(scope.stItemsByPage) : stConfig.pagination.itemsByPage;
- scope.stDisplayedPages = scope.stDisplayedPages ? +(scope.stDisplayedPages) : stConfig.pagination.displayedPages;
-
- scope.currentPage = 1;
- scope.pages = [];
-
- function redraw () {
- var paginationState = ctrl.tableState().pagination;
- var start = 1;
- var end;
- var i;
- var prevPage = scope.currentPage;
- scope.totalItemCount = paginationState.totalItemCount;
- scope.currentPage = Math.floor(paginationState.start / paginationState.number) + 1;
-
- start = Math.max(start, scope.currentPage - Math.abs(Math.floor(scope.stDisplayedPages / 2)));
- end = start + scope.stDisplayedPages;
-
- if (end > paginationState.numberOfPages) {
- end = paginationState.numberOfPages + 1;
- start = Math.max(1, end - scope.stDisplayedPages);
- }
-
- scope.pages = [];
- scope.numPages = paginationState.numberOfPages;
-
- for (i = start; i < end; i++) {
- scope.pages.push(i);
- }
-
- if (prevPage !== scope.currentPage) {
- scope.stPageChange({newPage: scope.currentPage});
- }
- }
-
- //table state --> view
- scope.$watch(function () {
- return ctrl.tableState().pagination;
- }, redraw, true);
-
- //scope --> table state (--> view)
- scope.$watch('stItemsByPage', function (newValue, oldValue) {
- if (newValue !== oldValue) {
- scope.selectPage(1);
- }
- });
-
- scope.$watch('stDisplayedPages', redraw);
-
- //view -> table state
- scope.selectPage = function (page) {
- if (page > 0 && page <= scope.numPages) {
- ctrl.slice((page - 1) * scope.stItemsByPage, scope.stItemsByPage);
- }
- };
-
- if (!ctrl.tableState().pagination.number) {
- ctrl.slice(0, scope.stItemsByPage);
- }
- }
- };
- }]);
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stPipe.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stPipe.js
deleted file mode 100644
index 8ac1288a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stPipe.js
+++ /dev/null
@@ -1,36 +0,0 @@
-ng.module('smart-table')
- .directive('stPipe', ['stConfig', '$timeout', function (config, $timeout) {
- return {
- require: 'stTable',
- scope: {
- stPipe: '='
- },
- link: {
-
- pre: function (scope, element, attrs, ctrl) {
-
- var pipePromise = null;
-
- if (ng.isFunction(scope.stPipe)) {
- ctrl.preventPipeOnWatch();
- ctrl.pipe = function () {
-
- if (pipePromise !== null) {
- $timeout.cancel(pipePromise)
- }
-
- pipePromise = $timeout(function () {
- scope.stPipe(ctrl.tableState(), ctrl);
- }, config.pipe.delay);
-
- return pipePromise;
- }
- }
- },
-
- post: function (scope, element, attrs, ctrl) {
- ctrl.pipe();
- }
- }
- };
- }]);
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSearch.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSearch.js
deleted file mode 100644
index 6105fbe6..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSearch.js
+++ /dev/null
@@ -1,43 +0,0 @@
-ng.module('smart-table')
- .directive('stSearch', ['stConfig', '$timeout','$parse', function (stConfig, $timeout, $parse) {
- return {
- require: '^stTable',
- link: function (scope, element, attr, ctrl) {
- var tableCtrl = ctrl;
- var promise = null;
- var throttle = attr.stDelay || stConfig.search.delay;
- var event = attr.stInputEvent || stConfig.search.inputEvent;
-
- attr.$observe('stSearch', function (newValue, oldValue) {
- var input = element[0].value;
- if (newValue !== oldValue && input) {
- ctrl.tableState().search = {};
- tableCtrl.search(input, newValue);
- }
- });
-
- //table state -> view
- scope.$watch(function () {
- return ctrl.tableState().search;
- }, function (newValue, oldValue) {
- var predicateExpression = attr.stSearch || '$';
- if (newValue.predicateObject && $parse(predicateExpression)(newValue.predicateObject) !== element[0].value) {
- element[0].value = $parse(predicateExpression)(newValue.predicateObject) || '';
- }
- }, true);
-
- // view -> table state
- element.bind(event, function (evt) {
- evt = evt.originalEvent || evt;
- if (promise !== null) {
- $timeout.cancel(promise);
- }
-
- promise = $timeout(function () {
- tableCtrl.search(evt.target.value, attr.stSearch || '');
- promise = null;
- }, throttle);
- });
- }
- };
- }]);
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSelectRow.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSelectRow.js
deleted file mode 100644
index 188408f8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSelectRow.js
+++ /dev/null
@@ -1,26 +0,0 @@
-ng.module('smart-table')
- .directive('stSelectRow', ['stConfig', function (stConfig) {
- return {
- restrict: 'A',
- require: '^stTable',
- scope: {
- row: '=stSelectRow'
- },
- link: function (scope, element, attr, ctrl) {
- var mode = attr.stSelectMode || stConfig.select.mode;
- element.bind('click', function () {
- scope.$apply(function () {
- ctrl.select(scope.row, mode);
- });
- });
-
- scope.$watch('row.isSelected', function (newValue) {
- if (newValue === true) {
- element.addClass(stConfig.select.selectedClass);
- } else {
- element.removeClass(stConfig.select.selectedClass);
- }
- });
- }
- };
- }]);
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSort.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSort.js
deleted file mode 100644
index bf79c898..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stSort.js
+++ /dev/null
@@ -1,82 +0,0 @@
-ng.module('smart-table')
- .directive('stSort', ['stConfig', '$parse', '$timeout', function (stConfig, $parse, $timeout) {
- return {
- restrict: 'A',
- require: '^stTable',
- link: function (scope, element, attr, ctrl) {
-
- var predicate = attr.stSort;
- var getter = $parse(predicate);
- var index = 0;
- var classAscent = attr.stClassAscent || stConfig.sort.ascentClass;
- var classDescent = attr.stClassDescent || stConfig.sort.descentClass;
- var stateClasses = [classAscent, classDescent];
- var sortDefault;
- var skipNatural = attr.stSkipNatural !== undefined ? attr.stSkipNatural : stConfig.sort.skipNatural;
- var descendingFirst = attr.stDescendingFirst !== undefined ? attr.stDescendingFirst : stConfig.sort.descendingFirst;
- var promise = null;
- var throttle = attr.stDelay || stConfig.sort.delay;
-
- if (attr.stSortDefault) {
- sortDefault = scope.$eval(attr.stSortDefault) !== undefined ? scope.$eval(attr.stSortDefault) : attr.stSortDefault;
- }
-
- //view --> table state
- function sort () {
- if (descendingFirst) {
- index = index === 0 ? 2 : index - 1;
- } else {
- index++;
- }
-
- var func;
- predicate = ng.isFunction(getter(scope)) || ng.isArray(getter(scope)) ? getter(scope) : attr.stSort;
- if (index % 3 === 0 && !!skipNatural !== true) {
- //manual reset
- index = 0;
- ctrl.tableState().sort = {};
- ctrl.tableState().pagination.start = 0;
- func = ctrl.pipe.bind(ctrl);
- } else {
- func = ctrl.sortBy.bind(ctrl, predicate, index % 2 === 0);
- }
- if (promise !== null) {
- $timeout.cancel(promise);
- }
- if (throttle < 0) {
- func();
- } else {
- promise = $timeout(func, throttle);
- }
- }
-
- element.bind('click', function sortClick () {
- if (predicate) {
- scope.$apply(sort);
- }
- });
-
- if (sortDefault) {
- index = sortDefault === 'reverse' ? 1 : 0;
- sort();
- }
-
- //table state --> view
- scope.$watch(function () {
- return ctrl.tableState().sort;
- }, function (newValue) {
- if (newValue.predicate !== predicate) {
- index = 0;
- element
- .removeClass(classAscent)
- .removeClass(classDescent);
- } else {
- index = newValue.reverse === true ? 2 : 1;
- element
- .removeClass(stateClasses[index % 2])
- .addClass(stateClasses[index - 1]);
- }
- }, true);
- }
- };
- }]);
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stTable.js b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stTable.js
deleted file mode 100644
index 429d8b62..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/stTable.js
+++ /dev/null
@@ -1,219 +0,0 @@
-ng.module('smart-table')
- .controller('stTableController', ['$scope', '$parse', '$filter', '$attrs', function StTableController ($scope, $parse, $filter, $attrs) {
- var propertyName = $attrs.stTable;
- var displayGetter = $parse(propertyName);
- var displaySetter = displayGetter.assign;
- var safeGetter;
- var orderBy = $filter('orderBy');
- var filter = $filter('filter');
- var safeCopy = copyRefs(displayGetter($scope));
- var tableState = {
- sort: {},
- search: {},
- pagination: {
- start: 0,
- totalItemCount: 0
- }
- };
- var filtered;
- var pipeAfterSafeCopy = true;
- var ctrl = this;
- var lastSelected;
-
- function copyRefs (src) {
- return src ? [].concat(src) : [];
- }
-
- function updateSafeCopy () {
- safeCopy = copyRefs(safeGetter($scope));
- if (pipeAfterSafeCopy === true) {
- ctrl.pipe();
- }
- }
-
- function deepDelete (object, path) {
- if (path.indexOf('.') != -1) {
- var partials = path.split('.');
- var key = partials.pop();
- var parentPath = partials.join('.');
- var parentObject = $parse(parentPath)(object)
- delete parentObject[key];
- if (Object.keys(parentObject).length == 0) {
- deepDelete(object, parentPath);
- }
- } else {
- delete object[path];
- }
- }
-
- if ($attrs.stSafeSrc) {
- safeGetter = $parse($attrs.stSafeSrc);
- $scope.$watch(function () {
- var safeSrc = safeGetter($scope);
- return safeSrc && safeSrc.length ? safeSrc[0] : undefined;
- }, function (newValue, oldValue) {
- if (newValue !== oldValue) {
- updateSafeCopy();
- }
- });
- $scope.$watch(function () {
- var safeSrc = safeGetter($scope);
- return safeSrc ? safeSrc.length : 0;
- }, function (newValue, oldValue) {
- if (newValue !== safeCopy.length) {
- updateSafeCopy();
- }
- });
- $scope.$watch(function () {
- return safeGetter($scope);
- }, function (newValue, oldValue) {
- if (newValue !== oldValue) {
- tableState.pagination.start = 0;
- updateSafeCopy();
- }
- });
- }
-
- /**
- * sort the rows
- * @param {Function | String} predicate - function or string which will be used as predicate for the sorting
- * @param [reverse] - if you want to reverse the order
- */
- this.sortBy = function sortBy (predicate, reverse) {
- tableState.sort.predicate = predicate;
- tableState.sort.reverse = reverse === true;
-
- if (ng.isFunction(predicate)) {
- tableState.sort.functionName = predicate.name;
- } else {
- delete tableState.sort.functionName;
- }
-
- tableState.pagination.start = 0;
- return this.pipe();
- };
-
- /**
- * search matching rows
- * @param {String} input - the input string
- * @param {String} [predicate] - the property name against you want to check the match, otherwise it will search on all properties
- */
- this.search = function search (input, predicate) {
- var predicateObject = tableState.search.predicateObject || {};
- var prop = predicate ? predicate : '$';
-
- input = ng.isString(input) ? input.trim() : input;
- $parse(prop).assign(predicateObject, input);
- // to avoid to filter out null value
- if (!input) {
- deepDelete(predicateObject, prop);
- }
- tableState.search.predicateObject = predicateObject;
- tableState.pagination.start = 0;
- return this.pipe();
- };
-
- /**
- * this will chain the operations of sorting and filtering based on the current table state (sort options, filtering, ect)
- */
- this.pipe = function pipe () {
- var pagination = tableState.pagination;
- var output;
- filtered = tableState.search.predicateObject ? filter(safeCopy, tableState.search.predicateObject) : safeCopy;
- if (tableState.sort.predicate) {
- filtered = orderBy(filtered, tableState.sort.predicate, tableState.sort.reverse);
- }
- pagination.totalItemCount = filtered.length;
- if (pagination.number !== undefined) {
- pagination.numberOfPages = filtered.length > 0 ? Math.ceil(filtered.length / pagination.number) : 1;
- pagination.start = pagination.start >= filtered.length ? (pagination.numberOfPages - 1) * pagination.number : pagination.start;
- output = filtered.slice(pagination.start, pagination.start + parseInt(pagination.number));
- }
- displaySetter($scope, output || filtered);
- };
-
- /**
- * select a dataRow (it will add the attribute isSelected to the row object)
- * @param {Object} row - the row to select
- * @param {String} [mode] - "single" or "multiple" (multiple by default)
- */
- this.select = function select (row, mode) {
- var rows = copyRefs(displayGetter($scope));
- var index = rows.indexOf(row);
- if (index !== -1) {
- if (mode === 'single') {
- row.isSelected = row.isSelected !== true;
- if (lastSelected) {
- lastSelected.isSelected = false;
- }
- lastSelected = row.isSelected === true ? row : undefined;
- } else {
- rows[index].isSelected = !rows[index].isSelected;
- }
- }
- };
-
- /**
- * take a slice of the current sorted/filtered collection (pagination)
- *
- * @param {Number} start - start index of the slice
- * @param {Number} number - the number of item in the slice
- */
- this.slice = function splice (start, number) {
- tableState.pagination.start = start;
- tableState.pagination.number = number;
- return this.pipe();
- };
-
- /**
- * return the current state of the table
- * @returns {{sort: {}, search: {}, pagination: {start: number}}}
- */
- this.tableState = function getTableState () {
- return tableState;
- };
-
- this.getFilteredCollection = function getFilteredCollection () {
- return filtered || safeCopy;
- };
-
- /**
- * Use a different filter function than the angular FilterFilter
- * @param filterName the name under which the custom filter is registered
- */
- this.setFilterFunction = function setFilterFunction (filterName) {
- filter = $filter(filterName);
- };
-
- /**
- * Use a different function than the angular orderBy
- * @param sortFunctionName the name under which the custom order function is registered
- */
- this.setSortFunction = function setSortFunction (sortFunctionName) {
- orderBy = $filter(sortFunctionName);
- };
-
- /**
- * Usually when the safe copy is updated the pipe function is called.
- * Calling this method will prevent it, which is something required when using a custom pipe function
- */
- this.preventPipeOnWatch = function preventPipe () {
- pipeAfterSafeCopy = false;
- };
- }])
- .directive('stTable', function () {
- return {
- restrict: 'A',
- controller: 'stTableController',
- link: function (scope, element, attr, ctrl) {
-
- if (attr.stSetFilter) {
- ctrl.setFilterFunction(attr.stSetFilter);
- }
-
- if (attr.stSetSort) {
- ctrl.setSortFunction(attr.stSetSort);
- }
- }
- };
- });
diff --git a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/top.txt b/ecomp-portal-FE/client/bower_components/angular-smart-table/src/top.txt
deleted file mode 100644
index 03a2484d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-smart-table/src/top.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-(function (ng, undefined){
- 'use strict';
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/.bower.json b/ecomp-portal-FE/client/bower_components/angular-ui-router/.bower.json
deleted file mode 100644
index 3850b45b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/.bower.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "angular-ui-router",
- "version": "0.2.18",
- "license": "MIT",
- "main": "./release/angular-ui-router.js",
- "dependencies": {
- "angular": "^1.0.8"
- },
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "component.json",
- "package.json",
- "lib",
- "config",
- "sample",
- "test",
- "tests",
- "ngdoc_assets",
- "Gruntfile.js",
- "files.js"
- ],
- "homepage": "https://github.com/angular-ui/angular-ui-router-bower",
- "_release": "0.2.18",
- "_resolution": {
- "type": "version",
- "tag": "0.2.18",
- "commit": "2b8d5241b4c631ca2aef079bb96690b213eff449"
- },
- "_source": "https://github.com/angular-ui/angular-ui-router-bower.git",
- "_target": "~0.2.18",
- "_originalSource": "angular-ui-router"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/CHANGELOG.md b/ecomp-portal-FE/client/bower_components/angular-ui-router/CHANGELOG.md
deleted file mode 100644
index 060b4bf2..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/CHANGELOG.md
+++ /dev/null
@@ -1,316 +0,0 @@
-<a name="0.2.18"></a>
-### 0.2.18 (2016-02-07)
-
-This is a maintenance release which fixes a few known bugs introduced in 0.2.16.
-
-#### Bug Fixes
-
-* **$urlRouter:** revert BC: resolve clashing of routes This reverts commit b5c57c8ec2e14e17e75104 ([2f1ebefc](https://github.com/angular-ui/ui-router/commit/2f1ebefc242ff48960e0bf63da359296a38f6852), closes [#2501](https://github.com/angular-ui/ui-router/issues/2501))
-* **uiState:** Corrected typo for 'ref' variable (#2488, #2508) ([b8f3c144](https://github.com/angular-ui/ui-router/commit/b8f3c144b913e620f177b78f3b4f52afa61d41a6))
-* **$urlMatcherFactory:** Fix to make the YUI Javascript compressor work ([ad9c41d2](https://github.com/angular-ui/ui-router/commit/ad9c41d2e723d50e30dd3452fbd274b7057dc3d9))
-* **stateBuilder:** fix non-url params on a state without a url. The parameters are now applied when ([d6d8c332](https://github.com/angular-ui/ui-router/commit/d6d8c3322c4dde8bb5b8dde25f9fcda49e9c4c81), closes [#2025](https://github.com/angular-ui/ui-router/issues/2025))
-* **ui-view:** (ui-view) use static renderer when no animation is present for a ui-view ([2523bbdb](https://github.com/angular-ui/ui-router/commit/2523bbdb5542483a489c22804f1751b8b9f71703), closes [#2485](https://github.com/angular-ui/ui-router/issues/2485)). This allows a ui-view scope to be destroyed when switching states, before the next view is initialized.
-
-
-#### Features
-
-* **ui-view:** Add noanimation attribute to specify static renderer. ([2523bbdb](https://github.com/angular-ui/ui-router/commit/2523bbdb5542483a489c22804f1751b8b9f71703), closes [#2485](https://github.com/angular-ui/ui-router/issues/2485)). This allows a ui-view scope to be destroyed before the next ui-view is initialized, when ui-view animation is not present.
-
-
-<a name="0.2.17"></a>
-### 0.2.17 (2016-01-25)
-
-
-#### Bug Fixes
-
-* **uiSrefActive:** allow multiple classes ([a89114a0](https://github.com/angular-ui/ui-router/commit/a89114a083813c1a7280c48fc18e626caa5a31f4), closes [#2481](https://github.com/angular-ui/ui-router/issues/2481), [#2482](https://github.com/angular-ui/ui-router/issues/2482))
-
-
-<a name="0.2.16"></a>
-### 0.2.16 (2016-01-24)
-
-
-#### Bug Fixes
-
-* **$state:**
- * statechangeCancel: Avoid infinite digest in .otherwise/redirect case. Don't clobber url if a new transition has started. Closes #222 ([e00aa695](https://github.com/angular-ui/ui-router/commit/e00aa695e41ddc5ebd5d2b226aa0917a751b11aa), closes [#2238](https://github.com/angular-ui/ui-router/issues/2238))
- * transitionTo: Allow hash (#) value to be read as toParams['#'] in events. Re-add the saved hash before broadcasting $stateChangeStart event. ([8c1bf30d](https://github.com/angular-ui/ui-router/commit/8c1bf30d2a3b78ba40b330f12d854c885d6cc117))
-* **$stateParams:** Fix for testing: reset service instance between tests ([2aeb0c4b](https://github.com/angular-ui/ui-router/commit/2aeb0c4b205baf6cfa2ef25bb986bb160dc13bf9))
-* **$urlRouter:**
- * Sort URL rules by specificity. Potential minor BC if apps were relying on rule registration order. ([b5c57c8e](https://github.com/angular-ui/ui-router/commit/b5c57c8ec2e14e17e75104c1424654f126ea4011))
- * Use $sniffer for pushstate compat check ([c219e801](https://github.com/angular-ui/ui-router/commit/c219e801797f340ef9c5c919ab890ef003a7a042))
-* **UrlMatcher:**
- * Properly encode/decode slashes in parameters Closes #2172 Closes #2250 Closes #1 ([02e98660](https://github.com/angular-ui/ui-router/commit/02e98660a80dfd1ca4b113dd24ee304af91e9f8c), closes [#2339](https://github.com/angular-ui/ui-router/issues/2339))
- * Array types: Fix default value for array query parameters. Pass empty arrays through in handler. ([20d6e243](https://github.com/angular-ui/ui-router/commit/20d6e243f1745ddbf257217245a1dc22eabe13da), closes [#2222](https://github.com/angular-ui/ui-router/issues/2222))
- * Remove trailing slash, if parameter is optional and was squashed from URL ([77fa11bf](https://github.com/angular-ui/ui-router/commit/77fa11bf0787d0f6da97ab0003ab29afb7411391), closes [#1902](https://github.com/angular-ui/ui-router/issues/1902))
- * Allow a parameter declaration to configure the parameter type by name. closes #2294 ([e4010249](https://github.com/angular-ui/ui-router/commit/e40102492d40fe1cf6ba14d955fcc9f345c16458))
- * include the slash when recognizing squashed params in url ([b5130bb1](https://github.com/angular-ui/ui-router/commit/b5130bb1215e15f832ea6daa670410b9a950c0d4), closes [#2064](https://github.com/angular-ui/ui-router/issues/2064))
- * Allow url query param names to contain periods ([d31b3337](https://github.com/angular-ui/ui-router/commit/d31b3337cc2ce71d87c92fdded629e46558d0b49))
-* **reloadOnSearch:** Update `locals.globals.$stateParams` when reloadOnSearch=false ([350d3e87](https://github.com/angular-ui/ui-router/commit/350d3e87783a2263fd7d23913da34f1268c3300b), closes [#2356](https://github.com/angular-ui/ui-router/issues/2356))
-* **ui-view:**
- * fix $animate usage for ng 1.4+ ([9b6d9a2d](https://github.com/angular-ui/ui-router/commit/9b6d9a2d0ce4ae08384165cb517bddea59b67892))
- * change $viewContentLoading to pair with $viewContentLoaded ([f9b43d66](https://github.com/angular-ui/ui-router/commit/f9b43d66833f0e17de41fd8d1cc3b491e3ba4a0e), closes [#685](https://github.com/angular-ui/ui-router/issues/685))
- * $destroy event is triggered before animation ends ([1be13795](https://github.com/angular-ui/ui-router/commit/1be13795686ab78abb2d5094bc8addcacb928975))
-* **uiSref:**
- * Ensure URL once param checks pass ([9dc31c54](https://github.com/angular-ui/ui-router/commit/9dc31c5465328e5666468b0c2319ce205f4b72f8), closes [#2091](https://github.com/angular-ui/ui-router/issues/2091))
- * uiSrefActive: update the active classes after linking directive ([7c914030](https://github.com/angular-ui/ui-router/commit/7c914030f13e05e45a941c1b723cb785db729890))
-
-
-#### Features
-
-* **$IncludedByStateFilter:** add parameters to $IncludedByStateFilter ([963f6e71](https://github.com/angular-ui/ui-router/commit/963f6e71633b9c3a266f3991d79089b7d14786b4), closes [#1735](https://github.com/angular-ui/ui-router/issues/1735))
-* **isStateFilter:** Include optional state params. ([71d74699](https://github.com/angular-ui/ui-router/commit/71d7469987ee9ca86a41c8c6393ccd5d8913c3d6))
-* **$state:** make state data inheritance prototypical ([c4fec8c7](https://github.com/angular-ui/ui-router/commit/c4fec8c7998113902af4152d716c42dada6eb465))
-* **$stateChangeStart:** Add options to event ([a1f07559](https://github.com/angular-ui/ui-router/commit/a1f07559ec74e10ff80bc4be81f287e3772b8fcb))
-* **UrlMatcher:** Add param only type names ([6a371f9b](https://github.com/angular-ui/ui-router/commit/6a371f9b70e37a82eb324122879e4473c3f6d526))
-* **uiSrefActive:**
- * provide a ng-{class,style} like interface ([a9ff6feb](https://github.com/angular-ui/ui-router/commit/a9ff6febb469e0d5cd49054216c4472df7a6259d))
- * allow active & active-eq on same element ([d9a676ba](https://github.com/angular-ui/ui-router/commit/d9a676ba2c4d9e954be224c60496bcb38f6074e3))
-* **uiState:** add ui-state directive ([3831af1d](https://github.com/angular-ui/ui-router/commit/3831af1dc71b601351e6694af0665a77297f8f7f), closes [#395](https://github.com/angular-ui/ui-router/issues/395), [#900](https://github.com/angular-ui/ui-router/issues/900), [#1932](https://github.com/angular-ui/ui-router/issues/1932))
-* **urlMatcher:** add support for optional spaces in params ([4b7f3046](https://github.com/angular-ui/ui-router/commit/4b7f304617f0b3590b532103b5c2fb526c98a9e4))
-
-
-<a name="0.2.15"></a>
-### 0.2.15 (2015-05-19)
-
-
-#### Bug Fixes
-
-* **$state:** reloadOnSearch should not affect non-search param changes. ([6ca0d770](https://github.com/angular-ui/ui-router/commit/6ca0d7704cf7de9c6e6b7bb64df2f9c68fe081cc), closes [#1079](https://github.com/angular-ui/ui-router/issues/1079))
-* **urlMatcherFactory:** Revert to 0.2.13 behavior where all string parameters are considered optional fi ([495a02c3](https://github.com/angular-ui/ui-router/commit/495a02c3cbde501c1c149bce137806669209bc29), closes [#1963](https://github.com/angular-ui/ui-router/issues/1963))
-* **urlRouter:** allow .when() to redirect, even after a successful $state.go() - This partially ([48aeaff6](https://github.com/angular-ui/ui-router/commit/48aeaff645baf3f42f5a8940ebd97563791ad9f8), closes [#1584](https://github.com/angular-ui/ui-router/issues/1584))
-
-
-#### Features
-
-* **$state:** Inject templateProvider with resolved values ([afa20f22](https://github.com/angular-ui/ui-router/commit/afa20f22373b7176b26daa7e1099750c4254a354))
-
-
-<a name="0.2.14"></a>
-### 0.2.14 (2015-04-23)
-
-
-#### Bug Fixes
-
-* **$StateRefDirective:** resolve missing support for svg anchor elements #1667 ([0149a7bb](https://github.com/angular-ui/ui-router/commit/0149a7bb38b7af99388a1ad7cc9909a7b7c4439d))
-* **$urlMatcherFactory:**
- * regex params should respect case-sensitivity ([1e10519f](https://github.com/angular-ui/ui-router/commit/1e10519f3be6bbf0cefdcce623cd2ade06e649e5), closes [#1671](https://github.com/angular-ui/ui-router/issues/1671))
- * unquote all dashes from array params ([06664d33](https://github.com/angular-ui/ui-router/commit/06664d330f882390655dcfa83e10276110d0d0fa))
- * add Type.$normalize function ([b0c6aa23](https://github.com/angular-ui/ui-router/commit/b0c6aa2350fdd3ce8483144774adc12f5a72b7e9))
- * make optional params regex grouping optional ([06f73794](https://github.com/angular-ui/ui-router/commit/06f737945e83e668d09cfc3bcffd04a500ff1963), closes [#1576](https://github.com/angular-ui/ui-router/issues/1576))
-* **$state:** allow about.*.** glob patterns ([e39b27a2](https://github.com/angular-ui/ui-router/commit/e39b27a2cb7d88525c446a041f9fbf1553202010))
-* **uiSref:**
- * use Object's toString instead of Window's toString ([2aa7f4d1](https://github.com/angular-ui/ui-router/commit/2aa7f4d139dbd5b9fcc4afdcf2ab6642c87f5671))
- * add absolute to allowed transition options ([ae1b3c4e](https://github.com/angular-ui/ui-router/commit/ae1b3c4eedc37983400d830895afb50457c63af4))
-* **uiSrefActive:** Apply active classes on lazy loaded states ([f0ddbe7b](https://github.com/angular-ui/ui-router/commit/f0ddbe7b4a91daf279c3b7d0cee732bb1f3be5b4))
-* **uiView:** add `$element` to locals for view controller ([db68914c](https://github.com/angular-ui/ui-router/commit/db68914cd6c821e7dec8155bd33142a3a97f5453))
-
-
-#### Features
-
-* **$state:**
- * support URLs with #fragments ([3da0a170](https://github.com/angular-ui/ui-router/commit/3da0a17069e27598c0f9d9164e104dd5ce05cdc6))
- * inject resolve params into controllerProvider ([b380c223](https://github.com/angular-ui/ui-router/commit/b380c223fe12e2fde7582c0d6b1ed7b15a23579b), closes [#1131](https://github.com/angular-ui/ui-router/issues/1131))
- * added 'state' to state reload method (feat no.1612) - modiefied options.reload ([b8f04575](https://github.com/angular-ui/ui-router/commit/b8f04575a8557035c1858c4d5c8dbde3e1855aaa))
- * broadcast $stateChangeCancel event when event.preventDefault() is called in $sta ([ecefb758](https://github.com/angular-ui/ui-router/commit/ecefb758cb445e41620b62a272aafa3638613d7a))
-* **$uiViewScroll:** change function to return promise ([c2a9a311](https://github.com/angular-ui/ui-router/commit/c2a9a311388bb212e5a2e820536d1d739f829ccd), closes [#1702](https://github.com/angular-ui/ui-router/issues/1702))
-* **uiSrefActive:** Added support for multiple nested uiSref directives ([b1844948](https://github.com/angular-ui/ui-router/commit/b18449481d152b50705abfce2493a444eb059fa5))
-
-
-<a name="0.2.13"></a>
-### 0.2.13 (2014-11-20)
-
-This release primarily fixes issues reported against 0.2.12
-
-#### Bug Fixes
-
-* **$state:** fix $state.includes/.is to apply param types before comparisions fix(uiSref): ma ([19715d15](https://github.com/angular-ui/ui-router/commit/19715d15e3cbfff724519e9febedd05b49c75baa), closes [#1513](https://github.com/angular-ui/ui-router/issues/1513))
- * Avoid re-synchronizing from url after .transitionTo ([b267ecd3](https://github.com/angular-ui/ui-router/commit/b267ecd348e5c415233573ef95ebdbd051875f52), closes [#1573](https://github.com/angular-ui/ui-router/issues/1573))
-* **$urlMatcherFactory:**
- * Built-in date type uses local time zone ([d726bedc](https://github.com/angular-ui/ui-router/commit/d726bedcbb5f70a5660addf43fd52ec730790293))
- * make date type fn check .is before running ([aa94ce3b](https://github.com/angular-ui/ui-router/commit/aa94ce3b86632ad05301530a2213099da73a3dc0), closes [#1564](https://github.com/angular-ui/ui-router/issues/1564))
- * early binding of array handler bypasses type resolution ([ada4bc27](https://github.com/angular-ui/ui-router/commit/ada4bc27df5eff3ba3ab0de94a09bd91b0f7a28c))
- * add 'any' Type for non-encoding non-url params ([3bfd75ab](https://github.com/angular-ui/ui-router/commit/3bfd75ab445ee2f1dd55275465059ed116b10b27), closes [#1562](https://github.com/angular-ui/ui-router/issues/1562))
- * fix encoding slashes in params ([0c983a08](https://github.com/angular-ui/ui-router/commit/0c983a08e2947f999683571477debd73038e95cf), closes [#1119](https://github.com/angular-ui/ui-router/issues/1119))
- * fix mixed path/query params ordering problem ([a479fbd0](https://github.com/angular-ui/ui-router/commit/a479fbd0b8eb393a94320973e5b9a62d83912ee2), closes [#1543](https://github.com/angular-ui/ui-router/issues/1543))
-* **ArrayType:**
- * specify empty array mapping corner case ([74aa6091](https://github.com/angular-ui/ui-router/commit/74aa60917e996b0b4e27bbb4eb88c3c03832021d), closes [#1511](https://github.com/angular-ui/ui-router/issues/1511))
- * fix .equals for array types ([5e6783b7](https://github.com/angular-ui/ui-router/commit/5e6783b77af9a90ddff154f990b43dbb17eeda6e), closes [#1538](https://github.com/angular-ui/ui-router/issues/1538))
-* **Param:** fix default value shorthand declaration ([831d812a](https://github.com/angular-ui/ui-router/commit/831d812a524524c71f0ee1c9afaf0487a5a66230), closes [#1554](https://github.com/angular-ui/ui-router/issues/1554))
-* **common:** fixed the _.filter clone to not create sparse arrays ([750f5cf5](https://github.com/angular-ui/ui-router/commit/750f5cf5fd91f9ada96f39e50d39aceb2caf22b6), closes [#1563](https://github.com/angular-ui/ui-router/issues/1563))
-* **ie8:** fix calls to indexOf and filter ([dcb31b84](https://github.com/angular-ui/ui-router/commit/dcb31b843391b3e61dee4de13f368c109541813e), closes [#1556](https://github.com/angular-ui/ui-router/issues/1556))
-
-
-#### Features
-
-* add json parameter Type ([027f1fcf](https://github.com/angular-ui/ui-router/commit/027f1fcf9c0916cea651e88981345da6f9ff214a))
-
-
-<a name="0.2.12"></a>
-### 0.2.12 (2014-11-13)
-
-#### Bug Fixes
-
-* **$resolve:** use resolve fn result, not parent resolved value of same name ([67f5e00c](https://github.com/angular-ui/ui-router/commit/67f5e00cc9aa006ce3fe6cde9dff261c28eab70a), closes [#1317], [#1353])
-* **$state:**
- * populate default params in .transitionTo. ([3f60fbe6](https://github.com/angular-ui/ui-router/commit/3f60fbe6d65ebeca8d97952c05aa1d269f1b7ba1), closes [#1396])
- * reload() now reinvokes controllers ([73443420](https://github.com/angular-ui/ui-router/commit/7344342018847902594dc1fc62d30a5c30f01763), closes [#582])
- * do not emit $viewContentLoading if notify: false ([74255feb](https://github.com/angular-ui/ui-router/commit/74255febdf48ae082a02ca1e735165f2c369a463), closes [#1387](https://github.com/angular-ui/ui-router/issues/1387))
- * register states at config-time ([4533fe36](https://github.com/angular-ui/ui-router/commit/4533fe36e0ab2f0143edd854a4145deaa013915a))
- * handle parent.name when parent is obj ([4533fe36](https://github.com/angular-ui/ui-router/commit/4533fe36e0ab2f0143edd854a4145deaa013915a))
-* **$urlMatcherFactory:**
- * register types at config ([4533fe36](https://github.com/angular-ui/ui-router/commit/4533fe36e0ab2f0143edd854a4145deaa013915a), closes [#1476])
- * made path params default value "" for backwards compat ([8f998e71](https://github.com/angular-ui/ui-router/commit/8f998e71e43a0b31293331c981f5db0f0097b8ba))
- * Pre-replace certain param values for better mapping ([6374a3e2](https://github.com/angular-ui/ui-router/commit/6374a3e29ab932014a7c77d2e1ab884cc841a2e3))
- * fixed ParamSet.$$keys() ordering ([9136fecb](https://github.com/angular-ui/ui-router/commit/9136fecbc2bfd4fda748a9914f0225a46c933860))
- * empty string policy now respected in Param.value() ([db12c85c](https://github.com/angular-ui/ui-router/commit/db12c85c16f2d105415f9bbbdeb11863f64728e0))
- * "string" type now encodes/decodes slashes ([3045e415](https://github.com/angular-ui/ui-router/commit/3045e41577a8b8b8afc6039f42adddf5f3c061ec), closes [#1119])
- * allow arrays in both path and query params ([fdd2f2c1](https://github.com/angular-ui/ui-router/commit/fdd2f2c191c4a67c874fdb9ec9a34f8dde9ad180), closes [#1073], [#1045], [#1486], [#1394])
- * typed params in search ([8d4cab69](https://github.com/angular-ui/ui-router/commit/8d4cab69dd67058e1a716892cc37b7d80a57037f), closes [#1488](https://github.com/angular-ui/ui-router/issues/1488))
- * no longer generate unroutable urls ([cb9fd9d8](https://github.com/angular-ui/ui-router/commit/cb9fd9d8943cb26c7223f6990db29c82ae8740f8), closes [#1487](https://github.com/angular-ui/ui-router/issues/1487))
- * handle optional parameter followed by required parameter in url format. ([efc72106](https://github.com/angular-ui/ui-router/commit/efc72106ddcc4774b48ea176a505ef9e95193b41))
- * default to parameter string coersion. ([13a468a7](https://github.com/angular-ui/ui-router/commit/13a468a7d54c2fb0751b94c0c1841d580b71e6dc), closes [#1414](https://github.com/angular-ui/ui-router/issues/1414))
- * concat respects strictMode/caseInsensitive ([dd72e103](https://github.com/angular-ui/ui-router/commit/dd72e103edb342d9cf802816fe127e1bbd68fd5f), closes [#1395])
-* **ui-sref:**
- * Allow sref state options to take a scope object ([b5f7b596](https://github.com/angular-ui/ui-router/commit/b5f7b59692ce4933e2d63eb5df3f50a4ba68ccc0))
- * replace raw href modification with attrs. ([08c96782](https://github.com/angular-ui/ui-router/commit/08c96782faf881b0c7ab00afc233ee6729548fa0))
- * nagivate to state when url is "" fix($state.href): generate href for state with ([656b5aab](https://github.com/angular-ui/ui-router/commit/656b5aab906e5749db9b5a080c6a83b95f50fd91), closes [#1363](https://github.com/angular-ui/ui-router/issues/1363))
- * Check that state is defined in isMatch() ([92aebc75](https://github.com/angular-ui/ui-router/commit/92aebc7520f88babdc6e266536086e07263514c3), closes [#1314](https://github.com/angular-ui/ui-router/issues/1314), [#1332](https://github.com/angular-ui/ui-router/issues/1332))
-* **uiView:**
- * allow inteprolated ui-view names ([81f6a19a](https://github.com/angular-ui/ui-router/commit/81f6a19a432dac9198fd33243855bfd3b4fea8c0), closes [#1324](https://github.com/angular-ui/ui-router/issues/1324))
- * Made anim work with angular 1.3 ([c3bb7ad9](https://github.com/angular-ui/ui-router/commit/c3bb7ad903da1e1f3c91019cfd255be8489ff4ef), closes [#1367](https://github.com/angular-ui/ui-router/issues/1367), [#1345](https://github.com/angular-ui/ui-router/issues/1345))
-* **urlRouter:** html5Mode accepts an object from angular v1.3.0-rc.3 ([7fea1e9d](https://github.com/angular-ui/ui-router/commit/7fea1e9d0d8c6e09cc6c895ecb93d4221e9adf48))
-* **stateFilters:** mark state filters as stateful. ([a00b353e](https://github.com/angular-ui/ui-router/commit/a00b353e3036f64a81245c4e7898646ba218f833), closes [#1479])
-* **ui-router:** re-add IE8 compatibility for map/filter/keys ([8ce69d9f](https://github.com/angular-ui/ui-router/commit/8ce69d9f7c886888ab53eca7e53536f36b428aae), closes [#1518], [#1383])
-* **package:** point 'main' to a valid filename ([ac903350](https://github.com/angular-ui/ui-router/commit/ac9033501debb63364539d91fbf3a0cba4579f8e))
-* **travis:** make CI build faster ([0531de05](https://github.com/angular-ui/ui-router/commit/0531de052e414a8d839fbb4e7635e923e94865b3))
-
-
-#### Features
-
-##### Default and Typed params
-
-This release includes a lot of bug fixes around default/optional and typed parameters. As such, 0.2.12 is the first release where we recommend those features be used.
-
-* **$state:**
- * add state params validation ([b1379e6a](https://github.com/angular-ui/ui-router/commit/b1379e6a4d38f7ed7436e05873932d7c279af578), closes [#1433](https://github.com/angular-ui/ui-router/issues/1433))
- * is/includes/get work on relative stateOrName ([232e94b3](https://github.com/angular-ui/ui-router/commit/232e94b3c2ca2c764bb9510046e4b61690c87852))
- * .reload() returns state transition promise ([639e0565](https://github.com/angular-ui/ui-router/commit/639e0565dece9d5544cc93b3eee6e11c99bd7373))
-* **$templateFactory:** request templateURL as text/html ([ccd60769](https://github.com/angular-ui/ui-router/commit/ccd6076904a4b801d77b47f6e2de4c06ce9962f8), closes [#1287])
-* **$urlMatcherFactory:** Made a Params and ParamSet class ([0cc1e6cc](https://github.com/angular-ui/ui-router/commit/0cc1e6cc461a4640618e2bb594566551c54834e2))
-
-
-
-<a name="0.2.11"></a>
-### 0.2.11 (2014-08-26)
-
-
-#### Bug Fixes
-
-* **$resolve:** Resolves only inherit from immediate parent fixes #702 ([df34e20c](https://github.com/angular-ui/ui-router/commit/df34e20c576299e7a3c8bd4ebc68d42341c0ace9))
-* **$state:**
- * change $state.href default options.inherit to true ([deea695f](https://github.com/angular-ui/ui-router/commit/deea695f5cacc55de351ab985144fd233c02a769))
- * sanity-check state lookups ([456fd5ae](https://github.com/angular-ui/ui-router/commit/456fd5aec9ea507518927bfabd62b4afad4cf714), closes [#980](https://github.com/angular-ui/ui-router/issues/980))
- * didn't comply to inherit parameter ([09836781](https://github.com/angular-ui/ui-router/commit/09836781f126c1c485b06551eb9cfd4fa0f45c35))
- * allow view content loading broadcast ([7b78edee](https://github.com/angular-ui/ui-router/commit/7b78edeeb52a74abf4d3f00f79534033d5a08d1a))
-* **$urlMatcherFactory:**
- * detect injected functions ([91f75ae6](https://github.com/angular-ui/ui-router/commit/91f75ae66c4d129f6f69e53bd547594e9661f5d5))
- * syntax ([1ebed370](https://github.com/angular-ui/ui-router/commit/1ebed37069bae8614d41541d56521f5c45f703f3))
-* **UrlMatcher:**
- * query param function defaults ([f9c20530](https://github.com/angular-ui/ui-router/commit/f9c205304f10d8a4ebe7efe9025e642016479a51))
- * don't decode default values ([63607bdb](https://github.com/angular-ui/ui-router/commit/63607bdbbcb432d3fb37856a1cb3da0cd496804e))
-* **travis:** update Node version to fix build ([d6b95ef2](https://github.com/angular-ui/ui-router/commit/d6b95ef23d9dacb4eba08897f5190a0bcddb3a48))
-* **uiSref:**
- * Generate an href for states with a blank url. closes #1293 ([691745b1](https://github.com/angular-ui/ui-router/commit/691745b12fa05d3700dd28f0c8d25f8a105074ad))
- * should inherit params by default ([b973dad1](https://github.com/angular-ui/ui-router/commit/b973dad155ad09a7975e1476bd096f7b2c758eeb))
- * cancel transition if preventDefault() has been called ([2e6d9167](https://github.com/angular-ui/ui-router/commit/2e6d9167d3afbfbca6427e53e012f94fb5fb8022))
-* **uiView:** Fixed infinite loop when is called .go() from a controller. ([e13988b8](https://github.com/angular-ui/ui-router/commit/e13988b8cd6231d75c78876ee9d012cc87f4a8d9), closes [#1194](https://github.com/angular-ui/ui-router/issues/1194))
-* **docs:**
- * Fixed link to milestones ([6c0ae500](https://github.com/angular-ui/ui-router/commit/6c0ae500cc238ea9fc95adcc15415c55fc9e1f33))
- * fix bug in decorator example ([4bd00af5](https://github.com/angular-ui/ui-router/commit/4bd00af50b8b88a49d1545a76290731cb8e0feb1))
- * Removed an incorrect semi-colon ([af97cef8](https://github.com/angular-ui/ui-router/commit/af97cef8b967f2e32177e539ef41450dca131a7d))
- * Explain return value of rule as function ([5e887890](https://github.com/angular-ui/ui-router/commit/5e8878900a6ffe59a81aed531a3925e34a297377))
-
-
-#### Features
-
-* **$state:**
- * allow parameters to pass unharmed ([8939d057](https://github.com/angular-ui/ui-router/commit/8939d0572ab1316e458ef016317ecff53131a822))
- * **BREAKING CHANGE**: state parameters are no longer automatically coerced to strings, and unspecified parameter values are now set to undefined rather than null.
- * allow prevent syncUrl on failure ([753060b9](https://github.com/angular-ui/ui-router/commit/753060b910d5d2da600a6fa0757976e401c33172))
-* **typescript:** Add typescript definitions for component builds ([521ceb3f](https://github.com/angular-ui/ui-router/commit/521ceb3fd7850646422f411921e21ce5e7d82e0f))
-* **uiSref:** extend syntax for ui-sref ([71cad3d6](https://github.com/angular-ui/ui-router/commit/71cad3d636508b5a9fe004775ad1f1adc0c80c3e))
-* **uiSrefActive:**
- * Also activate for child states. ([bf163ad6](https://github.com/angular-ui/ui-router/commit/bf163ad6ce176ce28792696c8302d7cdf5c05a01), closes [#818](https://github.com/angular-ui/ui-router/issues/818))
- * **BREAKING CHANGE** Since ui-sref-active now activates even when child states are active you may need to swap out your ui-sref-active with ui-sref-active-eq, thought typically we think devs want the auto inheritance.
-
- * uiSrefActiveEq: new directive with old ui-sref-active behavior
-* **$urlRouter:**
- * defer URL change interception ([c72d8ce1](https://github.com/angular-ui/ui-router/commit/c72d8ce11916d0ac22c81b409c9e61d7048554d7))
- * force URLs to have valid params ([d48505cd](https://github.com/angular-ui/ui-router/commit/d48505cd328d83e39d5706e085ba319715f999a6))
- * abstract $location handling ([08b4636b](https://github.com/angular-ui/ui-router/commit/08b4636b294611f08db35f00641eb5211686fb50))
-* **$urlMatcherFactory:**
- * fail on bad parameters ([d8f124c1](https://github.com/angular-ui/ui-router/commit/d8f124c10d00c7e5dde88c602d966db261aea221))
- * date type support ([b7f074ff](https://github.com/angular-ui/ui-router/commit/b7f074ff65ca150a3cdbda4d5ad6cb17107300eb))
- * implement type support ([450b1f0e](https://github.com/angular-ui/ui-router/commit/450b1f0e8e03c738174ff967f688b9a6373290f4))
-* **UrlMatcher:**
- * handle query string arrays ([9cf764ef](https://github.com/angular-ui/ui-router/commit/9cf764efab45fa9309368688d535ddf6e96d6449), closes [#373](https://github.com/angular-ui/ui-router/issues/373))
- * injectable functions as defaults ([00966ecd](https://github.com/angular-ui/ui-router/commit/00966ecd91fb745846039160cab707bfca8b3bec))
- * default values & type decoding for query params ([a472b301](https://github.com/angular-ui/ui-router/commit/a472b301389fbe84d1c1fa9f24852b492a569d11))
- * allow shorthand definitions ([5b724304](https://github.com/angular-ui/ui-router/commit/5b7243049793505e44b6608ea09878c37c95b1f5))
- * validates whole interface ([32b27db1](https://github.com/angular-ui/ui-router/commit/32b27db173722e9194ef1d5c0ea7d93f25a98d11))
- * implement non-strict matching ([a3e21366](https://github.com/angular-ui/ui-router/commit/a3e21366bee0475c9795a1ec76f70eec41c5b4e3))
- * add per-param config support ([07b3029f](https://github.com/angular-ui/ui-router/commit/07b3029f4d409cf955780113df92e36401b47580))
- * **BREAKING CHANGE**: the `params` option in state configurations must now be an object keyed by parameter name.
-
-### 0.2.10 (2014-03-12)
-
-
-#### Bug Fixes
-
-* **$state:** use $browser.baseHref() when generating urls with .href() ([cbcc8488](https://github.com/angular-ui/ui-router/commit/cbcc84887d6b6d35258adabb97c714cd9c1e272d))
-* **bower.json:** JS files should not be ignored ([ccdab193](https://github.com/angular-ui/ui-router/commit/ccdab193315f304eb3be5f5b97c47a926c79263e))
-* **dev:** karma:background task is missing, can't run grunt:dev. ([d9f7b898](https://github.com/angular-ui/ui-router/commit/d9f7b898e8e3abb8c846b0faa16a382913d7b22b))
-* **sample:** Contacts menu button not staying active when navigating to detail states. Need t ([2fcb8443](https://github.com/angular-ui/ui-router/commit/2fcb84437cb43ade12682a92b764f13cac77dfe7))
-* **uiSref:** support mock-clicks/events with no data ([717d3ff7](https://github.com/angular-ui/ui-router/commit/717d3ff7d0ba72d239892dee562b401cdf90e418))
-* **uiView:**
- * Do NOT autoscroll when autoscroll attr is missing ([affe5bd7](https://github.com/angular-ui/ui-router/commit/affe5bd785cdc3f02b7a9f64a52e3900386ec3a0), closes [#807](https://github.com/angular-ui/ui-router/issues/807))
- * Refactoring uiView directive to copy ngView logic ([548fab6a](https://github.com/angular-ui/ui-router/commit/548fab6ab9debc9904c5865c8bc68b4fc3271dd0), closes [#857](https://github.com/angular-ui/ui-router/issues/857), [#552](https://github.com/angular-ui/ui-router/issues/552))
-
-
-#### Features
-
-* **$state:** includes() allows glob patterns for state matching. ([2d5f6b37](https://github.com/angular-ui/ui-router/commit/2d5f6b37191a3135f4a6d9e8f344c54edcdc065b))
-* **UrlMatcher:** Add support for case insensitive url matching ([642d5247](https://github.com/angular-ui/ui-router/commit/642d524799f604811e680331002feec7199a1fb5))
-* **uiSref:** add support for transition options ([2ed7a728](https://github.com/angular-ui/ui-router/commit/2ed7a728cee6854b38501fbc1df6139d3de5b28a))
-* **uiView:** add controllerAs config with function ([1ee7334a](https://github.com/angular-ui/ui-router/commit/1ee7334a73efeccc9b95340e315cdfd59944762d))
-
-
-### 0.2.9 (2014-01-17)
-
-
-This release is identical to 0.2.8. 0.2.8 was re-tagged in git to fix a problem with bower.
-
-
-### 0.2.8 (2014-01-16)
-
-
-#### Bug Fixes
-
-* **$state:** allow null to be passed as 'params' param ([094dc30e](https://github.com/angular-ui/ui-router/commit/094dc30e883e1bd14e50a475553bafeaade3b178))
-* **$state.go:** param inheritance shouldn't inherit from siblings ([aea872e0](https://github.com/angular-ui/ui-router/commit/aea872e0b983cb433436ce5875df10c838fccedb))
-* **bower.json:** fixes bower.json ([eed3cc4d](https://github.com/angular-ui/ui-router/commit/eed3cc4d4dfef1d3ef84b9fd063127538ebf59d3))
-* **uiSrefActive:** annotate controller injection ([85921422](https://github.com/angular-ui/ui-router/commit/85921422ff7fb0effed358136426d616cce3d583), closes [#671](https://github.com/angular-ui/ui-router/issues/671))
-* **uiView:**
- * autoscroll tests pass on 1.2.4 & 1.1.5 ([86eacac0](https://github.com/angular-ui/ui-router/commit/86eacac09ca5e9000bd3b9c7ba6e2cc95d883a3a))
- * don't animate initial load ([83b6634d](https://github.com/angular-ui/ui-router/commit/83b6634d27942ca74766b2b1244a7fc52c5643d9))
- * test pass against 1.0.8 and 1.2.4 ([a402415a](https://github.com/angular-ui/ui-router/commit/a402415a2a28b360c43b9fe8f4f54c540f6c33de))
- * it should autoscroll when expr is missing. ([8bb9e27a](https://github.com/angular-ui/ui-router/commit/8bb9e27a2986725f45daf44c4c9f846385095aff))
-
-
-#### Features
-
-* **uiSref:** add target attribute behaviour ([c12bf9a5](https://github.com/angular-ui/ui-router/commit/c12bf9a520d30d70294e3d82de7661900f8e394e))
-* **uiView:**
- * merge autoscroll expression test. ([b89e0f87](https://github.com/angular-ui/ui-router/commit/b89e0f871d5cc35c10925ede986c10684d5c9252))
- * cache and test autoscroll expression ([ee262282](https://github.com/angular-ui/ui-router/commit/ee2622828c2ce83807f006a459ac4e11406d9258))
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/CONTRIBUTING.md b/ecomp-portal-FE/client/bower_components/angular-ui-router/CONTRIBUTING.md
deleted file mode 100644
index 7e4fcb83..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/CONTRIBUTING.md
+++ /dev/null
@@ -1,65 +0,0 @@
-
-# Report an Issue
-
-Help us make UI-Router better! If you think you might have found a bug, or some other weirdness, start by making sure
-it hasn't already been reported. You can [search through existing issues](https://github.com/angular-ui/ui-router/search?q=wat%3F&type=Issues)
-to see if someone's reported one similar to yours.
-
-If not, then [create a plunkr](http://bit.ly/UIR-Plunk) that demonstrates the problem (try to use as little code
-as possible: the more minimalist, the faster we can debug it).
-
-Next, [create a new issue](https://github.com/angular-ui/ui-router/issues/new) that briefly explains the problem,
-and provides a bit of background as to the circumstances that triggered it. Don't forget to include the link to
-that plunkr you created!
-
-**Note**: If you're unsure how a feature is used, or are encountering some unexpected behavior that you aren't sure
-is a bug, it's best to talk it out on
-[StackOverflow](http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router) before reporting it. This
-keeps development streamlined, and helps us focus on building great software.
-
-
-Issues only! |
--------------|
-Please keep in mind that the issue tracker is for *issues*. Please do *not* post an issue if you need help or support. Instead, see one of the above-mentioned forums or [IRC](irc://irc.freenode.net/#angularjs). |
-
-####Purple Labels
-A purple label means that **you** need to take some further action.
- - ![Not Actionable - Need Info](ngdoc_assets/incomplete.png): Your issue is not specific enough, or there is no clear action that we can take. Please clarify and refine your issue.
- - ![Plunkr Please](ngdoc_assets/example.png): Please [create a plunkr](http://bit.ly/UIR-Plunk)
- - ![StackOverflow](ngdoc_assets/so.png): We suspect your issue is really a help request, or could be answered by the community. Please ask your question on [StackOverflow](http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router). If you determine that is an actual issue, please explain why.
-
-If your issue gets labeled with purple label, no further action will be taken until you respond to the label appropriately.
-
-# Contribute
-
-**(1)** See the **[Developing](#developing)** section below, to get the development version of UI-Router up and running on your local machine.
-
-**(2)** Check out the [roadmap](https://github.com/angular-ui/ui-router/milestones) to see where the project is headed, and if your feature idea fits with where we're headed.
-
-**(3)** If you're not sure, [open an RFC](https://github.com/angular-ui/ui-router/issues/new?title=RFC:%20My%20idea) to get some feedback on your idea.
-
-**(4)** Finally, commit some code and open a pull request. Code & commits should abide by the following rules:
-
-- *Always* have test coverage for new features (or regression tests for bug fixes), and *never* break existing tests
-- Commits should represent one logical change each; if a feature goes through multiple iterations, squash your commits down to one
-- Make sure to follow the [Angular commit message format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format) so your change will appear in the changelog of the next release.
-- Changes should always respect the coding style of the project
-
-
-
-# Developing
-
-UI-Router uses <code>grunt >= 0.4.x</code>. Make sure to upgrade your environment and read the
-[Migration Guide](http://gruntjs.com/upgrading-from-0.3-to-0.4).
-
-Dependencies for building from source and running tests:
-
-* [grunt-cli](https://github.com/gruntjs/grunt-cli) - run: `$ npm install -g grunt-cli`
-* Then, install the development dependencies by running `$ npm install` from the project directory
-
-There are a number of targets in the gruntfile that are used to generating different builds:
-
-* `grunt`: Perform a normal build, runs jshint and karma tests
-* `grunt build`: Perform a normal build
-* `grunt dist`: Perform a clean build and generate documentation
-* `grunt dev`: Run dev server (sample app) and watch for changes, builds and runs karma tests on changes.
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/LICENSE b/ecomp-portal-FE/client/bower_components/angular-ui-router/LICENSE
deleted file mode 100644
index 6413b092..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) 2013-2015 The AngularUI Team, Karsten Sperling
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/README.md b/ecomp-portal-FE/client/bower_components/angular-ui-router/README.md
deleted file mode 100644
index ba6c45ae..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/README.md
+++ /dev/null
@@ -1,252 +0,0 @@
-# AngularUI Router &nbsp;[![Build Status](https://travis-ci.org/angular-ui/ui-router.svg?branch=master)](https://travis-ci.org/angular-ui/ui-router)
-
-#### The de-facto solution to flexible routing with nested views
----
-**[Download 0.2.17](http://angular-ui.github.io/ui-router/release/angular-ui-router.js)** (or **[Minified](http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js)**) **|**
-**[Guide](https://github.com/angular-ui/ui-router/wiki) |**
-**[API](http://angular-ui.github.io/ui-router/site) |**
-**[Sample](http://angular-ui.github.com/ui-router/sample/) ([Src](https://github.com/angular-ui/ui-router/tree/gh-pages/sample)) |**
-**[FAQ](https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions) |**
-**[Resources](#resources) |**
-**[Report an Issue](https://github.com/angular-ui/ui-router/blob/master/CONTRIBUTING.md#report-an-issue) |**
-**[Contribute](https://github.com/angular-ui/ui-router/blob/master/CONTRIBUTING.md#contribute) |**
-**[Help!](http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router) |**
-**[Discuss](https://groups.google.com/forum/#!categories/angular-ui/router)**
-
----
-
-*_Please help us out by testing the 1.0 alpha release!_*
-
-[1.0.0alpha0 Announcement](https://github.com/angular-ui/ui-router/releases/tag/1.0.0alpha0) ([Source Code](https://github.com/angular-ui/ui-router/tree/feature-1.0)) | [Sample App](http://ui-router.github.io/sample-app/) ([Source Code](https://github.com/ui-router/sample-app)) | [Known Issues](https://github.com/angular-ui/ui-router/issues?q=is%3Aissue+is%3Aopen+label%3A1.0)
-
-
----
-
-AngularUI Router is a routing framework for [AngularJS](http://angularjs.org), which allows you to organize the
-parts of your interface into a [*state machine*](https://en.wikipedia.org/wiki/Finite-state_machine). Unlike the
-[`$route` service](http://docs.angularjs.org/api/ngRoute.$route) in the Angular ngRoute module, which is organized around URL
-routes, UI-Router is organized around [*states*](https://github.com/angular-ui/ui-router/wiki),
-which may optionally have routes, as well as other behavior, attached.
-
-States are bound to *named*, *nested* and *parallel views*, allowing you to powerfully manage your application's interface.
-
-Check out the sample app: http://angular-ui.github.io/ui-router/sample/
-
--
-**Note:** *UI-Router is under active development. As such, while this library is well-tested, the API may change. Consider using it in production applications only if you're comfortable following a changelog and updating your usage accordingly.*
-
-
-## Get Started
-
-**(1)** Get UI-Router in one of the following ways:
- - clone & [build](CONTRIBUTING.md#developing) this repository
- - [download the release](http://angular-ui.github.io/ui-router/release/angular-ui-router.js) (or [minified](http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js))
- - [link to cdn](http://cdnjs.com/libraries/angular-ui-router)
- - via **[jspm](http://jspm.io/)**: by running `$ jspm install angular-ui-router` from your console
- - or via **[npm](https://www.npmjs.org/)**: by running `$ npm install angular-ui-router` from your console
- - or via **[Bower](http://bower.io/)**: by running `$ bower install angular-ui-router` from your console
- - or via **[Component](https://github.com/component/component)**: by running `$ component install angular-ui/ui-router` from your console
-
-**(2)** Include `angular-ui-router.js` (or `angular-ui-router.min.js`) in your `index.html`, after including Angular itself (For Component users: ignore this step)
-
-**(3)** Add `'ui.router'` to your main module's list of dependencies (For Component users: replace `'ui.router'` with `require('angular-ui-router')`)
-
-When you're done, your setup should look similar to the following:
-
->
-```html
-<!doctype html>
-<html ng-app="myApp">
-<head>
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
- <script src="js/angular-ui-router.min.js"></script>
- <script>
- var myApp = angular.module('myApp', ['ui.router']);
- // For Component users, it should look like this:
- // var myApp = angular.module('myApp', [require('angular-ui-router')]);
- </script>
- ...
-</head>
-<body>
- ...
-</body>
-</html>
-```
-
-### [Nested States & Views](http://plnkr.co/edit/u18KQc?p=preview)
-
-The majority of UI-Router's power is in its ability to nest states & views.
-
-**(1)** First, follow the [setup](#get-started) instructions detailed above.
-
-**(2)** Then, add a [`ui-view` directive](https://github.com/angular-ui/ui-router/wiki/Quick-Reference#ui-view) to the `<body />` of your app.
-
->
-```html
-<!-- index.html -->
-<body>
- <div ui-view></div>
- <!-- We'll also add some navigation: -->
- <a ui-sref="state1">State 1</a>
- <a ui-sref="state2">State 2</a>
-</body>
-```
-
-**(3)** You'll notice we also added some links with [`ui-sref` directives](https://github.com/angular-ui/ui-router/wiki/Quick-Reference#ui-sref). In addition to managing state transitions, this directive auto-generates the `href` attribute of the `<a />` element it's attached to, if the corresponding state has a URL. Next we'll add some templates. These will plug into the `ui-view` within `index.html`. Notice that they have their own `ui-view` as well! That is the key to nesting states and views.
-
->
-```html
-<!-- partials/state1.html -->
-<h1>State 1</h1>
-<hr/>
-<a ui-sref="state1.list">Show List</a>
-<div ui-view></div>
-```
-```html
-<!-- partials/state2.html -->
-<h1>State 2</h1>
-<hr/>
-<a ui-sref="state2.list">Show List</a>
-<div ui-view></div>
-```
-
-**(4)** Next, we'll add some child templates. *These* will get plugged into the `ui-view` of their parent state templates.
-
->
-```html
-<!-- partials/state1.list.html -->
-<h3>List of State 1 Items</h3>
-<ul>
- <li ng-repeat="item in items">{{ item }}</li>
-</ul>
-```
-
->
-```html
-<!-- partials/state2.list.html -->
-<h3>List of State 2 Things</h3>
-<ul>
- <li ng-repeat="thing in things">{{ thing }}</li>
-</ul>
-```
-
-**(5)** Finally, we'll wire it all up with `$stateProvider`. Set up your states in the module config, as in the following:
-
-
->
-```javascript
-myApp.config(function($stateProvider, $urlRouterProvider) {
- //
- // For any unmatched url, redirect to /state1
- $urlRouterProvider.otherwise("/state1");
- //
- // Now set up the states
- $stateProvider
- .state('state1', {
- url: "/state1",
- templateUrl: "partials/state1.html"
- })
- .state('state1.list', {
- url: "/list",
- templateUrl: "partials/state1.list.html",
- controller: function($scope) {
- $scope.items = ["A", "List", "Of", "Items"];
- }
- })
- .state('state2', {
- url: "/state2",
- templateUrl: "partials/state2.html"
- })
- .state('state2.list', {
- url: "/list",
- templateUrl: "partials/state2.list.html",
- controller: function($scope) {
- $scope.things = ["A", "Set", "Of", "Things"];
- }
- });
-});
-```
-
-**(6)** See this quick start example in action.
->**[Go to Quick Start Plunker for Nested States & Views](http://plnkr.co/edit/u18KQc?p=preview)**
-
-**(7)** This only scratches the surface
->**[Dive Deeper!](https://github.com/angular-ui/ui-router/wiki)**
-
-
-### [Multiple & Named Views](http://plnkr.co/edit/SDOcGS?p=preview)
-
-Another great feature is the ability to have multiple `ui-view`s view per template.
-
-**Pro Tip:** *While multiple parallel views are a powerful feature, you'll often be able to manage your
-interfaces more effectively by nesting your views, and pairing those views with nested states.*
-
-**(1)** Follow the [setup](#get-started) instructions detailed above.
-
-**(2)** Add one or more `ui-view` to your app, give them names.
->
-```html
-<!-- index.html -->
-<body>
- <div ui-view="viewA"></div>
- <div ui-view="viewB"></div>
- <!-- Also a way to navigate -->
- <a ui-sref="route1">Route 1</a>
- <a ui-sref="route2">Route 2</a>
-</body>
-```
-
-**(3)** Set up your states in the module config:
->
-```javascript
-myApp.config(function($stateProvider) {
- $stateProvider
- .state('index', {
- url: "",
- views: {
- "viewA": { template: "index.viewA" },
- "viewB": { template: "index.viewB" }
- }
- })
- .state('route1', {
- url: "/route1",
- views: {
- "viewA": { template: "route1.viewA" },
- "viewB": { template: "route1.viewB" }
- }
- })
- .state('route2', {
- url: "/route2",
- views: {
- "viewA": { template: "route2.viewA" },
- "viewB": { template: "route2.viewB" }
- }
- })
-});
-```
-
-**(4)** See this quick start example in action.
->**[Go to Quick Start Plunker for Multiple & Named Views](http://plnkr.co/edit/SDOcGS?p=preview)**
-
-
-## Resources
-
-* [In-Depth Guide](https://github.com/angular-ui/ui-router/wiki)
-* [API Reference](http://angular-ui.github.io/ui-router/site)
-* [Sample App](http://angular-ui.github.com/ui-router/sample/) ([Source](https://github.com/angular-ui/ui-router/tree/gh-pages/sample))
-* [FAQ](https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions)
-* [Slides comparing ngRoute to ui-router](http://slid.es/timkindberg/ui-router#/)
-* [UI-Router Extras / Addons](http://christopherthielen.github.io/ui-router-extras/#/home) (@christopherthielen)
-
-### Videos
-
-* [Introduction Video](https://egghead.io/lessons/angularjs-introduction-ui-router) (egghead.io)
-* [Tim Kindberg on Angular UI-Router](https://www.youtube.com/watch?v=lBqiZSemrqg)
-* [Activating States](https://egghead.io/lessons/angularjs-ui-router-activating-states) (egghead.io)
-* [Learn Angular.js using UI-Router](http://youtu.be/QETUuZ27N0w) (LearnCode.academy)
-
-
-
-## Reporting issues and Contributing
-
-Please read our [Contributor guidelines](CONTRIBUTING.md) before reporting an issue or creating a pull request.
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/bower.json b/ecomp-portal-FE/client/bower_components/angular-ui-router/bower.json
deleted file mode 100644
index 892936f1..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/bower.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "angular-ui-router",
- "version": "0.2.18",
- "license" : "MIT",
- "main": "./release/angular-ui-router.js",
- "dependencies": {
- "angular": "^1.0.8"
- },
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "component.json",
- "package.json",
- "lib",
- "config",
- "sample",
- "test",
- "tests",
- "ngdoc_assets",
- "Gruntfile.js",
- "files.js"
- ]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/release/angular-ui-router.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/release/angular-ui-router.js
deleted file mode 100644
index 26f76574..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/release/angular-ui-router.js
+++ /dev/null
@@ -1,4539 +0,0 @@
-/**
- * State-based routing for AngularJS
- * @version v0.2.18
- * @link http://angular-ui.github.com/
- * @license MIT License, http://www.opensource.org/licenses/MIT
- */
-
-/* commonjs package manager support (eg componentjs) */
-if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
- module.exports = 'ui.router';
-}
-
-(function (window, angular, undefined) {
-/*jshint globalstrict:true*/
-/*global angular:false*/
-'use strict';
-
-var isDefined = angular.isDefined,
- isFunction = angular.isFunction,
- isString = angular.isString,
- isObject = angular.isObject,
- isArray = angular.isArray,
- forEach = angular.forEach,
- extend = angular.extend,
- copy = angular.copy,
- toJson = angular.toJson;
-
-function inherit(parent, extra) {
- return extend(new (extend(function() {}, { prototype: parent }))(), extra);
-}
-
-function merge(dst) {
- forEach(arguments, function(obj) {
- if (obj !== dst) {
- forEach(obj, function(value, key) {
- if (!dst.hasOwnProperty(key)) dst[key] = value;
- });
- }
- });
- return dst;
-}
-
-/**
- * Finds the common ancestor path between two states.
- *
- * @param {Object} first The first state.
- * @param {Object} second The second state.
- * @return {Array} Returns an array of state names in descending order, not including the root.
- */
-function ancestors(first, second) {
- var path = [];
-
- for (var n in first.path) {
- if (first.path[n] !== second.path[n]) break;
- path.push(first.path[n]);
- }
- return path;
-}
-
-/**
- * IE8-safe wrapper for `Object.keys()`.
- *
- * @param {Object} object A JavaScript object.
- * @return {Array} Returns the keys of the object as an array.
- */
-function objectKeys(object) {
- if (Object.keys) {
- return Object.keys(object);
- }
- var result = [];
-
- forEach(object, function(val, key) {
- result.push(key);
- });
- return result;
-}
-
-/**
- * IE8-safe wrapper for `Array.prototype.indexOf()`.
- *
- * @param {Array} array A JavaScript array.
- * @param {*} value A value to search the array for.
- * @return {Number} Returns the array index value of `value`, or `-1` if not present.
- */
-function indexOf(array, value) {
- if (Array.prototype.indexOf) {
- return array.indexOf(value, Number(arguments[2]) || 0);
- }
- var len = array.length >>> 0, from = Number(arguments[2]) || 0;
- from = (from < 0) ? Math.ceil(from) : Math.floor(from);
-
- if (from < 0) from += len;
-
- for (; from < len; from++) {
- if (from in array && array[from] === value) return from;
- }
- return -1;
-}
-
-/**
- * Merges a set of parameters with all parameters inherited between the common parents of the
- * current state and a given destination state.
- *
- * @param {Object} currentParams The value of the current state parameters ($stateParams).
- * @param {Object} newParams The set of parameters which will be composited with inherited params.
- * @param {Object} $current Internal definition of object representing the current state.
- * @param {Object} $to Internal definition of object representing state to transition to.
- */
-function inheritParams(currentParams, newParams, $current, $to) {
- var parents = ancestors($current, $to), parentParams, inherited = {}, inheritList = [];
-
- for (var i in parents) {
- if (!parents[i] || !parents[i].params) continue;
- parentParams = objectKeys(parents[i].params);
- if (!parentParams.length) continue;
-
- for (var j in parentParams) {
- if (indexOf(inheritList, parentParams[j]) >= 0) continue;
- inheritList.push(parentParams[j]);
- inherited[parentParams[j]] = currentParams[parentParams[j]];
- }
- }
- return extend({}, inherited, newParams);
-}
-
-/**
- * Performs a non-strict comparison of the subset of two objects, defined by a list of keys.
- *
- * @param {Object} a The first object.
- * @param {Object} b The second object.
- * @param {Array} keys The list of keys within each object to compare. If the list is empty or not specified,
- * it defaults to the list of keys in `a`.
- * @return {Boolean} Returns `true` if the keys match, otherwise `false`.
- */
-function equalForKeys(a, b, keys) {
- if (!keys) {
- keys = [];
- for (var n in a) keys.push(n); // Used instead of Object.keys() for IE8 compatibility
- }
-
- for (var i=0; i<keys.length; i++) {
- var k = keys[i];
- if (a[k] != b[k]) return false; // Not '===', values aren't necessarily normalized
- }
- return true;
-}
-
-/**
- * Returns the subset of an object, based on a list of keys.
- *
- * @param {Array} keys
- * @param {Object} values
- * @return {Boolean} Returns a subset of `values`.
- */
-function filterByKeys(keys, values) {
- var filtered = {};
-
- forEach(keys, function (name) {
- filtered[name] = values[name];
- });
- return filtered;
-}
-
-// like _.indexBy
-// when you know that your index values will be unique, or you want last-one-in to win
-function indexBy(array, propName) {
- var result = {};
- forEach(array, function(item) {
- result[item[propName]] = item;
- });
- return result;
-}
-
-// extracted from underscore.js
-// Return a copy of the object only containing the whitelisted properties.
-function pick(obj) {
- var copy = {};
- var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
- forEach(keys, function(key) {
- if (key in obj) copy[key] = obj[key];
- });
- return copy;
-}
-
-// extracted from underscore.js
-// Return a copy of the object omitting the blacklisted properties.
-function omit(obj) {
- var copy = {};
- var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
- for (var key in obj) {
- if (indexOf(keys, key) == -1) copy[key] = obj[key];
- }
- return copy;
-}
-
-function pluck(collection, key) {
- var result = isArray(collection) ? [] : {};
-
- forEach(collection, function(val, i) {
- result[i] = isFunction(key) ? key(val) : val[key];
- });
- return result;
-}
-
-function filter(collection, callback) {
- var array = isArray(collection);
- var result = array ? [] : {};
- forEach(collection, function(val, i) {
- if (callback(val, i)) {
- result[array ? result.length : i] = val;
- }
- });
- return result;
-}
-
-function map(collection, callback) {
- var result = isArray(collection) ? [] : {};
-
- forEach(collection, function(val, i) {
- result[i] = callback(val, i);
- });
- return result;
-}
-
-/**
- * @ngdoc overview
- * @name ui.router.util
- *
- * @description
- * # ui.router.util sub-module
- *
- * This module is a dependency of other sub-modules. Do not include this module as a dependency
- * in your angular app (use {@link ui.router} module instead).
- *
- */
-angular.module('ui.router.util', ['ng']);
-
-/**
- * @ngdoc overview
- * @name ui.router.router
- *
- * @requires ui.router.util
- *
- * @description
- * # ui.router.router sub-module
- *
- * This module is a dependency of other sub-modules. Do not include this module as a dependency
- * in your angular app (use {@link ui.router} module instead).
- */
-angular.module('ui.router.router', ['ui.router.util']);
-
-/**
- * @ngdoc overview
- * @name ui.router.state
- *
- * @requires ui.router.router
- * @requires ui.router.util
- *
- * @description
- * # ui.router.state sub-module
- *
- * This module is a dependency of the main ui.router module. Do not include this module as a dependency
- * in your angular app (use {@link ui.router} module instead).
- *
- */
-angular.module('ui.router.state', ['ui.router.router', 'ui.router.util']);
-
-/**
- * @ngdoc overview
- * @name ui.router
- *
- * @requires ui.router.state
- *
- * @description
- * # ui.router
- *
- * ## The main module for ui.router
- * There are several sub-modules included with the ui.router module, however only this module is needed
- * as a dependency within your angular app. The other modules are for organization purposes.
- *
- * The modules are:
- * * ui.router - the main "umbrella" module
- * * ui.router.router -
- *
- * *You'll need to include **only** this module as the dependency within your angular app.*
- *
- * <pre>
- * <!doctype html>
- * <html ng-app="myApp">
- * <head>
- * <script src="js/angular.js"></script>
- * <!-- Include the ui-router script -->
- * <script src="js/angular-ui-router.min.js"></script>
- * <script>
- * // ...and add 'ui.router' as a dependency
- * var myApp = angular.module('myApp', ['ui.router']);
- * </script>
- * </head>
- * <body>
- * </body>
- * </html>
- * </pre>
- */
-angular.module('ui.router', ['ui.router.state']);
-
-angular.module('ui.router.compat', ['ui.router']);
-
-/**
- * @ngdoc object
- * @name ui.router.util.$resolve
- *
- * @requires $q
- * @requires $injector
- *
- * @description
- * Manages resolution of (acyclic) graphs of promises.
- */
-$Resolve.$inject = ['$q', '$injector'];
-function $Resolve( $q, $injector) {
-
- var VISIT_IN_PROGRESS = 1,
- VISIT_DONE = 2,
- NOTHING = {},
- NO_DEPENDENCIES = [],
- NO_LOCALS = NOTHING,
- NO_PARENT = extend($q.when(NOTHING), { $$promises: NOTHING, $$values: NOTHING });
-
-
- /**
- * @ngdoc function
- * @name ui.router.util.$resolve#study
- * @methodOf ui.router.util.$resolve
- *
- * @description
- * Studies a set of invocables that are likely to be used multiple times.
- * <pre>
- * $resolve.study(invocables)(locals, parent, self)
- * </pre>
- * is equivalent to
- * <pre>
- * $resolve.resolve(invocables, locals, parent, self)
- * </pre>
- * but the former is more efficient (in fact `resolve` just calls `study`
- * internally).
- *
- * @param {object} invocables Invocable objects
- * @return {function} a function to pass in locals, parent and self
- */
- this.study = function (invocables) {
- if (!isObject(invocables)) throw new Error("'invocables' must be an object");
- var invocableKeys = objectKeys(invocables || {});
-
- // Perform a topological sort of invocables to build an ordered plan
- var plan = [], cycle = [], visited = {};
- function visit(value, key) {
- if (visited[key] === VISIT_DONE) return;
-
- cycle.push(key);
- if (visited[key] === VISIT_IN_PROGRESS) {
- cycle.splice(0, indexOf(cycle, key));
- throw new Error("Cyclic dependency: " + cycle.join(" -> "));
- }
- visited[key] = VISIT_IN_PROGRESS;
-
- if (isString(value)) {
- plan.push(key, [ function() { return $injector.get(value); }], NO_DEPENDENCIES);
- } else {
- var params = $injector.annotate(value);
- forEach(params, function (param) {
- if (param !== key && invocables.hasOwnProperty(param)) visit(invocables[param], param);
- });
- plan.push(key, value, params);
- }
-
- cycle.pop();
- visited[key] = VISIT_DONE;
- }
- forEach(invocables, visit);
- invocables = cycle = visited = null; // plan is all that's required
-
- function isResolve(value) {
- return isObject(value) && value.then && value.$$promises;
- }
-
- return function (locals, parent, self) {
- if (isResolve(locals) && self === undefined) {
- self = parent; parent = locals; locals = null;
- }
- if (!locals) locals = NO_LOCALS;
- else if (!isObject(locals)) {
- throw new Error("'locals' must be an object");
- }
- if (!parent) parent = NO_PARENT;
- else if (!isResolve(parent)) {
- throw new Error("'parent' must be a promise returned by $resolve.resolve()");
- }
-
- // To complete the overall resolution, we have to wait for the parent
- // promise and for the promise for each invokable in our plan.
- var resolution = $q.defer(),
- result = resolution.promise,
- promises = result.$$promises = {},
- values = extend({}, locals),
- wait = 1 + plan.length/3,
- merged = false;
-
- function done() {
- // Merge parent values we haven't got yet and publish our own $$values
- if (!--wait) {
- if (!merged) merge(values, parent.$$values);
- result.$$values = values;
- result.$$promises = result.$$promises || true; // keep for isResolve()
- delete result.$$inheritedValues;
- resolution.resolve(values);
- }
- }
-
- function fail(reason) {
- result.$$failure = reason;
- resolution.reject(reason);
- }
-
- // Short-circuit if parent has already failed
- if (isDefined(parent.$$failure)) {
- fail(parent.$$failure);
- return result;
- }
-
- if (parent.$$inheritedValues) {
- merge(values, omit(parent.$$inheritedValues, invocableKeys));
- }
-
- // Merge parent values if the parent has already resolved, or merge
- // parent promises and wait if the parent resolve is still in progress.
- extend(promises, parent.$$promises);
- if (parent.$$values) {
- merged = merge(values, omit(parent.$$values, invocableKeys));
- result.$$inheritedValues = omit(parent.$$values, invocableKeys);
- done();
- } else {
- if (parent.$$inheritedValues) {
- result.$$inheritedValues = omit(parent.$$inheritedValues, invocableKeys);
- }
- parent.then(done, fail);
- }
-
- // Process each invocable in the plan, but ignore any where a local of the same name exists.
- for (var i=0, ii=plan.length; i<ii; i+=3) {
- if (locals.hasOwnProperty(plan[i])) done();
- else invoke(plan[i], plan[i+1], plan[i+2]);
- }
-
- function invoke(key, invocable, params) {
- // Create a deferred for this invocation. Failures will propagate to the resolution as well.
- var invocation = $q.defer(), waitParams = 0;
- function onfailure(reason) {
- invocation.reject(reason);
- fail(reason);
- }
- // Wait for any parameter that we have a promise for (either from parent or from this
- // resolve; in that case study() will have made sure it's ordered before us in the plan).
- forEach(params, function (dep) {
- if (promises.hasOwnProperty(dep) && !locals.hasOwnProperty(dep)) {
- waitParams++;
- promises[dep].then(function (result) {
- values[dep] = result;
- if (!(--waitParams)) proceed();
- }, onfailure);
- }
- });
- if (!waitParams) proceed();
- function proceed() {
- if (isDefined(result.$$failure)) return;
- try {
- invocation.resolve($injector.invoke(invocable, self, values));
- invocation.promise.then(function (result) {
- values[key] = result;
- done();
- }, onfailure);
- } catch (e) {
- onfailure(e);
- }
- }
- // Publish promise synchronously; invocations further down in the plan may depend on it.
- promises[key] = invocation.promise;
- }
-
- return result;
- };
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$resolve#resolve
- * @methodOf ui.router.util.$resolve
- *
- * @description
- * Resolves a set of invocables. An invocable is a function to be invoked via
- * `$injector.invoke()`, and can have an arbitrary number of dependencies.
- * An invocable can either return a value directly,
- * or a `$q` promise. If a promise is returned it will be resolved and the
- * resulting value will be used instead. Dependencies of invocables are resolved
- * (in this order of precedence)
- *
- * - from the specified `locals`
- * - from another invocable that is part of this `$resolve` call
- * - from an invocable that is inherited from a `parent` call to `$resolve`
- * (or recursively
- * - from any ancestor `$resolve` of that parent).
- *
- * The return value of `$resolve` is a promise for an object that contains
- * (in this order of precedence)
- *
- * - any `locals` (if specified)
- * - the resolved return values of all injectables
- * - any values inherited from a `parent` call to `$resolve` (if specified)
- *
- * The promise will resolve after the `parent` promise (if any) and all promises
- * returned by injectables have been resolved. If any invocable
- * (or `$injector.invoke`) throws an exception, or if a promise returned by an
- * invocable is rejected, the `$resolve` promise is immediately rejected with the
- * same error. A rejection of a `parent` promise (if specified) will likewise be
- * propagated immediately. Once the `$resolve` promise has been rejected, no
- * further invocables will be called.
- *
- * Cyclic dependencies between invocables are not permitted and will cause `$resolve`
- * to throw an error. As a special case, an injectable can depend on a parameter
- * with the same name as the injectable, which will be fulfilled from the `parent`
- * injectable of the same name. This allows inherited values to be decorated.
- * Note that in this case any other injectable in the same `$resolve` with the same
- * dependency would see the decorated value, not the inherited value.
- *
- * Note that missing dependencies -- unlike cyclic dependencies -- will cause an
- * (asynchronous) rejection of the `$resolve` promise rather than a (synchronous)
- * exception.
- *
- * Invocables are invoked eagerly as soon as all dependencies are available.
- * This is true even for dependencies inherited from a `parent` call to `$resolve`.
- *
- * As a special case, an invocable can be a string, in which case it is taken to
- * be a service name to be passed to `$injector.get()`. This is supported primarily
- * for backwards-compatibility with the `resolve` property of `$routeProvider`
- * routes.
- *
- * @param {object} invocables functions to invoke or
- * `$injector` services to fetch.
- * @param {object} locals values to make available to the injectables
- * @param {object} parent a promise returned by another call to `$resolve`.
- * @param {object} self the `this` for the invoked methods
- * @return {object} Promise for an object that contains the resolved return value
- * of all invocables, as well as any inherited and local values.
- */
- this.resolve = function (invocables, locals, parent, self) {
- return this.study(invocables)(locals, parent, self);
- };
-}
-
-angular.module('ui.router.util').service('$resolve', $Resolve);
-
-
-/**
- * @ngdoc object
- * @name ui.router.util.$templateFactory
- *
- * @requires $http
- * @requires $templateCache
- * @requires $injector
- *
- * @description
- * Service. Manages loading of templates.
- */
-$TemplateFactory.$inject = ['$http', '$templateCache', '$injector'];
-function $TemplateFactory( $http, $templateCache, $injector) {
-
- /**
- * @ngdoc function
- * @name ui.router.util.$templateFactory#fromConfig
- * @methodOf ui.router.util.$templateFactory
- *
- * @description
- * Creates a template from a configuration object.
- *
- * @param {object} config Configuration object for which to load a template.
- * The following properties are search in the specified order, and the first one
- * that is defined is used to create the template:
- *
- * @param {string|object} config.template html string template or function to
- * load via {@link ui.router.util.$templateFactory#fromString fromString}.
- * @param {string|object} config.templateUrl url to load or a function returning
- * the url to load via {@link ui.router.util.$templateFactory#fromUrl fromUrl}.
- * @param {Function} config.templateProvider function to invoke via
- * {@link ui.router.util.$templateFactory#fromProvider fromProvider}.
- * @param {object} params Parameters to pass to the template function.
- * @param {object} locals Locals to pass to `invoke` if the template is loaded
- * via a `templateProvider`. Defaults to `{ params: params }`.
- *
- * @return {string|object} The template html as a string, or a promise for
- * that string,or `null` if no template is configured.
- */
- this.fromConfig = function (config, params, locals) {
- return (
- isDefined(config.template) ? this.fromString(config.template, params) :
- isDefined(config.templateUrl) ? this.fromUrl(config.templateUrl, params) :
- isDefined(config.templateProvider) ? this.fromProvider(config.templateProvider, params, locals) :
- null
- );
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$templateFactory#fromString
- * @methodOf ui.router.util.$templateFactory
- *
- * @description
- * Creates a template from a string or a function returning a string.
- *
- * @param {string|object} template html template as a string or function that
- * returns an html template as a string.
- * @param {object} params Parameters to pass to the template function.
- *
- * @return {string|object} The template html as a string, or a promise for that
- * string.
- */
- this.fromString = function (template, params) {
- return isFunction(template) ? template(params) : template;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$templateFactory#fromUrl
- * @methodOf ui.router.util.$templateFactory
- *
- * @description
- * Loads a template from the a URL via `$http` and `$templateCache`.
- *
- * @param {string|Function} url url of the template to load, or a function
- * that returns a url.
- * @param {Object} params Parameters to pass to the url function.
- * @return {string|Promise.<string>} The template html as a string, or a promise
- * for that string.
- */
- this.fromUrl = function (url, params) {
- if (isFunction(url)) url = url(params);
- if (url == null) return null;
- else return $http
- .get(url, { cache: $templateCache, headers: { Accept: 'text/html' }})
- .then(function(response) { return response.data; });
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$templateFactory#fromProvider
- * @methodOf ui.router.util.$templateFactory
- *
- * @description
- * Creates a template by invoking an injectable provider function.
- *
- * @param {Function} provider Function to invoke via `$injector.invoke`
- * @param {Object} params Parameters for the template.
- * @param {Object} locals Locals to pass to `invoke`. Defaults to
- * `{ params: params }`.
- * @return {string|Promise.<string>} The template html as a string, or a promise
- * for that string.
- */
- this.fromProvider = function (provider, params, locals) {
- return $injector.invoke(provider, null, locals || { params: params });
- };
-}
-
-angular.module('ui.router.util').service('$templateFactory', $TemplateFactory);
-
-var $$UMFP; // reference to $UrlMatcherFactoryProvider
-
-/**
- * @ngdoc object
- * @name ui.router.util.type:UrlMatcher
- *
- * @description
- * Matches URLs against patterns and extracts named parameters from the path or the search
- * part of the URL. A URL pattern consists of a path pattern, optionally followed by '?' and a list
- * of search parameters. Multiple search parameter names are separated by '&'. Search parameters
- * do not influence whether or not a URL is matched, but their values are passed through into
- * the matched parameters returned by {@link ui.router.util.type:UrlMatcher#methods_exec exec}.
- *
- * Path parameter placeholders can be specified using simple colon/catch-all syntax or curly brace
- * syntax, which optionally allows a regular expression for the parameter to be specified:
- *
- * * `':'` name - colon placeholder
- * * `'*'` name - catch-all placeholder
- * * `'{' name '}'` - curly placeholder
- * * `'{' name ':' regexp|type '}'` - curly placeholder with regexp or type name. Should the
- * regexp itself contain curly braces, they must be in matched pairs or escaped with a backslash.
- *
- * Parameter names may contain only word characters (latin letters, digits, and underscore) and
- * must be unique within the pattern (across both path and search parameters). For colon
- * placeholders or curly placeholders without an explicit regexp, a path parameter matches any
- * number of characters other than '/'. For catch-all placeholders the path parameter matches
- * any number of characters.
- *
- * Examples:
- *
- * * `'/hello/'` - Matches only if the path is exactly '/hello/'. There is no special treatment for
- * trailing slashes, and patterns have to match the entire path, not just a prefix.
- * * `'/user/:id'` - Matches '/user/bob' or '/user/1234!!!' or even '/user/' but not '/user' or
- * '/user/bob/details'. The second path segment will be captured as the parameter 'id'.
- * * `'/user/{id}'` - Same as the previous example, but using curly brace syntax.
- * * `'/user/{id:[^/]*}'` - Same as the previous example.
- * * `'/user/{id:[0-9a-fA-F]{1,8}}'` - Similar to the previous example, but only matches if the id
- * parameter consists of 1 to 8 hex digits.
- * * `'/files/{path:.*}'` - Matches any URL starting with '/files/' and captures the rest of the
- * path into the parameter 'path'.
- * * `'/files/*path'` - ditto.
- * * `'/calendar/{start:date}'` - Matches "/calendar/2014-11-12" (because the pattern defined
- * in the built-in `date` Type matches `2014-11-12`) and provides a Date object in $stateParams.start
- *
- * @param {string} pattern The pattern to compile into a matcher.
- * @param {Object} config A configuration object hash:
- * @param {Object=} parentMatcher Used to concatenate the pattern/config onto
- * an existing UrlMatcher
- *
- * * `caseInsensitive` - `true` if URL matching should be case insensitive, otherwise `false`, the default value (for backward compatibility) is `false`.
- * * `strict` - `false` if matching against a URL with a trailing slash should be treated as equivalent to a URL without a trailing slash, the default value is `true`.
- *
- * @property {string} prefix A static prefix of this pattern. The matcher guarantees that any
- * URL matching this matcher (i.e. any string for which {@link ui.router.util.type:UrlMatcher#methods_exec exec()} returns
- * non-null) will start with this prefix.
- *
- * @property {string} source The pattern that was passed into the constructor
- *
- * @property {string} sourcePath The path portion of the source property
- *
- * @property {string} sourceSearch The search portion of the source property
- *
- * @property {string} regex The constructed regex that will be used to match against the url when
- * it is time to determine which url will match.
- *
- * @returns {Object} New `UrlMatcher` object
- */
-function UrlMatcher(pattern, config, parentMatcher) {
- config = extend({ params: {} }, isObject(config) ? config : {});
-
- // Find all placeholders and create a compiled pattern, using either classic or curly syntax:
- // '*' name
- // ':' name
- // '{' name '}'
- // '{' name ':' regexp '}'
- // The regular expression is somewhat complicated due to the need to allow curly braces
- // inside the regular expression. The placeholder regexp breaks down as follows:
- // ([:*])([\w\[\]]+) - classic placeholder ($1 / $2) (search version has - for snake-case)
- // \{([\w\[\]]+)(?:\:\s*( ... ))?\} - curly brace placeholder ($3) with optional regexp/type ... ($4) (search version has - for snake-case
- // (?: ... | ... | ... )+ - the regexp consists of any number of atoms, an atom being either
- // [^{}\\]+ - anything other than curly braces or backslash
- // \\. - a backslash escape
- // \{(?:[^{}\\]+|\\.)*\} - a matched set of curly braces containing other atoms
- var placeholder = /([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,
- searchPlaceholder = /([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,
- compiled = '^', last = 0, m,
- segments = this.segments = [],
- parentParams = parentMatcher ? parentMatcher.params : {},
- params = this.params = parentMatcher ? parentMatcher.params.$$new() : new $$UMFP.ParamSet(),
- paramNames = [];
-
- function addParameter(id, type, config, location) {
- paramNames.push(id);
- if (parentParams[id]) return parentParams[id];
- if (!/^\w+([-.]+\w+)*(?:\[\])?$/.test(id)) throw new Error("Invalid parameter name '" + id + "' in pattern '" + pattern + "'");
- if (params[id]) throw new Error("Duplicate parameter name '" + id + "' in pattern '" + pattern + "'");
- params[id] = new $$UMFP.Param(id, type, config, location);
- return params[id];
- }
-
- function quoteRegExp(string, pattern, squash, optional) {
- var surroundPattern = ['',''], result = string.replace(/[\\\[\]\^$*+?.()|{}]/g, "\\$&");
- if (!pattern) return result;
- switch(squash) {
- case false: surroundPattern = ['(', ')' + (optional ? "?" : "")]; break;
- case true:
- result = result.replace(/\/$/, '');
- surroundPattern = ['(?:\/(', ')|\/)?'];
- break;
- default: surroundPattern = ['(' + squash + "|", ')?']; break;
- }
- return result + surroundPattern[0] + pattern + surroundPattern[1];
- }
-
- this.source = pattern;
-
- // Split into static segments separated by path parameter placeholders.
- // The number of segments is always 1 more than the number of parameters.
- function matchDetails(m, isSearch) {
- var id, regexp, segment, type, cfg, arrayMode;
- id = m[2] || m[3]; // IE[78] returns '' for unmatched groups instead of null
- cfg = config.params[id];
- segment = pattern.substring(last, m.index);
- regexp = isSearch ? m[4] : m[4] || (m[1] == '*' ? '.*' : null);
-
- if (regexp) {
- type = $$UMFP.type(regexp) || inherit($$UMFP.type("string"), { pattern: new RegExp(regexp, config.caseInsensitive ? 'i' : undefined) });
- }
-
- return {
- id: id, regexp: regexp, segment: segment, type: type, cfg: cfg
- };
- }
-
- var p, param, segment;
- while ((m = placeholder.exec(pattern))) {
- p = matchDetails(m, false);
- if (p.segment.indexOf('?') >= 0) break; // we're into the search part
-
- param = addParameter(p.id, p.type, p.cfg, "path");
- compiled += quoteRegExp(p.segment, param.type.pattern.source, param.squash, param.isOptional);
- segments.push(p.segment);
- last = placeholder.lastIndex;
- }
- segment = pattern.substring(last);
-
- // Find any search parameter names and remove them from the last segment
- var i = segment.indexOf('?');
-
- if (i >= 0) {
- var search = this.sourceSearch = segment.substring(i);
- segment = segment.substring(0, i);
- this.sourcePath = pattern.substring(0, last + i);
-
- if (search.length > 0) {
- last = 0;
- while ((m = searchPlaceholder.exec(search))) {
- p = matchDetails(m, true);
- param = addParameter(p.id, p.type, p.cfg, "search");
- last = placeholder.lastIndex;
- // check if ?&
- }
- }
- } else {
- this.sourcePath = pattern;
- this.sourceSearch = '';
- }
-
- compiled += quoteRegExp(segment) + (config.strict === false ? '\/?' : '') + '$';
- segments.push(segment);
-
- this.regexp = new RegExp(compiled, config.caseInsensitive ? 'i' : undefined);
- this.prefix = segments[0];
- this.$$paramNames = paramNames;
-}
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#concat
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Returns a new matcher for a pattern constructed by appending the path part and adding the
- * search parameters of the specified pattern to this pattern. The current pattern is not
- * modified. This can be understood as creating a pattern for URLs that are relative to (or
- * suffixes of) the current pattern.
- *
- * @example
- * The following two matchers are equivalent:
- * <pre>
- * new UrlMatcher('/user/{id}?q').concat('/details?date');
- * new UrlMatcher('/user/{id}/details?q&date');
- * </pre>
- *
- * @param {string} pattern The pattern to append.
- * @param {Object} config An object hash of the configuration for the matcher.
- * @returns {UrlMatcher} A matcher for the concatenated pattern.
- */
-UrlMatcher.prototype.concat = function (pattern, config) {
- // Because order of search parameters is irrelevant, we can add our own search
- // parameters to the end of the new pattern. Parse the new pattern by itself
- // and then join the bits together, but it's much easier to do this on a string level.
- var defaultConfig = {
- caseInsensitive: $$UMFP.caseInsensitive(),
- strict: $$UMFP.strictMode(),
- squash: $$UMFP.defaultSquashPolicy()
- };
- return new UrlMatcher(this.sourcePath + pattern + this.sourceSearch, extend(defaultConfig, config), this);
-};
-
-UrlMatcher.prototype.toString = function () {
- return this.source;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#exec
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Tests the specified path against this matcher, and returns an object containing the captured
- * parameter values, or null if the path does not match. The returned object contains the values
- * of any search parameters that are mentioned in the pattern, but their value may be null if
- * they are not present in `searchParams`. This means that search parameters are always treated
- * as optional.
- *
- * @example
- * <pre>
- * new UrlMatcher('/user/{id}?q&r').exec('/user/bob', {
- * x: '1', q: 'hello'
- * });
- * // returns { id: 'bob', q: 'hello', r: null }
- * </pre>
- *
- * @param {string} path The URL path to match, e.g. `$location.path()`.
- * @param {Object} searchParams URL search parameters, e.g. `$location.search()`.
- * @returns {Object} The captured parameter values.
- */
-UrlMatcher.prototype.exec = function (path, searchParams) {
- var m = this.regexp.exec(path);
- if (!m) return null;
- searchParams = searchParams || {};
-
- var paramNames = this.parameters(), nTotal = paramNames.length,
- nPath = this.segments.length - 1,
- values = {}, i, j, cfg, paramName;
-
- if (nPath !== m.length - 1) throw new Error("Unbalanced capture group in route '" + this.source + "'");
-
- function decodePathArray(string) {
- function reverseString(str) { return str.split("").reverse().join(""); }
- function unquoteDashes(str) { return str.replace(/\\-/g, "-"); }
-
- var split = reverseString(string).split(/-(?!\\)/);
- var allReversed = map(split, reverseString);
- return map(allReversed, unquoteDashes).reverse();
- }
-
- var param, paramVal;
- for (i = 0; i < nPath; i++) {
- paramName = paramNames[i];
- param = this.params[paramName];
- paramVal = m[i+1];
- // if the param value matches a pre-replace pair, replace the value before decoding.
- for (j = 0; j < param.replace.length; j++) {
- if (param.replace[j].from === paramVal) paramVal = param.replace[j].to;
- }
- if (paramVal && param.array === true) paramVal = decodePathArray(paramVal);
- if (isDefined(paramVal)) paramVal = param.type.decode(paramVal);
- values[paramName] = param.value(paramVal);
- }
- for (/**/; i < nTotal; i++) {
- paramName = paramNames[i];
- values[paramName] = this.params[paramName].value(searchParams[paramName]);
- param = this.params[paramName];
- paramVal = searchParams[paramName];
- for (j = 0; j < param.replace.length; j++) {
- if (param.replace[j].from === paramVal) paramVal = param.replace[j].to;
- }
- if (isDefined(paramVal)) paramVal = param.type.decode(paramVal);
- values[paramName] = param.value(paramVal);
- }
-
- return values;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#parameters
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Returns the names of all path and search parameters of this pattern in an unspecified order.
- *
- * @returns {Array.<string>} An array of parameter names. Must be treated as read-only. If the
- * pattern has no parameters, an empty array is returned.
- */
-UrlMatcher.prototype.parameters = function (param) {
- if (!isDefined(param)) return this.$$paramNames;
- return this.params[param] || null;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#validates
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Checks an object hash of parameters to validate their correctness according to the parameter
- * types of this `UrlMatcher`.
- *
- * @param {Object} params The object hash of parameters to validate.
- * @returns {boolean} Returns `true` if `params` validates, otherwise `false`.
- */
-UrlMatcher.prototype.validates = function (params) {
- return this.params.$$validates(params);
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#format
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Creates a URL that matches this pattern by substituting the specified values
- * for the path and search parameters. Null values for path parameters are
- * treated as empty strings.
- *
- * @example
- * <pre>
- * new UrlMatcher('/user/{id}?q').format({ id:'bob', q:'yes' });
- * // returns '/user/bob?q=yes'
- * </pre>
- *
- * @param {Object} values the values to substitute for the parameters in this pattern.
- * @returns {string} the formatted URL (path and optionally search part).
- */
-UrlMatcher.prototype.format = function (values) {
- values = values || {};
- var segments = this.segments, params = this.parameters(), paramset = this.params;
- if (!this.validates(values)) return null;
-
- var i, search = false, nPath = segments.length - 1, nTotal = params.length, result = segments[0];
-
- function encodeDashes(str) { // Replace dashes with encoded "\-"
- return encodeURIComponent(str).replace(/-/g, function(c) { return '%5C%' + c.charCodeAt(0).toString(16).toUpperCase(); });
- }
-
- for (i = 0; i < nTotal; i++) {
- var isPathParam = i < nPath;
- var name = params[i], param = paramset[name], value = param.value(values[name]);
- var isDefaultValue = param.isOptional && param.type.equals(param.value(), value);
- var squash = isDefaultValue ? param.squash : false;
- var encoded = param.type.encode(value);
-
- if (isPathParam) {
- var nextSegment = segments[i + 1];
- var isFinalPathParam = i + 1 === nPath;
-
- if (squash === false) {
- if (encoded != null) {
- if (isArray(encoded)) {
- result += map(encoded, encodeDashes).join("-");
- } else {
- result += encodeURIComponent(encoded);
- }
- }
- result += nextSegment;
- } else if (squash === true) {
- var capture = result.match(/\/$/) ? /\/?(.*)/ : /(.*)/;
- result += nextSegment.match(capture)[1];
- } else if (isString(squash)) {
- result += squash + nextSegment;
- }
-
- if (isFinalPathParam && param.squash === true && result.slice(-1) === '/') result = result.slice(0, -1);
- } else {
- if (encoded == null || (isDefaultValue && squash !== false)) continue;
- if (!isArray(encoded)) encoded = [ encoded ];
- if (encoded.length === 0) continue;
- encoded = map(encoded, encodeURIComponent).join('&' + name + '=');
- result += (search ? '&' : '?') + (name + '=' + encoded);
- search = true;
- }
- }
-
- return result;
-};
-
-/**
- * @ngdoc object
- * @name ui.router.util.type:Type
- *
- * @description
- * Implements an interface to define custom parameter types that can be decoded from and encoded to
- * string parameters matched in a URL. Used by {@link ui.router.util.type:UrlMatcher `UrlMatcher`}
- * objects when matching or formatting URLs, or comparing or validating parameter values.
- *
- * See {@link ui.router.util.$urlMatcherFactory#methods_type `$urlMatcherFactory#type()`} for more
- * information on registering custom types.
- *
- * @param {Object} config A configuration object which contains the custom type definition. The object's
- * properties will override the default methods and/or pattern in `Type`'s public interface.
- * @example
- * <pre>
- * {
- * decode: function(val) { return parseInt(val, 10); },
- * encode: function(val) { return val && val.toString(); },
- * equals: function(a, b) { return this.is(a) && a === b; },
- * is: function(val) { return angular.isNumber(val) isFinite(val) && val % 1 === 0; },
- * pattern: /\d+/
- * }
- * </pre>
- *
- * @property {RegExp} pattern The regular expression pattern used to match values of this type when
- * coming from a substring of a URL.
- *
- * @returns {Object} Returns a new `Type` object.
- */
-function Type(config) {
- extend(this, config);
-}
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:Type#is
- * @methodOf ui.router.util.type:Type
- *
- * @description
- * Detects whether a value is of a particular type. Accepts a native (decoded) value
- * and determines whether it matches the current `Type` object.
- *
- * @param {*} val The value to check.
- * @param {string} key Optional. If the type check is happening in the context of a specific
- * {@link ui.router.util.type:UrlMatcher `UrlMatcher`} object, this is the name of the
- * parameter in which `val` is stored. Can be used for meta-programming of `Type` objects.
- * @returns {Boolean} Returns `true` if the value matches the type, otherwise `false`.
- */
-Type.prototype.is = function(val, key) {
- return true;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:Type#encode
- * @methodOf ui.router.util.type:Type
- *
- * @description
- * Encodes a custom/native type value to a string that can be embedded in a URL. Note that the
- * return value does *not* need to be URL-safe (i.e. passed through `encodeURIComponent()`), it
- * only needs to be a representation of `val` that has been coerced to a string.
- *
- * @param {*} val The value to encode.
- * @param {string} key The name of the parameter in which `val` is stored. Can be used for
- * meta-programming of `Type` objects.
- * @returns {string} Returns a string representation of `val` that can be encoded in a URL.
- */
-Type.prototype.encode = function(val, key) {
- return val;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:Type#decode
- * @methodOf ui.router.util.type:Type
- *
- * @description
- * Converts a parameter value (from URL string or transition param) to a custom/native value.
- *
- * @param {string} val The URL parameter value to decode.
- * @param {string} key The name of the parameter in which `val` is stored. Can be used for
- * meta-programming of `Type` objects.
- * @returns {*} Returns a custom representation of the URL parameter value.
- */
-Type.prototype.decode = function(val, key) {
- return val;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:Type#equals
- * @methodOf ui.router.util.type:Type
- *
- * @description
- * Determines whether two decoded values are equivalent.
- *
- * @param {*} a A value to compare against.
- * @param {*} b A value to compare against.
- * @returns {Boolean} Returns `true` if the values are equivalent/equal, otherwise `false`.
- */
-Type.prototype.equals = function(a, b) {
- return a == b;
-};
-
-Type.prototype.$subPattern = function() {
- var sub = this.pattern.toString();
- return sub.substr(1, sub.length - 2);
-};
-
-Type.prototype.pattern = /.*/;
-
-Type.prototype.toString = function() { return "{Type:" + this.name + "}"; };
-
-/** Given an encoded string, or a decoded object, returns a decoded object */
-Type.prototype.$normalize = function(val) {
- return this.is(val) ? val : this.decode(val);
-};
-
-/*
- * Wraps an existing custom Type as an array of Type, depending on 'mode'.
- * e.g.:
- * - urlmatcher pattern "/path?{queryParam[]:int}"
- * - url: "/path?queryParam=1&queryParam=2
- * - $stateParams.queryParam will be [1, 2]
- * if `mode` is "auto", then
- * - url: "/path?queryParam=1 will create $stateParams.queryParam: 1
- * - url: "/path?queryParam=1&queryParam=2 will create $stateParams.queryParam: [1, 2]
- */
-Type.prototype.$asArray = function(mode, isSearch) {
- if (!mode) return this;
- if (mode === "auto" && !isSearch) throw new Error("'auto' array mode is for query parameters only");
-
- function ArrayType(type, mode) {
- function bindTo(type, callbackName) {
- return function() {
- return type[callbackName].apply(type, arguments);
- };
- }
-
- // Wrap non-array value as array
- function arrayWrap(val) { return isArray(val) ? val : (isDefined(val) ? [ val ] : []); }
- // Unwrap array value for "auto" mode. Return undefined for empty array.
- function arrayUnwrap(val) {
- switch(val.length) {
- case 0: return undefined;
- case 1: return mode === "auto" ? val[0] : val;
- default: return val;
- }
- }
- function falsey(val) { return !val; }
-
- // Wraps type (.is/.encode/.decode) functions to operate on each value of an array
- function arrayHandler(callback, allTruthyMode) {
- return function handleArray(val) {
- if (isArray(val) && val.length === 0) return val;
- val = arrayWrap(val);
- var result = map(val, callback);
- if (allTruthyMode === true)
- return filter(result, falsey).length === 0;
- return arrayUnwrap(result);
- };
- }
-
- // Wraps type (.equals) functions to operate on each value of an array
- function arrayEqualsHandler(callback) {
- return function handleArray(val1, val2) {
- var left = arrayWrap(val1), right = arrayWrap(val2);
- if (left.length !== right.length) return false;
- for (var i = 0; i < left.length; i++) {
- if (!callback(left[i], right[i])) return false;
- }
- return true;
- };
- }
-
- this.encode = arrayHandler(bindTo(type, 'encode'));
- this.decode = arrayHandler(bindTo(type, 'decode'));
- this.is = arrayHandler(bindTo(type, 'is'), true);
- this.equals = arrayEqualsHandler(bindTo(type, 'equals'));
- this.pattern = type.pattern;
- this.$normalize = arrayHandler(bindTo(type, '$normalize'));
- this.name = type.name;
- this.$arrayMode = mode;
- }
-
- return new ArrayType(this, mode);
-};
-
-
-
-/**
- * @ngdoc object
- * @name ui.router.util.$urlMatcherFactory
- *
- * @description
- * Factory for {@link ui.router.util.type:UrlMatcher `UrlMatcher`} instances. The factory
- * is also available to providers under the name `$urlMatcherFactoryProvider`.
- */
-function $UrlMatcherFactory() {
- $$UMFP = this;
-
- var isCaseInsensitive = false, isStrictMode = true, defaultSquashPolicy = false;
-
- // Use tildes to pre-encode slashes.
- // If the slashes are simply URLEncoded, the browser can choose to pre-decode them,
- // and bidirectional encoding/decoding fails.
- // Tilde was chosen because it's not a RFC 3986 section 2.2 Reserved Character
- function valToString(val) { return val != null ? val.toString().replace(/~/g, "~~").replace(/\//g, "~2F") : val; }
- function valFromString(val) { return val != null ? val.toString().replace(/~2F/g, "/").replace(/~~/g, "~") : val; }
-
- var $types = {}, enqueue = true, typeQueue = [], injector, defaultTypes = {
- "string": {
- encode: valToString,
- decode: valFromString,
- // TODO: in 1.0, make string .is() return false if value is undefined/null by default.
- // In 0.2.x, string params are optional by default for backwards compat
- is: function(val) { return val == null || !isDefined(val) || typeof val === "string"; },
- pattern: /[^/]*/
- },
- "int": {
- encode: valToString,
- decode: function(val) { return parseInt(val, 10); },
- is: function(val) { return isDefined(val) && this.decode(val.toString()) === val; },
- pattern: /\d+/
- },
- "bool": {
- encode: function(val) { return val ? 1 : 0; },
- decode: function(val) { return parseInt(val, 10) !== 0; },
- is: function(val) { return val === true || val === false; },
- pattern: /0|1/
- },
- "date": {
- encode: function (val) {
- if (!this.is(val))
- return undefined;
- return [ val.getFullYear(),
- ('0' + (val.getMonth() + 1)).slice(-2),
- ('0' + val.getDate()).slice(-2)
- ].join("-");
- },
- decode: function (val) {
- if (this.is(val)) return val;
- var match = this.capture.exec(val);
- return match ? new Date(match[1], match[2] - 1, match[3]) : undefined;
- },
- is: function(val) { return val instanceof Date && !isNaN(val.valueOf()); },
- equals: function (a, b) { return this.is(a) && this.is(b) && a.toISOString() === b.toISOString(); },
- pattern: /[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,
- capture: /([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/
- },
- "json": {
- encode: angular.toJson,
- decode: angular.fromJson,
- is: angular.isObject,
- equals: angular.equals,
- pattern: /[^/]*/
- },
- "any": { // does not encode/decode
- encode: angular.identity,
- decode: angular.identity,
- equals: angular.equals,
- pattern: /.*/
- }
- };
-
- function getDefaultConfig() {
- return {
- strict: isStrictMode,
- caseInsensitive: isCaseInsensitive
- };
- }
-
- function isInjectable(value) {
- return (isFunction(value) || (isArray(value) && isFunction(value[value.length - 1])));
- }
-
- /**
- * [Internal] Get the default value of a parameter, which may be an injectable function.
- */
- $UrlMatcherFactory.$$getDefaultValue = function(config) {
- if (!isInjectable(config.value)) return config.value;
- if (!injector) throw new Error("Injectable functions cannot be called at configuration time");
- return injector.invoke(config.value);
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#caseInsensitive
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Defines whether URL matching should be case sensitive (the default behavior), or not.
- *
- * @param {boolean} value `false` to match URL in a case sensitive manner; otherwise `true`;
- * @returns {boolean} the current value of caseInsensitive
- */
- this.caseInsensitive = function(value) {
- if (isDefined(value))
- isCaseInsensitive = value;
- return isCaseInsensitive;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#strictMode
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Defines whether URLs should match trailing slashes, or not (the default behavior).
- *
- * @param {boolean=} value `false` to match trailing slashes in URLs, otherwise `true`.
- * @returns {boolean} the current value of strictMode
- */
- this.strictMode = function(value) {
- if (isDefined(value))
- isStrictMode = value;
- return isStrictMode;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#defaultSquashPolicy
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Sets the default behavior when generating or matching URLs with default parameter values.
- *
- * @param {string} value A string that defines the default parameter URL squashing behavior.
- * `nosquash`: When generating an href with a default parameter value, do not squash the parameter value from the URL
- * `slash`: When generating an href with a default parameter value, squash (remove) the parameter value, and, if the
- * parameter is surrounded by slashes, squash (remove) one slash from the URL
- * any other string, e.g. "~": When generating an href with a default parameter value, squash (remove)
- * the parameter value from the URL and replace it with this string.
- */
- this.defaultSquashPolicy = function(value) {
- if (!isDefined(value)) return defaultSquashPolicy;
- if (value !== true && value !== false && !isString(value))
- throw new Error("Invalid squash policy: " + value + ". Valid policies: false, true, arbitrary-string");
- defaultSquashPolicy = value;
- return value;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#compile
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Creates a {@link ui.router.util.type:UrlMatcher `UrlMatcher`} for the specified pattern.
- *
- * @param {string} pattern The URL pattern.
- * @param {Object} config The config object hash.
- * @returns {UrlMatcher} The UrlMatcher.
- */
- this.compile = function (pattern, config) {
- return new UrlMatcher(pattern, extend(getDefaultConfig(), config));
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#isMatcher
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Returns true if the specified object is a `UrlMatcher`, or false otherwise.
- *
- * @param {Object} object The object to perform the type check against.
- * @returns {Boolean} Returns `true` if the object matches the `UrlMatcher` interface, by
- * implementing all the same methods.
- */
- this.isMatcher = function (o) {
- if (!isObject(o)) return false;
- var result = true;
-
- forEach(UrlMatcher.prototype, function(val, name) {
- if (isFunction(val)) {
- result = result && (isDefined(o[name]) && isFunction(o[name]));
- }
- });
- return result;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#type
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Registers a custom {@link ui.router.util.type:Type `Type`} object that can be used to
- * generate URLs with typed parameters.
- *
- * @param {string} name The type name.
- * @param {Object|Function} definition The type definition. See
- * {@link ui.router.util.type:Type `Type`} for information on the values accepted.
- * @param {Object|Function} definitionFn (optional) A function that is injected before the app
- * runtime starts. The result of this function is merged into the existing `definition`.
- * See {@link ui.router.util.type:Type `Type`} for information on the values accepted.
- *
- * @returns {Object} Returns `$urlMatcherFactoryProvider`.
- *
- * @example
- * This is a simple example of a custom type that encodes and decodes items from an
- * array, using the array index as the URL-encoded value:
- *
- * <pre>
- * var list = ['John', 'Paul', 'George', 'Ringo'];
- *
- * $urlMatcherFactoryProvider.type('listItem', {
- * encode: function(item) {
- * // Represent the list item in the URL using its corresponding index
- * return list.indexOf(item);
- * },
- * decode: function(item) {
- * // Look up the list item by index
- * return list[parseInt(item, 10)];
- * },
- * is: function(item) {
- * // Ensure the item is valid by checking to see that it appears
- * // in the list
- * return list.indexOf(item) > -1;
- * }
- * });
- *
- * $stateProvider.state('list', {
- * url: "/list/{item:listItem}",
- * controller: function($scope, $stateParams) {
- * console.log($stateParams.item);
- * }
- * });
- *
- * // ...
- *
- * // Changes URL to '/list/3', logs "Ringo" to the console
- * $state.go('list', { item: "Ringo" });
- * </pre>
- *
- * This is a more complex example of a type that relies on dependency injection to
- * interact with services, and uses the parameter name from the URL to infer how to
- * handle encoding and decoding parameter values:
- *
- * <pre>
- * // Defines a custom type that gets a value from a service,
- * // where each service gets different types of values from
- * // a backend API:
- * $urlMatcherFactoryProvider.type('dbObject', {}, function(Users, Posts) {
- *
- * // Matches up services to URL parameter names
- * var services = {
- * user: Users,
- * post: Posts
- * };
- *
- * return {
- * encode: function(object) {
- * // Represent the object in the URL using its unique ID
- * return object.id;
- * },
- * decode: function(value, key) {
- * // Look up the object by ID, using the parameter
- * // name (key) to call the correct service
- * return services[key].findById(value);
- * },
- * is: function(object, key) {
- * // Check that object is a valid dbObject
- * return angular.isObject(object) && object.id && services[key];
- * }
- * equals: function(a, b) {
- * // Check the equality of decoded objects by comparing
- * // their unique IDs
- * return a.id === b.id;
- * }
- * };
- * });
- *
- * // In a config() block, you can then attach URLs with
- * // type-annotated parameters:
- * $stateProvider.state('users', {
- * url: "/users",
- * // ...
- * }).state('users.item', {
- * url: "/{user:dbObject}",
- * controller: function($scope, $stateParams) {
- * // $stateParams.user will now be an object returned from
- * // the Users service
- * },
- * // ...
- * });
- * </pre>
- */
- this.type = function (name, definition, definitionFn) {
- if (!isDefined(definition)) return $types[name];
- if ($types.hasOwnProperty(name)) throw new Error("A type named '" + name + "' has already been defined.");
-
- $types[name] = new Type(extend({ name: name }, definition));
- if (definitionFn) {
- typeQueue.push({ name: name, def: definitionFn });
- if (!enqueue) flushTypeQueue();
- }
- return this;
- };
-
- // `flushTypeQueue()` waits until `$urlMatcherFactory` is injected before invoking the queued `definitionFn`s
- function flushTypeQueue() {
- while(typeQueue.length) {
- var type = typeQueue.shift();
- if (type.pattern) throw new Error("You cannot override a type's .pattern at runtime.");
- angular.extend($types[type.name], injector.invoke(type.def));
- }
- }
-
- // Register default types. Store them in the prototype of $types.
- forEach(defaultTypes, function(type, name) { $types[name] = new Type(extend({name: name}, type)); });
- $types = inherit($types, {});
-
- /* No need to document $get, since it returns this */
- this.$get = ['$injector', function ($injector) {
- injector = $injector;
- enqueue = false;
- flushTypeQueue();
-
- forEach(defaultTypes, function(type, name) {
- if (!$types[name]) $types[name] = new Type(type);
- });
- return this;
- }];
-
- this.Param = function Param(id, type, config, location) {
- var self = this;
- config = unwrapShorthand(config);
- type = getType(config, type, location);
- var arrayMode = getArrayMode();
- type = arrayMode ? type.$asArray(arrayMode, location === "search") : type;
- if (type.name === "string" && !arrayMode && location === "path" && config.value === undefined)
- config.value = ""; // for 0.2.x; in 0.3.0+ do not automatically default to ""
- var isOptional = config.value !== undefined;
- var squash = getSquashPolicy(config, isOptional);
- var replace = getReplace(config, arrayMode, isOptional, squash);
-
- function unwrapShorthand(config) {
- var keys = isObject(config) ? objectKeys(config) : [];
- var isShorthand = indexOf(keys, "value") === -1 && indexOf(keys, "type") === -1 &&
- indexOf(keys, "squash") === -1 && indexOf(keys, "array") === -1;
- if (isShorthand) config = { value: config };
- config.$$fn = isInjectable(config.value) ? config.value : function () { return config.value; };
- return config;
- }
-
- function getType(config, urlType, location) {
- if (config.type && urlType) throw new Error("Param '"+id+"' has two type configurations.");
- if (urlType) return urlType;
- if (!config.type) return (location === "config" ? $types.any : $types.string);
-
- if (angular.isString(config.type))
- return $types[config.type];
- if (config.type instanceof Type)
- return config.type;
- return new Type(config.type);
- }
-
- // array config: param name (param[]) overrides default settings. explicit config overrides param name.
- function getArrayMode() {
- var arrayDefaults = { array: (location === "search" ? "auto" : false) };
- var arrayParamNomenclature = id.match(/\[\]$/) ? { array: true } : {};
- return extend(arrayDefaults, arrayParamNomenclature, config).array;
- }
-
- /**
- * returns false, true, or the squash value to indicate the "default parameter url squash policy".
- */
- function getSquashPolicy(config, isOptional) {
- var squash = config.squash;
- if (!isOptional || squash === false) return false;
- if (!isDefined(squash) || squash == null) return defaultSquashPolicy;
- if (squash === true || isString(squash)) return squash;
- throw new Error("Invalid squash policy: '" + squash + "'. Valid policies: false, true, or arbitrary string");
- }
-
- function getReplace(config, arrayMode, isOptional, squash) {
- var replace, configuredKeys, defaultPolicy = [
- { from: "", to: (isOptional || arrayMode ? undefined : "") },
- { from: null, to: (isOptional || arrayMode ? undefined : "") }
- ];
- replace = isArray(config.replace) ? config.replace : [];
- if (isString(squash))
- replace.push({ from: squash, to: undefined });
- configuredKeys = map(replace, function(item) { return item.from; } );
- return filter(defaultPolicy, function(item) { return indexOf(configuredKeys, item.from) === -1; }).concat(replace);
- }
-
- /**
- * [Internal] Get the default value of a parameter, which may be an injectable function.
- */
- function $$getDefaultValue() {
- if (!injector) throw new Error("Injectable functions cannot be called at configuration time");
- var defaultValue = injector.invoke(config.$$fn);
- if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))
- throw new Error("Default value (" + defaultValue + ") for parameter '" + self.id + "' is not an instance of Type (" + self.type.name + ")");
- return defaultValue;
- }
-
- /**
- * [Internal] Gets the decoded representation of a value if the value is defined, otherwise, returns the
- * default value, which may be the result of an injectable function.
- */
- function $value(value) {
- function hasReplaceVal(val) { return function(obj) { return obj.from === val; }; }
- function $replace(value) {
- var replacement = map(filter(self.replace, hasReplaceVal(value)), function(obj) { return obj.to; });
- return replacement.length ? replacement[0] : value;
- }
- value = $replace(value);
- return !isDefined(value) ? $$getDefaultValue() : self.type.$normalize(value);
- }
-
- function toString() { return "{Param:" + id + " " + type + " squash: '" + squash + "' optional: " + isOptional + "}"; }
-
- extend(this, {
- id: id,
- type: type,
- location: location,
- array: arrayMode,
- squash: squash,
- replace: replace,
- isOptional: isOptional,
- value: $value,
- dynamic: undefined,
- config: config,
- toString: toString
- });
- };
-
- function ParamSet(params) {
- extend(this, params || {});
- }
-
- ParamSet.prototype = {
- $$new: function() {
- return inherit(this, extend(new ParamSet(), { $$parent: this}));
- },
- $$keys: function () {
- var keys = [], chain = [], parent = this,
- ignore = objectKeys(ParamSet.prototype);
- while (parent) { chain.push(parent); parent = parent.$$parent; }
- chain.reverse();
- forEach(chain, function(paramset) {
- forEach(objectKeys(paramset), function(key) {
- if (indexOf(keys, key) === -1 && indexOf(ignore, key) === -1) keys.push(key);
- });
- });
- return keys;
- },
- $$values: function(paramValues) {
- var values = {}, self = this;
- forEach(self.$$keys(), function(key) {
- values[key] = self[key].value(paramValues && paramValues[key]);
- });
- return values;
- },
- $$equals: function(paramValues1, paramValues2) {
- var equal = true, self = this;
- forEach(self.$$keys(), function(key) {
- var left = paramValues1 && paramValues1[key], right = paramValues2 && paramValues2[key];
- if (!self[key].type.equals(left, right)) equal = false;
- });
- return equal;
- },
- $$validates: function $$validate(paramValues) {
- var keys = this.$$keys(), i, param, rawVal, normalized, encoded;
- for (i = 0; i < keys.length; i++) {
- param = this[keys[i]];
- rawVal = paramValues[keys[i]];
- if ((rawVal === undefined || rawVal === null) && param.isOptional)
- break; // There was no parameter value, but the param is optional
- normalized = param.type.$normalize(rawVal);
- if (!param.type.is(normalized))
- return false; // The value was not of the correct Type, and could not be decoded to the correct Type
- encoded = param.type.encode(normalized);
- if (angular.isString(encoded) && !param.type.pattern.exec(encoded))
- return false; // The value was of the correct type, but when encoded, did not match the Type's regexp
- }
- return true;
- },
- $$parent: undefined
- };
-
- this.ParamSet = ParamSet;
-}
-
-// Register as a provider so it's available to other providers
-angular.module('ui.router.util').provider('$urlMatcherFactory', $UrlMatcherFactory);
-angular.module('ui.router.util').run(['$urlMatcherFactory', function($urlMatcherFactory) { }]);
-
-/**
- * @ngdoc object
- * @name ui.router.router.$urlRouterProvider
- *
- * @requires ui.router.util.$urlMatcherFactoryProvider
- * @requires $locationProvider
- *
- * @description
- * `$urlRouterProvider` has the responsibility of watching `$location`.
- * When `$location` changes it runs through a list of rules one by one until a
- * match is found. `$urlRouterProvider` is used behind the scenes anytime you specify
- * a url in a state configuration. All urls are compiled into a UrlMatcher object.
- *
- * There are several methods on `$urlRouterProvider` that make it useful to use directly
- * in your module config.
- */
-$UrlRouterProvider.$inject = ['$locationProvider', '$urlMatcherFactoryProvider'];
-function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
- var rules = [], otherwise = null, interceptDeferred = false, listener;
-
- // Returns a string that is a prefix of all strings matching the RegExp
- function regExpPrefix(re) {
- var prefix = /^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(re.source);
- return (prefix != null) ? prefix[1].replace(/\\(.)/g, "$1") : '';
- }
-
- // Interpolates matched values into a String.replace()-style pattern
- function interpolate(pattern, match) {
- return pattern.replace(/\$(\$|\d{1,2})/, function (m, what) {
- return match[what === '$' ? 0 : Number(what)];
- });
- }
-
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouterProvider#rule
- * @methodOf ui.router.router.$urlRouterProvider
- *
- * @description
- * Defines rules that are used by `$urlRouterProvider` to find matches for
- * specific URLs.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router.router']);
- *
- * app.config(function ($urlRouterProvider) {
- * // Here's an example of how you might allow case insensitive urls
- * $urlRouterProvider.rule(function ($injector, $location) {
- * var path = $location.path(),
- * normalized = path.toLowerCase();
- *
- * if (path !== normalized) {
- * return normalized;
- * }
- * });
- * });
- * </pre>
- *
- * @param {function} rule Handler function that takes `$injector` and `$location`
- * services as arguments. You can use them to return a valid path as a string.
- *
- * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance
- */
- this.rule = function (rule) {
- if (!isFunction(rule)) throw new Error("'rule' must be a function");
- rules.push(rule);
- return this;
- };
-
- /**
- * @ngdoc object
- * @name ui.router.router.$urlRouterProvider#otherwise
- * @methodOf ui.router.router.$urlRouterProvider
- *
- * @description
- * Defines a path that is used when an invalid route is requested.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router.router']);
- *
- * app.config(function ($urlRouterProvider) {
- * // if the path doesn't match any of the urls you configured
- * // otherwise will take care of routing the user to the
- * // specified url
- * $urlRouterProvider.otherwise('/index');
- *
- * // Example of using function rule as param
- * $urlRouterProvider.otherwise(function ($injector, $location) {
- * return '/a/valid/url';
- * });
- * });
- * </pre>
- *
- * @param {string|function} rule The url path you want to redirect to or a function
- * rule that returns the url path. The function version is passed two params:
- * `$injector` and `$location` services, and must return a url string.
- *
- * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance
- */
- this.otherwise = function (rule) {
- if (isString(rule)) {
- var redirect = rule;
- rule = function () { return redirect; };
- }
- else if (!isFunction(rule)) throw new Error("'rule' must be a function");
- otherwise = rule;
- return this;
- };
-
-
- function handleIfMatch($injector, handler, match) {
- if (!match) return false;
- var result = $injector.invoke(handler, handler, { $match: match });
- return isDefined(result) ? result : true;
- }
-
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouterProvider#when
- * @methodOf ui.router.router.$urlRouterProvider
- *
- * @description
- * Registers a handler for a given url matching.
- *
- * If the handler is a string, it is
- * treated as a redirect, and is interpolated according to the syntax of match
- * (i.e. like `String.replace()` for `RegExp`, or like a `UrlMatcher` pattern otherwise).
- *
- * If the handler is a function, it is injectable. It gets invoked if `$location`
- * matches. You have the option of inject the match object as `$match`.
- *
- * The handler can return
- *
- * - **falsy** to indicate that the rule didn't match after all, then `$urlRouter`
- * will continue trying to find another one that matches.
- * - **string** which is treated as a redirect and passed to `$location.url()`
- * - **void** or any **truthy** value tells `$urlRouter` that the url was handled.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router.router']);
- *
- * app.config(function ($urlRouterProvider) {
- * $urlRouterProvider.when($state.url, function ($match, $stateParams) {
- * if ($state.$current.navigable !== state ||
- * !equalForKeys($match, $stateParams) {
- * $state.transitionTo(state, $match, false);
- * }
- * });
- * });
- * </pre>
- *
- * @param {string|object} what The incoming path that you want to redirect.
- * @param {string|function} handler The path you want to redirect your user to.
- */
- this.when = function (what, handler) {
- var redirect, handlerIsString = isString(handler);
- if (isString(what)) what = $urlMatcherFactory.compile(what);
-
- if (!handlerIsString && !isFunction(handler) && !isArray(handler))
- throw new Error("invalid 'handler' in when()");
-
- var strategies = {
- matcher: function (what, handler) {
- if (handlerIsString) {
- redirect = $urlMatcherFactory.compile(handler);
- handler = ['$match', function ($match) { return redirect.format($match); }];
- }
- return extend(function ($injector, $location) {
- return handleIfMatch($injector, handler, what.exec($location.path(), $location.search()));
- }, {
- prefix: isString(what.prefix) ? what.prefix : ''
- });
- },
- regex: function (what, handler) {
- if (what.global || what.sticky) throw new Error("when() RegExp must not be global or sticky");
-
- if (handlerIsString) {
- redirect = handler;
- handler = ['$match', function ($match) { return interpolate(redirect, $match); }];
- }
- return extend(function ($injector, $location) {
- return handleIfMatch($injector, handler, what.exec($location.path()));
- }, {
- prefix: regExpPrefix(what)
- });
- }
- };
-
- var check = { matcher: $urlMatcherFactory.isMatcher(what), regex: what instanceof RegExp };
-
- for (var n in check) {
- if (check[n]) return this.rule(strategies[n](what, handler));
- }
-
- throw new Error("invalid 'what' in when()");
- };
-
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouterProvider#deferIntercept
- * @methodOf ui.router.router.$urlRouterProvider
- *
- * @description
- * Disables (or enables) deferring location change interception.
- *
- * If you wish to customize the behavior of syncing the URL (for example, if you wish to
- * defer a transition but maintain the current URL), call this method at configuration time.
- * Then, at run time, call `$urlRouter.listen()` after you have configured your own
- * `$locationChangeSuccess` event handler.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router.router']);
- *
- * app.config(function ($urlRouterProvider) {
- *
- * // Prevent $urlRouter from automatically intercepting URL changes;
- * // this allows you to configure custom behavior in between
- * // location changes and route synchronization:
- * $urlRouterProvider.deferIntercept();
- *
- * }).run(function ($rootScope, $urlRouter, UserService) {
- *
- * $rootScope.$on('$locationChangeSuccess', function(e) {
- * // UserService is an example service for managing user state
- * if (UserService.isLoggedIn()) return;
- *
- * // Prevent $urlRouter's default handler from firing
- * e.preventDefault();
- *
- * UserService.handleLogin().then(function() {
- * // Once the user has logged in, sync the current URL
- * // to the router:
- * $urlRouter.sync();
- * });
- * });
- *
- * // Configures $urlRouter's listener *after* your custom listener
- * $urlRouter.listen();
- * });
- * </pre>
- *
- * @param {boolean} defer Indicates whether to defer location change interception. Passing
- no parameter is equivalent to `true`.
- */
- this.deferIntercept = function (defer) {
- if (defer === undefined) defer = true;
- interceptDeferred = defer;
- };
-
- /**
- * @ngdoc object
- * @name ui.router.router.$urlRouter
- *
- * @requires $location
- * @requires $rootScope
- * @requires $injector
- * @requires $browser
- *
- * @description
- *
- */
- this.$get = $get;
- $get.$inject = ['$location', '$rootScope', '$injector', '$browser', '$sniffer'];
- function $get( $location, $rootScope, $injector, $browser, $sniffer) {
-
- var baseHref = $browser.baseHref(), location = $location.url(), lastPushedUrl;
-
- function appendBasePath(url, isHtml5, absolute) {
- if (baseHref === '/') return url;
- if (isHtml5) return baseHref.slice(0, -1) + url;
- if (absolute) return baseHref.slice(1) + url;
- return url;
- }
-
- // TODO: Optimize groups of rules with non-empty prefix into some sort of decision tree
- function update(evt) {
- if (evt && evt.defaultPrevented) return;
- var ignoreUpdate = lastPushedUrl && $location.url() === lastPushedUrl;
- lastPushedUrl = undefined;
- // TODO: Re-implement this in 1.0 for https://github.com/angular-ui/ui-router/issues/1573
- //if (ignoreUpdate) return true;
-
- function check(rule) {
- var handled = rule($injector, $location);
-
- if (!handled) return false;
- if (isString(handled)) $location.replace().url(handled);
- return true;
- }
- var n = rules.length, i;
-
- for (i = 0; i < n; i++) {
- if (check(rules[i])) return;
- }
- // always check otherwise last to allow dynamic updates to the set of rules
- if (otherwise) check(otherwise);
- }
-
- function listen() {
- listener = listener || $rootScope.$on('$locationChangeSuccess', update);
- return listener;
- }
-
- if (!interceptDeferred) listen();
-
- return {
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouter#sync
- * @methodOf ui.router.router.$urlRouter
- *
- * @description
- * Triggers an update; the same update that happens when the address bar url changes, aka `$locationChangeSuccess`.
- * This method is useful when you need to use `preventDefault()` on the `$locationChangeSuccess` event,
- * perform some custom logic (route protection, auth, config, redirection, etc) and then finally proceed
- * with the transition by calling `$urlRouter.sync()`.
- *
- * @example
- * <pre>
- * angular.module('app', ['ui.router'])
- * .run(function($rootScope, $urlRouter) {
- * $rootScope.$on('$locationChangeSuccess', function(evt) {
- * // Halt state change from even starting
- * evt.preventDefault();
- * // Perform custom logic
- * var meetsRequirement = ...
- * // Continue with the update and state transition if logic allows
- * if (meetsRequirement) $urlRouter.sync();
- * });
- * });
- * </pre>
- */
- sync: function() {
- update();
- },
-
- listen: function() {
- return listen();
- },
-
- update: function(read) {
- if (read) {
- location = $location.url();
- return;
- }
- if ($location.url() === location) return;
-
- $location.url(location);
- $location.replace();
- },
-
- push: function(urlMatcher, params, options) {
- var url = urlMatcher.format(params || {});
-
- // Handle the special hash param, if needed
- if (url !== null && params && params['#']) {
- url += '#' + params['#'];
- }
-
- $location.url(url);
- lastPushedUrl = options && options.$$avoidResync ? $location.url() : undefined;
- if (options && options.replace) $location.replace();
- },
-
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouter#href
- * @methodOf ui.router.router.$urlRouter
- *
- * @description
- * A URL generation method that returns the compiled URL for a given
- * {@link ui.router.util.type:UrlMatcher `UrlMatcher`}, populated with the provided parameters.
- *
- * @example
- * <pre>
- * $bob = $urlRouter.href(new UrlMatcher("/about/:person"), {
- * person: "bob"
- * });
- * // $bob == "/about/bob";
- * </pre>
- *
- * @param {UrlMatcher} urlMatcher The `UrlMatcher` object which is used as the template of the URL to generate.
- * @param {object=} params An object of parameter values to fill the matcher's required parameters.
- * @param {object=} options Options object. The options are:
- *
- * - **`absolute`** - {boolean=false}, If true will generate an absolute url, e.g. "http://www.example.com/fullurl".
- *
- * @returns {string} Returns the fully compiled URL, or `null` if `params` fail validation against `urlMatcher`
- */
- href: function(urlMatcher, params, options) {
- if (!urlMatcher.validates(params)) return null;
-
- var isHtml5 = $locationProvider.html5Mode();
- if (angular.isObject(isHtml5)) {
- isHtml5 = isHtml5.enabled;
- }
-
- isHtml5 = isHtml5 && $sniffer.history;
-
- var url = urlMatcher.format(params);
- options = options || {};
-
- if (!isHtml5 && url !== null) {
- url = "#" + $locationProvider.hashPrefix() + url;
- }
-
- // Handle special hash param, if needed
- if (url !== null && params && params['#']) {
- url += '#' + params['#'];
- }
-
- url = appendBasePath(url, isHtml5, options.absolute);
-
- if (!options.absolute || !url) {
- return url;
- }
-
- var slash = (!isHtml5 && url ? '/' : ''), port = $location.port();
- port = (port === 80 || port === 443 ? '' : ':' + port);
-
- return [$location.protocol(), '://', $location.host(), port, slash, url].join('');
- }
- };
- }
-}
-
-angular.module('ui.router.router').provider('$urlRouter', $UrlRouterProvider);
-
-/**
- * @ngdoc object
- * @name ui.router.state.$stateProvider
- *
- * @requires ui.router.router.$urlRouterProvider
- * @requires ui.router.util.$urlMatcherFactoryProvider
- *
- * @description
- * The new `$stateProvider` works similar to Angular's v1 router, but it focuses purely
- * on state.
- *
- * A state corresponds to a "place" in the application in terms of the overall UI and
- * navigation. A state describes (via the controller / template / view properties) what
- * the UI looks like and does at that place.
- *
- * States often have things in common, and the primary way of factoring out these
- * commonalities in this model is via the state hierarchy, i.e. parent/child states aka
- * nested states.
- *
- * The `$stateProvider` provides interfaces to declare these states for your app.
- */
-$StateProvider.$inject = ['$urlRouterProvider', '$urlMatcherFactoryProvider'];
-function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
-
- var root, states = {}, $state, queue = {}, abstractKey = 'abstract';
-
- // Builds state properties from definition passed to registerState()
- var stateBuilder = {
-
- // Derive parent state from a hierarchical name only if 'parent' is not explicitly defined.
- // state.children = [];
- // if (parent) parent.children.push(state);
- parent: function(state) {
- if (isDefined(state.parent) && state.parent) return findState(state.parent);
- // regex matches any valid composite state name
- // would match "contact.list" but not "contacts"
- var compositeName = /^(.+)\.[^.]+$/.exec(state.name);
- return compositeName ? findState(compositeName[1]) : root;
- },
-
- // inherit 'data' from parent and override by own values (if any)
- data: function(state) {
- if (state.parent && state.parent.data) {
- state.data = state.self.data = inherit(state.parent.data, state.data);
- }
- return state.data;
- },
-
- // Build a URLMatcher if necessary, either via a relative or absolute URL
- url: function(state) {
- var url = state.url, config = { params: state.params || {} };
-
- if (isString(url)) {
- if (url.charAt(0) == '^') return $urlMatcherFactory.compile(url.substring(1), config);
- return (state.parent.navigable || root).url.concat(url, config);
- }
-
- if (!url || $urlMatcherFactory.isMatcher(url)) return url;
- throw new Error("Invalid url '" + url + "' in state '" + state + "'");
- },
-
- // Keep track of the closest ancestor state that has a URL (i.e. is navigable)
- navigable: function(state) {
- return state.url ? state : (state.parent ? state.parent.navigable : null);
- },
-
- // Own parameters for this state. state.url.params is already built at this point. Create and add non-url params
- ownParams: function(state) {
- var params = state.url && state.url.params || new $$UMFP.ParamSet();
- forEach(state.params || {}, function(config, id) {
- if (!params[id]) params[id] = new $$UMFP.Param(id, null, config, "config");
- });
- return params;
- },
-
- // Derive parameters for this state and ensure they're a super-set of parent's parameters
- params: function(state) {
- var ownParams = pick(state.ownParams, state.ownParams.$$keys());
- return state.parent && state.parent.params ? extend(state.parent.params.$$new(), ownParams) : new $$UMFP.ParamSet();
- },
-
- // If there is no explicit multi-view configuration, make one up so we don't have
- // to handle both cases in the view directive later. Note that having an explicit
- // 'views' property will mean the default unnamed view properties are ignored. This
- // is also a good time to resolve view names to absolute names, so everything is a
- // straight lookup at link time.
- views: function(state) {
- var views = {};
-
- forEach(isDefined(state.views) ? state.views : { '': state }, function (view, name) {
- if (name.indexOf('@') < 0) name += '@' + state.parent.name;
- views[name] = view;
- });
- return views;
- },
-
- // Keep a full path from the root down to this state as this is needed for state activation.
- path: function(state) {
- return state.parent ? state.parent.path.concat(state) : []; // exclude root from path
- },
-
- // Speed up $state.contains() as it's used a lot
- includes: function(state) {
- var includes = state.parent ? extend({}, state.parent.includes) : {};
- includes[state.name] = true;
- return includes;
- },
-
- $delegates: {}
- };
-
- function isRelative(stateName) {
- return stateName.indexOf(".") === 0 || stateName.indexOf("^") === 0;
- }
-
- function findState(stateOrName, base) {
- if (!stateOrName) return undefined;
-
- var isStr = isString(stateOrName),
- name = isStr ? stateOrName : stateOrName.name,
- path = isRelative(name);
-
- if (path) {
- if (!base) throw new Error("No reference point given for path '" + name + "'");
- base = findState(base);
-
- var rel = name.split("."), i = 0, pathLength = rel.length, current = base;
-
- for (; i < pathLength; i++) {
- if (rel[i] === "" && i === 0) {
- current = base;
- continue;
- }
- if (rel[i] === "^") {
- if (!current.parent) throw new Error("Path '" + name + "' not valid for state '" + base.name + "'");
- current = current.parent;
- continue;
- }
- break;
- }
- rel = rel.slice(i).join(".");
- name = current.name + (current.name && rel ? "." : "") + rel;
- }
- var state = states[name];
-
- if (state && (isStr || (!isStr && (state === stateOrName || state.self === stateOrName)))) {
- return state;
- }
- return undefined;
- }
-
- function queueState(parentName, state) {
- if (!queue[parentName]) {
- queue[parentName] = [];
- }
- queue[parentName].push(state);
- }
-
- function flushQueuedChildren(parentName) {
- var queued = queue[parentName] || [];
- while(queued.length) {
- registerState(queued.shift());
- }
- }
-
- function registerState(state) {
- // Wrap a new object around the state so we can store our private details easily.
- state = inherit(state, {
- self: state,
- resolve: state.resolve || {},
- toString: function() { return this.name; }
- });
-
- var name = state.name;
- if (!isString(name) || name.indexOf('@') >= 0) throw new Error("State must have a valid name");
- if (states.hasOwnProperty(name)) throw new Error("State '" + name + "' is already defined");
-
- // Get parent name
- var parentName = (name.indexOf('.') !== -1) ? name.substring(0, name.lastIndexOf('.'))
- : (isString(state.parent)) ? state.parent
- : (isObject(state.parent) && isString(state.parent.name)) ? state.parent.name
- : '';
-
- // If parent is not registered yet, add state to queue and register later
- if (parentName && !states[parentName]) {
- return queueState(parentName, state.self);
- }
-
- for (var key in stateBuilder) {
- if (isFunction(stateBuilder[key])) state[key] = stateBuilder[key](state, stateBuilder.$delegates[key]);
- }
- states[name] = state;
-
- // Register the state in the global state list and with $urlRouter if necessary.
- if (!state[abstractKey] && state.url) {
- $urlRouterProvider.when(state.url, ['$match', '$stateParams', function ($match, $stateParams) {
- if ($state.$current.navigable != state || !equalForKeys($match, $stateParams)) {
- $state.transitionTo(state, $match, { inherit: true, location: false });
- }
- }]);
- }
-
- // Register any queued children
- flushQueuedChildren(name);
-
- return state;
- }
-
- // Checks text to see if it looks like a glob.
- function isGlob (text) {
- return text.indexOf('*') > -1;
- }
-
- // Returns true if glob matches current $state name.
- function doesStateMatchGlob (glob) {
- var globSegments = glob.split('.'),
- segments = $state.$current.name.split('.');
-
- //match single stars
- for (var i = 0, l = globSegments.length; i < l; i++) {
- if (globSegments[i] === '*') {
- segments[i] = '*';
- }
- }
-
- //match greedy starts
- if (globSegments[0] === '**') {
- segments = segments.slice(indexOf(segments, globSegments[1]));
- segments.unshift('**');
- }
- //match greedy ends
- if (globSegments[globSegments.length - 1] === '**') {
- segments.splice(indexOf(segments, globSegments[globSegments.length - 2]) + 1, Number.MAX_VALUE);
- segments.push('**');
- }
-
- if (globSegments.length != segments.length) {
- return false;
- }
-
- return segments.join('') === globSegments.join('');
- }
-
-
- // Implicit root state that is always active
- root = registerState({
- name: '',
- url: '^',
- views: null,
- 'abstract': true
- });
- root.navigable = null;
-
-
- /**
- * @ngdoc function
- * @name ui.router.state.$stateProvider#decorator
- * @methodOf ui.router.state.$stateProvider
- *
- * @description
- * Allows you to extend (carefully) or override (at your own peril) the
- * `stateBuilder` object used internally by `$stateProvider`. This can be used
- * to add custom functionality to ui-router, for example inferring templateUrl
- * based on the state name.
- *
- * When passing only a name, it returns the current (original or decorated) builder
- * function that matches `name`.
- *
- * The builder functions that can be decorated are listed below. Though not all
- * necessarily have a good use case for decoration, that is up to you to decide.
- *
- * In addition, users can attach custom decorators, which will generate new
- * properties within the state's internal definition. There is currently no clear
- * use-case for this beyond accessing internal states (i.e. $state.$current),
- * however, expect this to become increasingly relevant as we introduce additional
- * meta-programming features.
- *
- * **Warning**: Decorators should not be interdependent because the order of
- * execution of the builder functions in non-deterministic. Builder functions
- * should only be dependent on the state definition object and super function.
- *
- *
- * Existing builder functions and current return values:
- *
- * - **parent** `{object}` - returns the parent state object.
- * - **data** `{object}` - returns state data, including any inherited data that is not
- * overridden by own values (if any).
- * - **url** `{object}` - returns a {@link ui.router.util.type:UrlMatcher UrlMatcher}
- * or `null`.
- * - **navigable** `{object}` - returns closest ancestor state that has a URL (aka is
- * navigable).
- * - **params** `{object}` - returns an array of state params that are ensured to
- * be a super-set of parent's params.
- * - **views** `{object}` - returns a views object where each key is an absolute view
- * name (i.e. "viewName@stateName") and each value is the config object
- * (template, controller) for the view. Even when you don't use the views object
- * explicitly on a state config, one is still created for you internally.
- * So by decorating this builder function you have access to decorating template
- * and controller properties.
- * - **ownParams** `{object}` - returns an array of params that belong to the state,
- * not including any params defined by ancestor states.
- * - **path** `{string}` - returns the full path from the root down to this state.
- * Needed for state activation.
- * - **includes** `{object}` - returns an object that includes every state that
- * would pass a `$state.includes()` test.
- *
- * @example
- * <pre>
- * // Override the internal 'views' builder with a function that takes the state
- * // definition, and a reference to the internal function being overridden:
- * $stateProvider.decorator('views', function (state, parent) {
- * var result = {},
- * views = parent(state);
- *
- * angular.forEach(views, function (config, name) {
- * var autoName = (state.name + '.' + name).replace('.', '/');
- * config.templateUrl = config.templateUrl || '/partials/' + autoName + '.html';
- * result[name] = config;
- * });
- * return result;
- * });
- *
- * $stateProvider.state('home', {
- * views: {
- * 'contact.list': { controller: 'ListController' },
- * 'contact.item': { controller: 'ItemController' }
- * }
- * });
- *
- * // ...
- *
- * $state.go('home');
- * // Auto-populates list and item views with /partials/home/contact/list.html,
- * // and /partials/home/contact/item.html, respectively.
- * </pre>
- *
- * @param {string} name The name of the builder function to decorate.
- * @param {object} func A function that is responsible for decorating the original
- * builder function. The function receives two parameters:
- *
- * - `{object}` - state - The state config object.
- * - `{object}` - super - The original builder function.
- *
- * @return {object} $stateProvider - $stateProvider instance
- */
- this.decorator = decorator;
- function decorator(name, func) {
- /*jshint validthis: true */
- if (isString(name) && !isDefined(func)) {
- return stateBuilder[name];
- }
- if (!isFunction(func) || !isString(name)) {
- return this;
- }
- if (stateBuilder[name] && !stateBuilder.$delegates[name]) {
- stateBuilder.$delegates[name] = stateBuilder[name];
- }
- stateBuilder[name] = func;
- return this;
- }
-
- /**
- * @ngdoc function
- * @name ui.router.state.$stateProvider#state
- * @methodOf ui.router.state.$stateProvider
- *
- * @description
- * Registers a state configuration under a given state name. The stateConfig object
- * has the following acceptable properties.
- *
- * @param {string} name A unique state name, e.g. "home", "about", "contacts".
- * To create a parent/child state use a dot, e.g. "about.sales", "home.newest".
- * @param {object} stateConfig State configuration object.
- * @param {string|function=} stateConfig.template
- * <a id='template'></a>
- * html template as a string or a function that returns
- * an html template as a string which should be used by the uiView directives. This property
- * takes precedence over templateUrl.
- *
- * If `template` is a function, it will be called with the following parameters:
- *
- * - {array.&lt;object&gt;} - state parameters extracted from the current $location.path() by
- * applying the current state
- *
- * <pre>template:
- * "<h1>inline template definition</h1>" +
- * "<div ui-view></div>"</pre>
- * <pre>template: function(params) {
- * return "<h1>generated template</h1>"; }</pre>
- * </div>
- *
- * @param {string|function=} stateConfig.templateUrl
- * <a id='templateUrl'></a>
- *
- * path or function that returns a path to an html
- * template that should be used by uiView.
- *
- * If `templateUrl` is a function, it will be called with the following parameters:
- *
- * - {array.&lt;object&gt;} - state parameters extracted from the current $location.path() by
- * applying the current state
- *
- * <pre>templateUrl: "home.html"</pre>
- * <pre>templateUrl: function(params) {
- * return myTemplates[params.pageId]; }</pre>
- *
- * @param {function=} stateConfig.templateProvider
- * <a id='templateProvider'></a>
- * Provider function that returns HTML content string.
- * <pre> templateProvider:
- * function(MyTemplateService, params) {
- * return MyTemplateService.getTemplate(params.pageId);
- * }</pre>
- *
- * @param {string|function=} stateConfig.controller
- * <a id='controller'></a>
- *
- * Controller fn that should be associated with newly
- * related scope or the name of a registered controller if passed as a string.
- * Optionally, the ControllerAs may be declared here.
- * <pre>controller: "MyRegisteredController"</pre>
- * <pre>controller:
- * "MyRegisteredController as fooCtrl"}</pre>
- * <pre>controller: function($scope, MyService) {
- * $scope.data = MyService.getData(); }</pre>
- *
- * @param {function=} stateConfig.controllerProvider
- * <a id='controllerProvider'></a>
- *
- * Injectable provider function that returns the actual controller or string.
- * <pre>controllerProvider:
- * function(MyResolveData) {
- * if (MyResolveData.foo)
- * return "FooCtrl"
- * else if (MyResolveData.bar)
- * return "BarCtrl";
- * else return function($scope) {
- * $scope.baz = "Qux";
- * }
- * }</pre>
- *
- * @param {string=} stateConfig.controllerAs
- * <a id='controllerAs'></a>
- *
- * A controller alias name. If present the controller will be
- * published to scope under the controllerAs name.
- * <pre>controllerAs: "myCtrl"</pre>
- *
- * @param {string|object=} stateConfig.parent
- * <a id='parent'></a>
- * Optionally specifies the parent state of this state.
- *
- * <pre>parent: 'parentState'</pre>
- * <pre>parent: parentState // JS variable</pre>
- *
- * @param {object=} stateConfig.resolve
- * <a id='resolve'></a>
- *
- * An optional map&lt;string, function&gt; of dependencies which
- * should be injected into the controller. If any of these dependencies are promises,
- * the router will wait for them all to be resolved before the controller is instantiated.
- * If all the promises are resolved successfully, the $stateChangeSuccess event is fired
- * and the values of the resolved promises are injected into any controllers that reference them.
- * If any of the promises are rejected the $stateChangeError event is fired.
- *
- * The map object is:
- *
- * - key - {string}: name of dependency to be injected into controller
- * - factory - {string|function}: If string then it is alias for service. Otherwise if function,
- * it is injected and return value it treated as dependency. If result is a promise, it is
- * resolved before its value is injected into controller.
- *
- * <pre>resolve: {
- * myResolve1:
- * function($http, $stateParams) {
- * return $http.get("/api/foos/"+stateParams.fooID);
- * }
- * }</pre>
- *
- * @param {string=} stateConfig.url
- * <a id='url'></a>
- *
- * A url fragment with optional parameters. When a state is navigated or
- * transitioned to, the `$stateParams` service will be populated with any
- * parameters that were passed.
- *
- * (See {@link ui.router.util.type:UrlMatcher UrlMatcher} `UrlMatcher`} for
- * more details on acceptable patterns )
- *
- * examples:
- * <pre>url: "/home"
- * url: "/users/:userid"
- * url: "/books/{bookid:[a-zA-Z_-]}"
- * url: "/books/{categoryid:int}"
- * url: "/books/{publishername:string}/{categoryid:int}"
- * url: "/messages?before&after"
- * url: "/messages?{before:date}&{after:date}"
- * url: "/messages/:mailboxid?{before:date}&{after:date}"
- * </pre>
- *
- * @param {object=} stateConfig.views
- * <a id='views'></a>
- * an optional map&lt;string, object&gt; which defined multiple views, or targets views
- * manually/explicitly.
- *
- * Examples:
- *
- * Targets three named `ui-view`s in the parent state's template
- * <pre>views: {
- * header: {
- * controller: "headerCtrl",
- * templateUrl: "header.html"
- * }, body: {
- * controller: "bodyCtrl",
- * templateUrl: "body.html"
- * }, footer: {
- * controller: "footCtrl",
- * templateUrl: "footer.html"
- * }
- * }</pre>
- *
- * Targets named `ui-view="header"` from grandparent state 'top''s template, and named `ui-view="body" from parent state's template.
- * <pre>views: {
- * 'header@top': {
- * controller: "msgHeaderCtrl",
- * templateUrl: "msgHeader.html"
- * }, 'body': {
- * controller: "messagesCtrl",
- * templateUrl: "messages.html"
- * }
- * }</pre>
- *
- * @param {boolean=} [stateConfig.abstract=false]
- * <a id='abstract'></a>
- * An abstract state will never be directly activated,
- * but can provide inherited properties to its common children states.
- * <pre>abstract: true</pre>
- *
- * @param {function=} stateConfig.onEnter
- * <a id='onEnter'></a>
- *
- * Callback function for when a state is entered. Good way
- * to trigger an action or dispatch an event, such as opening a dialog.
- * If minifying your scripts, make sure to explicitly annotate this function,
- * because it won't be automatically annotated by your build tools.
- *
- * <pre>onEnter: function(MyService, $stateParams) {
- * MyService.foo($stateParams.myParam);
- * }</pre>
- *
- * @param {function=} stateConfig.onExit
- * <a id='onExit'></a>
- *
- * Callback function for when a state is exited. Good way to
- * trigger an action or dispatch an event, such as opening a dialog.
- * If minifying your scripts, make sure to explicitly annotate this function,
- * because it won't be automatically annotated by your build tools.
- *
- * <pre>onExit: function(MyService, $stateParams) {
- * MyService.cleanup($stateParams.myParam);
- * }</pre>
- *
- * @param {boolean=} [stateConfig.reloadOnSearch=true]
- * <a id='reloadOnSearch'></a>
- *
- * If `false`, will not retrigger the same state
- * just because a search/query parameter has changed (via $location.search() or $location.hash()).
- * Useful for when you'd like to modify $location.search() without triggering a reload.
- * <pre>reloadOnSearch: false</pre>
- *
- * @param {object=} stateConfig.data
- * <a id='data'></a>
- *
- * Arbitrary data object, useful for custom configuration. The parent state's `data` is
- * prototypally inherited. In other words, adding a data property to a state adds it to
- * the entire subtree via prototypal inheritance.
- *
- * <pre>data: {
- * requiredRole: 'foo'
- * } </pre>
- *
- * @param {object=} stateConfig.params
- * <a id='params'></a>
- *
- * A map which optionally configures parameters declared in the `url`, or
- * defines additional non-url parameters. For each parameter being
- * configured, add a configuration object keyed to the name of the parameter.
- *
- * Each parameter configuration object may contain the following properties:
- *
- * - ** value ** - {object|function=}: specifies the default value for this
- * parameter. This implicitly sets this parameter as optional.
- *
- * When UI-Router routes to a state and no value is
- * specified for this parameter in the URL or transition, the
- * default value will be used instead. If `value` is a function,
- * it will be injected and invoked, and the return value used.
- *
- * *Note*: `undefined` is treated as "no default value" while `null`
- * is treated as "the default value is `null`".
- *
- * *Shorthand*: If you only need to configure the default value of the
- * parameter, you may use a shorthand syntax. In the **`params`**
- * map, instead mapping the param name to a full parameter configuration
- * object, simply set map it to the default parameter value, e.g.:
- *
- * <pre>// define a parameter's default value
- * params: {
- * param1: { value: "defaultValue" }
- * }
- * // shorthand default values
- * params: {
- * param1: "defaultValue",
- * param2: "param2Default"
- * }</pre>
- *
- * - ** array ** - {boolean=}: *(default: false)* If true, the param value will be
- * treated as an array of values. If you specified a Type, the value will be
- * treated as an array of the specified Type. Note: query parameter values
- * default to a special `"auto"` mode.
- *
- * For query parameters in `"auto"` mode, if multiple values for a single parameter
- * are present in the URL (e.g.: `/foo?bar=1&bar=2&bar=3`) then the values
- * are mapped to an array (e.g.: `{ foo: [ '1', '2', '3' ] }`). However, if
- * only one value is present (e.g.: `/foo?bar=1`) then the value is treated as single
- * value (e.g.: `{ foo: '1' }`).
- *
- * <pre>params: {
- * param1: { array: true }
- * }</pre>
- *
- * - ** squash ** - {bool|string=}: `squash` configures how a default parameter value is represented in the URL when
- * the current parameter value is the same as the default value. If `squash` is not set, it uses the
- * configured default squash policy.
- * (See {@link ui.router.util.$urlMatcherFactory#methods_defaultSquashPolicy `defaultSquashPolicy()`})
- *
- * There are three squash settings:
- *
- * - false: The parameter's default value is not squashed. It is encoded and included in the URL
- * - true: The parameter's default value is omitted from the URL. If the parameter is preceeded and followed
- * by slashes in the state's `url` declaration, then one of those slashes are omitted.
- * This can allow for cleaner looking URLs.
- * - `"<arbitrary string>"`: The parameter's default value is replaced with an arbitrary placeholder of your choice.
- *
- * <pre>params: {
- * param1: {
- * value: "defaultId",
- * squash: true
- * } }
- * // squash "defaultValue" to "~"
- * params: {
- * param1: {
- * value: "defaultValue",
- * squash: "~"
- * } }
- * </pre>
- *
- *
- * @example
- * <pre>
- * // Some state name examples
- *
- * // stateName can be a single top-level name (must be unique).
- * $stateProvider.state("home", {});
- *
- * // Or it can be a nested state name. This state is a child of the
- * // above "home" state.
- * $stateProvider.state("home.newest", {});
- *
- * // Nest states as deeply as needed.
- * $stateProvider.state("home.newest.abc.xyz.inception", {});
- *
- * // state() returns $stateProvider, so you can chain state declarations.
- * $stateProvider
- * .state("home", {})
- * .state("about", {})
- * .state("contacts", {});
- * </pre>
- *
- */
- this.state = state;
- function state(name, definition) {
- /*jshint validthis: true */
- if (isObject(name)) definition = name;
- else definition.name = name;
- registerState(definition);
- return this;
- }
-
- /**
- * @ngdoc object
- * @name ui.router.state.$state
- *
- * @requires $rootScope
- * @requires $q
- * @requires ui.router.state.$view
- * @requires $injector
- * @requires ui.router.util.$resolve
- * @requires ui.router.state.$stateParams
- * @requires ui.router.router.$urlRouter
- *
- * @property {object} params A param object, e.g. {sectionId: section.id)}, that
- * you'd like to test against the current active state.
- * @property {object} current A reference to the state's config object. However
- * you passed it in. Useful for accessing custom data.
- * @property {object} transition Currently pending transition. A promise that'll
- * resolve or reject.
- *
- * @description
- * `$state` service is responsible for representing states as well as transitioning
- * between them. It also provides interfaces to ask for current state or even states
- * you're coming from.
- */
- this.$get = $get;
- $get.$inject = ['$rootScope', '$q', '$view', '$injector', '$resolve', '$stateParams', '$urlRouter', '$location', '$urlMatcherFactory'];
- function $get( $rootScope, $q, $view, $injector, $resolve, $stateParams, $urlRouter, $location, $urlMatcherFactory) {
-
- var TransitionSuperseded = $q.reject(new Error('transition superseded'));
- var TransitionPrevented = $q.reject(new Error('transition prevented'));
- var TransitionAborted = $q.reject(new Error('transition aborted'));
- var TransitionFailed = $q.reject(new Error('transition failed'));
-
- // Handles the case where a state which is the target of a transition is not found, and the user
- // can optionally retry or defer the transition
- function handleRedirect(redirect, state, params, options) {
- /**
- * @ngdoc event
- * @name ui.router.state.$state#$stateNotFound
- * @eventOf ui.router.state.$state
- * @eventType broadcast on root scope
- * @description
- * Fired when a requested state **cannot be found** using the provided state name during transition.
- * The event is broadcast allowing any handlers a single chance to deal with the error (usually by
- * lazy-loading the unfound state). A special `unfoundState` object is passed to the listener handler,
- * you can see its three properties in the example. You can use `event.preventDefault()` to abort the
- * transition and the promise returned from `go` will be rejected with a `'transition aborted'` value.
- *
- * @param {Object} event Event object.
- * @param {Object} unfoundState Unfound State information. Contains: `to, toParams, options` properties.
- * @param {State} fromState Current state object.
- * @param {Object} fromParams Current state params.
- *
- * @example
- *
- * <pre>
- * // somewhere, assume lazy.state has not been defined
- * $state.go("lazy.state", {a:1, b:2}, {inherit:false});
- *
- * // somewhere else
- * $scope.$on('$stateNotFound',
- * function(event, unfoundState, fromState, fromParams){
- * console.log(unfoundState.to); // "lazy.state"
- * console.log(unfoundState.toParams); // {a:1, b:2}
- * console.log(unfoundState.options); // {inherit:false} + default options
- * })
- * </pre>
- */
- var evt = $rootScope.$broadcast('$stateNotFound', redirect, state, params);
-
- if (evt.defaultPrevented) {
- $urlRouter.update();
- return TransitionAborted;
- }
-
- if (!evt.retry) {
- return null;
- }
-
- // Allow the handler to return a promise to defer state lookup retry
- if (options.$retry) {
- $urlRouter.update();
- return TransitionFailed;
- }
- var retryTransition = $state.transition = $q.when(evt.retry);
-
- retryTransition.then(function() {
- if (retryTransition !== $state.transition) return TransitionSuperseded;
- redirect.options.$retry = true;
- return $state.transitionTo(redirect.to, redirect.toParams, redirect.options);
- }, function() {
- return TransitionAborted;
- });
- $urlRouter.update();
-
- return retryTransition;
- }
-
- root.locals = { resolve: null, globals: { $stateParams: {} } };
-
- $state = {
- params: {},
- current: root.self,
- $current: root,
- transition: null
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#reload
- * @methodOf ui.router.state.$state
- *
- * @description
- * A method that force reloads the current state. All resolves are re-resolved,
- * controllers reinstantiated, and events re-fired.
- *
- * @example
- * <pre>
- * var app angular.module('app', ['ui.router']);
- *
- * app.controller('ctrl', function ($scope, $state) {
- * $scope.reload = function(){
- * $state.reload();
- * }
- * });
- * </pre>
- *
- * `reload()` is just an alias for:
- * <pre>
- * $state.transitionTo($state.current, $stateParams, {
- * reload: true, inherit: false, notify: true
- * });
- * </pre>
- *
- * @param {string=|object=} state - A state name or a state object, which is the root of the resolves to be re-resolved.
- * @example
- * <pre>
- * //assuming app application consists of 3 states: 'contacts', 'contacts.detail', 'contacts.detail.item'
- * //and current state is 'contacts.detail.item'
- * var app angular.module('app', ['ui.router']);
- *
- * app.controller('ctrl', function ($scope, $state) {
- * $scope.reload = function(){
- * //will reload 'contact.detail' and 'contact.detail.item' states
- * $state.reload('contact.detail');
- * }
- * });
- * </pre>
- *
- * `reload()` is just an alias for:
- * <pre>
- * $state.transitionTo($state.current, $stateParams, {
- * reload: true, inherit: false, notify: true
- * });
- * </pre>
-
- * @returns {promise} A promise representing the state of the new transition. See
- * {@link ui.router.state.$state#methods_go $state.go}.
- */
- $state.reload = function reload(state) {
- return $state.transitionTo($state.current, $stateParams, { reload: state || true, inherit: false, notify: true});
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#go
- * @methodOf ui.router.state.$state
- *
- * @description
- * Convenience method for transitioning to a new state. `$state.go` calls
- * `$state.transitionTo` internally but automatically sets options to
- * `{ location: true, inherit: true, relative: $state.$current, notify: true }`.
- * This allows you to easily use an absolute or relative to path and specify
- * only the parameters you'd like to update (while letting unspecified parameters
- * inherit from the currently active ancestor states).
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router']);
- *
- * app.controller('ctrl', function ($scope, $state) {
- * $scope.changeState = function () {
- * $state.go('contact.detail');
- * };
- * });
- * </pre>
- * <img src='../ngdoc_assets/StateGoExamples.png'/>
- *
- * @param {string} to Absolute state name or relative state path. Some examples:
- *
- * - `$state.go('contact.detail')` - will go to the `contact.detail` state
- * - `$state.go('^')` - will go to a parent state
- * - `$state.go('^.sibling')` - will go to a sibling state
- * - `$state.go('.child.grandchild')` - will go to grandchild state
- *
- * @param {object=} params A map of the parameters that will be sent to the state,
- * will populate $stateParams. Any parameters that are not specified will be inherited from currently
- * defined parameters. Only parameters specified in the state definition can be overridden, new
- * parameters will be ignored. This allows, for example, going to a sibling state that shares parameters
- * specified in a parent state. Parameter inheritance only works between common ancestor states, I.e.
- * transitioning to a sibling will get you the parameters for all parents, transitioning to a child
- * will get you all current parameters, etc.
- * @param {object=} options Options object. The options are:
- *
- * - **`location`** - {boolean=true|string=} - If `true` will update the url in the location bar, if `false`
- * will not. If string, must be `"replace"`, which will update url and also replace last history record.
- * - **`inherit`** - {boolean=true}, If `true` will inherit url parameters from current url.
- * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'),
- * defines which state to be relative from.
- * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.
- * - **`reload`** (v0.2.5) - {boolean=false|string|object}, If `true` will force transition even if no state or params
- * have changed. It will reload the resolves and views of the current state and parent states.
- * If `reload` is a string (or state object), the state object is fetched (by name, or object reference); and \
- * the transition reloads the resolves and views for that matched state, and all its children states.
- *
- * @returns {promise} A promise representing the state of the new transition.
- *
- * Possible success values:
- *
- * - $state.current
- *
- * <br/>Possible rejection values:
- *
- * - 'transition superseded' - when a newer transition has been started after this one
- * - 'transition prevented' - when `event.preventDefault()` has been called in a `$stateChangeStart` listener
- * - 'transition aborted' - when `event.preventDefault()` has been called in a `$stateNotFound` listener or
- * when a `$stateNotFound` `event.retry` promise errors.
- * - 'transition failed' - when a state has been unsuccessfully found after 2 tries.
- * - *resolve error* - when an error has occurred with a `resolve`
- *
- */
- $state.go = function go(to, params, options) {
- return $state.transitionTo(to, params, extend({ inherit: true, relative: $state.$current }, options));
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#transitionTo
- * @methodOf ui.router.state.$state
- *
- * @description
- * Low-level method for transitioning to a new state. {@link ui.router.state.$state#methods_go $state.go}
- * uses `transitionTo` internally. `$state.go` is recommended in most situations.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router']);
- *
- * app.controller('ctrl', function ($scope, $state) {
- * $scope.changeState = function () {
- * $state.transitionTo('contact.detail');
- * };
- * });
- * </pre>
- *
- * @param {string} to State name.
- * @param {object=} toParams A map of the parameters that will be sent to the state,
- * will populate $stateParams.
- * @param {object=} options Options object. The options are:
- *
- * - **`location`** - {boolean=true|string=} - If `true` will update the url in the location bar, if `false`
- * will not. If string, must be `"replace"`, which will update url and also replace last history record.
- * - **`inherit`** - {boolean=false}, If `true` will inherit url parameters from current url.
- * - **`relative`** - {object=}, When transitioning with relative path (e.g '^'),
- * defines which state to be relative from.
- * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.
- * - **`reload`** (v0.2.5) - {boolean=false|string=|object=}, If `true` will force transition even if the state or params
- * have not changed, aka a reload of the same state. It differs from reloadOnSearch because you'd
- * use this when you want to force a reload when *everything* is the same, including search params.
- * if String, then will reload the state with the name given in reload, and any children.
- * if Object, then a stateObj is expected, will reload the state found in stateObj, and any children.
- *
- * @returns {promise} A promise representing the state of the new transition. See
- * {@link ui.router.state.$state#methods_go $state.go}.
- */
- $state.transitionTo = function transitionTo(to, toParams, options) {
- toParams = toParams || {};
- options = extend({
- location: true, inherit: false, relative: null, notify: true, reload: false, $retry: false
- }, options || {});
-
- var from = $state.$current, fromParams = $state.params, fromPath = from.path;
- var evt, toState = findState(to, options.relative);
-
- // Store the hash param for later (since it will be stripped out by various methods)
- var hash = toParams['#'];
-
- if (!isDefined(toState)) {
- var redirect = { to: to, toParams: toParams, options: options };
- var redirectResult = handleRedirect(redirect, from.self, fromParams, options);
-
- if (redirectResult) {
- return redirectResult;
- }
-
- // Always retry once if the $stateNotFound was not prevented
- // (handles either redirect changed or state lazy-definition)
- to = redirect.to;
- toParams = redirect.toParams;
- options = redirect.options;
- toState = findState(to, options.relative);
-
- if (!isDefined(toState)) {
- if (!options.relative) throw new Error("No such state '" + to + "'");
- throw new Error("Could not resolve '" + to + "' from state '" + options.relative + "'");
- }
- }
- if (toState[abstractKey]) throw new Error("Cannot transition to abstract state '" + to + "'");
- if (options.inherit) toParams = inheritParams($stateParams, toParams || {}, $state.$current, toState);
- if (!toState.params.$$validates(toParams)) return TransitionFailed;
-
- toParams = toState.params.$$values(toParams);
- to = toState;
-
- var toPath = to.path;
-
- // Starting from the root of the path, keep all levels that haven't changed
- var keep = 0, state = toPath[keep], locals = root.locals, toLocals = [];
-
- if (!options.reload) {
- while (state && state === fromPath[keep] && state.ownParams.$$equals(toParams, fromParams)) {
- locals = toLocals[keep] = state.locals;
- keep++;
- state = toPath[keep];
- }
- } else if (isString(options.reload) || isObject(options.reload)) {
- if (isObject(options.reload) && !options.reload.name) {
- throw new Error('Invalid reload state object');
- }
-
- var reloadState = options.reload === true ? fromPath[0] : findState(options.reload);
- if (options.reload && !reloadState) {
- throw new Error("No such reload state '" + (isString(options.reload) ? options.reload : options.reload.name) + "'");
- }
-
- while (state && state === fromPath[keep] && state !== reloadState) {
- locals = toLocals[keep] = state.locals;
- keep++;
- state = toPath[keep];
- }
- }
-
- // If we're going to the same state and all locals are kept, we've got nothing to do.
- // But clear 'transition', as we still want to cancel any other pending transitions.
- // TODO: We may not want to bump 'transition' if we're called from a location change
- // that we've initiated ourselves, because we might accidentally abort a legitimate
- // transition initiated from code?
- if (shouldSkipReload(to, toParams, from, fromParams, locals, options)) {
- if (hash) toParams['#'] = hash;
- $state.params = toParams;
- copy($state.params, $stateParams);
- copy(filterByKeys(to.params.$$keys(), $stateParams), to.locals.globals.$stateParams);
- if (options.location && to.navigable && to.navigable.url) {
- $urlRouter.push(to.navigable.url, toParams, {
- $$avoidResync: true, replace: options.location === 'replace'
- });
- $urlRouter.update(true);
- }
- $state.transition = null;
- return $q.when($state.current);
- }
-
- // Filter parameters before we pass them to event handlers etc.
- toParams = filterByKeys(to.params.$$keys(), toParams || {});
-
- // Re-add the saved hash before we start returning things or broadcasting $stateChangeStart
- if (hash) toParams['#'] = hash;
-
- // Broadcast start event and cancel the transition if requested
- if (options.notify) {
- /**
- * @ngdoc event
- * @name ui.router.state.$state#$stateChangeStart
- * @eventOf ui.router.state.$state
- * @eventType broadcast on root scope
- * @description
- * Fired when the state transition **begins**. You can use `event.preventDefault()`
- * to prevent the transition from happening and then the transition promise will be
- * rejected with a `'transition prevented'` value.
- *
- * @param {Object} event Event object.
- * @param {State} toState The state being transitioned to.
- * @param {Object} toParams The params supplied to the `toState`.
- * @param {State} fromState The current state, pre-transition.
- * @param {Object} fromParams The params supplied to the `fromState`.
- *
- * @example
- *
- * <pre>
- * $rootScope.$on('$stateChangeStart',
- * function(event, toState, toParams, fromState, fromParams){
- * event.preventDefault();
- * // transitionTo() promise will be rejected with
- * // a 'transition prevented' error
- * })
- * </pre>
- */
- if ($rootScope.$broadcast('$stateChangeStart', to.self, toParams, from.self, fromParams, options).defaultPrevented) {
- $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams);
- //Don't update and resync url if there's been a new transition started. see issue #2238, #600
- if ($state.transition == null) $urlRouter.update();
- return TransitionPrevented;
- }
- }
-
- // Resolve locals for the remaining states, but don't update any global state just
- // yet -- if anything fails to resolve the current state needs to remain untouched.
- // We also set up an inheritance chain for the locals here. This allows the view directive
- // to quickly look up the correct definition for each view in the current state. Even
- // though we create the locals object itself outside resolveState(), it is initially
- // empty and gets filled asynchronously. We need to keep track of the promise for the
- // (fully resolved) current locals, and pass this down the chain.
- var resolved = $q.when(locals);
-
- for (var l = keep; l < toPath.length; l++, state = toPath[l]) {
- locals = toLocals[l] = inherit(locals);
- resolved = resolveState(state, toParams, state === to, resolved, locals, options);
- }
-
- // Once everything is resolved, we are ready to perform the actual transition
- // and return a promise for the new state. We also keep track of what the
- // current promise is, so that we can detect overlapping transitions and
- // keep only the outcome of the last transition.
- var transition = $state.transition = resolved.then(function () {
- var l, entering, exiting;
-
- if ($state.transition !== transition) return TransitionSuperseded;
-
- // Exit 'from' states not kept
- for (l = fromPath.length - 1; l >= keep; l--) {
- exiting = fromPath[l];
- if (exiting.self.onExit) {
- $injector.invoke(exiting.self.onExit, exiting.self, exiting.locals.globals);
- }
- exiting.locals = null;
- }
-
- // Enter 'to' states not kept
- for (l = keep; l < toPath.length; l++) {
- entering = toPath[l];
- entering.locals = toLocals[l];
- if (entering.self.onEnter) {
- $injector.invoke(entering.self.onEnter, entering.self, entering.locals.globals);
- }
- }
-
- // Run it again, to catch any transitions in callbacks
- if ($state.transition !== transition) return TransitionSuperseded;
-
- // Update globals in $state
- $state.$current = to;
- $state.current = to.self;
- $state.params = toParams;
- copy($state.params, $stateParams);
- $state.transition = null;
-
- if (options.location && to.navigable) {
- $urlRouter.push(to.navigable.url, to.navigable.locals.globals.$stateParams, {
- $$avoidResync: true, replace: options.location === 'replace'
- });
- }
-
- if (options.notify) {
- /**
- * @ngdoc event
- * @name ui.router.state.$state#$stateChangeSuccess
- * @eventOf ui.router.state.$state
- * @eventType broadcast on root scope
- * @description
- * Fired once the state transition is **complete**.
- *
- * @param {Object} event Event object.
- * @param {State} toState The state being transitioned to.
- * @param {Object} toParams The params supplied to the `toState`.
- * @param {State} fromState The current state, pre-transition.
- * @param {Object} fromParams The params supplied to the `fromState`.
- */
- $rootScope.$broadcast('$stateChangeSuccess', to.self, toParams, from.self, fromParams);
- }
- $urlRouter.update(true);
-
- return $state.current;
- }, function (error) {
- if ($state.transition !== transition) return TransitionSuperseded;
-
- $state.transition = null;
- /**
- * @ngdoc event
- * @name ui.router.state.$state#$stateChangeError
- * @eventOf ui.router.state.$state
- * @eventType broadcast on root scope
- * @description
- * Fired when an **error occurs** during transition. It's important to note that if you
- * have any errors in your resolve functions (javascript errors, non-existent services, etc)
- * they will not throw traditionally. You must listen for this $stateChangeError event to
- * catch **ALL** errors.
- *
- * @param {Object} event Event object.
- * @param {State} toState The state being transitioned to.
- * @param {Object} toParams The params supplied to the `toState`.
- * @param {State} fromState The current state, pre-transition.
- * @param {Object} fromParams The params supplied to the `fromState`.
- * @param {Error} error The resolve error object.
- */
- evt = $rootScope.$broadcast('$stateChangeError', to.self, toParams, from.self, fromParams, error);
-
- if (!evt.defaultPrevented) {
- $urlRouter.update();
- }
-
- return $q.reject(error);
- });
-
- return transition;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#is
- * @methodOf ui.router.state.$state
- *
- * @description
- * Similar to {@link ui.router.state.$state#methods_includes $state.includes},
- * but only checks for the full state name. If params is supplied then it will be
- * tested for strict equality against the current active params object, so all params
- * must match with none missing and no extras.
- *
- * @example
- * <pre>
- * $state.$current.name = 'contacts.details.item';
- *
- * // absolute name
- * $state.is('contact.details.item'); // returns true
- * $state.is(contactDetailItemStateObject); // returns true
- *
- * // relative name (. and ^), typically from a template
- * // E.g. from the 'contacts.details' template
- * <div ng-class="{highlighted: $state.is('.item')}">Item</div>
- * </pre>
- *
- * @param {string|object} stateOrName The state name (absolute or relative) or state object you'd like to check.
- * @param {object=} params A param object, e.g. `{sectionId: section.id}`, that you'd like
- * to test against the current active state.
- * @param {object=} options An options object. The options are:
- *
- * - **`relative`** - {string|object} - If `stateOrName` is a relative state name and `options.relative` is set, .is will
- * test relative to `options.relative` state (or name).
- *
- * @returns {boolean} Returns true if it is the state.
- */
- $state.is = function is(stateOrName, params, options) {
- options = extend({ relative: $state.$current }, options || {});
- var state = findState(stateOrName, options.relative);
-
- if (!isDefined(state)) { return undefined; }
- if ($state.$current !== state) { return false; }
- return params ? equalForKeys(state.params.$$values(params), $stateParams) : true;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#includes
- * @methodOf ui.router.state.$state
- *
- * @description
- * A method to determine if the current active state is equal to or is the child of the
- * state stateName. If any params are passed then they will be tested for a match as well.
- * Not all the parameters need to be passed, just the ones you'd like to test for equality.
- *
- * @example
- * Partial and relative names
- * <pre>
- * $state.$current.name = 'contacts.details.item';
- *
- * // Using partial names
- * $state.includes("contacts"); // returns true
- * $state.includes("contacts.details"); // returns true
- * $state.includes("contacts.details.item"); // returns true
- * $state.includes("contacts.list"); // returns false
- * $state.includes("about"); // returns false
- *
- * // Using relative names (. and ^), typically from a template
- * // E.g. from the 'contacts.details' template
- * <div ng-class="{highlighted: $state.includes('.item')}">Item</div>
- * </pre>
- *
- * Basic globbing patterns
- * <pre>
- * $state.$current.name = 'contacts.details.item.url';
- *
- * $state.includes("*.details.*.*"); // returns true
- * $state.includes("*.details.**"); // returns true
- * $state.includes("**.item.**"); // returns true
- * $state.includes("*.details.item.url"); // returns true
- * $state.includes("*.details.*.url"); // returns true
- * $state.includes("*.details.*"); // returns false
- * $state.includes("item.**"); // returns false
- * </pre>
- *
- * @param {string} stateOrName A partial name, relative name, or glob pattern
- * to be searched for within the current state name.
- * @param {object=} params A param object, e.g. `{sectionId: section.id}`,
- * that you'd like to test against the current active state.
- * @param {object=} options An options object. The options are:
- *
- * - **`relative`** - {string|object=} - If `stateOrName` is a relative state reference and `options.relative` is set,
- * .includes will test relative to `options.relative` state (or name).
- *
- * @returns {boolean} Returns true if it does include the state
- */
- $state.includes = function includes(stateOrName, params, options) {
- options = extend({ relative: $state.$current }, options || {});
- if (isString(stateOrName) && isGlob(stateOrName)) {
- if (!doesStateMatchGlob(stateOrName)) {
- return false;
- }
- stateOrName = $state.$current.name;
- }
-
- var state = findState(stateOrName, options.relative);
- if (!isDefined(state)) { return undefined; }
- if (!isDefined($state.$current.includes[state.name])) { return false; }
- return params ? equalForKeys(state.params.$$values(params), $stateParams, objectKeys(params)) : true;
- };
-
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#href
- * @methodOf ui.router.state.$state
- *
- * @description
- * A url generation method that returns the compiled url for the given state populated with the given params.
- *
- * @example
- * <pre>
- * expect($state.href("about.person", { person: "bob" })).toEqual("/about/bob");
- * </pre>
- *
- * @param {string|object} stateOrName The state name or state object you'd like to generate a url from.
- * @param {object=} params An object of parameter values to fill the state's required parameters.
- * @param {object=} options Options object. The options are:
- *
- * - **`lossy`** - {boolean=true} - If true, and if there is no url associated with the state provided in the
- * first parameter, then the constructed href url will be built from the first navigable ancestor (aka
- * ancestor with a valid url).
- * - **`inherit`** - {boolean=true}, If `true` will inherit url parameters from current url.
- * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'),
- * defines which state to be relative from.
- * - **`absolute`** - {boolean=false}, If true will generate an absolute url, e.g. "http://www.example.com/fullurl".
- *
- * @returns {string} compiled state url
- */
- $state.href = function href(stateOrName, params, options) {
- options = extend({
- lossy: true,
- inherit: true,
- absolute: false,
- relative: $state.$current
- }, options || {});
-
- var state = findState(stateOrName, options.relative);
-
- if (!isDefined(state)) return null;
- if (options.inherit) params = inheritParams($stateParams, params || {}, $state.$current, state);
-
- var nav = (state && options.lossy) ? state.navigable : state;
-
- if (!nav || nav.url === undefined || nav.url === null) {
- return null;
- }
- return $urlRouter.href(nav.url, filterByKeys(state.params.$$keys().concat('#'), params || {}), {
- absolute: options.absolute
- });
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#get
- * @methodOf ui.router.state.$state
- *
- * @description
- * Returns the state configuration object for any specific state or all states.
- *
- * @param {string|object=} stateOrName (absolute or relative) If provided, will only get the config for
- * the requested state. If not provided, returns an array of ALL state configs.
- * @param {string|object=} context When stateOrName is a relative state reference, the state will be retrieved relative to context.
- * @returns {Object|Array} State configuration object or array of all objects.
- */
- $state.get = function (stateOrName, context) {
- if (arguments.length === 0) return map(objectKeys(states), function(name) { return states[name].self; });
- var state = findState(stateOrName, context || $state.$current);
- return (state && state.self) ? state.self : null;
- };
-
- function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {
- // Make a restricted $stateParams with only the parameters that apply to this state if
- // necessary. In addition to being available to the controller and onEnter/onExit callbacks,
- // we also need $stateParams to be available for any $injector calls we make during the
- // dependency resolution process.
- var $stateParams = (paramsAreFiltered) ? params : filterByKeys(state.params.$$keys(), params);
- var locals = { $stateParams: $stateParams };
-
- // Resolve 'global' dependencies for the state, i.e. those not specific to a view.
- // We're also including $stateParams in this; that way the parameters are restricted
- // to the set that should be visible to the state, and are independent of when we update
- // the global $state and $stateParams values.
- dst.resolve = $resolve.resolve(state.resolve, locals, dst.resolve, state);
- var promises = [dst.resolve.then(function (globals) {
- dst.globals = globals;
- })];
- if (inherited) promises.push(inherited);
-
- function resolveViews() {
- var viewsPromises = [];
-
- // Resolve template and dependencies for all views.
- forEach(state.views, function (view, name) {
- var injectables = (view.resolve && view.resolve !== state.resolve ? view.resolve : {});
- injectables.$template = [ function () {
- return $view.load(name, { view: view, locals: dst.globals, params: $stateParams, notify: options.notify }) || '';
- }];
-
- viewsPromises.push($resolve.resolve(injectables, dst.globals, dst.resolve, state).then(function (result) {
- // References to the controller (only instantiated at link time)
- if (isFunction(view.controllerProvider) || isArray(view.controllerProvider)) {
- var injectLocals = angular.extend({}, injectables, dst.globals);
- result.$$controller = $injector.invoke(view.controllerProvider, null, injectLocals);
- } else {
- result.$$controller = view.controller;
- }
- // Provide access to the state itself for internal use
- result.$$state = state;
- result.$$controllerAs = view.controllerAs;
- dst[name] = result;
- }));
- });
-
- return $q.all(viewsPromises).then(function(){
- return dst.globals;
- });
- }
-
- // Wait for all the promises and then return the activation object
- return $q.all(promises).then(resolveViews).then(function (values) {
- return dst;
- });
- }
-
- return $state;
- }
-
- function shouldSkipReload(to, toParams, from, fromParams, locals, options) {
- // Return true if there are no differences in non-search (path/object) params, false if there are differences
- function nonSearchParamsEqual(fromAndToState, fromParams, toParams) {
- // Identify whether all the parameters that differ between `fromParams` and `toParams` were search params.
- function notSearchParam(key) {
- return fromAndToState.params[key].location != "search";
- }
- var nonQueryParamKeys = fromAndToState.params.$$keys().filter(notSearchParam);
- var nonQueryParams = pick.apply({}, [fromAndToState.params].concat(nonQueryParamKeys));
- var nonQueryParamSet = new $$UMFP.ParamSet(nonQueryParams);
- return nonQueryParamSet.$$equals(fromParams, toParams);
- }
-
- // If reload was not explicitly requested
- // and we're transitioning to the same state we're already in
- // and the locals didn't change
- // or they changed in a way that doesn't merit reloading
- // (reloadOnParams:false, or reloadOnSearch.false and only search params changed)
- // Then return true.
- if (!options.reload && to === from &&
- (locals === from.locals || (to.self.reloadOnSearch === false && nonSearchParamsEqual(from, fromParams, toParams)))) {
- return true;
- }
- }
-}
-
-angular.module('ui.router.state')
- .factory('$stateParams', function () { return {}; })
- .provider('$state', $StateProvider);
-
-
-$ViewProvider.$inject = [];
-function $ViewProvider() {
-
- this.$get = $get;
- /**
- * @ngdoc object
- * @name ui.router.state.$view
- *
- * @requires ui.router.util.$templateFactory
- * @requires $rootScope
- *
- * @description
- *
- */
- $get.$inject = ['$rootScope', '$templateFactory'];
- function $get( $rootScope, $templateFactory) {
- return {
- // $view.load('full.viewName', { template: ..., controller: ..., resolve: ..., async: false, params: ... })
- /**
- * @ngdoc function
- * @name ui.router.state.$view#load
- * @methodOf ui.router.state.$view
- *
- * @description
- *
- * @param {string} name name
- * @param {object} options option object.
- */
- load: function load(name, options) {
- var result, defaults = {
- template: null, controller: null, view: null, locals: null, notify: true, async: true, params: {}
- };
- options = extend(defaults, options);
-
- if (options.view) {
- result = $templateFactory.fromConfig(options.view, options.params, options.locals);
- }
- return result;
- }
- };
- }
-}
-
-angular.module('ui.router.state').provider('$view', $ViewProvider);
-
-/**
- * @ngdoc object
- * @name ui.router.state.$uiViewScrollProvider
- *
- * @description
- * Provider that returns the {@link ui.router.state.$uiViewScroll} service function.
- */
-function $ViewScrollProvider() {
-
- var useAnchorScroll = false;
-
- /**
- * @ngdoc function
- * @name ui.router.state.$uiViewScrollProvider#useAnchorScroll
- * @methodOf ui.router.state.$uiViewScrollProvider
- *
- * @description
- * Reverts back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll) service for
- * scrolling based on the url anchor.
- */
- this.useAnchorScroll = function () {
- useAnchorScroll = true;
- };
-
- /**
- * @ngdoc object
- * @name ui.router.state.$uiViewScroll
- *
- * @requires $anchorScroll
- * @requires $timeout
- *
- * @description
- * When called with a jqLite element, it scrolls the element into view (after a
- * `$timeout` so the DOM has time to refresh).
- *
- * If you prefer to rely on `$anchorScroll` to scroll the view to the anchor,
- * this can be enabled by calling {@link ui.router.state.$uiViewScrollProvider#methods_useAnchorScroll `$uiViewScrollProvider.useAnchorScroll()`}.
- */
- this.$get = ['$anchorScroll', '$timeout', function ($anchorScroll, $timeout) {
- if (useAnchorScroll) {
- return $anchorScroll;
- }
-
- return function ($element) {
- return $timeout(function () {
- $element[0].scrollIntoView();
- }, 0, false);
- };
- }];
-}
-
-angular.module('ui.router.state').provider('$uiViewScroll', $ViewScrollProvider);
-
-var ngMajorVer = angular.version.major;
-var ngMinorVer = angular.version.minor;
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-view
- *
- * @requires ui.router.state.$state
- * @requires $compile
- * @requires $controller
- * @requires $injector
- * @requires ui.router.state.$uiViewScroll
- * @requires $document
- *
- * @restrict ECA
- *
- * @description
- * The ui-view directive tells $state where to place your templates.
- *
- * @param {string=} name A view name. The name should be unique amongst the other views in the
- * same state. You can have views of the same name that live in different states.
- *
- * @param {string=} autoscroll It allows you to set the scroll behavior of the browser window
- * when a view is populated. By default, $anchorScroll is overridden by ui-router's custom scroll
- * service, {@link ui.router.state.$uiViewScroll}. This custom service let's you
- * scroll ui-view elements into view when they are populated during a state activation.
- *
- * @param {string=} noanimation If truthy, the non-animated renderer will be selected (no animations
- * will be applied to the ui-view)
- *
- * *Note: To revert back to old [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)
- * functionality, call `$uiViewScrollProvider.useAnchorScroll()`.*
- *
- * @param {string=} onload Expression to evaluate whenever the view updates.
- *
- * @example
- * A view can be unnamed or named.
- * <pre>
- * <!-- Unnamed -->
- * <div ui-view></div>
- *
- * <!-- Named -->
- * <div ui-view="viewName"></div>
- * </pre>
- *
- * You can only have one unnamed view within any template (or root html). If you are only using a
- * single view and it is unnamed then you can populate it like so:
- * <pre>
- * <div ui-view></div>
- * $stateProvider.state("home", {
- * template: "<h1>HELLO!</h1>"
- * })
- * </pre>
- *
- * The above is a convenient shortcut equivalent to specifying your view explicitly with the {@link ui.router.state.$stateProvider#views `views`}
- * config property, by name, in this case an empty name:
- * <pre>
- * $stateProvider.state("home", {
- * views: {
- * "": {
- * template: "<h1>HELLO!</h1>"
- * }
- * }
- * })
- * </pre>
- *
- * But typically you'll only use the views property if you name your view or have more than one view
- * in the same template. There's not really a compelling reason to name a view if its the only one,
- * but you could if you wanted, like so:
- * <pre>
- * <div ui-view="main"></div>
- * </pre>
- * <pre>
- * $stateProvider.state("home", {
- * views: {
- * "main": {
- * template: "<h1>HELLO!</h1>"
- * }
- * }
- * })
- * </pre>
- *
- * Really though, you'll use views to set up multiple views:
- * <pre>
- * <div ui-view></div>
- * <div ui-view="chart"></div>
- * <div ui-view="data"></div>
- * </pre>
- *
- * <pre>
- * $stateProvider.state("home", {
- * views: {
- * "": {
- * template: "<h1>HELLO!</h1>"
- * },
- * "chart": {
- * template: "<chart_thing/>"
- * },
- * "data": {
- * template: "<data_thing/>"
- * }
- * }
- * })
- * </pre>
- *
- * Examples for `autoscroll`:
- *
- * <pre>
- * <!-- If autoscroll present with no expression,
- * then scroll ui-view into view -->
- * <ui-view autoscroll/>
- *
- * <!-- If autoscroll present with valid expression,
- * then scroll ui-view into view if expression evaluates to true -->
- * <ui-view autoscroll='true'/>
- * <ui-view autoscroll='false'/>
- * <ui-view autoscroll='scopeVariable'/>
- * </pre>
- */
-$ViewDirective.$inject = ['$state', '$injector', '$uiViewScroll', '$interpolate'];
-function $ViewDirective( $state, $injector, $uiViewScroll, $interpolate) {
-
- function getService() {
- return ($injector.has) ? function(service) {
- return $injector.has(service) ? $injector.get(service) : null;
- } : function(service) {
- try {
- return $injector.get(service);
- } catch (e) {
- return null;
- }
- };
- }
-
- var service = getService(),
- $animator = service('$animator'),
- $animate = service('$animate');
-
- // Returns a set of DOM manipulation functions based on which Angular version
- // it should use
- function getRenderer(attrs, scope) {
- var statics = {
- enter: function (element, target, cb) { target.after(element); cb(); },
- leave: function (element, cb) { element.remove(); cb(); }
- };
-
- if (!!attrs.noanimation) return statics;
-
- function animEnabled(element) {
- if (ngMajorVer === 1 && ngMinorVer >= 4) return !!$animate.enabled(element);
- if (ngMajorVer === 1 && ngMinorVer >= 2) return !!$animate.enabled();
- return (!!$animator);
- }
-
- // ng 1.2+
- if ($animate) {
- return {
- enter: function(element, target, cb) {
- if (!animEnabled(element)) {
- statics.enter(element, target, cb);
- } else if (angular.version.minor > 2) {
- $animate.enter(element, null, target).then(cb);
- } else {
- $animate.enter(element, null, target, cb);
- }
- },
- leave: function(element, cb) {
- if (!animEnabled(element)) {
- statics.leave(element, cb);
- } else if (angular.version.minor > 2) {
- $animate.leave(element).then(cb);
- } else {
- $animate.leave(element, cb);
- }
- }
- };
- }
-
- // ng 1.1.5
- if ($animator) {
- var animate = $animator && $animator(scope, attrs);
-
- return {
- enter: function(element, target, cb) {animate.enter(element, null, target); cb(); },
- leave: function(element, cb) { animate.leave(element); cb(); }
- };
- }
-
- return statics;
- }
-
- var directive = {
- restrict: 'ECA',
- terminal: true,
- priority: 400,
- transclude: 'element',
- compile: function (tElement, tAttrs, $transclude) {
- return function (scope, $element, attrs) {
- var previousEl, currentEl, currentScope, latestLocals,
- onloadExp = attrs.onload || '',
- autoScrollExp = attrs.autoscroll,
- renderer = getRenderer(attrs, scope);
-
- scope.$on('$stateChangeSuccess', function() {
- updateView(false);
- });
-
- updateView(true);
-
- function cleanupLastView() {
- var _previousEl = previousEl;
- var _currentScope = currentScope;
-
- if (_currentScope) {
- _currentScope._willBeDestroyed = true;
- }
-
- function cleanOld() {
- if (_previousEl) {
- _previousEl.remove();
- }
-
- if (_currentScope) {
- _currentScope.$destroy();
- }
- }
-
- if (currentEl) {
- renderer.leave(currentEl, function() {
- cleanOld();
- previousEl = null;
- });
-
- previousEl = currentEl;
- } else {
- cleanOld();
- previousEl = null;
- }
-
- currentEl = null;
- currentScope = null;
- }
-
- function updateView(firstTime) {
- var newScope,
- name = getUiViewName(scope, attrs, $element, $interpolate),
- previousLocals = name && $state.$current && $state.$current.locals[name];
-
- if (!firstTime && previousLocals === latestLocals || scope._willBeDestroyed) return; // nothing to do
- newScope = scope.$new();
- latestLocals = $state.$current.locals[name];
-
- /**
- * @ngdoc event
- * @name ui.router.state.directive:ui-view#$viewContentLoading
- * @eventOf ui.router.state.directive:ui-view
- * @eventType emits on ui-view directive scope
- * @description
- *
- * Fired once the view **begins loading**, *before* the DOM is rendered.
- *
- * @param {Object} event Event object.
- * @param {string} viewName Name of the view.
- */
- newScope.$emit('$viewContentLoading', name);
-
- var clone = $transclude(newScope, function(clone) {
- renderer.enter(clone, $element, function onUiViewEnter() {
- if(currentScope) {
- currentScope.$emit('$viewContentAnimationEnded');
- }
-
- if (angular.isDefined(autoScrollExp) && !autoScrollExp || scope.$eval(autoScrollExp)) {
- $uiViewScroll(clone);
- }
- });
- cleanupLastView();
- });
-
- currentEl = clone;
- currentScope = newScope;
- /**
- * @ngdoc event
- * @name ui.router.state.directive:ui-view#$viewContentLoaded
- * @eventOf ui.router.state.directive:ui-view
- * @eventType emits on ui-view directive scope
- * @description
- * Fired once the view is **loaded**, *after* the DOM is rendered.
- *
- * @param {Object} event Event object.
- * @param {string} viewName Name of the view.
- */
- currentScope.$emit('$viewContentLoaded', name);
- currentScope.$eval(onloadExp);
- }
- };
- }
- };
-
- return directive;
-}
-
-$ViewDirectiveFill.$inject = ['$compile', '$controller', '$state', '$interpolate'];
-function $ViewDirectiveFill ( $compile, $controller, $state, $interpolate) {
- return {
- restrict: 'ECA',
- priority: -400,
- compile: function (tElement) {
- var initial = tElement.html();
- return function (scope, $element, attrs) {
- var current = $state.$current,
- name = getUiViewName(scope, attrs, $element, $interpolate),
- locals = current && current.locals[name];
-
- if (! locals) {
- return;
- }
-
- $element.data('$uiView', { name: name, state: locals.$$state });
- $element.html(locals.$template ? locals.$template : initial);
-
- var link = $compile($element.contents());
-
- if (locals.$$controller) {
- locals.$scope = scope;
- locals.$element = $element;
- var controller = $controller(locals.$$controller, locals);
- if (locals.$$controllerAs) {
- scope[locals.$$controllerAs] = controller;
- }
- $element.data('$ngControllerController', controller);
- $element.children().data('$ngControllerController', controller);
- }
-
- link(scope);
- };
- }
- };
-}
-
-/**
- * Shared ui-view code for both directives:
- * Given scope, element, and its attributes, return the view's name
- */
-function getUiViewName(scope, attrs, element, $interpolate) {
- var name = $interpolate(attrs.uiView || attrs.name || '')(scope);
- var inherited = element.inheritedData('$uiView');
- return name.indexOf('@') >= 0 ? name : (name + '@' + (inherited ? inherited.state.name : ''));
-}
-
-angular.module('ui.router.state').directive('uiView', $ViewDirective);
-angular.module('ui.router.state').directive('uiView', $ViewDirectiveFill);
-
-function parseStateRef(ref, current) {
- var preparsed = ref.match(/^\s*({[^}]*})\s*$/), parsed;
- if (preparsed) ref = current + '(' + preparsed[1] + ')';
- parsed = ref.replace(/\n/g, " ").match(/^([^(]+?)\s*(\((.*)\))?$/);
- if (!parsed || parsed.length !== 4) throw new Error("Invalid state ref '" + ref + "'");
- return { state: parsed[1], paramExpr: parsed[3] || null };
-}
-
-function stateContext(el) {
- var stateData = el.parent().inheritedData('$uiView');
-
- if (stateData && stateData.state && stateData.state.name) {
- return stateData.state;
- }
-}
-
-function getTypeInfo(el) {
- // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
- var isSvg = Object.prototype.toString.call(el.prop('href')) === '[object SVGAnimatedString]';
- var isForm = el[0].nodeName === "FORM";
-
- return {
- attr: isForm ? "action" : (isSvg ? 'xlink:href' : 'href'),
- isAnchor: el.prop("tagName").toUpperCase() === "A",
- clickable: !isForm
- };
-}
-
-function clickHook(el, $state, $timeout, type, current) {
- return function(e) {
- var button = e.which || e.button, target = current();
-
- if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || el.attr('target'))) {
- // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
- var transition = $timeout(function() {
- $state.go(target.state, target.params, target.options);
- });
- e.preventDefault();
-
- // if the state has no URL, ignore one preventDefault from the <a> directive.
- var ignorePreventDefaultCount = type.isAnchor && !target.href ? 1: 0;
-
- e.preventDefault = function() {
- if (ignorePreventDefaultCount-- <= 0) $timeout.cancel(transition);
- };
- }
- };
-}
-
-function defaultOpts(el, $state) {
- return { relative: stateContext(el) || $state.$current, inherit: true };
-}
-
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-sref
- *
- * @requires ui.router.state.$state
- * @requires $timeout
- *
- * @restrict A
- *
- * @description
- * A directive that binds a link (`<a>` tag) to a state. If the state has an associated
- * URL, the directive will automatically generate & update the `href` attribute via
- * the {@link ui.router.state.$state#methods_href $state.href()} method. Clicking
- * the link will trigger a state transition with optional parameters.
- *
- * Also middle-clicking, right-clicking, and ctrl-clicking on the link will be
- * handled natively by the browser.
- *
- * You can also use relative state paths within ui-sref, just like the relative
- * paths passed to `$state.go()`. You just need to be aware that the path is relative
- * to the state that the link lives in, in other words the state that loaded the
- * template containing the link.
- *
- * You can specify options to pass to {@link ui.router.state.$state#go $state.go()}
- * using the `ui-sref-opts` attribute. Options are restricted to `location`, `inherit`,
- * and `reload`.
- *
- * @example
- * Here's an example of how you'd use ui-sref and how it would compile. If you have the
- * following template:
- * <pre>
- * <a ui-sref="home">Home</a> | <a ui-sref="about">About</a> | <a ui-sref="{page: 2}">Next page</a>
- *
- * <ul>
- * <li ng-repeat="contact in contacts">
- * <a ui-sref="contacts.detail({ id: contact.id })">{{ contact.name }}</a>
- * </li>
- * </ul>
- * </pre>
- *
- * Then the compiled html would be (assuming Html5Mode is off and current state is contacts):
- * <pre>
- * <a href="#/home" ui-sref="home">Home</a> | <a href="#/about" ui-sref="about">About</a> | <a href="#/contacts?page=2" ui-sref="{page: 2}">Next page</a>
- *
- * <ul>
- * <li ng-repeat="contact in contacts">
- * <a href="#/contacts/1" ui-sref="contacts.detail({ id: contact.id })">Joe</a>
- * </li>
- * <li ng-repeat="contact in contacts">
- * <a href="#/contacts/2" ui-sref="contacts.detail({ id: contact.id })">Alice</a>
- * </li>
- * <li ng-repeat="contact in contacts">
- * <a href="#/contacts/3" ui-sref="contacts.detail({ id: contact.id })">Bob</a>
- * </li>
- * </ul>
- *
- * <a ui-sref="home" ui-sref-opts="{reload: true}">Home</a>
- * </pre>
- *
- * @param {string} ui-sref 'stateName' can be any valid absolute or relative state
- * @param {Object} ui-sref-opts options to pass to {@link ui.router.state.$state#go $state.go()}
- */
-$StateRefDirective.$inject = ['$state', '$timeout'];
-function $StateRefDirective($state, $timeout) {
- return {
- restrict: 'A',
- require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
- link: function(scope, element, attrs, uiSrefActive) {
- var ref = parseStateRef(attrs.uiSref, $state.current.name);
- var def = { state: ref.state, href: null, params: null };
- var type = getTypeInfo(element);
- var active = uiSrefActive[1] || uiSrefActive[0];
-
- def.options = extend(defaultOpts(element, $state), attrs.uiSrefOpts ? scope.$eval(attrs.uiSrefOpts) : {});
-
- var update = function(val) {
- if (val) def.params = angular.copy(val);
- def.href = $state.href(ref.state, def.params, def.options);
-
- if (active) active.$$addStateInfo(ref.state, def.params);
- if (def.href !== null) attrs.$set(type.attr, def.href);
- };
-
- if (ref.paramExpr) {
- scope.$watch(ref.paramExpr, function(val) { if (val !== def.params) update(val); }, true);
- def.params = angular.copy(scope.$eval(ref.paramExpr));
- }
- update();
-
- if (!type.clickable) return;
- element.bind("click", clickHook(element, $state, $timeout, type, function() { return def; }));
- }
- };
-}
-
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-state
- *
- * @requires ui.router.state.uiSref
- *
- * @restrict A
- *
- * @description
- * Much like ui-sref, but will accept named $scope properties to evaluate for a state definition,
- * params and override options.
- *
- * @param {string} ui-state 'stateName' can be any valid absolute or relative state
- * @param {Object} ui-state-params params to pass to {@link ui.router.state.$state#href $state.href()}
- * @param {Object} ui-state-opts options to pass to {@link ui.router.state.$state#go $state.go()}
- */
-$StateRefDynamicDirective.$inject = ['$state', '$timeout'];
-function $StateRefDynamicDirective($state, $timeout) {
- return {
- restrict: 'A',
- require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
- link: function(scope, element, attrs, uiSrefActive) {
- var type = getTypeInfo(element);
- var active = uiSrefActive[1] || uiSrefActive[0];
- var group = [attrs.uiState, attrs.uiStateParams || null, attrs.uiStateOpts || null];
- var watch = '[' + group.map(function(val) { return val || 'null'; }).join(', ') + ']';
- var def = { state: null, params: null, options: null, href: null };
-
- function runStateRefLink (group) {
- def.state = group[0]; def.params = group[1]; def.options = group[2];
- def.href = $state.href(def.state, def.params, def.options);
-
- if (active) active.$$addStateInfo(def.state, def.params);
- if (def.href) attrs.$set(type.attr, def.href);
- }
-
- scope.$watch(watch, runStateRefLink, true);
- runStateRefLink(scope.$eval(watch));
-
- if (!type.clickable) return;
- element.bind("click", clickHook(element, $state, $timeout, type, function() { return def; }));
- }
- };
-}
-
-
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-sref-active
- *
- * @requires ui.router.state.$state
- * @requires ui.router.state.$stateParams
- * @requires $interpolate
- *
- * @restrict A
- *
- * @description
- * A directive working alongside ui-sref to add classes to an element when the
- * related ui-sref directive's state is active, and removing them when it is inactive.
- * The primary use-case is to simplify the special appearance of navigation menus
- * relying on `ui-sref`, by having the "active" state's menu button appear different,
- * distinguishing it from the inactive menu items.
- *
- * ui-sref-active can live on the same element as ui-sref or on a parent element. The first
- * ui-sref-active found at the same level or above the ui-sref will be used.
- *
- * Will activate when the ui-sref's target state or any child state is active. If you
- * need to activate only when the ui-sref target state is active and *not* any of
- * it's children, then you will use
- * {@link ui.router.state.directive:ui-sref-active-eq ui-sref-active-eq}
- *
- * @example
- * Given the following template:
- * <pre>
- * <ul>
- * <li ui-sref-active="active" class="item">
- * <a href ui-sref="app.user({user: 'bilbobaggins'})">@bilbobaggins</a>
- * </li>
- * </ul>
- * </pre>
- *
- *
- * When the app state is "app.user" (or any children states), and contains the state parameter "user" with value "bilbobaggins",
- * the resulting HTML will appear as (note the 'active' class):
- * <pre>
- * <ul>
- * <li ui-sref-active="active" class="item active">
- * <a ui-sref="app.user({user: 'bilbobaggins'})" href="/users/bilbobaggins">@bilbobaggins</a>
- * </li>
- * </ul>
- * </pre>
- *
- * The class name is interpolated **once** during the directives link time (any further changes to the
- * interpolated value are ignored).
- *
- * Multiple classes may be specified in a space-separated format:
- * <pre>
- * <ul>
- * <li ui-sref-active='class1 class2 class3'>
- * <a ui-sref="app.user">link</a>
- * </li>
- * </ul>
- * </pre>
- *
- * It is also possible to pass ui-sref-active an expression that evaluates
- * to an object hash, whose keys represent active class names and whose
- * values represent the respective state names/globs.
- * ui-sref-active will match if the current active state **includes** any of
- * the specified state names/globs, even the abstract ones.
- *
- * @Example
- * Given the following template, with "admin" being an abstract state:
- * <pre>
- * <div ui-sref-active="{'active': 'admin.*'}">
- * <a ui-sref-active="active" ui-sref="admin.roles">Roles</a>
- * </div>
- * </pre>
- *
- * When the current state is "admin.roles" the "active" class will be applied
- * to both the <div> and <a> elements. It is important to note that the state
- * names/globs passed to ui-sref-active shadow the state provided by ui-sref.
- */
-
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-sref-active-eq
- *
- * @requires ui.router.state.$state
- * @requires ui.router.state.$stateParams
- * @requires $interpolate
- *
- * @restrict A
- *
- * @description
- * The same as {@link ui.router.state.directive:ui-sref-active ui-sref-active} but will only activate
- * when the exact target state used in the `ui-sref` is active; no child states.
- *
- */
-$StateRefActiveDirective.$inject = ['$state', '$stateParams', '$interpolate'];
-function $StateRefActiveDirective($state, $stateParams, $interpolate) {
- return {
- restrict: "A",
- controller: ['$scope', '$element', '$attrs', '$timeout', function ($scope, $element, $attrs, $timeout) {
- var states = [], activeClasses = {}, activeEqClass, uiSrefActive;
-
- // There probably isn't much point in $observing this
- // uiSrefActive and uiSrefActiveEq share the same directive object with some
- // slight difference in logic routing
- activeEqClass = $interpolate($attrs.uiSrefActiveEq || '', false)($scope);
-
- try {
- uiSrefActive = $scope.$eval($attrs.uiSrefActive);
- } catch (e) {
- // Do nothing. uiSrefActive is not a valid expression.
- // Fall back to using $interpolate below
- }
- uiSrefActive = uiSrefActive || $interpolate($attrs.uiSrefActive || '', false)($scope);
- if (isObject(uiSrefActive)) {
- forEach(uiSrefActive, function(stateOrName, activeClass) {
- if (isString(stateOrName)) {
- var ref = parseStateRef(stateOrName, $state.current.name);
- addState(ref.state, $scope.$eval(ref.paramExpr), activeClass);
- }
- });
- }
-
- // Allow uiSref to communicate with uiSrefActive[Equals]
- this.$$addStateInfo = function (newState, newParams) {
- // we already got an explicit state provided by ui-sref-active, so we
- // shadow the one that comes from ui-sref
- if (isObject(uiSrefActive) && states.length > 0) {
- return;
- }
- addState(newState, newParams, uiSrefActive);
- update();
- };
-
- $scope.$on('$stateChangeSuccess', update);
-
- function addState(stateName, stateParams, activeClass) {
- var state = $state.get(stateName, stateContext($element));
- var stateHash = createStateHash(stateName, stateParams);
-
- states.push({
- state: state || { name: stateName },
- params: stateParams,
- hash: stateHash
- });
-
- activeClasses[stateHash] = activeClass;
- }
-
- /**
- * @param {string} state
- * @param {Object|string} [params]
- * @return {string}
- */
- function createStateHash(state, params) {
- if (!isString(state)) {
- throw new Error('state should be a string');
- }
- if (isObject(params)) {
- return state + toJson(params);
- }
- params = $scope.$eval(params);
- if (isObject(params)) {
- return state + toJson(params);
- }
- return state;
- }
-
- // Update route state
- function update() {
- for (var i = 0; i < states.length; i++) {
- if (anyMatch(states[i].state, states[i].params)) {
- addClass($element, activeClasses[states[i].hash]);
- } else {
- removeClass($element, activeClasses[states[i].hash]);
- }
-
- if (exactMatch(states[i].state, states[i].params)) {
- addClass($element, activeEqClass);
- } else {
- removeClass($element, activeEqClass);
- }
- }
- }
-
- function addClass(el, className) { $timeout(function () { el.addClass(className); }); }
- function removeClass(el, className) { el.removeClass(className); }
- function anyMatch(state, params) { return $state.includes(state.name, params); }
- function exactMatch(state, params) { return $state.is(state.name, params); }
-
- update();
- }]
- };
-}
-
-angular.module('ui.router.state')
- .directive('uiSref', $StateRefDirective)
- .directive('uiSrefActive', $StateRefActiveDirective)
- .directive('uiSrefActiveEq', $StateRefActiveDirective)
- .directive('uiState', $StateRefDynamicDirective);
-
-/**
- * @ngdoc filter
- * @name ui.router.state.filter:isState
- *
- * @requires ui.router.state.$state
- *
- * @description
- * Translates to {@link ui.router.state.$state#methods_is $state.is("stateName")}.
- */
-$IsStateFilter.$inject = ['$state'];
-function $IsStateFilter($state) {
- var isFilter = function (state, params) {
- return $state.is(state, params);
- };
- isFilter.$stateful = true;
- return isFilter;
-}
-
-/**
- * @ngdoc filter
- * @name ui.router.state.filter:includedByState
- *
- * @requires ui.router.state.$state
- *
- * @description
- * Translates to {@link ui.router.state.$state#methods_includes $state.includes('fullOrPartialStateName')}.
- */
-$IncludedByStateFilter.$inject = ['$state'];
-function $IncludedByStateFilter($state) {
- var includesFilter = function (state, params, options) {
- return $state.includes(state, params, options);
- };
- includesFilter.$stateful = true;
- return includesFilter;
-}
-
-angular.module('ui.router.state')
- .filter('isState', $IsStateFilter)
- .filter('includedByState', $IncludedByStateFilter);
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/release/angular-ui-router.min.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/release/angular-ui-router.min.js
deleted file mode 100644
index f1b0e351..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/release/angular-ui-router.min.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * State-based routing for AngularJS
- * @version v0.2.18
- * @link http://angular-ui.github.com/
- * @license MIT License, http://www.opensource.org/licenses/MIT
- */
-"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(a,b,c){"use strict";function d(a,b){return R(new(R(function(){},{prototype:a})),b)}function e(a){return Q(arguments,function(b){b!==a&&Q(b,function(b,c){a.hasOwnProperty(c)||(a[c]=b)})}),a}function f(a,b){var c=[];for(var d in a.path){if(a.path[d]!==b.path[d])break;c.push(a.path[d])}return c}function g(a){if(Object.keys)return Object.keys(a);var b=[];return Q(a,function(a,c){b.push(c)}),b}function h(a,b){if(Array.prototype.indexOf)return a.indexOf(b,Number(arguments[2])||0);var c=a.length>>>0,d=Number(arguments[2])||0;for(d=0>d?Math.ceil(d):Math.floor(d),0>d&&(d+=c);c>d;d++)if(d in a&&a[d]===b)return d;return-1}function i(a,b,c,d){var e,i=f(c,d),j={},k=[];for(var l in i)if(i[l]&&i[l].params&&(e=g(i[l].params),e.length))for(var m in e)h(k,e[m])>=0||(k.push(e[m]),j[e[m]]=a[e[m]]);return R({},j,b)}function j(a,b,c){if(!c){c=[];for(var d in a)c.push(d)}for(var e=0;e<c.length;e++){var f=c[e];if(a[f]!=b[f])return!1}return!0}function k(a,b){var c={};return Q(a,function(a){c[a]=b[a]}),c}function l(a){var b={},c=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return Q(c,function(c){c in a&&(b[c]=a[c])}),b}function m(a){var b={},c=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var d in a)-1==h(c,d)&&(b[d]=a[d]);return b}function n(a,b){var c=P(a),d=c?[]:{};return Q(a,function(a,e){b(a,e)&&(d[c?d.length:e]=a)}),d}function o(a,b){var c=P(a)?[]:{};return Q(a,function(a,d){c[d]=b(a,d)}),c}function p(a,b){var d=1,f=2,i={},j=[],k=i,l=R(a.when(i),{$$promises:i,$$values:i});this.study=function(i){function n(a,c){if(s[c]!==f){if(r.push(c),s[c]===d)throw r.splice(0,h(r,c)),new Error("Cyclic dependency: "+r.join(" -> "));if(s[c]=d,N(a))q.push(c,[function(){return b.get(a)}],j);else{var e=b.annotate(a);Q(e,function(a){a!==c&&i.hasOwnProperty(a)&&n(i[a],a)}),q.push(c,a,e)}r.pop(),s[c]=f}}function o(a){return O(a)&&a.then&&a.$$promises}if(!O(i))throw new Error("'invocables' must be an object");var p=g(i||{}),q=[],r=[],s={};return Q(i,n),i=r=s=null,function(d,f,g){function h(){--u||(v||e(t,f.$$values),r.$$values=t,r.$$promises=r.$$promises||!0,delete r.$$inheritedValues,n.resolve(t))}function i(a){r.$$failure=a,n.reject(a)}function j(c,e,f){function j(a){l.reject(a),i(a)}function k(){if(!L(r.$$failure))try{l.resolve(b.invoke(e,g,t)),l.promise.then(function(a){t[c]=a,h()},j)}catch(a){j(a)}}var l=a.defer(),m=0;Q(f,function(a){s.hasOwnProperty(a)&&!d.hasOwnProperty(a)&&(m++,s[a].then(function(b){t[a]=b,--m||k()},j))}),m||k(),s[c]=l.promise}if(o(d)&&g===c&&(g=f,f=d,d=null),d){if(!O(d))throw new Error("'locals' must be an object")}else d=k;if(f){if(!o(f))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else f=l;var n=a.defer(),r=n.promise,s=r.$$promises={},t=R({},d),u=1+q.length/3,v=!1;if(L(f.$$failure))return i(f.$$failure),r;f.$$inheritedValues&&e(t,m(f.$$inheritedValues,p)),R(s,f.$$promises),f.$$values?(v=e(t,m(f.$$values,p)),r.$$inheritedValues=m(f.$$values,p),h()):(f.$$inheritedValues&&(r.$$inheritedValues=m(f.$$inheritedValues,p)),f.then(h,i));for(var w=0,x=q.length;x>w;w+=3)d.hasOwnProperty(q[w])?h():j(q[w],q[w+1],q[w+2]);return r}},this.resolve=function(a,b,c,d){return this.study(a)(b,c,d)}}function q(a,b,c){this.fromConfig=function(a,b,c){return L(a.template)?this.fromString(a.template,b):L(a.templateUrl)?this.fromUrl(a.templateUrl,b):L(a.templateProvider)?this.fromProvider(a.templateProvider,b,c):null},this.fromString=function(a,b){return M(a)?a(b):a},this.fromUrl=function(c,d){return M(c)&&(c=c(d)),null==c?null:a.get(c,{cache:b,headers:{Accept:"text/html"}}).then(function(a){return a.data})},this.fromProvider=function(a,b,d){return c.invoke(a,null,d||{params:b})}}function r(a,b,e){function f(b,c,d,e){if(q.push(b),o[b])return o[b];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(b))throw new Error("Invalid parameter name '"+b+"' in pattern '"+a+"'");if(p[b])throw new Error("Duplicate parameter name '"+b+"' in pattern '"+a+"'");return p[b]=new U.Param(b,c,d,e),p[b]}function g(a,b,c,d){var e=["",""],f=a.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!b)return f;switch(c){case!1:e=["(",")"+(d?"?":"")];break;case!0:f=f.replace(/\/$/,""),e=["(?:/(",")|/)?"];break;default:e=["("+c+"|",")?"]}return f+e[0]+b+e[1]}function h(e,f){var g,h,i,j,k;return g=e[2]||e[3],k=b.params[g],i=a.substring(m,e.index),h=f?e[4]:e[4]||("*"==e[1]?".*":null),h&&(j=U.type(h)||d(U.type("string"),{pattern:new RegExp(h,b.caseInsensitive?"i":c)})),{id:g,regexp:h,segment:i,type:j,cfg:k}}b=R({params:{}},O(b)?b:{});var i,j=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,k=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,l="^",m=0,n=this.segments=[],o=e?e.params:{},p=this.params=e?e.params.$$new():new U.ParamSet,q=[];this.source=a;for(var r,s,t;(i=j.exec(a))&&(r=h(i,!1),!(r.segment.indexOf("?")>=0));)s=f(r.id,r.type,r.cfg,"path"),l+=g(r.segment,s.type.pattern.source,s.squash,s.isOptional),n.push(r.segment),m=j.lastIndex;t=a.substring(m);var u=t.indexOf("?");if(u>=0){var v=this.sourceSearch=t.substring(u);if(t=t.substring(0,u),this.sourcePath=a.substring(0,m+u),v.length>0)for(m=0;i=k.exec(v);)r=h(i,!0),s=f(r.id,r.type,r.cfg,"search"),m=j.lastIndex}else this.sourcePath=a,this.sourceSearch="";l+=g(t)+(b.strict===!1?"/?":"")+"$",n.push(t),this.regexp=new RegExp(l,b.caseInsensitive?"i":c),this.prefix=n[0],this.$$paramNames=q}function s(a){R(this,a)}function t(){function a(a){return null!=a?a.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):a}function e(a){return null!=a?a.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):a}function f(){return{strict:p,caseInsensitive:m}}function i(a){return M(a)||P(a)&&M(a[a.length-1])}function j(){for(;w.length;){var a=w.shift();if(a.pattern)throw new Error("You cannot override a type's .pattern at runtime.");b.extend(u[a.name],l.invoke(a.def))}}function k(a){R(this,a||{})}U=this;var l,m=!1,p=!0,q=!1,u={},v=!0,w=[],x={string:{encode:a,decode:e,is:function(a){return null==a||!L(a)||"string"==typeof a},pattern:/[^\/]*/},"int":{encode:a,decode:function(a){return parseInt(a,10)},is:function(a){return L(a)&&this.decode(a.toString())===a},pattern:/\d+/},bool:{encode:function(a){return a?1:0},decode:function(a){return 0!==parseInt(a,10)},is:function(a){return a===!0||a===!1},pattern:/0|1/},date:{encode:function(a){return this.is(a)?[a.getFullYear(),("0"+(a.getMonth()+1)).slice(-2),("0"+a.getDate()).slice(-2)].join("-"):c},decode:function(a){if(this.is(a))return a;var b=this.capture.exec(a);return b?new Date(b[1],b[2]-1,b[3]):c},is:function(a){return a instanceof Date&&!isNaN(a.valueOf())},equals:function(a,b){return this.is(a)&&this.is(b)&&a.toISOString()===b.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:b.toJson,decode:b.fromJson,is:b.isObject,equals:b.equals,pattern:/[^\/]*/},any:{encode:b.identity,decode:b.identity,equals:b.equals,pattern:/.*/}};t.$$getDefaultValue=function(a){if(!i(a.value))return a.value;if(!l)throw new Error("Injectable functions cannot be called at configuration time");return l.invoke(a.value)},this.caseInsensitive=function(a){return L(a)&&(m=a),m},this.strictMode=function(a){return L(a)&&(p=a),p},this.defaultSquashPolicy=function(a){if(!L(a))return q;if(a!==!0&&a!==!1&&!N(a))throw new Error("Invalid squash policy: "+a+". Valid policies: false, true, arbitrary-string");return q=a,a},this.compile=function(a,b){return new r(a,R(f(),b))},this.isMatcher=function(a){if(!O(a))return!1;var b=!0;return Q(r.prototype,function(c,d){M(c)&&(b=b&&L(a[d])&&M(a[d]))}),b},this.type=function(a,b,c){if(!L(b))return u[a];if(u.hasOwnProperty(a))throw new Error("A type named '"+a+"' has already been defined.");return u[a]=new s(R({name:a},b)),c&&(w.push({name:a,def:c}),v||j()),this},Q(x,function(a,b){u[b]=new s(R({name:b},a))}),u=d(u,{}),this.$get=["$injector",function(a){return l=a,v=!1,j(),Q(x,function(a,b){u[b]||(u[b]=new s(a))}),this}],this.Param=function(a,d,e,f){function j(a){var b=O(a)?g(a):[],c=-1===h(b,"value")&&-1===h(b,"type")&&-1===h(b,"squash")&&-1===h(b,"array");return c&&(a={value:a}),a.$$fn=i(a.value)?a.value:function(){return a.value},a}function k(c,d,e){if(c.type&&d)throw new Error("Param '"+a+"' has two type configurations.");return d?d:c.type?b.isString(c.type)?u[c.type]:c.type instanceof s?c.type:new s(c.type):"config"===e?u.any:u.string}function m(){var b={array:"search"===f?"auto":!1},c=a.match(/\[\]$/)?{array:!0}:{};return R(b,c,e).array}function p(a,b){var c=a.squash;if(!b||c===!1)return!1;if(!L(c)||null==c)return q;if(c===!0||N(c))return c;throw new Error("Invalid squash policy: '"+c+"'. Valid policies: false, true, or arbitrary string")}function r(a,b,d,e){var f,g,i=[{from:"",to:d||b?c:""},{from:null,to:d||b?c:""}];return f=P(a.replace)?a.replace:[],N(e)&&f.push({from:e,to:c}),g=o(f,function(a){return a.from}),n(i,function(a){return-1===h(g,a.from)}).concat(f)}function t(){if(!l)throw new Error("Injectable functions cannot be called at configuration time");var a=l.invoke(e.$$fn);if(null!==a&&a!==c&&!x.type.is(a))throw new Error("Default value ("+a+") for parameter '"+x.id+"' is not an instance of Type ("+x.type.name+")");return a}function v(a){function b(a){return function(b){return b.from===a}}function c(a){var c=o(n(x.replace,b(a)),function(a){return a.to});return c.length?c[0]:a}return a=c(a),L(a)?x.type.$normalize(a):t()}function w(){return"{Param:"+a+" "+d+" squash: '"+A+"' optional: "+z+"}"}var x=this;e=j(e),d=k(e,d,f);var y=m();d=y?d.$asArray(y,"search"===f):d,"string"!==d.name||y||"path"!==f||e.value!==c||(e.value="");var z=e.value!==c,A=p(e,z),B=r(e,y,z,A);R(this,{id:a,type:d,location:f,array:y,squash:A,replace:B,isOptional:z,value:v,dynamic:c,config:e,toString:w})},k.prototype={$$new:function(){return d(this,R(new k,{$$parent:this}))},$$keys:function(){for(var a=[],b=[],c=this,d=g(k.prototype);c;)b.push(c),c=c.$$parent;return b.reverse(),Q(b,function(b){Q(g(b),function(b){-1===h(a,b)&&-1===h(d,b)&&a.push(b)})}),a},$$values:function(a){var b={},c=this;return Q(c.$$keys(),function(d){b[d]=c[d].value(a&&a[d])}),b},$$equals:function(a,b){var c=!0,d=this;return Q(d.$$keys(),function(e){var f=a&&a[e],g=b&&b[e];d[e].type.equals(f,g)||(c=!1)}),c},$$validates:function(a){var d,e,f,g,h,i=this.$$keys();for(d=0;d<i.length&&(e=this[i[d]],f=a[i[d]],f!==c&&null!==f||!e.isOptional);d++){if(g=e.type.$normalize(f),!e.type.is(g))return!1;if(h=e.type.encode(g),b.isString(h)&&!e.type.pattern.exec(h))return!1}return!0},$$parent:c},this.ParamSet=k}function u(a,d){function e(a){var b=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(a.source);return null!=b?b[1].replace(/\\(.)/g,"$1"):""}function f(a,b){return a.replace(/\$(\$|\d{1,2})/,function(a,c){return b["$"===c?0:Number(c)]})}function g(a,b,c){if(!c)return!1;var d=a.invoke(b,b,{$match:c});return L(d)?d:!0}function h(d,e,f,g,h){function m(a,b,c){return"/"===q?a:b?q.slice(0,-1)+a:c?q.slice(1)+a:a}function n(a){function b(a){var b=a(f,d);return b?(N(b)&&d.replace().url(b),!0):!1}if(!a||!a.defaultPrevented){p&&d.url()===p;p=c;var e,g=j.length;for(e=0;g>e;e++)if(b(j[e]))return;k&&b(k)}}function o(){return i=i||e.$on("$locationChangeSuccess",n)}var p,q=g.baseHref(),r=d.url();return l||o(),{sync:function(){n()},listen:function(){return o()},update:function(a){return a?void(r=d.url()):void(d.url()!==r&&(d.url(r),d.replace()))},push:function(a,b,e){var f=a.format(b||{});null!==f&&b&&b["#"]&&(f+="#"+b["#"]),d.url(f),p=e&&e.$$avoidResync?d.url():c,e&&e.replace&&d.replace()},href:function(c,e,f){if(!c.validates(e))return null;var g=a.html5Mode();b.isObject(g)&&(g=g.enabled),g=g&&h.history;var i=c.format(e);if(f=f||{},g||null===i||(i="#"+a.hashPrefix()+i),null!==i&&e&&e["#"]&&(i+="#"+e["#"]),i=m(i,g,f.absolute),!f.absolute||!i)return i;var j=!g&&i?"/":"",k=d.port();return k=80===k||443===k?"":":"+k,[d.protocol(),"://",d.host(),k,j,i].join("")}}}var i,j=[],k=null,l=!1;this.rule=function(a){if(!M(a))throw new Error("'rule' must be a function");return j.push(a),this},this.otherwise=function(a){if(N(a)){var b=a;a=function(){return b}}else if(!M(a))throw new Error("'rule' must be a function");return k=a,this},this.when=function(a,b){var c,h=N(b);if(N(a)&&(a=d.compile(a)),!h&&!M(b)&&!P(b))throw new Error("invalid 'handler' in when()");var i={matcher:function(a,b){return h&&(c=d.compile(b),b=["$match",function(a){return c.format(a)}]),R(function(c,d){return g(c,b,a.exec(d.path(),d.search()))},{prefix:N(a.prefix)?a.prefix:""})},regex:function(a,b){if(a.global||a.sticky)throw new Error("when() RegExp must not be global or sticky");return h&&(c=b,b=["$match",function(a){return f(c,a)}]),R(function(c,d){return g(c,b,a.exec(d.path()))},{prefix:e(a)})}},j={matcher:d.isMatcher(a),regex:a instanceof RegExp};for(var k in j)if(j[k])return this.rule(i[k](a,b));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(a){a===c&&(a=!0),l=a},this.$get=h,h.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function v(a,e){function f(a){return 0===a.indexOf(".")||0===a.indexOf("^")}function m(a,b){if(!a)return c;var d=N(a),e=d?a:a.name,g=f(e);if(g){if(!b)throw new Error("No reference point given for path '"+e+"'");b=m(b);for(var h=e.split("."),i=0,j=h.length,k=b;j>i;i++)if(""!==h[i]||0!==i){if("^"!==h[i])break;if(!k.parent)throw new Error("Path '"+e+"' not valid for state '"+b.name+"'");k=k.parent}else k=b;h=h.slice(i).join("."),e=k.name+(k.name&&h?".":"")+h}var l=z[e];return!l||!d&&(d||l!==a&&l.self!==a)?c:l}function n(a,b){A[a]||(A[a]=[]),A[a].push(b)}function p(a){for(var b=A[a]||[];b.length;)q(b.shift())}function q(b){b=d(b,{self:b,resolve:b.resolve||{},toString:function(){return this.name}});var c=b.name;if(!N(c)||c.indexOf("@")>=0)throw new Error("State must have a valid name");if(z.hasOwnProperty(c))throw new Error("State '"+c+"' is already defined");var e=-1!==c.indexOf(".")?c.substring(0,c.lastIndexOf(".")):N(b.parent)?b.parent:O(b.parent)&&N(b.parent.name)?b.parent.name:"";if(e&&!z[e])return n(e,b.self);for(var f in C)M(C[f])&&(b[f]=C[f](b,C.$delegates[f]));return z[c]=b,!b[B]&&b.url&&a.when(b.url,["$match","$stateParams",function(a,c){y.$current.navigable==b&&j(a,c)||y.transitionTo(b,a,{inherit:!0,location:!1})}]),p(c),b}function r(a){return a.indexOf("*")>-1}function s(a){for(var b=a.split("."),c=y.$current.name.split("."),d=0,e=b.length;e>d;d++)"*"===b[d]&&(c[d]="*");return"**"===b[0]&&(c=c.slice(h(c,b[1])),c.unshift("**")),"**"===b[b.length-1]&&(c.splice(h(c,b[b.length-2])+1,Number.MAX_VALUE),c.push("**")),b.length!=c.length?!1:c.join("")===b.join("")}function t(a,b){return N(a)&&!L(b)?C[a]:M(b)&&N(a)?(C[a]&&!C.$delegates[a]&&(C.$delegates[a]=C[a]),C[a]=b,this):this}function u(a,b){return O(a)?b=a:b.name=a,q(b),this}function v(a,e,f,h,l,n,p,q,t){function u(b,c,d,f){var g=a.$broadcast("$stateNotFound",b,c,d);if(g.defaultPrevented)return p.update(),D;if(!g.retry)return null;if(f.$retry)return p.update(),E;var h=y.transition=e.when(g.retry);return h.then(function(){return h!==y.transition?A:(b.options.$retry=!0,y.transitionTo(b.to,b.toParams,b.options))},function(){return D}),p.update(),h}function v(a,c,d,g,i,j){function m(){var c=[];return Q(a.views,function(d,e){var g=d.resolve&&d.resolve!==a.resolve?d.resolve:{};g.$template=[function(){return f.load(e,{view:d,locals:i.globals,params:n,notify:j.notify})||""}],c.push(l.resolve(g,i.globals,i.resolve,a).then(function(c){if(M(d.controllerProvider)||P(d.controllerProvider)){var f=b.extend({},g,i.globals);c.$$controller=h.invoke(d.controllerProvider,null,f)}else c.$$controller=d.controller;c.$$state=a,c.$$controllerAs=d.controllerAs,i[e]=c}))}),e.all(c).then(function(){return i.globals})}var n=d?c:k(a.params.$$keys(),c),o={$stateParams:n};i.resolve=l.resolve(a.resolve,o,i.resolve,a);var p=[i.resolve.then(function(a){i.globals=a})];return g&&p.push(g),e.all(p).then(m).then(function(a){return i})}var A=e.reject(new Error("transition superseded")),C=e.reject(new Error("transition prevented")),D=e.reject(new Error("transition aborted")),E=e.reject(new Error("transition failed"));return x.locals={resolve:null,globals:{$stateParams:{}}},y={params:{},current:x.self,$current:x,transition:null},y.reload=function(a){return y.transitionTo(y.current,n,{reload:a||!0,inherit:!1,notify:!0})},y.go=function(a,b,c){return y.transitionTo(a,b,R({inherit:!0,relative:y.$current},c))},y.transitionTo=function(b,c,f){c=c||{},f=R({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},f||{});var g,j=y.$current,l=y.params,o=j.path,q=m(b,f.relative),r=c["#"];if(!L(q)){var s={to:b,toParams:c,options:f},t=u(s,j.self,l,f);if(t)return t;if(b=s.to,c=s.toParams,f=s.options,q=m(b,f.relative),!L(q)){if(!f.relative)throw new Error("No such state '"+b+"'");throw new Error("Could not resolve '"+b+"' from state '"+f.relative+"'")}}if(q[B])throw new Error("Cannot transition to abstract state '"+b+"'");if(f.inherit&&(c=i(n,c||{},y.$current,q)),!q.params.$$validates(c))return E;c=q.params.$$values(c),b=q;var z=b.path,D=0,F=z[D],G=x.locals,H=[];if(f.reload){if(N(f.reload)||O(f.reload)){if(O(f.reload)&&!f.reload.name)throw new Error("Invalid reload state object");var I=f.reload===!0?o[0]:m(f.reload);if(f.reload&&!I)throw new Error("No such reload state '"+(N(f.reload)?f.reload:f.reload.name)+"'");for(;F&&F===o[D]&&F!==I;)G=H[D]=F.locals,D++,F=z[D]}}else for(;F&&F===o[D]&&F.ownParams.$$equals(c,l);)G=H[D]=F.locals,D++,F=z[D];if(w(b,c,j,l,G,f))return r&&(c["#"]=r),y.params=c,S(y.params,n),S(k(b.params.$$keys(),n),b.locals.globals.$stateParams),f.location&&b.navigable&&b.navigable.url&&(p.push(b.navigable.url,c,{$$avoidResync:!0,replace:"replace"===f.location}),p.update(!0)),y.transition=null,e.when(y.current);if(c=k(b.params.$$keys(),c||{}),r&&(c["#"]=r),f.notify&&a.$broadcast("$stateChangeStart",b.self,c,j.self,l,f).defaultPrevented)return a.$broadcast("$stateChangeCancel",b.self,c,j.self,l),null==y.transition&&p.update(),C;for(var J=e.when(G),K=D;K<z.length;K++,F=z[K])G=H[K]=d(G),J=v(F,c,F===b,J,G,f);var M=y.transition=J.then(function(){var d,e,g;if(y.transition!==M)return A;for(d=o.length-1;d>=D;d--)g=o[d],g.self.onExit&&h.invoke(g.self.onExit,g.self,g.locals.globals),g.locals=null;for(d=D;d<z.length;d++)e=z[d],e.locals=H[d],e.self.onEnter&&h.invoke(e.self.onEnter,e.self,e.locals.globals);return y.transition!==M?A:(y.$current=b,y.current=b.self,y.params=c,S(y.params,n),y.transition=null,f.location&&b.navigable&&p.push(b.navigable.url,b.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===f.location}),f.notify&&a.$broadcast("$stateChangeSuccess",b.self,c,j.self,l),p.update(!0),y.current)},function(d){return y.transition!==M?A:(y.transition=null,g=a.$broadcast("$stateChangeError",b.self,c,j.self,l,d),g.defaultPrevented||p.update(),e.reject(d))});return M},y.is=function(a,b,d){d=R({relative:y.$current},d||{});var e=m(a,d.relative);return L(e)?y.$current!==e?!1:b?j(e.params.$$values(b),n):!0:c},y.includes=function(a,b,d){if(d=R({relative:y.$current},d||{}),N(a)&&r(a)){if(!s(a))return!1;a=y.$current.name}var e=m(a,d.relative);return L(e)?L(y.$current.includes[e.name])?b?j(e.params.$$values(b),n,g(b)):!0:!1:c},y.href=function(a,b,d){d=R({lossy:!0,inherit:!0,absolute:!1,relative:y.$current},d||{});var e=m(a,d.relative);if(!L(e))return null;d.inherit&&(b=i(n,b||{},y.$current,e));var f=e&&d.lossy?e.navigable:e;return f&&f.url!==c&&null!==f.url?p.href(f.url,k(e.params.$$keys().concat("#"),b||{}),{absolute:d.absolute}):null},y.get=function(a,b){if(0===arguments.length)return o(g(z),function(a){return z[a].self});var c=m(a,b||y.$current);return c&&c.self?c.self:null},y}function w(a,b,c,d,e,f){function g(a,b,c){function d(b){return"search"!=a.params[b].location}var e=a.params.$$keys().filter(d),f=l.apply({},[a.params].concat(e)),g=new U.ParamSet(f);return g.$$equals(b,c)}return!f.reload&&a===c&&(e===c.locals||a.self.reloadOnSearch===!1&&g(c,d,b))?!0:void 0}var x,y,z={},A={},B="abstract",C={parent:function(a){if(L(a.parent)&&a.parent)return m(a.parent);var b=/^(.+)\.[^.]+$/.exec(a.name);return b?m(b[1]):x},data:function(a){return a.parent&&a.parent.data&&(a.data=a.self.data=d(a.parent.data,a.data)),a.data},url:function(a){var b=a.url,c={params:a.params||{}};if(N(b))return"^"==b.charAt(0)?e.compile(b.substring(1),c):(a.parent.navigable||x).url.concat(b,c);if(!b||e.isMatcher(b))return b;throw new Error("Invalid url '"+b+"' in state '"+a+"'")},navigable:function(a){return a.url?a:a.parent?a.parent.navigable:null},ownParams:function(a){var b=a.url&&a.url.params||new U.ParamSet;return Q(a.params||{},function(a,c){b[c]||(b[c]=new U.Param(c,null,a,"config"))}),b},params:function(a){var b=l(a.ownParams,a.ownParams.$$keys());return a.parent&&a.parent.params?R(a.parent.params.$$new(),b):new U.ParamSet},views:function(a){var b={};return Q(L(a.views)?a.views:{"":a},function(c,d){d.indexOf("@")<0&&(d+="@"+a.parent.name),b[d]=c}),b},path:function(a){return a.parent?a.parent.path.concat(a):[]},includes:function(a){var b=a.parent?R({},a.parent.includes):{};return b[a.name]=!0,b},$delegates:{}};x=q({name:"",url:"^",views:null,"abstract":!0}),x.navigable=null,this.decorator=t,this.state=u,this.$get=v,v.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function w(){function a(a,b){return{load:function(a,c){var d,e={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return c=R(e,c),c.view&&(d=b.fromConfig(c.view,c.params,c.locals)),d}}}this.$get=a,a.$inject=["$rootScope","$templateFactory"]}function x(){var a=!1;this.useAnchorScroll=function(){a=!0},this.$get=["$anchorScroll","$timeout",function(b,c){return a?b:function(a){return c(function(){a[0].scrollIntoView()},0,!1)}}]}function y(a,c,d,e){function f(){return c.has?function(a){return c.has(a)?c.get(a):null}:function(a){try{return c.get(a)}catch(b){return null}}}function g(a,c){function d(a){return 1===V&&W>=4?!!j.enabled(a):1===V&&W>=2?!!j.enabled():!!i}var e={enter:function(a,b,c){b.after(a),c()},leave:function(a,b){a.remove(),b()}};if(a.noanimation)return e;if(j)return{enter:function(a,c,f){d(a)?b.version.minor>2?j.enter(a,null,c).then(f):j.enter(a,null,c,f):e.enter(a,c,f)},leave:function(a,c){d(a)?b.version.minor>2?j.leave(a).then(c):j.leave(a,c):e.leave(a,c)}};if(i){var f=i&&i(c,a);return{enter:function(a,b,c){f.enter(a,null,b),c()},leave:function(a,b){f.leave(a),b()}}}return e}var h=f(),i=h("$animator"),j=h("$animate"),k={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(c,f,h){return function(c,f,i){function j(){function a(){b&&b.remove(),c&&c.$destroy()}var b=l,c=n;c&&(c._willBeDestroyed=!0),m?(r.leave(m,function(){a(),l=null}),l=m):(a(),l=null),m=null,n=null}function k(g){var k,l=A(c,i,f,e),s=l&&a.$current&&a.$current.locals[l];if((g||s!==o)&&!c._willBeDestroyed){k=c.$new(),o=a.$current.locals[l],k.$emit("$viewContentLoading",l);var t=h(k,function(a){r.enter(a,f,function(){n&&n.$emit("$viewContentAnimationEnded"),(b.isDefined(q)&&!q||c.$eval(q))&&d(a)}),j()});m=t,n=k,n.$emit("$viewContentLoaded",l),n.$eval(p)}}var l,m,n,o,p=i.onload||"",q=i.autoscroll,r=g(i,c);c.$on("$stateChangeSuccess",function(){k(!1)}),k(!0)}}};return k}function z(a,b,c,d){return{restrict:"ECA",priority:-400,compile:function(e){var f=e.html();return function(e,g,h){var i=c.$current,j=A(e,h,g,d),k=i&&i.locals[j];if(k){g.data("$uiView",{name:j,state:k.$$state}),g.html(k.$template?k.$template:f);var l=a(g.contents());if(k.$$controller){k.$scope=e,k.$element=g;var m=b(k.$$controller,k);k.$$controllerAs&&(e[k.$$controllerAs]=m),g.data("$ngControllerController",m),g.children().data("$ngControllerController",m)}l(e)}}}}}function A(a,b,c,d){var e=d(b.uiView||b.name||"")(a),f=c.inheritedData("$uiView");return e.indexOf("@")>=0?e:e+"@"+(f?f.state.name:"")}function B(a,b){var c,d=a.match(/^\s*({[^}]*})\s*$/);if(d&&(a=b+"("+d[1]+")"),c=a.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!c||4!==c.length)throw new Error("Invalid state ref '"+a+"'");return{state:c[1],paramExpr:c[3]||null}}function C(a){var b=a.parent().inheritedData("$uiView");return b&&b.state&&b.state.name?b.state:void 0}function D(a){var b="[object SVGAnimatedString]"===Object.prototype.toString.call(a.prop("href")),c="FORM"===a[0].nodeName;return{attr:c?"action":b?"xlink:href":"href",isAnchor:"A"===a.prop("tagName").toUpperCase(),clickable:!c}}function E(a,b,c,d,e){return function(f){var g=f.which||f.button,h=e();if(!(g>1||f.ctrlKey||f.metaKey||f.shiftKey||a.attr("target"))){var i=c(function(){b.go(h.state,h.params,h.options)});f.preventDefault();var j=d.isAnchor&&!h.href?1:0;f.preventDefault=function(){j--<=0&&c.cancel(i)}}}}function F(a,b){return{relative:C(a)||b.$current,inherit:!0}}function G(a,c){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(d,e,f,g){var h=B(f.uiSref,a.current.name),i={state:h.state,href:null,params:null},j=D(e),k=g[1]||g[0];i.options=R(F(e,a),f.uiSrefOpts?d.$eval(f.uiSrefOpts):{});var l=function(c){c&&(i.params=b.copy(c)),i.href=a.href(h.state,i.params,i.options),k&&k.$$addStateInfo(h.state,i.params),null!==i.href&&f.$set(j.attr,i.href)};h.paramExpr&&(d.$watch(h.paramExpr,function(a){a!==i.params&&l(a)},!0),i.params=b.copy(d.$eval(h.paramExpr))),l(),j.clickable&&e.bind("click",E(e,a,c,j,function(){return i}))}}}function H(a,b){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(c,d,e,f){function g(b){l.state=b[0],l.params=b[1],l.options=b[2],l.href=a.href(l.state,l.params,l.options),i&&i.$$addStateInfo(l.state,l.params),l.href&&e.$set(h.attr,l.href)}var h=D(d),i=f[1]||f[0],j=[e.uiState,e.uiStateParams||null,e.uiStateOpts||null],k="["+j.map(function(a){return a||"null"}).join(", ")+"]",l={state:null,params:null,options:null,href:null};c.$watch(k,g,!0),g(c.$eval(k)),h.clickable&&d.bind("click",E(d,a,b,h,function(){return l}))}}}function I(a,b,c){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(b,d,e,f){function g(b,c,e){var f=a.get(b,C(d)),g=h(b,c);p.push({state:f||{name:b},params:c,hash:g}),q[g]=e}function h(a,c){if(!N(a))throw new Error("state should be a string");return O(c)?a+T(c):(c=b.$eval(c),O(c)?a+T(c):a)}function i(){for(var a=0;a<p.length;a++)l(p[a].state,p[a].params)?j(d,q[p[a].hash]):k(d,q[p[a].hash]),m(p[a].state,p[a].params)?j(d,n):k(d,n)}function j(a,b){f(function(){a.addClass(b)})}function k(a,b){a.removeClass(b)}function l(b,c){return a.includes(b.name,c)}function m(b,c){return a.is(b.name,c)}var n,o,p=[],q={};n=c(e.uiSrefActiveEq||"",!1)(b);try{o=b.$eval(e.uiSrefActive)}catch(r){}o=o||c(e.uiSrefActive||"",!1)(b),O(o)&&Q(o,function(c,d){if(N(c)){var e=B(c,a.current.name);g(e.state,b.$eval(e.paramExpr),d)}}),this.$$addStateInfo=function(a,b){O(o)&&p.length>0||(g(a,b,o),i())},b.$on("$stateChangeSuccess",i),i()}]}}function J(a){var b=function(b,c){return a.is(b,c)};return b.$stateful=!0,b}function K(a){var b=function(b,c,d){return a.includes(b,c,d)};return b.$stateful=!0,b}var L=b.isDefined,M=b.isFunction,N=b.isString,O=b.isObject,P=b.isArray,Q=b.forEach,R=b.extend,S=b.copy,T=b.toJson;b.module("ui.router.util",["ng"]),b.module("ui.router.router",["ui.router.util"]),b.module("ui.router.state",["ui.router.router","ui.router.util"]),b.module("ui.router",["ui.router.state"]),b.module("ui.router.compat",["ui.router"]),p.$inject=["$q","$injector"],b.module("ui.router.util").service("$resolve",p),q.$inject=["$http","$templateCache","$injector"],b.module("ui.router.util").service("$templateFactory",q);var U;r.prototype.concat=function(a,b){var c={caseInsensitive:U.caseInsensitive(),strict:U.strictMode(),squash:U.defaultSquashPolicy()};return new r(this.sourcePath+a+this.sourceSearch,R(c,b),this)},r.prototype.toString=function(){return this.source},r.prototype.exec=function(a,b){function c(a){function b(a){return a.split("").reverse().join("")}function c(a){return a.replace(/\\-/g,"-")}var d=b(a).split(/-(?!\\)/),e=o(d,b);return o(e,c).reverse()}var d=this.regexp.exec(a);if(!d)return null;b=b||{};var e,f,g,h=this.parameters(),i=h.length,j=this.segments.length-1,k={};if(j!==d.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");var l,m;for(e=0;j>e;e++){for(g=h[e],l=this.params[g],m=d[e+1],f=0;f<l.replace.length;f++)l.replace[f].from===m&&(m=l.replace[f].to);m&&l.array===!0&&(m=c(m)),L(m)&&(m=l.type.decode(m)),k[g]=l.value(m)}for(;i>e;e++){for(g=h[e],k[g]=this.params[g].value(b[g]),l=this.params[g],m=b[g],f=0;f<l.replace.length;f++)l.replace[f].from===m&&(m=l.replace[f].to);L(m)&&(m=l.type.decode(m)),k[g]=l.value(m)}return k},r.prototype.parameters=function(a){return L(a)?this.params[a]||null:this.$$paramNames},r.prototype.validates=function(a){return this.params.$$validates(a)},r.prototype.format=function(a){function b(a){return encodeURIComponent(a).replace(/-/g,function(a){return"%5C%"+a.charCodeAt(0).toString(16).toUpperCase()})}a=a||{};var c=this.segments,d=this.parameters(),e=this.params;if(!this.validates(a))return null;var f,g=!1,h=c.length-1,i=d.length,j=c[0];for(f=0;i>f;f++){var k=h>f,l=d[f],m=e[l],n=m.value(a[l]),p=m.isOptional&&m.type.equals(m.value(),n),q=p?m.squash:!1,r=m.type.encode(n);if(k){var s=c[f+1],t=f+1===h;if(q===!1)null!=r&&(j+=P(r)?o(r,b).join("-"):encodeURIComponent(r)),j+=s;else if(q===!0){var u=j.match(/\/$/)?/\/?(.*)/:/(.*)/;j+=s.match(u)[1]}else N(q)&&(j+=q+s);t&&m.squash===!0&&"/"===j.slice(-1)&&(j=j.slice(0,-1))}else{if(null==r||p&&q!==!1)continue;if(P(r)||(r=[r]),0===r.length)continue;r=o(r,encodeURIComponent).join("&"+l+"="),j+=(g?"&":"?")+(l+"="+r),g=!0}}return j},s.prototype.is=function(a,b){return!0},s.prototype.encode=function(a,b){return a},s.prototype.decode=function(a,b){return a},s.prototype.equals=function(a,b){return a==b},s.prototype.$subPattern=function(){var a=this.pattern.toString();return a.substr(1,a.length-2)},s.prototype.pattern=/.*/,s.prototype.toString=function(){return"{Type:"+this.name+"}"},s.prototype.$normalize=function(a){return this.is(a)?a:this.decode(a)},s.prototype.$asArray=function(a,b){function d(a,b){function d(a,b){return function(){return a[b].apply(a,arguments)}}function e(a){return P(a)?a:L(a)?[a]:[]}function f(a){switch(a.length){case 0:return c;case 1:return"auto"===b?a[0]:a;default:return a}}function g(a){return!a}function h(a,b){return function(c){if(P(c)&&0===c.length)return c;c=e(c);var d=o(c,a);return b===!0?0===n(d,g).length:f(d)}}function i(a){return function(b,c){var d=e(b),f=e(c);if(d.length!==f.length)return!1;for(var g=0;g<d.length;g++)if(!a(d[g],f[g]))return!1;return!0}}this.encode=h(d(a,"encode")),this.decode=h(d(a,"decode")),this.is=h(d(a,"is"),!0),this.equals=i(d(a,"equals")),this.pattern=a.pattern,this.$normalize=h(d(a,"$normalize")),this.name=a.name,this.$arrayMode=b}if(!a)return this;if("auto"===a&&!b)throw new Error("'auto' array mode is for query parameters only");return new d(this,a)},b.module("ui.router.util").provider("$urlMatcherFactory",t),b.module("ui.router.util").run(["$urlMatcherFactory",function(a){}]),u.$inject=["$locationProvider","$urlMatcherFactoryProvider"],b.module("ui.router.router").provider("$urlRouter",u),v.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],b.module("ui.router.state").factory("$stateParams",function(){return{}}).provider("$state",v),w.$inject=[],b.module("ui.router.state").provider("$view",w),b.module("ui.router.state").provider("$uiViewScroll",x);var V=b.version.major,W=b.version.minor;y.$inject=["$state","$injector","$uiViewScroll","$interpolate"],z.$inject=["$compile","$controller","$state","$interpolate"],b.module("ui.router.state").directive("uiView",y),b.module("ui.router.state").directive("uiView",z),G.$inject=["$state","$timeout"],H.$inject=["$state","$timeout"],I.$inject=["$state","$stateParams","$interpolate"],b.module("ui.router.state").directive("uiSref",G).directive("uiSrefActive",I).directive("uiSrefActiveEq",I).directive("uiState",H),
-J.$inject=["$state"],K.$inject=["$state"],b.module("ui.router.state").filter("isState",J).filter("includedByState",K)}(window,window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/common.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/common.js
deleted file mode 100644
index 54c724c4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/common.js
+++ /dev/null
@@ -1,293 +0,0 @@
-/*jshint globalstrict:true*/
-/*global angular:false*/
-'use strict';
-
-var isDefined = angular.isDefined,
- isFunction = angular.isFunction,
- isString = angular.isString,
- isObject = angular.isObject,
- isArray = angular.isArray,
- forEach = angular.forEach,
- extend = angular.extend,
- copy = angular.copy,
- toJson = angular.toJson;
-
-function inherit(parent, extra) {
- return extend(new (extend(function() {}, { prototype: parent }))(), extra);
-}
-
-function merge(dst) {
- forEach(arguments, function(obj) {
- if (obj !== dst) {
- forEach(obj, function(value, key) {
- if (!dst.hasOwnProperty(key)) dst[key] = value;
- });
- }
- });
- return dst;
-}
-
-/**
- * Finds the common ancestor path between two states.
- *
- * @param {Object} first The first state.
- * @param {Object} second The second state.
- * @return {Array} Returns an array of state names in descending order, not including the root.
- */
-function ancestors(first, second) {
- var path = [];
-
- for (var n in first.path) {
- if (first.path[n] !== second.path[n]) break;
- path.push(first.path[n]);
- }
- return path;
-}
-
-/**
- * IE8-safe wrapper for `Object.keys()`.
- *
- * @param {Object} object A JavaScript object.
- * @return {Array} Returns the keys of the object as an array.
- */
-function objectKeys(object) {
- if (Object.keys) {
- return Object.keys(object);
- }
- var result = [];
-
- forEach(object, function(val, key) {
- result.push(key);
- });
- return result;
-}
-
-/**
- * IE8-safe wrapper for `Array.prototype.indexOf()`.
- *
- * @param {Array} array A JavaScript array.
- * @param {*} value A value to search the array for.
- * @return {Number} Returns the array index value of `value`, or `-1` if not present.
- */
-function indexOf(array, value) {
- if (Array.prototype.indexOf) {
- return array.indexOf(value, Number(arguments[2]) || 0);
- }
- var len = array.length >>> 0, from = Number(arguments[2]) || 0;
- from = (from < 0) ? Math.ceil(from) : Math.floor(from);
-
- if (from < 0) from += len;
-
- for (; from < len; from++) {
- if (from in array && array[from] === value) return from;
- }
- return -1;
-}
-
-/**
- * Merges a set of parameters with all parameters inherited between the common parents of the
- * current state and a given destination state.
- *
- * @param {Object} currentParams The value of the current state parameters ($stateParams).
- * @param {Object} newParams The set of parameters which will be composited with inherited params.
- * @param {Object} $current Internal definition of object representing the current state.
- * @param {Object} $to Internal definition of object representing state to transition to.
- */
-function inheritParams(currentParams, newParams, $current, $to) {
- var parents = ancestors($current, $to), parentParams, inherited = {}, inheritList = [];
-
- for (var i in parents) {
- if (!parents[i] || !parents[i].params) continue;
- parentParams = objectKeys(parents[i].params);
- if (!parentParams.length) continue;
-
- for (var j in parentParams) {
- if (indexOf(inheritList, parentParams[j]) >= 0) continue;
- inheritList.push(parentParams[j]);
- inherited[parentParams[j]] = currentParams[parentParams[j]];
- }
- }
- return extend({}, inherited, newParams);
-}
-
-/**
- * Performs a non-strict comparison of the subset of two objects, defined by a list of keys.
- *
- * @param {Object} a The first object.
- * @param {Object} b The second object.
- * @param {Array} keys The list of keys within each object to compare. If the list is empty or not specified,
- * it defaults to the list of keys in `a`.
- * @return {Boolean} Returns `true` if the keys match, otherwise `false`.
- */
-function equalForKeys(a, b, keys) {
- if (!keys) {
- keys = [];
- for (var n in a) keys.push(n); // Used instead of Object.keys() for IE8 compatibility
- }
-
- for (var i=0; i<keys.length; i++) {
- var k = keys[i];
- if (a[k] != b[k]) return false; // Not '===', values aren't necessarily normalized
- }
- return true;
-}
-
-/**
- * Returns the subset of an object, based on a list of keys.
- *
- * @param {Array} keys
- * @param {Object} values
- * @return {Boolean} Returns a subset of `values`.
- */
-function filterByKeys(keys, values) {
- var filtered = {};
-
- forEach(keys, function (name) {
- filtered[name] = values[name];
- });
- return filtered;
-}
-
-// like _.indexBy
-// when you know that your index values will be unique, or you want last-one-in to win
-function indexBy(array, propName) {
- var result = {};
- forEach(array, function(item) {
- result[item[propName]] = item;
- });
- return result;
-}
-
-// extracted from underscore.js
-// Return a copy of the object only containing the whitelisted properties.
-function pick(obj) {
- var copy = {};
- var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
- forEach(keys, function(key) {
- if (key in obj) copy[key] = obj[key];
- });
- return copy;
-}
-
-// extracted from underscore.js
-// Return a copy of the object omitting the blacklisted properties.
-function omit(obj) {
- var copy = {};
- var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
- for (var key in obj) {
- if (indexOf(keys, key) == -1) copy[key] = obj[key];
- }
- return copy;
-}
-
-function pluck(collection, key) {
- var result = isArray(collection) ? [] : {};
-
- forEach(collection, function(val, i) {
- result[i] = isFunction(key) ? key(val) : val[key];
- });
- return result;
-}
-
-function filter(collection, callback) {
- var array = isArray(collection);
- var result = array ? [] : {};
- forEach(collection, function(val, i) {
- if (callback(val, i)) {
- result[array ? result.length : i] = val;
- }
- });
- return result;
-}
-
-function map(collection, callback) {
- var result = isArray(collection) ? [] : {};
-
- forEach(collection, function(val, i) {
- result[i] = callback(val, i);
- });
- return result;
-}
-
-/**
- * @ngdoc overview
- * @name ui.router.util
- *
- * @description
- * # ui.router.util sub-module
- *
- * This module is a dependency of other sub-modules. Do not include this module as a dependency
- * in your angular app (use {@link ui.router} module instead).
- *
- */
-angular.module('ui.router.util', ['ng']);
-
-/**
- * @ngdoc overview
- * @name ui.router.router
- *
- * @requires ui.router.util
- *
- * @description
- * # ui.router.router sub-module
- *
- * This module is a dependency of other sub-modules. Do not include this module as a dependency
- * in your angular app (use {@link ui.router} module instead).
- */
-angular.module('ui.router.router', ['ui.router.util']);
-
-/**
- * @ngdoc overview
- * @name ui.router.state
- *
- * @requires ui.router.router
- * @requires ui.router.util
- *
- * @description
- * # ui.router.state sub-module
- *
- * This module is a dependency of the main ui.router module. Do not include this module as a dependency
- * in your angular app (use {@link ui.router} module instead).
- *
- */
-angular.module('ui.router.state', ['ui.router.router', 'ui.router.util']);
-
-/**
- * @ngdoc overview
- * @name ui.router
- *
- * @requires ui.router.state
- *
- * @description
- * # ui.router
- *
- * ## The main module for ui.router
- * There are several sub-modules included with the ui.router module, however only this module is needed
- * as a dependency within your angular app. The other modules are for organization purposes.
- *
- * The modules are:
- * * ui.router - the main "umbrella" module
- * * ui.router.router -
- *
- * *You'll need to include **only** this module as the dependency within your angular app.*
- *
- * <pre>
- * <!doctype html>
- * <html ng-app="myApp">
- * <head>
- * <script src="js/angular.js"></script>
- * <!-- Include the ui-router script -->
- * <script src="js/angular-ui-router.min.js"></script>
- * <script>
- * // ...and add 'ui.router' as a dependency
- * var myApp = angular.module('myApp', ['ui.router']);
- * </script>
- * </head>
- * <body>
- * </body>
- * </html>
- * </pre>
- */
-angular.module('ui.router', ['ui.router.state']);
-
-angular.module('ui.router.compat', ['ui.router']);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/resolve.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/resolve.js
deleted file mode 100644
index 019338dd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/resolve.js
+++ /dev/null
@@ -1,252 +0,0 @@
-/**
- * @ngdoc object
- * @name ui.router.util.$resolve
- *
- * @requires $q
- * @requires $injector
- *
- * @description
- * Manages resolution of (acyclic) graphs of promises.
- */
-$Resolve.$inject = ['$q', '$injector'];
-function $Resolve( $q, $injector) {
-
- var VISIT_IN_PROGRESS = 1,
- VISIT_DONE = 2,
- NOTHING = {},
- NO_DEPENDENCIES = [],
- NO_LOCALS = NOTHING,
- NO_PARENT = extend($q.when(NOTHING), { $$promises: NOTHING, $$values: NOTHING });
-
-
- /**
- * @ngdoc function
- * @name ui.router.util.$resolve#study
- * @methodOf ui.router.util.$resolve
- *
- * @description
- * Studies a set of invocables that are likely to be used multiple times.
- * <pre>
- * $resolve.study(invocables)(locals, parent, self)
- * </pre>
- * is equivalent to
- * <pre>
- * $resolve.resolve(invocables, locals, parent, self)
- * </pre>
- * but the former is more efficient (in fact `resolve` just calls `study`
- * internally).
- *
- * @param {object} invocables Invocable objects
- * @return {function} a function to pass in locals, parent and self
- */
- this.study = function (invocables) {
- if (!isObject(invocables)) throw new Error("'invocables' must be an object");
- var invocableKeys = objectKeys(invocables || {});
-
- // Perform a topological sort of invocables to build an ordered plan
- var plan = [], cycle = [], visited = {};
- function visit(value, key) {
- if (visited[key] === VISIT_DONE) return;
-
- cycle.push(key);
- if (visited[key] === VISIT_IN_PROGRESS) {
- cycle.splice(0, indexOf(cycle, key));
- throw new Error("Cyclic dependency: " + cycle.join(" -> "));
- }
- visited[key] = VISIT_IN_PROGRESS;
-
- if (isString(value)) {
- plan.push(key, [ function() { return $injector.get(value); }], NO_DEPENDENCIES);
- } else {
- var params = $injector.annotate(value);
- forEach(params, function (param) {
- if (param !== key && invocables.hasOwnProperty(param)) visit(invocables[param], param);
- });
- plan.push(key, value, params);
- }
-
- cycle.pop();
- visited[key] = VISIT_DONE;
- }
- forEach(invocables, visit);
- invocables = cycle = visited = null; // plan is all that's required
-
- function isResolve(value) {
- return isObject(value) && value.then && value.$$promises;
- }
-
- return function (locals, parent, self) {
- if (isResolve(locals) && self === undefined) {
- self = parent; parent = locals; locals = null;
- }
- if (!locals) locals = NO_LOCALS;
- else if (!isObject(locals)) {
- throw new Error("'locals' must be an object");
- }
- if (!parent) parent = NO_PARENT;
- else if (!isResolve(parent)) {
- throw new Error("'parent' must be a promise returned by $resolve.resolve()");
- }
-
- // To complete the overall resolution, we have to wait for the parent
- // promise and for the promise for each invokable in our plan.
- var resolution = $q.defer(),
- result = resolution.promise,
- promises = result.$$promises = {},
- values = extend({}, locals),
- wait = 1 + plan.length/3,
- merged = false;
-
- function done() {
- // Merge parent values we haven't got yet and publish our own $$values
- if (!--wait) {
- if (!merged) merge(values, parent.$$values);
- result.$$values = values;
- result.$$promises = result.$$promises || true; // keep for isResolve()
- delete result.$$inheritedValues;
- resolution.resolve(values);
- }
- }
-
- function fail(reason) {
- result.$$failure = reason;
- resolution.reject(reason);
- }
-
- // Short-circuit if parent has already failed
- if (isDefined(parent.$$failure)) {
- fail(parent.$$failure);
- return result;
- }
-
- if (parent.$$inheritedValues) {
- merge(values, omit(parent.$$inheritedValues, invocableKeys));
- }
-
- // Merge parent values if the parent has already resolved, or merge
- // parent promises and wait if the parent resolve is still in progress.
- extend(promises, parent.$$promises);
- if (parent.$$values) {
- merged = merge(values, omit(parent.$$values, invocableKeys));
- result.$$inheritedValues = omit(parent.$$values, invocableKeys);
- done();
- } else {
- if (parent.$$inheritedValues) {
- result.$$inheritedValues = omit(parent.$$inheritedValues, invocableKeys);
- }
- parent.then(done, fail);
- }
-
- // Process each invocable in the plan, but ignore any where a local of the same name exists.
- for (var i=0, ii=plan.length; i<ii; i+=3) {
- if (locals.hasOwnProperty(plan[i])) done();
- else invoke(plan[i], plan[i+1], plan[i+2]);
- }
-
- function invoke(key, invocable, params) {
- // Create a deferred for this invocation. Failures will propagate to the resolution as well.
- var invocation = $q.defer(), waitParams = 0;
- function onfailure(reason) {
- invocation.reject(reason);
- fail(reason);
- }
- // Wait for any parameter that we have a promise for (either from parent or from this
- // resolve; in that case study() will have made sure it's ordered before us in the plan).
- forEach(params, function (dep) {
- if (promises.hasOwnProperty(dep) && !locals.hasOwnProperty(dep)) {
- waitParams++;
- promises[dep].then(function (result) {
- values[dep] = result;
- if (!(--waitParams)) proceed();
- }, onfailure);
- }
- });
- if (!waitParams) proceed();
- function proceed() {
- if (isDefined(result.$$failure)) return;
- try {
- invocation.resolve($injector.invoke(invocable, self, values));
- invocation.promise.then(function (result) {
- values[key] = result;
- done();
- }, onfailure);
- } catch (e) {
- onfailure(e);
- }
- }
- // Publish promise synchronously; invocations further down in the plan may depend on it.
- promises[key] = invocation.promise;
- }
-
- return result;
- };
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$resolve#resolve
- * @methodOf ui.router.util.$resolve
- *
- * @description
- * Resolves a set of invocables. An invocable is a function to be invoked via
- * `$injector.invoke()`, and can have an arbitrary number of dependencies.
- * An invocable can either return a value directly,
- * or a `$q` promise. If a promise is returned it will be resolved and the
- * resulting value will be used instead. Dependencies of invocables are resolved
- * (in this order of precedence)
- *
- * - from the specified `locals`
- * - from another invocable that is part of this `$resolve` call
- * - from an invocable that is inherited from a `parent` call to `$resolve`
- * (or recursively
- * - from any ancestor `$resolve` of that parent).
- *
- * The return value of `$resolve` is a promise for an object that contains
- * (in this order of precedence)
- *
- * - any `locals` (if specified)
- * - the resolved return values of all injectables
- * - any values inherited from a `parent` call to `$resolve` (if specified)
- *
- * The promise will resolve after the `parent` promise (if any) and all promises
- * returned by injectables have been resolved. If any invocable
- * (or `$injector.invoke`) throws an exception, or if a promise returned by an
- * invocable is rejected, the `$resolve` promise is immediately rejected with the
- * same error. A rejection of a `parent` promise (if specified) will likewise be
- * propagated immediately. Once the `$resolve` promise has been rejected, no
- * further invocables will be called.
- *
- * Cyclic dependencies between invocables are not permitted and will cause `$resolve`
- * to throw an error. As a special case, an injectable can depend on a parameter
- * with the same name as the injectable, which will be fulfilled from the `parent`
- * injectable of the same name. This allows inherited values to be decorated.
- * Note that in this case any other injectable in the same `$resolve` with the same
- * dependency would see the decorated value, not the inherited value.
- *
- * Note that missing dependencies -- unlike cyclic dependencies -- will cause an
- * (asynchronous) rejection of the `$resolve` promise rather than a (synchronous)
- * exception.
- *
- * Invocables are invoked eagerly as soon as all dependencies are available.
- * This is true even for dependencies inherited from a `parent` call to `$resolve`.
- *
- * As a special case, an invocable can be a string, in which case it is taken to
- * be a service name to be passed to `$injector.get()`. This is supported primarily
- * for backwards-compatibility with the `resolve` property of `$routeProvider`
- * routes.
- *
- * @param {object} invocables functions to invoke or
- * `$injector` services to fetch.
- * @param {object} locals values to make available to the injectables
- * @param {object} parent a promise returned by another call to `$resolve`.
- * @param {object} self the `this` for the invoked methods
- * @return {object} Promise for an object that contains the resolved return value
- * of all invocables, as well as any inherited and local values.
- */
- this.resolve = function (invocables, locals, parent, self) {
- return this.study(invocables)(locals, parent, self);
- };
-}
-
-angular.module('ui.router.util').service('$resolve', $Resolve);
-
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/state.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/state.js
deleted file mode 100644
index 34e4f87d..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/state.js
+++ /dev/null
@@ -1,1470 +0,0 @@
-/**
- * @ngdoc object
- * @name ui.router.state.$stateProvider
- *
- * @requires ui.router.router.$urlRouterProvider
- * @requires ui.router.util.$urlMatcherFactoryProvider
- *
- * @description
- * The new `$stateProvider` works similar to Angular's v1 router, but it focuses purely
- * on state.
- *
- * A state corresponds to a "place" in the application in terms of the overall UI and
- * navigation. A state describes (via the controller / template / view properties) what
- * the UI looks like and does at that place.
- *
- * States often have things in common, and the primary way of factoring out these
- * commonalities in this model is via the state hierarchy, i.e. parent/child states aka
- * nested states.
- *
- * The `$stateProvider` provides interfaces to declare these states for your app.
- */
-$StateProvider.$inject = ['$urlRouterProvider', '$urlMatcherFactoryProvider'];
-function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
-
- var root, states = {}, $state, queue = {}, abstractKey = 'abstract';
-
- // Builds state properties from definition passed to registerState()
- var stateBuilder = {
-
- // Derive parent state from a hierarchical name only if 'parent' is not explicitly defined.
- // state.children = [];
- // if (parent) parent.children.push(state);
- parent: function(state) {
- if (isDefined(state.parent) && state.parent) return findState(state.parent);
- // regex matches any valid composite state name
- // would match "contact.list" but not "contacts"
- var compositeName = /^(.+)\.[^.]+$/.exec(state.name);
- return compositeName ? findState(compositeName[1]) : root;
- },
-
- // inherit 'data' from parent and override by own values (if any)
- data: function(state) {
- if (state.parent && state.parent.data) {
- state.data = state.self.data = inherit(state.parent.data, state.data);
- }
- return state.data;
- },
-
- // Build a URLMatcher if necessary, either via a relative or absolute URL
- url: function(state) {
- var url = state.url, config = { params: state.params || {} };
-
- if (isString(url)) {
- if (url.charAt(0) == '^') return $urlMatcherFactory.compile(url.substring(1), config);
- return (state.parent.navigable || root).url.concat(url, config);
- }
-
- if (!url || $urlMatcherFactory.isMatcher(url)) return url;
- throw new Error("Invalid url '" + url + "' in state '" + state + "'");
- },
-
- // Keep track of the closest ancestor state that has a URL (i.e. is navigable)
- navigable: function(state) {
- return state.url ? state : (state.parent ? state.parent.navigable : null);
- },
-
- // Own parameters for this state. state.url.params is already built at this point. Create and add non-url params
- ownParams: function(state) {
- var params = state.url && state.url.params || new $$UMFP.ParamSet();
- forEach(state.params || {}, function(config, id) {
- if (!params[id]) params[id] = new $$UMFP.Param(id, null, config, "config");
- });
- return params;
- },
-
- // Derive parameters for this state and ensure they're a super-set of parent's parameters
- params: function(state) {
- var ownParams = pick(state.ownParams, state.ownParams.$$keys());
- return state.parent && state.parent.params ? extend(state.parent.params.$$new(), ownParams) : new $$UMFP.ParamSet();
- },
-
- // If there is no explicit multi-view configuration, make one up so we don't have
- // to handle both cases in the view directive later. Note that having an explicit
- // 'views' property will mean the default unnamed view properties are ignored. This
- // is also a good time to resolve view names to absolute names, so everything is a
- // straight lookup at link time.
- views: function(state) {
- var views = {};
-
- forEach(isDefined(state.views) ? state.views : { '': state }, function (view, name) {
- if (name.indexOf('@') < 0) name += '@' + state.parent.name;
- views[name] = view;
- });
- return views;
- },
-
- // Keep a full path from the root down to this state as this is needed for state activation.
- path: function(state) {
- return state.parent ? state.parent.path.concat(state) : []; // exclude root from path
- },
-
- // Speed up $state.contains() as it's used a lot
- includes: function(state) {
- var includes = state.parent ? extend({}, state.parent.includes) : {};
- includes[state.name] = true;
- return includes;
- },
-
- $delegates: {}
- };
-
- function isRelative(stateName) {
- return stateName.indexOf(".") === 0 || stateName.indexOf("^") === 0;
- }
-
- function findState(stateOrName, base) {
- if (!stateOrName) return undefined;
-
- var isStr = isString(stateOrName),
- name = isStr ? stateOrName : stateOrName.name,
- path = isRelative(name);
-
- if (path) {
- if (!base) throw new Error("No reference point given for path '" + name + "'");
- base = findState(base);
-
- var rel = name.split("."), i = 0, pathLength = rel.length, current = base;
-
- for (; i < pathLength; i++) {
- if (rel[i] === "" && i === 0) {
- current = base;
- continue;
- }
- if (rel[i] === "^") {
- if (!current.parent) throw new Error("Path '" + name + "' not valid for state '" + base.name + "'");
- current = current.parent;
- continue;
- }
- break;
- }
- rel = rel.slice(i).join(".");
- name = current.name + (current.name && rel ? "." : "") + rel;
- }
- var state = states[name];
-
- if (state && (isStr || (!isStr && (state === stateOrName || state.self === stateOrName)))) {
- return state;
- }
- return undefined;
- }
-
- function queueState(parentName, state) {
- if (!queue[parentName]) {
- queue[parentName] = [];
- }
- queue[parentName].push(state);
- }
-
- function flushQueuedChildren(parentName) {
- var queued = queue[parentName] || [];
- while(queued.length) {
- registerState(queued.shift());
- }
- }
-
- function registerState(state) {
- // Wrap a new object around the state so we can store our private details easily.
- state = inherit(state, {
- self: state,
- resolve: state.resolve || {},
- toString: function() { return this.name; }
- });
-
- var name = state.name;
- if (!isString(name) || name.indexOf('@') >= 0) throw new Error("State must have a valid name");
- if (states.hasOwnProperty(name)) throw new Error("State '" + name + "' is already defined");
-
- // Get parent name
- var parentName = (name.indexOf('.') !== -1) ? name.substring(0, name.lastIndexOf('.'))
- : (isString(state.parent)) ? state.parent
- : (isObject(state.parent) && isString(state.parent.name)) ? state.parent.name
- : '';
-
- // If parent is not registered yet, add state to queue and register later
- if (parentName && !states[parentName]) {
- return queueState(parentName, state.self);
- }
-
- for (var key in stateBuilder) {
- if (isFunction(stateBuilder[key])) state[key] = stateBuilder[key](state, stateBuilder.$delegates[key]);
- }
- states[name] = state;
-
- // Register the state in the global state list and with $urlRouter if necessary.
- if (!state[abstractKey] && state.url) {
- $urlRouterProvider.when(state.url, ['$match', '$stateParams', function ($match, $stateParams) {
- if ($state.$current.navigable != state || !equalForKeys($match, $stateParams)) {
- $state.transitionTo(state, $match, { inherit: true, location: false });
- }
- }]);
- }
-
- // Register any queued children
- flushQueuedChildren(name);
-
- return state;
- }
-
- // Checks text to see if it looks like a glob.
- function isGlob (text) {
- return text.indexOf('*') > -1;
- }
-
- // Returns true if glob matches current $state name.
- function doesStateMatchGlob (glob) {
- var globSegments = glob.split('.'),
- segments = $state.$current.name.split('.');
-
- //match single stars
- for (var i = 0, l = globSegments.length; i < l; i++) {
- if (globSegments[i] === '*') {
- segments[i] = '*';
- }
- }
-
- //match greedy starts
- if (globSegments[0] === '**') {
- segments = segments.slice(indexOf(segments, globSegments[1]));
- segments.unshift('**');
- }
- //match greedy ends
- if (globSegments[globSegments.length - 1] === '**') {
- segments.splice(indexOf(segments, globSegments[globSegments.length - 2]) + 1, Number.MAX_VALUE);
- segments.push('**');
- }
-
- if (globSegments.length != segments.length) {
- return false;
- }
-
- return segments.join('') === globSegments.join('');
- }
-
-
- // Implicit root state that is always active
- root = registerState({
- name: '',
- url: '^',
- views: null,
- 'abstract': true
- });
- root.navigable = null;
-
-
- /**
- * @ngdoc function
- * @name ui.router.state.$stateProvider#decorator
- * @methodOf ui.router.state.$stateProvider
- *
- * @description
- * Allows you to extend (carefully) or override (at your own peril) the
- * `stateBuilder` object used internally by `$stateProvider`. This can be used
- * to add custom functionality to ui-router, for example inferring templateUrl
- * based on the state name.
- *
- * When passing only a name, it returns the current (original or decorated) builder
- * function that matches `name`.
- *
- * The builder functions that can be decorated are listed below. Though not all
- * necessarily have a good use case for decoration, that is up to you to decide.
- *
- * In addition, users can attach custom decorators, which will generate new
- * properties within the state's internal definition. There is currently no clear
- * use-case for this beyond accessing internal states (i.e. $state.$current),
- * however, expect this to become increasingly relevant as we introduce additional
- * meta-programming features.
- *
- * **Warning**: Decorators should not be interdependent because the order of
- * execution of the builder functions in non-deterministic. Builder functions
- * should only be dependent on the state definition object and super function.
- *
- *
- * Existing builder functions and current return values:
- *
- * - **parent** `{object}` - returns the parent state object.
- * - **data** `{object}` - returns state data, including any inherited data that is not
- * overridden by own values (if any).
- * - **url** `{object}` - returns a {@link ui.router.util.type:UrlMatcher UrlMatcher}
- * or `null`.
- * - **navigable** `{object}` - returns closest ancestor state that has a URL (aka is
- * navigable).
- * - **params** `{object}` - returns an array of state params that are ensured to
- * be a super-set of parent's params.
- * - **views** `{object}` - returns a views object where each key is an absolute view
- * name (i.e. "viewName@stateName") and each value is the config object
- * (template, controller) for the view. Even when you don't use the views object
- * explicitly on a state config, one is still created for you internally.
- * So by decorating this builder function you have access to decorating template
- * and controller properties.
- * - **ownParams** `{object}` - returns an array of params that belong to the state,
- * not including any params defined by ancestor states.
- * - **path** `{string}` - returns the full path from the root down to this state.
- * Needed for state activation.
- * - **includes** `{object}` - returns an object that includes every state that
- * would pass a `$state.includes()` test.
- *
- * @example
- * <pre>
- * // Override the internal 'views' builder with a function that takes the state
- * // definition, and a reference to the internal function being overridden:
- * $stateProvider.decorator('views', function (state, parent) {
- * var result = {},
- * views = parent(state);
- *
- * angular.forEach(views, function (config, name) {
- * var autoName = (state.name + '.' + name).replace('.', '/');
- * config.templateUrl = config.templateUrl || '/partials/' + autoName + '.html';
- * result[name] = config;
- * });
- * return result;
- * });
- *
- * $stateProvider.state('home', {
- * views: {
- * 'contact.list': { controller: 'ListController' },
- * 'contact.item': { controller: 'ItemController' }
- * }
- * });
- *
- * // ...
- *
- * $state.go('home');
- * // Auto-populates list and item views with /partials/home/contact/list.html,
- * // and /partials/home/contact/item.html, respectively.
- * </pre>
- *
- * @param {string} name The name of the builder function to decorate.
- * @param {object} func A function that is responsible for decorating the original
- * builder function. The function receives two parameters:
- *
- * - `{object}` - state - The state config object.
- * - `{object}` - super - The original builder function.
- *
- * @return {object} $stateProvider - $stateProvider instance
- */
- this.decorator = decorator;
- function decorator(name, func) {
- /*jshint validthis: true */
- if (isString(name) && !isDefined(func)) {
- return stateBuilder[name];
- }
- if (!isFunction(func) || !isString(name)) {
- return this;
- }
- if (stateBuilder[name] && !stateBuilder.$delegates[name]) {
- stateBuilder.$delegates[name] = stateBuilder[name];
- }
- stateBuilder[name] = func;
- return this;
- }
-
- /**
- * @ngdoc function
- * @name ui.router.state.$stateProvider#state
- * @methodOf ui.router.state.$stateProvider
- *
- * @description
- * Registers a state configuration under a given state name. The stateConfig object
- * has the following acceptable properties.
- *
- * @param {string} name A unique state name, e.g. "home", "about", "contacts".
- * To create a parent/child state use a dot, e.g. "about.sales", "home.newest".
- * @param {object} stateConfig State configuration object.
- * @param {string|function=} stateConfig.template
- * <a id='template'></a>
- * html template as a string or a function that returns
- * an html template as a string which should be used by the uiView directives. This property
- * takes precedence over templateUrl.
- *
- * If `template` is a function, it will be called with the following parameters:
- *
- * - {array.&lt;object&gt;} - state parameters extracted from the current $location.path() by
- * applying the current state
- *
- * <pre>template:
- * "<h1>inline template definition</h1>" +
- * "<div ui-view></div>"</pre>
- * <pre>template: function(params) {
- * return "<h1>generated template</h1>"; }</pre>
- * </div>
- *
- * @param {string|function=} stateConfig.templateUrl
- * <a id='templateUrl'></a>
- *
- * path or function that returns a path to an html
- * template that should be used by uiView.
- *
- * If `templateUrl` is a function, it will be called with the following parameters:
- *
- * - {array.&lt;object&gt;} - state parameters extracted from the current $location.path() by
- * applying the current state
- *
- * <pre>templateUrl: "home.html"</pre>
- * <pre>templateUrl: function(params) {
- * return myTemplates[params.pageId]; }</pre>
- *
- * @param {function=} stateConfig.templateProvider
- * <a id='templateProvider'></a>
- * Provider function that returns HTML content string.
- * <pre> templateProvider:
- * function(MyTemplateService, params) {
- * return MyTemplateService.getTemplate(params.pageId);
- * }</pre>
- *
- * @param {string|function=} stateConfig.controller
- * <a id='controller'></a>
- *
- * Controller fn that should be associated with newly
- * related scope or the name of a registered controller if passed as a string.
- * Optionally, the ControllerAs may be declared here.
- * <pre>controller: "MyRegisteredController"</pre>
- * <pre>controller:
- * "MyRegisteredController as fooCtrl"}</pre>
- * <pre>controller: function($scope, MyService) {
- * $scope.data = MyService.getData(); }</pre>
- *
- * @param {function=} stateConfig.controllerProvider
- * <a id='controllerProvider'></a>
- *
- * Injectable provider function that returns the actual controller or string.
- * <pre>controllerProvider:
- * function(MyResolveData) {
- * if (MyResolveData.foo)
- * return "FooCtrl"
- * else if (MyResolveData.bar)
- * return "BarCtrl";
- * else return function($scope) {
- * $scope.baz = "Qux";
- * }
- * }</pre>
- *
- * @param {string=} stateConfig.controllerAs
- * <a id='controllerAs'></a>
- *
- * A controller alias name. If present the controller will be
- * published to scope under the controllerAs name.
- * <pre>controllerAs: "myCtrl"</pre>
- *
- * @param {string|object=} stateConfig.parent
- * <a id='parent'></a>
- * Optionally specifies the parent state of this state.
- *
- * <pre>parent: 'parentState'</pre>
- * <pre>parent: parentState // JS variable</pre>
- *
- * @param {object=} stateConfig.resolve
- * <a id='resolve'></a>
- *
- * An optional map&lt;string, function&gt; of dependencies which
- * should be injected into the controller. If any of these dependencies are promises,
- * the router will wait for them all to be resolved before the controller is instantiated.
- * If all the promises are resolved successfully, the $stateChangeSuccess event is fired
- * and the values of the resolved promises are injected into any controllers that reference them.
- * If any of the promises are rejected the $stateChangeError event is fired.
- *
- * The map object is:
- *
- * - key - {string}: name of dependency to be injected into controller
- * - factory - {string|function}: If string then it is alias for service. Otherwise if function,
- * it is injected and return value it treated as dependency. If result is a promise, it is
- * resolved before its value is injected into controller.
- *
- * <pre>resolve: {
- * myResolve1:
- * function($http, $stateParams) {
- * return $http.get("/api/foos/"+stateParams.fooID);
- * }
- * }</pre>
- *
- * @param {string=} stateConfig.url
- * <a id='url'></a>
- *
- * A url fragment with optional parameters. When a state is navigated or
- * transitioned to, the `$stateParams` service will be populated with any
- * parameters that were passed.
- *
- * (See {@link ui.router.util.type:UrlMatcher UrlMatcher} `UrlMatcher`} for
- * more details on acceptable patterns )
- *
- * examples:
- * <pre>url: "/home"
- * url: "/users/:userid"
- * url: "/books/{bookid:[a-zA-Z_-]}"
- * url: "/books/{categoryid:int}"
- * url: "/books/{publishername:string}/{categoryid:int}"
- * url: "/messages?before&after"
- * url: "/messages?{before:date}&{after:date}"
- * url: "/messages/:mailboxid?{before:date}&{after:date}"
- * </pre>
- *
- * @param {object=} stateConfig.views
- * <a id='views'></a>
- * an optional map&lt;string, object&gt; which defined multiple views, or targets views
- * manually/explicitly.
- *
- * Examples:
- *
- * Targets three named `ui-view`s in the parent state's template
- * <pre>views: {
- * header: {
- * controller: "headerCtrl",
- * templateUrl: "header.html"
- * }, body: {
- * controller: "bodyCtrl",
- * templateUrl: "body.html"
- * }, footer: {
- * controller: "footCtrl",
- * templateUrl: "footer.html"
- * }
- * }</pre>
- *
- * Targets named `ui-view="header"` from grandparent state 'top''s template, and named `ui-view="body" from parent state's template.
- * <pre>views: {
- * 'header@top': {
- * controller: "msgHeaderCtrl",
- * templateUrl: "msgHeader.html"
- * }, 'body': {
- * controller: "messagesCtrl",
- * templateUrl: "messages.html"
- * }
- * }</pre>
- *
- * @param {boolean=} [stateConfig.abstract=false]
- * <a id='abstract'></a>
- * An abstract state will never be directly activated,
- * but can provide inherited properties to its common children states.
- * <pre>abstract: true</pre>
- *
- * @param {function=} stateConfig.onEnter
- * <a id='onEnter'></a>
- *
- * Callback function for when a state is entered. Good way
- * to trigger an action or dispatch an event, such as opening a dialog.
- * If minifying your scripts, make sure to explicitly annotate this function,
- * because it won't be automatically annotated by your build tools.
- *
- * <pre>onEnter: function(MyService, $stateParams) {
- * MyService.foo($stateParams.myParam);
- * }</pre>
- *
- * @param {function=} stateConfig.onExit
- * <a id='onExit'></a>
- *
- * Callback function for when a state is exited. Good way to
- * trigger an action or dispatch an event, such as opening a dialog.
- * If minifying your scripts, make sure to explicitly annotate this function,
- * because it won't be automatically annotated by your build tools.
- *
- * <pre>onExit: function(MyService, $stateParams) {
- * MyService.cleanup($stateParams.myParam);
- * }</pre>
- *
- * @param {boolean=} [stateConfig.reloadOnSearch=true]
- * <a id='reloadOnSearch'></a>
- *
- * If `false`, will not retrigger the same state
- * just because a search/query parameter has changed (via $location.search() or $location.hash()).
- * Useful for when you'd like to modify $location.search() without triggering a reload.
- * <pre>reloadOnSearch: false</pre>
- *
- * @param {object=} stateConfig.data
- * <a id='data'></a>
- *
- * Arbitrary data object, useful for custom configuration. The parent state's `data` is
- * prototypally inherited. In other words, adding a data property to a state adds it to
- * the entire subtree via prototypal inheritance.
- *
- * <pre>data: {
- * requiredRole: 'foo'
- * } </pre>
- *
- * @param {object=} stateConfig.params
- * <a id='params'></a>
- *
- * A map which optionally configures parameters declared in the `url`, or
- * defines additional non-url parameters. For each parameter being
- * configured, add a configuration object keyed to the name of the parameter.
- *
- * Each parameter configuration object may contain the following properties:
- *
- * - ** value ** - {object|function=}: specifies the default value for this
- * parameter. This implicitly sets this parameter as optional.
- *
- * When UI-Router routes to a state and no value is
- * specified for this parameter in the URL or transition, the
- * default value will be used instead. If `value` is a function,
- * it will be injected and invoked, and the return value used.
- *
- * *Note*: `undefined` is treated as "no default value" while `null`
- * is treated as "the default value is `null`".
- *
- * *Shorthand*: If you only need to configure the default value of the
- * parameter, you may use a shorthand syntax. In the **`params`**
- * map, instead mapping the param name to a full parameter configuration
- * object, simply set map it to the default parameter value, e.g.:
- *
- * <pre>// define a parameter's default value
- * params: {
- * param1: { value: "defaultValue" }
- * }
- * // shorthand default values
- * params: {
- * param1: "defaultValue",
- * param2: "param2Default"
- * }</pre>
- *
- * - ** array ** - {boolean=}: *(default: false)* If true, the param value will be
- * treated as an array of values. If you specified a Type, the value will be
- * treated as an array of the specified Type. Note: query parameter values
- * default to a special `"auto"` mode.
- *
- * For query parameters in `"auto"` mode, if multiple values for a single parameter
- * are present in the URL (e.g.: `/foo?bar=1&bar=2&bar=3`) then the values
- * are mapped to an array (e.g.: `{ foo: [ '1', '2', '3' ] }`). However, if
- * only one value is present (e.g.: `/foo?bar=1`) then the value is treated as single
- * value (e.g.: `{ foo: '1' }`).
- *
- * <pre>params: {
- * param1: { array: true }
- * }</pre>
- *
- * - ** squash ** - {bool|string=}: `squash` configures how a default parameter value is represented in the URL when
- * the current parameter value is the same as the default value. If `squash` is not set, it uses the
- * configured default squash policy.
- * (See {@link ui.router.util.$urlMatcherFactory#methods_defaultSquashPolicy `defaultSquashPolicy()`})
- *
- * There are three squash settings:
- *
- * - false: The parameter's default value is not squashed. It is encoded and included in the URL
- * - true: The parameter's default value is omitted from the URL. If the parameter is preceeded and followed
- * by slashes in the state's `url` declaration, then one of those slashes are omitted.
- * This can allow for cleaner looking URLs.
- * - `"<arbitrary string>"`: The parameter's default value is replaced with an arbitrary placeholder of your choice.
- *
- * <pre>params: {
- * param1: {
- * value: "defaultId",
- * squash: true
- * } }
- * // squash "defaultValue" to "~"
- * params: {
- * param1: {
- * value: "defaultValue",
- * squash: "~"
- * } }
- * </pre>
- *
- *
- * @example
- * <pre>
- * // Some state name examples
- *
- * // stateName can be a single top-level name (must be unique).
- * $stateProvider.state("home", {});
- *
- * // Or it can be a nested state name. This state is a child of the
- * // above "home" state.
- * $stateProvider.state("home.newest", {});
- *
- * // Nest states as deeply as needed.
- * $stateProvider.state("home.newest.abc.xyz.inception", {});
- *
- * // state() returns $stateProvider, so you can chain state declarations.
- * $stateProvider
- * .state("home", {})
- * .state("about", {})
- * .state("contacts", {});
- * </pre>
- *
- */
- this.state = state;
- function state(name, definition) {
- /*jshint validthis: true */
- if (isObject(name)) definition = name;
- else definition.name = name;
- registerState(definition);
- return this;
- }
-
- /**
- * @ngdoc object
- * @name ui.router.state.$state
- *
- * @requires $rootScope
- * @requires $q
- * @requires ui.router.state.$view
- * @requires $injector
- * @requires ui.router.util.$resolve
- * @requires ui.router.state.$stateParams
- * @requires ui.router.router.$urlRouter
- *
- * @property {object} params A param object, e.g. {sectionId: section.id)}, that
- * you'd like to test against the current active state.
- * @property {object} current A reference to the state's config object. However
- * you passed it in. Useful for accessing custom data.
- * @property {object} transition Currently pending transition. A promise that'll
- * resolve or reject.
- *
- * @description
- * `$state` service is responsible for representing states as well as transitioning
- * between them. It also provides interfaces to ask for current state or even states
- * you're coming from.
- */
- this.$get = $get;
- $get.$inject = ['$rootScope', '$q', '$view', '$injector', '$resolve', '$stateParams', '$urlRouter', '$location', '$urlMatcherFactory'];
- function $get( $rootScope, $q, $view, $injector, $resolve, $stateParams, $urlRouter, $location, $urlMatcherFactory) {
-
- var TransitionSuperseded = $q.reject(new Error('transition superseded'));
- var TransitionPrevented = $q.reject(new Error('transition prevented'));
- var TransitionAborted = $q.reject(new Error('transition aborted'));
- var TransitionFailed = $q.reject(new Error('transition failed'));
-
- // Handles the case where a state which is the target of a transition is not found, and the user
- // can optionally retry or defer the transition
- function handleRedirect(redirect, state, params, options) {
- /**
- * @ngdoc event
- * @name ui.router.state.$state#$stateNotFound
- * @eventOf ui.router.state.$state
- * @eventType broadcast on root scope
- * @description
- * Fired when a requested state **cannot be found** using the provided state name during transition.
- * The event is broadcast allowing any handlers a single chance to deal with the error (usually by
- * lazy-loading the unfound state). A special `unfoundState` object is passed to the listener handler,
- * you can see its three properties in the example. You can use `event.preventDefault()` to abort the
- * transition and the promise returned from `go` will be rejected with a `'transition aborted'` value.
- *
- * @param {Object} event Event object.
- * @param {Object} unfoundState Unfound State information. Contains: `to, toParams, options` properties.
- * @param {State} fromState Current state object.
- * @param {Object} fromParams Current state params.
- *
- * @example
- *
- * <pre>
- * // somewhere, assume lazy.state has not been defined
- * $state.go("lazy.state", {a:1, b:2}, {inherit:false});
- *
- * // somewhere else
- * $scope.$on('$stateNotFound',
- * function(event, unfoundState, fromState, fromParams){
- * console.log(unfoundState.to); // "lazy.state"
- * console.log(unfoundState.toParams); // {a:1, b:2}
- * console.log(unfoundState.options); // {inherit:false} + default options
- * })
- * </pre>
- */
- var evt = $rootScope.$broadcast('$stateNotFound', redirect, state, params);
-
- if (evt.defaultPrevented) {
- $urlRouter.update();
- return TransitionAborted;
- }
-
- if (!evt.retry) {
- return null;
- }
-
- // Allow the handler to return a promise to defer state lookup retry
- if (options.$retry) {
- $urlRouter.update();
- return TransitionFailed;
- }
- var retryTransition = $state.transition = $q.when(evt.retry);
-
- retryTransition.then(function() {
- if (retryTransition !== $state.transition) return TransitionSuperseded;
- redirect.options.$retry = true;
- return $state.transitionTo(redirect.to, redirect.toParams, redirect.options);
- }, function() {
- return TransitionAborted;
- });
- $urlRouter.update();
-
- return retryTransition;
- }
-
- root.locals = { resolve: null, globals: { $stateParams: {} } };
-
- $state = {
- params: {},
- current: root.self,
- $current: root,
- transition: null
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#reload
- * @methodOf ui.router.state.$state
- *
- * @description
- * A method that force reloads the current state. All resolves are re-resolved,
- * controllers reinstantiated, and events re-fired.
- *
- * @example
- * <pre>
- * var app angular.module('app', ['ui.router']);
- *
- * app.controller('ctrl', function ($scope, $state) {
- * $scope.reload = function(){
- * $state.reload();
- * }
- * });
- * </pre>
- *
- * `reload()` is just an alias for:
- * <pre>
- * $state.transitionTo($state.current, $stateParams, {
- * reload: true, inherit: false, notify: true
- * });
- * </pre>
- *
- * @param {string=|object=} state - A state name or a state object, which is the root of the resolves to be re-resolved.
- * @example
- * <pre>
- * //assuming app application consists of 3 states: 'contacts', 'contacts.detail', 'contacts.detail.item'
- * //and current state is 'contacts.detail.item'
- * var app angular.module('app', ['ui.router']);
- *
- * app.controller('ctrl', function ($scope, $state) {
- * $scope.reload = function(){
- * //will reload 'contact.detail' and 'contact.detail.item' states
- * $state.reload('contact.detail');
- * }
- * });
- * </pre>
- *
- * `reload()` is just an alias for:
- * <pre>
- * $state.transitionTo($state.current, $stateParams, {
- * reload: true, inherit: false, notify: true
- * });
- * </pre>
-
- * @returns {promise} A promise representing the state of the new transition. See
- * {@link ui.router.state.$state#methods_go $state.go}.
- */
- $state.reload = function reload(state) {
- return $state.transitionTo($state.current, $stateParams, { reload: state || true, inherit: false, notify: true});
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#go
- * @methodOf ui.router.state.$state
- *
- * @description
- * Convenience method for transitioning to a new state. `$state.go` calls
- * `$state.transitionTo` internally but automatically sets options to
- * `{ location: true, inherit: true, relative: $state.$current, notify: true }`.
- * This allows you to easily use an absolute or relative to path and specify
- * only the parameters you'd like to update (while letting unspecified parameters
- * inherit from the currently active ancestor states).
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router']);
- *
- * app.controller('ctrl', function ($scope, $state) {
- * $scope.changeState = function () {
- * $state.go('contact.detail');
- * };
- * });
- * </pre>
- * <img src='../ngdoc_assets/StateGoExamples.png'/>
- *
- * @param {string} to Absolute state name or relative state path. Some examples:
- *
- * - `$state.go('contact.detail')` - will go to the `contact.detail` state
- * - `$state.go('^')` - will go to a parent state
- * - `$state.go('^.sibling')` - will go to a sibling state
- * - `$state.go('.child.grandchild')` - will go to grandchild state
- *
- * @param {object=} params A map of the parameters that will be sent to the state,
- * will populate $stateParams. Any parameters that are not specified will be inherited from currently
- * defined parameters. Only parameters specified in the state definition can be overridden, new
- * parameters will be ignored. This allows, for example, going to a sibling state that shares parameters
- * specified in a parent state. Parameter inheritance only works between common ancestor states, I.e.
- * transitioning to a sibling will get you the parameters for all parents, transitioning to a child
- * will get you all current parameters, etc.
- * @param {object=} options Options object. The options are:
- *
- * - **`location`** - {boolean=true|string=} - If `true` will update the url in the location bar, if `false`
- * will not. If string, must be `"replace"`, which will update url and also replace last history record.
- * - **`inherit`** - {boolean=true}, If `true` will inherit url parameters from current url.
- * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'),
- * defines which state to be relative from.
- * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.
- * - **`reload`** (v0.2.5) - {boolean=false|string|object}, If `true` will force transition even if no state or params
- * have changed. It will reload the resolves and views of the current state and parent states.
- * If `reload` is a string (or state object), the state object is fetched (by name, or object reference); and \
- * the transition reloads the resolves and views for that matched state, and all its children states.
- *
- * @returns {promise} A promise representing the state of the new transition.
- *
- * Possible success values:
- *
- * - $state.current
- *
- * <br/>Possible rejection values:
- *
- * - 'transition superseded' - when a newer transition has been started after this one
- * - 'transition prevented' - when `event.preventDefault()` has been called in a `$stateChangeStart` listener
- * - 'transition aborted' - when `event.preventDefault()` has been called in a `$stateNotFound` listener or
- * when a `$stateNotFound` `event.retry` promise errors.
- * - 'transition failed' - when a state has been unsuccessfully found after 2 tries.
- * - *resolve error* - when an error has occurred with a `resolve`
- *
- */
- $state.go = function go(to, params, options) {
- return $state.transitionTo(to, params, extend({ inherit: true, relative: $state.$current }, options));
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#transitionTo
- * @methodOf ui.router.state.$state
- *
- * @description
- * Low-level method for transitioning to a new state. {@link ui.router.state.$state#methods_go $state.go}
- * uses `transitionTo` internally. `$state.go` is recommended in most situations.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router']);
- *
- * app.controller('ctrl', function ($scope, $state) {
- * $scope.changeState = function () {
- * $state.transitionTo('contact.detail');
- * };
- * });
- * </pre>
- *
- * @param {string} to State name.
- * @param {object=} toParams A map of the parameters that will be sent to the state,
- * will populate $stateParams.
- * @param {object=} options Options object. The options are:
- *
- * - **`location`** - {boolean=true|string=} - If `true` will update the url in the location bar, if `false`
- * will not. If string, must be `"replace"`, which will update url and also replace last history record.
- * - **`inherit`** - {boolean=false}, If `true` will inherit url parameters from current url.
- * - **`relative`** - {object=}, When transitioning with relative path (e.g '^'),
- * defines which state to be relative from.
- * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.
- * - **`reload`** (v0.2.5) - {boolean=false|string=|object=}, If `true` will force transition even if the state or params
- * have not changed, aka a reload of the same state. It differs from reloadOnSearch because you'd
- * use this when you want to force a reload when *everything* is the same, including search params.
- * if String, then will reload the state with the name given in reload, and any children.
- * if Object, then a stateObj is expected, will reload the state found in stateObj, and any children.
- *
- * @returns {promise} A promise representing the state of the new transition. See
- * {@link ui.router.state.$state#methods_go $state.go}.
- */
- $state.transitionTo = function transitionTo(to, toParams, options) {
- toParams = toParams || {};
- options = extend({
- location: true, inherit: false, relative: null, notify: true, reload: false, $retry: false
- }, options || {});
-
- var from = $state.$current, fromParams = $state.params, fromPath = from.path;
- var evt, toState = findState(to, options.relative);
-
- // Store the hash param for later (since it will be stripped out by various methods)
- var hash = toParams['#'];
-
- if (!isDefined(toState)) {
- var redirect = { to: to, toParams: toParams, options: options };
- var redirectResult = handleRedirect(redirect, from.self, fromParams, options);
-
- if (redirectResult) {
- return redirectResult;
- }
-
- // Always retry once if the $stateNotFound was not prevented
- // (handles either redirect changed or state lazy-definition)
- to = redirect.to;
- toParams = redirect.toParams;
- options = redirect.options;
- toState = findState(to, options.relative);
-
- if (!isDefined(toState)) {
- if (!options.relative) throw new Error("No such state '" + to + "'");
- throw new Error("Could not resolve '" + to + "' from state '" + options.relative + "'");
- }
- }
- if (toState[abstractKey]) throw new Error("Cannot transition to abstract state '" + to + "'");
- if (options.inherit) toParams = inheritParams($stateParams, toParams || {}, $state.$current, toState);
- if (!toState.params.$$validates(toParams)) return TransitionFailed;
-
- toParams = toState.params.$$values(toParams);
- to = toState;
-
- var toPath = to.path;
-
- // Starting from the root of the path, keep all levels that haven't changed
- var keep = 0, state = toPath[keep], locals = root.locals, toLocals = [];
-
- if (!options.reload) {
- while (state && state === fromPath[keep] && state.ownParams.$$equals(toParams, fromParams)) {
- locals = toLocals[keep] = state.locals;
- keep++;
- state = toPath[keep];
- }
- } else if (isString(options.reload) || isObject(options.reload)) {
- if (isObject(options.reload) && !options.reload.name) {
- throw new Error('Invalid reload state object');
- }
-
- var reloadState = options.reload === true ? fromPath[0] : findState(options.reload);
- if (options.reload && !reloadState) {
- throw new Error("No such reload state '" + (isString(options.reload) ? options.reload : options.reload.name) + "'");
- }
-
- while (state && state === fromPath[keep] && state !== reloadState) {
- locals = toLocals[keep] = state.locals;
- keep++;
- state = toPath[keep];
- }
- }
-
- // If we're going to the same state and all locals are kept, we've got nothing to do.
- // But clear 'transition', as we still want to cancel any other pending transitions.
- // TODO: We may not want to bump 'transition' if we're called from a location change
- // that we've initiated ourselves, because we might accidentally abort a legitimate
- // transition initiated from code?
- if (shouldSkipReload(to, toParams, from, fromParams, locals, options)) {
- if (hash) toParams['#'] = hash;
- $state.params = toParams;
- copy($state.params, $stateParams);
- copy(filterByKeys(to.params.$$keys(), $stateParams), to.locals.globals.$stateParams);
- if (options.location && to.navigable && to.navigable.url) {
- $urlRouter.push(to.navigable.url, toParams, {
- $$avoidResync: true, replace: options.location === 'replace'
- });
- $urlRouter.update(true);
- }
- $state.transition = null;
- return $q.when($state.current);
- }
-
- // Filter parameters before we pass them to event handlers etc.
- toParams = filterByKeys(to.params.$$keys(), toParams || {});
-
- // Re-add the saved hash before we start returning things or broadcasting $stateChangeStart
- if (hash) toParams['#'] = hash;
-
- // Broadcast start event and cancel the transition if requested
- if (options.notify) {
- /**
- * @ngdoc event
- * @name ui.router.state.$state#$stateChangeStart
- * @eventOf ui.router.state.$state
- * @eventType broadcast on root scope
- * @description
- * Fired when the state transition **begins**. You can use `event.preventDefault()`
- * to prevent the transition from happening and then the transition promise will be
- * rejected with a `'transition prevented'` value.
- *
- * @param {Object} event Event object.
- * @param {State} toState The state being transitioned to.
- * @param {Object} toParams The params supplied to the `toState`.
- * @param {State} fromState The current state, pre-transition.
- * @param {Object} fromParams The params supplied to the `fromState`.
- *
- * @example
- *
- * <pre>
- * $rootScope.$on('$stateChangeStart',
- * function(event, toState, toParams, fromState, fromParams){
- * event.preventDefault();
- * // transitionTo() promise will be rejected with
- * // a 'transition prevented' error
- * })
- * </pre>
- */
- if ($rootScope.$broadcast('$stateChangeStart', to.self, toParams, from.self, fromParams, options).defaultPrevented) {
- $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams);
- //Don't update and resync url if there's been a new transition started. see issue #2238, #600
- if ($state.transition == null) $urlRouter.update();
- return TransitionPrevented;
- }
- }
-
- // Resolve locals for the remaining states, but don't update any global state just
- // yet -- if anything fails to resolve the current state needs to remain untouched.
- // We also set up an inheritance chain for the locals here. This allows the view directive
- // to quickly look up the correct definition for each view in the current state. Even
- // though we create the locals object itself outside resolveState(), it is initially
- // empty and gets filled asynchronously. We need to keep track of the promise for the
- // (fully resolved) current locals, and pass this down the chain.
- var resolved = $q.when(locals);
-
- for (var l = keep; l < toPath.length; l++, state = toPath[l]) {
- locals = toLocals[l] = inherit(locals);
- resolved = resolveState(state, toParams, state === to, resolved, locals, options);
- }
-
- // Once everything is resolved, we are ready to perform the actual transition
- // and return a promise for the new state. We also keep track of what the
- // current promise is, so that we can detect overlapping transitions and
- // keep only the outcome of the last transition.
- var transition = $state.transition = resolved.then(function () {
- var l, entering, exiting;
-
- if ($state.transition !== transition) return TransitionSuperseded;
-
- // Exit 'from' states not kept
- for (l = fromPath.length - 1; l >= keep; l--) {
- exiting = fromPath[l];
- if (exiting.self.onExit) {
- $injector.invoke(exiting.self.onExit, exiting.self, exiting.locals.globals);
- }
- exiting.locals = null;
- }
-
- // Enter 'to' states not kept
- for (l = keep; l < toPath.length; l++) {
- entering = toPath[l];
- entering.locals = toLocals[l];
- if (entering.self.onEnter) {
- $injector.invoke(entering.self.onEnter, entering.self, entering.locals.globals);
- }
- }
-
- // Run it again, to catch any transitions in callbacks
- if ($state.transition !== transition) return TransitionSuperseded;
-
- // Update globals in $state
- $state.$current = to;
- $state.current = to.self;
- $state.params = toParams;
- copy($state.params, $stateParams);
- $state.transition = null;
-
- if (options.location && to.navigable) {
- $urlRouter.push(to.navigable.url, to.navigable.locals.globals.$stateParams, {
- $$avoidResync: true, replace: options.location === 'replace'
- });
- }
-
- if (options.notify) {
- /**
- * @ngdoc event
- * @name ui.router.state.$state#$stateChangeSuccess
- * @eventOf ui.router.state.$state
- * @eventType broadcast on root scope
- * @description
- * Fired once the state transition is **complete**.
- *
- * @param {Object} event Event object.
- * @param {State} toState The state being transitioned to.
- * @param {Object} toParams The params supplied to the `toState`.
- * @param {State} fromState The current state, pre-transition.
- * @param {Object} fromParams The params supplied to the `fromState`.
- */
- $rootScope.$broadcast('$stateChangeSuccess', to.self, toParams, from.self, fromParams);
- }
- $urlRouter.update(true);
-
- return $state.current;
- }, function (error) {
- if ($state.transition !== transition) return TransitionSuperseded;
-
- $state.transition = null;
- /**
- * @ngdoc event
- * @name ui.router.state.$state#$stateChangeError
- * @eventOf ui.router.state.$state
- * @eventType broadcast on root scope
- * @description
- * Fired when an **error occurs** during transition. It's important to note that if you
- * have any errors in your resolve functions (javascript errors, non-existent services, etc)
- * they will not throw traditionally. You must listen for this $stateChangeError event to
- * catch **ALL** errors.
- *
- * @param {Object} event Event object.
- * @param {State} toState The state being transitioned to.
- * @param {Object} toParams The params supplied to the `toState`.
- * @param {State} fromState The current state, pre-transition.
- * @param {Object} fromParams The params supplied to the `fromState`.
- * @param {Error} error The resolve error object.
- */
- evt = $rootScope.$broadcast('$stateChangeError', to.self, toParams, from.self, fromParams, error);
-
- if (!evt.defaultPrevented) {
- $urlRouter.update();
- }
-
- return $q.reject(error);
- });
-
- return transition;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#is
- * @methodOf ui.router.state.$state
- *
- * @description
- * Similar to {@link ui.router.state.$state#methods_includes $state.includes},
- * but only checks for the full state name. If params is supplied then it will be
- * tested for strict equality against the current active params object, so all params
- * must match with none missing and no extras.
- *
- * @example
- * <pre>
- * $state.$current.name = 'contacts.details.item';
- *
- * // absolute name
- * $state.is('contact.details.item'); // returns true
- * $state.is(contactDetailItemStateObject); // returns true
- *
- * // relative name (. and ^), typically from a template
- * // E.g. from the 'contacts.details' template
- * <div ng-class="{highlighted: $state.is('.item')}">Item</div>
- * </pre>
- *
- * @param {string|object} stateOrName The state name (absolute or relative) or state object you'd like to check.
- * @param {object=} params A param object, e.g. `{sectionId: section.id}`, that you'd like
- * to test against the current active state.
- * @param {object=} options An options object. The options are:
- *
- * - **`relative`** - {string|object} - If `stateOrName` is a relative state name and `options.relative` is set, .is will
- * test relative to `options.relative` state (or name).
- *
- * @returns {boolean} Returns true if it is the state.
- */
- $state.is = function is(stateOrName, params, options) {
- options = extend({ relative: $state.$current }, options || {});
- var state = findState(stateOrName, options.relative);
-
- if (!isDefined(state)) { return undefined; }
- if ($state.$current !== state) { return false; }
- return params ? equalForKeys(state.params.$$values(params), $stateParams) : true;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#includes
- * @methodOf ui.router.state.$state
- *
- * @description
- * A method to determine if the current active state is equal to or is the child of the
- * state stateName. If any params are passed then they will be tested for a match as well.
- * Not all the parameters need to be passed, just the ones you'd like to test for equality.
- *
- * @example
- * Partial and relative names
- * <pre>
- * $state.$current.name = 'contacts.details.item';
- *
- * // Using partial names
- * $state.includes("contacts"); // returns true
- * $state.includes("contacts.details"); // returns true
- * $state.includes("contacts.details.item"); // returns true
- * $state.includes("contacts.list"); // returns false
- * $state.includes("about"); // returns false
- *
- * // Using relative names (. and ^), typically from a template
- * // E.g. from the 'contacts.details' template
- * <div ng-class="{highlighted: $state.includes('.item')}">Item</div>
- * </pre>
- *
- * Basic globbing patterns
- * <pre>
- * $state.$current.name = 'contacts.details.item.url';
- *
- * $state.includes("*.details.*.*"); // returns true
- * $state.includes("*.details.**"); // returns true
- * $state.includes("**.item.**"); // returns true
- * $state.includes("*.details.item.url"); // returns true
- * $state.includes("*.details.*.url"); // returns true
- * $state.includes("*.details.*"); // returns false
- * $state.includes("item.**"); // returns false
- * </pre>
- *
- * @param {string} stateOrName A partial name, relative name, or glob pattern
- * to be searched for within the current state name.
- * @param {object=} params A param object, e.g. `{sectionId: section.id}`,
- * that you'd like to test against the current active state.
- * @param {object=} options An options object. The options are:
- *
- * - **`relative`** - {string|object=} - If `stateOrName` is a relative state reference and `options.relative` is set,
- * .includes will test relative to `options.relative` state (or name).
- *
- * @returns {boolean} Returns true if it does include the state
- */
- $state.includes = function includes(stateOrName, params, options) {
- options = extend({ relative: $state.$current }, options || {});
- if (isString(stateOrName) && isGlob(stateOrName)) {
- if (!doesStateMatchGlob(stateOrName)) {
- return false;
- }
- stateOrName = $state.$current.name;
- }
-
- var state = findState(stateOrName, options.relative);
- if (!isDefined(state)) { return undefined; }
- if (!isDefined($state.$current.includes[state.name])) { return false; }
- return params ? equalForKeys(state.params.$$values(params), $stateParams, objectKeys(params)) : true;
- };
-
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#href
- * @methodOf ui.router.state.$state
- *
- * @description
- * A url generation method that returns the compiled url for the given state populated with the given params.
- *
- * @example
- * <pre>
- * expect($state.href("about.person", { person: "bob" })).toEqual("/about/bob");
- * </pre>
- *
- * @param {string|object} stateOrName The state name or state object you'd like to generate a url from.
- * @param {object=} params An object of parameter values to fill the state's required parameters.
- * @param {object=} options Options object. The options are:
- *
- * - **`lossy`** - {boolean=true} - If true, and if there is no url associated with the state provided in the
- * first parameter, then the constructed href url will be built from the first navigable ancestor (aka
- * ancestor with a valid url).
- * - **`inherit`** - {boolean=true}, If `true` will inherit url parameters from current url.
- * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'),
- * defines which state to be relative from.
- * - **`absolute`** - {boolean=false}, If true will generate an absolute url, e.g. "http://www.example.com/fullurl".
- *
- * @returns {string} compiled state url
- */
- $state.href = function href(stateOrName, params, options) {
- options = extend({
- lossy: true,
- inherit: true,
- absolute: false,
- relative: $state.$current
- }, options || {});
-
- var state = findState(stateOrName, options.relative);
-
- if (!isDefined(state)) return null;
- if (options.inherit) params = inheritParams($stateParams, params || {}, $state.$current, state);
-
- var nav = (state && options.lossy) ? state.navigable : state;
-
- if (!nav || nav.url === undefined || nav.url === null) {
- return null;
- }
- return $urlRouter.href(nav.url, filterByKeys(state.params.$$keys().concat('#'), params || {}), {
- absolute: options.absolute
- });
- };
-
- /**
- * @ngdoc function
- * @name ui.router.state.$state#get
- * @methodOf ui.router.state.$state
- *
- * @description
- * Returns the state configuration object for any specific state or all states.
- *
- * @param {string|object=} stateOrName (absolute or relative) If provided, will only get the config for
- * the requested state. If not provided, returns an array of ALL state configs.
- * @param {string|object=} context When stateOrName is a relative state reference, the state will be retrieved relative to context.
- * @returns {Object|Array} State configuration object or array of all objects.
- */
- $state.get = function (stateOrName, context) {
- if (arguments.length === 0) return map(objectKeys(states), function(name) { return states[name].self; });
- var state = findState(stateOrName, context || $state.$current);
- return (state && state.self) ? state.self : null;
- };
-
- function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {
- // Make a restricted $stateParams with only the parameters that apply to this state if
- // necessary. In addition to being available to the controller and onEnter/onExit callbacks,
- // we also need $stateParams to be available for any $injector calls we make during the
- // dependency resolution process.
- var $stateParams = (paramsAreFiltered) ? params : filterByKeys(state.params.$$keys(), params);
- var locals = { $stateParams: $stateParams };
-
- // Resolve 'global' dependencies for the state, i.e. those not specific to a view.
- // We're also including $stateParams in this; that way the parameters are restricted
- // to the set that should be visible to the state, and are independent of when we update
- // the global $state and $stateParams values.
- dst.resolve = $resolve.resolve(state.resolve, locals, dst.resolve, state);
- var promises = [dst.resolve.then(function (globals) {
- dst.globals = globals;
- })];
- if (inherited) promises.push(inherited);
-
- function resolveViews() {
- var viewsPromises = [];
-
- // Resolve template and dependencies for all views.
- forEach(state.views, function (view, name) {
- var injectables = (view.resolve && view.resolve !== state.resolve ? view.resolve : {});
- injectables.$template = [ function () {
- return $view.load(name, { view: view, locals: dst.globals, params: $stateParams, notify: options.notify }) || '';
- }];
-
- viewsPromises.push($resolve.resolve(injectables, dst.globals, dst.resolve, state).then(function (result) {
- // References to the controller (only instantiated at link time)
- if (isFunction(view.controllerProvider) || isArray(view.controllerProvider)) {
- var injectLocals = angular.extend({}, injectables, dst.globals);
- result.$$controller = $injector.invoke(view.controllerProvider, null, injectLocals);
- } else {
- result.$$controller = view.controller;
- }
- // Provide access to the state itself for internal use
- result.$$state = state;
- result.$$controllerAs = view.controllerAs;
- dst[name] = result;
- }));
- });
-
- return $q.all(viewsPromises).then(function(){
- return dst.globals;
- });
- }
-
- // Wait for all the promises and then return the activation object
- return $q.all(promises).then(resolveViews).then(function (values) {
- return dst;
- });
- }
-
- return $state;
- }
-
- function shouldSkipReload(to, toParams, from, fromParams, locals, options) {
- // Return true if there are no differences in non-search (path/object) params, false if there are differences
- function nonSearchParamsEqual(fromAndToState, fromParams, toParams) {
- // Identify whether all the parameters that differ between `fromParams` and `toParams` were search params.
- function notSearchParam(key) {
- return fromAndToState.params[key].location != "search";
- }
- var nonQueryParamKeys = fromAndToState.params.$$keys().filter(notSearchParam);
- var nonQueryParams = pick.apply({}, [fromAndToState.params].concat(nonQueryParamKeys));
- var nonQueryParamSet = new $$UMFP.ParamSet(nonQueryParams);
- return nonQueryParamSet.$$equals(fromParams, toParams);
- }
-
- // If reload was not explicitly requested
- // and we're transitioning to the same state we're already in
- // and the locals didn't change
- // or they changed in a way that doesn't merit reloading
- // (reloadOnParams:false, or reloadOnSearch.false and only search params changed)
- // Then return true.
- if (!options.reload && to === from &&
- (locals === from.locals || (to.self.reloadOnSearch === false && nonSearchParamsEqual(from, fromParams, toParams)))) {
- return true;
- }
- }
-}
-
-angular.module('ui.router.state')
- .factory('$stateParams', function () { return {}; })
- .provider('$state', $StateProvider);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/stateDirectives.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/stateDirectives.js
deleted file mode 100644
index d02add98..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/stateDirectives.js
+++ /dev/null
@@ -1,391 +0,0 @@
-function parseStateRef(ref, current) {
- var preparsed = ref.match(/^\s*({[^}]*})\s*$/), parsed;
- if (preparsed) ref = current + '(' + preparsed[1] + ')';
- parsed = ref.replace(/\n/g, " ").match(/^([^(]+?)\s*(\((.*)\))?$/);
- if (!parsed || parsed.length !== 4) throw new Error("Invalid state ref '" + ref + "'");
- return { state: parsed[1], paramExpr: parsed[3] || null };
-}
-
-function stateContext(el) {
- var stateData = el.parent().inheritedData('$uiView');
-
- if (stateData && stateData.state && stateData.state.name) {
- return stateData.state;
- }
-}
-
-function getTypeInfo(el) {
- // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
- var isSvg = Object.prototype.toString.call(el.prop('href')) === '[object SVGAnimatedString]';
- var isForm = el[0].nodeName === "FORM";
-
- return {
- attr: isForm ? "action" : (isSvg ? 'xlink:href' : 'href'),
- isAnchor: el.prop("tagName").toUpperCase() === "A",
- clickable: !isForm
- };
-}
-
-function clickHook(el, $state, $timeout, type, current) {
- return function(e) {
- var button = e.which || e.button, target = current();
-
- if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || el.attr('target'))) {
- // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
- var transition = $timeout(function() {
- $state.go(target.state, target.params, target.options);
- });
- e.preventDefault();
-
- // if the state has no URL, ignore one preventDefault from the <a> directive.
- var ignorePreventDefaultCount = type.isAnchor && !target.href ? 1: 0;
-
- e.preventDefault = function() {
- if (ignorePreventDefaultCount-- <= 0) $timeout.cancel(transition);
- };
- }
- };
-}
-
-function defaultOpts(el, $state) {
- return { relative: stateContext(el) || $state.$current, inherit: true };
-}
-
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-sref
- *
- * @requires ui.router.state.$state
- * @requires $timeout
- *
- * @restrict A
- *
- * @description
- * A directive that binds a link (`<a>` tag) to a state. If the state has an associated
- * URL, the directive will automatically generate & update the `href` attribute via
- * the {@link ui.router.state.$state#methods_href $state.href()} method. Clicking
- * the link will trigger a state transition with optional parameters.
- *
- * Also middle-clicking, right-clicking, and ctrl-clicking on the link will be
- * handled natively by the browser.
- *
- * You can also use relative state paths within ui-sref, just like the relative
- * paths passed to `$state.go()`. You just need to be aware that the path is relative
- * to the state that the link lives in, in other words the state that loaded the
- * template containing the link.
- *
- * You can specify options to pass to {@link ui.router.state.$state#go $state.go()}
- * using the `ui-sref-opts` attribute. Options are restricted to `location`, `inherit`,
- * and `reload`.
- *
- * @example
- * Here's an example of how you'd use ui-sref and how it would compile. If you have the
- * following template:
- * <pre>
- * <a ui-sref="home">Home</a> | <a ui-sref="about">About</a> | <a ui-sref="{page: 2}">Next page</a>
- *
- * <ul>
- * <li ng-repeat="contact in contacts">
- * <a ui-sref="contacts.detail({ id: contact.id })">{{ contact.name }}</a>
- * </li>
- * </ul>
- * </pre>
- *
- * Then the compiled html would be (assuming Html5Mode is off and current state is contacts):
- * <pre>
- * <a href="#/home" ui-sref="home">Home</a> | <a href="#/about" ui-sref="about">About</a> | <a href="#/contacts?page=2" ui-sref="{page: 2}">Next page</a>
- *
- * <ul>
- * <li ng-repeat="contact in contacts">
- * <a href="#/contacts/1" ui-sref="contacts.detail({ id: contact.id })">Joe</a>
- * </li>
- * <li ng-repeat="contact in contacts">
- * <a href="#/contacts/2" ui-sref="contacts.detail({ id: contact.id })">Alice</a>
- * </li>
- * <li ng-repeat="contact in contacts">
- * <a href="#/contacts/3" ui-sref="contacts.detail({ id: contact.id })">Bob</a>
- * </li>
- * </ul>
- *
- * <a ui-sref="home" ui-sref-opts="{reload: true}">Home</a>
- * </pre>
- *
- * @param {string} ui-sref 'stateName' can be any valid absolute or relative state
- * @param {Object} ui-sref-opts options to pass to {@link ui.router.state.$state#go $state.go()}
- */
-$StateRefDirective.$inject = ['$state', '$timeout'];
-function $StateRefDirective($state, $timeout) {
- return {
- restrict: 'A',
- require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
- link: function(scope, element, attrs, uiSrefActive) {
- var ref = parseStateRef(attrs.uiSref, $state.current.name);
- var def = { state: ref.state, href: null, params: null };
- var type = getTypeInfo(element);
- var active = uiSrefActive[1] || uiSrefActive[0];
-
- def.options = extend(defaultOpts(element, $state), attrs.uiSrefOpts ? scope.$eval(attrs.uiSrefOpts) : {});
-
- var update = function(val) {
- if (val) def.params = angular.copy(val);
- def.href = $state.href(ref.state, def.params, def.options);
-
- if (active) active.$$addStateInfo(ref.state, def.params);
- if (def.href !== null) attrs.$set(type.attr, def.href);
- };
-
- if (ref.paramExpr) {
- scope.$watch(ref.paramExpr, function(val) { if (val !== def.params) update(val); }, true);
- def.params = angular.copy(scope.$eval(ref.paramExpr));
- }
- update();
-
- if (!type.clickable) return;
- element.bind("click", clickHook(element, $state, $timeout, type, function() { return def; }));
- }
- };
-}
-
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-state
- *
- * @requires ui.router.state.uiSref
- *
- * @restrict A
- *
- * @description
- * Much like ui-sref, but will accept named $scope properties to evaluate for a state definition,
- * params and override options.
- *
- * @param {string} ui-state 'stateName' can be any valid absolute or relative state
- * @param {Object} ui-state-params params to pass to {@link ui.router.state.$state#href $state.href()}
- * @param {Object} ui-state-opts options to pass to {@link ui.router.state.$state#go $state.go()}
- */
-$StateRefDynamicDirective.$inject = ['$state', '$timeout'];
-function $StateRefDynamicDirective($state, $timeout) {
- return {
- restrict: 'A',
- require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
- link: function(scope, element, attrs, uiSrefActive) {
- var type = getTypeInfo(element);
- var active = uiSrefActive[1] || uiSrefActive[0];
- var group = [attrs.uiState, attrs.uiStateParams || null, attrs.uiStateOpts || null];
- var watch = '[' + group.map(function(val) { return val || 'null'; }).join(', ') + ']';
- var def = { state: null, params: null, options: null, href: null };
-
- function runStateRefLink (group) {
- def.state = group[0]; def.params = group[1]; def.options = group[2];
- def.href = $state.href(def.state, def.params, def.options);
-
- if (active) active.$$addStateInfo(def.state, def.params);
- if (def.href) attrs.$set(type.attr, def.href);
- }
-
- scope.$watch(watch, runStateRefLink, true);
- runStateRefLink(scope.$eval(watch));
-
- if (!type.clickable) return;
- element.bind("click", clickHook(element, $state, $timeout, type, function() { return def; }));
- }
- };
-}
-
-
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-sref-active
- *
- * @requires ui.router.state.$state
- * @requires ui.router.state.$stateParams
- * @requires $interpolate
- *
- * @restrict A
- *
- * @description
- * A directive working alongside ui-sref to add classes to an element when the
- * related ui-sref directive's state is active, and removing them when it is inactive.
- * The primary use-case is to simplify the special appearance of navigation menus
- * relying on `ui-sref`, by having the "active" state's menu button appear different,
- * distinguishing it from the inactive menu items.
- *
- * ui-sref-active can live on the same element as ui-sref or on a parent element. The first
- * ui-sref-active found at the same level or above the ui-sref will be used.
- *
- * Will activate when the ui-sref's target state or any child state is active. If you
- * need to activate only when the ui-sref target state is active and *not* any of
- * it's children, then you will use
- * {@link ui.router.state.directive:ui-sref-active-eq ui-sref-active-eq}
- *
- * @example
- * Given the following template:
- * <pre>
- * <ul>
- * <li ui-sref-active="active" class="item">
- * <a href ui-sref="app.user({user: 'bilbobaggins'})">@bilbobaggins</a>
- * </li>
- * </ul>
- * </pre>
- *
- *
- * When the app state is "app.user" (or any children states), and contains the state parameter "user" with value "bilbobaggins",
- * the resulting HTML will appear as (note the 'active' class):
- * <pre>
- * <ul>
- * <li ui-sref-active="active" class="item active">
- * <a ui-sref="app.user({user: 'bilbobaggins'})" href="/users/bilbobaggins">@bilbobaggins</a>
- * </li>
- * </ul>
- * </pre>
- *
- * The class name is interpolated **once** during the directives link time (any further changes to the
- * interpolated value are ignored).
- *
- * Multiple classes may be specified in a space-separated format:
- * <pre>
- * <ul>
- * <li ui-sref-active='class1 class2 class3'>
- * <a ui-sref="app.user">link</a>
- * </li>
- * </ul>
- * </pre>
- *
- * It is also possible to pass ui-sref-active an expression that evaluates
- * to an object hash, whose keys represent active class names and whose
- * values represent the respective state names/globs.
- * ui-sref-active will match if the current active state **includes** any of
- * the specified state names/globs, even the abstract ones.
- *
- * @Example
- * Given the following template, with "admin" being an abstract state:
- * <pre>
- * <div ui-sref-active="{'active': 'admin.*'}">
- * <a ui-sref-active="active" ui-sref="admin.roles">Roles</a>
- * </div>
- * </pre>
- *
- * When the current state is "admin.roles" the "active" class will be applied
- * to both the <div> and <a> elements. It is important to note that the state
- * names/globs passed to ui-sref-active shadow the state provided by ui-sref.
- */
-
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-sref-active-eq
- *
- * @requires ui.router.state.$state
- * @requires ui.router.state.$stateParams
- * @requires $interpolate
- *
- * @restrict A
- *
- * @description
- * The same as {@link ui.router.state.directive:ui-sref-active ui-sref-active} but will only activate
- * when the exact target state used in the `ui-sref` is active; no child states.
- *
- */
-$StateRefActiveDirective.$inject = ['$state', '$stateParams', '$interpolate'];
-function $StateRefActiveDirective($state, $stateParams, $interpolate) {
- return {
- restrict: "A",
- controller: ['$scope', '$element', '$attrs', '$timeout', function ($scope, $element, $attrs, $timeout) {
- var states = [], activeClasses = {}, activeEqClass, uiSrefActive;
-
- // There probably isn't much point in $observing this
- // uiSrefActive and uiSrefActiveEq share the same directive object with some
- // slight difference in logic routing
- activeEqClass = $interpolate($attrs.uiSrefActiveEq || '', false)($scope);
-
- try {
- uiSrefActive = $scope.$eval($attrs.uiSrefActive);
- } catch (e) {
- // Do nothing. uiSrefActive is not a valid expression.
- // Fall back to using $interpolate below
- }
- uiSrefActive = uiSrefActive || $interpolate($attrs.uiSrefActive || '', false)($scope);
- if (isObject(uiSrefActive)) {
- forEach(uiSrefActive, function(stateOrName, activeClass) {
- if (isString(stateOrName)) {
- var ref = parseStateRef(stateOrName, $state.current.name);
- addState(ref.state, $scope.$eval(ref.paramExpr), activeClass);
- }
- });
- }
-
- // Allow uiSref to communicate with uiSrefActive[Equals]
- this.$$addStateInfo = function (newState, newParams) {
- // we already got an explicit state provided by ui-sref-active, so we
- // shadow the one that comes from ui-sref
- if (isObject(uiSrefActive) && states.length > 0) {
- return;
- }
- addState(newState, newParams, uiSrefActive);
- update();
- };
-
- $scope.$on('$stateChangeSuccess', update);
-
- function addState(stateName, stateParams, activeClass) {
- var state = $state.get(stateName, stateContext($element));
- var stateHash = createStateHash(stateName, stateParams);
-
- states.push({
- state: state || { name: stateName },
- params: stateParams,
- hash: stateHash
- });
-
- activeClasses[stateHash] = activeClass;
- }
-
- /**
- * @param {string} state
- * @param {Object|string} [params]
- * @return {string}
- */
- function createStateHash(state, params) {
- if (!isString(state)) {
- throw new Error('state should be a string');
- }
- if (isObject(params)) {
- return state + toJson(params);
- }
- params = $scope.$eval(params);
- if (isObject(params)) {
- return state + toJson(params);
- }
- return state;
- }
-
- // Update route state
- function update() {
- for (var i = 0; i < states.length; i++) {
- if (anyMatch(states[i].state, states[i].params)) {
- addClass($element, activeClasses[states[i].hash]);
- } else {
- removeClass($element, activeClasses[states[i].hash]);
- }
-
- if (exactMatch(states[i].state, states[i].params)) {
- addClass($element, activeEqClass);
- } else {
- removeClass($element, activeEqClass);
- }
- }
- }
-
- function addClass(el, className) { $timeout(function () { el.addClass(className); }); }
- function removeClass(el, className) { el.removeClass(className); }
- function anyMatch(state, params) { return $state.includes(state.name, params); }
- function exactMatch(state, params) { return $state.is(state.name, params); }
-
- update();
- }]
- };
-}
-
-angular.module('ui.router.state')
- .directive('uiSref', $StateRefDirective)
- .directive('uiSrefActive', $StateRefActiveDirective)
- .directive('uiSrefActiveEq', $StateRefActiveDirective)
- .directive('uiState', $StateRefDynamicDirective);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/stateFilters.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/stateFilters.js
deleted file mode 100644
index 4ef014a9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/stateFilters.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * @ngdoc filter
- * @name ui.router.state.filter:isState
- *
- * @requires ui.router.state.$state
- *
- * @description
- * Translates to {@link ui.router.state.$state#methods_is $state.is("stateName")}.
- */
-$IsStateFilter.$inject = ['$state'];
-function $IsStateFilter($state) {
- var isFilter = function (state, params) {
- return $state.is(state, params);
- };
- isFilter.$stateful = true;
- return isFilter;
-}
-
-/**
- * @ngdoc filter
- * @name ui.router.state.filter:includedByState
- *
- * @requires ui.router.state.$state
- *
- * @description
- * Translates to {@link ui.router.state.$state#methods_includes $state.includes('fullOrPartialStateName')}.
- */
-$IncludedByStateFilter.$inject = ['$state'];
-function $IncludedByStateFilter($state) {
- var includesFilter = function (state, params, options) {
- return $state.includes(state, params, options);
- };
- includesFilter.$stateful = true;
- return includesFilter;
-}
-
-angular.module('ui.router.state')
- .filter('isState', $IsStateFilter)
- .filter('includedByState', $IncludedByStateFilter);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/templateFactory.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/templateFactory.js
deleted file mode 100644
index ca491a98..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/templateFactory.js
+++ /dev/null
@@ -1,110 +0,0 @@
-/**
- * @ngdoc object
- * @name ui.router.util.$templateFactory
- *
- * @requires $http
- * @requires $templateCache
- * @requires $injector
- *
- * @description
- * Service. Manages loading of templates.
- */
-$TemplateFactory.$inject = ['$http', '$templateCache', '$injector'];
-function $TemplateFactory( $http, $templateCache, $injector) {
-
- /**
- * @ngdoc function
- * @name ui.router.util.$templateFactory#fromConfig
- * @methodOf ui.router.util.$templateFactory
- *
- * @description
- * Creates a template from a configuration object.
- *
- * @param {object} config Configuration object for which to load a template.
- * The following properties are search in the specified order, and the first one
- * that is defined is used to create the template:
- *
- * @param {string|object} config.template html string template or function to
- * load via {@link ui.router.util.$templateFactory#fromString fromString}.
- * @param {string|object} config.templateUrl url to load or a function returning
- * the url to load via {@link ui.router.util.$templateFactory#fromUrl fromUrl}.
- * @param {Function} config.templateProvider function to invoke via
- * {@link ui.router.util.$templateFactory#fromProvider fromProvider}.
- * @param {object} params Parameters to pass to the template function.
- * @param {object} locals Locals to pass to `invoke` if the template is loaded
- * via a `templateProvider`. Defaults to `{ params: params }`.
- *
- * @return {string|object} The template html as a string, or a promise for
- * that string,or `null` if no template is configured.
- */
- this.fromConfig = function (config, params, locals) {
- return (
- isDefined(config.template) ? this.fromString(config.template, params) :
- isDefined(config.templateUrl) ? this.fromUrl(config.templateUrl, params) :
- isDefined(config.templateProvider) ? this.fromProvider(config.templateProvider, params, locals) :
- null
- );
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$templateFactory#fromString
- * @methodOf ui.router.util.$templateFactory
- *
- * @description
- * Creates a template from a string or a function returning a string.
- *
- * @param {string|object} template html template as a string or function that
- * returns an html template as a string.
- * @param {object} params Parameters to pass to the template function.
- *
- * @return {string|object} The template html as a string, or a promise for that
- * string.
- */
- this.fromString = function (template, params) {
- return isFunction(template) ? template(params) : template;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$templateFactory#fromUrl
- * @methodOf ui.router.util.$templateFactory
- *
- * @description
- * Loads a template from the a URL via `$http` and `$templateCache`.
- *
- * @param {string|Function} url url of the template to load, or a function
- * that returns a url.
- * @param {Object} params Parameters to pass to the url function.
- * @return {string|Promise.<string>} The template html as a string, or a promise
- * for that string.
- */
- this.fromUrl = function (url, params) {
- if (isFunction(url)) url = url(params);
- if (url == null) return null;
- else return $http
- .get(url, { cache: $templateCache, headers: { Accept: 'text/html' }})
- .then(function(response) { return response.data; });
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$templateFactory#fromProvider
- * @methodOf ui.router.util.$templateFactory
- *
- * @description
- * Creates a template by invoking an injectable provider function.
- *
- * @param {Function} provider Function to invoke via `$injector.invoke`
- * @param {Object} params Parameters for the template.
- * @param {Object} locals Locals to pass to `invoke`. Defaults to
- * `{ params: params }`.
- * @return {string|Promise.<string>} The template html as a string, or a promise
- * for that string.
- */
- this.fromProvider = function (provider, params, locals) {
- return $injector.invoke(provider, null, locals || { params: params });
- };
-}
-
-angular.module('ui.router.util').service('$templateFactory', $TemplateFactory);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/urlMatcherFactory.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/urlMatcherFactory.js
deleted file mode 100644
index bc4e1eb4..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/urlMatcherFactory.js
+++ /dev/null
@@ -1,1081 +0,0 @@
-var $$UMFP; // reference to $UrlMatcherFactoryProvider
-
-/**
- * @ngdoc object
- * @name ui.router.util.type:UrlMatcher
- *
- * @description
- * Matches URLs against patterns and extracts named parameters from the path or the search
- * part of the URL. A URL pattern consists of a path pattern, optionally followed by '?' and a list
- * of search parameters. Multiple search parameter names are separated by '&'. Search parameters
- * do not influence whether or not a URL is matched, but their values are passed through into
- * the matched parameters returned by {@link ui.router.util.type:UrlMatcher#methods_exec exec}.
- *
- * Path parameter placeholders can be specified using simple colon/catch-all syntax or curly brace
- * syntax, which optionally allows a regular expression for the parameter to be specified:
- *
- * * `':'` name - colon placeholder
- * * `'*'` name - catch-all placeholder
- * * `'{' name '}'` - curly placeholder
- * * `'{' name ':' regexp|type '}'` - curly placeholder with regexp or type name. Should the
- * regexp itself contain curly braces, they must be in matched pairs or escaped with a backslash.
- *
- * Parameter names may contain only word characters (latin letters, digits, and underscore) and
- * must be unique within the pattern (across both path and search parameters). For colon
- * placeholders or curly placeholders without an explicit regexp, a path parameter matches any
- * number of characters other than '/'. For catch-all placeholders the path parameter matches
- * any number of characters.
- *
- * Examples:
- *
- * * `'/hello/'` - Matches only if the path is exactly '/hello/'. There is no special treatment for
- * trailing slashes, and patterns have to match the entire path, not just a prefix.
- * * `'/user/:id'` - Matches '/user/bob' or '/user/1234!!!' or even '/user/' but not '/user' or
- * '/user/bob/details'. The second path segment will be captured as the parameter 'id'.
- * * `'/user/{id}'` - Same as the previous example, but using curly brace syntax.
- * * `'/user/{id:[^/]*}'` - Same as the previous example.
- * * `'/user/{id:[0-9a-fA-F]{1,8}}'` - Similar to the previous example, but only matches if the id
- * parameter consists of 1 to 8 hex digits.
- * * `'/files/{path:.*}'` - Matches any URL starting with '/files/' and captures the rest of the
- * path into the parameter 'path'.
- * * `'/files/*path'` - ditto.
- * * `'/calendar/{start:date}'` - Matches "/calendar/2014-11-12" (because the pattern defined
- * in the built-in `date` Type matches `2014-11-12`) and provides a Date object in $stateParams.start
- *
- * @param {string} pattern The pattern to compile into a matcher.
- * @param {Object} config A configuration object hash:
- * @param {Object=} parentMatcher Used to concatenate the pattern/config onto
- * an existing UrlMatcher
- *
- * * `caseInsensitive` - `true` if URL matching should be case insensitive, otherwise `false`, the default value (for backward compatibility) is `false`.
- * * `strict` - `false` if matching against a URL with a trailing slash should be treated as equivalent to a URL without a trailing slash, the default value is `true`.
- *
- * @property {string} prefix A static prefix of this pattern. The matcher guarantees that any
- * URL matching this matcher (i.e. any string for which {@link ui.router.util.type:UrlMatcher#methods_exec exec()} returns
- * non-null) will start with this prefix.
- *
- * @property {string} source The pattern that was passed into the constructor
- *
- * @property {string} sourcePath The path portion of the source property
- *
- * @property {string} sourceSearch The search portion of the source property
- *
- * @property {string} regex The constructed regex that will be used to match against the url when
- * it is time to determine which url will match.
- *
- * @returns {Object} New `UrlMatcher` object
- */
-function UrlMatcher(pattern, config, parentMatcher) {
- config = extend({ params: {} }, isObject(config) ? config : {});
-
- // Find all placeholders and create a compiled pattern, using either classic or curly syntax:
- // '*' name
- // ':' name
- // '{' name '}'
- // '{' name ':' regexp '}'
- // The regular expression is somewhat complicated due to the need to allow curly braces
- // inside the regular expression. The placeholder regexp breaks down as follows:
- // ([:*])([\w\[\]]+) - classic placeholder ($1 / $2) (search version has - for snake-case)
- // \{([\w\[\]]+)(?:\:\s*( ... ))?\} - curly brace placeholder ($3) with optional regexp/type ... ($4) (search version has - for snake-case
- // (?: ... | ... | ... )+ - the regexp consists of any number of atoms, an atom being either
- // [^{}\\]+ - anything other than curly braces or backslash
- // \\. - a backslash escape
- // \{(?:[^{}\\]+|\\.)*\} - a matched set of curly braces containing other atoms
- var placeholder = /([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,
- searchPlaceholder = /([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,
- compiled = '^', last = 0, m,
- segments = this.segments = [],
- parentParams = parentMatcher ? parentMatcher.params : {},
- params = this.params = parentMatcher ? parentMatcher.params.$$new() : new $$UMFP.ParamSet(),
- paramNames = [];
-
- function addParameter(id, type, config, location) {
- paramNames.push(id);
- if (parentParams[id]) return parentParams[id];
- if (!/^\w+([-.]+\w+)*(?:\[\])?$/.test(id)) throw new Error("Invalid parameter name '" + id + "' in pattern '" + pattern + "'");
- if (params[id]) throw new Error("Duplicate parameter name '" + id + "' in pattern '" + pattern + "'");
- params[id] = new $$UMFP.Param(id, type, config, location);
- return params[id];
- }
-
- function quoteRegExp(string, pattern, squash, optional) {
- var surroundPattern = ['',''], result = string.replace(/[\\\[\]\^$*+?.()|{}]/g, "\\$&");
- if (!pattern) return result;
- switch(squash) {
- case false: surroundPattern = ['(', ')' + (optional ? "?" : "")]; break;
- case true:
- result = result.replace(/\/$/, '');
- surroundPattern = ['(?:\/(', ')|\/)?'];
- break;
- default: surroundPattern = ['(' + squash + "|", ')?']; break;
- }
- return result + surroundPattern[0] + pattern + surroundPattern[1];
- }
-
- this.source = pattern;
-
- // Split into static segments separated by path parameter placeholders.
- // The number of segments is always 1 more than the number of parameters.
- function matchDetails(m, isSearch) {
- var id, regexp, segment, type, cfg, arrayMode;
- id = m[2] || m[3]; // IE[78] returns '' for unmatched groups instead of null
- cfg = config.params[id];
- segment = pattern.substring(last, m.index);
- regexp = isSearch ? m[4] : m[4] || (m[1] == '*' ? '.*' : null);
-
- if (regexp) {
- type = $$UMFP.type(regexp) || inherit($$UMFP.type("string"), { pattern: new RegExp(regexp, config.caseInsensitive ? 'i' : undefined) });
- }
-
- return {
- id: id, regexp: regexp, segment: segment, type: type, cfg: cfg
- };
- }
-
- var p, param, segment;
- while ((m = placeholder.exec(pattern))) {
- p = matchDetails(m, false);
- if (p.segment.indexOf('?') >= 0) break; // we're into the search part
-
- param = addParameter(p.id, p.type, p.cfg, "path");
- compiled += quoteRegExp(p.segment, param.type.pattern.source, param.squash, param.isOptional);
- segments.push(p.segment);
- last = placeholder.lastIndex;
- }
- segment = pattern.substring(last);
-
- // Find any search parameter names and remove them from the last segment
- var i = segment.indexOf('?');
-
- if (i >= 0) {
- var search = this.sourceSearch = segment.substring(i);
- segment = segment.substring(0, i);
- this.sourcePath = pattern.substring(0, last + i);
-
- if (search.length > 0) {
- last = 0;
- while ((m = searchPlaceholder.exec(search))) {
- p = matchDetails(m, true);
- param = addParameter(p.id, p.type, p.cfg, "search");
- last = placeholder.lastIndex;
- // check if ?&
- }
- }
- } else {
- this.sourcePath = pattern;
- this.sourceSearch = '';
- }
-
- compiled += quoteRegExp(segment) + (config.strict === false ? '\/?' : '') + '$';
- segments.push(segment);
-
- this.regexp = new RegExp(compiled, config.caseInsensitive ? 'i' : undefined);
- this.prefix = segments[0];
- this.$$paramNames = paramNames;
-}
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#concat
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Returns a new matcher for a pattern constructed by appending the path part and adding the
- * search parameters of the specified pattern to this pattern. The current pattern is not
- * modified. This can be understood as creating a pattern for URLs that are relative to (or
- * suffixes of) the current pattern.
- *
- * @example
- * The following two matchers are equivalent:
- * <pre>
- * new UrlMatcher('/user/{id}?q').concat('/details?date');
- * new UrlMatcher('/user/{id}/details?q&date');
- * </pre>
- *
- * @param {string} pattern The pattern to append.
- * @param {Object} config An object hash of the configuration for the matcher.
- * @returns {UrlMatcher} A matcher for the concatenated pattern.
- */
-UrlMatcher.prototype.concat = function (pattern, config) {
- // Because order of search parameters is irrelevant, we can add our own search
- // parameters to the end of the new pattern. Parse the new pattern by itself
- // and then join the bits together, but it's much easier to do this on a string level.
- var defaultConfig = {
- caseInsensitive: $$UMFP.caseInsensitive(),
- strict: $$UMFP.strictMode(),
- squash: $$UMFP.defaultSquashPolicy()
- };
- return new UrlMatcher(this.sourcePath + pattern + this.sourceSearch, extend(defaultConfig, config), this);
-};
-
-UrlMatcher.prototype.toString = function () {
- return this.source;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#exec
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Tests the specified path against this matcher, and returns an object containing the captured
- * parameter values, or null if the path does not match. The returned object contains the values
- * of any search parameters that are mentioned in the pattern, but their value may be null if
- * they are not present in `searchParams`. This means that search parameters are always treated
- * as optional.
- *
- * @example
- * <pre>
- * new UrlMatcher('/user/{id}?q&r').exec('/user/bob', {
- * x: '1', q: 'hello'
- * });
- * // returns { id: 'bob', q: 'hello', r: null }
- * </pre>
- *
- * @param {string} path The URL path to match, e.g. `$location.path()`.
- * @param {Object} searchParams URL search parameters, e.g. `$location.search()`.
- * @returns {Object} The captured parameter values.
- */
-UrlMatcher.prototype.exec = function (path, searchParams) {
- var m = this.regexp.exec(path);
- if (!m) return null;
- searchParams = searchParams || {};
-
- var paramNames = this.parameters(), nTotal = paramNames.length,
- nPath = this.segments.length - 1,
- values = {}, i, j, cfg, paramName;
-
- if (nPath !== m.length - 1) throw new Error("Unbalanced capture group in route '" + this.source + "'");
-
- function decodePathArray(string) {
- function reverseString(str) { return str.split("").reverse().join(""); }
- function unquoteDashes(str) { return str.replace(/\\-/g, "-"); }
-
- var split = reverseString(string).split(/-(?!\\)/);
- var allReversed = map(split, reverseString);
- return map(allReversed, unquoteDashes).reverse();
- }
-
- var param, paramVal;
- for (i = 0; i < nPath; i++) {
- paramName = paramNames[i];
- param = this.params[paramName];
- paramVal = m[i+1];
- // if the param value matches a pre-replace pair, replace the value before decoding.
- for (j = 0; j < param.replace.length; j++) {
- if (param.replace[j].from === paramVal) paramVal = param.replace[j].to;
- }
- if (paramVal && param.array === true) paramVal = decodePathArray(paramVal);
- if (isDefined(paramVal)) paramVal = param.type.decode(paramVal);
- values[paramName] = param.value(paramVal);
- }
- for (/**/; i < nTotal; i++) {
- paramName = paramNames[i];
- values[paramName] = this.params[paramName].value(searchParams[paramName]);
- param = this.params[paramName];
- paramVal = searchParams[paramName];
- for (j = 0; j < param.replace.length; j++) {
- if (param.replace[j].from === paramVal) paramVal = param.replace[j].to;
- }
- if (isDefined(paramVal)) paramVal = param.type.decode(paramVal);
- values[paramName] = param.value(paramVal);
- }
-
- return values;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#parameters
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Returns the names of all path and search parameters of this pattern in an unspecified order.
- *
- * @returns {Array.<string>} An array of parameter names. Must be treated as read-only. If the
- * pattern has no parameters, an empty array is returned.
- */
-UrlMatcher.prototype.parameters = function (param) {
- if (!isDefined(param)) return this.$$paramNames;
- return this.params[param] || null;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#validates
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Checks an object hash of parameters to validate their correctness according to the parameter
- * types of this `UrlMatcher`.
- *
- * @param {Object} params The object hash of parameters to validate.
- * @returns {boolean} Returns `true` if `params` validates, otherwise `false`.
- */
-UrlMatcher.prototype.validates = function (params) {
- return this.params.$$validates(params);
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:UrlMatcher#format
- * @methodOf ui.router.util.type:UrlMatcher
- *
- * @description
- * Creates a URL that matches this pattern by substituting the specified values
- * for the path and search parameters. Null values for path parameters are
- * treated as empty strings.
- *
- * @example
- * <pre>
- * new UrlMatcher('/user/{id}?q').format({ id:'bob', q:'yes' });
- * // returns '/user/bob?q=yes'
- * </pre>
- *
- * @param {Object} values the values to substitute for the parameters in this pattern.
- * @returns {string} the formatted URL (path and optionally search part).
- */
-UrlMatcher.prototype.format = function (values) {
- values = values || {};
- var segments = this.segments, params = this.parameters(), paramset = this.params;
- if (!this.validates(values)) return null;
-
- var i, search = false, nPath = segments.length - 1, nTotal = params.length, result = segments[0];
-
- function encodeDashes(str) { // Replace dashes with encoded "\-"
- return encodeURIComponent(str).replace(/-/g, function(c) { return '%5C%' + c.charCodeAt(0).toString(16).toUpperCase(); });
- }
-
- for (i = 0; i < nTotal; i++) {
- var isPathParam = i < nPath;
- var name = params[i], param = paramset[name], value = param.value(values[name]);
- var isDefaultValue = param.isOptional && param.type.equals(param.value(), value);
- var squash = isDefaultValue ? param.squash : false;
- var encoded = param.type.encode(value);
-
- if (isPathParam) {
- var nextSegment = segments[i + 1];
- var isFinalPathParam = i + 1 === nPath;
-
- if (squash === false) {
- if (encoded != null) {
- if (isArray(encoded)) {
- result += map(encoded, encodeDashes).join("-");
- } else {
- result += encodeURIComponent(encoded);
- }
- }
- result += nextSegment;
- } else if (squash === true) {
- var capture = result.match(/\/$/) ? /\/?(.*)/ : /(.*)/;
- result += nextSegment.match(capture)[1];
- } else if (isString(squash)) {
- result += squash + nextSegment;
- }
-
- if (isFinalPathParam && param.squash === true && result.slice(-1) === '/') result = result.slice(0, -1);
- } else {
- if (encoded == null || (isDefaultValue && squash !== false)) continue;
- if (!isArray(encoded)) encoded = [ encoded ];
- if (encoded.length === 0) continue;
- encoded = map(encoded, encodeURIComponent).join('&' + name + '=');
- result += (search ? '&' : '?') + (name + '=' + encoded);
- search = true;
- }
- }
-
- return result;
-};
-
-/**
- * @ngdoc object
- * @name ui.router.util.type:Type
- *
- * @description
- * Implements an interface to define custom parameter types that can be decoded from and encoded to
- * string parameters matched in a URL. Used by {@link ui.router.util.type:UrlMatcher `UrlMatcher`}
- * objects when matching or formatting URLs, or comparing or validating parameter values.
- *
- * See {@link ui.router.util.$urlMatcherFactory#methods_type `$urlMatcherFactory#type()`} for more
- * information on registering custom types.
- *
- * @param {Object} config A configuration object which contains the custom type definition. The object's
- * properties will override the default methods and/or pattern in `Type`'s public interface.
- * @example
- * <pre>
- * {
- * decode: function(val) { return parseInt(val, 10); },
- * encode: function(val) { return val && val.toString(); },
- * equals: function(a, b) { return this.is(a) && a === b; },
- * is: function(val) { return angular.isNumber(val) isFinite(val) && val % 1 === 0; },
- * pattern: /\d+/
- * }
- * </pre>
- *
- * @property {RegExp} pattern The regular expression pattern used to match values of this type when
- * coming from a substring of a URL.
- *
- * @returns {Object} Returns a new `Type` object.
- */
-function Type(config) {
- extend(this, config);
-}
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:Type#is
- * @methodOf ui.router.util.type:Type
- *
- * @description
- * Detects whether a value is of a particular type. Accepts a native (decoded) value
- * and determines whether it matches the current `Type` object.
- *
- * @param {*} val The value to check.
- * @param {string} key Optional. If the type check is happening in the context of a specific
- * {@link ui.router.util.type:UrlMatcher `UrlMatcher`} object, this is the name of the
- * parameter in which `val` is stored. Can be used for meta-programming of `Type` objects.
- * @returns {Boolean} Returns `true` if the value matches the type, otherwise `false`.
- */
-Type.prototype.is = function(val, key) {
- return true;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:Type#encode
- * @methodOf ui.router.util.type:Type
- *
- * @description
- * Encodes a custom/native type value to a string that can be embedded in a URL. Note that the
- * return value does *not* need to be URL-safe (i.e. passed through `encodeURIComponent()`), it
- * only needs to be a representation of `val` that has been coerced to a string.
- *
- * @param {*} val The value to encode.
- * @param {string} key The name of the parameter in which `val` is stored. Can be used for
- * meta-programming of `Type` objects.
- * @returns {string} Returns a string representation of `val` that can be encoded in a URL.
- */
-Type.prototype.encode = function(val, key) {
- return val;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:Type#decode
- * @methodOf ui.router.util.type:Type
- *
- * @description
- * Converts a parameter value (from URL string or transition param) to a custom/native value.
- *
- * @param {string} val The URL parameter value to decode.
- * @param {string} key The name of the parameter in which `val` is stored. Can be used for
- * meta-programming of `Type` objects.
- * @returns {*} Returns a custom representation of the URL parameter value.
- */
-Type.prototype.decode = function(val, key) {
- return val;
-};
-
-/**
- * @ngdoc function
- * @name ui.router.util.type:Type#equals
- * @methodOf ui.router.util.type:Type
- *
- * @description
- * Determines whether two decoded values are equivalent.
- *
- * @param {*} a A value to compare against.
- * @param {*} b A value to compare against.
- * @returns {Boolean} Returns `true` if the values are equivalent/equal, otherwise `false`.
- */
-Type.prototype.equals = function(a, b) {
- return a == b;
-};
-
-Type.prototype.$subPattern = function() {
- var sub = this.pattern.toString();
- return sub.substr(1, sub.length - 2);
-};
-
-Type.prototype.pattern = /.*/;
-
-Type.prototype.toString = function() { return "{Type:" + this.name + "}"; };
-
-/** Given an encoded string, or a decoded object, returns a decoded object */
-Type.prototype.$normalize = function(val) {
- return this.is(val) ? val : this.decode(val);
-};
-
-/*
- * Wraps an existing custom Type as an array of Type, depending on 'mode'.
- * e.g.:
- * - urlmatcher pattern "/path?{queryParam[]:int}"
- * - url: "/path?queryParam=1&queryParam=2
- * - $stateParams.queryParam will be [1, 2]
- * if `mode` is "auto", then
- * - url: "/path?queryParam=1 will create $stateParams.queryParam: 1
- * - url: "/path?queryParam=1&queryParam=2 will create $stateParams.queryParam: [1, 2]
- */
-Type.prototype.$asArray = function(mode, isSearch) {
- if (!mode) return this;
- if (mode === "auto" && !isSearch) throw new Error("'auto' array mode is for query parameters only");
-
- function ArrayType(type, mode) {
- function bindTo(type, callbackName) {
- return function() {
- return type[callbackName].apply(type, arguments);
- };
- }
-
- // Wrap non-array value as array
- function arrayWrap(val) { return isArray(val) ? val : (isDefined(val) ? [ val ] : []); }
- // Unwrap array value for "auto" mode. Return undefined for empty array.
- function arrayUnwrap(val) {
- switch(val.length) {
- case 0: return undefined;
- case 1: return mode === "auto" ? val[0] : val;
- default: return val;
- }
- }
- function falsey(val) { return !val; }
-
- // Wraps type (.is/.encode/.decode) functions to operate on each value of an array
- function arrayHandler(callback, allTruthyMode) {
- return function handleArray(val) {
- if (isArray(val) && val.length === 0) return val;
- val = arrayWrap(val);
- var result = map(val, callback);
- if (allTruthyMode === true)
- return filter(result, falsey).length === 0;
- return arrayUnwrap(result);
- };
- }
-
- // Wraps type (.equals) functions to operate on each value of an array
- function arrayEqualsHandler(callback) {
- return function handleArray(val1, val2) {
- var left = arrayWrap(val1), right = arrayWrap(val2);
- if (left.length !== right.length) return false;
- for (var i = 0; i < left.length; i++) {
- if (!callback(left[i], right[i])) return false;
- }
- return true;
- };
- }
-
- this.encode = arrayHandler(bindTo(type, 'encode'));
- this.decode = arrayHandler(bindTo(type, 'decode'));
- this.is = arrayHandler(bindTo(type, 'is'), true);
- this.equals = arrayEqualsHandler(bindTo(type, 'equals'));
- this.pattern = type.pattern;
- this.$normalize = arrayHandler(bindTo(type, '$normalize'));
- this.name = type.name;
- this.$arrayMode = mode;
- }
-
- return new ArrayType(this, mode);
-};
-
-
-
-/**
- * @ngdoc object
- * @name ui.router.util.$urlMatcherFactory
- *
- * @description
- * Factory for {@link ui.router.util.type:UrlMatcher `UrlMatcher`} instances. The factory
- * is also available to providers under the name `$urlMatcherFactoryProvider`.
- */
-function $UrlMatcherFactory() {
- $$UMFP = this;
-
- var isCaseInsensitive = false, isStrictMode = true, defaultSquashPolicy = false;
-
- // Use tildes to pre-encode slashes.
- // If the slashes are simply URLEncoded, the browser can choose to pre-decode them,
- // and bidirectional encoding/decoding fails.
- // Tilde was chosen because it's not a RFC 3986 section 2.2 Reserved Character
- function valToString(val) { return val != null ? val.toString().replace(/~/g, "~~").replace(/\//g, "~2F") : val; }
- function valFromString(val) { return val != null ? val.toString().replace(/~2F/g, "/").replace(/~~/g, "~") : val; }
-
- var $types = {}, enqueue = true, typeQueue = [], injector, defaultTypes = {
- "string": {
- encode: valToString,
- decode: valFromString,
- // TODO: in 1.0, make string .is() return false if value is undefined/null by default.
- // In 0.2.x, string params are optional by default for backwards compat
- is: function(val) { return val == null || !isDefined(val) || typeof val === "string"; },
- pattern: /[^/]*/
- },
- "int": {
- encode: valToString,
- decode: function(val) { return parseInt(val, 10); },
- is: function(val) { return isDefined(val) && this.decode(val.toString()) === val; },
- pattern: /\d+/
- },
- "bool": {
- encode: function(val) { return val ? 1 : 0; },
- decode: function(val) { return parseInt(val, 10) !== 0; },
- is: function(val) { return val === true || val === false; },
- pattern: /0|1/
- },
- "date": {
- encode: function (val) {
- if (!this.is(val))
- return undefined;
- return [ val.getFullYear(),
- ('0' + (val.getMonth() + 1)).slice(-2),
- ('0' + val.getDate()).slice(-2)
- ].join("-");
- },
- decode: function (val) {
- if (this.is(val)) return val;
- var match = this.capture.exec(val);
- return match ? new Date(match[1], match[2] - 1, match[3]) : undefined;
- },
- is: function(val) { return val instanceof Date && !isNaN(val.valueOf()); },
- equals: function (a, b) { return this.is(a) && this.is(b) && a.toISOString() === b.toISOString(); },
- pattern: /[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,
- capture: /([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/
- },
- "json": {
- encode: angular.toJson,
- decode: angular.fromJson,
- is: angular.isObject,
- equals: angular.equals,
- pattern: /[^/]*/
- },
- "any": { // does not encode/decode
- encode: angular.identity,
- decode: angular.identity,
- equals: angular.equals,
- pattern: /.*/
- }
- };
-
- function getDefaultConfig() {
- return {
- strict: isStrictMode,
- caseInsensitive: isCaseInsensitive
- };
- }
-
- function isInjectable(value) {
- return (isFunction(value) || (isArray(value) && isFunction(value[value.length - 1])));
- }
-
- /**
- * [Internal] Get the default value of a parameter, which may be an injectable function.
- */
- $UrlMatcherFactory.$$getDefaultValue = function(config) {
- if (!isInjectable(config.value)) return config.value;
- if (!injector) throw new Error("Injectable functions cannot be called at configuration time");
- return injector.invoke(config.value);
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#caseInsensitive
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Defines whether URL matching should be case sensitive (the default behavior), or not.
- *
- * @param {boolean} value `false` to match URL in a case sensitive manner; otherwise `true`;
- * @returns {boolean} the current value of caseInsensitive
- */
- this.caseInsensitive = function(value) {
- if (isDefined(value))
- isCaseInsensitive = value;
- return isCaseInsensitive;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#strictMode
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Defines whether URLs should match trailing slashes, or not (the default behavior).
- *
- * @param {boolean=} value `false` to match trailing slashes in URLs, otherwise `true`.
- * @returns {boolean} the current value of strictMode
- */
- this.strictMode = function(value) {
- if (isDefined(value))
- isStrictMode = value;
- return isStrictMode;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#defaultSquashPolicy
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Sets the default behavior when generating or matching URLs with default parameter values.
- *
- * @param {string} value A string that defines the default parameter URL squashing behavior.
- * `nosquash`: When generating an href with a default parameter value, do not squash the parameter value from the URL
- * `slash`: When generating an href with a default parameter value, squash (remove) the parameter value, and, if the
- * parameter is surrounded by slashes, squash (remove) one slash from the URL
- * any other string, e.g. "~": When generating an href with a default parameter value, squash (remove)
- * the parameter value from the URL and replace it with this string.
- */
- this.defaultSquashPolicy = function(value) {
- if (!isDefined(value)) return defaultSquashPolicy;
- if (value !== true && value !== false && !isString(value))
- throw new Error("Invalid squash policy: " + value + ". Valid policies: false, true, arbitrary-string");
- defaultSquashPolicy = value;
- return value;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#compile
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Creates a {@link ui.router.util.type:UrlMatcher `UrlMatcher`} for the specified pattern.
- *
- * @param {string} pattern The URL pattern.
- * @param {Object} config The config object hash.
- * @returns {UrlMatcher} The UrlMatcher.
- */
- this.compile = function (pattern, config) {
- return new UrlMatcher(pattern, extend(getDefaultConfig(), config));
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#isMatcher
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Returns true if the specified object is a `UrlMatcher`, or false otherwise.
- *
- * @param {Object} object The object to perform the type check against.
- * @returns {Boolean} Returns `true` if the object matches the `UrlMatcher` interface, by
- * implementing all the same methods.
- */
- this.isMatcher = function (o) {
- if (!isObject(o)) return false;
- var result = true;
-
- forEach(UrlMatcher.prototype, function(val, name) {
- if (isFunction(val)) {
- result = result && (isDefined(o[name]) && isFunction(o[name]));
- }
- });
- return result;
- };
-
- /**
- * @ngdoc function
- * @name ui.router.util.$urlMatcherFactory#type
- * @methodOf ui.router.util.$urlMatcherFactory
- *
- * @description
- * Registers a custom {@link ui.router.util.type:Type `Type`} object that can be used to
- * generate URLs with typed parameters.
- *
- * @param {string} name The type name.
- * @param {Object|Function} definition The type definition. See
- * {@link ui.router.util.type:Type `Type`} for information on the values accepted.
- * @param {Object|Function} definitionFn (optional) A function that is injected before the app
- * runtime starts. The result of this function is merged into the existing `definition`.
- * See {@link ui.router.util.type:Type `Type`} for information on the values accepted.
- *
- * @returns {Object} Returns `$urlMatcherFactoryProvider`.
- *
- * @example
- * This is a simple example of a custom type that encodes and decodes items from an
- * array, using the array index as the URL-encoded value:
- *
- * <pre>
- * var list = ['John', 'Paul', 'George', 'Ringo'];
- *
- * $urlMatcherFactoryProvider.type('listItem', {
- * encode: function(item) {
- * // Represent the list item in the URL using its corresponding index
- * return list.indexOf(item);
- * },
- * decode: function(item) {
- * // Look up the list item by index
- * return list[parseInt(item, 10)];
- * },
- * is: function(item) {
- * // Ensure the item is valid by checking to see that it appears
- * // in the list
- * return list.indexOf(item) > -1;
- * }
- * });
- *
- * $stateProvider.state('list', {
- * url: "/list/{item:listItem}",
- * controller: function($scope, $stateParams) {
- * console.log($stateParams.item);
- * }
- * });
- *
- * // ...
- *
- * // Changes URL to '/list/3', logs "Ringo" to the console
- * $state.go('list', { item: "Ringo" });
- * </pre>
- *
- * This is a more complex example of a type that relies on dependency injection to
- * interact with services, and uses the parameter name from the URL to infer how to
- * handle encoding and decoding parameter values:
- *
- * <pre>
- * // Defines a custom type that gets a value from a service,
- * // where each service gets different types of values from
- * // a backend API:
- * $urlMatcherFactoryProvider.type('dbObject', {}, function(Users, Posts) {
- *
- * // Matches up services to URL parameter names
- * var services = {
- * user: Users,
- * post: Posts
- * };
- *
- * return {
- * encode: function(object) {
- * // Represent the object in the URL using its unique ID
- * return object.id;
- * },
- * decode: function(value, key) {
- * // Look up the object by ID, using the parameter
- * // name (key) to call the correct service
- * return services[key].findById(value);
- * },
- * is: function(object, key) {
- * // Check that object is a valid dbObject
- * return angular.isObject(object) && object.id && services[key];
- * }
- * equals: function(a, b) {
- * // Check the equality of decoded objects by comparing
- * // their unique IDs
- * return a.id === b.id;
- * }
- * };
- * });
- *
- * // In a config() block, you can then attach URLs with
- * // type-annotated parameters:
- * $stateProvider.state('users', {
- * url: "/users",
- * // ...
- * }).state('users.item', {
- * url: "/{user:dbObject}",
- * controller: function($scope, $stateParams) {
- * // $stateParams.user will now be an object returned from
- * // the Users service
- * },
- * // ...
- * });
- * </pre>
- */
- this.type = function (name, definition, definitionFn) {
- if (!isDefined(definition)) return $types[name];
- if ($types.hasOwnProperty(name)) throw new Error("A type named '" + name + "' has already been defined.");
-
- $types[name] = new Type(extend({ name: name }, definition));
- if (definitionFn) {
- typeQueue.push({ name: name, def: definitionFn });
- if (!enqueue) flushTypeQueue();
- }
- return this;
- };
-
- // `flushTypeQueue()` waits until `$urlMatcherFactory` is injected before invoking the queued `definitionFn`s
- function flushTypeQueue() {
- while(typeQueue.length) {
- var type = typeQueue.shift();
- if (type.pattern) throw new Error("You cannot override a type's .pattern at runtime.");
- angular.extend($types[type.name], injector.invoke(type.def));
- }
- }
-
- // Register default types. Store them in the prototype of $types.
- forEach(defaultTypes, function(type, name) { $types[name] = new Type(extend({name: name}, type)); });
- $types = inherit($types, {});
-
- /* No need to document $get, since it returns this */
- this.$get = ['$injector', function ($injector) {
- injector = $injector;
- enqueue = false;
- flushTypeQueue();
-
- forEach(defaultTypes, function(type, name) {
- if (!$types[name]) $types[name] = new Type(type);
- });
- return this;
- }];
-
- this.Param = function Param(id, type, config, location) {
- var self = this;
- config = unwrapShorthand(config);
- type = getType(config, type, location);
- var arrayMode = getArrayMode();
- type = arrayMode ? type.$asArray(arrayMode, location === "search") : type;
- if (type.name === "string" && !arrayMode && location === "path" && config.value === undefined)
- config.value = ""; // for 0.2.x; in 0.3.0+ do not automatically default to ""
- var isOptional = config.value !== undefined;
- var squash = getSquashPolicy(config, isOptional);
- var replace = getReplace(config, arrayMode, isOptional, squash);
-
- function unwrapShorthand(config) {
- var keys = isObject(config) ? objectKeys(config) : [];
- var isShorthand = indexOf(keys, "value") === -1 && indexOf(keys, "type") === -1 &&
- indexOf(keys, "squash") === -1 && indexOf(keys, "array") === -1;
- if (isShorthand) config = { value: config };
- config.$$fn = isInjectable(config.value) ? config.value : function () { return config.value; };
- return config;
- }
-
- function getType(config, urlType, location) {
- if (config.type && urlType) throw new Error("Param '"+id+"' has two type configurations.");
- if (urlType) return urlType;
- if (!config.type) return (location === "config" ? $types.any : $types.string);
-
- if (angular.isString(config.type))
- return $types[config.type];
- if (config.type instanceof Type)
- return config.type;
- return new Type(config.type);
- }
-
- // array config: param name (param[]) overrides default settings. explicit config overrides param name.
- function getArrayMode() {
- var arrayDefaults = { array: (location === "search" ? "auto" : false) };
- var arrayParamNomenclature = id.match(/\[\]$/) ? { array: true } : {};
- return extend(arrayDefaults, arrayParamNomenclature, config).array;
- }
-
- /**
- * returns false, true, or the squash value to indicate the "default parameter url squash policy".
- */
- function getSquashPolicy(config, isOptional) {
- var squash = config.squash;
- if (!isOptional || squash === false) return false;
- if (!isDefined(squash) || squash == null) return defaultSquashPolicy;
- if (squash === true || isString(squash)) return squash;
- throw new Error("Invalid squash policy: '" + squash + "'. Valid policies: false, true, or arbitrary string");
- }
-
- function getReplace(config, arrayMode, isOptional, squash) {
- var replace, configuredKeys, defaultPolicy = [
- { from: "", to: (isOptional || arrayMode ? undefined : "") },
- { from: null, to: (isOptional || arrayMode ? undefined : "") }
- ];
- replace = isArray(config.replace) ? config.replace : [];
- if (isString(squash))
- replace.push({ from: squash, to: undefined });
- configuredKeys = map(replace, function(item) { return item.from; } );
- return filter(defaultPolicy, function(item) { return indexOf(configuredKeys, item.from) === -1; }).concat(replace);
- }
-
- /**
- * [Internal] Get the default value of a parameter, which may be an injectable function.
- */
- function $$getDefaultValue() {
- if (!injector) throw new Error("Injectable functions cannot be called at configuration time");
- var defaultValue = injector.invoke(config.$$fn);
- if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))
- throw new Error("Default value (" + defaultValue + ") for parameter '" + self.id + "' is not an instance of Type (" + self.type.name + ")");
- return defaultValue;
- }
-
- /**
- * [Internal] Gets the decoded representation of a value if the value is defined, otherwise, returns the
- * default value, which may be the result of an injectable function.
- */
- function $value(value) {
- function hasReplaceVal(val) { return function(obj) { return obj.from === val; }; }
- function $replace(value) {
- var replacement = map(filter(self.replace, hasReplaceVal(value)), function(obj) { return obj.to; });
- return replacement.length ? replacement[0] : value;
- }
- value = $replace(value);
- return !isDefined(value) ? $$getDefaultValue() : self.type.$normalize(value);
- }
-
- function toString() { return "{Param:" + id + " " + type + " squash: '" + squash + "' optional: " + isOptional + "}"; }
-
- extend(this, {
- id: id,
- type: type,
- location: location,
- array: arrayMode,
- squash: squash,
- replace: replace,
- isOptional: isOptional,
- value: $value,
- dynamic: undefined,
- config: config,
- toString: toString
- });
- };
-
- function ParamSet(params) {
- extend(this, params || {});
- }
-
- ParamSet.prototype = {
- $$new: function() {
- return inherit(this, extend(new ParamSet(), { $$parent: this}));
- },
- $$keys: function () {
- var keys = [], chain = [], parent = this,
- ignore = objectKeys(ParamSet.prototype);
- while (parent) { chain.push(parent); parent = parent.$$parent; }
- chain.reverse();
- forEach(chain, function(paramset) {
- forEach(objectKeys(paramset), function(key) {
- if (indexOf(keys, key) === -1 && indexOf(ignore, key) === -1) keys.push(key);
- });
- });
- return keys;
- },
- $$values: function(paramValues) {
- var values = {}, self = this;
- forEach(self.$$keys(), function(key) {
- values[key] = self[key].value(paramValues && paramValues[key]);
- });
- return values;
- },
- $$equals: function(paramValues1, paramValues2) {
- var equal = true, self = this;
- forEach(self.$$keys(), function(key) {
- var left = paramValues1 && paramValues1[key], right = paramValues2 && paramValues2[key];
- if (!self[key].type.equals(left, right)) equal = false;
- });
- return equal;
- },
- $$validates: function $$validate(paramValues) {
- var keys = this.$$keys(), i, param, rawVal, normalized, encoded;
- for (i = 0; i < keys.length; i++) {
- param = this[keys[i]];
- rawVal = paramValues[keys[i]];
- if ((rawVal === undefined || rawVal === null) && param.isOptional)
- break; // There was no parameter value, but the param is optional
- normalized = param.type.$normalize(rawVal);
- if (!param.type.is(normalized))
- return false; // The value was not of the correct Type, and could not be decoded to the correct Type
- encoded = param.type.encode(normalized);
- if (angular.isString(encoded) && !param.type.pattern.exec(encoded))
- return false; // The value was of the correct type, but when encoded, did not match the Type's regexp
- }
- return true;
- },
- $$parent: undefined
- };
-
- this.ParamSet = ParamSet;
-}
-
-// Register as a provider so it's available to other providers
-angular.module('ui.router.util').provider('$urlMatcherFactory', $UrlMatcherFactory);
-angular.module('ui.router.util').run(['$urlMatcherFactory', function($urlMatcherFactory) { }]);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/urlRouter.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/urlRouter.js
deleted file mode 100644
index 8ec704b9..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/urlRouter.js
+++ /dev/null
@@ -1,431 +0,0 @@
-/**
- * @ngdoc object
- * @name ui.router.router.$urlRouterProvider
- *
- * @requires ui.router.util.$urlMatcherFactoryProvider
- * @requires $locationProvider
- *
- * @description
- * `$urlRouterProvider` has the responsibility of watching `$location`.
- * When `$location` changes it runs through a list of rules one by one until a
- * match is found. `$urlRouterProvider` is used behind the scenes anytime you specify
- * a url in a state configuration. All urls are compiled into a UrlMatcher object.
- *
- * There are several methods on `$urlRouterProvider` that make it useful to use directly
- * in your module config.
- */
-$UrlRouterProvider.$inject = ['$locationProvider', '$urlMatcherFactoryProvider'];
-function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
- var rules = [], otherwise = null, interceptDeferred = false, listener;
-
- // Returns a string that is a prefix of all strings matching the RegExp
- function regExpPrefix(re) {
- var prefix = /^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(re.source);
- return (prefix != null) ? prefix[1].replace(/\\(.)/g, "$1") : '';
- }
-
- // Interpolates matched values into a String.replace()-style pattern
- function interpolate(pattern, match) {
- return pattern.replace(/\$(\$|\d{1,2})/, function (m, what) {
- return match[what === '$' ? 0 : Number(what)];
- });
- }
-
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouterProvider#rule
- * @methodOf ui.router.router.$urlRouterProvider
- *
- * @description
- * Defines rules that are used by `$urlRouterProvider` to find matches for
- * specific URLs.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router.router']);
- *
- * app.config(function ($urlRouterProvider) {
- * // Here's an example of how you might allow case insensitive urls
- * $urlRouterProvider.rule(function ($injector, $location) {
- * var path = $location.path(),
- * normalized = path.toLowerCase();
- *
- * if (path !== normalized) {
- * return normalized;
- * }
- * });
- * });
- * </pre>
- *
- * @param {function} rule Handler function that takes `$injector` and `$location`
- * services as arguments. You can use them to return a valid path as a string.
- *
- * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance
- */
- this.rule = function (rule) {
- if (!isFunction(rule)) throw new Error("'rule' must be a function");
- rules.push(rule);
- return this;
- };
-
- /**
- * @ngdoc object
- * @name ui.router.router.$urlRouterProvider#otherwise
- * @methodOf ui.router.router.$urlRouterProvider
- *
- * @description
- * Defines a path that is used when an invalid route is requested.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router.router']);
- *
- * app.config(function ($urlRouterProvider) {
- * // if the path doesn't match any of the urls you configured
- * // otherwise will take care of routing the user to the
- * // specified url
- * $urlRouterProvider.otherwise('/index');
- *
- * // Example of using function rule as param
- * $urlRouterProvider.otherwise(function ($injector, $location) {
- * return '/a/valid/url';
- * });
- * });
- * </pre>
- *
- * @param {string|function} rule The url path you want to redirect to or a function
- * rule that returns the url path. The function version is passed two params:
- * `$injector` and `$location` services, and must return a url string.
- *
- * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance
- */
- this.otherwise = function (rule) {
- if (isString(rule)) {
- var redirect = rule;
- rule = function () { return redirect; };
- }
- else if (!isFunction(rule)) throw new Error("'rule' must be a function");
- otherwise = rule;
- return this;
- };
-
-
- function handleIfMatch($injector, handler, match) {
- if (!match) return false;
- var result = $injector.invoke(handler, handler, { $match: match });
- return isDefined(result) ? result : true;
- }
-
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouterProvider#when
- * @methodOf ui.router.router.$urlRouterProvider
- *
- * @description
- * Registers a handler for a given url matching.
- *
- * If the handler is a string, it is
- * treated as a redirect, and is interpolated according to the syntax of match
- * (i.e. like `String.replace()` for `RegExp`, or like a `UrlMatcher` pattern otherwise).
- *
- * If the handler is a function, it is injectable. It gets invoked if `$location`
- * matches. You have the option of inject the match object as `$match`.
- *
- * The handler can return
- *
- * - **falsy** to indicate that the rule didn't match after all, then `$urlRouter`
- * will continue trying to find another one that matches.
- * - **string** which is treated as a redirect and passed to `$location.url()`
- * - **void** or any **truthy** value tells `$urlRouter` that the url was handled.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router.router']);
- *
- * app.config(function ($urlRouterProvider) {
- * $urlRouterProvider.when($state.url, function ($match, $stateParams) {
- * if ($state.$current.navigable !== state ||
- * !equalForKeys($match, $stateParams) {
- * $state.transitionTo(state, $match, false);
- * }
- * });
- * });
- * </pre>
- *
- * @param {string|object} what The incoming path that you want to redirect.
- * @param {string|function} handler The path you want to redirect your user to.
- */
- this.when = function (what, handler) {
- var redirect, handlerIsString = isString(handler);
- if (isString(what)) what = $urlMatcherFactory.compile(what);
-
- if (!handlerIsString && !isFunction(handler) && !isArray(handler))
- throw new Error("invalid 'handler' in when()");
-
- var strategies = {
- matcher: function (what, handler) {
- if (handlerIsString) {
- redirect = $urlMatcherFactory.compile(handler);
- handler = ['$match', function ($match) { return redirect.format($match); }];
- }
- return extend(function ($injector, $location) {
- return handleIfMatch($injector, handler, what.exec($location.path(), $location.search()));
- }, {
- prefix: isString(what.prefix) ? what.prefix : ''
- });
- },
- regex: function (what, handler) {
- if (what.global || what.sticky) throw new Error("when() RegExp must not be global or sticky");
-
- if (handlerIsString) {
- redirect = handler;
- handler = ['$match', function ($match) { return interpolate(redirect, $match); }];
- }
- return extend(function ($injector, $location) {
- return handleIfMatch($injector, handler, what.exec($location.path()));
- }, {
- prefix: regExpPrefix(what)
- });
- }
- };
-
- var check = { matcher: $urlMatcherFactory.isMatcher(what), regex: what instanceof RegExp };
-
- for (var n in check) {
- if (check[n]) return this.rule(strategies[n](what, handler));
- }
-
- throw new Error("invalid 'what' in when()");
- };
-
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouterProvider#deferIntercept
- * @methodOf ui.router.router.$urlRouterProvider
- *
- * @description
- * Disables (or enables) deferring location change interception.
- *
- * If you wish to customize the behavior of syncing the URL (for example, if you wish to
- * defer a transition but maintain the current URL), call this method at configuration time.
- * Then, at run time, call `$urlRouter.listen()` after you have configured your own
- * `$locationChangeSuccess` event handler.
- *
- * @example
- * <pre>
- * var app = angular.module('app', ['ui.router.router']);
- *
- * app.config(function ($urlRouterProvider) {
- *
- * // Prevent $urlRouter from automatically intercepting URL changes;
- * // this allows you to configure custom behavior in between
- * // location changes and route synchronization:
- * $urlRouterProvider.deferIntercept();
- *
- * }).run(function ($rootScope, $urlRouter, UserService) {
- *
- * $rootScope.$on('$locationChangeSuccess', function(e) {
- * // UserService is an example service for managing user state
- * if (UserService.isLoggedIn()) return;
- *
- * // Prevent $urlRouter's default handler from firing
- * e.preventDefault();
- *
- * UserService.handleLogin().then(function() {
- * // Once the user has logged in, sync the current URL
- * // to the router:
- * $urlRouter.sync();
- * });
- * });
- *
- * // Configures $urlRouter's listener *after* your custom listener
- * $urlRouter.listen();
- * });
- * </pre>
- *
- * @param {boolean} defer Indicates whether to defer location change interception. Passing
- no parameter is equivalent to `true`.
- */
- this.deferIntercept = function (defer) {
- if (defer === undefined) defer = true;
- interceptDeferred = defer;
- };
-
- /**
- * @ngdoc object
- * @name ui.router.router.$urlRouter
- *
- * @requires $location
- * @requires $rootScope
- * @requires $injector
- * @requires $browser
- *
- * @description
- *
- */
- this.$get = $get;
- $get.$inject = ['$location', '$rootScope', '$injector', '$browser', '$sniffer'];
- function $get( $location, $rootScope, $injector, $browser, $sniffer) {
-
- var baseHref = $browser.baseHref(), location = $location.url(), lastPushedUrl;
-
- function appendBasePath(url, isHtml5, absolute) {
- if (baseHref === '/') return url;
- if (isHtml5) return baseHref.slice(0, -1) + url;
- if (absolute) return baseHref.slice(1) + url;
- return url;
- }
-
- // TODO: Optimize groups of rules with non-empty prefix into some sort of decision tree
- function update(evt) {
- if (evt && evt.defaultPrevented) return;
- var ignoreUpdate = lastPushedUrl && $location.url() === lastPushedUrl;
- lastPushedUrl = undefined;
- // TODO: Re-implement this in 1.0 for https://github.com/angular-ui/ui-router/issues/1573
- //if (ignoreUpdate) return true;
-
- function check(rule) {
- var handled = rule($injector, $location);
-
- if (!handled) return false;
- if (isString(handled)) $location.replace().url(handled);
- return true;
- }
- var n = rules.length, i;
-
- for (i = 0; i < n; i++) {
- if (check(rules[i])) return;
- }
- // always check otherwise last to allow dynamic updates to the set of rules
- if (otherwise) check(otherwise);
- }
-
- function listen() {
- listener = listener || $rootScope.$on('$locationChangeSuccess', update);
- return listener;
- }
-
- if (!interceptDeferred) listen();
-
- return {
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouter#sync
- * @methodOf ui.router.router.$urlRouter
- *
- * @description
- * Triggers an update; the same update that happens when the address bar url changes, aka `$locationChangeSuccess`.
- * This method is useful when you need to use `preventDefault()` on the `$locationChangeSuccess` event,
- * perform some custom logic (route protection, auth, config, redirection, etc) and then finally proceed
- * with the transition by calling `$urlRouter.sync()`.
- *
- * @example
- * <pre>
- * angular.module('app', ['ui.router'])
- * .run(function($rootScope, $urlRouter) {
- * $rootScope.$on('$locationChangeSuccess', function(evt) {
- * // Halt state change from even starting
- * evt.preventDefault();
- * // Perform custom logic
- * var meetsRequirement = ...
- * // Continue with the update and state transition if logic allows
- * if (meetsRequirement) $urlRouter.sync();
- * });
- * });
- * </pre>
- */
- sync: function() {
- update();
- },
-
- listen: function() {
- return listen();
- },
-
- update: function(read) {
- if (read) {
- location = $location.url();
- return;
- }
- if ($location.url() === location) return;
-
- $location.url(location);
- $location.replace();
- },
-
- push: function(urlMatcher, params, options) {
- var url = urlMatcher.format(params || {});
-
- // Handle the special hash param, if needed
- if (url !== null && params && params['#']) {
- url += '#' + params['#'];
- }
-
- $location.url(url);
- lastPushedUrl = options && options.$$avoidResync ? $location.url() : undefined;
- if (options && options.replace) $location.replace();
- },
-
- /**
- * @ngdoc function
- * @name ui.router.router.$urlRouter#href
- * @methodOf ui.router.router.$urlRouter
- *
- * @description
- * A URL generation method that returns the compiled URL for a given
- * {@link ui.router.util.type:UrlMatcher `UrlMatcher`}, populated with the provided parameters.
- *
- * @example
- * <pre>
- * $bob = $urlRouter.href(new UrlMatcher("/about/:person"), {
- * person: "bob"
- * });
- * // $bob == "/about/bob";
- * </pre>
- *
- * @param {UrlMatcher} urlMatcher The `UrlMatcher` object which is used as the template of the URL to generate.
- * @param {object=} params An object of parameter values to fill the matcher's required parameters.
- * @param {object=} options Options object. The options are:
- *
- * - **`absolute`** - {boolean=false}, If true will generate an absolute url, e.g. "http://www.example.com/fullurl".
- *
- * @returns {string} Returns the fully compiled URL, or `null` if `params` fail validation against `urlMatcher`
- */
- href: function(urlMatcher, params, options) {
- if (!urlMatcher.validates(params)) return null;
-
- var isHtml5 = $locationProvider.html5Mode();
- if (angular.isObject(isHtml5)) {
- isHtml5 = isHtml5.enabled;
- }
-
- isHtml5 = isHtml5 && $sniffer.history;
-
- var url = urlMatcher.format(params);
- options = options || {};
-
- if (!isHtml5 && url !== null) {
- url = "#" + $locationProvider.hashPrefix() + url;
- }
-
- // Handle special hash param, if needed
- if (url !== null && params && params['#']) {
- url += '#' + params['#'];
- }
-
- url = appendBasePath(url, isHtml5, options.absolute);
-
- if (!options.absolute || !url) {
- return url;
- }
-
- var slash = (!isHtml5 && url ? '/' : ''), port = $location.port();
- port = (port === 80 || port === 443 ? '' : ':' + port);
-
- return [$location.protocol(), '://', $location.host(), port, slash, url].join('');
- }
- };
- }
-}
-
-angular.module('ui.router.router').provider('$urlRouter', $UrlRouterProvider);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/view.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/view.js
deleted file mode 100644
index 94334d31..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/view.js
+++ /dev/null
@@ -1,45 +0,0 @@
-
-$ViewProvider.$inject = [];
-function $ViewProvider() {
-
- this.$get = $get;
- /**
- * @ngdoc object
- * @name ui.router.state.$view
- *
- * @requires ui.router.util.$templateFactory
- * @requires $rootScope
- *
- * @description
- *
- */
- $get.$inject = ['$rootScope', '$templateFactory'];
- function $get( $rootScope, $templateFactory) {
- return {
- // $view.load('full.viewName', { template: ..., controller: ..., resolve: ..., async: false, params: ... })
- /**
- * @ngdoc function
- * @name ui.router.state.$view#load
- * @methodOf ui.router.state.$view
- *
- * @description
- *
- * @param {string} name name
- * @param {object} options option object.
- */
- load: function load(name, options) {
- var result, defaults = {
- template: null, controller: null, view: null, locals: null, notify: true, async: true, params: {}
- };
- options = extend(defaults, options);
-
- if (options.view) {
- result = $templateFactory.fromConfig(options.view, options.params, options.locals);
- }
- return result;
- }
- };
- }
-}
-
-angular.module('ui.router.state').provider('$view', $ViewProvider);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/viewDirective.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/viewDirective.js
deleted file mode 100644
index c2eaa3d5..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/viewDirective.js
+++ /dev/null
@@ -1,351 +0,0 @@
-var ngMajorVer = angular.version.major;
-var ngMinorVer = angular.version.minor;
-/**
- * @ngdoc directive
- * @name ui.router.state.directive:ui-view
- *
- * @requires ui.router.state.$state
- * @requires $compile
- * @requires $controller
- * @requires $injector
- * @requires ui.router.state.$uiViewScroll
- * @requires $document
- *
- * @restrict ECA
- *
- * @description
- * The ui-view directive tells $state where to place your templates.
- *
- * @param {string=} name A view name. The name should be unique amongst the other views in the
- * same state. You can have views of the same name that live in different states.
- *
- * @param {string=} autoscroll It allows you to set the scroll behavior of the browser window
- * when a view is populated. By default, $anchorScroll is overridden by ui-router's custom scroll
- * service, {@link ui.router.state.$uiViewScroll}. This custom service let's you
- * scroll ui-view elements into view when they are populated during a state activation.
- *
- * @param {string=} noanimation If truthy, the non-animated renderer will be selected (no animations
- * will be applied to the ui-view)
- *
- * *Note: To revert back to old [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)
- * functionality, call `$uiViewScrollProvider.useAnchorScroll()`.*
- *
- * @param {string=} onload Expression to evaluate whenever the view updates.
- *
- * @example
- * A view can be unnamed or named.
- * <pre>
- * <!-- Unnamed -->
- * <div ui-view></div>
- *
- * <!-- Named -->
- * <div ui-view="viewName"></div>
- * </pre>
- *
- * You can only have one unnamed view within any template (or root html). If you are only using a
- * single view and it is unnamed then you can populate it like so:
- * <pre>
- * <div ui-view></div>
- * $stateProvider.state("home", {
- * template: "<h1>HELLO!</h1>"
- * })
- * </pre>
- *
- * The above is a convenient shortcut equivalent to specifying your view explicitly with the {@link ui.router.state.$stateProvider#views `views`}
- * config property, by name, in this case an empty name:
- * <pre>
- * $stateProvider.state("home", {
- * views: {
- * "": {
- * template: "<h1>HELLO!</h1>"
- * }
- * }
- * })
- * </pre>
- *
- * But typically you'll only use the views property if you name your view or have more than one view
- * in the same template. There's not really a compelling reason to name a view if its the only one,
- * but you could if you wanted, like so:
- * <pre>
- * <div ui-view="main"></div>
- * </pre>
- * <pre>
- * $stateProvider.state("home", {
- * views: {
- * "main": {
- * template: "<h1>HELLO!</h1>"
- * }
- * }
- * })
- * </pre>
- *
- * Really though, you'll use views to set up multiple views:
- * <pre>
- * <div ui-view></div>
- * <div ui-view="chart"></div>
- * <div ui-view="data"></div>
- * </pre>
- *
- * <pre>
- * $stateProvider.state("home", {
- * views: {
- * "": {
- * template: "<h1>HELLO!</h1>"
- * },
- * "chart": {
- * template: "<chart_thing/>"
- * },
- * "data": {
- * template: "<data_thing/>"
- * }
- * }
- * })
- * </pre>
- *
- * Examples for `autoscroll`:
- *
- * <pre>
- * <!-- If autoscroll present with no expression,
- * then scroll ui-view into view -->
- * <ui-view autoscroll/>
- *
- * <!-- If autoscroll present with valid expression,
- * then scroll ui-view into view if expression evaluates to true -->
- * <ui-view autoscroll='true'/>
- * <ui-view autoscroll='false'/>
- * <ui-view autoscroll='scopeVariable'/>
- * </pre>
- */
-$ViewDirective.$inject = ['$state', '$injector', '$uiViewScroll', '$interpolate'];
-function $ViewDirective( $state, $injector, $uiViewScroll, $interpolate) {
-
- function getService() {
- return ($injector.has) ? function(service) {
- return $injector.has(service) ? $injector.get(service) : null;
- } : function(service) {
- try {
- return $injector.get(service);
- } catch (e) {
- return null;
- }
- };
- }
-
- var service = getService(),
- $animator = service('$animator'),
- $animate = service('$animate');
-
- // Returns a set of DOM manipulation functions based on which Angular version
- // it should use
- function getRenderer(attrs, scope) {
- var statics = {
- enter: function (element, target, cb) { target.after(element); cb(); },
- leave: function (element, cb) { element.remove(); cb(); }
- };
-
- if (!!attrs.noanimation) return statics;
-
- function animEnabled(element) {
- if (ngMajorVer === 1 && ngMinorVer >= 4) return !!$animate.enabled(element);
- if (ngMajorVer === 1 && ngMinorVer >= 2) return !!$animate.enabled();
- return (!!$animator);
- }
-
- // ng 1.2+
- if ($animate) {
- return {
- enter: function(element, target, cb) {
- if (!animEnabled(element)) {
- statics.enter(element, target, cb);
- } else if (angular.version.minor > 2) {
- $animate.enter(element, null, target).then(cb);
- } else {
- $animate.enter(element, null, target, cb);
- }
- },
- leave: function(element, cb) {
- if (!animEnabled(element)) {
- statics.leave(element, cb);
- } else if (angular.version.minor > 2) {
- $animate.leave(element).then(cb);
- } else {
- $animate.leave(element, cb);
- }
- }
- };
- }
-
- // ng 1.1.5
- if ($animator) {
- var animate = $animator && $animator(scope, attrs);
-
- return {
- enter: function(element, target, cb) {animate.enter(element, null, target); cb(); },
- leave: function(element, cb) { animate.leave(element); cb(); }
- };
- }
-
- return statics;
- }
-
- var directive = {
- restrict: 'ECA',
- terminal: true,
- priority: 400,
- transclude: 'element',
- compile: function (tElement, tAttrs, $transclude) {
- return function (scope, $element, attrs) {
- var previousEl, currentEl, currentScope, latestLocals,
- onloadExp = attrs.onload || '',
- autoScrollExp = attrs.autoscroll,
- renderer = getRenderer(attrs, scope);
-
- scope.$on('$stateChangeSuccess', function() {
- updateView(false);
- });
-
- updateView(true);
-
- function cleanupLastView() {
- var _previousEl = previousEl;
- var _currentScope = currentScope;
-
- if (_currentScope) {
- _currentScope._willBeDestroyed = true;
- }
-
- function cleanOld() {
- if (_previousEl) {
- _previousEl.remove();
- }
-
- if (_currentScope) {
- _currentScope.$destroy();
- }
- }
-
- if (currentEl) {
- renderer.leave(currentEl, function() {
- cleanOld();
- previousEl = null;
- });
-
- previousEl = currentEl;
- } else {
- cleanOld();
- previousEl = null;
- }
-
- currentEl = null;
- currentScope = null;
- }
-
- function updateView(firstTime) {
- var newScope,
- name = getUiViewName(scope, attrs, $element, $interpolate),
- previousLocals = name && $state.$current && $state.$current.locals[name];
-
- if (!firstTime && previousLocals === latestLocals || scope._willBeDestroyed) return; // nothing to do
- newScope = scope.$new();
- latestLocals = $state.$current.locals[name];
-
- /**
- * @ngdoc event
- * @name ui.router.state.directive:ui-view#$viewContentLoading
- * @eventOf ui.router.state.directive:ui-view
- * @eventType emits on ui-view directive scope
- * @description
- *
- * Fired once the view **begins loading**, *before* the DOM is rendered.
- *
- * @param {Object} event Event object.
- * @param {string} viewName Name of the view.
- */
- newScope.$emit('$viewContentLoading', name);
-
- var clone = $transclude(newScope, function(clone) {
- renderer.enter(clone, $element, function onUiViewEnter() {
- if(currentScope) {
- currentScope.$emit('$viewContentAnimationEnded');
- }
-
- if (angular.isDefined(autoScrollExp) && !autoScrollExp || scope.$eval(autoScrollExp)) {
- $uiViewScroll(clone);
- }
- });
- cleanupLastView();
- });
-
- currentEl = clone;
- currentScope = newScope;
- /**
- * @ngdoc event
- * @name ui.router.state.directive:ui-view#$viewContentLoaded
- * @eventOf ui.router.state.directive:ui-view
- * @eventType emits on ui-view directive scope
- * @description
- * Fired once the view is **loaded**, *after* the DOM is rendered.
- *
- * @param {Object} event Event object.
- * @param {string} viewName Name of the view.
- */
- currentScope.$emit('$viewContentLoaded', name);
- currentScope.$eval(onloadExp);
- }
- };
- }
- };
-
- return directive;
-}
-
-$ViewDirectiveFill.$inject = ['$compile', '$controller', '$state', '$interpolate'];
-function $ViewDirectiveFill ( $compile, $controller, $state, $interpolate) {
- return {
- restrict: 'ECA',
- priority: -400,
- compile: function (tElement) {
- var initial = tElement.html();
- return function (scope, $element, attrs) {
- var current = $state.$current,
- name = getUiViewName(scope, attrs, $element, $interpolate),
- locals = current && current.locals[name];
-
- if (! locals) {
- return;
- }
-
- $element.data('$uiView', { name: name, state: locals.$$state });
- $element.html(locals.$template ? locals.$template : initial);
-
- var link = $compile($element.contents());
-
- if (locals.$$controller) {
- locals.$scope = scope;
- locals.$element = $element;
- var controller = $controller(locals.$$controller, locals);
- if (locals.$$controllerAs) {
- scope[locals.$$controllerAs] = controller;
- }
- $element.data('$ngControllerController', controller);
- $element.children().data('$ngControllerController', controller);
- }
-
- link(scope);
- };
- }
- };
-}
-
-/**
- * Shared ui-view code for both directives:
- * Given scope, element, and its attributes, return the view's name
- */
-function getUiViewName(scope, attrs, element, $interpolate) {
- var name = $interpolate(attrs.uiView || attrs.name || '')(scope);
- var inherited = element.inheritedData('$uiView');
- return name.indexOf('@') >= 0 ? name : (name + '@' + (inherited ? inherited.state.name : ''));
-}
-
-angular.module('ui.router.state').directive('uiView', $ViewDirective);
-angular.module('ui.router.state').directive('uiView', $ViewDirectiveFill);
diff --git a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/viewScroll.js b/ecomp-portal-FE/client/bower_components/angular-ui-router/src/viewScroll.js
deleted file mode 100644
index 81114e20..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-ui-router/src/viewScroll.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * @ngdoc object
- * @name ui.router.state.$uiViewScrollProvider
- *
- * @description
- * Provider that returns the {@link ui.router.state.$uiViewScroll} service function.
- */
-function $ViewScrollProvider() {
-
- var useAnchorScroll = false;
-
- /**
- * @ngdoc function
- * @name ui.router.state.$uiViewScrollProvider#useAnchorScroll
- * @methodOf ui.router.state.$uiViewScrollProvider
- *
- * @description
- * Reverts back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll) service for
- * scrolling based on the url anchor.
- */
- this.useAnchorScroll = function () {
- useAnchorScroll = true;
- };
-
- /**
- * @ngdoc object
- * @name ui.router.state.$uiViewScroll
- *
- * @requires $anchorScroll
- * @requires $timeout
- *
- * @description
- * When called with a jqLite element, it scrolls the element into view (after a
- * `$timeout` so the DOM has time to refresh).
- *
- * If you prefer to rely on `$anchorScroll` to scroll the view to the anchor,
- * this can be enabled by calling {@link ui.router.state.$uiViewScrollProvider#methods_useAnchorScroll `$uiViewScrollProvider.useAnchorScroll()`}.
- */
- this.$get = ['$anchorScroll', '$timeout', function ($anchorScroll, $timeout) {
- if (useAnchorScroll) {
- return $anchorScroll;
- }
-
- return function ($element) {
- return $timeout(function () {
- $element[0].scrollIntoView();
- }, 0, false);
- };
- }];
-}
-
-angular.module('ui.router.state').provider('$uiViewScroll', $ViewScrollProvider);
diff --git a/ecomp-portal-FE/client/bower_components/angular-uuid/.bower.json b/ecomp-portal-FE/client/bower_components/angular-uuid/.bower.json
deleted file mode 100644
index 125b0615..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-uuid/.bower.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "angular-uuid",
- "version": "0.1.0",
- "main": "uuid.min.js",
- "dependencies": {
- "angular": "~1.0.7"
- },
- "ignore": [
- "**/.*",
- "node_modules",
- "components"
- ],
- "homepage": "https://github.com/ajsd/angular-uuid",
- "_release": "0.1.0",
- "_resolution": {
- "type": "version",
- "tag": "0.1.0",
- "commit": "33d501b80d3de01710a100061d47632021108b8d"
- },
- "_source": "https://github.com/ajsd/angular-uuid.git",
- "_target": "^0.1.0",
- "_originalSource": "angular-uuid"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-uuid/LICENCE b/ecomp-portal-FE/client/bower_components/angular-uuid/LICENCE
deleted file mode 100644
index 745a8b47..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-uuid/LICENCE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2013 Arunjit Singh <opensrc@ajsd.in>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular-uuid/bower.json b/ecomp-portal-FE/client/bower_components/angular-uuid/bower.json
deleted file mode 100644
index 10ac8743..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-uuid/bower.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "angular-uuid",
- "version": "0.1.0",
- "main": "uuid.min.js",
- "dependencies": {
- "angular": "~1.0.7"
- },
- "ignore": [
- "**/.*",
- "node_modules",
- "components"
- ]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular-uuid/uuid.js b/ecomp-portal-FE/client/bower_components/angular-uuid/uuid.js
deleted file mode 100644
index 0c02072c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-uuid/uuid.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**!
- * angular-uuid v0.1.0
- * @copyright 2013 Arunjit Singh <opensrc@ajsd.in>. All Rights Reserved.
- * @license MIT; see LICENCE.
- * [https://github.com/ajsd/angular-uuid.git]
- */
-'use strict';
-
-/**
- * A UUID-4 generator.
- */
-angular.module('uuid', []).service('uuid4', function() {
- /**! http://stackoverflow.com/a/2117523/377392 */
- var fmt = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
- this.generate = function() {
- return fmt.replace(/[xy]/g, function(c) {
- var r = Math.random()*16|0, v = c === 'x' ? r : (r&0x3|0x8);
- return v.toString(16);
- });
- };
-});
diff --git a/ecomp-portal-FE/client/bower_components/angular-uuid/uuid.min.js b/ecomp-portal-FE/client/bower_components/angular-uuid/uuid.min.js
deleted file mode 100644
index 7980dc61..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-uuid/uuid.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/**!
- * angular-uuid v0.1.0
- * @copyright 2013 Arunjit Singh <opensrc@ajsd.in>. All Rights Reserved.
- * @license MIT; see LICENCE.
- * [https://github.com/ajsd/angular-uuid.git]
- */
-"use strict";angular.module("uuid",[]).service("uuid4",function(){var fmt="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";this.generate=function(){return fmt.replace(/[xy]/g,function(c){var r=Math.random()*16|0,v=c==="x"?r:r&3|8;return v.toString(16)})}});
diff --git a/ecomp-portal-FE/client/bower_components/angular/.bower.json b/ecomp-portal-FE/client/bower_components/angular/.bower.json
deleted file mode 100644
index 9314c475..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/.bower.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "angular",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular.js",
- "ignore": [],
- "dependencies": {},
- "homepage": "https://github.com/angular/bower-angular",
- "_release": "1.5.0",
- "_resolution": {
- "type": "version",
- "tag": "v1.5.0",
- "commit": "017a583b226a335740c5b50b3e9381a52d0bb260"
- },
- "_source": "https://github.com/angular/bower-angular.git",
- "_target": "1.5.0",
- "_originalSource": "angular"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular/README.md b/ecomp-portal-FE/client/bower_components/angular/README.md
deleted file mode 100644
index d1bc0edd..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/README.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# packaged angular
-
-This repo is for distribution on `npm` and `bower`. The source for this module is in the
-[main AngularJS repo](https://github.com/angular/angular.js).
-Please file issues and pull requests against that repo.
-
-## Install
-
-You can install this package either with `npm` or with `bower`.
-
-### npm
-
-```shell
-npm install angular
-```
-
-Then add a `<script>` to your `index.html`:
-
-```html
-<script src="/node_modules/angular/angular.js"></script>
-```
-
-Or `require('angular')` from your code.
-
-### bower
-
-```shell
-bower install angular
-```
-
-Then add a `<script>` to your `index.html`:
-
-```html
-<script src="/bower_components/angular/angular.js"></script>
-```
-
-## Documentation
-
-Documentation is available on the
-[AngularJS docs site](http://docs.angularjs.org/).
-
-## License
-
-The MIT License
-
-Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/angular/angular-csp.css b/ecomp-portal-FE/client/bower_components/angular/angular-csp.css
deleted file mode 100644
index f3cd926c..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/angular-csp.css
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Include this file in your html if you are using the CSP mode. */
-
-@charset "UTF-8";
-
-[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],
-.ng-cloak, .x-ng-cloak,
-.ng-hide:not(.ng-hide-animate) {
- display: none !important;
-}
-
-ng\:form {
- display: block;
-}
-
-.ng-animate-shim {
- visibility:hidden;
-}
-
-.ng-anchor {
- position:absolute;
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular/angular.js b/ecomp-portal-FE/client/bower_components/angular/angular.js
deleted file mode 100644
index a8aad46a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/angular.js
+++ /dev/null
@@ -1,30428 +0,0 @@
-/**
- * @license AngularJS v1.5.0
- * (c) 2010-2016 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, document, undefined) {'use strict';
-
-/**
- * @description
- *
- * This object provides a utility for producing rich Error messages within
- * Angular. It can be called as follows:
- *
- * var exampleMinErr = minErr('example');
- * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);
- *
- * The above creates an instance of minErr in the example namespace. The
- * resulting error will have a namespaced error code of example.one. The
- * resulting error will replace {0} with the value of foo, and {1} with the
- * value of bar. The object is not restricted in the number of arguments it can
- * take.
- *
- * If fewer arguments are specified than necessary for interpolation, the extra
- * interpolation markers will be preserved in the final string.
- *
- * Since data will be parsed statically during a build step, some restrictions
- * are applied with respect to how minErr instances are created and called.
- * Instances should have names of the form namespaceMinErr for a minErr created
- * using minErr('namespace') . Error codes, namespaces and template strings
- * should all be static strings, not variables or general expressions.
- *
- * @param {string} module The namespace to use for the new minErr instance.
- * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning
- * error from returned function, for cases when a particular type of error is useful.
- * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance
- */
-
-function minErr(module, ErrorConstructor) {
- ErrorConstructor = ErrorConstructor || Error;
- return function() {
- var SKIP_INDEXES = 2;
-
- var templateArgs = arguments,
- code = templateArgs[0],
- message = '[' + (module ? module + ':' : '') + code + '] ',
- template = templateArgs[1],
- paramPrefix, i;
-
- message += template.replace(/\{\d+\}/g, function(match) {
- var index = +match.slice(1, -1),
- shiftedIndex = index + SKIP_INDEXES;
-
- if (shiftedIndex < templateArgs.length) {
- return toDebugString(templateArgs[shiftedIndex]);
- }
-
- return match;
- });
-
- message += '\nhttp://errors.angularjs.org/1.5.0/' +
- (module ? module + '/' : '') + code;
-
- for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
- message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' +
- encodeURIComponent(toDebugString(templateArgs[i]));
- }
-
- return new ErrorConstructor(message);
- };
-}
-
-/* We need to tell jshint what variables are being exported */
-/* global angular: true,
- msie: true,
- jqLite: true,
- jQuery: true,
- slice: true,
- splice: true,
- push: true,
- toString: true,
- ngMinErr: true,
- angularModule: true,
- uid: true,
- REGEX_STRING_REGEXP: true,
- VALIDITY_STATE_PROPERTY: true,
-
- lowercase: true,
- uppercase: true,
- manualLowercase: true,
- manualUppercase: true,
- nodeName_: true,
- isArrayLike: true,
- forEach: true,
- forEachSorted: true,
- reverseParams: true,
- nextUid: true,
- setHashKey: true,
- extend: true,
- toInt: true,
- inherit: true,
- merge: true,
- noop: true,
- identity: true,
- valueFn: true,
- isUndefined: true,
- isDefined: true,
- isObject: true,
- isBlankObject: true,
- isString: true,
- isNumber: true,
- isDate: true,
- isArray: true,
- isFunction: true,
- isRegExp: true,
- isWindow: true,
- isScope: true,
- isFile: true,
- isFormData: true,
- isBlob: true,
- isBoolean: true,
- isPromiseLike: true,
- trim: true,
- escapeForRegexp: true,
- isElement: true,
- makeMap: true,
- includes: true,
- arrayRemove: true,
- copy: true,
- shallowCopy: true,
- equals: true,
- csp: true,
- jq: true,
- concat: true,
- sliceArgs: true,
- bind: true,
- toJsonReplacer: true,
- toJson: true,
- fromJson: true,
- convertTimezoneToLocal: true,
- timezoneToOffset: true,
- startingTag: true,
- tryDecodeURIComponent: true,
- parseKeyValue: true,
- toKeyValue: true,
- encodeUriSegment: true,
- encodeUriQuery: true,
- angularInit: true,
- bootstrap: true,
- getTestability: true,
- snake_case: true,
- bindJQuery: true,
- assertArg: true,
- assertArgFn: true,
- assertNotHasOwnProperty: true,
- getter: true,
- getBlockNodes: true,
- hasOwnProperty: true,
- createMap: true,
-
- NODE_TYPE_ELEMENT: true,
- NODE_TYPE_ATTRIBUTE: true,
- NODE_TYPE_TEXT: true,
- NODE_TYPE_COMMENT: true,
- NODE_TYPE_DOCUMENT: true,
- NODE_TYPE_DOCUMENT_FRAGMENT: true,
-*/
-
-////////////////////////////////////
-
-/**
- * @ngdoc module
- * @name ng
- * @module ng
- * @description
- *
- * # ng (core module)
- * The ng module is loaded by default when an AngularJS application is started. The module itself
- * contains the essential components for an AngularJS application to function. The table below
- * lists a high level breakdown of each of the services/factories, filters, directives and testing
- * components available within this core module.
- *
- * <div doc-module-components="ng"></div>
- */
-
-var REGEX_STRING_REGEXP = /^\/(.+)\/([a-z]*)$/;
-
-// The name of a form control's ValidityState property.
-// This is used so that it's possible for internal tests to create mock ValidityStates.
-var VALIDITY_STATE_PROPERTY = 'validity';
-
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-
-var lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};
-var uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};
-
-
-var manualLowercase = function(s) {
- /* jshint bitwise: false */
- return isString(s)
- ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})
- : s;
-};
-var manualUppercase = function(s) {
- /* jshint bitwise: false */
- return isString(s)
- ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})
- : s;
-};
-
-
-// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish
-// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods
-// with correct but slower alternatives. See https://github.com/angular/angular.js/issues/11387
-if ('i' !== 'I'.toLowerCase()) {
- lowercase = manualLowercase;
- uppercase = manualUppercase;
-}
-
-
-var
- msie, // holds major version number for IE, or NaN if UA is not IE.
- jqLite, // delay binding since jQuery could be loaded after us.
- jQuery, // delay binding
- slice = [].slice,
- splice = [].splice,
- push = [].push,
- toString = Object.prototype.toString,
- getPrototypeOf = Object.getPrototypeOf,
- ngMinErr = minErr('ng'),
-
- /** @name angular */
- angular = window.angular || (window.angular = {}),
- angularModule,
- uid = 0;
-
-/**
- * documentMode is an IE-only property
- * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx
- */
-msie = document.documentMode;
-
-
-/**
- * @private
- * @param {*} obj
- * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,
- * String ...)
- */
-function isArrayLike(obj) {
-
- // `null`, `undefined` and `window` are not array-like
- if (obj == null || isWindow(obj)) return false;
-
- // arrays, strings and jQuery/jqLite objects are array like
- // * jqLite is either the jQuery or jqLite constructor function
- // * we have to check the existence of jqLite first as this method is called
- // via the forEach method when constructing the jqLite object in the first place
- if (isArray(obj) || isString(obj) || (jqLite && obj instanceof jqLite)) return true;
-
- // Support: iOS 8.2 (not reproducible in simulator)
- // "length" in obj used to prevent JIT error (gh-11508)
- var length = "length" in Object(obj) && obj.length;
-
- // NodeList objects (with `item` method) and
- // other objects with suitable length characteristics are array-like
- return isNumber(length) &&
- (length >= 0 && ((length - 1) in obj || obj instanceof Array) || typeof obj.item == 'function');
-
-}
-
-/**
- * @ngdoc function
- * @name angular.forEach
- * @module ng
- * @kind function
- *
- * @description
- * Invokes the `iterator` function once for each item in `obj` collection, which can be either an
- * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`
- * is the value of an object property or an array element, `key` is the object property key or
- * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.
- *
- * It is worth noting that `.forEach` does not iterate over inherited properties because it filters
- * using the `hasOwnProperty` method.
- *
- * Unlike ES262's
- * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),
- * Providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just
- * return the value provided.
- *
- ```js
- var values = {name: 'misko', gender: 'male'};
- var log = [];
- angular.forEach(values, function(value, key) {
- this.push(key + ': ' + value);
- }, log);
- expect(log).toEqual(['name: misko', 'gender: male']);
- ```
- *
- * @param {Object|Array} obj Object to iterate over.
- * @param {Function} iterator Iterator function.
- * @param {Object=} context Object to become context (`this`) for the iterator function.
- * @returns {Object|Array} Reference to `obj`.
- */
-
-function forEach(obj, iterator, context) {
- var key, length;
- if (obj) {
- if (isFunction(obj)) {
- for (key in obj) {
- // Need to check if hasOwnProperty exists,
- // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function
- if (key != 'prototype' && key != 'length' && key != 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) {
- iterator.call(context, obj[key], key, obj);
- }
- }
- } else if (isArray(obj) || isArrayLike(obj)) {
- var isPrimitive = typeof obj !== 'object';
- for (key = 0, length = obj.length; key < length; key++) {
- if (isPrimitive || key in obj) {
- iterator.call(context, obj[key], key, obj);
- }
- }
- } else if (obj.forEach && obj.forEach !== forEach) {
- obj.forEach(iterator, context, obj);
- } else if (isBlankObject(obj)) {
- // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
- for (key in obj) {
- iterator.call(context, obj[key], key, obj);
- }
- } else if (typeof obj.hasOwnProperty === 'function') {
- // Slow path for objects inheriting Object.prototype, hasOwnProperty check needed
- for (key in obj) {
- if (obj.hasOwnProperty(key)) {
- iterator.call(context, obj[key], key, obj);
- }
- }
- } else {
- // Slow path for objects which do not have a method `hasOwnProperty`
- for (key in obj) {
- if (hasOwnProperty.call(obj, key)) {
- iterator.call(context, obj[key], key, obj);
- }
- }
- }
- }
- return obj;
-}
-
-function forEachSorted(obj, iterator, context) {
- var keys = Object.keys(obj).sort();
- for (var i = 0; i < keys.length; i++) {
- iterator.call(context, obj[keys[i]], keys[i]);
- }
- return keys;
-}
-
-
-/**
- * when using forEach the params are value, key, but it is often useful to have key, value.
- * @param {function(string, *)} iteratorFn
- * @returns {function(*, string)}
- */
-function reverseParams(iteratorFn) {
- return function(value, key) {iteratorFn(key, value);};
-}
-
-/**
- * A consistent way of creating unique IDs in angular.
- *
- * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before
- * we hit number precision issues in JavaScript.
- *
- * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M
- *
- * @returns {number} an unique alpha-numeric string
- */
-function nextUid() {
- return ++uid;
-}
-
-
-/**
- * Set or clear the hashkey for an object.
- * @param obj object
- * @param h the hashkey (!truthy to delete the hashkey)
- */
-function setHashKey(obj, h) {
- if (h) {
- obj.$$hashKey = h;
- } else {
- delete obj.$$hashKey;
- }
-}
-
-
-function baseExtend(dst, objs, deep) {
- var h = dst.$$hashKey;
-
- for (var i = 0, ii = objs.length; i < ii; ++i) {
- var obj = objs[i];
- if (!isObject(obj) && !isFunction(obj)) continue;
- var keys = Object.keys(obj);
- for (var j = 0, jj = keys.length; j < jj; j++) {
- var key = keys[j];
- var src = obj[key];
-
- if (deep && isObject(src)) {
- if (isDate(src)) {
- dst[key] = new Date(src.valueOf());
- } else if (isRegExp(src)) {
- dst[key] = new RegExp(src);
- } else if (src.nodeName) {
- dst[key] = src.cloneNode(true);
- } else if (isElement(src)) {
- dst[key] = src.clone();
- } else {
- if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {};
- baseExtend(dst[key], [src], true);
- }
- } else {
- dst[key] = src;
- }
- }
- }
-
- setHashKey(dst, h);
- return dst;
-}
-
-/**
- * @ngdoc function
- * @name angular.extend
- * @module ng
- * @kind function
- *
- * @description
- * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
- * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
- * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.
- *
- * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use
- * {@link angular.merge} for this.
- *
- * @param {Object} dst Destination object.
- * @param {...Object} src Source object(s).
- * @returns {Object} Reference to `dst`.
- */
-function extend(dst) {
- return baseExtend(dst, slice.call(arguments, 1), false);
-}
-
-
-/**
-* @ngdoc function
-* @name angular.merge
-* @module ng
-* @kind function
-*
-* @description
-* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
-* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
-* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`.
-*
-* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source
-* objects, performing a deep copy.
-*
-* @param {Object} dst Destination object.
-* @param {...Object} src Source object(s).
-* @returns {Object} Reference to `dst`.
-*/
-function merge(dst) {
- return baseExtend(dst, slice.call(arguments, 1), true);
-}
-
-
-
-function toInt(str) {
- return parseInt(str, 10);
-}
-
-
-function inherit(parent, extra) {
- return extend(Object.create(parent), extra);
-}
-
-/**
- * @ngdoc function
- * @name angular.noop
- * @module ng
- * @kind function
- *
- * @description
- * A function that performs no operations. This function can be useful when writing code in the
- * functional style.
- ```js
- function foo(callback) {
- var result = calculateResult();
- (callback || angular.noop)(result);
- }
- ```
- */
-function noop() {}
-noop.$inject = [];
-
-
-/**
- * @ngdoc function
- * @name angular.identity
- * @module ng
- * @kind function
- *
- * @description
- * A function that returns its first argument. This function is useful when writing code in the
- * functional style.
- *
- ```js
- function transformer(transformationFn, value) {
- return (transformationFn || angular.identity)(value);
- };
- ```
- * @param {*} value to be returned.
- * @returns {*} the value passed in.
- */
-function identity($) {return $;}
-identity.$inject = [];
-
-
-function valueFn(value) {return function() {return value;};}
-
-function hasCustomToString(obj) {
- return isFunction(obj.toString) && obj.toString !== toString;
-}
-
-
-/**
- * @ngdoc function
- * @name angular.isUndefined
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is undefined.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is undefined.
- */
-function isUndefined(value) {return typeof value === 'undefined';}
-
-
-/**
- * @ngdoc function
- * @name angular.isDefined
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is defined.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is defined.
- */
-function isDefined(value) {return typeof value !== 'undefined';}
-
-
-/**
- * @ngdoc function
- * @name angular.isObject
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
- * considered to be objects. Note that JavaScript arrays are objects.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is an `Object` but not `null`.
- */
-function isObject(value) {
- // http://jsperf.com/isobject4
- return value !== null && typeof value === 'object';
-}
-
-
-/**
- * Determine if a value is an object with a null prototype
- *
- * @returns {boolean} True if `value` is an `Object` with a null prototype
- */
-function isBlankObject(value) {
- return value !== null && typeof value === 'object' && !getPrototypeOf(value);
-}
-
-
-/**
- * @ngdoc function
- * @name angular.isString
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is a `String`.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `String`.
- */
-function isString(value) {return typeof value === 'string';}
-
-
-/**
- * @ngdoc function
- * @name angular.isNumber
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is a `Number`.
- *
- * This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`.
- *
- * If you wish to exclude these then you can use the native
- * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)
- * method.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `Number`.
- */
-function isNumber(value) {return typeof value === 'number';}
-
-
-/**
- * @ngdoc function
- * @name angular.isDate
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a value is a date.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `Date`.
- */
-function isDate(value) {
- return toString.call(value) === '[object Date]';
-}
-
-
-/**
- * @ngdoc function
- * @name angular.isArray
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is an `Array`.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is an `Array`.
- */
-var isArray = Array.isArray;
-
-/**
- * @ngdoc function
- * @name angular.isFunction
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is a `Function`.
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `Function`.
- */
-function isFunction(value) {return typeof value === 'function';}
-
-
-/**
- * Determines if a value is a regular expression object.
- *
- * @private
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a `RegExp`.
- */
-function isRegExp(value) {
- return toString.call(value) === '[object RegExp]';
-}
-
-
-/**
- * Checks if `obj` is a window object.
- *
- * @private
- * @param {*} obj Object to check
- * @returns {boolean} True if `obj` is a window obj.
- */
-function isWindow(obj) {
- return obj && obj.window === obj;
-}
-
-
-function isScope(obj) {
- return obj && obj.$evalAsync && obj.$watch;
-}
-
-
-function isFile(obj) {
- return toString.call(obj) === '[object File]';
-}
-
-
-function isFormData(obj) {
- return toString.call(obj) === '[object FormData]';
-}
-
-
-function isBlob(obj) {
- return toString.call(obj) === '[object Blob]';
-}
-
-
-function isBoolean(value) {
- return typeof value === 'boolean';
-}
-
-
-function isPromiseLike(obj) {
- return obj && isFunction(obj.then);
-}
-
-
-var TYPED_ARRAY_REGEXP = /^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;
-function isTypedArray(value) {
- return value && isNumber(value.length) && TYPED_ARRAY_REGEXP.test(toString.call(value));
-}
-
-function isArrayBuffer(obj) {
- return toString.call(obj) === '[object ArrayBuffer]';
-}
-
-
-var trim = function(value) {
- return isString(value) ? value.trim() : value;
-};
-
-// Copied from:
-// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021
-// Prereq: s is a string.
-var escapeForRegexp = function(s) {
- return s.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, '\\$1').
- replace(/\x08/g, '\\x08');
-};
-
-
-/**
- * @ngdoc function
- * @name angular.isElement
- * @module ng
- * @kind function
- *
- * @description
- * Determines if a reference is a DOM element (or wrapped jQuery element).
- *
- * @param {*} value Reference to check.
- * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
- */
-function isElement(node) {
- return !!(node &&
- (node.nodeName // we are a direct element
- || (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API
-}
-
-/**
- * @param str 'key1,key2,...'
- * @returns {object} in the form of {key1:true, key2:true, ...}
- */
-function makeMap(str) {
- var obj = {}, items = str.split(','), i;
- for (i = 0; i < items.length; i++) {
- obj[items[i]] = true;
- }
- return obj;
-}
-
-
-function nodeName_(element) {
- return lowercase(element.nodeName || (element[0] && element[0].nodeName));
-}
-
-function includes(array, obj) {
- return Array.prototype.indexOf.call(array, obj) != -1;
-}
-
-function arrayRemove(array, value) {
- var index = array.indexOf(value);
- if (index >= 0) {
- array.splice(index, 1);
- }
- return index;
-}
-
-/**
- * @ngdoc function
- * @name angular.copy
- * @module ng
- * @kind function
- *
- * @description
- * Creates a deep copy of `source`, which should be an object or an array.
- *
- * * If no destination is supplied, a copy of the object or array is created.
- * * If a destination is provided, all of its elements (for arrays) or properties (for objects)
- * are deleted and then all elements/properties from the source are copied to it.
- * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.
- * * If `source` is identical to 'destination' an exception will be thrown.
- *
- * @param {*} source The source that will be used to make a copy.
- * Can be any type, including primitives, `null`, and `undefined`.
- * @param {(Object|Array)=} destination Destination into which the source is copied. If
- * provided, must be of the same type as `source`.
- * @returns {*} The copy or updated `destination`, if `destination` was specified.
- *
- * @example
- <example module="copyExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form novalidate class="simple-form">
- Name: <input type="text" ng-model="user.name" /><br />
- E-mail: <input type="email" ng-model="user.email" /><br />
- Gender: <input type="radio" ng-model="user.gender" value="male" />male
- <input type="radio" ng-model="user.gender" value="female" />female<br />
- <button ng-click="reset()">RESET</button>
- <button ng-click="update(user)">SAVE</button>
- </form>
- <pre>form = {{user | json}}</pre>
- <pre>master = {{master | json}}</pre>
- </div>
-
- <script>
- angular.module('copyExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.master= {};
-
- $scope.update = function(user) {
- // Example with 1 argument
- $scope.master= angular.copy(user);
- };
-
- $scope.reset = function() {
- // Example with 2 arguments
- angular.copy($scope.master, $scope.user);
- };
-
- $scope.reset();
- }]);
- </script>
- </file>
- </example>
- */
-function copy(source, destination) {
- var stackSource = [];
- var stackDest = [];
-
- if (destination) {
- if (isTypedArray(destination) || isArrayBuffer(destination)) {
- throw ngMinErr('cpta', "Can't copy! TypedArray destination cannot be mutated.");
- }
- if (source === destination) {
- throw ngMinErr('cpi', "Can't copy! Source and destination are identical.");
- }
-
- // Empty the destination object
- if (isArray(destination)) {
- destination.length = 0;
- } else {
- forEach(destination, function(value, key) {
- if (key !== '$$hashKey') {
- delete destination[key];
- }
- });
- }
-
- stackSource.push(source);
- stackDest.push(destination);
- return copyRecurse(source, destination);
- }
-
- return copyElement(source);
-
- function copyRecurse(source, destination) {
- var h = destination.$$hashKey;
- var result, key;
- if (isArray(source)) {
- for (var i = 0, ii = source.length; i < ii; i++) {
- destination.push(copyElement(source[i]));
- }
- } else if (isBlankObject(source)) {
- // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
- for (key in source) {
- destination[key] = copyElement(source[key]);
- }
- } else if (source && typeof source.hasOwnProperty === 'function') {
- // Slow path, which must rely on hasOwnProperty
- for (key in source) {
- if (source.hasOwnProperty(key)) {
- destination[key] = copyElement(source[key]);
- }
- }
- } else {
- // Slowest path --- hasOwnProperty can't be called as a method
- for (key in source) {
- if (hasOwnProperty.call(source, key)) {
- destination[key] = copyElement(source[key]);
- }
- }
- }
- setHashKey(destination, h);
- return destination;
- }
-
- function copyElement(source) {
- // Simple values
- if (!isObject(source)) {
- return source;
- }
-
- // Already copied values
- var index = stackSource.indexOf(source);
- if (index !== -1) {
- return stackDest[index];
- }
-
- if (isWindow(source) || isScope(source)) {
- throw ngMinErr('cpws',
- "Can't copy! Making copies of Window or Scope instances is not supported.");
- }
-
- var needsRecurse = false;
- var destination = copyType(source);
-
- if (destination === undefined) {
- destination = isArray(source) ? [] : Object.create(getPrototypeOf(source));
- needsRecurse = true;
- }
-
- stackSource.push(source);
- stackDest.push(destination);
-
- return needsRecurse
- ? copyRecurse(source, destination)
- : destination;
- }
-
- function copyType(source) {
- switch (toString.call(source)) {
- case '[object Int8Array]':
- case '[object Int16Array]':
- case '[object Int32Array]':
- case '[object Float32Array]':
- case '[object Float64Array]':
- case '[object Uint8Array]':
- case '[object Uint8ClampedArray]':
- case '[object Uint16Array]':
- case '[object Uint32Array]':
- return new source.constructor(copyElement(source.buffer));
-
- case '[object ArrayBuffer]':
- //Support: IE10
- if (!source.slice) {
- var copied = new ArrayBuffer(source.byteLength);
- new Uint8Array(copied).set(new Uint8Array(source));
- return copied;
- }
- return source.slice(0);
-
- case '[object Boolean]':
- case '[object Number]':
- case '[object String]':
- case '[object Date]':
- return new source.constructor(source.valueOf());
-
- case '[object RegExp]':
- var re = new RegExp(source.source, source.toString().match(/[^\/]*$/)[0]);
- re.lastIndex = source.lastIndex;
- return re;
- }
-
- if (isFunction(source.cloneNode)) {
- return source.cloneNode(true);
- }
- }
-}
-
-/**
- * Creates a shallow copy of an object, an array or a primitive.
- *
- * Assumes that there are no proto properties for objects.
- */
-function shallowCopy(src, dst) {
- if (isArray(src)) {
- dst = dst || [];
-
- for (var i = 0, ii = src.length; i < ii; i++) {
- dst[i] = src[i];
- }
- } else if (isObject(src)) {
- dst = dst || {};
-
- for (var key in src) {
- if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {
- dst[key] = src[key];
- }
- }
- }
-
- return dst || src;
-}
-
-
-/**
- * @ngdoc function
- * @name angular.equals
- * @module ng
- * @kind function
- *
- * @description
- * Determines if two objects or two values are equivalent. Supports value types, regular
- * expressions, arrays and objects.
- *
- * Two objects or values are considered equivalent if at least one of the following is true:
- *
- * * Both objects or values pass `===` comparison.
- * * Both objects or values are of the same type and all of their properties are equal by
- * comparing them with `angular.equals`.
- * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)
- * * Both values represent the same regular expression (In JavaScript,
- * /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual
- * representation matches).
- *
- * During a property comparison, properties of `function` type and properties with names
- * that begin with `$` are ignored.
- *
- * Scope and DOMWindow objects are being compared only by identify (`===`).
- *
- * @param {*} o1 Object or value to compare.
- * @param {*} o2 Object or value to compare.
- * @returns {boolean} True if arguments are equal.
- */
-function equals(o1, o2) {
- if (o1 === o2) return true;
- if (o1 === null || o2 === null) return false;
- if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
- var t1 = typeof o1, t2 = typeof o2, length, key, keySet;
- if (t1 == t2 && t1 == 'object') {
- if (isArray(o1)) {
- if (!isArray(o2)) return false;
- if ((length = o1.length) == o2.length) {
- for (key = 0; key < length; key++) {
- if (!equals(o1[key], o2[key])) return false;
- }
- return true;
- }
- } else if (isDate(o1)) {
- if (!isDate(o2)) return false;
- return equals(o1.getTime(), o2.getTime());
- } else if (isRegExp(o1)) {
- if (!isRegExp(o2)) return false;
- return o1.toString() == o2.toString();
- } else {
- if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) ||
- isArray(o2) || isDate(o2) || isRegExp(o2)) return false;
- keySet = createMap();
- for (key in o1) {
- if (key.charAt(0) === '$' || isFunction(o1[key])) continue;
- if (!equals(o1[key], o2[key])) return false;
- keySet[key] = true;
- }
- for (key in o2) {
- if (!(key in keySet) &&
- key.charAt(0) !== '$' &&
- isDefined(o2[key]) &&
- !isFunction(o2[key])) return false;
- }
- return true;
- }
- }
- return false;
-}
-
-var csp = function() {
- if (!isDefined(csp.rules)) {
-
-
- var ngCspElement = (document.querySelector('[ng-csp]') ||
- document.querySelector('[data-ng-csp]'));
-
- if (ngCspElement) {
- var ngCspAttribute = ngCspElement.getAttribute('ng-csp') ||
- ngCspElement.getAttribute('data-ng-csp');
- csp.rules = {
- noUnsafeEval: !ngCspAttribute || (ngCspAttribute.indexOf('no-unsafe-eval') !== -1),
- noInlineStyle: !ngCspAttribute || (ngCspAttribute.indexOf('no-inline-style') !== -1)
- };
- } else {
- csp.rules = {
- noUnsafeEval: noUnsafeEval(),
- noInlineStyle: false
- };
- }
- }
-
- return csp.rules;
-
- function noUnsafeEval() {
- try {
- /* jshint -W031, -W054 */
- new Function('');
- /* jshint +W031, +W054 */
- return false;
- } catch (e) {
- return true;
- }
- }
-};
-
-/**
- * @ngdoc directive
- * @module ng
- * @name ngJq
- *
- * @element ANY
- * @param {string=} ngJq the name of the library available under `window`
- * to be used for angular.element
- * @description
- * Use this directive to force the angular.element library. This should be
- * used to force either jqLite by leaving ng-jq blank or setting the name of
- * the jquery variable under window (eg. jQuery).
- *
- * Since angular looks for this directive when it is loaded (doesn't wait for the
- * DOMContentLoaded event), it must be placed on an element that comes before the script
- * which loads angular. Also, only the first instance of `ng-jq` will be used and all
- * others ignored.
- *
- * @example
- * This example shows how to force jqLite using the `ngJq` directive to the `html` tag.
- ```html
- <!doctype html>
- <html ng-app ng-jq>
- ...
- ...
- </html>
- ```
- * @example
- * This example shows how to use a jQuery based library of a different name.
- * The library name must be available at the top most 'window'.
- ```html
- <!doctype html>
- <html ng-app ng-jq="jQueryLib">
- ...
- ...
- </html>
- ```
- */
-var jq = function() {
- if (isDefined(jq.name_)) return jq.name_;
- var el;
- var i, ii = ngAttrPrefixes.length, prefix, name;
- for (i = 0; i < ii; ++i) {
- prefix = ngAttrPrefixes[i];
- if (el = document.querySelector('[' + prefix.replace(':', '\\:') + 'jq]')) {
- name = el.getAttribute(prefix + 'jq');
- break;
- }
- }
-
- return (jq.name_ = name);
-};
-
-function concat(array1, array2, index) {
- return array1.concat(slice.call(array2, index));
-}
-
-function sliceArgs(args, startIndex) {
- return slice.call(args, startIndex || 0);
-}
-
-
-/* jshint -W101 */
-/**
- * @ngdoc function
- * @name angular.bind
- * @module ng
- * @kind function
- *
- * @description
- * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
- * `fn`). You can supply optional `args` that are prebound to the function. This feature is also
- * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as
- * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).
- *
- * @param {Object} self Context which `fn` should be evaluated in.
- * @param {function()} fn Function to be bound.
- * @param {...*} args Optional arguments to be prebound to the `fn` function call.
- * @returns {function()} Function that wraps the `fn` with all the specified bindings.
- */
-/* jshint +W101 */
-function bind(self, fn) {
- var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];
- if (isFunction(fn) && !(fn instanceof RegExp)) {
- return curryArgs.length
- ? function() {
- return arguments.length
- ? fn.apply(self, concat(curryArgs, arguments, 0))
- : fn.apply(self, curryArgs);
- }
- : function() {
- return arguments.length
- ? fn.apply(self, arguments)
- : fn.call(self);
- };
- } else {
- // in IE, native methods are not functions so they cannot be bound (note: they don't need to be)
- return fn;
- }
-}
-
-
-function toJsonReplacer(key, value) {
- var val = value;
-
- if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {
- val = undefined;
- } else if (isWindow(value)) {
- val = '$WINDOW';
- } else if (value && document === value) {
- val = '$DOCUMENT';
- } else if (isScope(value)) {
- val = '$SCOPE';
- }
-
- return val;
-}
-
-
-/**
- * @ngdoc function
- * @name angular.toJson
- * @module ng
- * @kind function
- *
- * @description
- * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be
- * stripped since angular uses this notation internally.
- *
- * @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.
- * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
- * If set to an integer, the JSON output will contain that many spaces per indentation.
- * @returns {string|undefined} JSON-ified string representing `obj`.
- */
-function toJson(obj, pretty) {
- if (isUndefined(obj)) return undefined;
- if (!isNumber(pretty)) {
- pretty = pretty ? 2 : null;
- }
- return JSON.stringify(obj, toJsonReplacer, pretty);
-}
-
-
-/**
- * @ngdoc function
- * @name angular.fromJson
- * @module ng
- * @kind function
- *
- * @description
- * Deserializes a JSON string.
- *
- * @param {string} json JSON string to deserialize.
- * @returns {Object|Array|string|number} Deserialized JSON string.
- */
-function fromJson(json) {
- return isString(json)
- ? JSON.parse(json)
- : json;
-}
-
-
-var ALL_COLONS = /:/g;
-function timezoneToOffset(timezone, fallback) {
- // IE/Edge do not "understand" colon (`:`) in timezone
- timezone = timezone.replace(ALL_COLONS, '');
- var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
- return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
-}
-
-
-function addDateMinutes(date, minutes) {
- date = new Date(date.getTime());
- date.setMinutes(date.getMinutes() + minutes);
- return date;
-}
-
-
-function convertTimezoneToLocal(date, timezone, reverse) {
- reverse = reverse ? -1 : 1;
- var dateTimezoneOffset = date.getTimezoneOffset();
- var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
- return addDateMinutes(date, reverse * (timezoneOffset - dateTimezoneOffset));
-}
-
-
-/**
- * @returns {string} Returns the string representation of the element.
- */
-function startingTag(element) {
- element = jqLite(element).clone();
- try {
- // turns out IE does not let you set .html() on elements which
- // are not allowed to have children. So we just ignore it.
- element.empty();
- } catch (e) {}
- var elemHtml = jqLite('<div>').append(element).html();
- try {
- return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :
- elemHtml.
- match(/^(<[^>]+>)/)[1].
- replace(/^<([\w\-]+)/, function(match, nodeName) {return '<' + lowercase(nodeName);});
- } catch (e) {
- return lowercase(elemHtml);
- }
-
-}
-
-
-/////////////////////////////////////////////////
-
-/**
- * Tries to decode the URI component without throwing an exception.
- *
- * @private
- * @param str value potential URI component to check.
- * @returns {boolean} True if `value` can be decoded
- * with the decodeURIComponent function.
- */
-function tryDecodeURIComponent(value) {
- try {
- return decodeURIComponent(value);
- } catch (e) {
- // Ignore any invalid uri component
- }
-}
-
-
-/**
- * Parses an escaped url query string into key-value pairs.
- * @returns {Object.<string,boolean|Array>}
- */
-function parseKeyValue(/**string*/keyValue) {
- var obj = {};
- forEach((keyValue || "").split('&'), function(keyValue) {
- var splitPoint, key, val;
- if (keyValue) {
- key = keyValue = keyValue.replace(/\+/g,'%20');
- splitPoint = keyValue.indexOf('=');
- if (splitPoint !== -1) {
- key = keyValue.substring(0, splitPoint);
- val = keyValue.substring(splitPoint + 1);
- }
- key = tryDecodeURIComponent(key);
- if (isDefined(key)) {
- val = isDefined(val) ? tryDecodeURIComponent(val) : true;
- if (!hasOwnProperty.call(obj, key)) {
- obj[key] = val;
- } else if (isArray(obj[key])) {
- obj[key].push(val);
- } else {
- obj[key] = [obj[key],val];
- }
- }
- }
- });
- return obj;
-}
-
-function toKeyValue(obj) {
- var parts = [];
- forEach(obj, function(value, key) {
- if (isArray(value)) {
- forEach(value, function(arrayValue) {
- parts.push(encodeUriQuery(key, true) +
- (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));
- });
- } else {
- parts.push(encodeUriQuery(key, true) +
- (value === true ? '' : '=' + encodeUriQuery(value, true)));
- }
- });
- return parts.length ? parts.join('&') : '';
-}
-
-
-/**
- * We need our custom method because encodeURIComponent is too aggressive and doesn't follow
- * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
- * segments:
- * segment = *pchar
- * pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
- * pct-encoded = "%" HEXDIG HEXDIG
- * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
- * sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
- * / "*" / "+" / "," / ";" / "="
- */
-function encodeUriSegment(val) {
- return encodeUriQuery(val, true).
- replace(/%26/gi, '&').
- replace(/%3D/gi, '=').
- replace(/%2B/gi, '+');
-}
-
-
-/**
- * This method is intended for encoding *key* or *value* parts of query component. We need a custom
- * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
- * encoded per http://tools.ietf.org/html/rfc3986:
- * query = *( pchar / "/" / "?" )
- * pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
- * unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
- * pct-encoded = "%" HEXDIG HEXDIG
- * sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
- * / "*" / "+" / "," / ";" / "="
- */
-function encodeUriQuery(val, pctEncodeSpaces) {
- return encodeURIComponent(val).
- replace(/%40/gi, '@').
- replace(/%3A/gi, ':').
- replace(/%24/g, '$').
- replace(/%2C/gi, ',').
- replace(/%3B/gi, ';').
- replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));
-}
-
-var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];
-
-function getNgAttribute(element, ngAttr) {
- var attr, i, ii = ngAttrPrefixes.length;
- for (i = 0; i < ii; ++i) {
- attr = ngAttrPrefixes[i] + ngAttr;
- if (isString(attr = element.getAttribute(attr))) {
- return attr;
- }
- }
- return null;
-}
-
-/**
- * @ngdoc directive
- * @name ngApp
- * @module ng
- *
- * @element ANY
- * @param {angular.Module} ngApp an optional application
- * {@link angular.module module} name to load.
- * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be
- * created in "strict-di" mode. This means that the application will fail to invoke functions which
- * do not use explicit function annotation (and are thus unsuitable for minification), as described
- * in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in
- * tracking down the root of these bugs.
- *
- * @description
- *
- * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive
- * designates the **root element** of the application and is typically placed near the root element
- * of the page - e.g. on the `<body>` or `<html>` tags.
- *
- * Only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`
- * found in the document will be used to define the root element to auto-bootstrap as an
- * application. To run multiple applications in an HTML document you must manually bootstrap them using
- * {@link angular.bootstrap} instead. AngularJS applications cannot be nested within each other.
- *
- * You can specify an **AngularJS module** to be used as the root module for the application. This
- * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It
- * should contain the application code needed or have dependencies on other modules that will
- * contain the code. See {@link angular.module} for more information.
- *
- * In the example below if the `ngApp` directive were not placed on the `html` element then the
- * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`
- * would not be resolved to `3`.
- *
- * `ngApp` is the easiest, and most common way to bootstrap an application.
- *
- <example module="ngAppDemo">
- <file name="index.html">
- <div ng-controller="ngAppDemoController">
- I can add: {{a}} + {{b}} = {{ a+b }}
- </div>
- </file>
- <file name="script.js">
- angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {
- $scope.a = 1;
- $scope.b = 2;
- });
- </file>
- </example>
- *
- * Using `ngStrictDi`, you would see something like this:
- *
- <example ng-app-included="true">
- <file name="index.html">
- <div ng-app="ngAppStrictDemo" ng-strict-di>
- <div ng-controller="GoodController1">
- I can add: {{a}} + {{b}} = {{ a+b }}
-
- <p>This renders because the controller does not fail to
- instantiate, by using explicit annotation style (see
- script.js for details)
- </p>
- </div>
-
- <div ng-controller="GoodController2">
- Name: <input ng-model="name"><br />
- Hello, {{name}}!
-
- <p>This renders because the controller does not fail to
- instantiate, by using explicit annotation style
- (see script.js for details)
- </p>
- </div>
-
- <div ng-controller="BadController">
- I can add: {{a}} + {{b}} = {{ a+b }}
-
- <p>The controller could not be instantiated, due to relying
- on automatic function annotations (which are disabled in
- strict mode). As such, the content of this section is not
- interpolated, and there should be an error in your web console.
- </p>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('ngAppStrictDemo', [])
- // BadController will fail to instantiate, due to relying on automatic function annotation,
- // rather than an explicit annotation
- .controller('BadController', function($scope) {
- $scope.a = 1;
- $scope.b = 2;
- })
- // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,
- // due to using explicit annotations using the array style and $inject property, respectively.
- .controller('GoodController1', ['$scope', function($scope) {
- $scope.a = 1;
- $scope.b = 2;
- }])
- .controller('GoodController2', GoodController2);
- function GoodController2($scope) {
- $scope.name = "World";
- }
- GoodController2.$inject = ['$scope'];
- </file>
- <file name="style.css">
- div[ng-controller] {
- margin-bottom: 1em;
- -webkit-border-radius: 4px;
- border-radius: 4px;
- border: 1px solid;
- padding: .5em;
- }
- div[ng-controller^=Good] {
- border-color: #d6e9c6;
- background-color: #dff0d8;
- color: #3c763d;
- }
- div[ng-controller^=Bad] {
- border-color: #ebccd1;
- background-color: #f2dede;
- color: #a94442;
- margin-bottom: 0;
- }
- </file>
- </example>
- */
-function angularInit(element, bootstrap) {
- var appElement,
- module,
- config = {};
-
- // The element `element` has priority over any other element
- forEach(ngAttrPrefixes, function(prefix) {
- var name = prefix + 'app';
-
- if (!appElement && element.hasAttribute && element.hasAttribute(name)) {
- appElement = element;
- module = element.getAttribute(name);
- }
- });
- forEach(ngAttrPrefixes, function(prefix) {
- var name = prefix + 'app';
- var candidate;
-
- if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\:') + ']'))) {
- appElement = candidate;
- module = candidate.getAttribute(name);
- }
- });
- if (appElement) {
- config.strictDi = getNgAttribute(appElement, "strict-di") !== null;
- bootstrap(appElement, module ? [module] : [], config);
- }
-}
-
-/**
- * @ngdoc function
- * @name angular.bootstrap
- * @module ng
- * @description
- * Use this function to manually start up angular application.
- *
- * See: {@link guide/bootstrap Bootstrap}
- *
- * Note that Protractor based end-to-end tests cannot use this function to bootstrap manually.
- * They must use {@link ng.directive:ngApp ngApp}.
- *
- * Angular will detect if it has been loaded into the browser more than once and only allow the
- * first loaded script to be bootstrapped and will report a warning to the browser console for
- * each of the subsequent scripts. This prevents strange results in applications, where otherwise
- * multiple instances of Angular try to work on the DOM.
- *
- * ```html
- * <!doctype html>
- * <html>
- * <body>
- * <div ng-controller="WelcomeController">
- * {{greeting}}
- * </div>
- *
- * <script src="angular.js"></script>
- * <script>
- * var app = angular.module('demo', [])
- * .controller('WelcomeController', function($scope) {
- * $scope.greeting = 'Welcome!';
- * });
- * angular.bootstrap(document, ['demo']);
- * </script>
- * </body>
- * </html>
- * ```
- *
- * @param {DOMElement} element DOM element which is the root of angular application.
- * @param {Array<String|Function|Array>=} modules an array of modules to load into the application.
- * Each item in the array should be the name of a predefined module or a (DI annotated)
- * function that will be invoked by the injector as a `config` block.
- * See: {@link angular.module modules}
- * @param {Object=} config an object for defining configuration options for the application. The
- * following keys are supported:
- *
- * * `strictDi` - disable automatic function annotation for the application. This is meant to
- * assist in finding bugs which break minified code. Defaults to `false`.
- *
- * @returns {auto.$injector} Returns the newly created injector for this app.
- */
-function bootstrap(element, modules, config) {
- if (!isObject(config)) config = {};
- var defaultConfig = {
- strictDi: false
- };
- config = extend(defaultConfig, config);
- var doBootstrap = function() {
- element = jqLite(element);
-
- if (element.injector()) {
- var tag = (element[0] === document) ? 'document' : startingTag(element);
- //Encode angle brackets to prevent input from being sanitized to empty string #8683
- throw ngMinErr(
- 'btstrpd',
- "App Already Bootstrapped with this Element '{0}'",
- tag.replace(/</,'&lt;').replace(/>/,'&gt;'));
- }
-
- modules = modules || [];
- modules.unshift(['$provide', function($provide) {
- $provide.value('$rootElement', element);
- }]);
-
- if (config.debugInfoEnabled) {
- // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.
- modules.push(['$compileProvider', function($compileProvider) {
- $compileProvider.debugInfoEnabled(true);
- }]);
- }
-
- modules.unshift('ng');
- var injector = createInjector(modules, config.strictDi);
- injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',
- function bootstrapApply(scope, element, compile, injector) {
- scope.$apply(function() {
- element.data('$injector', injector);
- compile(element)(scope);
- });
- }]
- );
- return injector;
- };
-
- var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/;
- var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;
-
- if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) {
- config.debugInfoEnabled = true;
- window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, '');
- }
-
- if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {
- return doBootstrap();
- }
-
- window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');
- angular.resumeBootstrap = function(extraModules) {
- forEach(extraModules, function(module) {
- modules.push(module);
- });
- return doBootstrap();
- };
-
- if (isFunction(angular.resumeDeferredBootstrap)) {
- angular.resumeDeferredBootstrap();
- }
-}
-
-/**
- * @ngdoc function
- * @name angular.reloadWithDebugInfo
- * @module ng
- * @description
- * Use this function to reload the current application with debug information turned on.
- * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.
- *
- * See {@link ng.$compileProvider#debugInfoEnabled} for more.
- */
-function reloadWithDebugInfo() {
- window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name;
- window.location.reload();
-}
-
-/**
- * @name angular.getTestability
- * @module ng
- * @description
- * Get the testability service for the instance of Angular on the given
- * element.
- * @param {DOMElement} element DOM element which is the root of angular application.
- */
-function getTestability(rootElement) {
- var injector = angular.element(rootElement).injector();
- if (!injector) {
- throw ngMinErr('test',
- 'no injector found for element argument to getTestability');
- }
- return injector.get('$$testability');
-}
-
-var SNAKE_CASE_REGEXP = /[A-Z]/g;
-function snake_case(name, separator) {
- separator = separator || '_';
- return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {
- return (pos ? separator : '') + letter.toLowerCase();
- });
-}
-
-var bindJQueryFired = false;
-function bindJQuery() {
- var originalCleanData;
-
- if (bindJQueryFired) {
- return;
- }
-
- // bind to jQuery if present;
- var jqName = jq();
- jQuery = isUndefined(jqName) ? window.jQuery : // use jQuery (if present)
- !jqName ? undefined : // use jqLite
- window[jqName]; // use jQuery specified by `ngJq`
-
- // Use jQuery if it exists with proper functionality, otherwise default to us.
- // Angular 1.2+ requires jQuery 1.7+ for on()/off() support.
- // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older
- // versions. It will not work for sure with jQuery <1.7, though.
- if (jQuery && jQuery.fn.on) {
- jqLite = jQuery;
- extend(jQuery.fn, {
- scope: JQLitePrototype.scope,
- isolateScope: JQLitePrototype.isolateScope,
- controller: JQLitePrototype.controller,
- injector: JQLitePrototype.injector,
- inheritedData: JQLitePrototype.inheritedData
- });
-
- // All nodes removed from the DOM via various jQuery APIs like .remove()
- // are passed through jQuery.cleanData. Monkey-patch this method to fire
- // the $destroy event on all removed nodes.
- originalCleanData = jQuery.cleanData;
- jQuery.cleanData = function(elems) {
- var events;
- for (var i = 0, elem; (elem = elems[i]) != null; i++) {
- events = jQuery._data(elem, "events");
- if (events && events.$destroy) {
- jQuery(elem).triggerHandler('$destroy');
- }
- }
- originalCleanData(elems);
- };
- } else {
- jqLite = JQLite;
- }
-
- angular.element = jqLite;
-
- // Prevent double-proxying.
- bindJQueryFired = true;
-}
-
-/**
- * throw error if the argument is falsy.
- */
-function assertArg(arg, name, reason) {
- if (!arg) {
- throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required"));
- }
- return arg;
-}
-
-function assertArgFn(arg, name, acceptArrayAnnotation) {
- if (acceptArrayAnnotation && isArray(arg)) {
- arg = arg[arg.length - 1];
- }
-
- assertArg(isFunction(arg), name, 'not a function, got ' +
- (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));
- return arg;
-}
-
-/**
- * throw error if the name given is hasOwnProperty
- * @param {String} name the name to test
- * @param {String} context the context in which the name is used, such as module or directive
- */
-function assertNotHasOwnProperty(name, context) {
- if (name === 'hasOwnProperty') {
- throw ngMinErr('badname', "hasOwnProperty is not a valid {0} name", context);
- }
-}
-
-/**
- * Return the value accessible from the object by path. Any undefined traversals are ignored
- * @param {Object} obj starting object
- * @param {String} path path to traverse
- * @param {boolean} [bindFnToScope=true]
- * @returns {Object} value as accessible by path
- */
-//TODO(misko): this function needs to be removed
-function getter(obj, path, bindFnToScope) {
- if (!path) return obj;
- var keys = path.split('.');
- var key;
- var lastInstance = obj;
- var len = keys.length;
-
- for (var i = 0; i < len; i++) {
- key = keys[i];
- if (obj) {
- obj = (lastInstance = obj)[key];
- }
- }
- if (!bindFnToScope && isFunction(obj)) {
- return bind(lastInstance, obj);
- }
- return obj;
-}
-
-/**
- * Return the DOM siblings between the first and last node in the given array.
- * @param {Array} array like object
- * @returns {Array} the inputted object or a jqLite collection containing the nodes
- */
-function getBlockNodes(nodes) {
- // TODO(perf): update `nodes` instead of creating a new object?
- var node = nodes[0];
- var endNode = nodes[nodes.length - 1];
- var blockNodes;
-
- for (var i = 1; node !== endNode && (node = node.nextSibling); i++) {
- if (blockNodes || nodes[i] !== node) {
- if (!blockNodes) {
- blockNodes = jqLite(slice.call(nodes, 0, i));
- }
- blockNodes.push(node);
- }
- }
-
- return blockNodes || nodes;
-}
-
-
-/**
- * Creates a new object without a prototype. This object is useful for lookup without having to
- * guard against prototypically inherited properties via hasOwnProperty.
- *
- * Related micro-benchmarks:
- * - http://jsperf.com/object-create2
- * - http://jsperf.com/proto-map-lookup/2
- * - http://jsperf.com/for-in-vs-object-keys2
- *
- * @returns {Object}
- */
-function createMap() {
- return Object.create(null);
-}
-
-var NODE_TYPE_ELEMENT = 1;
-var NODE_TYPE_ATTRIBUTE = 2;
-var NODE_TYPE_TEXT = 3;
-var NODE_TYPE_COMMENT = 8;
-var NODE_TYPE_DOCUMENT = 9;
-var NODE_TYPE_DOCUMENT_FRAGMENT = 11;
-
-/**
- * @ngdoc type
- * @name angular.Module
- * @module ng
- * @description
- *
- * Interface for configuring angular {@link angular.module modules}.
- */
-
-function setupModuleLoader(window) {
-
- var $injectorMinErr = minErr('$injector');
- var ngMinErr = minErr('ng');
-
- function ensure(obj, name, factory) {
- return obj[name] || (obj[name] = factory());
- }
-
- var angular = ensure(window, 'angular', Object);
-
- // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap
- angular.$$minErr = angular.$$minErr || minErr;
-
- return ensure(angular, 'module', function() {
- /** @type {Object.<string, angular.Module>} */
- var modules = {};
-
- /**
- * @ngdoc function
- * @name angular.module
- * @module ng
- * @description
- *
- * The `angular.module` is a global place for creating, registering and retrieving Angular
- * modules.
- * All modules (angular core or 3rd party) that should be available to an application must be
- * registered using this mechanism.
- *
- * Passing one argument retrieves an existing {@link angular.Module},
- * whereas passing more than one argument creates a new {@link angular.Module}
- *
- *
- * # Module
- *
- * A module is a collection of services, directives, controllers, filters, and configuration information.
- * `angular.module` is used to configure the {@link auto.$injector $injector}.
- *
- * ```js
- * // Create a new module
- * var myModule = angular.module('myModule', []);
- *
- * // register a new service
- * myModule.value('appName', 'MyCoolApp');
- *
- * // configure existing services inside initialization blocks.
- * myModule.config(['$locationProvider', function($locationProvider) {
- * // Configure existing providers
- * $locationProvider.hashPrefix('!');
- * }]);
- * ```
- *
- * Then you can create an injector and load your modules like this:
- *
- * ```js
- * var injector = angular.injector(['ng', 'myModule'])
- * ```
- *
- * However it's more likely that you'll just use
- * {@link ng.directive:ngApp ngApp} or
- * {@link angular.bootstrap} to simplify this process for you.
- *
- * @param {!string} name The name of the module to create or retrieve.
- * @param {!Array.<string>=} requires If specified then new module is being created. If
- * unspecified then the module is being retrieved for further configuration.
- * @param {Function=} configFn Optional configuration function for the module. Same as
- * {@link angular.Module#config Module#config()}.
- * @returns {angular.Module} new module with the {@link angular.Module} api.
- */
- return function module(name, requires, configFn) {
- var assertNotHasOwnProperty = function(name, context) {
- if (name === 'hasOwnProperty') {
- throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);
- }
- };
-
- assertNotHasOwnProperty(name, 'module');
- if (requires && modules.hasOwnProperty(name)) {
- modules[name] = null;
- }
- return ensure(modules, name, function() {
- if (!requires) {
- throw $injectorMinErr('nomod', "Module '{0}' is not available! You either misspelled " +
- "the module name or forgot to load it. If registering a module ensure that you " +
- "specify the dependencies as the second argument.", name);
- }
-
- /** @type {!Array.<Array.<*>>} */
- var invokeQueue = [];
-
- /** @type {!Array.<Function>} */
- var configBlocks = [];
-
- /** @type {!Array.<Function>} */
- var runBlocks = [];
-
- var config = invokeLater('$injector', 'invoke', 'push', configBlocks);
-
- /** @type {angular.Module} */
- var moduleInstance = {
- // Private state
- _invokeQueue: invokeQueue,
- _configBlocks: configBlocks,
- _runBlocks: runBlocks,
-
- /**
- * @ngdoc property
- * @name angular.Module#requires
- * @module ng
- *
- * @description
- * Holds the list of modules which the injector will load before the current module is
- * loaded.
- */
- requires: requires,
-
- /**
- * @ngdoc property
- * @name angular.Module#name
- * @module ng
- *
- * @description
- * Name of the module.
- */
- name: name,
-
-
- /**
- * @ngdoc method
- * @name angular.Module#provider
- * @module ng
- * @param {string} name service name
- * @param {Function} providerType Construction function for creating new instance of the
- * service.
- * @description
- * See {@link auto.$provide#provider $provide.provider()}.
- */
- provider: invokeLaterAndSetModuleName('$provide', 'provider'),
-
- /**
- * @ngdoc method
- * @name angular.Module#factory
- * @module ng
- * @param {string} name service name
- * @param {Function} providerFunction Function for creating new instance of the service.
- * @description
- * See {@link auto.$provide#factory $provide.factory()}.
- */
- factory: invokeLaterAndSetModuleName('$provide', 'factory'),
-
- /**
- * @ngdoc method
- * @name angular.Module#service
- * @module ng
- * @param {string} name service name
- * @param {Function} constructor A constructor function that will be instantiated.
- * @description
- * See {@link auto.$provide#service $provide.service()}.
- */
- service: invokeLaterAndSetModuleName('$provide', 'service'),
-
- /**
- * @ngdoc method
- * @name angular.Module#value
- * @module ng
- * @param {string} name service name
- * @param {*} object Service instance object.
- * @description
- * See {@link auto.$provide#value $provide.value()}.
- */
- value: invokeLater('$provide', 'value'),
-
- /**
- * @ngdoc method
- * @name angular.Module#constant
- * @module ng
- * @param {string} name constant name
- * @param {*} object Constant value.
- * @description
- * Because the constants are fixed, they get applied before other provide methods.
- * See {@link auto.$provide#constant $provide.constant()}.
- */
- constant: invokeLater('$provide', 'constant', 'unshift'),
-
- /**
- * @ngdoc method
- * @name angular.Module#decorator
- * @module ng
- * @param {string} The name of the service to decorate.
- * @param {Function} This function will be invoked when the service needs to be
- * instantiated and should return the decorated service instance.
- * @description
- * See {@link auto.$provide#decorator $provide.decorator()}.
- */
- decorator: invokeLaterAndSetModuleName('$provide', 'decorator'),
-
- /**
- * @ngdoc method
- * @name angular.Module#animation
- * @module ng
- * @param {string} name animation name
- * @param {Function} animationFactory Factory function for creating new instance of an
- * animation.
- * @description
- *
- * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.
- *
- *
- * Defines an animation hook that can be later used with
- * {@link $animate $animate} service and directives that use this service.
- *
- * ```js
- * module.animation('.animation-name', function($inject1, $inject2) {
- * return {
- * eventName : function(element, done) {
- * //code to run the animation
- * //once complete, then run done()
- * return function cancellationFunction(element) {
- * //code to cancel the animation
- * }
- * }
- * }
- * })
- * ```
- *
- * See {@link ng.$animateProvider#register $animateProvider.register()} and
- * {@link ngAnimate ngAnimate module} for more information.
- */
- animation: invokeLaterAndSetModuleName('$animateProvider', 'register'),
-
- /**
- * @ngdoc method
- * @name angular.Module#filter
- * @module ng
- * @param {string} name Filter name - this must be a valid angular expression identifier
- * @param {Function} filterFactory Factory function for creating new instance of filter.
- * @description
- * See {@link ng.$filterProvider#register $filterProvider.register()}.
- *
- * <div class="alert alert-warning">
- * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
- * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
- * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
- * (`myapp_subsection_filterx`).
- * </div>
- */
- filter: invokeLaterAndSetModuleName('$filterProvider', 'register'),
-
- /**
- * @ngdoc method
- * @name angular.Module#controller
- * @module ng
- * @param {string|Object} name Controller name, or an object map of controllers where the
- * keys are the names and the values are the constructors.
- * @param {Function} constructor Controller constructor function.
- * @description
- * See {@link ng.$controllerProvider#register $controllerProvider.register()}.
- */
- controller: invokeLaterAndSetModuleName('$controllerProvider', 'register'),
-
- /**
- * @ngdoc method
- * @name angular.Module#directive
- * @module ng
- * @param {string|Object} name Directive name, or an object map of directives where the
- * keys are the names and the values are the factories.
- * @param {Function} directiveFactory Factory function for creating new instance of
- * directives.
- * @description
- * See {@link ng.$compileProvider#directive $compileProvider.directive()}.
- */
- directive: invokeLaterAndSetModuleName('$compileProvider', 'directive'),
-
- /**
- * @ngdoc method
- * @name angular.Module#component
- * @module ng
- * @param {string} name Name of the component in camel-case (i.e. myComp which will match as my-comp)
- * @param {Object} options Component definition object (a simplified
- * {@link ng.$compile#directive-definition-object directive definition object})
- *
- * @description
- * See {@link ng.$compileProvider#component $compileProvider.component()}.
- */
- component: invokeLaterAndSetModuleName('$compileProvider', 'component'),
-
- /**
- * @ngdoc method
- * @name angular.Module#config
- * @module ng
- * @param {Function} configFn Execute this function on module load. Useful for service
- * configuration.
- * @description
- * Use this method to register work which needs to be performed on module loading.
- * For more about how to configure services, see
- * {@link providers#provider-recipe Provider Recipe}.
- */
- config: config,
-
- /**
- * @ngdoc method
- * @name angular.Module#run
- * @module ng
- * @param {Function} initializationFn Execute this function after injector creation.
- * Useful for application initialization.
- * @description
- * Use this method to register work which should be performed when the injector is done
- * loading all modules.
- */
- run: function(block) {
- runBlocks.push(block);
- return this;
- }
- };
-
- if (configFn) {
- config(configFn);
- }
-
- return moduleInstance;
-
- /**
- * @param {string} provider
- * @param {string} method
- * @param {String=} insertMethod
- * @returns {angular.Module}
- */
- function invokeLater(provider, method, insertMethod, queue) {
- if (!queue) queue = invokeQueue;
- return function() {
- queue[insertMethod || 'push']([provider, method, arguments]);
- return moduleInstance;
- };
- }
-
- /**
- * @param {string} provider
- * @param {string} method
- * @returns {angular.Module}
- */
- function invokeLaterAndSetModuleName(provider, method) {
- return function(recipeName, factoryFunction) {
- if (factoryFunction && isFunction(factoryFunction)) factoryFunction.$$moduleName = name;
- invokeQueue.push([provider, method, arguments]);
- return moduleInstance;
- };
- }
- });
- };
- });
-
-}
-
-/* global: toDebugString: true */
-
-function serializeObject(obj) {
- var seen = [];
-
- return JSON.stringify(obj, function(key, val) {
- val = toJsonReplacer(key, val);
- if (isObject(val)) {
-
- if (seen.indexOf(val) >= 0) return '...';
-
- seen.push(val);
- }
- return val;
- });
-}
-
-function toDebugString(obj) {
- if (typeof obj === 'function') {
- return obj.toString().replace(/ \{[\s\S]*$/, '');
- } else if (isUndefined(obj)) {
- return 'undefined';
- } else if (typeof obj !== 'string') {
- return serializeObject(obj);
- }
- return obj;
-}
-
-/* global angularModule: true,
- version: true,
-
- $CompileProvider,
-
- htmlAnchorDirective,
- inputDirective,
- inputDirective,
- formDirective,
- scriptDirective,
- selectDirective,
- styleDirective,
- optionDirective,
- ngBindDirective,
- ngBindHtmlDirective,
- ngBindTemplateDirective,
- ngClassDirective,
- ngClassEvenDirective,
- ngClassOddDirective,
- ngCloakDirective,
- ngControllerDirective,
- ngFormDirective,
- ngHideDirective,
- ngIfDirective,
- ngIncludeDirective,
- ngIncludeFillContentDirective,
- ngInitDirective,
- ngNonBindableDirective,
- ngPluralizeDirective,
- ngRepeatDirective,
- ngShowDirective,
- ngStyleDirective,
- ngSwitchDirective,
- ngSwitchWhenDirective,
- ngSwitchDefaultDirective,
- ngOptionsDirective,
- ngTranscludeDirective,
- ngModelDirective,
- ngListDirective,
- ngChangeDirective,
- patternDirective,
- patternDirective,
- requiredDirective,
- requiredDirective,
- minlengthDirective,
- minlengthDirective,
- maxlengthDirective,
- maxlengthDirective,
- ngValueDirective,
- ngModelOptionsDirective,
- ngAttributeAliasDirectives,
- ngEventDirectives,
-
- $AnchorScrollProvider,
- $AnimateProvider,
- $CoreAnimateCssProvider,
- $$CoreAnimateJsProvider,
- $$CoreAnimateQueueProvider,
- $$AnimateRunnerFactoryProvider,
- $$AnimateAsyncRunFactoryProvider,
- $BrowserProvider,
- $CacheFactoryProvider,
- $ControllerProvider,
- $DateProvider,
- $DocumentProvider,
- $ExceptionHandlerProvider,
- $FilterProvider,
- $$ForceReflowProvider,
- $InterpolateProvider,
- $IntervalProvider,
- $$HashMapProvider,
- $HttpProvider,
- $HttpParamSerializerProvider,
- $HttpParamSerializerJQLikeProvider,
- $HttpBackendProvider,
- $xhrFactoryProvider,
- $LocationProvider,
- $LogProvider,
- $ParseProvider,
- $RootScopeProvider,
- $QProvider,
- $$QProvider,
- $$SanitizeUriProvider,
- $SceProvider,
- $SceDelegateProvider,
- $SnifferProvider,
- $TemplateCacheProvider,
- $TemplateRequestProvider,
- $$TestabilityProvider,
- $TimeoutProvider,
- $$RAFProvider,
- $WindowProvider,
- $$jqLiteProvider,
- $$CookieReaderProvider
-*/
-
-
-/**
- * @ngdoc object
- * @name angular.version
- * @module ng
- * @description
- * An object that contains information about the current AngularJS version.
- *
- * This object has the following properties:
- *
- * - `full` – `{string}` – Full version string, such as "0.9.18".
- * - `major` – `{number}` – Major version number, such as "0".
- * - `minor` – `{number}` – Minor version number, such as "9".
- * - `dot` – `{number}` – Dot version number, such as "18".
- * - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
- */
-var version = {
- full: '1.5.0', // all of these placeholder strings will be replaced by grunt's
- major: 1, // package task
- minor: 5,
- dot: 0,
- codeName: 'ennoblement-facilitation'
-};
-
-
-function publishExternalAPI(angular) {
- extend(angular, {
- 'bootstrap': bootstrap,
- 'copy': copy,
- 'extend': extend,
- 'merge': merge,
- 'equals': equals,
- 'element': jqLite,
- 'forEach': forEach,
- 'injector': createInjector,
- 'noop': noop,
- 'bind': bind,
- 'toJson': toJson,
- 'fromJson': fromJson,
- 'identity': identity,
- 'isUndefined': isUndefined,
- 'isDefined': isDefined,
- 'isString': isString,
- 'isFunction': isFunction,
- 'isObject': isObject,
- 'isNumber': isNumber,
- 'isElement': isElement,
- 'isArray': isArray,
- 'version': version,
- 'isDate': isDate,
- 'lowercase': lowercase,
- 'uppercase': uppercase,
- 'callbacks': {counter: 0},
- 'getTestability': getTestability,
- '$$minErr': minErr,
- '$$csp': csp,
- 'reloadWithDebugInfo': reloadWithDebugInfo
- });
-
- angularModule = setupModuleLoader(window);
-
- angularModule('ng', ['ngLocale'], ['$provide',
- function ngModule($provide) {
- // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.
- $provide.provider({
- $$sanitizeUri: $$SanitizeUriProvider
- });
- $provide.provider('$compile', $CompileProvider).
- directive({
- a: htmlAnchorDirective,
- input: inputDirective,
- textarea: inputDirective,
- form: formDirective,
- script: scriptDirective,
- select: selectDirective,
- style: styleDirective,
- option: optionDirective,
- ngBind: ngBindDirective,
- ngBindHtml: ngBindHtmlDirective,
- ngBindTemplate: ngBindTemplateDirective,
- ngClass: ngClassDirective,
- ngClassEven: ngClassEvenDirective,
- ngClassOdd: ngClassOddDirective,
- ngCloak: ngCloakDirective,
- ngController: ngControllerDirective,
- ngForm: ngFormDirective,
- ngHide: ngHideDirective,
- ngIf: ngIfDirective,
- ngInclude: ngIncludeDirective,
- ngInit: ngInitDirective,
- ngNonBindable: ngNonBindableDirective,
- ngPluralize: ngPluralizeDirective,
- ngRepeat: ngRepeatDirective,
- ngShow: ngShowDirective,
- ngStyle: ngStyleDirective,
- ngSwitch: ngSwitchDirective,
- ngSwitchWhen: ngSwitchWhenDirective,
- ngSwitchDefault: ngSwitchDefaultDirective,
- ngOptions: ngOptionsDirective,
- ngTransclude: ngTranscludeDirective,
- ngModel: ngModelDirective,
- ngList: ngListDirective,
- ngChange: ngChangeDirective,
- pattern: patternDirective,
- ngPattern: patternDirective,
- required: requiredDirective,
- ngRequired: requiredDirective,
- minlength: minlengthDirective,
- ngMinlength: minlengthDirective,
- maxlength: maxlengthDirective,
- ngMaxlength: maxlengthDirective,
- ngValue: ngValueDirective,
- ngModelOptions: ngModelOptionsDirective
- }).
- directive({
- ngInclude: ngIncludeFillContentDirective
- }).
- directive(ngAttributeAliasDirectives).
- directive(ngEventDirectives);
- $provide.provider({
- $anchorScroll: $AnchorScrollProvider,
- $animate: $AnimateProvider,
- $animateCss: $CoreAnimateCssProvider,
- $$animateJs: $$CoreAnimateJsProvider,
- $$animateQueue: $$CoreAnimateQueueProvider,
- $$AnimateRunner: $$AnimateRunnerFactoryProvider,
- $$animateAsyncRun: $$AnimateAsyncRunFactoryProvider,
- $browser: $BrowserProvider,
- $cacheFactory: $CacheFactoryProvider,
- $controller: $ControllerProvider,
- $document: $DocumentProvider,
- $exceptionHandler: $ExceptionHandlerProvider,
- $filter: $FilterProvider,
- $$forceReflow: $$ForceReflowProvider,
- $interpolate: $InterpolateProvider,
- $interval: $IntervalProvider,
- $http: $HttpProvider,
- $httpParamSerializer: $HttpParamSerializerProvider,
- $httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,
- $httpBackend: $HttpBackendProvider,
- $xhrFactory: $xhrFactoryProvider,
- $location: $LocationProvider,
- $log: $LogProvider,
- $parse: $ParseProvider,
- $rootScope: $RootScopeProvider,
- $q: $QProvider,
- $$q: $$QProvider,
- $sce: $SceProvider,
- $sceDelegate: $SceDelegateProvider,
- $sniffer: $SnifferProvider,
- $templateCache: $TemplateCacheProvider,
- $templateRequest: $TemplateRequestProvider,
- $$testability: $$TestabilityProvider,
- $timeout: $TimeoutProvider,
- $window: $WindowProvider,
- $$rAF: $$RAFProvider,
- $$jqLite: $$jqLiteProvider,
- $$HashMap: $$HashMapProvider,
- $$cookieReader: $$CookieReaderProvider
- });
- }
- ]);
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables likes document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/* global JQLitePrototype: true,
- addEventListenerFn: true,
- removeEventListenerFn: true,
- BOOLEAN_ATTR: true,
- ALIASED_ATTR: true,
-*/
-
-//////////////////////////////////
-//JQLite
-//////////////////////////////////
-
-/**
- * @ngdoc function
- * @name angular.element
- * @module ng
- * @kind function
- *
- * @description
- * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.
- *
- * If jQuery is available, `angular.element` is an alias for the
- * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`
- * delegates to Angular's built-in subset of jQuery, called "jQuery lite" or **jqLite**.
- *
- * jqLite is a tiny, API-compatible subset of jQuery that allows
- * Angular to manipulate the DOM in a cross-browser compatible way. jqLite implements only the most
- * commonly needed functionality with the goal of having a very small footprint.
- *
- * To use `jQuery`, simply ensure it is loaded before the `angular.js` file. You can also use the
- * {@link ngJq `ngJq`} directive to specify that jqlite should be used over jQuery, or to use a
- * specific version of jQuery if multiple versions exist on the page.
- *
- * <div class="alert alert-info">**Note:** All element references in Angular are always wrapped with jQuery or
- * jqLite (such as the element argument in a directive's compile / link function). They are never raw DOM references.</div>
- *
- * <div class="alert alert-warning">**Note:** Keep in mind that this function will not find elements
- * by tag name / CSS selector. For lookups by tag name, try instead `angular.element(document).find(...)`
- * or `$document.find()`, or use the standard DOM APIs, e.g. `document.querySelectorAll()`.</div>
- *
- * ## Angular's jqLite
- * jqLite provides only the following jQuery methods:
- *
- * - [`addClass()`](http://api.jquery.com/addClass/)
- * - [`after()`](http://api.jquery.com/after/)
- * - [`append()`](http://api.jquery.com/append/)
- * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters
- * - [`bind()`](http://api.jquery.com/bind/) - Does not support namespaces, selectors or eventData
- * - [`children()`](http://api.jquery.com/children/) - Does not support selectors
- * - [`clone()`](http://api.jquery.com/clone/)
- * - [`contents()`](http://api.jquery.com/contents/)
- * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`.
- * As a setter, does not convert numbers to strings or append 'px', and also does not have automatic property prefixing.
- * - [`data()`](http://api.jquery.com/data/)
- * - [`detach()`](http://api.jquery.com/detach/)
- * - [`empty()`](http://api.jquery.com/empty/)
- * - [`eq()`](http://api.jquery.com/eq/)
- * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name
- * - [`hasClass()`](http://api.jquery.com/hasClass/)
- * - [`html()`](http://api.jquery.com/html/)
- * - [`next()`](http://api.jquery.com/next/) - Does not support selectors
- * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData
- * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter
- * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors
- * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors
- * - [`prepend()`](http://api.jquery.com/prepend/)
- * - [`prop()`](http://api.jquery.com/prop/)
- * - [`ready()`](http://api.jquery.com/ready/)
- * - [`remove()`](http://api.jquery.com/remove/)
- * - [`removeAttr()`](http://api.jquery.com/removeAttr/)
- * - [`removeClass()`](http://api.jquery.com/removeClass/)
- * - [`removeData()`](http://api.jquery.com/removeData/)
- * - [`replaceWith()`](http://api.jquery.com/replaceWith/)
- * - [`text()`](http://api.jquery.com/text/)
- * - [`toggleClass()`](http://api.jquery.com/toggleClass/)
- * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers.
- * - [`unbind()`](http://api.jquery.com/unbind/) - Does not support namespaces or event object as parameter
- * - [`val()`](http://api.jquery.com/val/)
- * - [`wrap()`](http://api.jquery.com/wrap/)
- *
- * ## jQuery/jqLite Extras
- * Angular also provides the following additional methods and events to both jQuery and jqLite:
- *
- * ### Events
- * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event
- * on all DOM nodes being removed. This can be used to clean up any 3rd party bindings to the DOM
- * element before it is removed.
- *
- * ### Methods
- * - `controller(name)` - retrieves the controller of the current element or its parent. By default
- * retrieves controller associated with the `ngController` directive. If `name` is provided as
- * camelCase directive name, then the controller for this directive will be retrieved (e.g.
- * `'ngModel'`).
- * - `injector()` - retrieves the injector of the current element or its parent.
- * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current
- * element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to
- * be enabled.
- * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the
- * current element. This getter should be used only on elements that contain a directive which starts a new isolate
- * scope. Calling `scope()` on this element always returns the original non-isolate scope.
- * Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.
- * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top
- * parent element is reached.
- *
- * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.
- * @returns {Object} jQuery object.
- */
-
-JQLite.expando = 'ng339';
-
-var jqCache = JQLite.cache = {},
- jqId = 1,
- addEventListenerFn = function(element, type, fn) {
- element.addEventListener(type, fn, false);
- },
- removeEventListenerFn = function(element, type, fn) {
- element.removeEventListener(type, fn, false);
- };
-
-/*
- * !!! This is an undocumented "private" function !!!
- */
-JQLite._data = function(node) {
- //jQuery always returns an object on cache miss
- return this.cache[node[this.expando]] || {};
-};
-
-function jqNextId() { return ++jqId; }
-
-
-var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
-var MOZ_HACK_REGEXP = /^moz([A-Z])/;
-var MOUSE_EVENT_MAP= { mouseleave: "mouseout", mouseenter: "mouseover"};
-var jqLiteMinErr = minErr('jqLite');
-
-/**
- * Converts snake_case to camelCase.
- * Also there is special case for Moz prefix starting with upper case letter.
- * @param name Name to normalize
- */
-function camelCase(name) {
- return name.
- replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
- return offset ? letter.toUpperCase() : letter;
- }).
- replace(MOZ_HACK_REGEXP, 'Moz$1');
-}
-
-var SINGLE_TAG_REGEXP = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/;
-var HTML_REGEXP = /<|&#?\w+;/;
-var TAG_NAME_REGEXP = /<([\w:-]+)/;
-var XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi;
-
-var wrapMap = {
- 'option': [1, '<select multiple="multiple">', '</select>'],
-
- 'thead': [1, '<table>', '</table>'],
- 'col': [2, '<table><colgroup>', '</colgroup></table>'],
- 'tr': [2, '<table><tbody>', '</tbody></table>'],
- 'td': [3, '<table><tbody><tr>', '</tr></tbody></table>'],
- '_default': [0, "", ""]
-};
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-
-function jqLiteIsTextNode(html) {
- return !HTML_REGEXP.test(html);
-}
-
-function jqLiteAcceptsData(node) {
- // The window object can accept data but has no nodeType
- // Otherwise we are only interested in elements (1) and documents (9)
- var nodeType = node.nodeType;
- return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;
-}
-
-function jqLiteHasData(node) {
- for (var key in jqCache[node.ng339]) {
- return true;
- }
- return false;
-}
-
-function jqLiteCleanData(nodes) {
- for (var i = 0, ii = nodes.length; i < ii; i++) {
- jqLiteRemoveData(nodes[i]);
- }
-}
-
-function jqLiteBuildFragment(html, context) {
- var tmp, tag, wrap,
- fragment = context.createDocumentFragment(),
- nodes = [], i;
-
- if (jqLiteIsTextNode(html)) {
- // Convert non-html into a text node
- nodes.push(context.createTextNode(html));
- } else {
- // Convert html into DOM nodes
- tmp = tmp || fragment.appendChild(context.createElement("div"));
- tag = (TAG_NAME_REGEXP.exec(html) || ["", ""])[1].toLowerCase();
- wrap = wrapMap[tag] || wrapMap._default;
- tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, "<$1></$2>") + wrap[2];
-
- // Descend through wrappers to the right content
- i = wrap[0];
- while (i--) {
- tmp = tmp.lastChild;
- }
-
- nodes = concat(nodes, tmp.childNodes);
-
- tmp = fragment.firstChild;
- tmp.textContent = "";
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
- fragment.innerHTML = ""; // Clear inner HTML
- forEach(nodes, function(node) {
- fragment.appendChild(node);
- });
-
- return fragment;
-}
-
-function jqLiteParseHTML(html, context) {
- context = context || document;
- var parsed;
-
- if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {
- return [context.createElement(parsed[1])];
- }
-
- if ((parsed = jqLiteBuildFragment(html, context))) {
- return parsed.childNodes;
- }
-
- return [];
-}
-
-function jqLiteWrapNode(node, wrapper) {
- var parent = node.parentNode;
-
- if (parent) {
- parent.replaceChild(wrapper, node);
- }
-
- wrapper.appendChild(node);
-}
-
-
-// IE9-11 has no method "contains" in SVG element and in Node.prototype. Bug #10259.
-var jqLiteContains = Node.prototype.contains || function(arg) {
- // jshint bitwise: false
- return !!(this.compareDocumentPosition(arg) & 16);
- // jshint bitwise: true
-};
-
-/////////////////////////////////////////////
-function JQLite(element) {
- if (element instanceof JQLite) {
- return element;
- }
-
- var argIsString;
-
- if (isString(element)) {
- element = trim(element);
- argIsString = true;
- }
- if (!(this instanceof JQLite)) {
- if (argIsString && element.charAt(0) != '<') {
- throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
- }
- return new JQLite(element);
- }
-
- if (argIsString) {
- jqLiteAddNodes(this, jqLiteParseHTML(element));
- } else {
- jqLiteAddNodes(this, element);
- }
-}
-
-function jqLiteClone(element) {
- return element.cloneNode(true);
-}
-
-function jqLiteDealoc(element, onlyDescendants) {
- if (!onlyDescendants) jqLiteRemoveData(element);
-
- if (element.querySelectorAll) {
- var descendants = element.querySelectorAll('*');
- for (var i = 0, l = descendants.length; i < l; i++) {
- jqLiteRemoveData(descendants[i]);
- }
- }
-}
-
-function jqLiteOff(element, type, fn, unsupported) {
- if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');
-
- var expandoStore = jqLiteExpandoStore(element);
- var events = expandoStore && expandoStore.events;
- var handle = expandoStore && expandoStore.handle;
-
- if (!handle) return; //no listeners registered
-
- if (!type) {
- for (type in events) {
- if (type !== '$destroy') {
- removeEventListenerFn(element, type, handle);
- }
- delete events[type];
- }
- } else {
-
- var removeHandler = function(type) {
- var listenerFns = events[type];
- if (isDefined(fn)) {
- arrayRemove(listenerFns || [], fn);
- }
- if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {
- removeEventListenerFn(element, type, handle);
- delete events[type];
- }
- };
-
- forEach(type.split(' '), function(type) {
- removeHandler(type);
- if (MOUSE_EVENT_MAP[type]) {
- removeHandler(MOUSE_EVENT_MAP[type]);
- }
- });
- }
-}
-
-function jqLiteRemoveData(element, name) {
- var expandoId = element.ng339;
- var expandoStore = expandoId && jqCache[expandoId];
-
- if (expandoStore) {
- if (name) {
- delete expandoStore.data[name];
- return;
- }
-
- if (expandoStore.handle) {
- if (expandoStore.events.$destroy) {
- expandoStore.handle({}, '$destroy');
- }
- jqLiteOff(element);
- }
- delete jqCache[expandoId];
- element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
- }
-}
-
-
-function jqLiteExpandoStore(element, createIfNecessary) {
- var expandoId = element.ng339,
- expandoStore = expandoId && jqCache[expandoId];
-
- if (createIfNecessary && !expandoStore) {
- element.ng339 = expandoId = jqNextId();
- expandoStore = jqCache[expandoId] = {events: {}, data: {}, handle: undefined};
- }
-
- return expandoStore;
-}
-
-
-function jqLiteData(element, key, value) {
- if (jqLiteAcceptsData(element)) {
-
- var isSimpleSetter = isDefined(value);
- var isSimpleGetter = !isSimpleSetter && key && !isObject(key);
- var massGetter = !key;
- var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter);
- var data = expandoStore && expandoStore.data;
-
- if (isSimpleSetter) { // data('key', value)
- data[key] = value;
- } else {
- if (massGetter) { // data()
- return data;
- } else {
- if (isSimpleGetter) { // data('key')
- // don't force creation of expandoStore if it doesn't exist yet
- return data && data[key];
- } else { // mass-setter: data({key1: val1, key2: val2})
- extend(data, key);
- }
- }
- }
- }
-}
-
-function jqLiteHasClass(element, selector) {
- if (!element.getAttribute) return false;
- return ((" " + (element.getAttribute('class') || '') + " ").replace(/[\n\t]/g, " ").
- indexOf(" " + selector + " ") > -1);
-}
-
-function jqLiteRemoveClass(element, cssClasses) {
- if (cssClasses && element.setAttribute) {
- forEach(cssClasses.split(' '), function(cssClass) {
- element.setAttribute('class', trim(
- (" " + (element.getAttribute('class') || '') + " ")
- .replace(/[\n\t]/g, " ")
- .replace(" " + trim(cssClass) + " ", " "))
- );
- });
- }
-}
-
-function jqLiteAddClass(element, cssClasses) {
- if (cssClasses && element.setAttribute) {
- var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ')
- .replace(/[\n\t]/g, " ");
-
- forEach(cssClasses.split(' '), function(cssClass) {
- cssClass = trim(cssClass);
- if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {
- existingClasses += cssClass + ' ';
- }
- });
-
- element.setAttribute('class', trim(existingClasses));
- }
-}
-
-
-function jqLiteAddNodes(root, elements) {
- // THIS CODE IS VERY HOT. Don't make changes without benchmarking.
-
- if (elements) {
-
- // if a Node (the most common case)
- if (elements.nodeType) {
- root[root.length++] = elements;
- } else {
- var length = elements.length;
-
- // if an Array or NodeList and not a Window
- if (typeof length === 'number' && elements.window !== elements) {
- if (length) {
- for (var i = 0; i < length; i++) {
- root[root.length++] = elements[i];
- }
- }
- } else {
- root[root.length++] = elements;
- }
- }
- }
-}
-
-
-function jqLiteController(element, name) {
- return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller');
-}
-
-function jqLiteInheritedData(element, name, value) {
- // if element is the document object work with the html element instead
- // this makes $(document).scope() possible
- if (element.nodeType == NODE_TYPE_DOCUMENT) {
- element = element.documentElement;
- }
- var names = isArray(name) ? name : [name];
-
- while (element) {
- for (var i = 0, ii = names.length; i < ii; i++) {
- if (isDefined(value = jqLite.data(element, names[i]))) return value;
- }
-
- // If dealing with a document fragment node with a host element, and no parent, use the host
- // element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM
- // to lookup parent controllers.
- element = element.parentNode || (element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host);
- }
-}
-
-function jqLiteEmpty(element) {
- jqLiteDealoc(element, true);
- while (element.firstChild) {
- element.removeChild(element.firstChild);
- }
-}
-
-function jqLiteRemove(element, keepData) {
- if (!keepData) jqLiteDealoc(element);
- var parent = element.parentNode;
- if (parent) parent.removeChild(element);
-}
-
-
-function jqLiteDocumentLoaded(action, win) {
- win = win || window;
- if (win.document.readyState === 'complete') {
- // Force the action to be run async for consistent behavior
- // from the action's point of view
- // i.e. it will definitely not be in a $apply
- win.setTimeout(action);
- } else {
- // No need to unbind this handler as load is only ever called once
- jqLite(win).on('load', action);
- }
-}
-
-//////////////////////////////////////////
-// Functions which are declared directly.
-//////////////////////////////////////////
-var JQLitePrototype = JQLite.prototype = {
- ready: function(fn) {
- var fired = false;
-
- function trigger() {
- if (fired) return;
- fired = true;
- fn();
- }
-
- // check if document is already loaded
- if (document.readyState === 'complete') {
- setTimeout(trigger);
- } else {
- this.on('DOMContentLoaded', trigger); // works for modern browsers and IE9
- // we can not use jqLite since we are not done loading and jQuery could be loaded later.
- // jshint -W064
- JQLite(window).on('load', trigger); // fallback to window.onload for others
- // jshint +W064
- }
- },
- toString: function() {
- var value = [];
- forEach(this, function(e) { value.push('' + e);});
- return '[' + value.join(', ') + ']';
- },
-
- eq: function(index) {
- return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]);
- },
-
- length: 0,
- push: push,
- sort: [].sort,
- splice: [].splice
-};
-
-//////////////////////////////////////////
-// Functions iterating getter/setters.
-// these functions return self on setter and
-// value on get.
-//////////////////////////////////////////
-var BOOLEAN_ATTR = {};
-forEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) {
- BOOLEAN_ATTR[lowercase(value)] = value;
-});
-var BOOLEAN_ELEMENTS = {};
-forEach('input,select,option,textarea,button,form,details'.split(','), function(value) {
- BOOLEAN_ELEMENTS[value] = true;
-});
-var ALIASED_ATTR = {
- 'ngMinlength': 'minlength',
- 'ngMaxlength': 'maxlength',
- 'ngMin': 'min',
- 'ngMax': 'max',
- 'ngPattern': 'pattern'
-};
-
-function getBooleanAttrName(element, name) {
- // check dom last since we will most likely fail on name
- var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
-
- // booleanAttr is here twice to minimize DOM access
- return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
-}
-
-function getAliasedAttrName(name) {
- return ALIASED_ATTR[name];
-}
-
-forEach({
- data: jqLiteData,
- removeData: jqLiteRemoveData,
- hasData: jqLiteHasData,
- cleanData: jqLiteCleanData
-}, function(fn, name) {
- JQLite[name] = fn;
-});
-
-forEach({
- data: jqLiteData,
- inheritedData: jqLiteInheritedData,
-
- scope: function(element) {
- // Can't use jqLiteData here directly so we stay compatible with jQuery!
- return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);
- },
-
- isolateScope: function(element) {
- // Can't use jqLiteData here directly so we stay compatible with jQuery!
- return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate');
- },
-
- controller: jqLiteController,
-
- injector: function(element) {
- return jqLiteInheritedData(element, '$injector');
- },
-
- removeAttr: function(element, name) {
- element.removeAttribute(name);
- },
-
- hasClass: jqLiteHasClass,
-
- css: function(element, name, value) {
- name = camelCase(name);
-
- if (isDefined(value)) {
- element.style[name] = value;
- } else {
- return element.style[name];
- }
- },
-
- attr: function(element, name, value) {
- var nodeType = element.nodeType;
- if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT) {
- return;
- }
- var lowercasedName = lowercase(name);
- if (BOOLEAN_ATTR[lowercasedName]) {
- if (isDefined(value)) {
- if (!!value) {
- element[name] = true;
- element.setAttribute(name, lowercasedName);
- } else {
- element[name] = false;
- element.removeAttribute(lowercasedName);
- }
- } else {
- return (element[name] ||
- (element.attributes.getNamedItem(name) || noop).specified)
- ? lowercasedName
- : undefined;
- }
- } else if (isDefined(value)) {
- element.setAttribute(name, value);
- } else if (element.getAttribute) {
- // the extra argument "2" is to get the right thing for a.href in IE, see jQuery code
- // some elements (e.g. Document) don't have get attribute, so return undefined
- var ret = element.getAttribute(name, 2);
- // normalize non-existing attributes to undefined (as jQuery)
- return ret === null ? undefined : ret;
- }
- },
-
- prop: function(element, name, value) {
- if (isDefined(value)) {
- element[name] = value;
- } else {
- return element[name];
- }
- },
-
- text: (function() {
- getText.$dv = '';
- return getText;
-
- function getText(element, value) {
- if (isUndefined(value)) {
- var nodeType = element.nodeType;
- return (nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT) ? element.textContent : '';
- }
- element.textContent = value;
- }
- })(),
-
- val: function(element, value) {
- if (isUndefined(value)) {
- if (element.multiple && nodeName_(element) === 'select') {
- var result = [];
- forEach(element.options, function(option) {
- if (option.selected) {
- result.push(option.value || option.text);
- }
- });
- return result.length === 0 ? null : result;
- }
- return element.value;
- }
- element.value = value;
- },
-
- html: function(element, value) {
- if (isUndefined(value)) {
- return element.innerHTML;
- }
- jqLiteDealoc(element, true);
- element.innerHTML = value;
- },
-
- empty: jqLiteEmpty
-}, function(fn, name) {
- /**
- * Properties: writes return selection, reads return first value
- */
- JQLite.prototype[name] = function(arg1, arg2) {
- var i, key;
- var nodeCount = this.length;
-
- // jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it
- // in a way that survives minification.
- // jqLiteEmpty takes no arguments but is a setter.
- if (fn !== jqLiteEmpty &&
- (isUndefined((fn.length == 2 && (fn !== jqLiteHasClass && fn !== jqLiteController)) ? arg1 : arg2))) {
- if (isObject(arg1)) {
-
- // we are a write, but the object properties are the key/values
- for (i = 0; i < nodeCount; i++) {
- if (fn === jqLiteData) {
- // data() takes the whole object in jQuery
- fn(this[i], arg1);
- } else {
- for (key in arg1) {
- fn(this[i], key, arg1[key]);
- }
- }
- }
- // return self for chaining
- return this;
- } else {
- // we are a read, so read the first child.
- // TODO: do we still need this?
- var value = fn.$dv;
- // Only if we have $dv do we iterate over all, otherwise it is just the first element.
- var jj = (isUndefined(value)) ? Math.min(nodeCount, 1) : nodeCount;
- for (var j = 0; j < jj; j++) {
- var nodeValue = fn(this[j], arg1, arg2);
- value = value ? value + nodeValue : nodeValue;
- }
- return value;
- }
- } else {
- // we are a write, so apply to all children
- for (i = 0; i < nodeCount; i++) {
- fn(this[i], arg1, arg2);
- }
- // return self for chaining
- return this;
- }
- };
-});
-
-function createEventHandler(element, events) {
- var eventHandler = function(event, type) {
- // jQuery specific api
- event.isDefaultPrevented = function() {
- return event.defaultPrevented;
- };
-
- var eventFns = events[type || event.type];
- var eventFnsLength = eventFns ? eventFns.length : 0;
-
- if (!eventFnsLength) return;
-
- if (isUndefined(event.immediatePropagationStopped)) {
- var originalStopImmediatePropagation = event.stopImmediatePropagation;
- event.stopImmediatePropagation = function() {
- event.immediatePropagationStopped = true;
-
- if (event.stopPropagation) {
- event.stopPropagation();
- }
-
- if (originalStopImmediatePropagation) {
- originalStopImmediatePropagation.call(event);
- }
- };
- }
-
- event.isImmediatePropagationStopped = function() {
- return event.immediatePropagationStopped === true;
- };
-
- // Some events have special handlers that wrap the real handler
- var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper;
-
- // Copy event handlers in case event handlers array is modified during execution.
- if ((eventFnsLength > 1)) {
- eventFns = shallowCopy(eventFns);
- }
-
- for (var i = 0; i < eventFnsLength; i++) {
- if (!event.isImmediatePropagationStopped()) {
- handlerWrapper(element, event, eventFns[i]);
- }
- }
- };
-
- // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all
- // events on `element`
- eventHandler.elem = element;
- return eventHandler;
-}
-
-function defaultHandlerWrapper(element, event, handler) {
- handler.call(element, event);
-}
-
-function specialMouseHandlerWrapper(target, event, handler) {
- // Refer to jQuery's implementation of mouseenter & mouseleave
- // Read about mouseenter and mouseleave:
- // http://www.quirksmode.org/js/events_mouse.html#link8
- var related = event.relatedTarget;
- // For mousenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if (!related || (related !== target && !jqLiteContains.call(target, related))) {
- handler.call(target, event);
- }
-}
-
-//////////////////////////////////////////
-// Functions iterating traversal.
-// These functions chain results into a single
-// selector.
-//////////////////////////////////////////
-forEach({
- removeData: jqLiteRemoveData,
-
- on: function jqLiteOn(element, type, fn, unsupported) {
- if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');
-
- // Do not add event handlers to non-elements because they will not be cleaned up.
- if (!jqLiteAcceptsData(element)) {
- return;
- }
-
- var expandoStore = jqLiteExpandoStore(element, true);
- var events = expandoStore.events;
- var handle = expandoStore.handle;
-
- if (!handle) {
- handle = expandoStore.handle = createEventHandler(element, events);
- }
-
- // http://jsperf.com/string-indexof-vs-split
- var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type];
- var i = types.length;
-
- var addHandler = function(type, specialHandlerWrapper, noEventListener) {
- var eventFns = events[type];
-
- if (!eventFns) {
- eventFns = events[type] = [];
- eventFns.specialHandlerWrapper = specialHandlerWrapper;
- if (type !== '$destroy' && !noEventListener) {
- addEventListenerFn(element, type, handle);
- }
- }
-
- eventFns.push(fn);
- };
-
- while (i--) {
- type = types[i];
- if (MOUSE_EVENT_MAP[type]) {
- addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper);
- addHandler(type, undefined, true);
- } else {
- addHandler(type);
- }
- }
- },
-
- off: jqLiteOff,
-
- one: function(element, type, fn) {
- element = jqLite(element);
-
- //add the listener twice so that when it is called
- //you can remove the original function and still be
- //able to call element.off(ev, fn) normally
- element.on(type, function onFn() {
- element.off(type, fn);
- element.off(type, onFn);
- });
- element.on(type, fn);
- },
-
- replaceWith: function(element, replaceNode) {
- var index, parent = element.parentNode;
- jqLiteDealoc(element);
- forEach(new JQLite(replaceNode), function(node) {
- if (index) {
- parent.insertBefore(node, index.nextSibling);
- } else {
- parent.replaceChild(node, element);
- }
- index = node;
- });
- },
-
- children: function(element) {
- var children = [];
- forEach(element.childNodes, function(element) {
- if (element.nodeType === NODE_TYPE_ELEMENT) {
- children.push(element);
- }
- });
- return children;
- },
-
- contents: function(element) {
- return element.contentDocument || element.childNodes || [];
- },
-
- append: function(element, node) {
- var nodeType = element.nodeType;
- if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return;
-
- node = new JQLite(node);
-
- for (var i = 0, ii = node.length; i < ii; i++) {
- var child = node[i];
- element.appendChild(child);
- }
- },
-
- prepend: function(element, node) {
- if (element.nodeType === NODE_TYPE_ELEMENT) {
- var index = element.firstChild;
- forEach(new JQLite(node), function(child) {
- element.insertBefore(child, index);
- });
- }
- },
-
- wrap: function(element, wrapNode) {
- jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]);
- },
-
- remove: jqLiteRemove,
-
- detach: function(element) {
- jqLiteRemove(element, true);
- },
-
- after: function(element, newElement) {
- var index = element, parent = element.parentNode;
- newElement = new JQLite(newElement);
-
- for (var i = 0, ii = newElement.length; i < ii; i++) {
- var node = newElement[i];
- parent.insertBefore(node, index.nextSibling);
- index = node;
- }
- },
-
- addClass: jqLiteAddClass,
- removeClass: jqLiteRemoveClass,
-
- toggleClass: function(element, selector, condition) {
- if (selector) {
- forEach(selector.split(' '), function(className) {
- var classCondition = condition;
- if (isUndefined(classCondition)) {
- classCondition = !jqLiteHasClass(element, className);
- }
- (classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className);
- });
- }
- },
-
- parent: function(element) {
- var parent = element.parentNode;
- return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null;
- },
-
- next: function(element) {
- return element.nextElementSibling;
- },
-
- find: function(element, selector) {
- if (element.getElementsByTagName) {
- return element.getElementsByTagName(selector);
- } else {
- return [];
- }
- },
-
- clone: jqLiteClone,
-
- triggerHandler: function(element, event, extraParameters) {
-
- var dummyEvent, eventFnsCopy, handlerArgs;
- var eventName = event.type || event;
- var expandoStore = jqLiteExpandoStore(element);
- var events = expandoStore && expandoStore.events;
- var eventFns = events && events[eventName];
-
- if (eventFns) {
- // Create a dummy event to pass to the handlers
- dummyEvent = {
- preventDefault: function() { this.defaultPrevented = true; },
- isDefaultPrevented: function() { return this.defaultPrevented === true; },
- stopImmediatePropagation: function() { this.immediatePropagationStopped = true; },
- isImmediatePropagationStopped: function() { return this.immediatePropagationStopped === true; },
- stopPropagation: noop,
- type: eventName,
- target: element
- };
-
- // If a custom event was provided then extend our dummy event with it
- if (event.type) {
- dummyEvent = extend(dummyEvent, event);
- }
-
- // Copy event handlers in case event handlers array is modified during execution.
- eventFnsCopy = shallowCopy(eventFns);
- handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent];
-
- forEach(eventFnsCopy, function(fn) {
- if (!dummyEvent.isImmediatePropagationStopped()) {
- fn.apply(element, handlerArgs);
- }
- });
- }
- }
-}, function(fn, name) {
- /**
- * chaining functions
- */
- JQLite.prototype[name] = function(arg1, arg2, arg3) {
- var value;
-
- for (var i = 0, ii = this.length; i < ii; i++) {
- if (isUndefined(value)) {
- value = fn(this[i], arg1, arg2, arg3);
- if (isDefined(value)) {
- // any function which returns a value needs to be wrapped
- value = jqLite(value);
- }
- } else {
- jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3));
- }
- }
- return isDefined(value) ? value : this;
- };
-
- // bind legacy bind/unbind to on/off
- JQLite.prototype.bind = JQLite.prototype.on;
- JQLite.prototype.unbind = JQLite.prototype.off;
-});
-
-
-// Provider for private $$jqLite service
-function $$jqLiteProvider() {
- this.$get = function $$jqLite() {
- return extend(JQLite, {
- hasClass: function(node, classes) {
- if (node.attr) node = node[0];
- return jqLiteHasClass(node, classes);
- },
- addClass: function(node, classes) {
- if (node.attr) node = node[0];
- return jqLiteAddClass(node, classes);
- },
- removeClass: function(node, classes) {
- if (node.attr) node = node[0];
- return jqLiteRemoveClass(node, classes);
- }
- });
- };
-}
-
-/**
- * Computes a hash of an 'obj'.
- * Hash of a:
- * string is string
- * number is number as string
- * object is either result of calling $$hashKey function on the object or uniquely generated id,
- * that is also assigned to the $$hashKey property of the object.
- *
- * @param obj
- * @returns {string} hash string such that the same input will have the same hash string.
- * The resulting string key is in 'type:hashKey' format.
- */
-function hashKey(obj, nextUidFn) {
- var key = obj && obj.$$hashKey;
-
- if (key) {
- if (typeof key === 'function') {
- key = obj.$$hashKey();
- }
- return key;
- }
-
- var objType = typeof obj;
- if (objType == 'function' || (objType == 'object' && obj !== null)) {
- key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)();
- } else {
- key = objType + ':' + obj;
- }
-
- return key;
-}
-
-/**
- * HashMap which can use objects as keys
- */
-function HashMap(array, isolatedUid) {
- if (isolatedUid) {
- var uid = 0;
- this.nextUid = function() {
- return ++uid;
- };
- }
- forEach(array, this.put, this);
-}
-HashMap.prototype = {
- /**
- * Store key value pair
- * @param key key to store can be any type
- * @param value value to store can be any type
- */
- put: function(key, value) {
- this[hashKey(key, this.nextUid)] = value;
- },
-
- /**
- * @param key
- * @returns {Object} the value for the key
- */
- get: function(key) {
- return this[hashKey(key, this.nextUid)];
- },
-
- /**
- * Remove the key/value pair
- * @param key
- */
- remove: function(key) {
- var value = this[key = hashKey(key, this.nextUid)];
- delete this[key];
- return value;
- }
-};
-
-var $$HashMapProvider = [function() {
- this.$get = [function() {
- return HashMap;
- }];
-}];
-
-/**
- * @ngdoc function
- * @module ng
- * @name angular.injector
- * @kind function
- *
- * @description
- * Creates an injector object that can be used for retrieving services as well as for
- * dependency injection (see {@link guide/di dependency injection}).
- *
- * @param {Array.<string|Function>} modules A list of module functions or their aliases. See
- * {@link angular.module}. The `ng` module must be explicitly added.
- * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which
- * disallows argument name annotation inference.
- * @returns {injector} Injector object. See {@link auto.$injector $injector}.
- *
- * @example
- * Typical usage
- * ```js
- * // create an injector
- * var $injector = angular.injector(['ng']);
- *
- * // use the injector to kick off your application
- * // use the type inference to auto inject arguments, or use implicit injection
- * $injector.invoke(function($rootScope, $compile, $document) {
- * $compile($document)($rootScope);
- * $rootScope.$digest();
- * });
- * ```
- *
- * Sometimes you want to get access to the injector of a currently running Angular app
- * from outside Angular. Perhaps, you want to inject and compile some markup after the
- * application has been bootstrapped. You can do this using the extra `injector()` added
- * to JQuery/jqLite elements. See {@link angular.element}.
- *
- * *This is fairly rare but could be the case if a third party library is injecting the
- * markup.*
- *
- * In the following example a new block of HTML containing a `ng-controller`
- * directive is added to the end of the document body by JQuery. We then compile and link
- * it into the current AngularJS scope.
- *
- * ```js
- * var $div = $('<div ng-controller="MyCtrl">{{content.label}}</div>');
- * $(document.body).append($div);
- *
- * angular.element(document).injector().invoke(function($compile) {
- * var scope = angular.element($div).scope();
- * $compile($div)(scope);
- * });
- * ```
- */
-
-
-/**
- * @ngdoc module
- * @name auto
- * @description
- *
- * Implicit module which gets automatically added to each {@link auto.$injector $injector}.
- */
-
-var ARROW_ARG = /^([^\(]+?)=>/;
-var FN_ARGS = /^[^\(]*\(\s*([^\)]*)\)/m;
-var FN_ARG_SPLIT = /,/;
-var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/;
-var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
-var $injectorMinErr = minErr('$injector');
-
-function extractArgs(fn) {
- var fnText = fn.toString().replace(STRIP_COMMENTS, ''),
- args = fnText.match(ARROW_ARG) || fnText.match(FN_ARGS);
- return args;
-}
-
-function anonFn(fn) {
- // For anonymous functions, showing at the very least the function signature can help in
- // debugging.
- var args = extractArgs(fn);
- if (args) {
- return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
- }
- return 'fn';
-}
-
-function annotate(fn, strictDi, name) {
- var $inject,
- argDecl,
- last;
-
- if (typeof fn === 'function') {
- if (!($inject = fn.$inject)) {
- $inject = [];
- if (fn.length) {
- if (strictDi) {
- if (!isString(name) || !name) {
- name = fn.name || anonFn(fn);
- }
- throw $injectorMinErr('strictdi',
- '{0} is not using explicit annotation and cannot be invoked in strict mode', name);
- }
- argDecl = extractArgs(fn);
- forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {
- arg.replace(FN_ARG, function(all, underscore, name) {
- $inject.push(name);
- });
- });
- }
- fn.$inject = $inject;
- }
- } else if (isArray(fn)) {
- last = fn.length - 1;
- assertArgFn(fn[last], 'fn');
- $inject = fn.slice(0, last);
- } else {
- assertArgFn(fn, 'fn', true);
- }
- return $inject;
-}
-
-///////////////////////////////////////
-
-/**
- * @ngdoc service
- * @name $injector
- *
- * @description
- *
- * `$injector` is used to retrieve object instances as defined by
- * {@link auto.$provide provider}, instantiate types, invoke methods,
- * and load modules.
- *
- * The following always holds true:
- *
- * ```js
- * var $injector = angular.injector();
- * expect($injector.get('$injector')).toBe($injector);
- * expect($injector.invoke(function($injector) {
- * return $injector;
- * })).toBe($injector);
- * ```
- *
- * # Injection Function Annotation
- *
- * JavaScript does not have annotations, and annotations are needed for dependency injection. The
- * following are all valid ways of annotating function with injection arguments and are equivalent.
- *
- * ```js
- * // inferred (only works if code not minified/obfuscated)
- * $injector.invoke(function(serviceA){});
- *
- * // annotated
- * function explicit(serviceA) {};
- * explicit.$inject = ['serviceA'];
- * $injector.invoke(explicit);
- *
- * // inline
- * $injector.invoke(['serviceA', function(serviceA){}]);
- * ```
- *
- * ## Inference
- *
- * In JavaScript calling `toString()` on a function returns the function definition. The definition
- * can then be parsed and the function arguments can be extracted. This method of discovering
- * annotations is disallowed when the injector is in strict mode.
- * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the
- * argument names.
- *
- * ## `$inject` Annotation
- * By adding an `$inject` property onto a function the injection parameters can be specified.
- *
- * ## Inline
- * As an array of injection names, where the last item in the array is the function to call.
- */
-
-/**
- * @ngdoc method
- * @name $injector#get
- *
- * @description
- * Return an instance of the service.
- *
- * @param {string} name The name of the instance to retrieve.
- * @param {string=} caller An optional string to provide the origin of the function call for error messages.
- * @return {*} The instance.
- */
-
-/**
- * @ngdoc method
- * @name $injector#invoke
- *
- * @description
- * Invoke the method and supply the method arguments from the `$injector`.
- *
- * @param {Function|Array.<string|Function>} fn The injectable function to invoke. Function parameters are
- * injected according to the {@link guide/di $inject Annotation} rules.
- * @param {Object=} self The `this` for the invoked method.
- * @param {Object=} locals Optional object. If preset then any argument names are read from this
- * object first, before the `$injector` is consulted.
- * @returns {*} the value returned by the invoked `fn` function.
- */
-
-/**
- * @ngdoc method
- * @name $injector#has
- *
- * @description
- * Allows the user to query if the particular service exists.
- *
- * @param {string} name Name of the service to query.
- * @returns {boolean} `true` if injector has given service.
- */
-
-/**
- * @ngdoc method
- * @name $injector#instantiate
- * @description
- * Create a new instance of JS type. The method takes a constructor function, invokes the new
- * operator, and supplies all of the arguments to the constructor function as specified by the
- * constructor annotation.
- *
- * @param {Function} Type Annotated constructor function.
- * @param {Object=} locals Optional object. If preset then any argument names are read from this
- * object first, before the `$injector` is consulted.
- * @returns {Object} new instance of `Type`.
- */
-
-/**
- * @ngdoc method
- * @name $injector#annotate
- *
- * @description
- * Returns an array of service names which the function is requesting for injection. This API is
- * used by the injector to determine which services need to be injected into the function when the
- * function is invoked. There are three ways in which the function can be annotated with the needed
- * dependencies.
- *
- * # Argument names
- *
- * The simplest form is to extract the dependencies from the arguments of the function. This is done
- * by converting the function into a string using `toString()` method and extracting the argument
- * names.
- * ```js
- * // Given
- * function MyController($scope, $route) {
- * // ...
- * }
- *
- * // Then
- * expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
- * ```
- *
- * You can disallow this method by using strict injection mode.
- *
- * This method does not work with code minification / obfuscation. For this reason the following
- * annotation strategies are supported.
- *
- * # The `$inject` property
- *
- * If a function has an `$inject` property and its value is an array of strings, then the strings
- * represent names of services to be injected into the function.
- * ```js
- * // Given
- * var MyController = function(obfuscatedScope, obfuscatedRoute) {
- * // ...
- * }
- * // Define function dependencies
- * MyController['$inject'] = ['$scope', '$route'];
- *
- * // Then
- * expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
- * ```
- *
- * # The array notation
- *
- * It is often desirable to inline Injected functions and that's when setting the `$inject` property
- * is very inconvenient. In these situations using the array notation to specify the dependencies in
- * a way that survives minification is a better choice:
- *
- * ```js
- * // We wish to write this (not minification / obfuscation safe)
- * injector.invoke(function($compile, $rootScope) {
- * // ...
- * });
- *
- * // We are forced to write break inlining
- * var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {
- * // ...
- * };
- * tmpFn.$inject = ['$compile', '$rootScope'];
- * injector.invoke(tmpFn);
- *
- * // To better support inline function the inline annotation is supported
- * injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {
- * // ...
- * }]);
- *
- * // Therefore
- * expect(injector.annotate(
- * ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])
- * ).toEqual(['$compile', '$rootScope']);
- * ```
- *
- * @param {Function|Array.<string|Function>} fn Function for which dependent service names need to
- * be retrieved as described above.
- *
- * @param {boolean=} [strictDi=false] Disallow argument name annotation inference.
- *
- * @returns {Array.<string>} The names of the services which the function requires.
- */
-
-
-
-
-/**
- * @ngdoc service
- * @name $provide
- *
- * @description
- *
- * The {@link auto.$provide $provide} service has a number of methods for registering components
- * with the {@link auto.$injector $injector}. Many of these functions are also exposed on
- * {@link angular.Module}.
- *
- * An Angular **service** is a singleton object created by a **service factory**. These **service
- * factories** are functions which, in turn, are created by a **service provider**.
- * The **service providers** are constructor functions. When instantiated they must contain a
- * property called `$get`, which holds the **service factory** function.
- *
- * When you request a service, the {@link auto.$injector $injector} is responsible for finding the
- * correct **service provider**, instantiating it and then calling its `$get` **service factory**
- * function to get the instance of the **service**.
- *
- * Often services have no configuration options and there is no need to add methods to the service
- * provider. The provider will be no more than a constructor function with a `$get` property. For
- * these cases the {@link auto.$provide $provide} service has additional helper methods to register
- * services without specifying a provider.
- *
- * * {@link auto.$provide#provider provider(provider)} - registers a **service provider** with the
- * {@link auto.$injector $injector}
- * * {@link auto.$provide#constant constant(obj)} - registers a value/object that can be accessed by
- * providers and services.
- * * {@link auto.$provide#value value(obj)} - registers a value/object that can only be accessed by
- * services, not providers.
- * * {@link auto.$provide#factory factory(fn)} - registers a service **factory function**, `fn`,
- * that will be wrapped in a **service provider** object, whose `$get` property will contain the
- * given factory function.
- * * {@link auto.$provide#service service(class)} - registers a **constructor function**, `class`
- * that will be wrapped in a **service provider** object, whose `$get` property will instantiate
- * a new object using the given constructor function.
- *
- * See the individual methods for more information and examples.
- */
-
-/**
- * @ngdoc method
- * @name $provide#provider
- * @description
- *
- * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions
- * are constructor functions, whose instances are responsible for "providing" a factory for a
- * service.
- *
- * Service provider names start with the name of the service they provide followed by `Provider`.
- * For example, the {@link ng.$log $log} service has a provider called
- * {@link ng.$logProvider $logProvider}.
- *
- * Service provider objects can have additional methods which allow configuration of the provider
- * and its service. Importantly, you can configure what kind of service is created by the `$get`
- * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a
- * method {@link ng.$logProvider#debugEnabled debugEnabled}
- * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the
- * console or not.
- *
- * @param {string} name The name of the instance. NOTE: the provider will be available under `name +
- 'Provider'` key.
- * @param {(Object|function())} provider If the provider is:
- *
- * - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
- * {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.
- * - `Constructor`: a new instance of the provider will be created using
- * {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.
- *
- * @returns {Object} registered provider instance
-
- * @example
- *
- * The following example shows how to create a simple event tracking service and register it using
- * {@link auto.$provide#provider $provide.provider()}.
- *
- * ```js
- * // Define the eventTracker provider
- * function EventTrackerProvider() {
- * var trackingUrl = '/track';
- *
- * // A provider method for configuring where the tracked events should been saved
- * this.setTrackingUrl = function(url) {
- * trackingUrl = url;
- * };
- *
- * // The service factory function
- * this.$get = ['$http', function($http) {
- * var trackedEvents = {};
- * return {
- * // Call this to track an event
- * event: function(event) {
- * var count = trackedEvents[event] || 0;
- * count += 1;
- * trackedEvents[event] = count;
- * return count;
- * },
- * // Call this to save the tracked events to the trackingUrl
- * save: function() {
- * $http.post(trackingUrl, trackedEvents);
- * }
- * };
- * }];
- * }
- *
- * describe('eventTracker', function() {
- * var postSpy;
- *
- * beforeEach(module(function($provide) {
- * // Register the eventTracker provider
- * $provide.provider('eventTracker', EventTrackerProvider);
- * }));
- *
- * beforeEach(module(function(eventTrackerProvider) {
- * // Configure eventTracker provider
- * eventTrackerProvider.setTrackingUrl('/custom-track');
- * }));
- *
- * it('tracks events', inject(function(eventTracker) {
- * expect(eventTracker.event('login')).toEqual(1);
- * expect(eventTracker.event('login')).toEqual(2);
- * }));
- *
- * it('saves to the tracking url', inject(function(eventTracker, $http) {
- * postSpy = spyOn($http, 'post');
- * eventTracker.event('login');
- * eventTracker.save();
- * expect(postSpy).toHaveBeenCalled();
- * expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');
- * expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');
- * expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });
- * }));
- * });
- * ```
- */
-
-/**
- * @ngdoc method
- * @name $provide#factory
- * @description
- *
- * Register a **service factory**, which will be called to return the service instance.
- * This is short for registering a service where its provider consists of only a `$get` property,
- * which is the given service factory function.
- * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to
- * configure your service in a provider.
- *
- * @param {string} name The name of the instance.
- * @param {Function|Array.<string|Function>} $getFn The injectable $getFn for the instance creation.
- * Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.
- * @returns {Object} registered provider instance
- *
- * @example
- * Here is an example of registering a service
- * ```js
- * $provide.factory('ping', ['$http', function($http) {
- * return function ping() {
- * return $http.send('/ping');
- * };
- * }]);
- * ```
- * You would then inject and use this service like this:
- * ```js
- * someModule.controller('Ctrl', ['ping', function(ping) {
- * ping();
- * }]);
- * ```
- */
-
-
-/**
- * @ngdoc method
- * @name $provide#service
- * @description
- *
- * Register a **service constructor**, which will be invoked with `new` to create the service
- * instance.
- * This is short for registering a service where its provider's `$get` property is a factory
- * function that returns an instance instantiated by the injector from the service constructor
- * function.
- *
- * Internally it looks a bit like this:
- *
- * ```
- * {
- * $get: function() {
- * return $injector.instantiate(constructor);
- * }
- * }
- * ```
- *
- *
- * You should use {@link auto.$provide#service $provide.service(class)} if you define your service
- * as a type/class.
- *
- * @param {string} name The name of the instance.
- * @param {Function|Array.<string|Function>} constructor An injectable class (constructor function)
- * that will be instantiated.
- * @returns {Object} registered provider instance
- *
- * @example
- * Here is an example of registering a service using
- * {@link auto.$provide#service $provide.service(class)}.
- * ```js
- * var Ping = function($http) {
- * this.$http = $http;
- * };
- *
- * Ping.$inject = ['$http'];
- *
- * Ping.prototype.send = function() {
- * return this.$http.get('/ping');
- * };
- * $provide.service('ping', Ping);
- * ```
- * You would then inject and use this service like this:
- * ```js
- * someModule.controller('Ctrl', ['ping', function(ping) {
- * ping.send();
- * }]);
- * ```
- */
-
-
-/**
- * @ngdoc method
- * @name $provide#value
- * @description
- *
- * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a
- * number, an array, an object or a function. This is short for registering a service where its
- * provider's `$get` property is a factory function that takes no arguments and returns the **value
- * service**.
- *
- * Value services are similar to constant services, except that they cannot be injected into a
- * module configuration function (see {@link angular.Module#config}) but they can be overridden by
- * an Angular
- * {@link auto.$provide#decorator decorator}.
- *
- * @param {string} name The name of the instance.
- * @param {*} value The value.
- * @returns {Object} registered provider instance
- *
- * @example
- * Here are some examples of creating value services.
- * ```js
- * $provide.value('ADMIN_USER', 'admin');
- *
- * $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });
- *
- * $provide.value('halfOf', function(value) {
- * return value / 2;
- * });
- * ```
- */
-
-
-/**
- * @ngdoc method
- * @name $provide#constant
- * @description
- *
- * Register a **constant service**, such as a string, a number, an array, an object or a function,
- * with the {@link auto.$injector $injector}. Unlike {@link auto.$provide#value value} it can be
- * injected into a module configuration function (see {@link angular.Module#config}) and it cannot
- * be overridden by an Angular {@link auto.$provide#decorator decorator}.
- *
- * @param {string} name The name of the constant.
- * @param {*} value The constant value.
- * @returns {Object} registered instance
- *
- * @example
- * Here a some examples of creating constants:
- * ```js
- * $provide.constant('SHARD_HEIGHT', 306);
- *
- * $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);
- *
- * $provide.constant('double', function(value) {
- * return value * 2;
- * });
- * ```
- */
-
-
-/**
- * @ngdoc method
- * @name $provide#decorator
- * @description
- *
- * Register a **service decorator** with the {@link auto.$injector $injector}. A service decorator
- * intercepts the creation of a service, allowing it to override or modify the behavior of the
- * service. The object returned by the decorator may be the original service, or a new service
- * object which replaces or wraps and delegates to the original service.
- *
- * @param {string} name The name of the service to decorate.
- * @param {Function|Array.<string|Function>} decorator This function will be invoked when the service needs to be
- * instantiated and should return the decorated service instance. The function is called using
- * the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.
- * Local injection arguments:
- *
- * * `$delegate` - The original service instance, which can be monkey patched, configured,
- * decorated or delegated to.
- *
- * @example
- * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting
- * calls to {@link ng.$log#error $log.warn()}.
- * ```js
- * $provide.decorator('$log', ['$delegate', function($delegate) {
- * $delegate.warn = $delegate.error;
- * return $delegate;
- * }]);
- * ```
- */
-
-
-function createInjector(modulesToLoad, strictDi) {
- strictDi = (strictDi === true);
- var INSTANTIATING = {},
- providerSuffix = 'Provider',
- path = [],
- loadedModules = new HashMap([], true),
- providerCache = {
- $provide: {
- provider: supportObject(provider),
- factory: supportObject(factory),
- service: supportObject(service),
- value: supportObject(value),
- constant: supportObject(constant),
- decorator: decorator
- }
- },
- providerInjector = (providerCache.$injector =
- createInternalInjector(providerCache, function(serviceName, caller) {
- if (angular.isString(caller)) {
- path.push(caller);
- }
- throw $injectorMinErr('unpr', "Unknown provider: {0}", path.join(' <- '));
- })),
- instanceCache = {},
- protoInstanceInjector =
- createInternalInjector(instanceCache, function(serviceName, caller) {
- var provider = providerInjector.get(serviceName + providerSuffix, caller);
- return instanceInjector.invoke(
- provider.$get, provider, undefined, serviceName);
- }),
- instanceInjector = protoInstanceInjector;
-
- providerCache['$injector' + providerSuffix] = { $get: valueFn(protoInstanceInjector) };
- var runBlocks = loadModules(modulesToLoad);
- instanceInjector = protoInstanceInjector.get('$injector');
- instanceInjector.strictDi = strictDi;
- forEach(runBlocks, function(fn) { if (fn) instanceInjector.invoke(fn); });
-
- return instanceInjector;
-
- ////////////////////////////////////
- // $provider
- ////////////////////////////////////
-
- function supportObject(delegate) {
- return function(key, value) {
- if (isObject(key)) {
- forEach(key, reverseParams(delegate));
- } else {
- return delegate(key, value);
- }
- };
- }
-
- function provider(name, provider_) {
- assertNotHasOwnProperty(name, 'service');
- if (isFunction(provider_) || isArray(provider_)) {
- provider_ = providerInjector.instantiate(provider_);
- }
- if (!provider_.$get) {
- throw $injectorMinErr('pget', "Provider '{0}' must define $get factory method.", name);
- }
- return providerCache[name + providerSuffix] = provider_;
- }
-
- function enforceReturnValue(name, factory) {
- return function enforcedReturnValue() {
- var result = instanceInjector.invoke(factory, this);
- if (isUndefined(result)) {
- throw $injectorMinErr('undef', "Provider '{0}' must return a value from $get factory method.", name);
- }
- return result;
- };
- }
-
- function factory(name, factoryFn, enforce) {
- return provider(name, {
- $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn
- });
- }
-
- function service(name, constructor) {
- return factory(name, ['$injector', function($injector) {
- return $injector.instantiate(constructor);
- }]);
- }
-
- function value(name, val) { return factory(name, valueFn(val), false); }
-
- function constant(name, value) {
- assertNotHasOwnProperty(name, 'constant');
- providerCache[name] = value;
- instanceCache[name] = value;
- }
-
- function decorator(serviceName, decorFn) {
- var origProvider = providerInjector.get(serviceName + providerSuffix),
- orig$get = origProvider.$get;
-
- origProvider.$get = function() {
- var origInstance = instanceInjector.invoke(orig$get, origProvider);
- return instanceInjector.invoke(decorFn, null, {$delegate: origInstance});
- };
- }
-
- ////////////////////////////////////
- // Module Loading
- ////////////////////////////////////
- function loadModules(modulesToLoad) {
- assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');
- var runBlocks = [], moduleFn;
- forEach(modulesToLoad, function(module) {
- if (loadedModules.get(module)) return;
- loadedModules.put(module, true);
-
- function runInvokeQueue(queue) {
- var i, ii;
- for (i = 0, ii = queue.length; i < ii; i++) {
- var invokeArgs = queue[i],
- provider = providerInjector.get(invokeArgs[0]);
-
- provider[invokeArgs[1]].apply(provider, invokeArgs[2]);
- }
- }
-
- try {
- if (isString(module)) {
- moduleFn = angularModule(module);
- runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);
- runInvokeQueue(moduleFn._invokeQueue);
- runInvokeQueue(moduleFn._configBlocks);
- } else if (isFunction(module)) {
- runBlocks.push(providerInjector.invoke(module));
- } else if (isArray(module)) {
- runBlocks.push(providerInjector.invoke(module));
- } else {
- assertArgFn(module, 'module');
- }
- } catch (e) {
- if (isArray(module)) {
- module = module[module.length - 1];
- }
- if (e.message && e.stack && e.stack.indexOf(e.message) == -1) {
- // Safari & FF's stack traces don't contain error.message content
- // unlike those of Chrome and IE
- // So if stack doesn't contain message, we create a new string that contains both.
- // Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.
- /* jshint -W022 */
- e = e.message + '\n' + e.stack;
- }
- throw $injectorMinErr('modulerr', "Failed to instantiate module {0} due to:\n{1}",
- module, e.stack || e.message || e);
- }
- });
- return runBlocks;
- }
-
- ////////////////////////////////////
- // internal Injector
- ////////////////////////////////////
-
- function createInternalInjector(cache, factory) {
-
- function getService(serviceName, caller) {
- if (cache.hasOwnProperty(serviceName)) {
- if (cache[serviceName] === INSTANTIATING) {
- throw $injectorMinErr('cdep', 'Circular dependency found: {0}',
- serviceName + ' <- ' + path.join(' <- '));
- }
- return cache[serviceName];
- } else {
- try {
- path.unshift(serviceName);
- cache[serviceName] = INSTANTIATING;
- return cache[serviceName] = factory(serviceName, caller);
- } catch (err) {
- if (cache[serviceName] === INSTANTIATING) {
- delete cache[serviceName];
- }
- throw err;
- } finally {
- path.shift();
- }
- }
- }
-
-
- function injectionArgs(fn, locals, serviceName) {
- var args = [],
- $inject = createInjector.$$annotate(fn, strictDi, serviceName);
-
- for (var i = 0, length = $inject.length; i < length; i++) {
- var key = $inject[i];
- if (typeof key !== 'string') {
- throw $injectorMinErr('itkn',
- 'Incorrect injection token! Expected service name as string, got {0}', key);
- }
- args.push(locals && locals.hasOwnProperty(key) ? locals[key] :
- getService(key, serviceName));
- }
- return args;
- }
-
- function isClass(func) {
- // IE 9-11 do not support classes and IE9 leaks with the code below.
- if (msie <= 11) {
- return false;
- }
- // Workaround for MS Edge.
- // Check https://connect.microsoft.com/IE/Feedback/Details/2211653
- return typeof func === 'function'
- && /^(?:class\s|constructor\()/.test(Function.prototype.toString.call(func));
- }
-
- function invoke(fn, self, locals, serviceName) {
- if (typeof locals === 'string') {
- serviceName = locals;
- locals = null;
- }
-
- var args = injectionArgs(fn, locals, serviceName);
- if (isArray(fn)) {
- fn = fn[fn.length - 1];
- }
-
- if (!isClass(fn)) {
- // http://jsperf.com/angularjs-invoke-apply-vs-switch
- // #5388
- return fn.apply(self, args);
- } else {
- args.unshift(null);
- return new (Function.prototype.bind.apply(fn, args))();
- }
- }
-
-
- function instantiate(Type, locals, serviceName) {
- // Check if Type is annotated and use just the given function at n-1 as parameter
- // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
- var ctor = (isArray(Type) ? Type[Type.length - 1] : Type);
- var args = injectionArgs(Type, locals, serviceName);
- // Empty object at position 0 is ignored for invocation with `new`, but required.
- args.unshift(null);
- return new (Function.prototype.bind.apply(ctor, args))();
- }
-
-
- return {
- invoke: invoke,
- instantiate: instantiate,
- get: getService,
- annotate: createInjector.$$annotate,
- has: function(name) {
- return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);
- }
- };
- }
-}
-
-createInjector.$$annotate = annotate;
-
-/**
- * @ngdoc provider
- * @name $anchorScrollProvider
- *
- * @description
- * Use `$anchorScrollProvider` to disable automatic scrolling whenever
- * {@link ng.$location#hash $location.hash()} changes.
- */
-function $AnchorScrollProvider() {
-
- var autoScrollingEnabled = true;
-
- /**
- * @ngdoc method
- * @name $anchorScrollProvider#disableAutoScrolling
- *
- * @description
- * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to
- * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />
- * Use this method to disable automatic scrolling.
- *
- * If automatic scrolling is disabled, one must explicitly call
- * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the
- * current hash.
- */
- this.disableAutoScrolling = function() {
- autoScrollingEnabled = false;
- };
-
- /**
- * @ngdoc service
- * @name $anchorScroll
- * @kind function
- * @requires $window
- * @requires $location
- * @requires $rootScope
- *
- * @description
- * When called, it scrolls to the element related to the specified `hash` or (if omitted) to the
- * current value of {@link ng.$location#hash $location.hash()}, according to the rules specified
- * in the
- * [HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/browsers.html#the-indicated-part-of-the-document).
- *
- * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to
- * match any anchor whenever it changes. This can be disabled by calling
- * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.
- *
- * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a
- * vertical scroll-offset (either fixed or dynamic).
- *
- * @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of
- * {@link ng.$location#hash $location.hash()} will be used.
- *
- * @property {(number|function|jqLite)} yOffset
- * If set, specifies a vertical scroll-offset. This is often useful when there are fixed
- * positioned elements at the top of the page, such as navbars, headers etc.
- *
- * `yOffset` can be specified in various ways:
- * - **number**: A fixed number of pixels to be used as offset.<br /><br />
- * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return
- * a number representing the offset (in pixels).<br /><br />
- * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from
- * the top of the page to the element's bottom will be used as offset.<br />
- * **Note**: The element will be taken into account only as long as its `position` is set to
- * `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust
- * their height and/or positioning according to the viewport's size.
- *
- * <br />
- * <div class="alert alert-warning">
- * In order for `yOffset` to work properly, scrolling should take place on the document's root and
- * not some child element.
- * </div>
- *
- * @example
- <example module="anchorScrollExample">
- <file name="index.html">
- <div id="scrollArea" ng-controller="ScrollController">
- <a ng-click="gotoBottom()">Go to bottom</a>
- <a id="bottom"></a> You're at the bottom!
- </div>
- </file>
- <file name="script.js">
- angular.module('anchorScrollExample', [])
- .controller('ScrollController', ['$scope', '$location', '$anchorScroll',
- function ($scope, $location, $anchorScroll) {
- $scope.gotoBottom = function() {
- // set the location.hash to the id of
- // the element you wish to scroll to.
- $location.hash('bottom');
-
- // call $anchorScroll()
- $anchorScroll();
- };
- }]);
- </file>
- <file name="style.css">
- #scrollArea {
- height: 280px;
- overflow: auto;
- }
-
- #bottom {
- display: block;
- margin-top: 2000px;
- }
- </file>
- </example>
- *
- * <hr />
- * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).
- * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.
- *
- * @example
- <example module="anchorScrollOffsetExample">
- <file name="index.html">
- <div class="fixed-header" ng-controller="headerCtrl">
- <a href="" ng-click="gotoAnchor(x)" ng-repeat="x in [1,2,3,4,5]">
- Go to anchor {{x}}
- </a>
- </div>
- <div id="anchor{{x}}" class="anchor" ng-repeat="x in [1,2,3,4,5]">
- Anchor {{x}} of 5
- </div>
- </file>
- <file name="script.js">
- angular.module('anchorScrollOffsetExample', [])
- .run(['$anchorScroll', function($anchorScroll) {
- $anchorScroll.yOffset = 50; // always scroll by 50 extra pixels
- }])
- .controller('headerCtrl', ['$anchorScroll', '$location', '$scope',
- function ($anchorScroll, $location, $scope) {
- $scope.gotoAnchor = function(x) {
- var newHash = 'anchor' + x;
- if ($location.hash() !== newHash) {
- // set the $location.hash to `newHash` and
- // $anchorScroll will automatically scroll to it
- $location.hash('anchor' + x);
- } else {
- // call $anchorScroll() explicitly,
- // since $location.hash hasn't changed
- $anchorScroll();
- }
- };
- }
- ]);
- </file>
- <file name="style.css">
- body {
- padding-top: 50px;
- }
-
- .anchor {
- border: 2px dashed DarkOrchid;
- padding: 10px 10px 200px 10px;
- }
-
- .fixed-header {
- background-color: rgba(0, 0, 0, 0.2);
- height: 50px;
- position: fixed;
- top: 0; left: 0; right: 0;
- }
-
- .fixed-header > a {
- display: inline-block;
- margin: 5px 15px;
- }
- </file>
- </example>
- */
- this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) {
- var document = $window.document;
-
- // Helper function to get first anchor from a NodeList
- // (using `Array#some()` instead of `angular#forEach()` since it's more performant
- // and working in all supported browsers.)
- function getFirstAnchor(list) {
- var result = null;
- Array.prototype.some.call(list, function(element) {
- if (nodeName_(element) === 'a') {
- result = element;
- return true;
- }
- });
- return result;
- }
-
- function getYOffset() {
-
- var offset = scroll.yOffset;
-
- if (isFunction(offset)) {
- offset = offset();
- } else if (isElement(offset)) {
- var elem = offset[0];
- var style = $window.getComputedStyle(elem);
- if (style.position !== 'fixed') {
- offset = 0;
- } else {
- offset = elem.getBoundingClientRect().bottom;
- }
- } else if (!isNumber(offset)) {
- offset = 0;
- }
-
- return offset;
- }
-
- function scrollTo(elem) {
- if (elem) {
- elem.scrollIntoView();
-
- var offset = getYOffset();
-
- if (offset) {
- // `offset` is the number of pixels we should scroll UP in order to align `elem` properly.
- // This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the
- // top of the viewport.
- //
- // IF the number of pixels from the top of `elem` to the end of the page's content is less
- // than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some
- // way down the page.
- //
- // This is often the case for elements near the bottom of the page.
- //
- // In such cases we do not need to scroll the whole `offset` up, just the difference between
- // the top of the element and the offset, which is enough to align the top of `elem` at the
- // desired position.
- var elemTop = elem.getBoundingClientRect().top;
- $window.scrollBy(0, elemTop - offset);
- }
- } else {
- $window.scrollTo(0, 0);
- }
- }
-
- function scroll(hash) {
- hash = isString(hash) ? hash : $location.hash();
- var elm;
-
- // empty hash, scroll to the top of the page
- if (!hash) scrollTo(null);
-
- // element with given id
- else if ((elm = document.getElementById(hash))) scrollTo(elm);
-
- // first anchor with given name :-D
- else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm);
-
- // no element and hash == 'top', scroll to the top of the page
- else if (hash === 'top') scrollTo(null);
- }
-
- // does not scroll when user clicks on anchor link that is currently on
- // (no url change, no $location.hash() change), browser native does scroll
- if (autoScrollingEnabled) {
- $rootScope.$watch(function autoScrollWatch() {return $location.hash();},
- function autoScrollWatchAction(newVal, oldVal) {
- // skip the initial scroll if $location.hash is empty
- if (newVal === oldVal && newVal === '') return;
-
- jqLiteDocumentLoaded(function() {
- $rootScope.$evalAsync(scroll);
- });
- });
- }
-
- return scroll;
- }];
-}
-
-var $animateMinErr = minErr('$animate');
-var ELEMENT_NODE = 1;
-var NG_ANIMATE_CLASSNAME = 'ng-animate';
-
-function mergeClasses(a,b) {
- if (!a && !b) return '';
- if (!a) return b;
- if (!b) return a;
- if (isArray(a)) a = a.join(' ');
- if (isArray(b)) b = b.join(' ');
- return a + ' ' + b;
-}
-
-function extractElementNode(element) {
- for (var i = 0; i < element.length; i++) {
- var elm = element[i];
- if (elm.nodeType === ELEMENT_NODE) {
- return elm;
- }
- }
-}
-
-function splitClasses(classes) {
- if (isString(classes)) {
- classes = classes.split(' ');
- }
-
- // Use createMap() to prevent class assumptions involving property names in
- // Object.prototype
- var obj = createMap();
- forEach(classes, function(klass) {
- // sometimes the split leaves empty string values
- // incase extra spaces were applied to the options
- if (klass.length) {
- obj[klass] = true;
- }
- });
- return obj;
-}
-
-// if any other type of options value besides an Object value is
-// passed into the $animate.method() animation then this helper code
-// will be run which will ignore it. While this patch is not the
-// greatest solution to this, a lot of existing plugins depend on
-// $animate to either call the callback (< 1.2) or return a promise
-// that can be changed. This helper function ensures that the options
-// are wiped clean incase a callback function is provided.
-function prepareAnimateOptions(options) {
- return isObject(options)
- ? options
- : {};
-}
-
-var $$CoreAnimateJsProvider = function() {
- this.$get = function() {};
-};
-
-// this is prefixed with Core since it conflicts with
-// the animateQueueProvider defined in ngAnimate/animateQueue.js
-var $$CoreAnimateQueueProvider = function() {
- var postDigestQueue = new HashMap();
- var postDigestElements = [];
-
- this.$get = ['$$AnimateRunner', '$rootScope',
- function($$AnimateRunner, $rootScope) {
- return {
- enabled: noop,
- on: noop,
- off: noop,
- pin: noop,
-
- push: function(element, event, options, domOperation) {
- domOperation && domOperation();
-
- options = options || {};
- options.from && element.css(options.from);
- options.to && element.css(options.to);
-
- if (options.addClass || options.removeClass) {
- addRemoveClassesPostDigest(element, options.addClass, options.removeClass);
- }
-
- var runner = new $$AnimateRunner(); // jshint ignore:line
-
- // since there are no animations to run the runner needs to be
- // notified that the animation call is complete.
- runner.complete();
- return runner;
- }
- };
-
-
- function updateData(data, classes, value) {
- var changed = false;
- if (classes) {
- classes = isString(classes) ? classes.split(' ') :
- isArray(classes) ? classes : [];
- forEach(classes, function(className) {
- if (className) {
- changed = true;
- data[className] = value;
- }
- });
- }
- return changed;
- }
-
- function handleCSSClassChanges() {
- forEach(postDigestElements, function(element) {
- var data = postDigestQueue.get(element);
- if (data) {
- var existing = splitClasses(element.attr('class'));
- var toAdd = '';
- var toRemove = '';
- forEach(data, function(status, className) {
- var hasClass = !!existing[className];
- if (status !== hasClass) {
- if (status) {
- toAdd += (toAdd.length ? ' ' : '') + className;
- } else {
- toRemove += (toRemove.length ? ' ' : '') + className;
- }
- }
- });
-
- forEach(element, function(elm) {
- toAdd && jqLiteAddClass(elm, toAdd);
- toRemove && jqLiteRemoveClass(elm, toRemove);
- });
- postDigestQueue.remove(element);
- }
- });
- postDigestElements.length = 0;
- }
-
-
- function addRemoveClassesPostDigest(element, add, remove) {
- var data = postDigestQueue.get(element) || {};
-
- var classesAdded = updateData(data, add, true);
- var classesRemoved = updateData(data, remove, false);
-
- if (classesAdded || classesRemoved) {
-
- postDigestQueue.put(element, data);
- postDigestElements.push(element);
-
- if (postDigestElements.length === 1) {
- $rootScope.$$postDigest(handleCSSClassChanges);
- }
- }
- }
- }];
-};
-
-/**
- * @ngdoc provider
- * @name $animateProvider
- *
- * @description
- * Default implementation of $animate that doesn't perform any animations, instead just
- * synchronously performs DOM updates and resolves the returned runner promise.
- *
- * In order to enable animations the `ngAnimate` module has to be loaded.
- *
- * To see the functional implementation check out `src/ngAnimate/animate.js`.
- */
-var $AnimateProvider = ['$provide', function($provide) {
- var provider = this;
-
- this.$$registeredAnimations = Object.create(null);
-
- /**
- * @ngdoc method
- * @name $animateProvider#register
- *
- * @description
- * Registers a new injectable animation factory function. The factory function produces the
- * animation object which contains callback functions for each event that is expected to be
- * animated.
- *
- * * `eventFn`: `function(element, ... , doneFunction, options)`
- * The element to animate, the `doneFunction` and the options fed into the animation. Depending
- * on the type of animation additional arguments will be injected into the animation function. The
- * list below explains the function signatures for the different animation methods:
- *
- * - setClass: function(element, addedClasses, removedClasses, doneFunction, options)
- * - addClass: function(element, addedClasses, doneFunction, options)
- * - removeClass: function(element, removedClasses, doneFunction, options)
- * - enter, leave, move: function(element, doneFunction, options)
- * - animate: function(element, fromStyles, toStyles, doneFunction, options)
- *
- * Make sure to trigger the `doneFunction` once the animation is fully complete.
- *
- * ```js
- * return {
- * //enter, leave, move signature
- * eventFn : function(element, done, options) {
- * //code to run the animation
- * //once complete, then run done()
- * return function endFunction(wasCancelled) {
- * //code to cancel the animation
- * }
- * }
- * }
- * ```
- *
- * @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).
- * @param {Function} factory The factory function that will be executed to return the animation
- * object.
- */
- this.register = function(name, factory) {
- if (name && name.charAt(0) !== '.') {
- throw $animateMinErr('notcsel', "Expecting class selector starting with '.' got '{0}'.", name);
- }
-
- var key = name + '-animation';
- provider.$$registeredAnimations[name.substr(1)] = key;
- $provide.factory(key, factory);
- };
-
- /**
- * @ngdoc method
- * @name $animateProvider#classNameFilter
- *
- * @description
- * Sets and/or returns the CSS class regular expression that is checked when performing
- * an animation. Upon bootstrap the classNameFilter value is not set at all and will
- * therefore enable $animate to attempt to perform an animation on any element that is triggered.
- * When setting the `classNameFilter` value, animations will only be performed on elements
- * that successfully match the filter expression. This in turn can boost performance
- * for low-powered devices as well as applications containing a lot of structural operations.
- * @param {RegExp=} expression The className expression which will be checked against all animations
- * @return {RegExp} The current CSS className expression value. If null then there is no expression value
- */
- this.classNameFilter = function(expression) {
- if (arguments.length === 1) {
- this.$$classNameFilter = (expression instanceof RegExp) ? expression : null;
- if (this.$$classNameFilter) {
- var reservedRegex = new RegExp("(\\s+|\\/)" + NG_ANIMATE_CLASSNAME + "(\\s+|\\/)");
- if (reservedRegex.test(this.$$classNameFilter.toString())) {
- throw $animateMinErr('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.', NG_ANIMATE_CLASSNAME);
-
- }
- }
- }
- return this.$$classNameFilter;
- };
-
- this.$get = ['$$animateQueue', function($$animateQueue) {
- function domInsert(element, parentElement, afterElement) {
- // if for some reason the previous element was removed
- // from the dom sometime before this code runs then let's
- // just stick to using the parent element as the anchor
- if (afterElement) {
- var afterNode = extractElementNode(afterElement);
- if (afterNode && !afterNode.parentNode && !afterNode.previousElementSibling) {
- afterElement = null;
- }
- }
- afterElement ? afterElement.after(element) : parentElement.prepend(element);
- }
-
- /**
- * @ngdoc service
- * @name $animate
- * @description The $animate service exposes a series of DOM utility methods that provide support
- * for animation hooks. The default behavior is the application of DOM operations, however,
- * when an animation is detected (and animations are enabled), $animate will do the heavy lifting
- * to ensure that animation runs with the triggered DOM operation.
- *
- * By default $animate doesn't trigger any animations. This is because the `ngAnimate` module isn't
- * included and only when it is active then the animation hooks that `$animate` triggers will be
- * functional. Once active then all structural `ng-` directives will trigger animations as they perform
- * their DOM-related operations (enter, leave and move). Other directives such as `ngClass`,
- * `ngShow`, `ngHide` and `ngMessages` also provide support for animations.
- *
- * It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives.
- *
- * To learn more about enabling animation support, click here to visit the
- * {@link ngAnimate ngAnimate module page}.
- */
- return {
- // we don't call it directly since non-existant arguments may
- // be interpreted as null within the sub enabled function
-
- /**
- *
- * @ngdoc method
- * @name $animate#on
- * @kind function
- * @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...)
- * has fired on the given element or among any of its children. Once the listener is fired, the provided callback
- * is fired with the following params:
- *
- * ```js
- * $animate.on('enter', container,
- * function callback(element, phase) {
- * // cool we detected an enter animation within the container
- * }
- * );
- * ```
- *
- * @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...)
- * @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself
- * as well as among its children
- * @param {Function} callback the callback function that will be fired when the listener is triggered
- *
- * The arguments present in the callback function are:
- * * `element` - The captured DOM element that the animation was fired on.
- * * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends).
- */
- on: $$animateQueue.on,
-
- /**
- *
- * @ngdoc method
- * @name $animate#off
- * @kind function
- * @description Deregisters an event listener based on the event which has been associated with the provided element. This method
- * can be used in three different ways depending on the arguments:
- *
- * ```js
- * // remove all the animation event listeners listening for `enter`
- * $animate.off('enter');
- *
- * // remove all the animation event listeners listening for `enter` on the given element and its children
- * $animate.off('enter', container);
- *
- * // remove the event listener function provided by `callback` that is set
- * // to listen for `enter` on the given `container` as well as its children
- * $animate.off('enter', container, callback);
- * ```
- *
- * @param {string} event the animation event (e.g. enter, leave, move, addClass, removeClass, etc...)
- * @param {DOMElement=} container the container element the event listener was placed on
- * @param {Function=} callback the callback function that was registered as the listener
- */
- off: $$animateQueue.off,
-
- /**
- * @ngdoc method
- * @name $animate#pin
- * @kind function
- * @description Associates the provided element with a host parent element to allow the element to be animated even if it exists
- * outside of the DOM structure of the Angular application. By doing so, any animation triggered via `$animate` can be issued on the
- * element despite being outside the realm of the application or within another application. Say for example if the application
- * was bootstrapped on an element that is somewhere inside of the `<body>` tag, but we wanted to allow for an element to be situated
- * as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind
- * that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association.
- *
- * Note that this feature is only active when the `ngAnimate` module is used.
- *
- * @param {DOMElement} element the external element that will be pinned
- * @param {DOMElement} parentElement the host parent element that will be associated with the external element
- */
- pin: $$animateQueue.pin,
-
- /**
- *
- * @ngdoc method
- * @name $animate#enabled
- * @kind function
- * @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This
- * function can be called in four ways:
- *
- * ```js
- * // returns true or false
- * $animate.enabled();
- *
- * // changes the enabled state for all animations
- * $animate.enabled(false);
- * $animate.enabled(true);
- *
- * // returns true or false if animations are enabled for an element
- * $animate.enabled(element);
- *
- * // changes the enabled state for an element and its children
- * $animate.enabled(element, true);
- * $animate.enabled(element, false);
- * ```
- *
- * @param {DOMElement=} element the element that will be considered for checking/setting the enabled state
- * @param {boolean=} enabled whether or not the animations will be enabled for the element
- *
- * @return {boolean} whether or not animations are enabled
- */
- enabled: $$animateQueue.enabled,
-
- /**
- * @ngdoc method
- * @name $animate#cancel
- * @kind function
- * @description Cancels the provided animation.
- *
- * @param {Promise} animationPromise The animation promise that is returned when an animation is started.
- */
- cancel: function(runner) {
- runner.end && runner.end();
- },
-
- /**
- *
- * @ngdoc method
- * @name $animate#enter
- * @kind function
- * @description Inserts the element into the DOM either after the `after` element (if provided) or
- * as the first child within the `parent` element and then triggers an animation.
- * A promise is returned that will be resolved during the next digest once the animation
- * has completed.
- *
- * @param {DOMElement} element the element which will be inserted into the DOM
- * @param {DOMElement} parent the parent element which will append the element as
- * a child (so long as the after element is not present)
- * @param {DOMElement=} after the sibling element after which the element will be appended
- * @param {object=} options an optional collection of options/styles that will be applied to the element
- *
- * @return {Promise} the animation callback promise
- */
- enter: function(element, parent, after, options) {
- parent = parent && jqLite(parent);
- after = after && jqLite(after);
- parent = parent || after.parent();
- domInsert(element, parent, after);
- return $$animateQueue.push(element, 'enter', prepareAnimateOptions(options));
- },
-
- /**
- *
- * @ngdoc method
- * @name $animate#move
- * @kind function
- * @description Inserts (moves) the element into its new position in the DOM either after
- * the `after` element (if provided) or as the first child within the `parent` element
- * and then triggers an animation. A promise is returned that will be resolved
- * during the next digest once the animation has completed.
- *
- * @param {DOMElement} element the element which will be moved into the new DOM position
- * @param {DOMElement} parent the parent element which will append the element as
- * a child (so long as the after element is not present)
- * @param {DOMElement=} after the sibling element after which the element will be appended
- * @param {object=} options an optional collection of options/styles that will be applied to the element
- *
- * @return {Promise} the animation callback promise
- */
- move: function(element, parent, after, options) {
- parent = parent && jqLite(parent);
- after = after && jqLite(after);
- parent = parent || after.parent();
- domInsert(element, parent, after);
- return $$animateQueue.push(element, 'move', prepareAnimateOptions(options));
- },
-
- /**
- * @ngdoc method
- * @name $animate#leave
- * @kind function
- * @description Triggers an animation and then removes the element from the DOM.
- * When the function is called a promise is returned that will be resolved during the next
- * digest once the animation has completed.
- *
- * @param {DOMElement} element the element which will be removed from the DOM
- * @param {object=} options an optional collection of options/styles that will be applied to the element
- *
- * @return {Promise} the animation callback promise
- */
- leave: function(element, options) {
- return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() {
- element.remove();
- });
- },
-
- /**
- * @ngdoc method
- * @name $animate#addClass
- * @kind function
- *
- * @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon
- * execution, the addClass operation will only be handled after the next digest and it will not trigger an
- * animation if element already contains the CSS class or if the class is removed at a later step.
- * Note that class-based animations are treated differently compared to structural animations
- * (like enter, move and leave) since the CSS classes may be added/removed at different points
- * depending if CSS or JavaScript animations are used.
- *
- * @param {DOMElement} element the element which the CSS classes will be applied to
- * @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces)
- * @param {object=} options an optional collection of options/styles that will be applied to the element
- *
- * @return {Promise} the animation callback promise
- */
- addClass: function(element, className, options) {
- options = prepareAnimateOptions(options);
- options.addClass = mergeClasses(options.addclass, className);
- return $$animateQueue.push(element, 'addClass', options);
- },
-
- /**
- * @ngdoc method
- * @name $animate#removeClass
- * @kind function
- *
- * @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon
- * execution, the removeClass operation will only be handled after the next digest and it will not trigger an
- * animation if element does not contain the CSS class or if the class is added at a later step.
- * Note that class-based animations are treated differently compared to structural animations
- * (like enter, move and leave) since the CSS classes may be added/removed at different points
- * depending if CSS or JavaScript animations are used.
- *
- * @param {DOMElement} element the element which the CSS classes will be applied to
- * @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces)
- * @param {object=} options an optional collection of options/styles that will be applied to the element
- *
- * @return {Promise} the animation callback promise
- */
- removeClass: function(element, className, options) {
- options = prepareAnimateOptions(options);
- options.removeClass = mergeClasses(options.removeClass, className);
- return $$animateQueue.push(element, 'removeClass', options);
- },
-
- /**
- * @ngdoc method
- * @name $animate#setClass
- * @kind function
- *
- * @description Performs both the addition and removal of a CSS classes on an element and (during the process)
- * triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and
- * `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has
- * passed. Note that class-based animations are treated differently compared to structural animations
- * (like enter, move and leave) since the CSS classes may be added/removed at different points
- * depending if CSS or JavaScript animations are used.
- *
- * @param {DOMElement} element the element which the CSS classes will be applied to
- * @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces)
- * @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces)
- * @param {object=} options an optional collection of options/styles that will be applied to the element
- *
- * @return {Promise} the animation callback promise
- */
- setClass: function(element, add, remove, options) {
- options = prepareAnimateOptions(options);
- options.addClass = mergeClasses(options.addClass, add);
- options.removeClass = mergeClasses(options.removeClass, remove);
- return $$animateQueue.push(element, 'setClass', options);
- },
-
- /**
- * @ngdoc method
- * @name $animate#animate
- * @kind function
- *
- * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.
- * If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take
- * on the provided styles. For example, if a transition animation is set for the given classNamem, then the provided `from` and
- * `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding
- * style in `to`, the style in `from` is applied immediately, and no animation is run.
- * If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`
- * method (or as part of the `options` parameter):
- *
- * ```js
- * ngModule.animation('.my-inline-animation', function() {
- * return {
- * animate : function(element, from, to, done, options) {
- * //animation
- * done();
- * }
- * }
- * });
- * ```
- *
- * @param {DOMElement} element the element which the CSS styles will be applied to
- * @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.
- * @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.
- * @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If
- * this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.
- * (Note that if no animation is detected then this value will not be applied to the element.)
- * @param {object=} options an optional collection of options/styles that will be applied to the element
- *
- * @return {Promise} the animation callback promise
- */
- animate: function(element, from, to, className, options) {
- options = prepareAnimateOptions(options);
- options.from = options.from ? extend(options.from, from) : from;
- options.to = options.to ? extend(options.to, to) : to;
-
- className = className || 'ng-inline-animate';
- options.tempClasses = mergeClasses(options.tempClasses, className);
- return $$animateQueue.push(element, 'animate', options);
- }
- };
- }];
-}];
-
-var $$AnimateAsyncRunFactoryProvider = function() {
- this.$get = ['$$rAF', function($$rAF) {
- var waitQueue = [];
-
- function waitForTick(fn) {
- waitQueue.push(fn);
- if (waitQueue.length > 1) return;
- $$rAF(function() {
- for (var i = 0; i < waitQueue.length; i++) {
- waitQueue[i]();
- }
- waitQueue = [];
- });
- }
-
- return function() {
- var passed = false;
- waitForTick(function() {
- passed = true;
- });
- return function(callback) {
- passed ? callback() : waitForTick(callback);
- };
- };
- }];
-};
-
-var $$AnimateRunnerFactoryProvider = function() {
- this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$document', '$timeout',
- function($q, $sniffer, $$animateAsyncRun, $document, $timeout) {
-
- var INITIAL_STATE = 0;
- var DONE_PENDING_STATE = 1;
- var DONE_COMPLETE_STATE = 2;
-
- AnimateRunner.chain = function(chain, callback) {
- var index = 0;
-
- next();
- function next() {
- if (index === chain.length) {
- callback(true);
- return;
- }
-
- chain[index](function(response) {
- if (response === false) {
- callback(false);
- return;
- }
- index++;
- next();
- });
- }
- };
-
- AnimateRunner.all = function(runners, callback) {
- var count = 0;
- var status = true;
- forEach(runners, function(runner) {
- runner.done(onProgress);
- });
-
- function onProgress(response) {
- status = status && response;
- if (++count === runners.length) {
- callback(status);
- }
- }
- };
-
- function AnimateRunner(host) {
- this.setHost(host);
-
- var rafTick = $$animateAsyncRun();
- var timeoutTick = function(fn) {
- $timeout(fn, 0, false);
- };
-
- this._doneCallbacks = [];
- this._tick = function(fn) {
- var doc = $document[0];
-
- // the document may not be ready or attached
- // to the module for some internal tests
- if (doc && doc.hidden) {
- timeoutTick(fn);
- } else {
- rafTick(fn);
- }
- };
- this._state = 0;
- }
-
- AnimateRunner.prototype = {
- setHost: function(host) {
- this.host = host || {};
- },
-
- done: function(fn) {
- if (this._state === DONE_COMPLETE_STATE) {
- fn();
- } else {
- this._doneCallbacks.push(fn);
- }
- },
-
- progress: noop,
-
- getPromise: function() {
- if (!this.promise) {
- var self = this;
- this.promise = $q(function(resolve, reject) {
- self.done(function(status) {
- status === false ? reject() : resolve();
- });
- });
- }
- return this.promise;
- },
-
- then: function(resolveHandler, rejectHandler) {
- return this.getPromise().then(resolveHandler, rejectHandler);
- },
-
- 'catch': function(handler) {
- return this.getPromise()['catch'](handler);
- },
-
- 'finally': function(handler) {
- return this.getPromise()['finally'](handler);
- },
-
- pause: function() {
- if (this.host.pause) {
- this.host.pause();
- }
- },
-
- resume: function() {
- if (this.host.resume) {
- this.host.resume();
- }
- },
-
- end: function() {
- if (this.host.end) {
- this.host.end();
- }
- this._resolve(true);
- },
-
- cancel: function() {
- if (this.host.cancel) {
- this.host.cancel();
- }
- this._resolve(false);
- },
-
- complete: function(response) {
- var self = this;
- if (self._state === INITIAL_STATE) {
- self._state = DONE_PENDING_STATE;
- self._tick(function() {
- self._resolve(response);
- });
- }
- },
-
- _resolve: function(response) {
- if (this._state !== DONE_COMPLETE_STATE) {
- forEach(this._doneCallbacks, function(fn) {
- fn(response);
- });
- this._doneCallbacks.length = 0;
- this._state = DONE_COMPLETE_STATE;
- }
- }
- };
-
- return AnimateRunner;
- }];
-};
-
-/**
- * @ngdoc service
- * @name $animateCss
- * @kind object
- *
- * @description
- * This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,
- * then the `$animateCss` service will actually perform animations.
- *
- * Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.
- */
-var $CoreAnimateCssProvider = function() {
- this.$get = ['$$rAF', '$q', '$$AnimateRunner', function($$rAF, $q, $$AnimateRunner) {
-
- return function(element, initialOptions) {
- // all of the animation functions should create
- // a copy of the options data, however, if a
- // parent service has already created a copy then
- // we should stick to using that
- var options = initialOptions || {};
- if (!options.$$prepared) {
- options = copy(options);
- }
-
- // there is no point in applying the styles since
- // there is no animation that goes on at all in
- // this version of $animateCss.
- if (options.cleanupStyles) {
- options.from = options.to = null;
- }
-
- if (options.from) {
- element.css(options.from);
- options.from = null;
- }
-
- /* jshint newcap: false */
- var closed, runner = new $$AnimateRunner();
- return {
- start: run,
- end: run
- };
-
- function run() {
- $$rAF(function() {
- applyAnimationContents();
- if (!closed) {
- runner.complete();
- }
- closed = true;
- });
- return runner;
- }
-
- function applyAnimationContents() {
- if (options.addClass) {
- element.addClass(options.addClass);
- options.addClass = null;
- }
- if (options.removeClass) {
- element.removeClass(options.removeClass);
- options.removeClass = null;
- }
- if (options.to) {
- element.css(options.to);
- options.to = null;
- }
- }
- };
- }];
-};
-
-/* global stripHash: true */
-
-/**
- * ! This is a private undocumented service !
- *
- * @name $browser
- * @requires $log
- * @description
- * This object has two goals:
- *
- * - hide all the global state in the browser caused by the window object
- * - abstract away all the browser specific features and inconsistencies
- *
- * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`
- * service, which can be used for convenient testing of the application without the interaction with
- * the real browser apis.
- */
-/**
- * @param {object} window The global window object.
- * @param {object} document jQuery wrapped document.
- * @param {object} $log window.console or an object with the same interface.
- * @param {object} $sniffer $sniffer service
- */
-function Browser(window, document, $log, $sniffer) {
- var self = this,
- rawDocument = document[0],
- location = window.location,
- history = window.history,
- setTimeout = window.setTimeout,
- clearTimeout = window.clearTimeout,
- pendingDeferIds = {};
-
- self.isMock = false;
-
- var outstandingRequestCount = 0;
- var outstandingRequestCallbacks = [];
-
- // TODO(vojta): remove this temporary api
- self.$$completeOutstandingRequest = completeOutstandingRequest;
- self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; };
-
- /**
- * Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`
- * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.
- */
- function completeOutstandingRequest(fn) {
- try {
- fn.apply(null, sliceArgs(arguments, 1));
- } finally {
- outstandingRequestCount--;
- if (outstandingRequestCount === 0) {
- while (outstandingRequestCallbacks.length) {
- try {
- outstandingRequestCallbacks.pop()();
- } catch (e) {
- $log.error(e);
- }
- }
- }
- }
- }
-
- function getHash(url) {
- var index = url.indexOf('#');
- return index === -1 ? '' : url.substr(index);
- }
-
- /**
- * @private
- * Note: this method is used only by scenario runner
- * TODO(vojta): prefix this method with $$ ?
- * @param {function()} callback Function that will be called when no outstanding request
- */
- self.notifyWhenNoOutstandingRequests = function(callback) {
- if (outstandingRequestCount === 0) {
- callback();
- } else {
- outstandingRequestCallbacks.push(callback);
- }
- };
-
- //////////////////////////////////////////////////////////////
- // URL API
- //////////////////////////////////////////////////////////////
-
- var cachedState, lastHistoryState,
- lastBrowserUrl = location.href,
- baseElement = document.find('base'),
- pendingLocation = null;
-
- cacheState();
- lastHistoryState = cachedState;
-
- /**
- * @name $browser#url
- *
- * @description
- * GETTER:
- * Without any argument, this method just returns current value of location.href.
- *
- * SETTER:
- * With at least one argument, this method sets url to new value.
- * If html5 history api supported, pushState/replaceState is used, otherwise
- * location.href/location.replace is used.
- * Returns its own instance to allow chaining
- *
- * NOTE: this api is intended for use only by the $location service. Please use the
- * {@link ng.$location $location service} to change url.
- *
- * @param {string} url New url (when used as setter)
- * @param {boolean=} replace Should new url replace current history record?
- * @param {object=} state object to use with pushState/replaceState
- */
- self.url = function(url, replace, state) {
- // In modern browsers `history.state` is `null` by default; treating it separately
- // from `undefined` would cause `$browser.url('/foo')` to change `history.state`
- // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.
- if (isUndefined(state)) {
- state = null;
- }
-
- // Android Browser BFCache causes location, history reference to become stale.
- if (location !== window.location) location = window.location;
- if (history !== window.history) history = window.history;
-
- // setter
- if (url) {
- var sameState = lastHistoryState === state;
-
- // Don't change anything if previous and current URLs and states match. This also prevents
- // IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.
- // See https://github.com/angular/angular.js/commit/ffb2701
- if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {
- return self;
- }
- var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);
- lastBrowserUrl = url;
- lastHistoryState = state;
- // Don't use history API if only the hash changed
- // due to a bug in IE10/IE11 which leads
- // to not firing a `hashchange` nor `popstate` event
- // in some cases (see #9143).
- if ($sniffer.history && (!sameBase || !sameState)) {
- history[replace ? 'replaceState' : 'pushState'](state, '', url);
- cacheState();
- // Do the assignment again so that those two variables are referentially identical.
- lastHistoryState = cachedState;
- } else {
- if (!sameBase || pendingLocation) {
- pendingLocation = url;
- }
- if (replace) {
- location.replace(url);
- } else if (!sameBase) {
- location.href = url;
- } else {
- location.hash = getHash(url);
- }
- if (location.href !== url) {
- pendingLocation = url;
- }
- }
- return self;
- // getter
- } else {
- // - pendingLocation is needed as browsers don't allow to read out
- // the new location.href if a reload happened or if there is a bug like in iOS 9 (see
- // https://openradar.appspot.com/22186109).
- // - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172
- return pendingLocation || location.href.replace(/%27/g,"'");
- }
- };
-
- /**
- * @name $browser#state
- *
- * @description
- * This method is a getter.
- *
- * Return history.state or null if history.state is undefined.
- *
- * @returns {object} state
- */
- self.state = function() {
- return cachedState;
- };
-
- var urlChangeListeners = [],
- urlChangeInit = false;
-
- function cacheStateAndFireUrlChange() {
- pendingLocation = null;
- cacheState();
- fireUrlChange();
- }
-
- function getCurrentState() {
- try {
- return history.state;
- } catch (e) {
- // MSIE can reportedly throw when there is no state (UNCONFIRMED).
- }
- }
-
- // This variable should be used *only* inside the cacheState function.
- var lastCachedState = null;
- function cacheState() {
- // This should be the only place in $browser where `history.state` is read.
- cachedState = getCurrentState();
- cachedState = isUndefined(cachedState) ? null : cachedState;
-
- // Prevent callbacks fo fire twice if both hashchange & popstate were fired.
- if (equals(cachedState, lastCachedState)) {
- cachedState = lastCachedState;
- }
- lastCachedState = cachedState;
- }
-
- function fireUrlChange() {
- if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {
- return;
- }
-
- lastBrowserUrl = self.url();
- lastHistoryState = cachedState;
- forEach(urlChangeListeners, function(listener) {
- listener(self.url(), cachedState);
- });
- }
-
- /**
- * @name $browser#onUrlChange
- *
- * @description
- * Register callback function that will be called, when url changes.
- *
- * It's only called when the url is changed from outside of angular:
- * - user types different url into address bar
- * - user clicks on history (forward/back) button
- * - user clicks on a link
- *
- * It's not called when url is changed by $browser.url() method
- *
- * The listener gets called with new url as parameter.
- *
- * NOTE: this api is intended for use only by the $location service. Please use the
- * {@link ng.$location $location service} to monitor url changes in angular apps.
- *
- * @param {function(string)} listener Listener function to be called when url changes.
- * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
- */
- self.onUrlChange = function(callback) {
- // TODO(vojta): refactor to use node's syntax for events
- if (!urlChangeInit) {
- // We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)
- // don't fire popstate when user change the address bar and don't fire hashchange when url
- // changed by push/replaceState
-
- // html5 history api - popstate event
- if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange);
- // hashchange event
- jqLite(window).on('hashchange', cacheStateAndFireUrlChange);
-
- urlChangeInit = true;
- }
-
- urlChangeListeners.push(callback);
- return callback;
- };
-
- /**
- * @private
- * Remove popstate and hashchange handler from window.
- *
- * NOTE: this api is intended for use only by $rootScope.
- */
- self.$$applicationDestroyed = function() {
- jqLite(window).off('hashchange popstate', cacheStateAndFireUrlChange);
- };
-
- /**
- * Checks whether the url has changed outside of Angular.
- * Needs to be exported to be able to check for changes that have been done in sync,
- * as hashchange/popstate events fire in async.
- */
- self.$$checkUrlChange = fireUrlChange;
-
- //////////////////////////////////////////////////////////////
- // Misc API
- //////////////////////////////////////////////////////////////
-
- /**
- * @name $browser#baseHref
- *
- * @description
- * Returns current <base href>
- * (always relative - without domain)
- *
- * @returns {string} The current base href
- */
- self.baseHref = function() {
- var href = baseElement.attr('href');
- return href ? href.replace(/^(https?\:)?\/\/[^\/]*/, '') : '';
- };
-
- /**
- * @name $browser#defer
- * @param {function()} fn A function, who's execution should be deferred.
- * @param {number=} [delay=0] of milliseconds to defer the function execution.
- * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
- *
- * @description
- * Executes a fn asynchronously via `setTimeout(fn, delay)`.
- *
- * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
- * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed
- * via `$browser.defer.flush()`.
- *
- */
- self.defer = function(fn, delay) {
- var timeoutId;
- outstandingRequestCount++;
- timeoutId = setTimeout(function() {
- delete pendingDeferIds[timeoutId];
- completeOutstandingRequest(fn);
- }, delay || 0);
- pendingDeferIds[timeoutId] = true;
- return timeoutId;
- };
-
-
- /**
- * @name $browser#defer.cancel
- *
- * @description
- * Cancels a deferred task identified with `deferId`.
- *
- * @param {*} deferId Token returned by the `$browser.defer` function.
- * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
- * canceled.
- */
- self.defer.cancel = function(deferId) {
- if (pendingDeferIds[deferId]) {
- delete pendingDeferIds[deferId];
- clearTimeout(deferId);
- completeOutstandingRequest(noop);
- return true;
- }
- return false;
- };
-
-}
-
-function $BrowserProvider() {
- this.$get = ['$window', '$log', '$sniffer', '$document',
- function($window, $log, $sniffer, $document) {
- return new Browser($window, $document, $log, $sniffer);
- }];
-}
-
-/**
- * @ngdoc service
- * @name $cacheFactory
- *
- * @description
- * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to
- * them.
- *
- * ```js
- *
- * var cache = $cacheFactory('cacheId');
- * expect($cacheFactory.get('cacheId')).toBe(cache);
- * expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();
- *
- * cache.put("key", "value");
- * cache.put("another key", "another value");
- *
- * // We've specified no options on creation
- * expect(cache.info()).toEqual({id: 'cacheId', size: 2});
- *
- * ```
- *
- *
- * @param {string} cacheId Name or id of the newly created cache.
- * @param {object=} options Options object that specifies the cache behavior. Properties:
- *
- * - `{number=}` `capacity` — turns the cache into LRU cache.
- *
- * @returns {object} Newly created cache object with the following set of methods:
- *
- * - `{object}` `info()` — Returns id, size, and options of cache.
- * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns
- * it.
- * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.
- * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.
- * - `{void}` `removeAll()` — Removes all cached values.
- * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.
- *
- * @example
- <example module="cacheExampleApp">
- <file name="index.html">
- <div ng-controller="CacheController">
- <input ng-model="newCacheKey" placeholder="Key">
- <input ng-model="newCacheValue" placeholder="Value">
- <button ng-click="put(newCacheKey, newCacheValue)">Cache</button>
-
- <p ng-if="keys.length">Cached Values</p>
- <div ng-repeat="key in keys">
- <span ng-bind="key"></span>
- <span>: </span>
- <b ng-bind="cache.get(key)"></b>
- </div>
-
- <p>Cache Info</p>
- <div ng-repeat="(key, value) in cache.info()">
- <span ng-bind="key"></span>
- <span>: </span>
- <b ng-bind="value"></b>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('cacheExampleApp', []).
- controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {
- $scope.keys = [];
- $scope.cache = $cacheFactory('cacheId');
- $scope.put = function(key, value) {
- if (angular.isUndefined($scope.cache.get(key))) {
- $scope.keys.push(key);
- }
- $scope.cache.put(key, angular.isUndefined(value) ? null : value);
- };
- }]);
- </file>
- <file name="style.css">
- p {
- margin: 10px 0 3px;
- }
- </file>
- </example>
- */
-function $CacheFactoryProvider() {
-
- this.$get = function() {
- var caches = {};
-
- function cacheFactory(cacheId, options) {
- if (cacheId in caches) {
- throw minErr('$cacheFactory')('iid', "CacheId '{0}' is already taken!", cacheId);
- }
-
- var size = 0,
- stats = extend({}, options, {id: cacheId}),
- data = createMap(),
- capacity = (options && options.capacity) || Number.MAX_VALUE,
- lruHash = createMap(),
- freshEnd = null,
- staleEnd = null;
-
- /**
- * @ngdoc type
- * @name $cacheFactory.Cache
- *
- * @description
- * A cache object used to store and retrieve data, primarily used by
- * {@link $http $http} and the {@link ng.directive:script script} directive to cache
- * templates and other data.
- *
- * ```js
- * angular.module('superCache')
- * .factory('superCache', ['$cacheFactory', function($cacheFactory) {
- * return $cacheFactory('super-cache');
- * }]);
- * ```
- *
- * Example test:
- *
- * ```js
- * it('should behave like a cache', inject(function(superCache) {
- * superCache.put('key', 'value');
- * superCache.put('another key', 'another value');
- *
- * expect(superCache.info()).toEqual({
- * id: 'super-cache',
- * size: 2
- * });
- *
- * superCache.remove('another key');
- * expect(superCache.get('another key')).toBeUndefined();
- *
- * superCache.removeAll();
- * expect(superCache.info()).toEqual({
- * id: 'super-cache',
- * size: 0
- * });
- * }));
- * ```
- */
- return caches[cacheId] = {
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#put
- * @kind function
- *
- * @description
- * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be
- * retrieved later, and incrementing the size of the cache if the key was not already
- * present in the cache. If behaving like an LRU cache, it will also remove stale
- * entries from the set.
- *
- * It will not insert undefined values into the cache.
- *
- * @param {string} key the key under which the cached data is stored.
- * @param {*} value the value to store alongside the key. If it is undefined, the key
- * will not be stored.
- * @returns {*} the value stored.
- */
- put: function(key, value) {
- if (isUndefined(value)) return;
- if (capacity < Number.MAX_VALUE) {
- var lruEntry = lruHash[key] || (lruHash[key] = {key: key});
-
- refresh(lruEntry);
- }
-
- if (!(key in data)) size++;
- data[key] = value;
-
- if (size > capacity) {
- this.remove(staleEnd.key);
- }
-
- return value;
- },
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#get
- * @kind function
- *
- * @description
- * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.
- *
- * @param {string} key the key of the data to be retrieved
- * @returns {*} the value stored.
- */
- get: function(key) {
- if (capacity < Number.MAX_VALUE) {
- var lruEntry = lruHash[key];
-
- if (!lruEntry) return;
-
- refresh(lruEntry);
- }
-
- return data[key];
- },
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#remove
- * @kind function
- *
- * @description
- * Removes an entry from the {@link $cacheFactory.Cache Cache} object.
- *
- * @param {string} key the key of the entry to be removed
- */
- remove: function(key) {
- if (capacity < Number.MAX_VALUE) {
- var lruEntry = lruHash[key];
-
- if (!lruEntry) return;
-
- if (lruEntry == freshEnd) freshEnd = lruEntry.p;
- if (lruEntry == staleEnd) staleEnd = lruEntry.n;
- link(lruEntry.n,lruEntry.p);
-
- delete lruHash[key];
- }
-
- if (!(key in data)) return;
-
- delete data[key];
- size--;
- },
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#removeAll
- * @kind function
- *
- * @description
- * Clears the cache object of any entries.
- */
- removeAll: function() {
- data = createMap();
- size = 0;
- lruHash = createMap();
- freshEnd = staleEnd = null;
- },
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#destroy
- * @kind function
- *
- * @description
- * Destroys the {@link $cacheFactory.Cache Cache} object entirely,
- * removing it from the {@link $cacheFactory $cacheFactory} set.
- */
- destroy: function() {
- data = null;
- stats = null;
- lruHash = null;
- delete caches[cacheId];
- },
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory.Cache#info
- * @kind function
- *
- * @description
- * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.
- *
- * @returns {object} an object with the following properties:
- * <ul>
- * <li>**id**: the id of the cache instance</li>
- * <li>**size**: the number of entries kept in the cache instance</li>
- * <li>**...**: any additional properties from the options object when creating the
- * cache.</li>
- * </ul>
- */
- info: function() {
- return extend({}, stats, {size: size});
- }
- };
-
-
- /**
- * makes the `entry` the freshEnd of the LRU linked list
- */
- function refresh(entry) {
- if (entry != freshEnd) {
- if (!staleEnd) {
- staleEnd = entry;
- } else if (staleEnd == entry) {
- staleEnd = entry.n;
- }
-
- link(entry.n, entry.p);
- link(entry, freshEnd);
- freshEnd = entry;
- freshEnd.n = null;
- }
- }
-
-
- /**
- * bidirectionally links two entries of the LRU linked list
- */
- function link(nextEntry, prevEntry) {
- if (nextEntry != prevEntry) {
- if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
- if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
- }
- }
- }
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory#info
- *
- * @description
- * Get information about all the caches that have been created
- *
- * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`
- */
- cacheFactory.info = function() {
- var info = {};
- forEach(caches, function(cache, cacheId) {
- info[cacheId] = cache.info();
- });
- return info;
- };
-
-
- /**
- * @ngdoc method
- * @name $cacheFactory#get
- *
- * @description
- * Get access to a cache object by the `cacheId` used when it was created.
- *
- * @param {string} cacheId Name or id of a cache to access.
- * @returns {object} Cache object identified by the cacheId or undefined if no such cache.
- */
- cacheFactory.get = function(cacheId) {
- return caches[cacheId];
- };
-
-
- return cacheFactory;
- };
-}
-
-/**
- * @ngdoc service
- * @name $templateCache
- *
- * @description
- * The first time a template is used, it is loaded in the template cache for quick retrieval. You
- * can load templates directly into the cache in a `script` tag, or by consuming the
- * `$templateCache` service directly.
- *
- * Adding via the `script` tag:
- *
- * ```html
- * <script type="text/ng-template" id="templateId.html">
- * <p>This is the content of the template</p>
- * </script>
- * ```
- *
- * **Note:** the `script` tag containing the template does not need to be included in the `head` of
- * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE,
- * element with ng-app attribute), otherwise the template will be ignored.
- *
- * Adding via the `$templateCache` service:
- *
- * ```js
- * var myApp = angular.module('myApp', []);
- * myApp.run(function($templateCache) {
- * $templateCache.put('templateId.html', 'This is the content of the template');
- * });
- * ```
- *
- * To retrieve the template later, simply use it in your HTML:
- * ```html
- * <div ng-include=" 'templateId.html' "></div>
- * ```
- *
- * or get it via Javascript:
- * ```js
- * $templateCache.get('templateId.html')
- * ```
- *
- * See {@link ng.$cacheFactory $cacheFactory}.
- *
- */
-function $TemplateCacheProvider() {
- this.$get = ['$cacheFactory', function($cacheFactory) {
- return $cacheFactory('templates');
- }];
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables likes document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!
- *
- * DOM-related variables:
- *
- * - "node" - DOM Node
- * - "element" - DOM Element or Node
- * - "$node" or "$element" - jqLite-wrapped node or element
- *
- *
- * Compiler related stuff:
- *
- * - "linkFn" - linking fn of a single directive
- * - "nodeLinkFn" - function that aggregates all linking fns for a particular node
- * - "childLinkFn" - function that aggregates all linking fns for child nodes of a particular node
- * - "compositeLinkFn" - function that aggregates all linking fns for a compilation root (nodeList)
- */
-
-
-/**
- * @ngdoc service
- * @name $compile
- * @kind function
- *
- * @description
- * Compiles an HTML string or DOM into a template and produces a template function, which
- * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.
- *
- * The compilation is a process of walking the DOM tree and matching DOM elements to
- * {@link ng.$compileProvider#directive directives}.
- *
- * <div class="alert alert-warning">
- * **Note:** This document is an in-depth reference of all directive options.
- * For a gentle introduction to directives with examples of common use cases,
- * see the {@link guide/directive directive guide}.
- * </div>
- *
- * ## Comprehensive Directive API
- *
- * There are many different options for a directive.
- *
- * The difference resides in the return value of the factory function.
- * You can either return a "Directive Definition Object" (see below) that defines the directive properties,
- * or just the `postLink` function (all other properties will have the default values).
- *
- * <div class="alert alert-success">
- * **Best Practice:** It's recommended to use the "directive definition object" form.
- * </div>
- *
- * Here's an example directive declared with a Directive Definition Object:
- *
- * ```js
- * var myModule = angular.module(...);
- *
- * myModule.directive('directiveName', function factory(injectables) {
- * var directiveDefinitionObject = {
- * priority: 0,
- * template: '<div></div>', // or // function(tElement, tAttrs) { ... },
- * // or
- * // templateUrl: 'directive.html', // or // function(tElement, tAttrs) { ... },
- * transclude: false,
- * restrict: 'A',
- * templateNamespace: 'html',
- * scope: false,
- * controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
- * controllerAs: 'stringIdentifier',
- * bindToController: false,
- * require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],
- * compile: function compile(tElement, tAttrs, transclude) {
- * return {
- * pre: function preLink(scope, iElement, iAttrs, controller) { ... },
- * post: function postLink(scope, iElement, iAttrs, controller) { ... }
- * }
- * // or
- * // return function postLink( ... ) { ... }
- * },
- * // or
- * // link: {
- * // pre: function preLink(scope, iElement, iAttrs, controller) { ... },
- * // post: function postLink(scope, iElement, iAttrs, controller) { ... }
- * // }
- * // or
- * // link: function postLink( ... ) { ... }
- * };
- * return directiveDefinitionObject;
- * });
- * ```
- *
- * <div class="alert alert-warning">
- * **Note:** Any unspecified options will use the default value. You can see the default values below.
- * </div>
- *
- * Therefore the above can be simplified as:
- *
- * ```js
- * var myModule = angular.module(...);
- *
- * myModule.directive('directiveName', function factory(injectables) {
- * var directiveDefinitionObject = {
- * link: function postLink(scope, iElement, iAttrs) { ... }
- * };
- * return directiveDefinitionObject;
- * // or
- * // return function postLink(scope, iElement, iAttrs) { ... }
- * });
- * ```
- *
- *
- *
- * ### Directive Definition Object
- *
- * The directive definition object provides instructions to the {@link ng.$compile
- * compiler}. The attributes are:
- *
- * #### `multiElement`
- * When this property is set to true, the HTML compiler will collect DOM nodes between
- * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them
- * together as the directive elements. It is recommended that this feature be used on directives
- * which are not strictly behavioral (such as {@link ngClick}), and which
- * do not manipulate or replace child nodes (such as {@link ngInclude}).
- *
- * #### `priority`
- * When there are multiple directives defined on a single DOM element, sometimes it
- * is necessary to specify the order in which the directives are applied. The `priority` is used
- * to sort the directives before their `compile` functions get called. Priority is defined as a
- * number. Directives with greater numerical `priority` are compiled first. Pre-link functions
- * are also run in priority order, but post-link functions are run in reverse order. The order
- * of directives with the same priority is undefined. The default priority is `0`.
- *
- * #### `terminal`
- * If set to true then the current `priority` will be the last set of directives
- * which will execute (any directives at the current priority will still execute
- * as the order of execution on same `priority` is undefined). Note that expressions
- * and other directives used in the directive's template will also be excluded from execution.
- *
- * #### `scope`
- * The scope property can be `true`, an object or a falsy value:
- *
- * * **falsy:** No scope will be created for the directive. The directive will use its parent's scope.
- *
- * * **`true`:** A new child scope that prototypically inherits from its parent will be created for
- * the directive's element. If multiple directives on the same element request a new scope,
- * only one new scope is created. The new scope rule does not apply for the root of the template
- * since the root of the template always gets a new scope.
- *
- * * **`{...}` (an object hash):** A new "isolate" scope is created for the directive's element. The
- * 'isolate' scope differs from normal scope in that it does not prototypically inherit from its parent
- * scope. This is useful when creating reusable components, which should not accidentally read or modify
- * data in the parent scope.
- *
- * The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the
- * directive's element. These local properties are useful for aliasing values for templates. The keys in
- * the object hash map to the name of the property on the isolate scope; the values define how the property
- * is bound to the parent scope, via matching attributes on the directive's element:
- *
- * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is
- * always a string since DOM attributes are strings. If no `attr` name is specified then the
- * attribute name is assumed to be the same as the local name. Given `<my-component
- * my-attr="hello {{name}}">` and the isolate scope definition `scope: { localName:'@myAttr' }`,
- * the directive's scope property `localName` will reflect the interpolated value of `hello
- * {{name}}`. As the `name` attribute changes so will the `localName` property on the directive's
- * scope. The `name` is read from the parent scope (not the directive's scope).
- *
- * * `=` or `=attr` - set up a bidirectional binding between a local scope property and an expression
- * passed via the attribute `attr`. The expression is evaluated in the context of the parent scope.
- * If no `attr` name is specified then the attribute name is assumed to be the same as the local
- * name. Given `<my-component my-attr="parentModel">` and the isolate scope definition `scope: {
- * localModel: '=myAttr' }`, the property `localModel` on the directive's scope will reflect the
- * value of `parentModel` on the parent scope. Changes to `parentModel` will be reflected in
- * `localModel` and vice versa. Optional attributes should be marked as such with a question mark:
- * `=?` or `=?attr`. If the binding expression is non-assignable, or if the attribute isn't
- * optional and doesn't exist, an exception ({@link error/$compile/nonassign `$compile:nonassign`})
- * will be thrown upon discovering changes to the local value, since it will be impossible to sync
- * them back to the parent scope. By default, the {@link ng.$rootScope.Scope#$watch `$watch`}
- * method is used for tracking changes, and the equality check is based on object identity.
- * However, if an object literal or an array literal is passed as the binding expression, the
- * equality check is done by value (using the {@link angular.equals} function). It's also possible
- * to watch the evaluated value shallowly with {@link ng.$rootScope.Scope#$watchCollection
- * `$watchCollection`}: use `=*` or `=*attr` (`=*?` or `=*?attr` if the attribute is optional).
- *
- * * `<` or `<attr` - set up a one-way (one-directional) binding between a local scope property and an
- * expression passed via the attribute `attr`. The expression is evaluated in the context of the
- * parent scope. If no `attr` name is specified then the attribute name is assumed to be the same as the
- * local name. You can also make the binding optional by adding `?`: `<?` or `<?attr`.
- *
- * For example, given `<my-component my-attr="parentModel">` and directive definition of
- * `scope: { localModel:'<myAttr' }`, then the isolated scope property `localModel` will reflect the
- * value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected
- * in `localModel`, but changes in `localModel` will not reflect in `parentModel`. There are however
- * two caveats:
- * 1. one-way binding does not copy the value from the parent to the isolate scope, it simply
- * sets the same value. That means if your bound value is an object, changes to its properties
- * in the isolated scope will be reflected in the parent scope (because both reference the same object).
- * 2. one-way binding watches changes to the **identity** of the parent value. That means the
- * {@link ng.$rootScope.Scope#$watch `$watch`} on the parent value only fires if the reference
- * to the value has changed. In most cases, this should not be of concern, but can be important
- * to know if you one-way bind to an object, and then replace that object in the isolated scope.
- * If you now change a property of the object in your parent scope, the change will not be
- * propagated to the isolated scope, because the identity of the object on the parent scope
- * has not changed. Instead you must assign a new object.
- *
- * One-way binding is useful if you do not plan to propagate changes to your isolated scope bindings
- * back to the parent. However, it does not make this completely impossible.
- *
- * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope. If
- * no `attr` name is specified then the attribute name is assumed to be the same as the local name.
- * Given `<my-component my-attr="count = count + value">` and the isolate scope definition `scope: {
- * localFn:'&myAttr' }`, the isolate scope property `localFn` will point to a function wrapper for
- * the `count = count + value` expression. Often it's desirable to pass data from the isolated scope
- * via an expression to the parent scope. This can be done by passing a map of local variable names
- * and values into the expression wrapper fn. For example, if the expression is `increment(amount)`
- * then we can specify the amount value by calling the `localFn` as `localFn({amount: 22})`.
- *
- * In general it's possible to apply more than one directive to one element, but there might be limitations
- * depending on the type of scope required by the directives. The following points will help explain these limitations.
- * For simplicity only two directives are taken into account, but it is also applicable for several directives:
- *
- * * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope
- * * **child scope** + **no scope** => Both directives will share one single child scope
- * * **child scope** + **child scope** => Both directives will share one single child scope
- * * **isolated scope** + **no scope** => The isolated directive will use it's own created isolated scope. The other directive will use
- * its parent's scope
- * * **isolated scope** + **child scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives cannot
- * be applied to the same element.
- * * **isolated scope** + **isolated scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives
- * cannot be applied to the same element.
- *
- *
- * #### `bindToController`
- * This property is used to bind scope properties directly to the controller. It can be either
- * `true` or an object hash with the same format as the `scope` property. Additionally, a controller
- * alias must be set, either by using `controllerAs: 'myAlias'` or by specifying the alias in the controller
- * definition: `controller: 'myCtrl as myAlias'`.
- *
- * When an isolate scope is used for a directive (see above), `bindToController: true` will
- * allow a component to have its properties bound to the controller, rather than to scope.
- *
- * After the controller is instantiated, the initial values of the isolate scope bindings will be bound to the controller
- * properties. You can access these bindings once they have been initialized by providing a controller method called
- * `$onInit`, which is called after all the controllers on an element have been constructed and had their bindings
- * initialized.
- *
- * <div class="alert alert-warning">
- * **Deprecation warning:** although bindings for non-ES6 class controllers are currently
- * bound to `this` before the controller constructor is called, this use is now deprecated. Please place initialization
- * code that relies upon bindings inside a `$onInit` method on the controller, instead.
- * </div>
- *
- * It is also possible to set `bindToController` to an object hash with the same format as the `scope` property.
- * This will set up the scope bindings to the controller directly. Note that `scope` can still be used
- * to define which kind of scope is created. By default, no scope is created. Use `scope: {}` to create an isolate
- * scope (useful for component directives).
- *
- * If both `bindToController` and `scope` are defined and have object hashes, `bindToController` overrides `scope`.
- *
- *
- * #### `controller`
- * Controller constructor function. The controller is instantiated before the
- * pre-linking phase and can be accessed by other directives (see
- * `require` attribute). This allows the directives to communicate with each other and augment
- * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:
- *
- * * `$scope` - Current scope associated with the element
- * * `$element` - Current element
- * * `$attrs` - Current attributes object for the element
- * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:
- * `function([scope], cloneLinkingFn, futureParentElement, slotName)`:
- * * `scope`: (optional) override the scope.
- * * `cloneLinkingFn`: (optional) argument to create clones of the original transcluded content.
- * * `futureParentElement` (optional):
- * * defines the parent to which the `cloneLinkingFn` will add the cloned elements.
- * * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.
- * * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)
- * and when the `cloneLinkinFn` is passed,
- * as those elements need to created and cloned in a special way when they are defined outside their
- * usual containers (e.g. like `<svg>`).
- * * See also the `directive.templateNamespace` property.
- * * `slotName`: (optional) the name of the slot to transclude. If falsy (e.g. `null`, `undefined` or `''`)
- * then the default translusion is provided.
- * The `$transclude` function also has a method on it, `$transclude.isSlotFilled(slotName)`, which returns
- * `true` if the specified slot contains content (i.e. one or more DOM nodes).
- *
- * The controller can provide the following methods that act as life-cycle hooks:
- * * `$onInit` - Called on each controller after all the controllers on an element have been constructed and
- * had their bindings initialized (and before the pre &amp; post linking functions for the directives on
- * this element). This is a good place to put initialization code for your controller.
- *
- * #### `require`
- * Require another directive and inject its controller as the fourth argument to the linking function. The
- * `require` property can be a string, an array or an object:
- * * a **string** containing the name of the directive to pass to the linking function
- * * an **array** containing the names of directives to pass to the linking function. The argument passed to the
- * linking function will be an array of controllers in the same order as the names in the `require` property
- * * an **object** whose property values are the names of the directives to pass to the linking function. The argument
- * passed to the linking function will also be an object with matching keys, whose values will hold the corresponding
- * controllers.
- *
- * If the `require` property is an object and `bindToController` is truthy, then the required controllers are
- * bound to the controller using the keys of the `require` property. This binding occurs after all the controllers
- * have been constructed but before `$onInit` is called.
- * See the {@link $compileProvider#component} helper for an example of how this can be used.
- *
- * If no such required directive(s) can be found, or if the directive does not have a controller, then an error is
- * raised (unless no link function is specified and the required controllers are not being bound to the directive
- * controller, in which case error checking is skipped). The name can be prefixed with:
- *
- * * (no prefix) - Locate the required controller on the current element. Throw an error if not found.
- * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.
- * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.
- * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.
- * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass
- * `null` to the `link` fn if not found.
- * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass
- * `null` to the `link` fn if not found.
- *
- *
- * #### `controllerAs`
- * Identifier name for a reference to the controller in the directive's scope.
- * This allows the controller to be referenced from the directive template. This is especially
- * useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible
- * to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the
- * `controllerAs` reference might overwrite a property that already exists on the parent scope.
- *
- *
- * #### `restrict`
- * String of subset of `EACM` which restricts the directive to a specific directive
- * declaration style. If omitted, the defaults (elements and attributes) are used.
- *
- * * `E` - Element name (default): `<my-directive></my-directive>`
- * * `A` - Attribute (default): `<div my-directive="exp"></div>`
- * * `C` - Class: `<div class="my-directive: exp;"></div>`
- * * `M` - Comment: `<!-- directive: my-directive exp -->`
- *
- *
- * #### `templateNamespace`
- * String representing the document type used by the markup in the template.
- * AngularJS needs this information as those elements need to be created and cloned
- * in a special way when they are defined outside their usual containers like `<svg>` and `<math>`.
- *
- * * `html` - All root nodes in the template are HTML. Root nodes may also be
- * top-level elements such as `<svg>` or `<math>`.
- * * `svg` - The root nodes in the template are SVG elements (excluding `<math>`).
- * * `math` - The root nodes in the template are MathML elements (excluding `<svg>`).
- *
- * If no `templateNamespace` is specified, then the namespace is considered to be `html`.
- *
- * #### `template`
- * HTML markup that may:
- * * Replace the contents of the directive's element (default).
- * * Replace the directive's element itself (if `replace` is true - DEPRECATED).
- * * Wrap the contents of the directive's element (if `transclude` is true).
- *
- * Value may be:
- *
- * * A string. For example `<div red-on-hover>{{delete_str}}</div>`.
- * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`
- * function api below) and returns a string value.
- *
- *
- * #### `templateUrl`
- * This is similar to `template` but the template is loaded from the specified URL, asynchronously.
- *
- * Because template loading is asynchronous the compiler will suspend compilation of directives on that element
- * for later when the template has been resolved. In the meantime it will continue to compile and link
- * sibling and parent elements as though this element had not contained any directives.
- *
- * The compiler does not suspend the entire compilation to wait for templates to be loaded because this
- * would result in the whole app "stalling" until all templates are loaded asynchronously - even in the
- * case when only one deeply nested directive has `templateUrl`.
- *
- * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}
- *
- * You can specify `templateUrl` as a string representing the URL or as a function which takes two
- * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns
- * a string value representing the url. In either case, the template URL is passed through {@link
- * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.
- *
- *
- * #### `replace` ([*DEPRECATED*!], will be removed in next major release - i.e. v2.0)
- * specify what the template should replace. Defaults to `false`.
- *
- * * `true` - the template will replace the directive's element.
- * * `false` - the template will replace the contents of the directive's element.
- *
- * The replacement process migrates all of the attributes / classes from the old element to the new
- * one. See the {@link guide/directive#template-expanding-directive
- * Directives Guide} for an example.
- *
- * There are very few scenarios where element replacement is required for the application function,
- * the main one being reusable custom components that are used within SVG contexts
- * (because SVG doesn't work with custom elements in the DOM tree).
- *
- * #### `transclude`
- * Extract the contents of the element where the directive appears and make it available to the directive.
- * The contents are compiled and provided to the directive as a **transclusion function**. See the
- * {@link $compile#transclusion Transclusion} section below.
- *
- *
- * #### `compile`
- *
- * ```js
- * function compile(tElement, tAttrs, transclude) { ... }
- * ```
- *
- * The compile function deals with transforming the template DOM. Since most directives do not do
- * template transformation, it is not used often. The compile function takes the following arguments:
- *
- * * `tElement` - template element - The element where the directive has been declared. It is
- * safe to do template transformation on the element and child elements only.
- *
- * * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared
- * between all directive compile functions.
- *
- * * `transclude` - [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`
- *
- * <div class="alert alert-warning">
- * **Note:** The template instance and the link instance may be different objects if the template has
- * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that
- * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration
- * should be done in a linking function rather than in a compile function.
- * </div>
-
- * <div class="alert alert-warning">
- * **Note:** The compile function cannot handle directives that recursively use themselves in their
- * own templates or compile functions. Compiling these directives results in an infinite loop and
- * stack overflow errors.
- *
- * This can be avoided by manually using $compile in the postLink function to imperatively compile
- * a directive's template instead of relying on automatic template compilation via `template` or
- * `templateUrl` declaration or manual compilation inside the compile function.
- * </div>
- *
- * <div class="alert alert-danger">
- * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it
- * e.g. does not know about the right outer scope. Please use the transclude function that is passed
- * to the link function instead.
- * </div>
-
- * A compile function can have a return value which can be either a function or an object.
- *
- * * returning a (post-link) function - is equivalent to registering the linking function via the
- * `link` property of the config object when the compile function is empty.
- *
- * * returning an object with function(s) registered via `pre` and `post` properties - allows you to
- * control when a linking function should be called during the linking phase. See info about
- * pre-linking and post-linking functions below.
- *
- *
- * #### `link`
- * This property is used only if the `compile` property is not defined.
- *
- * ```js
- * function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }
- * ```
- *
- * The link function is responsible for registering DOM listeners as well as updating the DOM. It is
- * executed after the template has been cloned. This is where most of the directive logic will be
- * put.
- *
- * * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the
- * directive for registering {@link ng.$rootScope.Scope#$watch watches}.
- *
- * * `iElement` - instance element - The element where the directive is to be used. It is safe to
- * manipulate the children of the element only in `postLink` function since the children have
- * already been linked.
- *
- * * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared
- * between all directive linking functions.
- *
- * * `controller` - the directive's required controller instance(s) - Instances are shared
- * among all directives, which allows the directives to use the controllers as a communication
- * channel. The exact value depends on the directive's `require` property:
- * * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one
- * * `string`: the controller instance
- * * `array`: array of controller instances
- *
- * If a required controller cannot be found, and it is optional, the instance is `null`,
- * otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.
- *
- * Note that you can also require the directive's own controller - it will be made available like
- * any other controller.
- *
- * * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.
- * This is the same as the `$transclude`
- * parameter of directive controllers, see there for details.
- * `function([scope], cloneLinkingFn, futureParentElement)`.
- *
- * #### Pre-linking function
- *
- * Executed before the child elements are linked. Not safe to do DOM transformation since the
- * compiler linking function will fail to locate the correct elements for linking.
- *
- * #### Post-linking function
- *
- * Executed after the child elements are linked.
- *
- * Note that child elements that contain `templateUrl` directives will not have been compiled
- * and linked since they are waiting for their template to load asynchronously and their own
- * compilation and linking has been suspended until that occurs.
- *
- * It is safe to do DOM transformation in the post-linking function on elements that are not waiting
- * for their async templates to be resolved.
- *
- *
- * ### Transclusion
- *
- * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and
- * copying them to another part of the DOM, while maintaining their connection to the original AngularJS
- * scope from where they were taken.
- *
- * Transclusion is used (often with {@link ngTransclude}) to insert the
- * original contents of a directive's element into a specified place in the template of the directive.
- * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded
- * content has access to the properties on the scope from which it was taken, even if the directive
- * has isolated scope.
- * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.
- *
- * This makes it possible for the widget to have private state for its template, while the transcluded
- * content has access to its originating scope.
- *
- * <div class="alert alert-warning">
- * **Note:** When testing an element transclude directive you must not place the directive at the root of the
- * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives
- * Testing Transclusion Directives}.
- * </div>
- *
- * There are three kinds of transclusion depending upon whether you want to transclude just the contents of the
- * directive's element, the entire element or multiple parts of the element contents:
- *
- * * `true` - transclude the content (i.e. the child nodes) of the directive's element.
- * * `'element'` - transclude the whole of the directive's element including any directives on this
- * element that defined at a lower priority than this directive. When used, the `template`
- * property is ignored.
- * * **`{...}` (an object hash):** - map elements of the content onto transclusion "slots" in the template.
- *
- * **Mult-slot transclusion** is declared by providing an object for the `transclude` property.
- *
- * This object is a map where the keys are the name of the slot to fill and the value is an element selector
- * used to match the HTML to the slot. The element selector should be in normalized form (e.g. `myElement`)
- * and will match the standard element variants (e.g. `my-element`, `my:element`, `data-my-element`, etc).
- *
- * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
- *
- * If the element selector is prefixed with a `?` then that slot is optional.
- *
- * For example, the transclude object `{ slotA: '?myCustomElement' }` maps `<my-custom-element>` elements to
- * the `slotA` slot, which can be accessed via the `$transclude` function or via the {@link ngTransclude} directive.
- *
- * Slots that are not marked as optional (`?`) will trigger a compile time error if there are no matching elements
- * in the transclude content. If you wish to know if an optional slot was filled with content, then you can call
- * `$transclude.isSlotFilled(slotName)` on the transclude function passed to the directive's link function and
- * injectable into the directive's controller.
- *
- *
- * #### Transclusion Functions
- *
- * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion
- * function** to the directive's `link` function and `controller`. This transclusion function is a special
- * **linking function** that will return the compiled contents linked to a new transclusion scope.
- *
- * <div class="alert alert-info">
- * If you are just using {@link ngTransclude} then you don't need to worry about this function, since
- * ngTransclude will deal with it for us.
- * </div>
- *
- * If you want to manually control the insertion and removal of the transcluded content in your directive
- * then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery
- * object that contains the compiled DOM, which is linked to the correct transclusion scope.
- *
- * When you call a transclusion function you can pass in a **clone attach function**. This function accepts
- * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded
- * content and the `scope` is the newly created transclusion scope, to which the clone is bound.
- *
- * <div class="alert alert-info">
- * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a transclude function
- * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.
- * </div>
- *
- * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone
- * attach function**:
- *
- * ```js
- * var transcludedContent, transclusionScope;
- *
- * $transclude(function(clone, scope) {
- * element.append(clone);
- * transcludedContent = clone;
- * transclusionScope = scope;
- * });
- * ```
- *
- * Later, if you want to remove the transcluded content from your DOM then you should also destroy the
- * associated transclusion scope:
- *
- * ```js
- * transcludedContent.remove();
- * transclusionScope.$destroy();
- * ```
- *
- * <div class="alert alert-info">
- * **Best Practice**: if you intend to add and remove transcluded content manually in your directive
- * (by calling the transclude function to get the DOM and calling `element.remove()` to remove it),
- * then you are also responsible for calling `$destroy` on the transclusion scope.
- * </div>
- *
- * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}
- * automatically destroy their transcluded clones as necessary so you do not need to worry about this if
- * you are simply using {@link ngTransclude} to inject the transclusion into your directive.
- *
- *
- * #### Transclusion Scopes
- *
- * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion
- * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed
- * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it
- * was taken.
- *
- * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look
- * like this:
- *
- * ```html
- * <div ng-app>
- * <div isolate>
- * <div transclusion>
- * </div>
- * </div>
- * </div>
- * ```
- *
- * The `$parent` scope hierarchy will look like this:
- *
- ```
- - $rootScope
- - isolate
- - transclusion
- ```
- *
- * but the scopes will inherit prototypically from different scopes to their `$parent`.
- *
- ```
- - $rootScope
- - transclusion
- - isolate
- ```
- *
- *
- * ### Attributes
- *
- * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the
- * `link()` or `compile()` functions. It has a variety of uses.
- *
- * * *Accessing normalized attribute names:* Directives like 'ngBind' can be expressed in many ways:
- * 'ng:bind', `data-ng-bind`, or 'x-ng-bind'. The attributes object allows for normalized access
- * to the attributes.
- *
- * * *Directive inter-communication:* All directives share the same instance of the attributes
- * object which allows the directives to use the attributes object as inter directive
- * communication.
- *
- * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object
- * allowing other directives to read the interpolated value.
- *
- * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes
- * that contain interpolation (e.g. `src="{{bar}}"`). Not only is this very efficient but it's also
- * the only way to easily get the actual value because during the linking phase the interpolation
- * hasn't been evaluated yet and so the value is at this time set to `undefined`.
- *
- * ```js
- * function linkingFn(scope, elm, attrs, ctrl) {
- * // get the attribute value
- * console.log(attrs.ngModel);
- *
- * // change the attribute
- * attrs.$set('ngModel', 'new value');
- *
- * // observe changes to interpolated attribute
- * attrs.$observe('ngModel', function(value) {
- * console.log('ngModel has changed value to ' + value);
- * });
- * }
- * ```
- *
- * ## Example
- *
- * <div class="alert alert-warning">
- * **Note**: Typically directives are registered with `module.directive`. The example below is
- * to illustrate how `$compile` works.
- * </div>
- *
- <example module="compileExample">
- <file name="index.html">
- <script>
- angular.module('compileExample', [], function($compileProvider) {
- // configure new 'compile' directive by passing a directive
- // factory function. The factory function injects the '$compile'
- $compileProvider.directive('compile', function($compile) {
- // directive factory creates a link function
- return function(scope, element, attrs) {
- scope.$watch(
- function(scope) {
- // watch the 'compile' expression for changes
- return scope.$eval(attrs.compile);
- },
- function(value) {
- // when the 'compile' expression changes
- // assign it into the current DOM
- element.html(value);
-
- // compile the new DOM and link it to the current
- // scope.
- // NOTE: we only compile .childNodes so that
- // we don't get into infinite loop compiling ourselves
- $compile(element.contents())(scope);
- }
- );
- };
- });
- })
- .controller('GreeterController', ['$scope', function($scope) {
- $scope.name = 'Angular';
- $scope.html = 'Hello {{name}}';
- }]);
- </script>
- <div ng-controller="GreeterController">
- <input ng-model="name"> <br/>
- <textarea ng-model="html"></textarea> <br/>
- <div compile="html"></div>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should auto compile', function() {
- var textarea = $('textarea');
- var output = $('div[compile]');
- // The initial state reads 'Hello Angular'.
- expect(output.getText()).toBe('Hello Angular');
- textarea.clear();
- textarea.sendKeys('{{name}}!');
- expect(output.getText()).toBe('Angular!');
- });
- </file>
- </example>
-
- *
- *
- * @param {string|DOMElement} element Element or HTML string to compile into a template function.
- * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.
- *
- * <div class="alert alert-danger">
- * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it
- * e.g. will not use the right outer scope. Please pass the transclude function as a
- * `parentBoundTranscludeFn` to the link function instead.
- * </div>
- *
- * @param {number} maxPriority only apply directives lower than given priority (Only effects the
- * root element(s), not their children)
- * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template
- * (a DOM element/tree) to a scope. Where:
- *
- * * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.
- * * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the
- * `template` and call the `cloneAttachFn` function allowing the caller to attach the
- * cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is
- * called as: <br/> `cloneAttachFn(clonedElement, scope)` where:
- *
- * * `clonedElement` - is a clone of the original `element` passed into the compiler.
- * * `scope` - is the current scope with which the linking function is working with.
- *
- * * `options` - An optional object hash with linking options. If `options` is provided, then the following
- * keys may be used to control linking behavior:
- *
- * * `parentBoundTranscludeFn` - the transclude function made available to
- * directives; if given, it will be passed through to the link functions of
- * directives found in `element` during compilation.
- * * `transcludeControllers` - an object hash with keys that map controller names
- * to a hash with the key `instance`, which maps to the controller instance;
- * if given, it will make the controllers available to directives on the compileNode:
- * ```
- * {
- * parent: {
- * instance: parentControllerInstance
- * }
- * }
- * ```
- * * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add
- * the cloned elements; only needed for transcludes that are allowed to contain non html
- * elements (e.g. SVG elements). See also the directive.controller property.
- *
- * Calling the linking function returns the element of the template. It is either the original
- * element passed in, or the clone of the element if the `cloneAttachFn` is provided.
- *
- * After linking the view is not updated until after a call to $digest which typically is done by
- * Angular automatically.
- *
- * If you need access to the bound view, there are two ways to do it:
- *
- * - If you are not asking the linking function to clone the template, create the DOM element(s)
- * before you send them to the compiler and keep this reference around.
- * ```js
- * var element = $compile('<p>{{total}}</p>')(scope);
- * ```
- *
- * - if on the other hand, you need the element to be cloned, the view reference from the original
- * example would not point to the clone, but rather to the original template that was cloned. In
- * this case, you can access the clone via the cloneAttachFn:
- * ```js
- * var templateElement = angular.element('<p>{{total}}</p>'),
- * scope = ....;
- *
- * var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {
- * //attach the clone to DOM document at the right place
- * });
- *
- * //now we have reference to the cloned DOM via `clonedElement`
- * ```
- *
- *
- * For information on how the compiler works, see the
- * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.
- */
-
-var $compileMinErr = minErr('$compile');
-
-/**
- * @ngdoc provider
- * @name $compileProvider
- *
- * @description
- */
-$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];
-function $CompileProvider($provide, $$sanitizeUriProvider) {
- var hasDirectives = {},
- Suffix = 'Directive',
- COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\w\-]+)\s+(.*)$/,
- CLASS_DIRECTIVE_REGEXP = /(([\w\-]+)(?:\:([^;]+))?;?)/,
- ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'),
- REQUIRE_PREFIX_REGEXP = /^(?:(\^\^?)?(\?)?(\^\^?)?)?/;
-
- // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes
- // The assumption is that future DOM event attribute names will begin with
- // 'on' and be composed of only English letters.
- var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;
-
- function parseIsolateBindings(scope, directiveName, isController) {
- var LOCAL_REGEXP = /^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/;
-
- var bindings = {};
-
- forEach(scope, function(definition, scopeName) {
- var match = definition.match(LOCAL_REGEXP);
-
- if (!match) {
- throw $compileMinErr('iscp',
- "Invalid {3} for directive '{0}'." +
- " Definition: {... {1}: '{2}' ...}",
- directiveName, scopeName, definition,
- (isController ? "controller bindings definition" :
- "isolate scope definition"));
- }
-
- bindings[scopeName] = {
- mode: match[1][0],
- collection: match[2] === '*',
- optional: match[3] === '?',
- attrName: match[4] || scopeName
- };
- });
-
- return bindings;
- }
-
- function parseDirectiveBindings(directive, directiveName) {
- var bindings = {
- isolateScope: null,
- bindToController: null
- };
- if (isObject(directive.scope)) {
- if (directive.bindToController === true) {
- bindings.bindToController = parseIsolateBindings(directive.scope,
- directiveName, true);
- bindings.isolateScope = {};
- } else {
- bindings.isolateScope = parseIsolateBindings(directive.scope,
- directiveName, false);
- }
- }
- if (isObject(directive.bindToController)) {
- bindings.bindToController =
- parseIsolateBindings(directive.bindToController, directiveName, true);
- }
- if (isObject(bindings.bindToController)) {
- var controller = directive.controller;
- var controllerAs = directive.controllerAs;
- if (!controller) {
- // There is no controller, there may or may not be a controllerAs property
- throw $compileMinErr('noctrl',
- "Cannot bind to controller without directive '{0}'s controller.",
- directiveName);
- } else if (!identifierForController(controller, controllerAs)) {
- // There is a controller, but no identifier or controllerAs property
- throw $compileMinErr('noident',
- "Cannot bind to controller without identifier for directive '{0}'.",
- directiveName);
- }
- }
- return bindings;
- }
-
- function assertValidDirectiveName(name) {
- var letter = name.charAt(0);
- if (!letter || letter !== lowercase(letter)) {
- throw $compileMinErr('baddir', "Directive name '{0}' is invalid. The first character must be a lowercase letter", name);
- }
- if (name !== name.trim()) {
- throw $compileMinErr('baddir',
- "Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",
- name);
- }
- }
-
- /**
- * @ngdoc method
- * @name $compileProvider#directive
- * @kind function
- *
- * @description
- * Register a new directive with the compiler.
- *
- * @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which
- * will match as <code>ng-bind</code>), or an object map of directives where the keys are the
- * names and the values are the factories.
- * @param {Function|Array} directiveFactory An injectable directive factory function. See the
- * {@link guide/directive directive guide} and the {@link $compile compile API} for more info.
- * @returns {ng.$compileProvider} Self for chaining.
- */
- this.directive = function registerDirective(name, directiveFactory) {
- assertNotHasOwnProperty(name, 'directive');
- if (isString(name)) {
- assertValidDirectiveName(name);
- assertArg(directiveFactory, 'directiveFactory');
- if (!hasDirectives.hasOwnProperty(name)) {
- hasDirectives[name] = [];
- $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',
- function($injector, $exceptionHandler) {
- var directives = [];
- forEach(hasDirectives[name], function(directiveFactory, index) {
- try {
- var directive = $injector.invoke(directiveFactory);
- if (isFunction(directive)) {
- directive = { compile: valueFn(directive) };
- } else if (!directive.compile && directive.link) {
- directive.compile = valueFn(directive.link);
- }
- directive.priority = directive.priority || 0;
- directive.index = index;
- directive.name = directive.name || name;
- directive.require = directive.require || (directive.controller && directive.name);
- directive.restrict = directive.restrict || 'EA';
- var bindings = directive.$$bindings =
- parseDirectiveBindings(directive, directive.name);
- if (isObject(bindings.isolateScope)) {
- directive.$$isolateBindings = bindings.isolateScope;
- }
- directive.$$moduleName = directiveFactory.$$moduleName;
- directives.push(directive);
- } catch (e) {
- $exceptionHandler(e);
- }
- });
- return directives;
- }]);
- }
- hasDirectives[name].push(directiveFactory);
- } else {
- forEach(name, reverseParams(registerDirective));
- }
- return this;
- };
-
- /**
- * @ngdoc method
- * @name $compileProvider#component
- * @module ng
- * @param {string} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`)
- * @param {Object} options Component definition object (a simplified
- * {@link ng.$compile#directive-definition-object directive definition object}),
- * with the following properties (all optional):
- *
- * - `controller` – `{(string|function()=}` – controller constructor function that should be
- * associated with newly created scope or the name of a {@link ng.$compile#-controller-
- * registered controller} if passed as a string. An empty `noop` function by default.
- * - `controllerAs` – `{string=}` – identifier name for to reference the controller in the component's scope.
- * If present, the controller will be published to scope under the `controllerAs` name.
- * If not present, this will default to be `$ctrl`.
- * - `template` – `{string=|function()=}` – html template as a string or a function that
- * returns an html template as a string which should be used as the contents of this component.
- * Empty string by default.
- *
- * If `template` is a function, then it is {@link auto.$injector#invoke injected} with
- * the following locals:
- *
- * - `$element` - Current element
- * - `$attrs` - Current attributes object for the element
- *
- * - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html
- * template that should be used as the contents of this component.
- *
- * If `templateUrl` is a function, then it is {@link auto.$injector#invoke injected} with
- * the following locals:
- *
- * - `$element` - Current element
- * - `$attrs` - Current attributes object for the element
- *
- * - `bindings` – `{object=}` – defines bindings between DOM attributes and component properties.
- * Component properties are always bound to the component controller and not to the scope.
- * See {@link ng.$compile#-bindtocontroller- `bindToController`}.
- * - `transclude` – `{boolean=}` – whether {@link $compile#transclusion content transclusion} is enabled.
- * Disabled by default.
- * - `$...` – `{function()=}` – additional annotations to provide to the directive factory function.
- *
- * @returns {ng.$compileProvider} the compile provider itself, for chaining of function calls.
- * @description
- * Register a **component definition** with the compiler. This is a shorthand for registering a special
- * type of directive, which represents a self-contained UI component in your application. Such components
- * are always isolated (i.e. `scope: {}`) and are always restricted to elements (i.e. `restrict: 'E'`).
- *
- * Component definitions are very simple and do not require as much configuration as defining general
- * directives. Component definitions usually consist only of a template and a controller backing it.
- *
- * In order to make the definition easier, components enforce best practices like use of `controllerAs`,
- * `bindToController`. They always have **isolate scope** and are restricted to elements.
- *
- * Here are a few examples of how you would usually define components:
- *
- * ```js
- * var myMod = angular.module(...);
- * myMod.component('myComp', {
- * template: '<div>My name is {{$ctrl.name}}</div>',
- * controller: function() {
- * this.name = 'shahar';
- * }
- * });
- *
- * myMod.component('myComp', {
- * template: '<div>My name is {{$ctrl.name}}</div>',
- * bindings: {name: '@'}
- * });
- *
- * myMod.component('myComp', {
- * templateUrl: 'views/my-comp.html',
- * controller: 'MyCtrl as ctrl',
- * bindings: {name: '@'}
- * });
- *
- * ```
- * For more examples, and an in-depth guide, see the {@link guide/component component guide}.
- *
- * <br />
- * See also {@link ng.$compileProvider#directive $compileProvider.directive()}.
- */
- this.component = function registerComponent(name, options) {
- var controller = options.controller || function() {};
-
- function factory($injector) {
- function makeInjectable(fn) {
- if (isFunction(fn) || isArray(fn)) {
- return function(tElement, tAttrs) {
- return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});
- };
- } else {
- return fn;
- }
- }
-
- var template = (!options.template && !options.templateUrl ? '' : options.template);
- return {
- controller: controller,
- controllerAs: identifierForController(options.controller) || options.controllerAs || '$ctrl',
- template: makeInjectable(template),
- templateUrl: makeInjectable(options.templateUrl),
- transclude: options.transclude,
- scope: {},
- bindToController: options.bindings || {},
- restrict: 'E',
- require: options.require
- };
- }
-
- // Copy any annotation properties (starting with $) over to the factory function
- // These could be used by libraries such as the new component router
- forEach(options, function(val, key) {
- if (key.charAt(0) === '$') {
- factory[key] = val;
- }
- });
-
- factory.$inject = ['$injector'];
-
- return this.directive(name, factory);
- };
-
-
- /**
- * @ngdoc method
- * @name $compileProvider#aHrefSanitizationWhitelist
- * @kind function
- *
- * @description
- * Retrieves or overrides the default regular expression that is used for whitelisting of safe
- * urls during a[href] sanitization.
- *
- * The sanitization is a security measure aimed at preventing XSS attacks via html links.
- *
- * Any url about to be assigned to a[href] via data-binding is first normalized and turned into
- * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`
- * regular expression. If a match is found, the original url is written into the dom. Otherwise,
- * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
- *
- * @param {RegExp=} regexp New regexp to whitelist urls with.
- * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
- * chaining otherwise.
- */
- this.aHrefSanitizationWhitelist = function(regexp) {
- if (isDefined(regexp)) {
- $$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp);
- return this;
- } else {
- return $$sanitizeUriProvider.aHrefSanitizationWhitelist();
- }
- };
-
-
- /**
- * @ngdoc method
- * @name $compileProvider#imgSrcSanitizationWhitelist
- * @kind function
- *
- * @description
- * Retrieves or overrides the default regular expression that is used for whitelisting of safe
- * urls during img[src] sanitization.
- *
- * The sanitization is a security measure aimed at prevent XSS attacks via html links.
- *
- * Any url about to be assigned to img[src] via data-binding is first normalized and turned into
- * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`
- * regular expression. If a match is found, the original url is written into the dom. Otherwise,
- * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
- *
- * @param {RegExp=} regexp New regexp to whitelist urls with.
- * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
- * chaining otherwise.
- */
- this.imgSrcSanitizationWhitelist = function(regexp) {
- if (isDefined(regexp)) {
- $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp);
- return this;
- } else {
- return $$sanitizeUriProvider.imgSrcSanitizationWhitelist();
- }
- };
-
- /**
- * @ngdoc method
- * @name $compileProvider#debugInfoEnabled
- *
- * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the
- * current debugInfoEnabled state
- * @returns {*} current value if used as getter or itself (chaining) if used as setter
- *
- * @kind function
- *
- * @description
- * Call this method to enable/disable various debug runtime information in the compiler such as adding
- * binding information and a reference to the current scope on to DOM elements.
- * If enabled, the compiler will add the following to DOM elements that have been bound to the scope
- * * `ng-binding` CSS class
- * * `$binding` data property containing an array of the binding expressions
- *
- * You may want to disable this in production for a significant performance boost. See
- * {@link guide/production#disabling-debug-data Disabling Debug Data} for more.
- *
- * The default value is true.
- */
- var debugInfoEnabled = true;
- this.debugInfoEnabled = function(enabled) {
- if (isDefined(enabled)) {
- debugInfoEnabled = enabled;
- return this;
- }
- return debugInfoEnabled;
- };
-
- this.$get = [
- '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse',
- '$controller', '$rootScope', '$sce', '$animate', '$$sanitizeUri',
- function($injector, $interpolate, $exceptionHandler, $templateRequest, $parse,
- $controller, $rootScope, $sce, $animate, $$sanitizeUri) {
-
- var SIMPLE_ATTR_NAME = /^\w/;
- var specialAttrHolder = document.createElement('div');
- var Attributes = function(element, attributesToCopy) {
- if (attributesToCopy) {
- var keys = Object.keys(attributesToCopy);
- var i, l, key;
-
- for (i = 0, l = keys.length; i < l; i++) {
- key = keys[i];
- this[key] = attributesToCopy[key];
- }
- } else {
- this.$attr = {};
- }
-
- this.$$element = element;
- };
-
- Attributes.prototype = {
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$normalize
- * @kind function
- *
- * @description
- * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or
- * `data-`) to its normalized, camelCase form.
- *
- * Also there is special case for Moz prefix starting with upper case letter.
- *
- * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
- *
- * @param {string} name Name to normalize
- */
- $normalize: directiveNormalize,
-
-
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$addClass
- * @kind function
- *
- * @description
- * Adds the CSS class value specified by the classVal parameter to the element. If animations
- * are enabled then an animation will be triggered for the class addition.
- *
- * @param {string} classVal The className value that will be added to the element
- */
- $addClass: function(classVal) {
- if (classVal && classVal.length > 0) {
- $animate.addClass(this.$$element, classVal);
- }
- },
-
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$removeClass
- * @kind function
- *
- * @description
- * Removes the CSS class value specified by the classVal parameter from the element. If
- * animations are enabled then an animation will be triggered for the class removal.
- *
- * @param {string} classVal The className value that will be removed from the element
- */
- $removeClass: function(classVal) {
- if (classVal && classVal.length > 0) {
- $animate.removeClass(this.$$element, classVal);
- }
- },
-
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$updateClass
- * @kind function
- *
- * @description
- * Adds and removes the appropriate CSS class values to the element based on the difference
- * between the new and old CSS class values (specified as newClasses and oldClasses).
- *
- * @param {string} newClasses The current CSS className value
- * @param {string} oldClasses The former CSS className value
- */
- $updateClass: function(newClasses, oldClasses) {
- var toAdd = tokenDifference(newClasses, oldClasses);
- if (toAdd && toAdd.length) {
- $animate.addClass(this.$$element, toAdd);
- }
-
- var toRemove = tokenDifference(oldClasses, newClasses);
- if (toRemove && toRemove.length) {
- $animate.removeClass(this.$$element, toRemove);
- }
- },
-
- /**
- * Set a normalized attribute on the element in a way such that all directives
- * can share the attribute. This function properly handles boolean attributes.
- * @param {string} key Normalized key. (ie ngAttribute)
- * @param {string|boolean} value The value to set. If `null` attribute will be deleted.
- * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.
- * Defaults to true.
- * @param {string=} attrName Optional none normalized name. Defaults to key.
- */
- $set: function(key, value, writeAttr, attrName) {
- // TODO: decide whether or not to throw an error if "class"
- //is set through this function since it may cause $updateClass to
- //become unstable.
-
- var node = this.$$element[0],
- booleanKey = getBooleanAttrName(node, key),
- aliasedKey = getAliasedAttrName(key),
- observer = key,
- nodeName;
-
- if (booleanKey) {
- this.$$element.prop(key, value);
- attrName = booleanKey;
- } else if (aliasedKey) {
- this[aliasedKey] = value;
- observer = aliasedKey;
- }
-
- this[key] = value;
-
- // translate normalized key to actual key
- if (attrName) {
- this.$attr[key] = attrName;
- } else {
- attrName = this.$attr[key];
- if (!attrName) {
- this.$attr[key] = attrName = snake_case(key, '-');
- }
- }
-
- nodeName = nodeName_(this.$$element);
-
- if ((nodeName === 'a' && (key === 'href' || key === 'xlinkHref')) ||
- (nodeName === 'img' && key === 'src')) {
- // sanitize a[href] and img[src] values
- this[key] = value = $$sanitizeUri(value, key === 'src');
- } else if (nodeName === 'img' && key === 'srcset') {
- // sanitize img[srcset] values
- var result = "";
-
- // first check if there are spaces because it's not the same pattern
- var trimmedSrcset = trim(value);
- // ( 999x ,| 999w ,| ,|, )
- var srcPattern = /(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/;
- var pattern = /\s/.test(trimmedSrcset) ? srcPattern : /(,)/;
-
- // split srcset into tuple of uri and descriptor except for the last item
- var rawUris = trimmedSrcset.split(pattern);
-
- // for each tuples
- var nbrUrisWith2parts = Math.floor(rawUris.length / 2);
- for (var i = 0; i < nbrUrisWith2parts; i++) {
- var innerIdx = i * 2;
- // sanitize the uri
- result += $$sanitizeUri(trim(rawUris[innerIdx]), true);
- // add the descriptor
- result += (" " + trim(rawUris[innerIdx + 1]));
- }
-
- // split the last item into uri and descriptor
- var lastTuple = trim(rawUris[i * 2]).split(/\s/);
-
- // sanitize the last uri
- result += $$sanitizeUri(trim(lastTuple[0]), true);
-
- // and add the last descriptor if any
- if (lastTuple.length === 2) {
- result += (" " + trim(lastTuple[1]));
- }
- this[key] = value = result;
- }
-
- if (writeAttr !== false) {
- if (value === null || isUndefined(value)) {
- this.$$element.removeAttr(attrName);
- } else {
- if (SIMPLE_ATTR_NAME.test(attrName)) {
- this.$$element.attr(attrName, value);
- } else {
- setSpecialAttr(this.$$element[0], attrName, value);
- }
- }
- }
-
- // fire observers
- var $$observers = this.$$observers;
- $$observers && forEach($$observers[observer], function(fn) {
- try {
- fn(value);
- } catch (e) {
- $exceptionHandler(e);
- }
- });
- },
-
-
- /**
- * @ngdoc method
- * @name $compile.directive.Attributes#$observe
- * @kind function
- *
- * @description
- * Observes an interpolated attribute.
- *
- * The observer function will be invoked once during the next `$digest` following
- * compilation. The observer is then invoked whenever the interpolated value
- * changes.
- *
- * @param {string} key Normalized key. (ie ngAttribute) .
- * @param {function(interpolatedValue)} fn Function that will be called whenever
- the interpolated value of the attribute changes.
- * See the {@link guide/interpolation#how-text-and-attribute-bindings-work Interpolation
- * guide} for more info.
- * @returns {function()} Returns a deregistration function for this observer.
- */
- $observe: function(key, fn) {
- var attrs = this,
- $$observers = (attrs.$$observers || (attrs.$$observers = createMap())),
- listeners = ($$observers[key] || ($$observers[key] = []));
-
- listeners.push(fn);
- $rootScope.$evalAsync(function() {
- if (!listeners.$$inter && attrs.hasOwnProperty(key) && !isUndefined(attrs[key])) {
- // no one registered attribute interpolation function, so lets call it manually
- fn(attrs[key]);
- }
- });
-
- return function() {
- arrayRemove(listeners, fn);
- };
- }
- };
-
- function setSpecialAttr(element, attrName, value) {
- // Attributes names that do not start with letters (such as `(click)`) cannot be set using `setAttribute`
- // so we have to jump through some hoops to get such an attribute
- // https://github.com/angular/angular.js/pull/13318
- specialAttrHolder.innerHTML = "<span " + attrName + ">";
- var attributes = specialAttrHolder.firstChild.attributes;
- var attribute = attributes[0];
- // We have to remove the attribute from its container element before we can add it to the destination element
- attributes.removeNamedItem(attribute.name);
- attribute.value = value;
- element.attributes.setNamedItem(attribute);
- }
-
- function safeAddClass($element, className) {
- try {
- $element.addClass(className);
- } catch (e) {
- // ignore, since it means that we are trying to set class on
- // SVG element, where class name is read-only.
- }
- }
-
-
- var startSymbol = $interpolate.startSymbol(),
- endSymbol = $interpolate.endSymbol(),
- denormalizeTemplate = (startSymbol == '{{' && endSymbol == '}}')
- ? identity
- : function denormalizeTemplate(template) {
- return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol);
- },
- NG_ATTR_BINDING = /^ngAttr[A-Z]/;
- var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/;
-
- compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) {
- var bindings = $element.data('$binding') || [];
-
- if (isArray(binding)) {
- bindings = bindings.concat(binding);
- } else {
- bindings.push(binding);
- }
-
- $element.data('$binding', bindings);
- } : noop;
-
- compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) {
- safeAddClass($element, 'ng-binding');
- } : noop;
-
- compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) {
- var dataName = isolated ? (noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope') : '$scope';
- $element.data(dataName, scope);
- } : noop;
-
- compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) {
- safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope');
- } : noop;
-
- return compile;
-
- //================================
-
- function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective,
- previousCompileContext) {
- if (!($compileNodes instanceof jqLite)) {
- // jquery always rewraps, whereas we need to preserve the original selector so that we can
- // modify it.
- $compileNodes = jqLite($compileNodes);
- }
-
- var NOT_EMPTY = /\S+/;
-
- // We can not compile top level text elements since text nodes can be merged and we will
- // not be able to attach scope data to them, so we will wrap them in <span>
- for (var i = 0, len = $compileNodes.length; i < len; i++) {
- var domNode = $compileNodes[i];
-
- if (domNode.nodeType === NODE_TYPE_TEXT && domNode.nodeValue.match(NOT_EMPTY) /* non-empty */) {
- jqLiteWrapNode(domNode, $compileNodes[i] = document.createElement('span'));
- }
- }
-
- var compositeLinkFn =
- compileNodes($compileNodes, transcludeFn, $compileNodes,
- maxPriority, ignoreDirective, previousCompileContext);
- compile.$$addScopeClass($compileNodes);
- var namespace = null;
- return function publicLinkFn(scope, cloneConnectFn, options) {
- assertArg(scope, 'scope');
-
- if (previousCompileContext && previousCompileContext.needsNewScope) {
- // A parent directive did a replace and a directive on this element asked
- // for transclusion, which caused us to lose a layer of element on which
- // we could hold the new transclusion scope, so we will create it manually
- // here.
- scope = scope.$parent.$new();
- }
-
- options = options || {};
- var parentBoundTranscludeFn = options.parentBoundTranscludeFn,
- transcludeControllers = options.transcludeControllers,
- futureParentElement = options.futureParentElement;
-
- // When `parentBoundTranscludeFn` is passed, it is a
- // `controllersBoundTransclude` function (it was previously passed
- // as `transclude` to directive.link) so we must unwrap it to get
- // its `boundTranscludeFn`
- if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) {
- parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude;
- }
-
- if (!namespace) {
- namespace = detectNamespaceForChildElements(futureParentElement);
- }
- var $linkNode;
- if (namespace !== 'html') {
- // When using a directive with replace:true and templateUrl the $compileNodes
- // (or a child element inside of them)
- // might change, so we need to recreate the namespace adapted compileNodes
- // for call to the link function.
- // Note: This will already clone the nodes...
- $linkNode = jqLite(
- wrapTemplate(namespace, jqLite('<div>').append($compileNodes).html())
- );
- } else if (cloneConnectFn) {
- // important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart
- // and sometimes changes the structure of the DOM.
- $linkNode = JQLitePrototype.clone.call($compileNodes);
- } else {
- $linkNode = $compileNodes;
- }
-
- if (transcludeControllers) {
- for (var controllerName in transcludeControllers) {
- $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance);
- }
- }
-
- compile.$$addScopeInfo($linkNode, scope);
-
- if (cloneConnectFn) cloneConnectFn($linkNode, scope);
- if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn);
- return $linkNode;
- };
- }
-
- function detectNamespaceForChildElements(parentElement) {
- // TODO: Make this detect MathML as well...
- var node = parentElement && parentElement[0];
- if (!node) {
- return 'html';
- } else {
- return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html';
- }
- }
-
- /**
- * Compile function matches each node in nodeList against the directives. Once all directives
- * for a particular node are collected their compile functions are executed. The compile
- * functions return values - the linking functions - are combined into a composite linking
- * function, which is the a linking function for the node.
- *
- * @param {NodeList} nodeList an array of nodes or NodeList to compile
- * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the
- * scope argument is auto-generated to the new child of the transcluded parent scope.
- * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then
- * the rootElement must be set the jqLite collection of the compile root. This is
- * needed so that the jqLite collection items can be replaced with widgets.
- * @param {number=} maxPriority Max directive priority.
- * @returns {Function} A composite linking function of all of the matched directives or null.
- */
- function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,
- previousCompileContext) {
- var linkFns = [],
- attrs, directives, nodeLinkFn, childNodes, childLinkFn, linkFnFound, nodeLinkFnFound;
-
- for (var i = 0; i < nodeList.length; i++) {
- attrs = new Attributes();
-
- // we must always refer to nodeList[i] since the nodes can be replaced underneath us.
- directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined,
- ignoreDirective);
-
- nodeLinkFn = (directives.length)
- ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement,
- null, [], [], previousCompileContext)
- : null;
-
- if (nodeLinkFn && nodeLinkFn.scope) {
- compile.$$addScopeClass(attrs.$$element);
- }
-
- childLinkFn = (nodeLinkFn && nodeLinkFn.terminal ||
- !(childNodes = nodeList[i].childNodes) ||
- !childNodes.length)
- ? null
- : compileNodes(childNodes,
- nodeLinkFn ? (
- (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement)
- && nodeLinkFn.transclude) : transcludeFn);
-
- if (nodeLinkFn || childLinkFn) {
- linkFns.push(i, nodeLinkFn, childLinkFn);
- linkFnFound = true;
- nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn;
- }
-
- //use the previous context only for the first element in the virtual group
- previousCompileContext = null;
- }
-
- // return a linking function if we have found anything, null otherwise
- return linkFnFound ? compositeLinkFn : null;
-
- function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {
- var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;
- var stableNodeList;
-
-
- if (nodeLinkFnFound) {
- // copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our
- // offsets don't get screwed up
- var nodeListLength = nodeList.length;
- stableNodeList = new Array(nodeListLength);
-
- // create a sparse array by only copying the elements which have a linkFn
- for (i = 0; i < linkFns.length; i+=3) {
- idx = linkFns[i];
- stableNodeList[idx] = nodeList[idx];
- }
- } else {
- stableNodeList = nodeList;
- }
-
- for (i = 0, ii = linkFns.length; i < ii;) {
- node = stableNodeList[linkFns[i++]];
- nodeLinkFn = linkFns[i++];
- childLinkFn = linkFns[i++];
-
- if (nodeLinkFn) {
- if (nodeLinkFn.scope) {
- childScope = scope.$new();
- compile.$$addScopeInfo(jqLite(node), childScope);
- } else {
- childScope = scope;
- }
-
- if (nodeLinkFn.transcludeOnThisElement) {
- childBoundTranscludeFn = createBoundTranscludeFn(
- scope, nodeLinkFn.transclude, parentBoundTranscludeFn);
-
- } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {
- childBoundTranscludeFn = parentBoundTranscludeFn;
-
- } else if (!parentBoundTranscludeFn && transcludeFn) {
- childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn);
-
- } else {
- childBoundTranscludeFn = null;
- }
-
- nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn);
-
- } else if (childLinkFn) {
- childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);
- }
- }
- }
- }
-
- function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
-
- var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
-
- if (!transcludedScope) {
- transcludedScope = scope.$new(false, containingScope);
- transcludedScope.$$transcluded = true;
- }
-
- return transcludeFn(transcludedScope, cloneFn, {
- parentBoundTranscludeFn: previousBoundTranscludeFn,
- transcludeControllers: controllers,
- futureParentElement: futureParentElement
- });
- };
-
- // We need to attach the transclusion slots onto the `boundTranscludeFn`
- // so that they are available inside the `controllersBoundTransclude` function
- var boundSlots = boundTranscludeFn.$$slots = createMap();
- for (var slotName in transcludeFn.$$slots) {
- if (transcludeFn.$$slots[slotName]) {
- boundSlots[slotName] = createBoundTranscludeFn(scope, transcludeFn.$$slots[slotName], previousBoundTranscludeFn);
- } else {
- boundSlots[slotName] = null;
- }
- }
-
- return boundTranscludeFn;
- }
-
- /**
- * Looks for directives on the given node and adds them to the directive collection which is
- * sorted.
- *
- * @param node Node to search.
- * @param directives An array to which the directives are added to. This array is sorted before
- * the function returns.
- * @param attrs The shared attrs object which is used to populate the normalized attributes.
- * @param {number=} maxPriority Max directive priority.
- */
- function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) {
- var nodeType = node.nodeType,
- attrsMap = attrs.$attr,
- match,
- className;
-
- switch (nodeType) {
- case NODE_TYPE_ELEMENT: /* Element */
- // use the node name: <directive>
- addDirective(directives,
- directiveNormalize(nodeName_(node)), 'E', maxPriority, ignoreDirective);
-
- // iterate over the attributes
- for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes,
- j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {
- var attrStartName = false;
- var attrEndName = false;
-
- attr = nAttrs[j];
- name = attr.name;
- value = trim(attr.value);
-
- // support ngAttr attribute binding
- ngAttrName = directiveNormalize(name);
- if (isNgAttr = NG_ATTR_BINDING.test(ngAttrName)) {
- name = name.replace(PREFIX_REGEXP, '')
- .substr(8).replace(/_(.)/g, function(match, letter) {
- return letter.toUpperCase();
- });
- }
-
- var multiElementMatch = ngAttrName.match(MULTI_ELEMENT_DIR_RE);
- if (multiElementMatch && directiveIsMultiElement(multiElementMatch[1])) {
- attrStartName = name;
- attrEndName = name.substr(0, name.length - 5) + 'end';
- name = name.substr(0, name.length - 6);
- }
-
- nName = directiveNormalize(name.toLowerCase());
- attrsMap[nName] = name;
- if (isNgAttr || !attrs.hasOwnProperty(nName)) {
- attrs[nName] = value;
- if (getBooleanAttrName(node, nName)) {
- attrs[nName] = true; // presence means true
- }
- }
- addAttrInterpolateDirective(node, directives, value, nName, isNgAttr);
- addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName,
- attrEndName);
- }
-
- // use class as directive
- className = node.className;
- if (isObject(className)) {
- // Maybe SVGAnimatedString
- className = className.animVal;
- }
- if (isString(className) && className !== '') {
- while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) {
- nName = directiveNormalize(match[2]);
- if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) {
- attrs[nName] = trim(match[3]);
- }
- className = className.substr(match.index + match[0].length);
- }
- }
- break;
- case NODE_TYPE_TEXT: /* Text Node */
- if (msie === 11) {
- // Workaround for #11781
- while (node.parentNode && node.nextSibling && node.nextSibling.nodeType === NODE_TYPE_TEXT) {
- node.nodeValue = node.nodeValue + node.nextSibling.nodeValue;
- node.parentNode.removeChild(node.nextSibling);
- }
- }
- addTextInterpolateDirective(directives, node.nodeValue);
- break;
- case NODE_TYPE_COMMENT: /* Comment */
- try {
- match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);
- if (match) {
- nName = directiveNormalize(match[1]);
- if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) {
- attrs[nName] = trim(match[2]);
- }
- }
- } catch (e) {
- // turns out that under some circumstances IE9 throws errors when one attempts to read
- // comment's node value.
- // Just ignore it and continue. (Can't seem to reproduce in test case.)
- }
- break;
- }
-
- directives.sort(byPriority);
- return directives;
- }
-
- /**
- * Given a node with an directive-start it collects all of the siblings until it finds
- * directive-end.
- * @param node
- * @param attrStart
- * @param attrEnd
- * @returns {*}
- */
- function groupScan(node, attrStart, attrEnd) {
- var nodes = [];
- var depth = 0;
- if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {
- do {
- if (!node) {
- throw $compileMinErr('uterdir',
- "Unterminated attribute, found '{0}' but no matching '{1}' found.",
- attrStart, attrEnd);
- }
- if (node.nodeType == NODE_TYPE_ELEMENT) {
- if (node.hasAttribute(attrStart)) depth++;
- if (node.hasAttribute(attrEnd)) depth--;
- }
- nodes.push(node);
- node = node.nextSibling;
- } while (depth > 0);
- } else {
- nodes.push(node);
- }
-
- return jqLite(nodes);
- }
-
- /**
- * Wrapper for linking function which converts normal linking function into a grouped
- * linking function.
- * @param linkFn
- * @param attrStart
- * @param attrEnd
- * @returns {Function}
- */
- function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) {
- return function(scope, element, attrs, controllers, transcludeFn) {
- element = groupScan(element[0], attrStart, attrEnd);
- return linkFn(scope, element, attrs, controllers, transcludeFn);
- };
- }
-
- /**
- * A function generator that is used to support both eager and lazy compilation
- * linking function.
- * @param eager
- * @param $compileNodes
- * @param transcludeFn
- * @param maxPriority
- * @param ignoreDirective
- * @param previousCompileContext
- * @returns {Function}
- */
- function compilationGenerator(eager, $compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext) {
- if (eager) {
- return compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext);
- }
-
- var compiled;
-
- return function() {
- if (!compiled) {
- compiled = compile($compileNodes, transcludeFn, maxPriority, ignoreDirective, previousCompileContext);
-
- // Null out all of these references in order to make them eligible for garbage collection
- // since this is a potentially long lived closure
- $compileNodes = transcludeFn = previousCompileContext = null;
- }
-
- return compiled.apply(this, arguments);
- };
- }
-
- /**
- * Once the directives have been collected, their compile functions are executed. This method
- * is responsible for inlining directive templates as well as terminating the application
- * of the directives if the terminal directive has been reached.
- *
- * @param {Array} directives Array of collected directives to execute their compile function.
- * this needs to be pre-sorted by priority order.
- * @param {Node} compileNode The raw DOM node to apply the compile functions to
- * @param {Object} templateAttrs The shared attribute function
- * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the
- * scope argument is auto-generated to the new
- * child of the transcluded parent scope.
- * @param {JQLite} jqCollection If we are working on the root of the compile tree then this
- * argument has the root jqLite array so that we can replace nodes
- * on it.
- * @param {Object=} originalReplaceDirective An optional directive that will be ignored when
- * compiling the transclusion.
- * @param {Array.<Function>} preLinkFns
- * @param {Array.<Function>} postLinkFns
- * @param {Object} previousCompileContext Context used for previous compilation of the current
- * node
- * @returns {Function} linkFn
- */
- function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,
- jqCollection, originalReplaceDirective, preLinkFns, postLinkFns,
- previousCompileContext) {
- previousCompileContext = previousCompileContext || {};
-
- var terminalPriority = -Number.MAX_VALUE,
- newScopeDirective = previousCompileContext.newScopeDirective,
- controllerDirectives = previousCompileContext.controllerDirectives,
- newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective,
- templateDirective = previousCompileContext.templateDirective,
- nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective,
- hasTranscludeDirective = false,
- hasTemplate = false,
- hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective,
- $compileNode = templateAttrs.$$element = jqLite(compileNode),
- directive,
- directiveName,
- $template,
- replaceDirective = originalReplaceDirective,
- childTranscludeFn = transcludeFn,
- linkFn,
- didScanForMultipleTransclusion = false,
- mightHaveMultipleTransclusionError = false,
- directiveValue;
-
- // executes all directives on the current element
- for (var i = 0, ii = directives.length; i < ii; i++) {
- directive = directives[i];
- var attrStart = directive.$$start;
- var attrEnd = directive.$$end;
-
- // collect multiblock sections
- if (attrStart) {
- $compileNode = groupScan(compileNode, attrStart, attrEnd);
- }
- $template = undefined;
-
- if (terminalPriority > directive.priority) {
- break; // prevent further processing of directives
- }
-
- if (directiveValue = directive.scope) {
-
- // skip the check for directives with async templates, we'll check the derived sync
- // directive when the template arrives
- if (!directive.templateUrl) {
- if (isObject(directiveValue)) {
- // This directive is trying to add an isolated scope.
- // Check that there is no scope of any kind already
- assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective,
- directive, $compileNode);
- newIsolateScopeDirective = directive;
- } else {
- // This directive is trying to add a child scope.
- // Check that there is no isolated scope already
- assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive,
- $compileNode);
- }
- }
-
- newScopeDirective = newScopeDirective || directive;
- }
-
- directiveName = directive.name;
-
- // If we encounter a condition that can result in transclusion on the directive,
- // then scan ahead in the remaining directives for others that may cause a multiple
- // transclusion error to be thrown during the compilation process. If a matching directive
- // is found, then we know that when we encounter a transcluded directive, we need to eagerly
- // compile the `transclude` function rather than doing it lazily in order to throw
- // exceptions at the correct time
- if (!didScanForMultipleTransclusion && ((directive.replace && (directive.templateUrl || directive.template))
- || (directive.transclude && !directive.$$tlb))) {
- var candidateDirective;
-
- for (var scanningIndex = i + 1; candidateDirective = directives[scanningIndex++];) {
- if ((candidateDirective.transclude && !candidateDirective.$$tlb)
- || (candidateDirective.replace && (candidateDirective.templateUrl || candidateDirective.template))) {
- mightHaveMultipleTransclusionError = true;
- break;
- }
- }
-
- didScanForMultipleTransclusion = true;
- }
-
- if (!directive.templateUrl && directive.controller) {
- directiveValue = directive.controller;
- controllerDirectives = controllerDirectives || createMap();
- assertNoDuplicate("'" + directiveName + "' controller",
- controllerDirectives[directiveName], directive, $compileNode);
- controllerDirectives[directiveName] = directive;
- }
-
- if (directiveValue = directive.transclude) {
- hasTranscludeDirective = true;
-
- // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.
- // This option should only be used by directives that know how to safely handle element transclusion,
- // where the transcluded nodes are added or replaced after linking.
- if (!directive.$$tlb) {
- assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode);
- nonTlbTranscludeDirective = directive;
- }
-
- if (directiveValue == 'element') {
- hasElementTranscludeDirective = true;
- terminalPriority = directive.priority;
- $template = $compileNode;
- $compileNode = templateAttrs.$$element =
- jqLite(document.createComment(' ' + directiveName + ': ' +
- templateAttrs[directiveName] + ' '));
- compileNode = $compileNode[0];
- replaceWith(jqCollection, sliceArgs($template), compileNode);
-
- childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, terminalPriority,
- replaceDirective && replaceDirective.name, {
- // Don't pass in:
- // - controllerDirectives - otherwise we'll create duplicates controllers
- // - newIsolateScopeDirective or templateDirective - combining templates with
- // element transclusion doesn't make sense.
- //
- // We need only nonTlbTranscludeDirective so that we prevent putting transclusion
- // on the same element more than once.
- nonTlbTranscludeDirective: nonTlbTranscludeDirective
- });
- } else {
-
- var slots = createMap();
-
- $template = jqLite(jqLiteClone(compileNode)).contents();
-
- if (isObject(directiveValue)) {
-
- // We have transclusion slots,
- // collect them up, compile them and store their transclusion functions
- $template = [];
-
- var slotMap = createMap();
- var filledSlots = createMap();
-
- // Parse the element selectors
- forEach(directiveValue, function(elementSelector, slotName) {
- // If an element selector starts with a ? then it is optional
- var optional = (elementSelector.charAt(0) === '?');
- elementSelector = optional ? elementSelector.substring(1) : elementSelector;
-
- slotMap[elementSelector] = slotName;
-
- // We explicitly assign `null` since this implies that a slot was defined but not filled.
- // Later when calling boundTransclusion functions with a slot name we only error if the
- // slot is `undefined`
- slots[slotName] = null;
-
- // filledSlots contains `true` for all slots that are either optional or have been
- // filled. This is used to check that we have not missed any required slots
- filledSlots[slotName] = optional;
- });
-
- // Add the matching elements into their slot
- forEach($compileNode.contents(), function(node) {
- var slotName = slotMap[directiveNormalize(nodeName_(node))];
- if (slotName) {
- filledSlots[slotName] = true;
- slots[slotName] = slots[slotName] || [];
- slots[slotName].push(node);
- } else {
- $template.push(node);
- }
- });
-
- // Check for required slots that were not filled
- forEach(filledSlots, function(filled, slotName) {
- if (!filled) {
- throw $compileMinErr('reqslot', 'Required transclusion slot `{0}` was not filled.', slotName);
- }
- });
-
- for (var slotName in slots) {
- if (slots[slotName]) {
- // Only define a transclusion function if the slot was filled
- slots[slotName] = compilationGenerator(mightHaveMultipleTransclusionError, slots[slotName], transcludeFn);
- }
- }
- }
-
- $compileNode.empty(); // clear contents
- childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, undefined,
- undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope});
- childTranscludeFn.$$slots = slots;
- }
- }
-
- if (directive.template) {
- hasTemplate = true;
- assertNoDuplicate('template', templateDirective, directive, $compileNode);
- templateDirective = directive;
-
- directiveValue = (isFunction(directive.template))
- ? directive.template($compileNode, templateAttrs)
- : directive.template;
-
- directiveValue = denormalizeTemplate(directiveValue);
-
- if (directive.replace) {
- replaceDirective = directive;
- if (jqLiteIsTextNode(directiveValue)) {
- $template = [];
- } else {
- $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));
- }
- compileNode = $template[0];
-
- if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {
- throw $compileMinErr('tplrt',
- "Template for directive '{0}' must have exactly one root element. {1}",
- directiveName, '');
- }
-
- replaceWith(jqCollection, $compileNode, compileNode);
-
- var newTemplateAttrs = {$attr: {}};
-
- // combine directives from the original node and from the template:
- // - take the array of directives for this element
- // - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)
- // - collect directives from the template and sort them by priority
- // - combine directives as: processed + template + unprocessed
- var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs);
- var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1));
-
- if (newIsolateScopeDirective || newScopeDirective) {
- // The original directive caused the current element to be replaced but this element
- // also needs to have a new scope, so we need to tell the template directives
- // that they would need to get their scope from further up, if they require transclusion
- markDirectiveScope(templateDirectives, newIsolateScopeDirective, newScopeDirective);
- }
- directives = directives.concat(templateDirectives).concat(unprocessedDirectives);
- mergeTemplateAttributes(templateAttrs, newTemplateAttrs);
-
- ii = directives.length;
- } else {
- $compileNode.html(directiveValue);
- }
- }
-
- if (directive.templateUrl) {
- hasTemplate = true;
- assertNoDuplicate('template', templateDirective, directive, $compileNode);
- templateDirective = directive;
-
- if (directive.replace) {
- replaceDirective = directive;
- }
-
- nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode,
- templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, {
- controllerDirectives: controllerDirectives,
- newScopeDirective: (newScopeDirective !== directive) && newScopeDirective,
- newIsolateScopeDirective: newIsolateScopeDirective,
- templateDirective: templateDirective,
- nonTlbTranscludeDirective: nonTlbTranscludeDirective
- });
- ii = directives.length;
- } else if (directive.compile) {
- try {
- linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);
- if (isFunction(linkFn)) {
- addLinkFns(null, linkFn, attrStart, attrEnd);
- } else if (linkFn) {
- addLinkFns(linkFn.pre, linkFn.post, attrStart, attrEnd);
- }
- } catch (e) {
- $exceptionHandler(e, startingTag($compileNode));
- }
- }
-
- if (directive.terminal) {
- nodeLinkFn.terminal = true;
- terminalPriority = Math.max(terminalPriority, directive.priority);
- }
-
- }
-
- nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;
- nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;
- nodeLinkFn.templateOnThisElement = hasTemplate;
- nodeLinkFn.transclude = childTranscludeFn;
-
- previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective;
-
- // might be normal or delayed nodeLinkFn depending on if templateUrl is present
- return nodeLinkFn;
-
- ////////////////////
-
- function addLinkFns(pre, post, attrStart, attrEnd) {
- if (pre) {
- if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
- pre.require = directive.require;
- pre.directiveName = directiveName;
- if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
- pre = cloneAndAnnotateFn(pre, {isolateScope: true});
- }
- preLinkFns.push(pre);
- }
- if (post) {
- if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
- post.require = directive.require;
- post.directiveName = directiveName;
- if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
- post = cloneAndAnnotateFn(post, {isolateScope: true});
- }
- postLinkFns.push(post);
- }
- }
-
-
- function getControllers(directiveName, require, $element, elementControllers) {
- var value;
-
- if (isString(require)) {
- var match = require.match(REQUIRE_PREFIX_REGEXP);
- var name = require.substring(match[0].length);
- var inheritType = match[1] || match[3];
- var optional = match[2] === '?';
-
- //If only parents then start at the parent element
- if (inheritType === '^^') {
- $element = $element.parent();
- //Otherwise attempt getting the controller from elementControllers in case
- //the element is transcluded (and has no data) and to avoid .data if possible
- } else {
- value = elementControllers && elementControllers[name];
- value = value && value.instance;
- }
-
- if (!value) {
- var dataName = '$' + name + 'Controller';
- value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName);
- }
-
- if (!value && !optional) {
- throw $compileMinErr('ctreq',
- "Controller '{0}', required by directive '{1}', can't be found!",
- name, directiveName);
- }
- } else if (isArray(require)) {
- value = [];
- for (var i = 0, ii = require.length; i < ii; i++) {
- value[i] = getControllers(directiveName, require[i], $element, elementControllers);
- }
- } else if (isObject(require)) {
- value = {};
- forEach(require, function(controller, property) {
- value[property] = getControllers(directiveName, controller, $element, elementControllers);
- });
- }
-
- return value || null;
- }
-
- function setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope) {
- var elementControllers = createMap();
- for (var controllerKey in controllerDirectives) {
- var directive = controllerDirectives[controllerKey];
- var locals = {
- $scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,
- $element: $element,
- $attrs: attrs,
- $transclude: transcludeFn
- };
-
- var controller = directive.controller;
- if (controller == '@') {
- controller = attrs[directive.name];
- }
-
- var controllerInstance = $controller(controller, locals, true, directive.controllerAs);
-
- // For directives with element transclusion the element is a comment,
- // but jQuery .data doesn't support attaching data to comment nodes as it's hard to
- // clean up (http://bugs.jquery.com/ticket/8335).
- // Instead, we save the controllers for the element in a local hash and attach to .data
- // later, once we have the actual element.
- elementControllers[directive.name] = controllerInstance;
- if (!hasElementTranscludeDirective) {
- $element.data('$' + directive.name + 'Controller', controllerInstance.instance);
- }
- }
- return elementControllers;
- }
-
- function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
- var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element,
- attrs, removeScopeBindingWatches, removeControllerBindingWatches;
-
- if (compileNode === linkNode) {
- attrs = templateAttrs;
- $element = templateAttrs.$$element;
- } else {
- $element = jqLite(linkNode);
- attrs = new Attributes($element, templateAttrs);
- }
-
- controllerScope = scope;
- if (newIsolateScopeDirective) {
- isolateScope = scope.$new(true);
- } else if (newScopeDirective) {
- controllerScope = scope.$parent;
- }
-
- if (boundTranscludeFn) {
- // track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`
- // is later passed as `parentBoundTranscludeFn` to `publicLinkFn`
- transcludeFn = controllersBoundTransclude;
- transcludeFn.$$boundTransclude = boundTranscludeFn;
- // expose the slots on the `$transclude` function
- transcludeFn.isSlotFilled = function(slotName) {
- return !!boundTranscludeFn.$$slots[slotName];
- };
- }
-
- if (controllerDirectives) {
- elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope);
- }
-
- if (newIsolateScopeDirective) {
- // Initialize isolate scope bindings for new isolate scope directive.
- compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective ||
- templateDirective === newIsolateScopeDirective.$$originalDirective)));
- compile.$$addScopeClass($element, true);
- isolateScope.$$isolateBindings =
- newIsolateScopeDirective.$$isolateBindings;
- removeScopeBindingWatches = initializeDirectiveBindings(scope, attrs, isolateScope,
- isolateScope.$$isolateBindings,
- newIsolateScopeDirective);
- if (removeScopeBindingWatches) {
- isolateScope.$on('$destroy', removeScopeBindingWatches);
- }
- }
-
- // Initialize bindToController bindings
- for (var name in elementControllers) {
- var controllerDirective = controllerDirectives[name];
- var controller = elementControllers[name];
- var bindings = controllerDirective.$$bindings.bindToController;
-
- if (controller.identifier && bindings) {
- removeControllerBindingWatches =
- initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);
- }
-
- var controllerResult = controller();
- if (controllerResult !== controller.instance) {
- // If the controller constructor has a return value, overwrite the instance
- // from setupControllers
- controller.instance = controllerResult;
- $element.data('$' + controllerDirective.name + 'Controller', controllerResult);
- removeControllerBindingWatches && removeControllerBindingWatches();
- removeControllerBindingWatches =
- initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);
- }
- }
-
- // Bind the required controllers to the controller, if `require` is an object and `bindToController` is truthy
- forEach(controllerDirectives, function(controllerDirective, name) {
- var require = controllerDirective.require;
- if (controllerDirective.bindToController && !isArray(require) && isObject(require)) {
- extend(elementControllers[name].instance, getControllers(name, require, $element, elementControllers));
- }
- });
-
- // Trigger the `$onInit` method on all controllers that have one
- forEach(elementControllers, function(controller) {
- if (isFunction(controller.instance.$onInit)) {
- controller.instance.$onInit();
- }
- });
-
- // PRELINKING
- for (i = 0, ii = preLinkFns.length; i < ii; i++) {
- linkFn = preLinkFns[i];
- invokeLinkFn(linkFn,
- linkFn.isolateScope ? isolateScope : scope,
- $element,
- attrs,
- linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),
- transcludeFn
- );
- }
-
- // RECURSION
- // We only pass the isolate scope, if the isolate directive has a template,
- // otherwise the child elements do not belong to the isolate directive.
- var scopeToChild = scope;
- if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) {
- scopeToChild = isolateScope;
- }
- childLinkFn && childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn);
-
- // POSTLINKING
- for (i = postLinkFns.length - 1; i >= 0; i--) {
- linkFn = postLinkFns[i];
- invokeLinkFn(linkFn,
- linkFn.isolateScope ? isolateScope : scope,
- $element,
- attrs,
- linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),
- transcludeFn
- );
- }
-
- // This is the function that is injected as `$transclude`.
- // Note: all arguments are optional!
- function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement, slotName) {
- var transcludeControllers;
- // No scope passed in:
- if (!isScope(scope)) {
- slotName = futureParentElement;
- futureParentElement = cloneAttachFn;
- cloneAttachFn = scope;
- scope = undefined;
- }
-
- if (hasElementTranscludeDirective) {
- transcludeControllers = elementControllers;
- }
- if (!futureParentElement) {
- futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;
- }
- if (slotName) {
- // slotTranscludeFn can be one of three things:
- // * a transclude function - a filled slot
- // * `null` - an optional slot that was not filled
- // * `undefined` - a slot that was not declared (i.e. invalid)
- var slotTranscludeFn = boundTranscludeFn.$$slots[slotName];
- if (slotTranscludeFn) {
- return slotTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
- } else if (isUndefined(slotTranscludeFn)) {
- throw $compileMinErr('noslot',
- 'No parent directive that requires a transclusion with slot name "{0}". ' +
- 'Element: {1}',
- slotName, startingTag($element));
- }
- } else {
- return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
- }
- }
- }
- }
-
- // Depending upon the context in which a directive finds itself it might need to have a new isolated
- // or child scope created. For instance:
- // * if the directive has been pulled into a template because another directive with a higher priority
- // asked for element transclusion
- // * if the directive itself asks for transclusion but it is at the root of a template and the original
- // element was replaced. See https://github.com/angular/angular.js/issues/12936
- function markDirectiveScope(directives, isolateScope, newScope) {
- for (var j = 0, jj = directives.length; j < jj; j++) {
- directives[j] = inherit(directives[j], {$$isolateScope: isolateScope, $$newScope: newScope});
- }
- }
-
- /**
- * looks up the directive and decorates it with exception handling and proper parameters. We
- * call this the boundDirective.
- *
- * @param {string} name name of the directive to look up.
- * @param {string} location The directive must be found in specific format.
- * String containing any of theses characters:
- *
- * * `E`: element name
- * * `A': attribute
- * * `C`: class
- * * `M`: comment
- * @returns {boolean} true if directive was added.
- */
- function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName,
- endAttrName) {
- if (name === ignoreDirective) return null;
- var match = null;
- if (hasDirectives.hasOwnProperty(name)) {
- for (var directive, directives = $injector.get(name + Suffix),
- i = 0, ii = directives.length; i < ii; i++) {
- try {
- directive = directives[i];
- if ((isUndefined(maxPriority) || maxPriority > directive.priority) &&
- directive.restrict.indexOf(location) != -1) {
- if (startAttrName) {
- directive = inherit(directive, {$$start: startAttrName, $$end: endAttrName});
- }
- tDirectives.push(directive);
- match = directive;
- }
- } catch (e) { $exceptionHandler(e); }
- }
- }
- return match;
- }
-
-
- /**
- * looks up the directive and returns true if it is a multi-element directive,
- * and therefore requires DOM nodes between -start and -end markers to be grouped
- * together.
- *
- * @param {string} name name of the directive to look up.
- * @returns true if directive was registered as multi-element.
- */
- function directiveIsMultiElement(name) {
- if (hasDirectives.hasOwnProperty(name)) {
- for (var directive, directives = $injector.get(name + Suffix),
- i = 0, ii = directives.length; i < ii; i++) {
- directive = directives[i];
- if (directive.multiElement) {
- return true;
- }
- }
- }
- return false;
- }
-
- /**
- * When the element is replaced with HTML template then the new attributes
- * on the template need to be merged with the existing attributes in the DOM.
- * The desired effect is to have both of the attributes present.
- *
- * @param {object} dst destination attributes (original DOM)
- * @param {object} src source attributes (from the directive template)
- */
- function mergeTemplateAttributes(dst, src) {
- var srcAttr = src.$attr,
- dstAttr = dst.$attr,
- $element = dst.$$element;
-
- // reapply the old attributes to the new element
- forEach(dst, function(value, key) {
- if (key.charAt(0) != '$') {
- if (src[key] && src[key] !== value) {
- value += (key === 'style' ? ';' : ' ') + src[key];
- }
- dst.$set(key, value, true, srcAttr[key]);
- }
- });
-
- // copy the new attributes on the old attrs object
- forEach(src, function(value, key) {
- if (key == 'class') {
- safeAddClass($element, value);
- dst['class'] = (dst['class'] ? dst['class'] + ' ' : '') + value;
- } else if (key == 'style') {
- $element.attr('style', $element.attr('style') + ';' + value);
- dst['style'] = (dst['style'] ? dst['style'] + ';' : '') + value;
- // `dst` will never contain hasOwnProperty as DOM parser won't let it.
- // You will get an "InvalidCharacterError: DOM Exception 5" error if you
- // have an attribute like "has-own-property" or "data-has-own-property", etc.
- } else if (key.charAt(0) != '$' && !dst.hasOwnProperty(key)) {
- dst[key] = value;
- dstAttr[key] = srcAttr[key];
- }
- });
- }
-
-
- function compileTemplateUrl(directives, $compileNode, tAttrs,
- $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) {
- var linkQueue = [],
- afterTemplateNodeLinkFn,
- afterTemplateChildLinkFn,
- beforeTemplateCompileNode = $compileNode[0],
- origAsyncDirective = directives.shift(),
- derivedSyncDirective = inherit(origAsyncDirective, {
- templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective
- }),
- templateUrl = (isFunction(origAsyncDirective.templateUrl))
- ? origAsyncDirective.templateUrl($compileNode, tAttrs)
- : origAsyncDirective.templateUrl,
- templateNamespace = origAsyncDirective.templateNamespace;
-
- $compileNode.empty();
-
- $templateRequest(templateUrl)
- .then(function(content) {
- var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn;
-
- content = denormalizeTemplate(content);
-
- if (origAsyncDirective.replace) {
- if (jqLiteIsTextNode(content)) {
- $template = [];
- } else {
- $template = removeComments(wrapTemplate(templateNamespace, trim(content)));
- }
- compileNode = $template[0];
-
- if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {
- throw $compileMinErr('tplrt',
- "Template for directive '{0}' must have exactly one root element. {1}",
- origAsyncDirective.name, templateUrl);
- }
-
- tempTemplateAttrs = {$attr: {}};
- replaceWith($rootElement, $compileNode, compileNode);
- var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs);
-
- if (isObject(origAsyncDirective.scope)) {
- // the original directive that caused the template to be loaded async required
- // an isolate scope
- markDirectiveScope(templateDirectives, true);
- }
- directives = templateDirectives.concat(directives);
- mergeTemplateAttributes(tAttrs, tempTemplateAttrs);
- } else {
- compileNode = beforeTemplateCompileNode;
- $compileNode.html(content);
- }
-
- directives.unshift(derivedSyncDirective);
-
- afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs,
- childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns,
- previousCompileContext);
- forEach($rootElement, function(node, i) {
- if (node == compileNode) {
- $rootElement[i] = $compileNode[0];
- }
- });
- afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);
-
- while (linkQueue.length) {
- var scope = linkQueue.shift(),
- beforeTemplateLinkNode = linkQueue.shift(),
- linkRootElement = linkQueue.shift(),
- boundTranscludeFn = linkQueue.shift(),
- linkNode = $compileNode[0];
-
- if (scope.$$destroyed) continue;
-
- if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {
- var oldClasses = beforeTemplateLinkNode.className;
-
- if (!(previousCompileContext.hasElementTranscludeDirective &&
- origAsyncDirective.replace)) {
- // it was cloned therefore we have to clone as well.
- linkNode = jqLiteClone(compileNode);
- }
- replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);
-
- // Copy in CSS classes from original node
- safeAddClass(jqLite(linkNode), oldClasses);
- }
- if (afterTemplateNodeLinkFn.transcludeOnThisElement) {
- childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);
- } else {
- childBoundTranscludeFn = boundTranscludeFn;
- }
- afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement,
- childBoundTranscludeFn);
- }
- linkQueue = null;
- });
-
- return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) {
- var childBoundTranscludeFn = boundTranscludeFn;
- if (scope.$$destroyed) return;
- if (linkQueue) {
- linkQueue.push(scope,
- node,
- rootElement,
- childBoundTranscludeFn);
- } else {
- if (afterTemplateNodeLinkFn.transcludeOnThisElement) {
- childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);
- }
- afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn);
- }
- };
- }
-
-
- /**
- * Sorting function for bound directives.
- */
- function byPriority(a, b) {
- var diff = b.priority - a.priority;
- if (diff !== 0) return diff;
- if (a.name !== b.name) return (a.name < b.name) ? -1 : 1;
- return a.index - b.index;
- }
-
- function assertNoDuplicate(what, previousDirective, directive, element) {
-
- function wrapModuleNameIfDefined(moduleName) {
- return moduleName ?
- (' (module: ' + moduleName + ')') :
- '';
- }
-
- if (previousDirective) {
- throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',
- previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),
- directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));
- }
- }
-
-
- function addTextInterpolateDirective(directives, text) {
- var interpolateFn = $interpolate(text, true);
- if (interpolateFn) {
- directives.push({
- priority: 0,
- compile: function textInterpolateCompileFn(templateNode) {
- var templateNodeParent = templateNode.parent(),
- hasCompileParent = !!templateNodeParent.length;
-
- // When transcluding a template that has bindings in the root
- // we don't have a parent and thus need to add the class during linking fn.
- if (hasCompileParent) compile.$$addBindingClass(templateNodeParent);
-
- return function textInterpolateLinkFn(scope, node) {
- var parent = node.parent();
- if (!hasCompileParent) compile.$$addBindingClass(parent);
- compile.$$addBindingInfo(parent, interpolateFn.expressions);
- scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {
- node[0].nodeValue = value;
- });
- };
- }
- });
- }
- }
-
-
- function wrapTemplate(type, template) {
- type = lowercase(type || 'html');
- switch (type) {
- case 'svg':
- case 'math':
- var wrapper = document.createElement('div');
- wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
- return wrapper.childNodes[0].childNodes;
- default:
- return template;
- }
- }
-
-
- function getTrustedContext(node, attrNormalizedName) {
- if (attrNormalizedName == "srcdoc") {
- return $sce.HTML;
- }
- var tag = nodeName_(node);
- // maction[xlink:href] can source SVG. It's not limited to <maction>.
- if (attrNormalizedName == "xlinkHref" ||
- (tag == "form" && attrNormalizedName == "action") ||
- (tag != "img" && (attrNormalizedName == "src" ||
- attrNormalizedName == "ngSrc"))) {
- return $sce.RESOURCE_URL;
- }
- }
-
-
- function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {
- var trustedContext = getTrustedContext(node, name);
- allOrNothing = ALL_OR_NOTHING_ATTRS[name] || allOrNothing;
-
- var interpolateFn = $interpolate(value, true, trustedContext, allOrNothing);
-
- // no interpolation found -> ignore
- if (!interpolateFn) return;
-
-
- if (name === "multiple" && nodeName_(node) === "select") {
- throw $compileMinErr("selmulti",
- "Binding to the 'multiple' attribute is not supported. Element: {0}",
- startingTag(node));
- }
-
- directives.push({
- priority: 100,
- compile: function() {
- return {
- pre: function attrInterpolatePreLinkFn(scope, element, attr) {
- var $$observers = (attr.$$observers || (attr.$$observers = createMap()));
-
- if (EVENT_HANDLER_ATTR_REGEXP.test(name)) {
- throw $compileMinErr('nodomevents',
- "Interpolations for HTML DOM event attributes are disallowed. Please use the " +
- "ng- versions (such as ng-click instead of onclick) instead.");
- }
-
- // If the attribute has changed since last $interpolate()ed
- var newValue = attr[name];
- if (newValue !== value) {
- // we need to interpolate again since the attribute value has been updated
- // (e.g. by another directive's compile function)
- // ensure unset/empty values make interpolateFn falsy
- interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing);
- value = newValue;
- }
-
- // if attribute was updated so that there is no interpolation going on we don't want to
- // register any observers
- if (!interpolateFn) return;
-
- // initialize attr object so that it's ready in case we need the value for isolate
- // scope initialization, otherwise the value would not be available from isolate
- // directive's linking fn during linking phase
- attr[name] = interpolateFn(scope);
-
- ($$observers[name] || ($$observers[name] = [])).$$inter = true;
- (attr.$$observers && attr.$$observers[name].$$scope || scope).
- $watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) {
- //special case for class attribute addition + removal
- //so that class changes can tap into the animation
- //hooks provided by the $animate service. Be sure to
- //skip animations when the first digest occurs (when
- //both the new and the old values are the same) since
- //the CSS classes are the non-interpolated values
- if (name === 'class' && newValue != oldValue) {
- attr.$updateClass(newValue, oldValue);
- } else {
- attr.$set(name, newValue);
- }
- });
- }
- };
- }
- });
- }
-
-
- /**
- * This is a special jqLite.replaceWith, which can replace items which
- * have no parents, provided that the containing jqLite collection is provided.
- *
- * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes
- * in the root of the tree.
- * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep
- * the shell, but replace its DOM node reference.
- * @param {Node} newNode The new DOM node.
- */
- function replaceWith($rootElement, elementsToRemove, newNode) {
- var firstElementToRemove = elementsToRemove[0],
- removeCount = elementsToRemove.length,
- parent = firstElementToRemove.parentNode,
- i, ii;
-
- if ($rootElement) {
- for (i = 0, ii = $rootElement.length; i < ii; i++) {
- if ($rootElement[i] == firstElementToRemove) {
- $rootElement[i++] = newNode;
- for (var j = i, j2 = j + removeCount - 1,
- jj = $rootElement.length;
- j < jj; j++, j2++) {
- if (j2 < jj) {
- $rootElement[j] = $rootElement[j2];
- } else {
- delete $rootElement[j];
- }
- }
- $rootElement.length -= removeCount - 1;
-
- // If the replaced element is also the jQuery .context then replace it
- // .context is a deprecated jQuery api, so we should set it only when jQuery set it
- // http://api.jquery.com/context/
- if ($rootElement.context === firstElementToRemove) {
- $rootElement.context = newNode;
- }
- break;
- }
- }
- }
-
- if (parent) {
- parent.replaceChild(newNode, firstElementToRemove);
- }
-
- // Append all the `elementsToRemove` to a fragment. This will...
- // - remove them from the DOM
- // - allow them to still be traversed with .nextSibling
- // - allow a single fragment.qSA to fetch all elements being removed
- var fragment = document.createDocumentFragment();
- for (i = 0; i < removeCount; i++) {
- fragment.appendChild(elementsToRemove[i]);
- }
-
- if (jqLite.hasData(firstElementToRemove)) {
- // Copy over user data (that includes Angular's $scope etc.). Don't copy private
- // data here because there's no public interface in jQuery to do that and copying over
- // event listeners (which is the main use of private data) wouldn't work anyway.
- jqLite.data(newNode, jqLite.data(firstElementToRemove));
-
- // Remove $destroy event listeners from `firstElementToRemove`
- jqLite(firstElementToRemove).off('$destroy');
- }
-
- // Cleanup any data/listeners on the elements and children.
- // This includes invoking the $destroy event on any elements with listeners.
- jqLite.cleanData(fragment.querySelectorAll('*'));
-
- // Update the jqLite collection to only contain the `newNode`
- for (i = 1; i < removeCount; i++) {
- delete elementsToRemove[i];
- }
- elementsToRemove[0] = newNode;
- elementsToRemove.length = 1;
- }
-
-
- function cloneAndAnnotateFn(fn, annotation) {
- return extend(function() { return fn.apply(null, arguments); }, fn, annotation);
- }
-
-
- function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) {
- try {
- linkFn(scope, $element, attrs, controllers, transcludeFn);
- } catch (e) {
- $exceptionHandler(e, startingTag($element));
- }
- }
-
-
- // Set up $watches for isolate scope and controller bindings. This process
- // only occurs for isolate scopes and new scopes with controllerAs.
- function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) {
- var removeWatchCollection = [];
- forEach(bindings, function(definition, scopeName) {
- var attrName = definition.attrName,
- optional = definition.optional,
- mode = definition.mode, // @, =, or &
- lastValue,
- parentGet, parentSet, compare, removeWatch;
-
- switch (mode) {
-
- case '@':
- if (!optional && !hasOwnProperty.call(attrs, attrName)) {
- destination[scopeName] = attrs[attrName] = void 0;
- }
- attrs.$observe(attrName, function(value) {
- if (isString(value)) {
- destination[scopeName] = value;
- }
- });
- attrs.$$observers[attrName].$$scope = scope;
- lastValue = attrs[attrName];
- if (isString(lastValue)) {
- // If the attribute has been provided then we trigger an interpolation to ensure
- // the value is there for use in the link fn
- destination[scopeName] = $interpolate(lastValue)(scope);
- } else if (isBoolean(lastValue)) {
- // If the attributes is one of the BOOLEAN_ATTR then Angular will have converted
- // the value to boolean rather than a string, so we special case this situation
- destination[scopeName] = lastValue;
- }
- break;
-
- case '=':
- if (!hasOwnProperty.call(attrs, attrName)) {
- if (optional) break;
- attrs[attrName] = void 0;
- }
- if (optional && !attrs[attrName]) break;
-
- parentGet = $parse(attrs[attrName]);
- if (parentGet.literal) {
- compare = equals;
- } else {
- compare = function(a, b) { return a === b || (a !== a && b !== b); };
- }
- parentSet = parentGet.assign || function() {
- // reset the change, or we will throw this exception on every $digest
- lastValue = destination[scopeName] = parentGet(scope);
- throw $compileMinErr('nonassign',
- "Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",
- attrs[attrName], attrName, directive.name);
- };
- lastValue = destination[scopeName] = parentGet(scope);
- var parentValueWatch = function parentValueWatch(parentValue) {
- if (!compare(parentValue, destination[scopeName])) {
- // we are out of sync and need to copy
- if (!compare(parentValue, lastValue)) {
- // parent changed and it has precedence
- destination[scopeName] = parentValue;
- } else {
- // if the parent can be assigned then do so
- parentSet(scope, parentValue = destination[scopeName]);
- }
- }
- return lastValue = parentValue;
- };
- parentValueWatch.$stateful = true;
- if (definition.collection) {
- removeWatch = scope.$watchCollection(attrs[attrName], parentValueWatch);
- } else {
- removeWatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);
- }
- removeWatchCollection.push(removeWatch);
- break;
-
- case '<':
- if (!hasOwnProperty.call(attrs, attrName)) {
- if (optional) break;
- attrs[attrName] = void 0;
- }
- if (optional && !attrs[attrName]) break;
-
- parentGet = $parse(attrs[attrName]);
-
- destination[scopeName] = parentGet(scope);
-
- removeWatch = scope.$watch(parentGet, function parentValueWatchAction(newParentValue) {
- destination[scopeName] = newParentValue;
- }, parentGet.literal);
-
- removeWatchCollection.push(removeWatch);
- break;
-
- case '&':
- // Don't assign Object.prototype method to scope
- parentGet = attrs.hasOwnProperty(attrName) ? $parse(attrs[attrName]) : noop;
-
- // Don't assign noop to destination if expression is not valid
- if (parentGet === noop && optional) break;
-
- destination[scopeName] = function(locals) {
- return parentGet(scope, locals);
- };
- break;
- }
- });
-
- return removeWatchCollection.length && function removeWatches() {
- for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) {
- removeWatchCollection[i]();
- }
- };
- }
- }];
-}
-
-var PREFIX_REGEXP = /^((?:x|data)[\:\-_])/i;
-/**
- * Converts all accepted directives format into proper directive name.
- * @param name Name to normalize
- */
-function directiveNormalize(name) {
- return camelCase(name.replace(PREFIX_REGEXP, ''));
-}
-
-/**
- * @ngdoc type
- * @name $compile.directive.Attributes
- *
- * @description
- * A shared object between directive compile / linking functions which contains normalized DOM
- * element attributes. The values reflect current binding state `{{ }}`. The normalization is
- * needed since all of these are treated as equivalent in Angular:
- *
- * ```
- * <span ng:bind="a" ng-bind="a" data-ng-bind="a" x-ng-bind="a">
- * ```
- */
-
-/**
- * @ngdoc property
- * @name $compile.directive.Attributes#$attr
- *
- * @description
- * A map of DOM element attribute names to the normalized name. This is
- * needed to do reverse lookup from normalized name back to actual name.
- */
-
-
-/**
- * @ngdoc method
- * @name $compile.directive.Attributes#$set
- * @kind function
- *
- * @description
- * Set DOM element attribute value.
- *
- *
- * @param {string} name Normalized element attribute name of the property to modify. The name is
- * reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}
- * property to the original name.
- * @param {string} value Value to set the attribute to. The value can be an interpolated string.
- */
-
-
-
-/**
- * Closure compiler type information
- */
-
-function nodesetLinkingFn(
- /* angular.Scope */ scope,
- /* NodeList */ nodeList,
- /* Element */ rootElement,
- /* function(Function) */ boundTranscludeFn
-) {}
-
-function directiveLinkingFn(
- /* nodesetLinkingFn */ nodesetLinkingFn,
- /* angular.Scope */ scope,
- /* Node */ node,
- /* Element */ rootElement,
- /* function(Function) */ boundTranscludeFn
-) {}
-
-function tokenDifference(str1, str2) {
- var values = '',
- tokens1 = str1.split(/\s+/),
- tokens2 = str2.split(/\s+/);
-
- outer:
- for (var i = 0; i < tokens1.length; i++) {
- var token = tokens1[i];
- for (var j = 0; j < tokens2.length; j++) {
- if (token == tokens2[j]) continue outer;
- }
- values += (values.length > 0 ? ' ' : '') + token;
- }
- return values;
-}
-
-function removeComments(jqNodes) {
- jqNodes = jqLite(jqNodes);
- var i = jqNodes.length;
-
- if (i <= 1) {
- return jqNodes;
- }
-
- while (i--) {
- var node = jqNodes[i];
- if (node.nodeType === NODE_TYPE_COMMENT) {
- splice.call(jqNodes, i, 1);
- }
- }
- return jqNodes;
-}
-
-var $controllerMinErr = minErr('$controller');
-
-
-var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
-function identifierForController(controller, ident) {
- if (ident && isString(ident)) return ident;
- if (isString(controller)) {
- var match = CNTRL_REG.exec(controller);
- if (match) return match[3];
- }
-}
-
-
-/**
- * @ngdoc provider
- * @name $controllerProvider
- * @description
- * The {@link ng.$controller $controller service} is used by Angular to create new
- * controllers.
- *
- * This provider allows controller registration via the
- * {@link ng.$controllerProvider#register register} method.
- */
-function $ControllerProvider() {
- var controllers = {},
- globals = false;
-
- /**
- * @ngdoc method
- * @name $controllerProvider#register
- * @param {string|Object} name Controller name, or an object map of controllers where the keys are
- * the names and the values are the constructors.
- * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI
- * annotations in the array notation).
- */
- this.register = function(name, constructor) {
- assertNotHasOwnProperty(name, 'controller');
- if (isObject(name)) {
- extend(controllers, name);
- } else {
- controllers[name] = constructor;
- }
- };
-
- /**
- * @ngdoc method
- * @name $controllerProvider#allowGlobals
- * @description If called, allows `$controller` to find controller constructors on `window`
- */
- this.allowGlobals = function() {
- globals = true;
- };
-
-
- this.$get = ['$injector', '$window', function($injector, $window) {
-
- /**
- * @ngdoc service
- * @name $controller
- * @requires $injector
- *
- * @param {Function|string} constructor If called with a function then it's considered to be the
- * controller constructor function. Otherwise it's considered to be a string which is used
- * to retrieve the controller constructor using the following steps:
- *
- * * check if a controller with given name is registered via `$controllerProvider`
- * * check if evaluating the string on the current scope returns a constructor
- * * if $controllerProvider#allowGlobals, check `window[constructor]` on the global
- * `window` object (not recommended)
- *
- * The string can use the `controller as property` syntax, where the controller instance is published
- * as the specified property on the `scope`; the `scope` must be injected into `locals` param for this
- * to work correctly.
- *
- * @param {Object} locals Injection locals for Controller.
- * @return {Object} Instance of given controller.
- *
- * @description
- * `$controller` service is responsible for instantiating controllers.
- *
- * It's just a simple call to {@link auto.$injector $injector}, but extracted into
- * a service, so that one can override this service with [BC version](https://gist.github.com/1649788).
- */
- return function(expression, locals, later, ident) {
- // PRIVATE API:
- // param `later` --- indicates that the controller's constructor is invoked at a later time.
- // If true, $controller will allocate the object with the correct
- // prototype chain, but will not invoke the controller until a returned
- // callback is invoked.
- // param `ident` --- An optional label which overrides the label parsed from the controller
- // expression, if any.
- var instance, match, constructor, identifier;
- later = later === true;
- if (ident && isString(ident)) {
- identifier = ident;
- }
-
- if (isString(expression)) {
- match = expression.match(CNTRL_REG);
- if (!match) {
- throw $controllerMinErr('ctrlfmt',
- "Badly formed controller string '{0}'. " +
- "Must match `__name__ as __id__` or `__name__`.", expression);
- }
- constructor = match[1],
- identifier = identifier || match[3];
- expression = controllers.hasOwnProperty(constructor)
- ? controllers[constructor]
- : getter(locals.$scope, constructor, true) ||
- (globals ? getter($window, constructor, true) : undefined);
-
- assertArgFn(expression, constructor, true);
- }
-
- if (later) {
- // Instantiate controller later:
- // This machinery is used to create an instance of the object before calling the
- // controller's constructor itself.
- //
- // This allows properties to be added to the controller before the constructor is
- // invoked. Primarily, this is used for isolate scope bindings in $compile.
- //
- // This feature is not intended for use by applications, and is thus not documented
- // publicly.
- // Object creation: http://jsperf.com/create-constructor/2
- var controllerPrototype = (isArray(expression) ?
- expression[expression.length - 1] : expression).prototype;
- instance = Object.create(controllerPrototype || null);
-
- if (identifier) {
- addIdentifier(locals, identifier, instance, constructor || expression.name);
- }
-
- var instantiate;
- return instantiate = extend(function() {
- var result = $injector.invoke(expression, instance, locals, constructor);
- if (result !== instance && (isObject(result) || isFunction(result))) {
- instance = result;
- if (identifier) {
- // If result changed, re-assign controllerAs value to scope.
- addIdentifier(locals, identifier, instance, constructor || expression.name);
- }
- }
- return instance;
- }, {
- instance: instance,
- identifier: identifier
- });
- }
-
- instance = $injector.instantiate(expression, locals, constructor);
-
- if (identifier) {
- addIdentifier(locals, identifier, instance, constructor || expression.name);
- }
-
- return instance;
- };
-
- function addIdentifier(locals, identifier, instance, name) {
- if (!(locals && isObject(locals.$scope))) {
- throw minErr('$controller')('noscp',
- "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
- name, identifier);
- }
-
- locals.$scope[identifier] = instance;
- }
- }];
-}
-
-/**
- * @ngdoc service
- * @name $document
- * @requires $window
- *
- * @description
- * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.
- *
- * @example
- <example module="documentExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <p>$document title: <b ng-bind="title"></b></p>
- <p>window.document title: <b ng-bind="windowTitle"></b></p>
- </div>
- </file>
- <file name="script.js">
- angular.module('documentExample', [])
- .controller('ExampleController', ['$scope', '$document', function($scope, $document) {
- $scope.title = $document[0].title;
- $scope.windowTitle = angular.element(window.document)[0].title;
- }]);
- </file>
- </example>
- */
-function $DocumentProvider() {
- this.$get = ['$window', function(window) {
- return jqLite(window.document);
- }];
-}
-
-/**
- * @ngdoc service
- * @name $exceptionHandler
- * @requires ng.$log
- *
- * @description
- * Any uncaught exception in angular expressions is delegated to this service.
- * The default implementation simply delegates to `$log.error` which logs it into
- * the browser console.
- *
- * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by
- * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.
- *
- * ## Example:
- *
- * ```js
- * angular.module('exceptionOverride', []).factory('$exceptionHandler', function() {
- * return function(exception, cause) {
- * exception.message += ' (caused by "' + cause + '")';
- * throw exception;
- * };
- * });
- * ```
- *
- * This example will override the normal action of `$exceptionHandler`, to make angular
- * exceptions fail hard when they happen, instead of just logging to the console.
- *
- * <hr />
- * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`
- * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}
- * (unless executed during a digest).
- *
- * If you wish, you can manually delegate exceptions, e.g.
- * `try { ... } catch(e) { $exceptionHandler(e); }`
- *
- * @param {Error} exception Exception associated with the error.
- * @param {string=} cause optional information about the context in which
- * the error was thrown.
- *
- */
-function $ExceptionHandlerProvider() {
- this.$get = ['$log', function($log) {
- return function(exception, cause) {
- $log.error.apply($log, arguments);
- };
- }];
-}
-
-var $$ForceReflowProvider = function() {
- this.$get = ['$document', function($document) {
- return function(domNode) {
- //the line below will force the browser to perform a repaint so
- //that all the animated elements within the animation frame will
- //be properly updated and drawn on screen. This is required to
- //ensure that the preparation animation is properly flushed so that
- //the active state picks up from there. DO NOT REMOVE THIS LINE.
- //DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH
- //WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND
- //WILL TAKE YEARS AWAY FROM YOUR LIFE.
- if (domNode) {
- if (!domNode.nodeType && domNode instanceof jqLite) {
- domNode = domNode[0];
- }
- } else {
- domNode = $document[0].body;
- }
- return domNode.offsetWidth + 1;
- };
- }];
-};
-
-var APPLICATION_JSON = 'application/json';
-var CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};
-var JSON_START = /^\[|^\{(?!\{)/;
-var JSON_ENDS = {
- '[': /]$/,
- '{': /}$/
-};
-var JSON_PROTECTION_PREFIX = /^\)\]\}',?\n/;
-var $httpMinErr = minErr('$http');
-var $httpMinErrLegacyFn = function(method) {
- return function() {
- throw $httpMinErr('legacy', 'The method `{0}` on the promise returned from `$http` has been disabled.', method);
- };
-};
-
-function serializeValue(v) {
- if (isObject(v)) {
- return isDate(v) ? v.toISOString() : toJson(v);
- }
- return v;
-}
-
-
-function $HttpParamSerializerProvider() {
- /**
- * @ngdoc service
- * @name $httpParamSerializer
- * @description
- *
- * Default {@link $http `$http`} params serializer that converts objects to strings
- * according to the following rules:
- *
- * * `{'foo': 'bar'}` results in `foo=bar`
- * * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object)
- * * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element)
- * * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D"` (stringified and encoded representation of an object)
- *
- * Note that serializer will sort the request parameters alphabetically.
- * */
-
- this.$get = function() {
- return function ngParamSerializer(params) {
- if (!params) return '';
- var parts = [];
- forEachSorted(params, function(value, key) {
- if (value === null || isUndefined(value)) return;
- if (isArray(value)) {
- forEach(value, function(v, k) {
- parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(v)));
- });
- } else {
- parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(value)));
- }
- });
-
- return parts.join('&');
- };
- };
-}
-
-function $HttpParamSerializerJQLikeProvider() {
- /**
- * @ngdoc service
- * @name $httpParamSerializerJQLike
- * @description
- *
- * Alternative {@link $http `$http`} params serializer that follows
- * jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic.
- * The serializer will also sort the params alphabetically.
- *
- * To use it for serializing `$http` request parameters, set it as the `paramSerializer` property:
- *
- * ```js
- * $http({
- * url: myUrl,
- * method: 'GET',
- * params: myParams,
- * paramSerializer: '$httpParamSerializerJQLike'
- * });
- * ```
- *
- * It is also possible to set it as the default `paramSerializer` in the
- * {@link $httpProvider#defaults `$httpProvider`}.
- *
- * Additionally, you can inject the serializer and use it explicitly, for example to serialize
- * form data for submission:
- *
- * ```js
- * .controller(function($http, $httpParamSerializerJQLike) {
- * //...
- *
- * $http({
- * url: myUrl,
- * method: 'POST',
- * data: $httpParamSerializerJQLike(myData),
- * headers: {
- * 'Content-Type': 'application/x-www-form-urlencoded'
- * }
- * });
- *
- * });
- * ```
- *
- * */
- this.$get = function() {
- return function jQueryLikeParamSerializer(params) {
- if (!params) return '';
- var parts = [];
- serialize(params, '', true);
- return parts.join('&');
-
- function serialize(toSerialize, prefix, topLevel) {
- if (toSerialize === null || isUndefined(toSerialize)) return;
- if (isArray(toSerialize)) {
- forEach(toSerialize, function(value, index) {
- serialize(value, prefix + '[' + (isObject(value) ? index : '') + ']');
- });
- } else if (isObject(toSerialize) && !isDate(toSerialize)) {
- forEachSorted(toSerialize, function(value, key) {
- serialize(value, prefix +
- (topLevel ? '' : '[') +
- key +
- (topLevel ? '' : ']'));
- });
- } else {
- parts.push(encodeUriQuery(prefix) + '=' + encodeUriQuery(serializeValue(toSerialize)));
- }
- }
- };
- };
-}
-
-function defaultHttpResponseTransform(data, headers) {
- if (isString(data)) {
- // Strip json vulnerability protection prefix and trim whitespace
- var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim();
-
- if (tempData) {
- var contentType = headers('Content-Type');
- if ((contentType && (contentType.indexOf(APPLICATION_JSON) === 0)) || isJsonLike(tempData)) {
- data = fromJson(tempData);
- }
- }
- }
-
- return data;
-}
-
-function isJsonLike(str) {
- var jsonStart = str.match(JSON_START);
- return jsonStart && JSON_ENDS[jsonStart[0]].test(str);
-}
-
-/**
- * Parse headers into key value object
- *
- * @param {string} headers Raw headers as a string
- * @returns {Object} Parsed headers as key value object
- */
-function parseHeaders(headers) {
- var parsed = createMap(), i;
-
- function fillInParsed(key, val) {
- if (key) {
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
- }
- }
-
- if (isString(headers)) {
- forEach(headers.split('\n'), function(line) {
- i = line.indexOf(':');
- fillInParsed(lowercase(trim(line.substr(0, i))), trim(line.substr(i + 1)));
- });
- } else if (isObject(headers)) {
- forEach(headers, function(headerVal, headerKey) {
- fillInParsed(lowercase(headerKey), trim(headerVal));
- });
- }
-
- return parsed;
-}
-
-
-/**
- * Returns a function that provides access to parsed headers.
- *
- * Headers are lazy parsed when first requested.
- * @see parseHeaders
- *
- * @param {(string|Object)} headers Headers to provide access to.
- * @returns {function(string=)} Returns a getter function which if called with:
- *
- * - if called with single an argument returns a single header value or null
- * - if called with no arguments returns an object containing all headers.
- */
-function headersGetter(headers) {
- var headersObj;
-
- return function(name) {
- if (!headersObj) headersObj = parseHeaders(headers);
-
- if (name) {
- var value = headersObj[lowercase(name)];
- if (value === void 0) {
- value = null;
- }
- return value;
- }
-
- return headersObj;
- };
-}
-
-
-/**
- * Chain all given functions
- *
- * This function is used for both request and response transforming
- *
- * @param {*} data Data to transform.
- * @param {function(string=)} headers HTTP headers getter fn.
- * @param {number} status HTTP status code of the response.
- * @param {(Function|Array.<Function>)} fns Function or an array of functions.
- * @returns {*} Transformed data.
- */
-function transformData(data, headers, status, fns) {
- if (isFunction(fns)) {
- return fns(data, headers, status);
- }
-
- forEach(fns, function(fn) {
- data = fn(data, headers, status);
- });
-
- return data;
-}
-
-
-function isSuccess(status) {
- return 200 <= status && status < 300;
-}
-
-
-/**
- * @ngdoc provider
- * @name $httpProvider
- * @description
- * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.
- * */
-function $HttpProvider() {
- /**
- * @ngdoc property
- * @name $httpProvider#defaults
- * @description
- *
- * Object containing default values for all {@link ng.$http $http} requests.
- *
- * - **`defaults.cache`** - {Object} - an object built with {@link ng.$cacheFactory `$cacheFactory`}
- * that will provide the cache for all requests who set their `cache` property to `true`.
- * If you set the `defaults.cache = false` then only requests that specify their own custom
- * cache object will be cached. See {@link $http#caching $http Caching} for more information.
- *
- * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.
- * Defaults value is `'XSRF-TOKEN'`.
- *
- * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the
- * XSRF token. Defaults value is `'X-XSRF-TOKEN'`.
- *
- * - **`defaults.headers`** - {Object} - Default headers for all $http requests.
- * Refer to {@link ng.$http#setting-http-headers $http} for documentation on
- * setting default headers.
- * - **`defaults.headers.common`**
- * - **`defaults.headers.post`**
- * - **`defaults.headers.put`**
- * - **`defaults.headers.patch`**
- *
- *
- * - **`defaults.paramSerializer`** - `{string|function(Object<string,string>):string}` - A function
- * used to the prepare string representation of request parameters (specified as an object).
- * If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}.
- * Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}.
- *
- **/
- var defaults = this.defaults = {
- // transform incoming response data
- transformResponse: [defaultHttpResponseTransform],
-
- // transform outgoing request data
- transformRequest: [function(d) {
- return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d;
- }],
-
- // default headers
- headers: {
- common: {
- 'Accept': 'application/json, text/plain, */*'
- },
- post: shallowCopy(CONTENT_TYPE_APPLICATION_JSON),
- put: shallowCopy(CONTENT_TYPE_APPLICATION_JSON),
- patch: shallowCopy(CONTENT_TYPE_APPLICATION_JSON)
- },
-
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
-
- paramSerializer: '$httpParamSerializer'
- };
-
- var useApplyAsync = false;
- /**
- * @ngdoc method
- * @name $httpProvider#useApplyAsync
- * @description
- *
- * Configure $http service to combine processing of multiple http responses received at around
- * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in
- * significant performance improvement for bigger applications that make many HTTP requests
- * concurrently (common during application bootstrap).
- *
- * Defaults to false. If no value is specified, returns the current configured value.
- *
- * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred
- * "apply" on the next tick, giving time for subsequent requests in a roughly ~10ms window
- * to load and share the same digest cycle.
- *
- * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
- * otherwise, returns the current configured value.
- **/
- this.useApplyAsync = function(value) {
- if (isDefined(value)) {
- useApplyAsync = !!value;
- return this;
- }
- return useApplyAsync;
- };
-
- var useLegacyPromise = true;
- /**
- * @ngdoc method
- * @name $httpProvider#useLegacyPromiseExtensions
- * @description
- *
- * Configure `$http` service to return promises without the shorthand methods `success` and `error`.
- * This should be used to make sure that applications work without these methods.
- *
- * Defaults to true. If no value is specified, returns the current configured value.
- *
- * @param {boolean=} value If true, `$http` will return a promise with the deprecated legacy `success` and `error` methods.
- *
- * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
- * otherwise, returns the current configured value.
- **/
- this.useLegacyPromiseExtensions = function(value) {
- if (isDefined(value)) {
- useLegacyPromise = !!value;
- return this;
- }
- return useLegacyPromise;
- };
-
- /**
- * @ngdoc property
- * @name $httpProvider#interceptors
- * @description
- *
- * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}
- * pre-processing of request or postprocessing of responses.
- *
- * These service factories are ordered by request, i.e. they are applied in the same order as the
- * array, on request, but reverse order, on response.
- *
- * {@link ng.$http#interceptors Interceptors detailed info}
- **/
- var interceptorFactories = this.interceptors = [];
-
- this.$get = ['$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector',
- function($httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector) {
-
- var defaultCache = $cacheFactory('$http');
-
- /**
- * Make sure that default param serializer is exposed as a function
- */
- defaults.paramSerializer = isString(defaults.paramSerializer) ?
- $injector.get(defaults.paramSerializer) : defaults.paramSerializer;
-
- /**
- * Interceptors stored in reverse order. Inner interceptors before outer interceptors.
- * The reversal is needed so that we can build up the interception chain around the
- * server request.
- */
- var reversedInterceptors = [];
-
- forEach(interceptorFactories, function(interceptorFactory) {
- reversedInterceptors.unshift(isString(interceptorFactory)
- ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));
- });
-
- /**
- * @ngdoc service
- * @kind function
- * @name $http
- * @requires ng.$httpBackend
- * @requires $cacheFactory
- * @requires $rootScope
- * @requires $q
- * @requires $injector
- *
- * @description
- * The `$http` service is a core Angular service that facilitates communication with the remote
- * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)
- * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).
- *
- * For unit testing applications that use `$http` service, see
- * {@link ngMock.$httpBackend $httpBackend mock}.
- *
- * For a higher level of abstraction, please check out the {@link ngResource.$resource
- * $resource} service.
- *
- * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by
- * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage
- * it is important to familiarize yourself with these APIs and the guarantees they provide.
- *
- *
- * ## General usage
- * The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} —
- * that is used to generate an HTTP request and returns a {@link ng.$q promise}.
- *
- * ```js
- * // Simple GET request example:
- * $http({
- * method: 'GET',
- * url: '/someUrl'
- * }).then(function successCallback(response) {
- * // this callback will be called asynchronously
- * // when the response is available
- * }, function errorCallback(response) {
- * // called asynchronously if an error occurs
- * // or server returns response with an error status.
- * });
- * ```
- *
- * The response object has these properties:
- *
- * - **data** – `{string|Object}` – The response body transformed with the transform
- * functions.
- * - **status** – `{number}` – HTTP status code of the response.
- * - **headers** – `{function([headerName])}` – Header getter function.
- * - **config** – `{Object}` – The configuration object that was used to generate the request.
- * - **statusText** – `{string}` – HTTP status text of the response.
- *
- * A response status code between 200 and 299 is considered a success status and
- * will result in the success callback being called. Note that if the response is a redirect,
- * XMLHttpRequest will transparently follow it, meaning that the error callback will not be
- * called for such responses.
- *
- *
- * ## Shortcut methods
- *
- * Shortcut methods are also available. All shortcut methods require passing in the URL, and
- * request data must be passed in for POST/PUT requests. An optional config can be passed as the
- * last argument.
- *
- * ```js
- * $http.get('/someUrl', config).then(successCallback, errorCallback);
- * $http.post('/someUrl', data, config).then(successCallback, errorCallback);
- * ```
- *
- * Complete list of shortcut methods:
- *
- * - {@link ng.$http#get $http.get}
- * - {@link ng.$http#head $http.head}
- * - {@link ng.$http#post $http.post}
- * - {@link ng.$http#put $http.put}
- * - {@link ng.$http#delete $http.delete}
- * - {@link ng.$http#jsonp $http.jsonp}
- * - {@link ng.$http#patch $http.patch}
- *
- *
- * ## Writing Unit Tests that use $http
- * When unit testing (using {@link ngMock ngMock}), it is necessary to call
- * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending
- * request using trained responses.
- *
- * ```
- * $httpBackend.expectGET(...);
- * $http.get(...);
- * $httpBackend.flush();
- * ```
- *
- * ## Deprecation Notice
- * <div class="alert alert-danger">
- * The `$http` legacy promise methods `success` and `error` have been deprecated.
- * Use the standard `then` method instead.
- * If {@link $httpProvider#useLegacyPromiseExtensions `$httpProvider.useLegacyPromiseExtensions`} is set to
- * `false` then these methods will throw {@link $http:legacy `$http/legacy`} error.
- * </div>
- *
- * ## Setting HTTP Headers
- *
- * The $http service will automatically add certain HTTP headers to all requests. These defaults
- * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration
- * object, which currently contains this default configuration:
- *
- * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):
- * - `Accept: application/json, text/plain, * / *`
- * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)
- * - `Content-Type: application/json`
- * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)
- * - `Content-Type: application/json`
- *
- * To add or overwrite these defaults, simply add or remove a property from these configuration
- * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object
- * with the lowercased HTTP method name as the key, e.g.
- * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`.
- *
- * The defaults can also be set at runtime via the `$http.defaults` object in the same
- * fashion. For example:
- *
- * ```
- * module.run(function($http) {
- * $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w';
- * });
- * ```
- *
- * In addition, you can supply a `headers` property in the config object passed when
- * calling `$http(config)`, which overrides the defaults without changing them globally.
- *
- * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,
- * Use the `headers` property, setting the desired header to `undefined`. For example:
- *
- * ```js
- * var req = {
- * method: 'POST',
- * url: 'http://example.com',
- * headers: {
- * 'Content-Type': undefined
- * },
- * data: { test: 'test' }
- * }
- *
- * $http(req).then(function(){...}, function(){...});
- * ```
- *
- * ## Transforming Requests and Responses
- *
- * Both requests and responses can be transformed using transformation functions: `transformRequest`
- * and `transformResponse`. These properties can be a single function that returns
- * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,
- * which allows you to `push` or `unshift` a new transformation function into the transformation chain.
- *
- * ### Default Transformations
- *
- * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and
- * `defaults.transformResponse` properties. If a request does not provide its own transformations
- * then these will be applied.
- *
- * You can augment or replace the default transformations by modifying these properties by adding to or
- * replacing the array.
- *
- * Angular provides the following default transformations:
- *
- * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`):
- *
- * - If the `data` property of the request configuration object contains an object, serialize it
- * into JSON format.
- *
- * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`):
- *
- * - If XSRF prefix is detected, strip it (see Security Considerations section below).
- * - If JSON response is detected, deserialize it using a JSON parser.
- *
- *
- * ### Overriding the Default Transformations Per Request
- *
- * If you wish override the request/response transformations only for a single request then provide
- * `transformRequest` and/or `transformResponse` properties on the configuration object passed
- * into `$http`.
- *
- * Note that if you provide these properties on the config object the default transformations will be
- * overwritten. If you wish to augment the default transformations then you must include them in your
- * local transformation array.
- *
- * The following code demonstrates adding a new response transformation to be run after the default response
- * transformations have been run.
- *
- * ```js
- * function appendTransform(defaults, transform) {
- *
- * // We can't guarantee that the default transformation is an array
- * defaults = angular.isArray(defaults) ? defaults : [defaults];
- *
- * // Append the new transformation to the defaults
- * return defaults.concat(transform);
- * }
- *
- * $http({
- * url: '...',
- * method: 'GET',
- * transformResponse: appendTransform($http.defaults.transformResponse, function(value) {
- * return doTransform(value);
- * })
- * });
- * ```
- *
- *
- * ## Caching
- *
- * To enable caching, set the request configuration `cache` property to `true` (to use default
- * cache) or to a custom cache object (built with {@link ng.$cacheFactory `$cacheFactory`}).
- * When the cache is enabled, `$http` stores the response from the server in the specified
- * cache. The next time the same request is made, the response is served from the cache without
- * sending a request to the server.
- *
- * Note that even if the response is served from cache, delivery of the data is asynchronous in
- * the same way that real requests are.
- *
- * If there are multiple GET requests for the same URL that should be cached using the same
- * cache, but the cache is not populated yet, only one request to the server will be made and
- * the remaining requests will be fulfilled using the response from the first request.
- *
- * You can change the default cache to a new object (built with
- * {@link ng.$cacheFactory `$cacheFactory`}) by updating the
- * {@link ng.$http#defaults `$http.defaults.cache`} property. All requests who set
- * their `cache` property to `true` will now use this cache object.
- *
- * If you set the default cache to `false` then only requests that specify their own custom
- * cache object will be cached.
- *
- * ## Interceptors
- *
- * Before you start creating interceptors, be sure to understand the
- * {@link ng.$q $q and deferred/promise APIs}.
- *
- * For purposes of global error handling, authentication, or any kind of synchronous or
- * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be
- * able to intercept requests before they are handed to the server and
- * responses before they are handed over to the application code that
- * initiated these requests. The interceptors leverage the {@link ng.$q
- * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.
- *
- * The interceptors are service factories that are registered with the `$httpProvider` by
- * adding them to the `$httpProvider.interceptors` array. The factory is called and
- * injected with dependencies (if specified) and returns the interceptor.
- *
- * There are two kinds of interceptors (and two kinds of rejection interceptors):
- *
- * * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to
- * modify the `config` object or create a new one. The function needs to return the `config`
- * object directly, or a promise containing the `config` or a new `config` object.
- * * `requestError`: interceptor gets called when a previous interceptor threw an error or
- * resolved with a rejection.
- * * `response`: interceptors get called with http `response` object. The function is free to
- * modify the `response` object or create a new one. The function needs to return the `response`
- * object directly, or as a promise containing the `response` or a new `response` object.
- * * `responseError`: interceptor gets called when a previous interceptor threw an error or
- * resolved with a rejection.
- *
- *
- * ```js
- * // register the interceptor as a service
- * $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {
- * return {
- * // optional method
- * 'request': function(config) {
- * // do something on success
- * return config;
- * },
- *
- * // optional method
- * 'requestError': function(rejection) {
- * // do something on error
- * if (canRecover(rejection)) {
- * return responseOrNewPromise
- * }
- * return $q.reject(rejection);
- * },
- *
- *
- *
- * // optional method
- * 'response': function(response) {
- * // do something on success
- * return response;
- * },
- *
- * // optional method
- * 'responseError': function(rejection) {
- * // do something on error
- * if (canRecover(rejection)) {
- * return responseOrNewPromise
- * }
- * return $q.reject(rejection);
- * }
- * };
- * });
- *
- * $httpProvider.interceptors.push('myHttpInterceptor');
- *
- *
- * // alternatively, register the interceptor via an anonymous factory
- * $httpProvider.interceptors.push(function($q, dependency1, dependency2) {
- * return {
- * 'request': function(config) {
- * // same as above
- * },
- *
- * 'response': function(response) {
- * // same as above
- * }
- * };
- * });
- * ```
- *
- * ## Security Considerations
- *
- * When designing web applications, consider security threats from:
- *
- * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)
- * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)
- *
- * Both server and the client must cooperate in order to eliminate these threats. Angular comes
- * pre-configured with strategies that address these issues, but for this to work backend server
- * cooperation is required.
- *
- * ### JSON Vulnerability Protection
- *
- * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)
- * allows third party website to turn your JSON resource URL into
- * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To
- * counter this your server can prefix all JSON requests with following string `")]}',\n"`.
- * Angular will automatically strip the prefix before processing it as JSON.
- *
- * For example if your server needs to return:
- * ```js
- * ['one','two']
- * ```
- *
- * which is vulnerable to attack, your server can return:
- * ```js
- * )]}',
- * ['one','two']
- * ```
- *
- * Angular will strip the prefix, before processing the JSON.
- *
- *
- * ### Cross Site Request Forgery (XSRF) Protection
- *
- * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is an attack technique by
- * which the attacker can trick an authenticated user into unknowingly executing actions on your
- * website. Angular provides a mechanism to counter XSRF. When performing XHR requests, the
- * $http service reads a token from a cookie (by default, `XSRF-TOKEN`) and sets it as an HTTP
- * header (`X-XSRF-TOKEN`). Since only JavaScript that runs on your domain could read the
- * cookie, your server can be assured that the XHR came from JavaScript running on your domain.
- * The header will not be set for cross-domain requests.
- *
- * To take advantage of this, your server needs to set a token in a JavaScript readable session
- * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the
- * server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure
- * that only JavaScript running on your domain could have sent the request. The token must be
- * unique for each user and must be verifiable by the server (to prevent the JavaScript from
- * making up its own tokens). We recommend that the token is a digest of your site's
- * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography&#41;)
- * for added security.
- *
- * The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName
- * properties of either $httpProvider.defaults at config-time, $http.defaults at run-time,
- * or the per-request config object.
- *
- * In order to prevent collisions in environments where multiple Angular apps share the
- * same domain or subdomain, we recommend that each application uses unique cookie name.
- *
- * @param {object} config Object describing the request to be made and how it should be
- * processed. The object has following properties:
- *
- * - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)
- * - **url** – `{string}` – Absolute or relative URL of the resource that is being requested.
- * - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be serialized
- * with the `paramSerializer` and appended as GET parameters.
- * - **data** – `{string|Object}` – Data to be sent as the request message data.
- * - **headers** – `{Object}` – Map of strings or functions which return strings representing
- * HTTP headers to send to the server. If the return value of a function is null, the
- * header will not be sent. Functions accept a config object as an argument.
- * - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.
- * - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.
- * - **transformRequest** –
- * `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
- * transform function or an array of such functions. The transform function takes the http
- * request body and headers and returns its transformed (typically serialized) version.
- * See {@link ng.$http#overriding-the-default-transformations-per-request
- * Overriding the Default Transformations}
- * - **transformResponse** –
- * `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}` –
- * transform function or an array of such functions. The transform function takes the http
- * response body, headers and status and returns its transformed (typically deserialized) version.
- * See {@link ng.$http#overriding-the-default-transformations-per-request
- * Overriding the Default TransformationjqLiks}
- * - **paramSerializer** - `{string|function(Object<string,string>):string}` - A function used to
- * prepare the string representation of request parameters (specified as an object).
- * If specified as string, it is interpreted as function registered with the
- * {@link $injector $injector}, which means you can create your own serializer
- * by registering it as a {@link auto.$provide#service service}.
- * The default serializer is the {@link $httpParamSerializer $httpParamSerializer};
- * alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike}
- * - **cache** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the
- * GET request, otherwise if a cache instance built with
- * {@link ng.$cacheFactory $cacheFactory}, this cache will be used for
- * caching.
- * - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}
- * that should abort the request when resolved.
- * - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the
- * XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)
- * for more information.
- * - **responseType** - `{string}` - see
- * [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype).
- *
- * @returns {HttpPromise} Returns a {@link ng.$q `Promise}` that will be resolved to a response object
- * when the request succeeds or fails.
- *
- *
- * @property {Array.<Object>} pendingRequests Array of config objects for currently pending
- * requests. This is primarily meant to be used for debugging purposes.
- *
- *
- * @example
-<example module="httpExample">
-<file name="index.html">
- <div ng-controller="FetchController">
- <select ng-model="method" aria-label="Request method">
- <option>GET</option>
- <option>JSONP</option>
- </select>
- <input type="text" ng-model="url" size="80" aria-label="URL" />
- <button id="fetchbtn" ng-click="fetch()">fetch</button><br>
- <button id="samplegetbtn" ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
- <button id="samplejsonpbtn"
- ng-click="updateModel('JSONP',
- 'https://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')">
- Sample JSONP
- </button>
- <button id="invalidjsonpbtn"
- ng-click="updateModel('JSONP', 'https://angularjs.org/doesntexist&callback=JSON_CALLBACK')">
- Invalid JSONP
- </button>
- <pre>http status code: {{status}}</pre>
- <pre>http response data: {{data}}</pre>
- </div>
-</file>
-<file name="script.js">
- angular.module('httpExample', [])
- .controller('FetchController', ['$scope', '$http', '$templateCache',
- function($scope, $http, $templateCache) {
- $scope.method = 'GET';
- $scope.url = 'http-hello.html';
-
- $scope.fetch = function() {
- $scope.code = null;
- $scope.response = null;
-
- $http({method: $scope.method, url: $scope.url, cache: $templateCache}).
- then(function(response) {
- $scope.status = response.status;
- $scope.data = response.data;
- }, function(response) {
- $scope.data = response.data || "Request failed";
- $scope.status = response.status;
- });
- };
-
- $scope.updateModel = function(method, url) {
- $scope.method = method;
- $scope.url = url;
- };
- }]);
-</file>
-<file name="http-hello.html">
- Hello, $http!
-</file>
-<file name="protractor.js" type="protractor">
- var status = element(by.binding('status'));
- var data = element(by.binding('data'));
- var fetchBtn = element(by.id('fetchbtn'));
- var sampleGetBtn = element(by.id('samplegetbtn'));
- var sampleJsonpBtn = element(by.id('samplejsonpbtn'));
- var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));
-
- it('should make an xhr GET request', function() {
- sampleGetBtn.click();
- fetchBtn.click();
- expect(status.getText()).toMatch('200');
- expect(data.getText()).toMatch(/Hello, \$http!/);
- });
-
-// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185
-// it('should make a JSONP request to angularjs.org', function() {
-// sampleJsonpBtn.click();
-// fetchBtn.click();
-// expect(status.getText()).toMatch('200');
-// expect(data.getText()).toMatch(/Super Hero!/);
-// });
-
- it('should make JSONP request to invalid URL and invoke the error handler',
- function() {
- invalidJsonpBtn.click();
- fetchBtn.click();
- expect(status.getText()).toMatch('0');
- expect(data.getText()).toMatch('Request failed');
- });
-</file>
-</example>
- */
- function $http(requestConfig) {
-
- if (!isObject(requestConfig)) {
- throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig);
- }
-
- if (!isString(requestConfig.url)) {
- throw minErr('$http')('badreq', 'Http request configuration url must be a string. Received: {0}', requestConfig.url);
- }
-
- var config = extend({
- method: 'get',
- transformRequest: defaults.transformRequest,
- transformResponse: defaults.transformResponse,
- paramSerializer: defaults.paramSerializer
- }, requestConfig);
-
- config.headers = mergeHeaders(requestConfig);
- config.method = uppercase(config.method);
- config.paramSerializer = isString(config.paramSerializer) ?
- $injector.get(config.paramSerializer) : config.paramSerializer;
-
- var serverRequest = function(config) {
- var headers = config.headers;
- var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest);
-
- // strip content-type if data is undefined
- if (isUndefined(reqData)) {
- forEach(headers, function(value, header) {
- if (lowercase(header) === 'content-type') {
- delete headers[header];
- }
- });
- }
-
- if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {
- config.withCredentials = defaults.withCredentials;
- }
-
- // send request
- return sendReq(config, reqData).then(transformResponse, transformResponse);
- };
-
- var chain = [serverRequest, undefined];
- var promise = $q.when(config);
-
- // apply interceptors
- forEach(reversedInterceptors, function(interceptor) {
- if (interceptor.request || interceptor.requestError) {
- chain.unshift(interceptor.request, interceptor.requestError);
- }
- if (interceptor.response || interceptor.responseError) {
- chain.push(interceptor.response, interceptor.responseError);
- }
- });
-
- while (chain.length) {
- var thenFn = chain.shift();
- var rejectFn = chain.shift();
-
- promise = promise.then(thenFn, rejectFn);
- }
-
- if (useLegacyPromise) {
- promise.success = function(fn) {
- assertArgFn(fn, 'fn');
-
- promise.then(function(response) {
- fn(response.data, response.status, response.headers, config);
- });
- return promise;
- };
-
- promise.error = function(fn) {
- assertArgFn(fn, 'fn');
-
- promise.then(null, function(response) {
- fn(response.data, response.status, response.headers, config);
- });
- return promise;
- };
- } else {
- promise.success = $httpMinErrLegacyFn('success');
- promise.error = $httpMinErrLegacyFn('error');
- }
-
- return promise;
-
- function transformResponse(response) {
- // make a copy since the response must be cacheable
- var resp = extend({}, response);
- resp.data = transformData(response.data, response.headers, response.status,
- config.transformResponse);
- return (isSuccess(response.status))
- ? resp
- : $q.reject(resp);
- }
-
- function executeHeaderFns(headers, config) {
- var headerContent, processedHeaders = {};
-
- forEach(headers, function(headerFn, header) {
- if (isFunction(headerFn)) {
- headerContent = headerFn(config);
- if (headerContent != null) {
- processedHeaders[header] = headerContent;
- }
- } else {
- processedHeaders[header] = headerFn;
- }
- });
-
- return processedHeaders;
- }
-
- function mergeHeaders(config) {
- var defHeaders = defaults.headers,
- reqHeaders = extend({}, config.headers),
- defHeaderName, lowercaseDefHeaderName, reqHeaderName;
-
- defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);
-
- // using for-in instead of forEach to avoid unnecessary iteration after header has been found
- defaultHeadersIteration:
- for (defHeaderName in defHeaders) {
- lowercaseDefHeaderName = lowercase(defHeaderName);
-
- for (reqHeaderName in reqHeaders) {
- if (lowercase(reqHeaderName) === lowercaseDefHeaderName) {
- continue defaultHeadersIteration;
- }
- }
-
- reqHeaders[defHeaderName] = defHeaders[defHeaderName];
- }
-
- // execute if header value is a function for merged headers
- return executeHeaderFns(reqHeaders, shallowCopy(config));
- }
- }
-
- $http.pendingRequests = [];
-
- /**
- * @ngdoc method
- * @name $http#get
- *
- * @description
- * Shortcut method to perform `GET` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#delete
- *
- * @description
- * Shortcut method to perform `DELETE` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#head
- *
- * @description
- * Shortcut method to perform `HEAD` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#jsonp
- *
- * @description
- * Shortcut method to perform `JSONP` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request.
- * The name of the callback should be the string `JSON_CALLBACK`.
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
- createShortMethods('get', 'delete', 'head', 'jsonp');
-
- /**
- * @ngdoc method
- * @name $http#post
- *
- * @description
- * Shortcut method to perform `POST` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {*} data Request content
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#put
- *
- * @description
- * Shortcut method to perform `PUT` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {*} data Request content
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
-
- /**
- * @ngdoc method
- * @name $http#patch
- *
- * @description
- * Shortcut method to perform `PATCH` request.
- *
- * @param {string} url Relative or absolute URL specifying the destination of the request
- * @param {*} data Request content
- * @param {Object=} config Optional configuration object
- * @returns {HttpPromise} Future object
- */
- createShortMethodsWithData('post', 'put', 'patch');
-
- /**
- * @ngdoc property
- * @name $http#defaults
- *
- * @description
- * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of
- * default headers, withCredentials as well as request and response transformations.
- *
- * See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.
- */
- $http.defaults = defaults;
-
-
- return $http;
-
-
- function createShortMethods(names) {
- forEach(arguments, function(name) {
- $http[name] = function(url, config) {
- return $http(extend({}, config || {}, {
- method: name,
- url: url
- }));
- };
- });
- }
-
-
- function createShortMethodsWithData(name) {
- forEach(arguments, function(name) {
- $http[name] = function(url, data, config) {
- return $http(extend({}, config || {}, {
- method: name,
- url: url,
- data: data
- }));
- };
- });
- }
-
-
- /**
- * Makes the request.
- *
- * !!! ACCESSES CLOSURE VARS:
- * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests
- */
- function sendReq(config, reqData) {
- var deferred = $q.defer(),
- promise = deferred.promise,
- cache,
- cachedResp,
- reqHeaders = config.headers,
- url = buildUrl(config.url, config.paramSerializer(config.params));
-
- $http.pendingRequests.push(config);
- promise.then(removePendingReq, removePendingReq);
-
-
- if ((config.cache || defaults.cache) && config.cache !== false &&
- (config.method === 'GET' || config.method === 'JSONP')) {
- cache = isObject(config.cache) ? config.cache
- : isObject(defaults.cache) ? defaults.cache
- : defaultCache;
- }
-
- if (cache) {
- cachedResp = cache.get(url);
- if (isDefined(cachedResp)) {
- if (isPromiseLike(cachedResp)) {
- // cached request has already been sent, but there is no response yet
- cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult);
- } else {
- // serving from cache
- if (isArray(cachedResp)) {
- resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3]);
- } else {
- resolvePromise(cachedResp, 200, {}, 'OK');
- }
- }
- } else {
- // put the promise for the non-transformed response into cache as a placeholder
- cache.put(url, promise);
- }
- }
-
-
- // if we won't have the response in cache, set the xsrf headers and
- // send the request to the backend
- if (isUndefined(cachedResp)) {
- var xsrfValue = urlIsSameOrigin(config.url)
- ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName]
- : undefined;
- if (xsrfValue) {
- reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue;
- }
-
- $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,
- config.withCredentials, config.responseType);
- }
-
- return promise;
-
-
- /**
- * Callback registered to $httpBackend():
- * - caches the response if desired
- * - resolves the raw $http promise
- * - calls $apply
- */
- function done(status, response, headersString, statusText) {
- if (cache) {
- if (isSuccess(status)) {
- cache.put(url, [status, response, parseHeaders(headersString), statusText]);
- } else {
- // remove promise from the cache
- cache.remove(url);
- }
- }
-
- function resolveHttpPromise() {
- resolvePromise(response, status, headersString, statusText);
- }
-
- if (useApplyAsync) {
- $rootScope.$applyAsync(resolveHttpPromise);
- } else {
- resolveHttpPromise();
- if (!$rootScope.$$phase) $rootScope.$apply();
- }
- }
-
-
- /**
- * Resolves the raw $http promise.
- */
- function resolvePromise(response, status, headers, statusText) {
- //status: HTTP response status code, 0, -1 (aborted by timeout / promise)
- status = status >= -1 ? status : 0;
-
- (isSuccess(status) ? deferred.resolve : deferred.reject)({
- data: response,
- status: status,
- headers: headersGetter(headers),
- config: config,
- statusText: statusText
- });
- }
-
- function resolvePromiseWithResult(result) {
- resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText);
- }
-
- function removePendingReq() {
- var idx = $http.pendingRequests.indexOf(config);
- if (idx !== -1) $http.pendingRequests.splice(idx, 1);
- }
- }
-
-
- function buildUrl(url, serializedParams) {
- if (serializedParams.length > 0) {
- url += ((url.indexOf('?') == -1) ? '?' : '&') + serializedParams;
- }
- return url;
- }
- }];
-}
-
-/**
- * @ngdoc service
- * @name $xhrFactory
- *
- * @description
- * Factory function used to create XMLHttpRequest objects.
- *
- * Replace or decorate this service to create your own custom XMLHttpRequest objects.
- *
- * ```
- * angular.module('myApp', [])
- * .factory('$xhrFactory', function() {
- * return function createXhr(method, url) {
- * return new window.XMLHttpRequest({mozSystem: true});
- * };
- * });
- * ```
- *
- * @param {string} method HTTP method of the request (GET, POST, PUT, ..)
- * @param {string} url URL of the request.
- */
-function $xhrFactoryProvider() {
- this.$get = function() {
- return function createXhr() {
- return new window.XMLHttpRequest();
- };
- };
-}
-
-/**
- * @ngdoc service
- * @name $httpBackend
- * @requires $window
- * @requires $document
- * @requires $xhrFactory
- *
- * @description
- * HTTP backend used by the {@link ng.$http service} that delegates to
- * XMLHttpRequest object or JSONP and deals with browser incompatibilities.
- *
- * You should never need to use this service directly, instead use the higher-level abstractions:
- * {@link ng.$http $http} or {@link ngResource.$resource $resource}.
- *
- * During testing this implementation is swapped with {@link ngMock.$httpBackend mock
- * $httpBackend} which can be trained with responses.
- */
-function $HttpBackendProvider() {
- this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) {
- return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]);
- }];
-}
-
-function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
- // TODO(vojta): fix the signature
- return function(method, url, post, callback, headers, timeout, withCredentials, responseType) {
- $browser.$$incOutstandingRequestCount();
- url = url || $browser.url();
-
- if (lowercase(method) == 'jsonp') {
- var callbackId = '_' + (callbacks.counter++).toString(36);
- callbacks[callbackId] = function(data) {
- callbacks[callbackId].data = data;
- callbacks[callbackId].called = true;
- };
-
- var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId),
- callbackId, function(status, text) {
- completeRequest(callback, status, callbacks[callbackId].data, "", text);
- callbacks[callbackId] = noop;
- });
- } else {
-
- var xhr = createXhr(method, url);
-
- xhr.open(method, url, true);
- forEach(headers, function(value, key) {
- if (isDefined(value)) {
- xhr.setRequestHeader(key, value);
- }
- });
-
- xhr.onload = function requestLoaded() {
- var statusText = xhr.statusText || '';
-
- // responseText is the old-school way of retrieving response (supported by IE9)
- // response/responseType properties were introduced in XHR Level2 spec (supported by IE10)
- var response = ('response' in xhr) ? xhr.response : xhr.responseText;
-
- // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)
- var status = xhr.status === 1223 ? 204 : xhr.status;
-
- // fix status code when it is 0 (0 status is undocumented).
- // Occurs when accessing file resources or on Android 4.1 stock browser
- // while retrieving files from application cache.
- if (status === 0) {
- status = response ? 200 : urlResolve(url).protocol == 'file' ? 404 : 0;
- }
-
- completeRequest(callback,
- status,
- response,
- xhr.getAllResponseHeaders(),
- statusText);
- };
-
- var requestError = function() {
- // The response is always empty
- // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error
- completeRequest(callback, -1, null, null, '');
- };
-
- xhr.onerror = requestError;
- xhr.onabort = requestError;
-
- if (withCredentials) {
- xhr.withCredentials = true;
- }
-
- if (responseType) {
- try {
- xhr.responseType = responseType;
- } catch (e) {
- // WebKit added support for the json responseType value on 09/03/2013
- // https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are
- // known to throw when setting the value "json" as the response type. Other older
- // browsers implementing the responseType
- //
- // The json response type can be ignored if not supported, because JSON payloads are
- // parsed on the client-side regardless.
- if (responseType !== 'json') {
- throw e;
- }
- }
- }
-
- xhr.send(isUndefined(post) ? null : post);
- }
-
- if (timeout > 0) {
- var timeoutId = $browserDefer(timeoutRequest, timeout);
- } else if (isPromiseLike(timeout)) {
- timeout.then(timeoutRequest);
- }
-
-
- function timeoutRequest() {
- jsonpDone && jsonpDone();
- xhr && xhr.abort();
- }
-
- function completeRequest(callback, status, response, headersString, statusText) {
- // cancel timeout and subsequent timeout promise resolution
- if (isDefined(timeoutId)) {
- $browserDefer.cancel(timeoutId);
- }
- jsonpDone = xhr = null;
-
- callback(status, response, headersString, statusText);
- $browser.$$completeOutstandingRequest(noop);
- }
- };
-
- function jsonpReq(url, callbackId, done) {
- // we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:
- // - fetches local scripts via XHR and evals them
- // - adds and immediately removes script elements from the document
- var script = rawDocument.createElement('script'), callback = null;
- script.type = "text/javascript";
- script.src = url;
- script.async = true;
-
- callback = function(event) {
- removeEventListenerFn(script, "load", callback);
- removeEventListenerFn(script, "error", callback);
- rawDocument.body.removeChild(script);
- script = null;
- var status = -1;
- var text = "unknown";
-
- if (event) {
- if (event.type === "load" && !callbacks[callbackId].called) {
- event = { type: "error" };
- }
- text = event.type;
- status = event.type === "error" ? 404 : 200;
- }
-
- if (done) {
- done(status, text);
- }
- };
-
- addEventListenerFn(script, "load", callback);
- addEventListenerFn(script, "error", callback);
- rawDocument.body.appendChild(script);
- return callback;
- }
-}
-
-var $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate');
-$interpolateMinErr.throwNoconcat = function(text) {
- throw $interpolateMinErr('noconcat',
- "Error while interpolating: {0}\nStrict Contextual Escaping disallows " +
- "interpolations that concatenate multiple expressions when a trusted value is " +
- "required. See http://docs.angularjs.org/api/ng.$sce", text);
-};
-
-$interpolateMinErr.interr = function(text, err) {
- return $interpolateMinErr('interr', "Can't interpolate: {0}\n{1}", text, err.toString());
-};
-
-/**
- * @ngdoc provider
- * @name $interpolateProvider
- *
- * @description
- *
- * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
- *
- * <div class="alert alert-danger">
- * This feature is sometimes used to mix different markup languages, e.g. to wrap an Angular
- * template within a Python Jinja template (or any other template language). Mixing templating
- * languages is **very dangerous**. The embedding template language will not safely escape Angular
- * expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS)
- * security bugs!
- * </div>
- *
- * @example
-<example name="custom-interpolation-markup" module="customInterpolationApp">
-<file name="index.html">
-<script>
- var customInterpolationApp = angular.module('customInterpolationApp', []);
-
- customInterpolationApp.config(function($interpolateProvider) {
- $interpolateProvider.startSymbol('//');
- $interpolateProvider.endSymbol('//');
- });
-
-
- customInterpolationApp.controller('DemoController', function() {
- this.label = "This binding is brought you by // interpolation symbols.";
- });
-</script>
-<div ng-controller="DemoController as demo">
- //demo.label//
-</div>
-</file>
-<file name="protractor.js" type="protractor">
- it('should interpolate binding with custom symbols', function() {
- expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');
- });
-</file>
-</example>
- */
-function $InterpolateProvider() {
- var startSymbol = '{{';
- var endSymbol = '}}';
-
- /**
- * @ngdoc method
- * @name $interpolateProvider#startSymbol
- * @description
- * Symbol to denote start of expression in the interpolated string. Defaults to `{{`.
- *
- * @param {string=} value new value to set the starting symbol to.
- * @returns {string|self} Returns the symbol when used as getter and self if used as setter.
- */
- this.startSymbol = function(value) {
- if (value) {
- startSymbol = value;
- return this;
- } else {
- return startSymbol;
- }
- };
-
- /**
- * @ngdoc method
- * @name $interpolateProvider#endSymbol
- * @description
- * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
- *
- * @param {string=} value new value to set the ending symbol to.
- * @returns {string|self} Returns the symbol when used as getter and self if used as setter.
- */
- this.endSymbol = function(value) {
- if (value) {
- endSymbol = value;
- return this;
- } else {
- return endSymbol;
- }
- };
-
-
- this.$get = ['$parse', '$exceptionHandler', '$sce', function($parse, $exceptionHandler, $sce) {
- var startSymbolLength = startSymbol.length,
- endSymbolLength = endSymbol.length,
- escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'),
- escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');
-
- function escape(ch) {
- return '\\\\\\' + ch;
- }
-
- function unescapeText(text) {
- return text.replace(escapedStartRegexp, startSymbol).
- replace(escapedEndRegexp, endSymbol);
- }
-
- function stringify(value) {
- if (value == null) { // null || undefined
- return '';
- }
- switch (typeof value) {
- case 'string':
- break;
- case 'number':
- value = '' + value;
- break;
- default:
- value = toJson(value);
- }
-
- return value;
- }
-
- //TODO: this is the same as the constantWatchDelegate in parse.js
- function constantWatchDelegate(scope, listener, objectEquality, constantInterp) {
- var unwatch;
- return unwatch = scope.$watch(function constantInterpolateWatch(scope) {
- unwatch();
- return constantInterp(scope);
- }, listener, objectEquality);
- }
-
- /**
- * @ngdoc service
- * @name $interpolate
- * @kind function
- *
- * @requires $parse
- * @requires $sce
- *
- * @description
- *
- * Compiles a string with markup into an interpolation function. This service is used by the
- * HTML {@link ng.$compile $compile} service for data binding. See
- * {@link ng.$interpolateProvider $interpolateProvider} for configuring the
- * interpolation markup.
- *
- *
- * ```js
- * var $interpolate = ...; // injected
- * var exp = $interpolate('Hello {{name | uppercase}}!');
- * expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!');
- * ```
- *
- * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is
- * `true`, the interpolation function will return `undefined` unless all embedded expressions
- * evaluate to a value other than `undefined`.
- *
- * ```js
- * var $interpolate = ...; // injected
- * var context = {greeting: 'Hello', name: undefined };
- *
- * // default "forgiving" mode
- * var exp = $interpolate('{{greeting}} {{name}}!');
- * expect(exp(context)).toEqual('Hello !');
- *
- * // "allOrNothing" mode
- * exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
- * expect(exp(context)).toBeUndefined();
- * context.name = 'Angular';
- * expect(exp(context)).toEqual('Hello Angular!');
- * ```
- *
- * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.
- *
- * ####Escaped Interpolation
- * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers
- * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).
- * It will be rendered as a regular start/end marker, and will not be interpreted as an expression
- * or binding.
- *
- * This enables web-servers to prevent script injection attacks and defacing attacks, to some
- * degree, while also enabling code examples to work without relying on the
- * {@link ng.directive:ngNonBindable ngNonBindable} directive.
- *
- * **For security purposes, it is strongly encouraged that web servers escape user-supplied data,
- * replacing angle brackets (&lt;, &gt;) with &amp;lt; and &amp;gt; respectively, and replacing all
- * interpolation start/end markers with their escaped counterparts.**
- *
- * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered
- * output when the $interpolate service processes the text. So, for HTML elements interpolated
- * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter
- * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,
- * this is typically useful only when user-data is used in rendering a template from the server, or
- * when otherwise untrusted data is used by a directive.
- *
- * <example>
- * <file name="index.html">
- * <div ng-init="username='A user'">
- * <p ng-init="apptitle='Escaping demo'">{{apptitle}}: \{\{ username = "defaced value"; \}\}
- * </p>
- * <p><strong>{{username}}</strong> attempts to inject code which will deface the
- * application, but fails to accomplish their task, because the server has correctly
- * escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)
- * characters.</p>
- * <p>Instead, the result of the attempted script injection is visible, and can be removed
- * from the database by an administrator.</p>
- * </div>
- * </file>
- * </example>
- *
- * @param {string} text The text with markup to interpolate.
- * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have
- * embedded expression in order to return an interpolation function. Strings with no
- * embedded expression will return null for the interpolation function.
- * @param {string=} trustedContext when provided, the returned function passes the interpolated
- * result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,
- * trustedContext)} before returning it. Refer to the {@link ng.$sce $sce} service that
- * provides Strict Contextual Escaping for details.
- * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined
- * unless all embedded expressions evaluate to a value other than `undefined`.
- * @returns {function(context)} an interpolation function which is used to compute the
- * interpolated string. The function has these parameters:
- *
- * - `context`: evaluation context for all expressions embedded in the interpolated text
- */
- function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) {
- // Provide a quick exit and simplified result function for text with no interpolation
- if (!text.length || text.indexOf(startSymbol) === -1) {
- var constantInterp;
- if (!mustHaveExpression) {
- var unescapedText = unescapeText(text);
- constantInterp = valueFn(unescapedText);
- constantInterp.exp = text;
- constantInterp.expressions = [];
- constantInterp.$$watchDelegate = constantWatchDelegate;
- }
- return constantInterp;
- }
-
- allOrNothing = !!allOrNothing;
- var startIndex,
- endIndex,
- index = 0,
- expressions = [],
- parseFns = [],
- textLength = text.length,
- exp,
- concat = [],
- expressionPositions = [];
-
- while (index < textLength) {
- if (((startIndex = text.indexOf(startSymbol, index)) != -1) &&
- ((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) != -1)) {
- if (index !== startIndex) {
- concat.push(unescapeText(text.substring(index, startIndex)));
- }
- exp = text.substring(startIndex + startSymbolLength, endIndex);
- expressions.push(exp);
- parseFns.push($parse(exp, parseStringifyInterceptor));
- index = endIndex + endSymbolLength;
- expressionPositions.push(concat.length);
- concat.push('');
- } else {
- // we did not find an interpolation, so we have to add the remainder to the separators array
- if (index !== textLength) {
- concat.push(unescapeText(text.substring(index)));
- }
- break;
- }
- }
-
- // Concatenating expressions makes it hard to reason about whether some combination of
- // concatenated values are unsafe to use and could easily lead to XSS. By requiring that a
- // single expression be used for iframe[src], object[src], etc., we ensure that the value
- // that's used is assigned or constructed by some JS code somewhere that is more testable or
- // make it obvious that you bound the value to some user controlled value. This helps reduce
- // the load when auditing for XSS issues.
- if (trustedContext && concat.length > 1) {
- $interpolateMinErr.throwNoconcat(text);
- }
-
- if (!mustHaveExpression || expressions.length) {
- var compute = function(values) {
- for (var i = 0, ii = expressions.length; i < ii; i++) {
- if (allOrNothing && isUndefined(values[i])) return;
- concat[expressionPositions[i]] = values[i];
- }
- return concat.join('');
- };
-
- var getValue = function(value) {
- return trustedContext ?
- $sce.getTrusted(trustedContext, value) :
- $sce.valueOf(value);
- };
-
- return extend(function interpolationFn(context) {
- var i = 0;
- var ii = expressions.length;
- var values = new Array(ii);
-
- try {
- for (; i < ii; i++) {
- values[i] = parseFns[i](context);
- }
-
- return compute(values);
- } catch (err) {
- $exceptionHandler($interpolateMinErr.interr(text, err));
- }
-
- }, {
- // all of these properties are undocumented for now
- exp: text, //just for compatibility with regular watchers created via $watch
- expressions: expressions,
- $$watchDelegate: function(scope, listener) {
- var lastValue;
- return scope.$watchGroup(parseFns, function interpolateFnWatcher(values, oldValues) {
- var currValue = compute(values);
- if (isFunction(listener)) {
- listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope);
- }
- lastValue = currValue;
- });
- }
- });
- }
-
- function parseStringifyInterceptor(value) {
- try {
- value = getValue(value);
- return allOrNothing && !isDefined(value) ? value : stringify(value);
- } catch (err) {
- $exceptionHandler($interpolateMinErr.interr(text, err));
- }
- }
- }
-
-
- /**
- * @ngdoc method
- * @name $interpolate#startSymbol
- * @description
- * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.
- *
- * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change
- * the symbol.
- *
- * @returns {string} start symbol.
- */
- $interpolate.startSymbol = function() {
- return startSymbol;
- };
-
-
- /**
- * @ngdoc method
- * @name $interpolate#endSymbol
- * @description
- * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
- *
- * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change
- * the symbol.
- *
- * @returns {string} end symbol.
- */
- $interpolate.endSymbol = function() {
- return endSymbol;
- };
-
- return $interpolate;
- }];
-}
-
-function $IntervalProvider() {
- this.$get = ['$rootScope', '$window', '$q', '$$q', '$browser',
- function($rootScope, $window, $q, $$q, $browser) {
- var intervals = {};
-
-
- /**
- * @ngdoc service
- * @name $interval
- *
- * @description
- * Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay`
- * milliseconds.
- *
- * The return value of registering an interval function is a promise. This promise will be
- * notified upon each tick of the interval, and will be resolved after `count` iterations, or
- * run indefinitely if `count` is not defined. The value of the notification will be the
- * number of iterations that have run.
- * To cancel an interval, call `$interval.cancel(promise)`.
- *
- * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to
- * move forward by `millis` milliseconds and trigger any functions scheduled to run in that
- * time.
- *
- * <div class="alert alert-warning">
- * **Note**: Intervals created by this service must be explicitly destroyed when you are finished
- * with them. In particular they are not automatically destroyed when a controller's scope or a
- * directive's element are destroyed.
- * You should take this into consideration and make sure to always cancel the interval at the
- * appropriate moment. See the example below for more details on how and when to do this.
- * </div>
- *
- * @param {function()} fn A function that should be called repeatedly.
- * @param {number} delay Number of milliseconds between each function call.
- * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat
- * indefinitely.
- * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
- * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
- * @param {...*=} Pass additional parameters to the executed function.
- * @returns {promise} A promise which will be notified on each iteration.
- *
- * @example
- * <example module="intervalExample">
- * <file name="index.html">
- * <script>
- * angular.module('intervalExample', [])
- * .controller('ExampleController', ['$scope', '$interval',
- * function($scope, $interval) {
- * $scope.format = 'M/d/yy h:mm:ss a';
- * $scope.blood_1 = 100;
- * $scope.blood_2 = 120;
- *
- * var stop;
- * $scope.fight = function() {
- * // Don't start a new fight if we are already fighting
- * if ( angular.isDefined(stop) ) return;
- *
- * stop = $interval(function() {
- * if ($scope.blood_1 > 0 && $scope.blood_2 > 0) {
- * $scope.blood_1 = $scope.blood_1 - 3;
- * $scope.blood_2 = $scope.blood_2 - 4;
- * } else {
- * $scope.stopFight();
- * }
- * }, 100);
- * };
- *
- * $scope.stopFight = function() {
- * if (angular.isDefined(stop)) {
- * $interval.cancel(stop);
- * stop = undefined;
- * }
- * };
- *
- * $scope.resetFight = function() {
- * $scope.blood_1 = 100;
- * $scope.blood_2 = 120;
- * };
- *
- * $scope.$on('$destroy', function() {
- * // Make sure that the interval is destroyed too
- * $scope.stopFight();
- * });
- * }])
- * // Register the 'myCurrentTime' directive factory method.
- * // We inject $interval and dateFilter service since the factory method is DI.
- * .directive('myCurrentTime', ['$interval', 'dateFilter',
- * function($interval, dateFilter) {
- * // return the directive link function. (compile function not needed)
- * return function(scope, element, attrs) {
- * var format, // date format
- * stopTime; // so that we can cancel the time updates
- *
- * // used to update the UI
- * function updateTime() {
- * element.text(dateFilter(new Date(), format));
- * }
- *
- * // watch the expression, and update the UI on change.
- * scope.$watch(attrs.myCurrentTime, function(value) {
- * format = value;
- * updateTime();
- * });
- *
- * stopTime = $interval(updateTime, 1000);
- *
- * // listen on DOM destroy (removal) event, and cancel the next UI update
- * // to prevent updating time after the DOM element was removed.
- * element.on('$destroy', function() {
- * $interval.cancel(stopTime);
- * });
- * }
- * }]);
- * </script>
- *
- * <div>
- * <div ng-controller="ExampleController">
- * <label>Date format: <input ng-model="format"></label> <hr/>
- * Current time is: <span my-current-time="format"></span>
- * <hr/>
- * Blood 1 : <font color='red'>{{blood_1}}</font>
- * Blood 2 : <font color='red'>{{blood_2}}</font>
- * <button type="button" data-ng-click="fight()">Fight</button>
- * <button type="button" data-ng-click="stopFight()">StopFight</button>
- * <button type="button" data-ng-click="resetFight()">resetFight</button>
- * </div>
- * </div>
- *
- * </file>
- * </example>
- */
- function interval(fn, delay, count, invokeApply) {
- var hasParams = arguments.length > 4,
- args = hasParams ? sliceArgs(arguments, 4) : [],
- setInterval = $window.setInterval,
- clearInterval = $window.clearInterval,
- iteration = 0,
- skipApply = (isDefined(invokeApply) && !invokeApply),
- deferred = (skipApply ? $$q : $q).defer(),
- promise = deferred.promise;
-
- count = isDefined(count) ? count : 0;
-
- promise.$$intervalId = setInterval(function tick() {
- if (skipApply) {
- $browser.defer(callback);
- } else {
- $rootScope.$evalAsync(callback);
- }
- deferred.notify(iteration++);
-
- if (count > 0 && iteration >= count) {
- deferred.resolve(iteration);
- clearInterval(promise.$$intervalId);
- delete intervals[promise.$$intervalId];
- }
-
- if (!skipApply) $rootScope.$apply();
-
- }, delay);
-
- intervals[promise.$$intervalId] = deferred;
-
- return promise;
-
- function callback() {
- if (!hasParams) {
- fn(iteration);
- } else {
- fn.apply(null, args);
- }
- }
- }
-
-
- /**
- * @ngdoc method
- * @name $interval#cancel
- *
- * @description
- * Cancels a task associated with the `promise`.
- *
- * @param {Promise=} promise returned by the `$interval` function.
- * @returns {boolean} Returns `true` if the task was successfully canceled.
- */
- interval.cancel = function(promise) {
- if (promise && promise.$$intervalId in intervals) {
- intervals[promise.$$intervalId].reject('canceled');
- $window.clearInterval(promise.$$intervalId);
- delete intervals[promise.$$intervalId];
- return true;
- }
- return false;
- };
-
- return interval;
- }];
-}
-
-/**
- * @ngdoc service
- * @name $locale
- *
- * @description
- * $locale service provides localization rules for various Angular components. As of right now the
- * only public api is:
- *
- * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)
- */
-
-var PATH_MATCH = /^([^\?#]*)(\?([^#]*))?(#(.*))?$/,
- DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};
-var $locationMinErr = minErr('$location');
-
-
-/**
- * Encode path using encodeUriSegment, ignoring forward slashes
- *
- * @param {string} path Path to encode
- * @returns {string}
- */
-function encodePath(path) {
- var segments = path.split('/'),
- i = segments.length;
-
- while (i--) {
- segments[i] = encodeUriSegment(segments[i]);
- }
-
- return segments.join('/');
-}
-
-function parseAbsoluteUrl(absoluteUrl, locationObj) {
- var parsedUrl = urlResolve(absoluteUrl);
-
- locationObj.$$protocol = parsedUrl.protocol;
- locationObj.$$host = parsedUrl.hostname;
- locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
-}
-
-
-function parseAppUrl(relativeUrl, locationObj) {
- var prefixed = (relativeUrl.charAt(0) !== '/');
- if (prefixed) {
- relativeUrl = '/' + relativeUrl;
- }
- var match = urlResolve(relativeUrl);
- locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ?
- match.pathname.substring(1) : match.pathname);
- locationObj.$$search = parseKeyValue(match.search);
- locationObj.$$hash = decodeURIComponent(match.hash);
-
- // make sure path starts with '/';
- if (locationObj.$$path && locationObj.$$path.charAt(0) != '/') {
- locationObj.$$path = '/' + locationObj.$$path;
- }
-}
-
-
-/**
- *
- * @param {string} begin
- * @param {string} whole
- * @returns {string} returns text from whole after begin or undefined if it does not begin with
- * expected string.
- */
-function beginsWith(begin, whole) {
- if (whole.indexOf(begin) === 0) {
- return whole.substr(begin.length);
- }
-}
-
-
-function stripHash(url) {
- var index = url.indexOf('#');
- return index == -1 ? url : url.substr(0, index);
-}
-
-function trimEmptyHash(url) {
- return url.replace(/(#.+)|#$/, '$1');
-}
-
-
-function stripFile(url) {
- return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
-}
-
-/* return the server only (scheme://host:port) */
-function serverBase(url) {
- return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));
-}
-
-
-/**
- * LocationHtml5Url represents an url
- * This object is exposed as $location service when HTML5 mode is enabled and supported
- *
- * @constructor
- * @param {string} appBase application base URL
- * @param {string} appBaseNoFile application base URL stripped of any filename
- * @param {string} basePrefix url path prefix
- */
-function LocationHtml5Url(appBase, appBaseNoFile, basePrefix) {
- this.$$html5 = true;
- basePrefix = basePrefix || '';
- parseAbsoluteUrl(appBase, this);
-
-
- /**
- * Parse given html5 (regular) url string into properties
- * @param {string} url HTML5 url
- * @private
- */
- this.$$parse = function(url) {
- var pathUrl = beginsWith(appBaseNoFile, url);
- if (!isString(pathUrl)) {
- throw $locationMinErr('ipthprfx', 'Invalid url "{0}", missing path prefix "{1}".', url,
- appBaseNoFile);
- }
-
- parseAppUrl(pathUrl, this);
-
- if (!this.$$path) {
- this.$$path = '/';
- }
-
- this.$$compose();
- };
-
- /**
- * Compose url and update `absUrl` property
- * @private
- */
- this.$$compose = function() {
- var search = toKeyValue(this.$$search),
- hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
-
- this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
- this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'
- };
-
- this.$$parseLinkUrl = function(url, relHref) {
- if (relHref && relHref[0] === '#') {
- // special case for links to hash fragments:
- // keep the old url and only replace the hash fragment
- this.hash(relHref.slice(1));
- return true;
- }
- var appUrl, prevAppUrl;
- var rewrittenUrl;
-
- if (isDefined(appUrl = beginsWith(appBase, url))) {
- prevAppUrl = appUrl;
- if (isDefined(appUrl = beginsWith(basePrefix, appUrl))) {
- rewrittenUrl = appBaseNoFile + (beginsWith('/', appUrl) || appUrl);
- } else {
- rewrittenUrl = appBase + prevAppUrl;
- }
- } else if (isDefined(appUrl = beginsWith(appBaseNoFile, url))) {
- rewrittenUrl = appBaseNoFile + appUrl;
- } else if (appBaseNoFile == url + '/') {
- rewrittenUrl = appBaseNoFile;
- }
- if (rewrittenUrl) {
- this.$$parse(rewrittenUrl);
- }
- return !!rewrittenUrl;
- };
-}
-
-
-/**
- * LocationHashbangUrl represents url
- * This object is exposed as $location service when developer doesn't opt into html5 mode.
- * It also serves as the base class for html5 mode fallback on legacy browsers.
- *
- * @constructor
- * @param {string} appBase application base URL
- * @param {string} appBaseNoFile application base URL stripped of any filename
- * @param {string} hashPrefix hashbang prefix
- */
-function LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {
-
- parseAbsoluteUrl(appBase, this);
-
-
- /**
- * Parse given hashbang url into properties
- * @param {string} url Hashbang url
- * @private
- */
- this.$$parse = function(url) {
- var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url);
- var withoutHashUrl;
-
- if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') {
-
- // The rest of the url starts with a hash so we have
- // got either a hashbang path or a plain hash fragment
- withoutHashUrl = beginsWith(hashPrefix, withoutBaseUrl);
- if (isUndefined(withoutHashUrl)) {
- // There was no hashbang prefix so we just have a hash fragment
- withoutHashUrl = withoutBaseUrl;
- }
-
- } else {
- // There was no hashbang path nor hash fragment:
- // If we are in HTML5 mode we use what is left as the path;
- // Otherwise we ignore what is left
- if (this.$$html5) {
- withoutHashUrl = withoutBaseUrl;
- } else {
- withoutHashUrl = '';
- if (isUndefined(withoutBaseUrl)) {
- appBase = url;
- this.replace();
- }
- }
- }
-
- parseAppUrl(withoutHashUrl, this);
-
- this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase);
-
- this.$$compose();
-
- /*
- * In Windows, on an anchor node on documents loaded from
- * the filesystem, the browser will return a pathname
- * prefixed with the drive name ('/C:/path') when a
- * pathname without a drive is set:
- * * a.setAttribute('href', '/foo')
- * * a.pathname === '/C:/foo' //true
- *
- * Inside of Angular, we're always using pathnames that
- * do not include drive names for routing.
- */
- function removeWindowsDriveName(path, url, base) {
- /*
- Matches paths for file protocol on windows,
- such as /C:/foo/bar, and captures only /foo/bar.
- */
- var windowsFilePathExp = /^\/[A-Z]:(\/.*)/;
-
- var firstPathSegmentMatch;
-
- //Get the relative path from the input URL.
- if (url.indexOf(base) === 0) {
- url = url.replace(base, '');
- }
-
- // The input URL intentionally contains a first path segment that ends with a colon.
- if (windowsFilePathExp.exec(url)) {
- return path;
- }
-
- firstPathSegmentMatch = windowsFilePathExp.exec(path);
- return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path;
- }
- };
-
- /**
- * Compose hashbang url and update `absUrl` property
- * @private
- */
- this.$$compose = function() {
- var search = toKeyValue(this.$$search),
- hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
-
- this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
- this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');
- };
-
- this.$$parseLinkUrl = function(url, relHref) {
- if (stripHash(appBase) == stripHash(url)) {
- this.$$parse(url);
- return true;
- }
- return false;
- };
-}
-
-
-/**
- * LocationHashbangUrl represents url
- * This object is exposed as $location service when html5 history api is enabled but the browser
- * does not support it.
- *
- * @constructor
- * @param {string} appBase application base URL
- * @param {string} appBaseNoFile application base URL stripped of any filename
- * @param {string} hashPrefix hashbang prefix
- */
-function LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) {
- this.$$html5 = true;
- LocationHashbangUrl.apply(this, arguments);
-
- this.$$parseLinkUrl = function(url, relHref) {
- if (relHref && relHref[0] === '#') {
- // special case for links to hash fragments:
- // keep the old url and only replace the hash fragment
- this.hash(relHref.slice(1));
- return true;
- }
-
- var rewrittenUrl;
- var appUrl;
-
- if (appBase == stripHash(url)) {
- rewrittenUrl = url;
- } else if ((appUrl = beginsWith(appBaseNoFile, url))) {
- rewrittenUrl = appBase + hashPrefix + appUrl;
- } else if (appBaseNoFile === url + '/') {
- rewrittenUrl = appBaseNoFile;
- }
- if (rewrittenUrl) {
- this.$$parse(rewrittenUrl);
- }
- return !!rewrittenUrl;
- };
-
- this.$$compose = function() {
- var search = toKeyValue(this.$$search),
- hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';
-
- this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;
- // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#'
- this.$$absUrl = appBase + hashPrefix + this.$$url;
- };
-
-}
-
-
-var locationPrototype = {
-
- /**
- * Are we in html5 mode?
- * @private
- */
- $$html5: false,
-
- /**
- * Has any change been replacing?
- * @private
- */
- $$replace: false,
-
- /**
- * @ngdoc method
- * @name $location#absUrl
- *
- * @description
- * This method is getter only.
- *
- * Return full url representation with all segments encoded according to rules specified in
- * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).
- *
- *
- * ```js
- * // given url http://example.com/#/some/path?foo=bar&baz=xoxo
- * var absUrl = $location.absUrl();
- * // => "http://example.com/#/some/path?foo=bar&baz=xoxo"
- * ```
- *
- * @return {string} full url
- */
- absUrl: locationGetter('$$absUrl'),
-
- /**
- * @ngdoc method
- * @name $location#url
- *
- * @description
- * This method is getter / setter.
- *
- * Return url (e.g. `/path?a=b#hash`) when called without any parameter.
- *
- * Change path, search and hash, when called with parameter and return `$location`.
- *
- *
- * ```js
- * // given url http://example.com/#/some/path?foo=bar&baz=xoxo
- * var url = $location.url();
- * // => "/some/path?foo=bar&baz=xoxo"
- * ```
- *
- * @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)
- * @return {string} url
- */
- url: function(url) {
- if (isUndefined(url)) {
- return this.$$url;
- }
-
- var match = PATH_MATCH.exec(url);
- if (match[1] || url === '') this.path(decodeURIComponent(match[1]));
- if (match[2] || match[1] || url === '') this.search(match[3] || '');
- this.hash(match[5] || '');
-
- return this;
- },
-
- /**
- * @ngdoc method
- * @name $location#protocol
- *
- * @description
- * This method is getter only.
- *
- * Return protocol of current url.
- *
- *
- * ```js
- * // given url http://example.com/#/some/path?foo=bar&baz=xoxo
- * var protocol = $location.protocol();
- * // => "http"
- * ```
- *
- * @return {string} protocol of current url
- */
- protocol: locationGetter('$$protocol'),
-
- /**
- * @ngdoc method
- * @name $location#host
- *
- * @description
- * This method is getter only.
- *
- * Return host of current url.
- *
- * Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.
- *
- *
- * ```js
- * // given url http://example.com/#/some/path?foo=bar&baz=xoxo
- * var host = $location.host();
- * // => "example.com"
- *
- * // given url http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo
- * host = $location.host();
- * // => "example.com"
- * host = location.host;
- * // => "example.com:8080"
- * ```
- *
- * @return {string} host of current url.
- */
- host: locationGetter('$$host'),
-
- /**
- * @ngdoc method
- * @name $location#port
- *
- * @description
- * This method is getter only.
- *
- * Return port of current url.
- *
- *
- * ```js
- * // given url http://example.com/#/some/path?foo=bar&baz=xoxo
- * var port = $location.port();
- * // => 80
- * ```
- *
- * @return {Number} port
- */
- port: locationGetter('$$port'),
-
- /**
- * @ngdoc method
- * @name $location#path
- *
- * @description
- * This method is getter / setter.
- *
- * Return path of current url when called without any parameter.
- *
- * Change path when called with parameter and return `$location`.
- *
- * Note: Path should always begin with forward slash (/), this method will add the forward slash
- * if it is missing.
- *
- *
- * ```js
- * // given url http://example.com/#/some/path?foo=bar&baz=xoxo
- * var path = $location.path();
- * // => "/some/path"
- * ```
- *
- * @param {(string|number)=} path New path
- * @return {string} path
- */
- path: locationGetterSetter('$$path', function(path) {
- path = path !== null ? path.toString() : '';
- return path.charAt(0) == '/' ? path : '/' + path;
- }),
-
- /**
- * @ngdoc method
- * @name $location#search
- *
- * @description
- * This method is getter / setter.
- *
- * Return search part (as object) of current url when called without any parameter.
- *
- * Change search part when called with parameter and return `$location`.
- *
- *
- * ```js
- * // given url http://example.com/#/some/path?foo=bar&baz=xoxo
- * var searchObject = $location.search();
- * // => {foo: 'bar', baz: 'xoxo'}
- *
- * // set foo to 'yipee'
- * $location.search('foo', 'yipee');
- * // $location.search() => {foo: 'yipee', baz: 'xoxo'}
- * ```
- *
- * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or
- * hash object.
- *
- * When called with a single argument the method acts as a setter, setting the `search` component
- * of `$location` to the specified value.
- *
- * If the argument is a hash object containing an array of values, these values will be encoded
- * as duplicate search parameters in the url.
- *
- * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number, then `paramValue`
- * will override only a single search property.
- *
- * If `paramValue` is an array, it will override the property of the `search` component of
- * `$location` specified via the first argument.
- *
- * If `paramValue` is `null`, the property specified via the first argument will be deleted.
- *
- * If `paramValue` is `true`, the property specified via the first argument will be added with no
- * value nor trailing equal sign.
- *
- * @return {Object} If called with no arguments returns the parsed `search` object. If called with
- * one or more arguments returns `$location` object itself.
- */
- search: function(search, paramValue) {
- switch (arguments.length) {
- case 0:
- return this.$$search;
- case 1:
- if (isString(search) || isNumber(search)) {
- search = search.toString();
- this.$$search = parseKeyValue(search);
- } else if (isObject(search)) {
- search = copy(search, {});
- // remove object undefined or null properties
- forEach(search, function(value, key) {
- if (value == null) delete search[key];
- });
-
- this.$$search = search;
- } else {
- throw $locationMinErr('isrcharg',
- 'The first argument of the `$location#search()` call must be a string or an object.');
- }
- break;
- default:
- if (isUndefined(paramValue) || paramValue === null) {
- delete this.$$search[search];
- } else {
- this.$$search[search] = paramValue;
- }
- }
-
- this.$$compose();
- return this;
- },
-
- /**
- * @ngdoc method
- * @name $location#hash
- *
- * @description
- * This method is getter / setter.
- *
- * Returns the hash fragment when called without any parameters.
- *
- * Changes the hash fragment when called with a parameter and returns `$location`.
- *
- *
- * ```js
- * // given url http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue
- * var hash = $location.hash();
- * // => "hashValue"
- * ```
- *
- * @param {(string|number)=} hash New hash fragment
- * @return {string} hash
- */
- hash: locationGetterSetter('$$hash', function(hash) {
- return hash !== null ? hash.toString() : '';
- }),
-
- /**
- * @ngdoc method
- * @name $location#replace
- *
- * @description
- * If called, all changes to $location during the current `$digest` will replace the current history
- * record, instead of adding a new one.
- */
- replace: function() {
- this.$$replace = true;
- return this;
- }
-};
-
-forEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function(Location) {
- Location.prototype = Object.create(locationPrototype);
-
- /**
- * @ngdoc method
- * @name $location#state
- *
- * @description
- * This method is getter / setter.
- *
- * Return the history state object when called without any parameter.
- *
- * Change the history state object when called with one parameter and return `$location`.
- * The state object is later passed to `pushState` or `replaceState`.
- *
- * NOTE: This method is supported only in HTML5 mode and only in browsers supporting
- * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support
- * older browsers (like IE9 or Android < 4.0), don't use this method.
- *
- * @param {object=} state State object for pushState or replaceState
- * @return {object} state
- */
- Location.prototype.state = function(state) {
- if (!arguments.length) {
- return this.$$state;
- }
-
- if (Location !== LocationHtml5Url || !this.$$html5) {
- throw $locationMinErr('nostate', 'History API state support is available only ' +
- 'in HTML5 mode and only in browsers supporting HTML5 History API');
- }
- // The user might modify `stateObject` after invoking `$location.state(stateObject)`
- // but we're changing the $$state reference to $browser.state() during the $digest
- // so the modification window is narrow.
- this.$$state = isUndefined(state) ? null : state;
-
- return this;
- };
-});
-
-
-function locationGetter(property) {
- return function() {
- return this[property];
- };
-}
-
-
-function locationGetterSetter(property, preprocess) {
- return function(value) {
- if (isUndefined(value)) {
- return this[property];
- }
-
- this[property] = preprocess(value);
- this.$$compose();
-
- return this;
- };
-}
-
-
-/**
- * @ngdoc service
- * @name $location
- *
- * @requires $rootElement
- *
- * @description
- * The $location service parses the URL in the browser address bar (based on the
- * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL
- * available to your application. Changes to the URL in the address bar are reflected into
- * $location service and changes to $location are reflected into the browser address bar.
- *
- * **The $location service:**
- *
- * - Exposes the current URL in the browser address bar, so you can
- * - Watch and observe the URL.
- * - Change the URL.
- * - Synchronizes the URL with the browser when the user
- * - Changes the address bar.
- * - Clicks the back or forward button (or clicks a History link).
- * - Clicks on a link.
- * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).
- *
- * For more information see {@link guide/$location Developer Guide: Using $location}
- */
-
-/**
- * @ngdoc provider
- * @name $locationProvider
- * @description
- * Use the `$locationProvider` to configure how the application deep linking paths are stored.
- */
-function $LocationProvider() {
- var hashPrefix = '',
- html5Mode = {
- enabled: false,
- requireBase: true,
- rewriteLinks: true
- };
-
- /**
- * @ngdoc method
- * @name $locationProvider#hashPrefix
- * @description
- * @param {string=} prefix Prefix for hash part (containing path and search)
- * @returns {*} current value if used as getter or itself (chaining) if used as setter
- */
- this.hashPrefix = function(prefix) {
- if (isDefined(prefix)) {
- hashPrefix = prefix;
- return this;
- } else {
- return hashPrefix;
- }
- };
-
- /**
- * @ngdoc method
- * @name $locationProvider#html5Mode
- * @description
- * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.
- * If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported
- * properties:
- * - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to
- * change urls where supported. Will fall back to hash-prefixed paths in browsers that do not
- * support `pushState`.
- * - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies
- * whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are
- * true, and a base tag is not present, an error will be thrown when `$location` is injected.
- * See the {@link guide/$location $location guide for more information}
- * - **rewriteLinks** - `{boolean}` - (default: `true`) When html5Mode is enabled,
- * enables/disables url rewriting for relative links.
- *
- * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter
- */
- this.html5Mode = function(mode) {
- if (isBoolean(mode)) {
- html5Mode.enabled = mode;
- return this;
- } else if (isObject(mode)) {
-
- if (isBoolean(mode.enabled)) {
- html5Mode.enabled = mode.enabled;
- }
-
- if (isBoolean(mode.requireBase)) {
- html5Mode.requireBase = mode.requireBase;
- }
-
- if (isBoolean(mode.rewriteLinks)) {
- html5Mode.rewriteLinks = mode.rewriteLinks;
- }
-
- return this;
- } else {
- return html5Mode;
- }
- };
-
- /**
- * @ngdoc event
- * @name $location#$locationChangeStart
- * @eventType broadcast on root scope
- * @description
- * Broadcasted before a URL will change.
- *
- * This change can be prevented by calling
- * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more
- * details about event object. Upon successful change
- * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.
- *
- * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
- * the browser supports the HTML5 History API.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {string} newUrl New URL
- * @param {string=} oldUrl URL that was before it was changed.
- * @param {string=} newState New history state object
- * @param {string=} oldState History state object that was before it was changed.
- */
-
- /**
- * @ngdoc event
- * @name $location#$locationChangeSuccess
- * @eventType broadcast on root scope
- * @description
- * Broadcasted after a URL was changed.
- *
- * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
- * the browser supports the HTML5 History API.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {string} newUrl New URL
- * @param {string=} oldUrl URL that was before it was changed.
- * @param {string=} newState New history state object
- * @param {string=} oldState History state object that was before it was changed.
- */
-
- this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window',
- function($rootScope, $browser, $sniffer, $rootElement, $window) {
- var $location,
- LocationMode,
- baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to ''
- initialUrl = $browser.url(),
- appBase;
-
- if (html5Mode.enabled) {
- if (!baseHref && html5Mode.requireBase) {
- throw $locationMinErr('nobase',
- "$location in HTML5 mode requires a <base> tag to be present!");
- }
- appBase = serverBase(initialUrl) + (baseHref || '/');
- LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;
- } else {
- appBase = stripHash(initialUrl);
- LocationMode = LocationHashbangUrl;
- }
- var appBaseNoFile = stripFile(appBase);
-
- $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix);
- $location.$$parseLinkUrl(initialUrl, initialUrl);
-
- $location.$$state = $browser.state();
-
- var IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i;
-
- function setBrowserUrlWithFallback(url, replace, state) {
- var oldUrl = $location.url();
- var oldState = $location.$$state;
- try {
- $browser.url(url, replace, state);
-
- // Make sure $location.state() returns referentially identical (not just deeply equal)
- // state object; this makes possible quick checking if the state changed in the digest
- // loop. Checking deep equality would be too expensive.
- $location.$$state = $browser.state();
- } catch (e) {
- // Restore old values if pushState fails
- $location.url(oldUrl);
- $location.$$state = oldState;
-
- throw e;
- }
- }
-
- $rootElement.on('click', function(event) {
- // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)
- // currently we open nice url link and redirect then
-
- if (!html5Mode.rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which == 2 || event.button == 2) return;
-
- var elm = jqLite(event.target);
-
- // traverse the DOM up to find first A tag
- while (nodeName_(elm[0]) !== 'a') {
- // ignore rewriting if no A tag (reached root element, or no parent - removed from document)
- if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;
- }
-
- var absHref = elm.prop('href');
- // get the actual href attribute - see
- // http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx
- var relHref = elm.attr('href') || elm.attr('xlink:href');
-
- if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') {
- // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during
- // an animation.
- absHref = urlResolve(absHref.animVal).href;
- }
-
- // Ignore when url is started with javascript: or mailto:
- if (IGNORE_URI_REGEXP.test(absHref)) return;
-
- if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) {
- if ($location.$$parseLinkUrl(absHref, relHref)) {
- // We do a preventDefault for all urls that are part of the angular application,
- // in html5mode and also without, so that we are able to abort navigation without
- // getting double entries in the location history.
- event.preventDefault();
- // update location manually
- if ($location.absUrl() != $browser.url()) {
- $rootScope.$apply();
- // hack to work around FF6 bug 684208 when scenario runner clicks on links
- $window.angular['ff-684208-preventDefault'] = true;
- }
- }
- }
- });
-
-
- // rewrite hashbang url <> html5 url
- if (trimEmptyHash($location.absUrl()) != trimEmptyHash(initialUrl)) {
- $browser.url($location.absUrl(), true);
- }
-
- var initializing = true;
-
- // update $location when $browser url changes
- $browser.onUrlChange(function(newUrl, newState) {
-
- if (isUndefined(beginsWith(appBaseNoFile, newUrl))) {
- // If we are navigating outside of the app then force a reload
- $window.location.href = newUrl;
- return;
- }
-
- $rootScope.$evalAsync(function() {
- var oldUrl = $location.absUrl();
- var oldState = $location.$$state;
- var defaultPrevented;
- newUrl = trimEmptyHash(newUrl);
- $location.$$parse(newUrl);
- $location.$$state = newState;
-
- defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,
- newState, oldState).defaultPrevented;
-
- // if the location was changed by a `$locationChangeStart` handler then stop
- // processing this location change
- if ($location.absUrl() !== newUrl) return;
-
- if (defaultPrevented) {
- $location.$$parse(oldUrl);
- $location.$$state = oldState;
- setBrowserUrlWithFallback(oldUrl, false, oldState);
- } else {
- initializing = false;
- afterLocationChange(oldUrl, oldState);
- }
- });
- if (!$rootScope.$$phase) $rootScope.$digest();
- });
-
- // update browser
- $rootScope.$watch(function $locationWatch() {
- var oldUrl = trimEmptyHash($browser.url());
- var newUrl = trimEmptyHash($location.absUrl());
- var oldState = $browser.state();
- var currentReplace = $location.$$replace;
- var urlOrStateChanged = oldUrl !== newUrl ||
- ($location.$$html5 && $sniffer.history && oldState !== $location.$$state);
-
- if (initializing || urlOrStateChanged) {
- initializing = false;
-
- $rootScope.$evalAsync(function() {
- var newUrl = $location.absUrl();
- var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,
- $location.$$state, oldState).defaultPrevented;
-
- // if the location was changed by a `$locationChangeStart` handler then stop
- // processing this location change
- if ($location.absUrl() !== newUrl) return;
-
- if (defaultPrevented) {
- $location.$$parse(oldUrl);
- $location.$$state = oldState;
- } else {
- if (urlOrStateChanged) {
- setBrowserUrlWithFallback(newUrl, currentReplace,
- oldState === $location.$$state ? null : $location.$$state);
- }
- afterLocationChange(oldUrl, oldState);
- }
- });
- }
-
- $location.$$replace = false;
-
- // we don't need to return anything because $evalAsync will make the digest loop dirty when
- // there is a change
- });
-
- return $location;
-
- function afterLocationChange(oldUrl, oldState) {
- $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl,
- $location.$$state, oldState);
- }
-}];
-}
-
-/**
- * @ngdoc service
- * @name $log
- * @requires $window
- *
- * @description
- * Simple service for logging. Default implementation safely writes the message
- * into the browser's console (if present).
- *
- * The main purpose of this service is to simplify debugging and troubleshooting.
- *
- * The default is to log `debug` messages. You can use
- * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.
- *
- * @example
- <example module="logExample">
- <file name="script.js">
- angular.module('logExample', [])
- .controller('LogController', ['$scope', '$log', function($scope, $log) {
- $scope.$log = $log;
- $scope.message = 'Hello World!';
- }]);
- </file>
- <file name="index.html">
- <div ng-controller="LogController">
- <p>Reload this page with open console, enter text and hit the log button...</p>
- <label>Message:
- <input type="text" ng-model="message" /></label>
- <button ng-click="$log.log(message)">log</button>
- <button ng-click="$log.warn(message)">warn</button>
- <button ng-click="$log.info(message)">info</button>
- <button ng-click="$log.error(message)">error</button>
- <button ng-click="$log.debug(message)">debug</button>
- </div>
- </file>
- </example>
- */
-
-/**
- * @ngdoc provider
- * @name $logProvider
- * @description
- * Use the `$logProvider` to configure how the application logs messages
- */
-function $LogProvider() {
- var debug = true,
- self = this;
-
- /**
- * @ngdoc method
- * @name $logProvider#debugEnabled
- * @description
- * @param {boolean=} flag enable or disable debug level messages
- * @returns {*} current value if used as getter or itself (chaining) if used as setter
- */
- this.debugEnabled = function(flag) {
- if (isDefined(flag)) {
- debug = flag;
- return this;
- } else {
- return debug;
- }
- };
-
- this.$get = ['$window', function($window) {
- return {
- /**
- * @ngdoc method
- * @name $log#log
- *
- * @description
- * Write a log message
- */
- log: consoleLog('log'),
-
- /**
- * @ngdoc method
- * @name $log#info
- *
- * @description
- * Write an information message
- */
- info: consoleLog('info'),
-
- /**
- * @ngdoc method
- * @name $log#warn
- *
- * @description
- * Write a warning message
- */
- warn: consoleLog('warn'),
-
- /**
- * @ngdoc method
- * @name $log#error
- *
- * @description
- * Write an error message
- */
- error: consoleLog('error'),
-
- /**
- * @ngdoc method
- * @name $log#debug
- *
- * @description
- * Write a debug message
- */
- debug: (function() {
- var fn = consoleLog('debug');
-
- return function() {
- if (debug) {
- fn.apply(self, arguments);
- }
- };
- }())
- };
-
- function formatError(arg) {
- if (arg instanceof Error) {
- if (arg.stack) {
- arg = (arg.message && arg.stack.indexOf(arg.message) === -1)
- ? 'Error: ' + arg.message + '\n' + arg.stack
- : arg.stack;
- } else if (arg.sourceURL) {
- arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line;
- }
- }
- return arg;
- }
-
- function consoleLog(type) {
- var console = $window.console || {},
- logFn = console[type] || console.log || noop,
- hasApply = false;
-
- // Note: reading logFn.apply throws an error in IE11 in IE8 document mode.
- // The reason behind this is that console.log has type "object" in IE8...
- try {
- hasApply = !!logFn.apply;
- } catch (e) {}
-
- if (hasApply) {
- return function() {
- var args = [];
- forEach(arguments, function(arg) {
- args.push(formatError(arg));
- });
- return logFn.apply(console, args);
- };
- }
-
- // we are IE which either doesn't have window.console => this is noop and we do nothing,
- // or we are IE where console.log doesn't have apply so we log at least first 2 args
- return function(arg1, arg2) {
- logFn(arg1, arg2 == null ? '' : arg2);
- };
- }
- }];
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables likes document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-var $parseMinErr = minErr('$parse');
-
-// Sandboxing Angular Expressions
-// ------------------------------
-// Angular expressions are generally considered safe because these expressions only have direct
-// access to `$scope` and locals. However, one can obtain the ability to execute arbitrary JS code by
-// obtaining a reference to native JS functions such as the Function constructor.
-//
-// As an example, consider the following Angular expression:
-//
-// {}.toString.constructor('alert("evil JS code")')
-//
-// This sandboxing technique is not perfect and doesn't aim to be. The goal is to prevent exploits
-// against the expression language, but not to prevent exploits that were enabled by exposing
-// sensitive JavaScript or browser APIs on Scope. Exposing such objects on a Scope is never a good
-// practice and therefore we are not even trying to protect against interaction with an object
-// explicitly exposed in this way.
-//
-// In general, it is not possible to access a Window object from an angular expression unless a
-// window or some DOM object that has a reference to window is published onto a Scope.
-// Similarly we prevent invocations of function known to be dangerous, as well as assignments to
-// native objects.
-//
-// See https://docs.angularjs.org/guide/security
-
-
-function ensureSafeMemberName(name, fullExpression) {
- if (name === "__defineGetter__" || name === "__defineSetter__"
- || name === "__lookupGetter__" || name === "__lookupSetter__"
- || name === "__proto__") {
- throw $parseMinErr('isecfld',
- 'Attempting to access a disallowed field in Angular expressions! '
- + 'Expression: {0}', fullExpression);
- }
- return name;
-}
-
-function getStringValue(name) {
- // Property names must be strings. This means that non-string objects cannot be used
- // as keys in an object. Any non-string object, including a number, is typecasted
- // into a string via the toString method.
- // -- MDN, https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Property_accessors#Property_names
- //
- // So, to ensure that we are checking the same `name` that JavaScript would use, we cast it
- // to a string. It's not always possible. If `name` is an object and its `toString` method is
- // 'broken' (doesn't return a string, isn't a function, etc.), an error will be thrown:
- //
- // TypeError: Cannot convert object to primitive value
- //
- // For performance reasons, we don't catch this error here and allow it to propagate up the call
- // stack. Note that you'll get the same error in JavaScript if you try to access a property using
- // such a 'broken' object as a key.
- return name + '';
-}
-
-function ensureSafeObject(obj, fullExpression) {
- // nifty check if obj is Function that is fast and works across iframes and other contexts
- if (obj) {
- if (obj.constructor === obj) {
- throw $parseMinErr('isecfn',
- 'Referencing Function in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- } else if (// isWindow(obj)
- obj.window === obj) {
- throw $parseMinErr('isecwindow',
- 'Referencing the Window in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- } else if (// isElement(obj)
- obj.children && (obj.nodeName || (obj.prop && obj.attr && obj.find))) {
- throw $parseMinErr('isecdom',
- 'Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- } else if (// block Object so that we can't get hold of dangerous Object.* methods
- obj === Object) {
- throw $parseMinErr('isecobj',
- 'Referencing Object in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- }
- }
- return obj;
-}
-
-var CALL = Function.prototype.call;
-var APPLY = Function.prototype.apply;
-var BIND = Function.prototype.bind;
-
-function ensureSafeFunction(obj, fullExpression) {
- if (obj) {
- if (obj.constructor === obj) {
- throw $parseMinErr('isecfn',
- 'Referencing Function in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- } else if (obj === CALL || obj === APPLY || obj === BIND) {
- throw $parseMinErr('isecff',
- 'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}',
- fullExpression);
- }
- }
-}
-
-function ensureSafeAssignContext(obj, fullExpression) {
- if (obj) {
- if (obj === (0).constructor || obj === (false).constructor || obj === ''.constructor ||
- obj === {}.constructor || obj === [].constructor || obj === Function.constructor) {
- throw $parseMinErr('isecaf',
- 'Assigning to a constructor is disallowed! Expression: {0}', fullExpression);
- }
- }
-}
-
-var OPERATORS = createMap();
-forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; });
-var ESCAPE = {"n":"\n", "f":"\f", "r":"\r", "t":"\t", "v":"\v", "'":"'", '"':'"'};
-
-
-/////////////////////////////////////////
-
-
-/**
- * @constructor
- */
-var Lexer = function(options) {
- this.options = options;
-};
-
-Lexer.prototype = {
- constructor: Lexer,
-
- lex: function(text) {
- this.text = text;
- this.index = 0;
- this.tokens = [];
-
- while (this.index < this.text.length) {
- var ch = this.text.charAt(this.index);
- if (ch === '"' || ch === "'") {
- this.readString(ch);
- } else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) {
- this.readNumber();
- } else if (this.isIdent(ch)) {
- this.readIdent();
- } else if (this.is(ch, '(){}[].,;:?')) {
- this.tokens.push({index: this.index, text: ch});
- this.index++;
- } else if (this.isWhitespace(ch)) {
- this.index++;
- } else {
- var ch2 = ch + this.peek();
- var ch3 = ch2 + this.peek(2);
- var op1 = OPERATORS[ch];
- var op2 = OPERATORS[ch2];
- var op3 = OPERATORS[ch3];
- if (op1 || op2 || op3) {
- var token = op3 ? ch3 : (op2 ? ch2 : ch);
- this.tokens.push({index: this.index, text: token, operator: true});
- this.index += token.length;
- } else {
- this.throwError('Unexpected next character ', this.index, this.index + 1);
- }
- }
- }
- return this.tokens;
- },
-
- is: function(ch, chars) {
- return chars.indexOf(ch) !== -1;
- },
-
- peek: function(i) {
- var num = i || 1;
- return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false;
- },
-
- isNumber: function(ch) {
- return ('0' <= ch && ch <= '9') && typeof ch === "string";
- },
-
- isWhitespace: function(ch) {
- // IE treats non-breaking space as \u00A0
- return (ch === ' ' || ch === '\r' || ch === '\t' ||
- ch === '\n' || ch === '\v' || ch === '\u00A0');
- },
-
- isIdent: function(ch) {
- return ('a' <= ch && ch <= 'z' ||
- 'A' <= ch && ch <= 'Z' ||
- '_' === ch || ch === '$');
- },
-
- isExpOperator: function(ch) {
- return (ch === '-' || ch === '+' || this.isNumber(ch));
- },
-
- throwError: function(error, start, end) {
- end = end || this.index;
- var colStr = (isDefined(start)
- ? 's ' + start + '-' + this.index + ' [' + this.text.substring(start, end) + ']'
- : ' ' + end);
- throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].',
- error, colStr, this.text);
- },
-
- readNumber: function() {
- var number = '';
- var start = this.index;
- while (this.index < this.text.length) {
- var ch = lowercase(this.text.charAt(this.index));
- if (ch == '.' || this.isNumber(ch)) {
- number += ch;
- } else {
- var peekCh = this.peek();
- if (ch == 'e' && this.isExpOperator(peekCh)) {
- number += ch;
- } else if (this.isExpOperator(ch) &&
- peekCh && this.isNumber(peekCh) &&
- number.charAt(number.length - 1) == 'e') {
- number += ch;
- } else if (this.isExpOperator(ch) &&
- (!peekCh || !this.isNumber(peekCh)) &&
- number.charAt(number.length - 1) == 'e') {
- this.throwError('Invalid exponent');
- } else {
- break;
- }
- }
- this.index++;
- }
- this.tokens.push({
- index: start,
- text: number,
- constant: true,
- value: Number(number)
- });
- },
-
- readIdent: function() {
- var start = this.index;
- while (this.index < this.text.length) {
- var ch = this.text.charAt(this.index);
- if (!(this.isIdent(ch) || this.isNumber(ch))) {
- break;
- }
- this.index++;
- }
- this.tokens.push({
- index: start,
- text: this.text.slice(start, this.index),
- identifier: true
- });
- },
-
- readString: function(quote) {
- var start = this.index;
- this.index++;
- var string = '';
- var rawString = quote;
- var escape = false;
- while (this.index < this.text.length) {
- var ch = this.text.charAt(this.index);
- rawString += ch;
- if (escape) {
- if (ch === 'u') {
- var hex = this.text.substring(this.index + 1, this.index + 5);
- if (!hex.match(/[\da-f]{4}/i)) {
- this.throwError('Invalid unicode escape [\\u' + hex + ']');
- }
- this.index += 4;
- string += String.fromCharCode(parseInt(hex, 16));
- } else {
- var rep = ESCAPE[ch];
- string = string + (rep || ch);
- }
- escape = false;
- } else if (ch === '\\') {
- escape = true;
- } else if (ch === quote) {
- this.index++;
- this.tokens.push({
- index: start,
- text: rawString,
- constant: true,
- value: string
- });
- return;
- } else {
- string += ch;
- }
- this.index++;
- }
- this.throwError('Unterminated quote', start);
- }
-};
-
-var AST = function(lexer, options) {
- this.lexer = lexer;
- this.options = options;
-};
-
-AST.Program = 'Program';
-AST.ExpressionStatement = 'ExpressionStatement';
-AST.AssignmentExpression = 'AssignmentExpression';
-AST.ConditionalExpression = 'ConditionalExpression';
-AST.LogicalExpression = 'LogicalExpression';
-AST.BinaryExpression = 'BinaryExpression';
-AST.UnaryExpression = 'UnaryExpression';
-AST.CallExpression = 'CallExpression';
-AST.MemberExpression = 'MemberExpression';
-AST.Identifier = 'Identifier';
-AST.Literal = 'Literal';
-AST.ArrayExpression = 'ArrayExpression';
-AST.Property = 'Property';
-AST.ObjectExpression = 'ObjectExpression';
-AST.ThisExpression = 'ThisExpression';
-AST.LocalsExpression = 'LocalsExpression';
-
-// Internal use only
-AST.NGValueParameter = 'NGValueParameter';
-
-AST.prototype = {
- ast: function(text) {
- this.text = text;
- this.tokens = this.lexer.lex(text);
-
- var value = this.program();
-
- if (this.tokens.length !== 0) {
- this.throwError('is an unexpected token', this.tokens[0]);
- }
-
- return value;
- },
-
- program: function() {
- var body = [];
- while (true) {
- if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']'))
- body.push(this.expressionStatement());
- if (!this.expect(';')) {
- return { type: AST.Program, body: body};
- }
- }
- },
-
- expressionStatement: function() {
- return { type: AST.ExpressionStatement, expression: this.filterChain() };
- },
-
- filterChain: function() {
- var left = this.expression();
- var token;
- while ((token = this.expect('|'))) {
- left = this.filter(left);
- }
- return left;
- },
-
- expression: function() {
- return this.assignment();
- },
-
- assignment: function() {
- var result = this.ternary();
- if (this.expect('=')) {
- result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='};
- }
- return result;
- },
-
- ternary: function() {
- var test = this.logicalOR();
- var alternate;
- var consequent;
- if (this.expect('?')) {
- alternate = this.expression();
- if (this.consume(':')) {
- consequent = this.expression();
- return { type: AST.ConditionalExpression, test: test, alternate: alternate, consequent: consequent};
- }
- }
- return test;
- },
-
- logicalOR: function() {
- var left = this.logicalAND();
- while (this.expect('||')) {
- left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() };
- }
- return left;
- },
-
- logicalAND: function() {
- var left = this.equality();
- while (this.expect('&&')) {
- left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()};
- }
- return left;
- },
-
- equality: function() {
- var left = this.relational();
- var token;
- while ((token = this.expect('==','!=','===','!=='))) {
- left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() };
- }
- return left;
- },
-
- relational: function() {
- var left = this.additive();
- var token;
- while ((token = this.expect('<', '>', '<=', '>='))) {
- left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() };
- }
- return left;
- },
-
- additive: function() {
- var left = this.multiplicative();
- var token;
- while ((token = this.expect('+','-'))) {
- left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() };
- }
- return left;
- },
-
- multiplicative: function() {
- var left = this.unary();
- var token;
- while ((token = this.expect('*','/','%'))) {
- left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.unary() };
- }
- return left;
- },
-
- unary: function() {
- var token;
- if ((token = this.expect('+', '-', '!'))) {
- return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() };
- } else {
- return this.primary();
- }
- },
-
- primary: function() {
- var primary;
- if (this.expect('(')) {
- primary = this.filterChain();
- this.consume(')');
- } else if (this.expect('[')) {
- primary = this.arrayDeclaration();
- } else if (this.expect('{')) {
- primary = this.object();
- } else if (this.constants.hasOwnProperty(this.peek().text)) {
- primary = copy(this.constants[this.consume().text]);
- } else if (this.peek().identifier) {
- primary = this.identifier();
- } else if (this.peek().constant) {
- primary = this.constant();
- } else {
- this.throwError('not a primary expression', this.peek());
- }
-
- var next;
- while ((next = this.expect('(', '[', '.'))) {
- if (next.text === '(') {
- primary = {type: AST.CallExpression, callee: primary, arguments: this.parseArguments() };
- this.consume(')');
- } else if (next.text === '[') {
- primary = { type: AST.MemberExpression, object: primary, property: this.expression(), computed: true };
- this.consume(']');
- } else if (next.text === '.') {
- primary = { type: AST.MemberExpression, object: primary, property: this.identifier(), computed: false };
- } else {
- this.throwError('IMPOSSIBLE');
- }
- }
- return primary;
- },
-
- filter: function(baseExpression) {
- var args = [baseExpression];
- var result = {type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true};
-
- while (this.expect(':')) {
- args.push(this.expression());
- }
-
- return result;
- },
-
- parseArguments: function() {
- var args = [];
- if (this.peekToken().text !== ')') {
- do {
- args.push(this.expression());
- } while (this.expect(','));
- }
- return args;
- },
-
- identifier: function() {
- var token = this.consume();
- if (!token.identifier) {
- this.throwError('is not a valid identifier', token);
- }
- return { type: AST.Identifier, name: token.text };
- },
-
- constant: function() {
- // TODO check that it is a constant
- return { type: AST.Literal, value: this.consume().value };
- },
-
- arrayDeclaration: function() {
- var elements = [];
- if (this.peekToken().text !== ']') {
- do {
- if (this.peek(']')) {
- // Support trailing commas per ES5.1.
- break;
- }
- elements.push(this.expression());
- } while (this.expect(','));
- }
- this.consume(']');
-
- return { type: AST.ArrayExpression, elements: elements };
- },
-
- object: function() {
- var properties = [], property;
- if (this.peekToken().text !== '}') {
- do {
- if (this.peek('}')) {
- // Support trailing commas per ES5.1.
- break;
- }
- property = {type: AST.Property, kind: 'init'};
- if (this.peek().constant) {
- property.key = this.constant();
- } else if (this.peek().identifier) {
- property.key = this.identifier();
- } else {
- this.throwError("invalid key", this.peek());
- }
- this.consume(':');
- property.value = this.expression();
- properties.push(property);
- } while (this.expect(','));
- }
- this.consume('}');
-
- return {type: AST.ObjectExpression, properties: properties };
- },
-
- throwError: function(msg, token) {
- throw $parseMinErr('syntax',
- 'Syntax Error: Token \'{0}\' {1} at column {2} of the expression [{3}] starting at [{4}].',
- token.text, msg, (token.index + 1), this.text, this.text.substring(token.index));
- },
-
- consume: function(e1) {
- if (this.tokens.length === 0) {
- throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);
- }
-
- var token = this.expect(e1);
- if (!token) {
- this.throwError('is unexpected, expecting [' + e1 + ']', this.peek());
- }
- return token;
- },
-
- peekToken: function() {
- if (this.tokens.length === 0) {
- throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);
- }
- return this.tokens[0];
- },
-
- peek: function(e1, e2, e3, e4) {
- return this.peekAhead(0, e1, e2, e3, e4);
- },
-
- peekAhead: function(i, e1, e2, e3, e4) {
- if (this.tokens.length > i) {
- var token = this.tokens[i];
- var t = token.text;
- if (t === e1 || t === e2 || t === e3 || t === e4 ||
- (!e1 && !e2 && !e3 && !e4)) {
- return token;
- }
- }
- return false;
- },
-
- expect: function(e1, e2, e3, e4) {
- var token = this.peek(e1, e2, e3, e4);
- if (token) {
- this.tokens.shift();
- return token;
- }
- return false;
- },
-
-
- /* `undefined` is not a constant, it is an identifier,
- * but using it as an identifier is not supported
- */
- constants: {
- 'true': { type: AST.Literal, value: true },
- 'false': { type: AST.Literal, value: false },
- 'null': { type: AST.Literal, value: null },
- 'undefined': {type: AST.Literal, value: undefined },
- 'this': {type: AST.ThisExpression },
- '$locals': {type: AST.LocalsExpression }
- }
-};
-
-function ifDefined(v, d) {
- return typeof v !== 'undefined' ? v : d;
-}
-
-function plusFn(l, r) {
- if (typeof l === 'undefined') return r;
- if (typeof r === 'undefined') return l;
- return l + r;
-}
-
-function isStateless($filter, filterName) {
- var fn = $filter(filterName);
- return !fn.$stateful;
-}
-
-function findConstantAndWatchExpressions(ast, $filter) {
- var allConstants;
- var argsToWatch;
- switch (ast.type) {
- case AST.Program:
- allConstants = true;
- forEach(ast.body, function(expr) {
- findConstantAndWatchExpressions(expr.expression, $filter);
- allConstants = allConstants && expr.expression.constant;
- });
- ast.constant = allConstants;
- break;
- case AST.Literal:
- ast.constant = true;
- ast.toWatch = [];
- break;
- case AST.UnaryExpression:
- findConstantAndWatchExpressions(ast.argument, $filter);
- ast.constant = ast.argument.constant;
- ast.toWatch = ast.argument.toWatch;
- break;
- case AST.BinaryExpression:
- findConstantAndWatchExpressions(ast.left, $filter);
- findConstantAndWatchExpressions(ast.right, $filter);
- ast.constant = ast.left.constant && ast.right.constant;
- ast.toWatch = ast.left.toWatch.concat(ast.right.toWatch);
- break;
- case AST.LogicalExpression:
- findConstantAndWatchExpressions(ast.left, $filter);
- findConstantAndWatchExpressions(ast.right, $filter);
- ast.constant = ast.left.constant && ast.right.constant;
- ast.toWatch = ast.constant ? [] : [ast];
- break;
- case AST.ConditionalExpression:
- findConstantAndWatchExpressions(ast.test, $filter);
- findConstantAndWatchExpressions(ast.alternate, $filter);
- findConstantAndWatchExpressions(ast.consequent, $filter);
- ast.constant = ast.test.constant && ast.alternate.constant && ast.consequent.constant;
- ast.toWatch = ast.constant ? [] : [ast];
- break;
- case AST.Identifier:
- ast.constant = false;
- ast.toWatch = [ast];
- break;
- case AST.MemberExpression:
- findConstantAndWatchExpressions(ast.object, $filter);
- if (ast.computed) {
- findConstantAndWatchExpressions(ast.property, $filter);
- }
- ast.constant = ast.object.constant && (!ast.computed || ast.property.constant);
- ast.toWatch = [ast];
- break;
- case AST.CallExpression:
- allConstants = ast.filter ? isStateless($filter, ast.callee.name) : false;
- argsToWatch = [];
- forEach(ast.arguments, function(expr) {
- findConstantAndWatchExpressions(expr, $filter);
- allConstants = allConstants && expr.constant;
- if (!expr.constant) {
- argsToWatch.push.apply(argsToWatch, expr.toWatch);
- }
- });
- ast.constant = allConstants;
- ast.toWatch = ast.filter && isStateless($filter, ast.callee.name) ? argsToWatch : [ast];
- break;
- case AST.AssignmentExpression:
- findConstantAndWatchExpressions(ast.left, $filter);
- findConstantAndWatchExpressions(ast.right, $filter);
- ast.constant = ast.left.constant && ast.right.constant;
- ast.toWatch = [ast];
- break;
- case AST.ArrayExpression:
- allConstants = true;
- argsToWatch = [];
- forEach(ast.elements, function(expr) {
- findConstantAndWatchExpressions(expr, $filter);
- allConstants = allConstants && expr.constant;
- if (!expr.constant) {
- argsToWatch.push.apply(argsToWatch, expr.toWatch);
- }
- });
- ast.constant = allConstants;
- ast.toWatch = argsToWatch;
- break;
- case AST.ObjectExpression:
- allConstants = true;
- argsToWatch = [];
- forEach(ast.properties, function(property) {
- findConstantAndWatchExpressions(property.value, $filter);
- allConstants = allConstants && property.value.constant;
- if (!property.value.constant) {
- argsToWatch.push.apply(argsToWatch, property.value.toWatch);
- }
- });
- ast.constant = allConstants;
- ast.toWatch = argsToWatch;
- break;
- case AST.ThisExpression:
- ast.constant = false;
- ast.toWatch = [];
- break;
- case AST.LocalsExpression:
- ast.constant = false;
- ast.toWatch = [];
- break;
- }
-}
-
-function getInputs(body) {
- if (body.length != 1) return;
- var lastExpression = body[0].expression;
- var candidate = lastExpression.toWatch;
- if (candidate.length !== 1) return candidate;
- return candidate[0] !== lastExpression ? candidate : undefined;
-}
-
-function isAssignable(ast) {
- return ast.type === AST.Identifier || ast.type === AST.MemberExpression;
-}
-
-function assignableAST(ast) {
- if (ast.body.length === 1 && isAssignable(ast.body[0].expression)) {
- return {type: AST.AssignmentExpression, left: ast.body[0].expression, right: {type: AST.NGValueParameter}, operator: '='};
- }
-}
-
-function isLiteral(ast) {
- return ast.body.length === 0 ||
- ast.body.length === 1 && (
- ast.body[0].expression.type === AST.Literal ||
- ast.body[0].expression.type === AST.ArrayExpression ||
- ast.body[0].expression.type === AST.ObjectExpression);
-}
-
-function isConstant(ast) {
- return ast.constant;
-}
-
-function ASTCompiler(astBuilder, $filter) {
- this.astBuilder = astBuilder;
- this.$filter = $filter;
-}
-
-ASTCompiler.prototype = {
- compile: function(expression, expensiveChecks) {
- var self = this;
- var ast = this.astBuilder.ast(expression);
- this.state = {
- nextId: 0,
- filters: {},
- expensiveChecks: expensiveChecks,
- fn: {vars: [], body: [], own: {}},
- assign: {vars: [], body: [], own: {}},
- inputs: []
- };
- findConstantAndWatchExpressions(ast, self.$filter);
- var extra = '';
- var assignable;
- this.stage = 'assign';
- if ((assignable = assignableAST(ast))) {
- this.state.computing = 'assign';
- var result = this.nextId();
- this.recurse(assignable, result);
- this.return_(result);
- extra = 'fn.assign=' + this.generateFunction('assign', 's,v,l');
- }
- var toWatch = getInputs(ast.body);
- self.stage = 'inputs';
- forEach(toWatch, function(watch, key) {
- var fnKey = 'fn' + key;
- self.state[fnKey] = {vars: [], body: [], own: {}};
- self.state.computing = fnKey;
- var intoId = self.nextId();
- self.recurse(watch, intoId);
- self.return_(intoId);
- self.state.inputs.push(fnKey);
- watch.watchId = key;
- });
- this.state.computing = 'fn';
- this.stage = 'main';
- this.recurse(ast);
- var fnString =
- // The build and minification steps remove the string "use strict" from the code, but this is done using a regex.
- // This is a workaround for this until we do a better job at only removing the prefix only when we should.
- '"' + this.USE + ' ' + this.STRICT + '";\n' +
- this.filterPrefix() +
- 'var fn=' + this.generateFunction('fn', 's,l,a,i') +
- extra +
- this.watchFns() +
- 'return fn;';
-
- /* jshint -W054 */
- var fn = (new Function('$filter',
- 'ensureSafeMemberName',
- 'ensureSafeObject',
- 'ensureSafeFunction',
- 'getStringValue',
- 'ensureSafeAssignContext',
- 'ifDefined',
- 'plus',
- 'text',
- fnString))(
- this.$filter,
- ensureSafeMemberName,
- ensureSafeObject,
- ensureSafeFunction,
- getStringValue,
- ensureSafeAssignContext,
- ifDefined,
- plusFn,
- expression);
- /* jshint +W054 */
- this.state = this.stage = undefined;
- fn.literal = isLiteral(ast);
- fn.constant = isConstant(ast);
- return fn;
- },
-
- USE: 'use',
-
- STRICT: 'strict',
-
- watchFns: function() {
- var result = [];
- var fns = this.state.inputs;
- var self = this;
- forEach(fns, function(name) {
- result.push('var ' + name + '=' + self.generateFunction(name, 's'));
- });
- if (fns.length) {
- result.push('fn.inputs=[' + fns.join(',') + '];');
- }
- return result.join('');
- },
-
- generateFunction: function(name, params) {
- return 'function(' + params + '){' +
- this.varsPrefix(name) +
- this.body(name) +
- '};';
- },
-
- filterPrefix: function() {
- var parts = [];
- var self = this;
- forEach(this.state.filters, function(id, filter) {
- parts.push(id + '=$filter(' + self.escape(filter) + ')');
- });
- if (parts.length) return 'var ' + parts.join(',') + ';';
- return '';
- },
-
- varsPrefix: function(section) {
- return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : '';
- },
-
- body: function(section) {
- return this.state[section].body.join('');
- },
-
- recurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {
- var left, right, self = this, args, expression;
- recursionFn = recursionFn || noop;
- if (!skipWatchIdCheck && isDefined(ast.watchId)) {
- intoId = intoId || this.nextId();
- this.if_('i',
- this.lazyAssign(intoId, this.computedMember('i', ast.watchId)),
- this.lazyRecurse(ast, intoId, nameId, recursionFn, create, true)
- );
- return;
- }
- switch (ast.type) {
- case AST.Program:
- forEach(ast.body, function(expression, pos) {
- self.recurse(expression.expression, undefined, undefined, function(expr) { right = expr; });
- if (pos !== ast.body.length - 1) {
- self.current().body.push(right, ';');
- } else {
- self.return_(right);
- }
- });
- break;
- case AST.Literal:
- expression = this.escape(ast.value);
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.UnaryExpression:
- this.recurse(ast.argument, undefined, undefined, function(expr) { right = expr; });
- expression = ast.operator + '(' + this.ifDefined(right, 0) + ')';
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.BinaryExpression:
- this.recurse(ast.left, undefined, undefined, function(expr) { left = expr; });
- this.recurse(ast.right, undefined, undefined, function(expr) { right = expr; });
- if (ast.operator === '+') {
- expression = this.plus(left, right);
- } else if (ast.operator === '-') {
- expression = this.ifDefined(left, 0) + ast.operator + this.ifDefined(right, 0);
- } else {
- expression = '(' + left + ')' + ast.operator + '(' + right + ')';
- }
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.LogicalExpression:
- intoId = intoId || this.nextId();
- self.recurse(ast.left, intoId);
- self.if_(ast.operator === '&&' ? intoId : self.not(intoId), self.lazyRecurse(ast.right, intoId));
- recursionFn(intoId);
- break;
- case AST.ConditionalExpression:
- intoId = intoId || this.nextId();
- self.recurse(ast.test, intoId);
- self.if_(intoId, self.lazyRecurse(ast.alternate, intoId), self.lazyRecurse(ast.consequent, intoId));
- recursionFn(intoId);
- break;
- case AST.Identifier:
- intoId = intoId || this.nextId();
- if (nameId) {
- nameId.context = self.stage === 'inputs' ? 's' : this.assign(this.nextId(), this.getHasOwnProperty('l', ast.name) + '?l:s');
- nameId.computed = false;
- nameId.name = ast.name;
- }
- ensureSafeMemberName(ast.name);
- self.if_(self.stage === 'inputs' || self.not(self.getHasOwnProperty('l', ast.name)),
- function() {
- self.if_(self.stage === 'inputs' || 's', function() {
- if (create && create !== 1) {
- self.if_(
- self.not(self.nonComputedMember('s', ast.name)),
- self.lazyAssign(self.nonComputedMember('s', ast.name), '{}'));
- }
- self.assign(intoId, self.nonComputedMember('s', ast.name));
- });
- }, intoId && self.lazyAssign(intoId, self.nonComputedMember('l', ast.name))
- );
- if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.name)) {
- self.addEnsureSafeObject(intoId);
- }
- recursionFn(intoId);
- break;
- case AST.MemberExpression:
- left = nameId && (nameId.context = this.nextId()) || this.nextId();
- intoId = intoId || this.nextId();
- self.recurse(ast.object, left, undefined, function() {
- self.if_(self.notNull(left), function() {
- if (create && create !== 1) {
- self.addEnsureSafeAssignContext(left);
- }
- if (ast.computed) {
- right = self.nextId();
- self.recurse(ast.property, right);
- self.getStringValue(right);
- self.addEnsureSafeMemberName(right);
- if (create && create !== 1) {
- self.if_(self.not(self.computedMember(left, right)), self.lazyAssign(self.computedMember(left, right), '{}'));
- }
- expression = self.ensureSafeObject(self.computedMember(left, right));
- self.assign(intoId, expression);
- if (nameId) {
- nameId.computed = true;
- nameId.name = right;
- }
- } else {
- ensureSafeMemberName(ast.property.name);
- if (create && create !== 1) {
- self.if_(self.not(self.nonComputedMember(left, ast.property.name)), self.lazyAssign(self.nonComputedMember(left, ast.property.name), '{}'));
- }
- expression = self.nonComputedMember(left, ast.property.name);
- if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.property.name)) {
- expression = self.ensureSafeObject(expression);
- }
- self.assign(intoId, expression);
- if (nameId) {
- nameId.computed = false;
- nameId.name = ast.property.name;
- }
- }
- }, function() {
- self.assign(intoId, 'undefined');
- });
- recursionFn(intoId);
- }, !!create);
- break;
- case AST.CallExpression:
- intoId = intoId || this.nextId();
- if (ast.filter) {
- right = self.filter(ast.callee.name);
- args = [];
- forEach(ast.arguments, function(expr) {
- var argument = self.nextId();
- self.recurse(expr, argument);
- args.push(argument);
- });
- expression = right + '(' + args.join(',') + ')';
- self.assign(intoId, expression);
- recursionFn(intoId);
- } else {
- right = self.nextId();
- left = {};
- args = [];
- self.recurse(ast.callee, right, left, function() {
- self.if_(self.notNull(right), function() {
- self.addEnsureSafeFunction(right);
- forEach(ast.arguments, function(expr) {
- self.recurse(expr, self.nextId(), undefined, function(argument) {
- args.push(self.ensureSafeObject(argument));
- });
- });
- if (left.name) {
- if (!self.state.expensiveChecks) {
- self.addEnsureSafeObject(left.context);
- }
- expression = self.member(left.context, left.name, left.computed) + '(' + args.join(',') + ')';
- } else {
- expression = right + '(' + args.join(',') + ')';
- }
- expression = self.ensureSafeObject(expression);
- self.assign(intoId, expression);
- }, function() {
- self.assign(intoId, 'undefined');
- });
- recursionFn(intoId);
- });
- }
- break;
- case AST.AssignmentExpression:
- right = this.nextId();
- left = {};
- if (!isAssignable(ast.left)) {
- throw $parseMinErr('lval', 'Trying to assign a value to a non l-value');
- }
- this.recurse(ast.left, undefined, left, function() {
- self.if_(self.notNull(left.context), function() {
- self.recurse(ast.right, right);
- self.addEnsureSafeObject(self.member(left.context, left.name, left.computed));
- self.addEnsureSafeAssignContext(left.context);
- expression = self.member(left.context, left.name, left.computed) + ast.operator + right;
- self.assign(intoId, expression);
- recursionFn(intoId || expression);
- });
- }, 1);
- break;
- case AST.ArrayExpression:
- args = [];
- forEach(ast.elements, function(expr) {
- self.recurse(expr, self.nextId(), undefined, function(argument) {
- args.push(argument);
- });
- });
- expression = '[' + args.join(',') + ']';
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.ObjectExpression:
- args = [];
- forEach(ast.properties, function(property) {
- self.recurse(property.value, self.nextId(), undefined, function(expr) {
- args.push(self.escape(
- property.key.type === AST.Identifier ? property.key.name :
- ('' + property.key.value)) +
- ':' + expr);
- });
- });
- expression = '{' + args.join(',') + '}';
- this.assign(intoId, expression);
- recursionFn(expression);
- break;
- case AST.ThisExpression:
- this.assign(intoId, 's');
- recursionFn('s');
- break;
- case AST.LocalsExpression:
- this.assign(intoId, 'l');
- recursionFn('l');
- break;
- case AST.NGValueParameter:
- this.assign(intoId, 'v');
- recursionFn('v');
- break;
- }
- },
-
- getHasOwnProperty: function(element, property) {
- var key = element + '.' + property;
- var own = this.current().own;
- if (!own.hasOwnProperty(key)) {
- own[key] = this.nextId(false, element + '&&(' + this.escape(property) + ' in ' + element + ')');
- }
- return own[key];
- },
-
- assign: function(id, value) {
- if (!id) return;
- this.current().body.push(id, '=', value, ';');
- return id;
- },
-
- filter: function(filterName) {
- if (!this.state.filters.hasOwnProperty(filterName)) {
- this.state.filters[filterName] = this.nextId(true);
- }
- return this.state.filters[filterName];
- },
-
- ifDefined: function(id, defaultValue) {
- return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')';
- },
-
- plus: function(left, right) {
- return 'plus(' + left + ',' + right + ')';
- },
-
- return_: function(id) {
- this.current().body.push('return ', id, ';');
- },
-
- if_: function(test, alternate, consequent) {
- if (test === true) {
- alternate();
- } else {
- var body = this.current().body;
- body.push('if(', test, '){');
- alternate();
- body.push('}');
- if (consequent) {
- body.push('else{');
- consequent();
- body.push('}');
- }
- }
- },
-
- not: function(expression) {
- return '!(' + expression + ')';
- },
-
- notNull: function(expression) {
- return expression + '!=null';
- },
-
- nonComputedMember: function(left, right) {
- return left + '.' + right;
- },
-
- computedMember: function(left, right) {
- return left + '[' + right + ']';
- },
-
- member: function(left, right, computed) {
- if (computed) return this.computedMember(left, right);
- return this.nonComputedMember(left, right);
- },
-
- addEnsureSafeObject: function(item) {
- this.current().body.push(this.ensureSafeObject(item), ';');
- },
-
- addEnsureSafeMemberName: function(item) {
- this.current().body.push(this.ensureSafeMemberName(item), ';');
- },
-
- addEnsureSafeFunction: function(item) {
- this.current().body.push(this.ensureSafeFunction(item), ';');
- },
-
- addEnsureSafeAssignContext: function(item) {
- this.current().body.push(this.ensureSafeAssignContext(item), ';');
- },
-
- ensureSafeObject: function(item) {
- return 'ensureSafeObject(' + item + ',text)';
- },
-
- ensureSafeMemberName: function(item) {
- return 'ensureSafeMemberName(' + item + ',text)';
- },
-
- ensureSafeFunction: function(item) {
- return 'ensureSafeFunction(' + item + ',text)';
- },
-
- getStringValue: function(item) {
- this.assign(item, 'getStringValue(' + item + ')');
- },
-
- ensureSafeAssignContext: function(item) {
- return 'ensureSafeAssignContext(' + item + ',text)';
- },
-
- lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {
- var self = this;
- return function() {
- self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck);
- };
- },
-
- lazyAssign: function(id, value) {
- var self = this;
- return function() {
- self.assign(id, value);
- };
- },
-
- stringEscapeRegex: /[^ a-zA-Z0-9]/g,
-
- stringEscapeFn: function(c) {
- return '\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4);
- },
-
- escape: function(value) {
- if (isString(value)) return "'" + value.replace(this.stringEscapeRegex, this.stringEscapeFn) + "'";
- if (isNumber(value)) return value.toString();
- if (value === true) return 'true';
- if (value === false) return 'false';
- if (value === null) return 'null';
- if (typeof value === 'undefined') return 'undefined';
-
- throw $parseMinErr('esc', 'IMPOSSIBLE');
- },
-
- nextId: function(skip, init) {
- var id = 'v' + (this.state.nextId++);
- if (!skip) {
- this.current().vars.push(id + (init ? '=' + init : ''));
- }
- return id;
- },
-
- current: function() {
- return this.state[this.state.computing];
- }
-};
-
-
-function ASTInterpreter(astBuilder, $filter) {
- this.astBuilder = astBuilder;
- this.$filter = $filter;
-}
-
-ASTInterpreter.prototype = {
- compile: function(expression, expensiveChecks) {
- var self = this;
- var ast = this.astBuilder.ast(expression);
- this.expression = expression;
- this.expensiveChecks = expensiveChecks;
- findConstantAndWatchExpressions(ast, self.$filter);
- var assignable;
- var assign;
- if ((assignable = assignableAST(ast))) {
- assign = this.recurse(assignable);
- }
- var toWatch = getInputs(ast.body);
- var inputs;
- if (toWatch) {
- inputs = [];
- forEach(toWatch, function(watch, key) {
- var input = self.recurse(watch);
- watch.input = input;
- inputs.push(input);
- watch.watchId = key;
- });
- }
- var expressions = [];
- forEach(ast.body, function(expression) {
- expressions.push(self.recurse(expression.expression));
- });
- var fn = ast.body.length === 0 ? function() {} :
- ast.body.length === 1 ? expressions[0] :
- function(scope, locals) {
- var lastValue;
- forEach(expressions, function(exp) {
- lastValue = exp(scope, locals);
- });
- return lastValue;
- };
- if (assign) {
- fn.assign = function(scope, value, locals) {
- return assign(scope, locals, value);
- };
- }
- if (inputs) {
- fn.inputs = inputs;
- }
- fn.literal = isLiteral(ast);
- fn.constant = isConstant(ast);
- return fn;
- },
-
- recurse: function(ast, context, create) {
- var left, right, self = this, args, expression;
- if (ast.input) {
- return this.inputs(ast.input, ast.watchId);
- }
- switch (ast.type) {
- case AST.Literal:
- return this.value(ast.value, context);
- case AST.UnaryExpression:
- right = this.recurse(ast.argument);
- return this['unary' + ast.operator](right, context);
- case AST.BinaryExpression:
- left = this.recurse(ast.left);
- right = this.recurse(ast.right);
- return this['binary' + ast.operator](left, right, context);
- case AST.LogicalExpression:
- left = this.recurse(ast.left);
- right = this.recurse(ast.right);
- return this['binary' + ast.operator](left, right, context);
- case AST.ConditionalExpression:
- return this['ternary?:'](
- this.recurse(ast.test),
- this.recurse(ast.alternate),
- this.recurse(ast.consequent),
- context
- );
- case AST.Identifier:
- ensureSafeMemberName(ast.name, self.expression);
- return self.identifier(ast.name,
- self.expensiveChecks || isPossiblyDangerousMemberName(ast.name),
- context, create, self.expression);
- case AST.MemberExpression:
- left = this.recurse(ast.object, false, !!create);
- if (!ast.computed) {
- ensureSafeMemberName(ast.property.name, self.expression);
- right = ast.property.name;
- }
- if (ast.computed) right = this.recurse(ast.property);
- return ast.computed ?
- this.computedMember(left, right, context, create, self.expression) :
- this.nonComputedMember(left, right, self.expensiveChecks, context, create, self.expression);
- case AST.CallExpression:
- args = [];
- forEach(ast.arguments, function(expr) {
- args.push(self.recurse(expr));
- });
- if (ast.filter) right = this.$filter(ast.callee.name);
- if (!ast.filter) right = this.recurse(ast.callee, true);
- return ast.filter ?
- function(scope, locals, assign, inputs) {
- var values = [];
- for (var i = 0; i < args.length; ++i) {
- values.push(args[i](scope, locals, assign, inputs));
- }
- var value = right.apply(undefined, values, inputs);
- return context ? {context: undefined, name: undefined, value: value} : value;
- } :
- function(scope, locals, assign, inputs) {
- var rhs = right(scope, locals, assign, inputs);
- var value;
- if (rhs.value != null) {
- ensureSafeObject(rhs.context, self.expression);
- ensureSafeFunction(rhs.value, self.expression);
- var values = [];
- for (var i = 0; i < args.length; ++i) {
- values.push(ensureSafeObject(args[i](scope, locals, assign, inputs), self.expression));
- }
- value = ensureSafeObject(rhs.value.apply(rhs.context, values), self.expression);
- }
- return context ? {value: value} : value;
- };
- case AST.AssignmentExpression:
- left = this.recurse(ast.left, true, 1);
- right = this.recurse(ast.right);
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- var rhs = right(scope, locals, assign, inputs);
- ensureSafeObject(lhs.value, self.expression);
- ensureSafeAssignContext(lhs.context);
- lhs.context[lhs.name] = rhs;
- return context ? {value: rhs} : rhs;
- };
- case AST.ArrayExpression:
- args = [];
- forEach(ast.elements, function(expr) {
- args.push(self.recurse(expr));
- });
- return function(scope, locals, assign, inputs) {
- var value = [];
- for (var i = 0; i < args.length; ++i) {
- value.push(args[i](scope, locals, assign, inputs));
- }
- return context ? {value: value} : value;
- };
- case AST.ObjectExpression:
- args = [];
- forEach(ast.properties, function(property) {
- args.push({key: property.key.type === AST.Identifier ?
- property.key.name :
- ('' + property.key.value),
- value: self.recurse(property.value)
- });
- });
- return function(scope, locals, assign, inputs) {
- var value = {};
- for (var i = 0; i < args.length; ++i) {
- value[args[i].key] = args[i].value(scope, locals, assign, inputs);
- }
- return context ? {value: value} : value;
- };
- case AST.ThisExpression:
- return function(scope) {
- return context ? {value: scope} : scope;
- };
- case AST.LocalsExpression:
- return function(scope, locals) {
- return context ? {value: locals} : locals;
- };
- case AST.NGValueParameter:
- return function(scope, locals, assign, inputs) {
- return context ? {value: assign} : assign;
- };
- }
- },
-
- 'unary+': function(argument, context) {
- return function(scope, locals, assign, inputs) {
- var arg = argument(scope, locals, assign, inputs);
- if (isDefined(arg)) {
- arg = +arg;
- } else {
- arg = 0;
- }
- return context ? {value: arg} : arg;
- };
- },
- 'unary-': function(argument, context) {
- return function(scope, locals, assign, inputs) {
- var arg = argument(scope, locals, assign, inputs);
- if (isDefined(arg)) {
- arg = -arg;
- } else {
- arg = 0;
- }
- return context ? {value: arg} : arg;
- };
- },
- 'unary!': function(argument, context) {
- return function(scope, locals, assign, inputs) {
- var arg = !argument(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary+': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- var rhs = right(scope, locals, assign, inputs);
- var arg = plusFn(lhs, rhs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary-': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- var rhs = right(scope, locals, assign, inputs);
- var arg = (isDefined(lhs) ? lhs : 0) - (isDefined(rhs) ? rhs : 0);
- return context ? {value: arg} : arg;
- };
- },
- 'binary*': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) * right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary/': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) / right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary%': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) % right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary===': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) === right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary!==': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) !== right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary==': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) == right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary!=': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) != right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary<': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) < right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary>': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) > right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary<=': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) <= right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary>=': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) >= right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary&&': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) && right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'binary||': function(left, right, context) {
- return function(scope, locals, assign, inputs) {
- var arg = left(scope, locals, assign, inputs) || right(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- 'ternary?:': function(test, alternate, consequent, context) {
- return function(scope, locals, assign, inputs) {
- var arg = test(scope, locals, assign, inputs) ? alternate(scope, locals, assign, inputs) : consequent(scope, locals, assign, inputs);
- return context ? {value: arg} : arg;
- };
- },
- value: function(value, context) {
- return function() { return context ? {context: undefined, name: undefined, value: value} : value; };
- },
- identifier: function(name, expensiveChecks, context, create, expression) {
- return function(scope, locals, assign, inputs) {
- var base = locals && (name in locals) ? locals : scope;
- if (create && create !== 1 && base && !(base[name])) {
- base[name] = {};
- }
- var value = base ? base[name] : undefined;
- if (expensiveChecks) {
- ensureSafeObject(value, expression);
- }
- if (context) {
- return {context: base, name: name, value: value};
- } else {
- return value;
- }
- };
- },
- computedMember: function(left, right, context, create, expression) {
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- var rhs;
- var value;
- if (lhs != null) {
- rhs = right(scope, locals, assign, inputs);
- rhs = getStringValue(rhs);
- ensureSafeMemberName(rhs, expression);
- if (create && create !== 1) {
- ensureSafeAssignContext(lhs);
- if (lhs && !(lhs[rhs])) {
- lhs[rhs] = {};
- }
- }
- value = lhs[rhs];
- ensureSafeObject(value, expression);
- }
- if (context) {
- return {context: lhs, name: rhs, value: value};
- } else {
- return value;
- }
- };
- },
- nonComputedMember: function(left, right, expensiveChecks, context, create, expression) {
- return function(scope, locals, assign, inputs) {
- var lhs = left(scope, locals, assign, inputs);
- if (create && create !== 1) {
- ensureSafeAssignContext(lhs);
- if (lhs && !(lhs[right])) {
- lhs[right] = {};
- }
- }
- var value = lhs != null ? lhs[right] : undefined;
- if (expensiveChecks || isPossiblyDangerousMemberName(right)) {
- ensureSafeObject(value, expression);
- }
- if (context) {
- return {context: lhs, name: right, value: value};
- } else {
- return value;
- }
- };
- },
- inputs: function(input, watchId) {
- return function(scope, value, locals, inputs) {
- if (inputs) return inputs[watchId];
- return input(scope, value, locals);
- };
- }
-};
-
-/**
- * @constructor
- */
-var Parser = function(lexer, $filter, options) {
- this.lexer = lexer;
- this.$filter = $filter;
- this.options = options;
- this.ast = new AST(this.lexer);
- this.astCompiler = options.csp ? new ASTInterpreter(this.ast, $filter) :
- new ASTCompiler(this.ast, $filter);
-};
-
-Parser.prototype = {
- constructor: Parser,
-
- parse: function(text) {
- return this.astCompiler.compile(text, this.options.expensiveChecks);
- }
-};
-
-function isPossiblyDangerousMemberName(name) {
- return name == 'constructor';
-}
-
-var objectValueOf = Object.prototype.valueOf;
-
-function getValueOf(value) {
- return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value);
-}
-
-///////////////////////////////////
-
-/**
- * @ngdoc service
- * @name $parse
- * @kind function
- *
- * @description
- *
- * Converts Angular {@link guide/expression expression} into a function.
- *
- * ```js
- * var getter = $parse('user.name');
- * var setter = getter.assign;
- * var context = {user:{name:'angular'}};
- * var locals = {user:{name:'local'}};
- *
- * expect(getter(context)).toEqual('angular');
- * setter(context, 'newValue');
- * expect(context.user.name).toEqual('newValue');
- * expect(getter(context, locals)).toEqual('local');
- * ```
- *
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- *
- * The returned function also has the following properties:
- * * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript
- * literal.
- * * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript
- * constant literals.
- * * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be
- * set to a function to change its value on the given context.
- *
- */
-
-
-/**
- * @ngdoc provider
- * @name $parseProvider
- *
- * @description
- * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}
- * service.
- */
-function $ParseProvider() {
- var cacheDefault = createMap();
- var cacheExpensive = createMap();
-
- this.$get = ['$filter', function($filter) {
- var noUnsafeEval = csp().noUnsafeEval;
- var $parseOptions = {
- csp: noUnsafeEval,
- expensiveChecks: false
- },
- $parseOptionsExpensive = {
- csp: noUnsafeEval,
- expensiveChecks: true
- };
- var runningChecksEnabled = false;
-
- $parse.$$runningExpensiveChecks = function() {
- return runningChecksEnabled;
- };
-
- return $parse;
-
- function $parse(exp, interceptorFn, expensiveChecks) {
- var parsedExpression, oneTime, cacheKey;
-
- expensiveChecks = expensiveChecks || runningChecksEnabled;
-
- switch (typeof exp) {
- case 'string':
- exp = exp.trim();
- cacheKey = exp;
-
- var cache = (expensiveChecks ? cacheExpensive : cacheDefault);
- parsedExpression = cache[cacheKey];
-
- if (!parsedExpression) {
- if (exp.charAt(0) === ':' && exp.charAt(1) === ':') {
- oneTime = true;
- exp = exp.substring(2);
- }
- var parseOptions = expensiveChecks ? $parseOptionsExpensive : $parseOptions;
- var lexer = new Lexer(parseOptions);
- var parser = new Parser(lexer, $filter, parseOptions);
- parsedExpression = parser.parse(exp);
- if (parsedExpression.constant) {
- parsedExpression.$$watchDelegate = constantWatchDelegate;
- } else if (oneTime) {
- parsedExpression.$$watchDelegate = parsedExpression.literal ?
- oneTimeLiteralWatchDelegate : oneTimeWatchDelegate;
- } else if (parsedExpression.inputs) {
- parsedExpression.$$watchDelegate = inputsWatchDelegate;
- }
- if (expensiveChecks) {
- parsedExpression = expensiveChecksInterceptor(parsedExpression);
- }
- cache[cacheKey] = parsedExpression;
- }
- return addInterceptor(parsedExpression, interceptorFn);
-
- case 'function':
- return addInterceptor(exp, interceptorFn);
-
- default:
- return addInterceptor(noop, interceptorFn);
- }
- }
-
- function expensiveChecksInterceptor(fn) {
- if (!fn) return fn;
- expensiveCheckFn.$$watchDelegate = fn.$$watchDelegate;
- expensiveCheckFn.assign = expensiveChecksInterceptor(fn.assign);
- expensiveCheckFn.constant = fn.constant;
- expensiveCheckFn.literal = fn.literal;
- for (var i = 0; fn.inputs && i < fn.inputs.length; ++i) {
- fn.inputs[i] = expensiveChecksInterceptor(fn.inputs[i]);
- }
- expensiveCheckFn.inputs = fn.inputs;
-
- return expensiveCheckFn;
-
- function expensiveCheckFn(scope, locals, assign, inputs) {
- var expensiveCheckOldValue = runningChecksEnabled;
- runningChecksEnabled = true;
- try {
- return fn(scope, locals, assign, inputs);
- } finally {
- runningChecksEnabled = expensiveCheckOldValue;
- }
- }
- }
-
- function expressionInputDirtyCheck(newValue, oldValueOfValue) {
-
- if (newValue == null || oldValueOfValue == null) { // null/undefined
- return newValue === oldValueOfValue;
- }
-
- if (typeof newValue === 'object') {
-
- // attempt to convert the value to a primitive type
- // TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can
- // be cheaply dirty-checked
- newValue = getValueOf(newValue);
-
- if (typeof newValue === 'object') {
- // objects/arrays are not supported - deep-watching them would be too expensive
- return false;
- }
-
- // fall-through to the primitive equality check
- }
-
- //Primitive or NaN
- return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue);
- }
-
- function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {
- var inputExpressions = parsedExpression.inputs;
- var lastResult;
-
- if (inputExpressions.length === 1) {
- var oldInputValueOf = expressionInputDirtyCheck; // init to something unique so that equals check fails
- inputExpressions = inputExpressions[0];
- return scope.$watch(function expressionInputWatch(scope) {
- var newInputValue = inputExpressions(scope);
- if (!expressionInputDirtyCheck(newInputValue, oldInputValueOf)) {
- lastResult = parsedExpression(scope, undefined, undefined, [newInputValue]);
- oldInputValueOf = newInputValue && getValueOf(newInputValue);
- }
- return lastResult;
- }, listener, objectEquality, prettyPrintExpression);
- }
-
- var oldInputValueOfValues = [];
- var oldInputValues = [];
- for (var i = 0, ii = inputExpressions.length; i < ii; i++) {
- oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails
- oldInputValues[i] = null;
- }
-
- return scope.$watch(function expressionInputsWatch(scope) {
- var changed = false;
-
- for (var i = 0, ii = inputExpressions.length; i < ii; i++) {
- var newInputValue = inputExpressions[i](scope);
- if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i]))) {
- oldInputValues[i] = newInputValue;
- oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue);
- }
- }
-
- if (changed) {
- lastResult = parsedExpression(scope, undefined, undefined, oldInputValues);
- }
-
- return lastResult;
- }, listener, objectEquality, prettyPrintExpression);
- }
-
- function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression) {
- var unwatch, lastValue;
- return unwatch = scope.$watch(function oneTimeWatch(scope) {
- return parsedExpression(scope);
- }, function oneTimeListener(value, old, scope) {
- lastValue = value;
- if (isFunction(listener)) {
- listener.apply(this, arguments);
- }
- if (isDefined(value)) {
- scope.$$postDigest(function() {
- if (isDefined(lastValue)) {
- unwatch();
- }
- });
- }
- }, objectEquality);
- }
-
- function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) {
- var unwatch, lastValue;
- return unwatch = scope.$watch(function oneTimeWatch(scope) {
- return parsedExpression(scope);
- }, function oneTimeListener(value, old, scope) {
- lastValue = value;
- if (isFunction(listener)) {
- listener.call(this, value, old, scope);
- }
- if (isAllDefined(value)) {
- scope.$$postDigest(function() {
- if (isAllDefined(lastValue)) unwatch();
- });
- }
- }, objectEquality);
-
- function isAllDefined(value) {
- var allDefined = true;
- forEach(value, function(val) {
- if (!isDefined(val)) allDefined = false;
- });
- return allDefined;
- }
- }
-
- function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {
- var unwatch;
- return unwatch = scope.$watch(function constantWatch(scope) {
- unwatch();
- return parsedExpression(scope);
- }, listener, objectEquality);
- }
-
- function addInterceptor(parsedExpression, interceptorFn) {
- if (!interceptorFn) return parsedExpression;
- var watchDelegate = parsedExpression.$$watchDelegate;
- var useInputs = false;
-
- var regularWatch =
- watchDelegate !== oneTimeLiteralWatchDelegate &&
- watchDelegate !== oneTimeWatchDelegate;
-
- var fn = regularWatch ? function regularInterceptedExpression(scope, locals, assign, inputs) {
- var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs);
- return interceptorFn(value, scope, locals);
- } : function oneTimeInterceptedExpression(scope, locals, assign, inputs) {
- var value = parsedExpression(scope, locals, assign, inputs);
- var result = interceptorFn(value, scope, locals);
- // we only return the interceptor's result if the
- // initial value is defined (for bind-once)
- return isDefined(value) ? result : value;
- };
-
- // Propagate $$watchDelegates other then inputsWatchDelegate
- if (parsedExpression.$$watchDelegate &&
- parsedExpression.$$watchDelegate !== inputsWatchDelegate) {
- fn.$$watchDelegate = parsedExpression.$$watchDelegate;
- } else if (!interceptorFn.$stateful) {
- // If there is an interceptor, but no watchDelegate then treat the interceptor like
- // we treat filters - it is assumed to be a pure function unless flagged with $stateful
- fn.$$watchDelegate = inputsWatchDelegate;
- useInputs = !parsedExpression.inputs;
- fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression];
- }
-
- return fn;
- }
- }];
-}
-
-/**
- * @ngdoc service
- * @name $q
- * @requires $rootScope
- *
- * @description
- * A service that helps you run functions asynchronously, and use their return values (or exceptions)
- * when they are done processing.
- *
- * This is an implementation of promises/deferred objects inspired by
- * [Kris Kowal's Q](https://github.com/kriskowal/q).
- *
- * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred
- * implementations, and the other which resembles ES6 promises to some degree.
- *
- * # $q constructor
- *
- * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`
- * function as the first argument. This is similar to the native Promise implementation from ES6 Harmony,
- * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
- *
- * While the constructor-style use is supported, not all of the supporting methods from ES6 Harmony promises are
- * available yet.
- *
- * It can be used like so:
- *
- * ```js
- * // for the purpose of this example let's assume that variables `$q` and `okToGreet`
- * // are available in the current lexical scope (they could have been injected or passed in).
- *
- * function asyncGreet(name) {
- * // perform some asynchronous operation, resolve or reject the promise when appropriate.
- * return $q(function(resolve, reject) {
- * setTimeout(function() {
- * if (okToGreet(name)) {
- * resolve('Hello, ' + name + '!');
- * } else {
- * reject('Greeting ' + name + ' is not allowed.');
- * }
- * }, 1000);
- * });
- * }
- *
- * var promise = asyncGreet('Robin Hood');
- * promise.then(function(greeting) {
- * alert('Success: ' + greeting);
- * }, function(reason) {
- * alert('Failed: ' + reason);
- * });
- * ```
- *
- * Note: progress/notify callbacks are not currently supported via the ES6-style interface.
- *
- * Note: unlike ES6 behavior, an exception thrown in the constructor function will NOT implicitly reject the promise.
- *
- * However, the more traditional CommonJS-style usage is still available, and documented below.
- *
- * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an
- * interface for interacting with an object that represents the result of an action that is
- * performed asynchronously, and may or may not be finished at any given point in time.
- *
- * From the perspective of dealing with error handling, deferred and promise APIs are to
- * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.
- *
- * ```js
- * // for the purpose of this example let's assume that variables `$q` and `okToGreet`
- * // are available in the current lexical scope (they could have been injected or passed in).
- *
- * function asyncGreet(name) {
- * var deferred = $q.defer();
- *
- * setTimeout(function() {
- * deferred.notify('About to greet ' + name + '.');
- *
- * if (okToGreet(name)) {
- * deferred.resolve('Hello, ' + name + '!');
- * } else {
- * deferred.reject('Greeting ' + name + ' is not allowed.');
- * }
- * }, 1000);
- *
- * return deferred.promise;
- * }
- *
- * var promise = asyncGreet('Robin Hood');
- * promise.then(function(greeting) {
- * alert('Success: ' + greeting);
- * }, function(reason) {
- * alert('Failed: ' + reason);
- * }, function(update) {
- * alert('Got notification: ' + update);
- * });
- * ```
- *
- * At first it might not be obvious why this extra complexity is worth the trouble. The payoff
- * comes in the way of guarantees that promise and deferred APIs make, see
- * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.
- *
- * Additionally the promise api allows for composition that is very hard to do with the
- * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.
- * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the
- * section on serial or parallel joining of promises.
- *
- * # The Deferred API
- *
- * A new instance of deferred is constructed by calling `$q.defer()`.
- *
- * The purpose of the deferred object is to expose the associated Promise instance as well as APIs
- * that can be used for signaling the successful or unsuccessful completion, as well as the status
- * of the task.
- *
- * **Methods**
- *
- * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection
- * constructed via `$q.reject`, the promise will be rejected instead.
- * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to
- * resolving it with a rejection constructed via `$q.reject`.
- * - `notify(value)` - provides updates on the status of the promise's execution. This may be called
- * multiple times before the promise is either resolved or rejected.
- *
- * **Properties**
- *
- * - promise – `{Promise}` – promise object associated with this deferred.
- *
- *
- * # The Promise API
- *
- * A new promise instance is created when a deferred instance is created and can be retrieved by
- * calling `deferred.promise`.
- *
- * The purpose of the promise object is to allow for interested parties to get access to the result
- * of the deferred task when it completes.
- *
- * **Methods**
- *
- * - `then(successCallback, errorCallback, notifyCallback)` – regardless of when the promise was or
- * will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously
- * as soon as the result is available. The callbacks are called with a single argument: the result
- * or rejection reason. Additionally, the notify callback may be called zero or more times to
- * provide a progress indication, before the promise is resolved or rejected.
- *
- * This method *returns a new promise* which is resolved or rejected via the return value of the
- * `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved
- * with the value which is resolved in that promise using
- * [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).
- * It also notifies via the return value of the `notifyCallback` method. The promise cannot be
- * resolved or rejected from the notifyCallback method.
- *
- * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`
- *
- * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,
- * but to do so without modifying the final value. This is useful to release resources or do some
- * clean-up that needs to be done whether the promise was rejected or resolved. See the [full
- * specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for
- * more information.
- *
- * # Chaining promises
- *
- * Because calling the `then` method of a promise returns a new derived promise, it is easily
- * possible to create a chain of promises:
- *
- * ```js
- * promiseB = promiseA.then(function(result) {
- * return result + 1;
- * });
- *
- * // promiseB will be resolved immediately after promiseA is resolved and its value
- * // will be the result of promiseA incremented by 1
- * ```
- *
- * It is possible to create chains of any length and since a promise can be resolved with another
- * promise (which will defer its resolution further), it is possible to pause/defer resolution of
- * the promises at any point in the chain. This makes it possible to implement powerful APIs like
- * $http's response interceptors.
- *
- *
- * # Differences between Kris Kowal's Q and $q
- *
- * There are two main differences:
- *
- * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation
- * mechanism in angular, which means faster propagation of resolution or rejection into your
- * models and avoiding unnecessary browser repaints, which would result in flickering UI.
- * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains
- * all the important functionality needed for common async tasks.
- *
- * # Testing
- *
- * ```js
- * it('should simulate promise', inject(function($q, $rootScope) {
- * var deferred = $q.defer();
- * var promise = deferred.promise;
- * var resolvedValue;
- *
- * promise.then(function(value) { resolvedValue = value; });
- * expect(resolvedValue).toBeUndefined();
- *
- * // Simulate resolving of promise
- * deferred.resolve(123);
- * // Note that the 'then' function does not get called synchronously.
- * // This is because we want the promise API to always be async, whether or not
- * // it got called synchronously or asynchronously.
- * expect(resolvedValue).toBeUndefined();
- *
- * // Propagate promise resolution to 'then' functions using $apply().
- * $rootScope.$apply();
- * expect(resolvedValue).toEqual(123);
- * }));
- * ```
- *
- * @param {function(function, function)} resolver Function which is responsible for resolving or
- * rejecting the newly created promise. The first parameter is a function which resolves the
- * promise, the second parameter is a function which rejects the promise.
- *
- * @returns {Promise} The newly created promise.
- */
-function $QProvider() {
-
- this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
- return qFactory(function(callback) {
- $rootScope.$evalAsync(callback);
- }, $exceptionHandler);
- }];
-}
-
-function $$QProvider() {
- this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {
- return qFactory(function(callback) {
- $browser.defer(callback);
- }, $exceptionHandler);
- }];
-}
-
-/**
- * Constructs a promise manager.
- *
- * @param {function(function)} nextTick Function for executing functions in the next turn.
- * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for
- * debugging purposes.
- * @returns {object} Promise manager.
- */
-function qFactory(nextTick, exceptionHandler) {
- var $qMinErr = minErr('$q', TypeError);
-
- /**
- * @ngdoc method
- * @name ng.$q#defer
- * @kind function
- *
- * @description
- * Creates a `Deferred` object which represents a task which will finish in the future.
- *
- * @returns {Deferred} Returns a new instance of deferred.
- */
- var defer = function() {
- var d = new Deferred();
- //Necessary to support unbound execution :/
- d.resolve = simpleBind(d, d.resolve);
- d.reject = simpleBind(d, d.reject);
- d.notify = simpleBind(d, d.notify);
- return d;
- };
-
- function Promise() {
- this.$$state = { status: 0 };
- }
-
- extend(Promise.prototype, {
- then: function(onFulfilled, onRejected, progressBack) {
- if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) {
- return this;
- }
- var result = new Deferred();
-
- this.$$state.pending = this.$$state.pending || [];
- this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]);
- if (this.$$state.status > 0) scheduleProcessQueue(this.$$state);
-
- return result.promise;
- },
-
- "catch": function(callback) {
- return this.then(null, callback);
- },
-
- "finally": function(callback, progressBack) {
- return this.then(function(value) {
- return handleCallback(value, true, callback);
- }, function(error) {
- return handleCallback(error, false, callback);
- }, progressBack);
- }
- });
-
- //Faster, more basic than angular.bind http://jsperf.com/angular-bind-vs-custom-vs-native
- function simpleBind(context, fn) {
- return function(value) {
- fn.call(context, value);
- };
- }
-
- function processQueue(state) {
- var fn, deferred, pending;
-
- pending = state.pending;
- state.processScheduled = false;
- state.pending = undefined;
- for (var i = 0, ii = pending.length; i < ii; ++i) {
- deferred = pending[i][0];
- fn = pending[i][state.status];
- try {
- if (isFunction(fn)) {
- deferred.resolve(fn(state.value));
- } else if (state.status === 1) {
- deferred.resolve(state.value);
- } else {
- deferred.reject(state.value);
- }
- } catch (e) {
- deferred.reject(e);
- exceptionHandler(e);
- }
- }
- }
-
- function scheduleProcessQueue(state) {
- if (state.processScheduled || !state.pending) return;
- state.processScheduled = true;
- nextTick(function() { processQueue(state); });
- }
-
- function Deferred() {
- this.promise = new Promise();
- }
-
- extend(Deferred.prototype, {
- resolve: function(val) {
- if (this.promise.$$state.status) return;
- if (val === this.promise) {
- this.$$reject($qMinErr(
- 'qcycle',
- "Expected promise to be resolved with value other than itself '{0}'",
- val));
- } else {
- this.$$resolve(val);
- }
-
- },
-
- $$resolve: function(val) {
- var then;
- var that = this;
- var done = false;
- try {
- if ((isObject(val) || isFunction(val))) then = val && val.then;
- if (isFunction(then)) {
- this.promise.$$state.status = -1;
- then.call(val, resolvePromise, rejectPromise, simpleBind(this, this.notify));
- } else {
- this.promise.$$state.value = val;
- this.promise.$$state.status = 1;
- scheduleProcessQueue(this.promise.$$state);
- }
- } catch (e) {
- rejectPromise(e);
- exceptionHandler(e);
- }
-
- function resolvePromise(val) {
- if (done) return;
- done = true;
- that.$$resolve(val);
- }
- function rejectPromise(val) {
- if (done) return;
- done = true;
- that.$$reject(val);
- }
- },
-
- reject: function(reason) {
- if (this.promise.$$state.status) return;
- this.$$reject(reason);
- },
-
- $$reject: function(reason) {
- this.promise.$$state.value = reason;
- this.promise.$$state.status = 2;
- scheduleProcessQueue(this.promise.$$state);
- },
-
- notify: function(progress) {
- var callbacks = this.promise.$$state.pending;
-
- if ((this.promise.$$state.status <= 0) && callbacks && callbacks.length) {
- nextTick(function() {
- var callback, result;
- for (var i = 0, ii = callbacks.length; i < ii; i++) {
- result = callbacks[i][0];
- callback = callbacks[i][3];
- try {
- result.notify(isFunction(callback) ? callback(progress) : progress);
- } catch (e) {
- exceptionHandler(e);
- }
- }
- });
- }
- }
- });
-
- /**
- * @ngdoc method
- * @name $q#reject
- * @kind function
- *
- * @description
- * Creates a promise that is resolved as rejected with the specified `reason`. This api should be
- * used to forward rejection in a chain of promises. If you are dealing with the last promise in
- * a promise chain, you don't need to worry about it.
- *
- * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of
- * `reject` as the `throw` keyword in JavaScript. This also means that if you "catch" an error via
- * a promise error callback and you want to forward the error to the promise derived from the
- * current promise, you have to "rethrow" the error by returning a rejection constructed via
- * `reject`.
- *
- * ```js
- * promiseB = promiseA.then(function(result) {
- * // success: do something and resolve promiseB
- * // with the old or a new result
- * return result;
- * }, function(reason) {
- * // error: handle the error if possible and
- * // resolve promiseB with newPromiseOrValue,
- * // otherwise forward the rejection to promiseB
- * if (canHandle(reason)) {
- * // handle the error and recover
- * return newPromiseOrValue;
- * }
- * return $q.reject(reason);
- * });
- * ```
- *
- * @param {*} reason Constant, message, exception or an object representing the rejection reason.
- * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.
- */
- var reject = function(reason) {
- var result = new Deferred();
- result.reject(reason);
- return result.promise;
- };
-
- var makePromise = function makePromise(value, resolved) {
- var result = new Deferred();
- if (resolved) {
- result.resolve(value);
- } else {
- result.reject(value);
- }
- return result.promise;
- };
-
- var handleCallback = function handleCallback(value, isResolved, callback) {
- var callbackOutput = null;
- try {
- if (isFunction(callback)) callbackOutput = callback();
- } catch (e) {
- return makePromise(e, false);
- }
- if (isPromiseLike(callbackOutput)) {
- return callbackOutput.then(function() {
- return makePromise(value, isResolved);
- }, function(error) {
- return makePromise(error, false);
- });
- } else {
- return makePromise(value, isResolved);
- }
- };
-
- /**
- * @ngdoc method
- * @name $q#when
- * @kind function
- *
- * @description
- * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
- * This is useful when you are dealing with an object that might or might not be a promise, or if
- * the promise comes from a source that can't be trusted.
- *
- * @param {*} value Value or a promise
- * @param {Function=} successCallback
- * @param {Function=} errorCallback
- * @param {Function=} progressCallback
- * @returns {Promise} Returns a promise of the passed value or promise
- */
-
-
- var when = function(value, callback, errback, progressBack) {
- var result = new Deferred();
- result.resolve(value);
- return result.promise.then(callback, errback, progressBack);
- };
-
- /**
- * @ngdoc method
- * @name $q#resolve
- * @kind function
- *
- * @description
- * Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.
- *
- * @param {*} value Value or a promise
- * @param {Function=} successCallback
- * @param {Function=} errorCallback
- * @param {Function=} progressCallback
- * @returns {Promise} Returns a promise of the passed value or promise
- */
- var resolve = when;
-
- /**
- * @ngdoc method
- * @name $q#all
- * @kind function
- *
- * @description
- * Combines multiple promises into a single promise that is resolved when all of the input
- * promises are resolved.
- *
- * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
- * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,
- * each value corresponding to the promise at the same index/key in the `promises` array/hash.
- * If any of the promises is resolved with a rejection, this resulting promise will be rejected
- * with the same rejection value.
- */
-
- function all(promises) {
- var deferred = new Deferred(),
- counter = 0,
- results = isArray(promises) ? [] : {};
-
- forEach(promises, function(promise, key) {
- counter++;
- when(promise).then(function(value) {
- if (results.hasOwnProperty(key)) return;
- results[key] = value;
- if (!(--counter)) deferred.resolve(results);
- }, function(reason) {
- if (results.hasOwnProperty(key)) return;
- deferred.reject(reason);
- });
- });
-
- if (counter === 0) {
- deferred.resolve(results);
- }
-
- return deferred.promise;
- }
-
- var $Q = function Q(resolver) {
- if (!isFunction(resolver)) {
- throw $qMinErr('norslvr', "Expected resolverFn, got '{0}'", resolver);
- }
-
- var deferred = new Deferred();
-
- function resolveFn(value) {
- deferred.resolve(value);
- }
-
- function rejectFn(reason) {
- deferred.reject(reason);
- }
-
- resolver(resolveFn, rejectFn);
-
- return deferred.promise;
- };
-
- // Let's make the instanceof operator work for promises, so that
- // `new $q(fn) instanceof $q` would evaluate to true.
- $Q.prototype = Promise.prototype;
-
- $Q.defer = defer;
- $Q.reject = reject;
- $Q.when = when;
- $Q.resolve = resolve;
- $Q.all = all;
-
- return $Q;
-}
-
-function $$RAFProvider() { //rAF
- this.$get = ['$window', '$timeout', function($window, $timeout) {
- var requestAnimationFrame = $window.requestAnimationFrame ||
- $window.webkitRequestAnimationFrame;
-
- var cancelAnimationFrame = $window.cancelAnimationFrame ||
- $window.webkitCancelAnimationFrame ||
- $window.webkitCancelRequestAnimationFrame;
-
- var rafSupported = !!requestAnimationFrame;
- var raf = rafSupported
- ? function(fn) {
- var id = requestAnimationFrame(fn);
- return function() {
- cancelAnimationFrame(id);
- };
- }
- : function(fn) {
- var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666
- return function() {
- $timeout.cancel(timer);
- };
- };
-
- raf.supported = rafSupported;
-
- return raf;
- }];
-}
-
-/**
- * DESIGN NOTES
- *
- * The design decisions behind the scope are heavily favored for speed and memory consumption.
- *
- * The typical use of scope is to watch the expressions, which most of the time return the same
- * value as last time so we optimize the operation.
- *
- * Closures construction is expensive in terms of speed as well as memory:
- * - No closures, instead use prototypical inheritance for API
- * - Internal state needs to be stored on scope directly, which means that private state is
- * exposed as $$____ properties
- *
- * Loop operations are optimized by using while(count--) { ... }
- * - This means that in order to keep the same order of execution as addition we have to add
- * items to the array at the beginning (unshift) instead of at the end (push)
- *
- * Child scopes are created and removed often
- * - Using an array would be slow since inserts in the middle are expensive; so we use linked lists
- *
- * There are fewer watches than observers. This is why you don't want the observer to be implemented
- * in the same way as watch. Watch requires return of the initialization function which is expensive
- * to construct.
- */
-
-
-/**
- * @ngdoc provider
- * @name $rootScopeProvider
- * @description
- *
- * Provider for the $rootScope service.
- */
-
-/**
- * @ngdoc method
- * @name $rootScopeProvider#digestTtl
- * @description
- *
- * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and
- * assuming that the model is unstable.
- *
- * The current default is 10 iterations.
- *
- * In complex applications it's possible that the dependencies between `$watch`s will result in
- * several digest iterations. However if an application needs more than the default 10 digest
- * iterations for its model to stabilize then you should investigate what is causing the model to
- * continuously change during the digest.
- *
- * Increasing the TTL could have performance implications, so you should not change it without
- * proper justification.
- *
- * @param {number} limit The number of digest iterations.
- */
-
-
-/**
- * @ngdoc service
- * @name $rootScope
- * @description
- *
- * Every application has a single root {@link ng.$rootScope.Scope scope}.
- * All other scopes are descendant scopes of the root scope. Scopes provide separation
- * between the model and the view, via a mechanism for watching the model for changes.
- * They also provide event emission/broadcast and subscription facility. See the
- * {@link guide/scope developer guide on scopes}.
- */
-function $RootScopeProvider() {
- var TTL = 10;
- var $rootScopeMinErr = minErr('$rootScope');
- var lastDirtyWatch = null;
- var applyAsyncId = null;
-
- this.digestTtl = function(value) {
- if (arguments.length) {
- TTL = value;
- }
- return TTL;
- };
-
- function createChildScopeClass(parent) {
- function ChildScope() {
- this.$$watchers = this.$$nextSibling =
- this.$$childHead = this.$$childTail = null;
- this.$$listeners = {};
- this.$$listenerCount = {};
- this.$$watchersCount = 0;
- this.$id = nextUid();
- this.$$ChildScope = null;
- }
- ChildScope.prototype = parent;
- return ChildScope;
- }
-
- this.$get = ['$exceptionHandler', '$parse', '$browser',
- function($exceptionHandler, $parse, $browser) {
-
- function destroyChildScope($event) {
- $event.currentScope.$$destroyed = true;
- }
-
- function cleanUpScope($scope) {
-
- if (msie === 9) {
- // There is a memory leak in IE9 if all child scopes are not disconnected
- // completely when a scope is destroyed. So this code will recurse up through
- // all this scopes children
- //
- // See issue https://github.com/angular/angular.js/issues/10706
- $scope.$$childHead && cleanUpScope($scope.$$childHead);
- $scope.$$nextSibling && cleanUpScope($scope.$$nextSibling);
- }
-
- // The code below works around IE9 and V8's memory leaks
- //
- // See:
- // - https://code.google.com/p/v8/issues/detail?id=2073#c26
- // - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909
- // - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451
-
- $scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead =
- $scope.$$childTail = $scope.$root = $scope.$$watchers = null;
- }
-
- /**
- * @ngdoc type
- * @name $rootScope.Scope
- *
- * @description
- * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the
- * {@link auto.$injector $injector}. Child scopes are created using the
- * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when
- * compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for
- * an in-depth introduction and usage examples.
- *
- *
- * # Inheritance
- * A scope can inherit from a parent scope, as in this example:
- * ```js
- var parent = $rootScope;
- var child = parent.$new();
-
- parent.salutation = "Hello";
- expect(child.salutation).toEqual('Hello');
-
- child.salutation = "Welcome";
- expect(child.salutation).toEqual('Welcome');
- expect(parent.salutation).toEqual('Hello');
- * ```
- *
- * When interacting with `Scope` in tests, additional helper methods are available on the
- * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional
- * details.
- *
- *
- * @param {Object.<string, function()>=} providers Map of service factory which need to be
- * provided for the current scope. Defaults to {@link ng}.
- * @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should
- * append/override services provided by `providers`. This is handy
- * when unit-testing and having the need to override a default
- * service.
- * @returns {Object} Newly created scope.
- *
- */
- function Scope() {
- this.$id = nextUid();
- this.$$phase = this.$parent = this.$$watchers =
- this.$$nextSibling = this.$$prevSibling =
- this.$$childHead = this.$$childTail = null;
- this.$root = this;
- this.$$destroyed = false;
- this.$$listeners = {};
- this.$$listenerCount = {};
- this.$$watchersCount = 0;
- this.$$isolateBindings = null;
- }
-
- /**
- * @ngdoc property
- * @name $rootScope.Scope#$id
- *
- * @description
- * Unique scope ID (monotonically increasing) useful for debugging.
- */
-
- /**
- * @ngdoc property
- * @name $rootScope.Scope#$parent
- *
- * @description
- * Reference to the parent scope.
- */
-
- /**
- * @ngdoc property
- * @name $rootScope.Scope#$root
- *
- * @description
- * Reference to the root scope.
- */
-
- Scope.prototype = {
- constructor: Scope,
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$new
- * @kind function
- *
- * @description
- * Creates a new child {@link ng.$rootScope.Scope scope}.
- *
- * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.
- * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.
- *
- * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is
- * desired for the scope and its child scopes to be permanently detached from the parent and
- * thus stop participating in model change detection and listener notification by invoking.
- *
- * @param {boolean} isolate If true, then the scope does not prototypically inherit from the
- * parent scope. The scope is isolated, as it can not see parent scope properties.
- * When creating widgets, it is useful for the widget to not accidentally read parent
- * state.
- *
- * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`
- * of the newly created scope. Defaults to `this` scope if not provided.
- * This is used when creating a transclude scope to correctly place it
- * in the scope hierarchy while maintaining the correct prototypical
- * inheritance.
- *
- * @returns {Object} The newly created child scope.
- *
- */
- $new: function(isolate, parent) {
- var child;
-
- parent = parent || this;
-
- if (isolate) {
- child = new Scope();
- child.$root = this.$root;
- } else {
- // Only create a child scope class if somebody asks for one,
- // but cache it to allow the VM to optimize lookups.
- if (!this.$$ChildScope) {
- this.$$ChildScope = createChildScopeClass(this);
- }
- child = new this.$$ChildScope();
- }
- child.$parent = parent;
- child.$$prevSibling = parent.$$childTail;
- if (parent.$$childHead) {
- parent.$$childTail.$$nextSibling = child;
- parent.$$childTail = child;
- } else {
- parent.$$childHead = parent.$$childTail = child;
- }
-
- // When the new scope is not isolated or we inherit from `this`, and
- // the parent scope is destroyed, the property `$$destroyed` is inherited
- // prototypically. In all other cases, this property needs to be set
- // when the parent scope is destroyed.
- // The listener needs to be added after the parent is set
- if (isolate || parent != this) child.$on('$destroy', destroyChildScope);
-
- return child;
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$watch
- * @kind function
- *
- * @description
- * Registers a `listener` callback to be executed whenever the `watchExpression` changes.
- *
- * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest
- * $digest()} and should return the value that will be watched. (`watchExpression` should not change
- * its value when executed multiple times with the same input because it may be executed multiple
- * times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be
- * [idempotent](http://en.wikipedia.org/wiki/Idempotence).
- * - The `listener` is called only when the value from the current `watchExpression` and the
- * previous call to `watchExpression` are not equal (with the exception of the initial run,
- * see below). Inequality is determined according to reference inequality,
- * [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)
- * via the `!==` Javascript operator, unless `objectEquality == true`
- * (see next point)
- * - When `objectEquality == true`, inequality of the `watchExpression` is determined
- * according to the {@link angular.equals} function. To save the value of the object for
- * later comparison, the {@link angular.copy} function is used. This therefore means that
- * watching complex objects will have adverse memory and performance implications.
- * - The watch `listener` may change the model, which may trigger other `listener`s to fire.
- * This is achieved by rerunning the watchers until no changes are detected. The rerun
- * iteration limit is 10 to prevent an infinite loop deadlock.
- *
- *
- * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,
- * you can register a `watchExpression` function with no `listener`. (Be prepared for
- * multiple calls to your `watchExpression` because it will execute multiple times in a
- * single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.)
- *
- * After a watcher is registered with the scope, the `listener` fn is called asynchronously
- * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the
- * watcher. In rare cases, this is undesirable because the listener is called when the result
- * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you
- * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the
- * listener was called due to initialization.
- *
- *
- *
- * # Example
- * ```js
- // let's assume that scope was dependency injected as the $rootScope
- var scope = $rootScope;
- scope.name = 'misko';
- scope.counter = 0;
-
- expect(scope.counter).toEqual(0);
- scope.$watch('name', function(newValue, oldValue) {
- scope.counter = scope.counter + 1;
- });
- expect(scope.counter).toEqual(0);
-
- scope.$digest();
- // the listener is always called during the first $digest loop after it was registered
- expect(scope.counter).toEqual(1);
-
- scope.$digest();
- // but now it will not be called unless the value changes
- expect(scope.counter).toEqual(1);
-
- scope.name = 'adam';
- scope.$digest();
- expect(scope.counter).toEqual(2);
-
-
-
- // Using a function as a watchExpression
- var food;
- scope.foodCounter = 0;
- expect(scope.foodCounter).toEqual(0);
- scope.$watch(
- // This function returns the value being watched. It is called for each turn of the $digest loop
- function() { return food; },
- // This is the change listener, called when the value returned from the above function changes
- function(newValue, oldValue) {
- if ( newValue !== oldValue ) {
- // Only increment the counter if the value changed
- scope.foodCounter = scope.foodCounter + 1;
- }
- }
- );
- // No digest has been run so the counter will be zero
- expect(scope.foodCounter).toEqual(0);
-
- // Run the digest but since food has not changed count will still be zero
- scope.$digest();
- expect(scope.foodCounter).toEqual(0);
-
- // Update food and run digest. Now the counter will increment
- food = 'cheeseburger';
- scope.$digest();
- expect(scope.foodCounter).toEqual(1);
-
- * ```
- *
- *
- *
- * @param {(function()|string)} watchExpression Expression that is evaluated on each
- * {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers
- * a call to the `listener`.
- *
- * - `string`: Evaluated as {@link guide/expression expression}
- * - `function(scope)`: called with current `scope` as a parameter.
- * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value
- * of `watchExpression` changes.
- *
- * - `newVal` contains the current value of the `watchExpression`
- * - `oldVal` contains the previous value of the `watchExpression`
- * - `scope` refers to the current scope
- * @param {boolean=} [objectEquality=false] Compare for object equality using {@link angular.equals} instead of
- * comparing for reference equality.
- * @returns {function()} Returns a deregistration function for this listener.
- */
- $watch: function(watchExp, listener, objectEquality, prettyPrintExpression) {
- var get = $parse(watchExp);
-
- if (get.$$watchDelegate) {
- return get.$$watchDelegate(this, listener, objectEquality, get, watchExp);
- }
- var scope = this,
- array = scope.$$watchers,
- watcher = {
- fn: listener,
- last: initWatchVal,
- get: get,
- exp: prettyPrintExpression || watchExp,
- eq: !!objectEquality
- };
-
- lastDirtyWatch = null;
-
- if (!isFunction(listener)) {
- watcher.fn = noop;
- }
-
- if (!array) {
- array = scope.$$watchers = [];
- }
- // we use unshift since we use a while loop in $digest for speed.
- // the while loop reads in reverse order.
- array.unshift(watcher);
- incrementWatchersCount(this, 1);
-
- return function deregisterWatch() {
- if (arrayRemove(array, watcher) >= 0) {
- incrementWatchersCount(scope, -1);
- }
- lastDirtyWatch = null;
- };
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$watchGroup
- * @kind function
- *
- * @description
- * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.
- * If any one expression in the collection changes the `listener` is executed.
- *
- * - The items in the `watchExpressions` array are observed via standard $watch operation and are examined on every
- * call to $digest() to see if any items changes.
- * - The `listener` is called whenever any expression in the `watchExpressions` array changes.
- *
- * @param {Array.<string|Function(scope)>} watchExpressions Array of expressions that will be individually
- * watched using {@link ng.$rootScope.Scope#$watch $watch()}
- *
- * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any
- * expression in `watchExpressions` changes
- * The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching
- * those of `watchExpression`
- * and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching
- * those of `watchExpression`
- * The `scope` refers to the current scope.
- * @returns {function()} Returns a de-registration function for all listeners.
- */
- $watchGroup: function(watchExpressions, listener) {
- var oldValues = new Array(watchExpressions.length);
- var newValues = new Array(watchExpressions.length);
- var deregisterFns = [];
- var self = this;
- var changeReactionScheduled = false;
- var firstRun = true;
-
- if (!watchExpressions.length) {
- // No expressions means we call the listener ASAP
- var shouldCall = true;
- self.$evalAsync(function() {
- if (shouldCall) listener(newValues, newValues, self);
- });
- return function deregisterWatchGroup() {
- shouldCall = false;
- };
- }
-
- if (watchExpressions.length === 1) {
- // Special case size of one
- return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) {
- newValues[0] = value;
- oldValues[0] = oldValue;
- listener(newValues, (value === oldValue) ? newValues : oldValues, scope);
- });
- }
-
- forEach(watchExpressions, function(expr, i) {
- var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) {
- newValues[i] = value;
- oldValues[i] = oldValue;
- if (!changeReactionScheduled) {
- changeReactionScheduled = true;
- self.$evalAsync(watchGroupAction);
- }
- });
- deregisterFns.push(unwatchFn);
- });
-
- function watchGroupAction() {
- changeReactionScheduled = false;
-
- if (firstRun) {
- firstRun = false;
- listener(newValues, newValues, self);
- } else {
- listener(newValues, oldValues, self);
- }
- }
-
- return function deregisterWatchGroup() {
- while (deregisterFns.length) {
- deregisterFns.shift()();
- }
- };
- },
-
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$watchCollection
- * @kind function
- *
- * @description
- * Shallow watches the properties of an object and fires whenever any of the properties change
- * (for arrays, this implies watching the array items; for object maps, this implies watching
- * the properties). If a change is detected, the `listener` callback is fired.
- *
- * - The `obj` collection is observed via standard $watch operation and is examined on every
- * call to $digest() to see if any items have been added, removed, or moved.
- * - The `listener` is called whenever anything within the `obj` has changed. Examples include
- * adding, removing, and moving items belonging to an object or array.
- *
- *
- * # Example
- * ```js
- $scope.names = ['igor', 'matias', 'misko', 'james'];
- $scope.dataCount = 4;
-
- $scope.$watchCollection('names', function(newNames, oldNames) {
- $scope.dataCount = newNames.length;
- });
-
- expect($scope.dataCount).toEqual(4);
- $scope.$digest();
-
- //still at 4 ... no changes
- expect($scope.dataCount).toEqual(4);
-
- $scope.names.pop();
- $scope.$digest();
-
- //now there's been a change
- expect($scope.dataCount).toEqual(3);
- * ```
- *
- *
- * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The
- * expression value should evaluate to an object or an array which is observed on each
- * {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the
- * collection will trigger a call to the `listener`.
- *
- * @param {function(newCollection, oldCollection, scope)} listener a callback function called
- * when a change is detected.
- * - The `newCollection` object is the newly modified data obtained from the `obj` expression
- * - The `oldCollection` object is a copy of the former collection data.
- * Due to performance considerations, the`oldCollection` value is computed only if the
- * `listener` function declares two or more arguments.
- * - The `scope` argument refers to the current scope.
- *
- * @returns {function()} Returns a de-registration function for this listener. When the
- * de-registration function is executed, the internal watch operation is terminated.
- */
- $watchCollection: function(obj, listener) {
- $watchCollectionInterceptor.$stateful = true;
-
- var self = this;
- // the current value, updated on each dirty-check run
- var newValue;
- // a shallow copy of the newValue from the last dirty-check run,
- // updated to match newValue during dirty-check run
- var oldValue;
- // a shallow copy of the newValue from when the last change happened
- var veryOldValue;
- // only track veryOldValue if the listener is asking for it
- var trackVeryOldValue = (listener.length > 1);
- var changeDetected = 0;
- var changeDetector = $parse(obj, $watchCollectionInterceptor);
- var internalArray = [];
- var internalObject = {};
- var initRun = true;
- var oldLength = 0;
-
- function $watchCollectionInterceptor(_value) {
- newValue = _value;
- var newLength, key, bothNaN, newItem, oldItem;
-
- // If the new value is undefined, then return undefined as the watch may be a one-time watch
- if (isUndefined(newValue)) return;
-
- if (!isObject(newValue)) { // if primitive
- if (oldValue !== newValue) {
- oldValue = newValue;
- changeDetected++;
- }
- } else if (isArrayLike(newValue)) {
- if (oldValue !== internalArray) {
- // we are transitioning from something which was not an array into array.
- oldValue = internalArray;
- oldLength = oldValue.length = 0;
- changeDetected++;
- }
-
- newLength = newValue.length;
-
- if (oldLength !== newLength) {
- // if lengths do not match we need to trigger change notification
- changeDetected++;
- oldValue.length = oldLength = newLength;
- }
- // copy the items to oldValue and look for changes.
- for (var i = 0; i < newLength; i++) {
- oldItem = oldValue[i];
- newItem = newValue[i];
-
- bothNaN = (oldItem !== oldItem) && (newItem !== newItem);
- if (!bothNaN && (oldItem !== newItem)) {
- changeDetected++;
- oldValue[i] = newItem;
- }
- }
- } else {
- if (oldValue !== internalObject) {
- // we are transitioning from something which was not an object into object.
- oldValue = internalObject = {};
- oldLength = 0;
- changeDetected++;
- }
- // copy the items to oldValue and look for changes.
- newLength = 0;
- for (key in newValue) {
- if (hasOwnProperty.call(newValue, key)) {
- newLength++;
- newItem = newValue[key];
- oldItem = oldValue[key];
-
- if (key in oldValue) {
- bothNaN = (oldItem !== oldItem) && (newItem !== newItem);
- if (!bothNaN && (oldItem !== newItem)) {
- changeDetected++;
- oldValue[key] = newItem;
- }
- } else {
- oldLength++;
- oldValue[key] = newItem;
- changeDetected++;
- }
- }
- }
- if (oldLength > newLength) {
- // we used to have more keys, need to find them and destroy them.
- changeDetected++;
- for (key in oldValue) {
- if (!hasOwnProperty.call(newValue, key)) {
- oldLength--;
- delete oldValue[key];
- }
- }
- }
- }
- return changeDetected;
- }
-
- function $watchCollectionAction() {
- if (initRun) {
- initRun = false;
- listener(newValue, newValue, self);
- } else {
- listener(newValue, veryOldValue, self);
- }
-
- // make a copy for the next time a collection is changed
- if (trackVeryOldValue) {
- if (!isObject(newValue)) {
- //primitive
- veryOldValue = newValue;
- } else if (isArrayLike(newValue)) {
- veryOldValue = new Array(newValue.length);
- for (var i = 0; i < newValue.length; i++) {
- veryOldValue[i] = newValue[i];
- }
- } else { // if object
- veryOldValue = {};
- for (var key in newValue) {
- if (hasOwnProperty.call(newValue, key)) {
- veryOldValue[key] = newValue[key];
- }
- }
- }
- }
- }
-
- return this.$watch(changeDetector, $watchCollectionAction);
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$digest
- * @kind function
- *
- * @description
- * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and
- * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change
- * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}
- * until no more listeners are firing. This means that it is possible to get into an infinite
- * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of
- * iterations exceeds 10.
- *
- * Usually, you don't call `$digest()` directly in
- * {@link ng.directive:ngController controllers} or in
- * {@link ng.$compileProvider#directive directives}.
- * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within
- * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.
- *
- * If you want to be notified whenever `$digest()` is called,
- * you can register a `watchExpression` function with
- * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.
- *
- * In unit tests, you may need to call `$digest()` to simulate the scope life cycle.
- *
- * # Example
- * ```js
- var scope = ...;
- scope.name = 'misko';
- scope.counter = 0;
-
- expect(scope.counter).toEqual(0);
- scope.$watch('name', function(newValue, oldValue) {
- scope.counter = scope.counter + 1;
- });
- expect(scope.counter).toEqual(0);
-
- scope.$digest();
- // the listener is always called during the first $digest loop after it was registered
- expect(scope.counter).toEqual(1);
-
- scope.$digest();
- // but now it will not be called unless the value changes
- expect(scope.counter).toEqual(1);
-
- scope.name = 'adam';
- scope.$digest();
- expect(scope.counter).toEqual(2);
- * ```
- *
- */
- $digest: function() {
- var watch, value, last, fn, get,
- watchers,
- length,
- dirty, ttl = TTL,
- next, current, target = this,
- watchLog = [],
- logIdx, logMsg, asyncTask;
-
- beginPhase('$digest');
- // Check for changes to browser url that happened in sync before the call to $digest
- $browser.$$checkUrlChange();
-
- if (this === $rootScope && applyAsyncId !== null) {
- // If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then
- // cancel the scheduled $apply and flush the queue of expressions to be evaluated.
- $browser.defer.cancel(applyAsyncId);
- flushApplyAsync();
- }
-
- lastDirtyWatch = null;
-
- do { // "while dirty" loop
- dirty = false;
- current = target;
-
- while (asyncQueue.length) {
- try {
- asyncTask = asyncQueue.shift();
- asyncTask.scope.$eval(asyncTask.expression, asyncTask.locals);
- } catch (e) {
- $exceptionHandler(e);
- }
- lastDirtyWatch = null;
- }
-
- traverseScopesLoop:
- do { // "traverse the scopes" loop
- if ((watchers = current.$$watchers)) {
- // process our watches
- length = watchers.length;
- while (length--) {
- try {
- watch = watchers[length];
- // Most common watches are on primitives, in which case we can short
- // circuit it with === operator, only when === fails do we use .equals
- if (watch) {
- get = watch.get;
- if ((value = get(current)) !== (last = watch.last) &&
- !(watch.eq
- ? equals(value, last)
- : (typeof value === 'number' && typeof last === 'number'
- && isNaN(value) && isNaN(last)))) {
- dirty = true;
- lastDirtyWatch = watch;
- watch.last = watch.eq ? copy(value, null) : value;
- fn = watch.fn;
- fn(value, ((last === initWatchVal) ? value : last), current);
- if (ttl < 5) {
- logIdx = 4 - ttl;
- if (!watchLog[logIdx]) watchLog[logIdx] = [];
- watchLog[logIdx].push({
- msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp,
- newVal: value,
- oldVal: last
- });
- }
- } else if (watch === lastDirtyWatch) {
- // If the most recently dirty watcher is now clean, short circuit since the remaining watchers
- // have already been tested.
- dirty = false;
- break traverseScopesLoop;
- }
- }
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- }
-
- // Insanity Warning: scope depth-first traversal
- // yes, this code is a bit crazy, but it works and we have tests to prove it!
- // this piece should be kept in sync with the traversal in $broadcast
- if (!(next = ((current.$$watchersCount && current.$$childHead) ||
- (current !== target && current.$$nextSibling)))) {
- while (current !== target && !(next = current.$$nextSibling)) {
- current = current.$parent;
- }
- }
- } while ((current = next));
-
- // `break traverseScopesLoop;` takes us to here
-
- if ((dirty || asyncQueue.length) && !(ttl--)) {
- clearPhase();
- throw $rootScopeMinErr('infdig',
- '{0} $digest() iterations reached. Aborting!\n' +
- 'Watchers fired in the last 5 iterations: {1}',
- TTL, watchLog);
- }
-
- } while (dirty || asyncQueue.length);
-
- clearPhase();
-
- while (postDigestQueue.length) {
- try {
- postDigestQueue.shift()();
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- },
-
-
- /**
- * @ngdoc event
- * @name $rootScope.Scope#$destroy
- * @eventType broadcast on scope being destroyed
- *
- * @description
- * Broadcasted when a scope and its children are being destroyed.
- *
- * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
- * clean up DOM bindings before an element is removed from the DOM.
- */
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$destroy
- * @kind function
- *
- * @description
- * Removes the current scope (and all of its children) from the parent scope. Removal implies
- * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer
- * propagate to the current scope and its children. Removal also implies that the current
- * scope is eligible for garbage collection.
- *
- * The `$destroy()` is usually used by directives such as
- * {@link ng.directive:ngRepeat ngRepeat} for managing the
- * unrolling of the loop.
- *
- * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.
- * Application code can register a `$destroy` event handler that will give it a chance to
- * perform any necessary cleanup.
- *
- * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
- * clean up DOM bindings before an element is removed from the DOM.
- */
- $destroy: function() {
- // We can't destroy a scope that has been already destroyed.
- if (this.$$destroyed) return;
- var parent = this.$parent;
-
- this.$broadcast('$destroy');
- this.$$destroyed = true;
-
- if (this === $rootScope) {
- //Remove handlers attached to window when $rootScope is removed
- $browser.$$applicationDestroyed();
- }
-
- incrementWatchersCount(this, -this.$$watchersCount);
- for (var eventName in this.$$listenerCount) {
- decrementListenerCount(this, this.$$listenerCount[eventName], eventName);
- }
-
- // sever all the references to parent scopes (after this cleanup, the current scope should
- // not be retained by any of our references and should be eligible for garbage collection)
- if (parent && parent.$$childHead == this) parent.$$childHead = this.$$nextSibling;
- if (parent && parent.$$childTail == this) parent.$$childTail = this.$$prevSibling;
- if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;
- if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;
-
- // Disable listeners, watchers and apply/digest methods
- this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop;
- this.$on = this.$watch = this.$watchGroup = function() { return noop; };
- this.$$listeners = {};
-
- // Disconnect the next sibling to prevent `cleanUpScope` destroying those too
- this.$$nextSibling = null;
- cleanUpScope(this);
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$eval
- * @kind function
- *
- * @description
- * Executes the `expression` on the current scope and returns the result. Any exceptions in
- * the expression are propagated (uncaught). This is useful when evaluating Angular
- * expressions.
- *
- * # Example
- * ```js
- var scope = ng.$rootScope.Scope();
- scope.a = 1;
- scope.b = 2;
-
- expect(scope.$eval('a+b')).toEqual(3);
- expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);
- * ```
- *
- * @param {(string|function())=} expression An angular expression to be executed.
- *
- * - `string`: execute using the rules as defined in {@link guide/expression expression}.
- * - `function(scope)`: execute the function with the current `scope` parameter.
- *
- * @param {(object)=} locals Local variables object, useful for overriding values in scope.
- * @returns {*} The result of evaluating the expression.
- */
- $eval: function(expr, locals) {
- return $parse(expr)(this, locals);
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$evalAsync
- * @kind function
- *
- * @description
- * Executes the expression on the current scope at a later point in time.
- *
- * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only
- * that:
- *
- * - it will execute after the function that scheduled the evaluation (preferably before DOM
- * rendering).
- * - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after
- * `expression` execution.
- *
- * Any exceptions from the execution of the expression are forwarded to the
- * {@link ng.$exceptionHandler $exceptionHandler} service.
- *
- * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle
- * will be scheduled. However, it is encouraged to always call code that changes the model
- * from within an `$apply` call. That includes code evaluated via `$evalAsync`.
- *
- * @param {(string|function())=} expression An angular expression to be executed.
- *
- * - `string`: execute using the rules as defined in {@link guide/expression expression}.
- * - `function(scope)`: execute the function with the current `scope` parameter.
- *
- * @param {(object)=} locals Local variables object, useful for overriding values in scope.
- */
- $evalAsync: function(expr, locals) {
- // if we are outside of an $digest loop and this is the first time we are scheduling async
- // task also schedule async auto-flush
- if (!$rootScope.$$phase && !asyncQueue.length) {
- $browser.defer(function() {
- if (asyncQueue.length) {
- $rootScope.$digest();
- }
- });
- }
-
- asyncQueue.push({scope: this, expression: $parse(expr), locals: locals});
- },
-
- $$postDigest: function(fn) {
- postDigestQueue.push(fn);
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$apply
- * @kind function
- *
- * @description
- * `$apply()` is used to execute an expression in angular from outside of the angular
- * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).
- * Because we are calling into the angular framework we need to perform proper scope life
- * cycle of {@link ng.$exceptionHandler exception handling},
- * {@link ng.$rootScope.Scope#$digest executing watches}.
- *
- * ## Life cycle
- *
- * # Pseudo-Code of `$apply()`
- * ```js
- function $apply(expr) {
- try {
- return $eval(expr);
- } catch (e) {
- $exceptionHandler(e);
- } finally {
- $root.$digest();
- }
- }
- * ```
- *
- *
- * Scope's `$apply()` method transitions through the following stages:
- *
- * 1. The {@link guide/expression expression} is executed using the
- * {@link ng.$rootScope.Scope#$eval $eval()} method.
- * 2. Any exceptions from the execution of the expression are forwarded to the
- * {@link ng.$exceptionHandler $exceptionHandler} service.
- * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the
- * expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.
- *
- *
- * @param {(string|function())=} exp An angular expression to be executed.
- *
- * - `string`: execute using the rules as defined in {@link guide/expression expression}.
- * - `function(scope)`: execute the function with current `scope` parameter.
- *
- * @returns {*} The result of evaluating the expression.
- */
- $apply: function(expr) {
- try {
- beginPhase('$apply');
- try {
- return this.$eval(expr);
- } finally {
- clearPhase();
- }
- } catch (e) {
- $exceptionHandler(e);
- } finally {
- try {
- $rootScope.$digest();
- } catch (e) {
- $exceptionHandler(e);
- throw e;
- }
- }
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$applyAsync
- * @kind function
- *
- * @description
- * Schedule the invocation of $apply to occur at a later time. The actual time difference
- * varies across browsers, but is typically around ~10 milliseconds.
- *
- * This can be used to queue up multiple expressions which need to be evaluated in the same
- * digest.
- *
- * @param {(string|function())=} exp An angular expression to be executed.
- *
- * - `string`: execute using the rules as defined in {@link guide/expression expression}.
- * - `function(scope)`: execute the function with current `scope` parameter.
- */
- $applyAsync: function(expr) {
- var scope = this;
- expr && applyAsyncQueue.push($applyAsyncExpression);
- expr = $parse(expr);
- scheduleApplyAsync();
-
- function $applyAsyncExpression() {
- scope.$eval(expr);
- }
- },
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$on
- * @kind function
- *
- * @description
- * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for
- * discussion of event life cycle.
- *
- * The event listener function format is: `function(event, args...)`. The `event` object
- * passed into the listener has the following attributes:
- *
- * - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or
- * `$broadcast`-ed.
- * - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the
- * event propagates through the scope hierarchy, this property is set to null.
- * - `name` - `{string}`: name of the event.
- * - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel
- * further event propagation (available only for events that were `$emit`-ed).
- * - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag
- * to true.
- * - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
- *
- * @param {string} name Event name to listen on.
- * @param {function(event, ...args)} listener Function to call when the event is emitted.
- * @returns {function()} Returns a deregistration function for this listener.
- */
- $on: function(name, listener) {
- var namedListeners = this.$$listeners[name];
- if (!namedListeners) {
- this.$$listeners[name] = namedListeners = [];
- }
- namedListeners.push(listener);
-
- var current = this;
- do {
- if (!current.$$listenerCount[name]) {
- current.$$listenerCount[name] = 0;
- }
- current.$$listenerCount[name]++;
- } while ((current = current.$parent));
-
- var self = this;
- return function() {
- var indexOfListener = namedListeners.indexOf(listener);
- if (indexOfListener !== -1) {
- namedListeners[indexOfListener] = null;
- decrementListenerCount(self, 1, name);
- }
- };
- },
-
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$emit
- * @kind function
- *
- * @description
- * Dispatches an event `name` upwards through the scope hierarchy notifying the
- * registered {@link ng.$rootScope.Scope#$on} listeners.
- *
- * The event life cycle starts at the scope on which `$emit` was called. All
- * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get
- * notified. Afterwards, the event traverses upwards toward the root scope and calls all
- * registered listeners along the way. The event will stop propagating if one of the listeners
- * cancels it.
- *
- * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
- * onto the {@link ng.$exceptionHandler $exceptionHandler} service.
- *
- * @param {string} name Event name to emit.
- * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
- * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).
- */
- $emit: function(name, args) {
- var empty = [],
- namedListeners,
- scope = this,
- stopPropagation = false,
- event = {
- name: name,
- targetScope: scope,
- stopPropagation: function() {stopPropagation = true;},
- preventDefault: function() {
- event.defaultPrevented = true;
- },
- defaultPrevented: false
- },
- listenerArgs = concat([event], arguments, 1),
- i, length;
-
- do {
- namedListeners = scope.$$listeners[name] || empty;
- event.currentScope = scope;
- for (i = 0, length = namedListeners.length; i < length; i++) {
-
- // if listeners were deregistered, defragment the array
- if (!namedListeners[i]) {
- namedListeners.splice(i, 1);
- i--;
- length--;
- continue;
- }
- try {
- //allow all listeners attached to the current scope to run
- namedListeners[i].apply(null, listenerArgs);
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- //if any listener on the current scope stops propagation, prevent bubbling
- if (stopPropagation) {
- event.currentScope = null;
- return event;
- }
- //traverse upwards
- scope = scope.$parent;
- } while (scope);
-
- event.currentScope = null;
-
- return event;
- },
-
-
- /**
- * @ngdoc method
- * @name $rootScope.Scope#$broadcast
- * @kind function
- *
- * @description
- * Dispatches an event `name` downwards to all child scopes (and their children) notifying the
- * registered {@link ng.$rootScope.Scope#$on} listeners.
- *
- * The event life cycle starts at the scope on which `$broadcast` was called. All
- * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get
- * notified. Afterwards, the event propagates to all direct and indirect scopes of the current
- * scope and calls all registered listeners along the way. The event cannot be canceled.
- *
- * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
- * onto the {@link ng.$exceptionHandler $exceptionHandler} service.
- *
- * @param {string} name Event name to broadcast.
- * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
- * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}
- */
- $broadcast: function(name, args) {
- var target = this,
- current = target,
- next = target,
- event = {
- name: name,
- targetScope: target,
- preventDefault: function() {
- event.defaultPrevented = true;
- },
- defaultPrevented: false
- };
-
- if (!target.$$listenerCount[name]) return event;
-
- var listenerArgs = concat([event], arguments, 1),
- listeners, i, length;
-
- //down while you can, then up and next sibling or up and next sibling until back at root
- while ((current = next)) {
- event.currentScope = current;
- listeners = current.$$listeners[name] || [];
- for (i = 0, length = listeners.length; i < length; i++) {
- // if listeners were deregistered, defragment the array
- if (!listeners[i]) {
- listeners.splice(i, 1);
- i--;
- length--;
- continue;
- }
-
- try {
- listeners[i].apply(null, listenerArgs);
- } catch (e) {
- $exceptionHandler(e);
- }
- }
-
- // Insanity Warning: scope depth-first traversal
- // yes, this code is a bit crazy, but it works and we have tests to prove it!
- // this piece should be kept in sync with the traversal in $digest
- // (though it differs due to having the extra check for $$listenerCount)
- if (!(next = ((current.$$listenerCount[name] && current.$$childHead) ||
- (current !== target && current.$$nextSibling)))) {
- while (current !== target && !(next = current.$$nextSibling)) {
- current = current.$parent;
- }
- }
- }
-
- event.currentScope = null;
- return event;
- }
- };
-
- var $rootScope = new Scope();
-
- //The internal queues. Expose them on the $rootScope for debugging/testing purposes.
- var asyncQueue = $rootScope.$$asyncQueue = [];
- var postDigestQueue = $rootScope.$$postDigestQueue = [];
- var applyAsyncQueue = $rootScope.$$applyAsyncQueue = [];
-
- return $rootScope;
-
-
- function beginPhase(phase) {
- if ($rootScope.$$phase) {
- throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase);
- }
-
- $rootScope.$$phase = phase;
- }
-
- function clearPhase() {
- $rootScope.$$phase = null;
- }
-
- function incrementWatchersCount(current, count) {
- do {
- current.$$watchersCount += count;
- } while ((current = current.$parent));
- }
-
- function decrementListenerCount(current, count, name) {
- do {
- current.$$listenerCount[name] -= count;
-
- if (current.$$listenerCount[name] === 0) {
- delete current.$$listenerCount[name];
- }
- } while ((current = current.$parent));
- }
-
- /**
- * function used as an initial value for watchers.
- * because it's unique we can easily tell it apart from other values
- */
- function initWatchVal() {}
-
- function flushApplyAsync() {
- while (applyAsyncQueue.length) {
- try {
- applyAsyncQueue.shift()();
- } catch (e) {
- $exceptionHandler(e);
- }
- }
- applyAsyncId = null;
- }
-
- function scheduleApplyAsync() {
- if (applyAsyncId === null) {
- applyAsyncId = $browser.defer(function() {
- $rootScope.$apply(flushApplyAsync);
- });
- }
- }
- }];
-}
-
-/**
- * @ngdoc service
- * @name $rootElement
- *
- * @description
- * The root element of Angular application. This is either the element where {@link
- * ng.directive:ngApp ngApp} was declared or the element passed into
- * {@link angular.bootstrap}. The element represents the root element of application. It is also the
- * location where the application's {@link auto.$injector $injector} service gets
- * published, and can be retrieved using `$rootElement.injector()`.
- */
-
-
-// the implementation is in angular.bootstrap
-
-/**
- * @description
- * Private service to sanitize uris for links and images. Used by $compile and $sanitize.
- */
-function $$SanitizeUriProvider() {
- var aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|file):/,
- imgSrcSanitizationWhitelist = /^\s*((https?|ftp|file|blob):|data:image\/)/;
-
- /**
- * @description
- * Retrieves or overrides the default regular expression that is used for whitelisting of safe
- * urls during a[href] sanitization.
- *
- * The sanitization is a security measure aimed at prevent XSS attacks via html links.
- *
- * Any url about to be assigned to a[href] via data-binding is first normalized and turned into
- * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`
- * regular expression. If a match is found, the original url is written into the dom. Otherwise,
- * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
- *
- * @param {RegExp=} regexp New regexp to whitelist urls with.
- * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
- * chaining otherwise.
- */
- this.aHrefSanitizationWhitelist = function(regexp) {
- if (isDefined(regexp)) {
- aHrefSanitizationWhitelist = regexp;
- return this;
- }
- return aHrefSanitizationWhitelist;
- };
-
-
- /**
- * @description
- * Retrieves or overrides the default regular expression that is used for whitelisting of safe
- * urls during img[src] sanitization.
- *
- * The sanitization is a security measure aimed at prevent XSS attacks via html links.
- *
- * Any url about to be assigned to img[src] via data-binding is first normalized and turned into
- * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`
- * regular expression. If a match is found, the original url is written into the dom. Otherwise,
- * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
- *
- * @param {RegExp=} regexp New regexp to whitelist urls with.
- * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
- * chaining otherwise.
- */
- this.imgSrcSanitizationWhitelist = function(regexp) {
- if (isDefined(regexp)) {
- imgSrcSanitizationWhitelist = regexp;
- return this;
- }
- return imgSrcSanitizationWhitelist;
- };
-
- this.$get = function() {
- return function sanitizeUri(uri, isImage) {
- var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist;
- var normalizedVal;
- normalizedVal = urlResolve(uri).href;
- if (normalizedVal !== '' && !normalizedVal.match(regex)) {
- return 'unsafe:' + normalizedVal;
- }
- return uri;
- };
- };
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Any commits to this file should be reviewed with security in mind. *
- * Changes to this file can potentially create security vulnerabilities. *
- * An approval from 2 Core members with history of modifying *
- * this file is required. *
- * *
- * Does the change somehow allow for arbitrary javascript to be executed? *
- * Or allows for someone to change the prototype of built-in objects? *
- * Or gives undesired access to variables likes document or window? *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-var $sceMinErr = minErr('$sce');
-
-var SCE_CONTEXTS = {
- HTML: 'html',
- CSS: 'css',
- URL: 'url',
- // RESOURCE_URL is a subtype of URL used in contexts where a privileged resource is sourced from a
- // url. (e.g. ng-include, script src, templateUrl)
- RESOURCE_URL: 'resourceUrl',
- JS: 'js'
-};
-
-// Helper functions follow.
-
-function adjustMatcher(matcher) {
- if (matcher === 'self') {
- return matcher;
- } else if (isString(matcher)) {
- // Strings match exactly except for 2 wildcards - '*' and '**'.
- // '*' matches any character except those from the set ':/.?&'.
- // '**' matches any character (like .* in a RegExp).
- // More than 2 *'s raises an error as it's ill defined.
- if (matcher.indexOf('***') > -1) {
- throw $sceMinErr('iwcard',
- 'Illegal sequence *** in string matcher. String: {0}', matcher);
- }
- matcher = escapeForRegexp(matcher).
- replace('\\*\\*', '.*').
- replace('\\*', '[^:/.?&;]*');
- return new RegExp('^' + matcher + '$');
- } else if (isRegExp(matcher)) {
- // The only other type of matcher allowed is a Regexp.
- // Match entire URL / disallow partial matches.
- // Flags are reset (i.e. no global, ignoreCase or multiline)
- return new RegExp('^' + matcher.source + '$');
- } else {
- throw $sceMinErr('imatcher',
- 'Matchers may only be "self", string patterns or RegExp objects');
- }
-}
-
-
-function adjustMatchers(matchers) {
- var adjustedMatchers = [];
- if (isDefined(matchers)) {
- forEach(matchers, function(matcher) {
- adjustedMatchers.push(adjustMatcher(matcher));
- });
- }
- return adjustedMatchers;
-}
-
-
-/**
- * @ngdoc service
- * @name $sceDelegate
- * @kind function
- *
- * @description
- *
- * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict
- * Contextual Escaping (SCE)} services to AngularJS.
- *
- * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of
- * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS. This is
- * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to
- * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things
- * work because `$sce` delegates to `$sceDelegate` for these operations.
- *
- * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.
- *
- * The default instance of `$sceDelegate` should work out of the box with little pain. While you
- * can override it completely to change the behavior of `$sce`, the common case would
- * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting
- * your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as
- * templates. Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist
- * $sceDelegateProvider.resourceUrlWhitelist} and {@link
- * ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}
- */
-
-/**
- * @ngdoc provider
- * @name $sceDelegateProvider
- * @description
- *
- * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate
- * $sceDelegate} service. This allows one to get/set the whitelists and blacklists used to ensure
- * that the URLs used for sourcing Angular templates are safe. Refer {@link
- * ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist} and
- * {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}
- *
- * For the general details about this service in Angular, read the main page for {@link ng.$sce
- * Strict Contextual Escaping (SCE)}.
- *
- * **Example**: Consider the following case. <a name="example"></a>
- *
- * - your app is hosted at url `http://myapp.example.com/`
- * - but some of your templates are hosted on other domains you control such as
- * `http://srv01.assets.example.com/`,  `http://srv02.assets.example.com/`, etc.
- * - and you have an open redirect at `http://myapp.example.com/clickThru?...`.
- *
- * Here is what a secure configuration for this scenario might look like:
- *
- * ```
- * angular.module('myApp', []).config(function($sceDelegateProvider) {
- * $sceDelegateProvider.resourceUrlWhitelist([
- * // Allow same origin resource loads.
- * 'self',
- * // Allow loading from our assets domain. Notice the difference between * and **.
- * 'http://srv*.assets.example.com/**'
- * ]);
- *
- * // The blacklist overrides the whitelist so the open redirect here is blocked.
- * $sceDelegateProvider.resourceUrlBlacklist([
- * 'http://myapp.example.com/clickThru**'
- * ]);
- * });
- * ```
- */
-
-function $SceDelegateProvider() {
- this.SCE_CONTEXTS = SCE_CONTEXTS;
-
- // Resource URLs can also be trusted by policy.
- var resourceUrlWhitelist = ['self'],
- resourceUrlBlacklist = [];
-
- /**
- * @ngdoc method
- * @name $sceDelegateProvider#resourceUrlWhitelist
- * @kind function
- *
- * @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value
- * provided. This must be an array or null. A snapshot of this array is used so further
- * changes to the array are ignored.
- *
- * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
- * allowed in this array.
- *
- * <div class="alert alert-warning">
- * **Note:** an empty whitelist array will block all URLs!
- * </div>
- *
- * @return {Array} the currently set whitelist array.
- *
- * The **default value** when no whitelist has been explicitly set is `['self']` allowing only
- * same origin resource requests.
- *
- * @description
- * Sets/Gets the whitelist of trusted resource URLs.
- */
- this.resourceUrlWhitelist = function(value) {
- if (arguments.length) {
- resourceUrlWhitelist = adjustMatchers(value);
- }
- return resourceUrlWhitelist;
- };
-
- /**
- * @ngdoc method
- * @name $sceDelegateProvider#resourceUrlBlacklist
- * @kind function
- *
- * @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value
- * provided. This must be an array or null. A snapshot of this array is used so further
- * changes to the array are ignored.
- *
- * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
- * allowed in this array.
- *
- * The typical usage for the blacklist is to **block
- * [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as
- * these would otherwise be trusted but actually return content from the redirected domain.
- *
- * Finally, **the blacklist overrides the whitelist** and has the final say.
- *
- * @return {Array} the currently set blacklist array.
- *
- * The **default value** when no whitelist has been explicitly set is the empty array (i.e. there
- * is no blacklist.)
- *
- * @description
- * Sets/Gets the blacklist of trusted resource URLs.
- */
-
- this.resourceUrlBlacklist = function(value) {
- if (arguments.length) {
- resourceUrlBlacklist = adjustMatchers(value);
- }
- return resourceUrlBlacklist;
- };
-
- this.$get = ['$injector', function($injector) {
-
- var htmlSanitizer = function htmlSanitizer(html) {
- throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');
- };
-
- if ($injector.has('$sanitize')) {
- htmlSanitizer = $injector.get('$sanitize');
- }
-
-
- function matchUrl(matcher, parsedUrl) {
- if (matcher === 'self') {
- return urlIsSameOrigin(parsedUrl);
- } else {
- // definitely a regex. See adjustMatchers()
- return !!matcher.exec(parsedUrl.href);
- }
- }
-
- function isResourceUrlAllowedByPolicy(url) {
- var parsedUrl = urlResolve(url.toString());
- var i, n, allowed = false;
- // Ensure that at least one item from the whitelist allows this url.
- for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) {
- if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) {
- allowed = true;
- break;
- }
- }
- if (allowed) {
- // Ensure that no item from the blacklist blocked this url.
- for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) {
- if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) {
- allowed = false;
- break;
- }
- }
- }
- return allowed;
- }
-
- function generateHolderType(Base) {
- var holderType = function TrustedValueHolderType(trustedValue) {
- this.$$unwrapTrustedValue = function() {
- return trustedValue;
- };
- };
- if (Base) {
- holderType.prototype = new Base();
- }
- holderType.prototype.valueOf = function sceValueOf() {
- return this.$$unwrapTrustedValue();
- };
- holderType.prototype.toString = function sceToString() {
- return this.$$unwrapTrustedValue().toString();
- };
- return holderType;
- }
-
- var trustedValueHolderBase = generateHolderType(),
- byType = {};
-
- byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase);
- byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase);
- byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase);
- byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase);
- byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]);
-
- /**
- * @ngdoc method
- * @name $sceDelegate#trustAs
- *
- * @description
- * Returns an object that is trusted by angular for use in specified strict
- * contextual escaping contexts (such as ng-bind-html, ng-include, any src
- * attribute interpolation, any dom event binding attribute interpolation
- * such as for onclick, etc.) that uses the provided value.
- * See {@link ng.$sce $sce} for enabling strict contextual escaping.
- *
- * @param {string} type The kind of context in which this value is safe for use. e.g. url,
- * resourceUrl, html, js and css.
- * @param {*} value The value that that should be considered trusted/safe.
- * @returns {*} A value that can be used to stand in for the provided `value` in places
- * where Angular expects a $sce.trustAs() return value.
- */
- function trustAs(type, trustedValue) {
- var Constructor = (byType.hasOwnProperty(type) ? byType[type] : null);
- if (!Constructor) {
- throw $sceMinErr('icontext',
- 'Attempted to trust a value in invalid context. Context: {0}; Value: {1}',
- type, trustedValue);
- }
- if (trustedValue === null || isUndefined(trustedValue) || trustedValue === '') {
- return trustedValue;
- }
- // All the current contexts in SCE_CONTEXTS happen to be strings. In order to avoid trusting
- // mutable objects, we ensure here that the value passed in is actually a string.
- if (typeof trustedValue !== 'string') {
- throw $sceMinErr('itype',
- 'Attempted to trust a non-string value in a content requiring a string: Context: {0}',
- type);
- }
- return new Constructor(trustedValue);
- }
-
- /**
- * @ngdoc method
- * @name $sceDelegate#valueOf
- *
- * @description
- * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs
- * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link
- * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.
- *
- * If the passed parameter is not a value that had been returned by {@link
- * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, returns it as-is.
- *
- * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}
- * call or anything else.
- * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs
- * `$sceDelegate.trustAs`} if `value` is the result of such a call. Otherwise, returns
- * `value` unchanged.
- */
- function valueOf(maybeTrusted) {
- if (maybeTrusted instanceof trustedValueHolderBase) {
- return maybeTrusted.$$unwrapTrustedValue();
- } else {
- return maybeTrusted;
- }
- }
-
- /**
- * @ngdoc method
- * @name $sceDelegate#getTrusted
- *
- * @description
- * Takes the result of a {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call and
- * returns the originally supplied value if the queried context type is a supertype of the
- * created type. If this condition isn't satisfied, throws an exception.
- *
- * <div class="alert alert-danger">
- * Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting
- * (XSS) vulnerability in your application.
- * </div>
- *
- * @param {string} type The kind of context in which this value is to be used.
- * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs
- * `$sceDelegate.trustAs`} call.
- * @returns {*} The value the was originally provided to {@link ng.$sceDelegate#trustAs
- * `$sceDelegate.trustAs`} if valid in this context. Otherwise, throws an exception.
- */
- function getTrusted(type, maybeTrusted) {
- if (maybeTrusted === null || isUndefined(maybeTrusted) || maybeTrusted === '') {
- return maybeTrusted;
- }
- var constructor = (byType.hasOwnProperty(type) ? byType[type] : null);
- if (constructor && maybeTrusted instanceof constructor) {
- return maybeTrusted.$$unwrapTrustedValue();
- }
- // If we get here, then we may only take one of two actions.
- // 1. sanitize the value for the requested type, or
- // 2. throw an exception.
- if (type === SCE_CONTEXTS.RESOURCE_URL) {
- if (isResourceUrlAllowedByPolicy(maybeTrusted)) {
- return maybeTrusted;
- } else {
- throw $sceMinErr('insecurl',
- 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}',
- maybeTrusted.toString());
- }
- } else if (type === SCE_CONTEXTS.HTML) {
- return htmlSanitizer(maybeTrusted);
- }
- throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');
- }
-
- return { trustAs: trustAs,
- getTrusted: getTrusted,
- valueOf: valueOf };
- }];
-}
-
-
-/**
- * @ngdoc provider
- * @name $sceProvider
- * @description
- *
- * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.
- * - enable/disable Strict Contextual Escaping (SCE) in a module
- * - override the default implementation with a custom delegate
- *
- * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.
- */
-
-/* jshint maxlen: false*/
-
-/**
- * @ngdoc service
- * @name $sce
- * @kind function
- *
- * @description
- *
- * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.
- *
- * # Strict Contextual Escaping
- *
- * Strict Contextual Escaping (SCE) is a mode in which AngularJS requires bindings in certain
- * contexts to result in a value that is marked as safe to use for that context. One example of
- * such a context is binding arbitrary html controlled by the user via `ng-bind-html`. We refer
- * to these contexts as privileged or SCE contexts.
- *
- * As of version 1.2, Angular ships with SCE enabled by default.
- *
- * Note: When enabled (the default), IE<11 in quirks mode is not supported. In this mode, IE<11 allow
- * one to execute arbitrary javascript by the use of the expression() syntax. Refer
- * <http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx> to learn more about them.
- * You can ensure your document is in standards mode and not quirks mode by adding `<!doctype html>`
- * to the top of your HTML document.
- *
- * SCE assists in writing code in way that (a) is secure by default and (b) makes auditing for
- * security vulnerabilities such as XSS, clickjacking, etc. a lot easier.
- *
- * Here's an example of a binding in a privileged context:
- *
- * ```
- * <input ng-model="userHtml" aria-label="User input">
- * <div ng-bind-html="userHtml"></div>
- * ```
- *
- * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE
- * disabled, this application allows the user to render arbitrary HTML into the DIV.
- * In a more realistic example, one may be rendering user comments, blog articles, etc. via
- * bindings. (HTML is just one example of a context where rendering user controlled input creates
- * security vulnerabilities.)
- *
- * For the case of HTML, you might use a library, either on the client side, or on the server side,
- * to sanitize unsafe HTML before binding to the value and rendering it in the document.
- *
- * How would you ensure that every place that used these types of bindings was bound to a value that
- * was sanitized by your library (or returned as safe for rendering by your server?) How can you
- * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some
- * properties/fields and forgot to update the binding to the sanitized value?
- *
- * To be secure by default, you want to ensure that any such bindings are disallowed unless you can
- * determine that something explicitly says it's safe to use a value for binding in that
- * context. You can then audit your code (a simple grep would do) to ensure that this is only done
- * for those values that you can easily tell are safe - because they were received from your server,
- * sanitized by your library, etc. You can organize your codebase to help with this - perhaps
- * allowing only the files in a specific directory to do this. Ensuring that the internal API
- * exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.
- *
- * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}
- * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to
- * obtain values that will be accepted by SCE / privileged contexts.
- *
- *
- * ## How does it work?
- *
- * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted
- * $sce.getTrusted(context, value)} rather than to the value directly. Directives use {@link
- * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs the
- * {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals.
- *
- * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link
- * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}. Here's the actual code (slightly
- * simplified):
- *
- * ```
- * var ngBindHtmlDirective = ['$sce', function($sce) {
- * return function(scope, element, attr) {
- * scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {
- * element.html(value || '');
- * });
- * };
- * }];
- * ```
- *
- * ## Impact on loading templates
- *
- * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as
- * `templateUrl`'s specified by {@link guide/directive directives}.
- *
- * By default, Angular only loads templates from the same domain and protocol as the application
- * document. This is done by calling {@link ng.$sce#getTrustedResourceUrl
- * $sce.getTrustedResourceUrl} on the template URL. To load templates from other domains and/or
- * protocols, you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist
- * them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.
- *
- * *Please note*:
- * The browser's
- * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
- * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
- * policy apply in addition to this and may further restrict whether the template is successfully
- * loaded. This means that without the right CORS policy, loading templates from a different domain
- * won't work on all browsers. Also, loading templates from `file://` URL does not work on some
- * browsers.
- *
- * ## This feels like too much overhead
- *
- * It's important to remember that SCE only applies to interpolation expressions.
- *
- * If your expressions are constant literals, they're automatically trusted and you don't need to
- * call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g.
- * `<div ng-bind-html="'<b>implicitly trusted</b>'"></div>`) just works.
- *
- * Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them
- * through {@link ng.$sce#getTrusted $sce.getTrusted}. SCE doesn't play a role here.
- *
- * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load
- * templates in `ng-include` from your application's domain without having to even know about SCE.
- * It blocks loading templates from other domains or loading templates over http from an https
- * served document. You can change these by setting your own custom {@link
- * ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link
- * ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs.
- *
- * This significantly reduces the overhead. It is far easier to pay the small overhead and have an
- * application that's secure and can be audited to verify that with much more ease than bolting
- * security onto an application later.
- *
- * <a name="contexts"></a>
- * ## What trusted context types are supported?
- *
- * | Context | Notes |
- * |---------------------|----------------|
- * | `$sce.HTML` | For HTML that's safe to source into the application. The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |
- * | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. |
- * | `$sce.URL` | For URLs that are safe to follow as links. Currently unused (`<a href=` and `<img src=` sanitize their urls and don't constitute an SCE context. |
- * | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application. Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG` (e.g. `IFRAME`, `OBJECT`, etc.) <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. |
- * | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. |
- *
- * ## Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist} <a name="resourceUrlPatternItem"></a>
- *
- * Each element in these arrays must be one of the following:
- *
- * - **'self'**
- * - The special **string**, `'self'`, can be used to match against all URLs of the **same
- * domain** as the application document using the **same protocol**.
- * - **String** (except the special value `'self'`)
- * - The string is matched against the full *normalized / absolute URL* of the resource
- * being tested (substring matches are not good enough.)
- * - There are exactly **two wildcard sequences** - `*` and `**`. All other characters
- * match themselves.
- * - `*`: matches zero or more occurrences of any character other than one of the following 6
- * characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'. It's a useful wildcard for use
- * in a whitelist.
- * - `**`: matches zero or more occurrences of *any* character. As such, it's not
- * appropriate for use in a scheme, domain, etc. as it would match too much. (e.g.
- * http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might
- * not have been the intention.) Its usage at the very end of the path is ok. (e.g.
- * http://foo.example.com/templates/**).
- * - **RegExp** (*see caveat below*)
- * - *Caveat*: While regular expressions are powerful and offer great flexibility, their syntax
- * (and all the inevitable escaping) makes them *harder to maintain*. It's easy to
- * accidentally introduce a bug when one updates a complex expression (imho, all regexes should
- * have good test coverage). For instance, the use of `.` in the regex is correct only in a
- * small number of cases. A `.` character in the regex used when matching the scheme or a
- * subdomain could be matched against a `:` or literal `.` that was likely not intended. It
- * is highly recommended to use the string patterns and only fall back to regular expressions
- * as a last resort.
- * - The regular expression must be an instance of RegExp (i.e. not a string.) It is
- * matched against the **entire** *normalized / absolute URL* of the resource being tested
- * (even when the RegExp did not have the `^` and `$` codes.) In addition, any flags
- * present on the RegExp (such as multiline, global, ignoreCase) are ignored.
- * - If you are generating your JavaScript from some other templating engine (not
- * recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),
- * remember to escape your regular expression (and be aware that you might need more than
- * one level of escaping depending on your templating engine and the way you interpolated
- * the value.) Do make use of your platform's escaping mechanism as it might be good
- * enough before coding your own. E.g. Ruby has
- * [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)
- * and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).
- * Javascript lacks a similar built in function for escaping. Take a look at Google
- * Closure library's [goog.string.regExpEscape(s)](
- * http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).
- *
- * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.
- *
- * ## Show me an example using SCE.
- *
- * <example module="mySceApp" deps="angular-sanitize.js">
- * <file name="index.html">
- * <div ng-controller="AppController as myCtrl">
- * <i ng-bind-html="myCtrl.explicitlyTrustedHtml" id="explicitlyTrustedHtml"></i><br><br>
- * <b>User comments</b><br>
- * By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when
- * $sanitize is available. If $sanitize isn't available, this results in an error instead of an
- * exploit.
- * <div class="well">
- * <div ng-repeat="userComment in myCtrl.userComments">
- * <b>{{userComment.name}}</b>:
- * <span ng-bind-html="userComment.htmlComment" class="htmlComment"></span>
- * <br>
- * </div>
- * </div>
- * </div>
- * </file>
- *
- * <file name="script.js">
- * angular.module('mySceApp', ['ngSanitize'])
- * .controller('AppController', ['$http', '$templateCache', '$sce',
- * function($http, $templateCache, $sce) {
- * var self = this;
- * $http.get("test_data.json", {cache: $templateCache}).success(function(userComments) {
- * self.userComments = userComments;
- * });
- * self.explicitlyTrustedHtml = $sce.trustAsHtml(
- * '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +
- * 'sanitization.&quot;">Hover over this text.</span>');
- * }]);
- * </file>
- *
- * <file name="test_data.json">
- * [
- * { "name": "Alice",
- * "htmlComment":
- * "<span onmouseover='this.textContent=\"PWN3D!\"'>Is <i>anyone</i> reading this?</span>"
- * },
- * { "name": "Bob",
- * "htmlComment": "<i>Yes!</i> Am I the only other one?"
- * }
- * ]
- * </file>
- *
- * <file name="protractor.js" type="protractor">
- * describe('SCE doc demo', function() {
- * it('should sanitize untrusted values', function() {
- * expect(element.all(by.css('.htmlComment')).first().getInnerHtml())
- * .toBe('<span>Is <i>anyone</i> reading this?</span>');
- * });
- *
- * it('should NOT sanitize explicitly trusted values', function() {
- * expect(element(by.id('explicitlyTrustedHtml')).getInnerHtml()).toBe(
- * '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +
- * 'sanitization.&quot;">Hover over this text.</span>');
- * });
- * });
- * </file>
- * </example>
- *
- *
- *
- * ## Can I disable SCE completely?
- *
- * Yes, you can. However, this is strongly discouraged. SCE gives you a lot of security benefits
- * for little coding overhead. It will be much harder to take an SCE disabled application and
- * either secure it on your own or enable SCE at a later stage. It might make sense to disable SCE
- * for cases where you have a lot of existing code that was written before SCE was introduced and
- * you're migrating them a module at a time.
- *
- * That said, here's how you can completely disable SCE:
- *
- * ```
- * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {
- * // Completely disable SCE. For demonstration purposes only!
- * // Do not use in new projects.
- * $sceProvider.enabled(false);
- * });
- * ```
- *
- */
-/* jshint maxlen: 100 */
-
-function $SceProvider() {
- var enabled = true;
-
- /**
- * @ngdoc method
- * @name $sceProvider#enabled
- * @kind function
- *
- * @param {boolean=} value If provided, then enables/disables SCE.
- * @return {boolean} true if SCE is enabled, false otherwise.
- *
- * @description
- * Enables/disables SCE and returns the current value.
- */
- this.enabled = function(value) {
- if (arguments.length) {
- enabled = !!value;
- }
- return enabled;
- };
-
-
- /* Design notes on the default implementation for SCE.
- *
- * The API contract for the SCE delegate
- * -------------------------------------
- * The SCE delegate object must provide the following 3 methods:
- *
- * - trustAs(contextEnum, value)
- * This method is used to tell the SCE service that the provided value is OK to use in the
- * contexts specified by contextEnum. It must return an object that will be accepted by
- * getTrusted() for a compatible contextEnum and return this value.
- *
- * - valueOf(value)
- * For values that were not produced by trustAs(), return them as is. For values that were
- * produced by trustAs(), return the corresponding input value to trustAs. Basically, if
- * trustAs is wrapping the given values into some type, this operation unwraps it when given
- * such a value.
- *
- * - getTrusted(contextEnum, value)
- * This function should return the a value that is safe to use in the context specified by
- * contextEnum or throw and exception otherwise.
- *
- * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be
- * opaque or wrapped in some holder object. That happens to be an implementation detail. For
- * instance, an implementation could maintain a registry of all trusted objects by context. In
- * such a case, trustAs() would return the same object that was passed in. getTrusted() would
- * return the same object passed in if it was found in the registry under a compatible context or
- * throw an exception otherwise. An implementation might only wrap values some of the time based
- * on some criteria. getTrusted() might return a value and not throw an exception for special
- * constants or objects even if not wrapped. All such implementations fulfill this contract.
- *
- *
- * A note on the inheritance model for SCE contexts
- * ------------------------------------------------
- * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types. This
- * is purely an implementation details.
- *
- * The contract is simply this:
- *
- * getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)
- * will also succeed.
- *
- * Inheritance happens to capture this in a natural way. In some future, we
- * may not use inheritance anymore. That is OK because no code outside of
- * sce.js and sceSpecs.js would need to be aware of this detail.
- */
-
- this.$get = ['$parse', '$sceDelegate', function(
- $parse, $sceDelegate) {
- // Prereq: Ensure that we're not running in IE<11 quirks mode. In that mode, IE < 11 allow
- // the "expression(javascript expression)" syntax which is insecure.
- if (enabled && msie < 8) {
- throw $sceMinErr('iequirks',
- 'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' +
- 'mode. You can fix this by adding the text <!doctype html> to the top of your HTML ' +
- 'document. See http://docs.angularjs.org/api/ng.$sce for more information.');
- }
-
- var sce = shallowCopy(SCE_CONTEXTS);
-
- /**
- * @ngdoc method
- * @name $sce#isEnabled
- * @kind function
- *
- * @return {Boolean} true if SCE is enabled, false otherwise. If you want to set the value, you
- * have to do it at module config time on {@link ng.$sceProvider $sceProvider}.
- *
- * @description
- * Returns a boolean indicating if SCE is enabled.
- */
- sce.isEnabled = function() {
- return enabled;
- };
- sce.trustAs = $sceDelegate.trustAs;
- sce.getTrusted = $sceDelegate.getTrusted;
- sce.valueOf = $sceDelegate.valueOf;
-
- if (!enabled) {
- sce.trustAs = sce.getTrusted = function(type, value) { return value; };
- sce.valueOf = identity;
- }
-
- /**
- * @ngdoc method
- * @name $sce#parseAs
- *
- * @description
- * Converts Angular {@link guide/expression expression} into a function. This is like {@link
- * ng.$parse $parse} and is identical when the expression is a literal constant. Otherwise, it
- * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,
- * *result*)}
- *
- * @param {string} type The kind of SCE context in which this result will be used.
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
- sce.parseAs = function sceParseAs(type, expr) {
- var parsed = $parse(expr);
- if (parsed.literal && parsed.constant) {
- return parsed;
- } else {
- return $parse(expr, function(value) {
- return sce.getTrusted(type, value);
- });
- }
- };
-
- /**
- * @ngdoc method
- * @name $sce#trustAs
- *
- * @description
- * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}. As such,
- * returns an object that is trusted by angular for use in specified strict contextual
- * escaping contexts (such as ng-bind-html, ng-include, any src attribute
- * interpolation, any dom event binding attribute interpolation such as for onclick, etc.)
- * that uses the provided value. See * {@link ng.$sce $sce} for enabling strict contextual
- * escaping.
- *
- * @param {string} type The kind of context in which this value is safe for use. e.g. url,
- * resourceUrl, html, js and css.
- * @param {*} value The value that that should be considered trusted/safe.
- * @returns {*} A value that can be used to stand in for the provided `value` in places
- * where Angular expects a $sce.trustAs() return value.
- */
-
- /**
- * @ngdoc method
- * @name $sce#trustAsHtml
- *
- * @description
- * Shorthand method. `$sce.trustAsHtml(value)` →
- * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}
- *
- * @param {*} value The value to trustAs.
- * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedHtml
- * $sce.getTrustedHtml(value)} to obtain the original value. (privileged directives
- * only accept expressions that are either literal constants or are the
- * return value of {@link ng.$sce#trustAs $sce.trustAs}.)
- */
-
- /**
- * @ngdoc method
- * @name $sce#trustAsUrl
- *
- * @description
- * Shorthand method. `$sce.trustAsUrl(value)` →
- * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}
- *
- * @param {*} value The value to trustAs.
- * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedUrl
- * $sce.getTrustedUrl(value)} to obtain the original value. (privileged directives
- * only accept expressions that are either literal constants or are the
- * return value of {@link ng.$sce#trustAs $sce.trustAs}.)
- */
-
- /**
- * @ngdoc method
- * @name $sce#trustAsResourceUrl
- *
- * @description
- * Shorthand method. `$sce.trustAsResourceUrl(value)` →
- * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}
- *
- * @param {*} value The value to trustAs.
- * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedResourceUrl
- * $sce.getTrustedResourceUrl(value)} to obtain the original value. (privileged directives
- * only accept expressions that are either literal constants or are the return
- * value of {@link ng.$sce#trustAs $sce.trustAs}.)
- */
-
- /**
- * @ngdoc method
- * @name $sce#trustAsJs
- *
- * @description
- * Shorthand method. `$sce.trustAsJs(value)` →
- * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}
- *
- * @param {*} value The value to trustAs.
- * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedJs
- * $sce.getTrustedJs(value)} to obtain the original value. (privileged directives
- * only accept expressions that are either literal constants or are the
- * return value of {@link ng.$sce#trustAs $sce.trustAs}.)
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrusted
- *
- * @description
- * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}. As such,
- * takes the result of a {@link ng.$sce#trustAs `$sce.trustAs`}() call and returns the
- * originally supplied value if the queried context type is a supertype of the created type.
- * If this condition isn't satisfied, throws an exception.
- *
- * @param {string} type The kind of context in which this value is to be used.
- * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs `$sce.trustAs`}
- * call.
- * @returns {*} The value the was originally provided to
- * {@link ng.$sce#trustAs `$sce.trustAs`} if valid in this context.
- * Otherwise, throws an exception.
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedHtml
- *
- * @description
- * Shorthand method. `$sce.getTrustedHtml(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}
- *
- * @param {*} value The value to pass to `$sce.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.HTML, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedCss
- *
- * @description
- * Shorthand method. `$sce.getTrustedCss(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}
- *
- * @param {*} value The value to pass to `$sce.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.CSS, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedUrl
- *
- * @description
- * Shorthand method. `$sce.getTrustedUrl(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}
- *
- * @param {*} value The value to pass to `$sce.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.URL, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedResourceUrl
- *
- * @description
- * Shorthand method. `$sce.getTrustedResourceUrl(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}
- *
- * @param {*} value The value to pass to `$sceDelegate.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#getTrustedJs
- *
- * @description
- * Shorthand method. `$sce.getTrustedJs(value)` →
- * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}
- *
- * @param {*} value The value to pass to `$sce.getTrusted`.
- * @returns {*} The return value of `$sce.getTrusted($sce.JS, value)`
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsHtml
- *
- * @description
- * Shorthand method. `$sce.parseAsHtml(expression string)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsCss
- *
- * @description
- * Shorthand method. `$sce.parseAsCss(value)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsUrl
- *
- * @description
- * Shorthand method. `$sce.parseAsUrl(value)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsResourceUrl
- *
- * @description
- * Shorthand method. `$sce.parseAsResourceUrl(value)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- /**
- * @ngdoc method
- * @name $sce#parseAsJs
- *
- * @description
- * Shorthand method. `$sce.parseAsJs(value)` →
- * {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}
- *
- * @param {string} expression String expression to compile.
- * @returns {function(context, locals)} a function which represents the compiled expression:
- *
- * * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (typically a scope object).
- * * `locals` – `{object=}` – local variables context object, useful for overriding values in
- * `context`.
- */
-
- // Shorthand delegations.
- var parse = sce.parseAs,
- getTrusted = sce.getTrusted,
- trustAs = sce.trustAs;
-
- forEach(SCE_CONTEXTS, function(enumValue, name) {
- var lName = lowercase(name);
- sce[camelCase("parse_as_" + lName)] = function(expr) {
- return parse(enumValue, expr);
- };
- sce[camelCase("get_trusted_" + lName)] = function(value) {
- return getTrusted(enumValue, value);
- };
- sce[camelCase("trust_as_" + lName)] = function(value) {
- return trustAs(enumValue, value);
- };
- });
-
- return sce;
- }];
-}
-
-/**
- * !!! This is an undocumented "private" service !!!
- *
- * @name $sniffer
- * @requires $window
- * @requires $document
- *
- * @property {boolean} history Does the browser support html5 history api ?
- * @property {boolean} transitions Does the browser support CSS transition events ?
- * @property {boolean} animations Does the browser support CSS animation events ?
- *
- * @description
- * This is very simple implementation of testing browser's features.
- */
-function $SnifferProvider() {
- this.$get = ['$window', '$document', function($window, $document) {
- var eventSupport = {},
- android =
- toInt((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
- boxee = /Boxee/i.test(($window.navigator || {}).userAgent),
- document = $document[0] || {},
- vendorPrefix,
- vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/,
- bodyStyle = document.body && document.body.style,
- transitions = false,
- animations = false,
- match;
-
- if (bodyStyle) {
- for (var prop in bodyStyle) {
- if (match = vendorRegex.exec(prop)) {
- vendorPrefix = match[0];
- vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1);
- break;
- }
- }
-
- if (!vendorPrefix) {
- vendorPrefix = ('WebkitOpacity' in bodyStyle) && 'webkit';
- }
-
- transitions = !!(('transition' in bodyStyle) || (vendorPrefix + 'Transition' in bodyStyle));
- animations = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));
-
- if (android && (!transitions || !animations)) {
- transitions = isString(bodyStyle.webkitTransition);
- animations = isString(bodyStyle.webkitAnimation);
- }
- }
-
-
- return {
- // Android has history.pushState, but it does not update location correctly
- // so let's not use the history API at all.
- // http://code.google.com/p/android/issues/detail?id=17471
- // https://github.com/angular/angular.js/issues/904
-
- // older webkit browser (533.9) on Boxee box has exactly the same problem as Android has
- // so let's not use the history API also
- // We are purposefully using `!(android < 4)` to cover the case when `android` is undefined
- // jshint -W018
- history: !!($window.history && $window.history.pushState && !(android < 4) && !boxee),
- // jshint +W018
- hasEvent: function(event) {
- // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
- // it. In particular the event is not fired when backspace or delete key are pressed or
- // when cut operation is performed.
- // IE10+ implements 'input' event but it erroneously fires under various situations,
- // e.g. when placeholder changes, or a form is focused.
- if (event === 'input' && msie <= 11) return false;
-
- if (isUndefined(eventSupport[event])) {
- var divElm = document.createElement('div');
- eventSupport[event] = 'on' + event in divElm;
- }
-
- return eventSupport[event];
- },
- csp: csp(),
- vendorPrefix: vendorPrefix,
- transitions: transitions,
- animations: animations,
- android: android
- };
- }];
-}
-
-var $compileMinErr = minErr('$compile');
-
-/**
- * @ngdoc provider
- * @name $templateRequestProvider
- * @description
- * Used to configure the options passed to the {@link $http} service when making a template request.
- *
- * For example, it can be used for specifying the "Accept" header that is sent to the server, when
- * requesting a template.
- */
-function $TemplateRequestProvider() {
-
- var httpOptions;
-
- /**
- * @ngdoc method
- * @name $templateRequestProvider#httpOptions
- * @description
- * The options to be passed to the {@link $http} service when making the request.
- * You can use this to override options such as the "Accept" header for template requests.
- *
- * The {@link $templateRequest} will set the `cache` and the `transformResponse` properties of the
- * options if not overridden here.
- *
- * @param {string=} value new value for the {@link $http} options.
- * @returns {string|self} Returns the {@link $http} options when used as getter and self if used as setter.
- */
- this.httpOptions = function(val) {
- if (val) {
- httpOptions = val;
- return this;
- }
- return httpOptions;
- };
-
- /**
- * @ngdoc service
- * @name $templateRequest
- *
- * @description
- * The `$templateRequest` service runs security checks then downloads the provided template using
- * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request
- * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the
- * exception can be thwarted by setting the 2nd parameter of the function to true). Note that the
- * contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted
- * when `tpl` is of type string and `$templateCache` has the matching entry.
- *
- * If you want to pass custom options to the `$http` service, such as setting the Accept header you
- * can configure this via {@link $templateRequestProvider#httpOptions}.
- *
- * @param {string|TrustedResourceUrl} tpl The HTTP request template URL
- * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty
- *
- * @return {Promise} a promise for the HTTP response data of the given URL.
- *
- * @property {number} totalPendingRequests total amount of pending template requests being downloaded.
- */
- this.$get = ['$templateCache', '$http', '$q', '$sce', function($templateCache, $http, $q, $sce) {
-
- function handleRequestFn(tpl, ignoreRequestError) {
- handleRequestFn.totalPendingRequests++;
-
- // We consider the template cache holds only trusted templates, so
- // there's no need to go through whitelisting again for keys that already
- // are included in there. This also makes Angular accept any script
- // directive, no matter its name. However, we still need to unwrap trusted
- // types.
- if (!isString(tpl) || !$templateCache.get(tpl)) {
- tpl = $sce.getTrustedResourceUrl(tpl);
- }
-
- var transformResponse = $http.defaults && $http.defaults.transformResponse;
-
- if (isArray(transformResponse)) {
- transformResponse = transformResponse.filter(function(transformer) {
- return transformer !== defaultHttpResponseTransform;
- });
- } else if (transformResponse === defaultHttpResponseTransform) {
- transformResponse = null;
- }
-
- return $http.get(tpl, extend({
- cache: $templateCache,
- transformResponse: transformResponse
- }, httpOptions))
- ['finally'](function() {
- handleRequestFn.totalPendingRequests--;
- })
- .then(function(response) {
- $templateCache.put(tpl, response.data);
- return response.data;
- }, handleError);
-
- function handleError(resp) {
- if (!ignoreRequestError) {
- throw $compileMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})',
- tpl, resp.status, resp.statusText);
- }
- return $q.reject(resp);
- }
- }
-
- handleRequestFn.totalPendingRequests = 0;
-
- return handleRequestFn;
- }];
-}
-
-function $$TestabilityProvider() {
- this.$get = ['$rootScope', '$browser', '$location',
- function($rootScope, $browser, $location) {
-
- /**
- * @name $testability
- *
- * @description
- * The private $$testability service provides a collection of methods for use when debugging
- * or by automated test and debugging tools.
- */
- var testability = {};
-
- /**
- * @name $$testability#findBindings
- *
- * @description
- * Returns an array of elements that are bound (via ng-bind or {{}})
- * to expressions matching the input.
- *
- * @param {Element} element The element root to search from.
- * @param {string} expression The binding expression to match.
- * @param {boolean} opt_exactMatch If true, only returns exact matches
- * for the expression. Filters and whitespace are ignored.
- */
- testability.findBindings = function(element, expression, opt_exactMatch) {
- var bindings = element.getElementsByClassName('ng-binding');
- var matches = [];
- forEach(bindings, function(binding) {
- var dataBinding = angular.element(binding).data('$binding');
- if (dataBinding) {
- forEach(dataBinding, function(bindingName) {
- if (opt_exactMatch) {
- var matcher = new RegExp('(^|\\s)' + escapeForRegexp(expression) + '(\\s|\\||$)');
- if (matcher.test(bindingName)) {
- matches.push(binding);
- }
- } else {
- if (bindingName.indexOf(expression) != -1) {
- matches.push(binding);
- }
- }
- });
- }
- });
- return matches;
- };
-
- /**
- * @name $$testability#findModels
- *
- * @description
- * Returns an array of elements that are two-way found via ng-model to
- * expressions matching the input.
- *
- * @param {Element} element The element root to search from.
- * @param {string} expression The model expression to match.
- * @param {boolean} opt_exactMatch If true, only returns exact matches
- * for the expression.
- */
- testability.findModels = function(element, expression, opt_exactMatch) {
- var prefixes = ['ng-', 'data-ng-', 'ng\\:'];
- for (var p = 0; p < prefixes.length; ++p) {
- var attributeEquals = opt_exactMatch ? '=' : '*=';
- var selector = '[' + prefixes[p] + 'model' + attributeEquals + '"' + expression + '"]';
- var elements = element.querySelectorAll(selector);
- if (elements.length) {
- return elements;
- }
- }
- };
-
- /**
- * @name $$testability#getLocation
- *
- * @description
- * Shortcut for getting the location in a browser agnostic way. Returns
- * the path, search, and hash. (e.g. /path?a=b#hash)
- */
- testability.getLocation = function() {
- return $location.url();
- };
-
- /**
- * @name $$testability#setLocation
- *
- * @description
- * Shortcut for navigating to a location without doing a full page reload.
- *
- * @param {string} url The location url (path, search and hash,
- * e.g. /path?a=b#hash) to go to.
- */
- testability.setLocation = function(url) {
- if (url !== $location.url()) {
- $location.url(url);
- $rootScope.$digest();
- }
- };
-
- /**
- * @name $$testability#whenStable
- *
- * @description
- * Calls the callback when $timeout and $http requests are completed.
- *
- * @param {function} callback
- */
- testability.whenStable = function(callback) {
- $browser.notifyWhenNoOutstandingRequests(callback);
- };
-
- return testability;
- }];
-}
-
-function $TimeoutProvider() {
- this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler',
- function($rootScope, $browser, $q, $$q, $exceptionHandler) {
-
- var deferreds = {};
-
-
- /**
- * @ngdoc service
- * @name $timeout
- *
- * @description
- * Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch
- * block and delegates any exceptions to
- * {@link ng.$exceptionHandler $exceptionHandler} service.
- *
- * The return value of calling `$timeout` is a promise, which will be resolved when
- * the delay has passed and the timeout function, if provided, is executed.
- *
- * To cancel a timeout request, call `$timeout.cancel(promise)`.
- *
- * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to
- * synchronously flush the queue of deferred functions.
- *
- * If you only want a promise that will be resolved after some specified delay
- * then you can call `$timeout` without the `fn` function.
- *
- * @param {function()=} fn A function, whose execution should be delayed.
- * @param {number=} [delay=0] Delay in milliseconds.
- * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
- * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
- * @param {...*=} Pass additional parameters to the executed function.
- * @returns {Promise} Promise that will be resolved when the timeout is reached. The promise
- * will be resolved with the return value of the `fn` function.
- *
- */
- function timeout(fn, delay, invokeApply) {
- if (!isFunction(fn)) {
- invokeApply = delay;
- delay = fn;
- fn = noop;
- }
-
- var args = sliceArgs(arguments, 3),
- skipApply = (isDefined(invokeApply) && !invokeApply),
- deferred = (skipApply ? $$q : $q).defer(),
- promise = deferred.promise,
- timeoutId;
-
- timeoutId = $browser.defer(function() {
- try {
- deferred.resolve(fn.apply(null, args));
- } catch (e) {
- deferred.reject(e);
- $exceptionHandler(e);
- }
- finally {
- delete deferreds[promise.$$timeoutId];
- }
-
- if (!skipApply) $rootScope.$apply();
- }, delay);
-
- promise.$$timeoutId = timeoutId;
- deferreds[timeoutId] = deferred;
-
- return promise;
- }
-
-
- /**
- * @ngdoc method
- * @name $timeout#cancel
- *
- * @description
- * Cancels a task associated with the `promise`. As a result of this, the promise will be
- * resolved with a rejection.
- *
- * @param {Promise=} promise Promise returned by the `$timeout` function.
- * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
- * canceled.
- */
- timeout.cancel = function(promise) {
- if (promise && promise.$$timeoutId in deferreds) {
- deferreds[promise.$$timeoutId].reject('canceled');
- delete deferreds[promise.$$timeoutId];
- return $browser.defer.cancel(promise.$$timeoutId);
- }
- return false;
- };
-
- return timeout;
- }];
-}
-
-// NOTE: The usage of window and document instead of $window and $document here is
-// deliberate. This service depends on the specific behavior of anchor nodes created by the
-// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and
-// cause us to break tests. In addition, when the browser resolves a URL for XHR, it
-// doesn't know about mocked locations and resolves URLs to the real document - which is
-// exactly the behavior needed here. There is little value is mocking these out for this
-// service.
-var urlParsingNode = document.createElement("a");
-var originUrl = urlResolve(window.location.href);
-
-
-/**
- *
- * Implementation Notes for non-IE browsers
- * ----------------------------------------
- * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,
- * results both in the normalizing and parsing of the URL. Normalizing means that a relative
- * URL will be resolved into an absolute URL in the context of the application document.
- * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related
- * properties are all populated to reflect the normalized URL. This approach has wide
- * compatibility - Safari 1+, Mozilla 1+, Opera 7+,e etc. See
- * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
- *
- * Implementation Notes for IE
- * ---------------------------
- * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other
- * browsers. However, the parsed components will not be set if the URL assigned did not specify
- * them. (e.g. if you assign a.href = "foo", then a.protocol, a.host, etc. will be empty.) We
- * work around that by performing the parsing in a 2nd step by taking a previously normalized
- * URL (e.g. by assigning to a.href) and assigning it a.href again. This correctly populates the
- * properties such as protocol, hostname, port, etc.
- *
- * References:
- * http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement
- * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
- * http://url.spec.whatwg.org/#urlutils
- * https://github.com/angular/angular.js/pull/2902
- * http://james.padolsey.com/javascript/parsing-urls-with-the-dom/
- *
- * @kind function
- * @param {string} url The URL to be parsed.
- * @description Normalizes and parses a URL.
- * @returns {object} Returns the normalized URL as a dictionary.
- *
- * | member name | Description |
- * |---------------|----------------|
- * | href | A normalized version of the provided URL if it was not an absolute URL |
- * | protocol | The protocol including the trailing colon |
- * | host | The host and port (if the port is non-default) of the normalizedUrl |
- * | search | The search params, minus the question mark |
- * | hash | The hash string, minus the hash symbol
- * | hostname | The hostname
- * | port | The port, without ":"
- * | pathname | The pathname, beginning with "/"
- *
- */
-function urlResolve(url) {
- var href = url;
-
- if (msie) {
- // Normalize before parse. Refer Implementation Notes on why this is
- // done in two steps on IE.
- urlParsingNode.setAttribute("href", href);
- href = urlParsingNode.href;
- }
-
- urlParsingNode.setAttribute('href', href);
-
- // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
- return {
- href: urlParsingNode.href,
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
- host: urlParsingNode.host,
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
- hostname: urlParsingNode.hostname,
- port: urlParsingNode.port,
- pathname: (urlParsingNode.pathname.charAt(0) === '/')
- ? urlParsingNode.pathname
- : '/' + urlParsingNode.pathname
- };
-}
-
-/**
- * Parse a request URL and determine whether this is a same-origin request as the application document.
- *
- * @param {string|object} requestUrl The url of the request as a string that will be resolved
- * or a parsed URL object.
- * @returns {boolean} Whether the request is for the same origin as the application document.
- */
-function urlIsSameOrigin(requestUrl) {
- var parsed = (isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;
- return (parsed.protocol === originUrl.protocol &&
- parsed.host === originUrl.host);
-}
-
-/**
- * @ngdoc service
- * @name $window
- *
- * @description
- * A reference to the browser's `window` object. While `window`
- * is globally available in JavaScript, it causes testability problems, because
- * it is a global variable. In angular we always refer to it through the
- * `$window` service, so it may be overridden, removed or mocked for testing.
- *
- * Expressions, like the one defined for the `ngClick` directive in the example
- * below, are evaluated with respect to the current scope. Therefore, there is
- * no risk of inadvertently coding in a dependency on a global value in such an
- * expression.
- *
- * @example
- <example module="windowExample">
- <file name="index.html">
- <script>
- angular.module('windowExample', [])
- .controller('ExampleController', ['$scope', '$window', function($scope, $window) {
- $scope.greeting = 'Hello, World!';
- $scope.doGreeting = function(greeting) {
- $window.alert(greeting);
- };
- }]);
- </script>
- <div ng-controller="ExampleController">
- <input type="text" ng-model="greeting" aria-label="greeting" />
- <button ng-click="doGreeting(greeting)">ALERT</button>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should display the greeting in the input box', function() {
- element(by.model('greeting')).sendKeys('Hello, E2E Tests');
- // If we click the button it will block the test runner
- // element(':button').click();
- });
- </file>
- </example>
- */
-function $WindowProvider() {
- this.$get = valueFn(window);
-}
-
-/**
- * @name $$cookieReader
- * @requires $document
- *
- * @description
- * This is a private service for reading cookies used by $http and ngCookies
- *
- * @return {Object} a key/value map of the current cookies
- */
-function $$CookieReader($document) {
- var rawDocument = $document[0] || {};
- var lastCookies = {};
- var lastCookieString = '';
-
- function safeDecodeURIComponent(str) {
- try {
- return decodeURIComponent(str);
- } catch (e) {
- return str;
- }
- }
-
- return function() {
- var cookieArray, cookie, i, index, name;
- var currentCookieString = rawDocument.cookie || '';
-
- if (currentCookieString !== lastCookieString) {
- lastCookieString = currentCookieString;
- cookieArray = lastCookieString.split('; ');
- lastCookies = {};
-
- for (i = 0; i < cookieArray.length; i++) {
- cookie = cookieArray[i];
- index = cookie.indexOf('=');
- if (index > 0) { //ignore nameless cookies
- name = safeDecodeURIComponent(cookie.substring(0, index));
- // the first value that is seen for a cookie is the most
- // specific one. values for the same cookie name that
- // follow are for less specific paths.
- if (isUndefined(lastCookies[name])) {
- lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1));
- }
- }
- }
- }
- return lastCookies;
- };
-}
-
-$$CookieReader.$inject = ['$document'];
-
-function $$CookieReaderProvider() {
- this.$get = $$CookieReader;
-}
-
-/* global currencyFilter: true,
- dateFilter: true,
- filterFilter: true,
- jsonFilter: true,
- limitToFilter: true,
- lowercaseFilter: true,
- numberFilter: true,
- orderByFilter: true,
- uppercaseFilter: true,
- */
-
-/**
- * @ngdoc provider
- * @name $filterProvider
- * @description
- *
- * Filters are just functions which transform input to an output. However filters need to be
- * Dependency Injected. To achieve this a filter definition consists of a factory function which is
- * annotated with dependencies and is responsible for creating a filter function.
- *
- * <div class="alert alert-warning">
- * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
- * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
- * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
- * (`myapp_subsection_filterx`).
- * </div>
- *
- * ```js
- * // Filter registration
- * function MyModule($provide, $filterProvider) {
- * // create a service to demonstrate injection (not always needed)
- * $provide.value('greet', function(name){
- * return 'Hello ' + name + '!';
- * });
- *
- * // register a filter factory which uses the
- * // greet service to demonstrate DI.
- * $filterProvider.register('greet', function(greet){
- * // return the filter function which uses the greet service
- * // to generate salutation
- * return function(text) {
- * // filters need to be forgiving so check input validity
- * return text && greet(text) || text;
- * };
- * });
- * }
- * ```
- *
- * The filter function is registered with the `$injector` under the filter name suffix with
- * `Filter`.
- *
- * ```js
- * it('should be the same instance', inject(
- * function($filterProvider) {
- * $filterProvider.register('reverse', function(){
- * return ...;
- * });
- * },
- * function($filter, reverseFilter) {
- * expect($filter('reverse')).toBe(reverseFilter);
- * });
- * ```
- *
- *
- * For more information about how angular filters work, and how to create your own filters, see
- * {@link guide/filter Filters} in the Angular Developer Guide.
- */
-
-/**
- * @ngdoc service
- * @name $filter
- * @kind function
- * @description
- * Filters are used for formatting data displayed to the user.
- *
- * The general syntax in templates is as follows:
- *
- * {{ expression [| filter_name[:parameter_value] ... ] }}
- *
- * @param {String} name Name of the filter function to retrieve
- * @return {Function} the filter function
- * @example
- <example name="$filter" module="filterExample">
- <file name="index.html">
- <div ng-controller="MainCtrl">
- <h3>{{ originalText }}</h3>
- <h3>{{ filteredText }}</h3>
- </div>
- </file>
-
- <file name="script.js">
- angular.module('filterExample', [])
- .controller('MainCtrl', function($scope, $filter) {
- $scope.originalText = 'hello';
- $scope.filteredText = $filter('uppercase')($scope.originalText);
- });
- </file>
- </example>
- */
-$FilterProvider.$inject = ['$provide'];
-function $FilterProvider($provide) {
- var suffix = 'Filter';
-
- /**
- * @ngdoc method
- * @name $filterProvider#register
- * @param {string|Object} name Name of the filter function, or an object map of filters where
- * the keys are the filter names and the values are the filter factories.
- *
- * <div class="alert alert-warning">
- * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
- * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
- * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
- * (`myapp_subsection_filterx`).
- * </div>
- * @param {Function} factory If the first argument was a string, a factory function for the filter to be registered.
- * @returns {Object} Registered filter instance, or if a map of filters was provided then a map
- * of the registered filter instances.
- */
- function register(name, factory) {
- if (isObject(name)) {
- var filters = {};
- forEach(name, function(filter, key) {
- filters[key] = register(key, filter);
- });
- return filters;
- } else {
- return $provide.factory(name + suffix, factory);
- }
- }
- this.register = register;
-
- this.$get = ['$injector', function($injector) {
- return function(name) {
- return $injector.get(name + suffix);
- };
- }];
-
- ////////////////////////////////////////
-
- /* global
- currencyFilter: false,
- dateFilter: false,
- filterFilter: false,
- jsonFilter: false,
- limitToFilter: false,
- lowercaseFilter: false,
- numberFilter: false,
- orderByFilter: false,
- uppercaseFilter: false,
- */
-
- register('currency', currencyFilter);
- register('date', dateFilter);
- register('filter', filterFilter);
- register('json', jsonFilter);
- register('limitTo', limitToFilter);
- register('lowercase', lowercaseFilter);
- register('number', numberFilter);
- register('orderBy', orderByFilter);
- register('uppercase', uppercaseFilter);
-}
-
-/**
- * @ngdoc filter
- * @name filter
- * @kind function
- *
- * @description
- * Selects a subset of items from `array` and returns it as a new array.
- *
- * @param {Array} array The source array.
- * @param {string|Object|function()} expression The predicate to be used for selecting items from
- * `array`.
- *
- * Can be one of:
- *
- * - `string`: The string is used for matching against the contents of the `array`. All strings or
- * objects with string properties in `array` that match this string will be returned. This also
- * applies to nested object properties.
- * The predicate can be negated by prefixing the string with `!`.
- *
- * - `Object`: A pattern object can be used to filter specific properties on objects contained
- * by `array`. For example `{name:"M", phone:"1"}` predicate will return an array of items
- * which have property `name` containing "M" and property `phone` containing "1". A special
- * property name `$` can be used (as in `{$:"text"}`) to accept a match against any
- * property of the object or its nested object properties. That's equivalent to the simple
- * substring match with a `string` as described above. The predicate can be negated by prefixing
- * the string with `!`.
- * For example `{name: "!M"}` predicate will return an array of items which have property `name`
- * not containing "M".
- *
- * Note that a named property will match properties on the same level only, while the special
- * `$` property will match properties on the same level or deeper. E.g. an array item like
- * `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but
- * **will** be matched by `{$: 'John'}`.
- *
- * - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.
- * The function is called for each element of the array, with the element, its index, and
- * the entire array itself as arguments.
- *
- * The final result is an array of those elements that the predicate returned true for.
- *
- * @param {function(actual, expected)|true|undefined} comparator Comparator which is used in
- * determining if the expected value (from the filter expression) and actual value (from
- * the object in the array) should be considered a match.
- *
- * Can be one of:
- *
- * - `function(actual, expected)`:
- * The function will be given the object value and the predicate value to compare and
- * should return true if both values should be considered equal.
- *
- * - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.
- * This is essentially strict comparison of expected and actual.
- *
- * - `false|undefined`: A short hand for a function which will look for a substring match in case
- * insensitive way.
- *
- * Primitive values are converted to strings. Objects are not compared against primitives,
- * unless they have a custom `toString` method (e.g. `Date` objects).
- *
- * @example
- <example>
- <file name="index.html">
- <div ng-init="friends = [{name:'John', phone:'555-1276'},
- {name:'Mary', phone:'800-BIG-MARY'},
- {name:'Mike', phone:'555-4321'},
- {name:'Adam', phone:'555-5678'},
- {name:'Julie', phone:'555-8765'},
- {name:'Juliette', phone:'555-5678'}]"></div>
-
- <label>Search: <input ng-model="searchText"></label>
- <table id="searchTextResults">
- <tr><th>Name</th><th>Phone</th></tr>
- <tr ng-repeat="friend in friends | filter:searchText">
- <td>{{friend.name}}</td>
- <td>{{friend.phone}}</td>
- </tr>
- </table>
- <hr>
- <label>Any: <input ng-model="search.$"></label> <br>
- <label>Name only <input ng-model="search.name"></label><br>
- <label>Phone only <input ng-model="search.phone"></label><br>
- <label>Equality <input type="checkbox" ng-model="strict"></label><br>
- <table id="searchObjResults">
- <tr><th>Name</th><th>Phone</th></tr>
- <tr ng-repeat="friendObj in friends | filter:search:strict">
- <td>{{friendObj.name}}</td>
- <td>{{friendObj.phone}}</td>
- </tr>
- </table>
- </file>
- <file name="protractor.js" type="protractor">
- var expectFriendNames = function(expectedNames, key) {
- element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {
- arr.forEach(function(wd, i) {
- expect(wd.getText()).toMatch(expectedNames[i]);
- });
- });
- };
-
- it('should search across all fields when filtering with a string', function() {
- var searchText = element(by.model('searchText'));
- searchText.clear();
- searchText.sendKeys('m');
- expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');
-
- searchText.clear();
- searchText.sendKeys('76');
- expectFriendNames(['John', 'Julie'], 'friend');
- });
-
- it('should search in specific fields when filtering with a predicate object', function() {
- var searchAny = element(by.model('search.$'));
- searchAny.clear();
- searchAny.sendKeys('i');
- expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');
- });
- it('should use a equal comparison when comparator is true', function() {
- var searchName = element(by.model('search.name'));
- var strict = element(by.model('strict'));
- searchName.clear();
- searchName.sendKeys('Julie');
- strict.click();
- expectFriendNames(['Julie'], 'friendObj');
- });
- </file>
- </example>
- */
-function filterFilter() {
- return function(array, expression, comparator) {
- if (!isArrayLike(array)) {
- if (array == null) {
- return array;
- } else {
- throw minErr('filter')('notarray', 'Expected array but received: {0}', array);
- }
- }
-
- var expressionType = getTypeForFilter(expression);
- var predicateFn;
- var matchAgainstAnyProp;
-
- switch (expressionType) {
- case 'function':
- predicateFn = expression;
- break;
- case 'boolean':
- case 'null':
- case 'number':
- case 'string':
- matchAgainstAnyProp = true;
- //jshint -W086
- case 'object':
- //jshint +W086
- predicateFn = createPredicateFn(expression, comparator, matchAgainstAnyProp);
- break;
- default:
- return array;
- }
-
- return Array.prototype.filter.call(array, predicateFn);
- };
-}
-
-// Helper functions for `filterFilter`
-function createPredicateFn(expression, comparator, matchAgainstAnyProp) {
- var shouldMatchPrimitives = isObject(expression) && ('$' in expression);
- var predicateFn;
-
- if (comparator === true) {
- comparator = equals;
- } else if (!isFunction(comparator)) {
- comparator = function(actual, expected) {
- if (isUndefined(actual)) {
- // No substring matching against `undefined`
- return false;
- }
- if ((actual === null) || (expected === null)) {
- // No substring matching against `null`; only match against `null`
- return actual === expected;
- }
- if (isObject(expected) || (isObject(actual) && !hasCustomToString(actual))) {
- // Should not compare primitives against objects, unless they have custom `toString` method
- return false;
- }
-
- actual = lowercase('' + actual);
- expected = lowercase('' + expected);
- return actual.indexOf(expected) !== -1;
- };
- }
-
- predicateFn = function(item) {
- if (shouldMatchPrimitives && !isObject(item)) {
- return deepCompare(item, expression.$, comparator, false);
- }
- return deepCompare(item, expression, comparator, matchAgainstAnyProp);
- };
-
- return predicateFn;
-}
-
-function deepCompare(actual, expected, comparator, matchAgainstAnyProp, dontMatchWholeObject) {
- var actualType = getTypeForFilter(actual);
- var expectedType = getTypeForFilter(expected);
-
- if ((expectedType === 'string') && (expected.charAt(0) === '!')) {
- return !deepCompare(actual, expected.substring(1), comparator, matchAgainstAnyProp);
- } else if (isArray(actual)) {
- // In case `actual` is an array, consider it a match
- // if ANY of it's items matches `expected`
- return actual.some(function(item) {
- return deepCompare(item, expected, comparator, matchAgainstAnyProp);
- });
- }
-
- switch (actualType) {
- case 'object':
- var key;
- if (matchAgainstAnyProp) {
- for (key in actual) {
- if ((key.charAt(0) !== '$') && deepCompare(actual[key], expected, comparator, true)) {
- return true;
- }
- }
- return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, false);
- } else if (expectedType === 'object') {
- for (key in expected) {
- var expectedVal = expected[key];
- if (isFunction(expectedVal) || isUndefined(expectedVal)) {
- continue;
- }
-
- var matchAnyProperty = key === '$';
- var actualVal = matchAnyProperty ? actual : actual[key];
- if (!deepCompare(actualVal, expectedVal, comparator, matchAnyProperty, matchAnyProperty)) {
- return false;
- }
- }
- return true;
- } else {
- return comparator(actual, expected);
- }
- break;
- case 'function':
- return false;
- default:
- return comparator(actual, expected);
- }
-}
-
-// Used for easily differentiating between `null` and actual `object`
-function getTypeForFilter(val) {
- return (val === null) ? 'null' : typeof val;
-}
-
-var MAX_DIGITS = 22;
-var DECIMAL_SEP = '.';
-var ZERO_CHAR = '0';
-
-/**
- * @ngdoc filter
- * @name currency
- * @kind function
- *
- * @description
- * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default
- * symbol for current locale is used.
- *
- * @param {number} amount Input to filter.
- * @param {string=} symbol Currency symbol or identifier to be displayed.
- * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale
- * @returns {string} Formatted number.
- *
- *
- * @example
- <example module="currencyExample">
- <file name="index.html">
- <script>
- angular.module('currencyExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.amount = 1234.56;
- }]);
- </script>
- <div ng-controller="ExampleController">
- <input type="number" ng-model="amount" aria-label="amount"> <br>
- default currency symbol ($): <span id="currency-default">{{amount | currency}}</span><br>
- custom currency identifier (USD$): <span id="currency-custom">{{amount | currency:"USD$"}}</span>
- no fractions (0): <span id="currency-no-fractions">{{amount | currency:"USD$":0}}</span>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should init with 1234.56', function() {
- expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');
- expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');
- expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');
- });
- it('should update', function() {
- if (browser.params.browser == 'safari') {
- // Safari does not understand the minus key. See
- // https://github.com/angular/protractor/issues/481
- return;
- }
- element(by.model('amount')).clear();
- element(by.model('amount')).sendKeys('-1234');
- expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00');
- expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00');
- expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234');
- });
- </file>
- </example>
- */
-currencyFilter.$inject = ['$locale'];
-function currencyFilter($locale) {
- var formats = $locale.NUMBER_FORMATS;
- return function(amount, currencySymbol, fractionSize) {
- if (isUndefined(currencySymbol)) {
- currencySymbol = formats.CURRENCY_SYM;
- }
-
- if (isUndefined(fractionSize)) {
- fractionSize = formats.PATTERNS[1].maxFrac;
- }
-
- // if null or undefined pass it through
- return (amount == null)
- ? amount
- : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).
- replace(/\u00A4/g, currencySymbol);
- };
-}
-
-/**
- * @ngdoc filter
- * @name number
- * @kind function
- *
- * @description
- * Formats a number as text.
- *
- * If the input is null or undefined, it will just be returned.
- * If the input is infinite (Infinity/-Infinity) the Infinity symbol '∞' is returned.
- * If the input is not a number an empty string is returned.
- *
- *
- * @param {number|string} number Number to format.
- * @param {(number|string)=} fractionSize Number of decimal places to round the number to.
- * If this is not provided then the fraction size is computed from the current locale's number
- * formatting pattern. In the case of the default locale, it will be 3.
- * @returns {string} Number rounded to fractionSize and places a “,†after each third digit.
- *
- * @example
- <example module="numberFilterExample">
- <file name="index.html">
- <script>
- angular.module('numberFilterExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.val = 1234.56789;
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>Enter number: <input ng-model='val'></label><br>
- Default formatting: <span id='number-default'>{{val | number}}</span><br>
- No fractions: <span>{{val | number:0}}</span><br>
- Negative number: <span>{{-val | number:4}}</span>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should format numbers', function() {
- expect(element(by.id('number-default')).getText()).toBe('1,234.568');
- expect(element(by.binding('val | number:0')).getText()).toBe('1,235');
- expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');
- });
-
- it('should update', function() {
- element(by.model('val')).clear();
- element(by.model('val')).sendKeys('3374.333');
- expect(element(by.id('number-default')).getText()).toBe('3,374.333');
- expect(element(by.binding('val | number:0')).getText()).toBe('3,374');
- expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');
- });
- </file>
- </example>
- */
-numberFilter.$inject = ['$locale'];
-function numberFilter($locale) {
- var formats = $locale.NUMBER_FORMATS;
- return function(number, fractionSize) {
-
- // if null or undefined pass it through
- return (number == null)
- ? number
- : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,
- fractionSize);
- };
-}
-
-/**
- * Parse a number (as a string) into three components that can be used
- * for formatting the number.
- *
- * (Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/)
- *
- * @param {string} numStr The number to parse
- * @return {object} An object describing this number, containing the following keys:
- * - d : an array of digits containing leading zeros as necessary
- * - i : the number of the digits in `d` that are to the left of the decimal point
- * - e : the exponent for numbers that would need more than `MAX_DIGITS` digits in `d`
- *
- */
-function parse(numStr) {
- var exponent = 0, digits, numberOfIntegerDigits;
- var i, j, zeros;
-
- // Decimal point?
- if ((numberOfIntegerDigits = numStr.indexOf(DECIMAL_SEP)) > -1) {
- numStr = numStr.replace(DECIMAL_SEP, '');
- }
-
- // Exponential form?
- if ((i = numStr.search(/e/i)) > 0) {
- // Work out the exponent.
- if (numberOfIntegerDigits < 0) numberOfIntegerDigits = i;
- numberOfIntegerDigits += +numStr.slice(i + 1);
- numStr = numStr.substring(0, i);
- } else if (numberOfIntegerDigits < 0) {
- // There was no decimal point or exponent so it is an integer.
- numberOfIntegerDigits = numStr.length;
- }
-
- // Count the number of leading zeros.
- for (i = 0; numStr.charAt(i) == ZERO_CHAR; i++);
-
- if (i == (zeros = numStr.length)) {
- // The digits are all zero.
- digits = [0];
- numberOfIntegerDigits = 1;
- } else {
- // Count the number of trailing zeros
- zeros--;
- while (numStr.charAt(zeros) == ZERO_CHAR) zeros--;
-
- // Trailing zeros are insignificant so ignore them
- numberOfIntegerDigits -= i;
- digits = [];
- // Convert string to array of digits without leading/trailing zeros.
- for (j = 0; i <= zeros; i++, j++) {
- digits[j] = +numStr.charAt(i);
- }
- }
-
- // If the number overflows the maximum allowed digits then use an exponent.
- if (numberOfIntegerDigits > MAX_DIGITS) {
- digits = digits.splice(0, MAX_DIGITS - 1);
- exponent = numberOfIntegerDigits - 1;
- numberOfIntegerDigits = 1;
- }
-
- return { d: digits, e: exponent, i: numberOfIntegerDigits };
-}
-
-/**
- * Round the parsed number to the specified number of decimal places
- * This function changed the parsedNumber in-place
- */
-function roundNumber(parsedNumber, fractionSize, minFrac, maxFrac) {
- var digits = parsedNumber.d;
- var fractionLen = digits.length - parsedNumber.i;
-
- // determine fractionSize if it is not specified; `+fractionSize` converts it to a number
- fractionSize = (isUndefined(fractionSize)) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize;
-
- // The index of the digit to where rounding is to occur
- var roundAt = fractionSize + parsedNumber.i;
- var digit = digits[roundAt];
-
- if (roundAt > 0) {
- digits.splice(roundAt);
- } else {
- // We rounded to zero so reset the parsedNumber
- parsedNumber.i = 1;
- digits.length = roundAt = fractionSize + 1;
- for (var i=0; i < roundAt; i++) digits[i] = 0;
- }
-
- if (digit >= 5) digits[roundAt - 1]++;
-
- // Pad out with zeros to get the required fraction length
- for (; fractionLen < fractionSize; fractionLen++) digits.push(0);
-
-
- // Do any carrying, e.g. a digit was rounded up to 10
- var carry = digits.reduceRight(function(carry, d, i, digits) {
- d = d + carry;
- digits[i] = d % 10;
- return Math.floor(d / 10);
- }, 0);
- if (carry) {
- digits.unshift(carry);
- parsedNumber.i++;
- }
-}
-
-/**
- * Format a number into a string
- * @param {number} number The number to format
- * @param {{
- * minFrac, // the minimum number of digits required in the fraction part of the number
- * maxFrac, // the maximum number of digits required in the fraction part of the number
- * gSize, // number of digits in each group of separated digits
- * lgSize, // number of digits in the last group of digits before the decimal separator
- * negPre, // the string to go in front of a negative number (e.g. `-` or `(`))
- * posPre, // the string to go in front of a positive number
- * negSuf, // the string to go after a negative number (e.g. `)`)
- * posSuf // the string to go after a positive number
- * }} pattern
- * @param {string} groupSep The string to separate groups of number (e.g. `,`)
- * @param {string} decimalSep The string to act as the decimal separator (e.g. `.`)
- * @param {[type]} fractionSize The size of the fractional part of the number
- * @return {string} The number formatted as a string
- */
-function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {
-
- if (!(isString(number) || isNumber(number)) || isNaN(number)) return '';
-
- var isInfinity = !isFinite(number);
- var isZero = false;
- var numStr = Math.abs(number) + '',
- formattedText = '',
- parsedNumber;
-
- if (isInfinity) {
- formattedText = '\u221e';
- } else {
- parsedNumber = parse(numStr);
-
- roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac);
-
- var digits = parsedNumber.d;
- var integerLen = parsedNumber.i;
- var exponent = parsedNumber.e;
- var decimals = [];
- isZero = digits.reduce(function(isZero, d) { return isZero && !d; }, true);
-
- // pad zeros for small numbers
- while (integerLen < 0) {
- digits.unshift(0);
- integerLen++;
- }
-
- // extract decimals digits
- if (integerLen > 0) {
- decimals = digits.splice(integerLen);
- } else {
- decimals = digits;
- digits = [0];
- }
-
- // format the integer digits with grouping separators
- var groups = [];
- if (digits.length > pattern.lgSize) {
- groups.unshift(digits.splice(-pattern.lgSize).join(''));
- }
- while (digits.length > pattern.gSize) {
- groups.unshift(digits.splice(-pattern.gSize).join(''));
- }
- if (digits.length) {
- groups.unshift(digits.join(''));
- }
- formattedText = groups.join(groupSep);
-
- // append the decimal digits
- if (decimals.length) {
- formattedText += decimalSep + decimals.join('');
- }
-
- if (exponent) {
- formattedText += 'e+' + exponent;
- }
- }
- if (number < 0 && !isZero) {
- return pattern.negPre + formattedText + pattern.negSuf;
- } else {
- return pattern.posPre + formattedText + pattern.posSuf;
- }
-}
-
-function padNumber(num, digits, trim) {
- var neg = '';
- if (num < 0) {
- neg = '-';
- num = -num;
- }
- num = '' + num;
- while (num.length < digits) num = ZERO_CHAR + num;
- if (trim) {
- num = num.substr(num.length - digits);
- }
- return neg + num;
-}
-
-
-function dateGetter(name, size, offset, trim) {
- offset = offset || 0;
- return function(date) {
- var value = date['get' + name]();
- if (offset > 0 || value > -offset) {
- value += offset;
- }
- if (value === 0 && offset == -12) value = 12;
- return padNumber(value, size, trim);
- };
-}
-
-function dateStrGetter(name, shortForm) {
- return function(date, formats) {
- var value = date['get' + name]();
- var get = uppercase(shortForm ? ('SHORT' + name) : name);
-
- return formats[get][value];
- };
-}
-
-function timeZoneGetter(date, formats, offset) {
- var zone = -1 * offset;
- var paddedZone = (zone >= 0) ? "+" : "";
-
- paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
- padNumber(Math.abs(zone % 60), 2);
-
- return paddedZone;
-}
-
-function getFirstThursdayOfYear(year) {
- // 0 = index of January
- var dayOfWeekOnFirst = (new Date(year, 0, 1)).getDay();
- // 4 = index of Thursday (+1 to account for 1st = 5)
- // 11 = index of *next* Thursday (+1 account for 1st = 12)
- return new Date(year, 0, ((dayOfWeekOnFirst <= 4) ? 5 : 12) - dayOfWeekOnFirst);
-}
-
-function getThursdayThisWeek(datetime) {
- return new Date(datetime.getFullYear(), datetime.getMonth(),
- // 4 = index of Thursday
- datetime.getDate() + (4 - datetime.getDay()));
-}
-
-function weekGetter(size) {
- return function(date) {
- var firstThurs = getFirstThursdayOfYear(date.getFullYear()),
- thisThurs = getThursdayThisWeek(date);
-
- var diff = +thisThurs - +firstThurs,
- result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week
-
- return padNumber(result, size);
- };
-}
-
-function ampmGetter(date, formats) {
- return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];
-}
-
-function eraGetter(date, formats) {
- return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1];
-}
-
-function longEraGetter(date, formats) {
- return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1];
-}
-
-var DATE_FORMATS = {
- yyyy: dateGetter('FullYear', 4),
- yy: dateGetter('FullYear', 2, 0, true),
- y: dateGetter('FullYear', 1),
- MMMM: dateStrGetter('Month'),
- MMM: dateStrGetter('Month', true),
- MM: dateGetter('Month', 2, 1),
- M: dateGetter('Month', 1, 1),
- dd: dateGetter('Date', 2),
- d: dateGetter('Date', 1),
- HH: dateGetter('Hours', 2),
- H: dateGetter('Hours', 1),
- hh: dateGetter('Hours', 2, -12),
- h: dateGetter('Hours', 1, -12),
- mm: dateGetter('Minutes', 2),
- m: dateGetter('Minutes', 1),
- ss: dateGetter('Seconds', 2),
- s: dateGetter('Seconds', 1),
- // while ISO 8601 requires fractions to be prefixed with `.` or `,`
- // we can be just safely rely on using `sss` since we currently don't support single or two digit fractions
- sss: dateGetter('Milliseconds', 3),
- EEEE: dateStrGetter('Day'),
- EEE: dateStrGetter('Day', true),
- a: ampmGetter,
- Z: timeZoneGetter,
- ww: weekGetter(2),
- w: weekGetter(1),
- G: eraGetter,
- GG: eraGetter,
- GGG: eraGetter,
- GGGG: longEraGetter
-};
-
-var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,
- NUMBER_STRING = /^\-?\d+$/;
-
-/**
- * @ngdoc filter
- * @name date
- * @kind function
- *
- * @description
- * Formats `date` to a string based on the requested `format`.
- *
- * `format` string can be composed of the following elements:
- *
- * * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)
- * * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)
- * * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)
- * * `'MMMM'`: Month in year (January-December)
- * * `'MMM'`: Month in year (Jan-Dec)
- * * `'MM'`: Month in year, padded (01-12)
- * * `'M'`: Month in year (1-12)
- * * `'dd'`: Day in month, padded (01-31)
- * * `'d'`: Day in month (1-31)
- * * `'EEEE'`: Day in Week,(Sunday-Saturday)
- * * `'EEE'`: Day in Week, (Sun-Sat)
- * * `'HH'`: Hour in day, padded (00-23)
- * * `'H'`: Hour in day (0-23)
- * * `'hh'`: Hour in AM/PM, padded (01-12)
- * * `'h'`: Hour in AM/PM, (1-12)
- * * `'mm'`: Minute in hour, padded (00-59)
- * * `'m'`: Minute in hour (0-59)
- * * `'ss'`: Second in minute, padded (00-59)
- * * `'s'`: Second in minute (0-59)
- * * `'sss'`: Millisecond in second, padded (000-999)
- * * `'a'`: AM/PM marker
- * * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)
- * * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year
- * * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year
- * * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')
- * * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')
- *
- * `format` string can also be one of the following predefined
- * {@link guide/i18n localizable formats}:
- *
- * * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale
- * (e.g. Sep 3, 2010 12:05:08 PM)
- * * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 PM)
- * * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US locale
- * (e.g. Friday, September 3, 2010)
- * * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010)
- * * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010)
- * * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)
- * * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)
- * * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)
- *
- * `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.
- * `"h 'in the morning'"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence
- * (e.g. `"h 'o''clock'"`).
- *
- * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or
- * number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its
- * shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is
- * specified in the string input, the time is considered to be in the local timezone.
- * @param {string=} format Formatting rules (see Description). If not specified,
- * `mediumDate` is used.
- * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the
- * continental US time zone abbreviations, but for general use, use a time zone offset, for
- * example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
- * If not specified, the timezone of the browser will be used.
- * @returns {string} Formatted string or the input if input is not recognized as date/millis.
- *
- * @example
- <example>
- <file name="index.html">
- <span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:
- <span>{{1288323623006 | date:'medium'}}</span><br>
- <span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:
- <span>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span><br>
- <span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:
- <span>{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}</span><br>
- <span ng-non-bindable>{{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}</span>:
- <span>{{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}</span><br>
- </file>
- <file name="protractor.js" type="protractor">
- it('should format date', function() {
- expect(element(by.binding("1288323623006 | date:'medium'")).getText()).
- toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (AM|PM)/);
- expect(element(by.binding("1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'")).getText()).
- toMatch(/2010\-10\-2\d \d{2}:\d{2}:\d{2} (\-|\+)?\d{4}/);
- expect(element(by.binding("'1288323623006' | date:'MM/dd/yyyy @ h:mma'")).getText()).
- toMatch(/10\/2\d\/2010 @ \d{1,2}:\d{2}(AM|PM)/);
- expect(element(by.binding("'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"")).getText()).
- toMatch(/10\/2\d\/2010 at \d{1,2}:\d{2}(AM|PM)/);
- });
- </file>
- </example>
- */
-dateFilter.$inject = ['$locale'];
-function dateFilter($locale) {
-
-
- var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
- // 1 2 3 4 5 6 7 8 9 10 11
- function jsonStringToDate(string) {
- var match;
- if (match = string.match(R_ISO8601_STR)) {
- var date = new Date(0),
- tzHour = 0,
- tzMin = 0,
- dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,
- timeSetter = match[8] ? date.setUTCHours : date.setHours;
-
- if (match[9]) {
- tzHour = toInt(match[9] + match[10]);
- tzMin = toInt(match[9] + match[11]);
- }
- dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));
- var h = toInt(match[4] || 0) - tzHour;
- var m = toInt(match[5] || 0) - tzMin;
- var s = toInt(match[6] || 0);
- var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);
- timeSetter.call(date, h, m, s, ms);
- return date;
- }
- return string;
- }
-
-
- return function(date, format, timezone) {
- var text = '',
- parts = [],
- fn, match;
-
- format = format || 'mediumDate';
- format = $locale.DATETIME_FORMATS[format] || format;
- if (isString(date)) {
- date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date);
- }
-
- if (isNumber(date)) {
- date = new Date(date);
- }
-
- if (!isDate(date) || !isFinite(date.getTime())) {
- return date;
- }
-
- while (format) {
- match = DATE_FORMATS_SPLIT.exec(format);
- if (match) {
- parts = concat(parts, match, 1);
- format = parts.pop();
- } else {
- parts.push(format);
- format = null;
- }
- }
-
- var dateTimezoneOffset = date.getTimezoneOffset();
- if (timezone) {
- dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
- date = convertTimezoneToLocal(date, timezone, true);
- }
- forEach(parts, function(value) {
- fn = DATE_FORMATS[value];
- text += fn ? fn(date, $locale.DATETIME_FORMATS, dateTimezoneOffset)
- : value === "''" ? "'" : value.replace(/(^'|'$)/g, '').replace(/''/g, "'");
- });
-
- return text;
- };
-}
-
-
-/**
- * @ngdoc filter
- * @name json
- * @kind function
- *
- * @description
- * Allows you to convert a JavaScript object into JSON string.
- *
- * This filter is mostly useful for debugging. When using the double curly {{value}} notation
- * the binding is automatically converted to JSON.
- *
- * @param {*} object Any JavaScript object (including arrays and primitive types) to filter.
- * @param {number=} spacing The number of spaces to use per indentation, defaults to 2.
- * @returns {string} JSON string.
- *
- *
- * @example
- <example>
- <file name="index.html">
- <pre id="default-spacing">{{ {'name':'value'} | json }}</pre>
- <pre id="custom-spacing">{{ {'name':'value'} | json:4 }}</pre>
- </file>
- <file name="protractor.js" type="protractor">
- it('should jsonify filtered objects', function() {
- expect(element(by.id('default-spacing')).getText()).toMatch(/\{\n "name": ?"value"\n}/);
- expect(element(by.id('custom-spacing')).getText()).toMatch(/\{\n "name": ?"value"\n}/);
- });
- </file>
- </example>
- *
- */
-function jsonFilter() {
- return function(object, spacing) {
- if (isUndefined(spacing)) {
- spacing = 2;
- }
- return toJson(object, spacing);
- };
-}
-
-
-/**
- * @ngdoc filter
- * @name lowercase
- * @kind function
- * @description
- * Converts string to lowercase.
- * @see angular.lowercase
- */
-var lowercaseFilter = valueFn(lowercase);
-
-
-/**
- * @ngdoc filter
- * @name uppercase
- * @kind function
- * @description
- * Converts string to uppercase.
- * @see angular.uppercase
- */
-var uppercaseFilter = valueFn(uppercase);
-
-/**
- * @ngdoc filter
- * @name limitTo
- * @kind function
- *
- * @description
- * Creates a new array or string containing only a specified number of elements. The elements
- * are taken from either the beginning or the end of the source array, string or number, as specified by
- * the value and sign (positive or negative) of `limit`. If a number is used as input, it is
- * converted to a string.
- *
- * @param {Array|string|number} input Source array, string or number to be limited.
- * @param {string|number} limit The length of the returned array or string. If the `limit` number
- * is positive, `limit` number of items from the beginning of the source array/string are copied.
- * If the number is negative, `limit` number of items from the end of the source array/string
- * are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,
- * the input will be returned unchanged.
- * @param {(string|number)=} begin Index at which to begin limitation. As a negative index, `begin`
- * indicates an offset from the end of `input`. Defaults to `0`.
- * @returns {Array|string} A new sub-array or substring of length `limit` or less if input array
- * had less than `limit` elements.
- *
- * @example
- <example module="limitToExample">
- <file name="index.html">
- <script>
- angular.module('limitToExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.numbers = [1,2,3,4,5,6,7,8,9];
- $scope.letters = "abcdefghi";
- $scope.longNumber = 2345432342;
- $scope.numLimit = 3;
- $scope.letterLimit = 3;
- $scope.longNumberLimit = 3;
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>
- Limit {{numbers}} to:
- <input type="number" step="1" ng-model="numLimit">
- </label>
- <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>
- <label>
- Limit {{letters}} to:
- <input type="number" step="1" ng-model="letterLimit">
- </label>
- <p>Output letters: {{ letters | limitTo:letterLimit }}</p>
- <label>
- Limit {{longNumber}} to:
- <input type="number" step="1" ng-model="longNumberLimit">
- </label>
- <p>Output long number: {{ longNumber | limitTo:longNumberLimit }}</p>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- var numLimitInput = element(by.model('numLimit'));
- var letterLimitInput = element(by.model('letterLimit'));
- var longNumberLimitInput = element(by.model('longNumberLimit'));
- var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));
- var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));
- var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));
-
- it('should limit the number array to first three items', function() {
- expect(numLimitInput.getAttribute('value')).toBe('3');
- expect(letterLimitInput.getAttribute('value')).toBe('3');
- expect(longNumberLimitInput.getAttribute('value')).toBe('3');
- expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');
- expect(limitedLetters.getText()).toEqual('Output letters: abc');
- expect(limitedLongNumber.getText()).toEqual('Output long number: 234');
- });
-
- // There is a bug in safari and protractor that doesn't like the minus key
- // it('should update the output when -3 is entered', function() {
- // numLimitInput.clear();
- // numLimitInput.sendKeys('-3');
- // letterLimitInput.clear();
- // letterLimitInput.sendKeys('-3');
- // longNumberLimitInput.clear();
- // longNumberLimitInput.sendKeys('-3');
- // expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');
- // expect(limitedLetters.getText()).toEqual('Output letters: ghi');
- // expect(limitedLongNumber.getText()).toEqual('Output long number: 342');
- // });
-
- it('should not exceed the maximum size of input array', function() {
- numLimitInput.clear();
- numLimitInput.sendKeys('100');
- letterLimitInput.clear();
- letterLimitInput.sendKeys('100');
- longNumberLimitInput.clear();
- longNumberLimitInput.sendKeys('100');
- expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');
- expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');
- expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');
- });
- </file>
- </example>
-*/
-function limitToFilter() {
- return function(input, limit, begin) {
- if (Math.abs(Number(limit)) === Infinity) {
- limit = Number(limit);
- } else {
- limit = toInt(limit);
- }
- if (isNaN(limit)) return input;
-
- if (isNumber(input)) input = input.toString();
- if (!isArray(input) && !isString(input)) return input;
-
- begin = (!begin || isNaN(begin)) ? 0 : toInt(begin);
- begin = (begin < 0) ? Math.max(0, input.length + begin) : begin;
-
- if (limit >= 0) {
- return input.slice(begin, begin + limit);
- } else {
- if (begin === 0) {
- return input.slice(limit, input.length);
- } else {
- return input.slice(Math.max(0, begin + limit), begin);
- }
- }
- };
-}
-
-/**
- * @ngdoc filter
- * @name orderBy
- * @kind function
- *
- * @description
- * Orders a specified `array` by the `expression` predicate. It is ordered alphabetically
- * for strings and numerically for numbers. Note: if you notice numbers are not being sorted
- * as expected, make sure they are actually being saved as numbers and not strings.
- * Array-like values (e.g. NodeLists, jQuery objects, TypedArrays, Strings, etc) are also supported.
- *
- * @param {Array} array The array (or array-like object) to sort.
- * @param {function(*)|string|Array.<(function(*)|string)>=} expression A predicate to be
- * used by the comparator to determine the order of elements.
- *
- * Can be one of:
- *
- * - `function`: Getter function. The result of this function will be sorted using the
- * `<`, `===`, `>` operator.
- * - `string`: An Angular expression. The result of this expression is used to compare elements
- * (for example `name` to sort by a property called `name` or `name.substr(0, 3)` to sort by
- * 3 first characters of a property called `name`). The result of a constant expression
- * is interpreted as a property name to be used in comparisons (for example `"special name"`
- * to sort object by the value of their `special name` property). An expression can be
- * optionally prefixed with `+` or `-` to control ascending or descending sort order
- * (for example, `+name` or `-name`). If no property is provided, (e.g. `'+'`) then the array
- * element itself is used to compare where sorting.
- * - `Array`: An array of function or string predicates. The first predicate in the array
- * is used for sorting, but when two items are equivalent, the next predicate is used.
- *
- * If the predicate is missing or empty then it defaults to `'+'`.
- *
- * @param {boolean=} reverse Reverse the order of the array.
- * @returns {Array} Sorted copy of the source array.
- *
- *
- * @example
- * The example below demonstrates a simple ngRepeat, where the data is sorted
- * by age in descending order (predicate is set to `'-age'`).
- * `reverse` is not set, which means it defaults to `false`.
- <example module="orderByExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <table class="friend">
- <tr>
- <th>Name</th>
- <th>Phone Number</th>
- <th>Age</th>
- </tr>
- <tr ng-repeat="friend in friends | orderBy:'-age'">
- <td>{{friend.name}}</td>
- <td>{{friend.phone}}</td>
- <td>{{friend.age}}</td>
- </tr>
- </table>
- </div>
- </file>
- <file name="script.js">
- angular.module('orderByExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.friends =
- [{name:'John', phone:'555-1212', age:10},
- {name:'Mary', phone:'555-9876', age:19},
- {name:'Mike', phone:'555-4321', age:21},
- {name:'Adam', phone:'555-5678', age:35},
- {name:'Julie', phone:'555-8765', age:29}];
- }]);
- </file>
- </example>
- *
- * The predicate and reverse parameters can be controlled dynamically through scope properties,
- * as shown in the next example.
- * @example
- <example module="orderByExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <pre>Sorting predicate = {{predicate}}; reverse = {{reverse}}</pre>
- <hr/>
- <button ng-click="predicate=''">Set to unsorted</button>
- <table class="friend">
- <tr>
- <th>
- <button ng-click="order('name')">Name</button>
- <span class="sortorder" ng-show="predicate === 'name'" ng-class="{reverse:reverse}"></span>
- </th>
- <th>
- <button ng-click="order('phone')">Phone Number</button>
- <span class="sortorder" ng-show="predicate === 'phone'" ng-class="{reverse:reverse}"></span>
- </th>
- <th>
- <button ng-click="order('age')">Age</button>
- <span class="sortorder" ng-show="predicate === 'age'" ng-class="{reverse:reverse}"></span>
- </th>
- </tr>
- <tr ng-repeat="friend in friends | orderBy:predicate:reverse">
- <td>{{friend.name}}</td>
- <td>{{friend.phone}}</td>
- <td>{{friend.age}}</td>
- </tr>
- </table>
- </div>
- </file>
- <file name="script.js">
- angular.module('orderByExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.friends =
- [{name:'John', phone:'555-1212', age:10},
- {name:'Mary', phone:'555-9876', age:19},
- {name:'Mike', phone:'555-4321', age:21},
- {name:'Adam', phone:'555-5678', age:35},
- {name:'Julie', phone:'555-8765', age:29}];
- $scope.predicate = 'age';
- $scope.reverse = true;
- $scope.order = function(predicate) {
- $scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;
- $scope.predicate = predicate;
- };
- }]);
- </file>
- <file name="style.css">
- .sortorder:after {
- content: '\25b2';
- }
- .sortorder.reverse:after {
- content: '\25bc';
- }
- </file>
- </example>
- *
- * It's also possible to call the orderBy filter manually, by injecting `$filter`, retrieving the
- * filter routine with `$filter('orderBy')`, and calling the returned filter routine with the
- * desired parameters.
- *
- * Example:
- *
- * @example
- <example module="orderByExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <pre>Sorting predicate = {{predicate}}; reverse = {{reverse}}</pre>
- <table class="friend">
- <tr>
- <th>
- <button ng-click="order('name')">Name</button>
- <span class="sortorder" ng-show="predicate === 'name'" ng-class="{reverse:reverse}"></span>
- </th>
- <th>
- <button ng-click="order('phone')">Phone Number</button>
- <span class="sortorder" ng-show="predicate === 'phone'" ng-class="{reverse:reverse}"></span>
- </th>
- <th>
- <button ng-click="order('age')">Age</button>
- <span class="sortorder" ng-show="predicate === 'age'" ng-class="{reverse:reverse}"></span>
- </th>
- </tr>
- <tr ng-repeat="friend in friends">
- <td>{{friend.name}}</td>
- <td>{{friend.phone}}</td>
- <td>{{friend.age}}</td>
- </tr>
- </table>
- </div>
- </file>
-
- <file name="script.js">
- angular.module('orderByExample', [])
- .controller('ExampleController', ['$scope', '$filter', function($scope, $filter) {
- var orderBy = $filter('orderBy');
- $scope.friends = [
- { name: 'John', phone: '555-1212', age: 10 },
- { name: 'Mary', phone: '555-9876', age: 19 },
- { name: 'Mike', phone: '555-4321', age: 21 },
- { name: 'Adam', phone: '555-5678', age: 35 },
- { name: 'Julie', phone: '555-8765', age: 29 }
- ];
- $scope.order = function(predicate) {
- $scope.predicate = predicate;
- $scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;
- $scope.friends = orderBy($scope.friends, predicate, $scope.reverse);
- };
- $scope.order('age', true);
- }]);
- </file>
-
- <file name="style.css">
- .sortorder:after {
- content: '\25b2';
- }
- .sortorder.reverse:after {
- content: '\25bc';
- }
- </file>
-</example>
- */
-orderByFilter.$inject = ['$parse'];
-function orderByFilter($parse) {
- return function(array, sortPredicate, reverseOrder) {
-
- if (array == null) return array;
- if (!isArrayLike(array)) {
- throw minErr('orderBy')('notarray', 'Expected array but received: {0}', array);
- }
-
- if (!isArray(sortPredicate)) { sortPredicate = [sortPredicate]; }
- if (sortPredicate.length === 0) { sortPredicate = ['+']; }
-
- var predicates = processPredicates(sortPredicate, reverseOrder);
- // Add a predicate at the end that evaluates to the element index. This makes the
- // sort stable as it works as a tie-breaker when all the input predicates cannot
- // distinguish between two elements.
- predicates.push({ get: function() { return {}; }, descending: reverseOrder ? -1 : 1});
-
- // The next three lines are a version of a Swartzian Transform idiom from Perl
- // (sometimes called the Decorate-Sort-Undecorate idiom)
- // See https://en.wikipedia.org/wiki/Schwartzian_transform
- var compareValues = Array.prototype.map.call(array, getComparisonObject);
- compareValues.sort(doComparison);
- array = compareValues.map(function(item) { return item.value; });
-
- return array;
-
- function getComparisonObject(value, index) {
- return {
- value: value,
- predicateValues: predicates.map(function(predicate) {
- return getPredicateValue(predicate.get(value), index);
- })
- };
- }
-
- function doComparison(v1, v2) {
- var result = 0;
- for (var index=0, length = predicates.length; index < length; ++index) {
- result = compare(v1.predicateValues[index], v2.predicateValues[index]) * predicates[index].descending;
- if (result) break;
- }
- return result;
- }
- };
-
- function processPredicates(sortPredicate, reverseOrder) {
- reverseOrder = reverseOrder ? -1 : 1;
- return sortPredicate.map(function(predicate) {
- var descending = 1, get = identity;
-
- if (isFunction(predicate)) {
- get = predicate;
- } else if (isString(predicate)) {
- if ((predicate.charAt(0) == '+' || predicate.charAt(0) == '-')) {
- descending = predicate.charAt(0) == '-' ? -1 : 1;
- predicate = predicate.substring(1);
- }
- if (predicate !== '') {
- get = $parse(predicate);
- if (get.constant) {
- var key = get();
- get = function(value) { return value[key]; };
- }
- }
- }
- return { get: get, descending: descending * reverseOrder };
- });
- }
-
- function isPrimitive(value) {
- switch (typeof value) {
- case 'number': /* falls through */
- case 'boolean': /* falls through */
- case 'string':
- return true;
- default:
- return false;
- }
- }
-
- function objectValue(value, index) {
- // If `valueOf` is a valid function use that
- if (typeof value.valueOf === 'function') {
- value = value.valueOf();
- if (isPrimitive(value)) return value;
- }
- // If `toString` is a valid function and not the one from `Object.prototype` use that
- if (hasCustomToString(value)) {
- value = value.toString();
- if (isPrimitive(value)) return value;
- }
- // We have a basic object so we use the position of the object in the collection
- return index;
- }
-
- function getPredicateValue(value, index) {
- var type = typeof value;
- if (value === null) {
- type = 'string';
- value = 'null';
- } else if (type === 'string') {
- value = value.toLowerCase();
- } else if (type === 'object') {
- value = objectValue(value, index);
- }
- return { value: value, type: type };
- }
-
- function compare(v1, v2) {
- var result = 0;
- if (v1.type === v2.type) {
- if (v1.value !== v2.value) {
- result = v1.value < v2.value ? -1 : 1;
- }
- } else {
- result = v1.type < v2.type ? -1 : 1;
- }
- return result;
- }
-}
-
-function ngDirective(directive) {
- if (isFunction(directive)) {
- directive = {
- link: directive
- };
- }
- directive.restrict = directive.restrict || 'AC';
- return valueFn(directive);
-}
-
-/**
- * @ngdoc directive
- * @name a
- * @restrict E
- *
- * @description
- * Modifies the default behavior of the html A tag so that the default action is prevented when
- * the href attribute is empty.
- *
- * This change permits the easy creation of action links with the `ngClick` directive
- * without changing the location or causing page reloads, e.g.:
- * `<a href="" ng-click="list.addItem()">Add Item</a>`
- */
-var htmlAnchorDirective = valueFn({
- restrict: 'E',
- compile: function(element, attr) {
- if (!attr.href && !attr.xlinkHref) {
- return function(scope, element) {
- // If the linked element is not an anchor tag anymore, do nothing
- if (element[0].nodeName.toLowerCase() !== 'a') return;
-
- // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
- var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?
- 'xlink:href' : 'href';
- element.on('click', function(event) {
- // if we have no href url, then don't navigate anywhere.
- if (!element.attr(href)) {
- event.preventDefault();
- }
- });
- };
- }
- }
-});
-
-/**
- * @ngdoc directive
- * @name ngHref
- * @restrict A
- * @priority 99
- *
- * @description
- * Using Angular markup like `{{hash}}` in an href attribute will
- * make the link go to the wrong URL if the user clicks it before
- * Angular has a chance to replace the `{{hash}}` markup with its
- * value. Until Angular replaces the markup the link will be broken
- * and will most likely return a 404 error. The `ngHref` directive
- * solves this problem.
- *
- * The wrong way to write it:
- * ```html
- * <a href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
- * ```
- *
- * The correct way to write it:
- * ```html
- * <a ng-href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
- * ```
- *
- * @element A
- * @param {template} ngHref any string which can contain `{{}}` markup.
- *
- * @example
- * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes
- * in links and their different behaviors:
- <example>
- <file name="index.html">
- <input ng-model="value" /><br />
- <a id="link-1" href ng-click="value = 1">link 1</a> (link, don't reload)<br />
- <a id="link-2" href="" ng-click="value = 2">link 2</a> (link, don't reload)<br />
- <a id="link-3" ng-href="/{{'123'}}">link 3</a> (link, reload!)<br />
- <a id="link-4" href="" name="xx" ng-click="value = 4">anchor</a> (link, don't reload)<br />
- <a id="link-5" name="xxx" ng-click="value = 5">anchor</a> (no link)<br />
- <a id="link-6" ng-href="{{value}}">link</a> (link, change location)
- </file>
- <file name="protractor.js" type="protractor">
- it('should execute ng-click but not reload when href without value', function() {
- element(by.id('link-1')).click();
- expect(element(by.model('value')).getAttribute('value')).toEqual('1');
- expect(element(by.id('link-1')).getAttribute('href')).toBe('');
- });
-
- it('should execute ng-click but not reload when href empty string', function() {
- element(by.id('link-2')).click();
- expect(element(by.model('value')).getAttribute('value')).toEqual('2');
- expect(element(by.id('link-2')).getAttribute('href')).toBe('');
- });
-
- it('should execute ng-click and change url when ng-href specified', function() {
- expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\/123$/);
-
- element(by.id('link-3')).click();
-
- // At this point, we navigate away from an Angular page, so we need
- // to use browser.driver to get the base webdriver.
-
- browser.wait(function() {
- return browser.driver.getCurrentUrl().then(function(url) {
- return url.match(/\/123$/);
- });
- }, 5000, 'page should navigate to /123');
- });
-
- it('should execute ng-click but not reload when href empty string and name specified', function() {
- element(by.id('link-4')).click();
- expect(element(by.model('value')).getAttribute('value')).toEqual('4');
- expect(element(by.id('link-4')).getAttribute('href')).toBe('');
- });
-
- it('should execute ng-click but not reload when no href but name specified', function() {
- element(by.id('link-5')).click();
- expect(element(by.model('value')).getAttribute('value')).toEqual('5');
- expect(element(by.id('link-5')).getAttribute('href')).toBe(null);
- });
-
- it('should only change url when only ng-href', function() {
- element(by.model('value')).clear();
- element(by.model('value')).sendKeys('6');
- expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\/6$/);
-
- element(by.id('link-6')).click();
-
- // At this point, we navigate away from an Angular page, so we need
- // to use browser.driver to get the base webdriver.
- browser.wait(function() {
- return browser.driver.getCurrentUrl().then(function(url) {
- return url.match(/\/6$/);
- });
- }, 5000, 'page should navigate to /6');
- });
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngSrc
- * @restrict A
- * @priority 99
- *
- * @description
- * Using Angular markup like `{{hash}}` in a `src` attribute doesn't
- * work right: The browser will fetch from the URL with the literal
- * text `{{hash}}` until Angular replaces the expression inside
- * `{{hash}}`. The `ngSrc` directive solves this problem.
- *
- * The buggy way to write it:
- * ```html
- * <img src="http://www.gravatar.com/avatar/{{hash}}" alt="Description"/>
- * ```
- *
- * The correct way to write it:
- * ```html
- * <img ng-src="http://www.gravatar.com/avatar/{{hash}}" alt="Description" />
- * ```
- *
- * @element IMG
- * @param {template} ngSrc any string which can contain `{{}}` markup.
- */
-
-/**
- * @ngdoc directive
- * @name ngSrcset
- * @restrict A
- * @priority 99
- *
- * @description
- * Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't
- * work right: The browser will fetch from the URL with the literal
- * text `{{hash}}` until Angular replaces the expression inside
- * `{{hash}}`. The `ngSrcset` directive solves this problem.
- *
- * The buggy way to write it:
- * ```html
- * <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description"/>
- * ```
- *
- * The correct way to write it:
- * ```html
- * <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description" />
- * ```
- *
- * @element IMG
- * @param {template} ngSrcset any string which can contain `{{}}` markup.
- */
-
-/**
- * @ngdoc directive
- * @name ngDisabled
- * @restrict A
- * @priority 100
- *
- * @description
- *
- * This directive sets the `disabled` attribute on the element if the
- * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.
- *
- * A special directive is necessary because we cannot use interpolation inside the `disabled`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * @example
- <example>
- <file name="index.html">
- <label>Click me to toggle: <input type="checkbox" ng-model="checked"></label><br/>
- <button ng-model="button" ng-disabled="checked">Button</button>
- </file>
- <file name="protractor.js" type="protractor">
- it('should toggle button', function() {
- expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();
- element(by.model('checked')).click();
- expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element INPUT
- * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
- * then the `disabled` attribute will be set on the element
- */
-
-
-/**
- * @ngdoc directive
- * @name ngChecked
- * @restrict A
- * @priority 100
- *
- * @description
- * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.
- *
- * Note that this directive should not be used together with {@link ngModel `ngModel`},
- * as this can lead to unexpected behavior.
- *
- * A special directive is necessary because we cannot use interpolation inside the `checked`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * @example
- <example>
- <file name="index.html">
- <label>Check me to check both: <input type="checkbox" ng-model="master"></label><br/>
- <input id="checkSlave" type="checkbox" ng-checked="master" aria-label="Slave input">
- </file>
- <file name="protractor.js" type="protractor">
- it('should check both checkBoxes', function() {
- expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy();
- element(by.model('master')).click();
- expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element INPUT
- * @param {expression} ngChecked If the {@link guide/expression expression} is truthy,
- * then the `checked` attribute will be set on the element
- */
-
-
-/**
- * @ngdoc directive
- * @name ngReadonly
- * @restrict A
- * @priority 100
- *
- * @description
- *
- * Sets the `readOnly` attribute on the element, if the expression inside `ngReadonly` is truthy.
- *
- * A special directive is necessary because we cannot use interpolation inside the `readOnly`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * @example
- <example>
- <file name="index.html">
- <label>Check me to make text readonly: <input type="checkbox" ng-model="checked"></label><br/>
- <input type="text" ng-readonly="checked" value="I'm Angular" aria-label="Readonly field" />
- </file>
- <file name="protractor.js" type="protractor">
- it('should toggle readonly attr', function() {
- expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeFalsy();
- element(by.model('checked')).click();
- expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element INPUT
- * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,
- * then special attribute "readonly" will be set on the element
- */
-
-
-/**
- * @ngdoc directive
- * @name ngSelected
- * @restrict A
- * @priority 100
- *
- * @description
- *
- * Sets the `selected` attribute on the element, if the expression inside `ngSelected` is truthy.
- *
- * A special directive is necessary because we cannot use interpolation inside the `selected`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * @example
- <example>
- <file name="index.html">
- <label>Check me to select: <input type="checkbox" ng-model="selected"></label><br/>
- <select aria-label="ngSelected demo">
- <option>Hello!</option>
- <option id="greet" ng-selected="selected">Greetings!</option>
- </select>
- </file>
- <file name="protractor.js" type="protractor">
- it('should select Greetings!', function() {
- expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();
- element(by.model('selected')).click();
- expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element OPTION
- * @param {expression} ngSelected If the {@link guide/expression expression} is truthy,
- * then special attribute "selected" will be set on the element
- */
-
-/**
- * @ngdoc directive
- * @name ngOpen
- * @restrict A
- * @priority 100
- *
- * @description
- *
- * Sets the `open` attribute on the element, if the expression inside `ngOpen` is truthy.
- *
- * A special directive is necessary because we cannot use interpolation inside the `open`
- * attribute. See the {@link guide/interpolation interpolation guide} for more info.
- *
- * @example
- <example>
- <file name="index.html">
- <label>Check me check multiple: <input type="checkbox" ng-model="open"></label><br/>
- <details id="details" ng-open="open">
- <summary>Show/Hide me</summary>
- </details>
- </file>
- <file name="protractor.js" type="protractor">
- it('should toggle open', function() {
- expect(element(by.id('details')).getAttribute('open')).toBeFalsy();
- element(by.model('open')).click();
- expect(element(by.id('details')).getAttribute('open')).toBeTruthy();
- });
- </file>
- </example>
- *
- * @element DETAILS
- * @param {expression} ngOpen If the {@link guide/expression expression} is truthy,
- * then special attribute "open" will be set on the element
- */
-
-var ngAttributeAliasDirectives = {};
-
-// boolean attrs are evaluated
-forEach(BOOLEAN_ATTR, function(propName, attrName) {
- // binding to multiple is not supported
- if (propName == "multiple") return;
-
- function defaultLinkFn(scope, element, attr) {
- scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {
- attr.$set(attrName, !!value);
- });
- }
-
- var normalized = directiveNormalize('ng-' + attrName);
- var linkFn = defaultLinkFn;
-
- if (propName === 'checked') {
- linkFn = function(scope, element, attr) {
- // ensuring ngChecked doesn't interfere with ngModel when both are set on the same input
- if (attr.ngModel !== attr[normalized]) {
- defaultLinkFn(scope, element, attr);
- }
- };
- }
-
- ngAttributeAliasDirectives[normalized] = function() {
- return {
- restrict: 'A',
- priority: 100,
- link: linkFn
- };
- };
-});
-
-// aliased input attrs are evaluated
-forEach(ALIASED_ATTR, function(htmlAttr, ngAttr) {
- ngAttributeAliasDirectives[ngAttr] = function() {
- return {
- priority: 100,
- link: function(scope, element, attr) {
- //special case ngPattern when a literal regular expression value
- //is used as the expression (this way we don't have to watch anything).
- if (ngAttr === "ngPattern" && attr.ngPattern.charAt(0) == "/") {
- var match = attr.ngPattern.match(REGEX_STRING_REGEXP);
- if (match) {
- attr.$set("ngPattern", new RegExp(match[1], match[2]));
- return;
- }
- }
-
- scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) {
- attr.$set(ngAttr, value);
- });
- }
- };
- };
-});
-
-// ng-src, ng-srcset, ng-href are interpolated
-forEach(['src', 'srcset', 'href'], function(attrName) {
- var normalized = directiveNormalize('ng-' + attrName);
- ngAttributeAliasDirectives[normalized] = function() {
- return {
- priority: 99, // it needs to run after the attributes are interpolated
- link: function(scope, element, attr) {
- var propName = attrName,
- name = attrName;
-
- if (attrName === 'href' &&
- toString.call(element.prop('href')) === '[object SVGAnimatedString]') {
- name = 'xlinkHref';
- attr.$attr[name] = 'xlink:href';
- propName = null;
- }
-
- attr.$observe(normalized, function(value) {
- if (!value) {
- if (attrName === 'href') {
- attr.$set(name, null);
- }
- return;
- }
-
- attr.$set(name, value);
-
- // on IE, if "ng:src" directive declaration is used and "src" attribute doesn't exist
- // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need
- // to set the property as well to achieve the desired effect.
- // we use attr[attrName] value since $set can sanitize the url.
- if (msie && propName) element.prop(propName, attr[name]);
- });
- }
- };
- };
-});
-
-/* global -nullFormCtrl, -SUBMITTED_CLASS, addSetValidityMethod: true
- */
-var nullFormCtrl = {
- $addControl: noop,
- $$renameControl: nullFormRenameControl,
- $removeControl: noop,
- $setValidity: noop,
- $setDirty: noop,
- $setPristine: noop,
- $setSubmitted: noop
-},
-SUBMITTED_CLASS = 'ng-submitted';
-
-function nullFormRenameControl(control, name) {
- control.$name = name;
-}
-
-/**
- * @ngdoc type
- * @name form.FormController
- *
- * @property {boolean} $pristine True if user has not interacted with the form yet.
- * @property {boolean} $dirty True if user has already interacted with the form.
- * @property {boolean} $valid True if all of the containing forms and controls are valid.
- * @property {boolean} $invalid True if at least one containing control or form is invalid.
- * @property {boolean} $pending True if at least one containing control or form is pending.
- * @property {boolean} $submitted True if user has submitted the form even if its invalid.
- *
- * @property {Object} $error Is an object hash, containing references to controls or
- * forms with failing validators, where:
- *
- * - keys are validation tokens (error names),
- * - values are arrays of controls or forms that have a failing validator for given error name.
- *
- * Built-in validation tokens:
- *
- * - `email`
- * - `max`
- * - `maxlength`
- * - `min`
- * - `minlength`
- * - `number`
- * - `pattern`
- * - `required`
- * - `url`
- * - `date`
- * - `datetimelocal`
- * - `time`
- * - `week`
- * - `month`
- *
- * @description
- * `FormController` keeps track of all its controls and nested forms as well as the state of them,
- * such as being valid/invalid or dirty/pristine.
- *
- * Each {@link ng.directive:form form} directive creates an instance
- * of `FormController`.
- *
- */
-//asks for $scope to fool the BC controller module
-FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];
-function FormController(element, attrs, $scope, $animate, $interpolate) {
- var form = this,
- controls = [];
-
- // init state
- form.$error = {};
- form.$$success = {};
- form.$pending = undefined;
- form.$name = $interpolate(attrs.name || attrs.ngForm || '')($scope);
- form.$dirty = false;
- form.$pristine = true;
- form.$valid = true;
- form.$invalid = false;
- form.$submitted = false;
- form.$$parentForm = nullFormCtrl;
-
- /**
- * @ngdoc method
- * @name form.FormController#$rollbackViewValue
- *
- * @description
- * Rollback all form controls pending updates to the `$modelValue`.
- *
- * Updates may be pending by a debounced event or because the input is waiting for a some future
- * event defined in `ng-model-options`. This method is typically needed by the reset button of
- * a form that uses `ng-model-options` to pend updates.
- */
- form.$rollbackViewValue = function() {
- forEach(controls, function(control) {
- control.$rollbackViewValue();
- });
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$commitViewValue
- *
- * @description
- * Commit all form controls pending updates to the `$modelValue`.
- *
- * Updates may be pending by a debounced event or because the input is waiting for a some future
- * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`
- * usually handles calling this in response to input events.
- */
- form.$commitViewValue = function() {
- forEach(controls, function(control) {
- control.$commitViewValue();
- });
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$addControl
- * @param {object} control control object, either a {@link form.FormController} or an
- * {@link ngModel.NgModelController}
- *
- * @description
- * Register a control with the form. Input elements using ngModelController do this automatically
- * when they are linked.
- *
- * Note that the current state of the control will not be reflected on the new parent form. This
- * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`
- * state.
- *
- * However, if the method is used programmatically, for example by adding dynamically created controls,
- * or controls that have been previously removed without destroying their corresponding DOM element,
- * it's the developers responsibility to make sure the current state propagates to the parent form.
- *
- * For example, if an input control is added that is already `$dirty` and has `$error` properties,
- * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.
- */
- form.$addControl = function(control) {
- // Breaking change - before, inputs whose name was "hasOwnProperty" were quietly ignored
- // and not added to the scope. Now we throw an error.
- assertNotHasOwnProperty(control.$name, 'input');
- controls.push(control);
-
- if (control.$name) {
- form[control.$name] = control;
- }
-
- control.$$parentForm = form;
- };
-
- // Private API: rename a form control
- form.$$renameControl = function(control, newName) {
- var oldName = control.$name;
-
- if (form[oldName] === control) {
- delete form[oldName];
- }
- form[newName] = control;
- control.$name = newName;
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$removeControl
- * @param {object} control control object, either a {@link form.FormController} or an
- * {@link ngModel.NgModelController}
- *
- * @description
- * Deregister a control from the form.
- *
- * Input elements using ngModelController do this automatically when they are destroyed.
- *
- * Note that only the removed control's validation state (`$errors`etc.) will be removed from the
- * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be
- * different from case to case. For example, removing the only `$dirty` control from a form may or
- * may not mean that the form is still `$dirty`.
- */
- form.$removeControl = function(control) {
- if (control.$name && form[control.$name] === control) {
- delete form[control.$name];
- }
- forEach(form.$pending, function(value, name) {
- form.$setValidity(name, null, control);
- });
- forEach(form.$error, function(value, name) {
- form.$setValidity(name, null, control);
- });
- forEach(form.$$success, function(value, name) {
- form.$setValidity(name, null, control);
- });
-
- arrayRemove(controls, control);
- control.$$parentForm = nullFormCtrl;
- };
-
-
- /**
- * @ngdoc method
- * @name form.FormController#$setValidity
- *
- * @description
- * Sets the validity of a form control.
- *
- * This method will also propagate to parent forms.
- */
- addSetValidityMethod({
- ctrl: this,
- $element: element,
- set: function(object, property, controller) {
- var list = object[property];
- if (!list) {
- object[property] = [controller];
- } else {
- var index = list.indexOf(controller);
- if (index === -1) {
- list.push(controller);
- }
- }
- },
- unset: function(object, property, controller) {
- var list = object[property];
- if (!list) {
- return;
- }
- arrayRemove(list, controller);
- if (list.length === 0) {
- delete object[property];
- }
- },
- $animate: $animate
- });
-
- /**
- * @ngdoc method
- * @name form.FormController#$setDirty
- *
- * @description
- * Sets the form to a dirty state.
- *
- * This method can be called to add the 'ng-dirty' class and set the form to a dirty
- * state (ng-dirty class). This method will also propagate to parent forms.
- */
- form.$setDirty = function() {
- $animate.removeClass(element, PRISTINE_CLASS);
- $animate.addClass(element, DIRTY_CLASS);
- form.$dirty = true;
- form.$pristine = false;
- form.$$parentForm.$setDirty();
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$setPristine
- *
- * @description
- * Sets the form to its pristine state.
- *
- * This method can be called to remove the 'ng-dirty' class and set the form to its pristine
- * state (ng-pristine class). This method will also propagate to all the controls contained
- * in this form.
- *
- * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after
- * saving or resetting it.
- */
- form.$setPristine = function() {
- $animate.setClass(element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS);
- form.$dirty = false;
- form.$pristine = true;
- form.$submitted = false;
- forEach(controls, function(control) {
- control.$setPristine();
- });
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$setUntouched
- *
- * @description
- * Sets the form to its untouched state.
- *
- * This method can be called to remove the 'ng-touched' class and set the form controls to their
- * untouched state (ng-untouched class).
- *
- * Setting a form controls back to their untouched state is often useful when setting the form
- * back to its pristine state.
- */
- form.$setUntouched = function() {
- forEach(controls, function(control) {
- control.$setUntouched();
- });
- };
-
- /**
- * @ngdoc method
- * @name form.FormController#$setSubmitted
- *
- * @description
- * Sets the form to its submitted state.
- */
- form.$setSubmitted = function() {
- $animate.addClass(element, SUBMITTED_CLASS);
- form.$submitted = true;
- form.$$parentForm.$setSubmitted();
- };
-}
-
-/**
- * @ngdoc directive
- * @name ngForm
- * @restrict EAC
- *
- * @description
- * Nestable alias of {@link ng.directive:form `form`} directive. HTML
- * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a
- * sub-group of controls needs to be determined.
- *
- * Note: the purpose of `ngForm` is to group controls,
- * but not to be a replacement for the `<form>` tag with all of its capabilities
- * (e.g. posting to the server, ...).
- *
- * @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into
- * related scope, under this name.
- *
- */
-
- /**
- * @ngdoc directive
- * @name form
- * @restrict E
- *
- * @description
- * Directive that instantiates
- * {@link form.FormController FormController}.
- *
- * If the `name` attribute is specified, the form controller is published onto the current scope under
- * this name.
- *
- * # Alias: {@link ng.directive:ngForm `ngForm`}
- *
- * In Angular, forms can be nested. This means that the outer form is valid when all of the child
- * forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so
- * Angular provides the {@link ng.directive:ngForm `ngForm`} directive, which behaves identically to
- * `form` but can be nested. Nested forms can be useful, for example, if the validity of a sub-group
- * of controls needs to be determined.
- *
- * # CSS classes
- * - `ng-valid` is set if the form is valid.
- * - `ng-invalid` is set if the form is invalid.
- * - `ng-pending` is set if the form is pending.
- * - `ng-pristine` is set if the form is pristine.
- * - `ng-dirty` is set if the form is dirty.
- * - `ng-submitted` is set if the form was submitted.
- *
- * Keep in mind that ngAnimate can detect each of these classes when added and removed.
- *
- *
- * # Submitting a form and preventing the default action
- *
- * Since the role of forms in client-side Angular applications is different than in classical
- * roundtrip apps, it is desirable for the browser not to translate the form submission into a full
- * page reload that sends the data to the server. Instead some javascript logic should be triggered
- * to handle the form submission in an application-specific way.
- *
- * For this reason, Angular prevents the default action (form submission to the server) unless the
- * `<form>` element has an `action` attribute specified.
- *
- * You can use one of the following two ways to specify what javascript method should be called when
- * a form is submitted:
- *
- * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element
- * - {@link ng.directive:ngClick ngClick} directive on the first
- * button or input field of type submit (input[type=submit])
- *
- * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}
- * or {@link ng.directive:ngClick ngClick} directives.
- * This is because of the following form submission rules in the HTML specification:
- *
- * - If a form has only one input field then hitting enter in this field triggers form submit
- * (`ngSubmit`)
- * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter
- * doesn't trigger submit
- * - if a form has one or more input fields and one or more buttons or input[type=submit] then
- * hitting enter in any of the input fields will trigger the click handler on the *first* button or
- * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)
- *
- * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is
- * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
- * to have access to the updated model.
- *
- * ## Animation Hooks
- *
- * Animations in ngForm are triggered when any of the associated CSS classes are added and removed.
- * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any
- * other validations that are performed within the form. Animations in ngForm are similar to how
- * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well
- * as JS animations.
- *
- * The following example shows a simple way to utilize CSS transitions to style a form element
- * that has been rendered as invalid after it has been validated:
- *
- * <pre>
- * //be sure to include ngAnimate as a module to hook into more
- * //advanced animations
- * .my-form {
- * transition:0.5s linear all;
- * background: white;
- * }
- * .my-form.ng-invalid {
- * background: red;
- * color:white;
- * }
- * </pre>
- *
- * @example
- <example deps="angular-animate.js" animations="true" fixBase="true" module="formExample">
- <file name="index.html">
- <script>
- angular.module('formExample', [])
- .controller('FormController', ['$scope', function($scope) {
- $scope.userType = 'guest';
- }]);
- </script>
- <style>
- .my-form {
- transition:all linear 0.5s;
- background: transparent;
- }
- .my-form.ng-invalid {
- background: red;
- }
- </style>
- <form name="myForm" ng-controller="FormController" class="my-form">
- userType: <input name="input" ng-model="userType" required>
- <span class="error" ng-show="myForm.input.$error.required">Required!</span><br>
- <code>userType = {{userType}}</code><br>
- <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br>
- <code>myForm.input.$error = {{myForm.input.$error}}</code><br>
- <code>myForm.$valid = {{myForm.$valid}}</code><br>
- <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- it('should initialize to model', function() {
- var userType = element(by.binding('userType'));
- var valid = element(by.binding('myForm.input.$valid'));
-
- expect(userType.getText()).toContain('guest');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- var userType = element(by.binding('userType'));
- var valid = element(by.binding('myForm.input.$valid'));
- var userInput = element(by.model('userType'));
-
- userInput.clear();
- userInput.sendKeys('');
-
- expect(userType.getText()).toEqual('userType =');
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- *
- * @param {string=} name Name of the form. If specified, the form controller will be published into
- * related scope, under this name.
- */
-var formDirectiveFactory = function(isNgForm) {
- return ['$timeout', '$parse', function($timeout, $parse) {
- var formDirective = {
- name: 'form',
- restrict: isNgForm ? 'EAC' : 'E',
- require: ['form', '^^?form'], //first is the form's own ctrl, second is an optional parent form
- controller: FormController,
- compile: function ngFormCompile(formElement, attr) {
- // Setup initial state of the control
- formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);
-
- var nameAttr = attr.name ? 'name' : (isNgForm && attr.ngForm ? 'ngForm' : false);
-
- return {
- pre: function ngFormPreLink(scope, formElement, attr, ctrls) {
- var controller = ctrls[0];
-
- // if `action` attr is not present on the form, prevent the default action (submission)
- if (!('action' in attr)) {
- // we can't use jq events because if a form is destroyed during submission the default
- // action is not prevented. see #1238
- //
- // IE 9 is not affected because it doesn't fire a submit event and try to do a full
- // page reload if the form was destroyed by submission of the form via a click handler
- // on a button in the form. Looks like an IE9 specific bug.
- var handleFormSubmission = function(event) {
- scope.$apply(function() {
- controller.$commitViewValue();
- controller.$setSubmitted();
- });
-
- event.preventDefault();
- };
-
- addEventListenerFn(formElement[0], 'submit', handleFormSubmission);
-
- // unregister the preventDefault listener so that we don't not leak memory but in a
- // way that will achieve the prevention of the default action.
- formElement.on('$destroy', function() {
- $timeout(function() {
- removeEventListenerFn(formElement[0], 'submit', handleFormSubmission);
- }, 0, false);
- });
- }
-
- var parentFormCtrl = ctrls[1] || controller.$$parentForm;
- parentFormCtrl.$addControl(controller);
-
- var setter = nameAttr ? getSetter(controller.$name) : noop;
-
- if (nameAttr) {
- setter(scope, controller);
- attr.$observe(nameAttr, function(newValue) {
- if (controller.$name === newValue) return;
- setter(scope, undefined);
- controller.$$parentForm.$$renameControl(controller, newValue);
- setter = getSetter(controller.$name);
- setter(scope, controller);
- });
- }
- formElement.on('$destroy', function() {
- controller.$$parentForm.$removeControl(controller);
- setter(scope, undefined);
- extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards
- });
- }
- };
- }
- };
-
- return formDirective;
-
- function getSetter(expression) {
- if (expression === '') {
- //create an assignable expression, so forms with an empty name can be renamed later
- return $parse('this[""]').assign;
- }
- return $parse(expression).assign || noop;
- }
- }];
-};
-
-var formDirective = formDirectiveFactory();
-var ngFormDirective = formDirectiveFactory(true);
-
-/* global VALID_CLASS: false,
- INVALID_CLASS: false,
- PRISTINE_CLASS: false,
- DIRTY_CLASS: false,
- UNTOUCHED_CLASS: false,
- TOUCHED_CLASS: false,
- ngModelMinErr: false,
-*/
-
-// Regex code is obtained from SO: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
-var ISO_DATE_REGEXP = /\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/;
-// See valid URLs in RFC3987 (http://tools.ietf.org/html/rfc3987)
-// Note: We are being more lenient, because browsers are too.
-// 1. Scheme
-// 2. Slashes
-// 3. Username
-// 4. Password
-// 5. Hostname
-// 6. Port
-// 7. Path
-// 8. Query
-// 9. Fragment
-// 1111111111111111 222 333333 44444 555555555555555555555555 666 77777777 8888888 999
-var URL_REGEXP = /^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i;
-var EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;
-var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/;
-var DATE_REGEXP = /^(\d{4})-(\d{2})-(\d{2})$/;
-var DATETIMELOCAL_REGEXP = /^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;
-var WEEK_REGEXP = /^(\d{4})-W(\d\d)$/;
-var MONTH_REGEXP = /^(\d{4})-(\d\d)$/;
-var TIME_REGEXP = /^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;
-
-var inputType = {
-
- /**
- * @ngdoc input
- * @name input[text]
- *
- * @description
- * Standard HTML text input with angular data binding, inherited by most of the `input` elements.
- *
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Adds `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
- * any length.
- * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
- * that contains the regular expression body that will be converted to a regular expression
- * as in the ngPattern directive.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
- * This parameter is ignored for input[type=password] controls, which will never trim the
- * input.
- *
- * @example
- <example name="text-input-directive" module="textInputExample">
- <file name="index.html">
- <script>
- angular.module('textInputExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.example = {
- text: 'guest',
- word: /^\s*\w*\s*$/
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>Single word:
- <input type="text" name="input" ng-model="example.text"
- ng-pattern="example.word" required ng-trim="false">
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.pattern">
- Single word only!</span>
- </div>
- <tt>text = {{example.text}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var text = element(by.binding('example.text'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.text'));
-
- it('should initialize to model', function() {
- expect(text.getText()).toContain('guest');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- input.clear();
- input.sendKeys('');
-
- expect(text.getText()).toEqual('text =');
- expect(valid.getText()).toContain('false');
- });
-
- it('should be invalid if multi word', function() {
- input.clear();
- input.sendKeys('hello world');
-
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- */
- 'text': textInputType,
-
- /**
- * @ngdoc input
- * @name input[date]
- *
- * @description
- * Input with date validation and transformation. In browsers that do not yet support
- * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601
- * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many
- * modern browsers do not yet support this input type, it is important to provide cues to users on the
- * expected input format via a placeholder or label.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a
- * valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute
- * (e.g. `min="{{minDate | date:'yyyy-MM-dd'}}"`). Note that `min` will also add native HTML5
- * constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be
- * a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute
- * (e.g. `max="{{maxDate | date:'yyyy-MM-dd'}}"`). Note that `max` will also add native HTML5
- * constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string
- * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string
- * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="date-input-directive" module="dateInputExample">
- <file name="index.html">
- <script>
- angular.module('dateInputExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(2013, 9, 22)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label for="exampleInput">Pick a date in 2013:</label>
- <input type="date" id="exampleInput" name="input" ng-model="example.value"
- placeholder="yyyy-MM-dd" min="2013-01-01" max="2013-12-31" required />
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.date">
- Not a valid date!</span>
- </div>
- <tt>value = {{example.value | date: "yyyy-MM-dd"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "yyyy-MM-dd"'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.value'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (see https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('2013-10-22');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('2015-01-01');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'date': createDateInputType('date', DATE_REGEXP,
- createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']),
- 'yyyy-MM-dd'),
-
- /**
- * @ngdoc input
- * @name input[datetime-local]
- *
- * @description
- * Input with datetime validation and transformation. In browsers that do not yet support
- * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
- * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation
- * inside this attribute (e.g. `min="{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`).
- * Note that `min` will also add native HTML5 constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation
- * inside this attribute (e.g. `max="{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`).
- * Note that `max` will also add native HTML5 constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string
- * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string
- * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="datetimelocal-input-directive" module="dateExample">
- <file name="index.html">
- <script>
- angular.module('dateExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(2010, 11, 28, 14, 57)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label for="exampleInput">Pick a date between in 2013:</label>
- <input type="datetime-local" id="exampleInput" name="input" ng-model="example.value"
- placeholder="yyyy-MM-ddTHH:mm:ss" min="2001-01-01T00:00:00" max="2013-12-31T00:00:00" required />
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.datetimelocal">
- Not a valid date!</span>
- </div>
- <tt>value = {{example.value | date: "yyyy-MM-ddTHH:mm:ss"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "yyyy-MM-ddTHH:mm:ss"'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.value'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('2010-12-28T14:57:00');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('2015-01-01T23:59:00');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP,
- createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']),
- 'yyyy-MM-ddTHH:mm:ss.sss'),
-
- /**
- * @ngdoc input
- * @name input[time]
- *
- * @description
- * Input with time validation and transformation. In browsers that do not yet support
- * the HTML5 time input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
- * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a
- * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this
- * attribute (e.g. `min="{{minTime | date:'HH:mm:ss'}}"`). Note that `min` will also add
- * native HTML5 constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this
- * attribute (e.g. `max="{{maxTime | date:'HH:mm:ss'}}"`). Note that `max` will also add
- * native HTML5 constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the
- * `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the
- * `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="time-input-directive" module="timeExample">
- <file name="index.html">
- <script>
- angular.module('timeExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(1970, 0, 1, 14, 57, 0)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label for="exampleInput">Pick a between 8am and 5pm:</label>
- <input type="time" id="exampleInput" name="input" ng-model="example.value"
- placeholder="HH:mm:ss" min="08:00:00" max="17:00:00" required />
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.time">
- Not a valid date!</span>
- </div>
- <tt>value = {{example.value | date: "HH:mm:ss"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "HH:mm:ss"'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.value'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('14:57:00');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('23:59:00');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'time': createDateInputType('time', TIME_REGEXP,
- createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']),
- 'HH:mm:ss.sss'),
-
- /**
- * @ngdoc input
- * @name input[week]
- *
- * @description
- * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support
- * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
- * week format (yyyy-W##), for example: `2013-W02`.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this
- * attribute (e.g. `min="{{minWeek | date:'yyyy-Www'}}"`). Note that `min` will also add
- * native HTML5 constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this
- * attribute (e.g. `max="{{maxWeek | date:'yyyy-Www'}}"`). Note that `max` will also add
- * native HTML5 constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string
- * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string
- * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="week-input-directive" module="weekExample">
- <file name="index.html">
- <script>
- angular.module('weekExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(2013, 0, 3)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label>Pick a date between in 2013:
- <input id="exampleInput" type="week" name="input" ng-model="example.value"
- placeholder="YYYY-W##" min="2012-W32"
- max="2013-W52" required />
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.week">
- Not a valid date!</span>
- </div>
- <tt>value = {{example.value | date: "yyyy-Www"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "yyyy-Www"'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.value'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('2013-W01');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('2015-W01');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'),
-
- /**
- * @ngdoc input
- * @name input[month]
- *
- * @description
- * Input with month validation and transformation. In browsers that do not yet support
- * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
- * month format (yyyy-MM), for example: `2009-01`.
- *
- * The model must always be a Date object, otherwise Angular will throw an error.
- * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
- * If the model is not set to the first of the month, the next view to model update will set it
- * to the first of the month.
- *
- * The timezone to be used to read/write the `Date` instance in the model can be defined using
- * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this
- * attribute (e.g. `min="{{minMonth | date:'yyyy-MM'}}"`). Note that `min` will also add
- * native HTML5 constraint validation.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this
- * attribute (e.g. `max="{{maxMonth | date:'yyyy-MM'}}"`). Note that `max` will also add
- * native HTML5 constraint validation.
- * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string
- * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
- * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string
- * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
-
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="month-input-directive" module="monthExample">
- <file name="index.html">
- <script>
- angular.module('monthExample', [])
- .controller('DateController', ['$scope', function($scope) {
- $scope.example = {
- value: new Date(2013, 9, 1)
- };
- }]);
- </script>
- <form name="myForm" ng-controller="DateController as dateCtrl">
- <label for="exampleInput">Pick a month in 2013:</label>
- <input id="exampleInput" type="month" name="input" ng-model="example.value"
- placeholder="yyyy-MM" min="2013-01" max="2013-12" required />
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.month">
- Not a valid month!</span>
- </div>
- <tt>value = {{example.value | date: "yyyy-MM"}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value | date: "yyyy-MM"'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.value'));
-
- // currently protractor/webdriver does not support
- // sending keys to all known HTML5 input controls
- // for various browsers (https://github.com/angular/protractor/issues/562).
- function setInput(val) {
- // set the value of the element and force validation.
- var scr = "var ipt = document.getElementById('exampleInput'); " +
- "ipt.value = '" + val + "';" +
- "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
- browser.executeScript(scr);
- }
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('2013-10');
- expect(valid.getText()).toContain('myForm.input.$valid = true');
- });
-
- it('should be invalid if empty', function() {
- setInput('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
-
- it('should be invalid if over max', function() {
- setInput('2015-01');
- expect(value.getText()).toContain('');
- expect(valid.getText()).toContain('myForm.input.$valid = false');
- });
- </file>
- </example>
- */
- 'month': createDateInputType('month', MONTH_REGEXP,
- createDateParser(MONTH_REGEXP, ['yyyy', 'MM']),
- 'yyyy-MM'),
-
- /**
- * @ngdoc input
- * @name input[number]
- *
- * @description
- * Text input with number validation and transformation. Sets the `number` validation
- * error if not a valid number.
- *
- * <div class="alert alert-warning">
- * The model must always be of type `number` otherwise Angular will throw an error.
- * Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt}
- * error docs for more information and an example of how to convert your model if necessary.
- * </div>
- *
- * ## Issues with HTML5 constraint validation
- *
- * In browsers that follow the
- * [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),
- * `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}.
- * If a non-number is entered in the input, the browser will report the value as an empty string,
- * which means the view / model values in `ngModel` and subsequently the scope value
- * will also be an empty string.
- *
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
- * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
- * any length.
- * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
- * that contains the regular expression body that will be converted to a regular expression
- * as in the ngPattern directive.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="number-input-directive" module="numberExample">
- <file name="index.html">
- <script>
- angular.module('numberExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.example = {
- value: 12
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>Number:
- <input type="number" name="input" ng-model="example.value"
- min="0" max="99" required>
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.number">
- Not valid number!</span>
- </div>
- <tt>value = {{example.value}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var value = element(by.binding('example.value'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('example.value'));
-
- it('should initialize to model', function() {
- expect(value.getText()).toContain('12');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- input.clear();
- input.sendKeys('');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('false');
- });
-
- it('should be invalid if over max', function() {
- input.clear();
- input.sendKeys('123');
- expect(value.getText()).toEqual('value =');
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- */
- 'number': numberInputType,
-
-
- /**
- * @ngdoc input
- * @name input[url]
- *
- * @description
- * Text input with URL validation. Sets the `url` validation error key if the content is not a
- * valid URL.
- *
- * <div class="alert alert-warning">
- * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex
- * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify
- * the built-in validators (see the {@link guide/forms Forms guide})
- * </div>
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
- * any length.
- * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
- * that contains the regular expression body that will be converted to a regular expression
- * as in the ngPattern directive.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="url-input-directive" module="urlExample">
- <file name="index.html">
- <script>
- angular.module('urlExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.url = {
- text: 'http://google.com'
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>URL:
- <input type="url" name="input" ng-model="url.text" required>
- <label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.url">
- Not valid url!</span>
- </div>
- <tt>text = {{url.text}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- <tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var text = element(by.binding('url.text'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('url.text'));
-
- it('should initialize to model', function() {
- expect(text.getText()).toContain('http://google.com');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- input.clear();
- input.sendKeys('');
-
- expect(text.getText()).toEqual('text =');
- expect(valid.getText()).toContain('false');
- });
-
- it('should be invalid if not url', function() {
- input.clear();
- input.sendKeys('box');
-
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- */
- 'url': urlInputType,
-
-
- /**
- * @ngdoc input
- * @name input[email]
- *
- * @description
- * Text input with email validation. Sets the `email` validation error key if not a valid email
- * address.
- *
- * <div class="alert alert-warning">
- * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex
- * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can
- * use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide})
- * </div>
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
- * any length.
- * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
- * that contains the regular expression body that will be converted to a regular expression
- * as in the ngPattern directive.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="email-input-directive" module="emailExample">
- <file name="index.html">
- <script>
- angular.module('emailExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.email = {
- text: 'me@example.com'
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>Email:
- <input type="email" name="input" ng-model="email.text" required>
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.input.$error.required">
- Required!</span>
- <span class="error" ng-show="myForm.input.$error.email">
- Not valid email!</span>
- </div>
- <tt>text = {{email.text}}</tt><br/>
- <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
- <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- <tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var text = element(by.binding('email.text'));
- var valid = element(by.binding('myForm.input.$valid'));
- var input = element(by.model('email.text'));
-
- it('should initialize to model', function() {
- expect(text.getText()).toContain('me@example.com');
- expect(valid.getText()).toContain('true');
- });
-
- it('should be invalid if empty', function() {
- input.clear();
- input.sendKeys('');
- expect(text.getText()).toEqual('text =');
- expect(valid.getText()).toContain('false');
- });
-
- it('should be invalid if not email', function() {
- input.clear();
- input.sendKeys('xxx');
-
- expect(valid.getText()).toContain('false');
- });
- </file>
- </example>
- */
- 'email': emailInputType,
-
-
- /**
- * @ngdoc input
- * @name input[radio]
- *
- * @description
- * HTML radio button.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string} value The value to which the `ngModel` expression should be set when selected.
- * Note that `value` only supports `string` values, i.e. the scope model needs to be a string,
- * too. Use `ngValue` if you need complex models (`number`, `object`, ...).
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {string} ngValue Angular expression to which `ngModel` will be be set when the radio
- * is selected. Should be used instead of the `value` attribute if you need
- * a non-string `ngModel` (`boolean`, `array`, ...).
- *
- * @example
- <example name="radio-input-directive" module="radioExample">
- <file name="index.html">
- <script>
- angular.module('radioExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.color = {
- name: 'blue'
- };
- $scope.specialValue = {
- "id": "12345",
- "value": "green"
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>
- <input type="radio" ng-model="color.name" value="red">
- Red
- </label><br/>
- <label>
- <input type="radio" ng-model="color.name" ng-value="specialValue">
- Green
- </label><br/>
- <label>
- <input type="radio" ng-model="color.name" value="blue">
- Blue
- </label><br/>
- <tt>color = {{color.name | json}}</tt><br/>
- </form>
- Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`.
- </file>
- <file name="protractor.js" type="protractor">
- it('should change state', function() {
- var color = element(by.binding('color.name'));
-
- expect(color.getText()).toContain('blue');
-
- element.all(by.model('color.name')).get(0).click();
-
- expect(color.getText()).toContain('red');
- });
- </file>
- </example>
- */
- 'radio': radioInputType,
-
-
- /**
- * @ngdoc input
- * @name input[checkbox]
- *
- * @description
- * HTML checkbox.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {expression=} ngTrueValue The value to which the expression should be set when selected.
- * @param {expression=} ngFalseValue The value to which the expression should be set when not selected.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- *
- * @example
- <example name="checkbox-input-directive" module="checkboxExample">
- <file name="index.html">
- <script>
- angular.module('checkboxExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.checkboxModel = {
- value1 : true,
- value2 : 'YES'
- };
- }]);
- </script>
- <form name="myForm" ng-controller="ExampleController">
- <label>Value1:
- <input type="checkbox" ng-model="checkboxModel.value1">
- </label><br/>
- <label>Value2:
- <input type="checkbox" ng-model="checkboxModel.value2"
- ng-true-value="'YES'" ng-false-value="'NO'">
- </label><br/>
- <tt>value1 = {{checkboxModel.value1}}</tt><br/>
- <tt>value2 = {{checkboxModel.value2}}</tt><br/>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- it('should change state', function() {
- var value1 = element(by.binding('checkboxModel.value1'));
- var value2 = element(by.binding('checkboxModel.value2'));
-
- expect(value1.getText()).toContain('true');
- expect(value2.getText()).toContain('YES');
-
- element(by.model('checkboxModel.value1')).click();
- element(by.model('checkboxModel.value2')).click();
-
- expect(value1.getText()).toContain('false');
- expect(value2.getText()).toContain('NO');
- });
- </file>
- </example>
- */
- 'checkbox': checkboxInputType,
-
- 'hidden': noop,
- 'button': noop,
- 'submit': noop,
- 'reset': noop,
- 'file': noop
-};
-
-function stringBasedInputType(ctrl) {
- ctrl.$formatters.push(function(value) {
- return ctrl.$isEmpty(value) ? value : value.toString();
- });
-}
-
-function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- stringBasedInputType(ctrl);
-}
-
-function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- var type = lowercase(element[0].type);
-
- // In composition mode, users are still inputing intermediate text buffer,
- // hold the listener until composition is done.
- // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent
- if (!$sniffer.android) {
- var composing = false;
-
- element.on('compositionstart', function(data) {
- composing = true;
- });
-
- element.on('compositionend', function() {
- composing = false;
- listener();
- });
- }
-
- var listener = function(ev) {
- if (timeout) {
- $browser.defer.cancel(timeout);
- timeout = null;
- }
- if (composing) return;
- var value = element.val(),
- event = ev && ev.type;
-
- // By default we will trim the value
- // If the attribute ng-trim exists we will avoid trimming
- // If input type is 'password', the value is never trimmed
- if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) {
- value = trim(value);
- }
-
- // If a control is suffering from bad input (due to native validators), browsers discard its
- // value, so it may be necessary to revalidate (by calling $setViewValue again) even if the
- // control's value is the same empty value twice in a row.
- if (ctrl.$viewValue !== value || (value === '' && ctrl.$$hasNativeValidators)) {
- ctrl.$setViewValue(value, event);
- }
- };
-
- // if the browser does support "input" event, we are fine - except on IE9 which doesn't fire the
- // input event on backspace, delete or cut
- if ($sniffer.hasEvent('input')) {
- element.on('input', listener);
- } else {
- var timeout;
-
- var deferListener = function(ev, input, origValue) {
- if (!timeout) {
- timeout = $browser.defer(function() {
- timeout = null;
- if (!input || input.value !== origValue) {
- listener(ev);
- }
- });
- }
- };
-
- element.on('keydown', function(event) {
- var key = event.keyCode;
-
- // ignore
- // command modifiers arrows
- if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;
-
- deferListener(event, this, this.value);
- });
-
- // if user modifies input value using context menu in IE, we need "paste" and "cut" events to catch it
- if ($sniffer.hasEvent('paste')) {
- element.on('paste cut', deferListener);
- }
- }
-
- // if user paste into input using mouse on older browser
- // or form autocomplete on newer browser, we need "change" event to catch it
- element.on('change', listener);
-
- ctrl.$render = function() {
- // Workaround for Firefox validation #12102.
- var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue;
- if (element.val() !== value) {
- element.val(value);
- }
- };
-}
-
-function weekParser(isoWeek, existingDate) {
- if (isDate(isoWeek)) {
- return isoWeek;
- }
-
- if (isString(isoWeek)) {
- WEEK_REGEXP.lastIndex = 0;
- var parts = WEEK_REGEXP.exec(isoWeek);
- if (parts) {
- var year = +parts[1],
- week = +parts[2],
- hours = 0,
- minutes = 0,
- seconds = 0,
- milliseconds = 0,
- firstThurs = getFirstThursdayOfYear(year),
- addDays = (week - 1) * 7;
-
- if (existingDate) {
- hours = existingDate.getHours();
- minutes = existingDate.getMinutes();
- seconds = existingDate.getSeconds();
- milliseconds = existingDate.getMilliseconds();
- }
-
- return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds);
- }
- }
-
- return NaN;
-}
-
-function createDateParser(regexp, mapping) {
- return function(iso, date) {
- var parts, map;
-
- if (isDate(iso)) {
- return iso;
- }
-
- if (isString(iso)) {
- // When a date is JSON'ified to wraps itself inside of an extra
- // set of double quotes. This makes the date parsing code unable
- // to match the date string and parse it as a date.
- if (iso.charAt(0) == '"' && iso.charAt(iso.length - 1) == '"') {
- iso = iso.substring(1, iso.length - 1);
- }
- if (ISO_DATE_REGEXP.test(iso)) {
- return new Date(iso);
- }
- regexp.lastIndex = 0;
- parts = regexp.exec(iso);
-
- if (parts) {
- parts.shift();
- if (date) {
- map = {
- yyyy: date.getFullYear(),
- MM: date.getMonth() + 1,
- dd: date.getDate(),
- HH: date.getHours(),
- mm: date.getMinutes(),
- ss: date.getSeconds(),
- sss: date.getMilliseconds() / 1000
- };
- } else {
- map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };
- }
-
- forEach(parts, function(part, index) {
- if (index < mapping.length) {
- map[mapping[index]] = +part;
- }
- });
- return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);
- }
- }
-
- return NaN;
- };
-}
-
-function createDateInputType(type, regexp, parseDate, format) {
- return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {
- badInputChecker(scope, element, attr, ctrl);
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- var timezone = ctrl && ctrl.$options && ctrl.$options.timezone;
- var previousDate;
-
- ctrl.$$parserName = type;
- ctrl.$parsers.push(function(value) {
- if (ctrl.$isEmpty(value)) return null;
- if (regexp.test(value)) {
- // Note: We cannot read ctrl.$modelValue, as there might be a different
- // parser/formatter in the processing chain so that the model
- // contains some different data format!
- var parsedDate = parseDate(value, previousDate);
- if (timezone) {
- parsedDate = convertTimezoneToLocal(parsedDate, timezone);
- }
- return parsedDate;
- }
- return undefined;
- });
-
- ctrl.$formatters.push(function(value) {
- if (value && !isDate(value)) {
- throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value);
- }
- if (isValidDate(value)) {
- previousDate = value;
- if (previousDate && timezone) {
- previousDate = convertTimezoneToLocal(previousDate, timezone, true);
- }
- return $filter('date')(value, format, timezone);
- } else {
- previousDate = null;
- return '';
- }
- });
-
- if (isDefined(attr.min) || attr.ngMin) {
- var minVal;
- ctrl.$validators.min = function(value) {
- return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal;
- };
- attr.$observe('min', function(val) {
- minVal = parseObservedDateValue(val);
- ctrl.$validate();
- });
- }
-
- if (isDefined(attr.max) || attr.ngMax) {
- var maxVal;
- ctrl.$validators.max = function(value) {
- return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal;
- };
- attr.$observe('max', function(val) {
- maxVal = parseObservedDateValue(val);
- ctrl.$validate();
- });
- }
-
- function isValidDate(value) {
- // Invalid Date: getTime() returns NaN
- return value && !(value.getTime && value.getTime() !== value.getTime());
- }
-
- function parseObservedDateValue(val) {
- return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val;
- }
- };
-}
-
-function badInputChecker(scope, element, attr, ctrl) {
- var node = element[0];
- var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);
- if (nativeValidation) {
- ctrl.$parsers.push(function(value) {
- var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};
- return validity.badInput || validity.typeMismatch ? undefined : value;
- });
- }
-}
-
-function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- badInputChecker(scope, element, attr, ctrl);
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
-
- ctrl.$$parserName = 'number';
- ctrl.$parsers.push(function(value) {
- if (ctrl.$isEmpty(value)) return null;
- if (NUMBER_REGEXP.test(value)) return parseFloat(value);
- return undefined;
- });
-
- ctrl.$formatters.push(function(value) {
- if (!ctrl.$isEmpty(value)) {
- if (!isNumber(value)) {
- throw ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value);
- }
- value = value.toString();
- }
- return value;
- });
-
- if (isDefined(attr.min) || attr.ngMin) {
- var minVal;
- ctrl.$validators.min = function(value) {
- return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;
- };
-
- attr.$observe('min', function(val) {
- if (isDefined(val) && !isNumber(val)) {
- val = parseFloat(val, 10);
- }
- minVal = isNumber(val) && !isNaN(val) ? val : undefined;
- // TODO(matsko): implement validateLater to reduce number of validations
- ctrl.$validate();
- });
- }
-
- if (isDefined(attr.max) || attr.ngMax) {
- var maxVal;
- ctrl.$validators.max = function(value) {
- return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;
- };
-
- attr.$observe('max', function(val) {
- if (isDefined(val) && !isNumber(val)) {
- val = parseFloat(val, 10);
- }
- maxVal = isNumber(val) && !isNaN(val) ? val : undefined;
- // TODO(matsko): implement validateLater to reduce number of validations
- ctrl.$validate();
- });
- }
-}
-
-function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- // Note: no badInputChecker here by purpose as `url` is only a validation
- // in browsers, i.e. we can always read out input.value even if it is not valid!
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- stringBasedInputType(ctrl);
-
- ctrl.$$parserName = 'url';
- ctrl.$validators.url = function(modelValue, viewValue) {
- var value = modelValue || viewValue;
- return ctrl.$isEmpty(value) || URL_REGEXP.test(value);
- };
-}
-
-function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
- // Note: no badInputChecker here by purpose as `url` is only a validation
- // in browsers, i.e. we can always read out input.value even if it is not valid!
- baseInputType(scope, element, attr, ctrl, $sniffer, $browser);
- stringBasedInputType(ctrl);
-
- ctrl.$$parserName = 'email';
- ctrl.$validators.email = function(modelValue, viewValue) {
- var value = modelValue || viewValue;
- return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);
- };
-}
-
-function radioInputType(scope, element, attr, ctrl) {
- // make the name unique, if not defined
- if (isUndefined(attr.name)) {
- element.attr('name', nextUid());
- }
-
- var listener = function(ev) {
- if (element[0].checked) {
- ctrl.$setViewValue(attr.value, ev && ev.type);
- }
- };
-
- element.on('click', listener);
-
- ctrl.$render = function() {
- var value = attr.value;
- element[0].checked = (value == ctrl.$viewValue);
- };
-
- attr.$observe('value', ctrl.$render);
-}
-
-function parseConstantExpr($parse, context, name, expression, fallback) {
- var parseFn;
- if (isDefined(expression)) {
- parseFn = $parse(expression);
- if (!parseFn.constant) {
- throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' +
- '`{1}`.', name, expression);
- }
- return parseFn(context);
- }
- return fallback;
-}
-
-function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {
- var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);
- var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false);
-
- var listener = function(ev) {
- ctrl.$setViewValue(element[0].checked, ev && ev.type);
- };
-
- element.on('click', listener);
-
- ctrl.$render = function() {
- element[0].checked = ctrl.$viewValue;
- };
-
- // Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`
- // This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert
- // it to a boolean.
- ctrl.$isEmpty = function(value) {
- return value === false;
- };
-
- ctrl.$formatters.push(function(value) {
- return equals(value, trueValue);
- });
-
- ctrl.$parsers.push(function(value) {
- return value ? trueValue : falseValue;
- });
-}
-
-
-/**
- * @ngdoc directive
- * @name textarea
- * @restrict E
- *
- * @description
- * HTML textarea element control with angular data-binding. The data-binding and validation
- * properties of this element are exactly the same as those of the
- * {@link ng.directive:input input element}.
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
- * length.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
- */
-
-
-/**
- * @ngdoc directive
- * @name input
- * @restrict E
- *
- * @description
- * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,
- * input state control, and validation.
- * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.
- *
- * <div class="alert alert-warning">
- * **Note:** Not every feature offered is available for all input types.
- * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.
- * </div>
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {boolean=} ngRequired Sets `required` attribute if set to true
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
- * minlength.
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
- * length.
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
- * value does not match a RegExp found by evaluating the Angular expression given in the attribute value.
- * If the expression evaluates to a RegExp object, then this is used directly.
- * If the expression evaluates to a string, then it will be converted to a RegExp
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
- * `new RegExp('^abc$')`.<br />
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * @param {string=} ngChange Angular expression to be executed when input changes due to user
- * interaction with the input element.
- * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
- * This parameter is ignored for input[type=password] controls, which will never trim the
- * input.
- *
- * @example
- <example name="input-directive" module="inputExample">
- <file name="index.html">
- <script>
- angular.module('inputExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.user = {name: 'guest', last: 'visitor'};
- }]);
- </script>
- <div ng-controller="ExampleController">
- <form name="myForm">
- <label>
- User name:
- <input type="text" name="userName" ng-model="user.name" required>
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.userName.$error.required">
- Required!</span>
- </div>
- <label>
- Last name:
- <input type="text" name="lastName" ng-model="user.last"
- ng-minlength="3" ng-maxlength="10">
- </label>
- <div role="alert">
- <span class="error" ng-show="myForm.lastName.$error.minlength">
- Too short!</span>
- <span class="error" ng-show="myForm.lastName.$error.maxlength">
- Too long!</span>
- </div>
- </form>
- <hr>
- <tt>user = {{user}}</tt><br/>
- <tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br/>
- <tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br/>
- <tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br/>
- <tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br/>
- <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- <tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br/>
- <tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br/>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- var user = element(by.exactBinding('user'));
- var userNameValid = element(by.binding('myForm.userName.$valid'));
- var lastNameValid = element(by.binding('myForm.lastName.$valid'));
- var lastNameError = element(by.binding('myForm.lastName.$error'));
- var formValid = element(by.binding('myForm.$valid'));
- var userNameInput = element(by.model('user.name'));
- var userLastInput = element(by.model('user.last'));
-
- it('should initialize to model', function() {
- expect(user.getText()).toContain('{"name":"guest","last":"visitor"}');
- expect(userNameValid.getText()).toContain('true');
- expect(formValid.getText()).toContain('true');
- });
-
- it('should be invalid if empty when required', function() {
- userNameInput.clear();
- userNameInput.sendKeys('');
-
- expect(user.getText()).toContain('{"last":"visitor"}');
- expect(userNameValid.getText()).toContain('false');
- expect(formValid.getText()).toContain('false');
- });
-
- it('should be valid if empty when min length is set', function() {
- userLastInput.clear();
- userLastInput.sendKeys('');
-
- expect(user.getText()).toContain('{"name":"guest","last":""}');
- expect(lastNameValid.getText()).toContain('true');
- expect(formValid.getText()).toContain('true');
- });
-
- it('should be invalid if less than required min length', function() {
- userLastInput.clear();
- userLastInput.sendKeys('xx');
-
- expect(user.getText()).toContain('{"name":"guest"}');
- expect(lastNameValid.getText()).toContain('false');
- expect(lastNameError.getText()).toContain('minlength');
- expect(formValid.getText()).toContain('false');
- });
-
- it('should be invalid if longer than max length', function() {
- userLastInput.clear();
- userLastInput.sendKeys('some ridiculously long name');
-
- expect(user.getText()).toContain('{"name":"guest"}');
- expect(lastNameValid.getText()).toContain('false');
- expect(lastNameError.getText()).toContain('maxlength');
- expect(formValid.getText()).toContain('false');
- });
- </file>
- </example>
- */
-var inputDirective = ['$browser', '$sniffer', '$filter', '$parse',
- function($browser, $sniffer, $filter, $parse) {
- return {
- restrict: 'E',
- require: ['?ngModel'],
- link: {
- pre: function(scope, element, attr, ctrls) {
- if (ctrls[0]) {
- (inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrls[0], $sniffer,
- $browser, $filter, $parse);
- }
- }
- }
- };
-}];
-
-
-
-var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
-/**
- * @ngdoc directive
- * @name ngValue
- *
- * @description
- * Binds the given expression to the value of `<option>` or {@link input[radio] `input[radio]`},
- * so that when the element is selected, the {@link ngModel `ngModel`} of that element is set to
- * the bound value.
- *
- * `ngValue` is useful when dynamically generating lists of radio buttons using
- * {@link ngRepeat `ngRepeat`}, as shown below.
- *
- * Likewise, `ngValue` can be used to generate `<option>` elements for
- * the {@link select `select`} element. In that case however, only strings are supported
- * for the `value `attribute, so the resulting `ngModel` will always be a string.
- * Support for `select` models with non-string values is available via `ngOptions`.
- *
- * @element input
- * @param {string=} ngValue angular expression, whose value will be bound to the `value` attribute
- * of the `input` element
- *
- * @example
- <example name="ngValue-directive" module="valueExample">
- <file name="index.html">
- <script>
- angular.module('valueExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.names = ['pizza', 'unicorns', 'robots'];
- $scope.my = { favorite: 'unicorns' };
- }]);
- </script>
- <form ng-controller="ExampleController">
- <h2>Which is your favorite?</h2>
- <label ng-repeat="name in names" for="{{name}}">
- {{name}}
- <input type="radio"
- ng-model="my.favorite"
- ng-value="name"
- id="{{name}}"
- name="favorite">
- </label>
- <div>You chose {{my.favorite}}</div>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- var favorite = element(by.binding('my.favorite'));
-
- it('should initialize to model', function() {
- expect(favorite.getText()).toContain('unicorns');
- });
- it('should bind the values to the inputs', function() {
- element.all(by.model('my.favorite')).get(0).click();
- expect(favorite.getText()).toContain('pizza');
- });
- </file>
- </example>
- */
-var ngValueDirective = function() {
- return {
- restrict: 'A',
- priority: 100,
- compile: function(tpl, tplAttr) {
- if (CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)) {
- return function ngValueConstantLink(scope, elm, attr) {
- attr.$set('value', scope.$eval(attr.ngValue));
- };
- } else {
- return function ngValueLink(scope, elm, attr) {
- scope.$watch(attr.ngValue, function valueWatchAction(value) {
- attr.$set('value', value);
- });
- };
- }
- }
- };
-};
-
-/**
- * @ngdoc directive
- * @name ngBind
- * @restrict AC
- *
- * @description
- * The `ngBind` attribute tells Angular to replace the text content of the specified HTML element
- * with the value of a given expression, and to update the text content when the value of that
- * expression changes.
- *
- * Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
- * `{{ expression }}` which is similar but less verbose.
- *
- * It is preferable to use `ngBind` instead of `{{ expression }}` if a template is momentarily
- * displayed by the browser in its raw state before Angular compiles it. Since `ngBind` is an
- * element attribute, it makes the bindings invisible to the user while the page is loading.
- *
- * An alternative solution to this problem would be using the
- * {@link ng.directive:ngCloak ngCloak} directive.
- *
- *
- * @element ANY
- * @param {expression} ngBind {@link guide/expression Expression} to evaluate.
- *
- * @example
- * Enter a name in the Live Preview text box; the greeting below the text box changes instantly.
- <example module="bindExample">
- <file name="index.html">
- <script>
- angular.module('bindExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.name = 'Whirled';
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>Enter name: <input type="text" ng-model="name"></label><br>
- Hello <span ng-bind="name"></span>!
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-bind', function() {
- var nameInput = element(by.model('name'));
-
- expect(element(by.binding('name')).getText()).toBe('Whirled');
- nameInput.clear();
- nameInput.sendKeys('world');
- expect(element(by.binding('name')).getText()).toBe('world');
- });
- </file>
- </example>
- */
-var ngBindDirective = ['$compile', function($compile) {
- return {
- restrict: 'AC',
- compile: function ngBindCompile(templateElement) {
- $compile.$$addBindingClass(templateElement);
- return function ngBindLink(scope, element, attr) {
- $compile.$$addBindingInfo(element, attr.ngBind);
- element = element[0];
- scope.$watch(attr.ngBind, function ngBindWatchAction(value) {
- element.textContent = isUndefined(value) ? '' : value;
- });
- };
- }
- };
-}];
-
-
-/**
- * @ngdoc directive
- * @name ngBindTemplate
- *
- * @description
- * The `ngBindTemplate` directive specifies that the element
- * text content should be replaced with the interpolation of the template
- * in the `ngBindTemplate` attribute.
- * Unlike `ngBind`, the `ngBindTemplate` can contain multiple `{{` `}}`
- * expressions. This directive is needed since some HTML elements
- * (such as TITLE and OPTION) cannot contain SPAN elements.
- *
- * @element ANY
- * @param {string} ngBindTemplate template of form
- * <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.
- *
- * @example
- * Try it here: enter text in text box and watch the greeting change.
- <example module="bindExample">
- <file name="index.html">
- <script>
- angular.module('bindExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.salutation = 'Hello';
- $scope.name = 'World';
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>Salutation: <input type="text" ng-model="salutation"></label><br>
- <label>Name: <input type="text" ng-model="name"></label><br>
- <pre ng-bind-template="{{salutation}} {{name}}!"></pre>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-bind', function() {
- var salutationElem = element(by.binding('salutation'));
- var salutationInput = element(by.model('salutation'));
- var nameInput = element(by.model('name'));
-
- expect(salutationElem.getText()).toBe('Hello World!');
-
- salutationInput.clear();
- salutationInput.sendKeys('Greetings');
- nameInput.clear();
- nameInput.sendKeys('user');
-
- expect(salutationElem.getText()).toBe('Greetings user!');
- });
- </file>
- </example>
- */
-var ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate, $compile) {
- return {
- compile: function ngBindTemplateCompile(templateElement) {
- $compile.$$addBindingClass(templateElement);
- return function ngBindTemplateLink(scope, element, attr) {
- var interpolateFn = $interpolate(element.attr(attr.$attr.ngBindTemplate));
- $compile.$$addBindingInfo(element, interpolateFn.expressions);
- element = element[0];
- attr.$observe('ngBindTemplate', function(value) {
- element.textContent = isUndefined(value) ? '' : value;
- });
- };
- }
- };
-}];
-
-
-/**
- * @ngdoc directive
- * @name ngBindHtml
- *
- * @description
- * Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,
- * the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.
- * To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link
- * ngSanitize} in your module's dependencies (not in core Angular). In order to use {@link ngSanitize}
- * in your module's dependencies, you need to include "angular-sanitize.js" in your application.
- *
- * You may also bypass sanitization for values you know are safe. To do so, bind to
- * an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}. See the example
- * under {@link ng.$sce#show-me-an-example-using-sce- Strict Contextual Escaping (SCE)}.
- *
- * Note: If a `$sanitize` service is unavailable and the bound value isn't explicitly trusted, you
- * will have an exception (instead of an exploit.)
- *
- * @element ANY
- * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.
- *
- * @example
-
- <example module="bindHtmlExample" deps="angular-sanitize.js">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <p ng-bind-html="myHTML"></p>
- </div>
- </file>
-
- <file name="script.js">
- angular.module('bindHtmlExample', ['ngSanitize'])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.myHTML =
- 'I am an <code>HTML</code>string with ' +
- '<a href="#">links!</a> and other <em>stuff</em>';
- }]);
- </file>
-
- <file name="protractor.js" type="protractor">
- it('should check ng-bind-html', function() {
- expect(element(by.binding('myHTML')).getText()).toBe(
- 'I am an HTMLstring with links! and other stuff');
- });
- </file>
- </example>
- */
-var ngBindHtmlDirective = ['$sce', '$parse', '$compile', function($sce, $parse, $compile) {
- return {
- restrict: 'A',
- compile: function ngBindHtmlCompile(tElement, tAttrs) {
- var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);
- var ngBindHtmlWatch = $parse(tAttrs.ngBindHtml, function getStringValue(value) {
- return (value || '').toString();
- });
- $compile.$$addBindingClass(tElement);
-
- return function ngBindHtmlLink(scope, element, attr) {
- $compile.$$addBindingInfo(element, attr.ngBindHtml);
-
- scope.$watch(ngBindHtmlWatch, function ngBindHtmlWatchAction() {
- // we re-evaluate the expr because we want a TrustedValueHolderType
- // for $sce, not a string
- element.html($sce.getTrustedHtml(ngBindHtmlGetter(scope)) || '');
- });
- };
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngChange
- *
- * @description
- * Evaluate the given expression when the user changes the input.
- * The expression is evaluated immediately, unlike the JavaScript onchange event
- * which only triggers at the end of a change (usually, when the user leaves the
- * form element or presses the return key).
- *
- * The `ngChange` expression is only evaluated when a change in the input value causes
- * a new value to be committed to the model.
- *
- * It will not be evaluated:
- * * if the value returned from the `$parsers` transformation pipeline has not changed
- * * if the input has continued to be invalid since the model will stay `null`
- * * if the model is changed programmatically and not by a change to the input value
- *
- *
- * Note, this directive requires `ngModel` to be present.
- *
- * @element input
- * @param {expression} ngChange {@link guide/expression Expression} to evaluate upon change
- * in input value.
- *
- * @example
- * <example name="ngChange-directive" module="changeExample">
- * <file name="index.html">
- * <script>
- * angular.module('changeExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.counter = 0;
- * $scope.change = function() {
- * $scope.counter++;
- * };
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <input type="checkbox" ng-model="confirmed" ng-change="change()" id="ng-change-example1" />
- * <input type="checkbox" ng-model="confirmed" id="ng-change-example2" />
- * <label for="ng-change-example2">Confirmed</label><br />
- * <tt>debug = {{confirmed}}</tt><br/>
- * <tt>counter = {{counter}}</tt><br/>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- * var counter = element(by.binding('counter'));
- * var debug = element(by.binding('confirmed'));
- *
- * it('should evaluate the expression if changing from view', function() {
- * expect(counter.getText()).toContain('0');
- *
- * element(by.id('ng-change-example1')).click();
- *
- * expect(counter.getText()).toContain('1');
- * expect(debug.getText()).toContain('true');
- * });
- *
- * it('should not evaluate the expression if changing from model', function() {
- * element(by.id('ng-change-example2')).click();
-
- * expect(counter.getText()).toContain('0');
- * expect(debug.getText()).toContain('true');
- * });
- * </file>
- * </example>
- */
-var ngChangeDirective = valueFn({
- restrict: 'A',
- require: 'ngModel',
- link: function(scope, element, attr, ctrl) {
- ctrl.$viewChangeListeners.push(function() {
- scope.$eval(attr.ngChange);
- });
- }
-});
-
-function classDirective(name, selector) {
- name = 'ngClass' + name;
- return ['$animate', function($animate) {
- return {
- restrict: 'AC',
- link: function(scope, element, attr) {
- var oldVal;
-
- scope.$watch(attr[name], ngClassWatchAction, true);
-
- attr.$observe('class', function(value) {
- ngClassWatchAction(scope.$eval(attr[name]));
- });
-
-
- if (name !== 'ngClass') {
- scope.$watch('$index', function($index, old$index) {
- // jshint bitwise: false
- var mod = $index & 1;
- if (mod !== (old$index & 1)) {
- var classes = arrayClasses(scope.$eval(attr[name]));
- mod === selector ?
- addClasses(classes) :
- removeClasses(classes);
- }
- });
- }
-
- function addClasses(classes) {
- var newClasses = digestClassCounts(classes, 1);
- attr.$addClass(newClasses);
- }
-
- function removeClasses(classes) {
- var newClasses = digestClassCounts(classes, -1);
- attr.$removeClass(newClasses);
- }
-
- function digestClassCounts(classes, count) {
- // Use createMap() to prevent class assumptions involving property
- // names in Object.prototype
- var classCounts = element.data('$classCounts') || createMap();
- var classesToUpdate = [];
- forEach(classes, function(className) {
- if (count > 0 || classCounts[className]) {
- classCounts[className] = (classCounts[className] || 0) + count;
- if (classCounts[className] === +(count > 0)) {
- classesToUpdate.push(className);
- }
- }
- });
- element.data('$classCounts', classCounts);
- return classesToUpdate.join(' ');
- }
-
- function updateClasses(oldClasses, newClasses) {
- var toAdd = arrayDifference(newClasses, oldClasses);
- var toRemove = arrayDifference(oldClasses, newClasses);
- toAdd = digestClassCounts(toAdd, 1);
- toRemove = digestClassCounts(toRemove, -1);
- if (toAdd && toAdd.length) {
- $animate.addClass(element, toAdd);
- }
- if (toRemove && toRemove.length) {
- $animate.removeClass(element, toRemove);
- }
- }
-
- function ngClassWatchAction(newVal) {
- if (selector === true || scope.$index % 2 === selector) {
- var newClasses = arrayClasses(newVal || []);
- if (!oldVal) {
- addClasses(newClasses);
- } else if (!equals(newVal,oldVal)) {
- var oldClasses = arrayClasses(oldVal);
- updateClasses(oldClasses, newClasses);
- }
- }
- oldVal = shallowCopy(newVal);
- }
- }
- };
-
- function arrayDifference(tokens1, tokens2) {
- var values = [];
-
- outer:
- for (var i = 0; i < tokens1.length; i++) {
- var token = tokens1[i];
- for (var j = 0; j < tokens2.length; j++) {
- if (token == tokens2[j]) continue outer;
- }
- values.push(token);
- }
- return values;
- }
-
- function arrayClasses(classVal) {
- var classes = [];
- if (isArray(classVal)) {
- forEach(classVal, function(v) {
- classes = classes.concat(arrayClasses(v));
- });
- return classes;
- } else if (isString(classVal)) {
- return classVal.split(' ');
- } else if (isObject(classVal)) {
- forEach(classVal, function(v, k) {
- if (v) {
- classes = classes.concat(k.split(' '));
- }
- });
- return classes;
- }
- return classVal;
- }
- }];
-}
-
-/**
- * @ngdoc directive
- * @name ngClass
- * @restrict AC
- *
- * @description
- * The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding
- * an expression that represents all classes to be added.
- *
- * The directive operates in three different ways, depending on which of three types the expression
- * evaluates to:
- *
- * 1. If the expression evaluates to a string, the string should be one or more space-delimited class
- * names.
- *
- * 2. If the expression evaluates to an object, then for each key-value pair of the
- * object with a truthy value the corresponding key is used as a class name.
- *
- * 3. If the expression evaluates to an array, each element of the array should either be a string as in
- * type 1 or an object as in type 2. This means that you can mix strings and objects together in an array
- * to give you more control over what CSS classes appear. See the code below for an example of this.
- *
- *
- * The directive won't add duplicate classes if a particular class was already set.
- *
- * When the expression changes, the previously added classes are removed and only then are the
- * new classes added.
- *
- * @animations
- * **add** - happens just before the class is applied to the elements
- *
- * **remove** - happens just before the class is removed from the element
- *
- * @element ANY
- * @param {expression} ngClass {@link guide/expression Expression} to eval. The result
- * of the evaluation can be a string representing space delimited class
- * names, an array, or a map of class names to boolean values. In the case of a map, the
- * names of the properties whose values are truthy will be added as css classes to the
- * element.
- *
- * @example Example that demonstrates basic bindings via ngClass directive.
- <example>
- <file name="index.html">
- <p ng-class="{strike: deleted, bold: important, 'has-error': error}">Map Syntax Example</p>
- <label>
- <input type="checkbox" ng-model="deleted">
- deleted (apply "strike" class)
- </label><br>
- <label>
- <input type="checkbox" ng-model="important">
- important (apply "bold" class)
- </label><br>
- <label>
- <input type="checkbox" ng-model="error">
- error (apply "has-error" class)
- </label>
- <hr>
- <p ng-class="style">Using String Syntax</p>
- <input type="text" ng-model="style"
- placeholder="Type: bold strike red" aria-label="Type: bold strike red">
- <hr>
- <p ng-class="[style1, style2, style3]">Using Array Syntax</p>
- <input ng-model="style1"
- placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red"><br>
- <input ng-model="style2"
- placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red 2"><br>
- <input ng-model="style3"
- placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red 3"><br>
- <hr>
- <p ng-class="[style4, {orange: warning}]">Using Array and Map Syntax</p>
- <input ng-model="style4" placeholder="Type: bold, strike" aria-label="Type: bold, strike"><br>
- <label><input type="checkbox" ng-model="warning"> warning (apply "orange" class)</label>
- </file>
- <file name="style.css">
- .strike {
- text-decoration: line-through;
- }
- .bold {
- font-weight: bold;
- }
- .red {
- color: red;
- }
- .has-error {
- color: red;
- background-color: yellow;
- }
- .orange {
- color: orange;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var ps = element.all(by.css('p'));
-
- it('should let you toggle the class', function() {
-
- expect(ps.first().getAttribute('class')).not.toMatch(/bold/);
- expect(ps.first().getAttribute('class')).not.toMatch(/has-error/);
-
- element(by.model('important')).click();
- expect(ps.first().getAttribute('class')).toMatch(/bold/);
-
- element(by.model('error')).click();
- expect(ps.first().getAttribute('class')).toMatch(/has-error/);
- });
-
- it('should let you toggle string example', function() {
- expect(ps.get(1).getAttribute('class')).toBe('');
- element(by.model('style')).clear();
- element(by.model('style')).sendKeys('red');
- expect(ps.get(1).getAttribute('class')).toBe('red');
- });
-
- it('array example should have 3 classes', function() {
- expect(ps.get(2).getAttribute('class')).toBe('');
- element(by.model('style1')).sendKeys('bold');
- element(by.model('style2')).sendKeys('strike');
- element(by.model('style3')).sendKeys('red');
- expect(ps.get(2).getAttribute('class')).toBe('bold strike red');
- });
-
- it('array with map example should have 2 classes', function() {
- expect(ps.last().getAttribute('class')).toBe('');
- element(by.model('style4')).sendKeys('bold');
- element(by.model('warning')).click();
- expect(ps.last().getAttribute('class')).toBe('bold orange');
- });
- </file>
- </example>
-
- ## Animations
-
- The example below demonstrates how to perform animations using ngClass.
-
- <example module="ngAnimate" deps="angular-animate.js" animations="true">
- <file name="index.html">
- <input id="setbtn" type="button" value="set" ng-click="myVar='my-class'">
- <input id="clearbtn" type="button" value="clear" ng-click="myVar=''">
- <br>
- <span class="base-class" ng-class="myVar">Sample Text</span>
- </file>
- <file name="style.css">
- .base-class {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
- }
-
- .base-class.my-class {
- color: red;
- font-size:3em;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-class', function() {
- expect(element(by.css('.base-class')).getAttribute('class')).not.
- toMatch(/my-class/);
-
- element(by.id('setbtn')).click();
-
- expect(element(by.css('.base-class')).getAttribute('class')).
- toMatch(/my-class/);
-
- element(by.id('clearbtn')).click();
-
- expect(element(by.css('.base-class')).getAttribute('class')).not.
- toMatch(/my-class/);
- });
- </file>
- </example>
-
-
- ## ngClass and pre-existing CSS3 Transitions/Animations
- The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.
- Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder
- any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure
- to view the step by step details of {@link $animate#addClass $animate.addClass} and
- {@link $animate#removeClass $animate.removeClass}.
- */
-var ngClassDirective = classDirective('', true);
-
-/**
- * @ngdoc directive
- * @name ngClassOdd
- * @restrict AC
- *
- * @description
- * The `ngClassOdd` and `ngClassEven` directives work exactly as
- * {@link ng.directive:ngClass ngClass}, except they work in
- * conjunction with `ngRepeat` and take effect only on odd (even) rows.
- *
- * This directive can be applied only within the scope of an
- * {@link ng.directive:ngRepeat ngRepeat}.
- *
- * @element ANY
- * @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result
- * of the evaluation can be a string representing space delimited class names or an array.
- *
- * @example
- <example>
- <file name="index.html">
- <ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
- <li ng-repeat="name in names">
- <span ng-class-odd="'odd'" ng-class-even="'even'">
- {{name}}
- </span>
- </li>
- </ol>
- </file>
- <file name="style.css">
- .odd {
- color: red;
- }
- .even {
- color: blue;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-class-odd and ng-class-even', function() {
- expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).
- toMatch(/odd/);
- expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).
- toMatch(/even/);
- });
- </file>
- </example>
- */
-var ngClassOddDirective = classDirective('Odd', 0);
-
-/**
- * @ngdoc directive
- * @name ngClassEven
- * @restrict AC
- *
- * @description
- * The `ngClassOdd` and `ngClassEven` directives work exactly as
- * {@link ng.directive:ngClass ngClass}, except they work in
- * conjunction with `ngRepeat` and take effect only on odd (even) rows.
- *
- * This directive can be applied only within the scope of an
- * {@link ng.directive:ngRepeat ngRepeat}.
- *
- * @element ANY
- * @param {expression} ngClassEven {@link guide/expression Expression} to eval. The
- * result of the evaluation can be a string representing space delimited class names or an array.
- *
- * @example
- <example>
- <file name="index.html">
- <ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
- <li ng-repeat="name in names">
- <span ng-class-odd="'odd'" ng-class-even="'even'">
- {{name}} &nbsp; &nbsp; &nbsp;
- </span>
- </li>
- </ol>
- </file>
- <file name="style.css">
- .odd {
- color: red;
- }
- .even {
- color: blue;
- }
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-class-odd and ng-class-even', function() {
- expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).
- toMatch(/odd/);
- expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).
- toMatch(/even/);
- });
- </file>
- </example>
- */
-var ngClassEvenDirective = classDirective('Even', 1);
-
-/**
- * @ngdoc directive
- * @name ngCloak
- * @restrict AC
- *
- * @description
- * The `ngCloak` directive is used to prevent the Angular html template from being briefly
- * displayed by the browser in its raw (uncompiled) form while your application is loading. Use this
- * directive to avoid the undesirable flicker effect caused by the html template display.
- *
- * The directive can be applied to the `<body>` element, but the preferred usage is to apply
- * multiple `ngCloak` directives to small portions of the page to permit progressive rendering
- * of the browser view.
- *
- * `ngCloak` works in cooperation with the following css rule embedded within `angular.js` and
- * `angular.min.js`.
- * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).
- *
- * ```css
- * [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
- * display: none !important;
- * }
- * ```
- *
- * When this css rule is loaded by the browser, all html elements (including their children) that
- * are tagged with the `ngCloak` directive are hidden. When Angular encounters this directive
- * during the compilation of the template it deletes the `ngCloak` element attribute, making
- * the compiled element visible.
- *
- * For the best result, the `angular.js` script must be loaded in the head section of the html
- * document; alternatively, the css rule above must be included in the external stylesheet of the
- * application.
- *
- * @element ANY
- *
- * @example
- <example>
- <file name="index.html">
- <div id="template1" ng-cloak>{{ 'hello' }}</div>
- <div id="template2" class="ng-cloak">{{ 'world' }}</div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should remove the template directive and css class', function() {
- expect($('#template1').getAttribute('ng-cloak')).
- toBeNull();
- expect($('#template2').getAttribute('ng-cloak')).
- toBeNull();
- });
- </file>
- </example>
- *
- */
-var ngCloakDirective = ngDirective({
- compile: function(element, attr) {
- attr.$set('ngCloak', undefined);
- element.removeClass('ng-cloak');
- }
-});
-
-/**
- * @ngdoc directive
- * @name ngController
- *
- * @description
- * The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular
- * supports the principles behind the Model-View-Controller design pattern.
- *
- * MVC components in angular:
- *
- * * Model — Models are the properties of a scope; scopes are attached to the DOM where scope properties
- * are accessed through bindings.
- * * View — The template (HTML with data bindings) that is rendered into the View.
- * * Controller — The `ngController` directive specifies a Controller class; the class contains business
- * logic behind the application to decorate the scope with functions and values
- *
- * Note that you can also attach controllers to the DOM by declaring it in a route definition
- * via the {@link ngRoute.$route $route} service. A common mistake is to declare the controller
- * again using `ng-controller` in the template itself. This will cause the controller to be attached
- * and executed twice.
- *
- * @element ANY
- * @scope
- * @priority 500
- * @param {expression} ngController Name of a constructor function registered with the current
- * {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}
- * that on the current scope evaluates to a constructor function.
- *
- * The controller instance can be published into a scope property by specifying
- * `ng-controller="as propertyName"`.
- *
- * If the current `$controllerProvider` is configured to use globals (via
- * {@link ng.$controllerProvider#allowGlobals `$controllerProvider.allowGlobals()` }), this may
- * also be the name of a globally accessible constructor function (not recommended).
- *
- * @example
- * Here is a simple form for editing user contact information. Adding, removing, clearing, and
- * greeting are methods declared on the controller (see source tab). These methods can
- * easily be called from the angular markup. Any changes to the data are automatically reflected
- * in the View without the need for a manual update.
- *
- * Two different declaration styles are included below:
- *
- * * one binds methods and properties directly onto the controller using `this`:
- * `ng-controller="SettingsController1 as settings"`
- * * one injects `$scope` into the controller:
- * `ng-controller="SettingsController2"`
- *
- * The second option is more common in the Angular community, and is generally used in boilerplates
- * and in this guide. However, there are advantages to binding properties directly to the controller
- * and avoiding scope.
- *
- * * Using `controller as` makes it obvious which controller you are accessing in the template when
- * multiple controllers apply to an element.
- * * If you are writing your controllers as classes you have easier access to the properties and
- * methods, which will appear on the scope, from inside the controller code.
- * * Since there is always a `.` in the bindings, you don't have to worry about prototypal
- * inheritance masking primitives.
- *
- * This example demonstrates the `controller as` syntax.
- *
- * <example name="ngControllerAs" module="controllerAsExample">
- * <file name="index.html">
- * <div id="ctrl-as-exmpl" ng-controller="SettingsController1 as settings">
- * <label>Name: <input type="text" ng-model="settings.name"/></label>
- * <button ng-click="settings.greet()">greet</button><br/>
- * Contact:
- * <ul>
- * <li ng-repeat="contact in settings.contacts">
- * <select ng-model="contact.type" aria-label="Contact method" id="select_{{$index}}">
- * <option>phone</option>
- * <option>email</option>
- * </select>
- * <input type="text" ng-model="contact.value" aria-labelledby="select_{{$index}}" />
- * <button ng-click="settings.clearContact(contact)">clear</button>
- * <button ng-click="settings.removeContact(contact)" aria-label="Remove">X</button>
- * </li>
- * <li><button ng-click="settings.addContact()">add</button></li>
- * </ul>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('controllerAsExample', [])
- * .controller('SettingsController1', SettingsController1);
- *
- * function SettingsController1() {
- * this.name = "John Smith";
- * this.contacts = [
- * {type: 'phone', value: '408 555 1212'},
- * {type: 'email', value: 'john.smith@example.org'} ];
- * }
- *
- * SettingsController1.prototype.greet = function() {
- * alert(this.name);
- * };
- *
- * SettingsController1.prototype.addContact = function() {
- * this.contacts.push({type: 'email', value: 'yourname@example.org'});
- * };
- *
- * SettingsController1.prototype.removeContact = function(contactToRemove) {
- * var index = this.contacts.indexOf(contactToRemove);
- * this.contacts.splice(index, 1);
- * };
- *
- * SettingsController1.prototype.clearContact = function(contact) {
- * contact.type = 'phone';
- * contact.value = '';
- * };
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should check controller as', function() {
- * var container = element(by.id('ctrl-as-exmpl'));
- * expect(container.element(by.model('settings.name'))
- * .getAttribute('value')).toBe('John Smith');
- *
- * var firstRepeat =
- * container.element(by.repeater('contact in settings.contacts').row(0));
- * var secondRepeat =
- * container.element(by.repeater('contact in settings.contacts').row(1));
- *
- * expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('408 555 1212');
- *
- * expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('john.smith@example.org');
- *
- * firstRepeat.element(by.buttonText('clear')).click();
- *
- * expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('');
- *
- * container.element(by.buttonText('add')).click();
- *
- * expect(container.element(by.repeater('contact in settings.contacts').row(2))
- * .element(by.model('contact.value'))
- * .getAttribute('value'))
- * .toBe('yourname@example.org');
- * });
- * </file>
- * </example>
- *
- * This example demonstrates the "attach to `$scope`" style of controller.
- *
- * <example name="ngController" module="controllerExample">
- * <file name="index.html">
- * <div id="ctrl-exmpl" ng-controller="SettingsController2">
- * <label>Name: <input type="text" ng-model="name"/></label>
- * <button ng-click="greet()">greet</button><br/>
- * Contact:
- * <ul>
- * <li ng-repeat="contact in contacts">
- * <select ng-model="contact.type" id="select_{{$index}}">
- * <option>phone</option>
- * <option>email</option>
- * </select>
- * <input type="text" ng-model="contact.value" aria-labelledby="select_{{$index}}" />
- * <button ng-click="clearContact(contact)">clear</button>
- * <button ng-click="removeContact(contact)">X</button>
- * </li>
- * <li>[ <button ng-click="addContact()">add</button> ]</li>
- * </ul>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('controllerExample', [])
- * .controller('SettingsController2', ['$scope', SettingsController2]);
- *
- * function SettingsController2($scope) {
- * $scope.name = "John Smith";
- * $scope.contacts = [
- * {type:'phone', value:'408 555 1212'},
- * {type:'email', value:'john.smith@example.org'} ];
- *
- * $scope.greet = function() {
- * alert($scope.name);
- * };
- *
- * $scope.addContact = function() {
- * $scope.contacts.push({type:'email', value:'yourname@example.org'});
- * };
- *
- * $scope.removeContact = function(contactToRemove) {
- * var index = $scope.contacts.indexOf(contactToRemove);
- * $scope.contacts.splice(index, 1);
- * };
- *
- * $scope.clearContact = function(contact) {
- * contact.type = 'phone';
- * contact.value = '';
- * };
- * }
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should check controller', function() {
- * var container = element(by.id('ctrl-exmpl'));
- *
- * expect(container.element(by.model('name'))
- * .getAttribute('value')).toBe('John Smith');
- *
- * var firstRepeat =
- * container.element(by.repeater('contact in contacts').row(0));
- * var secondRepeat =
- * container.element(by.repeater('contact in contacts').row(1));
- *
- * expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('408 555 1212');
- * expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('john.smith@example.org');
- *
- * firstRepeat.element(by.buttonText('clear')).click();
- *
- * expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
- * .toBe('');
- *
- * container.element(by.buttonText('add')).click();
- *
- * expect(container.element(by.repeater('contact in contacts').row(2))
- * .element(by.model('contact.value'))
- * .getAttribute('value'))
- * .toBe('yourname@example.org');
- * });
- * </file>
- *</example>
-
- */
-var ngControllerDirective = [function() {
- return {
- restrict: 'A',
- scope: true,
- controller: '@',
- priority: 500
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngCsp
- *
- * @element html
- * @description
- *
- * Angular has some features that can break certain
- * [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) rules.
- *
- * If you intend to implement these rules then you must tell Angular not to use these features.
- *
- * This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.
- *
- *
- * The following rules affect Angular:
- *
- * * `unsafe-eval`: this rule forbids apps to use `eval` or `Function(string)` generated functions
- * (among other things). Angular makes use of this in the {@link $parse} service to provide a 30%
- * increase in the speed of evaluating Angular expressions.
- *
- * * `unsafe-inline`: this rule forbids apps from inject custom styles into the document. Angular
- * makes use of this to include some CSS rules (e.g. {@link ngCloak} and {@link ngHide}).
- * To make these directives work when a CSP rule is blocking inline styles, you must link to the
- * `angular-csp.css` in your HTML manually.
- *
- * If you do not provide `ngCsp` then Angular tries to autodetect if CSP is blocking unsafe-eval
- * and automatically deactivates this feature in the {@link $parse} service. This autodetection,
- * however, triggers a CSP error to be logged in the console:
- *
- * ```
- * Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of
- * script in the following Content Security Policy directive: "default-src 'self'". Note that
- * 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
- * ```
- *
- * This error is harmless but annoying. To prevent the error from showing up, put the `ngCsp`
- * directive on an element of the HTML document that appears before the `<script>` tag that loads
- * the `angular.js` file.
- *
- * *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.*
- *
- * You can specify which of the CSP related Angular features should be deactivated by providing
- * a value for the `ng-csp` attribute. The options are as follows:
- *
- * * no-inline-style: this stops Angular from injecting CSS styles into the DOM
- *
- * * no-unsafe-eval: this stops Angular from optimizing $parse with unsafe eval of strings
- *
- * You can use these values in the following combinations:
- *
- *
- * * No declaration means that Angular will assume that you can do inline styles, but it will do
- * a runtime check for unsafe-eval. E.g. `<body>`. This is backwardly compatible with previous versions
- * of Angular.
- *
- * * A simple `ng-csp` (or `data-ng-csp`) attribute will tell Angular to deactivate both inline
- * styles and unsafe eval. E.g. `<body ng-csp>`. This is backwardly compatible with previous versions
- * of Angular.
- *
- * * Specifying only `no-unsafe-eval` tells Angular that we must not use eval, but that we can inject
- * inline styles. E.g. `<body ng-csp="no-unsafe-eval">`.
- *
- * * Specifying only `no-inline-style` tells Angular that we must not inject styles, but that we can
- * run eval - no automatic check for unsafe eval will occur. E.g. `<body ng-csp="no-inline-style">`
- *
- * * Specifying both `no-unsafe-eval` and `no-inline-style` tells Angular that we must not inject
- * styles nor use eval, which is the same as an empty: ng-csp.
- * E.g.`<body ng-csp="no-inline-style;no-unsafe-eval">`
- *
- * @example
- * This example shows how to apply the `ngCsp` directive to the `html` tag.
- ```html
- <!doctype html>
- <html ng-app ng-csp>
- ...
- ...
- </html>
- ```
- * @example
- // Note: the suffix `.csp` in the example name triggers
- // csp mode in our http server!
- <example name="example.csp" module="cspExample" ng-csp="true">
- <file name="index.html">
- <div ng-controller="MainController as ctrl">
- <div>
- <button ng-click="ctrl.inc()" id="inc">Increment</button>
- <span id="counter">
- {{ctrl.counter}}
- </span>
- </div>
-
- <div>
- <button ng-click="ctrl.evil()" id="evil">Evil</button>
- <span id="evilError">
- {{ctrl.evilError}}
- </span>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('cspExample', [])
- .controller('MainController', function() {
- this.counter = 0;
- this.inc = function() {
- this.counter++;
- };
- this.evil = function() {
- // jshint evil:true
- try {
- eval('1+2');
- } catch (e) {
- this.evilError = e.message;
- }
- };
- });
- </file>
- <file name="protractor.js" type="protractor">
- var util, webdriver;
-
- var incBtn = element(by.id('inc'));
- var counter = element(by.id('counter'));
- var evilBtn = element(by.id('evil'));
- var evilError = element(by.id('evilError'));
-
- function getAndClearSevereErrors() {
- return browser.manage().logs().get('browser').then(function(browserLog) {
- return browserLog.filter(function(logEntry) {
- return logEntry.level.value > webdriver.logging.Level.WARNING.value;
- });
- });
- }
-
- function clearErrors() {
- getAndClearSevereErrors();
- }
-
- function expectNoErrors() {
- getAndClearSevereErrors().then(function(filteredLog) {
- expect(filteredLog.length).toEqual(0);
- if (filteredLog.length) {
- console.log('browser console errors: ' + util.inspect(filteredLog));
- }
- });
- }
-
- function expectError(regex) {
- getAndClearSevereErrors().then(function(filteredLog) {
- var found = false;
- filteredLog.forEach(function(log) {
- if (log.message.match(regex)) {
- found = true;
- }
- });
- if (!found) {
- throw new Error('expected an error that matches ' + regex);
- }
- });
- }
-
- beforeEach(function() {
- util = require('util');
- webdriver = require('protractor/node_modules/selenium-webdriver');
- });
-
- // For now, we only test on Chrome,
- // as Safari does not load the page with Protractor's injected scripts,
- // and Firefox webdriver always disables content security policy (#6358)
- if (browser.params.browser !== 'chrome') {
- return;
- }
-
- it('should not report errors when the page is loaded', function() {
- // clear errors so we are not dependent on previous tests
- clearErrors();
- // Need to reload the page as the page is already loaded when
- // we come here
- browser.driver.getCurrentUrl().then(function(url) {
- browser.get(url);
- });
- expectNoErrors();
- });
-
- it('should evaluate expressions', function() {
- expect(counter.getText()).toEqual('0');
- incBtn.click();
- expect(counter.getText()).toEqual('1');
- expectNoErrors();
- });
-
- it('should throw and report an error when using "eval"', function() {
- evilBtn.click();
- expect(evilError.getText()).toMatch(/Content Security Policy/);
- expectError(/Content Security Policy/);
- });
- </file>
- </example>
- */
-
-// ngCsp is not implemented as a proper directive any more, because we need it be processed while we
-// bootstrap the system (before $parse is instantiated), for this reason we just have
-// the csp() fn that looks for the `ng-csp` attribute anywhere in the current doc
-
-/**
- * @ngdoc directive
- * @name ngClick
- *
- * @description
- * The ngClick directive allows you to specify custom behavior when
- * an element is clicked.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon
- * click. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <button ng-click="count = count + 1" ng-init="count=0">
- Increment
- </button>
- <span>
- count: {{count}}
- </span>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-click', function() {
- expect(element(by.binding('count')).getText()).toMatch('0');
- element(by.css('button')).click();
- expect(element(by.binding('count')).getText()).toMatch('1');
- });
- </file>
- </example>
- */
-/*
- * A collection of directives that allows creation of custom event handlers that are defined as
- * angular expressions and are compiled and executed within the current scope.
- */
-var ngEventDirectives = {};
-
-// For events that might fire synchronously during DOM manipulation
-// we need to execute their event handlers asynchronously using $evalAsync,
-// so that they are not executed in an inconsistent state.
-var forceAsyncEvents = {
- 'blur': true,
- 'focus': true
-};
-forEach(
- 'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '),
- function(eventName) {
- var directiveName = directiveNormalize('ng-' + eventName);
- ngEventDirectives[directiveName] = ['$parse', '$rootScope', function($parse, $rootScope) {
- return {
- restrict: 'A',
- compile: function($element, attr) {
- // We expose the powerful $event object on the scope that provides access to the Window,
- // etc. that isn't protected by the fast paths in $parse. We explicitly request better
- // checks at the cost of speed since event handler expressions are not executed as
- // frequently as regular change detection.
- var fn = $parse(attr[directiveName], /* interceptorFn */ null, /* expensiveChecks */ true);
- return function ngEventHandler(scope, element) {
- element.on(eventName, function(event) {
- var callback = function() {
- fn(scope, {$event:event});
- };
- if (forceAsyncEvents[eventName] && $rootScope.$$phase) {
- scope.$evalAsync(callback);
- } else {
- scope.$apply(callback);
- }
- });
- };
- }
- };
- }];
- }
-);
-
-/**
- * @ngdoc directive
- * @name ngDblclick
- *
- * @description
- * The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon
- * a dblclick. (The Event object is available as `$event`)
- *
- * @example
- <example>
- <file name="index.html">
- <button ng-dblclick="count = count + 1" ng-init="count=0">
- Increment (on double click)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMousedown
- *
- * @description
- * The ngMousedown directive allows you to specify custom behavior on mousedown event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon
- * mousedown. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <button ng-mousedown="count = count + 1" ng-init="count=0">
- Increment (on mouse down)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMouseup
- *
- * @description
- * Specify custom behavior on mouseup event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon
- * mouseup. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <button ng-mouseup="count = count + 1" ng-init="count=0">
- Increment (on mouse up)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngMouseover
- *
- * @description
- * Specify custom behavior on mouseover event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon
- * mouseover. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <button ng-mouseover="count = count + 1" ng-init="count=0">
- Increment (when mouse is over)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMouseenter
- *
- * @description
- * Specify custom behavior on mouseenter event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon
- * mouseenter. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <button ng-mouseenter="count = count + 1" ng-init="count=0">
- Increment (when mouse enters)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMouseleave
- *
- * @description
- * Specify custom behavior on mouseleave event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon
- * mouseleave. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <button ng-mouseleave="count = count + 1" ng-init="count=0">
- Increment (when mouse leaves)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngMousemove
- *
- * @description
- * Specify custom behavior on mousemove event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon
- * mousemove. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <button ng-mousemove="count = count + 1" ng-init="count=0">
- Increment (when mouse moves)
- </button>
- count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngKeydown
- *
- * @description
- * Specify custom behavior on keydown event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon
- * keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
- *
- * @example
- <example>
- <file name="index.html">
- <input ng-keydown="count = count + 1" ng-init="count=0">
- key down count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngKeyup
- *
- * @description
- * Specify custom behavior on keyup event.
- *
- * @element ANY
- * @priority 0
- * @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon
- * keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
- *
- * @example
- <example>
- <file name="index.html">
- <p>Typing in the input box below updates the key count</p>
- <input ng-keyup="count = count + 1" ng-init="count=0"> key up count: {{count}}
-
- <p>Typing in the input box below updates the keycode</p>
- <input ng-keyup="event=$event">
- <p>event keyCode: {{ event.keyCode }}</p>
- <p>event altKey: {{ event.altKey }}</p>
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngKeypress
- *
- * @description
- * Specify custom behavior on keypress event.
- *
- * @element ANY
- * @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon
- * keypress. ({@link guide/expression#-event- Event object is available as `$event`}
- * and can be interrogated for keyCode, altKey, etc.)
- *
- * @example
- <example>
- <file name="index.html">
- <input ng-keypress="count = count + 1" ng-init="count=0">
- key press count: {{count}}
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc directive
- * @name ngSubmit
- *
- * @description
- * Enables binding angular expressions to onsubmit events.
- *
- * Additionally it prevents the default action (which for form means sending the request to the
- * server and reloading the current page), but only if the form does not contain `action`,
- * `data-action`, or `x-action` attributes.
- *
- * <div class="alert alert-warning">
- * **Warning:** Be careful not to cause "double-submission" by using both the `ngClick` and
- * `ngSubmit` handlers together. See the
- * {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}
- * for a detailed discussion of when `ngSubmit` may be triggered.
- * </div>
- *
- * @element form
- * @priority 0
- * @param {expression} ngSubmit {@link guide/expression Expression} to eval.
- * ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example module="submitExample">
- <file name="index.html">
- <script>
- angular.module('submitExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.list = [];
- $scope.text = 'hello';
- $scope.submit = function() {
- if ($scope.text) {
- $scope.list.push(this.text);
- $scope.text = '';
- }
- };
- }]);
- </script>
- <form ng-submit="submit()" ng-controller="ExampleController">
- Enter text and hit enter:
- <input type="text" ng-model="text" name="text" />
- <input type="submit" id="submit" value="Submit" />
- <pre>list={{list}}</pre>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-submit', function() {
- expect(element(by.binding('list')).getText()).toBe('list=[]');
- element(by.css('#submit')).click();
- expect(element(by.binding('list')).getText()).toContain('hello');
- expect(element(by.model('text')).getAttribute('value')).toBe('');
- });
- it('should ignore empty strings', function() {
- expect(element(by.binding('list')).getText()).toBe('list=[]');
- element(by.css('#submit')).click();
- element(by.css('#submit')).click();
- expect(element(by.binding('list')).getText()).toContain('hello');
- });
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngFocus
- *
- * @description
- * Specify custom behavior on focus event.
- *
- * Note: As the `focus` event is executed synchronously when calling `input.focus()`
- * AngularJS executes the expression using `scope.$evalAsync` if the event is fired
- * during an `$apply` to ensure a consistent state.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon
- * focus. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- * See {@link ng.directive:ngClick ngClick}
- */
-
-/**
- * @ngdoc directive
- * @name ngBlur
- *
- * @description
- * Specify custom behavior on blur event.
- *
- * A [blur event](https://developer.mozilla.org/en-US/docs/Web/Events/blur) fires when
- * an element has lost focus.
- *
- * Note: As the `blur` event is executed synchronously also during DOM manipulations
- * (e.g. removing a focussed input),
- * AngularJS executes the expression using `scope.$evalAsync` if the event is fired
- * during an `$apply` to ensure a consistent state.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon
- * blur. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- * See {@link ng.directive:ngClick ngClick}
- */
-
-/**
- * @ngdoc directive
- * @name ngCopy
- *
- * @description
- * Specify custom behavior on copy event.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon
- * copy. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <input ng-copy="copied=true" ng-init="copied=false; value='copy me'" ng-model="value">
- copied: {{copied}}
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngCut
- *
- * @description
- * Specify custom behavior on cut event.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon
- * cut. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <input ng-cut="cut=true" ng-init="cut=false; value='cut me'" ng-model="value">
- cut: {{cut}}
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngPaste
- *
- * @description
- * Specify custom behavior on paste event.
- *
- * @element window, input, select, textarea, a
- * @priority 0
- * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon
- * paste. ({@link guide/expression#-event- Event object is available as `$event`})
- *
- * @example
- <example>
- <file name="index.html">
- <input ng-paste="paste=true" ng-init="paste=false" placeholder='paste here'>
- pasted: {{paste}}
- </file>
- </example>
- */
-
-/**
- * @ngdoc directive
- * @name ngIf
- * @restrict A
- * @multiElement
- *
- * @description
- * The `ngIf` directive removes or recreates a portion of the DOM tree based on an
- * {expression}. If the expression assigned to `ngIf` evaluates to a false
- * value then the element is removed from the DOM, otherwise a clone of the
- * element is reinserted into the DOM.
- *
- * `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the
- * element in the DOM rather than changing its visibility via the `display` css property. A common
- * case when this difference is significant is when using css selectors that rely on an element's
- * position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.
- *
- * Note that when an element is removed using `ngIf` its scope is destroyed and a new scope
- * is created when the element is restored. The scope created within `ngIf` inherits from
- * its parent scope using
- * [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).
- * An important implication of this is if `ngModel` is used within `ngIf` to bind to
- * a javascript primitive defined in the parent scope. In this case any modifications made to the
- * variable within the child scope will override (hide) the value in the parent scope.
- *
- * Also, `ngIf` recreates elements using their compiled state. An example of this behavior
- * is if an element's class attribute is directly modified after it's compiled, using something like
- * jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element
- * the added class will be lost because the original compiled state is used to regenerate the element.
- *
- * Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`
- * and `leave` effects.
- *
- * @animations
- * enter - happens just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container
- * leave - happens just before the `ngIf` contents are removed from the DOM
- *
- * @element ANY
- * @scope
- * @priority 600
- * @param {expression} ngIf If the {@link guide/expression expression} is falsy then
- * the element is removed from the DOM tree. If it is truthy a copy of the compiled
- * element is added to the DOM tree.
- *
- * @example
- <example module="ngAnimate" deps="angular-animate.js" animations="true">
- <file name="index.html">
- <label>Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /></label><br/>
- Show when checked:
- <span ng-if="checked" class="animate-if">
- This is removed when the checkbox is unchecked.
- </span>
- </file>
- <file name="animations.css">
- .animate-if {
- background:white;
- border:1px solid black;
- padding:10px;
- }
-
- .animate-if.ng-enter, .animate-if.ng-leave {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
- }
-
- .animate-if.ng-enter,
- .animate-if.ng-leave.ng-leave-active {
- opacity:0;
- }
-
- .animate-if.ng-leave,
- .animate-if.ng-enter.ng-enter-active {
- opacity:1;
- }
- </file>
- </example>
- */
-var ngIfDirective = ['$animate', function($animate) {
- return {
- multiElement: true,
- transclude: 'element',
- priority: 600,
- terminal: true,
- restrict: 'A',
- $$tlb: true,
- link: function($scope, $element, $attr, ctrl, $transclude) {
- var block, childScope, previousElements;
- $scope.$watch($attr.ngIf, function ngIfWatchAction(value) {
-
- if (value) {
- if (!childScope) {
- $transclude(function(clone, newScope) {
- childScope = newScope;
- clone[clone.length++] = document.createComment(' end ngIf: ' + $attr.ngIf + ' ');
- // Note: We only need the first/last node of the cloned nodes.
- // However, we need to keep the reference to the jqlite wrapper as it might be changed later
- // by a directive with templateUrl when its template arrives.
- block = {
- clone: clone
- };
- $animate.enter(clone, $element.parent(), $element);
- });
- }
- } else {
- if (previousElements) {
- previousElements.remove();
- previousElements = null;
- }
- if (childScope) {
- childScope.$destroy();
- childScope = null;
- }
- if (block) {
- previousElements = getBlockNodes(block.clone);
- $animate.leave(previousElements).then(function() {
- previousElements = null;
- });
- block = null;
- }
- }
- });
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngInclude
- * @restrict ECA
- *
- * @description
- * Fetches, compiles and includes an external HTML fragment.
- *
- * By default, the template URL is restricted to the same domain and protocol as the
- * application document. This is done by calling {@link $sce#getTrustedResourceUrl
- * $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols
- * you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or
- * {@link $sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link
- * ng.$sce Strict Contextual Escaping}.
- *
- * In addition, the browser's
- * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
- * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
- * policy may further restrict whether the template is successfully loaded.
- * For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://`
- * access on some browsers.
- *
- * @animations
- * enter - animation is used to bring new content into the browser.
- * leave - animation is used to animate existing content away.
- *
- * The enter and leave animation occur concurrently.
- *
- * @scope
- * @priority 400
- *
- * @param {string} ngInclude|src angular expression evaluating to URL. If the source is a string constant,
- * make sure you wrap it in **single** quotes, e.g. `src="'myPartialTemplate.html'"`.
- * @param {string=} onload Expression to evaluate when a new partial is loaded.
- * <div class="alert alert-warning">
- * **Note:** When using onload on SVG elements in IE11, the browser will try to call
- * a function with the name on the window element, which will usually throw a
- * "function is undefined" error. To fix this, you can instead use `data-onload` or a
- * different form that {@link guide/directive#normalization matches} `onload`.
- * </div>
- *
- * @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll
- * $anchorScroll} to scroll the viewport after the content is loaded.
- *
- * - If the attribute is not set, disable scrolling.
- * - If the attribute is set without value, enable scrolling.
- * - Otherwise enable scrolling only if the expression evaluates to truthy value.
- *
- * @example
- <example module="includeExample" deps="angular-animate.js" animations="true">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <select ng-model="template" ng-options="t.name for t in templates">
- <option value="">(blank)</option>
- </select>
- url of the template: <code>{{template.url}}</code>
- <hr/>
- <div class="slide-animate-container">
- <div class="slide-animate" ng-include="template.url"></div>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('includeExample', ['ngAnimate'])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.templates =
- [ { name: 'template1.html', url: 'template1.html'},
- { name: 'template2.html', url: 'template2.html'} ];
- $scope.template = $scope.templates[0];
- }]);
- </file>
- <file name="template1.html">
- Content of template1.html
- </file>
- <file name="template2.html">
- Content of template2.html
- </file>
- <file name="animations.css">
- .slide-animate-container {
- position:relative;
- background:white;
- border:1px solid black;
- height:40px;
- overflow:hidden;
- }
-
- .slide-animate {
- padding:10px;
- }
-
- .slide-animate.ng-enter, .slide-animate.ng-leave {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-
- position:absolute;
- top:0;
- left:0;
- right:0;
- bottom:0;
- display:block;
- padding:10px;
- }
-
- .slide-animate.ng-enter {
- top:-50px;
- }
- .slide-animate.ng-enter.ng-enter-active {
- top:0;
- }
-
- .slide-animate.ng-leave {
- top:0;
- }
- .slide-animate.ng-leave.ng-leave-active {
- top:50px;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var templateSelect = element(by.model('template'));
- var includeElem = element(by.css('[ng-include]'));
-
- it('should load template1.html', function() {
- expect(includeElem.getText()).toMatch(/Content of template1.html/);
- });
-
- it('should load template2.html', function() {
- if (browser.params.browser == 'firefox') {
- // Firefox can't handle using selects
- // See https://github.com/angular/protractor/issues/480
- return;
- }
- templateSelect.click();
- templateSelect.all(by.css('option')).get(2).click();
- expect(includeElem.getText()).toMatch(/Content of template2.html/);
- });
-
- it('should change to blank', function() {
- if (browser.params.browser == 'firefox') {
- // Firefox can't handle using selects
- return;
- }
- templateSelect.click();
- templateSelect.all(by.css('option')).get(0).click();
- expect(includeElem.isPresent()).toBe(false);
- });
- </file>
- </example>
- */
-
-
-/**
- * @ngdoc event
- * @name ngInclude#$includeContentRequested
- * @eventType emit on the scope ngInclude was declared in
- * @description
- * Emitted every time the ngInclude content is requested.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {String} src URL of content to load.
- */
-
-
-/**
- * @ngdoc event
- * @name ngInclude#$includeContentLoaded
- * @eventType emit on the current ngInclude scope
- * @description
- * Emitted every time the ngInclude content is reloaded.
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {String} src URL of content to load.
- */
-
-
-/**
- * @ngdoc event
- * @name ngInclude#$includeContentError
- * @eventType emit on the scope ngInclude was declared in
- * @description
- * Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299)
- *
- * @param {Object} angularEvent Synthetic event object.
- * @param {String} src URL of content to load.
- */
-var ngIncludeDirective = ['$templateRequest', '$anchorScroll', '$animate',
- function($templateRequest, $anchorScroll, $animate) {
- return {
- restrict: 'ECA',
- priority: 400,
- terminal: true,
- transclude: 'element',
- controller: angular.noop,
- compile: function(element, attr) {
- var srcExp = attr.ngInclude || attr.src,
- onloadExp = attr.onload || '',
- autoScrollExp = attr.autoscroll;
-
- return function(scope, $element, $attr, ctrl, $transclude) {
- var changeCounter = 0,
- currentScope,
- previousElement,
- currentElement;
-
- var cleanupLastIncludeContent = function() {
- if (previousElement) {
- previousElement.remove();
- previousElement = null;
- }
- if (currentScope) {
- currentScope.$destroy();
- currentScope = null;
- }
- if (currentElement) {
- $animate.leave(currentElement).then(function() {
- previousElement = null;
- });
- previousElement = currentElement;
- currentElement = null;
- }
- };
-
- scope.$watch(srcExp, function ngIncludeWatchAction(src) {
- var afterAnimation = function() {
- if (isDefined(autoScrollExp) && (!autoScrollExp || scope.$eval(autoScrollExp))) {
- $anchorScroll();
- }
- };
- var thisChangeId = ++changeCounter;
-
- if (src) {
- //set the 2nd param to true to ignore the template request error so that the inner
- //contents and scope can be cleaned up.
- $templateRequest(src, true).then(function(response) {
- if (scope.$$destroyed) return;
-
- if (thisChangeId !== changeCounter) return;
- var newScope = scope.$new();
- ctrl.template = response;
-
- // Note: This will also link all children of ng-include that were contained in the original
- // html. If that content contains controllers, ... they could pollute/change the scope.
- // However, using ng-include on an element with additional content does not make sense...
- // Note: We can't remove them in the cloneAttchFn of $transclude as that
- // function is called before linking the content, which would apply child
- // directives to non existing elements.
- var clone = $transclude(newScope, function(clone) {
- cleanupLastIncludeContent();
- $animate.enter(clone, null, $element).then(afterAnimation);
- });
-
- currentScope = newScope;
- currentElement = clone;
-
- currentScope.$emit('$includeContentLoaded', src);
- scope.$eval(onloadExp);
- }, function() {
- if (scope.$$destroyed) return;
-
- if (thisChangeId === changeCounter) {
- cleanupLastIncludeContent();
- scope.$emit('$includeContentError', src);
- }
- });
- scope.$emit('$includeContentRequested', src);
- } else {
- cleanupLastIncludeContent();
- ctrl.template = null;
- }
- });
- };
- }
- };
-}];
-
-// This directive is called during the $transclude call of the first `ngInclude` directive.
-// It will replace and compile the content of the element with the loaded template.
-// We need this directive so that the element content is already filled when
-// the link function of another directive on the same element as ngInclude
-// is called.
-var ngIncludeFillContentDirective = ['$compile',
- function($compile) {
- return {
- restrict: 'ECA',
- priority: -400,
- require: 'ngInclude',
- link: function(scope, $element, $attr, ctrl) {
- if (toString.call($element[0]).match(/SVG/)) {
- // WebKit: https://bugs.webkit.org/show_bug.cgi?id=135698 --- SVG elements do not
- // support innerHTML, so detect this here and try to generate the contents
- // specially.
- $element.empty();
- $compile(jqLiteBuildFragment(ctrl.template, document).childNodes)(scope,
- function namespaceAdaptedClone(clone) {
- $element.append(clone);
- }, {futureParentElement: $element});
- return;
- }
-
- $element.html(ctrl.template);
- $compile($element.contents())(scope);
- }
- };
- }];
-
-/**
- * @ngdoc directive
- * @name ngInit
- * @restrict AC
- *
- * @description
- * The `ngInit` directive allows you to evaluate an expression in the
- * current scope.
- *
- * <div class="alert alert-danger">
- * This directive can be abused to add unnecessary amounts of logic into your templates.
- * There are only a few appropriate uses of `ngInit`, such as for aliasing special properties of
- * {@link ng.directive:ngRepeat `ngRepeat`}, as seen in the demo below; and for injecting data via
- * server side scripting. Besides these few cases, you should use {@link guide/controller controllers}
- * rather than `ngInit` to initialize values on a scope.
- * </div>
- *
- * <div class="alert alert-warning">
- * **Note**: If you have assignment in `ngInit` along with a {@link ng.$filter `filter`}, make
- * sure you have parentheses to ensure correct operator precedence:
- * <pre class="prettyprint">
- * `<div ng-init="test1 = ($index | toString)"></div>`
- * </pre>
- * </div>
- *
- * @priority 450
- *
- * @element ANY
- * @param {expression} ngInit {@link guide/expression Expression} to eval.
- *
- * @example
- <example module="initExample">
- <file name="index.html">
- <script>
- angular.module('initExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.list = [['a', 'b'], ['c', 'd']];
- }]);
- </script>
- <div ng-controller="ExampleController">
- <div ng-repeat="innerList in list" ng-init="outerIndex = $index">
- <div ng-repeat="value in innerList" ng-init="innerIndex = $index">
- <span class="example-init">list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};</span>
- </div>
- </div>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should alias index positions', function() {
- var elements = element.all(by.css('.example-init'));
- expect(elements.get(0).getText()).toBe('list[ 0 ][ 0 ] = a;');
- expect(elements.get(1).getText()).toBe('list[ 0 ][ 1 ] = b;');
- expect(elements.get(2).getText()).toBe('list[ 1 ][ 0 ] = c;');
- expect(elements.get(3).getText()).toBe('list[ 1 ][ 1 ] = d;');
- });
- </file>
- </example>
- */
-var ngInitDirective = ngDirective({
- priority: 450,
- compile: function() {
- return {
- pre: function(scope, element, attrs) {
- scope.$eval(attrs.ngInit);
- }
- };
- }
-});
-
-/**
- * @ngdoc directive
- * @name ngList
- *
- * @description
- * Text input that converts between a delimited string and an array of strings. The default
- * delimiter is a comma followed by a space - equivalent to `ng-list=", "`. You can specify a custom
- * delimiter as the value of the `ngList` attribute - for example, `ng-list=" | "`.
- *
- * The behaviour of the directive is affected by the use of the `ngTrim` attribute.
- * * If `ngTrim` is set to `"false"` then whitespace around both the separator and each
- * list item is respected. This implies that the user of the directive is responsible for
- * dealing with whitespace but also allows you to use whitespace as a delimiter, such as a
- * tab or newline character.
- * * Otherwise whitespace around the delimiter is ignored when splitting (although it is respected
- * when joining the list items back together) and whitespace around each list item is stripped
- * before it is added to the model.
- *
- * ### Example with Validation
- *
- * <example name="ngList-directive" module="listExample">
- * <file name="app.js">
- * angular.module('listExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.names = ['morpheus', 'neo', 'trinity'];
- * }]);
- * </file>
- * <file name="index.html">
- * <form name="myForm" ng-controller="ExampleController">
- * <label>List: <input name="namesInput" ng-model="names" ng-list required></label>
- * <span role="alert">
- * <span class="error" ng-show="myForm.namesInput.$error.required">
- * Required!</span>
- * </span>
- * <br>
- * <tt>names = {{names}}</tt><br/>
- * <tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>
- * <tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>
- * <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
- * <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
- * </form>
- * </file>
- * <file name="protractor.js" type="protractor">
- * var listInput = element(by.model('names'));
- * var names = element(by.exactBinding('names'));
- * var valid = element(by.binding('myForm.namesInput.$valid'));
- * var error = element(by.css('span.error'));
- *
- * it('should initialize to model', function() {
- * expect(names.getText()).toContain('["morpheus","neo","trinity"]');
- * expect(valid.getText()).toContain('true');
- * expect(error.getCssValue('display')).toBe('none');
- * });
- *
- * it('should be invalid if empty', function() {
- * listInput.clear();
- * listInput.sendKeys('');
- *
- * expect(names.getText()).toContain('');
- * expect(valid.getText()).toContain('false');
- * expect(error.getCssValue('display')).not.toBe('none');
- * });
- * </file>
- * </example>
- *
- * ### Example - splitting on newline
- * <example name="ngList-directive-newlines">
- * <file name="index.html">
- * <textarea ng-model="list" ng-list="&#10;" ng-trim="false"></textarea>
- * <pre>{{ list | json }}</pre>
- * </file>
- * <file name="protractor.js" type="protractor">
- * it("should split the text by newlines", function() {
- * var listInput = element(by.model('list'));
- * var output = element(by.binding('list | json'));
- * listInput.sendKeys('abc\ndef\nghi');
- * expect(output.getText()).toContain('[\n "abc",\n "def",\n "ghi"\n]');
- * });
- * </file>
- * </example>
- *
- * @element input
- * @param {string=} ngList optional delimiter that should be used to split the value.
- */
-var ngListDirective = function() {
- return {
- restrict: 'A',
- priority: 100,
- require: 'ngModel',
- link: function(scope, element, attr, ctrl) {
- // We want to control whitespace trimming so we use this convoluted approach
- // to access the ngList attribute, which doesn't pre-trim the attribute
- var ngList = element.attr(attr.$attr.ngList) || ', ';
- var trimValues = attr.ngTrim !== 'false';
- var separator = trimValues ? trim(ngList) : ngList;
-
- var parse = function(viewValue) {
- // If the viewValue is invalid (say required but empty) it will be `undefined`
- if (isUndefined(viewValue)) return;
-
- var list = [];
-
- if (viewValue) {
- forEach(viewValue.split(separator), function(value) {
- if (value) list.push(trimValues ? trim(value) : value);
- });
- }
-
- return list;
- };
-
- ctrl.$parsers.push(parse);
- ctrl.$formatters.push(function(value) {
- if (isArray(value)) {
- return value.join(ngList);
- }
-
- return undefined;
- });
-
- // Override the standard $isEmpty because an empty array means the input is empty.
- ctrl.$isEmpty = function(value) {
- return !value || !value.length;
- };
- }
- };
-};
-
-/* global VALID_CLASS: true,
- INVALID_CLASS: true,
- PRISTINE_CLASS: true,
- DIRTY_CLASS: true,
- UNTOUCHED_CLASS: true,
- TOUCHED_CLASS: true,
-*/
-
-var VALID_CLASS = 'ng-valid',
- INVALID_CLASS = 'ng-invalid',
- PRISTINE_CLASS = 'ng-pristine',
- DIRTY_CLASS = 'ng-dirty',
- UNTOUCHED_CLASS = 'ng-untouched',
- TOUCHED_CLASS = 'ng-touched',
- PENDING_CLASS = 'ng-pending',
- EMPTY_CLASS = 'ng-empty',
- NOT_EMPTY_CLASS = 'ng-not-empty';
-
-var ngModelMinErr = minErr('ngModel');
-
-/**
- * @ngdoc type
- * @name ngModel.NgModelController
- *
- * @property {*} $viewValue The actual value from the control's view. For `input` elements, this is a
- * String. See {@link ngModel.NgModelController#$setViewValue} for information about when the $viewValue
- * is set.
- * @property {*} $modelValue The value in the model that the control is bound to.
- * @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever
- the control reads value from the DOM. The functions are called in array order, each passing
- its return value through to the next. The last return value is forwarded to the
- {@link ngModel.NgModelController#$validators `$validators`} collection.
-
-Parsers are used to sanitize / convert the {@link ngModel.NgModelController#$viewValue
-`$viewValue`}.
-
-Returning `undefined` from a parser means a parse error occurred. In that case,
-no {@link ngModel.NgModelController#$validators `$validators`} will run and the `ngModel`
-will be set to `undefined` unless {@link ngModelOptions `ngModelOptions.allowInvalid`}
-is set to `true`. The parse error is stored in `ngModel.$error.parse`.
-
- *
- * @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever
- the model value changes. The functions are called in reverse array order, each passing the value through to the
- next. The last return value is used as the actual DOM value.
- Used to format / convert values for display in the control.
- * ```js
- * function formatter(value) {
- * if (value) {
- * return value.toUpperCase();
- * }
- * }
- * ngModel.$formatters.push(formatter);
- * ```
- *
- * @property {Object.<string, function>} $validators A collection of validators that are applied
- * whenever the model value changes. The key value within the object refers to the name of the
- * validator while the function refers to the validation operation. The validation operation is
- * provided with the model value as an argument and must return a true or false value depending
- * on the response of that validation.
- *
- * ```js
- * ngModel.$validators.validCharacters = function(modelValue, viewValue) {
- * var value = modelValue || viewValue;
- * return /[0-9]+/.test(value) &&
- * /[a-z]+/.test(value) &&
- * /[A-Z]+/.test(value) &&
- * /\W+/.test(value);
- * };
- * ```
- *
- * @property {Object.<string, function>} $asyncValidators A collection of validations that are expected to
- * perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided
- * is expected to return a promise when it is run during the model validation process. Once the promise
- * is delivered then the validation status will be set to true when fulfilled and false when rejected.
- * When the asynchronous validators are triggered, each of the validators will run in parallel and the model
- * value will only be updated once all validators have been fulfilled. As long as an asynchronous validator
- * is unfulfilled, its key will be added to the controllers `$pending` property. Also, all asynchronous validators
- * will only run once all synchronous validators have passed.
- *
- * Please note that if $http is used then it is important that the server returns a success HTTP response code
- * in order to fulfill the validation and a status level of `4xx` in order to reject the validation.
- *
- * ```js
- * ngModel.$asyncValidators.uniqueUsername = function(modelValue, viewValue) {
- * var value = modelValue || viewValue;
- *
- * // Lookup user by username
- * return $http.get('/api/users/' + value).
- * then(function resolved() {
- * //username exists, this means validation fails
- * return $q.reject('exists');
- * }, function rejected() {
- * //username does not exist, therefore this validation passes
- * return true;
- * });
- * };
- * ```
- *
- * @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the
- * view value has changed. It is called with no arguments, and its return value is ignored.
- * This can be used in place of additional $watches against the model value.
- *
- * @property {Object} $error An object hash with all failing validator ids as keys.
- * @property {Object} $pending An object hash with all pending validator ids as keys.
- *
- * @property {boolean} $untouched True if control has not lost focus yet.
- * @property {boolean} $touched True if control has lost focus.
- * @property {boolean} $pristine True if user has not interacted with the control yet.
- * @property {boolean} $dirty True if user has already interacted with the control.
- * @property {boolean} $valid True if there is no error.
- * @property {boolean} $invalid True if at least one error on the control.
- * @property {string} $name The name attribute of the control.
- *
- * @description
- *
- * `NgModelController` provides API for the {@link ngModel `ngModel`} directive.
- * The controller contains services for data-binding, validation, CSS updates, and value formatting
- * and parsing. It purposefully does not contain any logic which deals with DOM rendering or
- * listening to DOM events.
- * Such DOM related logic should be provided by other directives which make use of
- * `NgModelController` for data-binding to control elements.
- * Angular provides this DOM logic for most {@link input `input`} elements.
- * At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example
- * custom control example} that uses `ngModelController` to bind to `contenteditable` elements.
- *
- * @example
- * ### Custom Control Example
- * This example shows how to use `NgModelController` with a custom control to achieve
- * data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)
- * collaborate together to achieve the desired result.
- *
- * `contenteditable` is an HTML5 attribute, which tells the browser to let the element
- * contents be edited in place by the user.
- *
- * We are using the {@link ng.service:$sce $sce} service here and include the {@link ngSanitize $sanitize}
- * module to automatically remove "bad" content like inline event listener (e.g. `<span onclick="...">`).
- * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks
- * that content using the `$sce` service.
- *
- * <example name="NgModelController" module="customControl" deps="angular-sanitize.js">
- <file name="style.css">
- [contenteditable] {
- border: 1px solid black;
- background-color: white;
- min-height: 20px;
- }
-
- .ng-invalid {
- border: 1px solid red;
- }
-
- </file>
- <file name="script.js">
- angular.module('customControl', ['ngSanitize']).
- directive('contenteditable', ['$sce', function($sce) {
- return {
- restrict: 'A', // only activate on element attribute
- require: '?ngModel', // get a hold of NgModelController
- link: function(scope, element, attrs, ngModel) {
- if (!ngModel) return; // do nothing if no ng-model
-
- // Specify how UI should be updated
- ngModel.$render = function() {
- element.html($sce.getTrustedHtml(ngModel.$viewValue || ''));
- };
-
- // Listen for change events to enable binding
- element.on('blur keyup change', function() {
- scope.$evalAsync(read);
- });
- read(); // initialize
-
- // Write data to the model
- function read() {
- var html = element.html();
- // When we clear the content editable the browser leaves a <br> behind
- // If strip-br attribute is provided then we strip this out
- if ( attrs.stripBr && html == '<br>' ) {
- html = '';
- }
- ngModel.$setViewValue(html);
- }
- }
- };
- }]);
- </file>
- <file name="index.html">
- <form name="myForm">
- <div contenteditable
- name="myWidget" ng-model="userContent"
- strip-br="true"
- required>Change me!</div>
- <span ng-show="myForm.myWidget.$error.required">Required!</span>
- <hr>
- <textarea ng-model="userContent" aria-label="Dynamic textarea"></textarea>
- </form>
- </file>
- <file name="protractor.js" type="protractor">
- it('should data-bind and become invalid', function() {
- if (browser.params.browser == 'safari' || browser.params.browser == 'firefox') {
- // SafariDriver can't handle contenteditable
- // and Firefox driver can't clear contenteditables very well
- return;
- }
- var contentEditable = element(by.css('[contenteditable]'));
- var content = 'Change me!';
-
- expect(contentEditable.getText()).toEqual(content);
-
- contentEditable.clear();
- contentEditable.sendKeys(protractor.Key.BACK_SPACE);
- expect(contentEditable.getText()).toEqual('');
- expect(contentEditable.getAttribute('class')).toMatch(/ng-invalid-required/);
- });
- </file>
- * </example>
- *
- *
- */
-var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$parse', '$animate', '$timeout', '$rootScope', '$q', '$interpolate',
- function($scope, $exceptionHandler, $attr, $element, $parse, $animate, $timeout, $rootScope, $q, $interpolate) {
- this.$viewValue = Number.NaN;
- this.$modelValue = Number.NaN;
- this.$$rawModelValue = undefined; // stores the parsed modelValue / model set from scope regardless of validity.
- this.$validators = {};
- this.$asyncValidators = {};
- this.$parsers = [];
- this.$formatters = [];
- this.$viewChangeListeners = [];
- this.$untouched = true;
- this.$touched = false;
- this.$pristine = true;
- this.$dirty = false;
- this.$valid = true;
- this.$invalid = false;
- this.$error = {}; // keep invalid keys here
- this.$$success = {}; // keep valid keys here
- this.$pending = undefined; // keep pending keys here
- this.$name = $interpolate($attr.name || '', false)($scope);
- this.$$parentForm = nullFormCtrl;
-
- var parsedNgModel = $parse($attr.ngModel),
- parsedNgModelAssign = parsedNgModel.assign,
- ngModelGet = parsedNgModel,
- ngModelSet = parsedNgModelAssign,
- pendingDebounce = null,
- parserValid,
- ctrl = this;
-
- this.$$setOptions = function(options) {
- ctrl.$options = options;
- if (options && options.getterSetter) {
- var invokeModelGetter = $parse($attr.ngModel + '()'),
- invokeModelSetter = $parse($attr.ngModel + '($$$p)');
-
- ngModelGet = function($scope) {
- var modelValue = parsedNgModel($scope);
- if (isFunction(modelValue)) {
- modelValue = invokeModelGetter($scope);
- }
- return modelValue;
- };
- ngModelSet = function($scope, newValue) {
- if (isFunction(parsedNgModel($scope))) {
- invokeModelSetter($scope, {$$$p: ctrl.$modelValue});
- } else {
- parsedNgModelAssign($scope, ctrl.$modelValue);
- }
- };
- } else if (!parsedNgModel.assign) {
- throw ngModelMinErr('nonassign', "Expression '{0}' is non-assignable. Element: {1}",
- $attr.ngModel, startingTag($element));
- }
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$render
- *
- * @description
- * Called when the view needs to be updated. It is expected that the user of the ng-model
- * directive will implement this method.
- *
- * The `$render()` method is invoked in the following situations:
- *
- * * `$rollbackViewValue()` is called. If we are rolling back the view value to the last
- * committed value then `$render()` is called to update the input control.
- * * The value referenced by `ng-model` is changed programmatically and both the `$modelValue` and
- * the `$viewValue` are different from last time.
- *
- * Since `ng-model` does not do a deep watch, `$render()` is only invoked if the values of
- * `$modelValue` and `$viewValue` are actually different from their previous value. If `$modelValue`
- * or `$viewValue` are objects (rather than a string or number) then `$render()` will not be
- * invoked if you only change a property on the objects.
- */
- this.$render = noop;
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$isEmpty
- *
- * @description
- * This is called when we need to determine if the value of an input is empty.
- *
- * For instance, the required directive does this to work out if the input has data or not.
- *
- * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`.
- *
- * You can override this for input directives whose concept of being empty is different from the
- * default. The `checkboxInputType` directive does this because in its case a value of `false`
- * implies empty.
- *
- * @param {*} value The value of the input to check for emptiness.
- * @returns {boolean} True if `value` is "empty".
- */
- this.$isEmpty = function(value) {
- return isUndefined(value) || value === '' || value === null || value !== value;
- };
-
- this.$$updateEmptyClasses = function(value) {
- if (ctrl.$isEmpty(value)) {
- $animate.removeClass($element, NOT_EMPTY_CLASS);
- $animate.addClass($element, EMPTY_CLASS);
- } else {
- $animate.removeClass($element, EMPTY_CLASS);
- $animate.addClass($element, NOT_EMPTY_CLASS);
- }
- };
-
-
- var currentValidationRunId = 0;
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setValidity
- *
- * @description
- * Change the validity state, and notify the form.
- *
- * This method can be called within $parsers/$formatters or a custom validation implementation.
- * However, in most cases it should be sufficient to use the `ngModel.$validators` and
- * `ngModel.$asyncValidators` collections which will call `$setValidity` automatically.
- *
- * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be assigned
- * to either `$error[validationErrorKey]` or `$pending[validationErrorKey]`
- * (for unfulfilled `$asyncValidators`), so that it is available for data-binding.
- * The `validationErrorKey` should be in camelCase and will get converted into dash-case
- * for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`
- * class and can be bound to as `{{someForm.someControl.$error.myError}}` .
- * @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending (undefined),
- * or skipped (null). Pending is used for unfulfilled `$asyncValidators`.
- * Skipped is used by Angular when validators do not run because of parse errors and
- * when `$asyncValidators` do not run because any of the `$validators` failed.
- */
- addSetValidityMethod({
- ctrl: this,
- $element: $element,
- set: function(object, property) {
- object[property] = true;
- },
- unset: function(object, property) {
- delete object[property];
- },
- $animate: $animate
- });
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setPristine
- *
- * @description
- * Sets the control to its pristine state.
- *
- * This method can be called to remove the `ng-dirty` class and set the control to its pristine
- * state (`ng-pristine` class). A model is considered to be pristine when the control
- * has not been changed from when first compiled.
- */
- this.$setPristine = function() {
- ctrl.$dirty = false;
- ctrl.$pristine = true;
- $animate.removeClass($element, DIRTY_CLASS);
- $animate.addClass($element, PRISTINE_CLASS);
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setDirty
- *
- * @description
- * Sets the control to its dirty state.
- *
- * This method can be called to remove the `ng-pristine` class and set the control to its dirty
- * state (`ng-dirty` class). A model is considered to be dirty when the control has been changed
- * from when first compiled.
- */
- this.$setDirty = function() {
- ctrl.$dirty = true;
- ctrl.$pristine = false;
- $animate.removeClass($element, PRISTINE_CLASS);
- $animate.addClass($element, DIRTY_CLASS);
- ctrl.$$parentForm.$setDirty();
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setUntouched
- *
- * @description
- * Sets the control to its untouched state.
- *
- * This method can be called to remove the `ng-touched` class and set the control to its
- * untouched state (`ng-untouched` class). Upon compilation, a model is set as untouched
- * by default, however this function can be used to restore that state if the model has
- * already been touched by the user.
- */
- this.$setUntouched = function() {
- ctrl.$touched = false;
- ctrl.$untouched = true;
- $animate.setClass($element, UNTOUCHED_CLASS, TOUCHED_CLASS);
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setTouched
- *
- * @description
- * Sets the control to its touched state.
- *
- * This method can be called to remove the `ng-untouched` class and set the control to its
- * touched state (`ng-touched` class). A model is considered to be touched when the user has
- * first focused the control element and then shifted focus away from the control (blur event).
- */
- this.$setTouched = function() {
- ctrl.$touched = true;
- ctrl.$untouched = false;
- $animate.setClass($element, TOUCHED_CLASS, UNTOUCHED_CLASS);
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$rollbackViewValue
- *
- * @description
- * Cancel an update and reset the input element's value to prevent an update to the `$modelValue`,
- * which may be caused by a pending debounced event or because the input is waiting for a some
- * future event.
- *
- * If you have an input that uses `ng-model-options` to set up debounced updates or updates that
- * depend on special events such as blur, you can have a situation where there is a period when
- * the `$viewValue` is out of sync with the ngModel's `$modelValue`.
- *
- * In this case, you can use `$rollbackViewValue()` to manually cancel the debounced / future update
- * and reset the input to the last committed view value.
- *
- * It is also possible that you run into difficulties if you try to update the ngModel's `$modelValue`
- * programmatically before these debounced/future events have resolved/occurred, because Angular's
- * dirty checking mechanism is not able to tell whether the model has actually changed or not.
- *
- * The `$rollbackViewValue()` method should be called before programmatically changing the model of an
- * input which may have such events pending. This is important in order to make sure that the
- * input field will be updated with the new model value and any pending operations are cancelled.
- *
- * <example name="ng-model-cancel-update" module="cancel-update-example">
- * <file name="app.js">
- * angular.module('cancel-update-example', [])
- *
- * .controller('CancelUpdateController', ['$scope', function($scope) {
- * $scope.model = {};
- *
- * $scope.setEmpty = function(e, value, rollback) {
- * if (e.keyCode == 27) {
- * e.preventDefault();
- * if (rollback) {
- * $scope.myForm[value].$rollbackViewValue();
- * }
- * $scope.model[value] = '';
- * }
- * };
- * }]);
- * </file>
- * <file name="index.html">
- * <div ng-controller="CancelUpdateController">
- * <p>Both of these inputs are only updated if they are blurred. Hitting escape should
- * empty them. Follow these steps and observe the difference:</p>
- * <ol>
- * <li>Type something in the input. You will see that the model is not yet updated</li>
- * <li>Press the Escape key.
- * <ol>
- * <li> In the first example, nothing happens, because the model is already '', and no
- * update is detected. If you blur the input, the model will be set to the current view.
- * </li>
- * <li> In the second example, the pending update is cancelled, and the input is set back
- * to the last committed view value (''). Blurring the input does nothing.
- * </li>
- * </ol>
- * </li>
- * </ol>
- *
- * <form name="myForm" ng-model-options="{ updateOn: 'blur' }">
- * <div>
- * <p id="inputDescription1">Without $rollbackViewValue():</p>
- * <input name="value1" aria-describedby="inputDescription1" ng-model="model.value1"
- * ng-keydown="setEmpty($event, 'value1')">
- * value1: "{{ model.value1 }}"
- * </div>
- *
- * <div>
- * <p id="inputDescription2">With $rollbackViewValue():</p>
- * <input name="value2" aria-describedby="inputDescription2" ng-model="model.value2"
- * ng-keydown="setEmpty($event, 'value2', true)">
- * value2: "{{ model.value2 }}"
- * </div>
- * </form>
- * </div>
- * </file>
- <file name="style.css">
- div {
- display: table-cell;
- }
- div:nth-child(1) {
- padding-right: 30px;
- }
-
- </file>
- * </example>
- */
- this.$rollbackViewValue = function() {
- $timeout.cancel(pendingDebounce);
- ctrl.$viewValue = ctrl.$$lastCommittedViewValue;
- ctrl.$render();
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$validate
- *
- * @description
- * Runs each of the registered validators (first synchronous validators and then
- * asynchronous validators).
- * If the validity changes to invalid, the model will be set to `undefined`,
- * unless {@link ngModelOptions `ngModelOptions.allowInvalid`} is `true`.
- * If the validity changes to valid, it will set the model to the last available valid
- * `$modelValue`, i.e. either the last parsed value or the last value set from the scope.
- */
- this.$validate = function() {
- // ignore $validate before model is initialized
- if (isNumber(ctrl.$modelValue) && isNaN(ctrl.$modelValue)) {
- return;
- }
-
- var viewValue = ctrl.$$lastCommittedViewValue;
- // Note: we use the $$rawModelValue as $modelValue might have been
- // set to undefined during a view -> model update that found validation
- // errors. We can't parse the view here, since that could change
- // the model although neither viewValue nor the model on the scope changed
- var modelValue = ctrl.$$rawModelValue;
-
- var prevValid = ctrl.$valid;
- var prevModelValue = ctrl.$modelValue;
-
- var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;
-
- ctrl.$$runValidators(modelValue, viewValue, function(allValid) {
- // If there was no change in validity, don't update the model
- // This prevents changing an invalid modelValue to undefined
- if (!allowInvalid && prevValid !== allValid) {
- // Note: Don't check ctrl.$valid here, as we could have
- // external validators (e.g. calculated on the server),
- // that just call $setValidity and need the model value
- // to calculate their validity.
- ctrl.$modelValue = allValid ? modelValue : undefined;
-
- if (ctrl.$modelValue !== prevModelValue) {
- ctrl.$$writeModelToScope();
- }
- }
- });
-
- };
-
- this.$$runValidators = function(modelValue, viewValue, doneCallback) {
- currentValidationRunId++;
- var localValidationRunId = currentValidationRunId;
-
- // check parser error
- if (!processParseErrors()) {
- validationDone(false);
- return;
- }
- if (!processSyncValidators()) {
- validationDone(false);
- return;
- }
- processAsyncValidators();
-
- function processParseErrors() {
- var errorKey = ctrl.$$parserName || 'parse';
- if (isUndefined(parserValid)) {
- setValidity(errorKey, null);
- } else {
- if (!parserValid) {
- forEach(ctrl.$validators, function(v, name) {
- setValidity(name, null);
- });
- forEach(ctrl.$asyncValidators, function(v, name) {
- setValidity(name, null);
- });
- }
- // Set the parse error last, to prevent unsetting it, should a $validators key == parserName
- setValidity(errorKey, parserValid);
- return parserValid;
- }
- return true;
- }
-
- function processSyncValidators() {
- var syncValidatorsValid = true;
- forEach(ctrl.$validators, function(validator, name) {
- var result = validator(modelValue, viewValue);
- syncValidatorsValid = syncValidatorsValid && result;
- setValidity(name, result);
- });
- if (!syncValidatorsValid) {
- forEach(ctrl.$asyncValidators, function(v, name) {
- setValidity(name, null);
- });
- return false;
- }
- return true;
- }
-
- function processAsyncValidators() {
- var validatorPromises = [];
- var allValid = true;
- forEach(ctrl.$asyncValidators, function(validator, name) {
- var promise = validator(modelValue, viewValue);
- if (!isPromiseLike(promise)) {
- throw ngModelMinErr('nopromise',
- "Expected asynchronous validator to return a promise but got '{0}' instead.", promise);
- }
- setValidity(name, undefined);
- validatorPromises.push(promise.then(function() {
- setValidity(name, true);
- }, function(error) {
- allValid = false;
- setValidity(name, false);
- }));
- });
- if (!validatorPromises.length) {
- validationDone(true);
- } else {
- $q.all(validatorPromises).then(function() {
- validationDone(allValid);
- }, noop);
- }
- }
-
- function setValidity(name, isValid) {
- if (localValidationRunId === currentValidationRunId) {
- ctrl.$setValidity(name, isValid);
- }
- }
-
- function validationDone(allValid) {
- if (localValidationRunId === currentValidationRunId) {
-
- doneCallback(allValid);
- }
- }
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$commitViewValue
- *
- * @description
- * Commit a pending update to the `$modelValue`.
- *
- * Updates may be pending by a debounced event or because the input is waiting for a some future
- * event defined in `ng-model-options`. this method is rarely needed as `NgModelController`
- * usually handles calling this in response to input events.
- */
- this.$commitViewValue = function() {
- var viewValue = ctrl.$viewValue;
-
- $timeout.cancel(pendingDebounce);
-
- // If the view value has not changed then we should just exit, except in the case where there is
- // a native validator on the element. In this case the validation state may have changed even though
- // the viewValue has stayed empty.
- if (ctrl.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !ctrl.$$hasNativeValidators)) {
- return;
- }
- ctrl.$$updateEmptyClasses(viewValue);
- ctrl.$$lastCommittedViewValue = viewValue;
-
- // change to dirty
- if (ctrl.$pristine) {
- this.$setDirty();
- }
- this.$$parseAndValidate();
- };
-
- this.$$parseAndValidate = function() {
- var viewValue = ctrl.$$lastCommittedViewValue;
- var modelValue = viewValue;
- parserValid = isUndefined(modelValue) ? undefined : true;
-
- if (parserValid) {
- for (var i = 0; i < ctrl.$parsers.length; i++) {
- modelValue = ctrl.$parsers[i](modelValue);
- if (isUndefined(modelValue)) {
- parserValid = false;
- break;
- }
- }
- }
- if (isNumber(ctrl.$modelValue) && isNaN(ctrl.$modelValue)) {
- // ctrl.$modelValue has not been touched yet...
- ctrl.$modelValue = ngModelGet($scope);
- }
- var prevModelValue = ctrl.$modelValue;
- var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;
- ctrl.$$rawModelValue = modelValue;
-
- if (allowInvalid) {
- ctrl.$modelValue = modelValue;
- writeToModelIfNeeded();
- }
-
- // Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.
- // This can happen if e.g. $setViewValue is called from inside a parser
- ctrl.$$runValidators(modelValue, ctrl.$$lastCommittedViewValue, function(allValid) {
- if (!allowInvalid) {
- // Note: Don't check ctrl.$valid here, as we could have
- // external validators (e.g. calculated on the server),
- // that just call $setValidity and need the model value
- // to calculate their validity.
- ctrl.$modelValue = allValid ? modelValue : undefined;
- writeToModelIfNeeded();
- }
- });
-
- function writeToModelIfNeeded() {
- if (ctrl.$modelValue !== prevModelValue) {
- ctrl.$$writeModelToScope();
- }
- }
- };
-
- this.$$writeModelToScope = function() {
- ngModelSet($scope, ctrl.$modelValue);
- forEach(ctrl.$viewChangeListeners, function(listener) {
- try {
- listener();
- } catch (e) {
- $exceptionHandler(e);
- }
- });
- };
-
- /**
- * @ngdoc method
- * @name ngModel.NgModelController#$setViewValue
- *
- * @description
- * Update the view value.
- *
- * This method should be called when a control wants to change the view value; typically,
- * this is done from within a DOM event handler. For example, the {@link ng.directive:input input}
- * directive calls it when the value of the input changes and {@link ng.directive:select select}
- * calls it when an option is selected.
- *
- * When `$setViewValue` is called, the new `value` will be staged for committing through the `$parsers`
- * and `$validators` pipelines. If there are no special {@link ngModelOptions} specified then the staged
- * value sent directly for processing, finally to be applied to `$modelValue` and then the
- * **expression** specified in the `ng-model` attribute. Lastly, all the registered change listeners,
- * in the `$viewChangeListeners` list, are called.
- *
- * In case the {@link ng.directive:ngModelOptions ngModelOptions} directive is used with `updateOn`
- * and the `default` trigger is not listed, all those actions will remain pending until one of the
- * `updateOn` events is triggered on the DOM element.
- * All these actions will be debounced if the {@link ng.directive:ngModelOptions ngModelOptions}
- * directive is used with a custom debounce for this particular event.
- * Note that a `$digest` is only triggered once the `updateOn` events are fired, or if `debounce`
- * is specified, once the timer runs out.
- *
- * When used with standard inputs, the view value will always be a string (which is in some cases
- * parsed into another type, such as a `Date` object for `input[date]`.)
- * However, custom controls might also pass objects to this method. In this case, we should make
- * a copy of the object before passing it to `$setViewValue`. This is because `ngModel` does not
- * perform a deep watch of objects, it only looks for a change of identity. If you only change
- * the property of the object then ngModel will not realize that the object has changed and
- * will not invoke the `$parsers` and `$validators` pipelines. For this reason, you should
- * not change properties of the copy once it has been passed to `$setViewValue`.
- * Otherwise you may cause the model value on the scope to change incorrectly.
- *
- * <div class="alert alert-info">
- * In any case, the value passed to the method should always reflect the current value
- * of the control. For example, if you are calling `$setViewValue` for an input element,
- * you should pass the input DOM value. Otherwise, the control and the scope model become
- * out of sync. It's also important to note that `$setViewValue` does not call `$render` or change
- * the control's DOM value in any way. If we want to change the control's DOM value
- * programmatically, we should update the `ngModel` scope expression. Its new value will be
- * picked up by the model controller, which will run it through the `$formatters`, `$render` it
- * to update the DOM, and finally call `$validate` on it.
- * </div>
- *
- * @param {*} value value from the view.
- * @param {string} trigger Event that triggered the update.
- */
- this.$setViewValue = function(value, trigger) {
- ctrl.$viewValue = value;
- if (!ctrl.$options || ctrl.$options.updateOnDefault) {
- ctrl.$$debounceViewValueCommit(trigger);
- }
- };
-
- this.$$debounceViewValueCommit = function(trigger) {
- var debounceDelay = 0,
- options = ctrl.$options,
- debounce;
-
- if (options && isDefined(options.debounce)) {
- debounce = options.debounce;
- if (isNumber(debounce)) {
- debounceDelay = debounce;
- } else if (isNumber(debounce[trigger])) {
- debounceDelay = debounce[trigger];
- } else if (isNumber(debounce['default'])) {
- debounceDelay = debounce['default'];
- }
- }
-
- $timeout.cancel(pendingDebounce);
- if (debounceDelay) {
- pendingDebounce = $timeout(function() {
- ctrl.$commitViewValue();
- }, debounceDelay);
- } else if ($rootScope.$$phase) {
- ctrl.$commitViewValue();
- } else {
- $scope.$apply(function() {
- ctrl.$commitViewValue();
- });
- }
- };
-
- // model -> value
- // Note: we cannot use a normal scope.$watch as we want to detect the following:
- // 1. scope value is 'a'
- // 2. user enters 'b'
- // 3. ng-change kicks in and reverts scope value to 'a'
- // -> scope value did not change since the last digest as
- // ng-change executes in apply phase
- // 4. view should be changed back to 'a'
- $scope.$watch(function ngModelWatch() {
- var modelValue = ngModelGet($scope);
-
- // if scope model value and ngModel value are out of sync
- // TODO(perf): why not move this to the action fn?
- if (modelValue !== ctrl.$modelValue &&
- // checks for NaN is needed to allow setting the model to NaN when there's an asyncValidator
- (ctrl.$modelValue === ctrl.$modelValue || modelValue === modelValue)
- ) {
- ctrl.$modelValue = ctrl.$$rawModelValue = modelValue;
- parserValid = undefined;
-
- var formatters = ctrl.$formatters,
- idx = formatters.length;
-
- var viewValue = modelValue;
- while (idx--) {
- viewValue = formatters[idx](viewValue);
- }
- if (ctrl.$viewValue !== viewValue) {
- ctrl.$$updateEmptyClasses(viewValue);
- ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;
- ctrl.$render();
-
- ctrl.$$runValidators(modelValue, viewValue, noop);
- }
- }
-
- return modelValue;
- });
-}];
-
-
-/**
- * @ngdoc directive
- * @name ngModel
- *
- * @element input
- * @priority 1
- *
- * @description
- * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a
- * property on the scope using {@link ngModel.NgModelController NgModelController},
- * which is created and exposed by this directive.
- *
- * `ngModel` is responsible for:
- *
- * - Binding the view into the model, which other directives such as `input`, `textarea` or `select`
- * require.
- * - Providing validation behavior (i.e. required, number, email, url).
- * - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).
- * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`,
- * `ng-untouched`, `ng-empty`, `ng-not-empty`) including animations.
- * - Registering the control with its parent {@link ng.directive:form form}.
- *
- * Note: `ngModel` will try to bind to the property given by evaluating the expression on the
- * current scope. If the property doesn't already exist on this scope, it will be created
- * implicitly and added to the scope.
- *
- * For best practices on using `ngModel`, see:
- *
- * - [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)
- *
- * For basic examples, how to use `ngModel`, see:
- *
- * - {@link ng.directive:input input}
- * - {@link input[text] text}
- * - {@link input[checkbox] checkbox}
- * - {@link input[radio] radio}
- * - {@link input[number] number}
- * - {@link input[email] email}
- * - {@link input[url] url}
- * - {@link input[date] date}
- * - {@link input[datetime-local] datetime-local}
- * - {@link input[time] time}
- * - {@link input[month] month}
- * - {@link input[week] week}
- * - {@link ng.directive:select select}
- * - {@link ng.directive:textarea textarea}
- *
- * # Complex Models (objects or collections)
- *
- * By default, `ngModel` watches the model by reference, not value. This is important to know when
- * binding inputs to models that are objects (e.g. `Date`) or collections (e.g. arrays). If only properties of the
- * object or collection change, `ngModel` will not be notified and so the input will not be re-rendered.
- *
- * The model must be assigned an entirely new object or collection before a re-rendering will occur.
- *
- * Some directives have options that will cause them to use a custom `$watchCollection` on the model expression
- * - for example, `ngOptions` will do so when a `track by` clause is included in the comprehension expression or
- * if the select is given the `multiple` attribute.
- *
- * The `$watchCollection()` method only does a shallow comparison, meaning that changing properties deeper than the
- * first level of the object (or only changing the properties of an item in the collection if it's an array) will still
- * not trigger a re-rendering of the model.
- *
- * # CSS classes
- * The following CSS classes are added and removed on the associated input/select/textarea element
- * depending on the validity of the model.
- *
- * - `ng-valid`: the model is valid
- * - `ng-invalid`: the model is invalid
- * - `ng-valid-[key]`: for each valid key added by `$setValidity`
- * - `ng-invalid-[key]`: for each invalid key added by `$setValidity`
- * - `ng-pristine`: the control hasn't been interacted with yet
- * - `ng-dirty`: the control has been interacted with
- * - `ng-touched`: the control has been blurred
- * - `ng-untouched`: the control hasn't been blurred
- * - `ng-pending`: any `$asyncValidators` are unfulfilled
- * - `ng-empty`: the view does not contain a value or the value is deemed "empty", as defined
- * by the {@link ngModel.NgModelController#$isEmpty} method
- * - `ng-not-empty`: the view contains a non-empty value
- *
- * Keep in mind that ngAnimate can detect each of these classes when added and removed.
- *
- * ## Animation Hooks
- *
- * Animations within models are triggered when any of the associated CSS classes are added and removed
- * on the input element which is attached to the model. These classes include: `.ng-pristine`, `.ng-dirty`,
- * `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.
- * The animations that are triggered within ngModel are similar to how they work in ngClass and
- * animations can be hooked into using CSS transitions, keyframes as well as JS animations.
- *
- * The following example shows a simple way to utilize CSS transitions to style an input element
- * that has been rendered as invalid after it has been validated:
- *
- * <pre>
- * //be sure to include ngAnimate as a module to hook into more
- * //advanced animations
- * .my-input {
- * transition:0.5s linear all;
- * background: white;
- * }
- * .my-input.ng-invalid {
- * background: red;
- * color:white;
- * }
- * </pre>
- *
- * @example
- * <example deps="angular-animate.js" animations="true" fixBase="true" module="inputExample">
- <file name="index.html">
- <script>
- angular.module('inputExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.val = '1';
- }]);
- </script>
- <style>
- .my-input {
- transition:all linear 0.5s;
- background: transparent;
- }
- .my-input.ng-invalid {
- color:white;
- background: red;
- }
- </style>
- <p id="inputDescription">
- Update input to see transitions when valid/invalid.
- Integer is a valid value.
- </p>
- <form name="testForm" ng-controller="ExampleController">
- <input ng-model="val" ng-pattern="/^\d+$/" name="anim" class="my-input"
- aria-describedby="inputDescription" />
- </form>
- </file>
- * </example>
- *
- * ## Binding to a getter/setter
- *
- * Sometimes it's helpful to bind `ngModel` to a getter/setter function. A getter/setter is a
- * function that returns a representation of the model when called with zero arguments, and sets
- * the internal state of a model when called with an argument. It's sometimes useful to use this
- * for models that have an internal representation that's different from what the model exposes
- * to the view.
- *
- * <div class="alert alert-success">
- * **Best Practice:** It's best to keep getters fast because Angular is likely to call them more
- * frequently than other parts of your code.
- * </div>
- *
- * You use this behavior by adding `ng-model-options="{ getterSetter: true }"` to an element that
- * has `ng-model` attached to it. You can also add `ng-model-options="{ getterSetter: true }"` to
- * a `<form>`, which will enable this behavior for all `<input>`s within it. See
- * {@link ng.directive:ngModelOptions `ngModelOptions`} for more.
- *
- * The following example shows how to use `ngModel` with a getter/setter:
- *
- * @example
- * <example name="ngModel-getter-setter" module="getterSetterExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form name="userForm">
- <label>Name:
- <input type="text" name="userName"
- ng-model="user.name"
- ng-model-options="{ getterSetter: true }" />
- </label>
- </form>
- <pre>user.name = <span ng-bind="user.name()"></span></pre>
- </div>
- </file>
- <file name="app.js">
- angular.module('getterSetterExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- var _name = 'Brian';
- $scope.user = {
- name: function(newName) {
- // Note that newName can be undefined for two reasons:
- // 1. Because it is called as a getter and thus called with no arguments
- // 2. Because the property should actually be set to undefined. This happens e.g. if the
- // input is invalid
- return arguments.length ? (_name = newName) : _name;
- }
- };
- }]);
- </file>
- * </example>
- */
-var ngModelDirective = ['$rootScope', function($rootScope) {
- return {
- restrict: 'A',
- require: ['ngModel', '^?form', '^?ngModelOptions'],
- controller: NgModelController,
- // Prelink needs to run before any input directive
- // so that we can set the NgModelOptions in NgModelController
- // before anyone else uses it.
- priority: 1,
- compile: function ngModelCompile(element) {
- // Setup initial state of the control
- element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);
-
- return {
- pre: function ngModelPreLink(scope, element, attr, ctrls) {
- var modelCtrl = ctrls[0],
- formCtrl = ctrls[1] || modelCtrl.$$parentForm;
-
- modelCtrl.$$setOptions(ctrls[2] && ctrls[2].$options);
-
- // notify others, especially parent forms
- formCtrl.$addControl(modelCtrl);
-
- attr.$observe('name', function(newValue) {
- if (modelCtrl.$name !== newValue) {
- modelCtrl.$$parentForm.$$renameControl(modelCtrl, newValue);
- }
- });
-
- scope.$on('$destroy', function() {
- modelCtrl.$$parentForm.$removeControl(modelCtrl);
- });
- },
- post: function ngModelPostLink(scope, element, attr, ctrls) {
- var modelCtrl = ctrls[0];
- if (modelCtrl.$options && modelCtrl.$options.updateOn) {
- element.on(modelCtrl.$options.updateOn, function(ev) {
- modelCtrl.$$debounceViewValueCommit(ev && ev.type);
- });
- }
-
- element.on('blur', function(ev) {
- if (modelCtrl.$touched) return;
-
- if ($rootScope.$$phase) {
- scope.$evalAsync(modelCtrl.$setTouched);
- } else {
- scope.$apply(modelCtrl.$setTouched);
- }
- });
- }
- };
- }
- };
-}];
-
-var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
-
-/**
- * @ngdoc directive
- * @name ngModelOptions
- *
- * @description
- * Allows tuning how model updates are done. Using `ngModelOptions` you can specify a custom list of
- * events that will trigger a model update and/or a debouncing delay so that the actual update only
- * takes place when a timer expires; this timer will be reset after another change takes place.
- *
- * Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might
- * be different from the value in the actual model. This means that if you update the model you
- * should also invoke {@link ngModel.NgModelController `$rollbackViewValue`} on the relevant input field in
- * order to make sure it is synchronized with the model and that any debounced action is canceled.
- *
- * The easiest way to reference the control's {@link ngModel.NgModelController `$rollbackViewValue`}
- * method is by making sure the input is placed inside a form that has a `name` attribute. This is
- * important because `form` controllers are published to the related scope under the name in their
- * `name` attribute.
- *
- * Any pending changes will take place immediately when an enclosing form is submitted via the
- * `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
- * to have access to the updated model.
- *
- * `ngModelOptions` has an effect on the element it's declared on and its descendants.
- *
- * @param {Object} ngModelOptions options to apply to the current model. Valid keys are:
- * - `updateOn`: string specifying which event should the input be bound to. You can set several
- * events using an space delimited list. There is a special event called `default` that
- * matches the default events belonging of the control.
- * - `debounce`: integer value which contains the debounce model update value in milliseconds. A
- * value of 0 triggers an immediate update. If an object is supplied instead, you can specify a
- * custom value for each event. For example:
- * `ng-model-options="{ updateOn: 'default blur', debounce: { 'default': 500, 'blur': 0 } }"`
- * - `allowInvalid`: boolean value which indicates that the model can be set with values that did
- * not validate correctly instead of the default behavior of setting the model to undefined.
- * - `getterSetter`: boolean value which determines whether or not to treat functions bound to
- `ngModel` as getters/setters.
- * - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for
- * `<input type="date">`, `<input type="time">`, ... . It understands UTC/GMT and the
- * continental US time zone abbreviations, but for general use, use a time zone offset, for
- * example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
- * If not specified, the timezone of the browser will be used.
- *
- * @example
-
- The following example shows how to override immediate updates. Changes on the inputs within the
- form will update the model only when the control loses focus (blur event). If `escape` key is
- pressed while the input field is focused, the value is reset to the value in the current model.
-
- <example name="ngModelOptions-directive-blur" module="optionsExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form name="userForm">
- <label>Name:
- <input type="text" name="userName"
- ng-model="user.name"
- ng-model-options="{ updateOn: 'blur' }"
- ng-keyup="cancel($event)" />
- </label><br />
- <label>Other data:
- <input type="text" ng-model="user.data" />
- </label><br />
- </form>
- <pre>user.name = <span ng-bind="user.name"></span></pre>
- <pre>user.data = <span ng-bind="user.data"></span></pre>
- </div>
- </file>
- <file name="app.js">
- angular.module('optionsExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.user = { name: 'John', data: '' };
-
- $scope.cancel = function(e) {
- if (e.keyCode == 27) {
- $scope.userForm.userName.$rollbackViewValue();
- }
- };
- }]);
- </file>
- <file name="protractor.js" type="protractor">
- var model = element(by.binding('user.name'));
- var input = element(by.model('user.name'));
- var other = element(by.model('user.data'));
-
- it('should allow custom events', function() {
- input.sendKeys(' Doe');
- input.click();
- expect(model.getText()).toEqual('John');
- other.click();
- expect(model.getText()).toEqual('John Doe');
- });
-
- it('should $rollbackViewValue when model changes', function() {
- input.sendKeys(' Doe');
- expect(input.getAttribute('value')).toEqual('John Doe');
- input.sendKeys(protractor.Key.ESCAPE);
- expect(input.getAttribute('value')).toEqual('John');
- other.click();
- expect(model.getText()).toEqual('John');
- });
- </file>
- </example>
-
- This one shows how to debounce model changes. Model will be updated only 1 sec after last change.
- If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.
-
- <example name="ngModelOptions-directive-debounce" module="optionsExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form name="userForm">
- <label>Name:
- <input type="text" name="userName"
- ng-model="user.name"
- ng-model-options="{ debounce: 1000 }" />
- </label>
- <button ng-click="userForm.userName.$rollbackViewValue(); user.name=''">Clear</button>
- <br />
- </form>
- <pre>user.name = <span ng-bind="user.name"></span></pre>
- </div>
- </file>
- <file name="app.js">
- angular.module('optionsExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.user = { name: 'Igor' };
- }]);
- </file>
- </example>
-
- This one shows how to bind to getter/setters:
-
- <example name="ngModelOptions-directive-getter-setter" module="getterSetterExample">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <form name="userForm">
- <label>Name:
- <input type="text" name="userName"
- ng-model="user.name"
- ng-model-options="{ getterSetter: true }" />
- </label>
- </form>
- <pre>user.name = <span ng-bind="user.name()"></span></pre>
- </div>
- </file>
- <file name="app.js">
- angular.module('getterSetterExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- var _name = 'Brian';
- $scope.user = {
- name: function(newName) {
- // Note that newName can be undefined for two reasons:
- // 1. Because it is called as a getter and thus called with no arguments
- // 2. Because the property should actually be set to undefined. This happens e.g. if the
- // input is invalid
- return arguments.length ? (_name = newName) : _name;
- }
- };
- }]);
- </file>
- </example>
- */
-var ngModelOptionsDirective = function() {
- return {
- restrict: 'A',
- controller: ['$scope', '$attrs', function($scope, $attrs) {
- var that = this;
- this.$options = copy($scope.$eval($attrs.ngModelOptions));
- // Allow adding/overriding bound events
- if (isDefined(this.$options.updateOn)) {
- this.$options.updateOnDefault = false;
- // extract "default" pseudo-event from list of events that can trigger a model update
- this.$options.updateOn = trim(this.$options.updateOn.replace(DEFAULT_REGEXP, function() {
- that.$options.updateOnDefault = true;
- return ' ';
- }));
- } else {
- this.$options.updateOnDefault = true;
- }
- }]
- };
-};
-
-
-
-// helper methods
-function addSetValidityMethod(context) {
- var ctrl = context.ctrl,
- $element = context.$element,
- classCache = {},
- set = context.set,
- unset = context.unset,
- $animate = context.$animate;
-
- classCache[INVALID_CLASS] = !(classCache[VALID_CLASS] = $element.hasClass(VALID_CLASS));
-
- ctrl.$setValidity = setValidity;
-
- function setValidity(validationErrorKey, state, controller) {
- if (isUndefined(state)) {
- createAndSet('$pending', validationErrorKey, controller);
- } else {
- unsetAndCleanup('$pending', validationErrorKey, controller);
- }
- if (!isBoolean(state)) {
- unset(ctrl.$error, validationErrorKey, controller);
- unset(ctrl.$$success, validationErrorKey, controller);
- } else {
- if (state) {
- unset(ctrl.$error, validationErrorKey, controller);
- set(ctrl.$$success, validationErrorKey, controller);
- } else {
- set(ctrl.$error, validationErrorKey, controller);
- unset(ctrl.$$success, validationErrorKey, controller);
- }
- }
- if (ctrl.$pending) {
- cachedToggleClass(PENDING_CLASS, true);
- ctrl.$valid = ctrl.$invalid = undefined;
- toggleValidationCss('', null);
- } else {
- cachedToggleClass(PENDING_CLASS, false);
- ctrl.$valid = isObjectEmpty(ctrl.$error);
- ctrl.$invalid = !ctrl.$valid;
- toggleValidationCss('', ctrl.$valid);
- }
-
- // re-read the state as the set/unset methods could have
- // combined state in ctrl.$error[validationError] (used for forms),
- // where setting/unsetting only increments/decrements the value,
- // and does not replace it.
- var combinedState;
- if (ctrl.$pending && ctrl.$pending[validationErrorKey]) {
- combinedState = undefined;
- } else if (ctrl.$error[validationErrorKey]) {
- combinedState = false;
- } else if (ctrl.$$success[validationErrorKey]) {
- combinedState = true;
- } else {
- combinedState = null;
- }
-
- toggleValidationCss(validationErrorKey, combinedState);
- ctrl.$$parentForm.$setValidity(validationErrorKey, combinedState, ctrl);
- }
-
- function createAndSet(name, value, controller) {
- if (!ctrl[name]) {
- ctrl[name] = {};
- }
- set(ctrl[name], value, controller);
- }
-
- function unsetAndCleanup(name, value, controller) {
- if (ctrl[name]) {
- unset(ctrl[name], value, controller);
- }
- if (isObjectEmpty(ctrl[name])) {
- ctrl[name] = undefined;
- }
- }
-
- function cachedToggleClass(className, switchValue) {
- if (switchValue && !classCache[className]) {
- $animate.addClass($element, className);
- classCache[className] = true;
- } else if (!switchValue && classCache[className]) {
- $animate.removeClass($element, className);
- classCache[className] = false;
- }
- }
-
- function toggleValidationCss(validationErrorKey, isValid) {
- validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
-
- cachedToggleClass(VALID_CLASS + validationErrorKey, isValid === true);
- cachedToggleClass(INVALID_CLASS + validationErrorKey, isValid === false);
- }
-}
-
-function isObjectEmpty(obj) {
- if (obj) {
- for (var prop in obj) {
- if (obj.hasOwnProperty(prop)) {
- return false;
- }
- }
- }
- return true;
-}
-
-/**
- * @ngdoc directive
- * @name ngNonBindable
- * @restrict AC
- * @priority 1000
- *
- * @description
- * The `ngNonBindable` directive tells Angular not to compile or bind the contents of the current
- * DOM element. This is useful if the element contains what appears to be Angular directives and
- * bindings but which should be ignored by Angular. This could be the case if you have a site that
- * displays snippets of code, for instance.
- *
- * @element ANY
- *
- * @example
- * In this example there are two locations where a simple interpolation binding (`{{}}`) is present,
- * but the one wrapped in `ngNonBindable` is left alone.
- *
- * @example
- <example>
- <file name="index.html">
- <div>Normal: {{1 + 2}}</div>
- <div ng-non-bindable>Ignored: {{1 + 2}}</div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-non-bindable', function() {
- expect(element(by.binding('1 + 2')).getText()).toContain('3');
- expect(element.all(by.css('div')).last().getText()).toMatch(/1 \+ 2/);
- });
- </file>
- </example>
- */
-var ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 });
-
-/* global jqLiteRemove */
-
-var ngOptionsMinErr = minErr('ngOptions');
-
-/**
- * @ngdoc directive
- * @name ngOptions
- * @restrict A
- *
- * @description
- *
- * The `ngOptions` attribute can be used to dynamically generate a list of `<option>`
- * elements for the `<select>` element using the array or object obtained by evaluating the
- * `ngOptions` comprehension expression.
- *
- * In many cases, `ngRepeat` can be used on `<option>` elements instead of `ngOptions` to achieve a
- * similar result. However, `ngOptions` provides some benefits such as reducing memory and
- * increasing speed by not creating a new scope for each repeated instance, as well as providing
- * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
- * comprehension expression. `ngOptions` should be used when the `<select>` model needs to be bound
- * to a non-string value. This is because an option element can only be bound to string values at
- * present.
- *
- * When an item in the `<select>` menu is selected, the array element or object property
- * represented by the selected option will be bound to the model identified by the `ngModel`
- * directive.
- *
- * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
- * be nested into the `<select>` element. This element will then represent the `null` or "not selected"
- * option. See example below for demonstration.
- *
- * ## Complex Models (objects or collections)
- *
- * By default, `ngModel` watches the model by reference, not value. This is important to know when
- * binding the select to a model that is an object or a collection.
- *
- * One issue occurs if you want to preselect an option. For example, if you set
- * the model to an object that is equal to an object in your collection, `ngOptions` won't be able to set the selection,
- * because the objects are not identical. So by default, you should always reference the item in your collection
- * for preselections, e.g.: `$scope.selected = $scope.collection[3]`.
- *
- * Another solution is to use a `track by` clause, because then `ngOptions` will track the identity
- * of the item not by reference, but by the result of the `track by` expression. For example, if your
- * collection items have an id property, you would `track by item.id`.
- *
- * A different issue with objects or collections is that ngModel won't detect if an object property or
- * a collection item changes. For that reason, `ngOptions` additionally watches the model using
- * `$watchCollection`, when the expression contains a `track by` clause or the the select has the `multiple` attribute.
- * This allows ngOptions to trigger a re-rendering of the options even if the actual object/collection
- * has not changed identity, but only a property on the object or an item in the collection changes.
- *
- * Note that `$watchCollection` does a shallow comparison of the properties of the object (or the items in the collection
- * if the model is an array). This means that changing a property deeper than the first level inside the
- * object/collection will not trigger a re-rendering.
- *
- * ## `select` **`as`**
- *
- * Using `select` **`as`** will bind the result of the `select` expression to the model, but
- * the value of the `<select>` and `<option>` html elements will be either the index (for array data sources)
- * or property name (for object data sources) of the value within the collection. If a **`track by`** expression
- * is used, the result of that expression will be set as the value of the `option` and `select` elements.
- *
- *
- * ### `select` **`as`** and **`track by`**
- *
- * <div class="alert alert-warning">
- * Be careful when using `select` **`as`** and **`track by`** in the same expression.
- * </div>
- *
- * Given this array of items on the $scope:
- *
- * ```js
- * $scope.items = [{
- * id: 1,
- * label: 'aLabel',
- * subItem: { name: 'aSubItem' }
- * }, {
- * id: 2,
- * label: 'bLabel',
- * subItem: { name: 'bSubItem' }
- * }];
- * ```
- *
- * This will work:
- *
- * ```html
- * <select ng-options="item as item.label for item in items track by item.id" ng-model="selected"></select>
- * ```
- * ```js
- * $scope.selected = $scope.items[0];
- * ```
- *
- * but this will not work:
- *
- * ```html
- * <select ng-options="item.subItem as item.label for item in items track by item.id" ng-model="selected"></select>
- * ```
- * ```js
- * $scope.selected = $scope.items[0].subItem;
- * ```
- *
- * In both examples, the **`track by`** expression is applied successfully to each `item` in the
- * `items` array. Because the selected option has been set programmatically in the controller, the
- * **`track by`** expression is also applied to the `ngModel` value. In the first example, the
- * `ngModel` value is `items[0]` and the **`track by`** expression evaluates to `items[0].id` with
- * no issue. In the second example, the `ngModel` value is `items[0].subItem` and the **`track by`**
- * expression evaluates to `items[0].subItem.id` (which is undefined). As a result, the model value
- * is not matched against any `<option>` and the `<select>` appears as having no selected value.
- *
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} required The control is considered valid only if value is entered.
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
- * `required` when you want to data-bind to the `required` attribute.
- * @param {comprehension_expression=} ngOptions in one of the following forms:
- *
- * * for array data sources:
- * * `label` **`for`** `value` **`in`** `array`
- * * `select` **`as`** `label` **`for`** `value` **`in`** `array`
- * * `label` **`group by`** `group` **`for`** `value` **`in`** `array`
- * * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array`
- * * `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
- * * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
- * * `label` **`for`** `value` **`in`** `array` | orderBy:`orderexpr` **`track by`** `trackexpr`
- * (for including a filter with `track by`)
- * * for object data sources:
- * * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
- * * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
- * * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`
- * * `label` **`disable when`** `disable` **`for (`**`key`**`,`** `value`**`) in`** `object`
- * * `select` **`as`** `label` **`group by`** `group`
- * **`for` `(`**`key`**`,`** `value`**`) in`** `object`
- * * `select` **`as`** `label` **`disable when`** `disable`
- * **`for` `(`**`key`**`,`** `value`**`) in`** `object`
- *
- * Where:
- *
- * * `array` / `object`: an expression which evaluates to an array / object to iterate over.
- * * `value`: local variable which will refer to each item in the `array` or each property value
- * of `object` during iteration.
- * * `key`: local variable which will refer to a property name in `object` during iteration.
- * * `label`: The result of this expression will be the label for `<option>` element. The
- * `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).
- * * `select`: The result of this expression will be bound to the model of the parent `<select>`
- * element. If not specified, `select` expression will default to `value`.
- * * `group`: The result of this expression will be used to group options using the `<optgroup>`
- * DOM element.
- * * `disable`: The result of this expression will be used to disable the rendered `<option>`
- * element. Return `true` to disable.
- * * `trackexpr`: Used when working with an array of objects. The result of this expression will be
- * used to identify the objects in the array. The `trackexpr` will most likely refer to the
- * `value` variable (e.g. `value.propertyName`). With this the selection is preserved
- * even when the options are recreated (e.g. reloaded from the server).
- *
- * @example
- <example module="selectExample">
- <file name="index.html">
- <script>
- angular.module('selectExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.colors = [
- {name:'black', shade:'dark'},
- {name:'white', shade:'light', notAnOption: true},
- {name:'red', shade:'dark'},
- {name:'blue', shade:'dark', notAnOption: true},
- {name:'yellow', shade:'light', notAnOption: false}
- ];
- $scope.myColor = $scope.colors[2]; // red
- }]);
- </script>
- <div ng-controller="ExampleController">
- <ul>
- <li ng-repeat="color in colors">
- <label>Name: <input ng-model="color.name"></label>
- <label><input type="checkbox" ng-model="color.notAnOption"> Disabled?</label>
- <button ng-click="colors.splice($index, 1)" aria-label="Remove">X</button>
- </li>
- <li>
- <button ng-click="colors.push({})">add</button>
- </li>
- </ul>
- <hr/>
- <label>Color (null not allowed):
- <select ng-model="myColor" ng-options="color.name for color in colors"></select>
- </label><br/>
- <label>Color (null allowed):
- <span class="nullable">
- <select ng-model="myColor" ng-options="color.name for color in colors">
- <option value="">-- choose color --</option>
- </select>
- </span></label><br/>
-
- <label>Color grouped by shade:
- <select ng-model="myColor" ng-options="color.name group by color.shade for color in colors">
- </select>
- </label><br/>
-
- <label>Color grouped by shade, with some disabled:
- <select ng-model="myColor"
- ng-options="color.name group by color.shade disable when color.notAnOption for color in colors">
- </select>
- </label><br/>
-
-
-
- Select <button ng-click="myColor = { name:'not in list', shade: 'other' }">bogus</button>.
- <br/>
- <hr/>
- Currently selected: {{ {selected_color:myColor} }}
- <div style="border:solid 1px black; height:20px"
- ng-style="{'background-color':myColor.name}">
- </div>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should check ng-options', function() {
- expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('red');
- element.all(by.model('myColor')).first().click();
- element.all(by.css('select[ng-model="myColor"] option')).first().click();
- expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('black');
- element(by.css('.nullable select[ng-model="myColor"]')).click();
- element.all(by.css('.nullable select[ng-model="myColor"] option')).first().click();
- expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('null');
- });
- </file>
- </example>
- */
-
-// jshint maxlen: false
-// //00001111111111000000000002222222222000000000000000000000333333333300000000000000000000000004444444444400000000000005555555555555550000000006666666666666660000000777777777777777000000000000000888888888800000000000000000009999999999
-var NG_OPTIONS_REGEXP = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/;
- // 1: value expression (valueFn)
- // 2: label expression (displayFn)
- // 3: group by expression (groupByFn)
- // 4: disable when expression (disableWhenFn)
- // 5: array item variable name
- // 6: object item key variable name
- // 7: object item value variable name
- // 8: collection expression
- // 9: track by expression
-// jshint maxlen: 100
-
-
-var ngOptionsDirective = ['$compile', '$parse', function($compile, $parse) {
-
- function parseOptionsExpression(optionsExp, selectElement, scope) {
-
- var match = optionsExp.match(NG_OPTIONS_REGEXP);
- if (!(match)) {
- throw ngOptionsMinErr('iexp',
- "Expected expression in form of " +
- "'_select_ (as _label_)? for (_key_,)?_value_ in _collection_'" +
- " but got '{0}'. Element: {1}",
- optionsExp, startingTag(selectElement));
- }
-
- // Extract the parts from the ngOptions expression
-
- // The variable name for the value of the item in the collection
- var valueName = match[5] || match[7];
- // The variable name for the key of the item in the collection
- var keyName = match[6];
-
- // An expression that generates the viewValue for an option if there is a label expression
- var selectAs = / as /.test(match[0]) && match[1];
- // An expression that is used to track the id of each object in the options collection
- var trackBy = match[9];
- // An expression that generates the viewValue for an option if there is no label expression
- var valueFn = $parse(match[2] ? match[1] : valueName);
- var selectAsFn = selectAs && $parse(selectAs);
- var viewValueFn = selectAsFn || valueFn;
- var trackByFn = trackBy && $parse(trackBy);
-
- // Get the value by which we are going to track the option
- // if we have a trackFn then use that (passing scope and locals)
- // otherwise just hash the given viewValue
- var getTrackByValueFn = trackBy ?
- function(value, locals) { return trackByFn(scope, locals); } :
- function getHashOfValue(value) { return hashKey(value); };
- var getTrackByValue = function(value, key) {
- return getTrackByValueFn(value, getLocals(value, key));
- };
-
- var displayFn = $parse(match[2] || match[1]);
- var groupByFn = $parse(match[3] || '');
- var disableWhenFn = $parse(match[4] || '');
- var valuesFn = $parse(match[8]);
-
- var locals = {};
- var getLocals = keyName ? function(value, key) {
- locals[keyName] = key;
- locals[valueName] = value;
- return locals;
- } : function(value) {
- locals[valueName] = value;
- return locals;
- };
-
-
- function Option(selectValue, viewValue, label, group, disabled) {
- this.selectValue = selectValue;
- this.viewValue = viewValue;
- this.label = label;
- this.group = group;
- this.disabled = disabled;
- }
-
- function getOptionValuesKeys(optionValues) {
- var optionValuesKeys;
-
- if (!keyName && isArrayLike(optionValues)) {
- optionValuesKeys = optionValues;
- } else {
- // if object, extract keys, in enumeration order, unsorted
- optionValuesKeys = [];
- for (var itemKey in optionValues) {
- if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {
- optionValuesKeys.push(itemKey);
- }
- }
- }
- return optionValuesKeys;
- }
-
- return {
- trackBy: trackBy,
- getTrackByValue: getTrackByValue,
- getWatchables: $parse(valuesFn, function(optionValues) {
- // Create a collection of things that we would like to watch (watchedArray)
- // so that they can all be watched using a single $watchCollection
- // that only runs the handler once if anything changes
- var watchedArray = [];
- optionValues = optionValues || [];
-
- var optionValuesKeys = getOptionValuesKeys(optionValues);
- var optionValuesLength = optionValuesKeys.length;
- for (var index = 0; index < optionValuesLength; index++) {
- var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];
- var value = optionValues[key];
-
- var locals = getLocals(optionValues[key], key);
- var selectValue = getTrackByValueFn(optionValues[key], locals);
- watchedArray.push(selectValue);
-
- // Only need to watch the displayFn if there is a specific label expression
- if (match[2] || match[1]) {
- var label = displayFn(scope, locals);
- watchedArray.push(label);
- }
-
- // Only need to watch the disableWhenFn if there is a specific disable expression
- if (match[4]) {
- var disableWhen = disableWhenFn(scope, locals);
- watchedArray.push(disableWhen);
- }
- }
- return watchedArray;
- }),
-
- getOptions: function() {
-
- var optionItems = [];
- var selectValueMap = {};
-
- // The option values were already computed in the `getWatchables` fn,
- // which must have been called to trigger `getOptions`
- var optionValues = valuesFn(scope) || [];
- var optionValuesKeys = getOptionValuesKeys(optionValues);
- var optionValuesLength = optionValuesKeys.length;
-
- for (var index = 0; index < optionValuesLength; index++) {
- var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];
- var value = optionValues[key];
- var locals = getLocals(value, key);
- var viewValue = viewValueFn(scope, locals);
- var selectValue = getTrackByValueFn(viewValue, locals);
- var label = displayFn(scope, locals);
- var group = groupByFn(scope, locals);
- var disabled = disableWhenFn(scope, locals);
- var optionItem = new Option(selectValue, viewValue, label, group, disabled);
-
- optionItems.push(optionItem);
- selectValueMap[selectValue] = optionItem;
- }
-
- return {
- items: optionItems,
- selectValueMap: selectValueMap,
- getOptionFromViewValue: function(value) {
- return selectValueMap[getTrackByValue(value)];
- },
- getViewValueFromOption: function(option) {
- // If the viewValue could be an object that may be mutated by the application,
- // we need to make a copy and not return the reference to the value on the option.
- return trackBy ? angular.copy(option.viewValue) : option.viewValue;
- }
- };
- }
- };
- }
-
-
- // we can't just jqLite('<option>') since jqLite is not smart enough
- // to create it in <select> and IE barfs otherwise.
- var optionTemplate = document.createElement('option'),
- optGroupTemplate = document.createElement('optgroup');
-
- function ngOptionsPostLink(scope, selectElement, attr, ctrls) {
-
- var selectCtrl = ctrls[0];
- var ngModelCtrl = ctrls[1];
- var multiple = attr.multiple;
-
- // The emptyOption allows the application developer to provide their own custom "empty"
- // option when the viewValue does not match any of the option values.
- var emptyOption;
- for (var i = 0, children = selectElement.children(), ii = children.length; i < ii; i++) {
- if (children[i].value === '') {
- emptyOption = children.eq(i);
- break;
- }
- }
-
- var providedEmptyOption = !!emptyOption;
-
- var unknownOption = jqLite(optionTemplate.cloneNode(false));
- unknownOption.val('?');
-
- var options;
- var ngOptions = parseOptionsExpression(attr.ngOptions, selectElement, scope);
-
-
- var renderEmptyOption = function() {
- if (!providedEmptyOption) {
- selectElement.prepend(emptyOption);
- }
- selectElement.val('');
- emptyOption.prop('selected', true); // needed for IE
- emptyOption.attr('selected', true);
- };
-
- var removeEmptyOption = function() {
- if (!providedEmptyOption) {
- emptyOption.remove();
- }
- };
-
-
- var renderUnknownOption = function() {
- selectElement.prepend(unknownOption);
- selectElement.val('?');
- unknownOption.prop('selected', true); // needed for IE
- unknownOption.attr('selected', true);
- };
-
- var removeUnknownOption = function() {
- unknownOption.remove();
- };
-
- // Update the controller methods for multiple selectable options
- if (!multiple) {
-
- selectCtrl.writeValue = function writeNgOptionsValue(value) {
- var option = options.getOptionFromViewValue(value);
-
- if (option && !option.disabled) {
- if (selectElement[0].value !== option.selectValue) {
- removeUnknownOption();
- removeEmptyOption();
-
- selectElement[0].value = option.selectValue;
- option.element.selected = true;
- option.element.setAttribute('selected', 'selected');
- }
- } else {
- if (value === null || providedEmptyOption) {
- removeUnknownOption();
- renderEmptyOption();
- } else {
- removeEmptyOption();
- renderUnknownOption();
- }
- }
- };
-
- selectCtrl.readValue = function readNgOptionsValue() {
-
- var selectedOption = options.selectValueMap[selectElement.val()];
-
- if (selectedOption && !selectedOption.disabled) {
- removeEmptyOption();
- removeUnknownOption();
- return options.getViewValueFromOption(selectedOption);
- }
- return null;
- };
-
- // If we are using `track by` then we must watch the tracked value on the model
- // since ngModel only watches for object identity change
- if (ngOptions.trackBy) {
- scope.$watch(
- function() { return ngOptions.getTrackByValue(ngModelCtrl.$viewValue); },
- function() { ngModelCtrl.$render(); }
- );
- }
-
- } else {
-
- ngModelCtrl.$isEmpty = function(value) {
- return !value || value.length === 0;
- };
-
-
- selectCtrl.writeValue = function writeNgOptionsMultiple(value) {
- options.items.forEach(function(option) {
- option.element.selected = false;
- });
-
- if (value) {
- value.forEach(function(item) {
- var option = options.getOptionFromViewValue(item);
- if (option && !option.disabled) option.element.selected = true;
- });
- }
- };
-
-
- selectCtrl.readValue = function readNgOptionsMultiple() {
- var selectedValues = selectElement.val() || [],
- selections = [];
-
- forEach(selectedValues, function(value) {
- var option = options.selectValueMap[value];
- if (option && !option.disabled) selections.push(options.getViewValueFromOption(option));
- });
-
- return selections;
- };
-
- // If we are using `track by` then we must watch these tracked values on the model
- // since ngModel only watches for object identity change
- if (ngOptions.trackBy) {
-
- scope.$watchCollection(function() {
- if (isArray(ngModelCtrl.$viewValue)) {
- return ngModelCtrl.$viewValue.map(function(value) {
- return ngOptions.getTrackByValue(value);
- });
- }
- }, function() {
- ngModelCtrl.$render();
- });
-
- }
- }
-
-
- if (providedEmptyOption) {
-
- // we need to remove it before calling selectElement.empty() because otherwise IE will
- // remove the label from the element. wtf?
- emptyOption.remove();
-
- // compile the element since there might be bindings in it
- $compile(emptyOption)(scope);
-
- // remove the class, which is added automatically because we recompile the element and it
- // becomes the compilation root
- emptyOption.removeClass('ng-scope');
- } else {
- emptyOption = jqLite(optionTemplate.cloneNode(false));
- }
-
- // We need to do this here to ensure that the options object is defined
- // when we first hit it in writeNgOptionsValue
- updateOptions();
-
- // We will re-render the option elements if the option values or labels change
- scope.$watchCollection(ngOptions.getWatchables, updateOptions);
-
- // ------------------------------------------------------------------ //
-
-
- function updateOptionElement(option, element) {
- option.element = element;
- element.disabled = option.disabled;
- // NOTE: The label must be set before the value, otherwise IE10/11/EDGE create unresponsive
- // selects in certain circumstances when multiple selects are next to each other and display
- // the option list in listbox style, i.e. the select is [multiple], or specifies a [size].
- // See https://github.com/angular/angular.js/issues/11314 for more info.
- // This is unfortunately untestable with unit / e2e tests
- if (option.label !== element.label) {
- element.label = option.label;
- element.textContent = option.label;
- }
- if (option.value !== element.value) element.value = option.selectValue;
- }
-
- function addOrReuseElement(parent, current, type, templateElement) {
- var element;
- // Check whether we can reuse the next element
- if (current && lowercase(current.nodeName) === type) {
- // The next element is the right type so reuse it
- element = current;
- } else {
- // The next element is not the right type so create a new one
- element = templateElement.cloneNode(false);
- if (!current) {
- // There are no more elements so just append it to the select
- parent.appendChild(element);
- } else {
- // The next element is not a group so insert the new one
- parent.insertBefore(element, current);
- }
- }
- return element;
- }
-
-
- function removeExcessElements(current) {
- var next;
- while (current) {
- next = current.nextSibling;
- jqLiteRemove(current);
- current = next;
- }
- }
-
-
- function skipEmptyAndUnknownOptions(current) {
- var emptyOption_ = emptyOption && emptyOption[0];
- var unknownOption_ = unknownOption && unknownOption[0];
-
- // We cannot rely on the extracted empty option being the same as the compiled empty option,
- // because the compiled empty option might have been replaced by a comment because
- // it had an "element" transclusion directive on it (such as ngIf)
- if (emptyOption_ || unknownOption_) {
- while (current &&
- (current === emptyOption_ ||
- current === unknownOption_ ||
- current.nodeType === NODE_TYPE_COMMENT ||
- (nodeName_(current) === 'option' && current.value === ''))) {
- current = current.nextSibling;
- }
- }
- return current;
- }
-
-
- function updateOptions() {
-
- var previousValue = options && selectCtrl.readValue();
-
- options = ngOptions.getOptions();
-
- var groupMap = {};
- var currentElement = selectElement[0].firstChild;
-
- // Ensure that the empty option is always there if it was explicitly provided
- if (providedEmptyOption) {
- selectElement.prepend(emptyOption);
- }
-
- currentElement = skipEmptyAndUnknownOptions(currentElement);
-
- options.items.forEach(function updateOption(option) {
- var group;
- var groupElement;
- var optionElement;
-
- if (isDefined(option.group)) {
-
- // This option is to live in a group
- // See if we have already created this group
- group = groupMap[option.group];
-
- if (!group) {
-
- // We have not already created this group
- groupElement = addOrReuseElement(selectElement[0],
- currentElement,
- 'optgroup',
- optGroupTemplate);
- // Move to the next element
- currentElement = groupElement.nextSibling;
-
- // Update the label on the group element
- groupElement.label = option.group;
-
- // Store it for use later
- group = groupMap[option.group] = {
- groupElement: groupElement,
- currentOptionElement: groupElement.firstChild
- };
-
- }
-
- // So now we have a group for this option we add the option to the group
- optionElement = addOrReuseElement(group.groupElement,
- group.currentOptionElement,
- 'option',
- optionTemplate);
- updateOptionElement(option, optionElement);
- // Move to the next element
- group.currentOptionElement = optionElement.nextSibling;
-
- } else {
-
- // This option is not in a group
- optionElement = addOrReuseElement(selectElement[0],
- currentElement,
- 'option',
- optionTemplate);
- updateOptionElement(option, optionElement);
- // Move to the next element
- currentElement = optionElement.nextSibling;
- }
- });
-
-
- // Now remove all excess options and group
- Object.keys(groupMap).forEach(function(key) {
- removeExcessElements(groupMap[key].currentOptionElement);
- });
- removeExcessElements(currentElement);
-
- ngModelCtrl.$render();
-
- // Check to see if the value has changed due to the update to the options
- if (!ngModelCtrl.$isEmpty(previousValue)) {
- var nextValue = selectCtrl.readValue();
- var isNotPrimitive = ngOptions.trackBy || multiple;
- if (isNotPrimitive ? !equals(previousValue, nextValue) : previousValue !== nextValue) {
- ngModelCtrl.$setViewValue(nextValue);
- ngModelCtrl.$render();
- }
- }
-
- }
- }
-
- return {
- restrict: 'A',
- terminal: true,
- require: ['select', 'ngModel'],
- link: {
- pre: function ngOptionsPreLink(scope, selectElement, attr, ctrls) {
- // Deactivate the SelectController.register method to prevent
- // option directives from accidentally registering themselves
- // (and unwanted $destroy handlers etc.)
- ctrls[0].registerOption = noop;
- },
- post: ngOptionsPostLink
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngPluralize
- * @restrict EA
- *
- * @description
- * `ngPluralize` is a directive that displays messages according to en-US localization rules.
- * These rules are bundled with angular.js, but can be overridden
- * (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive
- * by specifying the mappings between
- * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
- * and the strings to be displayed.
- *
- * # Plural categories and explicit number rules
- * There are two
- * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
- * in Angular's default en-US locale: "one" and "other".
- *
- * While a plural category may match many numbers (for example, in en-US locale, "other" can match
- * any number that is not 1), an explicit number rule can only match one number. For example, the
- * explicit number rule for "3" matches the number 3. There are examples of plural categories
- * and explicit number rules throughout the rest of this documentation.
- *
- * # Configuring ngPluralize
- * You configure ngPluralize by providing 2 attributes: `count` and `when`.
- * You can also provide an optional attribute, `offset`.
- *
- * The value of the `count` attribute can be either a string or an {@link guide/expression
- * Angular expression}; these are evaluated on the current scope for its bound value.
- *
- * The `when` attribute specifies the mappings between plural categories and the actual
- * string to be displayed. The value of the attribute should be a JSON object.
- *
- * The following example shows how to configure ngPluralize:
- *
- * ```html
- * <ng-pluralize count="personCount"
- when="{'0': 'Nobody is viewing.',
- * 'one': '1 person is viewing.',
- * 'other': '{} people are viewing.'}">
- * </ng-pluralize>
- *```
- *
- * In the example, `"0: Nobody is viewing."` is an explicit number rule. If you did not
- * specify this rule, 0 would be matched to the "other" category and "0 people are viewing"
- * would be shown instead of "Nobody is viewing". You can specify an explicit number rule for
- * other numbers, for example 12, so that instead of showing "12 people are viewing", you can
- * show "a dozen people are viewing".
- *
- * You can use a set of closed braces (`{}`) as a placeholder for the number that you want substituted
- * into pluralized strings. In the previous example, Angular will replace `{}` with
- * <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder
- * for <span ng-non-bindable>{{numberExpression}}</span>.
- *
- * If no rule is defined for a category, then an empty string is displayed and a warning is generated.
- * Note that some locales define more categories than `one` and `other`. For example, fr-fr defines `few` and `many`.
- *
- * # Configuring ngPluralize with offset
- * The `offset` attribute allows further customization of pluralized text, which can result in
- * a better user experience. For example, instead of the message "4 people are viewing this document",
- * you might display "John, Kate and 2 others are viewing this document".
- * The offset attribute allows you to offset a number by any desired value.
- * Let's take a look at an example:
- *
- * ```html
- * <ng-pluralize count="personCount" offset=2
- * when="{'0': 'Nobody is viewing.',
- * '1': '{{person1}} is viewing.',
- * '2': '{{person1}} and {{person2}} are viewing.',
- * 'one': '{{person1}}, {{person2}} and one other person are viewing.',
- * 'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
- * </ng-pluralize>
- * ```
- *
- * Notice that we are still using two plural categories(one, other), but we added
- * three explicit number rules 0, 1 and 2.
- * When one person, perhaps John, views the document, "John is viewing" will be shown.
- * When three people view the document, no explicit number rule is found, so
- * an offset of 2 is taken off 3, and Angular uses 1 to decide the plural category.
- * In this case, plural category 'one' is matched and "John, Mary and one other person are viewing"
- * is shown.
- *
- * Note that when you specify offsets, you must provide explicit number rules for
- * numbers from 0 up to and including the offset. If you use an offset of 3, for example,
- * you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for
- * plural categories "one" and "other".
- *
- * @param {string|expression} count The variable to be bound to.
- * @param {string} when The mapping between plural category to its corresponding strings.
- * @param {number=} offset Offset to deduct from the total number.
- *
- * @example
- <example module="pluralizeExample">
- <file name="index.html">
- <script>
- angular.module('pluralizeExample', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.person1 = 'Igor';
- $scope.person2 = 'Misko';
- $scope.personCount = 1;
- }]);
- </script>
- <div ng-controller="ExampleController">
- <label>Person 1:<input type="text" ng-model="person1" value="Igor" /></label><br/>
- <label>Person 2:<input type="text" ng-model="person2" value="Misko" /></label><br/>
- <label>Number of People:<input type="text" ng-model="personCount" value="1" /></label><br/>
-
- <!--- Example with simple pluralization rules for en locale --->
- Without Offset:
- <ng-pluralize count="personCount"
- when="{'0': 'Nobody is viewing.',
- 'one': '1 person is viewing.',
- 'other': '{} people are viewing.'}">
- </ng-pluralize><br>
-
- <!--- Example with offset --->
- With Offset(2):
- <ng-pluralize count="personCount" offset=2
- when="{'0': 'Nobody is viewing.',
- '1': '{{person1}} is viewing.',
- '2': '{{person1}} and {{person2}} are viewing.',
- 'one': '{{person1}}, {{person2}} and one other person are viewing.',
- 'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
- </ng-pluralize>
- </div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should show correct pluralized string', function() {
- var withoutOffset = element.all(by.css('ng-pluralize')).get(0);
- var withOffset = element.all(by.css('ng-pluralize')).get(1);
- var countInput = element(by.model('personCount'));
-
- expect(withoutOffset.getText()).toEqual('1 person is viewing.');
- expect(withOffset.getText()).toEqual('Igor is viewing.');
-
- countInput.clear();
- countInput.sendKeys('0');
-
- expect(withoutOffset.getText()).toEqual('Nobody is viewing.');
- expect(withOffset.getText()).toEqual('Nobody is viewing.');
-
- countInput.clear();
- countInput.sendKeys('2');
-
- expect(withoutOffset.getText()).toEqual('2 people are viewing.');
- expect(withOffset.getText()).toEqual('Igor and Misko are viewing.');
-
- countInput.clear();
- countInput.sendKeys('3');
-
- expect(withoutOffset.getText()).toEqual('3 people are viewing.');
- expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.');
-
- countInput.clear();
- countInput.sendKeys('4');
-
- expect(withoutOffset.getText()).toEqual('4 people are viewing.');
- expect(withOffset.getText()).toEqual('Igor, Misko and 2 other people are viewing.');
- });
- it('should show data-bound names', function() {
- var withOffset = element.all(by.css('ng-pluralize')).get(1);
- var personCount = element(by.model('personCount'));
- var person1 = element(by.model('person1'));
- var person2 = element(by.model('person2'));
- personCount.clear();
- personCount.sendKeys('4');
- person1.clear();
- person1.sendKeys('Di');
- person2.clear();
- person2.sendKeys('Vojta');
- expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');
- });
- </file>
- </example>
- */
-var ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale, $interpolate, $log) {
- var BRACE = /{}/g,
- IS_WHEN = /^when(Minus)?(.+)$/;
-
- return {
- link: function(scope, element, attr) {
- var numberExp = attr.count,
- whenExp = attr.$attr.when && element.attr(attr.$attr.when), // we have {{}} in attrs
- offset = attr.offset || 0,
- whens = scope.$eval(whenExp) || {},
- whensExpFns = {},
- startSymbol = $interpolate.startSymbol(),
- endSymbol = $interpolate.endSymbol(),
- braceReplacement = startSymbol + numberExp + '-' + offset + endSymbol,
- watchRemover = angular.noop,
- lastCount;
-
- forEach(attr, function(expression, attributeName) {
- var tmpMatch = IS_WHEN.exec(attributeName);
- if (tmpMatch) {
- var whenKey = (tmpMatch[1] ? '-' : '') + lowercase(tmpMatch[2]);
- whens[whenKey] = element.attr(attr.$attr[attributeName]);
- }
- });
- forEach(whens, function(expression, key) {
- whensExpFns[key] = $interpolate(expression.replace(BRACE, braceReplacement));
-
- });
-
- scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) {
- var count = parseFloat(newVal);
- var countIsNaN = isNaN(count);
-
- if (!countIsNaN && !(count in whens)) {
- // If an explicit number rule such as 1, 2, 3... is defined, just use it.
- // Otherwise, check it against pluralization rules in $locale service.
- count = $locale.pluralCat(count - offset);
- }
-
- // If both `count` and `lastCount` are NaN, we don't need to re-register a watch.
- // In JS `NaN !== NaN`, so we have to explicitly check.
- if ((count !== lastCount) && !(countIsNaN && isNumber(lastCount) && isNaN(lastCount))) {
- watchRemover();
- var whenExpFn = whensExpFns[count];
- if (isUndefined(whenExpFn)) {
- if (newVal != null) {
- $log.debug("ngPluralize: no rule defined for '" + count + "' in " + whenExp);
- }
- watchRemover = noop;
- updateElementText();
- } else {
- watchRemover = scope.$watch(whenExpFn, updateElementText);
- }
- lastCount = count;
- }
- });
-
- function updateElementText(newText) {
- element.text(newText || '');
- }
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngRepeat
- * @multiElement
- *
- * @description
- * The `ngRepeat` directive instantiates a template once per item from a collection. Each template
- * instance gets its own scope, where the given loop variable is set to the current collection item,
- * and `$index` is set to the item index or key.
- *
- * Special properties are exposed on the local scope of each template instance, including:
- *
- * | Variable | Type | Details |
- * |-----------|-----------------|-----------------------------------------------------------------------------|
- * | `$index` | {@type number} | iterator offset of the repeated element (0..length-1) |
- * | `$first` | {@type boolean} | true if the repeated element is first in the iterator. |
- * | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |
- * | `$last` | {@type boolean} | true if the repeated element is last in the iterator. |
- * | `$even` | {@type boolean} | true if the iterator position `$index` is even (otherwise false). |
- * | `$odd` | {@type boolean} | true if the iterator position `$index` is odd (otherwise false). |
- *
- * <div class="alert alert-info">
- * Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.
- * This may be useful when, for instance, nesting ngRepeats.
- * </div>
- *
- *
- * # Iterating over object properties
- *
- * It is possible to get `ngRepeat` to iterate over the properties of an object using the following
- * syntax:
- *
- * ```js
- * <div ng-repeat="(key, value) in myObj"> ... </div>
- * ```
- *
- * You need to be aware that the JavaScript specification does not define the order of keys
- * returned for an object. (To mitigate this in Angular 1.3 the `ngRepeat` directive
- * used to sort the keys alphabetically.)
- *
- * Version 1.4 removed the alphabetic sorting. We now rely on the order returned by the browser
- * when running `for key in myObj`. It seems that browsers generally follow the strategy of providing
- * keys in the order in which they were defined, although there are exceptions when keys are deleted
- * and reinstated. See the [MDN page on `delete` for more info](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#Cross-browser_notes).
- *
- * If this is not desired, the recommended workaround is to convert your object into an array
- * that is sorted into the order that you prefer before providing it to `ngRepeat`. You could
- * do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)
- * or implement a `$watch` on the object yourself.
- *
- *
- * # Tracking and Duplicates
- *
- * `ngRepeat` uses {@link $rootScope.Scope#$watchCollection $watchCollection} to detect changes in
- * the collection. When a change happens, ngRepeat then makes the corresponding changes to the DOM:
- *
- * * When an item is added, a new instance of the template is added to the DOM.
- * * When an item is removed, its template instance is removed from the DOM.
- * * When items are reordered, their respective templates are reordered in the DOM.
- *
- * To minimize creation of DOM elements, `ngRepeat` uses a function
- * to "keep track" of all items in the collection and their corresponding DOM elements.
- * For example, if an item is added to the collection, ngRepeat will know that all other items
- * already have DOM elements, and will not re-render them.
- *
- * The default tracking function (which tracks items by their identity) does not allow
- * duplicate items in arrays. This is because when there are duplicates, it is not possible
- * to maintain a one-to-one mapping between collection items and DOM elements.
- *
- * If you do need to repeat duplicate items, you can substitute the default tracking behavior
- * with your own using the `track by` expression.
- *
- * For example, you may track items by the index of each item in the collection, using the
- * special scope property `$index`:
- * ```html
- * <div ng-repeat="n in [42, 42, 43, 43] track by $index">
- * {{n}}
- * </div>
- * ```
- *
- * You may also use arbitrary expressions in `track by`, including references to custom functions
- * on the scope:
- * ```html
- * <div ng-repeat="n in [42, 42, 43, 43] track by myTrackingFunction(n)">
- * {{n}}
- * </div>
- * ```
- *
- * <div class="alert alert-success">
- * If you are working with objects that have an identifier property, you should track
- * by the identifier instead of the whole object. Should you reload your data later, `ngRepeat`
- * will not have to rebuild the DOM elements for items it has already rendered, even if the
- * JavaScript objects in the collection have been substituted for new ones. For large collections,
- * this significantly improves rendering performance. If you don't have a unique identifier,
- * `track by $index` can also provide a performance boost.
- * </div>
- * ```html
- * <div ng-repeat="model in collection track by model.id">
- * {{model.name}}
- * </div>
- * ```
- *
- * When no `track by` expression is provided, it is equivalent to tracking by the built-in
- * `$id` function, which tracks items by their identity:
- * ```html
- * <div ng-repeat="obj in collection track by $id(obj)">
- * {{obj.prop}}
- * </div>
- * ```
- *
- * <div class="alert alert-warning">
- * **Note:** `track by` must always be the last expression:
- * </div>
- * ```
- * <div ng-repeat="model in collection | orderBy: 'id' as filtered_result track by model.id">
- * {{model.name}}
- * </div>
- * ```
- *
- * # Special repeat start and end points
- * To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending
- * the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.
- * The **ng-repeat-start** directive works the same as **ng-repeat**, but will repeat all the HTML code (including the tag it's defined on)
- * up to and including the ending HTML tag where **ng-repeat-end** is placed.
- *
- * The example below makes use of this feature:
- * ```html
- * <header ng-repeat-start="item in items">
- * Header {{ item }}
- * </header>
- * <div class="body">
- * Body {{ item }}
- * </div>
- * <footer ng-repeat-end>
- * Footer {{ item }}
- * </footer>
- * ```
- *
- * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to:
- * ```html
- * <header>
- * Header A
- * </header>
- * <div class="body">
- * Body A
- * </div>
- * <footer>
- * Footer A
- * </footer>
- * <header>
- * Header B
- * </header>
- * <div class="body">
- * Body B
- * </div>
- * <footer>
- * Footer B
- * </footer>
- * ```
- *
- * The custom start and end points for ngRepeat also support all other HTML directive syntax flavors provided in AngularJS (such
- * as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).
- *
- * @animations
- * **.enter** - when a new item is added to the list or when an item is revealed after a filter
- *
- * **.leave** - when an item is removed from the list or when an item is filtered out
- *
- * **.move** - when an adjacent item is filtered out causing a reorder or when the item contents are reordered
- *
- * See the example below for defining CSS animations with ngRepeat.
- *
- * @element ANY
- * @scope
- * @priority 1000
- * @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These
- * formats are currently supported:
- *
- * * `variable in expression` – where variable is the user defined loop variable and `expression`
- * is a scope expression giving the collection to enumerate.
- *
- * For example: `album in artist.albums`.
- *
- * * `(key, value) in expression` – where `key` and `value` can be any user defined identifiers,
- * and `expression` is the scope expression giving the collection to enumerate.
- *
- * For example: `(name, age) in {'adam':10, 'amalie':12}`.
- *
- * * `variable in expression track by tracking_expression` – You can also provide an optional tracking expression
- * which can be used to associate the objects in the collection with the DOM elements. If no tracking expression
- * is specified, ng-repeat associates elements by identity. It is an error to have
- * more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are
- * mapped to the same DOM element, which is not possible.)
- *
- * Note that the tracking expression must come last, after any filters, and the alias expression.
- *
- * For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements
- * will be associated by item identity in the array.
- *
- * For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique
- * `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements
- * with the corresponding item in the array by identity. Moving the same object in array would move the DOM
- * element in the same way in the DOM.
- *
- * For example: `item in items track by item.id` is a typical pattern when the items come from the database. In this
- * case the object identity does not matter. Two objects are considered equivalent as long as their `id`
- * property is same.
- *
- * For example: `item in items | filter:searchText track by item.id` is a pattern that might be used to apply a filter
- * to items in conjunction with a tracking expression.
- *
- * * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the
- * intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message
- * when a filter is active on the repeater, but the filtered result set is empty.
- *
- * For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after
- * the items have been processed through the filter.
- *
- * Please note that `as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end
- * (and not as operator, inside an expression).
- *
- * For example: `item in items | filter : x | orderBy : order | limitTo : limit as results` .
- *
- * @example
- * This example uses `ngRepeat` to display a list of people. A filter is used to restrict the displayed
- * results by name. New (entering) and removed (leaving) items are animated.
- <example module="ngRepeat" name="ngRepeat" deps="angular-animate.js" animations="true">
- <file name="index.html">
- <div ng-controller="repeatController">
- I have {{friends.length}} friends. They are:
- <input type="search" ng-model="q" placeholder="filter friends..." aria-label="filter friends" />
- <ul class="example-animate-container">
- <li class="animate-repeat" ng-repeat="friend in friends | filter:q as results">
- [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.
- </li>
- <li class="animate-repeat" ng-if="results.length == 0">
- <strong>No results found...</strong>
- </li>
- </ul>
- </div>
- </file>
- <file name="script.js">
- angular.module('ngRepeat', ['ngAnimate']).controller('repeatController', function($scope) {
- $scope.friends = [
- {name:'John', age:25, gender:'boy'},
- {name:'Jessie', age:30, gender:'girl'},
- {name:'Johanna', age:28, gender:'girl'},
- {name:'Joy', age:15, gender:'girl'},
- {name:'Mary', age:28, gender:'girl'},
- {name:'Peter', age:95, gender:'boy'},
- {name:'Sebastian', age:50, gender:'boy'},
- {name:'Erika', age:27, gender:'girl'},
- {name:'Patrick', age:40, gender:'boy'},
- {name:'Samantha', age:60, gender:'girl'}
- ];
- });
- </file>
- <file name="animations.css">
- .example-animate-container {
- background:white;
- border:1px solid black;
- list-style:none;
- margin:0;
- padding:0 10px;
- }
-
- .animate-repeat {
- line-height:30px;
- list-style:none;
- box-sizing:border-box;
- }
-
- .animate-repeat.ng-move,
- .animate-repeat.ng-enter,
- .animate-repeat.ng-leave {
- transition:all linear 0.5s;
- }
-
- .animate-repeat.ng-leave.ng-leave-active,
- .animate-repeat.ng-move,
- .animate-repeat.ng-enter {
- opacity:0;
- max-height:0;
- }
-
- .animate-repeat.ng-leave,
- .animate-repeat.ng-move.ng-move-active,
- .animate-repeat.ng-enter.ng-enter-active {
- opacity:1;
- max-height:30px;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var friends = element.all(by.repeater('friend in friends'));
-
- it('should render initial data set', function() {
- expect(friends.count()).toBe(10);
- expect(friends.get(0).getText()).toEqual('[1] John who is 25 years old.');
- expect(friends.get(1).getText()).toEqual('[2] Jessie who is 30 years old.');
- expect(friends.last().getText()).toEqual('[10] Samantha who is 60 years old.');
- expect(element(by.binding('friends.length')).getText())
- .toMatch("I have 10 friends. They are:");
- });
-
- it('should update repeater when filter predicate changes', function() {
- expect(friends.count()).toBe(10);
-
- element(by.model('q')).sendKeys('ma');
-
- expect(friends.count()).toBe(2);
- expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.');
- expect(friends.last().getText()).toEqual('[2] Samantha who is 60 years old.');
- });
- </file>
- </example>
- */
-var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
- var NG_REMOVED = '$$NG_REMOVED';
- var ngRepeatMinErr = minErr('ngRepeat');
-
- var updateScope = function(scope, index, valueIdentifier, value, keyIdentifier, key, arrayLength) {
- // TODO(perf): generate setters to shave off ~40ms or 1-1.5%
- scope[valueIdentifier] = value;
- if (keyIdentifier) scope[keyIdentifier] = key;
- scope.$index = index;
- scope.$first = (index === 0);
- scope.$last = (index === (arrayLength - 1));
- scope.$middle = !(scope.$first || scope.$last);
- // jshint bitwise: false
- scope.$odd = !(scope.$even = (index&1) === 0);
- // jshint bitwise: true
- };
-
- var getBlockStart = function(block) {
- return block.clone[0];
- };
-
- var getBlockEnd = function(block) {
- return block.clone[block.clone.length - 1];
- };
-
-
- return {
- restrict: 'A',
- multiElement: true,
- transclude: 'element',
- priority: 1000,
- terminal: true,
- $$tlb: true,
- compile: function ngRepeatCompile($element, $attr) {
- var expression = $attr.ngRepeat;
- var ngRepeatEndComment = document.createComment(' end ngRepeat: ' + expression + ' ');
-
- var match = expression.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);
-
- if (!match) {
- throw ngRepeatMinErr('iexp', "Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",
- expression);
- }
-
- var lhs = match[1];
- var rhs = match[2];
- var aliasAs = match[3];
- var trackByExp = match[4];
-
- match = lhs.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);
-
- if (!match) {
- throw ngRepeatMinErr('iidexp', "'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",
- lhs);
- }
- var valueIdentifier = match[3] || match[1];
- var keyIdentifier = match[2];
-
- if (aliasAs && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs) ||
- /^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(aliasAs))) {
- throw ngRepeatMinErr('badident', "alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",
- aliasAs);
- }
-
- var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn;
- var hashFnLocals = {$id: hashKey};
-
- if (trackByExp) {
- trackByExpGetter = $parse(trackByExp);
- } else {
- trackByIdArrayFn = function(key, value) {
- return hashKey(value);
- };
- trackByIdObjFn = function(key) {
- return key;
- };
- }
-
- return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) {
-
- if (trackByExpGetter) {
- trackByIdExpFn = function(key, value, index) {
- // assign key, value, and $index to the locals so that they can be used in hash functions
- if (keyIdentifier) hashFnLocals[keyIdentifier] = key;
- hashFnLocals[valueIdentifier] = value;
- hashFnLocals.$index = index;
- return trackByExpGetter($scope, hashFnLocals);
- };
- }
-
- // Store a list of elements from previous run. This is a hash where key is the item from the
- // iterator, and the value is objects with following properties.
- // - scope: bound scope
- // - element: previous element.
- // - index: position
- //
- // We are using no-proto object so that we don't need to guard against inherited props via
- // hasOwnProperty.
- var lastBlockMap = createMap();
-
- //watch props
- $scope.$watchCollection(rhs, function ngRepeatAction(collection) {
- var index, length,
- previousNode = $element[0], // node that cloned nodes should be inserted after
- // initialized to the comment node anchor
- nextNode,
- // Same as lastBlockMap but it has the current state. It will become the
- // lastBlockMap on the next iteration.
- nextBlockMap = createMap(),
- collectionLength,
- key, value, // key/value of iteration
- trackById,
- trackByIdFn,
- collectionKeys,
- block, // last object information {scope, element, id}
- nextBlockOrder,
- elementsToRemove;
-
- if (aliasAs) {
- $scope[aliasAs] = collection;
- }
-
- if (isArrayLike(collection)) {
- collectionKeys = collection;
- trackByIdFn = trackByIdExpFn || trackByIdArrayFn;
- } else {
- trackByIdFn = trackByIdExpFn || trackByIdObjFn;
- // if object, extract keys, in enumeration order, unsorted
- collectionKeys = [];
- for (var itemKey in collection) {
- if (hasOwnProperty.call(collection, itemKey) && itemKey.charAt(0) !== '$') {
- collectionKeys.push(itemKey);
- }
- }
- }
-
- collectionLength = collectionKeys.length;
- nextBlockOrder = new Array(collectionLength);
-
- // locate existing items
- for (index = 0; index < collectionLength; index++) {
- key = (collection === collectionKeys) ? index : collectionKeys[index];
- value = collection[key];
- trackById = trackByIdFn(key, value, index);
- if (lastBlockMap[trackById]) {
- // found previously seen block
- block = lastBlockMap[trackById];
- delete lastBlockMap[trackById];
- nextBlockMap[trackById] = block;
- nextBlockOrder[index] = block;
- } else if (nextBlockMap[trackById]) {
- // if collision detected. restore lastBlockMap and throw an error
- forEach(nextBlockOrder, function(block) {
- if (block && block.scope) lastBlockMap[block.id] = block;
- });
- throw ngRepeatMinErr('dupes',
- "Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",
- expression, trackById, value);
- } else {
- // new never before seen block
- nextBlockOrder[index] = {id: trackById, scope: undefined, clone: undefined};
- nextBlockMap[trackById] = true;
- }
- }
-
- // remove leftover items
- for (var blockKey in lastBlockMap) {
- block = lastBlockMap[blockKey];
- elementsToRemove = getBlockNodes(block.clone);
- $animate.leave(elementsToRemove);
- if (elementsToRemove[0].parentNode) {
- // if the element was not removed yet because of pending animation, mark it as deleted
- // so that we can ignore it later
- for (index = 0, length = elementsToRemove.length; index < length; index++) {
- elementsToRemove[index][NG_REMOVED] = true;
- }
- }
- block.scope.$destroy();
- }
-
- // we are not using forEach for perf reasons (trying to avoid #call)
- for (index = 0; index < collectionLength; index++) {
- key = (collection === collectionKeys) ? index : collectionKeys[index];
- value = collection[key];
- block = nextBlockOrder[index];
-
- if (block.scope) {
- // if we have already seen this object, then we need to reuse the
- // associated scope/element
-
- nextNode = previousNode;
-
- // skip nodes that are already pending removal via leave animation
- do {
- nextNode = nextNode.nextSibling;
- } while (nextNode && nextNode[NG_REMOVED]);
-
- if (getBlockStart(block) != nextNode) {
- // existing item which got moved
- $animate.move(getBlockNodes(block.clone), null, jqLite(previousNode));
- }
- previousNode = getBlockEnd(block);
- updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);
- } else {
- // new item which we don't know about
- $transclude(function ngRepeatTransclude(clone, scope) {
- block.scope = scope;
- // http://jsperf.com/clone-vs-createcomment
- var endNode = ngRepeatEndComment.cloneNode(false);
- clone[clone.length++] = endNode;
-
- // TODO(perf): support naked previousNode in `enter` to avoid creation of jqLite wrapper?
- $animate.enter(clone, null, jqLite(previousNode));
- previousNode = endNode;
- // Note: We only need the first/last node of the cloned nodes.
- // However, we need to keep the reference to the jqlite wrapper as it might be changed later
- // by a directive with templateUrl when its template arrives.
- block.clone = clone;
- nextBlockMap[block.id] = block;
- updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);
- });
- }
- }
- lastBlockMap = nextBlockMap;
- });
- };
- }
- };
-}];
-
-var NG_HIDE_CLASS = 'ng-hide';
-var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
-/**
- * @ngdoc directive
- * @name ngShow
- * @multiElement
- *
- * @description
- * The `ngShow` directive shows or hides the given HTML element based on the expression
- * provided to the `ngShow` attribute. The element is shown or hidden by removing or adding
- * the `.ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined
- * in AngularJS and sets the display style to none (using an !important flag).
- * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).
- *
- * ```html
- * <!-- when $scope.myValue is truthy (element is visible) -->
- * <div ng-show="myValue"></div>
- *
- * <!-- when $scope.myValue is falsy (element is hidden) -->
- * <div ng-show="myValue" class="ng-hide"></div>
- * ```
- *
- * When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added to the class
- * attribute on the element causing it to become hidden. When truthy, the `.ng-hide` CSS class is removed
- * from the element causing the element not to appear hidden.
- *
- * ## Why is !important used?
- *
- * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector
- * can be easily overridden by heavier selectors. For example, something as simple
- * as changing the display style on a HTML list item would make hidden elements appear visible.
- * This also becomes a bigger issue when dealing with CSS frameworks.
- *
- * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector
- * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the
- * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.
- *
- * ### Overriding `.ng-hide`
- *
- * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change
- * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`
- * class CSS. Note that the selector that needs to be used is actually `.ng-hide:not(.ng-hide-animate)` to cope
- * with extra animation classes that can be added.
- *
- * ```css
- * .ng-hide:not(.ng-hide-animate) {
- * /&#42; this is just another form of hiding an element &#42;/
- * display: block!important;
- * position: absolute;
- * top: -9999px;
- * left: -9999px;
- * }
- * ```
- *
- * By default you don't need to override in CSS anything and the animations will work around the display style.
- *
- * ## A note about animations with `ngShow`
- *
- * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression
- * is true and false. This system works like the animation system present with ngClass except that
- * you must also include the !important flag to override the display property
- * so that you can perform an animation when the element is hidden during the time of the animation.
- *
- * ```css
- * //
- * //a working example can be found at the bottom of this page
- * //
- * .my-element.ng-hide-add, .my-element.ng-hide-remove {
- * /&#42; this is required as of 1.3x to properly
- * apply all styling in a show/hide animation &#42;/
- * transition: 0s linear all;
- * }
- *
- * .my-element.ng-hide-add-active,
- * .my-element.ng-hide-remove-active {
- * /&#42; the transition is defined in the active class &#42;/
- * transition: 1s linear all;
- * }
- *
- * .my-element.ng-hide-add { ... }
- * .my-element.ng-hide-add.ng-hide-add-active { ... }
- * .my-element.ng-hide-remove { ... }
- * .my-element.ng-hide-remove.ng-hide-remove-active { ... }
- * ```
- *
- * Keep in mind that, as of AngularJS version 1.3.0-beta.11, there is no need to change the display
- * property to block during animation states--ngAnimate will handle the style toggling automatically for you.
- *
- * @animations
- * addClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a truthy value and the just before contents are set to visible
- * removeClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden
- *
- * @element ANY
- * @param {expression} ngShow If the {@link guide/expression expression} is truthy
- * then the element is shown or hidden respectively.
- *
- * @example
- <example module="ngAnimate" deps="angular-animate.js" animations="true">
- <file name="index.html">
- Click me: <input type="checkbox" ng-model="checked" aria-label="Toggle ngHide"><br/>
- <div>
- Show:
- <div class="check-element animate-show" ng-show="checked">
- <span class="glyphicon glyphicon-thumbs-up"></span> I show up when your checkbox is checked.
- </div>
- </div>
- <div>
- Hide:
- <div class="check-element animate-show" ng-hide="checked">
- <span class="glyphicon glyphicon-thumbs-down"></span> I hide when your checkbox is checked.
- </div>
- </div>
- </file>
- <file name="glyphicons.css">
- @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);
- </file>
- <file name="animations.css">
- .animate-show {
- line-height: 20px;
- opacity: 1;
- padding: 10px;
- border: 1px solid black;
- background: white;
- }
-
- .animate-show.ng-hide-add, .animate-show.ng-hide-remove {
- transition: all linear 0.5s;
- }
-
- .animate-show.ng-hide {
- line-height: 0;
- opacity: 0;
- padding: 0 10px;
- }
-
- .check-element {
- padding: 10px;
- border: 1px solid black;
- background: white;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));
- var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));
-
- it('should check ng-show / ng-hide', function() {
- expect(thumbsUp.isDisplayed()).toBeFalsy();
- expect(thumbsDown.isDisplayed()).toBeTruthy();
-
- element(by.model('checked')).click();
-
- expect(thumbsUp.isDisplayed()).toBeTruthy();
- expect(thumbsDown.isDisplayed()).toBeFalsy();
- });
- </file>
- </example>
- */
-var ngShowDirective = ['$animate', function($animate) {
- return {
- restrict: 'A',
- multiElement: true,
- link: function(scope, element, attr) {
- scope.$watch(attr.ngShow, function ngShowWatchAction(value) {
- // we're adding a temporary, animation-specific class for ng-hide since this way
- // we can control when the element is actually displayed on screen without having
- // to have a global/greedy CSS selector that breaks when other animations are run.
- // Read: https://github.com/angular/angular.js/issues/9103#issuecomment-58335845
- $animate[value ? 'removeClass' : 'addClass'](element, NG_HIDE_CLASS, {
- tempClasses: NG_HIDE_IN_PROGRESS_CLASS
- });
- });
- }
- };
-}];
-
-
-/**
- * @ngdoc directive
- * @name ngHide
- * @multiElement
- *
- * @description
- * The `ngHide` directive shows or hides the given HTML element based on the expression
- * provided to the `ngHide` attribute. The element is shown or hidden by removing or adding
- * the `ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined
- * in AngularJS and sets the display style to none (using an !important flag).
- * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).
- *
- * ```html
- * <!-- when $scope.myValue is truthy (element is hidden) -->
- * <div ng-hide="myValue" class="ng-hide"></div>
- *
- * <!-- when $scope.myValue is falsy (element is visible) -->
- * <div ng-hide="myValue"></div>
- * ```
- *
- * When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added to the class
- * attribute on the element causing it to become hidden. When falsy, the `.ng-hide` CSS class is removed
- * from the element causing the element not to appear hidden.
- *
- * ## Why is !important used?
- *
- * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector
- * can be easily overridden by heavier selectors. For example, something as simple
- * as changing the display style on a HTML list item would make hidden elements appear visible.
- * This also becomes a bigger issue when dealing with CSS frameworks.
- *
- * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector
- * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the
- * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.
- *
- * ### Overriding `.ng-hide`
- *
- * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change
- * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`
- * class in CSS:
- *
- * ```css
- * .ng-hide {
- * /&#42; this is just another form of hiding an element &#42;/
- * display: block!important;
- * position: absolute;
- * top: -9999px;
- * left: -9999px;
- * }
- * ```
- *
- * By default you don't need to override in CSS anything and the animations will work around the display style.
- *
- * ## A note about animations with `ngHide`
- *
- * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression
- * is true and false. This system works like the animation system present with ngClass, except that the `.ng-hide`
- * CSS class is added and removed for you instead of your own CSS class.
- *
- * ```css
- * //
- * //a working example can be found at the bottom of this page
- * //
- * .my-element.ng-hide-add, .my-element.ng-hide-remove {
- * transition: 0.5s linear all;
- * }
- *
- * .my-element.ng-hide-add { ... }
- * .my-element.ng-hide-add.ng-hide-add-active { ... }
- * .my-element.ng-hide-remove { ... }
- * .my-element.ng-hide-remove.ng-hide-remove-active { ... }
- * ```
- *
- * Keep in mind that, as of AngularJS version 1.3.0-beta.11, there is no need to change the display
- * property to block during animation states--ngAnimate will handle the style toggling automatically for you.
- *
- * @animations
- * removeClass: `.ng-hide` - happens after the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden
- * addClass: `.ng-hide` - happens after the `ngHide` expression evaluates to a non truthy value and just before the contents are set to visible
- *
- * @element ANY
- * @param {expression} ngHide If the {@link guide/expression expression} is truthy then
- * the element is shown or hidden respectively.
- *
- * @example
- <example module="ngAnimate" deps="angular-animate.js" animations="true">
- <file name="index.html">
- Click me: <input type="checkbox" ng-model="checked" aria-label="Toggle ngShow"><br/>
- <div>
- Show:
- <div class="check-element animate-hide" ng-show="checked">
- <span class="glyphicon glyphicon-thumbs-up"></span> I show up when your checkbox is checked.
- </div>
- </div>
- <div>
- Hide:
- <div class="check-element animate-hide" ng-hide="checked">
- <span class="glyphicon glyphicon-thumbs-down"></span> I hide when your checkbox is checked.
- </div>
- </div>
- </file>
- <file name="glyphicons.css">
- @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);
- </file>
- <file name="animations.css">
- .animate-hide {
- transition: all linear 0.5s;
- line-height: 20px;
- opacity: 1;
- padding: 10px;
- border: 1px solid black;
- background: white;
- }
-
- .animate-hide.ng-hide {
- line-height: 0;
- opacity: 0;
- padding: 0 10px;
- }
-
- .check-element {
- padding: 10px;
- border: 1px solid black;
- background: white;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));
- var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));
-
- it('should check ng-show / ng-hide', function() {
- expect(thumbsUp.isDisplayed()).toBeFalsy();
- expect(thumbsDown.isDisplayed()).toBeTruthy();
-
- element(by.model('checked')).click();
-
- expect(thumbsUp.isDisplayed()).toBeTruthy();
- expect(thumbsDown.isDisplayed()).toBeFalsy();
- });
- </file>
- </example>
- */
-var ngHideDirective = ['$animate', function($animate) {
- return {
- restrict: 'A',
- multiElement: true,
- link: function(scope, element, attr) {
- scope.$watch(attr.ngHide, function ngHideWatchAction(value) {
- // The comment inside of the ngShowDirective explains why we add and
- // remove a temporary class for the show/hide animation
- $animate[value ? 'addClass' : 'removeClass'](element,NG_HIDE_CLASS, {
- tempClasses: NG_HIDE_IN_PROGRESS_CLASS
- });
- });
- }
- };
-}];
-
-/**
- * @ngdoc directive
- * @name ngStyle
- * @restrict AC
- *
- * @description
- * The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.
- *
- * @element ANY
- * @param {expression} ngStyle
- *
- * {@link guide/expression Expression} which evals to an
- * object whose keys are CSS style names and values are corresponding values for those CSS
- * keys.
- *
- * Since some CSS style names are not valid keys for an object, they must be quoted.
- * See the 'background-color' style in the example below.
- *
- * @example
- <example>
- <file name="index.html">
- <input type="button" value="set color" ng-click="myStyle={color:'red'}">
- <input type="button" value="set background" ng-click="myStyle={'background-color':'blue'}">
- <input type="button" value="clear" ng-click="myStyle={}">
- <br/>
- <span ng-style="myStyle">Sample Text</span>
- <pre>myStyle={{myStyle}}</pre>
- </file>
- <file name="style.css">
- span {
- color: black;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var colorSpan = element(by.css('span'));
-
- it('should check ng-style', function() {
- expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
- element(by.css('input[value=\'set color\']')).click();
- expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');
- element(by.css('input[value=clear]')).click();
- expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
- });
- </file>
- </example>
- */
-var ngStyleDirective = ngDirective(function(scope, element, attr) {
- scope.$watch(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {
- if (oldStyles && (newStyles !== oldStyles)) {
- forEach(oldStyles, function(val, style) { element.css(style, '');});
- }
- if (newStyles) element.css(newStyles);
- }, true);
-});
-
-/**
- * @ngdoc directive
- * @name ngSwitch
- * @restrict EA
- *
- * @description
- * The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.
- * Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at the location
- * as specified in the template.
- *
- * The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it
- * from the template cache), `ngSwitch` simply chooses one of the nested elements and makes it visible based on which element
- * matches the value obtained from the evaluated expression. In other words, you define a container element
- * (where you place the directive), place an expression on the **`on="..."` attribute**
- * (or the **`ng-switch="..."` attribute**), define any inner elements inside of the directive and place
- * a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on
- * expression is evaluated. If a matching expression is not found via a when attribute then an element with the default
- * attribute is displayed.
- *
- * <div class="alert alert-info">
- * Be aware that the attribute values to match against cannot be expressions. They are interpreted
- * as literal string values to match against.
- * For example, **`ng-switch-when="someVal"`** will match against the string `"someVal"` not against the
- * value of the expression `$scope.someVal`.
- * </div>
-
- * @animations
- * enter - happens after the ngSwitch contents change and the matched child element is placed inside the container
- * leave - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM
- *
- * @usage
- *
- * ```
- * <ANY ng-switch="expression">
- * <ANY ng-switch-when="matchValue1">...</ANY>
- * <ANY ng-switch-when="matchValue2">...</ANY>
- * <ANY ng-switch-default>...</ANY>
- * </ANY>
- * ```
- *
- *
- * @scope
- * @priority 1200
- * @param {*} ngSwitch|on expression to match against <code>ng-switch-when</code>.
- * On child elements add:
- *
- * * `ngSwitchWhen`: the case statement to match against. If match then this
- * case will be displayed. If the same match appears multiple times, all the
- * elements will be displayed.
- * * `ngSwitchDefault`: the default case when no other case match. If there
- * are multiple default cases, all of them will be displayed when no other
- * case match.
- *
- *
- * @example
- <example module="switchExample" deps="angular-animate.js" animations="true">
- <file name="index.html">
- <div ng-controller="ExampleController">
- <select ng-model="selection" ng-options="item for item in items">
- </select>
- <code>selection={{selection}}</code>
- <hr/>
- <div class="animate-switch-container"
- ng-switch on="selection">
- <div class="animate-switch" ng-switch-when="settings">Settings Div</div>
- <div class="animate-switch" ng-switch-when="home">Home Span</div>
- <div class="animate-switch" ng-switch-default>default</div>
- </div>
- </div>
- </file>
- <file name="script.js">
- angular.module('switchExample', ['ngAnimate'])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.items = ['settings', 'home', 'other'];
- $scope.selection = $scope.items[0];
- }]);
- </file>
- <file name="animations.css">
- .animate-switch-container {
- position:relative;
- background:white;
- border:1px solid black;
- height:40px;
- overflow:hidden;
- }
-
- .animate-switch {
- padding:10px;
- }
-
- .animate-switch.ng-animate {
- transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
-
- position:absolute;
- top:0;
- left:0;
- right:0;
- bottom:0;
- }
-
- .animate-switch.ng-leave.ng-leave-active,
- .animate-switch.ng-enter {
- top:-50px;
- }
- .animate-switch.ng-leave,
- .animate-switch.ng-enter.ng-enter-active {
- top:0;
- }
- </file>
- <file name="protractor.js" type="protractor">
- var switchElem = element(by.css('[ng-switch]'));
- var select = element(by.model('selection'));
-
- it('should start in settings', function() {
- expect(switchElem.getText()).toMatch(/Settings Div/);
- });
- it('should change to home', function() {
- select.all(by.css('option')).get(1).click();
- expect(switchElem.getText()).toMatch(/Home Span/);
- });
- it('should select default', function() {
- select.all(by.css('option')).get(2).click();
- expect(switchElem.getText()).toMatch(/default/);
- });
- </file>
- </example>
- */
-var ngSwitchDirective = ['$animate', function($animate) {
- return {
- require: 'ngSwitch',
-
- // asks for $scope to fool the BC controller module
- controller: ['$scope', function ngSwitchController() {
- this.cases = {};
- }],
- link: function(scope, element, attr, ngSwitchController) {
- var watchExpr = attr.ngSwitch || attr.on,
- selectedTranscludes = [],
- selectedElements = [],
- previousLeaveAnimations = [],
- selectedScopes = [];
-
- var spliceFactory = function(array, index) {
- return function() { array.splice(index, 1); };
- };
-
- scope.$watch(watchExpr, function ngSwitchWatchAction(value) {
- var i, ii;
- for (i = 0, ii = previousLeaveAnimations.length; i < ii; ++i) {
- $animate.cancel(previousLeaveAnimations[i]);
- }
- previousLeaveAnimations.length = 0;
-
- for (i = 0, ii = selectedScopes.length; i < ii; ++i) {
- var selected = getBlockNodes(selectedElements[i].clone);
- selectedScopes[i].$destroy();
- var promise = previousLeaveAnimations[i] = $animate.leave(selected);
- promise.then(spliceFactory(previousLeaveAnimations, i));
- }
-
- selectedElements.length = 0;
- selectedScopes.length = 0;
-
- if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) {
- forEach(selectedTranscludes, function(selectedTransclude) {
- selectedTransclude.transclude(function(caseElement, selectedScope) {
- selectedScopes.push(selectedScope);
- var anchor = selectedTransclude.element;
- caseElement[caseElement.length++] = document.createComment(' end ngSwitchWhen: ');
- var block = { clone: caseElement };
-
- selectedElements.push(block);
- $animate.enter(caseElement, anchor.parent(), anchor);
- });
- });
- }
- });
- }
- };
-}];
-
-var ngSwitchWhenDirective = ngDirective({
- transclude: 'element',
- priority: 1200,
- require: '^ngSwitch',
- multiElement: true,
- link: function(scope, element, attrs, ctrl, $transclude) {
- ctrl.cases['!' + attrs.ngSwitchWhen] = (ctrl.cases['!' + attrs.ngSwitchWhen] || []);
- ctrl.cases['!' + attrs.ngSwitchWhen].push({ transclude: $transclude, element: element });
- }
-});
-
-var ngSwitchDefaultDirective = ngDirective({
- transclude: 'element',
- priority: 1200,
- require: '^ngSwitch',
- multiElement: true,
- link: function(scope, element, attr, ctrl, $transclude) {
- ctrl.cases['?'] = (ctrl.cases['?'] || []);
- ctrl.cases['?'].push({ transclude: $transclude, element: element });
- }
-});
-
-/**
- * @ngdoc directive
- * @name ngTransclude
- * @restrict EAC
- *
- * @description
- * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.
- *
- * You can specify that you want to insert a named transclusion slot, instead of the default slot, by providing the slot name
- * as the value of the `ng-transclude` or `ng-transclude-slot` attribute.
- *
- * If the transcluded content is not empty (i.e. contains one or more DOM nodes, including whitespace text nodes), any existing
- * content of this element will be removed before the transcluded content is inserted.
- * If the transcluded content is empty, the existing content is left intact. This lets you provide fallback content in the case
- * that no transcluded content is provided.
- *
- * @element ANY
- *
- * @param {string} ngTransclude|ngTranscludeSlot the name of the slot to insert at this point. If this is not provided, is empty
- * or its value is the same as the name of the attribute then the default slot is used.
- *
- * @example
- * ### Basic transclusion
- * This example demonstrates basic transclusion of content into a component directive.
- * <example name="simpleTranscludeExample" module="transcludeExample">
- * <file name="index.html">
- * <script>
- * angular.module('transcludeExample', [])
- * .directive('pane', function(){
- * return {
- * restrict: 'E',
- * transclude: true,
- * scope: { title:'@' },
- * template: '<div style="border: 1px solid black;">' +
- * '<div style="background-color: gray">{{title}}</div>' +
- * '<ng-transclude></ng-transclude>' +
- * '</div>'
- * };
- * })
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.title = 'Lorem Ipsum';
- * $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <input ng-model="title" aria-label="title"> <br/>
- * <textarea ng-model="text" aria-label="text"></textarea> <br/>
- * <pane title="{{title}}">{{text}}</pane>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should have transcluded', function() {
- * var titleElement = element(by.model('title'));
- * titleElement.clear();
- * titleElement.sendKeys('TITLE');
- * var textElement = element(by.model('text'));
- * textElement.clear();
- * textElement.sendKeys('TEXT');
- * expect(element(by.binding('title')).getText()).toEqual('TITLE');
- * expect(element(by.binding('text')).getText()).toEqual('TEXT');
- * });
- * </file>
- * </example>
- *
- * @example
- * ### Transclude fallback content
- * This example shows how to use `NgTransclude` with fallback content, that
- * is displayed if no transcluded content is provided.
- *
- * <example module="transcludeFallbackContentExample">
- * <file name="index.html">
- * <script>
- * angular.module('transcludeFallbackContentExample', [])
- * .directive('myButton', function(){
- * return {
- * restrict: 'E',
- * transclude: true,
- * scope: true,
- * template: '<button style="cursor: pointer;">' +
- * '<ng-transclude>' +
- * '<b style="color: red;">Button1</b>' +
- * '</ng-transclude>' +
- * '</button>'
- * };
- * });
- * </script>
- * <!-- fallback button content -->
- * <my-button id="fallback"></my-button>
- * <!-- modified button content -->
- * <my-button id="modified">
- * <i style="color: green;">Button2</i>
- * </my-button>
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should have different transclude element content', function() {
- * expect(element(by.id('fallback')).getText()).toBe('Button1');
- * expect(element(by.id('modified')).getText()).toBe('Button2');
- * });
- * </file>
- * </example>
- *
- * @example
- * ### Multi-slot transclusion
- * This example demonstrates using multi-slot transclusion in a component directive.
- * <example name="multiSlotTranscludeExample" module="multiSlotTranscludeExample">
- * <file name="index.html">
- * <style>
- * .title, .footer {
- * background-color: gray
- * }
- * </style>
- * <div ng-controller="ExampleController">
- * <input ng-model="title" aria-label="title"> <br/>
- * <textarea ng-model="text" aria-label="text"></textarea> <br/>
- * <pane>
- * <pane-title><a ng-href="{{link}}">{{title}}</a></pane-title>
- * <pane-body><p>{{text}}</p></pane-body>
- * </pane>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('multiSlotTranscludeExample', [])
- * .directive('pane', function(){
- * return {
- * restrict: 'E',
- * transclude: {
- * 'title': '?paneTitle',
- * 'body': 'paneBody',
- * 'footer': '?paneFooter'
- * },
- * template: '<div style="border: 1px solid black;">' +
- * '<div class="title" ng-transclude="title">Fallback Title</div>' +
- * '<div ng-transclude="body"></div>' +
- * '<div class="footer" ng-transclude="footer">Fallback Footer</div>' +
- * '</div>'
- * };
- * })
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.title = 'Lorem Ipsum';
- * $scope.link = "https://google.com";
- * $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
- * }]);
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should have transcluded the title and the body', function() {
- * var titleElement = element(by.model('title'));
- * titleElement.clear();
- * titleElement.sendKeys('TITLE');
- * var textElement = element(by.model('text'));
- * textElement.clear();
- * textElement.sendKeys('TEXT');
- * expect(element(by.css('.title')).getText()).toEqual('TITLE');
- * expect(element(by.binding('text')).getText()).toEqual('TEXT');
- * expect(element(by.css('.footer')).getText()).toEqual('Fallback Footer');
- * });
- * </file>
- * </example>
- */
-var ngTranscludeMinErr = minErr('ngTransclude');
-var ngTranscludeDirective = ngDirective({
- restrict: 'EAC',
- link: function($scope, $element, $attrs, controller, $transclude) {
-
- if ($attrs.ngTransclude === $attrs.$attr.ngTransclude) {
- // If the attribute is of the form: `ng-transclude="ng-transclude"`
- // then treat it like the default
- $attrs.ngTransclude = '';
- }
-
- function ngTranscludeCloneAttachFn(clone) {
- if (clone.length) {
- $element.empty();
- $element.append(clone);
- }
- }
-
- if (!$transclude) {
- throw ngTranscludeMinErr('orphan',
- 'Illegal use of ngTransclude directive in the template! ' +
- 'No parent directive that requires a transclusion found. ' +
- 'Element: {0}',
- startingTag($element));
- }
-
- // If there is no slot name defined or the slot name is not optional
- // then transclude the slot
- var slotName = $attrs.ngTransclude || $attrs.ngTranscludeSlot;
- $transclude(ngTranscludeCloneAttachFn, null, slotName);
- }
-});
-
-/**
- * @ngdoc directive
- * @name script
- * @restrict E
- *
- * @description
- * Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the
- * template can be used by {@link ng.directive:ngInclude `ngInclude`},
- * {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the
- * `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be
- * assigned through the element's `id`, which can then be used as a directive's `templateUrl`.
- *
- * @param {string} type Must be set to `'text/ng-template'`.
- * @param {string} id Cache name of the template.
- *
- * @example
- <example>
- <file name="index.html">
- <script type="text/ng-template" id="/tpl.html">
- Content of the template.
- </script>
-
- <a ng-click="currentTpl='/tpl.html'" id="tpl-link">Load inlined template</a>
- <div id="tpl-content" ng-include src="currentTpl"></div>
- </file>
- <file name="protractor.js" type="protractor">
- it('should load template defined inside script tag', function() {
- element(by.css('#tpl-link')).click();
- expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);
- });
- </file>
- </example>
- */
-var scriptDirective = ['$templateCache', function($templateCache) {
- return {
- restrict: 'E',
- terminal: true,
- compile: function(element, attr) {
- if (attr.type == 'text/ng-template') {
- var templateUrl = attr.id,
- text = element[0].text;
-
- $templateCache.put(templateUrl, text);
- }
- }
- };
-}];
-
-var noopNgModelController = { $setViewValue: noop, $render: noop };
-
-function chromeHack(optionElement) {
- // Workaround for https://code.google.com/p/chromium/issues/detail?id=381459
- // Adding an <option selected="selected"> element to a <select required="required"> should
- // automatically select the new element
- if (optionElement[0].hasAttribute('selected')) {
- optionElement[0].selected = true;
- }
-}
-
-/**
- * @ngdoc type
- * @name select.SelectController
- * @description
- * The controller for the `<select>` directive. This provides support for reading
- * and writing the selected value(s) of the control and also coordinates dynamically
- * added `<option>` elements, perhaps by an `ngRepeat` directive.
- */
-var SelectController =
- ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
-
- var self = this,
- optionsMap = new HashMap();
-
- // If the ngModel doesn't get provided then provide a dummy noop version to prevent errors
- self.ngModelCtrl = noopNgModelController;
-
- // The "unknown" option is one that is prepended to the list if the viewValue
- // does not match any of the options. When it is rendered the value of the unknown
- // option is '? XXX ?' where XXX is the hashKey of the value that is not known.
- //
- // We can't just jqLite('<option>') since jqLite is not smart enough
- // to create it in <select> and IE barfs otherwise.
- self.unknownOption = jqLite(document.createElement('option'));
- self.renderUnknownOption = function(val) {
- var unknownVal = '? ' + hashKey(val) + ' ?';
- self.unknownOption.val(unknownVal);
- $element.prepend(self.unknownOption);
- $element.val(unknownVal);
- };
-
- $scope.$on('$destroy', function() {
- // disable unknown option so that we don't do work when the whole select is being destroyed
- self.renderUnknownOption = noop;
- });
-
- self.removeUnknownOption = function() {
- if (self.unknownOption.parent()) self.unknownOption.remove();
- };
-
-
- // Read the value of the select control, the implementation of this changes depending
- // upon whether the select can have multiple values and whether ngOptions is at work.
- self.readValue = function readSingleValue() {
- self.removeUnknownOption();
- return $element.val();
- };
-
-
- // Write the value to the select control, the implementation of this changes depending
- // upon whether the select can have multiple values and whether ngOptions is at work.
- self.writeValue = function writeSingleValue(value) {
- if (self.hasOption(value)) {
- self.removeUnknownOption();
- $element.val(value);
- if (value === '') self.emptyOption.prop('selected', true); // to make IE9 happy
- } else {
- if (value == null && self.emptyOption) {
- self.removeUnknownOption();
- $element.val('');
- } else {
- self.renderUnknownOption(value);
- }
- }
- };
-
-
- // Tell the select control that an option, with the given value, has been added
- self.addOption = function(value, element) {
- // Skip comment nodes, as they only pollute the `optionsMap`
- if (element[0].nodeType === NODE_TYPE_COMMENT) return;
-
- assertNotHasOwnProperty(value, '"option value"');
- if (value === '') {
- self.emptyOption = element;
- }
- var count = optionsMap.get(value) || 0;
- optionsMap.put(value, count + 1);
- self.ngModelCtrl.$render();
- chromeHack(element);
- };
-
- // Tell the select control that an option, with the given value, has been removed
- self.removeOption = function(value) {
- var count = optionsMap.get(value);
- if (count) {
- if (count === 1) {
- optionsMap.remove(value);
- if (value === '') {
- self.emptyOption = undefined;
- }
- } else {
- optionsMap.put(value, count - 1);
- }
- }
- };
-
- // Check whether the select control has an option matching the given value
- self.hasOption = function(value) {
- return !!optionsMap.get(value);
- };
-
-
- self.registerOption = function(optionScope, optionElement, optionAttrs, interpolateValueFn, interpolateTextFn) {
-
- if (interpolateValueFn) {
- // The value attribute is interpolated
- var oldVal;
- optionAttrs.$observe('value', function valueAttributeObserveAction(newVal) {
- if (isDefined(oldVal)) {
- self.removeOption(oldVal);
- }
- oldVal = newVal;
- self.addOption(newVal, optionElement);
- });
- } else if (interpolateTextFn) {
- // The text content is interpolated
- optionScope.$watch(interpolateTextFn, function interpolateWatchAction(newVal, oldVal) {
- optionAttrs.$set('value', newVal);
- if (oldVal !== newVal) {
- self.removeOption(oldVal);
- }
- self.addOption(newVal, optionElement);
- });
- } else {
- // The value attribute is static
- self.addOption(optionAttrs.value, optionElement);
- }
-
- optionElement.on('$destroy', function() {
- self.removeOption(optionAttrs.value);
- self.ngModelCtrl.$render();
- });
- };
-}];
-
-/**
- * @ngdoc directive
- * @name select
- * @restrict E
- *
- * @description
- * HTML `SELECT` element with angular data-binding.
- *
- * The `select` directive is used together with {@link ngModel `ngModel`} to provide data-binding
- * between the scope and the `<select>` control (including setting default values).
- * It also handles dynamic `<option>` elements, which can be added using the {@link ngRepeat `ngRepeat}` or
- * {@link ngOptions `ngOptions`} directives.
- *
- * When an item in the `<select>` menu is selected, the value of the selected option will be bound
- * to the model identified by the `ngModel` directive. With static or repeated options, this is
- * the content of the `value` attribute or the textContent of the `<option>`, if the value attribute is missing.
- * If you want dynamic value attributes, you can use interpolation inside the value attribute.
- *
- * <div class="alert alert-warning">
- * Note that the value of a `select` directive used without `ngOptions` is always a string.
- * When the model needs to be bound to a non-string value, you must either explicitly convert it
- * using a directive (see example below) or use `ngOptions` to specify the set of options.
- * This is because an option element can only be bound to string values at present.
- * </div>
- *
- * If the viewValue of `ngModel` does not match any of the options, then the control
- * will automatically add an "unknown" option, which it then removes when the mismatch is resolved.
- *
- * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
- * be nested into the `<select>` element. This element will then represent the `null` or "not selected"
- * option. See example below for demonstration.
- *
- * <div class="alert alert-info">
- * In many cases, `ngRepeat` can be used on `<option>` elements instead of {@link ng.directive:ngOptions
- * ngOptions} to achieve a similar result. However, `ngOptions` provides some benefits, such as
- * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
- * comprehension expression, and additionally in reducing memory and increasing speed by not creating
- * a new scope for each repeated instance.
- * </div>
- *
- *
- * @param {string} ngModel Assignable angular expression to data-bind to.
- * @param {string=} name Property name of the form under which the control is published.
- * @param {string=} multiple Allows multiple options to be selected. The selected values will be
- * bound to the model as an array.
- * @param {string=} required Sets `required` validation error key if the value is not entered.
- * @param {string=} ngRequired Adds required attribute and required validation constraint to
- * the element when the ngRequired expression evaluates to true. Use ngRequired instead of required
- * when you want to data-bind to the required attribute.
- * @param {string=} ngChange Angular expression to be executed when selected option(s) changes due to user
- * interaction with the select element.
- * @param {string=} ngOptions sets the options that the select is populated with and defines what is
- * set on the model on selection. See {@link ngOptions `ngOptions`}.
- *
- * @example
- * ### Simple `select` elements with static options
- *
- * <example name="static-select" module="staticSelect">
- * <file name="index.html">
- * <div ng-controller="ExampleController">
- * <form name="myForm">
- * <label for="singleSelect"> Single select: </label><br>
- * <select name="singleSelect" ng-model="data.singleSelect">
- * <option value="option-1">Option 1</option>
- * <option value="option-2">Option 2</option>
- * </select><br>
- *
- * <label for="singleSelect"> Single select with "not selected" option and dynamic option values: </label><br>
- * <select name="singleSelect" id="singleSelect" ng-model="data.singleSelect">
- * <option value="">---Please select---</option> <!-- not selected / blank option -->
- * <option value="{{data.option1}}">Option 1</option> <!-- interpolation -->
- * <option value="option-2">Option 2</option>
- * </select><br>
- * <button ng-click="forceUnknownOption()">Force unknown option</button><br>
- * <tt>singleSelect = {{data.singleSelect}}</tt>
- *
- * <hr>
- * <label for="multipleSelect"> Multiple select: </label><br>
- * <select name="multipleSelect" id="multipleSelect" ng-model="data.multipleSelect" multiple>
- * <option value="option-1">Option 1</option>
- * <option value="option-2">Option 2</option>
- * <option value="option-3">Option 3</option>
- * </select><br>
- * <tt>multipleSelect = {{data.multipleSelect}}</tt><br/>
- * </form>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('staticSelect', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.data = {
- * singleSelect: null,
- * multipleSelect: [],
- * option1: 'option-1',
- * };
- *
- * $scope.forceUnknownOption = function() {
- * $scope.data.singleSelect = 'nonsense';
- * };
- * }]);
- * </file>
- *</example>
- *
- * ### Using `ngRepeat` to generate `select` options
- * <example name="ngrepeat-select" module="ngrepeatSelect">
- * <file name="index.html">
- * <div ng-controller="ExampleController">
- * <form name="myForm">
- * <label for="repeatSelect"> Repeat select: </label>
- * <select name="repeatSelect" id="repeatSelect" ng-model="data.repeatSelect">
- * <option ng-repeat="option in data.availableOptions" value="{{option.id}}">{{option.name}}</option>
- * </select>
- * </form>
- * <hr>
- * <tt>repeatSelect = {{data.repeatSelect}}</tt><br/>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('ngrepeatSelect', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.data = {
- * repeatSelect: null,
- * availableOptions: [
- * {id: '1', name: 'Option A'},
- * {id: '2', name: 'Option B'},
- * {id: '3', name: 'Option C'}
- * ],
- * };
- * }]);
- * </file>
- *</example>
- *
- *
- * ### Using `select` with `ngOptions` and setting a default value
- * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples.
- *
- * <example name="select-with-default-values" module="defaultValueSelect">
- * <file name="index.html">
- * <div ng-controller="ExampleController">
- * <form name="myForm">
- * <label for="mySelect">Make a choice:</label>
- * <select name="mySelect" id="mySelect"
- * ng-options="option.name for option in data.availableOptions track by option.id"
- * ng-model="data.selectedOption"></select>
- * </form>
- * <hr>
- * <tt>option = {{data.selectedOption}}</tt><br/>
- * </div>
- * </file>
- * <file name="app.js">
- * angular.module('defaultValueSelect', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.data = {
- * availableOptions: [
- * {id: '1', name: 'Option A'},
- * {id: '2', name: 'Option B'},
- * {id: '3', name: 'Option C'}
- * ],
- * selectedOption: {id: '3', name: 'Option C'} //This sets the default value of the select in the ui
- * };
- * }]);
- * </file>
- *</example>
- *
- *
- * ### Binding `select` to a non-string value via `ngModel` parsing / formatting
- *
- * <example name="select-with-non-string-options" module="nonStringSelect">
- * <file name="index.html">
- * <select ng-model="model.id" convert-to-number>
- * <option value="0">Zero</option>
- * <option value="1">One</option>
- * <option value="2">Two</option>
- * </select>
- * {{ model }}
- * </file>
- * <file name="app.js">
- * angular.module('nonStringSelect', [])
- * .run(function($rootScope) {
- * $rootScope.model = { id: 2 };
- * })
- * .directive('convertToNumber', function() {
- * return {
- * require: 'ngModel',
- * link: function(scope, element, attrs, ngModel) {
- * ngModel.$parsers.push(function(val) {
- * return parseInt(val, 10);
- * });
- * ngModel.$formatters.push(function(val) {
- * return '' + val;
- * });
- * }
- * };
- * });
- * </file>
- * <file name="protractor.js" type="protractor">
- * it('should initialize to model', function() {
- * var select = element(by.css('select'));
- * expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two');
- * });
- * </file>
- * </example>
- *
- */
-var selectDirective = function() {
-
- return {
- restrict: 'E',
- require: ['select', '?ngModel'],
- controller: SelectController,
- priority: 1,
- link: {
- pre: selectPreLink,
- post: selectPostLink
- }
- };
-
- function selectPreLink(scope, element, attr, ctrls) {
-
- // if ngModel is not defined, we don't need to do anything
- var ngModelCtrl = ctrls[1];
- if (!ngModelCtrl) return;
-
- var selectCtrl = ctrls[0];
-
- selectCtrl.ngModelCtrl = ngModelCtrl;
-
- // When the selected item(s) changes we delegate getting the value of the select control
- // to the `readValue` method, which can be changed if the select can have multiple
- // selected values or if the options are being generated by `ngOptions`
- element.on('change', function() {
- scope.$apply(function() {
- ngModelCtrl.$setViewValue(selectCtrl.readValue());
- });
- });
-
- // If the select allows multiple values then we need to modify how we read and write
- // values from and to the control; also what it means for the value to be empty and
- // we have to add an extra watch since ngModel doesn't work well with arrays - it
- // doesn't trigger rendering if only an item in the array changes.
- if (attr.multiple) {
-
- // Read value now needs to check each option to see if it is selected
- selectCtrl.readValue = function readMultipleValue() {
- var array = [];
- forEach(element.find('option'), function(option) {
- if (option.selected) {
- array.push(option.value);
- }
- });
- return array;
- };
-
- // Write value now needs to set the selected property of each matching option
- selectCtrl.writeValue = function writeMultipleValue(value) {
- var items = new HashMap(value);
- forEach(element.find('option'), function(option) {
- option.selected = isDefined(items.get(option.value));
- });
- };
-
- // we have to do it on each watch since ngModel watches reference, but
- // we need to work of an array, so we need to see if anything was inserted/removed
- var lastView, lastViewRef = NaN;
- scope.$watch(function selectMultipleWatch() {
- if (lastViewRef === ngModelCtrl.$viewValue && !equals(lastView, ngModelCtrl.$viewValue)) {
- lastView = shallowCopy(ngModelCtrl.$viewValue);
- ngModelCtrl.$render();
- }
- lastViewRef = ngModelCtrl.$viewValue;
- });
-
- // If we are a multiple select then value is now a collection
- // so the meaning of $isEmpty changes
- ngModelCtrl.$isEmpty = function(value) {
- return !value || value.length === 0;
- };
-
- }
- }
-
- function selectPostLink(scope, element, attrs, ctrls) {
- // if ngModel is not defined, we don't need to do anything
- var ngModelCtrl = ctrls[1];
- if (!ngModelCtrl) return;
-
- var selectCtrl = ctrls[0];
-
- // We delegate rendering to the `writeValue` method, which can be changed
- // if the select can have multiple selected values or if the options are being
- // generated by `ngOptions`.
- // This must be done in the postLink fn to prevent $render to be called before
- // all nodes have been linked correctly.
- ngModelCtrl.$render = function() {
- selectCtrl.writeValue(ngModelCtrl.$viewValue);
- };
- }
-};
-
-
-// The option directive is purely designed to communicate the existence (or lack of)
-// of dynamically created (and destroyed) option elements to their containing select
-// directive via its controller.
-var optionDirective = ['$interpolate', function($interpolate) {
- return {
- restrict: 'E',
- priority: 100,
- compile: function(element, attr) {
- if (isDefined(attr.value)) {
- // If the value attribute is defined, check if it contains an interpolation
- var interpolateValueFn = $interpolate(attr.value, true);
- } else {
- // If the value attribute is not defined then we fall back to the
- // text content of the option element, which may be interpolated
- var interpolateTextFn = $interpolate(element.text(), true);
- if (!interpolateTextFn) {
- attr.$set('value', element.text());
- }
- }
-
- return function(scope, element, attr) {
- // This is an optimization over using ^^ since we don't want to have to search
- // all the way to the root of the DOM for every single option element
- var selectCtrlName = '$selectController',
- parent = element.parent(),
- selectCtrl = parent.data(selectCtrlName) ||
- parent.parent().data(selectCtrlName); // in case we are in optgroup
-
- if (selectCtrl) {
- selectCtrl.registerOption(scope, element, attr, interpolateValueFn, interpolateTextFn);
- }
- };
- }
- };
-}];
-
-var styleDirective = valueFn({
- restrict: 'E',
- terminal: false
-});
-
-/**
- * @ngdoc directive
- * @name ngRequired
- *
- * @description
- *
- * ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
- * It is most often used for {@link input `input`} and {@link select `select`} controls, but can also be
- * applied to custom controls.
- *
- * The directive sets the `required` attribute on the element if the Angular expression inside
- * `ngRequired` evaluates to true. A special directive for setting `required` is necessary because we
- * cannot use interpolation inside `required`. See the {@link guide/interpolation interpolation guide}
- * for more info.
- *
- * The validator will set the `required` error key to true if the `required` attribute is set and
- * calling {@link ngModel.NgModelController#$isEmpty `NgModelController.$isEmpty`} with the
- * {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`} returns `true`. For example, the
- * `$isEmpty()` implementation for `input[text]` checks the length of the `$viewValue`. When developing
- * custom controls, `$isEmpty()` can be overwritten to account for a $viewValue that is not string-based.
- *
- * @example
- * <example name="ngRequiredDirective" module="ngRequiredExample">
- * <file name="index.html">
- * <script>
- * angular.module('ngRequiredExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.required = true;
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <form name="form">
- * <label for="required">Toggle required: </label>
- * <input type="checkbox" ng-model="required" id="required" />
- * <br>
- * <label for="input">This input must be filled if `required` is true: </label>
- * <input type="text" ng-model="model" id="input" name="input" ng-required="required" /><br>
- * <hr>
- * required error set? = <code>{{form.input.$error.required}}</code><br>
- * model = <code>{{model}}</code>
- * </form>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- var required = element(by.binding('form.input.$error.required'));
- var model = element(by.binding('model'));
- var input = element(by.id('input'));
-
- it('should set the required error', function() {
- expect(required.getText()).toContain('true');
-
- input.sendKeys('123');
- expect(required.getText()).not.toContain('true');
- expect(model.getText()).toContain('123');
- });
- * </file>
- * </example>
- */
-var requiredDirective = function() {
- return {
- restrict: 'A',
- require: '?ngModel',
- link: function(scope, elm, attr, ctrl) {
- if (!ctrl) return;
- attr.required = true; // force truthy in case we are on non input element
-
- ctrl.$validators.required = function(modelValue, viewValue) {
- return !attr.required || !ctrl.$isEmpty(viewValue);
- };
-
- attr.$observe('required', function() {
- ctrl.$validate();
- });
- }
- };
-};
-
-/**
- * @ngdoc directive
- * @name ngPattern
- *
- * @description
- *
- * ngPattern adds the pattern {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
- *
- * The validator sets the `pattern` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
- * does not match a RegExp which is obtained by evaluating the Angular expression given in the
- * `ngPattern` attribute value:
- * * If the expression evaluates to a RegExp object, then this is used directly.
- * * If the expression evaluates to a string, then it will be converted to a RegExp after wrapping it
- * in `^` and `$` characters. For instance, `"abc"` will be converted to `new RegExp('^abc$')`.
- *
- * <div class="alert alert-info">
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
- * start at the index of the last search's match, thus not taking the whole input value into
- * account.
- * </div>
- *
- * <div class="alert alert-info">
- * **Note:** This directive is also added when the plain `pattern` attribute is used, with two
- * differences:
- * <ol>
- * <li>
- * `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is
- * not available.
- * </li>
- * <li>
- * The `ngPattern` attribute must be an expression, while the `pattern` value must be
- * interpolated.
- * </li>
- * </ol>
- * </div>
- *
- * @example
- * <example name="ngPatternDirective" module="ngPatternExample">
- * <file name="index.html">
- * <script>
- * angular.module('ngPatternExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.regex = '\\d+';
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <form name="form">
- * <label for="regex">Set a pattern (regex string): </label>
- * <input type="text" ng-model="regex" id="regex" />
- * <br>
- * <label for="input">This input is restricted by the current pattern: </label>
- * <input type="text" ng-model="model" id="input" name="input" ng-pattern="regex" /><br>
- * <hr>
- * input valid? = <code>{{form.input.$valid}}</code><br>
- * model = <code>{{model}}</code>
- * </form>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- var model = element(by.binding('model'));
- var input = element(by.id('input'));
-
- it('should validate the input with the default pattern', function() {
- input.sendKeys('aaa');
- expect(model.getText()).not.toContain('aaa');
-
- input.clear().then(function() {
- input.sendKeys('123');
- expect(model.getText()).toContain('123');
- });
- });
- * </file>
- * </example>
- */
-var patternDirective = function() {
- return {
- restrict: 'A',
- require: '?ngModel',
- link: function(scope, elm, attr, ctrl) {
- if (!ctrl) return;
-
- var regexp, patternExp = attr.ngPattern || attr.pattern;
- attr.$observe('pattern', function(regex) {
- if (isString(regex) && regex.length > 0) {
- regex = new RegExp('^' + regex + '$');
- }
-
- if (regex && !regex.test) {
- throw minErr('ngPattern')('noregexp',
- 'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp,
- regex, startingTag(elm));
- }
-
- regexp = regex || undefined;
- ctrl.$validate();
- });
-
- ctrl.$validators.pattern = function(modelValue, viewValue) {
- // HTML5 pattern constraint validates the input value, so we validate the viewValue
- return ctrl.$isEmpty(viewValue) || isUndefined(regexp) || regexp.test(viewValue);
- };
- }
- };
-};
-
-/**
- * @ngdoc directive
- * @name ngMaxlength
- *
- * @description
- *
- * ngMaxlength adds the maxlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
- *
- * The validator sets the `maxlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
- * is longer than the integer obtained by evaluating the Angular expression given in the
- * `ngMaxlength` attribute value.
- *
- * <div class="alert alert-info">
- * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two
- * differences:
- * <ol>
- * <li>
- * `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint
- * validation is not available.
- * </li>
- * <li>
- * The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be
- * interpolated.
- * </li>
- * </ol>
- * </div>
- *
- * @example
- * <example name="ngMaxlengthDirective" module="ngMaxlengthExample">
- * <file name="index.html">
- * <script>
- * angular.module('ngMaxlengthExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.maxlength = 5;
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <form name="form">
- * <label for="maxlength">Set a maxlength: </label>
- * <input type="number" ng-model="maxlength" id="maxlength" />
- * <br>
- * <label for="input">This input is restricted by the current maxlength: </label>
- * <input type="text" ng-model="model" id="input" name="input" ng-maxlength="maxlength" /><br>
- * <hr>
- * input valid? = <code>{{form.input.$valid}}</code><br>
- * model = <code>{{model}}</code>
- * </form>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- var model = element(by.binding('model'));
- var input = element(by.id('input'));
-
- it('should validate the input with the default maxlength', function() {
- input.sendKeys('abcdef');
- expect(model.getText()).not.toContain('abcdef');
-
- input.clear().then(function() {
- input.sendKeys('abcde');
- expect(model.getText()).toContain('abcde');
- });
- });
- * </file>
- * </example>
- */
-var maxlengthDirective = function() {
- return {
- restrict: 'A',
- require: '?ngModel',
- link: function(scope, elm, attr, ctrl) {
- if (!ctrl) return;
-
- var maxlength = -1;
- attr.$observe('maxlength', function(value) {
- var intVal = toInt(value);
- maxlength = isNaN(intVal) ? -1 : intVal;
- ctrl.$validate();
- });
- ctrl.$validators.maxlength = function(modelValue, viewValue) {
- return (maxlength < 0) || ctrl.$isEmpty(viewValue) || (viewValue.length <= maxlength);
- };
- }
- };
-};
-
-/**
- * @ngdoc directive
- * @name ngMinlength
- *
- * @description
- *
- * ngMinlength adds the minlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
- *
- * The validator sets the `minlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
- * is shorter than the integer obtained by evaluating the Angular expression given in the
- * `ngMinlength` attribute value.
- *
- * <div class="alert alert-info">
- * **Note:** This directive is also added when the plain `minlength` attribute is used, with two
- * differences:
- * <ol>
- * <li>
- * `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint
- * validation is not available.
- * </li>
- * <li>
- * The `ngMinlength` value must be an expression, while the `minlength` value must be
- * interpolated.
- * </li>
- * </ol>
- * </div>
- *
- * @example
- * <example name="ngMinlengthDirective" module="ngMinlengthExample">
- * <file name="index.html">
- * <script>
- * angular.module('ngMinlengthExample', [])
- * .controller('ExampleController', ['$scope', function($scope) {
- * $scope.minlength = 3;
- * }]);
- * </script>
- * <div ng-controller="ExampleController">
- * <form name="form">
- * <label for="minlength">Set a minlength: </label>
- * <input type="number" ng-model="minlength" id="minlength" />
- * <br>
- * <label for="input">This input is restricted by the current minlength: </label>
- * <input type="text" ng-model="model" id="input" name="input" ng-minlength="minlength" /><br>
- * <hr>
- * input valid? = <code>{{form.input.$valid}}</code><br>
- * model = <code>{{model}}</code>
- * </form>
- * </div>
- * </file>
- * <file name="protractor.js" type="protractor">
- var model = element(by.binding('model'));
- var input = element(by.id('input'));
-
- it('should validate the input with the default minlength', function() {
- input.sendKeys('ab');
- expect(model.getText()).not.toContain('ab');
-
- input.sendKeys('abc');
- expect(model.getText()).toContain('abc');
- });
- * </file>
- * </example>
- */
-var minlengthDirective = function() {
- return {
- restrict: 'A',
- require: '?ngModel',
- link: function(scope, elm, attr, ctrl) {
- if (!ctrl) return;
-
- var minlength = 0;
- attr.$observe('minlength', function(value) {
- minlength = toInt(value) || 0;
- ctrl.$validate();
- });
- ctrl.$validators.minlength = function(modelValue, viewValue) {
- return ctrl.$isEmpty(viewValue) || viewValue.length >= minlength;
- };
- }
- };
-};
-
-if (window.angular.bootstrap) {
- //AngularJS is already loaded, so we can return here...
- console.log('WARNING: Tried to load angular more than once.');
- return;
-}
-
-//try to bind to jquery now so that one can write jqLite(document).ready()
-//but we will rebind on bootstrap again.
-bindJQuery();
-
-publishExternalAPI(angular);
-
-angular.module("ngLocale", [], ["$provide", function($provide) {
-var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
-function getDecimals(n) {
- n = n + '';
- var i = n.indexOf('.');
- return (i == -1) ? 0 : n.length - i - 1;
-}
-
-function getVF(n, opt_precision) {
- var v = opt_precision;
-
- if (undefined === v) {
- v = Math.min(getDecimals(n), 3);
- }
-
- var base = Math.pow(10, v);
- var f = ((n * base) | 0) % base;
- return {v: v, f: f};
-}
-
-$provide.value("$locale", {
- "DATETIME_FORMATS": {
- "AMPMS": [
- "AM",
- "PM"
- ],
- "DAY": [
- "Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday"
- ],
- "ERANAMES": [
- "Before Christ",
- "Anno Domini"
- ],
- "ERAS": [
- "BC",
- "AD"
- ],
- "FIRSTDAYOFWEEK": 6,
- "MONTH": [
- "January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December"
- ],
- "SHORTDAY": [
- "Sun",
- "Mon",
- "Tue",
- "Wed",
- "Thu",
- "Fri",
- "Sat"
- ],
- "SHORTMONTH": [
- "Jan",
- "Feb",
- "Mar",
- "Apr",
- "May",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Oct",
- "Nov",
- "Dec"
- ],
- "STANDALONEMONTH": [
- "January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December"
- ],
- "WEEKENDRANGE": [
- 5,
- 6
- ],
- "fullDate": "EEEE, MMMM d, y",
- "longDate": "MMMM d, y",
- "medium": "MMM d, y h:mm:ss a",
- "mediumDate": "MMM d, y",
- "mediumTime": "h:mm:ss a",
- "short": "M/d/yy h:mm a",
- "shortDate": "M/d/yy",
- "shortTime": "h:mm a"
- },
- "NUMBER_FORMATS": {
- "CURRENCY_SYM": "$",
- "DECIMAL_SEP": ".",
- "GROUP_SEP": ",",
- "PATTERNS": [
- {
- "gSize": 3,
- "lgSize": 3,
- "maxFrac": 3,
- "minFrac": 0,
- "minInt": 1,
- "negPre": "-",
- "negSuf": "",
- "posPre": "",
- "posSuf": ""
- },
- {
- "gSize": 3,
- "lgSize": 3,
- "maxFrac": 2,
- "minFrac": 2,
- "minInt": 1,
- "negPre": "-\u00a4",
- "negSuf": "",
- "posPre": "\u00a4",
- "posSuf": ""
- }
- ]
- },
- "id": "en-us",
- "localeID": "en_US",
- "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
-});
-}]);
-
- jqLite(document).ready(function() {
- angularInit(document, bootstrap);
- });
-
-})(window, document);
-
-!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular/angular.min.js b/ecomp-portal-FE/client/bower_components/angular/angular.min.js
deleted file mode 100644
index dcb1a136..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/angular.min.js
+++ /dev/null
@@ -1,307 +0,0 @@
-/*
- AngularJS v1.5.0
- (c) 2010-2016 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(O,W,v){'use strict';function H(a){return function(){var b=arguments[0],d;d="["+(a?a+":":"")+b+"] http://errors.angularjs.org/1.5.0/"+(a?a+"/":"")+b;for(b=1;b<arguments.length;b++){d=d+(1==b?"?":"&")+"p"+(b-1)+"=";var c=encodeURIComponent,e;e=arguments[b];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;d+=c(e)}return Error(d)}}function Ca(a){if(null==a||Za(a))return!1;if(L(a)||F(a)||C&&a instanceof C)return!0;
-var b="length"in Object(a)&&a.length;return N(b)&&(0<=b&&(b-1 in a||a instanceof Array)||"function"==typeof a.item)}function n(a,b,d){var c,e;if(a)if(D(a))for(c in a)"prototype"==c||"length"==c||"name"==c||a.hasOwnProperty&&!a.hasOwnProperty(c)||b.call(d,a[c],c,a);else if(L(a)||Ca(a)){var f="object"!==typeof a;c=0;for(e=a.length;c<e;c++)(f||c in a)&&b.call(d,a[c],c,a)}else if(a.forEach&&a.forEach!==n)a.forEach(b,d,a);else if(qc(a))for(c in a)b.call(d,a[c],c,a);else if("function"===typeof a.hasOwnProperty)for(c in a)a.hasOwnProperty(c)&&
-b.call(d,a[c],c,a);else for(c in a)sa.call(a,c)&&b.call(d,a[c],c,a);return a}function rc(a,b,d){for(var c=Object.keys(a).sort(),e=0;e<c.length;e++)b.call(d,a[c[e]],c[e]);return c}function sc(a){return function(b,d){a(d,b)}}function Yd(){return++pb}function Qb(a,b,d){for(var c=a.$$hashKey,e=0,f=b.length;e<f;++e){var g=b[e];if(E(g)||D(g))for(var h=Object.keys(g),k=0,l=h.length;k<l;k++){var m=h[k],r=g[m];d&&E(r)?V(r)?a[m]=new Date(r.valueOf()):$a(r)?a[m]=new RegExp(r):r.nodeName?a[m]=r.cloneNode(!0):
-Rb(r)?a[m]=r.clone():(E(a[m])||(a[m]=L(r)?[]:{}),Qb(a[m],[r],!0)):a[m]=r}}c?a.$$hashKey=c:delete a.$$hashKey;return a}function T(a){return Qb(a,wa.call(arguments,1),!1)}function Zd(a){return Qb(a,wa.call(arguments,1),!0)}function ca(a){return parseInt(a,10)}function Sb(a,b){return T(Object.create(a),b)}function B(){}function ab(a){return a}function ba(a){return function(){return a}}function tc(a){return D(a.toString)&&a.toString!==ga}function x(a){return"undefined"===typeof a}function y(a){return"undefined"!==
-typeof a}function E(a){return null!==a&&"object"===typeof a}function qc(a){return null!==a&&"object"===typeof a&&!uc(a)}function F(a){return"string"===typeof a}function N(a){return"number"===typeof a}function V(a){return"[object Date]"===ga.call(a)}function D(a){return"function"===typeof a}function $a(a){return"[object RegExp]"===ga.call(a)}function Za(a){return a&&a.window===a}function bb(a){return a&&a.$evalAsync&&a.$watch}function Na(a){return"boolean"===typeof a}function $d(a){return a&&N(a.length)&&
-ae.test(ga.call(a))}function Rb(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function be(a){var b={};a=a.split(",");var d;for(d=0;d<a.length;d++)b[a[d]]=!0;return b}function ra(a){return G(a.nodeName||a[0]&&a[0].nodeName)}function cb(a,b){var d=a.indexOf(b);0<=d&&a.splice(d,1);return d}function Oa(a,b){function d(a,b){var d=b.$$hashKey,e;if(L(a)){e=0;for(var f=a.length;e<f;e++)b.push(c(a[e]))}else if(qc(a))for(e in a)b[e]=c(a[e]);else if(a&&"function"===typeof a.hasOwnProperty)for(e in a)a.hasOwnProperty(e)&&
-(b[e]=c(a[e]));else for(e in a)sa.call(a,e)&&(b[e]=c(a[e]));d?b.$$hashKey=d:delete b.$$hashKey;return b}function c(a){if(!E(a))return a;var b=f.indexOf(a);if(-1!==b)return g[b];if(Za(a)||bb(a))throw Da("cpws");var b=!1,c=e(a);c===v&&(c=L(a)?[]:Object.create(uc(a)),b=!0);f.push(a);g.push(c);return b?d(a,c):c}function e(a){switch(ga.call(a)){case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Float32Array]":case "[object Float64Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":return new a.constructor(c(a.buffer));
-case "[object ArrayBuffer]":if(!a.slice){var b=new ArrayBuffer(a.byteLength);(new Uint8Array(b)).set(new Uint8Array(a));return b}return a.slice(0);case "[object Boolean]":case "[object Number]":case "[object String]":case "[object Date]":return new a.constructor(a.valueOf());case "[object RegExp]":return b=new RegExp(a.source,a.toString().match(/[^\/]*$/)[0]),b.lastIndex=a.lastIndex,b}if(D(a.cloneNode))return a.cloneNode(!0)}var f=[],g=[];if(b){if($d(b)||"[object ArrayBuffer]"===ga.call(b))throw Da("cpta");
-if(a===b)throw Da("cpi");L(b)?b.length=0:n(b,function(a,c){"$$hashKey"!==c&&delete b[c]});f.push(a);g.push(b);return d(a,b)}return c(a)}function na(a,b){if(L(a)){b=b||[];for(var d=0,c=a.length;d<c;d++)b[d]=a[d]}else if(E(a))for(d in b=b||{},a)if("$"!==d.charAt(0)||"$"!==d.charAt(1))b[d]=a[d];return b||a}function oa(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d=typeof a,c;if(d==typeof b&&"object"==d)if(L(a)){if(!L(b))return!1;if((d=a.length)==b.length){for(c=
-0;c<d;c++)if(!oa(a[c],b[c]))return!1;return!0}}else{if(V(a))return V(b)?oa(a.getTime(),b.getTime()):!1;if($a(a))return $a(b)?a.toString()==b.toString():!1;if(bb(a)||bb(b)||Za(a)||Za(b)||L(b)||V(b)||$a(b))return!1;d=Z();for(c in a)if("$"!==c.charAt(0)&&!D(a[c])){if(!oa(a[c],b[c]))return!1;d[c]=!0}for(c in b)if(!(c in d)&&"$"!==c.charAt(0)&&y(b[c])&&!D(b[c]))return!1;return!0}return!1}function db(a,b,d){return a.concat(wa.call(b,d))}function vc(a,b){var d=2<arguments.length?wa.call(arguments,2):[];
-return!D(b)||b instanceof RegExp?b:d.length?function(){return arguments.length?b.apply(a,db(d,arguments,0)):b.apply(a,d)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function ce(a,b){var d=b;"string"===typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?d=v:Za(b)?d="$WINDOW":b&&W===b?d="$DOCUMENT":bb(b)&&(d="$SCOPE");return d}function eb(a,b){if(x(a))return v;N(b)||(b=b?2:null);return JSON.stringify(a,ce,b)}function wc(a){return F(a)?JSON.parse(a):a}function xc(a,b){a=a.replace(de,
-"");var d=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(d)?b:d}function Tb(a,b,d){d=d?-1:1;var c=a.getTimezoneOffset();b=xc(b,c);d*=b-c;a=new Date(a.getTime());a.setMinutes(a.getMinutes()+d);return a}function ta(a){a=C(a).clone();try{a.empty()}catch(b){}var d=C("<div>").append(a).html();try{return a[0].nodeType===Pa?G(d):d.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+G(b)})}catch(c){return G(d)}}function yc(a){try{return decodeURIComponent(a)}catch(b){}}function zc(a){var b=
-{};n((a||"").split("&"),function(a){var c,e,f;a&&(e=a=a.replace(/\+/g,"%20"),c=a.indexOf("="),-1!==c&&(e=a.substring(0,c),f=a.substring(c+1)),e=yc(e),y(e)&&(f=y(f)?yc(f):!0,sa.call(b,e)?L(b[e])?b[e].push(f):b[e]=[b[e],f]:b[e]=f))});return b}function Ub(a){var b=[];n(a,function(a,c){L(a)?n(a,function(a){b.push(ha(c,!0)+(!0===a?"":"="+ha(a,!0)))}):b.push(ha(c,!0)+(!0===a?"":"="+ha(a,!0)))});return b.length?b.join("&"):""}function qb(a){return ha(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,
-"+")}function ha(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function ee(a,b){var d,c,e=Qa.length;for(c=0;c<e;++c)if(d=Qa[c]+b,F(d=a.getAttribute(d)))return d;return null}function fe(a,b){var d,c,e={};n(Qa,function(b){b+="app";!d&&a.hasAttribute&&a.hasAttribute(b)&&(d=a,c=a.getAttribute(b))});n(Qa,function(b){b+="app";var e;!d&&(e=a.querySelector("["+b.replace(":","\\:")+"]"))&&
-(d=e,c=e.getAttribute(b))});d&&(e.strictDi=null!==ee(d,"strict-di"),b(d,c?[c]:[],e))}function Ac(a,b,d){E(d)||(d={});d=T({strictDi:!1},d);var c=function(){a=C(a);if(a.injector()){var c=a[0]===W?"document":ta(a);throw Da("btstrpd",c.replace(/</,"&lt;").replace(/>/,"&gt;"));}b=b||[];b.unshift(["$provide",function(b){b.value("$rootElement",a)}]);d.debugInfoEnabled&&b.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);b.unshift("ng");c=fb(b,d.strictDi);c.invoke(["$rootScope","$rootElement",
-"$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d);c(b)(a)})}]);return c},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;O&&e.test(O.name)&&(d.debugInfoEnabled=!0,O.name=O.name.replace(e,""));if(O&&!f.test(O.name))return c();O.name=O.name.replace(f,"");ia.resumeBootstrap=function(a){n(a,function(a){b.push(a)});return c()};D(ia.resumeDeferredBootstrap)&&ia.resumeDeferredBootstrap()}function ge(){O.name="NG_ENABLE_DEBUG_INFO!"+O.name;O.location.reload()}function he(a){a=
-ia.element(a).injector();if(!a)throw Da("test");return a.get("$$testability")}function Bc(a,b){b=b||"_";return a.replace(ie,function(a,c){return(c?b:"")+a.toLowerCase()})}function je(){var a;if(!Cc){var b=rb();(ua=x(b)?O.jQuery:b?O[b]:v)&&ua.fn.on?(C=ua,T(ua.fn,{scope:Ra.scope,isolateScope:Ra.isolateScope,controller:Ra.controller,injector:Ra.injector,inheritedData:Ra.inheritedData}),a=ua.cleanData,ua.cleanData=function(b){for(var c,e=0,f;null!=(f=b[e]);e++)(c=ua._data(f,"events"))&&c.$destroy&&ua(f).triggerHandler("$destroy");
-a(b)}):C=U;ia.element=C;Cc=!0}}function sb(a,b,d){if(!a)throw Da("areq",b||"?",d||"required");return a}function Sa(a,b,d){d&&L(a)&&(a=a[a.length-1]);sb(D(a),b,"not a function, got "+(a&&"object"===typeof a?a.constructor.name||"Object":typeof a));return a}function Ta(a,b){if("hasOwnProperty"===a)throw Da("badname",b);}function Dc(a,b,d){if(!b)return a;b=b.split(".");for(var c,e=a,f=b.length,g=0;g<f;g++)c=b[g],a&&(a=(e=a)[c]);return!d&&D(a)?vc(e,a):a}function tb(a){for(var b=a[0],d=a[a.length-1],c,
-e=1;b!==d&&(b=b.nextSibling);e++)if(c||a[e]!==b)c||(c=C(wa.call(a,0,e))),c.push(b);return c||a}function Z(){return Object.create(null)}function ke(a){function b(a,b,c){return a[b]||(a[b]=c())}var d=H("$injector"),c=H("ng");a=b(a,"angular",Object);a.$$minErr=a.$$minErr||H;return b(a,"module",function(){var a={};return function(f,g,h){if("hasOwnProperty"===f)throw c("badname","module");g&&a.hasOwnProperty(f)&&(a[f]=null);return b(a,f,function(){function a(b,d,e,f){f||(f=c);return function(){f[e||"push"]([b,
-d,arguments]);return K}}function b(a,d){return function(b,e){e&&D(e)&&(e.$$moduleName=f);c.push([a,d,arguments]);return K}}if(!g)throw d("nomod",f);var c=[],e=[],s=[],I=a("$injector","invoke","push",e),K={_invokeQueue:c,_configBlocks:e,_runBlocks:s,requires:g,name:f,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:b("$provide","decorator"),animation:b("$animateProvider",
-"register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),component:b("$compileProvider","component"),config:I,run:function(a){s.push(a);return this}};h&&I(h);return K})}})}function le(a){T(a,{bootstrap:Ac,copy:Oa,extend:T,merge:Zd,equals:oa,element:C,forEach:n,injector:fb,noop:B,bind:vc,toJson:eb,fromJson:wc,identity:ab,isUndefined:x,isDefined:y,isString:F,isFunction:D,isObject:E,isNumber:N,isElement:Rb,isArray:L,
-version:me,isDate:V,lowercase:G,uppercase:ub,callbacks:{counter:0},getTestability:he,$$minErr:H,$$csp:Ea,reloadWithDebugInfo:ge});Vb=ke(O);Vb("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:ne});a.provider("$compile",Ec).directive({a:oe,input:Fc,textarea:Fc,form:pe,script:qe,select:re,style:se,option:te,ngBind:ue,ngBindHtml:ve,ngBindTemplate:we,ngClass:xe,ngClassEven:ye,ngClassOdd:ze,ngCloak:Ae,ngController:Be,ngForm:Ce,ngHide:De,ngIf:Ee,ngInclude:Fe,ngInit:Ge,ngNonBindable:He,
-ngPluralize:Ie,ngRepeat:Je,ngShow:Ke,ngStyle:Le,ngSwitch:Me,ngSwitchWhen:Ne,ngSwitchDefault:Oe,ngOptions:Pe,ngTransclude:Qe,ngModel:Re,ngList:Se,ngChange:Te,pattern:Gc,ngPattern:Gc,required:Hc,ngRequired:Hc,minlength:Ic,ngMinlength:Ic,maxlength:Jc,ngMaxlength:Jc,ngValue:Ue,ngModelOptions:Ve}).directive({ngInclude:We}).directive(vb).directive(Kc);a.provider({$anchorScroll:Xe,$animate:Ye,$animateCss:Ze,$$animateJs:$e,$$animateQueue:af,$$AnimateRunner:bf,$$animateAsyncRun:cf,$browser:df,$cacheFactory:ef,
-$controller:ff,$document:gf,$exceptionHandler:hf,$filter:Lc,$$forceReflow:jf,$interpolate:kf,$interval:lf,$http:mf,$httpParamSerializer:nf,$httpParamSerializerJQLike:of,$httpBackend:pf,$xhrFactory:qf,$location:rf,$log:sf,$parse:tf,$rootScope:uf,$q:vf,$$q:wf,$sce:xf,$sceDelegate:yf,$sniffer:zf,$templateCache:Af,$templateRequest:Bf,$$testability:Cf,$timeout:Df,$window:Ef,$$rAF:Ff,$$jqLite:Gf,$$HashMap:Hf,$$cookieReader:If})}])}function gb(a){return a.replace(Jf,function(a,d,c,e){return e?c.toUpperCase():
-c}).replace(Kf,"Moz$1")}function Mc(a){a=a.nodeType;return 1===a||!a||9===a}function Nc(a,b){var d,c,e=b.createDocumentFragment(),f=[];if(Wb.test(a)){d=d||e.appendChild(b.createElement("div"));c=(Lf.exec(a)||["",""])[1].toLowerCase();c=da[c]||da._default;d.innerHTML=c[1]+a.replace(Mf,"<$1></$2>")+c[2];for(c=c[0];c--;)d=d.lastChild;f=db(f,d.childNodes);d=e.firstChild;d.textContent=""}else f.push(b.createTextNode(a));e.textContent="";e.innerHTML="";n(f,function(a){e.appendChild(a)});return e}function Oc(a,
-b){var d=a.parentNode;d&&d.replaceChild(b,a);b.appendChild(a)}function U(a){if(a instanceof U)return a;var b;F(a)&&(a=X(a),b=!0);if(!(this instanceof U)){if(b&&"<"!=a.charAt(0))throw Xb("nosel");return new U(a)}if(b){b=W;var d;a=(d=Nf.exec(a))?[b.createElement(d[1])]:(d=Nc(a,b))?d.childNodes:[]}Pc(this,a)}function Yb(a){return a.cloneNode(!0)}function wb(a,b){b||hb(a);if(a.querySelectorAll)for(var d=a.querySelectorAll("*"),c=0,e=d.length;c<e;c++)hb(d[c])}function Qc(a,b,d,c){if(y(c))throw Xb("offargs");
-var e=(c=xb(a))&&c.events,f=c&&c.handle;if(f)if(b){var g=function(b){var c=e[b];y(d)&&cb(c||[],d);y(d)&&c&&0<c.length||(a.removeEventListener(b,f,!1),delete e[b])};n(b.split(" "),function(a){g(a);yb[a]&&g(yb[a])})}else for(b in e)"$destroy"!==b&&a.removeEventListener(b,f,!1),delete e[b]}function hb(a,b){var d=a.ng339,c=d&&ib[d];c&&(b?delete c.data[b]:(c.handle&&(c.events.$destroy&&c.handle({},"$destroy"),Qc(a)),delete ib[d],a.ng339=v))}function xb(a,b){var d=a.ng339,d=d&&ib[d];b&&!d&&(a.ng339=d=++Of,
-d=ib[d]={events:{},data:{},handle:v});return d}function Zb(a,b,d){if(Mc(a)){var c=y(d),e=!c&&b&&!E(b),f=!b;a=(a=xb(a,!e))&&a.data;if(c)a[b]=d;else{if(f)return a;if(e)return a&&a[b];T(a,b)}}}function zb(a,b){return a.getAttribute?-1<(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" "):!1}function Ab(a,b){b&&a.setAttribute&&n(b.split(" "),function(b){a.setAttribute("class",X((" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+X(b)+" "," ")))})}function Bb(a,
-b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");n(b.split(" "),function(a){a=X(a);-1===d.indexOf(" "+a+" ")&&(d+=a+" ")});a.setAttribute("class",X(d))}}function Pc(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var d=b.length;if("number"===typeof d&&b.window!==b){if(d)for(var c=0;c<d;c++)a[a.length++]=b[c]}else a[a.length++]=b}}function Rc(a,b){return Cb(a,"$"+(b||"ngController")+"Controller")}function Cb(a,b,d){9==a.nodeType&&(a=a.documentElement);for(b=
-L(b)?b:[b];a;){for(var c=0,e=b.length;c<e;c++)if(y(d=C.data(a,b[c])))return d;a=a.parentNode||11===a.nodeType&&a.host}}function Sc(a){for(wb(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function $b(a,b){b||wb(a);var d=a.parentNode;d&&d.removeChild(a)}function Pf(a,b){b=b||O;if("complete"===b.document.readyState)b.setTimeout(a);else C(b).on("load",a)}function Tc(a,b){var d=Db[b.toLowerCase()];return d&&Uc[ra(a)]&&d}function Qf(a,b){var d=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};
-var f=b[d||c.type],g=f?f.length:0;if(g){if(x(c.immediatePropagationStopped)){var h=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0;c.stopPropagation&&c.stopPropagation();h&&h.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};var k=f.specialHandlerWrapper||Rf;1<g&&(f=na(f));for(var l=0;l<g;l++)c.isImmediatePropagationStopped()||k(a,c,f[l])}};d.elem=a;return d}function Rf(a,b,d){d.call(a,b)}function Sf(a,b,
-d){var c=b.relatedTarget;c&&(c===a||Tf.call(a,c))||d.call(a,b)}function Gf(){this.$get=function(){return T(U,{hasClass:function(a,b){a.attr&&(a=a[0]);return zb(a,b)},addClass:function(a,b){a.attr&&(a=a[0]);return Bb(a,b)},removeClass:function(a,b){a.attr&&(a=a[0]);return Ab(a,b)}})}}function Fa(a,b){var d=a&&a.$$hashKey;if(d)return"function"===typeof d&&(d=a.$$hashKey()),d;d=typeof a;return d="function"==d||"object"==d&&null!==a?a.$$hashKey=d+":"+(b||Yd)():d+":"+a}function Ua(a,b){if(b){var d=0;this.nextUid=
-function(){return++d}}n(a,this.put,this)}function Vc(a){a=a.toString().replace(Uf,"");return a.match(Vf)||a.match(Wf)}function Xf(a){return(a=Vc(a))?"function("+(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function fb(a,b){function d(a){return function(b,c){if(E(b))n(b,sc(a));else return a(b,c)}}function c(a,b){Ta(a,"service");if(D(b)||L(b))b=s.instantiate(b);if(!b.$get)throw Ga("pget",a);return r[a+"Provider"]=b}function e(a,b){return function(){var c=t.invoke(b,this);if(x(c))throw Ga("undef",a);
-return c}}function f(a,b,d){return c(a,{$get:!1!==d?e(a,b):b})}function g(a){sb(x(a)||L(a),"modulesToLoad","not an array");var b=[],c;n(a,function(a){function d(a){var b,c;b=0;for(c=a.length;b<c;b++){var e=a[b],f=s.get(e[0]);f[e[1]].apply(f,e[2])}}if(!m.get(a)){m.put(a,!0);try{F(a)?(c=Vb(a),b=b.concat(g(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):D(a)?b.push(s.invoke(a)):L(a)?b.push(s.invoke(a)):Sa(a,"module")}catch(e){throw L(a)&&(a=a[a.length-1]),e.message&&e.stack&&
--1==e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ga("modulerr",a,e.stack||e.message||e);}}});return b}function h(a,c){function d(b,e){if(a.hasOwnProperty(b)){if(a[b]===k)throw Ga("cdep",b+" <- "+l.join(" <- "));return a[b]}try{return l.unshift(b),a[b]=k,a[b]=c(b,e)}catch(f){throw a[b]===k&&delete a[b],f;}finally{l.shift()}}function e(a,c,f){var g=[];a=fb.$$annotate(a,b,f);for(var h=0,k=a.length;h<k;h++){var l=a[h];if("string"!==typeof l)throw Ga("itkn",l);g.push(c&&c.hasOwnProperty(l)?c[l]:
-d(l,f))}return g}return{invoke:function(a,b,c,d){"string"===typeof c&&(d=c,c=null);c=e(a,c,d);L(a)&&(a=a[a.length-1]);d=11>=xa?!1:"function"===typeof a&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(a));return d?(c.unshift(null),new (Function.prototype.bind.apply(a,c))):a.apply(b,c)},instantiate:function(a,b,c){var d=L(a)?a[a.length-1]:a;a=e(a,b,c);a.unshift(null);return new (Function.prototype.bind.apply(d,a))},get:d,annotate:fb.$$annotate,has:function(b){return r.hasOwnProperty(b+
-"Provider")||a.hasOwnProperty(b)}}}b=!0===b;var k={},l=[],m=new Ua([],!0),r={$provide:{provider:d(c),factory:d(f),service:d(function(a,b){return f(a,["$injector",function(a){return a.instantiate(b)}])}),value:d(function(a,b){return f(a,ba(b),!1)}),constant:d(function(a,b){Ta(a,"constant");r[a]=b;I[a]=b}),decorator:function(a,b){var c=s.get(a+"Provider"),d=c.$get;c.$get=function(){var a=t.invoke(d,c);return t.invoke(b,null,{$delegate:a})}}}},s=r.$injector=h(r,function(a,b){ia.isString(b)&&l.push(b);
-throw Ga("unpr",l.join(" <- "));}),I={},K=h(I,function(a,b){var c=s.get(a+"Provider",b);return t.invoke(c.$get,c,v,a)}),t=K;r.$injectorProvider={$get:ba(K)};var p=g(a),t=K.get("$injector");t.strictDi=b;n(p,function(a){a&&t.invoke(a)});return t}function Xe(){var a=!0;this.disableAutoScrolling=function(){a=!1};this.$get=["$window","$location","$rootScope",function(b,d,c){function e(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===ra(a))return b=a,!0});return b}function f(a){if(a){a.scrollIntoView();
-var c;c=g.yOffset;D(c)?c=c():Rb(c)?(c=c[0],c="fixed"!==b.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):N(c)||(c=0);c&&(a=a.getBoundingClientRect().top,b.scrollBy(0,a-c))}else b.scrollTo(0,0)}function g(a){a=F(a)?a:d.hash();var b;a?(b=h.getElementById(a))?f(b):(b=e(h.getElementsByName(a)))?f(b):"top"===a&&f(null):f(null)}var h=b.document;a&&c.$watch(function(){return d.hash()},function(a,b){a===b&&""===a||Pf(function(){c.$evalAsync(g)})});return g}]}function jb(a,b){if(!a&&!b)return"";
-if(!a)return b;if(!b)return a;L(a)&&(a=a.join(" "));L(b)&&(b=b.join(" "));return a+" "+b}function Yf(a){F(a)&&(a=a.split(" "));var b=Z();n(a,function(a){a.length&&(b[a]=!0)});return b}function Ha(a){return E(a)?a:{}}function Zf(a,b,d,c){function e(a){try{a.apply(null,wa.call(arguments,1))}finally{if(K--,0===K)for(;t.length;)try{t.pop()()}catch(b){d.error(b)}}}function f(){z=null;g();h()}function g(){a:{try{p=m.state;break a}catch(a){}p=void 0}p=x(p)?null:p;oa(p,$)&&(p=$);$=p}function h(){if(u!==k.url()||
-w!==p)u=k.url(),w=p,n(A,function(a){a(k.url(),p)})}var k=this,l=a.location,m=a.history,r=a.setTimeout,s=a.clearTimeout,I={};k.isMock=!1;var K=0,t=[];k.$$completeOutstandingRequest=e;k.$$incOutstandingRequestCount=function(){K++};k.notifyWhenNoOutstandingRequests=function(a){0===K?a():t.push(a)};var p,w,u=l.href,la=b.find("base"),z=null;g();w=p;k.url=function(b,d,e){x(e)&&(e=null);l!==a.location&&(l=a.location);m!==a.history&&(m=a.history);if(b){var f=w===e;if(u===b&&(!c.history||f))return k;var h=
-u&&Ia(u)===Ia(b);u=b;w=e;if(!c.history||h&&f){if(!h||z)z=b;d?l.replace(b):h?(d=l,e=b.indexOf("#"),e=-1===e?"":b.substr(e),d.hash=e):l.href=b;l.href!==b&&(z=b)}else m[d?"replaceState":"pushState"](e,"",b),g(),w=p;return k}return z||l.href.replace(/%27/g,"'")};k.state=function(){return p};var A=[],Q=!1,$=null;k.onUrlChange=function(b){if(!Q){if(c.history)C(a).on("popstate",f);C(a).on("hashchange",f);Q=!0}A.push(b);return b};k.$$applicationDestroyed=function(){C(a).off("hashchange popstate",f)};k.$$checkUrlChange=
-h;k.baseHref=function(){var a=la.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};k.defer=function(a,b){var c;K++;c=r(function(){delete I[c];e(a)},b||0);I[c]=!0;return c};k.defer.cancel=function(a){return I[a]?(delete I[a],s(a),e(B),!0):!1}}function df(){this.$get=["$window","$log","$sniffer","$document",function(a,b,d,c){return new Zf(a,c,b,d)}]}function ef(){this.$get=function(){function a(a,c){function e(a){a!=r&&(s?s==a&&(s=a.n):s=a,f(a.n,a.p),f(a,r),r=a,r.n=null)}function f(a,
-b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw H("$cacheFactory")("iid",a);var g=0,h=T({},c,{id:a}),k=Z(),l=c&&c.capacity||Number.MAX_VALUE,m=Z(),r=null,s=null;return b[a]={put:function(a,b){if(!x(b)){if(l<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}a in k||g++;k[a]=b;g>l&&this.remove(s.key);return b}},get:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;e(b)}return k[a]},remove:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;b==r&&(r=b.p);b==s&&(s=b.n);f(b.n,b.p);delete m[a]}a in
-k&&(delete k[a],g--)},removeAll:function(){k=Z();g=0;m=Z();r=s=null},destroy:function(){m=h=k=null;delete b[a]},info:function(){return T({},h,{size:g})}}}var b={};a.info=function(){var a={};n(b,function(b,e){a[e]=b.info()});return a};a.get=function(a){return b[a]};return a}}function Af(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function Ec(a,b){function d(a,b,c){var d=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,e={};n(a,function(a,f){var g=a.match(d);if(!g)throw ja("iscp",b,f,a,c?
-"controller bindings definition":"isolate scope definition");e[f]={mode:g[1][0],collection:"*"===g[2],optional:"?"===g[3],attrName:g[4]||f}});return e}function c(a){var b=a.charAt(0);if(!b||b!==G(b))throw ja("baddir",a);if(a!==a.trim())throw ja("baddir",a);}var e={},f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,g=/(([\w\-]+)(?:\:([^;]+))?;?)/,h=be("ngSrc,ngSrcset,src,srcset"),k=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,l=/^(on[a-z]+|formaction)$/;this.directive=function s(b,f){Ta(b,"directive");F(b)?(c(b),sb(f,"directiveFactory"),
-e.hasOwnProperty(b)||(e[b]=[],a.factory(b+"Directive",["$injector","$exceptionHandler",function(a,c){var f=[];n(e[b],function(e,g){try{var h=a.invoke(e);D(h)?h={compile:ba(h)}:!h.compile&&h.link&&(h.compile=ba(h.link));h.priority=h.priority||0;h.index=g;h.name=h.name||b;h.require=h.require||h.controller&&h.name;h.restrict=h.restrict||"EA";var k=h,l=h,m=h.name,s={isolateScope:null,bindToController:null};E(l.scope)&&(!0===l.bindToController?(s.bindToController=d(l.scope,m,!0),s.isolateScope={}):s.isolateScope=
-d(l.scope,m,!1));E(l.bindToController)&&(s.bindToController=d(l.bindToController,m,!0));if(E(s.bindToController)){var P=l.controller,S=l.controllerAs;if(!P)throw ja("noctrl",m);if(!Wc(P,S))throw ja("noident",m);}var ma=k.$$bindings=s;E(ma.isolateScope)&&(h.$$isolateBindings=ma.isolateScope);h.$$moduleName=e.$$moduleName;f.push(h)}catch(K){c(K)}});return f}])),e[b].push(f)):n(b,sc(s));return this};this.component=function(a,b){function c(a){function e(b){return D(b)||L(b)?function(c,d){return a.invoke(b,
-this,{$element:c,$attrs:d})}:b}var f=b.template||b.templateUrl?b.template:"";return{controller:d,controllerAs:Wc(b.controller)||b.controllerAs||"$ctrl",template:e(f),templateUrl:e(b.templateUrl),transclude:b.transclude,scope:{},bindToController:b.bindings||{},restrict:"E",require:b.require}}var d=b.controller||function(){};n(b,function(a,b){"$"===b.charAt(0)&&(c[b]=a)});c.$inject=["$injector"];return this.directive(a,c)};this.aHrefSanitizationWhitelist=function(a){return y(a)?(b.aHrefSanitizationWhitelist(a),
-this):b.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(a){return y(a)?(b.imgSrcSanitizationWhitelist(a),this):b.imgSrcSanitizationWhitelist()};var m=!0;this.debugInfoEnabled=function(a){return y(a)?(m=a,this):m};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(a,b,c,d,p,w,u,la,z,A){function Q(a,b,c){ba.innerHTML="<span "+b+">";b=ba.firstChild.attributes;var d=b[0];b.removeNamedItem(d.name);
-d.value=c;a.attributes.setNamedItem(d)}function $(a,b){try{a.addClass(b)}catch(c){}}function M(a,b,c,d,e){a instanceof C||(a=C(a));for(var f=/\S+/,g=0,h=a.length;g<h;g++){var k=a[g];k.nodeType===Pa&&k.nodeValue.match(f)&&Oc(k,a[g]=W.createElement("span"))}var l=P(a,b,a,c,d,e);M.$$addScopeClass(a);var m=null;return function(b,c,d){sb(b,"scope");e&&e.needsNewScope&&(b=b.$parent.$new());d=d||{};var f=d.parentBoundTranscludeFn,g=d.transcludeControllers;d=d.futureParentElement;f&&f.$$boundTransclude&&
-(f=f.$$boundTransclude);m||(m=(d=d&&d[0])?"foreignobject"!==ra(d)&&ga.call(d).match(/SVG/)?"svg":"html":"html");d="html"!==m?C(U(m,C("<div>").append(a).html())):c?Ra.clone.call(a):a;if(g)for(var h in g)d.data("$"+h+"Controller",g[h].instance);M.$$addScopeInfo(d,b);c&&c(d,b);l&&l(b,d,d,f);return d}}function P(a,b,c,d,e,f){function g(a,c,d,e){var f,k,l,m,p,s,u;if(A)for(u=Array(c.length),m=0;m<h.length;m+=3)f=h[m],u[f]=c[f];else u=c;m=0;for(p=h.length;m<p;)k=u[h[m++]],c=h[m++],f=h[m++],c?(c.scope?(l=
-a.$new(),M.$$addScopeInfo(C(k),l)):l=a,s=c.transcludeOnThisElement?S(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?S(a,b):null,c(f,l,k,d,s)):f&&f(a,k.childNodes,v,e)}for(var h=[],k,l,m,p,A,s=0;s<a.length;s++){k=new na;l=ma(a[s],[],k,0===s?d:v,e);(f=l.length?y(l,a[s],k,b,c,null,[],[],f):null)&&f.scope&&M.$$addScopeClass(k.$$element);k=f&&f.terminal||!(m=a[s].childNodes)||!m.length?null:P(m,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||k)h.push(s,f,k),p=!0,A=
-A||f;f=null}return p?g:null}function S(a,b,c){var d=function(d,e,f,g,h){d||(d=a.$new(!1,h),d.$$transcluded=!0);return b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})},e=d.$$slots=Z(),f;for(f in b.$$slots)e[f]=b.$$slots[f]?S(a,b.$$slots[f],c):null;return d}function ma(a,b,c,d,e){var h=c.$attr,k;switch(a.nodeType){case 1:H(b,va(ra(a)),"E",d,e);for(var l,m,p,s=a.attributes,A=0,u=s&&s.length;A<u;A++){var t=!1,w=!1;l=s[A];k=l.name;m=X(l.value);l=va(k);if(p=pa.test(l))k=
-k.replace(Xc,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()});(l=l.match(ua))&&O(l[1])&&(t=k,w=k.substr(0,k.length-5)+"end",k=k.substr(0,k.length-6));l=va(k.toLowerCase());h[l]=k;if(p||!c.hasOwnProperty(l))c[l]=m,Tc(a,l)&&(c[l]=!0);Y(a,b,m,l,p);H(b,l,"A",d,e,t,w)}a=a.className;E(a)&&(a=a.animVal);if(F(a)&&""!==a)for(;k=g.exec(a);)l=va(k[2]),H(b,l,"C",d,e)&&(c[l]=X(k[3])),a=a.substr(k.index+k[0].length);break;case Pa:if(11===xa)for(;a.parentNode&&a.nextSibling&&a.nextSibling.nodeType===
-Pa;)a.nodeValue+=a.nextSibling.nodeValue,a.parentNode.removeChild(a.nextSibling);N(b,a.nodeValue);break;case 8:try{if(k=f.exec(a.nodeValue))l=va(k[1]),H(b,l,"M",d,e)&&(c[l]=X(k[2]))}catch(M){}}b.sort(ya);return b}function q(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ja("uterdir",b,c);1==a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return C(d)}function Yc(a,b,c){return function(d,e,f,g,h){e=q(e[0],b,
-c);return a(d,e,f,g,h)}}function ac(a,b,c,d,e,f){if(a)return M(b,c,d,e,f);var g;return function(){g||(g=M(b,c,d,e,f),b=c=f=null);return g.apply(this,arguments)}}function y(a,b,d,e,f,g,h,l,m){function p(a,b,c,d){if(a){c&&(a=Yc(a,c,d));a.require=J.require;a.directiveName=H;if(P===J||J.$$isolateScope)a=ca(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=Yc(b,c,d));b.require=J.require;b.directiveName=H;if(P===J||J.$$isolateScope)b=ca(b,{isolateScope:!0});l.push(b)}}function s(a,b,c,d){var e;if(F(b)){var f=
-b.match(k);b=b.substring(f[0].length);var g=f[1]||f[3],f="?"===f[2];"^^"===g?c=c.parent():e=(e=d&&d[b])&&e.instance;if(!e){var h="$"+b+"Controller";e=g?c.inheritedData(h):c.data(h)}if(!e&&!f)throw ja("ctreq",b,a);}else if(L(b))for(e=[],g=0,f=b.length;g<f;g++)e[g]=s(a,b[g],c,d);else E(b)&&(e={},n(b,function(b,f){e[f]=s(a,b,c,d)}));return e||null}function A(a,b,c,d,e,f){var g=Z(),h;for(h in d){var k=d[h],l={$scope:k===P||k.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},m=k.controller;"@"==m&&
-(m=b[k.name]);l=w(m,l,!0,k.controllerAs);g[k.name]=l;B||a.data("$"+k.name+"Controller",l.instance)}return g}function u(a,c,e,f,g){function k(a,b,c,d){var e;bb(a)||(d=c,c=b,b=a,a=v);B&&(e=ma);c||(c=B?z.parent():z);if(d){var f=g.$$slots[d];if(f)return f(a,b,e,c,Eb);if(x(f))throw ja("noslot",d,ta(z));}else return g(a,b,e,c,Eb)}var m,p,t,w,ma,S,z,Ja;b===e?(f=d,z=d.$$element):(z=C(e),f=new na(z,d));t=c;P?w=c.$new(!0):Q&&(t=c.$parent);g&&(S=k,S.$$boundTransclude=g,S.isSlotFilled=function(a){return!!g.$$slots[a]});
-I&&(ma=A(z,f,S,I,w,c));P&&(M.$$addScopeInfo(z,w,!0,!($&&($===P||$===P.$$originalDirective))),M.$$addScopeClass(z,!0),w.$$isolateBindings=P.$$isolateBindings,(Ja=ia(c,f,w,w.$$isolateBindings,P))&&w.$on("$destroy",Ja));for(p in ma){Ja=I[p];var K=ma[p],la=Ja.$$bindings.bindToController;K.identifier&&la&&(m=ia(t,f,K.instance,la,Ja));var q=K();q!==K.instance&&(K.instance=q,z.data("$"+Ja.name+"Controller",q),m&&m(),m=ia(t,f,K.instance,la,Ja))}n(I,function(a,b){var c=a.require;a.bindToController&&!L(c)&&
-E(c)&&T(ma[b].instance,s(b,c,z,ma))});n(ma,function(a){D(a.instance.$onInit)&&a.instance.$onInit()});m=0;for(p=h.length;m<p;m++)t=h[m],ka(t,t.isolateScope?w:c,z,f,t.require&&s(t.directiveName,t.require,z,ma),S);var Eb=c;P&&(P.template||null===P.templateUrl)&&(Eb=w);a&&a(Eb,e.childNodes,v,g);for(m=l.length-1;0<=m;m--)t=l[m],ka(t,t.isolateScope?w:c,z,f,t.require&&s(t.directiveName,t.require,z,ma),S)}m=m||{};for(var t=-Number.MAX_VALUE,Q=m.newScopeDirective,I=m.controllerDirectives,P=m.newIsolateScopeDirective,
-$=m.templateDirective,S=m.nonTlbTranscludeDirective,z=!1,la=!1,B=m.hasElementTranscludeDirective,ea=d.$$element=C(b),J,H,G,ya=e,O,N=!1,Fb=!1,fa,R=0,Va=a.length;R<Va;R++){J=a[R];var Y=J.$$start,ba=J.$$end;Y&&(ea=q(b,Y,ba));G=v;if(t>J.priority)break;if(fa=J.scope)J.templateUrl||(E(fa)?(Wa("new/isolated scope",P||Q,J,ea),P=J):Wa("new/isolated scope",P,J,ea)),Q=Q||J;H=J.name;if(!N&&(J.replace&&(J.templateUrl||J.template)||J.transclude&&!J.$$tlb)){for(fa=R+1;N=a[fa++];)if(N.transclude&&!N.$$tlb||N.replace&&
-(N.templateUrl||N.template)){Fb=!0;break}N=!0}!J.templateUrl&&J.controller&&(fa=J.controller,I=I||Z(),Wa("'"+H+"' controller",I[H],J,ea),I[H]=J);if(fa=J.transclude)if(z=!0,J.$$tlb||(Wa("transclusion",S,J,ea),S=J),"element"==fa)B=!0,t=J.priority,G=ea,ea=d.$$element=C(W.createComment(" "+H+": "+d[H]+" ")),b=ea[0],aa(f,wa.call(G,0),b),ya=ac(Fb,G,e,t,g&&g.name,{nonTlbTranscludeDirective:S});else{var V=Z();G=C(Yb(b)).contents();if(E(fa)){G=[];var ha=Z(),da=Z();n(fa,function(a,b){var c="?"===a.charAt(0);
-a=c?a.substring(1):a;ha[a]=b;V[b]=null;da[b]=c});n(ea.contents(),function(a){var b=ha[va(ra(a))];b?(da[b]=!0,V[b]=V[b]||[],V[b].push(a)):G.push(a)});n(da,function(a,b){if(!a)throw ja("reqslot",b);});for(var ga in V)V[ga]&&(V[ga]=ac(Fb,V[ga],e))}ea.empty();ya=ac(Fb,G,e,v,v,{needsNewScope:J.$$isolateScope||J.$$newScope});ya.$$slots=V}if(J.template)if(la=!0,Wa("template",$,J,ea),$=J,fa=D(J.template)?J.template(ea,d):J.template,fa=qa(fa),J.replace){g=J;G=Wb.test(fa)?Zc(U(J.templateNamespace,X(fa))):[];
-b=G[0];if(1!=G.length||1!==b.nodeType)throw ja("tplrt",H,"");aa(f,ea,b);Va={$attr:{}};fa=ma(b,[],Va);var oa=a.splice(R+1,a.length-(R+1));(P||Q)&&$c(fa,P,Q);a=a.concat(fa).concat(oa);ad(d,Va);Va=a.length}else ea.html(fa);if(J.templateUrl)la=!0,Wa("template",$,J,ea),$=J,J.replace&&(g=J),u=$f(a.splice(R,a.length-R),ea,d,f,z&&ya,h,l,{controllerDirectives:I,newScopeDirective:Q!==J&&Q,newIsolateScopeDirective:P,templateDirective:$,nonTlbTranscludeDirective:S}),Va=a.length;else if(J.compile)try{O=J.compile(ea,
-d,ya),D(O)?p(null,O,Y,ba):O&&p(O.pre,O.post,Y,ba)}catch(pa){c(pa,ta(ea))}J.terminal&&(u.terminal=!0,t=Math.max(t,J.priority))}u.scope=Q&&!0===Q.scope;u.transcludeOnThisElement=z;u.templateOnThisElement=la;u.transclude=ya;m.hasElementTranscludeDirective=B;return u}function $c(a,b,c){for(var d=0,e=a.length;d<e;d++)a[d]=Sb(a[d],{$$isolateScope:b,$$newScope:c})}function H(b,d,f,g,h,k,l){if(d===h)return null;h=null;if(e.hasOwnProperty(d)){var m;d=a.get(d+"Directive");for(var p=0,A=d.length;p<A;p++)try{m=
-d[p],(x(g)||g>m.priority)&&-1!=m.restrict.indexOf(f)&&(k&&(m=Sb(m,{$$start:k,$$end:l})),b.push(m),h=m)}catch(t){c(t)}}return h}function O(b){if(e.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,f=c.length;d<f;d++)if(b=c[d],b.multiElement)return!0;return!1}function ad(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;n(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});n(b,function(b,f){"class"==f?($(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+
-b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function $f(a,b,c,e,f,g,h,k){var l=[],m,p,s=b[0],A=a.shift(),u=Sb(A,{templateUrl:null,transclude:null,replace:null,$$originalDirective:A}),w=D(A.templateUrl)?A.templateUrl(b,c):A.templateUrl,Q=A.templateNamespace;b.empty();d(w).then(function(d){var t,I;d=qa(d);if(A.replace){d=Wb.test(d)?Zc(U(Q,X(d))):[];t=d[0];if(1!=d.length||1!==t.nodeType)throw ja("tplrt",
-A.name,w);d={$attr:{}};aa(e,b,t);var M=ma(t,[],d);E(A.scope)&&$c(M,!0);a=M.concat(a);ad(c,d)}else t=s,b.html(d);a.unshift(u);m=y(a,t,c,f,b,A,g,h,k);n(e,function(a,c){a==t&&(e[c]=b[0])});for(p=P(b[0].childNodes,f);l.length;){d=l.shift();I=l.shift();var z=l.shift(),K=l.shift(),M=b[0];if(!d.$$destroyed){if(I!==s){var la=I.className;k.hasElementTranscludeDirective&&A.replace||(M=Yb(t));aa(z,C(I),M);$(C(M),la)}I=m.transcludeOnThisElement?S(d,m.transclude,K):K;m(p,d,M,e,I)}}l=null});return function(a,b,
-c,d,e){a=e;b.$$destroyed||(l?l.push(b,c,d,a):(m.transcludeOnThisElement&&(a=S(b,m.transclude,e)),m(p,b,c,d,a)))}}function ya(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function Wa(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw ja("multidir",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,ta(d));}function N(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;b&&M.$$addBindingClass(a);
-return function(a,c){var e=c.parent();b||M.$$addBindingClass(e);M.$$addBindingInfo(e,d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function U(a,b){a=G(a||"html");switch(a){case "svg":case "math":var c=W.createElement("div");c.innerHTML="<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function R(a,b){if("srcdoc"==b)return la.HTML;var c=ra(a);if("xlinkHref"==b||"form"==c&&"action"==b||"img"!=c&&("src"==b||"ngSrc"==b))return la.RESOURCE_URL}function Y(a,c,d,e,
-f){var g=R(a,e);f=h[e]||f;var k=b(d,!0,g,f);if(k){if("multiple"===e&&"select"===ra(a))throw ja("selmulti",ta(a));c.push({priority:100,compile:function(){return{pre:function(a,c,h){c=h.$$observers||(h.$$observers=Z());if(l.test(e))throw ja("nodomevents");var m=h[e];m!==d&&(k=m&&b(m,!0,g,f),d=m);k&&(h[e]=k(a),(c[e]||(c[e]=[])).$$inter=!0,(h.$$observers&&h.$$observers[e].$$scope||a).$watch(k,function(a,b){"class"===e&&a!=b?h.$updateClass(a,b):h.$set(e,a)}))}}}})}}function aa(a,b,c){var d=b[0],e=b.length,
-f=d.parentNode,g,h;if(a)for(g=0,h=a.length;g<h;g++)if(a[g]==d){a[g++]=c;h=g+e-1;for(var k=a.length;g<k;g++,h++)h<k?a[g]=a[h]:delete a[g];a.length-=e-1;a.context===d&&(a.context=c);break}f&&f.replaceChild(c,d);a=W.createDocumentFragment();for(g=0;g<e;g++)a.appendChild(b[g]);C.hasData(d)&&(C.data(c,C.data(d)),C(d).off("$destroy"));C.cleanData(a.querySelectorAll("*"));for(g=1;g<e;g++)delete b[g];b[0]=c;b.length=1}function ca(a,b){return T(function(){return a.apply(null,arguments)},a,b)}function ka(a,
-b,d,e,f,g){try{a(b,d,e,f,g)}catch(h){c(h,ta(d))}}function ia(a,c,d,e,f){var g=[];n(e,function(e,h){var k=e.attrName,l=e.optional,m,A,s,t;switch(e.mode){case "@":l||sa.call(c,k)||(d[h]=c[k]=void 0);c.$observe(k,function(a){F(a)&&(d[h]=a)});c.$$observers[k].$$scope=a;m=c[k];F(m)?d[h]=b(m)(a):Na(m)&&(d[h]=m);break;case "=":if(!sa.call(c,k)){if(l)break;c[k]=void 0}if(l&&!c[k])break;A=p(c[k]);t=A.literal?oa:function(a,b){return a===b||a!==a&&b!==b};s=A.assign||function(){m=d[h]=A(a);throw ja("nonassign",
-c[k],k,f.name);};m=d[h]=A(a);l=function(b){t(b,d[h])||(t(b,m)?s(a,b=d[h]):d[h]=b);return m=b};l.$stateful=!0;l=e.collection?a.$watchCollection(c[k],l):a.$watch(p(c[k],l),null,A.literal);g.push(l);break;case "<":if(!sa.call(c,k)){if(l)break;c[k]=void 0}if(l&&!c[k])break;A=p(c[k]);d[h]=A(a);l=a.$watch(A,function(a){d[h]=a},A.literal);g.push(l);break;case "&":A=c.hasOwnProperty(k)?p(c[k]):B;if(A===B&&l)break;d[h]=function(b){return A(a,b)}}});return g.length&&function(){for(var a=0,b=g.length;a<b;++a)g[a]()}}
-var V=/^\w/,ba=W.createElement("div"),na=function(a,b){if(b){var c=Object.keys(b),d,e,f;d=0;for(e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr={};this.$$element=a};na.prototype={$normalize:va,$addClass:function(a){a&&0<a.length&&z.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&z.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=bd(a,b);c&&c.length&&z.addClass(this.$$element,c);(c=bd(b,a))&&c.length&&z.removeClass(this.$$element,c)},$set:function(a,b,d,e){var f=
-Tc(this.$$element[0],a),g=cd[a],h=a;f?(this.$$element.prop(a,b),e=f):g&&(this[g]=b,h=g);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=Bc(a,"-"));f=ra(this.$$element);if("a"===f&&("href"===a||"xlinkHref"===a)||"img"===f&&"src"===a)this[a]=b=A(b,"src"===a);else if("img"===f&&"srcset"===a){for(var f="",g=X(b),k=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,k=/\s/.test(g)?k:/(,)/,g=g.split(k),k=Math.floor(g.length/2),l=0;l<k;l++)var m=2*l,f=f+A(X(g[m]),!0),f=f+(" "+X(g[m+1]));g=X(g[2*l]).split(/\s/);
-f+=A(X(g[0]),!0);2===g.length&&(f+=" "+X(g[1]));this[a]=b=f}!1!==d&&(null===b||x(b)?this.$$element.removeAttr(e):V.test(e)?this.$$element.attr(e,b):Q(this.$$element[0],e,b));(a=this.$$observers)&&n(a[h],function(a){try{a(b)}catch(d){c(d)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=Z()),e=d[a]||(d[a]=[]);e.push(b);u.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||x(c[a])||b(c[a])});return function(){cb(e,b)}}};var ha=b.startSymbol(),da=b.endSymbol(),qa="{{"==ha&&"}}"==
-da?ab:function(a){return a.replace(/\{\{/g,ha).replace(/}}/g,da)},pa=/^ngAttr[A-Z]/,ua=/^(.+)Start$/;M.$$addBindingInfo=m?function(a,b){var c=a.data("$binding")||[];L(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:B;M.$$addBindingClass=m?function(a){$(a,"ng-binding")}:B;M.$$addScopeInfo=m?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:B;M.$$addScopeClass=m?function(a,b){$(a,b?"ng-isolate-scope":"ng-scope")}:B;return M}]}function va(a){return gb(a.replace(Xc,
-""))}function bd(a,b){var d="",c=a.split(/\s+/),e=b.split(/\s+/),f=0;a:for(;f<c.length;f++){for(var g=c[f],h=0;h<e.length;h++)if(g==e[h])continue a;d+=(0<d.length?" ":"")+g}return d}function Zc(a){a=C(a);var b=a.length;if(1>=b)return a;for(;b--;)8===a[b].nodeType&&ag.call(a,b,1);return a}function Wc(a,b){if(b&&F(b))return b;if(F(a)){var d=dd.exec(a);if(d)return d[3]}}function ff(){var a={},b=!1;this.register=function(b,c){Ta(b,"controller");E(b)?T(a,b):a[b]=c};this.allowGlobals=function(){b=!0};this.$get=
-["$injector","$window",function(d,c){function e(a,b,c,d){if(!a||!E(a.$scope))throw H("$controller")("noscp",d,b);a.$scope[b]=c}return function(f,g,h,k){var l,m,r;h=!0===h;k&&F(k)&&(r=k);if(F(f)){k=f.match(dd);if(!k)throw bg("ctrlfmt",f);m=k[1];r=r||k[3];f=a.hasOwnProperty(m)?a[m]:Dc(g.$scope,m,!0)||(b?Dc(c,m,!0):v);Sa(f,m,!0)}if(h)return h=(L(f)?f[f.length-1]:f).prototype,l=Object.create(h||null),r&&e(g,r,l,m||f.name),T(function(){var a=d.invoke(f,l,g,m);a!==l&&(E(a)||D(a))&&(l=a,r&&e(g,r,l,m||f.name));
-return l},{instance:l,identifier:r});l=d.instantiate(f,g,m);r&&e(g,r,l,m||f.name);return l}}]}function gf(){this.$get=["$window",function(a){return C(a.document)}]}function hf(){this.$get=["$log",function(a){return function(b,d){a.error.apply(a,arguments)}}]}function bc(a){return E(a)?V(a)?a.toISOString():eb(a):a}function nf(){this.$get=function(){return function(a){if(!a)return"";var b=[];rc(a,function(a,c){null===a||x(a)||(L(a)?n(a,function(a,d){b.push(ha(c)+"="+ha(bc(a)))}):b.push(ha(c)+"="+ha(bc(a))))});
-return b.join("&")}}}function of(){this.$get=function(){return function(a){function b(a,e,f){null===a||x(a)||(L(a)?n(a,function(a,c){b(a,e+"["+(E(a)?c:"")+"]")}):E(a)&&!V(a)?rc(a,function(a,c){b(a,e+(f?"":"[")+c+(f?"":"]"))}):d.push(ha(e)+"="+ha(bc(a))))}if(!a)return"";var d=[];b(a,"",!0);return d.join("&")}}}function cc(a,b){if(F(a)){var d=a.replace(cg,"").trim();if(d){var c=b("Content-Type");(c=c&&0===c.indexOf(ed))||(c=(c=d.match(dg))&&eg[c[0]].test(d));c&&(a=wc(d))}}return a}function fd(a){var b=
-Z(),d;F(a)?n(a.split("\n"),function(a){d=a.indexOf(":");var e=G(X(a.substr(0,d)));a=X(a.substr(d+1));e&&(b[e]=b[e]?b[e]+", "+a:a)}):E(a)&&n(a,function(a,d){var f=G(d),g=X(a);f&&(b[f]=b[f]?b[f]+", "+g:g)});return b}function gd(a){var b;return function(d){b||(b=fd(a));return d?(d=b[G(d)],void 0===d&&(d=null),d):b}}function hd(a,b,d,c){if(D(c))return c(a,b,d);n(c,function(c){a=c(a,b,d)});return a}function mf(){var a=this.defaults={transformResponse:[cc],transformRequest:[function(a){return E(a)&&"[object File]"!==
-ga.call(a)&&"[object Blob]"!==ga.call(a)&&"[object FormData]"!==ga.call(a)?eb(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:na(dc),put:na(dc),patch:na(dc)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},b=!1;this.useApplyAsync=function(a){return y(a)?(b=!!a,this):b};var d=!0;this.useLegacyPromiseExtensions=function(a){return y(a)?(d=!!a,this):d};var c=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory",
-"$rootScope","$q","$injector",function(e,f,g,h,k,l){function m(b){function c(a){var b=T({},a);b.data=hd(a.data,a.headers,a.status,f.transformResponse);a=a.status;return 200<=a&&300>a?b:k.reject(b)}function e(a,b){var c,d={};n(a,function(a,e){D(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a});return d}if(!E(b))throw H("$http")("badreq",b);if(!F(b.url))throw H("$http")("badreq",b.url);var f=T({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer},
-b);f.headers=function(b){var c=a.headers,d=T({},b.headers),f,g,h,c=T({},c.common,c[G(b.method)]);a:for(f in c){g=G(f);for(h in d)if(G(h)===g)continue a;d[f]=c[f]}return e(d,na(b))}(b);f.method=ub(f.method);f.paramSerializer=F(f.paramSerializer)?l.get(f.paramSerializer):f.paramSerializer;var g=[function(b){var d=b.headers,e=hd(b.data,gd(d),v,b.transformRequest);x(e)&&n(d,function(a,b){"content-type"===G(b)&&delete d[b]});x(b.withCredentials)&&!x(a.withCredentials)&&(b.withCredentials=a.withCredentials);
-return r(b,e).then(c,c)},v],h=k.when(f);for(n(K,function(a){(a.request||a.requestError)&&g.unshift(a.request,a.requestError);(a.response||a.responseError)&&g.push(a.response,a.responseError)});g.length;){b=g.shift();var m=g.shift(),h=h.then(b,m)}d?(h.success=function(a){Sa(a,"fn");h.then(function(b){a(b.data,b.status,b.headers,f)});return h},h.error=function(a){Sa(a,"fn");h.then(null,function(b){a(b.data,b.status,b.headers,f)});return h}):(h.success=id("success"),h.error=id("error"));return h}function r(c,
-d){function g(a,c,d,e){function f(){l(c,a,d,e)}K&&(200<=a&&300>a?K.put(S,[a,c,fd(d),e]):K.remove(S));b?h.$applyAsync(f):(f(),h.$$phase||h.$apply())}function l(a,b,d,e){b=-1<=b?b:0;(200<=b&&300>b?A.resolve:A.reject)({data:a,status:b,headers:gd(d),config:c,statusText:e})}function r(a){l(a.data,a.status,na(a.headers()),a.statusText)}function z(){var a=m.pendingRequests.indexOf(c);-1!==a&&m.pendingRequests.splice(a,1)}var A=k.defer(),Q=A.promise,K,M,P=c.headers,S=s(c.url,c.paramSerializer(c.params));
-m.pendingRequests.push(c);Q.then(z,z);!c.cache&&!a.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(K=E(c.cache)?c.cache:E(a.cache)?a.cache:I);K&&(M=K.get(S),y(M)?M&&D(M.then)?M.then(r,r):L(M)?l(M[1],M[0],na(M[2]),M[3]):l(M,200,{},"OK"):K.put(S,Q));x(M)&&((M=jd(c.url)?f()[c.xsrfCookieName||a.xsrfCookieName]:v)&&(P[c.xsrfHeaderName||a.xsrfHeaderName]=M),e(c.method,S,d,g,P,c.timeout,c.withCredentials,c.responseType));return Q}function s(a,b){0<b.length&&(a+=(-1==a.indexOf("?")?"?":"&")+b);
-return a}var I=g("$http");a.paramSerializer=F(a.paramSerializer)?l.get(a.paramSerializer):a.paramSerializer;var K=[];n(c,function(a){K.unshift(F(a)?l.get(a):l.invoke(a))});m.pendingRequests=[];(function(a){n(arguments,function(a){m[a]=function(b,c){return m(T({},c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){n(arguments,function(a){m[a]=function(b,c,d){return m(T({},d||{},{method:a,url:b,data:c}))}})})("post","put","patch");m.defaults=a;return m}]}function qf(){this.$get=
-function(){return function(){return new O.XMLHttpRequest}}}function pf(){this.$get=["$browser","$window","$document","$xhrFactory",function(a,b,d,c){return fg(a,c,a.defer,b.angular.callbacks,d[0])}]}function fg(a,b,d,c,e){function f(a,b,d){var f=e.createElement("script"),m=null;f.type="text/javascript";f.src=a;f.async=!0;m=function(a){f.removeEventListener("load",m,!1);f.removeEventListener("error",m,!1);e.body.removeChild(f);f=null;var g=-1,I="unknown";a&&("load"!==a.type||c[b].called||(a={type:"error"}),
-I=a.type,g="error"===a.type?404:200);d&&d(g,I)};f.addEventListener("load",m,!1);f.addEventListener("error",m,!1);e.body.appendChild(f);return m}return function(e,h,k,l,m,r,s,I){function K(){w&&w();u&&u.abort()}function t(b,c,e,f,g){y(z)&&d.cancel(z);w=u=null;b(c,e,f,g);a.$$completeOutstandingRequest(B)}a.$$incOutstandingRequestCount();h=h||a.url();if("jsonp"==G(e)){var p="_"+(c.counter++).toString(36);c[p]=function(a){c[p].data=a;c[p].called=!0};var w=f(h.replace("JSON_CALLBACK","angular.callbacks."+
-p),p,function(a,b){t(l,a,c[p].data,"",b);c[p]=B})}else{var u=b(e,h);u.open(e,h,!0);n(m,function(a,b){y(a)&&u.setRequestHeader(b,a)});u.onload=function(){var a=u.statusText||"",b="response"in u?u.response:u.responseText,c=1223===u.status?204:u.status;0===c&&(c=b?200:"file"==za(h).protocol?404:0);t(l,c,b,u.getAllResponseHeaders(),a)};e=function(){t(l,-1,null,null,"")};u.onerror=e;u.onabort=e;s&&(u.withCredentials=!0);if(I)try{u.responseType=I}catch(la){if("json"!==I)throw la;}u.send(x(k)?null:k)}if(0<
-r)var z=d(K,r);else r&&D(r.then)&&r.then(K)}}function kf(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a};this.endSymbol=function(a){return a?(b=a,this):b};this.$get=["$parse","$exceptionHandler","$sce",function(d,c,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(r,a).replace(s,b)}function h(a,b,c,d){var e;return e=a.$watch(function(a){e();return d(a)},b,c)}function k(f,k,r,p){function s(a){try{var b=a;a=r?e.getTrusted(r,b):e.valueOf(b);var d;if(p&&!y(a))d=
-a;else if(null==a)d="";else{switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=eb(a)}d=a}return d}catch(g){c(Ka.interr(f,g))}}if(!f.length||-1===f.indexOf(a)){var u;k||(k=g(f),u=ba(k),u.exp=f,u.expressions=[],u.$$watchDelegate=h);return u}p=!!p;var n,z,A=0,Q=[],$=[];u=f.length;for(var M=[],P=[];A<u;)if(-1!=(n=f.indexOf(a,A))&&-1!=(z=f.indexOf(b,n+l)))A!==n&&M.push(g(f.substring(A,n))),A=f.substring(n+l,z),Q.push(A),$.push(d(A,s)),A=z+m,P.push(M.length),M.push("");else{A!==u&&
-M.push(g(f.substring(A)));break}r&&1<M.length&&Ka.throwNoconcat(f);if(!k||Q.length){var S=function(a){for(var b=0,c=Q.length;b<c;b++){if(p&&x(a[b]))return;M[P[b]]=a[b]}return M.join("")};return T(function(a){var b=0,d=Q.length,e=Array(d);try{for(;b<d;b++)e[b]=$[b](a);return S(e)}catch(g){c(Ka.interr(f,g))}},{exp:f,expressions:Q,$$watchDelegate:function(a,b){var c;return a.$watchGroup($,function(d,e){var f=S(d);D(b)&&b.call(this,f,d!==e?c:f,a);c=f})}})}}var l=a.length,m=b.length,r=new RegExp(a.replace(/./g,
-f),"g"),s=new RegExp(b.replace(/./g,f),"g");k.startSymbol=function(){return a};k.endSymbol=function(){return b};return k}]}function lf(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(a,b,d,c,e){function f(f,k,l,m){function r(){s?f.apply(null,I):f(p)}var s=4<arguments.length,I=s?wa.call(arguments,4):[],K=b.setInterval,t=b.clearInterval,p=0,w=y(m)&&!m,u=(w?c:d).defer(),n=u.promise;l=y(l)?l:0;n.$$intervalId=K(function(){w?e.defer(r):a.$evalAsync(r);u.notify(p++);0<l&&p>=l&&(u.resolve(p),
-t(n.$$intervalId),delete g[n.$$intervalId]);w||a.$apply()},k);g[n.$$intervalId]=u;return n}var g={};f.cancel=function(a){return a&&a.$$intervalId in g?(g[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete g[a.$$intervalId],!0):!1};return f}]}function ec(a){a=a.split("/");for(var b=a.length;b--;)a[b]=qb(a[b]);return a.join("/")}function kd(a,b){var d=za(a);b.$$protocol=d.protocol;b.$$host=d.hostname;b.$$port=ca(d.port)||gg[d.protocol]||null}function ld(a,b){var d="/"!==a.charAt(0);
-d&&(a="/"+a);var c=za(a);b.$$path=decodeURIComponent(d&&"/"===c.pathname.charAt(0)?c.pathname.substring(1):c.pathname);b.$$search=zc(c.search);b.$$hash=decodeURIComponent(c.hash);b.$$path&&"/"!=b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function pa(a,b){if(0===b.indexOf(a))return b.substr(a.length)}function Ia(a){var b=a.indexOf("#");return-1==b?a:a.substr(0,b)}function kb(a){return a.replace(/(#.+)|#$/,"$1")}function fc(a,b,d){this.$$html5=!0;d=d||"";kd(a,this);this.$$parse=function(a){var d=pa(b,
-a);if(!F(d))throw Gb("ipthprfx",a,b);ld(d,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=Ub(this.$$search),d=this.$$hash?"#"+qb(this.$$hash):"";this.$$url=ec(this.$$path)+(a?"?"+a:"")+d;this.$$absUrl=b+this.$$url.substr(1)};this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;y(f=pa(a,c))?(g=f,g=y(f=pa(d,f))?b+(pa("/",f)||f):a+g):y(f=pa(b,c))?g=b+f:b==c+"/"&&(g=b);g&&this.$$parse(g);return!!g}}function gc(a,b,d){kd(a,this);
-this.$$parse=function(c){var e=pa(a,c)||pa(b,c),f;x(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",x(e)&&(a=c,this.replace())):(f=pa(d,e),x(f)&&(f=e));ld(f,this);c=this.$$path;var e=a,g=/^\/[A-Z]:(\/.*)/;0===f.indexOf(e)&&(f=f.replace(e,""));g.exec(f)||(c=(f=g.exec(c))?f[1]:c);this.$$path=c;this.$$compose()};this.$$compose=function(){var b=Ub(this.$$search),e=this.$$hash?"#"+qb(this.$$hash):"";this.$$url=ec(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+(this.$$url?d+this.$$url:"")};this.$$parseLinkUrl=
-function(b,d){return Ia(a)==Ia(b)?(this.$$parse(b),!0):!1}}function md(a,b,d){this.$$html5=!0;gc.apply(this,arguments);this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;a==Ia(c)?f=c:(g=pa(b,c))?f=a+d+g:b===c+"/"&&(f=b);f&&this.$$parse(f);return!!f};this.$$compose=function(){var b=Ub(this.$$search),e=this.$$hash?"#"+qb(this.$$hash):"";this.$$url=ec(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+d+this.$$url}}function Hb(a){return function(){return this[a]}}function nd(a,
-b){return function(d){if(x(d))return this[a];this[a]=b(d);this.$$compose();return this}}function rf(){var a="",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return y(b)?(a=b,this):a};this.html5Mode=function(a){return Na(a)?(b.enabled=a,this):E(a)?(Na(a.enabled)&&(b.enabled=a.enabled),Na(a.requireBase)&&(b.requireBase=a.requireBase),Na(a.rewriteLinks)&&(b.rewriteLinks=a.rewriteLinks),this):b};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(d,
-c,e,f,g){function h(a,b,d){var e=l.url(),f=l.$$state;try{c.url(a,b,d),l.$$state=c.state()}catch(g){throw l.url(e),l.$$state=f,g;}}function k(a,b){d.$broadcast("$locationChangeSuccess",l.absUrl(),a,l.$$state,b)}var l,m;m=c.baseHref();var r=c.url(),s;if(b.enabled){if(!m&&b.requireBase)throw Gb("nobase");s=r.substring(0,r.indexOf("/",r.indexOf("//")+2))+(m||"/");m=e.history?fc:md}else s=Ia(r),m=gc;var I=s.substr(0,Ia(s).lastIndexOf("/")+1);l=new m(s,I,"#"+a);l.$$parseLinkUrl(r,r);l.$$state=c.state();
-var n=/^\s*(javascript|mailto):/i;f.on("click",function(a){if(b.rewriteLinks&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!=a.which&&2!=a.button){for(var e=C(a.target);"a"!==ra(e[0]);)if(e[0]===f[0]||!(e=e.parent())[0])return;var h=e.prop("href"),k=e.attr("href")||e.attr("xlink:href");E(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=za(h.animVal).href);n.test(h)||!h||e.attr("target")||a.isDefaultPrevented()||!l.$$parseLinkUrl(h,k)||(a.preventDefault(),l.absUrl()!=c.url()&&(d.$apply(),g.angular["ff-684208-preventDefault"]=
-!0))}});kb(l.absUrl())!=kb(r)&&c.url(l.absUrl(),!0);var t=!0;c.onUrlChange(function(a,b){x(pa(I,a))?g.location.href=a:(d.$evalAsync(function(){var c=l.absUrl(),e=l.$$state,f;a=kb(a);l.$$parse(a);l.$$state=b;f=d.$broadcast("$locationChangeStart",a,c,b,e).defaultPrevented;l.absUrl()===a&&(f?(l.$$parse(c),l.$$state=e,h(c,!1,e)):(t=!1,k(c,e)))}),d.$$phase||d.$digest())});d.$watch(function(){var a=kb(c.url()),b=kb(l.absUrl()),f=c.state(),g=l.$$replace,m=a!==b||l.$$html5&&e.history&&f!==l.$$state;if(t||
-m)t=!1,d.$evalAsync(function(){var b=l.absUrl(),c=d.$broadcast("$locationChangeStart",b,a,l.$$state,f).defaultPrevented;l.absUrl()===b&&(c?(l.$$parse(a),l.$$state=f):(m&&h(b,g,f===l.$$state?null:l.$$state),k(a,f)))});l.$$replace=!1});return l}]}function sf(){var a=!0,b=this;this.debugEnabled=function(b){return y(b)?(a=b,this):a};this.$get=["$window",function(d){function c(a){a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&
-(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=d.console||{},e=b[a]||b.log||B;a=!1;try{a=!!e.apply}catch(k){}return a?function(){var a=[];n(arguments,function(b){a.push(c(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function Xa(a,b){if("__defineGetter__"===a||"__defineSetter__"===a||"__lookupGetter__"===a||"__lookupSetter__"===
-a||"__proto__"===a)throw ka("isecfld",b);return a}function hg(a){return a+""}function Aa(a,b){if(a){if(a.constructor===a)throw ka("isecfn",b);if(a.window===a)throw ka("isecwindow",b);if(a.children&&(a.nodeName||a.prop&&a.attr&&a.find))throw ka("isecdom",b);if(a===Object)throw ka("isecobj",b);}return a}function od(a,b){if(a){if(a.constructor===a)throw ka("isecfn",b);if(a===ig||a===jg||a===kg)throw ka("isecff",b);}}function Ib(a,b){if(a&&(a===(0).constructor||a===(!1).constructor||a==="".constructor||
-a==={}.constructor||a===[].constructor||a===Function.constructor))throw ka("isecaf",b);}function lg(a,b){return"undefined"!==typeof a?a:b}function pd(a,b){return"undefined"===typeof a?b:"undefined"===typeof b?a:a+b}function R(a,b){var d,c;switch(a.type){case q.Program:d=!0;n(a.body,function(a){R(a.expression,b);d=d&&a.expression.constant});a.constant=d;break;case q.Literal:a.constant=!0;a.toWatch=[];break;case q.UnaryExpression:R(a.argument,b);a.constant=a.argument.constant;a.toWatch=a.argument.toWatch;
-break;case q.BinaryExpression:R(a.left,b);R(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case q.LogicalExpression:R(a.left,b);R(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.constant?[]:[a];break;case q.ConditionalExpression:R(a.test,b);R(a.alternate,b);R(a.consequent,b);a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant;a.toWatch=a.constant?[]:[a];break;case q.Identifier:a.constant=!1;a.toWatch=
-[a];break;case q.MemberExpression:R(a.object,b);a.computed&&R(a.property,b);a.constant=a.object.constant&&(!a.computed||a.property.constant);a.toWatch=[a];break;case q.CallExpression:d=a.filter?!b(a.callee.name).$stateful:!1;c=[];n(a.arguments,function(a){R(a,b);d=d&&a.constant;a.constant||c.push.apply(c,a.toWatch)});a.constant=d;a.toWatch=a.filter&&!b(a.callee.name).$stateful?c:[a];break;case q.AssignmentExpression:R(a.left,b);R(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=[a];
-break;case q.ArrayExpression:d=!0;c=[];n(a.elements,function(a){R(a,b);d=d&&a.constant;a.constant||c.push.apply(c,a.toWatch)});a.constant=d;a.toWatch=c;break;case q.ObjectExpression:d=!0;c=[];n(a.properties,function(a){R(a.value,b);d=d&&a.value.constant;a.value.constant||c.push.apply(c,a.value.toWatch)});a.constant=d;a.toWatch=c;break;case q.ThisExpression:a.constant=!1;a.toWatch=[];break;case q.LocalsExpression:a.constant=!1,a.toWatch=[]}}function qd(a){if(1==a.length){a=a[0].expression;var b=a.toWatch;
-return 1!==b.length?b:b[0]!==a?b:v}}function rd(a){return a.type===q.Identifier||a.type===q.MemberExpression}function sd(a){if(1===a.body.length&&rd(a.body[0].expression))return{type:q.AssignmentExpression,left:a.body[0].expression,right:{type:q.NGValueParameter},operator:"="}}function td(a){return 0===a.body.length||1===a.body.length&&(a.body[0].expression.type===q.Literal||a.body[0].expression.type===q.ArrayExpression||a.body[0].expression.type===q.ObjectExpression)}function ud(a,b){this.astBuilder=
-a;this.$filter=b}function vd(a,b){this.astBuilder=a;this.$filter=b}function Jb(a){return"constructor"==a}function hc(a){return D(a.valueOf)?a.valueOf():mg.call(a)}function tf(){var a=Z(),b=Z();this.$get=["$filter",function(d){function c(c,f,r){var u,n,z;r=r||K;switch(typeof c){case "string":z=c=c.trim();var A=r?b:a;u=A[z];if(!u){":"===c.charAt(0)&&":"===c.charAt(1)&&(n=!0,c=c.substring(2));u=r?I:s;var Q=new ic(u);u=(new jc(Q,d,u)).parse(c);u.constant?u.$$watchDelegate=l:n?u.$$watchDelegate=u.literal?
-k:h:u.inputs&&(u.$$watchDelegate=g);r&&(u=e(u));A[z]=u}return m(u,f);case "function":return m(c,f);default:return m(B,f)}}function e(a){function b(c,d,e,f){var g=K;K=!0;try{return a(c,d,e,f)}finally{K=g}}if(!a)return a;b.$$watchDelegate=a.$$watchDelegate;b.assign=e(a.assign);b.constant=a.constant;b.literal=a.literal;for(var c=0;a.inputs&&c<a.inputs.length;++c)a.inputs[c]=e(a.inputs[c]);b.inputs=a.inputs;return b}function f(a,b){return null==a||null==b?a===b:"object"===typeof a&&(a=hc(a),"object"===
-typeof a)?!1:a===b||a!==a&&b!==b}function g(a,b,c,d,e){var g=d.inputs,h;if(1===g.length){var k=f,g=g[0];return a.$watch(function(a){var b=g(a);f(b,k)||(h=d(a,v,v,[b]),k=b&&hc(b));return h},b,c,e)}for(var l=[],m=[],r=0,s=g.length;r<s;r++)l[r]=f,m[r]=null;return a.$watch(function(a){for(var b=!1,c=0,e=g.length;c<e;c++){var k=g[c](a);if(b||(b=!f(k,l[c])))m[c]=k,l[c]=k&&hc(k)}b&&(h=d(a,v,v,m));return h},b,c,e)}function h(a,b,c,d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a;
-D(b)&&b.apply(this,arguments);y(a)&&d.$$postDigest(function(){y(f)&&e()})},c)}function k(a,b,c,d){function e(a){var b=!0;n(a,function(a){y(a)||(b=!1)});return b}var f,g;return f=a.$watch(function(a){return d(a)},function(a,c,d){g=a;D(b)&&b.call(this,a,c,d);e(a)&&d.$$postDigest(function(){e(g)&&f()})},c)}function l(a,b,c,d){var e;return e=a.$watch(function(a){e();return d(a)},b,c)}function m(a,b){if(!b)return a;var c=a.$$watchDelegate,d=!1,c=c!==k&&c!==h?function(c,e,f,g){f=d&&g?g[0]:a(c,e,f,g);return b(f,
-c,e)}:function(c,d,e,f){e=a(c,d,e,f);c=b(e,c,d);return y(e)?c:e};a.$$watchDelegate&&a.$$watchDelegate!==g?c.$$watchDelegate=a.$$watchDelegate:b.$stateful||(c.$$watchDelegate=g,d=!a.inputs,c.inputs=a.inputs?a.inputs:[a]);return c}var r=Ea().noUnsafeEval,s={csp:r,expensiveChecks:!1},I={csp:r,expensiveChecks:!0},K=!1;c.$$runningExpensiveChecks=function(){return K};return c}]}function vf(){this.$get=["$rootScope","$exceptionHandler",function(a,b){return wd(function(b){a.$evalAsync(b)},b)}]}function wf(){this.$get=
-["$browser","$exceptionHandler",function(a,b){return wd(function(b){a.defer(b)},b)}]}function wd(a,b){function d(){this.$$state={status:0}}function c(a,b){return function(c){b.call(a,c)}}function e(c){!c.processScheduled&&c.pending&&(c.processScheduled=!0,a(function(){var a,d,e;e=c.pending;c.processScheduled=!1;c.pending=v;for(var f=0,g=e.length;f<g;++f){d=e[f][0];a=e[f][c.status];try{D(a)?d.resolve(a(c.value)):1===c.status?d.resolve(c.value):d.reject(c.value)}catch(h){d.reject(h),b(h)}}}))}function f(){this.promise=
-new d}var g=H("$q",TypeError);T(d.prototype,{then:function(a,b,c){if(x(a)&&x(b)&&x(c))return this;var d=new f;this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&e(this.$$state);return d.promise},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return k(b,!0,a)},function(b){return k(b,!1,a)},b)}});T(f.prototype,{resolve:function(a){this.promise.$$state.status||(a===this.promise?this.$$reject(g("qcycle",
-a)):this.$$resolve(a))},$$resolve:function(a){function d(a){k||(k=!0,h.$$resolve(a))}function f(a){k||(k=!0,h.$$reject(a))}var g,h=this,k=!1;try{if(E(a)||D(a))g=a&&a.then;D(g)?(this.promise.$$state.status=-1,g.call(a,d,f,c(this,this.notify))):(this.promise.$$state.value=a,this.promise.$$state.status=1,e(this.promise.$$state))}catch(l){f(l),b(l)}},reject:function(a){this.promise.$$state.status||this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=a;this.promise.$$state.status=2;e(this.promise.$$state)},
-notify:function(c){var d=this.promise.$$state.pending;0>=this.promise.$$state.status&&d&&d.length&&a(function(){for(var a,e,f=0,g=d.length;f<g;f++){e=d[f][0];a=d[f][3];try{e.notify(D(a)?a(c):c)}catch(h){b(h)}}})}});var h=function(a,b){var c=new f;b?c.resolve(a):c.reject(a);return c.promise},k=function(a,b,c){var d=null;try{D(c)&&(d=c())}catch(e){return h(e,!1)}return d&&D(d.then)?d.then(function(){return h(a,b)},function(a){return h(a,!1)}):h(a,b)},l=function(a,b,c,d){var e=new f;e.resolve(a);return e.promise.then(b,
-c,d)},m=function(a){if(!D(a))throw g("norslvr",a);var b=new f;a(function(a){b.resolve(a)},function(a){b.reject(a)});return b.promise};m.prototype=d.prototype;m.defer=function(){var a=new f;a.resolve=c(a,a.resolve);a.reject=c(a,a.reject);a.notify=c(a,a.notify);return a};m.reject=function(a){var b=new f;b.reject(a);return b.promise};m.when=l;m.resolve=l;m.all=function(a){var b=new f,c=0,d=L(a)?[]:{};n(a,function(a,e){c++;l(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||
-b.reject(a)})});0===c&&b.resolve(d);return b.promise};return m}function Ff(){this.$get=["$window","$timeout",function(a,b){var d=a.requestAnimationFrame||a.webkitRequestAnimationFrame,c=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=!!d,f=e?function(a){var b=d(a);return function(){c(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};f.supported=e;return f}]}function uf(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=
-this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++pb;this.$$ChildScope=null}b.prototype=a;return b}var b=10,d=H("$rootScope"),c=null,e=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$exceptionHandler","$parse","$browser",function(f,g,h){function k(a){a.currentScope.$$destroyed=!0}function l(a){9===xa&&(a.$$childHead&&l(a.$$childHead),a.$$nextSibling&&l(a.$$nextSibling));a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=
-a.$$childTail=a.$root=a.$$watchers=null}function m(){this.$id=++pb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function r(a){if(w.$$phase)throw d("inprog",w.$$phase);w.$$phase=a}function s(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function I(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&
-delete a.$$listenerCount[c];while(a=a.$parent)}function q(){}function t(){for(;z.length;)try{z.shift()()}catch(a){f(a)}e=null}function p(){null===e&&(e=h.defer(function(){w.$apply(t)}))}m.prototype={constructor:m,$new:function(b,c){var d;c=c||this;b?(d=new m,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope);d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(b||c!=this)&&d.$on("$destroy",
-k);return d},$watch:function(a,b,d,e){var f=g(a);if(f.$$watchDelegate)return f.$$watchDelegate(this,b,d,f,a);var h=this,k=h.$$watchers,l={fn:b,last:q,get:f,exp:e||a,eq:!!d};c=null;D(b)||(l.fn=B);k||(k=h.$$watchers=[]);k.unshift(l);s(this,1);return function(){0<=cb(k,l)&&s(h,-1);c=null}},$watchGroup:function(a,b){function c(){h=!1;k?(k=!1,b(e,e,g)):b(e,d,g)}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,k=!0;if(!a.length){var l=!0;g.$evalAsync(function(){l&&b(e,e,g)});return function(){l=
-!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});n(a,function(a,b){var k=g.$watch(a,function(a,f){e[b]=a;d[b]=f;h||(h=!0,g.$evalAsync(c))});f.push(k)});return function(){for(;f.length;)f.shift()()}},$watchCollection:function(a,b){function c(a){e=a;var b,d,g,h;if(!x(e)){if(E(e))if(Ca(e))for(f!==r&&(f=r,u=f.length=0,l++),a=e.length,u!==a&&(l++,f.length=u=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(l++,f[b]=g);else{f!==s&&(f=s={},u=0,l++);a=0;for(b in e)sa.call(e,
-b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(l++,f[b]=g)):(u++,f[b]=g,l++));if(u>a)for(b in l++,f)sa.call(e,b)||(u--,delete f[b])}else f!==e&&(f=e,l++);return l}}c.$stateful=!0;var d=this,e,f,h,k=1<b.length,l=0,m=g(a,c),r=[],s={},p=!0,u=0;return this.$watch(m,function(){p?(p=!1,b(e,e,d)):b(e,h,d);if(k)if(E(e))if(Ca(e)){h=Array(e.length);for(var a=0;a<e.length;a++)h[a]=e[a]}else for(a in h={},e)sa.call(e,a)&&(h[a]=e[a]);else h=e})},$digest:function(){var a,g,k,l,m,s,p,n,I=b,z,y=[],x,C;
-r("$digest");h.$$checkUrlChange();this===w&&null!==e&&(h.defer.cancel(e),t());c=null;do{n=!1;for(z=this;u.length;){try{C=u.shift(),C.scope.$eval(C.expression,C.locals)}catch(B){f(B)}c=null}a:do{if(s=z.$$watchers)for(p=s.length;p--;)try{if(a=s[p])if(m=a.get,(g=m(z))!==(k=a.last)&&!(a.eq?oa(g,k):"number"===typeof g&&"number"===typeof k&&isNaN(g)&&isNaN(k)))n=!0,c=a,a.last=a.eq?Oa(g,null):g,l=a.fn,l(g,k===q?g:k,z),5>I&&(x=4-I,y[x]||(y[x]=[]),y[x].push({msg:D(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):
-a.exp,newVal:g,oldVal:k}));else if(a===c){n=!1;break a}}catch(E){f(E)}if(!(s=z.$$watchersCount&&z.$$childHead||z!==this&&z.$$nextSibling))for(;z!==this&&!(s=z.$$nextSibling);)z=z.$parent}while(z=s);if((n||u.length)&&!I--)throw w.$$phase=null,d("infdig",b,y);}while(n||u.length);for(w.$$phase=null;v.length;)try{v.shift()()}catch(H){f(H)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===w&&h.$$applicationDestroyed();s(this,-this.$$watchersCount);
-for(var b in this.$$listenerCount)I(this,this.$$listenerCount[b],b);a&&a.$$childHead==this&&(a.$$childHead=this.$$nextSibling);a&&a.$$childTail==this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=B;this.$on=this.$watch=this.$watchGroup=function(){return B};this.$$listeners={};this.$$nextSibling=
-null;l(this)}},$eval:function(a,b){return g(a)(this,b)},$evalAsync:function(a,b){w.$$phase||u.length||h.defer(function(){u.length&&w.$digest()});u.push({scope:this,expression:g(a),locals:b})},$$postDigest:function(a){v.push(a)},$apply:function(a){try{r("$apply");try{return this.$eval(a)}finally{w.$$phase=null}}catch(b){f(b)}finally{try{w.$digest()}catch(c){throw f(c),c;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&z.push(b);a=g(a);p()},$on:function(a,b){var c=this.$$listeners[a];
-c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(c[d]=null,I(e,1,a))}},$emit:function(a,b){var c=[],d,e=this,g=!1,h={name:a,targetScope:e,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},k=db([h],arguments,1),l,m;do{d=e.$$listeners[a]||c;h.currentScope=e;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,
-k)}catch(r){f(r)}else d.splice(l,1),l--,m--;if(g)return h.currentScope=null,h;e=e.$parent}while(e);h.currentScope=null;return h},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var g=db([e],arguments,1),h,k;c=d;){e.currentScope=c;d=c.$$listeners[a]||[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null,g)}catch(l){f(l)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&
-c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope=null;return e}};var w=new m,u=w.$$asyncQueue=[],v=w.$$postDigestQueue=[],z=w.$$applyAsyncQueue=[];return w}]}function ne(){var a=/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return y(b)?(a=b,this):a};this.imgSrcSanitizationWhitelist=function(a){return y(a)?(b=a,this):b};this.$get=function(){return function(d,c){var e=
-c?b:a,f;f=za(d).href;return""===f||f.match(e)?d:"unsafe:"+f}}}function ng(a){if("self"===a)return a;if(F(a)){if(-1<a.indexOf("***"))throw Ba("iwcard",a);a=xd(a).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return new RegExp("^"+a+"$")}if($a(a))return new RegExp("^"+a.source+"$");throw Ba("imatcher");}function yd(a){var b=[];y(a)&&n(a,function(a){b.push(ng(a))});return b}function yf(){this.SCE_CONTEXTS=qa;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){arguments.length&&(a=yd(b));return a};
-this.resourceUrlBlacklist=function(a){arguments.length&&(b=yd(a));return b};this.$get=["$injector",function(d){function c(a,b){return"self"===a?jd(b):!!a.exec(b.href)}function e(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var f=function(a){throw Ba("unsafe");};d.has("$sanitize")&&(f=d.get("$sanitize"));
-var g=e(),h={};h[qa.HTML]=e(g);h[qa.CSS]=e(g);h[qa.URL]=e(g);h[qa.JS]=e(g);h[qa.RESOURCE_URL]=e(h[qa.URL]);return{trustAs:function(a,b){var c=h.hasOwnProperty(a)?h[a]:null;if(!c)throw Ba("icontext",a,b);if(null===b||x(b)||""===b)return b;if("string"!==typeof b)throw Ba("itype",a);return new c(b)},getTrusted:function(d,e){if(null===e||x(e)||""===e)return e;var g=h.hasOwnProperty(d)?h[d]:null;if(g&&e instanceof g)return e.$$unwrapTrustedValue();if(d===qa.RESOURCE_URL){var g=za(e.toString()),r,s,n=!1;
-r=0;for(s=a.length;r<s;r++)if(c(a[r],g)){n=!0;break}if(n)for(r=0,s=b.length;r<s;r++)if(c(b[r],g)){n=!1;break}if(n)return e;throw Ba("insecurl",e.toString());}if(d===qa.HTML)return f(e);throw Ba("unsafe");},valueOf:function(a){return a instanceof g?a.$$unwrapTrustedValue():a}}}]}function xf(){var a=!0;this.enabled=function(b){arguments.length&&(a=!!b);return a};this.$get=["$parse","$sceDelegate",function(b,d){if(a&&8>xa)throw Ba("iequirks");var c=na(qa);c.isEnabled=function(){return a};c.trustAs=d.trustAs;
-c.getTrusted=d.getTrusted;c.valueOf=d.valueOf;a||(c.trustAs=c.getTrusted=function(a,b){return b},c.valueOf=ab);c.parseAs=function(a,d){var e=b(d);return e.literal&&e.constant?e:b(d,function(b){return c.getTrusted(a,b)})};var e=c.parseAs,f=c.getTrusted,g=c.trustAs;n(qa,function(a,b){var d=G(b);c[gb("parse_as_"+d)]=function(b){return e(a,b)};c[gb("get_trusted_"+d)]=function(b){return f(a,b)};c[gb("trust_as_"+d)]=function(b){return g(a,b)}});return c}]}function zf(){this.$get=["$window","$document",
-function(a,b){var d={},c=ca((/android (\d+)/.exec(G((a.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((a.navigator||{}).userAgent),f=b[0]||{},g,h=/^(Moz|webkit|ms)(?=[A-Z])/,k=f.body&&f.body.style,l=!1,m=!1;if(k){for(var r in k)if(l=h.exec(r)){g=l[0];g=g.substr(0,1).toUpperCase()+g.substr(1);break}g||(g="WebkitOpacity"in k&&"webkit");l=!!("transition"in k||g+"Transition"in k);m=!!("animation"in k||g+"Animation"in k);!c||l&&m||(l=F(k.webkitTransition),m=F(k.webkitAnimation))}return{history:!(!a.history||
-!a.history.pushState||4>c||e),hasEvent:function(a){if("input"===a&&11>=xa)return!1;if(x(d[a])){var b=f.createElement("div");d[a]="on"+a in b}return d[a]},csp:Ea(),vendorPrefix:g,transitions:l,animations:m,android:c}}]}function Bf(){var a;this.httpOptions=function(b){return b?(a=b,this):a};this.$get=["$templateCache","$http","$q","$sce",function(b,d,c,e){function f(g,h){f.totalPendingRequests++;F(g)&&b.get(g)||(g=e.getTrustedResourceUrl(g));var k=d.defaults&&d.defaults.transformResponse;L(k)?k=k.filter(function(a){return a!==
-cc}):k===cc&&(k=null);return d.get(g,T({cache:b,transformResponse:k},a))["finally"](function(){f.totalPendingRequests--}).then(function(a){b.put(g,a.data);return a.data},function(a){if(!h)throw ja("tpload",g,a.status,a.statusText);return c.reject(a)})}f.totalPendingRequests=0;return f}]}function Cf(){this.$get=["$rootScope","$browser","$location",function(a,b,d){return{findBindings:function(a,b,d){a=a.getElementsByClassName("ng-binding");var g=[];n(a,function(a){var c=ia.element(a).data("$binding");
-c&&n(c,function(c){d?(new RegExp("(^|\\s)"+xd(b)+"(\\s|\\||$)")).test(c)&&g.push(a):-1!=c.indexOf(b)&&g.push(a)})});return g},findModels:function(a,b,d){for(var g=["ng-","data-ng-","ng\\:"],h=0;h<g.length;++h){var k=a.querySelectorAll("["+g[h]+"model"+(d?"=":"*=")+'"'+b+'"]');if(k.length)return k}},getLocation:function(){return d.url()},setLocation:function(b){b!==d.url()&&(d.url(b),a.$digest())},whenStable:function(a){b.notifyWhenNoOutstandingRequests(a)}}}]}function Df(){this.$get=["$rootScope",
-"$browser","$q","$$q","$exceptionHandler",function(a,b,d,c,e){function f(f,k,l){D(f)||(l=k,k=f,f=B);var m=wa.call(arguments,3),r=y(l)&&!l,s=(r?c:d).defer(),n=s.promise,q;q=b.defer(function(){try{s.resolve(f.apply(null,m))}catch(b){s.reject(b),e(b)}finally{delete g[n.$$timeoutId]}r||a.$apply()},k);n.$$timeoutId=q;g[q]=s;return n}var g={};f.cancel=function(a){return a&&a.$$timeoutId in g?(g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1};return f}]}function za(a){xa&&
-(Y.setAttribute("href",a),a=Y.href);Y.setAttribute("href",a);return{href:Y.href,protocol:Y.protocol?Y.protocol.replace(/:$/,""):"",host:Y.host,search:Y.search?Y.search.replace(/^\?/,""):"",hash:Y.hash?Y.hash.replace(/^#/,""):"",hostname:Y.hostname,port:Y.port,pathname:"/"===Y.pathname.charAt(0)?Y.pathname:"/"+Y.pathname}}function jd(a){a=F(a)?za(a):a;return a.protocol===zd.protocol&&a.host===zd.host}function Ef(){this.$get=ba(O)}function Ad(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}
-var d=a[0]||{},c={},e="";return function(){var a,g,h,k,l;a=d.cookie||"";if(a!==e)for(e=a,a=e.split("; "),c={},h=0;h<a.length;h++)g=a[h],k=g.indexOf("="),0<k&&(l=b(g.substring(0,k)),x(c[l])&&(c[l]=b(g.substring(k+1))));return c}}function If(){this.$get=Ad}function Lc(a){function b(d,c){if(E(d)){var e={};n(d,function(a,c){e[c]=b(c,a)});return e}return a.factory(d+"Filter",c)}this.register=b;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];b("currency",Bd);b("date",Cd);
-b("filter",og);b("json",pg);b("limitTo",qg);b("lowercase",rg);b("number",Dd);b("orderBy",Ed);b("uppercase",sg)}function og(){return function(a,b,d){if(!Ca(a)){if(null==a)return a;throw H("filter")("notarray",a);}var c;switch(kc(b)){case "function":break;case "boolean":case "null":case "number":case "string":c=!0;case "object":b=tg(b,d,c);break;default:return a}return Array.prototype.filter.call(a,b)}}function tg(a,b,d){var c=E(a)&&"$"in a;!0===b?b=oa:D(b)||(b=function(a,b){if(x(a))return!1;if(null===
-a||null===b)return a===b;if(E(b)||E(a)&&!tc(a))return!1;a=G(""+a);b=G(""+b);return-1!==a.indexOf(b)});return function(e){return c&&!E(e)?La(e,a.$,b,!1):La(e,a,b,d)}}function La(a,b,d,c,e){var f=kc(a),g=kc(b);if("string"===g&&"!"===b.charAt(0))return!La(a,b.substring(1),d,c);if(L(a))return a.some(function(a){return La(a,b,d,c)});switch(f){case "object":var h;if(c){for(h in a)if("$"!==h.charAt(0)&&La(a[h],b,d,!0))return!0;return e?!1:La(a,b,d,!1)}if("object"===g){for(h in b)if(e=b[h],!D(e)&&!x(e)&&
-(f="$"===h,!La(f?a:a[h],e,d,f,f)))return!1;return!0}return d(a,b);case "function":return!1;default:return d(a,b)}}function kc(a){return null===a?"null":typeof a}function Bd(a){var b=a.NUMBER_FORMATS;return function(a,c,e){x(c)&&(c=b.CURRENCY_SYM);x(e)&&(e=b.PATTERNS[1].maxFrac);return null==a?a:Fd(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,e).replace(/\u00A4/g,c)}}function Dd(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Fd(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function ug(a){var b=
-0,d,c,e,f,g;-1<(c=a.indexOf(Gd))&&(a=a.replace(Gd,""));0<(e=a.search(/e/i))?(0>c&&(c=e),c+=+a.slice(e+1),a=a.substring(0,e)):0>c&&(c=a.length);for(e=0;a.charAt(e)==lc;e++);if(e==(g=a.length))d=[0],c=1;else{for(g--;a.charAt(g)==lc;)g--;c-=e;d=[];for(f=0;e<=g;e++,f++)d[f]=+a.charAt(e)}c>Hd&&(d=d.splice(0,Hd-1),b=c-1,c=1);return{d:d,e:b,i:c}}function vg(a,b,d,c){var e=a.d,f=e.length-a.i;b=x(b)?Math.min(Math.max(d,f),c):+b;d=b+a.i;c=e[d];if(0<d)e.splice(d);else{a.i=1;e.length=d=b+1;for(var g=0;g<d;g++)e[g]=
-0}for(5<=c&&e[d-1]++;f<b;f++)e.push(0);if(b=e.reduceRight(function(a,b,c,d){b+=a;d[c]=b%10;return Math.floor(b/10)},0))e.unshift(b),a.i++}function Fd(a,b,d,c,e){if(!F(a)&&!N(a)||isNaN(a))return"";var f=!isFinite(a),g=!1,h=Math.abs(a)+"",k="";if(f)k="\u221e";else{g=ug(h);vg(g,e,b.minFrac,b.maxFrac);k=g.d;h=g.i;e=g.e;f=[];for(g=k.reduce(function(a,b){return a&&!b},!0);0>h;)k.unshift(0),h++;0<h?f=k.splice(h):(f=k,k=[0]);h=[];for(k.length>b.lgSize&&h.unshift(k.splice(-b.lgSize).join(""));k.length>b.gSize;)h.unshift(k.splice(-b.gSize).join(""));
-k.length&&h.unshift(k.join(""));k=h.join(d);f.length&&(k+=c+f.join(""));e&&(k+="e+"+e)}return 0>a&&!g?b.negPre+k+b.negSuf:b.posPre+k+b.posSuf}function Kb(a,b,d){var c="";0>a&&(c="-",a=-a);for(a=""+a;a.length<b;)a=lc+a;d&&(a=a.substr(a.length-b));return c+a}function aa(a,b,d,c){d=d||0;return function(e){e=e["get"+a]();if(0<d||e>-d)e+=d;0===e&&-12==d&&(e=12);return Kb(e,b,c)}}function Lb(a,b){return function(d,c){var e=d["get"+a](),f=ub(b?"SHORT"+a:a);return c[f][e]}}function Id(a){var b=(new Date(a,
-0,1)).getDay();return new Date(a,0,(4>=b?5:12)-b)}function Jd(a){return function(b){var d=Id(b.getFullYear());b=+new Date(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))-+d;b=1+Math.round(b/6048E5);return Kb(b,a)}}function mc(a,b){return 0>=a.getFullYear()?b.ERAS[0]:b.ERAS[1]}function Cd(a){function b(a){var b;if(b=a.match(d)){a=new Date(0);var f=0,g=0,h=b[8]?a.setUTCFullYear:a.setFullYear,k=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=ca(b[9]+b[10]),g=ca(b[9]+b[11]));h.call(a,ca(b[1]),ca(b[2])-
-1,ca(b[3]));f=ca(b[4]||0)-f;g=ca(b[5]||0)-g;h=ca(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));k.call(a,f,g,h,b)}return a}var d=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,f){var g="",h=[],k,l;d=d||"mediumDate";d=a.DATETIME_FORMATS[d]||d;F(c)&&(c=wg.test(c)?ca(c):b(c));N(c)&&(c=new Date(c));if(!V(c)||!isFinite(c.getTime()))return c;for(;d;)(l=xg.exec(d))?(h=db(h,l,1),d=h.pop()):(h.push(d),d=null);var m=c.getTimezoneOffset();
-f&&(m=xc(f,m),c=Tb(c,f,!0));n(h,function(b){k=yg[b];g+=k?k(c,a.DATETIME_FORMATS,m):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function pg(){return function(a,b){x(b)&&(b=2);return eb(a,b)}}function qg(){return function(a,b,d){b=Infinity===Math.abs(Number(b))?Number(b):ca(b);if(isNaN(b))return a;N(a)&&(a=a.toString());if(!L(a)&&!F(a))return a;d=!d||isNaN(d)?0:ca(d);d=0>d?Math.max(0,a.length+d):d;return 0<=b?a.slice(d,d+b):0===d?a.slice(b,a.length):a.slice(Math.max(0,d+b),
-d)}}function Ed(a){function b(b,d){d=d?-1:1;return b.map(function(b){var c=1,h=ab;if(D(b))h=b;else if(F(b)){if("+"==b.charAt(0)||"-"==b.charAt(0))c="-"==b.charAt(0)?-1:1,b=b.substring(1);if(""!==b&&(h=a(b),h.constant))var k=h(),h=function(a){return a[k]}}return{get:h,descending:c*d}})}function d(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}return function(a,e,f){if(null==a)return a;if(!Ca(a))throw H("orderBy")("notarray",a);L(e)||(e=[e]);0===e.length&&
-(e=["+"]);var g=b(e,f);g.push({get:function(){return{}},descending:f?-1:1});a=Array.prototype.map.call(a,function(a,b){return{value:a,predicateValues:g.map(function(c){var e=c.get(a);c=typeof e;if(null===e)c="string",e="null";else if("string"===c)e=e.toLowerCase();else if("object"===c)a:{if("function"===typeof e.valueOf&&(e=e.valueOf(),d(e)))break a;if(tc(e)&&(e=e.toString(),d(e)))break a;e=b}return{value:e,type:c}})}});a.sort(function(a,b){for(var c=0,d=0,e=g.length;d<e;++d){var c=a.predicateValues[d],
-f=b.predicateValues[d],n=0;c.type===f.type?c.value!==f.value&&(n=c.value<f.value?-1:1):n=c.type<f.type?-1:1;if(c=n*g[d].descending)break}return c});return a=a.map(function(a){return a.value})}}function Ma(a){D(a)&&(a={link:a});a.restrict=a.restrict||"AC";return ba(a)}function Kd(a,b,d,c,e){var f=this,g=[];f.$error={};f.$$success={};f.$pending=v;f.$name=e(b.name||b.ngForm||"")(d);f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;f.$submitted=!1;f.$$parentForm=Mb;f.$rollbackViewValue=function(){n(g,
-function(a){a.$rollbackViewValue()})};f.$commitViewValue=function(){n(g,function(a){a.$commitViewValue()})};f.$addControl=function(a){Ta(a.$name,"input");g.push(a);a.$name&&(f[a.$name]=a);a.$$parentForm=f};f.$$renameControl=function(a,b){var c=a.$name;f[c]===a&&delete f[c];f[b]=a;a.$name=b};f.$removeControl=function(a){a.$name&&f[a.$name]===a&&delete f[a.$name];n(f.$pending,function(b,c){f.$setValidity(c,null,a)});n(f.$error,function(b,c){f.$setValidity(c,null,a)});n(f.$$success,function(b,c){f.$setValidity(c,
-null,a)});cb(g,a);a.$$parentForm=Mb};Ld({ctrl:this,$element:a,set:function(a,b,c){var d=a[b];d?-1===d.indexOf(c)&&d.push(c):a[b]=[c]},unset:function(a,b,c){var d=a[b];d&&(cb(d,c),0===d.length&&delete a[b])},$animate:c});f.$setDirty=function(){c.removeClass(a,Ya);c.addClass(a,Nb);f.$dirty=!0;f.$pristine=!1;f.$$parentForm.$setDirty()};f.$setPristine=function(){c.setClass(a,Ya,Nb+" ng-submitted");f.$dirty=!1;f.$pristine=!0;f.$submitted=!1;n(g,function(a){a.$setPristine()})};f.$setUntouched=function(){n(g,
-function(a){a.$setUntouched()})};f.$setSubmitted=function(){c.addClass(a,"ng-submitted");f.$submitted=!0;f.$$parentForm.$setSubmitted()}}function nc(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function lb(a,b,d,c,e,f){var g=G(b[0].type);if(!e.android){var h=!1;b.on("compositionstart",function(a){h=!0});b.on("compositionend",function(){h=!1;k()})}var k=function(a){l&&(f.defer.cancel(l),l=null);if(!h){var e=b.val();a=a&&a.type;"password"===g||d.ngTrim&&"false"===d.ngTrim||
-(e=X(e));(c.$viewValue!==e||""===e&&c.$$hasNativeValidators)&&c.$setViewValue(e,a)}};if(e.hasEvent("input"))b.on("input",k);else{var l,m=function(a,b,c){l||(l=f.defer(function(){l=null;b&&b.value===c||k(a)}))};b.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(e.hasEvent("paste"))b.on("paste cut",m)}b.on("change",k);c.$render=function(){var a=c.$isEmpty(c.$viewValue)?"":c.$viewValue;b.val()!==a&&b.val(a)}}function Ob(a,b){return function(d,c){var e,
-f;if(V(d))return d;if(F(d)){'"'==d.charAt(0)&&'"'==d.charAt(d.length-1)&&(d=d.substring(1,d.length-1));if(zg.test(d))return new Date(d);a.lastIndex=0;if(e=a.exec(d))return e.shift(),f=c?{yyyy:c.getFullYear(),MM:c.getMonth()+1,dd:c.getDate(),HH:c.getHours(),mm:c.getMinutes(),ss:c.getSeconds(),sss:c.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},n(e,function(a,c){c<b.length&&(f[b[c]]=+a)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1E3*f.sss||0)}return NaN}}function mb(a,b,d,c){return function(e,
-f,g,h,k,l,m){function r(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function s(a){return y(a)&&!V(a)?d(a)||v:a}Md(e,f,g,h);lb(e,f,g,h,k,l);var n=h&&h.$options&&h.$options.timezone,q;h.$$parserName=a;h.$parsers.push(function(a){return h.$isEmpty(a)?null:b.test(a)?(a=d(a,q),n&&(a=Tb(a,n)),a):v});h.$formatters.push(function(a){if(a&&!V(a))throw nb("datefmt",a);if(r(a))return(q=a)&&n&&(q=Tb(q,n,!0)),m("date")(a,c,n);q=null;return""});if(y(g.min)||g.ngMin){var t;h.$validators.min=function(a){return!r(a)||
-x(t)||d(a)>=t};g.$observe("min",function(a){t=s(a);h.$validate()})}if(y(g.max)||g.ngMax){var p;h.$validators.max=function(a){return!r(a)||x(p)||d(a)<=p};g.$observe("max",function(a){p=s(a);h.$validate()})}}}function Md(a,b,d,c){(c.$$hasNativeValidators=E(b[0].validity))&&c.$parsers.push(function(a){var c=b.prop("validity")||{};return c.badInput||c.typeMismatch?v:a})}function Nd(a,b,d,c,e){if(y(c)){a=a(c);if(!a.constant)throw nb("constexpr",d,c);return a(b)}return e}function oc(a,b){a="ngClass"+a;
-return["$animate",function(d){function c(a,b){var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],m=0;m<b.length;m++)if(e==b[m])continue a;c.push(e)}return c}function e(a){var b=[];return L(a)?(n(a,function(a){b=b.concat(e(a))}),b):F(a)?a.split(" "):E(a)?(n(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b):a}return{restrict:"AC",link:function(f,g,h){function k(a,b){var c=g.data("$classCounts")||Z(),d=[];n(a,function(a){if(0<b||c[a])c[a]=(c[a]||0)+b,c[a]===+(0<b)&&d.push(a)});g.data("$classCounts",
-c);return d.join(" ")}function l(a){if(!0===b||f.$index%2===b){var l=e(a||[]);if(!m){var n=k(l,1);h.$addClass(n)}else if(!oa(a,m)){var q=e(m),n=c(l,q),l=c(q,l),n=k(n,1),l=k(l,-1);n&&n.length&&d.addClass(g,n);l&&l.length&&d.removeClass(g,l)}}m=na(a)}var m;f.$watch(h[a],l,!0);h.$observe("class",function(b){l(f.$eval(h[a]))});"ngClass"!==a&&f.$watch("$index",function(c,d){var g=c&1;if(g!==(d&1)){var l=e(f.$eval(h[a]));g===b?(g=k(l,1),h.$addClass(g)):(g=k(l,-1),h.$removeClass(g))}})}}}]}function Ld(a){function b(a,
-b){b&&!f[a]?(k.addClass(e,a),f[a]=!0):!b&&f[a]&&(k.removeClass(e,a),f[a]=!1)}function d(a,c){a=a?"-"+Bc(a,"-"):"";b(ob+a,!0===c);b(Od+a,!1===c)}var c=a.ctrl,e=a.$element,f={},g=a.set,h=a.unset,k=a.$animate;f[Od]=!(f[ob]=e.hasClass(ob));c.$setValidity=function(a,e,f){x(e)?(c.$pending||(c.$pending={}),g(c.$pending,a,f)):(c.$pending&&h(c.$pending,a,f),Pd(c.$pending)&&(c.$pending=v));Na(e)?e?(h(c.$error,a,f),g(c.$$success,a,f)):(g(c.$error,a,f),h(c.$$success,a,f)):(h(c.$error,a,f),h(c.$$success,a,f));
-c.$pending?(b(Qd,!0),c.$valid=c.$invalid=v,d("",null)):(b(Qd,!1),c.$valid=Pd(c.$error),c.$invalid=!c.$valid,d("",c.$valid));e=c.$pending&&c.$pending[a]?v:c.$error[a]?!1:c.$$success[a]?!0:null;d(a,e);c.$$parentForm.$setValidity(a,e,c)}}function Pd(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}var Ag=/^\/(.+)\/([a-z]*)$/,sa=Object.prototype.hasOwnProperty,G=function(a){return F(a)?a.toLowerCase():a},ub=function(a){return F(a)?a.toUpperCase():a},xa,C,ua,wa=[].slice,ag=[].splice,Bg=
-[].push,ga=Object.prototype.toString,uc=Object.getPrototypeOf,Da=H("ng"),ia=O.angular||(O.angular={}),Vb,pb=0;xa=W.documentMode;B.$inject=[];ab.$inject=[];var L=Array.isArray,ae=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,X=function(a){return F(a)?a.trim():a},xd=function(a){return a.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ea=function(){if(!y(Ea.rules)){var a=W.querySelector("[ng-csp]")||W.querySelector("[data-ng-csp]");
-if(a){var b=a.getAttribute("ng-csp")||a.getAttribute("data-ng-csp");Ea.rules={noUnsafeEval:!b||-1!==b.indexOf("no-unsafe-eval"),noInlineStyle:!b||-1!==b.indexOf("no-inline-style")}}else{a=Ea;try{new Function(""),b=!1}catch(d){b=!0}a.rules={noUnsafeEval:b,noInlineStyle:!1}}}return Ea.rules},rb=function(){if(y(rb.name_))return rb.name_;var a,b,d=Qa.length,c,e;for(b=0;b<d;++b)if(c=Qa[b],a=W.querySelector("["+c.replace(":","\\:")+"jq]")){e=a.getAttribute(c+"jq");break}return rb.name_=e},de=/:/g,Qa=["ng-",
-"data-ng-","ng:","x-ng-"],ie=/[A-Z]/g,Cc=!1,Pa=3,me={full:"1.5.0",major:1,minor:5,dot:0,codeName:"ennoblement-facilitation"};U.expando="ng339";var ib=U.cache={},Of=1;U._data=function(a){return this.cache[a[this.expando]]||{}};var Jf=/([\:\-\_]+(.))/g,Kf=/^moz([A-Z])/,yb={mouseleave:"mouseout",mouseenter:"mouseover"},Xb=H("jqLite"),Nf=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Wb=/<|&#?\w+;/,Lf=/<([\w:-]+)/,Mf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,da={option:[1,'<select multiple="multiple">',
-"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};da.optgroup=da.option;da.tbody=da.tfoot=da.colgroup=da.caption=da.thead;da.th=da.td;var Tf=Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)},Ra=U.prototype={ready:function(a){function b(){d||(d=!0,a())}var d=!1;"complete"===W.readyState?setTimeout(b):(this.on("DOMContentLoaded",
-b),U(O).on("load",b))},toString:function(){var a=[];n(this,function(b){a.push(""+b)});return"["+a.join(", ")+"]"},eq:function(a){return 0<=a?C(this[a]):C(this[this.length+a])},length:0,push:Bg,sort:[].sort,splice:[].splice},Db={};n("multiple selected checked disabled readOnly required open".split(" "),function(a){Db[G(a)]=a});var Uc={};n("input select option textarea button form details".split(" "),function(a){Uc[a]=!0});var cd={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",
-ngPattern:"pattern"};n({data:Zb,removeData:hb,hasData:function(a){for(var b in ib[a.ng339])return!0;return!1},cleanData:function(a){for(var b=0,d=a.length;b<d;b++)hb(a[b])}},function(a,b){U[b]=a});n({data:Zb,inheritedData:Cb,scope:function(a){return C.data(a,"$scope")||Cb(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return C.data(a,"$isolateScope")||C.data(a,"$isolateScopeNoTemplate")},controller:Rc,injector:function(a){return Cb(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},
-hasClass:zb,css:function(a,b,d){b=gb(b);if(y(d))a.style[b]=d;else return a.style[b]},attr:function(a,b,d){var c=a.nodeType;if(c!==Pa&&2!==c&&8!==c)if(c=G(b),Db[c])if(y(d))d?(a[b]=!0,a.setAttribute(b,c)):(a[b]=!1,a.removeAttribute(c));else return a[b]||(a.attributes.getNamedItem(b)||B).specified?c:v;else if(y(d))a.setAttribute(b,d);else if(a.getAttribute)return a=a.getAttribute(b,2),null===a?v:a},prop:function(a,b,d){if(y(d))a[b]=d;else return a[b]},text:function(){function a(a,d){if(x(d)){var c=a.nodeType;
-return 1===c||c===Pa?a.textContent:""}a.textContent=d}a.$dv="";return a}(),val:function(a,b){if(x(b)){if(a.multiple&&"select"===ra(a)){var d=[];n(a.options,function(a){a.selected&&d.push(a.value||a.text)});return 0===d.length?null:d}return a.value}a.value=b},html:function(a,b){if(x(b))return a.innerHTML;wb(a,!0);a.innerHTML=b},empty:Sc},function(a,b){U.prototype[b]=function(b,c){var e,f,g=this.length;if(a!==Sc&&x(2==a.length&&a!==zb&&a!==Rc?b:c)){if(E(b)){for(e=0;e<g;e++)if(a===Zb)a(this[e],b);else for(f in b)a(this[e],
-f,b[f]);return this}e=a.$dv;g=x(e)?Math.min(g,1):g;for(f=0;f<g;f++){var h=a(this[f],b,c);e=e?e+h:h}return e}for(e=0;e<g;e++)a(this[e],b,c);return this}});n({removeData:hb,on:function(a,b,d,c){if(y(c))throw Xb("onargs");if(Mc(a)){c=xb(a,!0);var e=c.events,f=c.handle;f||(f=c.handle=Qf(a,e));c=0<=b.indexOf(" ")?b.split(" "):[b];for(var g=c.length,h=function(b,c,g){var h=e[b];h||(h=e[b]=[],h.specialHandlerWrapper=c,"$destroy"===b||g||a.addEventListener(b,f,!1));h.push(d)};g--;)b=c[g],yb[b]?(h(yb[b],Sf),
-h(b,v,!0)):h(b)}},off:Qc,one:function(a,b,d){a=C(a);a.on(b,function e(){a.off(b,d);a.off(b,e)});a.on(b,d)},replaceWith:function(a,b){var d,c=a.parentNode;wb(a);n(new U(b),function(b){d?c.insertBefore(b,d.nextSibling):c.replaceChild(b,a);d=b})},children:function(a){var b=[];n(a.childNodes,function(a){1===a.nodeType&&b.push(a)});return b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var d=a.nodeType;if(1===d||11===d){b=new U(b);for(var d=0,c=b.length;d<c;d++)a.appendChild(b[d])}},
-prepend:function(a,b){if(1===a.nodeType){var d=a.firstChild;n(new U(b),function(b){a.insertBefore(b,d)})}},wrap:function(a,b){Oc(a,C(b).eq(0).clone()[0])},remove:$b,detach:function(a){$b(a,!0)},after:function(a,b){var d=a,c=a.parentNode;b=new U(b);for(var e=0,f=b.length;e<f;e++){var g=b[e];c.insertBefore(g,d.nextSibling);d=g}},addClass:Bb,removeClass:Ab,toggleClass:function(a,b,d){b&&n(b.split(" "),function(b){var e=d;x(e)&&(e=!zb(a,b));(e?Bb:Ab)(a,b)})},parent:function(a){return(a=a.parentNode)&&
-11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:Yb,triggerHandler:function(a,b,d){var c,e,f=b.type||b,g=xb(a);if(g=(g=g&&g.events)&&g[f])c={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},
-stopPropagation:B,type:f,target:a},b.type&&(c=T(c,b)),b=na(g),e=d?[c].concat(d):[c],n(b,function(b){c.isImmediatePropagationStopped()||b.apply(a,e)})}},function(a,b){U.prototype[b]=function(b,c,e){for(var f,g=0,h=this.length;g<h;g++)x(f)?(f=a(this[g],b,c,e),y(f)&&(f=C(f))):Pc(f,a(this[g],b,c,e));return y(f)?f:this};U.prototype.bind=U.prototype.on;U.prototype.unbind=U.prototype.off});Ua.prototype={put:function(a,b){this[Fa(a,this.nextUid)]=b},get:function(a){return this[Fa(a,this.nextUid)]},remove:function(a){var b=
-this[a=Fa(a,this.nextUid)];delete this[a];return b}};var Hf=[function(){this.$get=[function(){return Ua}]}],Vf=/^([^\(]+?)=>/,Wf=/^[^\(]*\(\s*([^\)]*)\)/m,Cg=/,/,Dg=/^\s*(_?)(\S+?)\1\s*$/,Uf=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Ga=H("$injector");fb.$$annotate=function(a,b,d){var c;if("function"===typeof a){if(!(c=a.$inject)){c=[];if(a.length){if(b)throw F(d)&&d||(d=a.name||Xf(a)),Ga("strictdi",d);b=Vc(a);n(b[1].split(Cg),function(a){a.replace(Dg,function(a,b,d){c.push(d)})})}a.$inject=c}}else L(a)?
-(b=a.length-1,Sa(a[b],"fn"),c=a.slice(0,b)):Sa(a,"fn",!0);return c};var Rd=H("$animate"),$e=function(){this.$get=function(){}},af=function(){var a=new Ua,b=[];this.$get=["$$AnimateRunner","$rootScope",function(d,c){function e(a,b,c){var d=!1;b&&(b=F(b)?b.split(" "):L(b)?b:[],n(b,function(b){b&&(d=!0,a[b]=c)}));return d}function f(){n(b,function(b){var c=a.get(b);if(c){var d=Yf(b.attr("class")),e="",f="";n(c,function(a,b){a!==!!d[b]&&(a?e+=(e.length?" ":"")+b:f+=(f.length?" ":"")+b)});n(b,function(a){e&&
-Bb(a,e);f&&Ab(a,f)});a.remove(b)}});b.length=0}return{enabled:B,on:B,off:B,pin:B,push:function(g,h,k,l){l&&l();k=k||{};k.from&&g.css(k.from);k.to&&g.css(k.to);if(k.addClass||k.removeClass)if(h=k.addClass,l=k.removeClass,k=a.get(g)||{},h=e(k,h,!0),l=e(k,l,!1),h||l)a.put(g,k),b.push(g),1===b.length&&c.$$postDigest(f);g=new d;g.complete();return g}}}]},Ye=["$provide",function(a){var b=this;this.$$registeredAnimations=Object.create(null);this.register=function(d,c){if(d&&"."!==d.charAt(0))throw Rd("notcsel",
-d);var e=d+"-animation";b.$$registeredAnimations[d.substr(1)]=e;a.factory(e,c)};this.classNameFilter=function(a){if(1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw Rd("nongcls","ng-animate");return this.$$classNameFilter};this.$get=["$$animateQueue",function(a){function b(a,c,d){if(d){var h;a:{for(h=0;h<d.length;h++){var k=d[h];if(1===k.nodeType){h=k;break a}}h=void 0}!h||h.parentNode||h.previousElementSibling||
-(d=null)}d?d.after(a):c.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},enter:function(e,f,g,h){f=f&&C(f);g=g&&C(g);f=f||g.parent();b(e,f,g);return a.push(e,"enter",Ha(h))},move:function(e,f,g,h){f=f&&C(f);g=g&&C(g);f=f||g.parent();b(e,f,g);return a.push(e,"move",Ha(h))},leave:function(b,c){return a.push(b,"leave",Ha(c),function(){b.remove()})},addClass:function(b,c,g){g=Ha(g);g.addClass=jb(g.addclass,c);return a.push(b,"addClass",g)},removeClass:function(b,
-c,g){g=Ha(g);g.removeClass=jb(g.removeClass,c);return a.push(b,"removeClass",g)},setClass:function(b,c,g,h){h=Ha(h);h.addClass=jb(h.addClass,c);h.removeClass=jb(h.removeClass,g);return a.push(b,"setClass",h)},animate:function(b,c,g,h,k){k=Ha(k);k.from=k.from?T(k.from,c):c;k.to=k.to?T(k.to,g):g;k.tempClasses=jb(k.tempClasses,h||"ng-inline-animate");return a.push(b,"animate",k)}}}]}],cf=function(){this.$get=["$$rAF",function(a){function b(b){d.push(b);1<d.length||a(function(){for(var a=0;a<d.length;a++)d[a]();
-d=[]})}var d=[];return function(){var a=!1;b(function(){a=!0});return function(d){a?d():b(d)}}}]},bf=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(a,b,d,c,e){function f(a){this.setHost(a);var b=d();this._doneCallbacks=[];this._tick=function(a){var d=c[0];d&&d.hidden?e(a,0,!1):b(a)};this._state=0}f.chain=function(a,b){function c(){if(d===a.length)b(!0);else a[d](function(a){!1===a?b(!1):(d++,c())})}var d=0;c()};f.all=function(a,b){function c(f){e=e&&f;++d===
-a.length&&b(e)}var d=0,e=!0;n(a,function(a){a.done(c)})};f.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===this._state?a():this._doneCallbacks.push(a)},progress:B,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&
-this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._tick(function(){b._resolve(a)}))},_resolve:function(a){2!==this._state&&(n(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=2)}};return f}]},Ze=function(){this.$get=["$$rAF","$q","$$AnimateRunner",
-function(a,b,d){return function(b,e){function f(){a(function(){g.addClass&&(b.addClass(g.addClass),g.addClass=null);g.removeClass&&(b.removeClass(g.removeClass),g.removeClass=null);g.to&&(b.css(g.to),g.to=null);h||k.complete();h=!0});return k}var g=e||{};g.$$prepared||(g=Oa(g));g.cleanupStyles&&(g.from=g.to=null);g.from&&(b.css(g.from),g.from=null);var h,k=new d;return{start:f,end:f}}}]},ja=H("$compile");Ec.$inject=["$provide","$$sanitizeUriProvider"];var Xc=/^((?:x|data)[\:\-_])/i,bg=H("$controller"),
-dd=/^(\S+)(\s+as\s+([\w$]+))?$/,jf=function(){this.$get=["$document",function(a){return function(b){b?!b.nodeType&&b instanceof C&&(b=b[0]):b=a[0].body;return b.offsetWidth+1}}]},ed="application/json",dc={"Content-Type":ed+";charset=utf-8"},dg=/^\[|^\{(?!\{)/,eg={"[":/]$/,"{":/}$/},cg=/^\)\]\}',?\n/,Eg=H("$http"),id=function(a){return function(){throw Eg("legacy",a);}},Ka=ia.$interpolateMinErr=H("$interpolate");Ka.throwNoconcat=function(a){throw Ka("noconcat",a);};Ka.interr=function(a,b){return Ka("interr",
-a,b.toString())};var Fg=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,gg={http:80,https:443,ftp:21},Gb=H("$location"),Gg={$$html5:!1,$$replace:!1,absUrl:Hb("$$absUrl"),url:function(a){if(x(a))return this.$$url;var b=Fg.exec(a);(b[1]||""===a)&&this.path(decodeURIComponent(b[1]));(b[2]||b[1]||""===a)&&this.search(b[3]||"");this.hash(b[5]||"");return this},protocol:Hb("$$protocol"),host:Hb("$$host"),port:Hb("$$port"),path:nd("$$path",function(a){a=null!==a?a.toString():"";return"/"==a.charAt(0)?a:"/"+a}),search:function(a,
-b){switch(arguments.length){case 0:return this.$$search;case 1:if(F(a)||N(a))a=a.toString(),this.$$search=zc(a);else if(E(a))a=Oa(a,{}),n(a,function(b,c){null==b&&delete a[c]}),this.$$search=a;else throw Gb("isrcharg");break;default:x(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}this.$$compose();return this},hash:nd("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};n([md,gc,fc],function(a){a.prototype=Object.create(Gg);a.prototype.state=
-function(b){if(!arguments.length)return this.$$state;if(a!==fc||!this.$$html5)throw Gb("nostate");this.$$state=x(b)?null:b;return this}});var ka=H("$parse"),ig=Function.prototype.call,jg=Function.prototype.apply,kg=Function.prototype.bind,Pb=Z();n("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Pb[a]=!0});var Hg={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ic=function(a){this.options=a};ic.prototype={constructor:ic,lex:function(a){this.text=a;this.index=0;for(this.tokens=
-[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(a))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),this.index++;else if(this.isWhitespace(a))this.index++;else{var b=a+this.peek(),d=b+this.peek(2),c=Pb[b],e=Pb[d];Pb[a]||c||e?(a=e?d:c?b:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=
-a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,b){return-1!==b.indexOf(a)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===
-a||"+"===a||this.isNumber(a)},throwError:function(a,b,d){d=d||this.index;b=y(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,d)+"]":" "+d;throw ka("lexerr",a,b,this.text);},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var d=G(this.text.charAt(this.index));if("."==d||this.isNumber(d))a+=d;else{var c=this.peek();if("e"==d&&this.isExpOperator(c))a+=d;else if(this.isExpOperator(d)&&c&&this.isNumber(c)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||
-c&&this.isNumber(c)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){for(var a=this.index;this.index<this.text.length;){var b=this.text.charAt(this.index);if(!this.isIdent(b)&&!this.isNumber(b))break;this.index++}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;for(var d="",c=a,e=!1;this.index<this.text.length;){var f=
-this.text.charAt(this.index),c=c+f;if(e)"u"===f?(e=this.text.substring(this.index+1,this.index+5),e.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+e+"]"),this.index+=4,d+=String.fromCharCode(parseInt(e,16))):d+=Hg[f]||f,e=!1;else if("\\"===f)e=!0;else{if(f===a){this.index++;this.tokens.push({index:b,text:c,constant:!0,value:d});return}d+=f}this.index++}this.throwError("Unterminated quote",b)}};var q=function(a,b){this.lexer=a;this.options=b};q.Program="Program";q.ExpressionStatement=
-"ExpressionStatement";q.AssignmentExpression="AssignmentExpression";q.ConditionalExpression="ConditionalExpression";q.LogicalExpression="LogicalExpression";q.BinaryExpression="BinaryExpression";q.UnaryExpression="UnaryExpression";q.CallExpression="CallExpression";q.MemberExpression="MemberExpression";q.Identifier="Identifier";q.Literal="Literal";q.ArrayExpression="ArrayExpression";q.Property="Property";q.ObjectExpression="ObjectExpression";q.ThisExpression="ThisExpression";q.LocalsExpression="LocalsExpression";
-q.NGValueParameter="NGValueParameter";q.prototype={ast:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:q.Program,body:a}},expressionStatement:function(){return{type:q.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a=
-this.expression();this.expect("|");)a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();this.expect("=")&&(a={type:q.AssignmentExpression,left:a,right:this.assignment(),operator:"="});return a},ternary:function(){var a=this.logicalOR(),b,d;return this.expect("?")&&(b=this.expression(),this.consume(":"))?(d=this.expression(),{type:q.ConditionalExpression,test:a,alternate:b,consequent:d}):a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a=
-{type:q.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:q.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),b;b=this.expect("==","!=","===","!==");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.relational()};return a},relational:function(){for(var a=this.additive(),b;b=this.expect("<",">","<=",">=");)a={type:q.BinaryExpression,
-operator:b.text,left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),b;b=this.expect("+","-");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),b;b=this.expect("*","/","%");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:q.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:
-this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.constants.hasOwnProperty(this.peek().text)?a=Oa(this.constants[this.consume().text]):this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:q.CallExpression,callee:a,arguments:this.parseArguments()},
-this.consume(")")):"["===b.text?(a={type:q.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:q.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=[a];for(var b={type:q.CallExpression,callee:this.identifier(),arguments:a,filter:!0};this.expect(":");)a.push(this.expression());return b},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do a.push(this.expression());
-while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||this.throwError("is not a valid identifier",a);return{type:q.Identifier,name:a.text}},constant:function(){return{type:q.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","))}this.consume("]");return{type:q.ArrayExpression,elements:a}},object:function(){var a=[],b;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;
-b={type:q.Property,kind:"init"};this.peek().constant?b.key=this.constant():this.peek().identifier?b.key=this.identifier():this.throwError("invalid key",this.peek());this.consume(":");b.value=this.expression();a.push(b)}while(this.expect(","))}this.consume("}");return{type:q.ObjectExpression,properties:a}},throwError:function(a,b){throw ka("syntax",b.text,a,b.index+1,this.text,this.text.substring(b.index));},consume:function(a){if(0===this.tokens.length)throw ka("ueoe",this.text);var b=this.expect(a);
-b||this.throwError("is unexpected, expecting ["+a+"]",this.peek());return b},peekToken:function(){if(0===this.tokens.length)throw ka("ueoe",this.text);return this.tokens[0]},peek:function(a,b,d,c){return this.peekAhead(0,a,b,d,c)},peekAhead:function(a,b,d,c,e){if(this.tokens.length>a){a=this.tokens[a];var f=a.text;if(f===b||f===d||f===c||f===e||!(b||d||c||e))return a}return!1},expect:function(a,b,d,c){return(a=this.peek(a,b,d,c))?(this.tokens.shift(),a):!1},constants:{"true":{type:q.Literal,value:!0},
-"false":{type:q.Literal,value:!1},"null":{type:q.Literal,value:null},undefined:{type:q.Literal,value:v},"this":{type:q.ThisExpression},$locals:{type:q.LocalsExpression}}};ud.prototype={compile:function(a,b){var d=this,c=this.astBuilder.ast(a);this.state={nextId:0,filters:{},expensiveChecks:b,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};R(c,d.$filter);var e="",f;this.stage="assign";if(f=sd(c))this.state.computing="assign",e=this.nextId(),this.recurse(f,e),this.return_(e),
-e="fn.assign="+this.generateFunction("assign","s,v,l");f=qd(c.body);d.stage="inputs";n(f,function(a,b){var c="fn"+b;d.state[c]={vars:[],body:[],own:{}};d.state.computing=c;var e=d.nextId();d.recurse(a,e);d.return_(e);d.state.inputs.push(c);a.watchId=b});this.state.computing="fn";this.stage="main";this.recurse(c);e='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;";e=(new Function("$filter","ensureSafeMemberName","ensureSafeObject",
-"ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",e))(this.$filter,Xa,Aa,od,hg,Ib,lg,pd,a);this.state=this.stage=v;e.literal=td(c);e.constant=c.constant;return e},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,d=this;n(b,function(b){a.push("var "+b+"="+d.generateFunction(b,"s"))});b.length&&a.push("fn.inputs=["+b.join(",")+"];");return a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+
-"};"},filterPrefix:function(){var a=[],b=this;n(this.state.filters,function(d,c){a.push(d+"=$filter("+b.escape(c)+")")});return a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b,d,c,e,f){var g,h,k=this,l,m;c=c||B;if(!f&&y(a.watchId))b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,
-c,e,!0));else switch(a.type){case q.Program:n(a.body,function(b,c){k.recurse(b.expression,v,v,function(a){h=a});c!==a.body.length-1?k.current().body.push(h,";"):k.return_(h)});break;case q.Literal:m=this.escape(a.value);this.assign(b,m);c(m);break;case q.UnaryExpression:this.recurse(a.argument,v,v,function(a){h=a});m=a.operator+"("+this.ifDefined(h,0)+")";this.assign(b,m);c(m);break;case q.BinaryExpression:this.recurse(a.left,v,v,function(a){g=a});this.recurse(a.right,v,v,function(a){h=a});m="+"===
-a.operator?this.plus(g,h):"-"===a.operator?this.ifDefined(g,0)+a.operator+this.ifDefined(h,0):"("+g+")"+a.operator+"("+h+")";this.assign(b,m);c(m);break;case q.LogicalExpression:b=b||this.nextId();k.recurse(a.left,b);k.if_("&&"===a.operator?b:k.not(b),k.lazyRecurse(a.right,b));c(b);break;case q.ConditionalExpression:b=b||this.nextId();k.recurse(a.test,b);k.if_(b,k.lazyRecurse(a.alternate,b),k.lazyRecurse(a.consequent,b));c(b);break;case q.Identifier:b=b||this.nextId();d&&(d.context="inputs"===k.stage?
-"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);Xa(a.name);k.if_("inputs"===k.stage||k.not(k.getHasOwnProperty("l",a.name)),function(){k.if_("inputs"===k.stage||"s",function(){e&&1!==e&&k.if_(k.not(k.nonComputedMember("s",a.name)),k.lazyAssign(k.nonComputedMember("s",a.name),"{}"));k.assign(b,k.nonComputedMember("s",a.name))})},b&&k.lazyAssign(b,k.nonComputedMember("l",a.name)));(k.state.expensiveChecks||Jb(a.name))&&k.addEnsureSafeObject(b);c(b);
-break;case q.MemberExpression:g=d&&(d.context=this.nextId())||this.nextId();b=b||this.nextId();k.recurse(a.object,g,v,function(){k.if_(k.notNull(g),function(){e&&1!==e&&k.addEnsureSafeAssignContext(g);if(a.computed)h=k.nextId(),k.recurse(a.property,h),k.getStringValue(h),k.addEnsureSafeMemberName(h),e&&1!==e&&k.if_(k.not(k.computedMember(g,h)),k.lazyAssign(k.computedMember(g,h),"{}")),m=k.ensureSafeObject(k.computedMember(g,h)),k.assign(b,m),d&&(d.computed=!0,d.name=h);else{Xa(a.property.name);e&&
-1!==e&&k.if_(k.not(k.nonComputedMember(g,a.property.name)),k.lazyAssign(k.nonComputedMember(g,a.property.name),"{}"));m=k.nonComputedMember(g,a.property.name);if(k.state.expensiveChecks||Jb(a.property.name))m=k.ensureSafeObject(m);k.assign(b,m);d&&(d.computed=!1,d.name=a.property.name)}},function(){k.assign(b,"undefined")});c(b)},!!e);break;case q.CallExpression:b=b||this.nextId();a.filter?(h=k.filter(a.callee.name),l=[],n(a.arguments,function(a){var b=k.nextId();k.recurse(a,b);l.push(b)}),m=h+"("+
-l.join(",")+")",k.assign(b,m),c(b)):(h=k.nextId(),g={},l=[],k.recurse(a.callee,h,g,function(){k.if_(k.notNull(h),function(){k.addEnsureSafeFunction(h);n(a.arguments,function(a){k.recurse(a,k.nextId(),v,function(a){l.push(k.ensureSafeObject(a))})});g.name?(k.state.expensiveChecks||k.addEnsureSafeObject(g.context),m=k.member(g.context,g.name,g.computed)+"("+l.join(",")+")"):m=h+"("+l.join(",")+")";m=k.ensureSafeObject(m);k.assign(b,m)},function(){k.assign(b,"undefined")});c(b)}));break;case q.AssignmentExpression:h=
-this.nextId();g={};if(!rd(a.left))throw ka("lval");this.recurse(a.left,v,g,function(){k.if_(k.notNull(g.context),function(){k.recurse(a.right,h);k.addEnsureSafeObject(k.member(g.context,g.name,g.computed));k.addEnsureSafeAssignContext(g.context);m=k.member(g.context,g.name,g.computed)+a.operator+h;k.assign(b,m);c(b||m)})},1);break;case q.ArrayExpression:l=[];n(a.elements,function(a){k.recurse(a,k.nextId(),v,function(a){l.push(a)})});m="["+l.join(",")+"]";this.assign(b,m);c(m);break;case q.ObjectExpression:l=
-[];n(a.properties,function(a){k.recurse(a.value,k.nextId(),v,function(b){l.push(k.escape(a.key.type===q.Identifier?a.key.name:""+a.key.value)+":"+b)})});m="{"+l.join(",")+"}";this.assign(b,m);c(m);break;case q.ThisExpression:this.assign(b,"s");c("s");break;case q.LocalsExpression:this.assign(b,"l");c("l");break;case q.NGValueParameter:this.assign(b,"v"),c("v")}},getHasOwnProperty:function(a,b){var d=a+"."+b,c=this.current().own;c.hasOwnProperty(d)||(c[d]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+
-a+")"));return c[d]},assign:function(a,b){if(a)return this.current().body.push(a,"=",b,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0));return this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,b,d){if(!0===a)b();else{var c=this.current().body;c.push("if(",a,"){");b();c.push("}");
-d&&(c.push("else{"),d(),c.push("}"))}},not:function(a){return"!("+a+")"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){return a+"."+b},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,d){return d?this.computedMember(a,b):this.nonComputedMember(a,b)},addEnsureSafeObject:function(a){this.current().body.push(this.ensureSafeObject(a),";")},addEnsureSafeMemberName:function(a){this.current().body.push(this.ensureSafeMemberName(a),";")},addEnsureSafeFunction:function(a){this.current().body.push(this.ensureSafeFunction(a),
-";")},addEnsureSafeAssignContext:function(a){this.current().body.push(this.ensureSafeAssignContext(a),";")},ensureSafeObject:function(a){return"ensureSafeObject("+a+",text)"},ensureSafeMemberName:function(a){return"ensureSafeMemberName("+a+",text)"},ensureSafeFunction:function(a){return"ensureSafeFunction("+a+",text)"},getStringValue:function(a){this.assign(a,"getStringValue("+a+")")},ensureSafeAssignContext:function(a){return"ensureSafeAssignContext("+a+",text)"},lazyRecurse:function(a,b,d,c,e,f){var g=
-this;return function(){g.recurse(a,b,d,c,e,f)}},lazyAssign:function(a,b){var d=this;return function(){d.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(F(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(N(a))return a.toString();if(!0===a)return"true";if(!1===a)return"false";if(null===a)return"null";if("undefined"===typeof a)return"undefined";throw ka("esc");},nextId:function(a,
-b){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(b?"="+b:""));return d},current:function(){return this.state[this.state.computing]}};vd.prototype={compile:function(a,b){var d=this,c=this.astBuilder.ast(a);this.expression=a;this.expensiveChecks=b;R(c,d.$filter);var e,f;if(e=sd(c))f=this.recurse(e);e=qd(c.body);var g;e&&(g=[],n(e,function(a,b){var c=d.recurse(a);a.input=c;g.push(c);a.watchId=b}));var h=[];n(c.body,function(a){h.push(d.recurse(a.expression))});e=0===c.body.length?function(){}:
-1===c.body.length?h[0]:function(a,b){var c;n(h,function(d){c=d(a,b)});return c};f&&(e.assign=function(a,b,c){return f(a,c,b)});g&&(e.inputs=g);e.literal=td(c);e.constant=c.constant;return e},recurse:function(a,b,d){var c,e,f=this,g;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case q.Literal:return this.value(a.value,b);case q.UnaryExpression:return e=this.recurse(a.argument),this["unary"+a.operator](e,b);case q.BinaryExpression:return c=this.recurse(a.left),e=this.recurse(a.right),
-this["binary"+a.operator](c,e,b);case q.LogicalExpression:return c=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case q.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case q.Identifier:return Xa(a.name,f.expression),f.identifier(a.name,f.expensiveChecks||Jb(a.name),b,d,f.expression);case q.MemberExpression:return c=this.recurse(a.object,!1,!!d),a.computed||(Xa(a.property.name,f.expression),
-e=a.property.name),a.computed&&(e=this.recurse(a.property)),a.computed?this.computedMember(c,e,b,d,f.expression):this.nonComputedMember(c,e,f.expensiveChecks,b,d,f.expression);case q.CallExpression:return g=[],n(a.arguments,function(a){g.push(f.recurse(a))}),a.filter&&(e=this.$filter(a.callee.name)),a.filter||(e=this.recurse(a.callee,!0)),a.filter?function(a,c,d,f){for(var r=[],n=0;n<g.length;++n)r.push(g[n](a,c,d,f));a=e.apply(v,r,f);return b?{context:v,name:v,value:a}:a}:function(a,c,d,m){var r=
-e(a,c,d,m),n;if(null!=r.value){Aa(r.context,f.expression);od(r.value,f.expression);n=[];for(var q=0;q<g.length;++q)n.push(Aa(g[q](a,c,d,m),f.expression));n=Aa(r.value.apply(r.context,n),f.expression)}return b?{value:n}:n};case q.AssignmentExpression:return c=this.recurse(a.left,!0,1),e=this.recurse(a.right),function(a,d,g,m){var r=c(a,d,g,m);a=e(a,d,g,m);Aa(r.value,f.expression);Ib(r.context);r.context[r.name]=a;return b?{value:a}:a};case q.ArrayExpression:return g=[],n(a.elements,function(a){g.push(f.recurse(a))}),
-function(a,c,d,e){for(var f=[],n=0;n<g.length;++n)f.push(g[n](a,c,d,e));return b?{value:f}:f};case q.ObjectExpression:return g=[],n(a.properties,function(a){g.push({key:a.key.type===q.Identifier?a.key.name:""+a.key.value,value:f.recurse(a.value)})}),function(a,c,d,e){for(var f={},n=0;n<g.length;++n)f[g[n].key]=g[n].value(a,c,d,e);return b?{value:f}:f};case q.ThisExpression:return function(a){return b?{value:a}:a};case q.LocalsExpression:return function(a,c){return b?{value:c}:c};case q.NGValueParameter:return function(a,
-c,d,e){return b?{value:d}:d}}},"unary+":function(a,b){return function(d,c,e,f){d=a(d,c,e,f);d=y(d)?+d:0;return b?{value:d}:d}},"unary-":function(a,b){return function(d,c,e,f){d=a(d,c,e,f);d=y(d)?-d:0;return b?{value:d}:d}},"unary!":function(a,b){return function(d,c,e,f){d=!a(d,c,e,f);return b?{value:d}:d}},"binary+":function(a,b,d){return function(c,e,f,g){var h=a(c,e,f,g);c=b(c,e,f,g);h=pd(h,c);return d?{value:h}:h}},"binary-":function(a,b,d){return function(c,e,f,g){var h=a(c,e,f,g);c=b(c,e,f,g);
-h=(y(h)?h:0)-(y(c)?c:0);return d?{value:h}:h}},"binary*":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)*b(c,e,f,g);return d?{value:c}:c}},"binary/":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)/b(c,e,f,g);return d?{value:c}:c}},"binary%":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)%b(c,e,f,g);return d?{value:c}:c}},"binary===":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)===b(c,e,f,g);return d?{value:c}:c}},"binary!==":function(a,b,d){return function(c,e,f,g){c=a(c,
-e,f,g)!==b(c,e,f,g);return d?{value:c}:c}},"binary==":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)==b(c,e,f,g);return d?{value:c}:c}},"binary!=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)!=b(c,e,f,g);return d?{value:c}:c}},"binary<":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)<b(c,e,f,g);return d?{value:c}:c}},"binary>":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)>b(c,e,f,g);return d?{value:c}:c}},"binary<=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,
-g)<=b(c,e,f,g);return d?{value:c}:c}},"binary>=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)>=b(c,e,f,g);return d?{value:c}:c}},"binary&&":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)&&b(c,e,f,g);return d?{value:c}:c}},"binary||":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)||b(c,e,f,g);return d?{value:c}:c}},"ternary?:":function(a,b,d,c){return function(e,f,g,h){e=a(e,f,g,h)?b(e,f,g,h):d(e,f,g,h);return c?{value:e}:e}},value:function(a,b){return function(){return b?{context:v,
-name:v,value:a}:a}},identifier:function(a,b,d,c,e){return function(f,g,h,k){f=g&&a in g?g:f;c&&1!==c&&f&&!f[a]&&(f[a]={});g=f?f[a]:v;b&&Aa(g,e);return d?{context:f,name:a,value:g}:g}},computedMember:function(a,b,d,c,e){return function(f,g,h,k){var l=a(f,g,h,k),m,n;null!=l&&(m=b(f,g,h,k),m+="",Xa(m,e),c&&1!==c&&(Ib(l),l&&!l[m]&&(l[m]={})),n=l[m],Aa(n,e));return d?{context:l,name:m,value:n}:n}},nonComputedMember:function(a,b,d,c,e,f){return function(g,h,k,l){g=a(g,h,k,l);e&&1!==e&&(Ib(g),g&&!g[b]&&
-(g[b]={}));h=null!=g?g[b]:v;(d||Jb(b))&&Aa(h,f);return c?{context:g,name:b,value:h}:h}},inputs:function(a,b){return function(d,c,e,f){return f?f[b]:a(d,c,e)}}};var jc=function(a,b,d){this.lexer=a;this.$filter=b;this.options=d;this.ast=new q(this.lexer);this.astCompiler=d.csp?new vd(this.ast,b):new ud(this.ast,b)};jc.prototype={constructor:jc,parse:function(a){return this.astCompiler.compile(a,this.options.expensiveChecks)}};var mg=Object.prototype.valueOf,Ba=H("$sce"),qa={HTML:"html",CSS:"css",URL:"url",
-RESOURCE_URL:"resourceUrl",JS:"js"},ja=H("$compile"),Y=W.createElement("a"),zd=za(O.location.href);Ad.$inject=["$document"];Lc.$inject=["$provide"];var Hd=22,Gd=".",lc="0";Bd.$inject=["$locale"];Dd.$inject=["$locale"];var yg={yyyy:aa("FullYear",4),yy:aa("FullYear",2,0,!0),y:aa("FullYear",1),MMMM:Lb("Month"),MMM:Lb("Month",!0),MM:aa("Month",2,1),M:aa("Month",1,1),dd:aa("Date",2),d:aa("Date",1),HH:aa("Hours",2),H:aa("Hours",1),hh:aa("Hours",2,-12),h:aa("Hours",1,-12),mm:aa("Minutes",2),m:aa("Minutes",
-1),ss:aa("Seconds",2),s:aa("Seconds",1),sss:aa("Milliseconds",3),EEEE:Lb("Day"),EEE:Lb("Day",!0),a:function(a,b){return 12>a.getHours()?b.AMPMS[0]:b.AMPMS[1]},Z:function(a,b,d){a=-1*d;return a=(0<=a?"+":"")+(Kb(Math[0<a?"floor":"ceil"](a/60),2)+Kb(Math.abs(a%60),2))},ww:Jd(2),w:Jd(1),G:mc,GG:mc,GGG:mc,GGGG:function(a,b){return 0>=a.getFullYear()?b.ERANAMES[0]:b.ERANAMES[1]}},xg=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,wg=/^\-?\d+$/;Cd.$inject=["$locale"];
-var rg=ba(G),sg=ba(ub);Ed.$inject=["$parse"];var oe=ba({restrict:"E",compile:function(a,b){if(!b.href&&!b.xlinkHref)return function(a,b){if("a"===b[0].nodeName.toLowerCase()){var e="[object SVGAnimatedString]"===ga.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(e)||a.preventDefault()})}}}}),vb={};n(Db,function(a,b){function d(a,d,e){a.$watch(e[c],function(a){e.$set(b,!!a)})}if("multiple"!=a){var c=va("ng-"+b),e=d;"checked"===a&&(e=function(a,b,e){e.ngModel!==e[c]&&d(a,b,
-e)});vb[c]=function(){return{restrict:"A",priority:100,link:e}}}});n(cd,function(a,b){vb[b]=function(){return{priority:100,link:function(a,c,e){if("ngPattern"===b&&"/"==e.ngPattern.charAt(0)&&(c=e.ngPattern.match(Ag))){e.$set("ngPattern",new RegExp(c[1],c[2]));return}a.$watch(e[b],function(a){e.$set(b,a)})}}}});n(["src","srcset","href"],function(a){var b=va("ng-"+a);vb[b]=function(){return{priority:99,link:function(d,c,e){var f=a,g=a;"href"===a&&"[object SVGAnimatedString]"===ga.call(c.prop("href"))&&
-(g="xlinkHref",e.$attr[g]="xlink:href",f=null);e.$observe(b,function(b){b?(e.$set(g,b),xa&&f&&c.prop(f,e[g])):"href"===a&&e.$set(g,null)})}}}});var Mb={$addControl:B,$$renameControl:function(a,b){a.$name=b},$removeControl:B,$setValidity:B,$setDirty:B,$setPristine:B,$setSubmitted:B};Kd.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Sd=function(a){return["$timeout","$parse",function(b,d){function c(a){return""===a?d('this[""]').assign:d(a).assign||B}return{name:"form",restrict:a?
-"EAC":"E",require:["form","^^?form"],controller:Kd,compile:function(d,f){d.addClass(Ya).addClass(ob);var g=f.name?"name":a&&f.ngForm?"ngForm":!1;return{pre:function(a,d,e,f){var n=f[0];if(!("action"in e)){var s=function(b){a.$apply(function(){n.$commitViewValue();n.$setSubmitted()});b.preventDefault()};d[0].addEventListener("submit",s,!1);d.on("$destroy",function(){b(function(){d[0].removeEventListener("submit",s,!1)},0,!1)})}(f[1]||n.$$parentForm).$addControl(n);var q=g?c(n.$name):B;g&&(q(a,n),e.$observe(g,
-function(b){n.$name!==b&&(q(a,v),n.$$parentForm.$$renameControl(n,b),q=c(n.$name),q(a,n))}));d.on("$destroy",function(){n.$$parentForm.$removeControl(n);q(a,v);T(n,Mb)})}}}}}]},pe=Sd(),Ce=Sd(!0),zg=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ig=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Jg=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Kg=
-/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Td=/^(\d{4})-(\d{2})-(\d{2})$/,Ud=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,pc=/^(\d{4})-W(\d\d)$/,Vd=/^(\d{4})-(\d\d)$/,Wd=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Xd={text:function(a,b,d,c,e,f){lb(a,b,d,c,e,f);nc(c)},date:mb("date",Td,Ob(Td,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":mb("datetimelocal",Ud,Ob(Ud,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:mb("time",Wd,Ob(Wd,["HH","mm","ss",
-"sss"]),"HH:mm:ss.sss"),week:mb("week",pc,function(a,b){if(V(a))return a;if(F(a)){pc.lastIndex=0;var d=pc.exec(a);if(d){var c=+d[1],e=+d[2],f=d=0,g=0,h=0,k=Id(c),e=7*(e-1);b&&(d=b.getHours(),f=b.getMinutes(),g=b.getSeconds(),h=b.getMilliseconds());return new Date(c,0,k.getDate()+e,d,f,g,h)}}return NaN},"yyyy-Www"),month:mb("month",Vd,Ob(Vd,["yyyy","MM"]),"yyyy-MM"),number:function(a,b,d,c,e,f){Md(a,b,d,c);lb(a,b,d,c,e,f);c.$$parserName="number";c.$parsers.push(function(a){return c.$isEmpty(a)?null:
-Kg.test(a)?parseFloat(a):v});c.$formatters.push(function(a){if(!c.$isEmpty(a)){if(!N(a))throw nb("numfmt",a);a=a.toString()}return a});if(y(d.min)||d.ngMin){var g;c.$validators.min=function(a){return c.$isEmpty(a)||x(g)||a>=g};d.$observe("min",function(a){y(a)&&!N(a)&&(a=parseFloat(a,10));g=N(a)&&!isNaN(a)?a:v;c.$validate()})}if(y(d.max)||d.ngMax){var h;c.$validators.max=function(a){return c.$isEmpty(a)||x(h)||a<=h};d.$observe("max",function(a){y(a)&&!N(a)&&(a=parseFloat(a,10));h=N(a)&&!isNaN(a)?
-a:v;c.$validate()})}},url:function(a,b,d,c,e,f){lb(a,b,d,c,e,f);nc(c);c.$$parserName="url";c.$validators.url=function(a,b){var d=a||b;return c.$isEmpty(d)||Ig.test(d)}},email:function(a,b,d,c,e,f){lb(a,b,d,c,e,f);nc(c);c.$$parserName="email";c.$validators.email=function(a,b){var d=a||b;return c.$isEmpty(d)||Jg.test(d)}},radio:function(a,b,d,c){x(d.name)&&b.attr("name",++pb);b.on("click",function(a){b[0].checked&&c.$setViewValue(d.value,a&&a.type)});c.$render=function(){b[0].checked=d.value==c.$viewValue};
-d.$observe("value",c.$render)},checkbox:function(a,b,d,c,e,f,g,h){var k=Nd(h,a,"ngTrueValue",d.ngTrueValue,!0),l=Nd(h,a,"ngFalseValue",d.ngFalseValue,!1);b.on("click",function(a){c.$setViewValue(b[0].checked,a&&a.type)});c.$render=function(){b[0].checked=c.$viewValue};c.$isEmpty=function(a){return!1===a};c.$formatters.push(function(a){return oa(a,k)});c.$parsers.push(function(a){return a?k:l})},hidden:B,button:B,submit:B,reset:B,file:B},Fc=["$browser","$sniffer","$filter","$parse",function(a,b,d,
-c){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,f,g,h){h[0]&&(Xd[G(g.type)]||Xd.text)(e,f,g,h[0],b,a,d,c)}}}}],Lg=/^(true|false|\d+)$/,Ue=function(){return{restrict:"A",priority:100,compile:function(a,b){return Lg.test(b.ngValue)?function(a,b,e){e.$set("value",a.$eval(e.ngValue))}:function(a,b,e){a.$watch(e.ngValue,function(a){e.$set("value",a)})}}}},ue=["$compile",function(a){return{restrict:"AC",compile:function(b){a.$$addBindingClass(b);return function(b,c,e){a.$$addBindingInfo(c,
-e.ngBind);c=c[0];b.$watch(e.ngBind,function(a){c.textContent=x(a)?"":a})}}}}],we=["$interpolate","$compile",function(a,b){return{compile:function(d){b.$$addBindingClass(d);return function(c,d,f){c=a(d.attr(f.$attr.ngBindTemplate));b.$$addBindingInfo(d,c.expressions);d=d[0];f.$observe("ngBindTemplate",function(a){d.textContent=x(a)?"":a})}}}}],ve=["$sce","$parse","$compile",function(a,b,d){return{restrict:"A",compile:function(c,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(a){return(a||"").toString()});
-d.$$addBindingClass(c);return function(b,c,e){d.$$addBindingInfo(c,e.ngBindHtml);b.$watch(g,function(){c.html(a.getTrustedHtml(f(b))||"")})}}}}],Te=ba({restrict:"A",require:"ngModel",link:function(a,b,d,c){c.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),xe=oc("",!0),ze=oc("Odd",0),ye=oc("Even",1),Ae=Ma({compile:function(a,b){b.$set("ngCloak",v);a.removeClass("ng-cloak")}}),Be=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Kc={},Mg={blur:!0,focus:!0};n("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),
-function(a){var b=va("ng-"+a);Kc[b]=["$parse","$rootScope",function(d,c){return{restrict:"A",compile:function(e,f){var g=d(f[b],null,!0);return function(b,d){d.on(a,function(d){var e=function(){g(b,{$event:d})};Mg[a]&&c.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var Ee=["$animate",function(a){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(b,d,c,e,f){var g,h,k;b.$watch(c.ngIf,function(b){b?h||f(function(b,e){h=e;b[b.length++]=W.createComment(" end ngIf: "+
-c.ngIf+" ");g={clone:b};a.enter(b,d.parent(),d)}):(k&&(k.remove(),k=null),h&&(h.$destroy(),h=null),g&&(k=tb(g.clone),a.leave(k).then(function(){k=null}),g=null))})}}}],Fe=["$templateRequest","$anchorScroll","$animate",function(a,b,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ia.noop,compile:function(c,e){var f=e.ngInclude||e.src,g=e.onload||"",h=e.autoscroll;return function(c,e,m,n,s){var q=0,v,t,p,w=function(){t&&(t.remove(),t=null);v&&(v.$destroy(),v=null);p&&
-(d.leave(p).then(function(){t=null}),t=p,p=null)};c.$watch(f,function(f){var m=function(){!y(h)||h&&!c.$eval(h)||b()},z=++q;f?(a(f,!0).then(function(a){if(!c.$$destroyed&&z===q){var b=c.$new();n.template=a;a=s(b,function(a){w();d.enter(a,null,e).then(m)});v=b;p=a;v.$emit("$includeContentLoaded",f);c.$eval(g)}},function(){c.$$destroyed||z!==q||(w(),c.$emit("$includeContentError",f))}),c.$emit("$includeContentRequested",f)):(w(),n.template=null)})}}}}],We=["$compile",function(a){return{restrict:"ECA",
-priority:-400,require:"ngInclude",link:function(b,d,c,e){ga.call(d[0]).match(/SVG/)?(d.empty(),a(Nc(e.template,W).childNodes)(b,function(a){d.append(a)},{futureParentElement:d})):(d.html(e.template),a(d.contents())(b))}}}],Ge=Ma({priority:450,compile:function(){return{pre:function(a,b,d){a.$eval(d.ngInit)}}}}),Se=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,d,c){var e=b.attr(d.$attr.ngList)||", ",f="false"!==d.ngTrim,g=f?X(e):e;c.$parsers.push(function(a){if(!x(a)){var b=
-[];a&&n(a.split(g),function(a){a&&b.push(f?X(a):a)});return b}});c.$formatters.push(function(a){return L(a)?a.join(e):v});c.$isEmpty=function(a){return!a||!a.length}}}},ob="ng-valid",Od="ng-invalid",Ya="ng-pristine",Nb="ng-dirty",Qd="ng-pending",nb=H("ngModel"),Ng=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,b,d,c,e,f,g,h,k,l){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=v;this.$validators={};this.$asyncValidators=
-{};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=v;this.$name=l(d.name||"",!1)(a);this.$$parentForm=Mb;var m=e(d.ngModel),r=m.assign,q=m,I=r,K=null,t,p=this;this.$$setOptions=function(a){if((p.$options=a)&&a.getterSetter){var b=e(d.ngModel+"()"),f=e(d.ngModel+"($$$p)");q=function(a){var c=m(a);D(c)&&(c=b(a));return c};I=function(a,
-b){D(m(a))?f(a,{$$$p:p.$modelValue}):r(a,p.$modelValue)}}else if(!m.assign)throw nb("nonassign",d.ngModel,ta(c));};this.$render=B;this.$isEmpty=function(a){return x(a)||""===a||null===a||a!==a};this.$$updateEmptyClasses=function(a){p.$isEmpty(a)?(f.removeClass(c,"ng-not-empty"),f.addClass(c,"ng-empty")):(f.removeClass(c,"ng-empty"),f.addClass(c,"ng-not-empty"))};var w=0;Ld({ctrl:this,$element:c,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]},$animate:f});this.$setPristine=function(){p.$dirty=
-!1;p.$pristine=!0;f.removeClass(c,Nb);f.addClass(c,Ya)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;f.removeClass(c,Ya);f.addClass(c,Nb);p.$$parentForm.$setDirty()};this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;f.setClass(c,"ng-untouched","ng-touched")};this.$setTouched=function(){p.$touched=!0;p.$untouched=!1;f.setClass(c,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){g.cancel(K);p.$viewValue=p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!N(p.$modelValue)||
-!isNaN(p.$modelValue)){var a=p.$$rawModelValue,b=p.$valid,c=p.$modelValue,d=p.$options&&p.$options.allowInvalid;p.$$runValidators(a,p.$$lastCommittedViewValue,function(e){d||b===e||(p.$modelValue=e?a:v,p.$modelValue!==c&&p.$$writeModelToScope())})}};this.$$runValidators=function(a,b,c){function d(){var c=!0;n(p.$validators,function(d,e){var g=d(a,b);c=c&&g;f(e,g)});return c?!0:(n(p.$asyncValidators,function(a,b){f(b,null)}),!1)}function e(){var c=[],d=!0;n(p.$asyncValidators,function(e,g){var h=e(a,
-b);if(!h||!D(h.then))throw nb("nopromise",h);f(g,v);c.push(h.then(function(){f(g,!0)},function(a){d=!1;f(g,!1)}))});c.length?k.all(c).then(function(){g(d)},B):g(!0)}function f(a,b){h===w&&p.$setValidity(a,b)}function g(a){h===w&&c(a)}w++;var h=w;(function(){var a=p.$$parserName||"parse";if(x(t))f(a,null);else return t||(n(p.$validators,function(a,b){f(b,null)}),n(p.$asyncValidators,function(a,b){f(b,null)})),f(a,t),t;return!0})()?d()?e():g(!1):g(!1)};this.$commitViewValue=function(){var a=p.$viewValue;
-g.cancel(K);if(p.$$lastCommittedViewValue!==a||""===a&&p.$$hasNativeValidators)p.$$updateEmptyClasses(a),p.$$lastCommittedViewValue=a,p.$pristine&&this.$setDirty(),this.$$parseAndValidate()};this.$$parseAndValidate=function(){var b=p.$$lastCommittedViewValue;if(t=x(b)?v:!0)for(var c=0;c<p.$parsers.length;c++)if(b=p.$parsers[c](b),x(b)){t=!1;break}N(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=q(a));var d=p.$modelValue,e=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=b;e&&(p.$modelValue=
-b,p.$modelValue!==d&&p.$$writeModelToScope());p.$$runValidators(b,p.$$lastCommittedViewValue,function(a){e||(p.$modelValue=a?b:v,p.$modelValue!==d&&p.$$writeModelToScope())})};this.$$writeModelToScope=function(){I(a,p.$modelValue);n(p.$viewChangeListeners,function(a){try{a()}catch(c){b(c)}})};this.$setViewValue=function(a,b){p.$viewValue=a;p.$options&&!p.$options.updateOnDefault||p.$$debounceViewValueCommit(b)};this.$$debounceViewValueCommit=function(b){var c=0,d=p.$options;d&&y(d.debounce)&&(d=d.debounce,
-N(d)?c=d:N(d[b])?c=d[b]:N(d["default"])&&(c=d["default"]));g.cancel(K);c?K=g(function(){p.$commitViewValue()},c):h.$$phase?p.$commitViewValue():a.$apply(function(){p.$commitViewValue()})};a.$watch(function(){var b=q(a);if(b!==p.$modelValue&&(p.$modelValue===p.$modelValue||b===b)){p.$modelValue=p.$$rawModelValue=b;t=v;for(var c=p.$formatters,d=c.length,e=b;d--;)e=c[d](e);p.$viewValue!==e&&(p.$$updateEmptyClasses(e),p.$viewValue=p.$$lastCommittedViewValue=e,p.$render(),p.$$runValidators(b,e,B))}return b})}],
-Re=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ng,priority:1,compile:function(b){b.addClass(Ya).addClass("ng-untouched").addClass(ob);return{pre:function(a,b,e,f){var g=f[0];b=f[1]||g.$$parentForm;g.$$setOptions(f[2]&&f[2].$options);b.$addControl(g);e.$observe("name",function(a){g.$name!==a&&g.$$parentForm.$$renameControl(g,a)});a.$on("$destroy",function(){g.$$parentForm.$removeControl(g)})},post:function(b,c,e,f){var g=f[0];if(g.$options&&
-g.$options.updateOn)c.on(g.$options.updateOn,function(a){g.$$debounceViewValueCommit(a&&a.type)});c.on("blur",function(c){g.$touched||(a.$$phase?b.$evalAsync(g.$setTouched):b.$apply(g.$setTouched))})}}}}}],Og=/(\s+|^)default(\s+|$)/,Ve=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,b){var d=this;this.$options=Oa(a.$eval(b.ngModelOptions));y(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=X(this.$options.updateOn.replace(Og,function(){d.$options.updateOnDefault=
-!0;return" "}))):this.$options.updateOnDefault=!0}]}},He=Ma({terminal:!0,priority:1E3}),Pg=H("ngOptions"),Qg=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Pe=["$compile","$parse",function(a,b){function d(a,c,d){function e(a,b,c,d,f){this.selectValue=a;this.viewValue=b;this.label=c;this.group=d;this.disabled=f}
-function l(a){var b;if(!q&&Ca(a))b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var m=a.match(Qg);if(!m)throw Pg("iexp",a,ta(c));var n=m[5]||m[7],q=m[6];a=/ as /.test(m[0])&&m[1];var v=m[9];c=b(m[2]?m[1]:n);var y=a&&b(a)||c,t=v&&b(v),p=v?function(a,b){return t(d,b)}:function(a){return Fa(a)},w=function(a,b){return p(a,B(a,b))},u=b(m[2]||m[1]),x=b(m[3]||""),z=b(m[4]||""),A=b(m[8]),C={},B=q?function(a,b){C[q]=b;C[n]=a;return C}:function(a){C[n]=a;return C};return{trackBy:v,
-getTrackByValue:w,getWatchables:b(A,function(a){var b=[];a=a||[];for(var c=l(a),e=c.length,f=0;f<e;f++){var g=a===c?f:c[f],k=B(a[g],g),g=p(a[g],k);b.push(g);if(m[2]||m[1])g=u(d,k),b.push(g);m[4]&&(k=z(d,k),b.push(k))}return b}),getOptions:function(){for(var a=[],b={},c=A(d)||[],f=l(c),g=f.length,m=0;m<g;m++){var n=c===f?m:f[m],r=B(c[n],n),q=y(d,r),n=p(q,r),s=u(d,r),t=x(d,r),r=z(d,r),q=new e(n,q,s,t,r);a.push(q);b[n]=q}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[w(a)]},
-getViewValueFromOption:function(a){return v?ia.copy(a.viewValue):a.viewValue}}}}}var c=W.createElement("option"),e=W.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=B},post:function(b,g,h,k){function l(a,b){a.element=b;b.disabled=a.disabled;a.label!==b.label&&(b.label=a.label,b.textContent=a.label);a.value!==b.value&&(b.value=a.selectValue)}function m(a,b,c,d){b&&G(b.nodeName)===c?c=b:(c=d.cloneNode(!1),b?a.insertBefore(c,
-b):a.appendChild(c));return c}function r(a){for(var b;a;)b=a.nextSibling,$b(a),a=b}function q(a){var b=w&&w[0],c=A&&A[0];if(b||c)for(;a&&(a===b||a===c||8===a.nodeType||"option"===ra(a)&&""===a.value);)a=a.nextSibling;return a}function v(){var a=D&&x.readValue();D=E.getOptions();var b={},d=g[0].firstChild;z&&g.prepend(w);d=q(d);D.items.forEach(function(a){var f,h;y(a.group)?(f=b[a.group],f||(f=m(g[0],d,"optgroup",e),d=f.nextSibling,f.label=a.group,f=b[a.group]={groupElement:f,currentOptionElement:f.firstChild}),
-h=m(f.groupElement,f.currentOptionElement,"option",c),l(a,h),f.currentOptionElement=h.nextSibling):(h=m(g[0],d,"option",c),l(a,h),d=h.nextSibling)});Object.keys(b).forEach(function(a){r(b[a].currentOptionElement)});r(d);t.$render();if(!t.$isEmpty(a)){var f=x.readValue();(E.trackBy||p?oa(a,f):a===f)||(t.$setViewValue(f),t.$render())}}var x=k[0],t=k[1],p=h.multiple,w;k=0;for(var u=g.children(),B=u.length;k<B;k++)if(""===u[k].value){w=u.eq(k);break}var z=!!w,A=C(c.cloneNode(!1));A.val("?");var D,E=d(h.ngOptions,
-g,b);p?(t.$isEmpty=function(a){return!a||0===a.length},x.writeValue=function(a){D.items.forEach(function(a){a.element.selected=!1});a&&a.forEach(function(a){(a=D.getOptionFromViewValue(a))&&!a.disabled&&(a.element.selected=!0)})},x.readValue=function(){var a=g.val()||[],b=[];n(a,function(a){(a=D.selectValueMap[a])&&!a.disabled&&b.push(D.getViewValueFromOption(a))});return b},E.trackBy&&b.$watchCollection(function(){if(L(t.$viewValue))return t.$viewValue.map(function(a){return E.getTrackByValue(a)})},
-function(){t.$render()})):(x.writeValue=function(a){var b=D.getOptionFromViewValue(a);b&&!b.disabled?g[0].value!==b.selectValue&&(A.remove(),z||w.remove(),g[0].value=b.selectValue,b.element.selected=!0,b.element.setAttribute("selected","selected")):null===a||z?(A.remove(),z||g.prepend(w),g.val(""),w.prop("selected",!0),w.attr("selected",!0)):(z||w.remove(),g.prepend(A),g.val("?"),A.prop("selected",!0),A.attr("selected",!0))},x.readValue=function(){var a=D.selectValueMap[g.val()];return a&&!a.disabled?
-(z||w.remove(),A.remove(),D.getViewValueFromOption(a)):null},E.trackBy&&b.$watch(function(){return E.getTrackByValue(t.$viewValue)},function(){t.$render()}));z?(w.remove(),a(w)(b),w.removeClass("ng-scope")):w=C(c.cloneNode(!1));v();b.$watchCollection(E.getWatchables,v)}}}}],Ie=["$locale","$interpolate","$log",function(a,b,d){var c=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(f,g,h){function k(a){g.text(a||"")}var l=h.count,m=h.$attr.when&&g.attr(h.$attr.when),r=h.offset||0,q=f.$eval(m)||{},v=
-{},y=b.startSymbol(),t=b.endSymbol(),p=y+l+"-"+r+t,w=ia.noop,u;n(h,function(a,b){var c=e.exec(b);c&&(c=(c[1]?"-":"")+G(c[2]),q[c]=g.attr(h.$attr[b]))});n(q,function(a,d){v[d]=b(a.replace(c,p))});f.$watch(l,function(b){var c=parseFloat(b),e=isNaN(c);e||c in q||(c=a.pluralCat(c-r));c===u||e&&N(u)&&isNaN(u)||(w(),e=v[c],x(e)?(null!=b&&d.debug("ngPluralize: no rule defined for '"+c+"' in "+m),w=B,k()):w=f.$watch(e,k),u=c)})}}}],Je=["$parse","$animate",function(a,b){var d=H("ngRepeat"),c=function(a,b,
-c,d,k,l,m){a[c]=d;k&&(a[k]=l);a.$index=b;a.$first=0===b;a.$last=b===m-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=0===(b&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(e,f){var g=f.ngRepeat,h=W.createComment(" end ngRepeat: "+g+" "),k=g.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!k)throw d("iexp",g);var l=k[1],m=k[2],r=k[3],q=k[4],k=l.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);
-if(!k)throw d("iidexp",l);var x=k[3]||k[1],y=k[2];if(r&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(r)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(r)))throw d("badident",r);var t,p,w,u,B={$id:Fa};q?t=a(q):(w=function(a,b){return Fa(b)},u=function(a){return a});return function(a,e,f,k,l){t&&(p=function(b,c,d){y&&(B[y]=b);B[x]=c;B.$index=d;return t(a,B)});var q=Z();a.$watchCollection(m,function(f){var k,m,s=e[0],t,B=Z(),D,E,H,F,L,G,N;r&&(a[r]=f);if(Ca(f))L=
-f,m=p||w;else for(N in m=p||u,L=[],f)sa.call(f,N)&&"$"!==N.charAt(0)&&L.push(N);D=L.length;N=Array(D);for(k=0;k<D;k++)if(E=f===L?k:L[k],H=f[E],F=m(E,H,k),q[F])G=q[F],delete q[F],B[F]=G,N[k]=G;else{if(B[F])throw n(N,function(a){a&&a.scope&&(q[a.id]=a)}),d("dupes",g,F,H);N[k]={id:F,scope:v,clone:v};B[F]=!0}for(t in q){G=q[t];F=tb(G.clone);b.leave(F);if(F[0].parentNode)for(k=0,m=F.length;k<m;k++)F[k].$$NG_REMOVED=!0;G.scope.$destroy()}for(k=0;k<D;k++)if(E=f===L?k:L[k],H=f[E],G=N[k],G.scope){t=s;do t=
-t.nextSibling;while(t&&t.$$NG_REMOVED);G.clone[0]!=t&&b.move(tb(G.clone),null,C(s));s=G.clone[G.clone.length-1];c(G.scope,k,x,H,y,E,D)}else l(function(a,d){G.scope=d;var e=h.cloneNode(!1);a[a.length++]=e;b.enter(a,null,C(s));s=e;G.clone=a;B[G.id]=G;c(G.scope,k,x,H,y,E,D)});q=B})}}}}],Ke=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngShow,function(b){a[b?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],De=["$animate",function(a){return{restrict:"A",
-multiElement:!0,link:function(b,d,c){b.$watch(c.ngHide,function(b){a[b?"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Le=Ma(function(a,b,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&n(d,function(a,c){b.css(c,"")});a&&b.css(a)},!0)}),Me=["$animate",function(a){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(b,d,c,e){var f=[],g=[],h=[],k=[],l=function(a,b){return function(){a.splice(b,1)}};b.$watch(c.ngSwitch||c.on,function(b){var c,
-d;c=0;for(d=h.length;c<d;++c)a.cancel(h[c]);c=h.length=0;for(d=k.length;c<d;++c){var q=tb(g[c].clone);k[c].$destroy();(h[c]=a.leave(q)).then(l(h,c))}g.length=0;k.length=0;(f=e.cases["!"+b]||e.cases["?"])&&n(f,function(b){b.transclude(function(c,d){k.push(d);var e=b.element;c[c.length++]=W.createComment(" end ngSwitchWhen: ");g.push({clone:c});a.enter(c,e.parent(),e)})})})}}}],Ne=Ma({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){c.cases["!"+d.ngSwitchWhen]=
-c.cases["!"+d.ngSwitchWhen]||[];c.cases["!"+d.ngSwitchWhen].push({transclude:e,element:b})}}),Oe=Ma({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){c.cases["?"]=c.cases["?"]||[];c.cases["?"].push({transclude:e,element:b})}}),Rg=H("ngTransclude"),Qe=Ma({restrict:"EAC",link:function(a,b,d,c,e){d.ngTransclude===d.$attr.ngTransclude&&(d.ngTransclude="");if(!e)throw Rg("orphan",ta(b));e(function(a){a.length&&(b.empty(),b.append(a))},null,d.ngTransclude||
-d.ngTranscludeSlot)}}),qe=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,d){"text/ng-template"==d.type&&a.put(d.id,b[0].text)}}}],Sg={$setViewValue:B,$render:B},Tg=["$element","$scope","$attrs",function(a,b,d){var c=this,e=new Ua;c.ngModelCtrl=Sg;c.unknownOption=C(W.createElement("option"));c.renderUnknownOption=function(b){b="? "+Fa(b)+" ?";c.unknownOption.val(b);a.prepend(c.unknownOption);a.val(b)};b.$on("$destroy",function(){c.renderUnknownOption=B});c.removeUnknownOption=
-function(){c.unknownOption.parent()&&c.unknownOption.remove()};c.readValue=function(){c.removeUnknownOption();return a.val()};c.writeValue=function(b){c.hasOption(b)?(c.removeUnknownOption(),a.val(b),""===b&&c.emptyOption.prop("selected",!0)):null==b&&c.emptyOption?(c.removeUnknownOption(),a.val("")):c.renderUnknownOption(b)};c.addOption=function(a,b){if(8!==b[0].nodeType){Ta(a,'"option value"');""===a&&(c.emptyOption=b);var d=e.get(a)||0;e.put(a,d+1);c.ngModelCtrl.$render();b[0].hasAttribute("selected")&&
-(b[0].selected=!0)}};c.removeOption=function(a){var b=e.get(a);b&&(1===b?(e.remove(a),""===a&&(c.emptyOption=v)):e.put(a,b-1))};c.hasOption=function(a){return!!e.get(a)};c.registerOption=function(a,b,d,e,l){if(e){var m;d.$observe("value",function(a){y(m)&&c.removeOption(m);m=a;c.addOption(a,b)})}else l?a.$watch(l,function(a,e){d.$set("value",a);e!==a&&c.removeOption(e);c.addOption(a,b)}):c.addOption(d.value,b);b.on("$destroy",function(){c.removeOption(d.value);c.ngModelCtrl.$render()})}}],re=function(){return{restrict:"E",
-require:["select","?ngModel"],controller:Tg,priority:1,link:{pre:function(a,b,d,c){var e=c[1];if(e){var f=c[0];f.ngModelCtrl=e;b.on("change",function(){a.$apply(function(){e.$setViewValue(f.readValue())})});if(d.multiple){f.readValue=function(){var a=[];n(b.find("option"),function(b){b.selected&&a.push(b.value)});return a};f.writeValue=function(a){var c=new Ua(a);n(b.find("option"),function(a){a.selected=y(c.get(a.value))})};var g,h=NaN;a.$watch(function(){h!==e.$viewValue||oa(g,e.$viewValue)||(g=
-na(e.$viewValue),e.$render());h=e.$viewValue});e.$isEmpty=function(a){return!a||0===a.length}}}},post:function(a,b,d,c){var e=c[1];if(e){var f=c[0];e.$render=function(){f.writeValue(e.$viewValue)}}}}}},te=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,d){if(y(d.value))var c=a(d.value,!0);else{var e=a(b.text(),!0);e||d.$set("value",b.text())}return function(a,b,d){var k=b.parent();(k=k.data("$selectController")||k.parent().data("$selectController"))&&k.registerOption(a,
-b,d,c,e)}}}}],se=ba({restrict:"E",terminal:!1}),Hc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){c&&(d.required=!0,c.$validators.required=function(a,b){return!d.required||!c.$isEmpty(b)},d.$observe("required",function(){c.$validate()}))}}},Gc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e,f=d.ngPattern||d.pattern;d.$observe("pattern",function(a){F(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw H("ngPattern")("noregexp",
-f,a,ta(b));e=a||v;c.$validate()});c.$validators.pattern=function(a,b){return c.$isEmpty(b)||x(e)||e.test(b)}}}}},Jc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=-1;d.$observe("maxlength",function(a){a=ca(a);e=isNaN(a)?-1:a;c.$validate()});c.$validators.maxlength=function(a,b){return 0>e||c.$isEmpty(b)||b.length<=e}}}}},Ic=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=0;d.$observe("minlength",function(a){e=ca(a)||0;c.$validate()});
-c.$validators.minlength=function(a,b){return c.$isEmpty(b)||b.length>=e}}}}};O.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(je(),le(ia),ia.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==b?0:a.length-b-1}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),
-SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",
-PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-\u00a4",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,c){var e=a|0,f=c;v===f&&(f=Math.min(b(a),3));Math.pow(10,f);return 1==e&&0==f?"one":"other"}})}]),C(W).ready(function(){fe(W,Ac)}))})(window,document);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');
-//# sourceMappingURL=angular.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/angular/angular.min.js.gzip b/ecomp-portal-FE/client/bower_components/angular/angular.min.js.gzip
deleted file mode 100644
index cd062885..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/angular.min.js.gzip
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/angular/angular.min.js.map b/ecomp-portal-FE/client/bower_components/angular/angular.min.js.map
deleted file mode 100644
index 07fc1ce3..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/angular.min.js.map
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-"version":3,
-"file":"angular.min.js",
-"lineCount":306,
-"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAmBC,CAAnB,CAA8B,CAgCvCC,QAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,MAAAA,SAAAA,EAAAA,CAAAA,IAAAA,EAAAA,SAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,GAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,EAAAA,EAAAA,CAAAA,CAAAA,sCAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,EAAAA,EAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,SAAAA,OAAAA,CAAAA,CAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,EAAAA,CAAAA,CAAAA,GAAAA,CAAAA,GAAAA,EAAAA,GAAAA,EAAAA,CAAAA,CAAAA,CAAAA,EAAAA,GAAAA,KAAAA,EAAAA,kBAAAA,CAAAA,CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,UAAAA,EAAAA,MAAAA,EAAAA,CAAAA,CAAAA,SAAAA,EAAAA,QAAAA,CAAAA,aAAAA,CAAAA,EAAAA,CAAAA,CAAAA,WAAAA,EAAAA,MAAAA,EAAAA,CAAAA,WAAAA,CAAAA,QAAAA,EAAAA,MAAAA,EAAAA,CAAAA,IAAAA,UAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,MAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAmNAC,QAASA,GAAW,CAACC,CAAD,CAAM,CAGxB,GAAW,IAAX,EAAIA,CAAJ,EAAmBC,EAAA,CAASD,CAAT,CAAnB,CAAkC,MAAO,CAAA,CAMzC,IAAIE,CAAA,CAAQF,CAAR,CAAJ,EAAoBG,CAAA,CAASH,CAAT,CAApB,EAAsCI,CAAtC,EAAgDJ,CAAhD,WAA+DI,EAA/D,CAAwE,MAAO,CAAA,CAI/E;IAAIC,EAAS,QAATA,EAAqBC,OAAA,CAAON,CAAP,CAArBK,EAAoCL,CAAAK,OAIxC,OAAOE,EAAA,CAASF,CAAT,CAAP,GACa,CADb,EACGA,CADH,GACoBA,CADpB,CAC6B,CAD7B,GACmCL,EADnC,EAC0CA,CAD1C,WACyDQ,MADzD,GACsF,UADtF,EACmE,MAAOR,EAAAS,KAD1E,CAjBwB,CAyD1BC,QAASA,EAAO,CAACV,CAAD,CAAMW,CAAN,CAAgBC,CAAhB,CAAyB,CAAA,IACnCC,CADmC,CAC9BR,CACT,IAAIL,CAAJ,CACE,GAAIc,CAAA,CAAWd,CAAX,CAAJ,CACE,IAAKa,CAAL,GAAYb,EAAZ,CAGa,WAAX,EAAIa,CAAJ,EAAiC,QAAjC,EAA0BA,CAA1B,EAAoD,MAApD,EAA6CA,CAA7C,EAAgEb,CAAAe,eAAhE,EAAsF,CAAAf,CAAAe,eAAA,CAAmBF,CAAnB,CAAtF,EACEF,CAAAK,KAAA,CAAcJ,CAAd,CAAuBZ,CAAA,CAAIa,CAAJ,CAAvB,CAAiCA,CAAjC,CAAsCb,CAAtC,CALN,KAQO,IAAIE,CAAA,CAAQF,CAAR,CAAJ,EAAoBD,EAAA,CAAYC,CAAZ,CAApB,CAAsC,CAC3C,IAAIiB,EAA6B,QAA7BA,GAAc,MAAOjB,EACpBa,EAAA,CAAM,CAAX,KAAcR,CAAd,CAAuBL,CAAAK,OAAvB,CAAmCQ,CAAnC,CAAyCR,CAAzC,CAAiDQ,CAAA,EAAjD,CACE,CAAII,CAAJ,EAAmBJ,CAAnB,GAA0Bb,EAA1B,GACEW,CAAAK,KAAA,CAAcJ,CAAd,CAAuBZ,CAAA,CAAIa,CAAJ,CAAvB,CAAiCA,CAAjC,CAAsCb,CAAtC,CAJuC,CAAtC,IAOA,IAAIA,CAAAU,QAAJ,EAAmBV,CAAAU,QAAnB,GAAmCA,CAAnC,CACHV,CAAAU,QAAA,CAAYC,CAAZ,CAAsBC,CAAtB,CAA+BZ,CAA/B,CADG,KAEA,IAAIkB,EAAA,CAAclB,CAAd,CAAJ,CAEL,IAAKa,CAAL,GAAYb,EAAZ,CACEW,CAAAK,KAAA,CAAcJ,CAAd,CAAuBZ,CAAA,CAAIa,CAAJ,CAAvB,CAAiCA,CAAjC,CAAsCb,CAAtC,CAHG,KAKA,IAAkC,UAAlC,GAAI,MAAOA,EAAAe,eAAX,CAEL,IAAKF,CAAL,GAAYb,EAAZ,CACMA,CAAAe,eAAA,CAAmBF,CAAnB,CAAJ;AACEF,CAAAK,KAAA,CAAcJ,CAAd,CAAuBZ,CAAA,CAAIa,CAAJ,CAAvB,CAAiCA,CAAjC,CAAsCb,CAAtC,CAJC,KASL,KAAKa,CAAL,GAAYb,EAAZ,CACMe,EAAAC,KAAA,CAAoBhB,CAApB,CAAyBa,CAAzB,CAAJ,EACEF,CAAAK,KAAA,CAAcJ,CAAd,CAAuBZ,CAAA,CAAIa,CAAJ,CAAvB,CAAiCA,CAAjC,CAAsCb,CAAtC,CAKR,OAAOA,EAzCgC,CA4CzCmB,QAASA,GAAa,CAACnB,CAAD,CAAMW,CAAN,CAAgBC,CAAhB,CAAyB,CAE7C,IADA,IAAIQ,EAAOd,MAAAc,KAAA,CAAYpB,CAAZ,CAAAqB,KAAA,EAAX,CACSC,EAAI,CAAb,CAAgBA,CAAhB,CAAoBF,CAAAf,OAApB,CAAiCiB,CAAA,EAAjC,CACEX,CAAAK,KAAA,CAAcJ,CAAd,CAAuBZ,CAAA,CAAIoB,CAAA,CAAKE,CAAL,CAAJ,CAAvB,CAAqCF,CAAA,CAAKE,CAAL,CAArC,CAEF,OAAOF,EALsC,CAc/CG,QAASA,GAAa,CAACC,CAAD,CAAa,CACjC,MAAO,SAAQ,CAACC,CAAD,CAAQZ,CAAR,CAAa,CAACW,CAAA,CAAWX,CAAX,CAAgBY,CAAhB,CAAD,CADK,CAcnCC,QAASA,GAAO,EAAG,CACjB,MAAO,EAAEC,EADQ,CAmBnBC,QAASA,GAAU,CAACC,CAAD,CAAMC,CAAN,CAAYC,CAAZ,CAAkB,CAGnC,IAFA,IAAIC,EAAIH,CAAAI,UAAR,CAESX,EAAI,CAFb,CAEgBY,EAAKJ,CAAAzB,OAArB,CAAkCiB,CAAlC,CAAsCY,CAAtC,CAA0C,EAAEZ,CAA5C,CAA+C,CAC7C,IAAItB,EAAM8B,CAAA,CAAKR,CAAL,CACV,IAAKa,CAAA,CAASnC,CAAT,CAAL,EAAuBc,CAAA,CAAWd,CAAX,CAAvB,CAEA,IADA,IAAIoB,EAAOd,MAAAc,KAAA,CAAYpB,CAAZ,CAAX,CACSoC,EAAI,CADb,CACgBC,EAAKjB,CAAAf,OAArB,CAAkC+B,CAAlC,CAAsCC,CAAtC,CAA0CD,CAAA,EAA1C,CAA+C,CAC7C,IAAIvB,EAAMO,CAAA,CAAKgB,CAAL,CAAV,CACIE,EAAMtC,CAAA,CAAIa,CAAJ,CAENkB,EAAJ,EAAYI,CAAA,CAASG,CAAT,CAAZ,CACMC,CAAA,CAAOD,CAAP,CAAJ,CACET,CAAA,CAAIhB,CAAJ,CADF,CACa,IAAI2B,IAAJ,CAASF,CAAAG,QAAA,EAAT,CADb,CAEWC,EAAA,CAASJ,CAAT,CAAJ,CACLT,CAAA,CAAIhB,CAAJ,CADK,CACM,IAAI8B,MAAJ,CAAWL,CAAX,CADN,CAEIA,CAAAM,SAAJ,CACLf,CAAA,CAAIhB,CAAJ,CADK,CACMyB,CAAAO,UAAA,CAAc,CAAA,CAAd,CADN;AAEIC,EAAA,CAAUR,CAAV,CAAJ,CACLT,CAAA,CAAIhB,CAAJ,CADK,CACMyB,CAAAS,MAAA,EADN,EAGAZ,CAAA,CAASN,CAAA,CAAIhB,CAAJ,CAAT,CACL,GADyBgB,CAAA,CAAIhB,CAAJ,CACzB,CADoCX,CAAA,CAAQoC,CAAR,CAAA,CAAe,EAAf,CAAoB,EACxD,EAAAV,EAAA,CAAWC,CAAA,CAAIhB,CAAJ,CAAX,CAAqB,CAACyB,CAAD,CAArB,CAA4B,CAAA,CAA5B,CAJK,CAPT,CAcET,CAAA,CAAIhB,CAAJ,CAdF,CAcayB,CAlBgC,CAJF,CA2B/BN,CAtChB,CAsCWH,CArCTI,UADF,CAsCgBD,CAtChB,CAGE,OAmCSH,CAnCFI,UAoCT,OAAOJ,EA/B4B,CAoDrCmB,QAASA,EAAM,CAACnB,CAAD,CAAM,CACnB,MAAOD,GAAA,CAAWC,CAAX,CAAgBoB,EAAAjC,KAAA,CAAWkC,SAAX,CAAsB,CAAtB,CAAhB,CAA0C,CAAA,CAA1C,CADY,CAuBrBC,QAASA,GAAK,CAACtB,CAAD,CAAM,CAClB,MAAOD,GAAA,CAAWC,CAAX,CAAgBoB,EAAAjC,KAAA,CAAWkC,SAAX,CAAsB,CAAtB,CAAhB,CAA0C,CAAA,CAA1C,CADW,CAMpBE,QAASA,GAAK,CAACC,CAAD,CAAM,CAClB,MAAOC,SAAA,CAASD,CAAT,CAAc,EAAd,CADW,CAKpBE,QAASA,GAAO,CAACC,CAAD,CAASC,CAAT,CAAgB,CAC9B,MAAOT,EAAA,CAAO1C,MAAAoD,OAAA,CAAcF,CAAd,CAAP,CAA8BC,CAA9B,CADuB,CAoBhCE,QAASA,EAAI,EAAG,EAsBhBC,QAASA,GAAQ,CAACC,CAAD,CAAI,CAAC,MAAOA,EAAR,CAIrBC,QAASA,GAAO,CAACrC,CAAD,CAAQ,CAAC,MAAO,SAAQ,EAAG,CAAC,MAAOA,EAAR,CAAnB,CAExBsC,QAASA,GAAiB,CAAC/D,CAAD,CAAM,CAC9B,MAAOc,EAAA,CAAWd,CAAAgE,SAAX,CAAP,EAAmChE,CAAAgE,SAAnC,GAAoDA,EADtB,CAiBhCC,QAASA,EAAW,CAACxC,CAAD,CAAQ,CAAC,MAAwB,WAAxB,GAAO,MAAOA,EAAf,CAe5ByC,QAASA,EAAS,CAACzC,CAAD,CAAQ,CAAC,MAAwB,WAAxB;AAAO,MAAOA,EAAf,CAgB1BU,QAASA,EAAQ,CAACV,CAAD,CAAQ,CAEvB,MAAiB,KAAjB,GAAOA,CAAP,EAA0C,QAA1C,GAAyB,MAAOA,EAFT,CAWzBP,QAASA,GAAa,CAACO,CAAD,CAAQ,CAC5B,MAAiB,KAAjB,GAAOA,CAAP,EAA0C,QAA1C,GAAyB,MAAOA,EAAhC,EAAsD,CAAC0C,EAAA,CAAe1C,CAAf,CAD3B,CAiB9BtB,QAASA,EAAQ,CAACsB,CAAD,CAAQ,CAAC,MAAwB,QAAxB,GAAO,MAAOA,EAAf,CAqBzBlB,QAASA,EAAQ,CAACkB,CAAD,CAAQ,CAAC,MAAwB,QAAxB,GAAO,MAAOA,EAAf,CAezBc,QAASA,EAAM,CAACd,CAAD,CAAQ,CACrB,MAAgC,eAAhC,GAAOuC,EAAAhD,KAAA,CAAcS,CAAd,CADc,CA+BvBX,QAASA,EAAU,CAACW,CAAD,CAAQ,CAAC,MAAwB,UAAxB,GAAO,MAAOA,EAAf,CAU3BiB,QAASA,GAAQ,CAACjB,CAAD,CAAQ,CACvB,MAAgC,iBAAhC,GAAOuC,EAAAhD,KAAA,CAAcS,CAAd,CADgB,CAYzBxB,QAASA,GAAQ,CAACD,CAAD,CAAM,CACrB,MAAOA,EAAP,EAAcA,CAAAL,OAAd,GAA6BK,CADR,CAKvBoE,QAASA,GAAO,CAACpE,CAAD,CAAM,CACpB,MAAOA,EAAP,EAAcA,CAAAqE,WAAd,EAAgCrE,CAAAsE,OADZ,CAoBtBC,QAASA,GAAS,CAAC9C,CAAD,CAAQ,CACxB,MAAwB,SAAxB,GAAO,MAAOA,EADU,CAW1B+C,QAASA,GAAY,CAAC/C,CAAD,CAAQ,CAC3B,MAAOA,EAAP,EAAgBlB,CAAA,CAASkB,CAAApB,OAAT,CAAhB;AAA0CoE,EAAAC,KAAA,CAAwBV,EAAAhD,KAAA,CAAcS,CAAd,CAAxB,CADf,CAkC7BqB,QAASA,GAAS,CAAC6B,CAAD,CAAO,CACvB,MAAO,EAAGA,CAAAA,CAAH,EACJ,EAAAA,CAAA/B,SAAA,EACG+B,CAAAC,KADH,EACgBD,CAAAE,KADhB,EAC6BF,CAAAG,KAD7B,CADI,CADgB,CAUzBC,QAASA,GAAO,CAAC1B,CAAD,CAAM,CAAA,IAChBrD,EAAM,EAAIgF,EAAAA,CAAQ3B,CAAA4B,MAAA,CAAU,GAAV,CAAtB,KAAsC3D,CACtC,KAAKA,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgB0D,CAAA3E,OAAhB,CAA8BiB,CAAA,EAA9B,CACEtB,CAAA,CAAIgF,CAAA,CAAM1D,CAAN,CAAJ,CAAA,CAAgB,CAAA,CAElB,OAAOtB,EALa,CAStBkF,QAASA,GAAS,CAACC,CAAD,CAAU,CAC1B,MAAOC,EAAA,CAAUD,CAAAvC,SAAV,EAA+BuC,CAAA,CAAQ,CAAR,CAA/B,EAA6CA,CAAA,CAAQ,CAAR,CAAAvC,SAA7C,CADmB,CAQ5ByC,QAASA,GAAW,CAACC,CAAD,CAAQ7D,CAAR,CAAe,CACjC,IAAI8D,EAAQD,CAAAE,QAAA,CAAc/D,CAAd,CACC,EAAb,EAAI8D,CAAJ,EACED,CAAAG,OAAA,CAAaF,CAAb,CAAoB,CAApB,CAEF,OAAOA,EAL0B,CAkEnCG,QAASA,GAAI,CAACC,CAAD,CAASC,CAAT,CAAsB,CA8BjCC,QAASA,EAAW,CAACF,CAAD,CAASC,CAAT,CAAsB,CACxC,IAAI5D,EAAI4D,CAAA3D,UAAR,CACYpB,CACZ,IAAIX,CAAA,CAAQyF,CAAR,CAAJ,CAAqB,CACVrE,CAAAA,CAAI,CAAb,KAAS,IAAOY,EAAKyD,CAAAtF,OAArB,CAAoCiB,CAApC,CAAwCY,CAAxC,CAA4CZ,CAAA,EAA5C,CACEsE,CAAAE,KAAA,CAAiBC,CAAA,CAAYJ,CAAA,CAAOrE,CAAP,CAAZ,CAAjB,CAFiB,CAArB,IAIO,IAAIJ,EAAA,CAAcyE,CAAd,CAAJ,CAEL,IAAK9E,CAAL,GAAY8E,EAAZ,CACEC,CAAA,CAAY/E,CAAZ,CAAA,CAAmBkF,CAAA,CAAYJ,CAAA,CAAO9E,CAAP,CAAZ,CAHhB,KAKA,IAAI8E,CAAJ,EAA+C,UAA/C,GAAc,MAAOA,EAAA5E,eAArB,CAEL,IAAKF,CAAL,GAAY8E,EAAZ,CACMA,CAAA5E,eAAA,CAAsBF,CAAtB,CAAJ;CACE+E,CAAA,CAAY/E,CAAZ,CADF,CACqBkF,CAAA,CAAYJ,CAAA,CAAO9E,CAAP,CAAZ,CADrB,CAHG,KASL,KAAKA,CAAL,GAAY8E,EAAZ,CACM5E,EAAAC,KAAA,CAAoB2E,CAApB,CAA4B9E,CAA5B,CAAJ,GACE+E,CAAA,CAAY/E,CAAZ,CADF,CACqBkF,CAAA,CAAYJ,CAAA,CAAO9E,CAAP,CAAZ,CADrB,CAKoBmB,EA/gB1B,CA+gBa4D,CA9gBX3D,UADF,CA+gB0BD,CA/gB1B,CAGE,OA4gBW4D,CA5gBJ3D,UA6gBP,OAAO2D,EA5BiC,CA+B1CG,QAASA,EAAW,CAACJ,CAAD,CAAS,CAE3B,GAAK,CAAAxD,CAAA,CAASwD,CAAT,CAAL,CACE,MAAOA,EAIT,KAAIJ,EAAQS,CAAAR,QAAA,CAAoBG,CAApB,CACZ,IAAe,EAAf,GAAIJ,CAAJ,CACE,MAAOU,EAAA,CAAUV,CAAV,CAGT,IAAItF,EAAA,CAAS0F,CAAT,CAAJ,EAAwBvB,EAAA,CAAQuB,CAAR,CAAxB,CACE,KAAMO,GAAA,CAAS,MAAT,CAAN,CAIEC,IAAAA,EAAe,CAAA,CAAfA,CACAP,EAAcQ,CAAA,CAAST,CAAT,CAEdC,EAAJ,GAAoB/F,CAApB,GACE+F,CACA,CADc1F,CAAA,CAAQyF,CAAR,CAAA,CAAkB,EAAlB,CAAuBrF,MAAAoD,OAAA,CAAcS,EAAA,CAAewB,CAAf,CAAd,CACrC,CAAAQ,CAAA,CAAe,CAAA,CAFjB,CAKAH,EAAAF,KAAA,CAAiBH,CAAjB,CACAM,EAAAH,KAAA,CAAeF,CAAf,CAEA,OAAOO,EAAA,CACHN,CAAA,CAAYF,CAAZ,CAAoBC,CAApB,CADG,CAEHA,CA9BuB,CAiC7BQ,QAASA,EAAQ,CAACT,CAAD,CAAS,CACxB,OAAQ3B,EAAAhD,KAAA,CAAc2E,CAAd,CAAR,EACE,KAAK,oBAAL,CACA,KAAK,qBAAL,CACA,KAAK,qBAAL,CACA,KAAK,uBAAL,CACA,KAAK,uBAAL,CACA,KAAK,qBAAL,CACA,KAAK,4BAAL,CACA,KAAK,sBAAL,CACA,KAAK,sBAAL,CACE,MAAO,KAAIA,CAAAU,YAAJ,CAAuBN,CAAA,CAAYJ,CAAAW,OAAZ,CAAvB,CAET;KAAK,sBAAL,CAEE,GAAKrD,CAAA0C,CAAA1C,MAAL,CAAmB,CACjB,IAAIsD,EAAS,IAAIC,WAAJ,CAAgBb,CAAAc,WAAhB,CACbC,EAAA,IAAIC,UAAJ,CAAeJ,CAAf,CAAAG,KAAA,CAA2B,IAAIC,UAAJ,CAAehB,CAAf,CAA3B,CACA,OAAOY,EAHU,CAKnB,MAAOZ,EAAA1C,MAAA,CAAa,CAAb,CAET,MAAK,kBAAL,CACA,KAAK,iBAAL,CACA,KAAK,iBAAL,CACA,KAAK,eAAL,CACE,MAAO,KAAI0C,CAAAU,YAAJ,CAAuBV,CAAAlD,QAAA,EAAvB,CAET,MAAK,iBAAL,CAGE,MAFImE,EAEGA,CAFE,IAAIjE,MAAJ,CAAWgD,CAAAA,OAAX,CAA0BA,CAAA3B,SAAA,EAAA6C,MAAA,CAAwB,SAAxB,CAAA,CAAmC,CAAnC,CAA1B,CAEFD,CADPA,CAAAE,UACOF,CADQjB,CAAAmB,UACRF,CAAAA,CA9BX,CAiCA,GAAI9F,CAAA,CAAW6E,CAAA9C,UAAX,CAAJ,CACE,MAAO8C,EAAA9C,UAAA,CAAiB,CAAA,CAAjB,CAnCe,CA7F1B,IAAImD,EAAc,EAAlB,CACIC,EAAY,EAEhB,IAAIL,CAAJ,CAAiB,CACf,GAAIpB,EAAA,CAAaoB,CAAb,CAAJ,EA/H4B,sBA+H5B,GA/HK5B,EAAAhD,KAAA,CA+H0C4E,CA/H1C,CA+HL,CACE,KAAMM,GAAA,CAAS,MAAT,CAAN;AAEF,GAAIP,CAAJ,GAAeC,CAAf,CACE,KAAMM,GAAA,CAAS,KAAT,CAAN,CAIEhG,CAAA,CAAQ0F,CAAR,CAAJ,CACEA,CAAAvF,OADF,CACuB,CADvB,CAGEK,CAAA,CAAQkF,CAAR,CAAqB,QAAQ,CAACnE,CAAD,CAAQZ,CAAR,CAAa,CAC5B,WAAZ,GAAIA,CAAJ,EACE,OAAO+E,CAAA,CAAY/E,CAAZ,CAF+B,CAA1C,CAOFmF,EAAAF,KAAA,CAAiBH,CAAjB,CACAM,EAAAH,KAAA,CAAeF,CAAf,CACA,OAAOC,EAAA,CAAYF,CAAZ,CAAoBC,CAApB,CArBQ,CAwBjB,MAAOG,EAAA,CAAYJ,CAAZ,CA5B0B,CA2InCoB,QAASA,GAAW,CAACzE,CAAD,CAAMT,CAAN,CAAW,CAC7B,GAAI3B,CAAA,CAAQoC,CAAR,CAAJ,CAAkB,CAChBT,CAAA,CAAMA,CAAN,EAAa,EAEb,KAHgB,IAGPP,EAAI,CAHG,CAGAY,EAAKI,CAAAjC,OAArB,CAAiCiB,CAAjC,CAAqCY,CAArC,CAAyCZ,CAAA,EAAzC,CACEO,CAAA,CAAIP,CAAJ,CAAA,CAASgB,CAAA,CAAIhB,CAAJ,CAJK,CAAlB,IAMO,IAAIa,CAAA,CAASG,CAAT,CAAJ,CAGL,IAASzB,CAAT,GAFAgB,EAEgBS,CAFVT,CAEUS,EAFH,EAEGA,CAAAA,CAAhB,CACE,GAAwB,GAAxB,GAAMzB,CAAAmG,OAAA,CAAW,CAAX,CAAN,EAAiD,GAAjD,GAA+BnG,CAAAmG,OAAA,CAAW,CAAX,CAA/B,CACEnF,CAAA,CAAIhB,CAAJ,CAAA,CAAWyB,CAAA,CAAIzB,CAAJ,CAKjB,OAAOgB,EAAP,EAAcS,CAjBe,CAkD/B2E,QAASA,GAAM,CAACC,CAAD,CAAKC,CAAL,CAAS,CACtB,GAAID,CAAJ,GAAWC,CAAX,CAAe,MAAO,CAAA,CACtB,IAAW,IAAX,GAAID,CAAJ,EAA0B,IAA1B,GAAmBC,CAAnB,CAAgC,MAAO,CAAA,CACvC,IAAID,CAAJ,GAAWA,CAAX,EAAiBC,CAAjB,GAAwBA,CAAxB,CAA4B,MAAO,CAAA,CAHb,KAIlBC,EAAK,MAAOF,EAJM,CAIsBrG,CAC5C,IAAIuG,CAAJ,EADyBC,MAAOF,EAChC,EAAsB,QAAtB,EAAgBC,CAAhB,CACE,GAAIlH,CAAA,CAAQgH,CAAR,CAAJ,CAAiB,CACf,GAAK,CAAAhH,CAAA,CAAQiH,CAAR,CAAL,CAAkB,MAAO,CAAA,CACzB,KAAK9G,CAAL,CAAc6G,CAAA7G,OAAd,GAA4B8G,CAAA9G,OAA5B,CAAuC,CACrC,IAAKQ,CAAL;AAAW,CAAX,CAAcA,CAAd,CAAoBR,CAApB,CAA4BQ,CAAA,EAA5B,CACE,GAAK,CAAAoG,EAAA,CAAOC,CAAA,CAAGrG,CAAH,CAAP,CAAgBsG,CAAA,CAAGtG,CAAH,CAAhB,CAAL,CAA+B,MAAO,CAAA,CAExC,OAAO,CAAA,CAJ8B,CAFxB,CAAjB,IAQO,CAAA,GAAI0B,CAAA,CAAO2E,CAAP,CAAJ,CACL,MAAK3E,EAAA,CAAO4E,CAAP,CAAL,CACOF,EAAA,CAAOC,CAAAI,QAAA,EAAP,CAAqBH,CAAAG,QAAA,EAArB,CADP,CAAwB,CAAA,CAEnB,IAAI5E,EAAA,CAASwE,CAAT,CAAJ,CACL,MAAKxE,GAAA,CAASyE,CAAT,CAAL,CACOD,CAAAlD,SAAA,EADP,EACwBmD,CAAAnD,SAAA,EADxB,CAA0B,CAAA,CAG1B,IAAII,EAAA,CAAQ8C,CAAR,CAAJ,EAAmB9C,EAAA,CAAQ+C,CAAR,CAAnB,EAAkClH,EAAA,CAASiH,CAAT,CAAlC,EAAkDjH,EAAA,CAASkH,CAAT,CAAlD,EACEjH,CAAA,CAAQiH,CAAR,CADF,EACiB5E,CAAA,CAAO4E,CAAP,CADjB,EAC+BzE,EAAA,CAASyE,CAAT,CAD/B,CAC6C,MAAO,CAAA,CACpDI,EAAA,CAASC,CAAA,EACT,KAAK3G,CAAL,GAAYqG,EAAZ,CACE,GAAsB,GAAtB,GAAIrG,CAAAmG,OAAA,CAAW,CAAX,CAAJ,EAA6B,CAAAlG,CAAA,CAAWoG,CAAA,CAAGrG,CAAH,CAAX,CAA7B,CAAA,CACA,GAAK,CAAAoG,EAAA,CAAOC,CAAA,CAAGrG,CAAH,CAAP,CAAgBsG,CAAA,CAAGtG,CAAH,CAAhB,CAAL,CAA+B,MAAO,CAAA,CACtC0G,EAAA,CAAO1G,CAAP,CAAA,CAAc,CAAA,CAFd,CAIF,IAAKA,CAAL,GAAYsG,EAAZ,CACE,GAAM,EAAAtG,CAAA,GAAO0G,EAAP,CAAN,EACsB,GADtB,GACI1G,CAAAmG,OAAA,CAAW,CAAX,CADJ,EAEI9C,CAAA,CAAUiD,CAAA,CAAGtG,CAAH,CAAV,CAFJ,EAGK,CAAAC,CAAA,CAAWqG,CAAA,CAAGtG,CAAH,CAAX,CAHL,CAG0B,MAAO,CAAA,CAEnC,OAAO,CAAA,CArBF,CAwBT,MAAO,CAAA,CAtCe,CAkIxB4G,QAASA,GAAM,CAACC,CAAD,CAASC,CAAT,CAAiBpC,CAAjB,CAAwB,CACrC,MAAOmC,EAAAD,OAAA,CAAcxE,EAAAjC,KAAA,CAAW2G,CAAX,CAAmBpC,CAAnB,CAAd,CAD8B,CA4BvCqC,QAASA,GAAI,CAACC,CAAD,CAAOC,CAAP,CAAW,CACtB,IAAIC,EAA+B,CAAnB,CAAA7E,SAAA7C,OAAA,CAxBT4C,EAAAjC,KAAA,CAwB0CkC,SAxB1C,CAwBqD8E,CAxBrD,CAwBS,CAAiD,EACjE;MAAI,CAAAlH,CAAA,CAAWgH,CAAX,CAAJ,EAAwBA,CAAxB,WAAsCnF,OAAtC,CAcSmF,CAdT,CACSC,CAAA1H,OAAA,CACH,QAAQ,EAAG,CACT,MAAO6C,UAAA7C,OAAA,CACHyH,CAAAG,MAAA,CAASJ,CAAT,CAAeJ,EAAA,CAAOM,CAAP,CAAkB7E,SAAlB,CAA6B,CAA7B,CAAf,CADG,CAEH4E,CAAAG,MAAA,CAASJ,CAAT,CAAeE,CAAf,CAHK,CADR,CAMH,QAAQ,EAAG,CACT,MAAO7E,UAAA7C,OAAA,CACHyH,CAAAG,MAAA,CAASJ,CAAT,CAAe3E,SAAf,CADG,CAEH4E,CAAA9G,KAAA,CAAQ6G,CAAR,CAHK,CATK,CAqBxBK,QAASA,GAAc,CAACrH,CAAD,CAAMY,CAAN,CAAa,CAClC,IAAI0G,EAAM1G,CAES,SAAnB,GAAI,MAAOZ,EAAX,EAAiD,GAAjD,GAA+BA,CAAAmG,OAAA,CAAW,CAAX,CAA/B,EAA0E,GAA1E,GAAwDnG,CAAAmG,OAAA,CAAW,CAAX,CAAxD,CACEmB,CADF,CACQtI,CADR,CAEWI,EAAA,CAASwB,CAAT,CAAJ,CACL0G,CADK,CACC,SADD,CAEI1G,CAAJ,EAAc7B,CAAd,GAA2B6B,CAA3B,CACL0G,CADK,CACC,WADD,CAEI/D,EAAA,CAAQ3C,CAAR,CAFJ,GAGL0G,CAHK,CAGC,QAHD,CAMP,OAAOA,EAb2B,CAgCpCC,QAASA,GAAM,CAACpI,CAAD,CAAMqI,CAAN,CAAc,CAC3B,GAAIpE,CAAA,CAAYjE,CAAZ,CAAJ,CAAsB,MAAOH,EACxBU,EAAA,CAAS8H,CAAT,CAAL,GACEA,CADF,CACWA,CAAA,CAAS,CAAT,CAAa,IADxB,CAGA,OAAOC,KAAAC,UAAA,CAAevI,CAAf,CAAoBkI,EAApB,CAAoCG,CAApC,CALoB,CAqB7BG,QAASA,GAAQ,CAACC,CAAD,CAAO,CACtB,MAAOtI,EAAA,CAASsI,CAAT,CAAA,CACDH,IAAAI,MAAA,CAAWD,CAAX,CADC,CAEDA,CAHgB,CAQxBE,QAASA,GAAgB,CAACC,CAAD,CAAWC,CAAX,CAAqB,CAE5CD,CAAA,CAAWA,CAAAE,QAAA,CAAiBC,EAAjB;AAA6B,EAA7B,CACX,KAAIC,EAA0BxG,IAAAkG,MAAA,CAAW,wBAAX,CAAsCE,CAAtC,CAA1BI,CAA4E,GAChF,OAAOC,MAAA,CAAMD,CAAN,CAAA,CAAiCH,CAAjC,CAA4CG,CAJP,CAe9CE,QAASA,GAAsB,CAACC,CAAD,CAAOP,CAAP,CAAiBQ,CAAjB,CAA0B,CACvDA,CAAA,CAAUA,CAAA,CAAW,EAAX,CAAe,CACzB,KAAIC,EAAqBF,CAAAG,kBAAA,EACrBC,EAAAA,CAAiBZ,EAAA,CAAiBC,CAAjB,CAA2BS,CAA3B,CACO,EAAA,EAAWE,CAAX,CAA4BF,CAVxDF,EAAA,CAAO,IAAI3G,IAAJ,CAUe2G,CAVN7B,QAAA,EAAT,CACP6B,EAAAK,WAAA,CAAgBL,CAAAM,WAAA,EAAhB,CAAoCC,CAApC,CASA,OAROP,EAIgD,CAWzDQ,QAASA,GAAW,CAACxE,CAAD,CAAU,CAC5BA,CAAA,CAAU/E,CAAA,CAAO+E,CAAP,CAAApC,MAAA,EACV,IAAI,CAGFoC,CAAAyE,MAAA,EAHE,CAIF,MAAOC,CAAP,CAAU,EACZ,IAAIC,EAAW1J,CAAA,CAAO,OAAP,CAAA2J,OAAA,CAAuB5E,CAAvB,CAAA6E,KAAA,EACf,IAAI,CACF,MAAO7E,EAAA,CAAQ,CAAR,CAAA8E,SAAA,GAAwBC,EAAxB,CAAyC9E,CAAA,CAAU0E,CAAV,CAAzC,CACHA,CAAAjD,MAAA,CACQ,YADR,CAAA,CACsB,CADtB,CAAAiC,QAAA,CAEU,aAFV,CAEyB,QAAQ,CAACjC,CAAD,CAAQjE,CAAR,CAAkB,CAAC,MAAO,GAAP,CAAawC,CAAA,CAAUxC,CAAV,CAAd,CAFnD,CAFF,CAKF,MAAOiH,CAAP,CAAU,CACV,MAAOzE,EAAA,CAAU0E,CAAV,CADG,CAbgB,CA8B9BK,QAASA,GAAqB,CAAC1I,CAAD,CAAQ,CACpC,GAAI,CACF,MAAO2I,mBAAA,CAAmB3I,CAAnB,CADL,CAEF,MAAOoI,CAAP,CAAU,EAHwB,CAatCQ,QAASA,GAAa,CAAYC,CAAZ,CAAsB,CAC1C,IAAItK;AAAM,EACVU,EAAA,CAAQuE,CAACqF,CAADrF,EAAa,EAAbA,OAAA,CAAuB,GAAvB,CAAR,CAAqC,QAAQ,CAACqF,CAAD,CAAW,CAAA,IAClDC,CADkD,CACtC1J,CADsC,CACjCsH,CACjBmC,EAAJ,GACEzJ,CAOA,CAPMyJ,CAON,CAPiBA,CAAAxB,QAAA,CAAiB,KAAjB,CAAuB,KAAvB,CAOjB,CANAyB,CAMA,CANaD,CAAA9E,QAAA,CAAiB,GAAjB,CAMb,CALoB,EAKpB,GALI+E,CAKJ,GAJE1J,CACA,CADMyJ,CAAAE,UAAA,CAAmB,CAAnB,CAAsBD,CAAtB,CACN,CAAApC,CAAA,CAAMmC,CAAAE,UAAA,CAAmBD,CAAnB,CAAgC,CAAhC,CAGR,EADA1J,CACA,CADMsJ,EAAA,CAAsBtJ,CAAtB,CACN,CAAIqD,CAAA,CAAUrD,CAAV,CAAJ,GACEsH,CACA,CADMjE,CAAA,CAAUiE,CAAV,CAAA,CAAiBgC,EAAA,CAAsBhC,CAAtB,CAAjB,CAA8C,CAAA,CACpD,CAAKpH,EAAAC,KAAA,CAAoBhB,CAApB,CAAyBa,CAAzB,CAAL,CAEWX,CAAA,CAAQF,CAAA,CAAIa,CAAJ,CAAR,CAAJ,CACLb,CAAA,CAAIa,CAAJ,CAAAiF,KAAA,CAAcqC,CAAd,CADK,CAGLnI,CAAA,CAAIa,CAAJ,CAHK,CAGM,CAACb,CAAA,CAAIa,CAAJ,CAAD,CAAUsH,CAAV,CALb,CACEnI,CAAA,CAAIa,CAAJ,CADF,CACasH,CAHf,CARF,CAFsD,CAAxD,CAsBA,OAAOnI,EAxBmC,CA2B5CyK,QAASA,GAAU,CAACzK,CAAD,CAAM,CACvB,IAAI0K,EAAQ,EACZhK,EAAA,CAAQV,CAAR,CAAa,QAAQ,CAACyB,CAAD,CAAQZ,CAAR,CAAa,CAC5BX,CAAA,CAAQuB,CAAR,CAAJ,CACEf,CAAA,CAAQe,CAAR,CAAe,QAAQ,CAACkJ,CAAD,CAAa,CAClCD,CAAA5E,KAAA,CAAW8E,EAAA,CAAe/J,CAAf,CAAoB,CAAA,CAApB,CAAX,EAC2B,CAAA,CAAf,GAAA8J,CAAA,CAAsB,EAAtB,CAA2B,GAA3B,CAAiCC,EAAA,CAAeD,CAAf,CAA2B,CAAA,CAA3B,CAD7C,EADkC,CAApC,CADF,CAMAD,CAAA5E,KAAA,CAAW8E,EAAA,CAAe/J,CAAf,CAAoB,CAAA,CAApB,CAAX,EACsB,CAAA,CAAV,GAAAY,CAAA,CAAiB,EAAjB,CAAsB,GAAtB,CAA4BmJ,EAAA,CAAenJ,CAAf,CAAsB,CAAA,CAAtB,CADxC,EAPgC,CAAlC,CAWA,OAAOiJ,EAAArK,OAAA,CAAeqK,CAAAG,KAAA,CAAW,GAAX,CAAf,CAAiC,EAbjB,CA4BzBC,QAASA,GAAgB,CAAC3C,CAAD,CAAM,CAC7B,MAAOyC,GAAA,CAAezC,CAAf,CAAoB,CAAA,CAApB,CAAAW,QAAA,CACY,OADZ,CACqB,GADrB,CAAAA,QAAA,CAEY,OAFZ,CAEqB,GAFrB,CAAAA,QAAA,CAGY,OAHZ;AAGqB,GAHrB,CADsB,CAmB/B8B,QAASA,GAAc,CAACzC,CAAD,CAAM4C,CAAN,CAAuB,CAC5C,MAAOC,mBAAA,CAAmB7C,CAAnB,CAAAW,QAAA,CACY,OADZ,CACqB,GADrB,CAAAA,QAAA,CAEY,OAFZ,CAEqB,GAFrB,CAAAA,QAAA,CAGY,MAHZ,CAGoB,GAHpB,CAAAA,QAAA,CAIY,OAJZ,CAIqB,GAJrB,CAAAA,QAAA,CAKY,OALZ,CAKqB,GALrB,CAAAA,QAAA,CAMY,MANZ,CAMqBiC,CAAA,CAAkB,KAAlB,CAA0B,GAN/C,CADqC,CAY9CE,QAASA,GAAc,CAAC9F,CAAD,CAAU+F,CAAV,CAAkB,CAAA,IACnCrG,CADmC,CAC7BvD,CAD6B,CAC1BY,EAAKiJ,EAAA9K,OAClB,KAAKiB,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBY,CAAhB,CAAoB,EAAEZ,CAAtB,CAEE,GADAuD,CACI,CADGsG,EAAA,CAAe7J,CAAf,CACH,CADuB4J,CACvB,CAAA/K,CAAA,CAAS0E,CAAT,CAAgBM,CAAAiG,aAAA,CAAqBvG,CAArB,CAAhB,CAAJ,CACE,MAAOA,EAGX,OAAO,KARgC,CA0IzCwG,QAASA,GAAW,CAAClG,CAAD,CAAUmG,CAAV,CAAqB,CAAA,IACnCC,CADmC,CAEnCC,CAFmC,CAGnCC,EAAS,EAGb/K,EAAA,CAAQyK,EAAR,CAAwB,QAAQ,CAACO,CAAD,CAAS,CACnCC,CAAAA,EAAgB,KAEfJ,EAAAA,CAAL,EAAmBpG,CAAAyG,aAAnB,EAA2CzG,CAAAyG,aAAA,CAAqBD,CAArB,CAA3C,GACEJ,CACA,CADapG,CACb,CAAAqG,CAAA,CAASrG,CAAAiG,aAAA,CAAqBO,CAArB,CAFX,CAHuC,CAAzC,CAQAjL,EAAA,CAAQyK,EAAR,CAAwB,QAAQ,CAACO,CAAD,CAAS,CACnCC,CAAAA,EAAgB,KACpB,KAAIE,CAECN,EAAAA,CAAL,GAAoBM,CAApB,CAAgC1G,CAAA2G,cAAA,CAAsB,GAAtB,CAA4BH,CAAA7C,QAAA,CAAa,GAAb,CAAkB,KAAlB,CAA5B,CAAuD,GAAvD,CAAhC;CACEyC,CACA,CADaM,CACb,CAAAL,CAAA,CAASK,CAAAT,aAAA,CAAuBO,CAAvB,CAFX,CAJuC,CAAzC,CASIJ,EAAJ,GACEE,CAAAM,SACA,CAD8D,IAC9D,GADkBd,EAAA,CAAeM,CAAf,CAA2B,WAA3B,CAClB,CAAAD,CAAA,CAAUC,CAAV,CAAsBC,CAAA,CAAS,CAACA,CAAD,CAAT,CAAoB,EAA1C,CAA8CC,CAA9C,CAFF,CAvBuC,CA+EzCH,QAASA,GAAS,CAACnG,CAAD,CAAU6G,CAAV,CAAmBP,CAAnB,CAA2B,CACtCtJ,CAAA,CAASsJ,CAAT,CAAL,GAAuBA,CAAvB,CAAgC,EAAhC,CAIAA,EAAA,CAASzI,CAAA,CAHWiJ,CAClBF,SAAU,CAAA,CADQE,CAGX,CAAsBR,CAAtB,CACT,KAAIS,EAAcA,QAAQ,EAAG,CAC3B/G,CAAA,CAAU/E,CAAA,CAAO+E,CAAP,CAEV,IAAIA,CAAAgH,SAAA,EAAJ,CAAwB,CACtB,IAAIC,EAAOjH,CAAA,CAAQ,CAAR,CAAD,GAAgBvF,CAAhB,CAA4B,UAA5B,CAAyC+J,EAAA,CAAYxE,CAAZ,CAEnD,MAAMe,GAAA,CACF,SADE,CAGFkG,CAAAtD,QAAA,CAAY,GAAZ,CAAgB,MAAhB,CAAAA,QAAA,CAAgC,GAAhC,CAAoC,MAApC,CAHE,CAAN,CAHsB,CASxBkD,CAAA,CAAUA,CAAV,EAAqB,EACrBA,EAAAK,QAAA,CAAgB,CAAC,UAAD,CAAa,QAAQ,CAACC,CAAD,CAAW,CAC9CA,CAAA7K,MAAA,CAAe,cAAf,CAA+B0D,CAA/B,CAD8C,CAAhC,CAAhB,CAIIsG,EAAAc,iBAAJ,EAEEP,CAAAlG,KAAA,CAAa,CAAC,kBAAD,CAAqB,QAAQ,CAAC0G,CAAD,CAAmB,CAC3DA,CAAAD,iBAAA,CAAkC,CAAA,CAAlC,CAD2D,CAAhD,CAAb,CAKFP,EAAAK,QAAA,CAAgB,IAAhB,CACIF,EAAAA,CAAWM,EAAA,CAAeT,CAAf,CAAwBP,CAAAM,SAAxB,CACfI,EAAAO,OAAA,CAAgB,CAAC,YAAD,CAAe,cAAf;AAA+B,UAA/B,CAA2C,WAA3C,CACbC,QAAuB,CAACC,CAAD,CAAQzH,CAAR,CAAiB0H,CAAjB,CAA0BV,CAA1B,CAAoC,CAC1DS,CAAAE,OAAA,CAAa,QAAQ,EAAG,CACtB3H,CAAA4H,KAAA,CAAa,WAAb,CAA0BZ,CAA1B,CACAU,EAAA,CAAQ1H,CAAR,CAAA,CAAiByH,CAAjB,CAFsB,CAAxB,CAD0D,CAD9C,CAAhB,CAQA,OAAOT,EAlCoB,CAA7B,CAqCIa,EAAuB,wBArC3B,CAsCIC,EAAqB,sBAErBtN,EAAJ,EAAcqN,CAAAtI,KAAA,CAA0B/E,CAAAgM,KAA1B,CAAd,GACEF,CAAAc,iBACA,CAD0B,CAAA,CAC1B,CAAA5M,CAAAgM,KAAA,CAAchM,CAAAgM,KAAA7C,QAAA,CAAoBkE,CAApB,CAA0C,EAA1C,CAFhB,CAKA,IAAIrN,CAAJ,EAAe,CAAAsN,CAAAvI,KAAA,CAAwB/E,CAAAgM,KAAxB,CAAf,CACE,MAAOO,EAAA,EAGTvM,EAAAgM,KAAA,CAAchM,CAAAgM,KAAA7C,QAAA,CAAoBmE,CAApB,CAAwC,EAAxC,CACdC,GAAAC,gBAAA,CAA0BC,QAAQ,CAACC,CAAD,CAAe,CAC/C3M,CAAA,CAAQ2M,CAAR,CAAsB,QAAQ,CAAC7B,CAAD,CAAS,CACrCQ,CAAAlG,KAAA,CAAa0F,CAAb,CADqC,CAAvC,CAGA,OAAOU,EAAA,EAJwC,CAO7CpL,EAAA,CAAWoM,EAAAI,wBAAX,CAAJ,EACEJ,EAAAI,wBAAA,EAhEyC,CA8E7CC,QAASA,GAAmB,EAAG,CAC7B5N,CAAAgM,KAAA,CAAc,uBAAd,CAAwChM,CAAAgM,KACxChM,EAAA6N,SAAAC,OAAA,EAF6B,CAa/BC,QAASA,GAAc,CAACC,CAAD,CAAc,CAC/BxB,CAAAA;AAAWe,EAAA/H,QAAA,CAAgBwI,CAAhB,CAAAxB,SAAA,EACf,IAAKA,CAAAA,CAAL,CACE,KAAMjG,GAAA,CAAS,MAAT,CAAN,CAGF,MAAOiG,EAAAyB,IAAA,CAAa,eAAb,CAN4B,CAUrCC,QAASA,GAAU,CAAClC,CAAD,CAAOmC,CAAP,CAAkB,CACnCA,CAAA,CAAYA,CAAZ,EAAyB,GACzB,OAAOnC,EAAA7C,QAAA,CAAaiF,EAAb,CAAgC,QAAQ,CAACC,CAAD,CAASC,CAAT,CAAc,CAC3D,OAAQA,CAAA,CAAMH,CAAN,CAAkB,EAA1B,EAAgCE,CAAAE,YAAA,EAD2B,CAAtD,CAF4B,CAQrCC,QAASA,GAAU,EAAG,CACpB,IAAIC,CAEJ,IAAIC,CAAAA,EAAJ,CAAA,CAKA,IAAIC,EAASC,EAAA,EASb,EARAC,EAQA,CARSvK,CAAA,CAAYqK,CAAZ,CAAA,CAAsB3O,CAAA6O,OAAtB,CACCF,CAAD,CACsB3O,CAAA,CAAO2O,CAAP,CADtB,CAAsBzO,CAO/B,GAAc2O,EAAA1G,GAAA2G,GAAd,EACErO,CAaA,CAbSoO,EAaT,CAZAxL,CAAA,CAAOwL,EAAA1G,GAAP,CAAkB,CAChB8E,MAAO8B,EAAA9B,MADS,CAEhB+B,aAAcD,EAAAC,aAFE,CAGhBC,WAAYF,EAAAE,WAHI,CAIhBzC,SAAUuC,EAAAvC,SAJM,CAKhB0C,cAAeH,EAAAG,cALC,CAAlB,CAYA,CADAT,CACA,CADoBI,EAAAM,UACpB,CAAAN,EAAAM,UAAA,CAAmBC,QAAQ,CAACC,CAAD,CAAQ,CAEjC,IADA,IAAIC,CAAJ,CACS3N,EAAI,CADb,CACgB4N,CAAhB,CAA2C,IAA3C,GAAuBA,CAAvB,CAA8BF,CAAA,CAAM1N,CAAN,CAA9B,EAAiDA,CAAA,EAAjD,CAEE,CADA2N,CACA,CADST,EAAAW,MAAA,CAAaD,CAAb,CAAmB,QAAnB,CACT,GAAcD,CAAAG,SAAd,EACEZ,EAAA,CAAOU,CAAP,CAAAG,eAAA,CAA4B,UAA5B,CAGJjB;CAAA,CAAkBY,CAAlB,CARiC,CAdrC,EAyBE5O,CAzBF,CAyBWkP,CAGXpC,GAAA/H,QAAA,CAAkB/E,CAGlBiO,GAAA,CAAkB,CAAA,CA7ClB,CAHoB,CAsDtBkB,QAASA,GAAS,CAACC,CAAD,CAAM7D,CAAN,CAAY8D,CAAZ,CAAoB,CACpC,GAAKD,CAAAA,CAAL,CACE,KAAMtJ,GAAA,CAAS,MAAT,CAA2CyF,CAA3C,EAAmD,GAAnD,CAA0D8D,CAA1D,EAAoE,UAApE,CAAN,CAEF,MAAOD,EAJ6B,CAOtCE,QAASA,GAAW,CAACF,CAAD,CAAM7D,CAAN,CAAYgE,CAAZ,CAAmC,CACjDA,CAAJ,EAA6BzP,CAAA,CAAQsP,CAAR,CAA7B,GACIA,CADJ,CACUA,CAAA,CAAIA,CAAAnP,OAAJ,CAAiB,CAAjB,CADV,CAIAkP,GAAA,CAAUzO,CAAA,CAAW0O,CAAX,CAAV,CAA2B7D,CAA3B,CAAiC,sBAAjC,EACK6D,CAAA,EAAsB,QAAtB,GAAO,MAAOA,EAAd,CAAiCA,CAAAnJ,YAAAsF,KAAjC,EAAyD,QAAzD,CAAoE,MAAO6D,EADhF,EAEA,OAAOA,EAP8C,CAevDI,QAASA,GAAuB,CAACjE,CAAD,CAAO/K,CAAP,CAAgB,CAC9C,GAAa,gBAAb,GAAI+K,CAAJ,CACE,KAAMzF,GAAA,CAAS,SAAT,CAA8DtF,CAA9D,CAAN,CAF4C,CAchDiP,QAASA,GAAM,CAAC7P,CAAD,CAAM8P,CAAN,CAAYC,CAAZ,CAA2B,CACxC,GAAKD,CAAAA,CAAL,CAAW,MAAO9P,EACdoB,EAAAA,CAAO0O,CAAA7K,MAAA,CAAW,GAAX,CAKX,KAJA,IAAIpE,CAAJ,CACImP,EAAehQ,CADnB,CAEIiQ,EAAM7O,CAAAf,OAFV,CAISiB,EAAI,CAAb,CAAgBA,CAAhB,CAAoB2O,CAApB,CAAyB3O,CAAA,EAAzB,CACET,CACA,CADMO,CAAA,CAAKE,CAAL,CACN,CAAItB,CAAJ,GACEA,CADF,CACQ,CAACgQ,CAAD,CAAgBhQ,CAAhB,EAAqBa,CAArB,CADR,CAIF,OAAKkP,CAAAA,CAAL,EAAsBjP,CAAA,CAAWd,CAAX,CAAtB,CACS4H,EAAA,CAAKoI,CAAL,CAAmBhQ,CAAnB,CADT,CAGOA,CAhBiC,CAwB1CkQ,QAASA,GAAa,CAACC,CAAD,CAAQ,CAM5B,IAJA,IAAIxL,EAAOwL,CAAA,CAAM,CAAN,CAAX,CACIC,EAAUD,CAAA,CAAMA,CAAA9P,OAAN,CAAqB,CAArB,CADd,CAEIgQ,CAFJ;AAIS/O,EAAI,CAAb,CAAgBqD,CAAhB,GAAyByL,CAAzB,GAAqCzL,CAArC,CAA4CA,CAAA2L,YAA5C,EAA+DhP,CAAA,EAA/D,CACE,GAAI+O,CAAJ,EAAkBF,CAAA,CAAM7O,CAAN,CAAlB,GAA+BqD,CAA/B,CACO0L,CAGL,GAFEA,CAEF,CAFejQ,CAAA,CAAO6C,EAAAjC,KAAA,CAAWmP,CAAX,CAAkB,CAAlB,CAAqB7O,CAArB,CAAP,CAEf,EAAA+O,CAAAvK,KAAA,CAAgBnB,CAAhB,CAIJ,OAAO0L,EAAP,EAAqBF,CAfO,CA8B9B3I,QAASA,EAAS,EAAG,CACnB,MAAOlH,OAAAoD,OAAA,CAAc,IAAd,CADY,CAoBrB6M,QAASA,GAAiB,CAAC5Q,CAAD,CAAS,CAKjC6Q,QAASA,EAAM,CAACxQ,CAAD,CAAM2L,CAAN,CAAY8E,CAAZ,CAAqB,CAClC,MAAOzQ,EAAA,CAAI2L,CAAJ,CAAP,GAAqB3L,CAAA,CAAI2L,CAAJ,CAArB,CAAiC8E,CAAA,EAAjC,CADkC,CAHpC,IAAIC,EAAkB5Q,CAAA,CAAO,WAAP,CAAtB,CACIoG,EAAWpG,CAAA,CAAO,IAAP,CAMXoN,EAAAA,CAAUsD,CAAA,CAAO7Q,CAAP,CAAe,SAAf,CAA0BW,MAA1B,CAGd4M,EAAAyD,SAAA,CAAmBzD,CAAAyD,SAAnB,EAAuC7Q,CAEvC,OAAO0Q,EAAA,CAAOtD,CAAP,CAAgB,QAAhB,CAA0B,QAAQ,EAAG,CAE1C,IAAIlB,EAAU,EAqDd,OAAOR,SAAe,CAACG,CAAD,CAAOiF,CAAP,CAAiBC,CAAjB,CAA2B,CAE7C,GAAa,gBAAb,GAKsBlF,CALtB,CACE,KAAMzF,EAAA,CAAS,SAAT,CAIoBtF,QAJpB,CAAN,CAKAgQ,CAAJ,EAAgB5E,CAAAjL,eAAA,CAAuB4K,CAAvB,CAAhB,GACEK,CAAA,CAAQL,CAAR,CADF,CACkB,IADlB,CAGA,OAAO6E,EAAA,CAAOxE,CAAP,CAAgBL,CAAhB,CAAsB,QAAQ,EAAG,CAuPtCmF,QAASA,EAAW,CAACC,CAAD,CAAWC,CAAX,CAAmBC,CAAnB,CAAiCC,CAAjC,CAAwC,CACrDA,CAAL,GAAYA,CAAZ,CAAoBC,CAApB,CACA,OAAO,SAAQ,EAAG,CAChBD,CAAA,CAAMD,CAAN,EAAsB,MAAtB,CAAA,CAA8B,CAACF,CAAD;AAAWC,CAAX,CAAmB9N,SAAnB,CAA9B,CACA,OAAOkO,EAFS,CAFwC,CAa5DC,QAASA,EAA2B,CAACN,CAAD,CAAWC,CAAX,CAAmB,CACrD,MAAO,SAAQ,CAACM,CAAD,CAAaC,CAAb,CAA8B,CACvCA,CAAJ,EAAuBzQ,CAAA,CAAWyQ,CAAX,CAAvB,GAAoDA,CAAAC,aAApD,CAAmF7F,CAAnF,CACAwF,EAAArL,KAAA,CAAiB,CAACiL,CAAD,CAAWC,CAAX,CAAmB9N,SAAnB,CAAjB,CACA,OAAOkO,EAHoC,CADQ,CAnQvD,GAAKR,CAAAA,CAAL,CACE,KAAMF,EAAA,CAAgB,OAAhB,CAEiD/E,CAFjD,CAAN,CAMF,IAAIwF,EAAc,EAAlB,CAGIM,EAAe,EAHnB,CAMIC,EAAY,EANhB,CAQIjG,EAASqF,CAAA,CAAY,WAAZ,CAAyB,QAAzB,CAAmC,MAAnC,CAA2CW,CAA3C,CARb,CAWIL,EAAiB,CAEnBO,aAAcR,CAFK,CAGnBS,cAAeH,CAHI,CAInBI,WAAYH,CAJO,CAenBd,SAAUA,CAfS,CAyBnBjF,KAAMA,CAzBa,CAsCnBoF,SAAUM,CAAA,CAA4B,UAA5B,CAAwC,UAAxC,CAtCS,CAiDnBZ,QAASY,CAAA,CAA4B,UAA5B,CAAwC,SAAxC,CAjDU,CA4DnBS,QAAST,CAAA,CAA4B,UAA5B,CAAwC,SAAxC,CA5DU,CAuEnB5P,MAAOqP,CAAA,CAAY,UAAZ,CAAwB,OAAxB,CAvEY,CAmFnBiB,SAAUjB,CAAA,CAAY,UAAZ,CAAwB,UAAxB,CAAoC,SAApC,CAnFS,CA+FnBkB,UAAWX,CAAA,CAA4B,UAA5B,CAAwC,WAAxC,CA/FQ,CAiInBY,UAAWZ,CAAA,CAA4B,kBAA5B;AAAgD,UAAhD,CAjIQ,CAmJnBa,OAAQb,CAAA,CAA4B,iBAA5B,CAA+C,UAA/C,CAnJW,CA+JnBzC,WAAYyC,CAAA,CAA4B,qBAA5B,CAAmD,UAAnD,CA/JO,CA4KnBc,UAAWd,CAAA,CAA4B,kBAA5B,CAAgD,WAAhD,CA5KQ,CAyLnBe,UAAWf,CAAA,CAA4B,kBAA5B,CAAgD,WAAhD,CAzLQ,CAsMnB5F,OAAQA,CAtMW,CAkNnB4G,IAAKA,QAAQ,CAACC,CAAD,CAAQ,CACnBZ,CAAA5L,KAAA,CAAewM,CAAf,CACA,OAAO,KAFY,CAlNF,CAwNjBzB,EAAJ,EACEpF,CAAA,CAAOoF,CAAP,CAGF,OAAOO,EA/O+B,CAAjC,CAXwC,CAvDP,CAArC,CAd0B,CAsfnCmB,QAASA,GAAkB,CAACrF,CAAD,CAAU,CACnClK,CAAA,CAAOkK,CAAP,CAAgB,CACd,UAAa5B,EADC,CAEd,KAAQ5F,EAFM,CAGd,OAAU1C,CAHI,CAId,MAASG,EAJK,CAKd,OAAU8D,EALI,CAMd,QAAW7G,CANG,CAOd,QAAWM,CAPG,CAQd,SAAY+L,EARE,CASd,KAAQ9I,CATM,CAUd,KAAQiE,EAVM,CAWd,OAAUQ,EAXI,CAYd,SAAYI,EAZE,CAad,SAAY5E,EAbE,CAcd,YAAeK,CAdD,CAed,UAAaC,CAfC,CAgBd,SAAY/D,CAhBE,CAiBd,WAAcW,CAjBA,CAkBd,SAAYqB,CAlBE,CAmBd,SAAY5B,CAnBE,CAoBd,UAAauC,EApBC,CAqBd,QAAW5C,CArBG;AAsBd,QAAWsS,EAtBG,CAuBd,OAAUjQ,CAvBI,CAwBd,UAAa6C,CAxBC,CAyBd,UAAaqN,EAzBC,CA0Bd,UAAa,CAACC,QAAS,CAAV,CA1BC,CA2Bd,eAAkBhF,EA3BJ,CA4Bd,SAAY5N,CA5BE,CA6Bd,MAAS6S,EA7BK,CA8Bd,oBAAuBpF,EA9BT,CAAhB,CAiCAqF,GAAA,CAAgBrC,EAAA,CAAkB5Q,CAAlB,CAEhBiT,GAAA,CAAc,IAAd,CAAoB,CAAC,UAAD,CAApB,CAAkC,CAAC,UAAD,CAChCC,QAAiB,CAACvG,CAAD,CAAW,CAE1BA,CAAAyE,SAAA,CAAkB,CAChB+B,cAAeC,EADC,CAAlB,CAGAzG,EAAAyE,SAAA,CAAkB,UAAlB,CAA8BiC,EAA9B,CAAAb,UAAA,CACY,CACNc,EAAGC,EADG,CAENC,MAAOC,EAFD,CAGNC,SAAUD,EAHJ,CAINE,KAAMC,EAJA,CAKNC,OAAQC,EALF,CAMNC,OAAQC,EANF,CAONC,MAAOC,EAPD,CAQNC,OAAQC,EARF,CASNC,OAAQC,EATF,CAUNC,WAAYC,EAVN,CAWNC,eAAgBC,EAXV,CAYNC,QAASC,EAZH,CAaNC,YAAaC,EAbP,CAcNC,WAAYC,EAdN,CAeNC,QAASC,EAfH,CAgBNC,aAAcC,EAhBR,CAiBNC,OAAQC,EAjBF,CAkBNC,OAAQC,EAlBF,CAmBNC,KAAMC,EAnBA,CAoBNC,UAAWC,EApBL,CAqBNC,OAAQC,EArBF,CAsBNC,cAAeC,EAtBT;AAuBNC,YAAaC,EAvBP,CAwBNC,SAAUC,EAxBJ,CAyBNC,OAAQC,EAzBF,CA0BNC,QAASC,EA1BH,CA2BNC,SAAUC,EA3BJ,CA4BNC,aAAcC,EA5BR,CA6BNC,gBAAiBC,EA7BX,CA8BNC,UAAWC,EA9BL,CA+BNC,aAAcC,EA/BR,CAgCNC,QAASC,EAhCH,CAiCNC,OAAQC,EAjCF,CAkCNC,SAAUC,EAlCJ,CAmCNC,QAASC,EAnCH,CAoCNC,UAAWD,EApCL,CAqCNE,SAAUC,EArCJ,CAsCNC,WAAYD,EAtCN,CAuCNE,UAAWC,EAvCL,CAwCNC,YAAaD,EAxCP,CAyCNE,UAAWC,EAzCL,CA0CNC,YAAaD,EA1CP,CA2CNE,QAASC,EA3CH,CA4CNC,eAAgBC,EA5CV,CADZ,CAAAhG,UAAA,CA+CY,CACRmD,UAAW8C,EADH,CA/CZ,CAAAjG,UAAA,CAkDYkG,EAlDZ,CAAAlG,UAAA,CAmDYmG,EAnDZ,CAoDAhM,EAAAyE,SAAA,CAAkB,CAChBwH,cAAeC,EADC,CAEhBC,SAAUC,EAFM,CAGhBC,YAAaC,EAHG,CAIhBC,YAAaC,EAJG,CAKhBC,eAAgBC,EALA,CAMhBC,gBAAiBC,EAND,CAOhBC,kBAAmBC,EAPH,CAQhBC,SAAUC,EARM,CAShBC,cAAeC,EATC;AAUhBC,YAAaC,EAVG,CAWhBC,UAAWC,EAXK,CAYhBC,kBAAmBC,EAZH,CAahBC,QAASC,EAbO,CAchBC,cAAeC,EAdC,CAehBC,aAAcC,EAfE,CAgBhBC,UAAWC,EAhBK,CAiBhBC,MAAOC,EAjBS,CAkBhBC,qBAAsBC,EAlBN,CAmBhBC,2BAA4BC,EAnBZ,CAoBhBC,aAAcC,EApBE,CAqBhBC,YAAaC,EArBG,CAsBhBC,UAAWC,EAtBK,CAuBhBC,KAAMC,EAvBU,CAwBhBC,OAAQC,EAxBQ,CAyBhBC,WAAYC,EAzBI,CA0BhBC,GAAIC,EA1BY,CA2BhBC,IAAKC,EA3BW,CA4BhBC,KAAMC,EA5BU,CA6BhBC,aAAcC,EA7BE,CA8BhBC,SAAUC,EA9BM,CA+BhBC,eAAgBC,EA/BA,CAgChBC,iBAAkBC,EAhCF,CAiChBC,cAAeC,EAjCC,CAkChBC,SAAUC,EAlCM,CAmChBC,QAASC,EAnCO,CAoChBC,MAAOC,EApCS,CAqChBC,SAAUC,EArCM,CAsChBC,UAAWC,EAtCK,CAuChBC,eAAgBC,EAvCA,CAAlB,CAzD0B,CADI,CAAlC,CApCmC,CAiSrCC,QAASA,GAAS,CAAC1R,CAAD,CAAO,CACvB,MAAOA,EAAA7C,QAAA,CACGwU,EADH,CACyB,QAAQ,CAACC,CAAD,CAAIzP,CAAJ,CAAeE,CAAf,CAAuBwP,CAAvB,CAA+B,CACnE,MAAOA,EAAA,CAASxP,CAAAyP,YAAA,EAAT;AAAgCzP,CAD4B,CADhE,CAAAlF,QAAA,CAIG4U,EAJH,CAIoB,OAJpB,CADgB,CAgCzBC,QAASA,GAAiB,CAAChZ,CAAD,CAAO,CAG3BsF,CAAAA,CAAWtF,CAAAsF,SACf,OA30BsB2T,EA20BtB,GAAO3T,CAAP,EAAyC,CAACA,CAA1C,EAv0BuB4T,CAu0BvB,GAAsD5T,CAJvB,CAoBjC6T,QAASA,GAAmB,CAAC9T,CAAD,CAAOpJ,CAAP,CAAgB,CAAA,IACtCmd,CADsC,CACjC3R,CADiC,CAEtC4R,EAAWpd,CAAAqd,uBAAA,EAF2B,CAGtC9N,EAAQ,EAEZ,IA5BQ+N,EAAAxZ,KAAA,CA4BasF,CA5Bb,CA4BR,CAGO,CAEL+T,CAAA,CAAMA,CAAN,EAAaC,CAAAG,YAAA,CAAqBvd,CAAAwd,cAAA,CAAsB,KAAtB,CAArB,CACbhS,EAAA,CAAM,CAACiS,EAAAC,KAAA,CAAqBtU,CAArB,CAAD,EAA+B,CAAC,EAAD,CAAK,EAAL,CAA/B,EAAyC,CAAzC,CAAAkE,YAAA,EACNqQ,EAAA,CAAOC,EAAA,CAAQpS,CAAR,CAAP,EAAuBoS,EAAAC,SACvBV,EAAAW,UAAA,CAAgBH,CAAA,CAAK,CAAL,CAAhB,CAA0BvU,CAAAlB,QAAA,CAAa6V,EAAb,CAA+B,WAA/B,CAA1B,CAAwEJ,CAAA,CAAK,CAAL,CAIxE,KADAjd,CACA,CADIid,CAAA,CAAK,CAAL,CACJ,CAAOjd,CAAA,EAAP,CAAA,CACEyc,CAAA,CAAMA,CAAAa,UAGRzO,EAAA,CAAQ1I,EAAA,CAAO0I,CAAP,CAAc4N,CAAAc,WAAd,CAERd,EAAA,CAAMC,CAAAc,WACNf,EAAAgB,YAAA,CAAkB,EAhBb,CAHP,IAEE5O,EAAArK,KAAA,CAAWlF,CAAAoe,eAAA,CAAuBhV,CAAvB,CAAX,CAqBFgU,EAAAe,YAAA,CAAuB,EACvBf,EAAAU,UAAA,CAAqB,EACrBhe,EAAA,CAAQyP,CAAR,CAAe,QAAQ,CAACxL,CAAD,CAAO,CAC5BqZ,CAAAG,YAAA,CAAqBxZ,CAArB,CAD4B,CAA9B,CAIA,OAAOqZ,EAlCmC,CAoD5CiB,QAASA,GAAc,CAACta,CAAD;AAAOua,CAAP,CAAgB,CACrC,IAAI1b,EAASmB,CAAAwa,WAET3b,EAAJ,EACEA,CAAA4b,aAAA,CAAoBF,CAApB,CAA6Bva,CAA7B,CAGFua,EAAAf,YAAA,CAAoBxZ,CAApB,CAPqC,CAmBvC2K,QAASA,EAAM,CAACnK,CAAD,CAAU,CACvB,GAAIA,CAAJ,WAAuBmK,EAAvB,CACE,MAAOnK,EAGT,KAAIka,CAEAlf,EAAA,CAASgF,CAAT,CAAJ,GACEA,CACA,CADUma,CAAA,CAAKna,CAAL,CACV,CAAAka,CAAA,CAAc,CAAA,CAFhB,CAIA,IAAM,EAAA,IAAA,WAAgB/P,EAAhB,CAAN,CAA+B,CAC7B,GAAI+P,CAAJ,EAAwC,GAAxC,EAAmBla,CAAA6B,OAAA,CAAe,CAAf,CAAnB,CACE,KAAMuY,GAAA,CAAa,OAAb,CAAN,CAEF,MAAO,KAAIjQ,CAAJ,CAAWnK,CAAX,CAJsB,CAO/B,GAAIka,CAAJ,CAAiB,CAnDjBze,CAAA,CAAqBhB,CACrB,KAAI4f,CAGF,EAAA,CADF,CAAKA,CAAL,CAAcC,EAAAnB,KAAA,CAAuBtU,CAAvB,CAAd,EACS,CAACpJ,CAAAwd,cAAA,CAAsBoB,CAAA,CAAO,CAAP,CAAtB,CAAD,CADT,CAIA,CAAKA,CAAL,CAAc1B,EAAA,CAAoB9T,CAApB,CAA0BpJ,CAA1B,CAAd,EACS4e,CAAAX,WADT,CAIO,EAwCU,CACfa,EAAA,CAAe,IAAf,CAAqB,CAArB,CAnBqB,CAyBzBC,QAASA,GAAW,CAACxa,CAAD,CAAU,CAC5B,MAAOA,EAAAtC,UAAA,CAAkB,CAAA,CAAlB,CADqB,CAI9B+c,QAASA,GAAY,CAACza,CAAD,CAAU0a,CAAV,CAA2B,CACzCA,CAAL,EAAsBC,EAAA,CAAiB3a,CAAjB,CAEtB,IAAIA,CAAA4a,iBAAJ,CAEE,IADA,IAAIC,EAAc7a,CAAA4a,iBAAA,CAAyB,GAAzB,CAAlB,CACSze,EAAI,CADb,CACgB2e,EAAID,CAAA3f,OAApB,CAAwCiB,CAAxC,CAA4C2e,CAA5C,CAA+C3e,CAAA,EAA/C,CACEwe,EAAA,CAAiBE,CAAA,CAAY1e,CAAZ,CAAjB,CAN0C,CAWhD4e,QAASA,GAAS,CAAC/a,CAAD,CAAUgb,CAAV,CAAgBrY,CAAhB,CAAoBsY,CAApB,CAAiC,CACjD,GAAIlc,CAAA,CAAUkc,CAAV,CAAJ,CAA4B,KAAMb,GAAA,CAAa,SAAb,CAAN;AAG5B,IAAItQ,GADAoR,CACApR,CADeqR,EAAA,CAAmBnb,CAAnB,CACf8J,GAAyBoR,CAAApR,OAA7B,CACIsR,EAASF,CAATE,EAAyBF,CAAAE,OAE7B,IAAKA,CAAL,CAEA,GAAKJ,CAAL,CAOO,CAEL,IAAIK,EAAgBA,QAAQ,CAACL,CAAD,CAAO,CACjC,IAAIM,EAAcxR,CAAA,CAAOkR,CAAP,CACdjc,EAAA,CAAU4D,CAAV,CAAJ,EACEzC,EAAA,CAAYob,CAAZ,EAA2B,EAA3B,CAA+B3Y,CAA/B,CAEI5D,EAAA,CAAU4D,CAAV,CAAN,EAAuB2Y,CAAvB,EAA2D,CAA3D,CAAsCA,CAAApgB,OAAtC,GACwB8E,CAnNxBub,oBAAA,CAmNiCP,CAnNjC,CAmNuCI,CAnNvC,CAAsC,CAAA,CAAtC,CAoNE,CAAA,OAAOtR,CAAA,CAAOkR,CAAP,CAFT,CALiC,CAWnCzf,EAAA,CAAQyf,CAAAlb,MAAA,CAAW,GAAX,CAAR,CAAyB,QAAQ,CAACkb,CAAD,CAAO,CACtCK,CAAA,CAAcL,CAAd,CACIQ,GAAA,CAAgBR,CAAhB,CAAJ,EACEK,CAAA,CAAcG,EAAA,CAAgBR,CAAhB,CAAd,CAHoC,CAAxC,CAbK,CAPP,IACE,KAAKA,CAAL,GAAalR,EAAb,CACe,UAGb,GAHIkR,CAGJ,EAFwBhb,CAvMxBub,oBAAA,CAuMiCP,CAvMjC,CAuMuCI,CAvMvC,CAAsC,CAAA,CAAtC,CAyMA,CAAA,OAAOtR,CAAA,CAAOkR,CAAP,CAdsC,CAsCnDL,QAASA,GAAgB,CAAC3a,CAAD,CAAUwG,CAAV,CAAgB,CACvC,IAAIiV,EAAYzb,CAAA0b,MAAhB,CACIR,EAAeO,CAAfP,EAA4BS,EAAA,CAAQF,CAAR,CAE5BP,EAAJ,GACM1U,CAAJ,CACE,OAAO0U,CAAAtT,KAAA,CAAkBpB,CAAlB,CADT,EAKI0U,CAAAE,OAOJ,GANMF,CAAApR,OAAAG,SAGJ,EAFEiR,CAAAE,OAAA,CAAoB,EAApB,CAAwB,UAAxB,CAEF,CAAAL,EAAA,CAAU/a,CAAV,CAGF,EADA,OAAO2b,EAAA,CAAQF,CAAR,CACP,CAAAzb,CAAA0b,MAAA,CAAgBhhB,CAZhB,CADF,CAJuC,CAsBzCygB,QAASA,GAAkB,CAACnb,CAAD,CAAU4b,CAAV,CAA6B,CAAA,IAClDH,EAAYzb,CAAA0b,MADsC,CAElDR,EAAeO,CAAfP,EAA4BS,EAAA,CAAQF,CAAR,CAE5BG,EAAJ,EAA0BV,CAAAA,CAA1B,GACElb,CAAA0b,MACA,CADgBD,CAChB,CAlPyB,EAAEI,EAkP3B;AAAAX,CAAA,CAAeS,EAAA,CAAQF,CAAR,CAAf,CAAoC,CAAC3R,OAAQ,EAAT,CAAalC,KAAM,EAAnB,CAAuBwT,OAAQ1gB,CAA/B,CAFtC,CAKA,OAAOwgB,EAT+C,CAaxDY,QAASA,GAAU,CAAC9b,CAAD,CAAUtE,CAAV,CAAeY,CAAf,CAAsB,CACvC,GAAIkc,EAAA,CAAkBxY,CAAlB,CAAJ,CAAgC,CAE9B,IAAI+b,EAAiBhd,CAAA,CAAUzC,CAAV,CAArB,CACI0f,EAAiB,CAACD,CAAlBC,EAAoCtgB,CAApCsgB,EAA2C,CAAChf,CAAA,CAAStB,CAAT,CADhD,CAEIugB,EAAa,CAACvgB,CAEdkM,EAAAA,EADAsT,CACAtT,CADeuT,EAAA,CAAmBnb,CAAnB,CAA4B,CAACgc,CAA7B,CACfpU,GAAuBsT,CAAAtT,KAE3B,IAAImU,CAAJ,CACEnU,CAAA,CAAKlM,CAAL,CAAA,CAAYY,CADd,KAEO,CACL,GAAI2f,CAAJ,CACE,MAAOrU,EAEP,IAAIoU,CAAJ,CAEE,MAAOpU,EAAP,EAAeA,CAAA,CAAKlM,CAAL,CAEfmC,EAAA,CAAO+J,CAAP,CAAalM,CAAb,CARC,CAVuB,CADO,CA0BzCwgB,QAASA,GAAc,CAAClc,CAAD,CAAUmc,CAAV,CAAoB,CACzC,MAAKnc,EAAAiG,aAAL,CAEqC,EAFrC,CACQtC,CAAC,GAADA,EAAQ3D,CAAAiG,aAAA,CAAqB,OAArB,CAARtC,EAAyC,EAAzCA,EAA+C,GAA/CA,SAAA,CAA4D,SAA5D,CAAuE,GAAvE,CAAAtD,QAAA,CACI,GADJ,CACU8b,CADV,CACqB,GADrB,CADR,CAAkC,CAAA,CADO,CAM3CC,QAASA,GAAiB,CAACpc,CAAD,CAAUqc,CAAV,CAAsB,CAC1CA,CAAJ,EAAkBrc,CAAAsc,aAAlB,EACE/gB,CAAA,CAAQ8gB,CAAAvc,MAAA,CAAiB,GAAjB,CAAR,CAA+B,QAAQ,CAACyc,CAAD,CAAW,CAChDvc,CAAAsc,aAAA,CAAqB,OAArB,CAA8BnC,CAAA,CAC1BxW,CAAC,GAADA,EAAQ3D,CAAAiG,aAAA,CAAqB,OAArB,CAARtC,EAAyC,EAAzCA,EAA+C,GAA/CA,SAAA,CACS,SADT,CACoB,GADpB,CAAAA,QAAA,CAES,GAFT,CAEewW,CAAA,CAAKoC,CAAL,CAFf,CAEgC,GAFhC,CAEqC,GAFrC,CAD0B,CAA9B,CADgD,CAAlD,CAF4C,CAYhDC,QAASA,GAAc,CAACxc,CAAD;AAAUqc,CAAV,CAAsB,CAC3C,GAAIA,CAAJ,EAAkBrc,CAAAsc,aAAlB,CAAwC,CACtC,IAAIG,EAAkB9Y,CAAC,GAADA,EAAQ3D,CAAAiG,aAAA,CAAqB,OAArB,CAARtC,EAAyC,EAAzCA,EAA+C,GAA/CA,SAAA,CACW,SADX,CACsB,GADtB,CAGtBpI,EAAA,CAAQ8gB,CAAAvc,MAAA,CAAiB,GAAjB,CAAR,CAA+B,QAAQ,CAACyc,CAAD,CAAW,CAChDA,CAAA,CAAWpC,CAAA,CAAKoC,CAAL,CAC4C,GAAvD,GAAIE,CAAApc,QAAA,CAAwB,GAAxB,CAA8Bkc,CAA9B,CAAyC,GAAzC,CAAJ,GACEE,CADF,EACqBF,CADrB,CACgC,GADhC,CAFgD,CAAlD,CAOAvc,EAAAsc,aAAA,CAAqB,OAArB,CAA8BnC,CAAA,CAAKsC,CAAL,CAA9B,CAXsC,CADG,CAiB7ClC,QAASA,GAAc,CAACmC,CAAD,CAAOC,CAAP,CAAiB,CAGtC,GAAIA,CAAJ,CAGE,GAAIA,CAAA7X,SAAJ,CACE4X,CAAA,CAAKA,CAAAxhB,OAAA,EAAL,CAAA,CAAsByhB,CADxB,KAEO,CACL,IAAIzhB,EAASyhB,CAAAzhB,OAGb,IAAsB,QAAtB,GAAI,MAAOA,EAAX,EAAkCyhB,CAAAniB,OAAlC,GAAsDmiB,CAAtD,CACE,IAAIzhB,CAAJ,CACE,IAAS,IAAAiB,EAAI,CAAb,CAAgBA,CAAhB,CAAoBjB,CAApB,CAA4BiB,CAAA,EAA5B,CACEugB,CAAA,CAAKA,CAAAxhB,OAAA,EAAL,CAAA,CAAsByhB,CAAA,CAASxgB,CAAT,CAF1B,CADF,IAOEugB,EAAA,CAAKA,CAAAxhB,OAAA,EAAL,CAAA,CAAsByhB,CAXnB,CAR6B,CA0BxCC,QAASA,GAAgB,CAAC5c,CAAD,CAAUwG,CAAV,CAAgB,CACvC,MAAOqW,GAAA,CAAoB7c,CAApB,CAA6B,GAA7B,EAAoCwG,CAApC,EAA4C,cAA5C,EAA8D,YAA9D,CADgC,CAIzCqW,QAASA,GAAmB,CAAC7c,CAAD,CAAUwG,CAAV,CAAgBlK,CAAhB,CAAuB,CA1mC1Boc,CA6mCvB,EAAI1Y,CAAA8E,SAAJ,GACE9E,CADF,CACYA,CAAA8c,gBADZ,CAKA,KAFIC,CAEJ;AAFYhiB,CAAA,CAAQyL,CAAR,CAAA,CAAgBA,CAAhB,CAAuB,CAACA,CAAD,CAEnC,CAAOxG,CAAP,CAAA,CAAgB,CACd,IADc,IACL7D,EAAI,CADC,CACEY,EAAKggB,CAAA7hB,OAArB,CAAmCiB,CAAnC,CAAuCY,CAAvC,CAA2CZ,CAAA,EAA3C,CACE,GAAI4C,CAAA,CAAUzC,CAAV,CAAkBrB,CAAA2M,KAAA,CAAY5H,CAAZ,CAAqB+c,CAAA,CAAM5gB,CAAN,CAArB,CAAlB,CAAJ,CAAuD,MAAOG,EAMhE0D,EAAA,CAAUA,CAAAga,WAAV,EAznC8BgD,EAynC9B,GAAiChd,CAAA8E,SAAjC,EAAqF9E,CAAAid,KARvE,CARiC,CAoBnDC,QAASA,GAAW,CAACld,CAAD,CAAU,CAE5B,IADAya,EAAA,CAAaza,CAAb,CAAsB,CAAA,CAAtB,CACA,CAAOA,CAAA2Z,WAAP,CAAA,CACE3Z,CAAAmd,YAAA,CAAoBnd,CAAA2Z,WAApB,CAH0B,CAO9ByD,QAASA,GAAY,CAACpd,CAAD,CAAUqd,CAAV,CAAoB,CAClCA,CAAL,EAAe5C,EAAA,CAAaza,CAAb,CACf,KAAI3B,EAAS2B,CAAAga,WACT3b,EAAJ,EAAYA,CAAA8e,YAAA,CAAmBnd,CAAnB,CAH2B,CAOzCsd,QAASA,GAAoB,CAACC,CAAD,CAASC,CAAT,CAAc,CACzCA,CAAA,CAAMA,CAAN,EAAahjB,CACb,IAAgC,UAAhC,GAAIgjB,CAAA/iB,SAAAgjB,WAAJ,CAIED,CAAAE,WAAA,CAAeH,CAAf,CAJF,KAOEtiB,EAAA,CAAOuiB,CAAP,CAAAlU,GAAA,CAAe,MAAf,CAAuBiU,CAAvB,CATuC,CA0E3CI,QAASA,GAAkB,CAAC3d,CAAD,CAAUwG,CAAV,CAAgB,CAEzC,IAAIoX,EAAcC,EAAA,CAAarX,CAAAuC,YAAA,EAAb,CAGlB,OAAO6U,EAAP,EAAsBE,EAAA,CAAiB/d,EAAA,CAAUC,CAAV,CAAjB,CAAtB,EAA8D4d,CALrB,CA0L3CG,QAASA,GAAkB,CAAC/d,CAAD,CAAU8J,CAAV,CAAkB,CAC3C,IAAIkU,EAAeA,QAAQ,CAACC,CAAD,CAAQjD,CAAR,CAAc,CAEvCiD,CAAAC,mBAAA,CAA2BC,QAAQ,EAAG,CACpC,MAAOF,EAAAG,iBAD6B,CAItC;IAAIC,EAAWvU,CAAA,CAAOkR,CAAP,EAAeiD,CAAAjD,KAAf,CAAf,CACIsD,EAAiBD,CAAA,CAAWA,CAAAnjB,OAAX,CAA6B,CAElD,IAAKojB,CAAL,CAAA,CAEA,GAAIxf,CAAA,CAAYmf,CAAAM,4BAAZ,CAAJ,CAAoD,CAClD,IAAIC,EAAmCP,CAAAQ,yBACvCR,EAAAQ,yBAAA,CAAiCC,QAAQ,EAAG,CAC1CT,CAAAM,4BAAA,CAAoC,CAAA,CAEhCN,EAAAU,gBAAJ,EACEV,CAAAU,gBAAA,EAGEH,EAAJ,EACEA,CAAA3iB,KAAA,CAAsCoiB,CAAtC,CARwC,CAFM,CAepDA,CAAAW,8BAAA,CAAsCC,QAAQ,EAAG,CAC/C,MAA6C,CAAA,CAA7C,GAAOZ,CAAAM,4BADwC,CAKjD,KAAIO,EAAiBT,CAAAU,sBAAjBD,EAAmDE,EAGjC,EAAtB,CAAKV,CAAL,GACED,CADF,CACazc,EAAA,CAAYyc,CAAZ,CADb,CAIA,KAAS,IAAAliB,EAAI,CAAb,CAAgBA,CAAhB,CAAoBmiB,CAApB,CAAoCniB,CAAA,EAApC,CACO8hB,CAAAW,8BAAA,EAAL,EACEE,CAAA,CAAe9e,CAAf,CAAwBie,CAAxB,CAA+BI,CAAA,CAASliB,CAAT,CAA/B,CA/BJ,CATuC,CA+CzC6hB,EAAAjU,KAAA,CAAoB/J,CACpB,OAAOge,EAjDoC,CAoD7CgB,QAASA,GAAqB,CAAChf,CAAD,CAAUie,CAAV,CAAiBgB,CAAjB,CAA0B,CACtDA,CAAApjB,KAAA,CAAamE,CAAb,CAAsBie,CAAtB,CADsD,CAIxDiB,QAASA,GAA0B,CAACC,CAAD,CAASlB,CAAT;AAAgBgB,CAAhB,CAAyB,CAI1D,IAAIG,EAAUnB,CAAAoB,cAGTD,EAAL,GAAiBA,CAAjB,GAA6BD,CAA7B,EAAwCG,EAAAzjB,KAAA,CAAoBsjB,CAApB,CAA4BC,CAA5B,CAAxC,GACEH,CAAApjB,KAAA,CAAasjB,CAAb,CAAqBlB,CAArB,CARwD,CAuP5DpG,QAASA,GAAgB,EAAG,CAC1B,IAAA0H,KAAA,CAAYC,QAAiB,EAAG,CAC9B,MAAO3hB,EAAA,CAAOsM,CAAP,CAAe,CACpBsV,SAAUA,QAAQ,CAACjgB,CAAD,CAAOkgB,CAAP,CAAgB,CAC5BlgB,CAAAE,KAAJ,GAAeF,CAAf,CAAsBA,CAAA,CAAK,CAAL,CAAtB,CACA,OAAO0c,GAAA,CAAe1c,CAAf,CAAqBkgB,CAArB,CAFyB,CADd,CAKpBC,SAAUA,QAAQ,CAACngB,CAAD,CAAOkgB,CAAP,CAAgB,CAC5BlgB,CAAAE,KAAJ,GAAeF,CAAf,CAAsBA,CAAA,CAAK,CAAL,CAAtB,CACA,OAAOgd,GAAA,CAAehd,CAAf,CAAqBkgB,CAArB,CAFyB,CALd,CASpBE,YAAaA,QAAQ,CAACpgB,CAAD,CAAOkgB,CAAP,CAAgB,CAC/BlgB,CAAAE,KAAJ,GAAeF,CAAf,CAAsBA,CAAA,CAAK,CAAL,CAAtB,CACA,OAAO4c,GAAA,CAAkB5c,CAAlB,CAAwBkgB,CAAxB,CAF4B,CATjB,CAAf,CADuB,CADN,CA+B5BG,QAASA,GAAO,CAAChlB,CAAD,CAAMilB,CAAN,CAAiB,CAC/B,IAAIpkB,EAAMb,CAANa,EAAab,CAAAiC,UAEjB,IAAIpB,CAAJ,CAIE,MAHmB,UAGZA,GAHH,MAAOA,EAGJA,GAFLA,CAEKA,CAFCb,CAAAiC,UAAA,EAEDpB,EAAAA,CAGLqkB,EAAAA,CAAU,MAAOllB,EAOrB,OALEa,EAKF,CANe,UAAf,EAAIqkB,CAAJ,EAAyC,QAAzC,EAA8BA,CAA9B,EAA6D,IAA7D,GAAqDllB,CAArD,CACQA,CAAAiC,UADR,CACwBijB,CADxB,CACkC,GADlC,CACwC,CAACD,CAAD,EAAcvjB,EAAd,GADxC,CAGQwjB,CAHR,CAGkB,GAHlB,CAGwBllB,CAdO,CAuBjCmlB,QAASA,GAAO,CAAC7f,CAAD,CAAQ8f,CAAR,CAAqB,CACnC,GAAIA,CAAJ,CAAiB,CACf,IAAIzjB,EAAM,CACV,KAAAD,QAAA;AAAe2jB,QAAQ,EAAG,CACxB,MAAO,EAAE1jB,CADe,CAFX,CAMjBjB,CAAA,CAAQ4E,CAAR,CAAe,IAAAggB,IAAf,CAAyB,IAAzB,CAPmC,CAiHrCC,QAASA,GAAW,CAACzd,CAAD,CAAK,CACnB0d,CAAAA,CAAS1d,CAAA9D,SAAA,EAAA8E,QAAA,CAAsB2c,EAAtB,CAAsC,EAAtC,CAEb,OADWD,EAAA3e,MAAA,CAAa6e,EAAb,CACX,EADsCF,CAAA3e,MAAA,CAAa8e,EAAb,CAFf,CAMzBC,QAASA,GAAM,CAAC9d,CAAD,CAAK,CAIlB,MAAA,CADI+d,CACJ,CADWN,EAAA,CAAYzd,CAAZ,CACX,EACS,WADT,CACuBgB,CAAC+c,CAAA,CAAK,CAAL,CAAD/c,EAAY,EAAZA,SAAA,CAAwB,WAAxB,CAAqC,GAArC,CADvB,CACmE,GADnE,CAGO,IAPW,CA2iBpB2D,QAASA,GAAc,CAACqZ,CAAD,CAAgB/Z,CAAhB,CAA0B,CA4C/Cga,QAASA,EAAa,CAACC,CAAD,CAAW,CAC/B,MAAO,SAAQ,CAACnlB,CAAD,CAAMY,CAAN,CAAa,CAC1B,GAAIU,CAAA,CAAStB,CAAT,CAAJ,CACEH,CAAA,CAAQG,CAAR,CAAaU,EAAA,CAAcykB,CAAd,CAAb,CADF,KAGE,OAAOA,EAAA,CAASnlB,CAAT,CAAcY,CAAd,CAJiB,CADG,CAUjCsP,QAASA,EAAQ,CAACpF,CAAD,CAAOsa,CAAP,CAAkB,CACjCrW,EAAA,CAAwBjE,CAAxB,CAA8B,SAA9B,CACA,IAAI7K,CAAA,CAAWmlB,CAAX,CAAJ,EAA6B/lB,CAAA,CAAQ+lB,CAAR,CAA7B,CACEA,CAAA,CAAYC,CAAAC,YAAA,CAA6BF,CAA7B,CAEd,IAAKvB,CAAAuB,CAAAvB,KAAL,CACE,KAAMhU,GAAA,CAAgB,MAAhB,CAA2E/E,CAA3E,CAAN,CAEF,MAAOya,EAAA,CAAcza,CAAd,CA3DY0a,UA2DZ,CAAP,CAA8CJ,CARb,CAWnCK,QAASA,EAAkB,CAAC3a,CAAD,CAAO8E,CAAP,CAAgB,CACzC,MAAO8V,SAA4B,EAAG,CACpC,IAAIC,EAASC,CAAA/Z,OAAA,CAAwB+D,CAAxB,CAAiC,IAAjC,CACb,IAAIxM,CAAA,CAAYuiB,CAAZ,CAAJ,CACE,KAAM9V,GAAA,CAAgB,OAAhB,CAAyF/E,CAAzF,CAAN;AAEF,MAAO6a,EAL6B,CADG,CAU3C/V,QAASA,EAAO,CAAC9E,CAAD,CAAO+a,CAAP,CAAkBC,CAAlB,CAA2B,CACzC,MAAO5V,EAAA,CAASpF,CAAT,CAAe,CACpB+Y,KAAkB,CAAA,CAAZ,GAAAiC,CAAA,CAAoBL,CAAA,CAAmB3a,CAAnB,CAAyB+a,CAAzB,CAApB,CAA0DA,CAD5C,CAAf,CADkC,CAiC3CE,QAASA,EAAW,CAACd,CAAD,CAAgB,CAClCvW,EAAA,CAAUtL,CAAA,CAAY6hB,CAAZ,CAAV,EAAwC5lB,CAAA,CAAQ4lB,CAAR,CAAxC,CAAgE,eAAhE,CAAiF,cAAjF,CADkC,KAE9BpU,EAAY,EAFkB,CAEdmV,CACpBnmB,EAAA,CAAQolB,CAAR,CAAuB,QAAQ,CAACta,CAAD,CAAS,CAItCsb,QAASA,EAAc,CAAC5V,CAAD,CAAQ,CAAA,IACzB5P,CADyB,CACtBY,CACFZ,EAAA,CAAI,CAAT,KAAYY,CAAZ,CAAiBgP,CAAA7Q,OAAjB,CAA+BiB,CAA/B,CAAmCY,CAAnC,CAAuCZ,CAAA,EAAvC,CAA4C,CAAA,IACtCylB,EAAa7V,CAAA,CAAM5P,CAAN,CADyB,CAEtCyP,EAAWmV,CAAAtY,IAAA,CAAqBmZ,CAAA,CAAW,CAAX,CAArB,CAEfhW,EAAA,CAASgW,CAAA,CAAW,CAAX,CAAT,CAAA9e,MAAA,CAA8B8I,CAA9B,CAAwCgW,CAAA,CAAW,CAAX,CAAxC,CAJ0C,CAFf,CAH/B,GAAI,CAAAC,CAAApZ,IAAA,CAAkBpC,CAAlB,CAAJ,CAAA,CACAwb,CAAA1B,IAAA,CAAkB9Z,CAAlB,CAA0B,CAAA,CAA1B,CAYA,IAAI,CACErL,CAAA,CAASqL,CAAT,CAAJ,EACEqb,CAGA,CAHWjU,EAAA,CAAcpH,CAAd,CAGX,CAFAkG,CAEA,CAFYA,CAAAjK,OAAA,CAAiBmf,CAAA,CAAYC,CAAAjW,SAAZ,CAAjB,CAAAnJ,OAAA,CAAwDof,CAAAhV,WAAxD,CAEZ,CADAiV,CAAA,CAAeD,CAAAlV,aAAf,CACA,CAAAmV,CAAA,CAAeD,CAAAjV,cAAf,CAJF,EAKW9Q,CAAA,CAAW0K,CAAX,CAAJ,CACHkG,CAAA5L,KAAA,CAAeogB,CAAAxZ,OAAA,CAAwBlB,CAAxB,CAAf,CADG,CAEItL,CAAA,CAAQsL,CAAR,CAAJ,CACHkG,CAAA5L,KAAA,CAAeogB,CAAAxZ,OAAA,CAAwBlB,CAAxB,CAAf,CADG,CAGLkE,EAAA,CAAYlE,CAAZ,CAAoB,QAApB,CAXA,CAaF,MAAO3B,CAAP,CAAU,CAYV,KAXI3J,EAAA,CAAQsL,CAAR,CAWE,GAVJA,CAUI,CAVKA,CAAA,CAAOA,CAAAnL,OAAP,CAAuB,CAAvB,CAUL,EARFwJ,CAAAod,QAQE,EARWpd,CAAAqd,MAQX;AARqD,EAQrD,EARsBrd,CAAAqd,MAAA1hB,QAAA,CAAgBqE,CAAAod,QAAhB,CAQtB,GAFJpd,CAEI,CAFAA,CAAAod,QAEA,CAFY,IAEZ,CAFmBpd,CAAAqd,MAEnB,EAAAxW,EAAA,CAAgB,UAAhB,CACIlF,CADJ,CACY3B,CAAAqd,MADZ,EACuBrd,CAAAod,QADvB,EACoCpd,CADpC,CAAN,CAZU,CA1BZ,CADsC,CAAxC,CA2CA,OAAO6H,EA9C2B,CAqDpCyV,QAASA,EAAsB,CAACC,CAAD,CAAQ3W,CAAR,CAAiB,CAE9C4W,QAASA,EAAU,CAACC,CAAD,CAAcC,CAAd,CAAsB,CACvC,GAAIH,CAAArmB,eAAA,CAAqBumB,CAArB,CAAJ,CAAuC,CACrC,GAAIF,CAAA,CAAME,CAAN,CAAJ,GAA2BE,CAA3B,CACE,KAAM9W,GAAA,CAAgB,MAAhB,CACI4W,CADJ,CACkB,MADlB,CAC2BxX,CAAAjF,KAAA,CAAU,MAAV,CAD3B,CAAN,CAGF,MAAOuc,EAAA,CAAME,CAAN,CAL8B,CAOrC,GAAI,CAGF,MAFAxX,EAAAzD,QAAA,CAAaib,CAAb,CAEO,CADPF,CAAA,CAAME,CAAN,CACO,CADcE,CACd,CAAAJ,CAAA,CAAME,CAAN,CAAA,CAAqB7W,CAAA,CAAQ6W,CAAR,CAAqBC,CAArB,CAH1B,CAIF,MAAOE,CAAP,CAAY,CAIZ,KAHIL,EAAA,CAAME,CAAN,CAGEG,GAHqBD,CAGrBC,EAFJ,OAAOL,CAAA,CAAME,CAAN,CAEHG,CAAAA,CAAN,CAJY,CAJd,OASU,CACR3X,CAAA4X,MAAA,EADQ,CAjB2B,CAwBzCC,QAASA,EAAa,CAAC7f,CAAD,CAAK8f,CAAL,CAAaN,CAAb,CAA0B,CAAA,IAC1CzB,EAAO,EACPgC,EAAAA,CAAUpb,EAAAqb,WAAA,CAA0BhgB,CAA1B,CAA8BiE,CAA9B,CAAwCub,CAAxC,CAEd,KAJ8C,IAIrChmB,EAAI,CAJiC,CAI9BjB,EAASwnB,CAAAxnB,OAAzB,CAAyCiB,CAAzC,CAA6CjB,CAA7C,CAAqDiB,CAAA,EAArD,CAA0D,CACxD,IAAIT,EAAMgnB,CAAA,CAAQvmB,CAAR,CACV,IAAmB,QAAnB,GAAI,MAAOT,EAAX,CACE,KAAM6P,GAAA,CAAgB,MAAhB,CACyE7P,CADzE,CAAN,CAGFglB,CAAA/f,KAAA,CAAU8hB,CAAA,EAAUA,CAAA7mB,eAAA,CAAsBF,CAAtB,CAAV,CAAuC+mB,CAAA,CAAO/mB,CAAP,CAAvC;AACuCwmB,CAAA,CAAWxmB,CAAX,CAAgBymB,CAAhB,CADjD,CANwD,CAS1D,MAAOzB,EAbuC,CA4DhD,MAAO,CACLnZ,OAlCFA,QAAe,CAAC5E,CAAD,CAAKD,CAAL,CAAW+f,CAAX,CAAmBN,CAAnB,CAAgC,CACvB,QAAtB,GAAI,MAAOM,EAAX,GACEN,CACA,CADcM,CACd,CAAAA,CAAA,CAAS,IAFX,CAKI/B,EAAAA,CAAO8B,CAAA,CAAc7f,CAAd,CAAkB8f,CAAlB,CAA0BN,CAA1B,CACPpnB,EAAA,CAAQ4H,CAAR,CAAJ,GACEA,CADF,CACOA,CAAA,CAAGA,CAAAzH,OAAH,CAAe,CAAf,CADP,CAfE,EAAA,CADU,EAAZ,EAAI0nB,EAAJ,CACS,CAAA,CADT,CAKuB,UALvB,GAKO,MAeMjgB,EApBb,EAMK,4BAAApD,KAAA,CAAkCsjB,QAAAC,UAAAjkB,SAAAhD,KAAA,CAc1B8G,CAd0B,CAAlC,CAcL,OAAK,EAAL,EAKE+d,CAAAxZ,QAAA,CAAa,IAAb,CACO,CAAA,KAAK2b,QAAAC,UAAArgB,KAAAK,MAAA,CAA8BH,CAA9B,CAAkC+d,CAAlC,CAAL,CANT,EAGS/d,CAAAG,MAAA,CAASJ,CAAT,CAAege,CAAf,CAdoC,CAiCxC,CAELM,YAbFA,QAAoB,CAAC+B,CAAD,CAAON,CAAP,CAAeN,CAAf,CAA4B,CAG9C,IAAIa,EAAQjoB,CAAA,CAAQgoB,CAAR,CAAA,CAAgBA,CAAA,CAAKA,CAAA7nB,OAAL,CAAmB,CAAnB,CAAhB,CAAwC6nB,CAChDrC,EAAAA,CAAO8B,CAAA,CAAcO,CAAd,CAAoBN,CAApB,CAA4BN,CAA5B,CAEXzB,EAAAxZ,QAAA,CAAa,IAAb,CACA,OAAO,MAAK2b,QAAAC,UAAArgB,KAAAK,MAAA,CAA8BkgB,CAA9B,CAAoCtC,CAApC,CAAL,CAPuC,CAWzC,CAGLjY,IAAKyZ,CAHA,CAILe,SAAU3b,EAAAqb,WAJL,CAKLO,IAAKA,QAAQ,CAAC1c,CAAD,CAAO,CAClB,MAAOya,EAAArlB,eAAA,CAA6B4K,CAA7B;AA1PQ0a,UA0PR,CAAP,EAA8De,CAAArmB,eAAA,CAAqB4K,CAArB,CAD5C,CALf,CAtFuC,CAhKhDI,CAAA,CAAyB,CAAA,CAAzB,GAAYA,CADmC,KAE3Cyb,EAAgB,EAF2B,CAI3C1X,EAAO,EAJoC,CAK3CkX,EAAgB,IAAI7B,EAAJ,CAAY,EAAZ,CAAgB,CAAA,CAAhB,CAL2B,CAM3CiB,EAAgB,CACd9Z,SAAU,CACNyE,SAAUgV,CAAA,CAAchV,CAAd,CADJ,CAENN,QAASsV,CAAA,CAActV,CAAd,CAFH,CAGNqB,QAASiU,CAAA,CAuEnBjU,QAAgB,CAACnG,CAAD,CAAOtF,CAAP,CAAoB,CAClC,MAAOoK,EAAA,CAAQ9E,CAAR,CAAc,CAAC,WAAD,CAAc,QAAQ,CAAC2c,CAAD,CAAY,CACrD,MAAOA,EAAAnC,YAAA,CAAsB9f,CAAtB,CAD8C,CAAlC,CAAd,CAD2B,CAvEjB,CAHH,CAIN5E,MAAOskB,CAAA,CA4EjBtkB,QAAc,CAACkK,CAAD,CAAOxD,CAAP,CAAY,CAAE,MAAOsI,EAAA,CAAQ9E,CAAR,CAAc7H,EAAA,CAAQqE,CAAR,CAAd,CAA4B,CAAA,CAA5B,CAAT,CA5ET,CAJD,CAKN4J,SAAUgU,CAAA,CA6EpBhU,QAAiB,CAACpG,CAAD,CAAOlK,CAAP,CAAc,CAC7BmO,EAAA,CAAwBjE,CAAxB,CAA8B,UAA9B,CACAya,EAAA,CAAcza,CAAd,CAAA,CAAsBlK,CACtB8mB,EAAA,CAAc5c,CAAd,CAAA,CAAsBlK,CAHO,CA7EX,CALJ,CAMNuQ,UAkFVA,QAAkB,CAACsV,CAAD,CAAckB,CAAd,CAAuB,CAAA,IACnCC,EAAevC,CAAAtY,IAAA,CAAqB0Z,CAArB,CA7FAjB,UA6FA,CADoB,CAEnCqC,EAAWD,CAAA/D,KAEf+D,EAAA/D,KAAA,CAAoBiE,QAAQ,EAAG,CAC7B,IAAIC,EAAenC,CAAA/Z,OAAA,CAAwBgc,CAAxB,CAAkCD,CAAlC,CACnB,OAAOhC,EAAA/Z,OAAA,CAAwB8b,CAAxB,CAAiC,IAAjC,CAAuC,CAACK,UAAWD,CAAZ,CAAvC,CAFsB,CAJQ,CAxFzB,CADI,CAN2B,CAgB3C1C,EAAoBE,CAAAkC,UAApBpC,CACIiB,CAAA,CAAuBf,CAAvB,CAAsC,QAAQ,CAACkB,CAAD,CAAcC,CAAd,CAAsB,CAC9Dra,EAAA/M,SAAA,CAAiBonB,CAAjB,CAAJ,EACEzX,CAAAhK,KAAA,CAAUyhB,CAAV,CAEF;KAAM7W,GAAA,CAAgB,MAAhB,CAAiDZ,CAAAjF,KAAA,CAAU,MAAV,CAAjD,CAAN,CAJkE,CAApE,CAjBuC,CAuB3C0d,EAAgB,EAvB2B,CAwB3CO,EACI3B,CAAA,CAAuBoB,CAAvB,CAAsC,QAAQ,CAACjB,CAAD,CAAcC,CAAd,CAAsB,CAClE,IAAIxW,EAAWmV,CAAAtY,IAAA,CAAqB0Z,CAArB,CAvBJjB,UAuBI,CAAmDkB,CAAnD,CACf,OAAOd,EAAA/Z,OAAA,CACHqE,CAAA2T,KADG,CACY3T,CADZ,CACsBlR,CADtB,CACiCynB,CADjC,CAF2D,CAApE,CAzBuC,CA8B3Cb,EAAmBqC,CAEvB1C,EAAA,kBAAA,CAA8C,CAAE1B,KAAM5gB,EAAA,CAAQglB,CAAR,CAAR,CAC9C,KAAIpX,EAAYkV,CAAA,CAAYd,CAAZ,CAAhB,CACAW,EAAmBqC,CAAAlb,IAAA,CAA0B,WAA1B,CACnB6Y,EAAA1a,SAAA,CAA4BA,CAC5BrL,EAAA,CAAQgR,CAAR,CAAmB,QAAQ,CAAC5J,CAAD,CAAK,CAAMA,CAAJ,EAAQ2e,CAAA/Z,OAAA,CAAwB5E,CAAxB,CAAV,CAAhC,CAEA,OAAO2e,EAtCwC,CA6QjDjO,QAASA,GAAqB,EAAG,CAE/B,IAAIuQ,EAAuB,CAAA,CAe3B,KAAAC,qBAAA,CAA4BC,QAAQ,EAAG,CACrCF,CAAA,CAAuB,CAAA,CADc,CAiJvC,KAAArE,KAAA,CAAY,CAAC,SAAD,CAAY,WAAZ,CAAyB,YAAzB,CAAuC,QAAQ,CAAC/H,CAAD,CAAU1B,CAAV,CAAqBM,CAArB,CAAiC,CAM1F2N,QAASA,EAAc,CAACC,CAAD,CAAO,CAC5B,IAAI3C,EAAS,IACbhmB,MAAAynB,UAAAmB,KAAApoB,KAAA,CAA0BmoB,CAA1B,CAAgC,QAAQ,CAAChkB,CAAD,CAAU,CAChD,GAA2B,GAA3B,GAAID,EAAA,CAAUC,CAAV,CAAJ,CAEE,MADAqhB,EACO,CADErhB,CACF,CAAA,CAAA,CAHuC,CAAlD,CAMA,OAAOqhB,EARqB,CAgC9B6C,QAASA,EAAQ,CAACna,CAAD,CAAO,CACtB,GAAIA,CAAJ,CAAU,CACRA,CAAAoa,eAAA,EAEA;IAAI9L,CAvBFA,EAAAA,CAAS+L,CAAAC,QAET1oB,EAAA,CAAW0c,CAAX,CAAJ,CACEA,CADF,CACWA,CAAA,EADX,CAEW1a,EAAA,CAAU0a,CAAV,CAAJ,EACDtO,CAGF,CAHSsO,CAAA,CAAO,CAAP,CAGT,CAAAA,CAAA,CADqB,OAAvB,GADYb,CAAA8M,iBAAA7V,CAAyB1E,CAAzB0E,CACR8V,SAAJ,CACW,CADX,CAGWxa,CAAAya,sBAAA,EAAAC,OANN,EAQKrpB,CAAA,CAASid,CAAT,CARL,GASLA,CATK,CASI,CATJ,CAqBDA,EAAJ,GAcMqM,CACJ,CADc3a,CAAAya,sBAAA,EAAAG,IACd,CAAAnN,CAAAoN,SAAA,CAAiB,CAAjB,CAAoBF,CAApB,CAA8BrM,CAA9B,CAfF,CALQ,CAAV,IAuBEb,EAAA0M,SAAA,CAAiB,CAAjB,CAAoB,CAApB,CAxBoB,CA4BxBE,QAASA,EAAM,CAACS,CAAD,CAAO,CACpBA,CAAA,CAAO7pB,CAAA,CAAS6pB,CAAT,CAAA,CAAiBA,CAAjB,CAAwB/O,CAAA+O,KAAA,EAC/B,KAAIC,CAGCD,EAAL,CAGK,CAAKC,CAAL,CAAWrqB,CAAAsqB,eAAA,CAAwBF,CAAxB,CAAX,EAA2CX,CAAA,CAASY,CAAT,CAA3C,CAGA,CAAKA,CAAL,CAAWf,CAAA,CAAetpB,CAAAuqB,kBAAA,CAA2BH,CAA3B,CAAf,CAAX,EAA8DX,CAAA,CAASY,CAAT,CAA9D,CAGa,KAHb,GAGID,CAHJ,EAGoBX,CAAA,CAAS,IAAT,CATzB,CAAWA,CAAA,CAAS,IAAT,CALS,CAjEtB,IAAIzpB,EAAW+c,CAAA/c,SAoFXmpB,EAAJ,EACExN,CAAAjX,OAAA,CAAkB8lB,QAAwB,EAAG,CAAC,MAAOnP,EAAA+O,KAAA,EAAR,CAA7C,CACEK,QAA8B,CAACC,CAAD,CAASC,CAAT,CAAiB,CAEzCD,CAAJ,GAAeC,CAAf,EAAoC,EAApC,GAAyBD,CAAzB,EAEA7H,EAAA,CAAqB,QAAQ,EAAG,CAC9BlH,CAAAlX,WAAA,CAAsBklB,CAAtB,CAD8B,CAAhC,CAJ6C,CADjD,CAWF,OAAOA,EAjGmF,CAAhF,CAlKmB,CA2QjCiB,QAASA,GAAY,CAACvX,CAAD,CAAGwX,CAAH,CAAM,CACzB,GAAKxX,CAAAA,CAAL,EAAWwX,CAAAA,CAAX,CAAc,MAAO,EACrB;GAAKxX,CAAAA,CAAL,CAAQ,MAAOwX,EACf,IAAKA,CAAAA,CAAL,CAAQ,MAAOxX,EACX/S,EAAA,CAAQ+S,CAAR,CAAJ,GAAgBA,CAAhB,CAAoBA,CAAApI,KAAA,CAAO,GAAP,CAApB,CACI3K,EAAA,CAAQuqB,CAAR,CAAJ,GAAgBA,CAAhB,CAAoBA,CAAA5f,KAAA,CAAO,GAAP,CAApB,CACA,OAAOoI,EAAP,CAAW,GAAX,CAAiBwX,CANQ,CAkB3BC,QAASA,GAAY,CAAC7F,CAAD,CAAU,CACzB1kB,CAAA,CAAS0kB,CAAT,CAAJ,GACEA,CADF,CACYA,CAAA5f,MAAA,CAAc,GAAd,CADZ,CAMA,KAAIjF,EAAMwH,CAAA,EACV9G,EAAA,CAAQmkB,CAAR,CAAiB,QAAQ,CAAC8F,CAAD,CAAQ,CAG3BA,CAAAtqB,OAAJ,GACEL,CAAA,CAAI2qB,CAAJ,CADF,CACe,CAAA,CADf,CAH+B,CAAjC,CAOA,OAAO3qB,EAfsB,CAyB/B4qB,QAASA,GAAqB,CAACC,CAAD,CAAU,CACtC,MAAO1oB,EAAA,CAAS0oB,CAAT,CAAA,CACDA,CADC,CAED,EAHgC,CAyzBxCC,QAASA,GAAO,CAACnrB,CAAD,CAASC,CAAT,CAAmBub,CAAnB,CAAyBc,CAAzB,CAAmC,CAsBjD8O,QAASA,EAA0B,CAACjjB,CAAD,CAAK,CACtC,GAAI,CACFA,CAAAG,MAAA,CAAS,IAAT,CA7gJGhF,EAAAjC,KAAA,CA6gJsBkC,SA7gJtB,CA6gJiC8E,CA7gJjC,CA6gJH,CADE,CAAJ,OAEU,CAER,GADAgjB,CAAA,EACI,CAA4B,CAA5B,GAAAA,CAAJ,CACE,IAAA,CAAOC,CAAA5qB,OAAP,CAAA,CACE,GAAI,CACF4qB,CAAAC,IAAA,EAAA,EADE,CAEF,MAAOrhB,CAAP,CAAU,CACVsR,CAAAgQ,MAAA,CAAWthB,CAAX,CADU,CANR,CAH4B,CAiJxCuhB,QAASA,EAA0B,EAAG,CACpCC,CAAA,CAAkB,IAClBC,EAAA,EACAC,EAAA,EAHoC,CAgBtCD,QAASA,EAAU,EAAG,CAVK,CAAA,CAAA,CACzB,GAAI,CACF,CAAA,CAAOE,CAAAC,MAAP,OAAA,CADE,CAEF,MAAO5hB,CAAP,CAAU,EAHa,CAAA,CAAA,IAAA,EAAA,CAazB6hB,CAAA,CAAcznB,CAAA,CAAYynB,CAAZ,CAAA,CAA2B,IAA3B,CAAkCA,CAG5CzkB,GAAA,CAAOykB,CAAP,CAAoBC,CAApB,CAAJ,GACED,CADF,CACgBC,CADhB,CAGAA,EAAA,CAAkBD,CATE,CAYtBH,QAASA,EAAa,EAAG,CACvB,GAAIK,CAAJ,GAAuB/jB,CAAAgkB,IAAA,EAAvB;AAAqCC,CAArC,GAA0DJ,CAA1D,CAIAE,CAEA,CAFiB/jB,CAAAgkB,IAAA,EAEjB,CADAC,CACA,CADmBJ,CACnB,CAAAhrB,CAAA,CAAQqrB,CAAR,CAA4B,QAAQ,CAACC,CAAD,CAAW,CAC7CA,CAAA,CAASnkB,CAAAgkB,IAAA,EAAT,CAAqBH,CAArB,CAD6C,CAA/C,CAPuB,CAnMwB,IAC7C7jB,EAAO,IADsC,CAG7C2F,EAAW7N,CAAA6N,SAHkC,CAI7Cge,EAAU7rB,CAAA6rB,QAJmC,CAK7C3I,EAAaljB,CAAAkjB,WALgC,CAM7CoJ,EAAetsB,CAAAssB,aAN8B,CAO7CC,EAAkB,EAEtBrkB,EAAAskB,OAAA,CAAc,CAAA,CAEd,KAAInB,EAA0B,CAA9B,CACIC,EAA8B,EAGlCpjB,EAAAukB,6BAAA,CAAoCrB,CACpCljB,EAAAwkB,6BAAA,CAAoCC,QAAQ,EAAG,CAAEtB,CAAA,EAAF,CAkC/CnjB,EAAA0kB,gCAAA,CAAuCC,QAAQ,CAACC,CAAD,CAAW,CACxB,CAAhC,GAAIzB,CAAJ,CACEyB,CAAA,EADF,CAGExB,CAAAnlB,KAAA,CAAiC2mB,CAAjC,CAJsD,CAlDT,KA8D7Cf,CA9D6C,CA8DhCI,CA9DgC,CA+D7CF,EAAiBpe,CAAAkf,KA/D4B,CAgE7CC,GAAc/sB,CAAAkF,KAAA,CAAc,MAAd,CAhE+B,CAiE7CumB,EAAkB,IAEtBC,EAAA,EACAQ,EAAA,CAAmBJ,CAsBnB7jB,EAAAgkB,IAAA,CAAWe,QAAQ,CAACf,CAAD,CAAM/iB,CAAN,CAAe2iB,CAAf,CAAsB,CAInCxnB,CAAA,CAAYwnB,CAAZ,CAAJ,GACEA,CADF,CACU,IADV,CAKIje,EAAJ,GAAiB7N,CAAA6N,SAAjB,GAAkCA,CAAlC,CAA6C7N,CAAA6N,SAA7C,CACIge,EAAJ,GAAgB7rB,CAAA6rB,QAAhB,GAAgCA,CAAhC,CAA0C7rB,CAAA6rB,QAA1C,CAGA,IAAIK,CAAJ,CAAS,CACP,IAAIgB,EAAYf,CAAZe,GAAiCpB,CAKrC,IAAIG,CAAJ,GAAuBC,CAAvB,GAAgCL,CAAAvP,CAAAuP,QAAhC,EAAoDqB,CAApD,EACE,MAAOhlB,EAET,KAAIilB;AAAWlB,CAAXkB,EAA6BC,EAAA,CAAUnB,CAAV,CAA7BkB,GAA2DC,EAAA,CAAUlB,CAAV,CAC/DD,EAAA,CAAiBC,CACjBC,EAAA,CAAmBL,CAKnB,IAAID,CAAAvP,CAAAuP,QAAJ,EAA0BsB,CAA1B,EAAuCD,CAAvC,CAKO,CACL,GAAKC,CAAAA,CAAL,EAAiBzB,CAAjB,CACEA,CAAA,CAAkBQ,CAEhB/iB,EAAJ,CACE0E,CAAA1E,QAAA,CAAiB+iB,CAAjB,CADF,CAEYiB,CAAL,EAGLtf,CAAA,CAAAA,CAAA,CA7FFjI,CA6FE,CAAwBsmB,CA7FlBrmB,QAAA,CAAY,GAAZ,CA6FN,CA5FN,CA4FM,CA5FY,EAAX,GAAAD,CAAA,CAAe,EAAf,CA4FuBsmB,CA5FHmB,OAAA,CAAWznB,CAAX,CA4FrB,CAAAiI,CAAAwc,KAAA,CAAgB,CAHX,EACLxc,CAAAkf,KADK,CACWb,CAIdre,EAAAkf,KAAJ,GAAsBb,CAAtB,GACER,CADF,CACoBQ,CADpB,CAXK,CALP,IACEL,EAAA,CAAQ1iB,CAAA,CAAU,cAAV,CAA2B,WAAnC,CAAA,CAAgD2iB,CAAhD,CAAuD,EAAvD,CAA2DI,CAA3D,CAGA,CAFAP,CAAA,EAEA,CAAAQ,CAAA,CAAmBJ,CAgBrB,OAAO7jB,EApCA,CA2CP,MAAOwjB,EAAP,EAA0B7d,CAAAkf,KAAA5jB,QAAA,CAAsB,MAAtB,CAA6B,GAA7B,CAxDW,CAsEzCjB,EAAA4jB,MAAA,CAAawB,QAAQ,EAAG,CACtB,MAAOvB,EADe,CAhKyB,KAoK7CK,EAAqB,EApKwB,CAqK7CmB,EAAgB,CAAA,CArK6B,CAsL7CvB,EAAkB,IA8CtB9jB,EAAAslB,YAAA,CAAmBC,QAAQ,CAACX,CAAD,CAAW,CAEpC,GAAKS,CAAAA,CAAL,CAAoB,CAMlB,GAAIjR,CAAAuP,QAAJ,CAAsBprB,CAAA,CAAOT,CAAP,CAAA8O,GAAA,CAAkB,UAAlB,CAA8B2c,CAA9B,CAEtBhrB,EAAA,CAAOT,CAAP,CAAA8O,GAAA,CAAkB,YAAlB,CAAgC2c,CAAhC,CAEA8B,EAAA,CAAgB,CAAA,CAVE,CAapBnB,CAAAjmB,KAAA,CAAwB2mB,CAAxB,CACA,OAAOA,EAhB6B,CAyBtC5kB,EAAAwlB,uBAAA,CAA8BC,QAAQ,EAAG,CACvCltB,CAAA,CAAOT,CAAP,CAAA4tB,IAAA,CAAmB,qBAAnB,CAA0CnC,CAA1C,CADuC,CASzCvjB,EAAA2lB,iBAAA;AAAwBjC,CAexB1jB,EAAA4lB,SAAA,CAAgBC,QAAQ,EAAG,CACzB,IAAIhB,EAAOC,EAAA9nB,KAAA,CAAiB,MAAjB,CACX,OAAO6nB,EAAA,CAAOA,CAAA5jB,QAAA,CAAa,wBAAb,CAAuC,EAAvC,CAAP,CAAoD,EAFlC,CAmB3BjB,EAAA8lB,MAAA,CAAaC,QAAQ,CAAC9lB,CAAD,CAAK+lB,CAAL,CAAY,CAC/B,IAAIC,CACJ9C,EAAA,EACA8C,EAAA,CAAYjL,CAAA,CAAW,QAAQ,EAAG,CAChC,OAAOqJ,CAAA,CAAgB4B,CAAhB,CACP/C,EAAA,CAA2BjjB,CAA3B,CAFgC,CAAtB,CAGT+lB,CAHS,EAGA,CAHA,CAIZ3B,EAAA,CAAgB4B,CAAhB,CAAA,CAA6B,CAAA,CAC7B,OAAOA,EARwB,CAsBjCjmB,EAAA8lB,MAAAI,OAAA,CAAoBC,QAAQ,CAACC,CAAD,CAAU,CACpC,MAAI/B,EAAA,CAAgB+B,CAAhB,CAAJ,EACE,OAAO/B,CAAA,CAAgB+B,CAAhB,CAGA,CAFPhC,CAAA,CAAagC,CAAb,CAEO,CADPlD,CAAA,CAA2BpnB,CAA3B,CACO,CAAA,CAAA,CAJT,EAMO,CAAA,CAP6B,CA9TW,CA0UnD2V,QAASA,GAAgB,EAAG,CAC1B,IAAAoL,KAAA,CAAY,CAAC,SAAD,CAAY,MAAZ,CAAoB,UAApB,CAAgC,WAAhC,CACR,QAAQ,CAAC/H,CAAD,CAAUxB,CAAV,CAAgBc,CAAhB,CAA0BtC,CAA1B,CAAqC,CAC3C,MAAO,KAAImR,EAAJ,CAAYnO,CAAZ,CAAqBhD,CAArB,CAAgCwB,CAAhC,CAAsCc,CAAtC,CADoC,CADrC,CADc,CAwF5BzC,QAASA,GAAqB,EAAG,CAE/B,IAAAkL,KAAA,CAAYC,QAAQ,EAAG,CAGrBuJ,QAASA,EAAY,CAACC,CAAD,CAAUtD,CAAV,CAAmB,CA0MtCuD,QAASA,EAAO,CAACC,CAAD,CAAQ,CAClBA,CAAJ,EAAaC,CAAb,GACOC,CAAL,CAEWA,CAFX,EAEuBF,CAFvB,GAGEE,CAHF,CAGaF,CAAAG,EAHb,EACED,CADF,CACaF,CAQb,CAHAI,CAAA,CAAKJ,CAAAG,EAAL,CAAcH,CAAAK,EAAd,CAGA,CAFAD,CAAA,CAAKJ,CAAL,CAAYC,CAAZ,CAEA,CADAA,CACA,CADWD,CACX,CAAAC,CAAAE,EAAA,CAAa,IAVf,CADsB,CAmBxBC,QAASA,EAAI,CAACE,CAAD;AAAYC,CAAZ,CAAuB,CAC9BD,CAAJ,EAAiBC,CAAjB,GACMD,CACJ,GADeA,CAAAD,EACf,CAD6BE,CAC7B,EAAIA,CAAJ,GAAeA,CAAAJ,EAAf,CAA6BG,CAA7B,CAFF,CADkC,CA5NpC,GAAIR,CAAJ,GAAeU,EAAf,CACE,KAAM/uB,EAAA,CAAO,eAAP,CAAA,CAAwB,KAAxB,CAAkEquB,CAAlE,CAAN,CAFoC,IAKlCW,EAAO,CAL2B,CAMlCC,EAAQ/rB,CAAA,CAAO,EAAP,CAAW6nB,CAAX,CAAoB,CAACmE,GAAIb,CAAL,CAApB,CAN0B,CAOlCphB,EAAOvF,CAAA,EAP2B,CAQlCynB,EAAYpE,CAAZoE,EAAuBpE,CAAAoE,SAAvBA,EAA4CC,MAAAC,UARV,CASlCC,EAAU5nB,CAAA,EATwB,CAUlC8mB,EAAW,IAVuB,CAWlCC,EAAW,IAyCf,OAAOM,EAAA,CAAOV,CAAP,CAAP,CAAyB,CAoBvB7I,IAAKA,QAAQ,CAACzkB,CAAD,CAAMY,CAAN,CAAa,CACxB,GAAI,CAAAwC,CAAA,CAAYxC,CAAZ,CAAJ,CAAA,CACA,GAAIwtB,CAAJ,CAAeC,MAAAC,UAAf,CAAiC,CAC/B,IAAIE,EAAWD,CAAA,CAAQvuB,CAAR,CAAXwuB,GAA4BD,CAAA,CAAQvuB,CAAR,CAA5BwuB,CAA2C,CAACxuB,IAAKA,CAAN,CAA3CwuB,CAEJjB,EAAA,CAAQiB,CAAR,CAH+B,CAM3BxuB,CAAN,GAAakM,EAAb,EAAoB+hB,CAAA,EACpB/hB,EAAA,CAAKlM,CAAL,CAAA,CAAYY,CAERqtB,EAAJ,CAAWG,CAAX,EACE,IAAAK,OAAA,CAAYf,CAAA1tB,IAAZ,CAGF,OAAOY,EAdP,CADwB,CApBH,CAiDvBmM,IAAKA,QAAQ,CAAC/M,CAAD,CAAM,CACjB,GAAIouB,CAAJ,CAAeC,MAAAC,UAAf,CAAiC,CAC/B,IAAIE,EAAWD,CAAA,CAAQvuB,CAAR,CAEf,IAAKwuB,CAAAA,CAAL,CAAe,MAEfjB,EAAA,CAAQiB,CAAR,CAL+B,CAQjC,MAAOtiB,EAAA,CAAKlM,CAAL,CATU,CAjDI,CAwEvByuB,OAAQA,QAAQ,CAACzuB,CAAD,CAAM,CACpB,GAAIouB,CAAJ,CAAeC,MAAAC,UAAf,CAAiC,CAC/B,IAAIE,EAAWD,CAAA,CAAQvuB,CAAR,CAEf,IAAKwuB,CAAAA,CAAL,CAAe,MAEXA,EAAJ,EAAgBf,CAAhB,GAA0BA,CAA1B,CAAqCe,CAAAX,EAArC,CACIW,EAAJ,EAAgBd,CAAhB,GAA0BA,CAA1B,CAAqCc,CAAAb,EAArC,CACAC,EAAA,CAAKY,CAAAb,EAAL,CAAgBa,CAAAX,EAAhB,CAEA,QAAOU,CAAA,CAAQvuB,CAAR,CATwB,CAY3BA,CAAN;AAAakM,CAAb,GAEA,OAAOA,CAAA,CAAKlM,CAAL,CACP,CAAAiuB,CAAA,EAHA,CAboB,CAxEC,CAoGvBS,UAAWA,QAAQ,EAAG,CACpBxiB,CAAA,CAAOvF,CAAA,EACPsnB,EAAA,CAAO,CACPM,EAAA,CAAU5nB,CAAA,EACV8mB,EAAA,CAAWC,CAAX,CAAsB,IAJF,CApGC,CAqHvBiB,QAASA,QAAQ,EAAG,CAGlBJ,CAAA,CADAL,CACA,CAFAhiB,CAEA,CAFO,IAGP,QAAO8hB,CAAA,CAAOV,CAAP,CAJW,CArHG,CA6IvBsB,KAAMA,QAAQ,EAAG,CACf,MAAOzsB,EAAA,CAAO,EAAP,CAAW+rB,CAAX,CAAkB,CAACD,KAAMA,CAAP,CAAlB,CADQ,CA7IM,CApDa,CAFxC,IAAID,EAAS,EAiPbX,EAAAuB,KAAA,CAAoBC,QAAQ,EAAG,CAC7B,IAAID,EAAO,EACX/uB,EAAA,CAAQmuB,CAAR,CAAgB,QAAQ,CAACzH,CAAD,CAAQ+G,CAAR,CAAiB,CACvCsB,CAAA,CAAKtB,CAAL,CAAA,CAAgB/G,CAAAqI,KAAA,EADuB,CAAzC,CAGA,OAAOA,EALsB,CAmB/BvB,EAAAtgB,IAAA,CAAmB+hB,QAAQ,CAACxB,CAAD,CAAU,CACnC,MAAOU,EAAA,CAAOV,CAAP,CAD4B,CAKrC,OAAOD,EA1Qc,CAFQ,CA2TjC9R,QAASA,GAAsB,EAAG,CAChC,IAAAsI,KAAA,CAAY,CAAC,eAAD,CAAkB,QAAQ,CAACnL,CAAD,CAAgB,CACpD,MAAOA,EAAA,CAAc,WAAd,CAD6C,CAA1C,CADoB,CA60BlCvG,QAASA,GAAgB,CAAC1G,CAAD,CAAWsjB,CAAX,CAAkC,CAazDC,QAASA,EAAoB,CAACjjB,CAAD,CAAQkjB,CAAR,CAAuBC,CAAvB,CAAqC,CAChE,IAAIC,EAAe,qCAAnB,CAEIC,EAAW,EAEfvvB,EAAA,CAAQkM,CAAR,CAAe,QAAQ,CAACsjB,CAAD,CAAaC,CAAb,CAAwB,CAC7C,IAAItpB,EAAQqpB,CAAArpB,MAAA,CAAiBmpB,CAAjB,CAEZ,IAAKnpB,CAAAA,CAAL,CACE,KAAMupB,GAAA,CAAe,MAAf,CAGFN,CAHE,CAGaK,CAHb,CAGwBD,CAHxB,CAIDH,CAAA;AAAe,gCAAf,CACD,0BALE,CAAN,CAQFE,CAAA,CAASE,CAAT,CAAA,CAAsB,CACpBE,KAAMxpB,CAAA,CAAM,CAAN,CAAA,CAAS,CAAT,CADc,CAEpBypB,WAAyB,GAAzBA,GAAYzpB,CAAA,CAAM,CAAN,CAFQ,CAGpB0pB,SAAuB,GAAvBA,GAAU1pB,CAAA,CAAM,CAAN,CAHU,CAIpB2pB,SAAU3pB,CAAA,CAAM,CAAN,CAAV2pB,EAAsBL,CAJF,CAZuB,CAA/C,CAoBA,OAAOF,EAzByD,CAiElEQ,QAASA,EAAwB,CAAC9kB,CAAD,CAAO,CACtC,IAAIqC,EAASrC,CAAA3E,OAAA,CAAY,CAAZ,CACb,IAAKgH,CAAAA,CAAL,EAAeA,CAAf,GAA0B5I,CAAA,CAAU4I,CAAV,CAA1B,CACE,KAAMoiB,GAAA,CAAe,QAAf,CAA4GzkB,CAA5G,CAAN,CAEF,GAAIA,CAAJ,GAAaA,CAAA2T,KAAA,EAAb,CACE,KAAM8Q,GAAA,CAAe,QAAf,CAEAzkB,CAFA,CAAN,CANoC,CA9EiB,IACrD+kB,EAAgB,EADqC,CAGrDC,EAA2B,qCAH0B,CAIrDC,EAAyB,6BAJ4B,CAKrDC,EAAuB9rB,EAAA,CAAQ,2BAAR,CAL8B,CAMrD+rB,EAAwB,6BAN6B,CAWrDC,EAA4B,yBA8F/B,KAAA5e,UAAA,CAAiB6e,QAASC,EAAiB,CAACtlB,CAAD,CAAOulB,CAAP,CAAyB,CACnEthB,EAAA,CAAwBjE,CAAxB,CAA8B,WAA9B,CACIxL,EAAA,CAASwL,CAAT,CAAJ,EACE8kB,CAAA,CAAyB9kB,CAAzB,CAkCA,CAjCA4D,EAAA,CAAU2hB,CAAV,CAA4B,kBAA5B,CAiCA;AAhCKR,CAAA3vB,eAAA,CAA6B4K,CAA7B,CAgCL,GA/BE+kB,CAAA,CAAc/kB,CAAd,CACA,CADsB,EACtB,CAAAW,CAAAmE,QAAA,CAAiB9E,CAAjB,CA9GOwlB,WA8GP,CAAgC,CAAC,WAAD,CAAc,mBAAd,CAC9B,QAAQ,CAAC7I,CAAD,CAAYzO,CAAZ,CAA+B,CACrC,IAAIuX,EAAa,EACjB1wB,EAAA,CAAQgwB,CAAA,CAAc/kB,CAAd,CAAR,CAA6B,QAAQ,CAACulB,CAAD,CAAmB3rB,CAAnB,CAA0B,CAC7D,GAAI,CACF,IAAI4M,EAAYmW,CAAA5b,OAAA,CAAiBwkB,CAAjB,CACZpwB,EAAA,CAAWqR,CAAX,CAAJ,CACEA,CADF,CACc,CAAEtF,QAAS/I,EAAA,CAAQqO,CAAR,CAAX,CADd,CAEYtF,CAAAsF,CAAAtF,QAFZ,EAEiCsF,CAAAsc,KAFjC,GAGEtc,CAAAtF,QAHF,CAGsB/I,EAAA,CAAQqO,CAAAsc,KAAR,CAHtB,CAKAtc,EAAAkf,SAAA,CAAqBlf,CAAAkf,SAArB,EAA2C,CAC3Clf,EAAA5M,MAAA,CAAkBA,CAClB4M,EAAAxG,KAAA,CAAiBwG,CAAAxG,KAAjB,EAAmCA,CACnCwG,EAAAmf,QAAA,CAAoBnf,CAAAmf,QAApB,EAA0Cnf,CAAAvD,WAA1C,EAAkEuD,CAAAxG,KAClEwG,EAAAof,SAAA,CAAqBpf,CAAAof,SAArB,EAA2C,IAC5Bpf,KAAAA,EAAAA,CAAAA,CACYA,EAAAA,CADZA,CACuBxG,EAAAwG,CAAAxG,KADvBwG,CAtFvB8d,EAAW,CACbthB,aAAc,IADD,CAEb6iB,iBAAkB,IAFL,CAIXrvB,EAAA,CAASgQ,CAAAvF,MAAT,CAAJ,GACqC,CAAA,CAAnC,GAAIuF,CAAAqf,iBAAJ,EACEvB,CAAAuB,iBAEA,CAF4B3B,CAAA,CAAqB1d,CAAAvF,MAArB,CACqBkjB,CADrB,CACoC,CAAA,CADpC,CAE5B,CAAAG,CAAAthB,aAAA,CAAwB,EAH1B,EAKEshB,CAAAthB,aALF;AAK0BkhB,CAAA,CAAqB1d,CAAAvF,MAArB,CACqBkjB,CADrB,CACoC,CAAA,CADpC,CAN5B,CAUI3tB,EAAA,CAASgQ,CAAAqf,iBAAT,CAAJ,GACEvB,CAAAuB,iBADF,CAEM3B,CAAA,CAAqB1d,CAAAqf,iBAArB,CAAiD1B,CAAjD,CAAgE,CAAA,CAAhE,CAFN,CAIA,IAAI3tB,CAAA,CAAS8tB,CAAAuB,iBAAT,CAAJ,CAAyC,CACvC,IAAI5iB,EAAauD,CAAAvD,WAAjB,CACI6iB,EAAetf,CAAAsf,aACnB,IAAK7iB,CAAAA,CAAL,CAEE,KAAMwhB,GAAA,CAAe,QAAf,CAEAN,CAFA,CAAN,CAGK,GAAK,CAAA4B,EAAA,CAAwB9iB,CAAxB,CAAoC6iB,CAApC,CAAL,CAEL,KAAMrB,GAAA,CAAe,SAAf,CAEAN,CAFA,CAAN,CAVqC,CAoE7B,IAAIG,GAAW9d,CAAAwf,WAAX1B,CArDTA,CAuDS9tB,EAAA,CAAS8tB,EAAAthB,aAAT,CAAJ,GACEwD,CAAAyf,kBADF,CACgC3B,EAAAthB,aADhC,CAGAwD,EAAAX,aAAA,CAAyB0f,CAAA1f,aACzB4f,EAAAtrB,KAAA,CAAgBqM,CAAhB,CAlBE,CAmBF,MAAOtI,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CApBiD,CAA/D,CAwBA,OAAOunB,EA1B8B,CADT,CAAhC,CA8BF,EAAAV,CAAA,CAAc/kB,CAAd,CAAA7F,KAAA,CAAyBorB,CAAzB,CAnCF,EAqCExwB,CAAA,CAAQiL,CAAR,CAAcpK,EAAA,CAAc0vB,CAAd,CAAd,CAEF,OAAO,KAzC4D,CA6HrE,KAAA7e,UAAA,CAAiByf,QAA0B,CAAClmB,CAAD,CAAOkf,CAAP,CAAgB,CAGzDpa,QAASA,EAAO,CAAC6X,CAAD,CAAY,CAC1BwJ,QAASA,EAAc,CAAChqB,CAAD,CAAK,CAC1B,MAAIhH,EAAA,CAAWgH,CAAX,CAAJ,EAAsB5H,CAAA,CAAQ4H,CAAR,CAAtB,CACS,QAAQ,CAACiqB,CAAD,CAAWC,CAAX,CAAmB,CAChC,MAAO1J,EAAA5b,OAAA,CAAiB5E,CAAjB;AAAqB,IAArB,CAA2B,CAACmqB,SAAUF,CAAX,CAAqBG,OAAQF,CAA7B,CAA3B,CADyB,CADpC,CAKSlqB,CANiB,CAU5B,IAAIqqB,EAAatH,CAAAsH,SAAD,EAAsBtH,CAAAuH,YAAtB,CAAiDvH,CAAAsH,SAAjD,CAA4C,EAC5D,OAAO,CACLvjB,WAAYA,CADP,CAEL6iB,aAAcC,EAAA,CAAwB7G,CAAAjc,WAAxB,CAAd6iB,EAA6D5G,CAAA4G,aAA7DA,EAAqF,OAFhF,CAGLU,SAAUL,CAAA,CAAeK,CAAf,CAHL,CAILC,YAAaN,CAAA,CAAejH,CAAAuH,YAAf,CAJR,CAKLC,WAAYxH,CAAAwH,WALP,CAMLzlB,MAAO,EANF,CAOL4kB,iBAAkB3G,CAAAoF,SAAlBuB,EAAsC,EAPjC,CAQLD,SAAU,GARL,CASLD,QAASzG,CAAAyG,QATJ,CAZmB,CAF5B,IAAI1iB,EAAaic,CAAAjc,WAAbA,EAAmC,QAAQ,EAAG,EA6BlDlO,EAAA,CAAQmqB,CAAR,CAAiB,QAAQ,CAAC1iB,CAAD,CAAMtH,CAAN,CAAW,CACZ,GAAtB,GAAIA,CAAAmG,OAAA,CAAW,CAAX,CAAJ,GACEyJ,CAAA,CAAQ5P,CAAR,CADF,CACiBsH,CADjB,CADkC,CAApC,CAMAsI,EAAAoX,QAAA,CAAkB,CAAC,WAAD,CAElB,OAAO,KAAA1V,UAAA,CAAexG,CAAf,CAAqB8E,CAArB,CAtCkD,CA8D3D,KAAA6hB,2BAAA,CAAkCC,QAAQ,CAACC,CAAD,CAAS,CACjD,MAAItuB,EAAA,CAAUsuB,CAAV,CAAJ,EACE5C,CAAA0C,2BAAA,CAAiDE,CAAjD,CACO;AAAA,IAFT,EAIS5C,CAAA0C,2BAAA,EALwC,CA8BnD,KAAAG,4BAAA,CAAmCC,QAAQ,CAACF,CAAD,CAAS,CAClD,MAAItuB,EAAA,CAAUsuB,CAAV,CAAJ,EACE5C,CAAA6C,4BAAA,CAAkDD,CAAlD,CACO,CAAA,IAFT,EAIS5C,CAAA6C,4BAAA,EALyC,CA+BpD,KAAIlmB,EAAmB,CAAA,CACvB,KAAAA,iBAAA,CAAwBomB,QAAQ,CAACC,CAAD,CAAU,CACxC,MAAI1uB,EAAA,CAAU0uB,CAAV,CAAJ,EACErmB,CACO,CADYqmB,CACZ,CAAA,IAFT,EAIOrmB,CALiC,CAQ1C,KAAAmY,KAAA,CAAY,CACF,WADE,CACW,cADX,CAC2B,mBAD3B,CACgD,kBADhD,CACoE,QADpE,CAEF,aAFE,CAEa,YAFb,CAE2B,MAF3B,CAEmC,UAFnC,CAE+C,eAF/C,CAGV,QAAQ,CAAC4D,CAAD,CAAcnO,CAAd,CAA8BN,CAA9B,CAAmDwC,CAAnD,CAAuEhB,CAAvE,CACC5B,CADD,CACgB8B,CADhB,CAC8BM,EAD9B,CACsCpD,CADtC,CACkD3F,CADlD,CACiE,CAiPzE+f,QAASA,EAAc,CAAC1tB,CAAD,CAAUqrB,CAAV,CAAoB/uB,CAApB,CAA2B,CAIhDqxB,EAAApU,UAAA,CAA8B,QAA9B,CAAyC8R,CAAzC,CAAoD,GAChDuC,EAAAA,CAAaD,EAAAhU,WAAAiU,WACjB,KAAIC,EAAYD,CAAA,CAAW,CAAX,CAEhBA,EAAAE,gBAAA,CAA2BD,CAAArnB,KAA3B,CACAqnB;CAAAvxB,MAAA,CAAkBA,CAClB0D,EAAA4tB,WAAAG,aAAA,CAAgCF,CAAhC,CAVgD,CAalDG,QAASA,EAAY,CAAClB,CAAD,CAAWmB,CAAX,CAAsB,CACzC,GAAI,CACFnB,CAAAnN,SAAA,CAAkBsO,CAAlB,CADE,CAEF,MAAOvpB,CAAP,CAAU,EAH6B,CAiD3CgD,QAASA,EAAO,CAACwmB,CAAD,CAAgBC,CAAhB,CAA8BC,CAA9B,CAA2CC,CAA3C,CACIC,CADJ,CAC4B,CACpCJ,CAAN,WAA+BjzB,EAA/B,GAGEizB,CAHF,CAGkBjzB,CAAA,CAAOizB,CAAP,CAHlB,CAUA,KAJA,IAAIK,EAAY,KAAhB,CAISpyB,EAAI,CAJb,CAIgB2O,EAAMojB,CAAAhzB,OAAtB,CAA4CiB,CAA5C,CAAgD2O,CAAhD,CAAqD3O,CAAA,EAArD,CAA0D,CACxD,IAAIqyB,EAAUN,CAAA,CAAc/xB,CAAd,CAEVqyB,EAAA1pB,SAAJ,GAAyBC,EAAzB,EAA2CypB,CAAAC,UAAA/sB,MAAA,CAAwB6sB,CAAxB,CAA3C,EACEzU,EAAA,CAAe0U,CAAf,CAAwBN,CAAA,CAAc/xB,CAAd,CAAxB,CAA2C1B,CAAAwe,cAAA,CAAuB,MAAvB,CAA3C,CAJsD,CAQ1D,IAAIyV,EACIC,CAAA,CAAaT,CAAb,CAA4BC,CAA5B,CAA0CD,CAA1C,CACaE,CADb,CAC0BC,CAD1B,CAC2CC,CAD3C,CAER5mB,EAAAknB,gBAAA,CAAwBV,CAAxB,CACA,KAAIW,EAAY,IAChB,OAAOC,SAAqB,CAACrnB,CAAD,CAAQsnB,CAAR,CAAwBrJ,CAAxB,CAAiC,CAC3Dtb,EAAA,CAAU3C,CAAV,CAAiB,OAAjB,CAEI6mB,EAAJ,EAA8BA,CAAAU,cAA9B,GAKEvnB,CALF,CAKUA,CAAAwnB,QAAAC,KAAA,EALV,CAQAxJ,EAAA,CAAUA,CAAV,EAAqB,EAXsC,KAYvDyJ,EAA0BzJ,CAAAyJ,wBAZ6B,CAazDC,EAAwB1J,CAAA0J,sBACxBC,EAAAA,CAAsB3J,CAAA2J,oBAMpBF,EAAJ,EAA+BA,CAAAG,kBAA/B;CACEH,CADF,CAC4BA,CAAAG,kBAD5B,CAIKT,EAAL,GAyCA,CAzCA,CAsCF,CADIrvB,CACJ,CArCgD6vB,CAqChD,EArCgDA,CAoCpB,CAAc,CAAd,CAC5B,EAG6B,eAApB,GAAAtvB,EAAA,CAAUP,CAAV,CAAA,EAAuCX,EAAAhD,KAAA,CAAc2D,CAAd,CAAAkC,MAAA,CAA0B,KAA1B,CAAvC,CAA0E,KAA1E,CAAkF,MAH3F,CACS,MAvCP,CAUE6tB,EAAA,CANgB,MAAlB,GAAIV,CAAJ,CAMc5zB,CAAA,CACVu0B,CAAA,CAAaX,CAAb,CAAwB5zB,CAAA,CAAO,OAAP,CAAA2J,OAAA,CAAuBspB,CAAvB,CAAArpB,KAAA,EAAxB,CADU,CANd,CASWkqB,CAAJ,CAGOxlB,EAAA3L,MAAA/B,KAAA,CAA2BqyB,CAA3B,CAHP,CAKOA,CAGd,IAAIkB,CAAJ,CACE,IAASK,IAAAA,CAAT,GAA2BL,EAA3B,CACEG,CAAA3nB,KAAA,CAAe,GAAf,CAAqB6nB,CAArB,CAAsC,YAAtC,CAAoDL,CAAA,CAAsBK,CAAtB,CAAAC,SAApD,CAIJhoB,EAAAioB,eAAA,CAAuBJ,CAAvB,CAAkC9nB,CAAlC,CAEIsnB,EAAJ,EAAoBA,CAAA,CAAeQ,CAAf,CAA0B9nB,CAA1B,CAChBinB,EAAJ,EAAqBA,CAAA,CAAgBjnB,CAAhB,CAAuB8nB,CAAvB,CAAkCA,CAAlC,CAA6CJ,CAA7C,CACrB,OAAOI,EAvDoD,CAxBnB,CA4G5CZ,QAASA,EAAY,CAACiB,CAAD,CAAWzB,CAAX,CAAyB0B,CAAzB,CAAuCzB,CAAvC,CAAoDC,CAApD,CACGC,CADH,CAC2B,CA0C9CI,QAASA,EAAe,CAACjnB,CAAD,CAAQmoB,CAAR,CAAkBC,CAAlB,CAAgCV,CAAhC,CAAyD,CAAA,IAC/DW,CAD+D,CAClDtwB,CADkD,CAC5CuwB,CAD4C,CAChC5zB,CADgC,CAC7BY,CAD6B,CACpBizB,CADoB,CAE3EC,CAGJ,IAAIC,CAAJ,CAOE,IAHAD,CAGK,CAHgB50B,KAAJ,CADIu0B,CAAA10B,OACJ,CAGZ,CAAAiB,CAAA,CAAI,CAAT,CAAYA,CAAZ,CAAgBg0B,CAAAj1B,OAAhB,CAAgCiB,CAAhC,EAAmC,CAAnC,CACEi0B,CACA,CADMD,CAAA,CAAQh0B,CAAR,CACN,CAAA8zB,CAAA,CAAeG,CAAf,CAAA,CAAsBR,CAAA,CAASQ,CAAT,CAT1B,KAYEH,EAAA,CAAiBL,CAGdzzB,EAAA,CAAI,CAAT,KAAYY,CAAZ,CAAiBozB,CAAAj1B,OAAjB,CAAiCiB,CAAjC,CAAqCY,CAArC,CAAA,CACEyC,CAIA,CAJOywB,CAAA,CAAeE,CAAA,CAAQh0B,CAAA,EAAR,CAAf,CAIP,CAHAk0B,CAGA,CAHaF,CAAA,CAAQh0B,CAAA,EAAR,CAGb,CAFA2zB,CAEA,CAFcK,CAAA,CAAQh0B,CAAA,EAAR,CAEd,CAAIk0B,CAAJ,EACMA,CAAA5oB,MAAJ,EACEsoB,CACA;AADatoB,CAAAynB,KAAA,EACb,CAAAxnB,CAAAioB,eAAA,CAAuB10B,CAAA,CAAOuE,CAAP,CAAvB,CAAqCuwB,CAArC,CAFF,EAIEA,CAJF,CAIetoB,CAiBf,CAbEuoB,CAaF,CAdIK,CAAAC,wBAAJ,CAC2BC,CAAA,CACrB9oB,CADqB,CACd4oB,CAAAnD,WADc,CACSiC,CADT,CAD3B,CAIYqB,CAAAH,CAAAG,sBAAL,EAAyCrB,CAAzC,CACoBA,CADpB,CAGKA,CAAAA,CAAL,EAAgChB,CAAhC,CACoBoC,CAAA,CAAwB9oB,CAAxB,CAA+B0mB,CAA/B,CADpB,CAIoB,IAG3B,CAAAkC,CAAA,CAAWP,CAAX,CAAwBC,CAAxB,CAAoCvwB,CAApC,CAA0CqwB,CAA1C,CAAwDG,CAAxD,CAtBF,EAwBWF,CAxBX,EAyBEA,CAAA,CAAYroB,CAAZ,CAAmBjI,CAAAka,WAAnB,CAAoChf,CAApC,CAA+Cy0B,CAA/C,CAlD2E,CAtCjF,IAJ8C,IAC1CgB,EAAU,EADgC,CAE1CM,CAF0C,CAEnCxE,CAFmC,CAEXvS,CAFW,CAEcgX,CAFd,CAE2BR,CAF3B,CAIrC/zB,EAAI,CAAb,CAAgBA,CAAhB,CAAoByzB,CAAA10B,OAApB,CAAqCiB,CAAA,EAArC,CAA0C,CACxCs0B,CAAA,CAAQ,IAAIE,EAGZ1E,EAAA,CAAa2E,EAAA,CAAkBhB,CAAA,CAASzzB,CAAT,CAAlB,CAA+B,EAA/B,CAAmCs0B,CAAnC,CAAgD,CAAN,GAAAt0B,CAAA,CAAUiyB,CAAV,CAAwB1zB,CAAlE,CACmB2zB,CADnB,CAQb,EALAgC,CAKA,CALcpE,CAAA/wB,OAAD,CACP21B,CAAA,CAAsB5E,CAAtB,CAAkC2D,CAAA,CAASzzB,CAAT,CAAlC,CAA+Cs0B,CAA/C,CAAsDtC,CAAtD,CAAoE0B,CAApE,CACwB,IADxB,CAC8B,EAD9B,CACkC,EADlC,CACsCvB,CADtC,CADO,CAGP,IAEN,GAAkB+B,CAAA5oB,MAAlB,EACEC,CAAAknB,gBAAA,CAAwB6B,CAAAK,UAAxB,CAGFhB,EAAA,CAAeO,CAAD,EAAeA,CAAAU,SAAf,EACE,EAAArX,CAAA,CAAakW,CAAA,CAASzzB,CAAT,CAAAud,WAAb,CADF,EAECxe,CAAAwe,CAAAxe,OAFD,CAGR,IAHQ,CAIRyzB,CAAA,CAAajV,CAAb,CACG2W,CAAA,EACEA,CAAAC,wBADF,EACwC,CAACD,CAAAG,sBADzC,GAEOH,CAAAnD,WAFP,CAEgCiB,CAHnC,CAKN,IAAIkC,CAAJ,EAAkBP,CAAlB,CACEK,CAAAxvB,KAAA,CAAaxE,CAAb,CAAgBk0B,CAAhB,CAA4BP,CAA5B,CAEA,CADAY,CACA,CADc,CAAA,CACd,CAAAR,CAAA;AAAkBA,CAAlB,EAAqCG,CAIvC/B,EAAA,CAAyB,IAhCe,CAoC1C,MAAOoC,EAAA,CAAchC,CAAd,CAAgC,IAxCO,CAkGhD6B,QAASA,EAAuB,CAAC9oB,CAAD,CAAQ0mB,CAAR,CAAsB6C,CAAtB,CAAiD,CAE/E,IAAIC,EAAoBA,QAAQ,CAACC,CAAD,CAAmBC,CAAnB,CAA4BC,CAA5B,CAAyC/B,CAAzC,CAA8DgC,CAA9D,CAA+E,CAExGH,CAAL,GACEA,CACA,CADmBzpB,CAAAynB,KAAA,CAAW,CAAA,CAAX,CAAkBmC,CAAlB,CACnB,CAAAH,CAAAI,cAAA,CAAiC,CAAA,CAFnC,CAKA,OAAOnD,EAAA,CAAa+C,CAAb,CAA+BC,CAA/B,CAAwC,CAC7ChC,wBAAyB6B,CADoB,CAE7C5B,sBAAuBgC,CAFsB,CAG7C/B,oBAAqBA,CAHwB,CAAxC,CAPsG,CAA/G,CAgBIkC,EAAaN,CAAAO,QAAbD,CAAyClvB,CAAA,EAhB7C,CAiBSovB,CAAT,KAASA,CAAT,GAAqBtD,EAAAqD,QAArB,CAEID,CAAA,CAAWE,CAAX,CAAA,CADEtD,CAAAqD,QAAA,CAAqBC,CAArB,CAAJ,CACyBlB,CAAA,CAAwB9oB,CAAxB,CAA+B0mB,CAAAqD,QAAA,CAAqBC,CAArB,CAA/B,CAA+DT,CAA/D,CADzB,CAGyB,IAI3B,OAAOC,EA3BwE,CAwCjFL,QAASA,GAAiB,CAACpxB,CAAD,CAAOysB,CAAP,CAAmBwE,CAAnB,CAA0BrC,CAA1B,CAAuCC,CAAvC,CAAwD,CAAA,IAE5EqD,EAAWjB,CAAAkB,MAFiE,CAG5EjwB,CAGJ,QALelC,CAAAsF,SAKf,EACE,KA7tMgB2T,CA6tMhB,CAEEmZ,CAAA,CAAa3F,CAAb,CACI4F,EAAA,CAAmB9xB,EAAA,CAAUP,CAAV,CAAnB,CADJ,CACyC,GADzC,CAC8C4uB,CAD9C,CAC2DC,CAD3D,CAIA,KANF,IAMW3uB,CANX,CAM0CpD,CAN1C,CAMiDw1B,CANjD,CAM2DC,EAASvyB,CAAAouB,WANpE,CAOW3wB,EAAI,CAPf,CAOkBC,EAAK60B,CAAL70B,EAAe60B,CAAA72B,OAD/B,CAC8C+B,CAD9C,CACkDC,CADlD,CACsDD,CAAA,EADtD,CAC2D,CACzD,IAAI+0B,EAAgB,CAAA,CAApB,CACIC,EAAc,CAAA,CAElBvyB,EAAA,CAAOqyB,CAAA,CAAO90B,CAAP,CACPuJ,EAAA,CAAO9G,CAAA8G,KACPlK,EAAA,CAAQ6d,CAAA,CAAKza,CAAApD,MAAL,CAGR41B,EAAA,CAAaL,EAAA,CAAmBrrB,CAAnB,CACb,IAAIsrB,CAAJ,CAAeK,EAAA5yB,KAAA,CAAqB2yB,CAArB,CAAf,CACE1rB,CAAA;AAAOA,CAAA7C,QAAA,CAAayuB,EAAb,CAA4B,EAA5B,CAAAvK,OAAA,CACG,CADH,CAAAlkB,QAAA,CACc,OADd,CACuB,QAAQ,CAACjC,CAAD,CAAQmH,CAAR,CAAgB,CAClD,MAAOA,EAAAyP,YAAA,EAD2C,CAD/C,CAOT,EADI+Z,CACJ,CADwBH,CAAAxwB,MAAA,CAAiB4wB,EAAjB,CACxB,GAAyBC,CAAA,CAAwBF,CAAA,CAAkB,CAAlB,CAAxB,CAAzB,GACEL,CAEA,CAFgBxrB,CAEhB,CADAyrB,CACA,CADczrB,CAAAqhB,OAAA,CAAY,CAAZ,CAAerhB,CAAAtL,OAAf,CAA6B,CAA7B,CACd,CADgD,KAChD,CAAAsL,CAAA,CAAOA,CAAAqhB,OAAA,CAAY,CAAZ,CAAerhB,CAAAtL,OAAf,CAA6B,CAA7B,CAHT,CAMAs3B,EAAA,CAAQX,EAAA,CAAmBrrB,CAAAuC,YAAA,EAAnB,CACR2oB,EAAA,CAASc,CAAT,CAAA,CAAkBhsB,CAClB,IAAIsrB,CAAJ,EAAiB,CAAArB,CAAA70B,eAAA,CAAqB42B,CAArB,CAAjB,CACI/B,CAAA,CAAM+B,CAAN,CACA,CADel2B,CACf,CAAIqhB,EAAA,CAAmBne,CAAnB,CAAyBgzB,CAAzB,CAAJ,GACE/B,CAAA,CAAM+B,CAAN,CADF,CACiB,CAAA,CADjB,CAIJC,EAAA,CAA4BjzB,CAA5B,CAAkCysB,CAAlC,CAA8C3vB,CAA9C,CAAqDk2B,CAArD,CAA4DV,CAA5D,CACAF,EAAA,CAAa3F,CAAb,CAAyBuG,CAAzB,CAAgC,GAAhC,CAAqCpE,CAArC,CAAkDC,CAAlD,CAAmE2D,CAAnE,CACcC,CADd,CAjCyD,CAsC3DhE,CAAA,CAAYzuB,CAAAyuB,UACRjxB,EAAA,CAASixB,CAAT,CAAJ,GAEIA,CAFJ,CAEgBA,CAAAyE,QAFhB,CAIA,IAAI13B,CAAA,CAASizB,CAAT,CAAJ,EAAyC,EAAzC,GAA2BA,CAA3B,CACE,IAAA,CAAOvsB,CAAP,CAAe+pB,CAAAtS,KAAA,CAA4B8U,CAA5B,CAAf,CAAA,CACEuE,CAIA,CAJQX,EAAA,CAAmBnwB,CAAA,CAAM,CAAN,CAAnB,CAIR,CAHIkwB,CAAA,CAAa3F,CAAb,CAAyBuG,CAAzB,CAAgC,GAAhC,CAAqCpE,CAArC,CAAkDC,CAAlD,CAGJ,GAFEoC,CAAA,CAAM+B,CAAN,CAEF,CAFiBrY,CAAA,CAAKzY,CAAA,CAAM,CAAN,CAAL,CAEjB,EAAAusB,CAAA,CAAYA,CAAApG,OAAA,CAAiBnmB,CAAAtB,MAAjB,CAA+BsB,CAAA,CAAM,CAAN,CAAAxG,OAA/B,CAGhB,MACF,MAAK6J,EAAL,CACE,GAAa,EAAb,GAAI6d,EAAJ,CAEE,IAAA,CAAOpjB,CAAAwa,WAAP,EAA0Bxa,CAAA2L,YAA1B,EAA8C3L,CAAA2L,YAAArG,SAA9C;AAA4EC,EAA5E,CAAA,CACEvF,CAAAivB,UACA,EADkCjvB,CAAA2L,YAAAsjB,UAClC,CAAAjvB,CAAAwa,WAAAmD,YAAA,CAA4B3d,CAAA2L,YAA5B,CAGJwnB,EAAA,CAA4B1G,CAA5B,CAAwCzsB,CAAAivB,UAAxC,CACA,MACF,MAhyMgBmE,CAgyMhB,CACE,GAAI,CAEF,GADAlxB,CACA,CADQ8pB,CAAArS,KAAA,CAA8B3Z,CAAAivB,UAA9B,CACR,CACE+D,CACA,CADQX,EAAA,CAAmBnwB,CAAA,CAAM,CAAN,CAAnB,CACR,CAAIkwB,CAAA,CAAa3F,CAAb,CAAyBuG,CAAzB,CAAgC,GAAhC,CAAqCpE,CAArC,CAAkDC,CAAlD,CAAJ,GACEoC,CAAA,CAAM+B,CAAN,CADF,CACiBrY,CAAA,CAAKzY,CAAA,CAAM,CAAN,CAAL,CADjB,CAJA,CAQF,MAAOgD,CAAP,CAAU,EAhFhB,CAwFAunB,CAAA/vB,KAAA,CAAgB22B,EAAhB,CACA,OAAO5G,EA/FyE,CA0GlF6G,QAASA,EAAS,CAACtzB,CAAD,CAAOuzB,CAAP,CAAkBC,CAAlB,CAA2B,CAC3C,IAAIhoB,EAAQ,EAAZ,CACIioB,EAAQ,CACZ,IAAIF,CAAJ,EAAiBvzB,CAAAiH,aAAjB,EAAsCjH,CAAAiH,aAAA,CAAkBssB,CAAlB,CAAtC,EACE,EAAG,CACD,GAAKvzB,CAAAA,CAAL,CACE,KAAMyrB,GAAA,CAAe,SAAf,CAEI8H,CAFJ,CAEeC,CAFf,CAAN,CAt0MYva,CA00Md,EAAIjZ,CAAAsF,SAAJ,GACMtF,CAAAiH,aAAA,CAAkBssB,CAAlB,CACJ,EADkCE,CAAA,EAClC,CAAIzzB,CAAAiH,aAAA,CAAkBusB,CAAlB,CAAJ,EAAgCC,CAAA,EAFlC,CAIAjoB,EAAArK,KAAA,CAAWnB,CAAX,CACAA,EAAA,CAAOA,CAAA2L,YAXN,CAAH,MAYiB,CAZjB,CAYS8nB,CAZT,CADF,KAeEjoB,EAAArK,KAAA,CAAWnB,CAAX,CAGF,OAAOvE,EAAA,CAAO+P,CAAP,CArBoC,CAgC7CkoB,QAASA,GAA0B,CAACC,CAAD,CAASJ,CAAT,CAAoBC,CAApB,CAA6B,CAC9D,MAAO,SAAQ,CAACvrB,CAAD,CAAQzH,CAAR,CAAiBywB,CAAjB,CAAwBW,CAAxB,CAAqCjD,CAArC,CAAmD,CAChEnuB,CAAA,CAAU8yB,CAAA,CAAU9yB,CAAA,CAAQ,CAAR,CAAV,CAAsB+yB,CAAtB;AAAiCC,CAAjC,CACV,OAAOG,EAAA,CAAO1rB,CAAP,CAAczH,CAAd,CAAuBywB,CAAvB,CAA8BW,CAA9B,CAA2CjD,CAA3C,CAFyD,CADJ,CAkBhEiF,QAASA,GAAoB,CAACC,CAAD,CAAQnF,CAAR,CAAuBC,CAAvB,CAAqCC,CAArC,CAAkDC,CAAlD,CAAmEC,CAAnE,CAA2F,CACpH,GAAI+E,CAAJ,CACI,MAAO3rB,EAAA,CAAQwmB,CAAR,CAAuBC,CAAvB,CAAqCC,CAArC,CAAkDC,CAAlD,CAAmEC,CAAnE,CAGX,KAAIgF,CAEJ,OAAO,SAAQ,EAAG,CACTA,CAAL,GACIA,CAIA,CAJW5rB,CAAA,CAAQwmB,CAAR,CAAuBC,CAAvB,CAAqCC,CAArC,CAAkDC,CAAlD,CAAmEC,CAAnE,CAIX,CAAAJ,CAAA,CAAgBC,CAAhB,CAA+BG,CAA/B,CAAwD,IAL5D,CAQA,OAAOgF,EAAAxwB,MAAA,CAAe,IAAf,CAAqB/E,SAArB,CATO,CAPkG,CA2CxH8yB,QAASA,EAAqB,CAAC5E,CAAD,CAAasH,CAAb,CAA0BC,CAA1B,CAAyCrF,CAAzC,CACCsF,CADD,CACeC,CADf,CACyCC,CADzC,CACqDC,CADrD,CAECtF,CAFD,CAEyB,CAsSrDuF,QAASA,EAAU,CAACC,CAAD,CAAMC,CAAN,CAAYhB,CAAZ,CAAuBC,CAAvB,CAAgC,CACjD,GAAIc,CAAJ,CAAS,CACHf,CAAJ,GAAee,CAAf,CAAqBZ,EAAA,CAA2BY,CAA3B,CAAgCf,CAAhC,CAA2CC,CAA3C,CAArB,CACAc,EAAA3H,QAAA,CAAcnf,CAAAmf,QACd2H,EAAAnJ,cAAA,CAAoBA,CACpB,IAAIqJ,CAAJ,GAAiChnB,CAAjC,EAA8CA,CAAAinB,eAA9C,CACEH,CAAA,CAAMI,EAAA,CAAmBJ,CAAnB,CAAwB,CAACtqB,aAAc,CAAA,CAAf,CAAxB,CAERmqB,EAAAhzB,KAAA,CAAgBmzB,CAAhB,CAPO,CAST,GAAIC,CAAJ,CAAU,CACJhB,CAAJ,GAAegB,CAAf,CAAsBb,EAAA,CAA2Ba,CAA3B,CAAiChB,CAAjC,CAA4CC,CAA5C,CAAtB,CACAe,EAAA5H,QAAA,CAAenf,CAAAmf,QACf4H,EAAApJ,cAAA,CAAqBA,CACrB,IAAIqJ,CAAJ,GAAiChnB,CAAjC,EAA8CA,CAAAinB,eAA9C,CACEF,CAAA,CAAOG,EAAA,CAAmBH,CAAnB,CAAyB,CAACvqB,aAAc,CAAA,CAAf,CAAzB,CAEToqB,EAAAjzB,KAAA,CAAiBozB,CAAjB,CAPQ,CAVuC,CAsBnDI,QAASA,EAAc,CAACxJ,CAAD,CAAgBwB,CAAhB,CAAyBW,CAAzB,CAAmCsH,CAAnC,CAAuD,CAC5E,IAAI93B,CAEJ,IAAItB,CAAA,CAASmxB,CAAT,CAAJ,CAAuB,CACrB,IAAIzqB;AAAQyqB,CAAAzqB,MAAA,CAAciqB,CAAd,CACRnlB,EAAAA,CAAO2lB,CAAA9mB,UAAA,CAAkB3D,CAAA,CAAM,CAAN,CAAAxG,OAAlB,CACX,KAAIm5B,EAAc3yB,CAAA,CAAM,CAAN,CAAd2yB,EAA0B3yB,CAAA,CAAM,CAAN,CAA9B,CACI0pB,EAAwB,GAAxBA,GAAW1pB,CAAA,CAAM,CAAN,CAGK,KAApB,GAAI2yB,CAAJ,CACEvH,CADF,CACaA,CAAAzuB,OAAA,EADb,CAME/B,CANF,EAKEA,CALF,CAKU83B,CALV,EAKgCA,CAAA,CAAmB5tB,CAAnB,CALhC,GAMmBlK,CAAAozB,SAGnB,IAAKpzB,CAAAA,CAAL,CAAY,CACV,IAAIg4B,EAAW,GAAXA,CAAiB9tB,CAAjB8tB,CAAwB,YAC5Bh4B,EAAA,CAAQ+3B,CAAA,CAAcvH,CAAApjB,cAAA,CAAuB4qB,CAAvB,CAAd,CAAiDxH,CAAAllB,KAAA,CAAc0sB,CAAd,CAF/C,CAKZ,GAAKh4B,CAAAA,CAAL,EAAe8uB,CAAAA,CAAf,CACE,KAAMH,GAAA,CAAe,OAAf,CAEFzkB,CAFE,CAEImkB,CAFJ,CAAN,CAtBmB,CAAvB,IA0BO,IAAI5vB,CAAA,CAAQoxB,CAAR,CAAJ,CAEL,IADA7vB,CACgBS,CADR,EACQA,CAAPZ,CAAOY,CAAH,CAAGA,CAAAA,CAAAA,CAAKovB,CAAAjxB,OAArB,CAAqCiB,CAArC,CAAyCY,CAAzC,CAA6CZ,CAAA,EAA7C,CACEG,CAAA,CAAMH,CAAN,CAAA,CAAWg4B,CAAA,CAAexJ,CAAf,CAA8BwB,CAAA,CAAQhwB,CAAR,CAA9B,CAA0C2wB,CAA1C,CAAoDsH,CAApD,CAHR,KAKIp3B,EAAA,CAASmvB,CAAT,CAAJ,GACL7vB,CACA,CADQ,EACR,CAAAf,CAAA,CAAQ4wB,CAAR,CAAiB,QAAQ,CAAC1iB,CAAD,CAAa8qB,CAAb,CAAuB,CAC9Cj4B,CAAA,CAAMi4B,CAAN,CAAA,CAAkBJ,CAAA,CAAexJ,CAAf,CAA8BlhB,CAA9B,CAA0CqjB,CAA1C,CAAoDsH,CAApD,CAD4B,CAAhD,CAFK,CAOP,OAAO93B,EAAP,EAAgB,IAzC4D,CA4C9Ek4B,QAASA,EAAgB,CAAC1H,CAAD,CAAW2D,CAAX,CAAkBtC,CAAlB,CAAgCsG,CAAhC,CAAsDjrB,CAAtD,CAAoE/B,CAApE,CAA2E,CAClG,IAAI2sB,EAAqB/xB,CAAA,EAAzB,CACSqyB,CAAT,KAASA,CAAT,GAA0BD,EAA1B,CAAgD,CAC9C,IAAIznB,EAAYynB,CAAA,CAAqBC,CAArB,CAAhB,CACIjS,EAAS,CACXkS,OAAQ3nB,CAAA,GAAcgnB,CAAd,EAA0ChnB,CAAAinB,eAA1C,CAAqEzqB,CAArE,CAAoF/B,CADjF,CAEXqlB,SAAUA,CAFC,CAGXC,OAAQ0D,CAHG,CAIXmE,YAAazG,CAJF,CADb,CAQI1kB,EAAauD,CAAAvD,WACC,IAAlB,EAAIA,CAAJ;CACEA,CADF,CACegnB,CAAA,CAAMzjB,CAAAxG,KAAN,CADf,CAIIquB,EAAAA,CAAqBvgB,CAAA,CAAY7K,CAAZ,CAAwBgZ,CAAxB,CAAgC,CAAA,CAAhC,CAAsCzV,CAAAsf,aAAtC,CAOzB8H,EAAA,CAAmBpnB,CAAAxG,KAAnB,CAAA,CAAqCquB,CAChCC,EAAL,EACEhI,CAAAllB,KAAA,CAAc,GAAd,CAAoBoF,CAAAxG,KAApB,CAAqC,YAArC,CAAmDquB,CAAAnF,SAAnD,CAvB4C,CA0BhD,MAAO0E,EA5B2F,CA+BpG/D,QAASA,EAAU,CAACP,CAAD,CAAcroB,CAAd,CAAqBstB,CAArB,CAA+BlF,CAA/B,CAA6CoB,CAA7C,CAAgE,CA0HjF+D,QAASA,EAA0B,CAACvtB,CAAD,CAAQwtB,CAAR,CAAuB5F,CAAvB,CAA4CoC,CAA5C,CAAsD,CACvF,IAAIrC,CAECnwB,GAAA,CAAQwI,CAAR,CAAL,GACEgqB,CAGA,CAHWpC,CAGX,CAFAA,CAEA,CAFsB4F,CAEtB,CADAA,CACA,CADgBxtB,CAChB,CAAAA,CAAA,CAAQ/M,CAJV,CAOIo6B,EAAJ,GACE1F,CADF,CAC0BgF,EAD1B,CAGK/E,EAAL,GACEA,CADF,CACwByF,CAAA,CAAgChI,CAAAzuB,OAAA,EAAhC,CAAoDyuB,CAD5E,CAGA,IAAI2E,CAAJ,CAAc,CAKZ,IAAIyD,EAAmBjE,CAAAO,QAAA,CAA0BC,CAA1B,CACvB,IAAIyD,CAAJ,CACE,MAAOA,EAAA,CAAiBztB,CAAjB,CAAwBwtB,CAAxB,CAAuC7F,CAAvC,CAA8DC,CAA9D,CAAmF8F,EAAnF,CACF,IAAIr2B,CAAA,CAAYo2B,CAAZ,CAAJ,CACL,KAAMjK,GAAA,CAAe,QAAf,CAGLwG,CAHK,CAGKjtB,EAAA,CAAYsoB,CAAZ,CAHL,CAAN,CATU,CAAd,IAeE,OAAOmE,EAAA,CAAkBxpB,CAAlB,CAAyBwtB,CAAzB,CAAwC7F,CAAxC,CAA+DC,CAA/D,CAAoF8F,EAApF,CA/B8E,CA1HR,IAC7Eh5B,CAD6E,CAC1EY,CAD0E,CACtEo2B,CADsE,CAC9D3pB,CAD8D,CAC/B4qB,EAD+B,CACXjG,CADW,CACGrB,CADH,CAEtEsI,EAEP7B,EAAJ,GAAoBwB,CAApB,EACEtE,CACA,CADQ+C,CACR,CAAA1G,CAAA,CAAW0G,CAAA1C,UAFb,GAIEhE,CACA,CADW7xB,CAAA,CAAO85B,CAAP,CACX,CAAAtE,CAAA,CAAQ,IAAIE,EAAJ,CAAe7D,CAAf,CAAyB0G,CAAzB,CALV,CAQA6B,EAAA,CAAkB5tB,CACdusB,EAAJ,CACExqB,CADF,CACiB/B,CAAAynB,KAAA,CAAW,CAAA,CAAX,CADjB,CAEWoG,CAFX,GAGED,CAHF,CAGoB5tB,CAAAwnB,QAHpB,CAMIgC,EAAJ,GAGE9C,CAGA,CAHe6G,CAGf,CAFA7G,CAAAmB,kBAEA,CAFiC2B,CAEjC,CAAA9C,CAAAoH,aAAA,CAA4BC,QAAQ,CAAC/D,CAAD,CAAW,CAC7C,MAAO,CAAE,CAAAR,CAAAO,QAAA,CAA0BC,CAA1B,CADoC,CANjD,CAWIgD;CAAJ,GACEL,EADF,CACuBI,CAAA,CAAiB1H,CAAjB,CAA2B2D,CAA3B,CAAkCtC,CAAlC,CAAgDsG,CAAhD,CAAsEjrB,CAAtE,CAAoF/B,CAApF,CADvB,CAIIusB,EAAJ,GAEEtsB,CAAAioB,eAAA,CAAuB7C,CAAvB,CAAiCtjB,CAAjC,CAA+C,CAAA,CAA/C,CAAqD,EAAEisB,CAAF,GAAwBA,CAAxB,GAA8CzB,CAA9C,EACjDyB,CADiD,GAC3BzB,CAAA0B,oBAD2B,EAArD,CAQA,CANAhuB,CAAAknB,gBAAA,CAAwB9B,CAAxB,CAAkC,CAAA,CAAlC,CAMA,CALAtjB,CAAAijB,kBAKA,CAJIuH,CAAAvH,kBAIJ,EAHA2I,EAGA,CAH4BO,EAAA,CAA4BluB,CAA5B,CAAmCgpB,CAAnC,CAA0CjnB,CAA1C,CACEA,CAAAijB,kBADF,CAEEuH,CAFF,CAG5B,GACExqB,CAAAosB,IAAA,CAAiB,UAAjB,CAA6BR,EAA7B,CAXJ,CAgBA,KAAS5uB,CAAT,GAAiB4tB,GAAjB,CAAqC,CAC/ByB,EAAAA,CAAsBpB,CAAA,CAAqBjuB,CAArB,CAC1B,KAAIiD,EAAa2qB,EAAA,CAAmB5tB,CAAnB,CAAjB,CACIskB,GAAW+K,EAAArJ,WAAAH,iBAEX5iB,EAAAqsB,WAAJ,EAA6BhL,EAA7B,GACEiL,CADF,CAEIJ,EAAA,CAA4BN,CAA5B,CAA6C5E,CAA7C,CAAoDhnB,CAAAimB,SAApD,CAAyE5E,EAAzE,CAAmF+K,EAAnF,CAFJ,CAKA,KAAIG,EAAmBvsB,CAAA,EACnBusB,EAAJ,GAAyBvsB,CAAAimB,SAAzB,GAGEjmB,CAAAimB,SAGA,CAHsBsG,CAGtB,CAFAlJ,CAAAllB,KAAA,CAAc,GAAd,CAAoBiuB,EAAArvB,KAApB,CAA+C,YAA/C,CAA6DwvB,CAA7D,CAEA,CADAD,CACA,EADkCA,CAAA,EAClC,CAAAA,CAAA,CACEJ,EAAA,CAA4BN,CAA5B,CAA6C5E,CAA7C,CAAoDhnB,CAAAimB,SAApD,CAAyE5E,EAAzE,CAAmF+K,EAAnF,CAPJ,CAXmC,CAuBrCt6B,CAAA,CAAQk5B,CAAR,CAA8B,QAAQ,CAACoB,CAAD,CAAsBrvB,CAAtB,CAA4B,CAChE,IAAI2lB,EAAU0J,CAAA1J,QACV0J,EAAAxJ,iBAAJ,EAA6C,CAAAtxB,CAAA,CAAQoxB,CAAR,CAA7C;AAAiEnvB,CAAA,CAASmvB,CAAT,CAAjE,EACEtuB,CAAA,CAAOu2B,EAAA,CAAmB5tB,CAAnB,CAAAkpB,SAAP,CAA0CyE,CAAA,CAAe3tB,CAAf,CAAqB2lB,CAArB,CAA8BW,CAA9B,CAAwCsH,EAAxC,CAA1C,CAH8D,CAAlE,CAQA74B,EAAA,CAAQ64B,EAAR,CAA4B,QAAQ,CAAC3qB,CAAD,CAAa,CAC3C9N,CAAA,CAAW8N,CAAAimB,SAAAuG,QAAX,CAAJ,EACExsB,CAAAimB,SAAAuG,QAAA,EAF6C,CAAjD,CAOK95B,EAAA,CAAI,CAAT,KAAYY,CAAZ,CAAiB42B,CAAAz4B,OAAjB,CAAoCiB,CAApC,CAAwCY,CAAxC,CAA4CZ,CAAA,EAA5C,CACEg3B,CACA,CADSQ,CAAA,CAAWx3B,CAAX,CACT,CAAA+5B,EAAA,CAAa/C,CAAb,CACIA,CAAA3pB,aAAA,CAAsBA,CAAtB,CAAqC/B,CADzC,CAEIqlB,CAFJ,CAGI2D,CAHJ,CAII0C,CAAAhH,QAJJ,EAIsBgI,CAAA,CAAehB,CAAAxI,cAAf,CAAqCwI,CAAAhH,QAArC,CAAqDW,CAArD,CAA+DsH,EAA/D,CAJtB,CAKIjG,CALJ,CAYF,KAAIgH,GAAe1tB,CACfusB,EAAJ,GAAiCA,CAAAhH,SAAjC,EAA+G,IAA/G,GAAsEgH,CAAA/G,YAAtE,IACEkI,EADF,CACiB3rB,CADjB,CAGAsmB,EAAA,EAAeA,CAAA,CAAYqF,EAAZ,CAA0BJ,CAAArb,WAA1B,CAA+Chf,CAA/C,CAA0Du2B,CAA1D,CAGf,KAAK90B,CAAL,CAASy3B,CAAA14B,OAAT,CAA8B,CAA9B,CAAsC,CAAtC,EAAiCiB,CAAjC,CAAyCA,CAAA,EAAzC,CACEg3B,CACA,CADSS,CAAA,CAAYz3B,CAAZ,CACT,CAAA+5B,EAAA,CAAa/C,CAAb,CACIA,CAAA3pB,aAAA,CAAsBA,CAAtB,CAAqC/B,CADzC,CAEIqlB,CAFJ,CAGI2D,CAHJ,CAII0C,CAAAhH,QAJJ,EAIsBgI,CAAA,CAAehB,CAAAxI,cAAf,CAAqCwI,CAAAhH,QAArC,CAAqDW,CAArD,CAA+DsH,EAA/D,CAJtB,CAKIjG,CALJ,CA/G+E,CAtYnFG,CAAA,CAAyBA,CAAzB,EAAmD,EAuBnD,KAxBqD,IAGjD6H,EAAmB,CAACpM,MAAAC,UAH6B,CAIjDsL,EAAoBhH,CAAAgH,kBAJ6B,CAKjDb,EAAuBnG,CAAAmG,qBAL0B,CAMjDT,EAA2B1F,CAAA0F,yBANsB;AAOjDyB,EAAoBnH,CAAAmH,kBAP6B,CAQjDW,EAA4B9H,CAAA8H,0BARqB,CASjDC,EAAyB,CAAA,CATwB,CAUjDC,GAAc,CAAA,CAVmC,CAWjDxB,EAAgCxG,CAAAwG,8BAXiB,CAYjDyB,GAAe/C,CAAA1C,UAAfyF,CAAyCt7B,CAAA,CAAOs4B,CAAP,CAZQ,CAajDvmB,CAbiD,CAcjD2d,CAdiD,CAejD6L,CAfiD,CAiBjDC,GAAoBtI,CAjB6B,CAkBjDgF,CAlBiD,CAmBjDuD,EAAiC,CAAA,CAnBgB,CAoBjDC,GAAqC,CAAA,CApBY,CAqBjDC,EArBiD,CAwB5Cz6B,EAAI,CAxBwC,CAwBrCY,GAAKkvB,CAAA/wB,OAArB,CAAwCiB,CAAxC,CAA4CY,EAA5C,CAAgDZ,CAAA,EAAhD,CAAqD,CACnD6Q,CAAA,CAAYif,CAAA,CAAW9vB,CAAX,CACZ,KAAI42B,EAAY/lB,CAAA6pB,QAAhB,CACI7D,GAAUhmB,CAAA8pB,MAGV/D,EAAJ,GACEwD,EADF,CACiBzD,CAAA,CAAUS,CAAV,CAAuBR,CAAvB,CAAkCC,EAAlC,CADjB,CAGAwD,EAAA,CAAY97B,CAEZ,IAAIy7B,CAAJ,CAAuBnpB,CAAAkf,SAAvB,CACE,KAGF,IAAI0K,EAAJ,CAAqB5pB,CAAAvF,MAArB,CAIOuF,CAAAigB,YAeL,GAdMjwB,CAAA,CAAS45B,EAAT,CAAJ,EAGEG,EAAA,CAAkB,oBAAlB,CAAwC/C,CAAxC,EAAoEsB,CAApE,CACkBtoB,CADlB,CAC6BupB,EAD7B,CAEA,CAAAvC,CAAA,CAA2BhnB,CAL7B,EASE+pB,EAAA,CAAkB,oBAAlB,CAAwC/C,CAAxC,CAAkEhnB,CAAlE,CACkBupB,EADlB,CAKJ,EAAAjB,CAAA,CAAoBA,CAApB,EAAyCtoB,CAG3C2d,EAAA,CAAgB3d,CAAAxG,KAQhB,IAAKkwB,CAAAA,CAAL,GAAyC1pB,CAAArJ,QAAzC,GAA+DqJ,CAAAigB,YAA/D,EAAwFjgB,CAAAggB,SAAxF,GACQhgB,CAAAkgB,WADR,EACiC8J,CAAAhqB,CAAAgqB,MADjC,EACoD,CAG5C,IAASC,EAAT,CAAyB96B,CAAzB,CAA6B,CAA7B,CAAgC+6B,CAAhC,CAAqDjL,CAAA,CAAWgL,EAAA,EAAX,CAArD,CAAA,CACI,GAAKC,CAAAhK,WAAL,EAAuC8J,CAAAE,CAAAF,MAAvC,EACQE,CAAAvzB,QADR;CACuCuzB,CAAAjK,YADvC,EACyEiK,CAAAlK,SADzE,EACwG,CACpG2J,EAAA,CAAqC,CAAA,CACrC,MAFoG,CAM5GD,CAAA,CAAiC,CAAA,CAXW,CAc/CzJ,CAAAjgB,CAAAigB,YAAL,EAA8BjgB,CAAAvD,WAA9B,GACEmtB,EAIA,CAJiB5pB,CAAAvD,WAIjB,CAHAgrB,CAGA,CAHuBA,CAGvB,EAH+CpyB,CAAA,EAG/C,CAFA00B,EAAA,CAAkB,GAAlB,CAAwBpM,CAAxB,CAAwC,cAAxC,CACI8J,CAAA,CAAqB9J,CAArB,CADJ,CACyC3d,CADzC,CACoDupB,EADpD,CAEA,CAAA9B,CAAA,CAAqB9J,CAArB,CAAA,CAAsC3d,CALxC,CAQA,IAAI4pB,EAAJ,CAAqB5pB,CAAAkgB,WAArB,CAWE,GAVAmJ,CAUI,CAVqB,CAAA,CAUrB,CALCrpB,CAAAgqB,MAKD,GAJFD,EAAA,CAAkB,cAAlB,CAAkCX,CAAlC,CAA6DppB,CAA7D,CAAwEupB,EAAxE,CACA,CAAAH,CAAA,CAA4BppB,CAG1B,EAAkB,SAAlB,EAAA4pB,EAAJ,CACE9B,CASA,CATgC,CAAA,CAShC,CARAqB,CAQA,CARmBnpB,CAAAkf,SAQnB,CAPAsK,CAOA,CAPYD,EAOZ,CANAA,EAMA,CANe/C,CAAA1C,UAMf,CALI71B,CAAA,CAAOR,CAAA08B,cAAA,CAAuB,GAAvB,CAA6BxM,CAA7B,CAA6C,IAA7C,CACuB6I,CAAA,CAAc7I,CAAd,CADvB,CACsD,GADtD,CAAP,CAKJ,CAHA4I,CAGA,CAHcgD,EAAA,CAAa,CAAb,CAGd,CAFAa,EAAA,CAAY3D,CAAZ,CA5uOH31B,EAAAjC,KAAA,CA4uOuC26B,CA5uOvC,CAA+B,CAA/B,CA4uOG,CAAgDjD,CAAhD,CAEA,CAAAkD,EAAA,CAAoBrD,EAAA,CAAqBuD,EAArB,CAAyDH,CAAzD,CAAoErI,CAApE,CAAkFgI,CAAlF,CACQkB,CADR,EAC4BA,CAAA7wB,KAD5B,CACmD,CAQzC4vB,0BAA2BA,CARc,CADnD,CAVtB,KAqBO,CAEL,IAAIkB,EAAQj1B,CAAA,EAEZm0B,EAAA,CAAYv7B,CAAA,CAAOuf,EAAA,CAAY+Y,CAAZ,CAAP,CAAAgE,SAAA,EAEZ,IAAIv6B,CAAA,CAAS45B,EAAT,CAAJ,CAA8B,CAI5BJ,CAAA,CAAY,EAEZ,KAAIgB,GAAUn1B,CAAA,EAAd,CACIo1B,GAAcp1B,CAAA,EAGlB9G,EAAA,CAAQq7B,EAAR,CAAwB,QAAQ,CAACc,CAAD,CAAkBjG,CAAlB,CAA4B,CAE1D,IAAIrG,EAA0C,GAA1CA,GAAYsM,CAAA71B,OAAA,CAAuB,CAAvB,CAChB61B;CAAA,CAAkBtM,CAAA,CAAWsM,CAAAryB,UAAA,CAA0B,CAA1B,CAAX,CAA0CqyB,CAE5DF,GAAA,CAAQE,CAAR,CAAA,CAA2BjG,CAK3B6F,EAAA,CAAM7F,CAAN,CAAA,CAAkB,IAIlBgG,GAAA,CAAYhG,CAAZ,CAAA,CAAwBrG,CAdkC,CAA5D,CAkBA7vB,EAAA,CAAQg7B,EAAAgB,SAAA,EAAR,CAAiC,QAAQ,CAAC/3B,CAAD,CAAO,CAC9C,IAAIiyB,EAAW+F,EAAA,CAAQ3F,EAAA,CAAmB9xB,EAAA,CAAUP,CAAV,CAAnB,CAAR,CACXiyB,EAAJ,EACEgG,EAAA,CAAYhG,CAAZ,CAEA,CAFwB,CAAA,CAExB,CADA6F,CAAA,CAAM7F,CAAN,CACA,CADkB6F,CAAA,CAAM7F,CAAN,CAClB,EADqC,EACrC,CAAA6F,CAAA,CAAM7F,CAAN,CAAA9wB,KAAA,CAAqBnB,CAArB,CAHF,EAKEg3B,CAAA71B,KAAA,CAAenB,CAAf,CAP4C,CAAhD,CAYAjE,EAAA,CAAQk8B,EAAR,CAAqB,QAAQ,CAACE,CAAD,CAASlG,CAAT,CAAmB,CAC9C,GAAKkG,CAAAA,CAAL,CACE,KAAM1M,GAAA,CAAe,SAAf,CAA8EwG,CAA9E,CAAN,CAF4C,CAAhD,CAMA,KAASA,IAAAA,EAAT,GAAqB6F,EAArB,CACMA,CAAA,CAAM7F,EAAN,CAAJ,GAEE6F,CAAA,CAAM7F,EAAN,CAFF,CAEoB2B,EAAA,CAAqBuD,EAArB,CAAyDW,CAAA,CAAM7F,EAAN,CAAzD,CAA0EtD,CAA1E,CAFpB,CA/C0B,CAsD9BoI,EAAA9xB,MAAA,EACAgyB,GAAA,CAAoBrD,EAAA,CAAqBuD,EAArB,CAAyDH,CAAzD,CAAoErI,CAApE,CAAkFzzB,CAAlF,CAChBA,CADgB,CACL,CAAEs0B,cAAehiB,CAAAinB,eAAfjF,EAA2ChiB,CAAA4qB,WAA7C,CADK,CAEpBnB,GAAAjF,QAAA,CAA4B8F,CA/DvB,CAmET,GAAItqB,CAAAggB,SAAJ,CAWE,GAVAsJ,EAUI3yB,CAVU,CAAA,CAUVA,CATJozB,EAAA,CAAkB,UAAlB,CAA8BtB,CAA9B,CAAiDzoB,CAAjD,CAA4DupB,EAA5D,CASI5yB,CARJ8xB,CAQI9xB,CARgBqJ,CAQhBrJ,CANJizB,EAMIjzB,CANchI,CAAA,CAAWqR,CAAAggB,SAAX,CAAD,CACXhgB,CAAAggB,SAAA,CAAmBuJ,EAAnB,CAAiC/C,CAAjC,CADW,CAEXxmB,CAAAggB,SAIFrpB,CAFJizB,EAEIjzB,CAFak0B,EAAA,CAAoBjB,EAApB,CAEbjzB,CAAAqJ,CAAArJ,QAAJ,CAAuB,CACrB0zB,CAAA,CAAmBrqB,CAIjBwpB,EAAA,CA1yLJzd,EAAAxZ,KAAA,CAuyLuBq3B,EAvyLvB,CAuyLE,CAGckB,EAAA,CAAetI,CAAA,CAAaxiB,CAAA+qB,kBAAb,CAA0C5d,CAAA,CAAKyc,EAAL,CAA1C,CAAf,CAHd,CACc,EAIdrD;CAAA,CAAciD,CAAA,CAAU,CAAV,CAEd,IAAwB,CAAxB,EAAIA,CAAAt7B,OAAJ,EAlnNYud,CAknNZ,GAA6B8a,CAAAzuB,SAA7B,CACE,KAAMmmB,GAAA,CAAe,OAAf,CAEFN,CAFE,CAEa,EAFb,CAAN,CAKFyM,EAAA,CAAY3D,CAAZ,CAA0B8C,EAA1B,CAAwChD,CAAxC,CAEIyE,GAAAA,CAAmB,CAACrG,MAAO,EAAR,CAOnBsG,GAAAA,CAAqBrH,EAAA,CAAkB2C,CAAlB,CAA+B,EAA/B,CAAmCyE,EAAnC,CACzB,KAAIE,GAAwBjM,CAAA3rB,OAAA,CAAkBnE,CAAlB,CAAsB,CAAtB,CAAyB8vB,CAAA/wB,OAAzB,EAA8CiB,CAA9C,CAAkD,CAAlD,EAE5B,EAAI63B,CAAJ,EAAgCsB,CAAhC,GAIE6C,EAAA,CAAmBF,EAAnB,CAAuCjE,CAAvC,CAAiEsB,CAAjE,CAEFrJ,EAAA,CAAaA,CAAA3pB,OAAA,CAAkB21B,EAAlB,CAAA31B,OAAA,CAA6C41B,EAA7C,CACbE,GAAA,CAAwB5E,CAAxB,CAAuCwE,EAAvC,CAEAj7B,GAAA,CAAKkvB,CAAA/wB,OApCgB,CAAvB,IAsCEq7B,GAAA1xB,KAAA,CAAkB+xB,EAAlB,CAIJ,IAAI5pB,CAAAigB,YAAJ,CACEqJ,EAgBA,CAhBc,CAAA,CAgBd,CAfAS,EAAA,CAAkB,UAAlB,CAA8BtB,CAA9B,CAAiDzoB,CAAjD,CAA4DupB,EAA5D,CAeA,CAdAd,CAcA,CAdoBzoB,CAcpB,CAZIA,CAAArJ,QAYJ,GAXE0zB,CAWF,CAXqBrqB,CAWrB,EARAqjB,CAQA,CARagI,EAAA,CAAmBpM,CAAA3rB,OAAA,CAAkBnE,CAAlB,CAAqB8vB,CAAA/wB,OAArB,CAAyCiB,CAAzC,CAAnB,CAAgEo6B,EAAhE,CACT/C,CADS,CACMC,CADN,CACoB4C,CADpB,EAC8CI,EAD9C,CACiE9C,CADjE,CAC6EC,CAD7E,CAC0F,CACjGa,qBAAsBA,CAD2E,CAEjGa,kBAAoBA,CAApBA,GAA0CtoB,CAA1CsoB,EAAwDA,CAFyC,CAGjGtB,yBAA0BA,CAHuE,CAIjGyB,kBAAmBA,CAJ8E,CAKjGW,0BAA2BA,CALsE,CAD1F,CAQb,CAAAr5B,EAAA,CAAKkvB,CAAA/wB,OAjBP,KAkBO,IAAI8R,CAAAtF,QAAJ,CACL,GAAI,CACFyrB,CACA,CADSnmB,CAAAtF,QAAA,CAAkB6uB,EAAlB;AAAgC/C,CAAhC,CAA+CiD,EAA/C,CACT,CAAI96B,CAAA,CAAWw3B,CAAX,CAAJ,CACEU,CAAA,CAAW,IAAX,CAAiBV,CAAjB,CAAyBJ,CAAzB,CAAoCC,EAApC,CADF,CAEWG,CAFX,EAGEU,CAAA,CAAWV,CAAAW,IAAX,CAAuBX,CAAAY,KAAvB,CAAoChB,CAApC,CAA+CC,EAA/C,CALA,CAOF,MAAOtuB,EAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,EAAlB,CAAqBF,EAAA,CAAY+xB,EAAZ,CAArB,CADU,CAKVvpB,CAAA+jB,SAAJ,GACEV,CAAAU,SACA,CADsB,CAAA,CACtB,CAAAoF,CAAA,CAAmBmC,IAAAC,IAAA,CAASpC,CAAT,CAA2BnpB,CAAAkf,SAA3B,CAFrB,CA3PmD,CAkQrDmE,CAAA5oB,MAAA,CAAmB6tB,CAAnB,EAAoE,CAAA,CAApE,GAAwCA,CAAA7tB,MACxC4oB,EAAAC,wBAAA,CAAqC+F,CACrChG,EAAAG,sBAAA,CAAmC8F,EACnCjG,EAAAnD,WAAA,CAAwBuJ,EAExBnI,EAAAwG,8BAAA,CAAuDA,CAGvD,OAAOzE,EAlS8C,CA4iBvD8H,QAASA,GAAkB,CAAClM,CAAD,CAAaziB,CAAb,CAA2BgvB,CAA3B,CAAqC,CAC9D,IAD8D,IACrDv7B,EAAI,CADiD,CAC9CC,EAAK+uB,CAAA/wB,OAArB,CAAwC+B,CAAxC,CAA4CC,CAA5C,CAAgDD,CAAA,EAAhD,CACEgvB,CAAA,CAAWhvB,CAAX,CAAA,CAAgBmB,EAAA,CAAQ6tB,CAAA,CAAWhvB,CAAX,CAAR,CAAuB,CAACg3B,eAAgBzqB,CAAjB,CAA+BouB,WAAYY,CAA3C,CAAvB,CAF4C,CAoBhE5G,QAASA,EAAY,CAAC6G,CAAD,CAAcjyB,CAAd,CAAoB6B,CAApB,CAA8B+lB,CAA9B,CAA2CC,CAA3C,CAA4DqK,CAA5D,CACCC,CADD,CACc,CACjC,GAAInyB,CAAJ,GAAa6nB,CAAb,CAA8B,MAAO,KACjC3sB,EAAAA,CAAQ,IACZ,IAAI6pB,CAAA3vB,eAAA,CAA6B4K,CAA7B,CAAJ,CAAwC,CAAA,IAC7BwG,CAAWif,EAAAA,CAAa9I,CAAA1a,IAAA,CAAcjC,CAAd,CAjqD1BwlB,WAiqD0B,CAAjC,KADsC,IAElC7vB,EAAI,CAF8B,CAE3BY,EAAKkvB,CAAA/wB,OADhB,CACmCiB,CADnC,CACuCY,CADvC,CAC2CZ,CAAA,EAD3C,CAEE,GAAI,CACF6Q,CACA;AADYif,CAAA,CAAW9vB,CAAX,CACZ,EAAK2C,CAAA,CAAYsvB,CAAZ,CAAL,EAAiCA,CAAjC,CAA+CphB,CAAAkf,SAA/C,GAC8C,EAD9C,EACKlf,CAAAof,SAAA/rB,QAAA,CAA2BgI,CAA3B,CADL,GAEMqwB,CAIJ,GAHE1rB,CAGF,CAHc5O,EAAA,CAAQ4O,CAAR,CAAmB,CAAC6pB,QAAS6B,CAAV,CAAyB5B,MAAO6B,CAAhC,CAAnB,CAGd,EADAF,CAAA93B,KAAA,CAAiBqM,CAAjB,CACA,CAAAtL,CAAA,CAAQsL,CANV,CAFE,CAUF,MAAOtI,CAAP,CAAU,CAAEgQ,CAAA,CAAkBhQ,CAAlB,CAAF,CAbwB,CAgBxC,MAAOhD,EAnB0B,CA+BnC6wB,QAASA,EAAuB,CAAC/rB,CAAD,CAAO,CACrC,GAAI+kB,CAAA3vB,eAAA,CAA6B4K,CAA7B,CAAJ,CACE,IADsC,IAClBylB,EAAa9I,CAAA1a,IAAA,CAAcjC,CAAd,CA9rD1BwlB,WA8rD0B,CADK,CAElC7vB,EAAI,CAF8B,CAE3BY,EAAKkvB,CAAA/wB,OADhB,CACmCiB,CADnC,CACuCY,CADvC,CAC2CZ,CAAA,EAD3C,CAGE,GADA6Q,CACI4rB,CADQ3M,CAAA,CAAW9vB,CAAX,CACRy8B,CAAA5rB,CAAA4rB,aAAJ,CACE,MAAO,CAAA,CAIb,OAAO,CAAA,CAV8B,CAqBvCR,QAASA,GAAuB,CAAC17B,CAAD,CAAMS,CAAN,CAAW,CAAA,IACrC07B,EAAU17B,CAAAw0B,MAD2B,CAErCmH,EAAUp8B,CAAAi1B,MAF2B,CAGrC7E,EAAWpwB,CAAAo0B,UAGfv1B,EAAA,CAAQmB,CAAR,CAAa,QAAQ,CAACJ,CAAD,CAAQZ,CAAR,CAAa,CACX,GAArB,EAAIA,CAAAmG,OAAA,CAAW,CAAX,CAAJ,GACM1E,CAAA,CAAIzB,CAAJ,CAGJ,EAHgByB,CAAA,CAAIzB,CAAJ,CAGhB,GAH6BY,CAG7B,GAFEA,CAEF,GAFoB,OAAR,GAAAZ,CAAA,CAAkB,GAAlB,CAAwB,GAEpC,EAF2CyB,CAAA,CAAIzB,CAAJ,CAE3C,EAAAgB,CAAAq8B,KAAA,CAASr9B,CAAT,CAAcY,CAAd,CAAqB,CAAA,CAArB,CAA2Bu8B,CAAA,CAAQn9B,CAAR,CAA3B,CAJF,CADgC,CAAlC,CAUAH,EAAA,CAAQ4B,CAAR,CAAa,QAAQ,CAACb,CAAD,CAAQZ,CAAR,CAAa,CACrB,OAAX,EAAIA,CAAJ,EACEsyB,CAAA,CAAalB,CAAb,CAAuBxwB,CAAvB,CACA,CAAAI,CAAA,CAAI,OAAJ,CAAA,EAAgBA,CAAA,CAAI,OAAJ,CAAA,CAAeA,CAAA,CAAI,OAAJ,CAAf,CAA8B,GAA9B,CAAoC,EAApD;AAA0DJ,CAF5D,EAGkB,OAAX,EAAIZ,CAAJ,EACLoxB,CAAAptB,KAAA,CAAc,OAAd,CAAuBotB,CAAAptB,KAAA,CAAc,OAAd,CAAvB,CAAgD,GAAhD,CAAsDpD,CAAtD,CACA,CAAAI,CAAA,MAAA,EAAgBA,CAAA,MAAA,CAAeA,CAAA,MAAf,CAA8B,GAA9B,CAAoC,EAApD,EAA0DJ,CAFrD,EAMqB,GANrB,EAMIZ,CAAAmG,OAAA,CAAW,CAAX,CANJ,EAM6BnF,CAAAd,eAAA,CAAmBF,CAAnB,CAN7B,GAOLgB,CAAA,CAAIhB,CAAJ,CACA,CADWY,CACX,CAAAw8B,CAAA,CAAQp9B,CAAR,CAAA,CAAem9B,CAAA,CAAQn9B,CAAR,CARV,CAJyB,CAAlC,CAhByC,CAkC3C28B,QAASA,GAAkB,CAACpM,CAAD,CAAasK,CAAb,CAA2B1J,CAA3B,CACvBgD,CADuB,CACT4G,CADS,CACU9C,CADV,CACsBC,CADtB,CACmCtF,CADnC,CAC2D,CAAA,IAChF0K,EAAY,EADoE,CAEhFC,CAFgF,CAGhFC,CAHgF,CAIhFC,EAA4B5C,CAAA,CAAa,CAAb,CAJoD,CAKhF6C,EAAqBnN,CAAA1J,MAAA,EAL2D,CAMhF8W,EAAuBj7B,EAAA,CAAQg7B,CAAR,CAA4B,CACjDnM,YAAa,IADoC,CAC9BC,WAAY,IADkB,CACZvpB,QAAS,IADG,CACG+xB,oBAAqB0D,CADxB,CAA5B,CANyD,CAShFnM,EAAetxB,CAAA,CAAWy9B,CAAAnM,YAAX,CAAD,CACRmM,CAAAnM,YAAA,CAA+BsJ,CAA/B,CAA6C1J,CAA7C,CADQ,CAERuM,CAAAnM,YAX0E,CAYhF8K,EAAoBqB,CAAArB,kBAExBxB,EAAA9xB,MAAA,EAEAyS,EAAA,CAAiB+V,CAAjB,CAAAqM,KAAA,CACQ,QAAQ,CAACC,CAAD,CAAU,CAAA,IAClBhG,CADkB,CACyBvD,CAE/CuJ,EAAA,CAAU1B,EAAA,CAAoB0B,CAApB,CAEV,IAAIH,CAAAz1B,QAAJ,CAAgC,CAI5B6yB,CAAA,CA7wMJzd,EAAAxZ,KAAA,CA0wMuBg6B,CA1wMvB,CA0wME,CAGczB,EAAA,CAAetI,CAAA,CAAauI,CAAb,CAAgC5d,CAAA,CAAKof,CAAL,CAAhC,CAAf,CAHd,CACc,EAIdhG,EAAA,CAAciD,CAAA,CAAU,CAAV,CAEd,IAAwB,CAAxB,EAAIA,CAAAt7B,OAAJ,EArlOYud,CAqlOZ,GAA6B8a,CAAAzuB,SAA7B,CACE,KAAMmmB,GAAA,CAAe,OAAf;AAEFmO,CAAA5yB,KAFE,CAEuBymB,CAFvB,CAAN,CAKFuM,CAAA,CAAoB,CAAC7H,MAAO,EAAR,CACpByF,GAAA,CAAYvH,CAAZ,CAA0B0G,CAA1B,CAAwChD,CAAxC,CACA,KAAI0E,EAAqBrH,EAAA,CAAkB2C,CAAlB,CAA+B,EAA/B,CAAmCiG,CAAnC,CAErBx8B,EAAA,CAASo8B,CAAA3xB,MAAT,CAAJ,EAGE0wB,EAAA,CAAmBF,CAAnB,CAAuC,CAAA,CAAvC,CAEFhM,EAAA,CAAagM,CAAA31B,OAAA,CAA0B2pB,CAA1B,CACbmM,GAAA,CAAwBvL,CAAxB,CAAgC2M,CAAhC,CAxB8B,CAAhC,IA0BEjG,EACA,CADc4F,CACd,CAAA5C,CAAA1xB,KAAA,CAAkB00B,CAAlB,CAGFtN,EAAA/kB,QAAA,CAAmBmyB,CAAnB,CAEAJ,EAAA,CAA0BpI,CAAA,CAAsB5E,CAAtB,CAAkCsH,CAAlC,CAA+C1G,CAA/C,CACtB4J,CADsB,CACHF,CADG,CACW6C,CADX,CAC+BzF,CAD/B,CAC2CC,CAD3C,CAEtBtF,CAFsB,CAG1B/yB,EAAA,CAAQs0B,CAAR,CAAsB,QAAQ,CAACrwB,CAAD,CAAOrD,CAAP,CAAU,CAClCqD,CAAJ,EAAY+zB,CAAZ,GACE1D,CAAA,CAAa1zB,CAAb,CADF,CACoBo6B,CAAA,CAAa,CAAb,CADpB,CADsC,CAAxC,CAOA,KAFA2C,CAEA,CAF2BvK,CAAA,CAAa4H,CAAA,CAAa,CAAb,CAAA7c,WAAb,CAAyC+c,CAAzC,CAE3B,CAAOuC,CAAA99B,OAAP,CAAA,CAAyB,CACnBuM,CAAAA,CAAQuxB,CAAAzW,MAAA,EACRkX,EAAAA,CAAyBT,CAAAzW,MAAA,EAFN,KAGnBmX,EAAkBV,CAAAzW,MAAA,EAHC,CAInB0O,EAAoB+H,CAAAzW,MAAA,EAJD,CAKnBwS,EAAWwB,CAAA,CAAa,CAAb,CAEf,IAAIoD,CAAAlyB,CAAAkyB,YAAJ,CAAA,CAEA,GAAIF,CAAJ,GAA+BN,CAA/B,CAA0D,CACxD,IAAIS,GAAaH,CAAAxL,UAEXK,EAAAwG,8BAAN,EACIsE,CAAAz1B,QADJ,GAGEoxB,CAHF,CAGava,EAAA,CAAY+Y,CAAZ,CAHb,CAKA6D,GAAA,CAAYsC,CAAZ,CAA6Bz+B,CAAA,CAAOw+B,CAAP,CAA7B,CAA6D1E,CAA7D,CAGA/G,EAAA,CAAa/yB,CAAA,CAAO85B,CAAP,CAAb,CAA+B6E,EAA/B,CAXwD,CAcxD5J,CAAA,CADEiJ,CAAA3I,wBAAJ,CAC2BC,CAAA,CAAwB9oB,CAAxB,CAA+BwxB,CAAA/L,WAA/B,CAAmE+D,CAAnE,CAD3B,CAG2BA,CAE3BgI,EAAA,CAAwBC,CAAxB,CAAkDzxB,CAAlD,CAAyDstB,CAAzD,CAAmElF,CAAnE,CACEG,CADF,CApBA,CAPuB,CA8BzBgJ,CAAA,CAAY,IA7EU,CAD1B,CAiFA,OAAOa,SAA0B,CAACC,CAAD,CAAoBryB,CAApB;AAA2BjI,CAA3B,CAAiCgJ,CAAjC,CAA8CyoB,CAA9C,CAAiE,CAC5FjB,CAAAA,CAAyBiB,CACzBxpB,EAAAkyB,YAAJ,GACIX,CAAJ,CACEA,CAAAr4B,KAAA,CAAe8G,CAAf,CACejI,CADf,CAEegJ,CAFf,CAGewnB,CAHf,CADF,EAMMiJ,CAAA3I,wBAGJ,GAFEN,CAEF,CAF2BO,CAAA,CAAwB9oB,CAAxB,CAA+BwxB,CAAA/L,WAA/B,CAAmE+D,CAAnE,CAE3B,EAAAgI,CAAA,CAAwBC,CAAxB,CAAkDzxB,CAAlD,CAAyDjI,CAAzD,CAA+DgJ,CAA/D,CAA4EwnB,CAA5E,CATF,CADA,CAFgG,CAjGd,CAsHtF6C,QAASA,GAAU,CAAC/kB,CAAD,CAAIwX,CAAJ,CAAO,CACxB,IAAIyU,EAAOzU,CAAA4G,SAAP6N,CAAoBjsB,CAAAoe,SACxB,OAAa,EAAb,GAAI6N,CAAJ,CAAuBA,CAAvB,CACIjsB,CAAAtH,KAAJ,GAAe8e,CAAA9e,KAAf,CAA+BsH,CAAAtH,KAAD,CAAU8e,CAAA9e,KAAV,CAAqB,EAArB,CAAyB,CAAvD,CACOsH,CAAA1N,MADP,CACiBklB,CAAAllB,MAJO,CAO1B22B,QAASA,GAAiB,CAACiD,CAAD,CAAOC,CAAP,CAA0BjtB,CAA1B,CAAqChN,CAArC,CAA8C,CAEtEk6B,QAASA,EAAuB,CAACC,CAAD,CAAa,CAC3C,MAAOA,EAAA,CACJ,YADI,CACWA,CADX,CACwB,GADxB,CAEL,EAHyC,CAM7C,GAAIF,CAAJ,CACE,KAAMhP,GAAA,CAAe,UAAf,CACFgP,CAAAzzB,KADE,CACsB0zB,CAAA,CAAwBD,CAAA5tB,aAAxB,CADtB,CAEFW,CAAAxG,KAFE,CAEc0zB,CAAA,CAAwBltB,CAAAX,aAAxB,CAFd,CAE+D2tB,CAF/D,CAEqEx1B,EAAA,CAAYxE,CAAZ,CAFrE,CAAN,CAToE,CAgBxE2yB,QAASA,EAA2B,CAAC1G,CAAD,CAAamO,CAAb,CAAmB,CACrD,IAAIC,EAAgBrlB,CAAA,CAAaolB,CAAb,CAAmB,CAAA,CAAnB,CAChBC,EAAJ,EACEpO,CAAAtrB,KAAA,CAAgB,CACdurB,SAAU,CADI,CAEdxkB,QAAS4yB,QAAiC,CAACC,CAAD,CAAe,CACnDC,CAAAA,CAAqBD,CAAAl8B,OAAA,EAAzB,KACIo8B,EAAmB,CAAEv/B,CAAAs/B,CAAAt/B,OAIrBu/B,EAAJ,EAAsB/yB,CAAAgzB,kBAAA,CAA0BF,CAA1B,CAEtB;MAAOG,SAA8B,CAAClzB,CAAD,CAAQjI,CAAR,CAAc,CACjD,IAAInB,EAASmB,CAAAnB,OAAA,EACRo8B,EAAL,EAAuB/yB,CAAAgzB,kBAAA,CAA0Br8B,CAA1B,CACvBqJ,EAAAkzB,iBAAA,CAAyBv8B,CAAzB,CAAiCg8B,CAAAQ,YAAjC,CACApzB,EAAAtI,OAAA,CAAak7B,CAAb,CAA4BS,QAAiC,CAACx+B,CAAD,CAAQ,CACnEkD,CAAA,CAAK,CAAL,CAAAivB,UAAA,CAAoBnyB,CAD+C,CAArE,CAJiD,CARI,CAF3C,CAAhB,CAHmD,CA2BvDkzB,QAASA,EAAY,CAACxU,CAAD,CAAOgS,CAAP,CAAiB,CACpChS,CAAA,CAAO/a,CAAA,CAAU+a,CAAV,EAAkB,MAAlB,CACP,QAAQA,CAAR,EACA,KAAK,KAAL,CACA,KAAK,MAAL,CACE,IAAIjB,EAAUtf,CAAAwe,cAAA,CAAuB,KAAvB,CACdc,EAAAR,UAAA,CAAoB,GAApB,CAA0ByB,CAA1B,CAAiC,GAAjC,CAAuCgS,CAAvC,CAAkD,IAAlD,CAAyDhS,CAAzD,CAAgE,GAChE,OAAOjB,EAAAL,WAAA,CAAmB,CAAnB,CAAAA,WACT,SACE,MAAOsT,EAPT,CAFoC,CActC+N,QAASA,EAAiB,CAACv7B,CAAD,CAAOw7B,CAAP,CAA2B,CACnD,GAA0B,QAA1B,EAAIA,CAAJ,CACE,MAAOtkB,GAAAukB,KAET,KAAIh0B,EAAMlH,EAAA,CAAUP,CAAV,CAEV,IAA0B,WAA1B,EAAIw7B,CAAJ,EACY,MADZ,EACK/zB,CADL,EAC4C,QAD5C,EACsB+zB,CADtB,EAEY,KAFZ,EAEK/zB,CAFL,GAE4C,KAF5C,EAEsB+zB,CAFtB,EAG4C,OAH5C,EAGsBA,CAHtB,EAIE,MAAOtkB,GAAAwkB,aAV0C,CAerDzI,QAASA,EAA2B,CAACjzB,CAAD,CAAOysB,CAAP,CAAmB3vB,CAAnB,CAA0BkK,CAA1B;AAAgC20B,CAAhC,CAA8C,CAChF,IAAIC,EAAiBL,CAAA,CAAkBv7B,CAAlB,CAAwBgH,CAAxB,CACrB20B,EAAA,CAAezP,CAAA,CAAqBllB,CAArB,CAAf,EAA6C20B,CAE7C,KAAId,EAAgBrlB,CAAA,CAAa1Y,CAAb,CAAoB,CAAA,CAApB,CAA0B8+B,CAA1B,CAA0CD,CAA1C,CAGpB,IAAKd,CAAL,CAAA,CAGA,GAAa,UAAb,GAAI7zB,CAAJ,EAA+C,QAA/C,GAA2BzG,EAAA,CAAUP,CAAV,CAA3B,CACE,KAAMyrB,GAAA,CAAe,UAAf,CAEFzmB,EAAA,CAAYhF,CAAZ,CAFE,CAAN,CAKFysB,CAAAtrB,KAAA,CAAgB,CACdurB,SAAU,GADI,CAEdxkB,QAASA,QAAQ,EAAG,CAChB,MAAO,CACLosB,IAAKuH,QAAiC,CAAC5zB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CACvD47B,CAAAA,CAAe57B,CAAA47B,YAAfA,GAAoC57B,CAAA47B,YAApCA,CAAuDj5B,CAAA,EAAvDi5B,CAEJ,IAAI1P,CAAArsB,KAAA,CAA+BiH,CAA/B,CAAJ,CACE,KAAMykB,GAAA,CAAe,aAAf,CAAN,CAMF,IAAIsQ,EAAW77B,CAAA,CAAK8G,CAAL,CACX+0B,EAAJ,GAAiBj/B,CAAjB,GAIE+9B,CACA,CADgBkB,CAChB,EAD4BvmB,CAAA,CAAaumB,CAAb,CAAuB,CAAA,CAAvB,CAA6BH,CAA7B,CAA6CD,CAA7C,CAC5B,CAAA7+B,CAAA,CAAQi/B,CALV,CAUKlB,EAAL,GAKA36B,CAAA,CAAK8G,CAAL,CAGA,CAHa6zB,CAAA,CAAc5yB,CAAd,CAGb,CADA+zB,CAACF,CAAA,CAAY90B,CAAZ,CAADg1B,GAAuBF,CAAA,CAAY90B,CAAZ,CAAvBg1B,CAA2C,EAA3CA,UACA,CAD0D,CAAA,CAC1D,CAAAr8B,CAACO,CAAA47B,YAADn8B,EAAqBO,CAAA47B,YAAA,CAAiB90B,CAAjB,CAAAi1B,QAArBt8B,EAAuDsI,CAAvDtI,QAAA,CACSk7B,CADT,CACwBS,QAAiC,CAACS,CAAD,CAAWG,CAAX,CAAqB,CAO7D,OAAb,GAAIl1B,CAAJ,EAAwB+0B,CAAxB,EAAoCG,CAApC,CACEh8B,CAAAi8B,aAAA,CAAkBJ,CAAlB,CAA4BG,CAA5B,CADF,CAGEh8B,CAAAq5B,KAAA,CAAUvyB,CAAV,CAAgB+0B,CAAhB,CAVwE,CAD9E,CARA,CArB2D,CADxD,CADS,CAFN,CAAhB,CATA,CAPgF,CAgFlFnE,QAASA,GAAW,CAACvH,CAAD,CAAe+L,CAAf,CAAiCC,CAAjC,CAA0C,CAAA,IACxDC,EAAuBF,CAAA,CAAiB,CAAjB,CADiC,CAExDG,EAAcH,CAAA1gC,OAF0C;AAGxDmD,EAASy9B,CAAA9hB,WAH+C,CAIxD7d,CAJwD,CAIrDY,CAEP,IAAI8yB,CAAJ,CACE,IAAK1zB,CAAO,CAAH,CAAG,CAAAY,CAAA,CAAK8yB,CAAA30B,OAAjB,CAAsCiB,CAAtC,CAA0CY,CAA1C,CAA8CZ,CAAA,EAA9C,CACE,GAAI0zB,CAAA,CAAa1zB,CAAb,CAAJ,EAAuB2/B,CAAvB,CAA6C,CAC3CjM,CAAA,CAAa1zB,CAAA,EAAb,CAAA,CAAoB0/B,CACJG,EAAAA,CAAK/+B,CAAL++B,CAASD,CAATC,CAAuB,CAAvC,KAAS,IACA9+B,EAAK2yB,CAAA30B,OADd,CAEK+B,CAFL,CAESC,CAFT,CAEaD,CAAA,EAAA,CAAK++B,CAAA,EAFlB,CAGMA,CAAJ,CAAS9+B,CAAT,CACE2yB,CAAA,CAAa5yB,CAAb,CADF,CACoB4yB,CAAA,CAAamM,CAAb,CADpB,CAGE,OAAOnM,CAAA,CAAa5yB,CAAb,CAGX4yB,EAAA30B,OAAA,EAAuB6gC,CAAvB,CAAqC,CAKjClM,EAAAp0B,QAAJ,GAA6BqgC,CAA7B,GACEjM,CAAAp0B,QADF,CACyBogC,CADzB,CAGA,MAnB2C,CAwB7Cx9B,CAAJ,EACEA,CAAA4b,aAAA,CAAoB4hB,CAApB,CAA6BC,CAA7B,CAOEjjB,EAAAA,CAAWpe,CAAAqe,uBAAA,EACf,KAAK3c,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgB4/B,CAAhB,CAA6B5/B,CAAA,EAA7B,CACE0c,CAAAG,YAAA,CAAqB4iB,CAAA,CAAiBz/B,CAAjB,CAArB,CAGElB,EAAAghC,QAAA,CAAeH,CAAf,CAAJ,GAIE7gC,CAAA2M,KAAA,CAAYi0B,CAAZ,CAAqB5gC,CAAA2M,KAAA,CAAYk0B,CAAZ,CAArB,CAGA,CAAA7gC,CAAA,CAAO6gC,CAAP,CAAA1T,IAAA,CAAiC,UAAjC,CAPF,CAYAntB,EAAA0O,UAAA,CAAiBkP,CAAA+B,iBAAA,CAA0B,GAA1B,CAAjB,CAGA,KAAKze,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgB4/B,CAAhB,CAA6B5/B,CAAA,EAA7B,CACE,OAAOy/B,CAAA,CAAiBz/B,CAAjB,CAETy/B,EAAA,CAAiB,CAAjB,CAAA,CAAsBC,CACtBD,EAAA1gC,OAAA,CAA0B,CAhEkC,CAoE9Dg5B,QAASA,GAAkB,CAACvxB,CAAD,CAAKu5B,CAAL,CAAiB,CAC1C,MAAOr+B,EAAA,CAAO,QAAQ,EAAG,CAAE,MAAO8E,EAAAG,MAAA,CAAS,IAAT,CAAe/E,SAAf,CAAT,CAAlB,CAAyD4E,CAAzD,CAA6Du5B,CAA7D,CADmC,CAK5ChG,QAASA,GAAY,CAAC/C,CAAD;AAAS1rB,CAAT,CAAgBqlB,CAAhB,CAA0B2D,CAA1B,CAAiCW,CAAjC,CAA8CjD,CAA9C,CAA4D,CAC/E,GAAI,CACFgF,CAAA,CAAO1rB,CAAP,CAAcqlB,CAAd,CAAwB2D,CAAxB,CAA+BW,CAA/B,CAA4CjD,CAA5C,CADE,CAEF,MAAOzpB,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CAAqBF,EAAA,CAAYsoB,CAAZ,CAArB,CADU,CAHmE,CAWjF6I,QAASA,GAA2B,CAACluB,CAAD,CAAQgpB,CAAR,CAAehwB,CAAf,CAA4BqqB,CAA5B,CAAsC9d,CAAtC,CAAiD,CACnF,IAAImvB,EAAwB,EAC5B5gC,EAAA,CAAQuvB,CAAR,CAAkB,QAAQ,CAACC,CAAD,CAAaC,CAAb,CAAwB,CAAA,IAC5CK,EAAWN,CAAAM,SADiC,CAEhDD,EAAWL,CAAAK,SAFqC,CAIhDgR,CAJgD,CAKhDC,CALgD,CAKrCC,CALqC,CAK1BC,CAEtB,QAJOxR,CAAAG,KAIP,EAEE,KAAK,GAAL,CACOE,CAAL,EAAkBxvB,EAAAC,KAAA,CAAoB40B,CAApB,CAA2BpF,CAA3B,CAAlB,GACE5qB,CAAA,CAAYuqB,CAAZ,CADF,CAC2ByF,CAAA,CAAMpF,CAAN,CAD3B,CAC6C,IAAK,EADlD,CAGAoF,EAAA+L,SAAA,CAAenR,CAAf,CAAyB,QAAQ,CAAC/uB,CAAD,CAAQ,CACnCtB,CAAA,CAASsB,CAAT,CAAJ,GACEmE,CAAA,CAAYuqB,CAAZ,CADF,CAC2B1uB,CAD3B,CADuC,CAAzC,CAKAm0B,EAAA6K,YAAA,CAAkBjQ,CAAlB,CAAAoQ,QAAA,CAAsCh0B,CACtC20B,EAAA,CAAY3L,CAAA,CAAMpF,CAAN,CACRrwB,EAAA,CAASohC,CAAT,CAAJ,CAGE37B,CAAA,CAAYuqB,CAAZ,CAHF,CAG2BhW,CAAA,CAAaonB,CAAb,CAAA,CAAwB30B,CAAxB,CAH3B,CAIWrI,EAAA,CAAUg9B,CAAV,CAJX,GAOE37B,CAAA,CAAYuqB,CAAZ,CAPF,CAO2BoR,CAP3B,CASA,MAEF,MAAK,GAAL,CACE,GAAK,CAAAxgC,EAAAC,KAAA,CAAoB40B,CAApB,CAA2BpF,CAA3B,CAAL,CAA2C,CACzC,GAAID,CAAJ,CAAc,KACdqF,EAAA,CAAMpF,CAAN,CAAA,CAAkB,IAAK,EAFkB,CAI3C,GAAID,CAAJ,EAAiB,CAAAqF,CAAA,CAAMpF,CAAN,CAAjB,CAAkC,KAElCgR,EAAA,CAAYnmB,CAAA,CAAOua,CAAA,CAAMpF,CAAN,CAAP,CAEVkR,EAAA,CADEF,CAAAI,QAAJ,CACY36B,EADZ,CAGYy6B,QAAQ,CAACzuB,CAAD,CAAIwX,CAAJ,CAAO,CAAE,MAAOxX,EAAP,GAAawX,CAAb,EAAmBxX,CAAnB,GAAyBA,CAAzB,EAA8BwX,CAA9B,GAAoCA,CAAtC,CAE3BgX,EAAA,CAAYD,CAAAK,OAAZ,EAAgC,QAAQ,EAAG,CAEzCN,CAAA,CAAY37B,CAAA,CAAYuqB,CAAZ,CAAZ,CAAqCqR,CAAA,CAAU50B,CAAV,CACrC,MAAMwjB,GAAA,CAAe,WAAf;AAEFwF,CAAA,CAAMpF,CAAN,CAFE,CAEeA,CAFf,CAEyBre,CAAAxG,KAFzB,CAAN,CAHyC,CAO3C41B,EAAA,CAAY37B,CAAA,CAAYuqB,CAAZ,CAAZ,CAAqCqR,CAAA,CAAU50B,CAAV,CACjCk1B,EAAAA,CAAmBA,QAAyB,CAACC,CAAD,CAAc,CACvDL,CAAA,CAAQK,CAAR,CAAqBn8B,CAAA,CAAYuqB,CAAZ,CAArB,CAAL,GAEOuR,CAAA,CAAQK,CAAR,CAAqBR,CAArB,CAAL,CAKEE,CAAA,CAAU70B,CAAV,CAAiBm1B,CAAjB,CAA+Bn8B,CAAA,CAAYuqB,CAAZ,CAA/B,CALF,CAEEvqB,CAAA,CAAYuqB,CAAZ,CAFF,CAE2B4R,CAJ7B,CAUA,OAAOR,EAAP,CAAmBQ,CAXyC,CAa9DD,EAAAE,UAAA,CAA6B,CAAA,CAE3BC,EAAA,CADE/R,CAAAI,WAAJ,CACgB1jB,CAAAs1B,iBAAA,CAAuBtM,CAAA,CAAMpF,CAAN,CAAvB,CAAwCsR,CAAxC,CADhB,CAGgBl1B,CAAAtI,OAAA,CAAa+W,CAAA,CAAOua,CAAA,CAAMpF,CAAN,CAAP,CAAwBsR,CAAxB,CAAb,CAAwD,IAAxD,CAA8DN,CAAAI,QAA9D,CAEhBN,EAAAx7B,KAAA,CAA2Bm8B,CAA3B,CACA,MAEF,MAAK,GAAL,CACE,GAAK,CAAAlhC,EAAAC,KAAA,CAAoB40B,CAApB,CAA2BpF,CAA3B,CAAL,CAA2C,CACzC,GAAID,CAAJ,CAAc,KACdqF,EAAA,CAAMpF,CAAN,CAAA,CAAkB,IAAK,EAFkB,CAI3C,GAAID,CAAJ,EAAiB,CAAAqF,CAAA,CAAMpF,CAAN,CAAjB,CAAkC,KAElCgR,EAAA,CAAYnmB,CAAA,CAAOua,CAAA,CAAMpF,CAAN,CAAP,CAEZ5qB,EAAA,CAAYuqB,CAAZ,CAAA,CAAyBqR,CAAA,CAAU50B,CAAV,CAEzBq1B,EAAA,CAAcr1B,CAAAtI,OAAA,CAAak9B,CAAb,CAAwBW,QAA+B,CAACC,CAAD,CAAiB,CACpFx8B,CAAA,CAAYuqB,CAAZ,CAAA,CAAyBiS,CAD2D,CAAxE,CAEXZ,CAAAI,QAFW,CAIdN,EAAAx7B,KAAA,CAA2Bm8B,CAA3B,CACA,MAEF,MAAK,GAAL,CAEET,CAAA,CAAY5L,CAAA70B,eAAA,CAAqByvB,CAArB,CAAA,CAAiCnV,CAAA,CAAOua,CAAA,CAAMpF,CAAN,CAAP,CAAjC,CAA2D7sB,CAGvE,IAAI69B,CAAJ,GAAkB79B,CAAlB,EAA0B4sB,CAA1B,CAAoC,KAEpC3qB,EAAA,CAAYuqB,CAAZ,CAAA,CAAyB,QAAQ,CAACvI,CAAD,CAAS,CACxC,MAAO4Z,EAAA,CAAU50B,CAAV,CAAiBgb,CAAjB,CADiC,CA5F9C,CAPgD,CAAlD,CA0GA,OAAO0Z,EAAAjhC,OAAP,EAAuCgiC,QAAsB,EAAG,CAC9D,IAD8D,IACrD/gC,EAAI,CADiD,CAC9CY,EAAKo/B,CAAAjhC,OAArB,CAAmDiB,CAAnD,CAAuDY,CAAvD,CAA2D,EAAEZ,CAA7D,CACEggC,CAAA,CAAsBhgC,CAAtB,CAAA,EAF4D,CA5GmB,CAjvDZ;AAEzE,IAAIghC,EAAmB,KAAvB,CACIxP,GAAoBlzB,CAAAwe,cAAA,CAAuB,KAAvB,CADxB,CAEI0X,GAAaA,QAAQ,CAAC3wB,CAAD,CAAUo9B,CAAV,CAA4B,CACnD,GAAIA,CAAJ,CAAsB,CACpB,IAAInhC,EAAOd,MAAAc,KAAA,CAAYmhC,CAAZ,CAAX,CACIjhC,CADJ,CACO2e,CADP,CACUpf,CAELS,EAAA,CAAI,CAAT,KAAY2e,CAAZ,CAAgB7e,CAAAf,OAAhB,CAA6BiB,CAA7B,CAAiC2e,CAAjC,CAAoC3e,CAAA,EAApC,CACET,CACA,CADMO,CAAA,CAAKE,CAAL,CACN,CAAA,IAAA,CAAKT,CAAL,CAAA,CAAY0hC,CAAA,CAAiB1hC,CAAjB,CANM,CAAtB,IASE,KAAAi2B,MAAA,CAAa,EAGf,KAAAb,UAAA,CAAiB9wB,CAbkC,CAgBrD2wB,GAAA7N,UAAA,CAAuB,CAgBrBua,WAAYxL,EAhBS,CA8BrByL,UAAWA,QAAQ,CAACC,CAAD,CAAW,CACxBA,CAAJ,EAAkC,CAAlC,CAAgBA,CAAAriC,OAAhB,EACEoY,CAAAqM,SAAA,CAAkB,IAAAmR,UAAlB,CAAkCyM,CAAlC,CAF0B,CA9BT,CA+CrBC,aAAcA,QAAQ,CAACD,CAAD,CAAW,CAC3BA,CAAJ,EAAkC,CAAlC,CAAgBA,CAAAriC,OAAhB,EACEoY,CAAAsM,YAAA,CAAqB,IAAAkR,UAArB,CAAqCyM,CAArC,CAF6B,CA/CZ,CAiErB5B,aAAcA,QAAQ,CAAC8B,CAAD,CAAa7D,CAAb,CAAyB,CAC7C,IAAI8D,EAAQC,EAAA,CAAgBF,CAAhB,CAA4B7D,CAA5B,CACR8D,EAAJ,EAAaA,CAAAxiC,OAAb,EACEoY,CAAAqM,SAAA,CAAkB,IAAAmR,UAAlB,CAAkC4M,CAAlC,CAIF,EADIE,CACJ,CADeD,EAAA,CAAgB/D,CAAhB,CAA4B6D,CAA5B,CACf,GAAgBG,CAAA1iC,OAAhB,EACEoY,CAAAsM,YAAA,CAAqB,IAAAkR,UAArB,CAAqC8M,CAArC,CAR2C,CAjE1B,CAsFrB7E,KAAMA,QAAQ,CAACr9B,CAAD,CAAMY,CAAN,CAAauhC,CAAb,CAAwBxS,CAAxB,CAAkC,CAAA,IAM1CyS;AAAangB,EAAA,CADN,IAAAmT,UAAAtxB,CAAe,CAAfA,CACM,CAAyB9D,CAAzB,CAN6B,CAO1CqiC,EA7jJHC,EAAA,CA6jJmCtiC,CA7jJnC,CAsjJ6C,CAQ1CuiC,EAAWviC,CAGXoiC,EAAJ,EACE,IAAAhN,UAAArxB,KAAA,CAAoB/D,CAApB,CAAyBY,CAAzB,CACA,CAAA+uB,CAAA,CAAWyS,CAFb,EAGWC,CAHX,GAIE,IAAA,CAAKA,CAAL,CACA,CADmBzhC,CACnB,CAAA2hC,CAAA,CAAWF,CALb,CAQA,KAAA,CAAKriC,CAAL,CAAA,CAAYY,CAGR+uB,EAAJ,CACE,IAAAsG,MAAA,CAAWj2B,CAAX,CADF,CACoB2vB,CADpB,EAGEA,CAHF,CAGa,IAAAsG,MAAA,CAAWj2B,CAAX,CAHb,IAKI,IAAAi2B,MAAA,CAAWj2B,CAAX,CALJ,CAKsB2vB,CALtB,CAKiC3iB,EAAA,CAAWhN,CAAX,CAAgB,GAAhB,CALjC,CASA+B,EAAA,CAAWsC,EAAA,CAAU,IAAA+wB,UAAV,CAEX,IAAkB,GAAlB,GAAKrzB,CAAL,GAAkC,MAAlC,GAA0B/B,CAA1B,EAAoD,WAApD,GAA4CA,CAA5C,GACkB,KADlB,GACK+B,CADL,EACmC,KADnC,GAC2B/B,CAD3B,CAGE,IAAA,CAAKA,CAAL,CAAA,CAAYY,CAAZ,CAAoBqR,CAAA,CAAcrR,CAAd,CAA6B,KAA7B,GAAqBZ,CAArB,CAHtB,KAIO,IAAiB,KAAjB,GAAI+B,CAAJ,EAAkC,QAAlC,GAA0B/B,CAA1B,CAA4C,CAejD,IAbI2lB,IAAAA,EAAS,EAATA,CAGA6c,EAAgB/jB,CAAA,CAAK7d,CAAL,CAHhB+kB,CAKA8c,EAAa,qCALb9c,CAMApP,EAAU,IAAA1S,KAAA,CAAU2+B,CAAV,CAAA,CAA2BC,CAA3B,CAAwC,KANlD9c,CASA+c,EAAUF,CAAAp+B,MAAA,CAAoBmS,CAApB,CATVoP,CAYAgd,EAAoB/F,IAAAgG,MAAA,CAAWF,CAAAljC,OAAX,CAA4B,CAA5B,CAZpBmmB,CAaKllB,EAAI,CAAb,CAAgBA,CAAhB,CAAoBkiC,CAApB,CAAuCliC,CAAA,EAAvC,CACE,IAAIoiC,EAAe,CAAfA,CAAWpiC,CAAf,CAEAklB,EAAAA,CAAAA,CAAU1T,CAAA,CAAcwM,CAAA,CAAKikB,CAAA,CAAQG,CAAR,CAAL,CAAd,CAAuC,CAAA,CAAvC,CAFV,CAIAld,EAAAA,CAAAA,EAAW,GAAXA,CAAiBlH,CAAA,CAAKikB,CAAA,CAAQG,CAAR,CAAmB,CAAnB,CAAL,CAAjBld,CAIEmd,EAAAA,CAAYrkB,CAAA,CAAKikB,CAAA,CAAY,CAAZ,CAAQjiC,CAAR,CAAL,CAAA2D,MAAA,CAA2B,IAA3B,CAGhBuhB;CAAA,EAAU1T,CAAA,CAAcwM,CAAA,CAAKqkB,CAAA,CAAU,CAAV,CAAL,CAAd,CAAkC,CAAA,CAAlC,CAGe,EAAzB,GAAIA,CAAAtjC,OAAJ,GACEmmB,CADF,EACa,GADb,CACmBlH,CAAA,CAAKqkB,CAAA,CAAU,CAAV,CAAL,CADnB,CAGA,KAAA,CAAK9iC,CAAL,CAAA,CAAYY,CAAZ,CAAoB+kB,CAjC6B,CAoCjC,CAAA,CAAlB,GAAIwc,CAAJ,GACgB,IAAd,GAAIvhC,CAAJ,EAAsBwC,CAAA,CAAYxC,CAAZ,CAAtB,CACE,IAAAw0B,UAAA2N,WAAA,CAA0BpT,CAA1B,CADF,CAGM8R,CAAA59B,KAAA,CAAsB8rB,CAAtB,CAAJ,CACE,IAAAyF,UAAApxB,KAAA,CAAoB2rB,CAApB,CAA8B/uB,CAA9B,CADF,CAGEoxB,CAAA,CAAe,IAAAoD,UAAA,CAAe,CAAf,CAAf,CAAkCzF,CAAlC,CAA4C/uB,CAA5C,CAPN,CAcA,EADIg/B,CACJ,CADkB,IAAAA,YAClB,GAAe//B,CAAA,CAAQ+/B,CAAA,CAAY2C,CAAZ,CAAR,CAA+B,QAAQ,CAACt7B,CAAD,CAAK,CACzD,GAAI,CACFA,CAAA,CAAGrG,CAAH,CADE,CAEF,MAAOoI,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CAH6C,CAA5C,CAvF+B,CAtF3B,CA0MrB83B,SAAUA,QAAQ,CAAC9gC,CAAD,CAAMiH,CAAN,CAAU,CAAA,IACtB8tB,EAAQ,IADc,CAEtB6K,EAAe7K,CAAA6K,YAAfA,GAAqC7K,CAAA6K,YAArCA,CAAyDj5B,CAAA,EAAzDi5B,CAFsB,CAGtBoD,EAAapD,CAAA,CAAY5/B,CAAZ,CAAbgjC,GAAkCpD,CAAA,CAAY5/B,CAAZ,CAAlCgjC,CAAqD,EAArDA,CAEJA,EAAA/9B,KAAA,CAAegC,CAAf,CACAyT,EAAAlX,WAAA,CAAsB,QAAQ,EAAG,CAC1Bw/B,CAAAlD,QAAL,EAA0B,CAAA/K,CAAA70B,eAAA,CAAqBF,CAArB,CAA1B,EAAwDoD,CAAA,CAAY2xB,CAAA,CAAM/0B,CAAN,CAAZ,CAAxD,EAEEiH,CAAA,CAAG8tB,CAAA,CAAM/0B,CAAN,CAAH,CAH6B,CAAjC,CAOA,OAAO,SAAQ,EAAG,CAChBwE,EAAA,CAAYw+B,CAAZ,CAAuB/7B,CAAvB,CADgB,CAbQ,CA1MP,CApBkD,KAwQrEg8B,GAAc3pB,CAAA2pB,YAAA,EAxQuD,CAyQrEC,GAAY5pB,CAAA4pB,UAAA,EAzQyD,CA0QrE/G,GAAsC,IAAhB,EAAC8G,EAAD,EAAsC,IAAtC;AAAwBC,EAAxB,CAChBngC,EADgB,CAEhBo5B,QAA4B,CAAC7K,CAAD,CAAW,CACvC,MAAOA,EAAArpB,QAAA,CAAiB,OAAjB,CAA0Bg7B,EAA1B,CAAAh7B,QAAA,CAA+C,KAA/C,CAAsDi7B,EAAtD,CADgC,CA5QwB,CA+QrEzM,GAAkB,cA/QmD,CAgRrEG,GAAuB,aAE3B5qB,EAAAkzB,iBAAA,CAA2BxzB,CAAA,CAAmBwzB,QAAyB,CAAC9N,CAAD,CAAW+R,CAAX,CAAoB,CACzF,IAAI/T,EAAWgC,CAAAllB,KAAA,CAAc,UAAd,CAAXkjB,EAAwC,EAExC/vB,EAAA,CAAQ8jC,CAAR,CAAJ,CACE/T,CADF,CACaA,CAAAxoB,OAAA,CAAgBu8B,CAAhB,CADb,CAGE/T,CAAAnqB,KAAA,CAAck+B,CAAd,CAGF/R,EAAAllB,KAAA,CAAc,UAAd,CAA0BkjB,CAA1B,CATyF,CAAhE,CAUvBtsB,CAEJkJ,EAAAgzB,kBAAA,CAA4BtzB,CAAA,CAAmBszB,QAA0B,CAAC5N,CAAD,CAAW,CAClFkB,CAAA,CAAalB,CAAb,CAAuB,YAAvB,CADkF,CAAxD,CAExBtuB,CAEJkJ,EAAAioB,eAAA,CAAyBvoB,CAAA,CAAmBuoB,QAAuB,CAAC7C,CAAD,CAAWrlB,CAAX,CAAkBq3B,CAAlB,CAA4BC,CAA5B,CAAwC,CAEzGjS,CAAAllB,KAAA,CADek3B,CAAAxK,CAAYyK,CAAA,CAAa,yBAAb,CAAyC,eAArDzK,CAAwE,QACvF,CAAwB7sB,CAAxB,CAFyG,CAAlF,CAGrBjJ,CAEJkJ,EAAAknB,gBAAA,CAA0BxnB,CAAA,CAAmBwnB,QAAwB,CAAC9B,CAAD,CAAWgS,CAAX,CAAqB,CACxF9Q,CAAA,CAAalB,CAAb,CAAuBgS,CAAA,CAAW,kBAAX,CAAgC,UAAvD,CADwF,CAAhE,CAEtBtgC,CAEJ,OAAOkJ,EA3SkE,CAJ/D,CA1W6C,CAytE3DmqB,QAASA,GAAkB,CAACrrB,CAAD,CAAO,CAChC,MAAO0R,GAAA,CAAU1R,CAAA7C,QAAA,CAAayuB,EAAb;AAA4B,EAA5B,CAAV,CADyB,CAgElCuL,QAASA,GAAe,CAACqB,CAAD,CAAOC,CAAP,CAAa,CAAA,IAC/BC,EAAS,EADsB,CAE/BC,EAAUH,CAAAl/B,MAAA,CAAW,KAAX,CAFqB,CAG/Bs/B,EAAUH,CAAAn/B,MAAA,CAAW,KAAX,CAHqB,CAM1B3D,EAAI,CADb,EAAA,CACA,IAAA,CAAgBA,CAAhB,CAAoBgjC,CAAAjkC,OAApB,CAAoCiB,CAAA,EAApC,CAAyC,CAEvC,IADA,IAAIkjC,EAAQF,CAAA,CAAQhjC,CAAR,CAAZ,CACSc,EAAI,CAAb,CAAgBA,CAAhB,CAAoBmiC,CAAAlkC,OAApB,CAAoC+B,CAAA,EAApC,CACE,GAAIoiC,CAAJ,EAAaD,CAAA,CAAQniC,CAAR,CAAb,CAAyB,SAAS,CAEpCiiC,EAAA,GAA2B,CAAhB,CAAAA,CAAAhkC,OAAA,CAAoB,GAApB,CAA0B,EAArC,EAA2CmkC,CALJ,CAOzC,MAAOH,EAb4B,CAgBrCpH,QAASA,GAAc,CAACwH,CAAD,CAAU,CAC/BA,CAAA,CAAUrkC,CAAA,CAAOqkC,CAAP,CACV,KAAInjC,EAAImjC,CAAApkC,OAER,IAAS,CAAT,EAAIiB,CAAJ,CACE,MAAOmjC,EAGT,KAAA,CAAOnjC,CAAA,EAAP,CAAA,CA/mPsBy2B,CAinPpB,GADW0M,CAAA9/B,CAAQrD,CAARqD,CACPsF,SAAJ,EACExE,EAAAzE,KAAA,CAAYyjC,CAAZ,CAAqBnjC,CAArB,CAAwB,CAAxB,CAGJ,OAAOmjC,EAdwB,CAqBjC/S,QAASA,GAAuB,CAAC9iB,CAAD,CAAa81B,CAAb,CAAoB,CAClD,GAAIA,CAAJ,EAAavkC,CAAA,CAASukC,CAAT,CAAb,CAA8B,MAAOA,EACrC,IAAIvkC,CAAA,CAASyO,CAAT,CAAJ,CAA0B,CACxB,IAAI/H,EAAQ89B,EAAArmB,KAAA,CAAe1P,CAAf,CACZ,IAAI/H,CAAJ,CAAW,MAAOA,EAAA,CAAM,CAAN,CAFM,CAFwB,CAmBpD6S,QAASA,GAAmB,EAAG,CAAA,IACzB6c,EAAc,EADW,CAEzBqO,EAAU,CAAA,CAUd,KAAAC,SAAA,CAAgBC,QAAQ,CAACn5B,CAAD,CAAOtF,CAAP,CAAoB,CAC1CuJ,EAAA,CAAwBjE,CAAxB,CAA8B,YAA9B,CACIxJ,EAAA,CAASwJ,CAAT,CAAJ,CACE3I,CAAA,CAAOuzB,CAAP,CAAoB5qB,CAApB,CADF,CAGE4qB,CAAA,CAAY5qB,CAAZ,CAHF,CAGsBtF,CALoB,CAc5C,KAAA0+B,aAAA,CAAoBC,QAAQ,EAAG,CAC7BJ,CAAA,CAAU,CAAA,CADmB,CAK/B,KAAAlgB,KAAA;AAAY,CAAC,WAAD,CAAc,SAAd,CAAyB,QAAQ,CAAC4D,CAAD,CAAY3L,CAAZ,CAAqB,CAyGhEsoB,QAASA,EAAa,CAACrd,CAAD,CAASqT,CAAT,CAAqBpG,CAArB,CAA+BlpB,CAA/B,CAAqC,CACzD,GAAMic,CAAAA,CAAN,EAAgB,CAAAzlB,CAAA,CAASylB,CAAAkS,OAAT,CAAhB,CACE,KAAMh6B,EAAA,CAAO,aAAP,CAAA,CAAsB,OAAtB,CAEJ6L,CAFI,CAEEsvB,CAFF,CAAN,CAKFrT,CAAAkS,OAAA,CAAcmB,CAAd,CAAA,CAA4BpG,CAP6B,CA5E3D,MAAO,SAAQ,CAACqQ,CAAD,CAAatd,CAAb,CAAqBud,CAArB,CAA4BT,CAA5B,CAAmC,CAAA,IAQ5C7P,CAR4C,CAQ3BxuB,CAR2B,CAQd40B,CAClCkK,EAAA,CAAkB,CAAA,CAAlB,GAAQA,CACJT,EAAJ,EAAavkC,CAAA,CAASukC,CAAT,CAAb,GACEzJ,CADF,CACeyJ,CADf,CAIA,IAAIvkC,CAAA,CAAS+kC,CAAT,CAAJ,CAA0B,CACxBr+B,CAAA,CAAQq+B,CAAAr+B,MAAA,CAAiB89B,EAAjB,CACR,IAAK99B,CAAAA,CAAL,CACE,KAAMu+B,GAAA,CAAkB,SAAlB,CAE8CF,CAF9C,CAAN,CAIF7+B,CAAA,CAAcQ,CAAA,CAAM,CAAN,CACdo0B,EADA,CACaA,CADb,EAC2Bp0B,CAAA,CAAM,CAAN,CAC3Bq+B,EAAA,CAAa3O,CAAAx1B,eAAA,CAA2BsF,CAA3B,CAAA,CACPkwB,CAAA,CAAYlwB,CAAZ,CADO,CAEPwJ,EAAA,CAAO+X,CAAAkS,OAAP,CAAsBzzB,CAAtB,CAAmC,CAAA,CAAnC,CAFO,GAGJu+B,CAAA,CAAU/0B,EAAA,CAAO8M,CAAP,CAAgBtW,CAAhB,CAA6B,CAAA,CAA7B,CAAV,CAA+CxG,CAH3C,CAKb6P,GAAA,CAAYw1B,CAAZ,CAAwB7+B,CAAxB,CAAqC,CAAA,CAArC,CAdwB,CAiB1B,GAAI8+B,CAAJ,CAoBE,MATIE,EASiB,CATKpd,CAAC/nB,CAAA,CAAQglC,CAAR,CAAA,CACzBA,CAAA,CAAWA,CAAA7kC,OAAX,CAA+B,CAA/B,CADyB,CACW6kC,CADZjd,WASL,CAPrB4M,CAOqB,CAPVv0B,MAAAoD,OAAA,CAAc2hC,CAAd,EAAqC,IAArC,CAOU,CALjBpK,CAKiB,EAJnBgK,CAAA,CAAcrd,CAAd,CAAsBqT,CAAtB,CAAkCpG,CAAlC,CAA4CxuB,CAA5C,EAA2D6+B,CAAAv5B,KAA3D,CAImB,CAAA3I,CAAA,CAAO,QAAQ,EAAG,CACrC,IAAIwjB,EAAS8B,CAAA5b,OAAA,CAAiBw4B,CAAjB,CAA6BrQ,CAA7B,CAAuCjN,CAAvC,CAA+CvhB,CAA/C,CACTmgB,EAAJ,GAAeqO,CAAf,GAA4B1yB,CAAA,CAASqkB,CAAT,CAA5B,EAAgD1lB,CAAA,CAAW0lB,CAAX,CAAhD,IACEqO,CACA,CADWrO,CACX,CAAIyU,CAAJ,EAEEgK,CAAA,CAAcrd,CAAd,CAAsBqT,CAAtB,CAAkCpG,CAAlC,CAA4CxuB,CAA5C,EAA2D6+B,CAAAv5B,KAA3D,CAJJ,CAOA;MAAOkpB,EAT8B,CAAlB,CAUlB,CACDA,SAAUA,CADT,CAEDoG,WAAYA,CAFX,CAVkB,CAgBvBpG,EAAA,CAAWvM,CAAAnC,YAAA,CAAsB+e,CAAtB,CAAkCtd,CAAlC,CAA0CvhB,CAA1C,CAEP40B,EAAJ,EACEgK,CAAA,CAAcrd,CAAd,CAAsBqT,CAAtB,CAAkCpG,CAAlC,CAA4CxuB,CAA5C,EAA2D6+B,CAAAv5B,KAA3D,CAGF,OAAOkpB,EAzEyC,CA7Bc,CAAtD,CA/BiB,CA6K/Bjb,QAASA,GAAiB,EAAG,CAC3B,IAAA8K,KAAA,CAAY,CAAC,SAAD,CAAY,QAAQ,CAAC/kB,CAAD,CAAS,CACvC,MAAOS,EAAA,CAAOT,CAAAC,SAAP,CADgC,CAA7B,CADe,CA8C7Bka,QAASA,GAAyB,EAAG,CACnC,IAAA4K,KAAA,CAAY,CAAC,MAAD,CAAS,QAAQ,CAACvJ,CAAD,CAAO,CAClC,MAAO,SAAQ,CAACmqB,CAAD,CAAYC,CAAZ,CAAmB,CAChCpqB,CAAAgQ,MAAAljB,MAAA,CAAiBkT,CAAjB,CAAuBjY,SAAvB,CADgC,CADA,CAAxB,CADuB,CA8CrCsiC,QAASA,GAAc,CAACC,CAAD,CAAI,CACzB,MAAItjC,EAAA,CAASsjC,CAAT,CAAJ,CACSljC,CAAA,CAAOkjC,CAAP,CAAA,CAAYA,CAAAC,YAAA,EAAZ,CAA8Bt9B,EAAA,CAAOq9B,CAAP,CADvC,CAGOA,CAJkB,CAQ3B/qB,QAASA,GAA4B,EAAG,CAiBtC,IAAAgK,KAAA,CAAYC,QAAQ,EAAG,CACrB,MAAOghB,SAA0B,CAACC,CAAD,CAAS,CACxC,GAAKA,CAAAA,CAAL,CAAa,MAAO,EACpB,KAAIl7B,EAAQ,EACZvJ,GAAA,CAAcykC,CAAd,CAAsB,QAAQ,CAACnkC,CAAD,CAAQZ,CAAR,CAAa,CAC3B,IAAd,GAAIY,CAAJ,EAAsBwC,CAAA,CAAYxC,CAAZ,CAAtB,GACIvB,CAAA,CAAQuB,CAAR,CAAJ,CACEf,CAAA,CAAQe,CAAR,CAAe,QAAQ,CAACgkC,CAAD,CAAII,CAAJ,CAAO,CAC5Bn7B,CAAA5E,KAAA,CAAW8E,EAAA,CAAe/J,CAAf,CAAX,CAAkC,GAAlC,CAAwC+J,EAAA,CAAe46B,EAAA,CAAeC,CAAf,CAAf,CAAxC,CAD4B,CAA9B,CADF,CAKE/6B,CAAA5E,KAAA,CAAW8E,EAAA,CAAe/J,CAAf,CAAX,CAAiC,GAAjC,CAAuC+J,EAAA,CAAe46B,EAAA,CAAe/jC,CAAf,CAAf,CAAvC,CANF,CADyC,CAA3C,CAWA;MAAOiJ,EAAAG,KAAA,CAAW,GAAX,CAdiC,CADrB,CAjBe,CAqCxC+P,QAASA,GAAkC,EAAG,CA4C5C,IAAA8J,KAAA,CAAYC,QAAQ,EAAG,CACrB,MAAOmhB,SAAkC,CAACF,CAAD,CAAS,CAMhDG,QAASA,EAAS,CAACC,CAAD,CAAct6B,CAAd,CAAsBu6B,CAAtB,CAAgC,CAC5B,IAApB,GAAID,CAAJ,EAA4B/hC,CAAA,CAAY+hC,CAAZ,CAA5B,GACI9lC,CAAA,CAAQ8lC,CAAR,CAAJ,CACEtlC,CAAA,CAAQslC,CAAR,CAAqB,QAAQ,CAACvkC,CAAD,CAAQ8D,CAAR,CAAe,CAC1CwgC,CAAA,CAAUtkC,CAAV,CAAiBiK,CAAjB,CAA0B,GAA1B,EAAiCvJ,CAAA,CAASV,CAAT,CAAA,CAAkB8D,CAAlB,CAA0B,EAA3D,EAAiE,GAAjE,CAD0C,CAA5C,CADF,CAIWpD,CAAA,CAAS6jC,CAAT,CAAJ,EAA8B,CAAAzjC,CAAA,CAAOyjC,CAAP,CAA9B,CACL7kC,EAAA,CAAc6kC,CAAd,CAA2B,QAAQ,CAACvkC,CAAD,CAAQZ,CAAR,CAAa,CAC9CklC,CAAA,CAAUtkC,CAAV,CAAiBiK,CAAjB,EACKu6B,CAAA,CAAW,EAAX,CAAgB,GADrB,EAEIplC,CAFJ,EAGKolC,CAAA,CAAW,EAAX,CAAgB,GAHrB,EAD8C,CAAhD,CADK,CAQLv7B,CAAA5E,KAAA,CAAW8E,EAAA,CAAec,CAAf,CAAX,CAAoC,GAApC,CAA0Cd,EAAA,CAAe46B,EAAA,CAAeQ,CAAf,CAAf,CAA1C,CAbF,CADgD,CALlD,GAAKJ,CAAAA,CAAL,CAAa,MAAO,EACpB,KAAIl7B,EAAQ,EACZq7B,EAAA,CAAUH,CAAV,CAAkB,EAAlB,CAAsB,CAAA,CAAtB,CACA,OAAOl7B,EAAAG,KAAA,CAAW,GAAX,CAJyC,CAD7B,CA5CqB,CAwE9Cq7B,QAASA,GAA4B,CAACn5B,CAAD,CAAOo5B,CAAP,CAAgB,CACnD,GAAIhmC,CAAA,CAAS4M,CAAT,CAAJ,CAAoB,CAElB,IAAIq5B,EAAWr5B,CAAAjE,QAAA,CAAau9B,EAAb,CAAqC,EAArC,CAAA/mB,KAAA,EAEf,IAAI8mB,CAAJ,CAAc,CACZ,IAAIE,EAAcH,CAAA,CAAQ,cAAR,CACd,EAAC,CAAD,CAAC,CAAD,EAAC,CAAD,GAAC,CAAA,QAAA,CAAA,EAAA,CAAD,IAWN,CAXM,EAUFI,CAVE,CAAkEljC,CAUxDwD,MAAA,CAAU2/B,EAAV,CAVV,GAWcC,EAAA,CAAUF,CAAA,CAAU,CAAV,CAAV,CAAA7hC,KAAA,CAXoDrB,CAWpD,CAXd,CAAA,EAAJ,GACE0J,CADF,CACSvE,EAAA,CAAS49B,CAAT,CADT,CAFY,CAJI,CAYpB,MAAOr5B,EAb4C,CA2BrD25B,QAASA,GAAY,CAACP,CAAD,CAAU,CAAA,IACzB3mB;AAAShY,CAAA,EADgB,CACHlG,CAQtBnB,EAAA,CAASgmC,CAAT,CAAJ,CACEzlC,CAAA,CAAQylC,CAAAlhC,MAAA,CAAc,IAAd,CAAR,CAA6B,QAAQ,CAAC0hC,CAAD,CAAO,CAC1CrlC,CAAA,CAAIqlC,CAAAnhC,QAAA,CAAa,GAAb,CACS,KAAA,EAAAJ,CAAA,CAAUka,CAAA,CAAKqnB,CAAA3Z,OAAA,CAAY,CAAZ,CAAe1rB,CAAf,CAAL,CAAV,CAAoC,EAAA,CAAAge,CAAA,CAAKqnB,CAAA3Z,OAAA,CAAY1rB,CAAZ,CAAgB,CAAhB,CAAL,CAR/CT,EAAJ,GACE2e,CAAA,CAAO3e,CAAP,CADF,CACgB2e,CAAA,CAAO3e,CAAP,CAAA,CAAc2e,CAAA,CAAO3e,CAAP,CAAd,CAA4B,IAA5B,CAAmCsH,CAAnC,CAAyCA,CADzD,CAM4C,CAA5C,CADF,CAKWhG,CAAA,CAASgkC,CAAT,CALX,EAMEzlC,CAAA,CAAQylC,CAAR,CAAiB,QAAQ,CAACS,CAAD,CAAYC,CAAZ,CAAuB,CACjC,IAAA,EAAAzhC,CAAA,CAAUyhC,CAAV,CAAA,CAAsB,EAAAvnB,CAAA,CAAKsnB,CAAL,CAZjC/lC,EAAJ,GACE2e,CAAA,CAAO3e,CAAP,CADF,CACgB2e,CAAA,CAAO3e,CAAP,CAAA,CAAc2e,CAAA,CAAO3e,CAAP,CAAd,CAA4B,IAA5B,CAAmCsH,CAAnC,CAAyCA,CADzD,CAWgD,CAAhD,CAKF,OAAOqX,EApBsB,CAoC/BsnB,QAASA,GAAa,CAACX,CAAD,CAAU,CAC9B,IAAIY,CAEJ,OAAO,SAAQ,CAACp7B,CAAD,CAAO,CACfo7B,CAAL,GAAiBA,CAAjB,CAA+BL,EAAA,CAAaP,CAAb,CAA/B,CAEA,OAAIx6B,EAAJ,EACMlK,CAIGA,CAJKslC,CAAA,CAAW3hC,CAAA,CAAUuG,CAAV,CAAX,CAILlK,CAHO,IAAK,EAGZA,GAHHA,CAGGA,GAFLA,CAEKA,CAFG,IAEHA,EAAAA,CALT,EAQOslC,CAXa,CAHQ,CA8BhCC,QAASA,GAAa,CAACj6B,CAAD,CAAOo5B,CAAP,CAAgBc,CAAhB,CAAwBC,CAAxB,CAA6B,CACjD,GAAIpmC,CAAA,CAAWomC,CAAX,CAAJ,CACE,MAAOA,EAAA,CAAIn6B,CAAJ,CAAUo5B,CAAV,CAAmBc,CAAnB,CAGTvmC,EAAA,CAAQwmC,CAAR,CAAa,QAAQ,CAACp/B,CAAD,CAAK,CACxBiF,CAAA,CAAOjF,CAAA,CAAGiF,CAAH,CAASo5B,CAAT,CAAkBc,CAAlB,CADiB,CAA1B,CAIA,OAAOl6B,EAT0C,CAwBnDyN,QAASA,GAAa,EAAG,CAkCvB,IAAI2sB,EAAW,IAAAA,SAAXA,CAA2B,CAE7BC,kBAAmB,CAAClB,EAAD,CAFU,CAK7BmB,iBAAkB,CAAC,QAAQ,CAACC,CAAD,CAAI,CAC7B,MAAOnlC,EAAA,CAASmlC,CAAT,CAAA,EAv2SmB,eAu2SnB;AAv2SJtjC,EAAAhD,KAAA,CAu2S2BsmC,CAv2S3B,CAu2SI,EA71SmB,eA61SnB,GA71SJtjC,EAAAhD,KAAA,CA61SyCsmC,CA71SzC,CA61SI,EAl2SmB,mBAk2SnB,GAl2SJtjC,EAAAhD,KAAA,CAk2S2DsmC,CAl2S3D,CAk2SI,CAA4Dl/B,EAAA,CAAOk/B,CAAP,CAA5D,CAAwEA,CADlD,CAAb,CALW,CAU7BnB,QAAS,CACPoB,OAAQ,CACN,OAAU,mCADJ,CADD,CAIPrO,KAAQnyB,EAAA,CAAYygC,EAAZ,CAJD,CAKPliB,IAAQve,EAAA,CAAYygC,EAAZ,CALD,CAMPC,MAAQ1gC,EAAA,CAAYygC,EAAZ,CAND,CAVoB,CAmB7BE,eAAgB,YAnBa,CAoB7BC,eAAgB,cApBa,CAsB7BC,gBAAiB,sBAtBY,CAA/B,CAyBIC,EAAgB,CAAA,CAoBpB,KAAAA,cAAA,CAAqBC,QAAQ,CAACrmC,CAAD,CAAQ,CACnC,MAAIyC,EAAA,CAAUzC,CAAV,CAAJ,EACEomC,CACO,CADS,CAAEpmC,CAAAA,CACX,CAAA,IAFT,EAIOomC,CAL4B,CAQrC,KAAIE,EAAmB,CAAA,CAgBvB,KAAAC,2BAAA,CAAkCC,QAAQ,CAACxmC,CAAD,CAAQ,CAChD,MAAIyC,EAAA,CAAUzC,CAAV,CAAJ,EACEsmC,CACO,CADY,CAAEtmC,CAAAA,CACd,CAAA,IAFT,EAIOsmC,CALyC,CAqBlD,KAAIG,EAAuB,IAAAC,aAAvBD,CAA2C,EAE/C,KAAAxjB,KAAA,CAAY,CAAC,cAAD,CAAiB,gBAAjB,CAAmC,eAAnC;AAAoD,YAApD,CAAkE,IAAlE,CAAwE,WAAxE,CACR,QAAQ,CAAC7J,CAAD,CAAesC,CAAf,CAA+B5D,CAA/B,CAA8CgC,CAA9C,CAA0DE,CAA1D,CAA8D6M,CAA9D,CAAyE,CAwhBnF/N,QAASA,EAAK,CAAC6tB,CAAD,CAAgB,CAwF5BhB,QAASA,EAAiB,CAACiB,CAAD,CAAW,CAEnC,IAAIC,EAAOtlC,CAAA,CAAO,EAAP,CAAWqlC,CAAX,CACXC,EAAAv7B,KAAA,CAAYi6B,EAAA,CAAcqB,CAAAt7B,KAAd,CAA6Bs7B,CAAAlC,QAA7B,CAA+CkC,CAAApB,OAA/C,CACcx7B,CAAA27B,kBADd,CAEMH,EAAAA,CAAAoB,CAAApB,OAAlB,OA9vBC,IA8vBM,EA9vBCA,CA8vBD,EA9vBoB,GA8vBpB,CA9vBWA,CA8vBX,CACHqB,CADG,CAEH7sB,CAAA8sB,OAAA,CAAUD,CAAV,CAP+B,CAUrCE,QAASA,EAAgB,CAACrC,CAAD,CAAU16B,CAAV,CAAkB,CAAA,IACrCg9B,CADqC,CACtBC,EAAmB,EAEtChoC,EAAA,CAAQylC,CAAR,CAAiB,QAAQ,CAACwC,CAAD,CAAWC,CAAX,CAAmB,CACtC9nC,CAAA,CAAW6nC,CAAX,CAAJ,EACEF,CACA,CADgBE,CAAA,CAASl9B,CAAT,CAChB,CAAqB,IAArB,EAAIg9B,CAAJ,GACEC,CAAA,CAAiBE,CAAjB,CADF,CAC6BH,CAD7B,CAFF,EAMEC,CAAA,CAAiBE,CAAjB,CANF,CAM6BD,CAPa,CAA5C,CAWA,OAAOD,EAdkC,CAhG3C,GAAK,CAAAvmC,CAAA,CAASimC,CAAT,CAAL,CACE,KAAMtoC,EAAA,CAAO,OAAP,CAAA,CAAgB,QAAhB,CAA0FsoC,CAA1F,CAAN,CAGF,GAAK,CAAAjoC,CAAA,CAASioC,CAAAvc,IAAT,CAAL,CACE,KAAM/rB,EAAA,CAAO,OAAP,CAAA,CAAgB,QAAhB,CAA6FsoC,CAAAvc,IAA7F,CAAN,CAGF,IAAIpgB,EAASzI,CAAA,CAAO,CAClBgO,OAAQ,KADU,CAElBq2B,iBAAkBF,CAAAE,iBAFA,CAGlBD,kBAAmBD,CAAAC,kBAHD,CAIlBQ,gBAAiBT,CAAAS,gBAJC,CAAP;AAKVQ,CALU,CAOb38B,EAAA06B,QAAA,CAkGA0C,QAAqB,CAACp9B,CAAD,CAAS,CAAA,IACxBq9B,EAAa3B,CAAAhB,QADW,CAExB4C,EAAa/lC,CAAA,CAAO,EAAP,CAAWyI,CAAA06B,QAAX,CAFW,CAGxB6C,CAHwB,CAGTC,CAHS,CAGeC,CAHf,CAK5BJ,EAAa9lC,CAAA,CAAO,EAAP,CAAW8lC,CAAAvB,OAAX,CAA8BuB,CAAA,CAAW1jC,CAAA,CAAUqG,CAAAuF,OAAV,CAAX,CAA9B,CAGb,EAAA,CACA,IAAKg4B,CAAL,GAAsBF,EAAtB,CAAkC,CAChCG,CAAA,CAAyB7jC,CAAA,CAAU4jC,CAAV,CAEzB,KAAKE,CAAL,GAAsBH,EAAtB,CACE,GAAI3jC,CAAA,CAAU8jC,CAAV,CAAJ,GAAiCD,CAAjC,CACE,SAAS,CAIbF,EAAA,CAAWC,CAAX,CAAA,CAA4BF,CAAA,CAAWE,CAAX,CATI,CAalC,MAAOR,EAAA,CAAiBO,CAAjB,CAA6BhiC,EAAA,CAAY0E,CAAZ,CAA7B,CAtBqB,CAlGb,CAAa28B,CAAb,CACjB38B,EAAAuF,OAAA,CAAgByB,EAAA,CAAUhH,CAAAuF,OAAV,CAChBvF,EAAAm8B,gBAAA,CAAyBznC,CAAA,CAASsL,CAAAm8B,gBAAT,CAAA,CACvBtf,CAAA1a,IAAA,CAAcnC,CAAAm8B,gBAAd,CADuB,CACiBn8B,CAAAm8B,gBAuB1C,KAAIuB,EAAQ,CArBQC,QAAQ,CAAC39B,CAAD,CAAS,CACnC,IAAI06B,EAAU16B,CAAA06B,QAAd,CACIkD,EAAUrC,EAAA,CAAcv7B,CAAAsB,KAAd,CAA2B+5B,EAAA,CAAcX,CAAd,CAA3B,CAAmDtmC,CAAnD,CAA8D4L,CAAA47B,iBAA9D,CAGVpjC,EAAA,CAAYolC,CAAZ,CAAJ,EACE3oC,CAAA,CAAQylC,CAAR,CAAiB,QAAQ,CAAC1kC,CAAD,CAAQmnC,CAAR,CAAgB,CACb,cAA1B,GAAIxjC,CAAA,CAAUwjC,CAAV,CAAJ,EACI,OAAOzC,CAAA,CAAQyC,CAAR,CAF4B,CAAzC,CAOE3kC,EAAA,CAAYwH,CAAA69B,gBAAZ,CAAJ,EAA4C,CAAArlC,CAAA,CAAYkjC,CAAAmC,gBAAZ,CAA5C,GACE79B,CAAA69B,gBADF,CAC2BnC,CAAAmC,gBAD3B,CAKA;MAAOC,EAAA,CAAQ99B,CAAR,CAAgB49B,CAAhB,CAAA5K,KAAA,CAA8B2I,CAA9B,CAAiDA,CAAjD,CAlB4B,CAqBzB,CAAgBvnC,CAAhB,CAAZ,CACI2pC,EAAU/tB,CAAAguB,KAAA,CAAQh+B,CAAR,CAYd,KATA/K,CAAA,CAAQgpC,CAAR,CAA8B,QAAQ,CAACC,CAAD,CAAc,CAClD,CAAIA,CAAAC,QAAJ,EAA2BD,CAAAE,aAA3B,GACEV,CAAA98B,QAAA,CAAcs9B,CAAAC,QAAd,CAAmCD,CAAAE,aAAnC,CAEF,EAAIF,CAAAtB,SAAJ,EAA4BsB,CAAAG,cAA5B,GACEX,CAAArjC,KAAA,CAAW6jC,CAAAtB,SAAX,CAAiCsB,CAAAG,cAAjC,CALgD,CAApD,CASA,CAAOX,CAAA9oC,OAAP,CAAA,CAAqB,CACf0pC,CAAAA,CAASZ,CAAAzhB,MAAA,EACb,KAAIsiB,EAAWb,CAAAzhB,MAAA,EAAf,CAEA8hB,EAAUA,CAAA/K,KAAA,CAAasL,CAAb,CAAqBC,CAArB,CAJS,CAOjBjC,CAAJ,EACEyB,CAAAS,QASA,CATkBC,QAAQ,CAACpiC,CAAD,CAAK,CAC7B4H,EAAA,CAAY5H,CAAZ,CAAgB,IAAhB,CAEA0hC,EAAA/K,KAAA,CAAa,QAAQ,CAAC4J,CAAD,CAAW,CAC9BvgC,CAAA,CAAGugC,CAAAt7B,KAAH,CAAkBs7B,CAAApB,OAAlB,CAAmCoB,CAAAlC,QAAnC,CAAqD16B,CAArD,CAD8B,CAAhC,CAGA,OAAO+9B,EANsB,CAS/B,CAAAA,CAAAre,MAAA,CAAgBgf,QAAQ,CAACriC,CAAD,CAAK,CAC3B4H,EAAA,CAAY5H,CAAZ,CAAgB,IAAhB,CAEA0hC,EAAA/K,KAAA,CAAa,IAAb,CAAmB,QAAQ,CAAC4J,CAAD,CAAW,CACpCvgC,CAAA,CAAGugC,CAAAt7B,KAAH,CAAkBs7B,CAAApB,OAAlB,CAAmCoB,CAAAlC,QAAnC,CAAqD16B,CAArD,CADoC,CAAtC,CAGA,OAAO+9B,EANoB,CAV/B,GAmBEA,CAAAS,QACA,CADkBG,EAAA,CAAoB,SAApB,CAClB,CAAAZ,CAAAre,MAAA,CAAgBif,EAAA,CAAoB,OAApB,CApBlB,CAuBA,OAAOZ,EAtFqB,CAwR9BD,QAASA,EAAO,CAAC99B,CAAD;AAAS49B,CAAT,CAAkB,CA+DhCgB,QAASA,EAAI,CAACpD,CAAD,CAASoB,CAAT,CAAmBiC,CAAnB,CAAkCC,CAAlC,CAA8C,CAUzDC,QAASA,EAAkB,EAAG,CAC5BC,CAAA,CAAepC,CAAf,CAAyBpB,CAAzB,CAAiCqD,CAAjC,CAAgDC,CAAhD,CAD4B,CAT1BnjB,CAAJ,GAz/BC,GA0/BC,EAAc6f,CAAd,EA1/ByB,GA0/BzB,CAAcA,CAAd,CACE7f,CAAA9B,IAAA,CAAUuG,CAAV,CAAe,CAACob,CAAD,CAASoB,CAAT,CAAmB3B,EAAA,CAAa4D,CAAb,CAAnB,CAAgDC,CAAhD,CAAf,CADF,CAIEnjB,CAAAkI,OAAA,CAAazD,CAAb,CALJ,CAaIgc,EAAJ,CACEtsB,CAAAmvB,YAAA,CAAuBF,CAAvB,CADF,EAGEA,CAAA,EACA,CAAKjvB,CAAAovB,QAAL,EAAyBpvB,CAAAzO,OAAA,EAJ3B,CAdyD,CA0B3D29B,QAASA,EAAc,CAACpC,CAAD,CAAWpB,CAAX,CAAmBd,CAAnB,CAA4BoE,CAA5B,CAAwC,CAE7DtD,CAAA,CAAoB,EAAX,EAAAA,CAAA,CAAeA,CAAf,CAAwB,CAEjC,EAthCC,GAshCA,EAAUA,CAAV,EAthC0B,GAshC1B,CAAUA,CAAV,CAAoB2D,CAAAC,QAApB,CAAuCD,CAAArC,OAAxC,EAAyD,CACvDx7B,KAAMs7B,CADiD,CAEvDpB,OAAQA,CAF+C,CAGvDd,QAASW,EAAA,CAAcX,CAAd,CAH8C,CAIvD16B,OAAQA,CAJ+C,CAKvD8+B,WAAYA,CAL2C,CAAzD,CAJ6D,CAa/DO,QAASA,EAAwB,CAACtkB,CAAD,CAAS,CACxCikB,CAAA,CAAejkB,CAAAzZ,KAAf,CAA4ByZ,CAAAygB,OAA5B,CAA2ClgC,EAAA,CAAYyf,CAAA2f,QAAA,EAAZ,CAA3C,CAA0E3f,CAAA+jB,WAA1E,CADwC,CAI1CQ,QAASA,EAAgB,EAAG,CAC1B,IAAIxV,EAAMhb,CAAAywB,gBAAAxlC,QAAA,CAA8BiG,CAA9B,CACG,GAAb,GAAI8pB,CAAJ,EAAgBhb,CAAAywB,gBAAAvlC,OAAA,CAA6B8vB,CAA7B,CAAkC,CAAlC,CAFU,CA1GI,IAC5BqV,EAAWnvB,CAAAkS,MAAA,EADiB,CAE5B6b,EAAUoB,CAAApB,QAFkB,CAG5BpiB,CAH4B,CAI5B6jB,CAJ4B,CAK5BlC,EAAat9B,CAAA06B,QALe,CAM5Bta,EAAMqf,CAAA,CAASz/B,CAAAogB,IAAT,CAAqBpgB,CAAAm8B,gBAAA,CAAuBn8B,CAAAm6B,OAAvB,CAArB,CAEVrrB;CAAAywB,gBAAAllC,KAAA,CAA2B2F,CAA3B,CACA+9B,EAAA/K,KAAA,CAAasM,CAAb,CAA+BA,CAA/B,CAGK3jB,EAAA3b,CAAA2b,MAAL,EAAqBA,CAAA+f,CAAA/f,MAArB,EAAyD,CAAA,CAAzD,GAAwC3b,CAAA2b,MAAxC,EACuB,KADvB,GACK3b,CAAAuF,OADL,EACkD,OADlD,GACgCvF,CAAAuF,OADhC,GAEEoW,CAFF,CAEUjlB,CAAA,CAASsJ,CAAA2b,MAAT,CAAA,CAAyB3b,CAAA2b,MAAzB,CACAjlB,CAAA,CAASglC,CAAA/f,MAAT,CAAA,CAA2B+f,CAAA/f,MAA3B,CACA+jB,CAJV,CAOI/jB,EAAJ,GACE6jB,CACA,CADa7jB,CAAAxZ,IAAA,CAAUie,CAAV,CACb,CAAI3nB,CAAA,CAAU+mC,CAAV,CAAJ,CACoBA,CAAlB,EAhvUMnqC,CAAA,CAgvUYmqC,CAhvUDxM,KAAX,CAgvUN,CAEEwM,CAAAxM,KAAA,CAAgBqM,CAAhB,CAA0CA,CAA1C,CAFF,CAKM5qC,CAAA,CAAQ+qC,CAAR,CAAJ,CACER,CAAA,CAAeQ,CAAA,CAAW,CAAX,CAAf,CAA8BA,CAAA,CAAW,CAAX,CAA9B,CAA6ClkC,EAAA,CAAYkkC,CAAA,CAAW,CAAX,CAAZ,CAA7C,CAAyEA,CAAA,CAAW,CAAX,CAAzE,CADF,CAGER,CAAA,CAAeQ,CAAf,CAA2B,GAA3B,CAAgC,EAAhC,CAAoC,IAApC,CATN,CAcE7jB,CAAA9B,IAAA,CAAUuG,CAAV,CAAe2d,CAAf,CAhBJ,CAuBIvlC,EAAA,CAAYgnC,CAAZ,CAAJ,GAQE,CAPIG,CAOJ,CAPgBC,EAAA,CAAgB5/B,CAAAogB,IAAhB,CAAA,CACV1O,CAAA,EAAA,CAAiB1R,CAAAi8B,eAAjB,EAA0CP,CAAAO,eAA1C,CADU,CAEV7nC,CAKN,IAHEkpC,CAAA,CAAYt9B,CAAAk8B,eAAZ,EAAqCR,CAAAQ,eAArC,CAGF,CAHmEyD,CAGnE,EAAAvwB,CAAA,CAAapP,CAAAuF,OAAb,CAA4B6a,CAA5B,CAAiCwd,CAAjC,CAA0CgB,CAA1C,CAAgDtB,CAAhD,CAA4Dt9B,CAAA6/B,QAA5D,CACI7/B,CAAA69B,gBADJ,CAC4B79B,CAAA8/B,aAD5B,CARF,CAYA,OAAO/B,EAtDyB,CAiHlC0B,QAASA,EAAQ,CAACrf,CAAD,CAAM2f,CAAN,CAAwB,CACT,CAA9B,CAAIA,CAAAnrC,OAAJ,GACEwrB,CADF,GACgC,EAAtB,EAACA,CAAArmB,QAAA,CAAY,GAAZ,CAAD,CAA2B,GAA3B,CAAiC,GAD3C,EACkDgmC,CADlD,CAGA;MAAO3f,EAJgC,CA/5BzC,IAAIsf,EAAe5xB,CAAA,CAAc,OAAd,CAKnB4tB,EAAAS,gBAAA,CAA2BznC,CAAA,CAASgnC,CAAAS,gBAAT,CAAA,CACzBtf,CAAA1a,IAAA,CAAcu5B,CAAAS,gBAAd,CADyB,CACiBT,CAAAS,gBAO5C,KAAI8B,EAAuB,EAE3BhpC,EAAA,CAAQwnC,CAAR,CAA8B,QAAQ,CAACuD,CAAD,CAAqB,CACzD/B,CAAAr9B,QAAA,CAA6BlM,CAAA,CAASsrC,CAAT,CAAA,CACvBnjB,CAAA1a,IAAA,CAAc69B,CAAd,CADuB,CACanjB,CAAA5b,OAAA,CAAiB++B,CAAjB,CAD1C,CADyD,CAA3D,CAopBAlxB,EAAAywB,gBAAA,CAAwB,EA4GxBU,UAA2B,CAACxpB,CAAD,CAAQ,CACjCxhB,CAAA,CAAQwC,SAAR,CAAmB,QAAQ,CAACyI,CAAD,CAAO,CAChC4O,CAAA,CAAM5O,CAAN,CAAA,CAAc,QAAQ,CAACkgB,CAAD,CAAMpgB,CAAN,CAAc,CAClC,MAAO8O,EAAA,CAAMvX,CAAA,CAAO,EAAP,CAAWyI,CAAX,EAAqB,EAArB,CAAyB,CACpCuF,OAAQrF,CAD4B,CAEpCkgB,IAAKA,CAF+B,CAAzB,CAAN,CAD2B,CADJ,CAAlC,CADiC,CAAnC6f,CA1DA,CAAmB,KAAnB,CAA0B,QAA1B,CAAoC,MAApC,CAA4C,OAA5C,CAsEAC,UAAmC,CAAChgC,CAAD,CAAO,CACxCjL,CAAA,CAAQwC,SAAR,CAAmB,QAAQ,CAACyI,CAAD,CAAO,CAChC4O,CAAA,CAAM5O,CAAN,CAAA,CAAc,QAAQ,CAACkgB,CAAD,CAAM9e,CAAN,CAAYtB,CAAZ,CAAoB,CACxC,MAAO8O,EAAA,CAAMvX,CAAA,CAAO,EAAP,CAAWyI,CAAX,EAAqB,EAArB,CAAyB,CACpCuF,OAAQrF,CAD4B,CAEpCkgB,IAAKA,CAF+B,CAGpC9e,KAAMA,CAH8B,CAAzB,CAAN,CADiC,CADV,CAAlC,CADwC,CAA1C4+B,CA9BA,CAA2B,MAA3B,CAAmC,KAAnC,CAA0C,OAA1C,CAYApxB,EAAA4sB,SAAA,CAAiBA,CAGjB,OAAO5sB,EA9wB4E,CADzE,CA9HW,CA8jCzBS,QAASA,GAAmB,EAAG,CAC7B,IAAA0J,KAAA;AAAYC,QAAQ,EAAG,CACrB,MAAOinB,SAAkB,EAAG,CAC1B,MAAO,KAAIjsC,CAAAksC,eADe,CADP,CADM,CAyB/B/wB,QAASA,GAAoB,EAAG,CAC9B,IAAA4J,KAAA,CAAY,CAAC,UAAD,CAAa,SAAb,CAAwB,WAAxB,CAAqC,aAArC,CAAoD,QAAQ,CAACrL,CAAD,CAAWsD,CAAX,CAAoBhD,CAApB,CAA+BoB,CAA/B,CAA4C,CAClH,MAAO+wB,GAAA,CAAkBzyB,CAAlB,CAA4B0B,CAA5B,CAAyC1B,CAAAsU,MAAzC,CAAyDhR,CAAAzP,QAAA6+B,UAAzD,CAAoFpyB,CAAA,CAAU,CAAV,CAApF,CAD2G,CAAxG,CADkB,CAMhCmyB,QAASA,GAAiB,CAACzyB,CAAD,CAAWuyB,CAAX,CAAsBI,CAAtB,CAAqCD,CAArC,CAAgDE,CAAhD,CAA6D,CA8GrFC,QAASA,EAAQ,CAACrgB,CAAD,CAAMsgB,CAAN,CAAkB9B,CAAlB,CAAwB,CAAA,IAInC72B,EAASy4B,CAAA7tB,cAAA,CAA0B,QAA1B,CAJ0B,CAIWqO,EAAW,IAC7DjZ,EAAA2M,KAAA,CAAc,iBACd3M,EAAAlR,IAAA,CAAaupB,CACbrY,EAAA44B,MAAA,CAAe,CAAA,CAEf3f,EAAA,CAAWA,QAAQ,CAACrJ,CAAD,CAAQ,CACH5P,CA3kRtBkN,oBAAA,CA2kR8BP,MA3kR9B,CA2kRsCsM,CA3kRtC,CAAsC,CAAA,CAAtC,CA4kRsBjZ,EA5kRtBkN,oBAAA,CA4kR8BP,OA5kR9B,CA4kRuCsM,CA5kRvC,CAAsC,CAAA,CAAtC,CA6kRAwf,EAAAI,KAAA/pB,YAAA,CAA6B9O,CAA7B,CACAA,EAAA,CAAS,IACT,KAAIyzB,EAAU,EAAd,CACI1H,EAAO,SAEPnc,EAAJ,GACqB,MAInB,GAJIA,CAAAjD,KAIJ,EAJ8B4rB,CAAA,CAAUI,CAAV,CAAAG,OAI9B,GAHElpB,CAGF,CAHU,CAAEjD,KAAM,OAAR,CAGV;AADAof,CACA,CADOnc,CAAAjD,KACP,CAAA8mB,CAAA,CAAwB,OAAf,GAAA7jB,CAAAjD,KAAA,CAAyB,GAAzB,CAA+B,GAL1C,CAQIkqB,EAAJ,EACEA,CAAA,CAAKpD,CAAL,CAAa1H,CAAb,CAjBuB,CAqBR/rB,EAlmRjB+4B,iBAAA,CAkmRyBpsB,MAlmRzB,CAkmRiCsM,CAlmRjC,CAAmC,CAAA,CAAnC,CAmmRiBjZ,EAnmRjB+4B,iBAAA,CAmmRyBpsB,OAnmRzB,CAmmRkCsM,CAnmRlC,CAAmC,CAAA,CAAnC,CAomRFwf,EAAAI,KAAAluB,YAAA,CAA6B3K,CAA7B,CACA,OAAOiZ,EAjCgC,CA5GzC,MAAO,SAAQ,CAACzb,CAAD,CAAS6a,CAAT,CAAcqN,CAAd,CAAoBzM,CAApB,CAA8B0Z,CAA9B,CAAuCmF,CAAvC,CAAgDhC,CAAhD,CAAiEiC,CAAjE,CAA+E,CA2F5FiB,QAASA,EAAc,EAAG,CACxBC,CAAA,EAAaA,CAAA,EACbC,EAAA,EAAOA,CAAAC,MAAA,EAFiB,CAK1BC,QAASA,EAAe,CAACngB,CAAD,CAAWwa,CAAX,CAAmBoB,CAAnB,CAA6BiC,CAA7B,CAA4CC,CAA5C,CAAwD,CAE1ErmC,CAAA,CAAU4pB,CAAV,CAAJ,EACEke,CAAAje,OAAA,CAAqBD,CAArB,CAEF2e,EAAA,CAAYC,CAAZ,CAAkB,IAElBjgB,EAAA,CAASwa,CAAT,CAAiBoB,CAAjB,CAA2BiC,CAA3B,CAA0CC,CAA1C,CACAlxB,EAAA+S,6BAAA,CAAsCzoB,CAAtC,CAR8E,CA/FhF0V,CAAAgT,6BAAA,EACAR,EAAA,CAAMA,CAAN,EAAaxS,CAAAwS,IAAA,EAEb,IAAyB,OAAzB,EAAIzmB,CAAA,CAAU4L,CAAV,CAAJ,CAAkC,CAChC,IAAIm7B,EAAa,GAAbA,CAAmBnoC,CAAC+nC,CAAAr5B,QAAA,EAAD1O,UAAA,CAA+B,EAA/B,CACvB+nC,EAAA,CAAUI,CAAV,CAAA,CAAwB,QAAQ,CAACp/B,CAAD,CAAO,CACrCg/B,CAAA,CAAUI,CAAV,CAAAp/B,KAAA,CAA6BA,CAC7Bg/B,EAAA,CAAUI,CAAV,CAAAG,OAAA,CAA+B,CAAA,CAFM,CAKvC,KAAIG,EAAYP,CAAA,CAASrgB,CAAA/iB,QAAA,CAAY,eAAZ,CAA6B,oBAA7B;AAAoDqjC,CAApD,CAAT,CACZA,CADY,CACA,QAAQ,CAAClF,CAAD,CAAS1H,CAAT,CAAe,CACrCqN,CAAA,CAAgBngB,CAAhB,CAA0Bwa,CAA1B,CAAkC8E,CAAA,CAAUI,CAAV,CAAAp/B,KAAlC,CAA8D,EAA9D,CAAkEwyB,CAAlE,CACAwM,EAAA,CAAUI,CAAV,CAAA,CAAwBxoC,CAFa,CADvB,CAPgB,CAAlC,IAYO,CAEL,IAAI+oC,EAAMd,CAAA,CAAU56B,CAAV,CAAkB6a,CAAlB,CAEV6gB,EAAAG,KAAA,CAAS77B,CAAT,CAAiB6a,CAAjB,CAAsB,CAAA,CAAtB,CACAnrB,EAAA,CAAQylC,CAAR,CAAiB,QAAQ,CAAC1kC,CAAD,CAAQZ,CAAR,CAAa,CAChCqD,CAAA,CAAUzC,CAAV,CAAJ,EACIirC,CAAAI,iBAAA,CAAqBjsC,CAArB,CAA0BY,CAA1B,CAFgC,CAAtC,CAMAirC,EAAAK,OAAA,CAAaC,QAAsB,EAAG,CACpC,IAAIzC,EAAamC,CAAAnC,WAAbA,EAA+B,EAAnC,CAIIlC,EAAY,UAAD,EAAeqE,EAAf,CAAsBA,CAAArE,SAAtB,CAAqCqE,CAAAO,aAJpD,CAOIhG,EAAwB,IAAf,GAAAyF,CAAAzF,OAAA,CAAsB,GAAtB,CAA4ByF,CAAAzF,OAK1B,EAAf,GAAIA,CAAJ,GACEA,CADF,CACWoB,CAAA,CAAW,GAAX,CAA6C,MAA5B,EAAA6E,EAAA,CAAWrhB,CAAX,CAAAshB,SAAA,CAAqC,GAArC,CAA2C,CADvE,CAIAP,EAAA,CAAgBngB,CAAhB,CACIwa,CADJ,CAEIoB,CAFJ,CAGIqE,CAAAU,sBAAA,EAHJ,CAII7C,CAJJ,CAjBoC,CAwBlCV,EAAAA,CAAeA,QAAQ,EAAG,CAG5B+C,CAAA,CAAgBngB,CAAhB,CAA2B,EAA3B,CAA8B,IAA9B,CAAoC,IAApC,CAA0C,EAA1C,CAH4B,CAM9BigB,EAAAW,QAAA,CAAcxD,CACd6C,EAAAY,QAAA,CAAczD,CAEVP,EAAJ,GACEoD,CAAApD,gBADF,CACwB,CAAA,CADxB,CAIA,IAAIiC,CAAJ,CACE,GAAI,CACFmB,CAAAnB,aAAA,CAAmBA,CADjB,CAEF,MAAO1hC,EAAP,CAAU,CAQV,GAAqB,MAArB,GAAI0hC,CAAJ,CACE,KAAM1hC,GAAN,CATQ,CAcd6iC,CAAAa,KAAA,CAAStpC,CAAA,CAAYi1B,CAAZ,CAAA,CAAoB,IAApB,CAA2BA,CAApC,CAjEK,CAoEP,GAAc,CAAd;AAAIoS,CAAJ,CACE,IAAIxd,EAAYke,CAAA,CAAcQ,CAAd,CAA8BlB,CAA9B,CADlB,KAEyBA,EAAlB,EAh+UKxqC,CAAA,CAg+UawqC,CAh+UF7M,KAAX,CAg+UL,EACL6M,CAAA7M,KAAA,CAAa+N,CAAb,CAvF0F,CAFT,CA0MvFpyB,QAASA,GAAoB,EAAG,CAC9B,IAAI0pB,EAAc,IAAlB,CACIC,EAAY,IAWhB,KAAAD,YAAA,CAAmB0J,QAAQ,CAAC/rC,CAAD,CAAQ,CACjC,MAAIA,EAAJ,EACEqiC,CACO,CADOriC,CACP,CAAA,IAFT,EAISqiC,CALwB,CAkBnC,KAAAC,UAAA,CAAiB0J,QAAQ,CAAChsC,CAAD,CAAQ,CAC/B,MAAIA,EAAJ,EACEsiC,CACO,CADKtiC,CACL,CAAA,IAFT,EAISsiC,CALsB,CAUjC,KAAArf,KAAA,CAAY,CAAC,QAAD,CAAW,mBAAX,CAAgC,MAAhC,CAAwC,QAAQ,CAACrJ,CAAD,CAASxB,CAAT,CAA4BgC,CAA5B,CAAkC,CAM5F6xB,QAASA,EAAM,CAACC,CAAD,CAAK,CAClB,MAAO,QAAP,CAAkBA,CADA,CAIpBC,QAASA,EAAY,CAACrO,CAAD,CAAO,CAC1B,MAAOA,EAAAz2B,QAAA,CAAa+kC,CAAb,CAAiC/J,CAAjC,CAAAh7B,QAAA,CACGglC,CADH,CACqB/J,CADrB,CADmB,CAuB5BgK,QAASA,EAAqB,CAACnhC,CAAD,CAAQof,CAAR,CAAkBgiB,CAAlB,CAAkCC,CAAlC,CAAkD,CAC9E,IAAIC,CACJ,OAAOA,EAAP,CAAiBthC,CAAAtI,OAAA,CAAa6pC,QAAiC,CAACvhC,CAAD,CAAQ,CACrEshC,CAAA,EACA,OAAOD,EAAA,CAAerhC,CAAf,CAF8D,CAAtD,CAGdof,CAHc,CAGJgiB,CAHI,CAF6D,CAsGhF7zB,QAASA,EAAY,CAAColB,CAAD,CAAO6O,CAAP,CAA2B7N,CAA3B,CAA2CD,CAA3C,CAAyD,CAuG5E+N,QAASA,EAAyB,CAAC5sC,CAAD,CAAQ,CACxC,GAAI,CACeA,IAAAA,EAAAA,CAvCjB,EAAA,CAAO8+B,CAAA,CACL1kB,CAAAyyB,WAAA,CAAgB/N,CAAhB,CAAgC9+B,CAAhC,CADK,CAELoa,CAAApZ,QAAA,CAAahB,CAAb,CAsCK,KAAA,CAAA,IAAA6+B,CAAA,EAAiB,CAAAp8B,CAAA,CAAUzC,CAAV,CAAjB,CAAoCA,CAAAA;AAAAA,CAApC,KAjOX,IAAa,IAAb,EAAIA,CAAJ,CACE,CAAA,CAAO,EADT,KAAA,CAGA,OAAQ,MAAOA,EAAf,EACE,KAAK,QAAL,CACE,KACF,MAAK,QAAL,CACEA,CAAA,CAAQ,EAAR,CAAaA,CACb,MACF,SACEA,CAAA,CAAQ2G,EAAA,CAAO3G,CAAP,CAPZ,CAUA,CAAA,CAAOA,CAbP,CAiOI,MAAO,EAFL,CAGF,MAAOgmB,CAAP,CAAY,CACZ5N,CAAA,CAAkB00B,EAAAC,OAAA,CAA0BjP,CAA1B,CAAgC9X,CAAhC,CAAlB,CADY,CAJ0B,CArG1C,GAAKpnB,CAAAk/B,CAAAl/B,OAAL,EAAmD,EAAnD,GAAoBk/B,CAAA/5B,QAAA,CAAas+B,CAAb,CAApB,CAAsD,CACpD,IAAImK,CACCG,EAAL,GACMK,CAIJ,CAJoBb,CAAA,CAAarO,CAAb,CAIpB,CAHA0O,CAGA,CAHiBnqC,EAAA,CAAQ2qC,CAAR,CAGjB,CAFAR,CAAAS,IAEA,CAFqBnP,CAErB,CADA0O,CAAAjO,YACA,CAD6B,EAC7B,CAAAiO,CAAAU,gBAAA,CAAiCZ,CALnC,CAOA,OAAOE,EAT6C,CAYtD3N,CAAA,CAAe,CAAEA,CAAAA,CAd2D,KAexEt4B,CAfwE,CAgBxE4mC,CAhBwE,CAiBxErpC,EAAQ,CAjBgE,CAkBxEy6B,EAAc,EAlB0D,CAmBxE6O,EAAW,EACXC,EAAAA,CAAavP,CAAAl/B,OAKjB,KAzB4E,IAsBxEoH,EAAS,EAtB+D,CAuBxEsnC,EAAsB,EAE1B,CAAOxpC,CAAP,CAAeupC,CAAf,CAAA,CACE,GAAyD,EAAzD,GAAM9mC,CAAN,CAAmBu3B,CAAA/5B,QAAA,CAAas+B,CAAb,CAA0Bv+B,CAA1B,CAAnB,GAC+E,EAD/E,GACOqpC,CADP,CACkBrP,CAAA/5B,QAAA,CAAau+B,CAAb,CAAwB/7B,CAAxB,CAAqCgnC,CAArC,CADlB,EAEMzpC,CAQJ,GARcyC,CAQd,EAPEP,CAAA3B,KAAA,CAAY8nC,CAAA,CAAarO,CAAA/0B,UAAA,CAAejF,CAAf,CAAsByC,CAAtB,CAAb,CAAZ,CAOF,CALA0mC,CAKA,CALMnP,CAAA/0B,UAAA,CAAexC,CAAf,CAA4BgnC,CAA5B,CAA+CJ,CAA/C,CAKN,CAJA5O,CAAAl6B,KAAA,CAAiB4oC,CAAjB,CAIA,CAHAG,CAAA/oC,KAAA,CAAcuV,CAAA,CAAOqzB,CAAP,CAAYL,CAAZ,CAAd,CAGA,CAFA9oC,CAEA,CAFQqpC,CAER,CAFmBK,CAEnB,CADAF,CAAAjpC,KAAA,CAAyB2B,CAAApH,OAAzB,CACA,CAAAoH,CAAA3B,KAAA,CAAY,EAAZ,CAVF,KAWO,CAEDP,CAAJ,GAAcupC,CAAd;AACErnC,CAAA3B,KAAA,CAAY8nC,CAAA,CAAarO,CAAA/0B,UAAA,CAAejF,CAAf,CAAb,CAAZ,CAEF,MALK,CAeLg7B,CAAJ,EAAsC,CAAtC,CAAsB94B,CAAApH,OAAtB,EACIkuC,EAAAW,cAAA,CAAiC3P,CAAjC,CAGJ,IAAK6O,CAAAA,CAAL,EAA2BpO,CAAA3/B,OAA3B,CAA+C,CAC7C,IAAI8uC,EAAUA,QAAQ,CAAC9K,CAAD,CAAS,CAC7B,IAD6B,IACpB/iC,EAAI,CADgB,CACbY,EAAK89B,CAAA3/B,OAArB,CAAyCiB,CAAzC,CAA6CY,CAA7C,CAAiDZ,CAAA,EAAjD,CAAsD,CACpD,GAAIg/B,CAAJ,EAAoBr8B,CAAA,CAAYogC,CAAA,CAAO/iC,CAAP,CAAZ,CAApB,CAA4C,MAC5CmG,EAAA,CAAOsnC,CAAA,CAAoBztC,CAApB,CAAP,CAAA,CAAiC+iC,CAAA,CAAO/iC,CAAP,CAFmB,CAItD,MAAOmG,EAAAoD,KAAA,CAAY,EAAZ,CALsB,CAc/B,OAAO7H,EAAA,CAAOosC,QAAwB,CAACxuC,CAAD,CAAU,CAC5C,IAAIU,EAAI,CAAR,CACIY,EAAK89B,CAAA3/B,OADT,CAEIgkC,EAAa7jC,KAAJ,CAAU0B,CAAV,CAEb,IAAI,CACF,IAAA,CAAOZ,CAAP,CAAWY,CAAX,CAAeZ,CAAA,EAAf,CACE+iC,CAAA,CAAO/iC,CAAP,CAAA,CAAYutC,CAAA,CAASvtC,CAAT,CAAA,CAAYV,CAAZ,CAGd,OAAOuuC,EAAA,CAAQ9K,CAAR,CALL,CAMF,MAAO5c,CAAP,CAAY,CACZ5N,CAAA,CAAkB00B,EAAAC,OAAA,CAA0BjP,CAA1B,CAAgC9X,CAAhC,CAAlB,CADY,CAX8B,CAAzC,CAeF,CAEHinB,IAAKnP,CAFF,CAGHS,YAAaA,CAHV,CAIH2O,gBAAiBA,QAAQ,CAAC/hC,CAAD,CAAQof,CAAR,CAAkB,CACzC,IAAIuV,CACJ,OAAO30B,EAAAyiC,YAAA,CAAkBR,CAAlB,CAA4BS,QAA6B,CAACjL,CAAD,CAASkL,CAAT,CAAoB,CAClF,IAAIC,EAAYL,CAAA,CAAQ9K,CAAR,CACZvjC,EAAA,CAAWkrB,CAAX,CAAJ,EACEA,CAAAhrB,KAAA,CAAc,IAAd,CAAoBwuC,CAApB,CAA+BnL,CAAA,GAAWkL,CAAX,CAAuBhO,CAAvB,CAAmCiO,CAAlE,CAA6E5iC,CAA7E,CAEF20B,EAAA,CAAYiO,CALsE,CAA7E,CAFkC,CAJxC,CAfE,CAfsC,CAxD6B,CAvIc,IACxFR,EAAoBlL,CAAAzjC,OADoE,CAExF4uC,EAAkBlL,CAAA1jC,OAFsE,CAGxFwtC,EAAqB,IAAIlrC,MAAJ,CAAWmhC,CAAAh7B,QAAA,CAAoB,IAApB;AAA0B4kC,CAA1B,CAAX,CAA8C,GAA9C,CAHmE,CAIxFI,EAAmB,IAAInrC,MAAJ,CAAWohC,CAAAj7B,QAAA,CAAkB,IAAlB,CAAwB4kC,CAAxB,CAAX,CAA4C,GAA5C,CAgQvBvzB,EAAA2pB,YAAA,CAA2B2L,QAAQ,EAAG,CACpC,MAAO3L,EAD6B,CAgBtC3pB,EAAA4pB,UAAA,CAAyB2L,QAAQ,EAAG,CAClC,MAAO3L,EAD2B,CAIpC,OAAO5pB,EAxRqF,CAAlF,CAzCkB,CAqUhCG,QAASA,GAAiB,EAAG,CAC3B,IAAAoK,KAAA,CAAY,CAAC,YAAD,CAAe,SAAf,CAA0B,IAA1B,CAAgC,KAAhC,CAAuC,UAAvC,CACP,QAAQ,CAACnJ,CAAD,CAAeoB,CAAf,CAA0BlB,CAA1B,CAAgCE,CAAhC,CAAuCtC,CAAvC,CAAiD,CAiI5Ds2B,QAASA,EAAQ,CAAC7nC,CAAD,CAAK+lB,CAAL,CAAY+hB,CAAZ,CAAmBC,CAAnB,CAAgC,CAkC/CpjB,QAASA,EAAQ,EAAG,CACbqjB,CAAL,CAGEhoC,CAAAG,MAAA,CAAS,IAAT,CAAe4d,CAAf,CAHF,CACE/d,CAAA,CAAGioC,CAAH,CAFgB,CAlC2B,IAC3CD,EAA+B,CAA/BA,CAAY5sC,SAAA7C,OAD+B,CAE3CwlB,EAAOiqB,CAAA,CAplVR7sC,EAAAjC,KAAA,CAolV8BkC,SAplV9B,CAolVyC8E,CAplVzC,CAolVQ,CAAsC,EAFF,CAG3CgoC,EAAcrzB,CAAAqzB,YAH6B,CAI3CC,EAAgBtzB,CAAAszB,cAJ2B,CAK3CF,EAAY,CAL+B,CAM3CG,EAAahsC,CAAA,CAAU2rC,CAAV,CAAbK,EAAuC,CAACL,CANG,CAO3CjF,EAAWjd,CAACuiB,CAAA,CAAYv0B,CAAZ,CAAkBF,CAAnBkS,OAAA,EAPgC,CAQ3C6b,EAAUoB,CAAApB,QAEdoG,EAAA,CAAQ1rC,CAAA,CAAU0rC,CAAV,CAAA,CAAmBA,CAAnB,CAA2B,CAEnCpG,EAAA2G,aAAA,CAAuBH,CAAA,CAAYI,QAAa,EAAG,CAC7CF,CAAJ,CACE72B,CAAAsU,MAAA,CAAelB,CAAf,CADF,CAGElR,CAAAlX,WAAA,CAAsBooB,CAAtB,CAEFme,EAAAyF,OAAA,CAAgBN,CAAA,EAAhB,CAEY,EAAZ,CAAIH,CAAJ,EAAiBG,CAAjB,EAA8BH,CAA9B,GACEhF,CAAAC,QAAA,CAAiBkF,CAAjB,CAEA;AADAE,CAAA,CAAczG,CAAA2G,aAAd,CACA,CAAA,OAAOG,CAAA,CAAU9G,CAAA2G,aAAV,CAHT,CAMKD,EAAL,EAAgB30B,CAAAzO,OAAA,EAdiC,CAA5B,CAgBpB+gB,CAhBoB,CAkBvByiB,EAAA,CAAU9G,CAAA2G,aAAV,CAAA,CAAkCvF,CAElC,OAAOpB,EAhCwC,CAhIjD,IAAI8G,EAAY,EAsLhBX,EAAA5hB,OAAA,CAAkBwiB,QAAQ,CAAC/G,CAAD,CAAU,CAClC,MAAIA,EAAJ,EAAeA,CAAA2G,aAAf,GAAuCG,EAAvC,EACEA,CAAA,CAAU9G,CAAA2G,aAAV,CAAA5H,OAAA,CAAuC,UAAvC,CAGO,CAFP5rB,CAAAszB,cAAA,CAAsBzG,CAAA2G,aAAtB,CAEO,CADP,OAAOG,CAAA,CAAU9G,CAAA2G,aAAV,CACA,CAAA,CAAA,CAJT,EAMO,CAAA,CAP2B,CAUpC,OAAOR,EAjMqD,CADlD,CADe,CA6N7Ba,QAASA,GAAU,CAAC1gC,CAAD,CAAO,CACpB2gC,CAAAA,CAAW3gC,CAAA7K,MAAA,CAAW,GAAX,CAGf,KAHA,IACI3D,EAAImvC,CAAApwC,OAER,CAAOiB,CAAA,EAAP,CAAA,CACEmvC,CAAA,CAASnvC,CAAT,CAAA,CAAcwJ,EAAA,CAAiB2lC,CAAA,CAASnvC,CAAT,CAAjB,CAGhB,OAAOmvC,EAAA5lC,KAAA,CAAc,GAAd,CARiB,CAW1B6lC,QAASA,GAAgB,CAACC,CAAD,CAAcC,CAAd,CAA2B,CAClD,IAAIC,EAAY3D,EAAA,CAAWyD,CAAX,CAEhBC,EAAAE,WAAA,CAAyBD,CAAA1D,SACzByD,EAAAG,OAAA,CAAqBF,CAAAG,SACrBJ,EAAAK,OAAA,CAAqB7tC,EAAA,CAAMytC,CAAAK,KAAN,CAArB,EAA8CC,EAAA,CAAcN,CAAA1D,SAAd,CAA9C,EAAmF,IALjC,CASpDiE,QAASA,GAAW,CAACC,CAAD,CAAcT,CAAd,CAA2B,CAC7C,IAAIU,EAAsC,GAAtCA,GAAYD,CAAArqC,OAAA,CAAmB,CAAnB,CACZsqC;CAAJ,GACED,CADF,CACgB,GADhB,CACsBA,CADtB,CAGA,KAAIxqC,EAAQqmC,EAAA,CAAWmE,CAAX,CACZT,EAAAW,OAAA,CAAqBnnC,kBAAA,CAAmBknC,CAAA,EAAyC,GAAzC,GAAYzqC,CAAA2qC,SAAAxqC,OAAA,CAAsB,CAAtB,CAAZ,CACpCH,CAAA2qC,SAAAhnC,UAAA,CAAyB,CAAzB,CADoC,CACN3D,CAAA2qC,SADb,CAErBZ,EAAAa,SAAA,CAAuBpnC,EAAA,CAAcxD,CAAA6qC,OAAd,CACvBd,EAAAe,OAAA,CAAqBvnC,kBAAA,CAAmBvD,CAAAmjB,KAAnB,CAGjB4mB,EAAAW,OAAJ,EAA0D,GAA1D,EAA0BX,CAAAW,OAAAvqC,OAAA,CAA0B,CAA1B,CAA1B,GACE4pC,CAAAW,OADF,CACuB,GADvB,CAC6BX,CAAAW,OAD7B,CAZ6C,CAyB/CK,QAASA,GAAU,CAACC,CAAD,CAAQC,CAAR,CAAe,CAChC,GAA6B,CAA7B,GAAIA,CAAAtsC,QAAA,CAAcqsC,CAAd,CAAJ,CACE,MAAOC,EAAA9kB,OAAA,CAAa6kB,CAAAxxC,OAAb,CAFuB,CAOlC0sB,QAASA,GAAS,CAAClB,CAAD,CAAM,CACtB,IAAItmB,EAAQsmB,CAAArmB,QAAA,CAAY,GAAZ,CACZ,OAAiB,EAAV,EAAAD,CAAA,CAAcsmB,CAAd,CAAoBA,CAAAmB,OAAA,CAAW,CAAX,CAAcznB,CAAd,CAFL,CAKxBwsC,QAASA,GAAa,CAAClmB,CAAD,CAAM,CAC1B,MAAOA,EAAA/iB,QAAA,CAAY,UAAZ,CAAwB,IAAxB,CADmB,CAwB5BkpC,QAASA,GAAgB,CAACC,CAAD,CAAUC,CAAV,CAAyBC,CAAzB,CAAqC,CAC5D,IAAAC,QAAA,CAAe,CAAA,CACfD,EAAA,CAAaA,CAAb,EAA2B,EAC3BzB,GAAA,CAAiBuB,CAAjB,CAA0B,IAA1B,CAQA,KAAAI,QAAA,CAAeC,QAAQ,CAACzmB,CAAD,CAAM,CAC3B,IAAI0mB,EAAUX,EAAA,CAAWM,CAAX;AAA0BrmB,CAA1B,CACd,IAAK,CAAA1rB,CAAA,CAASoyC,CAAT,CAAL,CACE,KAAMC,GAAA,CAAgB,UAAhB,CAA6E3mB,CAA7E,CACFqmB,CADE,CAAN,CAIFd,EAAA,CAAYmB,CAAZ,CAAqB,IAArB,CAEK,KAAAhB,OAAL,GACE,IAAAA,OADF,CACgB,GADhB,CAIA,KAAAkB,UAAA,EAb2B,CAoB7B,KAAAA,UAAA,CAAiBC,QAAQ,EAAG,CAAA,IACtBhB,EAASjnC,EAAA,CAAW,IAAAgnC,SAAX,CADa,CAEtBznB,EAAO,IAAA2nB,OAAA,CAAc,GAAd,CAAoB7mC,EAAA,CAAiB,IAAA6mC,OAAjB,CAApB,CAAoD,EAE/D,KAAAgB,MAAA,CAAanC,EAAA,CAAW,IAAAe,OAAX,CAAb,EAAwCG,CAAA,CAAS,GAAT,CAAeA,CAAf,CAAwB,EAAhE,EAAsE1nB,CACtE,KAAA4oB,SAAA,CAAgBV,CAAhB,CAAgC,IAAAS,MAAA3lB,OAAA,CAAkB,CAAlB,CALN,CAQ5B,KAAA6lB,eAAA,CAAsBC,QAAQ,CAACjnB,CAAD,CAAMknB,CAAN,CAAe,CAC3C,GAAIA,CAAJ,EAA8B,GAA9B,GAAeA,CAAA,CAAQ,CAAR,CAAf,CAIE,MADA,KAAA/oB,KAAA,CAAU+oB,CAAA9vC,MAAA,CAAc,CAAd,CAAV,CACO,CAAA,CAAA,CALkC,KAOvC+vC,CAPuC,CAO/BC,CAGR/uC,EAAA,CAAU8uC,CAAV,CAAmBpB,EAAA,CAAWK,CAAX,CAAoBpmB,CAApB,CAAnB,CAAJ,EACEonB,CAEE,CAFWD,CAEX,CAAAE,CAAA,CADEhvC,CAAA,CAAU8uC,CAAV,CAAmBpB,EAAA,CAAWO,CAAX,CAAuBa,CAAvB,CAAnB,CAAJ,CACiBd,CADjB,EACkCN,EAAA,CAAW,GAAX,CAAgBoB,CAAhB,CADlC,EAC6DA,CAD7D,EAGiBf,CAHjB,CAG2BgB,CAL7B,EAOW/uC,CAAA,CAAU8uC,CAAV,CAAmBpB,EAAA,CAAWM,CAAX,CAA0BrmB,CAA1B,CAAnB,CAAJ,CACLqnB,CADK,CACUhB,CADV,CAC0Bc,CAD1B,CAEId,CAFJ,EAEqBrmB,CAFrB,CAE2B,GAF3B,GAGLqnB,CAHK,CAGUhB,CAHV,CAKHgB,EAAJ,EACE,IAAAb,QAAA,CAAaa,CAAb,CAEF,OAAO,CAAEA,CAAAA,CAzBkC,CAvCe,CA+E9DC,QAASA,GAAmB,CAAClB,CAAD,CAAUC,CAAV,CAAyBkB,CAAzB,CAAqC,CAE/D1C,EAAA,CAAiBuB,CAAjB,CAA0B,IAA1B,CAQA;IAAAI,QAAA,CAAeC,QAAQ,CAACzmB,CAAD,CAAM,CAC3B,IAAIwnB,EAAiBzB,EAAA,CAAWK,CAAX,CAAoBpmB,CAApB,CAAjBwnB,EAA6CzB,EAAA,CAAWM,CAAX,CAA0BrmB,CAA1B,CAAjD,CACIynB,CAECrvC,EAAA,CAAYovC,CAAZ,CAAL,EAAiE,GAAjE,GAAoCA,CAAArsC,OAAA,CAAsB,CAAtB,CAApC,CAcM,IAAAorC,QAAJ,CACEkB,CADF,CACmBD,CADnB,EAGEC,CACA,CADiB,EACjB,CAAIrvC,CAAA,CAAYovC,CAAZ,CAAJ,GACEpB,CACA,CADUpmB,CACV,CAAA,IAAA/iB,QAAA,EAFF,CAJF,CAdF,EAIEwqC,CACA,CADiB1B,EAAA,CAAWwB,CAAX,CAAuBC,CAAvB,CACjB,CAAIpvC,CAAA,CAAYqvC,CAAZ,CAAJ,GAEEA,CAFF,CAEmBD,CAFnB,CALF,CAyBAjC,GAAA,CAAYkC,CAAZ,CAA4B,IAA5B,CAEqC/B,EAAAA,CAAAA,IAAAA,OAA6BU,KAAAA,EAAAA,CAAAA,CAoB5DsB,EAAqB,iBAKC,EAA1B,GAAI1nB,CAAArmB,QAAA,CAAYguC,CAAZ,CAAJ,GACE3nB,CADF,CACQA,CAAA/iB,QAAA,CAAY0qC,CAAZ,CAAkB,EAAlB,CADR,CAKID,EAAAj1B,KAAA,CAAwBuN,CAAxB,CAAJ,GAKA,CALA,CAKO,CADP4nB,CACO,CADiBF,CAAAj1B,KAAA,CAAwBxO,CAAxB,CACjB,EAAwB2jC,CAAA,CAAsB,CAAtB,CAAxB,CAAmD3jC,CAL1D,CA9BF,KAAAyhC,OAAA,CAAc,CAEd,KAAAkB,UAAA,EAjC2B,CA0E7B,KAAAA,UAAA,CAAiBC,QAAQ,EAAG,CAAA,IACtBhB,EAASjnC,EAAA,CAAW,IAAAgnC,SAAX,CADa,CAEtBznB,EAAO,IAAA2nB,OAAA,CAAc,GAAd,CAAoB7mC,EAAA,CAAiB,IAAA6mC,OAAjB,CAApB,CAAoD,EAE/D,KAAAgB,MAAA,CAAanC,EAAA,CAAW,IAAAe,OAAX,CAAb,EAAwCG,CAAA,CAAS,GAAT,CAAeA,CAAf,CAAwB,EAAhE,EAAsE1nB,CACtE,KAAA4oB,SAAA,CAAgBX,CAAhB,EAA2B,IAAAU,MAAA,CAAaS,CAAb,CAA0B,IAAAT,MAA1B,CAAuC,EAAlE,CAL0B,CAQ5B,KAAAE,eAAA;AAAsBC,QAAQ,CAACjnB,CAAD,CAAMknB,CAAN,CAAe,CAC3C,MAAIhmB,GAAA,CAAUklB,CAAV,CAAJ,EAA0BllB,EAAA,CAAUlB,CAAV,CAA1B,EACE,IAAAwmB,QAAA,CAAaxmB,CAAb,CACO,CAAA,CAAA,CAFT,EAIO,CAAA,CALoC,CA5FkB,CAgHjE6nB,QAASA,GAA0B,CAACzB,CAAD,CAAUC,CAAV,CAAyBkB,CAAzB,CAAqC,CACtE,IAAAhB,QAAA,CAAe,CAAA,CACfe,GAAAlrC,MAAA,CAA0B,IAA1B,CAAgC/E,SAAhC,CAEA,KAAA2vC,eAAA,CAAsBC,QAAQ,CAACjnB,CAAD,CAAMknB,CAAN,CAAe,CAC3C,GAAIA,CAAJ,EAA8B,GAA9B,GAAeA,CAAA,CAAQ,CAAR,CAAf,CAIE,MADA,KAAA/oB,KAAA,CAAU+oB,CAAA9vC,MAAA,CAAc,CAAd,CAAV,CACO,CAAA,CAAA,CAGT,KAAIiwC,CAAJ,CACIF,CAEAf,EAAJ,EAAellB,EAAA,CAAUlB,CAAV,CAAf,CACEqnB,CADF,CACiBrnB,CADjB,CAEO,CAAKmnB,CAAL,CAAcpB,EAAA,CAAWM,CAAX,CAA0BrmB,CAA1B,CAAd,EACLqnB,CADK,CACUjB,CADV,CACoBmB,CADpB,CACiCJ,CADjC,CAEId,CAFJ,GAEsBrmB,CAFtB,CAE4B,GAF5B,GAGLqnB,CAHK,CAGUhB,CAHV,CAKHgB,EAAJ,EACE,IAAAb,QAAA,CAAaa,CAAb,CAEF,OAAO,CAAEA,CAAAA,CArBkC,CAwB7C,KAAAT,UAAA,CAAiBC,QAAQ,EAAG,CAAA,IACtBhB,EAASjnC,EAAA,CAAW,IAAAgnC,SAAX,CADa,CAEtBznB,EAAO,IAAA2nB,OAAA,CAAc,GAAd,CAAoB7mC,EAAA,CAAiB,IAAA6mC,OAAjB,CAApB,CAAoD,EAE/D,KAAAgB,MAAA,CAAanC,EAAA,CAAW,IAAAe,OAAX,CAAb,EAAwCG,CAAA,CAAS,GAAT,CAAeA,CAAf,CAAwB,EAAhE,EAAsE1nB,CAEtE,KAAA4oB,SAAA,CAAgBX,CAAhB,CAA0BmB,CAA1B,CAAuC,IAAAT,MANb,CA5B0C,CA4WxEgB,QAASA,GAAc,CAACja,CAAD,CAAW,CAChC,MAAO,SAAQ,EAAG,CAChB,MAAO,KAAA,CAAKA,CAAL,CADS,CADc,CAOlCka,QAASA,GAAoB,CAACla,CAAD;AAAWma,CAAX,CAAuB,CAClD,MAAO,SAAQ,CAACpyC,CAAD,CAAQ,CACrB,GAAIwC,CAAA,CAAYxC,CAAZ,CAAJ,CACE,MAAO,KAAA,CAAKi4B,CAAL,CAGT,KAAA,CAAKA,CAAL,CAAA,CAAiBma,CAAA,CAAWpyC,CAAX,CACjB,KAAAgxC,UAAA,EAEA,OAAO,KARc,CAD2B,CA8CpDv3B,QAASA,GAAiB,EAAG,CAAA,IACvBk4B,EAAa,EADU,CAEvBU,EAAY,CACVlhB,QAAS,CAAA,CADC,CAEVmhB,YAAa,CAAA,CAFH,CAGVC,aAAc,CAAA,CAHJ,CAahB,KAAAZ,WAAA,CAAkBa,QAAQ,CAACvoC,CAAD,CAAS,CACjC,MAAIxH,EAAA,CAAUwH,CAAV,CAAJ,EACE0nC,CACO,CADM1nC,CACN,CAAA,IAFT,EAIS0nC,CALwB,CA4BnC,KAAAU,UAAA,CAAiBI,QAAQ,CAAC7jB,CAAD,CAAO,CAC9B,MAAI9rB,GAAA,CAAU8rB,CAAV,CAAJ,EACEyjB,CAAAlhB,QACO,CADavC,CACb,CAAA,IAFT,EAGWluB,CAAA,CAASkuB,CAAT,CAAJ,EAED9rB,EAAA,CAAU8rB,CAAAuC,QAAV,CAYG,GAXLkhB,CAAAlhB,QAWK,CAXevC,CAAAuC,QAWf,EARHruB,EAAA,CAAU8rB,CAAA0jB,YAAV,CAQG,GAPLD,CAAAC,YAOK,CAPmB1jB,CAAA0jB,YAOnB,EAJHxvC,EAAA,CAAU8rB,CAAA2jB,aAAV,CAIG,GAHLF,CAAAE,aAGK,CAHoB3jB,CAAA2jB,aAGpB,EAAA,IAdF,EAgBEF,CApBqB,CA+DhC,KAAApvB,KAAA,CAAY,CAAC,YAAD,CAAe,UAAf,CAA2B,UAA3B,CAAuC,cAAvC,CAAuD,SAAvD,CACR,QAAQ,CAACnJ,CAAD;AAAalC,CAAb,CAAuB4C,CAAvB,CAAiC+Y,CAAjC,CAA+CrY,CAA/C,CAAwD,CA2BlEw3B,QAASA,EAAyB,CAACtoB,CAAD,CAAM/iB,CAAN,CAAe2iB,CAAf,CAAsB,CACtD,IAAI2oB,EAASn5B,CAAA4Q,IAAA,EAAb,CACIwoB,EAAWp5B,CAAAq5B,QACf,IAAI,CACFj7B,CAAAwS,IAAA,CAAaA,CAAb,CAAkB/iB,CAAlB,CAA2B2iB,CAA3B,CAKA,CAAAxQ,CAAAq5B,QAAA,CAAoBj7B,CAAAoS,MAAA,EANlB,CAOF,MAAO5hB,CAAP,CAAU,CAKV,KAHAoR,EAAA4Q,IAAA,CAAcuoB,CAAd,CAGMvqC,CAFNoR,CAAAq5B,QAEMzqC,CAFcwqC,CAEdxqC,CAAAA,CAAN,CALU,CAV0C,CAqJxD0qC,QAASA,EAAmB,CAACH,CAAD,CAASC,CAAT,CAAmB,CAC7C94B,CAAAi5B,WAAA,CAAsB,wBAAtB,CAAgDv5B,CAAAw5B,OAAA,EAAhD,CAAoEL,CAApE,CACEn5B,CAAAq5B,QADF,CACqBD,CADrB,CAD6C,CAhLmB,IAC9Dp5B,CAD8D,CAE9Dy5B,CACAjnB,EAAAA,CAAWpU,CAAAoU,SAAA,EAHmD,KAI9DknB,EAAat7B,CAAAwS,IAAA,EAJiD,CAK9DomB,CAEJ,IAAI6B,CAAAlhB,QAAJ,CAAuB,CACrB,GAAKnF,CAAAA,CAAL,EAAiBqmB,CAAAC,YAAjB,CACE,KAAMvB,GAAA,CAAgB,QAAhB,CAAN,CAGFP,CAAA,CAAqB0C,CApuBlBnqC,UAAA,CAAc,CAAd,CAouBkBmqC,CApuBDnvC,QAAA,CAAY,GAAZ,CAouBCmvC,CApuBgBnvC,QAAA,CAAY,IAAZ,CAAjB,CAAqC,CAArC,CAAjB,CAouBH,EAAoCioB,CAApC,EAAgD,GAAhD,CACAinB,EAAA,CAAez4B,CAAAuP,QAAA,CAAmBwmB,EAAnB,CAAsC0B,EANhC,CAAvB,IAQEzB,EACA,CADUllB,EAAA,CAAU4nB,CAAV,CACV,CAAAD,CAAA,CAAevB,EAEjB,KAAIjB,EAA0BD,CA/uBzBjlB,OAAA,CAAW,CAAX,CAAcD,EAAA,CA+uBWklB,CA/uBX,CAAA2C,YAAA,CAA2B,GAA3B,CAAd,CAAgD,CAAhD,CAivBL35B,EAAA,CAAY,IAAIy5B,CAAJ,CAAiBzC,CAAjB,CAA0BC,CAA1B,CAAyC,GAAzC,CAA+CkB,CAA/C,CACZn4B,EAAA43B,eAAA,CAAyB8B,CAAzB,CAAqCA,CAArC,CAEA15B,EAAAq5B,QAAA,CAAoBj7B,CAAAoS,MAAA,EAEpB;IAAIopB,EAAoB,2BAqBxB7f,EAAAvmB,GAAA,CAAgB,OAAhB,CAAyB,QAAQ,CAAC2U,CAAD,CAAQ,CAIvC,GAAK0wB,CAAAE,aAAL,EAA+Bc,CAAA1xB,CAAA0xB,QAA/B,EAAgDC,CAAA3xB,CAAA2xB,QAAhD,EAAiEC,CAAA5xB,CAAA4xB,SAAjE,EAAkG,CAAlG,EAAmF5xB,CAAA6xB,MAAnF,EAAuH,CAAvH,EAAuG7xB,CAAA8xB,OAAvG,CAAA,CAKA,IAHA,IAAIjrB,EAAM7pB,CAAA,CAAOgjB,CAAAkB,OAAP,CAGV,CAA6B,GAA7B,GAAOpf,EAAA,CAAU+kB,CAAA,CAAI,CAAJ,CAAV,CAAP,CAAA,CAEE,GAAIA,CAAA,CAAI,CAAJ,CAAJ,GAAe+K,CAAA,CAAa,CAAb,CAAf,EAAmC,CAAA,CAAC/K,CAAD,CAAOA,CAAAzmB,OAAA,EAAP,EAAqB,CAArB,CAAnC,CAA4D,MAG9D,KAAI2xC,EAAUlrB,CAAArlB,KAAA,CAAS,MAAT,CAAd,CAGImuC,EAAU9oB,CAAAplB,KAAA,CAAS,MAAT,CAAVkuC,EAA8B9oB,CAAAplB,KAAA,CAAS,YAAT,CAE9B1C,EAAA,CAASgzC,CAAT,CAAJ,EAAgD,4BAAhD,GAAyBA,CAAAnxC,SAAA,EAAzB,GAGEmxC,CAHF,CAGYjI,EAAA,CAAWiI,CAAAtd,QAAX,CAAAnL,KAHZ,CAOImoB,EAAAnwC,KAAA,CAAuBywC,CAAvB,CAAJ,EAEIA,CAAAA,CAFJ,EAEgBlrB,CAAAplB,KAAA,CAAS,QAAT,CAFhB,EAEuCue,CAAAC,mBAAA,EAFvC,EAGM,CAAApI,CAAA43B,eAAA,CAAyBsC,CAAzB,CAAkCpC,CAAlC,CAHN,GAOI3vB,CAAAgyB,eAAA,EAEA,CAAIn6B,CAAAw5B,OAAA,EAAJ,EAA0Bp7B,CAAAwS,IAAA,EAA1B,GACEtQ,CAAAzO,OAAA,EAEA,CAAA6P,CAAAzP,QAAA,CAAgB,0BAAhB,CAAA;AAA8C,CAAA,CAHhD,CATJ,CAtBA,CAJuC,CAAzC,CA8CI6kC,GAAA,CAAc92B,CAAAw5B,OAAA,EAAd,CAAJ,EAAyC1C,EAAA,CAAc4C,CAAd,CAAzC,EACEt7B,CAAAwS,IAAA,CAAa5Q,CAAAw5B,OAAA,EAAb,CAAiC,CAAA,CAAjC,CAGF,KAAIY,EAAe,CAAA,CAGnBh8B,EAAA8T,YAAA,CAAqB,QAAQ,CAACmoB,CAAD,CAASC,CAAT,CAAmB,CAE1CtxC,CAAA,CAAY2tC,EAAA,CAAWM,CAAX,CAA0BoD,CAA1B,CAAZ,CAAJ,CAEE34B,CAAAnP,SAAAkf,KAFF,CAE0B4oB,CAF1B,EAMA/5B,CAAAlX,WAAA,CAAsB,QAAQ,EAAG,CAC/B,IAAI+vC,EAASn5B,CAAAw5B,OAAA,EAAb,CACIJ,EAAWp5B,CAAAq5B,QADf,CAEI/wB,CACJ+xB,EAAA,CAASvD,EAAA,CAAcuD,CAAd,CACTr6B,EAAAo3B,QAAA,CAAkBiD,CAAlB,CACAr6B,EAAAq5B,QAAA,CAAoBiB,CAEpBhyB,EAAA,CAAmBhI,CAAAi5B,WAAA,CAAsB,sBAAtB,CAA8Cc,CAA9C,CAAsDlB,CAAtD,CACfmB,CADe,CACLlB,CADK,CAAA9wB,iBAKftI,EAAAw5B,OAAA,EAAJ,GAA2Ba,CAA3B,GAEI/xB,CAAJ,EACEtI,CAAAo3B,QAAA,CAAkB+B,CAAlB,CAEA,CADAn5B,CAAAq5B,QACA,CADoBD,CACpB,CAAAF,CAAA,CAA0BC,CAA1B,CAAkC,CAAA,CAAlC,CAAyCC,CAAzC,CAHF,GAKEgB,CACA,CADe,CAAA,CACf,CAAAd,CAAA,CAAoBH,CAApB,CAA4BC,CAA5B,CANF,CAFA,CAb+B,CAAjC,CAwBA,CAAK94B,CAAAovB,QAAL,EAAyBpvB,CAAAi6B,QAAA,EA9BzB,CAF8C,CAAhD,CAoCAj6B,EAAAjX,OAAA,CAAkBmxC,QAAuB,EAAG,CAC1C,IAAIrB,EAASrC,EAAA,CAAc14B,CAAAwS,IAAA,EAAd,CAAb,CACIypB,EAASvD,EAAA,CAAc92B,CAAAw5B,OAAA,EAAd,CADb,CAEIJ,EAAWh7B,CAAAoS,MAAA,EAFf,CAGIiqB,EAAiBz6B,CAAA06B,UAHrB,CAIIC,EAAoBxB,CAApBwB,GAA+BN,CAA/BM,EACD36B,CAAAm3B,QADCwD,EACoB35B,CAAAuP,QADpBoqB,EACwCvB,CADxCuB,GACqD36B,CAAAq5B,QAEzD,IAAIe,CAAJ;AAAoBO,CAApB,CACEP,CAEA,CAFe,CAAA,CAEf,CAAA95B,CAAAlX,WAAA,CAAsB,QAAQ,EAAG,CAC/B,IAAIixC,EAASr6B,CAAAw5B,OAAA,EAAb,CACIlxB,EAAmBhI,CAAAi5B,WAAA,CAAsB,sBAAtB,CAA8Cc,CAA9C,CAAsDlB,CAAtD,CACnBn5B,CAAAq5B,QADmB,CACAD,CADA,CAAA9wB,iBAKnBtI,EAAAw5B,OAAA,EAAJ,GAA2Ba,CAA3B,GAEI/xB,CAAJ,EACEtI,CAAAo3B,QAAA,CAAkB+B,CAAlB,CACA,CAAAn5B,CAAAq5B,QAAA,CAAoBD,CAFtB,GAIMuB,CAIJ,EAHEzB,CAAA,CAA0BmB,CAA1B,CAAkCI,CAAlC,CAC0BrB,CAAA,GAAap5B,CAAAq5B,QAAb,CAAiC,IAAjC,CAAwCr5B,CAAAq5B,QADlE,CAGF,CAAAC,CAAA,CAAoBH,CAApB,CAA4BC,CAA5B,CARF,CAFA,CAP+B,CAAjC,CAsBFp5B,EAAA06B,UAAA,CAAsB,CAAA,CAjCoB,CAA5C,CAuCA,OAAO16B,EA9K2D,CADxD,CA1Ge,CA8U7BG,QAASA,GAAY,EAAG,CAAA,IAClBy6B,EAAQ,CAAA,CADU,CAElBhuC,EAAO,IASX,KAAAiuC,aAAA,CAAoBC,QAAQ,CAACC,CAAD,CAAO,CACjC,MAAI9xC,EAAA,CAAU8xC,CAAV,CAAJ,EACEH,CACK,CADGG,CACH,CAAA,IAFP,EAISH,CALwB,CASnC,KAAAnxB,KAAA,CAAY,CAAC,SAAD,CAAY,QAAQ,CAAC/H,CAAD,CAAU,CAwDxCs5B,QAASA,EAAW,CAACzmC,CAAD,CAAM,CACpBA,CAAJ,WAAmB0mC,MAAnB,GACM1mC,CAAA0X,MAAJ,CACE1X,CADF,CACSA,CAAAyX,QAAD,EAAoD,EAApD,GAAgBzX,CAAA0X,MAAA1hB,QAAA,CAAkBgK,CAAAyX,QAAlB,CAAhB,CACA,SADA,CACYzX,CAAAyX,QADZ,CAC0B,IAD1B,CACiCzX,CAAA0X,MADjC,CAEA1X,CAAA0X,MAHR,CAIW1X,CAAA2mC,UAJX;CAKE3mC,CALF,CAKQA,CAAAyX,QALR,CAKsB,IALtB,CAK6BzX,CAAA2mC,UAL7B,CAK6C,GAL7C,CAKmD3mC,CAAAm3B,KALnD,CADF,CASA,OAAOn3B,EAViB,CAa1B4mC,QAASA,EAAU,CAACj2B,CAAD,CAAO,CAAA,IACpBk2B,EAAU15B,CAAA05B,QAAVA,EAA6B,EADT,CAEpBC,EAAQD,CAAA,CAAQl2B,CAAR,CAARm2B,EAAyBD,CAAAE,IAAzBD,EAAwC3yC,CACxC6yC,EAAAA,CAAW,CAAA,CAIf,IAAI,CACFA,CAAA,CAAW,CAAEvuC,CAAAquC,CAAAruC,MADX,CAEF,MAAO4B,CAAP,CAAU,EAEZ,MAAI2sC,EAAJ,CACS,QAAQ,EAAG,CAChB,IAAI3wB,EAAO,EACXnlB,EAAA,CAAQwC,SAAR,CAAmB,QAAQ,CAACsM,CAAD,CAAM,CAC/BqW,CAAA/f,KAAA,CAAUmwC,CAAA,CAAYzmC,CAAZ,CAAV,CAD+B,CAAjC,CAGA,OAAO8mC,EAAAruC,MAAA,CAAYouC,CAAZ,CAAqBxwB,CAArB,CALS,CADpB,CAYO,QAAQ,CAAC4wB,CAAD,CAAOC,CAAP,CAAa,CAC1BJ,CAAA,CAAMG,CAAN,CAAoB,IAAR,EAAAC,CAAA,CAAe,EAAf,CAAoBA,CAAhC,CAD0B,CAvBJ,CApE1B,MAAO,CAQLH,IAAKH,CAAA,CAAW,KAAX,CARA,CAiBL3mB,KAAM2mB,CAAA,CAAW,MAAX,CAjBD,CA0BLO,KAAMP,CAAA,CAAW,MAAX,CA1BD,CAmCLjrB,MAAOirB,CAAA,CAAW,OAAX,CAnCF,CA4CLP,MAAQ,QAAQ,EAAG,CACjB,IAAI/tC,EAAKsuC,CAAA,CAAW,OAAX,CAET,OAAO,SAAQ,EAAG,CACZP,CAAJ,EACE/tC,CAAAG,MAAA,CAASJ,CAAT,CAAe3E,SAAf,CAFc,CAHD,CAAX,EA5CH,CADiC,CAA9B,CApBU,CA4JxB0zC,QAASA,GAAoB,CAACjrC,CAAD,CAAOkrC,CAAP,CAAuB,CAClD,GAAa,kBAAb,GAAIlrC,CAAJ,EAA4C,kBAA5C,GAAmCA,CAAnC,EACgB,kBADhB,GACOA,CADP,EAC+C,kBAD/C;AACsCA,CADtC,EAEgB,WAFhB,GAEOA,CAFP,CAGE,KAAMmrC,GAAA,CAAa,SAAb,CAEmBD,CAFnB,CAAN,CAIF,MAAOlrC,EAR2C,CAWpDorC,QAASA,GAAc,CAACprC,CAAD,CAAO,CAe5B,MAAOA,EAAP,CAAc,EAfc,CAkB9BqrC,QAASA,GAAgB,CAACh3C,CAAD,CAAM62C,CAAN,CAAsB,CAE7C,GAAI72C,CAAJ,CAAS,CACP,GAAIA,CAAAqG,YAAJ,GAAwBrG,CAAxB,CACE,KAAM82C,GAAA,CAAa,QAAb,CAEFD,CAFE,CAAN,CAGK,GACH72C,CAAAL,OADG,GACYK,CADZ,CAEL,KAAM82C,GAAA,CAAa,YAAb,CAEFD,CAFE,CAAN,CAGK,GACH72C,CAAAi3C,SADG,GACcj3C,CAAA4C,SADd,EAC+B5C,CAAA4E,KAD/B,EAC2C5E,CAAA6E,KAD3C,EACuD7E,CAAA8E,KADvD,EAEL,KAAMgyC,GAAA,CAAa,SAAb,CAEFD,CAFE,CAAN,CAGK,GACH72C,CADG,GACKM,MADL,CAEL,KAAMw2C,GAAA,CAAa,SAAb,CAEFD,CAFE,CAAN,CAjBK,CAsBT,MAAO72C,EAxBsC,CA+B/Ck3C,QAASA,GAAkB,CAACl3C,CAAD,CAAM62C,CAAN,CAAsB,CAC/C,GAAI72C,CAAJ,CAAS,CACP,GAAIA,CAAAqG,YAAJ,GAAwBrG,CAAxB,CACE,KAAM82C,GAAA,CAAa,QAAb,CAEJD,CAFI,CAAN,CAGK,GAAI72C,CAAJ,GAAYm3C,EAAZ,EAAoBn3C,CAApB,GAA4Bo3C,EAA5B,EAAqCp3C,CAArC,GAA6Cq3C,EAA7C,CACL,KAAMP,GAAA,CAAa,QAAb,CAEJD,CAFI,CAAN,CANK,CADsC,CAcjDS,QAASA,GAAuB,CAACt3C,CAAD,CAAM62C,CAAN,CAAsB,CACpD,GAAI72C,CAAJ,GACMA,CADN,GACcqG,CAAC,CAADA,aADd,EACiCrG,CADjC,GACyCqG,CAAC,CAAA,CAADA,aADzC,EACgErG,CADhE,GACwE,EAAAqG,YADxE;AAEMrG,CAFN,GAEc,EAAAqG,YAFd,EAEgCrG,CAFhC,GAEwC,EAAAqG,YAFxC,EAE0DrG,CAF1D,GAEkEgoB,QAAA3hB,YAFlE,EAGI,KAAMywC,GAAA,CAAa,QAAb,CACyDD,CADzD,CAAN,CAJgD,CAugBtDU,QAASA,GAAS,CAAC9R,CAAD,CAAI6B,CAAJ,CAAO,CACvB,MAAoB,WAAb,GAAA,MAAO7B,EAAP,CAA2BA,CAA3B,CAA+B6B,CADf,CAIzBkQ,QAASA,GAAM,CAACv3B,CAAD,CAAIw3B,CAAJ,CAAO,CACpB,MAAiB,WAAjB,GAAI,MAAOx3B,EAAX,CAAqCw3B,CAArC,CACiB,WAAjB,GAAI,MAAOA,EAAX,CAAqCx3B,CAArC,CACOA,CADP,CACWw3B,CAHS,CAWtBC,QAASA,EAA+B,CAACC,CAAD,CAAM59B,CAAN,CAAe,CACrD,IAAI69B,CAAJ,CACIC,CACJ,QAAQF,CAAAx3B,KAAR,EACA,KAAK23B,CAAAC,QAAL,CACEH,CAAA,CAAe,CAAA,CACfl3C,EAAA,CAAQi3C,CAAAtL,KAAR,CAAkB,QAAQ,CAAC2L,CAAD,CAAO,CAC/BN,CAAA,CAAgCM,CAAA9S,WAAhC,CAAiDnrB,CAAjD,CACA69B,EAAA,CAAeA,CAAf,EAA+BI,CAAA9S,WAAAnzB,SAFA,CAAjC,CAIA4lC,EAAA5lC,SAAA,CAAe6lC,CACf,MACF,MAAKE,CAAAG,QAAL,CACEN,CAAA5lC,SAAA,CAAe,CAAA,CACf4lC,EAAAO,QAAA,CAAc,EACd,MACF,MAAKJ,CAAAK,gBAAL,CACET,CAAA,CAAgCC,CAAAS,SAAhC,CAA8Cr+B,CAA9C,CACA49B,EAAA5lC,SAAA,CAAe4lC,CAAAS,SAAArmC,SACf4lC,EAAAO,QAAA,CAAcP,CAAAS,SAAAF,QACd;KACF,MAAKJ,CAAAO,iBAAL,CACEX,CAAA,CAAgCC,CAAAW,KAAhC,CAA0Cv+B,CAA1C,CACA29B,EAAA,CAAgCC,CAAAY,MAAhC,CAA2Cx+B,CAA3C,CACA49B,EAAA5lC,SAAA,CAAe4lC,CAAAW,KAAAvmC,SAAf,EAAoC4lC,CAAAY,MAAAxmC,SACpC4lC,EAAAO,QAAA,CAAcP,CAAAW,KAAAJ,QAAAzwC,OAAA,CAAwBkwC,CAAAY,MAAAL,QAAxB,CACd,MACF,MAAKJ,CAAAU,kBAAL,CACEd,CAAA,CAAgCC,CAAAW,KAAhC,CAA0Cv+B,CAA1C,CACA29B,EAAA,CAAgCC,CAAAY,MAAhC,CAA2Cx+B,CAA3C,CACA49B,EAAA5lC,SAAA,CAAe4lC,CAAAW,KAAAvmC,SAAf,EAAoC4lC,CAAAY,MAAAxmC,SACpC4lC,EAAAO,QAAA,CAAcP,CAAA5lC,SAAA,CAAe,EAAf,CAAoB,CAAC4lC,CAAD,CAClC,MACF,MAAKG,CAAAW,sBAAL,CACEf,CAAA,CAAgCC,CAAAjzC,KAAhC,CAA0CqV,CAA1C,CACA29B,EAAA,CAAgCC,CAAAe,UAAhC,CAA+C3+B,CAA/C,CACA29B,EAAA,CAAgCC,CAAAgB,WAAhC,CAAgD5+B,CAAhD,CACA49B,EAAA5lC,SAAA,CAAe4lC,CAAAjzC,KAAAqN,SAAf,EAAoC4lC,CAAAe,UAAA3mC,SAApC,EAA8D4lC,CAAAgB,WAAA5mC,SAC9D4lC,EAAAO,QAAA,CAAcP,CAAA5lC,SAAA,CAAe,EAAf,CAAoB,CAAC4lC,CAAD,CAClC,MACF,MAAKG,CAAAc,WAAL,CACEjB,CAAA5lC,SAAA,CAAe,CAAA,CACf4lC,EAAAO,QAAA;AAAc,CAACP,CAAD,CACd,MACF,MAAKG,CAAAe,iBAAL,CACEnB,CAAA,CAAgCC,CAAAmB,OAAhC,CAA4C/+B,CAA5C,CACI49B,EAAAoB,SAAJ,EACErB,CAAA,CAAgCC,CAAAje,SAAhC,CAA8C3f,CAA9C,CAEF49B,EAAA5lC,SAAA,CAAe4lC,CAAAmB,OAAA/mC,SAAf,GAAuC,CAAC4lC,CAAAoB,SAAxC,EAAwDpB,CAAAje,SAAA3nB,SAAxD,CACA4lC,EAAAO,QAAA,CAAc,CAACP,CAAD,CACd,MACF,MAAKG,CAAAkB,eAAL,CACEpB,CAAA,CAAeD,CAAAzlC,OAAA,CAxDV,CAwDmC6H,CAzDjCjS,CAyD0C6vC,CAAAsB,OAAAttC,KAzD1C7D,CACDk6B,UAwDS,CAAqD,CAAA,CACpE6V,EAAA,CAAc,EACdn3C,EAAA,CAAQi3C,CAAAz0C,UAAR,CAAuB,QAAQ,CAAC80C,CAAD,CAAO,CACpCN,CAAA,CAAgCM,CAAhC,CAAsCj+B,CAAtC,CACA69B,EAAA,CAAeA,CAAf,EAA+BI,CAAAjmC,SAC1BimC,EAAAjmC,SAAL,EACE8lC,CAAA/xC,KAAAmC,MAAA,CAAuB4vC,CAAvB,CAAoCG,CAAAE,QAApC,CAJkC,CAAtC,CAOAP,EAAA5lC,SAAA,CAAe6lC,CACfD,EAAAO,QAAA,CAAcP,CAAAzlC,OAAA,EAlER8vB,CAkEkCjoB,CAnEjCjS,CAmE0C6vC,CAAAsB,OAAAttC,KAnE1C7D,CACDk6B,UAkEQ,CAAsD6V,CAAtD,CAAoE,CAACF,CAAD,CAClF,MACF,MAAKG,CAAAoB,qBAAL,CACExB,CAAA,CAAgCC,CAAAW,KAAhC,CAA0Cv+B,CAA1C,CACA29B,EAAA,CAAgCC,CAAAY,MAAhC,CAA2Cx+B,CAA3C,CACA49B,EAAA5lC,SAAA,CAAe4lC,CAAAW,KAAAvmC,SAAf,EAAoC4lC,CAAAY,MAAAxmC,SACpC4lC,EAAAO,QAAA,CAAc,CAACP,CAAD,CACd;KACF,MAAKG,CAAAqB,gBAAL,CACEvB,CAAA,CAAe,CAAA,CACfC,EAAA,CAAc,EACdn3C,EAAA,CAAQi3C,CAAA71B,SAAR,CAAsB,QAAQ,CAACk2B,CAAD,CAAO,CACnCN,CAAA,CAAgCM,CAAhC,CAAsCj+B,CAAtC,CACA69B,EAAA,CAAeA,CAAf,EAA+BI,CAAAjmC,SAC1BimC,EAAAjmC,SAAL,EACE8lC,CAAA/xC,KAAAmC,MAAA,CAAuB4vC,CAAvB,CAAoCG,CAAAE,QAApC,CAJiC,CAArC,CAOAP,EAAA5lC,SAAA,CAAe6lC,CACfD,EAAAO,QAAA,CAAcL,CACd,MACF,MAAKC,CAAAsB,iBAAL,CACExB,CAAA,CAAe,CAAA,CACfC,EAAA,CAAc,EACdn3C,EAAA,CAAQi3C,CAAA0B,WAAR,CAAwB,QAAQ,CAAC3f,CAAD,CAAW,CACzCge,CAAA,CAAgChe,CAAAj4B,MAAhC,CAAgDsY,CAAhD,CACA69B,EAAA,CAAeA,CAAf,EAA+Ble,CAAAj4B,MAAAsQ,SAC1B2nB,EAAAj4B,MAAAsQ,SAAL,EACE8lC,CAAA/xC,KAAAmC,MAAA,CAAuB4vC,CAAvB,CAAoCne,CAAAj4B,MAAAy2C,QAApC,CAJuC,CAA3C,CAOAP,EAAA5lC,SAAA,CAAe6lC,CACfD,EAAAO,QAAA,CAAcL,CACd,MACF,MAAKC,CAAAwB,eAAL,CACE3B,CAAA5lC,SAAA,CAAe,CAAA,CACf4lC,EAAAO,QAAA,CAAc,EACd,MACF,MAAKJ,CAAAyB,iBAAL,CACE5B,CAAA5lC,SACA,CADe,CAAA,CACf,CAAA4lC,CAAAO,QAAA,CAAc,EApGhB,CAHqD,CA4GvDsB,QAASA,GAAS,CAACnN,CAAD,CAAO,CACvB,GAAmB,CAAnB,EAAIA,CAAAhsC,OAAJ,CAAA,CACIo5C,CAAAA,CAAiBpN,CAAA,CAAK,CAAL,CAAAnH,WACrB,KAAIr5B,EAAY4tC,CAAAvB,QAChB;MAAyB,EAAzB,GAAIrsC,CAAAxL,OAAJ,CAAmCwL,CAAnC,CACOA,CAAA,CAAU,CAAV,CAAA,GAAiB4tC,CAAjB,CAAkC5tC,CAAlC,CAA8ChM,CAJrD,CADuB,CAQzB65C,QAASA,GAAY,CAAC/B,CAAD,CAAM,CACzB,MAAOA,EAAAx3B,KAAP,GAAoB23B,CAAAc,WAApB,EAAsCjB,CAAAx3B,KAAtC,GAAmD23B,CAAAe,iBAD1B,CAI3Bc,QAASA,GAAa,CAAChC,CAAD,CAAM,CAC1B,GAAwB,CAAxB,GAAIA,CAAAtL,KAAAhsC,OAAJ,EAA6Bq5C,EAAA,CAAa/B,CAAAtL,KAAA,CAAS,CAAT,CAAAnH,WAAb,CAA7B,CACE,MAAO,CAAC/kB,KAAM23B,CAAAoB,qBAAP,CAAiCZ,KAAMX,CAAAtL,KAAA,CAAS,CAAT,CAAAnH,WAAvC,CAA+DqT,MAAO,CAACp4B,KAAM23B,CAAA8B,iBAAP,CAAtE,CAAoGC,SAAU,GAA9G,CAFiB,CAM5BC,QAASA,GAAS,CAACnC,CAAD,CAAM,CACtB,MAA2B,EAA3B,GAAOA,CAAAtL,KAAAhsC,OAAP,EACwB,CADxB,GACIs3C,CAAAtL,KAAAhsC,OADJ,GAEIs3C,CAAAtL,KAAA,CAAS,CAAT,CAAAnH,WAAA/kB,KAFJ,GAEoC23B,CAAAG,QAFpC,EAGIN,CAAAtL,KAAA,CAAS,CAAT,CAAAnH,WAAA/kB,KAHJ,GAGoC23B,CAAAqB,gBAHpC,EAIIxB,CAAAtL,KAAA,CAAS,CAAT,CAAAnH,WAAA/kB,KAJJ,GAIoC23B,CAAAsB,iBAJpC,CADsB,CAYxBW,QAASA,GAAW,CAACC,CAAD,CAAajgC,CAAb,CAAsB,CACxC,IAAAigC,WAAA;AAAkBA,CAClB,KAAAjgC,QAAA,CAAeA,CAFyB,CAmf1CkgC,QAASA,GAAc,CAACD,CAAD,CAAajgC,CAAb,CAAsB,CAC3C,IAAAigC,WAAA,CAAkBA,CAClB,KAAAjgC,QAAA,CAAeA,CAF4B,CAgZ7CmgC,QAASA,GAA6B,CAACvuC,CAAD,CAAO,CAC3C,MAAe,aAAf,EAAOA,CADoC,CAM7CwuC,QAASA,GAAU,CAAC14C,CAAD,CAAQ,CACzB,MAAOX,EAAA,CAAWW,CAAAgB,QAAX,CAAA,CAA4BhB,CAAAgB,QAAA,EAA5B,CAA8C23C,EAAAp5C,KAAA,CAAmBS,CAAnB,CAD5B,CAuD3B6Z,QAASA,GAAc,EAAG,CACxB,IAAI++B,EAAe7yC,CAAA,EAAnB,CACI8yC,EAAiB9yC,CAAA,EAErB,KAAAkd,KAAA,CAAY,CAAC,SAAD,CAAY,QAAQ,CAAC3K,CAAD,CAAU,CAkBxCsB,QAASA,EAAM,CAACqzB,CAAD,CAAM6L,CAAN,CAAqBC,CAArB,CAAsC,CAAA,IAC/CC,CAD+C,CAC7BC,CAD6B,CACpBC,CAE/BH,EAAA,CAAkBA,CAAlB,EAAqCI,CAErC,QAAQ,MAAOlM,EAAf,EACE,KAAK,QAAL,CAEEiM,CAAA,CADAjM,CACA,CADMA,CAAApvB,KAAA,EAGN,KAAI8H,EAASozB,CAAA,CAAkBF,CAAlB,CAAmCD,CAChDI,EAAA,CAAmBrzB,CAAA,CAAMuzB,CAAN,CAEnB,IAAKF,CAAAA,CAAL,CAAuB,CACC,GAAtB,GAAI/L,CAAA1nC,OAAA,CAAW,CAAX,CAAJ,EAA+C,GAA/C,GAA6B0nC,CAAA1nC,OAAA,CAAW,CAAX,CAA7B,GACE0zC,CACA,CADU,CAAA,CACV,CAAAhM,CAAA,CAAMA,CAAAlkC,UAAA,CAAc,CAAd,CAFR,CAIIqwC,EAAAA,CAAeL,CAAA,CAAkBM,CAAlB,CAA2CC,CAC9D,KAAIC,EAAQ,IAAIC,EAAJ,CAAUJ,CAAV,CAEZJ,EAAA,CAAmB/xC,CADNwyC,IAAIC,EAAJD,CAAWF,CAAXE,CAAkBnhC,CAAlBmhC,CAA2BL,CAA3BK,CACMxyC,OAAA,CAAagmC,CAAb,CACf+L,EAAA1oC,SAAJ,CACE0oC,CAAA9L,gBADF,CACqCZ,CADrC,CAEW2M,CAAJ,CACLD,CAAA9L,gBADK,CAC8B8L,CAAA7Y,QAAA;AAC/BwZ,CAD+B,CACDC,CAF7B,CAGIZ,CAAAa,OAHJ,GAILb,CAAA9L,gBAJK,CAI8B4M,CAJ9B,CAMHf,EAAJ,GACEC,CADF,CACqBe,CAAA,CAA2Bf,CAA3B,CADrB,CAGArzB,EAAA,CAAMuzB,CAAN,CAAA,CAAkBF,CApBG,CAsBvB,MAAOgB,EAAA,CAAehB,CAAf,CAAiCF,CAAjC,CAET,MAAK,UAAL,CACE,MAAOkB,EAAA,CAAe/M,CAAf,CAAoB6L,CAApB,CAET,SACE,MAAOkB,EAAA,CAAe93C,CAAf,CAAqB42C,CAArB,CApCX,CALmD,CA6CrDiB,QAASA,EAA0B,CAAC1zC,CAAD,CAAK,CAatC4zC,QAASA,EAAgB,CAAC9uC,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACvD,IAAIK,EAAyBf,CAC7BA,EAAA,CAAuB,CAAA,CACvB,IAAI,CACF,MAAO9yC,EAAA,CAAG8E,CAAH,CAAUgb,CAAV,CAAkBia,CAAlB,CAA0ByZ,CAA1B,CADL,CAAJ,OAEU,CACRV,CAAA,CAAuBe,CADf,CAL6C,CAZzD,GAAK7zC,CAAAA,CAAL,CAAS,MAAOA,EAChB4zC,EAAA/M,gBAAA,CAAmC7mC,CAAA6mC,gBACnC+M,EAAA7Z,OAAA,CAA0B2Z,CAAA,CAA2B1zC,CAAA+5B,OAA3B,CAC1B6Z,EAAA3pC,SAAA,CAA4BjK,CAAAiK,SAC5B2pC,EAAA9Z,QAAA,CAA2B95B,CAAA85B,QAC3B,KAAS,IAAAtgC,EAAI,CAAb,CAAgBwG,CAAAwzC,OAAhB,EAA6Bh6C,CAA7B,CAAiCwG,CAAAwzC,OAAAj7C,OAAjC,CAAmD,EAAEiB,CAArD,CACEwG,CAAAwzC,OAAA,CAAUh6C,CAAV,CAAA,CAAek6C,CAAA,CAA2B1zC,CAAAwzC,OAAA,CAAUh6C,CAAV,CAA3B,CAEjBo6C,EAAAJ,OAAA,CAA0BxzC,CAAAwzC,OAE1B,OAAOI,EAX+B,CAwBxCE,QAASA,EAAyB,CAAClb,CAAD,CAAWmb,CAAX,CAA4B,CAE5D,MAAgB,KAAhB,EAAInb,CAAJ,EAA2C,IAA3C,EAAwBmb,CAAxB,CACSnb,CADT,GACsBmb,CADtB,CAIwB,QAAxB,GAAI,MAAOnb,EAAX,GAKEA,CAEI,CAFOyZ,EAAA,CAAWzZ,CAAX,CAEP,CAAoB,QAApB;AAAA,MAAOA,EAPb,EASW,CAAA,CATX,CAgBOA,CAhBP,GAgBoBmb,CAhBpB,EAgBwCnb,CAhBxC,GAgBqDA,CAhBrD,EAgBiEmb,CAhBjE,GAgBqFA,CAtBzB,CAyB9DN,QAASA,EAAmB,CAAC3uC,CAAD,CAAQof,CAAR,CAAkBgiB,CAAlB,CAAkCyM,CAAlC,CAAoDqB,CAApD,CAA2E,CACrG,IAAIC,EAAmBtB,CAAAa,OAAvB,CACIU,CAEJ,IAAgC,CAAhC,GAAID,CAAA17C,OAAJ,CAAmC,CACjC,IAAI47C,EAAkBL,CAAtB,CACAG,EAAmBA,CAAA,CAAiB,CAAjB,CACnB,OAAOnvC,EAAAtI,OAAA,CAAa43C,QAA6B,CAACtvC,CAAD,CAAQ,CACvD,IAAIuvC,EAAgBJ,CAAA,CAAiBnvC,CAAjB,CACfgvC,EAAA,CAA0BO,CAA1B,CAAyCF,CAAzC,CAAL,GACED,CACA,CADavB,CAAA,CAAiB7tC,CAAjB,CAAwB/M,CAAxB,CAAmCA,CAAnC,CAA8C,CAACs8C,CAAD,CAA9C,CACb,CAAAF,CAAA,CAAkBE,CAAlB,EAAmChC,EAAA,CAAWgC,CAAX,CAFrC,CAIA,OAAOH,EANgD,CAAlD,CAOJhwB,CAPI,CAOMgiB,CAPN,CAOsB8N,CAPtB,CAH0B,CAenC,IAFA,IAAIM,EAAwB,EAA5B,CACIC,EAAiB,EADrB,CAES/6C,EAAI,CAFb,CAEgBY,EAAK65C,CAAA17C,OAArB,CAA8CiB,CAA9C,CAAkDY,CAAlD,CAAsDZ,CAAA,EAAtD,CACE86C,CAAA,CAAsB96C,CAAtB,CACA,CAD2Bs6C,CAC3B,CAAAS,CAAA,CAAe/6C,CAAf,CAAA,CAAoB,IAGtB,OAAOsL,EAAAtI,OAAA,CAAag4C,QAA8B,CAAC1vC,CAAD,CAAQ,CAGxD,IAFA,IAAI2vC,EAAU,CAAA,CAAd,CAESj7C,EAAI,CAFb,CAEgBY,EAAK65C,CAAA17C,OAArB,CAA8CiB,CAA9C,CAAkDY,CAAlD,CAAsDZ,CAAA,EAAtD,CAA2D,CACzD,IAAI66C,EAAgBJ,CAAA,CAAiBz6C,CAAjB,CAAA,CAAoBsL,CAApB,CACpB,IAAI2vC,CAAJ,GAAgBA,CAAhB,CAA0B,CAACX,CAAA,CAA0BO,CAA1B,CAAyCC,CAAA,CAAsB96C,CAAtB,CAAzC,CAA3B,EACE+6C,CAAA,CAAe/6C,CAAf,CACA,CADoB66C,CACpB,CAAAC,CAAA,CAAsB96C,CAAtB,CAAA,CAA2B66C,CAA3B,EAA4ChC,EAAA,CAAWgC,CAAX,CAJW,CAQvDI,CAAJ,GACEP,CADF,CACevB,CAAA,CAAiB7tC,CAAjB,CAAwB/M,CAAxB,CAAmCA,CAAnC,CAA8Cw8C,CAA9C,CADf,CAIA,OAAOL,EAfiD,CAAnD,CAgBJhwB,CAhBI,CAgBMgiB,CAhBN,CAgBsB8N,CAhBtB,CAxB8F,CA2CvGT,QAASA,EAAoB,CAACzuC,CAAD,CAAQof,CAAR,CAAkBgiB,CAAlB,CAAkCyM,CAAlC,CAAoD,CAAA,IAC3EvM,CAD2E,CAClE3M,CACb,OAAO2M,EAAP,CAAiBthC,CAAAtI,OAAA,CAAak4C,QAAqB,CAAC5vC,CAAD,CAAQ,CACzD,MAAO6tC,EAAA,CAAiB7tC,CAAjB,CADkD,CAA1C,CAEd6vC,QAAwB,CAACh7C,CAAD,CAAQi7C,CAAR,CAAa9vC,CAAb,CAAoB,CAC7C20B,CAAA,CAAY9/B,CACRX;CAAA,CAAWkrB,CAAX,CAAJ,EACEA,CAAA/jB,MAAA,CAAe,IAAf,CAAqB/E,SAArB,CAEEgB,EAAA,CAAUzC,CAAV,CAAJ,EACEmL,CAAA+vC,aAAA,CAAmB,QAAQ,EAAG,CACxBz4C,CAAA,CAAUq9B,CAAV,CAAJ,EACE2M,CAAA,EAF0B,CAA9B,CAN2C,CAF9B,CAcdF,CAdc,CAF8D,CAmBjFoN,QAASA,EAA2B,CAACxuC,CAAD,CAAQof,CAAR,CAAkBgiB,CAAlB,CAAkCyM,CAAlC,CAAoD,CAgBtFmC,QAASA,EAAY,CAACn7C,CAAD,CAAQ,CAC3B,IAAIo7C,EAAa,CAAA,CACjBn8C,EAAA,CAAQe,CAAR,CAAe,QAAQ,CAAC0G,CAAD,CAAM,CACtBjE,CAAA,CAAUiE,CAAV,CAAL,GAAqB00C,CAArB,CAAkC,CAAA,CAAlC,CAD2B,CAA7B,CAGA,OAAOA,EALoB,CAhByD,IAClF3O,CADkF,CACzE3M,CACb,OAAO2M,EAAP,CAAiBthC,CAAAtI,OAAA,CAAak4C,QAAqB,CAAC5vC,CAAD,CAAQ,CACzD,MAAO6tC,EAAA,CAAiB7tC,CAAjB,CADkD,CAA1C,CAEd6vC,QAAwB,CAACh7C,CAAD,CAAQi7C,CAAR,CAAa9vC,CAAb,CAAoB,CAC7C20B,CAAA,CAAY9/B,CACRX,EAAA,CAAWkrB,CAAX,CAAJ,EACEA,CAAAhrB,KAAA,CAAc,IAAd,CAAoBS,CAApB,CAA2Bi7C,CAA3B,CAAgC9vC,CAAhC,CAEEgwC,EAAA,CAAan7C,CAAb,CAAJ,EACEmL,CAAA+vC,aAAA,CAAmB,QAAQ,EAAG,CACxBC,CAAA,CAAarb,CAAb,CAAJ,EAA6B2M,CAAA,EADD,CAA9B,CAN2C,CAF9B,CAYdF,CAZc,CAFqE,CAyBxFD,QAASA,EAAqB,CAACnhC,CAAD,CAAQof,CAAR,CAAkBgiB,CAAlB,CAAkCyM,CAAlC,CAAoD,CAChF,IAAIvM,CACJ,OAAOA,EAAP,CAAiBthC,CAAAtI,OAAA,CAAaw4C,QAAsB,CAAClwC,CAAD,CAAQ,CAC1DshC,CAAA,EACA,OAAOuM,EAAA,CAAiB7tC,CAAjB,CAFmD,CAA3C,CAGdof,CAHc,CAGJgiB,CAHI,CAF+D,CAQlFyN,QAASA,EAAc,CAAChB,CAAD,CAAmBF,CAAnB,CAAkC,CACvD,GAAKA,CAAAA,CAAL,CAAoB,MAAOE,EAC3B,KAAIsC,EAAgBtC,CAAA9L,gBAApB,CACIqO,EAAY,CAAA,CADhB,CAOIl1C,EAHAi1C,CAGK,GAHa3B,CAGb,EAFL2B,CAEK,GAFa1B,CAEb,CAAe4B,QAAqC,CAACrwC,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACvF75C,CAAAA,CAAQu7C,CAAA,EAAa1B,CAAb,CAAsBA,CAAA,CAAO,CAAP,CAAtB,CAAkCb,CAAA,CAAiB7tC,CAAjB,CAAwBgb,CAAxB,CAAgCia,CAAhC,CAAwCyZ,CAAxC,CAC9C,OAAOf,EAAA,CAAc94C,CAAd;AAAqBmL,CAArB,CAA4Bgb,CAA5B,CAFoF,CAApF,CAGLs1B,QAAqC,CAACtwC,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACnE75C,CAAAA,CAAQg5C,CAAA,CAAiB7tC,CAAjB,CAAwBgb,CAAxB,CAAgCia,CAAhC,CAAwCyZ,CAAxC,CACR90B,EAAAA,CAAS+zB,CAAA,CAAc94C,CAAd,CAAqBmL,CAArB,CAA4Bgb,CAA5B,CAGb,OAAO1jB,EAAA,CAAUzC,CAAV,CAAA,CAAmB+kB,CAAnB,CAA4B/kB,CALoC,CASrEg5C,EAAA9L,gBAAJ,EACI8L,CAAA9L,gBADJ,GACyC4M,CADzC,CAEEzzC,CAAA6mC,gBAFF,CAEuB8L,CAAA9L,gBAFvB,CAGY4L,CAAAvY,UAHZ,GAMEl6B,CAAA6mC,gBAEA,CAFqB4M,CAErB,CADAyB,CACA,CADY,CAACvC,CAAAa,OACb,CAAAxzC,CAAAwzC,OAAA,CAAYb,CAAAa,OAAA,CAA0Bb,CAAAa,OAA1B,CAAoD,CAACb,CAAD,CARlE,CAWA,OAAO3yC,EAhCgD,CA9MzD,IAAIq1C,EAAexqC,EAAA,EAAAwqC,aAAnB,CACIpC,EAAgB,CACdpoC,IAAKwqC,CADS,CAEd3C,gBAAiB,CAAA,CAFH,CADpB,CAKIM,EAAyB,CACvBnoC,IAAKwqC,CADkB,CAEvB3C,gBAAiB,CAAA,CAFM,CAL7B,CASII,EAAuB,CAAA,CAE3Bv/B,EAAA+hC,yBAAA,CAAkCC,QAAQ,EAAG,CAC3C,MAAOzC,EADoC,CAI7C,OAAOv/B,EAhBiC,CAA9B,CAJY,CAgd1BK,QAASA,GAAU,EAAG,CAEpB,IAAAgJ,KAAA,CAAY,CAAC,YAAD,CAAe,mBAAf,CAAoC,QAAQ,CAACnJ,CAAD,CAAa1B,CAAb,CAAgC,CACtF,MAAOyjC,GAAA,CAAS,QAAQ,CAAC7wB,CAAD,CAAW,CACjClR,CAAAlX,WAAA,CAAsBooB,CAAtB,CADiC,CAA5B,CAEJ5S,CAFI,CAD+E,CAA5E,CAFQ,CAStB+B,QAASA,GAAW,EAAG,CACrB,IAAA8I,KAAA;AAAY,CAAC,UAAD,CAAa,mBAAb,CAAkC,QAAQ,CAACrL,CAAD,CAAWQ,CAAX,CAA8B,CAClF,MAAOyjC,GAAA,CAAS,QAAQ,CAAC7wB,CAAD,CAAW,CACjCpT,CAAAsU,MAAA,CAAelB,CAAf,CADiC,CAA5B,CAEJ5S,CAFI,CAD2E,CAAxE,CADS,CAgBvByjC,QAASA,GAAQ,CAACC,CAAD,CAAWC,CAAX,CAA6B,CAsB5CC,QAASA,EAAO,EAAG,CACjB,IAAAnJ,QAAA,CAAe,CAAErN,OAAQ,CAAV,CADE,CAgCnByW,QAASA,EAAU,CAAC98C,CAAD,CAAUkH,CAAV,CAAc,CAC/B,MAAO,SAAQ,CAACrG,CAAD,CAAQ,CACrBqG,CAAA9G,KAAA,CAAQJ,CAAR,CAAiBa,CAAjB,CADqB,CADQ,CA8BjCk8C,QAASA,EAAoB,CAAClyB,CAAD,CAAQ,CAC/BmyB,CAAAnyB,CAAAmyB,iBAAJ,EAA+BnyB,CAAAoyB,QAA/B,GACApyB,CAAAmyB,iBACA,CADyB,CAAA,CACzB,CAAAL,CAAA,CAAS,QAAQ,EAAG,CA3BO,IACvBz1C,CADuB,CACnB8iC,CADmB,CACTiT,CAElBA,EAAA,CAwBmCpyB,CAxBzBoyB,QAwByBpyB,EAvBnCmyB,iBAAA,CAAyB,CAAA,CAuBUnyB,EAtBnCoyB,QAAA,CAAgBh+C,CAChB,KAN2B,IAMlByB,EAAI,CANc,CAMXY,EAAK27C,CAAAx9C,OAArB,CAAqCiB,CAArC,CAAyCY,CAAzC,CAA6C,EAAEZ,CAA/C,CAAkD,CAChDspC,CAAA,CAAWiT,CAAA,CAAQv8C,CAAR,CAAA,CAAW,CAAX,CACXwG,EAAA,CAAK+1C,CAAA,CAAQv8C,CAAR,CAAA,CAmB4BmqB,CAnBjBwb,OAAX,CACL,IAAI,CACEnmC,CAAA,CAAWgH,CAAX,CAAJ,CACE8iC,CAAAC,QAAA,CAAiB/iC,CAAA,CAgBY2jB,CAhBThqB,MAAH,CAAjB,CADF,CAE4B,CAArB,GAewBgqB,CAfpBwb,OAAJ,CACL2D,CAAAC,QAAA,CAc6Bpf,CAdZhqB,MAAjB,CADK,CAGLmpC,CAAArC,OAAA,CAY6B9c,CAZbhqB,MAAhB,CANA,CAQF,MAAOoI,CAAP,CAAU,CACV+gC,CAAArC,OAAA,CAAgB1+B,CAAhB,CACA,CAAA2zC,CAAA,CAAiB3zC,CAAjB,CAFU,CAXoC,CAqB9B,CAApB,CAFA,CADmC,CAMrCi0C,QAASA,EAAQ,EAAG,CAClB,IAAAtU,QAAA;AAAe,IAAIiU,CADD,CAzFpB,IAAIM,EAAWj+C,CAAA,CAAO,IAAP,CAAak+C,SAAb,CAyBfh7C,EAAA,CAAOy6C,CAAAx1B,UAAP,CAA0B,CACxBwW,KAAMA,QAAQ,CAACwf,CAAD,CAAcC,CAAd,CAA0BC,CAA1B,CAAwC,CACpD,GAAIl6C,CAAA,CAAYg6C,CAAZ,CAAJ,EAAgCh6C,CAAA,CAAYi6C,CAAZ,CAAhC,EAA2Dj6C,CAAA,CAAYk6C,CAAZ,CAA3D,CACE,MAAO,KAET,KAAI33B,EAAS,IAAIs3B,CAEjB,KAAAxJ,QAAAuJ,QAAA,CAAuB,IAAAvJ,QAAAuJ,QAAvB,EAA+C,EAC/C,KAAAvJ,QAAAuJ,QAAA/3C,KAAA,CAA0B,CAAC0gB,CAAD,CAASy3B,CAAT,CAAsBC,CAAtB,CAAkCC,CAAlC,CAA1B,CAC0B,EAA1B,CAAI,IAAA7J,QAAArN,OAAJ,EAA6B0W,CAAA,CAAqB,IAAArJ,QAArB,CAE7B,OAAO9tB,EAAAgjB,QAV6C,CAD9B,CAcxB,QAAS4U,QAAQ,CAAC3xB,CAAD,CAAW,CAC1B,MAAO,KAAAgS,KAAA,CAAU,IAAV,CAAgBhS,CAAhB,CADmB,CAdJ,CAkBxB,UAAW4xB,QAAQ,CAAC5xB,CAAD,CAAW0xB,CAAX,CAAyB,CAC1C,MAAO,KAAA1f,KAAA,CAAU,QAAQ,CAACh9B,CAAD,CAAQ,CAC/B,MAAO68C,EAAA,CAAe78C,CAAf,CAAsB,CAAA,CAAtB,CAA4BgrB,CAA5B,CADwB,CAA1B,CAEJ,QAAQ,CAACtB,CAAD,CAAQ,CACjB,MAAOmzB,EAAA,CAAenzB,CAAf,CAAsB,CAAA,CAAtB,CAA6BsB,CAA7B,CADU,CAFZ,CAIJ0xB,CAJI,CADmC,CAlBpB,CAA1B,CAoEAn7C,EAAA,CAAO86C,CAAA71B,UAAP,CAA2B,CACzB4iB,QAASA,QAAQ,CAAC1iC,CAAD,CAAM,CACjB,IAAAqhC,QAAA8K,QAAArN,OAAJ,GACI9+B,CAAJ,GAAY,IAAAqhC,QAAZ,CACE,IAAA+U,SAAA,CAAcR,CAAA,CACZ,QADY;AAGZ51C,CAHY,CAAd,CADF,CAME,IAAAq2C,UAAA,CAAer2C,CAAf,CAPF,CADqB,CADE,CAczBq2C,UAAWA,QAAQ,CAACr2C,CAAD,CAAM,CAmBvBsiC,QAASA,EAAc,CAACtiC,CAAD,CAAM,CACvBkiC,CAAJ,GACAA,CACA,CADO,CAAA,CACP,CAAAoU,CAAAD,UAAA,CAAer2C,CAAf,CAFA,CAD2B,CAK7Bu2C,QAASA,EAAa,CAACv2C,CAAD,CAAM,CACtBkiC,CAAJ,GACAA,CACA,CADO,CAAA,CACP,CAAAoU,CAAAF,SAAA,CAAcp2C,CAAd,CAFA,CAD0B,CAvB5B,IAAIs2B,CAAJ,CACIggB,EAAO,IADX,CAEIpU,EAAO,CAAA,CACX,IAAI,CACF,GAAKloC,CAAA,CAASgG,CAAT,CAAL,EAAsBrH,CAAA,CAAWqH,CAAX,CAAtB,CAAwCs2B,CAAA,CAAOt2B,CAAP,EAAcA,CAAAs2B,KAClD39B,EAAA,CAAW29B,CAAX,CAAJ,EACE,IAAA+K,QAAA8K,QAAArN,OACA,CAD+B,EAC/B,CAAAxI,CAAAz9B,KAAA,CAAUmH,CAAV,CAAesiC,CAAf,CAA+BiU,CAA/B,CAA8ChB,CAAA,CAAW,IAAX,CAAiB,IAAArN,OAAjB,CAA9C,CAFF,GAIE,IAAA7G,QAAA8K,QAAA7yC,MAEA,CAF6B0G,CAE7B,CADA,IAAAqhC,QAAA8K,QAAArN,OACA,CAD8B,CAC9B,CAAA0W,CAAA,CAAqB,IAAAnU,QAAA8K,QAArB,CANF,CAFE,CAUF,MAAOzqC,CAAP,CAAU,CACV60C,CAAA,CAAc70C,CAAd,CACA,CAAA2zC,CAAA,CAAiB3zC,CAAjB,CAFU,CAdW,CAdA,CA6CzB0+B,OAAQA,QAAQ,CAAC94B,CAAD,CAAS,CACnB,IAAA+5B,QAAA8K,QAAArN,OAAJ,EACA,IAAAsX,SAAA,CAAc9uC,CAAd,CAFuB,CA7CA,CAkDzB8uC,SAAUA,QAAQ,CAAC9uC,CAAD,CAAS,CACzB,IAAA+5B,QAAA8K,QAAA7yC,MAAA,CAA6BgO,CAC7B,KAAA+5B,QAAA8K,QAAArN,OAAA,CAA8B,CAC9B0W,EAAA,CAAqB,IAAAnU,QAAA8K,QAArB,CAHyB,CAlDF;AAwDzBjE,OAAQA,QAAQ,CAACsO,CAAD,CAAW,CACzB,IAAI5S,EAAY,IAAAvC,QAAA8K,QAAAuJ,QAEoB,EAApC,EAAK,IAAArU,QAAA8K,QAAArN,OAAL,EAA0C8E,CAA1C,EAAuDA,CAAA1rC,OAAvD,EACEk9C,CAAA,CAAS,QAAQ,EAAG,CAElB,IAFkB,IACd9wB,CADc,CACJjG,CADI,CAETllB,EAAI,CAFK,CAEFY,EAAK6pC,CAAA1rC,OAArB,CAAuCiB,CAAvC,CAA2CY,CAA3C,CAA+CZ,CAAA,EAA/C,CAAoD,CAClDklB,CAAA,CAASulB,CAAA,CAAUzqC,CAAV,CAAA,CAAa,CAAb,CACTmrB,EAAA,CAAWsf,CAAA,CAAUzqC,CAAV,CAAA,CAAa,CAAb,CACX,IAAI,CACFklB,CAAA6pB,OAAA,CAAcvvC,CAAA,CAAW2rB,CAAX,CAAA,CAAuBA,CAAA,CAASkyB,CAAT,CAAvB,CAA4CA,CAA1D,CADE,CAEF,MAAO90C,CAAP,CAAU,CACV2zC,CAAA,CAAiB3zC,CAAjB,CADU,CALsC,CAFlC,CAApB,CAJuB,CAxDF,CAA3B,CAsHA,KAAI+0C,EAAcA,QAAoB,CAACn9C,CAAD,CAAQo9C,CAAR,CAAkB,CACtD,IAAIr4B,EAAS,IAAIs3B,CACbe,EAAJ,CACEr4B,CAAAqkB,QAAA,CAAeppC,CAAf,CADF,CAGE+kB,CAAA+hB,OAAA,CAAc9mC,CAAd,CAEF,OAAO+kB,EAAAgjB,QAP+C,CAAxD,CAUI8U,EAAiBA,QAAuB,CAAC78C,CAAD,CAAQq9C,CAAR,CAAoBryB,CAApB,CAA8B,CACxE,IAAIsyB,EAAiB,IACrB,IAAI,CACEj+C,CAAA,CAAW2rB,CAAX,CAAJ,GAA0BsyB,CAA1B,CAA2CtyB,CAAA,EAA3C,CADE,CAEF,MAAO5iB,CAAP,CAAU,CACV,MAAO+0C,EAAA,CAAY/0C,CAAZ,CAAe,CAAA,CAAf,CADG,CAGZ,MAAkBk1C,EAAlB,EAvodYj+C,CAAA,CAuodMi+C,CAvodKtgB,KAAX,CAuodZ,CACSsgB,CAAAtgB,KAAA,CAAoB,QAAQ,EAAG,CACpC,MAAOmgB,EAAA,CAAYn9C,CAAZ,CAAmBq9C,CAAnB,CAD6B,CAA/B,CAEJ,QAAQ,CAAC3zB,CAAD,CAAQ,CACjB,MAAOyzB,EAAA,CAAYzzB,CAAZ,CAAmB,CAAA,CAAnB,CADU,CAFZ,CADT,CAOSyzB,CAAA,CAAYn9C,CAAZ,CAAmBq9C,CAAnB,CAd+D,CAV1E,CA8CIrV,EAAOA,QAAQ,CAAChoC,CAAD,CAAQgrB,CAAR,CAAkBuyB,CAAlB,CAA2Bb,CAA3B,CAAyC,CAC1D,IAAI33B,EAAS,IAAIs3B,CACjBt3B,EAAAqkB,QAAA,CAAeppC,CAAf,CACA,OAAO+kB,EAAAgjB,QAAA/K,KAAA,CAAoBhS,CAApB;AAA8BuyB,CAA9B,CAAuCb,CAAvC,CAHmD,CA9C5D,CA4GIc,EAAKA,QAAU,CAACC,CAAD,CAAW,CAC5B,GAAK,CAAAp+C,CAAA,CAAWo+C,CAAX,CAAL,CACE,KAAMnB,EAAA,CAAS,SAAT,CAAsDmB,CAAtD,CAAN,CAGF,IAAItU,EAAW,IAAIkT,CAUnBoB,EAAA,CARAC,QAAkB,CAAC19C,CAAD,CAAQ,CACxBmpC,CAAAC,QAAA,CAAiBppC,CAAjB,CADwB,CAQ1B,CAJAuoC,QAAiB,CAACv6B,CAAD,CAAS,CACxBm7B,CAAArC,OAAA,CAAgB94B,CAAhB,CADwB,CAI1B,CAEA,OAAOm7B,EAAApB,QAjBqB,CAsB9ByV,EAAAh3B,UAAA,CAAew1B,CAAAx1B,UAEfg3B,EAAAtxB,MAAA,CA3UYA,QAAQ,EAAG,CACrB,IAAI2Z,EAAI,IAAIwW,CAEZxW,EAAAuD,QAAA,CAAY6S,CAAA,CAAWpW,CAAX,CAAcA,CAAAuD,QAAd,CACZvD,EAAAiB,OAAA,CAAWmV,CAAA,CAAWpW,CAAX,CAAcA,CAAAiB,OAAd,CACXjB,EAAA+I,OAAA,CAAWqN,CAAA,CAAWpW,CAAX,CAAcA,CAAA+I,OAAd,CACX,OAAO/I,EANc,CA4UvB2X,EAAA1W,OAAA,CA3IaA,QAAQ,CAAC94B,CAAD,CAAS,CAC5B,IAAI+W,EAAS,IAAIs3B,CACjBt3B,EAAA+hB,OAAA,CAAc94B,CAAd,CACA,OAAO+W,EAAAgjB,QAHqB,CA4I9ByV,EAAAxV,KAAA,CAAUA,CACVwV,EAAApU,QAAA,CArEcpB,CAsEdwV,EAAAG,IAAA,CApDAA,QAAY,CAACC,CAAD,CAAW,CAAA,IACjBzU,EAAW,IAAIkT,CADE,CAEjBprC,EAAU,CAFO,CAGjB4sC,EAAUp/C,CAAA,CAAQm/C,CAAR,CAAA,CAAoB,EAApB,CAAyB,EAEvC3+C,EAAA,CAAQ2+C,CAAR,CAAkB,QAAQ,CAAC7V,CAAD,CAAU3oC,CAAV,CAAe,CACvC6R,CAAA,EACA+2B,EAAA,CAAKD,CAAL,CAAA/K,KAAA,CAAmB,QAAQ,CAACh9B,CAAD,CAAQ,CAC7B69C,CAAAv+C,eAAA,CAAuBF,CAAvB,CAAJ,GACAy+C,CAAA,CAAQz+C,CAAR,CACA,CADeY,CACf,CAAM,EAAEiR,CAAR,EAAkBk4B,CAAAC,QAAA,CAAiByU,CAAjB,CAFlB,CADiC,CAAnC,CAIG,QAAQ,CAAC7vC,CAAD,CAAS,CACd6vC,CAAAv+C,eAAA,CAAuBF,CAAvB,CAAJ;AACA+pC,CAAArC,OAAA,CAAgB94B,CAAhB,CAFkB,CAJpB,CAFuC,CAAzC,CAYgB,EAAhB,GAAIiD,CAAJ,EACEk4B,CAAAC,QAAA,CAAiByU,CAAjB,CAGF,OAAO1U,EAAApB,QArBc,CAsDvB,OAAOyV,EA9VqC,CAiW9CniC,QAASA,GAAa,EAAG,CACvB,IAAA4H,KAAA,CAAY,CAAC,SAAD,CAAY,UAAZ,CAAwB,QAAQ,CAAC/H,CAAD,CAAUF,CAAV,CAAoB,CAC9D,IAAI8iC,EAAwB5iC,CAAA4iC,sBAAxBA,EACwB5iC,CAAA6iC,4BAD5B,CAGIC,EAAuB9iC,CAAA8iC,qBAAvBA,EACuB9iC,CAAA+iC,2BADvBD,EAEuB9iC,CAAAgjC,kCAL3B,CAOIC,EAAe,CAAEL,CAAAA,CAPrB,CAQIM,EAAMD,CAAA,CACN,QAAQ,CAAC93C,CAAD,CAAK,CACX,IAAIknB,EAAKuwB,CAAA,CAAsBz3C,CAAtB,CACT,OAAO,SAAQ,EAAG,CAChB23C,CAAA,CAAqBzwB,CAArB,CADgB,CAFP,CADP,CAON,QAAQ,CAAClnB,CAAD,CAAK,CACX,IAAIg4C,EAAQrjC,CAAA,CAAS3U,CAAT,CAAa,KAAb,CAAoB,CAAA,CAApB,CACZ,OAAO,SAAQ,EAAG,CAChB2U,CAAAsR,OAAA,CAAgB+xB,CAAhB,CADgB,CAFP,CAOjBD,EAAAE,UAAA,CAAgBH,CAEhB,OAAOC,EAzBuD,CAApD,CADW,CAiGzBrkC,QAASA,GAAkB,EAAG,CAa5BwkC,QAASA,EAAqB,CAACx8C,CAAD,CAAS,CACrCy8C,QAASA,EAAU,EAAG,CACpB,IAAAC,WAAA,CAAkB,IAAAC,cAAlB,CACI,IAAAC,YADJ;AACuB,IAAAC,YADvB,CAC0C,IAC1C,KAAAC,YAAA,CAAmB,EACnB,KAAAC,gBAAA,CAAuB,EACvB,KAAAC,gBAAA,CAAuB,CACvB,KAAAC,IAAA,CApteG,EAAE9+C,EAqteL,KAAA++C,aAAA,CAAoB,IAPA,CAStBT,CAAAh4B,UAAA,CAAuBzkB,CACvB,OAAOy8C,EAX8B,CAZvC,IAAIU,EAAM,EAAV,CACIC,EAAmB9gD,CAAA,CAAO,YAAP,CADvB,CAEI+gD,EAAiB,IAFrB,CAGIC,EAAe,IAEnB,KAAAC,UAAA,CAAiBC,QAAQ,CAACv/C,CAAD,CAAQ,CAC3ByB,SAAA7C,OAAJ,GACEsgD,CADF,CACQl/C,CADR,CAGA,OAAOk/C,EAJwB,CAqBjC,KAAAj8B,KAAA,CAAY,CAAC,mBAAD,CAAsB,QAAtB,CAAgC,UAAhC,CACR,QAAQ,CAAC7K,CAAD,CAAoBwB,CAApB,CAA4BhC,CAA5B,CAAsC,CAEhD4nC,QAASA,EAAiB,CAACC,CAAD,CAAS,CAC/BA,CAAAC,aAAAriB,YAAA,CAAkC,CAAA,CADH,CAInCsiB,QAASA,EAAY,CAACtnB,CAAD,CAAS,CAEf,CAAb,GAAI/R,EAAJ,GAME+R,CAAAsmB,YACA,EADsBgB,CAAA,CAAatnB,CAAAsmB,YAAb,CACtB,CAAAtmB,CAAAqmB,cAAA,EAAwBiB,CAAA,CAAatnB,CAAAqmB,cAAb,CAP1B,CAiBArmB,EAAA1F,QAAA,CAAiB0F,CAAAqmB,cAAjB,CAAwCrmB,CAAAunB,cAAxC,CAA+DvnB,CAAAsmB,YAA/D;AACItmB,CAAAumB,YADJ,CACyBvmB,CAAAwnB,MADzB,CACwCxnB,CAAAomB,WADxC,CAC4D,IApBhC,CA+D9BqB,QAASA,EAAK,EAAG,CACf,IAAAd,IAAA,CAlyeG,EAAE9+C,EAmyeL,KAAAgpC,QAAA,CAAe,IAAAvW,QAAf,CAA8B,IAAA8rB,WAA9B,CACe,IAAAC,cADf,CACoC,IAAAkB,cADpC,CAEe,IAAAjB,YAFf,CAEkC,IAAAC,YAFlC,CAEqD,IACrD,KAAAiB,MAAA,CAAa,IACb,KAAAxiB,YAAA,CAAmB,CAAA,CACnB,KAAAwhB,YAAA,CAAmB,EACnB,KAAAC,gBAAA,CAAuB,EACvB,KAAAC,gBAAA,CAAuB,CACvB,KAAA5uB,kBAAA,CAAyB,IAVV,CA4nCjB4vB,QAASA,EAAU,CAACC,CAAD,CAAQ,CACzB,GAAIlmC,CAAAovB,QAAJ,CACE,KAAMiW,EAAA,CAAiB,QAAjB,CAAsDrlC,CAAAovB,QAAtD,CAAN,CAGFpvB,CAAAovB,QAAA,CAAqB8W,CALI,CAY3BC,QAASA,EAAsB,CAACC,CAAD,CAAU/R,CAAV,CAAiB,CAC9C,EACE+R,EAAAnB,gBAAA,EAA2B5Q,CAD7B,OAEU+R,CAFV,CAEoBA,CAAAvtB,QAFpB,CAD8C,CAMhDwtB,QAASA,EAAsB,CAACD,CAAD,CAAU/R,CAAV,CAAiBjkC,CAAjB,CAAuB,CACpD,EACEg2C,EAAApB,gBAAA,CAAwB50C,CAAxB,CAEA,EAFiCikC,CAEjC,CAAsC,CAAtC,GAAI+R,CAAApB,gBAAA,CAAwB50C,CAAxB,CAAJ;AACE,OAAOg2C,CAAApB,gBAAA,CAAwB50C,CAAxB,CAJX,OAMUg2C,CANV,CAMoBA,CAAAvtB,QANpB,CADoD,CActDytB,QAASA,EAAY,EAAG,EAExBC,QAASA,EAAe,EAAG,CACzB,IAAA,CAAOC,CAAA1hD,OAAP,CAAA,CACE,GAAI,CACF0hD,CAAAr6B,MAAA,EAAA,EADE,CAEF,MAAO7d,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CAIdi3C,CAAA,CAAe,IARU,CAW3BkB,QAASA,EAAkB,EAAG,CACP,IAArB,GAAIlB,CAAJ,GACEA,CADF,CACiBznC,CAAAsU,MAAA,CAAe,QAAQ,EAAG,CACvCpS,CAAAzO,OAAA,CAAkBg1C,CAAlB,CADuC,CAA1B,CADjB,CAD4B,CApoC9BP,CAAAt5B,UAAA,CAAkB,CAChB5hB,YAAak7C,CADG,CA+BhBltB,KAAMA,QAAQ,CAAC4tB,CAAD,CAAUz+C,CAAV,CAAkB,CAC9B,IAAI0+C,CAEJ1+C,EAAA,CAASA,CAAT,EAAmB,IAEfy+C,EAAJ,EACEC,CACA,CADQ,IAAIX,CACZ,CAAAW,CAAAZ,MAAA,CAAc,IAAAA,MAFhB,GAMO,IAAAZ,aAGL,GAFE,IAAAA,aAEF,CAFsBV,CAAA,CAAsB,IAAtB,CAEtB,EAAAkC,CAAA,CAAQ,IAAI,IAAAxB,aATd,CAWAwB,EAAA9tB,QAAA,CAAgB5wB,CAChB0+C,EAAAb,cAAA,CAAsB79C,CAAA68C,YAClB78C,EAAA48C,YAAJ,EACE58C,CAAA68C,YAAAF,cACA,CADmC+B,CACnC,CAAA1+C,CAAA68C,YAAA,CAAqB6B,CAFvB,EAIE1+C,CAAA48C,YAJF,CAIuB58C,CAAA68C,YAJvB,CAI4C6B,CAQ5C,EAAID,CAAJ,EAAez+C,CAAf,EAAyB,IAAzB,GAA+B0+C,CAAAnnB,IAAA,CAAU,UAAV;AAAsBkmB,CAAtB,CAE/B,OAAOiB,EAhCuB,CA/BhB,CAsLhB59C,OAAQA,QAAQ,CAAC69C,CAAD,CAAWn2B,CAAX,CAAqBgiB,CAArB,CAAqC8N,CAArC,CAA4D,CAC1E,IAAIluC,EAAMyN,CAAA,CAAO8mC,CAAP,CAEV,IAAIv0C,CAAA+gC,gBAAJ,CACE,MAAO/gC,EAAA+gC,gBAAA,CAAoB,IAApB,CAA0B3iB,CAA1B,CAAoCgiB,CAApC,CAAoDpgC,CAApD,CAAyDu0C,CAAzD,CAJiE,KAMtEv1C,EAAQ,IAN8D,CAOtEtH,EAAQsH,CAAAszC,WAP8D,CAQtEkC,EAAU,CACRt6C,GAAIkkB,CADI,CAERq2B,KAAMR,CAFE,CAGRj0C,IAAKA,CAHG,CAIR8gC,IAAKoN,CAALpN,EAA8ByT,CAJtB,CAKRG,GAAI,CAAEtU,CAAAA,CALE,CAQd6S,EAAA,CAAiB,IAEZ//C,EAAA,CAAWkrB,CAAX,CAAL,GACEo2B,CAAAt6C,GADF,CACenE,CADf,CAIK2B,EAAL,GACEA,CADF,CACUsH,CAAAszC,WADV,CAC6B,EAD7B,CAKA56C,EAAA+G,QAAA,CAAc+1C,CAAd,CACAV,EAAA,CAAuB,IAAvB,CAA6B,CAA7B,CAEA,OAAOa,SAAwB,EAAG,CACG,CAAnC,EAAIl9C,EAAA,CAAYC,CAAZ,CAAmB88C,CAAnB,CAAJ,EACEV,CAAA,CAAuB90C,CAAvB,CAA+B,EAA/B,CAEFi0C,EAAA,CAAiB,IAJe,CA9BwC,CAtL5D,CAqPhBxR,YAAaA,QAAQ,CAACmT,CAAD,CAAmBx2B,CAAnB,CAA6B,CAwChDy2B,QAASA,EAAgB,EAAG,CAC1BC,CAAA,CAA0B,CAAA,CAEtBC,EAAJ,EACEA,CACA,CADW,CAAA,CACX,CAAA32B,CAAA,CAAS42B,CAAT,CAAoBA,CAApB,CAA+B/6C,CAA/B,CAFF,EAIEmkB,CAAA,CAAS42B,CAAT,CAAoBrT,CAApB,CAA+B1nC,CAA/B,CAPwB,CAvC5B,IAAI0nC,EAAgB/uC,KAAJ,CAAUgiD,CAAAniD,OAAV,CAAhB,CACIuiD,EAAgBpiD,KAAJ,CAAUgiD,CAAAniD,OAAV,CADhB,CAEIwiD,EAAgB,EAFpB,CAGIh7C,EAAO,IAHX,CAII66C,EAA0B,CAAA,CAJ9B,CAKIC,EAAW,CAAA,CAEf,IAAKtiD,CAAAmiD,CAAAniD,OAAL,CAA8B,CAE5B,IAAIyiD,EAAa,CAAA,CACjBj7C,EAAAxD,WAAA,CAAgB,QAAQ,EAAG,CACrBy+C,CAAJ,EAAgB92B,CAAA,CAAS42B,CAAT,CAAoBA,CAApB,CAA+B/6C,CAA/B,CADS,CAA3B,CAGA,OAAOk7C,SAA6B,EAAG,CACrCD,CAAA;AAAa,CAAA,CADwB,CANX,CAW9B,GAAgC,CAAhC,GAAIN,CAAAniD,OAAJ,CAEE,MAAO,KAAAiE,OAAA,CAAYk+C,CAAA,CAAiB,CAAjB,CAAZ,CAAiCC,QAAyB,CAAChhD,CAAD,CAAQo/B,CAAR,CAAkBj0B,CAAlB,CAAyB,CACxFg2C,CAAA,CAAU,CAAV,CAAA,CAAenhD,CACf8tC,EAAA,CAAU,CAAV,CAAA,CAAe1O,CACf7U,EAAA,CAAS42B,CAAT,CAAqBnhD,CAAD,GAAWo/B,CAAX,CAAuB+hB,CAAvB,CAAmCrT,CAAvD,CAAkE3iC,CAAlE,CAHwF,CAAnF,CAOTlM,EAAA,CAAQ8hD,CAAR,CAA0B,QAAQ,CAACxK,CAAD,CAAO12C,CAAP,CAAU,CAC1C,IAAI0hD,EAAYn7C,CAAAvD,OAAA,CAAY0zC,CAAZ,CAAkBiL,QAA4B,CAACxhD,CAAD,CAAQo/B,CAAR,CAAkB,CAC9E+hB,CAAA,CAAUthD,CAAV,CAAA,CAAeG,CACf8tC,EAAA,CAAUjuC,CAAV,CAAA,CAAeu/B,CACV6hB,EAAL,GACEA,CACA,CAD0B,CAAA,CAC1B,CAAA76C,CAAAxD,WAAA,CAAgBo+C,CAAhB,CAFF,CAH8E,CAAhE,CAQhBI,EAAA/8C,KAAA,CAAmBk9C,CAAnB,CAT0C,CAA5C,CAuBA,OAAOD,SAA6B,EAAG,CACrC,IAAA,CAAOF,CAAAxiD,OAAP,CAAA,CACEwiD,CAAAn7B,MAAA,EAAA,EAFmC,CAnDS,CArPlC,CAuWhBwa,iBAAkBA,QAAQ,CAACliC,CAAD,CAAMgsB,CAAN,CAAgB,CAoBxCk3B,QAASA,EAA2B,CAACC,CAAD,CAAS,CAC3CziB,CAAA,CAAWyiB,CADgC,KAE5BtiD,CAF4B,CAEvBuiD,CAFuB,CAEdC,CAFc,CAELC,CAGtC,IAAI,CAAAr/C,CAAA,CAAYy8B,CAAZ,CAAJ,CAAA,CAEA,GAAKv+B,CAAA,CAASu+B,CAAT,CAAL,CAKO,GAAI3gC,EAAA,CAAY2gC,CAAZ,CAAJ,CAgBL,IAfIG,CAeKv/B,GAfQiiD,CAeRjiD,GAbPu/B,CAEA,CAFW0iB,CAEX,CADAC,CACA,CADY3iB,CAAAxgC,OACZ,CAD8B,CAC9B,CAAAojD,CAAA,EAWOniD,EARToiD,CAQSpiD,CARGo/B,CAAArgC,OAQHiB,CANLkiD,CAMKliD,GANSoiD,CAMTpiD,GAJPmiD,CAAA,EACA,CAAA5iB,CAAAxgC,OAAA,CAAkBmjD,CAAlB,CAA8BE,CAGvBpiD,EAAAA,CAAAA,CAAI,CAAb,CAAgBA,CAAhB,CAAoBoiD,CAApB,CAA+BpiD,CAAA,EAA/B,CACEgiD,CAIA,CAJUziB,CAAA,CAASv/B,CAAT,CAIV,CAHA+hD,CAGA,CAHU3iB,CAAA,CAASp/B,CAAT,CAGV,CADA8hD,CACA,CADWE,CACX,GADuBA,CACvB,EADoCD,CACpC,GADgDA,CAChD,CAAKD,CAAL,EAAiBE,CAAjB,GAA6BD,CAA7B,GACEI,CAAA,EACA,CAAA5iB,CAAA,CAASv/B,CAAT,CAAA,CAAc+hD,CAFhB,CArBG,KA0BA,CACDxiB,CAAJ,GAAiB8iB,CAAjB,GAEE9iB,CAEA,CAFW8iB,CAEX,CAF4B,EAE5B,CADAH,CACA,CADY,CACZ,CAAAC,CAAA,EAJF,CAOAC,EAAA,CAAY,CACZ,KAAK7iD,CAAL,GAAY6/B,EAAZ,CACM3/B,EAAAC,KAAA,CAAoB0/B,CAApB;AAA8B7/B,CAA9B,CAAJ,GACE6iD,CAAA,EAIA,CAHAL,CAGA,CAHU3iB,CAAA,CAAS7/B,CAAT,CAGV,CAFAyiD,CAEA,CAFUziB,CAAA,CAAShgC,CAAT,CAEV,CAAIA,CAAJ,GAAWggC,EAAX,EACEuiB,CACA,CADWE,CACX,GADuBA,CACvB,EADoCD,CACpC,GADgDA,CAChD,CAAKD,CAAL,EAAiBE,CAAjB,GAA6BD,CAA7B,GACEI,CAAA,EACA,CAAA5iB,CAAA,CAAShgC,CAAT,CAAA,CAAgBwiD,CAFlB,CAFF,GAOEG,CAAA,EAEA,CADA3iB,CAAA,CAAShgC,CAAT,CACA,CADgBwiD,CAChB,CAAAI,CAAA,EATF,CALF,CAkBF,IAAID,CAAJ,CAAgBE,CAAhB,CAGE,IAAK7iD,CAAL,GADA4iD,EAAA,EACY5iB,CAAAA,CAAZ,CACO9/B,EAAAC,KAAA,CAAoB0/B,CAApB,CAA8B7/B,CAA9B,CAAL,GACE2iD,CAAA,EACA,CAAA,OAAO3iB,CAAA,CAAShgC,CAAT,CAFT,CAhCC,CA/BP,IACMggC,EAAJ,GAAiBH,CAAjB,GACEG,CACA,CADWH,CACX,CAAA+iB,CAAA,EAFF,CAqEF,OAAOA,EAxEP,CAL2C,CAnB7CP,CAAAlhB,UAAA,CAAwC,CAAA,CAExC,KAAIn6B,EAAO,IAAX,CAEI64B,CAFJ,CAKIG,CALJ,CAOI+iB,CAPJ,CASIC,EAAuC,CAAvCA,CAAqB73B,CAAA3rB,OATzB,CAUIojD,EAAiB,CAVrB,CAWIK,EAAiBzoC,CAAA,CAAOrb,CAAP,CAAYkjD,CAAZ,CAXrB,CAYIK,EAAgB,EAZpB,CAaII,EAAiB,EAbrB,CAcII,EAAU,CAAA,CAdd,CAeIP,EAAY,CA+GhB,OAAO,KAAAl/C,OAAA,CAAYw/C,CAAZ,CA7BPE,QAA+B,EAAG,CAC5BD,CAAJ,EACEA,CACA,CADU,CAAA,CACV,CAAA/3B,CAAA,CAAS0U,CAAT,CAAmBA,CAAnB,CAA6B74B,CAA7B,CAFF,EAIEmkB,CAAA,CAAS0U,CAAT,CAAmBkjB,CAAnB,CAAiC/7C,CAAjC,CAIF,IAAIg8C,CAAJ,CACE,GAAK1hD,CAAA,CAASu+B,CAAT,CAAL,CAGO,GAAI3gC,EAAA,CAAY2gC,CAAZ,CAAJ,CAA2B,CAChCkjB,CAAA,CAAmBpjD,KAAJ,CAAUkgC,CAAArgC,OAAV,CACf,KAAS,IAAAiB,EAAI,CAAb,CAAgBA,CAAhB,CAAoBo/B,CAAArgC,OAApB,CAAqCiB,CAAA,EAArC,CACEsiD,CAAA,CAAatiD,CAAb,CAAA,CAAkBo/B,CAAA,CAASp/B,CAAT,CAHY,CAA3B,IAOL,KAAST,CAAT,GADA+iD,EACgBljB,CADD,EACCA,CAAAA,CAAhB,CACM3/B,EAAAC,KAAA,CAAoB0/B,CAApB,CAA8B7/B,CAA9B,CAAJ,GACE+iD,CAAA,CAAa/iD,CAAb,CADF,CACsB6/B,CAAA,CAAS7/B,CAAT,CADtB,CAXJ,KAEE+iD,EAAA,CAAeljB,CAZa,CA6B3B,CAjIiC,CAvW1B,CA8hBhB8U,QAASA,QAAQ,EAAG,CAAA,IACdyO,CADc,CACPxiD,CADO,CACA4gD,CADA,CACMv6C,CADN,CACU8F,CADV,CAEds2C,CAFc,CAGd7jD,CAHc,CAId8jD,CAJc,CAIPC,EAAMzD,CAJC,CAKRgB,CALQ,CAMd0C,EAAW,EANG,CAOdC,CAPc,CAOEC,CAEpB/C;CAAA,CAAW,SAAX,CAEAnoC,EAAAmU,iBAAA,EAEI,KAAJ,GAAajS,CAAb,EAA4C,IAA5C,GAA2BulC,CAA3B,GAGEznC,CAAAsU,MAAAI,OAAA,CAAsB+yB,CAAtB,CACA,CAAAgB,CAAA,EAJF,CAOAjB,EAAA,CAAiB,IAEjB,GAAG,CACDsD,CAAA,CAAQ,CAAA,CAGR,KAFAxC,CAEA,CArB0Br9B,IAqB1B,CAAOkgC,CAAAnkD,OAAP,CAAA,CAA0B,CACxB,GAAI,CACFkkD,CACA,CADYC,CAAA98B,MAAA,EACZ,CAAA68B,CAAA33C,MAAA63C,MAAA,CAAsBF,CAAArf,WAAtB,CAA4Cqf,CAAA38B,OAA5C,CAFE,CAGF,MAAO/d,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CAGZg3C,CAAA,CAAiB,IAPO,CAU1B,CAAA,CACA,EAAG,CACD,GAAKqD,CAAL,CAAgBvC,CAAAzB,WAAhB,CAGE,IADA7/C,CACA,CADS6jD,CAAA7jD,OACT,CAAOA,CAAA,EAAP,CAAA,CACE,GAAI,CAIF,GAHA4jD,CAGA,CAHQC,CAAA,CAAS7jD,CAAT,CAGR,CAEE,GADAuN,CACI,CADEq2C,CAAAr2C,IACF,EAACnM,CAAD,CAASmM,CAAA,CAAI+zC,CAAJ,CAAT,KAA4BU,CAA5B,CAAmC4B,CAAA5B,KAAnC,GACE,EAAA4B,CAAA3B,GAAA,CACIr7C,EAAA,CAAOxF,CAAP,CAAc4gD,CAAd,CADJ,CAEsB,QAFtB,GAEK,MAAO5gD,EAFZ,EAEkD,QAFlD,GAEkC,MAAO4gD,EAFzC,EAGQp5C,KAAA,CAAMxH,CAAN,CAHR,EAGwBwH,KAAA,CAAMo5C,CAAN,CAHxB,CADN,CAKE8B,CAKA,CALQ,CAAA,CAKR,CAJAtD,CAIA,CAJiBoD,CAIjB,CAHAA,CAAA5B,KAGA,CAHa4B,CAAA3B,GAAA,CAAW58C,EAAA,CAAKjE,CAAL,CAAY,IAAZ,CAAX,CAA+BA,CAG5C,CAFAqG,CAEA,CAFKm8C,CAAAn8C,GAEL,CADAA,CAAA,CAAGrG,CAAH,CAAY4gD,CAAD,GAAUR,CAAV,CAA0BpgD,CAA1B,CAAkC4gD,CAA7C,CAAoDV,CAApD,CACA,CAAU,CAAV,CAAIyC,CAAJ,GACEE,CAEA,CAFS,CAET,CAFaF,CAEb,CADKC,CAAA,CAASC,CAAT,CACL,GADuBD,CAAA,CAASC,CAAT,CACvB,CAD0C,EAC1C,EAAAD,CAAA,CAASC,CAAT,CAAAx+C,KAAA,CAAsB,CACpB4+C,IAAK5jD,CAAA,CAAWmjD,CAAAvV,IAAX,CAAA,CAAwB,MAAxB,EAAkCuV,CAAAvV,IAAA/iC,KAAlC,EAAoDs4C,CAAAvV,IAAA1qC,SAAA,EAApD;AAA4EigD,CAAAvV,IAD7D,CAEpBpkB,OAAQ7oB,CAFY,CAGpB8oB,OAAQ83B,CAHY,CAAtB,CAHF,CAVF,KAmBO,IAAI4B,CAAJ,GAAcpD,CAAd,CAA8B,CAGnCsD,CAAA,CAAQ,CAAA,CACR,OAAM,CAJ6B,CAzBrC,CAgCF,MAAOt6C,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CAShB,GAAM,EAAA86C,CAAA,CAAShD,CAAAnB,gBAAT,EAAoCmB,CAAAvB,YAApC,EACDuB,CADC,GA9EkBr9B,IA8ElB,EACqBq9B,CAAAxB,cADrB,CAAN,CAEE,IAAA,CAAOwB,CAAP,GAhFsBr9B,IAgFtB,EAA+B,EAAAqgC,CAAA,CAAOhD,CAAAxB,cAAP,CAA/B,CAAA,CACEwB,CAAA,CAAUA,CAAAvtB,QAjDb,CAAH,MAoDUutB,CApDV,CAoDoBgD,CApDpB,CAwDA,KAAKR,CAAL,EAAcK,CAAAnkD,OAAd,GAAsC,CAAA+jD,CAAA,EAAtC,CAEE,KAmeN7oC,EAAAovB,QAneY,CAmeS,IAneT,CAAAiW,CAAA,CAAiB,QAAjB,CAGFD,CAHE,CAGG0D,CAHH,CAAN,CAzED,CAAH,MA+ESF,CA/ET,EA+EkBK,CAAAnkD,OA/ElB,CAmFA,KAydFkb,CAAAovB,QAzdE,CAydmB,IAzdnB,CAAOia,CAAAvkD,OAAP,CAAA,CACE,GAAI,CACFukD,CAAAl9B,MAAA,EAAA,EADE,CAEF,MAAO7d,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CA5GI,CA9hBJ,CAmrBhBuF,SAAUA,QAAQ,EAAG,CAEnB,GAAI0vB,CAAA,IAAAA,YAAJ,CAAA,CACA,IAAIt7B,EAAS,IAAA4wB,QAEb,KAAAogB,WAAA,CAAgB,UAAhB,CACA,KAAA1V,YAAA,CAAmB,CAAA,CAEf,KAAJ,GAAavjB,CAAb,EAEElC,CAAAgU,uBAAA,EAGFq0B,EAAA,CAAuB,IAAvB,CAA6B,CAAC,IAAAlB,gBAA9B,CACA;IAASqE,IAAAA,CAAT,GAAsB,KAAAtE,gBAAtB,CACEqB,CAAA,CAAuB,IAAvB,CAA6B,IAAArB,gBAAA,CAAqBsE,CAArB,CAA7B,CAA8DA,CAA9D,CAKErhD,EAAJ,EAAcA,CAAA48C,YAAd,EAAoC,IAApC,GAA0C58C,CAAA48C,YAA1C,CAA+D,IAAAD,cAA/D,CACI38C,EAAJ,EAAcA,CAAA68C,YAAd,EAAoC,IAApC,GAA0C78C,CAAA68C,YAA1C,CAA+D,IAAAgB,cAA/D,CACI,KAAAA,cAAJ,GAAwB,IAAAA,cAAAlB,cAAxB,CAA2D,IAAAA,cAA3D,CACI,KAAAA,cAAJ,GAAwB,IAAAA,cAAAkB,cAAxB,CAA2D,IAAAA,cAA3D,CAGA,KAAAjyC,SAAA,CAAgB,IAAAomC,QAAhB,CAA+B,IAAA1oC,OAA/B,CAA6C,IAAAzI,WAA7C,CAA+D,IAAAqmC,YAA/D,CAAkF/mC,CAClF,KAAAo3B,IAAA,CAAW,IAAAz2B,OAAX,CAAyB,IAAA+qC,YAAzB,CAA4CyV,QAAQ,EAAG,CAAE,MAAOnhD,EAAT,CACvD,KAAA28C,YAAA,CAAmB,EAGnB,KAAAH,cAAA;AAAqB,IACrBiB,EAAA,CAAa,IAAb,CA9BA,CAFmB,CAnrBL,CAkvBhBqD,MAAOA,QAAQ,CAACzM,CAAD,CAAOpwB,CAAP,CAAe,CAC5B,MAAOvM,EAAA,CAAO28B,CAAP,CAAA,CAAa,IAAb,CAAmBpwB,CAAnB,CADqB,CAlvBd,CAoxBhBvjB,WAAYA,QAAQ,CAAC2zC,CAAD,CAAOpwB,CAAP,CAAe,CAG5BrM,CAAAovB,QAAL,EAA4B6Z,CAAAnkD,OAA5B,EACEgZ,CAAAsU,MAAA,CAAe,QAAQ,EAAG,CACpB62B,CAAAnkD,OAAJ,EACEkb,CAAAi6B,QAAA,EAFsB,CAA1B,CAOFgP,EAAA1+C,KAAA,CAAgB,CAAC8G,MAAO,IAAR,CAAcs4B,WAAY7pB,CAAA,CAAO28B,CAAP,CAA1B,CAAwCpwB,OAAQA,CAAhD,CAAhB,CAXiC,CApxBnB,CAkyBhB+0B,aAAcA,QAAQ,CAAC70C,CAAD,CAAK,CACzB88C,CAAA9+C,KAAA,CAAqBgC,CAArB,CADyB,CAlyBX,CAm1BhBgF,OAAQA,QAAQ,CAACkrC,CAAD,CAAO,CACrB,GAAI,CACFwJ,CAAA,CAAW,QAAX,CACA,IAAI,CACF,MAAO,KAAAiD,MAAA,CAAWzM,CAAX,CADL,CAAJ,OAEU,CAwQdz8B,CAAAovB,QAAA,CAAqB,IAxQP,CAJR,CAOF,MAAO9gC,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CAPZ,OASU,CACR,GAAI,CACF0R,CAAAi6B,QAAA,EADE,CAEF,MAAO3rC,CAAP,CAAU,CAEV,KADAgQ,EAAA,CAAkBhQ,CAAlB,CACMA,CAAAA,CAAN,CAFU,CAHJ,CAVW,CAn1BP,CAw3BhB6gC,YAAaA,QAAQ,CAACsN,CAAD,CAAO,CAM1B+M,QAASA,EAAqB,EAAG,CAC/Bn4C,CAAA63C,MAAA,CAAYzM,CAAZ,CAD+B,CALjC,IAAIprC,EAAQ,IACZorC,EAAA,EAAQ+J,CAAAj8C,KAAA,CAAqBi/C,CAArB,CACR/M,EAAA,CAAO38B,CAAA,CAAO28B,CAAP,CACPgK,EAAA,EAJ0B,CAx3BZ,CA85BhBjnB,IAAKA,QAAQ,CAACpvB,CAAD,CAAOqgB,CAAP,CAAiB,CAC5B,IAAIg5B,EAAiB,IAAA1E,YAAA,CAAiB30C,CAAjB,CAChBq5C;CAAL,GACE,IAAA1E,YAAA,CAAiB30C,CAAjB,CADF,CAC2Bq5C,CAD3B,CAC4C,EAD5C,CAGAA,EAAAl/C,KAAA,CAAoBkmB,CAApB,CAEA,KAAI21B,EAAU,IACd,GACOA,EAAApB,gBAAA,CAAwB50C,CAAxB,CAGL,GAFEg2C,CAAApB,gBAAA,CAAwB50C,CAAxB,CAEF,CAFkC,CAElC,EAAAg2C,CAAApB,gBAAA,CAAwB50C,CAAxB,CAAA,EAJF,OAKUg2C,CALV,CAKoBA,CAAAvtB,QALpB,CAOA,KAAIvsB,EAAO,IACX,OAAO,SAAQ,EAAG,CAChB,IAAIo9C,EAAkBD,CAAAx/C,QAAA,CAAuBwmB,CAAvB,CACG,GAAzB,GAAIi5B,CAAJ,GACED,CAAA,CAAeC,CAAf,CACA,CADkC,IAClC,CAAArD,CAAA,CAAuB/5C,CAAvB,CAA6B,CAA7B,CAAgC8D,CAAhC,CAFF,CAFgB,CAhBU,CA95Bd,CA88BhBu5C,MAAOA,QAAQ,CAACv5C,CAAD,CAAOka,CAAP,CAAa,CAAA,IACtBjc,EAAQ,EADc,CAEtBo7C,CAFsB,CAGtBp4C,EAAQ,IAHc,CAItBkX,EAAkB,CAAA,CAJI,CAKtBV,EAAQ,CACNzX,KAAMA,CADA,CAENw5C,YAAav4C,CAFP,CAGNkX,gBAAiBA,QAAQ,EAAG,CAACA,CAAA,CAAkB,CAAA,CAAnB,CAHtB,CAINsxB,eAAgBA,QAAQ,EAAG,CACzBhyB,CAAAG,iBAAA,CAAyB,CAAA,CADA,CAJrB,CAONA,iBAAkB,CAAA,CAPZ,CALc,CActB6hC,EAAe39C,EAAA,CAAO,CAAC2b,CAAD,CAAP,CAAgBlgB,SAAhB,CAA2B,CAA3B,CAdO,CAetB5B,CAfsB,CAenBjB,CAEP,GAAG,CACD2kD,CAAA,CAAiBp4C,CAAA0zC,YAAA,CAAkB30C,CAAlB,CAAjB,EAA4C/B,CAC5CwZ,EAAA+9B,aAAA,CAAqBv0C,CAChBtL,EAAA,CAAI,CAAT,KAAYjB,CAAZ,CAAqB2kD,CAAA3kD,OAArB,CAA4CiB,CAA5C,CAAgDjB,CAAhD,CAAwDiB,CAAA,EAAxD,CAGE,GAAK0jD,CAAA,CAAe1jD,CAAf,CAAL,CAMA,GAAI,CAEF0jD,CAAA,CAAe1jD,CAAf,CAAA2G,MAAA,CAAwB,IAAxB;AAA8Bm9C,CAA9B,CAFE,CAGF,MAAOv7C,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CATZ,IACEm7C,EAAAv/C,OAAA,CAAsBnE,CAAtB,CAAyB,CAAzB,CAEA,CADAA,CAAA,EACA,CAAAjB,CAAA,EAWJ,IAAIyjB,CAAJ,CAEE,MADAV,EAAA+9B,aACO/9B,CADc,IACdA,CAAAA,CAGTxW,EAAA,CAAQA,CAAAwnB,QAzBP,CAAH,MA0BSxnB,CA1BT,CA4BAwW,EAAA+9B,aAAA,CAAqB,IAErB,OAAO/9B,EA/CmB,CA98BZ,CAshChBoxB,WAAYA,QAAQ,CAAC7oC,CAAD,CAAOka,CAAP,CAAa,CAAA,IAE3B87B,EADSr9B,IADkB,CAG3BqgC,EAFSrgC,IADkB,CAI3BlB,EAAQ,CACNzX,KAAMA,CADA,CAENw5C,YALO7gC,IAGD,CAGN8wB,eAAgBA,QAAQ,EAAG,CACzBhyB,CAAAG,iBAAA,CAAyB,CAAA,CADA,CAHrB,CAMNA,iBAAkB,CAAA,CANZ,CASZ,IAAK,CAZQe,IAYRi8B,gBAAA,CAAuB50C,CAAvB,CAAL,CAAmC,MAAOyX,EAM1C,KAnB+B,IAe3BgiC,EAAe39C,EAAA,CAAO,CAAC2b,CAAD,CAAP,CAAgBlgB,SAAhB,CAA2B,CAA3B,CAfY,CAgBhB5B,CAhBgB,CAgBbjB,CAGlB,CAAQshD,CAAR,CAAkBgD,CAAlB,CAAA,CAAyB,CACvBvhC,CAAA+9B,aAAA,CAAqBQ,CACrB9d,EAAA,CAAY8d,CAAArB,YAAA,CAAoB30C,CAApB,CAAZ,EAAyC,EACpCrK,EAAA,CAAI,CAAT,KAAYjB,CAAZ,CAAqBwjC,CAAAxjC,OAArB,CAAuCiB,CAAvC,CAA2CjB,CAA3C,CAAmDiB,CAAA,EAAnD,CAEE,GAAKuiC,CAAA,CAAUviC,CAAV,CAAL,CAOA,GAAI,CACFuiC,CAAA,CAAUviC,CAAV,CAAA2G,MAAA,CAAmB,IAAnB,CAAyBm9C,CAAzB,CADE,CAEF,MAAOv7C,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CATZ,IACEg6B,EAAAp+B,OAAA,CAAiBnE,CAAjB,CAAoB,CAApB,CAEA,CADAA,CAAA,EACA,CAAAjB,CAAA,EAeJ,IAAM,EAAAskD,CAAA,CAAShD,CAAApB,gBAAA,CAAwB50C,CAAxB,CAAT;AAA0Cg2C,CAAAvB,YAA1C,EACDuB,CADC,GAzCKr9B,IAyCL,EACqBq9B,CAAAxB,cADrB,CAAN,CAEE,IAAA,CAAOwB,CAAP,GA3CSr9B,IA2CT,EAA+B,EAAAqgC,CAAA,CAAOhD,CAAAxB,cAAP,CAA/B,CAAA,CACEwB,CAAA,CAAUA,CAAAvtB,QA1BS,CA+BzBhR,CAAA+9B,aAAA,CAAqB,IACrB,OAAO/9B,EAnDwB,CAthCjB,CA6kClB,KAAI7H,EAAa,IAAIgmC,CAArB,CAGIiD,EAAajpC,CAAA8pC,aAAbb,CAAuC,EAH3C,CAIII,EAAkBrpC,CAAA+pC,kBAAlBV,CAAiD,EAJrD,CAKI7C,EAAkBxmC,CAAAgqC,kBAAlBxD,CAAiD,EAErD,OAAOxmC,EA9rCyC,CADtC,CA3BgB,CAuyC9BxI,QAASA,GAAqB,EAAG,CAAA,IAC3Buf,EAA6B,mCADF,CAE7BG,EAA8B,4CAkBhC,KAAAH,2BAAA,CAAkCC,QAAQ,CAACC,CAAD,CAAS,CACjD,MAAItuB,EAAA,CAAUsuB,CAAV,CAAJ,EACEF,CACO,CADsBE,CACtB,CAAA,IAFT,EAIOF,CAL0C,CAyBnD,KAAAG,4BAAA,CAAmCC,QAAQ,CAACF,CAAD,CAAS,CAClD,MAAItuB,EAAA,CAAUsuB,CAAV,CAAJ,EACEC,CACO,CADuBD,CACvB,CAAA,IAFT,EAIOC,CAL2C,CAQpD,KAAA/N,KAAA,CAAYC,QAAQ,EAAG,CACrB,MAAO6gC,SAAoB,CAACC,CAAD,CAAMC,CAAN,CAAe,CACxC,IAAIC;AAAQD,CAAA,CAAUjzB,CAAV,CAAwCH,CAApD,CACIszB,CACJA,EAAA,CAAgB1Y,EAAA,CAAWuY,CAAX,CAAA/4B,KAChB,OAAsB,EAAtB,GAAIk5B,CAAJ,EAA6BA,CAAA/+C,MAAA,CAAoB8+C,CAApB,CAA7B,CAGOF,CAHP,CACS,SADT,CACqBG,CALmB,CADrB,CArDQ,CA2FjCC,QAASA,GAAa,CAACC,CAAD,CAAU,CAC9B,GAAgB,MAAhB,GAAIA,CAAJ,CACE,MAAOA,EACF,IAAI3lD,CAAA,CAAS2lD,CAAT,CAAJ,CAAuB,CAK5B,GAA8B,EAA9B,CAAIA,CAAAtgD,QAAA,CAAgB,KAAhB,CAAJ,CACE,KAAMugD,GAAA,CAAW,QAAX,CACsDD,CADtD,CAAN,CAGFA,CAAA,CAAUE,EAAA,CAAgBF,CAAhB,CAAAh9C,QAAA,CACY,QADZ,CACsB,IADtB,CAAAA,QAAA,CAEY,KAFZ,CAEmB,YAFnB,CAGV,OAAO,KAAInG,MAAJ,CAAW,GAAX,CAAiBmjD,CAAjB,CAA2B,GAA3B,CAZqB,CAavB,GAAIpjD,EAAA,CAASojD,CAAT,CAAJ,CAIL,MAAO,KAAInjD,MAAJ,CAAW,GAAX,CAAiBmjD,CAAAngD,OAAjB,CAAkC,GAAlC,CAEP,MAAMogD,GAAA,CAAW,UAAX,CAAN,CAtB4B,CA4BhCE,QAASA,GAAc,CAACC,CAAD,CAAW,CAChC,IAAIC,EAAmB,EACnBjiD,EAAA,CAAUgiD,CAAV,CAAJ,EACExlD,CAAA,CAAQwlD,CAAR,CAAkB,QAAQ,CAACJ,CAAD,CAAU,CAClCK,CAAArgD,KAAA,CAAsB+/C,EAAA,CAAcC,CAAd,CAAtB,CADkC,CAApC,CAIF,OAAOK,EAPyB,CA8ElCnqC,QAASA,GAAoB,EAAG,CAC9B,IAAAoqC,aAAA,CAAoBA,EADU,KAI1BC,EAAuB,CAAC,MAAD,CAJG,CAK1BC,EAAuB,EA0B3B,KAAAD,qBAAA,CAA4BE,QAAQ,CAAC9kD,CAAD,CAAQ,CACtCyB,SAAA7C,OAAJ,GACEgmD,CADF,CACyBJ,EAAA,CAAexkD,CAAf,CADzB,CAGA,OAAO4kD,EAJmC,CAkC5C;IAAAC,qBAAA,CAA4BE,QAAQ,CAAC/kD,CAAD,CAAQ,CACtCyB,SAAA7C,OAAJ,GACEimD,CADF,CACyBL,EAAA,CAAexkD,CAAf,CADzB,CAGA,OAAO6kD,EAJmC,CAO5C,KAAA5hC,KAAA,CAAY,CAAC,WAAD,CAAc,QAAQ,CAAC4D,CAAD,CAAY,CAW5Cm+B,QAASA,EAAQ,CAACX,CAAD,CAAUjV,CAAV,CAAqB,CACpC,MAAgB,MAAhB,GAAIiV,CAAJ,CACSza,EAAA,CAAgBwF,CAAhB,CADT,CAIS,CAAE,CAAAiV,CAAAxnC,KAAA,CAAauyB,CAAAnkB,KAAb,CALyB,CA+BtCg6B,QAASA,EAAkB,CAACC,CAAD,CAAO,CAChC,IAAIC,EAAaA,QAA+B,CAACC,CAAD,CAAe,CAC7D,IAAAC,qBAAA,CAA4BC,QAAQ,EAAG,CACrC,MAAOF,EAD8B,CADsB,CAK3DF,EAAJ,GACEC,CAAA3+B,UADF,CACyB,IAAI0+B,CAD7B,CAGAC,EAAA3+B,UAAAxlB,QAAA,CAA+BukD,QAAmB,EAAG,CACnD,MAAO,KAAAF,qBAAA,EAD4C,CAGrDF,EAAA3+B,UAAAjkB,SAAA,CAAgCijD,QAAoB,EAAG,CACrD,MAAO,KAAAH,qBAAA,EAAA9iD,SAAA,EAD8C,CAGvD,OAAO4iD,EAfyB,CAxClC,IAAIM,EAAgBA,QAAsB,CAACl9C,CAAD,CAAO,CAC/C,KAAM+7C,GAAA,CAAW,QAAX,CAAN,CAD+C,CAI7Cz9B,EAAAD,IAAA,CAAc,WAAd,CAAJ,GACE6+B,CADF,CACkB5+B,CAAA1a,IAAA,CAAc,WAAd,CADlB,CAN4C;IA4DxCu5C,EAAyBT,CAAA,EA5De,CA6DxCU,EAAS,EAEbA,EAAA,CAAOhB,EAAAhmB,KAAP,CAAA,CAA4BsmB,CAAA,CAAmBS,CAAnB,CAC5BC,EAAA,CAAOhB,EAAAiB,IAAP,CAAA,CAA2BX,CAAA,CAAmBS,CAAnB,CAC3BC,EAAA,CAAOhB,EAAAkB,IAAP,CAAA,CAA2BZ,CAAA,CAAmBS,CAAnB,CAC3BC,EAAA,CAAOhB,EAAAmB,GAAP,CAAA,CAA0Bb,CAAA,CAAmBS,CAAnB,CAC1BC,EAAA,CAAOhB,EAAA/lB,aAAP,CAAA,CAAoCqmB,CAAA,CAAmBU,CAAA,CAAOhB,EAAAkB,IAAP,CAAnB,CA8GpC,OAAO,CAAEE,QA3FTA,QAAgB,CAACrnC,CAAD,CAAO0mC,CAAP,CAAqB,CACnC,IAAIY,EAAeL,CAAArmD,eAAA,CAAsBof,CAAtB,CAAA,CAA8BinC,CAAA,CAAOjnC,CAAP,CAA9B,CAA6C,IAChE,IAAKsnC,CAAAA,CAAL,CACE,KAAM1B,GAAA,CAAW,UAAX,CAEF5lC,CAFE,CAEI0mC,CAFJ,CAAN,CAIF,GAAqB,IAArB,GAAIA,CAAJ,EAA6B5iD,CAAA,CAAY4iD,CAAZ,CAA7B,EAA2E,EAA3E,GAA0DA,CAA1D,CACE,MAAOA,EAIT,IAA4B,QAA5B,GAAI,MAAOA,EAAX,CACE,KAAMd,GAAA,CAAW,OAAX,CAEF5lC,CAFE,CAAN,CAIF,MAAO,KAAIsnC,CAAJ,CAAgBZ,CAAhB,CAjB4B,CA2F9B,CACEvY,WA1BTA,QAAmB,CAACnuB,CAAD,CAAOunC,CAAP,CAAqB,CACtC,GAAqB,IAArB,GAAIA,CAAJ,EAA6BzjD,CAAA,CAAYyjD,CAAZ,CAA7B,EAA2E,EAA3E,GAA0DA,CAA1D,CACE,MAAOA,EAET,KAAIrhD,EAAe+gD,CAAArmD,eAAA,CAAsBof,CAAtB,CAAA,CAA8BinC,CAAA,CAAOjnC,CAAP,CAA9B,CAA6C,IAChE,IAAI9Z,CAAJ,EAAmBqhD,CAAnB,WAA2CrhD,EAA3C,CACE,MAAOqhD,EAAAZ,qBAAA,EAKT,IAAI3mC,CAAJ,GAAaimC,EAAA/lB,aAAb,CAAwC,CA9IpCwQ,IAAAA,EAAY3D,EAAA,CA+ImBwa,CA/IR1jD,SAAA,EAAX,CAAZ6sC,CACAvvC,CADAuvC,CACGriB,CADHqiB,CACM8W,EAAU,CAAA,CAEfrmD;CAAA,CAAI,CAAT,KAAYktB,CAAZ,CAAgB63B,CAAAhmD,OAAhB,CAA6CiB,CAA7C,CAAiDktB,CAAjD,CAAoDltB,CAAA,EAApD,CACE,GAAImlD,CAAA,CAASJ,CAAA,CAAqB/kD,CAArB,CAAT,CAAkCuvC,CAAlC,CAAJ,CAAkD,CAChD8W,CAAA,CAAU,CAAA,CACV,MAFgD,CAKpD,GAAIA,CAAJ,CAEE,IAAKrmD,CAAO,CAAH,CAAG,CAAAktB,CAAA,CAAI83B,CAAAjmD,OAAhB,CAA6CiB,CAA7C,CAAiDktB,CAAjD,CAAoDltB,CAAA,EAApD,CACE,GAAImlD,CAAA,CAASH,CAAA,CAAqBhlD,CAArB,CAAT,CAAkCuvC,CAAlC,CAAJ,CAAkD,CAChD8W,CAAA,CAAU,CAAA,CACV,MAFgD,CAmIpD,GA7HKA,CA6HL,CACE,MAAOD,EAEP,MAAM3B,GAAA,CAAW,UAAX,CAEF2B,CAAA1jD,SAAA,EAFE,CAAN,CAJoC,CAQjC,GAAImc,CAAJ,GAAaimC,EAAAhmB,KAAb,CACL,MAAO8mB,EAAA,CAAcQ,CAAd,CAET,MAAM3B,GAAA,CAAW,QAAX,CAAN,CAtBsC,CAyBjC,CAEEtjD,QAvDTA,QAAgB,CAACilD,CAAD,CAAe,CAC7B,MAAIA,EAAJ,WAA4BP,EAA5B,CACSO,CAAAZ,qBAAA,EADT,CAGSY,CAJoB,CAqDxB,CAjLqC,CAAlC,CAxEkB,CAyhBhC5rC,QAASA,GAAY,EAAG,CACtB,IAAI8W,EAAU,CAAA,CAad,KAAAA,QAAA,CAAeg1B,QAAQ,CAACnmD,CAAD,CAAQ,CACzByB,SAAA7C,OAAJ,GACEuyB,CADF,CACY,CAAEnxB,CAAAA,CADd,CAGA,OAAOmxB,EAJsB,CAsD/B,KAAAlO,KAAA,CAAY,CAAC,QAAD,CAAW,cAAX,CAA2B,QAAQ,CACjCrJ,CADiC,CACvBU,CADuB,CACT,CAGpC,GAAI6W,CAAJ,EAAsB,CAAtB,CAAe7K,EAAf,CACE,KAAMg+B,GAAA,CAAW,UAAX,CAAN,CAMF,IAAI8B,EAAM9gD,EAAA,CAAYq/C,EAAZ,CAaVyB,EAAAC,UAAA,CAAgBC,QAAQ,EAAG,CACzB,MAAOn1B,EADkB,CAG3Bi1B,EAAAL,QAAA,CAAczrC,CAAAyrC,QACdK;CAAAvZ,WAAA,CAAiBvyB,CAAAuyB,WACjBuZ,EAAAplD,QAAA,CAAcsZ,CAAAtZ,QAETmwB,EAAL,GACEi1B,CAAAL,QACA,CADcK,CAAAvZ,WACd,CAD+B0Z,QAAQ,CAAC7nC,CAAD,CAAO1e,CAAP,CAAc,CAAE,MAAOA,EAAT,CACrD,CAAAomD,CAAAplD,QAAA,CAAcmB,EAFhB,CAwBAikD,EAAAI,QAAA,CAAcC,QAAmB,CAAC/nC,CAAD,CAAO63B,CAAP,CAAa,CAC5C,IAAIx4B,EAASnE,CAAA,CAAO28B,CAAP,CACb,OAAIx4B,EAAAoiB,QAAJ,EAAsBpiB,CAAAzN,SAAtB,CACSyN,CADT,CAGSnE,CAAA,CAAO28B,CAAP,CAAa,QAAQ,CAACv2C,CAAD,CAAQ,CAClC,MAAOomD,EAAAvZ,WAAA,CAAenuB,CAAf,CAAqB1e,CAArB,CAD2B,CAA7B,CALmC,CAtDV,KAoThCiH,EAAQm/C,CAAAI,QApTwB,CAqThC3Z,EAAauZ,CAAAvZ,WArTmB,CAsThCkZ,EAAUK,CAAAL,QAEd9mD,EAAA,CAAQ0lD,EAAR,CAAsB,QAAQ,CAAC+B,CAAD,CAAYx8C,CAAZ,CAAkB,CAC9C,IAAIy8C,EAAQhjD,CAAA,CAAUuG,CAAV,CACZk8C,EAAA,CAAIxqC,EAAA,CAAU,WAAV,CAAwB+qC,CAAxB,CAAJ,CAAA,CAAsC,QAAQ,CAACpQ,CAAD,CAAO,CACnD,MAAOtvC,EAAA,CAAMy/C,CAAN,CAAiBnQ,CAAjB,CAD4C,CAGrD6P,EAAA,CAAIxqC,EAAA,CAAU,cAAV,CAA2B+qC,CAA3B,CAAJ,CAAA,CAAyC,QAAQ,CAAC3mD,CAAD,CAAQ,CACvD,MAAO6sC,EAAA,CAAW6Z,CAAX,CAAsB1mD,CAAtB,CADgD,CAGzDomD,EAAA,CAAIxqC,EAAA,CAAU,WAAV,CAAwB+qC,CAAxB,CAAJ,CAAA,CAAsC,QAAQ,CAAC3mD,CAAD,CAAQ,CACpD,MAAO+lD,EAAA,CAAQW,CAAR,CAAmB1mD,CAAnB,CAD6C,CARR,CAAhD,CAaA,OAAOomD,EArU6B,CAD1B,CApEU,CA4ZxB3rC,QAASA,GAAgB,EAAG,CAC1B,IAAAwI,KAAA,CAAY,CAAC,SAAD,CAAY,WAAZ;AAAyB,QAAQ,CAAC/H,CAAD,CAAUhD,CAAV,CAAqB,CAAA,IAC5D0uC,EAAe,EAD6C,CAE5DC,EACEllD,EAAA,CAAM,CAAC,eAAAkb,KAAA,CAAqBlZ,CAAA,CAAUmjD,CAAC5rC,CAAA6rC,UAADD,EAAsB,EAAtBA,WAAV,CAArB,CAAD,EAAyE,EAAzE,EAA6E,CAA7E,CAAN,CAH0D,CAI5DE,EAAQ,QAAA/jD,KAAA,CAAc6jD,CAAC5rC,CAAA6rC,UAADD,EAAsB,EAAtBA,WAAd,CAJoD,CAK5D3oD,EAAW+Z,CAAA,CAAU,CAAV,CAAX/Z,EAA2B,EALiC,CAM5D8oD,CAN4D,CAO5DC,EAAc,2BAP8C,CAQ5DC,EAAYhpD,CAAAysC,KAAZuc,EAA6BhpD,CAAAysC,KAAAz4B,MAR+B,CAS5Di1C,EAAc,CAAA,CAT8C,CAU5DC,EAAa,CAAA,CAGjB,IAAIF,CAAJ,CAAe,CACb,IAAShkD,IAAAA,CAAT,GAAiBgkD,EAAjB,CACE,GAAI/hD,CAAJ,CAAY8hD,CAAArqC,KAAA,CAAiB1Z,CAAjB,CAAZ,CAAoC,CAClC8jD,CAAA,CAAe7hD,CAAA,CAAM,CAAN,CACf6hD,EAAA,CAAeA,CAAA17B,OAAA,CAAoB,CAApB,CAAuB,CAAvB,CAAAvP,YAAA,EAAf,CAAyDirC,CAAA17B,OAAA,CAAoB,CAApB,CACzD,MAHkC,CAOjC07B,CAAL,GACEA,CADF,CACkB,eADlB,EACqCE,EADrC,EACmD,QADnD,CAIAC,EAAA,CAAc,CAAG,EAAC,YAAD,EAAiBD,EAAjB,EAAgCF,CAAhC,CAA+C,YAA/C,EAA+DE,EAA/D,CACjBE,EAAA,CAAc,CAAG,EAAC,WAAD,EAAgBF,EAAhB,EAA+BF,CAA/B,CAA8C,WAA9C,EAA6DE,EAA7D,CAEbN,EAAAA,CAAJ,EAAiBO,CAAjB,EAAkCC,CAAlC,GACED,CACA,CADc1oD,CAAA,CAASyoD,CAAAG,iBAAT,CACd,CAAAD,CAAA,CAAa3oD,CAAA,CAASyoD,CAAAI,gBAAT,CAFf,CAhBa,CAuBf,MAAO,CAULx9B,QAAS,EAAGA,CAAA7O,CAAA6O,QAAH;AAAsBy9B,CAAAtsC,CAAA6O,QAAAy9B,UAAtB,EAA+D,CAA/D,CAAqDX,CAArD,EAAsEG,CAAtE,CAVJ,CAYLS,SAAUA,QAAQ,CAAC9lC,CAAD,CAAQ,CAMxB,GAAc,OAAd,GAAIA,CAAJ,EAAiC,EAAjC,EAAyB2E,EAAzB,CAAqC,MAAO,CAAA,CAE5C,IAAI9jB,CAAA,CAAYokD,CAAA,CAAajlC,CAAb,CAAZ,CAAJ,CAAsC,CACpC,IAAI+lC,EAASvpD,CAAAwe,cAAA,CAAuB,KAAvB,CACbiqC,EAAA,CAAajlC,CAAb,CAAA,CAAsB,IAAtB,CAA6BA,CAA7B,GAAsC+lC,EAFF,CAKtC,MAAOd,EAAA,CAAajlC,CAAb,CAbiB,CAZrB,CA2BLzQ,IAAKA,EAAA,EA3BA,CA4BL+1C,aAAcA,CA5BT,CA6BLG,YAAaA,CA7BR,CA8BLC,WAAYA,CA9BP,CA+BLR,QAASA,CA/BJ,CApCyD,CAAtD,CADc,CAoF5BhsC,QAASA,GAAwB,EAAG,CAElC,IAAI8sC,CAeJ,KAAAA,YAAA,CAAmBC,QAAQ,CAAClhD,CAAD,CAAM,CAC/B,MAAIA,EAAJ,EACEihD,CACO,CADOjhD,CACP,CAAA,IAFT,EAIOihD,CALwB,CA8BjC,KAAA1kC,KAAA,CAAY,CAAC,gBAAD,CAAmB,OAAnB,CAA4B,IAA5B,CAAkC,MAAlC,CAA0C,QAAQ,CAACvI,CAAD,CAAiB5B,CAAjB,CAAwBkB,CAAxB,CAA4BI,CAA5B,CAAkC,CAE9FytC,QAASA,EAAe,CAACC,CAAD,CAAMC,CAAN,CAA0B,CAChDF,CAAAG,qBAAA,EAOKtpD,EAAA,CAASopD,CAAT,CAAL,EAAuBptC,CAAAvO,IAAA,CAAmB27C,CAAnB,CAAvB,GACEA,CADF,CACQ1tC,CAAA6tC,sBAAA,CAA2BH,CAA3B,CADR,CAIA,KAAIniB,EAAoB7sB,CAAA4sB,SAApBC,EAAsC7sB,CAAA4sB,SAAAC,kBAEtClnC,EAAA,CAAQknC,CAAR,CAAJ,CACEA,CADF,CACsBA,CAAAl1B,OAAA,CAAyB,QAAQ,CAACy3C,CAAD,CAAc,CACjE,MAAOA,EAAP;AAAuBzjB,EAD0C,CAA/C,CADtB,CAIWkB,CAJX,GAIiClB,EAJjC,GAKEkB,CALF,CAKsB,IALtB,CAQA,OAAO7sB,EAAA3M,IAAA,CAAU27C,CAAV,CAAevmD,CAAA,CAAO,CACzBokB,MAAOjL,CADkB,CAEzBirB,kBAAmBA,CAFM,CAAP,CAGjBgiB,CAHiB,CAAf,CAAA,CAIJ,SAJI,CAAA,CAIO,QAAQ,EAAG,CACrBE,CAAAG,qBAAA,EADqB,CAJlB,CAAAhrB,KAAA,CAOC,QAAQ,CAAC4J,CAAD,CAAW,CACvBlsB,CAAAmJ,IAAA,CAAmBikC,CAAnB,CAAwBlhB,CAAAt7B,KAAxB,CACA,OAAOs7B,EAAAt7B,KAFgB,CAPpB,CAYP68C,QAAoB,CAACthB,CAAD,CAAO,CACzB,GAAKkhB,CAAAA,CAAL,CACE,KAAMp5B,GAAA,CAAe,QAAf,CACJm5B,CADI,CACCjhB,CAAArB,OADD,CACcqB,CAAAiC,WADd,CAAN,CAGF,MAAO9uB,EAAA8sB,OAAA,CAAUD,CAAV,CALkB,CAZpB,CAtByC,CA2ClDghB,CAAAG,qBAAA,CAAuC,CAEvC,OAAOH,EA/CuF,CAApF,CA/CsB,CAkGpC9sC,QAASA,GAAqB,EAAG,CAC/B,IAAAkI,KAAA,CAAY,CAAC,YAAD,CAAe,UAAf,CAA2B,WAA3B,CACP,QAAQ,CAACnJ,CAAD,CAAelC,CAAf,CAA2B4B,CAA3B,CAAsC,CA6GjD,MApGkB4uC,CAcN,aAAeC,QAAQ,CAAC3kD,CAAD,CAAU+/B,CAAV,CAAsB6kB,CAAtB,CAAsC,CACnE95B,CAAAA,CAAW9qB,CAAA6kD,uBAAA,CAA+B,YAA/B,CACf,KAAIC,EAAU,EACdvpD,EAAA,CAAQuvB,CAAR,CAAkB,QAAQ,CAAC+T,CAAD,CAAU,CAClC,IAAIkmB,EAAch9C,EAAA/H,QAAA,CAAgB6+B,CAAhB,CAAAj3B,KAAA,CAA8B,UAA9B,CACdm9C;CAAJ,EACExpD,CAAA,CAAQwpD,CAAR,CAAqB,QAAQ,CAACC,CAAD,CAAc,CACrCJ,CAAJ,CAEMrlD,CADUohD,IAAInjD,MAAJmjD,CAAW,SAAXA,CAAuBE,EAAA,CAAgB9gB,CAAhB,CAAvB4gB,CAAqD,aAArDA,CACVphD,MAAA,CAAaylD,CAAb,CAFN,EAGIF,CAAAnkD,KAAA,CAAak+B,CAAb,CAHJ,CAM0C,EAN1C,EAMMmmB,CAAA3kD,QAAA,CAAoB0/B,CAApB,CANN,EAOI+kB,CAAAnkD,KAAA,CAAak+B,CAAb,CARqC,CAA3C,CAHgC,CAApC,CAiBA,OAAOimB,EApBgE,CAdvDJ,CAiDN,WAAaO,QAAQ,CAACjlD,CAAD,CAAU+/B,CAAV,CAAsB6kB,CAAtB,CAAsC,CAErE,IADA,IAAIM,EAAW,CAAC,KAAD,CAAQ,UAAR,CAAoB,OAApB,CAAf,CACS37B,EAAI,CAAb,CAAgBA,CAAhB,CAAoB27B,CAAAhqD,OAApB,CAAqC,EAAEquB,CAAvC,CAA0C,CAGxC,IAAI5M,EAAW3c,CAAA4a,iBAAA,CADA,GACA,CADMsqC,CAAA,CAAS37B,CAAT,CACN,CADoB,OACpB,EAFOq7B,CAAAO,CAAiB,GAAjBA,CAAuB,IAE9B,EADgD,GAChD,CADsDplB,CACtD,CADmE,IACnE,CACf,IAAIpjB,CAAAzhB,OAAJ,CACE,MAAOyhB,EAL+B,CAF2B,CAjDrD+nC,CAoEN,YAAcU,QAAQ,EAAG,CACnC,MAAOtvC,EAAA4Q,IAAA,EAD4B,CApEnBg+B,CAiFN,YAAcW,QAAQ,CAAC3+B,CAAD,CAAM,CAClCA,CAAJ,GAAY5Q,CAAA4Q,IAAA,EAAZ,GACE5Q,CAAA4Q,IAAA,CAAcA,CAAd,CACA,CAAAtQ,CAAAi6B,QAAA,EAFF,CADsC,CAjFtBqU,CAgGN,WAAaY,QAAQ,CAACh+B,CAAD,CAAW,CAC1CpT,CAAAkT,gCAAA,CAAyCE,CAAzC,CAD0C,CAhG1Bo9B,CAT+B,CADvC,CADmB,CAmHjCntC,QAASA,GAAgB,EAAG,CAC1B,IAAAgI,KAAA,CAAY,CAAC,YAAD;AAAe,UAAf,CAA2B,IAA3B,CAAiC,KAAjC,CAAwC,mBAAxC,CACP,QAAQ,CAACnJ,CAAD,CAAelC,CAAf,CAA2BoC,CAA3B,CAAiCE,CAAjC,CAAwC9B,CAAxC,CAA2D,CAkCtEyxB,QAASA,EAAO,CAACxjC,CAAD,CAAK+lB,CAAL,CAAYgiB,CAAZ,CAAyB,CAClC/uC,CAAA,CAAWgH,CAAX,CAAL,GACE+nC,CAEA,CAFchiB,CAEd,CADAA,CACA,CADQ/lB,CACR,CAAAA,CAAA,CAAKnE,CAHP,CADuC,KAOnCkiB,EAjpiBD5iB,EAAAjC,KAAA,CAipiBkBkC,SAjpiBlB,CAipiB6B8E,CAjpiB7B,CA0oiBoC,CAQnCkoC,EAAahsC,CAAA,CAAU2rC,CAAV,CAAbK,EAAuC,CAACL,CARL,CASnCjF,EAAWjd,CAACuiB,CAAA,CAAYv0B,CAAZ,CAAkBF,CAAnBkS,OAAA,EATwB,CAUnC6b,EAAUoB,CAAApB,QAVyB,CAWnC1b,CAEJA,EAAA,CAAYzU,CAAAsU,MAAA,CAAe,QAAQ,EAAG,CACpC,GAAI,CACFid,CAAAC,QAAA,CAAiB/iC,CAAAG,MAAA,CAAS,IAAT,CAAe4d,CAAf,CAAjB,CADE,CAEF,MAAOhc,CAAP,CAAU,CACV+gC,CAAArC,OAAA,CAAgB1+B,CAAhB,CACA,CAAAgQ,CAAA,CAAkBhQ,CAAlB,CAFU,CAFZ,OAMQ,CACN,OAAO6gD,CAAA,CAAUlhB,CAAAmhB,YAAV,CADD,CAIHza,CAAL,EAAgB30B,CAAAzO,OAAA,EAXoB,CAA1B,CAYT+gB,CAZS,CAcZ2b,EAAAmhB,YAAA,CAAsB78B,CACtB48B,EAAA,CAAU58B,CAAV,CAAA,CAAuB8c,CAEvB,OAAOpB,EA9BgC,CAhCzC,IAAIkhB,EAAY,EA8EhBpf,EAAAvd,OAAA,CAAiB68B,QAAQ,CAACphB,CAAD,CAAU,CACjC,MAAIA,EAAJ,EAAeA,CAAAmhB,YAAf,GAAsCD,EAAtC,EACEA,CAAA,CAAUlhB,CAAAmhB,YAAV,CAAApiB,OAAA,CAAsC,UAAtC,CAEO,CADP,OAAOmiB,CAAA,CAAUlhB,CAAAmhB,YAAV,CACA,CAAAtxC,CAAAsU,MAAAI,OAAA,CAAsByb,CAAAmhB,YAAtB,CAHT,EAKO,CAAA,CAN0B,CASnC,OAAOrf,EAzF+D,CAD5D,CADc,CAuJ5B4B,QAASA,GAAU,CAACrhB,CAAD,CAAM,CAGnB9D,EAAJ;CAGE8iC,CAAAppC,aAAA,CAA4B,MAA5B,CAAoCiL,CAApC,CACA,CAAAA,CAAA,CAAOm+B,CAAAn+B,KAJT,CAOAm+B,EAAAppC,aAAA,CAA4B,MAA5B,CAAoCiL,CAApC,CAGA,OAAO,CACLA,KAAMm+B,CAAAn+B,KADD,CAELygB,SAAU0d,CAAA1d,SAAA,CAA0B0d,CAAA1d,SAAArkC,QAAA,CAAgC,IAAhC,CAAsC,EAAtC,CAA1B,CAAsE,EAF3E,CAGLsZ,KAAMyoC,CAAAzoC,KAHD,CAILsvB,OAAQmZ,CAAAnZ,OAAA,CAAwBmZ,CAAAnZ,OAAA5oC,QAAA,CAA8B,KAA9B,CAAqC,EAArC,CAAxB,CAAmE,EAJtE,CAKLkhB,KAAM6gC,CAAA7gC,KAAA,CAAsB6gC,CAAA7gC,KAAAlhB,QAAA,CAA4B,IAA5B,CAAkC,EAAlC,CAAtB,CAA8D,EAL/D,CAMLkoC,SAAU6Z,CAAA7Z,SANL,CAOLE,KAAM2Z,CAAA3Z,KAPD,CAQLM,SAAiD,GAAvC,GAACqZ,CAAArZ,SAAAxqC,OAAA,CAA+B,CAA/B,CAAD,CACN6jD,CAAArZ,SADM,CAEN,GAFM,CAEAqZ,CAAArZ,SAVL,CAbgB,CAkCzBnG,QAASA,GAAe,CAACyf,CAAD,CAAa,CAC/BtrC,CAAAA,CAAUrf,CAAA,CAAS2qD,CAAT,CAAD,CAAyB5d,EAAA,CAAW4d,CAAX,CAAzB,CAAkDA,CAC/D,OAAQtrC,EAAA2tB,SAAR,GAA4B4d,EAAA5d,SAA5B,EACQ3tB,CAAA4C,KADR,GACwB2oC,EAAA3oC,KAHW,CA+CrCxF,QAASA,GAAe,EAAG,CACzB,IAAA8H,KAAA,CAAY5gB,EAAA,CAAQnE,CAAR,CADa,CAa3BqrD,QAASA,GAAc,CAACrxC,CAAD,CAAY,CAKjCsxC,QAASA,EAAsB,CAAC5nD,CAAD,CAAM,CACnC,GAAI,CACF,MAAO+G,mBAAA,CAAmB/G,CAAnB,CADL,CAEF,MAAOwG,CAAP,CAAU,CACV,MAAOxG,EADG,CAHuB,CALJ;AACjC,IAAI4oC,EAActyB,CAAA,CAAU,CAAV,CAAdsyB,EAA8B,EAAlC,CACIif,EAAc,EADlB,CAEIC,EAAmB,EAUvB,OAAO,SAAQ,EAAG,CAAA,IACZC,CADY,CACCC,CADD,CACS/pD,CADT,CACYiE,CADZ,CACmBoG,CAC/B2/C,EAAAA,CAAsBrf,CAAAof,OAAtBC,EAA4C,EAEhD,IAAIA,CAAJ,GAA4BH,CAA5B,CAKE,IAJAA,CAIK,CAJcG,CAId,CAHLF,CAGK,CAHSD,CAAAlmD,MAAA,CAAuB,IAAvB,CAGT,CAFLimD,CAEK,CAFS,EAET,CAAA5pD,CAAA,CAAI,CAAT,CAAYA,CAAZ,CAAgB8pD,CAAA/qD,OAAhB,CAAoCiB,CAAA,EAApC,CACE+pD,CAEA,CAFSD,CAAA,CAAY9pD,CAAZ,CAET,CADAiE,CACA,CADQ8lD,CAAA7lD,QAAA,CAAe,GAAf,CACR,CAAY,CAAZ,CAAID,CAAJ,GACEoG,CAIA,CAJOs/C,CAAA,CAAuBI,CAAA7gD,UAAA,CAAiB,CAAjB,CAAoBjF,CAApB,CAAvB,CAIP,CAAItB,CAAA,CAAYinD,CAAA,CAAYv/C,CAAZ,CAAZ,CAAJ,GACEu/C,CAAA,CAAYv/C,CAAZ,CADF,CACsBs/C,CAAA,CAAuBI,CAAA7gD,UAAA,CAAiBjF,CAAjB,CAAyB,CAAzB,CAAvB,CADtB,CALF,CAWJ,OAAO2lD,EAvBS,CAbe,CA0CnC9tC,QAASA,GAAsB,EAAG,CAChC,IAAAsH,KAAA,CAAYsmC,EADoB,CAwGlChxC,QAASA,GAAe,CAAC1N,CAAD,CAAW,CAmBjCu4B,QAASA,EAAQ,CAACl5B,CAAD,CAAO8E,CAAP,CAAgB,CAC/B,GAAItO,CAAA,CAASwJ,CAAT,CAAJ,CAAoB,CAClB,IAAI4/C,EAAU,EACd7qD,EAAA,CAAQiL,CAAR,CAAc,QAAQ,CAACuG,CAAD,CAASrR,CAAT,CAAc,CAClC0qD,CAAA,CAAQ1qD,CAAR,CAAA,CAAegkC,CAAA,CAAShkC,CAAT,CAAcqR,CAAd,CADmB,CAApC,CAGA,OAAOq5C,EALW,CAOlB,MAAOj/C,EAAAmE,QAAA,CAAiB9E,CAAjB,CA1BE6/C,QA0BF,CAAgC/6C,CAAhC,CARsB,CAWjC,IAAAo0B,SAAA,CAAgBA,CAEhB,KAAAngB,KAAA,CAAY,CAAC,WAAD,CAAc,QAAQ,CAAC4D,CAAD,CAAY,CAC5C,MAAO,SAAQ,CAAC3c,CAAD,CAAO,CACpB,MAAO2c,EAAA1a,IAAA,CAAcjC,CAAd,CAjCE6/C,QAiCF,CADa,CADsB,CAAlC,CAoBZ3mB,EAAA,CAAS,UAAT,CAAqB4mB,EAArB,CACA5mB,EAAA,CAAS,MAAT,CAAiB6mB,EAAjB,CACA7mB;CAAA,CAAS,QAAT,CAAmB8mB,EAAnB,CACA9mB,EAAA,CAAS,MAAT,CAAiB+mB,EAAjB,CACA/mB,EAAA,CAAS,SAAT,CAAoBgnB,EAApB,CACAhnB,EAAA,CAAS,WAAT,CAAsBinB,EAAtB,CACAjnB,EAAA,CAAS,QAAT,CAAmBknB,EAAnB,CACAlnB,EAAA,CAAS,SAAT,CAAoBmnB,EAApB,CACAnnB,EAAA,CAAS,WAAT,CAAsBonB,EAAtB,CA5DiC,CA8LnCN,QAASA,GAAY,EAAG,CACtB,MAAO,SAAQ,CAACrmD,CAAD,CAAQ4/B,CAAR,CAAoBgnB,CAApB,CAAgC,CAC7C,GAAK,CAAAnsD,EAAA,CAAYuF,CAAZ,CAAL,CAAyB,CACvB,GAAa,IAAb,EAAIA,CAAJ,CACE,MAAOA,EAEP,MAAMxF,EAAA,CAAO,QAAP,CAAA,CAAiB,UAAjB,CAAiEwF,CAAjE,CAAN,CAJqB,CAUzB,IAAI6mD,CAEJ,QAJqBC,EAAAC,CAAiBnnB,CAAjBmnB,CAIrB,EACE,KAAK,UAAL,CAEE,KACF,MAAK,SAAL,CACA,KAAK,MAAL,CACA,KAAK,QAAL,CACA,KAAK,QAAL,CACEF,CAAA,CAAsB,CAAA,CAExB,MAAK,QAAL,CAEEG,CAAA,CAAcC,EAAA,CAAkBrnB,CAAlB,CAA8BgnB,CAA9B,CAA0CC,CAA1C,CACd,MACF,SACE,MAAO7mD,EAfX,CAkBA,MAAO9E,MAAAynB,UAAA/V,OAAAlR,KAAA,CAA4BsE,CAA5B,CAAmCgnD,CAAnC,CA/BsC,CADzB,CAqCxBC,QAASA,GAAiB,CAACrnB,CAAD,CAAagnB,CAAb,CAAyBC,CAAzB,CAA8C,CACtE,IAAIK,EAAwBrqD,CAAA,CAAS+iC,CAAT,CAAxBsnB,EAAiD,GAAjDA,EAAwDtnB,EAGzC,EAAA,CAAnB,GAAIgnB,CAAJ,CACEA,CADF,CACejlD,EADf,CAEYnG,CAAA,CAAWorD,CAAX,CAFZ,GAGEA,CAHF,CAGeA,QAAQ,CAACO,CAAD,CAASC,CAAT,CAAmB,CACtC,GAAIzoD,CAAA,CAAYwoD,CAAZ,CAAJ,CAEE,MAAO,CAAA,CAET,IAAgB,IAAhB;AAAKA,CAAL,EAAuC,IAAvC,GAA0BC,CAA1B,CAEE,MAAOD,EAAP,GAAkBC,CAEpB,IAAIvqD,CAAA,CAASuqD,CAAT,CAAJ,EAA2BvqD,CAAA,CAASsqD,CAAT,CAA3B,EAAgD,CAAA1oD,EAAA,CAAkB0oD,CAAlB,CAAhD,CAEE,MAAO,CAAA,CAGTA,EAAA,CAASrnD,CAAA,CAAU,EAAV,CAAeqnD,CAAf,CACTC,EAAA,CAAWtnD,CAAA,CAAU,EAAV,CAAesnD,CAAf,CACX,OAAqC,EAArC,GAAOD,CAAAjnD,QAAA,CAAeknD,CAAf,CAhB+B,CAH1C,CA8BA,OAPcJ,SAAQ,CAAC7rD,CAAD,CAAO,CAC3B,MAAI+rD,EAAJ,EAA8B,CAAArqD,CAAA,CAAS1B,CAAT,CAA9B,CACSksD,EAAA,CAAYlsD,CAAZ,CAAkBykC,CAAArhC,EAAlB,CAAgCqoD,CAAhC,CAA4C,CAAA,CAA5C,CADT,CAGOS,EAAA,CAAYlsD,CAAZ,CAAkBykC,CAAlB,CAA8BgnB,CAA9B,CAA0CC,CAA1C,CAJoB,CA3ByC,CAqCxEQ,QAASA,GAAW,CAACF,CAAD,CAASC,CAAT,CAAmBR,CAAnB,CAA+BC,CAA/B,CAAoDS,CAApD,CAA0E,CAC5F,IAAIC,EAAaT,EAAA,CAAiBK,CAAjB,CAAjB,CACIK,EAAeV,EAAA,CAAiBM,CAAjB,CAEnB,IAAsB,QAAtB,GAAKI,CAAL,EAA2D,GAA3D,GAAoCJ,CAAA1lD,OAAA,CAAgB,CAAhB,CAApC,CACE,MAAO,CAAC2lD,EAAA,CAAYF,CAAZ,CAAoBC,CAAAliD,UAAA,CAAmB,CAAnB,CAApB,CAA2C0hD,CAA3C,CAAuDC,CAAvD,CACH,IAAIjsD,CAAA,CAAQusD,CAAR,CAAJ,CAGL,MAAOA,EAAArjC,KAAA,CAAY,QAAQ,CAAC3oB,CAAD,CAAO,CAChC,MAAOksD,GAAA,CAAYlsD,CAAZ,CAAkBisD,CAAlB,CAA4BR,CAA5B,CAAwCC,CAAxC,CADyB,CAA3B,CAKT,QAAQU,CAAR,EACE,KAAK,QAAL,CACE,IAAIhsD,CACJ,IAAIsrD,CAAJ,CAAyB,CACvB,IAAKtrD,CAAL,GAAY4rD,EAAZ,CACE,GAAuB,GAAvB,GAAK5rD,CAAAmG,OAAA,CAAW,CAAX,CAAL,EAA+B2lD,EAAA,CAAYF,CAAA,CAAO5rD,CAAP,CAAZ,CAAyB6rD,CAAzB,CAAmCR,CAAnC,CAA+C,CAAA,CAA/C,CAA/B,CACE,MAAO,CAAA,CAGX,OAAOU,EAAA,CAAuB,CAAA,CAAvB,CAA+BD,EAAA,CAAYF,CAAZ,CAAoBC,CAApB,CAA8BR,CAA9B,CAA0C,CAAA,CAA1C,CANf,CAOlB,GAAqB,QAArB,GAAIY,CAAJ,CAA+B,CACpC,IAAKjsD,CAAL,GAAY6rD,EAAZ,CAEE,GADIK,CACA,CADcL,CAAA,CAAS7rD,CAAT,CACd,CAAA,CAAAC,CAAA,CAAWisD,CAAX,CAAA,EAA2B,CAAA9oD,CAAA,CAAY8oD,CAAZ,CAA3B;CAIAC,CAEC,CAF0B,GAE1B,GAFkBnsD,CAElB,CAAA,CAAA8rD,EAAA,CADWK,CAAAC,CAAmBR,CAAnBQ,CAA4BR,CAAA,CAAO5rD,CAAP,CACvC,CAAuBksD,CAAvB,CAAoCb,CAApC,CAAgDc,CAAhD,CAAkEA,CAAlE,CAND,CAAJ,CAOE,MAAO,CAAA,CAGX,OAAO,CAAA,CAb6B,CAepC,MAAOd,EAAA,CAAWO,CAAX,CAAmBC,CAAnB,CAGX,MAAK,UAAL,CACE,MAAO,CAAA,CACT,SACE,MAAOR,EAAA,CAAWO,CAAX,CAAmBC,CAAnB,CA/BX,CAd4F,CAkD9FN,QAASA,GAAgB,CAACjkD,CAAD,CAAM,CAC7B,MAAgB,KAAT,GAACA,CAAD,CAAiB,MAAjB,CAA0B,MAAOA,EADX,CA6D/BsjD,QAASA,GAAc,CAACyB,CAAD,CAAU,CAC/B,IAAIC,EAAUD,CAAAE,eACd,OAAO,SAAQ,CAACC,CAAD,CAASC,CAAT,CAAyBC,CAAzB,CAAuC,CAChDtpD,CAAA,CAAYqpD,CAAZ,CAAJ,GACEA,CADF,CACmBH,CAAAK,aADnB,CAIIvpD,EAAA,CAAYspD,CAAZ,CAAJ,GACEA,CADF,CACiBJ,CAAAM,SAAA,CAAiB,CAAjB,CAAAC,QADjB,CAKA,OAAkB,KAAX,EAACL,CAAD,CACDA,CADC,CAEDM,EAAA,CAAaN,CAAb,CAAqBF,CAAAM,SAAA,CAAiB,CAAjB,CAArB,CAA0CN,CAAAS,UAA1C,CAA6DT,CAAAU,YAA7D,CAAkFN,CAAlF,CAAAzkD,QAAA,CACU,SADV,CACqBwkD,CADrB,CAZ8C,CAFvB,CAwEjCvB,QAASA,GAAY,CAACmB,CAAD,CAAU,CAC7B,IAAIC,EAAUD,CAAAE,eACd,OAAO,SAAQ,CAACU,CAAD,CAASP,CAAT,CAAuB,CAGpC,MAAkB,KAAX,EAACO,CAAD,CACDA,CADC,CAEDH,EAAA,CAAaG,CAAb,CAAqBX,CAAAM,SAAA,CAAiB,CAAjB,CAArB,CAA0CN,CAAAS,UAA1C,CAA6DT,CAAAU,YAA7D,CACaN,CADb,CAL8B,CAFT,CAyB/B7kD,QAASA,GAAK,CAACqlD,CAAD,CAAS,CAAA,IACjBC;AAAW,CADM,CACHC,CADG,CACKC,CADL,CAEjB5sD,CAFiB,CAEdc,CAFc,CAEX+rD,CAGmD,GAA7D,EAAKD,CAAL,CAA6BH,CAAAvoD,QAAA,CAAeqoD,EAAf,CAA7B,IACEE,CADF,CACWA,CAAAjlD,QAAA,CAAe+kD,EAAf,CAA4B,EAA5B,CADX,CAKgC,EAAhC,EAAKvsD,CAAL,CAASysD,CAAArc,OAAA,CAAc,IAAd,CAAT,GAE8B,CAE5B,CAFIwc,CAEJ,GAF+BA,CAE/B,CAFuD5sD,CAEvD,EADA4sD,CACA,EADyB,CAACH,CAAA9qD,MAAA,CAAa3B,CAAb,CAAiB,CAAjB,CAC1B,CAAAysD,CAAA,CAASA,CAAAvjD,UAAA,CAAiB,CAAjB,CAAoBlJ,CAApB,CAJX,EAKmC,CALnC,CAKW4sD,CALX,GAOEA,CAPF,CAO0BH,CAAA1tD,OAP1B,CAWA,KAAKiB,CAAL,CAAS,CAAT,CAAYysD,CAAA/mD,OAAA,CAAc1F,CAAd,CAAZ,EAAgC8sD,EAAhC,CAA2C9sD,CAAA,EAA3C,EAEA,GAAIA,CAAJ,GAAU6sD,CAAV,CAAkBJ,CAAA1tD,OAAlB,EAEE4tD,CACA,CADS,CAAC,CAAD,CACT,CAAAC,CAAA,CAAwB,CAH1B,KAIO,CAGL,IADAC,CAAA,EACA,CAAOJ,CAAA/mD,OAAA,CAAcmnD,CAAd,CAAP,EAA+BC,EAA/B,CAAA,CAA0CD,CAAA,EAG1CD,EAAA,EAAyB5sD,CACzB2sD,EAAA,CAAS,EAET,KAAK7rD,CAAL,CAAS,CAAT,CAAYd,CAAZ,EAAiB6sD,CAAjB,CAAwB7sD,CAAA,EAAA,CAAKc,CAAA,EAA7B,CACE6rD,CAAA,CAAO7rD,CAAP,CAAA,CAAY,CAAC2rD,CAAA/mD,OAAA,CAAc1F,CAAd,CAVV,CAeH4sD,CAAJ,CAA4BG,EAA5B,GACEJ,CAEA,CAFSA,CAAAxoD,OAAA,CAAc,CAAd,CAAiB4oD,EAAjB,CAA8B,CAA9B,CAET,CADAL,CACA,CADWE,CACX,CADmC,CACnC,CAAAA,CAAA,CAAwB,CAH1B,CAMA,OAAO,CAAE5mB,EAAG2mB,CAAL,CAAapkD,EAAGmkD,CAAhB,CAA0B1sD,EAAG4sD,CAA7B,CAhDc,CAuDvBI,QAASA,GAAW,CAACC,CAAD,CAAehB,CAAf,CAA6BiB,CAA7B,CAAsCd,CAAtC,CAA+C,CAC/D,IAAIO,EAASM,CAAAjnB,EAAb,CACImnB,EAAcR,CAAA5tD,OAAdouD,CAA8BF,CAAAjtD,EAGlCisD,EAAA,CAAgBtpD,CAAA,CAAYspD,CAAZ,CAAD,CAA8B9vB,IAAAixB,IAAA,CAASjxB,IAAAC,IAAA,CAAS8wB,CAAT,CAAkBC,CAAlB,CAAT,CAAyCf,CAAzC,CAA9B,CAAkF,CAACH,CAG9FoB,EAAAA,CAAUpB,CAAVoB,CAAyBJ,CAAAjtD,EACzBstD,EAAAA,CAAQX,CAAA,CAAOU,CAAP,CAEZ,IAAc,CAAd,CAAIA,CAAJ,CACEV,CAAAxoD,OAAA,CAAckpD,CAAd,CADF,KAEO,CAELJ,CAAAjtD,EAAA,CAAiB,CACjB2sD,EAAA5tD,OAAA,CAAgBsuD,CAAhB,CAA0BpB,CAA1B,CAAyC,CACzC,KAAS,IAAAjsD,EAAE,CAAX,CAAcA,CAAd,CAAkBqtD,CAAlB,CAA2BrtD,CAAA,EAA3B,CAAgC2sD,CAAA,CAAO3sD,CAAP,CAAA;AAAY,CAJvC,CAUP,IAHa,CAGb,EAHIstD,CAGJ,EAHgBX,CAAA,CAAOU,CAAP,CAAiB,CAAjB,CAAA,EAGhB,CAAOF,CAAP,CAAqBlB,CAArB,CAAmCkB,CAAA,EAAnC,CAAkDR,CAAAnoD,KAAA,CAAY,CAAZ,CASlD,IALI+oD,CAKJ,CALYZ,CAAAa,YAAA,CAAmB,QAAQ,CAACD,CAAD,CAAQvnB,CAAR,CAAWhmC,CAAX,CAAc2sD,CAAd,CAAsB,CAC3D3mB,CAAA,EAAQunB,CACRZ,EAAA,CAAO3sD,CAAP,CAAA,CAAYgmC,CAAZ,CAAgB,EAChB,OAAO7J,KAAAgG,MAAA,CAAW6D,CAAX,CAAe,EAAf,CAHoD,CAAjD,CAIT,CAJS,CAKZ,CACE2mB,CAAA5hD,QAAA,CAAewiD,CAAf,CACA,CAAAN,CAAAjtD,EAAA,EAlC6D,CAwDnEqsD,QAASA,GAAY,CAACG,CAAD,CAAS12C,CAAT,CAAkB23C,CAAlB,CAA4BC,CAA5B,CAAwCzB,CAAxC,CAAsD,CAEzE,GAAM,CAAAptD,CAAA,CAAS2tD,CAAT,CAAN,EAA0B,CAAAvtD,CAAA,CAASutD,CAAT,CAA1B,EAA+C7kD,KAAA,CAAM6kD,CAAN,CAA/C,CAA8D,MAAO,EAErE,KAAImB,EAAa,CAACC,QAAA,CAASpB,CAAT,CAAlB,CACIqB,EAAS,CAAA,CADb,CAEIpB,EAAStwB,IAAA2xB,IAAA,CAAStB,CAAT,CAATC,CAA4B,EAFhC,CAGIsB,EAAgB,EAGpB,IAAIJ,CAAJ,CACEI,CAAA,CAAgB,QADlB,KAEO,CACLd,CAAA,CAAe7lD,EAAA,CAAMqlD,CAAN,CAEfO,GAAA,CAAYC,CAAZ,CAA0BhB,CAA1B,CAAwCn2C,CAAAo3C,QAAxC,CAAyDp3C,CAAAs2C,QAAzD,CAEIO,EAAAA,CAASM,CAAAjnB,EACTgoB,EAAAA,CAAaf,CAAAjtD,EACb0sD,EAAAA,CAAWO,CAAA1kD,EACX0lD,EAAAA,CAAW,EAIf,KAHAJ,CAGA,CAHSlB,CAAAuB,OAAA,CAAc,QAAQ,CAACL,CAAD,CAAS7nB,CAAT,CAAY,CAAE,MAAO6nB,EAAP,EAAiB,CAAC7nB,CAApB,CAAlC,CAA4D,CAAA,CAA5D,CAGT,CAAoB,CAApB,CAAOgoB,CAAP,CAAA,CACErB,CAAA5hD,QAAA,CAAe,CAAf,CACA,CAAAijD,CAAA,EAIe,EAAjB,CAAIA,CAAJ,CACEC,CADF,CACatB,CAAAxoD,OAAA,CAAc6pD,CAAd,CADb,EAGEC,CACA,CADWtB,CACX,CAAAA,CAAA,CAAS,CAAC,CAAD,CAJX,CAQIwB,EAAAA,CAAS,EAIb,KAHIxB,CAAA5tD,OAGJ,CAHoB+W,CAAAs4C,OAGpB,EAFED,CAAApjD,QAAA,CAAe4hD,CAAAxoD,OAAA,CAAc,CAAC2R,CAAAs4C,OAAf,CAAA7kD,KAAA,CAAoC,EAApC,CAAf,CAEF,CAAOojD,CAAA5tD,OAAP,CAAuB+W,CAAAu4C,MAAvB,CAAA,CACEF,CAAApjD,QAAA,CAAe4hD,CAAAxoD,OAAA,CAAc,CAAC2R,CAAAu4C,MAAf,CAAA9kD,KAAA,CAAmC,EAAnC,CAAf,CAEEojD;CAAA5tD,OAAJ,EACEovD,CAAApjD,QAAA,CAAe4hD,CAAApjD,KAAA,CAAY,EAAZ,CAAf,CAEFwkD,EAAA,CAAgBI,CAAA5kD,KAAA,CAAYkkD,CAAZ,CAGZQ,EAAAlvD,OAAJ,GACEgvD,CADF,EACmBL,CADnB,CACgCO,CAAA1kD,KAAA,CAAc,EAAd,CADhC,CAIImjD,EAAJ,GACEqB,CADF,EACmB,IADnB,CAC0BrB,CAD1B,CA3CK,CA+CP,MAAa,EAAb,CAAIF,CAAJ,EAAmBqB,CAAAA,CAAnB,CACS/3C,CAAAw4C,OADT,CAC0BP,CAD1B,CAC0Cj4C,CAAAy4C,OAD1C,CAGSz4C,CAAA04C,OAHT,CAG0BT,CAH1B,CAG0Cj4C,CAAA24C,OA9D+B,CAkE3EC,QAASA,GAAS,CAACC,CAAD,CAAMhC,CAAN,CAAc3uC,CAAd,CAAoB,CACpC,IAAI4wC,EAAM,EACA,EAAV,CAAID,CAAJ,GACEC,CACA,CADO,GACP,CAAAD,CAAA,CAAM,CAACA,CAFT,CAKA,KADAA,CACA,CADM,EACN,CADWA,CACX,CAAOA,CAAA5vD,OAAP,CAAoB4tD,CAApB,CAAA,CAA4BgC,CAAA,CAAM7B,EAAN,CAAkB6B,CAC1C3wC,EAAJ,GACE2wC,CADF,CACQA,CAAAjjC,OAAA,CAAWijC,CAAA5vD,OAAX,CAAwB4tD,CAAxB,CADR,CAGA,OAAOiC,EAAP,CAAaD,CAXuB,CAetCE,QAASA,GAAU,CAACxkD,CAAD,CAAOmjB,CAAP,CAAatR,CAAb,CAAqB8B,CAArB,CAA2B,CAC5C9B,CAAA,CAASA,CAAT,EAAmB,CACnB,OAAO,SAAQ,CAACrU,CAAD,CAAO,CAChB1H,CAAAA,CAAQ0H,CAAA,CAAK,KAAL,CAAawC,CAAb,CAAA,EACZ,IAAa,CAAb,CAAI6R,CAAJ,EAAkB/b,CAAlB,CAA0B,CAAC+b,CAA3B,CACE/b,CAAA,EAAS+b,CAEG,EAAd,GAAI/b,CAAJ,EAA8B,GAA9B,EAAmB+b,CAAnB,GAAkC/b,CAAlC,CAA0C,EAA1C,CACA,OAAOuuD,GAAA,CAAUvuD,CAAV,CAAiBqtB,CAAjB,CAAuBxP,CAAvB,CANa,CAFsB,CAY9C8wC,QAASA,GAAa,CAACzkD,CAAD,CAAO0kD,CAAP,CAAkB,CACtC,MAAO,SAAQ,CAAClnD,CAAD,CAAOgkD,CAAP,CAAgB,CAC7B,IAAI1rD,EAAQ0H,CAAA,CAAK,KAAL,CAAawC,CAAb,CAAA,EAAZ,CACIiC,EAAM6E,EAAA,CAAU49C,CAAA,CAAa,OAAb,CAAuB1kD,CAAvB,CAA+BA,CAAzC,CAEV,OAAOwhD,EAAA,CAAQv/C,CAAR,CAAA,CAAanM,CAAb,CAJsB,CADO,CAmBxC6uD,QAASA,GAAsB,CAACC,CAAD,CAAO,CAElC,IAAIC,EAAmBC,CAAC,IAAIjuD,IAAJ,CAAS+tD,CAAT;AAAe,CAAf,CAAkB,CAAlB,CAADE,QAAA,EAGvB,OAAO,KAAIjuD,IAAJ,CAAS+tD,CAAT,CAAe,CAAf,EAAwC,CAArB,EAACC,CAAD,CAA0B,CAA1B,CAA8B,EAAjD,EAAuDA,CAAvD,CAL2B,CActCE,QAASA,GAAU,CAAC5hC,CAAD,CAAO,CACvB,MAAO,SAAQ,CAAC3lB,CAAD,CAAO,CAAA,IACfwnD,EAAaL,EAAA,CAAuBnnD,CAAAynD,YAAA,EAAvB,CAGb1xB,EAAAA,CAAO,CAVN2xB,IAAIruD,IAAJquD,CAQ8B1nD,CARrBynD,YAAA,EAATC,CAQ8B1nD,CARG2nD,SAAA,EAAjCD,CAQ8B1nD,CANnC4nD,QAAA,EAFKF,EAEiB,CAFjBA,CAQ8B1nD,CANTsnD,OAAA,EAFrBI,EAUD3xB,CAAoB,CAACyxB,CACtBnqC,EAAAA,CAAS,CAATA,CAAaiX,IAAAuzB,MAAA,CAAW9xB,CAAX,CAAkB,MAAlB,CAEhB,OAAO8wB,GAAA,CAAUxpC,CAAV,CAAkBsI,CAAlB,CAPY,CADC,CAgB1BmiC,QAASA,GAAS,CAAC9nD,CAAD,CAAOgkD,CAAP,CAAgB,CAChC,MAA6B,EAAtB,EAAAhkD,CAAAynD,YAAA,EAAA,CAA0BzD,CAAA+D,KAAA,CAAa,CAAb,CAA1B,CAA4C/D,CAAA+D,KAAA,CAAa,CAAb,CADnB,CA0IlCxF,QAASA,GAAU,CAACwB,CAAD,CAAU,CAK3BiE,QAASA,EAAgB,CAACC,CAAD,CAAS,CAChC,IAAIvqD,CACJ,IAAIA,CAAJ,CAAYuqD,CAAAvqD,MAAA,CAAawqD,CAAb,CAAZ,CAAyC,CACnCloD,CAAAA,CAAO,IAAI3G,IAAJ,CAAS,CAAT,CAD4B,KAEnC8uD,EAAS,CAF0B,CAGnCC,EAAS,CAH0B,CAInCC,EAAa3qD,CAAA,CAAM,CAAN,CAAA,CAAWsC,CAAAsoD,eAAX,CAAiCtoD,CAAAuoD,YAJX,CAKnCC,EAAa9qD,CAAA,CAAM,CAAN,CAAA,CAAWsC,CAAAyoD,YAAX,CAA8BzoD,CAAA0oD,SAE3ChrD,EAAA,CAAM,CAAN,CAAJ,GACEyqD,CACA,CADSluD,EAAA,CAAMyD,CAAA,CAAM,CAAN,CAAN,CAAiBA,CAAA,CAAM,EAAN,CAAjB,CACT,CAAA0qD,CAAA,CAAQnuD,EAAA,CAAMyD,CAAA,CAAM,CAAN,CAAN,CAAiBA,CAAA,CAAM,EAAN,CAAjB,CAFV,CAIA2qD,EAAAxwD,KAAA,CAAgBmI,CAAhB,CAAsB/F,EAAA,CAAMyD,CAAA,CAAM,CAAN,CAAN,CAAtB,CAAuCzD,EAAA,CAAMyD,CAAA,CAAM,CAAN,CAAN,CAAvC;AAAyD,CAAzD,CAA4DzD,EAAA,CAAMyD,CAAA,CAAM,CAAN,CAAN,CAA5D,CACI7E,EAAAA,CAAIoB,EAAA,CAAMyD,CAAA,CAAM,CAAN,CAAN,EAAkB,CAAlB,CAAJ7E,CAA2BsvD,CAC3BQ,EAAAA,CAAI1uD,EAAA,CAAMyD,CAAA,CAAM,CAAN,CAAN,EAAkB,CAAlB,CAAJirD,CAA2BP,CAC3BQ,EAAAA,CAAI3uD,EAAA,CAAMyD,CAAA,CAAM,CAAN,CAAN,EAAkB,CAAlB,CACJmrD,EAAAA,CAAKv0B,IAAAuzB,MAAA,CAAgD,GAAhD,CAAWiB,UAAA,CAAW,IAAX,EAAmBprD,CAAA,CAAM,CAAN,CAAnB,EAA+B,CAA/B,EAAX,CACT8qD,EAAA3wD,KAAA,CAAgBmI,CAAhB,CAAsBnH,CAAtB,CAAyB8vD,CAAzB,CAA4BC,CAA5B,CAA+BC,CAA/B,CAhBuC,CAmBzC,MAAOZ,EArByB,CAFlC,IAAIC,EAAgB,sGA2BpB,OAAO,SAAQ,CAACloD,CAAD,CAAO+oD,CAAP,CAAetpD,CAAf,CAAyB,CAAA,IAClC22B,EAAO,EAD2B,CAElC70B,EAAQ,EAF0B,CAGlC5C,CAHkC,CAG9BjB,CAERqrD,EAAA,CAASA,CAAT,EAAmB,YACnBA,EAAA,CAAShF,CAAAiF,iBAAA,CAAyBD,CAAzB,CAAT,EAA6CA,CACzC/xD,EAAA,CAASgJ,CAAT,CAAJ,GACEA,CADF,CACSipD,EAAA1tD,KAAA,CAAmByE,CAAnB,CAAA,CAA2B/F,EAAA,CAAM+F,CAAN,CAA3B,CAAyCgoD,CAAA,CAAiBhoD,CAAjB,CADlD,CAII5I,EAAA,CAAS4I,CAAT,CAAJ,GACEA,CADF,CACS,IAAI3G,IAAJ,CAAS2G,CAAT,CADT,CAIA,IAAK,CAAA5G,CAAA,CAAO4G,CAAP,CAAL,EAAsB,CAAA+lD,QAAA,CAAS/lD,CAAA7B,QAAA,EAAT,CAAtB,CACE,MAAO6B,EAGT,KAAA,CAAO+oD,CAAP,CAAA,CAEE,CADArrD,CACA,CADQwrD,EAAA/zC,KAAA,CAAwB4zC,CAAxB,CACR,GACExnD,CACA,CADQjD,EAAA,CAAOiD,CAAP,CAAc7D,CAAd,CAAqB,CAArB,CACR,CAAAqrD,CAAA,CAASxnD,CAAAwgB,IAAA,EAFX,GAIExgB,CAAA5E,KAAA,CAAWosD,CAAX,CACA,CAAAA,CAAA,CAAS,IALX,CASF,KAAI7oD,EAAqBF,CAAAG,kBAAA,EACrBV;CAAJ,GACES,CACA,CADqBV,EAAA,CAAiBC,CAAjB,CAA2BS,CAA3B,CACrB,CAAAF,CAAA,CAAOD,EAAA,CAAuBC,CAAvB,CAA6BP,CAA7B,CAAuC,CAAA,CAAvC,CAFT,CAIAlI,EAAA,CAAQgK,CAAR,CAAe,QAAQ,CAACjJ,CAAD,CAAQ,CAC7BqG,CAAA,CAAKwqD,EAAA,CAAa7wD,CAAb,CACL89B,EAAA,EAAQz3B,CAAA,CAAKA,CAAA,CAAGqB,CAAH,CAAS+jD,CAAAiF,iBAAT,CAAmC9oD,CAAnC,CAAL,CACe,IAAV,GAAA5H,CAAA,CAAiB,GAAjB,CAAuBA,CAAAqH,QAAA,CAAc,UAAd,CAA0B,EAA1B,CAAAA,QAAA,CAAsC,KAAtC,CAA6C,GAA7C,CAHP,CAA/B,CAMA,OAAOy2B,EAzC+B,CA9Bb,CA2G7BqsB,QAASA,GAAU,EAAG,CACpB,MAAO,SAAQ,CAAC9S,CAAD,CAASyZ,CAAT,CAAkB,CAC3BtuD,CAAA,CAAYsuD,CAAZ,CAAJ,GACIA,CADJ,CACc,CADd,CAGA,OAAOnqD,GAAA,CAAO0wC,CAAP,CAAeyZ,CAAf,CAJwB,CADb,CAiItB1G,QAASA,GAAa,EAAG,CACvB,MAAO,SAAQ,CAAC14C,CAAD,CAAQq/C,CAAR,CAAe3gB,CAAf,CAAsB,CAEjC2gB,CAAA,CAD8BC,QAAhC,GAAIh1B,IAAA2xB,IAAA,CAASlgC,MAAA,CAAOsjC,CAAP,CAAT,CAAJ,CACUtjC,MAAA,CAAOsjC,CAAP,CADV,CAGUpvD,EAAA,CAAMovD,CAAN,CAEV,IAAIvpD,KAAA,CAAMupD,CAAN,CAAJ,CAAkB,MAAOr/C,EAErB5S,EAAA,CAAS4S,CAAT,CAAJ,GAAqBA,CAArB,CAA6BA,CAAAnP,SAAA,EAA7B,CACA,IAAK,CAAA9D,CAAA,CAAQiT,CAAR,CAAL,EAAwB,CAAAhT,CAAA,CAASgT,CAAT,CAAxB,CAAyC,MAAOA,EAEhD0+B,EAAA,CAAUA,CAAAA,CAAF,EAAW5oC,KAAA,CAAM4oC,CAAN,CAAX,CAA2B,CAA3B,CAA+BzuC,EAAA,CAAMyuC,CAAN,CACvCA,EAAA,CAAiB,CAAT,CAACA,CAAD,CAAcpU,IAAAC,IAAA,CAAS,CAAT,CAAYvqB,CAAA9S,OAAZ,CAA2BwxC,CAA3B,CAAd,CAAkDA,CAE1D,OAAa,EAAb,EAAI2gB,CAAJ,CACSr/C,CAAAlQ,MAAA,CAAY4uC,CAAZ,CAAmBA,CAAnB,CAA2B2gB,CAA3B,CADT,CAGgB,CAAd,GAAI3gB,CAAJ,CACS1+B,CAAAlQ,MAAA,CAAYuvD,CAAZ,CAAmBr/C,CAAA9S,OAAnB,CADT,CAGS8S,CAAAlQ,MAAA,CAAYw6B,IAAAC,IAAA,CAAS,CAAT,CAAYmU,CAAZ,CAAoB2gB,CAApB,CAAZ;AAAwC3gB,CAAxC,CApBwB,CADd,CA8NzBma,QAASA,GAAa,CAAC3wC,CAAD,CAAS,CA6C7Bq3C,QAASA,EAAiB,CAACC,CAAD,CAAgBC,CAAhB,CAA8B,CACtDA,CAAA,CAAeA,CAAA,CAAgB,EAAhB,CAAoB,CACnC,OAAOD,EAAAE,IAAA,CAAkB,QAAQ,CAACC,CAAD,CAAY,CAAA,IACvCC,EAAa,CAD0B,CACvBnlD,EAAMhK,EAE1B,IAAI9C,CAAA,CAAWgyD,CAAX,CAAJ,CACEllD,CAAA,CAAMklD,CADR,KAEO,IAAI3yD,CAAA,CAAS2yD,CAAT,CAAJ,CAAyB,CAC9B,GAA4B,GAA5B,EAAKA,CAAA9rD,OAAA,CAAiB,CAAjB,CAAL,EAA0D,GAA1D,EAAmC8rD,CAAA9rD,OAAA,CAAiB,CAAjB,CAAnC,CACE+rD,CACA,CADoC,GAAvB,EAAAD,CAAA9rD,OAAA,CAAiB,CAAjB,CAAA,CAA8B,EAA9B,CAAkC,CAC/C,CAAA8rD,CAAA,CAAYA,CAAAtoD,UAAA,CAAoB,CAApB,CAEd,IAAkB,EAAlB,GAAIsoD,CAAJ,GACEllD,CACImE,CADEsJ,CAAA,CAAOy3C,CAAP,CACF/gD,CAAAnE,CAAAmE,SAFN,EAGI,IAAIlR,EAAM+M,CAAA,EAAV,CACAA,EAAMA,QAAQ,CAACnM,CAAD,CAAQ,CAAE,MAAOA,EAAA,CAAMZ,CAAN,CAAT,CATI,CAahC,MAAO,CAAE+M,IAAKA,CAAP,CAAYmlD,WAAYA,CAAZA,CAAyBH,CAArC,CAlBoC,CAAtC,CAF+C,CAwBxD3xD,QAASA,EAAW,CAACQ,CAAD,CAAQ,CAC1B,OAAQ,MAAOA,EAAf,EACE,KAAK,QAAL,CACA,KAAK,SAAL,CACA,KAAK,QAAL,CACE,MAAO,CAAA,CACT,SACE,MAAO,CAAA,CANX,CAD0B,CApE5B,MAAO,SAAQ,CAAC6D,CAAD,CAAQqtD,CAAR,CAAuBC,CAAvB,CAAqC,CAElD,GAAa,IAAb,EAAIttD,CAAJ,CAAmB,MAAOA,EAC1B,IAAK,CAAAvF,EAAA,CAAYuF,CAAZ,CAAL,CACE,KAAMxF,EAAA,CAAO,SAAP,CAAA,CAAkB,UAAlB,CAAkEwF,CAAlE,CAAN,CAGGpF,CAAA,CAAQyyD,CAAR,CAAL,GAA+BA,CAA/B,CAA+C,CAACA,CAAD,CAA/C,CAC6B,EAA7B,GAAIA,CAAAtyD,OAAJ;CAAkCsyD,CAAlC,CAAkD,CAAC,GAAD,CAAlD,CAEA,KAAIK,EAAaN,CAAA,CAAkBC,CAAlB,CAAiCC,CAAjC,CAIjBI,EAAAltD,KAAA,CAAgB,CAAE8H,IAAKA,QAAQ,EAAG,CAAE,MAAO,EAAT,CAAlB,CAAkCmlD,WAAYH,CAAA,CAAgB,EAAhB,CAAoB,CAAlE,CAAhB,CAKIK,EAAAA,CAAgBzyD,KAAAynB,UAAA4qC,IAAA7xD,KAAA,CAAyBsE,CAAzB,CAMpB4tD,QAA4B,CAACzxD,CAAD,CAAQ8D,CAAR,CAAe,CACzC,MAAO,CACL9D,MAAOA,CADF,CAEL0xD,gBAAiBH,CAAAH,IAAA,CAAe,QAAQ,CAACC,CAAD,CAAY,CACzB,IAAA,EAAAA,CAAAllD,IAAA,CAAcnM,CAAd,CAkE3B0e,EAAAA,CAAO,MAAO1e,EAClB,IAAc,IAAd,GAAIA,CAAJ,CACE0e,CACA,CADO,QACP,CAAA1e,CAAA,CAAQ,MAFV,KAGO,IAAa,QAAb,GAAI0e,CAAJ,CACL1e,CAAA,CAAQA,CAAAyM,YAAA,EADH,KAEA,IAAa,QAAb,GAAIiS,CAAJ,CAtB0B,CAAA,CAAA,CAEjC,GAA6B,UAA7B,GAAI,MAAO1e,EAAAgB,QAAX,GACEhB,CACI,CADIA,CAAAgB,QAAA,EACJ,CAAAxB,CAAA,CAAYQ,CAAZ,CAFN,EAE0B,MAAA,CAG1B,IAAIsC,EAAA,CAAkBtC,CAAlB,CAAJ,GACEA,CACI,CADIA,CAAAuC,SAAA,EACJ,CAAA/C,CAAA,CAAYQ,CAAZ,CAFN,EAE0B,MAAA,CAG1B,EAAA,CA9DqD8D,CAkDpB,CAlD3B,MA2EC,CAAE9D,MAAOA,CAAT,CAAgB0e,KAAMA,CAAtB,CA5EiD,CAAnC,CAFZ,CADkC,CANvB,CACpB8yC,EAAA5xD,KAAA,CAcA+xD,QAAqB,CAACC,CAAD,CAAKC,CAAL,CAAS,CAE5B,IADA,IAAI9sC,EAAS,CAAb,CACSjhB,EAAM,CADf,CACkBlF,EAAS2yD,CAAA3yD,OAA3B,CAA8CkF,CAA9C,CAAsDlF,CAAtD,CAA8D,EAAEkF,CAAhE,CAAuE,CACpD,IAAA,EAAA8tD,CAAAF,gBAAA,CAAmB5tD,CAAnB,CAAA;AAA2B,EAAA+tD,CAAAH,gBAAA,CAAmB5tD,CAAnB,CAA3B,CAuEjBihB,EAAS,CACT6sC,EAAAlzC,KAAJ,GAAgBmzC,CAAAnzC,KAAhB,CACMkzC,CAAA5xD,MADN,GACmB6xD,CAAA7xD,MADnB,GAEI+kB,CAFJ,CAEa6sC,CAAA5xD,MAAA,CAAW6xD,CAAA7xD,MAAX,CAAuB,EAAvB,CAA2B,CAFxC,EAKE+kB,CALF,CAKW6sC,CAAAlzC,KAAA,CAAUmzC,CAAAnzC,KAAV,CAAqB,EAArB,CAAyB,CA5EhC,IADAqG,CACA,CA8EGA,CA9EH,CADyEwsC,CAAA,CAAWztD,CAAX,CAAAwtD,WACzE,CAAY,KAFyD,CAIvE,MAAOvsC,EANqB,CAd9B,CAGA,OAFAlhB,EAEA,CAFQ2tD,CAAAJ,IAAA,CAAkB,QAAQ,CAACpyD,CAAD,CAAO,CAAE,MAAOA,EAAAgB,MAAT,CAAjC,CArB0C,CADvB,CAyH/B8xD,QAASA,GAAW,CAACphD,CAAD,CAAY,CAC1BrR,CAAA,CAAWqR,CAAX,CAAJ,GACEA,CADF,CACc,CACVsc,KAAMtc,CADI,CADd,CAKAA,EAAAof,SAAA,CAAqBpf,CAAAof,SAArB,EAA2C,IAC3C,OAAOztB,GAAA,CAAQqO,CAAR,CAPuB,CAihBhCqhD,QAASA,GAAc,CAACruD,CAAD,CAAUywB,CAAV,CAAiBkE,CAAjB,CAAyBrhB,CAAzB,CAAmC0B,CAAnC,CAAiD,CAAA,IAClE7G,EAAO,IAD2D,CAElEmgD,EAAW,EAGfngD,EAAAogD,OAAA,CAAc,EACdpgD,EAAAqgD,UAAA,CAAiB,EACjBrgD,EAAAsgD,SAAA,CAAgB/zD,CAChByT,EAAAugD,MAAA,CAAa15C,CAAA,CAAayb,CAAAjqB,KAAb,EAA2BiqB,CAAA5gB,OAA3B,EAA2C,EAA3C,CAAA,CAA+C8kB,CAA/C,CACbxmB,EAAAwgD,OAAA,CAAc,CAAA,CACdxgD,EAAAygD,UAAA,CAAiB,CAAA,CACjBzgD,EAAA0gD,OAAA,CAAc,CAAA,CACd1gD,EAAA2gD,SAAA,CAAgB,CAAA,CAChB3gD,EAAA4gD,WAAA,CAAkB,CAAA,CAClB5gD,EAAA6gD,aAAA,CAAoBC,EAapB9gD,EAAA+gD,mBAAA,CAA0BC,QAAQ,EAAG,CACnC5zD,CAAA,CAAQ+yD,CAAR;AAAkB,QAAQ,CAACc,CAAD,CAAU,CAClCA,CAAAF,mBAAA,EADkC,CAApC,CADmC,CAiBrC/gD,EAAAkhD,iBAAA,CAAwBC,QAAQ,EAAG,CACjC/zD,CAAA,CAAQ+yD,CAAR,CAAkB,QAAQ,CAACc,CAAD,CAAU,CAClCA,CAAAC,iBAAA,EADkC,CAApC,CADiC,CA2BnClhD,EAAAohD,YAAA,CAAmBC,QAAQ,CAACJ,CAAD,CAAU,CAGnC3kD,EAAA,CAAwB2kD,CAAAV,MAAxB,CAAuC,OAAvC,CACAJ,EAAA3tD,KAAA,CAAcyuD,CAAd,CAEIA,EAAAV,MAAJ,GACEvgD,CAAA,CAAKihD,CAAAV,MAAL,CADF,CACwBU,CADxB,CAIAA,EAAAJ,aAAA,CAAuB7gD,CAVY,CAcrCA,EAAAshD,gBAAA,CAAuBC,QAAQ,CAACN,CAAD,CAAUO,CAAV,CAAmB,CAChD,IAAIC,EAAUR,CAAAV,MAEVvgD,EAAA,CAAKyhD,CAAL,CAAJ,GAAsBR,CAAtB,EACE,OAAOjhD,CAAA,CAAKyhD,CAAL,CAETzhD,EAAA,CAAKwhD,CAAL,CAAA,CAAgBP,CAChBA,EAAAV,MAAA,CAAgBiB,CAPgC,CA0BlDxhD,EAAA0hD,eAAA,CAAsBC,QAAQ,CAACV,CAAD,CAAU,CAClCA,CAAAV,MAAJ,EAAqBvgD,CAAA,CAAKihD,CAAAV,MAAL,CAArB,GAA6CU,CAA7C,EACE,OAAOjhD,CAAA,CAAKihD,CAAAV,MAAL,CAETnzD,EAAA,CAAQ4S,CAAAsgD,SAAR,CAAuB,QAAQ,CAACnyD,CAAD,CAAQkK,CAAR,CAAc,CAC3C2H,CAAA4hD,aAAA,CAAkBvpD,CAAlB,CAAwB,IAAxB,CAA8B4oD,CAA9B,CAD2C,CAA7C,CAGA7zD,EAAA,CAAQ4S,CAAAogD,OAAR,CAAqB,QAAQ,CAACjyD,CAAD,CAAQkK,CAAR,CAAc,CACzC2H,CAAA4hD,aAAA,CAAkBvpD,CAAlB,CAAwB,IAAxB,CAA8B4oD,CAA9B,CADyC,CAA3C,CAGA7zD,EAAA,CAAQ4S,CAAAqgD,UAAR,CAAwB,QAAQ,CAAClyD,CAAD,CAAQkK,CAAR,CAAc,CAC5C2H,CAAA4hD,aAAA,CAAkBvpD,CAAlB;AAAwB,IAAxB,CAA8B4oD,CAA9B,CAD4C,CAA9C,CAIAlvD,GAAA,CAAYouD,CAAZ,CAAsBc,CAAtB,CACAA,EAAAJ,aAAA,CAAuBC,EAfe,CA4BxCe,GAAA,CAAqB,CACnBC,KAAM,IADa,CAEnBnjC,SAAU9sB,CAFS,CAGnBuB,IAAKA,QAAQ,CAACoyC,CAAD,CAASpf,CAAT,CAAmB9qB,CAAnB,CAA+B,CAC1C,IAAIua,EAAO2vB,CAAA,CAAOpf,CAAP,CACNvQ,EAAL,CAIiB,EAJjB,GAGcA,CAAA3jB,QAAAD,CAAaqJ,CAAbrJ,CAHd,EAKI4jB,CAAArjB,KAAA,CAAU8I,CAAV,CALJ,CACEkqC,CAAA,CAAOpf,CAAP,CADF,CACqB,CAAC9qB,CAAD,CAHqB,CAHzB,CAcnBymD,MAAOA,QAAQ,CAACvc,CAAD,CAASpf,CAAT,CAAmB9qB,CAAnB,CAA+B,CAC5C,IAAIua,EAAO2vB,CAAA,CAAOpf,CAAP,CACNvQ,EAAL,GAGA9jB,EAAA,CAAY8jB,CAAZ,CAAkBva,CAAlB,CACA,CAAoB,CAApB,GAAIua,CAAA9oB,OAAJ,EACE,OAAOy4C,CAAA,CAAOpf,CAAP,CALT,CAF4C,CAd3B,CAwBnBjhB,SAAUA,CAxBS,CAArB,CAqCAnF,EAAAgiD,UAAA,CAAiBC,QAAQ,EAAG,CAC1B98C,CAAAsM,YAAA,CAAqB5f,CAArB,CAA8BqwD,EAA9B,CACA/8C,EAAAqM,SAAA,CAAkB3f,CAAlB,CAA2BswD,EAA3B,CACAniD,EAAAwgD,OAAA,CAAc,CAAA,CACdxgD,EAAAygD,UAAA,CAAiB,CAAA,CACjBzgD,EAAA6gD,aAAAmB,UAAA,EAL0B,CAsB5BhiD,EAAAoiD,aAAA,CAAoBC,QAAQ,EAAG,CAC7Bl9C,CAAAm9C,SAAA,CAAkBzwD,CAAlB,CAA2BqwD,EAA3B,CAA2CC,EAA3C,CAzPcI,eAyPd,CACAviD,EAAAwgD,OAAA,CAAc,CAAA,CACdxgD,EAAAygD,UAAA,CAAiB,CAAA,CACjBzgD,EAAA4gD,WAAA,CAAkB,CAAA,CAClBxzD,EAAA,CAAQ+yD,CAAR,CAAkB,QAAQ,CAACc,CAAD,CAAU,CAClCA,CAAAmB,aAAA,EADkC,CAApC,CAL6B,CAuB/BpiD,EAAAwiD,cAAA,CAAqBC,QAAQ,EAAG,CAC9Br1D,CAAA,CAAQ+yD,CAAR;AAAkB,QAAQ,CAACc,CAAD,CAAU,CAClCA,CAAAuB,cAAA,EADkC,CAApC,CAD8B,CAahCxiD,EAAA0iD,cAAA,CAAqBC,QAAQ,EAAG,CAC9Bx9C,CAAAqM,SAAA,CAAkB3f,CAAlB,CA7Rc0wD,cA6Rd,CACAviD,EAAA4gD,WAAA,CAAkB,CAAA,CAClB5gD,EAAA6gD,aAAA6B,cAAA,EAH8B,CA1OsC,CAuiDxEE,QAASA,GAAoB,CAACd,CAAD,CAAO,CAClCA,CAAAe,YAAArwD,KAAA,CAAsB,QAAQ,CAACrE,CAAD,CAAQ,CACpC,MAAO2zD,EAAAgB,SAAA,CAAc30D,CAAd,CAAA,CAAuBA,CAAvB,CAA+BA,CAAAuC,SAAA,EADF,CAAtC,CADkC,CAWpCqyD,QAASA,GAAa,CAACzpD,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6Bn5C,CAA7B,CAAuC5C,CAAvC,CAAiD,CACrE,IAAI8G,EAAO/a,CAAA,CAAUD,CAAA,CAAQ,CAAR,CAAAgb,KAAV,CAKX,IAAKmoC,CAAArsC,CAAAqsC,QAAL,CAAuB,CACrB,IAAIgO,EAAY,CAAA,CAEhBnxD,EAAAsJ,GAAA,CAAW,kBAAX,CAA+B,QAAQ,CAAC1B,CAAD,CAAO,CAC5CupD,CAAA,CAAY,CAAA,CADgC,CAA9C,CAIAnxD,EAAAsJ,GAAA,CAAW,gBAAX,CAA6B,QAAQ,EAAG,CACtC6nD,CAAA,CAAY,CAAA,CACZtqC,EAAA,EAFsC,CAAxC,CAPqB,CAavB,IAAIA,EAAWA,QAAQ,CAACuqC,CAAD,CAAK,CACtBjrB,CAAJ,GACEjyB,CAAAsU,MAAAI,OAAA,CAAsBud,CAAtB,CACA,CAAAA,CAAA,CAAU,IAFZ,CAIA,IAAIgrB,CAAAA,CAAJ,CAAA,CAL0B,IAMtB70D,EAAQ0D,CAAAgD,IAAA,EACRib,EAAAA,CAAQmzC,CAARnzC,EAAcmzC,CAAAp2C,KAKL,WAAb,GAAIA,CAAJ,EAA6Btb,CAAA2xD,OAA7B,EAA4D,OAA5D,GAA4C3xD,CAAA2xD,OAA5C;CACE/0D,CADF,CACU6d,CAAA,CAAK7d,CAAL,CADV,CAOA,EAAI2zD,CAAAqB,WAAJ,GAAwBh1D,CAAxB,EAA4C,EAA5C,GAAkCA,CAAlC,EAAkD2zD,CAAAsB,sBAAlD,GACEtB,CAAAuB,cAAA,CAAmBl1D,CAAnB,CAA0B2hB,CAA1B,CAfF,CAL0B,CA0B5B,IAAInH,CAAAitC,SAAA,CAAkB,OAAlB,CAAJ,CACE/jD,CAAAsJ,GAAA,CAAW,OAAX,CAAoBud,CAApB,CADF,KAEO,CACL,IAAIsf,CAAJ,CAEIsrB,EAAgBA,QAAQ,CAACL,CAAD,CAAKpjD,CAAL,CAAY0jD,CAAZ,CAAuB,CAC5CvrB,CAAL,GACEA,CADF,CACYjyB,CAAAsU,MAAA,CAAe,QAAQ,EAAG,CAClC2d,CAAA,CAAU,IACLn4B,EAAL,EAAcA,CAAA1R,MAAd,GAA8Bo1D,CAA9B,EACE7qC,CAAA,CAASuqC,CAAT,CAHgC,CAA1B,CADZ,CADiD,CAWnDpxD,EAAAsJ,GAAA,CAAW,SAAX,CAAsB,QAAQ,CAAC2U,CAAD,CAAQ,CACpC,IAAIviB,EAAMuiB,CAAA0zC,QAIE,GAAZ,GAAIj2D,CAAJ,EAAmB,EAAnB,CAAwBA,CAAxB,EAAqC,EAArC,CAA+BA,CAA/B,EAA6C,EAA7C,EAAmDA,CAAnD,EAAiE,EAAjE,EAA0DA,CAA1D,EAEA+1D,CAAA,CAAcxzC,CAAd,CAAqB,IAArB,CAA2B,IAAA3hB,MAA3B,CAPoC,CAAtC,CAWA,IAAIwa,CAAAitC,SAAA,CAAkB,OAAlB,CAAJ,CACE/jD,CAAAsJ,GAAA,CAAW,WAAX,CAAwBmoD,CAAxB,CA1BG,CAgCPzxD,CAAAsJ,GAAA,CAAW,QAAX,CAAqBud,CAArB,CAEAopC,EAAA2B,QAAA,CAAeC,QAAQ,EAAG,CAExB,IAAIv1D,EAAQ2zD,CAAAgB,SAAA,CAAchB,CAAAqB,WAAd,CAAA,CAAiC,EAAjC,CAAsCrB,CAAAqB,WAC9CtxD,EAAAgD,IAAA,EAAJ,GAAsB1G,CAAtB,EACE0D,CAAAgD,IAAA,CAAY1G,CAAZ,CAJsB,CAjF2C,CA0HvEw1D,QAASA,GAAgB,CAACzkC,CAAD,CAAS0kC,CAAT,CAAkB,CACzC,MAAO,SAAQ,CAACC,CAAD,CAAMhuD,CAAN,CAAY,CAAA,IACrBuB,CADqB;AACdmoD,CAEX,IAAItwD,CAAA,CAAO40D,CAAP,CAAJ,CACE,MAAOA,EAGT,IAAIh3D,CAAA,CAASg3D,CAAT,CAAJ,CAAmB,CAII,GAArB,EAAIA,CAAAnwD,OAAA,CAAW,CAAX,CAAJ,EAA0D,GAA1D,EAA4BmwD,CAAAnwD,OAAA,CAAWmwD,CAAA92D,OAAX,CAAwB,CAAxB,CAA5B,GACE82D,CADF,CACQA,CAAA3sD,UAAA,CAAc,CAAd,CAAiB2sD,CAAA92D,OAAjB,CAA8B,CAA9B,CADR,CAGA,IAAI+2D,EAAA1yD,KAAA,CAAqByyD,CAArB,CAAJ,CACE,MAAO,KAAI30D,IAAJ,CAAS20D,CAAT,CAET3kC,EAAA1rB,UAAA,CAAmB,CAGnB,IAFA4D,CAEA,CAFQ8nB,CAAAlU,KAAA,CAAY64C,CAAZ,CAER,CAqBE,MApBAzsD,EAAAgd,MAAA,EAoBO,CAlBLmrC,CAkBK,CAnBH1pD,CAAJ,CACQ,CACJkuD,KAAMluD,CAAAynD,YAAA,EADF,CAEJ0G,GAAInuD,CAAA2nD,SAAA,EAAJwG,CAAsB,CAFlB,CAGJC,GAAIpuD,CAAA4nD,QAAA,EAHA,CAIJyG,GAAIruD,CAAAsuD,SAAA,EAJA,CAKJC,GAAIvuD,CAAAM,WAAA,EALA,CAMJkuD,GAAIxuD,CAAAyuD,WAAA,EANA,CAOJC,IAAK1uD,CAAA2uD,gBAAA,EAALD,CAA8B,GAP1B,CADR,CAWQ,CAAER,KAAM,IAAR,CAAcC,GAAI,CAAlB,CAAqBC,GAAI,CAAzB,CAA4BC,GAAI,CAAhC,CAAmCE,GAAI,CAAvC,CAA0CC,GAAI,CAA9C,CAAiDE,IAAK,CAAtD,CAQD,CALPn3D,CAAA,CAAQgK,CAAR,CAAe,QAAQ,CAACqtD,CAAD,CAAOxyD,CAAP,CAAc,CAC/BA,CAAJ,CAAY2xD,CAAA72D,OAAZ,GACEwyD,CAAA,CAAIqE,CAAA,CAAQ3xD,CAAR,CAAJ,CADF,CACwB,CAACwyD,CADzB,CADmC,CAArC,CAKO,CAAA,IAAIv1D,IAAJ,CAASqwD,CAAAwE,KAAT,CAAmBxE,CAAAyE,GAAnB,CAA4B,CAA5B,CAA+BzE,CAAA0E,GAA/B,CAAuC1E,CAAA2E,GAAvC,CAA+C3E,CAAA6E,GAA/C,CAAuD7E,CAAA8E,GAAvD,EAAiE,CAAjE,CAA8E,GAA9E,CAAoE9E,CAAAgF,IAApE,EAAsF,CAAtF,CAlCQ,CAsCnB,MAAOG,IA7CkB,CADc,CAkD3CC,QAASA,GAAmB,CAAC93C,CAAD,CAAOqS,CAAP,CAAe0lC,CAAf,CAA0BhG,CAA1B,CAAkC,CAC5D,MAAOiG,SAA6B,CAACvrD,CAAD;AAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6Bn5C,CAA7B,CAAuC5C,CAAvC,CAAiDU,CAAjD,CAA0D,CA4D5Fq+C,QAASA,EAAW,CAAC32D,CAAD,CAAQ,CAE1B,MAAOA,EAAP,EAAgB,EAAEA,CAAA6F,QAAF,EAAmB7F,CAAA6F,QAAA,EAAnB,GAAuC7F,CAAA6F,QAAA,EAAvC,CAFU,CAK5B+wD,QAASA,EAAsB,CAAClwD,CAAD,CAAM,CACnC,MAAOjE,EAAA,CAAUiE,CAAV,CAAA,EAAmB,CAAA5F,CAAA,CAAO4F,CAAP,CAAnB,CAAiC+vD,CAAA,CAAU/vD,CAAV,CAAjC,EAAmDtI,CAAnD,CAA+DsI,CADnC,CAhErCmwD,EAAA,CAAgB1rD,CAAhB,CAAuBzH,CAAvB,CAAgCN,CAAhC,CAAsCuwD,CAAtC,CACAiB,GAAA,CAAczpD,CAAd,CAAqBzH,CAArB,CAA8BN,CAA9B,CAAoCuwD,CAApC,CAA0Cn5C,CAA1C,CAAoD5C,CAApD,CACA,KAAIzQ,EAAWwsD,CAAXxsD,EAAmBwsD,CAAAmD,SAAnB3vD,EAAoCwsD,CAAAmD,SAAA3vD,SAAxC,CACI4vD,CAEJpD,EAAAqD,aAAA,CAAoBt4C,CACpBi1C,EAAAsD,SAAA5yD,KAAA,CAAmB,QAAQ,CAACrE,CAAD,CAAQ,CACjC,MAAI2zD,EAAAgB,SAAA,CAAc30D,CAAd,CAAJ,CAAiC,IAAjC,CACI+wB,CAAA9tB,KAAA,CAAYjD,CAAZ,CAAJ,EAIMk3D,CAIGA,CAJUT,CAAA,CAAUz2D,CAAV,CAAiB+2D,CAAjB,CAIVG,CAHH/vD,CAGG+vD,GAFLA,CAEKA,CAFQzvD,EAAA,CAAuByvD,CAAvB,CAAmC/vD,CAAnC,CAER+vD,EAAAA,CART,EAUO94D,CAZ0B,CAAnC,CAeAu1D,EAAAe,YAAArwD,KAAA,CAAsB,QAAQ,CAACrE,CAAD,CAAQ,CACpC,GAAIA,CAAJ,EAAc,CAAAc,CAAA,CAAOd,CAAP,CAAd,CACE,KAAMm3D,GAAA,CAAc,SAAd,CAAwDn3D,CAAxD,CAAN,CAEF,GAAI22D,CAAA,CAAY32D,CAAZ,CAAJ,CAKE,MAAO,CAJP+2D,CAIO,CAJQ/2D,CAIR,GAHamH,CAGb,GAFL4vD,CAEK,CAFUtvD,EAAA,CAAuBsvD,CAAvB,CAAqC5vD,CAArC,CAA+C,CAAA,CAA/C,CAEV,EAAAmR,CAAA,CAAQ,MAAR,CAAA,CAAgBtY,CAAhB,CAAuBywD,CAAvB,CAA+BtpD,CAA/B,CAEP4vD,EAAA,CAAe,IACf,OAAO,EAZ2B,CAAtC,CAgBA,IAAIt0D,CAAA,CAAUW,CAAA6pD,IAAV,CAAJ,EAA2B7pD,CAAAg0D,MAA3B,CAAuC,CACrC,IAAIC,CACJ1D,EAAA2D,YAAArK,IAAA,CAAuBsK,QAAQ,CAACv3D,CAAD,CAAQ,CACrC,MAAO,CAAC22D,CAAA,CAAY32D,CAAZ,CAAR;AAA8BwC,CAAA,CAAY60D,CAAZ,CAA9B,EAAqDZ,CAAA,CAAUz2D,CAAV,CAArD,EAAyEq3D,CADpC,CAGvCj0D,EAAA88B,SAAA,CAAc,KAAd,CAAqB,QAAQ,CAACx5B,CAAD,CAAM,CACjC2wD,CAAA,CAAST,CAAA,CAAuBlwD,CAAvB,CACTitD,EAAA6D,UAAA,EAFiC,CAAnC,CALqC,CAWvC,GAAI/0D,CAAA,CAAUW,CAAA64B,IAAV,CAAJ,EAA2B74B,CAAAq0D,MAA3B,CAAuC,CACrC,IAAIC,CACJ/D,EAAA2D,YAAAr7B,IAAA,CAAuB07B,QAAQ,CAAC33D,CAAD,CAAQ,CACrC,MAAO,CAAC22D,CAAA,CAAY32D,CAAZ,CAAR,EAA8BwC,CAAA,CAAYk1D,CAAZ,CAA9B,EAAqDjB,CAAA,CAAUz2D,CAAV,CAArD,EAAyE03D,CADpC,CAGvCt0D,EAAA88B,SAAA,CAAc,KAAd,CAAqB,QAAQ,CAACx5B,CAAD,CAAM,CACjCgxD,CAAA,CAASd,CAAA,CAAuBlwD,CAAvB,CACTitD,EAAA6D,UAAA,EAFiC,CAAnC,CALqC,CAjDqD,CADlC,CAwE9DX,QAASA,GAAe,CAAC1rD,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6B,CAGnD,CADuBA,CAAAsB,sBACvB,CADoDv0D,CAAA,CADzCgD,CAAAR,CAAQ,CAARA,CACkD00D,SAAT,CACpD,GACEjE,CAAAsD,SAAA5yD,KAAA,CAAmB,QAAQ,CAACrE,CAAD,CAAQ,CACjC,IAAI43D,EAAWl0D,CAAAP,KAAA,CA7qsBS00D,UA6qsBT,CAAXD,EAAoD,EACxD,OAAOA,EAAAE,SAAA,EAAqBF,CAAAG,aAArB,CAA6C35D,CAA7C,CAAyD4B,CAF/B,CAAnC,CAJiD,CAiHrDg4D,QAASA,GAAiB,CAACp+C,CAAD,CAASza,CAAT,CAAkB+K,CAAlB,CAAwBu5B,CAAxB,CAAoCr8B,CAApC,CAA8C,CAEtE,GAAI3E,CAAA,CAAUghC,CAAV,CAAJ,CAA2B,CACzBw0B,CAAA,CAAUr+C,CAAA,CAAO6pB,CAAP,CACV,IAAKnzB,CAAA2nD,CAAA3nD,SAAL,CACE,KAAM6mD,GAAA,CAAc,WAAd,CACiCjtD,CADjC,CACuCu5B,CADvC,CAAN,CAGF,MAAOw0B,EAAA,CAAQ94D,CAAR,CANkB,CAQ3B,MAAOiI,EAV+D,CAolBxE8wD,QAASA,GAAc,CAAChuD,CAAD,CAAO2V,CAAP,CAAiB,CACtC3V,CAAA,CAAO,SAAP,CAAmBA,CACnB;MAAO,CAAC,UAAD,CAAa,QAAQ,CAAC8M,CAAD,CAAW,CAiFrCmhD,QAASA,EAAe,CAACt1B,CAAD,CAAUC,CAAV,CAAmB,CACzC,IAAIF,EAAS,EAAb,CAGS/iC,EAAI,CADb,EAAA,CACA,IAAA,CAAgBA,CAAhB,CAAoBgjC,CAAAjkC,OAApB,CAAoCiB,CAAA,EAApC,CAAyC,CAEvC,IADA,IAAIkjC,EAAQF,CAAA,CAAQhjC,CAAR,CAAZ,CACSc,EAAI,CAAb,CAAgBA,CAAhB,CAAoBmiC,CAAAlkC,OAApB,CAAoC+B,CAAA,EAApC,CACE,GAAIoiC,CAAJ,EAAaD,CAAA,CAAQniC,CAAR,CAAb,CAAyB,SAAS,CAEpCiiC,EAAAv+B,KAAA,CAAY0+B,CAAZ,CALuC,CAOzC,MAAOH,EAXkC,CAc3Cw1B,QAASA,EAAY,CAACn3B,CAAD,CAAW,CAC9B,IAAI7d,EAAU,EACd,OAAI3kB,EAAA,CAAQwiC,CAAR,CAAJ,EACEhiC,CAAA,CAAQgiC,CAAR,CAAkB,QAAQ,CAAC+C,CAAD,CAAI,CAC5B5gB,CAAA,CAAUA,CAAApd,OAAA,CAAeoyD,CAAA,CAAap0B,CAAb,CAAf,CADkB,CAA9B,CAGO5gB,CAAAA,CAJT,EAKW1kB,CAAA,CAASuiC,CAAT,CAAJ,CACEA,CAAAz9B,MAAA,CAAe,GAAf,CADF,CAEI9C,CAAA,CAASugC,CAAT,CAAJ,EACLhiC,CAAA,CAAQgiC,CAAR,CAAkB,QAAQ,CAAC+C,CAAD,CAAII,CAAJ,CAAO,CAC3BJ,CAAJ,GACE5gB,CADF,CACYA,CAAApd,OAAA,CAAeo+B,CAAA5gC,MAAA,CAAQ,GAAR,CAAf,CADZ,CAD+B,CAAjC,CAKO4f,CAAAA,CANF,EAQA6d,CAjBuB,CA9FhC,MAAO,CACLnR,SAAU,IADL,CAEL9C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAiCnCi1D,QAASA,EAAiB,CAACj1C,CAAD,CAAU+qB,CAAV,CAAiB,CAGzC,IAAImqB,EAAc50D,CAAA4H,KAAA,CAAa,cAAb,CAAdgtD,EAA8CvyD,CAAA,EAAlD,CACIwyD,EAAkB,EACtBt5D,EAAA,CAAQmkB,CAAR,CAAiB,QAAQ,CAACuO,CAAD,CAAY,CACnC,GAAY,CAAZ,CAAIwc,CAAJ,EAAiBmqB,CAAA,CAAY3mC,CAAZ,CAAjB,CACE2mC,CAAA,CAAY3mC,CAAZ,CACA,EAD0B2mC,CAAA,CAAY3mC,CAAZ,CAC1B,EADoD,CACpD,EADyDwc,CACzD,CAAImqB,CAAA,CAAY3mC,CAAZ,CAAJ,GAA+B,EAAU,CAAV,CAAEwc,CAAF,CAA/B,EACEoqB,CAAAl0D,KAAA,CAAqBstB,CAArB,CAJ+B,CAArC,CAQAjuB,EAAA4H,KAAA,CAAa,cAAb;AAA6BgtD,CAA7B,CACA,OAAOC,EAAAnvD,KAAA,CAAqB,GAArB,CAdkC,CA8B3CovD,QAASA,EAAkB,CAAC3vC,CAAD,CAAS,CAClC,GAAiB,CAAA,CAAjB,GAAIhJ,CAAJ,EAAyB1U,CAAAstD,OAAzB,CAAwC,CAAxC,GAA8C54C,CAA9C,CAAwD,CACtD,IAAIshB,EAAai3B,CAAA,CAAavvC,CAAb,EAAuB,EAAvB,CACjB,IAAKC,CAAAA,CAAL,CAAa,CA1Cf,IAAIqY,EAAak3B,CAAA,CA2CFl3B,CA3CE,CAA2B,CAA3B,CACjB/9B,EAAA49B,UAAA,CAAeG,CAAf,CAyCe,CAAb,IAEO,IAAK,CAAA37B,EAAA,CAAOqjB,CAAP,CAAcC,CAAd,CAAL,CAA4B,CAEnBwU,IAAAA,EADG86B,CAAA96B,CAAaxU,CAAbwU,CACHA,CAnBd8D,EAAQ+2B,CAAA,CAmBkBh3B,CAnBlB,CAA4B7D,CAA5B,CAmBMA,CAlBdgE,EAAW62B,CAAA,CAAgB76B,CAAhB,CAkBe6D,CAlBf,CAkBG7D,CAjBlB8D,EAAQi3B,CAAA,CAAkBj3B,CAAlB,CAAyB,CAAzB,CAiBU9D,CAhBlBgE,EAAW+2B,CAAA,CAAkB/2B,CAAlB,CAA6B,EAA7B,CACPF,EAAJ,EAAaA,CAAAxiC,OAAb,EACEoY,CAAAqM,SAAA,CAAkB3f,CAAlB,CAA2B09B,CAA3B,CAEEE,EAAJ,EAAgBA,CAAA1iC,OAAhB,EACEoY,CAAAsM,YAAA,CAAqB5f,CAArB,CAA8B49B,CAA9B,CASmC,CAJmB,CASxDxY,CAAA,CAASxjB,EAAA,CAAYujB,CAAZ,CAVyB,CA9DpC,IAAIC,CAEJ3d,EAAAtI,OAAA,CAAaO,CAAA,CAAK8G,CAAL,CAAb,CAAyBsuD,CAAzB,CAA6C,CAAA,CAA7C,CAEAp1D,EAAA88B,SAAA,CAAc,OAAd,CAAuB,QAAQ,CAAClgC,CAAD,CAAQ,CACrCw4D,CAAA,CAAmBrtD,CAAA63C,MAAA,CAAY5/C,CAAA,CAAK8G,CAAL,CAAZ,CAAnB,CADqC,CAAvC,CAKa,UAAb,GAAIA,CAAJ,EACEiB,CAAAtI,OAAA,CAAa,QAAb,CAAuB,QAAQ,CAAC41D,CAAD,CAASC,CAAT,CAAoB,CAEjD,IAAIC,EAAMF,CAANE,CAAe,CACnB,IAAIA,CAAJ,IAAaD,CAAb,CAAyB,CAAzB,EAA6B,CAC3B,IAAIt1C,EAAUg1C,CAAA,CAAajtD,CAAA63C,MAAA,CAAY5/C,CAAA,CAAK8G,CAAL,CAAZ,CAAb,CACdyuD,EAAA,GAAQ94C,CAAR,EAQAshB,CACJ,CADiBk3B,CAAA,CAPAj1C,CAOA,CAA2B,CAA3B,CACjB,CAAAhgB,CAAA49B,UAAA,CAAeG,CAAf,CATI,GAaAA,CACJ,CADiBk3B,CAAA,CAXGj1C,CAWH,CAA4B,EAA5B,CACjB,CAAAhgB,CAAA89B,aAAA,CAAkBC,CAAlB,CAdI,CAF2B,CAHoB,CAAnD,CAXiC,CAFhC,CAD8B,CAAhC,CAF+B,CAuvGxCuyB,QAASA,GAAoB,CAACv0D,CAAD,CAAU,CA4ErCy5D,QAASA,EAAiB,CAACjnC,CAAD;AAAYknC,CAAZ,CAAyB,CAC7CA,CAAJ,EAAoB,CAAAC,CAAA,CAAWnnC,CAAX,CAApB,EACE3a,CAAAqM,SAAA,CAAkBmN,CAAlB,CAA4BmB,CAA5B,CACA,CAAAmnC,CAAA,CAAWnnC,CAAX,CAAA,CAAwB,CAAA,CAF1B,EAGYknC,CAAAA,CAHZ,EAG2BC,CAAA,CAAWnnC,CAAX,CAH3B,GAIE3a,CAAAsM,YAAA,CAAqBkN,CAArB,CAA+BmB,CAA/B,CACA,CAAAmnC,CAAA,CAAWnnC,CAAX,CAAA,CAAwB,CAAA,CAL1B,CADiD,CAUnDonC,QAASA,EAAmB,CAACC,CAAD,CAAqBC,CAArB,CAA8B,CACxDD,CAAA,CAAqBA,CAAA,CAAqB,GAArB,CAA2B5sD,EAAA,CAAW4sD,CAAX,CAA+B,GAA/B,CAA3B,CAAiE,EAEtFJ,EAAA,CAAkBM,EAAlB,CAAgCF,CAAhC,CAAgE,CAAA,CAAhE,GAAoDC,CAApD,CACAL,EAAA,CAAkBO,EAAlB,CAAkCH,CAAlC,CAAkE,CAAA,CAAlE,GAAsDC,CAAtD,CAJwD,CAtFrB,IACjCtF,EAAOx0D,CAAAw0D,KAD0B,CAEjCnjC,EAAWrxB,CAAAqxB,SAFsB,CAGjCsoC,EAAa,EAHoB,CAIjC7zD,EAAM9F,CAAA8F,IAJ2B,CAKjC2uD,EAAQz0D,CAAAy0D,MALyB,CAMjC58C,EAAW7X,CAAA6X,SAEf8hD,EAAA,CAAWK,EAAX,CAAA,CAA4B,EAAEL,CAAA,CAAWI,EAAX,CAAF,CAA4B1oC,CAAArN,SAAA,CAAkB+1C,EAAlB,CAA5B,CAE5BvF,EAAAF,aAAA,CAEA2F,QAAoB,CAACJ,CAAD,CAAqBhvC,CAArB,CAA4B7c,CAA5B,CAAwC,CACtD3K,CAAA,CAAYwnB,CAAZ,CAAJ,EAgDK2pC,CAAA,SAGL,GAFEA,CAAA,SAEF,CAFe,EAEf,EAAA1uD,CAAA,CAAI0uD,CAAA,SAAJ,CAlD2BqF,CAkD3B,CAlD+C7rD,CAkD/C,CAnDA,GAuDIwmD,CAAA,SAGJ,EAFEC,CAAA,CAAMD,CAAA,SAAN,CArD4BqF,CAqD5B,CArDgD7rD,CAqDhD,CAEF,CAAIksD,EAAA,CAAc1F,CAAA,SAAd,CAAJ,GACEA,CAAA,SADF,CACev1D,CADf,CA1DA,CAKK0E,GAAA,CAAUknB,CAAV,CAAL,CAIMA,CAAJ,EACE4pC,CAAA,CAAMD,CAAA1B,OAAN,CAAmB+G,CAAnB,CAAuC7rD,CAAvC,CACA,CAAAlI,CAAA,CAAI0uD,CAAAzB,UAAJ,CAAoB8G,CAApB,CAAwC7rD,CAAxC,CAFF,GAIElI,CAAA,CAAI0uD,CAAA1B,OAAJ,CAAiB+G,CAAjB,CAAqC7rD,CAArC,CACA,CAAAymD,CAAA,CAAMD,CAAAzB,UAAN,CAAsB8G,CAAtB,CAA0C7rD,CAA1C,CALF,CAJF,EACEymD,CAAA,CAAMD,CAAA1B,OAAN,CAAmB+G,CAAnB,CAAuC7rD,CAAvC,CACA,CAAAymD,CAAA,CAAMD,CAAAzB,UAAN,CAAsB8G,CAAtB,CAA0C7rD,CAA1C,CAFF,CAYIwmD;CAAAxB,SAAJ,EACEyG,CAAA,CAAkBU,EAAlB,CAAiC,CAAA,CAAjC,CAEA,CADA3F,CAAApB,OACA,CADcoB,CAAAnB,SACd,CAD8Bp0D,CAC9B,CAAA26D,CAAA,CAAoB,EAApB,CAAwB,IAAxB,CAHF,GAKEH,CAAA,CAAkBU,EAAlB,CAAiC,CAAA,CAAjC,CAGA,CAFA3F,CAAApB,OAEA,CAFc8G,EAAA,CAAc1F,CAAA1B,OAAd,CAEd,CADA0B,CAAAnB,SACA,CADgB,CAACmB,CAAApB,OACjB,CAAAwG,CAAA,CAAoB,EAApB,CAAwBpF,CAAApB,OAAxB,CARF,CAiBEgH,EAAA,CADE5F,CAAAxB,SAAJ,EAAqBwB,CAAAxB,SAAA,CAAc6G,CAAd,CAArB,CACkB56D,CADlB,CAEWu1D,CAAA1B,OAAA,CAAY+G,CAAZ,CAAJ,CACW,CAAA,CADX,CAEIrF,CAAAzB,UAAA,CAAe8G,CAAf,CAAJ,CACW,CAAA,CADX,CAGW,IAGlBD,EAAA,CAAoBC,CAApB,CAAwCO,CAAxC,CACA5F,EAAAjB,aAAAe,aAAA,CAA+BuF,CAA/B,CAAmDO,CAAnD,CAAkE5F,CAAlE,CA7C0D,CAZvB,CA8FvC0F,QAASA,GAAa,CAAC96D,CAAD,CAAM,CAC1B,GAAIA,CAAJ,CACE,IAAS4E,IAAAA,CAAT,GAAiB5E,EAAjB,CACE,GAAIA,CAAAe,eAAA,CAAmB6D,CAAnB,CAAJ,CACE,MAAO,CAAA,CAIb,OAAO,CAAA,CARmB,CAts0B5B,IAAIq2D,GAAsB,oBAA1B,CAMIl6D,GAAiBT,MAAA2nB,UAAAlnB,eANrB,CAQIqE,EAAYA,QAAQ,CAACgsD,CAAD,CAAS,CAAC,MAAOjxD,EAAA,CAASixD,CAAT,CAAA,CAAmBA,CAAAljD,YAAA,EAAnB,CAA0CkjD,CAAlD,CARjC,CASI3+C,GAAYA,QAAQ,CAAC2+C,CAAD,CAAS,CAAC,MAAOjxD,EAAA,CAASixD,CAAT,CAAA,CAAmBA,CAAA3zC,YAAA,EAAnB,CAA0C2zC,CAAlD,CATjC,CAoCIrpC,EApCJ,CAqCI3nB,CArCJ,CAsCIoO,EAtCJ,CAuCIvL,GAAoB,EAAAA,MAvCxB,CAwCIwC,GAAoB,EAAAA,OAxCxB,CAyCIK;AAAoB,EAAAA,KAzCxB,CA0CI9B,GAAoB1D,MAAA2nB,UAAAjkB,SA1CxB,CA2CIG,GAAoB7D,MAAA6D,eA3CxB,CA4CI+B,GAAoBpG,CAAA,CAAO,IAAP,CA5CxB,CA+CIoN,GAAoBvN,CAAAuN,QAApBA,GAAuCvN,CAAAuN,QAAvCA,CAAwD,EAAxDA,CA/CJ,CAgDI0F,EAhDJ,CAiDIjR,GAAoB,CAMxBomB,GAAA,CAAOnoB,CAAAs7D,aAwQPv3D,EAAAkkB,QAAA,CAAe,EAsBfjkB,GAAAikB,QAAA,CAAmB,EAsInB,KAAI3nB,EAAUM,KAAAN,QAAd,CAuEIuE,GAAqB,yFAvEzB,CAiFI6a,EAAOA,QAAQ,CAAC7d,CAAD,CAAQ,CACzB,MAAOtB,EAAA,CAASsB,CAAT,CAAA,CAAkBA,CAAA6d,KAAA,EAAlB,CAAiC7d,CADf,CAjF3B,CAwFIukD,GAAkBA,QAAQ,CAAC+L,CAAD,CAAI,CAChC,MAAOA,EAAAjpD,QAAA,CAAU,+BAAV,CAA2C,MAA3C,CAAAA,QAAA,CACU,OADV,CACmB,OADnB,CADyB,CAxFlC,CA6aI6J,GAAMA,QAAQ,EAAG,CACnB,GAAK,CAAAzO,CAAA,CAAUyO,EAAAwoD,MAAV,CAAL,CAA2B,CAGzB,IAAIC,EAAgBx7D,CAAAkM,cAAA,CAAuB,UAAvB,CAAhBsvD,EACYx7D,CAAAkM,cAAA,CAAuB,eAAvB,CAEhB;GAAIsvD,CAAJ,CAAkB,CAChB,IAAIC,EAAiBD,CAAAhwD,aAAA,CAA0B,QAA1B,CAAjBiwD,EACUD,CAAAhwD,aAAA,CAA0B,aAA1B,CACduH,GAAAwoD,MAAA,CAAY,CACVhe,aAAc,CAACke,CAAfle,EAAgF,EAAhFA,GAAkCke,CAAA71D,QAAA,CAAuB,gBAAvB,CADxB,CAEV81D,cAAe,CAACD,CAAhBC,EAAkF,EAAlFA,GAAmCD,CAAA71D,QAAA,CAAuB,iBAAvB,CAFzB,CAHI,CAAlB,IAOO,CACLmN,CAAAA,CAAAA,EAUF,IAAI,CAEF,IAAIqV,QAAJ,CAAa,EAAb,CAEA,CAAA,CAAA,CAAO,CAAA,CAJL,CAKF,MAAOne,CAAP,CAAU,CACV,CAAA,CAAO,CAAA,CADG,CAfV8I,CAAAwoD,MAAA,CAAY,CACVhe,aAAc,CADJ,CAEVme,cAAe,CAAA,CAFL,CADP,CAbkB,CAqB3B,MAAO3oD,GAAAwoD,MAtBY,CA7arB,CAufI5sD,GAAKA,QAAQ,EAAG,CAClB,GAAIrK,CAAA,CAAUqK,EAAAgtD,MAAV,CAAJ,CAAyB,MAAOhtD,GAAAgtD,MAChC,KAAIC,CAAJ,CACIl6D,CADJ,CACOY,EAAKiJ,EAAA9K,OADZ,CACmCqL,CADnC,CAC2CC,CAC3C,KAAKrK,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBY,CAAhB,CAAoB,EAAEZ,CAAtB,CAEE,GADAoK,CACI,CADKP,EAAA,CAAe7J,CAAf,CACL,CAAAk6D,CAAA,CAAK57D,CAAAkM,cAAA,CAAuB,GAAvB,CAA6BJ,CAAA5C,QAAA,CAAe,GAAf,CAAoB,KAApB,CAA7B,CAA0D,KAA1D,CAAT,CAA2E,CACzE6C,CAAA,CAAO6vD,CAAApwD,aAAA,CAAgBM,CAAhB,CAAyB,IAAzB,CACP,MAFyE,CAM7E,MAAQ6C,GAAAgtD,MAAR,CAAmB5vD,CAZD,CAvfpB,CAmnBI5C,GAAa,IAnnBjB,CA6wBIoC,GAAiB,CAAC,KAAD;AAAQ,UAAR,CAAoB,KAApB,CAA2B,OAA3B,CA7wBrB,CA4kCI4C,GAAoB,QA5kCxB,CAolCIM,GAAkB,CAAA,CAplCtB,CA2uCInE,GAAiB,CA3uCrB,CAsuDIsI,GAAU,CACZipD,KAAM,OADM,CAEZC,MAAO,CAFK,CAGZC,MAAO,CAHK,CAIZC,IAAK,CAJO,CAKZC,SAAU,0BALE,CA0QdvsD,EAAAwsD,QAAA,CAAiB,OA9nFsB,KAgoFnCh7C,GAAUxR,CAAA8X,MAAVtG,CAAyB,EAhoFU,CAioFnCE,GAAO,CAWX1R,EAAAH,MAAA,CAAe4sD,QAAQ,CAACp3D,CAAD,CAAO,CAE5B,MAAO,KAAAyiB,MAAA,CAAWziB,CAAA,CAAK,IAAAm3D,QAAL,CAAX,CAAP,EAAyC,EAFb,CAQ9B,KAAIx+C,GAAuB,iBAA3B,CACII,GAAkB,aADtB,CAEIiD,GAAiB,CAAEq7C,WAAY,UAAd,CAA0BC,WAAY,WAAtC,CAFrB,CAGI18C,GAAezf,CAAA,CAAO,QAAP,CAHnB,CAkBI2f,GAAoB,+BAlBxB,CAmBIvB,GAAc,WAnBlB,CAoBIG,GAAkB,YApBtB,CAqBIM,GAAmB,0EArBvB,CAuBIH,GAAU,CACZ,OAAU,CAAC,CAAD,CAAI,8BAAJ;AAAoC,WAApC,CADE,CAGZ,MAAS,CAAC,CAAD,CAAI,SAAJ,CAAe,UAAf,CAHG,CAIZ,IAAO,CAAC,CAAD,CAAI,mBAAJ,CAAyB,qBAAzB,CAJK,CAKZ,GAAM,CAAC,CAAD,CAAI,gBAAJ,CAAsB,kBAAtB,CALM,CAMZ,GAAM,CAAC,CAAD,CAAI,oBAAJ,CAA0B,uBAA1B,CANM,CAOZ,SAAY,CAAC,CAAD,CAAI,EAAJ,CAAQ,EAAR,CAPA,CAUdA,GAAA09C,SAAA,CAAmB19C,EAAA1K,OACnB0K,GAAA29C,MAAA,CAAgB39C,EAAA49C,MAAhB,CAAgC59C,EAAA69C,SAAhC,CAAmD79C,EAAA89C,QAAnD,CAAqE99C,EAAA+9C,MACrE/9C,GAAAg+C,GAAA,CAAah+C,EAAAi+C,GA2Fb,KAAIh4C,GAAiBi4C,IAAAz0C,UAAA00C,SAAjBl4C,EAA4C,QAAQ,CAACjV,CAAD,CAAM,CAE5D,MAAO,CAAG,EAAA,IAAAotD,wBAAA,CAA6BptD,CAA7B,CAAA,CAAoC,EAApC,CAFkD,CAA9D,CAqQId,GAAkBY,CAAA2Y,UAAlBvZ,CAAqC,CACvCmuD,MAAOA,QAAQ,CAAC/0D,CAAD,CAAK,CAGlBg1D,QAASA,EAAO,EAAG,CACbC,CAAJ,GACAA,CACA,CADQ,CAAA,CACR,CAAAj1D,CAAA,EAFA,CADiB,CAFnB,IAAIi1D,EAAQ,CAAA,CASgB,WAA5B,GAAIn9D,CAAAgjB,WAAJ,CACEC,UAAA,CAAWi6C,CAAX,CADF,EAGE,IAAAruD,GAAA,CAAQ,kBAAR;AAA4BquD,CAA5B,CAGA,CAAAxtD,CAAA,CAAO3P,CAAP,CAAA8O,GAAA,CAAkB,MAAlB,CAA0BquD,CAA1B,CANF,CAVkB,CADmB,CAqBvC94D,SAAUA,QAAQ,EAAG,CACnB,IAAIvC,EAAQ,EACZf,EAAA,CAAQ,IAAR,CAAc,QAAQ,CAACmJ,CAAD,CAAI,CAAEpI,CAAAqE,KAAA,CAAW,EAAX,CAAgB+D,CAAhB,CAAF,CAA1B,CACA,OAAO,GAAP,CAAapI,CAAAoJ,KAAA,CAAW,IAAX,CAAb,CAAgC,GAHb,CArBkB,CA2BvCy3C,GAAIA,QAAQ,CAAC/8C,CAAD,CAAQ,CAChB,MAAiB,EAAV,EAACA,CAAD,CAAenF,CAAA,CAAO,IAAA,CAAKmF,CAAL,CAAP,CAAf,CAAqCnF,CAAA,CAAO,IAAA,CAAK,IAAAC,OAAL,CAAmBkF,CAAnB,CAAP,CAD5B,CA3BmB,CA+BvClF,OAAQ,CA/B+B,CAgCvCyF,KAAMA,EAhCiC,CAiCvCzE,KAAM,EAAAA,KAjCiC,CAkCvCoE,OAAQ,EAAAA,OAlC+B,CArQzC,CA+SIud,GAAe,EACnBtiB,EAAA,CAAQ,2DAAA,MAAA,CAAA,GAAA,CAAR,CAAgF,QAAQ,CAACe,CAAD,CAAQ,CAC9FuhB,EAAA,CAAa5d,CAAA,CAAU3D,CAAV,CAAb,CAAA,CAAiCA,CAD6D,CAAhG,CAGA,KAAIwhB,GAAmB,EACvBviB,EAAA,CAAQ,kDAAA,MAAA,CAAA,GAAA,CAAR,CAAuE,QAAQ,CAACe,CAAD,CAAQ,CACrFwhB,EAAA,CAAiBxhB,CAAjB,CAAA,CAA0B,CAAA,CAD2D,CAAvF,CAGA,KAAI0hC,GAAe,CACjB,YAAe,WADE,CAEjB,YAAe,WAFE,CAGjB,MAAS,KAHQ,CAIjB,MAAS,KAJQ;AAKjB,UAAa,SALI,CAoBnBziC,EAAA,CAAQ,CACNqM,KAAMkU,EADA,CAEN+7C,WAAYl9C,EAFN,CAGNshB,QA3ZF67B,QAAsB,CAACt4D,CAAD,CAAO,CAC3B,IAAS9D,IAAAA,CAAT,GAAgBigB,GAAA,CAAQnc,CAAAkc,MAAR,CAAhB,CACE,MAAO,CAAA,CAET,OAAO,CAAA,CAJoB,CAwZrB,CAIN/R,UArZFouD,QAAwB,CAAC/sD,CAAD,CAAQ,CAC9B,IAD8B,IACrB7O,EAAI,CADiB,CACdY,EAAKiO,CAAA9P,OAArB,CAAmCiB,CAAnC,CAAuCY,CAAvC,CAA2CZ,CAAA,EAA3C,CACEwe,EAAA,CAAiB3P,CAAA,CAAM7O,CAAN,CAAjB,CAF4B,CAiZxB,CAAR,CAKG,QAAQ,CAACwG,CAAD,CAAK6D,CAAL,CAAW,CACpB2D,CAAA,CAAO3D,CAAP,CAAA,CAAe7D,CADK,CALtB,CASApH,EAAA,CAAQ,CACNqM,KAAMkU,EADA,CAENpS,cAAemT,EAFT,CAINpV,MAAOA,QAAQ,CAACzH,CAAD,CAAU,CAEvB,MAAO/E,EAAA2M,KAAA,CAAY5H,CAAZ,CAAqB,QAArB,CAAP,EAAyC6c,EAAA,CAAoB7c,CAAAga,WAApB,EAA0Cha,CAA1C,CAAmD,CAAC,eAAD,CAAkB,QAAlB,CAAnD,CAFlB,CAJnB,CASNwJ,aAAcA,QAAQ,CAACxJ,CAAD,CAAU,CAE9B,MAAO/E,EAAA2M,KAAA,CAAY5H,CAAZ,CAAqB,eAArB,CAAP,EAAgD/E,CAAA2M,KAAA,CAAY5H,CAAZ,CAAqB,yBAArB,CAFlB,CAT1B,CAcNyJ,WAAYmT,EAdN,CAgBN5V,SAAUA,QAAQ,CAAChH,CAAD,CAAU,CAC1B,MAAO6c,GAAA,CAAoB7c,CAApB,CAA6B,WAA7B,CADmB,CAhBtB,CAoBNy+B,WAAYA,QAAQ,CAACz+B,CAAD,CAAUwG,CAAV,CAAgB,CAClCxG,CAAAg4D,gBAAA,CAAwBxxD,CAAxB,CADkC,CApB9B;AAwBNiZ,SAAUvD,EAxBJ,CA0BN+7C,IAAKA,QAAQ,CAACj4D,CAAD,CAAUwG,CAAV,CAAgBlK,CAAhB,CAAuB,CAClCkK,CAAA,CAAO0R,EAAA,CAAU1R,CAAV,CAEP,IAAIzH,CAAA,CAAUzC,CAAV,CAAJ,CACE0D,CAAAyO,MAAA,CAAcjI,CAAd,CAAA,CAAsBlK,CADxB,KAGE,OAAO0D,EAAAyO,MAAA,CAAcjI,CAAd,CANyB,CA1B9B,CAoCN9G,KAAMA,QAAQ,CAACM,CAAD,CAAUwG,CAAV,CAAgBlK,CAAhB,CAAuB,CACnC,IAAIwI,EAAW9E,CAAA8E,SACf,IAAIA,CAAJ,GAAiBC,EAAjB,EApxCsBmzD,CAoxCtB,GAAmCpzD,CAAnC,EAlxCoB8tB,CAkxCpB,GAAuE9tB,CAAvE,CAIA,GADIqzD,CACA,CADiBl4D,CAAA,CAAUuG,CAAV,CACjB,CAAAqX,EAAA,CAAas6C,CAAb,CAAJ,CACE,GAAIp5D,CAAA,CAAUzC,CAAV,CAAJ,CACQA,CAAN,EACE0D,CAAA,CAAQwG,CAAR,CACA,CADgB,CAAA,CAChB,CAAAxG,CAAAsc,aAAA,CAAqB9V,CAArB,CAA2B2xD,CAA3B,CAFF,GAIEn4D,CAAA,CAAQwG,CAAR,CACA,CADgB,CAAA,CAChB,CAAAxG,CAAAg4D,gBAAA,CAAwBG,CAAxB,CALF,CADF,KASE,OAAQn4D,EAAA,CAAQwG,CAAR,CAAD,EACE4xD,CAACp4D,CAAA4tB,WAAAyqC,aAAA,CAAgC7xD,CAAhC,CAAD4xD,EAA0C55D,CAA1C45D,WADF,CAEED,CAFF,CAGEz9D,CAbb,KAeO,IAAIqE,CAAA,CAAUzC,CAAV,CAAJ,CACL0D,CAAAsc,aAAA,CAAqB9V,CAArB,CAA2BlK,CAA3B,CADK,KAEA,IAAI0D,CAAAiG,aAAJ,CAKL,MAFIqyD,EAEG,CAFGt4D,CAAAiG,aAAA,CAAqBO,CAArB,CAA2B,CAA3B,CAEH,CAAQ,IAAR,GAAA8xD,CAAA,CAAe59D,CAAf,CAA2B49D,CA5BD,CApC/B,CAoEN74D,KAAMA,QAAQ,CAACO,CAAD,CAAUwG,CAAV,CAAgBlK,CAAhB,CAAuB,CACnC,GAAIyC,CAAA,CAAUzC,CAAV,CAAJ,CACE0D,CAAA,CAAQwG,CAAR,CAAA,CAAgBlK,CADlB,KAGE,OAAO0D,EAAA,CAAQwG,CAAR,CAJ0B,CApE/B,CA4EN4zB,KAAO,QAAQ,EAAG,CAIhBm+B,QAASA,EAAO,CAACv4D,CAAD,CAAU1D,CAAV,CAAiB,CAC/B,GAAIwC,CAAA,CAAYxC,CAAZ,CAAJ,CAAwB,CACtB,IAAIwI,EAAW9E,CAAA8E,SACf;MAl0CgB2T,EAk0CT,GAAC3T,CAAD,EAAmCA,CAAnC,GAAgDC,EAAhD,CAAkE/E,CAAA4Z,YAAlE,CAAwF,EAFzE,CAIxB5Z,CAAA4Z,YAAA,CAAsBtd,CALS,CAHjCi8D,CAAAC,IAAA,CAAc,EACd,OAAOD,EAFS,CAAZ,EA5EA,CAyFNv1D,IAAKA,QAAQ,CAAChD,CAAD,CAAU1D,CAAV,CAAiB,CAC5B,GAAIwC,CAAA,CAAYxC,CAAZ,CAAJ,CAAwB,CACtB,GAAI0D,CAAAy4D,SAAJ,EAA+C,QAA/C,GAAwB14D,EAAA,CAAUC,CAAV,CAAxB,CAAyD,CACvD,IAAIqhB,EAAS,EACb9lB,EAAA,CAAQyE,CAAA0lB,QAAR,CAAyB,QAAQ,CAAC/W,CAAD,CAAS,CACpCA,CAAA+pD,SAAJ,EACEr3C,CAAA1gB,KAAA,CAAYgO,CAAArS,MAAZ,EAA4BqS,CAAAyrB,KAA5B,CAFsC,CAA1C,CAKA,OAAyB,EAAlB,GAAA/Y,CAAAnmB,OAAA,CAAsB,IAAtB,CAA6BmmB,CAPmB,CASzD,MAAOrhB,EAAA1D,MAVe,CAYxB0D,CAAA1D,MAAA,CAAgBA,CAbY,CAzFxB,CAyGNuI,KAAMA,QAAQ,CAAC7E,CAAD,CAAU1D,CAAV,CAAiB,CAC7B,GAAIwC,CAAA,CAAYxC,CAAZ,CAAJ,CACE,MAAO0D,EAAAuZ,UAETkB,GAAA,CAAaza,CAAb,CAAsB,CAAA,CAAtB,CACAA,EAAAuZ,UAAA,CAAoBjd,CALS,CAzGzB,CAiHNmI,MAAOyY,EAjHD,CAAR,CAkHG,QAAQ,CAACva,CAAD,CAAK6D,CAAL,CAAW,CAIpB2D,CAAA2Y,UAAA,CAAiBtc,CAAjB,CAAA,CAAyB,QAAQ,CAAC8qC,CAAD,CAAOC,CAAP,CAAa,CAAA,IACxCp1C,CADwC,CACrCT,CADqC,CAExCi9D,EAAY,IAAAz9D,OAKhB,IAAIyH,CAAJ,GAAWua,EAAX,EACKpe,CAAA,CAA0B,CAAd,EAAC6D,CAAAzH,OAAD,EAAoByH,CAApB,GAA2BuZ,EAA3B,EAA6CvZ,CAA7C,GAAoDia,EAApD,CAAyE00B,CAAzE,CAAgFC,CAA5F,CADL,CACyG,CACvG,GAAIv0C,CAAA,CAASs0C,CAAT,CAAJ,CAAoB,CAGlB,IAAKn1C,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBw8D,CAAhB,CAA2Bx8D,CAAA,EAA3B,CACE,GAAIwG,CAAJ,GAAWmZ,EAAX,CAEEnZ,CAAA,CAAG,IAAA,CAAKxG,CAAL,CAAH,CAAYm1C,CAAZ,CAFF,KAIE,KAAK51C,CAAL,GAAY41C,EAAZ,CACE3uC,CAAA,CAAG,IAAA,CAAKxG,CAAL,CAAH;AAAYT,CAAZ,CAAiB41C,CAAA,CAAK51C,CAAL,CAAjB,CAKN,OAAO,KAdW,CAkBdY,CAAAA,CAAQqG,CAAA61D,IAERt7D,EAAAA,CAAM4B,CAAA,CAAYxC,CAAZ,CAAD,CAAuBg8B,IAAAixB,IAAA,CAASoP,CAAT,CAAoB,CAApB,CAAvB,CAAgDA,CACzD,KAAS17D,CAAT,CAAa,CAAb,CAAgBA,CAAhB,CAAoBC,CAApB,CAAwBD,CAAA,EAAxB,CAA6B,CAC3B,IAAIwxB,EAAY9rB,CAAA,CAAG,IAAA,CAAK1F,CAAL,CAAH,CAAYq0C,CAAZ,CAAkBC,CAAlB,CAChBj1C,EAAA,CAAQA,CAAA,CAAQA,CAAR,CAAgBmyB,CAAhB,CAA4BA,CAFT,CAI7B,MAAOnyB,EA1B8F,CA8BvG,IAAKH,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBw8D,CAAhB,CAA2Bx8D,CAAA,EAA3B,CACEwG,CAAA,CAAG,IAAA,CAAKxG,CAAL,CAAH,CAAYm1C,CAAZ,CAAkBC,CAAlB,CAGF,OAAO,KA1CmC,CAJ1B,CAlHtB,CA8OAh2C,EAAA,CAAQ,CACNs8D,WAAYl9C,EADN,CAGNrR,GAAIsvD,QAAiB,CAAC54D,CAAD,CAAUgb,CAAV,CAAgBrY,CAAhB,CAAoBsY,CAApB,CAAiC,CACpD,GAAIlc,CAAA,CAAUkc,CAAV,CAAJ,CAA4B,KAAMb,GAAA,CAAa,QAAb,CAAN,CAG5B,GAAK5B,EAAA,CAAkBxY,CAAlB,CAAL,CAAA,CAIIkb,CAAAA,CAAeC,EAAA,CAAmBnb,CAAnB,CAA4B,CAAA,CAA5B,CACnB,KAAI8J,EAASoR,CAAApR,OAAb,CACIsR,EAASF,CAAAE,OAERA,EAAL,GACEA,CADF,CACWF,CAAAE,OADX,CACiC2C,EAAA,CAAmB/d,CAAnB,CAA4B8J,CAA5B,CADjC,CAKI+uD,EAAAA,CAA6B,CAArB,EAAA79C,CAAA3a,QAAA,CAAa,GAAb,CAAA,CAAyB2a,CAAAlb,MAAA,CAAW,GAAX,CAAzB,CAA2C,CAACkb,CAAD,CAiBvD,KAhBA,IAAI7e,EAAI08D,CAAA39D,OAAR,CAEI49D,EAAaA,QAAQ,CAAC99C,CAAD,CAAO+D,CAAP,CAA8Bg6C,CAA9B,CAA+C,CACtE,IAAI16C,EAAWvU,CAAA,CAAOkR,CAAP,CAEVqD,EAAL,GACEA,CAEA,CAFWvU,CAAA,CAAOkR,CAAP,CAEX,CAF0B,EAE1B,CADAqD,CAAAU,sBACA,CADiCA,CACjC,CAAa,UAAb,GAAI/D,CAAJ,EAA4B+9C,CAA5B,EACqB/4D,CA/uBvBonC,iBAAA,CA+uBgCpsB,CA/uBhC,CA+uBsCI,CA/uBtC,CAAmC,CAAA,CAAnC,CA2uBA,CAQAiD,EAAA1d,KAAA,CAAcgC,CAAd,CAXsE,CAcxE,CAAOxG,CAAA,EAAP,CAAA,CACE6e,CACA,CADO69C,CAAA,CAAM18D,CAAN,CACP,CAAIqf,EAAA,CAAgBR,CAAhB,CAAJ,EACE89C,CAAA,CAAWt9C,EAAA,CAAgBR,CAAhB,CAAX,CAAkCkE,EAAlC,CACA;AAAA45C,CAAA,CAAW99C,CAAX,CAAiBtgB,CAAjB,CAA4B,CAAA,CAA5B,CAFF,EAIEo+D,CAAA,CAAW99C,CAAX,CApCJ,CAJoD,CAHhD,CAgDNoN,IAAKrN,EAhDC,CAkDNi+C,IAAKA,QAAQ,CAACh5D,CAAD,CAAUgb,CAAV,CAAgBrY,CAAhB,CAAoB,CAC/B3C,CAAA,CAAU/E,CAAA,CAAO+E,CAAP,CAKVA,EAAAsJ,GAAA,CAAW0R,CAAX,CAAiBi+C,QAASA,EAAI,EAAG,CAC/Bj5D,CAAAooB,IAAA,CAAYpN,CAAZ,CAAkBrY,CAAlB,CACA3C,EAAAooB,IAAA,CAAYpN,CAAZ,CAAkBi+C,CAAlB,CAF+B,CAAjC,CAIAj5D,EAAAsJ,GAAA,CAAW0R,CAAX,CAAiBrY,CAAjB,CAV+B,CAlD3B,CA+DNy0B,YAAaA,QAAQ,CAACp3B,CAAD,CAAUk5D,CAAV,CAAuB,CAAA,IACtC94D,CADsC,CAC/B/B,EAAS2B,CAAAga,WACpBS,GAAA,CAAaza,CAAb,CACAzE,EAAA,CAAQ,IAAI4O,CAAJ,CAAW+uD,CAAX,CAAR,CAAiC,QAAQ,CAAC15D,CAAD,CAAO,CAC1CY,CAAJ,CACE/B,CAAA86D,aAAA,CAAoB35D,CAApB,CAA0BY,CAAA+K,YAA1B,CADF,CAGE9M,CAAA4b,aAAA,CAAoBza,CAApB,CAA0BQ,CAA1B,CAEFI,EAAA,CAAQZ,CANsC,CAAhD,CAH0C,CA/DtC,CA4ENsyC,SAAUA,QAAQ,CAAC9xC,CAAD,CAAU,CAC1B,IAAI8xC,EAAW,EACfv2C,EAAA,CAAQyE,CAAA0Z,WAAR,CAA4B,QAAQ,CAAC1Z,CAAD,CAAU,CA3iD1ByY,CA4iDlB,GAAIzY,CAAA8E,SAAJ,EACEgtC,CAAAnxC,KAAA,CAAcX,CAAd,CAF0C,CAA9C,CAKA,OAAO8xC,EAPmB,CA5EtB,CAsFNva,SAAUA,QAAQ,CAACv3B,CAAD,CAAU,CAC1B,MAAOA,EAAAo5D,gBAAP,EAAkCp5D,CAAA0Z,WAAlC,EAAwD,EAD9B,CAtFtB,CA0FN9U,OAAQA,QAAQ,CAAC5E,CAAD,CAAUR,CAAV,CAAgB,CAC9B,IAAIsF,EAAW9E,CAAA8E,SACf,IAzjDoB2T,CAyjDpB,GAAI3T,CAAJ,EApjD8BkY,EAojD9B,GAAsClY,CAAtC,CAAA,CAEAtF,CAAA,CAAO,IAAI2K,CAAJ,CAAW3K,CAAX,CAEP,KAASrD,IAAAA,EAAI,CAAJA,CAAOY,EAAKyC,CAAAtE,OAArB,CAAkCiB,CAAlC,CAAsCY,CAAtC,CAA0CZ,CAAA,EAA1C,CAEE6D,CAAAgZ,YAAA,CADYxZ,CAAAu9C,CAAK5gD,CAAL4gD,CACZ,CANF,CAF8B,CA1F1B;AAsGNsc,QAASA,QAAQ,CAACr5D,CAAD,CAAUR,CAAV,CAAgB,CAC/B,GApkDoBiZ,CAokDpB,GAAIzY,CAAA8E,SAAJ,CAA4C,CAC1C,IAAI1E,EAAQJ,CAAA2Z,WACZpe,EAAA,CAAQ,IAAI4O,CAAJ,CAAW3K,CAAX,CAAR,CAA0B,QAAQ,CAACu9C,CAAD,CAAQ,CACxC/8C,CAAAm5D,aAAA,CAAqBpc,CAArB,CAA4B38C,CAA5B,CADwC,CAA1C,CAF0C,CADb,CAtG3B,CA+GNgZ,KAAMA,QAAQ,CAACpZ,CAAD,CAAUs5D,CAAV,CAAoB,CAChCx/C,EAAA,CAAe9Z,CAAf,CAAwB/E,CAAA,CAAOq+D,CAAP,CAAAnc,GAAA,CAAoB,CAApB,CAAAv/C,MAAA,EAAA,CAA+B,CAA/B,CAAxB,CADgC,CA/G5B,CAmHNusB,OAAQ/M,EAnHF,CAqHNm8C,OAAQA,QAAQ,CAACv5D,CAAD,CAAU,CACxBod,EAAA,CAAapd,CAAb,CAAsB,CAAA,CAAtB,CADwB,CArHpB,CAyHNw5D,MAAOA,QAAQ,CAACx5D,CAAD,CAAUy5D,CAAV,CAAsB,CAAA,IAC/Br5D,EAAQJ,CADuB,CACd3B,EAAS2B,CAAAga,WAC9By/C,EAAA,CAAa,IAAItvD,CAAJ,CAAWsvD,CAAX,CAEb,KAJmC,IAI1Bt9D,EAAI,CAJsB,CAInBY,EAAK08D,CAAAv+D,OAArB,CAAwCiB,CAAxC,CAA4CY,CAA5C,CAAgDZ,CAAA,EAAhD,CAAqD,CACnD,IAAIqD,EAAOi6D,CAAA,CAAWt9D,CAAX,CACXkC,EAAA86D,aAAA,CAAoB35D,CAApB,CAA0BY,CAAA+K,YAA1B,CACA/K,EAAA,CAAQZ,CAH2C,CAJlB,CAzH/B,CAoINmgB,SAAUnD,EApIJ,CAqINoD,YAAaxD,EArIP,CAuINs9C,YAAaA,QAAQ,CAAC15D,CAAD,CAAUmc,CAAV,CAAoBw9C,CAApB,CAA+B,CAC9Cx9C,CAAJ,EACE5gB,CAAA,CAAQ4gB,CAAArc,MAAA,CAAe,GAAf,CAAR,CAA6B,QAAQ,CAACmuB,CAAD,CAAY,CAC/C,IAAI2rC,EAAiBD,CACjB76D,EAAA,CAAY86D,CAAZ,CAAJ,GACEA,CADF,CACmB,CAAC19C,EAAA,CAAelc,CAAf,CAAwBiuB,CAAxB,CADpB,CAGA,EAAC2rC,CAAA,CAAiBp9C,EAAjB,CAAkCJ,EAAnC,EAAsDpc,CAAtD,CAA+DiuB,CAA/D,CAL+C,CAAjD,CAFgD,CAvI9C,CAmJN5vB,OAAQA,QAAQ,CAAC2B,CAAD,CAAU,CAExB,MAAO,CADH3B,CACG,CADM2B,CAAAga,WACN;AA7mDuBgD,EA6mDvB,GAAU3e,CAAAyG,SAAV,CAA4DzG,CAA5D,CAAqE,IAFpD,CAnJpB,CAwJNmhD,KAAMA,QAAQ,CAACx/C,CAAD,CAAU,CACtB,MAAOA,EAAA65D,mBADe,CAxJlB,CA4JNl6D,KAAMA,QAAQ,CAACK,CAAD,CAAUmc,CAAV,CAAoB,CAChC,MAAInc,EAAA85D,qBAAJ,CACS95D,CAAA85D,qBAAA,CAA6B39C,CAA7B,CADT,CAGS,EAJuB,CA5J5B,CAoKNve,MAAO4c,EApKD,CAsKNtQ,eAAgBA,QAAQ,CAAClK,CAAD,CAAUie,CAAV,CAAiB87C,CAAjB,CAAkC,CAAA,IAEpDC,CAFoD,CAE1BC,CAF0B,CAGpDva,EAAYzhC,CAAAjD,KAAZ0kC,EAA0BzhC,CAH0B,CAIpD/C,EAAeC,EAAA,CAAmBnb,CAAnB,CAInB,IAFIqe,CAEJ,EAHIvU,CAGJ,CAHaoR,CAGb,EAH6BA,CAAApR,OAG7B,GAFyBA,CAAA,CAAO41C,CAAP,CAEzB,CAEEsa,CAmBA,CAnBa,CACX/pB,eAAgBA,QAAQ,EAAG,CAAE,IAAA7xB,iBAAA,CAAwB,CAAA,CAA1B,CADhB,CAEXF,mBAAoBA,QAAQ,EAAG,CAAE,MAAiC,CAAA,CAAjC,GAAO,IAAAE,iBAAT,CAFpB,CAGXK,yBAA0BA,QAAQ,EAAG,CAAE,IAAAF,4BAAA,CAAmC,CAAA,CAArC,CAH1B,CAIXK,8BAA+BA,QAAQ,EAAG,CAAE,MAA4C,CAAA,CAA5C,GAAO,IAAAL,4BAAT,CAJ/B;AAKXI,gBAAiBngB,CALN,CAMXwc,KAAM0kC,CANK,CAOXvgC,OAAQnf,CAPG,CAmBb,CARIie,CAAAjD,KAQJ,GAPEg/C,CAOF,CAPen8D,CAAA,CAAOm8D,CAAP,CAAmB/7C,CAAnB,CAOf,EAHAi8C,CAGA,CAHet4D,EAAA,CAAYyc,CAAZ,CAGf,CAFA47C,CAEA,CAFcF,CAAA,CAAkB,CAACC,CAAD,CAAA13D,OAAA,CAAoBy3D,CAApB,CAAlB,CAAyD,CAACC,CAAD,CAEvE,CAAAz+D,CAAA,CAAQ2+D,CAAR,CAAsB,QAAQ,CAACv3D,CAAD,CAAK,CAC5Bq3D,CAAAp7C,8BAAA,EAAL,EACEjc,CAAAG,MAAA,CAAS9C,CAAT,CAAkBi6D,CAAlB,CAF+B,CAAnC,CA7BsD,CAtKpD,CAAR,CA0MG,QAAQ,CAACt3D,CAAD,CAAK6D,CAAL,CAAW,CAIpB2D,CAAA2Y,UAAA,CAAiBtc,CAAjB,CAAA,CAAyB,QAAQ,CAAC8qC,CAAD,CAAOC,CAAP,CAAa4oB,CAAb,CAAmB,CAGlD,IAFA,IAAI79D,CAAJ,CAESH,EAAI,CAFb,CAEgBY,EAAK,IAAA7B,OAArB,CAAkCiB,CAAlC,CAAsCY,CAAtC,CAA0CZ,CAAA,EAA1C,CACM2C,CAAA,CAAYxC,CAAZ,CAAJ,EACEA,CACA,CADQqG,CAAA,CAAG,IAAA,CAAKxG,CAAL,CAAH,CAAYm1C,CAAZ,CAAkBC,CAAlB,CAAwB4oB,CAAxB,CACR,CAAIp7D,CAAA,CAAUzC,CAAV,CAAJ,GAEEA,CAFF,CAEUrB,CAAA,CAAOqB,CAAP,CAFV,CAFF,EAOEie,EAAA,CAAeje,CAAf,CAAsBqG,CAAA,CAAG,IAAA,CAAKxG,CAAL,CAAH,CAAYm1C,CAAZ,CAAkBC,CAAlB,CAAwB4oB,CAAxB,CAAtB,CAGJ,OAAOp7D,EAAA,CAAUzC,CAAV,CAAA,CAAmBA,CAAnB,CAA2B,IAdgB,CAkBpD6N,EAAA2Y,UAAArgB,KAAA,CAAwB0H,CAAA2Y,UAAAxZ,GACxBa,EAAA2Y,UAAAs3C,OAAA,CAA0BjwD,CAAA2Y,UAAAsF,IAvBN,CA1MtB,CAqSApI,GAAA8C,UAAA,CAAoB,CAMlB3C,IAAKA,QAAQ,CAACzkB,CAAD,CAAMY,CAAN,CAAa,CACxB,IAAA,CAAKujB,EAAA,CAAQnkB,CAAR,CAAa,IAAAa,QAAb,CAAL,CAAA,CAAmCD,CADX,CANR,CAclBmM,IAAKA,QAAQ,CAAC/M,CAAD,CAAM,CACjB,MAAO,KAAA,CAAKmkB,EAAA,CAAQnkB,CAAR,CAAa,IAAAa,QAAb,CAAL,CADU,CAdD,CAsBlB4tB,OAAQA,QAAQ,CAACzuB,CAAD,CAAM,CACpB,IAAIY;AAAQ,IAAA,CAAKZ,CAAL,CAAWmkB,EAAA,CAAQnkB,CAAR,CAAa,IAAAa,QAAb,CAAX,CACZ,QAAO,IAAA,CAAKb,CAAL,CACP,OAAOY,EAHa,CAtBJ,CA6BpB,KAAIyb,GAAoB,CAAC,QAAQ,EAAG,CAClC,IAAAwH,KAAA,CAAY,CAAC,QAAQ,EAAG,CACtB,MAAOS,GADe,CAAZ,CADsB,CAAZ,CAAxB,CAoEIO,GAAY,cApEhB,CAqEIC,GAAU,yBArEd,CAsEI65C,GAAe,GAtEnB,CAuEIC,GAAS,sBAvEb,CAwEIh6C,GAAiB,kCAxErB,CAyEI/U,GAAkB5Q,CAAA,CAAO,WAAP,CAszBtB2M,GAAAqb,WAAA,CApyBAM,QAAiB,CAACtgB,CAAD,CAAKiE,CAAL,CAAeJ,CAAf,CAAqB,CAAA,IAChCkc,CAIJ,IAAkB,UAAlB,GAAI,MAAO/f,EAAX,CACE,IAAM,EAAA+f,CAAA,CAAU/f,CAAA+f,QAAV,CAAN,CAA6B,CAC3BA,CAAA,CAAU,EACV,IAAI/f,CAAAzH,OAAJ,CAAe,CACb,GAAI0L,CAAJ,CAIE,KAHK5L,EAAA,CAASwL,CAAT,CAGC,EAHkBA,CAGlB,GAFJA,CAEI,CAFG7D,CAAA6D,KAEH,EAFcia,EAAA,CAAO9d,CAAP,CAEd,EAAA4I,EAAA,CAAgB,UAAhB,CACyE/E,CADzE,CAAN,CAGF+zD,CAAA,CAAUn6C,EAAA,CAAYzd,CAAZ,CACVpH,EAAA,CAAQg/D,CAAA,CAAQ,CAAR,CAAAz6D,MAAA,CAAiBu6D,EAAjB,CAAR,CAAwC,QAAQ,CAAChwD,CAAD,CAAM,CACpDA,CAAA1G,QAAA,CAAY22D,EAAZ,CAAoB,QAAQ,CAACrgB,CAAD,CAAMugB,CAAN,CAAkBh0D,CAAlB,CAAwB,CAClDkc,CAAA/hB,KAAA,CAAa6F,CAAb,CADkD,CAApD,CADoD,CAAtD,CATa,CAef7D,CAAA+f,QAAA,CAAaA,CAjBc,CAA7B,CADF,IAoBW3nB,EAAA,CAAQ4H,CAAR,CAAJ;CACLu6C,CAEA,CAFOv6C,CAAAzH,OAEP,CAFmB,CAEnB,CADAqP,EAAA,CAAY5H,CAAA,CAAGu6C,CAAH,CAAZ,CAAsB,IAAtB,CACA,CAAAx6B,CAAA,CAAU/f,CAAA7E,MAAA,CAAS,CAAT,CAAYo/C,CAAZ,CAHL,EAKL3yC,EAAA,CAAY5H,CAAZ,CAAgB,IAAhB,CAAsB,CAAA,CAAtB,CAEF,OAAO+f,EAhC6B,CAqjCtC,KAAI+3C,GAAiB9/D,CAAA,CAAO,UAAP,CAArB,CAqDIgZ,GAA0BA,QAAQ,EAAG,CACvC,IAAA4L,KAAA,CAAYC,QAAQ,EAAG,EADgB,CArDzC,CA2DI3L,GAA6BA,QAAQ,EAAG,CAC1C,IAAI4rC,EAAkB,IAAIz/B,EAA1B,CACI06C,EAAqB,EAEzB,KAAAn7C,KAAA,CAAY,CAAC,iBAAD,CAAoB,YAApB,CACP,QAAQ,CAACzL,CAAD,CAAoBsC,CAApB,CAAgC,CA4B3CukD,QAASA,EAAU,CAAC/yD,CAAD,CAAO8X,CAAP,CAAgBpjB,CAAhB,CAAuB,CACxC,IAAI86C,EAAU,CAAA,CACV13B,EAAJ,GACEA,CAEA,CAFU1kB,CAAA,CAAS0kB,CAAT,CAAA,CAAoBA,CAAA5f,MAAA,CAAc,GAAd,CAApB,CACA/E,CAAA,CAAQ2kB,CAAR,CAAA,CAAmBA,CAAnB,CAA6B,EACvC,CAAAnkB,CAAA,CAAQmkB,CAAR,CAAiB,QAAQ,CAACuO,CAAD,CAAY,CAC/BA,CAAJ,GACEmpB,CACA,CADU,CAAA,CACV,CAAAxvC,CAAA,CAAKqmB,CAAL,CAAA,CAAkB3xB,CAFpB,CADmC,CAArC,CAHF,CAUA,OAAO86C,EAZiC,CAe1CwjB,QAASA,EAAqB,EAAG,CAC/Br/D,CAAA,CAAQm/D,CAAR,CAA4B,QAAQ,CAAC16D,CAAD,CAAU,CAC5C,IAAI4H,EAAO63C,CAAAh3C,IAAA,CAAoBzI,CAApB,CACX,IAAI4H,CAAJ,CAAU,CACR,IAAIizD,EAAWt1C,EAAA,CAAavlB,CAAAN,KAAA,CAAa,OAAb,CAAb,CAAf,CACIg+B,EAAQ,EADZ,CAEIE,EAAW,EACfriC,EAAA,CAAQqM,CAAR,CAAc,QAAQ,CAACk6B,CAAD,CAAS7T,CAAT,CAAoB,CAEpC6T,CAAJ,GADeriB,CAAE,CAAAo7C,CAAA,CAAS5sC,CAAT,CACjB,GACM6T,CAAJ,CACEpE,CADF,GACYA,CAAAxiC,OAAA,CAAe,GAAf,CAAqB,EADjC,EACuC+yB,CADvC,CAGE2P,CAHF,GAGeA,CAAA1iC,OAAA,CAAkB,GAAlB,CAAwB,EAHvC,EAG6C+yB,CAJ/C,CAFwC,CAA1C,CAWA1yB,EAAA,CAAQyE,CAAR,CAAiB,QAAQ,CAAC8kB,CAAD,CAAM,CAC7B4Y,CAAA;AAAYlhB,EAAA,CAAesI,CAAf,CAAoB4Y,CAApB,CACZE,EAAA,EAAYxhB,EAAA,CAAkB0I,CAAlB,CAAuB8Y,CAAvB,CAFiB,CAA/B,CAIA6hB,EAAAt1B,OAAA,CAAuBnqB,CAAvB,CAnBQ,CAFkC,CAA9C,CAwBA06D,EAAAx/D,OAAA,CAA4B,CAzBG,CA1CjC,MAAO,CACLuyB,QAASjvB,CADJ,CAEL8K,GAAI9K,CAFC,CAGL4pB,IAAK5pB,CAHA,CAILs8D,IAAKt8D,CAJA,CAMLmC,KAAMA,QAAQ,CAACX,CAAD,CAAUie,CAAV,CAAiByH,CAAjB,CAA0Bq1C,CAA1B,CAAwC,CACpDA,CAAA,EAAuBA,CAAA,EAEvBr1C,EAAA,CAAUA,CAAV,EAAqB,EACrBA,EAAAs1C,KAAA,EAAuBh7D,CAAAi4D,IAAA,CAAYvyC,CAAAs1C,KAAZ,CACvBt1C,EAAAu1C,GAAA,EAAuBj7D,CAAAi4D,IAAA,CAAYvyC,CAAAu1C,GAAZ,CAEvB,IAAIv1C,CAAA/F,SAAJ,EAAwB+F,CAAA9F,YAAxB,CAgEF,GA/DwCD,CA+DpC,CA/DoC+F,CAAA/F,SA+DpC,CA/DsDC,CA+DtD,CA/DsD8F,CAAA9F,YA+DtD,CALAhY,CAKA,CALO63C,CAAAh3C,IAAA,CA1DoBzI,CA0DpB,CAKP,EALuC,EAKvC,CAHAk7D,CAGA,CAHeP,CAAA,CAAW/yD,CAAX,CAAiBuzD,CAAjB,CAAsB,CAAA,CAAtB,CAGf,CAFAC,CAEA,CAFiBT,CAAA,CAAW/yD,CAAX,CAAiBuiB,CAAjB,CAAyB,CAAA,CAAzB,CAEjB,CAAA+wC,CAAA,EAAgBE,CAApB,CAEE3b,CAAAt/B,IAAA,CAjE6BngB,CAiE7B,CAA6B4H,CAA7B,CAGA,CAFA8yD,CAAA/5D,KAAA,CAlE6BX,CAkE7B,CAEA,CAAkC,CAAlC,GAAI06D,CAAAx/D,OAAJ,EACEkb,CAAAohC,aAAA,CAAwBojB,CAAxB,CAlEES,EAAAA,CAAS,IAAIvnD,CAIjBunD,EAAAC,SAAA,EACA,OAAOD,EAhB6C,CANjD,CADoC,CADjC,CAJ8B,CA3D5C,CAuKI9nD,GAAmB,CAAC,UAAD,CAAa,QAAQ,CAACpM,CAAD,CAAW,CACrD,IAAIyE,EAAW,IAEf,KAAA2vD,uBAAA,CAA8BpgE,MAAAoD,OAAA,CAAc,IAAd,CAyC9B,KAAAmhC,SAAA,CAAgBC,QAAQ,CAACn5B,CAAD,CAAO8E,CAAP,CAAgB,CACtC,GAAI9E,CAAJ,EAA+B,GAA/B,GAAYA,CAAA3E,OAAA,CAAY,CAAZ,CAAZ,CACE,KAAM44D,GAAA,CAAe,SAAf;AAAmFj0D,CAAnF,CAAN,CAGF,IAAI9K,EAAM8K,CAAN9K,CAAa,YACjBkQ,EAAA2vD,uBAAA,CAAgC/0D,CAAAqhB,OAAA,CAAY,CAAZ,CAAhC,CAAA,CAAkDnsB,CAClDyL,EAAAmE,QAAA,CAAiB5P,CAAjB,CAAsB4P,CAAtB,CAPsC,CAwBxC,KAAAkwD,gBAAA,CAAuBC,QAAQ,CAAC17B,CAAD,CAAa,CAC1C,GAAyB,CAAzB,GAAIhiC,SAAA7C,OAAJ,GACE,IAAAwgE,kBADF,CAC4B37B,CAAD,WAAuBviC,OAAvB,CAAiCuiC,CAAjC,CAA8C,IADzE,GAGwB47B,4BAChBp8D,KAAA,CAAmB,IAAAm8D,kBAAA78D,SAAA,EAAnB,CAJR,CAKM,KAAM47D,GAAA,CAAe,SAAf,CA/OWmB,YA+OX,CAAN,CAKN,MAAO,KAAAF,kBAXmC,CAc5C,KAAAn8C,KAAA,CAAY,CAAC,gBAAD,CAAmB,QAAQ,CAAC3L,CAAD,CAAiB,CACtDioD,QAASA,EAAS,CAAC77D,CAAD,CAAU87D,CAAV,CAAyBC,CAAzB,CAAuC,CAIvD,GAAIA,CAAJ,CAAkB,CAChB,IAAIC,CAlPyB,EAAA,CAAA,CACnC,IAAS7/D,CAAT,CAAa,CAAb,CAAgBA,CAAhB,CAiPyC4/D,CAjPrB7gE,OAApB,CAAoCiB,CAAA,EAApC,CAAyC,CACvC,IAAI2oB,EAgPmCi3C,CAhP7B,CAAQ5/D,CAAR,CACV,IAfe8/D,CAef,GAAIn3C,CAAAhgB,SAAJ,CAAmC,CACjC,CAAA,CAAOggB,CAAP,OAAA,CADiC,CAFI,CADN,CAAA,CAAA,IAAA,EAAA,CAmPzBk3C,CAAAA,CAAJ,EAAkBA,CAAAhiD,WAAlB,EAA2CgiD,CAAAE,uBAA3C;CACEH,CADF,CACiB,IADjB,CAFgB,CAMlBA,CAAA,CAAeA,CAAAvC,MAAA,CAAmBx5D,CAAnB,CAAf,CAA6C87D,CAAAzC,QAAA,CAAsBr5D,CAAtB,CAVU,CAgCzD,MAAO,CA8BLsJ,GAAIsK,CAAAtK,GA9BC,CAwDL8e,IAAKxU,CAAAwU,IAxDA,CA0EL0yC,IAAKlnD,CAAAknD,IA1EA,CAyGLrtC,QAAS7Z,CAAA6Z,QAzGJ,CAmHL7E,OAAQA,QAAQ,CAACyyC,CAAD,CAAS,CACvBA,CAAAc,IAAA,EAAcd,CAAAc,IAAA,EADS,CAnHpB,CAyILC,MAAOA,QAAQ,CAACp8D,CAAD,CAAU3B,CAAV,CAAkBm7D,CAAlB,CAAyB9zC,CAAzB,CAAkC,CAC/CrnB,CAAA,CAASA,CAAT,EAAmBpD,CAAA,CAAOoD,CAAP,CACnBm7D,EAAA,CAAQA,CAAR,EAAiBv+D,CAAA,CAAOu+D,CAAP,CACjBn7D,EAAA,CAASA,CAAT,EAAmBm7D,CAAAn7D,OAAA,EACnBw9D,EAAA,CAAU77D,CAAV,CAAmB3B,CAAnB,CAA2Bm7D,CAA3B,CACA,OAAO5lD,EAAAjT,KAAA,CAAoBX,CAApB,CAA6B,OAA7B,CAAsCylB,EAAA,CAAsBC,CAAtB,CAAtC,CALwC,CAzI5C,CAmKL22C,KAAMA,QAAQ,CAACr8D,CAAD,CAAU3B,CAAV,CAAkBm7D,CAAlB,CAAyB9zC,CAAzB,CAAkC,CAC9CrnB,CAAA,CAASA,CAAT,EAAmBpD,CAAA,CAAOoD,CAAP,CACnBm7D,EAAA,CAAQA,CAAR,EAAiBv+D,CAAA,CAAOu+D,CAAP,CACjBn7D,EAAA,CAASA,CAAT,EAAmBm7D,CAAAn7D,OAAA,EACnBw9D,EAAA,CAAU77D,CAAV,CAAmB3B,CAAnB,CAA2Bm7D,CAA3B,CACA,OAAO5lD,EAAAjT,KAAA,CAAoBX,CAApB,CAA6B,MAA7B,CAAqCylB,EAAA,CAAsBC,CAAtB,CAArC,CALuC,CAnK3C,CAwLL42C,MAAOA,QAAQ,CAACt8D,CAAD,CAAU0lB,CAAV,CAAmB,CAChC,MAAO9R,EAAAjT,KAAA,CAAoBX,CAApB,CAA6B,OAA7B,CAAsCylB,EAAA,CAAsBC,CAAtB,CAAtC,CAAsE,QAAQ,EAAG,CACtF1lB,CAAAmqB,OAAA,EADsF,CAAjF,CADyB,CAxL7B,CAgNLxK,SAAUA,QAAQ,CAAC3f,CAAD,CAAUiuB,CAAV,CAAqBvI,CAArB,CAA8B,CAC9CA,CAAA,CAAUD,EAAA,CAAsBC,CAAtB,CACVA,EAAA/F,SAAA,CAAmB0F,EAAA,CAAaK,CAAA62C,SAAb,CAA+BtuC,CAA/B,CACnB,OAAOra,EAAAjT,KAAA,CAAoBX,CAApB,CAA6B,UAA7B,CAAyC0lB,CAAzC,CAHuC,CAhN3C,CAwOL9F,YAAaA,QAAQ,CAAC5f,CAAD;AAAUiuB,CAAV,CAAqBvI,CAArB,CAA8B,CACjDA,CAAA,CAAUD,EAAA,CAAsBC,CAAtB,CACVA,EAAA9F,YAAA,CAAsByF,EAAA,CAAaK,CAAA9F,YAAb,CAAkCqO,CAAlC,CACtB,OAAOra,EAAAjT,KAAA,CAAoBX,CAApB,CAA6B,aAA7B,CAA4C0lB,CAA5C,CAH0C,CAxO9C,CAiQL+qC,SAAUA,QAAQ,CAACzwD,CAAD,CAAUm7D,CAAV,CAAehxC,CAAf,CAAuBzE,CAAvB,CAAgC,CAChDA,CAAA,CAAUD,EAAA,CAAsBC,CAAtB,CACVA,EAAA/F,SAAA,CAAmB0F,EAAA,CAAaK,CAAA/F,SAAb,CAA+Bw7C,CAA/B,CACnBz1C,EAAA9F,YAAA,CAAsByF,EAAA,CAAaK,CAAA9F,YAAb,CAAkCuK,CAAlC,CACtB,OAAOvW,EAAAjT,KAAA,CAAoBX,CAApB,CAA6B,UAA7B,CAAyC0lB,CAAzC,CAJyC,CAjQ7C,CA0SL82C,QAASA,QAAQ,CAACx8D,CAAD,CAAUg7D,CAAV,CAAgBC,CAAhB,CAAoBhtC,CAApB,CAA+BvI,CAA/B,CAAwC,CACvDA,CAAA,CAAUD,EAAA,CAAsBC,CAAtB,CACVA,EAAAs1C,KAAA,CAAet1C,CAAAs1C,KAAA,CAAen9D,CAAA,CAAO6nB,CAAAs1C,KAAP,CAAqBA,CAArB,CAAf,CAA4CA,CAC3Dt1C,EAAAu1C,GAAA,CAAev1C,CAAAu1C,GAAA,CAAep9D,CAAA,CAAO6nB,CAAAu1C,GAAP,CAAmBA,CAAnB,CAAf,CAA4CA,CAG3Dv1C,EAAA+2C,YAAA,CAAsBp3C,EAAA,CAAaK,CAAA+2C,YAAb,CADVxuC,CACU,EADG,mBACH,CACtB,OAAOra,EAAAjT,KAAA,CAAoBX,CAApB,CAA6B,SAA7B,CAAwC0lB,CAAxC,CAPgD,CA1SpD,CAjC+C,CAA5C,CAlFyC,CAAhC,CAvKvB,CAilBIzR,GAAmCA,QAAQ,EAAG,CAChD,IAAAsL,KAAA,CAAY,CAAC,OAAD,CAAU,QAAQ,CAAC7H,CAAD,CAAQ,CAGpCglD,QAASA,EAAW,CAAC/5D,CAAD,CAAK,CACvBg6D,CAAAh8D,KAAA,CAAegC,CAAf,CACuB,EAAvB,CAAIg6D,CAAAzhE,OAAJ,EACAwc,CAAA,CAAM,QAAQ,EAAG,CACf,IAAS,IAAAvb,EAAI,CAAb,CAAgBA,CAAhB,CAAoBwgE,CAAAzhE,OAApB,CAAsCiB,CAAA,EAAtC,CACEwgE,CAAA,CAAUxgE,CAAV,CAAA,EAEFwgE;CAAA,CAAY,EAJG,CAAjB,CAHuB,CAFzB,IAAIA,EAAY,EAahB,OAAO,SAAQ,EAAG,CAChB,IAAIC,EAAS,CAAA,CACbF,EAAA,CAAY,QAAQ,EAAG,CACrBE,CAAA,CAAS,CAAA,CADY,CAAvB,CAGA,OAAO,SAAQ,CAACt1C,CAAD,CAAW,CACxBs1C,CAAA,CAASt1C,CAAA,EAAT,CAAsBo1C,CAAA,CAAYp1C,CAAZ,CADE,CALV,CAdkB,CAA1B,CADoC,CAjlBlD,CA4mBIvT,GAAiCA,QAAQ,EAAG,CAC9C,IAAAwL,KAAA,CAAY,CAAC,IAAD,CAAO,UAAP,CAAmB,mBAAnB,CAAwC,WAAxC,CAAqD,UAArD,CACP,QAAQ,CAACjJ,CAAD,CAAOQ,CAAP,CAAmB9C,CAAnB,CAAwCQ,CAAxC,CAAqD8C,CAArD,CAA+D,CA0C1EulD,QAASA,EAAa,CAAC5/C,CAAD,CAAO,CAC3B,IAAA6/C,QAAA,CAAa7/C,CAAb,CAEA,KAAI8/C,EAAU/oD,CAAA,EAKd,KAAAgpD,eAAA,CAAsB,EACtB,KAAAC,MAAA,CAAaC,QAAQ,CAACv6D,CAAD,CAAK,CACxB,IAAIw6D,EAAM3oD,CAAA,CAAU,CAAV,CAIN2oD,EAAJ,EAAWA,CAAAC,OAAX,CATA9lD,CAAA,CAUc3U,CAVd,CAAa,CAAb,CAAgB,CAAA,CAAhB,CASA,CAGEo6D,CAAA,CAAQp6D,CAAR,CARsB,CAW1B,KAAA06D,OAAA,CAAc,CApBa,CApC7BR,CAAA74B,MAAA,CAAsBs5B,QAAQ,CAACt5B,CAAD,CAAQ1c,CAAR,CAAkB,CAI9Ck4B,QAASA,EAAI,EAAG,CACd,GAAIp/C,CAAJ,GAAc4jC,CAAA9oC,OAAd,CACEosB,CAAA,CAAS,CAAA,CAAT,CADF,KAKA0c,EAAA,CAAM5jC,CAAN,CAAA,CAAa,QAAQ,CAAC8iC,CAAD,CAAW,CACb,CAAA,CAAjB,GAAIA,CAAJ,CACE5b,CAAA,CAAS,CAAA,CAAT,CADF,EAIAlnB,CAAA,EACA,CAAAo/C,CAAA,EALA,CAD8B,CAAhC,CANc,CAHhB,IAAIp/C,EAAQ,CAEZo/C,EAAA,EAH8C,CAqBhDqd,EAAA5iB,IAAA,CAAoBsjB,QAAQ,CAACC,CAAD,CAAUl2C,CAAV,CAAoB,CAO9Cm2C,QAASA,EAAU,CAACv6B,CAAD,CAAW,CAC5BpB,CAAA,CAASA,CAAT,EAAmBoB,CACf,GAAEuH,CAAN;AAAgB+yB,CAAAtiE,OAAhB,EACEosB,CAAA,CAASwa,CAAT,CAH0B,CAN9B,IAAI2I,EAAQ,CAAZ,CACI3I,EAAS,CAAA,CACbvmC,EAAA,CAAQiiE,CAAR,CAAiB,QAAQ,CAACnC,CAAD,CAAS,CAChCA,CAAAn2B,KAAA,CAAYu4B,CAAZ,CADgC,CAAlC,CAH8C,CAsChDZ,EAAA/5C,UAAA,CAA0B,CACxBg6C,QAASA,QAAQ,CAAC7/C,CAAD,CAAO,CACtB,IAAAA,KAAA,CAAYA,CAAZ,EAAoB,EADE,CADA,CAKxBioB,KAAMA,QAAQ,CAACviC,CAAD,CAAK,CAlEK+6D,CAmEtB,GAAI,IAAAL,OAAJ,CACE16D,CAAA,EADF,CAGE,IAAAq6D,eAAAr8D,KAAA,CAAyBgC,CAAzB,CAJe,CALK,CAaxB62C,SAAUh7C,CAbc,CAexBm/D,WAAYA,QAAQ,EAAG,CACrB,GAAKt5B,CAAA,IAAAA,QAAL,CAAmB,CACjB,IAAI3hC,EAAO,IACX,KAAA2hC,QAAA,CAAe/tB,CAAA,CAAG,QAAQ,CAACovB,CAAD,CAAUtC,CAAV,CAAkB,CAC1C1gC,CAAAwiC,KAAA,CAAU,QAAQ,CAACpD,CAAD,CAAS,CACd,CAAA,CAAX,GAAAA,CAAA,CAAmBsB,CAAA,EAAnB,CAA8BsC,CAAA,EADL,CAA3B,CAD0C,CAA7B,CAFE,CAQnB,MAAO,KAAArB,QATc,CAfC,CA2BxB/K,KAAMA,QAAQ,CAACskC,CAAD,CAAiBC,CAAjB,CAAgC,CAC5C,MAAO,KAAAF,WAAA,EAAArkC,KAAA,CAAuBskC,CAAvB,CAAuCC,CAAvC,CADqC,CA3BtB,CA+BxB,QAAS5kB,QAAQ,CAACh6B,CAAD,CAAU,CACzB,MAAO,KAAA0+C,WAAA,EAAA,CAAkB,OAAlB,CAAA,CAA2B1+C,CAA3B,CADkB,CA/BH,CAmCxB,UAAWi6B,QAAQ,CAACj6B,CAAD,CAAU,CAC3B,MAAO,KAAA0+C,WAAA,EAAA,CAAkB,SAAlB,CAAA,CAA6B1+C,CAA7B,CADoB,CAnCL,CAuCxB6+C,MAAOA,QAAQ,EAAG,CACZ,IAAA7gD,KAAA6gD,MAAJ;AACE,IAAA7gD,KAAA6gD,MAAA,EAFc,CAvCM,CA6CxBC,OAAQA,QAAQ,EAAG,CACb,IAAA9gD,KAAA8gD,OAAJ,EACE,IAAA9gD,KAAA8gD,OAAA,EAFe,CA7CK,CAmDxB5B,IAAKA,QAAQ,EAAG,CACV,IAAAl/C,KAAAk/C,IAAJ,EACE,IAAAl/C,KAAAk/C,IAAA,EAEF,KAAA6B,SAAA,CAAc,CAAA,CAAd,CAJc,CAnDQ,CA0DxBp1C,OAAQA,QAAQ,EAAG,CACb,IAAA3L,KAAA2L,OAAJ,EACE,IAAA3L,KAAA2L,OAAA,EAEF,KAAAo1C,SAAA,CAAc,CAAA,CAAd,CAJiB,CA1DK,CAiExB1C,SAAUA,QAAQ,CAACp4B,CAAD,CAAW,CAC3B,IAAIxgC,EAAO,IAjIKu7D,EAkIhB,GAAIv7D,CAAA26D,OAAJ,GACE36D,CAAA26D,OACA,CAnImBa,CAmInB,CAAAx7D,CAAAu6D,MAAA,CAAW,QAAQ,EAAG,CACpBv6D,CAAAs7D,SAAA,CAAc96B,CAAd,CADoB,CAAtB,CAFF,CAF2B,CAjEL,CA2ExB86B,SAAUA,QAAQ,CAAC96B,CAAD,CAAW,CAxILw6B,CAyItB,GAAI,IAAAL,OAAJ,GACE9hE,CAAA,CAAQ,IAAAyhE,eAAR,CAA6B,QAAQ,CAACr6D,CAAD,CAAK,CACxCA,CAAA,CAAGugC,CAAH,CADwC,CAA1C,CAIA,CADA,IAAA85B,eAAA9hE,OACA,CAD6B,CAC7B,CAAA,IAAAmiE,OAAA,CA9IoBK,CAyItB,CAD2B,CA3EL,CAsF1B,OAAOb,EAvJmE,CADhE,CADkC,CA5mBhD,CAoxBIppD,GAA0BA,QAAQ,EAAG,CACvC,IAAA8L,KAAA,CAAY,CAAC,OAAD,CAAU,IAAV,CAAgB,iBAAhB;AAAmC,QAAQ,CAAC7H,CAAD,CAAQpB,CAAR,CAAYxC,CAAZ,CAA6B,CAElF,MAAO,SAAQ,CAAC9T,CAAD,CAAUm+D,CAAV,CAA0B,CA6BvCjxD,QAASA,EAAG,EAAG,CACbwK,CAAA,CAAM,QAAQ,EAAG,CAWbgO,CAAA/F,SAAJ,GACE3f,CAAA2f,SAAA,CAAiB+F,CAAA/F,SAAjB,CACA,CAAA+F,CAAA/F,SAAA,CAAmB,IAFrB,CAII+F,EAAA9F,YAAJ,GACE5f,CAAA4f,YAAA,CAAoB8F,CAAA9F,YAApB,CACA,CAAA8F,CAAA9F,YAAA,CAAsB,IAFxB,CAII8F,EAAAu1C,GAAJ,GACEj7D,CAAAi4D,IAAA,CAAYvyC,CAAAu1C,GAAZ,CACA,CAAAv1C,CAAAu1C,GAAA,CAAa,IAFf,CAjBOmD,EAAL,EACE/C,CAAAC,SAAA,EAEF8C,EAAA,CAAS,CAAA,CALM,CAAjB,CAOA,OAAO/C,EARM,CAxBf,IAAI31C,EAAUy4C,CAAVz4C,EAA4B,EAC3BA,EAAA24C,WAAL,GACE34C,CADF,CACYnlB,EAAA,CAAKmlB,CAAL,CADZ,CAOIA,EAAA44C,cAAJ,GACE54C,CAAAs1C,KADF,CACiBt1C,CAAAu1C,GADjB,CAC8B,IAD9B,CAIIv1C,EAAAs1C,KAAJ,GACEh7D,CAAAi4D,IAAA,CAAYvyC,CAAAs1C,KAAZ,CACA,CAAAt1C,CAAAs1C,KAAA,CAAe,IAFjB,CAjBuC,KAuBnCoD,CAvBmC,CAuB3B/C,EAAS,IAAIvnD,CACzB,OAAO,CACLyqD,MAAOrxD,CADF,CAELivD,IAAKjvD,CAFA,CAxBgC,CAFyC,CAAxE,CAD2B,CApxBzC,CAy4EI+d,GAAiBtwB,CAAA,CAAO,UAAP,CAQrBkT,GAAA6U,QAAA,CAA2B,CAAC,UAAD,CAAa,uBAAb,CAqtE3B,KAAI0P,GAAgB,uBAApB,CAsGI6N,GAAoBtlC,CAAA,CAAO,aAAP,CAtGxB;AAyGI6kC,GAAY,4BAzGhB,CAgWIzqB,GAAwBA,QAAQ,EAAG,CACrC,IAAAwK,KAAA,CAAY,CAAC,WAAD,CAAc,QAAQ,CAAC/K,CAAD,CAAY,CAC5C,MAAO,SAAQ,CAACga,CAAD,CAAU,CASnBA,CAAJ,CACO1pB,CAAA0pB,CAAA1pB,SADP,EAC2B0pB,CAD3B,WAC8CvzB,EAD9C,GAEIuzB,CAFJ,CAEcA,CAAA,CAAQ,CAAR,CAFd,EAKEA,CALF,CAKYha,CAAA,CAAU,CAAV,CAAA0yB,KAEZ,OAAO1Y,EAAAgwC,YAAP,CAA6B,CAhBN,CADmB,CAAlC,CADyB,CAhWvC,CAuXIC,GAAmB,kBAvXvB,CAwXIp8B,GAAgC,CAAC,eAAgBo8B,EAAhB,CAAmC,gBAApC,CAxXpC,CAyXIp9B,GAAa,eAzXjB,CA0XIC,GAAY,CACd,IAAK,IADS,CAEd,IAAK,IAFS,CA1XhB,CA8XIJ,GAAyB,cA9X7B,CA+XIw9B,GAAc/jE,CAAA,CAAO,OAAP,CA/XlB,CAgYIsqC,GAAsBA,QAAQ,CAACp5B,CAAD,CAAS,CACzC,MAAO,SAAQ,EAAG,CAChB,KAAM6yD,GAAA,CAAY,QAAZ,CAAkG7yD,CAAlG,CAAN,CADgB,CADuB,CAhY3C,CAg2DIu9B,GAAqBrhC,EAAAqhC,mBAArBA,CAAkDzuC,CAAA,CAAO,cAAP,CACtDyuC,GAAAW,cAAA,CAAmC40B,QAAQ,CAACvkC,CAAD,CAAO,CAChD,KAAMgP,GAAA,CAAmB,UAAnB,CAGsDhP,CAHtD,CAAN,CADgD,CAOlDgP,GAAAC,OAAA,CAA4Bu1B,QAAQ,CAACxkC,CAAD,CAAO9X,CAAP,CAAY,CAC9C,MAAO8mB,GAAA,CAAmB,QAAnB;AAA4DhP,CAA5D,CAAkE9X,CAAAzjB,SAAA,EAAlE,CADuC,CApvWT,KA0zXnCggE,GAAa,iCA1zXsB,CA2zXnC7yB,GAAgB,CAAC,KAAQ,EAAT,CAAa,MAAS,GAAtB,CAA2B,IAAO,EAAlC,CA3zXmB,CA4zXnCqB,GAAkB1yC,CAAA,CAAO,WAAP,CA5zXiB,CA6nYnCmkE,GAAoB,CAMtB7xB,QAAS,CAAA,CANa,CAYtBuD,UAAW,CAAA,CAZW,CAiCtBlB,OAAQd,EAAA,CAAe,UAAf,CAjCc,CAwDtB9nB,IAAKA,QAAQ,CAACA,CAAD,CAAM,CACjB,GAAI5nB,CAAA,CAAY4nB,CAAZ,CAAJ,CACE,MAAO,KAAA8mB,MAGT,KAAI9rC,EAAQm9D,EAAA1lD,KAAA,CAAgBuN,CAAhB,CACZ,EAAIhlB,CAAA,CAAM,CAAN,CAAJ,EAAwB,EAAxB,GAAgBglB,CAAhB,GAA4B,IAAA/b,KAAA,CAAU1F,kBAAA,CAAmBvD,CAAA,CAAM,CAAN,CAAnB,CAAV,CAC5B,EAAIA,CAAA,CAAM,CAAN,CAAJ,EAAgBA,CAAA,CAAM,CAAN,CAAhB,EAAoC,EAApC,GAA4BglB,CAA5B,GAAwC,IAAA6lB,OAAA,CAAY7qC,CAAA,CAAM,CAAN,CAAZ,EAAwB,EAAxB,CACxC,KAAAmjB,KAAA,CAAUnjB,CAAA,CAAM,CAAN,CAAV,EAAsB,EAAtB,CAEA,OAAO,KAVU,CAxDG,CAuFtBsmC,SAAUwG,EAAA,CAAe,YAAf,CAvFY,CAmHtBvxB,KAAMuxB,EAAA,CAAe,QAAf,CAnHgB,CAuItBzC,KAAMyC,EAAA,CAAe,QAAf,CAvIgB,CAiKtB7jC,KAAM8jC,EAAA,CAAqB,QAArB,CAA+B,QAAQ,CAAC9jC,CAAD,CAAO,CAClDA,CAAA,CAAgB,IAAT,GAAAA,CAAA,CAAgBA,CAAA9L,SAAA,EAAhB,CAAkC,EACzC,OAAyB,GAAlB,EAAA8L,CAAA9I,OAAA,CAAY,CAAZ,CAAA,CAAwB8I,CAAxB,CAA+B,GAA/B,CAAqCA,CAFM,CAA9C,CAjKgB,CAmNtB4hC,OAAQA,QAAQ,CAACA,CAAD;AAASwyB,CAAT,CAAqB,CACnC,OAAQhhE,SAAA7C,OAAR,EACE,KAAK,CAAL,CACE,MAAO,KAAAoxC,SACT,MAAK,CAAL,CACE,GAAItxC,CAAA,CAASuxC,CAAT,CAAJ,EAAwBnxC,CAAA,CAASmxC,CAAT,CAAxB,CACEA,CACA,CADSA,CAAA1tC,SAAA,EACT,CAAA,IAAAytC,SAAA,CAAgBpnC,EAAA,CAAcqnC,CAAd,CAFlB,KAGO,IAAIvvC,CAAA,CAASuvC,CAAT,CAAJ,CACLA,CAMA,CANShsC,EAAA,CAAKgsC,CAAL,CAAa,EAAb,CAMT,CAJAhxC,CAAA,CAAQgxC,CAAR,CAAgB,QAAQ,CAACjwC,CAAD,CAAQZ,CAAR,CAAa,CACtB,IAAb,EAAIY,CAAJ,EAAmB,OAAOiwC,CAAA,CAAO7wC,CAAP,CADS,CAArC,CAIA,CAAA,IAAA4wC,SAAA,CAAgBC,CAPX,KASL,MAAMc,GAAA,CAAgB,UAAhB,CAAN,CAGF,KACF,SACMvuC,CAAA,CAAYigE,CAAZ,CAAJ,EAA8C,IAA9C,GAA+BA,CAA/B,CACE,OAAO,IAAAzyB,SAAA,CAAcC,CAAd,CADT,CAGE,IAAAD,SAAA,CAAcC,CAAd,CAHF,CAG0BwyB,CAxB9B,CA4BA,IAAAzxB,UAAA,EACA,OAAO,KA9B4B,CAnNf,CAyQtBzoB,KAAM4pB,EAAA,CAAqB,QAArB,CAA+B,QAAQ,CAAC5pB,CAAD,CAAO,CAClD,MAAgB,KAAT,GAAAA,CAAA,CAAgBA,CAAAhmB,SAAA,EAAhB,CAAkC,EADS,CAA9C,CAzQgB,CAqRtB8E,QAASA,QAAQ,EAAG,CAClB,IAAA6sC,UAAA,CAAiB,CAAA,CACjB,OAAO,KAFW,CArRE,CA2RxBj1C,EAAA,CAAQ,CAACgzC,EAAD,CAA6BP,EAA7B,CAAkDnB,EAAlD,CAAR,CAA6E,QAAQ,CAACmyB,CAAD,CAAW,CAC9FA,CAAAl8C,UAAA,CAAqB3nB,MAAAoD,OAAA,CAAcugE,EAAd,CAqBrBE,EAAAl8C,UAAAwD,MAAA;AAA2B24C,QAAQ,CAAC34C,CAAD,CAAQ,CACzC,GAAKprB,CAAA6C,SAAA7C,OAAL,CACE,MAAO,KAAAi0C,QAGT,IAAI6vB,CAAJ,GAAiBnyB,EAAjB,EAAsCI,CAAA,IAAAA,QAAtC,CACE,KAAMI,GAAA,CAAgB,SAAhB,CAAN,CAMF,IAAA8B,QAAA,CAAerwC,CAAA,CAAYwnB,CAAZ,CAAA,CAAqB,IAArB,CAA4BA,CAE3C,OAAO,KAdkC,CAtBmD,CAAhG,CA8iBA,KAAIqrB,GAAeh3C,CAAA,CAAO,QAAP,CAAnB,CAkFIq3C,GAAOnvB,QAAAC,UAAAjnB,KAlFX,CAmFIo2C,GAAQpvB,QAAAC,UAAAhgB,MAnFZ,CAoFIovC,GAAOrvB,QAAAC,UAAArgB,KApFX,CA8GIy8D,GAAY78D,CAAA,EAChB9G,EAAA,CAAQ,+CAAA,MAAA,CAAA,GAAA,CAAR,CAAoE,QAAQ,CAACm5C,CAAD,CAAW,CAAEwqB,EAAA,CAAUxqB,CAAV,CAAA,CAAsB,CAAA,CAAxB,CAAvF,CACA,KAAIyqB,GAAS,CAAC,EAAI,IAAL,CAAW,EAAI,IAAf,CAAqB,EAAI,IAAzB,CAA+B,EAAI,IAAnC,CAAyC,EAAI,IAA7C,CAAmD,IAAI,GAAvD,CAA4D,IAAI,GAAhE,CAAb,CASIrpB,GAAQA,QAAQ,CAACpwB,CAAD,CAAU,CAC5B,IAAAA,QAAA,CAAeA,CADa,CAI9BowB,GAAAhzB,UAAA,CAAkB,CAChB5hB,YAAa40C,EADG,CAGhBspB,IAAKA,QAAQ,CAAChlC,CAAD,CAAO,CAClB,IAAAA,KAAA,CAAYA,CACZ,KAAAh6B,MAAA,CAAa,CAGb,KAFA,IAAAi/D,OAEA;AAFc,EAEd,CAAO,IAAAj/D,MAAP,CAAoB,IAAAg6B,KAAAl/B,OAApB,CAAA,CAEE,GADIstC,CACA,CADK,IAAApO,KAAAv4B,OAAA,CAAiB,IAAAzB,MAAjB,CACL,CAAO,GAAP,GAAAooC,CAAA,EAAqB,GAArB,GAAcA,CAAlB,CACE,IAAA82B,WAAA,CAAgB92B,CAAhB,CADF,KAEO,IAAI,IAAAptC,SAAA,CAAcotC,CAAd,CAAJ,EAAgC,GAAhC,GAAyBA,CAAzB,EAAuC,IAAAptC,SAAA,CAAc,IAAAmkE,KAAA,EAAd,CAAvC,CACL,IAAAC,WAAA,EADK,KAEA,IAAI,IAAAC,QAAA,CAAaj3B,CAAb,CAAJ,CACL,IAAAk3B,UAAA,EADK,KAEA,IAAI,IAAAC,GAAA,CAAQn3B,CAAR,CAAY,aAAZ,CAAJ,CACL,IAAA62B,OAAA1+D,KAAA,CAAiB,CAACP,MAAO,IAAAA,MAAR,CAAoBg6B,KAAMoO,CAA1B,CAAjB,CACA,CAAA,IAAApoC,MAAA,EAFK,KAGA,IAAI,IAAAw/D,aAAA,CAAkBp3B,CAAlB,CAAJ,CACL,IAAApoC,MAAA,EADK,KAEA,CACL,IAAIy/D,EAAMr3B,CAANq3B,CAAW,IAAAN,KAAA,EAAf,CACIO,EAAMD,CAANC,CAAY,IAAAP,KAAA,CAAU,CAAV,CADhB,CAGIQ,EAAMb,EAAA,CAAUW,CAAV,CAHV,CAIIG,EAAMd,EAAA,CAAUY,CAAV,CAFAZ,GAAAe,CAAUz3B,CAAVy3B,CAGV,EAAWF,CAAX,EAAkBC,CAAlB,EACM3gC,CAEJ,CAFY2gC,CAAA,CAAMF,CAAN,CAAaC,CAAA,CAAMF,CAAN,CAAYr3B,CAErC,CADA,IAAA62B,OAAA1+D,KAAA,CAAiB,CAACP,MAAO,IAAAA,MAAR,CAAoBg6B,KAAMiF,CAA1B,CAAiCqV,SAAU,CAAA,CAA3C,CAAjB,CACA,CAAA,IAAAt0C,MAAA;AAAci/B,CAAAnkC,OAHhB,EAKE,IAAAglE,WAAA,CAAgB,4BAAhB,CAA8C,IAAA9/D,MAA9C,CAA0D,IAAAA,MAA1D,CAAuE,CAAvE,CAXG,CAeT,MAAO,KAAAi/D,OAjCW,CAHJ,CAuChBM,GAAIA,QAAQ,CAACn3B,CAAD,CAAK23B,CAAL,CAAY,CACtB,MAA8B,EAA9B,GAAOA,CAAA9/D,QAAA,CAAcmoC,CAAd,CADe,CAvCR,CA2ChB+2B,KAAMA,QAAQ,CAACpjE,CAAD,CAAI,CACZ2uD,CAAAA,CAAM3uD,CAAN2uD,EAAW,CACf,OAAQ,KAAA1qD,MAAD,CAAc0qD,CAAd,CAAoB,IAAA1wB,KAAAl/B,OAApB,CAAwC,IAAAk/B,KAAAv4B,OAAA,CAAiB,IAAAzB,MAAjB,CAA8B0qD,CAA9B,CAAxC,CAA6E,CAAA,CAFpE,CA3CF,CAgDhB1vD,SAAUA,QAAQ,CAACotC,CAAD,CAAK,CACrB,MAAQ,GAAR,EAAeA,CAAf,EAA2B,GAA3B,EAAqBA,CAArB,EAAiD,QAAjD,GAAmC,MAAOA,EADrB,CAhDP,CAoDhBo3B,aAAcA,QAAQ,CAACp3B,CAAD,CAAK,CAEzB,MAAe,GAAf,GAAQA,CAAR,EAA6B,IAA7B,GAAsBA,CAAtB,EAA4C,IAA5C,GAAqCA,CAArC,EACe,IADf,GACQA,CADR,EAC8B,IAD9B,GACuBA,CADvB,EAC6C,QAD7C,GACsCA,CAHb,CApDX,CA0DhBi3B,QAASA,QAAQ,CAACj3B,CAAD,CAAK,CACpB,MAAQ,GAAR,EAAeA,CAAf,EAA2B,GAA3B,EAAqBA,CAArB,EACQ,GADR,EACeA,CADf,EAC2B,GAD3B,EACqBA,CADrB,EAEQ,GAFR,GAEgBA,CAFhB,EAE6B,GAF7B,GAEsBA,CAHF,CA1DN,CAgEhB43B,cAAeA,QAAQ,CAAC53B,CAAD,CAAK,CAC1B,MAAe,GAAf;AAAQA,CAAR,EAA6B,GAA7B,GAAsBA,CAAtB,EAAoC,IAAAptC,SAAA,CAAcotC,CAAd,CADV,CAhEZ,CAoEhB03B,WAAYA,QAAQ,CAACl6C,CAAD,CAAQu4C,CAAR,CAAepC,CAAf,CAAoB,CACtCA,CAAA,CAAMA,CAAN,EAAa,IAAA/7D,MACTigE,EAAAA,CAAUthE,CAAA,CAAUw/D,CAAV,CAAA,CACJ,IADI,CACGA,CADH,CACY,GADZ,CACkB,IAAAn+D,MADlB,CAC+B,IAD/B,CACsC,IAAAg6B,KAAA/0B,UAAA,CAAoBk5D,CAApB,CAA2BpC,CAA3B,CADtC,CACwE,GADxE,CAEJ,GAFI,CAEEA,CAChB,MAAMxqB,GAAA,CAAa,QAAb,CACF3rB,CADE,CACKq6C,CADL,CACa,IAAAjmC,KADb,CAAN,CALsC,CApExB,CA6EhBolC,WAAYA,QAAQ,EAAG,CAGrB,IAFA,IAAI7W,EAAS,EAAb,CACI4V,EAAQ,IAAAn+D,MACZ,CAAO,IAAAA,MAAP,CAAoB,IAAAg6B,KAAAl/B,OAApB,CAAA,CAAsC,CACpC,IAAIstC,EAAKvoC,CAAA,CAAU,IAAAm6B,KAAAv4B,OAAA,CAAiB,IAAAzB,MAAjB,CAAV,CACT,IAAU,GAAV,EAAIooC,CAAJ,EAAiB,IAAAptC,SAAA,CAAcotC,CAAd,CAAjB,CACEmgB,CAAA,EAAUngB,CADZ,KAEO,CACL,IAAI83B,EAAS,IAAAf,KAAA,EACb,IAAU,GAAV,EAAI/2B,CAAJ,EAAiB,IAAA43B,cAAA,CAAmBE,CAAnB,CAAjB,CACE3X,CAAA,EAAUngB,CADZ,KAEO,IAAI,IAAA43B,cAAA,CAAmB53B,CAAnB,CAAJ,EACH83B,CADG,EACO,IAAAllE,SAAA,CAAcklE,CAAd,CADP,EAEiC,GAFjC,EAEH3X,CAAA9mD,OAAA,CAAc8mD,CAAAztD,OAAd,CAA8B,CAA9B,CAFG,CAGLytD,CAAA,EAAUngB,CAHL,KAIA,IAAI,CAAA,IAAA43B,cAAA,CAAmB53B,CAAnB,CAAJ;AACD83B,CADC,EACU,IAAAllE,SAAA,CAAcklE,CAAd,CADV,EAEiC,GAFjC,EAEH3X,CAAA9mD,OAAA,CAAc8mD,CAAAztD,OAAd,CAA8B,CAA9B,CAFG,CAKL,KALK,KAGL,KAAAglE,WAAA,CAAgB,kBAAhB,CAXG,CAgBP,IAAA9/D,MAAA,EApBoC,CAsBtC,IAAAi/D,OAAA1+D,KAAA,CAAiB,CACfP,MAAOm+D,CADQ,CAEfnkC,KAAMuuB,CAFS,CAGf/7C,SAAU,CAAA,CAHK,CAIftQ,MAAOytB,MAAA,CAAO4+B,CAAP,CAJQ,CAAjB,CAzBqB,CA7EP,CA8GhB+W,UAAWA,QAAQ,EAAG,CAEpB,IADA,IAAInB,EAAQ,IAAAn+D,MACZ,CAAO,IAAAA,MAAP,CAAoB,IAAAg6B,KAAAl/B,OAApB,CAAA,CAAsC,CACpC,IAAIstC,EAAK,IAAApO,KAAAv4B,OAAA,CAAiB,IAAAzB,MAAjB,CACT,IAAM,CAAA,IAAAq/D,QAAA,CAAaj3B,CAAb,CAAN,EAA0B,CAAA,IAAAptC,SAAA,CAAcotC,CAAd,CAA1B,CACE,KAEF,KAAApoC,MAAA,EALoC,CAOtC,IAAAi/D,OAAA1+D,KAAA,CAAiB,CACfP,MAAOm+D,CADQ,CAEfnkC,KAAM,IAAAA,KAAAt8B,MAAA,CAAgBygE,CAAhB,CAAuB,IAAAn+D,MAAvB,CAFS,CAGf01B,WAAY,CAAA,CAHG,CAAjB,CAToB,CA9GN,CA8HhBwpC,WAAYA,QAAQ,CAACiB,CAAD,CAAQ,CAC1B,IAAIhC,EAAQ,IAAAn+D,MACZ,KAAAA,MAAA,EAIA,KAHA,IAAI6rD,EAAS,EAAb,CACIuU,EAAYD,CADhB,CAEIh4B,EAAS,CAAA,CACb,CAAO,IAAAnoC,MAAP,CAAoB,IAAAg6B,KAAAl/B,OAApB,CAAA,CAAsC,CACpC,IAAIstC;AAAK,IAAApO,KAAAv4B,OAAA,CAAiB,IAAAzB,MAAjB,CAAT,CACAogE,EAAAA,CAAAA,CAAah4B,CACb,IAAID,CAAJ,CACa,GAAX,GAAIC,CAAJ,EACMi4B,CAKJ,CALU,IAAArmC,KAAA/0B,UAAA,CAAoB,IAAAjF,MAApB,CAAiC,CAAjC,CAAoC,IAAAA,MAApC,CAAiD,CAAjD,CAKV,CAJKqgE,CAAA/+D,MAAA,CAAU,aAAV,CAIL,EAHE,IAAAw+D,WAAA,CAAgB,6BAAhB,CAAgDO,CAAhD,CAAsD,GAAtD,CAGF,CADA,IAAArgE,MACA,EADc,CACd,CAAA6rD,CAAA,EAAUyU,MAAAC,aAAA,CAAoBxiE,QAAA,CAASsiE,CAAT,CAAc,EAAd,CAApB,CANZ,EASExU,CATF,EAQYkT,EAAAyB,CAAOp4B,CAAPo4B,CARZ,EAS4Bp4B,CAE5B,CAAAD,CAAA,CAAS,CAAA,CAZX,KAaO,IAAW,IAAX,GAAIC,CAAJ,CACLD,CAAA,CAAS,CAAA,CADJ,KAEA,CAAA,GAAIC,CAAJ,GAAW+3B,CAAX,CAAkB,CACvB,IAAAngE,MAAA,EACA,KAAAi/D,OAAA1+D,KAAA,CAAiB,CACfP,MAAOm+D,CADQ,CAEfnkC,KAAMomC,CAFS,CAGf5zD,SAAU,CAAA,CAHK,CAIftQ,MAAO2vD,CAJQ,CAAjB,CAMA,OARuB,CAUvBA,CAAA,EAAUzjB,CAVL,CAYP,IAAApoC,MAAA,EA9BoC,CAgCtC,IAAA8/D,WAAA,CAAgB,oBAAhB,CAAsC3B,CAAtC,CAtC0B,CA9HZ,CAwKlB,KAAI5rB,EAAMA,QAAQ,CAACkD,CAAD,CAAQnwB,CAAR,CAAiB,CACjC,IAAAmwB,MAAA,CAAaA,CACb,KAAAnwB,QAAA,CAAeA,CAFkB,CAKnCitB,EAAAC,QAAA,CAAc,SACdD,EAAAkuB,oBAAA;AAA0B,qBAC1BluB,EAAAoB,qBAAA,CAA2B,sBAC3BpB,EAAAW,sBAAA,CAA4B,uBAC5BX,EAAAU,kBAAA,CAAwB,mBACxBV,EAAAO,iBAAA,CAAuB,kBACvBP,EAAAK,gBAAA,CAAsB,iBACtBL,EAAAkB,eAAA,CAAqB,gBACrBlB,EAAAe,iBAAA,CAAuB,kBACvBf,EAAAc,WAAA,CAAiB,YACjBd,EAAAG,QAAA,CAAc,SACdH,EAAAqB,gBAAA,CAAsB,iBACtBrB,EAAAmuB,SAAA,CAAe,UACfnuB,EAAAsB,iBAAA,CAAuB,kBACvBtB,EAAAwB,eAAA,CAAqB,gBACrBxB,EAAAyB,iBAAA,CAAuB,kBAGvBzB;CAAA8B,iBAAA,CAAuB,kBAEvB9B,EAAA7vB,UAAA,CAAgB,CACd0vB,IAAKA,QAAQ,CAACpY,CAAD,CAAO,CAClB,IAAAA,KAAA,CAAYA,CACZ,KAAAilC,OAAA,CAAc,IAAAxpB,MAAAupB,IAAA,CAAehlC,CAAf,CAEV99B,EAAAA,CAAQ,IAAAykE,QAAA,EAEe,EAA3B,GAAI,IAAA1B,OAAAnkE,OAAJ,EACE,IAAAglE,WAAA,CAAgB,wBAAhB,CAA0C,IAAAb,OAAA,CAAY,CAAZ,CAA1C,CAGF,OAAO/iE,EAVW,CADN,CAcdykE,QAASA,QAAQ,EAAG,CAElB,IADA,IAAI75B,EAAO,EACX,CAAA,CAAA,CAGE,GAFyB,CAEpB,CAFD,IAAAm4B,OAAAnkE,OAEC,EAF0B,CAAA,IAAAqkE,KAAA,CAAU,GAAV,CAAe,GAAf,CAAoB,GAApB,CAAyB,GAAzB,CAE1B,EADHr4B,CAAAvmC,KAAA,CAAU,IAAAqgE,oBAAA,EAAV,CACG,CAAA,CAAA,IAAAC,OAAA,CAAY,GAAZ,CAAL,CACE,MAAO,CAAEjmD,KAAM23B,CAAAC,QAAR,CAAqB1L,KAAMA,CAA3B,CANO,CAdN,CAyBd85B,oBAAqBA,QAAQ,EAAG,CAC9B,MAAO,CAAEhmD,KAAM23B,CAAAkuB,oBAAR,CAAiC9gC,WAAY,IAAAmhC,YAAA,EAA7C,CADuB,CAzBlB,CA6BdA,YAAaA,QAAQ,EAAG,CAGtB,IAFA,IAAI/tB;AAAO,IAAApT,WAAA,EAEX,CAAgB,IAAAkhC,OAAA,CAAY,GAAZ,CAAhB,CAAA,CACE9tB,CAAA,CAAO,IAAApmC,OAAA,CAAYomC,CAAZ,CAET,OAAOA,EANe,CA7BV,CAsCdpT,WAAYA,QAAQ,EAAG,CACrB,MAAO,KAAAohC,WAAA,EADc,CAtCT,CA0CdA,WAAYA,QAAQ,EAAG,CACrB,IAAI9/C,EAAS,IAAA+/C,QAAA,EACT,KAAAH,OAAA,CAAY,GAAZ,CAAJ,GACE5/C,CADF,CACW,CAAErG,KAAM23B,CAAAoB,qBAAR,CAAkCZ,KAAM9xB,CAAxC,CAAgD+xB,MAAO,IAAA+tB,WAAA,EAAvD,CAA0EzsB,SAAU,GAApF,CADX,CAGA,OAAOrzB,EALc,CA1CT,CAkDd+/C,QAASA,QAAQ,EAAG,CAClB,IAAI7hE,EAAO,IAAA8hE,UAAA,EAAX,CACI9tB,CADJ,CAEIC,CACJ,OAAI,KAAAytB,OAAA,CAAY,GAAZ,CAAJ,GACE1tB,CACI,CADQ,IAAAxT,WAAA,EACR,CAAA,IAAAuhC,QAAA,CAAa,GAAb,CAFN,GAGI9tB,CACO,CADM,IAAAzT,WAAA,EACN,CAAA,CAAE/kB,KAAM23B,CAAAW,sBAAR,CAAmC/zC,KAAMA,CAAzC,CAA+Cg0C,UAAWA,CAA1D,CAAqEC,WAAYA,CAAjF,CAJX,EAOOj0C,CAXW,CAlDN,CAgEd8hE,UAAWA,QAAQ,EAAG,CAEpB,IADA,IAAIluB,EAAO,IAAAouB,WAAA,EACX,CAAO,IAAAN,OAAA,CAAY,IAAZ,CAAP,CAAA,CACE9tB,CAAA;AAAO,CAAEn4B,KAAM23B,CAAAU,kBAAR,CAA+BqB,SAAU,IAAzC,CAA+CvB,KAAMA,CAArD,CAA2DC,MAAO,IAAAmuB,WAAA,EAAlE,CAET,OAAOpuB,EALa,CAhER,CAwEdouB,WAAYA,QAAQ,EAAG,CAErB,IADA,IAAIpuB,EAAO,IAAAquB,SAAA,EACX,CAAO,IAAAP,OAAA,CAAY,IAAZ,CAAP,CAAA,CACE9tB,CAAA,CAAO,CAAEn4B,KAAM23B,CAAAU,kBAAR,CAA+BqB,SAAU,IAAzC,CAA+CvB,KAAMA,CAArD,CAA2DC,MAAO,IAAAouB,SAAA,EAAlE,CAET,OAAOruB,EALc,CAxET,CAgFdquB,SAAUA,QAAQ,EAAG,CAGnB,IAFA,IAAIruB,EAAO,IAAAsuB,WAAA,EAAX,CACIpiC,CACJ,CAAQA,CAAR,CAAgB,IAAA4hC,OAAA,CAAY,IAAZ,CAAiB,IAAjB,CAAsB,KAAtB,CAA4B,KAA5B,CAAhB,CAAA,CACE9tB,CAAA,CAAO,CAAEn4B,KAAM23B,CAAAO,iBAAR,CAA8BwB,SAAUrV,CAAAjF,KAAxC,CAAoD+Y,KAAMA,CAA1D,CAAgEC,MAAO,IAAAquB,WAAA,EAAvE,CAET,OAAOtuB,EANY,CAhFP,CAyFdsuB,WAAYA,QAAQ,EAAG,CAGrB,IAFA,IAAItuB,EAAO,IAAAuuB,SAAA,EAAX,CACIriC,CACJ,CAAQA,CAAR,CAAgB,IAAA4hC,OAAA,CAAY,GAAZ,CAAiB,GAAjB,CAAsB,IAAtB,CAA4B,IAA5B,CAAhB,CAAA,CACE9tB,CAAA,CAAO,CAAEn4B,KAAM23B,CAAAO,iBAAR;AAA8BwB,SAAUrV,CAAAjF,KAAxC,CAAoD+Y,KAAMA,CAA1D,CAAgEC,MAAO,IAAAsuB,SAAA,EAAvE,CAET,OAAOvuB,EANc,CAzFT,CAkGduuB,SAAUA,QAAQ,EAAG,CAGnB,IAFA,IAAIvuB,EAAO,IAAAwuB,eAAA,EAAX,CACItiC,CACJ,CAAQA,CAAR,CAAgB,IAAA4hC,OAAA,CAAY,GAAZ,CAAgB,GAAhB,CAAhB,CAAA,CACE9tB,CAAA,CAAO,CAAEn4B,KAAM23B,CAAAO,iBAAR,CAA8BwB,SAAUrV,CAAAjF,KAAxC,CAAoD+Y,KAAMA,CAA1D,CAAgEC,MAAO,IAAAuuB,eAAA,EAAvE,CAET,OAAOxuB,EANY,CAlGP,CA2GdwuB,eAAgBA,QAAQ,EAAG,CAGzB,IAFA,IAAIxuB,EAAO,IAAAyuB,MAAA,EAAX,CACIviC,CACJ,CAAQA,CAAR,CAAgB,IAAA4hC,OAAA,CAAY,GAAZ,CAAgB,GAAhB,CAAoB,GAApB,CAAhB,CAAA,CACE9tB,CAAA,CAAO,CAAEn4B,KAAM23B,CAAAO,iBAAR,CAA8BwB,SAAUrV,CAAAjF,KAAxC,CAAoD+Y,KAAMA,CAA1D,CAAgEC,MAAO,IAAAwuB,MAAA,EAAvE,CAET,OAAOzuB,EANkB,CA3Gb,CAoHdyuB,MAAOA,QAAQ,EAAG,CAChB,IAAIviC,CACJ,OAAA,CAAKA,CAAL,CAAa,IAAA4hC,OAAA,CAAY,GAAZ,CAAiB,GAAjB,CAAsB,GAAtB,CAAb,EACS,CAAEjmD,KAAM23B,CAAAK,gBAAR,CAA6B0B,SAAUrV,CAAAjF,KAAvC,CAAmD7zB,OAAQ,CAAA,CAA3D,CAAiE0sC,SAAU,IAAA2uB,MAAA,EAA3E,CADT;AAGS,IAAAC,QAAA,EALO,CApHJ,CA6HdA,QAASA,QAAQ,EAAG,CAClB,IAAIA,CACA,KAAAZ,OAAA,CAAY,GAAZ,CAAJ,EACEY,CACA,CADU,IAAAX,YAAA,EACV,CAAA,IAAAI,QAAA,CAAa,GAAb,CAFF,EAGW,IAAAL,OAAA,CAAY,GAAZ,CAAJ,CACLY,CADK,CACK,IAAAC,iBAAA,EADL,CAEI,IAAAb,OAAA,CAAY,GAAZ,CAAJ,CACLY,CADK,CACK,IAAAluB,OAAA,EADL,CAEI,IAAAouB,UAAAnmE,eAAA,CAA8B,IAAA2jE,KAAA,EAAAnlC,KAA9B,CAAJ,CACLynC,CADK,CACKthE,EAAA,CAAK,IAAAwhE,UAAA,CAAe,IAAAT,QAAA,EAAAlnC,KAAf,CAAL,CADL,CAEI,IAAAmlC,KAAA,EAAAzpC,WAAJ,CACL+rC,CADK,CACK,IAAA/rC,WAAA,EADL,CAEI,IAAAypC,KAAA,EAAA3yD,SAAJ,CACLi1D,CADK,CACK,IAAAj1D,SAAA,EADL,CAGL,IAAAszD,WAAA,CAAgB,0BAAhB,CAA4C,IAAAX,KAAA,EAA5C,CAIF,KADA,IAAI/f,CACJ,CAAQA,CAAR,CAAe,IAAAyhB,OAAA,CAAY,GAAZ,CAAiB,GAAjB,CAAsB,GAAtB,CAAf,CAAA,CACoB,GAAlB,GAAIzhB,CAAAplB,KAAJ,EACEynC,CACA,CADU,CAAC7mD,KAAM23B,CAAAkB,eAAP,CAA2BC,OAAQ+tB,CAAnC,CAA4C9jE,UAAW,IAAAikE,eAAA,EAAvD,CACV;AAAA,IAAAV,QAAA,CAAa,GAAb,CAFF,EAGyB,GAAlB,GAAI9hB,CAAAplB,KAAJ,EACLynC,CACA,CADU,CAAE7mD,KAAM23B,CAAAe,iBAAR,CAA8BC,OAAQkuB,CAAtC,CAA+CttC,SAAU,IAAAwL,WAAA,EAAzD,CAA4E6T,SAAU,CAAA,CAAtF,CACV,CAAA,IAAA0tB,QAAA,CAAa,GAAb,CAFK,EAGkB,GAAlB,GAAI9hB,CAAAplB,KAAJ,CACLynC,CADK,CACK,CAAE7mD,KAAM23B,CAAAe,iBAAR,CAA8BC,OAAQkuB,CAAtC,CAA+CttC,SAAU,IAAAuB,WAAA,EAAzD,CAA4E8d,SAAU,CAAA,CAAtF,CADL,CAGL,IAAAssB,WAAA,CAAgB,YAAhB,CAGJ,OAAO2B,EAjCW,CA7HN,CAiKd90D,OAAQA,QAAQ,CAACk1D,CAAD,CAAiB,CAC3BvhD,CAAAA,CAAO,CAACuhD,CAAD,CAGX,KAFA,IAAI5gD,EAAS,CAACrG,KAAM23B,CAAAkB,eAAP,CAA2BC,OAAQ,IAAAhe,WAAA,EAAnC,CAAsD/3B,UAAW2iB,CAAjE,CAAuE3T,OAAQ,CAAA,CAA/E,CAEb,CAAO,IAAAk0D,OAAA,CAAY,GAAZ,CAAP,CAAA,CACEvgD,CAAA/f,KAAA,CAAU,IAAAo/B,WAAA,EAAV,CAGF,OAAO1e,EARwB,CAjKnB,CA4Kd2gD,eAAgBA,QAAQ,EAAG,CACzB,IAAIthD,EAAO,EACX,IAA8B,GAA9B,GAAI,IAAAwhD,UAAA,EAAA9nC,KAAJ,EACE,EACE1Z,EAAA/f,KAAA,CAAU,IAAAo/B,WAAA,EAAV,CADF;MAES,IAAAkhC,OAAA,CAAY,GAAZ,CAFT,CADF,CAKA,MAAOvgD,EAPkB,CA5Kb,CAsLdoV,WAAYA,QAAQ,EAAG,CACrB,IAAIuJ,EAAQ,IAAAiiC,QAAA,EACPjiC,EAAAvJ,WAAL,EACE,IAAAoqC,WAAA,CAAgB,2BAAhB,CAA6C7gC,CAA7C,CAEF,OAAO,CAAErkB,KAAM23B,CAAAc,WAAR,CAAwBjtC,KAAM64B,CAAAjF,KAA9B,CALc,CAtLT,CA8LdxtB,SAAUA,QAAQ,EAAG,CAEnB,MAAO,CAAEoO,KAAM23B,CAAAG,QAAR,CAAqBx2C,MAAO,IAAAglE,QAAA,EAAAhlE,MAA5B,CAFY,CA9LP,CAmMdwlE,iBAAkBA,QAAQ,EAAG,CAC3B,IAAInlD,EAAW,EACf,IAA8B,GAA9B,GAAI,IAAAulD,UAAA,EAAA9nC,KAAJ,EACE,EAAG,CACD,GAAI,IAAAmlC,KAAA,CAAU,GAAV,CAAJ,CAEE,KAEF5iD,EAAAhc,KAAA,CAAc,IAAAo/B,WAAA,EAAd,CALC,CAAH,MAMS,IAAAkhC,OAAA,CAAY,GAAZ,CANT,CADF,CASA,IAAAK,QAAA,CAAa,GAAb,CAEA,OAAO,CAAEtmD,KAAM23B,CAAAqB,gBAAR,CAA6Br3B,SAAUA,CAAvC,CAboB,CAnMf,CAmNdg3B,OAAQA,QAAQ,EAAG,CAAA,IACbO,EAAa,EADA,CACI3f,CACrB,IAA8B,GAA9B,GAAI,IAAA2tC,UAAA,EAAA9nC,KAAJ,EACE,EAAG,CACD,GAAI,IAAAmlC,KAAA,CAAU,GAAV,CAAJ,CAEE,KAEFhrC;CAAA,CAAW,CAACvZ,KAAM23B,CAAAmuB,SAAP,CAAqBqB,KAAM,MAA3B,CACP,KAAA5C,KAAA,EAAA3yD,SAAJ,CACE2nB,CAAA74B,IADF,CACiB,IAAAkR,SAAA,EADjB,CAEW,IAAA2yD,KAAA,EAAAzpC,WAAJ,CACLvB,CAAA74B,IADK,CACU,IAAAo6B,WAAA,EADV,CAGL,IAAAoqC,WAAA,CAAgB,aAAhB,CAA+B,IAAAX,KAAA,EAA/B,CAEF,KAAA+B,QAAA,CAAa,GAAb,CACA/sC,EAAAj4B,MAAA,CAAiB,IAAAyjC,WAAA,EACjBmU,EAAAvzC,KAAA,CAAgB4zB,CAAhB,CAfC,CAAH,MAgBS,IAAA0sC,OAAA,CAAY,GAAZ,CAhBT,CADF,CAmBA,IAAAK,QAAA,CAAa,GAAb,CAEA,OAAO,CAACtmD,KAAM23B,CAAAsB,iBAAP,CAA6BC,WAAYA,CAAzC,CAvBU,CAnNL,CA6OdgsB,WAAYA,QAAQ,CAAC3gB,CAAD,CAAMlgB,CAAN,CAAa,CAC/B,KAAMsS,GAAA,CAAa,QAAb,CAEAtS,CAAAjF,KAFA,CAEYmlB,CAFZ,CAEkBlgB,CAAAj/B,MAFlB,CAEgC,CAFhC,CAEoC,IAAAg6B,KAFpC,CAE+C,IAAAA,KAAA/0B,UAAA,CAAoBg6B,CAAAj/B,MAApB,CAF/C,CAAN,CAD+B,CA7OnB,CAmPdkhE,QAASA,QAAQ,CAACc,CAAD,CAAK,CACpB,GAA2B,CAA3B,GAAI,IAAA/C,OAAAnkE,OAAJ,CACE,KAAMy2C,GAAA,CAAa,MAAb,CAA0D,IAAAvX,KAA1D,CAAN,CAGF,IAAIiF,EAAQ,IAAA4hC,OAAA,CAAYmB,CAAZ,CACP/iC;CAAL,EACE,IAAA6gC,WAAA,CAAgB,4BAAhB,CAA+CkC,CAA/C,CAAoD,GAApD,CAAyD,IAAA7C,KAAA,EAAzD,CAEF,OAAOlgC,EATa,CAnPR,CA+Pd6iC,UAAWA,QAAQ,EAAG,CACpB,GAA2B,CAA3B,GAAI,IAAA7C,OAAAnkE,OAAJ,CACE,KAAMy2C,GAAA,CAAa,MAAb,CAA0D,IAAAvX,KAA1D,CAAN,CAEF,MAAO,KAAAilC,OAAA,CAAY,CAAZ,CAJa,CA/PR,CAsQdE,KAAMA,QAAQ,CAAC6C,CAAD,CAAKC,CAAL,CAASC,CAAT,CAAaC,CAAb,CAAiB,CAC7B,MAAO,KAAAC,UAAA,CAAe,CAAf,CAAkBJ,CAAlB,CAAsBC,CAAtB,CAA0BC,CAA1B,CAA8BC,CAA9B,CADsB,CAtQjB,CA0QdC,UAAWA,QAAQ,CAACrmE,CAAD,CAAIimE,CAAJ,CAAQC,CAAR,CAAYC,CAAZ,CAAgBC,CAAhB,CAAoB,CACrC,GAAI,IAAAlD,OAAAnkE,OAAJ,CAAyBiB,CAAzB,CAA4B,CACtBkjC,CAAAA,CAAQ,IAAAggC,OAAA,CAAYljE,CAAZ,CACZ,KAAIsmE,EAAIpjC,CAAAjF,KACR,IAAIqoC,CAAJ,GAAUL,CAAV,EAAgBK,CAAhB,GAAsBJ,CAAtB,EAA4BI,CAA5B,GAAkCH,CAAlC,EAAwCG,CAAxC,GAA8CF,CAA9C,EACK,EAACH,CAAD,EAAQC,CAAR,EAAeC,CAAf,EAAsBC,CAAtB,CADL,CAEE,MAAOljC,EALiB,CAQ5B,MAAO,CAAA,CAT8B,CA1QzB,CAsRd4hC,OAAQA,QAAQ,CAACmB,CAAD,CAAKC,CAAL,CAASC,CAAT,CAAaC,CAAb,CAAiB,CAE/B,MAAA,CADIljC,CACJ,CADY,IAAAkgC,KAAA,CAAU6C,CAAV,CAAcC,CAAd,CAAkBC,CAAlB,CAAsBC,CAAtB,CACZ,GACE,IAAAlD,OAAA98C,MAAA,EACO8c,CAAAA,CAFT,EAIO,CAAA,CANwB,CAtRnB,CAmSd0iC,UAAW,CACT,OAAQ,CAAE/mD,KAAM23B,CAAAG,QAAR,CAAqBx2C,MAAO,CAAA,CAA5B,CADC;AAET,QAAS,CAAE0e,KAAM23B,CAAAG,QAAR,CAAqBx2C,MAAO,CAAA,CAA5B,CAFA,CAGT,OAAQ,CAAE0e,KAAM23B,CAAAG,QAAR,CAAqBx2C,MAAO,IAA5B,CAHC,CAIT,UAAa,CAAC0e,KAAM23B,CAAAG,QAAP,CAAoBx2C,MAAO5B,CAA3B,CAJJ,CAKT,OAAQ,CAACsgB,KAAM23B,CAAAwB,eAAP,CALC,CAMT,QAAW,CAACn5B,KAAM23B,CAAAyB,iBAAP,CANF,CAnSG,CA2chBQ,GAAA9xB,UAAA,CAAwB,CACtBpb,QAASA,QAAQ,CAACq4B,CAAD,CAAasV,CAAb,CAA8B,CAC7C,IAAI3yC,EAAO,IAAX,CACI8vC,EAAM,IAAAqC,WAAArC,IAAA,CAAoBzS,CAApB,CACV,KAAAzZ,MAAA,CAAa,CACXo8C,OAAQ,CADG,CAEXtc,QAAS,EAFE,CAGX/Q,gBAAiBA,CAHN,CAIX1yC,GAAI,CAACggE,KAAM,EAAP,CAAWz7B,KAAM,EAAjB,CAAqB07B,IAAK,EAA1B,CAJO,CAKXlmC,OAAQ,CAACimC,KAAM,EAAP,CAAWz7B,KAAM,EAAjB,CAAqB07B,IAAK,EAA1B,CALG,CAMXzsB,OAAQ,EANG,CAQb5D,EAAA,CAAgCC,CAAhC,CAAqC9vC,CAAAkS,QAArC,CACA,KAAItW,EAAQ,EAAZ,CACIukE,CACJ,KAAAC,MAAA,CAAa,QACb,IAAKD,CAAL,CAAkBruB,EAAA,CAAchC,CAAd,CAAlB,CACE,IAAAlsB,MAAAy8C,UAIA,CAJuB,QAIvB,CAHI1hD,CAGJ,CAHa,IAAAqhD,OAAA,EAGb,CAFA,IAAAM,QAAA,CAAaH,CAAb,CAAyBxhD,CAAzB,CAEA,CADA,IAAA4hD,QAAA,CAAa5hD,CAAb,CACA;AAAA/iB,CAAA,CAAQ,YAAR,CAAuB,IAAA4kE,iBAAA,CAAsB,QAAtB,CAAgC,OAAhC,CAErBnwB,EAAAA,CAAUsB,EAAA,CAAU7B,CAAAtL,KAAV,CACdxkC,EAAAogE,MAAA,CAAa,QACbvnE,EAAA,CAAQw3C,CAAR,CAAiB,QAAQ,CAAC+L,CAAD,CAAQpjD,CAAR,CAAa,CACpC,IAAIynE,EAAQ,IAARA,CAAeznE,CACnBgH,EAAA4jB,MAAA,CAAW68C,CAAX,CAAA,CAAoB,CAACR,KAAM,EAAP,CAAWz7B,KAAM,EAAjB,CAAqB07B,IAAK,EAA1B,CACpBlgE,EAAA4jB,MAAAy8C,UAAA,CAAuBI,CACvB,KAAIC,EAAS1gE,CAAAggE,OAAA,EACbhgE,EAAAsgE,QAAA,CAAalkB,CAAb,CAAoBskB,CAApB,CACA1gE,EAAAugE,QAAA,CAAaG,CAAb,CACA1gE,EAAA4jB,MAAA6vB,OAAAx1C,KAAA,CAAuBwiE,CAAvB,CACArkB,EAAAukB,QAAA,CAAgB3nE,CARoB,CAAtC,CAUA,KAAA4qB,MAAAy8C,UAAA,CAAuB,IACvB,KAAAD,MAAA,CAAa,MACb,KAAAE,QAAA,CAAaxwB,CAAb,CACI8wB,EAAAA,CAGF,GAHEA,CAGI,IAAAC,IAHJD,CAGe,GAHfA,CAGqB,IAAAE,OAHrBF,CAGmC,MAHnCA,CAIF,IAAAG,aAAA,EAJEH,CAKF,SALEA,CAKU,IAAAJ,iBAAA,CAAsB,IAAtB,CAA4B,SAA5B,CALVI,CAMFhlE,CANEglE,CAOF,IAAAI,SAAA,EAPEJ,CAQF,YAGE3gE,EAAAA,CAAK,CAAC,IAAIkgB,QAAJ,CAAa,SAAb,CACN,sBADM,CAEN,kBAFM;AAGN,oBAHM,CAIN,gBAJM,CAKN,yBALM,CAMN,WANM,CAON,MAPM,CAQN,MARM,CASNygD,CATM,CAAD,EAUH,IAAA1uD,QAVG,CAWH68B,EAXG,CAYHI,EAZG,CAaHE,EAbG,CAcHH,EAdG,CAeHO,EAfG,CAgBHC,EAhBG,CAiBHC,EAjBG,CAkBHtS,CAlBG,CAoBT,KAAAzZ,MAAA,CAAa,IAAAw8C,MAAb,CAA0BpoE,CAC1BiI,EAAA85B,QAAA,CAAakY,EAAA,CAAUnC,CAAV,CACb7vC,EAAAiK,SAAA,CAAyB4lC,CA/EpB5lC,SAgFL,OAAOjK,EAvEsC,CADzB,CA2EtB4gE,IAAK,KA3EiB,CA6EtBC,OAAQ,QA7Ec,CA+EtBE,SAAUA,QAAQ,EAAG,CACnB,IAAIriD,EAAS,EAAb,CACI0gB,EAAM,IAAAzb,MAAA6vB,OADV,CAEIzzC,EAAO,IACXnH,EAAA,CAAQwmC,CAAR,CAAa,QAAQ,CAACv7B,CAAD,CAAO,CAC1B6a,CAAA1gB,KAAA,CAAY,MAAZ,CAAqB6F,CAArB,CAA4B,GAA5B,CAAkC9D,CAAAwgE,iBAAA,CAAsB18D,CAAtB,CAA4B,GAA5B,CAAlC,CAD0B,CAA5B,CAGIu7B,EAAA7mC,OAAJ,EACEmmB,CAAA1gB,KAAA,CAAY,aAAZ,CAA4BohC,CAAAr8B,KAAA,CAAS,GAAT,CAA5B,CAA4C,IAA5C,CAEF,OAAO2b,EAAA3b,KAAA,CAAY,EAAZ,CAVY,CA/EC,CA4FtBw9D,iBAAkBA,QAAQ,CAAC18D,CAAD,CAAOi6B,CAAP,CAAe,CACvC,MAAO,WAAP,CAAqBA,CAArB,CAA8B,IAA9B,CACI,IAAAkjC,WAAA,CAAgBn9D,CAAhB,CADJ,CAEI,IAAA0gC,KAAA,CAAU1gC,CAAV,CAFJ;AAGI,IAJmC,CA5FnB,CAmGtBi9D,aAAcA,QAAQ,EAAG,CACvB,IAAIl+D,EAAQ,EAAZ,CACI7C,EAAO,IACXnH,EAAA,CAAQ,IAAA+qB,MAAA8/B,QAAR,CAA4B,QAAQ,CAACv8B,CAAD,CAAK9c,CAAL,CAAa,CAC/CxH,CAAA5E,KAAA,CAAWkpB,CAAX,CAAgB,WAAhB,CAA8BnnB,CAAA6lC,OAAA,CAAYx7B,CAAZ,CAA9B,CAAoD,GAApD,CAD+C,CAAjD,CAGA,OAAIxH,EAAArK,OAAJ,CAAyB,MAAzB,CAAkCqK,CAAAG,KAAA,CAAW,GAAX,CAAlC,CAAoD,GAApD,CACO,EAPgB,CAnGH,CA6GtBi+D,WAAYA,QAAQ,CAACC,CAAD,CAAU,CAC5B,MAAO,KAAAt9C,MAAA,CAAWs9C,CAAX,CAAAjB,KAAAznE,OAAA,CAAkC,MAAlC,CAA2C,IAAAorB,MAAA,CAAWs9C,CAAX,CAAAjB,KAAAj9D,KAAA,CAA8B,GAA9B,CAA3C,CAAgF,GAAhF,CAAsF,EADjE,CA7GR,CAiHtBwhC,KAAMA,QAAQ,CAAC08B,CAAD,CAAU,CACtB,MAAO,KAAAt9C,MAAA,CAAWs9C,CAAX,CAAA18B,KAAAxhC,KAAA,CAA8B,EAA9B,CADe,CAjHF,CAqHtBs9D,QAASA,QAAQ,CAACxwB,CAAD,CAAM4wB,CAAN,CAAcS,CAAd,CAAsBC,CAAtB,CAAmCvlE,CAAnC,CAA2CwlE,CAA3C,CAA6D,CAAA,IACxE5wB,CADwE,CAClEC,CADkE,CAC3D1wC,EAAO,IADoD,CAC9Cge,CAD8C,CACxCqf,CACpC+jC,EAAA,CAAcA,CAAd,EAA6BtlE,CAC7B,IAAKulE,CAAAA,CAAL,EAAyBhlE,CAAA,CAAUyzC,CAAA6wB,QAAV,CAAzB,CACED,CACA,CADSA,CACT,EADmB,IAAAV,OAAA,EACnB,CAAA,IAAAsB,IAAA,CAAS,GAAT,CACE,IAAAC,WAAA,CAAgBb,CAAhB,CAAwB,IAAAc,eAAA,CAAoB,GAApB,CAAyB1xB,CAAA6wB,QAAzB,CAAxB,CADF,CAEE,IAAAc,YAAA,CAAiB3xB,CAAjB,CAAsB4wB,CAAtB,CAA8BS,CAA9B;AAAsCC,CAAtC,CAAmDvlE,CAAnD,CAA2D,CAAA,CAA3D,CAFF,CAFF,KAQA,QAAQi0C,CAAAx3B,KAAR,EACA,KAAK23B,CAAAC,QAAL,CACEr3C,CAAA,CAAQi3C,CAAAtL,KAAR,CAAkB,QAAQ,CAACnH,CAAD,CAAaj3B,CAAb,CAAkB,CAC1CpG,CAAAsgE,QAAA,CAAajjC,CAAAA,WAAb,CAAoCrlC,CAApC,CAA+CA,CAA/C,CAA0D,QAAQ,CAACm4C,CAAD,CAAO,CAAEO,CAAA,CAAQP,CAAV,CAAzE,CACI/pC,EAAJ,GAAY0pC,CAAAtL,KAAAhsC,OAAZ,CAA8B,CAA9B,CACEwH,CAAA85C,QAAA,EAAAtV,KAAAvmC,KAAA,CAAyByyC,CAAzB,CAAgC,GAAhC,CADF,CAGE1wC,CAAAugE,QAAA,CAAa7vB,CAAb,CALwC,CAA5C,CAQA,MACF,MAAKT,CAAAG,QAAL,CACE/S,CAAA,CAAa,IAAAwI,OAAA,CAAYiK,CAAAl2C,MAAZ,CACb,KAAAogC,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACA+jC,EAAA,CAAY/jC,CAAZ,CACA,MACF,MAAK4S,CAAAK,gBAAL,CACE,IAAAgwB,QAAA,CAAaxwB,CAAAS,SAAb,CAA2Bv4C,CAA3B,CAAsCA,CAAtC,CAAiD,QAAQ,CAACm4C,CAAD,CAAO,CAAEO,CAAA,CAAQP,CAAV,CAAhE,CACA9S,EAAA,CAAayS,CAAAkC,SAAb,CAA4B,GAA5B,CAAkC,IAAAtC,UAAA,CAAegB,CAAf,CAAsB,CAAtB,CAAlC,CAA6D,GAC7D,KAAA1W,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACA+jC,EAAA,CAAY/jC,CAAZ,CACA,MACF,MAAK4S,CAAAO,iBAAL,CACE,IAAA8vB,QAAA,CAAaxwB,CAAAW,KAAb,CAAuBz4C,CAAvB,CAAkCA,CAAlC,CAA6C,QAAQ,CAACm4C,CAAD,CAAO,CAAEM,CAAA,CAAON,CAAT,CAA5D,CACA,KAAAmwB,QAAA,CAAaxwB,CAAAY,MAAb,CAAwB14C,CAAxB,CAAmCA,CAAnC,CAA8C,QAAQ,CAACm4C,CAAD,CAAO,CAAEO,CAAA,CAAQP,CAAV,CAA7D,CAEE9S,EAAA,CADmB,GAArB;AAAIyS,CAAAkC,SAAJ,CACe,IAAA0vB,KAAA,CAAUjxB,CAAV,CAAgBC,CAAhB,CADf,CAE4B,GAArB,GAAIZ,CAAAkC,SAAJ,CACQ,IAAAtC,UAAA,CAAee,CAAf,CAAqB,CAArB,CADR,CACkCX,CAAAkC,SADlC,CACiD,IAAAtC,UAAA,CAAegB,CAAf,CAAsB,CAAtB,CADjD,CAGQ,GAHR,CAGcD,CAHd,CAGqB,GAHrB,CAG2BX,CAAAkC,SAH3B,CAG0C,GAH1C,CAGgDtB,CAHhD,CAGwD,GAE/D,KAAA1W,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACA+jC,EAAA,CAAY/jC,CAAZ,CACA,MACF,MAAK4S,CAAAU,kBAAL,CACE+vB,CAAA,CAASA,CAAT,EAAmB,IAAAV,OAAA,EACnBhgE,EAAAsgE,QAAA,CAAaxwB,CAAAW,KAAb,CAAuBiwB,CAAvB,CACA1gE,EAAAshE,IAAA,CAA0B,IAAjB,GAAAxxB,CAAAkC,SAAA,CAAwB0uB,CAAxB,CAAiC1gE,CAAA2hE,IAAA,CAASjB,CAAT,CAA1C,CAA4D1gE,CAAAyhE,YAAA,CAAiB3xB,CAAAY,MAAjB,CAA4BgwB,CAA5B,CAA5D,CACAU,EAAA,CAAYV,CAAZ,CACA,MACF,MAAKzwB,CAAAW,sBAAL,CACE8vB,CAAA,CAASA,CAAT,EAAmB,IAAAV,OAAA,EACnBhgE,EAAAsgE,QAAA,CAAaxwB,CAAAjzC,KAAb,CAAuB6jE,CAAvB,CACA1gE,EAAAshE,IAAA,CAASZ,CAAT,CAAiB1gE,CAAAyhE,YAAA,CAAiB3xB,CAAAe,UAAjB,CAAgC6vB,CAAhC,CAAjB,CAA0D1gE,CAAAyhE,YAAA,CAAiB3xB,CAAAgB,WAAjB,CAAiC4vB,CAAjC,CAA1D,CACAU,EAAA,CAAYV,CAAZ,CACA,MACF,MAAKzwB,CAAAc,WAAL,CACE2vB,CAAA,CAASA,CAAT,EAAmB,IAAAV,OAAA,EACfmB,EAAJ,GACEA,CAAApoE,QAEA,CAFgC,QAAf,GAAAiH,CAAAogE,MAAA;AAA0B,GAA1B,CAAgC,IAAApmC,OAAA,CAAY,IAAAgmC,OAAA,EAAZ,CAA2B,IAAA4B,kBAAA,CAAuB,GAAvB,CAA4B9xB,CAAAhsC,KAA5B,CAA3B,CAAmE,MAAnE,CAEjD,CADAq9D,CAAAjwB,SACA,CADkB,CAAA,CAClB,CAAAiwB,CAAAr9D,KAAA,CAAcgsC,CAAAhsC,KAHhB,CAKAirC,GAAA,CAAqBe,CAAAhsC,KAArB,CACA9D,EAAAshE,IAAA,CAAwB,QAAxB,GAASthE,CAAAogE,MAAT,EAAoCpgE,CAAA2hE,IAAA,CAAS3hE,CAAA4hE,kBAAA,CAAuB,GAAvB,CAA4B9xB,CAAAhsC,KAA5B,CAAT,CAApC,CACE,QAAQ,EAAG,CACT9D,CAAAshE,IAAA,CAAwB,QAAxB,GAASthE,CAAAogE,MAAT,EAAoC,GAApC,CAAyC,QAAQ,EAAG,CAC9CvkE,CAAJ,EAAyB,CAAzB,GAAcA,CAAd,EACEmE,CAAAshE,IAAA,CACEthE,CAAA2hE,IAAA,CAAS3hE,CAAA6hE,kBAAA,CAAuB,GAAvB,CAA4B/xB,CAAAhsC,KAA5B,CAAT,CADF,CAEE9D,CAAAuhE,WAAA,CAAgBvhE,CAAA6hE,kBAAA,CAAuB,GAAvB,CAA4B/xB,CAAAhsC,KAA5B,CAAhB,CAAuD,IAAvD,CAFF,CAIF9D,EAAAg6B,OAAA,CAAY0mC,CAAZ,CAAoB1gE,CAAA6hE,kBAAA,CAAuB,GAAvB,CAA4B/xB,CAAAhsC,KAA5B,CAApB,CANkD,CAApD,CADS,CADb,CAUK48D,CAVL,EAUe1gE,CAAAuhE,WAAA,CAAgBb,CAAhB,CAAwB1gE,CAAA6hE,kBAAA,CAAuB,GAAvB,CAA4B/xB,CAAAhsC,KAA5B,CAAxB,CAVf,CAYA,EAAI9D,CAAA4jB,MAAA+uB,gBAAJ,EAAkCN,EAAA,CAA8BvC,CAAAhsC,KAA9B,CAAlC,GACE9D,CAAA8hE,oBAAA,CAAyBpB,CAAzB,CAEFU,EAAA,CAAYV,CAAZ,CACA;KACF,MAAKzwB,CAAAe,iBAAL,CACEP,CAAA,CAAO0wB,CAAP,GAAkBA,CAAApoE,QAAlB,CAAmC,IAAAinE,OAAA,EAAnC,GAAqD,IAAAA,OAAA,EACrDU,EAAA,CAASA,CAAT,EAAmB,IAAAV,OAAA,EACnBhgE,EAAAsgE,QAAA,CAAaxwB,CAAAmB,OAAb,CAAyBR,CAAzB,CAA+Bz4C,CAA/B,CAA0C,QAAQ,EAAG,CACnDgI,CAAAshE,IAAA,CAASthE,CAAA+hE,QAAA,CAAatxB,CAAb,CAAT,CAA6B,QAAQ,EAAG,CAClC50C,CAAJ,EAAyB,CAAzB,GAAcA,CAAd,EACEmE,CAAAgiE,2BAAA,CAAgCvxB,CAAhC,CAEF,IAAIX,CAAAoB,SAAJ,CACER,CASA,CATQ1wC,CAAAggE,OAAA,EASR,CARAhgE,CAAAsgE,QAAA,CAAaxwB,CAAAje,SAAb,CAA2B6e,CAA3B,CAQA,CAPA1wC,CAAAkvC,eAAA,CAAoBwB,CAApB,CAOA,CANA1wC,CAAAiiE,wBAAA,CAA6BvxB,CAA7B,CAMA,CALI70C,CAKJ,EALyB,CAKzB,GALcA,CAKd,EAJEmE,CAAAshE,IAAA,CAASthE,CAAA2hE,IAAA,CAAS3hE,CAAAwhE,eAAA,CAAoB/wB,CAApB,CAA0BC,CAA1B,CAAT,CAAT,CAAqD1wC,CAAAuhE,WAAA,CAAgBvhE,CAAAwhE,eAAA,CAAoB/wB,CAApB,CAA0BC,CAA1B,CAAhB,CAAkD,IAAlD,CAArD,CAIF,CAFArT,CAEA,CAFar9B,CAAAmvC,iBAAA,CAAsBnvC,CAAAwhE,eAAA,CAAoB/wB,CAApB,CAA0BC,CAA1B,CAAtB,CAEb,CADA1wC,CAAAg6B,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACA,CAAI8jC,CAAJ,GACEA,CAAAjwB,SACA,CADkB,CAAA,CAClB,CAAAiwB,CAAAr9D,KAAA,CAAc4sC,CAFhB,CAVF,KAcO,CACL3B,EAAA,CAAqBe,CAAAje,SAAA/tB,KAArB,CACIjI,EAAJ;AAAyB,CAAzB,GAAcA,CAAd,EACEmE,CAAAshE,IAAA,CAASthE,CAAA2hE,IAAA,CAAS3hE,CAAA6hE,kBAAA,CAAuBpxB,CAAvB,CAA6BX,CAAAje,SAAA/tB,KAA7B,CAAT,CAAT,CAAoE9D,CAAAuhE,WAAA,CAAgBvhE,CAAA6hE,kBAAA,CAAuBpxB,CAAvB,CAA6BX,CAAAje,SAAA/tB,KAA7B,CAAhB,CAAiE,IAAjE,CAApE,CAEFu5B,EAAA,CAAar9B,CAAA6hE,kBAAA,CAAuBpxB,CAAvB,CAA6BX,CAAAje,SAAA/tB,KAA7B,CACb,IAAI9D,CAAA4jB,MAAA+uB,gBAAJ,EAAkCN,EAAA,CAA8BvC,CAAAje,SAAA/tB,KAA9B,CAAlC,CACEu5B,CAAA,CAAar9B,CAAAmvC,iBAAA,CAAsB9R,CAAtB,CAEfr9B,EAAAg6B,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACI8jC,EAAJ,GACEA,CAAAjwB,SACA,CADkB,CAAA,CAClB,CAAAiwB,CAAAr9D,KAAA,CAAcgsC,CAAAje,SAAA/tB,KAFhB,CAVK,CAlB+B,CAAxC,CAiCG,QAAQ,EAAG,CACZ9D,CAAAg6B,OAAA,CAAY0mC,CAAZ,CAAoB,WAApB,CADY,CAjCd,CAoCAU,EAAA,CAAYV,CAAZ,CArCmD,CAArD,CAsCG,CAAE7kE,CAAAA,CAtCL,CAuCA,MACF,MAAKo0C,CAAAkB,eAAL,CACEuvB,CAAA,CAASA,CAAT,EAAmB,IAAAV,OAAA,EACflwB,EAAAzlC,OAAJ,EACEqmC,CASA,CATQ1wC,CAAAqK,OAAA,CAAYylC,CAAAsB,OAAAttC,KAAZ,CASR,CARAka,CAQA,CARO,EAQP,CAPAnlB,CAAA,CAAQi3C,CAAAz0C,UAAR,CAAuB,QAAQ,CAAC80C,CAAD,CAAO,CACpC,IAAII,EAAWvwC,CAAAggE,OAAA,EACfhgE,EAAAsgE,QAAA,CAAanwB,CAAb,CAAmBI,CAAnB,CACAvyB,EAAA/f,KAAA,CAAUsyC,CAAV,CAHoC,CAAtC,CAOA,CAFAlT,CAEA,CAFaqT,CAEb,CAFqB,GAErB;AAF2B1yB,CAAAhb,KAAA,CAAU,GAAV,CAE3B,CAF4C,GAE5C,CADAhD,CAAAg6B,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACA,CAAA+jC,CAAA,CAAYV,CAAZ,CAVF,GAYEhwB,CAGA,CAHQ1wC,CAAAggE,OAAA,EAGR,CAFAvvB,CAEA,CAFO,EAEP,CADAzyB,CACA,CADO,EACP,CAAAhe,CAAAsgE,QAAA,CAAaxwB,CAAAsB,OAAb,CAAyBV,CAAzB,CAAgCD,CAAhC,CAAsC,QAAQ,EAAG,CAC/CzwC,CAAAshE,IAAA,CAASthE,CAAA+hE,QAAA,CAAarxB,CAAb,CAAT,CAA8B,QAAQ,EAAG,CACvC1wC,CAAAkiE,sBAAA,CAA2BxxB,CAA3B,CACA73C,EAAA,CAAQi3C,CAAAz0C,UAAR,CAAuB,QAAQ,CAAC80C,CAAD,CAAO,CACpCnwC,CAAAsgE,QAAA,CAAanwB,CAAb,CAAmBnwC,CAAAggE,OAAA,EAAnB,CAAkChoE,CAAlC,CAA6C,QAAQ,CAACu4C,CAAD,CAAW,CAC9DvyB,CAAA/f,KAAA,CAAU+B,CAAAmvC,iBAAA,CAAsBoB,CAAtB,CAAV,CAD8D,CAAhE,CADoC,CAAtC,CAKIE,EAAA3sC,KAAJ,EACO9D,CAAA4jB,MAAA+uB,gBAGL,EAFE3yC,CAAA8hE,oBAAA,CAAyBrxB,CAAA13C,QAAzB,CAEF,CAAAskC,CAAA,CAAar9B,CAAAmiE,OAAA,CAAY1xB,CAAA13C,QAAZ,CAA0B03C,CAAA3sC,KAA1B,CAAqC2sC,CAAAS,SAArC,CAAb,CAAmE,GAAnE,CAAyElzB,CAAAhb,KAAA,CAAU,GAAV,CAAzE,CAA0F,GAJ5F,EAMEq6B,CANF,CAMeqT,CANf,CAMuB,GANvB,CAM6B1yB,CAAAhb,KAAA,CAAU,GAAV,CAN7B,CAM8C,GAE9Cq6B,EAAA,CAAar9B,CAAAmvC,iBAAA,CAAsB9R,CAAtB,CACbr9B,EAAAg6B,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CAhBuC,CAAzC,CAiBG,QAAQ,EAAG,CACZr9B,CAAAg6B,OAAA,CAAY0mC,CAAZ,CAAoB,WAApB,CADY,CAjBd,CAoBAU,EAAA,CAAYV,CAAZ,CArB+C,CAAjD,CAfF,CAuCA,MACF,MAAKzwB,CAAAoB,qBAAL,CACEX,CAAA;AAAQ,IAAAsvB,OAAA,EACRvvB,EAAA,CAAO,EACP,IAAK,CAAAoB,EAAA,CAAa/B,CAAAW,KAAb,CAAL,CACE,KAAMxB,GAAA,CAAa,MAAb,CAAN,CAEF,IAAAqxB,QAAA,CAAaxwB,CAAAW,KAAb,CAAuBz4C,CAAvB,CAAkCy4C,CAAlC,CAAwC,QAAQ,EAAG,CACjDzwC,CAAAshE,IAAA,CAASthE,CAAA+hE,QAAA,CAAatxB,CAAA13C,QAAb,CAAT,CAAqC,QAAQ,EAAG,CAC9CiH,CAAAsgE,QAAA,CAAaxwB,CAAAY,MAAb,CAAwBA,CAAxB,CACA1wC,EAAA8hE,oBAAA,CAAyB9hE,CAAAmiE,OAAA,CAAY1xB,CAAA13C,QAAZ,CAA0B03C,CAAA3sC,KAA1B,CAAqC2sC,CAAAS,SAArC,CAAzB,CACAlxC,EAAAgiE,2BAAA,CAAgCvxB,CAAA13C,QAAhC,CACAskC,EAAA,CAAar9B,CAAAmiE,OAAA,CAAY1xB,CAAA13C,QAAZ,CAA0B03C,CAAA3sC,KAA1B,CAAqC2sC,CAAAS,SAArC,CAAb,CAAmEpB,CAAAkC,SAAnE,CAAkFtB,CAClF1wC,EAAAg6B,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACA+jC,EAAA,CAAYV,CAAZ,EAAsBrjC,CAAtB,CAN8C,CAAhD,CADiD,CAAnD,CASG,CATH,CAUA,MACF,MAAK4S,CAAAqB,gBAAL,CACEtzB,CAAA,CAAO,EACPnlB,EAAA,CAAQi3C,CAAA71B,SAAR,CAAsB,QAAQ,CAACk2B,CAAD,CAAO,CACnCnwC,CAAAsgE,QAAA,CAAanwB,CAAb,CAAmBnwC,CAAAggE,OAAA,EAAnB,CAAkChoE,CAAlC,CAA6C,QAAQ,CAACu4C,CAAD,CAAW,CAC9DvyB,CAAA/f,KAAA,CAAUsyC,CAAV,CAD8D,CAAhE,CADmC,CAArC,CAKAlT,EAAA,CAAa,GAAb,CAAmBrf,CAAAhb,KAAA,CAAU,GAAV,CAAnB,CAAoC,GACpC,KAAAg3B,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACA+jC,EAAA,CAAY/jC,CAAZ,CACA,MACF,MAAK4S,CAAAsB,iBAAL,CACEvzB,CAAA;AAAO,EACPnlB,EAAA,CAAQi3C,CAAA0B,WAAR,CAAwB,QAAQ,CAAC3f,CAAD,CAAW,CACzC7xB,CAAAsgE,QAAA,CAAazuC,CAAAj4B,MAAb,CAA6BoG,CAAAggE,OAAA,EAA7B,CAA4ChoE,CAA5C,CAAuD,QAAQ,CAACm4C,CAAD,CAAO,CACpEnyB,CAAA/f,KAAA,CAAU+B,CAAA6lC,OAAA,CACNhU,CAAA74B,IAAAsf,KAAA,GAAsB23B,CAAAc,WAAtB,CAAuClf,CAAA74B,IAAA8K,KAAvC,CACG,EADH,CACQ+tB,CAAA74B,IAAAY,MAFF,CAAV,CAGI,GAHJ,CAGUu2C,CAHV,CADoE,CAAtE,CADyC,CAA3C,CAQA9S,EAAA,CAAa,GAAb,CAAmBrf,CAAAhb,KAAA,CAAU,GAAV,CAAnB,CAAoC,GACpC,KAAAg3B,OAAA,CAAY0mC,CAAZ,CAAoBrjC,CAApB,CACA+jC,EAAA,CAAY/jC,CAAZ,CACA,MACF,MAAK4S,CAAAwB,eAAL,CACE,IAAAzX,OAAA,CAAY0mC,CAAZ,CAAoB,GAApB,CACAU,EAAA,CAAY,GAAZ,CACA,MACF,MAAKnxB,CAAAyB,iBAAL,CACE,IAAA1X,OAAA,CAAY0mC,CAAZ,CAAoB,GAApB,CACAU,EAAA,CAAY,GAAZ,CACA,MACF,MAAKnxB,CAAA8B,iBAAL,CACE,IAAA/X,OAAA,CAAY0mC,CAAZ,CAAoB,GAApB,CACA,CAAAU,CAAA,CAAY,GAAZ,CAjNF,CAX4E,CArHxD,CAsVtBQ,kBAAmBA,QAAQ,CAACtkE,CAAD,CAAUu0B,CAAV,CAAoB,CAC7C,IAAI74B,EAAMsE,CAANtE,CAAgB,GAAhBA,CAAsB64B,CAA1B,CACIquC,EAAM,IAAApmB,QAAA,EAAAomB,IACLA,EAAAhnE,eAAA,CAAmBF,CAAnB,CAAL,GACEknE,CAAA,CAAIlnE,CAAJ,CADF,CACa,IAAAgnE,OAAA,CAAY,CAAA,CAAZ,CAAmB1iE,CAAnB,CAA6B,KAA7B,CAAqC,IAAAuoC,OAAA,CAAYhU,CAAZ,CAArC,CAA6D,MAA7D;AAAsEv0B,CAAtE,CAAgF,GAAhF,CADb,CAGA,OAAO4iE,EAAA,CAAIlnE,CAAJ,CANsC,CAtVzB,CA+VtBghC,OAAQA,QAAQ,CAAC7S,CAAD,CAAKvtB,CAAL,CAAY,CAC1B,GAAKutB,CAAL,CAEA,MADA,KAAA2yB,QAAA,EAAAtV,KAAAvmC,KAAA,CAAyBkpB,CAAzB,CAA6B,GAA7B,CAAkCvtB,CAAlC,CAAyC,GAAzC,CACOutB,CAAAA,CAHmB,CA/VN,CAqWtB9c,OAAQA,QAAQ,CAAC+3D,CAAD,CAAa,CACtB,IAAAx+C,MAAA8/B,QAAAxqD,eAAA,CAAkCkpE,CAAlC,CAAL,GACE,IAAAx+C,MAAA8/B,QAAA,CAAmB0e,CAAnB,CADF,CACmC,IAAApC,OAAA,CAAY,CAAA,CAAZ,CADnC,CAGA,OAAO,KAAAp8C,MAAA8/B,QAAA,CAAmB0e,CAAnB,CAJoB,CArWP,CA4WtB1yB,UAAWA,QAAQ,CAACvoB,CAAD,CAAKk7C,CAAL,CAAmB,CACpC,MAAO,YAAP,CAAsBl7C,CAAtB,CAA2B,GAA3B,CAAiC,IAAA0e,OAAA,CAAYw8B,CAAZ,CAAjC,CAA6D,GADzB,CA5WhB,CAgXtBX,KAAMA,QAAQ,CAACjxB,CAAD,CAAOC,CAAP,CAAc,CAC1B,MAAO,OAAP,CAAiBD,CAAjB,CAAwB,GAAxB,CAA8BC,CAA9B,CAAsC,GADZ,CAhXN,CAoXtB6vB,QAASA,QAAQ,CAACp5C,CAAD,CAAK,CACpB,IAAA2yB,QAAA,EAAAtV,KAAAvmC,KAAA,CAAyB,SAAzB,CAAoCkpB,CAApC,CAAwC,GAAxC,CADoB,CApXA,CAwXtBm6C,IAAKA,QAAQ,CAACzkE,CAAD,CAAOg0C,CAAP,CAAkBC,CAAlB,CAA8B,CACzC,GAAa,CAAA,CAAb,GAAIj0C,CAAJ,CACEg0C,CAAA,EADF,KAEO,CACL,IAAIrM,EAAO,IAAAsV,QAAA,EAAAtV,KACXA,EAAAvmC,KAAA,CAAU,KAAV,CAAiBpB,CAAjB,CAAuB,IAAvB,CACAg0C,EAAA,EACArM,EAAAvmC,KAAA,CAAU,GAAV,CACI6yC;CAAJ,GACEtM,CAAAvmC,KAAA,CAAU,OAAV,CAEA,CADA6yC,CAAA,EACA,CAAAtM,CAAAvmC,KAAA,CAAU,GAAV,CAHF,CALK,CAHkC,CAxXrB,CAwYtB0jE,IAAKA,QAAQ,CAACtkC,CAAD,CAAa,CACxB,MAAO,IAAP,CAAcA,CAAd,CAA2B,GADH,CAxYJ,CA4YtB0kC,QAASA,QAAQ,CAAC1kC,CAAD,CAAa,CAC5B,MAAOA,EAAP,CAAoB,QADQ,CA5YR,CAgZtBwkC,kBAAmBA,QAAQ,CAACpxB,CAAD,CAAOC,CAAP,CAAc,CACvC,MAAOD,EAAP,CAAc,GAAd,CAAoBC,CADmB,CAhZnB,CAoZtB8wB,eAAgBA,QAAQ,CAAC/wB,CAAD,CAAOC,CAAP,CAAc,CACpC,MAAOD,EAAP,CAAc,GAAd,CAAoBC,CAApB,CAA4B,GADQ,CApZhB,CAwZtByxB,OAAQA,QAAQ,CAAC1xB,CAAD,CAAOC,CAAP,CAAcQ,CAAd,CAAwB,CACtC,MAAIA,EAAJ,CAAqB,IAAAswB,eAAA,CAAoB/wB,CAApB,CAA0BC,CAA1B,CAArB,CACO,IAAAmxB,kBAAA,CAAuBpxB,CAAvB,CAA6BC,CAA7B,CAF+B,CAxZlB,CA6ZtBoxB,oBAAqBA,QAAQ,CAAClpE,CAAD,CAAO,CAClC,IAAAkhD,QAAA,EAAAtV,KAAAvmC,KAAA,CAAyB,IAAAkxC,iBAAA,CAAsBv2C,CAAtB,CAAzB,CAAsD,GAAtD,CADkC,CA7Zd,CAiatBqpE,wBAAyBA,QAAQ,CAACrpE,CAAD,CAAO,CACtC,IAAAkhD,QAAA,EAAAtV,KAAAvmC,KAAA,CAAyB,IAAA8wC,qBAAA,CAA0Bn2C,CAA1B,CAAzB,CAA0D,GAA1D,CADsC,CAjalB,CAqatBspE,sBAAuBA,QAAQ,CAACtpE,CAAD,CAAO,CACpC,IAAAkhD,QAAA,EAAAtV,KAAAvmC,KAAA,CAAyB,IAAAoxC,mBAAA,CAAwBz2C,CAAxB,CAAzB;AAAwD,GAAxD,CADoC,CArahB,CAyatBopE,2BAA4BA,QAAQ,CAACppE,CAAD,CAAO,CACzC,IAAAkhD,QAAA,EAAAtV,KAAAvmC,KAAA,CAAyB,IAAAwxC,wBAAA,CAA6B72C,CAA7B,CAAzB,CAA6D,GAA7D,CADyC,CAzarB,CA6atBu2C,iBAAkBA,QAAQ,CAACv2C,CAAD,CAAO,CAC/B,MAAO,mBAAP,CAA6BA,CAA7B,CAAoC,QADL,CA7aX,CAibtBm2C,qBAAsBA,QAAQ,CAACn2C,CAAD,CAAO,CACnC,MAAO,uBAAP,CAAiCA,CAAjC,CAAwC,QADL,CAjbf,CAqbtBy2C,mBAAoBA,QAAQ,CAACz2C,CAAD,CAAO,CACjC,MAAO,qBAAP,CAA+BA,CAA/B,CAAsC,QADL,CArbb,CAybtBs2C,eAAgBA,QAAQ,CAACt2C,CAAD,CAAO,CAC7B,IAAAohC,OAAA,CAAYphC,CAAZ,CAAkB,iBAAlB,CAAsCA,CAAtC,CAA6C,GAA7C,CAD6B,CAzbT,CA6btB62C,wBAAyBA,QAAQ,CAAC72C,CAAD,CAAO,CACtC,MAAO,0BAAP,CAAoCA,CAApC,CAA2C,QADL,CA7blB,CAictB6oE,YAAaA,QAAQ,CAAC3xB,CAAD,CAAM4wB,CAAN,CAAcS,CAAd,CAAsBC,CAAtB,CAAmCvlE,CAAnC,CAA2CwlE,CAA3C,CAA6D,CAChF,IAAIrhE;AAAO,IACX,OAAO,SAAQ,EAAG,CAChBA,CAAAsgE,QAAA,CAAaxwB,CAAb,CAAkB4wB,CAAlB,CAA0BS,CAA1B,CAAkCC,CAAlC,CAA+CvlE,CAA/C,CAAuDwlE,CAAvD,CADgB,CAF8D,CAjc5D,CAwctBE,WAAYA,QAAQ,CAACp6C,CAAD,CAAKvtB,CAAL,CAAY,CAC9B,IAAIoG,EAAO,IACX,OAAO,SAAQ,EAAG,CAChBA,CAAAg6B,OAAA,CAAY7S,CAAZ,CAAgBvtB,CAAhB,CADgB,CAFY,CAxcV,CA+ctB0oE,kBAAmB,gBA/cG,CAidtBC,eAAgBA,QAAQ,CAACC,CAAD,CAAI,CAC1B,MAAO,KAAP,CAAepnE,CAAC,MAADA,CAAUonE,CAAAC,WAAA,CAAa,CAAb,CAAAtmE,SAAA,CAAyB,EAAzB,CAAVf,OAAA,CAA+C,EAA/C,CADW,CAjdN,CAqdtByqC,OAAQA,QAAQ,CAACjsC,CAAD,CAAQ,CACtB,GAAItB,CAAA,CAASsB,CAAT,CAAJ,CAAqB,MAAO,GAAP,CAAaA,CAAAqH,QAAA,CAAc,IAAAqhE,kBAAd,CAAsC,IAAAC,eAAtC,CAAb,CAA0E,GAC/F,IAAI7pE,CAAA,CAASkB,CAAT,CAAJ,CAAqB,MAAOA,EAAAuC,SAAA,EAC5B,IAAc,CAAA,CAAd,GAAIvC,CAAJ,CAAoB,MAAO,MAC3B,IAAc,CAAA,CAAd,GAAIA,CAAJ,CAAqB,MAAO,OAC5B,IAAc,IAAd,GAAIA,CAAJ,CAAoB,MAAO,MAC3B,IAAqB,WAArB,GAAI,MAAOA,EAAX,CAAkC,MAAO,WAEzC,MAAMq1C,GAAA,CAAa,KAAb,CAAN,CARsB,CArdF,CAgetB+wB,OAAQA,QAAQ,CAAC0C,CAAD;AAAOC,CAAP,CAAa,CAC3B,IAAIx7C,EAAK,GAALA,CAAY,IAAAvD,MAAAo8C,OAAA,EACX0C,EAAL,EACE,IAAA5oB,QAAA,EAAAmmB,KAAAhiE,KAAA,CAAyBkpB,CAAzB,EAA+Bw7C,CAAA,CAAO,GAAP,CAAaA,CAAb,CAAoB,EAAnD,EAEF,OAAOx7C,EALoB,CAheP,CAwetB2yB,QAASA,QAAQ,EAAG,CAClB,MAAO,KAAAl2B,MAAA,CAAW,IAAAA,MAAAy8C,UAAX,CADW,CAxeE,CAmfxBjuB,GAAAhyB,UAAA,CAA2B,CACzBpb,QAASA,QAAQ,CAACq4B,CAAD,CAAasV,CAAb,CAA8B,CAC7C,IAAI3yC,EAAO,IAAX,CACI8vC,EAAM,IAAAqC,WAAArC,IAAA,CAAoBzS,CAApB,CACV,KAAAA,WAAA,CAAkBA,CAClB,KAAAsV,gBAAA,CAAuBA,CACvB9C,EAAA,CAAgCC,CAAhC,CAAqC9vC,CAAAkS,QAArC,CACA,KAAIiuD,CAAJ,CACInmC,CACJ,IAAKmmC,CAAL,CAAkBruB,EAAA,CAAchC,CAAd,CAAlB,CACE9V,CAAA,CAAS,IAAAsmC,QAAA,CAAaH,CAAb,CAEP9vB,EAAAA,CAAUsB,EAAA,CAAU7B,CAAAtL,KAAV,CACd,KAAIiP,CACApD,EAAJ,GACEoD,CACA,CADS,EACT,CAAA56C,CAAA,CAAQw3C,CAAR,CAAiB,QAAQ,CAAC+L,CAAD,CAAQpjD,CAAR,CAAa,CACpC,IAAIsS,EAAQtL,CAAAsgE,QAAA,CAAalkB,CAAb,CACZA,EAAA9wC,MAAA,CAAcA,CACdmoC,EAAAx1C,KAAA,CAAYqN,CAAZ,CACA8wC,EAAAukB,QAAA,CAAgB3nE,CAJoB,CAAtC,CAFF,CASA,KAAIm/B,EAAc,EAClBt/B,EAAA,CAAQi3C,CAAAtL,KAAR,CAAkB,QAAQ,CAACnH,CAAD,CAAa,CACrClF,CAAAl6B,KAAA,CAAiB+B,CAAAsgE,QAAA,CAAajjC,CAAAA,WAAb,CAAjB,CADqC,CAAvC,CAGIp9B,EAAAA,CAAyB,CAApB,GAAA6vC,CAAAtL,KAAAhsC,OAAA,CAAwB,QAAQ,EAAG,EAAnC;AACoB,CAApB,GAAAs3C,CAAAtL,KAAAhsC,OAAA,CAAwB2/B,CAAA,CAAY,CAAZ,CAAxB,CACA,QAAQ,CAACpzB,CAAD,CAAQgb,CAAR,CAAgB,CACtB,IAAI2Z,CACJ7gC,EAAA,CAAQs/B,CAAR,CAAqB,QAAQ,CAAC0O,CAAD,CAAM,CACjCnN,CAAA,CAAYmN,CAAA,CAAI9hC,CAAJ,CAAWgb,CAAX,CADqB,CAAnC,CAGA,OAAO2Z,EALe,CAO7BM,EAAJ,GACE/5B,CAAA+5B,OADF,CACc4oC,QAAQ,CAAC79D,CAAD,CAAQnL,CAAR,CAAemmB,CAAf,CAAuB,CACzC,MAAOia,EAAA,CAAOj1B,CAAP,CAAcgb,CAAd,CAAsBnmB,CAAtB,CADkC,CAD7C,CAKI65C,EAAJ,GACExzC,CAAAwzC,OADF,CACcA,CADd,CAGAxzC,EAAA85B,QAAA,CAAakY,EAAA,CAAUnC,CAAV,CACb7vC,EAAAiK,SAAA,CAAyB4lC,CAxiBpB5lC,SAyiBL,OAAOjK,EA7CsC,CADtB,CAiDzBqgE,QAASA,QAAQ,CAACxwB,CAAD,CAAM/2C,CAAN,CAAe8C,CAAf,CAAuB,CAAA,IAClC40C,CADkC,CAC5BC,CAD4B,CACrB1wC,EAAO,IADc,CACRge,CAC9B,IAAI8xB,CAAAxkC,MAAJ,CACE,MAAO,KAAAmoC,OAAA,CAAY3D,CAAAxkC,MAAZ,CAAuBwkC,CAAA6wB,QAAvB,CAET,QAAQ7wB,CAAAx3B,KAAR,EACA,KAAK23B,CAAAG,QAAL,CACE,MAAO,KAAAx2C,MAAA,CAAWk2C,CAAAl2C,MAAX,CAAsBb,CAAtB,CACT,MAAKk3C,CAAAK,gBAAL,CAEE,MADAI,EACO,CADC,IAAA4vB,QAAA,CAAaxwB,CAAAS,SAAb,CACD,CAAA,IAAA,CAAK,OAAL,CAAeT,CAAAkC,SAAf,CAAA,CAA6BtB,CAA7B,CAAoC33C,CAApC,CACT,MAAKk3C,CAAAO,iBAAL,CAGE,MAFAC,EAEO,CAFA,IAAA6vB,QAAA,CAAaxwB,CAAAW,KAAb,CAEA,CADPC,CACO,CADC,IAAA4vB,QAAA,CAAaxwB,CAAAY,MAAb,CACD;AAAA,IAAA,CAAK,QAAL,CAAgBZ,CAAAkC,SAAhB,CAAA,CAA8BvB,CAA9B,CAAoCC,CAApC,CAA2C33C,CAA3C,CACT,MAAKk3C,CAAAU,kBAAL,CAGE,MAFAF,EAEO,CAFA,IAAA6vB,QAAA,CAAaxwB,CAAAW,KAAb,CAEA,CADPC,CACO,CADC,IAAA4vB,QAAA,CAAaxwB,CAAAY,MAAb,CACD,CAAA,IAAA,CAAK,QAAL,CAAgBZ,CAAAkC,SAAhB,CAAA,CAA8BvB,CAA9B,CAAoCC,CAApC,CAA2C33C,CAA3C,CACT,MAAKk3C,CAAAW,sBAAL,CACE,MAAO,KAAA,CAAK,WAAL,CAAA,CACL,IAAA0vB,QAAA,CAAaxwB,CAAAjzC,KAAb,CADK,CAEL,IAAAyjE,QAAA,CAAaxwB,CAAAe,UAAb,CAFK,CAGL,IAAAyvB,QAAA,CAAaxwB,CAAAgB,WAAb,CAHK,CAIL/3C,CAJK,CAMT,MAAKk3C,CAAAc,WAAL,CAEE,MADAhC,GAAA,CAAqBe,CAAAhsC,KAArB,CAA+B9D,CAAAq9B,WAA/B,CACO,CAAAr9B,CAAAozB,WAAA,CAAgB0c,CAAAhsC,KAAhB,CACgB9D,CAAA2yC,gBADhB,EACwCN,EAAA,CAA8BvC,CAAAhsC,KAA9B,CADxC,CAEgB/K,CAFhB,CAEyB8C,CAFzB,CAEiCmE,CAAAq9B,WAFjC,CAGT,MAAK4S,CAAAe,iBAAL,CAOE,MANAP,EAMO,CANA,IAAA6vB,QAAA,CAAaxwB,CAAAmB,OAAb,CAAyB,CAAA,CAAzB,CAAgC,CAAEp1C,CAAAA,CAAlC,CAMA,CALFi0C,CAAAoB,SAKE,GAJLnC,EAAA,CAAqBe,CAAAje,SAAA/tB,KAArB,CAAwC9D,CAAAq9B,WAAxC,CACA;AAAAqT,CAAA,CAAQZ,CAAAje,SAAA/tB,KAGH,EADHgsC,CAAAoB,SACG,GADWR,CACX,CADmB,IAAA4vB,QAAA,CAAaxwB,CAAAje,SAAb,CACnB,EAAAie,CAAAoB,SAAA,CACL,IAAAswB,eAAA,CAAoB/wB,CAApB,CAA0BC,CAA1B,CAAiC33C,CAAjC,CAA0C8C,CAA1C,CAAkDmE,CAAAq9B,WAAlD,CADK,CAEL,IAAAwkC,kBAAA,CAAuBpxB,CAAvB,CAA6BC,CAA7B,CAAoC1wC,CAAA2yC,gBAApC,CAA0D55C,CAA1D,CAAmE8C,CAAnE,CAA2EmE,CAAAq9B,WAA3E,CACJ,MAAK4S,CAAAkB,eAAL,CAOE,MANAnzB,EAMO,CANA,EAMA,CALPnlB,CAAA,CAAQi3C,CAAAz0C,UAAR,CAAuB,QAAQ,CAAC80C,CAAD,CAAO,CACpCnyB,CAAA/f,KAAA,CAAU+B,CAAAsgE,QAAA,CAAanwB,CAAb,CAAV,CADoC,CAAtC,CAKO,CAFHL,CAAAzlC,OAEG,GAFSqmC,CAET,CAFiB,IAAAx+B,QAAA,CAAa49B,CAAAsB,OAAAttC,KAAb,CAEjB,EADFgsC,CAAAzlC,OACE,GADUqmC,CACV,CADkB,IAAA4vB,QAAA,CAAaxwB,CAAAsB,OAAb,CAAyB,CAAA,CAAzB,CAClB,EAAAtB,CAAAzlC,OAAA,CACL,QAAQ,CAACtF,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CAEtC,IADA,IAAIjX,EAAS,EAAb,CACS/iC,EAAI,CAAb,CAAgBA,CAAhB,CAAoBukB,CAAAxlB,OAApB,CAAiC,EAAEiB,CAAnC,CACE+iC,CAAAv+B,KAAA,CAAY+f,CAAA,CAAKvkB,CAAL,CAAA,CAAQsL,CAAR,CAAegb,CAAf,CAAuBia,CAAvB,CAA+ByZ,CAA/B,CAAZ,CAEE75C,EAAAA,CAAQ82C,CAAAtwC,MAAA,CAAYpI,CAAZ,CAAuBwkC,CAAvB,CAA+BiX,CAA/B,CACZ,OAAO16C,EAAA,CAAU,CAACA,QAASf,CAAV,CAAqB8L,KAAM9L,CAA3B,CAAsC4B,MAAOA,CAA7C,CAAV,CAAgEA,CANjC,CADnC,CASL,QAAQ,CAACmL,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACtC,IAAIovB;AAAMnyB,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAAV,CACI75C,CACJ,IAAiB,IAAjB,EAAIipE,CAAAjpE,MAAJ,CAAuB,CACrBu1C,EAAA,CAAiB0zB,CAAA9pE,QAAjB,CAA8BiH,CAAAq9B,WAA9B,CACAgS,GAAA,CAAmBwzB,CAAAjpE,MAAnB,CAA8BoG,CAAAq9B,WAA9B,CACIb,EAAAA,CAAS,EACb,KAAS,IAAA/iC,EAAI,CAAb,CAAgBA,CAAhB,CAAoBukB,CAAAxlB,OAApB,CAAiC,EAAEiB,CAAnC,CACE+iC,CAAAv+B,KAAA,CAAYkxC,EAAA,CAAiBnxB,CAAA,CAAKvkB,CAAL,CAAA,CAAQsL,CAAR,CAAegb,CAAf,CAAuBia,CAAvB,CAA+ByZ,CAA/B,CAAjB,CAAyDzzC,CAAAq9B,WAAzD,CAAZ,CAEFzjC,EAAA,CAAQu1C,EAAA,CAAiB0zB,CAAAjpE,MAAAwG,MAAA,CAAgByiE,CAAA9pE,QAAhB,CAA6ByjC,CAA7B,CAAjB,CAAuDx8B,CAAAq9B,WAAvD,CAPa,CASvB,MAAOtkC,EAAA,CAAU,CAACa,MAAOA,CAAR,CAAV,CAA2BA,CAZI,CAc5C,MAAKq2C,CAAAoB,qBAAL,CAGE,MAFAZ,EAEO,CAFA,IAAA6vB,QAAA,CAAaxwB,CAAAW,KAAb,CAAuB,CAAA,CAAvB,CAA6B,CAA7B,CAEA,CADPC,CACO,CADC,IAAA4vB,QAAA,CAAaxwB,CAAAY,MAAb,CACD,CAAA,QAAQ,CAAC3rC,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CAC7C,IAAIqvB,EAAMryB,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CACNovB,EAAAA,CAAMnyB,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACVtE,GAAA,CAAiB2zB,CAAAlpE,MAAjB,CAA4BoG,CAAAq9B,WAA5B,CACAoS,GAAA,CAAwBqzB,CAAA/pE,QAAxB,CACA+pE,EAAA/pE,QAAA,CAAY+pE,CAAAh/D,KAAZ,CAAA,CAAwB++D,CACxB,OAAO9pE,EAAA,CAAU,CAACa,MAAOipE,CAAR,CAAV,CAAyBA,CANa,CAQjD,MAAK5yB,CAAAqB,gBAAL,CAKE,MAJAtzB,EAIO,CAJA,EAIA,CAHPnlB,CAAA,CAAQi3C,CAAA71B,SAAR,CAAsB,QAAQ,CAACk2B,CAAD,CAAO,CACnCnyB,CAAA/f,KAAA,CAAU+B,CAAAsgE,QAAA,CAAanwB,CAAb,CAAV,CADmC,CAArC,CAGO;AAAA,QAAQ,CAACprC,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CAE7C,IADA,IAAI75C,EAAQ,EAAZ,CACSH,EAAI,CAAb,CAAgBA,CAAhB,CAAoBukB,CAAAxlB,OAApB,CAAiC,EAAEiB,CAAnC,CACEG,CAAAqE,KAAA,CAAW+f,CAAA,CAAKvkB,CAAL,CAAA,CAAQsL,CAAR,CAAegb,CAAf,CAAuBia,CAAvB,CAA+ByZ,CAA/B,CAAX,CAEF,OAAO16C,EAAA,CAAU,CAACa,MAAOA,CAAR,CAAV,CAA2BA,CALW,CAOjD,MAAKq2C,CAAAsB,iBAAL,CASE,MARAvzB,EAQO,CARA,EAQA,CAPPnlB,CAAA,CAAQi3C,CAAA0B,WAAR,CAAwB,QAAQ,CAAC3f,CAAD,CAAW,CACzC7T,CAAA/f,KAAA,CAAU,CAACjF,IAAK64B,CAAA74B,IAAAsf,KAAA,GAAsB23B,CAAAc,WAAtB,CACAlf,CAAA74B,IAAA8K,KADA,CAEC,EAFD,CAEM+tB,CAAA74B,IAAAY,MAFZ,CAGCA,MAAOoG,CAAAsgE,QAAA,CAAazuC,CAAAj4B,MAAb,CAHR,CAAV,CADyC,CAA3C,CAOO,CAAA,QAAQ,CAACmL,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CAE7C,IADA,IAAI75C,EAAQ,EAAZ,CACSH,EAAI,CAAb,CAAgBA,CAAhB,CAAoBukB,CAAAxlB,OAApB,CAAiC,EAAEiB,CAAnC,CACEG,CAAA,CAAMokB,CAAA,CAAKvkB,CAAL,CAAAT,IAAN,CAAA,CAAqBglB,CAAA,CAAKvkB,CAAL,CAAAG,MAAA,CAAcmL,CAAd,CAAqBgb,CAArB,CAA6Bia,CAA7B,CAAqCyZ,CAArC,CAEvB,OAAO16C,EAAA,CAAU,CAACa,MAAOA,CAAR,CAAV,CAA2BA,CALW,CAOjD,MAAKq2C,CAAAwB,eAAL,CACE,MAAO,SAAQ,CAAC1sC,CAAD,CAAQ,CACrB,MAAOhM,EAAA,CAAU,CAACa,MAAOmL,CAAR,CAAV,CAA2BA,CADb,CAGzB,MAAKkrC,CAAAyB,iBAAL,CACE,MAAO,SAAQ,CAAC3sC,CAAD,CAAQgb,CAAR,CAAgB,CAC7B,MAAOhnB,EAAA,CAAU,CAACa,MAAOmmB,CAAR,CAAV,CAA4BA,CADN,CAGjC,MAAKkwB,CAAA8B,iBAAL,CACE,MAAO,SAAQ,CAAChtC,CAAD;AAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CAC7C,MAAO16C,EAAA,CAAU,CAACa,MAAOogC,CAAR,CAAV,CAA4BA,CADU,CAlHjD,CALsC,CAjDf,CA8KzB,SAAU+oC,QAAQ,CAACxyB,CAAD,CAAWx3C,CAAX,CAAoB,CACpC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM4oC,CAAA,CAASxrC,CAAT,CAAgBgb,CAAhB,CAAwBia,CAAxB,CAAgCyZ,CAAhC,CAER9rC,EAAA,CADEtL,CAAA,CAAUsL,CAAV,CAAJ,CACQ,CAACA,CADT,CAGQ,CAER,OAAO5O,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAPa,CADX,CA9Kb,CAyLzB,SAAUq7D,QAAQ,CAACzyB,CAAD,CAAWx3C,CAAX,CAAoB,CACpC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM4oC,CAAA,CAASxrC,CAAT,CAAgBgb,CAAhB,CAAwBia,CAAxB,CAAgCyZ,CAAhC,CAER9rC,EAAA,CADEtL,CAAA,CAAUsL,CAAV,CAAJ,CACQ,CAACA,CADT,CAGQ,CAER,OAAO5O,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAPa,CADX,CAzLb,CAoMzB,SAAUs7D,QAAQ,CAAC1yB,CAAD,CAAWx3C,CAAX,CAAoB,CACpC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM,CAAC4oC,CAAA,CAASxrC,CAAT,CAAgBgb,CAAhB,CAAwBia,CAAxB,CAAgCyZ,CAAhC,CACX,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADX,CApMb,CA0MzB,UAAWu7D,QAAQ,CAACzyB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACxC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CAC7C,IAAIqvB,EAAMryB,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CACNovB,EAAAA,CAAMnyB,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACN9rC,EAAAA,CAAMgoC,EAAA,CAAOmzB,CAAP,CAAYD,CAAZ,CACV,OAAO9pE,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAJa,CADP,CA1MjB,CAkNzB,UAAWw7D,QAAQ,CAAC1yB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACxC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CAC7C,IAAIqvB,EAAMryB,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CACNovB,EAAAA,CAAMnyB,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACN9rC;CAAAA,EAAOtL,CAAA,CAAUymE,CAAV,CAAA,CAAiBA,CAAjB,CAAuB,CAA9Bn7D,GAAoCtL,CAAA,CAAUwmE,CAAV,CAAA,CAAiBA,CAAjB,CAAuB,CAA3Dl7D,CACJ,OAAO5O,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAJa,CADP,CAlNjB,CA0NzB,UAAWy7D,QAAQ,CAAC3yB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACxC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,CAA4C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAChD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADP,CA1NjB,CAgOzB,UAAW07D,QAAQ,CAAC5yB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACxC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,CAA4C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAChD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADP,CAhOjB,CAsOzB,UAAW27D,QAAQ,CAAC7yB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACxC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,CAA4C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAChD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADP,CAtOjB,CA4OzB,YAAa47D,QAAQ,CAAC9yB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CAC1C,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,GAA8C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAClD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADL,CA5OnB,CAkPzB,YAAa67D,QAAQ,CAAC/yB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CAC1C,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL;AAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,GAA8C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAClD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADL,CAlPnB,CAwPzB,WAAY87D,QAAQ,CAAChzB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACzC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,EAA6C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACjD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADN,CAxPlB,CA8PzB,WAAY+7D,QAAQ,CAACjzB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACzC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,EAA6C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACjD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADN,CA9PlB,CAoQzB,UAAWg8D,QAAQ,CAAClzB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACxC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,CAA4C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAChD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADP,CApQjB,CA0QzB,UAAWi8D,QAAQ,CAACnzB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACxC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,CAA4C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAChD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADP,CA1QjB,CAgRzB,WAAYk8D,QAAQ,CAACpzB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACzC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB;AAA4ByZ,CAA5B,CAAN9rC,EAA6C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACjD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADN,CAhRlB,CAsRzB,WAAYm8D,QAAQ,CAACrzB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACzC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,EAA6C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACjD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADN,CAtRlB,CA4RzB,WAAYo8D,QAAQ,CAACtzB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACzC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,EAA6C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACjD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADN,CA5RlB,CAkSzB,WAAYq8D,QAAQ,CAACvzB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB,CACzC,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM8oC,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAN9rC,EAA6C+oC,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CACjD,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADN,CAlSlB,CAwSzB,YAAas8D,QAAQ,CAACpnE,CAAD,CAAOg0C,CAAP,CAAkBC,CAAlB,CAA8B/3C,CAA9B,CAAuC,CAC1D,MAAO,SAAQ,CAACgM,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9rC,CAAAA,CAAM9K,CAAA,CAAKkI,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAA,CAAsC5C,CAAA,CAAU9rC,CAAV,CAAiBgb,CAAjB,CAAyBia,CAAzB,CAAiCyZ,CAAjC,CAAtC,CAAiF3C,CAAA,CAAW/rC,CAAX,CAAkBgb,CAAlB,CAA0Bia,CAA1B,CAAkCyZ,CAAlC,CAC3F,OAAO16C,EAAA,CAAU,CAACa,MAAO+N,CAAR,CAAV,CAAyBA,CAFa,CADW,CAxSnC,CA8SzB/N,MAAOA,QAAQ,CAACA,CAAD,CAAQb,CAAR,CAAiB,CAC9B,MAAO,SAAQ,EAAG,CAAE,MAAOA,EAAA,CAAU,CAACA,QAASf,CAAV;AAAqB8L,KAAM9L,CAA3B,CAAsC4B,MAAOA,CAA7C,CAAV,CAAgEA,CAAzE,CADY,CA9SP,CAiTzBw5B,WAAYA,QAAQ,CAACtvB,CAAD,CAAO6uC,CAAP,CAAwB55C,CAAxB,CAAiC8C,CAAjC,CAAyCwhC,CAAzC,CAAqD,CACvE,MAAO,SAAQ,CAACt4B,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzC9H,CAAAA,CAAO5rB,CAAA,EAAWjc,CAAX,GAAmBic,EAAnB,CAA6BA,CAA7B,CAAsChb,CAC7ClJ,EAAJ,EAAyB,CAAzB,GAAcA,CAAd,EAA8B8vC,CAA9B,EAAwC,CAAAA,CAAA,CAAK7nC,CAAL,CAAxC,GACE6nC,CAAA,CAAK7nC,CAAL,CADF,CACe,EADf,CAGIlK,EAAAA,CAAQ+xC,CAAA,CAAOA,CAAA,CAAK7nC,CAAL,CAAP,CAAoB9L,CAC5B26C,EAAJ,EACExD,EAAA,CAAiBv1C,CAAjB,CAAwByjC,CAAxB,CAEF,OAAItkC,EAAJ,CACS,CAACA,QAAS4yC,CAAV,CAAgB7nC,KAAMA,CAAtB,CAA4BlK,MAAOA,CAAnC,CADT,CAGSA,CAZoC,CADwB,CAjThD,CAkUzB4nE,eAAgBA,QAAQ,CAAC/wB,CAAD,CAAOC,CAAP,CAAc33C,CAAd,CAAuB8C,CAAvB,CAA+BwhC,CAA/B,CAA2C,CACjE,MAAO,SAAQ,CAACt4B,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CAC7C,IAAIqvB,EAAMryB,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CAAV,CACIovB,CADJ,CAEIjpE,CACO,KAAX,EAAIkpE,CAAJ,GACED,CAUA,CAVMnyB,CAAA,CAAM3rC,CAAN,CAAagb,CAAb,CAAqBia,CAArB,CAA6ByZ,CAA7B,CAUN,CATAovB,CASA,EA1hDQ,EA0hDR,CARA9zB,EAAA,CAAqB8zB,CAArB,CAA0BxlC,CAA1B,CAQA,CAPIxhC,CAOJ,EAPyB,CAOzB,GAPcA,CAOd,GANE4zC,EAAA,CAAwBqzB,CAAxB,CACA,CAAIA,CAAJ,EAAa,CAAAA,CAAA,CAAID,CAAJ,CAAb,GACEC,CAAA,CAAID,CAAJ,CADF,CACa,EADb,CAKF,EADAjpE,CACA,CADQkpE,CAAA,CAAID,CAAJ,CACR,CAAA1zB,EAAA,CAAiBv1C,CAAjB,CAAwByjC,CAAxB,CAXF,CAaA,OAAItkC,EAAJ,CACS,CAACA,QAAS+pE,CAAV,CAAeh/D,KAAM++D,CAArB,CAA0BjpE,MAAOA,CAAjC,CADT,CAGSA,CApBoC,CADkB,CAlU1C,CA2VzBioE,kBAAmBA,QAAQ,CAACpxB,CAAD,CAAOC,CAAP,CAAciC,CAAd,CAA+B55C,CAA/B,CAAwC8C,CAAxC,CAAgDwhC,CAAhD,CAA4D,CACrF,MAAO,SAAQ,CAACt4B,CAAD,CAAQgb,CAAR,CAAgBia,CAAhB,CAAwByZ,CAAxB,CAAgC,CACzCqvB,CAAAA,CAAMryB,CAAA,CAAK1rC,CAAL,CAAYgb,CAAZ,CAAoBia,CAApB,CAA4ByZ,CAA5B,CACN53C,EAAJ,EAAyB,CAAzB,GAAcA,CAAd,GACE4zC,EAAA,CAAwBqzB,CAAxB,CACA,CAAIA,CAAJ,EAAa,CAAAA,CAAA,CAAIpyB,CAAJ,CAAb;CACEoyB,CAAA,CAAIpyB,CAAJ,CADF,CACe,EADf,CAFF,CAMI92C,EAAAA,CAAe,IAAP,EAAAkpE,CAAA,CAAcA,CAAA,CAAIpyB,CAAJ,CAAd,CAA2B14C,CACvC,EAAI26C,CAAJ,EAAuBN,EAAA,CAA8B3B,CAA9B,CAAvB,GACEvB,EAAA,CAAiBv1C,CAAjB,CAAwByjC,CAAxB,CAEF,OAAItkC,EAAJ,CACS,CAACA,QAAS+pE,CAAV,CAAeh/D,KAAM4sC,CAArB,CAA4B92C,MAAOA,CAAnC,CADT,CAGSA,CAfoC,CADsC,CA3V9D,CA+WzB65C,OAAQA,QAAQ,CAACnoC,CAAD,CAAQq1D,CAAR,CAAiB,CAC/B,MAAO,SAAQ,CAAC57D,CAAD,CAAQnL,CAAR,CAAemmB,CAAf,CAAuB0zB,CAAvB,CAA+B,CAC5C,MAAIA,EAAJ,CAAmBA,CAAA,CAAOktB,CAAP,CAAnB,CACOr1D,CAAA,CAAMvG,CAAN,CAAanL,CAAb,CAAoBmmB,CAApB,CAFqC,CADf,CA/WR,CA0X3B,KAAIuzB,GAASA,QAAQ,CAACH,CAAD,CAAQjhC,CAAR,CAAiB8Q,CAAjB,CAA0B,CAC7C,IAAAmwB,MAAA,CAAaA,CACb,KAAAjhC,QAAA,CAAeA,CACf,KAAA8Q,QAAA,CAAeA,CACf,KAAA8sB,IAAA,CAAW,IAAIG,CAAJ,CAAQ,IAAAkD,MAAR,CACX,KAAA+wB,YAAA,CAAmBlhD,CAAAlY,IAAA,CAAc,IAAIsnC,EAAJ,CAAmB,IAAAtC,IAAnB,CAA6B59B,CAA7B,CAAd,CACc,IAAIggC,EAAJ,CAAgB,IAAApC,IAAhB,CAA0B59B,CAA1B,CANY,CAS/CohC,GAAAlzB,UAAA,CAAmB,CACjB5hB,YAAa80C,EADI,CAGjBzyC,MAAOA,QAAQ,CAAC62B,CAAD,CAAO,CACpB,MAAO,KAAAwsC,YAAAl/D,QAAA,CAAyB0yB,CAAzB,CAA+B,IAAA1U,QAAA2vB,gBAA/B,CADa,CAHL,CAYnB,KAAIJ,GAAgB95C,MAAA2nB,UAAAxlB,QAApB,CAw1EIsjD,GAAajmD,CAAA,CAAO,MAAP,CAx1EjB,CA01EIsmD,GAAe,CACjBhmB,KAAM,MADW,CAEjBinB,IAAK,KAFY,CAGjBC,IAAK,KAHY;AAMjBjnB,aAAc,aANG,CAOjBknB,GAAI,IAPa,CA11EnB,CA88GIn3B,GAAiBtwB,CAAA,CAAO,UAAP,CA98GrB,CAoxHI+qD,EAAiBjrD,CAAAwe,cAAA,CAAuB,GAAvB,CApxHrB,CAqxHI2sC,GAAY7d,EAAA,CAAWvtC,CAAA6N,SAAAkf,KAAX,CAsLhBs+B,GAAAnjC,QAAA,CAAyB,CAAC,WAAD,CAyGzB7N,GAAA6N,QAAA,CAA0B,CAAC,UAAD,CA+T1B,KAAIwmC,GAAa,EAAjB,CACIR,GAAc,GADlB,CAEIO,GAAY,GAsDhB3C,GAAA5jC,QAAA,CAAyB,CAAC,SAAD,CAwEzBkkC,GAAAlkC,QAAA,CAAuB,CAAC,SAAD,CA+RvB,KAAIyqC,GAAe,CACjB+E,KAAMlH,EAAA,CAAW,UAAX,CAAuB,CAAvB,CADW,CAEf6b,GAAI7b,EAAA,CAAW,UAAX,CAAuB,CAAvB,CAA0B,CAA1B,CAA6B,CAAA,CAA7B,CAFW,CAGd8b,EAAG9b,EAAA,CAAW,UAAX,CAAuB,CAAvB,CAHW,CAIjB+b,KAAM9b,EAAA,CAAc,OAAd,CAJW,CAKhB+b,IAAK/b,EAAA,CAAc,OAAd,CAAuB,CAAA,CAAvB,CALW,CAMfkH,GAAInH,EAAA,CAAW,OAAX,CAAoB,CAApB,CAAuB,CAAvB,CANW,CAOdic,EAAGjc,EAAA,CAAW,OAAX,CAAoB,CAApB,CAAuB,CAAvB,CAPW,CAQfoH,GAAIpH,EAAA,CAAW,MAAX,CAAmB,CAAnB,CARW,CASd7oB,EAAG6oB,EAAA,CAAW,MAAX,CAAmB,CAAnB,CATW,CAUfqH,GAAIrH,EAAA,CAAW,OAAX,CAAoB,CAApB,CAVW,CAWdkc,EAAGlc,EAAA,CAAW,OAAX,CAAoB,CAApB,CAXW,CAYfmc,GAAInc,EAAA,CAAW,OAAX,CAAoB,CAApB,CAAwB,GAAxB,CAZW,CAadnuD,EAAGmuD,EAAA,CAAW,OAAX,CAAoB,CAApB,CAAwB,GAAxB,CAbW,CAcfuH,GAAIvH,EAAA,CAAW,SAAX,CAAsB,CAAtB,CAdW,CAed2B,EAAG3B,EAAA,CAAW,SAAX;AAAsB,CAAtB,CAfW,CAgBfwH,GAAIxH,EAAA,CAAW,SAAX,CAAsB,CAAtB,CAhBW,CAiBd4B,EAAG5B,EAAA,CAAW,SAAX,CAAsB,CAAtB,CAjBW,CAoBhB0H,IAAK1H,EAAA,CAAW,cAAX,CAA2B,CAA3B,CApBW,CAqBjBoc,KAAMnc,EAAA,CAAc,KAAd,CArBW,CAsBhBoc,IAAKpc,EAAA,CAAc,KAAd,CAAqB,CAAA,CAArB,CAtBW,CAuBdn9C,EAnCLw5D,QAAmB,CAACtjE,CAAD,CAAOgkD,CAAP,CAAgB,CACjC,MAAyB,GAAlB,CAAAhkD,CAAAsuD,SAAA,EAAA,CAAuBtK,CAAAuf,MAAA,CAAc,CAAd,CAAvB,CAA0Cvf,CAAAuf,MAAA,CAAc,CAAd,CADhB,CAYhB,CAwBdC,EAxELC,QAAuB,CAACzjE,CAAD,CAAOgkD,CAAP,CAAgB3vC,CAAhB,CAAwB,CACzCqvD,CAAAA,CAAQ,EAARA,CAAYrvD,CAMhB,OAHAsvD,EAGA,EAL0B,CAATA,EAACD,CAADC,CAAc,GAAdA,CAAoB,EAKrC,GAHc9c,EAAA,CAAUvyB,IAAA,CAAY,CAAP,CAAAovC,CAAA,CAAW,OAAX,CAAqB,MAA1B,CAAA,CAAkCA,CAAlC,CAAyC,EAAzC,CAAV,CAAwD,CAAxD,CAGd,CAFc7c,EAAA,CAAUvyB,IAAA2xB,IAAA,CAASyd,CAAT,CAAgB,EAAhB,CAAV,CAA+B,CAA/B,CAEd,CAP6C,CAgD5B,CAyBfE,GAAIrc,EAAA,CAAW,CAAX,CAzBW,CA0Bdsc,EAAGtc,EAAA,CAAW,CAAX,CA1BW,CA2Bduc,EAAGhc,EA3BW,CA4Bdic,GAAIjc,EA5BU,CA6Bdkc,IAAKlc,EA7BS,CA8Bdmc,KAlCLC,QAAsB,CAAClkE,CAAD,CAAOgkD,CAAP,CAAgB,CACpC,MAA6B,EAAtB,EAAAhkD,CAAAynD,YAAA,EAAA,CAA0BzD,CAAAmgB,SAAA,CAAiB,CAAjB,CAA1B,CAAgDngB,CAAAmgB,SAAA,CAAiB,CAAjB,CADnB,CAInB,CAAnB,CAiCIjb,GAAqB,sFAjCzB,CAkCID,GAAgB,UA+FpB1G,GAAA7jC,QAAA,CAAqB,CAAC,SAAD,CA8HrB;IAAIikC,GAAkBhoD,EAAA,CAAQsB,CAAR,CAAtB,CAWI6mD,GAAkBnoD,EAAA,CAAQ2O,EAAR,CAiUtBu5C,GAAAnkC,QAAA,CAAwB,CAAC,QAAD,CAiJxB,KAAI3U,GAAsBpP,EAAA,CAAQ,CAChCytB,SAAU,GADsB,CAEhC1kB,QAASA,QAAQ,CAAC1H,CAAD,CAAUN,CAAV,CAAgB,CAC/B,GAAK6nB,CAAA7nB,CAAA6nB,KAAL,EAAmB6gD,CAAA1oE,CAAA0oE,UAAnB,CACE,MAAO,SAAQ,CAAC3gE,CAAD,CAAQzH,CAAR,CAAiB,CAE9B,GAA0C,GAA1C,GAAIA,CAAA,CAAQ,CAAR,CAAAvC,SAAAsL,YAAA,EAAJ,CAAA,CAGA,IAAIwe,EAA+C,4BAAxC,GAAA1oB,EAAAhD,KAAA,CAAcmE,CAAAP,KAAA,CAAa,MAAb,CAAd,CAAA,CACA,YADA,CACe,MAC1BO,EAAAsJ,GAAA,CAAW,OAAX,CAAoB,QAAQ,CAAC2U,CAAD,CAAQ,CAE7Bje,CAAAN,KAAA,CAAa6nB,CAAb,CAAL,EACEtJ,CAAAgyB,eAAA,EAHgC,CAApC,CALA,CAF8B,CAFH,CAFD,CAAR,CAA1B,CA6VI/8B,GAA6B,EAGjC3X,EAAA,CAAQsiB,EAAR,CAAsB,QAAQ,CAACwqD,CAAD,CAAWh9C,CAAX,CAAqB,CAIjDi9C,QAASA,EAAa,CAAC7gE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAC3C+H,CAAAtI,OAAA,CAAaO,CAAA,CAAK6oE,CAAL,CAAb,CAA+BC,QAAiC,CAAClsE,CAAD,CAAQ,CACtEoD,CAAAq5B,KAAA,CAAU1N,CAAV,CAAoB,CAAE/uB,CAAAA,CAAtB,CADsE,CAAxE,CAD2C,CAF7C,GAAgB,UAAhB,EAAI+rE,CAAJ,CAAA,CAQA,IAAIE,EAAa12C,EAAA,CAAmB,KAAnB,CAA2BxG,CAA3B,CAAjB,CACI8H,EAASm1C,CAEI,UAAjB,GAAID,CAAJ,GACEl1C,CADF,CACWA,QAAQ,CAAC1rB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAElCA,CAAAiS,QAAJ,GAAqBjS,CAAA,CAAK6oE,CAAL,CAArB,EACED,CAAA,CAAc7gE,CAAd,CAAqBzH,CAArB;AAA8BN,CAA9B,CAHoC,CAD1C,CASAwT,GAAA,CAA2Bq1D,CAA3B,CAAA,CAAyC,QAAQ,EAAG,CAClD,MAAO,CACLn8C,SAAU,GADL,CAELF,SAAU,GAFL,CAGL5C,KAAM6J,CAHD,CAD2C,CApBpD,CAFiD,CAAnD,CAgCA53B,EAAA,CAAQyiC,EAAR,CAAsB,QAAQ,CAACyqC,CAAD,CAAW1iE,CAAX,CAAmB,CAC/CmN,EAAA,CAA2BnN,CAA3B,CAAA,CAAqC,QAAQ,EAAG,CAC9C,MAAO,CACLmmB,SAAU,GADL,CAEL5C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAGnC,GAAe,WAAf,GAAIqG,CAAJ,EAA0D,GAA1D,EAA8BrG,CAAAyS,UAAAtQ,OAAA,CAAsB,CAAtB,CAA9B,GACMH,CADN,CACchC,CAAAyS,UAAAzQ,MAAA,CAAqBo0D,EAArB,CADd,EAEa,CACTp2D,CAAAq5B,KAAA,CAAU,WAAV,CAAuB,IAAIv7B,MAAJ,CAAWkE,CAAA,CAAM,CAAN,CAAX,CAAqBA,CAAA,CAAM,CAAN,CAArB,CAAvB,CACA,OAFS,CAMb+F,CAAAtI,OAAA,CAAaO,CAAA,CAAKqG,CAAL,CAAb,CAA2B2iE,QAA+B,CAACpsE,CAAD,CAAQ,CAChEoD,CAAAq5B,KAAA,CAAUhzB,CAAV,CAAkBzJ,CAAlB,CADgE,CAAlE,CAXmC,CAFhC,CADuC,CADD,CAAjD,CAwBAf,EAAA,CAAQ,CAAC,KAAD,CAAQ,QAAR,CAAkB,MAAlB,CAAR,CAAmC,QAAQ,CAAC8vB,CAAD,CAAW,CACpD,IAAIk9C,EAAa12C,EAAA,CAAmB,KAAnB,CAA2BxG,CAA3B,CACjBnY,GAAA,CAA2Bq1D,CAA3B,CAAA,CAAyC,QAAQ,EAAG,CAClD,MAAO,CACLr8C,SAAU,EADL,CAEL5C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAAA,IAC/B2oE,EAAWh9C,CADoB,CAE/B7kB,EAAO6kB,CAEM,OAAjB,GAAIA,CAAJ,EAC4C,4BAD5C,GACIxsB,EAAAhD,KAAA,CAAcmE,CAAAP,KAAA,CAAa,MAAb,CAAd,CADJ;CAEE+G,CAEA,CAFO,WAEP,CADA9G,CAAAiyB,MAAA,CAAWnrB,CAAX,CACA,CADmB,YACnB,CAAA6hE,CAAA,CAAW,IAJb,CAOA3oE,EAAA88B,SAAA,CAAc+rC,CAAd,CAA0B,QAAQ,CAACjsE,CAAD,CAAQ,CACnCA,CAAL,EAOAoD,CAAAq5B,KAAA,CAAUvyB,CAAV,CAAgBlK,CAAhB,CAMA,CAAIsmB,EAAJ,EAAYylD,CAAZ,EAAsBroE,CAAAP,KAAA,CAAa4oE,CAAb,CAAuB3oE,CAAA,CAAK8G,CAAL,CAAvB,CAbtB,EACmB,MADnB,GACM6kB,CADN,EAEI3rB,CAAAq5B,KAAA,CAAUvyB,CAAV,CAAgB,IAAhB,CAHoC,CAA1C,CAXmC,CAFhC,CAD2C,CAFA,CAAtD,CAv9oBuC,KA8/oBnCyoD,GAAe,CACjBM,YAAa/wD,CADI,CAEjBixD,gBASFkZ,QAA8B,CAACvZ,CAAD,CAAU5oD,CAAV,CAAgB,CAC5C4oD,CAAAV,MAAA,CAAgBloD,CAD4B,CAX3B,CAGjBqpD,eAAgBrxD,CAHC,CAIjBuxD,aAAcvxD,CAJG,CAKjB2xD,UAAW3xD,CALM,CAMjB+xD,aAAc/xD,CANG,CAOjBqyD,cAAeryD,CAPE,CA0DnB6vD,GAAA3rC,QAAA,CAAyB,CAAC,UAAD,CAAa,QAAb,CAAuB,QAAvB,CAAiC,UAAjC,CAA6C,cAA7C,CAmZzB,KAAIkmD,GAAuBA,QAAQ,CAACC,CAAD,CAAW,CAC5C,MAAO,CAAC,UAAD,CAAa,QAAb,CAAuB,QAAQ,CAACvxD,CAAD,CAAWpB,CAAX,CAAmB,CAuEvD4yD,QAASA,EAAS,CAAC/oC,CAAD,CAAa,CAC7B,MAAmB,EAAnB,GAAIA,CAAJ,CAES7pB,CAAA,CAAO,UAAP,CAAAwmB,OAFT,CAIOxmB,CAAA,CAAO6pB,CAAP,CAAArD,OAJP,EAIoCl+B,CALP,CAF/B,MApEoB4P,CAClB5H,KAAM,MADY4H,CAElBge,SAAUy8C,CAAA;AAAW,KAAX,CAAmB,GAFXz6D,CAGlB+d,QAAS,CAAC,MAAD,CAAS,SAAT,CAHS/d,CAIlB3E,WAAY4kD,EAJMjgD,CAKlB1G,QAASqhE,QAAsB,CAACC,CAAD,CAActpE,CAAd,CAAoB,CAEjDspE,CAAArpD,SAAA,CAAqB0wC,EAArB,CAAA1wC,SAAA,CAA8C61C,EAA9C,CAEA,KAAIyT,EAAWvpE,CAAA8G,KAAA,CAAY,MAAZ,CAAsBqiE,CAAA,EAAYnpE,CAAAmQ,OAAZ,CAA0B,QAA1B,CAAqC,CAAA,CAE1E,OAAO,CACLikB,IAAKo1C,QAAsB,CAACzhE,CAAD,CAAQuhE,CAAR,CAAqBtpE,CAArB,CAA2BypE,CAA3B,CAAkC,CAC3D,IAAI1/D,EAAa0/D,CAAA,CAAM,CAAN,CAGjB,IAAM,EAAA,QAAA,EAAYzpE,EAAZ,CAAN,CAAyB,CAOvB,IAAI0pE,EAAuBA,QAAQ,CAACnrD,CAAD,CAAQ,CACzCxW,CAAAE,OAAA,CAAa,QAAQ,EAAG,CACtB8B,CAAA4lD,iBAAA,EACA5lD,EAAAonD,cAAA,EAFsB,CAAxB,CAKA5yC,EAAAgyB,eAAA,EANyC,CASxB+4B,EAAAhpE,CAAY,CAAZA,CA12kB3BonC,iBAAA,CA02kB2CpsB,QA12kB3C,CA02kBqDouD,CA12kBrD,CAAmC,CAAA,CAAnC,CA82kBQJ,EAAA1/D,GAAA,CAAe,UAAf,CAA2B,QAAQ,EAAG,CACpCgO,CAAA,CAAS,QAAQ,EAAG,CACI0xD,CAAAhpE,CAAY,CAAZA,CA72kBlCub,oBAAA,CA62kBkDP,QA72kBlD,CA62kB4DouD,CA72kB5D,CAAsC,CAAA,CAAtC,CA42kB8B,CAApB,CAEG,CAFH,CAEM,CAAA,CAFN,CADoC,CAAtC,CApBuB,CA4BzB7Z,CADqB4Z,CAAA,CAAM,CAAN,CACrB5Z,EADiC9lD,CAAAulD,aACjCO,aAAA,CAA2B9lD,CAA3B,CAEA,KAAI4/D,EAASJ,CAAA,CAAWH,CAAA,CAAUr/D,CAAAilD,MAAV,CAAX,CAAyClwD,CAElDyqE,EAAJ,GACEI,CAAA,CAAO5hE,CAAP,CAAcgC,CAAd,CACA,CAAA/J,CAAA88B,SAAA,CAAcysC,CAAd;AAAwB,QAAQ,CAAC1tC,CAAD,CAAW,CACrC9xB,CAAAilD,MAAJ,GAAyBnzB,CAAzB,GACA8tC,CAAA,CAAO5hE,CAAP,CAAc/M,CAAd,CAGA,CAFA+O,CAAAulD,aAAAS,gBAAA,CAAwChmD,CAAxC,CAAoD8xB,CAApD,CAEA,CADA8tC,CACA,CADSP,CAAA,CAAUr/D,CAAAilD,MAAV,CACT,CAAA2a,CAAA,CAAO5hE,CAAP,CAAcgC,CAAd,CAJA,CADyC,CAA3C,CAFF,CAUAu/D,EAAA1/D,GAAA,CAAe,UAAf,CAA2B,QAAQ,EAAG,CACpCG,CAAAulD,aAAAa,eAAA,CAAuCpmD,CAAvC,CACA4/D,EAAA,CAAO5hE,CAAP,CAAc/M,CAAd,CACAmD,EAAA,CAAO4L,CAAP,CAAmBwlD,EAAnB,CAHoC,CAAtC,CA9C2D,CADxD,CAN0C,CALjC7gD,CADmC,CAAlD,CADqC,CAA9C,CAkFIA,GAAgBw6D,EAAA,EAlFpB,CAmFI94D,GAAkB84D,EAAA,CAAqB,CAAA,CAArB,CAnFtB,CA+FI3W,GAAkB,0EA/FtB,CA4GIqX,GAAa,sHA5GjB,CA6GIC,GAAe,mGA7GnB,CA8GIC;AAAgB,mDA9GpB,CA+GIC,GAAc,2BA/GlB,CAgHIC,GAAuB,+DAhH3B,CAiHIC,GAAc,mBAjHlB,CAkHIC,GAAe,kBAlHnB,CAmHIC,GAAc,yCAnHlB,CAqHIC,GAAY,CAgGd,KAs8BFC,QAAsB,CAACtiE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6Bn5C,CAA7B,CAAuC5C,CAAvC,CAAiD,CACrEg9C,EAAA,CAAczpD,CAAd,CAAqBzH,CAArB,CAA8BN,CAA9B,CAAoCuwD,CAApC,CAA0Cn5C,CAA1C,CAAoD5C,CAApD,CACA68C,GAAA,CAAqBd,CAArB,CAFqE,CAtiCvD,CAuMd,KAAQ6C,EAAA,CAAoB,MAApB,CAA4B2W,EAA5B,CACD3X,EAAA,CAAiB2X,EAAjB,CAA8B,CAAC,MAAD,CAAS,IAAT,CAAe,IAAf,CAA9B,CADC,CAED,YAFC,CAvMM,CA8Sd,iBAAkB3W,EAAA,CAAoB,eAApB,CAAqC4W,EAArC,CACd5X,EAAA,CAAiB4X,EAAjB,CAAuC,yBAAA,MAAA,CAAA,GAAA,CAAvC,CADc,CAEd,yBAFc,CA9SJ,CAsZd,KAAQ5W,EAAA,CAAoB,MAApB,CAA4B+W,EAA5B,CACJ/X,EAAA,CAAiB+X,EAAjB,CAA8B,CAAC,IAAD,CAAO,IAAP,CAAa,IAAb;AAAmB,KAAnB,CAA9B,CADI,CAEL,cAFK,CAtZM,CA+fd,KAAQ/W,EAAA,CAAoB,MAApB,CAA4B6W,EAA5B,CAsoBVK,QAAmB,CAACC,CAAD,CAAUC,CAAV,CAAwB,CACzC,GAAI9sE,CAAA,CAAO6sE,CAAP,CAAJ,CACE,MAAOA,EAGT,IAAIjvE,CAAA,CAASivE,CAAT,CAAJ,CAAuB,CACrBN,EAAAhoE,UAAA,CAAwB,CACxB,KAAI4D,EAAQokE,EAAAxwD,KAAA,CAAiB8wD,CAAjB,CACZ,IAAI1kE,CAAJ,CAAW,CAAA,IACL6lD,EAAO,CAAC7lD,CAAA,CAAM,CAAN,CADH,CAEL4kE,EAAO,CAAC5kE,CAAA,CAAM,CAAN,CAFH,CAILhB,EADA6lE,CACA7lE,CADQ,CAHH,CAKL8lE,EAAU,CALL,CAMLC,EAAe,CANV,CAOL9e,EAAaL,EAAA,CAAuBC,CAAvB,CAPR,CAQLmf,EAAuB,CAAvBA,EAAWJ,CAAXI,CAAkB,CAAlBA,CAEAL,EAAJ,GACEE,CAGA,CAHQF,CAAA5X,SAAA,EAGR,CAFA/tD,CAEA,CAFU2lE,CAAA5lE,WAAA,EAEV,CADA+lE,CACA,CADUH,CAAAzX,WAAA,EACV,CAAA6X,CAAA,CAAeJ,CAAAvX,gBAAA,EAJjB,CAOA,OAAO,KAAIt1D,IAAJ,CAAS+tD,CAAT,CAAe,CAAf,CAAkBI,CAAAI,QAAA,EAAlB,CAAyC2e,CAAzC,CAAkDH,CAAlD,CAAyD7lE,CAAzD,CAAkE8lE,CAAlE,CAA2EC,CAA3E,CAjBE,CAHU,CAwBvB,MAAOzX,IA7BkC,CAtoBjC,CAAqD,UAArD,CA/fM,CAumBd,MAASC,EAAA,CAAoB,OAApB,CAA6B8W,EAA7B,CACN9X,EAAA,CAAiB8X,EAAjB,CAA+B,CAAC,MAAD,CAAS,IAAT,CAA/B,CADM,CAEN,SAFM,CAvmBK,CAstBd,OAolBFY,QAAwB,CAAC/iE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6Bn5C,CAA7B,CAAuC5C,CAAvC,CAAiD,CACvEi/C,EAAA,CAAgB1rD,CAAhB,CAAuBzH,CAAvB,CAAgCN,CAAhC,CAAsCuwD,CAAtC,CACAiB,GAAA,CAAczpD,CAAd,CAAqBzH,CAArB,CAA8BN,CAA9B,CAAoCuwD,CAApC,CAA0Cn5C,CAA1C,CAAoD5C,CAApD,CAEA+7C,EAAAqD,aAAA,CAAoB,QACpBrD,EAAAsD,SAAA5yD,KAAA,CAAmB,QAAQ,CAACrE,CAAD,CAAQ,CACjC,MAAI2zD,EAAAgB,SAAA,CAAc30D,CAAd,CAAJ,CAAsC,IAAtC;AACIktE,EAAAjqE,KAAA,CAAmBjD,CAAnB,CAAJ,CAAsCwwD,UAAA,CAAWxwD,CAAX,CAAtC,CACO5B,CAH0B,CAAnC,CAMAu1D,EAAAe,YAAArwD,KAAA,CAAsB,QAAQ,CAACrE,CAAD,CAAQ,CACpC,GAAK,CAAA2zD,CAAAgB,SAAA,CAAc30D,CAAd,CAAL,CAA2B,CACzB,GAAK,CAAAlB,CAAA,CAASkB,CAAT,CAAL,CACE,KAAMm3D,GAAA,CAAc,QAAd,CAAyDn3D,CAAzD,CAAN,CAEFA,CAAA,CAAQA,CAAAuC,SAAA,EAJiB,CAM3B,MAAOvC,EAP6B,CAAtC,CAUA,IAAIyC,CAAA,CAAUW,CAAA6pD,IAAV,CAAJ,EAA2B7pD,CAAAg0D,MAA3B,CAAuC,CACrC,IAAIC,CACJ1D,EAAA2D,YAAArK,IAAA,CAAuBsK,QAAQ,CAACv3D,CAAD,CAAQ,CACrC,MAAO2zD,EAAAgB,SAAA,CAAc30D,CAAd,CAAP,EAA+BwC,CAAA,CAAY60D,CAAZ,CAA/B,EAAsDr3D,CAAtD,EAA+Dq3D,CAD1B,CAIvCj0D,EAAA88B,SAAA,CAAc,KAAd,CAAqB,QAAQ,CAACx5B,CAAD,CAAM,CAC7BjE,CAAA,CAAUiE,CAAV,CAAJ,EAAuB,CAAA5H,CAAA,CAAS4H,CAAT,CAAvB,GACEA,CADF,CACQ8pD,UAAA,CAAW9pD,CAAX,CAAgB,EAAhB,CADR,CAGA2wD,EAAA,CAASv4D,CAAA,CAAS4H,CAAT,CAAA,EAAkB,CAAAc,KAAA,CAAMd,CAAN,CAAlB,CAA+BA,CAA/B,CAAqCtI,CAE9Cu1D,EAAA6D,UAAA,EANiC,CAAnC,CANqC,CAgBvC,GAAI/0D,CAAA,CAAUW,CAAA64B,IAAV,CAAJ,EAA2B74B,CAAAq0D,MAA3B,CAAuC,CACrC,IAAIC,CACJ/D,EAAA2D,YAAAr7B,IAAA,CAAuB07B,QAAQ,CAAC33D,CAAD,CAAQ,CACrC,MAAO2zD,EAAAgB,SAAA,CAAc30D,CAAd,CAAP,EAA+BwC,CAAA,CAAYk1D,CAAZ,CAA/B,EAAsD13D,CAAtD,EAA+D03D,CAD1B,CAIvCt0D,EAAA88B,SAAA,CAAc,KAAd,CAAqB,QAAQ,CAACx5B,CAAD,CAAM,CAC7BjE,CAAA,CAAUiE,CAAV,CAAJ,EAAuB,CAAA5H,CAAA,CAAS4H,CAAT,CAAvB,GACEA,CADF,CACQ8pD,UAAA,CAAW9pD,CAAX,CAAgB,EAAhB,CADR,CAGAgxD,EAAA,CAAS54D,CAAA,CAAS4H,CAAT,CAAA,EAAkB,CAAAc,KAAA,CAAMd,CAAN,CAAlB;AAA+BA,CAA/B,CAAqCtI,CAE9Cu1D,EAAA6D,UAAA,EANiC,CAAnC,CANqC,CArCgC,CA1yCzD,CAyzBd,IAuiBF2W,QAAqB,CAAChjE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6Bn5C,CAA7B,CAAuC5C,CAAvC,CAAiD,CAGpEg9C,EAAA,CAAczpD,CAAd,CAAqBzH,CAArB,CAA8BN,CAA9B,CAAoCuwD,CAApC,CAA0Cn5C,CAA1C,CAAoD5C,CAApD,CACA68C,GAAA,CAAqBd,CAArB,CAEAA,EAAAqD,aAAA,CAAoB,KACpBrD,EAAA2D,YAAAltC,IAAA,CAAuBgkD,QAAQ,CAACC,CAAD,CAAaC,CAAb,CAAwB,CACrD,IAAItuE,EAAQquE,CAARruE,EAAsBsuE,CAC1B,OAAO3a,EAAAgB,SAAA,CAAc30D,CAAd,CAAP,EAA+BgtE,EAAA/pE,KAAA,CAAgBjD,CAAhB,CAFsB,CAPa,CAh2CtD,CA25Bd,MAkdFuuE,QAAuB,CAACpjE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6Bn5C,CAA7B,CAAuC5C,CAAvC,CAAiD,CAGtEg9C,EAAA,CAAczpD,CAAd,CAAqBzH,CAArB,CAA8BN,CAA9B,CAAoCuwD,CAApC,CAA0Cn5C,CAA1C,CAAoD5C,CAApD,CACA68C,GAAA,CAAqBd,CAArB,CAEAA,EAAAqD,aAAA,CAAoB,OACpBrD,EAAA2D,YAAAkX,MAAA,CAAyBC,QAAQ,CAACJ,CAAD,CAAaC,CAAb,CAAwB,CACvD,IAAItuE,EAAQquE,CAARruE,EAAsBsuE,CAC1B,OAAO3a,EAAAgB,SAAA,CAAc30D,CAAd,CAAP,EAA+BitE,EAAAhqE,KAAA,CAAkBjD,CAAlB,CAFwB,CAPa,CA72CxD,CA69Bd,MA6ZF0uE,QAAuB,CAACvjE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6B,CAE9CnxD,CAAA,CAAYY,CAAA8G,KAAZ,CAAJ,EACExG,CAAAN,KAAA,CAAa,MAAb,CAxksBK,EAAElD,EAwksBP,CASFwD,EAAAsJ,GAAA,CAAW,OAAX,CANeud,QAAQ,CAACuqC,CAAD,CAAK,CACtBpxD,CAAA,CAAQ,CAAR,CAAAirE,QAAJ,EACEhb,CAAAuB,cAAA,CAAmB9xD,CAAApD,MAAnB,CAA+B80D,CAA/B,EAAqCA,CAAAp2C,KAArC,CAFwB,CAM5B,CAEAi1C,EAAA2B,QAAA,CAAeC,QAAQ,EAAG,CAExB7xD,CAAA,CAAQ,CAAR,CAAAirE,QAAA,CADYvrE,CAAApD,MACZ,EAA+B2zD,CAAAqB,WAFP,CAK1B5xD;CAAA88B,SAAA,CAAc,OAAd,CAAuByzB,CAAA2B,QAAvB,CAnBkD,CA13CpC,CAuhCd,SAsYFsZ,QAA0B,CAACzjE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6Bn5C,CAA7B,CAAuC5C,CAAvC,CAAiDU,CAAjD,CAA0DsB,CAA1D,CAAkE,CAC1F,IAAIi1D,EAAY7W,EAAA,CAAkBp+C,CAAlB,CAA0BzO,CAA1B,CAAiC,aAAjC,CAAgD/H,CAAA0rE,YAAhD,CAAkE,CAAA,CAAlE,CAAhB,CACIC,EAAa/W,EAAA,CAAkBp+C,CAAlB,CAA0BzO,CAA1B,CAAiC,cAAjC,CAAiD/H,CAAA4rE,aAAjD,CAAoE,CAAA,CAApE,CAMjBtrE,EAAAsJ,GAAA,CAAW,OAAX,CAJeud,QAAQ,CAACuqC,CAAD,CAAK,CAC1BnB,CAAAuB,cAAA,CAAmBxxD,CAAA,CAAQ,CAAR,CAAAirE,QAAnB,CAAuC7Z,CAAvC,EAA6CA,CAAAp2C,KAA7C,CAD0B,CAI5B,CAEAi1C,EAAA2B,QAAA,CAAeC,QAAQ,EAAG,CACxB7xD,CAAA,CAAQ,CAAR,CAAAirE,QAAA,CAAqBhb,CAAAqB,WADG,CAO1BrB,EAAAgB,SAAA,CAAgBsa,QAAQ,CAACjvE,CAAD,CAAQ,CAC9B,MAAiB,CAAA,CAAjB,GAAOA,CADuB,CAIhC2zD,EAAAe,YAAArwD,KAAA,CAAsB,QAAQ,CAACrE,CAAD,CAAQ,CACpC,MAAOwF,GAAA,CAAOxF,CAAP,CAAc6uE,CAAd,CAD6B,CAAtC,CAIAlb,EAAAsD,SAAA5yD,KAAA,CAAmB,QAAQ,CAACrE,CAAD,CAAQ,CACjC,MAAOA,EAAA,CAAQ6uE,CAAR,CAAoBE,CADM,CAAnC,CAzB0F,CA75C5E,CAyhCd,OAAU7sE,CAzhCI,CA0hCd,OAAUA,CA1hCI,CA2hCd,OAAUA,CA3hCI,CA4hCd,MAASA,CA5hCK,CA6hCd,KAAQA,CA7hCM,CArHhB,CA8tDIyP,GAAiB,CAAC,UAAD,CAAa,UAAb,CAAyB,SAAzB,CAAoC,QAApC,CACjB,QAAQ,CAACiG,CAAD,CAAW4C,CAAX,CAAqBlC,CAArB;AAA8BsB,CAA9B,CAAsC,CAChD,MAAO,CACLkW,SAAU,GADL,CAELD,QAAS,CAAC,UAAD,CAFJ,CAGL7C,KAAM,CACJwK,IAAKA,QAAQ,CAACrsB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBypE,CAAvB,CAA8B,CACrCA,CAAA,CAAM,CAAN,CAAJ,EACE,CAACW,EAAA,CAAU7pE,CAAA,CAAUP,CAAAsb,KAAV,CAAV,CAAD,EAAoC8uD,EAAA1vC,KAApC,EAAoD3yB,CAApD,CAA2DzH,CAA3D,CAAoEN,CAApE,CAA0EypE,CAAA,CAAM,CAAN,CAA1E,CAAoFryD,CAApF,CACoD5C,CADpD,CAC8DU,CAD9D,CACuEsB,CADvE,CAFuC,CADvC,CAHD,CADyC,CAD7B,CA9tDrB,CAgvDIs1D,GAAwB,oBAhvD5B,CA0yDI14D,GAAmBA,QAAQ,EAAG,CAChC,MAAO,CACLsZ,SAAU,GADL,CAELF,SAAU,GAFL,CAGLxkB,QAASA,QAAQ,CAAC08C,CAAD,CAAMqnB,CAAN,CAAe,CAC9B,MAAID,GAAAjsE,KAAA,CAA2BksE,CAAA54D,QAA3B,CAAJ,CACS64D,QAA4B,CAACjkE,CAAD,CAAQqd,CAAR,CAAaplB,CAAb,CAAmB,CACpDA,CAAAq5B,KAAA,CAAU,OAAV,CAAmBtxB,CAAA63C,MAAA,CAAY5/C,CAAAmT,QAAZ,CAAnB,CADoD,CADxD,CAKS84D,QAAoB,CAAClkE,CAAD,CAAQqd,CAAR,CAAaplB,CAAb,CAAmB,CAC5C+H,CAAAtI,OAAA,CAAaO,CAAAmT,QAAb,CAA2B+4D,QAAyB,CAACtvE,CAAD,CAAQ,CAC1DoD,CAAAq5B,KAAA,CAAU,OAAV,CAAmBz8B,CAAnB,CAD0D,CAA5D,CAD4C,CANlB,CAH3B,CADyB,CA1yDlC,CAi3DIwS,GAAkB,CAAC,UAAD,CAAa,QAAQ,CAAC+8D,CAAD,CAAW,CACpD,MAAO,CACLz/C,SAAU,IADL,CAEL1kB,QAASokE,QAAsB,CAACC,CAAD,CAAkB,CAC/CF,CAAAnxC,kBAAA,CAA2BqxC,CAA3B,CACA,OAAOC,SAAmB,CAACvkE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAC/CmsE,CAAAjxC,iBAAA,CAA0B56B,CAA1B;AAAmCN,CAAAmP,OAAnC,CACA7O,EAAA,CAAUA,CAAA,CAAQ,CAAR,CACVyH,EAAAtI,OAAA,CAAaO,CAAAmP,OAAb,CAA0Bo9D,QAA0B,CAAC3vE,CAAD,CAAQ,CAC1D0D,CAAA4Z,YAAA,CAAsB9a,CAAA,CAAYxC,CAAZ,CAAA,CAAqB,EAArB,CAA0BA,CADU,CAA5D,CAH+C,CAFF,CAF5C,CAD6C,CAAhC,CAj3DtB,CAq7DI4S,GAA0B,CAAC,cAAD,CAAiB,UAAjB,CAA6B,QAAQ,CAAC8F,CAAD,CAAe62D,CAAf,CAAyB,CAC1F,MAAO,CACLnkE,QAASwkE,QAA8B,CAACH,CAAD,CAAkB,CACvDF,CAAAnxC,kBAAA,CAA2BqxC,CAA3B,CACA,OAAOI,SAA2B,CAAC1kE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CACnD26B,CAAAA,CAAgBrlB,CAAA,CAAahV,CAAAN,KAAA,CAAaA,CAAAiyB,MAAA1iB,eAAb,CAAb,CACpB48D,EAAAjxC,iBAAA,CAA0B56B,CAA1B,CAAmCq6B,CAAAQ,YAAnC,CACA76B,EAAA,CAAUA,CAAA,CAAQ,CAAR,CACVN,EAAA88B,SAAA,CAAc,gBAAd,CAAgC,QAAQ,CAAClgC,CAAD,CAAQ,CAC9C0D,CAAA4Z,YAAA,CAAsB9a,CAAA,CAAYxC,CAAZ,CAAA,CAAqB,EAArB,CAA0BA,CADF,CAAhD,CAJuD,CAFF,CADpD,CADmF,CAA9D,CAr7D9B,CAq/DI0S,GAAsB,CAAC,MAAD,CAAS,QAAT,CAAmB,UAAnB,CAA+B,QAAQ,CAAC0H,CAAD,CAAOR,CAAP,CAAe21D,CAAf,CAAyB,CACxF,MAAO,CACLz/C,SAAU,GADL,CAEL1kB,QAAS0kE,QAA0B,CAACx/C,CAAD,CAAWC,CAAX,CAAmB,CACpD,IAAIw/C,EAAmBn2D,CAAA,CAAO2W,CAAA9d,WAAP,CAAvB,CACIu9D,EAAkBp2D,CAAA,CAAO2W,CAAA9d,WAAP,CAA0B6iC,QAAuB,CAACt1C,CAAD,CAAQ,CAC7E,MAAOuC,CAACvC,CAADuC,EAAU,EAAVA,UAAA,EADsE,CAAzD,CAGtBgtE;CAAAnxC,kBAAA,CAA2B9N,CAA3B,CAEA,OAAO2/C,SAAuB,CAAC9kE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CACnDmsE,CAAAjxC,iBAAA,CAA0B56B,CAA1B,CAAmCN,CAAAqP,WAAnC,CAEAtH,EAAAtI,OAAA,CAAamtE,CAAb,CAA8BE,QAA8B,EAAG,CAG7DxsE,CAAA6E,KAAA,CAAa6R,CAAA+1D,eAAA,CAAoBJ,CAAA,CAAiB5kE,CAAjB,CAApB,CAAb,EAA6D,EAA7D,CAH6D,CAA/D,CAHmD,CAPD,CAFjD,CADiF,CAAhE,CAr/D1B,CA+kEIuK,GAAoBrT,EAAA,CAAQ,CAC9BytB,SAAU,GADoB,CAE9BD,QAAS,SAFqB,CAG9B7C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6B,CACzCA,CAAAyc,qBAAA/rE,KAAA,CAA+B,QAAQ,EAAG,CACxC8G,CAAA63C,MAAA,CAAY5/C,CAAAqS,SAAZ,CADwC,CAA1C,CADyC,CAHb,CAAR,CA/kExB,CAi4EI3C,GAAmBolD,EAAA,CAAe,EAAf,CAAmB,CAAA,CAAnB,CAj4EvB,CAi7EIhlD,GAAsBglD,EAAA,CAAe,KAAf,CAAsB,CAAtB,CAj7E1B,CAi+EIllD,GAAuBklD,EAAA,CAAe,MAAf,CAAuB,CAAvB,CAj+E3B,CAuhFI9kD,GAAmB0+C,EAAA,CAAY,CACjC1mD,QAASA,QAAQ,CAAC1H,CAAD,CAAUN,CAAV,CAAgB,CAC/BA,CAAAq5B,KAAA,CAAU,SAAV,CAAqBr+B,CAArB,CACAsF,EAAA4f,YAAA,CAAoB,UAApB,CAF+B,CADA,CAAZ,CAvhFvB,CAgwFIhQ,GAAwB,CAAC,QAAQ,EAAG,CACtC,MAAO,CACLwc,SAAU,GADL,CAEL3kB,MAAO,CAAA,CAFF,CAGLgC,WAAY,GAHP,CAILyiB,SAAU,GAJL,CAD+B,CAAZ,CAhwF5B,CAw/FI/Y,GAAoB,EAx/FxB,CA6/FIw5D,GAAmB,CACrB,KAAQ,CAAA,CADa,CAErB,MAAS,CAAA,CAFY,CAIvBpxE,EAAA,CACE,6IAAA,MAAA,CAAA,GAAA,CADF;AAEE,QAAQ,CAACmkD,CAAD,CAAY,CAClB,IAAI/0B,EAAgBkH,EAAA,CAAmB,KAAnB,CAA2B6tB,CAA3B,CACpBvsC,GAAA,CAAkBwX,CAAlB,CAAA,CAAmC,CAAC,QAAD,CAAW,YAAX,CAAyB,QAAQ,CAACzU,CAAD,CAASE,CAAT,CAAqB,CACvF,MAAO,CACLgW,SAAU,GADL,CAEL1kB,QAASA,QAAQ,CAAColB,CAAD,CAAWptB,CAAX,CAAiB,CAKhC,IAAIiD,EAAKuT,CAAA,CAAOxW,CAAA,CAAKirB,CAAL,CAAP,CAAgD,IAAhD,CAA4E,CAAA,CAA5E,CACT,OAAOiiD,SAAuB,CAACnlE,CAAD,CAAQzH,CAAR,CAAiB,CAC7CA,CAAAsJ,GAAA,CAAWo2C,CAAX,CAAsB,QAAQ,CAACzhC,CAAD,CAAQ,CACpC,IAAIqJ,EAAWA,QAAQ,EAAG,CACxB3kB,CAAA,CAAG8E,CAAH,CAAU,CAACs0C,OAAO99B,CAAR,CAAV,CADwB,CAGtB0uD,GAAA,CAAiBjtB,CAAjB,CAAJ,EAAmCtpC,CAAAovB,QAAnC,CACE/9B,CAAAvI,WAAA,CAAiBooB,CAAjB,CADF,CAGE7f,CAAAE,OAAA,CAAa2f,CAAb,CAPkC,CAAtC,CAD6C,CANf,CAF7B,CADgF,CAAtD,CAFjB,CAFtB,CAmgBA,KAAIpX,GAAgB,CAAC,UAAD,CAAa,QAAQ,CAACoD,CAAD,CAAW,CAClD,MAAO,CACLslB,aAAc,CAAA,CADT,CAEL1L,WAAY,SAFP,CAGLhB,SAAU,GAHL,CAIL6E,SAAU,CAAA,CAJL,CAKL3E,SAAU,GALL,CAML4K,MAAO,CAAA,CANF,CAOL1N,KAAMA,QAAQ,CAACqL,CAAD,CAAS7H,CAAT,CAAmB6E,CAAnB,CAA0Bs+B,CAA1B,CAAgCr7B,CAAhC,CAA6C,CAAA,IACnDznB,CADmD,CAC5C4iB,CAD4C,CAChC88C,CACvBl4C,EAAAx1B,OAAA,CAAcwyB,CAAA1hB,KAAd,CAA0B68D,QAAwB,CAACxwE,CAAD,CAAQ,CAEpDA,CAAJ,CACOyzB,CADP,EAEI6E,CAAA,CAAY,QAAQ,CAACh3B,CAAD,CAAQ46B,CAAR,CAAkB,CACpCzI,CAAA,CAAayI,CACb56B,EAAA,CAAMA,CAAA1C,OAAA,EAAN,CAAA,CAAwBT,CAAA08B,cAAA,CAAuB,aAAvB;AAAuCxF,CAAA1hB,KAAvC,CAAoD,GAApD,CAIxB9C,EAAA,CAAQ,CACNvP,MAAOA,CADD,CAGR0V,EAAA8oD,MAAA,CAAex+D,CAAf,CAAsBkvB,CAAAzuB,OAAA,EAAtB,CAAyCyuB,CAAzC,CAToC,CAAtC,CAFJ,EAeM+/C,CAQJ,GAPEA,CAAA1iD,OAAA,EACA,CAAA0iD,CAAA,CAAmB,IAMrB,EAJI98C,CAIJ,GAHEA,CAAA9lB,SAAA,EACA,CAAA8lB,CAAA,CAAa,IAEf,EAAI5iB,CAAJ,GACE0/D,CAIA,CAJmB9hE,EAAA,CAAcoC,CAAAvP,MAAd,CAInB,CAHA0V,CAAAgpD,MAAA,CAAeuQ,CAAf,CAAAvzC,KAAA,CAAsC,QAAQ,EAAG,CAC/CuzC,CAAA,CAAmB,IAD4B,CAAjD,CAGA,CAAA1/D,CAAA,CAAQ,IALV,CAvBF,CAFwD,CAA1D,CAFuD,CAPtD,CAD2C,CAAhC,CAApB,CAuOIiD,GAAqB,CAAC,kBAAD,CAAqB,eAArB,CAAsC,UAAtC,CACP,QAAQ,CAAC8G,CAAD,CAAqB9D,CAArB,CAAsCE,CAAtC,CAAgD,CACxE,MAAO,CACL8Y,SAAU,KADL,CAELF,SAAU,GAFL,CAGL6E,SAAU,CAAA,CAHL,CAIL7D,WAAY,SAJP,CAKLzjB,WAAY1B,EAAAvJ,KALP,CAMLkJ,QAASA,QAAQ,CAAC1H,CAAD,CAAUN,CAAV,CAAgB,CAAA,IAC3BqtE,EAASrtE,CAAAyQ,UAAT48D,EAA2BrtE,CAAAvC,IADA,CAE3B6vE,EAAYttE,CAAAkoC,OAAZolC,EAA2B,EAFA,CAG3BC,EAAgBvtE,CAAAwtE,WAEpB,OAAO,SAAQ,CAACzlE,CAAD,CAAQqlB,CAAR,CAAkB6E,CAAlB,CAAyBs+B,CAAzB,CAA+Br7B,CAA/B,CAA4C,CAAA,IACrDu4C,EAAgB,CADqC,CAErDnxB,CAFqD,CAGrDoxB,CAHqD,CAIrDC,CAJqD,CAMrDC,EAA4BA,QAAQ,EAAG,CACrCF,CAAJ,GACEA,CAAAjjD,OAAA,EACA,CAAAijD,CAAA,CAAkB,IAFpB,CAIIpxB,EAAJ,GACEA,CAAA/xC,SAAA,EACA,CAAA+xC,CAAA,CAAe,IAFjB,CAIIqxB,EAAJ;CACE/5D,CAAAgpD,MAAA,CAAe+Q,CAAf,CAAA/zC,KAAA,CAAoC,QAAQ,EAAG,CAC7C8zC,CAAA,CAAkB,IAD2B,CAA/C,CAIA,CADAA,CACA,CADkBC,CAClB,CAAAA,CAAA,CAAiB,IALnB,CATyC,CAkB3C5lE,EAAAtI,OAAA,CAAa4tE,CAAb,CAAqBQ,QAA6B,CAACpwE,CAAD,CAAM,CACtD,IAAIqwE,EAAiBA,QAAQ,EAAG,CAC1B,CAAAzuE,CAAA,CAAUkuE,CAAV,CAAJ,EAAkCA,CAAlC,EAAmD,CAAAxlE,CAAA63C,MAAA,CAAY2tB,CAAZ,CAAnD,EACE75D,CAAA,EAF4B,CAAhC,CAKIq6D,EAAe,EAAEN,CAEjBhwE,EAAJ,EAGE+Z,CAAA,CAAiB/Z,CAAjB,CAAsB,CAAA,CAAtB,CAAAm8B,KAAA,CAAiC,QAAQ,CAAC4J,CAAD,CAAW,CAClD,GAAIvJ,CAAAlyB,CAAAkyB,YAAJ,EAEI8zC,CAFJ,GAEqBN,CAFrB,CAEA,CACA,IAAI30C,EAAW/wB,CAAAynB,KAAA,EACf+gC,EAAAjjC,SAAA,CAAgBkW,CAQZtlC,EAAAA,CAAQg3B,CAAA,CAAY4D,CAAZ,CAAsB,QAAQ,CAAC56B,CAAD,CAAQ,CAChD0vE,CAAA,EACAh6D,EAAA8oD,MAAA,CAAex+D,CAAf,CAAsB,IAAtB,CAA4BkvB,CAA5B,CAAAwM,KAAA,CAA2Ck0C,CAA3C,CAFgD,CAAtC,CAKZxxB,EAAA,CAAexjB,CACf60C,EAAA,CAAiBzvE,CAEjBo+C,EAAA+D,MAAA,CAAmB,uBAAnB,CAA4C5iD,CAA5C,CACAsK,EAAA63C,MAAA,CAAY0tB,CAAZ,CAnBA,CAHkD,CAApD,CAuBG,QAAQ,EAAG,CACRvlE,CAAAkyB,YAAJ,EAEI8zC,CAFJ,GAEqBN,CAFrB,GAGEG,CAAA,EACA,CAAA7lE,CAAAs4C,MAAA,CAAY,sBAAZ,CAAoC5iD,CAApC,CAJF,CADY,CAvBd,CA+BA,CAAAsK,CAAAs4C,MAAA,CAAY,0BAAZ,CAAwC5iD,CAAxC,CAlCF,GAoCEmwE,CAAA,EACA,CAAArd,CAAAjjC,SAAA,CAAgB,IArClB,CARsD,CAAxD,CAxByD,CAL5B,CAN5B,CADiE,CADjD,CAvOzB,CAsUI/Z,GAAgC,CAAC,UAAD,CAClC,QAAQ,CAAC44D,CAAD,CAAW,CACjB,MAAO,CACLz/C,SAAU,KADL;AAELF,SAAW,IAFN,CAGLC,QAAS,WAHJ,CAIL7C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQqlB,CAAR,CAAkB6E,CAAlB,CAAyBs+B,CAAzB,CAA+B,CACvCpxD,EAAAhD,KAAA,CAAcixB,CAAA,CAAS,CAAT,CAAd,CAAAprB,MAAA,CAAiC,KAAjC,CAAJ,EAIEorB,CAAAroB,MAAA,EACA,CAAAonE,CAAA,CAASlzD,EAAA,CAAoBs3C,CAAAjjC,SAApB,CAAmCvyB,CAAnC,CAAAif,WAAT,CAAA,CAAkEjS,CAAlE,CACIimE,QAA8B,CAAC9vE,CAAD,CAAQ,CACxCkvB,CAAAloB,OAAA,CAAgBhH,CAAhB,CADwC,CAD1C,CAGG,CAACyxB,oBAAqBvC,CAAtB,CAHH,CALF,GAYAA,CAAAjoB,KAAA,CAAcorD,CAAAjjC,SAAd,CACA,CAAA6+C,CAAA,CAAS/+C,CAAAyK,SAAA,EAAT,CAAA,CAA8B9vB,CAA9B,CAbA,CAD2C,CAJxC,CADU,CADe,CAtUpC,CAyZI6I,GAAkB89C,EAAA,CAAY,CAChCliC,SAAU,GADsB,CAEhCxkB,QAASA,QAAQ,EAAG,CAClB,MAAO,CACLosB,IAAKA,QAAQ,CAACrsB,CAAD,CAAQzH,CAAR,CAAiBywB,CAAjB,CAAwB,CACnChpB,CAAA63C,MAAA,CAAY7uB,CAAApgB,OAAZ,CADmC,CADhC,CADW,CAFY,CAAZ,CAzZtB,CAwfIyB,GAAkBA,QAAQ,EAAG,CAC/B,MAAO,CACLsa,SAAU,GADL,CAELF,SAAU,GAFL,CAGLC,QAAS,SAHJ,CAIL7C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6B,CAGzC,IAAIp+C,EAAS7R,CAAAN,KAAA,CAAaA,CAAAiyB,MAAA9f,OAAb,CAATA,EAA4C,IAAhD,CACI87D,EAA6B,OAA7BA,GAAajuE,CAAA2xD,OADjB,CAEI1oD,EAAYglE,CAAA,CAAaxzD,CAAA,CAAKtI,CAAL,CAAb,CAA4BA,CAiB5Co+C,EAAAsD,SAAA5yD,KAAA,CAfY4C,QAAQ,CAACqnE,CAAD,CAAY,CAE9B,GAAI,CAAA9rE,CAAA,CAAY8rE,CAAZ,CAAJ,CAAA,CAEA,IAAI5mD;AAAO,EAEP4mD,EAAJ,EACErvE,CAAA,CAAQqvE,CAAA9qE,MAAA,CAAgB6I,CAAhB,CAAR,CAAoC,QAAQ,CAACrM,CAAD,CAAQ,CAC9CA,CAAJ,EAAW0nB,CAAArjB,KAAA,CAAUgtE,CAAA,CAAaxzD,CAAA,CAAK7d,CAAL,CAAb,CAA2BA,CAArC,CADuC,CAApD,CAKF,OAAO0nB,EAVP,CAF8B,CAehC,CACAisC,EAAAe,YAAArwD,KAAA,CAAsB,QAAQ,CAACrE,CAAD,CAAQ,CACpC,MAAIvB,EAAA,CAAQuB,CAAR,CAAJ,CACSA,CAAAoJ,KAAA,CAAWmM,CAAX,CADT,CAIOnX,CAL6B,CAAtC,CASAu1D,EAAAgB,SAAA,CAAgBsa,QAAQ,CAACjvE,CAAD,CAAQ,CAC9B,MAAO,CAACA,CAAR,EAAiB,CAACA,CAAApB,OADY,CAhCS,CAJtC,CADwB,CAxfjC,CA4iBIs6D,GAAc,UA5iBlB,CA6iBIC,GAAgB,YA7iBpB,CA8iBIpF,GAAiB,aA9iBrB,CA+iBIC,GAAc,UA/iBlB,CAkjBIsF,GAAgB,YAljBpB,CAsjBInC,GAAgB94D,CAAA,CAAO,SAAP,CAtjBpB,CAgwBIizE,GAAoB,CAAC,QAAD,CAAW,mBAAX,CAAgC,QAAhC,CAA0C,UAA1C,CAAsD,QAAtD,CAAgE,UAAhE,CAA4E,UAA5E,CAAwF,YAAxF,CAAsG,IAAtG,CAA4G,cAA5G,CACpB,QAAQ,CAACj5C,CAAD,CAASjgB,CAAT,CAA4Bid,CAA5B,CAAmC7E,CAAnC,CAA6C5W,CAA7C,CAAqD5C,CAArD,CAA+DgE,CAA/D,CAAyElB,CAAzE,CAAqFE,CAArF,CAAyFtB,CAAzF,CAAuG,CAEjH,IAAA64D,YAAA,CADA,IAAAvc,WACA,CADkBvnC,MAAA8oC,IAElB,KAAAib,gBAAA,CAAuBpzE,CACvB,KAAAk5D,YAAA,CAAmB,EACnB,KAAAma,iBAAA;AAAwB,EACxB,KAAAxa,SAAA,CAAgB,EAChB,KAAAvC,YAAA,CAAmB,EACnB,KAAA0b,qBAAA,CAA4B,EAC5B,KAAAsB,WAAA,CAAkB,CAAA,CAClB,KAAAC,SAAA,CAAgB,CAAA,CAChB,KAAArf,UAAA,CAAiB,CAAA,CACjB,KAAAD,OAAA,CAAc,CAAA,CACd,KAAAE,OAAA,CAAc,CAAA,CACd,KAAAC,SAAA,CAAgB,CAAA,CAChB,KAAAP,OAAA,CAAc,EACd,KAAAC,UAAA,CAAiB,EACjB,KAAAC,SAAA,CAAgB/zD,CAChB,KAAAg0D,MAAA,CAAa15C,CAAA,CAAa2c,CAAAnrB,KAAb,EAA2B,EAA3B,CAA+B,CAAA,CAA/B,CAAA,CAAsCmuB,CAAtC,CACb,KAAAq6B,aAAA,CAAoBC,EAnB6F,KAqB7Gif,EAAgBh4D,CAAA,CAAOyb,CAAAhgB,QAAP,CArB6F,CAsB7Gw8D,EAAsBD,CAAAxxC,OAtBuF,CAuB7G0xC,EAAaF,CAvBgG,CAwB7GG,EAAaF,CAxBgG,CAyB7GG,EAAkB,IAzB2F,CA0B7GC,CA1B6G,CA2B7Gte,EAAO,IAEX,KAAAue,aAAA,CAAoBC,QAAQ,CAAC/oD,CAAD,CAAU,CAEpC,IADAuqC,CAAAmD,SACA,CADgB1tC,CAChB,GAAeA,CAAAgpD,aAAf,CAAqC,CAAA,IAC/BC,EAAoBz4D,CAAA,CAAOyb,CAAAhgB,QAAP,CAAuB,IAAvB,CADW,CAE/Bi9D,EAAoB14D,CAAA,CAAOyb,CAAAhgB,QAAP,CAAuB,QAAvB,CAExBy8D,EAAA,CAAaA,QAAQ,CAACz5C,CAAD,CAAS,CAC5B,IAAIg2C,EAAauD,CAAA,CAAcv5C,CAAd,CACbh5B,EAAA,CAAWgvE,CAAX,CAAJ,GACEA,CADF,CACegE,CAAA,CAAkBh6C,CAAlB,CADf,CAGA,OAAOg2C,EALqB,CAO9B0D,EAAA,CAAaA,QAAQ,CAAC15C,CAAD;AAAS4G,CAAT,CAAmB,CAClC5/B,CAAA,CAAWuyE,CAAA,CAAcv5C,CAAd,CAAX,CAAJ,CACEi6C,CAAA,CAAkBj6C,CAAlB,CAA0B,CAACk6C,KAAM5e,CAAA4d,YAAP,CAA1B,CADF,CAGEM,CAAA,CAAoBx5C,CAApB,CAA4Bs7B,CAAA4d,YAA5B,CAJoC,CAXL,CAArC,IAkBO,IAAKnxC,CAAAwxC,CAAAxxC,OAAL,CACL,KAAM+2B,GAAA,CAAc,WAAd,CACF9hC,CAAAhgB,QADE,CACanN,EAAA,CAAYsoB,CAAZ,CADb,CAAN,CArBkC,CA8CtC,KAAA8kC,QAAA,CAAepzD,CAoBf,KAAAyyD,SAAA,CAAgB6d,QAAQ,CAACxyE,CAAD,CAAQ,CAC9B,MAAOwC,EAAA,CAAYxC,CAAZ,CAAP,EAAuC,EAAvC,GAA6BA,CAA7B,EAAuD,IAAvD,GAA6CA,CAA7C,EAA+DA,CAA/D,GAAyEA,CAD3C,CAIhC,KAAAyyE,qBAAA,CAA4BC,QAAQ,CAAC1yE,CAAD,CAAQ,CACtC2zD,CAAAgB,SAAA,CAAc30D,CAAd,CAAJ,EACEgX,CAAAsM,YAAA,CAAqBkN,CAArB,CAlTgBmiD,cAkThB,CACA,CAAA37D,CAAAqM,SAAA,CAAkBmN,CAAlB,CApTYoiD,UAoTZ,CAFF,GAIE57D,CAAAsM,YAAA,CAAqBkN,CAArB,CAtTYoiD,UAsTZ,CACA,CAAA57D,CAAAqM,SAAA,CAAkBmN,CAAlB,CAtTgBmiD,cAsThB,CALF,CAD0C,CAW5C,KAAIE,EAAyB,CAwB7Bnf,GAAA,CAAqB,CACnBC,KAAM,IADa,CAEnBnjC,SAAUA,CAFS,CAGnBvrB,IAAKA,QAAQ,CAACoyC,CAAD,CAASpf,CAAT,CAAmB,CAC9Bof,CAAA,CAAOpf,CAAP,CAAA,CAAmB,CAAA,CADW,CAHb,CAMnB27B,MAAOA,QAAQ,CAACvc,CAAD,CAASpf,CAAT,CAAmB,CAChC,OAAOof,CAAA,CAAOpf,CAAP,CADyB,CANf,CASnBjhB,SAAUA,CATS,CAArB,CAuBA,KAAAi9C,aAAA,CAAoB6e,QAAQ,EAAG,CAC7Bnf,CAAAtB,OAAA;AAAc,CAAA,CACdsB,EAAArB,UAAA,CAAiB,CAAA,CACjBt7C,EAAAsM,YAAA,CAAqBkN,CAArB,CAA+BwjC,EAA/B,CACAh9C,EAAAqM,SAAA,CAAkBmN,CAAlB,CAA4BujC,EAA5B,CAJ6B,CAkB/B,KAAAF,UAAA,CAAiBkf,QAAQ,EAAG,CAC1Bpf,CAAAtB,OAAA,CAAc,CAAA,CACdsB,EAAArB,UAAA,CAAiB,CAAA,CACjBt7C,EAAAsM,YAAA,CAAqBkN,CAArB,CAA+BujC,EAA/B,CACA/8C,EAAAqM,SAAA,CAAkBmN,CAAlB,CAA4BwjC,EAA5B,CACAL,EAAAjB,aAAAmB,UAAA,EAL0B,CAoB5B,KAAAQ,cAAA,CAAqB2e,QAAQ,EAAG,CAC9Brf,CAAAge,SAAA,CAAgB,CAAA,CAChBhe,EAAA+d,WAAA,CAAkB,CAAA,CAClB16D,EAAAm9C,SAAA,CAAkB3jC,CAAlB,CAvZkByiD,cAuZlB,CAtZgBC,YAsZhB,CAH8B,CAiBhC,KAAAC,YAAA,CAAmBC,QAAQ,EAAG,CAC5Bzf,CAAAge,SAAA,CAAgB,CAAA,CAChBhe,EAAA+d,WAAA,CAAkB,CAAA,CAClB16D,EAAAm9C,SAAA,CAAkB3jC,CAAlB,CAvagB0iD,YAuahB,CAxakBD,cAwalB,CAH4B,CA8F9B,KAAArgB,mBAAA,CAA0BygB,QAAQ,EAAG,CACnCr4D,CAAAsR,OAAA,CAAgB0lD,CAAhB,CACAre,EAAAqB,WAAA,CAAkBrB,CAAA2f,yBAClB3f,EAAA2B,QAAA,EAHmC,CAkBrC,KAAAkC,UAAA,CAAiB+b,QAAQ,EAAG,CAE1B,GAAI,CAAAz0E,CAAA,CAAS60D,CAAA4d,YAAT,CAAJ;AAAkC,CAAA/pE,KAAA,CAAMmsD,CAAA4d,YAAN,CAAlC,CAAA,CASA,IAAIlD,EAAa1a,CAAA6d,gBAAjB,CAEIgC,EAAY7f,CAAApB,OAFhB,CAGIkhB,EAAiB9f,CAAA4d,YAHrB,CAKImC,EAAe/f,CAAAmD,SAAf4c,EAAgC/f,CAAAmD,SAAA4c,aAEpC/f,EAAAggB,gBAAA,CAAqBtF,CAArB,CAZgB1a,CAAA2f,yBAYhB,CAA4C,QAAQ,CAACM,CAAD,CAAW,CAGxDF,CAAL,EAAqBF,CAArB,GAAmCI,CAAnC,GAKEjgB,CAAA4d,YAEA,CAFmBqC,CAAA,CAAWvF,CAAX,CAAwBjwE,CAE3C,CAAIu1D,CAAA4d,YAAJ,GAAyBkC,CAAzB,EACE9f,CAAAkgB,oBAAA,EARJ,CAH6D,CAA/D,CAhBA,CAF0B,CAoC5B,KAAAF,gBAAA,CAAuBG,QAAQ,CAACzF,CAAD,CAAaC,CAAb,CAAwByF,CAAxB,CAAsC,CAmCnEC,QAASA,EAAqB,EAAG,CAC/B,IAAIC,EAAsB,CAAA,CAC1Bh1E,EAAA,CAAQ00D,CAAA2D,YAAR,CAA0B,QAAQ,CAAC4c,CAAD,CAAYhqE,CAAZ,CAAkB,CAClD,IAAI6a,EAASmvD,CAAA,CAAU7F,CAAV,CAAsBC,CAAtB,CACb2F,EAAA,CAAsBA,CAAtB,EAA6ClvD,CAC7Cq0C,EAAA,CAAYlvD,CAAZ,CAAkB6a,CAAlB,CAHkD,CAApD,CAKA,OAAKkvD,EAAL,CAMO,CAAA,CANP,EACEh1E,CAAA,CAAQ00D,CAAA8d,iBAAR,CAA+B,QAAQ,CAACztC,CAAD,CAAI95B,CAAJ,CAAU,CAC/CkvD,CAAA,CAAYlvD,CAAZ,CAAkB,IAAlB,CAD+C,CAAjD,CAGO,CAAA,CAAA,CAJT,CAP+B,CAgBjCiqE,QAASA,EAAsB,EAAG,CAChC,IAAIC,EAAoB,EAAxB,CACIR,EAAW,CAAA,CACf30E,EAAA,CAAQ00D,CAAA8d,iBAAR,CAA+B,QAAQ,CAACyC,CAAD,CAAYhqE,CAAZ,CAAkB,CACvD,IAAI69B,EAAUmsC,CAAA,CAAU7F,CAAV;AAAsBC,CAAtB,CACd,IAAmBvmC,CAAAA,CAAnB,EA/5xBQ,CAAA1oC,CAAA,CA+5xBW0oC,CA/5xBA/K,KAAX,CA+5xBR,CACE,KAAMm6B,GAAA,CAAc,WAAd,CAC0EpvB,CAD1E,CAAN,CAGFqxB,CAAA,CAAYlvD,CAAZ,CAAkB9L,CAAlB,CACAg2E,EAAA/vE,KAAA,CAAuB0jC,CAAA/K,KAAA,CAAa,QAAQ,EAAG,CAC7Co8B,CAAA,CAAYlvD,CAAZ,CAAkB,CAAA,CAAlB,CAD6C,CAAxB,CAEpB,QAAQ,CAACwf,CAAD,CAAQ,CACjBkqD,CAAA,CAAW,CAAA,CACXxa,EAAA,CAAYlvD,CAAZ,CAAkB,CAAA,CAAlB,CAFiB,CAFI,CAAvB,CAPuD,CAAzD,CAcKkqE,EAAAx1E,OAAL,CAGEob,CAAA2jC,IAAA,CAAOy2B,CAAP,CAAAp3C,KAAA,CAA+B,QAAQ,EAAG,CACxCq3C,CAAA,CAAeT,CAAf,CADwC,CAA1C,CAEG1xE,CAFH,CAHF,CACEmyE,CAAA,CAAe,CAAA,CAAf,CAlB8B,CA0BlCjb,QAASA,EAAW,CAAClvD,CAAD,CAAO+uD,CAAP,CAAgB,CAC9Bqb,CAAJ,GAA6BzB,CAA7B,EACElf,CAAAF,aAAA,CAAkBvpD,CAAlB,CAAwB+uD,CAAxB,CAFgC,CAMpCob,QAASA,EAAc,CAACT,CAAD,CAAW,CAC5BU,CAAJ,GAA6BzB,CAA7B,EAEEkB,CAAA,CAAaH,CAAb,CAH8B,CAlFlCf,CAAA,EACA,KAAIyB,EAAuBzB,CAa3B0B,UAA2B,EAAG,CAC5B,IAAIC,EAAW7gB,CAAAqD,aAAXwd,EAAgC,OACpC,IAAIhyE,CAAA,CAAYyvE,CAAZ,CAAJ,CACE7Y,CAAA,CAAYob,CAAZ,CAAsB,IAAtB,CADF,KAaE,OAVKvC,EAUEA,GATLhzE,CAAA,CAAQ00D,CAAA2D,YAAR,CAA0B,QAAQ,CAACtzB,CAAD,CAAI95B,CAAJ,CAAU,CAC1CkvD,CAAA,CAAYlvD,CAAZ,CAAkB,IAAlB,CAD0C,CAA5C,CAGA,CAAAjL,CAAA,CAAQ00D,CAAA8d,iBAAR,CAA+B,QAAQ,CAACztC,CAAD,CAAI95B,CAAJ,CAAU,CAC/CkvD,CAAA,CAAYlvD,CAAZ,CAAkB,IAAlB,CAD+C,CAAjD,CAMK+nE,EADP7Y,CAAA,CAAYob,CAAZ,CAAsBvC,CAAtB,CACOA,CAAAA,CAET,OAAO,CAAA,CAjBqB,CAA9BsC,CAVK,EAAL,CAIKP,CAAA,EAAL,CAIAG,CAAA,EAJA,CACEE,CAAA,CAAe,CAAA,CAAf,CALF,CACEA,CAAA,CAAe,CAAA,CAAf,CANiE,CAsGrE,KAAAthB,iBAAA,CAAwB0hB,QAAQ,EAAG,CACjC,IAAInG,EAAY3a,CAAAqB,WAEhBh6C;CAAAsR,OAAA,CAAgB0lD,CAAhB,CAKA,IAAIre,CAAA2f,yBAAJ,GAAsChF,CAAtC,EAAkE,EAAlE,GAAoDA,CAApD,EAAyE3a,CAAAsB,sBAAzE,CAGAtB,CAAA8e,qBAAA,CAA0BnE,CAA1B,CAOA,CANA3a,CAAA2f,yBAMA,CANgChF,CAMhC,CAHI3a,CAAArB,UAGJ,EAFE,IAAAuB,UAAA,EAEF,CAAA,IAAA6gB,mBAAA,EAlBiC,CAqBnC,KAAAA,mBAAA,CAA0BC,QAAQ,EAAG,CAEnC,IAAItG,EADY1a,CAAA2f,yBAIhB,IAFArB,CAEA,CAFczvE,CAAA,CAAY6rE,CAAZ,CAAA,CAA0BjwE,CAA1B,CAAsC,CAAA,CAEpD,CACE,IAAS,IAAAyB,EAAI,CAAb,CAAgBA,CAAhB,CAAoB8zD,CAAAsD,SAAAr4D,OAApB,CAA0CiB,CAAA,EAA1C,CAEE,GADAwuE,CACI,CADS1a,CAAAsD,SAAA,CAAcp3D,CAAd,CAAA,CAAiBwuE,CAAjB,CACT,CAAA7rE,CAAA,CAAY6rE,CAAZ,CAAJ,CAA6B,CAC3B4D,CAAA,CAAc,CAAA,CACd,MAF2B,CAM7BnzE,CAAA,CAAS60D,CAAA4d,YAAT,CAAJ,EAAkC/pE,KAAA,CAAMmsD,CAAA4d,YAAN,CAAlC,GAEE5d,CAAA4d,YAFF,CAEqBO,CAAA,CAAWz5C,CAAX,CAFrB,CAIA,KAAIo7C,EAAiB9f,CAAA4d,YAArB,CACImC,EAAe/f,CAAAmD,SAAf4c,EAAgC/f,CAAAmD,SAAA4c,aACpC/f,EAAA6d,gBAAA,CAAuBnD,CAEnBqF,EAAJ,GACE/f,CAAA4d,YAkBA;AAlBmBlD,CAkBnB,CAAI1a,CAAA4d,YAAJ,GAAyBkC,CAAzB,EACE9f,CAAAkgB,oBAAA,EApBJ,CAOAlgB,EAAAggB,gBAAA,CAAqBtF,CAArB,CAAiC1a,CAAA2f,yBAAjC,CAAgE,QAAQ,CAACM,CAAD,CAAW,CAC5EF,CAAL,GAKE/f,CAAA4d,YAMF,CANqBqC,CAAA,CAAWvF,CAAX,CAAwBjwE,CAM7C,CAAIu1D,CAAA4d,YAAJ,GAAyBkC,CAAzB,EACE9f,CAAAkgB,oBAAA,EAZF,CADiF,CAAnF,CA7BmC,CA+CrC,KAAAA,oBAAA,CAA2Be,QAAQ,EAAG,CACpC7C,CAAA,CAAW15C,CAAX,CAAmBs7B,CAAA4d,YAAnB,CACAtyE,EAAA,CAAQ00D,CAAAyc,qBAAR,CAAmC,QAAQ,CAAC7lD,CAAD,CAAW,CACpD,GAAI,CACFA,CAAA,EADE,CAEF,MAAOniB,CAAP,CAAU,CACVgQ,CAAA,CAAkBhQ,CAAlB,CADU,CAHwC,CAAtD,CAFoC,CA6DtC,KAAA8sD,cAAA,CAAqB2f,QAAQ,CAAC70E,CAAD,CAAQq7D,CAAR,CAAiB,CAC5C1H,CAAAqB,WAAA,CAAkBh1D,CACb2zD,EAAAmD,SAAL,EAAsBge,CAAAnhB,CAAAmD,SAAAge,gBAAtB,EACEnhB,CAAAohB,0BAAA,CAA+B1Z,CAA/B,CAH0C,CAO9C,KAAA0Z,0BAAA,CAAiCC,QAAQ,CAAC3Z,CAAD,CAAU,CAAA,IAC7C4Z,EAAgB,CAD6B,CAE7C7rD,EAAUuqC,CAAAmD,SAGV1tC,EAAJ,EAAe3mB,CAAA,CAAU2mB,CAAA8rD,SAAV,CAAf,GACEA,CACA,CADW9rD,CAAA8rD,SACX;AAAIp2E,CAAA,CAASo2E,CAAT,CAAJ,CACED,CADF,CACkBC,CADlB,CAEWp2E,CAAA,CAASo2E,CAAA,CAAS7Z,CAAT,CAAT,CAAJ,CACL4Z,CADK,CACWC,CAAA,CAAS7Z,CAAT,CADX,CAEIv8D,CAAA,CAASo2E,CAAA,CAAS,SAAT,CAAT,CAFJ,GAGLD,CAHK,CAGWC,CAAA,CAAS,SAAT,CAHX,CAJT,CAWAl6D,EAAAsR,OAAA,CAAgB0lD,CAAhB,CACIiD,EAAJ,CACEjD,CADF,CACoBh3D,CAAA,CAAS,QAAQ,EAAG,CACpC24C,CAAAZ,iBAAA,EADoC,CAApB,CAEfkiB,CAFe,CADpB,CAIWn7D,CAAAovB,QAAJ,CACLyqB,CAAAZ,iBAAA,EADK,CAGL16B,CAAAhtB,OAAA,CAAc,QAAQ,EAAG,CACvBsoD,CAAAZ,iBAAA,EADuB,CAAzB,CAxB+C,CAsCnD16B,EAAAx1B,OAAA,CAAcsyE,QAAqB,EAAG,CACpC,IAAI9G,EAAayD,CAAA,CAAWz5C,CAAX,CAIjB,IAAIg2C,CAAJ,GAAmB1a,CAAA4d,YAAnB,GAEI5d,CAAA4d,YAFJ,GAEyB5d,CAAA4d,YAFzB,EAE6ClD,CAF7C,GAE4DA,CAF5D,EAGE,CACA1a,CAAA4d,YAAA,CAAmB5d,CAAA6d,gBAAnB,CAA0CnD,CAC1C4D,EAAA,CAAc7zE,CAMd,KARA,IAIIg3E,EAAazhB,CAAAe,YAJjB,CAKI5gC,EAAMshD,CAAAx2E,OALV,CAOI0vE,EAAYD,CAChB,CAAOv6C,CAAA,EAAP,CAAA,CACEw6C,CAAA,CAAY8G,CAAA,CAAWthD,CAAX,CAAA,CAAgBw6C,CAAhB,CAEV3a,EAAAqB,WAAJ,GAAwBsZ,CAAxB,GACE3a,CAAA8e,qBAAA,CAA0BnE,CAA1B,CAIA,CAHA3a,CAAAqB,WAGA,CAHkBrB,CAAA2f,yBAGlB,CAHkDhF,CAGlD,CAFA3a,CAAA2B,QAAA,EAEA,CAAA3B,CAAAggB,gBAAA,CAAqBtF,CAArB,CAAiCC,CAAjC,CAA4CpsE,CAA5C,CALF,CAXA,CAoBF,MAAOmsE,EA5B6B,CAAtC,CA5nBiH,CAD3F,CAhwBxB;AAylDI/4D,GAAmB,CAAC,YAAD,CAAe,QAAQ,CAACwE,CAAD,CAAa,CACzD,MAAO,CACLgW,SAAU,GADL,CAELD,QAAS,CAAC,SAAD,CAAY,QAAZ,CAAsB,kBAAtB,CAFJ,CAGL1iB,WAAYmkE,EAHP,CAOL1hD,SAAU,CAPL,CAQLxkB,QAASiqE,QAAuB,CAAC3xE,CAAD,CAAU,CAExCA,CAAA2f,SAAA,CAAiB0wC,EAAjB,CAAA1wC,SAAA,CApjCgB4vD,cAojChB,CAAA5vD,SAAA,CAAoE61C,EAApE,CAEA,OAAO,CACL1hC,IAAK89C,QAAuB,CAACnqE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBypE,CAAvB,CAA8B,CAAA,IACpD0I,EAAY1I,CAAA,CAAM,CAAN,CACZ2I,EAAAA,CAAW3I,CAAA,CAAM,CAAN,CAAX2I,EAAuBD,CAAA7iB,aAE3B6iB,EAAArD,aAAA,CAAuBrF,CAAA,CAAM,CAAN,CAAvB,EAAmCA,CAAA,CAAM,CAAN,CAAA/V,SAAnC,CAGA0e,EAAAviB,YAAA,CAAqBsiB,CAArB,CAEAnyE,EAAA88B,SAAA,CAAc,MAAd,CAAsB,QAAQ,CAACjB,CAAD,CAAW,CACnCs2C,CAAAnjB,MAAJ,GAAwBnzB,CAAxB,EACEs2C,CAAA7iB,aAAAS,gBAAA,CAAuCoiB,CAAvC,CAAkDt2C,CAAlD,CAFqC,CAAzC,CAMA9zB,EAAAmuB,IAAA,CAAU,UAAV,CAAsB,QAAQ,EAAG,CAC/Bi8C,CAAA7iB,aAAAa,eAAA,CAAsCgiB,CAAtC,CAD+B,CAAjC,CAfwD,CADrD,CAoBL99C,KAAMg+C,QAAwB,CAACtqE,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBypE,CAAvB,CAA8B,CAC1D,IAAI0I,EAAY1I,CAAA,CAAM,CAAN,CAChB,IAAI0I,CAAAze,SAAJ;AAA0Bye,CAAAze,SAAA4e,SAA1B,CACEhyE,CAAAsJ,GAAA,CAAWuoE,CAAAze,SAAA4e,SAAX,CAAwC,QAAQ,CAAC5gB,CAAD,CAAK,CACnDygB,CAAAR,0BAAA,CAAoCjgB,CAApC,EAA0CA,CAAAp2C,KAA1C,CADmD,CAArD,CAKFhb,EAAAsJ,GAAA,CAAW,MAAX,CAAmB,QAAQ,CAAC8nD,CAAD,CAAK,CAC1BygB,CAAA5D,SAAJ,GAEI73D,CAAAovB,QAAJ,CACE/9B,CAAAvI,WAAA,CAAiB2yE,CAAApC,YAAjB,CADF,CAGEhoE,CAAAE,OAAA,CAAakqE,CAAApC,YAAb,CALF,CAD8B,CAAhC,CAR0D,CApBvD,CAJiC,CARrC,CADkD,CAApC,CAzlDvB,CAipDIwC,GAAiB,uBAjpDrB,CAozDIj/D,GAA0BA,QAAQ,EAAG,CACvC,MAAO,CACLoZ,SAAU,GADL,CAEL3iB,WAAY,CAAC,QAAD,CAAW,QAAX,CAAqB,QAAQ,CAACkrB,CAAD,CAAS5H,CAAT,CAAiB,CACxD,IAAIusB,EAAO,IACX,KAAA8Z,SAAA,CAAgB7yD,EAAA,CAAKo0B,CAAA2qB,MAAA,CAAavyB,CAAAha,eAAb,CAAL,CAEZhU,EAAA,CAAU,IAAAq0D,SAAA4e,SAAV,CAAJ,EACE,IAAA5e,SAAAge,gBAEA,CAFgC,CAAA,CAEhC,CAAA,IAAAhe,SAAA4e,SAAA,CAAyB73D,CAAA,CAAK,IAAAi5C,SAAA4e,SAAAruE,QAAA,CAA+BsuE,EAA/B,CAA+C,QAAQ,EAAG,CACtF34B,CAAA8Z,SAAAge,gBAAA;AAAgC,CAAA,CAChC,OAAO,GAF+E,CAA1D,CAAL,CAH3B,EAQE,IAAAhe,SAAAge,gBARF,CAQkC,CAAA,CAZsB,CAA9C,CAFP,CADgC,CApzDzC,CAq9DI5gE,GAAyB49C,EAAA,CAAY,CAAEr9B,SAAU,CAAA,CAAZ,CAAkB7E,SAAU,GAA5B,CAAZ,CAr9D7B,CAy9DIgmD,GAAkBv3E,CAAA,CAAO,WAAP,CAz9DtB,CA+rEIw3E,GAAoB,2OA/rExB,CA4sEI3gE,GAAqB,CAAC,UAAD,CAAa,QAAb,CAAuB,QAAQ,CAACq6D,CAAD,CAAW31D,CAAX,CAAmB,CAEzEk8D,QAASA,EAAsB,CAACC,CAAD,CAAaC,CAAb,CAA4B7qE,CAA5B,CAAmC,CAsDhE8qE,QAASA,EAAM,CAACC,CAAD,CAAc5H,CAAd,CAAyB6H,CAAzB,CAAgCC,CAAhC,CAAuCC,CAAvC,CAAiD,CAC9D,IAAAH,YAAA,CAAmBA,CACnB,KAAA5H,UAAA,CAAiBA,CACjB,KAAA6H,MAAA,CAAaA,CACb,KAAAC,MAAA,CAAaA,CACb,KAAAC,SAAA,CAAgBA,CAL8C,CAtDA;AA8DhEC,QAASA,EAAmB,CAACC,CAAD,CAAe,CACzC,IAAIC,CAEJ,IAAKC,CAAAA,CAAL,EAAgBn4E,EAAA,CAAYi4E,CAAZ,CAAhB,CACEC,CAAA,CAAmBD,CADrB,KAEO,CAELC,CAAA,CAAmB,EACnB,KAASE,IAAAA,CAAT,GAAoBH,EAApB,CACMA,CAAAj3E,eAAA,CAA4Bo3E,CAA5B,CAAJ,EAAkE,GAAlE,GAA4CA,CAAAnxE,OAAA,CAAe,CAAf,CAA5C,EACEixE,CAAAnyE,KAAA,CAAsBqyE,CAAtB,CALC,CASP,MAAOF,EAdkC,CA5D3C,IAAIpxE,EAAQ2wE,CAAA3wE,MAAA,CAAiBywE,EAAjB,CACZ,IAAMzwE,CAAAA,CAAN,CACE,KAAMwwE,GAAA,CAAgB,MAAhB,CAIJG,CAJI,CAIQ7tE,EAAA,CAAY8tE,CAAZ,CAJR,CAAN,CAUF,IAAIW,EAAYvxE,CAAA,CAAM,CAAN,CAAZuxE,EAAwBvxE,CAAA,CAAM,CAAN,CAA5B,CAEIqxE,EAAUrxE,CAAA,CAAM,CAAN,CAGVwxE,EAAAA,CAAW,MAAA3zE,KAAA,CAAYmC,CAAA,CAAM,CAAN,CAAZ,CAAXwxE,EAAoCxxE,CAAA,CAAM,CAAN,CAExC,KAAIyxE,EAAUzxE,CAAA,CAAM,CAAN,CAEV/C,EAAAA,CAAUuX,CAAA,CAAOxU,CAAA,CAAM,CAAN,CAAA,CAAWA,CAAA,CAAM,CAAN,CAAX,CAAsBuxE,CAA7B,CAEd,KAAIG,EADaF,CACbE,EADyBl9D,CAAA,CAAOg9D,CAAP,CACzBE,EAA4Bz0E,CAAhC,CACI00E,EAAYF,CAAZE,EAAuBn9D,CAAA,CAAOi9D,CAAP,CAD3B,CAMIG,EAAoBH,CAAA,CACE,QAAQ,CAAC72E,CAAD,CAAQmmB,CAAR,CAAgB,CAAE,MAAO4wD,EAAA,CAAU5rE,CAAV,CAAiBgb,CAAjB,CAAT,CAD1B,CAEE8wD,QAAuB,CAACj3E,CAAD,CAAQ,CAAE,MAAOujB,GAAA,CAAQvjB,CAAR,CAAT,CARzD,CASIk3E,EAAkBA,QAAQ,CAACl3E,CAAD,CAAQZ,CAAR,CAAa,CACzC,MAAO43E,EAAA,CAAkBh3E,CAAlB,CAAyBm3E,CAAA,CAAUn3E,CAAV,CAAiBZ,CAAjB,CAAzB,CADkC,CAT3C,CAaIg4E,EAAYx9D,CAAA,CAAOxU,CAAA,CAAM,CAAN,CAAP,EAAmBA,CAAA,CAAM,CAAN,CAAnB,CAbhB,CAcIiyE,EAAYz9D,CAAA,CAAOxU,CAAA,CAAM,CAAN,CAAP,EAAmB,EAAnB,CAdhB,CAeIkyE,EAAgB19D,CAAA,CAAOxU,CAAA,CAAM,CAAN,CAAP,EAAmB,EAAnB,CAfpB,CAgBImyE,EAAW39D,CAAA,CAAOxU,CAAA,CAAM,CAAN,CAAP,CAhBf,CAkBI+gB,EAAS,EAlBb,CAmBIgxD,EAAYV,CAAA,CAAU,QAAQ,CAACz2E,CAAD,CAAQZ,CAAR,CAAa,CAC7C+mB,CAAA,CAAOswD,CAAP,CAAA,CAAkBr3E,CAClB+mB,EAAA,CAAOwwD,CAAP,CAAA,CAAoB32E,CACpB,OAAOmmB,EAHsC,CAA/B,CAIZ,QAAQ,CAACnmB,CAAD,CAAQ,CAClBmmB,CAAA,CAAOwwD,CAAP,CAAA,CAAoB32E,CACpB,OAAOmmB,EAFW,CA+BpB,OAAO,CACL0wD,QAASA,CADJ;AAELK,gBAAiBA,CAFZ,CAGLM,cAAe59D,CAAA,CAAO29D,CAAP,CAAiB,QAAQ,CAAChB,CAAD,CAAe,CAIrD,IAAIkB,EAAe,EACnBlB,EAAA,CAAeA,CAAf,EAA+B,EAI/B,KAFA,IAAIC,EAAmBF,CAAA,CAAoBC,CAApB,CAAvB,CACImB,EAAqBlB,CAAA53E,OADzB,CAESkF,EAAQ,CAAjB,CAAoBA,CAApB,CAA4B4zE,CAA5B,CAAgD5zE,CAAA,EAAhD,CAAyD,CACvD,IAAI1E,EAAOm3E,CAAD,GAAkBC,CAAlB,CAAsC1yE,CAAtC,CAA8C0yE,CAAA,CAAiB1yE,CAAjB,CAAxD,CAGIqiB,EAASgxD,CAAA,CAAUZ,CAAA,CAAan3E,CAAb,CAAV,CAA6BA,CAA7B,CAHb,CAII82E,EAAcc,CAAA,CAAkBT,CAAA,CAAan3E,CAAb,CAAlB,CAAqC+mB,CAArC,CAClBsxD,EAAApzE,KAAA,CAAkB6xE,CAAlB,CAGA,IAAI9wE,CAAA,CAAM,CAAN,CAAJ,EAAgBA,CAAA,CAAM,CAAN,CAAhB,CACM+wE,CACJ,CADYiB,CAAA,CAAUjsE,CAAV,CAAiBgb,CAAjB,CACZ,CAAAsxD,CAAApzE,KAAA,CAAkB8xE,CAAlB,CAIE/wE,EAAA,CAAM,CAAN,CAAJ,GACMuyE,CACJ,CADkBL,CAAA,CAAcnsE,CAAd,CAAqBgb,CAArB,CAClB,CAAAsxD,CAAApzE,KAAA,CAAkBszE,CAAlB,CAFF,CAfuD,CAoBzD,MAAOF,EA7B8C,CAAxC,CAHV,CAmCLG,WAAYA,QAAQ,EAAG,CAWrB,IATA,IAAIC,EAAc,EAAlB,CACIC,EAAiB,EADrB,CAKIvB,EAAegB,CAAA,CAASpsE,CAAT,CAAforE,EAAkC,EALtC,CAMIC,EAAmBF,CAAA,CAAoBC,CAApB,CANvB,CAOImB,EAAqBlB,CAAA53E,OAPzB,CASSkF,EAAQ,CAAjB,CAAoBA,CAApB,CAA4B4zE,CAA5B,CAAgD5zE,CAAA,EAAhD,CAAyD,CACvD,IAAI1E,EAAOm3E,CAAD,GAAkBC,CAAlB,CAAsC1yE,CAAtC,CAA8C0yE,CAAA,CAAiB1yE,CAAjB,CAAxD,CAEIqiB,EAASgxD,CAAA,CADDZ,CAAAv2E,CAAaZ,CAAbY,CACC,CAAiBZ,CAAjB,CAFb,CAGIkvE,EAAYwI,CAAA,CAAY3rE,CAAZ,CAAmBgb,CAAnB,CAHhB,CAII+vD,EAAcc,CAAA,CAAkB1I,CAAlB,CAA6BnoD,CAA7B,CAJlB,CAKIgwD,EAAQiB,CAAA,CAAUjsE,CAAV,CAAiBgb,CAAjB,CALZ,CAMIiwD,EAAQiB,CAAA,CAAUlsE,CAAV,CAAiBgb,CAAjB,CANZ,CAOIkwD,EAAWiB,CAAA,CAAcnsE,CAAd,CAAqBgb,CAArB,CAPf,CAQI4xD,EAAa,IAAI9B,CAAJ,CAAWC,CAAX,CAAwB5H,CAAxB,CAAmC6H,CAAnC,CAA0CC,CAA1C,CAAiDC,CAAjD,CAEjBwB,EAAAxzE,KAAA,CAAiB0zE,CAAjB,CACAD,EAAA,CAAe5B,CAAf,CAAA,CAA8B6B,CAZyB,CAezD,MAAO,CACLx0E,MAAOs0E,CADF,CAELC,eAAgBA,CAFX,CAGLE,uBAAwBA,QAAQ,CAACh4E,CAAD,CAAQ,CACtC,MAAO83E,EAAA,CAAeZ,CAAA,CAAgBl3E,CAAhB,CAAf,CAD+B,CAHnC;AAMLi4E,uBAAwBA,QAAQ,CAAC5lE,CAAD,CAAS,CAGvC,MAAOwkE,EAAA,CAAUprE,EAAAxH,KAAA,CAAaoO,CAAAi8D,UAAb,CAAV,CAA2Cj8D,CAAAi8D,UAHX,CANpC,CA1Bc,CAnClB,CA/EyD,CAFO,IAiKrE4J,EAAiB/5E,CAAAwe,cAAA,CAAuB,QAAvB,CAjKoD,CAkKrEw7D,EAAmBh6E,CAAAwe,cAAA,CAAuB,UAAvB,CAgVvB,OAAO,CACLmT,SAAU,GADL,CAEL2E,SAAU,CAAA,CAFL,CAGL5E,QAAS,CAAC,QAAD,CAAW,SAAX,CAHJ,CAIL7C,KAAM,CACJwK,IAAK4gD,QAAyB,CAACjtE,CAAD,CAAQ6qE,CAAR,CAAuB5yE,CAAvB,CAA6BypE,CAA7B,CAAoC,CAIhEA,CAAA,CAAM,CAAN,CAAAwL,eAAA,CAA0Bn2E,CAJsC,CAD9D,CAOJu1B,KAzVF6gD,QAA0B,CAACntE,CAAD,CAAQ6qE,CAAR,CAAuB5yE,CAAvB,CAA6BypE,CAA7B,CAAoC,CAgL5D0L,QAASA,EAAmB,CAAClmE,CAAD,CAAS3O,CAAT,CAAkB,CAC5C2O,CAAA3O,QAAA,CAAiBA,CACjBA,EAAA2yE,SAAA,CAAmBhkE,CAAAgkE,SAMfhkE,EAAA8jE,MAAJ,GAAqBzyE,CAAAyyE,MAArB,GACEzyE,CAAAyyE,MACA,CADgB9jE,CAAA8jE,MAChB,CAAAzyE,CAAA4Z,YAAA,CAAsBjL,CAAA8jE,MAFxB,CAII9jE,EAAArS,MAAJ,GAAqB0D,CAAA1D,MAArB,GAAoC0D,CAAA1D,MAApC,CAAoDqS,CAAA6jE,YAApD,CAZ4C,CAe9CsC,QAASA,EAAiB,CAACz2E,CAAD,CAASm+C,CAAT,CAAkBxhC,CAAlB,CAAwB+wD,CAAxB,CAAyC,CAG7DvvB,CAAJ,EAAev8C,CAAA,CAAUu8C,CAAA/+C,SAAV,CAAf,GAA+Cud,CAA/C,CAEEhb,CAFF,CAEYw8C,CAFZ,EAKEx8C,CACA,CADU+rE,CAAAruE,UAAA,CAA0B,CAAA,CAA1B,CACV,CAAK8+C,CAAL,CAKEn+C,CAAA86D,aAAA,CAAoBn5D,CAApB;AAA6Bw8C,CAA7B,CALF,CAEEn+C,CAAA2a,YAAA,CAAmBhZ,CAAnB,CARJ,CAcA,OAAOA,EAjB0D,CAqBnE+0E,QAASA,EAAoB,CAACv4B,CAAD,CAAU,CAErC,IADA,IAAIgD,CACJ,CAAOhD,CAAP,CAAA,CACEgD,CAEA,CAFOhD,CAAArxC,YAEP,CADAiS,EAAA,CAAao/B,CAAb,CACA,CAAAA,CAAA,CAAUgD,CALyB,CAUvCw1B,QAASA,EAA0B,CAACx4B,CAAD,CAAU,CAC3C,IAAIy4B,EAAeC,CAAfD,EAA8BC,CAAA,CAAY,CAAZ,CAAlC,CACIC,EAAiBC,CAAjBD,EAAkCC,CAAA,CAAc,CAAd,CAKtC,IAAIH,CAAJ,EAAoBE,CAApB,CACE,IAAA,CAAO34B,CAAP,GACOA,CADP,GACmBy4B,CADnB,EAEMz4B,CAFN,GAEkB24B,CAFlB,EA3qyBcviD,CA2qyBd,GAGM4pB,CAAA13C,SAHN,EAI8B,QAJ9B,GAIO/E,EAAA,CAAUy8C,CAAV,CAJP,EAI4D,EAJ5D,GAI0CA,CAAAlgD,MAJ1C,EAAA,CAKEkgD,CAAA,CAAUA,CAAArxC,YAGd,OAAOqxC,EAhBoC,CAoB7C64B,QAASA,EAAa,EAAG,CAEvB,IAAIC,EAAgB5vD,CAAhB4vD,EAA2BC,CAAAC,UAAA,EAE/B9vD,EAAA,CAAUnU,CAAA2iE,WAAA,EAEV,KAAIuB,EAAW,EAAf,CACIpI,EAAiBiF,CAAA,CAAc,CAAd,CAAA34D,WAGjB+7D,EAAJ,EACEpD,CAAAjZ,QAAA,CAAsB6b,CAAtB,CAGF7H,EAAA,CAAiB2H,CAAA,CAA2B3H,CAA3B,CAEjB3nD,EAAA7lB,MAAAtE,QAAA,CAAsBo6E,QAAqB,CAAChnE,CAAD,CAAS,CAClD,IAAI+jE,CAAJ,CAEIkD,CAEA72E,EAAA,CAAU4P,CAAA+jE,MAAV,CAAJ,EAIEA,CA8BA,CA9BQ+C,CAAA,CAAS9mE,CAAA+jE,MAAT,CA8BR,CA5BKA,CA4BL,GAzBEmD,CAWA,CAXef,CAAA,CAAkBxC,CAAA,CAAc,CAAd,CAAlB,CACkBjF,CADlB,CAEkB,UAFlB,CAGkBoH,CAHlB,CAWf,CANApH,CAMA,CANiBwI,CAAA1qE,YAMjB,CAHA0qE,CAAApD,MAGA,CAHqB9jE,CAAA+jE,MAGrB,CAAAA,CAAA,CAAQ+C,CAAA,CAAS9mE,CAAA+jE,MAAT,CAAR,CAAiC,CAC/BmD,aAAcA,CADiB,CAE/BC,qBAAsBD,CAAAl8D,WAFS,CAcnC;AANAi8D,CAMA,CANgBd,CAAA,CAAkBpC,CAAAmD,aAAlB,CACkBnD,CAAAoD,qBADlB,CAEkB,QAFlB,CAGkBtB,CAHlB,CAMhB,CAFAK,CAAA,CAAoBlmE,CAApB,CAA4BinE,CAA5B,CAEA,CAAAlD,CAAAoD,qBAAA,CAA6BF,CAAAzqE,YAlC/B,GAuCEyqE,CAMA,CANgBd,CAAA,CAAkBxC,CAAA,CAAc,CAAd,CAAlB,CACkBjF,CADlB,CAEkB,QAFlB,CAGkBmH,CAHlB,CAMhB,CAFAK,CAAA,CAAoBlmE,CAApB,CAA4BinE,CAA5B,CAEA,CAAAvI,CAAA,CAAiBuI,CAAAzqE,YA7CnB,CALkD,CAApD,CAwDAhQ,OAAAc,KAAA,CAAYw5E,CAAZ,CAAAl6E,QAAA,CAA8B,QAAQ,CAACG,CAAD,CAAM,CAC1Cq5E,CAAA,CAAqBU,CAAA,CAAS/5E,CAAT,CAAAo6E,qBAArB,CAD0C,CAA5C,CAGAf,EAAA,CAAqB1H,CAArB,CAEA0I,EAAAnkB,QAAA,EAGA,IAAK,CAAAmkB,CAAA9kB,SAAA,CAAqBqkB,CAArB,CAAL,CAA0C,CACxC,IAAIU,EAAYT,CAAAC,UAAA,EAEhB,EADqBjkE,CAAA4hE,QACjB,EADsC1a,CACtC,CAAkB32D,EAAA,CAAOwzE,CAAP,CAAsBU,CAAtB,CAAlB,CAAqDV,CAArD,GAAuEU,CAA3E,IACED,CAAAvkB,cAAA,CAA0BwkB,CAA1B,CACA,CAAAD,CAAAnkB,QAAA,EAFF,CAHwC,CAhFnB,CAhPzB,IAAI2jB,EAAapM,CAAA,CAAM,CAAN,CAAjB,CACI4M,EAAc5M,CAAA,CAAM,CAAN,CADlB,CAEI1Q,EAAW/4D,CAAA+4D,SAFf,CAMIyc,CACK/4E,EAAAA,CAAI,CAAb,KAT4D,IAS5C21C,EAAWwgC,CAAAxgC,SAAA,EATiC,CASP/0C,EAAK+0C,CAAA52C,OAA1D,CAA2EiB,CAA3E,CAA+EY,CAA/E,CAAmFZ,CAAA,EAAnF,CACE,GAA0B,EAA1B,GAAI21C,CAAA,CAAS31C,CAAT,CAAAG,MAAJ,CAA8B,CAC5B44E,CAAA,CAAcpjC,CAAAqL,GAAA,CAAYhhD,CAAZ,CACd,MAF4B,CAMhC,IAAIu5E,EAAsB,CAAER,CAAAA,CAA5B,CAEIE,EAAgBn6E,CAAA,CAAOu5E,CAAA92E,UAAA,CAAyB,CAAA,CAAzB,CAAP,CACpB03E,EAAApyE,IAAA,CAAkB,GAAlB,CAEA,KAAI0iB,CAAJ,CACInU,EAAY6gE,CAAA,CAAuB1yE,CAAA6R,UAAvB;AAAuC+gE,CAAvC,CAAsD7qE,CAAtD,CA+BXgxD,EAAL,EAgDEsd,CAAA9kB,SAiCA,CAjCuBglB,QAAQ,CAAC35E,CAAD,CAAQ,CACrC,MAAO,CAACA,CAAR,EAAkC,CAAlC,GAAiBA,CAAApB,OADoB,CAiCvC,CA5BAq6E,CAAAW,WA4BA,CA5BwBC,QAA+B,CAAC75E,CAAD,CAAQ,CAC7DopB,CAAA7lB,MAAAtE,QAAA,CAAsB,QAAQ,CAACoT,CAAD,CAAS,CACrCA,CAAA3O,QAAA04D,SAAA,CAA0B,CAAA,CADW,CAAvC,CAIIp8D,EAAJ,EACEA,CAAAf,QAAA,CAAc,QAAQ,CAACD,CAAD,CAAO,CAE3B,CADIqT,CACJ,CADa+W,CAAA4uD,uBAAA,CAA+Bh5E,CAA/B,CACb,GAAeq3E,CAAAhkE,CAAAgkE,SAAf,GAAgChkE,CAAA3O,QAAA04D,SAAhC,CAA0D,CAAA,CAA1D,CAF2B,CAA7B,CAN2D,CA4B/D,CAdA6c,CAAAC,UAcA,CAduBY,QAA8B,EAAG,CAAA,IAClDC,EAAiB/D,CAAAtvE,IAAA,EAAjBqzE,EAAwC,EADU,CAElDC,EAAa,EAEjB/6E,EAAA,CAAQ86E,CAAR,CAAwB,QAAQ,CAAC/5E,CAAD,CAAQ,CAEtC,CADIqS,CACJ,CADa+W,CAAA0uD,eAAA,CAAuB93E,CAAvB,CACb,GAAeq2E,CAAAhkE,CAAAgkE,SAAf,EAAgC2D,CAAA31E,KAAA,CAAgB+kB,CAAA6uD,uBAAA,CAA+B5lE,CAA/B,CAAhB,CAFM,CAAxC,CAKA,OAAO2nE,EAT+C,CAcxD,CAAI/kE,CAAA4hE,QAAJ,EAEE1rE,CAAAs1B,iBAAA,CAAuB,QAAQ,EAAG,CAChC,GAAIhiC,CAAA,CAAQg7E,CAAAzkB,WAAR,CAAJ,CACE,MAAOykB,EAAAzkB,WAAA5D,IAAA,CAA2B,QAAQ,CAACpxD,CAAD,CAAQ,CAChD,MAAOiV,EAAAiiE,gBAAA,CAA0Bl3E,CAA1B,CADyC,CAA3C,CAFuB,CAAlC;AAMG,QAAQ,EAAG,CACZy5E,CAAAnkB,QAAA,EADY,CANd,CAnFJ,GAEE2jB,CAAAW,WAqCA,CArCwBC,QAA4B,CAAC75E,CAAD,CAAQ,CAC1D,IAAIqS,EAAS+W,CAAA4uD,uBAAA,CAA+Bh4E,CAA/B,CAETqS,EAAJ,EAAegkE,CAAAhkE,CAAAgkE,SAAf,CACML,CAAA,CAAc,CAAd,CAAAh2E,MADN,GACiCqS,CAAA6jE,YADjC,GATF4C,CAAAjrD,OAAA,EAgBM,CA9BDurD,CA8BC,EA7BJR,CAAA/qD,OAAA,EA6BI,CAFAmoD,CAAA,CAAc,CAAd,CAAAh2E,MAEA,CAFyBqS,CAAA6jE,YAEzB,CADA7jE,CAAA3O,QAAA04D,SACA,CAD0B,CAAA,CAC1B,CAAA/pD,CAAA3O,QAAAsc,aAAA,CAA4B,UAA5B,CAAwC,UAAxC,CAPJ,EAUgB,IAAd,GAAIhgB,CAAJ,EAAsBo5E,CAAtB,EAnBJN,CAAAjrD,OAAA,EAlBA,CALKurD,CAKL,EAJEpD,CAAAjZ,QAAA,CAAsB6b,CAAtB,CAIF,CAFA5C,CAAAtvE,IAAA,CAAkB,EAAlB,CAEA,CADAkyE,CAAAz1E,KAAA,CAAiB,UAAjB,CAA6B,CAAA,CAA7B,CACA,CAAAy1E,CAAAx1E,KAAA,CAAiB,UAAjB,CAA6B,CAAA,CAA7B,CAqCI,GAjCCg2E,CAUL,EATER,CAAA/qD,OAAA,EASF,CAHAmoD,CAAAjZ,QAAA,CAAsB+b,CAAtB,CAGA,CAFA9C,CAAAtvE,IAAA,CAAkB,GAAlB,CAEA,CADAoyE,CAAA31E,KAAA,CAAmB,UAAnB,CAA+B,CAAA,CAA/B,CACA,CAAA21E,CAAA11E,KAAA,CAAmB,UAAnB,CAA+B,CAAA,CAA/B,CAuBI,CAbwD,CAqC5D,CAdA61E,CAAAC,UAcA,CAduBY,QAA2B,EAAG,CAEnD,IAAIG,EAAiB7wD,CAAA0uD,eAAA,CAAuB9B,CAAAtvE,IAAA,EAAvB,CAErB,OAAIuzE,EAAJ,EAAuB5D,CAAA4D,CAAA5D,SAAvB;CA/CG+C,CAkDM,EAjDTR,CAAA/qD,OAAA,EAiDS,CApCXirD,CAAAjrD,OAAA,EAoCW,CAAAzE,CAAA6uD,uBAAA,CAA+BgC,CAA/B,CAHT,EAKO,IAT4C,CAcrD,CAAIhlE,CAAA4hE,QAAJ,EACE1rE,CAAAtI,OAAA,CACE,QAAQ,EAAG,CAAE,MAAOoS,EAAAiiE,gBAAA,CAA0BuC,CAAAzkB,WAA1B,CAAT,CADb,CAEE,QAAQ,EAAG,CAAEykB,CAAAnkB,QAAA,EAAF,CAFb,CAxCJ,CAiGI8jB,EAAJ,EAIER,CAAA/qD,OAAA,EAOA,CAJA0hD,CAAA,CAASqJ,CAAT,CAAA,CAAsBztE,CAAtB,CAIA,CAAAytE,CAAAt1D,YAAA,CAAwB,UAAxB,CAXF,EAaEs1D,CAbF,CAagBj6E,CAAA,CAAOu5E,CAAA92E,UAAA,CAAyB,CAAA,CAAzB,CAAP,CAKhB23E,EAAA,EAGA5tE,EAAAs1B,iBAAA,CAAuBxrB,CAAAuiE,cAAvB,CAAgDuB,CAAhD,CA3K4D,CAkVxD,CAJD,CAlfkE,CAAlD,CA5sEzB,CA63FI3kE,GAAuB,CAAC,SAAD,CAAY,cAAZ,CAA4B,MAA5B,CAAoC,QAAQ,CAACq3C,CAAD,CAAU/yC,CAAV,CAAwBgB,CAAxB,CAA8B,CAAA,IAC/FwgE,EAAQ,KADuF,CAE/FC,EAAU,oBAEd,OAAO,CACLntD,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAoDnCg3E,QAASA,EAAiB,CAACC,CAAD,CAAU,CAClC32E,CAAAo6B,KAAA,CAAau8C,CAAb,EAAwB,EAAxB,CADkC,CApDD,IAC/BC,EAAYl3E,CAAA+qC,MADmB,CAE/BosC,EAAUn3E,CAAAiyB,MAAA2S,KAAVuyC,EAA6B72E,CAAAN,KAAA,CAAaA,CAAAiyB,MAAA2S,KAAb,CAFE,CAG/BjsB,EAAS3Y,CAAA2Y,OAATA,EAAwB,CAHO,CAI/By+D,EAAQrvE,CAAA63C,MAAA,CAAYu3B,CAAZ,CAARC,EAAgC,EAJD,CAK/BC;AAAc,EALiB,CAM/Bp4C,EAAc3pB,CAAA2pB,YAAA,EANiB,CAO/BC,EAAY5pB,CAAA4pB,UAAA,EAPmB,CAQ/Bo4C,EAAmBr4C,CAAnBq4C,CAAiCJ,CAAjCI,CAA6C,GAA7CA,CAAmD3+D,CAAnD2+D,CAA4Dp4C,CAR7B,CAS/Bq4C,EAAelvE,EAAAvJ,KATgB,CAU/B04E,CAEJ37E,EAAA,CAAQmE,CAAR,CAAc,QAAQ,CAACqgC,CAAD,CAAao3C,CAAb,CAA4B,CAChD,IAAIC,EAAWX,CAAAt9D,KAAA,CAAag+D,CAAb,CACXC,EAAJ,GACMC,CACJ,EADeD,CAAA,CAAS,CAAT,CAAA,CAAc,GAAd,CAAoB,EACnC,EADyCn3E,CAAA,CAAUm3E,CAAA,CAAS,CAAT,CAAV,CACzC,CAAAN,CAAA,CAAMO,CAAN,CAAA,CAAiBr3E,CAAAN,KAAA,CAAaA,CAAAiyB,MAAA,CAAWwlD,CAAX,CAAb,CAFnB,CAFgD,CAAlD,CAOA57E,EAAA,CAAQu7E,CAAR,CAAe,QAAQ,CAAC/2C,CAAD,CAAarkC,CAAb,CAAkB,CACvCq7E,CAAA,CAAYr7E,CAAZ,CAAA,CAAmBsZ,CAAA,CAAa+qB,CAAAp8B,QAAA,CAAmB6yE,CAAnB,CAA0BQ,CAA1B,CAAb,CADoB,CAAzC,CAKAvvE,EAAAtI,OAAA,CAAay3E,CAAb,CAAwBU,QAA+B,CAACnyD,CAAD,CAAS,CAC9D,IAAIslB,EAAQqiB,UAAA,CAAW3nC,CAAX,CAAZ,CACIoyD,EAAazzE,KAAA,CAAM2mC,CAAN,CAEZ8sC,EAAL,EAAqB9sC,CAArB,GAA8BqsC,EAA9B,GAGErsC,CAHF,CAGUsd,CAAAyvB,UAAA,CAAkB/sC,CAAlB,CAA0BpyB,CAA1B,CAHV,CAQKoyB,EAAL,GAAeysC,CAAf,EAA+BK,CAA/B,EAA6Cn8E,CAAA,CAAS87E,CAAT,CAA7C,EAAoEpzE,KAAA,CAAMozE,CAAN,CAApE,GACED,CAAA,EAWA,CAVIQ,CAUJ,CAVgBV,CAAA,CAAYtsC,CAAZ,CAUhB,CATI3rC,CAAA,CAAY24E,CAAZ,CAAJ,EACgB,IAId,EAJItyD,CAIJ,EAHEnP,CAAA06B,MAAA,CAAW,oCAAX,CAAkDjG,CAAlD,CAA0D,OAA1D,CAAoEosC,CAApE,CAGF,CADAI,CACA,CADez4E,CACf,CAAAk4E,CAAA,EALF,EAOEO,CAPF,CAOiBxvE,CAAAtI,OAAA,CAAas4E,CAAb,CAAwBf,CAAxB,CAEjB,CAAAQ,CAAA,CAAYzsC,CAZd,CAZ8D,CAAhE,CAxBmC,CADhC,CAJ4F,CAA1E,CA73F3B,CAyvGI75B,GAAoB,CAAC,QAAD,CAAW,UAAX,CAAuB,QAAQ,CAACsF,CAAD,CAAS5C,CAAT,CAAmB,CAExE,IAAIokE,EAAiB/8E,CAAA,CAAO,UAAP,CAArB,CAEIg9E,EAAcA,QAAQ,CAAClwE,CAAD,CAAQrH,CAAR;AAAew3E,CAAf,CAAgCt7E,CAAhC,CAAuCu7E,CAAvC,CAAsDn8E,CAAtD,CAA2Do8E,CAA3D,CAAwE,CAEhGrwE,CAAA,CAAMmwE,CAAN,CAAA,CAAyBt7E,CACrBu7E,EAAJ,GAAmBpwE,CAAA,CAAMowE,CAAN,CAAnB,CAA0Cn8E,CAA1C,CACA+L,EAAAstD,OAAA,CAAe30D,CACfqH,EAAAswE,OAAA,CAA0B,CAA1B,GAAgB33E,CAChBqH,EAAAuwE,MAAA,CAAe53E,CAAf,GAA0B03E,CAA1B,CAAwC,CACxCrwE,EAAAwwE,QAAA,CAAgB,EAAExwE,CAAAswE,OAAF,EAAkBtwE,CAAAuwE,MAAlB,CAEhBvwE,EAAAywE,KAAA,CAAa,EAAEzwE,CAAA0wE,MAAF,CAA8B,CAA9B,IAAiB/3E,CAAjB,CAAuB,CAAvB,EATmF,CAsBlG,OAAO,CACLgsB,SAAU,GADL,CAELwM,aAAc,CAAA,CAFT,CAGL1L,WAAY,SAHP,CAILhB,SAAU,GAJL,CAKL6E,SAAU,CAAA,CALL,CAMLiG,MAAO,CAAA,CANF,CAOLtvB,QAAS0wE,QAAwB,CAACtrD,CAAD,CAAW6E,CAAX,CAAkB,CACjD,IAAIoO,EAAapO,CAAAhhB,SAAjB,CACI0nE,EAAqB59E,CAAA08B,cAAA,CAAuB,iBAAvB,CAA2C4I,CAA3C,CAAwD,GAAxD,CADzB,CAGIr+B,EAAQq+B,CAAAr+B,MAAA,CAAiB,4FAAjB,CAEZ,IAAKA,CAAAA,CAAL,CACE,KAAMg2E,EAAA,CAAe,MAAf,CACF33C,CADE,CAAN,CAIF,IAAIylC,EAAM9jE,CAAA,CAAM,CAAN,CAAV,CACI6jE,EAAM7jE,CAAA,CAAM,CAAN,CADV,CAEI42E,EAAU52E,CAAA,CAAM,CAAN,CAFd,CAGI62E,EAAa72E,CAAA,CAAM,CAAN,CAHjB,CAKAA,EAAQ8jE,CAAA9jE,MAAA,CAAU,wDAAV,CAER;GAAKA,CAAAA,CAAL,CACE,KAAMg2E,EAAA,CAAe,QAAf,CACFlS,CADE,CAAN,CAGF,IAAIoS,EAAkBl2E,CAAA,CAAM,CAAN,CAAlBk2E,EAA8Bl2E,CAAA,CAAM,CAAN,CAAlC,CACIm2E,EAAgBn2E,CAAA,CAAM,CAAN,CAEpB,IAAI42E,CAAJ,GAAiB,CAAA,4BAAA/4E,KAAA,CAAkC+4E,CAAlC,CAAjB,EACI,2FAAA/4E,KAAA,CAAiG+4E,CAAjG,CADJ,EAEE,KAAMZ,EAAA,CAAe,UAAf,CACJY,CADI,CAAN,CA3B+C,IA+B7CE,CA/B6C,CA+B3BC,CA/B2B,CA+BXC,CA/BW,CA+BOC,CA/BP,CAgC7CC,EAAe,CAACt9B,IAAKz7B,EAAN,CAEf04D,EAAJ,CACEC,CADF,CACqBtiE,CAAA,CAAOqiE,CAAP,CADrB,EAGEG,CAGA,CAHmBA,QAAQ,CAACh9E,CAAD,CAAMY,CAAN,CAAa,CACtC,MAAOujB,GAAA,CAAQvjB,CAAR,CAD+B,CAGxC,CAAAq8E,CAAA,CAAiBA,QAAQ,CAACj9E,CAAD,CAAM,CAC7B,MAAOA,EADsB,CANjC,CAWA,OAAOm9E,SAAqB,CAAClkD,CAAD,CAAS7H,CAAT,CAAmB6E,CAAnB,CAA0Bs+B,CAA1B,CAAgCr7B,CAAhC,CAA6C,CAEnE4jD,CAAJ,GACEC,CADF,CACmBA,QAAQ,CAAC/8E,CAAD,CAAMY,CAAN,CAAa8D,CAAb,CAAoB,CAEvCy3E,CAAJ,GAAmBe,CAAA,CAAaf,CAAb,CAAnB,CAAiDn8E,CAAjD,CACAk9E,EAAA,CAAahB,CAAb,CAAA,CAAgCt7E,CAChCs8E,EAAA7jB,OAAA,CAAsB30D,CACtB,OAAOo4E,EAAA,CAAiB7jD,CAAjB,CAAyBikD,CAAzB,CALoC,CAD/C,CAkBA,KAAIE,EAAez2E,CAAA,EAGnBsyB,EAAAoI,iBAAA,CAAwBwoC,CAAxB,CAA6BwT,QAAuB,CAAC5tD,CAAD,CAAa,CAAA,IAC3D/qB,CAD2D,CACpDlF,CADoD,CAE3D89E,EAAelsD,CAAA,CAAS,CAAT,CAF4C,CAI3DmsD,CAJ2D,CAO3DC,EAAe72E,CAAA,EAP4C,CAQ3D82E,CAR2D,CAS3Dz9E,CAT2D,CAStDY,CATsD,CAU3D88E,CAV2D,CAY3DC,CAZ2D,CAa3DlsE,CAb2D,CAc3DmsE,CAGAhB,EAAJ,GACE3jD,CAAA,CAAO2jD,CAAP,CADF,CACoBntD,CADpB,CAIA,IAAIvwB,EAAA,CAAYuwB,CAAZ,CAAJ,CACEkuD,CACA;AADiBluD,CACjB,CAAAouD,CAAA,CAAcd,CAAd,EAAgCC,CAFlC,KAOE,KAAS1F,CAAT,GAHAuG,EAGoBpuD,CAHNstD,CAGMttD,EAHYwtD,CAGZxtD,CADpBkuD,CACoBluD,CADH,EACGA,CAAAA,CAApB,CACMvvB,EAAAC,KAAA,CAAoBsvB,CAApB,CAAgC6nD,CAAhC,CAAJ,EAAsE,GAAtE,GAAgDA,CAAAnxE,OAAA,CAAe,CAAf,CAAhD,EACEw3E,CAAA14E,KAAA,CAAoBqyE,CAApB,CAKNmG,EAAA,CAAmBE,CAAAn+E,OACnBo+E,EAAA,CAAqBj+E,KAAJ,CAAU89E,CAAV,CAGjB,KAAK/4E,CAAL,CAAa,CAAb,CAAgBA,CAAhB,CAAwB+4E,CAAxB,CAA0C/4E,CAAA,EAA1C,CAIE,GAHA1E,CAGI,CAHGyvB,CAAD,GAAgBkuD,CAAhB,CAAkCj5E,CAAlC,CAA0Ci5E,CAAA,CAAej5E,CAAf,CAG5C,CAFJ9D,CAEI,CAFI6uB,CAAA,CAAWzvB,CAAX,CAEJ,CADJ09E,CACI,CADQG,CAAA,CAAY79E,CAAZ,CAAiBY,CAAjB,CAAwB8D,CAAxB,CACR,CAAA04E,CAAA,CAAaM,CAAb,CAAJ,CAEEjsE,CAGA,CAHQ2rE,CAAA,CAAaM,CAAb,CAGR,CAFA,OAAON,CAAA,CAAaM,CAAb,CAEP,CADAF,CAAA,CAAaE,CAAb,CACA,CAD0BjsE,CAC1B,CAAAmsE,CAAA,CAAel5E,CAAf,CAAA,CAAwB+M,CAL1B,KAMO,CAAA,GAAI+rE,CAAA,CAAaE,CAAb,CAAJ,CAKL,KAHA79E,EAAA,CAAQ+9E,CAAR,CAAwB,QAAQ,CAACnsE,CAAD,CAAQ,CAClCA,CAAJ,EAAaA,CAAA1F,MAAb,GAA0BqxE,CAAA,CAAa3rE,CAAA0c,GAAb,CAA1B,CAAmD1c,CAAnD,CADsC,CAAxC,CAGM,CAAAuqE,CAAA,CAAe,OAAf,CAEF33C,CAFE,CAEUq5C,CAFV,CAEqB98E,CAFrB,CAAN,CAKAg9E,CAAA,CAAel5E,CAAf,CAAA,CAAwB,CAACypB,GAAIuvD,CAAL,CAAgB3xE,MAAO/M,CAAvB,CAAkCkD,MAAOlD,CAAzC,CACxBw+E,EAAA,CAAaE,CAAb,CAAA,CAA0B,CAAA,CAXrB,CAgBT,IAASI,CAAT,GAAqBV,EAArB,CAAmC,CACjC3rE,CAAA,CAAQ2rE,CAAA,CAAaU,CAAb,CACR59C,EAAA,CAAmB7wB,EAAA,CAAcoC,CAAAvP,MAAd,CACnB0V,EAAAgpD,MAAA,CAAe1gC,CAAf,CACA,IAAIA,CAAA,CAAiB,CAAjB,CAAA5hB,WAAJ,CAGE,IAAK5Z,CAAW,CAAH,CAAG,CAAAlF,CAAA,CAAS0gC,CAAA1gC,OAAzB,CAAkDkF,CAAlD,CAA0DlF,CAA1D,CAAkEkF,CAAA,EAAlE,CACEw7B,CAAA,CAAiBx7B,CAAjB,CAAA,aAAA,CAAsC,CAAA,CAG1C+M,EAAA1F,MAAAwC,SAAA,EAXiC,CAenC,IAAK7J,CAAL,CAAa,CAAb,CAAgBA,CAAhB,CAAwB+4E,CAAxB,CAA0C/4E,CAAA,EAA1C,CAKE,GAJA1E,CAII+L,CAJG0jB,CAAD,GAAgBkuD,CAAhB,CAAkCj5E,CAAlC,CAA0Ci5E,CAAA,CAAej5E,CAAf,CAI5CqH,CAHJnL,CAGImL,CAHI0jB,CAAA,CAAWzvB,CAAX,CAGJ+L,CAFJ0F,CAEI1F,CAFI6xE,CAAA,CAAel5E,CAAf,CAEJqH,CAAA0F,CAAA1F,MAAJ,CAAiB,CAIfwxE,CAAA,CAAWD,CAGX,GACEC,EAAA;AAAWA,CAAA9tE,YADb,OAES8tE,CAFT,EAEqBA,CAAA,aAFrB,CAIkB9rE,EAnLrBvP,MAAA,CAAY,CAAZ,CAmLG,EAA4Bq7E,CAA5B,EAEE3lE,CAAA+oD,KAAA,CAActxD,EAAA,CAAcoC,CAAAvP,MAAd,CAAd,CAA0C,IAA1C,CAAgD3C,CAAA,CAAO+9E,CAAP,CAAhD,CAEFA,EAAA,CAA2B7rE,CAnL9BvP,MAAA,CAmL8BuP,CAnLlBvP,MAAA1C,OAAZ,CAAiC,CAAjC,CAoLGy8E,EAAA,CAAYxqE,CAAA1F,MAAZ,CAAyBrH,CAAzB,CAAgCw3E,CAAhC,CAAiDt7E,CAAjD,CAAwDu7E,CAAxD,CAAuEn8E,CAAvE,CAA4Ey9E,CAA5E,CAhBe,CAAjB,IAmBEvkD,EAAA,CAAY6kD,QAA2B,CAAC77E,CAAD,CAAQ6J,CAAR,CAAe,CACpD0F,CAAA1F,MAAA,CAAcA,CAEd,KAAIwD,EAAUotE,CAAA36E,UAAA,CAA6B,CAAA,CAA7B,CACdE,EAAA,CAAMA,CAAA1C,OAAA,EAAN,CAAA,CAAwB+P,CAGxBqI,EAAA8oD,MAAA,CAAex+D,CAAf,CAAsB,IAAtB,CAA4B3C,CAAA,CAAO+9E,CAAP,CAA5B,CACAA,EAAA,CAAe/tE,CAIfkC,EAAAvP,MAAA,CAAcA,CACds7E,EAAA,CAAa/rE,CAAA0c,GAAb,CAAA,CAAyB1c,CACzBwqE,EAAA,CAAYxqE,CAAA1F,MAAZ,CAAyBrH,CAAzB,CAAgCw3E,CAAhC,CAAiDt7E,CAAjD,CAAwDu7E,CAAxD,CAAuEn8E,CAAvE,CAA4Ey9E,CAA5E,CAdoD,CAAtD,CAkBJL,EAAA,CAAeI,CA1HgD,CAAjE,CAvBuE,CA7CxB,CAP9C,CA1BiE,CAAlD,CAzvGxB,CA4nHIpoE,GAAkB,CAAC,UAAD,CAAa,QAAQ,CAACwC,CAAD,CAAW,CACpD,MAAO,CACL8Y,SAAU,GADL,CAELwM,aAAc,CAAA,CAFT,CAGLtP,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CACnC+H,CAAAtI,OAAA,CAAaO,CAAAmR,OAAb,CAA0B6oE,QAA0B,CAACp9E,CAAD,CAAQ,CAK1DgX,CAAA,CAAShX,CAAA,CAAQ,aAAR,CAAwB,UAAjC,CAAA,CAA6C0D,CAA7C,CAvKY25E,SAuKZ,CAAqE,CACnEld,YAvKsBmd,iBAsK6C,CAArE,CAL0D,CAA5D,CADmC,CAHhC,CAD6C,CAAhC,CA5nHtB,CA6xHI5pE,GAAkB,CAAC,UAAD,CAAa,QAAQ,CAACsD,CAAD,CAAW,CACpD,MAAO,CACL8Y,SAAU,GADL;AAELwM,aAAc,CAAA,CAFT,CAGLtP,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CACnC+H,CAAAtI,OAAA,CAAaO,CAAAqQ,OAAb,CAA0B8pE,QAA0B,CAACv9E,CAAD,CAAQ,CAG1DgX,CAAA,CAAShX,CAAA,CAAQ,UAAR,CAAqB,aAA9B,CAAA,CAA6C0D,CAA7C,CAtUY25E,SAsUZ,CAAoE,CAClEld,YAtUsBmd,iBAqU4C,CAApE,CAH0D,CAA5D,CADmC,CAHhC,CAD6C,CAAhC,CA7xHtB,CA21HI5oE,GAAmBo9C,EAAA,CAAY,QAAQ,CAAC3mD,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAChE+H,CAAAtI,OAAA,CAAaO,CAAAqR,QAAb,CAA2B+oE,QAA2B,CAACC,CAAD,CAAYC,CAAZ,CAAuB,CACvEA,CAAJ,EAAkBD,CAAlB,GAAgCC,CAAhC,EACEz+E,CAAA,CAAQy+E,CAAR,CAAmB,QAAQ,CAACh3E,CAAD,CAAMyL,CAAN,CAAa,CAAEzO,CAAAi4D,IAAA,CAAYxpD,CAAZ,CAAmB,EAAnB,CAAF,CAAxC,CAEEsrE,EAAJ,EAAe/5E,CAAAi4D,IAAA,CAAY8hB,CAAZ,CAJ4D,CAA7E,CAKG,CAAA,CALH,CADgE,CAA3C,CA31HvB,CAm+HI7oE,GAAoB,CAAC,UAAD,CAAa,QAAQ,CAACoC,CAAD,CAAW,CACtD,MAAO,CACL6Y,QAAS,UADJ,CAIL1iB,WAAY,CAAC,QAAD,CAAWwwE,QAA2B,EAAG,CACpD,IAAAC,MAAA,CAAa,EADuC,CAAzC,CAJP,CAOL5wD,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBu6E,CAAvB,CAA2C,CAAA,IAEnDE,EAAsB,EAF6B,CAGnDC,EAAmB,EAHgC,CAInDC,EAA0B,EAJyB,CAKnDC,EAAiB,EALkC,CAOnDC,EAAgBA,QAAQ,CAACp6E,CAAD,CAAQC,CAAR,CAAe,CACvC,MAAO,SAAQ,EAAG,CAAED,CAAAG,OAAA,CAAaF,CAAb,CAAoB,CAApB,CAAF,CADqB,CAI3CqH,EAAAtI,OAAA,CAVgBO,CAAAuR,SAUhB,EAViCvR,CAAA4J,GAUjC,CAAwBkxE,QAA4B,CAACl+E,CAAD,CAAQ,CAAA,IACtDH,CADsD;AACnDY,CACFZ,EAAA,CAAI,CAAT,KAAYY,CAAZ,CAAiBs9E,CAAAn/E,OAAjB,CAAiDiB,CAAjD,CAAqDY,CAArD,CAAyD,EAAEZ,CAA3D,CACEmX,CAAAsV,OAAA,CAAgByxD,CAAA,CAAwBl+E,CAAxB,CAAhB,CAIGA,EAAA,CAFLk+E,CAAAn/E,OAEK,CAF4B,CAEjC,KAAY6B,CAAZ,CAAiBu9E,CAAAp/E,OAAjB,CAAwCiB,CAAxC,CAA4CY,CAA5C,CAAgD,EAAEZ,CAAlD,CAAqD,CACnD,IAAIu8D,EAAW3tD,EAAA,CAAcqvE,CAAA,CAAiBj+E,CAAjB,CAAAyB,MAAd,CACf08E,EAAA,CAAen+E,CAAf,CAAA8N,SAAA,EAEAqvB,EADc+gD,CAAA,CAAwBl+E,CAAxB,CACdm9B,CAD2ChmB,CAAAgpD,MAAA,CAAe5D,CAAf,CAC3Cp/B,MAAA,CAAaihD,CAAA,CAAcF,CAAd,CAAuCl+E,CAAvC,CAAb,CAJmD,CAOrDi+E,CAAAl/E,OAAA,CAA0B,CAC1Bo/E,EAAAp/E,OAAA,CAAwB,CAExB,EAAKi/E,CAAL,CAA2BF,CAAAC,MAAA,CAAyB,GAAzB,CAA+B59E,CAA/B,CAA3B,EAAoE29E,CAAAC,MAAA,CAAyB,GAAzB,CAApE,GACE3+E,CAAA,CAAQ4+E,CAAR,CAA6B,QAAQ,CAACM,CAAD,CAAqB,CACxDA,CAAAvtD,WAAA,CAA8B,QAAQ,CAACwtD,CAAD,CAAcC,CAAd,CAA6B,CACjEL,CAAA35E,KAAA,CAAoBg6E,CAApB,CACA,KAAIC,EAASH,CAAAz6E,QACb06E,EAAA,CAAYA,CAAAx/E,OAAA,EAAZ,CAAA,CAAoCT,CAAA08B,cAAA,CAAuB,qBAAvB,CAGpCijD,EAAAz5E,KAAA,CAFYwM,CAAEvP,MAAO88E,CAATvtE,CAEZ,CACAmG,EAAA8oD,MAAA,CAAese,CAAf,CAA4BE,CAAAv8E,OAAA,EAA5B,CAA6Cu8E,CAA7C,CAPiE,CAAnE,CADwD,CAA1D,CAlBwD,CAA5D,CAXuD,CAPpD,CAD+C,CAAhC,CAn+HxB,CAyhIIxpE,GAAwBg9C,EAAA,CAAY,CACtClhC,WAAY,SAD0B,CAEtChB,SAAU,IAF4B,CAGtCC,QAAS,WAH6B,CAItCyM,aAAc,CAAA,CAJwB,CAKtCtP,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBywB,CAAjB,CAAwBw/B,CAAxB,CAA8Br7B,CAA9B,CAA2C,CACvDq7B,CAAAiqB,MAAA,CAAW,GAAX,CAAiBzpD,CAAAtf,aAAjB,CAAA;AAAwC8+C,CAAAiqB,MAAA,CAAW,GAAX,CAAiBzpD,CAAAtf,aAAjB,CAAxC,EAAgF,EAChF8+C,EAAAiqB,MAAA,CAAW,GAAX,CAAiBzpD,CAAAtf,aAAjB,CAAAxQ,KAAA,CAA0C,CAAEusB,WAAY0H,CAAd,CAA2B50B,QAASA,CAApC,CAA1C,CAFuD,CALnB,CAAZ,CAzhI5B,CAoiIIsR,GAA2B88C,EAAA,CAAY,CACzClhC,WAAY,SAD6B,CAEzChB,SAAU,IAF+B,CAGzCC,QAAS,WAHgC,CAIzCyM,aAAc,CAAA,CAJ2B,CAKzCtP,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBuwD,CAAvB,CAA6Br7B,CAA7B,CAA0C,CACtDq7B,CAAAiqB,MAAA,CAAW,GAAX,CAAA,CAAmBjqB,CAAAiqB,MAAA,CAAW,GAAX,CAAnB,EAAsC,EACtCjqB,EAAAiqB,MAAA,CAAW,GAAX,CAAAv5E,KAAA,CAAqB,CAAEusB,WAAY0H,CAAd,CAA2B50B,QAASA,CAApC,CAArB,CAFsD,CALf,CAAZ,CApiI/B,CA6sII66E,GAAqBlgF,CAAA,CAAO,cAAP,CA7sIzB,CA8sII+W,GAAwB08C,EAAA,CAAY,CACtChiC,SAAU,KAD4B,CAEtC9C,KAAMA,QAAQ,CAACqL,CAAD,CAAS7H,CAAT,CAAmBC,CAAnB,CAA2BtjB,CAA3B,CAAuCmrB,CAAvC,CAAoD,CAE5D7H,CAAAtb,aAAJ,GAA4Bsb,CAAA4E,MAAAlgB,aAA5B,GAGEsb,CAAAtb,aAHF,CAGwB,EAHxB,CAaA,IAAKmjB,CAAAA,CAAL,CACE,KAAMimD,GAAA,CAAmB,QAAnB,CAILr2E,EAAA,CAAYsoB,CAAZ,CAJK,CAAN,CAUF8H,CAAA,CAlBAkmD,QAAkC,CAACl9E,CAAD,CAAQ,CACpCA,CAAA1C,OAAJ,GACE4xB,CAAAroB,MAAA,EACA,CAAAqoB,CAAAloB,OAAA,CAAgBhH,CAAhB,CAFF,CADwC,CAkB1C,CAAuC,IAAvC,CADemvB,CAAAtb,aACf;AADsCsb,CAAAguD,iBACtC,CA1BgE,CAF5B,CAAZ,CA9sI5B,CA+wIIzsE,GAAkB,CAAC,gBAAD,CAAmB,QAAQ,CAAC0I,CAAD,CAAiB,CAChE,MAAO,CACLoV,SAAU,GADL,CAEL2E,SAAU,CAAA,CAFL,CAGLrpB,QAASA,QAAQ,CAAC1H,CAAD,CAAUN,CAAV,CAAgB,CACd,kBAAjB,EAAIA,CAAAsb,KAAJ,EAIEhE,CAAAmJ,IAAA,CAHkBzgB,CAAAmqB,GAGlB,CAFW7pB,CAAA,CAAQ,CAAR,CAAAo6B,KAEX,CAL6B,CAH5B,CADyD,CAA5C,CA/wItB,CA8xII4gD,GAAwB,CAAExpB,cAAehzD,CAAjB,CAAuBozD,QAASpzD,CAAhC,CA9xI5B,CAizIIy8E,GACI,CAAC,UAAD,CAAa,QAAb,CAAuB,QAAvB,CAAiC,QAAQ,CAACnuD,CAAD,CAAW6H,CAAX,CAAmB5H,CAAnB,CAA2B,CAAA,IAEtErqB,EAAO,IAF+D,CAGtEw4E,EAAa,IAAIl7D,EAGrBtd,EAAAqzE,YAAA,CAAmBiF,EAQnBt4E,EAAA0yE,cAAA,CAAqBn6E,CAAA,CAAOR,CAAAwe,cAAA,CAAuB,QAAvB,CAAP,CACrBvW,EAAAy4E,oBAAA,CAA2BC,QAAQ,CAACp4E,CAAD,CAAM,CACnCq4E,CAAAA,CAAa,IAAbA,CAAoBx7D,EAAA,CAAQ7c,CAAR,CAApBq4E,CAAmC,IACvC34E,EAAA0yE,cAAApyE,IAAA,CAAuBq4E,CAAvB,CACAvuD,EAAAusC,QAAA,CAAiB32D,CAAA0yE,cAAjB,CACAtoD,EAAA9pB,IAAA,CAAaq4E,CAAb,CAJuC,CAOzC1mD,EAAAiB,IAAA,CAAW,UAAX,CAAuB,QAAQ,EAAG,CAEhClzB,CAAAy4E,oBAAA,CAA2B38E,CAFK,CAAlC,CAKAkE,EAAA44E,oBAAA;AAA2BC,QAAQ,EAAG,CAChC74E,CAAA0yE,cAAA/2E,OAAA,EAAJ,EAAiCqE,CAAA0yE,cAAAjrD,OAAA,EADG,CAOtCznB,EAAA8yE,UAAA,CAAiBgG,QAAwB,EAAG,CAC1C94E,CAAA44E,oBAAA,EACA,OAAOxuD,EAAA9pB,IAAA,EAFmC,CAQ5CN,EAAAwzE,WAAA,CAAkBuF,QAAyB,CAACn/E,CAAD,CAAQ,CAC7CoG,CAAAg5E,UAAA,CAAep/E,CAAf,CAAJ,EACEoG,CAAA44E,oBAAA,EAEA,CADAxuD,CAAA9pB,IAAA,CAAa1G,CAAb,CACA,CAAc,EAAd,GAAIA,CAAJ,EAAkBoG,CAAAwyE,YAAAz1E,KAAA,CAAsB,UAAtB,CAAkC,CAAA,CAAlC,CAHpB,EAKe,IAAb,EAAInD,CAAJ,EAAqBoG,CAAAwyE,YAArB,EACExyE,CAAA44E,oBAAA,EACA,CAAAxuD,CAAA9pB,IAAA,CAAa,EAAb,CAFF,EAIEN,CAAAy4E,oBAAA,CAAyB7+E,CAAzB,CAV6C,CAiBnDoG,EAAAi5E,UAAA,CAAiBC,QAAQ,CAACt/E,CAAD,CAAQ0D,CAAR,CAAiB,CAExC,GAp81BoB4yB,CAo81BpB,GAAI5yB,CAAA,CAAQ,CAAR,CAAA8E,SAAJ,CAAA,CAEA2F,EAAA,CAAwBnO,CAAxB,CAA+B,gBAA/B,CACc,GAAd,GAAIA,CAAJ,GACEoG,CAAAwyE,YADF,CACqBl1E,CADrB,CAGA,KAAIyqC,EAAQywC,CAAAzyE,IAAA,CAAenM,CAAf,CAARmuC,EAAiC,CACrCywC,EAAA/6D,IAAA,CAAe7jB,CAAf,CAAsBmuC,CAAtB,CAA8B,CAA9B,CACA/nC,EAAAqzE,YAAAnkB,QAAA,EACW5xD,EApFT,CAAc,CAAd,CAAAyG,aAAA,CAA8B,UAA9B,CAAJ;CAoFazG,CAnFX,CAAc,CAAd,CAAA04D,SADF,CAC8B,CAAA,CAD9B,CA2EE,CAFwC,CAe1Ch2D,EAAAm5E,aAAA,CAAoBC,QAAQ,CAACx/E,CAAD,CAAQ,CAClC,IAAImuC,EAAQywC,CAAAzyE,IAAA,CAAenM,CAAf,CACRmuC,EAAJ,GACgB,CAAd,GAAIA,CAAJ,EACEywC,CAAA/wD,OAAA,CAAkB7tB,CAAlB,CACA,CAAc,EAAd,GAAIA,CAAJ,GACEoG,CAAAwyE,YADF,CACqBx6E,CADrB,CAFF,EAMEwgF,CAAA/6D,IAAA,CAAe7jB,CAAf,CAAsBmuC,CAAtB,CAA8B,CAA9B,CAPJ,CAFkC,CAepC/nC,EAAAg5E,UAAA,CAAiBK,QAAQ,CAACz/E,CAAD,CAAQ,CAC/B,MAAO,CAAE,CAAA4+E,CAAAzyE,IAAA,CAAenM,CAAf,CADsB,CAKjCoG,EAAAiyE,eAAA,CAAsBqH,QAAQ,CAACC,CAAD,CAAcrG,CAAd,CAA6BsG,CAA7B,CAA0CC,CAA1C,CAA8DC,CAA9D,CAAiF,CAE7G,GAAID,CAAJ,CAAwB,CAEtB,IAAI/2D,CACJ82D,EAAA1/C,SAAA,CAAqB,OAArB,CAA8B6/C,QAAoC,CAACl3D,CAAD,CAAS,CACrEpmB,CAAA,CAAUqmB,CAAV,CAAJ,EACE1iB,CAAAm5E,aAAA,CAAkBz2D,CAAlB,CAEFA,EAAA,CAASD,CACTziB,EAAAi5E,UAAA,CAAex2D,CAAf,CAAuBywD,CAAvB,CALyE,CAA3E,CAHsB,CAAxB,IAUWwG,EAAJ,CAELH,CAAA98E,OAAA,CAAmBi9E,CAAnB,CAAsCE,QAA+B,CAACn3D,CAAD,CAASC,CAAT,CAAiB,CACpF82D,CAAAnjD,KAAA,CAAiB,OAAjB,CAA0B5T,CAA1B,CACIC,EAAJ,GAAeD,CAAf,EACEziB,CAAAm5E,aAAA,CAAkBz2D,CAAlB,CAEF1iB,EAAAi5E,UAAA,CAAex2D,CAAf,CAAuBywD,CAAvB,CALoF,CAAtF,CAFK,CAWLlzE,CAAAi5E,UAAA,CAAeO,CAAA5/E,MAAf,CAAkCs5E,CAAlC,CAGFA,EAAAtsE,GAAA,CAAiB,UAAjB,CAA6B,QAAQ,EAAG,CACtC5G,CAAAm5E,aAAA,CAAkBK,CAAA5/E,MAAlB,CACAoG,EAAAqzE,YAAAnkB,QAAA,EAFsC,CAAxC,CA1B6G,CA9FrC,CAApE,CAlzIR,CA6nJIpjD,GAAkBA,QAAQ,EAAG,CAE/B,MAAO,CACL4d,SAAU,GADL;AAELD,QAAS,CAAC,QAAD,CAAW,UAAX,CAFJ,CAGL1iB,WAAYwxE,EAHP,CAIL/uD,SAAU,CAJL,CAKL5C,KAAM,CACJwK,IAKJyoD,QAAsB,CAAC90E,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuBypE,CAAvB,CAA8B,CAGhD,IAAI4M,EAAc5M,CAAA,CAAM,CAAN,CAClB,IAAK4M,CAAL,CAAA,CAEA,IAAIR,EAAapM,CAAA,CAAM,CAAN,CAEjBoM,EAAAQ,YAAA,CAAyBA,CAKzB/1E,EAAAsJ,GAAA,CAAW,QAAX,CAAqB,QAAQ,EAAG,CAC9B7B,CAAAE,OAAA,CAAa,QAAQ,EAAG,CACtBouE,CAAAvkB,cAAA,CAA0B+jB,CAAAC,UAAA,EAA1B,CADsB,CAAxB,CAD8B,CAAhC,CAUA,IAAI91E,CAAA+4D,SAAJ,CAAmB,CAGjB8c,CAAAC,UAAA,CAAuBY,QAA0B,EAAG,CAClD,IAAIj2E,EAAQ,EACZ5E,EAAA,CAAQyE,CAAAL,KAAA,CAAa,QAAb,CAAR,CAAgC,QAAQ,CAACgP,CAAD,CAAS,CAC3CA,CAAA+pD,SAAJ,EACEv4D,CAAAQ,KAAA,CAAWgO,CAAArS,MAAX,CAF6C,CAAjD,CAKA,OAAO6D,EAP2C,CAWpDo1E,EAAAW,WAAA,CAAwBC,QAA2B,CAAC75E,CAAD,CAAQ,CACzD,IAAIuD,EAAQ,IAAImgB,EAAJ,CAAY1jB,CAAZ,CACZf,EAAA,CAAQyE,CAAAL,KAAA,CAAa,QAAb,CAAR,CAAgC,QAAQ,CAACgP,CAAD,CAAS,CAC/CA,CAAA+pD,SAAA,CAAkB35D,CAAA,CAAUc,CAAA4I,IAAA,CAAUkG,CAAArS,MAAV,CAAV,CAD6B,CAAjD,CAFyD,CAd1C,KAuBbkgF,CAvBa,CAuBHC,EAAc5pB,GAC5BprD,EAAAtI,OAAA,CAAau9E,QAA4B,EAAG,CACtCD,CAAJ,GAAoB1G,CAAAzkB,WAApB,EAA+CxvD,EAAA,CAAO06E,CAAP,CAAiBzG,CAAAzkB,WAAjB,CAA/C,GACEkrB,CACA;AADW56E,EAAA,CAAYm0E,CAAAzkB,WAAZ,CACX,CAAAykB,CAAAnkB,QAAA,EAFF,CAIA6qB,EAAA,CAAc1G,CAAAzkB,WAL4B,CAA5C,CAUAykB,EAAA9kB,SAAA,CAAuBglB,QAAQ,CAAC35E,CAAD,CAAQ,CACrC,MAAO,CAACA,CAAR,EAAkC,CAAlC,GAAiBA,CAAApB,OADoB,CAlCtB,CAnBnB,CAJgD,CAN5C,CAEJ64B,KAoEF4oD,QAAuB,CAACl1E,CAAD,CAAQzH,CAAR,CAAiBywB,CAAjB,CAAwB04C,CAAxB,CAA+B,CAEpD,IAAI4M,EAAc5M,CAAA,CAAM,CAAN,CAClB,IAAK4M,CAAL,CAAA,CAEA,IAAIR,EAAapM,CAAA,CAAM,CAAN,CAOjB4M,EAAAnkB,QAAA,CAAsBgrB,QAAQ,EAAG,CAC/BrH,CAAAW,WAAA,CAAsBH,CAAAzkB,WAAtB,CAD+B,CATjC,CAHoD,CAtEhD,CALD,CAFwB,CA7nJjC,CAguJI1iD,GAAkB,CAAC,cAAD,CAAiB,QAAQ,CAACoG,CAAD,CAAe,CAC5D,MAAO,CACLoX,SAAU,GADL,CAELF,SAAU,GAFL,CAGLxkB,QAASA,QAAQ,CAAC1H,CAAD,CAAUN,CAAV,CAAgB,CAC/B,GAAIX,CAAA,CAAUW,CAAApD,MAAV,CAAJ,CAEE,IAAI6/E,EAAqBnnE,CAAA,CAAatV,CAAApD,MAAb,CAAyB,CAAA,CAAzB,CAF3B,KAGO,CAGL,IAAI8/E,EAAoBpnE,CAAA,CAAahV,CAAAo6B,KAAA,EAAb,CAA6B,CAAA,CAA7B,CACnBgiD,EAAL,EACE18E,CAAAq5B,KAAA,CAAU,OAAV,CAAmB/4B,CAAAo6B,KAAA,EAAnB,CALG,CASP,MAAO,SAAQ,CAAC3yB,CAAD,CAAQzH,CAAR,CAAiBN,CAAjB,CAAuB,CAAA,IAIhCrB,EAAS2B,CAAA3B,OAAA,EAIb,EAHIk3E,CAGJ,CAHiBl3E,CAAAuJ,KAAA,CAFIi1E,mBAEJ,CAGjB,EAFMx+E,CAAAA,OAAA,EAAAuJ,KAAA,CAHei1E,mBAGf,CAEN,GACEtH,CAAAZ,eAAA,CAA0BltE,CAA1B;AAAiCzH,CAAjC,CAA0CN,CAA1C,CAAgDy8E,CAAhD,CAAoEC,CAApE,CATkC,CAbP,CAH5B,CADqD,CAAxC,CAhuJtB,CAiwJI1tE,GAAiB/P,EAAA,CAAQ,CAC3BytB,SAAU,GADiB,CAE3B2E,SAAU,CAAA,CAFiB,CAAR,CAjwJrB,CAg0JI1e,GAAoBA,QAAQ,EAAG,CACjC,MAAO,CACL+Z,SAAU,GADL,CAELD,QAAS,UAFJ,CAGL7C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQqd,CAAR,CAAaplB,CAAb,CAAmBuwD,CAAnB,CAAyB,CAChCA,CAAL,GACAvwD,CAAA0S,SAMA,CANgB,CAAA,CAMhB,CAJA69C,CAAA2D,YAAAxhD,SAIA,CAJ4B0qE,QAAQ,CAACnS,CAAD,CAAaC,CAAb,CAAwB,CAC1D,MAAO,CAAClrE,CAAA0S,SAAR,EAAyB,CAAC69C,CAAAgB,SAAA,CAAc2Z,CAAd,CADgC,CAI5D,CAAAlrE,CAAA88B,SAAA,CAAc,UAAd,CAA0B,QAAQ,EAAG,CACnCyzB,CAAA6D,UAAA,EADmC,CAArC,CAPA,CADqC,CAHlC,CAD0B,CAh0JnC,CA85JI5hD,GAAmBA,QAAQ,EAAG,CAChC,MAAO,CACLka,SAAU,GADL,CAELD,QAAS,UAFJ,CAGL7C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQqd,CAAR,CAAaplB,CAAb,CAAmBuwD,CAAnB,CAAyB,CACrC,GAAKA,CAAL,CAAA,CADqC,IAGjC5iC,CAHiC,CAGzB0vD,EAAar9E,CAAAyS,UAAb4qE,EAA+Br9E,CAAAuS,QAC3CvS,EAAA88B,SAAA,CAAc,SAAd,CAAyB,QAAQ,CAACgkB,CAAD,CAAQ,CACnCxlD,CAAA,CAASwlD,CAAT,CAAJ,EAAsC,CAAtC,CAAuBA,CAAAtlD,OAAvB,GACEslD,CADF,CACU,IAAIhjD,MAAJ,CAAW,GAAX,CAAiBgjD,CAAjB,CAAyB,GAAzB,CADV,CAIA,IAAIA,CAAJ,EAAcjhD,CAAAihD,CAAAjhD,KAAd,CACE,KAAM5E,EAAA,CAAO,WAAP,CAAA,CAAoB,UAApB;AACqDoiF,CADrD,CAEJv8B,CAFI,CAEGh8C,EAAA,CAAYsgB,CAAZ,CAFH,CAAN,CAKFuI,CAAA,CAASmzB,CAAT,EAAkB9lD,CAClBu1D,EAAA6D,UAAA,EAZuC,CAAzC,CAeA7D,EAAA2D,YAAA3hD,QAAA,CAA2B+qE,QAAQ,CAACrS,CAAD,CAAaC,CAAb,CAAwB,CAEzD,MAAO3a,EAAAgB,SAAA,CAAc2Z,CAAd,CAAP,EAAmC9rE,CAAA,CAAYuuB,CAAZ,CAAnC,EAA0DA,CAAA9tB,KAAA,CAAYqrE,CAAZ,CAFD,CAlB3D,CADqC,CAHlC,CADyB,CA95JlC,CA+/JIj4D,GAAqBA,QAAQ,EAAG,CAClC,MAAO,CACLyZ,SAAU,GADL,CAELD,QAAS,UAFJ,CAGL7C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQqd,CAAR,CAAaplB,CAAb,CAAmBuwD,CAAnB,CAAyB,CACrC,GAAKA,CAAL,CAAA,CAEA,IAAIv9C,EAAa,EACjBhT,EAAA88B,SAAA,CAAc,WAAd,CAA2B,QAAQ,CAAClgC,CAAD,CAAQ,CACrC2gF,CAAAA,CAASh/E,EAAA,CAAM3B,CAAN,CACboW,EAAA,CAAY5O,KAAA,CAAMm5E,CAAN,CAAA,CAAiB,EAAjB,CAAqBA,CACjChtB,EAAA6D,UAAA,EAHyC,CAA3C,CAKA7D,EAAA2D,YAAAlhD,UAAA,CAA6BwqE,QAAQ,CAACvS,CAAD,CAAaC,CAAb,CAAwB,CAC3D,MAAoB,EAApB,CAAQl4D,CAAR,EAA0Bu9C,CAAAgB,SAAA,CAAc2Z,CAAd,CAA1B,EAAuDA,CAAA1vE,OAAvD,EAA2EwX,CADhB,CAR7D,CADqC,CAHlC,CAD2B,CA//JpC,CAmlKIF,GAAqBA,QAAQ,EAAG,CAClC,MAAO,CACL4Z,SAAU,GADL,CAELD,QAAS,UAFJ,CAGL7C,KAAMA,QAAQ,CAAC7hB,CAAD,CAAQqd,CAAR,CAAaplB,CAAb,CAAmBuwD,CAAnB,CAAyB,CACrC,GAAKA,CAAL,CAAA,CAEA,IAAI19C,EAAY,CAChB7S,EAAA88B,SAAA,CAAc,WAAd,CAA2B,QAAQ,CAAClgC,CAAD,CAAQ,CACzCiW,CAAA,CAAYtU,EAAA,CAAM3B,CAAN,CAAZ,EAA4B,CAC5B2zD,EAAA6D,UAAA,EAFyC,CAA3C,CAIA7D;CAAA2D,YAAArhD,UAAA,CAA6B4qE,QAAQ,CAACxS,CAAD,CAAaC,CAAb,CAAwB,CAC3D,MAAO3a,EAAAgB,SAAA,CAAc2Z,CAAd,CAAP,EAAmCA,CAAA1vE,OAAnC,EAAuDqX,CADI,CAP7D,CADqC,CAHlC,CAD2B,CAmBhC/X,EAAAuN,QAAA5B,UAAJ,CAEE+qC,OAAAE,IAAA,CAAY,gDAAZ,CAFF,EAQApoC,EAAA,EAmJE,CAjJFoE,EAAA,CAAmBrF,EAAnB,CAiJE,CA/IFA,EAAA1B,OAAA,CAAe,UAAf,CAA2B,EAA3B,CAA+B,CAAC,UAAD,CAAa,QAAQ,CAACc,CAAD,CAAW,CAE/Di2E,QAASA,EAAW,CAAC/zD,CAAD,CAAI,CACtBA,CAAA,EAAQ,EACR,KAAIltB,EAAIktB,CAAAhpB,QAAA,CAAU,GAAV,CACR,OAAc,EAAP,EAAClE,CAAD,CAAY,CAAZ,CAAgBktB,CAAAnuB,OAAhB,CAA2BiB,CAA3B,CAA+B,CAHhB,CAkBxBgL,CAAA7K,MAAA,CAAe,SAAf,CAA0B,CACxB,iBAAoB,CAClB,MAAS,CACP,IADO,CAEP,IAFO,CADS,CAKlB,IAAO,0DAAA,MAAA,CAAA,GAAA,CALW,CAclB,SAAY,CACV,eADU,CAEV,aAFU,CAdM,CAkBlB,KAAQ,CACN,IADM,CAEN,IAFM,CAlBU,CAsBlB,eAAkB,CAtBA,CAuBlB,MAAS,uFAAA,MAAA,CAAA,GAAA,CAvBS;AAqClB,SAAY,6BAAA,MAAA,CAAA,GAAA,CArCM,CA8ClB,WAAc,iDAAA,MAAA,CAAA,GAAA,CA9CI,CA4DlB,gBAAmB,uFAAA,MAAA,CAAA,GAAA,CA5DD,CA0ElB,aAAgB,CACd,CADc,CAEd,CAFc,CA1EE,CA8ElB,SAAY,iBA9EM,CA+ElB,SAAY,WA/EM,CAgFlB,OAAU,oBAhFQ,CAiFlB,WAAc,UAjFI,CAkFlB,WAAc,WAlFI,CAmFlB,QAAS,eAnFS,CAoFlB,UAAa,QApFK,CAqFlB,UAAa,QArFK,CADI,CAwFxB,eAAkB,CAChB,aAAgB,GADA,CAEhB,YAAe,GAFC,CAGhB,UAAa,GAHG;AAIhB,SAAY,CACV,CACE,MAAS,CADX,CAEE,OAAU,CAFZ,CAGE,QAAW,CAHb,CAIE,QAAW,CAJb,CAKE,OAAU,CALZ,CAME,OAAU,GANZ,CAOE,OAAU,EAPZ,CAQE,OAAU,EARZ,CASE,OAAU,EATZ,CADU,CAYV,CACE,MAAS,CADX,CAEE,OAAU,CAFZ,CAGE,QAAW,CAHb,CAIE,QAAW,CAJb,CAKE,OAAU,CALZ,CAME,OAAU,SANZ,CAOE,OAAU,EAPZ,CAQE,OAAU,QARZ,CASE,OAAU,EATZ,CAZU,CAJI,CAxFM,CAqHxB,GAAM,OArHkB,CAsHxB,SAAY,OAtHY,CAuHxB,UAAak7E,QAAQ,CAACnuD,CAAD,CAAIg0D,CAAJ,CAAmB,CAAG,IAAIlhF,EAAIktB,CAAJltB,CAAQ,CAAZ,CAlIvCmkC,EAkIyE+8C,CAhIzE3iF,EAAJ,GAAkB4lC,CAAlB,GACEA,CADF,CACMhI,IAAAixB,IAAA,CAAS6zB,CAAA,CA+H2D/zD,CA/H3D,CAAT,CAAyB,CAAzB,CADN,CAIWiP,KAAAglD,IAAA,CAAS,EAAT,CAAah9C,CAAb,CA4HmF,OAAS,EAAT,EAAInkC,CAAJ,EAAsB,CAAtB,EA1HnFmkC,CA0HmF,CA1ItDi9C,KA0IsD,CA1IFC,OA0IpD,CAvHhB,CAA1B,CApB+D,CAAhC,CAA/B,CA+IE,CAAAviF,CAAA,CAAOR,CAAP,CAAAi9D,MAAA,CAAuB,QAAQ,EAAG,CAChCxxD,EAAA,CAAYzL,CAAZ,CAAsB0L,EAAtB,CADgC,CAAlC,CA3JF,CArj7BuC,CAAtC,CAAD,CAot7BG3L,MApt7BH,CAot7BWC,QApt7BX,CAst7BC07D,EAAA37D,MAAAuN,QAAA01E,MAAA,EAAAtnB,cAAD,EAAyC37D,MAAAuN,QAAA/H,QAAA,CAAuBvF,QAAAijF,KAAvB,CAAArkB,QAAA,CAA8C,gRAA9C;",
-"sources":["angular.js"],
-"names":["window","document","undefined","minErr","isArrayLike","obj","isWindow","isArray","isString","jqLite","length","Object","isNumber","Array","item","forEach","iterator","context","key","isFunction","hasOwnProperty","call","isPrimitive","isBlankObject","forEachSorted","keys","sort","i","reverseParams","iteratorFn","value","nextUid","uid","baseExtend","dst","objs","deep","h","$$hashKey","ii","isObject","j","jj","src","isDate","Date","valueOf","isRegExp","RegExp","nodeName","cloneNode","isElement","clone","extend","slice","arguments","merge","toInt","str","parseInt","inherit","parent","extra","create","noop","identity","$","valueFn","hasCustomToString","toString","isUndefined","isDefined","getPrototypeOf","isScope","$evalAsync","$watch","isBoolean","isTypedArray","TYPED_ARRAY_REGEXP","test","node","prop","attr","find","makeMap","items","split","nodeName_","element","lowercase","arrayRemove","array","index","indexOf","splice","copy","source","destination","copyRecurse","push","copyElement","stackSource","stackDest","ngMinErr","needsRecurse","copyType","constructor","buffer","copied","ArrayBuffer","byteLength","set","Uint8Array","re","match","lastIndex","shallowCopy","charAt","equals","o1","o2","t1","t2","getTime","keySet","createMap","concat","array1","array2","bind","self","fn","curryArgs","startIndex","apply","toJsonReplacer","val","toJson","pretty","JSON","stringify","fromJson","json","parse","timezoneToOffset","timezone","fallback","replace","ALL_COLONS","requestedTimezoneOffset","isNaN","convertTimezoneToLocal","date","reverse","dateTimezoneOffset","getTimezoneOffset","timezoneOffset","setMinutes","getMinutes","minutes","startingTag","empty","e","elemHtml","append","html","nodeType","NODE_TYPE_TEXT","tryDecodeURIComponent","decodeURIComponent","parseKeyValue","keyValue","splitPoint","substring","toKeyValue","parts","arrayValue","encodeUriQuery","join","encodeUriSegment","pctEncodeSpaces","encodeURIComponent","getNgAttribute","ngAttr","ngAttrPrefixes","getAttribute","angularInit","bootstrap","appElement","module","config","prefix","name","hasAttribute","candidate","querySelector","strictDi","modules","defaultConfig","doBootstrap","injector","tag","unshift","$provide","debugInfoEnabled","$compileProvider","createInjector","invoke","bootstrapApply","scope","compile","$apply","data","NG_ENABLE_DEBUG_INFO","NG_DEFER_BOOTSTRAP","angular","resumeBootstrap","angular.resumeBootstrap","extraModules","resumeDeferredBootstrap","reloadWithDebugInfo","location","reload","getTestability","rootElement","get","snake_case","separator","SNAKE_CASE_REGEXP","letter","pos","toLowerCase","bindJQuery","originalCleanData","bindJQueryFired","jqName","jq","jQuery","on","JQLitePrototype","isolateScope","controller","inheritedData","cleanData","jQuery.cleanData","elems","events","elem","_data","$destroy","triggerHandler","JQLite","assertArg","arg","reason","assertArgFn","acceptArrayAnnotation","assertNotHasOwnProperty","getter","path","bindFnToScope","lastInstance","len","getBlockNodes","nodes","endNode","blockNodes","nextSibling","setupModuleLoader","ensure","factory","$injectorMinErr","$$minErr","requires","configFn","invokeLater","provider","method","insertMethod","queue","invokeQueue","moduleInstance","invokeLaterAndSetModuleName","recipeName","factoryFunction","$$moduleName","configBlocks","runBlocks","_invokeQueue","_configBlocks","_runBlocks","service","constant","decorator","animation","filter","directive","component","run","block","publishExternalAPI","version","uppercase","counter","csp","angularModule","ngModule","$$sanitizeUri","$$SanitizeUriProvider","$CompileProvider","a","htmlAnchorDirective","input","inputDirective","textarea","form","formDirective","script","scriptDirective","select","selectDirective","style","styleDirective","option","optionDirective","ngBind","ngBindDirective","ngBindHtml","ngBindHtmlDirective","ngBindTemplate","ngBindTemplateDirective","ngClass","ngClassDirective","ngClassEven","ngClassEvenDirective","ngClassOdd","ngClassOddDirective","ngCloak","ngCloakDirective","ngController","ngControllerDirective","ngForm","ngFormDirective","ngHide","ngHideDirective","ngIf","ngIfDirective","ngInclude","ngIncludeDirective","ngInit","ngInitDirective","ngNonBindable","ngNonBindableDirective","ngPluralize","ngPluralizeDirective","ngRepeat","ngRepeatDirective","ngShow","ngShowDirective","ngStyle","ngStyleDirective","ngSwitch","ngSwitchDirective","ngSwitchWhen","ngSwitchWhenDirective","ngSwitchDefault","ngSwitchDefaultDirective","ngOptions","ngOptionsDirective","ngTransclude","ngTranscludeDirective","ngModel","ngModelDirective","ngList","ngListDirective","ngChange","ngChangeDirective","pattern","patternDirective","ngPattern","required","requiredDirective","ngRequired","minlength","minlengthDirective","ngMinlength","maxlength","maxlengthDirective","ngMaxlength","ngValue","ngValueDirective","ngModelOptions","ngModelOptionsDirective","ngIncludeFillContentDirective","ngAttributeAliasDirectives","ngEventDirectives","$anchorScroll","$AnchorScrollProvider","$animate","$AnimateProvider","$animateCss","$CoreAnimateCssProvider","$$animateJs","$$CoreAnimateJsProvider","$$animateQueue","$$CoreAnimateQueueProvider","$$AnimateRunner","$$AnimateRunnerFactoryProvider","$$animateAsyncRun","$$AnimateAsyncRunFactoryProvider","$browser","$BrowserProvider","$cacheFactory","$CacheFactoryProvider","$controller","$ControllerProvider","$document","$DocumentProvider","$exceptionHandler","$ExceptionHandlerProvider","$filter","$FilterProvider","$$forceReflow","$$ForceReflowProvider","$interpolate","$InterpolateProvider","$interval","$IntervalProvider","$http","$HttpProvider","$httpParamSerializer","$HttpParamSerializerProvider","$httpParamSerializerJQLike","$HttpParamSerializerJQLikeProvider","$httpBackend","$HttpBackendProvider","$xhrFactory","$xhrFactoryProvider","$location","$LocationProvider","$log","$LogProvider","$parse","$ParseProvider","$rootScope","$RootScopeProvider","$q","$QProvider","$$q","$$QProvider","$sce","$SceProvider","$sceDelegate","$SceDelegateProvider","$sniffer","$SnifferProvider","$templateCache","$TemplateCacheProvider","$templateRequest","$TemplateRequestProvider","$$testability","$$TestabilityProvider","$timeout","$TimeoutProvider","$window","$WindowProvider","$$rAF","$$RAFProvider","$$jqLite","$$jqLiteProvider","$$HashMap","$$HashMapProvider","$$cookieReader","$$CookieReaderProvider","camelCase","SPECIAL_CHARS_REGEXP","_","offset","toUpperCase","MOZ_HACK_REGEXP","jqLiteAcceptsData","NODE_TYPE_ELEMENT","NODE_TYPE_DOCUMENT","jqLiteBuildFragment","tmp","fragment","createDocumentFragment","HTML_REGEXP","appendChild","createElement","TAG_NAME_REGEXP","exec","wrap","wrapMap","_default","innerHTML","XHTML_TAG_REGEXP","lastChild","childNodes","firstChild","textContent","createTextNode","jqLiteWrapNode","wrapper","parentNode","replaceChild","argIsString","trim","jqLiteMinErr","parsed","SINGLE_TAG_REGEXP","jqLiteAddNodes","jqLiteClone","jqLiteDealoc","onlyDescendants","jqLiteRemoveData","querySelectorAll","descendants","l","jqLiteOff","type","unsupported","expandoStore","jqLiteExpandoStore","handle","removeHandler","listenerFns","removeEventListener","MOUSE_EVENT_MAP","expandoId","ng339","jqCache","createIfNecessary","jqId","jqLiteData","isSimpleSetter","isSimpleGetter","massGetter","jqLiteHasClass","selector","jqLiteRemoveClass","cssClasses","setAttribute","cssClass","jqLiteAddClass","existingClasses","root","elements","jqLiteController","jqLiteInheritedData","documentElement","names","NODE_TYPE_DOCUMENT_FRAGMENT","host","jqLiteEmpty","removeChild","jqLiteRemove","keepData","jqLiteDocumentLoaded","action","win","readyState","setTimeout","getBooleanAttrName","booleanAttr","BOOLEAN_ATTR","BOOLEAN_ELEMENTS","createEventHandler","eventHandler","event","isDefaultPrevented","event.isDefaultPrevented","defaultPrevented","eventFns","eventFnsLength","immediatePropagationStopped","originalStopImmediatePropagation","stopImmediatePropagation","event.stopImmediatePropagation","stopPropagation","isImmediatePropagationStopped","event.isImmediatePropagationStopped","handlerWrapper","specialHandlerWrapper","defaultHandlerWrapper","handler","specialMouseHandlerWrapper","target","related","relatedTarget","jqLiteContains","$get","this.$get","hasClass","classes","addClass","removeClass","hashKey","nextUidFn","objType","HashMap","isolatedUid","this.nextUid","put","extractArgs","fnText","STRIP_COMMENTS","ARROW_ARG","FN_ARGS","anonFn","args","modulesToLoad","supportObject","delegate","provider_","providerInjector","instantiate","providerCache","providerSuffix","enforceReturnValue","enforcedReturnValue","result","instanceInjector","factoryFn","enforce","loadModules","moduleFn","runInvokeQueue","invokeArgs","loadedModules","message","stack","createInternalInjector","cache","getService","serviceName","caller","INSTANTIATING","err","shift","injectionArgs","locals","$inject","$$annotate","msie","Function","prototype","Type","ctor","annotate","has","$injector","instanceCache","decorFn","origProvider","orig$get","origProvider.$get","origInstance","$delegate","protoInstanceInjector","autoScrollingEnabled","disableAutoScrolling","this.disableAutoScrolling","getFirstAnchor","list","some","scrollTo","scrollIntoView","scroll","yOffset","getComputedStyle","position","getBoundingClientRect","bottom","elemTop","top","scrollBy","hash","elm","getElementById","getElementsByName","autoScrollWatch","autoScrollWatchAction","newVal","oldVal","mergeClasses","b","splitClasses","klass","prepareAnimateOptions","options","Browser","completeOutstandingRequest","outstandingRequestCount","outstandingRequestCallbacks","pop","error","cacheStateAndFireUrlChange","pendingLocation","cacheState","fireUrlChange","history","state","cachedState","lastCachedState","lastBrowserUrl","url","lastHistoryState","urlChangeListeners","listener","clearTimeout","pendingDeferIds","isMock","$$completeOutstandingRequest","$$incOutstandingRequestCount","self.$$incOutstandingRequestCount","notifyWhenNoOutstandingRequests","self.notifyWhenNoOutstandingRequests","callback","href","baseElement","self.url","sameState","sameBase","stripHash","substr","self.state","urlChangeInit","onUrlChange","self.onUrlChange","$$applicationDestroyed","self.$$applicationDestroyed","off","$$checkUrlChange","baseHref","self.baseHref","defer","self.defer","delay","timeoutId","cancel","self.defer.cancel","deferId","cacheFactory","cacheId","refresh","entry","freshEnd","staleEnd","n","link","p","nextEntry","prevEntry","caches","size","stats","id","capacity","Number","MAX_VALUE","lruHash","lruEntry","remove","removeAll","destroy","info","cacheFactory.info","cacheFactory.get","$$sanitizeUriProvider","parseIsolateBindings","directiveName","isController","LOCAL_REGEXP","bindings","definition","scopeName","$compileMinErr","mode","collection","optional","attrName","assertValidDirectiveName","hasDirectives","COMMENT_DIRECTIVE_REGEXP","CLASS_DIRECTIVE_REGEXP","ALL_OR_NOTHING_ATTRS","REQUIRE_PREFIX_REGEXP","EVENT_HANDLER_ATTR_REGEXP","this.directive","registerDirective","directiveFactory","Suffix","directives","priority","require","restrict","bindToController","controllerAs","identifierForController","$$bindings","$$isolateBindings","this.component","makeInjectable","tElement","tAttrs","$element","$attrs","template","templateUrl","transclude","aHrefSanitizationWhitelist","this.aHrefSanitizationWhitelist","regexp","imgSrcSanitizationWhitelist","this.imgSrcSanitizationWhitelist","this.debugInfoEnabled","enabled","setSpecialAttr","specialAttrHolder","attributes","attribute","removeNamedItem","setNamedItem","safeAddClass","className","$compileNodes","transcludeFn","maxPriority","ignoreDirective","previousCompileContext","NOT_EMPTY","domNode","nodeValue","compositeLinkFn","compileNodes","$$addScopeClass","namespace","publicLinkFn","cloneConnectFn","needsNewScope","$parent","$new","parentBoundTranscludeFn","transcludeControllers","futureParentElement","$$boundTransclude","$linkNode","wrapTemplate","controllerName","instance","$$addScopeInfo","nodeList","$rootElement","childLinkFn","childScope","childBoundTranscludeFn","stableNodeList","nodeLinkFnFound","linkFns","idx","nodeLinkFn","transcludeOnThisElement","createBoundTranscludeFn","templateOnThisElement","attrs","linkFnFound","Attributes","collectDirectives","applyDirectivesToNode","$$element","terminal","previousBoundTranscludeFn","boundTranscludeFn","transcludedScope","cloneFn","controllers","containingScope","$$transcluded","boundSlots","$$slots","slotName","attrsMap","$attr","addDirective","directiveNormalize","isNgAttr","nAttrs","attrStartName","attrEndName","ngAttrName","NG_ATTR_BINDING","PREFIX_REGEXP","multiElementMatch","MULTI_ELEMENT_DIR_RE","directiveIsMultiElement","nName","addAttrInterpolateDirective","animVal","addTextInterpolateDirective","NODE_TYPE_COMMENT","byPriority","groupScan","attrStart","attrEnd","depth","groupElementsLinkFnWrapper","linkFn","compilationGenerator","eager","compiled","compileNode","templateAttrs","jqCollection","originalReplaceDirective","preLinkFns","postLinkFns","addLinkFns","pre","post","newIsolateScopeDirective","$$isolateScope","cloneAndAnnotateFn","getControllers","elementControllers","inheritType","dataName","property","setupControllers","controllerDirectives","controllerKey","$scope","$transclude","controllerInstance","hasElementTranscludeDirective","linkNode","controllersBoundTransclude","cloneAttachFn","slotTranscludeFn","scopeToChild","removeScopeBindingWatches","controllerScope","newScopeDirective","isSlotFilled","transcludeFn.isSlotFilled","templateDirective","$$originalDirective","initializeDirectiveBindings","$on","controllerDirective","identifier","removeControllerBindingWatches","controllerResult","$onInit","invokeLinkFn","terminalPriority","nonTlbTranscludeDirective","hasTranscludeDirective","hasTemplate","$compileNode","$template","childTranscludeFn","didScanForMultipleTransclusion","mightHaveMultipleTransclusionError","directiveValue","$$start","$$end","assertNoDuplicate","$$tlb","scanningIndex","candidateDirective","createComment","replaceWith","replaceDirective","slots","contents","slotMap","filledSlots","elementSelector","filled","$$newScope","denormalizeTemplate","removeComments","templateNamespace","newTemplateAttrs","templateDirectives","unprocessedDirectives","markDirectiveScope","mergeTemplateAttributes","compileTemplateUrl","Math","max","newScope","tDirectives","startAttrName","endAttrName","multiElement","srcAttr","dstAttr","$set","linkQueue","afterTemplateNodeLinkFn","afterTemplateChildLinkFn","beforeTemplateCompileNode","origAsyncDirective","derivedSyncDirective","then","content","tempTemplateAttrs","beforeTemplateLinkNode","linkRootElement","$$destroyed","oldClasses","delayedNodeLinkFn","ignoreChildLinkFn","diff","what","previousDirective","wrapModuleNameIfDefined","moduleName","text","interpolateFn","textInterpolateCompileFn","templateNode","templateNodeParent","hasCompileParent","$$addBindingClass","textInterpolateLinkFn","$$addBindingInfo","expressions","interpolateFnWatchAction","getTrustedContext","attrNormalizedName","HTML","RESOURCE_URL","allOrNothing","trustedContext","attrInterpolatePreLinkFn","$$observers","newValue","$$inter","$$scope","oldValue","$updateClass","elementsToRemove","newNode","firstElementToRemove","removeCount","j2","hasData","annotation","removeWatchCollection","lastValue","parentGet","parentSet","compare","$observe","literal","assign","parentValueWatch","parentValue","$stateful","removeWatch","$watchCollection","parentValueWatchAction","newParentValue","removeWatches","SIMPLE_ATTR_NAME","attributesToCopy","$normalize","$addClass","classVal","$removeClass","newClasses","toAdd","tokenDifference","toRemove","writeAttr","booleanKey","aliasedKey","ALIASED_ATTR","observer","trimmedSrcset","srcPattern","rawUris","nbrUrisWith2parts","floor","innerIdx","lastTuple","removeAttr","listeners","startSymbol","endSymbol","binding","isolated","noTemplate","str1","str2","values","tokens1","tokens2","token","jqNodes","ident","CNTRL_REG","globals","register","this.register","allowGlobals","this.allowGlobals","addIdentifier","expression","later","$controllerMinErr","controllerPrototype","exception","cause","serializeValue","v","toISOString","ngParamSerializer","params","k","jQueryLikeParamSerializer","serialize","toSerialize","topLevel","defaultHttpResponseTransform","headers","tempData","JSON_PROTECTION_PREFIX","contentType","jsonStart","JSON_START","JSON_ENDS","parseHeaders","line","headerVal","headerKey","headersGetter","headersObj","transformData","status","fns","defaults","transformResponse","transformRequest","d","common","CONTENT_TYPE_APPLICATION_JSON","patch","xsrfCookieName","xsrfHeaderName","paramSerializer","useApplyAsync","this.useApplyAsync","useLegacyPromise","useLegacyPromiseExtensions","this.useLegacyPromiseExtensions","interceptorFactories","interceptors","requestConfig","response","resp","reject","executeHeaderFns","headerContent","processedHeaders","headerFn","header","mergeHeaders","defHeaders","reqHeaders","defHeaderName","lowercaseDefHeaderName","reqHeaderName","chain","serverRequest","reqData","withCredentials","sendReq","promise","when","reversedInterceptors","interceptor","request","requestError","responseError","thenFn","rejectFn","success","promise.success","promise.error","$httpMinErrLegacyFn","done","headersString","statusText","resolveHttpPromise","resolvePromise","$applyAsync","$$phase","deferred","resolve","resolvePromiseWithResult","removePendingReq","pendingRequests","cachedResp","buildUrl","defaultCache","xsrfValue","urlIsSameOrigin","timeout","responseType","serializedParams","interceptorFactory","createShortMethods","createShortMethodsWithData","createXhr","XMLHttpRequest","createHttpBackend","callbacks","$browserDefer","rawDocument","jsonpReq","callbackId","async","body","called","addEventListener","timeoutRequest","jsonpDone","xhr","abort","completeRequest","open","setRequestHeader","onload","xhr.onload","responseText","urlResolve","protocol","getAllResponseHeaders","onerror","onabort","send","this.startSymbol","this.endSymbol","escape","ch","unescapeText","escapedStartRegexp","escapedEndRegexp","constantWatchDelegate","objectEquality","constantInterp","unwatch","constantInterpolateWatch","mustHaveExpression","parseStringifyInterceptor","getTrusted","$interpolateMinErr","interr","unescapedText","exp","$$watchDelegate","endIndex","parseFns","textLength","expressionPositions","startSymbolLength","endSymbolLength","throwNoconcat","compute","interpolationFn","$watchGroup","interpolateFnWatcher","oldValues","currValue","$interpolate.startSymbol","$interpolate.endSymbol","interval","count","invokeApply","hasParams","iteration","setInterval","clearInterval","skipApply","$$intervalId","tick","notify","intervals","interval.cancel","encodePath","segments","parseAbsoluteUrl","absoluteUrl","locationObj","parsedUrl","$$protocol","$$host","hostname","$$port","port","DEFAULT_PORTS","parseAppUrl","relativeUrl","prefixed","$$path","pathname","$$search","search","$$hash","beginsWith","begin","whole","trimEmptyHash","LocationHtml5Url","appBase","appBaseNoFile","basePrefix","$$html5","$$parse","this.$$parse","pathUrl","$locationMinErr","$$compose","this.$$compose","$$url","$$absUrl","$$parseLinkUrl","this.$$parseLinkUrl","relHref","appUrl","prevAppUrl","rewrittenUrl","LocationHashbangUrl","hashPrefix","withoutBaseUrl","withoutHashUrl","windowsFilePathExp","base","firstPathSegmentMatch","LocationHashbangInHtml5Url","locationGetter","locationGetterSetter","preprocess","html5Mode","requireBase","rewriteLinks","this.hashPrefix","this.html5Mode","setBrowserUrlWithFallback","oldUrl","oldState","$$state","afterLocationChange","$broadcast","absUrl","LocationMode","initialUrl","lastIndexOf","IGNORE_URI_REGEXP","ctrlKey","metaKey","shiftKey","which","button","absHref","preventDefault","initializing","newUrl","newState","$digest","$locationWatch","currentReplace","$$replace","urlOrStateChanged","debug","debugEnabled","this.debugEnabled","flag","formatError","Error","sourceURL","consoleLog","console","logFn","log","hasApply","arg1","arg2","warn","ensureSafeMemberName","fullExpression","$parseMinErr","getStringValue","ensureSafeObject","children","ensureSafeFunction","CALL","APPLY","BIND","ensureSafeAssignContext","ifDefined","plusFn","r","findConstantAndWatchExpressions","ast","allConstants","argsToWatch","AST","Program","expr","Literal","toWatch","UnaryExpression","argument","BinaryExpression","left","right","LogicalExpression","ConditionalExpression","alternate","consequent","Identifier","MemberExpression","object","computed","CallExpression","callee","AssignmentExpression","ArrayExpression","ObjectExpression","properties","ThisExpression","LocalsExpression","getInputs","lastExpression","isAssignable","assignableAST","NGValueParameter","operator","isLiteral","ASTCompiler","astBuilder","ASTInterpreter","isPossiblyDangerousMemberName","getValueOf","objectValueOf","cacheDefault","cacheExpensive","interceptorFn","expensiveChecks","parsedExpression","oneTime","cacheKey","runningChecksEnabled","parseOptions","$parseOptionsExpensive","$parseOptions","lexer","Lexer","parser","Parser","oneTimeLiteralWatchDelegate","oneTimeWatchDelegate","inputs","inputsWatchDelegate","expensiveChecksInterceptor","addInterceptor","expensiveCheckFn","expensiveCheckOldValue","expressionInputDirtyCheck","oldValueOfValue","prettyPrintExpression","inputExpressions","lastResult","oldInputValueOf","expressionInputWatch","newInputValue","oldInputValueOfValues","oldInputValues","expressionInputsWatch","changed","oneTimeWatch","oneTimeListener","old","$$postDigest","isAllDefined","allDefined","constantWatch","watchDelegate","useInputs","regularInterceptedExpression","oneTimeInterceptedExpression","noUnsafeEval","$$runningExpensiveChecks","$parse.$$runningExpensiveChecks","qFactory","nextTick","exceptionHandler","Promise","simpleBind","scheduleProcessQueue","processScheduled","pending","Deferred","$qMinErr","TypeError","onFulfilled","onRejected","progressBack","catch","finally","handleCallback","$$reject","$$resolve","that","rejectPromise","progress","makePromise","resolved","isResolved","callbackOutput","errback","$Q","resolver","resolveFn","all","promises","results","requestAnimationFrame","webkitRequestAnimationFrame","cancelAnimationFrame","webkitCancelAnimationFrame","webkitCancelRequestAnimationFrame","rafSupported","raf","timer","supported","createChildScopeClass","ChildScope","$$watchers","$$nextSibling","$$childHead","$$childTail","$$listeners","$$listenerCount","$$watchersCount","$id","$$ChildScope","TTL","$rootScopeMinErr","lastDirtyWatch","applyAsyncId","digestTtl","this.digestTtl","destroyChildScope","$event","currentScope","cleanUpScope","$$prevSibling","$root","Scope","beginPhase","phase","incrementWatchersCount","current","decrementListenerCount","initWatchVal","flushApplyAsync","applyAsyncQueue","scheduleApplyAsync","isolate","child","watchExp","watcher","last","eq","deregisterWatch","watchExpressions","watchGroupAction","changeReactionScheduled","firstRun","newValues","deregisterFns","shouldCall","deregisterWatchGroup","unwatchFn","watchGroupSubAction","$watchCollectionInterceptor","_value","bothNaN","newItem","oldItem","internalArray","oldLength","changeDetected","newLength","internalObject","veryOldValue","trackVeryOldValue","changeDetector","initRun","$watchCollectionAction","watch","watchers","dirty","ttl","watchLog","logIdx","asyncTask","asyncQueue","$eval","msg","next","postDigestQueue","eventName","this.$watchGroup","$applyAsyncExpression","namedListeners","indexOfListener","$emit","targetScope","listenerArgs","$$asyncQueue","$$postDigestQueue","$$applyAsyncQueue","sanitizeUri","uri","isImage","regex","normalizedVal","adjustMatcher","matcher","$sceMinErr","escapeForRegexp","adjustMatchers","matchers","adjustedMatchers","SCE_CONTEXTS","resourceUrlWhitelist","resourceUrlBlacklist","this.resourceUrlWhitelist","this.resourceUrlBlacklist","matchUrl","generateHolderType","Base","holderType","trustedValue","$$unwrapTrustedValue","this.$$unwrapTrustedValue","holderType.prototype.valueOf","holderType.prototype.toString","htmlSanitizer","trustedValueHolderBase","byType","CSS","URL","JS","trustAs","Constructor","maybeTrusted","allowed","this.enabled","sce","isEnabled","sce.isEnabled","sce.getTrusted","parseAs","sce.parseAs","enumValue","lName","eventSupport","android","userAgent","navigator","boxee","vendorPrefix","vendorRegex","bodyStyle","transitions","animations","webkitTransition","webkitAnimation","pushState","hasEvent","divElm","httpOptions","this.httpOptions","handleRequestFn","tpl","ignoreRequestError","totalPendingRequests","getTrustedResourceUrl","transformer","handleError","testability","testability.findBindings","opt_exactMatch","getElementsByClassName","matches","dataBinding","bindingName","testability.findModels","prefixes","attributeEquals","testability.getLocation","testability.setLocation","testability.whenStable","deferreds","$$timeoutId","timeout.cancel","urlParsingNode","requestUrl","originUrl","$$CookieReader","safeDecodeURIComponent","lastCookies","lastCookieString","cookieArray","cookie","currentCookieString","filters","suffix","currencyFilter","dateFilter","filterFilter","jsonFilter","limitToFilter","lowercaseFilter","numberFilter","orderByFilter","uppercaseFilter","comparator","matchAgainstAnyProp","getTypeForFilter","expressionType","predicateFn","createPredicateFn","shouldMatchPrimitives","actual","expected","deepCompare","dontMatchWholeObject","actualType","expectedType","expectedVal","matchAnyProperty","actualVal","$locale","formats","NUMBER_FORMATS","amount","currencySymbol","fractionSize","CURRENCY_SYM","PATTERNS","maxFrac","formatNumber","GROUP_SEP","DECIMAL_SEP","number","numStr","exponent","digits","numberOfIntegerDigits","zeros","ZERO_CHAR","MAX_DIGITS","roundNumber","parsedNumber","minFrac","fractionLen","min","roundAt","digit","carry","reduceRight","groupSep","decimalSep","isInfinity","isFinite","isZero","abs","formattedText","integerLen","decimals","reduce","groups","lgSize","gSize","negPre","negSuf","posPre","posSuf","padNumber","num","neg","dateGetter","dateStrGetter","shortForm","getFirstThursdayOfYear","year","dayOfWeekOnFirst","getDay","weekGetter","firstThurs","getFullYear","thisThurs","getMonth","getDate","round","eraGetter","ERAS","jsonStringToDate","string","R_ISO8601_STR","tzHour","tzMin","dateSetter","setUTCFullYear","setFullYear","timeSetter","setUTCHours","setHours","m","s","ms","parseFloat","format","DATETIME_FORMATS","NUMBER_STRING","DATE_FORMATS_SPLIT","DATE_FORMATS","spacing","limit","Infinity","processPredicates","sortPredicate","reverseOrder","map","predicate","descending","predicates","compareValues","getComparisonObject","predicateValues","doComparison","v1","v2","ngDirective","FormController","controls","$error","$$success","$pending","$name","$dirty","$pristine","$valid","$invalid","$submitted","$$parentForm","nullFormCtrl","$rollbackViewValue","form.$rollbackViewValue","control","$commitViewValue","form.$commitViewValue","$addControl","form.$addControl","$$renameControl","form.$$renameControl","newName","oldName","$removeControl","form.$removeControl","$setValidity","addSetValidityMethod","ctrl","unset","$setDirty","form.$setDirty","PRISTINE_CLASS","DIRTY_CLASS","$setPristine","form.$setPristine","setClass","SUBMITTED_CLASS","$setUntouched","form.$setUntouched","$setSubmitted","form.$setSubmitted","stringBasedInputType","$formatters","$isEmpty","baseInputType","composing","ev","ngTrim","$viewValue","$$hasNativeValidators","$setViewValue","deferListener","origValue","keyCode","$render","ctrl.$render","createDateParser","mapping","iso","ISO_DATE_REGEXP","yyyy","MM","dd","HH","getHours","mm","ss","getSeconds","sss","getMilliseconds","part","NaN","createDateInputType","parseDate","dynamicDateInputType","isValidDate","parseObservedDateValue","badInputChecker","$options","previousDate","$$parserName","$parsers","parsedDate","ngModelMinErr","ngMin","minVal","$validators","ctrl.$validators.min","$validate","ngMax","maxVal","ctrl.$validators.max","validity","VALIDITY_STATE_PROPERTY","badInput","typeMismatch","parseConstantExpr","parseFn","classDirective","arrayDifference","arrayClasses","digestClassCounts","classCounts","classesToUpdate","ngClassWatchAction","$index","old$index","mod","cachedToggleClass","switchValue","classCache","toggleValidationCss","validationErrorKey","isValid","VALID_CLASS","INVALID_CLASS","setValidity","isObjectEmpty","PENDING_CLASS","combinedState","REGEX_STRING_REGEXP","documentMode","rules","ngCspElement","ngCspAttribute","noInlineStyle","name_","el","full","major","minor","dot","codeName","expando","JQLite._data","mouseleave","mouseenter","optgroup","tbody","tfoot","colgroup","caption","thead","th","td","Node","contains","compareDocumentPosition","ready","trigger","fired","removeData","jqLiteHasData","jqLiteCleanData","removeAttribute","css","NODE_TYPE_ATTRIBUTE","lowercasedName","specified","getNamedItem","ret","getText","$dv","multiple","selected","nodeCount","jqLiteOn","types","addHandler","noEventListener","one","onFn","replaceNode","insertBefore","contentDocument","prepend","wrapNode","detach","after","newElement","toggleClass","condition","classCondition","nextElementSibling","getElementsByTagName","extraParameters","dummyEvent","handlerArgs","eventFnsCopy","arg3","unbind","FN_ARG_SPLIT","FN_ARG","argDecl","underscore","$animateMinErr","postDigestElements","updateData","handleCSSClassChanges","existing","pin","domOperation","from","to","classesAdded","add","classesRemoved","runner","complete","$$registeredAnimations","classNameFilter","this.classNameFilter","$$classNameFilter","reservedRegex","NG_ANIMATE_CLASSNAME","domInsert","parentElement","afterElement","afterNode","ELEMENT_NODE","previousElementSibling","end","enter","move","leave","addclass","animate","tempClasses","waitForTick","waitQueue","passed","AnimateRunner","setHost","rafTick","_doneCallbacks","_tick","this._tick","doc","hidden","_state","AnimateRunner.chain","AnimateRunner.all","runners","onProgress","DONE_COMPLETE_STATE","getPromise","resolveHandler","rejectHandler","pause","resume","_resolve","INITIAL_STATE","DONE_PENDING_STATE","initialOptions","closed","$$prepared","cleanupStyles","start","offsetWidth","APPLICATION_JSON","$httpMinErr","$interpolateMinErr.throwNoconcat","$interpolateMinErr.interr","PATH_MATCH","locationPrototype","paramValue","Location","Location.prototype.state","OPERATORS","ESCAPE","lex","tokens","readString","peek","readNumber","isIdent","readIdent","is","isWhitespace","ch2","ch3","op2","op3","op1","throwError","chars","isExpOperator","colStr","peekCh","quote","rawString","hex","String","fromCharCode","rep","ExpressionStatement","Property","program","expressionStatement","expect","filterChain","assignment","ternary","logicalOR","consume","logicalAND","equality","relational","additive","multiplicative","unary","primary","arrayDeclaration","constants","parseArguments","baseExpression","peekToken","kind","e1","e2","e3","e4","peekAhead","t","nextId","vars","own","assignable","stage","computing","recurse","return_","generateFunction","fnKey","intoId","watchId","fnString","USE","STRICT","filterPrefix","watchFns","varsPrefix","section","nameId","recursionFn","skipWatchIdCheck","if_","lazyAssign","computedMember","lazyRecurse","plus","not","getHasOwnProperty","nonComputedMember","addEnsureSafeObject","notNull","addEnsureSafeAssignContext","addEnsureSafeMemberName","addEnsureSafeFunction","member","filterName","defaultValue","stringEscapeRegex","stringEscapeFn","c","charCodeAt","skip","init","fn.assign","rhs","lhs","unary+","unary-","unary!","binary+","binary-","binary*","binary/","binary%","binary===","binary!==","binary==","binary!=","binary<","binary>","binary<=","binary>=","binary&&","binary||","ternary?:","astCompiler","yy","y","MMMM","MMM","M","H","hh","EEEE","EEE","ampmGetter","AMPMS","Z","timeZoneGetter","zone","paddedZone","ww","w","G","GG","GGG","GGGG","longEraGetter","ERANAMES","xlinkHref","propName","defaultLinkFn","normalized","ngBooleanAttrWatchAction","htmlAttr","ngAttrAliasWatchAction","nullFormRenameControl","formDirectiveFactory","isNgForm","getSetter","ngFormCompile","formElement","nameAttr","ngFormPreLink","ctrls","handleFormSubmission","setter","URL_REGEXP","EMAIL_REGEXP","NUMBER_REGEXP","DATE_REGEXP","DATETIMELOCAL_REGEXP","WEEK_REGEXP","MONTH_REGEXP","TIME_REGEXP","inputType","textInputType","weekParser","isoWeek","existingDate","week","hours","seconds","milliseconds","addDays","numberInputType","urlInputType","ctrl.$validators.url","modelValue","viewValue","emailInputType","email","ctrl.$validators.email","radioInputType","checked","checkboxInputType","trueValue","ngTrueValue","falseValue","ngFalseValue","ctrl.$isEmpty","CONSTANT_VALUE_REGEXP","tplAttr","ngValueConstantLink","ngValueLink","valueWatchAction","$compile","ngBindCompile","templateElement","ngBindLink","ngBindWatchAction","ngBindTemplateCompile","ngBindTemplateLink","ngBindHtmlCompile","ngBindHtmlGetter","ngBindHtmlWatch","ngBindHtmlLink","ngBindHtmlWatchAction","getTrustedHtml","$viewChangeListeners","forceAsyncEvents","ngEventHandler","previousElements","ngIfWatchAction","srcExp","onloadExp","autoScrollExp","autoscroll","changeCounter","previousElement","currentElement","cleanupLastIncludeContent","ngIncludeWatchAction","afterAnimation","thisChangeId","namespaceAdaptedClone","trimValues","NgModelController","$modelValue","$$rawModelValue","$asyncValidators","$untouched","$touched","parsedNgModel","parsedNgModelAssign","ngModelGet","ngModelSet","pendingDebounce","parserValid","$$setOptions","this.$$setOptions","getterSetter","invokeModelGetter","invokeModelSetter","$$$p","this.$isEmpty","$$updateEmptyClasses","this.$$updateEmptyClasses","NOT_EMPTY_CLASS","EMPTY_CLASS","currentValidationRunId","this.$setPristine","this.$setDirty","this.$setUntouched","UNTOUCHED_CLASS","TOUCHED_CLASS","$setTouched","this.$setTouched","this.$rollbackViewValue","$$lastCommittedViewValue","this.$validate","prevValid","prevModelValue","allowInvalid","$$runValidators","allValid","$$writeModelToScope","this.$$runValidators","doneCallback","processSyncValidators","syncValidatorsValid","validator","processAsyncValidators","validatorPromises","validationDone","localValidationRunId","processParseErrors","errorKey","this.$commitViewValue","$$parseAndValidate","this.$$parseAndValidate","this.$$writeModelToScope","this.$setViewValue","updateOnDefault","$$debounceViewValueCommit","this.$$debounceViewValueCommit","debounceDelay","debounce","ngModelWatch","formatters","ngModelCompile","ngModelPreLink","modelCtrl","formCtrl","ngModelPostLink","updateOn","DEFAULT_REGEXP","ngOptionsMinErr","NG_OPTIONS_REGEXP","parseOptionsExpression","optionsExp","selectElement","Option","selectValue","label","group","disabled","getOptionValuesKeys","optionValues","optionValuesKeys","keyName","itemKey","valueName","selectAs","trackBy","viewValueFn","trackByFn","getTrackByValueFn","getHashOfValue","getTrackByValue","getLocals","displayFn","groupByFn","disableWhenFn","valuesFn","getWatchables","watchedArray","optionValuesLength","disableWhen","getOptions","optionItems","selectValueMap","optionItem","getOptionFromViewValue","getViewValueFromOption","optionTemplate","optGroupTemplate","ngOptionsPreLink","registerOption","ngOptionsPostLink","updateOptionElement","addOrReuseElement","removeExcessElements","skipEmptyAndUnknownOptions","emptyOption_","emptyOption","unknownOption_","unknownOption","updateOptions","previousValue","selectCtrl","readValue","groupMap","providedEmptyOption","updateOption","optionElement","groupElement","currentOptionElement","ngModelCtrl","nextValue","ngModelCtrl.$isEmpty","writeValue","selectCtrl.writeValue","selectCtrl.readValue","selectedValues","selections","selectedOption","BRACE","IS_WHEN","updateElementText","newText","numberExp","whenExp","whens","whensExpFns","braceReplacement","watchRemover","lastCount","attributeName","tmpMatch","whenKey","ngPluralizeWatchAction","countIsNaN","pluralCat","whenExpFn","ngRepeatMinErr","updateScope","valueIdentifier","keyIdentifier","arrayLength","$first","$last","$middle","$odd","$even","ngRepeatCompile","ngRepeatEndComment","aliasAs","trackByExp","trackByExpGetter","trackByIdExpFn","trackByIdArrayFn","trackByIdObjFn","hashFnLocals","ngRepeatLink","lastBlockMap","ngRepeatAction","previousNode","nextNode","nextBlockMap","collectionLength","trackById","collectionKeys","nextBlockOrder","trackByIdFn","blockKey","ngRepeatTransclude","ngShowWatchAction","NG_HIDE_CLASS","NG_HIDE_IN_PROGRESS_CLASS","ngHideWatchAction","ngStyleWatchAction","newStyles","oldStyles","ngSwitchController","cases","selectedTranscludes","selectedElements","previousLeaveAnimations","selectedScopes","spliceFactory","ngSwitchWatchAction","selectedTransclude","caseElement","selectedScope","anchor","ngTranscludeMinErr","ngTranscludeCloneAttachFn","ngTranscludeSlot","noopNgModelController","SelectController","optionsMap","renderUnknownOption","self.renderUnknownOption","unknownVal","removeUnknownOption","self.removeUnknownOption","self.readValue","self.writeValue","hasOption","addOption","self.addOption","removeOption","self.removeOption","self.hasOption","self.registerOption","optionScope","optionAttrs","interpolateValueFn","interpolateTextFn","valueAttributeObserveAction","interpolateWatchAction","selectPreLink","lastView","lastViewRef","selectMultipleWatch","selectPostLink","ngModelCtrl.$render","selectCtrlName","ctrl.$validators.required","patternExp","ctrl.$validators.pattern","intVal","ctrl.$validators.maxlength","ctrl.$validators.minlength","getDecimals","opt_precision","pow","ONE","OTHER","$$csp","head"]
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular/bower.json b/ecomp-portal-FE/client/bower_components/angular/bower.json
deleted file mode 100644
index ad3746f8..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/bower.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "angular",
- "version": "1.5.0",
- "license": "MIT",
- "main": "./angular.js",
- "ignore": [],
- "dependencies": {
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/angular/index.js b/ecomp-portal-FE/client/bower_components/angular/index.js
deleted file mode 100644
index 5c1aafcc..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./angular');
-module.exports = angular;
diff --git a/ecomp-portal-FE/client/bower_components/angular/package.json b/ecomp-portal-FE/client/bower_components/angular/package.json
deleted file mode 100644
index 41ffc308..00000000
--- a/ecomp-portal-FE/client/bower_components/angular/package.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "name": "angular",
- "version": "1.5.0",
- "description": "HTML enhanced for web apps",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/angular/angular.js.git"
- },
- "keywords": [
- "angular",
- "framework",
- "browser",
- "client-side"
- ],
- "author": "Angular Core Team <angular-core+npm@google.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/angular/angular.js/issues"
- },
- "homepage": "http://angularjs.org"
-}
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/.bower.json b/ecomp-portal-FE/client/bower_components/es5-shim/.bower.json
deleted file mode 100644
index f398d4f8..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/.bower.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "es5-shim",
- "main": "es5-shim.js",
- "repository": {
- "type": "git",
- "url": "git://github.com/es-shims/es5-shim"
- },
- "homepage": "https://github.com/es-shims/es5-shim",
- "authors": [
- "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)",
- "Sami Samhuri <sami.samhuri@gmail.com> (http://samhuri.net/)",
- "Florian Schäfer <florian.schaefer@gmail.com> (http://github.com/fschaefer)",
- "Irakli Gozalishvili <rfobic@gmail.com> (http://jeditoolkit.com)",
- "Kit Cambridge <kitcambridge@gmail.com> (http://kitcambridge.github.com)",
- "Jordan Harband <ljharb@gmail.com> (https://github.com/ljharb/)"
- ],
- "description": "ECMAScript 5 compatibility shims for legacy JavaScript engines",
- "keywords": [
- "shim",
- "es5",
- "es5 shim",
- "javascript",
- "ecmascript",
- "polyfill"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "tests"
- ],
- "version": "4.5.9",
- "_release": "4.5.9",
- "_resolution": {
- "type": "version",
- "tag": "v4.5.9",
- "commit": "de7aa6ea2b58b1e3839438d04c023ddf3600c35a"
- },
- "_source": "https://github.com/es-shims/es5-shim.git",
- "_target": "~4.5.8",
- "_originalSource": "es5-shim"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/CHANGES b/ecomp-portal-FE/client/bower_components/es5-shim/CHANGES
deleted file mode 100644
index 91f5d7a2..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/CHANGES
+++ /dev/null
@@ -1,404 +0,0 @@
-4.5.9
- - [Fix] parseInt and parseFloat should both accept null/undefined (#402)
- - [Tests] up to `node` `v6.2`
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `jscs`, `concurrently`
-
-4.5.8
- - [Fix] Check if property descriptor is configurable before re-defining it (#394, #373)
- - [Dev Deps] update `eslint`, `jscs`, `@ljharb/eslint-config`
- - [Tests] up to `node` `v5.10`, `v4.4`
- - [Tests] Use `concurrently` instead of `parallelshell`
- - [Tests] use `pretest` to run the linter
-
-4.5.7
- - [Fix] `bind` in IE 8: Update `is-callable` implementation to v1.1.3 (#390)
-
-4.5.6
- - [Fix] `new Date(new Date())` should work in IE 8 (#389)
- - [Tests] on `node` `v5.7`
- - [Dev Deps] update `uglify-js`
-
-4.5.5
- - [Fix] Adobe Photoshop’s JS engine bizarrely can have `+date !== date.getTime()` (#365)
- - [Dev Deps] update `eslint`
- - [Refactor] Update `is-callable` implementation to match latest
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `jscs`
-
-4.5.4
- - [Fix] careless error from 5cf99aca49e59bae03b5d542381424bb1b13ec42
-
-4.5.3
- - [Fix] Saturday is a day in the week (#386)
- - [Robustness] improve Function#bind (#381)
- - [Tests] on `node` `v5.6`, `v4.3`
- - [Tests] use json3 (#382)
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`
- - [Docs] add note about script order (#379)
-
-4.5.2
- - [shim: fix] use `Array#slice`, not `String#slice`, on `String#split` output (#380)
-
-4.5.1
- - [Fix] Make sure preexisting + broken `Array#` methods that throw don’t break the runtime (#377)
- - [Dev Deps] update `jscs`
-
-4.5.0
- - [New] `parseFloat('-0')` should return -0 in Opera 12 (#371)
- - [New] Provide and replace Date UTC methods (#360)
- - [Robustness] cache `Date` getUTC* methods so that `Date#toISOString` doesn’t observably look them up on the receiver
- - [Robustness] use a cached and shimmed `String#trim`
- - [Tests] up to `node` `v5.5`
- - [Tests] add `parallelshell` and use it in a few tasks
- - [Refactor] rename cached methods to avoid linter warnings
- - [Dev Deps] update `eslint`, `jscs`, '@ljharb/eslint-config'
- - [Docs] Update license year to 2016 (#374)
-
-4.4.2
- - [shim: fix] use `Array#slice`, not `String#slice`, on `String#split` output (#380)
-
-4.4.1
- - [Fix] ensure that IE 11 in compatibility mode doesn't throw (#370)
- - [Docs] add missing shimmed things
-
-4.4.0
- - [New] Detect and patch `RegExp#toString` in IE 8, which returns flags in the wrong order (#364)
- - [Fix] Patch `Array#sort` on {Chrome, Safari, IE < 9, FF 4} that throws improperly, per ES5 (#354)
- - [Fix] In IE 6, `window.external` makes `Object.keys` throw
- - [Fix] `Array#slice`: boxed string access on IE <= 8 (#349)
- - [Fix] `Array#join`: fix IE 6-8 join called on string literal (#352)
- - [Fix] Ensure that `Error#message` and `Error#name` are non-enumerable (#358)
- - [Fix: sham] `Object.getOwnPropertyDescriptor`: In Opera 11.6, `propertyIsEnumerable` is a nonshadowable global, like `toString`
- - [Robustness] Use a bound form of `Array#slice.call`
- - [Tests] Properly check for descriptor support in IE <= 8
- - [Tests] on `node` `v5.1`
- - [Tests] Add `Array#slice` tests (#346)
- - [Dev Deps] update `uglify-js`, `eslint`, `jscs`, `uglify-js`, `semver`
- - [Docs] Fix broken UMD links (#344)
-
-4.3.2
- - [shim: fix] use `Array#slice`, not `String#slice`, on `String#split` output (#380)
-
-4.3.1
- - [Fix] `String#split`: revert part of dcce96ae21185a69d2d40e67416e7496b73e8e47 which broke in older browsers (#342)
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `jscs`
- - [Tests] Firefox allows `Number#toPrecision` values of [1,100], which the spec permits
-
-4.3.0
- - [New] `Array#push`: in IE <= 7, `Array#push` was not generic (#336)
- - [New] `Array#push` in Opera `10.6` has a super weird bug when pushing `undefined`
- - [New] `Array#join`: In IE <= 7, passing `undefined` didn't use the default separator (#333)
- - [New] `Error#toString`: prints out the proper message in IE 7 and below (#334)
- - [New] `Number#toPrecision`: IE 7 and below incorrectly throw when an explicit `undefined` precision is passed (#340)
- - [Fix] `String#lastIndexOf`: ensure the correct length in IE 8
- - [Fix] ensure `parseInt` accepts negative and plus-prefixed hex values (#332)
- - [Robustness] Use a bound `Array#push` instead of relying on `Function#call`
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `jscs`
- - [Tests] Add some conditionals to avoid impossible-to-fix test failures in IE 6-8, due to it being unable to distinguish between `undefined` and an absent index (#114)
- - [Tests] Fix false negatives in IE 6-8 with jasmine comparing arrays to arraylikes (#114)
- - [Tests] add additional `Array#shift` tests (#337)
- - [Tests] Add additional `Array#splice` tests (#339)
- - [Tests] Add `Array#pop` tests, just in case (#338)
- - [Tests] include `global` tests in HTML test files
- - [Tests] Make sure the HTML tests run with the right charset
- - [Tests] ensure `node` `v0.8` tests stay passing.
- - [Tests] Prevent nondeterminism in the tests - this sometime produced values that are one ms off
- - [Tests] on `node` `v5.0`
- - [Tests] fix npm upgrades for older nodes
-
-4.2.1
- - [shim: fix] use `Array#slice`, not `String#slice`, on `String#split` output (#380)
-
-4.2.0
- - [shim: new] Overwrite `String#lastIndexOf` in IE 9, 10, 11, and Edge, so it has proper unicode support.
- - [Dev Deps] update `eslint`, `jscs`
-
-4.1.16
- - [shim: fix] use `Array#slice`, not `String#slice`, on `String#split` output (#380)
-
-4.1.15
- - [shim: fix] new Date + Date.parse: Fix a Safari 8 & 9 bug where the `ms` arg is treated as a signed instead of unsigned int (#329)
- - [shim: fix] add 'frame' to blacklisted keys (#330)
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `jscs`, `uglify-js`
- - [Tests] on `node` `v4.2`
- - [Tests] Date: prevent nondeterminism in the tests - this sometime produced values that are one ms off
-
-4.1.14
- - [shim: fix] Wrap more things in a try/catch, because IE sucks and sometimes throws on [[Get]] of window.localStorage (#327)
- - [Refactor] Use `ES.ToUint32` instead of inline `>>>`
- - [Tests] up to `node` `v4.1`
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `semver`, `jscs`
-
-4.1.13
- - [shim: fix] Fix a bug where `Date(x)` threw instead of equalling `String(Date(x))` (#326)
-
-4.1.12
- - [fix] Make sure uglify doesn't remove function names
- - [shim: fix] Use `is-arguments` implementation; don't call down legacy code path in modern engines (#325)
- - [Tests] up to `io.js` `v3.3`
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`
-
-4.1.11
- - [shim: fix] Object.keys in Safari 9 has some bugs. (Already fixed in Webkit Nightly)
- - [shim: fix] Omit !Date.parse check in the if statement (#323)
- - [sham: fix] Fix Object.create sham to not set __proto__ (#301)
- - [sham: fix] Add a typeof check to Object.getPrototypeOf (#319, #320)
- - [Tests] up to `io.js` `v3.1`
- - [Tests] Make sure `Object.getPrototypeOf` tests don't fail when engines implement ES6 semantics
- - [Docs] Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG (#318)
- - [Dev Deps] Update `eslint`, `uglify-js`, `jscs`; use my personal shared `eslint` config
-
-4.1.10
- - [Fix] Fix IE 8 issue with `window.frameElement` access in a child iframe (#322)
- - [Tests] Consolidating `Date.parse` extended year tests
- - [Tests] Account for a `Date.parse` precision variance in Safari 8
- - [Tests] DRY up some Date.parse tests
- - [Tests] Don't create globals in Date tests
- - [Tests] Better failure output when an invalid date's toJSON throws
- - [Tests] Also compare lengths of array-likes
- - [Tests] Extra check on Object.keys(arguments)
- - [Tests] Skip appropriate tests when objects aren't extensible/freezeable/sealable
-
-4.1.9
- - [Fix] Remove "extended", add "unicode" in `String#split` shim, to match ES6
- - [Fix] Object.keys: Preserve the IE 8 dontEnum bugfix, and the automation equality bugfix.
- - [Fix] Object.keys: Prevent a deprecation message from showing up in Chrome.
- - [Performance] Speed up blacklisted key check for Object.keys automation equality bug.
- - [Tests] Test on `io.js` `v2.4`
- - [Dev Deps] Update `eslint`, `semver`
-
-4.1.8
- - [Fix] Fix an `Object.keys` IE 8 bug where `localStorage.prototype.constructor === localStorage` would throw (#275)
- - [Fix] Shimmed `Object.defineProperty` should not throw for an empty descriptor (#315)
- - [Fix] Fix `Date#toISOString` in Safari 5.1 (#243)
- - [Fix] Use `Object#propertyIsEnumerable` to default the initial "enumerable" value in `Object.getOwnPropertyDescriptor` sham (#289)
- - [Fix] Fix `Array#splice` with large sparse arrays in Safari 7/8, and Opera 12.15 (#295)
- - [Robustness] Safely use and reference many builtins internally (also see #313)
- - [Tests] Add `Date#{getUTCDate,getUTCMonth}` tests to expose Opera 10.6/11.61/12 `Date` bugs
- - [Dev Deps] Update `eslint`
-
-4.1.7
- - Make sure `Date.parse` is not enumerable (#310)
-
-4.1.6
- - Support IE 8 when `document.domain` is set (#306, #150)
- - Remove version from `bower.json` (#307)
-
-4.1.5
- - Add a failing runtime check for Safari 8 `Date.parse`
- - Update `eslint`, `semver`
- - Test on `io.js` `v2.2`
-
-4.1.4
- - Make sure copied `Date` properties remain non-enumerable.
- - Using a more reliable check for supported property descriptors in non-IE ES3
- - Fix 'constructor' in Object.defineProperties sham in ES3 (#252, #305)
- - Use a reference to `Array#concat` rather than relying on the runtime environment's `concat`.
- - Test on `io.js` `v2.1`
- - Clean up `Array.prototype` iteration methods
-
-4.1.3
- - Update `license` in `package.json` per https://docs.npmjs.com/files/package.json#license
- - Update `uglify-js`, `eslint`
-
-4.1.2
- - In IE 6-8, `Date` inside the function expression does not reference `DateShim` (#303)
- - Date: Ensure all code paths have the correct `constructor` property
- - Date: Don't copy non-own properties from original `Date`
- - Test up to `io.js` `v2.0.0`
- - Simplify `isPrimitive` check.
- - Adding sanity check tests for ES5 `Number` constants.
- - Update `uglify-js`, `eslint`, `semver`
-
-4.1.1
- - Fix name of `parseInt` replacement.
- - Update copyright year
- - Update `eslint`, `jscs`
- - Lock `uglify-js` down to v2.4.17, since v2.4.18 and v2.4.19 have a breaking change.
- - All grade A-supported `node`/`iojs` versions now ship with an `npm` that understands `^`.
- - Run `travis-ci` tests on latest `node` and `iojs`; speed up builds; allow 0.8 failures.
- - Ensure some Object tests don't fail in ES6
- - Make sure `Date` instances don't have an enumerable `constructor` property, when possible.
-
-4.1.0
- - Update `eslint`
- - Improve type checks: `Array.isArray`, `isRegex`
- - Replace `isRegex`/`isString`/`isCallable` checks with inlined versions from npm modules
- - Note which ES abstract methods are replaceable via `es-abstract`
- - Run `travis-ci` tests on `iojs`!
-
-4.0.6
- - Update `jscs`, `uglify-js`, add `eslint`
- - es5-sham: fix Object.defineProperty to not check for own properties (#211)
- - Fix Array#splice bug in Safari 5 (#284)
- - Fix `Object.keys` issue with boxed primitives with extra properties in older browsers. (#242, #285)
-
-4.0.5
- - Update `jscs` so tests pass
-
-4.0.4
- - Style/indentation/whitespace cleanups.
- - README tweaks
-
-4.0.3
- - Fix keywords (#268)
- - add some Date tests
- - Note in README that the es5-sham requires the es5-shim (https://github.com/es-shims/es5-shim/issues/256#issuecomment-52875710)
-
-4.0.2
- - Start including version numbers in minified files (#267)
-
-4.0.1
- - Fix legacy arguments object detection in Object.keys (#260)
-
-4.0.0
- - No longer shim the ES5-spec behavior of splice when `deleteCount` is omitted - since no engines implement it, and ES6 changes it. (#255)
- - Use Object.defineProperty where available, so that polyfills are non-enumerable when possible (#250)
- - lots of internal refactoring
- - Fixed a bug referencing String#indexOf and String#lastIndexOf before polyfilling it (#253, #254)
-
-3.4.0
- - Removed nonstandard SpiderMonkey extension to Array#splice - when `deleteCount` is omitted, it's now treated as 0. (#192, #239)
- - Fix Object.keys with Arguments objects in Safari 5.0
- - Now shimming String#split in Opera 10.6
- - Avoid using "toString" as a variable name, since that breaks Opera
- - Internal implementation and test cleanups
-
-3.3.2
- - Remove an internal "bind" call, which should make the shim a bit faster
- - Fix a bug with object boxing in Array#reduceRight that was failing a test in IE 6
-
-3.3.1
- - Fixing an Array#splice bug in IE 6/7
- - cleaning up Array#splice tests
-
-3.3.0
- - Fix Array#reduceRight in node 0.6 and older browsers (#238)
-
-3.2.0
- - Fix es5-sham UMD definition to work properly with AMD (#237)
- - Ensure that Array methods do not autobox context in strict mode (#233)
-
-3.1.1
- - Update minified files (#231)
-
-3.1.0
- - Fix String#replace in Firefox up through 29 (#228)
-
-3.0.2
- - Fix `Function#bind` in IE 7 and 8 (#224, #225, #226)
-
-3.0.1
- - Version bump to ensure npm has newest minified assets
-
-3.0.0
- - es5-sham: fix `Object.getPrototypeOf` and `Object.getOwnPropertyDescriptor` for Opera Mini
- - Better override noncompliant native ES5 methods: `Array#forEach`, `Array#map`, `Array#filter`, `Array#every`, `Array#some`, `Array#reduce`, `Date.parse`, `String#trim`
- - Added spec-compliant shim for `parseInt`
- - Ensure `Object.keys` handles more edge cases with `arguments` objects and boxed primitives
- - Improve minification of builds
-
-2.3.0
- - parseInt is now properly shimmed in ES3 browsers to default the radix
- - update URLs to point to the new organization
-
-2.2.0
- - Function.prototype.bind shim now reports correct length on a bound function
- - fix node 0.6.x v8 bug in Array#forEach
- - test improvements
-
-2.1.0
- - Object.create fixes
- - tweaks to the Object.defineProperties shim
-
-2.0.0
- - Separate reliable shims from dubious shims (shams).
-
-1.2.10
- - Group-effort Style Cleanup
- - Took a stab at fixing Object.defineProperty on IE8 without
- bad side-effects. (@hax)
- - Object.isExtensible no longer fakes it. (@xavierm)
- - Date.prototype.toISOString no longer deals with partial
- ISO dates, per spec (@kitcambridge)
- - More (mostly from @bryanforbes)
-
-1.2.9
- - Corrections to toISOString by @kitcambridge
- - Fixed three bugs in array methods revealed by Jasmine tests.
- - Cleaned up Function.prototype.bind with more fixes and tests from
- @bryanforbes.
-
-1.2.8
- - Actually fixed problems with Function.prototype.bind, and regressions
- from 1.2.7 (@bryanforbes, @jdalton #36)
-
-1.2.7 - REGRESSED
- - Fixed problems with Function.prototype.bind when called as a constructor.
- (@jdalton #36)
-
-1.2.6
- - Revised Date.parse to match ES 5.1 (kitcambridge)
-
-1.2.5
- - Fixed a bug for padding it Date..toISOString (tadfisher issue #33)
-
-1.2.4
- - Fixed a descriptor bug in Object.defineProperty (raynos)
-
-1.2.3
- - Cleaned up RequireJS and <script> boilerplate
-
-1.2.2
- - Changed reduce to follow the letter of the spec with regard to having and
- owning properties.
- - Fixed a bug where RegExps pass as Functions in some engines in reduce.
-
-1.2.1
- - Adding few fixes to make jshint happy.
- - Fix for issue #12, function expressions can cause scoping issues in IE.
- - NPM will minify on install or when `npm run-script install` is executed.
- - Adding .gitignore to avoid publishing dev dependencies.
-
-1.2.0
- - Making script loadable as AMD module.
- - Adding `indexOf` to the list of safe shims.
-
-1.1.0
- - Added support for accessor properties where possible (which is all browsers
- except IE).
- - Stop exposing bound function's (that are returned by
- `Function.prototype.bind`) internal properties (`bound, boundTo, boundArgs`)
- as in some cases (when using facade objects for example) capabilities of the
- enclosed functions will be leaked.
- - `Object.create` now explicitly sets `__proto__` property to guarantee
- correct behavior of `Object.getPrototypeOf`'s on all objects created using
- `Object.create`.
- - Switched to `===` from `==` where possible as it's slightly faster on older
- browsers that are target of this lib.
- - Added names to all anonymous functions to have a better stack traces.
-
-1.0.0
- - fixed Date.toISODate, using UTC accessors, as in
- http://code.google.com/p/v8/source/browse/trunk/src/date.js?r=6120#986
- (arian)
-
-0.0.4
- - Revised Object.getPrototypeOf to work in more cases
- in response to http://ejohn.org/blog/objectgetprototypeof/
- [issue #2] (fschaefer)
-
-0.0.3
- - Fixed typos in Object.keys (samsonjs)
-
-0.0.2
- Per kangax's recommendations:
- - faster Object.create(null)
- - fixed a function-scope function declaration statement in Object.create
-
-0.0.1
- - fixed Object.create(null), in so far as that's possible
- - reworked Rhino Object.freeze(Function) bug detector and patcher
-
-0.0.0
- - forked from narwhal-lib
-
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/CONTRIBUTORS.md b/ecomp-portal-FE/client/bower_components/es5-shim/CONTRIBUTORS.md
deleted file mode 100644
index 43ebf770..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/CONTRIBUTORS.md
+++ /dev/null
@@ -1,27 +0,0 @@
-
-- kriskowal Kris Kowal Copyright (C) 2009-2011 MIT License
-- tlrobinson Tom Robinson Copyright (C) 2009-2010 MIT License (Narwhal
- Project)
-- dantman Daniel Friesen Copyright (C) 2010 XXX TODO License or CLA
-- fschaefer Florian Schäfer Copyright (C) 2010 MIT License
-- Gozala Irakli Gozalishvili Copyright (C) 2010 MIT License
-- kitcambridge Kit Cambridge Copyright (C) 2011 MIT License
-- kossnocorp Sasha Koss XXX TODO License or CLA
-- bryanforbes Bryan Forbes XXX TODO License or CLA
-- killdream Quildreen Motta Copyright (C) 2011 MIT Licence
-- michaelficarra Michael Ficarra Copyright (C) 2011 3-clause BSD
- License
-- sharkbrainguy Gerard Paapu Copyright (C) 2011 MIT License
-- bbqsrc Brendan Molloy (C) 2011 Creative Commons Zero (public domain)
-- iwyg XXX TODO License or CLA
-- DomenicDenicola Domenic Denicola Copyright (C) 2011 MIT License
-- xavierm02 Montillet Xavier Copyright (C) 2011 MIT License
-- Raynos Jake Verbaten Copyright (C) 2011 MIT Licence
-- samsonjs Sami Samhuri Copyright (C) 2010 MIT License
-- rwldrn Rick Waldron Copyright (C) 2011 MIT License
-- lexer Alexey Zakharov XXX TODO License or CLA
-- 280 North Inc. (Now Motorola LLC, a subsidiary of Google Inc.)
- Copyright (C) 2009 MIT License
-- Steven Levithan Copyright (C) 2012 MIT License
-- Jordan Harband (C) 2013 MIT License
-
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/LICENSE b/ecomp-portal-FE/client/bower_components/es5-shim/LICENSE
deleted file mode 100644
index 195f751b..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (C) 2009-2016 Kristopher Michael Kowal and contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/Makefile b/ecomp-portal-FE/client/bower_components/es5-shim/Makefile
deleted file mode 100644
index 5afc70dc..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/Makefile
+++ /dev/null
@@ -1,63 +0,0 @@
-# Since we rely on paths relative to the makefile location, abort if make isn't being run from there.
-$(if $(findstring /,$(MAKEFILE_LIST)),$(error Please only invoke this makefile from the directory it resides in))
-
- # The files that need updating when incrementing the version number.
-VERSIONED_FILES := *.js *.json *.map README*
-
-
-# Add the local npm packages' bin folder to the PATH, so that `make` can find them, when invoked directly.
-# Note that rather than using `$(npm bin)` the 'node_modules/.bin' path component is hard-coded, so that invocation works even from an environment
-# where npm is (temporarily) unavailable due to having deactivated an nvm instance loaded into the calling shell in order to avoid interference with tests.
-export PATH := $(shell printf '%s' "$$PWD/node_modules/.bin:$$PATH")
-UTILS := semver
-# Make sure that all required utilities can be located.
-UTIL_CHECK := $(or $(shell PATH="$(PATH)" which $(UTILS) >/dev/null && echo 'ok'),$(error Did you forget to run `npm install` after cloning the repo? At least one of the required supporting utilities not found: $(UTILS)))
-
-# Default target (by virtue of being the first non '.'-prefixed in the file).
-.PHONY: _no-target-specified
-_no-target-specified:
- $(error Please specify the target to make - `make list` shows targets. Alternatively, use `npm test` to run the default tests; `npm run` shows all tests)
-
-# Lists all targets defined in this makefile.
-.PHONY: list
-list:
- @$(MAKE) -pRrn : -f $(MAKEFILE_LIST) 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | command grep -v -e '^[^[:alnum:]]' -e '^$@$$command ' | sort
-
-# All-tests target: invokes the specified test suites for ALL shells defined in $(SHELLS).
-.PHONY: test
-test:
- @npm test
-
-.PHONY: _ensure-tag
-_ensure-tag:
-ifndef TAG
- $(error Please invoke with `make TAG=<new-version> release`, where <new-version> is either an increment specifier (patch, minor, major, prepatch, preminor, premajor, prerelease), or an explicit major.minor.patch version number)
-endif
-
-CHANGELOG_ERROR = $(error No CHANGES specified)
-.PHONY: _ensure-changelog
-_ensure-changelog:
- @ (git status -sb --porcelain | command grep -E '^( M|[MA] ) CHANGES' > /dev/null) || (echo no CHANGES specified && exit 2)
-
-# Ensures that the git workspace is clean.
-.PHONY: _ensure-clean
-_ensure-clean:
- @[ -z "$$((git status --porcelain --untracked-files=no || echo err) | command grep -v 'CHANGES')" ] || { echo "Workspace is not clean; please commit changes first." >&2; exit 2; }
-
-# Makes a release; invoke with `make TAG=<versionOrIncrementSpec> release`.
-.PHONY: release
-release: _ensure-tag _ensure-changelog _ensure-clean
- @old_ver=`git describe --abbrev=0 --tags --match 'v[0-9]*.[0-9]*.[0-9]*'` || { echo "Failed to determine current version." >&2; exit 1; }; old_ver=$${old_ver#v}; \
- new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \
- if printf "$$new_ver" | command grep -q '^[0-9]'; then \
- semver "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be major.minor.patch' >&2; exit 2; }; \
- semver -r "> $$old_ver" "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be HIGHER than current one.' >&2; exit 2; } \
- else \
- new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \
- fi; \
- printf "=== Bumping version **$$old_ver** to **$$new_ver** before committing and tagging:\n=== TYPE 'proceed' TO PROCEED, anything else to abort: " && read response && [ "$$response" = 'proceed' ] || { echo 'Aborted.' >&2; exit 2; }; \
- npm run minify; \
- replace "$$old_ver" "$$new_ver" -- $(VERSIONED_FILES) && \
- replace "blob/master" "blob/v$$new_ver" -- *.min.js && \
- git commit -m "v$$new_ver" $(VERSIONED_FILES) CHANGES && \
- git tag -a -m "v$$new_ver" "v$$new_ver"
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/README.md b/ecomp-portal-FE/client/bower_components/es5-shim/README.md
deleted file mode 100644
index 89c59bb8..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/README.md
+++ /dev/null
@@ -1,190 +0,0 @@
-#es5-shim <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
-
-[![npm badge][npm-badge-png]][npm-url]
-
-[![Build Status][travis-svg]][travis-url]
-[![dependency status][deps-svg]][deps-url]
-[![dev dependency status][dev-deps-svg]][dev-deps-url]
-
-`es5-shim.js` and `es5-shim.min.js` monkey-patch a JavaScript context to
-contain all EcmaScript 5 methods that can be faithfully emulated with a
-legacy JavaScript engine.
-**Note:** As `es5-shim.js` is designed to patch the native Javascript
-engine, it should be the library that is loaded first.
-
-`es5-sham.js` and `es5-sham.min.js` monkey-patch other ES5 methods as
-closely as possible. For these methods, as closely as possible to ES5
-is not very close. Many of these shams are intended only to allow code
-to be written to ES5 without causing run-time errors in older engines.
-In many cases, this means that these shams cause many ES5 methods to
-silently fail. Decide carefully whether this is what you want.
-**Note:** `es5-sham.js` requires `es5-shim.js` to be able to work properly.
-
-
-## Tests
-
-The tests are written with the Jasmine BDD test framework.
-To run the tests, navigate to <root-folder>/tests/ , or,
-simply `npm install` and `npm test`.
-
-## Shims
-
-### Complete tests ###
-
-* Array.prototype.every
-* Array.prototype.filter
-* Array.prototype.forEach
-* Array.prototype.indexOf
-* Array.prototype.lastIndexOf
-* Array.prototype.map
-* Array.prototype.slice
-* Array.prototype.some
-* Array.prototype.sort
-* Array.prototype.reduce
-* Array.prototype.reduceRight
-* Array.prototype.push
-* Array.prototype.join
-* Array.isArray
-* Date.now
-* Date.prototype.toJSON
-* Function.prototype.bind
- * :warning: Caveat: the bound function has a prototype property.
- * :warning: Caveat: bound functions do not try too hard to keep you
- from manipulating their ``arguments`` and ``caller`` properties.
- * :warning: Caveat: bound functions don't have checks in ``call`` and
- ``apply`` to avoid executing as a constructor.
-* Number.prototype.toFixed
-* Number.prototype.toPrecision
-* Object.keys
-* String.prototype.split
-* String.prototype.trim
-* String.prototype.lastIndexOf
-* String.prototype.replace
- * Firefox (through v29) natively handles capturing groups incorrectly.
-* Date.parse (for ISO parsing)
-* Date.prototype.toISOString
-* parseInt
-* parseFloat
-* Error.prototype.toString
-* Error.prototype.name
-* Error.prototype.message
-* RegExp.prototype.toString
-
-## Shams
-
-* :warning: Object.create
-
- For the case of simply "begetting" an object that inherits
- prototypically from another, this should work fine across legacy
- engines.
-
- :warning: The second argument is passed to Object.defineProperties
- which will probably fail either silently or with extreme prejudice.
-
-* :warning: Object.getPrototypeOf
-
- This will return "undefined" in some cases. It uses `__proto__` if
- it's available. Failing that, it uses constructor.prototype, which
- depends on the constructor property of the object's prototype having
- not been replaced. If your object was created like this, it won't
- work:
-
- function Foo() {
- }
- Foo.prototype = {};
-
- Because the prototype reassignment destroys the constructor
- property.
-
- This will work for all objects that were created using
- `Object.create` implemented with this library.
-
-* :warning: Object.getOwnPropertyNames
-
- This method uses Object.keys, so it will not be accurate on legacy
- engines.
-
-* Object.isSealed
-
- Returns "false" in all legacy engines for all objects, which is
- conveniently guaranteed to be accurate.
-
-* Object.isFrozen
-
- Returns "false" in all legacy engines for all objects, which is
- conveniently guaranteed to be accurate.
-
-* Object.isExtensible
-
- Works like a charm, by trying very hard to extend the object then
- redacting the extension.
-
-### May fail
-
-* :warning: Object.getOwnPropertyDescriptor
-
- The behavior of this shim does not conform to ES5. It should
- probably not be used at this time, until its behavior has been
- reviewed and been confirmed to be useful in legacy engines.
-
-* :warning: Object.defineProperty
-
- In the worst of circumstances, IE 8 provides a version of this
- method that only works on DOM objects. This sham will not be
- installed. The given version of `defineProperty` will throw an
- exception if used on non-DOM objects.
-
- In slightly better circumstances, this method will silently fail to
- set "writable", "enumerable", and "configurable" properties.
-
- Providing a getter or setter with "get" or "set" on a descriptor
- will silently fail on engines that lack "__defineGetter__" and
- "__defineSetter__", which include all versions of IE.
-
- https://github.com/es-shims/es5-shim/issues#issue/5
-
-* :warning: Object.defineProperties
-
- This uses the Object.defineProperty shim.
-
-* Object.seal
-
- Silently fails on all legacy engines. This should be
- fine unless you are depending on the safety and security
- provisions of this method, which you cannot possibly
- obtain in legacy engines.
-
-* Object.freeze
-
- Silently fails on all legacy engines. This should be
- fine unless you are depending on the safety and security
- provisions of this method, which you cannot possibly
- obtain in legacy engines.
-
-* Object.preventExtensions
-
- Silently fails on all legacy engines. This should be
- fine unless you are depending on the safety and security
- provisions of this method, which you cannot possibly
- obtain in legacy engines.
-
-### Example of applying ES compatability shims in a browser project
-
-```html
-<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-shim.min.js"></script>
-<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-sham.min.js"></script>
-<script src="https://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script>
-<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script>
-<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-sham.min.js"></script>
-<script src="https://wzrd.in/standalone/es7-shim@latest"></script>
-<script src="other-libs.js"></script>
-```
-[npm-url]: https://npmjs.org/package/es5-shim
-[npm-version-svg]: http://versionbadg.es/es-shims/es5-shim.svg
-[travis-svg]: https://travis-ci.org/es-shims/es5-shim.svg
-[travis-url]: https://travis-ci.org/es-shims/es5-shim
-[deps-svg]: https://david-dm.org/es-shims/es5-shim.svg
-[deps-url]: https://david-dm.org/es-shims/es5-shim
-[dev-deps-svg]: https://david-dm.org/es-shims/es5-shim/dev-status.svg
-[dev-deps-url]: https://david-dm.org/es-shims/es5-shim#info=devDependencies
-[npm-badge-png]: https://nodei.co/npm/es5-shim.png?downloads=true&stars=true
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/bower.json b/ecomp-portal-FE/client/bower_components/es5-shim/bower.json
deleted file mode 100644
index dcc0b295..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/bower.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "name": "es5-shim",
- "main": "es5-shim.js",
- "repository": {
- "type": "git",
- "url": "git://github.com/es-shims/es5-shim"
- },
- "homepage": "https://github.com/es-shims/es5-shim",
- "authors": [
- "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)",
- "Sami Samhuri <sami.samhuri@gmail.com> (http://samhuri.net/)",
- "Florian Schäfer <florian.schaefer@gmail.com> (http://github.com/fschaefer)",
- "Irakli Gozalishvili <rfobic@gmail.com> (http://jeditoolkit.com)",
- "Kit Cambridge <kitcambridge@gmail.com> (http://kitcambridge.github.com)",
- "Jordan Harband <ljharb@gmail.com> (https://github.com/ljharb/)"
- ],
- "description": "ECMAScript 5 compatibility shims for legacy JavaScript engines",
- "keywords": [
- "shim",
- "es5",
- "es5 shim",
- "javascript",
- "ecmascript",
- "polyfill"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "tests"
- ]
-}
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/component.json b/ecomp-portal-FE/client/bower_components/es5-shim/component.json
deleted file mode 100644
index 7096633a..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/component.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "es5-shim",
- "repo": "es-shims/es5-shim",
- "description": "ECMAScript 5 compatibility shims for legacy JavaScript engines",
- "version": "v4.5.1",
- "keywords": [
- "shim",
- "es5",
- "es5 shim",
- "javascript",
- "ecmascript",
- "polyfill"
- ],
- "license": "MIT",
- "main": "es5-shim.js",
- "scripts": [
- "es5-shim.js"
- ]
-}
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.js b/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.js
deleted file mode 100644
index 580cdde9..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.js
+++ /dev/null
@@ -1,563 +0,0 @@
-/*!
- * https://github.com/es-shims/es5-shim
- * @license es5-shim Copyright 2009-2015 by contributors, MIT License
- * see https://github.com/es-shims/es5-shim/blob/master/LICENSE
- */
-
-// vim: ts=4 sts=4 sw=4 expandtab
-
-// Add semicolon to prevent IIFE from being passed as argument to concatenated code.
-;
-
-// UMD (Universal Module Definition)
-// see https://github.com/umdjs/umd/blob/master/templates/returnExports.js
-(function (root, factory) {
- 'use strict';
-
- /* global define, exports, module */
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(factory);
- } else if (typeof exports === 'object') {
- // Node. Does not work with strict CommonJS, but
- // only CommonJS-like enviroments that support module.exports,
- // like Node.
- module.exports = factory();
- } else {
- // Browser globals (root is window)
- root.returnExports = factory();
- }
-}(this, function () {
-
- var call = Function.call;
- var prototypeOfObject = Object.prototype;
- var owns = call.bind(prototypeOfObject.hasOwnProperty);
- var isEnumerable = call.bind(prototypeOfObject.propertyIsEnumerable);
- var toStr = call.bind(prototypeOfObject.toString);
-
- // If JS engine supports accessors creating shortcuts.
- var defineGetter;
- var defineSetter;
- var lookupGetter;
- var lookupSetter;
- var supportsAccessors = owns(prototypeOfObject, '__defineGetter__');
- if (supportsAccessors) {
- /* eslint-disable no-underscore-dangle */
- defineGetter = call.bind(prototypeOfObject.__defineGetter__);
- defineSetter = call.bind(prototypeOfObject.__defineSetter__);
- lookupGetter = call.bind(prototypeOfObject.__lookupGetter__);
- lookupSetter = call.bind(prototypeOfObject.__lookupSetter__);
- /* eslint-enable no-underscore-dangle */
- }
-
- var isPrimitive = function isPrimitive(o) {
- return o == null || (typeof o !== 'object' && typeof o !== 'function');
- };
-
- // ES5 15.2.3.2
- // http://es5.github.com/#x15.2.3.2
- if (!Object.getPrototypeOf) {
- // https://github.com/es-shims/es5-shim/issues#issue/2
- // http://ejohn.org/blog/objectgetprototypeof/
- // recommended by fschaefer on github
- //
- // sure, and webreflection says ^_^
- // ... this will nerever possibly return null
- // ... Opera Mini breaks here with infinite loops
- Object.getPrototypeOf = function getPrototypeOf(object) {
- /* eslint-disable no-proto */
- var proto = object.__proto__;
- /* eslint-enable no-proto */
- if (proto || proto === null) {
- return proto;
- } else if (toStr(object.constructor) === '[object Function]') {
- return object.constructor.prototype;
- } else if (object instanceof Object) {
- return prototypeOfObject;
- } else {
- // Correctly return null for Objects created with `Object.create(null)`
- // (shammed or native) or `{ __proto__: null}`. Also returns null for
- // cross-realm objects on browsers that lack `__proto__` support (like
- // IE <11), but that's the best we can do.
- return null;
- }
- };
- }
-
- // ES5 15.2.3.3
- // http://es5.github.com/#x15.2.3.3
-
- var doesGetOwnPropertyDescriptorWork = function doesGetOwnPropertyDescriptorWork(object) {
- try {
- object.sentinel = 0;
- return Object.getOwnPropertyDescriptor(object, 'sentinel').value === 0;
- } catch (exception) {
- return false;
- }
- };
-
- // check whether getOwnPropertyDescriptor works if it's given. Otherwise, shim partially.
- if (Object.defineProperty) {
- var getOwnPropertyDescriptorWorksOnObject = doesGetOwnPropertyDescriptorWork({});
- var getOwnPropertyDescriptorWorksOnDom = typeof document === 'undefined' ||
- doesGetOwnPropertyDescriptorWork(document.createElement('div'));
- if (!getOwnPropertyDescriptorWorksOnDom || !getOwnPropertyDescriptorWorksOnObject) {
- var getOwnPropertyDescriptorFallback = Object.getOwnPropertyDescriptor;
- }
- }
-
- if (!Object.getOwnPropertyDescriptor || getOwnPropertyDescriptorFallback) {
- var ERR_NON_OBJECT = 'Object.getOwnPropertyDescriptor called on a non-object: ';
-
- /* eslint-disable no-proto */
- Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {
- if (isPrimitive(object)) {
- throw new TypeError(ERR_NON_OBJECT + object);
- }
-
- // make a valiant attempt to use the real getOwnPropertyDescriptor
- // for I8's DOM elements.
- if (getOwnPropertyDescriptorFallback) {
- try {
- return getOwnPropertyDescriptorFallback.call(Object, object, property);
- } catch (exception) {
- // try the shim if the real one doesn't work
- }
- }
-
- var descriptor;
-
- // If object does not owns property return undefined immediately.
- if (!owns(object, property)) {
- return descriptor;
- }
-
- // If object has a property then it's for sure `configurable`, and
- // probably `enumerable`. Detect enumerability though.
- descriptor = {
- enumerable: isEnumerable(object, property),
- configurable: true
- };
-
- // If JS engine supports accessor properties then property may be a
- // getter or setter.
- if (supportsAccessors) {
- // Unfortunately `__lookupGetter__` will return a getter even
- // if object has own non getter property along with a same named
- // inherited getter. To avoid misbehavior we temporary remove
- // `__proto__` so that `__lookupGetter__` will return getter only
- // if it's owned by an object.
- var prototype = object.__proto__;
- var notPrototypeOfObject = object !== prototypeOfObject;
- // avoid recursion problem, breaking in Opera Mini when
- // Object.getOwnPropertyDescriptor(Object.prototype, 'toString')
- // or any other Object.prototype accessor
- if (notPrototypeOfObject) {
- object.__proto__ = prototypeOfObject;
- }
-
- var getter = lookupGetter(object, property);
- var setter = lookupSetter(object, property);
-
- if (notPrototypeOfObject) {
- // Once we have getter and setter we can put values back.
- object.__proto__ = prototype;
- }
-
- if (getter || setter) {
- if (getter) {
- descriptor.get = getter;
- }
- if (setter) {
- descriptor.set = setter;
- }
- // If it was accessor property we're done and return here
- // in order to avoid adding `value` to the descriptor.
- return descriptor;
- }
- }
-
- // If we got this far we know that object has an own property that is
- // not an accessor so we set it as a value and return descriptor.
- descriptor.value = object[property];
- descriptor.writable = true;
- return descriptor;
- };
- /* eslint-enable no-proto */
- }
-
- // ES5 15.2.3.4
- // http://es5.github.com/#x15.2.3.4
- if (!Object.getOwnPropertyNames) {
- Object.getOwnPropertyNames = function getOwnPropertyNames(object) {
- return Object.keys(object);
- };
- }
-
- // ES5 15.2.3.5
- // http://es5.github.com/#x15.2.3.5
- if (!Object.create) {
-
- // Contributed by Brandon Benvie, October, 2012
- var createEmpty;
- var supportsProto = !({ __proto__: null } instanceof Object);
- // the following produces false positives
- // in Opera Mini => not a reliable check
- // Object.prototype.__proto__ === null
-
- // Check for document.domain and active x support
- // No need to use active x approach when document.domain is not set
- // see https://github.com/es-shims/es5-shim/issues/150
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
- /* global ActiveXObject */
- var shouldUseActiveX = function shouldUseActiveX() {
- // return early if document.domain not set
- if (!document.domain) {
- return false;
- }
-
- try {
- return !!new ActiveXObject('htmlfile');
- } catch (exception) {
- return false;
- }
- };
-
- // This supports IE8 when document.domain is used
- // see https://github.com/es-shims/es5-shim/issues/150
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
- var getEmptyViaActiveX = function getEmptyViaActiveX() {
- var empty;
- var xDoc;
-
- xDoc = new ActiveXObject('htmlfile');
-
- var script = 'script';
- xDoc.write('<' + script + '></' + script + '>');
- xDoc.close();
-
- empty = xDoc.parentWindow.Object.prototype;
- xDoc = null;
-
- return empty;
- };
-
- // The original implementation using an iframe
- // before the activex approach was added
- // see https://github.com/es-shims/es5-shim/issues/150
- var getEmptyViaIFrame = function getEmptyViaIFrame() {
- var iframe = document.createElement('iframe');
- var parent = document.body || document.documentElement;
- var empty;
-
- iframe.style.display = 'none';
- parent.appendChild(iframe);
- /* eslint-disable no-script-url */
- iframe.src = 'javascript:';
- /* eslint-enable no-script-url */
-
- empty = iframe.contentWindow.Object.prototype;
- parent.removeChild(iframe);
- iframe = null;
-
- return empty;
- };
-
- /* global document */
- if (supportsProto || typeof document === 'undefined') {
- createEmpty = function () {
- return { __proto__: null };
- };
- } else {
- // In old IE __proto__ can't be used to manually set `null`, nor does
- // any other method exist to make an object that inherits from nothing,
- // aside from Object.prototype itself. Instead, create a new global
- // object and *steal* its Object.prototype and strip it bare. This is
- // used as the prototype to create nullary objects.
- createEmpty = function () {
- // Determine which approach to use
- // see https://github.com/es-shims/es5-shim/issues/150
- var empty = shouldUseActiveX() ? getEmptyViaActiveX() : getEmptyViaIFrame();
-
- delete empty.constructor;
- delete empty.hasOwnProperty;
- delete empty.propertyIsEnumerable;
- delete empty.isPrototypeOf;
- delete empty.toLocaleString;
- delete empty.toString;
- delete empty.valueOf;
-
- var Empty = function Empty() {};
- Empty.prototype = empty;
- // short-circuit future calls
- createEmpty = function () {
- return new Empty();
- };
- return new Empty();
- };
- }
-
- Object.create = function create(prototype, properties) {
-
- var object;
- var Type = function Type() {}; // An empty constructor.
-
- if (prototype === null) {
- object = createEmpty();
- } else {
- if (prototype !== null && isPrimitive(prototype)) {
- // In the native implementation `parent` can be `null`
- // OR *any* `instanceof Object` (Object|Function|Array|RegExp|etc)
- // Use `typeof` tho, b/c in old IE, DOM elements are not `instanceof Object`
- // like they are in modern browsers. Using `Object.create` on DOM elements
- // is...err...probably inappropriate, but the native version allows for it.
- throw new TypeError('Object prototype may only be an Object or null'); // same msg as Chrome
- }
- Type.prototype = prototype;
- object = new Type();
- // IE has no built-in implementation of `Object.getPrototypeOf`
- // neither `__proto__`, but this manually setting `__proto__` will
- // guarantee that `Object.getPrototypeOf` will work as expected with
- // objects created using `Object.create`
- /* eslint-disable no-proto */
- object.__proto__ = prototype;
- /* eslint-enable no-proto */
- }
-
- if (properties !== void 0) {
- Object.defineProperties(object, properties);
- }
-
- return object;
- };
- }
-
- // ES5 15.2.3.6
- // http://es5.github.com/#x15.2.3.6
-
- // Patch for WebKit and IE8 standard mode
- // Designed by hax <hax.github.com>
- // related issue: https://github.com/es-shims/es5-shim/issues#issue/5
- // IE8 Reference:
- // http://msdn.microsoft.com/en-us/library/dd282900.aspx
- // http://msdn.microsoft.com/en-us/library/dd229916.aspx
- // WebKit Bugs:
- // https://bugs.webkit.org/show_bug.cgi?id=36423
-
- var doesDefinePropertyWork = function doesDefinePropertyWork(object) {
- try {
- Object.defineProperty(object, 'sentinel', {});
- return 'sentinel' in object;
- } catch (exception) {
- return false;
- }
- };
-
- // check whether defineProperty works if it's given. Otherwise,
- // shim partially.
- if (Object.defineProperty) {
- var definePropertyWorksOnObject = doesDefinePropertyWork({});
- var definePropertyWorksOnDom = typeof document === 'undefined' ||
- doesDefinePropertyWork(document.createElement('div'));
- if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {
- var definePropertyFallback = Object.defineProperty,
- definePropertiesFallback = Object.defineProperties;
- }
- }
-
- if (!Object.defineProperty || definePropertyFallback) {
- var ERR_NON_OBJECT_DESCRIPTOR = 'Property description must be an object: ';
- var ERR_NON_OBJECT_TARGET = 'Object.defineProperty called on non-object: ';
- var ERR_ACCESSORS_NOT_SUPPORTED = 'getters & setters can not be defined on this javascript engine';
-
- Object.defineProperty = function defineProperty(object, property, descriptor) {
- if (isPrimitive(object)) {
- throw new TypeError(ERR_NON_OBJECT_TARGET + object);
- }
- if (isPrimitive(descriptor)) {
- throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);
- }
- // make a valiant attempt to use the real defineProperty
- // for I8's DOM elements.
- if (definePropertyFallback) {
- try {
- return definePropertyFallback.call(Object, object, property, descriptor);
- } catch (exception) {
- // try the shim if the real one doesn't work
- }
- }
-
- // If it's a data property.
- if ('value' in descriptor) {
- // fail silently if 'writable', 'enumerable', or 'configurable'
- // are requested but not supported
- /*
- // alternate approach:
- if ( // can't implement these features; allow false but not true
- ('writable' in descriptor && !descriptor.writable) ||
- ('enumerable' in descriptor && !descriptor.enumerable) ||
- ('configurable' in descriptor && !descriptor.configurable)
- ))
- throw new RangeError(
- 'This implementation of Object.defineProperty does not support configurable, enumerable, or writable.'
- );
- */
-
- if (supportsAccessors && (lookupGetter(object, property) || lookupSetter(object, property))) {
- // As accessors are supported only on engines implementing
- // `__proto__` we can safely override `__proto__` while defining
- // a property to make sure that we don't hit an inherited
- // accessor.
- /* eslint-disable no-proto */
- var prototype = object.__proto__;
- object.__proto__ = prototypeOfObject;
- // Deleting a property anyway since getter / setter may be
- // defined on object itself.
- delete object[property];
- object[property] = descriptor.value;
- // Setting original `__proto__` back now.
- object.__proto__ = prototype;
- /* eslint-enable no-proto */
- } else {
- object[property] = descriptor.value;
- }
- } else {
- var hasGetter = 'get' in descriptor;
- var hasSetter = 'set' in descriptor;
- if (!supportsAccessors && (hasGetter || hasSetter)) {
- throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
- }
- // If we got that far then getters and setters can be defined !!
- if (hasGetter) {
- defineGetter(object, property, descriptor.get);
- }
- if (hasSetter) {
- defineSetter(object, property, descriptor.set);
- }
- }
- return object;
- };
- }
-
- // ES5 15.2.3.7
- // http://es5.github.com/#x15.2.3.7
- if (!Object.defineProperties || definePropertiesFallback) {
- Object.defineProperties = function defineProperties(object, properties) {
- // make a valiant attempt to use the real defineProperties
- if (definePropertiesFallback) {
- try {
- return definePropertiesFallback.call(Object, object, properties);
- } catch (exception) {
- // try the shim if the real one doesn't work
- }
- }
-
- Object.keys(properties).forEach(function (property) {
- if (property !== '__proto__') {
- Object.defineProperty(object, property, properties[property]);
- }
- });
- return object;
- };
- }
-
- // ES5 15.2.3.8
- // http://es5.github.com/#x15.2.3.8
- if (!Object.seal) {
- Object.seal = function seal(object) {
- if (Object(object) !== object) {
- throw new TypeError('Object.seal can only be called on Objects.');
- }
- // this is misleading and breaks feature-detection, but
- // allows "securable" code to "gracefully" degrade to working
- // but insecure code.
- return object;
- };
- }
-
- // ES5 15.2.3.9
- // http://es5.github.com/#x15.2.3.9
- if (!Object.freeze) {
- Object.freeze = function freeze(object) {
- if (Object(object) !== object) {
- throw new TypeError('Object.freeze can only be called on Objects.');
- }
- // this is misleading and breaks feature-detection, but
- // allows "securable" code to "gracefully" degrade to working
- // but insecure code.
- return object;
- };
- }
-
- // detect a Rhino bug and patch it
- try {
- Object.freeze(function () {});
- } catch (exception) {
- Object.freeze = (function (freezeObject) {
- return function freeze(object) {
- if (typeof object === 'function') {
- return object;
- } else {
- return freezeObject(object);
- }
- };
- }(Object.freeze));
- }
-
- // ES5 15.2.3.10
- // http://es5.github.com/#x15.2.3.10
- if (!Object.preventExtensions) {
- Object.preventExtensions = function preventExtensions(object) {
- if (Object(object) !== object) {
- throw new TypeError('Object.preventExtensions can only be called on Objects.');
- }
- // this is misleading and breaks feature-detection, but
- // allows "securable" code to "gracefully" degrade to working
- // but insecure code.
- return object;
- };
- }
-
- // ES5 15.2.3.11
- // http://es5.github.com/#x15.2.3.11
- if (!Object.isSealed) {
- Object.isSealed = function isSealed(object) {
- if (Object(object) !== object) {
- throw new TypeError('Object.isSealed can only be called on Objects.');
- }
- return false;
- };
- }
-
- // ES5 15.2.3.12
- // http://es5.github.com/#x15.2.3.12
- if (!Object.isFrozen) {
- Object.isFrozen = function isFrozen(object) {
- if (Object(object) !== object) {
- throw new TypeError('Object.isFrozen can only be called on Objects.');
- }
- return false;
- };
- }
-
- // ES5 15.2.3.13
- // http://es5.github.com/#x15.2.3.13
- if (!Object.isExtensible) {
- Object.isExtensible = function isExtensible(object) {
- // 1. If Type(O) is not Object throw a TypeError exception.
- if (Object(object) !== object) {
- throw new TypeError('Object.isExtensible can only be called on Objects.');
- }
- // 2. Return the Boolean value of the [[Extensible]] internal property of O.
- var name = '';
- while (owns(object, name)) {
- name += '?';
- }
- object[name] = true;
- var returnValue = owns(object, name);
- delete object[name];
- return returnValue;
- };
- }
-
-}));
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.map b/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.map
deleted file mode 100644
index cce47c11..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["es5-sham.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","call","Function","prototypeOfObject","Object","prototype","owns","bind","hasOwnProperty","isEnumerable","propertyIsEnumerable","toStr","toString","defineGetter","defineSetter","lookupGetter","lookupSetter","supportsAccessors","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","isPrimitive","o","getPrototypeOf","object","proto","__proto__","constructor","doesGetOwnPropertyDescriptorWork","sentinel","getOwnPropertyDescriptor","value","exception","defineProperty","getOwnPropertyDescriptorWorksOnObject","getOwnPropertyDescriptorWorksOnDom","document","createElement","getOwnPropertyDescriptorFallback","ERR_NON_OBJECT","property","TypeError","descriptor","enumerable","configurable","notPrototypeOfObject","getter","setter","get","set","writable","getOwnPropertyNames","keys","create","createEmpty","supportsProto","shouldUseActiveX","domain","ActiveXObject","getEmptyViaActiveX","empty","xDoc","script","write","close","parentWindow","getEmptyViaIFrame","iframe","parent","body","documentElement","style","display","appendChild","src","contentWindow","removeChild","isPrototypeOf","toLocaleString","valueOf","Empty","properties","Type","defineProperties","doesDefinePropertyWork","definePropertyWorksOnObject","definePropertyWorksOnDom","definePropertyFallback","definePropertiesFallback","ERR_NON_OBJECT_DESCRIPTOR","ERR_NON_OBJECT_TARGET","ERR_ACCESSORS_NOT_SUPPORTED","hasGetter","hasSetter","forEach","seal","freeze","freezeObject","preventExtensions","isSealed","isFrozen","isExtensible","name","returnValue"],"mappings":";;;;;CAaC,SAAUA,EAAMC,GACb,YAGA,UAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE5CD,OAAOD,OACJ,UAAWG,WAAY,SAAU,CAIpCC,OAAOD,QAAUH,QACd,CAEHD,EAAKM,cAAgBL,OAE3BM,KAAM,WAEJ,GAAIC,GAAOC,SAASD,IACpB,IAAIE,GAAoBC,OAAOC,SAC/B,IAAIC,GAAOL,EAAKM,KAAKJ,EAAkBK,eACvC,IAAIC,GAAeR,EAAKM,KAAKJ,EAAkBO,qBAC/C,IAAIC,GAAQV,EAAKM,KAAKJ,EAAkBS,SAGxC,IAAIC,EACJ,IAAIC,EACJ,IAAIC,EACJ,IAAIC,EACJ,IAAIC,GAAoBX,EAAKH,EAAmB,mBAChD,IAAIc,EAAmB,CAEnBJ,EAAeZ,EAAKM,KAAKJ,EAAkBe,iBAC3CJ,GAAeb,EAAKM,KAAKJ,EAAkBgB,iBAC3CJ,GAAed,EAAKM,KAAKJ,EAAkBiB,iBAC3CJ,GAAef,EAAKM,KAAKJ,EAAkBkB,kBAI/C,GAAIC,GAAc,QAASA,aAAYC,GACnC,MAAOA,IAAK,YAAgBA,KAAM,gBAAmBA,KAAM,WAK/D,KAAKnB,OAAOoB,eAAgB,CAQxBpB,OAAOoB,eAAiB,QAASA,gBAAeC,GAE5C,GAAIC,GAAQD,EAAOE,SAEnB,IAAID,GAASA,IAAU,KAAM,CACzB,MAAOA,OACJ,IAAIf,EAAMc,EAAOG,eAAiB,oBAAqB,CAC1D,MAAOH,GAAOG,YAAYvB,cACvB,IAAIoB,YAAkBrB,QAAQ,CACjC,MAAOD,OACJ,CAKH,MAAO,QAQnB,GAAI0B,GAAmC,QAASA,kCAAiCJ,GAC7E,IACIA,EAAOK,SAAW,CAClB,OAAO1B,QAAO2B,yBAAyBN,EAAQ,YAAYO,QAAU,EACvE,MAAOC,GACL,MAAO,QAKf,IAAI7B,OAAO8B,eAAgB,CACvB,GAAIC,GAAwCN,KAC5C,IAAIO,SAA4CC,YAAa,aAC7DR,EAAiCQ,SAASC,cAAc,OACxD,KAAKF,IAAuCD,EAAuC,CAC/E,GAAII,GAAmCnC,OAAO2B,0BAItD,IAAK3B,OAAO2B,0BAA4BQ,EAAkC,CACtE,GAAIC,GAAiB,0DAGrBpC,QAAO2B,yBAA2B,QAASA,0BAAyBN,EAAQgB,GACxE,GAAInB,EAAYG,GAAS,CACrB,KAAM,IAAIiB,WAAUF,EAAiBf,GAKzC,GAAIc,EAAkC,CAClC,IACI,MAAOA,GAAiCtC,KAAKG,OAAQqB,EAAQgB,GAC/D,MAAOR,KAKb,GAAIU,EAGJ,KAAKrC,EAAKmB,EAAQgB,GAAW,CACzB,MAAOE,GAKXA,GACIC,WAAYnC,EAAagB,EAAQgB,GACjCI,aAAc,KAKlB,IAAI5B,EAAmB,CAMnB,GAAIZ,GAAYoB,EAAOE,SACvB,IAAImB,GAAuBrB,IAAWtB,CAItC,IAAI2C,EAAsB,CACtBrB,EAAOE,UAAYxB,EAGvB,GAAI4C,GAAShC,EAAaU,EAAQgB,EAClC,IAAIO,GAAShC,EAAaS,EAAQgB,EAElC,IAAIK,EAAsB,CAEtBrB,EAAOE,UAAYtB,EAGvB,GAAI0C,GAAUC,EAAQ,CAClB,GAAID,EAAQ,CACRJ,EAAWM,IAAMF,EAErB,GAAIC,EAAQ,CACRL,EAAWO,IAAMF,EAIrB,MAAOL,IAMfA,EAAWX,MAAQP,EAAOgB,EAC1BE,GAAWQ,SAAW,IACtB,OAAOR,IAOf,IAAKvC,OAAOgD,oBAAqB,CAC7BhD,OAAOgD,oBAAsB,QAASA,qBAAoB3B,GACtD,MAAOrB,QAAOiD,KAAK5B,IAM3B,IAAKrB,OAAOkD,OAAQ,CAGhB,GAAIC,EACJ,IAAIC,MAAoB7B,UAAW,eAAkBvB,QAUrD,IAAIqD,GAAmB,QAASA,oBAE5B,IAAKpB,SAASqB,OAAQ,CAClB,MAAO,OAGX,IACI,QAAS,GAAIC,eAAc,YAC7B,MAAO1B,GACL,MAAO,QAOf,IAAI2B,GAAqB,QAASA,sBAC9B,GAAIC,EACJ,IAAIC,EAEJA,GAAO,GAAIH,eAAc,WAEzB,IAAII,GAAS,QACbD,GAAKE,MAAM,IAAMD,EAAS,MAAQA,EAAS,IAC3CD,GAAKG,OAELJ,GAAQC,EAAKI,aAAa9D,OAAOC,SACjCyD,GAAO,IAEP,OAAOD,GAMX,IAAIM,GAAoB,QAASA,qBAC7B,GAAIC,GAAS/B,SAASC,cAAc,SACpC,IAAI+B,GAAShC,SAASiC,MAAQjC,SAASkC,eACvC,IAAIV,EAEJO,GAAOI,MAAMC,QAAU,MACvBJ,GAAOK,YAAYN,EAEnBA,GAAOO,IAAM,aAGbd,GAAQO,EAAOQ,cAAcxE,OAAOC,SACpCgE,GAAOQ,YAAYT,EACnBA,GAAS,IAET,OAAOP,GAIX,IAAIL,SAAwBnB,YAAa,YAAa,CAClDkB,EAAc,WACV,OAAS5B,UAAW,WAErB,CAMH4B,EAAc,WAGV,GAAIM,GAAQJ,IAAqBG,IAAuBO,UAEjDN,GAAMjC,kBACNiC,GAAMrD,qBACNqD,GAAMnD,2BACNmD,GAAMiB,oBACNjB,GAAMkB,qBACNlB,GAAMjD,eACNiD,GAAMmB,OAEb,IAAIC,GAAQ,QAASA,UACrBA,GAAM5E,UAAYwD,CAElBN,GAAc,WACV,MAAO,IAAI0B,GAEf,OAAO,IAAIA,IAInB7E,OAAOkD,OAAS,QAASA,QAAOjD,EAAW6E,GAEvC,GAAIzD,EACJ,IAAI0D,GAAO,QAASA,SAEpB,IAAI9E,IAAc,KAAM,CACpBoB,EAAS8B,QACN,CACH,GAAIlD,IAAc,MAAQiB,EAAYjB,GAAY,CAM9C,KAAM,IAAIqC,WAAU,kDAExByC,EAAK9E,UAAYA,CACjBoB,GAAS,GAAI0D,EAMb1D,GAAOE,UAAYtB,EAIvB,GAAI6E,QAAoB,GAAG,CACvB9E,OAAOgF,iBAAiB3D,EAAQyD,GAGpC,MAAOzD,IAgBf,GAAI4D,GAAyB,QAASA,wBAAuB5D,GACzD,IACIrB,OAAO8B,eAAeT,EAAQ,cAC9B,OAAO,YAAcA,GACvB,MAAOQ,GACL,MAAO,QAMf,IAAI7B,OAAO8B,eAAgB,CACvB,GAAIoD,GAA8BD,KAClC,IAAIE,SAAkClD,YAAa,aAC/CgD,EAAuBhD,SAASC,cAAc,OAClD,KAAKgD,IAAgCC,EAA0B,CAC3D,GAAIC,GAAyBpF,OAAO8B,eAChCuD,EAA2BrF,OAAOgF,kBAI9C,IAAKhF,OAAO8B,gBAAkBsD,EAAwB,CAClD,GAAIE,GAA4B,0CAChC,IAAIC,GAAwB,8CAC5B,IAAIC,GAA8B,gEAElCxF,QAAO8B,eAAiB,QAASA,gBAAeT,EAAQgB,EAAUE,GAC9D,GAAIrB,EAAYG,GAAS,CACrB,KAAM,IAAIiB,WAAUiD,EAAwBlE,GAEhD,GAAIH,EAAYqB,GAAa,CACzB,KAAM,IAAID,WAAUgD,EAA4B/C,GAIpD,GAAI6C,EAAwB,CACxB,IACI,MAAOA,GAAuBvF,KAAKG,OAAQqB,EAAQgB,EAAUE,GAC/D,MAAOV,KAMb,GAAI,SAAWU,GAAY,CAevB,GAAI1B,IAAsBF,EAAaU,EAAQgB,IAAazB,EAAaS,EAAQgB,IAAY,CAMzF,GAAIpC,GAAYoB,EAAOE,SACvBF,GAAOE,UAAYxB,QAGZsB,GAAOgB,EACdhB,GAAOgB,GAAYE,EAAWX,KAE9BP,GAAOE,UAAYtB,MAEhB,CACHoB,EAAOgB,GAAYE,EAAWX,WAE/B,CACH,GAAI6D,GAAY,OAASlD,EACzB,IAAImD,GAAY,OAASnD,EACzB,KAAK1B,IAAsB4E,GAAaC,GAAY,CAChD,KAAM,IAAIpD,WAAUkD,GAGxB,GAAIC,EAAW,CACXhF,EAAaY,EAAQgB,EAAUE,EAAWM,KAE9C,GAAI6C,EAAW,CACXhF,EAAaW,EAAQgB,EAAUE,EAAWO,MAGlD,MAAOzB,IAMf,IAAKrB,OAAOgF,kBAAoBK,EAA0B,CACtDrF,OAAOgF,iBAAmB,QAASA,kBAAiB3D,EAAQyD,GAExD,GAAIO,EAA0B,CAC1B,IACI,MAAOA,GAAyBxF,KAAKG,OAAQqB,EAAQyD,GACvD,MAAOjD,KAKb7B,OAAOiD,KAAK6B,GAAYa,QAAQ,SAAUtD,GACtC,GAAIA,IAAa,YAAa,CAC1BrC,OAAO8B,eAAeT,EAAQgB,EAAUyC,EAAWzC,MAG3D,OAAOhB,IAMf,IAAKrB,OAAO4F,KAAM,CACd5F,OAAO4F,KAAO,QAASA,MAAKvE,GACxB,GAAIrB,OAAOqB,KAAYA,EAAQ,CAC3B,KAAM,IAAIiB,WAAU,8CAKxB,MAAOjB,IAMf,IAAKrB,OAAO6F,OAAQ,CAChB7F,OAAO6F,OAAS,QAASA,QAAOxE,GAC5B,GAAIrB,OAAOqB,KAAYA,EAAQ,CAC3B,KAAM,IAAIiB,WAAU,gDAKxB,MAAOjB,IAKf,IACIrB,OAAO6F,OAAO,cAChB,MAAOhE,GACL7B,OAAO6F,OAAU,SAAUC,GACvB,MAAO,SAASD,QAAOxE,GACnB,SAAWA,KAAW,WAAY,CAC9B,MAAOA,OACJ,CACH,MAAOyE,GAAazE,MAG9BrB,OAAO6F,QAKb,IAAK7F,OAAO+F,kBAAmB,CAC3B/F,OAAO+F,kBAAoB,QAASA,mBAAkB1E,GAClD,GAAIrB,OAAOqB,KAAYA,EAAQ,CAC3B,KAAM,IAAIiB,WAAU,2DAKxB,MAAOjB,IAMf,IAAKrB,OAAOgG,SAAU,CAClBhG,OAAOgG,SAAW,QAASA,UAAS3E,GAChC,GAAIrB,OAAOqB,KAAYA,EAAQ,CAC3B,KAAM,IAAIiB,WAAU,kDAExB,MAAO,QAMf,IAAKtC,OAAOiG,SAAU,CAClBjG,OAAOiG,SAAW,QAASA,UAAS5E,GAChC,GAAIrB,OAAOqB,KAAYA,EAAQ,CAC3B,KAAM,IAAIiB,WAAU,kDAExB,MAAO,QAMf,IAAKtC,OAAOkG,aAAc,CACtBlG,OAAOkG,aAAe,QAASA,cAAa7E,GAExC,GAAIrB,OAAOqB,KAAYA,EAAQ,CAC3B,KAAM,IAAIiB,WAAU,sDAGxB,GAAI6D,GAAO,EACX,OAAOjG,EAAKmB,EAAQ8E,GAAO,CACvBA,GAAQ,IAEZ9E,EAAO8E,GAAQ,IACf,IAAIC,GAAclG,EAAKmB,EAAQ8E,SACxB9E,GAAO8E,EACd,OAAOC"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.min.js b/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.min.js
deleted file mode 100644
index fd13f15b..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/es5-sham.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * https://github.com/es-shims/es5-shim
- * @license es5-shim Copyright 2009-2015 by contributors, MIT License
- * see https://github.com/es-shims/es5-shim/blob/v4.5.9/LICENSE
- */
-(function(e,t){"use strict";if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){var e=Function.call;var t=Object.prototype;var r=e.bind(t.hasOwnProperty);var n=e.bind(t.propertyIsEnumerable);var o=e.bind(t.toString);var i;var c;var f;var a;var l=r(t,"__defineGetter__");if(l){i=e.bind(t.__defineGetter__);c=e.bind(t.__defineSetter__);f=e.bind(t.__lookupGetter__);a=e.bind(t.__lookupSetter__)}var u=function isPrimitive(e){return e==null||typeof e!=="object"&&typeof e!=="function"};if(!Object.getPrototypeOf){Object.getPrototypeOf=function getPrototypeOf(e){var r=e.__proto__;if(r||r===null){return r}else if(o(e.constructor)==="[object Function]"){return e.constructor.prototype}else if(e instanceof Object){return t}else{return null}}}var p=function doesGetOwnPropertyDescriptorWork(e){try{e.sentinel=0;return Object.getOwnPropertyDescriptor(e,"sentinel").value===0}catch(t){return false}};if(Object.defineProperty){var s=p({});var b=typeof document==="undefined"||p(document.createElement("div"));if(!b||!s){var O=Object.getOwnPropertyDescriptor}}if(!Object.getOwnPropertyDescriptor||O){var d="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function getOwnPropertyDescriptor(e,o){if(u(e)){throw new TypeError(d+e)}if(O){try{return O.call(Object,e,o)}catch(i){}}var c;if(!r(e,o)){return c}c={enumerable:n(e,o),configurable:true};if(l){var p=e.__proto__;var s=e!==t;if(s){e.__proto__=t}var b=f(e,o);var y=a(e,o);if(s){e.__proto__=p}if(b||y){if(b){c.get=b}if(y){c.set=y}return c}}c.value=e[o];c.writable=true;return c}}if(!Object.getOwnPropertyNames){Object.getOwnPropertyNames=function getOwnPropertyNames(e){return Object.keys(e)}}if(!Object.create){var y;var j=!({__proto__:null}instanceof Object);var v=function shouldUseActiveX(){if(!document.domain){return false}try{return!!new ActiveXObject("htmlfile")}catch(e){return false}};var _=function getEmptyViaActiveX(){var e;var t;t=new ActiveXObject("htmlfile");var r="script";t.write("<"+r+"></"+r+">");t.close();e=t.parentWindow.Object.prototype;t=null;return e};var w=function getEmptyViaIFrame(){var e=document.createElement("iframe");var t=document.body||document.documentElement;var r;e.style.display="none";t.appendChild(e);e.src="javascript:";r=e.contentWindow.Object.prototype;t.removeChild(e);e=null;return r};if(j||typeof document==="undefined"){y=function(){return{__proto__:null}}}else{y=function(){var e=v()?_():w();delete e.constructor;delete e.hasOwnProperty;delete e.propertyIsEnumerable;delete e.isPrototypeOf;delete e.toLocaleString;delete e.toString;delete e.valueOf;var t=function Empty(){};t.prototype=e;y=function(){return new t};return new t}}Object.create=function create(e,t){var r;var n=function Type(){};if(e===null){r=y()}else{if(e!==null&&u(e)){throw new TypeError("Object prototype may only be an Object or null")}n.prototype=e;r=new n;r.__proto__=e}if(t!==void 0){Object.defineProperties(r,t)}return r}}var m=function doesDefinePropertyWork(e){try{Object.defineProperty(e,"sentinel",{});return"sentinel"in e}catch(t){return false}};if(Object.defineProperty){var P=m({});var E=typeof document==="undefined"||m(document.createElement("div"));if(!P||!E){var h=Object.defineProperty,g=Object.defineProperties}}if(!Object.defineProperty||h){var z="Property description must be an object: ";var T="Object.defineProperty called on non-object: ";var x="getters & setters can not be defined on this javascript engine";Object.defineProperty=function defineProperty(e,r,n){if(u(e)){throw new TypeError(T+e)}if(u(n)){throw new TypeError(z+n)}if(h){try{return h.call(Object,e,r,n)}catch(o){}}if("value"in n){if(l&&(f(e,r)||a(e,r))){var p=e.__proto__;e.__proto__=t;delete e[r];e[r]=n.value;e.__proto__=p}else{e[r]=n.value}}else{var s="get"in n;var b="set"in n;if(!l&&(s||b)){throw new TypeError(x)}if(s){i(e,r,n.get)}if(b){c(e,r,n.set)}}return e}}if(!Object.defineProperties||g){Object.defineProperties=function defineProperties(e,t){if(g){try{return g.call(Object,e,t)}catch(r){}}Object.keys(t).forEach(function(r){if(r!=="__proto__"){Object.defineProperty(e,r,t[r])}});return e}}if(!Object.seal){Object.seal=function seal(e){if(Object(e)!==e){throw new TypeError("Object.seal can only be called on Objects.")}return e}}if(!Object.freeze){Object.freeze=function freeze(e){if(Object(e)!==e){throw new TypeError("Object.freeze can only be called on Objects.")}return e}}try{Object.freeze(function(){})}catch(S){Object.freeze=function(e){return function freeze(t){if(typeof t==="function"){return t}else{return e(t)}}}(Object.freeze)}if(!Object.preventExtensions){Object.preventExtensions=function preventExtensions(e){if(Object(e)!==e){throw new TypeError("Object.preventExtensions can only be called on Objects.")}return e}}if(!Object.isSealed){Object.isSealed=function isSealed(e){if(Object(e)!==e){throw new TypeError("Object.isSealed can only be called on Objects.")}return false}}if(!Object.isFrozen){Object.isFrozen=function isFrozen(e){if(Object(e)!==e){throw new TypeError("Object.isFrozen can only be called on Objects.")}return false}}if(!Object.isExtensible){Object.isExtensible=function isExtensible(e){if(Object(e)!==e){throw new TypeError("Object.isExtensible can only be called on Objects.")}var t="";while(r(e,t)){t+="?"}e[t]=true;var n=r(e,t);delete e[t];return n}}});
-//# sourceMappingURL=es5-sham.map
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.js b/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.js
deleted file mode 100644
index f94b4334..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.js
+++ /dev/null
@@ -1,2065 +0,0 @@
-/*!
- * https://github.com/es-shims/es5-shim
- * @license es5-shim Copyright 2009-2015 by contributors, MIT License
- * see https://github.com/es-shims/es5-shim/blob/master/LICENSE
- */
-
-// vim: ts=4 sts=4 sw=4 expandtab
-
-// Add semicolon to prevent IIFE from being passed as argument to concatenated code.
-;
-
-// UMD (Universal Module Definition)
-// see https://github.com/umdjs/umd/blob/master/templates/returnExports.js
-(function (root, factory) {
- 'use strict';
-
- /* global define, exports, module */
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(factory);
- } else if (typeof exports === 'object') {
- // Node. Does not work with strict CommonJS, but
- // only CommonJS-like enviroments that support module.exports,
- // like Node.
- module.exports = factory();
- } else {
- // Browser globals (root is window)
- root.returnExports = factory();
- }
-}(this, function () {
- /**
- * Brings an environment as close to ECMAScript 5 compliance
- * as is possible with the facilities of erstwhile engines.
- *
- * Annotated ES5: http://es5.github.com/ (specific links below)
- * ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
- * Required reading: http://javascriptweblog.wordpress.com/2011/12/05/extending-javascript-natives/
- */
-
- // Shortcut to an often accessed properties, in order to avoid multiple
- // dereference that costs universally. This also holds a reference to known-good
- // functions.
- var $Array = Array;
- var ArrayPrototype = $Array.prototype;
- var $Object = Object;
- var ObjectPrototype = $Object.prototype;
- var $Function = Function;
- var FunctionPrototype = $Function.prototype;
- var $String = String;
- var StringPrototype = $String.prototype;
- var $Number = Number;
- var NumberPrototype = $Number.prototype;
- var array_slice = ArrayPrototype.slice;
- var array_splice = ArrayPrototype.splice;
- var array_push = ArrayPrototype.push;
- var array_unshift = ArrayPrototype.unshift;
- var array_concat = ArrayPrototype.concat;
- var array_join = ArrayPrototype.join;
- var call = FunctionPrototype.call;
- var apply = FunctionPrototype.apply;
- var max = Math.max;
- var min = Math.min;
-
- // Having a toString local variable name breaks in Opera so use to_string.
- var to_string = ObjectPrototype.toString;
-
- /* global Symbol */
- /* eslint-disable one-var-declaration-per-line, no-redeclare, max-statements-per-line */
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
- var isCallable; /* inlined from https://npmjs.com/is-callable */ var fnToStr = Function.prototype.toString, constructorRegex = /^\s*class /, isES6ClassFn = function isES6ClassFn(value) { try { var fnStr = fnToStr.call(value); var singleStripped = fnStr.replace(/\/\/.*\n/g, ''); var multiStripped = singleStripped.replace(/\/\*[.\s\S]*\*\//g, ''); var spaceStripped = multiStripped.replace(/\n/mg, ' ').replace(/ {2}/g, ' '); return constructorRegex.test(spaceStripped); } catch (e) { return false; /* not a function */ } }, tryFunctionObject = function tryFunctionObject(value) { try { if (isES6ClassFn(value)) { return false; } fnToStr.call(value); return true; } catch (e) { return false; } }, fnClass = '[object Function]', genClass = '[object GeneratorFunction]', isCallable = function isCallable(value) { if (!value) { return false; } if (typeof value !== 'function' && typeof value !== 'object') { return false; } if (hasToStringTag) { return tryFunctionObject(value); } if (isES6ClassFn(value)) { return false; } var strClass = to_string.call(value); return strClass === fnClass || strClass === genClass; };
-
- var isRegex; /* inlined from https://npmjs.com/is-regex */ var regexExec = RegExp.prototype.exec, tryRegexExec = function tryRegexExec(value) { try { regexExec.call(value); return true; } catch (e) { return false; } }, regexClass = '[object RegExp]'; isRegex = function isRegex(value) { if (typeof value !== 'object') { return false; } return hasToStringTag ? tryRegexExec(value) : to_string.call(value) === regexClass; };
- var isString; /* inlined from https://npmjs.com/is-string */ var strValue = String.prototype.valueOf, tryStringObject = function tryStringObject(value) { try { strValue.call(value); return true; } catch (e) { return false; } }, stringClass = '[object String]'; isString = function isString(value) { if (typeof value === 'string') { return true; } if (typeof value !== 'object') { return false; } return hasToStringTag ? tryStringObject(value) : to_string.call(value) === stringClass; };
- /* eslint-enable one-var-declaration-per-line, no-redeclare, max-statements-per-line */
-
- /* inlined from http://npmjs.com/define-properties */
- var supportsDescriptors = $Object.defineProperty && (function () {
- try {
- var obj = {};
- $Object.defineProperty(obj, 'x', { enumerable: false, value: obj });
- for (var _ in obj) { // jscs:ignore disallowUnusedVariables
- return false;
- }
- return obj.x === obj;
- } catch (e) { /* this is ES3 */
- return false;
- }
- }());
- var defineProperties = (function (has) {
- // Define configurable, writable, and non-enumerable props
- // if they don't exist.
- var defineProperty;
- if (supportsDescriptors) {
- defineProperty = function (object, name, method, forceAssign) {
- if (!forceAssign && (name in object)) {
- return;
- }
- $Object.defineProperty(object, name, {
- configurable: true,
- enumerable: false,
- writable: true,
- value: method
- });
- };
- } else {
- defineProperty = function (object, name, method, forceAssign) {
- if (!forceAssign && (name in object)) {
- return;
- }
- object[name] = method;
- };
- }
- return function defineProperties(object, map, forceAssign) {
- for (var name in map) {
- if (has.call(map, name)) {
- defineProperty(object, name, map[name], forceAssign);
- }
- }
- };
- }(ObjectPrototype.hasOwnProperty));
-
- //
- // Util
- // ======
- //
-
- /* replaceable with https://npmjs.com/package/es-abstract /helpers/isPrimitive */
- var isPrimitive = function isPrimitive(input) {
- var type = typeof input;
- return input === null || (type !== 'object' && type !== 'function');
- };
-
- var isActualNaN = $Number.isNaN || function isActualNaN(x) {
- return x !== x;
- };
-
- var ES = {
- // ES5 9.4
- // http://es5.github.com/#x9.4
- // http://jsperf.com/to-integer
- /* replaceable with https://npmjs.com/package/es-abstract ES5.ToInteger */
- ToInteger: function ToInteger(num) {
- var n = +num;
- if (isActualNaN(n)) {
- n = 0;
- } else if (n !== 0 && n !== (1 / 0) && n !== -(1 / 0)) {
- n = (n > 0 || -1) * Math.floor(Math.abs(n));
- }
- return n;
- },
-
- /* replaceable with https://npmjs.com/package/es-abstract ES5.ToPrimitive */
- ToPrimitive: function ToPrimitive(input) {
- var val, valueOf, toStr;
- if (isPrimitive(input)) {
- return input;
- }
- valueOf = input.valueOf;
- if (isCallable(valueOf)) {
- val = valueOf.call(input);
- if (isPrimitive(val)) {
- return val;
- }
- }
- toStr = input.toString;
- if (isCallable(toStr)) {
- val = toStr.call(input);
- if (isPrimitive(val)) {
- return val;
- }
- }
- throw new TypeError();
- },
-
- // ES5 9.9
- // http://es5.github.com/#x9.9
- /* replaceable with https://npmjs.com/package/es-abstract ES5.ToObject */
- ToObject: function (o) {
- if (o == null) { // this matches both null and undefined
- throw new TypeError("can't convert " + o + ' to object');
- }
- return $Object(o);
- },
-
- /* replaceable with https://npmjs.com/package/es-abstract ES5.ToUint32 */
- ToUint32: function ToUint32(x) {
- return x >>> 0;
- }
- };
-
- //
- // Function
- // ========
- //
-
- // ES-5 15.3.4.5
- // http://es5.github.com/#x15.3.4.5
-
- var Empty = function Empty() {};
-
- defineProperties(FunctionPrototype, {
- bind: function bind(that) { // .length is 1
- // 1. Let Target be the this value.
- var target = this;
- // 2. If IsCallable(Target) is false, throw a TypeError exception.
- if (!isCallable(target)) {
- throw new TypeError('Function.prototype.bind called on incompatible ' + target);
- }
- // 3. Let A be a new (possibly empty) internal list of all of the
- // argument values provided after thisArg (arg1, arg2 etc), in order.
- // XXX slicedArgs will stand in for "A" if used
- var args = array_slice.call(arguments, 1); // for normal call
- // 4. Let F be a new native ECMAScript object.
- // 11. Set the [[Prototype]] internal property of F to the standard
- // built-in Function prototype object as specified in 15.3.3.1.
- // 12. Set the [[Call]] internal property of F as described in
- // 15.3.4.5.1.
- // 13. Set the [[Construct]] internal property of F as described in
- // 15.3.4.5.2.
- // 14. Set the [[HasInstance]] internal property of F as described in
- // 15.3.4.5.3.
- var bound;
- var binder = function () {
-
- if (this instanceof bound) {
- // 15.3.4.5.2 [[Construct]]
- // When the [[Construct]] internal method of a function object,
- // F that was created using the bind function is called with a
- // list of arguments ExtraArgs, the following steps are taken:
- // 1. Let target be the value of F's [[TargetFunction]]
- // internal property.
- // 2. If target has no [[Construct]] internal method, a
- // TypeError exception is thrown.
- // 3. Let boundArgs be the value of F's [[BoundArgs]] internal
- // property.
- // 4. Let args be a new list containing the same values as the
- // list boundArgs in the same order followed by the same
- // values as the list ExtraArgs in the same order.
- // 5. Return the result of calling the [[Construct]] internal
- // method of target providing args as the arguments.
-
- var result = apply.call(
- target,
- this,
- array_concat.call(args, array_slice.call(arguments))
- );
- if ($Object(result) === result) {
- return result;
- }
- return this;
-
- } else {
- // 15.3.4.5.1 [[Call]]
- // When the [[Call]] internal method of a function object, F,
- // which was created using the bind function is called with a
- // this value and a list of arguments ExtraArgs, the following
- // steps are taken:
- // 1. Let boundArgs be the value of F's [[BoundArgs]] internal
- // property.
- // 2. Let boundThis be the value of F's [[BoundThis]] internal
- // property.
- // 3. Let target be the value of F's [[TargetFunction]] internal
- // property.
- // 4. Let args be a new list containing the same values as the
- // list boundArgs in the same order followed by the same
- // values as the list ExtraArgs in the same order.
- // 5. Return the result of calling the [[Call]] internal method
- // of target providing boundThis as the this value and
- // providing args as the arguments.
-
- // equiv: target.call(this, ...boundArgs, ...args)
- return apply.call(
- target,
- that,
- array_concat.call(args, array_slice.call(arguments))
- );
-
- }
-
- };
-
- // 15. If the [[Class]] internal property of Target is "Function", then
- // a. Let L be the length property of Target minus the length of A.
- // b. Set the length own property of F to either 0 or L, whichever is
- // larger.
- // 16. Else set the length own property of F to 0.
-
- var boundLength = max(0, target.length - args.length);
-
- // 17. Set the attributes of the length own property of F to the values
- // specified in 15.3.5.1.
- var boundArgs = [];
- for (var i = 0; i < boundLength; i++) {
- array_push.call(boundArgs, '$' + i);
- }
-
- // XXX Build a dynamic function with desired amount of arguments is the only
- // way to set the length property of a function.
- // In environments where Content Security Policies enabled (Chrome extensions,
- // for ex.) all use of eval or Function costructor throws an exception.
- // However in all of these environments Function.prototype.bind exists
- // and so this code will never be executed.
- bound = $Function('binder', 'return function (' + array_join.call(boundArgs, ',') + '){ return binder.apply(this, arguments); }')(binder);
-
- if (target.prototype) {
- Empty.prototype = target.prototype;
- bound.prototype = new Empty();
- // Clean up dangling references.
- Empty.prototype = null;
- }
-
- // TODO
- // 18. Set the [[Extensible]] internal property of F to true.
-
- // TODO
- // 19. Let thrower be the [[ThrowTypeError]] function Object (13.2.3).
- // 20. Call the [[DefineOwnProperty]] internal method of F with
- // arguments "caller", PropertyDescriptor {[[Get]]: thrower, [[Set]]:
- // thrower, [[Enumerable]]: false, [[Configurable]]: false}, and
- // false.
- // 21. Call the [[DefineOwnProperty]] internal method of F with
- // arguments "arguments", PropertyDescriptor {[[Get]]: thrower,
- // [[Set]]: thrower, [[Enumerable]]: false, [[Configurable]]: false},
- // and false.
-
- // TODO
- // NOTE Function objects created using Function.prototype.bind do not
- // have a prototype property or the [[Code]], [[FormalParameters]], and
- // [[Scope]] internal properties.
- // XXX can't delete prototype in pure-js.
-
- // 22. Return F.
- return bound;
- }
- });
-
- // _Please note: Shortcuts are defined after `Function.prototype.bind` as we
- // use it in defining shortcuts.
- var owns = call.bind(ObjectPrototype.hasOwnProperty);
- var toStr = call.bind(ObjectPrototype.toString);
- var arraySlice = call.bind(array_slice);
- var arraySliceApply = apply.bind(array_slice);
- var strSlice = call.bind(StringPrototype.slice);
- var strSplit = call.bind(StringPrototype.split);
- var strIndexOf = call.bind(StringPrototype.indexOf);
- var pushCall = call.bind(array_push);
- var isEnum = call.bind(ObjectPrototype.propertyIsEnumerable);
- var arraySort = call.bind(ArrayPrototype.sort);
-
- //
- // Array
- // =====
- //
-
- var isArray = $Array.isArray || function isArray(obj) {
- return toStr(obj) === '[object Array]';
- };
-
- // ES5 15.4.4.12
- // http://es5.github.com/#x15.4.4.13
- // Return len+argCount.
- // [bugfix, ielt8]
- // IE < 8 bug: [].unshift(0) === undefined but should be "1"
- var hasUnshiftReturnValueBug = [].unshift(0) !== 1;
- defineProperties(ArrayPrototype, {
- unshift: function () {
- array_unshift.apply(this, arguments);
- return this.length;
- }
- }, hasUnshiftReturnValueBug);
-
- // ES5 15.4.3.2
- // http://es5.github.com/#x15.4.3.2
- // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray
- defineProperties($Array, { isArray: isArray });
-
- // The IsCallable() check in the Array functions
- // has been replaced with a strict check on the
- // internal class of the object to trap cases where
- // the provided function was actually a regular
- // expression literal, which in V8 and
- // JavaScriptCore is a typeof "function". Only in
- // V8 are regular expression literals permitted as
- // reduce parameters, so it is desirable in the
- // general case for the shim to match the more
- // strict and common behavior of rejecting regular
- // expressions.
-
- // ES5 15.4.4.18
- // http://es5.github.com/#x15.4.4.18
- // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/array/forEach
-
- // Check failure of by-index access of string characters (IE < 9)
- // and failure of `0 in boxedString` (Rhino)
- var boxedString = $Object('a');
- var splitString = boxedString[0] !== 'a' || !(0 in boxedString);
-
- var properlyBoxesContext = function properlyBoxed(method) {
- // Check node 0.6.21 bug where third parameter is not boxed
- var properlyBoxesNonStrict = true;
- var properlyBoxesStrict = true;
- var threwException = false;
- if (method) {
- try {
- method.call('foo', function (_, __, context) {
- if (typeof context !== 'object') {
- properlyBoxesNonStrict = false;
- }
- });
-
- method.call([1], function () {
- 'use strict';
-
- properlyBoxesStrict = typeof this === 'string';
- }, 'x');
- } catch (e) {
- threwException = true;
- }
- }
- return !!method && !threwException && properlyBoxesNonStrict && properlyBoxesStrict;
- };
-
- defineProperties(ArrayPrototype, {
- forEach: function forEach(callbackfn/*, thisArg*/) {
- var object = ES.ToObject(this);
- var self = splitString && isString(this) ? strSplit(this, '') : object;
- var i = -1;
- var length = ES.ToUint32(self.length);
- var T;
- if (arguments.length > 1) {
- T = arguments[1];
- }
-
- // If no callback function or if callback is not a callable function
- if (!isCallable(callbackfn)) {
- throw new TypeError('Array.prototype.forEach callback must be a function');
- }
-
- while (++i < length) {
- if (i in self) {
- // Invoke the callback function with call, passing arguments:
- // context, property value, property key, thisArg object
- if (typeof T === 'undefined') {
- callbackfn(self[i], i, object);
- } else {
- callbackfn.call(T, self[i], i, object);
- }
- }
- }
- }
- }, !properlyBoxesContext(ArrayPrototype.forEach));
-
- // ES5 15.4.4.19
- // http://es5.github.com/#x15.4.4.19
- // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map
- defineProperties(ArrayPrototype, {
- map: function map(callbackfn/*, thisArg*/) {
- var object = ES.ToObject(this);
- var self = splitString && isString(this) ? strSplit(this, '') : object;
- var length = ES.ToUint32(self.length);
- var result = $Array(length);
- var T;
- if (arguments.length > 1) {
- T = arguments[1];
- }
-
- // If no callback function or if callback is not a callable function
- if (!isCallable(callbackfn)) {
- throw new TypeError('Array.prototype.map callback must be a function');
- }
-
- for (var i = 0; i < length; i++) {
- if (i in self) {
- if (typeof T === 'undefined') {
- result[i] = callbackfn(self[i], i, object);
- } else {
- result[i] = callbackfn.call(T, self[i], i, object);
- }
- }
- }
- return result;
- }
- }, !properlyBoxesContext(ArrayPrototype.map));
-
- // ES5 15.4.4.20
- // http://es5.github.com/#x15.4.4.20
- // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter
- defineProperties(ArrayPrototype, {
- filter: function filter(callbackfn/*, thisArg*/) {
- var object = ES.ToObject(this);
- var self = splitString && isString(this) ? strSplit(this, '') : object;
- var length = ES.ToUint32(self.length);
- var result = [];
- var value;
- var T;
- if (arguments.length > 1) {
- T = arguments[1];
- }
-
- // If no callback function or if callback is not a callable function
- if (!isCallable(callbackfn)) {
- throw new TypeError('Array.prototype.filter callback must be a function');
- }
-
- for (var i = 0; i < length; i++) {
- if (i in self) {
- value = self[i];
- if (typeof T === 'undefined' ? callbackfn(value, i, object) : callbackfn.call(T, value, i, object)) {
- pushCall(result, value);
- }
- }
- }
- return result;
- }
- }, !properlyBoxesContext(ArrayPrototype.filter));
-
- // ES5 15.4.4.16
- // http://es5.github.com/#x15.4.4.16
- // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every
- defineProperties(ArrayPrototype, {
- every: function every(callbackfn/*, thisArg*/) {
- var object = ES.ToObject(this);
- var self = splitString && isString(this) ? strSplit(this, '') : object;
- var length = ES.ToUint32(self.length);
- var T;
- if (arguments.length > 1) {
- T = arguments[1];
- }
-
- // If no callback function or if callback is not a callable function
- if (!isCallable(callbackfn)) {
- throw new TypeError('Array.prototype.every callback must be a function');
- }
-
- for (var i = 0; i < length; i++) {
- if (i in self && !(typeof T === 'undefined' ? callbackfn(self[i], i, object) : callbackfn.call(T, self[i], i, object))) {
- return false;
- }
- }
- return true;
- }
- }, !properlyBoxesContext(ArrayPrototype.every));
-
- // ES5 15.4.4.17
- // http://es5.github.com/#x15.4.4.17
- // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some
- defineProperties(ArrayPrototype, {
- some: function some(callbackfn/*, thisArg */) {
- var object = ES.ToObject(this);
- var self = splitString && isString(this) ? strSplit(this, '') : object;
- var length = ES.ToUint32(self.length);
- var T;
- if (arguments.length > 1) {
- T = arguments[1];
- }
-
- // If no callback function or if callback is not a callable function
- if (!isCallable(callbackfn)) {
- throw new TypeError('Array.prototype.some callback must be a function');
- }
-
- for (var i = 0; i < length; i++) {
- if (i in self && (typeof T === 'undefined' ? callbackfn(self[i], i, object) : callbackfn.call(T, self[i], i, object))) {
- return true;
- }
- }
- return false;
- }
- }, !properlyBoxesContext(ArrayPrototype.some));
-
- // ES5 15.4.4.21
- // http://es5.github.com/#x15.4.4.21
- // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduce
- var reduceCoercesToObject = false;
- if (ArrayPrototype.reduce) {
- reduceCoercesToObject = typeof ArrayPrototype.reduce.call('es5', function (_, __, ___, list) {
- return list;
- }) === 'object';
- }
- defineProperties(ArrayPrototype, {
- reduce: function reduce(callbackfn/*, initialValue*/) {
- var object = ES.ToObject(this);
- var self = splitString && isString(this) ? strSplit(this, '') : object;
- var length = ES.ToUint32(self.length);
-
- // If no callback function or if callback is not a callable function
- if (!isCallable(callbackfn)) {
- throw new TypeError('Array.prototype.reduce callback must be a function');
- }
-
- // no value to return if no initial value and an empty array
- if (length === 0 && arguments.length === 1) {
- throw new TypeError('reduce of empty array with no initial value');
- }
-
- var i = 0;
- var result;
- if (arguments.length >= 2) {
- result = arguments[1];
- } else {
- do {
- if (i in self) {
- result = self[i++];
- break;
- }
-
- // if array contains no values, no initial value to return
- if (++i >= length) {
- throw new TypeError('reduce of empty array with no initial value');
- }
- } while (true);
- }
-
- for (; i < length; i++) {
- if (i in self) {
- result = callbackfn(result, self[i], i, object);
- }
- }
-
- return result;
- }
- }, !reduceCoercesToObject);
-
- // ES5 15.4.4.22
- // http://es5.github.com/#x15.4.4.22
- // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduceRight
- var reduceRightCoercesToObject = false;
- if (ArrayPrototype.reduceRight) {
- reduceRightCoercesToObject = typeof ArrayPrototype.reduceRight.call('es5', function (_, __, ___, list) {
- return list;
- }) === 'object';
- }
- defineProperties(ArrayPrototype, {
- reduceRight: function reduceRight(callbackfn/*, initial*/) {
- var object = ES.ToObject(this);
- var self = splitString && isString(this) ? strSplit(this, '') : object;
- var length = ES.ToUint32(self.length);
-
- // If no callback function or if callback is not a callable function
- if (!isCallable(callbackfn)) {
- throw new TypeError('Array.prototype.reduceRight callback must be a function');
- }
-
- // no value to return if no initial value, empty array
- if (length === 0 && arguments.length === 1) {
- throw new TypeError('reduceRight of empty array with no initial value');
- }
-
- var result;
- var i = length - 1;
- if (arguments.length >= 2) {
- result = arguments[1];
- } else {
- do {
- if (i in self) {
- result = self[i--];
- break;
- }
-
- // if array contains no values, no initial value to return
- if (--i < 0) {
- throw new TypeError('reduceRight of empty array with no initial value');
- }
- } while (true);
- }
-
- if (i < 0) {
- return result;
- }
-
- do {
- if (i in self) {
- result = callbackfn(result, self[i], i, object);
- }
- } while (i--);
-
- return result;
- }
- }, !reduceRightCoercesToObject);
-
- // ES5 15.4.4.14
- // http://es5.github.com/#x15.4.4.14
- // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf
- var hasFirefox2IndexOfBug = ArrayPrototype.indexOf && [0, 1].indexOf(1, 2) !== -1;
- defineProperties(ArrayPrototype, {
- indexOf: function indexOf(searchElement/*, fromIndex */) {
- var self = splitString && isString(this) ? strSplit(this, '') : ES.ToObject(this);
- var length = ES.ToUint32(self.length);
-
- if (length === 0) {
- return -1;
- }
-
- var i = 0;
- if (arguments.length > 1) {
- i = ES.ToInteger(arguments[1]);
- }
-
- // handle negative indices
- i = i >= 0 ? i : max(0, length + i);
- for (; i < length; i++) {
- if (i in self && self[i] === searchElement) {
- return i;
- }
- }
- return -1;
- }
- }, hasFirefox2IndexOfBug);
-
- // ES5 15.4.4.15
- // http://es5.github.com/#x15.4.4.15
- // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf
- var hasFirefox2LastIndexOfBug = ArrayPrototype.lastIndexOf && [0, 1].lastIndexOf(0, -3) !== -1;
- defineProperties(ArrayPrototype, {
- lastIndexOf: function lastIndexOf(searchElement/*, fromIndex */) {
- var self = splitString && isString(this) ? strSplit(this, '') : ES.ToObject(this);
- var length = ES.ToUint32(self.length);
-
- if (length === 0) {
- return -1;
- }
- var i = length - 1;
- if (arguments.length > 1) {
- i = min(i, ES.ToInteger(arguments[1]));
- }
- // handle negative indices
- i = i >= 0 ? i : length - Math.abs(i);
- for (; i >= 0; i--) {
- if (i in self && searchElement === self[i]) {
- return i;
- }
- }
- return -1;
- }
- }, hasFirefox2LastIndexOfBug);
-
- // ES5 15.4.4.12
- // http://es5.github.com/#x15.4.4.12
- var spliceNoopReturnsEmptyArray = (function () {
- var a = [1, 2];
- var result = a.splice();
- return a.length === 2 && isArray(result) && result.length === 0;
- }());
- defineProperties(ArrayPrototype, {
- // Safari 5.0 bug where .splice() returns undefined
- splice: function splice(start, deleteCount) {
- if (arguments.length === 0) {
- return [];
- } else {
- return array_splice.apply(this, arguments);
- }
- }
- }, !spliceNoopReturnsEmptyArray);
-
- var spliceWorksWithEmptyObject = (function () {
- var obj = {};
- ArrayPrototype.splice.call(obj, 0, 0, 1);
- return obj.length === 1;
- }());
- defineProperties(ArrayPrototype, {
- splice: function splice(start, deleteCount) {
- if (arguments.length === 0) {
- return [];
- }
- var args = arguments;
- this.length = max(ES.ToInteger(this.length), 0);
- if (arguments.length > 0 && typeof deleteCount !== 'number') {
- args = arraySlice(arguments);
- if (args.length < 2) {
- pushCall(args, this.length - start);
- } else {
- args[1] = ES.ToInteger(deleteCount);
- }
- }
- return array_splice.apply(this, args);
- }
- }, !spliceWorksWithEmptyObject);
- var spliceWorksWithLargeSparseArrays = (function () {
- // Per https://github.com/es-shims/es5-shim/issues/295
- // Safari 7/8 breaks with sparse arrays of size 1e5 or greater
- var arr = new $Array(1e5);
- // note: the index MUST be 8 or larger or the test will false pass
- arr[8] = 'x';
- arr.splice(1, 1);
- // note: this test must be defined *after* the indexOf shim
- // per https://github.com/es-shims/es5-shim/issues/313
- return arr.indexOf('x') === 7;
- }());
- var spliceWorksWithSmallSparseArrays = (function () {
- // Per https://github.com/es-shims/es5-shim/issues/295
- // Opera 12.15 breaks on this, no idea why.
- var n = 256;
- var arr = [];
- arr[n] = 'a';
- arr.splice(n + 1, 0, 'b');
- return arr[n] === 'a';
- }());
- defineProperties(ArrayPrototype, {
- splice: function splice(start, deleteCount) {
- var O = ES.ToObject(this);
- var A = [];
- var len = ES.ToUint32(O.length);
- var relativeStart = ES.ToInteger(start);
- var actualStart = relativeStart < 0 ? max((len + relativeStart), 0) : min(relativeStart, len);
- var actualDeleteCount = min(max(ES.ToInteger(deleteCount), 0), len - actualStart);
-
- var k = 0;
- var from;
- while (k < actualDeleteCount) {
- from = $String(actualStart + k);
- if (owns(O, from)) {
- A[k] = O[from];
- }
- k += 1;
- }
-
- var items = arraySlice(arguments, 2);
- var itemCount = items.length;
- var to;
- if (itemCount < actualDeleteCount) {
- k = actualStart;
- var maxK = len - actualDeleteCount;
- while (k < maxK) {
- from = $String(k + actualDeleteCount);
- to = $String(k + itemCount);
- if (owns(O, from)) {
- O[to] = O[from];
- } else {
- delete O[to];
- }
- k += 1;
- }
- k = len;
- var minK = len - actualDeleteCount + itemCount;
- while (k > minK) {
- delete O[k - 1];
- k -= 1;
- }
- } else if (itemCount > actualDeleteCount) {
- k = len - actualDeleteCount;
- while (k > actualStart) {
- from = $String(k + actualDeleteCount - 1);
- to = $String(k + itemCount - 1);
- if (owns(O, from)) {
- O[to] = O[from];
- } else {
- delete O[to];
- }
- k -= 1;
- }
- }
- k = actualStart;
- for (var i = 0; i < items.length; ++i) {
- O[k] = items[i];
- k += 1;
- }
- O.length = len - actualDeleteCount + itemCount;
-
- return A;
- }
- }, !spliceWorksWithLargeSparseArrays || !spliceWorksWithSmallSparseArrays);
-
- var originalJoin = ArrayPrototype.join;
- var hasStringJoinBug;
- try {
- hasStringJoinBug = Array.prototype.join.call('123', ',') !== '1,2,3';
- } catch (e) {
- hasStringJoinBug = true;
- }
- if (hasStringJoinBug) {
- defineProperties(ArrayPrototype, {
- join: function join(separator) {
- var sep = typeof separator === 'undefined' ? ',' : separator;
- return originalJoin.call(isString(this) ? strSplit(this, '') : this, sep);
- }
- }, hasStringJoinBug);
- }
-
- var hasJoinUndefinedBug = [1, 2].join(undefined) !== '1,2';
- if (hasJoinUndefinedBug) {
- defineProperties(ArrayPrototype, {
- join: function join(separator) {
- var sep = typeof separator === 'undefined' ? ',' : separator;
- return originalJoin.call(this, sep);
- }
- }, hasJoinUndefinedBug);
- }
-
- var pushShim = function push(item) {
- var O = ES.ToObject(this);
- var n = ES.ToUint32(O.length);
- var i = 0;
- while (i < arguments.length) {
- O[n + i] = arguments[i];
- i += 1;
- }
- O.length = n + i;
- return n + i;
- };
-
- var pushIsNotGeneric = (function () {
- var obj = {};
- var result = Array.prototype.push.call(obj, undefined);
- return result !== 1 || obj.length !== 1 || typeof obj[0] !== 'undefined' || !owns(obj, 0);
- }());
- defineProperties(ArrayPrototype, {
- push: function push(item) {
- if (isArray(this)) {
- return array_push.apply(this, arguments);
- }
- return pushShim.apply(this, arguments);
- }
- }, pushIsNotGeneric);
-
- // This fixes a very weird bug in Opera 10.6 when pushing `undefined
- var pushUndefinedIsWeird = (function () {
- var arr = [];
- var result = arr.push(undefined);
- return result !== 1 || arr.length !== 1 || typeof arr[0] !== 'undefined' || !owns(arr, 0);
- }());
- defineProperties(ArrayPrototype, { push: pushShim }, pushUndefinedIsWeird);
-
- // ES5 15.2.3.14
- // http://es5.github.io/#x15.4.4.10
- // Fix boxed string bug
- defineProperties(ArrayPrototype, {
- slice: function (start, end) {
- var arr = isString(this) ? strSplit(this, '') : this;
- return arraySliceApply(arr, arguments);
- }
- }, splitString);
-
- var sortIgnoresNonFunctions = (function () {
- try {
- [1, 2].sort(null);
- [1, 2].sort({});
- return true;
- } catch (e) {}
- return false;
- }());
- var sortThrowsOnRegex = (function () {
- // this is a problem in Firefox 4, in which `typeof /a/ === 'function'`
- try {
- [1, 2].sort(/a/);
- return false;
- } catch (e) {}
- return true;
- }());
- var sortIgnoresUndefined = (function () {
- // applies in IE 8, for one.
- try {
- [1, 2].sort(undefined);
- return true;
- } catch (e) {}
- return false;
- }());
- defineProperties(ArrayPrototype, {
- sort: function sort(compareFn) {
- if (typeof compareFn === 'undefined') {
- return arraySort(this);
- }
- if (!isCallable(compareFn)) {
- throw new TypeError('Array.prototype.sort callback must be a function');
- }
- return arraySort(this, compareFn);
- }
- }, sortIgnoresNonFunctions || !sortIgnoresUndefined || !sortThrowsOnRegex);
-
- //
- // Object
- // ======
- //
-
- // ES5 15.2.3.14
- // http://es5.github.com/#x15.2.3.14
-
- // http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
- var hasDontEnumBug = !isEnum({ 'toString': null }, 'toString');
- var hasProtoEnumBug = isEnum(function () {}, 'prototype');
- var hasStringEnumBug = !owns('x', '0');
- var equalsConstructorPrototype = function (o) {
- var ctor = o.constructor;
- return ctor && ctor.prototype === o;
- };
- var blacklistedKeys = {
- $window: true,
- $console: true,
- $parent: true,
- $self: true,
- $frame: true,
- $frames: true,
- $frameElement: true,
- $webkitIndexedDB: true,
- $webkitStorageInfo: true,
- $external: true
- };
- var hasAutomationEqualityBug = (function () {
- /* globals window */
- if (typeof window === 'undefined') {
- return false;
- }
- for (var k in window) {
- try {
- if (!blacklistedKeys['$' + k] && owns(window, k) && window[k] !== null && typeof window[k] === 'object') {
- equalsConstructorPrototype(window[k]);
- }
- } catch (e) {
- return true;
- }
- }
- return false;
- }());
- var equalsConstructorPrototypeIfNotBuggy = function (object) {
- if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
- return equalsConstructorPrototype(object);
- }
- try {
- return equalsConstructorPrototype(object);
- } catch (e) {
- return false;
- }
- };
- var dontEnums = [
- 'toString',
- 'toLocaleString',
- 'valueOf',
- 'hasOwnProperty',
- 'isPrototypeOf',
- 'propertyIsEnumerable',
- 'constructor'
- ];
- var dontEnumsLength = dontEnums.length;
-
- // taken directly from https://github.com/ljharb/is-arguments/blob/master/index.js
- // can be replaced with require('is-arguments') if we ever use a build process instead
- var isStandardArguments = function isArguments(value) {
- return toStr(value) === '[object Arguments]';
- };
- var isLegacyArguments = function isArguments(value) {
- return value !== null &&
- typeof value === 'object' &&
- typeof value.length === 'number' &&
- value.length >= 0 &&
- !isArray(value) &&
- isCallable(value.callee);
- };
- var isArguments = isStandardArguments(arguments) ? isStandardArguments : isLegacyArguments;
-
- defineProperties($Object, {
- keys: function keys(object) {
- var isFn = isCallable(object);
- var isArgs = isArguments(object);
- var isObject = object !== null && typeof object === 'object';
- var isStr = isObject && isString(object);
-
- if (!isObject && !isFn && !isArgs) {
- throw new TypeError('Object.keys called on a non-object');
- }
-
- var theKeys = [];
- var skipProto = hasProtoEnumBug && isFn;
- if ((isStr && hasStringEnumBug) || isArgs) {
- for (var i = 0; i < object.length; ++i) {
- pushCall(theKeys, $String(i));
- }
- }
-
- if (!isArgs) {
- for (var name in object) {
- if (!(skipProto && name === 'prototype') && owns(object, name)) {
- pushCall(theKeys, $String(name));
- }
- }
- }
-
- if (hasDontEnumBug) {
- var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
- for (var j = 0; j < dontEnumsLength; j++) {
- var dontEnum = dontEnums[j];
- if (!(skipConstructor && dontEnum === 'constructor') && owns(object, dontEnum)) {
- pushCall(theKeys, dontEnum);
- }
- }
- }
- return theKeys;
- }
- });
-
- var keysWorksWithArguments = $Object.keys && (function () {
- // Safari 5.0 bug
- return $Object.keys(arguments).length === 2;
- }(1, 2));
- var keysHasArgumentsLengthBug = $Object.keys && (function () {
- var argKeys = $Object.keys(arguments);
- return arguments.length !== 1 || argKeys.length !== 1 || argKeys[0] !== 1;
- }(1));
- var originalKeys = $Object.keys;
- defineProperties($Object, {
- keys: function keys(object) {
- if (isArguments(object)) {
- return originalKeys(arraySlice(object));
- } else {
- return originalKeys(object);
- }
- }
- }, !keysWorksWithArguments || keysHasArgumentsLengthBug);
-
- //
- // Date
- // ====
- //
-
- var hasNegativeMonthYearBug = new Date(-3509827329600292).getUTCMonth() !== 0;
- var aNegativeTestDate = new Date(-1509842289600292);
- var aPositiveTestDate = new Date(1449662400000);
- var hasToUTCStringFormatBug = aNegativeTestDate.toUTCString() !== 'Mon, 01 Jan -45875 11:59:59 GMT';
- var hasToDateStringFormatBug;
- var hasToStringFormatBug;
- var timeZoneOffset = aNegativeTestDate.getTimezoneOffset();
- if (timeZoneOffset < -720) {
- hasToDateStringFormatBug = aNegativeTestDate.toDateString() !== 'Tue Jan 02 -45875';
- hasToStringFormatBug = !(/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/).test(aPositiveTestDate.toString());
- } else {
- hasToDateStringFormatBug = aNegativeTestDate.toDateString() !== 'Mon Jan 01 -45875';
- hasToStringFormatBug = !(/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/).test(aPositiveTestDate.toString());
- }
-
- var originalGetFullYear = call.bind(Date.prototype.getFullYear);
- var originalGetMonth = call.bind(Date.prototype.getMonth);
- var originalGetDate = call.bind(Date.prototype.getDate);
- var originalGetUTCFullYear = call.bind(Date.prototype.getUTCFullYear);
- var originalGetUTCMonth = call.bind(Date.prototype.getUTCMonth);
- var originalGetUTCDate = call.bind(Date.prototype.getUTCDate);
- var originalGetUTCDay = call.bind(Date.prototype.getUTCDay);
- var originalGetUTCHours = call.bind(Date.prototype.getUTCHours);
- var originalGetUTCMinutes = call.bind(Date.prototype.getUTCMinutes);
- var originalGetUTCSeconds = call.bind(Date.prototype.getUTCSeconds);
- var originalGetUTCMilliseconds = call.bind(Date.prototype.getUTCMilliseconds);
- var dayName = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
- var monthName = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
- var daysInMonth = function daysInMonth(month, year) {
- return originalGetDate(new Date(year, month, 0));
- };
-
- defineProperties(Date.prototype, {
- getFullYear: function getFullYear() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var year = originalGetFullYear(this);
- if (year < 0 && originalGetMonth(this) > 11) {
- return year + 1;
- }
- return year;
- },
- getMonth: function getMonth() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var year = originalGetFullYear(this);
- var month = originalGetMonth(this);
- if (year < 0 && month > 11) {
- return 0;
- }
- return month;
- },
- getDate: function getDate() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var year = originalGetFullYear(this);
- var month = originalGetMonth(this);
- var date = originalGetDate(this);
- if (year < 0 && month > 11) {
- if (month === 12) {
- return date;
- }
- var days = daysInMonth(0, year + 1);
- return (days - date) + 1;
- }
- return date;
- },
- getUTCFullYear: function getUTCFullYear() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var year = originalGetUTCFullYear(this);
- if (year < 0 && originalGetUTCMonth(this) > 11) {
- return year + 1;
- }
- return year;
- },
- getUTCMonth: function getUTCMonth() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var year = originalGetUTCFullYear(this);
- var month = originalGetUTCMonth(this);
- if (year < 0 && month > 11) {
- return 0;
- }
- return month;
- },
- getUTCDate: function getUTCDate() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var year = originalGetUTCFullYear(this);
- var month = originalGetUTCMonth(this);
- var date = originalGetUTCDate(this);
- if (year < 0 && month > 11) {
- if (month === 12) {
- return date;
- }
- var days = daysInMonth(0, year + 1);
- return (days - date) + 1;
- }
- return date;
- }
- }, hasNegativeMonthYearBug);
-
- defineProperties(Date.prototype, {
- toUTCString: function toUTCString() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var day = originalGetUTCDay(this);
- var date = originalGetUTCDate(this);
- var month = originalGetUTCMonth(this);
- var year = originalGetUTCFullYear(this);
- var hour = originalGetUTCHours(this);
- var minute = originalGetUTCMinutes(this);
- var second = originalGetUTCSeconds(this);
- return dayName[day] + ', ' +
- (date < 10 ? '0' + date : date) + ' ' +
- monthName[month] + ' ' +
- year + ' ' +
- (hour < 10 ? '0' + hour : hour) + ':' +
- (minute < 10 ? '0' + minute : minute) + ':' +
- (second < 10 ? '0' + second : second) + ' GMT';
- }
- }, hasNegativeMonthYearBug || hasToUTCStringFormatBug);
-
- // Opera 12 has `,`
- defineProperties(Date.prototype, {
- toDateString: function toDateString() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var day = this.getDay();
- var date = this.getDate();
- var month = this.getMonth();
- var year = this.getFullYear();
- return dayName[day] + ' ' +
- monthName[month] + ' ' +
- (date < 10 ? '0' + date : date) + ' ' +
- year;
- }
- }, hasNegativeMonthYearBug || hasToDateStringFormatBug);
-
- // can't use defineProperties here because of toString enumeration issue in IE <= 8
- if (hasNegativeMonthYearBug || hasToStringFormatBug) {
- Date.prototype.toString = function toString() {
- if (!this || !(this instanceof Date)) {
- throw new TypeError('this is not a Date object.');
- }
- var day = this.getDay();
- var date = this.getDate();
- var month = this.getMonth();
- var year = this.getFullYear();
- var hour = this.getHours();
- var minute = this.getMinutes();
- var second = this.getSeconds();
- var timezoneOffset = this.getTimezoneOffset();
- var hoursOffset = Math.floor(Math.abs(timezoneOffset) / 60);
- var minutesOffset = Math.floor(Math.abs(timezoneOffset) % 60);
- return dayName[day] + ' ' +
- monthName[month] + ' ' +
- (date < 10 ? '0' + date : date) + ' ' +
- year + ' ' +
- (hour < 10 ? '0' + hour : hour) + ':' +
- (minute < 10 ? '0' + minute : minute) + ':' +
- (second < 10 ? '0' + second : second) + ' GMT' +
- (timezoneOffset > 0 ? '-' : '+') +
- (hoursOffset < 10 ? '0' + hoursOffset : hoursOffset) +
- (minutesOffset < 10 ? '0' + minutesOffset : minutesOffset);
- };
- if (supportsDescriptors) {
- $Object.defineProperty(Date.prototype, 'toString', {
- configurable: true,
- enumerable: false,
- writable: true
- });
- }
- }
-
- // ES5 15.9.5.43
- // http://es5.github.com/#x15.9.5.43
- // This function returns a String value represent the instance in time
- // represented by this Date object. The format of the String is the Date Time
- // string format defined in 15.9.1.15. All fields are present in the String.
- // The time zone is always UTC, denoted by the suffix Z. If the time value of
- // this object is not a finite Number a RangeError exception is thrown.
- var negativeDate = -62198755200000;
- var negativeYearString = '-000001';
- var hasNegativeDateBug = Date.prototype.toISOString && new Date(negativeDate).toISOString().indexOf(negativeYearString) === -1;
- var hasSafari51DateBug = Date.prototype.toISOString && new Date(-1).toISOString() !== '1969-12-31T23:59:59.999Z';
-
- var getTime = call.bind(Date.prototype.getTime);
-
- defineProperties(Date.prototype, {
- toISOString: function toISOString() {
- if (!isFinite(this) || !isFinite(getTime(this))) {
- // Adope Photoshop requires the second check.
- throw new RangeError('Date.prototype.toISOString called on non-finite value.');
- }
-
- var year = originalGetUTCFullYear(this);
-
- var month = originalGetUTCMonth(this);
- // see https://github.com/es-shims/es5-shim/issues/111
- year += Math.floor(month / 12);
- month = (month % 12 + 12) % 12;
-
- // the date time string format is specified in 15.9.1.15.
- var result = [month + 1, originalGetUTCDate(this), originalGetUTCHours(this), originalGetUTCMinutes(this), originalGetUTCSeconds(this)];
- year = (
- (year < 0 ? '-' : (year > 9999 ? '+' : '')) +
- strSlice('00000' + Math.abs(year), (0 <= year && year <= 9999) ? -4 : -6)
- );
-
- for (var i = 0; i < result.length; ++i) {
- // pad months, days, hours, minutes, and seconds to have two digits.
- result[i] = strSlice('00' + result[i], -2);
- }
- // pad milliseconds to have three digits.
- return (
- year + '-' + arraySlice(result, 0, 2).join('-') +
- 'T' + arraySlice(result, 2).join(':') + '.' +
- strSlice('000' + originalGetUTCMilliseconds(this), -3) + 'Z'
- );
- }
- }, hasNegativeDateBug || hasSafari51DateBug);
-
- // ES5 15.9.5.44
- // http://es5.github.com/#x15.9.5.44
- // This function provides a String representation of a Date object for use by
- // JSON.stringify (15.12.3).
- var dateToJSONIsSupported = (function () {
- try {
- return Date.prototype.toJSON &&
- new Date(NaN).toJSON() === null &&
- new Date(negativeDate).toJSON().indexOf(negativeYearString) !== -1 &&
- Date.prototype.toJSON.call({ // generic
- toISOString: function () { return true; }
- });
- } catch (e) {
- return false;
- }
- }());
- if (!dateToJSONIsSupported) {
- Date.prototype.toJSON = function toJSON(key) {
- // When the toJSON method is called with argument key, the following
- // steps are taken:
-
- // 1. Let O be the result of calling ToObject, giving it the this
- // value as its argument.
- // 2. Let tv be ES.ToPrimitive(O, hint Number).
- var O = $Object(this);
- var tv = ES.ToPrimitive(O);
- // 3. If tv is a Number and is not finite, return null.
- if (typeof tv === 'number' && !isFinite(tv)) {
- return null;
- }
- // 4. Let toISO be the result of calling the [[Get]] internal method of
- // O with argument "toISOString".
- var toISO = O.toISOString;
- // 5. If IsCallable(toISO) is false, throw a TypeError exception.
- if (!isCallable(toISO)) {
- throw new TypeError('toISOString property is not callable');
- }
- // 6. Return the result of calling the [[Call]] internal method of
- // toISO with O as the this value and an empty argument list.
- return toISO.call(O);
-
- // NOTE 1 The argument is ignored.
-
- // NOTE 2 The toJSON function is intentionally generic; it does not
- // require that its this value be a Date object. Therefore, it can be
- // transferred to other kinds of objects for use as a method. However,
- // it does require that any such object have a toISOString method. An
- // object is free to use the argument key to filter its
- // stringification.
- };
- }
-
- // ES5 15.9.4.2
- // http://es5.github.com/#x15.9.4.2
- // based on work shared by Daniel Friesen (dantman)
- // http://gist.github.com/303249
- var supportsExtendedYears = Date.parse('+033658-09-27T01:46:40.000Z') === 1e15;
- var acceptsInvalidDates = !isNaN(Date.parse('2012-04-04T24:00:00.500Z')) || !isNaN(Date.parse('2012-11-31T23:59:59.000Z')) || !isNaN(Date.parse('2012-12-31T23:59:60.000Z'));
- var doesNotParseY2KNewYear = isNaN(Date.parse('2000-01-01T00:00:00.000Z'));
- if (doesNotParseY2KNewYear || acceptsInvalidDates || !supportsExtendedYears) {
- // XXX global assignment won't work in embeddings that use
- // an alternate object for the context.
- /* global Date: true */
- /* eslint-disable no-undef */
- var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1;
- var hasSafariSignedIntBug = isActualNaN(new Date(1970, 0, 1, 0, 0, 0, maxSafeUnsigned32Bit + 1).getTime());
- /* eslint-disable no-implicit-globals */
- Date = (function (NativeDate) {
- /* eslint-enable no-implicit-globals */
- /* eslint-enable no-undef */
- // Date.length === 7
- var DateShim = function Date(Y, M, D, h, m, s, ms) {
- var length = arguments.length;
- var date;
- if (this instanceof NativeDate) {
- var seconds = s;
- var millis = ms;
- if (hasSafariSignedIntBug && length >= 7 && ms > maxSafeUnsigned32Bit) {
- // work around a Safari 8/9 bug where it treats the seconds as signed
- var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit;
- var sToShift = Math.floor(msToShift / 1e3);
- seconds += sToShift;
- millis -= sToShift * 1e3;
- }
- date = length === 1 && $String(Y) === Y ? // isString(Y)
- // We explicitly pass it through parse:
- new NativeDate(DateShim.parse(Y)) :
- // We have to manually make calls depending on argument
- // length here
- length >= 7 ? new NativeDate(Y, M, D, h, m, seconds, millis) :
- length >= 6 ? new NativeDate(Y, M, D, h, m, seconds) :
- length >= 5 ? new NativeDate(Y, M, D, h, m) :
- length >= 4 ? new NativeDate(Y, M, D, h) :
- length >= 3 ? new NativeDate(Y, M, D) :
- length >= 2 ? new NativeDate(Y, M) :
- length >= 1 ? new NativeDate(Y instanceof NativeDate ? +Y : Y) :
- new NativeDate();
- } else {
- date = NativeDate.apply(this, arguments);
- }
- if (!isPrimitive(date)) {
- // Prevent mixups with unfixed Date object
- defineProperties(date, { constructor: DateShim }, true);
- }
- return date;
- };
-
- // 15.9.1.15 Date Time String Format.
- var isoDateExpression = new RegExp('^' +
- '(\\d{4}|[+-]\\d{6})' + // four-digit year capture or sign +
- // 6-digit extended year
- '(?:-(\\d{2})' + // optional month capture
- '(?:-(\\d{2})' + // optional day capture
- '(?:' + // capture hours:minutes:seconds.milliseconds
- 'T(\\d{2})' + // hours capture
- ':(\\d{2})' + // minutes capture
- '(?:' + // optional :seconds.milliseconds
- ':(\\d{2})' + // seconds capture
- '(?:(\\.\\d{1,}))?' + // milliseconds capture
- ')?' +
- '(' + // capture UTC offset component
- 'Z|' + // UTC capture
- '(?:' + // offset specifier +/-hours:minutes
- '([-+])' + // sign capture
- '(\\d{2})' + // hours offset capture
- ':(\\d{2})' + // minutes offset capture
- ')' +
- ')?)?)?)?' +
- '$');
-
- var months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
-
- var dayFromMonth = function dayFromMonth(year, month) {
- var t = month > 1 ? 1 : 0;
- return (
- months[month] +
- Math.floor((year - 1969 + t) / 4) -
- Math.floor((year - 1901 + t) / 100) +
- Math.floor((year - 1601 + t) / 400) +
- 365 * (year - 1970)
- );
- };
-
- var toUTC = function toUTC(t) {
- var s = 0;
- var ms = t;
- if (hasSafariSignedIntBug && ms > maxSafeUnsigned32Bit) {
- // work around a Safari 8/9 bug where it treats the seconds as signed
- var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit;
- var sToShift = Math.floor(msToShift / 1e3);
- s += sToShift;
- ms -= sToShift * 1e3;
- }
- return $Number(new NativeDate(1970, 0, 1, 0, 0, s, ms));
- };
-
- // Copy any custom methods a 3rd party library may have added
- for (var key in NativeDate) {
- if (owns(NativeDate, key)) {
- DateShim[key] = NativeDate[key];
- }
- }
-
- // Copy "native" methods explicitly; they may be non-enumerable
- defineProperties(DateShim, {
- now: NativeDate.now,
- UTC: NativeDate.UTC
- }, true);
- DateShim.prototype = NativeDate.prototype;
- defineProperties(DateShim.prototype, {
- constructor: DateShim
- }, true);
-
- // Upgrade Date.parse to handle simplified ISO 8601 strings
- var parseShim = function parse(string) {
- var match = isoDateExpression.exec(string);
- if (match) {
- // parse months, days, hours, minutes, seconds, and milliseconds
- // provide default values if necessary
- // parse the UTC offset component
- var year = $Number(match[1]),
- month = $Number(match[2] || 1) - 1,
- day = $Number(match[3] || 1) - 1,
- hour = $Number(match[4] || 0),
- minute = $Number(match[5] || 0),
- second = $Number(match[6] || 0),
- millisecond = Math.floor($Number(match[7] || 0) * 1000),
- // When time zone is missed, local offset should be used
- // (ES 5.1 bug)
- // see https://bugs.ecmascript.org/show_bug.cgi?id=112
- isLocalTime = Boolean(match[4] && !match[8]),
- signOffset = match[9] === '-' ? 1 : -1,
- hourOffset = $Number(match[10] || 0),
- minuteOffset = $Number(match[11] || 0),
- result;
- var hasMinutesOrSecondsOrMilliseconds = minute > 0 || second > 0 || millisecond > 0;
- if (
- hour < (hasMinutesOrSecondsOrMilliseconds ? 24 : 25) &&
- minute < 60 && second < 60 && millisecond < 1000 &&
- month > -1 && month < 12 && hourOffset < 24 &&
- minuteOffset < 60 && // detect invalid offsets
- day > -1 &&
- day < (dayFromMonth(year, month + 1) - dayFromMonth(year, month))
- ) {
- result = (
- (dayFromMonth(year, month) + day) * 24 +
- hour +
- hourOffset * signOffset
- ) * 60;
- result = (
- (result + minute + minuteOffset * signOffset) * 60 +
- second
- ) * 1000 + millisecond;
- if (isLocalTime) {
- result = toUTC(result);
- }
- if (-8.64e15 <= result && result <= 8.64e15) {
- return result;
- }
- }
- return NaN;
- }
- return NativeDate.parse.apply(this, arguments);
- };
- defineProperties(DateShim, { parse: parseShim });
-
- return DateShim;
- }(Date));
- /* global Date: false */
- }
-
- // ES5 15.9.4.4
- // http://es5.github.com/#x15.9.4.4
- if (!Date.now) {
- Date.now = function now() {
- return new Date().getTime();
- };
- }
-
- //
- // Number
- // ======
- //
-
- // ES5.1 15.7.4.5
- // http://es5.github.com/#x15.7.4.5
- var hasToFixedBugs = NumberPrototype.toFixed && (
- (0.00008).toFixed(3) !== '0.000' ||
- (0.9).toFixed(0) !== '1' ||
- (1.255).toFixed(2) !== '1.25' ||
- (1000000000000000128).toFixed(0) !== '1000000000000000128'
- );
-
- var toFixedHelpers = {
- base: 1e7,
- size: 6,
- data: [0, 0, 0, 0, 0, 0],
- multiply: function multiply(n, c) {
- var i = -1;
- var c2 = c;
- while (++i < toFixedHelpers.size) {
- c2 += n * toFixedHelpers.data[i];
- toFixedHelpers.data[i] = c2 % toFixedHelpers.base;
- c2 = Math.floor(c2 / toFixedHelpers.base);
- }
- },
- divide: function divide(n) {
- var i = toFixedHelpers.size;
- var c = 0;
- while (--i >= 0) {
- c += toFixedHelpers.data[i];
- toFixedHelpers.data[i] = Math.floor(c / n);
- c = (c % n) * toFixedHelpers.base;
- }
- },
- numToString: function numToString() {
- var i = toFixedHelpers.size;
- var s = '';
- while (--i >= 0) {
- if (s !== '' || i === 0 || toFixedHelpers.data[i] !== 0) {
- var t = $String(toFixedHelpers.data[i]);
- if (s === '') {
- s = t;
- } else {
- s += strSlice('0000000', 0, 7 - t.length) + t;
- }
- }
- }
- return s;
- },
- pow: function pow(x, n, acc) {
- return (n === 0 ? acc : (n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc)));
- },
- log: function log(x) {
- var n = 0;
- var x2 = x;
- while (x2 >= 4096) {
- n += 12;
- x2 /= 4096;
- }
- while (x2 >= 2) {
- n += 1;
- x2 /= 2;
- }
- return n;
- }
- };
-
- var toFixedShim = function toFixed(fractionDigits) {
- var f, x, s, m, e, z, j, k;
-
- // Test for NaN and round fractionDigits down
- f = $Number(fractionDigits);
- f = isActualNaN(f) ? 0 : Math.floor(f);
-
- if (f < 0 || f > 20) {
- throw new RangeError('Number.toFixed called with invalid number of decimals');
- }
-
- x = $Number(this);
-
- if (isActualNaN(x)) {
- return 'NaN';
- }
-
- // If it is too big or small, return the string value of the number
- if (x <= -1e21 || x >= 1e21) {
- return $String(x);
- }
-
- s = '';
-
- if (x < 0) {
- s = '-';
- x = -x;
- }
-
- m = '0';
-
- if (x > 1e-21) {
- // 1e-21 < x < 1e21
- // -70 < log2(x) < 70
- e = toFixedHelpers.log(x * toFixedHelpers.pow(2, 69, 1)) - 69;
- z = (e < 0 ? x * toFixedHelpers.pow(2, -e, 1) : x / toFixedHelpers.pow(2, e, 1));
- z *= 0x10000000000000; // Math.pow(2, 52);
- e = 52 - e;
-
- // -18 < e < 122
- // x = z / 2 ^ e
- if (e > 0) {
- toFixedHelpers.multiply(0, z);
- j = f;
-
- while (j >= 7) {
- toFixedHelpers.multiply(1e7, 0);
- j -= 7;
- }
-
- toFixedHelpers.multiply(toFixedHelpers.pow(10, j, 1), 0);
- j = e - 1;
-
- while (j >= 23) {
- toFixedHelpers.divide(1 << 23);
- j -= 23;
- }
-
- toFixedHelpers.divide(1 << j);
- toFixedHelpers.multiply(1, 1);
- toFixedHelpers.divide(2);
- m = toFixedHelpers.numToString();
- } else {
- toFixedHelpers.multiply(0, z);
- toFixedHelpers.multiply(1 << (-e), 0);
- m = toFixedHelpers.numToString() + strSlice('0.00000000000000000000', 2, 2 + f);
- }
- }
-
- if (f > 0) {
- k = m.length;
-
- if (k <= f) {
- m = s + strSlice('0.0000000000000000000', 0, f - k + 2) + m;
- } else {
- m = s + strSlice(m, 0, k - f) + '.' + strSlice(m, k - f);
- }
- } else {
- m = s + m;
- }
-
- return m;
- };
- defineProperties(NumberPrototype, { toFixed: toFixedShim }, hasToFixedBugs);
-
- var hasToPrecisionUndefinedBug = (function () {
- try {
- return 1.0.toPrecision(undefined) === '1';
- } catch (e) {
- return true;
- }
- }());
- var originalToPrecision = NumberPrototype.toPrecision;
- defineProperties(NumberPrototype, {
- toPrecision: function toPrecision(precision) {
- return typeof precision === 'undefined' ? originalToPrecision.call(this) : originalToPrecision.call(this, precision);
- }
- }, hasToPrecisionUndefinedBug);
-
- //
- // String
- // ======
- //
-
- // ES5 15.5.4.14
- // http://es5.github.com/#x15.5.4.14
-
- // [bugfix, IE lt 9, firefox 4, Konqueror, Opera, obscure browsers]
- // Many browsers do not split properly with regular expressions or they
- // do not perform the split correctly under obscure conditions.
- // See http://blog.stevenlevithan.com/archives/cross-browser-split
- // I've tested in many browsers and this seems to cover the deviant ones:
- // 'ab'.split(/(?:ab)*/) should be ["", ""], not [""]
- // '.'.split(/(.?)(.?)/) should be ["", ".", "", ""], not ["", ""]
- // 'tesst'.split(/(s)*/) should be ["t", undefined, "e", "s", "t"], not
- // [undefined, "t", undefined, "e", ...]
- // ''.split(/.?/) should be [], not [""]
- // '.'.split(/()()/) should be ["."], not ["", "", "."]
-
- if (
- 'ab'.split(/(?:ab)*/).length !== 2 ||
- '.'.split(/(.?)(.?)/).length !== 4 ||
- 'tesst'.split(/(s)*/)[1] === 't' ||
- 'test'.split(/(?:)/, -1).length !== 4 ||
- ''.split(/.?/).length ||
- '.'.split(/()()/).length > 1
- ) {
- (function () {
- var compliantExecNpcg = typeof (/()??/).exec('')[1] === 'undefined'; // NPCG: nonparticipating capturing group
- var maxSafe32BitInt = Math.pow(2, 32) - 1;
-
- StringPrototype.split = function (separator, limit) {
- var string = String(this);
- if (typeof separator === 'undefined' && limit === 0) {
- return [];
- }
-
- // If `separator` is not a regex, use native split
- if (!isRegex(separator)) {
- return strSplit(this, separator, limit);
- }
-
- var output = [];
- var flags = (separator.ignoreCase ? 'i' : '') +
- (separator.multiline ? 'm' : '') +
- (separator.unicode ? 'u' : '') + // in ES6
- (separator.sticky ? 'y' : ''), // Firefox 3+ and ES6
- lastLastIndex = 0,
- // Make `global` and avoid `lastIndex` issues by working with a copy
- separator2, match, lastIndex, lastLength;
- var separatorCopy = new RegExp(separator.source, flags + 'g');
- if (!compliantExecNpcg) {
- // Doesn't need flags gy, but they don't hurt
- separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags);
- }
- /* Values for `limit`, per the spec:
- * If undefined: 4294967295 // maxSafe32BitInt
- * If 0, Infinity, or NaN: 0
- * If positive number: limit = Math.floor(limit); if (limit > 4294967295) limit -= 4294967296;
- * If negative number: 4294967296 - Math.floor(Math.abs(limit))
- * If other: Type-convert, then use the above rules
- */
- var splitLimit = typeof limit === 'undefined' ? maxSafe32BitInt : ES.ToUint32(limit);
- match = separatorCopy.exec(string);
- while (match) {
- // `separatorCopy.lastIndex` is not reliable cross-browser
- lastIndex = match.index + match[0].length;
- if (lastIndex > lastLastIndex) {
- pushCall(output, strSlice(string, lastLastIndex, match.index));
- // Fix browsers whose `exec` methods don't consistently return `undefined` for
- // nonparticipating capturing groups
- if (!compliantExecNpcg && match.length > 1) {
- /* eslint-disable no-loop-func */
- match[0].replace(separator2, function () {
- for (var i = 1; i < arguments.length - 2; i++) {
- if (typeof arguments[i] === 'undefined') {
- match[i] = void 0;
- }
- }
- });
- /* eslint-enable no-loop-func */
- }
- if (match.length > 1 && match.index < string.length) {
- array_push.apply(output, arraySlice(match, 1));
- }
- lastLength = match[0].length;
- lastLastIndex = lastIndex;
- if (output.length >= splitLimit) {
- break;
- }
- }
- if (separatorCopy.lastIndex === match.index) {
- separatorCopy.lastIndex++; // Avoid an infinite loop
- }
- match = separatorCopy.exec(string);
- }
- if (lastLastIndex === string.length) {
- if (lastLength || !separatorCopy.test('')) {
- pushCall(output, '');
- }
- } else {
- pushCall(output, strSlice(string, lastLastIndex));
- }
- return output.length > splitLimit ? arraySlice(output, 0, splitLimit) : output;
- };
- }());
-
- // [bugfix, chrome]
- // If separator is undefined, then the result array contains just one String,
- // which is the this value (converted to a String). If limit is not undefined,
- // then the output array is truncated so that it contains no more than limit
- // elements.
- // "0".split(undefined, 0) -> []
- } else if ('0'.split(void 0, 0).length) {
- StringPrototype.split = function split(separator, limit) {
- if (typeof separator === 'undefined' && limit === 0) {
- return [];
- }
- return strSplit(this, separator, limit);
- };
- }
-
- var str_replace = StringPrototype.replace;
- var replaceReportsGroupsCorrectly = (function () {
- var groups = [];
- 'x'.replace(/x(.)?/g, function (match, group) {
- pushCall(groups, group);
- });
- return groups.length === 1 && typeof groups[0] === 'undefined';
- }());
-
- if (!replaceReportsGroupsCorrectly) {
- StringPrototype.replace = function replace(searchValue, replaceValue) {
- var isFn = isCallable(replaceValue);
- var hasCapturingGroups = isRegex(searchValue) && (/\)[*?]/).test(searchValue.source);
- if (!isFn || !hasCapturingGroups) {
- return str_replace.call(this, searchValue, replaceValue);
- } else {
- var wrappedReplaceValue = function (match) {
- var length = arguments.length;
- var originalLastIndex = searchValue.lastIndex;
- searchValue.lastIndex = 0;
- var args = searchValue.exec(match) || [];
- searchValue.lastIndex = originalLastIndex;
- pushCall(args, arguments[length - 2], arguments[length - 1]);
- return replaceValue.apply(this, args);
- };
- return str_replace.call(this, searchValue, wrappedReplaceValue);
- }
- };
- }
-
- // ECMA-262, 3rd B.2.3
- // Not an ECMAScript standard, although ECMAScript 3rd Edition has a
- // non-normative section suggesting uniform semantics and it should be
- // normalized across all browsers
- // [bugfix, IE lt 9] IE < 9 substr() with negative value not working in IE
- var string_substr = StringPrototype.substr;
- var hasNegativeSubstrBug = ''.substr && '0b'.substr(-1) !== 'b';
- defineProperties(StringPrototype, {
- substr: function substr(start, length) {
- var normalizedStart = start;
- if (start < 0) {
- normalizedStart = max(this.length + start, 0);
- }
- return string_substr.call(this, normalizedStart, length);
- }
- }, hasNegativeSubstrBug);
-
- // ES5 15.5.4.20
- // whitespace from: http://es5.github.io/#x15.5.4.20
- var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
- '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' +
- '\u2029\uFEFF';
- var zeroWidth = '\u200b';
- var wsRegexChars = '[' + ws + ']';
- var trimBeginRegexp = new RegExp('^' + wsRegexChars + wsRegexChars + '*');
- var trimEndRegexp = new RegExp(wsRegexChars + wsRegexChars + '*$');
- var hasTrimWhitespaceBug = StringPrototype.trim && (ws.trim() || !zeroWidth.trim());
- defineProperties(StringPrototype, {
- // http://blog.stevenlevithan.com/archives/faster-trim-javascript
- // http://perfectionkills.com/whitespace-deviations/
- trim: function trim() {
- if (typeof this === 'undefined' || this === null) {
- throw new TypeError("can't convert " + this + ' to object');
- }
- return $String(this).replace(trimBeginRegexp, '').replace(trimEndRegexp, '');
- }
- }, hasTrimWhitespaceBug);
- var trim = call.bind(String.prototype.trim);
-
- var hasLastIndexBug = StringPrototype.lastIndexOf && 'abcã‚ã„'.lastIndexOf('ã‚ã„', 2) !== -1;
- defineProperties(StringPrototype, {
- lastIndexOf: function lastIndexOf(searchString) {
- if (typeof this === 'undefined' || this === null) {
- throw new TypeError("can't convert " + this + ' to object');
- }
- var S = $String(this);
- var searchStr = $String(searchString);
- var numPos = arguments.length > 1 ? $Number(arguments[1]) : NaN;
- var pos = isActualNaN(numPos) ? Infinity : ES.ToInteger(numPos);
- var start = min(max(pos, 0), S.length);
- var searchLen = searchStr.length;
- var k = start + searchLen;
- while (k > 0) {
- k = max(0, k - searchLen);
- var index = strIndexOf(strSlice(S, k, start + searchLen), searchStr);
- if (index !== -1) {
- return k + index;
- }
- }
- return -1;
- }
- }, hasLastIndexBug);
-
- var originalLastIndexOf = StringPrototype.lastIndexOf;
- defineProperties(StringPrototype, {
- lastIndexOf: function lastIndexOf(searchString) {
- return originalLastIndexOf.apply(this, arguments);
- }
- }, StringPrototype.lastIndexOf.length !== 1);
-
- // ES-5 15.1.2.2
- /* eslint-disable radix */
- if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22) {
- /* eslint-enable radix */
- /* global parseInt: true */
- parseInt = (function (origParseInt) {
- var hexRegex = /^[\-+]?0[xX]/;
- return function parseInt(str, radix) {
- var string = trim(String(str));
- var defaultedRadix = $Number(radix) || (hexRegex.test(string) ? 16 : 10);
- return origParseInt(string, defaultedRadix);
- };
- }(parseInt));
- }
-
- // https://es5.github.io/#x15.1.2.3
- if (1 / parseFloat('-0') !== -Infinity) {
- /* global parseFloat: true */
- parseFloat = (function (origParseFloat) {
- return function parseFloat(string) {
- var inputString = trim(String(string));
- var result = origParseFloat(inputString);
- return result === 0 && strSlice(inputString, 0, 1) === '-' ? -0 : result;
- };
- }(parseFloat));
- }
-
- if (String(new RangeError('test')) !== 'RangeError: test') {
- var errorToStringShim = function toString() {
- if (typeof this === 'undefined' || this === null) {
- throw new TypeError("can't convert " + this + ' to object');
- }
- var name = this.name;
- if (typeof name === 'undefined') {
- name = 'Error';
- } else if (typeof name !== 'string') {
- name = $String(name);
- }
- var msg = this.message;
- if (typeof msg === 'undefined') {
- msg = '';
- } else if (typeof msg !== 'string') {
- msg = $String(msg);
- }
- if (!name) {
- return msg;
- }
- if (!msg) {
- return name;
- }
- return name + ': ' + msg;
- };
- // can't use defineProperties here because of toString enumeration issue in IE <= 8
- Error.prototype.toString = errorToStringShim;
- }
-
- if (supportsDescriptors) {
- var ensureNonEnumerable = function (obj, prop) {
- if (isEnum(obj, prop)) {
- var desc = Object.getOwnPropertyDescriptor(obj, prop);
- if (desc.configurable) {
- desc.enumerable = false;
- Object.defineProperty(obj, prop, desc);
- }
- }
- };
- ensureNonEnumerable(Error.prototype, 'message');
- if (Error.prototype.message !== '') {
- Error.prototype.message = '';
- }
- ensureNonEnumerable(Error.prototype, 'name');
- }
-
- if (String(/a/mig) !== '/a/gim') {
- var regexToString = function toString() {
- var str = '/' + this.source + '/';
- if (this.global) {
- str += 'g';
- }
- if (this.ignoreCase) {
- str += 'i';
- }
- if (this.multiline) {
- str += 'm';
- }
- return str;
- };
- // can't use defineProperties here because of toString enumeration issue in IE <= 8
- RegExp.prototype.toString = regexToString;
- }
-}));
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.map b/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.map
deleted file mode 100644
index 51188310..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["es5-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","$Array","Array","ArrayPrototype","prototype","$Object","Object","ObjectPrototype","$Function","Function","FunctionPrototype","$String","String","StringPrototype","$Number","Number","NumberPrototype","array_slice","slice","array_splice","splice","array_push","push","array_unshift","unshift","array_concat","concat","array_join","join","call","apply","max","Math","min","to_string","toString","hasToStringTag","Symbol","toStringTag","isCallable","fnToStr","constructorRegex","isES6ClassFn","value","fnStr","singleStripped","replace","multiStripped","spaceStripped","test","e","tryFunctionObject","fnClass","genClass","strClass","isRegex","regexExec","RegExp","exec","tryRegexExec","regexClass","isString","strValue","valueOf","tryStringObject","stringClass","supportsDescriptors","defineProperty","obj","enumerable","_","x","defineProperties","has","object","name","method","forceAssign","configurable","writable","map","hasOwnProperty","isPrimitive","input","type","isActualNaN","isNaN","ES","ToInteger","num","n","floor","abs","ToPrimitive","val","toStr","TypeError","ToObject","o","ToUint32","Empty","bind","that","target","args","arguments","bound","binder","result","boundLength","length","boundArgs","i","owns","arraySlice","arraySliceApply","strSlice","strSplit","split","strIndexOf","indexOf","pushCall","isEnum","propertyIsEnumerable","arraySort","sort","isArray","hasUnshiftReturnValueBug","boxedString","splitString","properlyBoxesContext","properlyBoxed","properlyBoxesNonStrict","properlyBoxesStrict","threwException","__","context","forEach","callbackfn","self","T","filter","every","some","reduceCoercesToObject","reduce","___","list","reduceRightCoercesToObject","reduceRight","hasFirefox2IndexOfBug","searchElement","hasFirefox2LastIndexOfBug","lastIndexOf","spliceNoopReturnsEmptyArray","a","start","deleteCount","spliceWorksWithEmptyObject","spliceWorksWithLargeSparseArrays","arr","spliceWorksWithSmallSparseArrays","O","A","len","relativeStart","actualStart","actualDeleteCount","k","from","items","itemCount","to","maxK","minK","originalJoin","hasStringJoinBug","separator","sep","hasJoinUndefinedBug","undefined","pushShim","item","pushIsNotGeneric","pushUndefinedIsWeird","end","sortIgnoresNonFunctions","sortThrowsOnRegex","sortIgnoresUndefined","compareFn","hasDontEnumBug","hasProtoEnumBug","hasStringEnumBug","equalsConstructorPrototype","ctor","constructor","blacklistedKeys","$window","$console","$parent","$self","$frame","$frames","$frameElement","$webkitIndexedDB","$webkitStorageInfo","$external","hasAutomationEqualityBug","window","equalsConstructorPrototypeIfNotBuggy","dontEnums","dontEnumsLength","isStandardArguments","isArguments","isLegacyArguments","callee","keys","isFn","isArgs","isObject","isStr","theKeys","skipProto","skipConstructor","j","dontEnum","keysWorksWithArguments","keysHasArgumentsLengthBug","argKeys","originalKeys","hasNegativeMonthYearBug","Date","getUTCMonth","aNegativeTestDate","aPositiveTestDate","hasToUTCStringFormatBug","toUTCString","hasToDateStringFormatBug","hasToStringFormatBug","timeZoneOffset","getTimezoneOffset","toDateString","originalGetFullYear","getFullYear","originalGetMonth","getMonth","originalGetDate","getDate","originalGetUTCFullYear","getUTCFullYear","originalGetUTCMonth","originalGetUTCDate","getUTCDate","originalGetUTCDay","getUTCDay","originalGetUTCHours","getUTCHours","originalGetUTCMinutes","getUTCMinutes","originalGetUTCSeconds","getUTCSeconds","originalGetUTCMilliseconds","getUTCMilliseconds","dayName","monthName","daysInMonth","month","year","date","days","day","hour","minute","second","getDay","getHours","getMinutes","getSeconds","timezoneOffset","hoursOffset","minutesOffset","negativeDate","negativeYearString","hasNegativeDateBug","toISOString","hasSafari51DateBug","getTime","isFinite","RangeError","dateToJSONIsSupported","toJSON","NaN","key","tv","toISO","supportsExtendedYears","parse","acceptsInvalidDates","doesNotParseY2KNewYear","maxSafeUnsigned32Bit","pow","hasSafariSignedIntBug","NativeDate","DateShim","Y","M","D","h","m","s","ms","seconds","millis","msToShift","sToShift","isoDateExpression","months","dayFromMonth","t","toUTC","now","UTC","parseShim","string","match","millisecond","isLocalTime","Boolean","signOffset","hourOffset","minuteOffset","hasMinutesOrSecondsOrMilliseconds","hasToFixedBugs","toFixed","toFixedHelpers","base","size","data","multiply","c","c2","divide","numToString","acc","log","x2","toFixedShim","fractionDigits","f","z","hasToPrecisionUndefinedBug","toPrecision","originalToPrecision","precision","compliantExecNpcg","maxSafe32BitInt","limit","output","flags","ignoreCase","multiline","unicode","sticky","lastLastIndex","separator2","lastIndex","lastLength","separatorCopy","source","splitLimit","index","str_replace","replaceReportsGroupsCorrectly","groups","group","searchValue","replaceValue","hasCapturingGroups","wrappedReplaceValue","originalLastIndex","string_substr","substr","hasNegativeSubstrBug","normalizedStart","ws","zeroWidth","wsRegexChars","trimBeginRegexp","trimEndRegexp","hasTrimWhitespaceBug","trim","hasLastIndexBug","searchString","S","searchStr","numPos","pos","Infinity","searchLen","originalLastIndexOf","parseInt","origParseInt","hexRegex","str","radix","defaultedRadix","parseFloat","origParseFloat","inputString","errorToStringShim","msg","message","Error","ensureNonEnumerable","prop","desc","getOwnPropertyDescriptor","regexToString","global"],"mappings":";;;;;CAaC,SAAUA,EAAMC,GACb,YAGA,UAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE5CD,OAAOD,OACJ,UAAWG,WAAY,SAAU,CAIpCC,OAAOD,QAAUH,QACd,CAEHD,EAAKM,cAAgBL,OAE3BM,KAAM,WAaJ,GAAIC,GAASC,KACb,IAAIC,GAAiBF,EAAOG,SAC5B,IAAIC,GAAUC,MACd,IAAIC,GAAkBF,EAAQD,SAC9B,IAAII,GAAYC,QAChB,IAAIC,GAAoBF,EAAUJ,SAClC,IAAIO,GAAUC,MACd,IAAIC,GAAkBF,EAAQP,SAC9B,IAAIU,GAAUC,MACd,IAAIC,GAAkBF,EAAQV,SAC9B,IAAIa,GAAcd,EAAee,KACjC,IAAIC,GAAehB,EAAeiB,MAClC,IAAIC,GAAalB,EAAemB,IAChC,IAAIC,GAAgBpB,EAAeqB,OACnC,IAAIC,GAAetB,EAAeuB,MAClC,IAAIC,GAAaxB,EAAeyB,IAChC,IAAIC,GAAOnB,EAAkBmB,IAC7B,IAAIC,GAAQpB,EAAkBoB,KAC9B,IAAIC,GAAMC,KAAKD,GACf,IAAIE,GAAMD,KAAKC,GAGf,IAAIC,GAAY3B,EAAgB4B,QAIhC,IAAIC,SAAwBC,UAAW,kBAAqBA,QAAOC,cAAgB,QACnF,IAAIC,EAA6D,IAAIC,GAAU/B,SAASL,UAAU+B,SAAUM,EAAmB,aAAcC,EAAe,QAASA,cAAaC,GAAS,IAAM,GAAIC,GAAQJ,EAAQX,KAAKc,EAAQ,IAAIE,GAAiBD,EAAME,QAAQ,YAAa,GAAK,IAAIC,GAAgBF,EAAeC,QAAQ,oBAAqB,GAAK,IAAIE,GAAgBD,EAAcD,QAAQ,OAAQ,KAAKA,QAAQ,QAAS,IAAM,OAAOL,GAAiBQ,KAAKD,GAAkB,MAAOE,GAAK,MAAO,SAAiCC,EAAoB,QAASA,mBAAkBR,GAAS,IAAM,GAAID,EAAaC,GAAQ,CAAE,MAAO,OAASH,EAAQX,KAAKc,EAAQ,OAAO,MAAQ,MAAOO,GAAK,MAAO,SAAYE,EAAU,oBAAqBC,EAAW,6BAA8Bd,EAAa,QAASA,YAAWI,GAAS,IAAKA,EAAO,CAAE,MAAO,OAAS,SAAWA,KAAU,kBAAqBA,KAAU,SAAU,CAAE,MAAO,OAAS,GAAIP,EAAgB,CAAE,MAAOe,GAAkBR,GAAU,GAAID,EAAaC,GAAQ,CAAE,MAAO,OAAS,GAAIW,GAAWpB,EAAUL,KAAKc,EAAQ,OAAOW,KAAaF,GAAWE,IAAaD,EAE/kC,IAAIE,EAAuD,IAAIC,GAAYC,OAAOrD,UAAUsD,KAAMC,EAAe,QAASA,cAAahB,GAAS,IAAMa,EAAU3B,KAAKc,EAAQ,OAAO,MAAQ,MAAOO,GAAK,MAAO,SAAYU,EAAa,iBAAmBL,GAAU,QAASA,SAAQZ,GAAS,SAAWA,KAAU,SAAU,CAAE,MAAO,OAAS,MAAOP,GAAiBuB,EAAahB,GAAST,EAAUL,KAAKc,KAAWiB,EACxZ,IAAIC,EAAyD,IAAIC,GAAWlD,OAAOR,UAAU2D,QAASC,EAAkB,QAASA,iBAAgBrB,GAAS,IAAMmB,EAASjC,KAAKc,EAAQ,OAAO,MAAQ,MAAOO,GAAK,MAAO,SAAYe,EAAc,iBAAmBJ,GAAW,QAASA,UAASlB,GAAS,SAAWA,KAAU,SAAU,CAAE,MAAO,MAAQ,SAAWA,KAAU,SAAU,CAAE,MAAO,OAAS,MAAOP,GAAiB4B,EAAgBrB,GAAST,EAAUL,KAAKc,KAAWsB,EAIvd,IAAIC,GAAsB7D,EAAQ8D,gBAAmB,WACjD,IACI,GAAIC,KACJ/D,GAAQ8D,eAAeC,EAAK,KAAOC,WAAY,MAAO1B,MAAOyB,GAC7D,KAAK,GAAIE,KAAKF,GAAK,CACf,MAAO,OAEX,MAAOA,GAAIG,IAAMH,EACnB,MAAOlB,GACL,MAAO,UAGf,IAAIsB,GAAoB,SAAUC,GAG9B,GAAIN,EACJ,IAAID,EAAqB,CACrBC,EAAiB,SAAUO,EAAQC,EAAMC,EAAQC,GAC7C,IAAKA,GAAgBF,IAAQD,GAAS,CAClC,OAEJrE,EAAQ8D,eAAeO,EAAQC,GAC3BG,aAAc,KACdT,WAAY,MACZU,SAAU,KACVpC,MAAOiC,SAGZ,CACHT,EAAiB,SAAUO,EAAQC,EAAMC,EAAQC,GAC7C,IAAKA,GAAgBF,IAAQD,GAAS,CAClC,OAEJA,EAAOC,GAAQC,GAGvB,MAAO,SAASJ,kBAAiBE,EAAQM,EAAKH,GAC1C,IAAK,GAAIF,KAAQK,GAAK,CAClB,GAAIP,EAAI5C,KAAKmD,EAAKL,GAAO,CACrBR,EAAeO,EAAQC,EAAMK,EAAIL,GAAOE,OAItDtE,EAAgB0E,eAQlB,IAAIC,GAAc,QAASA,aAAYC,GACnC,GAAIC,SAAcD,EAClB,OAAOA,KAAU,MAASC,IAAS,UAAYA,IAAS,WAG5D,IAAIC,GAAcvE,EAAQwE,OAAS,QAASD,aAAYd,GACpD,MAAOA,KAAMA,EAGjB,IAAIgB,IAKAC,UAAW,QAASA,WAAUC,GAC1B,GAAIC,IAAKD,CACT,IAAIJ,EAAYK,GAAI,CAChBA,EAAI,MACD,IAAIA,IAAM,GAAKA,IAAO,EAAI,GAAMA,MAAQ,EAAI,GAAI,CACnDA,GAAKA,EAAI,IAAM,GAAK1D,KAAK2D,MAAM3D,KAAK4D,IAAIF,IAE5C,MAAOA,IAIXG,YAAa,QAASA,aAAYV,GAC9B,GAAIW,GAAK/B,EAASgC,CAClB,IAAIb,EAAYC,GAAQ,CACpB,MAAOA,GAEXpB,EAAUoB,EAAMpB,OAChB,IAAIxB,EAAWwB,GAAU,CACrB+B,EAAM/B,EAAQlC,KAAKsD,EACnB,IAAID,EAAYY,GAAM,CAClB,MAAOA,IAGfC,EAAQZ,EAAMhD,QACd,IAAII,EAAWwD,GAAQ,CACnBD,EAAMC,EAAMlE,KAAKsD,EACjB,IAAID,EAAYY,GAAM,CAClB,MAAOA,IAGf,KAAM,IAAIE,YAMdC,SAAU,SAAUC,GAChB,GAAIA,GAAK,KAAM,CACX,KAAM,IAAIF,WAAU,iBAAmBE,EAAI,cAE/C,MAAO7F,GAAQ6F,IAInBC,SAAU,QAASA,UAAS5B,GACxB,MAAOA,KAAM,GAYrB,IAAI6B,GAAQ,QAASA,UAErB5B,GAAiB9D,GACb2F,KAAM,QAASA,MAAKC,GAEhB,GAAIC,GAASvG,IAEb,KAAKuC,EAAWgE,GAAS,CACrB,KAAM,IAAIP,WAAU,kDAAoDO,GAK5E,GAAIC,GAAOvF,EAAYY,KAAK4E,UAAW,EAUvC,IAAIC,EACJ,IAAIC,GAAS,WAET,GAAI3G,eAAgB0G,GAAO,CAiBvB,GAAIE,GAAS9E,EAAMD,KACf0E,EACAvG,KACAyB,EAAaI,KAAK2E,EAAMvF,EAAYY,KAAK4E,YAE7C,IAAIpG,EAAQuG,KAAYA,EAAQ,CAC5B,MAAOA,GAEX,MAAO5G,UAEJ,CAoBH,MAAO8B,GAAMD,KACT0E,EACAD,EACA7E,EAAaI,KAAK2E,EAAMvF,EAAYY,KAAK4E,cAarD,IAAII,GAAc9E,EAAI,EAAGwE,EAAOO,OAASN,EAAKM,OAI9C,IAAIC,KACJ,KAAK,GAAIC,GAAI,EAAGA,EAAIH,EAAaG,IAAK,CAClC3F,EAAWQ,KAAKkF,EAAW,IAAMC,GASrCN,EAAQlG,EAAU,SAAU,oBAAsBmB,EAAWE,KAAKkF,EAAW,KAAO,8CAA8CJ,EAElI,IAAIJ,EAAOnG,UAAW,CAClBgG,EAAMhG,UAAYmG,EAAOnG,SACzBsG,GAAMtG,UAAY,GAAIgG,EAEtBA,GAAMhG,UAAY,KAwBtB,MAAOsG,KAMf,IAAIO,GAAOpF,EAAKwE,KAAK9F,EAAgB0E,eACrC,IAAIc,GAAQlE,EAAKwE,KAAK9F,EAAgB4B,SACtC,IAAI+E,GAAarF,EAAKwE,KAAKpF,EAC3B,IAAIkG,GAAkBrF,EAAMuE,KAAKpF,EACjC,IAAImG,GAAWvF,EAAKwE,KAAKxF,EAAgBK,MACzC,IAAImG,GAAWxF,EAAKwE,KAAKxF,EAAgByG,MACzC,IAAIC,GAAa1F,EAAKwE,KAAKxF,EAAgB2G,QAC3C,IAAIC,GAAW5F,EAAKwE,KAAKhF,EACzB,IAAIqG,GAAS7F,EAAKwE,KAAK9F,EAAgBoH,qBACvC,IAAIC,GAAY/F,EAAKwE,KAAKlG,EAAe0H,KAOzC,IAAIC,GAAU7H,EAAO6H,SAAW,QAASA,SAAQ1D,GAC7C,MAAO2B,GAAM3B,KAAS,iBAQ1B,IAAI2D,OAA8BvG,QAAQ,KAAO,CACjDgD,GAAiBrE,GACbqB,QAAS,WACLD,EAAcO,MAAM9B,KAAMyG,UAC1B,OAAOzG,MAAK8G,SAEjBiB,GAKHvD,GAAiBvE,GAAU6H,QAASA,GAoBpC,IAAIE,IAAc3H,EAAQ,IAC1B,IAAI4H,IAAcD,GAAY,KAAO,OAAS,IAAKA,IAEnD,IAAIE,IAAuB,QAASC,eAAcvD,GAE9C,GAAIwD,GAAyB,IAC7B,IAAIC,GAAsB,IAC1B,IAAIC,GAAiB,KACrB,IAAI1D,EAAQ,CACR,IACIA,EAAO/C,KAAK,MAAO,SAAUyC,EAAGiE,EAAIC,GAChC,SAAWA,KAAY,SAAU,CAC7BJ,EAAyB,QAIjCxD,GAAO/C,MAAM,GAAI,WACb,YAEAwG,SAA6BrI,QAAS,UACvC,KACL,MAAOkD,GACLoF,EAAiB,MAGzB,QAAS1D,IAAW0D,GAAkBF,GAA0BC,EAGpE7D,GAAiBrE,GACbsI,QAAS,QAASA,SAAQC,GACtB,GAAIhE,GAASa,EAAGU,SAASjG,KACzB,IAAI2I,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAM0E,CAChE,IAAIsC,IAAK,CACT,IAAIF,GAASvB,EAAGY,SAASwC,EAAK7B,OAC9B,IAAI8B,EACJ,IAAInC,UAAUK,OAAS,EAAG,CACtB8B,EAAInC,UAAU,GAIlB,IAAKlE,EAAWmG,GAAa,CACzB,KAAM,IAAI1C,WAAU,uDAGxB,QAASgB,EAAIF,EAAQ,CACjB,GAAIE,IAAK2B,GAAM,CAGX,SAAWC,KAAM,YAAa,CAC1BF,EAAWC,EAAK3B,GAAIA,EAAGtC,OACpB,CACHgE,EAAW7G,KAAK+G,EAAGD,EAAK3B,GAAIA,EAAGtC,SAK/CwD,GAAqB/H,EAAesI,SAKxCjE,GAAiBrE,GACb6E,IAAK,QAASA,KAAI0D,GACd,GAAIhE,GAASa,EAAGU,SAASjG,KACzB,IAAI2I,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAM0E,CAChE,IAAIoC,GAASvB,EAAGY,SAASwC,EAAK7B,OAC9B,IAAIF,GAAS3G,EAAO6G,EACpB,IAAI8B,EACJ,IAAInC,UAAUK,OAAS,EAAG,CACtB8B,EAAInC,UAAU,GAIlB,IAAKlE,EAAWmG,GAAa,CACzB,KAAM,IAAI1C,WAAU,mDAGxB,IAAK,GAAIgB,GAAI,EAAGA,EAAIF,EAAQE,IAAK,CAC7B,GAAIA,IAAK2B,GAAM,CACX,SAAWC,KAAM,YAAa,CAC1BhC,EAAOI,GAAK0B,EAAWC,EAAK3B,GAAIA,EAAGtC,OAChC,CACHkC,EAAOI,GAAK0B,EAAW7G,KAAK+G,EAAGD,EAAK3B,GAAIA,EAAGtC,KAIvD,MAAOkC,MAEXsB,GAAqB/H,EAAe6E,KAKxCR,GAAiBrE,GACb0I,OAAQ,QAASA,QAAOH,GACpB,GAAIhE,GAASa,EAAGU,SAASjG,KACzB,IAAI2I,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAM0E,CAChE,IAAIoC,GAASvB,EAAGY,SAASwC,EAAK7B,OAC9B,IAAIF,KACJ,IAAIjE,EACJ,IAAIiG,EACJ,IAAInC,UAAUK,OAAS,EAAG,CACtB8B,EAAInC,UAAU,GAIlB,IAAKlE,EAAWmG,GAAa,CACzB,KAAM,IAAI1C,WAAU,sDAGxB,IAAK,GAAIgB,GAAI,EAAGA,EAAIF,EAAQE,IAAK,CAC7B,GAAIA,IAAK2B,GAAM,CACXhG,EAAQgG,EAAK3B,EACb,UAAW4B,KAAM,YAAcF,EAAW/F,EAAOqE,EAAGtC,GAAUgE,EAAW7G,KAAK+G,EAAGjG,EAAOqE,EAAGtC,GAAS,CAChG+C,EAASb,EAAQjE,KAI7B,MAAOiE,MAEXsB,GAAqB/H,EAAe0I,QAKxCrE,GAAiBrE,GACb2I,MAAO,QAASA,OAAMJ,GAClB,GAAIhE,GAASa,EAAGU,SAASjG,KACzB,IAAI2I,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAM0E,CAChE,IAAIoC,GAASvB,EAAGY,SAASwC,EAAK7B,OAC9B,IAAI8B,EACJ,IAAInC,UAAUK,OAAS,EAAG,CACtB8B,EAAInC,UAAU,GAIlB,IAAKlE,EAAWmG,GAAa,CACzB,KAAM,IAAI1C,WAAU,qDAGxB,IAAK,GAAIgB,GAAI,EAAGA,EAAIF,EAAQE,IAAK,CAC7B,GAAIA,IAAK2B,YAAiBC,KAAM,YAAcF,EAAWC,EAAK3B,GAAIA,EAAGtC,GAAUgE,EAAW7G,KAAK+G,EAAGD,EAAK3B,GAAIA,EAAGtC,IAAU,CACpH,MAAO,QAGf,MAAO,SAEXwD,GAAqB/H,EAAe2I,OAKxCtE,GAAiBrE,GACb4I,KAAM,QAASA,MAAKL,GAChB,GAAIhE,GAASa,EAAGU,SAASjG,KACzB,IAAI2I,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAM0E,CAChE,IAAIoC,GAASvB,EAAGY,SAASwC,EAAK7B,OAC9B,IAAI8B,EACJ,IAAInC,UAAUK,OAAS,EAAG,CACtB8B,EAAInC,UAAU,GAIlB,IAAKlE,EAAWmG,GAAa,CACzB,KAAM,IAAI1C,WAAU,oDAGxB,IAAK,GAAIgB,GAAI,EAAGA,EAAIF,EAAQE,IAAK,CAC7B,GAAIA,IAAK2B,WAAgBC,KAAM,YAAcF,EAAWC,EAAK3B,GAAIA,EAAGtC,GAAUgE,EAAW7G,KAAK+G,EAAGD,EAAK3B,GAAIA,EAAGtC,IAAU,CACnH,MAAO,OAGf,MAAO,UAEXwD,GAAqB/H,EAAe4I,MAKxC,IAAIC,IAAwB,KAC5B,IAAI7I,EAAe8I,OAAQ,CACvBD,SAA+B7I,GAAe8I,OAAOpH,KAAK,MAAO,SAAUyC,EAAGiE,EAAIW,EAAKC,GACnF,MAAOA,OACJ,SAEX3E,EAAiBrE,GACb8I,OAAQ,QAASA,QAAOP,GACpB,GAAIhE,GAASa,EAAGU,SAASjG,KACzB,IAAI2I,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAM0E,CAChE,IAAIoC,GAASvB,EAAGY,SAASwC,EAAK7B,OAG9B,KAAKvE,EAAWmG,GAAa,CACzB,KAAM,IAAI1C,WAAU,sDAIxB,GAAIc,IAAW,GAAKL,UAAUK,SAAW,EAAG,CACxC,KAAM,IAAId,WAAU,+CAGxB,GAAIgB,GAAI,CACR,IAAIJ,EACJ,IAAIH,UAAUK,QAAU,EAAG,CACvBF,EAASH,UAAU,OAChB,CACH,EAAG,CACC,GAAIO,IAAK2B,GAAM,CACX/B,EAAS+B,EAAK3B,IACd,OAIJ,KAAMA,GAAKF,EAAQ,CACf,KAAM,IAAId,WAAU,sDAEnB,MAGb,KAAOgB,EAAIF,EAAQE,IAAK,CACpB,GAAIA,IAAK2B,GAAM,CACX/B,EAAS8B,EAAW9B,EAAQ+B,EAAK3B,GAAIA,EAAGtC,IAIhD,MAAOkC,MAEXoC,GAKJ,IAAII,IAA6B,KACjC,IAAIjJ,EAAekJ,YAAa,CAC5BD,SAAoCjJ,GAAekJ,YAAYxH,KAAK,MAAO,SAAUyC,EAAGiE,EAAIW,EAAKC,GAC7F,MAAOA,OACJ,SAEX3E,EAAiBrE,GACbkJ,YAAa,QAASA,aAAYX,GAC9B,GAAIhE,GAASa,EAAGU,SAASjG,KACzB,IAAI2I,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAM0E,CAChE,IAAIoC,GAASvB,EAAGY,SAASwC,EAAK7B,OAG9B,KAAKvE,EAAWmG,GAAa,CACzB,KAAM,IAAI1C,WAAU,2DAIxB,GAAIc,IAAW,GAAKL,UAAUK,SAAW,EAAG,CACxC,KAAM,IAAId,WAAU,oDAGxB,GAAIY,EACJ,IAAII,GAAIF,EAAS,CACjB,IAAIL,UAAUK,QAAU,EAAG,CACvBF,EAASH,UAAU,OAChB,CACH,EAAG,CACC,GAAIO,IAAK2B,GAAM,CACX/B,EAAS+B,EAAK3B,IACd,OAIJ,KAAMA,EAAI,EAAG,CACT,KAAM,IAAIhB,WAAU,2DAEnB,MAGb,GAAIgB,EAAI,EAAG,CACP,MAAOJ,GAGX,EAAG,CACC,GAAII,IAAK2B,GAAM,CACX/B,EAAS8B,EAAW9B,EAAQ+B,EAAK3B,GAAIA,EAAGtC,UAEvCsC,IAET,OAAOJ,MAEXwC,GAKJ,IAAIE,IAAwBnJ,EAAeqH,UAAY,EAAG,GAAGA,QAAQ,EAAG,MAAQ,CAChFhD,GAAiBrE,GACbqH,QAAS,QAASA,SAAQ+B,GACtB,GAAIZ,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAMuF,EAAGU,SAASjG,KAC5E,IAAI8G,GAASvB,EAAGY,SAASwC,EAAK7B,OAE9B,IAAIA,IAAW,EAAG,CACd,OAAQ,EAGZ,GAAIE,GAAI,CACR,IAAIP,UAAUK,OAAS,EAAG,CACtBE,EAAIzB,EAAGC,UAAUiB,UAAU,IAI/BO,EAAIA,GAAK,EAAIA,EAAIjF,EAAI,EAAG+E,EAASE,EACjC,MAAOA,EAAIF,EAAQE,IAAK,CACpB,GAAIA,IAAK2B,IAAQA,EAAK3B,KAAOuC,EAAe,CACxC,MAAOvC,IAGf,OAAQ,IAEbsC,GAKH,IAAIE,IAA4BrJ,EAAesJ,cAAgB,EAAG,GAAGA,YAAY,GAAI,MAAQ,CAC7FjF,GAAiBrE,GACbsJ,YAAa,QAASA,aAAYF,GAC9B,GAAIZ,GAAOV,IAAepE,EAAS7D,MAAQqH,EAASrH,KAAM,IAAMuF,EAAGU,SAASjG,KAC5E,IAAI8G,GAASvB,EAAGY,SAASwC,EAAK7B,OAE9B,IAAIA,IAAW,EAAG,CACd,OAAQ,EAEZ,GAAIE,GAAIF,EAAS,CACjB,IAAIL,UAAUK,OAAS,EAAG,CACtBE,EAAI/E,EAAI+E,EAAGzB,EAAGC,UAAUiB,UAAU,KAGtCO,EAAIA,GAAK,EAAIA,EAAIF,EAAS9E,KAAK4D,IAAIoB,EACnC,MAAOA,GAAK,EAAGA,IAAK,CAChB,GAAIA,IAAK2B,IAAQY,IAAkBZ,EAAK3B,GAAI,CACxC,MAAOA,IAGf,OAAQ,IAEbwC,GAIH,IAAIE,IAA+B,WAC/B,GAAIC,IAAK,EAAG,EACZ,IAAI/C,GAAS+C,EAAEvI,QACf,OAAOuI,GAAE7C,SAAW,GAAKgB,EAAQlB,IAAWA,EAAOE,SAAW,IAElEtC,GAAiBrE,GAEbiB,OAAQ,QAASA,QAAOwI,EAAOC,GAC3B,GAAIpD,UAAUK,SAAW,EAAG,CACxB,aACG,CACH,MAAO3F,GAAaW,MAAM9B,KAAMyG,eAGxCiD,GAEJ,IAAII,IAA8B,WAC9B,GAAI1F,KACJjE,GAAeiB,OAAOS,KAAKuC,EAAK,EAAG,EAAG,EACtC,OAAOA,GAAI0C,SAAW,IAE1BtC,GAAiBrE,GACbiB,OAAQ,QAASA,QAAOwI,EAAOC,GAC3B,GAAIpD,UAAUK,SAAW,EAAG,CACxB,SAEJ,GAAIN,GAAOC,SACXzG,MAAK8G,OAAS/E,EAAIwD,EAAGC,UAAUxF,KAAK8G,QAAS,EAC7C,IAAIL,UAAUK,OAAS,SAAY+C,KAAgB,SAAU,CACzDrD,EAAOU,EAAWT,UAClB,IAAID,EAAKM,OAAS,EAAG,CACjBW,EAASjB,EAAMxG,KAAK8G,OAAS8C,OAC1B,CACHpD,EAAK,GAAKjB,EAAGC,UAAUqE,IAG/B,MAAO1I,GAAaW,MAAM9B,KAAMwG,MAEpCsD,GACJ,IAAIC,IAAoC,WAGpC,GAAIC,GAAM,GAAI/J,GAAO,IAErB+J,GAAI,GAAK,GACTA,GAAI5I,OAAO,EAAG,EAGd,OAAO4I,GAAIxC,QAAQ,OAAS,IAEhC,IAAIyC,IAAoC,WAGpC,GAAIvE,GAAI,GACR,IAAIsE,KACJA,GAAItE,GAAK,GACTsE,GAAI5I,OAAOsE,EAAI,EAAG,EAAG,IACrB,OAAOsE,GAAItE,KAAO,MAEtBlB,GAAiBrE,GACbiB,OAAQ,QAASA,QAAOwI,EAAOC,GAC3B,GAAIK,GAAI3E,EAAGU,SAASjG,KACpB,IAAImK,KACJ,IAAIC,GAAM7E,EAAGY,SAAS+D,EAAEpD,OACxB,IAAIuD,GAAgB9E,EAAGC,UAAUoE,EACjC,IAAIU,GAAcD,EAAgB,EAAItI,EAAKqI,EAAMC,EAAgB,GAAKpI,EAAIoI,EAAeD,EACzF,IAAIG,GAAoBtI,EAAIF,EAAIwD,EAAGC,UAAUqE,GAAc,GAAIO,EAAME,EAErE,IAAIE,GAAI,CACR,IAAIC,EACJ,OAAOD,EAAID,EAAmB,CAC1BE,EAAO9J,EAAQ2J,EAAcE,EAC7B,IAAIvD,EAAKiD,EAAGO,GAAO,CACfN,EAAEK,GAAKN,EAAEO,GAEbD,GAAK,EAGT,GAAIE,GAAQxD,EAAWT,UAAW,EAClC,IAAIkE,GAAYD,EAAM5D,MACtB,IAAI8D,EACJ,IAAID,EAAYJ,EAAmB,CAC/BC,EAAIF,CACJ,IAAIO,GAAOT,EAAMG,CACjB,OAAOC,EAAIK,EAAM,CACbJ,EAAO9J,EAAQ6J,EAAID,EACnBK,GAAKjK,EAAQ6J,EAAIG,EACjB,IAAI1D,EAAKiD,EAAGO,GAAO,CACfP,EAAEU,GAAMV,EAAEO,OACP,OACIP,GAAEU,GAEbJ,GAAK,EAETA,EAAIJ,CACJ,IAAIU,GAAOV,EAAMG,EAAoBI,CACrC,OAAOH,EAAIM,EAAM,OACNZ,GAAEM,EAAI,EACbA,IAAK,OAEN,IAAIG,EAAYJ,EAAmB,CACtCC,EAAIJ,EAAMG,CACV,OAAOC,EAAIF,EAAa,CACpBG,EAAO9J,EAAQ6J,EAAID,EAAoB,EACvCK,GAAKjK,EAAQ6J,EAAIG,EAAY,EAC7B,IAAI1D,EAAKiD,EAAGO,GAAO,CACfP,EAAEU,GAAMV,EAAEO,OACP,OACIP,GAAEU,GAEbJ,GAAK,GAGbA,EAAIF,CACJ,KAAK,GAAItD,GAAI,EAAGA,EAAI0D,EAAM5D,SAAUE,EAAG,CACnCkD,EAAEM,GAAKE,EAAM1D,EACbwD,IAAK,EAETN,EAAEpD,OAASsD,EAAMG,EAAoBI,CAErC,OAAOR,MAEXJ,KAAqCE,GAEzC,IAAIc,IAAe5K,EAAeyB,IAClC,IAAIoJ,GACJ,KACIA,GAAmB9K,MAAME,UAAUwB,KAAKC,KAAK,MAAO,OAAS,QAC/D,MAAOqB,IACL8H,GAAmB,KAEvB,GAAIA,GAAkB,CAClBxG,EAAiBrE,GACbyB,KAAM,QAASA,MAAKqJ,GAChB,GAAIC,SAAaD,KAAc,YAAc,IAAMA,CACnD,OAAOF,IAAalJ,KAAKgC,EAAS7D,MAAQqH,EAASrH,KAAM,IAAMA,KAAMkL,KAE1EF,IAGP,GAAIG,KAAuB,EAAG,GAAGvJ,KAAKwJ,aAAe,KACrD,IAAID,GAAqB,CACrB3G,EAAiBrE,GACbyB,KAAM,QAASA,MAAKqJ,GAChB,GAAIC,SAAaD,KAAc,YAAc,IAAMA,CACnD,OAAOF,IAAalJ,KAAK7B,KAAMkL,KAEpCC,IAGP,GAAIE,IAAW,QAAS/J,MAAKgK,GACzB,GAAIpB,GAAI3E,EAAGU,SAASjG,KACpB,IAAI0F,GAAIH,EAAGY,SAAS+D,EAAEpD,OACtB,IAAIE,GAAI,CACR,OAAOA,EAAIP,UAAUK,OAAQ,CACzBoD,EAAExE,EAAIsB,GAAKP,UAAUO,EACrBA,IAAK,EAETkD,EAAEpD,OAASpB,EAAIsB,CACf,OAAOtB,GAAIsB,EAGf,IAAIuE,IAAoB,WACpB,GAAInH,KACJ,IAAIwC,GAAS1G,MAAME,UAAUkB,KAAKO,KAAKuC,EAAKgH,UAC5C,OAAOxE,KAAW,GAAKxC,EAAI0C,SAAW,SAAY1C,GAAI,KAAO,cAAgB6C,EAAK7C,EAAK,KAE3FI,GAAiBrE,GACbmB,KAAM,QAASA,MAAKgK,GAChB,GAAIxD,EAAQ9H,MAAO,CACf,MAAOqB,GAAWS,MAAM9B,KAAMyG,WAElC,MAAO4E,IAASvJ,MAAM9B,KAAMyG,aAEjC8E,GAGH,IAAIC,IAAwB,WACxB,GAAIxB,KACJ,IAAIpD,GAASoD,EAAI1I,KAAK8J,UACtB,OAAOxE,KAAW,GAAKoD,EAAIlD,SAAW,SAAYkD,GAAI,KAAO,cAAgB/C,EAAK+C,EAAK,KAE3FxF,GAAiBrE,GAAkBmB,KAAM+J,IAAYG,GAKrDhH,GAAiBrE,GACbe,MAAO,SAAU0I,EAAO6B,GACpB,GAAIzB,GAAMnG,EAAS7D,MAAQqH,EAASrH,KAAM,IAAMA,IAChD,OAAOmH,GAAgB6C,EAAKvD,aAEjCwB,GAEH,IAAIyD,IAA2B,WAC3B,KACK,EAAG,GAAG7D,KAAK,OACX,EAAG,GAAGA,QACP,OAAO,MACT,MAAO3E,IACT,MAAO,SAEX,IAAIyI,IAAqB,WAErB,KACK,EAAG,GAAG9D,KAAK,IACZ,OAAO,OACT,MAAO3E,IACT,MAAO,QAEX,IAAI0I,IAAwB,WAExB,KACK,EAAG,GAAG/D,KAAKuD,UACZ,OAAO,MACT,MAAOlI,IACT,MAAO,SAEXsB,GAAiBrE,GACb0H,KAAM,QAASA,MAAKgE,GAChB,SAAWA,KAAc,YAAa,CAClC,MAAOjE,GAAU5H,MAErB,IAAKuC,EAAWsJ,GAAY,CACxB,KAAM,IAAI7F,WAAU,oDAExB,MAAO4B,GAAU5H,KAAM6L,KAE5BH,KAA4BE,KAAyBD,GAWxD,IAAIG,KAAkBpE,GAASvF,SAAY,MAAQ,WACnD,IAAI4J,IAAkBrE,EAAO,aAAgB,YAC7C,IAAIsE,KAAoB/E,EAAK,IAAK,IAClC,IAAIgF,IAA6B,SAAU/F,GACvC,GAAIgG,GAAOhG,EAAEiG,WACb,OAAOD,IAAQA,EAAK9L,YAAc8F,EAEtC,IAAIkG,KACAC,QAAS,KACTC,SAAU,KACVC,QAAS,KACTC,MAAO,KACPC,OAAQ,KACRC,QAAS,KACTC,cAAe,KACfC,iBAAkB,KAClBC,mBAAoB,KACpBC,UAAW,KAEf,IAAIC,IAA4B,WAE5B,SAAWC,UAAW,YAAa,CAC/B,MAAO,OAEX,IAAK,GAAIxC,KAAKwC,QAAQ,CAClB,IACI,IAAKZ,GAAgB,IAAM5B,IAAMvD,EAAK+F,OAAQxC,IAAMwC,OAAOxC,KAAO,YAAewC,QAAOxC,KAAO,SAAU,CACrGyB,GAA2Be,OAAOxC,KAExC,MAAOtH,GACL,MAAO,OAGf,MAAO,SAEX,IAAI+J,IAAuC,SAAUvI,GACjD,SAAWsI,UAAW,cAAgBD,GAA0B,CAC5D,MAAOd,IAA2BvH,GAEtC,IACI,MAAOuH,IAA2BvH,GACpC,MAAOxB,GACL,MAAO,QAGf,IAAIgK,KACA,WACA,iBACA,UACA,iBACA,gBACA,uBACA,cAEJ,IAAIC,IAAkBD,GAAUpG,MAIhC,IAAIsG,IAAsB,QAASC,aAAY1K,GAC3C,MAAOoD,GAAMpD,KAAW,qBAE5B,IAAI2K,IAAoB,QAASD,aAAY1K,GACzC,MAAOA,KAAU,YACNA,KAAU,gBACVA,GAAMmE,SAAW,UACxBnE,EAAMmE,QAAU,IACfgB,EAAQnF,IACTJ,EAAWI,EAAM4K,QAEzB,IAAIF,IAAcD,GAAoB3G,WAAa2G,GAAsBE,EAEzE9I,GAAiBnE,GACbmN,KAAM,QAASA,MAAK9I,GAChB,GAAI+I,GAAOlL,EAAWmC,EACtB,IAAIgJ,GAASL,GAAY3I,EACzB,IAAIiJ,GAAWjJ,IAAW,YAAeA,KAAW,QACpD,IAAIkJ,GAAQD,GAAY9J,EAASa,EAEjC,KAAKiJ,IAAaF,IAASC,EAAQ,CAC/B,KAAM,IAAI1H,WAAU,sCAGxB,GAAI6H,KACJ,IAAIC,GAAY/B,IAAmB0B,CACnC,IAAKG,GAAS5B,IAAqB0B,EAAQ,CACvC,IAAK,GAAI1G,GAAI,EAAGA,EAAItC,EAAOoC,SAAUE,EAAG,CACpCS,EAASoG,EAASlN,EAAQqG,KAIlC,IAAK0G,EAAQ,CACT,IAAK,GAAI/I,KAAQD,GAAQ,CACrB,KAAMoJ,GAAanJ,IAAS,cAAgBsC,EAAKvC,EAAQC,GAAO,CAC5D8C,EAASoG,EAASlN,EAAQgE,MAKtC,GAAImH,GAAgB,CAChB,GAAIiC,GAAkBd,GAAqCvI,EAC3D,KAAK,GAAIsJ,GAAI,EAAGA,EAAIb,GAAiBa,IAAK,CACtC,GAAIC,GAAWf,GAAUc,EACzB,MAAMD,GAAmBE,IAAa,gBAAkBhH,EAAKvC,EAAQuJ,GAAW,CAC5ExG,EAASoG,EAASI,KAI9B,MAAOJ,KAIf,IAAIK,IAAyB7N,EAAQmN,MAAS,WAE1C,MAAOnN,GAAQmN,KAAK/G,WAAWK,SAAW,GAC5C,EAAG,EACL,IAAIqH,IAA4B9N,EAAQmN,MAAS,WAC7C,GAAIY,GAAU/N,EAAQmN,KAAK/G,UAC3B,OAAOA,WAAUK,SAAW,GAAKsH,EAAQtH,SAAW,GAAKsH,EAAQ,KAAO,GAC1E,EACF,IAAIC,IAAehO,EAAQmN,IAC3BhJ,GAAiBnE,GACbmN,KAAM,QAASA,MAAK9I,GAChB,GAAI2I,GAAY3I,GAAS,CACrB,MAAO2J,IAAanH,EAAWxC,QAC5B,CACH,MAAO2J,IAAa3J,OAG5BwJ,IAA0BC,GAO9B,IAAIG,IAA0B,GAAIC,OAAM,iBAAkBC,gBAAkB,CAC5E,IAAIC,IAAoB,GAAIF,OAAM,gBAClC,IAAIG,IAAoB,GAAIH,MAAK,WACjC,IAAII,IAA0BF,GAAkBG,gBAAkB,iCAClE,IAAIC,GACJ,IAAIC,GACJ,IAAIC,IAAiBN,GAAkBO,mBACvC,IAAID,IAAkB,IAAK,CACvBF,GAA2BJ,GAAkBQ,iBAAmB,mBAChEH,KAAwB,0DAA4D7L,KAAKyL,GAAkBvM,gBACxG,CACH0M,GAA2BJ,GAAkBQ,iBAAmB,mBAChEH,KAAwB,0DAA4D7L,KAAKyL,GAAkBvM,YAG/G,GAAI+M,IAAsBrN,EAAKwE,KAAKkI,KAAKnO,UAAU+O,YACnD,IAAIC,IAAmBvN,EAAKwE,KAAKkI,KAAKnO,UAAUiP,SAChD,IAAIC,IAAkBzN,EAAKwE,KAAKkI,KAAKnO,UAAUmP,QAC/C,IAAIC,IAAyB3N,EAAKwE,KAAKkI,KAAKnO,UAAUqP,eACtD,IAAIC,IAAsB7N,EAAKwE,KAAKkI,KAAKnO,UAAUoO,YACnD,IAAImB,IAAqB9N,EAAKwE,KAAKkI,KAAKnO,UAAUwP,WAClD,IAAIC,IAAoBhO,EAAKwE,KAAKkI,KAAKnO,UAAU0P,UACjD,IAAIC,IAAsBlO,EAAKwE,KAAKkI,KAAKnO,UAAU4P,YACnD,IAAIC,IAAwBpO,EAAKwE,KAAKkI,KAAKnO,UAAU8P,cACrD,IAAIC,IAAwBtO,EAAKwE,KAAKkI,KAAKnO,UAAUgQ,cACrD,IAAIC,IAA6BxO,EAAKwE,KAAKkI,KAAKnO,UAAUkQ,mBAC1D,IAAIC,KAAW,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MACzD,IAAIC,KAAa,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAC9F,IAAIC,IAAc,QAASA,aAAYC,EAAOC,GAC1C,MAAOrB,IAAgB,GAAIf,MAAKoC,EAAMD,EAAO,IAGjDlM,GAAiB+J,KAAKnO,WAClB+O,YAAa,QAASA,eAClB,IAAKnP,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI2K,GAAOzB,GAAoBlP,KAC/B,IAAI2Q,EAAO,GAAKvB,GAAiBpP,MAAQ,GAAI,CACzC,MAAO2Q,GAAO,EAElB,MAAOA,IAEXtB,SAAU,QAASA,YACf,IAAKrP,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI2K,GAAOzB,GAAoBlP,KAC/B,IAAI0Q,GAAQtB,GAAiBpP,KAC7B,IAAI2Q,EAAO,GAAKD,EAAQ,GAAI,CACxB,MAAO,GAEX,MAAOA,IAEXnB,QAAS,QAASA,WACd,IAAKvP,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI2K,GAAOzB,GAAoBlP,KAC/B,IAAI0Q,GAAQtB,GAAiBpP,KAC7B,IAAI4Q,GAAOtB,GAAgBtP,KAC3B,IAAI2Q,EAAO,GAAKD,EAAQ,GAAI,CACxB,GAAIA,IAAU,GAAI,CACd,MAAOE,GAEX,GAAIC,GAAOJ,GAAY,EAAGE,EAAO,EACjC,OAAQE,GAAOD,EAAQ,EAE3B,MAAOA,IAEXnB,eAAgB,QAASA,kBACrB,IAAKzP,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI2K,GAAOnB,GAAuBxP,KAClC,IAAI2Q,EAAO,GAAKjB,GAAoB1P,MAAQ,GAAI,CAC5C,MAAO2Q,GAAO,EAElB,MAAOA,IAEXnC,YAAa,QAASA,eAClB,IAAKxO,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI2K,GAAOnB,GAAuBxP,KAClC,IAAI0Q,GAAQhB,GAAoB1P,KAChC,IAAI2Q,EAAO,GAAKD,EAAQ,GAAI,CACxB,MAAO,GAEX,MAAOA,IAEXd,WAAY,QAASA,cACjB,IAAK5P,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI2K,GAAOnB,GAAuBxP,KAClC,IAAI0Q,GAAQhB,GAAoB1P,KAChC,IAAI4Q,GAAOjB,GAAmB3P,KAC9B,IAAI2Q,EAAO,GAAKD,EAAQ,GAAI,CACxB,GAAIA,IAAU,GAAI,CACd,MAAOE,GAEX,GAAIC,GAAOJ,GAAY,EAAGE,EAAO,EACjC,OAAQE,GAAOD,EAAQ,EAE3B,MAAOA,KAEZtC,GAEH9J,GAAiB+J,KAAKnO,WAClBwO,YAAa,QAASA,eAClB,IAAK5O,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI8K,GAAMjB,GAAkB7P,KAC5B,IAAI4Q,GAAOjB,GAAmB3P,KAC9B,IAAI0Q,GAAQhB,GAAoB1P,KAChC,IAAI2Q,GAAOnB,GAAuBxP,KAClC,IAAI+Q,GAAOhB,GAAoB/P,KAC/B,IAAIgR,GAASf,GAAsBjQ,KACnC,IAAIiR,GAASd,GAAsBnQ,KACnC,OAAOuQ,IAAQO,GAAO,MACjBF,EAAO,GAAK,IAAMA,EAAOA,GAAQ,IAClCJ,GAAUE,GAAS,IACnBC,EAAO,KACNI,EAAO,GAAK,IAAMA,EAAOA,GAAQ,KACjCC,EAAS,GAAK,IAAMA,EAASA,GAAU,KACvCC,EAAS,GAAK,IAAMA,EAASA,GAAU,SAEjD3C,IAA2BK,GAG9BnK,GAAiB+J,KAAKnO,WAClB6O,aAAc,QAASA,gBACnB,IAAKjP,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI8K,GAAM9Q,KAAKkR,QACf,IAAIN,GAAO5Q,KAAKuP,SAChB,IAAImB,GAAQ1Q,KAAKqP,UACjB,IAAIsB,GAAO3Q,KAAKmP,aAChB,OAAOoB,IAAQO,GAAO,IAClBN,GAAUE,GAAS,KAClBE,EAAO,GAAK,IAAMA,EAAOA,GAAQ,IAClCD,IAETrC,IAA2BO,GAG9B,IAAIP,IAA2BQ,GAAsB,CACjDP,KAAKnO,UAAU+B,SAAW,QAASA,YAC/B,IAAKnC,QAAUA,eAAgBuO,OAAO,CAClC,KAAM,IAAIvI,WAAU,8BAExB,GAAI8K,GAAM9Q,KAAKkR,QACf,IAAIN,GAAO5Q,KAAKuP,SAChB,IAAImB,GAAQ1Q,KAAKqP,UACjB,IAAIsB,GAAO3Q,KAAKmP,aAChB,IAAI4B,GAAO/Q,KAAKmR,UAChB,IAAIH,GAAShR,KAAKoR,YAClB,IAAIH,GAASjR,KAAKqR,YAClB,IAAIC,GAAiBtR,KAAKgP,mBAC1B,IAAIuC,GAAcvP,KAAK2D,MAAM3D,KAAK4D,IAAI0L,GAAkB,GACxD,IAAIE,GAAgBxP,KAAK2D,MAAM3D,KAAK4D,IAAI0L,GAAkB,GAC1D,OAAOf,IAAQO,GAAO,IAClBN,GAAUE,GAAS,KAClBE,EAAO,GAAK,IAAMA,EAAOA,GAAQ,IAClCD,EAAO,KACNI,EAAO,GAAK,IAAMA,EAAOA,GAAQ,KACjCC,EAAS,GAAK,IAAMA,EAASA,GAAU,KACvCC,EAAS,GAAK,IAAMA,EAASA,GAAU,QACvCK,EAAiB,EAAI,IAAM,MAC3BC,EAAc,GAAK,IAAMA,EAAcA,IACvCC,EAAgB,GAAK,IAAMA,EAAgBA,GAEpD,IAAItN,EAAqB,CACrB7D,EAAQ8D,eAAeoK,KAAKnO,UAAW,YACnC0E,aAAc,KACdT,WAAY,MACZU,SAAU,QAYtB,GAAI0M,KAAgB,WACpB,IAAIC,IAAqB,SACzB,IAAIC,IAAqBpD,KAAKnO,UAAUwR,aAAe,GAAIrD,MAAKkD,IAAcG,cAAcpK,QAAQkK,OAAyB,CAC7H,IAAIG,IAAqBtD,KAAKnO,UAAUwR,aAAe,GAAIrD,OAAM,GAAGqD,gBAAkB,0BAEtF,IAAIE,IAAUjQ,EAAKwE,KAAKkI,KAAKnO,UAAU0R,QAEvCtN,GAAiB+J,KAAKnO,WAClBwR,YAAa,QAASA,eAClB,IAAKG,SAAS/R,QAAU+R,SAASD,GAAQ9R,OAAQ,CAE7C,KAAM,IAAIgS,YAAW,0DAGzB,GAAIrB,GAAOnB,GAAuBxP,KAElC,IAAI0Q,GAAQhB,GAAoB1P,KAEhC2Q,IAAQ3O,KAAK2D,MAAM+K,EAAQ,GAC3BA,IAASA,EAAQ,GAAK,IAAM,EAG5B,IAAI9J,IAAU8J,EAAQ,EAAGf,GAAmB3P,MAAO+P,GAAoB/P,MAAOiQ,GAAsBjQ,MAAOmQ,GAAsBnQ,MACjI2Q,IACKA,EAAO,EAAI,IAAOA,EAAO,KAAO,IAAM,IACvCvJ,EAAS,QAAUpF,KAAK4D,IAAI+K,GAAQ,GAAKA,GAAQA,GAAQ,MAAS,GAAK,EAG3E,KAAK,GAAI3J,GAAI,EAAGA,EAAIJ,EAAOE,SAAUE,EAAG,CAEpCJ,EAAOI,GAAKI,EAAS,KAAOR,EAAOI,IAAK,GAG5C,MACI2J,GAAO,IAAMzJ,EAAWN,EAAQ,EAAG,GAAGhF,KAAK,KAC3C,IAAMsF,EAAWN,EAAQ,GAAGhF,KAAK,KAAO,IACxCwF,EAAS,MAAQiJ,GAA2BrQ,OAAQ,GAAK,MAGlE2R,IAAsBE,GAMzB,IAAII,IAAyB,WACzB,IACI,MAAO1D,MAAKnO,UAAU8R,QAClB,GAAI3D,MAAK4D,KAAKD,WAAa,MAC3B,GAAI3D,MAAKkD,IAAcS,SAAS1K,QAAQkK,OAAyB,GACjEnD,KAAKnO,UAAU8R,OAAOrQ,MAClB+P,YAAa,WAAc,MAAO,SAE5C,MAAO1O,GACL,MAAO,UAGf,KAAK+O,GAAuB,CACxB1D,KAAKnO,UAAU8R,OAAS,QAASA,QAAOE,GAOpC,GAAIlI,GAAI7J,EAAQL,KAChB,IAAIqS,GAAK9M,EAAGM,YAAYqE,EAExB,UAAWmI,KAAO,WAAaN,SAASM,GAAK,CACzC,MAAO,MAIX,GAAIC,GAAQpI,EAAE0H,WAEd,KAAKrP,EAAW+P,GAAQ,CACpB,KAAM,IAAItM,WAAU,wCAIxB,MAAOsM,GAAMzQ,KAAKqI,IAiB1B,GAAIqI,IAAwBhE,KAAKiE,MAAM,iCAAmC,IAC1E,IAAIC,KAAuBnN,MAAMiJ,KAAKiE,MAAM,+BAAiClN,MAAMiJ,KAAKiE,MAAM,+BAAiClN,MAAMiJ,KAAKiE,MAAM,4BAChJ,IAAIE,IAAyBpN,MAAMiJ,KAAKiE,MAAM,4BAC9C,IAAIE,IAA0BD,KAAwBF,GAAuB,CAKzE,GAAII,IAAuB3Q,KAAK4Q,IAAI,EAAG,IAAM,CAC7C,IAAIC,IAAwBxN,EAAY,GAAIkJ,MAAK,KAAM,EAAG,EAAG,EAAG,EAAG,EAAGoE,GAAuB,GAAGb,UAEhGvD,MAAQ,SAAUuE,GAId,GAAIC,GAAW,QAASxE,MAAKyE,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,GAC3C,GAAIxM,GAASL,UAAUK,MACvB,IAAI8J,EACJ,IAAI5Q,eAAgB8S,GAAY,CAC5B,GAAIS,GAAUF,CACd,IAAIG,GAASF,CACb,IAAIT,IAAyB/L,GAAU,GAAKwM,EAAKX,GAAsB,CAEnE,GAAIc,GAAYzR,KAAK2D,MAAM2N,EAAKX,IAAwBA,EACxD,IAAIe,GAAW1R,KAAK2D,MAAM8N,EAAY,IACtCF,IAAWG,CACXF,IAAUE,EAAW,IAEzB9C,EAAO9J,IAAW,GAAKnG,EAAQqS,KAAOA,EAElC,GAAIF,GAAWC,EAASP,MAAMQ,IAG9BlM,GAAU,EAAI,GAAIgM,GAAWE,EAAGC,EAAGC,EAAGC,EAAGC,EAAGG,EAASC,GACrD1M,GAAU,EAAI,GAAIgM,GAAWE,EAAGC,EAAGC,EAAGC,EAAGC,EAAGG,GAC5CzM,GAAU,EAAI,GAAIgM,GAAWE,EAAGC,EAAGC,EAAGC,EAAGC,GACzCtM,GAAU,EAAI,GAAIgM,GAAWE,EAAGC,EAAGC,EAAGC,GACtCrM,GAAU,EAAI,GAAIgM,GAAWE,EAAGC,EAAGC,GACnCpM,GAAU,EAAI,GAAIgM,GAAWE,EAAGC,GAChCnM,GAAU,EAAI,GAAIgM,GAAWE,YAAaF,IAAcE,EAAIA,GAC9C,GAAIF,OACnB,CACHlC,EAAOkC,EAAWhR,MAAM9B,KAAMyG,WAElC,IAAKvB,EAAY0L,GAAO,CAEpBpM,EAAiBoM,GAAQzE,YAAa4G,GAAY,MAEtD,MAAOnC,GAIX,IAAI+C,GAAoB,GAAIlQ,QAAO,IAC/B,sBAEA,eACA,eACA,MACI,YACA,YACA,MACI,YACA,oBACJ,KACJ,IACI,KACA,MACI,SACA,WACA,YACJ,IACJ,WACJ,IAEA,IAAImQ,IAAU,EAAG,GAAI,GAAI,GAAI,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAErE,IAAIC,GAAe,QAASA,cAAalD,EAAMD,GAC3C,GAAIoD,GAAIpD,EAAQ,EAAI,EAAI,CACxB,OACIkD,GAAOlD,GACP1O,KAAK2D,OAAOgL,EAAO,KAAOmD,GAAK,GAC/B9R,KAAK2D,OAAOgL,EAAO,KAAOmD,GAAK,KAC/B9R,KAAK2D,OAAOgL,EAAO,KAAOmD,GAAK,KAC/B,KAAOnD,EAAO,MAItB,IAAIoD,GAAQ,QAASA,OAAMD,GACvB,GAAIT,GAAI,CACR,IAAIC,GAAKQ,CACT,IAAIjB,IAAyBS,EAAKX,GAAsB,CAEpD,GAAIc,GAAYzR,KAAK2D,MAAM2N,EAAKX,IAAwBA,EACxD,IAAIe,GAAW1R,KAAK2D,MAAM8N,EAAY,IACtCJ,IAAKK,CACLJ,IAAMI,EAAW,IAErB,MAAO5S,GAAQ,GAAIgS,GAAW,KAAM,EAAG,EAAG,EAAG,EAAGO,EAAGC,IAIvD,KAAK,GAAIlB,KAAOU,GAAY,CACxB,GAAI7L,EAAK6L,EAAYV,GAAM,CACvBW,EAASX,GAAOU,EAAWV,IAKnC5N,EAAiBuO,GACbiB,IAAKlB,EAAWkB,IAChBC,IAAKnB,EAAWmB,KACjB,KACHlB,GAAS3S,UAAY0S,EAAW1S,SAChCoE,GAAiBuO,EAAS3S,WACtB+L,YAAa4G,GACd,KAGH,IAAImB,GAAY,QAAS1B,OAAM2B,GAC3B,GAAIC,GAAQT,EAAkBjQ,KAAKyQ,EACnC,IAAIC,EAAO,CAIP,GAAIzD,GAAO7P,EAAQsT,EAAM,IACrB1D,EAAQ5P,EAAQsT,EAAM,IAAM,GAAK,EACjCtD,EAAMhQ,EAAQsT,EAAM,IAAM,GAAK,EAC/BrD,EAAOjQ,EAAQsT,EAAM,IAAM,GAC3BpD,EAASlQ,EAAQsT,EAAM,IAAM,GAC7BnD,EAASnQ,EAAQsT,EAAM,IAAM,GAC7BC,EAAcrS,KAAK2D,MAAM7E,EAAQsT,EAAM,IAAM,GAAK,KAIlDE,EAAcC,QAAQH,EAAM,KAAOA,EAAM,IACzCI,EAAaJ,EAAM,KAAO,IAAM,GAAK,EACrCK,EAAa3T,EAAQsT,EAAM,KAAO,GAClCM,EAAe5T,EAAQsT,EAAM,KAAO,GACpCxN,CACJ,IAAI+N,GAAoC3D,EAAS,GAAKC,EAAS,GAAKoD,EAAc,CAClF,IACItD,GAAQ4D,EAAoC,GAAK,KACjD3D,EAAS,IAAMC,EAAS,IAAMoD,EAAc,KAC5C3D,GAAS,GAAKA,EAAQ,IAAM+D,EAAa,IACzCC,EAAe,IACf5D,GAAO,GACPA,EAAO+C,EAAalD,EAAMD,EAAQ,GAAKmD,EAAalD,EAAMD,GAC5D,CACE9J,IACKiN,EAAalD,EAAMD,GAASI,GAAO,GACpCC,EACA0D,EAAaD,GACb,EACJ5N,KACKA,EAASoK,EAAS0D,EAAeF,GAAc,GAChDvD,GACA,IAAOoD,CACX,IAAIC,EAAa,CACb1N,EAASmN,EAAMnN,GAEnB,IAAK,QAAWA,GAAUA,GAAU,OAAS,CACzC,MAAOA,IAGf,MAAOuL,KAEX,MAAOW,GAAWN,MAAM1Q,MAAM9B,KAAMyG,WAExCjC,GAAiBuO,GAAYP,MAAO0B,GAEpC,OAAOnB,IACTxE,MAMN,IAAKA,KAAKyF,IAAK,CACXzF,KAAKyF,IAAM,QAASA,OAChB,OAAO,GAAIzF,OAAOuD,WAW1B,GAAI8C,IAAiB5T,EAAgB6T,UACnC,KAAUA,QAAQ,KAAO,SACzB,GAAMA,QAAQ,KAAO,KACrB,MAAQA,QAAQ,KAAO,QACvB,kBAAsBA,QAAQ,KAAO,sBAGvC,IAAIC,KACAC,KAAM,IACNC,KAAM,EACNC,MAAO,EAAG,EAAG,EAAG,EAAG,EAAG,GACtBC,SAAU,QAASA,UAASxP,EAAGyP,GAC3B,GAAInO,IAAK,CACT,IAAIoO,GAAKD,CACT,SAASnO,EAAI8N,GAAeE,KAAM,CAC9BI,GAAM1P,EAAIoP,GAAeG,KAAKjO,EAC9B8N,IAAeG,KAAKjO,GAAKoO,EAAKN,GAAeC,IAC7CK,GAAKpT,KAAK2D,MAAMyP,EAAKN,GAAeC,QAG5CM,OAAQ,QAASA,QAAO3P,GACpB,GAAIsB,GAAI8N,GAAeE,IACvB,IAAIG,GAAI,CACR,SAASnO,GAAK,EAAG,CACbmO,GAAKL,GAAeG,KAAKjO,EACzB8N,IAAeG,KAAKjO,GAAKhF,KAAK2D,MAAMwP,EAAIzP,EACxCyP,GAAKA,EAAIzP,EAAKoP,GAAeC,OAGrCO,YAAa,QAASA,eAClB,GAAItO,GAAI8N,GAAeE,IACvB,IAAI3B,GAAI,EACR,SAASrM,GAAK,EAAG,CACb,GAAIqM,IAAM,IAAMrM,IAAM,GAAK8N,GAAeG,KAAKjO,KAAO,EAAG,CACrD,GAAI8M,GAAInT,EAAQmU,GAAeG,KAAKjO,GACpC,IAAIqM,IAAM,GAAI,CACVA,EAAIS,MACD,CACHT,GAAKjM,EAAS,UAAW,EAAG,EAAI0M,EAAEhN,QAAUgN,IAIxD,MAAOT,IAEXT,IAAK,QAASA,KAAIrO,EAAGmB,EAAG6P,GACpB,MAAQ7P,KAAM,EAAI6P,EAAO7P,EAAI,IAAM,EAAIkN,IAAIrO,EAAGmB,EAAI,EAAG6P,EAAMhR,GAAKqO,IAAIrO,EAAIA,EAAGmB,EAAI,EAAG6P,IAEtFC,IAAK,QAASA,KAAIjR,GACd,GAAImB,GAAI,CACR,IAAI+P,GAAKlR,CACT,OAAOkR,GAAM,KAAM,CACf/P,GAAK,EACL+P,IAAM,KAEV,MAAOA,GAAM,EAAG,CACZ/P,GAAK,CACL+P,IAAM,EAEV,MAAO/P,IAIf,IAAIgQ,IAAc,QAASb,SAAQc,GAC/B,GAAIC,GAAGrR,EAAG8O,EAAGD,EAAGlQ,EAAG2S,EAAG7H,EAAGxD,CAGzBoL,GAAI9U,EAAQ6U,EACZC,GAAIvQ,EAAYuQ,GAAK,EAAI5T,KAAK2D,MAAMiQ,EAEpC,IAAIA,EAAI,GAAKA,EAAI,GAAI,CACjB,KAAM,IAAI5D,YAAW,yDAGzBzN,EAAIzD,EAAQd,KAEZ,IAAIqF,EAAYd,GAAI,CAChB,MAAO,MAIX,GAAIA,IAAM,MAAQA,GAAK,KAAM,CACzB,MAAO5D,GAAQ4D,GAGnB8O,EAAI,EAEJ,IAAI9O,EAAI,EAAG,CACP8O,EAAI,GACJ9O,IAAKA,EAGT6O,EAAI,GAEJ,IAAI7O,EAAI,MAAO,CAGXrB,EAAI4R,GAAeU,IAAIjR,EAAIuQ,GAAelC,IAAI,EAAG,GAAI,IAAM,EAC3DiD,GAAK3S,EAAI,EAAIqB,EAAIuQ,GAAelC,IAAI,GAAI1P,EAAG,GAAKqB,EAAIuQ,GAAelC,IAAI,EAAG1P,EAAG,EAC7E2S,IAAK,gBACL3S,GAAI,GAAKA,CAIT,IAAIA,EAAI,EAAG,CACP4R,GAAeI,SAAS,EAAGW,EAC3B7H,GAAI4H,CAEJ,OAAO5H,GAAK,EAAG,CACX8G,GAAeI,SAAS,IAAK,EAC7BlH,IAAK,EAGT8G,GAAeI,SAASJ,GAAelC,IAAI,GAAI5E,EAAG,GAAI,EACtDA,GAAI9K,EAAI,CAER,OAAO8K,GAAK,GAAI,CACZ8G,GAAeO,OAAO,GAAK,GAC3BrH,IAAK,GAGT8G,GAAeO,OAAO,GAAKrH,EAC3B8G,IAAeI,SAAS,EAAG,EAC3BJ,IAAeO,OAAO,EACtBjC,GAAI0B,GAAeQ,kBAChB,CACHR,GAAeI,SAAS,EAAGW,EAC3Bf,IAAeI,SAAS,IAAOhS,EAAI,EACnCkQ,GAAI0B,GAAeQ,cAAgBlO,EAAS,yBAA0B,EAAG,EAAIwO,IAIrF,GAAIA,EAAI,EAAG,CACPpL,EAAI4I,EAAEtM,MAEN,IAAI0D,GAAKoL,EAAG,CACRxC,EAAIC,EAAIjM,EAAS,wBAAyB,EAAGwO,EAAIpL,EAAI,GAAK4I,MACvD,CACHA,EAAIC,EAAIjM,EAASgM,EAAG,EAAG5I,EAAIoL,GAAK,IAAMxO,EAASgM,EAAG5I,EAAIoL,QAEvD,CACHxC,EAAIC,EAAID,EAGZ,MAAOA,GAEX5O,GAAiBxD,GAAmB6T,QAASa,IAAed,GAE5D,IAAIkB,IAA8B,WAC9B,IACI,MAAO,IAAIC,YAAY3K,aAAe,IACxC,MAAOlI,GACL,MAAO,SAGf,IAAI8S,IAAsBhV,EAAgB+U,WAC1CvR,GAAiBxD,GACb+U,YAAa,QAASA,aAAYE,GAC9B,aAAcA,KAAc,YAAcD,GAAoBnU,KAAK7B,MAAQgW,GAAoBnU,KAAK7B,KAAMiW,KAE/GH,GAsBH,IACI,KAAKxO,MAAM,WAAWR,SAAW,GACjC,IAAIQ,MAAM,YAAYR,SAAW,GACjC,QAAQQ,MAAM,QAAQ,KAAO,KAC7B,OAAOA,MAAM,QAAS,GAAGR,SAAW,GACpC,GAAGQ,MAAM,MAAMR,QACf,IAAIQ,MAAM,QAAQR,OAAS,EAC7B,EACG,WACG,GAAIoP,SAA2B,OAASxS,KAAK,IAAI,KAAO,WACxD,IAAIyS,GAAkBnU,KAAK4Q,IAAI,EAAG,IAAM,CAExC/R,GAAgByG,MAAQ,SAAU2D,EAAWmL,GACzC,GAAIjC,GAASvT,OAAOZ,KACpB,UAAWiL,KAAc,aAAemL,IAAU,EAAG,CACjD,SAIJ,IAAK7S,EAAQ0H,GAAY,CACrB,MAAO5D,GAASrH,KAAMiL,EAAWmL,GAGrC,GAAIC,KACJ,IAAIC,IAASrL,EAAUsL,WAAa,IAAM,KAC7BtL,EAAUuL,UAAY,IAAM,KAC5BvL,EAAUwL,QAAU,IAAM,KAC1BxL,EAAUyL,OAAS,IAAM,IAClCC,EAAgB,EAEhBC,EAAYxC,EAAOyC,EAAWC,CAClC,IAAIC,GAAgB,GAAItT,QAAOwH,EAAU+L,OAAQV,EAAQ,IACzD,KAAKJ,EAAmB,CAEpBU,EAAa,GAAInT,QAAO,IAAMsT,EAAcC,OAAS,WAAYV,GASrE,GAAIW,SAAoBb,KAAU,YAAcD,EAAkB5Q,EAAGY,SAASiQ,EAC9EhC,GAAQ2C,EAAcrT,KAAKyQ,EAC3B,OAAOC,EAAO,CAEVyC,EAAYzC,EAAM8C,MAAQ9C,EAAM,GAAGtN,MACnC,IAAI+P,EAAYF,EAAe,CAC3BlP,EAAS4O,EAAQjP,EAAS+M,EAAQwC,EAAevC,EAAM8C,OAGvD,KAAKhB,GAAqB9B,EAAMtN,OAAS,EAAG,CAExCsN,EAAM,GAAGtR,QAAQ8T,EAAY,WACzB,IAAK,GAAI5P,GAAI,EAAGA,EAAIP,UAAUK,OAAS,EAAGE,IAAK,CAC3C,SAAWP,WAAUO,KAAO,YAAa,CACrCoN,EAAMpN,OAAU,OAMhC,GAAIoN,EAAMtN,OAAS,GAAKsN,EAAM8C,MAAQ/C,EAAOrN,OAAQ,CACjDzF,EAAWS,MAAMuU,EAAQnP,EAAWkN,EAAO,IAE/C0C,EAAa1C,EAAM,GAAGtN,MACtB6P,GAAgBE,CAChB,IAAIR,EAAOvP,QAAUmQ,EAAY,CAC7B,OAGR,GAAIF,EAAcF,YAAczC,EAAM8C,MAAO,CACzCH,EAAcF,YAElBzC,EAAQ2C,EAAcrT,KAAKyQ,GAE/B,GAAIwC,IAAkBxC,EAAOrN,OAAQ,CACjC,GAAIgQ,IAAeC,EAAc9T,KAAK,IAAK,CACvCwE,EAAS4O,EAAQ,SAElB,CACH5O,EAAS4O,EAAQjP,EAAS+M,EAAQwC,IAEtC,MAAON,GAAOvP,OAASmQ,EAAa/P,EAAWmP,EAAQ,EAAGY,GAAcZ,WAU7E,IAAI,IAAI/O,UAAW,GAAG,GAAGR,OAAQ,CACpCjG,EAAgByG,MAAQ,QAASA,OAAM2D,EAAWmL,GAC9C,SAAWnL,KAAc,aAAemL,IAAU,EAAG,CACjD,SAEJ,MAAO/O,GAASrH,KAAMiL,EAAWmL,IAIzC,GAAIe,IAActW,EAAgBiC,OAClC,IAAIsU,IAAiC,WACjC,GAAIC,KACJ,KAAIvU,QAAQ,SAAU,SAAUsR,EAAOkD,GACnC7P,EAAS4P,EAAQC,IAErB,OAAOD,GAAOvQ,SAAW,SAAYuQ,GAAO,KAAO,cAGvD,KAAKD,GAA+B,CAChCvW,EAAgBiC,QAAU,QAASA,SAAQyU,EAAaC,GACpD,GAAI/J,GAAOlL,EAAWiV,EACtB,IAAIC,GAAqBlU,EAAQgU,IAAgB,SAAWtU,KAAKsU,EAAYP,OAC7E,KAAKvJ,IAASgK,EAAoB,CAC9B,MAAON,IAAYtV,KAAK7B,KAAMuX,EAAaC,OACxC,CACH,GAAIE,GAAsB,SAAUtD,GAChC,GAAItN,GAASL,UAAUK,MACvB,IAAI6Q,GAAoBJ,EAAYV,SACpCU,GAAYV,UAAY,CACxB,IAAIrQ,GAAO+Q,EAAY7T,KAAK0Q,MAC5BmD,GAAYV,UAAYc,CACxBlQ,GAASjB,EAAMC,UAAUK,EAAS,GAAIL,UAAUK,EAAS,GACzD,OAAO0Q,GAAa1V,MAAM9B,KAAMwG,GAEpC,OAAO2Q,IAAYtV,KAAK7B,KAAMuX,EAAaG,KAUvD,GAAIE,IAAgB/W,EAAgBgX,MACpC,IAAIC,IAAuB,GAAGD,QAAU,KAAKA,QAAQ,KAAO,GAC5DrT,GAAiB3D,GACbgX,OAAQ,QAASA,QAAOjO,EAAO9C,GAC3B,GAAIiR,GAAkBnO,CACtB,IAAIA,EAAQ,EAAG,CACXmO,EAAkBhW,EAAI/B,KAAK8G,OAAS8C,EAAO,GAE/C,MAAOgO,IAAc/V,KAAK7B,KAAM+X,EAAiBjR,KAEtDgR,GAIH,IAAIE,IAAK,uDACL,qEACA,cACJ,IAAIC,IAAY,QAChB,IAAIC,IAAe,IAAMF,GAAK,GAC9B,IAAIG,IAAkB,GAAI1U,QAAO,IAAMyU,GAAeA,GAAe,IACrE,IAAIE,IAAgB,GAAI3U,QAAOyU,GAAeA,GAAe,KAC7D,IAAIG,IAAuBxX,EAAgByX,OAASN,GAAGM,SAAWL,GAAUK,OAC5E9T,GAAiB3D,GAGbyX,KAAM,QAASA,QACX,SAAWtY,QAAS,aAAeA,OAAS,KAAM,CAC9C,KAAM,IAAIgG,WAAU,iBAAmBhG,KAAO,cAElD,MAAOW,GAAQX,MAAM8C,QAAQqV,GAAiB,IAAIrV,QAAQsV,GAAe,MAE9EC,GACH,IAAIC,IAAOzW,EAAKwE,KAAKzF,OAAOR,UAAUkY,KAEtC,IAAIC,IAAkB1X,EAAgB4I,aAAe,kBAAQA,YAAY,eAAM,MAAQ,CACvFjF,GAAiB3D,GACb4I,YAAa,QAASA,aAAY+O,GAC9B,SAAWxY,QAAS,aAAeA,OAAS,KAAM,CAC9C,KAAM,IAAIgG,WAAU,iBAAmBhG,KAAO,cAElD,GAAIyY,GAAI9X,EAAQX,KAChB,IAAI0Y,GAAY/X,EAAQ6X,EACxB,IAAIG,GAASlS,UAAUK,OAAS,EAAIhG,EAAQ2F,UAAU,IAAM0L,GAC5D,IAAIyG,GAAMvT,EAAYsT,GAAUE,SAAWtT,EAAGC,UAAUmT,EACxD,IAAI/O,GAAQ3H,EAAIF,EAAI6W,EAAK,GAAIH,EAAE3R,OAC/B,IAAIgS,GAAYJ,EAAU5R,MAC1B,IAAI0D,GAAIZ,EAAQkP,CAChB,OAAOtO,EAAI,EAAG,CACVA,EAAIzI,EAAI,EAAGyI,EAAIsO,EACf,IAAI5B,GAAQ3P,EAAWH,EAASqR,EAAGjO,EAAGZ,EAAQkP,GAAYJ,EAC1D,IAAIxB,KAAW,EAAG,CACd,MAAO1M,GAAI0M,GAGnB,OAAQ,IAEbqB,GAEH,IAAIQ,IAAsBlY,EAAgB4I,WAC1CjF,GAAiB3D,GACb4I,YAAa,QAASA,aAAY+O,GAC9B,MAAOO,IAAoBjX,MAAM9B,KAAMyG,aAE5C5F,EAAgB4I,YAAY3C,SAAW,EAI1C,IAAIkS,SAAShB,GAAK,QAAU,GAAKgB,SAAShB,GAAK,UAAY,GAAI,CAG3DgB,SAAY,SAAUC,GAClB,GAAIC,GAAW,cACf,OAAO,SAASF,UAASG,EAAKC,GAC1B,GAAIjF,GAASmE,GAAK1X,OAAOuY,GACzB,IAAIE,GAAiBvY,EAAQsY,KAAWF,EAASjW,KAAKkR,GAAU,GAAK,GACrE,OAAO8E,GAAa9E,EAAQkF,KAElCL,UAIN,GAAI,EAAIM,WAAW,SAAWT,SAAU,CAEpCS,WAAc,SAAUC,GACpB,MAAO,SAASD,YAAWnF,GACvB,GAAIqF,GAAclB,GAAK1X,OAAOuT,GAC9B,IAAIvN,GAAS2S,EAAeC,EAC5B,OAAO5S,KAAW,GAAKQ,EAASoS,EAAa,EAAG,KAAO,KAAO,EAAI5S,IAExE0S,YAGN,GAAI1Y,OAAO,GAAIoR,YAAW,WAAa,mBAAoB,CACvD,GAAIyH,IAAoB,QAAStX,YAC7B,SAAWnC,QAAS,aAAeA,OAAS,KAAM,CAC9C,KAAM,IAAIgG,WAAU,iBAAmBhG,KAAO,cAElD,GAAI2E,GAAO3E,KAAK2E,IAChB,UAAWA,KAAS,YAAa,CAC7BA,EAAO,YACJ,UAAWA,KAAS,SAAU,CACjCA,EAAOhE,EAAQgE,GAEnB,GAAI+U,GAAM1Z,KAAK2Z,OACf,UAAWD,KAAQ,YAAa,CAC5BA,EAAM,OACH,UAAWA,KAAQ,SAAU,CAChCA,EAAM/Y,EAAQ+Y,GAElB,IAAK/U,EAAM,CACP,MAAO+U,GAEX,IAAKA,EAAK,CACN,MAAO/U,GAEX,MAAOA,GAAO,KAAO+U,EAGzBE,OAAMxZ,UAAU+B,SAAWsX,GAG/B,GAAIvV,EAAqB,CACrB,GAAI2V,IAAsB,SAAUzV,EAAK0V,GACrC,GAAIpS,EAAOtD,EAAK0V,GAAO,CACnB,GAAIC,GAAOzZ,OAAO0Z,yBAAyB5V,EAAK0V,EAChD,IAAIC,EAAKjV,aAAc,CACnBiV,EAAK1V,WAAa,KAClB/D,QAAO6D,eAAeC,EAAK0V,EAAMC,KAI7CF,IAAoBD,MAAMxZ,UAAW,UACrC,IAAIwZ,MAAMxZ,UAAUuZ,UAAY,GAAI,CAChCC,MAAMxZ,UAAUuZ,QAAU,GAE9BE,GAAoBD,MAAMxZ,UAAW,QAGzC,GAAIQ,OAAO,UAAY,SAAU,CAC7B,GAAIqZ,IAAgB,QAAS9X,YACzB,GAAIgX,GAAM,IAAMnZ,KAAKgX,OAAS,GAC9B,IAAIhX,KAAKka,OAAQ,CACbf,GAAO,IAEX,GAAInZ,KAAKuW,WAAY,CACjB4C,GAAO,IAEX,GAAInZ,KAAKwW,UAAW,CAChB2C,GAAO,IAEX,MAAOA,GAGX1V,QAAOrD,UAAU+B,SAAW8X"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.min.js b/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.min.js
deleted file mode 100644
index 14b24f15..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/es5-shim.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * https://github.com/es-shims/es5-shim
- * @license es5-shim Copyright 2009-2015 by contributors, MIT License
- * see https://github.com/es-shims/es5-shim/blob/v4.5.9/LICENSE
- */
-(function(t,r){"use strict";if(typeof define==="function"&&define.amd){define(r)}else if(typeof exports==="object"){module.exports=r()}else{t.returnExports=r()}})(this,function(){var t=Array;var r=t.prototype;var e=Object;var n=e.prototype;var i=Function;var a=i.prototype;var o=String;var f=o.prototype;var u=Number;var l=u.prototype;var s=r.slice;var c=r.splice;var v=r.push;var h=r.unshift;var p=r.concat;var y=r.join;var d=a.call;var g=a.apply;var w=Math.max;var b=Math.min;var T=n.toString;var m=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var D;var S=Function.prototype.toString,x=/^\s*class /,O=function isES6ClassFn(t){try{var r=S.call(t);var e=r.replace(/\/\/.*\n/g,"");var n=e.replace(/\/\*[.\s\S]*\*\//g,"");var i=n.replace(/\n/gm," ").replace(/ {2}/g," ");return x.test(i)}catch(a){return false}},j=function tryFunctionObject(t){try{if(O(t)){return false}S.call(t);return true}catch(r){return false}},E="[object Function]",I="[object GeneratorFunction]",D=function isCallable(t){if(!t){return false}if(typeof t!=="function"&&typeof t!=="object"){return false}if(m){return j(t)}if(O(t)){return false}var r=T.call(t);return r===E||r===I};var M;var U=RegExp.prototype.exec,F=function tryRegexExec(t){try{U.call(t);return true}catch(r){return false}},N="[object RegExp]";M=function isRegex(t){if(typeof t!=="object"){return false}return m?F(t):T.call(t)===N};var C;var k=String.prototype.valueOf,A=function tryStringObject(t){try{k.call(t);return true}catch(r){return false}},R="[object String]";C=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return m?A(t):T.call(t)===R};var P=e.defineProperty&&function(){try{var t={};e.defineProperty(t,"x",{enumerable:false,value:t});for(var r in t){return false}return t.x===t}catch(n){return false}}();var $=function(t){var r;if(P){r=function(t,r,n,i){if(!i&&r in t){return}e.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:n})}}else{r=function(t,r,e,n){if(!n&&r in t){return}t[r]=e}}return function defineProperties(e,n,i){for(var a in n){if(t.call(n,a)){r(e,a,n[a],i)}}}}(n.hasOwnProperty);var J=function isPrimitive(t){var r=typeof t;return t===null||r!=="object"&&r!=="function"};var Y=u.isNaN||function isActualNaN(t){return t!==t};var Z={ToInteger:function ToInteger(t){var r=+t;if(Y(r)){r=0}else if(r!==0&&r!==1/0&&r!==-(1/0)){r=(r>0||-1)*Math.floor(Math.abs(r))}return r},ToPrimitive:function ToPrimitive(t){var r,e,n;if(J(t)){return t}e=t.valueOf;if(D(e)){r=e.call(t);if(J(r)){return r}}n=t.toString;if(D(n)){r=n.call(t);if(J(r)){return r}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return e(t)},ToUint32:function ToUint32(t){return t>>>0}};var z=function Empty(){};$(a,{bind:function bind(t){var r=this;if(!D(r)){throw new TypeError("Function.prototype.bind called on incompatible "+r)}var n=s.call(arguments,1);var a;var o=function(){if(this instanceof a){var i=g.call(r,this,p.call(n,s.call(arguments)));if(e(i)===i){return i}return this}else{return g.call(r,t,p.call(n,s.call(arguments)))}};var f=w(0,r.length-n.length);var u=[];for(var l=0;l<f;l++){v.call(u,"$"+l)}a=i("binder","return function ("+y.call(u,",")+"){ return binder.apply(this, arguments); }")(o);if(r.prototype){z.prototype=r.prototype;a.prototype=new z;z.prototype=null}return a}});var G=d.bind(n.hasOwnProperty);var B=d.bind(n.toString);var H=d.bind(s);var W=g.bind(s);var L=d.bind(f.slice);var X=d.bind(f.split);var q=d.bind(f.indexOf);var K=d.bind(v);var Q=d.bind(n.propertyIsEnumerable);var V=d.bind(r.sort);var _=t.isArray||function isArray(t){return B(t)==="[object Array]"};var tt=[].unshift(0)!==1;$(r,{unshift:function(){h.apply(this,arguments);return this.length}},tt);$(t,{isArray:_});var rt=e("a");var et=rt[0]!=="a"||!(0 in rt);var nt=function properlyBoxed(t){var r=true;var e=true;var n=false;if(t){try{t.call("foo",function(t,e,n){if(typeof n!=="object"){r=false}});t.call([1],function(){"use strict";e=typeof this==="string"},"x")}catch(i){n=true}}return!!t&&!n&&r&&e};$(r,{forEach:function forEach(t){var r=Z.ToObject(this);var e=et&&C(this)?X(this,""):r;var n=-1;var i=Z.ToUint32(e.length);var a;if(arguments.length>1){a=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n<i){if(n in e){if(typeof a==="undefined"){t(e[n],n,r)}else{t.call(a,e[n],n,r)}}}}},!nt(r.forEach));$(r,{map:function map(r){var e=Z.ToObject(this);var n=et&&C(this)?X(this,""):e;var i=Z.ToUint32(n.length);var a=t(i);var o;if(arguments.length>1){o=arguments[1]}if(!D(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var f=0;f<i;f++){if(f in n){if(typeof o==="undefined"){a[f]=r(n[f],f,e)}else{a[f]=r.call(o,n[f],f,e)}}}return a}},!nt(r.map));$(r,{filter:function filter(t){var r=Z.ToObject(this);var e=et&&C(this)?X(this,""):r;var n=Z.ToUint32(e.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var f=0;f<n;f++){if(f in e){a=e[f];if(typeof o==="undefined"?t(a,f,r):t.call(o,a,f,r)){K(i,a)}}}return i}},!nt(r.filter));$(r,{every:function every(t){var r=Z.ToObject(this);var e=et&&C(this)?X(this,""):r;var n=Z.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a<n;a++){if(a in e&&!(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return false}}return true}},!nt(r.every));$(r,{some:function some(t){var r=Z.ToObject(this);var e=et&&C(this)?X(this,""):r;var n=Z.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a<n;a++){if(a in e&&(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return true}}return false}},!nt(r.some));var it=false;if(r.reduce){it=typeof r.reduce.call("es5",function(t,r,e,n){return n})==="object"}$(r,{reduce:function reduce(t){var r=Z.ToObject(this);var e=et&&C(this)?X(this,""):r;var n=Z.ToUint32(e.length);if(!D(t)){throw new TypeError("Array.prototype.reduce callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduce of empty array with no initial value")}var i=0;var a;if(arguments.length>=2){a=arguments[1]}else{do{if(i in e){a=e[i++];break}if(++i>=n){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;i<n;i++){if(i in e){a=t(a,e[i],i,r)}}return a}},!it);var at=false;if(r.reduceRight){at=typeof r.reduceRight.call("es5",function(t,r,e,n){return n})==="object"}$(r,{reduceRight:function reduceRight(t){var r=Z.ToObject(this);var e=et&&C(this)?X(this,""):r;var n=Z.ToUint32(e.length);if(!D(t)){throw new TypeError("Array.prototype.reduceRight callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduceRight of empty array with no initial value")}var i;var a=n-1;if(arguments.length>=2){i=arguments[1]}else{do{if(a in e){i=e[a--];break}if(--a<0){throw new TypeError("reduceRight of empty array with no initial value")}}while(true)}if(a<0){return i}do{if(a in e){i=t(i,e[a],a,r)}}while(a--);return i}},!at);var ot=r.indexOf&&[0,1].indexOf(1,2)!==-1;$(r,{indexOf:function indexOf(t){var r=et&&C(this)?X(this,""):Z.ToObject(this);var e=Z.ToUint32(r.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=Z.ToInteger(arguments[1])}n=n>=0?n:w(0,e+n);for(;n<e;n++){if(n in r&&r[n]===t){return n}}return-1}},ot);var ft=r.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;$(r,{lastIndexOf:function lastIndexOf(t){var r=et&&C(this)?X(this,""):Z.ToObject(this);var e=Z.ToUint32(r.length);if(e===0){return-1}var n=e-1;if(arguments.length>1){n=b(n,Z.ToInteger(arguments[1]))}n=n>=0?n:e-Math.abs(n);for(;n>=0;n--){if(n in r&&t===r[n]){return n}}return-1}},ft);var ut=function(){var t=[1,2];var r=t.splice();return t.length===2&&_(r)&&r.length===0}();$(r,{splice:function splice(t,r){if(arguments.length===0){return[]}else{return c.apply(this,arguments)}}},!ut);var lt=function(){var t={};r.splice.call(t,0,0,1);return t.length===1}();$(r,{splice:function splice(t,r){if(arguments.length===0){return[]}var e=arguments;this.length=w(Z.ToInteger(this.length),0);if(arguments.length>0&&typeof r!=="number"){e=H(arguments);if(e.length<2){K(e,this.length-t)}else{e[1]=Z.ToInteger(r)}}return c.apply(this,e)}},!lt);var st=function(){var r=new t(1e5);r[8]="x";r.splice(1,1);return r.indexOf("x")===7}();var ct=function(){var t=256;var r=[];r[t]="a";r.splice(t+1,0,"b");return r[t]==="a"}();$(r,{splice:function splice(t,r){var e=Z.ToObject(this);var n=[];var i=Z.ToUint32(e.length);var a=Z.ToInteger(t);var f=a<0?w(i+a,0):b(a,i);var u=b(w(Z.ToInteger(r),0),i-f);var l=0;var s;while(l<u){s=o(f+l);if(G(e,s)){n[l]=e[s]}l+=1}var c=H(arguments,2);var v=c.length;var h;if(v<u){l=f;var p=i-u;while(l<p){s=o(l+u);h=o(l+v);if(G(e,s)){e[h]=e[s]}else{delete e[h]}l+=1}l=i;var y=i-u+v;while(l>y){delete e[l-1];l-=1}}else if(v>u){l=i-u;while(l>f){s=o(l+u-1);h=o(l+v-1);if(G(e,s)){e[h]=e[s]}else{delete e[h]}l-=1}}l=f;for(var d=0;d<c.length;++d){e[l]=c[d];l+=1}e.length=i-u+v;return n}},!st||!ct);var vt=r.join;var ht;try{ht=Array.prototype.join.call("123",",")!=="1,2,3"}catch(pt){ht=true}if(ht){$(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return vt.call(C(this)?X(this,""):this,r)}},ht)}var yt=[1,2].join(undefined)!=="1,2";if(yt){$(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return vt.call(this,r)}},yt)}var dt=function push(t){var r=Z.ToObject(this);var e=Z.ToUint32(r.length);var n=0;while(n<arguments.length){r[e+n]=arguments[n];n+=1}r.length=e+n;return e+n};var gt=function(){var t={};var r=Array.prototype.push.call(t,undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!G(t,0)}();$(r,{push:function push(t){if(_(this)){return v.apply(this,arguments)}return dt.apply(this,arguments)}},gt);var wt=function(){var t=[];var r=t.push(undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!G(t,0)}();$(r,{push:dt},wt);$(r,{slice:function(t,r){var e=C(this)?X(this,""):this;return W(e,arguments)}},et);var bt=function(){try{[1,2].sort(null);[1,2].sort({});return true}catch(t){}return false}();var Tt=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var mt=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();$(r,{sort:function sort(t){if(typeof t==="undefined"){return V(this)}if(!D(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return V(this,t)}},bt||!mt||!Tt);var Dt=!Q({toString:null},"toString");var St=Q(function(){},"prototype");var xt=!G("x","0");var Ot=function(t){var r=t.constructor;return r&&r.prototype===t};var jt={$window:true,$console:true,$parent:true,$self:true,$frame:true,$frames:true,$frameElement:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$external:true};var Et=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!jt["$"+t]&&G(window,t)&&window[t]!==null&&typeof window[t]==="object"){Ot(window[t])}}catch(r){return true}}return false}();var It=function(t){if(typeof window==="undefined"||!Et){return Ot(t)}try{return Ot(t)}catch(r){return false}};var Mt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Ut=Mt.length;var Ft=function isArguments(t){return B(t)==="[object Arguments]"};var Nt=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!_(t)&&D(t.callee)};var Ct=Ft(arguments)?Ft:Nt;$(e,{keys:function keys(t){var r=D(t);var e=Ct(t);var n=t!==null&&typeof t==="object";var i=n&&C(t);if(!n&&!r&&!e){throw new TypeError("Object.keys called on a non-object")}var a=[];var f=St&&r;if(i&&xt||e){for(var u=0;u<t.length;++u){K(a,o(u))}}if(!e){for(var l in t){if(!(f&&l==="prototype")&&G(t,l)){K(a,o(l))}}}if(Dt){var s=It(t);for(var c=0;c<Ut;c++){var v=Mt[c];if(!(s&&v==="constructor")&&G(t,v)){K(a,v)}}}return a}});var kt=e.keys&&function(){return e.keys(arguments).length===2}(1,2);var At=e.keys&&function(){var t=e.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var Rt=e.keys;$(e,{keys:function keys(t){if(Ct(t)){return Rt(H(t))}else{return Rt(t)}}},!kt||At);var Pt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var $t=new Date(-0x55d318d56a724);var Jt=new Date(14496624e5);var Yt=$t.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var Zt;var zt;var Gt=$t.getTimezoneOffset();if(Gt<-720){Zt=$t.toDateString()!=="Tue Jan 02 -45875";zt=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Jt.toString())}else{Zt=$t.toDateString()!=="Mon Jan 01 -45875";zt=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Jt.toString())}var Bt=d.bind(Date.prototype.getFullYear);var Ht=d.bind(Date.prototype.getMonth);var Wt=d.bind(Date.prototype.getDate);var Lt=d.bind(Date.prototype.getUTCFullYear);var Xt=d.bind(Date.prototype.getUTCMonth);var qt=d.bind(Date.prototype.getUTCDate);var Kt=d.bind(Date.prototype.getUTCDay);var Qt=d.bind(Date.prototype.getUTCHours);var Vt=d.bind(Date.prototype.getUTCMinutes);var _t=d.bind(Date.prototype.getUTCSeconds);var tr=d.bind(Date.prototype.getUTCMilliseconds);var rr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var er=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var nr=function daysInMonth(t,r){return Wt(new Date(r,t,0))};$(Date.prototype,{getFullYear:function getFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Bt(this);if(t<0&&Ht(this)>11){return t+1}return t},getMonth:function getMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Bt(this);var r=Ht(this);if(t<0&&r>11){return 0}return r},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Bt(this);var r=Ht(this);var e=Wt(this);if(t<0&&r>11){if(r===12){return e}var n=nr(0,t+1);return n-e+1}return e},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Lt(this);if(t<0&&Xt(this)>11){return t+1}return t},getUTCMonth:function getUTCMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Lt(this);var r=Xt(this);if(t<0&&r>11){return 0}return r},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Lt(this);var r=Xt(this);var e=qt(this);if(t<0&&r>11){if(r===12){return e}var n=nr(0,t+1);return n-e+1}return e}},Pt);$(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Kt(this);var r=qt(this);var e=Xt(this);var n=Lt(this);var i=Qt(this);var a=Vt(this);var o=_t(this);return rr[t]+", "+(r<10?"0"+r:r)+" "+er[e]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Pt||Yt);$(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();return rr[t]+" "+er[e]+" "+(r<10?"0"+r:r)+" "+n}},Pt||Zt);if(Pt||zt){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var f=this.getTimezoneOffset();var u=Math.floor(Math.abs(f)/60);var l=Math.floor(Math.abs(f)%60);return rr[t]+" "+er[e]+" "+(r<10?"0"+r:r)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(f>0?"-":"+")+(u<10?"0"+u:u)+(l<10?"0"+l:l)};if(P){e.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var ir=-621987552e5;var ar="-000001";var or=Date.prototype.toISOString&&new Date(ir).toISOString().indexOf(ar)===-1;var fr=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";var ur=d.bind(Date.prototype.getTime);$(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)||!isFinite(ur(this))){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=Lt(this);var r=Xt(this);t+=Math.floor(r/12);r=(r%12+12)%12;var e=[r+1,qt(this),Qt(this),Vt(this),_t(this)];t=(t<0?"-":t>9999?"+":"")+L("00000"+Math.abs(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<e.length;++n){e[n]=L("00"+e[n],-2)}return t+"-"+H(e,0,2).join("-")+"T"+H(e,2).join(":")+"."+L("000"+tr(this),-3)+"Z"}},or||fr);var lr=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(ir).toJSON().indexOf(ar)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!lr){Date.prototype.toJSON=function toJSON(t){var r=e(this);var n=Z.ToPrimitive(r);if(typeof n==="number"&&!isFinite(n)){return null}var i=r.toISOString;if(!D(i)){throw new TypeError("toISOString property is not callable")}return i.call(r)}}var sr=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var cr=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));var vr=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(vr||cr||!sr){var hr=Math.pow(2,31)-1;var pr=Y(new Date(1970,0,1,0,0,0,hr+1).getTime());Date=function(t){var r=function Date(e,n,i,a,f,u,l){var s=arguments.length;var c;if(this instanceof t){var v=u;var h=l;if(pr&&s>=7&&l>hr){var p=Math.floor(l/hr)*hr;var y=Math.floor(p/1e3);v+=y;h-=y*1e3}c=s===1&&o(e)===e?new t(r.parse(e)):s>=7?new t(e,n,i,a,f,v,h):s>=6?new t(e,n,i,a,f,v):s>=5?new t(e,n,i,a,f):s>=4?new t(e,n,i,a):s>=3?new t(e,n,i):s>=2?new t(e,n):s>=1?new t(e instanceof t?+e:e):new t}else{c=t.apply(this,arguments)}if(!J(c)){$(c,{constructor:r},true)}return c};var e=new RegExp("^"+"(\\d{4}|[+-]\\d{6})"+"(?:-(\\d{2})"+"(?:-(\\d{2})"+"(?:"+"T(\\d{2})"+":(\\d{2})"+"(?:"+":(\\d{2})"+"(?:(\\.\\d{1,}))?"+")?"+"("+"Z|"+"(?:"+"([-+])"+"(\\d{2})"+":(\\d{2})"+")"+")?)?)?)?"+"$");var n=[0,31,59,90,120,151,181,212,243,273,304,334,365];var i=function dayFromMonth(t,r){var e=r>1?1:0;return n[r]+Math.floor((t-1969+e)/4)-Math.floor((t-1901+e)/100)+Math.floor((t-1601+e)/400)+365*(t-1970)};var a=function toUTC(r){var e=0;var n=r;if(pr&&n>hr){var i=Math.floor(n/hr)*hr;var a=Math.floor(i/1e3);e+=a;n-=a*1e3}return u(new t(1970,0,1,0,0,e,n))};for(var f in t){if(G(t,f)){r[f]=t[f]}}$(r,{now:t.now,UTC:t.UTC},true);r.prototype=t.prototype;$(r.prototype,{constructor:r},true);var l=function parse(r){var n=e.exec(r);if(n){var o=u(n[1]),f=u(n[2]||1)-1,l=u(n[3]||1)-1,s=u(n[4]||0),c=u(n[5]||0),v=u(n[6]||0),h=Math.floor(u(n[7]||0)*1e3),p=Boolean(n[4]&&!n[8]),y=n[9]==="-"?1:-1,d=u(n[10]||0),g=u(n[11]||0),w;var b=c>0||v>0||h>0;if(s<(b?24:25)&&c<60&&v<60&&h<1e3&&f>-1&&f<12&&d<24&&g<60&&l>-1&&l<i(o,f+1)-i(o,f)){w=((i(o,f)+l)*24+s+d*y)*60;w=((w+c+g*y)*60+v)*1e3+h;if(p){w=a(w)}if(-864e13<=w&&w<=864e13){return w}}return NaN}return t.parse.apply(this,arguments)};$(r,{parse:l});return r}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var yr=l.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128");var dr={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,r){var e=-1;var n=r;while(++e<dr.size){n+=t*dr.data[e];dr.data[e]=n%dr.base;n=Math.floor(n/dr.base)}},divide:function divide(t){var r=dr.size;var e=0;while(--r>=0){e+=dr.data[r];dr.data[r]=Math.floor(e/t);e=e%t*dr.base}},numToString:function numToString(){var t=dr.size;var r="";while(--t>=0){if(r!==""||t===0||dr.data[t]!==0){var e=o(dr.data[t]);if(r===""){r=e}else{r+=L("0000000",0,7-e.length)+e}}}return r},pow:function pow(t,r,e){return r===0?e:r%2===1?pow(t,r-1,e*t):pow(t*t,r/2,e)},log:function log(t){var r=0;var e=t;while(e>=4096){r+=12;e/=4096}while(e>=2){r+=1;e/=2}return r}};var gr=function toFixed(t){var r,e,n,i,a,f,l,s;r=u(t);r=Y(r)?0:Math.floor(r);if(r<0||r>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}e=u(this);if(Y(e)){return"NaN"}if(e<=-1e21||e>=1e21){return o(e)}n="";if(e<0){n="-";e=-e}i="0";if(e>1e-21){a=dr.log(e*dr.pow(2,69,1))-69;f=a<0?e*dr.pow(2,-a,1):e/dr.pow(2,a,1);f*=4503599627370496;a=52-a;if(a>0){dr.multiply(0,f);l=r;while(l>=7){dr.multiply(1e7,0);l-=7}dr.multiply(dr.pow(10,l,1),0);l=a-1;while(l>=23){dr.divide(1<<23);l-=23}dr.divide(1<<l);dr.multiply(1,1);dr.divide(2);i=dr.numToString()}else{dr.multiply(0,f);dr.multiply(1<<-a,0);i=dr.numToString()+L("0.00000000000000000000",2,2+r)}}if(r>0){s=i.length;if(s<=r){i=n+L("0.0000000000000000000",0,r-s+2)+i}else{i=n+L(i,0,s-r)+"."+L(i,s-r)}}else{i=n+i}return i};$(l,{toFixed:gr},yr);var wr=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var br=l.toPrecision;$(l,{toPrecision:function toPrecision(t){return typeof t==="undefined"?br.call(this):br.call(this,t)}},wr);if("ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1){(function(){var t=typeof/()??/.exec("")[1]==="undefined";var r=Math.pow(2,32)-1;f.split=function(e,n){var i=String(this);if(typeof e==="undefined"&&n===0){return[]}if(!M(e)){return X(this,e,n)}var a=[];var o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,u,l,s,c;var h=new RegExp(e.source,o+"g");if(!t){u=new RegExp("^"+h.source+"$(?!\\s)",o)}var p=typeof n==="undefined"?r:Z.ToUint32(n);l=h.exec(i);while(l){s=l.index+l[0].length;if(s>f){K(a,L(i,f,l.index));if(!t&&l.length>1){l[0].replace(u,function(){for(var t=1;t<arguments.length-2;t++){if(typeof arguments[t]==="undefined"){l[t]=void 0}}})}if(l.length>1&&l.index<i.length){v.apply(a,H(l,1))}c=l[0].length;f=s;if(a.length>=p){break}}if(h.lastIndex===l.index){h.lastIndex++}l=h.exec(i)}if(f===i.length){if(c||!h.test("")){K(a,"")}}else{K(a,L(i,f))}return a.length>p?H(a,0,p):a}})()}else if("0".split(void 0,0).length){f.split=function split(t,r){if(typeof t==="undefined"&&r===0){return[]}return X(this,t,r)}}var Tr=f.replace;var mr=function(){var t=[];"x".replace(/x(.)?/g,function(r,e){K(t,e)});return t.length===1&&typeof t[0]==="undefined"}();if(!mr){f.replace=function replace(t,r){var e=D(r);var n=M(t)&&/\)[*?]/.test(t.source);if(!e||!n){return Tr.call(this,t,r)}else{var i=function(e){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(e)||[];t.lastIndex=i;K(a,arguments[n-2],arguments[n-1]);return r.apply(this,a)};return Tr.call(this,t,i)}}}var Dr=f.substr;var Sr="".substr&&"0b".substr(-1)!=="b";$(f,{substr:function substr(t,r){var e=t;if(t<0){e=w(this.length+t,0)}return Dr.call(this,e,r)}},Sr);var xr=" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003"+"\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028"+"\u2029\ufeff";var Or="\u200b";var jr="["+xr+"]";var Er=new RegExp("^"+jr+jr+"*");var Ir=new RegExp(jr+jr+"*$");var Mr=f.trim&&(xr.trim()||!Or.trim());$(f,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(Er,"").replace(Ir,"")}},Mr);var Ur=d.bind(String.prototype.trim);var Fr=f.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;$(f,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var r=o(this);var e=o(t);var n=arguments.length>1?u(arguments[1]):NaN;var i=Y(n)?Infinity:Z.ToInteger(n);var a=b(w(i,0),r.length);var f=e.length;var l=a+f;while(l>0){l=w(0,l-f);var s=q(L(r,l,a+f),e);if(s!==-1){return l+s}}return-1}},Fr);var Nr=f.lastIndexOf;$(f,{lastIndexOf:function lastIndexOf(t){return Nr.apply(this,arguments)}},f.lastIndexOf.length!==1);if(parseInt(xr+"08")!==8||parseInt(xr+"0x16")!==22){parseInt=function(t){var r=/^[\-+]?0[xX]/;return function parseInt(e,n){var i=Ur(String(e));var a=u(n)||(r.test(i)?16:10);return t(i,a)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(r){var e=Ur(String(r));var n=t(e);return n===0&&L(e,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var Cr=function toString(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var t=this.name;if(typeof t==="undefined"){t="Error"}else if(typeof t!=="string"){t=o(t)}var r=this.message;if(typeof r==="undefined"){r=""}else if(typeof r!=="string"){r=o(r)}if(!t){return r}if(!r){return t}return t+": "+r};Error.prototype.toString=Cr}if(P){var kr=function(t,r){if(Q(t,r)){var e=Object.getOwnPropertyDescriptor(t,r);if(e.configurable){e.enumerable=false;Object.defineProperty(t,r,e)}}};kr(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}kr(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Ar=function toString(){var t="/"+this.source+"/";if(this.global){t+="g"}if(this.ignoreCase){t+="i"}if(this.multiline){t+="m"}return t};RegExp.prototype.toString=Ar}});
-//# sourceMappingURL=es5-shim.map
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/package.json b/ecomp-portal-FE/client/bower_components/es5-shim/package.json
deleted file mode 100644
index 2c049819..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "name": "es5-shim",
- "version": "4.5.9",
- "description": "ECMAScript 5 compatibility shims for legacy JavaScript engines",
- "homepage": "http://github.com/es-shims/es5-shim/",
- "contributors": [
- "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)",
- "Sami Samhuri <sami.samhuri@gmail.com> (http://samhuri.net/)",
- "Florian Schäfer <florian.schaefer@gmail.com> (http://github.com/fschaefer)",
- "Irakli Gozalishvili <rfobic@gmail.com> (http://jeditoolkit.com)",
- "Kit Cambridge <kitcambridge@gmail.com> (http://kitcambridge.github.com)",
- "Jordan Harband <ljharb@gmail.com> (https://github.com/ljharb/)"
- ],
- "bugs": {
- "mail": "ljharb@gmail.com",
- "url": "http://github.com/es-shims/es5-shim/issues"
- },
- "license": "MIT",
- "main": "es5-shim.js",
- "repository": {
- "type": "git",
- "url": "http://github.com/es-shims/es5-shim.git"
- },
- "scripts": {
- "minify": "concurrently --raw 'npm run --silent minify-shim' 'npm run --silent minify-sham'",
- "minify-shim": "uglifyjs es5-shim.js --keep-fnames --comments --source-map=es5-shim.map -m -b ascii_only=true,beautify=false > es5-shim.min.js",
- "minify-sham": "uglifyjs es5-sham.js --keep-fnames --comments --source-map=es5-sham.map -m -b ascii_only=true,beautify=false > es5-sham.min.js",
- "pretest": "npm run --silent lint",
- "test": "npm run --silent tests-only",
- "tests-only": "jasmine-node --matchall ./ tests/spec/",
- "test-native": "jasmine-node --matchall tests/spec/",
- "lint": "concurrently --raw 'npm run --silent jscs' 'npm run --silent eslint'",
- "eslint": "eslint tests/helpers/*.js tests/spec/*.js es5-shim.js es5-sham.js",
- "jscs": "jscs tests/helpers/*.js tests/spec/*.js es5-shim.js es5-sham.js"
- },
- "devDependencies": {
- "eslint": "^2.12.0",
- "@ljharb/eslint-config": "^5.0.0",
- "jasmine-node": "^1.14.5",
- "jscs": "^3.0.4",
- "uglify-js": "^2.6.2",
- "replace": "^0.3.0",
- "semver": "^5.1.0",
- "concurrently": "^2.1.0"
- },
- "engines": {
- "node": ">=0.4.0"
- },
- "testling": {
- "browsers": [
- "iexplore/6.0..latest",
- "firefox/3.0..6.0",
- "firefox/18.0..latest",
- "firefox/nightly",
- "chrome/4.0..10.0",
- "chrome/25.0..latest",
- "chrome/canary",
- "opera/10.0..latest",
- "opera/next",
- "safari/4.0..latest",
- "ipad/6.0..latest",
- "iphone/6.0..latest",
- "android-browser/4.2"
- ]
- },
- "keywords": [
- "shim",
- "es5",
- "es5 shim",
- "javascript",
- "ecmascript",
- "polyfill"
- ]
-}
-
diff --git a/ecomp-portal-FE/client/bower_components/es5-shim/shims.json b/ecomp-portal-FE/client/bower_components/es5-shim/shims.json
deleted file mode 100644
index 0c5430a8..00000000
--- a/ecomp-portal-FE/client/bower_components/es5-shim/shims.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "Object": {
- "prototype": {},
- "keys": "object-keys"
- }
-}
-
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/.bower.json b/ecomp-portal-FE/client/bower_components/hammerjs/.bower.json
deleted file mode 100644
index 8e27563c..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/.bower.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "name": "hammerjs",
- "main": "hammer.js",
- "ignore": [
- "tests",
- "src",
- ".bowerrc",
- ".gitignore",
- ".jscsrc",
- ".jshintrc",
- ".travis.yml",
- "component.json",
- "Gruntfile.coffee",
- "package.json"
- ],
- "homepage": "https://github.com/EightMedia/hammer.js",
- "version": "2.0.8",
- "_release": "2.0.8",
- "_resolution": {
- "type": "version",
- "tag": "v2.0.8",
- "commit": "ee611316bec077fcfbba3fd604ebc4b0b35ac288"
- },
- "_source": "https://github.com/EightMedia/hammer.js.git",
- "_target": "~2.0.0",
- "_originalSource": "hammerjs"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/CHANGELOG.md b/ecomp-portal-FE/client/bower_components/hammerjs/CHANGELOG.md
deleted file mode 100644
index d3bc17db..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/CHANGELOG.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# Changelog
-
-### 2.0.6, 2015-12-23
-- Add Assign method and deprecate merge and extend ([#895](https://github.com/hammerjs/hammer.js/pull/895)[fc01eae](https://github.com/hammerjs/hammer.js/commit/fc01eaea678acc430c664eb374555fbe3d403bdd))
-- Expose Hammer on window or self if either is defined to avoid issues when AMD is present but not used. ( [356f795](https://github.com/hammerjs/hammer.js/commit/356f7955b01f3679c29d6c45931679256b45036e))
-- Add support for PointerEvent instead of MSPointerEvent if supported. ([#754](https://github.com/hammerjs/hammer.js/issues/754), [439c7a6](https://github.com/hammerjs/hammer.js/commit/439c7a6c46978ab387b4b8289399e904d1c49535))
-- Fixed moz-prefix, prefix should be Moz not moz. ([3ea47f3](https://github.com/hammerjs/hammer.js/commit/3ea47f3aebadc9d3bb6bf52bc8402cad135ef8a9))
-- Removed non-existant recognizer ([f1c2d3b](https://github.com/hammerjs/hammer.js/commit/f1c2d3bf05f530ae092ecfc2335fceeff0e9eec9))
-- Fixed config leaking between instances([189098f](https://github.com/hammerjs/hammer.js/commit/189098ff7736f6ed2fce9a3d3e1f5a3afee085ba))
-- Fixed gaps in gesture configs and update tests to match ([70c2902](https://github.com/hammerjs/hammer.js/commit/70c2902d773a750e92ce8c423f8a4165c07eab97))
-- Fixed Manager off method ([#768](https://github.com/hammerjs/hammer.js/issues/768), [da49a27](https://github.com/hammerjs/hammer.js/commit/da49a2730779ecc3b4dd147cc418a0df7c70fad9))
-- Added compatibility with requirejs optimizer namespaces ( [70075f2](https://github.com/hammerjs/hammer.js/commit/70075f2df1b855f7c6d8d3caac49b9276b88c8d6))
-- Made touchaction test zoomable ( [50264a7](https://github.com/hammerjs/hammer.js/commit/50264a70251ca88bbaf7b666401e527eee616de5))
-- Fixed preventing default when for `pan-x pan-y` case ( [95eaafa](https://github.com/hammerjs/hammer.js/commit/95eaafadad27bd1b25d20cf976811a451922f1c4))
-- Fixed incorrect touch action pan direction ( [a81da57](https://github.com/hammerjs/hammer.js/commit/a81da57a82ebf37e695e7c443e4e2715e7f32856))
-- Fixed combined pan-x pan-y to resolve to none ( [fdae07b](https://github.com/hammerjs/hammer.js/commit/fdae07bc2ba3c90aad28da6791b3d5df627bc612))
-- Fixed inverted touch-action for pan recognizer ([#728](https://github.com/hammerjs/hammer.js/issues/728), [605bd3b](https://github.com/hammerjs/hammer.js/commit/605bd3beca780be91dd43f9da8b809d155a43d1a))
-- Fixed dependency on non standard touch list ordering ([#610](https://github.com/hammerjs/hammer.js/issues/610), [#791](https://github.com/hammerjs/hammer.js/issues/791), [287720a](https://github.com/hammerjs/hammer.js/commit/287720a6e5067e7f28be8b8b3b266d22905361c4))
-- Fixed swipe to not trigger after multitouch gesture ([#640](https://github.com/hammerjs/hammer.js/issues/640), [711d8a1](https://github.com/hammerjs/hammer.js/commit/711d8a1df1aa5057ecb536454a36257e3c0d6d91))
-- Fixed swipe recognizer to use overall gesture direction and velocity ( [963fe69](https://github.com/hammerjs/hammer.js/commit/963fe697515273fee508414bc29e2656465cea55))
-- Fixed getDirection returning reversed direction ( [e40dcde](https://github.com/hammerjs/hammer.js/commit/e40dcde43bdac7a74c8ce5c05a4f62121089cd91))
-- Fixed detection of tap when multi touch gestures are present ( [c46cbba](https://github.com/hammerjs/hammer.js/commit/c46cbba1c2cbbf874b59913416858d9dae297e64))
-- Fixed incorrect event order ([#824](https://github.com/hammerjs/hammer.js/issues/824), [92f2d76](https://github.com/hammerjs/hammer.js/commit/92f2d76188480d967e738a19cd508d0b94a31329))
-- Fixed leaking options between recognizer instances ([#813](https://github.com/hammerjs/hammer.js/issues/813), [af32c9b](https://github.com/hammerjs/hammer.js/commit/af32c9bace3f04bb34bee852ff56a33cc8fc27cd))
-- Fixed detection when element has no style attribute ( [5ca6d8c](https://github.com/hammerjs/hammer.js/commit/5ca6d8cbead02c71929a8073e95ddf98e11c0e06))
-
-### 2.0.4, 2014-09-28
-- Fix IE pointer issue. [#665](https://github.com/hammerjs/hammer.js/pull/665)
-- Fix multi-touch at different elements. [#668](https://github.com/hammerjs/hammer.js/pull/668)
-- Added experimental [single-user Touch input handler](src/input/singletouch.js). This to improve performance/ux when only a single user has to be supported. Plans are to release 2.1 with this as default, and a settings to enable the multi-user handler.
-
-### 2.0.3, 2014-09-10
-- Manager.set improvements.
-- Fix requireFailure() call in Manager.options.recognizers.
-- Make DIRECTION_ALL for pan and swipe gestures less blocking.
-- Fix Swipe recognizer threshold option.
-- Expose the Input classes.
-- Added the option `inputClass` to set the used input handler.
-
-### 2.0.2, 2014-07-26
-- Improved mouse and pointer-events input, now able to move outside the window.
-- Added the export name (`Hammer`) as an argument to the wrapper.
-- Add the option *experimental* `inputTarget` to change the element that receives the events.
-- Improved performance when only one touch being active.
-- Fixed the jumping deltaXY bug when going from single to multi-touch.
-- Improved velocity calculations.
-
-### 2.0.1, 2014-07-15
-- Fix issue when no document.body is available
-- Added pressup event for the press recognizer
-- Removed alternative for Object.create
-
-### 2.0.0, 2014-07-11
-- Full rewrite of the library.
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/CONTRIBUTING.md b/ecomp-portal-FE/client/bower_components/hammerjs/CONTRIBUTING.md
deleted file mode 100644
index b1934de6..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/CONTRIBUTING.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# Contributing to Hammer.js
-
-Looking to contribute something to Hammer.js? **Here's how you can help.**
-
-
-## Reporting issues
-
-We only accept issues that are bug reports or feature requests. Bugs must be
-isolated and reproducible problems that can be fixed within the Hammer.js.
-Please read the following guidelines before opening any issue.
-
-1. [**Read the documentation**](https://hammerjs.github.io)
-
-2. **Search for existing issues.** We get a lot of duplicate issues, and you'd
-help us out a lot by first checking if someone else has reported the same issue.
-Moreover, the issue may have already been resolved with a fix available. Also
-take a look if your problem is explained at the Wiki.
-
-3. **Create an isolated and reproducible test case.** Be sure the problem exists
-in Hammer's code with a reduced test case that should be included in each bug
-report.
-
-4. **Include a live example.** Make use of jsFiddle or jsBin to share your
-isolated test cases. Also, a screen capture would work, with tools like LICEcap.
-
-5. **Share as much information as possible.** Include operating system and
-version, browser and version, version of Hammer.js, customized or vanilla build,
-etc. where appropriate. Also include steps to reproduce the bug.
-
-## Pull requests
-
-1. Changes must be done in `/src` files, never just the compiled files. Also, don't
-commit the compiled files.
-
-2. Try not to pollute your pull request with unintended changes. Keep them simple
-and small
-
-3. Try to share which browsers your code has been tested in before submitting a
-pull request
-
-4. Write tests for your code, these can be found in `/tests`.
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/LICENSE.md b/ecomp-portal-FE/client/bower_components/hammerjs/LICENSE.md
deleted file mode 100644
index e067655d..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (C) 2011-2014 by Jorik Tangelder (Eight Media)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/README.md b/ecomp-portal-FE/client/bower_components/hammerjs/README.md
deleted file mode 100644
index e7bf8b8f..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/README.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# Hammer.js 2.0.6
-
-[![Build Status](https://travis-ci.org/hammerjs/hammer.js.svg)](https://travis-ci.org/hammerjs/hammer.js)
-
-## Support, Questions, and Collaboration
-
-[![Slack Status](https://hammerjs.herokuapp.com/badge.svg)](https://hammerjs.herokuapp.com/)
-
-## Documentation
-
-Visit [hammerjs.github.io](http://hammerjs.github.io) for detailed documentation.
-
-```js
-// get a reference to an element
-var stage = document.getElementById('stage');
-
-// create a manager for that element
-var mc = new Hammer.Manager(stage);
-
-// create a recognizer
-var Rotate = new Hammer.Rotate();
-
-// add the recognizer
-mc.add(Rotate);
-
-// subscribe to events
-mc.on('rotate', function(e) {
- // do something cool
- var rotation = Math.round(e.rotation);
- stage.style.transform = 'rotate('+rotation+'deg)';
-});
-```
-
-An advanced demo is available here: [http://codepen.io/runspired/full/ZQBGWd/](http://codepen.io/runspired/full/ZQBGWd/)
-
-
-## Contributing
-
-Read the [contributing guidelines](./CONTRIBUTING.md).
-
-For PRs.
-
-- Use [Angular Style commit messages](https://github.com/angular/angular.js/blob/v1.4.8/CONTRIBUTING.md#commit)
-- Rebase your PR branch when necessary
-- If you add a feature or fix a bug, please add or fix any necessary tests.
-- If a new feature, open a docs PR to go with.
-
-## Building
-
-You can get the pre-build versions from the Hammer.js website, or do this by yourself running
-`npm install -g grunt-cli && npm install && grunt build`
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/bower.json b/ecomp-portal-FE/client/bower_components/hammerjs/bower.json
deleted file mode 100644
index f241608c..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/bower.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "hammerjs",
- "main": "hammer.js",
- "ignore": [
- "tests",
- "src",
- ".bowerrc",
- ".gitignore",
- ".jscsrc",
- ".jshintrc",
- ".travis.yml",
- "component.json",
- "Gruntfile.coffee",
- "package.json"
- ]
-}
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/changelog.js b/ecomp-portal-FE/client/bower_components/hammerjs/changelog.js
deleted file mode 100644
index 887a3292..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/changelog.js
+++ /dev/null
@@ -1,71 +0,0 @@
-var changelog = require( "changelogplease" );
-var gittags = require( "git-tags" ).get( function( error, tags ) {
- if ( error ) {
- throw error
- }
- console.log( tags[ 1 ] + ".." + tags[ 0 ] );
- var exclude = [ "Merge", "Whitespace", "Fixup", "Cleanup", "Formatting", "Ignore" ];
- changelog( {
- ticketUrl: "https://github.com/hammerjs/hammer.js/issues/{id}",
- commitUrl: "https://github.com/hammerjs/hammerjs/commit/{id}",
- sort: false,
- repo: "./",
- committish: tags[ 1 ] + ".." + tags[ 0 ]
- }, function( error, log ) {
- if ( error ) {
- throw error;
- }
- log = parseLog( log );
- console.log( log );
- } );
- function parseLog( log ) {
- var lines = log.split( "\n" );
- var newLog = [];
- var log = [];
- var currentComponent;
-
-
- lines.shift();
- lines.forEach( function( line ) {
- var newLine = parseLine( line );
- if ( newLine ) {
- log.push( line );
- }
- } );
- var log = log.join( "\n" );
- return log.replace( /\*/g, "-" ).replace( /__TICKETREF__,/g, "" );
- }
- function parseLine( line ) {
- var parts = getParts( line );
-
- if ( exclude.indexOf( parts.component ) > -1 ) {
- return false;
- }
- return parts;
- }
- function getParts( line ) {
- var parts = line.split( ":" );
- var component = "";
- var message;
- var commits = line.match( /\{\{([A-Za-z0-9 ]){0,99}\}\}/ )
-
- if ( parts.length > 1 && parts[ 0 ].length <= 20 ) {
- component = parts[ 0 ];
- parts.shift();
- message = parts.join( ":" );
- } else {
- parts = line.split( " " );
- component = parts[ 1 ];
- parts.shift();
- message = parts.join( " " );
- }
-
- if ( component ) {
- component = component.replace( /\* |,/, "" );
- }
- return {
- component: component,
- message: message
- };
- }
-} );
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/hammer.js b/ecomp-portal-FE/client/bower_components/hammerjs/hammer.js
deleted file mode 100644
index 00d2965e..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/hammer.js
+++ /dev/null
@@ -1,2643 +0,0 @@
-/*! Hammer.JS - v2.0.7 - 2016-04-22
- * http://hammerjs.github.io/
- *
- * Copyright (c) 2016 Jorik Tangelder;
- * Licensed under the MIT license */
-(function(window, document, exportName, undefined) {
- 'use strict';
-
-var VENDOR_PREFIXES = ['', 'webkit', 'Moz', 'MS', 'ms', 'o'];
-var TEST_ELEMENT = document.createElement('div');
-
-var TYPE_FUNCTION = 'function';
-
-var round = Math.round;
-var abs = Math.abs;
-var now = Date.now;
-
-/**
- * set a timeout with a given scope
- * @param {Function} fn
- * @param {Number} timeout
- * @param {Object} context
- * @returns {number}
- */
-function setTimeoutContext(fn, timeout, context) {
- return setTimeout(bindFn(fn, context), timeout);
-}
-
-/**
- * if the argument is an array, we want to execute the fn on each entry
- * if it aint an array we don't want to do a thing.
- * this is used by all the methods that accept a single and array argument.
- * @param {*|Array} arg
- * @param {String} fn
- * @param {Object} [context]
- * @returns {Boolean}
- */
-function invokeArrayArg(arg, fn, context) {
- if (Array.isArray(arg)) {
- each(arg, context[fn], context);
- return true;
- }
- return false;
-}
-
-/**
- * walk objects and arrays
- * @param {Object} obj
- * @param {Function} iterator
- * @param {Object} context
- */
-function each(obj, iterator, context) {
- var i;
-
- if (!obj) {
- return;
- }
-
- if (obj.forEach) {
- obj.forEach(iterator, context);
- } else if (obj.length !== undefined) {
- i = 0;
- while (i < obj.length) {
- iterator.call(context, obj[i], i, obj);
- i++;
- }
- } else {
- for (i in obj) {
- obj.hasOwnProperty(i) && iterator.call(context, obj[i], i, obj);
- }
- }
-}
-
-/**
- * wrap a method with a deprecation warning and stack trace
- * @param {Function} method
- * @param {String} name
- * @param {String} message
- * @returns {Function} A new function wrapping the supplied method.
- */
-function deprecate(method, name, message) {
- var deprecationMessage = 'DEPRECATED METHOD: ' + name + '\n' + message + ' AT \n';
- return function() {
- var e = new Error('get-stack-trace');
- var stack = e && e.stack ? e.stack.replace(/^[^\(]+?[\n$]/gm, '')
- .replace(/^\s+at\s+/gm, '')
- .replace(/^Object.<anonymous>\s*\(/gm, '{anonymous}()@') : 'Unknown Stack Trace';
-
- var log = window.console && (window.console.warn || window.console.log);
- if (log) {
- log.call(window.console, deprecationMessage, stack);
- }
- return method.apply(this, arguments);
- };
-}
-
-/**
- * extend object.
- * means that properties in dest will be overwritten by the ones in src.
- * @param {Object} target
- * @param {...Object} objects_to_assign
- * @returns {Object} target
- */
-var assign;
-if (typeof Object.assign !== 'function') {
- assign = function assign(target) {
- if (target === undefined || target === null) {
- throw new TypeError('Cannot convert undefined or null to object');
- }
-
- var output = Object(target);
- for (var index = 1; index < arguments.length; index++) {
- var source = arguments[index];
- if (source !== undefined && source !== null) {
- for (var nextKey in source) {
- if (source.hasOwnProperty(nextKey)) {
- output[nextKey] = source[nextKey];
- }
- }
- }
- }
- return output;
- };
-} else {
- assign = Object.assign;
-}
-
-/**
- * extend object.
- * means that properties in dest will be overwritten by the ones in src.
- * @param {Object} dest
- * @param {Object} src
- * @param {Boolean} [merge=false]
- * @returns {Object} dest
- */
-var extend = deprecate(function extend(dest, src, merge) {
- var keys = Object.keys(src);
- var i = 0;
- while (i < keys.length) {
- if (!merge || (merge && dest[keys[i]] === undefined)) {
- dest[keys[i]] = src[keys[i]];
- }
- i++;
- }
- return dest;
-}, 'extend', 'Use `assign`.');
-
-/**
- * merge the values from src in the dest.
- * means that properties that exist in dest will not be overwritten by src
- * @param {Object} dest
- * @param {Object} src
- * @returns {Object} dest
- */
-var merge = deprecate(function merge(dest, src) {
- return extend(dest, src, true);
-}, 'merge', 'Use `assign`.');
-
-/**
- * simple class inheritance
- * @param {Function} child
- * @param {Function} base
- * @param {Object} [properties]
- */
-function inherit(child, base, properties) {
- var baseP = base.prototype,
- childP;
-
- childP = child.prototype = Object.create(baseP);
- childP.constructor = child;
- childP._super = baseP;
-
- if (properties) {
- assign(childP, properties);
- }
-}
-
-/**
- * simple function bind
- * @param {Function} fn
- * @param {Object} context
- * @returns {Function}
- */
-function bindFn(fn, context) {
- return function boundFn() {
- return fn.apply(context, arguments);
- };
-}
-
-/**
- * let a boolean value also be a function that must return a boolean
- * this first item in args will be used as the context
- * @param {Boolean|Function} val
- * @param {Array} [args]
- * @returns {Boolean}
- */
-function boolOrFn(val, args) {
- if (typeof val == TYPE_FUNCTION) {
- return val.apply(args ? args[0] || undefined : undefined, args);
- }
- return val;
-}
-
-/**
- * use the val2 when val1 is undefined
- * @param {*} val1
- * @param {*} val2
- * @returns {*}
- */
-function ifUndefined(val1, val2) {
- return (val1 === undefined) ? val2 : val1;
-}
-
-/**
- * addEventListener with multiple events at once
- * @param {EventTarget} target
- * @param {String} types
- * @param {Function} handler
- */
-function addEventListeners(target, types, handler) {
- each(splitStr(types), function(type) {
- target.addEventListener(type, handler, false);
- });
-}
-
-/**
- * removeEventListener with multiple events at once
- * @param {EventTarget} target
- * @param {String} types
- * @param {Function} handler
- */
-function removeEventListeners(target, types, handler) {
- each(splitStr(types), function(type) {
- target.removeEventListener(type, handler, false);
- });
-}
-
-/**
- * find if a node is in the given parent
- * @method hasParent
- * @param {HTMLElement} node
- * @param {HTMLElement} parent
- * @return {Boolean} found
- */
-function hasParent(node, parent) {
- while (node) {
- if (node == parent) {
- return true;
- }
- node = node.parentNode;
- }
- return false;
-}
-
-/**
- * small indexOf wrapper
- * @param {String} str
- * @param {String} find
- * @returns {Boolean} found
- */
-function inStr(str, find) {
- return str.indexOf(find) > -1;
-}
-
-/**
- * split string on whitespace
- * @param {String} str
- * @returns {Array} words
- */
-function splitStr(str) {
- return str.trim().split(/\s+/g);
-}
-
-/**
- * find if a array contains the object using indexOf or a simple polyFill
- * @param {Array} src
- * @param {String} find
- * @param {String} [findByKey]
- * @return {Boolean|Number} false when not found, or the index
- */
-function inArray(src, find, findByKey) {
- if (src.indexOf && !findByKey) {
- return src.indexOf(find);
- } else {
- var i = 0;
- while (i < src.length) {
- if ((findByKey && src[i][findByKey] == find) || (!findByKey && src[i] === find)) {
- return i;
- }
- i++;
- }
- return -1;
- }
-}
-
-/**
- * convert array-like objects to real arrays
- * @param {Object} obj
- * @returns {Array}
- */
-function toArray(obj) {
- return Array.prototype.slice.call(obj, 0);
-}
-
-/**
- * unique array with objects based on a key (like 'id') or just by the array's value
- * @param {Array} src [{id:1},{id:2},{id:1}]
- * @param {String} [key]
- * @param {Boolean} [sort=False]
- * @returns {Array} [{id:1},{id:2}]
- */
-function uniqueArray(src, key, sort) {
- var results = [];
- var values = [];
- var i = 0;
-
- while (i < src.length) {
- var val = key ? src[i][key] : src[i];
- if (inArray(values, val) < 0) {
- results.push(src[i]);
- }
- values[i] = val;
- i++;
- }
-
- if (sort) {
- if (!key) {
- results = results.sort();
- } else {
- results = results.sort(function sortUniqueArray(a, b) {
- return a[key] > b[key];
- });
- }
- }
-
- return results;
-}
-
-/**
- * get the prefixed property
- * @param {Object} obj
- * @param {String} property
- * @returns {String|Undefined} prefixed
- */
-function prefixed(obj, property) {
- var prefix, prop;
- var camelProp = property[0].toUpperCase() + property.slice(1);
-
- var i = 0;
- while (i < VENDOR_PREFIXES.length) {
- prefix = VENDOR_PREFIXES[i];
- prop = (prefix) ? prefix + camelProp : property;
-
- if (prop in obj) {
- return prop;
- }
- i++;
- }
- return undefined;
-}
-
-/**
- * get a unique id
- * @returns {number} uniqueId
- */
-var _uniqueId = 1;
-function uniqueId() {
- return _uniqueId++;
-}
-
-/**
- * get the window object of an element
- * @param {HTMLElement} element
- * @returns {DocumentView|Window}
- */
-function getWindowForElement(element) {
- var doc = element.ownerDocument || element;
- return (doc.defaultView || doc.parentWindow || window);
-}
-
-var MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;
-
-var SUPPORT_TOUCH = ('ontouchstart' in window);
-var SUPPORT_POINTER_EVENTS = prefixed(window, 'PointerEvent') !== undefined;
-var SUPPORT_ONLY_TOUCH = SUPPORT_TOUCH && MOBILE_REGEX.test(navigator.userAgent);
-
-var INPUT_TYPE_TOUCH = 'touch';
-var INPUT_TYPE_PEN = 'pen';
-var INPUT_TYPE_MOUSE = 'mouse';
-var INPUT_TYPE_KINECT = 'kinect';
-
-var COMPUTE_INTERVAL = 25;
-
-var INPUT_START = 1;
-var INPUT_MOVE = 2;
-var INPUT_END = 4;
-var INPUT_CANCEL = 8;
-
-var DIRECTION_NONE = 1;
-var DIRECTION_LEFT = 2;
-var DIRECTION_RIGHT = 4;
-var DIRECTION_UP = 8;
-var DIRECTION_DOWN = 16;
-
-var DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT;
-var DIRECTION_VERTICAL = DIRECTION_UP | DIRECTION_DOWN;
-var DIRECTION_ALL = DIRECTION_HORIZONTAL | DIRECTION_VERTICAL;
-
-var PROPS_XY = ['x', 'y'];
-var PROPS_CLIENT_XY = ['clientX', 'clientY'];
-
-/**
- * create new input type manager
- * @param {Manager} manager
- * @param {Function} callback
- * @returns {Input}
- * @constructor
- */
-function Input(manager, callback) {
- var self = this;
- this.manager = manager;
- this.callback = callback;
- this.element = manager.element;
- this.target = manager.options.inputTarget;
-
- // smaller wrapper around the handler, for the scope and the enabled state of the manager,
- // so when disabled the input events are completely bypassed.
- this.domHandler = function(ev) {
- if (boolOrFn(manager.options.enable, [manager])) {
- self.handler(ev);
- }
- };
-
- this.init();
-
-}
-
-Input.prototype = {
- /**
- * should handle the inputEvent data and trigger the callback
- * @virtual
- */
- handler: function() { },
-
- /**
- * bind the events
- */
- init: function() {
- this.evEl && addEventListeners(this.element, this.evEl, this.domHandler);
- this.evTarget && addEventListeners(this.target, this.evTarget, this.domHandler);
- this.evWin && addEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
- },
-
- /**
- * unbind the events
- */
- destroy: function() {
- this.evEl && removeEventListeners(this.element, this.evEl, this.domHandler);
- this.evTarget && removeEventListeners(this.target, this.evTarget, this.domHandler);
- this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
- }
-};
-
-/**
- * create new input type manager
- * called by the Manager constructor
- * @param {Hammer} manager
- * @returns {Input}
- */
-function createInputInstance(manager) {
- var Type;
- var inputClass = manager.options.inputClass;
-
- if (inputClass) {
- Type = inputClass;
- } else if (SUPPORT_POINTER_EVENTS) {
- Type = PointerEventInput;
- } else if (SUPPORT_ONLY_TOUCH) {
- Type = TouchInput;
- } else if (!SUPPORT_TOUCH) {
- Type = MouseInput;
- } else {
- Type = TouchMouseInput;
- }
- return new (Type)(manager, inputHandler);
-}
-
-/**
- * handle input events
- * @param {Manager} manager
- * @param {String} eventType
- * @param {Object} input
- */
-function inputHandler(manager, eventType, input) {
- var pointersLen = input.pointers.length;
- var changedPointersLen = input.changedPointers.length;
- var isFirst = (eventType & INPUT_START && (pointersLen - changedPointersLen === 0));
- var isFinal = (eventType & (INPUT_END | INPUT_CANCEL) && (pointersLen - changedPointersLen === 0));
-
- input.isFirst = !!isFirst;
- input.isFinal = !!isFinal;
-
- if (isFirst) {
- manager.session = {};
- }
-
- // source event is the normalized value of the domEvents
- // like 'touchstart, mouseup, pointerdown'
- input.eventType = eventType;
-
- // compute scale, rotation etc
- computeInputData(manager, input);
-
- // emit secret event
- manager.emit('hammer.input', input);
-
- manager.recognize(input);
- manager.session.prevInput = input;
-}
-
-/**
- * extend the data with some usable properties like scale, rotate, velocity etc
- * @param {Object} manager
- * @param {Object} input
- */
-function computeInputData(manager, input) {
- var session = manager.session;
- var pointers = input.pointers;
- var pointersLength = pointers.length;
-
- // store the first input to calculate the distance and direction
- if (!session.firstInput) {
- session.firstInput = simpleCloneInputData(input);
- }
-
- // to compute scale and rotation we need to store the multiple touches
- if (pointersLength > 1 && !session.firstMultiple) {
- session.firstMultiple = simpleCloneInputData(input);
- } else if (pointersLength === 1) {
- session.firstMultiple = false;
- }
-
- var firstInput = session.firstInput;
- var firstMultiple = session.firstMultiple;
- var offsetCenter = firstMultiple ? firstMultiple.center : firstInput.center;
-
- var center = input.center = getCenter(pointers);
- input.timeStamp = now();
- input.deltaTime = input.timeStamp - firstInput.timeStamp;
-
- input.angle = getAngle(offsetCenter, center);
- input.distance = getDistance(offsetCenter, center);
-
- computeDeltaXY(session, input);
- input.offsetDirection = getDirection(input.deltaX, input.deltaY);
-
- var overallVelocity = getVelocity(input.deltaTime, input.deltaX, input.deltaY);
- input.overallVelocityX = overallVelocity.x;
- input.overallVelocityY = overallVelocity.y;
- input.overallVelocity = (abs(overallVelocity.x) > abs(overallVelocity.y)) ? overallVelocity.x : overallVelocity.y;
-
- input.scale = firstMultiple ? getScale(firstMultiple.pointers, pointers) : 1;
- input.rotation = firstMultiple ? getRotation(firstMultiple.pointers, pointers) : 0;
-
- input.maxPointers = !session.prevInput ? input.pointers.length : ((input.pointers.length >
- session.prevInput.maxPointers) ? input.pointers.length : session.prevInput.maxPointers);
-
- computeIntervalInputData(session, input);
-
- // find the correct target
- var target = manager.element;
- if (hasParent(input.srcEvent.target, target)) {
- target = input.srcEvent.target;
- }
- input.target = target;
-}
-
-function computeDeltaXY(session, input) {
- var center = input.center;
- var offset = session.offsetDelta || {};
- var prevDelta = session.prevDelta || {};
- var prevInput = session.prevInput || {};
-
- if (input.eventType === INPUT_START || prevInput.eventType === INPUT_END) {
- prevDelta = session.prevDelta = {
- x: prevInput.deltaX || 0,
- y: prevInput.deltaY || 0
- };
-
- offset = session.offsetDelta = {
- x: center.x,
- y: center.y
- };
- }
-
- input.deltaX = prevDelta.x + (center.x - offset.x);
- input.deltaY = prevDelta.y + (center.y - offset.y);
-}
-
-/**
- * velocity is calculated every x ms
- * @param {Object} session
- * @param {Object} input
- */
-function computeIntervalInputData(session, input) {
- var last = session.lastInterval || input,
- deltaTime = input.timeStamp - last.timeStamp,
- velocity, velocityX, velocityY, direction;
-
- if (input.eventType != INPUT_CANCEL && (deltaTime > COMPUTE_INTERVAL || last.velocity === undefined)) {
- var deltaX = input.deltaX - last.deltaX;
- var deltaY = input.deltaY - last.deltaY;
-
- var v = getVelocity(deltaTime, deltaX, deltaY);
- velocityX = v.x;
- velocityY = v.y;
- velocity = (abs(v.x) > abs(v.y)) ? v.x : v.y;
- direction = getDirection(deltaX, deltaY);
-
- session.lastInterval = input;
- } else {
- // use latest velocity info if it doesn't overtake a minimum period
- velocity = last.velocity;
- velocityX = last.velocityX;
- velocityY = last.velocityY;
- direction = last.direction;
- }
-
- input.velocity = velocity;
- input.velocityX = velocityX;
- input.velocityY = velocityY;
- input.direction = direction;
-}
-
-/**
- * create a simple clone from the input used for storage of firstInput and firstMultiple
- * @param {Object} input
- * @returns {Object} clonedInputData
- */
-function simpleCloneInputData(input) {
- // make a simple copy of the pointers because we will get a reference if we don't
- // we only need clientXY for the calculations
- var pointers = [];
- var i = 0;
- while (i < input.pointers.length) {
- pointers[i] = {
- clientX: round(input.pointers[i].clientX),
- clientY: round(input.pointers[i].clientY)
- };
- i++;
- }
-
- return {
- timeStamp: now(),
- pointers: pointers,
- center: getCenter(pointers),
- deltaX: input.deltaX,
- deltaY: input.deltaY
- };
-}
-
-/**
- * get the center of all the pointers
- * @param {Array} pointers
- * @return {Object} center contains `x` and `y` properties
- */
-function getCenter(pointers) {
- var pointersLength = pointers.length;
-
- // no need to loop when only one touch
- if (pointersLength === 1) {
- return {
- x: round(pointers[0].clientX),
- y: round(pointers[0].clientY)
- };
- }
-
- var x = 0, y = 0, i = 0;
- while (i < pointersLength) {
- x += pointers[i].clientX;
- y += pointers[i].clientY;
- i++;
- }
-
- return {
- x: round(x / pointersLength),
- y: round(y / pointersLength)
- };
-}
-
-/**
- * calculate the velocity between two points. unit is in px per ms.
- * @param {Number} deltaTime
- * @param {Number} x
- * @param {Number} y
- * @return {Object} velocity `x` and `y`
- */
-function getVelocity(deltaTime, x, y) {
- return {
- x: x / deltaTime || 0,
- y: y / deltaTime || 0
- };
-}
-
-/**
- * get the direction between two points
- * @param {Number} x
- * @param {Number} y
- * @return {Number} direction
- */
-function getDirection(x, y) {
- if (x === y) {
- return DIRECTION_NONE;
- }
-
- if (abs(x) >= abs(y)) {
- return x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;
- }
- return y < 0 ? DIRECTION_UP : DIRECTION_DOWN;
-}
-
-/**
- * calculate the absolute distance between two points
- * @param {Object} p1 {x, y}
- * @param {Object} p2 {x, y}
- * @param {Array} [props] containing x and y keys
- * @return {Number} distance
- */
-function getDistance(p1, p2, props) {
- if (!props) {
- props = PROPS_XY;
- }
- var x = p2[props[0]] - p1[props[0]],
- y = p2[props[1]] - p1[props[1]];
-
- return Math.sqrt((x * x) + (y * y));
-}
-
-/**
- * calculate the angle between two coordinates
- * @param {Object} p1
- * @param {Object} p2
- * @param {Array} [props] containing x and y keys
- * @return {Number} angle
- */
-function getAngle(p1, p2, props) {
- if (!props) {
- props = PROPS_XY;
- }
- var x = p2[props[0]] - p1[props[0]],
- y = p2[props[1]] - p1[props[1]];
- return Math.atan2(y, x) * 180 / Math.PI;
-}
-
-/**
- * calculate the rotation degrees between two pointersets
- * @param {Array} start array of pointers
- * @param {Array} end array of pointers
- * @return {Number} rotation
- */
-function getRotation(start, end) {
- return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);
-}
-
-/**
- * calculate the scale factor between two pointersets
- * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out
- * @param {Array} start array of pointers
- * @param {Array} end array of pointers
- * @return {Number} scale
- */
-function getScale(start, end) {
- return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY);
-}
-
-var MOUSE_INPUT_MAP = {
- mousedown: INPUT_START,
- mousemove: INPUT_MOVE,
- mouseup: INPUT_END
-};
-
-var MOUSE_ELEMENT_EVENTS = 'mousedown';
-var MOUSE_WINDOW_EVENTS = 'mousemove mouseup';
-
-/**
- * Mouse events input
- * @constructor
- * @extends Input
- */
-function MouseInput() {
- this.evEl = MOUSE_ELEMENT_EVENTS;
- this.evWin = MOUSE_WINDOW_EVENTS;
-
- this.pressed = false; // mousedown state
-
- Input.apply(this, arguments);
-}
-
-inherit(MouseInput, Input, {
- /**
- * handle mouse events
- * @param {Object} ev
- */
- handler: function MEhandler(ev) {
- var eventType = MOUSE_INPUT_MAP[ev.type];
-
- // on start we want to have the left mouse button down
- if (eventType & INPUT_START && ev.button === 0) {
- this.pressed = true;
- }
-
- if (eventType & INPUT_MOVE && ev.which !== 1) {
- eventType = INPUT_END;
- }
-
- // mouse must be down
- if (!this.pressed) {
- return;
- }
-
- if (eventType & INPUT_END) {
- this.pressed = false;
- }
-
- this.callback(this.manager, eventType, {
- pointers: [ev],
- changedPointers: [ev],
- pointerType: INPUT_TYPE_MOUSE,
- srcEvent: ev
- });
- }
-});
-
-var POINTER_INPUT_MAP = {
- pointerdown: INPUT_START,
- pointermove: INPUT_MOVE,
- pointerup: INPUT_END,
- pointercancel: INPUT_CANCEL,
- pointerout: INPUT_CANCEL
-};
-
-// in IE10 the pointer types is defined as an enum
-var IE10_POINTER_TYPE_ENUM = {
- 2: INPUT_TYPE_TOUCH,
- 3: INPUT_TYPE_PEN,
- 4: INPUT_TYPE_MOUSE,
- 5: INPUT_TYPE_KINECT // see https://twitter.com/jacobrossi/status/480596438489890816
-};
-
-var POINTER_ELEMENT_EVENTS = 'pointerdown';
-var POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel';
-
-// IE10 has prefixed support, and case-sensitive
-if (window.MSPointerEvent && !window.PointerEvent) {
- POINTER_ELEMENT_EVENTS = 'MSPointerDown';
- POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';
-}
-
-/**
- * Pointer events input
- * @constructor
- * @extends Input
- */
-function PointerEventInput() {
- this.evEl = POINTER_ELEMENT_EVENTS;
- this.evWin = POINTER_WINDOW_EVENTS;
-
- Input.apply(this, arguments);
-
- this.store = (this.manager.session.pointerEvents = []);
-}
-
-inherit(PointerEventInput, Input, {
- /**
- * handle mouse events
- * @param {Object} ev
- */
- handler: function PEhandler(ev) {
- var store = this.store;
- var removePointer = false;
-
- var eventTypeNormalized = ev.type.toLowerCase().replace('ms', '');
- var eventType = POINTER_INPUT_MAP[eventTypeNormalized];
- var pointerType = IE10_POINTER_TYPE_ENUM[ev.pointerType] || ev.pointerType;
-
- var isTouch = (pointerType == INPUT_TYPE_TOUCH);
-
- // get index of the event in the store
- var storeIndex = inArray(store, ev.pointerId, 'pointerId');
-
- // start and mouse must be down
- if (eventType & INPUT_START && (ev.button === 0 || isTouch)) {
- if (storeIndex < 0) {
- store.push(ev);
- storeIndex = store.length - 1;
- }
- } else if (eventType & (INPUT_END | INPUT_CANCEL)) {
- removePointer = true;
- }
-
- // it not found, so the pointer hasn't been down (so it's probably a hover)
- if (storeIndex < 0) {
- return;
- }
-
- // update the event in the store
- store[storeIndex] = ev;
-
- this.callback(this.manager, eventType, {
- pointers: store,
- changedPointers: [ev],
- pointerType: pointerType,
- srcEvent: ev
- });
-
- if (removePointer) {
- // remove from the store
- store.splice(storeIndex, 1);
- }
- }
-});
-
-var SINGLE_TOUCH_INPUT_MAP = {
- touchstart: INPUT_START,
- touchmove: INPUT_MOVE,
- touchend: INPUT_END,
- touchcancel: INPUT_CANCEL
-};
-
-var SINGLE_TOUCH_TARGET_EVENTS = 'touchstart';
-var SINGLE_TOUCH_WINDOW_EVENTS = 'touchstart touchmove touchend touchcancel';
-
-/**
- * Touch events input
- * @constructor
- * @extends Input
- */
-function SingleTouchInput() {
- this.evTarget = SINGLE_TOUCH_TARGET_EVENTS;
- this.evWin = SINGLE_TOUCH_WINDOW_EVENTS;
- this.started = false;
-
- Input.apply(this, arguments);
-}
-
-inherit(SingleTouchInput, Input, {
- handler: function TEhandler(ev) {
- var type = SINGLE_TOUCH_INPUT_MAP[ev.type];
-
- // should we handle the touch events?
- if (type === INPUT_START) {
- this.started = true;
- }
-
- if (!this.started) {
- return;
- }
-
- var touches = normalizeSingleTouches.call(this, ev, type);
-
- // when done, reset the started state
- if (type & (INPUT_END | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {
- this.started = false;
- }
-
- this.callback(this.manager, type, {
- pointers: touches[0],
- changedPointers: touches[1],
- pointerType: INPUT_TYPE_TOUCH,
- srcEvent: ev
- });
- }
-});
-
-/**
- * @this {TouchInput}
- * @param {Object} ev
- * @param {Number} type flag
- * @returns {undefined|Array} [all, changed]
- */
-function normalizeSingleTouches(ev, type) {
- var all = toArray(ev.touches);
- var changed = toArray(ev.changedTouches);
-
- if (type & (INPUT_END | INPUT_CANCEL)) {
- all = uniqueArray(all.concat(changed), 'identifier', true);
- }
-
- return [all, changed];
-}
-
-var TOUCH_INPUT_MAP = {
- touchstart: INPUT_START,
- touchmove: INPUT_MOVE,
- touchend: INPUT_END,
- touchcancel: INPUT_CANCEL
-};
-
-var TOUCH_TARGET_EVENTS = 'touchstart touchmove touchend touchcancel';
-
-/**
- * Multi-user touch events input
- * @constructor
- * @extends Input
- */
-function TouchInput() {
- this.evTarget = TOUCH_TARGET_EVENTS;
- this.targetIds = {};
-
- Input.apply(this, arguments);
-}
-
-inherit(TouchInput, Input, {
- handler: function MTEhandler(ev) {
- var type = TOUCH_INPUT_MAP[ev.type];
- var touches = getTouches.call(this, ev, type);
- if (!touches) {
- return;
- }
-
- this.callback(this.manager, type, {
- pointers: touches[0],
- changedPointers: touches[1],
- pointerType: INPUT_TYPE_TOUCH,
- srcEvent: ev
- });
- }
-});
-
-/**
- * @this {TouchInput}
- * @param {Object} ev
- * @param {Number} type flag
- * @returns {undefined|Array} [all, changed]
- */
-function getTouches(ev, type) {
- var allTouches = toArray(ev.touches);
- var targetIds = this.targetIds;
-
- // when there is only one touch, the process can be simplified
- if (type & (INPUT_START | INPUT_MOVE) && allTouches.length === 1) {
- targetIds[allTouches[0].identifier] = true;
- return [allTouches, allTouches];
- }
-
- var i,
- targetTouches,
- changedTouches = toArray(ev.changedTouches),
- changedTargetTouches = [],
- target = this.target;
-
- // get target touches from touches
- targetTouches = allTouches.filter(function(touch) {
- return hasParent(touch.target, target);
- });
-
- // collect touches
- if (type === INPUT_START) {
- i = 0;
- while (i < targetTouches.length) {
- targetIds[targetTouches[i].identifier] = true;
- i++;
- }
- }
-
- // filter changed touches to only contain touches that exist in the collected target ids
- i = 0;
- while (i < changedTouches.length) {
- if (targetIds[changedTouches[i].identifier]) {
- changedTargetTouches.push(changedTouches[i]);
- }
-
- // cleanup removed touches
- if (type & (INPUT_END | INPUT_CANCEL)) {
- delete targetIds[changedTouches[i].identifier];
- }
- i++;
- }
-
- if (!changedTargetTouches.length) {
- return;
- }
-
- return [
- // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
- uniqueArray(targetTouches.concat(changedTargetTouches), 'identifier', true),
- changedTargetTouches
- ];
-}
-
-/**
- * Combined touch and mouse input
- *
- * Touch has a higher priority then mouse, and while touching no mouse events are allowed.
- * This because touch devices also emit mouse events while doing a touch.
- *
- * @constructor
- * @extends Input
- */
-
-var DEDUP_TIMEOUT = 2500;
-var DEDUP_DISTANCE = 25;
-
-function TouchMouseInput() {
- Input.apply(this, arguments);
-
- var handler = bindFn(this.handler, this);
- this.touch = new TouchInput(this.manager, handler);
- this.mouse = new MouseInput(this.manager, handler);
-
- this.primaryTouch = null;
- this.lastTouches = [];
-}
-
-inherit(TouchMouseInput, Input, {
- /**
- * handle mouse and touch events
- * @param {Hammer} manager
- * @param {String} inputEvent
- * @param {Object} inputData
- */
- handler: function TMEhandler(manager, inputEvent, inputData) {
- var isTouch = (inputData.pointerType == INPUT_TYPE_TOUCH),
- isMouse = (inputData.pointerType == INPUT_TYPE_MOUSE);
-
- if (isMouse && inputData.sourceCapabilities && inputData.sourceCapabilities.firesTouchEvents) {
- return;
- }
-
- // when we're in a touch event, record touches to de-dupe synthetic mouse event
- if (isTouch) {
- recordTouches.call(this, inputEvent, inputData);
- } else if (isMouse && isSyntheticEvent.call(this, inputData)) {
- return;
- }
-
- this.callback(manager, inputEvent, inputData);
- },
-
- /**
- * remove the event listeners
- */
- destroy: function destroy() {
- this.touch.destroy();
- this.mouse.destroy();
- }
-});
-
-function recordTouches(eventType, eventData) {
- if (eventType & INPUT_START) {
- this.primaryTouch = eventData.changedPointers[0].identifier;
- setLastTouch.call(this, eventData);
- } else if (eventType & (INPUT_END | INPUT_CANCEL)) {
- setLastTouch.call(this, eventData);
- }
-}
-
-function setLastTouch(eventData) {
- var touch = eventData.changedPointers[0];
-
- if (touch.identifier === this.primaryTouch) {
- var lastTouch = {x: touch.clientX, y: touch.clientY};
- this.lastTouches.push(lastTouch);
- var lts = this.lastTouches;
- var removeLastTouch = function() {
- var i = lts.indexOf(lastTouch);
- if (i > -1) {
- lts.splice(i, 1);
- }
- };
- setTimeout(removeLastTouch, DEDUP_TIMEOUT);
- }
-}
-
-function isSyntheticEvent(eventData) {
- var x = eventData.srcEvent.clientX, y = eventData.srcEvent.clientY;
- for (var i = 0; i < this.lastTouches.length; i++) {
- var t = this.lastTouches[i];
- var dx = Math.abs(x - t.x), dy = Math.abs(y - t.y);
- if (dx <= DEDUP_DISTANCE && dy <= DEDUP_DISTANCE) {
- return true;
- }
- }
- return false;
-}
-
-var PREFIXED_TOUCH_ACTION = prefixed(TEST_ELEMENT.style, 'touchAction');
-var NATIVE_TOUCH_ACTION = PREFIXED_TOUCH_ACTION !== undefined;
-
-// magical touchAction value
-var TOUCH_ACTION_COMPUTE = 'compute';
-var TOUCH_ACTION_AUTO = 'auto';
-var TOUCH_ACTION_MANIPULATION = 'manipulation'; // not implemented
-var TOUCH_ACTION_NONE = 'none';
-var TOUCH_ACTION_PAN_X = 'pan-x';
-var TOUCH_ACTION_PAN_Y = 'pan-y';
-var TOUCH_ACTION_MAP = getTouchActionProps();
-
-/**
- * Touch Action
- * sets the touchAction property or uses the js alternative
- * @param {Manager} manager
- * @param {String} value
- * @constructor
- */
-function TouchAction(manager, value) {
- this.manager = manager;
- this.set(value);
-}
-
-TouchAction.prototype = {
- /**
- * set the touchAction value on the element or enable the polyfill
- * @param {String} value
- */
- set: function(value) {
- // find out the touch-action by the event handlers
- if (value == TOUCH_ACTION_COMPUTE) {
- value = this.compute();
- }
-
- if (NATIVE_TOUCH_ACTION && this.manager.element.style && TOUCH_ACTION_MAP[value]) {
- this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;
- }
- this.actions = value.toLowerCase().trim();
- },
-
- /**
- * just re-set the touchAction value
- */
- update: function() {
- this.set(this.manager.options.touchAction);
- },
-
- /**
- * compute the value for the touchAction property based on the recognizer's settings
- * @returns {String} value
- */
- compute: function() {
- var actions = [];
- each(this.manager.recognizers, function(recognizer) {
- if (boolOrFn(recognizer.options.enable, [recognizer])) {
- actions = actions.concat(recognizer.getTouchAction());
- }
- });
- return cleanTouchActions(actions.join(' '));
- },
-
- /**
- * this method is called on each input cycle and provides the preventing of the browser behavior
- * @param {Object} input
- */
- preventDefaults: function(input) {
- var srcEvent = input.srcEvent;
- var direction = input.offsetDirection;
-
- // if the touch action did prevented once this session
- if (this.manager.session.prevented) {
- srcEvent.preventDefault();
- return;
- }
-
- var actions = this.actions;
- var hasNone = inStr(actions, TOUCH_ACTION_NONE) && !TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];
- var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];
- var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];
-
- if (hasNone) {
- //do not prevent defaults if this is a tap gesture
-
- var isTapPointer = input.pointers.length === 1;
- var isTapMovement = input.distance < 2;
- var isTapTouchTime = input.deltaTime < 250;
-
- if (isTapPointer && isTapMovement && isTapTouchTime) {
- return;
- }
- }
-
- if (hasPanX && hasPanY) {
- // `pan-x pan-y` means browser handles all scrolling/panning, do not prevent
- return;
- }
-
- if (hasNone ||
- (hasPanY && direction & DIRECTION_HORIZONTAL) ||
- (hasPanX && direction & DIRECTION_VERTICAL)) {
- return this.preventSrc(srcEvent);
- }
- },
-
- /**
- * call preventDefault to prevent the browser's default behavior (scrolling in most cases)
- * @param {Object} srcEvent
- */
- preventSrc: function(srcEvent) {
- this.manager.session.prevented = true;
- srcEvent.preventDefault();
- }
-};
-
-/**
- * when the touchActions are collected they are not a valid value, so we need to clean things up. *
- * @param {String} actions
- * @returns {*}
- */
-function cleanTouchActions(actions) {
- // none
- if (inStr(actions, TOUCH_ACTION_NONE)) {
- return TOUCH_ACTION_NONE;
- }
-
- var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);
- var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y);
-
- // if both pan-x and pan-y are set (different recognizers
- // for different directions, e.g. horizontal pan but vertical swipe?)
- // we need none (as otherwise with pan-x pan-y combined none of these
- // recognizers will work, since the browser would handle all panning
- if (hasPanX && hasPanY) {
- return TOUCH_ACTION_NONE;
- }
-
- // pan-x OR pan-y
- if (hasPanX || hasPanY) {
- return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y;
- }
-
- // manipulation
- if (inStr(actions, TOUCH_ACTION_MANIPULATION)) {
- return TOUCH_ACTION_MANIPULATION;
- }
-
- return TOUCH_ACTION_AUTO;
-}
-
-function getTouchActionProps() {
- if (!NATIVE_TOUCH_ACTION) {
- return false;
- }
- var touchMap = {};
- var cssSupports = window.CSS && window.CSS.supports;
- ['auto', 'manipulation', 'pan-y', 'pan-x', 'pan-x pan-y', 'none'].forEach(function(val) {
-
- // If css.supports is not supported but there is native touch-action assume it supports
- // all values. This is the case for IE 10 and 11.
- touchMap[val] = cssSupports ? window.CSS.supports('touch-action', val) : true;
- });
- return touchMap;
-}
-
-/**
- * Recognizer flow explained; *
- * All recognizers have the initial state of POSSIBLE when a input session starts.
- * The definition of a input session is from the first input until the last input, with all it's movement in it. *
- * Example session for mouse-input: mousedown -> mousemove -> mouseup
- *
- * On each recognizing cycle (see Manager.recognize) the .recognize() method is executed
- * which determines with state it should be.
- *
- * If the recognizer has the state FAILED, CANCELLED or RECOGNIZED (equals ENDED), it is reset to
- * POSSIBLE to give it another change on the next cycle.
- *
- * Possible
- * |
- * +-----+---------------+
- * | |
- * +-----+-----+ |
- * | | |
- * Failed Cancelled |
- * +-------+------+
- * | |
- * Recognized Began
- * |
- * Changed
- * |
- * Ended/Recognized
- */
-var STATE_POSSIBLE = 1;
-var STATE_BEGAN = 2;
-var STATE_CHANGED = 4;
-var STATE_ENDED = 8;
-var STATE_RECOGNIZED = STATE_ENDED;
-var STATE_CANCELLED = 16;
-var STATE_FAILED = 32;
-
-/**
- * Recognizer
- * Every recognizer needs to extend from this class.
- * @constructor
- * @param {Object} options
- */
-function Recognizer(options) {
- this.options = assign({}, this.defaults, options || {});
-
- this.id = uniqueId();
-
- this.manager = null;
-
- // default is enable true
- this.options.enable = ifUndefined(this.options.enable, true);
-
- this.state = STATE_POSSIBLE;
-
- this.simultaneous = {};
- this.requireFail = [];
-}
-
-Recognizer.prototype = {
- /**
- * @virtual
- * @type {Object}
- */
- defaults: {},
-
- /**
- * set options
- * @param {Object} options
- * @return {Recognizer}
- */
- set: function(options) {
- assign(this.options, options);
-
- // also update the touchAction, in case something changed about the directions/enabled state
- this.manager && this.manager.touchAction.update();
- return this;
- },
-
- /**
- * recognize simultaneous with an other recognizer.
- * @param {Recognizer} otherRecognizer
- * @returns {Recognizer} this
- */
- recognizeWith: function(otherRecognizer) {
- if (invokeArrayArg(otherRecognizer, 'recognizeWith', this)) {
- return this;
- }
-
- var simultaneous = this.simultaneous;
- otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);
- if (!simultaneous[otherRecognizer.id]) {
- simultaneous[otherRecognizer.id] = otherRecognizer;
- otherRecognizer.recognizeWith(this);
- }
- return this;
- },
-
- /**
- * drop the simultaneous link. it doesnt remove the link on the other recognizer.
- * @param {Recognizer} otherRecognizer
- * @returns {Recognizer} this
- */
- dropRecognizeWith: function(otherRecognizer) {
- if (invokeArrayArg(otherRecognizer, 'dropRecognizeWith', this)) {
- return this;
- }
-
- otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);
- delete this.simultaneous[otherRecognizer.id];
- return this;
- },
-
- /**
- * recognizer can only run when an other is failing
- * @param {Recognizer} otherRecognizer
- * @returns {Recognizer} this
- */
- requireFailure: function(otherRecognizer) {
- if (invokeArrayArg(otherRecognizer, 'requireFailure', this)) {
- return this;
- }
-
- var requireFail = this.requireFail;
- otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);
- if (inArray(requireFail, otherRecognizer) === -1) {
- requireFail.push(otherRecognizer);
- otherRecognizer.requireFailure(this);
- }
- return this;
- },
-
- /**
- * drop the requireFailure link. it does not remove the link on the other recognizer.
- * @param {Recognizer} otherRecognizer
- * @returns {Recognizer} this
- */
- dropRequireFailure: function(otherRecognizer) {
- if (invokeArrayArg(otherRecognizer, 'dropRequireFailure', this)) {
- return this;
- }
-
- otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);
- var index = inArray(this.requireFail, otherRecognizer);
- if (index > -1) {
- this.requireFail.splice(index, 1);
- }
- return this;
- },
-
- /**
- * has require failures boolean
- * @returns {boolean}
- */
- hasRequireFailures: function() {
- return this.requireFail.length > 0;
- },
-
- /**
- * if the recognizer can recognize simultaneous with an other recognizer
- * @param {Recognizer} otherRecognizer
- * @returns {Boolean}
- */
- canRecognizeWith: function(otherRecognizer) {
- return !!this.simultaneous[otherRecognizer.id];
- },
-
- /**
- * You should use `tryEmit` instead of `emit` directly to check
- * that all the needed recognizers has failed before emitting.
- * @param {Object} input
- */
- emit: function(input) {
- var self = this;
- var state = this.state;
-
- function emit(event) {
- self.manager.emit(event, input);
- }
-
- // 'panstart' and 'panmove'
- if (state < STATE_ENDED) {
- emit(self.options.event + stateStr(state));
- }
-
- emit(self.options.event); // simple 'eventName' events
-
- if (input.additionalEvent) { // additional event(panleft, panright, pinchin, pinchout...)
- emit(input.additionalEvent);
- }
-
- // panend and pancancel
- if (state >= STATE_ENDED) {
- emit(self.options.event + stateStr(state));
- }
- },
-
- /**
- * Check that all the require failure recognizers has failed,
- * if true, it emits a gesture event,
- * otherwise, setup the state to FAILED.
- * @param {Object} input
- */
- tryEmit: function(input) {
- if (this.canEmit()) {
- return this.emit(input);
- }
- // it's failing anyway
- this.state = STATE_FAILED;
- },
-
- /**
- * can we emit?
- * @returns {boolean}
- */
- canEmit: function() {
- var i = 0;
- while (i < this.requireFail.length) {
- if (!(this.requireFail[i].state & (STATE_FAILED | STATE_POSSIBLE))) {
- return false;
- }
- i++;
- }
- return true;
- },
-
- /**
- * update the recognizer
- * @param {Object} inputData
- */
- recognize: function(inputData) {
- // make a new copy of the inputData
- // so we can change the inputData without messing up the other recognizers
- var inputDataClone = assign({}, inputData);
-
- // is is enabled and allow recognizing?
- if (!boolOrFn(this.options.enable, [this, inputDataClone])) {
- this.reset();
- this.state = STATE_FAILED;
- return;
- }
-
- // reset when we've reached the end
- if (this.state & (STATE_RECOGNIZED | STATE_CANCELLED | STATE_FAILED)) {
- this.state = STATE_POSSIBLE;
- }
-
- this.state = this.process(inputDataClone);
-
- // the recognizer has recognized a gesture
- // so trigger an event
- if (this.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED | STATE_CANCELLED)) {
- this.tryEmit(inputDataClone);
- }
- },
-
- /**
- * return the state of the recognizer
- * the actual recognizing happens in this method
- * @virtual
- * @param {Object} inputData
- * @returns {Const} STATE
- */
- process: function(inputData) { }, // jshint ignore:line
-
- /**
- * return the preferred touch-action
- * @virtual
- * @returns {Array}
- */
- getTouchAction: function() { },
-
- /**
- * called when the gesture isn't allowed to recognize
- * like when another is being recognized or it is disabled
- * @virtual
- */
- reset: function() { }
-};
-
-/**
- * get a usable string, used as event postfix
- * @param {Const} state
- * @returns {String} state
- */
-function stateStr(state) {
- if (state & STATE_CANCELLED) {
- return 'cancel';
- } else if (state & STATE_ENDED) {
- return 'end';
- } else if (state & STATE_CHANGED) {
- return 'move';
- } else if (state & STATE_BEGAN) {
- return 'start';
- }
- return '';
-}
-
-/**
- * direction cons to string
- * @param {Const} direction
- * @returns {String}
- */
-function directionStr(direction) {
- if (direction == DIRECTION_DOWN) {
- return 'down';
- } else if (direction == DIRECTION_UP) {
- return 'up';
- } else if (direction == DIRECTION_LEFT) {
- return 'left';
- } else if (direction == DIRECTION_RIGHT) {
- return 'right';
- }
- return '';
-}
-
-/**
- * get a recognizer by name if it is bound to a manager
- * @param {Recognizer|String} otherRecognizer
- * @param {Recognizer} recognizer
- * @returns {Recognizer}
- */
-function getRecognizerByNameIfManager(otherRecognizer, recognizer) {
- var manager = recognizer.manager;
- if (manager) {
- return manager.get(otherRecognizer);
- }
- return otherRecognizer;
-}
-
-/**
- * This recognizer is just used as a base for the simple attribute recognizers.
- * @constructor
- * @extends Recognizer
- */
-function AttrRecognizer() {
- Recognizer.apply(this, arguments);
-}
-
-inherit(AttrRecognizer, Recognizer, {
- /**
- * @namespace
- * @memberof AttrRecognizer
- */
- defaults: {
- /**
- * @type {Number}
- * @default 1
- */
- pointers: 1
- },
-
- /**
- * Used to check if it the recognizer receives valid input, like input.distance > 10.
- * @memberof AttrRecognizer
- * @param {Object} input
- * @returns {Boolean} recognized
- */
- attrTest: function(input) {
- var optionPointers = this.options.pointers;
- return optionPointers === 0 || input.pointers.length === optionPointers;
- },
-
- /**
- * Process the input and return the state for the recognizer
- * @memberof AttrRecognizer
- * @param {Object} input
- * @returns {*} State
- */
- process: function(input) {
- var state = this.state;
- var eventType = input.eventType;
-
- var isRecognized = state & (STATE_BEGAN | STATE_CHANGED);
- var isValid = this.attrTest(input);
-
- // on cancel input and we've recognized before, return STATE_CANCELLED
- if (isRecognized && (eventType & INPUT_CANCEL || !isValid)) {
- return state | STATE_CANCELLED;
- } else if (isRecognized || isValid) {
- if (eventType & INPUT_END) {
- return state | STATE_ENDED;
- } else if (!(state & STATE_BEGAN)) {
- return STATE_BEGAN;
- }
- return state | STATE_CHANGED;
- }
- return STATE_FAILED;
- }
-});
-
-/**
- * Pan
- * Recognized when the pointer is down and moved in the allowed direction.
- * @constructor
- * @extends AttrRecognizer
- */
-function PanRecognizer() {
- AttrRecognizer.apply(this, arguments);
-
- this.pX = null;
- this.pY = null;
-}
-
-inherit(PanRecognizer, AttrRecognizer, {
- /**
- * @namespace
- * @memberof PanRecognizer
- */
- defaults: {
- event: 'pan',
- threshold: 10,
- pointers: 1,
- direction: DIRECTION_ALL
- },
-
- getTouchAction: function() {
- var direction = this.options.direction;
- var actions = [];
- if (direction & DIRECTION_HORIZONTAL) {
- actions.push(TOUCH_ACTION_PAN_Y);
- }
- if (direction & DIRECTION_VERTICAL) {
- actions.push(TOUCH_ACTION_PAN_X);
- }
- return actions;
- },
-
- directionTest: function(input) {
- var options = this.options;
- var hasMoved = true;
- var distance = input.distance;
- var direction = input.direction;
- var x = input.deltaX;
- var y = input.deltaY;
-
- // lock to axis?
- if (!(direction & options.direction)) {
- if (options.direction & DIRECTION_HORIZONTAL) {
- direction = (x === 0) ? DIRECTION_NONE : (x < 0) ? DIRECTION_LEFT : DIRECTION_RIGHT;
- hasMoved = x != this.pX;
- distance = Math.abs(input.deltaX);
- } else {
- direction = (y === 0) ? DIRECTION_NONE : (y < 0) ? DIRECTION_UP : DIRECTION_DOWN;
- hasMoved = y != this.pY;
- distance = Math.abs(input.deltaY);
- }
- }
- input.direction = direction;
- return hasMoved && distance > options.threshold && direction & options.direction;
- },
-
- attrTest: function(input) {
- return AttrRecognizer.prototype.attrTest.call(this, input) &&
- (this.state & STATE_BEGAN || (!(this.state & STATE_BEGAN) && this.directionTest(input)));
- },
-
- emit: function(input) {
-
- this.pX = input.deltaX;
- this.pY = input.deltaY;
-
- var direction = directionStr(input.direction);
-
- if (direction) {
- input.additionalEvent = this.options.event + direction;
- }
- this._super.emit.call(this, input);
- }
-});
-
-/**
- * Pinch
- * Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).
- * @constructor
- * @extends AttrRecognizer
- */
-function PinchRecognizer() {
- AttrRecognizer.apply(this, arguments);
-}
-
-inherit(PinchRecognizer, AttrRecognizer, {
- /**
- * @namespace
- * @memberof PinchRecognizer
- */
- defaults: {
- event: 'pinch',
- threshold: 0,
- pointers: 2
- },
-
- getTouchAction: function() {
- return [TOUCH_ACTION_NONE];
- },
-
- attrTest: function(input) {
- return this._super.attrTest.call(this, input) &&
- (Math.abs(input.scale - 1) > this.options.threshold || this.state & STATE_BEGAN);
- },
-
- emit: function(input) {
- if (input.scale !== 1) {
- var inOut = input.scale < 1 ? 'in' : 'out';
- input.additionalEvent = this.options.event + inOut;
- }
- this._super.emit.call(this, input);
- }
-});
-
-/**
- * Press
- * Recognized when the pointer is down for x ms without any movement.
- * @constructor
- * @extends Recognizer
- */
-function PressRecognizer() {
- Recognizer.apply(this, arguments);
-
- this._timer = null;
- this._input = null;
-}
-
-inherit(PressRecognizer, Recognizer, {
- /**
- * @namespace
- * @memberof PressRecognizer
- */
- defaults: {
- event: 'press',
- pointers: 1,
- time: 251, // minimal time of the pointer to be pressed
- threshold: 9 // a minimal movement is ok, but keep it low
- },
-
- getTouchAction: function() {
- return [TOUCH_ACTION_AUTO];
- },
-
- process: function(input) {
- var options = this.options;
- var validPointers = input.pointers.length === options.pointers;
- var validMovement = input.distance < options.threshold;
- var validTime = input.deltaTime > options.time;
-
- this._input = input;
-
- // we only allow little movement
- // and we've reached an end event, so a tap is possible
- if (!validMovement || !validPointers || (input.eventType & (INPUT_END | INPUT_CANCEL) && !validTime)) {
- this.reset();
- } else if (input.eventType & INPUT_START) {
- this.reset();
- this._timer = setTimeoutContext(function() {
- this.state = STATE_RECOGNIZED;
- this.tryEmit();
- }, options.time, this);
- } else if (input.eventType & INPUT_END) {
- return STATE_RECOGNIZED;
- }
- return STATE_FAILED;
- },
-
- reset: function() {
- clearTimeout(this._timer);
- },
-
- emit: function(input) {
- if (this.state !== STATE_RECOGNIZED) {
- return;
- }
-
- if (input && (input.eventType & INPUT_END)) {
- this.manager.emit(this.options.event + 'up', input);
- } else {
- this._input.timeStamp = now();
- this.manager.emit(this.options.event, this._input);
- }
- }
-});
-
-/**
- * Rotate
- * Recognized when two or more pointer are moving in a circular motion.
- * @constructor
- * @extends AttrRecognizer
- */
-function RotateRecognizer() {
- AttrRecognizer.apply(this, arguments);
-}
-
-inherit(RotateRecognizer, AttrRecognizer, {
- /**
- * @namespace
- * @memberof RotateRecognizer
- */
- defaults: {
- event: 'rotate',
- threshold: 0,
- pointers: 2
- },
-
- getTouchAction: function() {
- return [TOUCH_ACTION_NONE];
- },
-
- attrTest: function(input) {
- return this._super.attrTest.call(this, input) &&
- (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);
- }
-});
-
-/**
- * Swipe
- * Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.
- * @constructor
- * @extends AttrRecognizer
- */
-function SwipeRecognizer() {
- AttrRecognizer.apply(this, arguments);
-}
-
-inherit(SwipeRecognizer, AttrRecognizer, {
- /**
- * @namespace
- * @memberof SwipeRecognizer
- */
- defaults: {
- event: 'swipe',
- threshold: 10,
- velocity: 0.3,
- direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,
- pointers: 1
- },
-
- getTouchAction: function() {
- return PanRecognizer.prototype.getTouchAction.call(this);
- },
-
- attrTest: function(input) {
- var direction = this.options.direction;
- var velocity;
-
- if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {
- velocity = input.overallVelocity;
- } else if (direction & DIRECTION_HORIZONTAL) {
- velocity = input.overallVelocityX;
- } else if (direction & DIRECTION_VERTICAL) {
- velocity = input.overallVelocityY;
- }
-
- return this._super.attrTest.call(this, input) &&
- direction & input.offsetDirection &&
- input.distance > this.options.threshold &&
- input.maxPointers == this.options.pointers &&
- abs(velocity) > this.options.velocity && input.eventType & INPUT_END;
- },
-
- emit: function(input) {
- var direction = directionStr(input.offsetDirection);
- if (direction) {
- this.manager.emit(this.options.event + direction, input);
- }
-
- this.manager.emit(this.options.event, input);
- }
-});
-
-/**
- * A tap is ecognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur
- * between the given interval and position. The delay option can be used to recognize multi-taps without firing
- * a single tap.
- *
- * The eventData from the emitted event contains the property `tapCount`, which contains the amount of
- * multi-taps being recognized.
- * @constructor
- * @extends Recognizer
- */
-function TapRecognizer() {
- Recognizer.apply(this, arguments);
-
- // previous time and center,
- // used for tap counting
- this.pTime = false;
- this.pCenter = false;
-
- this._timer = null;
- this._input = null;
- this.count = 0;
-}
-
-inherit(TapRecognizer, Recognizer, {
- /**
- * @namespace
- * @memberof PinchRecognizer
- */
- defaults: {
- event: 'tap',
- pointers: 1,
- taps: 1,
- interval: 300, // max time between the multi-tap taps
- time: 250, // max time of the pointer to be down (like finger on the screen)
- threshold: 9, // a minimal movement is ok, but keep it low
- posThreshold: 10 // a multi-tap can be a bit off the initial position
- },
-
- getTouchAction: function() {
- return [TOUCH_ACTION_MANIPULATION];
- },
-
- process: function(input) {
- var options = this.options;
-
- var validPointers = input.pointers.length === options.pointers;
- var validMovement = input.distance < options.threshold;
- var validTouchTime = input.deltaTime < options.time;
-
- this.reset();
-
- if ((input.eventType & INPUT_START) && (this.count === 0)) {
- return this.failTimeout();
- }
-
- // we only allow little movement
- // and we've reached an end event, so a tap is possible
- if (validMovement && validTouchTime && validPointers) {
- if (input.eventType != INPUT_END) {
- return this.failTimeout();
- }
-
- var validInterval = this.pTime ? (input.timeStamp - this.pTime < options.interval) : true;
- var validMultiTap = !this.pCenter || getDistance(this.pCenter, input.center) < options.posThreshold;
-
- this.pTime = input.timeStamp;
- this.pCenter = input.center;
-
- if (!validMultiTap || !validInterval) {
- this.count = 1;
- } else {
- this.count += 1;
- }
-
- this._input = input;
-
- // if tap count matches we have recognized it,
- // else it has began recognizing...
- var tapCount = this.count % options.taps;
- if (tapCount === 0) {
- // no failing requirements, immediately trigger the tap event
- // or wait as long as the multitap interval to trigger
- if (!this.hasRequireFailures()) {
- return STATE_RECOGNIZED;
- } else {
- this._timer = setTimeoutContext(function() {
- this.state = STATE_RECOGNIZED;
- this.tryEmit();
- }, options.interval, this);
- return STATE_BEGAN;
- }
- }
- }
- return STATE_FAILED;
- },
-
- failTimeout: function() {
- this._timer = setTimeoutContext(function() {
- this.state = STATE_FAILED;
- }, this.options.interval, this);
- return STATE_FAILED;
- },
-
- reset: function() {
- clearTimeout(this._timer);
- },
-
- emit: function() {
- if (this.state == STATE_RECOGNIZED) {
- this._input.tapCount = this.count;
- this.manager.emit(this.options.event, this._input);
- }
- }
-});
-
-/**
- * Simple way to create a manager with a default set of recognizers.
- * @param {HTMLElement} element
- * @param {Object} [options]
- * @constructor
- */
-function Hammer(element, options) {
- options = options || {};
- options.recognizers = ifUndefined(options.recognizers, Hammer.defaults.preset);
- return new Manager(element, options);
-}
-
-/**
- * @const {string}
- */
-Hammer.VERSION = '2.0.7';
-
-/**
- * default settings
- * @namespace
- */
-Hammer.defaults = {
- /**
- * set if DOM events are being triggered.
- * But this is slower and unused by simple implementations, so disabled by default.
- * @type {Boolean}
- * @default false
- */
- domEvents: false,
-
- /**
- * The value for the touchAction property/fallback.
- * When set to `compute` it will magically set the correct value based on the added recognizers.
- * @type {String}
- * @default compute
- */
- touchAction: TOUCH_ACTION_COMPUTE,
-
- /**
- * @type {Boolean}
- * @default true
- */
- enable: true,
-
- /**
- * EXPERIMENTAL FEATURE -- can be removed/changed
- * Change the parent input target element.
- * If Null, then it is being set the to main element.
- * @type {Null|EventTarget}
- * @default null
- */
- inputTarget: null,
-
- /**
- * force an input class
- * @type {Null|Function}
- * @default null
- */
- inputClass: null,
-
- /**
- * Default recognizer setup when calling `Hammer()`
- * When creating a new Manager these will be skipped.
- * @type {Array}
- */
- preset: [
- // RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
- [RotateRecognizer, {enable: false}],
- [PinchRecognizer, {enable: false}, ['rotate']],
- [SwipeRecognizer, {direction: DIRECTION_HORIZONTAL}],
- [PanRecognizer, {direction: DIRECTION_HORIZONTAL}, ['swipe']],
- [TapRecognizer],
- [TapRecognizer, {event: 'doubletap', taps: 2}, ['tap']],
- [PressRecognizer]
- ],
-
- /**
- * Some CSS properties can be used to improve the working of Hammer.
- * Add them to this method and they will be set when creating a new Manager.
- * @namespace
- */
- cssProps: {
- /**
- * Disables text selection to improve the dragging gesture. Mainly for desktop browsers.
- * @type {String}
- * @default 'none'
- */
- userSelect: 'none',
-
- /**
- * Disable the Windows Phone grippers when pressing an element.
- * @type {String}
- * @default 'none'
- */
- touchSelect: 'none',
-
- /**
- * Disables the default callout shown when you touch and hold a touch target.
- * On iOS, when you touch and hold a touch target such as a link, Safari displays
- * a callout containing information about the link. This property allows you to disable that callout.
- * @type {String}
- * @default 'none'
- */
- touchCallout: 'none',
-
- /**
- * Specifies whether zooming is enabled. Used by IE10>
- * @type {String}
- * @default 'none'
- */
- contentZooming: 'none',
-
- /**
- * Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.
- * @type {String}
- * @default 'none'
- */
- userDrag: 'none',
-
- /**
- * Overrides the highlight color shown when the user taps a link or a JavaScript
- * clickable element in iOS. This property obeys the alpha value, if specified.
- * @type {String}
- * @default 'rgba(0,0,0,0)'
- */
- tapHighlightColor: 'rgba(0,0,0,0)'
- }
-};
-
-var STOP = 1;
-var FORCED_STOP = 2;
-
-/**
- * Manager
- * @param {HTMLElement} element
- * @param {Object} [options]
- * @constructor
- */
-function Manager(element, options) {
- this.options = assign({}, Hammer.defaults, options || {});
-
- this.options.inputTarget = this.options.inputTarget || element;
-
- this.handlers = {};
- this.session = {};
- this.recognizers = [];
- this.oldCssProps = {};
-
- this.element = element;
- this.input = createInputInstance(this);
- this.touchAction = new TouchAction(this, this.options.touchAction);
-
- toggleCssProps(this, true);
-
- each(this.options.recognizers, function(item) {
- var recognizer = this.add(new (item[0])(item[1]));
- item[2] && recognizer.recognizeWith(item[2]);
- item[3] && recognizer.requireFailure(item[3]);
- }, this);
-}
-
-Manager.prototype = {
- /**
- * set options
- * @param {Object} options
- * @returns {Manager}
- */
- set: function(options) {
- assign(this.options, options);
-
- // Options that need a little more setup
- if (options.touchAction) {
- this.touchAction.update();
- }
- if (options.inputTarget) {
- // Clean up existing event listeners and reinitialize
- this.input.destroy();
- this.input.target = options.inputTarget;
- this.input.init();
- }
- return this;
- },
-
- /**
- * stop recognizing for this session.
- * This session will be discarded, when a new [input]start event is fired.
- * When forced, the recognizer cycle is stopped immediately.
- * @param {Boolean} [force]
- */
- stop: function(force) {
- this.session.stopped = force ? FORCED_STOP : STOP;
- },
-
- /**
- * run the recognizers!
- * called by the inputHandler function on every movement of the pointers (touches)
- * it walks through all the recognizers and tries to detect the gesture that is being made
- * @param {Object} inputData
- */
- recognize: function(inputData) {
- var session = this.session;
- if (session.stopped) {
- return;
- }
-
- // run the touch-action polyfill
- this.touchAction.preventDefaults(inputData);
-
- var recognizer;
- var recognizers = this.recognizers;
-
- // this holds the recognizer that is being recognized.
- // so the recognizer's state needs to be BEGAN, CHANGED, ENDED or RECOGNIZED
- // if no recognizer is detecting a thing, it is set to `null`
- var curRecognizer = session.curRecognizer;
-
- // reset when the last recognizer is recognized
- // or when we're in a new session
- if (!curRecognizer || (curRecognizer && curRecognizer.state & STATE_RECOGNIZED)) {
- curRecognizer = session.curRecognizer = null;
- }
-
- var i = 0;
- while (i < recognizers.length) {
- recognizer = recognizers[i];
-
- // find out if we are allowed try to recognize the input for this one.
- // 1. allow if the session is NOT forced stopped (see the .stop() method)
- // 2. allow if we still haven't recognized a gesture in this session, or the this recognizer is the one
- // that is being recognized.
- // 3. allow if the recognizer is allowed to run simultaneous with the current recognized recognizer.
- // this can be setup with the `recognizeWith()` method on the recognizer.
- if (session.stopped !== FORCED_STOP && ( // 1
- !curRecognizer || recognizer == curRecognizer || // 2
- recognizer.canRecognizeWith(curRecognizer))) { // 3
- recognizer.recognize(inputData);
- } else {
- recognizer.reset();
- }
-
- // if the recognizer has been recognizing the input as a valid gesture, we want to store this one as the
- // current active recognizer. but only if we don't already have an active recognizer
- if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) {
- curRecognizer = session.curRecognizer = recognizer;
- }
- i++;
- }
- },
-
- /**
- * get a recognizer by its event name.
- * @param {Recognizer|String} recognizer
- * @returns {Recognizer|Null}
- */
- get: function(recognizer) {
- if (recognizer instanceof Recognizer) {
- return recognizer;
- }
-
- var recognizers = this.recognizers;
- for (var i = 0; i < recognizers.length; i++) {
- if (recognizers[i].options.event == recognizer) {
- return recognizers[i];
- }
- }
- return null;
- },
-
- /**
- * add a recognizer to the manager
- * existing recognizers with the same event name will be removed
- * @param {Recognizer} recognizer
- * @returns {Recognizer|Manager}
- */
- add: function(recognizer) {
- if (invokeArrayArg(recognizer, 'add', this)) {
- return this;
- }
-
- // remove existing
- var existing = this.get(recognizer.options.event);
- if (existing) {
- this.remove(existing);
- }
-
- this.recognizers.push(recognizer);
- recognizer.manager = this;
-
- this.touchAction.update();
- return recognizer;
- },
-
- /**
- * remove a recognizer by name or instance
- * @param {Recognizer|String} recognizer
- * @returns {Manager}
- */
- remove: function(recognizer) {
- if (invokeArrayArg(recognizer, 'remove', this)) {
- return this;
- }
-
- recognizer = this.get(recognizer);
-
- // let's make sure this recognizer exists
- if (recognizer) {
- var recognizers = this.recognizers;
- var index = inArray(recognizers, recognizer);
-
- if (index !== -1) {
- recognizers.splice(index, 1);
- this.touchAction.update();
- }
- }
-
- return this;
- },
-
- /**
- * bind event
- * @param {String} events
- * @param {Function} handler
- * @returns {EventEmitter} this
- */
- on: function(events, handler) {
- if (events === undefined) {
- return;
- }
- if (handler === undefined) {
- return;
- }
-
- var handlers = this.handlers;
- each(splitStr(events), function(event) {
- handlers[event] = handlers[event] || [];
- handlers[event].push(handler);
- });
- return this;
- },
-
- /**
- * unbind event, leave emit blank to remove all handlers
- * @param {String} events
- * @param {Function} [handler]
- * @returns {EventEmitter} this
- */
- off: function(events, handler) {
- if (events === undefined) {
- return;
- }
-
- var handlers = this.handlers;
- each(splitStr(events), function(event) {
- if (!handler) {
- delete handlers[event];
- } else {
- handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);
- }
- });
- return this;
- },
-
- /**
- * emit event to the listeners
- * @param {String} event
- * @param {Object} data
- */
- emit: function(event, data) {
- // we also want to trigger dom events
- if (this.options.domEvents) {
- triggerDomEvent(event, data);
- }
-
- // no handlers, so skip it all
- var handlers = this.handlers[event] && this.handlers[event].slice();
- if (!handlers || !handlers.length) {
- return;
- }
-
- data.type = event;
- data.preventDefault = function() {
- data.srcEvent.preventDefault();
- };
-
- var i = 0;
- while (i < handlers.length) {
- handlers[i](data);
- i++;
- }
- },
-
- /**
- * destroy the manager and unbinds all events
- * it doesn't unbind dom events, that is the user own responsibility
- */
- destroy: function() {
- this.element && toggleCssProps(this, false);
-
- this.handlers = {};
- this.session = {};
- this.input.destroy();
- this.element = null;
- }
-};
-
-/**
- * add/remove the css properties as defined in manager.options.cssProps
- * @param {Manager} manager
- * @param {Boolean} add
- */
-function toggleCssProps(manager, add) {
- var element = manager.element;
- if (!element.style) {
- return;
- }
- var prop;
- each(manager.options.cssProps, function(value, name) {
- prop = prefixed(element.style, name);
- if (add) {
- manager.oldCssProps[prop] = element.style[prop];
- element.style[prop] = value;
- } else {
- element.style[prop] = manager.oldCssProps[prop] || '';
- }
- });
- if (!add) {
- manager.oldCssProps = {};
- }
-}
-
-/**
- * trigger dom event
- * @param {String} event
- * @param {Object} data
- */
-function triggerDomEvent(event, data) {
- var gestureEvent = document.createEvent('Event');
- gestureEvent.initEvent(event, true, true);
- gestureEvent.gesture = data;
- data.target.dispatchEvent(gestureEvent);
-}
-
-assign(Hammer, {
- INPUT_START: INPUT_START,
- INPUT_MOVE: INPUT_MOVE,
- INPUT_END: INPUT_END,
- INPUT_CANCEL: INPUT_CANCEL,
-
- STATE_POSSIBLE: STATE_POSSIBLE,
- STATE_BEGAN: STATE_BEGAN,
- STATE_CHANGED: STATE_CHANGED,
- STATE_ENDED: STATE_ENDED,
- STATE_RECOGNIZED: STATE_RECOGNIZED,
- STATE_CANCELLED: STATE_CANCELLED,
- STATE_FAILED: STATE_FAILED,
-
- DIRECTION_NONE: DIRECTION_NONE,
- DIRECTION_LEFT: DIRECTION_LEFT,
- DIRECTION_RIGHT: DIRECTION_RIGHT,
- DIRECTION_UP: DIRECTION_UP,
- DIRECTION_DOWN: DIRECTION_DOWN,
- DIRECTION_HORIZONTAL: DIRECTION_HORIZONTAL,
- DIRECTION_VERTICAL: DIRECTION_VERTICAL,
- DIRECTION_ALL: DIRECTION_ALL,
-
- Manager: Manager,
- Input: Input,
- TouchAction: TouchAction,
-
- TouchInput: TouchInput,
- MouseInput: MouseInput,
- PointerEventInput: PointerEventInput,
- TouchMouseInput: TouchMouseInput,
- SingleTouchInput: SingleTouchInput,
-
- Recognizer: Recognizer,
- AttrRecognizer: AttrRecognizer,
- Tap: TapRecognizer,
- Pan: PanRecognizer,
- Swipe: SwipeRecognizer,
- Pinch: PinchRecognizer,
- Rotate: RotateRecognizer,
- Press: PressRecognizer,
-
- on: addEventListeners,
- off: removeEventListeners,
- each: each,
- merge: merge,
- extend: extend,
- assign: assign,
- inherit: inherit,
- bindFn: bindFn,
- prefixed: prefixed
-});
-
-// this prevents errors when Hammer is loaded in the presence of an AMD
-// style loader but by script tag, not by the loader.
-var freeGlobal = (typeof window !== 'undefined' ? window : (typeof self !== 'undefined' ? self : {})); // jshint ignore:line
-freeGlobal.Hammer = Hammer;
-
-if (typeof define === 'function' && define.amd) {
- define(function() {
- return Hammer;
- });
-} else if (typeof module != 'undefined' && module.exports) {
- module.exports = Hammer;
-} else {
- window[exportName] = Hammer;
-}
-
-})(window, document, 'Hammer');
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.js b/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.js
deleted file mode 100644
index 34a8c86f..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*! Hammer.JS - v2.0.7 - 2016-04-22
- * http://hammerjs.github.io/
- *
- * Copyright (c) 2016 Jorik Tangelder;
- * Licensed under the MIT license */
-!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(j(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function h(b,c,d){var e="DEPRECATED METHOD: "+c+"\n"+d+" AT \n";return function(){var c=new Error("get-stack-trace"),d=c&&c.stack?c.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=a.console&&(a.console.warn||a.console.log);return f&&f.call(a.console,e,d),b.apply(this,arguments)}}function i(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&la(d,c)}function j(a,b){return function(){return a.apply(b,arguments)}}function k(a,b){return typeof a==oa?a.apply(b?b[0]||d:d,b):a}function l(a,b){return a===d?b:a}function m(a,b,c){g(q(b),function(b){a.addEventListener(b,c,!1)})}function n(a,b,c){g(q(b),function(b){a.removeEventListener(b,c,!1)})}function o(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function p(a,b){return a.indexOf(b)>-1}function q(a){return a.trim().split(/\s+/g)}function r(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function s(a){return Array.prototype.slice.call(a,0)}function t(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];r(e,g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function u(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g<ma.length;){if(c=ma[g],e=c?c+f:b,e in a)return e;g++}return d}function v(){return ua++}function w(b){var c=b.ownerDocument||b;return c.defaultView||c.parentWindow||a}function x(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){k(a.options.enable,[a])&&c.handler(b)},this.init()}function y(a){var b,c=a.options.inputClass;return new(b=c?c:xa?M:ya?P:wa?R:L)(a,z)}function z(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&Ea&&d-e===0,g=b&(Ga|Ha)&&d-e===0;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,A(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function A(a,b){var c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=D(b)),e>1&&!c.firstMultiple?c.firstMultiple=D(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=E(d);b.timeStamp=ra(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=I(h,i),b.distance=H(h,i),B(c,b),b.offsetDirection=G(b.deltaX,b.deltaY);var j=F(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=qa(j.x)>qa(j.y)?j.x:j.y,b.scale=g?K(g.pointers,d):1,b.rotation=g?J(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,C(c,b);var k=a.element;o(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function B(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};b.eventType!==Ea&&f.eventType!==Ga||(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function C(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Ha&&(i>Da||h.velocity===d)){var j=b.deltaX-h.deltaX,k=b.deltaY-h.deltaY,l=F(i,j,k);e=l.x,f=l.y,c=qa(l.x)>qa(l.y)?l.x:l.y,g=G(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function D(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:pa(a.pointers[c].clientX),clientY:pa(a.pointers[c].clientY)},c++;return{timeStamp:ra(),pointers:b,center:E(b),deltaX:a.deltaX,deltaY:a.deltaY}}function E(a){var b=a.length;if(1===b)return{x:pa(a[0].clientX),y:pa(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:pa(c/b),y:pa(d/b)}}function F(a,b,c){return{x:b/a||0,y:c/a||0}}function G(a,b){return a===b?Ia:qa(a)>=qa(b)?0>a?Ja:Ka:0>b?La:Ma}function H(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function I(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function J(a,b){return I(b[1],b[0],Ra)+I(a[1],a[0],Ra)}function K(a,b){return H(b[0],b[1],Ra)/H(a[0],a[1],Ra)}function L(){this.evEl=Ta,this.evWin=Ua,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Xa,this.evWin=Ya,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=$a,this.evWin=_a,this.started=!1,x.apply(this,arguments)}function O(a,b){var c=s(a.touches),d=s(a.changedTouches);return b&(Ga|Ha)&&(c=t(c.concat(d),"identifier",!0)),[c,d]}function P(){this.evTarget=bb,this.targetIds={},x.apply(this,arguments)}function Q(a,b){var c=s(a.touches),d=this.targetIds;if(b&(Ea|Fa)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=s(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return o(a.target,i)}),b===Ea)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(Ga|Ha)&&delete d[g[e].identifier],e++;return h.length?[t(f.concat(h),"identifier",!0),h]:void 0}function R(){x.apply(this,arguments);var a=j(this.handler,this);this.touch=new P(this.manager,a),this.mouse=new L(this.manager,a),this.primaryTouch=null,this.lastTouches=[]}function S(a,b){a&Ea?(this.primaryTouch=b.changedPointers[0].identifier,T.call(this,b)):a&(Ga|Ha)&&T.call(this,b)}function T(a){var b=a.changedPointers[0];if(b.identifier===this.primaryTouch){var c={x:b.clientX,y:b.clientY};this.lastTouches.push(c);var d=this.lastTouches,e=function(){var a=d.indexOf(c);a>-1&&d.splice(a,1)};setTimeout(e,cb)}}function U(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d<this.lastTouches.length;d++){var e=this.lastTouches[d],f=Math.abs(b-e.x),g=Math.abs(c-e.y);if(db>=f&&db>=g)return!0}return!1}function V(a,b){this.manager=a,this.set(b)}function W(a){if(p(a,jb))return jb;var b=p(a,kb),c=p(a,lb);return b&&c?jb:b||c?b?kb:lb:p(a,ib)?ib:hb}function X(){if(!fb)return!1;var b={},c=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(d){b[d]=c?a.CSS.supports("touch-action",d):!0}),b}function Y(a){this.options=la({},this.defaults,a||{}),this.id=v(),this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=nb,this.simultaneous={},this.requireFail=[]}function Z(a){return a&sb?"cancel":a&qb?"end":a&pb?"move":a&ob?"start":""}function $(a){return a==Ma?"down":a==La?"up":a==Ja?"left":a==Ka?"right":""}function _(a,b){var c=b.manager;return c?c.get(a):a}function aa(){Y.apply(this,arguments)}function ba(){aa.apply(this,arguments),this.pX=null,this.pY=null}function ca(){aa.apply(this,arguments)}function da(){Y.apply(this,arguments),this._timer=null,this._input=null}function ea(){aa.apply(this,arguments)}function fa(){aa.apply(this,arguments)}function ga(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ha(a,b){return b=b||{},b.recognizers=l(b.recognizers,ha.defaults.preset),new ia(a,b)}function ia(a,b){this.options=la({},ha.defaults,b||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=y(this),this.touchAction=new V(this,this.options.touchAction),ja(this,!0),g(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function ja(a,b){var c=a.element;if(c.style){var d;g(a.options.cssProps,function(e,f){d=u(c.style,f),b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""}),b||(a.oldCssProps={})}}function ka(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var la,ma=["","webkit","Moz","MS","ms","o"],na=b.createElement("div"),oa="function",pa=Math.round,qa=Math.abs,ra=Date.now;la="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;c<arguments.length;c++){var e=arguments[c];if(e!==d&&null!==e)for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])}return b}:Object.assign;var sa=h(function(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a},"extend","Use `assign`."),ta=h(function(a,b){return sa(a,b,!0)},"merge","Use `assign`."),ua=1,va=/mobile|tablet|ip(ad|hone|od)|android/i,wa="ontouchstart"in a,xa=u(a,"PointerEvent")!==d,ya=wa&&va.test(navigator.userAgent),za="touch",Aa="pen",Ba="mouse",Ca="kinect",Da=25,Ea=1,Fa=2,Ga=4,Ha=8,Ia=1,Ja=2,Ka=4,La=8,Ma=16,Na=Ja|Ka,Oa=La|Ma,Pa=Na|Oa,Qa=["x","y"],Ra=["clientX","clientY"];x.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&n(this.element,this.evEl,this.domHandler),this.evTarget&&n(this.target,this.evTarget,this.domHandler),this.evWin&&n(w(this.element),this.evWin,this.domHandler)}};var Sa={mousedown:Ea,mousemove:Fa,mouseup:Ga},Ta="mousedown",Ua="mousemove mouseup";i(L,x,{handler:function(a){var b=Sa[a.type];b&Ea&&0===a.button&&(this.pressed=!0),b&Fa&&1!==a.which&&(b=Ga),this.pressed&&(b&Ga&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:Ba,srcEvent:a}))}});var Va={pointerdown:Ea,pointermove:Fa,pointerup:Ga,pointercancel:Ha,pointerout:Ha},Wa={2:za,3:Aa,4:Ba,5:Ca},Xa="pointerdown",Ya="pointermove pointerup pointercancel";a.MSPointerEvent&&!a.PointerEvent&&(Xa="MSPointerDown",Ya="MSPointerMove MSPointerUp MSPointerCancel"),i(M,x,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=Va[d],f=Wa[a.pointerType]||a.pointerType,g=f==za,h=r(b,a.pointerId,"pointerId");e&Ea&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(Ga|Ha)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Za={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},$a="touchstart",_a="touchstart touchmove touchend touchcancel";i(N,x,{handler:function(a){var b=Za[a.type];if(b===Ea&&(this.started=!0),this.started){var c=O.call(this,a,b);b&(Ga|Ha)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}}});var ab={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},bb="touchstart touchmove touchend touchcancel";i(P,x,{handler:function(a){var b=ab[a.type],c=Q.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}});var cb=2500,db=25;i(R,x,{handler:function(a,b,c){var d=c.pointerType==za,e=c.pointerType==Ba;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)S.call(this,b,c);else if(e&&U.call(this,c))return;this.callback(a,b,c)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var eb=u(na.style,"touchAction"),fb=eb!==d,gb="compute",hb="auto",ib="manipulation",jb="none",kb="pan-x",lb="pan-y",mb=X();V.prototype={set:function(a){a==gb&&(a=this.compute()),fb&&this.manager.element.style&&mb[a]&&(this.manager.element.style[eb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){k(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),W(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=p(d,jb)&&!mb[jb],f=p(d,lb)&&!mb[lb],g=p(d,kb)&&!mb[kb];if(e){var h=1===a.pointers.length,i=a.distance<2,j=a.deltaTime<250;if(h&&i&&j)return}return g&&f?void 0:e||f&&c&Na||g&&c&Oa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var nb=1,ob=2,pb=4,qb=8,rb=qb,sb=16,tb=32;Y.prototype={defaults:{},set:function(a){return la(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=_(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=_(a,this),-1===r(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=_(a,this);var b=r(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,a)}var c=this,d=this.state;qb>d&&b(c.options.event+Z(d)),b(c.options.event),a.additionalEvent&&b(a.additionalEvent),d>=qb&&b(c.options.event+Z(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=tb)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(tb|nb)))return!1;a++}return!0},recognize:function(a){var b=la({},a);return k(this.options.enable,[this,b])?(this.state&(rb|sb|tb)&&(this.state=nb),this.state=this.process(b),void(this.state&(ob|pb|qb|sb)&&this.tryEmit(b))):(this.reset(),void(this.state=tb))},process:function(a){},getTouchAction:function(){},reset:function(){}},i(aa,Y,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(ob|pb),e=this.attrTest(a);return d&&(c&Ha||!e)?b|sb:d||e?c&Ga?b|qb:b&ob?b|pb:ob:tb}}),i(ba,aa,{defaults:{event:"pan",threshold:10,pointers:1,direction:Pa},getTouchAction:function(){var a=this.options.direction,b=[];return a&Na&&b.push(lb),a&Oa&&b.push(kb),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&Na?(e=0===f?Ia:0>f?Ja:Ka,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Ia:0>g?La:Ma,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return aa.prototype.attrTest.call(this,a)&&(this.state&ob||!(this.state&ob)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),i(ca,aa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ob)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),i(da,Y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(Ga|Ha)&&!f)this.reset();else if(a.eventType&Ea)this.reset(),this._timer=e(function(){this.state=rb,this.tryEmit()},b.time,this);else if(a.eventType&Ga)return rb;return tb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===rb&&(a&&a.eventType&Ga?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=ra(),this.manager.emit(this.options.event,this._input)))}}),i(ea,aa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ob)}}),i(fa,aa,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Na|Oa,pointers:1},getTouchAction:function(){return ba.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Na|Oa)?b=a.overallVelocity:c&Na?b=a.overallVelocityX:c&Oa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&qa(b)>this.options.velocity&&a.eventType&Ga},emit:function(a){var b=$(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),i(ga,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ib]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&Ea&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=Ga)return this.failTimeout();var g=this.pTime?a.timeStamp-this.pTime<b.interval:!0,h=!this.pCenter||H(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,h&&g?this.count+=1:this.count=1,this._input=a;var i=this.count%b.taps;if(0===i)return this.hasRequireFailures()?(this._timer=e(function(){this.state=rb,this.tryEmit()},b.interval,this),ob):rb}return tb},failTimeout:function(){return this._timer=e(function(){this.state=tb},this.options.interval,this),tb},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==rb&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ha.VERSION="2.0.7",ha.defaults={domEvents:!1,touchAction:gb,enable:!0,inputTarget:null,inputClass:null,preset:[[ea,{enable:!1}],[ca,{enable:!1},["rotate"]],[fa,{direction:Na}],[ba,{direction:Na},["swipe"]],[ga],[ga,{event:"doubletap",taps:2},["tap"]],[da]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ub=1,vb=2;ia.prototype={set:function(a){return la(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?vb:ub},recognize:function(a){var b=this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c,d=this.recognizers,e=b.curRecognizer;(!e||e&&e.state&rb)&&(e=b.curRecognizer=null);for(var f=0;f<d.length;)c=d[f],b.stopped===vb||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(ob|pb|qb)&&(e=b.curRecognizer=c),f++}},get:function(a){if(a instanceof Y)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;if(a=this.get(a)){var b=this.recognizers,c=r(b,a);-1!==c&&(b.splice(c,1),this.touchAction.update())}return this},on:function(a,b){if(a!==d&&b!==d){var c=this.handlers;return g(q(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this}},off:function(a,b){if(a!==d){var c=this.handlers;return g(q(a),function(a){b?c[a]&&c[a].splice(r(c[a],b),1):delete c[a]}),this}},emit:function(a,b){this.options.domEvents&&ka(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length){b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()};for(var d=0;d<c.length;)c[d](b),d++}},destroy:function(){this.element&&ja(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},la(ha,{INPUT_START:Ea,INPUT_MOVE:Fa,INPUT_END:Ga,INPUT_CANCEL:Ha,STATE_POSSIBLE:nb,STATE_BEGAN:ob,STATE_CHANGED:pb,STATE_ENDED:qb,STATE_RECOGNIZED:rb,STATE_CANCELLED:sb,STATE_FAILED:tb,DIRECTION_NONE:Ia,DIRECTION_LEFT:Ja,DIRECTION_RIGHT:Ka,DIRECTION_UP:La,DIRECTION_DOWN:Ma,DIRECTION_HORIZONTAL:Na,DIRECTION_VERTICAL:Oa,DIRECTION_ALL:Pa,Manager:ia,Input:x,TouchAction:V,TouchInput:P,MouseInput:L,PointerEventInput:M,TouchMouseInput:R,SingleTouchInput:N,Recognizer:Y,AttrRecognizer:aa,Tap:ga,Pan:ba,Swipe:fa,Pinch:ca,Rotate:ea,Press:da,on:m,off:n,each:g,merge:ta,extend:sa,assign:la,inherit:i,bindFn:j,prefixed:u});var wb="undefined"!=typeof a?a:"undefined"!=typeof self?self:{};wb.Hammer=ha,"function"==typeof define&&define.amd?define(function(){return ha}):"undefined"!=typeof module&&module.exports?module.exports=ha:a[c]=ha}(window,document,"Hammer");
-//# sourceMappingURL=hammer.min.js.map \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.js.map b/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.js.map
deleted file mode 100644
index 2fa0e325..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["hammer.js"],"names":["window","document","exportName","undefined","setTimeoutContext","fn","timeout","context","setTimeout","bindFn","invokeArrayArg","arg","Array","isArray","each","obj","iterator","i","forEach","length","call","hasOwnProperty","deprecate","method","name","message","deprecationMessage","e","Error","stack","replace","log","console","warn","apply","this","arguments","inherit","child","base","properties","childP","baseP","prototype","Object","create","constructor","_super","assign","boolOrFn","val","args","TYPE_FUNCTION","ifUndefined","val1","val2","addEventListeners","target","types","handler","splitStr","type","addEventListener","removeEventListeners","removeEventListener","hasParent","node","parent","parentNode","inStr","str","find","indexOf","trim","split","inArray","src","findByKey","toArray","slice","uniqueArray","key","sort","results","values","push","a","b","prefixed","property","prefix","prop","camelProp","toUpperCase","VENDOR_PREFIXES","uniqueId","_uniqueId","getWindowForElement","element","doc","ownerDocument","defaultView","parentWindow","Input","manager","callback","self","options","inputTarget","domHandler","ev","enable","init","createInputInstance","Type","inputClass","SUPPORT_POINTER_EVENTS","PointerEventInput","SUPPORT_ONLY_TOUCH","TouchInput","SUPPORT_TOUCH","TouchMouseInput","MouseInput","inputHandler","eventType","input","pointersLen","pointers","changedPointersLen","changedPointers","isFirst","INPUT_START","isFinal","INPUT_END","INPUT_CANCEL","session","computeInputData","emit","recognize","prevInput","pointersLength","firstInput","simpleCloneInputData","firstMultiple","offsetCenter","center","getCenter","timeStamp","now","deltaTime","angle","getAngle","distance","getDistance","computeDeltaXY","offsetDirection","getDirection","deltaX","deltaY","overallVelocity","getVelocity","overallVelocityX","x","overallVelocityY","y","abs","scale","getScale","rotation","getRotation","maxPointers","computeIntervalInputData","srcEvent","offset","offsetDelta","prevDelta","velocity","velocityX","velocityY","direction","last","lastInterval","COMPUTE_INTERVAL","v","clientX","round","clientY","DIRECTION_NONE","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DIRECTION_DOWN","p1","p2","props","PROPS_XY","Math","sqrt","atan2","PI","start","end","PROPS_CLIENT_XY","evEl","MOUSE_ELEMENT_EVENTS","evWin","MOUSE_WINDOW_EVENTS","pressed","POINTER_ELEMENT_EVENTS","POINTER_WINDOW_EVENTS","store","pointerEvents","SingleTouchInput","evTarget","SINGLE_TOUCH_TARGET_EVENTS","SINGLE_TOUCH_WINDOW_EVENTS","started","normalizeSingleTouches","all","touches","changed","changedTouches","concat","TOUCH_TARGET_EVENTS","targetIds","getTouches","allTouches","INPUT_MOVE","identifier","targetTouches","changedTargetTouches","filter","touch","mouse","primaryTouch","lastTouches","recordTouches","eventData","setLastTouch","lastTouch","lts","removeLastTouch","splice","DEDUP_TIMEOUT","isSyntheticEvent","t","dx","dy","DEDUP_DISTANCE","TouchAction","value","set","cleanTouchActions","actions","TOUCH_ACTION_NONE","hasPanX","TOUCH_ACTION_PAN_X","hasPanY","TOUCH_ACTION_PAN_Y","TOUCH_ACTION_MANIPULATION","TOUCH_ACTION_AUTO","getTouchActionProps","NATIVE_TOUCH_ACTION","touchMap","cssSupports","CSS","supports","Recognizer","defaults","id","state","STATE_POSSIBLE","simultaneous","requireFail","stateStr","STATE_CANCELLED","STATE_ENDED","STATE_CHANGED","STATE_BEGAN","directionStr","getRecognizerByNameIfManager","otherRecognizer","recognizer","get","AttrRecognizer","PanRecognizer","pX","pY","PinchRecognizer","PressRecognizer","_timer","_input","RotateRecognizer","SwipeRecognizer","TapRecognizer","pTime","pCenter","count","Hammer","recognizers","preset","Manager","handlers","oldCssProps","touchAction","toggleCssProps","item","add","recognizeWith","requireFailure","style","cssProps","triggerDomEvent","event","data","gestureEvent","createEvent","initEvent","gesture","dispatchEvent","TEST_ELEMENT","createElement","Date","TypeError","output","index","source","nextKey","extend","dest","merge","keys","MOBILE_REGEX","test","navigator","userAgent","INPUT_TYPE_TOUCH","INPUT_TYPE_PEN","INPUT_TYPE_MOUSE","INPUT_TYPE_KINECT","DIRECTION_HORIZONTAL","DIRECTION_VERTICAL","DIRECTION_ALL","destroy","MOUSE_INPUT_MAP","mousedown","mousemove","mouseup","button","which","pointerType","POINTER_INPUT_MAP","pointerdown","pointermove","pointerup","pointercancel","pointerout","IE10_POINTER_TYPE_ENUM",2,3,4,5,"MSPointerEvent","PointerEvent","removePointer","eventTypeNormalized","toLowerCase","isTouch","storeIndex","pointerId","SINGLE_TOUCH_INPUT_MAP","touchstart","touchmove","touchend","touchcancel","TOUCH_INPUT_MAP","inputEvent","inputData","isMouse","sourceCapabilities","firesTouchEvents","PREFIXED_TOUCH_ACTION","TOUCH_ACTION_COMPUTE","TOUCH_ACTION_MAP","compute","update","getTouchAction","join","preventDefaults","prevented","preventDefault","hasNone","isTapPointer","isTapMovement","isTapTouchTime","preventSrc","STATE_RECOGNIZED","STATE_FAILED","dropRecognizeWith","dropRequireFailure","hasRequireFailures","canRecognizeWith","additionalEvent","tryEmit","canEmit","inputDataClone","process","reset","attrTest","optionPointers","isRecognized","isValid","threshold","directionTest","hasMoved","inOut","time","validPointers","validMovement","validTime","clearTimeout","taps","interval","posThreshold","validTouchTime","failTimeout","validInterval","validMultiTap","tapCount","VERSION","domEvents","userSelect","touchSelect","touchCallout","contentZooming","userDrag","tapHighlightColor","STOP","FORCED_STOP","stop","force","stopped","curRecognizer","existing","remove","on","events","off","Tap","Pan","Swipe","Pinch","Rotate","Press","freeGlobal","define","amd","module","exports"],"mappings":"CAAA,SAAUA,EAAQC,EAAUC,EAAYC,GACtC,YAkBF,SAASC,GAAkBC,EAAIC,EAASC,GACpC,MAAOC,YAAWC,EAAOJ,EAAIE,GAAUD,GAY3C,QAASI,GAAeC,EAAKN,EAAIE,GAC7B,MAAIK,OAAMC,QAAQF,IACdG,EAAKH,EAAKJ,EAAQF,GAAKE,IAChB,IAEJ,EASX,QAASO,GAAKC,EAAKC,EAAUT,GACzB,GAAIU,EAEJ,IAAKF,EAIL,GAAIA,EAAIG,QACJH,EAAIG,QAAQF,EAAUT,OACnB,IAAIQ,EAAII,SAAWhB,EAEtB,IADAc,EAAI,EACGA,EAAIF,EAAII,QACXH,EAASI,KAAKb,EAASQ,EAAIE,GAAIA,EAAGF,GAClCE,QAGJ,KAAKA,IAAKF,GACNA,EAAIM,eAAeJ,IAAMD,EAASI,KAAKb,EAASQ,EAAIE,GAAIA,EAAGF,GAYvE,QAASO,GAAUC,EAAQC,EAAMC,GAC7B,GAAIC,GAAqB,sBAAwBF,EAAO,KAAOC,EAAU,QACzE,OAAO,YACH,GAAIE,GAAI,GAAIC,OAAM,mBACdC,EAAQF,GAAKA,EAAEE,MAAQF,EAAEE,MAAMC,QAAQ,kBAAmB,IACzDA,QAAQ,cAAe,IACvBA,QAAQ,6BAA8B,kBAAoB,sBAE3DC,EAAM/B,EAAOgC,UAAYhC,EAAOgC,QAAQC,MAAQjC,EAAOgC,QAAQD,IAInE,OAHIA,IACAA,EAAIX,KAAKpB,EAAOgC,QAASN,EAAoBG,GAE1CN,EAAOW,MAAMC,KAAMC,YAwElC,QAASC,GAAQC,EAAOC,EAAMC,GAC1B,GACIC,GADAC,EAAQH,EAAKI,SAGjBF,GAASH,EAAMK,UAAYC,OAAOC,OAAOH,GACzCD,EAAOK,YAAcR,EACrBG,EAAOM,OAASL,EAEZF,GACAQ,GAAOP,EAAQD,GAUvB,QAAS/B,GAAOJ,EAAIE,GAChB,MAAO,YACH,MAAOF,GAAG6B,MAAM3B,EAAS6B,YAWjC,QAASa,GAASC,EAAKC,GACnB,aAAWD,IAAOE,GACPF,EAAIhB,MAAMiB,EAAOA,EAAK,IAAMhD,EAAYA,EAAWgD,GAEvDD,EASX,QAASG,GAAYC,EAAMC,GACvB,MAAQD,KAASnD,EAAaoD,EAAOD,EASzC,QAASE,GAAkBC,EAAQC,EAAOC,GACtC7C,EAAK8C,EAASF,GAAQ,SAASG,GAC3BJ,EAAOK,iBAAiBD,EAAMF,GAAS,KAU/C,QAASI,GAAqBN,EAAQC,EAAOC,GACzC7C,EAAK8C,EAASF,GAAQ,SAASG,GAC3BJ,EAAOO,oBAAoBH,EAAMF,GAAS,KAWlD,QAASM,GAAUC,EAAMC,GACrB,KAAOD,GAAM,CACT,GAAIA,GAAQC,EACR,OAAO,CAEXD,GAAOA,EAAKE,WAEhB,OAAO,EASX,QAASC,GAAMC,EAAKC,GAChB,MAAOD,GAAIE,QAAQD,GAAQ,GAQ/B,QAASX,GAASU,GACd,MAAOA,GAAIG,OAAOC,MAAM,QAU5B,QAASC,GAAQC,EAAKL,EAAMM,GACxB,GAAID,EAAIJ,UAAYK,EAChB,MAAOD,GAAIJ,QAAQD,EAGnB,KADA,GAAItD,GAAI,EACDA,EAAI2D,EAAIzD,QAAQ,CACnB,GAAK0D,GAAaD,EAAI3D,GAAG4D,IAAcN,IAAWM,GAAaD,EAAI3D,KAAOsD,EACtE,MAAOtD,EAEXA,KAEJ,MAAO,GASf,QAAS6D,GAAQ/D,GACb,MAAOH,OAAM+B,UAAUoC,MAAM3D,KAAKL,EAAK,GAU3C,QAASiE,GAAYJ,EAAKK,EAAKC,GAK3B,IAJA,GAAIC,MACAC,KACAnE,EAAI,EAEDA,EAAI2D,EAAIzD,QAAQ,CACnB,GAAI+B,GAAM+B,EAAML,EAAI3D,GAAGgE,GAAOL,EAAI3D,EAC9B0D,GAAQS,EAAQlC,GAAO,GACvBiC,EAAQE,KAAKT,EAAI3D,IAErBmE,EAAOnE,GAAKiC,EACZjC,IAaJ,MAVIiE,KAIIC,EAHCF,EAGSE,EAAQD,KAAK,SAAyBI,EAAGC,GAC/C,MAAOD,GAAEL,GAAOM,EAAEN,KAHZE,EAAQD,QAQnBC,EASX,QAASK,GAASzE,EAAK0E,GAKnB,IAJA,GAAIC,GAAQC,EACRC,EAAYH,EAAS,GAAGI,cAAgBJ,EAASV,MAAM,GAEvD9D,EAAI,EACDA,EAAI6E,GAAgB3E,QAAQ,CAI/B,GAHAuE,EAASI,GAAgB7E,GACzB0E,EAAO,EAAWD,EAASE,EAAYH,EAEnCE,IAAQ5E,GACR,MAAO4E,EAEX1E,KAEJ,MAAOd,GAQX,QAAS4F,KACL,MAAOC,MAQX,QAASC,GAAoBC,GACzB,GAAIC,GAAMD,EAAQE,eAAiBF,CACnC,OAAQC,GAAIE,aAAeF,EAAIG,cAAgBtG,EAyCnD,QAASuG,GAAMC,EAASC,GACpB,GAAIC,GAAOvE,IACXA,MAAKqE,QAAUA,EACfrE,KAAKsE,SAAWA,EAChBtE,KAAK+D,QAAUM,EAAQN,QACvB/D,KAAKsB,OAAS+C,EAAQG,QAAQC,YAI9BzE,KAAK0E,WAAa,SAASC,GACnB7D,EAASuD,EAAQG,QAAQI,QAASP,KAClCE,EAAK/C,QAAQmD,IAIrB3E,KAAK6E,OAoCT,QAASC,GAAoBT,GACzB,GAAIU,GACAC,EAAaX,EAAQG,QAAQQ,UAajC,OAAO,KAVHD,EADAC,EACOA,EACAC,GACAC,EACAC,GACAC,EACCC,GAGDC,EAFAC,GAIOlB,EAASmB,GAS/B,QAASA,GAAanB,EAASoB,EAAWC,GACtC,GAAIC,GAAcD,EAAME,SAAS5G,OAC7B6G,EAAqBH,EAAMI,gBAAgB9G,OAC3C+G,EAAWN,EAAYO,IAAgBL,EAAcE,IAAuB,EAC5EI,EAAWR,GAAaS,GAAYC,KAAkBR,EAAcE,IAAuB,CAE/FH,GAAMK,UAAYA,EAClBL,EAAMO,UAAYA,EAEdF,IACA1B,EAAQ+B,YAKZV,EAAMD,UAAYA,EAGlBY,EAAiBhC,EAASqB,GAG1BrB,EAAQiC,KAAK,eAAgBZ,GAE7BrB,EAAQkC,UAAUb,GAClBrB,EAAQ+B,QAAQI,UAAYd,EAQhC,QAASW,GAAiBhC,EAASqB,GAC/B,GAAIU,GAAU/B,EAAQ+B,QAClBR,EAAWF,EAAME,SACjBa,EAAiBb,EAAS5G,MAGzBoH,GAAQM,aACTN,EAAQM,WAAaC,EAAqBjB,IAI1Ce,EAAiB,IAAML,EAAQQ,cAC/BR,EAAQQ,cAAgBD,EAAqBjB,GACnB,IAAnBe,IACPL,EAAQQ,eAAgB,EAG5B,IAAIF,GAAaN,EAAQM,WACrBE,EAAgBR,EAAQQ,cACxBC,EAAeD,EAAgBA,EAAcE,OAASJ,EAAWI,OAEjEA,EAASpB,EAAMoB,OAASC,EAAUnB,EACtCF,GAAMsB,UAAYC,KAClBvB,EAAMwB,UAAYxB,EAAMsB,UAAYN,EAAWM,UAE/CtB,EAAMyB,MAAQC,EAASP,EAAcC,GACrCpB,EAAM2B,SAAWC,EAAYT,EAAcC,GAE3CS,EAAenB,EAASV,GACxBA,EAAM8B,gBAAkBC,EAAa/B,EAAMgC,OAAQhC,EAAMiC,OAEzD,IAAIC,GAAkBC,EAAYnC,EAAMwB,UAAWxB,EAAMgC,OAAQhC,EAAMiC,OACvEjC,GAAMoC,iBAAmBF,EAAgBG,EACzCrC,EAAMsC,iBAAmBJ,EAAgBK,EACzCvC,EAAMkC,gBAAmBM,GAAIN,EAAgBG,GAAKG,GAAIN,EAAgBK,GAAML,EAAgBG,EAAIH,EAAgBK,EAEhHvC,EAAMyC,MAAQvB,EAAgBwB,EAASxB,EAAchB,SAAUA,GAAY,EAC3EF,EAAM2C,SAAWzB,EAAgB0B,EAAY1B,EAAchB,SAAUA,GAAY,EAEjFF,EAAM6C,YAAenC,EAAQI,UAAsCd,EAAME,SAAS5G,OAC9EoH,EAAQI,UAAU+B,YAAe7C,EAAME,SAAS5G,OAASoH,EAAQI,UAAU+B,YADtC7C,EAAME,SAAS5G,OAGxDwJ,EAAyBpC,EAASV,EAGlC,IAAIpE,GAAS+C,EAAQN,OACjBjC,GAAU4D,EAAM+C,SAASnH,OAAQA,KACjCA,EAASoE,EAAM+C,SAASnH,QAE5BoE,EAAMpE,OAASA,EAGnB,QAASiG,GAAenB,EAASV,GAC7B,GAAIoB,GAASpB,EAAMoB,OACf4B,EAAStC,EAAQuC,gBACjBC,EAAYxC,EAAQwC,cACpBpC,EAAYJ,EAAQI,aAEpBd,GAAMD,YAAcO,IAAeQ,EAAUf,YAAcS,KAC3D0C,EAAYxC,EAAQwC,WAChBb,EAAGvB,EAAUkB,QAAU,EACvBO,EAAGzB,EAAUmB,QAAU,GAG3Be,EAAStC,EAAQuC,aACbZ,EAAGjB,EAAOiB,EACVE,EAAGnB,EAAOmB,IAIlBvC,EAAMgC,OAASkB,EAAUb,GAAKjB,EAAOiB,EAAIW,EAAOX,GAChDrC,EAAMiC,OAASiB,EAAUX,GAAKnB,EAAOmB,EAAIS,EAAOT,GAQpD,QAASO,GAAyBpC,EAASV,GACvC,GAEImD,GAAUC,EAAWC,EAAWC,EAFhCC,EAAO7C,EAAQ8C,cAAgBxD,EAC/BwB,EAAYxB,EAAMsB,UAAYiC,EAAKjC,SAGvC,IAAItB,EAAMD,WAAaU,KAAiBe,EAAYiC,IAAoBF,EAAKJ,WAAa7K,GAAY,CAClG,GAAI0J,GAAShC,EAAMgC,OAASuB,EAAKvB,OAC7BC,EAASjC,EAAMiC,OAASsB,EAAKtB,OAE7ByB,EAAIvB,EAAYX,EAAWQ,EAAQC,EACvCmB,GAAYM,EAAErB,EACdgB,EAAYK,EAAEnB,EACdY,EAAYX,GAAIkB,EAAErB,GAAKG,GAAIkB,EAAEnB,GAAMmB,EAAErB,EAAIqB,EAAEnB,EAC3Ce,EAAYvB,EAAaC,EAAQC,GAEjCvB,EAAQ8C,aAAexD,MAGvBmD,GAAWI,EAAKJ,SAChBC,EAAYG,EAAKH,UACjBC,EAAYE,EAAKF,UACjBC,EAAYC,EAAKD,SAGrBtD,GAAMmD,SAAWA,EACjBnD,EAAMoD,UAAYA,EAClBpD,EAAMqD,UAAYA,EAClBrD,EAAMsD,UAAYA,EAQtB,QAASrC,GAAqBjB,GAK1B,IAFA,GAAIE,MACA9G,EAAI,EACDA,EAAI4G,EAAME,SAAS5G,QACtB4G,EAAS9G,IACLuK,QAASC,GAAM5D,EAAME,SAAS9G,GAAGuK,SACjCE,QAASD,GAAM5D,EAAME,SAAS9G,GAAGyK,UAErCzK,GAGJ,QACIkI,UAAWC,KACXrB,SAAUA,EACVkB,OAAQC,EAAUnB,GAClB8B,OAAQhC,EAAMgC,OACdC,OAAQjC,EAAMiC,QAStB,QAASZ,GAAUnB,GACf,GAAIa,GAAiBb,EAAS5G,MAG9B,IAAuB,IAAnByH,EACA,OACIsB,EAAGuB,GAAM1D,EAAS,GAAGyD,SACrBpB,EAAGqB,GAAM1D,EAAS,GAAG2D,SAK7B,KADA,GAAIxB,GAAI,EAAGE,EAAI,EAAGnJ,EAAI,EACX2H,EAAJ3H,GACHiJ,GAAKnC,EAAS9G,GAAGuK,QACjBpB,GAAKrC,EAAS9G,GAAGyK,QACjBzK,GAGJ,QACIiJ,EAAGuB,GAAMvB,EAAItB,GACbwB,EAAGqB,GAAMrB,EAAIxB,IAWrB,QAASoB,GAAYX,EAAWa,EAAGE,GAC/B,OACIF,EAAGA,EAAIb,GAAa,EACpBe,EAAGA,EAAIf,GAAa,GAU5B,QAASO,GAAaM,EAAGE,GACrB,MAAIF,KAAME,EACCuB,GAGPtB,GAAIH,IAAMG,GAAID,GACH,EAAJF,EAAQ0B,GAAiBC,GAEzB,EAAJzB,EAAQ0B,GAAeC,GAUlC,QAAStC,GAAYuC,EAAIC,EAAIC,GACpBA,IACDA,EAAQC,GAEZ,IAAIjC,GAAI+B,EAAGC,EAAM,IAAMF,EAAGE,EAAM,IAC5B9B,EAAI6B,EAAGC,EAAM,IAAMF,EAAGE,EAAM,GAEhC,OAAOE,MAAKC,KAAMnC,EAAIA,EAAME,EAAIA,GAUpC,QAASb,GAASyC,EAAIC,EAAIC,GACjBA,IACDA,EAAQC,GAEZ,IAAIjC,GAAI+B,EAAGC,EAAM,IAAMF,EAAGE,EAAM,IAC5B9B,EAAI6B,EAAGC,EAAM,IAAMF,EAAGE,EAAM,GAChC,OAA0B,KAAnBE,KAAKE,MAAMlC,EAAGF,GAAWkC,KAAKG,GASzC,QAAS9B,GAAY+B,EAAOC,GACxB,MAAOlD,GAASkD,EAAI,GAAIA,EAAI,GAAIC,IAAmBnD,EAASiD,EAAM,GAAIA,EAAM,GAAIE,IAUpF,QAASnC,GAASiC,EAAOC,GACrB,MAAOhD,GAAYgD,EAAI,GAAIA,EAAI,GAAIC,IAAmBjD,EAAY+C,EAAM,GAAIA,EAAM,GAAIE,IAiB1F,QAAShF,KACLvF,KAAKwK,KAAOC,GACZzK,KAAK0K,MAAQC,GAEb3K,KAAK4K,SAAU,EAEfxG,EAAMrE,MAAMC,KAAMC,WAoEtB,QAASiF,KACLlF,KAAKwK,KAAOK,GACZ7K,KAAK0K,MAAQI,GAEb1G,EAAMrE,MAAMC,KAAMC,WAElBD,KAAK+K,MAAS/K,KAAKqE,QAAQ+B,QAAQ4E,iBAoEvC,QAASC,KACLjL,KAAKkL,SAAWC,GAChBnL,KAAK0K,MAAQU,GACbpL,KAAKqL,SAAU,EAEfjH,EAAMrE,MAAMC,KAAMC,WAsCtB,QAASqL,GAAuB3G,EAAIjD,GAChC,GAAI6J,GAAM5I,EAAQgC,EAAG6G,SACjBC,EAAU9I,EAAQgC,EAAG+G,eAMzB,OAJIhK,IAAQwE,GAAYC,MACpBoF,EAAM1I,EAAY0I,EAAII,OAAOF,GAAU,cAAc,KAGjDF,EAAKE,GAiBjB,QAASrG,KACLpF,KAAKkL,SAAWU,GAChB5L,KAAK6L,aAELzH,EAAMrE,MAAMC,KAAMC,WA0BtB,QAAS6L,GAAWnH,EAAIjD,GACpB,GAAIqK,GAAapJ,EAAQgC,EAAG6G,SACxBK,EAAY7L,KAAK6L,SAGrB,IAAInK,GAAQsE,GAAcgG,KAAqC,IAAtBD,EAAW/M,OAEhD,MADA6M,GAAUE,EAAW,GAAGE,aAAc,GAC9BF,EAAYA,EAGxB,IAAIjN,GACAoN,EACAR,EAAiB/I,EAAQgC,EAAG+G,gBAC5BS,KACA7K,EAAStB,KAAKsB,MAQlB,IALA4K,EAAgBH,EAAWK,OAAO,SAASC,GACvC,MAAOvK,GAAUuK,EAAM/K,OAAQA,KAI/BI,IAASsE,GAET,IADAlH,EAAI,EACGA,EAAIoN,EAAclN,QACrB6M,EAAUK,EAAcpN,GAAGmN,aAAc,EACzCnN,GAMR,KADAA,EAAI,EACGA,EAAI4M,EAAe1M,QAClB6M,EAAUH,EAAe5M,GAAGmN,aAC5BE,EAAqBjJ,KAAKwI,EAAe5M,IAIzC4C,GAAQwE,GAAYC,WACb0F,GAAUH,EAAe5M,GAAGmN,YAEvCnN,GAGJ,OAAKqN,GAAqBnN,QAMtB6D,EAAYqJ,EAAcP,OAAOQ,GAAuB,cAAc,GACtEA,GAPJ,OAwBJ,QAAS7G,KACLlB,EAAMrE,MAAMC,KAAMC,UAElB,IAAIuB,GAAUlD,EAAO0B,KAAKwB,QAASxB,KACnCA,MAAKqM,MAAQ,GAAIjH,GAAWpF,KAAKqE,QAAS7C,GAC1CxB,KAAKsM,MAAQ,GAAI/G,GAAWvF,KAAKqE,QAAS7C,GAE1CxB,KAAKuM,aAAe,KACpBvM,KAAKwM,eAqCT,QAASC,GAAchH,EAAWiH,GAC1BjH,EAAYO,IACZhG,KAAKuM,aAAeG,EAAU5G,gBAAgB,GAAGmG,WACjDU,EAAa1N,KAAKe,KAAM0M,IACjBjH,GAAaS,GAAYC,KAChCwG,EAAa1N,KAAKe,KAAM0M,GAIhC,QAASC,GAAaD,GAClB,GAAIL,GAAQK,EAAU5G,gBAAgB,EAEtC,IAAIuG,EAAMJ,aAAejM,KAAKuM,aAAc,CACxC,GAAIK,IAAa7E,EAAGsE,EAAMhD,QAASpB,EAAGoE,EAAM9C,QAC5CvJ,MAAKwM,YAAYtJ,KAAK0J,EACtB,IAAIC,GAAM7M,KAAKwM,YACXM,EAAkB,WAClB,GAAIhO,GAAI+N,EAAIxK,QAAQuK,EAChB9N,GAAI,IACJ+N,EAAIE,OAAOjO,EAAG,GAGtBT,YAAWyO,EAAiBE,KAIpC,QAASC,GAAiBP,GAEtB,IAAK,GADD3E,GAAI2E,EAAUjE,SAASY,QAASpB,EAAIyE,EAAUjE,SAASc,QAClDzK,EAAI,EAAGA,EAAIkB,KAAKwM,YAAYxN,OAAQF,IAAK,CAC9C,GAAIoO,GAAIlN,KAAKwM,YAAY1N,GACrBqO,EAAKlD,KAAK/B,IAAIH,EAAImF,EAAEnF,GAAIqF,EAAKnD,KAAK/B,IAAID,EAAIiF,EAAEjF,EAChD,IAAUoF,IAANF,GAA8BE,IAAND,EACxB,OAAO,EAGf,OAAO,EAsBX,QAASE,GAAYjJ,EAASkJ,GAC1BvN,KAAKqE,QAAUA,EACfrE,KAAKwN,IAAID,GAmGb,QAASE,GAAkBC,GAEvB,GAAIxL,EAAMwL,EAASC,IACf,MAAOA,GAGX,IAAIC,GAAU1L,EAAMwL,EAASG,IACzBC,EAAU5L,EAAMwL,EAASK,GAM7B,OAAIH,IAAWE,EACJH,GAIPC,GAAWE,EACJF,EAAUC,GAAqBE,GAItC7L,EAAMwL,EAASM,IACRA,GAGJC,GAGX,QAASC,KACL,IAAKC,GACD,OAAO,CAEX,IAAIC,MACAC,EAAcxQ,EAAOyQ,KAAOzQ,EAAOyQ,IAAIC,QAO3C,QANC,OAAQ,eAAgB,QAAS,QAAS,cAAe,QAAQxP,QAAQ,SAASgC,GAI/EqN,EAASrN,GAAOsN,EAAcxQ,EAAOyQ,IAAIC,SAAS,eAAgBxN,IAAO,IAEtEqN,EA4CX,QAASI,GAAWhK,GAChBxE,KAAKwE,QAAU3D,MAAWb,KAAKyO,SAAUjK,OAEzCxE,KAAK0O,GAAK9K,IAEV5D,KAAKqE,QAAU,KAGfrE,KAAKwE,QAAQI,OAAS1D,EAAYlB,KAAKwE,QAAQI,QAAQ,GAEvD5E,KAAK2O,MAAQC,GAEb5O,KAAK6O,gBACL7O,KAAK8O,eAqOT,QAASC,GAASJ,GACd,MAAIA,GAAQK,GACD,SACAL,EAAQM,GACR,MACAN,EAAQO,GACR,OACAP,EAAQQ,GACR,QAEJ,GAQX,QAASC,GAAapG,GAClB,MAAIA,IAAaY,GACN,OACAZ,GAAaW,GACb,KACAX,GAAaS,GACb,OACAT,GAAaU,GACb,QAEJ,GASX,QAAS2F,GAA6BC,EAAiBC,GACnD,GAAIlL,GAAUkL,EAAWlL,OACzB,OAAIA,GACOA,EAAQmL,IAAIF,GAEhBA,EAQX,QAASG,MACLjB,EAAWzO,MAAMC,KAAMC,WA6D3B,QAASyP,MACLD,GAAe1P,MAAMC,KAAMC,WAE3BD,KAAK2P,GAAK,KACV3P,KAAK4P,GAAK,KA4Ed,QAASC,MACLJ,GAAe1P,MAAMC,KAAMC,WAsC/B,QAAS6P,MACLtB,EAAWzO,MAAMC,KAAMC,WAEvBD,KAAK+P,OAAS,KACd/P,KAAKgQ,OAAS,KAmElB,QAASC,MACLR,GAAe1P,MAAMC,KAAMC,WA8B/B,QAASiQ,MACLT,GAAe1P,MAAMC,KAAMC,WA2D/B,QAASkQ,MACL3B,EAAWzO,MAAMC,KAAMC,WAIvBD,KAAKoQ,OAAQ,EACbpQ,KAAKqQ,SAAU,EAEfrQ,KAAK+P,OAAS,KACd/P,KAAKgQ,OAAS,KACdhQ,KAAKsQ,MAAQ,EAqGjB,QAASC,IAAOxM,EAASS,GAGrB,MAFAA,GAAUA,MACVA,EAAQgM,YAActP,EAAYsD,EAAQgM,YAAaD,GAAO9B,SAASgC,QAChE,GAAIC,IAAQ3M,EAASS,GAiIhC,QAASkM,IAAQ3M,EAASS,GACtBxE,KAAKwE,QAAU3D,MAAW0P,GAAO9B,SAAUjK,OAE3CxE,KAAKwE,QAAQC,YAAczE,KAAKwE,QAAQC,aAAeV,EAEvD/D,KAAK2Q,YACL3Q,KAAKoG,WACLpG,KAAKwQ,eACLxQ,KAAK4Q,eAEL5Q,KAAK+D,QAAUA,EACf/D,KAAK0F,MAAQZ,EAAoB9E,MACjCA,KAAK6Q,YAAc,GAAIvD,GAAYtN,KAAMA,KAAKwE,QAAQqM,aAEtDC,GAAe9Q,MAAM,GAErBrB,EAAKqB,KAAKwE,QAAQgM,YAAa,SAASO,GACpC,GAAIxB,GAAavP,KAAKgR,IAAI,GAAKD,GAAK,GAAIA,EAAK,IAC7CA,GAAK,IAAMxB,EAAW0B,cAAcF,EAAK,IACzCA,EAAK,IAAMxB,EAAW2B,eAAeH,EAAK,KAC3C/Q,MA4PP,QAAS8Q,IAAezM,EAAS2M,GAC7B,GAAIjN,GAAUM,EAAQN,OACtB,IAAKA,EAAQoN,MAAb,CAGA,GAAI3N,EACJ7E,GAAK0F,EAAQG,QAAQ4M,SAAU,SAAS7D,EAAOlO,GAC3CmE,EAAOH,EAASU,EAAQoN,MAAO9R,GAC3B2R,GACA3M,EAAQuM,YAAYpN,GAAQO,EAAQoN,MAAM3N,GAC1CO,EAAQoN,MAAM3N,GAAQ+J,GAEtBxJ,EAAQoN,MAAM3N,GAAQa,EAAQuM,YAAYpN,IAAS,KAGtDwN,IACD3M,EAAQuM,iBAShB,QAASS,IAAgBC,EAAOC,GAC5B,GAAIC,GAAe1T,EAAS2T,YAAY,QACxCD,GAAaE,UAAUJ,GAAO,GAAM,GACpCE,EAAaG,QAAUJ,EACvBA,EAAKjQ,OAAOsQ,cAAcJ,GAngF9B,GA+FI3Q,IA/FA8C,IAAmB,GAAI,SAAU,MAAO,KAAM,KAAM,KACpDkO,GAAe/T,EAASgU,cAAc,OAEtC7Q,GAAgB,WAEhBqI,GAAQW,KAAKX,MACbpB,GAAM+B,KAAK/B,IACXjB,GAAM8K,KAAK9K,GA0FXpG,IADyB,kBAAlBJ,QAAOI,OACL,SAAgBS,GACrB,GAAIA,IAAWtD,GAAwB,OAAXsD,EACxB,KAAM,IAAI0Q,WAAU,6CAIxB,KAAK,GADDC,GAASxR,OAAOa,GACX4Q,EAAQ,EAAGA,EAAQjS,UAAUjB,OAAQkT,IAAS,CACnD,GAAIC,GAASlS,UAAUiS,EACvB,IAAIC,IAAWnU,GAAwB,OAAXmU,EACxB,IAAK,GAAIC,KAAWD,GACZA,EAAOjT,eAAekT,KACtBH,EAAOG,GAAWD,EAAOC,IAKzC,MAAOH,IAGFxR,OAAOI,MAWpB,IAAIwR,IAASlT,EAAU,SAAgBmT,EAAM7P,EAAK8P,GAG9C,IAFA,GAAIC,GAAO/R,OAAO+R,KAAK/P,GACnB3D,EAAI,EACDA,EAAI0T,EAAKxT,UACPuT,GAAUA,GAASD,EAAKE,EAAK1T,MAAQd,KACtCsU,EAAKE,EAAK1T,IAAM2D,EAAI+P,EAAK1T,KAE7BA,GAEJ,OAAOwT,IACR,SAAU,iBASTC,GAAQpT,EAAU,SAAemT,EAAM7P,GACvC,MAAO4P,IAAOC,EAAM7P,GAAK,IAC1B,QAAS,iBAiNRoB,GAAY,EAeZ4O,GAAe,wCAEfpN,GAAiB,gBAAkBxH,GACnCoH,GAAyB5B,EAASxF,EAAQ,kBAAoBG,EAC9DmH,GAAqBE,IAAiBoN,GAAaC,KAAKC,UAAUC,WAElEC,GAAmB,QACnBC,GAAiB,MACjBC,GAAmB,QACnBC,GAAoB,SAEpB7J,GAAmB,GAEnBnD,GAAc,EACdgG,GAAa,EACb9F,GAAY,EACZC,GAAe,EAEfqD,GAAiB,EACjBC,GAAiB,EACjBC,GAAkB,EAClBC,GAAe,EACfC,GAAiB,GAEjBqJ,GAAuBxJ,GAAiBC,GACxCwJ,GAAqBvJ,GAAeC,GACpCuJ,GAAgBF,GAAuBC,GAEvClJ,IAAY,IAAK,KACjBO,IAAmB,UAAW,UA4BlCnG,GAAM5D,WAKFgB,QAAS,aAKTqD,KAAM,WACF7E,KAAKwK,MAAQnJ,EAAkBrB,KAAK+D,QAAS/D,KAAKwK,KAAMxK,KAAK0E,YAC7D1E,KAAKkL,UAAY7J,EAAkBrB,KAAKsB,OAAQtB,KAAKkL,SAAUlL,KAAK0E,YACpE1E,KAAK0K,OAASrJ,EAAkByC,EAAoB9D,KAAK+D,SAAU/D,KAAK0K,MAAO1K,KAAK0E,aAMxF0O,QAAS,WACLpT,KAAKwK,MAAQ5I,EAAqB5B,KAAK+D,QAAS/D,KAAKwK,KAAMxK,KAAK0E,YAChE1E,KAAKkL,UAAYtJ,EAAqB5B,KAAKsB,OAAQtB,KAAKkL,SAAUlL,KAAK0E,YACvE1E,KAAK0K,OAAS9I,EAAqBkC,EAAoB9D,KAAK+D,SAAU/D,KAAK0K,MAAO1K,KAAK0E,aA4T/F,IAAI2O,KACAC,UAAWtN,GACXuN,UAAWvH,GACXwH,QAAStN,IAGTuE,GAAuB,YACvBE,GAAsB,mBAgB1BzK,GAAQqF,EAAYnB,GAKhB5C,QAAS,SAAmBmD,GACxB,GAAIc,GAAY4N,GAAgB1O,EAAGjD,KAG/B+D,GAAYO,IAA6B,IAAdrB,EAAG8O,SAC9BzT,KAAK4K,SAAU,GAGfnF,EAAYuG,IAA2B,IAAbrH,EAAG+O,QAC7BjO,EAAYS,IAIXlG,KAAK4K,UAINnF,EAAYS,KACZlG,KAAK4K,SAAU,GAGnB5K,KAAKsE,SAAStE,KAAKqE,QAASoB,GACxBG,UAAWjB,GACXmB,iBAAkBnB,GAClBgP,YAAaZ,GACbtK,SAAU9D,OAKtB,IAAIiP,KACAC,YAAa7N,GACb8N,YAAa9H,GACb+H,UAAW7N,GACX8N,cAAe7N,GACf8N,WAAY9N,IAIZ+N,IACAC,EAAGtB,GACHuB,EAAGtB,GACHuB,EAAGtB,GACHuB,EAAGtB,IAGHnI,GAAyB,cACzBC,GAAwB,qCAGxBjN,GAAO0W,iBAAmB1W,EAAO2W,eACjC3J,GAAyB,gBACzBC,GAAwB,6CAiB5B5K,EAAQgF,EAAmBd,GAKvB5C,QAAS,SAAmBmD,GACxB,GAAIoG,GAAQ/K,KAAK+K,MACb0J,GAAgB,EAEhBC,EAAsB/P,EAAGjD,KAAKiT,cAAchV,QAAQ,KAAM,IAC1D8F,EAAYmO,GAAkBc,GAC9Bf,EAAcO,GAAuBvP,EAAGgP,cAAgBhP,EAAGgP,YAE3DiB,EAAWjB,GAAed,GAG1BgC,EAAarS,EAAQuI,EAAOpG,EAAGmQ,UAAW,YAG1CrP,GAAYO,KAA8B,IAAdrB,EAAG8O,QAAgBmB,GAC9B,EAAbC,IACA9J,EAAM7H,KAAKyB,GACXkQ,EAAa9J,EAAM/L,OAAS,GAEzByG,GAAaS,GAAYC,MAChCsO,GAAgB,GAIH,EAAbI,IAKJ9J,EAAM8J,GAAclQ,EAEpB3E,KAAKsE,SAAStE,KAAKqE,QAASoB,GACxBG,SAAUmF,EACVjF,iBAAkBnB,GAClBgP,YAAaA,EACblL,SAAU9D,IAGV8P,GAEA1J,EAAMgC,OAAO8H,EAAY,MAKrC,IAAIE,KACAC,WAAYhP,GACZiP,UAAWjJ,GACXkJ,SAAUhP,GACViP,YAAahP,IAGbgF,GAA6B,aAC7BC,GAA6B,2CAejClL,GAAQ+K,EAAkB7G,GACtB5C,QAAS,SAAmBmD,GACxB,GAAIjD,GAAOqT,GAAuBpQ,EAAGjD,KAOrC,IAJIA,IAASsE,KACThG,KAAKqL,SAAU,GAGdrL,KAAKqL,QAAV,CAIA,GAAIG,GAAUF,EAAuBrM,KAAKe,KAAM2E,EAAIjD,EAGhDA,IAAQwE,GAAYC,KAAiBqF,EAAQ,GAAGxM,OAASwM,EAAQ,GAAGxM,SAAW,IAC/EgB,KAAKqL,SAAU,GAGnBrL,KAAKsE,SAAStE,KAAKqE,QAAS3C,GACxBkE,SAAU4F,EAAQ,GAClB1F,gBAAiB0F,EAAQ,GACzBmI,YAAad,GACbpK,SAAU9D,OAsBtB,IAAIyQ,KACAJ,WAAYhP,GACZiP,UAAWjJ,GACXkJ,SAAUhP,GACViP,YAAahP,IAGbyF,GAAsB,2CAc1B1L,GAAQkF,EAAYhB,GAChB5C,QAAS,SAAoBmD,GACzB,GAAIjD,GAAO0T,GAAgBzQ,EAAGjD,MAC1B8J,EAAUM,EAAW7M,KAAKe,KAAM2E,EAAIjD,EACnC8J,IAILxL,KAAKsE,SAAStE,KAAKqE,QAAS3C,GACxBkE,SAAU4F,EAAQ,GAClB1F,gBAAiB0F,EAAQ,GACzBmI,YAAad,GACbpK,SAAU9D,MA4EtB,IAAIqI,IAAgB,KAChBK,GAAiB,EAarBnN,GAAQoF,EAAiBlB,GAOrB5C,QAAS,SAAoB6C,EAASgR,EAAYC,GAC9C,GAAIV,GAAWU,EAAU3B,aAAed,GACpC0C,EAAWD,EAAU3B,aAAeZ,EAExC,MAAIwC,GAAWD,EAAUE,oBAAsBF,EAAUE,mBAAmBC,kBAA5E,CAKA,GAAIb,EACAnI,EAAcxN,KAAKe,KAAMqV,EAAYC,OAClC,IAAIC,GAAWtI,EAAiBhO,KAAKe,KAAMsV,GAC9C,MAGJtV,MAAKsE,SAASD,EAASgR,EAAYC,KAMvClC,QAAS,WACLpT,KAAKqM,MAAM+G,UACXpT,KAAKsM,MAAM8G,YA0CnB,IAAIsC,IAAwBrS,EAASwO,GAAaV,MAAO,eACrDhD,GAAsBuH,KAA0B1X,EAGhD2X,GAAuB,UACvB1H,GAAoB,OACpBD,GAA4B,eAC5BL,GAAoB,OACpBE,GAAqB,QACrBE,GAAqB,QACrB6H,GAAmB1H,GAcvBZ,GAAY9M,WAKRgN,IAAK,SAASD,GAENA,GAASoI,KACTpI,EAAQvN,KAAK6V,WAGb1H,IAAuBnO,KAAKqE,QAAQN,QAAQoN,OAASyE,GAAiBrI,KACtEvN,KAAKqE,QAAQN,QAAQoN,MAAMuE,IAAyBnI,GAExDvN,KAAK0N,QAAUH,EAAMoH,cAAcrS,QAMvCwT,OAAQ,WACJ9V,KAAKwN,IAAIxN,KAAKqE,QAAQG,QAAQqM,cAOlCgF,QAAS,WACL,GAAInI,KAMJ,OALA/O,GAAKqB,KAAKqE,QAAQmM,YAAa,SAASjB,GAChCzO,EAASyO,EAAW/K,QAAQI,QAAS2K,MACrC7B,EAAUA,EAAQ/B,OAAO4D,EAAWwG,qBAGrCtI,EAAkBC,EAAQsI,KAAK,OAO1CC,gBAAiB,SAASvQ,GACtB,GAAI+C,GAAW/C,EAAM+C,SACjBO,EAAYtD,EAAM8B,eAGtB,IAAIxH,KAAKqE,QAAQ+B,QAAQ8P,UAErB,WADAzN,GAAS0N,gBAIb,IAAIzI,GAAU1N,KAAK0N,QACf0I,EAAUlU,EAAMwL,EAASC,MAAuBiI,GAAiBjI,IACjEG,EAAU5L,EAAMwL,EAASK,MAAwB6H,GAAiB7H,IAClEH,EAAU1L,EAAMwL,EAASG,MAAwB+H,GAAiB/H,GAEtE,IAAIuI,EAAS,CAGT,GAAIC,GAAyC,IAA1B3Q,EAAME,SAAS5G,OAC9BsX,EAAgB5Q,EAAM2B,SAAW,EACjCkP,EAAiB7Q,EAAMwB,UAAY,GAEvC,IAAImP,GAAgBC,GAAiBC,EACjC,OAIR,MAAI3I,IAAWE,EAAf,OAKIsI,GACCtI,GAAW9E,EAAYiK,IACvBrF,GAAW5E,EAAYkK,GACjBlT,KAAKwW,WAAW/N,GAH3B,QAWJ+N,WAAY,SAAS/N,GACjBzI,KAAKqE,QAAQ+B,QAAQ8P,WAAY,EACjCzN,EAAS0N,kBAiFjB,IAAIvH,IAAiB,EACjBO,GAAc,EACdD,GAAgB,EAChBD,GAAc,EACdwH,GAAmBxH,GACnBD,GAAkB,GAClB0H,GAAe,EAwBnBlI,GAAWhO,WAKPiO,YAOAjB,IAAK,SAAShJ,GAKV,MAJA3D,IAAOb,KAAKwE,QAASA,GAGrBxE,KAAKqE,SAAWrE,KAAKqE,QAAQwM,YAAYiF,SAClC9V,MAQXiR,cAAe,SAAS3B,GACpB,GAAI/Q,EAAe+Q,EAAiB,gBAAiBtP,MACjD,MAAOA,KAGX,IAAI6O,GAAe7O,KAAK6O,YAMxB,OALAS,GAAkBD,EAA6BC,EAAiBtP,MAC3D6O,EAAaS,EAAgBZ,MAC9BG,EAAaS,EAAgBZ,IAAMY,EACnCA,EAAgB2B,cAAcjR,OAE3BA,MAQX2W,kBAAmB,SAASrH,GACxB,MAAI/Q,GAAe+Q,EAAiB,oBAAqBtP,MAC9CA,MAGXsP,EAAkBD,EAA6BC,EAAiBtP,YACzDA,MAAK6O,aAAaS,EAAgBZ,IAClC1O,OAQXkR,eAAgB,SAAS5B,GACrB,GAAI/Q,EAAe+Q,EAAiB,iBAAkBtP,MAClD,MAAOA,KAGX,IAAI8O,GAAc9O,KAAK8O,WAMvB,OALAQ,GAAkBD,EAA6BC,EAAiBtP,MAClB,KAA1CwC,EAAQsM,EAAaQ,KACrBR,EAAY5L,KAAKoM,GACjBA,EAAgB4B,eAAelR,OAE5BA,MAQX4W,mBAAoB,SAAStH,GACzB,GAAI/Q,EAAe+Q,EAAiB,qBAAsBtP,MACtD,MAAOA,KAGXsP,GAAkBD,EAA6BC,EAAiBtP,KAChE,IAAIkS,GAAQ1P,EAAQxC,KAAK8O,YAAaQ,EAItC,OAHI4C,GAAQ,IACRlS,KAAK8O,YAAY/B,OAAOmF,EAAO,GAE5BlS,MAOX6W,mBAAoB,WAChB,MAAO7W,MAAK8O,YAAY9P,OAAS,GAQrC8X,iBAAkB,SAASxH,GACvB,QAAStP,KAAK6O,aAAaS,EAAgBZ,KAQ/CpI,KAAM,SAASZ,GAIX,QAASY,GAAKgL,GACV/M,EAAKF,QAAQiC,KAAKgL,EAAO5L,GAJ7B,GAAInB,GAAOvE,KACP2O,EAAQ3O,KAAK2O,KAOLM,IAARN,GACArI,EAAK/B,EAAKC,QAAQ8M,MAAQvC,EAASJ,IAGvCrI,EAAK/B,EAAKC,QAAQ8M,OAEd5L,EAAMqR,iBACNzQ,EAAKZ,EAAMqR,iBAIXpI,GAASM,IACT3I,EAAK/B,EAAKC,QAAQ8M,MAAQvC,EAASJ,KAU3CqI,QAAS,SAAStR,GACd,MAAI1F,MAAKiX,UACEjX,KAAKsG,KAAKZ,QAGrB1F,KAAK2O,MAAQ+H,KAOjBO,QAAS,WAEL,IADA,GAAInY,GAAI,EACDA,EAAIkB,KAAK8O,YAAY9P,QAAQ,CAChC,KAAMgB,KAAK8O,YAAYhQ,GAAG6P,OAAS+H,GAAe9H,KAC9C,OAAO,CAEX9P,KAEJ,OAAO,GAOXyH,UAAW,SAAS+O,GAGhB,GAAI4B,GAAiBrW,MAAWyU,EAGhC,OAAKxU,GAASd,KAAKwE,QAAQI,QAAS5E,KAAMkX,KAOtClX,KAAK2O,OAAS8H,GAAmBzH,GAAkB0H,MACnD1W,KAAK2O,MAAQC,IAGjB5O,KAAK2O,MAAQ3O,KAAKmX,QAAQD,QAItBlX,KAAK2O,OAASQ,GAAcD,GAAgBD,GAAcD,KAC1DhP,KAAKgX,QAAQE,MAfblX,KAAKoX,aACLpX,KAAK2O,MAAQ+H,MAyBrBS,QAAS,SAAS7B,KAOlBS,eAAgB,aAOhBqB,MAAO,cA8DXlX,EAAQuP,GAAgBjB,GAKpBC,UAKI7I,SAAU,GASdyR,SAAU,SAAS3R,GACf,GAAI4R,GAAiBtX,KAAKwE,QAAQoB,QAClC,OAA0B,KAAnB0R,GAAwB5R,EAAME,SAAS5G,SAAWsY,GAS7DH,QAAS,SAASzR,GACd,GAAIiJ,GAAQ3O,KAAK2O,MACblJ,EAAYC,EAAMD,UAElB8R,EAAe5I,GAASQ,GAAcD,IACtCsI,EAAUxX,KAAKqX,SAAS3R,EAG5B,OAAI6R,KAAiB9R,EAAYU,KAAiBqR,GACvC7I,EAAQK,GACRuI,GAAgBC,EACnB/R,EAAYS,GACLyI,EAAQM,GACNN,EAAQQ,GAGdR,EAAQO,GAFJC,GAIRuH,MAiBfxW,EAAQwP,GAAeD,IAKnBhB,UACI6C,MAAO,MACPmG,UAAW,GACX7R,SAAU,EACVoD,UAAWmK,IAGf4C,eAAgB,WACZ,GAAI/M,GAAYhJ,KAAKwE,QAAQwE,UACzB0E,IAOJ,OANI1E,GAAYiK,IACZvF,EAAQxK,KAAK6K,IAEb/E,EAAYkK,IACZxF,EAAQxK,KAAK2K,IAEVH,GAGXgK,cAAe,SAAShS,GACpB,GAAIlB,GAAUxE,KAAKwE,QACfmT,GAAW,EACXtQ,EAAW3B,EAAM2B,SACjB2B,EAAYtD,EAAMsD,UAClBjB,EAAIrC,EAAMgC,OACVO,EAAIvC,EAAMiC,MAed,OAZMqB,GAAYxE,EAAQwE,YAClBxE,EAAQwE,UAAYiK,IACpBjK,EAAmB,IAANjB,EAAWyB,GAAsB,EAAJzB,EAAS0B,GAAiBC,GACpEiO,EAAW5P,GAAK/H,KAAK2P,GACrBtI,EAAW4C,KAAK/B,IAAIxC,EAAMgC,UAE1BsB,EAAmB,IAANf,EAAWuB,GAAsB,EAAJvB,EAAS0B,GAAeC,GAClE+N,EAAW1P,GAAKjI,KAAK4P,GACrBvI,EAAW4C,KAAK/B,IAAIxC,EAAMiC,UAGlCjC,EAAMsD,UAAYA,EACX2O,GAAYtQ,EAAW7C,EAAQiT,WAAazO,EAAYxE,EAAQwE,WAG3EqO,SAAU,SAAS3R,GACf,MAAO+J,IAAejP,UAAU6W,SAASpY,KAAKe,KAAM0F,KAC/C1F,KAAK2O,MAAQQ,MAAkBnP,KAAK2O,MAAQQ,KAAgBnP,KAAK0X,cAAchS,KAGxFY,KAAM,SAASZ,GAEX1F,KAAK2P,GAAKjK,EAAMgC,OAChB1H,KAAK4P,GAAKlK,EAAMiC,MAEhB,IAAIqB,GAAYoG,EAAa1J,EAAMsD,UAE/BA,KACAtD,EAAMqR,gBAAkB/W,KAAKwE,QAAQ8M,MAAQtI,GAEjDhJ,KAAKY,OAAO0F,KAAKrH,KAAKe,KAAM0F,MAcpCxF,EAAQ2P,GAAiBJ,IAKrBhB,UACI6C,MAAO,QACPmG,UAAW,EACX7R,SAAU,GAGdmQ,eAAgB,WACZ,OAAQpI,KAGZ0J,SAAU,SAAS3R,GACf,MAAO1F,MAAKY,OAAOyW,SAASpY,KAAKe,KAAM0F,KAClCuE,KAAK/B,IAAIxC,EAAMyC,MAAQ,GAAKnI,KAAKwE,QAAQiT,WAAazX,KAAK2O,MAAQQ,KAG5E7I,KAAM,SAASZ,GACX,GAAoB,IAAhBA,EAAMyC,MAAa,CACnB,GAAIyP,GAAQlS,EAAMyC,MAAQ,EAAI,KAAO,KACrCzC,GAAMqR,gBAAkB/W,KAAKwE,QAAQ8M,MAAQsG,EAEjD5X,KAAKY,OAAO0F,KAAKrH,KAAKe,KAAM0F,MAiBpCxF,EAAQ4P,GAAiBtB,GAKrBC,UACI6C,MAAO,QACP1L,SAAU,EACViS,KAAM,IACNJ,UAAW,GAGf1B,eAAgB,WACZ,OAAQ9H,KAGZkJ,QAAS,SAASzR,GACd,GAAIlB,GAAUxE,KAAKwE,QACfsT,EAAgBpS,EAAME,SAAS5G,SAAWwF,EAAQoB,SAClDmS,EAAgBrS,EAAM2B,SAAW7C,EAAQiT,UACzCO,EAAYtS,EAAMwB,UAAY1C,EAAQqT,IAM1C,IAJA7X,KAAKgQ,OAAStK,GAITqS,IAAkBD,GAAkBpS,EAAMD,WAAaS,GAAYC,MAAkB6R,EACtFhY,KAAKoX,YACF,IAAI1R,EAAMD,UAAYO,GACzBhG,KAAKoX,QACLpX,KAAK+P,OAAS9R,EAAkB,WAC5B+B,KAAK2O,MAAQ8H,GACbzW,KAAKgX,WACNxS,EAAQqT,KAAM7X,UACd,IAAI0F,EAAMD,UAAYS,GACzB,MAAOuQ,GAEX,OAAOC,KAGXU,MAAO,WACHa,aAAajY,KAAK+P,SAGtBzJ,KAAM,SAASZ,GACP1F,KAAK2O,QAAU8H,KAIf/Q,GAAUA,EAAMD,UAAYS,GAC5BlG,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQ8M,MAAQ,KAAM5L,IAE7C1F,KAAKgQ,OAAOhJ,UAAYC,KACxBjH,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQ8M,MAAOtR,KAAKgQ,aAevD9P,EAAQ+P,GAAkBR,IAKtBhB,UACI6C,MAAO,SACPmG,UAAW,EACX7R,SAAU,GAGdmQ,eAAgB,WACZ,OAAQpI,KAGZ0J,SAAU,SAAS3R,GACf,MAAO1F,MAAKY,OAAOyW,SAASpY,KAAKe,KAAM0F,KAClCuE,KAAK/B,IAAIxC,EAAM2C,UAAYrI,KAAKwE,QAAQiT,WAAazX,KAAK2O,MAAQQ,OAc/EjP,EAAQgQ,GAAiBT,IAKrBhB,UACI6C,MAAO,QACPmG,UAAW,GACX5O,SAAU,GACVG,UAAWiK,GAAuBC,GAClCtN,SAAU,GAGdmQ,eAAgB,WACZ,MAAOrG,IAAclP,UAAUuV,eAAe9W,KAAKe,OAGvDqX,SAAU,SAAS3R,GACf,GACImD,GADAG,EAAYhJ,KAAKwE,QAAQwE,SAW7B,OARIA,IAAaiK,GAAuBC,IACpCrK,EAAWnD,EAAMkC,gBACVoB,EAAYiK,GACnBpK,EAAWnD,EAAMoC,iBACVkB,EAAYkK,KACnBrK,EAAWnD,EAAMsC,kBAGdhI,KAAKY,OAAOyW,SAASpY,KAAKe,KAAM0F,IACnCsD,EAAYtD,EAAM8B,iBAClB9B,EAAM2B,SAAWrH,KAAKwE,QAAQiT,WAC9B/R,EAAM6C,aAAevI,KAAKwE,QAAQoB,UAClCsC,GAAIW,GAAY7I,KAAKwE,QAAQqE,UAAYnD,EAAMD,UAAYS,IAGnEI,KAAM,SAASZ,GACX,GAAIsD,GAAYoG,EAAa1J,EAAM8B,gBAC/BwB,IACAhJ,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQ8M,MAAQtI,EAAWtD,GAGtD1F,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQ8M,MAAO5L,MA2B9CxF,EAAQiQ,GAAe3B,GAKnBC,UACI6C,MAAO,MACP1L,SAAU,EACVsS,KAAM,EACNC,SAAU,IACVN,KAAM,IACNJ,UAAW,EACXW,aAAc,IAGlBrC,eAAgB,WACZ,OAAQ/H,KAGZmJ,QAAS,SAASzR,GACd,GAAIlB,GAAUxE,KAAKwE,QAEfsT,EAAgBpS,EAAME,SAAS5G,SAAWwF,EAAQoB,SAClDmS,EAAgBrS,EAAM2B,SAAW7C,EAAQiT,UACzCY,EAAiB3S,EAAMwB,UAAY1C,EAAQqT,IAI/C,IAFA7X,KAAKoX,QAEA1R,EAAMD,UAAYO,IAAgC,IAAfhG,KAAKsQ,MACzC,MAAOtQ,MAAKsY,aAKhB,IAAIP,GAAiBM,GAAkBP,EAAe,CAClD,GAAIpS,EAAMD,WAAaS,GACnB,MAAOlG,MAAKsY,aAGhB,IAAIC,GAAgBvY,KAAKoQ,MAAS1K,EAAMsB,UAAYhH,KAAKoQ,MAAQ5L,EAAQ2T,UAAY,EACjFK,GAAiBxY,KAAKqQ,SAAW/I,EAAYtH,KAAKqQ,QAAS3K,EAAMoB,QAAUtC,EAAQ4T,YAEvFpY,MAAKoQ,MAAQ1K,EAAMsB,UACnBhH,KAAKqQ,QAAU3K,EAAMoB,OAEhB0R,GAAkBD,EAGnBvY,KAAKsQ,OAAS,EAFdtQ,KAAKsQ,MAAQ,EAKjBtQ,KAAKgQ,OAAStK,CAId,IAAI+S,GAAWzY,KAAKsQ,MAAQ9L,EAAQ0T,IACpC,IAAiB,IAAbO,EAGA,MAAKzY,MAAK6W,sBAGN7W,KAAK+P,OAAS9R,EAAkB,WAC5B+B,KAAK2O,MAAQ8H,GACbzW,KAAKgX,WACNxS,EAAQ2T,SAAUnY,MACdmP,IANAsH,GAUnB,MAAOC,KAGX4B,YAAa,WAIT,MAHAtY,MAAK+P,OAAS9R,EAAkB,WAC5B+B,KAAK2O,MAAQ+H,IACd1W,KAAKwE,QAAQ2T,SAAUnY,MACnB0W,IAGXU,MAAO,WACHa,aAAajY,KAAK+P,SAGtBzJ,KAAM,WACEtG,KAAK2O,OAAS8H,KACdzW,KAAKgQ,OAAOyI,SAAWzY,KAAKsQ,MAC5BtQ,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQ8M,MAAOtR,KAAKgQ,YAoBvDO,GAAOmI,QAAU,QAMjBnI,GAAO9B,UAOHkK,WAAW,EAQX9H,YAAa8E,GAMb/Q,QAAQ,EASRH,YAAa,KAObO,WAAY,KAOZyL,SAEKR,IAAmBrL,QAAQ,KAC3BiL,IAAkBjL,QAAQ,IAAS,YACnCsL,IAAkBlH,UAAWiK,MAC7BvD,IAAgB1G,UAAWiK,KAAwB,WACnD9C,KACAA,IAAgBmB,MAAO,YAAa4G,KAAM,IAAK,SAC/CpI,KAQLsB,UAMIwH,WAAY,OAOZC,YAAa,OASbC,aAAc,OAOdC,eAAgB,OAOhBC,SAAU,OAQVC,kBAAmB,iBAI3B,IAAIC,IAAO,EACPC,GAAc,CA+BlBzI,IAAQlQ,WAMJgN,IAAK,SAAShJ,GAaV,MAZA3D,IAAOb,KAAKwE,QAASA,GAGjBA,EAAQqM,aACR7Q,KAAK6Q,YAAYiF,SAEjBtR,EAAQC,cAERzE,KAAK0F,MAAM0N,UACXpT,KAAK0F,MAAMpE,OAASkD,EAAQC,YAC5BzE,KAAK0F,MAAMb,QAER7E,MASXoZ,KAAM,SAASC,GACXrZ,KAAKoG,QAAQkT,QAAUD,EAAQF,GAAcD,IASjD3S,UAAW,SAAS+O,GAChB,GAAIlP,GAAUpG,KAAKoG,OACnB,KAAIA,EAAQkT,QAAZ,CAKAtZ,KAAK6Q,YAAYoF,gBAAgBX,EAEjC,IAAI/F,GACAiB,EAAcxQ,KAAKwQ,YAKnB+I,EAAgBnT,EAAQmT,gBAIvBA,GAAkBA,GAAiBA,EAAc5K,MAAQ8H,MAC1D8C,EAAgBnT,EAAQmT,cAAgB,KAI5C,KADA,GAAIza,GAAI,EACDA,EAAI0R,EAAYxR,QACnBuQ,EAAaiB,EAAY1R,GAQrBsH,EAAQkT,UAAYH,IACfI,GAAiBhK,GAAcgK,IAChChK,EAAWuH,iBAAiByC,GAGhChK,EAAW6H,QAFX7H,EAAWhJ,UAAU+O,IAOpBiE,GAAiBhK,EAAWZ,OAASQ,GAAcD,GAAgBD,MACpEsK,EAAgBnT,EAAQmT,cAAgBhK,GAE5CzQ,MASR0Q,IAAK,SAASD,GACV,GAAIA,YAAsBf,GACtB,MAAOe,EAIX,KAAK,GADDiB,GAAcxQ,KAAKwQ,YACd1R,EAAI,EAAGA,EAAI0R,EAAYxR,OAAQF,IACpC,GAAI0R,EAAY1R,GAAG0F,QAAQ8M,OAAS/B,EAChC,MAAOiB,GAAY1R,EAG3B,OAAO,OASXkS,IAAK,SAASzB,GACV,GAAIhR,EAAegR,EAAY,MAAOvP,MAClC,MAAOA,KAIX,IAAIwZ,GAAWxZ,KAAKwP,IAAID,EAAW/K,QAAQ8M,MAS3C,OARIkI,IACAxZ,KAAKyZ,OAAOD,GAGhBxZ,KAAKwQ,YAAYtN,KAAKqM,GACtBA,EAAWlL,QAAUrE,KAErBA,KAAK6Q,YAAYiF,SACVvG,GAQXkK,OAAQ,SAASlK,GACb,GAAIhR,EAAegR,EAAY,SAAUvP,MACrC,MAAOA,KAMX,IAHAuP,EAAavP,KAAKwP,IAAID,GAGN,CACZ,GAAIiB,GAAcxQ,KAAKwQ,YACnB0B,EAAQ1P,EAAQgO,EAAajB,EAEnB,MAAV2C,IACA1B,EAAYzD,OAAOmF,EAAO,GAC1BlS,KAAK6Q,YAAYiF,UAIzB,MAAO9V,OASX0Z,GAAI,SAASC,EAAQnY,GACjB,GAAImY,IAAW3b,GAGXwD,IAAYxD,EAAhB,CAIA,GAAI2S,GAAW3Q,KAAK2Q,QAKpB,OAJAhS,GAAK8C,EAASkY,GAAS,SAASrI,GAC5BX,EAASW,GAASX,EAASW,OAC3BX,EAASW,GAAOpO,KAAK1B,KAElBxB,OASX4Z,IAAK,SAASD,EAAQnY,GAClB,GAAImY,IAAW3b,EAAf,CAIA,GAAI2S,GAAW3Q,KAAK2Q,QAQpB,OAPAhS,GAAK8C,EAASkY,GAAS,SAASrI,GACvB9P,EAGDmP,EAASW,IAAUX,EAASW,GAAOvE,OAAOvK,EAAQmO,EAASW,GAAQ9P,GAAU,SAFtEmP,GAASW,KAKjBtR,OAQXsG,KAAM,SAASgL,EAAOC,GAEdvR,KAAKwE,QAAQmU,WACbtH,GAAgBC,EAAOC,EAI3B,IAAIZ,GAAW3Q,KAAK2Q,SAASW,IAAUtR,KAAK2Q,SAASW,GAAO1O,OAC5D,IAAK+N,GAAaA,EAAS3R,OAA3B,CAIAuS,EAAK7P,KAAO4P,EACZC,EAAK4E,eAAiB,WAClB5E,EAAK9I,SAAS0N,iBAIlB,KADA,GAAIrX,GAAI,EACDA,EAAI6R,EAAS3R,QAChB2R,EAAS7R,GAAGyS,GACZzS,MAQRsU,QAAS,WACLpT,KAAK+D,SAAW+M,GAAe9Q,MAAM,GAErCA,KAAK2Q,YACL3Q,KAAKoG,WACLpG,KAAK0F,MAAM0N,UACXpT,KAAK+D,QAAU,OAyCvBlD,GAAO0P,IACHvK,YAAaA,GACbgG,WAAYA,GACZ9F,UAAWA,GACXC,aAAcA,GAEdyI,eAAgBA,GAChBO,YAAaA,GACbD,cAAeA,GACfD,YAAaA,GACbwH,iBAAkBA,GAClBzH,gBAAiBA,GACjB0H,aAAcA,GAEdlN,eAAgBA,GAChBC,eAAgBA,GAChBC,gBAAiBA,GACjBC,aAAcA,GACdC,eAAgBA,GAChBqJ,qBAAsBA,GACtBC,mBAAoBA,GACpBC,cAAeA,GAEfzC,QAASA,GACTtM,MAAOA,EACPkJ,YAAaA,EAEblI,WAAYA,EACZG,WAAYA,EACZL,kBAAmBA,EACnBI,gBAAiBA,EACjB2F,iBAAkBA,EAElBuD,WAAYA,EACZiB,eAAgBA,GAChBoK,IAAK1J,GACL2J,IAAKpK,GACLqK,MAAO7J,GACP8J,MAAOnK,GACPoK,OAAQhK,GACRiK,MAAOpK,GAEP4J,GAAIrY,EACJuY,IAAKhY,EACLjD,KAAMA,EACN4T,MAAOA,GACPF,OAAQA,GACRxR,OAAQA,GACRX,QAASA,EACT5B,OAAQA,EACR+E,SAAUA,GAKd,IAAI8W,IAAgC,mBAAXtc,GAAyBA,EAA0B,mBAAT0G,MAAuBA,OAC1F4V,IAAW5J,OAASA,GAEE,kBAAX6J,SAAyBA,OAAOC,IACvCD,OAAO,WACH,MAAO7J,MAEa,mBAAV+J,SAAyBA,OAAOC,QAC9CD,OAAOC,QAAUhK,GAEjB1S,EAAOE,GAAcwS,IAGtB1S,OAAQC,SAAU","file":"hammer.min.js"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.map b/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.map
deleted file mode 100644
index 91d29e52..00000000
--- a/ecomp-portal-FE/client/bower_components/hammerjs/hammer.min.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"hammer.min.js","sources":["hammer.js"],"names":["window","document","exportName","undefined","setTimeoutContext","fn","timeout","context","setTimeout","bindFn","invokeArrayArg","arg","Array","isArray","each","obj","iterator","i","forEach","length","call","hasOwnProperty","deprecate","method","name","message","deprecationMessage","e","Error","stack","replace","log","console","warn","apply","this","arguments","inherit","child","base","properties","childP","baseP","prototype","Object","create","constructor","_super","assign","boolOrFn","val","args","TYPE_FUNCTION","ifUndefined","val1","val2","addEventListeners","target","types","handler","splitStr","type","addEventListener","removeEventListeners","removeEventListener","hasParent","node","parent","parentNode","inStr","str","find","indexOf","trim","split","inArray","src","findByKey","toArray","slice","uniqueArray","key","sort","results","values","push","a","b","prefixed","property","prefix","prop","camelProp","toUpperCase","VENDOR_PREFIXES","uniqueId","_uniqueId","getWindowForElement","element","doc","ownerDocument","defaultView","parentWindow","Input","manager","callback","self","options","inputTarget","domHandler","ev","enable","init","createInputInstance","Type","inputClass","SUPPORT_POINTER_EVENTS","PointerEventInput","SUPPORT_ONLY_TOUCH","TouchInput","SUPPORT_TOUCH","TouchMouseInput","MouseInput","inputHandler","eventType","input","pointersLen","pointers","changedPointersLen","changedPointers","isFirst","INPUT_START","isFinal","INPUT_END","INPUT_CANCEL","session","computeInputData","emit","recognize","prevInput","pointersLength","firstInput","simpleCloneInputData","firstMultiple","offsetCenter","center","getCenter","timeStamp","now","deltaTime","angle","getAngle","distance","getDistance","computeDeltaXY","offsetDirection","getDirection","deltaX","deltaY","overallVelocity","getVelocity","overallVelocityX","x","overallVelocityY","y","abs","scale","getScale","rotation","getRotation","maxPointers","computeIntervalInputData","srcEvent","offset","offsetDelta","prevDelta","velocity","velocityX","velocityY","direction","last","lastInterval","COMPUTE_INTERVAL","v","clientX","round","clientY","DIRECTION_NONE","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DIRECTION_DOWN","p1","p2","props","PROPS_XY","Math","sqrt","atan2","PI","start","end","PROPS_CLIENT_XY","evEl","MOUSE_ELEMENT_EVENTS","evWin","MOUSE_WINDOW_EVENTS","allow","pressed","POINTER_ELEMENT_EVENTS","POINTER_WINDOW_EVENTS","store","pointerEvents","SingleTouchInput","evTarget","SINGLE_TOUCH_TARGET_EVENTS","SINGLE_TOUCH_WINDOW_EVENTS","started","normalizeSingleTouches","all","touches","changed","changedTouches","concat","TOUCH_TARGET_EVENTS","targetIds","getTouches","allTouches","INPUT_MOVE","identifier","targetTouches","changedTargetTouches","filter","touch","mouse","TouchAction","value","set","cleanTouchActions","actions","TOUCH_ACTION_NONE","hasPanX","TOUCH_ACTION_PAN_X","hasPanY","TOUCH_ACTION_PAN_Y","TOUCH_ACTION_MANIPULATION","TOUCH_ACTION_AUTO","Recognizer","defaults","id","state","STATE_POSSIBLE","simultaneous","requireFail","stateStr","STATE_CANCELLED","STATE_ENDED","STATE_CHANGED","STATE_BEGAN","directionStr","getRecognizerByNameIfManager","otherRecognizer","recognizer","get","AttrRecognizer","PanRecognizer","pX","pY","PinchRecognizer","PressRecognizer","_timer","_input","RotateRecognizer","SwipeRecognizer","TapRecognizer","pTime","pCenter","count","Hammer","recognizers","preset","Manager","handlers","touchAction","toggleCssProps","item","add","recognizeWith","requireFailure","style","cssProps","triggerDomEvent","event","data","gestureEvent","createEvent","initEvent","gesture","dispatchEvent","TEST_ELEMENT","createElement","Date","TypeError","output","index","source","nextKey","extend","dest","merge","keys","MOBILE_REGEX","test","navigator","userAgent","INPUT_TYPE_TOUCH","INPUT_TYPE_PEN","INPUT_TYPE_MOUSE","INPUT_TYPE_KINECT","DIRECTION_HORIZONTAL","DIRECTION_VERTICAL","DIRECTION_ALL","destroy","MOUSE_INPUT_MAP","mousedown","mousemove","mouseup","button","which","pointerType","POINTER_INPUT_MAP","pointerdown","pointermove","pointerup","pointercancel","pointerout","IE10_POINTER_TYPE_ENUM",2,3,4,5,"MSPointerEvent","PointerEvent","removePointer","eventTypeNormalized","toLowerCase","isTouch","storeIndex","pointerId","splice","SINGLE_TOUCH_INPUT_MAP","touchstart","touchmove","touchend","touchcancel","TOUCH_INPUT_MAP","inputEvent","inputData","isMouse","PREFIXED_TOUCH_ACTION","NATIVE_TOUCH_ACTION","TOUCH_ACTION_COMPUTE","compute","update","getTouchAction","join","preventDefaults","prevented","preventDefault","hasNone","isTapPointer","isTapMovement","isTapTouchTime","preventSrc","STATE_RECOGNIZED","STATE_FAILED","dropRecognizeWith","dropRequireFailure","hasRequireFailures","canRecognizeWith","additionalEvent","tryEmit","canEmit","inputDataClone","process","reset","attrTest","optionPointers","isRecognized","isValid","threshold","directionTest","hasMoved","inOut","time","validPointers","validMovement","validTime","clearTimeout","taps","interval","posThreshold","validTouchTime","failTimeout","validInterval","validMultiTap","tapCount","VERSION","domEvents","userSelect","touchSelect","touchCallout","contentZooming","userDrag","tapHighlightColor","STOP","FORCED_STOP","stop","force","stopped","curRecognizer","existing","remove","on","events","off","Tap","Pan","Swipe","Pinch","Rotate","Press","freeGlobal","define","amd","module","exports"],"mappings":"CAAA,SAAUA,EAAQC,EAAUC,EAAYC,GACtC,YAkBF,SAASC,GAAkBC,EAAIC,EAASC,GACpC,MAAOC,YAAWC,EAAOJ,EAAIE,GAAUD,GAY3C,QAASI,GAAeC,EAAKN,EAAIE,GAC7B,MAAIK,OAAMC,QAAQF,IACdG,EAAKH,EAAKJ,EAAQF,GAAKE,IAChB,IAEJ,EASX,QAASO,GAAKC,EAAKC,EAAUT,GACzB,GAAIU,EAEJ,IAAKF,EAIL,GAAIA,EAAIG,QACJH,EAAIG,QAAQF,EAAUT,OACnB,IAAIQ,EAAII,SAAWhB,EAEtB,IADAc,EAAI,EACGA,EAAIF,EAAII,QACXH,EAASI,KAAKb,EAASQ,EAAIE,GAAIA,EAAGF,GAClCE,QAGJ,KAAKA,IAAKF,GACNA,EAAIM,eAAeJ,IAAMD,EAASI,KAAKb,EAASQ,EAAIE,GAAIA,EAAGF,GAYvE,QAASO,GAAUC,EAAQC,EAAMC,GAC7B,GAAIC,GAAqB,sBAAwBF,EAAO,KAAOC,EAAU,QACzE,OAAO,YACH,GAAIE,GAAI,GAAIC,OAAM,mBACdC,EAAQF,GAAKA,EAAEE,MAAQF,EAAEE,MAAMC,QAAQ,kBAAmB,IACzDA,QAAQ,cAAe,IACvBA,QAAQ,6BAA8B,kBAAoB,sBAE3DC,EAAM/B,EAAOgC,UAAYhC,EAAOgC,QAAQC,MAAQjC,EAAOgC,QAAQD,IAInE,OAHIA,IACAA,EAAIX,KAAKpB,EAAOgC,QAASN,EAAoBG,GAE1CN,EAAOW,MAAMC,KAAMC,YAwElC,QAASC,GAAQC,EAAOC,EAAMC,GAC1B,GACIC,GADAC,EAAQH,EAAKI,SAGjBF,GAASH,EAAMK,UAAYC,OAAOC,OAAOH,GACzCD,EAAOK,YAAcR,EACrBG,EAAOM,OAASL,EAEZF,GACAQ,GAAOP,EAAQD,GAUvB,QAAS/B,GAAOJ,EAAIE,GAChB,MAAO,YACH,MAAOF,GAAG6B,MAAM3B,EAAS6B,YAWjC,QAASa,GAASC,EAAKC,GACnB,aAAWD,IAAOE,GACPF,EAAIhB,MAAMiB,EAAOA,EAAK,IAAMhD,EAAYA,EAAWgD,GAEvDD,EASX,QAASG,GAAYC,EAAMC,GACvB,MAAQD,KAASnD,EAAaoD,EAAOD,EASzC,QAASE,GAAkBC,EAAQC,EAAOC,GACtC7C,EAAK8C,EAASF,GAAQ,SAASG,GAC3BJ,EAAOK,iBAAiBD,EAAMF,GAAS,KAU/C,QAASI,GAAqBN,EAAQC,EAAOC,GACzC7C,EAAK8C,EAASF,GAAQ,SAASG,GAC3BJ,EAAOO,oBAAoBH,EAAMF,GAAS,KAWlD,QAASM,GAAUC,EAAMC,GACrB,KAAOD,GAAM,CACT,GAAIA,GAAQC,EACR,OAAO,CAEXD,GAAOA,EAAKE,WAEhB,OAAO,EASX,QAASC,GAAMC,EAAKC,GAChB,MAAOD,GAAIE,QAAQD,GAAQ,GAQ/B,QAASX,GAASU,GACd,MAAOA,GAAIG,OAAOC,MAAM,QAU5B,QAASC,GAAQC,EAAKL,EAAMM,GACxB,GAAID,EAAIJ,UAAYK,EAChB,MAAOD,GAAIJ,QAAQD,EAGnB,KADA,GAAItD,GAAI,EACDA,EAAI2D,EAAIzD,QAAQ,CACnB,GAAK0D,GAAaD,EAAI3D,GAAG4D,IAAcN,IAAWM,GAAaD,EAAI3D,KAAOsD,EACtE,MAAOtD,EAEXA,KAEJ,MAAO,GASf,QAAS6D,GAAQ/D,GACb,MAAOH,OAAM+B,UAAUoC,MAAM3D,KAAKL,EAAK,GAU3C,QAASiE,GAAYJ,EAAKK,EAAKC,GAK3B,IAJA,GAAIC,MACAC,KACAnE,EAAI,EAEDA,EAAI2D,EAAIzD,QAAQ,CACnB,GAAI+B,GAAM+B,EAAML,EAAI3D,GAAGgE,GAAOL,EAAI3D,EAC9B0D,GAAQS,EAAQlC,GAAO,GACvBiC,EAAQE,KAAKT,EAAI3D,IAErBmE,EAAOnE,GAAKiC,EACZjC,IAaJ,MAVIiE,KAIIC,EAHCF,EAGSE,EAAQD,KAAK,SAAyBI,EAAGC,GAC/C,MAAOD,GAAEL,GAAOM,EAAEN,KAHZE,EAAQD,QAQnBC,EASX,QAASK,GAASzE,EAAK0E,GAKnB,IAJA,GAAIC,GAAQC,EACRC,EAAYH,EAAS,GAAGI,cAAgBJ,EAASV,MAAM,GAEvD9D,EAAI,EACDA,EAAI6E,GAAgB3E,QAAQ,CAI/B,GAHAuE,EAASI,GAAgB7E,GACzB0E,EAAO,EAAWD,EAASE,EAAYH,EAEnCE,IAAQ5E,GACR,MAAO4E,EAEX1E,KAEJ,MAAOd,GAQX,QAAS4F,KACL,MAAOC,MAQX,QAASC,GAAoBC,GACzB,GAAIC,GAAMD,EAAQE,eAAiBF,CACnC,OAAQC,GAAIE,aAAeF,EAAIG,cAAgBtG,EAyCnD,QAASuG,GAAMC,EAASC,GACpB,GAAIC,GAAOvE,IACXA,MAAKqE,QAAUA,EACfrE,KAAKsE,SAAWA,EAChBtE,KAAK+D,QAAUM,EAAQN,QACvB/D,KAAKsB,OAAS+C,EAAQG,QAAQC,YAI9BzE,KAAK0E,WAAa,SAASC,GACnB7D,EAASuD,EAAQG,QAAQI,QAASP,KAClCE,EAAK/C,QAAQmD,IAIrB3E,KAAK6E,OAoCT,QAASC,GAAoBT,GACzB,GAAIU,GACAC,EAAaX,EAAQG,QAAQQ,UAajC,OAAO,KAVHD,EADAC,EACOA,EACAC,GACAC,EACAC,GACAC,EACCC,GAGDC,EAFAC,GAIOlB,EAASmB,GAS/B,QAASA,GAAanB,EAASoB,EAAWC,GACtC,GAAIC,GAAcD,EAAME,SAAS5G,OAC7B6G,EAAqBH,EAAMI,gBAAgB9G,OAC3C+G,EAAWN,EAAYO,IAAgBL,EAAcE,IAAuB,EAC5EI,EAAWR,GAAaS,GAAYC,KAAkBR,EAAcE,IAAuB,CAE/FH,GAAMK,UAAYA,EAClBL,EAAMO,UAAYA,EAEdF,IACA1B,EAAQ+B,YAKZV,EAAMD,UAAYA,EAGlBY,EAAiBhC,EAASqB,GAG1BrB,EAAQiC,KAAK,eAAgBZ,GAE7BrB,EAAQkC,UAAUb,GAClBrB,EAAQ+B,QAAQI,UAAYd,EAQhC,QAASW,GAAiBhC,EAASqB,GAC/B,GAAIU,GAAU/B,EAAQ+B,QAClBR,EAAWF,EAAME,SACjBa,EAAiBb,EAAS5G,MAGzBoH,GAAQM,aACTN,EAAQM,WAAaC,EAAqBjB,IAI1Ce,EAAiB,IAAML,EAAQQ,cAC/BR,EAAQQ,cAAgBD,EAAqBjB,GACnB,IAAnBe,IACPL,EAAQQ,eAAgB,EAG5B,IAAIF,GAAaN,EAAQM,WACrBE,EAAgBR,EAAQQ,cACxBC,EAAeD,EAAgBA,EAAcE,OAASJ,EAAWI,OAEjEA,EAASpB,EAAMoB,OAASC,EAAUnB,EACtCF,GAAMsB,UAAYC,KAClBvB,EAAMwB,UAAYxB,EAAMsB,UAAYN,EAAWM,UAE/CtB,EAAMyB,MAAQC,EAASP,EAAcC,GACrCpB,EAAM2B,SAAWC,EAAYT,EAAcC,GAE3CS,EAAenB,EAASV,GACxBA,EAAM8B,gBAAkBC,EAAa/B,EAAMgC,OAAQhC,EAAMiC,OAEzD,IAAIC,GAAkBC,EAAYnC,EAAMwB,UAAWxB,EAAMgC,OAAQhC,EAAMiC,OACvEjC,GAAMoC,iBAAmBF,EAAgBG,EACzCrC,EAAMsC,iBAAmBJ,EAAgBK,EACzCvC,EAAMkC,gBAAmBM,GAAIN,EAAgBG,GAAKG,GAAIN,EAAgBK,GAAML,EAAgBG,EAAIH,EAAgBK,EAEhHvC,EAAMyC,MAAQvB,EAAgBwB,EAASxB,EAAchB,SAAUA,GAAY,EAC3EF,EAAM2C,SAAWzB,EAAgB0B,EAAY1B,EAAchB,SAAUA,GAAY,EAEjFF,EAAM6C,YAAenC,EAAQI,UAAsCd,EAAME,SAAS5G,OAC9EoH,EAAQI,UAAU+B,YAAe7C,EAAME,SAAS5G,OAASoH,EAAQI,UAAU+B,YADtC7C,EAAME,SAAS5G,OAGxDwJ,EAAyBpC,EAASV,EAGlC,IAAIpE,GAAS+C,EAAQN,OACjBjC,GAAU4D,EAAM+C,SAASnH,OAAQA,KACjCA,EAASoE,EAAM+C,SAASnH,QAE5BoE,EAAMpE,OAASA,EAGnB,QAASiG,GAAenB,EAASV,GAC7B,GAAIoB,GAASpB,EAAMoB,OACf4B,EAAStC,EAAQuC,gBACjBC,EAAYxC,EAAQwC,cACpBpC,EAAYJ,EAAQI,eAEpBd,EAAMD,YAAcO,IAAeQ,EAAUf,YAAcS,MAC3D0C,EAAYxC,EAAQwC,WAChBb,EAAGvB,EAAUkB,QAAU,EACvBO,EAAGzB,EAAUmB,QAAU,GAG3Be,EAAStC,EAAQuC,aACbZ,EAAGjB,EAAOiB,EACVE,EAAGnB,EAAOmB,IAIlBvC,EAAMgC,OAASkB,EAAUb,GAAKjB,EAAOiB,EAAIW,EAAOX,GAChDrC,EAAMiC,OAASiB,EAAUX,GAAKnB,EAAOmB,EAAIS,EAAOT,GAQpD,QAASO,GAAyBpC,EAASV,GACvC,GAEImD,GAAUC,EAAWC,EAAWC,EAFhCC,EAAO7C,EAAQ8C,cAAgBxD,EAC/BwB,EAAYxB,EAAMsB,UAAYiC,EAAKjC,SAGvC,IAAItB,EAAMD,WAAaU,KAAiBe,EAAYiC,IAAoBF,EAAKJ,WAAa7K,GAAY,CAClG,GAAI0J,GAAShC,EAAMgC,OAASuB,EAAKvB,OAC7BC,EAASjC,EAAMiC,OAASsB,EAAKtB,OAE7ByB,EAAIvB,EAAYX,EAAWQ,EAAQC,EACvCmB,GAAYM,EAAErB,EACdgB,EAAYK,EAAEnB,EACdY,EAAYX,GAAIkB,EAAErB,GAAKG,GAAIkB,EAAEnB,GAAMmB,EAAErB,EAAIqB,EAAEnB,EAC3Ce,EAAYvB,EAAaC,EAAQC,GAEjCvB,EAAQ8C,aAAexD,MAGvBmD,GAAWI,EAAKJ,SAChBC,EAAYG,EAAKH,UACjBC,EAAYE,EAAKF,UACjBC,EAAYC,EAAKD,SAGrBtD,GAAMmD,SAAWA,EACjBnD,EAAMoD,UAAYA,EAClBpD,EAAMqD,UAAYA,EAClBrD,EAAMsD,UAAYA,EAQtB,QAASrC,GAAqBjB,GAK1B,IAFA,GAAIE,MACA9G,EAAI,EACDA,EAAI4G,EAAME,SAAS5G,QACtB4G,EAAS9G,IACLuK,QAASC,GAAM5D,EAAME,SAAS9G,GAAGuK,SACjCE,QAASD,GAAM5D,EAAME,SAAS9G,GAAGyK,UAErCzK,GAGJ,QACIkI,UAAWC,KACXrB,SAAUA,EACVkB,OAAQC,EAAUnB,GAClB8B,OAAQhC,EAAMgC,OACdC,OAAQjC,EAAMiC,QAStB,QAASZ,GAAUnB,GACf,GAAIa,GAAiBb,EAAS5G,MAG9B,IAAuB,IAAnByH,EACA,OACIsB,EAAGuB,GAAM1D,EAAS,GAAGyD,SACrBpB,EAAGqB,GAAM1D,EAAS,GAAG2D,SAK7B,KADA,GAAIxB,GAAI,EAAGE,EAAI,EAAGnJ,EAAI,EACX2H,EAAJ3H,GACHiJ,GAAKnC,EAAS9G,GAAGuK,QACjBpB,GAAKrC,EAAS9G,GAAGyK,QACjBzK,GAGJ,QACIiJ,EAAGuB,GAAMvB,EAAItB,GACbwB,EAAGqB,GAAMrB,EAAIxB,IAWrB,QAASoB,GAAYX,EAAWa,EAAGE,GAC/B,OACIF,EAAGA,EAAIb,GAAa,EACpBe,EAAGA,EAAIf,GAAa,GAU5B,QAASO,GAAaM,EAAGE,GACrB,MAAIF,KAAME,EACCuB,GAGPtB,GAAIH,IAAMG,GAAID,GACH,EAAJF,EAAQ0B,GAAiBC,GAEzB,EAAJzB,EAAQ0B,GAAeC,GAUlC,QAAStC,GAAYuC,EAAIC,EAAIC,GACpBA,IACDA,EAAQC,GAEZ,IAAIjC,GAAI+B,EAAGC,EAAM,IAAMF,EAAGE,EAAM,IAC5B9B,EAAI6B,EAAGC,EAAM,IAAMF,EAAGE,EAAM,GAEhC,OAAOE,MAAKC,KAAMnC,EAAIA,EAAME,EAAIA,GAUpC,QAASb,GAASyC,EAAIC,EAAIC,GACjBA,IACDA,EAAQC,GAEZ,IAAIjC,GAAI+B,EAAGC,EAAM,IAAMF,EAAGE,EAAM,IAC5B9B,EAAI6B,EAAGC,EAAM,IAAMF,EAAGE,EAAM,GAChC,OAA0B,KAAnBE,KAAKE,MAAMlC,EAAGF,GAAWkC,KAAKG,GASzC,QAAS9B,GAAY+B,EAAOC,GACxB,MAAOlD,GAASkD,EAAI,GAAIA,EAAI,GAAIC,IAAmBnD,EAASiD,EAAM,GAAIA,EAAM,GAAIE,IAUpF,QAASnC,GAASiC,EAAOC,GACrB,MAAOhD,GAAYgD,EAAI,GAAIA,EAAI,GAAIC,IAAmBjD,EAAY+C,EAAM,GAAIA,EAAM,GAAIE,IAiB1F,QAAShF,KACLvF,KAAKwK,KAAOC,GACZzK,KAAK0K,MAAQC,GAEb3K,KAAK4K,OAAQ,EACb5K,KAAK6K,SAAU,EAEfzG,EAAMrE,MAAMC,KAAMC,WAoEtB,QAASiF,KACLlF,KAAKwK,KAAOM,GACZ9K,KAAK0K,MAAQK,GAEb3G,EAAMrE,MAAMC,KAAMC,WAElBD,KAAKgL,MAAShL,KAAKqE,QAAQ+B,QAAQ6E,iBAoEvC,QAASC,KACLlL,KAAKmL,SAAWC,GAChBpL,KAAK0K,MAAQW,GACbrL,KAAKsL,SAAU,EAEflH,EAAMrE,MAAMC,KAAMC,WAsCtB,QAASsL,GAAuB5G,EAAIjD,GAChC,GAAI8J,GAAM7I,EAAQgC,EAAG8G,SACjBC,EAAU/I,EAAQgC,EAAGgH,eAMzB,OAJIjK,IAAQwE,GAAYC,MACpBqF,EAAM3I,EAAY2I,EAAII,OAAOF,GAAU,cAAc,KAGjDF,EAAKE,GAiBjB,QAAStG,KACLpF,KAAKmL,SAAWU,GAChB7L,KAAK8L,aAEL1H,EAAMrE,MAAMC,KAAMC,WA0BtB,QAAS8L,GAAWpH,EAAIjD,GACpB,GAAIsK,GAAarJ,EAAQgC,EAAG8G,SACxBK,EAAY9L,KAAK8L,SAGrB,IAAIpK,GAAQsE,GAAciG,KAAqC,IAAtBD,EAAWhN,OAEhD,MADA8M,GAAUE,EAAW,GAAGE,aAAc,GAC9BF,EAAYA,EAGxB,IAAIlN,GACAqN,EACAR,EAAiBhJ,EAAQgC,EAAGgH,gBAC5BS,KACA9K,EAAStB,KAAKsB,MAQlB,IALA6K,EAAgBH,EAAWK,OAAO,SAASC,GACvC,MAAOxK,GAAUwK,EAAMhL,OAAQA,KAI/BI,IAASsE,GAET,IADAlH,EAAI,EACGA,EAAIqN,EAAcnN,QACrB8M,EAAUK,EAAcrN,GAAGoN,aAAc,EACzCpN,GAMR,KADAA,EAAI,EACGA,EAAI6M,EAAe3M,QAClB8M,EAAUH,EAAe7M,GAAGoN,aAC5BE,EAAqBlJ,KAAKyI,EAAe7M,IAIzC4C,GAAQwE,GAAYC,WACb2F,GAAUH,EAAe7M,GAAGoN,YAEvCpN,GAGJ,OAAKsN,GAAqBpN,QAMtB6D,EAAYsJ,EAAcP,OAAOQ,GAAuB,cAAc,GACtEA,GAPJ,OAoBJ,QAAS9G,KACLlB,EAAMrE,MAAMC,KAAMC,UAElB,IAAIuB,GAAUlD,EAAO0B,KAAKwB,QAASxB,KACnCA,MAAKsM,MAAQ,GAAIlH,GAAWpF,KAAKqE,QAAS7C,GAC1CxB,KAAKuM,MAAQ,GAAIhH,GAAWvF,KAAKqE,QAAS7C,GAyD9C,QAASgL,GAAYnI,EAASoI,GAC1BzM,KAAKqE,QAAUA,EACfrE,KAAK0M,IAAID,GAwGb,QAASE,GAAkBC,GAEvB,GAAI1K,EAAM0K,EAASC,IACf,MAAOA,GAGX,IAAIC,GAAU5K,EAAM0K,EAASG,IACzBC,EAAU9K,EAAM0K,EAASK,GAM7B,OAAIH,IAAWE,EACJH,GAIPC,GAAWE,EACJF,EAAUC,GAAqBE,GAItC/K,EAAM0K,EAASM,IACRA,GAGJC,GA4CX,QAASC,GAAW5I,GAChBxE,KAAKwE,QAAU3D,MAAWb,KAAKqN,SAAU7I,OAEzCxE,KAAKsN,GAAK1J,IAEV5D,KAAKqE,QAAU,KAGfrE,KAAKwE,QAAQI,OAAS1D,EAAYlB,KAAKwE,QAAQI,QAAQ,GAEvD5E,KAAKuN,MAAQC,GAEbxN,KAAKyN,gBACLzN,KAAK0N,eAqOT,QAASC,GAASJ,GACd,MAAIA,GAAQK,GACD,SACAL,EAAQM,GACR,MACAN,EAAQO,GACR,OACAP,EAAQQ,GACR,QAEJ,GAQX,QAASC,GAAahF,GAClB,MAAIA,IAAaY,GACN,OACAZ,GAAaW,GACb,KACAX,GAAaS,GACb,OACAT,GAAaU,GACb,QAEJ,GASX,QAASuE,GAA6BC,EAAiBC,GACnD,GAAI9J,GAAU8J,EAAW9J,OACzB,OAAIA,GACOA,EAAQ+J,IAAIF,GAEhBA,EAQX,QAASG,KACLjB,EAAWrN,MAAMC,KAAMC,WA6D3B,QAASqO,KACLD,EAAetO,MAAMC,KAAMC,WAE3BD,KAAKuO,GAAK,KACVvO,KAAKwO,GAAK,KA4Ed,QAASC,KACLJ,EAAetO,MAAMC,KAAMC,WAsC/B,QAASyO,KACLtB,EAAWrN,MAAMC,KAAMC,WAEvBD,KAAK2O,OAAS,KACd3O,KAAK4O,OAAS,KAmElB,QAASC,MACLR,EAAetO,MAAMC,KAAMC,WA8B/B,QAAS6O,MACLT,EAAetO,MAAMC,KAAMC,WA2D/B,QAAS8O,MACL3B,EAAWrN,MAAMC,KAAMC,WAIvBD,KAAKgP,OAAQ,EACbhP,KAAKiP,SAAU,EAEfjP,KAAK2O,OAAS,KACd3O,KAAK4O,OAAS,KACd5O,KAAKkP,MAAQ,EAqGjB,QAASC,IAAOpL,EAASS,GAGrB,MAFAA,GAAUA,MACVA,EAAQ4K,YAAclO,EAAYsD,EAAQ4K,YAAaD,GAAO9B,SAASgC,QAChE,GAAIC,IAAQvL,EAASS,GAiIhC,QAAS8K,IAAQvL,EAASS,GACtBxE,KAAKwE,QAAU3D,MAAWsO,GAAO9B,SAAU7I,OAE3CxE,KAAKwE,QAAQC,YAAczE,KAAKwE,QAAQC,aAAeV,EAEvD/D,KAAKuP,YACLvP,KAAKoG,WACLpG,KAAKoP,eAELpP,KAAK+D,QAAUA,EACf/D,KAAK0F,MAAQZ,EAAoB9E,MACjCA,KAAKwP,YAAc,GAAIhD,GAAYxM,KAAMA,KAAKwE,QAAQgL,aAEtDC,GAAezP,MAAM,GAErBrB,EAAKqB,KAAKwE,QAAQ4K,YAAa,SAASM,GACpC,GAAIvB,GAAanO,KAAK2P,IAAI,GAAKD,GAAK,GAAIA,EAAK,IAC7CA,GAAK,IAAMvB,EAAWyB,cAAcF,EAAK,IACzCA,EAAK,IAAMvB,EAAW0B,eAAeH,EAAK,KAC3C1P,MAiPP,QAASyP,IAAepL,EAASsL,GAC7B,GAAI5L,GAAUM,EAAQN,OACjBA,GAAQ+L,OAGbnR,EAAK0F,EAAQG,QAAQuL,SAAU,SAAStD,EAAOpN,GAC3C0E,EAAQ+L,MAAMzM,EAASU,EAAQ+L,MAAOzQ,IAASsQ,EAAMlD,EAAQ,KASrE,QAASuD,IAAgBC,EAAOC,GAC5B,GAAIC,GAAerS,EAASsS,YAAY,QACxCD,GAAaE,UAAUJ,GAAO,GAAM,GACpCE,EAAaG,QAAUJ,EACvBA,EAAK5O,OAAOiP,cAAcJ,GAx7E9B,GA+FItP,IA/FA8C,IAAmB,GAAI,SAAU,MAAO,KAAM,KAAM,KACpD6M,GAAe1S,EAAS2S,cAAc,OAEtCxP,GAAgB,WAEhBqI,GAAQW,KAAKX,MACbpB,GAAM+B,KAAK/B,IACXjB,GAAMyJ,KAAKzJ,GA0FXpG,IADyB,kBAAlBJ,QAAOI,OACL,SAAgBS,GACrB,GAAIA,IAAWtD,GAAwB,OAAXsD,EACxB,KAAM,IAAIqP,WAAU,6CAIxB,KAAK,GADDC,GAASnQ,OAAOa,GACXuP,EAAQ,EAAGA,EAAQ5Q,UAAUjB,OAAQ6R,IAAS,CACnD,GAAIC,GAAS7Q,UAAU4Q,EACvB,IAAIC,IAAW9S,GAAwB,OAAX8S,EACxB,IAAK,GAAIC,KAAWD,GACZA,EAAO5R,eAAe6R,KACtBH,EAAOG,GAAWD,EAAOC,IAKzC,MAAOH,IAGFnQ,OAAOI,MAWpB,IAAImQ,IAAS7R,EAAU,SAAgB8R,EAAMxO,EAAKyO,GAG9C,IAFA,GAAIC,GAAO1Q,OAAO0Q,KAAK1O,GACnB3D,EAAI,EACDA,EAAIqS,EAAKnS,UACPkS,GAAUA,GAASD,EAAKE,EAAKrS,MAAQd,KACtCiT,EAAKE,EAAKrS,IAAM2D,EAAI0O,EAAKrS,KAE7BA,GAEJ,OAAOmS,IACR,SAAU,iBASTC,GAAQ/R,EAAU,SAAe8R,EAAMxO,GACvC,MAAOuO,IAAOC,EAAMxO,GAAK,IAC1B,QAAS,iBAiNRoB,GAAY,EAeZuN,GAAe,wCAEf/L,GAAiB,gBAAkBxH,GACnCoH,GAAyB5B,EAASxF,EAAQ,kBAAoBG,EAC9DmH,GAAqBE,IAAiB+L,GAAaC,KAAKC,UAAUC,WAElEC,GAAmB,QACnBC,GAAiB,MACjBC,GAAmB,QACnBC,GAAoB,SAEpBxI,GAAmB,GAEnBnD,GAAc,EACdiG,GAAa,EACb/F,GAAY,EACZC,GAAe,EAEfqD,GAAiB,EACjBC,GAAiB,EACjBC,GAAkB,EAClBC,GAAe,EACfC,GAAiB,GAEjBgI,GAAuBnI,GAAiBC,GACxCmI,GAAqBlI,GAAeC,GACpCkI,GAAgBF,GAAuBC,GAEvC7H,IAAY,IAAK,KACjBO,IAAmB,UAAW,UA4BlCnG,GAAM5D,WAKFgB,QAAS,aAKTqD,KAAM,WACF7E,KAAKwK,MAAQnJ,EAAkBrB,KAAK+D,QAAS/D,KAAKwK,KAAMxK,KAAK0E,YAC7D1E,KAAKmL,UAAY9J,EAAkBrB,KAAKsB,OAAQtB,KAAKmL,SAAUnL,KAAK0E,YACpE1E,KAAK0K,OAASrJ,EAAkByC,EAAoB9D,KAAK+D,SAAU/D,KAAK0K,MAAO1K,KAAK0E,aAMxFqN,QAAS,WACL/R,KAAKwK,MAAQ5I,EAAqB5B,KAAK+D,QAAS/D,KAAKwK,KAAMxK,KAAK0E,YAChE1E,KAAKmL,UAAYvJ,EAAqB5B,KAAKsB,OAAQtB,KAAKmL,SAAUnL,KAAK0E,YACvE1E,KAAK0K,OAAS9I,EAAqBkC,EAAoB9D,KAAK+D,SAAU/D,KAAK0K,MAAO1K,KAAK0E,aA4T/F,IAAIsN,KACAC,UAAWjM,GACXkM,UAAWjG,GACXkG,QAASjM,IAGTuE,GAAuB,YACvBE,GAAsB,mBAiB1BzK,GAAQqF,EAAYnB,GAKhB5C,QAAS,SAAmBmD,GACxB,GAAIc,GAAYuM,GAAgBrN,EAAGjD,KAG/B+D,GAAYO,IAA6B,IAAdrB,EAAGyN,SAC9BpS,KAAK6K,SAAU,GAGfpF,EAAYwG,IAA2B,IAAbtH,EAAG0N,QAC7B5M,EAAYS,IAIXlG,KAAK6K,SAAY7K,KAAK4K,QAIvBnF,EAAYS,KACZlG,KAAK6K,SAAU,GAGnB7K,KAAKsE,SAAStE,KAAKqE,QAASoB,GACxBG,UAAWjB,GACXmB,iBAAkBnB,GAClB2N,YAAaZ,GACbjJ,SAAU9D,OAKtB,IAAI4N,KACAC,YAAaxM,GACbyM,YAAaxG,GACbyG,UAAWxM,GACXyM,cAAexM,GACfyM,WAAYzM,IAIZ0M,IACAC,EAAGtB,GACHuB,EAAGtB,GACHuB,EAAGtB,GACHuB,EAAGtB,IAGH7G,GAAyB,cACzBC,GAAwB,qCAGxBlN,GAAOqV,iBAAmBrV,EAAOsV,eACjCrI,GAAyB,gBACzBC,GAAwB,6CAiB5B7K,EAAQgF,EAAmBd,GAKvB5C,QAAS,SAAmBmD,GACxB,GAAIqG,GAAQhL,KAAKgL,MACboI,GAAgB,EAEhBC,EAAsB1O,EAAGjD,KAAK4R,cAAc3T,QAAQ,KAAM,IAC1D8F,EAAY8M,GAAkBc,GAC9Bf,EAAcO,GAAuBlO,EAAG2N,cAAgB3N,EAAG2N,YAE3DiB,EAAWjB,GAAed,GAG1BgC,EAAahR,EAAQwI,EAAOrG,EAAG8O,UAAW,YAG1ChO,GAAYO,KAA8B,IAAdrB,EAAGyN,QAAgBmB,GAC9B,EAAbC,IACAxI,EAAM9H,KAAKyB,GACX6O,EAAaxI,EAAMhM,OAAS,GAEzByG,GAAaS,GAAYC,MAChCiN,GAAgB,GAIH,EAAbI,IAKJxI,EAAMwI,GAAc7O,EAEpB3E,KAAKsE,SAAStE,KAAKqE,QAASoB,GACxBG,SAAUoF,EACVlF,iBAAkBnB,GAClB2N,YAAaA,EACb7J,SAAU9D,IAGVyO,GAEApI,EAAM0I,OAAOF,EAAY,MAKrC,IAAIG,KACAC,WAAY5N,GACZ6N,UAAW5H,GACX6H,SAAU5N,GACV6N,YAAa5N,IAGbiF,GAA6B,aAC7BC,GAA6B,2CAejCnL,GAAQgL,EAAkB9G,GACtB5C,QAAS,SAAmBmD,GACxB,GAAIjD,GAAOiS,GAAuBhP,EAAGjD,KAOrC,IAJIA,IAASsE,KACThG,KAAKsL,SAAU,GAGdtL,KAAKsL,QAAV,CAIA,GAAIG,GAAUF,EAAuBtM,KAAKe,KAAM2E,EAAIjD,EAGhDA,IAAQwE,GAAYC,KAAiBsF,EAAQ,GAAGzM,OAASyM,EAAQ,GAAGzM,SAAW,IAC/EgB,KAAKsL,SAAU,GAGnBtL,KAAKsE,SAAStE,KAAKqE,QAAS3C,GACxBkE,SAAU6F,EAAQ,GAClB3F,gBAAiB2F,EAAQ,GACzB6G,YAAad,GACb/I,SAAU9D,OAsBtB,IAAIqP,KACAJ,WAAY5N,GACZ6N,UAAW5H,GACX6H,SAAU5N,GACV6N,YAAa5N,IAGb0F,GAAsB,2CAc1B3L,GAAQkF,EAAYhB,GAChB5C,QAAS,SAAoBmD,GACzB,GAAIjD,GAAOsS,GAAgBrP,EAAGjD,MAC1B+J,EAAUM,EAAW9M,KAAKe,KAAM2E,EAAIjD,EACnC+J,IAILzL,KAAKsE,SAAStE,KAAKqE,QAAS3C,GACxBkE,SAAU6F,EAAQ,GAClB3F,gBAAiB2F,EAAQ,GACzB6G,YAAad,GACb/I,SAAU9D,OAmFtBzE,EAAQoF,EAAiBlB,GAOrB5C,QAAS,SAAoB6C,EAAS4P,EAAYC,GAC9C,GAAIX,GAAWW,EAAU5B,aAAed,GACpC2C,EAAWD,EAAU5B,aAAeZ,EAIxC,IAAI6B,EACAvT,KAAKuM,MAAM3B,OAAQ,MAChB,IAAIuJ,IAAYnU,KAAKuM,MAAM3B,MAC9B,MAIAqJ,IAAc/N,GAAYC,MAC1BnG,KAAKuM,MAAM3B,OAAQ,GAGvB5K,KAAKsE,SAASD,EAAS4P,EAAYC,IAMvCnC,QAAS,WACL/R,KAAKsM,MAAMyF,UACX/R,KAAKuM,MAAMwF,YAInB,IAAIqC,IAAwB/Q,EAASmN,GAAaV,MAAO,eACrDuE,GAAsBD,KAA0BpW,EAGhDsW,GAAuB,UACvBnH,GAAoB,OACpBD,GAA4B,eAC5BL,GAAoB,OACpBE,GAAqB,QACrBE,GAAqB,OAczBT,GAAYhM,WAKRkM,IAAK,SAASD,GAENA,GAAS6H,KACT7H,EAAQzM,KAAKuU,WAGbF,IAAuBrU,KAAKqE,QAAQN,QAAQ+L,QAC5C9P,KAAKqE,QAAQN,QAAQ+L,MAAMsE,IAAyB3H,GAExDzM,KAAK4M,QAAUH,EAAM6G,cAAchR,QAMvCkS,OAAQ,WACJxU,KAAK0M,IAAI1M,KAAKqE,QAAQG,QAAQgL,cAOlC+E,QAAS,WACL,GAAI3H,KAMJ,OALAjO,GAAKqB,KAAKqE,QAAQ+K,YAAa,SAASjB,GAChCrN,EAASqN,EAAW3J,QAAQI,QAASuJ,MACrCvB,EAAUA,EAAQhB,OAAOuC,EAAWsG,qBAGrC9H,EAAkBC,EAAQ8H,KAAK,OAO1CC,gBAAiB,SAASjP,GAEtB,IAAI2O,GAAJ,CAIA,GAAI5L,GAAW/C,EAAM+C,SACjBO,EAAYtD,EAAM8B,eAGtB,IAAIxH,KAAKqE,QAAQ+B,QAAQwO,UAErB,WADAnM,GAASoM,gBAIb,IAAIjI,GAAU5M,KAAK4M,QACfkI,EAAU5S,EAAM0K,EAASC,IACzBG,EAAU9K,EAAM0K,EAASK,IACzBH,EAAU5K,EAAM0K,EAASG,GAE7B,IAAI+H,EAAS,CAGT,GAAIC,GAAyC,IAA1BrP,EAAME,SAAS5G,OAC9BgW,EAAgBtP,EAAM2B,SAAW,EACjC4N,EAAiBvP,EAAMwB,UAAY,GAEvC,IAAI6N,GAAgBC,GAAiBC,EACjC,OAIR,IAAInI,IAAWE,EAKf,MAAI8H,IACC9H,GAAWhE,EAAY4I,IACvB9E,GAAW9D,EAAY6I,GACjB7R,KAAKkV,WAAWzM,GAH3B,SAWJyM,WAAY,SAASzM,GACjBzI,KAAKqE,QAAQ+B,QAAQwO,WAAY,EACjCnM,EAASoM,kBAkEjB,IAAIrH,IAAiB,EACjBO,GAAc,EACdD,GAAgB,EAChBD,GAAc,EACdsH,GAAmBtH,GACnBD,GAAkB,GAClBwH,GAAe,EAwBnBhI,GAAW5M,WAKP6M,YAOAX,IAAK,SAASlI,GAKV,MAJA3D,IAAOb,KAAKwE,QAASA,GAGrBxE,KAAKqE,SAAWrE,KAAKqE,QAAQmL,YAAYgF,SAClCxU,MAQX4P,cAAe,SAAS1B,GACpB,GAAI3P,EAAe2P,EAAiB,gBAAiBlO,MACjD,MAAOA,KAGX,IAAIyN,GAAezN,KAAKyN,YAMxB,OALAS,GAAkBD,EAA6BC,EAAiBlO,MAC3DyN,EAAaS,EAAgBZ,MAC9BG,EAAaS,EAAgBZ,IAAMY,EACnCA,EAAgB0B,cAAc5P,OAE3BA,MAQXqV,kBAAmB,SAASnH,GACxB,MAAI3P,GAAe2P,EAAiB,oBAAqBlO,MAC9CA,MAGXkO,EAAkBD,EAA6BC,EAAiBlO,YACzDA,MAAKyN,aAAaS,EAAgBZ,IAClCtN,OAQX6P,eAAgB,SAAS3B,GACrB,GAAI3P,EAAe2P,EAAiB,iBAAkBlO,MAClD,MAAOA,KAGX,IAAI0N,GAAc1N,KAAK0N,WAMvB,OALAQ,GAAkBD,EAA6BC,EAAiBlO,MAClB,KAA1CwC,EAAQkL,EAAaQ,KACrBR,EAAYxK,KAAKgL,GACjBA,EAAgB2B,eAAe7P,OAE5BA,MAQXsV,mBAAoB,SAASpH,GACzB,GAAI3P,EAAe2P,EAAiB,qBAAsBlO,MACtD,MAAOA,KAGXkO,GAAkBD,EAA6BC,EAAiBlO,KAChE,IAAI6Q,GAAQrO,EAAQxC,KAAK0N,YAAaQ,EAItC,OAHI2C,GAAQ,IACR7Q,KAAK0N,YAAYgG,OAAO7C,EAAO,GAE5B7Q,MAOXuV,mBAAoB,WAChB,MAAOvV,MAAK0N,YAAY1O,OAAS,GAQrCwW,iBAAkB,SAAStH,GACvB,QAASlO,KAAKyN,aAAaS,EAAgBZ,KAQ/ChH,KAAM,SAASZ,GAIX,QAASY,GAAK2J,GACV1L,EAAKF,QAAQiC,KAAK2J,EAAOvK,GAJ7B,GAAInB,GAAOvE,KACPuN,EAAQvN,KAAKuN,KAOLM,IAARN,GACAjH,EAAK/B,EAAKC,QAAQyL,MAAQtC,EAASJ,IAGvCjH,EAAK/B,EAAKC,QAAQyL,OAEdvK,EAAM+P,iBACNnP,EAAKZ,EAAM+P,iBAIXlI,GAASM,IACTvH,EAAK/B,EAAKC,QAAQyL,MAAQtC,EAASJ,KAU3CmI,QAAS,SAAShQ,GACd,MAAI1F,MAAK2V,UACE3V,KAAKsG,KAAKZ,QAGrB1F,KAAKuN,MAAQ6H,KAOjBO,QAAS,WAEL,IADA,GAAI7W,GAAI,EACDA,EAAIkB,KAAK0N,YAAY1O,QAAQ,CAChC,KAAMgB,KAAK0N,YAAY5O,GAAGyO,OAAS6H,GAAe5H,KAC9C,OAAO,CAEX1O,KAEJ,OAAO,GAOXyH,UAAW,SAAS2N,GAGhB,GAAI0B,GAAiB/U,MAAWqT,EAGhC,OAAKpT,GAASd,KAAKwE,QAAQI,QAAS5E,KAAM4V,KAOtC5V,KAAKuN,OAAS4H,GAAmBvH,GAAkBwH,MACnDpV,KAAKuN,MAAQC,IAGjBxN,KAAKuN,MAAQvN,KAAK6V,QAAQD,QAItB5V,KAAKuN,OAASQ,GAAcD,GAAgBD,GAAcD,KAC1D5N,KAAK0V,QAAQE,MAfb5V,KAAK8V,aACL9V,KAAKuN,MAAQ6H,MAyBrBS,QAAS,aAOTpB,eAAgB,aAOhBqB,MAAO,cA8DX5V,EAAQmO,EAAgBjB,GAKpBC,UAKIzH,SAAU,GASdmQ,SAAU,SAASrQ,GACf,GAAIsQ,GAAiBhW,KAAKwE,QAAQoB,QAClC,OAA0B,KAAnBoQ,GAAwBtQ,EAAME,SAAS5G,SAAWgX,GAS7DH,QAAS,SAASnQ,GACd,GAAI6H,GAAQvN,KAAKuN,MACb9H,EAAYC,EAAMD,UAElBwQ,EAAe1I,GAASQ,GAAcD,IACtCoI,EAAUlW,KAAK+V,SAASrQ,EAG5B,OAAIuQ,KAAiBxQ,EAAYU,KAAiB+P,GACvC3I,EAAQK,GACRqI,GAAgBC,EACnBzQ,EAAYS,GACLqH,EAAQM,GACNN,EAAQQ,GAGdR,EAAQO,GAFJC,GAIRqH,MAiBflV,EAAQoO,EAAeD,GAKnBhB,UACI4C,MAAO,MACPkG,UAAW,GACXvQ,SAAU,EACVoD,UAAW8I,IAGf2C,eAAgB,WACZ,GAAIzL,GAAYhJ,KAAKwE,QAAQwE,UACzB4D,IAOJ,OANI5D,GAAY4I,IACZhF,EAAQ1J,KAAK+J,IAEbjE,EAAY6I,IACZjF,EAAQ1J,KAAK6J,IAEVH,GAGXwJ,cAAe,SAAS1Q,GACpB,GAAIlB,GAAUxE,KAAKwE,QACf6R,GAAW,EACXhP,EAAW3B,EAAM2B,SACjB2B,EAAYtD,EAAMsD,UAClBjB,EAAIrC,EAAMgC,OACVO,EAAIvC,EAAMiC,MAed,OAZMqB,GAAYxE,EAAQwE,YAClBxE,EAAQwE,UAAY4I,IACpB5I,EAAmB,IAANjB,EAAWyB,GAAsB,EAAJzB,EAAS0B,GAAiBC,GACpE2M,EAAWtO,GAAK/H,KAAKuO,GACrBlH,EAAW4C,KAAK/B,IAAIxC,EAAMgC,UAE1BsB,EAAmB,IAANf,EAAWuB,GAAsB,EAAJvB,EAAS0B,GAAeC,GAClEyM,EAAWpO,GAAKjI,KAAKwO,GACrBnH,EAAW4C,KAAK/B,IAAIxC,EAAMiC,UAGlCjC,EAAMsD,UAAYA,EACXqN,GAAYhP,EAAW7C,EAAQ2R,WAAanN,EAAYxE,EAAQwE,WAG3E+M,SAAU,SAASrQ,GACf,MAAO2I,GAAe7N,UAAUuV,SAAS9W,KAAKe,KAAM0F,KAC/C1F,KAAKuN,MAAQQ,MAAkB/N,KAAKuN,MAAQQ,KAAgB/N,KAAKoW,cAAc1Q,KAGxFY,KAAM,SAASZ,GAEX1F,KAAKuO,GAAK7I,EAAMgC,OAChB1H,KAAKwO,GAAK9I,EAAMiC,MAEhB,IAAIqB,GAAYgF,EAAatI,EAAMsD,UAE/BA,KACAtD,EAAM+P,gBAAkBzV,KAAKwE,QAAQyL,MAAQjH,GAEjDhJ,KAAKY,OAAO0F,KAAKrH,KAAKe,KAAM0F,MAcpCxF,EAAQuO,EAAiBJ,GAKrBhB,UACI4C,MAAO,QACPkG,UAAW,EACXvQ,SAAU,GAGd6O,eAAgB,WACZ,OAAQ5H,KAGZkJ,SAAU,SAASrQ,GACf,MAAO1F,MAAKY,OAAOmV,SAAS9W,KAAKe,KAAM0F,KAClCuE,KAAK/B,IAAIxC,EAAMyC,MAAQ,GAAKnI,KAAKwE,QAAQ2R,WAAanW,KAAKuN,MAAQQ,KAG5EzH,KAAM,SAASZ,GACX,GAAoB,IAAhBA,EAAMyC,MAAa,CACnB,GAAImO,GAAQ5Q,EAAMyC,MAAQ,EAAI,KAAO,KACrCzC,GAAM+P,gBAAkBzV,KAAKwE,QAAQyL,MAAQqG,EAEjDtW,KAAKY,OAAO0F,KAAKrH,KAAKe,KAAM0F,MAiBpCxF,EAAQwO,EAAiBtB,GAKrBC,UACI4C,MAAO,QACPrK,SAAU,EACV2Q,KAAM,IACNJ,UAAW,GAGf1B,eAAgB,WACZ,OAAQtH,KAGZ0I,QAAS,SAASnQ,GACd,GAAIlB,GAAUxE,KAAKwE,QACfgS,EAAgB9Q,EAAME,SAAS5G,SAAWwF,EAAQoB,SAClD6Q,EAAgB/Q,EAAM2B,SAAW7C,EAAQ2R,UACzCO,EAAYhR,EAAMwB,UAAY1C,EAAQ+R,IAM1C,IAJAvW,KAAK4O,OAASlJ,GAIT+Q,IAAkBD,GAAkB9Q,EAAMD,WAAaS,GAAYC,MAAkBuQ,EACtF1W,KAAK8V,YACF,IAAIpQ,EAAMD,UAAYO,GACzBhG,KAAK8V,QACL9V,KAAK2O,OAAS1Q,EAAkB,WAC5B+B,KAAKuN,MAAQ4H,GACbnV,KAAK0V,WACNlR,EAAQ+R,KAAMvW,UACd,IAAI0F,EAAMD,UAAYS,GACzB,MAAOiP,GAEX,OAAOC,KAGXU,MAAO,WACHa,aAAa3W,KAAK2O,SAGtBrI,KAAM,SAASZ,GACP1F,KAAKuN,QAAU4H,KAIfzP,GAAUA,EAAMD,UAAYS,GAC5BlG,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQyL,MAAQ,KAAMvK,IAE7C1F,KAAK4O,OAAO5H,UAAYC,KACxBjH,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQyL,MAAOjQ,KAAK4O,aAevD1O,EAAQ2O,GAAkBR,GAKtBhB,UACI4C,MAAO,SACPkG,UAAW,EACXvQ,SAAU,GAGd6O,eAAgB,WACZ,OAAQ5H,KAGZkJ,SAAU,SAASrQ,GACf,MAAO1F,MAAKY,OAAOmV,SAAS9W,KAAKe,KAAM0F,KAClCuE,KAAK/B,IAAIxC,EAAM2C,UAAYrI,KAAKwE,QAAQ2R,WAAanW,KAAKuN,MAAQQ,OAc/E7N,EAAQ4O,GAAiBT,GAKrBhB,UACI4C,MAAO,QACPkG,UAAW,GACXtN,SAAU,GACVG,UAAW4I,GAAuBC,GAClCjM,SAAU,GAGd6O,eAAgB,WACZ,MAAOnG,GAAc9N,UAAUiU,eAAexV,KAAKe,OAGvD+V,SAAU,SAASrQ,GACf,GACImD,GADAG,EAAYhJ,KAAKwE,QAAQwE,SAW7B,OARIA,IAAa4I,GAAuBC,IACpChJ,EAAWnD,EAAMkC,gBACVoB,EAAY4I,GACnB/I,EAAWnD,EAAMoC,iBACVkB,EAAY6I,KACnBhJ,EAAWnD,EAAMsC,kBAGdhI,KAAKY,OAAOmV,SAAS9W,KAAKe,KAAM0F,IACnCsD,EAAYtD,EAAM8B,iBAClB9B,EAAM2B,SAAWrH,KAAKwE,QAAQ2R,WAC9BzQ,EAAM6C,aAAevI,KAAKwE,QAAQoB,UAClCsC,GAAIW,GAAY7I,KAAKwE,QAAQqE,UAAYnD,EAAMD,UAAYS,IAGnEI,KAAM,SAASZ,GACX,GAAIsD,GAAYgF,EAAatI,EAAM8B,gBAC/BwB,IACAhJ,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQyL,MAAQjH,EAAWtD,GAGtD1F,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQyL,MAAOvK,MA2B9CxF,EAAQ6O,GAAe3B,GAKnBC,UACI4C,MAAO,MACPrK,SAAU,EACVgR,KAAM,EACNC,SAAU,IACVN,KAAM,IACNJ,UAAW,EACXW,aAAc,IAGlBrC,eAAgB,WACZ,OAAQvH,KAGZ2I,QAAS,SAASnQ,GACd,GAAIlB,GAAUxE,KAAKwE,QAEfgS,EAAgB9Q,EAAME,SAAS5G,SAAWwF,EAAQoB,SAClD6Q,EAAgB/Q,EAAM2B,SAAW7C,EAAQ2R,UACzCY,EAAiBrR,EAAMwB,UAAY1C,EAAQ+R,IAI/C,IAFAvW,KAAK8V,QAEApQ,EAAMD,UAAYO,IAAgC,IAAfhG,KAAKkP,MACzC,MAAOlP,MAAKgX,aAKhB,IAAIP,GAAiBM,GAAkBP,EAAe,CAClD,GAAI9Q,EAAMD,WAAaS,GACnB,MAAOlG,MAAKgX,aAGhB,IAAIC,GAAgBjX,KAAKgP,MAAStJ,EAAMsB,UAAYhH,KAAKgP,MAAQxK,EAAQqS,UAAY,EACjFK,GAAiBlX,KAAKiP,SAAW3H,EAAYtH,KAAKiP,QAASvJ,EAAMoB,QAAUtC,EAAQsS,YAEvF9W,MAAKgP,MAAQtJ,EAAMsB,UACnBhH,KAAKiP,QAAUvJ,EAAMoB,OAEhBoQ,GAAkBD,EAGnBjX,KAAKkP,OAAS,EAFdlP,KAAKkP,MAAQ,EAKjBlP,KAAK4O,OAASlJ,CAId,IAAIyR,GAAWnX,KAAKkP,MAAQ1K,EAAQoS,IACpC,IAAiB,IAAbO,EAGA,MAAKnX,MAAKuV,sBAGNvV,KAAK2O,OAAS1Q,EAAkB,WAC5B+B,KAAKuN,MAAQ4H,GACbnV,KAAK0V,WACNlR,EAAQqS,SAAU7W,MACd+N,IANAoH,GAUnB,MAAOC,KAGX4B,YAAa,WAIT,MAHAhX,MAAK2O,OAAS1Q,EAAkB,WAC5B+B,KAAKuN,MAAQ6H,IACdpV,KAAKwE,QAAQqS,SAAU7W,MACnBoV,IAGXU,MAAO,WACHa,aAAa3W,KAAK2O,SAGtBrI,KAAM,WACEtG,KAAKuN,OAAS4H,KACdnV,KAAK4O,OAAOuI,SAAWnX,KAAKkP,MAC5BlP,KAAKqE,QAAQiC,KAAKtG,KAAKwE,QAAQyL,MAAOjQ,KAAK4O,YAoBvDO,GAAOiI,QAAU,QAMjBjI,GAAO9B,UAOHgK,WAAW,EAQX7H,YAAa8E,GAMb1P,QAAQ,EASRH,YAAa,KAObO,WAAY,KAOZqK,SAEKR,IAAmBjK,QAAQ,KAC3B6J,GAAkB7J,QAAQ,IAAS,YACnCkK,IAAkB9F,UAAW4I,MAC7BtD,GAAgBtF,UAAW4I,KAAwB,WACnD7C,KACAA,IAAgBkB,MAAO,YAAa2G,KAAM,IAAK,SAC/ClI,IAQLqB,UAMIuH,WAAY,OAOZC,YAAa,OASbC,aAAc,OAOdC,eAAgB,OAOhBC,SAAU,OAQVC,kBAAmB,iBAI3B,IAAIC,IAAO,EACPC,GAAc,CA8BlBvI,IAAQ9O,WAMJkM,IAAK,SAASlI,GAaV,MAZA3D,IAAOb,KAAKwE,QAASA,GAGjBA,EAAQgL,aACRxP,KAAKwP,YAAYgF,SAEjBhQ,EAAQC,cAERzE,KAAK0F,MAAMqM,UACX/R,KAAK0F,MAAMpE,OAASkD,EAAQC,YAC5BzE,KAAK0F,MAAMb,QAER7E,MASX8X,KAAM,SAASC,GACX/X,KAAKoG,QAAQ4R,QAAUD,EAAQF,GAAcD,IASjDrR,UAAW,SAAS2N,GAChB,GAAI9N,GAAUpG,KAAKoG,OACnB,KAAIA,EAAQ4R,QAAZ,CAKAhY,KAAKwP,YAAYmF,gBAAgBT,EAEjC,IAAI/F,GACAiB,EAAcpP,KAAKoP,YAKnB6I,EAAgB7R,EAAQ6R,gBAIvBA,GAAkBA,GAAiBA,EAAc1K,MAAQ4H,MAC1D8C,EAAgB7R,EAAQ6R,cAAgB,KAI5C,KADA,GAAInZ,GAAI,EACDA,EAAIsQ,EAAYpQ,QACnBmP,EAAaiB,EAAYtQ,GAQrBsH,EAAQ4R,UAAYH,IACfI,GAAiB9J,GAAc8J,IAChC9J,EAAWqH,iBAAiByC,GAGhC9J,EAAW2H,QAFX3H,EAAW5H,UAAU2N,IAOpB+D,GAAiB9J,EAAWZ,OAASQ,GAAcD,GAAgBD,MACpEoK,EAAgB7R,EAAQ6R,cAAgB9J,GAE5CrP,MASRsP,IAAK,SAASD,GACV,GAAIA,YAAsBf,GACtB,MAAOe,EAIX,KAAK,GADDiB,GAAcpP,KAAKoP,YACdtQ,EAAI,EAAGA,EAAIsQ,EAAYpQ,OAAQF,IACpC,GAAIsQ,EAAYtQ,GAAG0F,QAAQyL,OAAS9B,EAChC,MAAOiB,GAAYtQ,EAG3B,OAAO,OASX6Q,IAAK,SAASxB,GACV,GAAI5P,EAAe4P,EAAY,MAAOnO,MAClC,MAAOA,KAIX,IAAIkY,GAAWlY,KAAKoO,IAAID,EAAW3J,QAAQyL,MAS3C,OARIiI,IACAlY,KAAKmY,OAAOD,GAGhBlY,KAAKoP,YAAYlM,KAAKiL,GACtBA,EAAW9J,QAAUrE,KAErBA,KAAKwP,YAAYgF,SACVrG,GAQXgK,OAAQ,SAAShK,GACb,GAAI5P,EAAe4P,EAAY,SAAUnO,MACrC,MAAOA,KAMX,IAHAmO,EAAanO,KAAKoO,IAAID,GAGN,CACZ,GAAIiB,GAAcpP,KAAKoP,YACnByB,EAAQrO,EAAQ4M,EAAajB,EAEnB,MAAV0C,IACAzB,EAAYsE,OAAO7C,EAAO,GAC1B7Q,KAAKwP,YAAYgF,UAIzB,MAAOxU,OASXoY,GAAI,SAASC,EAAQ7W,GACjB,GAAI+N,GAAWvP,KAAKuP,QAKpB,OAJA5Q,GAAK8C,EAAS4W,GAAS,SAASpI,GAC5BV,EAASU,GAASV,EAASU,OAC3BV,EAASU,GAAO/M,KAAK1B,KAElBxB,MASXsY,IAAK,SAASD,EAAQ7W,GAClB,GAAI+N,GAAWvP,KAAKuP,QAQpB,OAPA5Q,GAAK8C,EAAS4W,GAAS,SAASpI,GACvBzO,EAGD+N,EAASU,IAAUV,EAASU,GAAOyD,OAAOlR,EAAQ+M,EAASU,GAAQzO,GAAU,SAFtE+N,GAASU,KAKjBjQ,MAQXsG,KAAM,SAAS2J,EAAOC,GAEdlQ,KAAKwE,QAAQ6S,WACbrH,GAAgBC,EAAOC,EAI3B,IAAIX,GAAWvP,KAAKuP,SAASU,IAAUjQ,KAAKuP,SAASU,GAAOrN,OAC5D,IAAK2M,GAAaA,EAASvQ,OAA3B,CAIAkR,EAAKxO,KAAOuO,EACZC,EAAK2E,eAAiB,WAClB3E,EAAKzH,SAASoM,iBAIlB,KADA,GAAI/V,GAAI,EACDA,EAAIyQ,EAASvQ,QAChBuQ,EAASzQ,GAAGoR,GACZpR,MAQRiT,QAAS,WACL/R,KAAK+D,SAAW0L,GAAezP,MAAM,GAErCA,KAAKuP,YACLvP,KAAKoG,WACLpG,KAAK0F,MAAMqM,UACX/R,KAAK+D,QAAU,OA+BvBlD,GAAOsO,IACHnJ,YAAaA,GACbiG,WAAYA,GACZ/F,UAAWA,GACXC,aAAcA,GAEdqH,eAAgBA,GAChBO,YAAaA,GACbD,cAAeA,GACfD,YAAaA,GACbsH,iBAAkBA,GAClBvH,gBAAiBA,GACjBwH,aAAcA,GAEd5L,eAAgBA,GAChBC,eAAgBA,GAChBC,gBAAiBA,GACjBC,aAAcA,GACdC,eAAgBA,GAChBgI,qBAAsBA,GACtBC,mBAAoBA,GACpBC,cAAeA,GAEfxC,QAASA,GACTlL,MAAOA,EACPoI,YAAaA,EAEbpH,WAAYA,EACZG,WAAYA,EACZL,kBAAmBA,EACnBI,gBAAiBA,EACjB4F,iBAAkBA,EAElBkC,WAAYA,EACZiB,eAAgBA,EAChBkK,IAAKxJ,GACLyJ,IAAKlK,EACLmK,MAAO3J,GACP4J,MAAOjK,EACPkK,OAAQ9J,GACR+J,MAAOlK,EAEP0J,GAAI/W,EACJiX,IAAK1W,EACLjD,KAAMA,EACNuS,MAAOA,GACPF,OAAQA,GACRnQ,OAAQA,GACRX,QAASA,EACT5B,OAAQA,EACR+E,SAAUA,GAKd,IAAIwV,IAAgC,mBAAXhb,GAAyBA,EAA0B,mBAAT0G,MAAuBA,OAC1FsU,IAAW1J,OAASA,GAEE,kBAAX2J,SAAyBA,OAAOC,IACvCD,OAAO,WACH,MAAO3J,MAEa,mBAAV6J,SAAyBA,OAAOC,QAC9CD,OAAOC,QAAU9J,GAEjBtR,EAAOE,GAAcoR,IAGtBtR,OAAQC,SAAU"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/.bower.json b/ecomp-portal-FE/client/bower_components/jqTree/.bower.json
deleted file mode 100644
index b75c9d88..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/.bower.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "jqTree",
- "version": "1.3.7",
- "main": [
- "jqtree.css",
- "jqtree-circle.png",
- "tree.jquery.js"
- ],
- "dependencies": {
- "jquery": ">=1.9"
- },
- "license": "Apache-2.0",
- "ignore": [],
- "keywords": [
- "jquery-plugin",
- "tree"
- ],
- "homepage": "https://github.com/mbraak/jqTree",
- "_release": "1.3.7",
- "_resolution": {
- "type": "version",
- "tag": "1.3.7",
- "commit": "88c58de867ed846ffdf7713af28f19e5aa3234f0"
- },
- "_source": "https://github.com/mbraak/jqTree.git",
- "_target": "^1.3.3",
- "_originalSource": "jqtree"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/.editorconfig b/ecomp-portal-FE/client/bower_components/jqTree/.editorconfig
deleted file mode 100644
index b7a840f1..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/.editorconfig
+++ /dev/null
@@ -1,12 +0,0 @@
-# EditorConfig helps developers define and maintain
-# consistent coding styles between different editors and IDEs.
-
-root = true
-
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-indent_style = space
-indent_size = 4
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/.gitignore b/ecomp-portal-FE/client/bower_components/jqTree/.gitignore
deleted file mode 100644
index 6a44007a..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-node_modules/
-data.lcov
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/.travis.yml b/ecomp-portal-FE/client/bower_components/jqTree/.travis.yml
deleted file mode 100644
index 66eba51d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-language: node_js
-node_js:
- - "6.3.1"
-sudo: false
-before_script:
- - npm install
- - node phantomjs/server.js &
- - sleep 5
-script:
- - rm -f data.lcov
- - phantomjs phantomjs/runner.js "http://localhost:8000/test/test.html?gruntReport&coverage"
- - node node_modules/coveralls/bin/coveralls.js < data.lcov
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/LICENSE b/ecomp-portal-FE/client/bower_components/jqTree/LICENSE
deleted file mode 100644
index d09301f1..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/LICENSE
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright 2011 Marco Braak
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/README.md b/ecomp-portal-FE/client/bower_components/jqTree/README.md
deleted file mode 100644
index 352afcbf..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/README.md
+++ /dev/null
@@ -1,63 +0,0 @@
-[![Travis Status](https://api.travis-ci.org/mbraak/jqTree.svg)](http://travis-ci.org/mbraak/jqTree) [![Coverage Status](https://img.shields.io/coveralls/mbraak/jqTree.svg)](https://coveralls.io/r/mbraak/jqTree)
-
-[![Bower version](https://img.shields.io/bower/v/jqtree.svg)](https://mbraak.github.io/jqTree/) [![NPM version](https://img.shields.io/npm/v/jqtree.svg)](https://www.npmjs.com/package/jqtree)
-
-# jqTree
-
-JqTree is a tree widget. Read more in the [documentation](https://mbraak.github.io/jqTree/).
-
-![screenshot](https://raw.github.com/mbraak/jqTree/master/screenshot.png)
-
-## Features
-
-* Create a tree from JSON data
-* Drag and drop
-* Works on ie8+, firefox, chrome and safari
-* Written in Coffeescript
-
-The project is hosted on [github](https://github.com/mbraak/jqTree), has a [test suite](http://mbraak.github.io/jqTree/test/test.html).
-
-## Examples
-
-Example with ajax data:
-
-```html
-<div id="tree1" data-url="/example_data/"></div>
-```
-
-```js
-$('#tree1').tree();
-```
-
-Example with static data:
-
-```js
-var data = [
- {
- label: 'node1', id: 1,
- children: [
- { label: 'child1', id: 2 },
- { label: 'child2', id: 3 }
- ]
- },
- {
- label: 'node2', id: 4,
- children: [
- { label: 'child3', id: 5 }
- ]
- }
-];
-$('#tree1').tree({
- data: data,
- autoOpen: true,
- dragAndDrop: true
-});
-```
-
-## Documentation
-
-The documentation is on http://mbraak.github.io/jqTree/.
-
-## Thanks
-
-The code for the mouse widget is heavily inspired by the mouse widget from jquery ui.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_config.yml b/ecomp-portal-FE/client/bower_components/jqTree/_config.yml
deleted file mode 100644
index 39f03c1b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_config.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# Site settings
-title: jqTree
-email: your-email@domain.com
-description: "JqTree docs"
-baseurl: "/jqTree"
-url: "http://mbraak.github.io/jqTree/"
-
-collections:
- entries:
- output: false
- examples:
- output: true
-
-jqtree_version: 1.3.7
-
-# Build settings
-markdown: kramdown
-permalink: pretty
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/01_general.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/01_general.md
deleted file mode 100644
index c25dfcc9..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/01_general.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: General
-name: general
-section: true
-hide_title: true
----
-
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/02_introduction.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/02_introduction.md
deleted file mode 100644
index be5205ca..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/02_introduction.md
+++ /dev/null
@@ -1,9 +0,0 @@
----
-title: Introduction
-name: introduction
----
-
-JqTree is a jQuery widget for displaying a **tree structure** in html. It supports **json data**, loading via
-**ajax** and **drag-and-drop**.
-
-[![Bower version](https://img.shields.io/bower/v/jqtree.svg)](https://mbraak.github.io/jqTree/) [![NPM version](https://img.shields.io/npm/v/jqtree.svg)](https://www.npmjs.com/package/jqtree)
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/03_features.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/03_features.md
deleted file mode 100644
index 9c31e019..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/03_features.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: Features
-name: features
----
-
-* Create a tree from JSON data
-* Load data using ajax
-* Drag and drop
-* Saves the state
-* Keyboard support
-* Lazy loading
-* Works on ie8+, firefox, chrome and safari
-* Written in Coffeescript
-
-The project is [hosted on github](https://github.com/mbraak/jqTree), has a [test suite](test/test.html). There is also a [test suite for ie8 and older](test/test_jquery_1.html) and a [test suite for jquery 2](test/test_jquery_2.html).
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/04_demo.html b/ecomp-portal-FE/client/bower_components/jqTree/_entries/04_demo.html
deleted file mode 100644
index d2b81b6e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/04_demo.html
+++ /dev/null
@@ -1,34 +0,0 @@
----
-title: Demo
-name: demo
----
-
-<div class="row">
- <div class="col-md-6">
-{% highlight js %}
-var data = [
- {
- name: 'node1', id: 1,
- children: [
- { name: 'child1', id: 2 },
- { name: 'child2', id: 3 }
- ]
- },
- {
- name: 'node2', id: 4,
- children: [
- { name: 'child3', id: 5 }
- ]
- }
-];
-$('#tree1').tree({
- data: data,
- autoOpen: true,
- dragAndDrop: true
-});
-{% endhighlight %}
- </div>
- <div class="col-md-6">
- <div id="tree1"></div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/05_requirements.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/05_requirements.md
deleted file mode 100644
index d5890de4..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/05_requirements.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-title: Requirements
-name: requirements
----
-
-* [jQuery](http://jquery.com) 1.9+, 2.x or 3.x
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/06_downloads.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/06_downloads.md
deleted file mode 100644
index 77485b2e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/06_downloads.md
+++ /dev/null
@@ -1,9 +0,0 @@
----
-title: Downloads
-name: downloads
----
-
-* All (version {{ site.jqtree_version }}): [jqTree.tar.gz](https://github.com/mbraak/jqTree/tarball/master)
-* Javascript: [tree.jquery.js](tree.jquery.js)
-* Css: [jqtree.css](jqtree.css)
-* Image: [jqtree-circle.png](jqtree-circle.png)
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/07_tutorial.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/07_tutorial.md
deleted file mode 100644
index 55fe21e0..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/07_tutorial.md
+++ /dev/null
@@ -1,77 +0,0 @@
----
-title: Tutorial
-name: Tutorial
----
-
-Include [jQuery](http://code.jquery.com/jquery.min.js)
-
-{% highlight html %}
-<script src="jquery.min.js"></script>
-{% endhighlight %}
-
-Include tree.jquery.js:
-
-{% highlight html %}
-<script src="tree.jquery.js"></script>
-{% endhighlight %}
-
-Include jqtree.css:
-
-{% highlight html %}
-<link rel="stylesheet" href="jqtree.css">
-{% endhighlight %}
-
-Optionally, for saveState include [jquery-cookie](https://github.com/carhartl/jquery-cookie):
-
-{% highlight html %}
-<script src="jquery.cookie.js"></script>
-{% endhighlight %}
-
-Create a div.
-
-{% highlight html %}
-<div id="tree1"></div>
-{% endhighlight %}
-
-Create tree data.
-
-{% highlight js %}
-var data = [
- {
- name: 'node1',
- children: [
- { name: 'child1' },
- { name: 'child2' }
- ]
- },
- {
- name: 'node2',
- children: [
- { name: 'child3' }
- ]
- }
-];
-{% endhighlight %}
-
-Create tree widget.
-
-{% highlight js %}
-$(function() {
- $('#tree1').tree({
- data: data
- });
-});
-{% endhighlight %}
-
-Alternatively, get the data from the server.
-
-{% highlight js %}
-$.getJSON(
- '/some_url/',
- function(data) {
- $('#tree1').tree({
- data: data
- });
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/08_examples.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/08_examples.md
deleted file mode 100644
index 7911c85f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/08_examples.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-title: Examples
-name: examples
----
-
-{% for e in site.examples %}
-* [{{ e.title }}]({{ site.baseurl }}{{ e.url }})
-{% endfor %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/09_usecases.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/09_usecases.md
deleted file mode 100644
index f01ea2ef..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/09_usecases.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-title: Use cases
-name: usecases
----
-
-Use cases or implementations of JqTree
-
-##### With AngularJS and FireBase
-* [https://github.com/romelgomez/jqtree-angularjs-firebase-example](https://github.com/romelgomez/jqtree-angularjs-firebase-example)
-
-##### With CakePHP and OpenShift
-* Code: [https://github.com/romelgomez/jqtree-cakephp-openshift-example](https://github.com/romelgomez/jqtree-cakephp-openshift-example)
-* Demo: [http://jqtreecakephpexample-theteacher.rhcloud.com/](http://jqtreecakephpexample-theteacher.rhcloud.com/)
-
-##### With Spring MVC and Google App Engine
-* Code: [https://github.com/romelgomez/jqtree-spring-mvc-gae-example](https://github.com/romelgomez/jqtree-spring-mvc-gae-example)
-* Demo: [http://jqtree-spring-mvc-gae-example.appspot.com/](http://jqtree-spring-mvc-gae-example.appspot.com/)
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/10_changelog.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/10_changelog.md
deleted file mode 100644
index 9c69467e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/10_changelog.md
+++ /dev/null
@@ -1,233 +0,0 @@
----
-title: Changelog
-name: changelog
----
-
-##### 1.3.7 (january 11 2017)
-
-* Issue 462: add on_finished parameter to openNode function
-* Issue 467: fix autoscroll when tree position changes after tree init (thanks to Themre)
-
-##### 1.3.6 (november 5 2016)
-
-* Issue 453: make it possible to initialize the tree without data
-* Issue 455: isNodeSelected must return boolean (thanks to Joshua Harrison)
-
-##### 1.3.5 (september 15 2016)
-
-* Issue 437: autoEscape option applies to dragged elements
-* Issue 448: calling updateNode with an empty children array should remove the children
-
-##### 1.3.4 (july 18 2016)
-
-* Issue 433: Added getNodeByHtmlElement function
-* Issue 435: Added getNodeByCallback function
-* Issue 437: Fix XSS issue in drag and drop
-
-##### 1.3.3 (may 30 2016)
-
-* Issue 420: Set the correct aria-level after updating a node (thanks to Fermin Gallego)
-* Issue 426 and 427: Make it possible to append a subtree using appendNode
- * also works for addNodeAfter, addNodeBefore, prependNode and updateNode
-
-##### 1.3.2 (march 3 2016)
-
-* Issue 412: Set ajax parameters in dataUrl option (thanks to Atul Bajpai)
-* Issue 415: Add onLoading callback parameter
-
-##### 1.3.0 (november 8 2015)
-
-* Issue 234: Added onDragMove and onDragStop callbacks
-* Issue 394: Label displays 'null' in UI when the label key is null (thanks to Carlos Ponce)
-* Issue 396: Trigger init.tree correctly for load on demand (thanks to jmashore)
-* Issue 397: Aria accessibility support (thanks to Rich Caloggero)
-* Issue 398: Functions should return the `jquery` element
-* Issue 400: Added on_finished parameter to reload function
-* Issue 402: Fix autoscroll when tree element is created outside the dom (thanks to hbaptiste)
-
-##### 1.2.1 (july 14 2015)
-
-* Issue 48: Added right-to-left support (thanks to Mohamed Ouederni, Ashraf Fayad and Udi Oron)
-* Issue 371: Added include_parent parameter to getData function
-* Issue 375: Fix conflict with prototype.js (thanks to Henry de Guzman)
-
-##### 1.1.0 (april 6 2015)
-
-* Issue 348: Circle for drag-and-drop is not positioned correctly for content box-sizing
-* Issue 356: Fixed drag-and-drop after nodeUpdate (thanks to Iker Vázquez)
-* Issue 360: Add a trailing semicolon to tree.jquery.js (thanks to David Thenon)
-
-##### 1.0.0 (january 11 2015)
-
-* Issues 273 and 304: autoOpen and saveState now works for nodes that are loaded on demand
-* Issue 283: Added getNodesByProperty function (thanks to Neeraj)
-* Issue 332: openNode should open parent nodes (thanks to Kitano Yoshitomo)
-* Issue 335: Add cloneNode missing argument for Gecko <13.0 (thanks to Tvinky)
-* Issue 337: Added functions for moving up and down
-* Issue 341: Fixed drag-and-drop border when nodes have padding (thanks to Alex Musayev)
-
-##### 0.22 (september 25 2014)
-
-* Issue 291: Dragging Item - do not open node if you don't stay over it (thanks to Roman Klos)
-* Issue 300: Toggle function should get default slide value from options (thanks to Tazle)
-* Issue 303: Correctly set selected_node parameter in query string
-* Issue 315: Fix for issue when moving node over closed folder (thanks to terrybr)
-* Issue 320: Fixed error in drag and drop (thanks to Jerry Wu)
-
-##### 0.21 (june 7 2014)
-
-* Issue 263: Improve styling of toggle button
-* Issue 266: Make it possible to use html for toggle buttons
-* Issue 262: updateNode on first level makes node disappear (thanks to MiloÅ¡ Äekić)
-* Issue 260: Exempt 'select' elements from keyboard navigation (thanks to Eli Flanagan)
-* Issue 270: Fixed error 'selected_single_node is not defined' (thanks to Bryan Smith)
-* Issue 279: .jqtree-moving removed when loading subtree (thanks to Marc-Stefan Cassola)
-* Issue 280: CSS3 Circle and style optimization (thanks to Marc-Stefan Cassola)
-* Issue 283: Added function getNodesByProperty (thanks to Cedrik Vanderhaegen)
-* Issue 292: Save state if multiple nodes are selected (thanks to MykhailoP)
-* Issue 294: Handle click on input element in tree (thanks to Naeco33)
-
-##### 0.20 (march 9 2014)
-
-* Issue 235: Added setOption function
-* Issue 241: Prevent duplicate event call after re-initalization
-* Issue 246: Check if folder must be opened while moving node (thanks to Dave Gardner)
-* Issue 247: Improve performance of updateNode (thanks to Gordon Woodhull)
-* Issue 250: Improve performance of creating dom elements (thanks to Carlos Scheidegger)
-* Issue 252: BorderDropHint has wrong height for border-box box-sizing (thanks to simshaun)
-* Issue 253: Added reload function
-* Issue 256: Toggler button is underlined
-* Issue 257: Make it possible to open a lazily loaded folder using the keyboard
-* Issue 258: Correctly unselect children if a node is reloaded
-
-##### 0.19 (december 8 2013)
-
-* Issue 225: Fixes TypeError when removing nodes without ids that aren't selected (thanks to Marcus McCurdy)
-* Issue 222: scrollToNode does not consider direct parent
-* Issue 228: add property click_event to tree.click and tree.dblclick events (thanks to Gordon Woodhull)
-* Issue 78: Added option openFolderDelay: the delay for opening a folder during drag-and-drop (thanks to Jason Diamond)
-
-##### 0.18 (september 17 2013)
-
-* Issue 132: Skip keyboard handling if focus is on input element (thanks to Bingeling)
-* Issue 179 and 180: Added dataFilter option to filter the returned data from jQuery.ajax (thanks to Cheton Wu and Tony Dilger)
-* Issue 184: If the node id is 0, the id mapping is incorrect (thanks to Ika Wu)
-* Issue 190: The function selectNode should not toggle (thanks to Gordon Woodhull)
-* Issue 192: Added keyboardSupport option (thanks to Ika Wu)
-* Issue 181: Added tree.dblclick event (thanks to eskaigualker)
-* Issue 196: localStorage doesn't work in Safari private browsing (thanks to thebagg)
-* Issue 203: Adding deselected_node attribute to event object of tree.select event (thanks to tedtoer)
-
-##### 0.17 (july 14 2013)
-
-* Issue 132: Added keyboard support
-* Issue 154: Calling loadDataFromUrl should not trigger tree.init event (thanks to Davide Bellini)
-* Issue 158: Index not updated on updateNode (thanks to Sam Mousa)
-* Issue 159: Cannot reselect node after unselecting it (thanks to Comanche)
-* Issue 162: Added getPreviousSibling and getNextSibling functions (thanks to Dimaninc)
-* Issue 169: Added touch support (thanks to Comanche)
-* Issue 171: Added functions getState and setState
-* Issue 175: Make it possible to install jqTree using bower (thanks to Adam Miskiewicz)
-
-##### 0.16 (may 17 2013)
-
-* Issue 62: Added functions for multiple select
-* Issue 125: Add option for overriding TRIANGLE_RIGHT and TRIANGLE_DOWN (thanks to Sam D)
-* Issue 126: Event tree.open event fires after first tree.select on top level node
-* Issue 129: Allow native context menu to be display (thanks to Charles Bourasseau)
-* Issue 130: Selectable not implemented (thanks to Sam D)
-* Issue 133: loadDataFromUrl doesn't work when only parent_node and callback are passed in (thanks to Simone Deponti)
-* Issue 134: selectNode from inside tree.init breaks on loadData (thanks to Sam D)
-* Issue 145: Auto-open nodes with drag n drop when drag not enabled for that node (thanks to Daniel Powell)
-* Issue 146: Added function scrollToNode (thanks to Davide Bellini)
-
-##### 0.15 (march 16 2013)
-
-* Issue 100: Clicking on the jqtree-element element will trigger click event
-* Issue 102: Add original event to tree.move event
-* Issue 103: Added getLevel function to Node class
-* Issue 104: The addNodeBefore method must return the new node
-* Issue 105: Added nodeClass option
-* Issue 112: Fix call to iterate in removeNode (thanks to Ingemar Ã…dahl)
-* Issue 113: Added onLoadFailed option (thanks to Shuhei Kondo)
-* Issue 118: Deselect a node when click and already selected
-* Issue 119: Make it easier to reload a subtree
-* Issue 121: Unselect node if it's reloaded by loadDataFromUrl
-
-##### 0.14 (december 2 2012)
-
-###### Api changes
-
-* Removed parameter **must_open_parents** from function **selectNode**.
-* Changed **slide** parameter in functions **openNode** and **closeNode**.
-
-###### Issues
-
-* Issue 80: Support more options for loading data from the server. E.g. the 'post' method (thanks to Rodrigo Rosenfeld Rosas)
-* Issue 81: getSelectedNode must return false if node is removed
-* Issue 82: Autoscroll for drag-and-drop
-* Issue 84: Fix correct type param in $.ajax() (thanks to Rodrigo Rosenfeld Rosas)
-* Issue 85: Option to turn slide animation on or off
-* Issue 86: The openNode function must automatically open parents
-* Issue 87: Remove the must_open_parents parameter from the selectNode function
-* Issue 88: selectNode must also work if selectable option is false
-* Issue 89: Clicking in title with img or em does not work
-* Issue 96: Added jqtree_common class to avoid css clashes (thanks to Yaniv Iny)
-
-##### 0.13 (october 10 2012)
-
-* Issue 54: Added tree.select event
-* Issue 63: Fixed contextmenu event
-* Issue 67: Use unicode characters for triangle buttons (thanks to Younès)
-* Issue 70: Load data from the server using the loadData function
-* Issue 78: Drag and drop is trigger happy
-
-##### 0.12 (august 14 2012)
-
-* Issue 46: Added tree.refresh event
-* Issue 47: Function 'selectNode' must properly open the parent nodes
-* Issue 49: Make sure that widget functions can be called in the 'tree.init' event
-* Issue 50: Add namespace to css classes
-* Issue 51: closeNode to collapse tree doesn't work
-* Issue 55: Load-on-demand from the server
-* Issue 58: Added updateNode function
-* Issue 59: Added moveNode function
-* Issue 60: Use native JSON.stringify function
-
-##### 0.11 (july 8 2012)
-
-* Autoescape text
-* Added autoEscape option
-* Issue 33: appendNode does not correctly refresh the tree
-* Issue 34: unset internal pointer to previously selected node on DOM deselect
-* Issue 38: Correctly check if browser has support for localstorage
-* Issue 41: Open nodes are not displayed correctly in ie7
-
-##### 0.10 (june 10 2012)
-
-* Optimized getNodeById
-* Issue #18 and #26: Made comparison in getNodeById less strict
-* Added function prependNode
-* Added 'data-url' option
-* Added removeNode function
-* Issue #24: Tree with jquery ui Dialog: expand causes resize and move problem
-* Added Travis ci support
-* Added addNodeAfter, addNodeBefore and addParentNode
-* Renamed icons.png to jqtree-icons.png
-* selectNode with empty node deselects the current node
-
-##### 0.9 (may 9 2012)
-
-* Issue 15: 'tree.open' event is not triggered when dragging nodes
-* Issue 18: Allow moveNode to be canceled through ev.preventDefault()
-* Use sprite for images
-* Added function closeNode
-* Added support for localstorage
-* Implemented alternative data format
-
-##### 0.8 (april 18 2012)
-
-* Replace jquery.ui widget with SimpleWidget
-* Added 'previous_parent' to 'tree.move' event
-* Add posibility to load subtree
-* Added 'tree.open' and 'tree.close' events
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/11_options.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/11_options.md
deleted file mode 100644
index 5f017c70..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/11_options.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-title: Tree options
-name: tree-options
-section: true
----
-
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/12_autoescape.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/12_autoescape.md
deleted file mode 100644
index dd959e4f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/12_autoescape.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-title: autoEscape
-name: options-autoescape
----
-
-Determine if text is autoescaped. The default is true.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/13_autoopen.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/13_autoopen.md
deleted file mode 100644
index c140d1bf..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/13_autoopen.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-title: autoOpen
-name: options-autoopen
----
-
-Open nodes initially.
-
-* **true**: open all nodes.
-* **false (default)**: do nothing
-* **n**: open n levels
-
-Open all nodes initially:
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- autoOpen: true
-});
-{% endhighlight %}
-
-Open first level nodes:
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- autoOpen: 0
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/14_buttonleft.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/14_buttonleft.md
deleted file mode 100644
index c5186c2d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/14_buttonleft.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: buttonLeft
-name: options-buttonleft
----
-
-Set the position of the toggle button; can be `true` (left) or `false` (right). The default is `true`.
-
-{% highlight js %}
-$('#tree1').tree({
- buttonLeft: false
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/15_closedicon.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/15_closedicon.md
deleted file mode 100644
index 668abbdb..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/15_closedicon.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: closedIcon
-name: options-closedicon
----
-
-A character or symbol to display on closed nodes. The default is '&amp;#x25ba;' (&#x25ba;)
-
-{% highlight js %}
-$('#tree1').tree({
- closedIcon: '+'
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/16_data.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/16_data.md
deleted file mode 100644
index 12588779..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/16_data.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-title: data
-name: options-data
----
-
-Define the contents of the tree. The data is a nested array of objects. This option is required.
-
-It looks like this:
-
-{% highlight js %}
-var data = [
- {
- name: 'node1',
- children: [
- { name: 'child1' },
- { name: 'child2' }
- ]
- },
- {
- name: 'node2',
- children: [
- { name: 'child3' }
- ]
- }
-];
-$('#tree1').tree({data: data});
-{% endhighlight %}
-
-* **name**: name of a node (required)
- * Note that you can also use `label` instead of `name`
-* **children**: array of child nodes (optional)
-* **id**: int or string (optional)
- * Must be an int or a string
- * Must be unique in the tree
- * The `id` property is required if you use the multiple selection feature
-
-You can also include other data in the objects. You can later access this data.
-
-For example, to add an id:
-
-{% highlight js %}
-{
- name: 'node1',
- id: 1
-}
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/17_datafilter.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/17_datafilter.md
deleted file mode 100644
index 90316af2..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/17_datafilter.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-title: dataFilter
-name: options-datafilter
----
-
-Process the tree data from the server.
-
-{% highlight js %}
-$('#tree1').tree({
- dataUrl: '/my/data/',
- dataFilter: function(data) {
- // Example:
- // the server puts the tree data in 'my_tree_data'
- return data['my_tree_data'];
- }
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/18_data-url.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/18_data-url.md
deleted file mode 100644
index 063c1514..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/18_data-url.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-title: dataUrl
-name: options-data-url
----
-
-Load the node data from this url.
-
-{% highlight js %}
-$('#tree1').tree({
- dataUrl: '/example_data.json'
-});
-{% endhighlight %}
-
-You can also set the **data-url** attribute on the dom element:
-
-{% highlight html %}
-<div id="tree1" data-url="/example_data.json"></div>
-<script>
- $('#tree1').tree();
-</script>
-{% endhighlight %}
-
-You can set additional [jquery ajax options](http://api.jquery.com/jQuery.ajax/) in an object:
-
-{% highlight js %}
-$('#tree1').tree({
- dataUrl: {
- url: '/example_data.json',
- headers: {'abc': 'def'}
- }
-});
-{% endhighlight %}
-
-Or you can use a function:
-
-{% highlight js %}
-$('#tree1').tree({
- dataUrl: function(node) {
- return {
- url: '/example_data.json',
- headers: {'abc': 'def'}
- };
- }
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/19_draganddrop.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/19_draganddrop.md
deleted file mode 100644
index 01d80c15..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/19_draganddrop.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-title: dragAndDrop
-name: options-draganddrop
----
-
-Turn on dragging and dropping of nodes.
-
-* **true**: turn on drag and drop
-* **false (default)**: do not allow drag and drop
-
-Example: turn on drag and drop.
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- dragAndDrop: true
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/20_keyboardsupport.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/20_keyboardsupport.md
deleted file mode 100644
index 46bd004e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/20_keyboardsupport.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-title: keyboardSupport
-name: options-keyboardsupport
----
-
-Enable or disable keyboard support. Default is enabled.
-
-Example: disable keyboard support.
-
-{% highlight js %}
-$('#tree1').tree({
- keyboardSupport: false
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/21_oncanmove.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/21_oncanmove.md
deleted file mode 100644
index ee19cf06..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/21_oncanmove.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: onCanMove
-name: options-oncanmove
----
-
-You can override this function to determine if a node can be moved.
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- dragAndDrop: true,
- onCanMove: function(node) {
- if (! node.parent.parent) {
- // Example: Cannot move root node
- return false;
- }
- else {
- return true;
- }
- }
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/22_oncanmoveto.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/22_oncanmoveto.md
deleted file mode 100644
index abd68c1e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/22_oncanmoveto.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: onCanMoveTo
-name: options-oncanmoveto
----
-
-You can override this function to determine if a node can be moved to a certain position.
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- dragAndDrop: true,
- onCanMoveTo: function(moved_node, target_node, position) {
- if (target_node.is_menu) {
- // Example: can move inside menu, not before or after
- return (position == 'inside');
- }
- else {
- return true;
- }
- }
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/23_oncanselectnode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/23_oncanselectnode.md
deleted file mode 100644
index 5bf15a25..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/23_oncanselectnode.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-title: onCanSelectNode
-name: options-oncanselectnode
----
-
-You can set a function to override if a node can be selected. The function gets a node as parameter, and must return true or false.
-
-For this to work, the option 'selectable' must be 'true'.
-
-{% highlight js %}
-// Example: nodes with children cannot be selected
-$('#tree1').tree({
- data: data,
- selectable: true
- onCanSelectNode: function(node) {
- if (node.children.length == 0) {
- // Nodes without children can be selected
- return true;
- }
- else {
- // Nodes with children cannot be selected
- return false;
- }
- }
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md
deleted file mode 100644
index 3008f9d8..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-title: onCreateLi
-name: options-oncreateli
----
-
-The function is called for each created node. You can use this to define extra html.
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- onCreateLi: function(node, $li) {
- // Add 'icon' span before title
- $li.find('.jqtree-title').before('<span class="icon"></span>');
- }
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md
deleted file mode 100644
index fc904d6f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-title: onIsMoveHandle
-name: options-onismovehandle
----
-
-You can override this function to determine if a dom element can be used to move a node.
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- onIsMoveHandle: function($element) {
- // Only dom elements with 'jqtree-title' class can be used
- // as move handle.
- return ($element.is('.jqtree-title'));
- }
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/26_onloadfailed.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/26_onloadfailed.md
deleted file mode 100644
index 42fe248d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/26_onloadfailed.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: onLoadFailed
-name: options-onloadfailed
----
-
-When loading the data by ajax fails, then the option **onLoadFailed** is called.
-
-{% highlight js %}
-$('#tree1').tree({
- dataUrl: '/my/data/',
- onLoadFailed: function(response) {
- //
- }
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md
deleted file mode 100644
index db954f8c..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/27_onloading.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: onLoading
-name: options-onloading
----
-
-The onLoading parameter is called when the tree data is loading. This gives us the opportunity to display a loading signal.
-
-Callback looks like this:
-
-```js
-function (is_loading, node, $el)
-```
-
-* **is_loading**: boolean
- * true: data is loading
- * false: data is loaded
-* **node**:
- * Node: if a node is loading
- * null: if the tree is loading
-* **$el**:
- * if a node is loading this is the `li` element
- * if the tree is loading is the `ul` element of the whole tree
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/28_openedicon.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/28_openedicon.md
deleted file mode 100644
index f3e8c7a9..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/28_openedicon.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: openedIcon
-name: options-openedicon
----
-
-A character or symbol to display on opened nodes. The default is '&amp;#x25bc;' (&#x25bc;)
-
-{% highlight js %}
-$('#tree1').tree({
- openedIcon: '-'
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/29_openfolderdelay.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/29_openfolderdelay.md
deleted file mode 100644
index c47ad958..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/29_openfolderdelay.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-title: openFolderDelay
-name: options-openfolderdelay
----
-
-Set the delay for opening a folder during drag-and-drop. The delay is in milliseconds. The default is 500 ms.
-
-{% highlight js %}
-$('#tree1').tree({
- dataUrl: '/my/data/',
- openFolderDelay: 1000
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/30_rtl.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/30_rtl.md
deleted file mode 100644
index f9b20df1..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/30_rtl.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-title: rtl
-name: options-rtl
----
-
-Set right-to-left support (true / false). Default is false.
-
-{% highlight js %}
-$('#tree1').tree({
- rtl: true
-});
-{% endhighlight %}
-
-You can also set the option using ``data-rtl``.
-
-{% highlight html %}
- <div id="tree1" data-url="/data" data-rtl></div>
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/31_savestate.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/31_savestate.md
deleted file mode 100644
index 3667129e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/31_savestate.md
+++ /dev/null
@@ -1,42 +0,0 @@
----
-title: saveState
-name: options-savestate
----
-
-Save and restore the state of the tree automatically. Saves in a cookie which nodes are opened and selected.
-
-The state is saved in localstorage. In browsers that do not support localstorage, the state is saved in a cookie.
-For this to work, please include [jquery-cookie](https://github.com/carhartl/jquery-cookie).
-
-For this to work, you should give each node in the tree data an id field:
-
-{% highlight js %}
-{
- name: 'node1',
- id: 123,
- childen: [
- name: 'child1',
- id: 124
- ]
-}
-{% endhighlight %}
-
-* **true**: save and restore state in a cookie
-* **false (default)**: do nothing
-* **string**: save state and use this name to store in a cookie
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- saveState: true
-});
-{% endhighlight %}
-
-Example: save state in key 'tree1':
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- saveState: 'tree1'
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/32_selectable.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/32_selectable.md
deleted file mode 100644
index 18dd4d31..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/32_selectable.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-title: selectable
-name: options-selectable
----
-
-Turn on selection of nodes.
-
-* **true (default)**: turn on selection of nodes
-* **false**: turn off selection of nodes
-
-Example: turn off selection of nodes.
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- selectable: false
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/33_slide.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/33_slide.md
deleted file mode 100644
index 94a1b381..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/33_slide.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: slide
-name: options-slide
----
-
-Turn slide animation on or off. Default is true.
-
-{% highlight js %}
-$('#tree1').tree({
- slide: false
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/34_usecontextmenu.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/34_usecontextmenu.md
deleted file mode 100644
index 71137b03..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/34_usecontextmenu.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-title: useContextMenu
-name: usecontextmenu
----
-
-Bind the context menu event (true/false).
-
-**true** (default)
-
-A right mouse-click will trigger a [tree.contextmenu](#event-tree-contextmenu) event. This overrides the native contextmenu of the browser.
-
-**false**
-
-A right mouse-click will trigger the native contextmenu of the browser.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/35_functions.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/35_functions.md
deleted file mode 100644
index 6ee8428d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/35_functions.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-title: Functions
-name: functions
-section: true
----
-
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/36_addnodeafter.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/36_addnodeafter.md
deleted file mode 100644
index a5abd263..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/36_addnodeafter.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: addNodeAfter
-name: functions-addnodeafter
----
-
-**function addNodeAfter(new_node_info, existing_node);**
-
-Add a new node after this existing node.
-
-{% highlight js %}
-var node1 = $('#tree1', 'getNodeByName', 'node1');
-$('#tree1').tree(
- 'addNodeAfter',
- {
- name: 'new_node',
- id: 456
- },
- node1
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md
deleted file mode 100644
index 541af68c..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/36a_addparentnode.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: addParentNode
-name: functions-addparentnode
----
-
-**function addParentNode(new_node_info, existing_node);**
-
-Add a new node as parent of this existing node.
-
-{% highlight js %}
-var node1 = $('#tree1', 'getNodeByName', 'node1');
-$('#tree1').tree(
- 'addParentNode',
- {
- name: 'new_parent',
- id: 456
- },
- node1
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/37_addnodebefore.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/37_addnodebefore.md
deleted file mode 100644
index 1451754d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/37_addnodebefore.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-title: addNodeBefore
-name: functions-addnodebefore
----
-
-**function addNodeBefore(new_node_info, existing_node);**
-
-Add a new node before this existing node.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/38_appendnode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/38_appendnode.md
deleted file mode 100644
index 2eeea284..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/38_appendnode.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-title: appendNode
-name: functions-appendnode
----
-
-**function appendNode(new_node_info, parent_node);**
-
-Add a node to this parent node. If **parent_node** is empty, then the new node becomes a root node.
-
-{% highlight js %}
-var parent_node = $tree.tree('getNodeById', 123);
-
-$tree.tree(
- 'appendNode',
- {
- name: 'new_node',
- id: 456
- },
- parent_node
-);
-{% endhighlight %}
-
-To add a root node, leave *parent_node* empty:
-
-{% highlight js %}
-$tree.tree(
- 'appendNode',
- {
- name: 'new_node',
- id: 456
- }
-);
-{% endhighlight %}
-
-It's also possible to append a subtree:
-
-{% highlight js %}
-$tree.tree(
- 'appendNode',
- {
- name: 'new_node',
- id: 456,
- children: [
- { name: 'child1', id: 457 },
- { name: 'child2', id: 458 }
- ]
- },
- parent_node
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/39_closenode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/39_closenode.md
deleted file mode 100644
index 0e90ae5d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/39_closenode.md
+++ /dev/null
@@ -1,23 +0,0 @@
----
-title: closeNode
-name: functions-closenode
----
-
-**function closeNode(node);**
-
-**function closeNode(node, slide);**
-
-Close this node. The node must have child nodes.
-
-Parameter **slide**: close the node using a slide animation (default is true).
-
-{% highlight js %}
-var node = $tree.tree('getNodeById', 123);
-$tree.tree('closeNode', node);
-{% endhighlight %}
-
-To close the node without the slide animation, call with **slide** parameter is false.
-
-{% highlight js %}
-$tree.tree('closeNode', node, false);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/40_destroy.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/40_destroy.md
deleted file mode 100644
index 54c12d21..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/40_destroy.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: destroy
-name: functions-destroy
----
-
-**function destroy();**
-
-Destroy the tree. This removes the dom elements and event bindings.
-
-{% highlight js %}
-$('#tree1').tree('destroy');
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md
deleted file mode 100644
index e6519192..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/41_getnodebycallback.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: getNodeByCallback
-name: functions-getnodebycallback
----
-
-**function getNodeByCallback(callback);**
-
-Get a tree node using a callback. The callback should return true if the node is found.
-
-{% highlight js %}
-var node = $('#tree1').tree(
- 'getNodeByCallback',
- function(node) {
- if (node.name == 'abc') {
- // Node is found; return true
- return true;
- }
- else {
- // Node not found; continue searching
- return false;
- }
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/42_getnodebyid.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/42_getnodebyid.md
deleted file mode 100644
index 8cc4b444..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/42_getnodebyid.md
+++ /dev/null
@@ -1,21 +0,0 @@
----
-title: getNodeById
-name: functions-getnodebyid
----
-
-**function getNodeById(id);**
-
-Get a tree node by node-id. This assumes that you have given the nodes in the data a unique id.
-
-{% highlight js %}
-var $tree = $('#tree1');
-var data = [
- { id: 10, name: 'n1' },
- { id: 11, name: 'n2' }
-];
-
-$tree.tree({
- data: data
-});
-var node = $tree.tree('getNodeById', 10);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/43_getnodebyhtmlelement.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/43_getnodebyhtmlelement.md
deleted file mode 100644
index 926f90a5..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/43_getnodebyhtmlelement.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-title: getNodeByHtmlElement
-name: functions-getnodebyhtmlelement
----
-
-**function getNodeByHtmlElement(html_element);**
-
-Get a tree node by an html element. The html element should be:
-
-* The `li` element for the node
-* Or, an element inside the `li`. For example the `span` for the title.
-
-{% highlight js %}
-var element = document.querySelector('#tree1 .jqtree-title');
-
-var node = $('#tree1').tree('getNodeByHtmlElement', element);
-
-console.log(node);
-{% endhighlight %}
-
-The element can also be a jquery element:
-
-{% highlight js %}
-var $element = $('#tree1 .jqtree-title');
-
-var node = $('#tree1').tree('getNodeByHtmlElement', $element);
-
-console.log(node);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/44_getselectednode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/44_getselectednode.md
deleted file mode 100644
index d63bd9d4..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/44_getselectednode.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: getSelectedNode
-name: functions-getselectednode
----
-
-Get the selected node. Returns the row data or false.
-
-{% highlight js %}
-var node = $tree.tree('getSelectedNode');
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md
deleted file mode 100644
index 04e0684c..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-title: getState
-name: functions-getstate
----
-
-Get the state of tree: which nodes are open and which one is selected?
-
-Returns a javascript object that contains the ids of open nodes and selected nodes:
-
-{% highlight js %}
-{
- open_nodes: [1, 2, 3],
- selected_node: [4, 5, 6]
-}
-{% endhighlight %}
-
-If you want to use this function, then your tree data should include an **id** property for each node.
-
-You can use this function in combination with [setState](#functions-setstate) to save and restore the tree state.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/46_gettree.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/46_gettree.md
deleted file mode 100644
index db898b0e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/46_gettree.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: getTree
-name: functions-gettree
----
-
-**function getTree();**
-
-Get the root node of the tree.
-
-{% highlight js %}
-var tree_data = $('#tree1').tree('getTree');
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md
deleted file mode 100644
index fb010961..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-title: loadData
-name: functions-loaddata
----
-
-**function loadData(data);**
-
-**function loadData(data, parent_node);**
-
-Load data in the tree. The data is array of nodes.
-
-You can **replace the whole tree** or you can **load a subtree**.
-
-{% highlight js %}
-// Assuming the tree exists
-var new_data = [
- {
- name: 'node1',
- children: [
- { name: 'child1' },
- { name: 'child2' }
- ]
- },
- {
- name: 'node2',
- children: [
- { name: 'child3' }
- ]
- }
-];
-$('#tree1').tree('loadData', new_data);
-{% endhighlight %}
-
-Load a subtree:
-
-{% highlight js %}
-// Get node by id (this assumes that the nodes have an id)
-var node = $('#tree1').tree('getNodeById', 100);
-
-// Add new nodes
-var data = [
- { name: 'new node' },
- { name: 'another new node' }
-];
-$('#tree1').tree('loadData', data, node);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/48_loaddatafromurl.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/48_loaddatafromurl.md
deleted file mode 100644
index 3a005f31..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/48_loaddatafromurl.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-title: loadDataFromUrl
-name: functions-loaddatafromurl
----
-
-**function loadDataFromUrl(url);**
-
-**function loadDataFromUrl(url, parent_node);**
-
-**function loadDataFromUrl(parent_node);**
-
-Load data in the tree from an url using ajax. You can **replace the whole tree** or you can **load a subtree**.
-
-{% highlight js %}
-$('#tree1').tree('loadDataFromUrl', '/category/tree/');
-{% endhighlight %}
-
-Load a subtree:
-
-{% highlight js %}
-var node = $('#tree1').tree('getNodeById', 123);
-$('#tree1').tree('loadDataFromUrl', '/category/tree/123', node);
-{% endhighlight %}
-
-You can also omit the url. In this case jqTree will generate a url for you. This is very useful if you use the load-on-demand feature:
-
-{% highlight js %}
-var $tree = $('#tree1');
-
-$tree.tree({
- dataUrl: '/my_data/'
-});
-
-var node = $tree.tree('getNodeById', 456);
-
-// jqTree will load data from /my_data/?node=456
-$tree.tree('loadDataFromUrl', node);
-{% endhighlight %}
-
-You can also add an **on_finished** callback parameter that will be called when the data is loaded:
-
-**function loadDataFromUrl(url, parent_node, on_finished);**
-
-**function loadDataFromUrl(parent_node, on_finished);**
-
-{% highlight js %}
-$('#tree1').tree(
- 'loadDataFromUrl',
- '/category/tree/123',
- null,
- function() {
- alert('data is loaded');
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/49_movedown.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/49_movedown.md
deleted file mode 100644
index 41cd3121..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/49_movedown.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-title: moveDown
-name: functions-movedown
----
-
-**function moveDown()**
-
-Select the next node. This does the same as the *down* key. \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/50_movenode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/50_movenode.md
deleted file mode 100644
index c4697ec2..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/50_movenode.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: moveNode
-name: functions-movenode
----
-
-**function moveNode(node, target_node, position);**
-
-Move a node. Position can be 'before', 'after' or 'inside'.
-
-{% highlight js %}
-var node = $tree.tree('getNodeById', 1);
-var target_node = $tree.tree('getNodeById', 2);
-
-$tree.tree('moveNode', node, target_node, 'after');
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/51_moveup.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/51_moveup.md
deleted file mode 100644
index d20cfa9a..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/51_moveup.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-title: moveUp
-name: functions-moveup
----
-
-**function moveUp()**
-
-Select the previous node. This does the same as the *up* key. \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/52_opennode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/52_opennode.md
deleted file mode 100644
index 5c9a6c19..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/52_opennode.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-title: openNode
-name: functions-opennode
----
-
-**function openNode(node);**
-
-**function openNode(node, slide);**
-
-**function openNode(node, on_finished);**
-
-**function openNode(node, slide, on_finished);**
-
-Open this node. The node must have child nodes.
-
-Parameter **slide (optional)**: open the node using a slide animation (default is true).
-Parameter **on_finished (optional)**: callback when the node is opened; this also works for nodes that are loaded lazily
-
-{% highlight js %}
-// create tree
-var $tree = $('#tree1');
-$tree.tree({
- data: data
-});
-
-var node = $tree.tree('getNodeById', 123);
-$tree.tree('openNode', node);
-{% endhighlight %}
-
-To open the node without the slide animation, call with **slide** parameter is false.
-
-{% highlight js %}
-$tree.tree('openNode', node, false);
-{% endhighlight %}
-
-Example with `on_finished` callback:
-
-{% highlight js %}
-function handleOpened(node) {
- console.log('openende node', node.name);
-}
-
-$tree.tree('openNode', node, handleOpened);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/53_reload.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/53_reload.md
deleted file mode 100644
index 7be6e8ac..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/53_reload.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: reload
-name: functions-reload
----
-
-**function reload();**
-
-**function reload(on_finished);**
-
-Reload data from the server.
-
-* Call `on_finished` when the data is loaded.
-
-{% highlight js %}
-$('#tree1').tree('reload');
-{% endhighlight %}
-
-{% highlight js %}
-$('#tree1').tree('reload', function() {
- console.log('data is loaded');
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/54_removenode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/54_removenode.md
deleted file mode 100644
index 8bfe8fd1..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/54_removenode.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: removeNode
-name: functions-removenode
----
-
-**function removeNode(node);**
-
-Remove node from the tree.
-
-{% highlight js %}
-$('#tree1').tree('removeNode', node);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md
deleted file mode 100644
index a3ab45e7..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: selectNode
-name: functions-selectnode
----
-
-**function selectNode(node);**
-
-**function selectNode(null);**
-
-Select this node.
-
-You can deselect the current node by calling **selectNode(null)**.
-
-{% highlight js %}
-// create tree
-var $tree = $('#tree1');
-$tree.tree({
- data: data,
- selectable: true
-});
-
-var node = $tree.tree('getNodeById', 123);
-$tree.tree('selectNode', node);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/56_scrolltonode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/56_scrolltonode.md
deleted file mode 100644
index e9ac2dcc..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/56_scrolltonode.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-title: scrollToNode
-name: functions-scrolltonode
----
-
-**function scrollToNode(node);**
-
-Scroll to this node. This is useful if the tree is in a container div and is scrollable.
-
-{% highlight js %}
-var node = $tree.tree('getNodeById', 1);
-$tree.tree('scrollToNode', node);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/57_setoption.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/57_setoption.md
deleted file mode 100644
index f49608c0..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/57_setoption.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: setOption
-name: functions-setoption
----
-
-**function setOption(option, value);**
-
-Set a tree option. These are the same options that you can set when creating the tree.
-
-{% highlight js %}
-$('#tree1').tree('setOption', 'keyboardSupport', false);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/58_setstate.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/58_setstate.md
deleted file mode 100644
index 9c68cfa6..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/58_setstate.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-title: setState
-name: functions-setstate
----
-
-Set the state of the tree: which nodes are open and which one is selected?
-
-See [getState](#functions-getstate) for more information.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/59_toggle.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/59_toggle.md
deleted file mode 100644
index 3cf38939..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/59_toggle.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-title: toggle
-name: functions-toggle
----
-
-**function toggle(node);**
-
-Open or close the tree node.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/60_tojson.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/60_tojson.md
deleted file mode 100644
index 55da1d7b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/60_tojson.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-title: toJson
-name: functions-tojson
----
-
-**function toJson();**
-
-Get the tree data as json.
-
-{% highlight js %}
-// Assuming the tree exists
-$('#tree1').tree('toJson');
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/61_updatenode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/61_updatenode.md
deleted file mode 100644
index 49005ed8..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/61_updatenode.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-title: updateNode
-name: functions-updatenode
----
-
-**function updateNode(node, name);**
-
-**function updateNode(node, data);**
-
-Update the title of a node. You can also update the data.
-
-Update the name:
-
-{% highlight js %}
-var node = $tree.tree('getNodeById', 123);
-
-$tree.tree('updateNode', node, 'new name');
-{% endhighlight %}
-
-Update the data (including the name)
-
-{% highlight js %}
-var node = $tree.tree('getNodeById', 123);
-
-$tree.tree(
- 'updateNode',
- node,
- {
- name: 'new name',
- id: 1,
- other_property: 'abc'
- }
-);
-{% endhighlight %}
-
-It is also possible to update the children. Note that this removes the existing children:
-
-{% highlight js %}
-$tree.tree(
- 'updateNode',
- node,
- {
- name: 'new name',
- id: 1,
- children: [
- { name: 'child1', id: 2 }
- ]
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/62_events.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/62_events.md
deleted file mode 100644
index 065e4cd5..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/62_events.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-title: Events
-name: events
-section: true
----
-
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/63_tree-click.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/63_tree-click.md
deleted file mode 100644
index acd430dc..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/63_tree-click.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-title: tree.click
-name: event-tree-click
----
-
-Triggered when a tree node is clicked. The event contains the following properties:
-
-* **node**: the node that is clicked on
-* **click_event**: the original click event
-
-{% highlight js %}
-// create tree
-$('#tree1').tree({
- data: data
-});
-
-// bind 'tree.click' event
-$('#tree1').bind(
- 'tree.click',
- function(event) {
- // The clicked node is 'event.node'
- var node = event.node;
- alert(node.name);
- }
-);
-{% endhighlight %}
-
-The default action is to select the node. You can prevent the selection by calling **preventDefault**:
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.click',
- function(event) {
- event.preventDefault();
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/64_tree-close.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/64_tree-close.md
deleted file mode 100644
index 1dd599cf..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/64_tree-close.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: tree.close
-name: event-tree-close
----
-
-Called when a node is closed.
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.close',
- function(e) {
- console.log(e.node);
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/65_tree-contextmenu.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/65_tree-contextmenu.md
deleted file mode 100644
index 9535c6cb..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/65_tree-contextmenu.md
+++ /dev/null
@@ -1,21 +0,0 @@
----
-title: tree.contextmenu
-name: event-tree-contextmenu
----
-
-Triggered when the user right-clicks a tree node. The event contains the following properties:
-
-* **node**: the node that is clicked on
-* **click_event**: the original click event
-
-{% highlight js %}
-// bind 'tree.contextmenu' event
-$('#tree1').bind(
- 'tree.contextmenu',
- function(event) {
- // The clicked node is 'event.node'
- var node = event.node;
- alert(node.name);
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/66_tree-dblclick.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/66_tree-dblclick.md
deleted file mode 100644
index 97768a38..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/66_tree-dblclick.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-title: tree.dblclick
-name: event-tree-dblclick
----
-
-The **tree.dblclick** is fired when a tree node is double-clicked. The event contains the following properties:
-
-* **node**: the node that is clicked on
-* **click_event**: the original click event
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.dblclick',
- function(event) {
- // event.node is the clicked node
- console.log(event.node);
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/67_tree-init.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/67_tree-init.md
deleted file mode 100644
index ca1acc53..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/67_tree-init.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: tree.init
-name: event-tree-init
----
-
-Called when the tree is initialized. This is particularly useful when the data is loaded from the server.
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.init',
- function() {
- // initializing code
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/68_tree-move.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/68_tree-move.md
deleted file mode 100644
index 897d65be..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/68_tree-move.md
+++ /dev/null
@@ -1,73 +0,0 @@
----
-title: tree.move
-name: event-tree-move
----
-
-Triggered when the user moves a node.
-
-Note that this event is called **before** the node is moved. See note about `do_move` below.
-
-Event.move_info contains:
-
-* moved_node
-* target_node
-* position: (before, after or inside)
-* previous_parent
-
-{% highlight js %}
-$('#tree1').tree({
- data: data,
- dragAndDrop: true
-});
-
-$('#tree1').bind(
- 'tree.move',
- function(event) {
- console.log('moved_node', event.move_info.moved_node);
- console.log('target_node', event.move_info.target_node);
- console.log('position', event.move_info.position);
- console.log('previous_parent', event.move_info.previous_parent);
- }
-);
-{% endhighlight %}
-
-You can prevent the move by calling **event.preventDefault()**
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.move',
- function(event) {
- event.preventDefault();
- }
-);
-{% endhighlight %}
-
-You can later call **event.move_info.move_info.do_move()** to move the node. This way you can ask the user before moving the node:
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.move',
- function(event) {
- event.preventDefault();
-
- if (confirm('Really move?')) {
- event.move_info.do_move();
- }
- }
-);
-{% endhighlight %}
-
-Note that if you want to serialise the tree, for example to POST back to a server, you need to let tree complete the move first:
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.move',
- function(event)
- {
- event.preventDefault();
- // do the move first, and _then_ POST back.
- event.move_info.do_move();
- $.post('your_url', {tree: $(this).tree('toJson')});
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/69_tree-open.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/69_tree-open.md
deleted file mode 100644
index 2489510e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/69_tree-open.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: tree.open
-name: event-tree-open
----
-
-Called when a node is opened.
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.open',
- function(e) {
- console.log(e.node);
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/70_tree-select.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/70_tree-select.md
deleted file mode 100644
index 4d62828a..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/70_tree-select.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-title: tree.select
-name: event-tree-select
----
-
-Triggered when a tree node is selected or deselected.
-
-If a node is selected, then **event.node** contains the selected node.
-
-If a node is deselected, then the **event.node** property is null.
-
-{% highlight js %}
-$('#tree1').bind(
- 'tree.select',
- function(event) {
- if (event.node) {
- // node was selected
- var node = event.node;
- alert(node.name);
- }
- else {
- // event.node is null
- // a node was deselected
- // e.previous_node contains the deselected node
- }
- }
-);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/71_multiple-selection.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/71_multiple-selection.md
deleted file mode 100644
index 15221640..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/71_multiple-selection.md
+++ /dev/null
@@ -1,9 +0,0 @@
----
-title: Multiple selection
-name: multiple-selection
-section: true
----
-
-Jqtree has some functions that can help you to implement multiple selection. See [Example 8 - multiple select](examples/08_multiple_select).
-
-In order for multiple selection to work, you must give the nodes an id.
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/72_add-to-selection.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/72_add-to-selection.md
deleted file mode 100644
index 646fba1a..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/72_add-to-selection.md
+++ /dev/null
@@ -1,11 +0,0 @@
----
-title: addToSelection
-name: multiple-selection-add-to-selection
----
-
-Add this node to the selection
-
-{% highlight js %}
-var node = $('#tree1').tree('getNodeById', 123);
-$('#tree1').tree('addToSelection', node);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/73_get-selected-nodes.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/73_get-selected-nodes.md
deleted file mode 100644
index 563d0683..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/73_get-selected-nodes.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: getSelectedNodes
-name: multiple-selection-get-selected-nodes
----
-
-Return a list of selected nodes.
-
-{% highlight js %}
-var nodes = $('#tree1').tree('getSelectedNodes');
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/74_is-node-selected.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/74_is-node-selected.md
deleted file mode 100644
index 7c0d9a32..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/74_is-node-selected.md
+++ /dev/null
@@ -1,11 +0,0 @@
----
-title: isNodeSelected
-name: multiple-selection-is-node-selected
----
-
-Return if this node is selected.
-
-{% highlight js %}
-var node = $('#tree1').tree('getNodeById', 123);
-var is_selected = $('#tree1').tree('isNodeSelected', node);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/75_remove-from-selection.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/75_remove-from-selection.md
deleted file mode 100644
index 8b311074..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/75_remove-from-selection.md
+++ /dev/null
@@ -1,11 +0,0 @@
----
-title: removeFromSelection
-name: multiple-selection-remove-from-selection
----
-
-Remove this node from the selection.
-
-{% highlight js %}
-var node = $('#tree1').tree('getNodeById', 123);
-$('#tree1').tree('removeFromSelection', node);
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/76_node-functions.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/76_node-functions.md
deleted file mode 100644
index e4ebf7c9..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/76_node-functions.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-title: Node functions
-name: node-functions
-section: true
----
-
-You can access a node using for example [getNodeById](#functions-getnodebyid) function:
-
-{% highlight js %}
-var node = $('#tree1').tree('getNodeById', 123);
-{% endhighlight %}
-
-The Node object has the following properties and functions:
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/77_children.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/77_children.md
deleted file mode 100644
index f04b357b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/77_children.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: children
-name: node-functions-children
----
-
-You can access the children of a node using the **children** property.
-
-{% highlight js %}
-for (var i=0; i < node.children.length; i++) {
- var child = node.children[i];
-}
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/78_getdata.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/78_getdata.md
deleted file mode 100644
index dff9020c..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/78_getdata.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-title: getData
-name: node-functions-getdata
----
-
-**function getData(include_parent = false);**
-
-Get the subtree of this node.
-
-**include_parent**
-
-* **true**: include node and children
-* **false**: only include children (default)
-
-{% highlight js %}
-var data = node.getData();
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md
deleted file mode 100644
index 183e63ca..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-title: getLevel
-name: node-functions-getlevel
----
-
-Get the level of a node. The level is distance of a node to the root node.
-
-{% highlight js %}
-var node = $('#tree1').tree('getNodeById', 123);
-
-// result is e.g. 2
-var level = node.getLevel();
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/80_getnextnode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/80_getnextnode.md
deleted file mode 100644
index 4364ad93..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/80_getnextnode.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: getNextNode
-name: node-functions-getnextnode
----
-
-Get the next node in the tree. Does the same as using the *down* key.
-
-Returns a node or null.
-
-{% highlight js %}
-var node = node.getNextNode();
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/81_getnextsibling.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/81_getnextsibling.md
deleted file mode 100644
index 03ff2e26..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/81_getnextsibling.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: getNextSibling
-name: node-functions-getnextsibling
----
-
-Get the next sibling of this node. Returns a node or null.
-
-{% highlight js %}
-var node = node.getNextSibling();
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/82_getpreviousnode.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/82_getpreviousnode.md
deleted file mode 100644
index 3560ff9b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/82_getpreviousnode.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: getPreviousNode
-name: node-functions-getpreviousnode
----
-
-Get the previous node in the tree. Does the same as using the *up* key.
-
-Returns a node or null.
-
-{% highlight js %}
-var node = node.getPreviousNode();
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/83_getprevioussibling.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/83_getprevioussibling.md
deleted file mode 100644
index 4b417344..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/83_getprevioussibling.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: getPreviousSibling
-name: node-functions-getprevioussibling
----
-
-Get the previous sibling of this node. Returns a node or null.
-
-{% highlight js %}
-var node = node.getPreviousSibling();
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/84_parent.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/84_parent.md
deleted file mode 100644
index 83c635c1..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/84_parent.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: parent
-name: node-functions-parent
----
-
-You can access the parent of a node using the **parent** property.
-
-{% highlight js %}
-var parent_node = node.parent;
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/insert.py b/ecomp-portal-FE/client/bower_components/jqTree/_entries/insert.py
deleted file mode 100644
index d72ef4b9..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/insert.py
+++ /dev/null
@@ -1,46 +0,0 @@
-import os
-import argparse
-import re
-
-
-parser = argparse.ArgumentParser()
-parser.add_argument('index', type=int)
-
-args = parser.parse_args()
-
-insert_index = args.index
-
-filenames = os.listdir('.')
-
-file_tuples = []
-
-re_file = re.compile(r'^(\d\d)_(.*)$')
-
-for filename in filenames:
- m = re_file.match(filename)
-
- if m:
- i = int(m.groups()[0])
-
- t = i, filename
-
- file_tuples.append(t)
-
-file_tuples = sorted(file_tuples, key=lambda t: t[0])
-
-for i, t in enumerate(file_tuples):
- if i + 1 != t[0]:
- raise Exception('Expected index %s for %s' % (i, t[1]))
-
-for i in range(insert_index - 1, len(file_tuples)):
- old_filename = file_tuples[i][1]
-
- m = re_file.match(old_filename)
-
- filepart = m.groups()[1]
-
- new_filename = '%02d_%s' % (i + 2, filepart)
-
- print 'rename %s to %s' % (old_filename, new_filename)
-
- os.rename(old_filename, new_filename)
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/renumber.py b/ecomp-portal-FE/client/bower_components/jqTree/_entries/renumber.py
deleted file mode 100644
index 8efb0b6e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/renumber.py
+++ /dev/null
@@ -1,38 +0,0 @@
-import os
-import re
-
-
-filenames = os.listdir('.')
-
-file_tuples = []
-
-re_file = re.compile(r'^(\d\d)_(.*)$')
-
-for filename in filenames:
- m = re_file.match(filename)
-
- if m:
- i = int(m.groups()[0])
-
- t = i, filename
-
- file_tuples.append(t)
-
-file_tuples = sorted(file_tuples, key=lambda t: t[0])
-
-for i, t in enumerate(file_tuples):
- old_filename = file_tuples[i][1]
-
- m = re_file.match(old_filename)
-
- file_index = int(m.groups()[0])
- filepart = m.groups()[1]
-
- expected_index = i + 1
-
- if file_index != expected_index:
- new_filename = '%02d_%s' % (expected_index, filepart)
-
- print 'rename %s to %s' % (old_filename, new_filename)
-
- os.rename(old_filename, new_filename)
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/01_load_json_data.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/01_load_json_data.html
deleted file mode 100644
index c68461c7..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/01_load_json_data.html
+++ /dev/null
@@ -1,47 +0,0 @@
----
-title: Load json data in javascript tree
-layout: page
-js: examples/load_json_data.js
-css: example.css
----
-
-<p id="nav">
- <a href="../../index.html">&laquo; Documentation</a>
- <a href="../02_load_json_data_from_server/" class="next">Example 2 &raquo;</a>
-</p>
-
-<h1>Example 1 - load json data</h1>
-
-<div id="tree1"></div>
-
-<p>
- In this example we load the data using the <strong>data</strong> option.
- As you can see, the data is an array of objects.
-</p>
-<ul>
- <li>The <strong>label</strong> property defines the label of the node.</li>
- <li>The <strong>id</strong> is the unique id of the node.</li>
- <li>The <strong>children</strong> property is an array of nodes.</li>
-</ul>
-
-{% highlight js %}
-var data = [
- {
- name: 'node1', id: 1,
- children: [
- { name: 'child1', id: 2 },
- { name: 'child2', id: 3 }
- ]
- },
- {
- name: 'node2', id: 4,
- children: [
- { name: 'child3', id: 5 }
- ]
- }
-];
-
-$('#tree1').tree({
- data: data
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/02_load_json_data_from_server.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/02_load_json_data_from_server.html
deleted file mode 100644
index 266aad7a..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/02_load_json_data_from_server.html
+++ /dev/null
@@ -1,31 +0,0 @@
----
-title: Load json data from the server in javascript tree
-layout: page
-js: examples/load_json_data_from_server.js
-css: example.css
----
-
-<p id="nav">
- <a href="../01_load_json_data/">&laquo; Example 1</a>
- <a href="../03_drag_and_drop/" class="next">Example 3 &raquo;</a>
-</p>
-
-<h1>Example 2 - load json data from the server</h1>
-
-<div id="tree1" data-url="/example_data/"></div>
-
-<p>
- In this example we load the data from the server using the <strong>data-url</strong> property on the dom element.
-</p>
-
-<h3>html</h3>
-
-{% highlight html %}
-<div id="tree1" data-url="/example_data/"></div>
-{% endhighlight %}
-
-<h3>javascript</h3>
-
-{% highlight js %}
-$('#tree1').tree();
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/03_drag_and_drop.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/03_drag_and_drop.html
deleted file mode 100644
index f000b285..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/03_drag_and_drop.html
+++ /dev/null
@@ -1,44 +0,0 @@
----
-title: Javascript tree with drag and drop
-layout: page
-js: examples/drag_and_drop.js
-css: example.css
----
-
-<p id="nav">
- <a href="../02_load_json_data_from_server/">&laquo; Example 2</a>
- <a href="../04_save_state/" class="next">Example 4 &raquo;</a>
-</p>
-
-<h1>Example 3 - Drag and drop</h1>
-
-<div id="tree1" data-url="/example_data/"></div>
-
-<p>
- Let's add drag-and-drop support by setting the option <strong>dragAndDrop</strong> to true.
- You can now drag tree nodes to another position.
-</p>
-
-<p>
- Other options:
-</p>
-
-<ul>
- <li>The option <strong>autoOpen</strong> is set to 0 to open the first level of nodes.</li>
-</ul>
-
-<h3>html</h3>
-
-{% highlight html %}
-<div id="tree1" data-url="/example_data/"></div>
-{% endhighlight %}
-
-<h3>javascript</h3>
-
-{% highlight js %}
-var $tree = $('#tree1');
-$tree.tree({
- dragAndDrop: true,
- autoOpen: 0
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html
deleted file mode 100644
index 51962f6b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html
+++ /dev/null
@@ -1,52 +0,0 @@
----
-title: Save the state in javascript tree
-layout: page
-js: examples/save_state.js
-css: example.css
----
-
-<p id="nav">
- <a href="../03_drag_and_drop/">&laquo; Example 3</a>
- <a href="../05_load_on_demand/" class="next">Example 5 &raquo;</a>
-</p>
-
-<h1>Example 4 - Save the state</h1>
-
-<div id="tree1" data-url="/example_data/"></div>
-
-<p>
- If you set the option <strong>saveState</strong> to true, then jqtree remembers the tree state after a page reload.
-</p>
-<ul>
- <li>
- JqTree save the state into localStorage.
- If the browser does not support localStorage, then jqTree saves the state in a cookie.
- </li>
- <li>
- You must include the <a href="https://github.com/carhartl/jquery-cookie">jquery-cookie</a> plugin for cookie support.
- </li>
-</ul>
-
-<h3>html</h3>
-
-{% highlight html %}
-<div id="tree1" data-url="/example_data/"></div>
-{% endhighlight %}
-
-<h3>javascript</h3>
-
-{% highlight js %}
-$('#tree1').tree({
- saveState: true
-});
-{% endhighlight %}
-
-<p>
- Giving the <strong>saveState</strong> a string value sets the storage key. The default key is 'tree'.
-</p>
-
-{% highlight js %}
-$('#tree1').tree({
- saveState: 'my-tree'
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/05_load_on_demand.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/05_load_on_demand.html
deleted file mode 100644
index 135036fa..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/05_load_on_demand.html
+++ /dev/null
@@ -1,70 +0,0 @@
----
-title: Load nodes on demand from the server in javascript tree
-layout: page
-js: examples/load_on_demand.js
-css: example.css
----
-
-<p id="nav">
- <a href="../04_save_state/">&laquo; Example 4</a>
- <a href="../06_autoescape/" class="next">Example 6 &raquo;</a>
-</p>
-
-<h1>Example 5 - Load nodes on demand from the server</h1>
-
-
-<div id="tree1" data-url="/nodes/"></div>
-
-<p>
- In this example, the data is loaded on demand from the server.
- <br>
- To use load on demand, you must do the following:
-</p>
-
-<ul>
- <li>
- You must specify a <strong>data url</strong>. In this example this is done using the <strong>data-url</strong>
- html data attribute.
- </li>
- <li>
- Folders that must be loaded on demand must have the <strong>load_on_demand</strong> property. You can specify this in the data.
- </li>
- <li>
- In this example, the url <strong>/nodes/</strong> returns the first level of data (Saurischia and Ornithischians).
- </li>
- <li>
- The url for the load on demand data is <strong>&lt;data-url&gt;?node=&lt;node-id&gt;</strong>. So, for node 23 this would be
- <strong>/nodes/?node=23</strong>.
- </li>
-</ul>
-
-<h3>first level of data</h3>
-
-{% highlight js %}
-[
- {
- "label": "Saurischia",
- "id": 1,
- "load_on_demand": true
- },
- {
- "label": "Ornithischians",
- "id": 23,
- "load_on_demand": true
- }
-]
-{% endhighlight %}
-
-<h3>html</h3>
-
-{% highlight html %}
-<div id="tree1" data-url="/nodes/"></div>
-{% endhighlight %}
-
-<h3>javascript</h3>
-
-{% highlight js %}
-$('#tree1').tree({
- dragAndDrop: true
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/06_autoescape.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/06_autoescape.html
deleted file mode 100644
index 308d56a0..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/06_autoescape.html
+++ /dev/null
@@ -1,47 +0,0 @@
----
-title: Javascript tree with autoescape
-layout: page
-js: examples/autoescape.js
-css: example.css
----
-
-<p id="nav">
- <a href="../05_load_on_demand/">&laquo; Example 5</a>
- <a href="../07_autoscroll/" class="next">Example 7 &raquo;</a>
-</p>
-
-<h1>Example 6 - autoEscape</h1>
-
-<p>
- You can put html in the node titles setting the <a href="../index.html#tree-options-autoescape">autoEscape</a> option to <strong>false</strong>.
-</p>
-
-<div id="tree1"></div>
-
-<h3>html</h3>
-
-{% highlight html %}
-<div id="tree1"></div>
-{% endhighlight %}
-
-<h3>javascript</h3>
-
-{% highlight js %}
-var data = [
- {
- label: 'examples',
- children: [
- { name: '<a href="example1.html">Example 1</a>' },
- { name: '<a href="example2.html">Example 2</a>' },
- '<a href="example3.html">Example </a>'
- ]
- }
-];
-
-// set autoEscape to false
-$('#tree1').tree({
- data: data,
- autoEscape: false,
- autoOpen: true
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/07_autoscroll.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/07_autoscroll.html
deleted file mode 100644
index 1f3aff07..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/07_autoscroll.html
+++ /dev/null
@@ -1,49 +0,0 @@
----
-title: Javascript tree with autoscroll
-layout: page
-js: examples/autoscroll.js
-css: example.css
----
-
-<p id="nav">
- <a href="../06_autoescape/">&laquo; Example 6</a>
- <a href="../08_multiple_select/" class="next">Example 8 &raquo;</a>
-</p>
-
-<h1>Example 7 - autoscroll</h1>
-
-<div id="scroll-container">
- <div id="tree1"></div>
-</div>
-
-<p>
- This is an example of autoscroll. The tree will scroll automatically if you drag an item outside of the tree.
- <br />
- Autoscroll will work automatically. There is no option for it.
-</p>
-
-<h3>html</h3>
-
-{% highlight html %}
-<div id="scroll-container">
- <div id="tree1"></div>
-</div>
-{% endhighlight %}
-
-<h3>css</h3>
-
-{% highlight css %}
-#scroll-container {
- height: 200px;
- overflow-y: scroll;
- user-select: none;
-}
-{% endhighlight %}
-
-<h3>js</h3>
-
-{% highlight js %}
-$('#tree1').tree({
- data: ExampleData.example_data
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/08_multiple_select.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/08_multiple_select.html
deleted file mode 100644
index 5331acf3..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/08_multiple_select.html
+++ /dev/null
@@ -1,72 +0,0 @@
----
-title: Javascript tree with multiple select
-layout: page
-js: examples/multiple_select.js
-css: example.css
----
-
-<p id="nav">
- <a href="../07_autoscroll/">&laquo; Example 7</a>
- <a href="../09_custom_html/" class="next">Example 9 &raquo;</a>
-</p>
-
-<h1>Example 8 - multiple select</h1>
-
-
-<p>
- This example implements multiple select using the following functions and events:
-</p>
-<ul>
- <li>
- <strong>addToSelection</strong>: add node to selections
- </li>
- <li>
- <strong>isNodeSelected</strong>: is this node selected?
- </li>
- <li>
- <strong>removeFromSelection</strong>: unselect this node
- </li>
- <li>
- <strong>tree.click event</strong>: this event is fired when a user clicks on a node
- </li>
-</ul>
-
-<div id="tree1"></div>
-
-<h3>html</h3>
-
-{% highlight html %}
-<div id="tree1" data-url="/nodes/"></div>
-{% endhighlight %}
-
-<h3>javascript</h3>
-
-{% highlight js %}
-$(function() {
- var $tree = $('#tree1');
- $tree.tree({
- data: ExampleData.example_data,
- autoOpen: true
- });
- $tree.bind(
- 'tree.click',
- function(e) {
- // Disable single selection
- e.preventDefault();
-
- var selected_node = e.node;
-
- if (selected_node.id == undefined) {
- console.log('The multiple selection functions require that nodes have an id');
- }
-
- if ($tree.tree('isNodeSelected', selected_node)) {
- $tree.tree('removeFromSelection', selected_node);
- }
- else {
- $tree.tree('addToSelection', selected_node);
- }
- }
- );
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html
deleted file mode 100644
index 4a0cebec..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html
+++ /dev/null
@@ -1,68 +0,0 @@
----
-title: Javascript tree with custom html
-layout: page
-js: examples/custom_html.js
-css: example.css
----
-
-<p id="nav">
- <a href="../08_multiple_select/">&laquo; Example 8</a>
- <a href="../10_icon_buttons/" class="next">Example 10 &raquo;</a>
-</p>
-
-<h1>Example 9 - custom html</h1>
-
-<style>
- .jqtree-tree .edit {
- margin-left: 8px;
- vertical-align: middle;
- }
-</style>
-<p>
- This example uses the <strong>onCreateLi</strong> option to create an edit link next to the tree node.
-</p>
-<div id="tree1"></div>
-
-<h3>html</h3>
-
-{% highlight html %}
-<div id="tree1"></div>
-{% endhighlight %}
-
-<h3>javascript</h3>
-
-{% highlight js %}
-$(function() {
- var $tree = $('#tree1');
-
- $tree.tree({
- data: ExampleData.example_data,
- autoOpen: 1,
- onCreateLi: function(node, $li) {
- // Append a link to the jqtree-element div.
- // The link has an url '#node-[id]' and a data property 'node-id'.
- $li.find('.jqtree-element').append(
- '<a href="#node-'+ node.id +'" class="edit" data-node-id="'+
- node.id +'">edit</a>'
- );
- }
- });
-
- // Handle a click on the edit link
- $tree.on(
- 'click', '.edit',
- function(e) {
- // Get the id from the 'node-id' data property
- var node_id = $(e.target).data('node-id');
-
- // Get the node from the tree
- var node = $tree.tree('getNodeById', node_id);
-
- if (node) {
- // Display the node name
- alert(node.name);
- }
- }
- );
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/10_icon_buttons.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/10_icon_buttons.html
deleted file mode 100644
index a4b23e3f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/10_icon_buttons.html
+++ /dev/null
@@ -1,28 +0,0 @@
----
-title: Use icon toggle buttons
-layout: page
-js: examples/icon_buttons.js
-css: example.css
----
-
-<p id="nav">
- <a href="../09_custom_html/">&laquo; Example 9</a>
- <a href="../11_right-to-left/" class="next">Example 11 &raquo;</a>
-</p>
-
-<h1>Example 10 - use icon toggle buttons</h1>
-
-<p>
- You can use the <strong>openedIcon</strong> and <strong>closedIcon</strong> options to use html for
- the toggle buttons. You can for example use <a href="http://fortawesome.github.io/Font-Awesome/">Fontawesome icons</a>.
-</p>
-<div id="tree1" data-url="/example_data/"></div>
-
-<h3>javascript</h3>
-
-{% highlight js %}
-$('#tree1').tree({
- closedIcon: $('&lt;i class="fa fa-arrow-circle-right"&gt;&lt;/i&gt;'),
- openedIcon: $('&lt;i class="fa fa-arrow-circle-down"&gt;&lt;/i&gt;')
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/11_right-to-left.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/11_right-to-left.html
deleted file mode 100644
index f70d6117..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/11_right-to-left.html
+++ /dev/null
@@ -1,27 +0,0 @@
----
-title: Right-to-left support
-layout: page
-js: examples/right-to-left.js
-css: example.css
----
-
-<p id="nav">
- <a href="../10_icon_buttons/">&laquo; Example 10</a>
- <a href="../12_button_on_right/" class="next">Example 12 &raquo;</a>
-</p>
-
-<h1>Example 11 - right-to-left support</h1>
-
-<p>
- You can display the tree from right to left with the <strong>rtl</strong> option.
-</p>
-
-<div id="tree1" data-url="/example_data/"></div>
-
-<h3>javascript</h3>
-
-{% highlight js %}
-$('#tree1').tree({
- rtl: true
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/12_button_on_right.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/12_button_on_right.html
deleted file mode 100644
index 9e1bbc84..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/12_button_on_right.html
+++ /dev/null
@@ -1,27 +0,0 @@
----
-title: Button on right
-layout: page
-js: examples/button-on-right.js
-css: example.css
----
-
-<p id="nav">
- <a href="../11_right-to-left/">&laquo; Example 11</a>
-</p>
-
-<h1>Example 12 - button on right</h1>
-
-<p>
- You can put the toggle button on the right by setting the <strong>buttonLeft</strong> option to <strong>false</strong>.
-</p>
-
-<div id="tree1" class="block-style" data-url="/example_data/"></div>
-
-<h3>javascript</h3>
-
-{% highlight js %}
-$('#tree1').tree({
- buttonLeft: false,
- autoOpen: 0
-});
-{% endhighlight %}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_layouts/base.html b/ecomp-portal-FE/client/bower_components/jqTree/_layouts/base.html
deleted file mode 100644
index 08ec47d0..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_layouts/base.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="JqTree is a jQuery widget for displaying a tree structure in html">
- <link rel="stylesheet" href="{{ site.baseurl }}/static/bower_components/bootstrap/dist/css/bootstrap.min.css">
- <link rel="stylesheet" href="{{ site.baseurl }}/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
- <link rel="stylesheet" href="{{ site.baseurl }}/jqtree.css">
- <link rel="stylesheet" href="{{ site.baseurl }}/static/bower_components/pygments/css/monokai.css">
- <link rel="stylesheet" href="{{ site.baseurl }}/static/bower_components/fontawesome/css/font-awesome.min.css">
-
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-33742133-1', 'auto');
- ga('require', 'displayfeatures');
- ga('require', 'linkid', 'linkid.js');
- ga('send', 'pageview');
- </script>
-
- {% if page.css %}
- <link rel="stylesheet" href="{{ site.baseurl }}/static/{{ page.css }}">
- {% endif %}
- </head>
-<body>
-{{ content }}
-</body>
-
-<!--[if lt IE 9]>
- <script src="{{ site.baseurl }}/static/bower_components/jquery-1/dist/jquery.min.js"></script>
-<![endif]-->
-<!--[if gte IE 9]><!-->
- <script src="{{ site.baseurl }}/static/bower_components/jquery-2/dist/jquery.min.js"></script>
-<!--<![endif]-->
-<script src="{{ site.baseurl }}/tree.jquery.js"></script>
-<script src="{{ site.baseurl }}/static/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
-<script src="{{ site.baseurl }}/static/bower_components/jquery-mockjax/dist/jquery.mockjax.js"></script>
-<script src="{{ site.baseurl }}/static/example_data.js"></script>
-
-{% if page.js %}
-<script src="{{ site.baseurl }}/static/{{ page.js }}"></script>
-{% endif %}
-
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_layouts/frontpage.html b/ecomp-portal-FE/client/bower_components/jqTree/_layouts/frontpage.html
deleted file mode 100644
index 1bf0f0cc..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_layouts/frontpage.html
+++ /dev/null
@@ -1,20 +0,0 @@
----
-layout: base
----
-
-<div class="jumbotron" id="jqtree">
- <div class="container">
- <h1>jqTree</h1>
- <p>
- <strong class="title">JqTree</strong> is a jQuery widget for displaying a <strong>tree structure</strong> in html
- <br>
- It supports <strong>json data</strong>, loading via <strong>ajax</strong> and <strong>drag-and-drop</strong>.
- </p>
- <p>
- <a class="btn btn-primary" href="https://github.com/mbraak/jqTree/tarball/master">Download jqTree</a>
- </p>
- </div>
-</div>
-<div class="container">
- {{ content }}
-</div>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_layouts/page.html b/ecomp-portal-FE/client/bower_components/jqTree/_layouts/page.html
deleted file mode 100644
index c0d3f2af..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_layouts/page.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-layout: base
----
-
-<div class="container">
-{{ content }}
-</div>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/bower.json b/ecomp-portal-FE/client/bower_components/jqTree/bower.json
deleted file mode 100644
index b20991aa..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/bower.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "jqTree",
- "version": "1.3.7",
- "main": [
- "jqtree.css",
- "jqtree-circle.png",
- "tree.jquery.js"
- ],
- "dependencies": {
- "jquery": ">=1.9"
- },
- "license": "Apache-2.0",
- "ignore": [],
- "keywords": [
- "jquery-plugin",
- "tree"
- ]
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/coffeelint.json b/ecomp-portal-FE/client/bower_components/jqTree/coffeelint.json
deleted file mode 100644
index ea02bd1d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/coffeelint.json
+++ /dev/null
@@ -1,122 +0,0 @@
-{
- "arrow_spacing": {
- "level": "ignore"
- },
- "braces_spacing": {
- "level": "ignore",
- "spaces": 0,
- "empty_object_spaces": 0
- },
- "camel_case_classes": {
- "level": "error"
- },
- "coffeescript_error": {
- "level": "error"
- },
- "colon_assignment_spacing": {
- "level": "ignore",
- "spacing": {
- "left": 0,
- "right": 0
- }
- },
- "cyclomatic_complexity": {
- "value": 10,
- "level": "ignore"
- },
- "duplicate_key": {
- "level": "error"
- },
- "empty_constructor_needs_parens": {
- "level": "ignore"
- },
- "ensure_comprehensions": {
- "level": "warn"
- },
- "indentation": {
- "value": 4,
- "level": "error"
- },
- "line_endings": {
- "level": "ignore",
- "value": "unix"
- },
- "max_line_length": {
- "value": 200,
- "level": "error",
- "limitComments": true
- },
- "missing_fat_arrows": {
- "level": "ignore",
- "is_strict": false
- },
- "newlines_after_classes": {
- "value": 3,
- "level": "ignore"
- },
- "no_backticks": {
- "level": "error"
- },
- "no_debugger": {
- "level": "warn"
- },
- "no_empty_functions": {
- "level": "ignore"
- },
- "no_empty_param_list": {
- "level": "ignore"
- },
- "no_implicit_braces": {
- "level": "ignore",
- "strict": true
- },
- "no_implicit_parens": {
- "strict": true,
- "level": "ignore"
- },
- "no_interpolation_in_single_quotes": {
- "level": "ignore"
- },
- "no_plusplus": {
- "level": "ignore"
- },
- "no_stand_alone_at": {
- "level": "ignore"
- },
- "no_tabs": {
- "level": "error"
- },
- "no_throwing_strings": {
- "level": "error"
- },
- "no_trailing_semicolons": {
- "level": "error"
- },
- "no_trailing_whitespace": {
- "level": "error",
- "allowed_in_comments": false,
- "allowed_in_empty_lines": true
- },
- "no_unnecessary_double_quotes": {
- "level": "ignore"
- },
- "no_unnecessary_fat_arrows": {
- "level": "warn"
- },
- "non_empty_constructor_needs_parens": {
- "level": "ignore"
- },
- "prefer_english_operator": {
- "level": "ignore",
- "doubleNotLevel": "ignore"
- },
- "space_operators": {
- "level": "ignore"
- },
- "spacing_after_comma": {
- "level": "ignore"
- },
- "transform_messes_up_line_numbers": {
- "level": "warn"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/gulpfile.coffee b/ecomp-portal-FE/client/bower_components/jqTree/gulpfile.coffee
deleted file mode 100644
index df5ff580..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/gulpfile.coffee
+++ /dev/null
@@ -1,57 +0,0 @@
-gulp = require 'gulp'
-coffee = require 'gulp-coffee'
-coffeeify = require 'gulp-coffeeify'
-coffeelint = require 'gulp-coffeelint'
-exec = require('child_process').exec
-fs = require 'fs'
-header = require 'gulp-header'
-rename = require 'gulp-rename'
-sass = require 'gulp-sass'
-
-pkg = require './package.json'
-
-
-gulp.task 'jqtree', ->
- banner = fs.readFileSync('src/header.txt')
-
- gulp.src './src/tree.jquery.coffee'
- .pipe coffeeify()
- .pipe header(banner, pkg: pkg)
- .pipe gulp.dest('./')
-
-gulp.task 'lib', ->
- gulp.src './src/*.coffee'
- .pipe coffee(bare: true)
- .pipe gulp.dest('./lib')
-
-gulp.task 'build_test', ->
- gulp.src './src_test/test.js'
- .pipe coffeeify()
- .pipe rename('test_build.js')
- .pipe gulp.dest('./test')
-
-gulp.task 'jekyll', (cb) ->
- exec 'jekyll build', (err, stdout, stderr) ->
- console.log(stdout)
- console.log(stderr)
- cb(err)
-
-gulp.task 'sass', ->
- gulp.src './jqtree.scss'
- .pipe sass(errLogToConsole: true)
- .pipe gulp.dest('./')
-
-gulp.task 'example_sass', ->
- gulp.src './static/example.scss'
- .pipe sass(errLogToConsole: true)
- .pipe gulp.dest('./static')
-
-gulp.task 'lint', ->
- gulp.src './src/*.coffee'
- .pipe coffeelint()
- .pipe coffeelint.reporter()
-
-gulp.task 'watch', ['default'], ->
- gulp.watch ['./src/*.coffee', './src/test.js', './jqtree.scss', './static/example.scss'], ['default']
-
-gulp.task 'default', ['jqtree', 'build_test', 'lib', 'sass', 'example_sass']
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/gulpfile.js b/ecomp-portal-FE/client/bower_components/jqTree/gulpfile.js
deleted file mode 100644
index c7f2b8b8..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/gulpfile.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('coffee-script/register');
-require('./gulpfile.coffee');
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/index.html b/ecomp-portal-FE/client/bower_components/jqTree/index.html
deleted file mode 100644
index 67bf600b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/index.html
+++ /dev/null
@@ -1,48 +0,0 @@
----
-layout: frontpage
-js: documentation.js
-css: documentation.css
----
-
-<div class="row">
- <div class="col-md-3">
- <div class="bs-sidebar hidden-print" id="menu" role="complementary">
- <a href="#jqtree"><h2>jqTree</h2></a>
- <ul class="nav bs-sidenav">
- {% assign level = 0 %}
-
- {% for entry in site.entries %}
- {% if entry.section %}
- {% if level == 1 %}
- </ul>
- </li>
- {% endif %}
- <li>
- <a href="#{{ entry.name }}">{{ entry.title }}</a>
- <ul class="nav">
- {% assign level = 1 %}
- {% else %}
- <li><a href="#{{ entry.name }}">{{ entry.title }}</a></li>
- {% endif %}
- {% endfor %}
-
- {% if level == 1 %}
- </ul>
- </li>
- {% endif %}
- </ul>
- </div>
- </div>
- <div class="col-md-9" id="main">
- {% for entry in site.entries %}
- {% if entry.hide_title %}
- <div id="{{ entry.name }}"></div>
- {% elsif entry.section %}
- <h3 id="{{ entry.name }}">{{ entry.title }}</h3>
- {% else %}
- <h4 id="{{ entry.name }}">{{ entry.title }}</h4>
- {% endif %}
- {{ entry.output }}
- {% endfor %}
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/jqtree-circle.png b/ecomp-portal-FE/client/bower_components/jqTree/jqtree-circle.png
deleted file mode 100644
index ba0e1dd6..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/jqtree-circle.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/jqtree.css b/ecomp-portal-FE/client/bower_components/jqTree/jqtree.css
deleted file mode 100644
index 6d07f164..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/jqtree.css
+++ /dev/null
@@ -1,132 +0,0 @@
-ul.jqtree-tree {
- list-style: none outside;
- margin-left: 0;
- margin-bottom: 0;
- padding: 0; }
- ul.jqtree-tree ul.jqtree_common {
- list-style: none outside;
- margin-left: 12px;
- margin-right: 0;
- margin-bottom: 0;
- padding: 0;
- display: block; }
- ul.jqtree-tree li.jqtree-closed > ul.jqtree_common {
- display: none; }
- ul.jqtree-tree li.jqtree_common {
- clear: both;
- list-style-type: none; }
- ul.jqtree-tree .jqtree-toggler {
- border-bottom: none;
- color: #333;
- text-decoration: none;
- vertical-align: middle; }
- ul.jqtree-tree .jqtree-toggler:hover {
- color: #000;
- text-decoration: none; }
- ul.jqtree-tree .jqtree-toggler.jqtree-closed {
- background-position: 0 0; }
- ul.jqtree-tree .jqtree-toggler.jqtree-toggler-left {
- margin-right: 0.5em; }
- ul.jqtree-tree .jqtree-toggler.jqtree-toggler-right {
- margin-left: 0.5em; }
- ul.jqtree-tree .jqtree-element {
- cursor: pointer;
- position: relative; }
- ul.jqtree-tree .jqtree-title {
- color: #1C4257;
- vertical-align: middle;
- margin-left: 1.5em; }
- ul.jqtree-tree .jqtree-title.jqtree-title-folder {
- margin-left: 0; }
- ul.jqtree-tree li.jqtree-folder {
- margin-bottom: 4px; }
- ul.jqtree-tree li.jqtree-folder.jqtree-closed {
- margin-bottom: 1px; }
- ul.jqtree-tree li.jqtree-ghost {
- position: relative;
- z-index: 10;
- margin-right: 10px;
- /* todo: add classes to span? */ }
- ul.jqtree-tree li.jqtree-ghost span {
- display: block; }
- ul.jqtree-tree li.jqtree-ghost span.jqtree-circle {
- border: solid 2px #0000ff;
- -webkit-border-radius: 100px;
- -moz-border-radius: 100px;
- border-radius: 100px;
- height: 8px;
- width: 8px;
- position: absolute;
- top: -4px;
- left: -6px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box; }
- ul.jqtree-tree li.jqtree-ghost span.jqtree-line {
- background-color: #0000ff;
- height: 2px;
- padding: 0;
- position: absolute;
- top: -1px;
- left: 2px;
- width: 100%; }
- ul.jqtree-tree li.jqtree-ghost.jqtree-inside {
- margin-left: 48px; }
- ul.jqtree-tree span.jqtree-border {
- position: absolute;
- display: block;
- left: -2px;
- top: 0;
- border: solid 2px #0000ff;
- border-radius: 6px;
- margin: 0;
- box-sizing: content-box; }
- ul.jqtree-tree li.jqtree-selected > .jqtree-element,
- ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover {
- background-color: #97BDD6;
- background: -webkit-gradient(linear, left top, left bottom, from(#BEE0F5), to(#89AFCA));
- background: -moz-linear-gradient(top, #BEE0F5, #89AFCA);
- background: -ms-linear-gradient(top, #BEE0F5, #89AFCA);
- background: -o-linear-gradient(top, #BEE0F5, #89AFCA);
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
- ul.jqtree-tree .jqtree-moving > .jqtree-element .jqtree-title {
- outline: dashed 1px #0000ff; }
-
-ul.jqtree-tree.jqtree-rtl {
- direction: rtl; }
- ul.jqtree-tree.jqtree-rtl ul.jqtree_common {
- margin-left: 0;
- margin-right: 12px; }
- ul.jqtree-tree.jqtree-rtl .jqtree-toggler {
- margin-left: 0.5em;
- margin-right: 0; }
- ul.jqtree-tree.jqtree-rtl .jqtree-title {
- margin-left: 0;
- margin-right: 1.5em; }
- ul.jqtree-tree.jqtree-rtl .jqtree-title.jqtree-title-folder {
- margin-right: 0; }
- ul.jqtree-tree.jqtree-rtl li.jqtree-ghost {
- margin-right: 0;
- margin-left: 10px; }
- ul.jqtree-tree.jqtree-rtl li.jqtree-ghost span.jqtree-circle {
- right: -6px; }
- ul.jqtree-tree.jqtree-rtl li.jqtree-ghost span.jqtree-line {
- right: 2px; }
- ul.jqtree-tree.jqtree-rtl li.jqtree-ghost.jqtree-inside {
- margin-left: 0;
- margin-right: 48px; }
- ul.jqtree-tree.jqtree-rtl span.jqtree-border {
- right: -2px; }
-
-span.jqtree-dragging {
- color: #fff;
- background: #000;
- opacity: 0.6;
- cursor: pointer;
- padding: 2px 8px; }
-
-/* IE 6, 7, 8 */
-@media \0screen\,screen\9 {
- ul.jqtree-tree li.jqtree-ghost span.jqtree-circle {
- background: url(jqtree-circle.png) no-repeat;
- border: 0 none; } }
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/jqtree.jquery.json b/ecomp-portal-FE/client/bower_components/jqTree/jqtree.jquery.json
deleted file mode 100644
index 1f348b8c..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/jqtree.jquery.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "jqtree",
- "version": "1.3.7",
- "title": "jqTree",
- "description": "JqTree is a jQuery widget for displaying a tree structure in html. It supports json data, loading via ajax and drag-and-drop",
- "keywords": [
- "tree"
- ],
- "author": {
- "name": "Marco Braak"
- },
- "homepage": "http://mbraak.github.io/jqTree/",
- "download": "https://github.com/mbraak/jqTree/tarball/master",
- "licenses": [
- {
- "type": "Apache-2.0",
- "url": "http://www.apache.org/licenses/LICENSE-2.0"
- }
- ],
- "dependencies": {
- "jquery": ">=1.5"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/jqtree.scss b/ecomp-portal-FE/client/bower_components/jqTree/jqtree.scss
deleted file mode 100644
index d646bc68..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/jqtree.scss
+++ /dev/null
@@ -1,197 +0,0 @@
-ul.jqtree-tree {
- list-style: none outside;
- margin-left: 0;
- margin-bottom: 0;
- padding: 0;
-
- ul.jqtree_common {
- list-style: none outside;
- margin-left: 12px;
- margin-right: 0;
- margin-bottom: 0;
- padding: 0;
- display: block;
- }
-
- li.jqtree-closed > ul.jqtree_common {
- display: none;
- }
-
- li.jqtree_common {
- clear: both;
- list-style-type: none;
- }
-
- .jqtree-toggler {
- border-bottom: none;
- color: #333;
- text-decoration: none;
- vertical-align: middle;
-
- &:hover {
- color: #000;
- text-decoration: none;
- }
-
- &.jqtree-closed {
- background-position: 0 0;
- }
-
- &.jqtree-toggler-left {
- margin-right: 0.5em;
- }
-
- &.jqtree-toggler-right {
- margin-left: 0.5em;
- }
- }
-
- .jqtree-element {
- cursor: pointer;
- position: relative;
- }
-
- .jqtree-title {
- color: #1C4257;
- vertical-align: middle;
- margin-left: 1.5em;
-
- &.jqtree-title-folder {
- margin-left: 0;
- }
- }
-
- li.jqtree-folder {
- margin-bottom: 4px;
-
- &.jqtree-closed {
- margin-bottom: 1px;
- }
- }
-
- li.jqtree-ghost {
- position: relative;
- z-index: 10;
- margin-right: 10px;
-
- /* todo: add classes to span? */
- span {
- display: block;
- }
-
- span.jqtree-circle {
- border: solid 2px #0000ff;
- -webkit-border-radius: 100px;
- -moz-border-radius: 100px;
- border-radius: 100px;
- height: 8px;
- width: 8px;
- position: absolute;
- top: -4px;
- left: -6px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
-
- span.jqtree-line {
- background-color: #0000ff;
- height: 2px;
- padding: 0;
- position: absolute;
- top: -1px;
- left: 2px;
- width: 100%;
- }
-
- &.jqtree-inside {
- margin-left: 48px;
- }
- }
-
- span.jqtree-border {
- position: absolute;
- display: block;
- left: -2px;
- top: 0;
- border: solid 2px #0000ff;
- border-radius: 6px;
- margin: 0;
- box-sizing: content-box;
- }
-
- li.jqtree-selected > .jqtree-element,
- li.jqtree-selected > .jqtree-element:hover {
- background-color: #97BDD6;
- background: -webkit-gradient(linear, left top, left bottom, from(#BEE0F5), to(#89AFCA));
- background: -moz-linear-gradient(top, #BEE0F5, #89AFCA);
- background: -ms-linear-gradient(top, #BEE0F5, #89AFCA);
- background: -o-linear-gradient(top, #BEE0F5, #89AFCA);
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
- }
-
- .jqtree-moving > .jqtree-element .jqtree-title {
- outline: dashed 1px #0000ff;
- }
-}
-
-ul.jqtree-tree.jqtree-rtl {
- direction: rtl;
-
- ul.jqtree_common {
- margin-left: 0;
- margin-right: 12px;
- }
-
- .jqtree-toggler {
- margin-left: 0.5em;
- margin-right: 0;
- }
-
- .jqtree-title {
- margin-left: 0;
- margin-right: 1.5em;
-
- &.jqtree-title-folder {
- margin-right: 0;
- }
- }
-
- li.jqtree-ghost {
- margin-right: 0;
- margin-left: 10px;
-
- span.jqtree-circle {
- right: -6px;
- }
-
- span.jqtree-line {
- right: 2px;
- }
-
- &.jqtree-inside {
- margin-left: 0;
- margin-right: 48px;
- }
- }
-
- span.jqtree-border {
- right: -2px;
- }
-}
-
-span.jqtree-dragging {
- color: #fff;
- background: #000;
- opacity: 0.6;
- cursor: pointer;
- padding: 2px 8px;
-}
-
-/* IE 6, 7, 8 */
-@media \0screen\,screen\9 {
- ul.jqtree-tree li.jqtree-ghost span.jqtree-circle {
- background: url(jqtree-circle.png) no-repeat;
- border: 0 none;
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/karma.conf.js b/ecomp-portal-FE/client/bower_components/jqTree/karma.conf.js
deleted file mode 100644
index 1356b737..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/karma.conf.js
+++ /dev/null
@@ -1,59 +0,0 @@
-// Karma configuration
-// Generated on Mon Nov 24 2014 14:20:45 GMT+0100 (CET)
-
-module.exports = function(config) {
- config.set({
-
- // base path that will be used to resolve all patterns (eg. files, exclude)
- basePath: '',
-
- // frameworks to use
- // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
- frameworks: ['browserify', 'qunit'],
-
- // list of files / patterns to load in the browser
- files: [
- 'src_test/karma-test.js',
- 'static/bower_components/json3/lib/json3.js'
- ],
-
- // list of files to exclude
- exclude: [
- ],
-
- preprocessors: {
- 'src_test/karma-test.js': ['browserify']
- },
-
- browserify: {
- transform: ['coffeeify'],
- extensions: ['.js', '.coffee']
- },
-
- // test results reporter to use
- // possible values: 'dots', 'progress'
- // available reporters: https://npmjs.org/browse/keyword/karma-reporter
- reporters: ['progress'],
-
- // web server port
- port: 9876,
-
- // enable / disable colors in the output (reporters and logs)
- colors: true,
-
- // level of logging
- // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
- logLevel: config.LOG_INFO,
-
- // enable / disable watching file and executing tests whenever any file changes
- autoWatch: true,
-
- // start these browsers
- // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
- browsers: ['Chrome', 'Firefox', 'PhantomJS', 'IE8 - WinXP'],
-
- // Continuous Integration mode
- // if true, Karma captures browsers, runs the tests and exits
- singleRun: false
- });
-};
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/drag_and_drop_handler.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/drag_and_drop_handler.js
deleted file mode 100644
index 4fb0b307..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/drag_and_drop_handler.js
+++ /dev/null
@@ -1,489 +0,0 @@
-var $, DragAndDropHandler, DragElement, HitAreasGenerator, Position, VisibleNodeIterator, node_module, util,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
-node_module = require('./node');
-
-util = require('./util');
-
-Position = node_module.Position;
-
-$ = jQuery;
-
-DragAndDropHandler = (function() {
- function DragAndDropHandler(tree_widget) {
- this.tree_widget = tree_widget;
- this.hovered_area = null;
- this.$ghost = null;
- this.hit_areas = [];
- this.is_dragging = false;
- this.current_item = null;
- }
-
- DragAndDropHandler.prototype.mouseCapture = function(position_info) {
- var $element, node_element;
- $element = $(position_info.target);
- if (!this.mustCaptureElement($element)) {
- return null;
- }
- if (this.tree_widget.options.onIsMoveHandle && !this.tree_widget.options.onIsMoveHandle($element)) {
- return null;
- }
- node_element = this.tree_widget._getNodeElement($element);
- if (node_element && this.tree_widget.options.onCanMove) {
- if (!this.tree_widget.options.onCanMove(node_element.node)) {
- node_element = null;
- }
- }
- this.current_item = node_element;
- return this.current_item !== null;
- };
-
- DragAndDropHandler.prototype.mouseStart = function(position_info) {
- var node, node_name, offset;
- this.refresh();
- offset = $(position_info.target).offset();
- node = this.current_item.node;
- if (this.tree_widget.options.autoEscape) {
- node_name = util.html_escape(node.name);
- } else {
- node_name = node.name;
- }
- this.drag_element = new DragElement(node_name, position_info.page_x - offset.left, position_info.page_y - offset.top, this.tree_widget.element);
- this.is_dragging = true;
- this.current_item.$element.addClass('jqtree-moving');
- return true;
- };
-
- DragAndDropHandler.prototype.mouseDrag = function(position_info) {
- var area, can_move_to;
- this.drag_element.move(position_info.page_x, position_info.page_y);
- area = this.findHoveredArea(position_info.page_x, position_info.page_y);
- can_move_to = this.canMoveToArea(area);
- if (can_move_to && area) {
- if (!area.node.isFolder()) {
- this.stopOpenFolderTimer();
- }
- if (this.hovered_area !== area) {
- this.hovered_area = area;
- if (this.mustOpenFolderTimer(area)) {
- this.startOpenFolderTimer(area.node);
- } else {
- this.stopOpenFolderTimer();
- }
- this.updateDropHint();
- }
- } else {
- this.removeHover();
- this.removeDropHint();
- this.stopOpenFolderTimer();
- }
- if (!area) {
- if (this.tree_widget.options.onDragMove != null) {
- this.tree_widget.options.onDragMove(this.current_item.node, position_info.original_event);
- }
- }
- return true;
- };
-
- DragAndDropHandler.prototype.mustCaptureElement = function($element) {
- return !$element.is('input,select,textarea');
- };
-
- DragAndDropHandler.prototype.canMoveToArea = function(area) {
- var position_name;
- if (!area) {
- return false;
- } else if (this.tree_widget.options.onCanMoveTo) {
- position_name = Position.getName(area.position);
- return this.tree_widget.options.onCanMoveTo(this.current_item.node, area.node, position_name);
- } else {
- return true;
- }
- };
-
- DragAndDropHandler.prototype.mouseStop = function(position_info) {
- var current_item;
- this.moveItem(position_info);
- this.clear();
- this.removeHover();
- this.removeDropHint();
- this.removeHitAreas();
- current_item = this.current_item;
- if (this.current_item) {
- this.current_item.$element.removeClass('jqtree-moving');
- this.current_item = null;
- }
- this.is_dragging = false;
- if (!this.hovered_area && current_item) {
- if (this.tree_widget.options.onDragStop != null) {
- this.tree_widget.options.onDragStop(current_item.node, position_info.original_event);
- }
- }
- return false;
- };
-
- DragAndDropHandler.prototype.refresh = function() {
- this.removeHitAreas();
- if (this.current_item) {
- this.generateHitAreas();
- this.current_item = this.tree_widget._getNodeElementForNode(this.current_item.node);
- if (this.is_dragging) {
- return this.current_item.$element.addClass('jqtree-moving');
- }
- }
- };
-
- DragAndDropHandler.prototype.removeHitAreas = function() {
- return this.hit_areas = [];
- };
-
- DragAndDropHandler.prototype.clear = function() {
- this.drag_element.remove();
- return this.drag_element = null;
- };
-
- DragAndDropHandler.prototype.removeDropHint = function() {
- if (this.previous_ghost) {
- return this.previous_ghost.remove();
- }
- };
-
- DragAndDropHandler.prototype.removeHover = function() {
- return this.hovered_area = null;
- };
-
- DragAndDropHandler.prototype.generateHitAreas = function() {
- var hit_areas_generator;
- hit_areas_generator = new HitAreasGenerator(this.tree_widget.tree, this.current_item.node, this.getTreeDimensions().bottom);
- return this.hit_areas = hit_areas_generator.generate();
- };
-
- DragAndDropHandler.prototype.findHoveredArea = function(x, y) {
- var area, dimensions, high, low, mid;
- dimensions = this.getTreeDimensions();
- if (x < dimensions.left || y < dimensions.top || x > dimensions.right || y > dimensions.bottom) {
- return null;
- }
- low = 0;
- high = this.hit_areas.length;
- while (low < high) {
- mid = (low + high) >> 1;
- area = this.hit_areas[mid];
- if (y < area.top) {
- high = mid;
- } else if (y > area.bottom) {
- low = mid + 1;
- } else {
- return area;
- }
- }
- return null;
- };
-
- DragAndDropHandler.prototype.mustOpenFolderTimer = function(area) {
- var node;
- node = area.node;
- return node.isFolder() && !node.is_open && area.position === Position.INSIDE;
- };
-
- DragAndDropHandler.prototype.updateDropHint = function() {
- var node_element;
- if (!this.hovered_area) {
- return;
- }
- this.removeDropHint();
- node_element = this.tree_widget._getNodeElementForNode(this.hovered_area.node);
- return this.previous_ghost = node_element.addDropHint(this.hovered_area.position);
- };
-
- DragAndDropHandler.prototype.startOpenFolderTimer = function(folder) {
- var openFolder;
- openFolder = (function(_this) {
- return function() {
- return _this.tree_widget._openNode(folder, _this.tree_widget.options.slide, function() {
- _this.refresh();
- return _this.updateDropHint();
- });
- };
- })(this);
- this.stopOpenFolderTimer();
- return this.open_folder_timer = setTimeout(openFolder, this.tree_widget.options.openFolderDelay);
- };
-
- DragAndDropHandler.prototype.stopOpenFolderTimer = function() {
- if (this.open_folder_timer) {
- clearTimeout(this.open_folder_timer);
- return this.open_folder_timer = null;
- }
- };
-
- DragAndDropHandler.prototype.moveItem = function(position_info) {
- var doMove, event, moved_node, position, previous_parent, target_node;
- if (this.hovered_area && this.hovered_area.position !== Position.NONE && this.canMoveToArea(this.hovered_area)) {
- moved_node = this.current_item.node;
- target_node = this.hovered_area.node;
- position = this.hovered_area.position;
- previous_parent = moved_node.parent;
- if (position === Position.INSIDE) {
- this.hovered_area.node.is_open = true;
- }
- doMove = (function(_this) {
- return function() {
- _this.tree_widget.tree.moveNode(moved_node, target_node, position);
- _this.tree_widget.element.empty();
- return _this.tree_widget._refreshElements();
- };
- })(this);
- event = this.tree_widget._triggerEvent('tree.move', {
- move_info: {
- moved_node: moved_node,
- target_node: target_node,
- position: Position.getName(position),
- previous_parent: previous_parent,
- do_move: doMove,
- original_event: position_info.original_event
- }
- });
- if (!event.isDefaultPrevented()) {
- return doMove();
- }
- }
- };
-
- DragAndDropHandler.prototype.getTreeDimensions = function() {
- var offset;
- offset = this.tree_widget.element.offset();
- return {
- left: offset.left,
- top: offset.top,
- right: offset.left + this.tree_widget.element.width(),
- bottom: offset.top + this.tree_widget.element.height() + 16
- };
- };
-
- return DragAndDropHandler;
-
-})();
-
-VisibleNodeIterator = (function() {
- function VisibleNodeIterator(tree) {
- this.tree = tree;
- }
-
- VisibleNodeIterator.prototype.iterate = function() {
- var _iterateNode, is_first_node;
- is_first_node = true;
- _iterateNode = (function(_this) {
- return function(node, next_node) {
- var $element, child, children_length, i, j, len, must_iterate_inside, ref;
- must_iterate_inside = (node.is_open || !node.element) && node.hasChildren();
- if (node.element) {
- $element = $(node.element);
- if (!$element.is(':visible')) {
- return;
- }
- if (is_first_node) {
- _this.handleFirstNode(node, $element);
- is_first_node = false;
- }
- if (!node.hasChildren()) {
- _this.handleNode(node, next_node, $element);
- } else if (node.is_open) {
- if (!_this.handleOpenFolder(node, $element)) {
- must_iterate_inside = false;
- }
- } else {
- _this.handleClosedFolder(node, next_node, $element);
- }
- }
- if (must_iterate_inside) {
- children_length = node.children.length;
- ref = node.children;
- for (i = j = 0, len = ref.length; j < len; i = ++j) {
- child = ref[i];
- if (i === (children_length - 1)) {
- _iterateNode(node.children[i], null);
- } else {
- _iterateNode(node.children[i], node.children[i + 1]);
- }
- }
- if (node.is_open) {
- return _this.handleAfterOpenFolder(node, next_node, $element);
- }
- }
- };
- })(this);
- return _iterateNode(this.tree, null);
- };
-
- VisibleNodeIterator.prototype.handleNode = function(node, next_node, $element) {};
-
- VisibleNodeIterator.prototype.handleOpenFolder = function(node, $element) {};
-
- VisibleNodeIterator.prototype.handleClosedFolder = function(node, next_node, $element) {};
-
- VisibleNodeIterator.prototype.handleAfterOpenFolder = function(node, next_node, $element) {};
-
- VisibleNodeIterator.prototype.handleFirstNode = function(node, $element) {};
-
- return VisibleNodeIterator;
-
-})();
-
-HitAreasGenerator = (function(superClass) {
- extend(HitAreasGenerator, superClass);
-
- function HitAreasGenerator(tree, current_node, tree_bottom) {
- HitAreasGenerator.__super__.constructor.call(this, tree);
- this.current_node = current_node;
- this.tree_bottom = tree_bottom;
- }
-
- HitAreasGenerator.prototype.generate = function() {
- this.positions = [];
- this.last_top = 0;
- this.iterate();
- return this.generateHitAreas(this.positions);
- };
-
- HitAreasGenerator.prototype.getTop = function($element) {
- return $element.offset().top;
- };
-
- HitAreasGenerator.prototype.addPosition = function(node, position, top) {
- var area;
- area = {
- top: top,
- node: node,
- position: position
- };
- this.positions.push(area);
- return this.last_top = top;
- };
-
- HitAreasGenerator.prototype.handleNode = function(node, next_node, $element) {
- var top;
- top = this.getTop($element);
- if (node === this.current_node) {
- this.addPosition(node, Position.NONE, top);
- } else {
- this.addPosition(node, Position.INSIDE, top);
- }
- if (next_node === this.current_node || node === this.current_node) {
- return this.addPosition(node, Position.NONE, top);
- } else {
- return this.addPosition(node, Position.AFTER, top);
- }
- };
-
- HitAreasGenerator.prototype.handleOpenFolder = function(node, $element) {
- if (node === this.current_node) {
- return false;
- }
- if (node.children[0] !== this.current_node) {
- this.addPosition(node, Position.INSIDE, this.getTop($element));
- }
- return true;
- };
-
- HitAreasGenerator.prototype.handleClosedFolder = function(node, next_node, $element) {
- var top;
- top = this.getTop($element);
- if (node === this.current_node) {
- return this.addPosition(node, Position.NONE, top);
- } else {
- this.addPosition(node, Position.INSIDE, top);
- if (next_node !== this.current_node) {
- return this.addPosition(node, Position.AFTER, top);
- }
- }
- };
-
- HitAreasGenerator.prototype.handleFirstNode = function(node, $element) {
- if (node !== this.current_node) {
- return this.addPosition(node, Position.BEFORE, this.getTop($(node.element)));
- }
- };
-
- HitAreasGenerator.prototype.handleAfterOpenFolder = function(node, next_node, $element) {
- if (node === this.current_node.node || next_node === this.current_node.node) {
- return this.addPosition(node, Position.NONE, this.last_top);
- } else {
- return this.addPosition(node, Position.AFTER, this.last_top);
- }
- };
-
- HitAreasGenerator.prototype.generateHitAreas = function(positions) {
- var group, hit_areas, j, len, position, previous_top;
- previous_top = -1;
- group = [];
- hit_areas = [];
- for (j = 0, len = positions.length; j < len; j++) {
- position = positions[j];
- if (position.top !== previous_top && group.length) {
- if (group.length) {
- this.generateHitAreasForGroup(hit_areas, group, previous_top, position.top);
- }
- previous_top = position.top;
- group = [];
- }
- group.push(position);
- }
- this.generateHitAreasForGroup(hit_areas, group, previous_top, this.tree_bottom);
- return hit_areas;
- };
-
- HitAreasGenerator.prototype.generateHitAreasForGroup = function(hit_areas, positions_in_group, top, bottom) {
- var area_height, area_top, i, position, position_count;
- position_count = Math.min(positions_in_group.length, 4);
- area_height = Math.round((bottom - top) / position_count);
- area_top = top;
- i = 0;
- while (i < position_count) {
- position = positions_in_group[i];
- hit_areas.push({
- top: area_top,
- bottom: area_top + area_height,
- node: position.node,
- position: position.position
- });
- area_top += area_height;
- i += 1;
- }
- return null;
- };
-
- return HitAreasGenerator;
-
-})(VisibleNodeIterator);
-
-DragElement = (function() {
- function DragElement(node_name, offset_x, offset_y, $tree) {
- this.offset_x = offset_x;
- this.offset_y = offset_y;
- this.$element = $("<span class=\"jqtree-title jqtree-dragging\">" + node_name + "</span>");
- this.$element.css("position", "absolute");
- $tree.append(this.$element);
- }
-
- DragElement.prototype.move = function(page_x, page_y) {
- return this.$element.offset({
- left: page_x - this.offset_x,
- top: page_y - this.offset_y
- });
- };
-
- DragElement.prototype.remove = function() {
- return this.$element.remove();
- };
-
- return DragElement;
-
-})();
-
-module.exports = {
- DragAndDropHandler: DragAndDropHandler,
- DragElement: DragElement,
- HitAreasGenerator: HitAreasGenerator
-};
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/elements_renderer.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/elements_renderer.js
deleted file mode 100644
index 59ba39ef..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/elements_renderer.js
+++ /dev/null
@@ -1,220 +0,0 @@
-var $, ElementsRenderer, NodeElement, html_escape, node_element, util;
-
-node_element = require('./node_element');
-
-NodeElement = node_element.NodeElement;
-
-util = require('./util');
-
-html_escape = util.html_escape;
-
-$ = jQuery;
-
-ElementsRenderer = (function() {
- function ElementsRenderer(tree_widget) {
- this.tree_widget = tree_widget;
- this.opened_icon_element = this.createButtonElement(tree_widget.options.openedIcon);
- this.closed_icon_element = this.createButtonElement(tree_widget.options.closedIcon);
- }
-
- ElementsRenderer.prototype.render = function(from_node) {
- if (from_node && from_node.parent) {
- return this.renderFromNode(from_node);
- } else {
- return this.renderFromRoot();
- }
- };
-
- ElementsRenderer.prototype.renderFromRoot = function() {
- var $element;
- $element = this.tree_widget.element;
- $element.empty();
- return this.createDomElements($element[0], this.tree_widget.tree.children, true, true, 1);
- };
-
- ElementsRenderer.prototype.renderFromNode = function(node) {
- var $previous_li, li;
- $previous_li = $(node.element);
- li = this.createLi(node, node.getLevel());
- this.attachNodeData(node, li);
- $previous_li.after(li);
- $previous_li.remove();
- if (node.children) {
- return this.createDomElements(li, node.children, false, false, node.getLevel() + 1);
- }
- };
-
- ElementsRenderer.prototype.createDomElements = function(element, children, is_root_node, is_open, level) {
- var child, i, len, li, ul;
- ul = this.createUl(is_root_node);
- element.appendChild(ul);
- for (i = 0, len = children.length; i < len; i++) {
- child = children[i];
- li = this.createLi(child, level);
- ul.appendChild(li);
- this.attachNodeData(child, li);
- if (child.hasChildren()) {
- this.createDomElements(li, child.children, false, child.is_open, level + 1);
- }
- }
- return null;
- };
-
- ElementsRenderer.prototype.attachNodeData = function(node, li) {
- node.element = li;
- return $(li).data('node', node);
- };
-
- ElementsRenderer.prototype.createUl = function(is_root_node) {
- var class_string, role, ul;
- if (!is_root_node) {
- class_string = '';
- role = 'group';
- } else {
- class_string = 'jqtree-tree';
- role = 'tree';
- if (this.tree_widget.options.rtl) {
- class_string += ' jqtree-rtl';
- }
- }
- ul = document.createElement('ul');
- ul.className = "jqtree_common " + class_string;
- ul.setAttribute('role', role);
- return ul;
- };
-
- ElementsRenderer.prototype.createLi = function(node, level) {
- var is_selected, li;
- is_selected = this.tree_widget.select_node_handler && this.tree_widget.select_node_handler.isNodeSelected(node);
- if (node.isFolder()) {
- li = this.createFolderLi(node, level, is_selected);
- } else {
- li = this.createNodeLi(node, level, is_selected);
- }
- if (this.tree_widget.options.onCreateLi) {
- this.tree_widget.options.onCreateLi(node, $(li));
- }
- return li;
- };
-
- ElementsRenderer.prototype.createFolderLi = function(node, level, is_selected) {
- var button_classes, button_link, div, folder_classes, icon_element, is_folder, li;
- button_classes = this.getButtonClasses(node);
- folder_classes = this.getFolderClasses(node, is_selected);
- if (node.is_open) {
- icon_element = this.opened_icon_element;
- } else {
- icon_element = this.closed_icon_element;
- }
- li = document.createElement('li');
- li.className = "jqtree_common " + folder_classes;
- li.setAttribute('role', 'presentation');
- div = document.createElement('div');
- div.className = "jqtree-element jqtree_common";
- div.setAttribute('role', 'presentation');
- li.appendChild(div);
- button_link = document.createElement('a');
- button_link.className = button_classes;
- button_link.appendChild(icon_element.cloneNode(false));
- button_link.setAttribute('role', 'presentation');
- button_link.setAttribute('aria-hidden', 'true');
- if (this.tree_widget.options.buttonLeft) {
- div.appendChild(button_link);
- }
- div.appendChild(this.createTitleSpan(node.name, level, is_selected, node.is_open, is_folder = true));
- if (!this.tree_widget.options.buttonLeft) {
- div.appendChild(button_link);
- }
- return li;
- };
-
- ElementsRenderer.prototype.createNodeLi = function(node, level, is_selected) {
- var class_string, div, is_folder, li, li_classes;
- li_classes = ['jqtree_common'];
- if (is_selected) {
- li_classes.push('jqtree-selected');
- }
- class_string = li_classes.join(' ');
- li = document.createElement('li');
- li.className = class_string;
- li.setAttribute('role', 'presentation');
- div = document.createElement('div');
- div.className = "jqtree-element jqtree_common";
- div.setAttribute('role', 'presentation');
- li.appendChild(div);
- div.appendChild(this.createTitleSpan(node.name, level, is_selected, node.is_open, is_folder = false));
- return li;
- };
-
- ElementsRenderer.prototype.createTitleSpan = function(node_name, level, is_selected, is_open, is_folder) {
- var classes, title_span;
- title_span = document.createElement('span');
- classes = "jqtree-title jqtree_common";
- if (is_folder) {
- classes += " jqtree-title-folder";
- }
- title_span.className = classes;
- title_span.setAttribute('role', 'treeitem');
- title_span.setAttribute('aria-level', level);
- title_span.setAttribute('aria-selected', util.getBoolString(is_selected));
- title_span.setAttribute('aria-expanded', util.getBoolString(is_open));
- if (is_selected) {
- title_span.setAttribute('tabindex', 0);
- }
- title_span.innerHTML = this.escapeIfNecessary(node_name);
- return title_span;
- };
-
- ElementsRenderer.prototype.getButtonClasses = function(node) {
- var classes;
- classes = ['jqtree-toggler', 'jqtree_common'];
- if (!node.is_open) {
- classes.push('jqtree-closed');
- }
- if (this.tree_widget.options.buttonLeft) {
- classes.push('jqtree-toggler-left');
- } else {
- classes.push('jqtree-toggler-right');
- }
- return classes.join(' ');
- };
-
- ElementsRenderer.prototype.getFolderClasses = function(node, is_selected) {
- var classes;
- classes = ['jqtree-folder'];
- if (!node.is_open) {
- classes.push('jqtree-closed');
- }
- if (is_selected) {
- classes.push('jqtree-selected');
- }
- if (node.is_loading) {
- classes.push('jqtree-loading');
- }
- return classes.join(' ');
- };
-
- ElementsRenderer.prototype.escapeIfNecessary = function(value) {
- if (this.tree_widget.options.autoEscape) {
- return html_escape(value);
- } else {
- return value;
- }
- };
-
- ElementsRenderer.prototype.createButtonElement = function(value) {
- var div;
- if (typeof value === 'string') {
- div = document.createElement('div');
- div.innerHTML = value;
- return document.createTextNode(div.innerHTML);
- } else {
- return $(value)[0];
- }
- };
-
- return ElementsRenderer;
-
-})();
-
-module.exports = ElementsRenderer;
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/key_handler.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/key_handler.js
deleted file mode 100644
index 9c050aca..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/key_handler.js
+++ /dev/null
@@ -1,120 +0,0 @@
-var $, KeyHandler,
- bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
-
-$ = jQuery;
-
-KeyHandler = (function() {
- var DOWN, LEFT, RIGHT, UP;
-
- LEFT = 37;
-
- UP = 38;
-
- RIGHT = 39;
-
- DOWN = 40;
-
- function KeyHandler(tree_widget) {
- this.selectNode = bind(this.selectNode, this);
- this.tree_widget = tree_widget;
- if (tree_widget.options.keyboardSupport) {
- $(document).bind('keydown.jqtree', $.proxy(this.handleKeyDown, this));
- }
- }
-
- KeyHandler.prototype.deinit = function() {
- return $(document).unbind('keydown.jqtree');
- };
-
- KeyHandler.prototype.moveDown = function() {
- var node;
- node = this.tree_widget.getSelectedNode();
- if (node) {
- return this.selectNode(node.getNextNode());
- } else {
- return false;
- }
- };
-
- KeyHandler.prototype.moveUp = function() {
- var node;
- node = this.tree_widget.getSelectedNode();
- if (node) {
- return this.selectNode(node.getPreviousNode());
- } else {
- return false;
- }
- };
-
- KeyHandler.prototype.moveRight = function() {
- var node;
- node = this.tree_widget.getSelectedNode();
- if (!node) {
- return true;
- } else if (!node.isFolder()) {
- return true;
- } else {
- if (node.is_open) {
- return this.selectNode(node.getNextNode());
- } else {
- this.tree_widget.openNode(node);
- return false;
- }
- }
- };
-
- KeyHandler.prototype.moveLeft = function() {
- var node;
- node = this.tree_widget.getSelectedNode();
- if (!node) {
- return true;
- } else if (node.isFolder() && node.is_open) {
- this.tree_widget.closeNode(node);
- return false;
- } else {
- return this.selectNode(node.getParent());
- }
- };
-
- KeyHandler.prototype.handleKeyDown = function(e) {
- var key;
- if (!this.tree_widget.options.keyboardSupport) {
- return true;
- }
- if ($(document.activeElement).is('textarea,input,select')) {
- return true;
- }
- if (!this.tree_widget.getSelectedNode()) {
- return true;
- }
- key = e.which;
- switch (key) {
- case DOWN:
- return this.moveDown();
- case UP:
- return this.moveUp();
- case RIGHT:
- return this.moveRight();
- case LEFT:
- return this.moveLeft();
- }
- return true;
- };
-
- KeyHandler.prototype.selectNode = function(node) {
- if (!node) {
- return true;
- } else {
- this.tree_widget.selectNode(node);
- if (this.tree_widget.scroll_handler && (!this.tree_widget.scroll_handler.isScrolledIntoView($(node.element).find('.jqtree-element')))) {
- this.tree_widget.scrollToNode(node);
- }
- return false;
- }
- };
-
- return KeyHandler;
-
-})();
-
-module.exports = KeyHandler;
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/mouse.widget.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/mouse.widget.js
deleted file mode 100644
index 93bdb576..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/mouse.widget.js
+++ /dev/null
@@ -1,191 +0,0 @@
-
-/*
-This widget does the same a the mouse widget in jqueryui.
- */
-var $, MouseWidget, SimpleWidget,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
-SimpleWidget = require('./simple.widget');
-
-$ = jQuery;
-
-MouseWidget = (function(superClass) {
- extend(MouseWidget, superClass);
-
- function MouseWidget() {
- return MouseWidget.__super__.constructor.apply(this, arguments);
- }
-
- MouseWidget.is_mouse_handled = false;
-
- MouseWidget.prototype._init = function() {
- this.$el.bind('mousedown.mousewidget', $.proxy(this._mouseDown, this));
- this.$el.bind('touchstart.mousewidget', $.proxy(this._touchStart, this));
- this.is_mouse_started = false;
- this.mouse_delay = 0;
- this._mouse_delay_timer = null;
- this._is_mouse_delay_met = true;
- return this.mouse_down_info = null;
- };
-
- MouseWidget.prototype._deinit = function() {
- var $document;
- this.$el.unbind('mousedown.mousewidget');
- this.$el.unbind('touchstart.mousewidget');
- $document = $(document);
- $document.unbind('mousemove.mousewidget');
- return $document.unbind('mouseup.mousewidget');
- };
-
- MouseWidget.prototype._mouseDown = function(e) {
- var result;
- if (e.which !== 1) {
- return;
- }
- result = this._handleMouseDown(e, this._getPositionInfo(e));
- if (result) {
- e.preventDefault();
- }
- return result;
- };
-
- MouseWidget.prototype._handleMouseDown = function(e, position_info) {
- if (MouseWidget.is_mouse_handled) {
- return;
- }
- if (this.is_mouse_started) {
- this._handleMouseUp(position_info);
- }
- this.mouse_down_info = position_info;
- if (!this._mouseCapture(position_info)) {
- return;
- }
- this._handleStartMouse();
- this.is_mouse_handled = true;
- return true;
- };
-
- MouseWidget.prototype._handleStartMouse = function() {
- var $document;
- $document = $(document);
- $document.bind('mousemove.mousewidget', $.proxy(this._mouseMove, this));
- $document.bind('touchmove.mousewidget', $.proxy(this._touchMove, this));
- $document.bind('mouseup.mousewidget', $.proxy(this._mouseUp, this));
- $document.bind('touchend.mousewidget', $.proxy(this._touchEnd, this));
- if (this.mouse_delay) {
- return this._startMouseDelayTimer();
- }
- };
-
- MouseWidget.prototype._startMouseDelayTimer = function() {
- if (this._mouse_delay_timer) {
- clearTimeout(this._mouse_delay_timer);
- }
- this._mouse_delay_timer = setTimeout((function(_this) {
- return function() {
- return _this._is_mouse_delay_met = true;
- };
- })(this), this.mouse_delay);
- return this._is_mouse_delay_met = false;
- };
-
- MouseWidget.prototype._mouseMove = function(e) {
- return this._handleMouseMove(e, this._getPositionInfo(e));
- };
-
- MouseWidget.prototype._handleMouseMove = function(e, position_info) {
- if (this.is_mouse_started) {
- this._mouseDrag(position_info);
- return e.preventDefault();
- }
- if (this.mouse_delay && !this._is_mouse_delay_met) {
- return true;
- }
- this.is_mouse_started = this._mouseStart(this.mouse_down_info) !== false;
- if (this.is_mouse_started) {
- this._mouseDrag(position_info);
- } else {
- this._handleMouseUp(position_info);
- }
- return !this.is_mouse_started;
- };
-
- MouseWidget.prototype._getPositionInfo = function(e) {
- return {
- page_x: e.pageX,
- page_y: e.pageY,
- target: e.target,
- original_event: e
- };
- };
-
- MouseWidget.prototype._mouseUp = function(e) {
- return this._handleMouseUp(this._getPositionInfo(e));
- };
-
- MouseWidget.prototype._handleMouseUp = function(position_info) {
- var $document;
- $document = $(document);
- $document.unbind('mousemove.mousewidget');
- $document.unbind('touchmove.mousewidget');
- $document.unbind('mouseup.mousewidget');
- $document.unbind('touchend.mousewidget');
- if (this.is_mouse_started) {
- this.is_mouse_started = false;
- this._mouseStop(position_info);
- }
- };
-
- MouseWidget.prototype._mouseCapture = function(position_info) {
- return true;
- };
-
- MouseWidget.prototype._mouseStart = function(position_info) {
- return null;
- };
-
- MouseWidget.prototype._mouseDrag = function(position_info) {
- return null;
- };
-
- MouseWidget.prototype._mouseStop = function(position_info) {
- return null;
- };
-
- MouseWidget.prototype.setMouseDelay = function(mouse_delay) {
- return this.mouse_delay = mouse_delay;
- };
-
- MouseWidget.prototype._touchStart = function(e) {
- var touch;
- if (e.originalEvent.touches.length > 1) {
- return;
- }
- touch = e.originalEvent.changedTouches[0];
- return this._handleMouseDown(e, this._getPositionInfo(touch));
- };
-
- MouseWidget.prototype._touchMove = function(e) {
- var touch;
- if (e.originalEvent.touches.length > 1) {
- return;
- }
- touch = e.originalEvent.changedTouches[0];
- return this._handleMouseMove(e, this._getPositionInfo(touch));
- };
-
- MouseWidget.prototype._touchEnd = function(e) {
- var touch;
- if (e.originalEvent.touches.length > 1) {
- return;
- }
- touch = e.originalEvent.changedTouches[0];
- return this._handleMouseUp(this._getPositionInfo(touch));
- };
-
- return MouseWidget;
-
-})(SimpleWidget);
-
-module.exports = MouseWidget;
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/node.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/node.js
deleted file mode 100644
index e92e8f74..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/node.js
+++ /dev/null
@@ -1,588 +0,0 @@
-var $, Node, Position;
-
-$ = jQuery;
-
-Position = {
- getName: function(position) {
- return Position.strings[position - 1];
- },
- nameToIndex: function(name) {
- var i, j, ref;
- for (i = j = 1, ref = Position.strings.length; 1 <= ref ? j <= ref : j >= ref; i = 1 <= ref ? ++j : --j) {
- if (Position.strings[i - 1] === name) {
- return i;
- }
- }
- return 0;
- }
-};
-
-Position.BEFORE = 1;
-
-Position.AFTER = 2;
-
-Position.INSIDE = 3;
-
-Position.NONE = 4;
-
-Position.strings = ['before', 'after', 'inside', 'none'];
-
-Node = (function() {
- function Node(o, is_root, node_class) {
- if (is_root == null) {
- is_root = false;
- }
- if (node_class == null) {
- node_class = Node;
- }
- this.name = '';
- this.setData(o);
- this.children = [];
- this.parent = null;
- if (is_root) {
- this.id_mapping = {};
- this.tree = this;
- this.node_class = node_class;
- }
- }
-
- Node.prototype.setData = function(o) {
-
- /*
- Set the data of this node.
-
- setData(string): set the name of the node
- setdata(object): set attributes of the node
-
- Examples:
- setdata('node1')
-
- setData({ name: 'node1', id: 1});
-
- setData({ name: 'node2', id: 2, color: 'green'});
-
- * This is an internal function; it is not in the docs
- * Does not remove existing node values
- */
- var key, setName, value;
- setName = (function(_this) {
- return function(name) {
- if (name !== null) {
- return _this.name = name;
- }
- };
- })(this);
- if (typeof o !== 'object') {
- setName(o);
- } else {
- for (key in o) {
- value = o[key];
- if (key === 'label') {
- setName(value);
- } else if (key !== 'children') {
- this[key] = value;
- }
- }
- }
- return null;
- };
-
- Node.prototype.initFromData = function(data) {
- var addChildren, addNode;
- addNode = (function(_this) {
- return function(node_data) {
- _this.setData(node_data);
- if (node_data.children) {
- return addChildren(node_data.children);
- }
- };
- })(this);
- addChildren = (function(_this) {
- return function(children_data) {
- var child, j, len, node;
- for (j = 0, len = children_data.length; j < len; j++) {
- child = children_data[j];
- node = new _this.tree.node_class('');
- node.initFromData(child);
- _this.addChild(node);
- }
- return null;
- };
- })(this);
- addNode(data);
- return null;
- };
-
-
- /*
- Create tree from data.
-
- Structure of data is:
- [
- {
- label: 'node1',
- children: [
- { label: 'child1' },
- { label: 'child2' }
- ]
- },
- {
- label: 'node2'
- }
- ]
- */
-
- Node.prototype.loadFromData = function(data) {
- var j, len, node, o;
- this.removeChildren();
- for (j = 0, len = data.length; j < len; j++) {
- o = data[j];
- node = new this.tree.node_class(o);
- this.addChild(node);
- if (typeof o === 'object' && o.children) {
- node.loadFromData(o.children);
- }
- }
- return null;
- };
-
-
- /*
- Add child.
-
- tree.addChild(
- new Node('child1')
- );
- */
-
- Node.prototype.addChild = function(node) {
- this.children.push(node);
- return node._setParent(this);
- };
-
-
- /*
- Add child at position. Index starts at 0.
-
- tree.addChildAtPosition(
- new Node('abc'),
- 1
- );
- */
-
- Node.prototype.addChildAtPosition = function(node, index) {
- this.children.splice(index, 0, node);
- return node._setParent(this);
- };
-
- Node.prototype._setParent = function(parent) {
- this.parent = parent;
- this.tree = parent.tree;
- return this.tree.addNodeToIndex(this);
- };
-
-
- /*
- Remove child. This also removes the children of the node.
-
- tree.removeChild(tree.children[0]);
- */
-
- Node.prototype.removeChild = function(node) {
- node.removeChildren();
- return this._removeChild(node);
- };
-
- Node.prototype._removeChild = function(node) {
- this.children.splice(this.getChildIndex(node), 1);
- return this.tree.removeNodeFromIndex(node);
- };
-
-
- /*
- Get child index.
-
- var index = getChildIndex(node);
- */
-
- Node.prototype.getChildIndex = function(node) {
- return $.inArray(node, this.children);
- };
-
-
- /*
- Does the tree have children?
-
- if (tree.hasChildren()) {
- //
- }
- */
-
- Node.prototype.hasChildren = function() {
- return this.children.length !== 0;
- };
-
- Node.prototype.isFolder = function() {
- return this.hasChildren() || this.load_on_demand;
- };
-
-
- /*
- Iterate over all the nodes in the tree.
-
- Calls callback with (node, level).
-
- The callback must return true to continue the iteration on current node.
-
- tree.iterate(
- function(node, level) {
- console.log(node.name);
-
- // stop iteration after level 2
- return (level <= 2);
- }
- );
- */
-
- Node.prototype.iterate = function(callback) {
- var _iterate;
- _iterate = function(node, level) {
- var child, j, len, ref, result;
- if (node.children) {
- ref = node.children;
- for (j = 0, len = ref.length; j < len; j++) {
- child = ref[j];
- result = callback(child, level);
- if (result && child.hasChildren()) {
- _iterate(child, level + 1);
- }
- }
- return null;
- }
- };
- _iterate(this, 0);
- return null;
- };
-
-
- /*
- Move node relative to another node.
-
- Argument position: Position.BEFORE, Position.AFTER or Position.Inside
-
- // move node1 after node2
- tree.moveNode(node1, node2, Position.AFTER);
- */
-
- Node.prototype.moveNode = function(moved_node, target_node, position) {
- if (moved_node.isParentOf(target_node)) {
- return;
- }
- moved_node.parent._removeChild(moved_node);
- if (position === Position.AFTER) {
- return target_node.parent.addChildAtPosition(moved_node, target_node.parent.getChildIndex(target_node) + 1);
- } else if (position === Position.BEFORE) {
- return target_node.parent.addChildAtPosition(moved_node, target_node.parent.getChildIndex(target_node));
- } else if (position === Position.INSIDE) {
- return target_node.addChildAtPosition(moved_node, 0);
- }
- };
-
-
- /*
- Get the tree as data.
- */
-
- Node.prototype.getData = function(include_parent) {
- var getDataFromNodes;
- if (include_parent == null) {
- include_parent = false;
- }
- getDataFromNodes = function(nodes) {
- var data, j, k, len, node, tmp_node, v;
- data = [];
- for (j = 0, len = nodes.length; j < len; j++) {
- node = nodes[j];
- tmp_node = {};
- for (k in node) {
- v = node[k];
- if ((k !== 'parent' && k !== 'children' && k !== 'element' && k !== 'tree') && Object.prototype.hasOwnProperty.call(node, k)) {
- tmp_node[k] = v;
- }
- }
- if (node.hasChildren()) {
- tmp_node.children = getDataFromNodes(node.children);
- }
- data.push(tmp_node);
- }
- return data;
- };
- if (include_parent) {
- return getDataFromNodes([this]);
- } else {
- return getDataFromNodes(this.children);
- }
- };
-
- Node.prototype.getNodeByName = function(name) {
- return this.getNodeByCallback(function(node) {
- return node.name === name;
- });
- };
-
- Node.prototype.getNodeByCallback = function(callback) {
- var result;
- result = null;
- this.iterate(function(node) {
- if (callback(node)) {
- result = node;
- return false;
- } else {
- return true;
- }
- });
- return result;
- };
-
- Node.prototype.addAfter = function(node_info) {
- var child_index, node;
- if (!this.parent) {
- return null;
- } else {
- node = new this.tree.node_class(node_info);
- child_index = this.parent.getChildIndex(this);
- this.parent.addChildAtPosition(node, child_index + 1);
- if (typeof node_info === 'object' && node_info.children && node_info.children.length) {
- node.loadFromData(node_info.children);
- }
- return node;
- }
- };
-
- Node.prototype.addBefore = function(node_info) {
- var child_index, node;
- if (!this.parent) {
- return null;
- } else {
- node = new this.tree.node_class(node_info);
- child_index = this.parent.getChildIndex(this);
- this.parent.addChildAtPosition(node, child_index);
- if (typeof node_info === 'object' && node_info.children && node_info.children.length) {
- node.loadFromData(node_info.children);
- }
- return node;
- }
- };
-
- Node.prototype.addParent = function(node_info) {
- var child, j, len, new_parent, original_parent, ref;
- if (!this.parent) {
- return null;
- } else {
- new_parent = new this.tree.node_class(node_info);
- new_parent._setParent(this.tree);
- original_parent = this.parent;
- ref = original_parent.children;
- for (j = 0, len = ref.length; j < len; j++) {
- child = ref[j];
- new_parent.addChild(child);
- }
- original_parent.children = [];
- original_parent.addChild(new_parent);
- return new_parent;
- }
- };
-
- Node.prototype.remove = function() {
- if (this.parent) {
- this.parent.removeChild(this);
- return this.parent = null;
- }
- };
-
- Node.prototype.append = function(node_info) {
- var node;
- node = new this.tree.node_class(node_info);
- this.addChild(node);
- if (typeof node_info === 'object' && node_info.children && node_info.children.length) {
- node.loadFromData(node_info.children);
- }
- return node;
- };
-
- Node.prototype.prepend = function(node_info) {
- var node;
- node = new this.tree.node_class(node_info);
- this.addChildAtPosition(node, 0);
- if (typeof node_info === 'object' && node_info.children && node_info.children.length) {
- node.loadFromData(node_info.children);
- }
- return node;
- };
-
- Node.prototype.isParentOf = function(node) {
- var parent;
- parent = node.parent;
- while (parent) {
- if (parent === this) {
- return true;
- }
- parent = parent.parent;
- }
- return false;
- };
-
- Node.prototype.getLevel = function() {
- var level, node;
- level = 0;
- node = this;
- while (node.parent) {
- level += 1;
- node = node.parent;
- }
- return level;
- };
-
- Node.prototype.getNodeById = function(node_id) {
- return this.id_mapping[node_id];
- };
-
- Node.prototype.addNodeToIndex = function(node) {
- if (node.id != null) {
- return this.id_mapping[node.id] = node;
- }
- };
-
- Node.prototype.removeNodeFromIndex = function(node) {
- if (node.id != null) {
- return delete this.id_mapping[node.id];
- }
- };
-
- Node.prototype.removeChildren = function() {
- this.iterate((function(_this) {
- return function(child) {
- _this.tree.removeNodeFromIndex(child);
- return true;
- };
- })(this));
- return this.children = [];
- };
-
- Node.prototype.getPreviousSibling = function() {
- var previous_index;
- if (!this.parent) {
- return null;
- } else {
- previous_index = this.parent.getChildIndex(this) - 1;
- if (previous_index >= 0) {
- return this.parent.children[previous_index];
- } else {
- return null;
- }
- }
- };
-
- Node.prototype.getNextSibling = function() {
- var next_index;
- if (!this.parent) {
- return null;
- } else {
- next_index = this.parent.getChildIndex(this) + 1;
- if (next_index < this.parent.children.length) {
- return this.parent.children[next_index];
- } else {
- return null;
- }
- }
- };
-
- Node.prototype.getNodesByProperty = function(key, value) {
- return this.filter(function(node) {
- return node[key] === value;
- });
- };
-
- Node.prototype.filter = function(f) {
- var result;
- result = [];
- this.iterate(function(node) {
- if (f(node)) {
- result.push(node);
- }
- return true;
- });
- return result;
- };
-
- Node.prototype.getNextNode = function(include_children) {
- var next_sibling;
- if (include_children == null) {
- include_children = true;
- }
- if (include_children && this.hasChildren() && this.is_open) {
- return this.children[0];
- } else {
- if (!this.parent) {
- return null;
- } else {
- next_sibling = this.getNextSibling();
- if (next_sibling) {
- return next_sibling;
- } else {
- return this.parent.getNextNode(false);
- }
- }
- }
- };
-
- Node.prototype.getPreviousNode = function() {
- var previous_sibling;
- if (!this.parent) {
- return null;
- } else {
- previous_sibling = this.getPreviousSibling();
- if (previous_sibling) {
- if (!previous_sibling.hasChildren() || !previous_sibling.is_open) {
- return previous_sibling;
- } else {
- return previous_sibling.getLastChild();
- }
- } else {
- return this.getParent();
- }
- }
- };
-
- Node.prototype.getParent = function() {
- if (!this.parent) {
- return null;
- } else if (!this.parent.parent) {
- return null;
- } else {
- return this.parent;
- }
- };
-
- Node.prototype.getLastChild = function() {
- var last_child;
- if (!this.hasChildren()) {
- return null;
- } else {
- last_child = this.children[this.children.length - 1];
- if (!last_child.hasChildren() || !last_child.is_open) {
- return last_child;
- } else {
- return last_child.getLastChild();
- }
- }
- };
-
- return Node;
-
-})();
-
-module.exports = {
- Node: Node,
- Position: Position
-};
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/node_element.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/node_element.js
deleted file mode 100644
index 734a8793..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/node_element.js
+++ /dev/null
@@ -1,226 +0,0 @@
-var $, BorderDropHint, FolderElement, GhostDropHint, NodeElement, Position, node,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
-node = require('./node');
-
-Position = node.Position;
-
-$ = jQuery;
-
-NodeElement = (function() {
- function NodeElement(node, tree_widget) {
- this.init(node, tree_widget);
- }
-
- NodeElement.prototype.init = function(node, tree_widget) {
- this.node = node;
- this.tree_widget = tree_widget;
- if (!node.element) {
- node.element = this.tree_widget.element;
- }
- return this.$element = $(node.element);
- };
-
- NodeElement.prototype.getUl = function() {
- return this.$element.children('ul:first');
- };
-
- NodeElement.prototype.getSpan = function() {
- return this.$element.children('.jqtree-element').find('span.jqtree-title');
- };
-
- NodeElement.prototype.getLi = function() {
- return this.$element;
- };
-
- NodeElement.prototype.addDropHint = function(position) {
- if (position === Position.INSIDE) {
- return new BorderDropHint(this.$element);
- } else {
- return new GhostDropHint(this.node, this.$element, position);
- }
- };
-
- NodeElement.prototype.select = function() {
- var $li, $span;
- $li = this.getLi();
- $li.addClass('jqtree-selected');
- $li.attr('aria-selected', 'true');
- $span = this.getSpan();
- return $span.attr('tabindex', 0);
- };
-
- NodeElement.prototype.deselect = function() {
- var $li, $span;
- $li = this.getLi();
- $li.removeClass('jqtree-selected');
- $li.attr('aria-selected', 'false');
- $span = this.getSpan();
- return $span.attr('tabindex', -1);
- };
-
- return NodeElement;
-
-})();
-
-FolderElement = (function(superClass) {
- extend(FolderElement, superClass);
-
- function FolderElement() {
- return FolderElement.__super__.constructor.apply(this, arguments);
- }
-
- FolderElement.prototype.open = function(on_finished, slide) {
- var $button, doOpen;
- if (slide == null) {
- slide = true;
- }
- if (!this.node.is_open) {
- this.node.is_open = true;
- $button = this.getButton();
- $button.removeClass('jqtree-closed');
- $button.html('');
- $button.append(this.tree_widget.renderer.opened_icon_element.cloneNode(false));
- doOpen = (function(_this) {
- return function() {
- var $li, $span;
- $li = _this.getLi();
- $li.removeClass('jqtree-closed');
- $span = _this.getSpan();
- $span.attr('aria-expanded', 'true');
- if (on_finished) {
- on_finished(_this.node);
- }
- return _this.tree_widget._triggerEvent('tree.open', {
- node: _this.node
- });
- };
- })(this);
- if (slide) {
- return this.getUl().slideDown('fast', doOpen);
- } else {
- this.getUl().show();
- return doOpen();
- }
- }
- };
-
- FolderElement.prototype.close = function(slide) {
- var $button, doClose;
- if (slide == null) {
- slide = true;
- }
- if (this.node.is_open) {
- this.node.is_open = false;
- $button = this.getButton();
- $button.addClass('jqtree-closed');
- $button.html('');
- $button.append(this.tree_widget.renderer.closed_icon_element.cloneNode(false));
- doClose = (function(_this) {
- return function() {
- var $li, $span;
- $li = _this.getLi();
- $li.addClass('jqtree-closed');
- $span = _this.getSpan();
- $span.attr('aria-expanded', 'false');
- return _this.tree_widget._triggerEvent('tree.close', {
- node: _this.node
- });
- };
- })(this);
- if (slide) {
- return this.getUl().slideUp('fast', doClose);
- } else {
- this.getUl().hide();
- return doClose();
- }
- }
- };
-
- FolderElement.prototype.getButton = function() {
- return this.$element.children('.jqtree-element').find('a.jqtree-toggler');
- };
-
- FolderElement.prototype.addDropHint = function(position) {
- if (!this.node.is_open && position === Position.INSIDE) {
- return new BorderDropHint(this.$element);
- } else {
- return new GhostDropHint(this.node, this.$element, position);
- }
- };
-
- return FolderElement;
-
-})(NodeElement);
-
-BorderDropHint = (function() {
- function BorderDropHint($element) {
- var $div, width;
- $div = $element.children('.jqtree-element');
- width = $element.width() - 4;
- this.$hint = $('<span class="jqtree-border"></span>');
- $div.append(this.$hint);
- this.$hint.css({
- width: width,
- height: $div.outerHeight() - 4
- });
- }
-
- BorderDropHint.prototype.remove = function() {
- return this.$hint.remove();
- };
-
- return BorderDropHint;
-
-})();
-
-GhostDropHint = (function() {
- function GhostDropHint(node, $element, position) {
- this.$element = $element;
- this.node = node;
- this.$ghost = $('<li class="jqtree_common jqtree-ghost"><span class="jqtree_common jqtree-circle"></span><span class="jqtree_common jqtree-line"></span></li>');
- if (position === Position.AFTER) {
- this.moveAfter();
- } else if (position === Position.BEFORE) {
- this.moveBefore();
- } else if (position === Position.INSIDE) {
- if (node.isFolder() && node.is_open) {
- this.moveInsideOpenFolder();
- } else {
- this.moveInside();
- }
- }
- }
-
- GhostDropHint.prototype.remove = function() {
- return this.$ghost.remove();
- };
-
- GhostDropHint.prototype.moveAfter = function() {
- return this.$element.after(this.$ghost);
- };
-
- GhostDropHint.prototype.moveBefore = function() {
- return this.$element.before(this.$ghost);
- };
-
- GhostDropHint.prototype.moveInsideOpenFolder = function() {
- return $(this.node.children[0].element).before(this.$ghost);
- };
-
- GhostDropHint.prototype.moveInside = function() {
- this.$element.after(this.$ghost);
- return this.$ghost.addClass('jqtree-inside');
- };
-
- return GhostDropHint;
-
-})();
-
-module.exports = {
- BorderDropHint: BorderDropHint,
- FolderElement: FolderElement,
- GhostDropHint: GhostDropHint,
- NodeElement: NodeElement
-};
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/save_state_handler.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/save_state_handler.js
deleted file mode 100644
index 1e137a7d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/save_state_handler.js
+++ /dev/null
@@ -1,238 +0,0 @@
-var $, SaveStateHandler, indexOf, isInt, util;
-
-util = require('./util');
-
-indexOf = util.indexOf;
-
-isInt = util.isInt;
-
-$ = jQuery;
-
-SaveStateHandler = (function() {
- function SaveStateHandler(tree_widget) {
- this.tree_widget = tree_widget;
- }
-
- SaveStateHandler.prototype.saveState = function() {
- var state;
- state = JSON.stringify(this.getState());
- if (this.tree_widget.options.onSetStateFromStorage) {
- return this.tree_widget.options.onSetStateFromStorage(state);
- } else if (this.supportsLocalStorage()) {
- return localStorage.setItem(this.getCookieName(), state);
- } else if ($.cookie) {
- $.cookie.raw = true;
- return $.cookie(this.getCookieName(), state, {
- path: '/'
- });
- }
- };
-
- SaveStateHandler.prototype.getStateFromStorage = function() {
- var json_data;
- json_data = this._loadFromStorage();
- if (json_data) {
- return this._parseState(json_data);
- } else {
- return null;
- }
- };
-
- SaveStateHandler.prototype._parseState = function(json_data) {
- var state;
- state = $.parseJSON(json_data);
- if (state && state.selected_node && isInt(state.selected_node)) {
- state.selected_node = [state.selected_node];
- }
- return state;
- };
-
- SaveStateHandler.prototype._loadFromStorage = function() {
- if (this.tree_widget.options.onGetStateFromStorage) {
- return this.tree_widget.options.onGetStateFromStorage();
- } else if (this.supportsLocalStorage()) {
- return localStorage.getItem(this.getCookieName());
- } else if ($.cookie) {
- $.cookie.raw = true;
- return $.cookie(this.getCookieName());
- } else {
- return null;
- }
- };
-
- SaveStateHandler.prototype.getState = function() {
- var getOpenNodeIds, getSelectedNodeIds;
- getOpenNodeIds = (function(_this) {
- return function() {
- var open_nodes;
- open_nodes = [];
- _this.tree_widget.tree.iterate(function(node) {
- if (node.is_open && node.id && node.hasChildren()) {
- open_nodes.push(node.id);
- }
- return true;
- });
- return open_nodes;
- };
- })(this);
- getSelectedNodeIds = (function(_this) {
- return function() {
- var n;
- return (function() {
- var i, len, ref, results;
- ref = this.tree_widget.getSelectedNodes();
- results = [];
- for (i = 0, len = ref.length; i < len; i++) {
- n = ref[i];
- results.push(n.id);
- }
- return results;
- }).call(_this);
- };
- })(this);
- return {
- open_nodes: getOpenNodeIds(),
- selected_node: getSelectedNodeIds()
- };
- };
-
- SaveStateHandler.prototype.setInitialState = function(state) {
- var must_load_on_demand;
- if (!state) {
- return false;
- } else {
- must_load_on_demand = this._openInitialNodes(state.open_nodes);
- this._selectInitialNodes(state.selected_node);
- return must_load_on_demand;
- }
- };
-
- SaveStateHandler.prototype._openInitialNodes = function(node_ids) {
- var i, len, must_load_on_demand, node, node_id;
- must_load_on_demand = false;
- for (i = 0, len = node_ids.length; i < len; i++) {
- node_id = node_ids[i];
- node = this.tree_widget.getNodeById(node_id);
- if (node) {
- if (!node.load_on_demand) {
- node.is_open = true;
- } else {
- must_load_on_demand = true;
- }
- }
- }
- return must_load_on_demand;
- };
-
- SaveStateHandler.prototype._selectInitialNodes = function(node_ids) {
- var i, len, node, node_id, select_count;
- select_count = 0;
- for (i = 0, len = node_ids.length; i < len; i++) {
- node_id = node_ids[i];
- node = this.tree_widget.getNodeById(node_id);
- if (node) {
- select_count += 1;
- this.tree_widget.select_node_handler.addToSelection(node);
- }
- }
- return select_count !== 0;
- };
-
- SaveStateHandler.prototype.setInitialStateOnDemand = function(state, cb_finished) {
- if (state) {
- return this._setInitialStateOnDemand(state.open_nodes, state.selected_node, cb_finished);
- } else {
- return cb_finished();
- }
- };
-
- SaveStateHandler.prototype._setInitialStateOnDemand = function(node_ids, selected_nodes, cb_finished) {
- var loadAndOpenNode, loading_count, openNodes;
- loading_count = 0;
- openNodes = (function(_this) {
- return function() {
- var i, len, new_nodes_ids, node, node_id;
- new_nodes_ids = [];
- for (i = 0, len = node_ids.length; i < len; i++) {
- node_id = node_ids[i];
- node = _this.tree_widget.getNodeById(node_id);
- if (!node) {
- new_nodes_ids.push(node_id);
- } else {
- if (!node.is_loading) {
- if (node.load_on_demand) {
- loadAndOpenNode(node);
- } else {
- _this.tree_widget._openNode(node, false);
- }
- }
- }
- }
- node_ids = new_nodes_ids;
- if (_this._selectInitialNodes(selected_nodes)) {
- _this.tree_widget._refreshElements();
- }
- if (loading_count === 0) {
- return cb_finished();
- }
- };
- })(this);
- loadAndOpenNode = (function(_this) {
- return function(node) {
- loading_count += 1;
- return _this.tree_widget._openNode(node, false, function() {
- loading_count -= 1;
- return openNodes();
- });
- };
- })(this);
- return openNodes();
- };
-
- SaveStateHandler.prototype.getCookieName = function() {
- if (typeof this.tree_widget.options.saveState === 'string') {
- return this.tree_widget.options.saveState;
- } else {
- return 'tree';
- }
- };
-
- SaveStateHandler.prototype.supportsLocalStorage = function() {
- var testSupport;
- testSupport = function() {
- var error, key;
- if (typeof localStorage === "undefined" || localStorage === null) {
- return false;
- } else {
- try {
- key = '_storage_test';
- sessionStorage.setItem(key, true);
- sessionStorage.removeItem(key);
- } catch (error1) {
- error = error1;
- return false;
- }
- return true;
- }
- };
- if (this._supportsLocalStorage == null) {
- this._supportsLocalStorage = testSupport();
- }
- return this._supportsLocalStorage;
- };
-
- SaveStateHandler.prototype.getNodeIdToBeSelected = function() {
- var state;
- state = this.getStateFromStorage();
- if (state && state.selected_node) {
- return state.selected_node[0];
- } else {
- return null;
- }
- };
-
- return SaveStateHandler;
-
-})();
-
-module.exports = SaveStateHandler;
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/scroll_handler.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/scroll_handler.js
deleted file mode 100644
index 2b8e7070..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/scroll_handler.js
+++ /dev/null
@@ -1,137 +0,0 @@
-var $, ScrollHandler;
-
-$ = jQuery;
-
-ScrollHandler = (function() {
- function ScrollHandler(tree_widget) {
- this.tree_widget = tree_widget;
- this.previous_top = -1;
- this.is_initialized = false;
- }
-
- ScrollHandler.prototype._initScrollParent = function() {
- var $scroll_parent, getParentWithOverflow, setDocumentAsScrollParent;
- getParentWithOverflow = (function(_this) {
- return function() {
- var css_values, el, hasOverFlow, i, len, ref;
- css_values = ['overflow', 'overflow-y'];
- hasOverFlow = function(el) {
- var css_value, i, len, ref;
- for (i = 0, len = css_values.length; i < len; i++) {
- css_value = css_values[i];
- if ((ref = $.css(el, css_value)) === 'auto' || ref === 'scroll') {
- return true;
- }
- }
- return false;
- };
- if (hasOverFlow(_this.tree_widget.$el[0])) {
- return _this.tree_widget.$el;
- }
- ref = _this.tree_widget.$el.parents();
- for (i = 0, len = ref.length; i < len; i++) {
- el = ref[i];
- if (hasOverFlow(el)) {
- return $(el);
- }
- }
- return null;
- };
- })(this);
- setDocumentAsScrollParent = (function(_this) {
- return function() {
- _this.scroll_parent_top = 0;
- return _this.$scroll_parent = null;
- };
- })(this);
- if (this.tree_widget.$el.css('position') === 'fixed') {
- setDocumentAsScrollParent();
- }
- $scroll_parent = getParentWithOverflow();
- if ($scroll_parent && $scroll_parent.length && $scroll_parent[0].tagName !== 'HTML') {
- this.$scroll_parent = $scroll_parent;
- this.scroll_parent_top = this.$scroll_parent.offset().top;
- } else {
- setDocumentAsScrollParent();
- }
- return this.is_initialized = true;
- };
-
- ScrollHandler.prototype._ensureInit = function() {
- if (!this.is_initialized) {
- return this._initScrollParent();
- }
- };
-
- ScrollHandler.prototype.checkScrolling = function() {
- var hovered_area;
- this._ensureInit();
- hovered_area = this.tree_widget.dnd_handler.hovered_area;
- if (hovered_area && hovered_area.top !== this.previous_top) {
- this.previous_top = hovered_area.top;
- if (this.$scroll_parent) {
- return this._handleScrollingWithScrollParent(hovered_area);
- } else {
- return this._handleScrollingWithDocument(hovered_area);
- }
- }
- };
-
- ScrollHandler.prototype._handleScrollingWithScrollParent = function(area) {
- var distance_bottom;
- distance_bottom = this.scroll_parent_top + this.$scroll_parent[0].offsetHeight - area.bottom;
- if (distance_bottom < 20) {
- this.$scroll_parent[0].scrollTop += 20;
- this.tree_widget.refreshHitAreas();
- return this.previous_top = -1;
- } else if ((area.top - this.scroll_parent_top) < 20) {
- this.$scroll_parent[0].scrollTop -= 20;
- this.tree_widget.refreshHitAreas();
- return this.previous_top = -1;
- }
- };
-
- ScrollHandler.prototype._handleScrollingWithDocument = function(area) {
- var distance_top;
- distance_top = area.top - $(document).scrollTop();
- if (distance_top < 20) {
- return $(document).scrollTop($(document).scrollTop() - 20);
- } else if ($(window).height() - (area.bottom - $(document).scrollTop()) < 20) {
- return $(document).scrollTop($(document).scrollTop() + 20);
- }
- };
-
- ScrollHandler.prototype.scrollTo = function(top) {
- var tree_top;
- this._ensureInit();
- if (this.$scroll_parent) {
- return this.$scroll_parent[0].scrollTop = top;
- } else {
- tree_top = this.tree_widget.$el.offset().top;
- return $(document).scrollTop(top + tree_top);
- }
- };
-
- ScrollHandler.prototype.isScrolledIntoView = function(element) {
- var $element, element_bottom, element_top, view_bottom, view_top;
- this._ensureInit();
- $element = $(element);
- if (this.$scroll_parent) {
- view_top = 0;
- view_bottom = this.$scroll_parent.height();
- element_top = $element.offset().top - this.scroll_parent_top;
- element_bottom = element_top + $element.height();
- } else {
- view_top = $(window).scrollTop();
- view_bottom = view_top + $(window).height();
- element_top = $element.offset().top;
- element_bottom = element_top + $element.height();
- }
- return (element_bottom <= view_bottom) && (element_top >= view_top);
- };
-
- return ScrollHandler;
-
-})();
-
-module.exports = ScrollHandler;
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/select_node_handler.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/select_node_handler.js
deleted file mode 100644
index a3274221..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/select_node_handler.js
+++ /dev/null
@@ -1,111 +0,0 @@
-var $, SelectNodeHandler;
-
-$ = jQuery;
-
-SelectNodeHandler = (function() {
- function SelectNodeHandler(tree_widget) {
- this.tree_widget = tree_widget;
- this.clear();
- }
-
- SelectNodeHandler.prototype.getSelectedNode = function() {
- var selected_nodes;
- selected_nodes = this.getSelectedNodes();
- if (selected_nodes.length) {
- return selected_nodes[0];
- } else {
- return false;
- }
- };
-
- SelectNodeHandler.prototype.getSelectedNodes = function() {
- var id, node, selected_nodes;
- if (this.selected_single_node) {
- return [this.selected_single_node];
- } else {
- selected_nodes = [];
- for (id in this.selected_nodes) {
- node = this.tree_widget.getNodeById(id);
- if (node) {
- selected_nodes.push(node);
- }
- }
- return selected_nodes;
- }
- };
-
- SelectNodeHandler.prototype.getSelectedNodesUnder = function(parent) {
- var id, node, selected_nodes;
- if (this.selected_single_node) {
- if (parent.isParentOf(this.selected_single_node)) {
- return [this.selected_single_node];
- } else {
- return [];
- }
- } else {
- selected_nodes = [];
- for (id in this.selected_nodes) {
- node = this.tree_widget.getNodeById(id);
- if (node && parent.isParentOf(node)) {
- selected_nodes.push(node);
- }
- }
- return selected_nodes;
- }
- };
-
- SelectNodeHandler.prototype.isNodeSelected = function(node) {
- if (!node) {
- return false;
- } else if (node.id) {
- if (this.selected_nodes[node.id]) {
- return true;
- } else {
- return false;
- }
- } else if (this.selected_single_node) {
- return this.selected_single_node.element === node.element;
- } else {
- return false;
- }
- };
-
- SelectNodeHandler.prototype.clear = function() {
- this.selected_nodes = {};
- return this.selected_single_node = null;
- };
-
- SelectNodeHandler.prototype.removeFromSelection = function(node, include_children) {
- if (include_children == null) {
- include_children = false;
- }
- if (!node.id) {
- if (this.selected_single_node && node.element === this.selected_single_node.element) {
- return this.selected_single_node = null;
- }
- } else {
- delete this.selected_nodes[node.id];
- if (include_children) {
- return node.iterate((function(_this) {
- return function(n) {
- delete _this.selected_nodes[node.id];
- return true;
- };
- })(this));
- }
- }
- };
-
- SelectNodeHandler.prototype.addToSelection = function(node) {
- if (node.id) {
- return this.selected_nodes[node.id] = true;
- } else {
- return this.selected_single_node = node;
- }
- };
-
- return SelectNodeHandler;
-
-})();
-
-module.exports = SelectNodeHandler;
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/simple.widget.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/simple.widget.js
deleted file mode 100644
index 60341a16..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/simple.widget.js
+++ /dev/null
@@ -1,125 +0,0 @@
-
-/*
-Copyright 2013 Marco Braak
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
- */
-var $, SimpleWidget,
- slice = [].slice;
-
-$ = jQuery;
-
-SimpleWidget = (function() {
- SimpleWidget.prototype.defaults = {};
-
- function SimpleWidget(el, options) {
- this.$el = $(el);
- this.options = $.extend({}, this.defaults, options);
- }
-
- SimpleWidget.prototype.destroy = function() {
- return this._deinit();
- };
-
- SimpleWidget.prototype._init = function() {
- return null;
- };
-
- SimpleWidget.prototype._deinit = function() {
- return null;
- };
-
- SimpleWidget.register = function(widget_class, widget_name) {
- var callFunction, createWidget, destroyWidget, getDataKey, getWidgetData;
- getDataKey = function() {
- return "simple_widget_" + widget_name;
- };
- getWidgetData = function(el, data_key) {
- var widget;
- widget = $.data(el, data_key);
- if (widget && (widget instanceof SimpleWidget)) {
- return widget;
- } else {
- return null;
- }
- };
- createWidget = function($el, options) {
- var data_key, el, existing_widget, i, len, widget;
- data_key = getDataKey();
- for (i = 0, len = $el.length; i < len; i++) {
- el = $el[i];
- existing_widget = getWidgetData(el, data_key);
- if (!existing_widget) {
- widget = new widget_class(el, options);
- if (!$.data(el, data_key)) {
- $.data(el, data_key, widget);
- }
- widget._init();
- }
- }
- return $el;
- };
- destroyWidget = function($el) {
- var data_key, el, i, len, results, widget;
- data_key = getDataKey();
- results = [];
- for (i = 0, len = $el.length; i < len; i++) {
- el = $el[i];
- widget = getWidgetData(el, data_key);
- if (widget) {
- widget.destroy();
- }
- results.push($.removeData(el, data_key));
- }
- return results;
- };
- callFunction = function($el, function_name, args) {
- var el, i, len, result, widget, widget_function;
- result = null;
- for (i = 0, len = $el.length; i < len; i++) {
- el = $el[i];
- widget = $.data(el, getDataKey());
- if (widget && (widget instanceof SimpleWidget)) {
- widget_function = widget[function_name];
- if (widget_function && (typeof widget_function === 'function')) {
- result = widget_function.apply(widget, args);
- }
- }
- }
- return result;
- };
- return $.fn[widget_name] = function() {
- var $el, args, argument1, function_name, options;
- argument1 = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
- $el = this;
- if (argument1 === void 0 || typeof argument1 === 'object') {
- options = argument1;
- return createWidget($el, options);
- } else if (typeof argument1 === 'string' && argument1[0] !== '_') {
- function_name = argument1;
- if (function_name === 'destroy') {
- return destroyWidget($el);
- } else if (function_name === 'get_widget_class') {
- return widget_class;
- } else {
- return callFunction($el, function_name, args);
- }
- }
- };
- };
-
- return SimpleWidget;
-
-})();
-
-module.exports = SimpleWidget;
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/tree.jquery.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/tree.jquery.js
deleted file mode 100644
index c7ac2f08..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/tree.jquery.js
+++ /dev/null
@@ -1,1101 +0,0 @@
-var $, BorderDropHint, DragAndDropHandler, DragElement, ElementsRenderer, FolderElement, GhostDropHint, HitAreasGenerator, JqTreeWidget, KeyHandler, MouseWidget, Node, NodeElement, Position, SaveStateHandler, ScrollHandler, SelectNodeHandler, SimpleWidget, __version__, drag_and_drop_handler, isFunction, node_module, ref, util_module,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
-__version__ = require('./version');
-
-drag_and_drop_handler = require('./drag_and_drop_handler');
-
-ElementsRenderer = require('./elements_renderer');
-
-KeyHandler = require('./key_handler');
-
-MouseWidget = require('./mouse.widget');
-
-SaveStateHandler = require('./save_state_handler');
-
-ScrollHandler = require('./scroll_handler');
-
-SelectNodeHandler = require('./select_node_handler');
-
-SimpleWidget = require('./simple.widget');
-
-node_module = require('./node');
-
-Node = node_module.Node;
-
-Position = node_module.Position;
-
-util_module = require('./util');
-
-isFunction = util_module.isFunction;
-
-ref = require('./node_element'), BorderDropHint = ref.BorderDropHint, FolderElement = ref.FolderElement, GhostDropHint = ref.GhostDropHint, NodeElement = ref.NodeElement;
-
-DragAndDropHandler = drag_and_drop_handler.DragAndDropHandler, DragElement = drag_and_drop_handler.DragElement, HitAreasGenerator = drag_and_drop_handler.HitAreasGenerator;
-
-$ = jQuery;
-
-JqTreeWidget = (function(superClass) {
- extend(JqTreeWidget, superClass);
-
- function JqTreeWidget() {
- return JqTreeWidget.__super__.constructor.apply(this, arguments);
- }
-
- JqTreeWidget.prototype.BorderDropHint = BorderDropHint;
-
- JqTreeWidget.prototype.DragElement = DragElement;
-
- JqTreeWidget.prototype.DragAndDropHandler = DragAndDropHandler;
-
- JqTreeWidget.prototype.ElementsRenderer = ElementsRenderer;
-
- JqTreeWidget.prototype.GhostDropHint = GhostDropHint;
-
- JqTreeWidget.prototype.HitAreasGenerator = HitAreasGenerator;
-
- JqTreeWidget.prototype.Node = Node;
-
- JqTreeWidget.prototype.SaveStateHandler = SaveStateHandler;
-
- JqTreeWidget.prototype.ScrollHandler = ScrollHandler;
-
- JqTreeWidget.prototype.SelectNodeHandler = SelectNodeHandler;
-
- JqTreeWidget.prototype.defaults = {
- autoOpen: false,
- saveState: false,
- dragAndDrop: false,
- selectable: true,
- useContextMenu: true,
- onCanSelectNode: null,
- onSetStateFromStorage: null,
- onGetStateFromStorage: null,
- onCreateLi: null,
- onIsMoveHandle: null,
- onCanMove: null,
- onCanMoveTo: null,
- onLoadFailed: null,
- autoEscape: true,
- dataUrl: null,
- closedIcon: null,
- openedIcon: '&#x25bc;',
- slide: true,
- nodeClass: Node,
- dataFilter: null,
- keyboardSupport: true,
- openFolderDelay: 500,
- rtl: null,
- onDragMove: null,
- onDragStop: null,
- buttonLeft: true,
- onLoading: null
- };
-
- JqTreeWidget.prototype.toggle = function(node, slide) {
- if (slide == null) {
- slide = null;
- }
- if (slide === null) {
- slide = this.options.slide;
- }
- if (node.is_open) {
- this.closeNode(node, slide);
- } else {
- this.openNode(node, slide);
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.getTree = function() {
- return this.tree;
- };
-
- JqTreeWidget.prototype.selectNode = function(node) {
- this._selectNode(node, false);
- return this.element;
- };
-
- JqTreeWidget.prototype._selectNode = function(node, must_toggle) {
- var canSelect, deselected_node, openParents, saveState;
- if (must_toggle == null) {
- must_toggle = false;
- }
- if (!this.select_node_handler) {
- return;
- }
- canSelect = (function(_this) {
- return function() {
- if (_this.options.onCanSelectNode) {
- return _this.options.selectable && _this.options.onCanSelectNode(node);
- } else {
- return _this.options.selectable;
- }
- };
- })(this);
- openParents = (function(_this) {
- return function() {
- var parent;
- parent = node.parent;
- if (parent && parent.parent && !parent.is_open) {
- return _this.openNode(parent, false);
- }
- };
- })(this);
- saveState = (function(_this) {
- return function() {
- if (_this.options.saveState) {
- return _this.save_state_handler.saveState();
- }
- };
- })(this);
- if (!node) {
- this._deselectCurrentNode();
- saveState();
- return;
- }
- if (!canSelect()) {
- return;
- }
- if (this.select_node_handler.isNodeSelected(node)) {
- if (must_toggle) {
- this._deselectCurrentNode();
- this._triggerEvent('tree.select', {
- node: null,
- previous_node: node
- });
- }
- } else {
- deselected_node = this.getSelectedNode();
- this._deselectCurrentNode();
- this.addToSelection(node);
- this._triggerEvent('tree.select', {
- node: node,
- deselected_node: deselected_node
- });
- openParents();
- }
- return saveState();
- };
-
- JqTreeWidget.prototype.getSelectedNode = function() {
- if (this.select_node_handler) {
- return this.select_node_handler.getSelectedNode();
- } else {
- return null;
- }
- };
-
- JqTreeWidget.prototype.toJson = function() {
- return JSON.stringify(this.tree.getData());
- };
-
- JqTreeWidget.prototype.loadData = function(data, parent_node) {
- this._loadData(data, parent_node);
- return this.element;
- };
-
-
- /*
- signatures:
- - loadDataFromUrl(url, parent_node=null, on_finished=null)
- loadDataFromUrl('/my_data');
- loadDataFromUrl('/my_data', node1);
- loadDataFromUrl('/my_data', node1, function() { console.log('finished'); });
- loadDataFromUrl('/my_data', null, function() { console.log('finished'); });
-
- - loadDataFromUrl(parent_node=null, on_finished=null)
- loadDataFromUrl();
- loadDataFromUrl(node1);
- loadDataFromUrl(null, function() { console.log('finished'); });
- loadDataFromUrl(node1, function() { console.log('finished'); });
- */
-
- JqTreeWidget.prototype.loadDataFromUrl = function(param1, param2, param3) {
- if ($.type(param1) === 'string') {
- this._loadDataFromUrl(param1, param2, param3);
- } else {
- this._loadDataFromUrl(null, param1, param2);
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.reload = function(on_finished) {
- this._loadDataFromUrl(null, null, on_finished);
- return this.element;
- };
-
- JqTreeWidget.prototype._loadDataFromUrl = function(url_info, parent_node, on_finished) {
- var $el, addLoadingClass, handeLoadData, handleError, handleSuccess, loadDataFromUrlInfo, parseUrlInfo, removeLoadingClass;
- $el = null;
- addLoadingClass = (function(_this) {
- return function() {
- if (parent_node) {
- $el = $(parent_node.element);
- } else {
- $el = _this.element;
- }
- $el.addClass('jqtree-loading');
- return _this._notifyLoading(true, parent_node, $el);
- };
- })(this);
- removeLoadingClass = (function(_this) {
- return function() {
- if ($el) {
- $el.removeClass('jqtree-loading');
- return _this._notifyLoading(false, parent_node, $el);
- }
- };
- })(this);
- parseUrlInfo = function() {
- if ($.type(url_info) === 'string') {
- return {
- url: url_info
- };
- }
- if (!url_info.method) {
- url_info.method = 'get';
- }
- return url_info;
- };
- handeLoadData = (function(_this) {
- return function(data) {
- removeLoadingClass();
- _this._loadData(data, parent_node);
- if (on_finished && $.isFunction(on_finished)) {
- return on_finished();
- }
- };
- })(this);
- handleSuccess = (function(_this) {
- return function(response) {
- var data;
- if ($.isArray(response) || typeof response === 'object') {
- data = response;
- } else if (data != null) {
- data = $.parseJSON(response);
- } else {
- data = [];
- }
- if (_this.options.dataFilter) {
- data = _this.options.dataFilter(data);
- }
- return handeLoadData(data);
- };
- })(this);
- handleError = (function(_this) {
- return function(response) {
- removeLoadingClass();
- if (_this.options.onLoadFailed) {
- return _this.options.onLoadFailed(response);
- }
- };
- })(this);
- loadDataFromUrlInfo = function() {
- url_info = parseUrlInfo();
- return $.ajax($.extend({}, url_info, {
- method: url_info.method != null ? url_info.method.toUpperCase() : 'GET',
- cache: false,
- dataType: 'json',
- success: handleSuccess,
- error: handleError
- }));
- };
- if (!url_info) {
- url_info = this._getDataUrlInfo(parent_node);
- }
- addLoadingClass();
- if (!url_info) {
- removeLoadingClass();
- } else if ($.isArray(url_info)) {
- handeLoadData(url_info);
- } else {
- loadDataFromUrlInfo();
- }
- };
-
- JqTreeWidget.prototype._loadData = function(data, parent_node) {
- var deselectNodes, loadSubtree;
- if (parent_node == null) {
- parent_node = null;
- }
- deselectNodes = (function(_this) {
- return function() {
- var i, len, n, selected_nodes_under_parent;
- if (_this.select_node_handler) {
- selected_nodes_under_parent = _this.select_node_handler.getSelectedNodesUnder(parent_node);
- for (i = 0, len = selected_nodes_under_parent.length; i < len; i++) {
- n = selected_nodes_under_parent[i];
- _this.select_node_handler.removeFromSelection(n);
- }
- }
- return null;
- };
- })(this);
- loadSubtree = (function(_this) {
- return function() {
- parent_node.loadFromData(data);
- parent_node.load_on_demand = false;
- parent_node.is_loading = false;
- return _this._refreshElements(parent_node);
- };
- })(this);
- if (!data) {
- return;
- }
- this._triggerEvent('tree.load_data', {
- tree_data: data
- });
- if (!parent_node) {
- this._initTree(data);
- } else {
- deselectNodes();
- loadSubtree();
- }
- if (this.isDragging()) {
- return this.dnd_handler.refresh();
- }
- };
-
- JqTreeWidget.prototype.getNodeById = function(node_id) {
- return this.tree.getNodeById(node_id);
- };
-
- JqTreeWidget.prototype.getNodeByName = function(name) {
- return this.tree.getNodeByName(name);
- };
-
- JqTreeWidget.prototype.getNodesByProperty = function(key, value) {
- return this.tree.getNodesByProperty(key, value);
- };
-
- JqTreeWidget.prototype.getNodeByHtmlElement = function(element) {
- return this._getNode($(element));
- };
-
- JqTreeWidget.prototype.getNodeByCallback = function(callback) {
- return this.tree.getNodeByCallback(callback);
- };
-
- JqTreeWidget.prototype.openNode = function(node, slide_param, on_finished_param) {
- var on_finished, parseParams, ref1, slide;
- if (slide_param == null) {
- slide_param = null;
- }
- if (on_finished_param == null) {
- on_finished_param = null;
- }
- parseParams = (function(_this) {
- return function() {
- var on_finished, slide;
- if (isFunction(slide_param)) {
- on_finished = slide_param;
- slide = null;
- } else {
- slide = slide_param;
- on_finished = on_finished_param;
- }
- if (slide === null) {
- slide = _this.options.slide;
- }
- return [slide, on_finished];
- };
- })(this);
- ref1 = parseParams(), slide = ref1[0], on_finished = ref1[1];
- if (node) {
- this._openNode(node, slide, on_finished);
- }
- return this.element;
- };
-
- JqTreeWidget.prototype._openNode = function(node, slide, on_finished) {
- var doOpenNode, parent;
- if (slide == null) {
- slide = true;
- }
- doOpenNode = (function(_this) {
- return function(_node, _slide, _on_finished) {
- var folder_element;
- folder_element = new FolderElement(_node, _this);
- return folder_element.open(_on_finished, _slide);
- };
- })(this);
- if (node.isFolder()) {
- if (node.load_on_demand) {
- return this._loadFolderOnDemand(node, slide, on_finished);
- } else {
- parent = node.parent;
- while (parent) {
- if (parent.parent) {
- doOpenNode(parent, false, null);
- }
- parent = parent.parent;
- }
- doOpenNode(node, slide, on_finished);
- return this._saveState();
- }
- }
- };
-
- JqTreeWidget.prototype._loadFolderOnDemand = function(node, slide, on_finished) {
- if (slide == null) {
- slide = true;
- }
- node.is_loading = true;
- return this._loadDataFromUrl(null, node, (function(_this) {
- return function() {
- return _this._openNode(node, slide, on_finished);
- };
- })(this));
- };
-
- JqTreeWidget.prototype.closeNode = function(node, slide) {
- if (slide == null) {
- slide = null;
- }
- if (slide === null) {
- slide = this.options.slide;
- }
- if (node.isFolder()) {
- new FolderElement(node, this).close(slide);
- this._saveState();
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.isDragging = function() {
- if (this.dnd_handler) {
- return this.dnd_handler.is_dragging;
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype.refreshHitAreas = function() {
- this.dnd_handler.refresh();
- return this.element;
- };
-
- JqTreeWidget.prototype.addNodeAfter = function(new_node_info, existing_node) {
- var new_node;
- new_node = existing_node.addAfter(new_node_info);
- this._refreshElements(existing_node.parent);
- return new_node;
- };
-
- JqTreeWidget.prototype.addNodeBefore = function(new_node_info, existing_node) {
- var new_node;
- new_node = existing_node.addBefore(new_node_info);
- this._refreshElements(existing_node.parent);
- return new_node;
- };
-
- JqTreeWidget.prototype.addParentNode = function(new_node_info, existing_node) {
- var new_node;
- new_node = existing_node.addParent(new_node_info);
- this._refreshElements(new_node.parent);
- return new_node;
- };
-
- JqTreeWidget.prototype.removeNode = function(node) {
- var parent;
- parent = node.parent;
- if (parent) {
- this.select_node_handler.removeFromSelection(node, true);
- node.remove();
- this._refreshElements(parent);
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.appendNode = function(new_node_info, parent_node) {
- var node;
- parent_node = parent_node || this.tree;
- node = parent_node.append(new_node_info);
- this._refreshElements(parent_node);
- return node;
- };
-
- JqTreeWidget.prototype.prependNode = function(new_node_info, parent_node) {
- var node;
- if (!parent_node) {
- parent_node = this.tree;
- }
- node = parent_node.prepend(new_node_info);
- this._refreshElements(parent_node);
- return node;
- };
-
- JqTreeWidget.prototype.updateNode = function(node, data) {
- var id_is_changed;
- id_is_changed = data.id && data.id !== node.id;
- if (id_is_changed) {
- this.tree.removeNodeFromIndex(node);
- }
- node.setData(data);
- if (id_is_changed) {
- this.tree.addNodeToIndex(node);
- }
- if (typeof data === 'object' && data.children) {
- node.removeChildren();
- if (data.children.length) {
- node.loadFromData(data.children);
- }
- }
- this.renderer.renderFromNode(node);
- this._selectCurrentNode();
- return this.element;
- };
-
- JqTreeWidget.prototype.moveNode = function(node, target_node, position) {
- var position_index;
- position_index = Position.nameToIndex(position);
- this.tree.moveNode(node, target_node, position_index);
- this._refreshElements();
- return this.element;
- };
-
- JqTreeWidget.prototype.getStateFromStorage = function() {
- return this.save_state_handler.getStateFromStorage();
- };
-
- JqTreeWidget.prototype.addToSelection = function(node) {
- if (node) {
- this.select_node_handler.addToSelection(node);
- this._getNodeElementForNode(node).select();
- this._saveState();
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.getSelectedNodes = function() {
- return this.select_node_handler.getSelectedNodes();
- };
-
- JqTreeWidget.prototype.isNodeSelected = function(node) {
- return this.select_node_handler.isNodeSelected(node);
- };
-
- JqTreeWidget.prototype.removeFromSelection = function(node) {
- this.select_node_handler.removeFromSelection(node);
- this._getNodeElementForNode(node).deselect();
- this._saveState();
- return this.element;
- };
-
- JqTreeWidget.prototype.scrollToNode = function(node) {
- var $element, top;
- $element = $(node.element);
- top = $element.offset().top - this.$el.offset().top;
- this.scroll_handler.scrollTo(top);
- return this.element;
- };
-
- JqTreeWidget.prototype.getState = function() {
- return this.save_state_handler.getState();
- };
-
- JqTreeWidget.prototype.setState = function(state) {
- this.save_state_handler.setInitialState(state);
- this._refreshElements();
- return this.element;
- };
-
- JqTreeWidget.prototype.setOption = function(option, value) {
- this.options[option] = value;
- return this.element;
- };
-
- JqTreeWidget.prototype.moveDown = function() {
- if (this.key_handler) {
- this.key_handler.moveDown();
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.moveUp = function() {
- if (this.key_handler) {
- this.key_handler.moveUp();
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.getVersion = function() {
- return __version__;
- };
-
- JqTreeWidget.prototype._init = function() {
- JqTreeWidget.__super__._init.call(this);
- this.element = this.$el;
- this.mouse_delay = 300;
- this.is_initialized = false;
- this.options.rtl = this._getRtlOption();
- if (!this.options.closedIcon) {
- this.options.closedIcon = this._getDefaultClosedIcon();
- }
- this.renderer = new ElementsRenderer(this);
- if (SaveStateHandler != null) {
- this.save_state_handler = new SaveStateHandler(this);
- } else {
- this.options.saveState = false;
- }
- if (SelectNodeHandler != null) {
- this.select_node_handler = new SelectNodeHandler(this);
- }
- if (DragAndDropHandler != null) {
- this.dnd_handler = new DragAndDropHandler(this);
- } else {
- this.options.dragAndDrop = false;
- }
- if (ScrollHandler != null) {
- this.scroll_handler = new ScrollHandler(this);
- }
- if ((KeyHandler != null) && (SelectNodeHandler != null)) {
- this.key_handler = new KeyHandler(this);
- }
- this._initData();
- this.element.click($.proxy(this._click, this));
- this.element.dblclick($.proxy(this._dblclick, this));
- if (this.options.useContextMenu) {
- return this.element.bind('contextmenu', $.proxy(this._contextmenu, this));
- }
- };
-
- JqTreeWidget.prototype._deinit = function() {
- this.element.empty();
- this.element.unbind();
- if (this.key_handler) {
- this.key_handler.deinit();
- }
- this.tree = null;
- return JqTreeWidget.__super__._deinit.call(this);
- };
-
- JqTreeWidget.prototype._initData = function() {
- var data_url;
- if (this.options.data) {
- return this._loadData(this.options.data);
- } else {
- data_url = this._getDataUrlInfo();
- if (data_url) {
- return this._loadDataFromUrl();
- } else {
- return this._loadData([]);
- }
- }
- };
-
- JqTreeWidget.prototype._getDataUrlInfo = function(node) {
- var data_url, getUrlFromString;
- data_url = this.options.dataUrl || this.element.data('url');
- getUrlFromString = (function(_this) {
- return function() {
- var data, selected_node_id, url_info;
- url_info = {
- url: data_url
- };
- if (node && node.id) {
- data = {
- node: node.id
- };
- url_info['data'] = data;
- } else {
- selected_node_id = _this._getNodeIdToBeSelected();
- if (selected_node_id) {
- data = {
- selected_node: selected_node_id
- };
- url_info['data'] = data;
- }
- }
- return url_info;
- };
- })(this);
- if ($.isFunction(data_url)) {
- return data_url(node);
- } else if ($.type(data_url) === 'string') {
- return getUrlFromString();
- } else {
- return data_url;
- }
- };
-
- JqTreeWidget.prototype._getNodeIdToBeSelected = function() {
- if (this.options.saveState) {
- return this.save_state_handler.getNodeIdToBeSelected();
- } else {
- return null;
- }
- };
-
- JqTreeWidget.prototype._initTree = function(data) {
- var doInit, must_load_on_demand;
- doInit = (function(_this) {
- return function() {
- if (!_this.is_initialized) {
- _this.is_initialized = true;
- return _this._triggerEvent('tree.init');
- }
- };
- })(this);
- this.tree = new this.options.nodeClass(null, true, this.options.nodeClass);
- if (this.select_node_handler) {
- this.select_node_handler.clear();
- }
- this.tree.loadFromData(data);
- must_load_on_demand = this._setInitialState();
- this._refreshElements();
- if (!must_load_on_demand) {
- return doInit();
- } else {
- return this._setInitialStateOnDemand(doInit);
- }
- };
-
- JqTreeWidget.prototype._setInitialState = function() {
- var autoOpenNodes, is_restored, must_load_on_demand, ref1, restoreState;
- restoreState = (function(_this) {
- return function() {
- var must_load_on_demand, state;
- if (!(_this.options.saveState && _this.save_state_handler)) {
- return [false, false];
- } else {
- state = _this.save_state_handler.getStateFromStorage();
- if (!state) {
- return [false, false];
- } else {
- must_load_on_demand = _this.save_state_handler.setInitialState(state);
- return [true, must_load_on_demand];
- }
- }
- };
- })(this);
- autoOpenNodes = (function(_this) {
- return function() {
- var max_level, must_load_on_demand;
- if (_this.options.autoOpen === false) {
- return false;
- }
- max_level = _this._getAutoOpenMaxLevel();
- must_load_on_demand = false;
- _this.tree.iterate(function(node, level) {
- if (node.load_on_demand) {
- must_load_on_demand = true;
- return false;
- } else if (!node.hasChildren()) {
- return false;
- } else {
- node.is_open = true;
- return level !== max_level;
- }
- });
- return must_load_on_demand;
- };
- })(this);
- ref1 = restoreState(), is_restored = ref1[0], must_load_on_demand = ref1[1];
- if (!is_restored) {
- must_load_on_demand = autoOpenNodes();
- }
- return must_load_on_demand;
- };
-
- JqTreeWidget.prototype._setInitialStateOnDemand = function(cb_finished) {
- var autoOpenNodes, restoreState;
- restoreState = (function(_this) {
- return function() {
- var state;
- if (!(_this.options.saveState && _this.save_state_handler)) {
- return false;
- } else {
- state = _this.save_state_handler.getStateFromStorage();
- if (!state) {
- return false;
- } else {
- _this.save_state_handler.setInitialStateOnDemand(state, cb_finished);
- return true;
- }
- }
- };
- })(this);
- autoOpenNodes = (function(_this) {
- return function() {
- var loadAndOpenNode, loading_count, max_level, openNodes;
- max_level = _this._getAutoOpenMaxLevel();
- loading_count = 0;
- loadAndOpenNode = function(node) {
- loading_count += 1;
- return _this._openNode(node, false, function() {
- loading_count -= 1;
- return openNodes();
- });
- };
- openNodes = function() {
- _this.tree.iterate(function(node, level) {
- if (node.load_on_demand) {
- if (!node.is_loading) {
- loadAndOpenNode(node);
- }
- return false;
- } else {
- _this._openNode(node, false);
- return level !== max_level;
- }
- });
- if (loading_count === 0) {
- return cb_finished();
- }
- };
- return openNodes();
- };
- })(this);
- if (!restoreState()) {
- return autoOpenNodes();
- }
- };
-
- JqTreeWidget.prototype._getAutoOpenMaxLevel = function() {
- if (this.options.autoOpen === true) {
- return -1;
- } else {
- return parseInt(this.options.autoOpen);
- }
- };
-
-
- /*
- Redraw the tree or part of the tree.
- * from_node: redraw this subtree
- */
-
- JqTreeWidget.prototype._refreshElements = function(from_node) {
- if (from_node == null) {
- from_node = null;
- }
- this.renderer.render(from_node);
- return this._triggerEvent('tree.refresh');
- };
-
- JqTreeWidget.prototype._click = function(e) {
- var click_target, event, node;
- click_target = this._getClickTarget(e.target);
- if (click_target) {
- if (click_target.type === 'button') {
- this.toggle(click_target.node, this.options.slide);
- e.preventDefault();
- return e.stopPropagation();
- } else if (click_target.type === 'label') {
- node = click_target.node;
- event = this._triggerEvent('tree.click', {
- node: node,
- click_event: e
- });
- if (!event.isDefaultPrevented()) {
- return this._selectNode(node, true);
- }
- }
- }
- };
-
- JqTreeWidget.prototype._dblclick = function(e) {
- var click_target;
- click_target = this._getClickTarget(e.target);
- if (click_target && click_target.type === 'label') {
- return this._triggerEvent('tree.dblclick', {
- node: click_target.node,
- click_event: e
- });
- }
- };
-
- JqTreeWidget.prototype._getClickTarget = function(element) {
- var $button, $el, $target, node;
- $target = $(element);
- $button = $target.closest('.jqtree-toggler');
- if ($button.length) {
- node = this._getNode($button);
- if (node) {
- return {
- type: 'button',
- node: node
- };
- }
- } else {
- $el = $target.closest('.jqtree-element');
- if ($el.length) {
- node = this._getNode($el);
- if (node) {
- return {
- type: 'label',
- node: node
- };
- }
- }
- }
- return null;
- };
-
- JqTreeWidget.prototype._getNode = function($element) {
- var $li;
- $li = $element.closest('li.jqtree_common');
- if ($li.length === 0) {
- return null;
- } else {
- return $li.data('node');
- }
- };
-
- JqTreeWidget.prototype._getNodeElementForNode = function(node) {
- if (node.isFolder()) {
- return new FolderElement(node, this);
- } else {
- return new NodeElement(node, this);
- }
- };
-
- JqTreeWidget.prototype._getNodeElement = function($element) {
- var node;
- node = this._getNode($element);
- if (node) {
- return this._getNodeElementForNode(node);
- } else {
- return null;
- }
- };
-
- JqTreeWidget.prototype._contextmenu = function(e) {
- var $div, node;
- $div = $(e.target).closest('ul.jqtree-tree .jqtree-element');
- if ($div.length) {
- node = this._getNode($div);
- if (node) {
- e.preventDefault();
- e.stopPropagation();
- this._triggerEvent('tree.contextmenu', {
- node: node,
- click_event: e
- });
- return false;
- }
- }
- };
-
- JqTreeWidget.prototype._saveState = function() {
- if (this.options.saveState) {
- return this.save_state_handler.saveState();
- }
- };
-
- JqTreeWidget.prototype._mouseCapture = function(position_info) {
- if (this.options.dragAndDrop) {
- return this.dnd_handler.mouseCapture(position_info);
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype._mouseStart = function(position_info) {
- if (this.options.dragAndDrop) {
- return this.dnd_handler.mouseStart(position_info);
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype._mouseDrag = function(position_info) {
- var result;
- if (this.options.dragAndDrop) {
- result = this.dnd_handler.mouseDrag(position_info);
- if (this.scroll_handler) {
- this.scroll_handler.checkScrolling();
- }
- return result;
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype._mouseStop = function(position_info) {
- if (this.options.dragAndDrop) {
- return this.dnd_handler.mouseStop(position_info);
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype._triggerEvent = function(event_name, values) {
- var event;
- event = $.Event(event_name);
- $.extend(event, values);
- this.element.trigger(event);
- return event;
- };
-
- JqTreeWidget.prototype.testGenerateHitAreas = function(moving_node) {
- this.dnd_handler.current_item = this._getNodeElementForNode(moving_node);
- this.dnd_handler.generateHitAreas();
- return this.dnd_handler.hit_areas;
- };
-
- JqTreeWidget.prototype._selectCurrentNode = function() {
- var node, node_element;
- node = this.getSelectedNode();
- if (node) {
- node_element = this._getNodeElementForNode(node);
- if (node_element) {
- return node_element.select();
- }
- }
- };
-
- JqTreeWidget.prototype._deselectCurrentNode = function() {
- var node;
- node = this.getSelectedNode();
- if (node) {
- return this.removeFromSelection(node);
- }
- };
-
- JqTreeWidget.prototype._getDefaultClosedIcon = function() {
- if (this.options.rtl) {
- return '&#x25c0;';
- } else {
- return '&#x25ba;';
- }
- };
-
- JqTreeWidget.prototype._getRtlOption = function() {
- var data_rtl;
- if (this.options.rtl !== null) {
- return this.options.rtl;
- } else {
- data_rtl = this.element.data('rtl');
- if ((data_rtl != null) && data_rtl !== false) {
- return true;
- } else {
- return false;
- }
- }
- };
-
- JqTreeWidget.prototype._notifyLoading = function(is_loading, node, $el) {
- if (this.options.onLoading) {
- return this.options.onLoading(is_loading, node, $el);
- }
- };
-
- return JqTreeWidget;
-
-})(MouseWidget);
-
-JqTreeWidget.getModule = function(name) {
- var modules;
- modules = {
- 'node': node_module,
- 'util': util_module,
- 'drag_and_drop_handler': drag_and_drop_handler
- };
- return modules[name];
-};
-
-SimpleWidget.register(JqTreeWidget, 'tree');
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/util.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/util.js
deleted file mode 100644
index c214e59b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/util.js
+++ /dev/null
@@ -1,49 +0,0 @@
-var _indexOf, getBoolString, html_escape, indexOf, isFunction, isInt;
-
-_indexOf = function(array, item) {
- var i, j, len, value;
- for (i = j = 0, len = array.length; j < len; i = ++j) {
- value = array[i];
- if (value === item) {
- return i;
- }
- }
- return -1;
-};
-
-indexOf = function(array, item) {
- if (array.indexOf) {
- return array.indexOf(item);
- } else {
- return _indexOf(array, item);
- }
-};
-
-isInt = function(n) {
- return typeof n === 'number' && n % 1 === 0;
-};
-
-isFunction = function(v) {
- return typeof v === 'function';
-};
-
-html_escape = function(string) {
- return ('' + string).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\//g, '&#x2F;');
-};
-
-getBoolString = function(value) {
- if (value) {
- return 'true';
- } else {
- return 'false';
- }
-};
-
-module.exports = {
- _indexOf: _indexOf,
- getBoolString: getBoolString,
- html_escape: html_escape,
- indexOf: indexOf,
- isInt: isInt,
- isFunction: isFunction
-};
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/lib/version.js b/ecomp-portal-FE/client/bower_components/jqTree/lib/version.js
deleted file mode 100644
index 90f6eb95..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/lib/version.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = '1.3.7';
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/package.json b/ecomp-portal-FE/client/bower_components/jqTree/package.json
deleted file mode 100644
index ebdd6457..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "name": "jqtree",
- "version": "1.3.7",
- "description": "Tree widget for jQuery",
- "keywords": [
- "jquery-plugin",
- "tree"
- ],
- "license": "Apache-2.0",
- "main": "lib/tree.jquery.js",
- "repository": {
- "type": "git",
- "url": "https://github.com/mbraak/jqtree"
- },
- "scripts": {
- "test": "karma start --browsers Chrome --single-run && coffeelint src",
- "build": "gulp",
- "watch": "gulp watch",
- "karma": "karma start --browsers Chrome"
- },
- "dependencies": {
- "jquery": ">=1.9"
- },
- "devDependencies": {
- "browserify": "^13.3.0",
- "coffee-script": "^1.12.2",
- "coffeeify": "^2.1.0",
- "connect": "^3.5.0",
- "coveralls": "^2.11.15",
- "gulp": "^3.9.1",
- "gulp-coffee": "^2.3.3",
- "gulp-coffeeify": "0.1.8",
- "gulp-coffeelint": "^0.6.0",
- "gulp-header": "^1.8.8",
- "gulp-rename": "^1.2.2",
- "gulp-sass": "^3.1.0",
- "ie-version": "^0.1.0",
- "jquery-mockjax": "^2.2.1",
- "karma": "^1.3.0",
- "karma-browserify": "^5.1.0",
- "karma-chrome-launcher": "^2.0.0",
- "karma-cli": "^1.0.1",
- "karma-firefox-launcher": "^1.0.0",
- "karma-phantomjs-launcher": "^1.0.2",
- "karma-qunit": "^1.2.1",
- "phantomjs-prebuilt": "^2.1.14",
- "qunitjs": "^2.1.1",
- "serve-static": "^1.11.1",
- "watchify": "^3.8.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/phantomjs/runner.js b/ecomp-portal-FE/client/bower_components/jqTree/phantomjs/runner.js
deleted file mode 100644
index 156ab40e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/phantomjs/runner.js
+++ /dev/null
@@ -1,193 +0,0 @@
-/*
- * QtWebKit-powered headless test runner using PhantomJS
- *
- * PhantomJS binaries: http://phantomjs.org/download.html
- * Requires PhantomJS 1.6+ (1.7+ recommended)
- *
- * Run with:
- * phantomjs runner.js [url-of-your-qunit-testsuite]
- *
- * e.g.
- * phantomjs runner.js http://localhost/qunit/test/index.html
- */
-
-/*global phantom:false, require:false, console:false, window:false, QUnit:false */
-
-(function() {
- 'use strict';
-
- var url, page, timeout,
- args = require('system').args;
-
- // arg[0]: scriptName, args[1...]: arguments
- if (args.length < 2 || args.length > 3) {
- console.error('Usage:\n phantomjs runner.js [url-of-your-qunit-testsuite] [timeout-in-seconds]');
- phantom.exit(1);
- }
-
- url = args[1];
- page = require('webpage').create();
- if (args[2] !== undefined) {
- timeout = parseInt(args[2], 10);
- }
-
- // Route `console.log()` calls from within the Page context to the main Phantom context (i.e. current `this`)
- page.onConsoleMessage = function(msg) {
- console.log(msg);
- };
-
- page.onInitialized = function() {
- page.evaluate(addLogging);
- };
-
- page.onCallback = function(message) {
- var result,
- failed;
-
- if (message) {
- if (message.name === 'QUnit.done') {
- result = message.data;
- failed = !result || !result.total || result.failed;
-
- if (!result.total) {
- console.error('No tests were executed. Are you loading tests asynchronously?');
- }
-
- // Work-around to avoid "Unsafe JavaScript attempt to access frame" warning in PhantomJS 1.9.8.
- // See: https://github.com/ariya/phantomjs/issues/12697
- page.close();
- setTimeout(function () { phantom.exit(failed ? 1 : 0) }, 0);
- }
- else if (message.name == 'Blanket.done') {
- console.log('Saving coverage data to data.lcov.');
-
- var fs = require('fs');
- var f = fs.open('data.lcov', 'w');
- f.write(message.data);
- f.close();
- }
-
- }
- };
-
- page.open(url, function(status) {
- if (status !== 'success') {
- console.error('Unable to access network: ' + status);
- phantom.exit(1);
- } else {
- // Cannot do this verification with the 'DOMContentLoaded' handler because it
- // will be too late to attach it if a page does not have any script tags.
- var qunitMissing = page.evaluate(function() { return (typeof QUnit === 'undefined' || !QUnit); });
- if (qunitMissing) {
- console.error('The `QUnit` object is not present on this page.');
- phantom.exit(1);
- }
-
- // Set a timeout on the test running, otherwise tests with async problems will hang forever
- if (typeof timeout === 'number') {
- setTimeout(function() {
- console.error('The specified timeout of ' + timeout + ' seconds has expired. Aborting...');
- phantom.exit(1);
- }, timeout * 1000);
- }
-
- // Do nothing... the callback mechanism will handle everything!
- }
- });
-
- function addLogging() {
- window.document.addEventListener('DOMContentLoaded', function() {
- var currentTestAssertions = [];
-
- QUnit.log(function(details) {
- var response;
-
- // Ignore passing assertions
- if (details.result) {
- return;
- }
-
- response = details.message || '';
-
- if (typeof details.expected !== 'undefined') {
- if (response) {
- response += ', ';
- }
-
- response += 'expected: ' + details.expected + ', but was: ' + details.actual;
- }
-
- if (details.source) {
- response += "\n" + details.source;
- }
-
- currentTestAssertions.push('Failed assertion: ' + response);
- });
-
- QUnit.testDone(function(result) {
- var i,
- len,
- name = result.module + ': ' + result.name;
-
- if (result.failed) {
- console.log('Test failed: ' + name);
-
- for (i = 0, len = currentTestAssertions.length; i < len; i++) {
- console.log(' ' + currentTestAssertions[i]);
- }
- }
-
- currentTestAssertions.length = 0;
- });
-
- QUnit.done(function(result) {
- console.log('Took ' + result.runtime + 'ms to run ' + result.total + ' tests. ' + result.passed + ' passed, ' + result.failed + ' failed.');
-
- if (typeof window.callPhantom === 'function') {
- window.callPhantom({
- 'name': 'QUnit.done',
- 'data': result
- });
- }
- });
-
- blanket.options(
- 'reporter',
- function(coverage) {
- var result = '';
-
- function addLine() {
- for (var i=0; i<arguments.length; i++) {
- result += arguments[i];
- }
-
- result += '\n';
- }
-
- for (var filename in coverage.files) {
- var data = coverage.files[filename];
-
- addLine('SF:', filename.replace('http://localhost:8000/', ''));
-
- data.source.forEach(function(line, num) {
- num++;
-
- if (data[num] !== undefined) {
- addLine('DA:', num, ',', data[num]);
- }
- });
-
- addLine('end_of_record');
- }
-
- if (typeof window.callPhantom === 'function') {
- window.callPhantom({
- 'name': 'Blanket.done',
- 'data': result
- });
- }
- }
- );
- }, false);
- }
-})();
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/phantomjs/server.js b/ecomp-portal-FE/client/bower_components/jqTree/phantomjs/server.js
deleted file mode 100644
index 794153e9..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/phantomjs/server.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var connect = require('connect');
-var path = require('path');
-var serveStatic = require('serve-static');
-
-var static_dir = path.normalize(
- path.join(__dirname, '..')
-);
-
-var app = connect();
-
-app.use(
- serveStatic(static_dir)
-);
-app.listen(8000);
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/screenshot.png b/ecomp-portal-FE/client/bower_components/jqTree/screenshot.png
deleted file mode 100644
index 8af44e55..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/screenshot.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/sitemap.txt b/ecomp-portal-FE/client/bower_components/jqTree/sitemap.txt
deleted file mode 100644
index e8668ae0..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/sitemap.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-https://mbraak.github.io/jqTree/
-https://mbraak.github.io/jqTree/examples/01_load_json_data/
-https://mbraak.github.io/jqTree/examples/02_load_json_data_from_server/
-https://mbraak.github.io/jqTree/examples/03_drag_and_drop/
-https://mbraak.github.io/jqTree/examples/04_save_state/
-https://mbraak.github.io/jqTree/examples/05_load_on_demand/
-https://mbraak.github.io/jqTree/examples/06_autoescape/
-https://mbraak.github.io/jqTree/examples/07_autoscroll/
-https://mbraak.github.io/jqTree/examples/08_multiple_select/
-https://mbraak.github.io/jqTree/examples/09_custom_html/
-https://mbraak.github.io/jqTree/examples/10_icon_buttons/
-https://mbraak.github.io/jqTree/examples/11_right-to-left/
-https://mbraak.github.io/jqTree/examples/12_button_on_right/
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/drag_and_drop_handler.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/drag_and_drop_handler.coffee
deleted file mode 100644
index 38b1d521..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/drag_and_drop_handler.coffee
+++ /dev/null
@@ -1,491 +0,0 @@
-node_module = require './node'
-util = require './util'
-
-Position = node_module.Position
-
-$ = jQuery
-
-
-class DragAndDropHandler
- constructor: (tree_widget) ->
- @tree_widget = tree_widget
-
- @hovered_area = null
- @$ghost = null
- @hit_areas = []
- @is_dragging = false
- @current_item = null
-
- mouseCapture: (position_info) ->
- $element = $(position_info.target)
-
- if not @mustCaptureElement($element)
- return null
-
- if @tree_widget.options.onIsMoveHandle and not @tree_widget.options.onIsMoveHandle($element)
- return null
-
- node_element = @tree_widget._getNodeElement($element)
-
- if node_element and @tree_widget.options.onCanMove
- if not @tree_widget.options.onCanMove(node_element.node)
- node_element = null
-
- @current_item = node_element
- return (@current_item != null)
-
- mouseStart: (position_info) ->
- @refresh()
-
- offset = $(position_info.target).offset()
-
- node = @current_item.node
-
- if @tree_widget.options.autoEscape
- node_name = util.html_escape(node.name)
- else
- node_name = node.name
-
- @drag_element = new DragElement(
- node_name,
- position_info.page_x - offset.left,
- position_info.page_y - offset.top,
- @tree_widget.element
- )
-
- @is_dragging = true
- @current_item.$element.addClass('jqtree-moving')
- return true
-
- mouseDrag: (position_info) ->
- @drag_element.move(position_info.page_x, position_info.page_y)
-
- area = @findHoveredArea(position_info.page_x, position_info.page_y)
- can_move_to = @canMoveToArea(area)
-
- if can_move_to and area
- if !area.node.isFolder()
- @stopOpenFolderTimer()
-
- if @hovered_area != area
- @hovered_area = area
-
- # If this is a closed folder, start timer to open it
- if @mustOpenFolderTimer(area)
- @startOpenFolderTimer(area.node)
- else
- @stopOpenFolderTimer()
-
- @updateDropHint()
- else
- @removeHover()
- @removeDropHint()
- @stopOpenFolderTimer()
-
- if not area
- if @tree_widget.options.onDragMove?
- @tree_widget.options.onDragMove(@current_item.node, position_info.original_event)
-
- return true
-
- mustCaptureElement: ($element) ->
- return not $element.is('input,select,textarea')
-
- canMoveToArea: (area) ->
- if not area
- return false
- else if @tree_widget.options.onCanMoveTo
- position_name = Position.getName(area.position)
-
- return @tree_widget.options.onCanMoveTo(@current_item.node, area.node, position_name)
- else
- return true
-
- mouseStop: (position_info) ->
- @moveItem(position_info)
- @clear()
- @removeHover()
- @removeDropHint()
- @removeHitAreas()
-
- current_item = @current_item
-
- if @current_item
- @current_item.$element.removeClass('jqtree-moving')
- @current_item = null
-
- @is_dragging = false
-
- if not @hovered_area and current_item
- if @tree_widget.options.onDragStop?
- @tree_widget.options.onDragStop(current_item.node, position_info.original_event)
-
- return false
-
- refresh: ->
- @removeHitAreas()
-
- if @current_item
- @generateHitAreas()
-
- @current_item = @tree_widget._getNodeElementForNode(@current_item.node)
-
- if @is_dragging
- @current_item.$element.addClass('jqtree-moving')
-
- removeHitAreas: ->
- @hit_areas = []
-
- clear: ->
- @drag_element.remove()
- @drag_element = null
-
- removeDropHint: ->
- if @previous_ghost
- @previous_ghost.remove()
-
- removeHover: ->
- @hovered_area = null
-
- generateHitAreas: ->
- hit_areas_generator = new HitAreasGenerator(
- @tree_widget.tree,
- @current_item.node,
- @getTreeDimensions().bottom
- )
- @hit_areas = hit_areas_generator.generate()
-
- findHoveredArea: (x, y) ->
- dimensions = @getTreeDimensions()
-
- if (
- x < dimensions.left or
- y < dimensions.top or
- x > dimensions.right or
- y > dimensions.bottom
- )
- return null
-
- low = 0
- high = @hit_areas.length
- while (low < high)
- mid = (low + high) >> 1
- area = @hit_areas[mid]
-
- if y < area.top
- high = mid
- else if y > area.bottom
- low = mid + 1
- else
- return area
-
- return null
-
- mustOpenFolderTimer: (area) ->
- node = area.node
-
- return (
- node.isFolder() and
- not node.is_open and
- area.position == Position.INSIDE
- )
-
- updateDropHint: ->
- if not @hovered_area
- return
-
- # remove previous drop hint
- @removeDropHint()
-
- # add new drop hint
- node_element = @tree_widget._getNodeElementForNode(@hovered_area.node)
- @previous_ghost = node_element.addDropHint(@hovered_area.position)
-
- startOpenFolderTimer: (folder) ->
- openFolder = =>
- @tree_widget._openNode(
- folder,
- @tree_widget.options.slide,
- =>
- @refresh()
- @updateDropHint()
- )
-
- @stopOpenFolderTimer()
-
- @open_folder_timer = setTimeout(openFolder, @tree_widget.options.openFolderDelay)
-
- stopOpenFolderTimer: ->
- if @open_folder_timer
- clearTimeout(@open_folder_timer)
- @open_folder_timer = null
-
- moveItem: (position_info) ->
- if (
- @hovered_area and
- @hovered_area.position != Position.NONE and
- @canMoveToArea(@hovered_area)
- )
- moved_node = @current_item.node
- target_node = @hovered_area.node
- position = @hovered_area.position
- previous_parent = moved_node.parent
-
- if position == Position.INSIDE
- @hovered_area.node.is_open = true
-
- doMove = =>
- @tree_widget.tree.moveNode(moved_node, target_node, position)
- @tree_widget.element.empty()
- @tree_widget._refreshElements()
-
- event = @tree_widget._triggerEvent(
- 'tree.move',
- move_info:
- moved_node: moved_node
- target_node: target_node
- position: Position.getName(position)
- previous_parent: previous_parent
- do_move: doMove
- original_event: position_info.original_event
- )
-
- doMove() unless event.isDefaultPrevented()
-
- getTreeDimensions: ->
- # Return the dimensions of the tree. Add a margin to the bottom to allow
- # for some to drag-and-drop the last element.
- offset = @tree_widget.element.offset()
-
- return {
- left: offset.left,
- top: offset.top,
- right: offset.left + @tree_widget.element.width(),
- bottom: offset.top + @tree_widget.element.height() + 16
- }
-
-
-class VisibleNodeIterator
- constructor: (tree) ->
- @tree = tree
-
- iterate: ->
- is_first_node = true
-
- _iterateNode = (node, next_node) =>
- must_iterate_inside = (
- (node.is_open or not node.element) and node.hasChildren()
- )
-
- if node.element
- $element = $(node.element)
-
- if not $element.is(':visible')
- return
-
- if is_first_node
- @handleFirstNode(node, $element)
- is_first_node = false
-
- if not node.hasChildren()
- @handleNode(node, next_node, $element)
- else if node.is_open
- if not @handleOpenFolder(node, $element)
- must_iterate_inside = false
- else
- @handleClosedFolder(node, next_node, $element)
-
- if must_iterate_inside
- children_length = node.children.length
- for child, i in node.children
- if i == (children_length - 1)
- _iterateNode(node.children[i], null)
- else
- _iterateNode(node.children[i], node.children[i+1])
-
- if node.is_open
- @handleAfterOpenFolder(node, next_node, $element)
-
- _iterateNode(@tree, null)
-
- handleNode: (node, next_node, $element) ->
- # override
-
- handleOpenFolder: (node, $element) ->
- # override
- # return
- # - true: continue iterating
- # - false: stop iterating
-
- handleClosedFolder: (node, next_node, $element) ->
- # override
-
- handleAfterOpenFolder: (node, next_node, $element) ->
- # override
-
- handleFirstNode: (node, $element) ->
- # override
-
-
-class HitAreasGenerator extends VisibleNodeIterator
- constructor: (tree, current_node, tree_bottom) ->
- super(tree)
-
- @current_node = current_node
- @tree_bottom = tree_bottom
-
- generate: ->
- @positions = []
- @last_top = 0
-
- @iterate()
-
- return @generateHitAreas(@positions)
-
- getTop: ($element) ->
- return $element.offset().top
-
- addPosition: (node, position, top) ->
- area = {
- top: top
- node: node
- position: position
- }
-
- @positions.push(area)
- @last_top = top
-
- handleNode: (node, next_node, $element) ->
- top = @getTop($element)
-
- if node == @current_node
- # Cannot move inside current item
- @addPosition(node, Position.NONE, top)
- else
- @addPosition(node, Position.INSIDE, top)
-
- if (
- next_node == @current_node or
- node == @current_node
- )
- # Cannot move before or after current item
- @addPosition(node, Position.NONE, top)
- else
- @addPosition(node, Position.AFTER, top)
-
- handleOpenFolder: (node, $element) ->
- if node == @current_node
- # Cannot move inside current item
- # Stop iterating
- return false
-
- # Cannot move before current item
- if node.children[0] != @current_node
- @addPosition(node, Position.INSIDE, @getTop($element))
-
- # Continue iterating
- return true
-
- handleClosedFolder: (node, next_node, $element) ->
- top = @getTop($element)
-
- if node == @current_node
- # Cannot move after current item
- @addPosition(node, Position.NONE, top)
- else
- @addPosition(node, Position.INSIDE, top)
-
- # Cannot move before current item
- if next_node != @current_node
- @addPosition(node, Position.AFTER, top)
-
- handleFirstNode: (node, $element) ->
- if node != @current_node
- @addPosition(node, Position.BEFORE, @getTop($(node.element)))
-
- handleAfterOpenFolder: (node, next_node, $element) ->
- if (
- node == @current_node.node or
- next_node == @current_node.node
- )
- # Cannot move before or after current item
- @addPosition(node, Position.NONE, @last_top)
- else
- @addPosition(node, Position.AFTER, @last_top)
-
- generateHitAreas: (positions) ->
- previous_top = -1
- group = []
- hit_areas = []
-
- for position in positions
- if position.top != previous_top and group.length
- if group.length
- @generateHitAreasForGroup(
- hit_areas,
- group,
- previous_top,
- position.top
- )
-
- previous_top = position.top
- group = []
-
- group.push(position)
-
- @generateHitAreasForGroup(
- hit_areas,
- group,
- previous_top,
- @tree_bottom
- )
-
- return hit_areas
-
- generateHitAreasForGroup: (hit_areas, positions_in_group, top, bottom) ->
- # limit positions in group
- position_count = Math.min(positions_in_group.length, 4)
-
- area_height = Math.round((bottom - top) / position_count)
- area_top = top
-
- i = 0
- while (i < position_count)
- position = positions_in_group[i]
-
- hit_areas.push(
- top: area_top,
- bottom: area_top + area_height,
- node: position.node,
- position: position.position
- )
-
- area_top += area_height
- i += 1
-
- return null
-
-
-class DragElement
- constructor: (node_name, offset_x, offset_y, $tree) ->
- @offset_x = offset_x
- @offset_y = offset_y
-
- @$element = $("<span class=\"jqtree-title jqtree-dragging\">#{ node_name }</span>")
- @$element.css("position", "absolute")
- $tree.append(@$element)
-
- move: (page_x, page_y) ->
- @$element.offset(
- left: page_x - @offset_x,
- top: page_y - @offset_y
- )
-
- remove: ->
- @$element.remove()
-
-
-module.exports =
- DragAndDropHandler: DragAndDropHandler
- DragElement: DragElement
- HitAreasGenerator: HitAreasGenerator
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/elements_renderer.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/elements_renderer.coffee
deleted file mode 100644
index b68cf917..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/elements_renderer.coffee
+++ /dev/null
@@ -1,237 +0,0 @@
-node_element = require './node_element'
-NodeElement = node_element.NodeElement
-
-util = require './util'
-html_escape = util.html_escape
-
-
-$ = jQuery
-
-
-class ElementsRenderer
- constructor: (tree_widget) ->
- @tree_widget = tree_widget
-
- @opened_icon_element = @createButtonElement(tree_widget.options.openedIcon)
- @closed_icon_element = @createButtonElement(tree_widget.options.closedIcon)
-
- render: (from_node) ->
- if from_node and from_node.parent
- @renderFromNode(from_node)
- else
- @renderFromRoot()
-
- renderFromRoot: ->
- $element = @tree_widget.element
- $element.empty()
-
- @createDomElements($element[0], @tree_widget.tree.children, true, true, 1)
-
- renderFromNode: (node) ->
- # remember current li
- $previous_li = $(node.element)
-
- # create element
- li = @createLi(node, node.getLevel())
- @attachNodeData(node, li)
-
- # add element to dom
- $previous_li.after(li)
-
- # remove previous li
- $previous_li.remove()
-
- # create children
- if node.children
- @createDomElements(li, node.children, false, false, node.getLevel() + 1)
-
- createDomElements: (element, children, is_root_node, is_open, level) ->
- ul = @createUl(is_root_node)
- element.appendChild(ul)
-
- for child in children
- li = @createLi(child, level)
- ul.appendChild(li)
-
- @attachNodeData(child, li)
-
- if child.hasChildren()
- @createDomElements(li, child.children, false, child.is_open, level + 1)
-
- return null
-
- attachNodeData: (node, li) ->
- node.element = li
- $(li).data('node', node)
-
- createUl: (is_root_node) ->
- if !is_root_node
- class_string = ''
- role = 'group'
- else
- class_string = 'jqtree-tree'
- role = 'tree'
-
- if @tree_widget.options.rtl
- class_string += ' jqtree-rtl'
-
- ul = document.createElement('ul')
- ul.className = "jqtree_common #{ class_string }"
-
- ul.setAttribute('role', role)
-
- return ul
-
- createLi: (node, level) ->
- is_selected = @tree_widget.select_node_handler and @tree_widget.select_node_handler.isNodeSelected(node)
-
- if node.isFolder()
- li = @createFolderLi(node, level, is_selected)
- else
- li = @createNodeLi(node, level, is_selected)
-
- if @tree_widget.options.onCreateLi
- @tree_widget.options.onCreateLi(node, $(li))
-
- return li
-
- createFolderLi: (node, level, is_selected) ->
- button_classes = @getButtonClasses(node)
- folder_classes = @getFolderClasses(node, is_selected)
-
- if node.is_open
- icon_element = @opened_icon_element
- else
- icon_element = @closed_icon_element
-
- # li
- li = document.createElement('li')
- li.className = "jqtree_common #{ folder_classes }"
- li.setAttribute('role', 'presentation')
-
- # div
- div = document.createElement('div')
- div.className = "jqtree-element jqtree_common"
- div.setAttribute('role', 'presentation')
-
- li.appendChild(div)
-
- # button link
- button_link = document.createElement('a')
- button_link.className = button_classes
-
- button_link.appendChild(
- icon_element.cloneNode(false)
- )
-
- button_link.setAttribute('role', 'presentation')
- button_link.setAttribute('aria-hidden', 'true')
-
- if @tree_widget.options.buttonLeft
- div.appendChild(button_link)
-
- # title span
- div.appendChild(
- @createTitleSpan(node.name, level, is_selected, node.is_open, is_folder=true)
- )
-
- if not @tree_widget.options.buttonLeft
- div.appendChild(button_link)
-
- return li
-
- createNodeLi: (node, level, is_selected) ->
- li_classes = ['jqtree_common']
-
- if is_selected
- li_classes.push('jqtree-selected')
-
- class_string = li_classes.join(' ')
-
- # li
- li = document.createElement('li')
- li.className = class_string
- li.setAttribute('role', 'presentation')
-
- # div
- div = document.createElement('div')
- div.className = "jqtree-element jqtree_common"
- div.setAttribute('role', 'presentation')
-
- li.appendChild(div)
-
- # title span
- div.appendChild(
- @createTitleSpan(node.name, level, is_selected, node.is_open, is_folder=false)
- )
-
- return li
-
- createTitleSpan: (node_name, level, is_selected, is_open, is_folder) ->
- title_span = document.createElement('span')
-
- classes = "jqtree-title jqtree_common"
-
- if is_folder
- classes += " jqtree-title-folder"
-
- title_span.className = classes
-
- title_span.setAttribute('role', 'treeitem')
- title_span.setAttribute('aria-level', level)
-
- title_span.setAttribute('aria-selected', util.getBoolString(is_selected))
- title_span.setAttribute('aria-expanded', util.getBoolString(is_open))
-
- if is_selected
- title_span.setAttribute('tabindex', 0)
-
- title_span.innerHTML = @escapeIfNecessary(node_name)
-
- return title_span
-
- getButtonClasses: (node) ->
- classes = ['jqtree-toggler', 'jqtree_common']
-
- if not node.is_open
- classes.push('jqtree-closed')
-
- if @tree_widget.options.buttonLeft
- classes.push('jqtree-toggler-left')
- else
- classes.push('jqtree-toggler-right')
-
- return classes.join(' ')
-
- getFolderClasses: (node, is_selected) ->
- classes = ['jqtree-folder']
-
- if not node.is_open
- classes.push('jqtree-closed')
-
- if is_selected
- classes.push('jqtree-selected')
-
- if node.is_loading
- classes.push('jqtree-loading')
-
- return classes.join(' ')
-
- escapeIfNecessary: (value) ->
- if @tree_widget.options.autoEscape
- return html_escape(value)
- else
- return value
-
- createButtonElement: (value) ->
- if typeof value == 'string'
- # convert value to html
- div = document.createElement('div')
- div.innerHTML = value
-
- return document.createTextNode(div.innerHTML)
- else
- return $(value)[0]
-
-
-module.exports = ElementsRenderer
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/header.txt b/ecomp-portal-FE/client/bower_components/jqTree/src/header.txt
deleted file mode 100644
index bb10525a..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/header.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-JqTree <%= pkg.version %>
-
-Copyright 2015 Marco Braak
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/key_handler.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/key_handler.coffee
deleted file mode 100644
index c8c17e7c..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/key_handler.coffee
+++ /dev/null
@@ -1,107 +0,0 @@
-$ = jQuery
-
-
-class KeyHandler
- LEFT = 37
- UP = 38
- RIGHT = 39
- DOWN = 40
-
- constructor: (tree_widget) ->
- @tree_widget = tree_widget
-
- if tree_widget.options.keyboardSupport
- $(document).bind('keydown.jqtree', $.proxy(@handleKeyDown, this))
-
- deinit: ->
- $(document).unbind('keydown.jqtree')
-
- moveDown: ->
- node = @tree_widget.getSelectedNode()
-
- if node
- return @selectNode(node.getNextNode())
- else
- return false
-
- moveUp: ->
- node = @tree_widget.getSelectedNode()
-
- if node
- return @selectNode(node.getPreviousNode())
- else
- return false
-
- moveRight: ->
- node = @tree_widget.getSelectedNode()
-
- if not node
- return true
- else if not node.isFolder()
- return true
- else
- # folder node
- if node.is_open
- # Right moves to the first child of an open node
- return @selectNode(node.getNextNode())
- else
- # Right expands a closed node
- @tree_widget.openNode(node)
- return false
-
- moveLeft: ->
- node = @tree_widget.getSelectedNode()
-
- if not node
- return true
- else if node.isFolder() and node.is_open
- # Left on an open node closes the node
- @tree_widget.closeNode(node)
- return false
- else
- # Left on a closed or end node moves focus to the node's parent
- return @selectNode(node.getParent())
-
- handleKeyDown: (e) ->
- if not @tree_widget.options.keyboardSupport
- return true
-
- if $(document.activeElement).is('textarea,input,select')
- return true
-
- if not @tree_widget.getSelectedNode()
- return true
-
- key = e.which
-
- switch key
- when DOWN
- return @moveDown()
-
- when UP
- return @moveUp()
-
- when RIGHT
- return @moveRight()
-
- when LEFT
- return @moveLeft()
-
- return true
-
- selectNode: (node) =>
- if not node
- return true
- else
- @tree_widget.selectNode(node)
-
- if (
- @tree_widget.scroll_handler and
- (not @tree_widget.scroll_handler.isScrolledIntoView($(node.element).find('.jqtree-element')))
- )
- @tree_widget.scrollToNode(node)
-
- return false
-
-
-module.exports = KeyHandler
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/mouse.widget.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/mouse.widget.coffee
deleted file mode 100644
index f76ff7e6..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/mouse.widget.coffee
+++ /dev/null
@@ -1,184 +0,0 @@
-###
-This widget does the same a the mouse widget in jqueryui.
-###
-
-SimpleWidget = require './simple.widget'
-
-
-$ = jQuery
-
-
-class MouseWidget extends SimpleWidget
- @is_mouse_handled = false
-
- _init: ->
- @$el.bind('mousedown.mousewidget', $.proxy(@_mouseDown, this))
- @$el.bind('touchstart.mousewidget', $.proxy(@_touchStart, this))
-
- @is_mouse_started = false
- @mouse_delay = 0
- @_mouse_delay_timer = null
- @_is_mouse_delay_met = true
- @mouse_down_info = null
-
- _deinit: ->
- @$el.unbind('mousedown.mousewidget')
- @$el.unbind('touchstart.mousewidget')
-
- $document = $(document)
- $document.unbind('mousemove.mousewidget')
- $document.unbind('mouseup.mousewidget')
-
- _mouseDown: (e) ->
- # Is left mouse button?
- if e.which != 1
- return
-
- result = @_handleMouseDown(
- e,
- @_getPositionInfo(e)
- )
-
- if result
- e.preventDefault()
-
- return result
-
- _handleMouseDown: (e, position_info) ->
- # Don't let more than one widget handle mouseStart
- if MouseWidget.is_mouse_handled
- return
-
- # We may have missed mouseup (out of window)
- if @is_mouse_started
- @_handleMouseUp(position_info)
-
- @mouse_down_info = position_info
-
- if not @_mouseCapture(position_info)
- return
-
- @_handleStartMouse()
-
- @is_mouse_handled = true
- return true
-
- _handleStartMouse: ->
- $document = $(document)
- $document.bind('mousemove.mousewidget', $.proxy(@_mouseMove, this))
- $document.bind('touchmove.mousewidget', $.proxy(@_touchMove, this))
- $document.bind('mouseup.mousewidget', $.proxy(@_mouseUp, this))
- $document.bind('touchend.mousewidget', $.proxy(@_touchEnd, this))
-
- if @mouse_delay
- @_startMouseDelayTimer()
-
- _startMouseDelayTimer: ->
- if @_mouse_delay_timer
- clearTimeout(@_mouse_delay_timer)
-
- @_mouse_delay_timer = setTimeout(
- =>
- @_is_mouse_delay_met = true
- , @mouse_delay
- )
-
- @_is_mouse_delay_met = false
-
- _mouseMove: (e) ->
- return @_handleMouseMove(
- e,
- @_getPositionInfo(e)
- )
-
- _handleMouseMove: (e, position_info) ->
- if @is_mouse_started
- @_mouseDrag(position_info)
- return e.preventDefault()
-
- if @mouse_delay and not @_is_mouse_delay_met
- return true
-
- @is_mouse_started = @_mouseStart(@mouse_down_info) != false
-
- if @is_mouse_started
- @_mouseDrag(position_info)
- else
- @_handleMouseUp(position_info)
-
- return not @is_mouse_started
-
- _getPositionInfo: (e) ->
- return {
- page_x: e.pageX,
- page_y: e.pageY,
- target: e.target,
- original_event: e
- }
-
- _mouseUp: (e) ->
- return @_handleMouseUp(
- @_getPositionInfo(e)
- )
-
- _handleMouseUp: (position_info) ->
- $document = $(document)
- $document.unbind('mousemove.mousewidget')
- $document.unbind('touchmove.mousewidget')
- $document.unbind('mouseup.mousewidget')
- $document.unbind('touchend.mousewidget')
-
- if @is_mouse_started
- @is_mouse_started = false
- @_mouseStop(position_info)
-
- return
-
- _mouseCapture: (position_info) ->
- return true
-
- _mouseStart: (position_info) ->
- null
-
- _mouseDrag: (position_info) ->
- null
-
- _mouseStop: (position_info) ->
- null
-
- setMouseDelay: (mouse_delay) ->
- @mouse_delay = mouse_delay
-
- _touchStart: (e) ->
- if e.originalEvent.touches.length > 1
- return
-
- touch = e.originalEvent.changedTouches[0]
-
- return @_handleMouseDown(
- e,
- @_getPositionInfo(touch)
- )
-
- _touchMove: (e) ->
- if e.originalEvent.touches.length > 1
- return
-
- touch = e.originalEvent.changedTouches[0]
-
- return @_handleMouseMove(
- e,
- @_getPositionInfo(touch)
- )
-
- _touchEnd: (e) ->
- if e.originalEvent.touches.length > 1
- return
-
- touch = e.originalEvent.changedTouches[0]
-
- return @_handleMouseUp(
- @_getPositionInfo(touch)
- )
-
-module.exports = MouseWidget
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/node.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/node.coffee
deleted file mode 100644
index 5af050ac..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/node.coffee
+++ /dev/null
@@ -1,490 +0,0 @@
-$ = jQuery
-
-
-Position =
- getName: (position) ->
- return Position.strings[position - 1]
-
- nameToIndex: (name) ->
- for i in [1..Position.strings.length]
- if Position.strings[i - 1] == name
- return i
- return 0
-
-Position.BEFORE = 1
-Position.AFTER = 2
-Position.INSIDE = 3
-Position.NONE = 4
-
-Position.strings = ['before', 'after', 'inside', 'none']
-
-class Node
- constructor: (o, is_root=false, node_class=Node) ->
- @name = ''
-
- @setData(o)
-
- @children = []
- @parent = null
-
- if is_root
- @id_mapping = {}
- @tree = this
- @node_class = node_class
-
- setData: (o) ->
- ###
- Set the data of this node.
-
- setData(string): set the name of the node
- setdata(object): set attributes of the node
-
- Examples:
- setdata('node1')
-
- setData({ name: 'node1', id: 1});
-
- setData({ name: 'node2', id: 2, color: 'green'});
-
- * This is an internal function; it is not in the docs
- * Does not remove existing node values
- ###
- setName = (name) =>
- if name != null
- @name = name
-
- if typeof o != 'object'
- setName(o)
- else
- for key, value of o
- if key == 'label'
- # You can use the 'label' key instead of 'name'; this is a legacy feature
- setName(value)
- else if key != 'children'
- # You can't update the children using this function
- @[key] = value
-
- return null
-
- # Init Node from data without making it the root of the tree
- initFromData: (data) ->
- addNode = (node_data) =>
- @setData(node_data)
-
- if node_data.children
- addChildren(node_data.children)
-
- addChildren = (children_data) =>
- for child in children_data
- node = new @tree.node_class('')
- node.initFromData(child)
- @addChild(node)
- return null
-
- addNode(data)
- return null
-
- ###
- Create tree from data.
-
- Structure of data is:
- [
- {
- label: 'node1',
- children: [
- { label: 'child1' },
- { label: 'child2' }
- ]
- },
- {
- label: 'node2'
- }
- ]
- ###
- loadFromData: (data) ->
- @removeChildren()
-
- for o in data
- node = new @tree.node_class(o)
- @addChild(node)
-
- if typeof o == 'object' and o.children
- node.loadFromData(o.children)
-
- return null
-
- ###
- Add child.
-
- tree.addChild(
- new Node('child1')
- );
- ###
- addChild: (node) ->
- @children.push(node)
- node._setParent(this)
-
- ###
- Add child at position. Index starts at 0.
-
- tree.addChildAtPosition(
- new Node('abc'),
- 1
- );
- ###
- addChildAtPosition: (node, index) ->
- @children.splice(index, 0, node)
- node._setParent(this)
-
- _setParent: (parent) ->
- @parent = parent
- @tree = parent.tree
- @tree.addNodeToIndex(this)
-
- ###
- Remove child. This also removes the children of the node.
-
- tree.removeChild(tree.children[0]);
- ###
- removeChild: (node) ->
- # remove children from the index
- node.removeChildren()
-
- @_removeChild(node)
-
- _removeChild: (node) ->
- @children.splice(
- @getChildIndex(node),
- 1
- )
- @tree.removeNodeFromIndex(node)
-
- ###
- Get child index.
-
- var index = getChildIndex(node);
- ###
- getChildIndex: (node) ->
- return $.inArray(node, @children)
-
- ###
- Does the tree have children?
-
- if (tree.hasChildren()) {
- //
- }
- ###
- hasChildren: ->
- return @children.length != 0
-
- isFolder: ->
- return @hasChildren() or @load_on_demand
-
- ###
- Iterate over all the nodes in the tree.
-
- Calls callback with (node, level).
-
- The callback must return true to continue the iteration on current node.
-
- tree.iterate(
- function(node, level) {
- console.log(node.name);
-
- // stop iteration after level 2
- return (level <= 2);
- }
- );
-
- ###
- iterate: (callback) ->
- _iterate = (node, level) ->
- if node.children
- for child in node.children
- result = callback(child, level)
-
- if result and child.hasChildren()
- _iterate(child, level + 1)
- return null
-
- _iterate(this, 0)
- return null
-
- ###
- Move node relative to another node.
-
- Argument position: Position.BEFORE, Position.AFTER or Position.Inside
-
- // move node1 after node2
- tree.moveNode(node1, node2, Position.AFTER);
- ###
- moveNode: (moved_node, target_node, position) ->
- if moved_node.isParentOf(target_node)
- # Node is parent of target node. This is an illegal move
- return
-
- moved_node.parent._removeChild(moved_node)
- if position == Position.AFTER
- target_node.parent.addChildAtPosition(
- moved_node,
- target_node.parent.getChildIndex(target_node) + 1
- )
- else if position == Position.BEFORE
- target_node.parent.addChildAtPosition(
- moved_node,
- target_node.parent.getChildIndex(target_node)
- )
- else if position == Position.INSIDE
- # move inside as first child
- target_node.addChildAtPosition(moved_node, 0)
-
- ###
- Get the tree as data.
- ###
- getData: (include_parent=false) ->
- getDataFromNodes = (nodes) ->
- data = []
-
- for node in nodes
- tmp_node = {}
-
- for k, v of node
- if (
- k not in ['parent', 'children', 'element', 'tree'] and
- Object.prototype.hasOwnProperty.call(node, k)
- )
- tmp_node[k] = v
-
- if node.hasChildren()
- tmp_node.children = getDataFromNodes(node.children)
-
- data.push(tmp_node)
-
- return data
-
- if include_parent
- return getDataFromNodes([this])
- else
- return getDataFromNodes(@children)
-
- getNodeByName: (name) ->
- return @getNodeByCallback(
- (node) -> (node.name == name)
- )
-
- getNodeByCallback: (callback) ->
- result = null
-
- @iterate(
- (node) ->
- if callback(node)
- result = node
- return false
- else
- return true
- )
-
- return result
-
-
- addAfter: (node_info) ->
- if not @parent
- return null
- else
- node = new @tree.node_class(node_info)
-
- child_index = @parent.getChildIndex(this)
- @parent.addChildAtPosition(node, child_index + 1)
-
- if typeof node_info == 'object' and node_info.children and node_info.children.length
- node.loadFromData(node_info.children)
-
- return node
-
- addBefore: (node_info) ->
- if not @parent
- return null
- else
- node = new @tree.node_class(node_info)
-
- child_index = @parent.getChildIndex(this)
- @parent.addChildAtPosition(node, child_index)
-
- if typeof node_info == 'object' and node_info.children and node_info.children.length
- node.loadFromData(node_info.children)
-
- return node
-
- addParent: (node_info) ->
- if not @parent
- return null
- else
- new_parent = new @tree.node_class(node_info)
- new_parent._setParent(@tree)
- original_parent = @parent
-
- for child in original_parent.children
- new_parent.addChild(child)
-
- original_parent.children = []
- original_parent.addChild(new_parent)
- return new_parent
-
- remove: ->
- if @parent
- @parent.removeChild(this)
- @parent = null
-
- append: (node_info) ->
- node = new @tree.node_class(node_info)
- @addChild(node)
-
- if typeof node_info == 'object' and node_info.children and node_info.children.length
- node.loadFromData(node_info.children)
-
- return node
-
- prepend: (node_info) ->
- node = new @tree.node_class(node_info)
- @addChildAtPosition(node, 0)
-
- if typeof node_info == 'object' and node_info.children and node_info.children.length
- node.loadFromData(node_info.children)
-
- return node
-
- isParentOf: (node) ->
- parent = node.parent
-
- while parent
- if parent == this
- return true
-
- parent = parent.parent
-
- return false
-
- getLevel: ->
- level = 0
- node = this
-
- while node.parent
- level += 1
- node = node.parent
-
- return level
-
- getNodeById: (node_id) ->
- return @id_mapping[node_id]
-
- addNodeToIndex: (node) ->
- if node.id?
- @id_mapping[node.id] = node
-
- removeNodeFromIndex: (node) ->
- if node.id?
- delete @id_mapping[node.id]
-
- removeChildren: ->
- @iterate(
- (child) =>
- @tree.removeNodeFromIndex(child)
- return true
- )
-
- @children = []
-
- getPreviousSibling: ->
- if not @parent
- return null
- else
- previous_index = @parent.getChildIndex(this) - 1
- if previous_index >= 0
- return @parent.children[previous_index]
- else
- return null
-
- getNextSibling: ->
- if not @parent
- return null
- else
- next_index = @parent.getChildIndex(this) + 1
- if next_index < @parent.children.length
- return @parent.children[next_index]
- else
- return null
-
- getNodesByProperty: (key, value) ->
- return @filter(
- (node) ->
- return node[key] == value
- )
-
- filter: (f) ->
- result = []
-
- @iterate(
- (node) ->
- if f(node)
- result.push(node)
-
- return true
- )
-
- return result
-
- getNextNode: (include_children=true) ->
- if include_children and @hasChildren() and @is_open
- # First child
- return @children[0]
- else
- if not @parent
- return null
- else
- next_sibling = @getNextSibling()
- if next_sibling
- # Next sibling
- return next_sibling
- else
- # Next node of parent
- return @parent.getNextNode(false)
-
- getPreviousNode: ->
- if not @parent
- return null
- else
- previous_sibling = @getPreviousSibling()
- if previous_sibling
- if not previous_sibling.hasChildren() or not previous_sibling.is_open
- # Previous sibling
- return previous_sibling
- else
- # Last child of previous sibling
- return previous_sibling.getLastChild()
- else
- return @getParent()
-
- getParent: ->
- # Return parent except if it is the root node
- if not @parent
- return null
- else if not @parent.parent
- # Root node -> null
- return null
- else
- return @parent
-
- getLastChild: ->
- if not @hasChildren()
- return null
- else
- last_child = @children[@children.length - 1]
- if not last_child.hasChildren() or not last_child.is_open
- return last_child
- else
- return last_child.getLastChild()
-
-
-module.exports =
- Node: Node
- Position: Position
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/node_element.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/node_element.coffee
deleted file mode 100644
index 57c06a30..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/node_element.coffee
+++ /dev/null
@@ -1,170 +0,0 @@
-node = require './node'
-Position = node.Position
-
-
-$ = jQuery
-
-
-class NodeElement
- constructor: (node, tree_widget) ->
- @init(node, tree_widget)
-
- init: (node, tree_widget) ->
- @node = node
- @tree_widget = tree_widget
-
- if not node.element
- node.element = @tree_widget.element
-
- @$element = $(node.element)
-
- getUl: ->
- return @$element.children('ul:first')
-
- getSpan: ->
- return @$element.children('.jqtree-element').find('span.jqtree-title')
-
- getLi: ->
- return @$element
-
- addDropHint: (position) ->
- if position == Position.INSIDE
- return new BorderDropHint(@$element)
- else
- return new GhostDropHint(@node, @$element, position)
-
- select: ->
- $li = @getLi()
-
- $li.addClass('jqtree-selected')
- $li.attr('aria-selected', 'true')
-
- $span = @getSpan()
- $span.attr('tabindex', 0)
-
- deselect: ->
- $li = @getLi()
-
- $li.removeClass('jqtree-selected')
- $li.attr('aria-selected', 'false')
-
- $span = @getSpan()
- $span.attr('tabindex', -1)
-
-
-class FolderElement extends NodeElement
- open: (on_finished, slide=true) ->
- if not @node.is_open
- @node.is_open = true
- $button = @getButton()
- $button.removeClass('jqtree-closed')
- $button.html('')
- $button.append(@tree_widget.renderer.opened_icon_element.cloneNode(false))
-
- doOpen = =>
- $li = @getLi()
- $li.removeClass('jqtree-closed')
-
- $span = @getSpan()
- $span.attr('aria-expanded', 'true')
-
- if on_finished
- on_finished(@node)
-
- @tree_widget._triggerEvent('tree.open', node: @node)
-
- if slide
- @getUl().slideDown('fast', doOpen)
- else
- @getUl().show()
- doOpen()
-
- close: (slide=true) ->
- if @node.is_open
- @node.is_open = false
- $button = @getButton()
- $button.addClass('jqtree-closed')
- $button.html('')
- $button.append(@tree_widget.renderer.closed_icon_element.cloneNode(false))
-
- doClose = =>
- $li = @getLi()
- $li.addClass('jqtree-closed')
-
- $span = @getSpan()
- $span.attr('aria-expanded', 'false')
-
- @tree_widget._triggerEvent('tree.close', node: @node)
-
- if slide
- @getUl().slideUp('fast', doClose)
- else
- @getUl().hide()
- doClose()
-
- getButton: ->
- return @$element.children('.jqtree-element').find('a.jqtree-toggler')
-
- addDropHint: (position) ->
- if not @node.is_open and position == Position.INSIDE
- return new BorderDropHint(@$element)
- else
- return new GhostDropHint(@node, @$element, position)
-
-
-class BorderDropHint
- constructor: ($element) ->
- $div = $element.children('.jqtree-element')
- width = $element.width() - 4
-
- @$hint = $('<span class="jqtree-border"></span>')
- $div.append(@$hint)
-
- @$hint.css(
- width: width
- height: $div.outerHeight() - 4
- )
-
- remove: ->
- @$hint.remove()
-
-
-class GhostDropHint
- constructor: (node, $element, position) ->
- @$element = $element
-
- @node = node
- @$ghost = $('<li class="jqtree_common jqtree-ghost"><span class="jqtree_common jqtree-circle"></span><span class="jqtree_common jqtree-line"></span></li>')
-
- if position == Position.AFTER
- @moveAfter()
- else if position == Position.BEFORE
- @moveBefore()
- else if position == Position.INSIDE
- if node.isFolder() and node.is_open
- @moveInsideOpenFolder()
- else
- @moveInside()
-
- remove: ->
- @$ghost.remove()
-
- moveAfter: ->
- @$element.after(@$ghost)
-
- moveBefore: ->
- @$element.before(@$ghost)
-
- moveInsideOpenFolder: ->
- $(@node.children[0].element).before(@$ghost)
-
- moveInside: ->
- @$element.after(@$ghost)
- @$ghost.addClass('jqtree-inside')
-
-
-module.exports =
- BorderDropHint: BorderDropHint
- FolderElement: FolderElement
- GhostDropHint: GhostDropHint
- NodeElement: NodeElement
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/save_state_handler.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/save_state_handler.coffee
deleted file mode 100644
index 65810357..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/save_state_handler.coffee
+++ /dev/null
@@ -1,208 +0,0 @@
-util = require './util'
-
-indexOf = util.indexOf
-isInt = util.isInt
-
-
-$ = jQuery
-
-
-class SaveStateHandler
- constructor: (tree_widget) ->
- @tree_widget = tree_widget
-
- saveState: ->
- state = JSON.stringify(@getState())
-
- if @tree_widget.options.onSetStateFromStorage
- @tree_widget.options.onSetStateFromStorage(state)
- else if @supportsLocalStorage()
- localStorage.setItem(
- @getCookieName(),
- state
- )
- else if $.cookie
- $.cookie.raw = true
- $.cookie(
- @getCookieName(),
- state,
- {path: '/'}
- )
-
- getStateFromStorage: ->
- json_data = @_loadFromStorage()
-
- if json_data
- return @_parseState(json_data)
- else
- return null
-
- _parseState: (json_data) ->
- state = $.parseJSON(json_data)
-
- # Check if selected_node is an int (instead of an array)
- if state and state.selected_node and isInt(state.selected_node)
- # Convert to array
- state.selected_node = [state.selected_node]
-
- return state
-
- _loadFromStorage: ->
- if @tree_widget.options.onGetStateFromStorage
- return @tree_widget.options.onGetStateFromStorage()
- else if @supportsLocalStorage()
- return localStorage.getItem(
- @getCookieName()
- )
- else if $.cookie
- $.cookie.raw = true
- return $.cookie(@getCookieName())
- else
- return null
-
- getState: ->
- getOpenNodeIds = =>
- open_nodes = []
-
- @tree_widget.tree.iterate((node) ->
- if (
- node.is_open and
- node.id and
- node.hasChildren()
- )
- open_nodes.push(node.id)
- return true
- )
-
- return open_nodes
-
- getSelectedNodeIds = =>
- return (n.id for n in @tree_widget.getSelectedNodes())
-
- return {
- open_nodes: getOpenNodeIds(),
- selected_node: getSelectedNodeIds()
- }
-
- # Set initial state
- # Don't handle nodes that are loaded on demand
- #
- # result: must load on demand
- setInitialState: (state) ->
- if not state
- return false
- else
- must_load_on_demand = @_openInitialNodes(state.open_nodes)
-
- @_selectInitialNodes(state.selected_node)
-
- return must_load_on_demand
-
- _openInitialNodes: (node_ids) ->
- must_load_on_demand = false
-
- for node_id in node_ids
- node = @tree_widget.getNodeById(node_id)
-
- if node
- if not node.load_on_demand
- node.is_open = true
- else
- must_load_on_demand = true
-
- return must_load_on_demand
-
- _selectInitialNodes: (node_ids) ->
- select_count = 0
-
- for node_id in node_ids
- node = @tree_widget.getNodeById(node_id)
-
- if node
- select_count += 1
-
- @tree_widget.select_node_handler.addToSelection(node)
-
- return select_count != 0
-
- setInitialStateOnDemand: (state, cb_finished) ->
- if state
- @_setInitialStateOnDemand(state.open_nodes, state.selected_node, cb_finished)
- else
- cb_finished()
-
- _setInitialStateOnDemand: (node_ids, selected_nodes, cb_finished) ->
- loading_count = 0
-
- openNodes = =>
- new_nodes_ids = []
-
- for node_id in node_ids
- node = @tree_widget.getNodeById(node_id)
-
- if not node
- new_nodes_ids.push(node_id)
- else
- if not node.is_loading
- if node.load_on_demand
- loadAndOpenNode(node)
- else
- @tree_widget._openNode(node, false)
-
- node_ids = new_nodes_ids
-
- if @_selectInitialNodes(selected_nodes)
- @tree_widget._refreshElements()
-
- if loading_count == 0
- cb_finished()
-
- loadAndOpenNode = (node) =>
- loading_count += 1
- @tree_widget._openNode(
- node,
- false,
- ->
- loading_count -= 1
- openNodes()
- )
-
- openNodes()
-
- getCookieName: ->
- if typeof @tree_widget.options.saveState is 'string'
- return @tree_widget.options.saveState
- else
- return 'tree'
-
- supportsLocalStorage: ->
- testSupport = ->
- # Is local storage supported?
- if not localStorage?
- return false
- else
- # Check if it's possible to store an item. Safari does not allow this in private browsing mode.
- try
- key = '_storage_test'
- sessionStorage.setItem(key, true)
- sessionStorage.removeItem(key)
- catch error
- return false
-
- return true
-
- if not @_supportsLocalStorage?
- @_supportsLocalStorage = testSupport()
-
- return @_supportsLocalStorage
-
- getNodeIdToBeSelected: ->
- state = @getStateFromStorage()
-
- if state and state.selected_node
- return state.selected_node[0]
- else
- return null
-
-
-module.exports = SaveStateHandler
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/scroll_handler.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/scroll_handler.coffee
deleted file mode 100644
index 3456dec5..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/scroll_handler.coffee
+++ /dev/null
@@ -1,114 +0,0 @@
-$ = jQuery
-
-
-class ScrollHandler
- constructor: (tree_widget) ->
- @tree_widget = tree_widget
- @previous_top = -1
- @is_initialized = false
-
- _initScrollParent: ->
- getParentWithOverflow = =>
- css_values = ['overflow', 'overflow-y']
-
- hasOverFlow = (el) ->
- for css_value in css_values
- if $.css(el, css_value) in ['auto', 'scroll']
- return true
-
- return false
-
- if hasOverFlow(@tree_widget.$el[0])
- return @tree_widget.$el
-
- for el in @tree_widget.$el.parents()
- if hasOverFlow(el)
- return $(el)
-
- return null
-
- setDocumentAsScrollParent = =>
- @scroll_parent_top = 0
- @$scroll_parent = null
-
- if @tree_widget.$el.css('position') == 'fixed'
- setDocumentAsScrollParent()
-
- $scroll_parent = getParentWithOverflow()
-
- if $scroll_parent and $scroll_parent.length and $scroll_parent[0].tagName != 'HTML'
- @$scroll_parent = $scroll_parent
- @scroll_parent_top = @$scroll_parent.offset().top
- else
- setDocumentAsScrollParent()
-
- @is_initialized = true
-
- _ensureInit: ->
- if not @is_initialized
- @_initScrollParent()
-
- checkScrolling: ->
- @_ensureInit()
-
- hovered_area = @tree_widget.dnd_handler.hovered_area
-
- if hovered_area and hovered_area.top != @previous_top
- @previous_top = hovered_area.top
-
- if @$scroll_parent
- @_handleScrollingWithScrollParent(hovered_area)
- else
- @_handleScrollingWithDocument(hovered_area)
-
- _handleScrollingWithScrollParent: (area) ->
- distance_bottom = @scroll_parent_top + @$scroll_parent[0].offsetHeight - area.bottom
-
- if distance_bottom < 20
- @$scroll_parent[0].scrollTop += 20
- @tree_widget.refreshHitAreas()
- @previous_top = -1
- else if (area.top - @scroll_parent_top) < 20
- @$scroll_parent[0].scrollTop -= 20
- @tree_widget.refreshHitAreas()
- @previous_top = -1
-
- _handleScrollingWithDocument: (area) ->
- distance_top = area.top - $(document).scrollTop()
-
- if distance_top < 20
- $(document).scrollTop($(document).scrollTop() - 20)
- else if $(window).height() - (area.bottom - $(document).scrollTop()) < 20
- $(document).scrollTop($(document).scrollTop() + 20)
-
- scrollTo: (top) ->
- @_ensureInit()
-
- if @$scroll_parent
- @$scroll_parent[0].scrollTop = top
- else
- tree_top = @tree_widget.$el.offset().top
- $(document).scrollTop(top + tree_top)
-
- isScrolledIntoView: (element) ->
- @_ensureInit()
-
- $element = $(element)
-
- if @$scroll_parent
- view_top = 0
- view_bottom = @$scroll_parent.height()
-
- element_top = $element.offset().top - @scroll_parent_top
- element_bottom = element_top + $element.height()
- else
- view_top = $(window).scrollTop()
- view_bottom = view_top + $(window).height()
-
- element_top = $element.offset().top
- element_bottom = element_top + $element.height()
-
- return (element_bottom <= view_bottom) and (element_top >= view_top)
-
-
-module.exports = ScrollHandler
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/select_node_handler.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/select_node_handler.coffee
deleted file mode 100644
index 1c1fe582..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/select_node_handler.coffee
+++ /dev/null
@@ -1,84 +0,0 @@
-$ = jQuery
-
-
-class SelectNodeHandler
- constructor: (tree_widget) ->
- @tree_widget = tree_widget
- @clear()
-
- getSelectedNode: ->
- selected_nodes = @getSelectedNodes()
-
- if selected_nodes.length
- return selected_nodes[0]
- else
- return false
-
- getSelectedNodes: ->
- if @selected_single_node
- return [@selected_single_node]
- else
- selected_nodes = []
-
- for id of @selected_nodes
- node = @tree_widget.getNodeById(id)
- if node
- selected_nodes.push(node)
-
- return selected_nodes
-
- getSelectedNodesUnder: (parent) ->
- if @selected_single_node
- if parent.isParentOf(@selected_single_node)
- return [@selected_single_node]
- else
- return []
- else
- selected_nodes = []
-
- for id of @selected_nodes
- node = @tree_widget.getNodeById(id)
- if node and parent.isParentOf(node)
- selected_nodes.push(node)
-
- return selected_nodes
-
- isNodeSelected: (node) ->
- if not node
- return false
- else if node.id
- if @selected_nodes[node.id]
- return true
- else
- return false
- else if @selected_single_node
- return @selected_single_node.element == node.element
- else
- return false
-
- clear: ->
- @selected_nodes = {}
- @selected_single_node = null
-
- removeFromSelection: (node, include_children=false) ->
- if not node.id
- if @selected_single_node && node.element == @selected_single_node.element
- @selected_single_node = null
- else
- delete @selected_nodes[node.id]
-
- if include_children
- node.iterate(
- (n) =>
- delete @selected_nodes[node.id]
- return true
- )
-
- addToSelection: (node) ->
- if node.id
- @selected_nodes[node.id] = true
- else
- @selected_single_node = node
-
-
-module.exports = SelectNodeHandler
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/simple.widget.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/simple.widget.coffee
deleted file mode 100644
index a3ca6e3e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/simple.widget.coffee
+++ /dev/null
@@ -1,107 +0,0 @@
-###
-Copyright 2013 Marco Braak
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-###
-
-$ = jQuery
-
-
-class SimpleWidget
- defaults: {}
-
- constructor: (el, options) ->
- @$el = $(el)
- @options = $.extend({}, @defaults, options)
-
- destroy: ->
- @_deinit()
-
- _init: ->
- null
-
- _deinit: ->
- null
-
- @register = (widget_class, widget_name) ->
- getDataKey = ->
- return "simple_widget_#{widget_name}"
-
- getWidgetData = (el, data_key) ->
- widget = $.data(el, data_key)
-
- if widget and (widget instanceof SimpleWidget)
- return widget
- else
- return null
-
- createWidget = ($el, options) ->
- data_key = getDataKey()
-
- for el in $el
- existing_widget = getWidgetData(el, data_key)
-
- if not existing_widget
- widget = new widget_class(el, options)
-
- if not $.data(el, data_key)
- $.data(el, data_key, widget)
-
- # Call init after setting data, so we can call methods
- widget._init()
-
- return $el
-
- destroyWidget = ($el) ->
- data_key = getDataKey()
-
- for el in $el
- widget = getWidgetData(el, data_key)
-
- if widget
- widget.destroy()
-
- $.removeData(el, data_key)
-
- callFunction = ($el, function_name, args) ->
- result = null
-
- for el in $el
- widget = $.data(el, getDataKey())
-
- if widget and (widget instanceof SimpleWidget)
- widget_function = widget[function_name]
-
- if widget_function and (typeof widget_function == 'function')
- result = widget_function.apply(widget, args)
-
- return result
-
- $.fn[widget_name] = (argument1, args...) ->
- $el = this
-
- if argument1 is undefined or typeof argument1 == 'object'
- options = argument1
- return createWidget($el, options)
- else if typeof argument1 == 'string' and argument1[0] != '_'
- function_name = argument1
-
- if function_name == 'destroy'
- return destroyWidget($el)
- else if function_name == 'get_widget_class'
- return widget_class
- else
- return callFunction($el, function_name, args)
-
-
-module.exports = SimpleWidget
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/tree.jquery.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/tree.jquery.coffee
deleted file mode 100644
index 15e13e1b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/tree.jquery.coffee
+++ /dev/null
@@ -1,918 +0,0 @@
-__version__ = require './version'
-drag_and_drop_handler = require './drag_and_drop_handler'
-ElementsRenderer = require './elements_renderer'
-KeyHandler = require './key_handler'
-MouseWidget = require './mouse.widget'
-SaveStateHandler = require './save_state_handler'
-ScrollHandler = require './scroll_handler'
-SelectNodeHandler = require './select_node_handler'
-SimpleWidget = require './simple.widget'
-
-node_module = require './node'
-Node = node_module.Node
-Position = node_module.Position
-
-util_module = require './util'
-
-{isFunction} = util_module
-
-{BorderDropHint,FolderElement,GhostDropHint,NodeElement} = require './node_element'
-
-{DragAndDropHandler, DragElement, HitAreasGenerator} = drag_and_drop_handler
-
-
-$ = jQuery
-
-
-class JqTreeWidget extends MouseWidget
- BorderDropHint: BorderDropHint
- DragElement: DragElement
- DragAndDropHandler: DragAndDropHandler
- ElementsRenderer: ElementsRenderer
- GhostDropHint: GhostDropHint
- HitAreasGenerator: HitAreasGenerator
- Node: Node
- SaveStateHandler: SaveStateHandler
- ScrollHandler: ScrollHandler
- SelectNodeHandler: SelectNodeHandler
-
- defaults:
- autoOpen: false # true / false / int (open n levels starting at 0)
- saveState: false # true / false / string (cookie name)
- dragAndDrop: false
- selectable: true
- useContextMenu: true
- onCanSelectNode: null
- onSetStateFromStorage: null
- onGetStateFromStorage: null
- onCreateLi: null
- onIsMoveHandle: null
- onCanMove: null # Can this node be moved? function(node)
- onCanMoveTo: null # Can this node be moved to this position? function(moved_node, target_node, position)
- onLoadFailed: null
- autoEscape: true
- dataUrl: null
- closedIcon: null # The symbol to use for a closed node - â–º BLACK RIGHT-POINTING POINTER http://www.fileformat.info/info/unicode/char/25ba/index.htm
- openedIcon: '&#x25bc;' # The symbol to use for an open node - â–¼ BLACK DOWN-POINTING TRIANGLE http://www.fileformat.info/info/unicode/char/25bc/index.htm
- slide: true # must display slide animation?
- nodeClass: Node
- dataFilter: null
- keyboardSupport: true
- openFolderDelay: 500 # The delay for opening a folder during drag and drop; the value is in milliseconds
- rtl: null # right-to-left support; true / false (default)
- onDragMove: null
- onDragStop: null
- buttonLeft: true
- onLoading: null
-
- toggle: (node, slide=null) ->
- if slide == null
- slide = @options.slide
-
- if node.is_open
- @closeNode(node, slide)
- else
- @openNode(node, slide)
-
- return @element
-
- getTree: ->
- return @tree
-
- selectNode: (node) ->
- @_selectNode(node, false)
- return @element
-
- _selectNode: (node, must_toggle=false) ->
- if not @select_node_handler
- return
-
- canSelect = =>
- if @options.onCanSelectNode
- return @options.selectable and @options.onCanSelectNode(node)
- else
- return @options.selectable
-
- openParents = =>
- parent = node.parent
-
- if parent and parent.parent and not parent.is_open
- @openNode(parent, false)
-
- saveState = =>
- if @options.saveState
- @save_state_handler.saveState()
-
- if not node
- # Called with empty node -> deselect current node
- @_deselectCurrentNode()
- saveState()
- return
-
- if not canSelect()
- return
-
- if @select_node_handler.isNodeSelected(node)
- if must_toggle
- @_deselectCurrentNode()
- @_triggerEvent(
- 'tree.select',
- node: null,
- previous_node: node
- )
- else
- deselected_node = @getSelectedNode()
- @_deselectCurrentNode()
- @addToSelection(node)
- @_triggerEvent('tree.select', node: node, deselected_node: deselected_node)
- openParents()
-
- saveState()
-
- getSelectedNode: ->
- if @select_node_handler
- return @select_node_handler.getSelectedNode()
- else
- return null
-
- toJson: ->
- return JSON.stringify(
- @tree.getData()
- )
-
- loadData: (data, parent_node) ->
- @_loadData(data, parent_node)
- return @element
-
- ###
- signatures:
- - loadDataFromUrl(url, parent_node=null, on_finished=null)
- loadDataFromUrl('/my_data');
- loadDataFromUrl('/my_data', node1);
- loadDataFromUrl('/my_data', node1, function() { console.log('finished'); });
- loadDataFromUrl('/my_data', null, function() { console.log('finished'); });
-
- - loadDataFromUrl(parent_node=null, on_finished=null)
- loadDataFromUrl();
- loadDataFromUrl(node1);
- loadDataFromUrl(null, function() { console.log('finished'); });
- loadDataFromUrl(node1, function() { console.log('finished'); });
- ###
- loadDataFromUrl: (param1, param2, param3) ->
- if $.type(param1) == 'string'
- # first parameter is url
- @_loadDataFromUrl(param1, param2, param3)
- else
- # first parameter is not url
- @_loadDataFromUrl(null, param1, param2)
-
- return @element
-
- reload: (on_finished) ->
- @_loadDataFromUrl(null, null, on_finished)
- return @element
-
- _loadDataFromUrl: (url_info, parent_node, on_finished) ->
- $el = null
-
- addLoadingClass = =>
- if parent_node
- $el = $(parent_node.element)
- else
- $el = @element
-
- $el.addClass('jqtree-loading')
- @_notifyLoading(true, parent_node, $el)
-
- removeLoadingClass = =>
- if $el
- $el.removeClass('jqtree-loading')
-
- @_notifyLoading(false, parent_node, $el)
-
- parseUrlInfo = ->
- if $.type(url_info) == 'string'
- return url: url_info
-
- if not url_info.method
- url_info.method = 'get'
-
- return url_info
-
- handeLoadData = (data) =>
- removeLoadingClass()
- @_loadData(data, parent_node)
-
- if on_finished and $.isFunction(on_finished)
- on_finished()
-
- handleSuccess = (response) =>
- if $.isArray(response) or typeof response == 'object'
- data = response
- else if data?
- data = $.parseJSON(response)
- else
- data = []
-
- if @options.dataFilter
- data = @options.dataFilter(data)
-
- handeLoadData(data)
-
- handleError = (response) =>
- removeLoadingClass()
-
- if @options.onLoadFailed
- @options.onLoadFailed(response)
-
- loadDataFromUrlInfo = ->
- url_info = parseUrlInfo()
-
- $.ajax(
- $.extend(
- {},
- url_info,
- {
- method: if url_info.method? then url_info.method.toUpperCase() else 'GET',
- cache: false,
- dataType: 'json',
- success: handleSuccess,
- error: handleError
- }
- )
- )
-
- if not url_info
- # Generate url for node
- url_info = @_getDataUrlInfo(parent_node)
-
- addLoadingClass()
-
- if not url_info
- removeLoadingClass()
- return
- else if $.isArray(url_info)
- handeLoadData(url_info)
- return
- else
- loadDataFromUrlInfo()
- return
-
- _loadData: (data, parent_node=null) ->
- deselectNodes = =>
- if @select_node_handler
- selected_nodes_under_parent = @select_node_handler.getSelectedNodesUnder(parent_node)
- for n in selected_nodes_under_parent
- @select_node_handler.removeFromSelection(n)
-
- return null
-
- loadSubtree = =>
- parent_node.loadFromData(data)
-
- parent_node.load_on_demand = false
- parent_node.is_loading = false
-
- @_refreshElements(parent_node)
-
- if not data
- return
-
- @_triggerEvent('tree.load_data', tree_data: data)
-
- if not parent_node
- @_initTree(data)
- else
- deselectNodes()
- loadSubtree()
-
- if @isDragging()
- @dnd_handler.refresh()
-
- getNodeById: (node_id) ->
- return @tree.getNodeById(node_id)
-
- getNodeByName: (name) ->
- return @tree.getNodeByName(name)
-
- getNodesByProperty: (key, value) ->
- return @tree.getNodesByProperty(key, value)
-
- getNodeByHtmlElement: (element) ->
- return @_getNode($(element))
-
- getNodeByCallback: (callback) ->
- return @tree.getNodeByCallback(callback)
-
- openNode: (node, slide_param=null, on_finished_param=null) ->
- parseParams = =>
- if isFunction(slide_param)
- on_finished = slide_param
- slide = null
- else
- slide = slide_param
- on_finished = on_finished_param
-
- if slide == null
- slide = @options.slide
-
- return [slide, on_finished]
-
- [slide, on_finished] = parseParams()
-
- if node
- @_openNode(node, slide, on_finished)
-
- return @element
-
- _openNode: (node, slide=true, on_finished) ->
- doOpenNode = (_node, _slide, _on_finished) =>
- folder_element = new FolderElement(_node, this)
- folder_element.open(_on_finished, _slide)
-
- if node.isFolder()
- if node.load_on_demand
- @_loadFolderOnDemand(node, slide, on_finished)
- else
- parent = node.parent
-
- while parent
- # nb: do not open root element
- if parent.parent
- doOpenNode(parent, false, null)
- parent = parent.parent
-
- doOpenNode(node, slide, on_finished)
- @_saveState()
-
- _loadFolderOnDemand: (node, slide=true, on_finished) ->
- node.is_loading = true
-
- @_loadDataFromUrl(
- null,
- node,
- =>
- @_openNode(node, slide, on_finished)
- )
-
- closeNode: (node, slide=null) ->
- if slide == null
- slide = @options.slide
-
- if node.isFolder()
- new FolderElement(node, this).close(slide)
-
- @_saveState()
-
- return @element
-
- isDragging: ->
- if @dnd_handler
- return @dnd_handler.is_dragging
- else
- return false
-
- refreshHitAreas: ->
- @dnd_handler.refresh()
- return @element
-
- addNodeAfter: (new_node_info, existing_node) ->
- new_node = existing_node.addAfter(new_node_info)
- @_refreshElements(existing_node.parent)
- return new_node
-
- addNodeBefore: (new_node_info, existing_node) ->
- new_node = existing_node.addBefore(new_node_info)
- @_refreshElements(existing_node.parent)
- return new_node
-
- addParentNode: (new_node_info, existing_node) ->
- new_node = existing_node.addParent(new_node_info)
- @_refreshElements(new_node.parent)
- return new_node
-
- removeNode: (node) ->
- parent = node.parent
- if parent
- @select_node_handler.removeFromSelection(node, true) # including children
-
- node.remove()
- @_refreshElements(parent)
-
- return @element
-
- appendNode: (new_node_info, parent_node) ->
- parent_node = parent_node or @tree
-
- node = parent_node.append(new_node_info)
-
- @_refreshElements(parent_node)
-
- return node
-
- prependNode: (new_node_info, parent_node) ->
- if not parent_node
- parent_node = @tree
-
- node = parent_node.prepend(new_node_info)
-
- @_refreshElements(parent_node)
-
- return node
-
- updateNode: (node, data) ->
- id_is_changed = data.id and data.id != node.id
-
- if id_is_changed
- @tree.removeNodeFromIndex(node)
-
- node.setData(data)
-
- if id_is_changed
- @tree.addNodeToIndex(node)
-
- if typeof data == 'object' and data.children
- node.removeChildren()
-
- if data.children.length
- node.loadFromData(data.children)
-
- @renderer.renderFromNode(node)
- @_selectCurrentNode()
-
- return @element
-
- moveNode: (node, target_node, position) ->
- position_index = Position.nameToIndex(position)
-
- @tree.moveNode(node, target_node, position_index)
- @_refreshElements()
- return @element
-
- getStateFromStorage: ->
- return @save_state_handler.getStateFromStorage()
-
- addToSelection: (node) ->
- if node
- @select_node_handler.addToSelection(node)
-
- @_getNodeElementForNode(node).select()
- @_saveState()
-
- return @element
-
- getSelectedNodes: ->
- return @select_node_handler.getSelectedNodes()
-
- isNodeSelected: (node) ->
- return @select_node_handler.isNodeSelected(node)
-
- removeFromSelection: (node) ->
- @select_node_handler.removeFromSelection(node)
-
- @_getNodeElementForNode(node).deselect()
- @_saveState()
- return @element
-
- scrollToNode: (node) ->
- $element = $(node.element)
- top = $element.offset().top - @$el.offset().top
-
- @scroll_handler.scrollTo(top)
- return @element
-
- getState: ->
- return @save_state_handler.getState()
-
- setState: (state) ->
- @save_state_handler.setInitialState(state)
- @_refreshElements()
- return @element
-
- setOption: (option, value) ->
- @options[option] = value
- return @element
-
- moveDown: ->
- if @key_handler
- @key_handler.moveDown()
-
- return @element
-
- moveUp: ->
- if @key_handler
- @key_handler.moveUp()
-
- return @element
-
- getVersion: ->
- return __version__
-
- _init: ->
- super()
-
- @element = @$el
- @mouse_delay = 300
- @is_initialized = false
-
- @options.rtl = @_getRtlOption()
-
- if !@options.closedIcon
- @options.closedIcon = @_getDefaultClosedIcon()
-
- @renderer = new ElementsRenderer(this)
-
- if SaveStateHandler?
- @save_state_handler = new SaveStateHandler(this)
- else
- @options.saveState = false
-
- if SelectNodeHandler?
- @select_node_handler = new SelectNodeHandler(this)
-
- if DragAndDropHandler?
- @dnd_handler = new DragAndDropHandler(this)
- else
- @options.dragAndDrop = false
-
- if ScrollHandler?
- @scroll_handler = new ScrollHandler(this)
-
- if KeyHandler? and SelectNodeHandler?
- @key_handler = new KeyHandler(this)
-
- @_initData()
-
- @element.click($.proxy(@_click, this))
- @element.dblclick($.proxy(@_dblclick, this))
-
- if @options.useContextMenu
- @element.bind('contextmenu', $.proxy(@_contextmenu, this))
-
- _deinit: ->
- @element.empty()
- @element.unbind()
-
- if @key_handler
- @key_handler.deinit()
-
- @tree = null
-
- super()
-
- _initData: ->
- if @options.data
- @_loadData(@options.data)
- else
- data_url = @_getDataUrlInfo()
-
- if data_url
- @_loadDataFromUrl()
- else
- @_loadData([])
-
- _getDataUrlInfo: (node) ->
- data_url = @options.dataUrl or @element.data('url')
-
- getUrlFromString = =>
- url_info = url: data_url
-
- if node and node.id
- # Load on demand of a subtree; add node parameter
- data = node: node.id
- url_info['data'] = data
- else
- # Add selected_node parameter
- selected_node_id = @_getNodeIdToBeSelected()
- if selected_node_id
- data = selected_node: selected_node_id
- url_info['data'] = data
-
- return url_info
-
- if $.isFunction(data_url)
- return data_url(node)
- else if $.type(data_url) == 'string'
- return getUrlFromString()
- else
- return data_url
-
- _getNodeIdToBeSelected: ->
- if @options.saveState
- return @save_state_handler.getNodeIdToBeSelected()
- else
- return null
-
- _initTree: (data) ->
- doInit = =>
- if not @is_initialized
- @is_initialized = true
- @_triggerEvent('tree.init')
-
- @tree = new @options.nodeClass(null, true, @options.nodeClass)
-
- if @select_node_handler
- @select_node_handler.clear()
-
- @tree.loadFromData(data)
-
- must_load_on_demand = @_setInitialState()
-
- @_refreshElements()
-
- if not must_load_on_demand
- doInit()
- else
- # Load data on demand and then init the tree
- @_setInitialStateOnDemand(doInit)
-
- # Set initial state, either by restoring the state or auto-opening nodes
- # result: must load nodes on demand?
- _setInitialState: ->
- restoreState = =>
- # result: is state restored, must load on demand?
- if not (@options.saveState and @save_state_handler)
- return [false, false]
- else
- state = @save_state_handler.getStateFromStorage()
-
- if not state
- return [false, false]
- else
- must_load_on_demand = @save_state_handler.setInitialState(state)
-
- # return true: the state is restored
- return [true, must_load_on_demand]
-
- autoOpenNodes = =>
- # result: must load on demand?
- if @options.autoOpen is false
- return false
-
- max_level = @_getAutoOpenMaxLevel()
- must_load_on_demand = false
-
- @tree.iterate (node, level) ->
- if node.load_on_demand
- must_load_on_demand = true
- return false
- else if not node.hasChildren()
- return false
- else
- node.is_open = true
- return (level != max_level)
-
- return must_load_on_demand
-
- [is_restored, must_load_on_demand] = restoreState()
-
- if not is_restored
- must_load_on_demand = autoOpenNodes()
-
- return must_load_on_demand
-
- # Set the initial state for nodes that are loaded on demand
- # Call cb_finished when done
- _setInitialStateOnDemand: (cb_finished) ->
- restoreState = =>
- if not (@options.saveState and @save_state_handler)
- return false
- else
- state = @save_state_handler.getStateFromStorage()
-
- if not state
- return false
- else
- @save_state_handler.setInitialStateOnDemand(state, cb_finished)
-
- return true
-
- autoOpenNodes = =>
- max_level = @_getAutoOpenMaxLevel()
- loading_count = 0
-
- loadAndOpenNode = (node) =>
- loading_count += 1
- @_openNode(
- node,
- false,
- ->
- loading_count -= 1
- openNodes()
- )
-
- openNodes = =>
- @tree.iterate (node, level) =>
- if node.load_on_demand
- if not node.is_loading
- loadAndOpenNode(node)
-
- return false
- else
- @_openNode(node, false)
-
- return (level != max_level)
-
- if loading_count == 0
- cb_finished()
-
- openNodes()
-
- if not restoreState()
- autoOpenNodes()
-
- _getAutoOpenMaxLevel: ->
- if @options.autoOpen is true
- return -1
- else
- return parseInt(@options.autoOpen)
-
- ###
- Redraw the tree or part of the tree.
- # from_node: redraw this subtree
- ###
- _refreshElements: (from_node=null) ->
- @renderer.render(from_node)
-
- @_triggerEvent('tree.refresh')
-
- _click: (e) ->
- click_target = @_getClickTarget(e.target)
-
- if click_target
- if click_target.type == 'button'
- @toggle(click_target.node, @options.slide)
-
- e.preventDefault()
- e.stopPropagation()
- else if click_target.type == 'label'
- node = click_target.node
- event = @_triggerEvent(
- 'tree.click',
- node: node
- click_event: e
- )
-
- if not event.isDefaultPrevented()
- @_selectNode(node, true)
-
- _dblclick: (e) ->
- click_target = @_getClickTarget(e.target)
-
- if click_target and click_target.type == 'label'
- @_triggerEvent(
- 'tree.dblclick',
- node: click_target.node
- click_event: e
- )
-
- _getClickTarget: (element) ->
- $target = $(element)
-
- $button = $target.closest('.jqtree-toggler')
-
- if $button.length
- node = @_getNode($button)
-
- if node
- return {
- type: 'button',
- node: node
- }
- else
- $el = $target.closest('.jqtree-element')
- if $el.length
- node = @_getNode($el)
- if node
- return {
- type: 'label',
- node: node
- }
-
- return null
-
- _getNode: ($element) ->
- $li = $element.closest('li.jqtree_common')
- if $li.length == 0
- return null
- else
- return $li.data('node')
-
- _getNodeElementForNode: (node) ->
- if node.isFolder()
- return new FolderElement(node, this)
- else
- return new NodeElement(node, this)
-
- _getNodeElement: ($element) ->
- node = @_getNode($element)
- if node
- return @_getNodeElementForNode(node)
- else
- return null
-
- _contextmenu: (e) ->
- $div = $(e.target).closest('ul.jqtree-tree .jqtree-element')
- if $div.length
- node = @_getNode($div)
- if node
- e.preventDefault()
- e.stopPropagation()
-
- @_triggerEvent(
- 'tree.contextmenu',
- node: node
- click_event: e
- )
- return false
-
- _saveState: ->
- if @options.saveState
- @save_state_handler.saveState()
-
- _mouseCapture: (position_info) ->
- if @options.dragAndDrop
- return @dnd_handler.mouseCapture(position_info)
- else
- return false
-
- _mouseStart: (position_info) ->
- if @options.dragAndDrop
- return @dnd_handler.mouseStart(position_info)
- else
- return false
-
- _mouseDrag: (position_info) ->
- if @options.dragAndDrop
- result = @dnd_handler.mouseDrag(position_info)
-
- if @scroll_handler
- @scroll_handler.checkScrolling()
- return result
- else
- return false
-
- _mouseStop: (position_info) ->
- if @options.dragAndDrop
- return @dnd_handler.mouseStop(position_info)
- else
- return false
-
- _triggerEvent: (event_name, values) ->
- event = $.Event(event_name)
- $.extend(event, values)
-
- @element.trigger(event)
- return event
-
- testGenerateHitAreas: (moving_node) ->
- @dnd_handler.current_item = @_getNodeElementForNode(moving_node)
- @dnd_handler.generateHitAreas()
- return @dnd_handler.hit_areas
-
- _selectCurrentNode: ->
- node = @getSelectedNode()
- if node
- node_element = @_getNodeElementForNode(node)
- if node_element
- node_element.select()
-
- _deselectCurrentNode: ->
- node = @getSelectedNode()
- if node
- @removeFromSelection(node)
-
- _getDefaultClosedIcon: ->
- if @options.rtl
- # triangle to the left
- return '&#x25c0;'
- else
- # triangle to the right
- return '&#x25ba;'
-
- _getRtlOption: ->
- if @options.rtl != null
- return @options.rtl
- else
- data_rtl = @element.data('rtl')
-
- if data_rtl? and data_rtl != false
- return true
- else
- return false
-
- _notifyLoading: (is_loading, node, $el) ->
- if @options.onLoading
- @options.onLoading(is_loading, node, $el)
-
-
-JqTreeWidget.getModule = (name) ->
- modules =
- 'node': node_module
- 'util': util_module
- 'drag_and_drop_handler': drag_and_drop_handler
-
- return modules[name]
-
-
-SimpleWidget.register(JqTreeWidget, 'tree')
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/util.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/util.coffee
deleted file mode 100644
index 2375b14e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/util.coffee
+++ /dev/null
@@ -1,48 +0,0 @@
-# Standard javascript indexOf. Implemented here because not all browsers support it.
-_indexOf = (array, item) ->
- for value, i in array
- if value == item
- return i
- return -1
-
-indexOf = (array, item) ->
- if array.indexOf
- # The browser supports indexOf
- return array.indexOf(item)
- else
- # Do our own indexOf
- return _indexOf(array, item)
-
-isInt = (n) ->
- return typeof n is 'number' and n % 1 == 0
-
-
-isFunction = (v) ->
- return typeof v == 'function'
-
-
-# Escape a string for HTML interpolation; copied from underscore js
-html_escape = (string) ->
- return (''+string)
- .replace(/&/g, '&amp;')
- .replace(/</g, '&lt;')
- .replace(/>/g, '&gt;')
- .replace(/"/g, '&quot;')
- .replace(/'/g, '&#x27;')
- .replace(/\//g,'&#x2F;')
-
-
-getBoolString = (value) ->
- if value
- return 'true'
- else
- return 'false'
-
-
-module.exports =
- _indexOf: _indexOf
- getBoolString: getBoolString
- html_escape: html_escape
- indexOf: indexOf
- isInt: isInt
- isFunction: isFunction
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src/version.coffee b/ecomp-portal-FE/client/bower_components/jqTree/src/version.coffee
deleted file mode 100644
index ccaef948..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src/version.coffee
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = '1.3.7'
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src_test/karma-test.js b/ecomp-portal-FE/client/bower_components/jqTree/src_test/karma-test.js
deleted file mode 100644
index f6fcb89b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src_test/karma-test.js
+++ /dev/null
@@ -1,17 +0,0 @@
-// Load jquery 1.x for ie <= 8 and jquery 3.x for other browsers
-var ie_version = require('ie-version');
-
-var $;
-
-if (ie_version.version && ie_version.version <= 8) {
- $ = require('../static/bower_components/jquery-1/dist/jquery.js');
-}
-else {
- $ = require('../static/bower_components/jquery/dist/jquery.js');
-}
-
-window.$ = $;
-window.jQuery = $;
-
-require('../src/tree.jquery');
-require('./test');
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src_test/test.js b/ecomp-portal-FE/client/bower_components/jqTree/src_test/test.js
deleted file mode 100644
index f0f7ffcf..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src_test/test.js
+++ /dev/null
@@ -1,5 +0,0 @@
-require('./test_util');
-require('./test_tree');
-require('./test_jqtree');
-
-QUnit.config.testTimeout = 5000;
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_jqtree.js b/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_jqtree.js
deleted file mode 100644
index b571ad13..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_jqtree.js
+++ /dev/null
@@ -1,1390 +0,0 @@
-var mockjax = require('jquery-mockjax')(jQuery, window);
-
-var utils_for_test = require('./utils_for_test');
-
-var example_data = utils_for_test.example_data;
-var example_data2 = utils_for_test.example_data2;
-var formatNodes = utils_for_test.formatNodes;
-var formatTitles = utils_for_test.formatTitles;
-var isNodeOpen = utils_for_test.isNodeOpen;
-var isNodeClosed = utils_for_test.isNodeClosed;
-
-var tree_vars = utils_for_test.getTreeVariables();
-
-var Position = tree_vars.Position;
-
-var test = QUnit.test;
-
-
-QUnit.module("jqtree", {
- beforeEach: function() {
- $('body').append('<div id="tree1"></div>');
- },
-
- afterEach: function() {
- var $tree = $('#tree1');
- $tree.tree('destroy');
- $tree.remove();
-
- $.mockjax.clear();
- }
-});
-
-test("create jqtree from data", function(assert) {
- $('#tree1').tree({
- data: example_data
- });
-
- assert.equal(
- $('#tree1').children().length, 1,
- 'number of children on level 0'
- );
- assert.ok(
- $('#tree1').children().is('ul.jqtree-tree'),
- 'first element is ul.jqtree-tree'
- );
- assert.equal(
- $('#tree1 ul.jqtree-tree > li').length, 2,
- 'number of children on level 1'
- );
- assert.ok(
- $('#tree1 ul.jqtree-tree li:eq(0)').is('li.jqtree-folder.jqtree-closed'),
- 'first child is li.jqtree-folder.jqtree-closed'
- );
- assert.ok(
- $('#tree1 ul.jqtree-tree li:eq(0) > .jqtree-element > a.jqtree-toggler').is('a.jqtree-toggler.jqtree-closed'),
- 'button in first folder'
- );
- assert.equal(
- $('#tree1 ul.jqtree-tree li:eq(0) > .jqtree-element span.jqtree-title').text(),
- 'node1'
- );
-});
-
-test('toggle', function(assert) {
- // setup
- var done = assert.async();
-
- // create tree
- var $tree = $('#tree1');
- var $node1;
- var node1;
-
- $tree.tree({
- data: example_data
- });
-
- $tree.bind(
- 'tree.open',
- function(e) {
- assert.ok(! isNodeClosed($node1), 'node1 is open');
-
- // 2. close node1
- $tree.tree('toggle', node1);
- }
- );
-
- $tree.bind(
- 'tree.close',
- function(e) {
- assert.ok(isNodeClosed($node1), 'node1 is closed');
-
- done();
- }
- );
-
- var tree = $tree.tree('getTree');
- node1 = tree.children[0];
- $node1 = $tree.find('ul.jqtree-tree li:eq(0)');
-
- // node1 is initially closed
- assert.ok(isNodeClosed($node1), 'node1 is closed');
-
- // 1. open node1
- $tree.tree('toggle', node1);
-});
-
-test("click event", function(assert) {
- var select_count = 0;
-
- // create tree
- var $tree = $('#tree1');
-
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- var $node1 = $tree.find('ul.jqtree-tree li:first');
- var $text_span = $node1.find('span:first');
-
- $tree.bind('tree.click', function(e) {
- assert.equal(e.node.name, 'node1');
- });
-
- var done = assert.async();
-
- $tree.bind('tree.select', function(e) {
- select_count += 1;
-
- if (select_count == 1) {
- assert.equal(e.node.name, 'node1');
-
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // deselect
- $text_span.click();
- }
- else {
- assert.equal(e.node, null);
- assert.equal(e.previous_node.name, 'node1');
- assert.equal($tree.tree('getSelectedNode'), false);
-
- done();
- }
- });
-
- // click on node1
- $text_span.click();
-});
-
-test('saveState', function(assert) {
- var $tree = $('#tree1');
-
- var saved_state;
-
- function setState(state) {
- saved_state = state;
- }
-
- function getState() {
- return saved_state;
- }
-
- function createTree() {
- $tree.tree({
- data: example_data,
- saveState: true,
- onSetStateFromStorage: setState,
- onGetStateFromStorage: getState,
- selectable: true
- });
- }
-
- // create tree
- createTree();
-
- // nodes are initially closed
- var tree = $tree.tree('getTree');
- tree.iterate(function(node) {
- assert.ok(! node.is_open, 'jqtree-closed');
- return true;
- });
-
- // open node1
- $tree.tree('toggle', tree.children[0]);
-
- // node1 is open
- assert.ok(tree.children[0].is_open, 'node1 is_open');
-
- // select node2
- $tree.tree('selectNode', tree.children[1]);
-
- // node2 is selected
- assert.equal(
- $tree.tree('getSelectedNode').name,
- 'node2',
- 'getSelectedNode (1)'
- );
-
- // create tree again
- $tree.tree('destroy');
- createTree();
-
- tree = $tree.tree('getTree');
- assert.ok(tree.children[0].is_open, 'node1 is_open');
- assert.ok(! tree.children[1].is_open, 'node2 is closed');
-
- // node2 is selected
- assert.equal(
- $tree.tree('getSelectedNode').name,
- 'node2',
- 'getSelectedNode (2)'
- );
-});
-
-test('getSelectedNode', function(assert) {
- var $tree = $('#tree1');
-
- // create tree
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- // there is no node selected
- assert.equal(
- $tree.tree('getSelectedNode'),
- false,
- 'getSelectedNode'
- );
-
- // select node1
- var tree = $tree.tree('getTree');
- var node1 = tree.children[0];
- $tree.tree('selectNode', node1);
-
- // node1 is selected
- assert.equal(
- $tree.tree('getSelectedNode').name,
- 'node1',
- 'getSelectedNode'
- );
-});
-
-test("toJson", function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- // 1. call toJson
- assert.equal(
- $tree.tree('toJson'),
- '[{"name":"node1","id":123,"int_property":1,"str_property":"1",'+
- '"children":[{"name":"child1","id":125,"int_property":2},{"name":'+
- '"child2","id":126}]},{"name":"node2","id":124,"int_property":3,'+
- '"str_property":"3","children":[{"name":"child3","id":127}]}]'
- );
-
- // Check that properties 'children', 'parent' and 'element' still exist.
- var tree = $tree.tree('getTree');
- assert.equal(tree.children.length, 2);
- assert.ok(tree.children[0].parent != undefined, 'parent');
- assert.ok($(tree.children[0].element).is('li'), 'element');
-});
-
-test('loadData', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- autoOpen: true
- });
-
- // first node is 'node1'
- assert.equal(
- $tree.find('> ul > li:first .jqtree-element:first > span').text(),
- 'node1'
- );
-
- // - load new data
- $tree.tree('loadData', example_data2);
-
- // first node is 'main'
- assert.equal(
- $tree.find('> ul > li:first .jqtree-element:first > span').text(),
- 'main'
- );
-
- // - load new data under node 'child3'
- $tree.tree('loadData', example_data);
-
- var child3 = $tree.tree('getNodeByName', 'child3');
-
- var data = [
- { label: 'c4', id: 200 },
- {
- label: 'c5', id: 201,
- children: [
- { label: 'c6', id: 202 }
- ]
- }
- ];
- $tree.tree('loadData', data, child3);
-
- // first node in html is still 'node1'
- assert.equal(
- $tree.find('li:eq(0)').find('.jqtree-element:eq(0) span.jqtree-title').text(),
- 'node1'
- );
-
- // Node 'child3' now has a children 'c4' and 'c5'
- var $child3 = $tree.find('span:contains(child3)');
- var $li = $child3.closest('li');
- assert.equal(
- $li.children('ul').children('li:eq(0)').find('.jqtree-element span.jqtree-title').text(),
- 'c4'
- );
-
- // Node 'child3' must have toggler button
- assert.ok(
- $child3.prev().is('a.jqtree-toggler'),
- "node 'child3' must have toggler button"
- );
-
- // - select node 'c5' and load new data under 'child3'
- var c5 = $tree.tree('getNodeByName', 'c5');
- $tree.tree('selectNode', c5);
-
- assert.equal($tree.tree('getSelectedNode').name, 'c5');
-
- var data2 = [
- { label: 'c7' },
- { label: 'c8' }
- ];
- $tree.tree('loadData', data2, child3);
-
- // c5 must be deselected
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // - select c7; load new data under child3; note that c7 has no id
- $tree.tree('selectNode', $tree.tree('getNodeByName', 'c7'));
-
- assert.equal($tree.tree('getSelectedNode').name, 'c7');
-
- $tree.tree('loadData', [ 'c9' ], child3);
-
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // - select c9 (which has no id); load new nodes under child2
- $tree.tree('selectNode', $tree.tree('getNodeByName', 'c9'));
-
- var child2 = $tree.tree('getNodeByName', 'child2');
- $tree.tree('loadData', [ 'c10' ], child2);
-
- assert.equal($tree.tree('getSelectedNode').name, 'c9');
-});
-
-test('openNode and closeNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var node2 = $tree.tree('getNodeByName', 'node2');
- assert.equal(node2.name, 'node2');
- assert.equal(node2.is_open, undefined);
-
- // 1. open node2
- $tree.tree('openNode', node2, false);
- assert.equal(node2.is_open, true);
- assert.equal(isNodeOpen($(node2.element)), true);
-
- // 2. close node2
- $tree.tree('closeNode', node2, false);
- assert.equal(node2.is_open, false);
- assert.equal(isNodeClosed($(node2.element)), true);
-
- // 3. open child1
- var node1 = $tree.tree('getNodeByName', 'node1');
- var child1 = $tree.tree('getNodeByName', 'child1');
-
- // add a child to child1 so it is a folder
- $tree.tree('appendNode', 'child1a', child1);
-
- // node1 is initialy closed
- assert.equal(node1.is_open, undefined);
-
- // open child1
- $tree.tree('openNode', child1, false);
-
- // node1 and child1 are now open1
- assert.equal(node1.is_open, true);
- assert.equal(child1.is_open, true);
-});
-
-function test_open_node_with_callback(slide, include_slide_param, assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var node2 = $tree.tree('getNodeByName', 'node2');
-
- // open node2
- var done = assert.async();
-
- function handleOpenNode(node) {
- assert.equal(node.name, 'node2');
- assert.ok(node.is_open);
-
- done();
- }
-
- if (include_slide_param) {
- $tree.tree('openNode', node2, slide, handleOpenNode);
- }
- else {
- $tree.tree('openNode', node2, handleOpenNode);
- }
-}
-
-test('openNode with callback with slide true', function(assert) {
- test_open_node_with_callback(true, true, assert);
-});
-
-test('openNode with callback with slide false', function(assert) {
- test_open_node_with_callback(false, true, assert);
-});
-
-test('openNode with callback with slide null', function(assert) {
- test_open_node_with_callback(null, true, assert);
-});
-
-test('openNode with callback without slide param', function(assert) {
- test_open_node_with_callback(null, false, assert);
-});
-
-test('selectNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- var node1 = $tree.tree('getTree').children[0];
- var node2 = $tree.tree('getTree').children[1];
- var child3 = node2.children[0];
-
- assert.equal(child3.name, 'child3');
- assert.equal(node1.is_open, undefined);
- assert.equal(node2.is_open, undefined);
- assert.equal(child3.is_open, undefined);
-
- // -- select node 'child3', which is a child of 'node2'; must_open_parents = true
- $tree.tree('selectNode', child3, true);
- assert.equal($tree.tree('getSelectedNode').name, 'child3');
-
- assert.equal(node1.is_open, undefined);
- assert.equal(node2.is_open, true);
- assert.equal(child3.is_open, undefined);
-
- // -- select node 'node1'
- $tree.tree('selectNode', node1);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // -- is 'node1' selected?
- assert.equal($tree.tree('isNodeSelected', node1), true);
-
- // -- deselect
- $tree.tree('selectNode', null);
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // -- is 'node1' selected?
- assert.equal($tree.tree('isNodeSelected', node1), false);
-});
-
-test('selectNode when another node is selected', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- var node1 = $tree.tree('getTree').children[0];
- var node2 = $tree.tree('getTree').children[1];
-
- // -- select node 'node2'
- $tree.tree('selectNode', node2);
- assert.equal($tree.tree('getSelectedNode').name, 'node2');
-
- // -- setting event
- // -- is node 'node2' named 'deselected_node' in object's attributes?
- var is_select_event_fired = false;
-
- $tree.bind('tree.select', function(e) {
- assert.equal(e.deselected_node, node2);
- is_select_event_fired = true;
- });
-
- // -- select node 'node1'; node 'node2' is selected before it
- $tree.tree('selectNode', node1);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- assert.equal($tree.tree('isNodeSelected', node1), true);
-
- // event was fired
- assert.ok(is_select_event_fired);
-});
-
-test('click toggler', function(assert) {
- // setup
- var done = assert.async();
-
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- var $title = $tree.find('li:eq(0)').find('> .jqtree-element > span.jqtree-title');
- assert.equal($title.text(), 'node1');
- var $toggler = $title.prev();
- assert.ok($toggler.is('a.jqtree-toggler.jqtree-closed'));
-
- $tree.bind('tree.open', function(e) {
- // 2. handle 'open' event
- assert.equal(e.node.name, 'node1');
-
- // 3. click toggler again
- $toggler.click();
- });
-
- $tree.bind('tree.close', function(e) {
- assert.equal(e.node.name, 'node1');
- done();
- });
-
- // 1. click toggler of 'node1'
- $toggler.click();
-});
-
-test('getNodeById', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
- var node2 = $tree.tree('getNodeByName', 'node2');
-
- // 1. get 'node2' by id
- assert.equal(
- $tree.tree('getNodeById', 124).name,
- 'node2'
- );
-
- // 2. get id that does not exist
- assert.equal($tree.tree('getNodeById', 333), null);
-
- // 3. get id by string
- assert.equal(
- $tree.tree('getNodeById', '124').name,
- 'node2'
- );
-
- // 4. add node with string id; search by int
- $tree.tree(
- 'appendNode',
- {
- label: 'abc',
- id: '234'
- }
- );
-
- assert.equal(
- $tree.tree('getNodeById', 234).name,
- 'abc'
- );
- assert.equal(
- $tree.tree('getNodeById', '234').name,
- 'abc'
- );
-
- // 5. load subtree in node2
- var subtree_data = [
- {
- label: 'sub1',
- id: 200,
- children: [
- {label: 'sub2', id: 201}
- ]
- }
- ];
- $tree.tree('loadData', subtree_data, node2);
- var t = $tree.tree('getTree');
-
- assert.equal(
- $tree.tree('getNodeById', 200).name,
- 'sub1'
- );
- assert.equal(
- $tree.tree('getNodeById', 201).name,
- 'sub2'
- );
-});
-
-test('autoOpen', function(assert) {
- var $tree = $('#tree1');
-
- function formatOpenFolders() {
- var open_nodes = [];
- $tree.find('li').each(function() {
- var $li = $(this);
- if ($li.is('.jqtree-folder') && ! $li.is('.jqtree-closed')) {
- var label = $li.children('.jqtree-element').find('span').text();
- open_nodes.push(label);
- };
- });
-
- return open_nodes.join(';');
- }
-
- /*
- -l1n1 (level 0)
- ----l2n1 (1)
- ----l2n2 (1)
- -------l3n1 (2)
- ----------l4n1 (3)
- -l1n2
- */
- var data = [
- {
- label: 'l1n1',
- children: [
- 'l2n1',
- {
- label: 'l2n2',
- children: [
- {
- label: 'l3n1',
- children: [
- 'l4n1'
- ]
- }
- ]
- }
- ]
- },
- 'l1n2'
- ];
-
- // 1. autoOpen is false
- $tree.tree({
- data: data,
- autoOpen: false
- });
- assert.equal(formatOpenFolders(), '');
-
- $tree.tree('destroy');
-
- // 2. autoOpen is true
- $tree.tree({
- data: data,
- autoOpen: true
- });
- assert.equal(formatOpenFolders(), 'l1n1;l2n2;l3n1');
-
- $tree.tree('destroy');
-
- // 3. autoOpen level 1
- $tree.tree({
- data: data,
- autoOpen: 1
- });
- assert.equal(formatOpenFolders(), 'l1n1;l2n2');
-});
-
-test('onCreateLi', function(assert) {
- // 1. init tree with onCreateLi
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- onCreateLi: function(node, $li) {
- var $span = $li.children('.jqtree-element').find('span');
- $span.html('_' + node.name + '_');
- }
- });
-
- assert.equal(
- $tree.find('span:eq(0)').text(),
- '_node1_'
- );
-});
-
-test('save state', function(assert) {
- // setup
- var state = null;
-
- // Fake $.cookie plugin for browsers that do not support localstorage
- $.cookie = function(key, param2, param3) {
- if (typeof param3 == 'object') {
- // set
- state = param2;
- }
- else {
- // get
- return state;
- }
- }
-
- // Remove state from localstorage
- if (typeof localStorage != 'undefined') {
- localStorage.setItem('my_tree', null);
- }
-
- // 1. init tree
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true,
- saveState: 'my_tree'
- });
-
- var tree = $tree.tree('getTree');
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // 2. select node -> state is saved
- $tree.tree('selectNode', tree.children[0]);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // 3. init tree again
- $tree.tree('destroy');
-
- $tree.tree({
- data: example_data,
- selectable: true,
- saveState: 'my_tree'
- });
-
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- $.cookie = null;
-});
-
-test('generate hit areas', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- // 1. get hit areas
- var node = $tree.tree('getNodeById', 123);
- var hit_areas = $tree.tree('testGenerateHitAreas', node);
-
- var strings = $.map(hit_areas, function(hit_area) {
- return hit_area.node.name + ' ' + Position.getName(hit_area.position);
- });
- assert.equal(strings.join(';'), 'node1 none;node2 inside;node2 after');
-});
-
-test('removeNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- // 1. Remove selected node; node is 'child1'
- var child1 = $tree.tree('getNodeByName', 'child1');
- $tree.tree('selectNode', child1);
-
- assert.equal($tree.tree('getSelectedNode').name, 'child1');
-
- $tree.tree('removeNode', child1);
-
- assert.equal(
- formatTitles($tree),
- 'node1 child2 node2 child3'
- );
-
- // getSelectedNode must now return false
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // 2. No node is selected; remove child3
- $tree.tree('loadData', example_data);
-
- var child3 = $tree.tree('getNodeByName', 'child3');
- $tree.tree('removeNode', child3);
-
- assert.equal(
- formatTitles($tree),
- 'node1 child1 child2 node2'
- );
-
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // 3. Remove parent of selected node
- $tree.tree('loadData', example_data);
-
- child1 = $tree.tree('getNodeByName', 'child1');
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- $tree.tree('selectNode', child1);
-
- $tree.tree('removeNode', node1);
-
- // node is unselected
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // 4. Remove unselected node without an id
- $tree.tree('loadData', example_data2);
-
- var c1 = $tree.tree('getNodeByName', 'c1');
-
- $tree.tree('removeNode', c1);
-
- assert.equal(
- formatTitles($tree),
- 'main c2'
- );
-});
-
-test('appendNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // 1. Add child3 to node1
- $tree.tree('appendNode', 'child3', node1);
-
- assert.equal(
- formatTitles($(node1.element)),
- 'node1 child1 child2 child3'
- );
-
- // 2. Add child4 to child1
- var child1 = $tree.tree('getNodeByName', 'child1');
-
- // Node 'child1' does not have a toggler button
- assert.equal(
- $(child1.element).find('> .jqtree-element > .jqtree-toggler').length,
- 0
- );
-
- $tree.tree('appendNode', 'child4', child1);
-
- assert.equal(formatTitles($(child1.element)), 'child1 child4');
-
- // Node 'child1' must get a toggler button
- assert.equal(
- $(child1.element).find('> .jqtree-element > .jqtree-toggler').length,
- 1
- );
-});
-
-test('prependNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // 1. Prepend child0 to node1
- $tree.tree('prependNode', 'child0', node1);
-
- assert.equal(
- formatTitles($(node1.element)),
- 'node1 child0 child1 child2'
- );
-});
-
-test('init event for local data', function(assert) {
- // setup
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- $tree.bind('tree.init', function() {
- // Check that we can call functions in 'tree.init' event
- assert.equal($tree.tree('getNodeByName', 'node2').name, 'node2');
-
- done();
- });
-
- // init tree
- $tree.tree({
- data: example_data
- });
-});
-
-test('init event for ajax', function(assert) {
- // setup
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- mockjax({
- url: '/tree/',
- responseText: example_data,
- logging: false
- });
-
- $tree.bind('tree.init', function() {
- assert.equal($tree.tree('getNodeByName', 'node2').name, 'node2');
-
- done();
- });
-
- // init tree
- $tree.tree({
- dataUrl: '/tree/'
- });
-});
-
-test('updateNode', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 node2 child3');
-
- // -- update label
- var node2 = $tree.tree('getNodeByName', 'node2');
- $tree.tree('updateNode', node2, 'CHANGED');
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 CHANGED child3');
- assert.equal(node2.name, 'CHANGED');
-
- // -- update data
- $tree.tree(
- 'updateNode',
- node2,
- {
- name: 'xyz',
- tag1: 'abc'
- }
- );
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 xyz child3');
- assert.equal(node2.name, 'xyz');
- assert.equal(node2.tag1, 'abc');
-
- // - update id
- assert.equal(node2.id, 124);
-
- $tree.tree('updateNode', node2, {id: 555});
-
- assert.equal(node2.id, 555);
- assert.equal(node2.name, 'xyz');
-
- // get node by id
- var node_555 = $tree.tree('getNodeById', 555);
- assert.equal(node_555.name, 'xyz');
-
- var node_124 = $tree.tree('getNodeById', 124);
- assert.equal(node_124, undefined);
-
- // update child1
- var child1 = $tree.tree('getNodeByName', 'child1');
-
- $tree.tree('updateNode', child1, 'child1a');
-
- assert.equal(formatTitles($tree), 'node1 child1a child2 xyz child3');
-
- // select child1
- $tree.tree('selectNode', child1);
- $tree.tree('updateNode', child1, 'child1b');
-
- assert.ok($(child1.element).hasClass('jqtree-selected'));
-
- // add children to child1
- $tree.tree(
- 'updateNode',
- child1,
- {
- id: child1.id,
- name: 'child1',
- children: [
- { id: 5, name: 'child1-1' }
- ]
- }
- );
-
- assert.equal(formatTitles($tree), 'node1 child1 child1-1 child2 xyz child3');
-
- // remove children
- $tree.tree(
- 'updateNode',
- child1,
- {
- id: child1.id,
- name: 'child1',
- children: []
- }
- );
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 xyz child3');
-});
-
-test('moveNode', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
-
- var child1 = $tree.tree('getNodeByName', 'child1');
- var child2 = $tree.tree('getNodeByName', 'child2');
- var node1 = $tree.tree('getNodeByName', 'node1');
- var node2 = $tree.tree('getNodeByName', 'node2');
-
- // -- Move child1 after node2
- $tree.tree('moveNode', child1, node2, 'after');
-
- assert.equal(formatTitles($tree), 'node1 child2 node2 child3 child1');
-
- // -- Check that illegal moves are skipped
- $tree.tree('moveNode', node1, child2, 'inside');
-});
-
-test('load on demand', function(assert) {
- // setup
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- $tree.tree({
- data: [
- {
- id: 1,
- label: 'node1',
- load_on_demand: true
- }
- ],
- dataUrl: '/tree/'
- });
-
- mockjax({
- url: '*',
- response: function(options) {
- assert.equal(options.url, '/tree/', '2');
- assert.deepEqual(options.data, { 'node' : 1 }, '3');
-
- this.responseText = [
- {
- id: 2,
- label: 'child1'
- }
- ];
- },
- logging: false
- });
-
- // -- open node
- function handleOpenNode(node) {
- assert.equal(node.name, 'node1');
- assert.equal(formatTitles($tree), 'node1 child1', '4');
-
- done();
- }
-
- var node1 = $tree.tree('getNodeByName', 'node1');
- assert.equal(formatTitles($tree), 'node1', '1');
-
- $tree.tree('openNode', node1, handleOpenNode);
-});
-
-test('addNodeAfter', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // -- add node after node1
- $tree.tree('addNodeAfter', 'node3', node1);
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 node3 node2 child3');
-});
-
-test('addNodeBefore', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // -- add node before node1
- var new_node = $tree.tree('addNodeBefore', 'node3', node1);
-
- assert.equal(formatTitles($tree), 'node3 node1 child1 child2 node2 child3');
-});
-
-test('addParentNode', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
- var child3 = $tree.tree('getNodeByName', 'child3');
-
- // -- add parent to child3
- $tree.tree('addParentNode', 'node3', child3);
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 node2 node3 child3');
-});
-
-test('mouse events', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- dragAndDrop: true,
- autoOpen: true
- });
- $tree.tree('setMouseDelay', 0);
-
- function getTitleElement(node_name) {
- var node = $tree.tree('getNodeByName', node_name);
- var $el = $(node.element);
- return $($el.find('.jqtree-title'));
- }
-
- var $node1 = getTitleElement('node1');
- var $child3 = getTitleElement('child3');
-
- // Move node1 inside child3
- // trigger mousedown event on node1
- $node1.trigger(
- $.Event('mousedown', { which: 1 })
- );
-
- // trigger mouse move to child3
- var child3_offset = $child3.offset();
- $tree.trigger(
- $.Event('mousemove', { pageX: child3_offset.left, pageY: child3_offset.top })
- );
- $tree.trigger('mouseup');
-
- assert.equal(
- formatTitles($tree),
- 'node2 child3 node1 child1 child2'
- );
-});
-
-test('multiple select', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({ data: example_data });
-
- var child1 = $tree.tree('getNodeByName', 'child1');
- var child2 = $tree.tree('getNodeByName', 'child2');
-
- // -- add nodes to selection
- // todo: more nodes as parameters?
- // todo: rename to 'selection.add' or 'selection' 'add'?
- $tree.tree('addToSelection', child1);
- $tree.tree('addToSelection', child2);
-
- // -- get selected nodes
- var selected_nodes = $tree.tree('getSelectedNodes');
- assert.equal(
- formatNodes(selected_nodes),
- 'child1 child2'
- );
-});
-
-test('keyboard', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- function keyDown(key) {
- $tree.trigger(
- $.Event('keydown', { which: key })
- );
- }
-
- $tree.tree({ data: example_data });
-
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // select node1
- $tree.tree('selectNode', node1);
- assert.equal(node1.is_open, undefined);
-
- // - move down; -> node2
- keyDown(40);
- assert.equal($tree.tree('getSelectedNode').name, 'node2');
-
- // - move up; -> back to node1
- keyDown(38);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // - move right; open node1
- keyDown(39);
- assert.equal(node1.is_open, true);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // - select child3 and move up -> node2
- $tree.tree('selectNode', $tree.tree('getNodeByName', 'child3'));
- keyDown(38);
- assert.equal($tree.tree('getSelectedNode').name, 'node2');
-
- // - move up -> child2
- keyDown(38);
- assert.equal($tree.tree('getSelectedNode').name, 'child2');
-
- // - select node1 and move left -> close
- $tree.tree('selectNode', node1);
- keyDown(37);
- assert.equal(node1.is_open, false);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-});
-
-test('getNodesByProperty', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
- var node2 = $tree.tree('getNodeByName', 'node2');
-
- // 1. get 'node1' by property
- assert.equal(
- $tree.tree('getNodesByProperty', 'int_property', 1)[0].name,
- 'node1'
- );
-
- // 2. get property that does not exist in any node
- assert.equal($tree.tree('getNodesByProperty', 'int_property', 123).length, 0);
-
- // 3. get string property
- assert.equal(
- $tree.tree('getNodesByProperty', 'str_property', '1')[0].name,
- 'node1'
- );
-
- // 4. add node with string id; search by int
- $tree.tree(
- 'appendNode',
- {
- label: 'abc',
- id: '234',
- str_property: '111',
- int_property: 111
- }
- );
-
- assert.equal(
- $tree.tree('getNodesByProperty', 'int_property', 111)[0].name,
- 'abc'
- );
- assert.equal(
- $tree.tree('getNodesByProperty', 'str_property', '111')[0].name,
- 'abc'
- );
-
- // 5. load subtree in node2
- var subtree_data = [
- {
- label: 'sub1',
- id: 200,
- int_property: 222,
- children: [
- {label: 'sub2', id: 201, int_property: 444}
- ]
- }
- ];
- $tree.tree('loadData', subtree_data, node2);
- var t = $tree.tree('getTree');
-
- assert.equal(
- $tree.tree('getNodesByProperty', 'int_property', 222)[0].name,
- 'sub1'
- );
- assert.equal(
- $tree.tree('getNodesByProperty', 'int_property', 444)[0].name,
- 'sub2'
- );
-});
-
-test('dataUrl extra options', function(assert) {
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- mockjax({
- url: '*',
- response: function(options) {
- // 2. handle ajax request
- // expect 'headers' option
- assert.equal(options.url, '/tree2/');
- assert.deepEqual(options.headers, {'abc': 'def'});
-
- done();
- },
- logging: false
- });
-
- // 1. init tree
- // dataUrl contains 'headers' option
- $tree.tree({
- dataUrl: {
- 'url': '/tree2/',
- 'headers': {'abc': 'def'}
- }
- });
-});
-
-test('dataUrl is function', function(assert) {
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- mockjax({
- url: '*',
- response: function(options) {
- // 2. handle ajax request
- // expect 'headers' option
- assert.equal(options.url, '/tree3/');
- assert.deepEqual(options.headers, {'abc': 'def'});
-
- done();
- },
- logging: false
- });
-
- // 1. init tree
- // dataUrl is a function
- $tree.tree({
- dataUrl: function(node) {
- return {
- 'url': '/tree3/',
- 'headers': {'abc': 'def'}
- };
- }
- });
-});
-
-test('getNodeByHtmlElement', function(assert) {
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var $el = $('.jqtree-title');
-
- // Get node for jquery element
- var node = $tree.tree('getNodeByHtmlElement', $el);
- assert.equal(node.name, 'node1');
-
- // Same for html element
- node = $tree.tree('getNodeByHtmlElement', $el[0]);
- assert.equal(node.name, 'node1');
-});
-
-test('onLoadFailed', function(assert) {
- mockjax({
- url: '/tree/',
- status: 500,
- responseText: 'test error',
- logging: false
- });
-
- var done = assert.async();
-
- function handleLoadFailed(e) {
- assert.equal(e.responseText, 'test error');
-
- done();
- }
-
- var $tree = $('#tree1');
- $tree.tree({
- dataUrl: '/tree/',
- onLoadFailed: handleLoadFailed
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_tree.js b/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_tree.js
deleted file mode 100644
index ffa4910c..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_tree.js
+++ /dev/null
@@ -1,726 +0,0 @@
-var utils_for_test = require('./utils_for_test');
-
-var example_data = utils_for_test.example_data;
-var formatNodes = utils_for_test.formatNodes;
-
-var tree_vars = utils_for_test.getTreeVariables();
-
-var Node = tree_vars.Node;
-var Position = tree_vars.Position;
-
-var test = QUnit.test;
-
-
-QUnit.module("Tree");
-test('constructor', function(assert) {
- // 1. Create node from string
- var node = new Node('n1');
-
- assert.equal(node.name, 'n1');
- assert.equal(node.children.length, 0);
- assert.equal(node.parent, null);
-
- // 2. Create node from object
- node = new Node({
- label: 'n2',
- id: 123,
- parent: 'abc', // parent must be ignored
- children: ['c'], // children must be ignored
- url: '/'
- });
-
- assert.equal(node.name, 'n2');
- assert.equal(node.id, 123);
- assert.equal(node.url, '/');
- assert.equal(node.label, undefined);
- assert.equal(node.children.length, 0);
- assert.equal(node.parent, null);
-});
-
-test("create tree from data", function(assert) {
- function checkData(tree) {
- assert.equal(
- formatNodes(tree.children),
- 'node1 node2',
- 'nodes on level 1'
- );
- assert.equal(
- formatNodes(tree.children[0].children),
- 'child1 child2',
- 'children of node1'
- );
- assert.equal(
- formatNodes(tree.children[1].children),
- 'child3',
- 'children of node2'
- );
- assert.equal(
- tree.children[0].id,
- 123,
- 'id'
- );
- }
-
- // - create tree from example data
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
- checkData(tree);
-
- // - create tree from new data format
- var data = [
- {
- label: 'node1',
- id: 123,
- children: ['child1', 'child2'] // nodes are only defined by a string
- },
- {
- label: 'node2',
- id: 124,
- children: ['child3']
- }
- ];
- var tree = new Node(null, true);
- tree.loadFromData(data);
- checkData(tree);
-});
-
-test("addChild", function(assert) {
- var tree = new Node('tree1', true);
- tree.addChild(
- new Node('abc')
- );
- tree.addChild(
- new Node('def')
- );
-
- assert.equal(
- formatNodes(tree.children),
- 'abc def',
- 'children'
- );
-
- var node = tree.children[0];
- assert.equal(
- node.parent.name,
- 'tree1',
- 'parent of node'
- );
-});
-
-test('addChildAtPosition', function(assert) {
- var tree = new Node(null, true);
- tree.addChildAtPosition(new Node('abc'), 0); // first
- tree.addChildAtPosition(new Node('ghi'), 2); // index 2 does not exist
- tree.addChildAtPosition(new Node('def'), 1);
- tree.addChildAtPosition(new Node('123'), 0);
-
- assert.equal(
- formatNodes(tree.children),
- '123 abc def ghi',
- 'children'
- );
-});
-
-test('removeChild', function(assert) {
- var tree = new Node(null, true);
-
- var abc = new Node({'label': 'abc', 'id': 1});
- var def = new Node({'label': 'def', 'id': 2});
- var ghi = new Node({'label': 'ghi', 'id': 3});
-
- tree.addChild(abc);
- tree.addChild(def);
- tree.addChild(ghi);
-
- var jkl = new Node({'label': 'jkl', 'id': 4});
- def.addChild(jkl);
-
- assert.equal(
- formatNodes(tree.children),
- 'abc def ghi',
- 'children'
- );
-
- assert.equal(tree.id_mapping[2].name, 'def');
- assert.equal(tree.id_mapping[4].name, 'jkl');
-
- // remove 'def'
- tree.removeChild(def);
- assert.equal(
- formatNodes(tree.children),
- 'abc ghi',
- 'children'
- );
-
- assert.equal(tree.id_mapping[2], null);
- assert.equal(tree.id_mapping[4], null);
-
- // remove 'ghi'
- tree.removeChild(ghi);
- assert.equal(
- formatNodes(tree.children),
- 'abc',
- 'children'
- );
-
- // remove 'abc'
- tree.removeChild(abc);
- assert.equal(
- formatNodes(tree.children),
- '',
- 'children'
- );
-});
-
-test('getChildIndex', function(assert) {
- // setup
- var tree = new Node(null, true);
-
- var abc = new Node('abc');
- var def = new Node('def');
- var ghi = new Node('ghi');
- tree.addChild(abc);
- tree.addChild(def);
- tree.addChild(ghi);
-
- // 1. Get child index of 'def'
- assert.equal(tree.getChildIndex(def), 1);
-
- // 2. Get child index of non-existing node
- assert.equal(tree.getChildIndex(new Node('xyz')), -1);
-});
-
-test('hasChildren', function(assert) {
- var tree = new Node(null, true);
- assert.equal(
- tree.hasChildren(),
- false,
- 'tree without children'
- );
-
- tree.addChild(new Node('abc'));
- assert.equal(
- tree.hasChildren(),
- true,
- 'tree has children'
- );
-});
-
-test('iterate', function(assert) {
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // iterate over all the nodes
- var nodes = [];
- tree.iterate(
- function(node, level) {
- nodes.push(node);
- return true;
- }
- );
-
- assert.equal(
- formatNodes(nodes),
- 'node1 child1 child2 node2 child3',
- 'all nodes'
- );
-
- // iterate over nodes on first level
- nodes = [];
- tree.iterate(
- function(node, level) {
- nodes.push(node);
- return false;
- }
- );
-
- assert.equal(
- formatNodes(nodes),
- 'node1 node2',
- 'nodes on first level'
- );
-
- // add child 4
- var node3 = tree.getNodeById(124).children[0];
- node3.addChild(
- new Node('child4')
- );
-
- // test level parameter
- nodes = [];
- tree.iterate(
- function(node, level) {
- nodes.push(node.name + ' ' + level);
- return true;
- }
- );
-
- assert.equal(
- nodes.join(','),
- 'node1 0,child1 1,child2 1,node2 0,child3 1,child4 2'
- );
-});
-
-test('moveNode', function(assert) {
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- /*
- node1
- ---child1
- ---child2
- node2
- ---child3
- */
-
- var node1 = tree.children[0];
- var node2 = tree.children[1];
- var child1 = node1.children[0];
- var child2 = node1.children[1];
- assert.equal(node2.name, 'node2', 'node2 name');
- assert.equal(child2.name, 'child2', 'child2 name');
-
- // move child2 after node2
- tree.moveNode(child2, node2, Position.AFTER);
-
- /*
- node1
- ---child1
- node2
- ---child3
- child2
- */
- assert.equal(
- formatNodes(tree.children),
- 'node1 node2 child2',
- 'tree nodes at first level'
- );
- assert.equal(
- formatNodes(node1.children),
- 'child1',
- 'node1 children'
- );
-
- // move child1 inside node2
- // this means it's the first child
- tree.moveNode(child1, node2, Position.INSIDE);
-
- /*
- node1
- node2
- ---child1
- ---child3
- child2
- */
- assert.equal(
- formatNodes(node2.children),
- 'child1 child3',
- 'node2 children'
- );
- assert.equal(
- formatNodes(node1.children),
- '',
- 'node1 has no children'
- );
-
- // move child2 before child1
- tree.moveNode(child2, child1, Position.BEFORE);
-
- /*
- node1
- node2
- ---child2
- ---child1
- ---child3
- */
- assert.equal(
- formatNodes(node2.children),
- 'child2 child1 child3',
- 'node2 children'
- );
- assert.equal(
- formatNodes(tree.children),
- 'node1 node2',
- 'tree nodes at first level'
- );
-});
-
-test('initFromData', function(assert) {
- var data =
- {
- label: 'main',
- children: [
- 'c1',
- {
- label: 'c2',
- id: 201
- }
- ]
- };
- var node = new Node(null, true);
- node.initFromData(data);
-
- assert.equal(node.name, 'main')
- assert.equal(
- formatNodes(node.children),
- 'c1 c2',
- 'children'
- );
- assert.equal(node.children[1].id, 201);
-});
-
-test('getData', function(assert) {
- // 1. empty node
- var node = new Node(null, true);
- assert.deepEqual(node.getData(), []);
-
- // 2.node with data
- node.loadFromData(
- [
- {
- label: 'n1',
- children: [
- {
- label: 'c1'
- }
- ]
- }
- ]
- );
- assert.deepEqual(
- node.getData(),
- [
- {
- name: 'n1',
- children: [
- {
- name: 'c1'
- }
- ]
- }
- ]
- );
-
- // 3. get data including parent
- var n1 = node.getNodeByName('n1');
-
- assert.deepEqual(
- n1.getData(true),
- [
- {
- name: 'n1',
- children: [
- { name: 'c1'}
- ]
- }
- ]
- );
-});
-
-test('addAfter', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- /*
- -node1
- ---c1
- ---c2
- -node2
- ---c3
- */
-
- assert.equal(formatNodes(tree.children), 'node1 node2');
-
- // - Add 'node_b' after node2
- var node2 = tree.getNodeByName('node2');
- node2.addAfter('node_b');
-
- assert.equal(formatNodes(tree.children), 'node1 node2 node_b');
-
- var node_b = tree.getNodeByName('node_b');
- assert.equal(node_b.name, 'node_b');
-
- // - Add 'node_a' after node1
- var node1 = tree.getNodeByName('node1');
- node1.addAfter('node_a');
-
- assert.equal(formatNodes(tree.children), 'node1 node_a node2 node_b');
-
- // - Add 'node_c' after node_b; new node is an object
- node_b.addAfter({
- label: 'node_c',
- id: 789
- });
-
- var node_c = tree.getNodeByName('node_c');
- assert.equal(node_c.id, 789);
-
- assert.equal(formatNodes(tree.children), 'node1 node_a node2 node_b node_c');
-
- // - Add after root node; this is not possible
- assert.equal(tree.addAfter('node_x'), null);
-});
-
-test('addBefore', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // - Add 'node_0' before node1
- var node1 = tree.getNodeByName('node1');
- node1.addBefore('node0');
- assert.equal(formatNodes(tree.children), 'node0 node1 node2');
-
- // - Add before root node; this is not possile
- assert.equal(tree.addBefore('x'), null);
-});
-
-test('addParent', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // - Add node 'root' as parent of node1
- // Note that node also becomes a child of 'root'
- var node1 = tree.getNodeByName('node1');
- node1.addParent('root');
-
- var root = tree.getNodeByName('root');
- assert.equal(formatNodes(root.children), 'node1 node2');
-
- // - Add parent to root node; not possible
- assert.equal(tree.addParent('x'), null);
-});
-
-test('remove', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- var child1 = tree.getNodeByName('child1');
- var node1 = tree.getNodeByName('node1');
-
- assert.equal(formatNodes(node1.children), 'child1 child2');
- assert.equal(child1.parent, node1);
-
- // 1. Remove child1
- child1.remove();
-
- assert.equal(formatNodes(node1.children), 'child2');
- assert.equal(child1.parent, null);
-});
-
-test('append', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- var node1 = tree.getNodeByName('node1');
-
- // 1. Append child3 to node1
- node1.append('child3');
-
- assert.equal(formatNodes(node1.children), 'child1 child2 child3');
-
- // 2. Append subtree
- node1.append(
- {
- name: 'child4',
- children: [
- { name: 'child5' }
- ]
- }
- );
-
- assert.equal(formatNodes(node1.children), 'child1 child2 child3 child4');
-
- var child4 = node1.getNodeByName('child4');
- assert.equal(formatNodes(child4.children), 'child5');
-});
-
-test('prepend', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- var node1 = tree.getNodeByName('node1');
-
- // 1. Prepend child0 to node1
- node1.prepend('child0');
-
- assert.equal(formatNodes(node1.children), 'child0 child1 child2');
-
- // 2. Prepend subtree
- node1.prepend({
- name: 'child3',
- children: [
- { name: 'child4' }
- ]
- });
-
- assert.equal(formatNodes(node1.children), 'child3 child0 child1 child2');
-
- var child3 = node1.getNodeByName('child3');
- assert.equal(formatNodes(child3.children), 'child4');
-});
-
-test('getNodeById', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // 1. Get node with id 124
- var node = tree.getNodeById(124);
- assert.equal(node.name, 'node2');
-
- // 2. Delete node with id 124 and search again
- node.remove();
-
- assert.equal(tree.getNodeById(124), null);
-
- // 3. Add node with id 456 and search for it
- var child3 = tree.getNodeByName('child2');
- child3.append({
- id: 456,
- label: 'new node'
- });
-
- node = tree.getNodeById(456);
- assert.equal(node.name, 'new node');
-});
-
-test('getLevel', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // 1. get level for node1 and child1
- assert.equal(tree.getNodeByName('node1').getLevel(), 1);
- assert.equal(tree.getNodeByName('child1').getLevel(), 2);
-});
-
-test('loadFromData and id mapping', function(assert) {
- // - get node from empty tree
- var tree = new Node(null, true);
- assert.equal(tree.getNodeById(999), null);
-
- // - load example data in tree
- tree.loadFromData(example_data);
- assert.equal(tree.getNodeById(124).name, 'node2');
-
- var child2 = tree.getNodeById(126);
- child2.addChild(
- new Node({label: 'child4', id: 128})
- );
- child2.addChild(
- new Node({label: 'child5', id: 129})
- );
-
- // - load data in node child2
- child2.loadFromData(['abc', 'def']);
-
- assert.equal(tree.getNodeById(128), null);
- assert.equal(child2.children.length, 2);
- assert.equal(child2.children[0].name, 'abc');
-});
-
-test('removeChildren', function(assert) {
- // - load example data
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // add child4 and child5
- var child2 = tree.getNodeById(126);
- assert.equal(child2.name, 'child2');
-
- child2.addChild(
- new Node({label: 'child4', id: 128})
- );
- child2.addChild(
- new Node({label: 'child5', id: 129})
- );
- assert.equal(tree.getNodeById(128).name, 'child4');
-
- // - remove children from child2
- child2.removeChildren();
- assert.equal(tree.getNodeById(128), null);
- assert.equal(child2.children.length, 0);
-});
-
-test('node with id 0', function(assert) {
- // - load node with id 0
- var tree = new Node(null, true);
- tree.loadFromData([
- {
- id: 0,
- label: 'mynode'
- }
- ]);
-
- // - get node by id
- var node = tree.getNodeById(0);
- assert.equal(node.name, 'mynode');
-
- // -- remove the node
- node.remove();
-
- assert.equal(tree.getNodeById(0), undefined);
-});
-
-test('getPreviousSibling', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // - getPreviousSibling
- assert.equal(
- tree.getNodeByName('child2').getPreviousSibling().name,
- 'child1'
- );
- assert.equal(tree.getPreviousSibling(), null);
- assert.equal(
- tree.getNodeByName('child1').getPreviousSibling(),
- null
- );
-});
-
-test('getNextSibling', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // - getNextSibling
- assert.equal(
- tree.getNodeByName('node1').getNextSibling().name,
- 'node2'
- );
- assert.equal(
- tree.getNodeByName('node2').getNextSibling(),
- null
- );
- assert.equal(tree.getNextSibling(), null);
-});
-
-test('getNodesByProperty', function(assert) {
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- nodes = tree.getNodesByProperty('name', 'child1');
-
- assert.equal(nodes.length, 1);
- assert.equal(nodes[0].name, 'child1');
-});
-
-test('getNodeByCallback', function(assert) {
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- node = tree.getNodeByCallback(
- function(node) {
- return node.name == 'child1';
- }
- );
-
- assert.equal(node.name, 'child1');
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_util.js b/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_util.js
deleted file mode 100644
index 18b6464e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src_test/test_util.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var utils_for_test = require('./utils_for_test');
-
-var tree_vars = utils_for_test.getTreeVariables();
-
-var Position = tree_vars.Position;
-var util = tree_vars.util;
-
-var test = QUnit.test;
-
-
-QUnit.module('util');
-
-test('indexOf', function(assert) {
- var _indexOf = util._indexOf;
- var indexOf = util.indexOf;
-
- assert.equal(indexOf([3, 2, 1], 1), 2);
- assert.equal(_indexOf([3, 2, 1], 1), 2);
- assert.equal(indexOf([4, 5, 6], 1), -1);
- assert.equal(_indexOf([4, 5, 6], 1), -1);
-});
-
-test('Position.getName', function(assert) {
- assert.equal(Position.getName(Position.BEFORE), 'before');
- assert.equal(Position.getName(Position.AFTER), 'after');
- assert.equal(Position.getName(Position.INSIDE), 'inside');
- assert.equal(Position.getName(Position.NONE), 'none');
-});
-
-test('Position.nameToIndex', function(assert) {
- assert.equal(Position.nameToIndex('before'), Position.BEFORE);
- assert.equal(Position.nameToIndex('after'), Position.AFTER);
- assert.equal(Position.nameToIndex(''), 0);
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/src_test/utils_for_test.js b/ecomp-portal-FE/client/bower_components/jqTree/src_test/utils_for_test.js
deleted file mode 100644
index 3885ef51..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/src_test/utils_for_test.js
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
-example data:
-
-node1
----child1
----child2
--node2
----child3
-*/
-
-var example_data = [
- {
- label: 'node1',
- id: 123, // extra data
- int_property: 1,
- str_property: '1',
- children: [
- { label: 'child1', id: 125, int_property: 2 },
- { label: 'child2', id: 126 }
- ]
- },
- {
- label: 'node2',
- id: 124,
- int_property: 3,
- str_property: '3',
- children: [
- { label: 'child3', id: 127 }
- ]
- }
-];
-
-/*
-example data 2:
-
--main
----c1
----c2
-*/
-
-var example_data2 = [
- {
- label: 'main',
- children: [
- { label: 'c1' },
- { label: 'c2' }
- ]
- }
-];
-
-function formatNodes(nodes) {
- var strings = $.map(nodes, function(node) {
- return node.name;
- });
- return strings.join(' ');
-};
-
-function isNodeClosed($node) {
- return (
- ($node.is('li.jqtree-folder.jqtree-closed')) &&
- ($node.find('a:eq(0)').is('a.jqtree-toggler.jqtree-closed')) &&
- ($node.find('ul:eq(0)').is('ul'))
- );
-}
-
-function isNodeOpen($node) {
- return (
- ($node.is('li.jqtree-folder')) &&
- ($node.find('a:eq(0)').is('a.jqtree-toggler')) &&
- ($node.find('ul:eq(0)').is('ul')) &&
- (! $node.is('li.jqtree-folder.jqtree-closed')) &&
- (! $node.find('span:eq(0)').is('a.jqtree-toggler.jqtree-closed'))
- );
-}
-
-function formatTitles($node) {
- var titles = $node.find('.jqtree-title').map(
- function(i, el) {
- return $(el).text();
- }
- );
- return titles.toArray().join(' ');
-}
-
-function getTreeVariables() {
- var JqTreeWidget = $('').tree('get_widget_class');
-
- var node = JqTreeWidget.getModule('node');
- var util = JqTreeWidget.getModule('util');
-
- return {
- Node: node.Node,
- Position: node.Position,
- util: util
- };
-}
-
-
-module.exports = {
- example_data: example_data,
- example_data2: example_data2,
- formatNodes: formatNodes,
- formatTitles: formatTitles,
- getTreeVariables: getTreeVariables,
- isNodeClosed: isNodeClosed,
- isNodeOpen: isNodeOpen
-};
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower.json b/ecomp-portal-FE/client/bower_components/jqTree/static/bower.json
deleted file mode 100644
index 7aba92bd..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "jqtree-docs",
- "dependencies": {
- "blanket": "1.1.7",
- "bootstrap": "3.3.7",
- "fontawesome": "4.7.0",
- "jquery": "3.1.1",
- "jquery-2": "jquery#2.2.4",
- "jquery-1": "jquery#1.12.4",
- "jquery-cookie": "v1.4.1",
- "jquery-mockjax": "2.2.1",
- "json3": "3.3.2",
- "pygments": "2.1.3",
- "qunit": "2.1.1"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/blanket/dist/qunit/blanket.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/blanket/dist/qunit/blanket.js
deleted file mode 100644
index c07ede27..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/blanket/dist/qunit/blanket.js
+++ /dev/null
@@ -1,5299 +0,0 @@
-/*! blanket - v1.1.5 */
-
-if (typeof QUnit !== 'undefined'){ QUnit.config.autostart = false; }
-(function(define){
-/*
- Copyright (C) 2013 Ariya Hidayat <ariya.hidayat@gmail.com>
- Copyright (C) 2013 Thaddee Tyl <thaddee.tyl@gmail.com>
- Copyright (C) 2013 Mathias Bynens <mathias@qiwi.be>
- Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
- Copyright (C) 2012 Mathias Bynens <mathias@qiwi.be>
- Copyright (C) 2012 Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>
- Copyright (C) 2012 Kris Kowal <kris.kowal@cixar.com>
- Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com>
- Copyright (C) 2012 Arpad Borsos <arpad.borsos@googlemail.com>
- Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-/*jslint bitwise:true plusplus:true */
-/*global esprima:true, define:true, exports:true, window: true,
-throwErrorTolerant: true,
-throwError: true, generateStatement: true, peek: true,
-parseAssignmentExpression: true, parseBlock: true, parseExpression: true,
-parseFunctionDeclaration: true, parseFunctionExpression: true,
-parseFunctionSourceElements: true, parseVariableIdentifier: true,
-parseLeftHandSideExpression: true,
-parseUnaryExpression: true,
-parseStatement: true, parseSourceElement: true */
-
-(function (root, factory) {
- 'use strict';
-
- // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js,
- // Rhino, and plain browser loading.
-
- /* istanbul ignore next */
- if (typeof define === 'function' && define.amd) {
- define(['exports'], factory);
- } else if (typeof exports !== 'undefined') {
- factory(exports);
- } else {
- factory((root.esprima = {}));
- }
-}(this, function (exports) {
- 'use strict';
-
- var Token,
- TokenName,
- FnExprTokens,
- Syntax,
- PropertyKind,
- Messages,
- Regex,
- SyntaxTreeDelegate,
- source,
- strict,
- index,
- lineNumber,
- lineStart,
- length,
- delegate,
- lookahead,
- state,
- extra;
-
- Token = {
- BooleanLiteral: 1,
- EOF: 2,
- Identifier: 3,
- Keyword: 4,
- NullLiteral: 5,
- NumericLiteral: 6,
- Punctuator: 7,
- StringLiteral: 8,
- RegularExpression: 9
- };
-
- TokenName = {};
- TokenName[Token.BooleanLiteral] = 'Boolean';
- TokenName[Token.EOF] = '<end>';
- TokenName[Token.Identifier] = 'Identifier';
- TokenName[Token.Keyword] = 'Keyword';
- TokenName[Token.NullLiteral] = 'Null';
- TokenName[Token.NumericLiteral] = 'Numeric';
- TokenName[Token.Punctuator] = 'Punctuator';
- TokenName[Token.StringLiteral] = 'String';
- TokenName[Token.RegularExpression] = 'RegularExpression';
-
- // A function following one of those tokens is an expression.
- FnExprTokens = ['(', '{', '[', 'in', 'typeof', 'instanceof', 'new',
- 'return', 'case', 'delete', 'throw', 'void',
- // assignment operators
- '=', '+=', '-=', '*=', '/=', '%=', '<<=', '>>=', '>>>=',
- '&=', '|=', '^=', ',',
- // binary/unary operators
- '+', '-', '*', '/', '%', '++', '--', '<<', '>>', '>>>', '&',
- '|', '^', '!', '~', '&&', '||', '?', ':', '===', '==', '>=',
- '<=', '<', '>', '!=', '!=='];
-
- Syntax = {
- AssignmentExpression: 'AssignmentExpression',
- ArrayExpression: 'ArrayExpression',
- BlockStatement: 'BlockStatement',
- BinaryExpression: 'BinaryExpression',
- BreakStatement: 'BreakStatement',
- CallExpression: 'CallExpression',
- CatchClause: 'CatchClause',
- ConditionalExpression: 'ConditionalExpression',
- ContinueStatement: 'ContinueStatement',
- DoWhileStatement: 'DoWhileStatement',
- DebuggerStatement: 'DebuggerStatement',
- EmptyStatement: 'EmptyStatement',
- ExpressionStatement: 'ExpressionStatement',
- ForStatement: 'ForStatement',
- ForInStatement: 'ForInStatement',
- FunctionDeclaration: 'FunctionDeclaration',
- FunctionExpression: 'FunctionExpression',
- Identifier: 'Identifier',
- IfStatement: 'IfStatement',
- Literal: 'Literal',
- LabeledStatement: 'LabeledStatement',
- LogicalExpression: 'LogicalExpression',
- MemberExpression: 'MemberExpression',
- NewExpression: 'NewExpression',
- ObjectExpression: 'ObjectExpression',
- Program: 'Program',
- Property: 'Property',
- ReturnStatement: 'ReturnStatement',
- SequenceExpression: 'SequenceExpression',
- SwitchStatement: 'SwitchStatement',
- SwitchCase: 'SwitchCase',
- ThisExpression: 'ThisExpression',
- ThrowStatement: 'ThrowStatement',
- TryStatement: 'TryStatement',
- UnaryExpression: 'UnaryExpression',
- UpdateExpression: 'UpdateExpression',
- VariableDeclaration: 'VariableDeclaration',
- VariableDeclarator: 'VariableDeclarator',
- WhileStatement: 'WhileStatement',
- WithStatement: 'WithStatement'
- };
-
- PropertyKind = {
- Data: 1,
- Get: 2,
- Set: 4
- };
-
- // Error messages should be identical to V8.
- Messages = {
- UnexpectedToken: 'Unexpected token %0',
- UnexpectedNumber: 'Unexpected number',
- UnexpectedString: 'Unexpected string',
- UnexpectedIdentifier: 'Unexpected identifier',
- UnexpectedReserved: 'Unexpected reserved word',
- UnexpectedEOS: 'Unexpected end of input',
- NewlineAfterThrow: 'Illegal newline after throw',
- InvalidRegExp: 'Invalid regular expression',
- UnterminatedRegExp: 'Invalid regular expression: missing /',
- InvalidLHSInAssignment: 'Invalid left-hand side in assignment',
- InvalidLHSInForIn: 'Invalid left-hand side in for-in',
- MultipleDefaultsInSwitch: 'More than one default clause in switch statement',
- NoCatchOrFinally: 'Missing catch or finally after try',
- UnknownLabel: 'Undefined label \'%0\'',
- Redeclaration: '%0 \'%1\' has already been declared',
- IllegalContinue: 'Illegal continue statement',
- IllegalBreak: 'Illegal break statement',
- IllegalReturn: 'Illegal return statement',
- StrictModeWith: 'Strict mode code may not include a with statement',
- StrictCatchVariable: 'Catch variable may not be eval or arguments in strict mode',
- StrictVarName: 'Variable name may not be eval or arguments in strict mode',
- StrictParamName: 'Parameter name eval or arguments is not allowed in strict mode',
- StrictParamDupe: 'Strict mode function may not have duplicate parameter names',
- StrictFunctionName: 'Function name may not be eval or arguments in strict mode',
- StrictOctalLiteral: 'Octal literals are not allowed in strict mode.',
- StrictDelete: 'Delete of an unqualified identifier in strict mode.',
- StrictDuplicateProperty: 'Duplicate data property in object literal not allowed in strict mode',
- AccessorDataProperty: 'Object literal may not have data and accessor property with the same name',
- AccessorGetSet: 'Object literal may not have multiple get/set accessors with the same name',
- StrictLHSAssignment: 'Assignment to eval or arguments is not allowed in strict mode',
- StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode',
- StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode',
- StrictReservedWord: 'Use of future reserved word in strict mode'
- };
-
- // See also tools/generate-unicode-regex.py.
- Regex = {
- NonAsciiIdentifierStart: new RegExp('[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]'),
- NonAsciiIdentifierPart: new RegExp('[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]')
- };
-
- // Ensure the condition is true, otherwise throw an error.
- // This is only to have a better contract semantic, i.e. another safety net
- // to catch a logic error. The condition shall be fulfilled in normal case.
- // Do NOT use this to enforce a certain condition on any user input.
-
- function assert(condition, message) {
- /* istanbul ignore if */
- if (!condition) {
- throw new Error('ASSERT: ' + message);
- }
- }
-
- function isDecimalDigit(ch) {
- return (ch >= 48 && ch <= 57); // 0..9
- }
-
- function isHexDigit(ch) {
- return '0123456789abcdefABCDEF'.indexOf(ch) >= 0;
- }
-
- function isOctalDigit(ch) {
- return '01234567'.indexOf(ch) >= 0;
- }
-
-
- // 7.2 White Space
-
- function isWhiteSpace(ch) {
- return (ch === 0x20) || (ch === 0x09) || (ch === 0x0B) || (ch === 0x0C) || (ch === 0xA0) ||
- (ch >= 0x1680 && [0x1680, 0x180E, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x202F, 0x205F, 0x3000, 0xFEFF].indexOf(ch) >= 0);
- }
-
- // 7.3 Line Terminators
-
- function isLineTerminator(ch) {
- return (ch === 0x0A) || (ch === 0x0D) || (ch === 0x2028) || (ch === 0x2029);
- }
-
- // 7.6 Identifier Names and Identifiers
-
- function isIdentifierStart(ch) {
- return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)
- (ch >= 0x41 && ch <= 0x5A) || // A..Z
- (ch >= 0x61 && ch <= 0x7A) || // a..z
- (ch === 0x5C) || // \ (backslash)
- ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));
- }
-
- function isIdentifierPart(ch) {
- return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)
- (ch >= 0x41 && ch <= 0x5A) || // A..Z
- (ch >= 0x61 && ch <= 0x7A) || // a..z
- (ch >= 0x30 && ch <= 0x39) || // 0..9
- (ch === 0x5C) || // \ (backslash)
- ((ch >= 0x80) && Regex.NonAsciiIdentifierPart.test(String.fromCharCode(ch)));
- }
-
- // 7.6.1.2 Future Reserved Words
-
- function isFutureReservedWord(id) {
- switch (id) {
- case 'class':
- case 'enum':
- case 'export':
- case 'extends':
- case 'import':
- case 'super':
- return true;
- default:
- return false;
- }
- }
-
- function isStrictModeReservedWord(id) {
- switch (id) {
- case 'implements':
- case 'interface':
- case 'package':
- case 'private':
- case 'protected':
- case 'public':
- case 'static':
- case 'yield':
- case 'let':
- return true;
- default:
- return false;
- }
- }
-
- function isRestrictedWord(id) {
- return id === 'eval' || id === 'arguments';
- }
-
- // 7.6.1.1 Keywords
-
- function isKeyword(id) {
- if (strict && isStrictModeReservedWord(id)) {
- return true;
- }
-
- // 'const' is specialized as Keyword in V8.
- // 'yield' and 'let' are for compatiblity with SpiderMonkey and ES.next.
- // Some others are from future reserved words.
-
- switch (id.length) {
- case 2:
- return (id === 'if') || (id === 'in') || (id === 'do');
- case 3:
- return (id === 'var') || (id === 'for') || (id === 'new') ||
- (id === 'try') || (id === 'let');
- case 4:
- return (id === 'this') || (id === 'else') || (id === 'case') ||
- (id === 'void') || (id === 'with') || (id === 'enum');
- case 5:
- return (id === 'while') || (id === 'break') || (id === 'catch') ||
- (id === 'throw') || (id === 'const') || (id === 'yield') ||
- (id === 'class') || (id === 'super');
- case 6:
- return (id === 'return') || (id === 'typeof') || (id === 'delete') ||
- (id === 'switch') || (id === 'export') || (id === 'import');
- case 7:
- return (id === 'default') || (id === 'finally') || (id === 'extends');
- case 8:
- return (id === 'function') || (id === 'continue') || (id === 'debugger');
- case 10:
- return (id === 'instanceof');
- default:
- return false;
- }
- }
-
- // 7.4 Comments
-
- function addComment(type, value, start, end, loc) {
- var comment, attacher;
-
- assert(typeof start === 'number', 'Comment must have valid position');
-
- // Because the way the actual token is scanned, often the comments
- // (if any) are skipped twice during the lexical analysis.
- // Thus, we need to skip adding a comment if the comment array already
- // handled it.
- if (state.lastCommentStart >= start) {
- return;
- }
- state.lastCommentStart = start;
-
- comment = {
- type: type,
- value: value
- };
- if (extra.range) {
- comment.range = [start, end];
- }
- if (extra.loc) {
- comment.loc = loc;
- }
- extra.comments.push(comment);
- if (extra.attachComment) {
- extra.leadingComments.push(comment);
- extra.trailingComments.push(comment);
- }
- }
-
- function skipSingleLineComment(offset) {
- var start, loc, ch, comment;
-
- start = index - offset;
- loc = {
- start: {
- line: lineNumber,
- column: index - lineStart - offset
- }
- };
-
- while (index < length) {
- ch = source.charCodeAt(index);
- ++index;
- if (isLineTerminator(ch)) {
- if (extra.comments) {
- comment = source.slice(start + offset, index - 1);
- loc.end = {
- line: lineNumber,
- column: index - lineStart - 1
- };
- addComment('Line', comment, start, index - 1, loc);
- }
- if (ch === 13 && source.charCodeAt(index) === 10) {
- ++index;
- }
- ++lineNumber;
- lineStart = index;
- return;
- }
- }
-
- if (extra.comments) {
- comment = source.slice(start + offset, index);
- loc.end = {
- line: lineNumber,
- column: index - lineStart
- };
- addComment('Line', comment, start, index, loc);
- }
- }
-
- function skipMultiLineComment() {
- var start, loc, ch, comment;
-
- if (extra.comments) {
- start = index - 2;
- loc = {
- start: {
- line: lineNumber,
- column: index - lineStart - 2
- }
- };
- }
-
- while (index < length) {
- ch = source.charCodeAt(index);
- if (isLineTerminator(ch)) {
- if (ch === 0x0D && source.charCodeAt(index + 1) === 0x0A) {
- ++index;
- }
- ++lineNumber;
- ++index;
- lineStart = index;
- if (index >= length) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
- } else if (ch === 0x2A) {
- // Block comment ends with '*/'.
- if (source.charCodeAt(index + 1) === 0x2F) {
- ++index;
- ++index;
- if (extra.comments) {
- comment = source.slice(start + 2, index - 2);
- loc.end = {
- line: lineNumber,
- column: index - lineStart
- };
- addComment('Block', comment, start, index, loc);
- }
- return;
- }
- ++index;
- } else {
- ++index;
- }
- }
-
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
-
- function skipComment() {
- var ch, start;
-
- start = (index === 0);
- while (index < length) {
- ch = source.charCodeAt(index);
-
- if (isWhiteSpace(ch)) {
- ++index;
- } else if (isLineTerminator(ch)) {
- ++index;
- if (ch === 0x0D && source.charCodeAt(index) === 0x0A) {
- ++index;
- }
- ++lineNumber;
- lineStart = index;
- start = true;
- } else if (ch === 0x2F) { // U+002F is '/'
- ch = source.charCodeAt(index + 1);
- if (ch === 0x2F) {
- ++index;
- ++index;
- skipSingleLineComment(2);
- start = true;
- } else if (ch === 0x2A) { // U+002A is '*'
- ++index;
- ++index;
- skipMultiLineComment();
- } else {
- break;
- }
- } else if (start && ch === 0x2D) { // U+002D is '-'
- // U+003E is '>'
- if ((source.charCodeAt(index + 1) === 0x2D) && (source.charCodeAt(index + 2) === 0x3E)) {
- // '-->' is a single-line comment
- index += 3;
- skipSingleLineComment(3);
- } else {
- break;
- }
- } else if (ch === 0x3C) { // U+003C is '<'
- if (source.slice(index + 1, index + 4) === '!--') {
- ++index; // `<`
- ++index; // `!`
- ++index; // `-`
- ++index; // `-`
- skipSingleLineComment(4);
- } else {
- break;
- }
- } else {
- break;
- }
- }
- }
-
- function scanHexEscape(prefix) {
- var i, len, ch, code = 0;
-
- len = (prefix === 'u') ? 4 : 2;
- for (i = 0; i < len; ++i) {
- if (index < length && isHexDigit(source[index])) {
- ch = source[index++];
- code = code * 16 + '0123456789abcdef'.indexOf(ch.toLowerCase());
- } else {
- return '';
- }
- }
- return String.fromCharCode(code);
- }
-
- function getEscapedIdentifier() {
- var ch, id;
-
- ch = source.charCodeAt(index++);
- id = String.fromCharCode(ch);
-
- // '\u' (U+005C, U+0075) denotes an escaped character.
- if (ch === 0x5C) {
- if (source.charCodeAt(index) !== 0x75) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
- ++index;
- ch = scanHexEscape('u');
- if (!ch || ch === '\\' || !isIdentifierStart(ch.charCodeAt(0))) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
- id = ch;
- }
-
- while (index < length) {
- ch = source.charCodeAt(index);
- if (!isIdentifierPart(ch)) {
- break;
- }
- ++index;
- id += String.fromCharCode(ch);
-
- // '\u' (U+005C, U+0075) denotes an escaped character.
- if (ch === 0x5C) {
- id = id.substr(0, id.length - 1);
- if (source.charCodeAt(index) !== 0x75) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
- ++index;
- ch = scanHexEscape('u');
- if (!ch || ch === '\\' || !isIdentifierPart(ch.charCodeAt(0))) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
- id += ch;
- }
- }
-
- return id;
- }
-
- function getIdentifier() {
- var start, ch;
-
- start = index++;
- while (index < length) {
- ch = source.charCodeAt(index);
- if (ch === 0x5C) {
- // Blackslash (U+005C) marks Unicode escape sequence.
- index = start;
- return getEscapedIdentifier();
- }
- if (isIdentifierPart(ch)) {
- ++index;
- } else {
- break;
- }
- }
-
- return source.slice(start, index);
- }
-
- function scanIdentifier() {
- var start, id, type;
-
- start = index;
-
- // Backslash (U+005C) starts an escaped character.
- id = (source.charCodeAt(index) === 0x5C) ? getEscapedIdentifier() : getIdentifier();
-
- // There is no keyword or literal with only one character.
- // Thus, it must be an identifier.
- if (id.length === 1) {
- type = Token.Identifier;
- } else if (isKeyword(id)) {
- type = Token.Keyword;
- } else if (id === 'null') {
- type = Token.NullLiteral;
- } else if (id === 'true' || id === 'false') {
- type = Token.BooleanLiteral;
- } else {
- type = Token.Identifier;
- }
-
- return {
- type: type,
- value: id,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
-
- // 7.7 Punctuators
-
- function scanPunctuator() {
- var start = index,
- code = source.charCodeAt(index),
- code2,
- ch1 = source[index],
- ch2,
- ch3,
- ch4;
-
- switch (code) {
-
- // Check for most common single-character punctuators.
- case 0x2E: // . dot
- case 0x28: // ( open bracket
- case 0x29: // ) close bracket
- case 0x3B: // ; semicolon
- case 0x2C: // , comma
- case 0x7B: // { open curly brace
- case 0x7D: // } close curly brace
- case 0x5B: // [
- case 0x5D: // ]
- case 0x3A: // :
- case 0x3F: // ?
- case 0x7E: // ~
- ++index;
- if (extra.tokenize) {
- if (code === 0x28) {
- extra.openParenToken = extra.tokens.length;
- } else if (code === 0x7B) {
- extra.openCurlyToken = extra.tokens.length;
- }
- }
- return {
- type: Token.Punctuator,
- value: String.fromCharCode(code),
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
-
- default:
- code2 = source.charCodeAt(index + 1);
-
- // '=' (U+003D) marks an assignment or comparison operator.
- if (code2 === 0x3D) {
- switch (code) {
- case 0x2B: // +
- case 0x2D: // -
- case 0x2F: // /
- case 0x3C: // <
- case 0x3E: // >
- case 0x5E: // ^
- case 0x7C: // |
- case 0x25: // %
- case 0x26: // &
- case 0x2A: // *
- index += 2;
- return {
- type: Token.Punctuator,
- value: String.fromCharCode(code) + String.fromCharCode(code2),
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
-
- case 0x21: // !
- case 0x3D: // =
- index += 2;
-
- // !== and ===
- if (source.charCodeAt(index) === 0x3D) {
- ++index;
- }
- return {
- type: Token.Punctuator,
- value: source.slice(start, index),
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
- }
- }
-
- // 4-character punctuator: >>>=
-
- ch4 = source.substr(index, 4);
-
- if (ch4 === '>>>=') {
- index += 4;
- return {
- type: Token.Punctuator,
- value: ch4,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- // 3-character punctuators: === !== >>> <<= >>=
-
- ch3 = ch4.substr(0, 3);
-
- if (ch3 === '>>>' || ch3 === '<<=' || ch3 === '>>=') {
- index += 3;
- return {
- type: Token.Punctuator,
- value: ch3,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- // Other 2-character punctuators: ++ -- << >> && ||
- ch2 = ch3.substr(0, 2);
-
- if ((ch1 === ch2[1] && ('+-<>&|'.indexOf(ch1) >= 0)) || ch2 === '=>') {
- index += 2;
- return {
- type: Token.Punctuator,
- value: ch2,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- // 1-character punctuators: < > = ! + - * % & | ^ /
- if ('<>=!+-*%&|^/'.indexOf(ch1) >= 0) {
- ++index;
- return {
- type: Token.Punctuator,
- value: ch1,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
-
- // 7.8.3 Numeric Literals
-
- function scanHexLiteral(start) {
- var number = '';
-
- while (index < length) {
- if (!isHexDigit(source[index])) {
- break;
- }
- number += source[index++];
- }
-
- if (number.length === 0) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
-
- if (isIdentifierStart(source.charCodeAt(index))) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
-
- return {
- type: Token.NumericLiteral,
- value: parseInt('0x' + number, 16),
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- function scanOctalLiteral(start) {
- var number = '0' + source[index++];
- while (index < length) {
- if (!isOctalDigit(source[index])) {
- break;
- }
- number += source[index++];
- }
-
- if (isIdentifierStart(source.charCodeAt(index)) || isDecimalDigit(source.charCodeAt(index))) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
-
- return {
- type: Token.NumericLiteral,
- value: parseInt(number, 8),
- octal: true,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- function scanNumericLiteral() {
- var number, start, ch;
-
- ch = source[index];
- assert(isDecimalDigit(ch.charCodeAt(0)) || (ch === '.'),
- 'Numeric literal must start with a decimal digit or a decimal point');
-
- start = index;
- number = '';
- if (ch !== '.') {
- number = source[index++];
- ch = source[index];
-
- // Hex number starts with '0x'.
- // Octal number starts with '0'.
- if (number === '0') {
- if (ch === 'x' || ch === 'X') {
- ++index;
- return scanHexLiteral(start);
- }
- if (isOctalDigit(ch)) {
- return scanOctalLiteral(start);
- }
-
- // decimal number starts with '0' such as '09' is illegal.
- if (ch && isDecimalDigit(ch.charCodeAt(0))) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
- }
-
- while (isDecimalDigit(source.charCodeAt(index))) {
- number += source[index++];
- }
- ch = source[index];
- }
-
- if (ch === '.') {
- number += source[index++];
- while (isDecimalDigit(source.charCodeAt(index))) {
- number += source[index++];
- }
- ch = source[index];
- }
-
- if (ch === 'e' || ch === 'E') {
- number += source[index++];
-
- ch = source[index];
- if (ch === '+' || ch === '-') {
- number += source[index++];
- }
- if (isDecimalDigit(source.charCodeAt(index))) {
- while (isDecimalDigit(source.charCodeAt(index))) {
- number += source[index++];
- }
- } else {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
- }
-
- if (isIdentifierStart(source.charCodeAt(index))) {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
-
- return {
- type: Token.NumericLiteral,
- value: parseFloat(number),
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- // 7.8.4 String Literals
-
- function scanStringLiteral() {
- var str = '', quote, start, ch, code, unescaped, restore, octal = false, startLineNumber, startLineStart;
- startLineNumber = lineNumber;
- startLineStart = lineStart;
-
- quote = source[index];
- assert((quote === '\'' || quote === '"'),
- 'String literal must starts with a quote');
-
- start = index;
- ++index;
-
- while (index < length) {
- ch = source[index++];
-
- if (ch === quote) {
- quote = '';
- break;
- } else if (ch === '\\') {
- ch = source[index++];
- if (!ch || !isLineTerminator(ch.charCodeAt(0))) {
- switch (ch) {
- case 'u':
- case 'x':
- restore = index;
- unescaped = scanHexEscape(ch);
- if (unescaped) {
- str += unescaped;
- } else {
- index = restore;
- str += ch;
- }
- break;
- case 'n':
- str += '\n';
- break;
- case 'r':
- str += '\r';
- break;
- case 't':
- str += '\t';
- break;
- case 'b':
- str += '\b';
- break;
- case 'f':
- str += '\f';
- break;
- case 'v':
- str += '\x0B';
- break;
-
- default:
- if (isOctalDigit(ch)) {
- code = '01234567'.indexOf(ch);
-
- // \0 is not octal escape sequence
- if (code !== 0) {
- octal = true;
- }
-
- if (index < length && isOctalDigit(source[index])) {
- octal = true;
- code = code * 8 + '01234567'.indexOf(source[index++]);
-
- // 3 digits are only allowed when string starts
- // with 0, 1, 2, 3
- if ('0123'.indexOf(ch) >= 0 &&
- index < length &&
- isOctalDigit(source[index])) {
- code = code * 8 + '01234567'.indexOf(source[index++]);
- }
- }
- str += String.fromCharCode(code);
- } else {
- str += ch;
- }
- break;
- }
- } else {
- ++lineNumber;
- if (ch === '\r' && source[index] === '\n') {
- ++index;
- }
- lineStart = index;
- }
- } else if (isLineTerminator(ch.charCodeAt(0))) {
- break;
- } else {
- str += ch;
- }
- }
-
- if (quote !== '') {
- throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
-
- return {
- type: Token.StringLiteral,
- value: str,
- octal: octal,
- startLineNumber: startLineNumber,
- startLineStart: startLineStart,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- function testRegExp(pattern, flags) {
- var value;
- try {
- value = new RegExp(pattern, flags);
- } catch (e) {
- throwError({}, Messages.InvalidRegExp);
- }
- return value;
- }
-
- function scanRegExpBody() {
- var ch, str, classMarker, terminated, body;
-
- ch = source[index];
- assert(ch === '/', 'Regular expression literal must start with a slash');
- str = source[index++];
-
- classMarker = false;
- terminated = false;
- while (index < length) {
- ch = source[index++];
- str += ch;
- if (ch === '\\') {
- ch = source[index++];
- // ECMA-262 7.8.5
- if (isLineTerminator(ch.charCodeAt(0))) {
- throwError({}, Messages.UnterminatedRegExp);
- }
- str += ch;
- } else if (isLineTerminator(ch.charCodeAt(0))) {
- throwError({}, Messages.UnterminatedRegExp);
- } else if (classMarker) {
- if (ch === ']') {
- classMarker = false;
- }
- } else {
- if (ch === '/') {
- terminated = true;
- break;
- } else if (ch === '[') {
- classMarker = true;
- }
- }
- }
-
- if (!terminated) {
- throwError({}, Messages.UnterminatedRegExp);
- }
-
- // Exclude leading and trailing slash.
- body = str.substr(1, str.length - 2);
- return {
- value: body,
- literal: str
- };
- }
-
- function scanRegExpFlags() {
- var ch, str, flags, restore;
-
- str = '';
- flags = '';
- while (index < length) {
- ch = source[index];
- if (!isIdentifierPart(ch.charCodeAt(0))) {
- break;
- }
-
- ++index;
- if (ch === '\\' && index < length) {
- ch = source[index];
- if (ch === 'u') {
- ++index;
- restore = index;
- ch = scanHexEscape('u');
- if (ch) {
- flags += ch;
- for (str += '\\u'; restore < index; ++restore) {
- str += source[restore];
- }
- } else {
- index = restore;
- flags += 'u';
- str += '\\u';
- }
- throwErrorTolerant({}, Messages.UnexpectedToken, 'ILLEGAL');
- } else {
- str += '\\';
- throwErrorTolerant({}, Messages.UnexpectedToken, 'ILLEGAL');
- }
- } else {
- flags += ch;
- str += ch;
- }
- }
-
- return {
- value: flags,
- literal: str
- };
- }
-
- function scanRegExp() {
- var start, body, flags, pattern, value;
-
- lookahead = null;
- skipComment();
- start = index;
-
- body = scanRegExpBody();
- flags = scanRegExpFlags();
- value = testRegExp(body.value, flags.value);
-
- if (extra.tokenize) {
- return {
- type: Token.RegularExpression,
- value: value,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: start,
- end: index
- };
- }
-
- return {
- literal: body.literal + flags.literal,
- value: value,
- start: start,
- end: index
- };
- }
-
- function collectRegex() {
- var pos, loc, regex, token;
-
- skipComment();
-
- pos = index;
- loc = {
- start: {
- line: lineNumber,
- column: index - lineStart
- }
- };
-
- regex = scanRegExp();
- loc.end = {
- line: lineNumber,
- column: index - lineStart
- };
-
- /* istanbul ignore next */
- if (!extra.tokenize) {
- // Pop the previous token, which is likely '/' or '/='
- if (extra.tokens.length > 0) {
- token = extra.tokens[extra.tokens.length - 1];
- if (token.range[0] === pos && token.type === 'Punctuator') {
- if (token.value === '/' || token.value === '/=') {
- extra.tokens.pop();
- }
- }
- }
-
- extra.tokens.push({
- type: 'RegularExpression',
- value: regex.literal,
- range: [pos, index],
- loc: loc
- });
- }
-
- return regex;
- }
-
- function isIdentifierName(token) {
- return token.type === Token.Identifier ||
- token.type === Token.Keyword ||
- token.type === Token.BooleanLiteral ||
- token.type === Token.NullLiteral;
- }
-
- function advanceSlash() {
- var prevToken,
- checkToken;
- // Using the following algorithm:
- // https://github.com/mozilla/sweet.js/wiki/design
- prevToken = extra.tokens[extra.tokens.length - 1];
- if (!prevToken) {
- // Nothing before that: it cannot be a division.
- return collectRegex();
- }
- if (prevToken.type === 'Punctuator') {
- if (prevToken.value === ']') {
- return scanPunctuator();
- }
- if (prevToken.value === ')') {
- checkToken = extra.tokens[extra.openParenToken - 1];
- if (checkToken &&
- checkToken.type === 'Keyword' &&
- (checkToken.value === 'if' ||
- checkToken.value === 'while' ||
- checkToken.value === 'for' ||
- checkToken.value === 'with')) {
- return collectRegex();
- }
- return scanPunctuator();
- }
- if (prevToken.value === '}') {
- // Dividing a function by anything makes little sense,
- // but we have to check for that.
- if (extra.tokens[extra.openCurlyToken - 3] &&
- extra.tokens[extra.openCurlyToken - 3].type === 'Keyword') {
- // Anonymous function.
- checkToken = extra.tokens[extra.openCurlyToken - 4];
- if (!checkToken) {
- return scanPunctuator();
- }
- } else if (extra.tokens[extra.openCurlyToken - 4] &&
- extra.tokens[extra.openCurlyToken - 4].type === 'Keyword') {
- // Named function.
- checkToken = extra.tokens[extra.openCurlyToken - 5];
- if (!checkToken) {
- return collectRegex();
- }
- } else {
- return scanPunctuator();
- }
- // checkToken determines whether the function is
- // a declaration or an expression.
- if (FnExprTokens.indexOf(checkToken.value) >= 0) {
- // It is an expression.
- return scanPunctuator();
- }
- // It is a declaration.
- return collectRegex();
- }
- return collectRegex();
- }
- if (prevToken.type === 'Keyword') {
- return collectRegex();
- }
- return scanPunctuator();
- }
-
- function advance() {
- var ch;
-
- skipComment();
-
- if (index >= length) {
- return {
- type: Token.EOF,
- lineNumber: lineNumber,
- lineStart: lineStart,
- start: index,
- end: index
- };
- }
-
- ch = source.charCodeAt(index);
-
- if (isIdentifierStart(ch)) {
- return scanIdentifier();
- }
-
- // Very common: ( and ) and ;
- if (ch === 0x28 || ch === 0x29 || ch === 0x3B) {
- return scanPunctuator();
- }
-
- // String literal starts with single quote (U+0027) or double quote (U+0022).
- if (ch === 0x27 || ch === 0x22) {
- return scanStringLiteral();
- }
-
-
- // Dot (.) U+002E can also start a floating-point number, hence the need
- // to check the next character.
- if (ch === 0x2E) {
- if (isDecimalDigit(source.charCodeAt(index + 1))) {
- return scanNumericLiteral();
- }
- return scanPunctuator();
- }
-
- if (isDecimalDigit(ch)) {
- return scanNumericLiteral();
- }
-
- // Slash (/) U+002F can also start a regex.
- if (extra.tokenize && ch === 0x2F) {
- return advanceSlash();
- }
-
- return scanPunctuator();
- }
-
- function collectToken() {
- var loc, token, range, value;
-
- skipComment();
- loc = {
- start: {
- line: lineNumber,
- column: index - lineStart
- }
- };
-
- token = advance();
- loc.end = {
- line: lineNumber,
- column: index - lineStart
- };
-
- if (token.type !== Token.EOF) {
- value = source.slice(token.start, token.end);
- extra.tokens.push({
- type: TokenName[token.type],
- value: value,
- range: [token.start, token.end],
- loc: loc
- });
- }
-
- return token;
- }
-
- function lex() {
- var token;
-
- token = lookahead;
- index = token.end;
- lineNumber = token.lineNumber;
- lineStart = token.lineStart;
-
- lookahead = (typeof extra.tokens !== 'undefined') ? collectToken() : advance();
-
- index = token.end;
- lineNumber = token.lineNumber;
- lineStart = token.lineStart;
-
- return token;
- }
-
- function peek() {
- var pos, line, start;
-
- pos = index;
- line = lineNumber;
- start = lineStart;
- lookahead = (typeof extra.tokens !== 'undefined') ? collectToken() : advance();
- index = pos;
- lineNumber = line;
- lineStart = start;
- }
-
- function Position(line, column) {
- this.line = line;
- this.column = column;
- }
-
- function SourceLocation(startLine, startColumn, line, column) {
- this.start = new Position(startLine, startColumn);
- this.end = new Position(line, column);
- }
-
- SyntaxTreeDelegate = {
-
- name: 'SyntaxTree',
-
- processComment: function (node) {
- var lastChild, trailingComments;
-
- if (node.type === Syntax.Program) {
- if (node.body.length > 0) {
- return;
- }
- }
-
- if (extra.trailingComments.length > 0) {
- if (extra.trailingComments[0].range[0] >= node.range[1]) {
- trailingComments = extra.trailingComments;
- extra.trailingComments = [];
- } else {
- extra.trailingComments.length = 0;
- }
- } else {
- if (extra.bottomRightStack.length > 0 &&
- extra.bottomRightStack[extra.bottomRightStack.length - 1].trailingComments &&
- extra.bottomRightStack[extra.bottomRightStack.length - 1].trailingComments[0].range[0] >= node.range[1]) {
- trailingComments = extra.bottomRightStack[extra.bottomRightStack.length - 1].trailingComments;
- delete extra.bottomRightStack[extra.bottomRightStack.length - 1].trailingComments;
- }
- }
-
- // Eating the stack.
- while (extra.bottomRightStack.length > 0 && extra.bottomRightStack[extra.bottomRightStack.length - 1].range[0] >= node.range[0]) {
- lastChild = extra.bottomRightStack.pop();
- }
-
- if (lastChild) {
- if (lastChild.leadingComments && lastChild.leadingComments[lastChild.leadingComments.length - 1].range[1] <= node.range[0]) {
- node.leadingComments = lastChild.leadingComments;
- delete lastChild.leadingComments;
- }
- } else if (extra.leadingComments.length > 0 && extra.leadingComments[extra.leadingComments.length - 1].range[1] <= node.range[0]) {
- node.leadingComments = extra.leadingComments;
- extra.leadingComments = [];
- }
-
-
- if (trailingComments) {
- node.trailingComments = trailingComments;
- }
-
- extra.bottomRightStack.push(node);
- },
-
- markEnd: function (node, startToken) {
- if (extra.range) {
- node.range = [startToken.start, index];
- }
- if (extra.loc) {
- node.loc = new SourceLocation(
- startToken.startLineNumber === undefined ? startToken.lineNumber : startToken.startLineNumber,
- startToken.start - (startToken.startLineStart === undefined ? startToken.lineStart : startToken.startLineStart),
- lineNumber,
- index - lineStart
- );
- this.postProcess(node);
- }
-
- if (extra.attachComment) {
- this.processComment(node);
- }
- return node;
- },
-
- postProcess: function (node) {
- if (extra.source) {
- node.loc.source = extra.source;
- }
- return node;
- },
-
- createArrayExpression: function (elements) {
- return {
- type: Syntax.ArrayExpression,
- elements: elements
- };
- },
-
- createAssignmentExpression: function (operator, left, right) {
- return {
- type: Syntax.AssignmentExpression,
- operator: operator,
- left: left,
- right: right
- };
- },
-
- createBinaryExpression: function (operator, left, right) {
- var type = (operator === '||' || operator === '&&') ? Syntax.LogicalExpression :
- Syntax.BinaryExpression;
- return {
- type: type,
- operator: operator,
- left: left,
- right: right
- };
- },
-
- createBlockStatement: function (body) {
- return {
- type: Syntax.BlockStatement,
- body: body
- };
- },
-
- createBreakStatement: function (label) {
- return {
- type: Syntax.BreakStatement,
- label: label
- };
- },
-
- createCallExpression: function (callee, args) {
- return {
- type: Syntax.CallExpression,
- callee: callee,
- 'arguments': args
- };
- },
-
- createCatchClause: function (param, body) {
- return {
- type: Syntax.CatchClause,
- param: param,
- body: body
- };
- },
-
- createConditionalExpression: function (test, consequent, alternate) {
- return {
- type: Syntax.ConditionalExpression,
- test: test,
- consequent: consequent,
- alternate: alternate
- };
- },
-
- createContinueStatement: function (label) {
- return {
- type: Syntax.ContinueStatement,
- label: label
- };
- },
-
- createDebuggerStatement: function () {
- return {
- type: Syntax.DebuggerStatement
- };
- },
-
- createDoWhileStatement: function (body, test) {
- return {
- type: Syntax.DoWhileStatement,
- body: body,
- test: test
- };
- },
-
- createEmptyStatement: function () {
- return {
- type: Syntax.EmptyStatement
- };
- },
-
- createExpressionStatement: function (expression) {
- return {
- type: Syntax.ExpressionStatement,
- expression: expression
- };
- },
-
- createForStatement: function (init, test, update, body) {
- return {
- type: Syntax.ForStatement,
- init: init,
- test: test,
- update: update,
- body: body
- };
- },
-
- createForInStatement: function (left, right, body) {
- return {
- type: Syntax.ForInStatement,
- left: left,
- right: right,
- body: body,
- each: false
- };
- },
-
- createFunctionDeclaration: function (id, params, defaults, body) {
- return {
- type: Syntax.FunctionDeclaration,
- id: id,
- params: params,
- defaults: defaults,
- body: body,
- rest: null,
- generator: false,
- expression: false
- };
- },
-
- createFunctionExpression: function (id, params, defaults, body) {
- return {
- type: Syntax.FunctionExpression,
- id: id,
- params: params,
- defaults: defaults,
- body: body,
- rest: null,
- generator: false,
- expression: false
- };
- },
-
- createIdentifier: function (name) {
- return {
- type: Syntax.Identifier,
- name: name
- };
- },
-
- createIfStatement: function (test, consequent, alternate) {
- return {
- type: Syntax.IfStatement,
- test: test,
- consequent: consequent,
- alternate: alternate
- };
- },
-
- createLabeledStatement: function (label, body) {
- return {
- type: Syntax.LabeledStatement,
- label: label,
- body: body
- };
- },
-
- createLiteral: function (token) {
- return {
- type: Syntax.Literal,
- value: token.value,
- raw: source.slice(token.start, token.end)
- };
- },
-
- createMemberExpression: function (accessor, object, property) {
- return {
- type: Syntax.MemberExpression,
- computed: accessor === '[',
- object: object,
- property: property
- };
- },
-
- createNewExpression: function (callee, args) {
- return {
- type: Syntax.NewExpression,
- callee: callee,
- 'arguments': args
- };
- },
-
- createObjectExpression: function (properties) {
- return {
- type: Syntax.ObjectExpression,
- properties: properties
- };
- },
-
- createPostfixExpression: function (operator, argument) {
- return {
- type: Syntax.UpdateExpression,
- operator: operator,
- argument: argument,
- prefix: false
- };
- },
-
- createProgram: function (body) {
- return {
- type: Syntax.Program,
- body: body
- };
- },
-
- createProperty: function (kind, key, value) {
- return {
- type: Syntax.Property,
- key: key,
- value: value,
- kind: kind
- };
- },
-
- createReturnStatement: function (argument) {
- return {
- type: Syntax.ReturnStatement,
- argument: argument
- };
- },
-
- createSequenceExpression: function (expressions) {
- return {
- type: Syntax.SequenceExpression,
- expressions: expressions
- };
- },
-
- createSwitchCase: function (test, consequent) {
- return {
- type: Syntax.SwitchCase,
- test: test,
- consequent: consequent
- };
- },
-
- createSwitchStatement: function (discriminant, cases) {
- return {
- type: Syntax.SwitchStatement,
- discriminant: discriminant,
- cases: cases
- };
- },
-
- createThisExpression: function () {
- return {
- type: Syntax.ThisExpression
- };
- },
-
- createThrowStatement: function (argument) {
- return {
- type: Syntax.ThrowStatement,
- argument: argument
- };
- },
-
- createTryStatement: function (block, guardedHandlers, handlers, finalizer) {
- return {
- type: Syntax.TryStatement,
- block: block,
- guardedHandlers: guardedHandlers,
- handlers: handlers,
- finalizer: finalizer
- };
- },
-
- createUnaryExpression: function (operator, argument) {
- if (operator === '++' || operator === '--') {
- return {
- type: Syntax.UpdateExpression,
- operator: operator,
- argument: argument,
- prefix: true
- };
- }
- return {
- type: Syntax.UnaryExpression,
- operator: operator,
- argument: argument,
- prefix: true
- };
- },
-
- createVariableDeclaration: function (declarations, kind) {
- return {
- type: Syntax.VariableDeclaration,
- declarations: declarations,
- kind: kind
- };
- },
-
- createVariableDeclarator: function (id, init) {
- return {
- type: Syntax.VariableDeclarator,
- id: id,
- init: init
- };
- },
-
- createWhileStatement: function (test, body) {
- return {
- type: Syntax.WhileStatement,
- test: test,
- body: body
- };
- },
-
- createWithStatement: function (object, body) {
- return {
- type: Syntax.WithStatement,
- object: object,
- body: body
- };
- }
- };
-
- // Return true if there is a line terminator before the next token.
-
- function peekLineTerminator() {
- var pos, line, start, found;
-
- pos = index;
- line = lineNumber;
- start = lineStart;
- skipComment();
- found = lineNumber !== line;
- index = pos;
- lineNumber = line;
- lineStart = start;
-
- return found;
- }
-
- // Throw an exception
-
- function throwError(token, messageFormat) {
- var error,
- args = Array.prototype.slice.call(arguments, 2),
- msg = messageFormat.replace(
- /%(\d)/g,
- function (whole, index) {
- assert(index < args.length, 'Message reference must be in range');
- return args[index];
- }
- );
-
- if (typeof token.lineNumber === 'number') {
- error = new Error('Line ' + token.lineNumber + ': ' + msg);
- error.index = token.start;
- error.lineNumber = token.lineNumber;
- error.column = token.start - lineStart + 1;
- } else {
- error = new Error('Line ' + lineNumber + ': ' + msg);
- error.index = index;
- error.lineNumber = lineNumber;
- error.column = index - lineStart + 1;
- }
-
- error.description = msg;
- throw error;
- }
-
- function throwErrorTolerant() {
- try {
- throwError.apply(null, arguments);
- } catch (e) {
- if (extra.errors) {
- extra.errors.push(e);
- } else {
- throw e;
- }
- }
- }
-
-
- // Throw an exception because of the token.
-
- function throwUnexpected(token) {
- if (token.type === Token.EOF) {
- throwError(token, Messages.UnexpectedEOS);
- }
-
- if (token.type === Token.NumericLiteral) {
- throwError(token, Messages.UnexpectedNumber);
- }
-
- if (token.type === Token.StringLiteral) {
- throwError(token, Messages.UnexpectedString);
- }
-
- if (token.type === Token.Identifier) {
- throwError(token, Messages.UnexpectedIdentifier);
- }
-
- if (token.type === Token.Keyword) {
- if (isFutureReservedWord(token.value)) {
- throwError(token, Messages.UnexpectedReserved);
- } else if (strict && isStrictModeReservedWord(token.value)) {
- throwErrorTolerant(token, Messages.StrictReservedWord);
- return;
- }
- throwError(token, Messages.UnexpectedToken, token.value);
- }
-
- // BooleanLiteral, NullLiteral, or Punctuator.
- throwError(token, Messages.UnexpectedToken, token.value);
- }
-
- // Expect the next token to match the specified punctuator.
- // If not, an exception will be thrown.
-
- function expect(value) {
- var token = lex();
- if (token.type !== Token.Punctuator || token.value !== value) {
- throwUnexpected(token);
- }
- }
-
- // Expect the next token to match the specified keyword.
- // If not, an exception will be thrown.
-
- function expectKeyword(keyword) {
- var token = lex();
- if (token.type !== Token.Keyword || token.value !== keyword) {
- throwUnexpected(token);
- }
- }
-
- // Return true if the next token matches the specified punctuator.
-
- function match(value) {
- return lookahead.type === Token.Punctuator && lookahead.value === value;
- }
-
- // Return true if the next token matches the specified keyword
-
- function matchKeyword(keyword) {
- return lookahead.type === Token.Keyword && lookahead.value === keyword;
- }
-
- // Return true if the next token is an assignment operator
-
- function matchAssign() {
- var op;
-
- if (lookahead.type !== Token.Punctuator) {
- return false;
- }
- op = lookahead.value;
- return op === '=' ||
- op === '*=' ||
- op === '/=' ||
- op === '%=' ||
- op === '+=' ||
- op === '-=' ||
- op === '<<=' ||
- op === '>>=' ||
- op === '>>>=' ||
- op === '&=' ||
- op === '^=' ||
- op === '|=';
- }
-
- function consumeSemicolon() {
- var line;
-
- // Catch the very common case first: immediately a semicolon (U+003B).
- if (source.charCodeAt(index) === 0x3B || match(';')) {
- lex();
- return;
- }
-
- line = lineNumber;
- skipComment();
- if (lineNumber !== line) {
- return;
- }
-
- if (lookahead.type !== Token.EOF && !match('}')) {
- throwUnexpected(lookahead);
- }
- }
-
- // Return true if provided expression is LeftHandSideExpression
-
- function isLeftHandSide(expr) {
- return expr.type === Syntax.Identifier || expr.type === Syntax.MemberExpression;
- }
-
- // 11.1.4 Array Initialiser
-
- function parseArrayInitialiser() {
- var elements = [], startToken;
-
- startToken = lookahead;
- expect('[');
-
- while (!match(']')) {
- if (match(',')) {
- lex();
- elements.push(null);
- } else {
- elements.push(parseAssignmentExpression());
-
- if (!match(']')) {
- expect(',');
- }
- }
- }
-
- lex();
-
- return delegate.markEnd(delegate.createArrayExpression(elements), startToken);
- }
-
- // 11.1.5 Object Initialiser
-
- function parsePropertyFunction(param, first) {
- var previousStrict, body, startToken;
-
- previousStrict = strict;
- startToken = lookahead;
- body = parseFunctionSourceElements();
- if (first && strict && isRestrictedWord(param[0].name)) {
- throwErrorTolerant(first, Messages.StrictParamName);
- }
- strict = previousStrict;
- return delegate.markEnd(delegate.createFunctionExpression(null, param, [], body), startToken);
- }
-
- function parseObjectPropertyKey() {
- var token, startToken;
-
- startToken = lookahead;
- token = lex();
-
- // Note: This function is called only from parseObjectProperty(), where
- // EOF and Punctuator tokens are already filtered out.
-
- if (token.type === Token.StringLiteral || token.type === Token.NumericLiteral) {
- if (strict && token.octal) {
- throwErrorTolerant(token, Messages.StrictOctalLiteral);
- }
- return delegate.markEnd(delegate.createLiteral(token), startToken);
- }
-
- return delegate.markEnd(delegate.createIdentifier(token.value), startToken);
- }
-
- function parseObjectProperty() {
- var token, key, id, value, param, startToken;
-
- token = lookahead;
- startToken = lookahead;
-
- if (token.type === Token.Identifier) {
-
- id = parseObjectPropertyKey();
-
- // Property Assignment: Getter and Setter.
-
- if (token.value === 'get' && !match(':')) {
- key = parseObjectPropertyKey();
- expect('(');
- expect(')');
- value = parsePropertyFunction([]);
- return delegate.markEnd(delegate.createProperty('get', key, value), startToken);
- }
- if (token.value === 'set' && !match(':')) {
- key = parseObjectPropertyKey();
- expect('(');
- token = lookahead;
- if (token.type !== Token.Identifier) {
- expect(')');
- throwErrorTolerant(token, Messages.UnexpectedToken, token.value);
- value = parsePropertyFunction([]);
- } else {
- param = [ parseVariableIdentifier() ];
- expect(')');
- value = parsePropertyFunction(param, token);
- }
- return delegate.markEnd(delegate.createProperty('set', key, value), startToken);
- }
- expect(':');
- value = parseAssignmentExpression();
- return delegate.markEnd(delegate.createProperty('init', id, value), startToken);
- }
- if (token.type === Token.EOF || token.type === Token.Punctuator) {
- throwUnexpected(token);
- } else {
- key = parseObjectPropertyKey();
- expect(':');
- value = parseAssignmentExpression();
- return delegate.markEnd(delegate.createProperty('init', key, value), startToken);
- }
- }
-
- function parseObjectInitialiser() {
- var properties = [], property, name, key, kind, map = {}, toString = String, startToken;
-
- startToken = lookahead;
-
- expect('{');
-
- while (!match('}')) {
- property = parseObjectProperty();
-
- if (property.key.type === Syntax.Identifier) {
- name = property.key.name;
- } else {
- name = toString(property.key.value);
- }
- kind = (property.kind === 'init') ? PropertyKind.Data : (property.kind === 'get') ? PropertyKind.Get : PropertyKind.Set;
-
- key = '$' + name;
- if (Object.prototype.hasOwnProperty.call(map, key)) {
- if (map[key] === PropertyKind.Data) {
- if (strict && kind === PropertyKind.Data) {
- throwErrorTolerant({}, Messages.StrictDuplicateProperty);
- } else if (kind !== PropertyKind.Data) {
- throwErrorTolerant({}, Messages.AccessorDataProperty);
- }
- } else {
- if (kind === PropertyKind.Data) {
- throwErrorTolerant({}, Messages.AccessorDataProperty);
- } else if (map[key] & kind) {
- throwErrorTolerant({}, Messages.AccessorGetSet);
- }
- }
- map[key] |= kind;
- } else {
- map[key] = kind;
- }
-
- properties.push(property);
-
- if (!match('}')) {
- expect(',');
- }
- }
-
- expect('}');
-
- return delegate.markEnd(delegate.createObjectExpression(properties), startToken);
- }
-
- // 11.1.6 The Grouping Operator
-
- function parseGroupExpression() {
- var expr;
-
- expect('(');
-
- expr = parseExpression();
-
- expect(')');
-
- return expr;
- }
-
-
- // 11.1 Primary Expressions
-
- function parsePrimaryExpression() {
- var type, token, expr, startToken;
-
- if (match('(')) {
- return parseGroupExpression();
- }
-
- if (match('[')) {
- return parseArrayInitialiser();
- }
-
- if (match('{')) {
- return parseObjectInitialiser();
- }
-
- type = lookahead.type;
- startToken = lookahead;
-
- if (type === Token.Identifier) {
- expr = delegate.createIdentifier(lex().value);
- } else if (type === Token.StringLiteral || type === Token.NumericLiteral) {
- if (strict && lookahead.octal) {
- throwErrorTolerant(lookahead, Messages.StrictOctalLiteral);
- }
- expr = delegate.createLiteral(lex());
- } else if (type === Token.Keyword) {
- if (matchKeyword('function')) {
- return parseFunctionExpression();
- }
- if (matchKeyword('this')) {
- lex();
- expr = delegate.createThisExpression();
- } else {
- throwUnexpected(lex());
- }
- } else if (type === Token.BooleanLiteral) {
- token = lex();
- token.value = (token.value === 'true');
- expr = delegate.createLiteral(token);
- } else if (type === Token.NullLiteral) {
- token = lex();
- token.value = null;
- expr = delegate.createLiteral(token);
- } else if (match('/') || match('/=')) {
- if (typeof extra.tokens !== 'undefined') {
- expr = delegate.createLiteral(collectRegex());
- } else {
- expr = delegate.createLiteral(scanRegExp());
- }
- peek();
- } else {
- throwUnexpected(lex());
- }
-
- return delegate.markEnd(expr, startToken);
- }
-
- // 11.2 Left-Hand-Side Expressions
-
- function parseArguments() {
- var args = [];
-
- expect('(');
-
- if (!match(')')) {
- while (index < length) {
- args.push(parseAssignmentExpression());
- if (match(')')) {
- break;
- }
- expect(',');
- }
- }
-
- expect(')');
-
- return args;
- }
-
- function parseNonComputedProperty() {
- var token, startToken;
-
- startToken = lookahead;
- token = lex();
-
- if (!isIdentifierName(token)) {
- throwUnexpected(token);
- }
-
- return delegate.markEnd(delegate.createIdentifier(token.value), startToken);
- }
-
- function parseNonComputedMember() {
- expect('.');
-
- return parseNonComputedProperty();
- }
-
- function parseComputedMember() {
- var expr;
-
- expect('[');
-
- expr = parseExpression();
-
- expect(']');
-
- return expr;
- }
-
- function parseNewExpression() {
- var callee, args, startToken;
-
- startToken = lookahead;
- expectKeyword('new');
- callee = parseLeftHandSideExpression();
- args = match('(') ? parseArguments() : [];
-
- return delegate.markEnd(delegate.createNewExpression(callee, args), startToken);
- }
-
- function parseLeftHandSideExpressionAllowCall() {
- var previousAllowIn, expr, args, property, startToken;
-
- startToken = lookahead;
-
- previousAllowIn = state.allowIn;
- state.allowIn = true;
- expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();
- state.allowIn = previousAllowIn;
-
- for (;;) {
- if (match('.')) {
- property = parseNonComputedMember();
- expr = delegate.createMemberExpression('.', expr, property);
- } else if (match('(')) {
- args = parseArguments();
- expr = delegate.createCallExpression(expr, args);
- } else if (match('[')) {
- property = parseComputedMember();
- expr = delegate.createMemberExpression('[', expr, property);
- } else {
- break;
- }
- delegate.markEnd(expr, startToken);
- }
-
- return expr;
- }
-
- function parseLeftHandSideExpression() {
- var previousAllowIn, expr, property, startToken;
-
- startToken = lookahead;
-
- previousAllowIn = state.allowIn;
- expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();
- state.allowIn = previousAllowIn;
-
- while (match('.') || match('[')) {
- if (match('[')) {
- property = parseComputedMember();
- expr = delegate.createMemberExpression('[', expr, property);
- } else {
- property = parseNonComputedMember();
- expr = delegate.createMemberExpression('.', expr, property);
- }
- delegate.markEnd(expr, startToken);
- }
-
- return expr;
- }
-
- // 11.3 Postfix Expressions
-
- function parsePostfixExpression() {
- var expr, token, startToken = lookahead;
-
- expr = parseLeftHandSideExpressionAllowCall();
-
- if (lookahead.type === Token.Punctuator) {
- if ((match('++') || match('--')) && !peekLineTerminator()) {
- // 11.3.1, 11.3.2
- if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
- throwErrorTolerant({}, Messages.StrictLHSPostfix);
- }
-
- if (!isLeftHandSide(expr)) {
- throwErrorTolerant({}, Messages.InvalidLHSInAssignment);
- }
-
- token = lex();
- expr = delegate.markEnd(delegate.createPostfixExpression(token.value, expr), startToken);
- }
- }
-
- return expr;
- }
-
- // 11.4 Unary Operators
-
- function parseUnaryExpression() {
- var token, expr, startToken;
-
- if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {
- expr = parsePostfixExpression();
- } else if (match('++') || match('--')) {
- startToken = lookahead;
- token = lex();
- expr = parseUnaryExpression();
- // 11.4.4, 11.4.5
- if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
- throwErrorTolerant({}, Messages.StrictLHSPrefix);
- }
-
- if (!isLeftHandSide(expr)) {
- throwErrorTolerant({}, Messages.InvalidLHSInAssignment);
- }
-
- expr = delegate.createUnaryExpression(token.value, expr);
- expr = delegate.markEnd(expr, startToken);
- } else if (match('+') || match('-') || match('~') || match('!')) {
- startToken = lookahead;
- token = lex();
- expr = parseUnaryExpression();
- expr = delegate.createUnaryExpression(token.value, expr);
- expr = delegate.markEnd(expr, startToken);
- } else if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {
- startToken = lookahead;
- token = lex();
- expr = parseUnaryExpression();
- expr = delegate.createUnaryExpression(token.value, expr);
- expr = delegate.markEnd(expr, startToken);
- if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {
- throwErrorTolerant({}, Messages.StrictDelete);
- }
- } else {
- expr = parsePostfixExpression();
- }
-
- return expr;
- }
-
- function binaryPrecedence(token, allowIn) {
- var prec = 0;
-
- if (token.type !== Token.Punctuator && token.type !== Token.Keyword) {
- return 0;
- }
-
- switch (token.value) {
- case '||':
- prec = 1;
- break;
-
- case '&&':
- prec = 2;
- break;
-
- case '|':
- prec = 3;
- break;
-
- case '^':
- prec = 4;
- break;
-
- case '&':
- prec = 5;
- break;
-
- case '==':
- case '!=':
- case '===':
- case '!==':
- prec = 6;
- break;
-
- case '<':
- case '>':
- case '<=':
- case '>=':
- case 'instanceof':
- prec = 7;
- break;
-
- case 'in':
- prec = allowIn ? 7 : 0;
- break;
-
- case '<<':
- case '>>':
- case '>>>':
- prec = 8;
- break;
-
- case '+':
- case '-':
- prec = 9;
- break;
-
- case '*':
- case '/':
- case '%':
- prec = 11;
- break;
-
- default:
- break;
- }
-
- return prec;
- }
-
- // 11.5 Multiplicative Operators
- // 11.6 Additive Operators
- // 11.7 Bitwise Shift Operators
- // 11.8 Relational Operators
- // 11.9 Equality Operators
- // 11.10 Binary Bitwise Operators
- // 11.11 Binary Logical Operators
-
- function parseBinaryExpression() {
- var marker, markers, expr, token, prec, stack, right, operator, left, i;
-
- marker = lookahead;
- left = parseUnaryExpression();
-
- token = lookahead;
- prec = binaryPrecedence(token, state.allowIn);
- if (prec === 0) {
- return left;
- }
- token.prec = prec;
- lex();
-
- markers = [marker, lookahead];
- right = parseUnaryExpression();
-
- stack = [left, token, right];
-
- while ((prec = binaryPrecedence(lookahead, state.allowIn)) > 0) {
-
- // Reduce: make a binary expression from the three topmost entries.
- while ((stack.length > 2) && (prec <= stack[stack.length - 2].prec)) {
- right = stack.pop();
- operator = stack.pop().value;
- left = stack.pop();
- expr = delegate.createBinaryExpression(operator, left, right);
- markers.pop();
- marker = markers[markers.length - 1];
- delegate.markEnd(expr, marker);
- stack.push(expr);
- }
-
- // Shift.
- token = lex();
- token.prec = prec;
- stack.push(token);
- markers.push(lookahead);
- expr = parseUnaryExpression();
- stack.push(expr);
- }
-
- // Final reduce to clean-up the stack.
- i = stack.length - 1;
- expr = stack[i];
- markers.pop();
- while (i > 1) {
- expr = delegate.createBinaryExpression(stack[i - 1].value, stack[i - 2], expr);
- i -= 2;
- marker = markers.pop();
- delegate.markEnd(expr, marker);
- }
-
- return expr;
- }
-
-
- // 11.12 Conditional Operator
-
- function parseConditionalExpression() {
- var expr, previousAllowIn, consequent, alternate, startToken;
-
- startToken = lookahead;
-
- expr = parseBinaryExpression();
-
- if (match('?')) {
- lex();
- previousAllowIn = state.allowIn;
- state.allowIn = true;
- consequent = parseAssignmentExpression();
- state.allowIn = previousAllowIn;
- expect(':');
- alternate = parseAssignmentExpression();
-
- expr = delegate.createConditionalExpression(expr, consequent, alternate);
- delegate.markEnd(expr, startToken);
- }
-
- return expr;
- }
-
- // 11.13 Assignment Operators
-
- function parseAssignmentExpression() {
- var token, left, right, node, startToken;
-
- token = lookahead;
- startToken = lookahead;
-
- node = left = parseConditionalExpression();
-
- if (matchAssign()) {
- // LeftHandSideExpression
- if (!isLeftHandSide(left)) {
- throwErrorTolerant({}, Messages.InvalidLHSInAssignment);
- }
-
- // 11.13.1
- if (strict && left.type === Syntax.Identifier && isRestrictedWord(left.name)) {
- throwErrorTolerant(token, Messages.StrictLHSAssignment);
- }
-
- token = lex();
- right = parseAssignmentExpression();
- node = delegate.markEnd(delegate.createAssignmentExpression(token.value, left, right), startToken);
- }
-
- return node;
- }
-
- // 11.14 Comma Operator
-
- function parseExpression() {
- var expr, startToken = lookahead;
-
- expr = parseAssignmentExpression();
-
- if (match(',')) {
- expr = delegate.createSequenceExpression([ expr ]);
-
- while (index < length) {
- if (!match(',')) {
- break;
- }
- lex();
- expr.expressions.push(parseAssignmentExpression());
- }
-
- delegate.markEnd(expr, startToken);
- }
-
- return expr;
- }
-
- // 12.1 Block
-
- function parseStatementList() {
- var list = [],
- statement;
-
- while (index < length) {
- if (match('}')) {
- break;
- }
- statement = parseSourceElement();
- if (typeof statement === 'undefined') {
- break;
- }
- list.push(statement);
- }
-
- return list;
- }
-
- function parseBlock() {
- var block, startToken;
-
- startToken = lookahead;
- expect('{');
-
- block = parseStatementList();
-
- expect('}');
-
- return delegate.markEnd(delegate.createBlockStatement(block), startToken);
- }
-
- // 12.2 Variable Statement
-
- function parseVariableIdentifier() {
- var token, startToken;
-
- startToken = lookahead;
- token = lex();
-
- if (token.type !== Token.Identifier) {
- throwUnexpected(token);
- }
-
- return delegate.markEnd(delegate.createIdentifier(token.value), startToken);
- }
-
- function parseVariableDeclaration(kind) {
- var init = null, id, startToken;
-
- startToken = lookahead;
- id = parseVariableIdentifier();
-
- // 12.2.1
- if (strict && isRestrictedWord(id.name)) {
- throwErrorTolerant({}, Messages.StrictVarName);
- }
-
- if (kind === 'const') {
- expect('=');
- init = parseAssignmentExpression();
- } else if (match('=')) {
- lex();
- init = parseAssignmentExpression();
- }
-
- return delegate.markEnd(delegate.createVariableDeclarator(id, init), startToken);
- }
-
- function parseVariableDeclarationList(kind) {
- var list = [];
-
- do {
- list.push(parseVariableDeclaration(kind));
- if (!match(',')) {
- break;
- }
- lex();
- } while (index < length);
-
- return list;
- }
-
- function parseVariableStatement() {
- var declarations;
-
- expectKeyword('var');
-
- declarations = parseVariableDeclarationList();
-
- consumeSemicolon();
-
- return delegate.createVariableDeclaration(declarations, 'var');
- }
-
- // kind may be `const` or `let`
- // Both are experimental and not in the specification yet.
- // see http://wiki.ecmascript.org/doku.php?id=harmony:const
- // and http://wiki.ecmascript.org/doku.php?id=harmony:let
- function parseConstLetDeclaration(kind) {
- var declarations, startToken;
-
- startToken = lookahead;
-
- expectKeyword(kind);
-
- declarations = parseVariableDeclarationList(kind);
-
- consumeSemicolon();
-
- return delegate.markEnd(delegate.createVariableDeclaration(declarations, kind), startToken);
- }
-
- // 12.3 Empty Statement
-
- function parseEmptyStatement() {
- expect(';');
- return delegate.createEmptyStatement();
- }
-
- // 12.4 Expression Statement
-
- function parseExpressionStatement() {
- var expr = parseExpression();
- consumeSemicolon();
- return delegate.createExpressionStatement(expr);
- }
-
- // 12.5 If statement
-
- function parseIfStatement() {
- var test, consequent, alternate;
-
- expectKeyword('if');
-
- expect('(');
-
- test = parseExpression();
-
- expect(')');
-
- consequent = parseStatement();
-
- if (matchKeyword('else')) {
- lex();
- alternate = parseStatement();
- } else {
- alternate = null;
- }
-
- return delegate.createIfStatement(test, consequent, alternate);
- }
-
- // 12.6 Iteration Statements
-
- function parseDoWhileStatement() {
- var body, test, oldInIteration;
-
- expectKeyword('do');
-
- oldInIteration = state.inIteration;
- state.inIteration = true;
-
- body = parseStatement();
-
- state.inIteration = oldInIteration;
-
- expectKeyword('while');
-
- expect('(');
-
- test = parseExpression();
-
- expect(')');
-
- if (match(';')) {
- lex();
- }
-
- return delegate.createDoWhileStatement(body, test);
- }
-
- function parseWhileStatement() {
- var test, body, oldInIteration;
-
- expectKeyword('while');
-
- expect('(');
-
- test = parseExpression();
-
- expect(')');
-
- oldInIteration = state.inIteration;
- state.inIteration = true;
-
- body = parseStatement();
-
- state.inIteration = oldInIteration;
-
- return delegate.createWhileStatement(test, body);
- }
-
- function parseForVariableDeclaration() {
- var token, declarations, startToken;
-
- startToken = lookahead;
- token = lex();
- declarations = parseVariableDeclarationList();
-
- return delegate.markEnd(delegate.createVariableDeclaration(declarations, token.value), startToken);
- }
-
- function parseForStatement() {
- var init, test, update, left, right, body, oldInIteration;
-
- init = test = update = null;
-
- expectKeyword('for');
-
- expect('(');
-
- if (match(';')) {
- lex();
- } else {
- if (matchKeyword('var') || matchKeyword('let')) {
- state.allowIn = false;
- init = parseForVariableDeclaration();
- state.allowIn = true;
-
- if (init.declarations.length === 1 && matchKeyword('in')) {
- lex();
- left = init;
- right = parseExpression();
- init = null;
- }
- } else {
- state.allowIn = false;
- init = parseExpression();
- state.allowIn = true;
-
- if (matchKeyword('in')) {
- // LeftHandSideExpression
- if (!isLeftHandSide(init)) {
- throwErrorTolerant({}, Messages.InvalidLHSInForIn);
- }
-
- lex();
- left = init;
- right = parseExpression();
- init = null;
- }
- }
-
- if (typeof left === 'undefined') {
- expect(';');
- }
- }
-
- if (typeof left === 'undefined') {
-
- if (!match(';')) {
- test = parseExpression();
- }
- expect(';');
-
- if (!match(')')) {
- update = parseExpression();
- }
- }
-
- expect(')');
-
- oldInIteration = state.inIteration;
- state.inIteration = true;
-
- body = parseStatement();
-
- state.inIteration = oldInIteration;
-
- return (typeof left === 'undefined') ?
- delegate.createForStatement(init, test, update, body) :
- delegate.createForInStatement(left, right, body);
- }
-
- // 12.7 The continue statement
-
- function parseContinueStatement() {
- var label = null, key;
-
- expectKeyword('continue');
-
- // Optimize the most common form: 'continue;'.
- if (source.charCodeAt(index) === 0x3B) {
- lex();
-
- if (!state.inIteration) {
- throwError({}, Messages.IllegalContinue);
- }
-
- return delegate.createContinueStatement(null);
- }
-
- if (peekLineTerminator()) {
- if (!state.inIteration) {
- throwError({}, Messages.IllegalContinue);
- }
-
- return delegate.createContinueStatement(null);
- }
-
- if (lookahead.type === Token.Identifier) {
- label = parseVariableIdentifier();
-
- key = '$' + label.name;
- if (!Object.prototype.hasOwnProperty.call(state.labelSet, key)) {
- throwError({}, Messages.UnknownLabel, label.name);
- }
- }
-
- consumeSemicolon();
-
- if (label === null && !state.inIteration) {
- throwError({}, Messages.IllegalContinue);
- }
-
- return delegate.createContinueStatement(label);
- }
-
- // 12.8 The break statement
-
- function parseBreakStatement() {
- var label = null, key;
-
- expectKeyword('break');
-
- // Catch the very common case first: immediately a semicolon (U+003B).
- if (source.charCodeAt(index) === 0x3B) {
- lex();
-
- if (!(state.inIteration || state.inSwitch)) {
- throwError({}, Messages.IllegalBreak);
- }
-
- return delegate.createBreakStatement(null);
- }
-
- if (peekLineTerminator()) {
- if (!(state.inIteration || state.inSwitch)) {
- throwError({}, Messages.IllegalBreak);
- }
-
- return delegate.createBreakStatement(null);
- }
-
- if (lookahead.type === Token.Identifier) {
- label = parseVariableIdentifier();
-
- key = '$' + label.name;
- if (!Object.prototype.hasOwnProperty.call(state.labelSet, key)) {
- throwError({}, Messages.UnknownLabel, label.name);
- }
- }
-
- consumeSemicolon();
-
- if (label === null && !(state.inIteration || state.inSwitch)) {
- throwError({}, Messages.IllegalBreak);
- }
-
- return delegate.createBreakStatement(label);
- }
-
- // 12.9 The return statement
-
- function parseReturnStatement() {
- var argument = null;
-
- expectKeyword('return');
-
- if (!state.inFunctionBody) {
- throwErrorTolerant({}, Messages.IllegalReturn);
- }
-
- // 'return' followed by a space and an identifier is very common.
- if (source.charCodeAt(index) === 0x20) {
- if (isIdentifierStart(source.charCodeAt(index + 1))) {
- argument = parseExpression();
- consumeSemicolon();
- return delegate.createReturnStatement(argument);
- }
- }
-
- if (peekLineTerminator()) {
- return delegate.createReturnStatement(null);
- }
-
- if (!match(';')) {
- if (!match('}') && lookahead.type !== Token.EOF) {
- argument = parseExpression();
- }
- }
-
- consumeSemicolon();
-
- return delegate.createReturnStatement(argument);
- }
-
- // 12.10 The with statement
-
- function parseWithStatement() {
- var object, body;
-
- if (strict) {
- // TODO(ikarienator): Should we update the test cases instead?
- skipComment();
- throwErrorTolerant({}, Messages.StrictModeWith);
- }
-
- expectKeyword('with');
-
- expect('(');
-
- object = parseExpression();
-
- expect(')');
-
- body = parseStatement();
-
- return delegate.createWithStatement(object, body);
- }
-
- // 12.10 The swith statement
-
- function parseSwitchCase() {
- var test, consequent = [], statement, startToken;
-
- startToken = lookahead;
- if (matchKeyword('default')) {
- lex();
- test = null;
- } else {
- expectKeyword('case');
- test = parseExpression();
- }
- expect(':');
-
- while (index < length) {
- if (match('}') || matchKeyword('default') || matchKeyword('case')) {
- break;
- }
- statement = parseStatement();
- consequent.push(statement);
- }
-
- return delegate.markEnd(delegate.createSwitchCase(test, consequent), startToken);
- }
-
- function parseSwitchStatement() {
- var discriminant, cases, clause, oldInSwitch, defaultFound;
-
- expectKeyword('switch');
-
- expect('(');
-
- discriminant = parseExpression();
-
- expect(')');
-
- expect('{');
-
- cases = [];
-
- if (match('}')) {
- lex();
- return delegate.createSwitchStatement(discriminant, cases);
- }
-
- oldInSwitch = state.inSwitch;
- state.inSwitch = true;
- defaultFound = false;
-
- while (index < length) {
- if (match('}')) {
- break;
- }
- clause = parseSwitchCase();
- if (clause.test === null) {
- if (defaultFound) {
- throwError({}, Messages.MultipleDefaultsInSwitch);
- }
- defaultFound = true;
- }
- cases.push(clause);
- }
-
- state.inSwitch = oldInSwitch;
-
- expect('}');
-
- return delegate.createSwitchStatement(discriminant, cases);
- }
-
- // 12.13 The throw statement
-
- function parseThrowStatement() {
- var argument;
-
- expectKeyword('throw');
-
- if (peekLineTerminator()) {
- throwError({}, Messages.NewlineAfterThrow);
- }
-
- argument = parseExpression();
-
- consumeSemicolon();
-
- return delegate.createThrowStatement(argument);
- }
-
- // 12.14 The try statement
-
- function parseCatchClause() {
- var param, body, startToken;
-
- startToken = lookahead;
- expectKeyword('catch');
-
- expect('(');
- if (match(')')) {
- throwUnexpected(lookahead);
- }
-
- param = parseVariableIdentifier();
- // 12.14.1
- if (strict && isRestrictedWord(param.name)) {
- throwErrorTolerant({}, Messages.StrictCatchVariable);
- }
-
- expect(')');
- body = parseBlock();
- return delegate.markEnd(delegate.createCatchClause(param, body), startToken);
- }
-
- function parseTryStatement() {
- var block, handlers = [], finalizer = null;
-
- expectKeyword('try');
-
- block = parseBlock();
-
- if (matchKeyword('catch')) {
- handlers.push(parseCatchClause());
- }
-
- if (matchKeyword('finally')) {
- lex();
- finalizer = parseBlock();
- }
-
- if (handlers.length === 0 && !finalizer) {
- throwError({}, Messages.NoCatchOrFinally);
- }
-
- return delegate.createTryStatement(block, [], handlers, finalizer);
- }
-
- // 12.15 The debugger statement
-
- function parseDebuggerStatement() {
- expectKeyword('debugger');
-
- consumeSemicolon();
-
- return delegate.createDebuggerStatement();
- }
-
- // 12 Statements
-
- function parseStatement() {
- var type = lookahead.type,
- expr,
- labeledBody,
- key,
- startToken;
-
- if (type === Token.EOF) {
- throwUnexpected(lookahead);
- }
-
- if (type === Token.Punctuator && lookahead.value === '{') {
- return parseBlock();
- }
-
- startToken = lookahead;
-
- if (type === Token.Punctuator) {
- switch (lookahead.value) {
- case ';':
- return delegate.markEnd(parseEmptyStatement(), startToken);
- case '(':
- return delegate.markEnd(parseExpressionStatement(), startToken);
- default:
- break;
- }
- }
-
- if (type === Token.Keyword) {
- switch (lookahead.value) {
- case 'break':
- return delegate.markEnd(parseBreakStatement(), startToken);
- case 'continue':
- return delegate.markEnd(parseContinueStatement(), startToken);
- case 'debugger':
- return delegate.markEnd(parseDebuggerStatement(), startToken);
- case 'do':
- return delegate.markEnd(parseDoWhileStatement(), startToken);
- case 'for':
- return delegate.markEnd(parseForStatement(), startToken);
- case 'function':
- return delegate.markEnd(parseFunctionDeclaration(), startToken);
- case 'if':
- return delegate.markEnd(parseIfStatement(), startToken);
- case 'return':
- return delegate.markEnd(parseReturnStatement(), startToken);
- case 'switch':
- return delegate.markEnd(parseSwitchStatement(), startToken);
- case 'throw':
- return delegate.markEnd(parseThrowStatement(), startToken);
- case 'try':
- return delegate.markEnd(parseTryStatement(), startToken);
- case 'var':
- return delegate.markEnd(parseVariableStatement(), startToken);
- case 'while':
- return delegate.markEnd(parseWhileStatement(), startToken);
- case 'with':
- return delegate.markEnd(parseWithStatement(), startToken);
- default:
- break;
- }
- }
-
- expr = parseExpression();
-
- // 12.12 Labelled Statements
- if ((expr.type === Syntax.Identifier) && match(':')) {
- lex();
-
- key = '$' + expr.name;
- if (Object.prototype.hasOwnProperty.call(state.labelSet, key)) {
- throwError({}, Messages.Redeclaration, 'Label', expr.name);
- }
-
- state.labelSet[key] = true;
- labeledBody = parseStatement();
- delete state.labelSet[key];
- return delegate.markEnd(delegate.createLabeledStatement(expr, labeledBody), startToken);
- }
-
- consumeSemicolon();
-
- return delegate.markEnd(delegate.createExpressionStatement(expr), startToken);
- }
-
- // 13 Function Definition
-
- function parseFunctionSourceElements() {
- var sourceElement, sourceElements = [], token, directive, firstRestricted,
- oldLabelSet, oldInIteration, oldInSwitch, oldInFunctionBody, startToken;
-
- startToken = lookahead;
- expect('{');
-
- while (index < length) {
- if (lookahead.type !== Token.StringLiteral) {
- break;
- }
- token = lookahead;
-
- sourceElement = parseSourceElement();
- sourceElements.push(sourceElement);
- if (sourceElement.expression.type !== Syntax.Literal) {
- // this is not directive
- break;
- }
- directive = source.slice(token.start + 1, token.end - 1);
- if (directive === 'use strict') {
- strict = true;
- if (firstRestricted) {
- throwErrorTolerant(firstRestricted, Messages.StrictOctalLiteral);
- }
- } else {
- if (!firstRestricted && token.octal) {
- firstRestricted = token;
- }
- }
- }
-
- oldLabelSet = state.labelSet;
- oldInIteration = state.inIteration;
- oldInSwitch = state.inSwitch;
- oldInFunctionBody = state.inFunctionBody;
-
- state.labelSet = {};
- state.inIteration = false;
- state.inSwitch = false;
- state.inFunctionBody = true;
-
- while (index < length) {
- if (match('}')) {
- break;
- }
- sourceElement = parseSourceElement();
- if (typeof sourceElement === 'undefined') {
- break;
- }
- sourceElements.push(sourceElement);
- }
-
- expect('}');
-
- state.labelSet = oldLabelSet;
- state.inIteration = oldInIteration;
- state.inSwitch = oldInSwitch;
- state.inFunctionBody = oldInFunctionBody;
-
- return delegate.markEnd(delegate.createBlockStatement(sourceElements), startToken);
- }
-
- function parseParams(firstRestricted) {
- var param, params = [], token, stricted, paramSet, key, message;
- expect('(');
-
- if (!match(')')) {
- paramSet = {};
- while (index < length) {
- token = lookahead;
- param = parseVariableIdentifier();
- key = '$' + token.value;
- if (strict) {
- if (isRestrictedWord(token.value)) {
- stricted = token;
- message = Messages.StrictParamName;
- }
- if (Object.prototype.hasOwnProperty.call(paramSet, key)) {
- stricted = token;
- message = Messages.StrictParamDupe;
- }
- } else if (!firstRestricted) {
- if (isRestrictedWord(token.value)) {
- firstRestricted = token;
- message = Messages.StrictParamName;
- } else if (isStrictModeReservedWord(token.value)) {
- firstRestricted = token;
- message = Messages.StrictReservedWord;
- } else if (Object.prototype.hasOwnProperty.call(paramSet, key)) {
- firstRestricted = token;
- message = Messages.StrictParamDupe;
- }
- }
- params.push(param);
- paramSet[key] = true;
- if (match(')')) {
- break;
- }
- expect(',');
- }
- }
-
- expect(')');
-
- return {
- params: params,
- stricted: stricted,
- firstRestricted: firstRestricted,
- message: message
- };
- }
-
- function parseFunctionDeclaration() {
- var id, params = [], body, token, stricted, tmp, firstRestricted, message, previousStrict, startToken;
-
- startToken = lookahead;
-
- expectKeyword('function');
- token = lookahead;
- id = parseVariableIdentifier();
- if (strict) {
- if (isRestrictedWord(token.value)) {
- throwErrorTolerant(token, Messages.StrictFunctionName);
- }
- } else {
- if (isRestrictedWord(token.value)) {
- firstRestricted = token;
- message = Messages.StrictFunctionName;
- } else if (isStrictModeReservedWord(token.value)) {
- firstRestricted = token;
- message = Messages.StrictReservedWord;
- }
- }
-
- tmp = parseParams(firstRestricted);
- params = tmp.params;
- stricted = tmp.stricted;
- firstRestricted = tmp.firstRestricted;
- if (tmp.message) {
- message = tmp.message;
- }
-
- previousStrict = strict;
- body = parseFunctionSourceElements();
- if (strict && firstRestricted) {
- throwError(firstRestricted, message);
- }
- if (strict && stricted) {
- throwErrorTolerant(stricted, message);
- }
- strict = previousStrict;
-
- return delegate.markEnd(delegate.createFunctionDeclaration(id, params, [], body), startToken);
- }
-
- function parseFunctionExpression() {
- var token, id = null, stricted, firstRestricted, message, tmp, params = [], body, previousStrict, startToken;
-
- startToken = lookahead;
- expectKeyword('function');
-
- if (!match('(')) {
- token = lookahead;
- id = parseVariableIdentifier();
- if (strict) {
- if (isRestrictedWord(token.value)) {
- throwErrorTolerant(token, Messages.StrictFunctionName);
- }
- } else {
- if (isRestrictedWord(token.value)) {
- firstRestricted = token;
- message = Messages.StrictFunctionName;
- } else if (isStrictModeReservedWord(token.value)) {
- firstRestricted = token;
- message = Messages.StrictReservedWord;
- }
- }
- }
-
- tmp = parseParams(firstRestricted);
- params = tmp.params;
- stricted = tmp.stricted;
- firstRestricted = tmp.firstRestricted;
- if (tmp.message) {
- message = tmp.message;
- }
-
- previousStrict = strict;
- body = parseFunctionSourceElements();
- if (strict && firstRestricted) {
- throwError(firstRestricted, message);
- }
- if (strict && stricted) {
- throwErrorTolerant(stricted, message);
- }
- strict = previousStrict;
-
- return delegate.markEnd(delegate.createFunctionExpression(id, params, [], body), startToken);
- }
-
- // 14 Program
-
- function parseSourceElement() {
- if (lookahead.type === Token.Keyword) {
- switch (lookahead.value) {
- case 'const':
- case 'let':
- return parseConstLetDeclaration(lookahead.value);
- case 'function':
- return parseFunctionDeclaration();
- default:
- return parseStatement();
- }
- }
-
- if (lookahead.type !== Token.EOF) {
- return parseStatement();
- }
- }
-
- function parseSourceElements() {
- var sourceElement, sourceElements = [], token, directive, firstRestricted;
-
- while (index < length) {
- token = lookahead;
- if (token.type !== Token.StringLiteral) {
- break;
- }
-
- sourceElement = parseSourceElement();
- sourceElements.push(sourceElement);
- if (sourceElement.expression.type !== Syntax.Literal) {
- // this is not directive
- break;
- }
- directive = source.slice(token.start + 1, token.end - 1);
- if (directive === 'use strict') {
- strict = true;
- if (firstRestricted) {
- throwErrorTolerant(firstRestricted, Messages.StrictOctalLiteral);
- }
- } else {
- if (!firstRestricted && token.octal) {
- firstRestricted = token;
- }
- }
- }
-
- while (index < length) {
- sourceElement = parseSourceElement();
- /* istanbul ignore if */
- if (typeof sourceElement === 'undefined') {
- break;
- }
- sourceElements.push(sourceElement);
- }
- return sourceElements;
- }
-
- function parseProgram() {
- var body, startToken;
-
- skipComment();
- peek();
- startToken = lookahead;
- strict = false;
-
- body = parseSourceElements();
- return delegate.markEnd(delegate.createProgram(body), startToken);
- }
-
- function filterTokenLocation() {
- var i, entry, token, tokens = [];
-
- for (i = 0; i < extra.tokens.length; ++i) {
- entry = extra.tokens[i];
- token = {
- type: entry.type,
- value: entry.value
- };
- if (extra.range) {
- token.range = entry.range;
- }
- if (extra.loc) {
- token.loc = entry.loc;
- }
- tokens.push(token);
- }
-
- extra.tokens = tokens;
- }
-
- function tokenize(code, options) {
- var toString,
- token,
- tokens;
-
- toString = String;
- if (typeof code !== 'string' && !(code instanceof String)) {
- code = toString(code);
- }
-
- delegate = SyntaxTreeDelegate;
- source = code;
- index = 0;
- lineNumber = (source.length > 0) ? 1 : 0;
- lineStart = 0;
- length = source.length;
- lookahead = null;
- state = {
- allowIn: true,
- labelSet: {},
- inFunctionBody: false,
- inIteration: false,
- inSwitch: false,
- lastCommentStart: -1
- };
-
- extra = {};
-
- // Options matching.
- options = options || {};
-
- // Of course we collect tokens here.
- options.tokens = true;
- extra.tokens = [];
- extra.tokenize = true;
- // The following two fields are necessary to compute the Regex tokens.
- extra.openParenToken = -1;
- extra.openCurlyToken = -1;
-
- extra.range = (typeof options.range === 'boolean') && options.range;
- extra.loc = (typeof options.loc === 'boolean') && options.loc;
-
- if (typeof options.comment === 'boolean' && options.comment) {
- extra.comments = [];
- }
- if (typeof options.tolerant === 'boolean' && options.tolerant) {
- extra.errors = [];
- }
-
- try {
- peek();
- if (lookahead.type === Token.EOF) {
- return extra.tokens;
- }
-
- token = lex();
- while (lookahead.type !== Token.EOF) {
- try {
- token = lex();
- } catch (lexError) {
- token = lookahead;
- if (extra.errors) {
- extra.errors.push(lexError);
- // We have to break on the first error
- // to avoid infinite loops.
- break;
- } else {
- throw lexError;
- }
- }
- }
-
- filterTokenLocation();
- tokens = extra.tokens;
- if (typeof extra.comments !== 'undefined') {
- tokens.comments = extra.comments;
- }
- if (typeof extra.errors !== 'undefined') {
- tokens.errors = extra.errors;
- }
- } catch (e) {
- throw e;
- } finally {
- extra = {};
- }
- return tokens;
- }
-
- function parse(code, options) {
- var program, toString;
-
- toString = String;
- if (typeof code !== 'string' && !(code instanceof String)) {
- code = toString(code);
- }
-
- delegate = SyntaxTreeDelegate;
- source = code;
- index = 0;
- lineNumber = (source.length > 0) ? 1 : 0;
- lineStart = 0;
- length = source.length;
- lookahead = null;
- state = {
- allowIn: true,
- labelSet: {},
- inFunctionBody: false,
- inIteration: false,
- inSwitch: false,
- lastCommentStart: -1
- };
-
- extra = {};
- if (typeof options !== 'undefined') {
- extra.range = (typeof options.range === 'boolean') && options.range;
- extra.loc = (typeof options.loc === 'boolean') && options.loc;
- extra.attachComment = (typeof options.attachComment === 'boolean') && options.attachComment;
-
- if (extra.loc && options.source !== null && options.source !== undefined) {
- extra.source = toString(options.source);
- }
-
- if (typeof options.tokens === 'boolean' && options.tokens) {
- extra.tokens = [];
- }
- if (typeof options.comment === 'boolean' && options.comment) {
- extra.comments = [];
- }
- if (typeof options.tolerant === 'boolean' && options.tolerant) {
- extra.errors = [];
- }
- if (extra.attachComment) {
- extra.range = true;
- extra.comments = [];
- extra.bottomRightStack = [];
- extra.trailingComments = [];
- extra.leadingComments = [];
- }
- }
-
- try {
- program = parseProgram();
- if (typeof extra.comments !== 'undefined') {
- program.comments = extra.comments;
- }
- if (typeof extra.tokens !== 'undefined') {
- filterTokenLocation();
- program.tokens = extra.tokens;
- }
- if (typeof extra.errors !== 'undefined') {
- program.errors = extra.errors;
- }
- } catch (e) {
- throw e;
- } finally {
- extra = {};
- }
-
- return program;
- }
-
- // Sync with *.json manifests.
- exports.version = '1.2.2';
-
- exports.tokenize = tokenize;
-
- exports.parse = parse;
-
- // Deep copy.
- /* istanbul ignore next */
- exports.Syntax = (function () {
- var name, types = {};
-
- if (typeof Object.create === 'function') {
- types = Object.create(null);
- }
-
- for (name in Syntax) {
- if (Syntax.hasOwnProperty(name)) {
- types[name] = Syntax[name];
- }
- }
-
- if (typeof Object.freeze === 'function') {
- Object.freeze(types);
- }
-
- return types;
- }());
-
-}));
-/* vim: set sw=4 ts=4 et tw=80 : */
-
-})(null);
-/*!
- * falafel (c) James Halliday / MIT License
- * https://github.com/substack/node-falafel
- */
-
-(function(require,module){
-var parse = require('esprima').parse;
-var objectKeys = Object.keys || function (obj) {
- var keys = [];
- for (var key in obj) keys.push(key);
- return keys;
-};
-var forEach = function (xs, fn) {
- if (xs.forEach) return xs.forEach(fn);
- for (var i = 0; i < xs.length; i++) {
- fn.call(xs, xs[i], i, xs);
- }
-};
-
-var isArray = Array.isArray || function (xs) {
- return Object.prototype.toString.call(xs) === '[object Array]';
-};
-
-module.exports = function (src, opts, fn) {
- if (typeof opts === 'function') {
- fn = opts;
- opts = {};
- }
- if (typeof src === 'object') {
- opts = src;
- src = opts.source;
- delete opts.source;
- }
- src = src === undefined ? opts.source : src;
- opts.range = true;
- if (typeof src !== 'string') src = String(src);
-
- var ast = parse(src, opts);
-
- var result = {
- chunks : src.split(''),
- toString : function () { return result.chunks.join('') },
- inspect : function () { return result.toString() }
- };
- var index = 0;
-
- (function walk (node, parent) {
- insertHelpers(node, parent, result.chunks);
-
- forEach(objectKeys(node), function (key) {
- if (key === 'parent') return;
-
- var child = node[key];
- if (isArray(child)) {
- forEach(child, function (c) {
- if (c && typeof c.type === 'string') {
- walk(c, node);
- }
- });
- }
- else if (child && typeof child.type === 'string') {
- insertHelpers(child, node, result.chunks);
- walk(child, node);
- }
- });
- fn(node);
- })(ast, undefined);
-
- return result;
-};
-
-function insertHelpers (node, parent, chunks) {
- if (!node.range) return;
-
- node.parent = parent;
-
- node.source = function () {
- return chunks.slice(
- node.range[0], node.range[1]
- ).join('');
- };
-
- if (node.update && typeof node.update === 'object') {
- var prev = node.update;
- forEach(objectKeys(prev), function (key) {
- update[key] = prev[key];
- });
- node.update = update;
- }
- else {
- node.update = update;
- }
-
- function update (s) {
- chunks[node.range[0]] = s;
- for (var i = node.range[0] + 1; i < node.range[1]; i++) {
- chunks[i] = '';
- }
- };
-}
-
-window.falafel = module.exports;})(function(){return {parse: esprima.parse};},{exports: {}});
-var inBrowser = typeof window !== 'undefined' && this === window;
-var parseAndModify = (inBrowser ? window.falafel : require("falafel"));
-
-(inBrowser ? window : exports).blanket = (function(){
- var linesToAddTracking = [
- "ExpressionStatement",
- "BreakStatement" ,
- "ContinueStatement" ,
- "VariableDeclaration",
- "ReturnStatement" ,
- "ThrowStatement" ,
- "TryStatement" ,
- "FunctionDeclaration" ,
- "IfStatement" ,
- "WhileStatement" ,
- "DoWhileStatement" ,
- "ForStatement" ,
- "ForInStatement" ,
- "SwitchStatement" ,
- "WithStatement"
- ],
- linesToAddBrackets = [
- "IfStatement" ,
- "WhileStatement" ,
- "DoWhileStatement" ,
- "ForStatement" ,
- "ForInStatement" ,
- "WithStatement"
- ],
- __blanket,
- copynumber = Math.floor(Math.random()*1000),
- coverageInfo = {},options = {
- reporter: null,
- adapter:null,
- filter: null,
- customVariable: null,
- loader: null,
- ignoreScriptError: false,
- existingRequireJS:false,
- autoStart: false,
- timeout: 180,
- ignoreCors: false,
- branchTracking: false,
- sourceURL: false,
- debug:false,
- engineOnly:false,
- testReadyCallback:null,
- commonJS:false,
- instrumentCache:false,
- modulePattern: null
- };
-
- if (inBrowser && typeof window.blanket !== 'undefined'){
- __blanket = window.blanket.noConflict();
- }
-
- _blanket = {
- noConflict: function(){
- if (__blanket){
- return __blanket;
- }
- return _blanket;
- },
- _getCopyNumber: function(){
- //internal method
- //for differentiating between instances
- return copynumber;
- },
- extend: function(obj) {
- //borrowed from underscore
- _blanket._extend(_blanket,obj);
- },
- _extend: function(dest,source){
- if (source) {
- for (var prop in source) {
- if ( dest[prop] instanceof Object && typeof dest[prop] !== "function"){
- _blanket._extend(dest[prop],source[prop]);
- }else{
- dest[prop] = source[prop];
- }
- }
- }
- },
- getCovVar: function(){
- var opt = _blanket.options("customVariable");
- if (opt){
- if (_blanket.options("debug")) {console.log("BLANKET-Using custom tracking variable:",opt);}
- return inBrowser ? "window."+opt : opt;
- }
- return inBrowser ? "window._$blanket" : "_$jscoverage";
- },
- options: function(key,value){
- if (typeof key !== "string"){
- _blanket._extend(options,key);
- }else if (typeof value === 'undefined'){
- return options[key];
- }else{
- options[key]=value;
- }
- },
- instrument: function(config, next){
- //check instrumented hash table,
- //return instrumented code if available.
- var inFile = config.inputFile,
- inFileName = config.inputFileName;
- //check instrument cache
- if (_blanket.options("instrumentCache") && sessionStorage && sessionStorage.getItem("blanket_instrument_store-"+inFileName)){
- if (_blanket.options("debug")) {console.log("BLANKET-Reading instrumentation from cache: ",inFileName);}
- next(sessionStorage.getItem("blanket_instrument_store-"+inFileName));
- }else{
- var sourceArray = _blanket._prepareSource(inFile);
- _blanket._trackingArraySetup=[];
- //remove shebang
- inFile = inFile.replace(/^\#\!.*/, "");
- var instrumented = parseAndModify(inFile,{loc:true,comment:true}, _blanket._addTracking(inFileName));
- instrumented = _blanket._trackingSetup(inFileName,sourceArray)+instrumented;
- if (_blanket.options("sourceURL")){
- instrumented += "\n//@ sourceURL="+inFileName.replace("http://","");
- }
- if (_blanket.options("debug")) {console.log("BLANKET-Instrumented file: ",inFileName);}
- if (_blanket.options("instrumentCache") && sessionStorage){
- if (_blanket.options("debug")) {console.log("BLANKET-Saving instrumentation to cache: ",inFileName);}
- sessionStorage.setItem("blanket_instrument_store-"+inFileName,instrumented);
- }
- next(instrumented);
- }
- },
- _trackingArraySetup: [],
- _branchingArraySetup: [],
- _prepareSource: function(source){
- return source.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/(\r\n|\n|\r)/gm,"\n").split('\n');
- },
- _trackingSetup: function(filename,sourceArray){
- var branches = _blanket.options("branchTracking");
- var sourceString = sourceArray.join("',\n'");
- var intro = "";
- var covVar = _blanket.getCovVar();
-
- intro += "if (typeof "+covVar+" === 'undefined') "+covVar+" = {};\n";
- if (branches){
- intro += "var _$branchFcn=function(f,l,c,r){ ";
- intro += "if (!!r) { ";
- intro += covVar+"[f].branchData[l][c][0] = "+covVar+"[f].branchData[l][c][0] || [];";
- intro += covVar+"[f].branchData[l][c][0].push(r); }";
- intro += "else { ";
- intro += covVar+"[f].branchData[l][c][1] = "+covVar+"[f].branchData[l][c][1] || [];";
- intro += covVar+"[f].branchData[l][c][1].push(r); }";
- intro += "return r;};\n";
- }
- intro += "if (typeof "+covVar+"['"+filename+"'] === 'undefined'){";
-
- intro += covVar+"['"+filename+"']=[];\n";
- if (branches){
- intro += covVar+"['"+filename+"'].branchData=[];\n";
- }
- intro += covVar+"['"+filename+"'].source=['"+sourceString+"'];\n";
- //initialize array values
- _blanket._trackingArraySetup.sort(function(a,b){
- return parseInt(a,10) > parseInt(b,10);
- }).forEach(function(item){
- intro += covVar+"['"+filename+"']["+item+"]=0;\n";
- });
- if (branches){
- _blanket._branchingArraySetup.sort(function(a,b){
- return a.line > b.line;
- }).sort(function(a,b){
- return a.column > b.column;
- }).forEach(function(item){
- if (item.file === filename){
- intro += "if (typeof "+ covVar+"['"+filename+"'].branchData["+item.line+"] === 'undefined'){\n";
- intro += covVar+"['"+filename+"'].branchData["+item.line+"]=[];\n";
- intro += "}";
- intro += covVar+"['"+filename+"'].branchData["+item.line+"]["+item.column+"] = [];\n";
- intro += covVar+"['"+filename+"'].branchData["+item.line+"]["+item.column+"].consequent = "+JSON.stringify(item.consequent)+";\n";
- intro += covVar+"['"+filename+"'].branchData["+item.line+"]["+item.column+"].alternate = "+JSON.stringify(item.alternate)+";\n";
- }
- });
- }
- intro += "}";
-
- return intro;
- },
- _blockifyIf: function(node){
- if (linesToAddBrackets.indexOf(node.type) > -1){
- var bracketsExistObject = node.consequent || node.body;
- var bracketsExistAlt = node.alternate;
- if( bracketsExistAlt && bracketsExistAlt.type !== "BlockStatement") {
- bracketsExistAlt.update("{\n"+bracketsExistAlt.source()+"}\n");
- }
- if( bracketsExistObject && bracketsExistObject.type !== "BlockStatement") {
- bracketsExistObject.update("{\n"+bracketsExistObject.source()+"}\n");
- }
- }
- },
- _trackBranch: function(node,filename){
- //recursive on consequent and alternative
- var line = node.loc.start.line;
- var col = node.loc.start.column;
-
- _blanket._branchingArraySetup.push({
- line: line,
- column: col,
- file:filename,
- consequent: node.consequent.loc,
- alternate: node.alternate.loc
- });
-
- var updated = "_$branchFcn"+
- "('"+filename+"',"+line+","+col+","+node.test.source()+
- ")?"+node.consequent.source()+":"+node.alternate.source();
- node.update(updated);
- },
- _addTracking: function (filename) {
- //falafel doesn't take a file name
- //so we include the filename in a closure
- //and return the function to falafel
- var covVar = _blanket.getCovVar();
-
- return function(node){
- _blanket._blockifyIf(node);
-
- if (linesToAddTracking.indexOf(node.type) > -1 && node.parent.type !== "LabeledStatement") {
- _blanket._checkDefs(node,filename);
- if (node.type === "VariableDeclaration" &&
- (node.parent.type === "ForStatement" || node.parent.type === "ForInStatement")){
- return;
- }
- if (node.loc && node.loc.start){
- node.update(covVar+"['"+filename+"']["+node.loc.start.line+"]++;\n"+node.source());
- _blanket._trackingArraySetup.push(node.loc.start.line);
- }else{
- //I don't think we can handle a node with no location
- throw new Error("The instrumenter encountered a node with no location: "+Object.keys(node));
- }
- }else if (_blanket.options("branchTracking") && node.type === "ConditionalExpression"){
- _blanket._trackBranch(node,filename);
- }
- };
- },
- _checkDefs: function(node,filename){
- // Make sure developers don't redefine window. if they do, inform them it is wrong.
- if (inBrowser){
- if (node.type === "VariableDeclaration" && node.declarations) {
- node.declarations.forEach(function(declaration) {
- if (declaration.id.name === "window") {
- throw new Error("Instrumentation error, you cannot redefine the 'window' variable in " + filename + ":" + node.loc.start.line);
- }
- });
- }
- if (node.type === "FunctionDeclaration" && node.params) {
- node.params.forEach(function(param) {
- if (param.name === "window") {
- throw new Error("Instrumentation error, you cannot redefine the 'window' variable in " + filename + ":" + node.loc.start.line);
- }
- });
- }
- //Make sure developers don't redefine the coverage variable
- if (node.type === "ExpressionStatement" &&
- node.expression && node.expression.left &&
- node.expression.left.object && node.expression.left.property &&
- node.expression.left.object.name +
- "." + node.expression.left.property.name === _blanket.getCovVar()) {
- throw new Error("Instrumentation error, you cannot redefine the coverage variable in " + filename + ":" + node.loc.start.line);
- }
- }else{
- //Make sure developers don't redefine the coverage variable in node
- if (node.type === "ExpressionStatement" &&
- node.expression && node.expression.left &&
- !node.expression.left.object && !node.expression.left.property &&
- node.expression.left.name === _blanket.getCovVar()) {
- throw new Error("Instrumentation error, you cannot redefine the coverage variable in " + filename + ":" + node.loc.start.line);
- }
- }
- },
- setupCoverage: function(){
- coverageInfo.instrumentation = "blanket";
- coverageInfo.stats = {
- "suites": 0,
- "tests": 0,
- "passes": 0,
- "pending": 0,
- "failures": 0,
- "start": new Date()
- };
- },
- _checkIfSetup: function(){
- if (!coverageInfo.stats){
- throw new Error("You must call blanket.setupCoverage() first.");
- }
- },
- onTestStart: function(){
- if (_blanket.options("debug")) {console.log("BLANKET-Test event started");}
- this._checkIfSetup();
- coverageInfo.stats.tests++;
- coverageInfo.stats.pending++;
- },
- onTestDone: function(total,passed){
- this._checkIfSetup();
- if(passed === total){
- coverageInfo.stats.passes++;
- }else{
- coverageInfo.stats.failures++;
- }
- coverageInfo.stats.pending--;
- },
- onModuleStart: function(){
- this._checkIfSetup();
- coverageInfo.stats.suites++;
- },
- onTestsDone: function(){
- if (_blanket.options("debug")) {console.log("BLANKET-Test event done");}
- this._checkIfSetup();
- coverageInfo.stats.end = new Date();
-
- if (inBrowser){
- this.report(coverageInfo);
- }else{
- if (!_blanket.options("branchTracking")){
- delete (inBrowser ? window : global)[_blanket.getCovVar()].branchFcn;
- }
- this.options("reporter").call(this,coverageInfo);
- }
- }
- };
- return _blanket;
-})();
-
-(function(_blanket){
- var oldOptions = _blanket.options;
-_blanket.extend({
- outstandingRequireFiles:[],
- options: function(key,value){
- var newVal={};
-
- if (typeof key !== "string"){
- //key is key/value map
- oldOptions(key);
- newVal = key;
- }else if (typeof value === 'undefined'){
- //accessor
- return oldOptions(key);
- }else{
- //setter
- oldOptions(key,value);
- newVal[key] = value;
- }
-
- if (newVal.adapter){
- _blanket._loadFile(newVal.adapter);
- }
- if (newVal.loader){
- _blanket._loadFile(newVal.loader);
- }
- },
- requiringFile: function(filename,done){
- if (typeof filename === "undefined"){
- _blanket.outstandingRequireFiles=[];
- }else if (typeof done === "undefined"){
- _blanket.outstandingRequireFiles.push(filename);
- }else{
- _blanket.outstandingRequireFiles.splice(_blanket.outstandingRequireFiles.indexOf(filename),1);
- }
- },
- requireFilesLoaded: function(){
- return _blanket.outstandingRequireFiles.length === 0;
- },
- showManualLoader: function(){
- if (document.getElementById("blanketLoaderDialog")){
- return;
- }
- //copied from http://blog.avtex.com/2012/01/26/cross-browser-css-only-modal-box/
- var loader = "<div class='blanketDialogOverlay'>";
- loader += "&nbsp;</div>";
- loader += "<div class='blanketDialogVerticalOffset'>";
- loader += "<div class='blanketDialogBox'>";
- loader += "<b>Error:</b> Blanket.js encountered a cross origin request error while instrumenting the source files. ";
- loader += "<br><br>This is likely caused by the source files being referenced locally (using the file:// protocol). ";
- loader += "<br><br>Some solutions include <a href='http://askubuntu.com/questions/160245/making-google-chrome-option-allow-file-access-from-files-permanent' target='_blank'>starting Chrome with special flags</a>, <a target='_blank' href='https://github.com/remy/servedir'>running a server locally</a>, or using a browser without these CORS restrictions (Safari).";
- loader += "<br>";
- if (typeof FileReader !== "undefined"){
- loader += "<br>Or, try the experimental loader. When prompted, simply click on the directory containing all the source files you want covered.";
- loader += "<a href='javascript:document.getElementById(\"fileInput\").click();'>Start Loader</a>";
- loader += "<input type='file' type='application/x-javascript' accept='application/x-javascript' webkitdirectory id='fileInput' multiple onchange='window.blanket.manualFileLoader(this.files)' style='visibility:hidden;position:absolute;top:-50;left:-50'/>";
- }
- loader += "<br><span style='float:right;cursor:pointer;' onclick=document.getElementById('blanketLoaderDialog').style.display='none';>Close</span>";
- loader += "<div style='clear:both'></div>";
- loader += "</div></div>";
-
- var css = ".blanketDialogWrapper {";
- css += "display:block;";
- css += "position:fixed;";
- css += "z-index:40001; }";
-
- css += ".blanketDialogOverlay {";
- css += "position:fixed;";
- css += "width:100%;";
- css += "height:100%;";
- css += "background-color:black;";
- css += "opacity:.5; ";
- css += "-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)'; ";
- css += "filter:alpha(opacity=50); ";
- css += "z-index:40001; }";
-
- css += ".blanketDialogVerticalOffset { ";
- css += "position:fixed;";
- css += "top:30%;";
- css += "width:100%;";
- css += "z-index:40002; }";
-
- css += ".blanketDialogBox { ";
- css += "width:405px; ";
- css += "position:relative;";
- css += "margin:0 auto;";
- css += "background-color:white;";
- css += "padding:10px;";
- css += "border:1px solid black; }";
-
- var dom = document.createElement("style");
- dom.innerHTML = css;
- document.head.appendChild(dom);
-
- var div = document.createElement("div");
- div.id = "blanketLoaderDialog";
- div.className = "blanketDialogWrapper";
- div.innerHTML = loader;
- document.body.insertBefore(div,document.body.firstChild);
-
- },
- manualFileLoader: function(files){
- var toArray =Array.prototype.slice;
- files = toArray.call(files).filter(function(item){
- return item.type !== "";
- });
- var sessionLength = files.length-1;
- var sessionIndx=0;
- var sessionArray = {};
- if (sessionStorage["blanketSessionLoader"]){
- sessionArray = JSON.parse(sessionStorage["blanketSessionLoader"]);
- }
-
-
- var fileLoader = function(event){
- var fileContent = event.currentTarget.result;
- var file = files[sessionIndx];
- var filename = file.webkitRelativePath && file.webkitRelativePath !== '' ? file.webkitRelativePath : file.name;
- sessionArray[filename] = fileContent;
- sessionIndx++;
- if (sessionIndx === sessionLength){
- sessionStorage.setItem("blanketSessionLoader", JSON.stringify(sessionArray));
- document.location.reload();
- }else{
- readFile(files[sessionIndx]);
- }
- };
- function readFile(file){
- var reader = new FileReader();
- reader.onload = fileLoader;
- reader.readAsText(file);
- }
- readFile(files[sessionIndx]);
- },
- _loadFile: function(path){
- if (typeof path !== "undefined"){
- var request = new XMLHttpRequest();
- request.open('GET', path, false);
- request.send();
- _blanket._addScript(request.responseText);
- }
- },
- _addScript: function(data){
- var script = document.createElement("script");
- script.type = "text/javascript";
- script.text = data;
- (document.body || document.getElementsByTagName('head')[0]).appendChild(script);
- },
- hasAdapter: function(callback){
- return _blanket.options("adapter") !== null;
- },
- report: function(coverage_data){
- if (!document.getElementById("blanketLoaderDialog")){
- //all found, clear it
- _blanket.blanketSession = null;
- }
- coverage_data.files = window._$blanket;
- var require = blanket.options("commonJS") ? blanket._commonjs.require : window.require;
-
- // Check if we have any covered files that requires reporting
- // otherwise just exit gracefully.
- if (!coverage_data.files || !Object.keys(coverage_data.files).length) {
- if (_blanket.options("debug")) {console.log("BLANKET-Reporting No files were instrumented.");}
- return;
- }
-
- if (typeof coverage_data.files.branchFcn !== "undefined"){
- delete coverage_data.files.branchFcn;
- }
- if (typeof _blanket.options("reporter") === "string"){
- _blanket._loadFile(_blanket.options("reporter"));
- _blanket.customReporter(coverage_data,_blanket.options("reporter_options"));
- }else if (typeof _blanket.options("reporter") === "function"){
- _blanket.options("reporter")(coverage_data,_blanket.options("reporter_options"));
- }else if (typeof _blanket.defaultReporter === 'function'){
- _blanket.defaultReporter(coverage_data,_blanket.options("reporter_options"));
- }else{
- throw new Error("no reporter defined.");
- }
- },
- _bindStartTestRunner: function(bindEvent,startEvent){
- if (bindEvent){
- bindEvent(startEvent);
- }else{
- window.addEventListener("load",startEvent,false);
- }
- },
- _loadSourceFiles: function(callback){
- var require = blanket.options("commonJS") ? blanket._commonjs.require : window.require;
- function copy(o){
- var _copy = Object.create( Object.getPrototypeOf(o) );
- var propNames = Object.getOwnPropertyNames(o);
-
- propNames.forEach(function(name){
- var desc = Object.getOwnPropertyDescriptor(o, name);
- Object.defineProperty(_copy, name, desc);
- });
-
- return _copy;
- }
- if (_blanket.options("debug")) {console.log("BLANKET-Collecting page scripts");}
- var scripts = _blanket.utils.collectPageScripts();
- //_blanket.options("filter",scripts);
- if (scripts.length === 0){
- callback();
- }else{
-
- //check session state
- if (sessionStorage["blanketSessionLoader"]){
- _blanket.blanketSession = JSON.parse(sessionStorage["blanketSessionLoader"]);
- }
-
- scripts.forEach(function(file,indx){
- _blanket.utils.cache[file]={
- loaded:false
- };
- });
-
- var currScript=-1;
- _blanket.utils.loadAll(function(test){
- if (test){
- return typeof scripts[currScript+1] !== 'undefined';
- }
- currScript++;
- if (currScript >= scripts.length){
- return null;
- }
- return scripts[currScript];
- },callback);
- }
- },
- beforeStartTestRunner: function(opts){
- opts = opts || {};
- opts.checkRequirejs = typeof opts.checkRequirejs === "undefined" ? true : opts.checkRequirejs;
- opts.callback = opts.callback || function() { };
- opts.coverage = typeof opts.coverage === "undefined" ? true : opts.coverage;
- if (opts.coverage) {
- _blanket._bindStartTestRunner(opts.bindEvent,
- function(){
- _blanket._loadSourceFiles(function() {
-
- var allLoaded = function(){
- return opts.condition ? opts.condition() : _blanket.requireFilesLoaded();
- };
- var check = function() {
- if (allLoaded()) {
- if (_blanket.options("debug")) {console.log("BLANKET-All files loaded, init start test runner callback.");}
- var cb = _blanket.options("testReadyCallback");
-
- if (cb){
- if (typeof cb === "function"){
- cb(opts.callback);
- }else if (typeof cb === "string"){
- _blanket._addScript(cb);
- opts.callback();
- }
- }else{
- opts.callback();
- }
- } else {
- setTimeout(check, 13);
- }
- };
- check();
- });
- });
- }else{
- opts.callback();
- }
- },
- utils: {
- qualifyURL: function (url) {
- //http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue
- var a = document.createElement('a');
- a.href = url;
- return a.href;
- }
- }
-});
-
-})(blanket);
-
-blanket.defaultReporter = function(coverage){
- var cssSytle = "#blanket-main {margin:2px;background:#EEE;color:#333;clear:both;font-family:'Helvetica Neue Light', 'HelveticaNeue-Light', 'Helvetica Neue', Calibri, Helvetica, Arial, sans-serif; font-size:17px;} #blanket-main a {color:#333;text-decoration:none;} #blanket-main a:hover {text-decoration:underline;} .blanket {margin:0;padding:5px;clear:both;border-bottom: 1px solid #FFFFFF;} .bl-error {color:red;}.bl-success {color:#5E7D00;} .bl-file{width:auto;} .bl-cl{float:left;} .blanket div.rs {margin-left:50px; width:150px; float:right} .bl-nb {padding-right:10px;} #blanket-main a.bl-logo {color: #EB1764;cursor: pointer;font-weight: bold;text-decoration: none} .bl-source{ overflow-x:scroll; background-color: #FFFFFF; border: 1px solid #CBCBCB; color: #363636; margin: 25px 20px; width: 80%;} .bl-source div{white-space: pre;font-family: monospace;} .bl-source > div > span:first-child{background-color: #EAEAEA;color: #949494;display: inline-block;padding: 0 10px;text-align: center;width: 30px;} .bl-source .miss{background-color:#e6c3c7} .bl-source span.branchWarning{color:#000;background-color:yellow;} .bl-source span.branchOkay{color:#000;background-color:transparent;}",
- successRate = 60,
- head = document.head,
- fileNumber = 0,
- body = document.body,
- headerContent,
- hasBranchTracking = Object.keys(coverage.files).some(function(elem){
- return typeof coverage.files[elem].branchData !== 'undefined';
- }),
- bodyContent = "<div id='blanket-main'><div class='blanket bl-title'><div class='bl-cl bl-file'><a href='http://alex-seville.github.com/blanket/' target='_blank' class='bl-logo'>Blanket.js</a> results</div><div class='bl-cl rs'>Coverage (%)</div><div class='bl-cl rs'>Covered/Total Smts.</div>"+(hasBranchTracking ? "<div class='bl-cl rs'>Covered/Total Branches</div>":"")+"<div style='clear:both;'></div></div>",
- fileTemplate = "<div class='blanket {{statusclass}}'><div class='bl-cl bl-file'><span class='bl-nb'>{{fileNumber}}.</span><a href='javascript:blanket_toggleSource(\"file-{{fileNumber}}\")'>{{file}}</a></div><div class='bl-cl rs'>{{percentage}} %</div><div class='bl-cl rs'>{{numberCovered}}/{{totalSmts}}</div>"+( hasBranchTracking ? "<div class='bl-cl rs'>{{passedBranches}}/{{totalBranches}}</div>" : "" )+"<div id='file-{{fileNumber}}' class='bl-source' style='display:none;'>{{source}}</div><div style='clear:both;'></div></div>";
- grandTotalTemplate = "<div class='blanket grand-total {{statusclass}}'><div class='bl-cl'>{{rowTitle}}</div><div class='bl-cl rs'>{{percentage}} %</div><div class='bl-cl rs'>{{numberCovered}}/{{totalSmts}}</div>"+( hasBranchTracking ? "<div class='bl-cl rs'>{{passedBranches}}/{{totalBranches}}</div>" : "" ) + "<div style='clear:both;'></div></div>";
-
- function blanket_toggleSource(id) {
- var element = document.getElementById(id);
- if(element.style.display === 'block') {
- element.style.display = 'none';
- } else {
- element.style.display = 'block';
- }
- }
-
-
- var script = document.createElement("script");
- script.type = "text/javascript";
- script.text = blanket_toggleSource.toString().replace('function ' + blanket_toggleSource.name, 'function blanket_toggleSource');
- body.appendChild(script);
-
- var percentage = function(number, total) {
- return (Math.round(((number/total) * 100)*100)/100);
- };
-
- var appendTag = function (type, el, str) {
- var dom = document.createElement(type);
- dom.innerHTML = str;
- el.appendChild(dom);
- };
-
- function escapeInvalidXmlChars(str) {
- return str.replace(/\&/g, "&amp;")
- .replace(/</g, "&lt;")
- .replace(/\>/g, "&gt;")
- .replace(/\"/g, "&quot;")
- .replace(/\'/g, "&apos;");
- }
-
- function isBranchFollowed(data,bool){
- var mode = bool ? 0 : 1;
- if (typeof data === 'undefined' ||
- typeof data === null ||
- typeof data[mode] === 'undefined'){
- return false;
- }
- return data[mode].length > 0;
- }
-
- var branchStack = [];
-
- function branchReport(colsIndex,src,cols,offset,lineNum){
- var newsrc="";
- var postfix="";
- if (branchStack.length > 0){
- newsrc += "<span class='" + (isBranchFollowed(branchStack[0][1],branchStack[0][1].consequent === branchStack[0][0]) ? 'branchOkay' : 'branchWarning') + "'>";
- if (branchStack[0][0].end.line === lineNum){
- newsrc += escapeInvalidXmlChars(src.slice(0,branchStack[0][0].end.column)) + "</span>";
- src = src.slice(branchStack[0][0].end.column);
- branchStack.shift();
- if (branchStack.length > 0){
- newsrc += "<span class='" + (isBranchFollowed(branchStack[0][1],false) ? 'branchOkay' : 'branchWarning') + "'>";
- if (branchStack[0][0].end.line === lineNum){
- newsrc += escapeInvalidXmlChars(src.slice(0,branchStack[0][0].end.column)) + "</span>";
- src = src.slice(branchStack[0][0].end.column);
- branchStack.shift();
- if (!cols){
- return {src: newsrc + escapeInvalidXmlChars(src) ,cols:cols};
- }
- }
- else if (!cols){
- return {src: newsrc + escapeInvalidXmlChars(src) + "</span>",cols:cols};
- }
- else{
- postfix = "</span>";
- }
- }else if (!cols){
- return {src: newsrc + escapeInvalidXmlChars(src) ,cols:cols};
- }
- }else if(!cols){
- return {src: newsrc + escapeInvalidXmlChars(src) + "</span>",cols:cols};
- }else{
- postfix = "</span>";
- }
- }
- var thisline = cols[colsIndex];
- //consequent
-
- var cons = thisline.consequent;
- if (cons.start.line > lineNum){
- branchStack.unshift([thisline.alternate,thisline]);
- branchStack.unshift([cons,thisline]);
- src = escapeInvalidXmlChars(src);
- }else{
- var style = "<span class='" + (isBranchFollowed(thisline,true) ? 'branchOkay' : 'branchWarning') + "'>";
- newsrc += escapeInvalidXmlChars(src.slice(0,cons.start.column-offset)) + style;
-
- if (cols.length > colsIndex+1 &&
- cols[colsIndex+1].consequent.start.line === lineNum &&
- cols[colsIndex+1].consequent.start.column-offset < cols[colsIndex].consequent.end.column-offset)
- {
- var res = branchReport(colsIndex+1,src.slice(cons.start.column-offset,cons.end.column-offset),cols,cons.start.column-offset,lineNum);
- newsrc += res.src;
- cols = res.cols;
- cols[colsIndex+1] = cols[colsIndex+2];
- cols.length--;
- }else{
- newsrc += escapeInvalidXmlChars(src.slice(cons.start.column-offset,cons.end.column-offset));
- }
- newsrc += "</span>";
-
- var alt = thisline.alternate;
- if (alt.start.line > lineNum){
- newsrc += escapeInvalidXmlChars(src.slice(cons.end.column-offset));
- branchStack.unshift([alt,thisline]);
- }else{
- newsrc += escapeInvalidXmlChars(src.slice(cons.end.column-offset,alt.start.column-offset));
- style = "<span class='" + (isBranchFollowed(thisline,false) ? 'branchOkay' : 'branchWarning') + "'>";
- newsrc += style;
- if (cols.length > colsIndex+1 &&
- cols[colsIndex+1].consequent.start.line === lineNum &&
- cols[colsIndex+1].consequent.start.column-offset < cols[colsIndex].alternate.end.column-offset)
- {
- var res2 = branchReport(colsIndex+1,src.slice(alt.start.column-offset,alt.end.column-offset),cols,alt.start.column-offset,lineNum);
- newsrc += res2.src;
- cols = res2.cols;
- cols[colsIndex+1] = cols[colsIndex+2];
- cols.length--;
- }else{
- newsrc += escapeInvalidXmlChars(src.slice(alt.start.column-offset,alt.end.column-offset));
- }
- newsrc += "</span>";
- newsrc += escapeInvalidXmlChars(src.slice(alt.end.column-offset));
- src = newsrc;
- }
- }
- return {src:src+postfix, cols:cols};
- }
-
- var isUndefined = function(item){
- return typeof item !== 'undefined';
- };
-
- var files = coverage.files;
- var totals = {
- totalSmts: 0,
- numberOfFilesCovered: 0,
- passedBranches: 0,
- totalBranches: 0,
- moduleTotalStatements : {},
- moduleTotalCoveredStatements : {},
- moduleTotalBranches : {},
- moduleTotalCoveredBranches : {}
- };
-
- // check if a data-cover-modulepattern was provided for per-module coverage reporting
- var modulePattern = _blanket.options("modulePattern");
- var modulePatternRegex = ( modulePattern ? new RegExp(modulePattern) : null );
-
- for(var file in files)
- {
- if (!files.hasOwnProperty(file)) {
- continue;
- }
-
- fileNumber++;
-
- var statsForFile = files[file],
- totalSmts = 0,
- numberOfFilesCovered = 0,
- code = [],
- i;
-
-
- var end = [];
- for(i = 0; i < statsForFile.source.length; i +=1){
- var src = statsForFile.source[i];
-
- if (branchStack.length > 0 ||
- typeof statsForFile.branchData !== 'undefined')
- {
- if (typeof statsForFile.branchData[i+1] !== 'undefined')
- {
- var cols = statsForFile.branchData[i+1].filter(isUndefined);
- var colsIndex=0;
-
-
- src = branchReport(colsIndex,src,cols,0,i+1).src;
-
- }else if (branchStack.length){
- src = branchReport(0,src,null,0,i+1).src;
- }else{
- src = escapeInvalidXmlChars(src);
- }
- }else{
- src = escapeInvalidXmlChars(src);
- }
- var lineClass="";
- if(statsForFile[i+1]) {
- numberOfFilesCovered += 1;
- totalSmts += 1;
- lineClass = 'hit';
- }else{
- if(statsForFile[i+1] === 0){
- totalSmts++;
- lineClass = 'miss';
- }
- }
- code[i + 1] = "<div class='"+lineClass+"'><span class=''>"+(i + 1)+"</span>"+src+"</div>";
- }
- totals.totalSmts += totalSmts;
- totals.numberOfFilesCovered += numberOfFilesCovered;
- var totalBranches=0;
- var passedBranches=0;
- if (typeof statsForFile.branchData !== 'undefined'){
- for(var j=0;j<statsForFile.branchData.length;j++){
- if (typeof statsForFile.branchData[j] !== 'undefined'){
- for(var k=0;k<statsForFile.branchData[j].length;k++){
- if (typeof statsForFile.branchData[j][k] !== 'undefined'){
- totalBranches++;
- if (typeof statsForFile.branchData[j][k][0] !== 'undefined' &&
- statsForFile.branchData[j][k][0].length > 0 &&
- typeof statsForFile.branchData[j][k][1] !== 'undefined' &&
- statsForFile.branchData[j][k][1].length > 0){
- passedBranches++;
- }
- }
- }
- }
- }
- }
- totals.passedBranches += passedBranches;
- totals.totalBranches += totalBranches;
-
- // if "data-cover-modulepattern" was provided,
- // track totals per module name as well as globally
- if (modulePatternRegex) {
- var moduleName = file.match(modulePatternRegex)[1];
-
- if(!totals.moduleTotalStatements.hasOwnProperty(moduleName)) {
- totals.moduleTotalStatements[moduleName] = 0;
- totals.moduleTotalCoveredStatements[moduleName] = 0;
- }
-
- totals.moduleTotalStatements[moduleName] += totalSmts;
- totals.moduleTotalCoveredStatements[moduleName] += numberOfFilesCovered;
-
- if(!totals.moduleTotalBranches.hasOwnProperty(moduleName)) {
- totals.moduleTotalBranches[moduleName] = 0;
- totals.moduleTotalCoveredBranches[moduleName] = 0;
- }
-
- totals.moduleTotalBranches[moduleName] += totalBranches;
- totals.moduleTotalCoveredBranches[moduleName] += passedBranches;
- }
-
- var result = percentage(numberOfFilesCovered, totalSmts);
-
- var output = fileTemplate.replace("{{file}}", file)
- .replace("{{percentage}}",result)
- .replace("{{numberCovered}}", numberOfFilesCovered)
- .replace(/\{\{fileNumber\}\}/g, fileNumber)
- .replace("{{totalSmts}}", totalSmts)
- .replace("{{totalBranches}}", totalBranches)
- .replace("{{passedBranches}}", passedBranches)
- .replace("{{source}}", code.join(" "));
- if(result < successRate)
- {
- output = output.replace("{{statusclass}}", "bl-error");
- } else {
- output = output.replace("{{statusclass}}", "bl-success");
- }
- bodyContent += output;
- }
-
- // create temporary function for use by the global totals reporter,
- // as well as the per-module totals reporter
- var createAggregateTotal = function(numSt, numCov, numBranch, numCovBr, moduleName) {
-
- var totalPercent = percentage(numCov, numSt);
- var statusClass = totalPercent < successRate ? "bl-error" : "bl-success";
- var rowTitle = ( moduleName ? "Total for module: " + moduleName : "Global total" );
- var totalsOutput = grandTotalTemplate.replace("{{rowTitle}}", rowTitle)
- .replace("{{percentage}}", totalPercent)
- .replace("{{numberCovered}}", numCov)
- .replace("{{totalSmts}}", numSt)
- .replace("{{passedBranches}}", numCovBr)
- .replace("{{totalBranches}}", numBranch)
- .replace("{{statusclass}}", statusClass);
-
- bodyContent += totalsOutput;
- };
-
- // if "data-cover-modulepattern" was provided,
- // output the per-module totals alongside the global totals
- if (modulePatternRegex) {
- for (var thisModuleName in totals.moduleTotalStatements) {
- if (totals.moduleTotalStatements.hasOwnProperty(thisModuleName)) {
-
- var moduleTotalSt = totals.moduleTotalStatements[thisModuleName];
- var moduleTotalCovSt = totals.moduleTotalCoveredStatements[thisModuleName];
-
- var moduleTotalBr = totals.moduleTotalBranches[thisModuleName];
- var moduleTotalCovBr = totals.moduleTotalCoveredBranches[thisModuleName];
-
- createAggregateTotal(moduleTotalSt, moduleTotalCovSt, moduleTotalBr, moduleTotalCovBr, thisModuleName);
- }
- }
- }
-
- createAggregateTotal(totals.totalSmts, totals.numberOfFilesCovered, totals.totalBranches, totals.passedBranches, null);
- bodyContent += "</div>"; //closing main
-
-
- appendTag('style', head, cssSytle);
- //appendStyle(body, headerContent);
- if (document.getElementById("blanket-main")){
- document.getElementById("blanket-main").innerHTML=
- bodyContent.slice(23,-6);
- }else{
- appendTag('div', body, bodyContent);
- }
- //appendHtml(body, '</div>');
-};
-
-(function(){
- var newOptions={};
- //http://stackoverflow.com/a/2954896
- var toArray =Array.prototype.slice;
- var scripts = toArray.call(document.scripts);
- toArray.call(scripts[scripts.length - 1].attributes)
- .forEach(function(es){
- if(es.nodeName === "data-cover-only"){
- newOptions.filter = es.nodeValue;
- }
- if(es.nodeName === "data-cover-never"){
- newOptions.antifilter = es.nodeValue;
- }
- if(es.nodeName === "data-cover-reporter"){
- newOptions.reporter = es.nodeValue;
- }
- if (es.nodeName === "data-cover-adapter"){
- newOptions.adapter = es.nodeValue;
- }
- if (es.nodeName === "data-cover-loader"){
- newOptions.loader = es.nodeValue;
- }
- if (es.nodeName === "data-cover-timeout"){
- newOptions.timeout = es.nodeValue;
- }
- if (es.nodeName === "data-cover-modulepattern") {
- newOptions.modulePattern = es.nodeValue;
- }
- if (es.nodeName === "data-cover-reporter-options"){
- try{
- newOptions.reporter_options = JSON.parse(es.nodeValue);
- }catch(e){
- if (blanket.options("debug")){
- throw new Error("Invalid reporter options. Must be a valid stringified JSON object.");
- }
- }
- }
- if (es.nodeName === "data-cover-testReadyCallback"){
- newOptions.testReadyCallback = es.nodeValue;
- }
- if (es.nodeName === "data-cover-customVariable"){
- newOptions.customVariable = es.nodeValue;
- }
- if (es.nodeName === "data-cover-flags"){
- var flags = " "+es.nodeValue+" ";
- if (flags.indexOf(" ignoreError ") > -1){
- newOptions.ignoreScriptError = true;
- }
- if (flags.indexOf(" autoStart ") > -1){
- newOptions.autoStart = true;
- }
- if (flags.indexOf(" ignoreCors ") > -1){
- newOptions.ignoreCors = true;
- }
- if (flags.indexOf(" branchTracking ") > -1){
- newOptions.branchTracking = true;
- }
- if (flags.indexOf(" sourceURL ") > -1){
- newOptions.sourceURL = true;
- }
- if (flags.indexOf(" debug ") > -1){
- newOptions.debug = true;
- }
- if (flags.indexOf(" engineOnly ") > -1){
- newOptions.engineOnly = true;
- }
- if (flags.indexOf(" commonJS ") > -1){
- newOptions.commonJS = true;
- }
- if (flags.indexOf(" instrumentCache ") > -1){
- newOptions.instrumentCache = true;
- }
- }
- });
- blanket.options(newOptions);
-
- if (typeof requirejs !== 'undefined'){
- blanket.options("existingRequireJS",true);
- }
- /* setup requirejs loader, if needed */
-
- if (blanket.options("commonJS")){
- blanket._commonjs = {};
- }
-})();
-(function(_blanket){
-_blanket.extend({
- utils: {
- normalizeBackslashes: function(str) {
- return str.replace(/\\/g, '/');
- },
- matchPatternAttribute: function(filename,pattern){
- if (typeof pattern === 'string'){
- if (pattern.indexOf("[") === 0){
- //treat as array
- var pattenArr = pattern.slice(1,pattern.length-1).split(",");
- return pattenArr.some(function(elem){
- return _blanket.utils.matchPatternAttribute(filename,_blanket.utils.normalizeBackslashes(elem.slice(1,-1)));
- //return filename.indexOf(_blanket.utils.normalizeBackslashes(elem.slice(1,-1))) > -1;
- });
- }else if ( pattern.indexOf("//") === 0){
- var ex = pattern.slice(2,pattern.lastIndexOf('/'));
- var mods = pattern.slice(pattern.lastIndexOf('/')+1);
- var regex = new RegExp(ex,mods);
- return regex.test(filename);
- }else if (pattern.indexOf("#") === 0){
- return window[pattern.slice(1)].call(window,filename);
- }else{
- return filename.indexOf(_blanket.utils.normalizeBackslashes(pattern)) > -1;
- }
- }else if ( pattern instanceof Array ){
- return pattern.some(function(elem){
- return _blanket.utils.matchPatternAttribute(filename,elem);
- });
- }else if (pattern instanceof RegExp){
- return pattern.test(filename);
- }else if (typeof pattern === "function"){
- return pattern.call(window,filename);
- }
- },
- blanketEval: function(data){
- _blanket._addScript(data);
- },
- collectPageScripts: function(){
- var toArray = Array.prototype.slice;
- var scripts = toArray.call(document.scripts);
- var selectedScripts=[],scriptNames=[];
- var filter = _blanket.options("filter");
- if(filter != null){
- //global filter in place, data-cover-only
- var antimatch = _blanket.options("antifilter");
- selectedScripts = toArray.call(document.scripts)
- .filter(function(s){
- return toArray.call(s.attributes).filter(function(sn){
- return sn.nodeName === "src" && _blanket.utils.matchPatternAttribute(sn.nodeValue,filter) &&
- (typeof antimatch === "undefined" || !_blanket.utils.matchPatternAttribute(sn.nodeValue,antimatch));
- }).length === 1;
- });
- }else{
- selectedScripts = toArray.call(document.querySelectorAll("script[data-cover]"));
- }
- scriptNames = selectedScripts.map(function(s){
- return _blanket.utils.qualifyURL(
- toArray.call(s.attributes).filter(
- function(sn){
- return sn.nodeName === "src";
- })[0].nodeValue);
- });
- if (!filter){
- _blanket.options("filter","['"+scriptNames.join("','")+"']");
- }
- return scriptNames;
- },
- loadAll: function(nextScript,cb,preprocessor){
- /**
- * load dependencies
- * @param {nextScript} factory for priority level
- * @param {cb} the done callback
- */
- var currScript=nextScript();
- var isLoaded = _blanket.utils.scriptIsLoaded(
- currScript,
- _blanket.utils.ifOrdered,
- nextScript,
- cb
- );
-
- if (!(_blanket.utils.cache[currScript] && _blanket.utils.cache[currScript].loaded)){
- var attach = function(){
- if (_blanket.options("debug")) {console.log("BLANKET-Mark script:"+currScript+", as loaded and move to next script.");}
- isLoaded();
- };
- var whenDone = function(result){
- if (_blanket.options("debug")) {console.log("BLANKET-File loading finished");}
- if (typeof result !== 'undefined'){
- if (_blanket.options("debug")) {console.log("BLANKET-Add file to DOM.");}
- _blanket._addScript(result);
- }
- attach();
- };
-
- _blanket.utils.attachScript(
- {
- url: currScript
- },
- function (content){
- _blanket.utils.processFile(
- content,
- currScript,
- whenDone,
- whenDone
- );
- }
- );
- }else{
- isLoaded();
- }
- },
- attachScript: function(options,cb){
- var timeout = _blanket.options("timeout") || 3000;
- setTimeout(function(){
- if (!_blanket.utils.cache[options.url].loaded){
- throw new Error("error loading source script");
- }
- },timeout);
- _blanket.utils.getFile(
- options.url,
- cb,
- function(){ throw new Error("error loading source script");}
- );
- },
- ifOrdered: function(nextScript,cb){
- /**
- * ordered loading callback
- * @param {nextScript} factory for priority level
- * @param {cb} the done callback
- */
- var currScript = nextScript(true);
- if (currScript){
- _blanket.utils.loadAll(nextScript,cb);
- }else{
- cb(new Error("Error in loading chain."));
- }
- },
- scriptIsLoaded: function(url,orderedCb,nextScript,cb){
- /**
- * returns a callback that checks a loading list to see if a script is loaded.
- * @param {orderedCb} callback if ordered loading is being done
- * @param {nextScript} factory for next priority level
- * @param {cb} the done callback
- */
- if (_blanket.options("debug")) {console.log("BLANKET-Returning function");}
- return function(){
- if (_blanket.options("debug")) {console.log("BLANKET-Marking file as loaded: "+url);}
-
- _blanket.utils.cache[url].loaded=true;
-
- if (_blanket.utils.allLoaded()){
- if (_blanket.options("debug")) {console.log("BLANKET-All files loaded");}
- cb();
- }else if (orderedCb){
- //if it's ordered we need to
- //traverse down to the next
- //priority level
- if (_blanket.options("debug")) {console.log("BLANKET-Load next file.");}
- orderedCb(nextScript,cb);
- }
- };
- },
- cache: {},
- allLoaded: function (){
- /**
- * check if depdencies are loaded in cache
- */
- var cached = Object.keys(_blanket.utils.cache);
- for (var i=0;i<cached.length;i++){
- if (!_blanket.utils.cache[cached[i]].loaded){
- return false;
- }
- }
- return true;
- },
- processFile: function (content,url,cb,oldCb) {
- var match = _blanket.options("filter");
- //we check the never matches first
- var antimatch = _blanket.options("antifilter");
- if (typeof antimatch !== "undefined" &&
- _blanket.utils.matchPatternAttribute(url,antimatch)
- ){
- oldCb(content);
- if (_blanket.options("debug")) {console.log("BLANKET-File will never be instrumented:"+url);}
- _blanket.requiringFile(url,true);
- }else if (_blanket.utils.matchPatternAttribute(url,match)){
- if (_blanket.options("debug")) {console.log("BLANKET-Attempting instrument of:"+url);}
- _blanket.instrument({
- inputFile: content,
- inputFileName: url
- },function(instrumented){
- try{
- if (_blanket.options("debug")) {console.log("BLANKET-instrument of:"+url+" was successfull.");}
- _blanket.utils.blanketEval(instrumented);
- cb();
- _blanket.requiringFile(url,true);
- }
- catch(err){
- if (_blanket.options("ignoreScriptError")){
- //we can continue like normal if
- //we're ignoring script errors,
- //but otherwise we don't want
- //to completeLoad or the error might be
- //missed.
- if (_blanket.options("debug")) { console.log("BLANKET-There was an error loading the file:"+url); }
- cb(content);
- _blanket.requiringFile(url,true);
- }else{
- throw new Error("Error parsing instrumented code: "+err);
- }
- }
- });
- }else{
- if (_blanket.options("debug")) { console.log("BLANKET-Loading (without instrumenting) the file:"+url);}
- oldCb(content);
- _blanket.requiringFile(url,true);
- }
-
- },
- cacheXhrConstructor: function(){
- var Constructor, createXhr, i, progId;
- if (typeof XMLHttpRequest !== "undefined") {
- Constructor = XMLHttpRequest;
- this.createXhr = function() { return new Constructor(); };
- } else if (typeof ActiveXObject !== "undefined") {
- Constructor = ActiveXObject;
- for (i = 0; i < 3; i += 1) {
- progId = progIds[i];
- try {
- new ActiveXObject(progId);
- break;
- } catch (e) {}
- }
- this.createXhr = function() { return new Constructor(progId); };
- }
- },
- craeteXhr: function () {
- throw new Error("cacheXhrConstructor is supposed to overwrite this function.");
- },
- getFile: function(url, callback, errback, onXhr){
- var foundInSession = false;
- if (_blanket.blanketSession){
- var files = Object.keys(_blanket.blanketSession);
- for (var i=0; i<files.length;i++ ){
- var key = files[i];
- if (url.indexOf(key) > -1){
- callback(_blanket.blanketSession[key]);
- foundInSession=true;
- return;
- }
- }
- }
- if (!foundInSession){
- var xhr = _blanket.utils.createXhr();
- xhr.open('GET', url, true);
-
- //Allow overrides specified in config
- if (onXhr) {
- onXhr(xhr, url);
- }
-
- xhr.onreadystatechange = function (evt) {
- var status, err;
-
- //Do not explicitly handle errors, those should be
- //visible via console output in the browser.
- if (xhr.readyState === 4) {
- status = xhr.status;
- if ((status > 399 && status < 600) /*||
- (status === 0 &&
- navigator.userAgent.toLowerCase().indexOf('firefox') > -1)
- */ ) {
- //An http 4xx or 5xx error. Signal an error.
- err = new Error(url + ' HTTP status: ' + status);
- err.xhr = xhr;
- errback(err);
- } else {
- callback(xhr.responseText);
- }
- }
- };
- try{
- xhr.send(null);
- }catch(e){
- if (e.code && (e.code === 101 || e.code === 1012) && _blanket.options("ignoreCors") === false){
- //running locally and getting error from browser
- _blanket.showManualLoader();
- } else {
- throw e;
- }
- }
- }
- }
- }
-});
-
-(function(){
- var require = blanket.options("commonJS") ? blanket._commonjs.require : window.require;
- var requirejs = blanket.options("commonJS") ? blanket._commonjs.requirejs : window.requirejs;
- if (!_blanket.options("engineOnly") && _blanket.options("existingRequireJS")){
-
- _blanket.utils.oldloader = requirejs.load;
-
- requirejs.load = function (context, moduleName, url) {
- _blanket.requiringFile(url);
- _blanket.utils.getFile(url,
- function(content){
- _blanket.utils.processFile(
- content,
- url,
- function newLoader(){
- context.completeLoad(moduleName);
- },
- function oldLoader(){
- _blanket.utils.oldloader(context, moduleName, url);
- }
- );
- }, function (err) {
- _blanket.requiringFile();
- throw err;
- });
- };
- }
- // Save the XHR constructor, just in case frameworks like Sinon would sandbox it.
- _blanket.utils.cacheXhrConstructor();
-})();
-
-})(blanket);
-
-(function(){
-if (typeof QUnit !== 'undefined'){
- //check to make sure requirejs is completed before we start the test runner
- var allLoaded = function() {
- return window.QUnit.config.queue.length > 0 && blanket.noConflict().requireFilesLoaded();
- };
-
- if (!QUnit.config.urlConfig[0].tooltip){
- //older versions we run coverage automatically
- //and we change how events are binded
- QUnit.begin=function(){
- blanket.noConflict().setupCoverage();
- };
-
- QUnit.done=function(failures, total) {
- blanket.noConflict().onTestsDone();
- };
- QUnit.moduleStart=function( details ) {
- blanket.noConflict().onModuleStart();
- };
- QUnit.testStart=function( details ) {
- blanket.noConflict().onTestStart();
- };
- QUnit.testDone=function( details ) {
- blanket.noConflict().onTestDone(details.total,details.passed);
- };
- blanket.beforeStartTestRunner({
- condition: allLoaded,
- callback: QUnit.start
- });
- }else{
- QUnit.config.urlConfig.push({
- id: "coverage",
- label: "Enable coverage",
- tooltip: "Enable code coverage."
- });
-
- if ( QUnit.urlParams.coverage || blanket.options("autoStart") ) {
- QUnit.begin(function(){
- blanket.noConflict().setupCoverage();
- });
-
- QUnit.done(function(failures, total) {
- blanket.noConflict().onTestsDone();
- });
- QUnit.moduleStart(function( details ) {
- blanket.noConflict().onModuleStart();
- });
- QUnit.testStart(function( details ) {
- blanket.noConflict().onTestStart();
- });
- QUnit.testDone(function( details ) {
- blanket.noConflict().onTestDone(details.total,details.passed);
- });
- blanket.noConflict().beforeStartTestRunner({
- condition: allLoaded,
- callback: function(){
- if (!(blanket.options("existingRequireJS") && !blanket.options("autoStart"))){
- QUnit.start();
- }
- }
- });
- }else{
- if (blanket.options("existingRequireJS")){ requirejs.load = _blanket.utils.oldloader; }
- blanket.noConflict().beforeStartTestRunner({
- condition: allLoaded,
- callback: function(){
- if (!(blanket.options("existingRequireJS") && !blanket.options("autoStart"))){
- QUnit.start();
- }
- },
- coverage:false
- });
- }
- }
-}
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css
deleted file mode 100644
index 5e394019..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Bootstrap v3.3.7 (http://getbootstrap.com)
- * Copyright 2011-2016 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{-webkit-box-shadow:none;box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-o-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(to bottom,#337ab7 0,#286090 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(to bottom,#337ab7 0,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)}
-/*# sourceMappingURL=bootstrap-theme.min.css.map */ \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/css/bootstrap.min.css b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/css/bootstrap.min.css
deleted file mode 100644
index ed3905e0..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/css/bootstrap.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Bootstrap v3.3.7 (http://getbootstrap.com)
- * Copyright 2011-2016 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}
-/*# sourceMappingURL=bootstrap.min.css.map */ \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
deleted file mode 100644
index b93a4953..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg
deleted file mode 100644
index 94fb5490..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg
+++ /dev/null
@@ -1,288 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata></metadata>
-<defs>
-<font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
-<font-face units-per-em="1200" ascent="960" descent="-240" />
-<missing-glyph horiz-adv-x="500" />
-<glyph horiz-adv-x="0" />
-<glyph horiz-adv-x="400" />
-<glyph unicode=" " />
-<glyph unicode="*" d="M600 1100q15 0 34 -1.5t30 -3.5l11 -1q10 -2 17.5 -10.5t7.5 -18.5v-224l158 158q7 7 18 8t19 -6l106 -106q7 -8 6 -19t-8 -18l-158 -158h224q10 0 18.5 -7.5t10.5 -17.5q6 -41 6 -75q0 -15 -1.5 -34t-3.5 -30l-1 -11q-2 -10 -10.5 -17.5t-18.5 -7.5h-224l158 -158 q7 -7 8 -18t-6 -19l-106 -106q-8 -7 -19 -6t-18 8l-158 158v-224q0 -10 -7.5 -18.5t-17.5 -10.5q-41 -6 -75 -6q-15 0 -34 1.5t-30 3.5l-11 1q-10 2 -17.5 10.5t-7.5 18.5v224l-158 -158q-7 -7 -18 -8t-19 6l-106 106q-7 8 -6 19t8 18l158 158h-224q-10 0 -18.5 7.5 t-10.5 17.5q-6 41 -6 75q0 15 1.5 34t3.5 30l1 11q2 10 10.5 17.5t18.5 7.5h224l-158 158q-7 7 -8 18t6 19l106 106q8 7 19 6t18 -8l158 -158v224q0 10 7.5 18.5t17.5 10.5q41 6 75 6z" />
-<glyph unicode="+" d="M450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-350h350q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-350v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v350h-350q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5 h350v350q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xa0;" />
-<glyph unicode="&#xa5;" d="M825 1100h250q10 0 12.5 -5t-5.5 -13l-364 -364q-6 -6 -11 -18h268q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-100h275q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-174q0 -11 -7.5 -18.5t-18.5 -7.5h-148q-11 0 -18.5 7.5t-7.5 18.5v174 h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h125v100h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h118q-5 12 -11 18l-364 364q-8 8 -5.5 13t12.5 5h250q25 0 43 -18l164 -164q8 -8 18 -8t18 8l164 164q18 18 43 18z" />
-<glyph unicode="&#x2000;" horiz-adv-x="650" />
-<glyph unicode="&#x2001;" horiz-adv-x="1300" />
-<glyph unicode="&#x2002;" horiz-adv-x="650" />
-<glyph unicode="&#x2003;" horiz-adv-x="1300" />
-<glyph unicode="&#x2004;" horiz-adv-x="433" />
-<glyph unicode="&#x2005;" horiz-adv-x="325" />
-<glyph unicode="&#x2006;" horiz-adv-x="216" />
-<glyph unicode="&#x2007;" horiz-adv-x="216" />
-<glyph unicode="&#x2008;" horiz-adv-x="162" />
-<glyph unicode="&#x2009;" horiz-adv-x="260" />
-<glyph unicode="&#x200a;" horiz-adv-x="72" />
-<glyph unicode="&#x202f;" horiz-adv-x="260" />
-<glyph unicode="&#x205f;" horiz-adv-x="325" />
-<glyph unicode="&#x20ac;" d="M744 1198q242 0 354 -189q60 -104 66 -209h-181q0 45 -17.5 82.5t-43.5 61.5t-58 40.5t-60.5 24t-51.5 7.5q-19 0 -40.5 -5.5t-49.5 -20.5t-53 -38t-49 -62.5t-39 -89.5h379l-100 -100h-300q-6 -50 -6 -100h406l-100 -100h-300q9 -74 33 -132t52.5 -91t61.5 -54.5t59 -29 t47 -7.5q22 0 50.5 7.5t60.5 24.5t58 41t43.5 61t17.5 80h174q-30 -171 -128 -278q-107 -117 -274 -117q-206 0 -324 158q-36 48 -69 133t-45 204h-217l100 100h112q1 47 6 100h-218l100 100h134q20 87 51 153.5t62 103.5q117 141 297 141z" />
-<glyph unicode="&#x20bd;" d="M428 1200h350q67 0 120 -13t86 -31t57 -49.5t35 -56.5t17 -64.5t6.5 -60.5t0.5 -57v-16.5v-16.5q0 -36 -0.5 -57t-6.5 -61t-17 -65t-35 -57t-57 -50.5t-86 -31.5t-120 -13h-178l-2 -100h288q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-138v-175q0 -11 -5.5 -18 t-15.5 -7h-149q-10 0 -17.5 7.5t-7.5 17.5v175h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v100h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v475q0 10 7.5 17.5t17.5 7.5zM600 1000v-300h203q64 0 86.5 33t22.5 119q0 84 -22.5 116t-86.5 32h-203z" />
-<glyph unicode="&#x2212;" d="M250 700h800q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#x231b;" d="M1000 1200v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-50v-100q0 -91 -49.5 -165.5t-130.5 -109.5q81 -35 130.5 -109.5t49.5 -165.5v-150h50q21 0 35.5 -14.5t14.5 -35.5v-150h-800v150q0 21 14.5 35.5t35.5 14.5h50v150q0 91 49.5 165.5t130.5 109.5q-81 35 -130.5 109.5 t-49.5 165.5v100h-50q-21 0 -35.5 14.5t-14.5 35.5v150h800zM400 1000v-100q0 -60 32.5 -109.5t87.5 -73.5q28 -12 44 -37t16 -55t-16 -55t-44 -37q-55 -24 -87.5 -73.5t-32.5 -109.5v-150h400v150q0 60 -32.5 109.5t-87.5 73.5q-28 12 -44 37t-16 55t16 55t44 37 q55 24 87.5 73.5t32.5 109.5v100h-400z" />
-<glyph unicode="&#x25fc;" horiz-adv-x="500" d="M0 0z" />
-<glyph unicode="&#x2601;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -206.5q0 -121 -85 -207.5t-205 -86.5h-750q-79 0 -135.5 57t-56.5 137q0 69 42.5 122.5t108.5 67.5q-2 12 -2 37q0 153 108 260.5t260 107.5z" />
-<glyph unicode="&#x26fa;" d="M774 1193.5q16 -9.5 20.5 -27t-5.5 -33.5l-136 -187l467 -746h30q20 0 35 -18.5t15 -39.5v-42h-1200v42q0 21 15 39.5t35 18.5h30l468 746l-135 183q-10 16 -5.5 34t20.5 28t34 5.5t28 -20.5l111 -148l112 150q9 16 27 20.5t34 -5zM600 200h377l-182 112l-195 534v-646z " />
-<glyph unicode="&#x2709;" d="M25 1100h1150q10 0 12.5 -5t-5.5 -13l-564 -567q-8 -8 -18 -8t-18 8l-564 567q-8 8 -5.5 13t12.5 5zM18 882l264 -264q8 -8 8 -18t-8 -18l-264 -264q-8 -8 -13 -5.5t-5 12.5v550q0 10 5 12.5t13 -5.5zM918 618l264 264q8 8 13 5.5t5 -12.5v-550q0 -10 -5 -12.5t-13 5.5 l-264 264q-8 8 -8 18t8 18zM818 482l364 -364q8 -8 5.5 -13t-12.5 -5h-1150q-10 0 -12.5 5t5.5 13l364 364q8 8 18 8t18 -8l164 -164q8 -8 18 -8t18 8l164 164q8 8 18 8t18 -8z" />
-<glyph unicode="&#x270f;" d="M1011 1210q19 0 33 -13l153 -153q13 -14 13 -33t-13 -33l-99 -92l-214 214l95 96q13 14 32 14zM1013 800l-615 -614l-214 214l614 614zM317 96l-333 -112l110 335z" />
-<glyph unicode="&#xe001;" d="M700 650v-550h250q21 0 35.5 -14.5t14.5 -35.5v-50h-800v50q0 21 14.5 35.5t35.5 14.5h250v550l-500 550h1200z" />
-<glyph unicode="&#xe002;" d="M368 1017l645 163q39 15 63 0t24 -49v-831q0 -55 -41.5 -95.5t-111.5 -63.5q-79 -25 -147 -4.5t-86 75t25.5 111.5t122.5 82q72 24 138 8v521l-600 -155v-606q0 -42 -44 -90t-109 -69q-79 -26 -147 -5.5t-86 75.5t25.5 111.5t122.5 82.5q72 24 138 7v639q0 38 14.5 59 t53.5 34z" />
-<glyph unicode="&#xe003;" d="M500 1191q100 0 191 -39t156.5 -104.5t104.5 -156.5t39 -191l-1 -2l1 -5q0 -141 -78 -262l275 -274q23 -26 22.5 -44.5t-22.5 -42.5l-59 -58q-26 -20 -46.5 -20t-39.5 20l-275 274q-119 -77 -261 -77l-5 1l-2 -1q-100 0 -191 39t-156.5 104.5t-104.5 156.5t-39 191 t39 191t104.5 156.5t156.5 104.5t191 39zM500 1022q-88 0 -162 -43t-117 -117t-43 -162t43 -162t117 -117t162 -43t162 43t117 117t43 162t-43 162t-117 117t-162 43z" />
-<glyph unicode="&#xe005;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104z" />
-<glyph unicode="&#xe006;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429z" />
-<glyph unicode="&#xe007;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429zM477 700h-240l197 -142l-74 -226 l193 139l195 -140l-74 229l192 140h-234l-78 211z" />
-<glyph unicode="&#xe008;" d="M600 1200q124 0 212 -88t88 -212v-250q0 -46 -31 -98t-69 -52v-75q0 -10 6 -21.5t15 -17.5l358 -230q9 -5 15 -16.5t6 -21.5v-93q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v93q0 10 6 21.5t15 16.5l358 230q9 6 15 17.5t6 21.5v75q-38 0 -69 52 t-31 98v250q0 124 88 212t212 88z" />
-<glyph unicode="&#xe009;" d="M25 1100h1150q10 0 17.5 -7.5t7.5 -17.5v-1050q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v1050q0 10 7.5 17.5t17.5 7.5zM100 1000v-100h100v100h-100zM875 1000h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5t17.5 -7.5h550 q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM1000 1000v-100h100v100h-100zM100 800v-100h100v100h-100zM1000 800v-100h100v100h-100zM100 600v-100h100v100h-100zM1000 600v-100h100v100h-100zM875 500h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5 t17.5 -7.5h550q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM100 400v-100h100v100h-100zM1000 400v-100h100v100h-100zM100 200v-100h100v100h-100zM1000 200v-100h100v100h-100z" />
-<glyph unicode="&#xe010;" d="M50 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM50 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe011;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM850 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 700h200q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h200 q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5 t35.5 14.5z" />
-<glyph unicode="&#xe012;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h700q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe013;" d="M465 477l571 571q8 8 18 8t17 -8l177 -177q8 -7 8 -17t-8 -18l-783 -784q-7 -8 -17.5 -8t-17.5 8l-384 384q-8 8 -8 18t8 17l177 177q7 8 17 8t18 -8l171 -171q7 -7 18 -7t18 7z" />
-<glyph unicode="&#xe014;" d="M904 1083l178 -179q8 -8 8 -18.5t-8 -17.5l-267 -268l267 -268q8 -7 8 -17.5t-8 -18.5l-178 -178q-8 -8 -18.5 -8t-17.5 8l-268 267l-268 -267q-7 -8 -17.5 -8t-18.5 8l-178 178q-8 8 -8 18.5t8 17.5l267 268l-267 268q-8 7 -8 17.5t8 18.5l178 178q8 8 18.5 8t17.5 -8 l268 -267l268 268q7 7 17.5 7t18.5 -7z" />
-<glyph unicode="&#xe015;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM425 900h150q10 0 17.5 -7.5t7.5 -17.5v-75h75q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5 t-17.5 -7.5h-75v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-75q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v75q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe016;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM325 800h350q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-350q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe017;" d="M550 1200h100q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM800 975v166q167 -62 272 -209.5t105 -331.5q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5 t-184.5 123t-123 184.5t-45.5 224q0 184 105 331.5t272 209.5v-166q-103 -55 -165 -155t-62 -220q0 -116 57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5q0 120 -62 220t-165 155z" />
-<glyph unicode="&#xe018;" d="M1025 1200h150q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM725 800h150q10 0 17.5 -7.5t7.5 -17.5v-750q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v750 q0 10 7.5 17.5t17.5 7.5zM425 500h150q10 0 17.5 -7.5t7.5 -17.5v-450q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v450q0 10 7.5 17.5t17.5 7.5zM125 300h150q10 0 17.5 -7.5t7.5 -17.5v-250q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5 v250q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe019;" d="M600 1174q33 0 74 -5l38 -152l5 -1q49 -14 94 -39l5 -2l134 80q61 -48 104 -105l-80 -134l3 -5q25 -44 39 -93l1 -6l152 -38q5 -43 5 -73q0 -34 -5 -74l-152 -38l-1 -6q-15 -49 -39 -93l-3 -5l80 -134q-48 -61 -104 -105l-134 81l-5 -3q-44 -25 -94 -39l-5 -2l-38 -151 q-43 -5 -74 -5q-33 0 -74 5l-38 151l-5 2q-49 14 -94 39l-5 3l-134 -81q-60 48 -104 105l80 134l-3 5q-25 45 -38 93l-2 6l-151 38q-6 42 -6 74q0 33 6 73l151 38l2 6q13 48 38 93l3 5l-80 134q47 61 105 105l133 -80l5 2q45 25 94 39l5 1l38 152q43 5 74 5zM600 815 q-89 0 -152 -63t-63 -151.5t63 -151.5t152 -63t152 63t63 151.5t-63 151.5t-152 63z" />
-<glyph unicode="&#xe020;" d="M500 1300h300q41 0 70.5 -29.5t29.5 -70.5v-100h275q10 0 17.5 -7.5t7.5 -17.5v-75h-1100v75q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5zM500 1200v-100h300v100h-300zM1100 900v-800q0 -41 -29.5 -70.5t-70.5 -29.5h-700q-41 0 -70.5 29.5t-29.5 70.5 v800h900zM300 800v-700h100v700h-100zM500 800v-700h100v700h-100zM700 800v-700h100v700h-100zM900 800v-700h100v700h-100z" />
-<glyph unicode="&#xe021;" d="M18 618l620 608q8 7 18.5 7t17.5 -7l608 -608q8 -8 5.5 -13t-12.5 -5h-175v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v375h-300v-375q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v575h-175q-10 0 -12.5 5t5.5 13z" />
-<glyph unicode="&#xe022;" d="M600 1200v-400q0 -41 29.5 -70.5t70.5 -29.5h300v-650q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5h450zM1000 800h-250q-21 0 -35.5 14.5t-14.5 35.5v250z" />
-<glyph unicode="&#xe023;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h50q10 0 17.5 -7.5t7.5 -17.5v-275h175q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe024;" d="M1300 0h-538l-41 400h-242l-41 -400h-538l431 1200h209l-21 -300h162l-20 300h208zM515 800l-27 -300h224l-27 300h-170z" />
-<glyph unicode="&#xe025;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-450h191q20 0 25.5 -11.5t-7.5 -27.5l-327 -400q-13 -16 -32 -16t-32 16l-327 400q-13 16 -7.5 27.5t25.5 11.5h191v450q0 21 14.5 35.5t35.5 14.5zM1125 400h50q10 0 17.5 -7.5t7.5 -17.5v-350q0 -10 -7.5 -17.5t-17.5 -7.5 h-1050q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h50q10 0 17.5 -7.5t7.5 -17.5v-175h900v175q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe026;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -275q-13 -16 -32 -16t-32 16l-223 275q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z " />
-<glyph unicode="&#xe027;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM632 914l223 -275q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5l223 275q13 16 32 16 t32 -16z" />
-<glyph unicode="&#xe028;" d="M225 1200h750q10 0 19.5 -7t12.5 -17l186 -652q7 -24 7 -49v-425q0 -12 -4 -27t-9 -17q-12 -6 -37 -6h-1100q-12 0 -27 4t-17 8q-6 13 -6 38l1 425q0 25 7 49l185 652q3 10 12.5 17t19.5 7zM878 1000h-556q-10 0 -19 -7t-11 -18l-87 -450q-2 -11 4 -18t16 -7h150 q10 0 19.5 -7t11.5 -17l38 -152q2 -10 11.5 -17t19.5 -7h250q10 0 19.5 7t11.5 17l38 152q2 10 11.5 17t19.5 7h150q10 0 16 7t4 18l-87 450q-2 11 -11 18t-19 7z" />
-<glyph unicode="&#xe029;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM540 820l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
-<glyph unicode="&#xe030;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-362q0 -10 -7.5 -17.5t-17.5 -7.5h-362q-11 0 -13 5.5t5 12.5l133 133q-109 76 -238 76q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5h150q0 -117 -45.5 -224 t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117z" />
-<glyph unicode="&#xe031;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-361q0 -11 -7.5 -18.5t-18.5 -7.5h-361q-11 0 -13 5.5t5 12.5l134 134q-110 75 -239 75q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5h-150q0 117 45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117zM1027 600h150 q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5q-192 0 -348 118l-134 -134q-7 -8 -12.5 -5.5t-5.5 12.5v360q0 11 7.5 18.5t18.5 7.5h360q10 0 12.5 -5.5t-5.5 -12.5l-133 -133q110 -76 240 -76q116 0 214.5 57t155.5 155.5t57 214.5z" />
-<glyph unicode="&#xe032;" d="M125 1200h1050q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-1050q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM1075 1000h-850q-10 0 -17.5 -7.5t-7.5 -17.5v-850q0 -10 7.5 -17.5t17.5 -7.5h850q10 0 17.5 7.5t7.5 17.5v850 q0 10 -7.5 17.5t-17.5 7.5zM325 900h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 900h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 700h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 700h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 500h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 500h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 300h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 300h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe033;" d="M900 800v200q0 83 -58.5 141.5t-141.5 58.5h-300q-82 0 -141 -59t-59 -141v-200h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h900q41 0 70.5 29.5t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5h-100zM400 800v150q0 21 15 35.5t35 14.5h200 q20 0 35 -14.5t15 -35.5v-150h-300z" />
-<glyph unicode="&#xe034;" d="M125 1100h50q10 0 17.5 -7.5t7.5 -17.5v-1075h-100v1075q0 10 7.5 17.5t17.5 7.5zM1075 1052q4 0 9 -2q16 -6 16 -23v-421q0 -6 -3 -12q-33 -59 -66.5 -99t-65.5 -58t-56.5 -24.5t-52.5 -6.5q-26 0 -57.5 6.5t-52.5 13.5t-60 21q-41 15 -63 22.5t-57.5 15t-65.5 7.5 q-85 0 -160 -57q-7 -5 -15 -5q-6 0 -11 3q-14 7 -14 22v438q22 55 82 98.5t119 46.5q23 2 43 0.5t43 -7t32.5 -8.5t38 -13t32.5 -11q41 -14 63.5 -21t57 -14t63.5 -7q103 0 183 87q7 8 18 8z" />
-<glyph unicode="&#xe035;" d="M600 1175q116 0 227 -49.5t192.5 -131t131 -192.5t49.5 -227v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v300q0 127 -70.5 231.5t-184.5 161.5t-245 57t-245 -57t-184.5 -161.5t-70.5 -231.5v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50 q-10 0 -17.5 7.5t-7.5 17.5v300q0 116 49.5 227t131 192.5t192.5 131t227 49.5zM220 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460q0 8 6 14t14 6zM820 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460 q0 8 6 14t14 6z" />
-<glyph unicode="&#xe036;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM900 668l120 120q7 7 17 7t17 -7l34 -34q7 -7 7 -17t-7 -17l-120 -120l120 -120q7 -7 7 -17 t-7 -17l-34 -34q-7 -7 -17 -7t-17 7l-120 119l-120 -119q-7 -7 -17 -7t-17 7l-34 34q-7 7 -7 17t7 17l119 120l-119 120q-7 7 -7 17t7 17l34 34q7 8 17 8t17 -8z" />
-<glyph unicode="&#xe037;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6 l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238q-6 8 -4.5 18t9.5 17l29 22q7 5 15 5z" />
-<glyph unicode="&#xe038;" d="M967 1004h3q11 -1 17 -10q135 -179 135 -396q0 -105 -34 -206.5t-98 -185.5q-7 -9 -17 -10h-3q-9 0 -16 6l-42 34q-8 6 -9 16t5 18q111 150 111 328q0 90 -29.5 176t-84.5 157q-6 9 -5 19t10 16l42 33q7 5 15 5zM321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5 t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238 q-6 8 -4.5 18.5t9.5 16.5l29 22q7 5 15 5z" />
-<glyph unicode="&#xe039;" d="M500 900h100v-100h-100v-100h-400v-100h-100v600h500v-300zM1200 700h-200v-100h200v-200h-300v300h-200v300h-100v200h600v-500zM100 1100v-300h300v300h-300zM800 1100v-300h300v300h-300zM300 900h-100v100h100v-100zM1000 900h-100v100h100v-100zM300 500h200v-500 h-500v500h200v100h100v-100zM800 300h200v-100h-100v-100h-200v100h-100v100h100v200h-200v100h300v-300zM100 400v-300h300v300h-300zM300 200h-100v100h100v-100zM1200 200h-100v100h100v-100zM700 0h-100v100h100v-100zM1200 0h-300v100h300v-100z" />
-<glyph unicode="&#xe040;" d="M100 200h-100v1000h100v-1000zM300 200h-100v1000h100v-1000zM700 200h-200v1000h200v-1000zM900 200h-100v1000h100v-1000zM1200 200h-200v1000h200v-1000zM400 0h-300v100h300v-100zM600 0h-100v91h100v-91zM800 0h-100v91h100v-91zM1100 0h-200v91h200v-91z" />
-<glyph unicode="&#xe041;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
-<glyph unicode="&#xe042;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM800 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-56 56l424 426l-700 700h150zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5 t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
-<glyph unicode="&#xe043;" d="M300 1200h825q75 0 75 -75v-900q0 -25 -18 -43l-64 -64q-8 -8 -13 -5.5t-5 12.5v950q0 10 -7.5 17.5t-17.5 7.5h-700q-25 0 -43 -18l-64 -64q-8 -8 -5.5 -13t12.5 -5h700q10 0 17.5 -7.5t7.5 -17.5v-950q0 -10 -7.5 -17.5t-17.5 -7.5h-850q-10 0 -17.5 7.5t-7.5 17.5v975 q0 25 18 43l139 139q18 18 43 18z" />
-<glyph unicode="&#xe044;" d="M250 1200h800q21 0 35.5 -14.5t14.5 -35.5v-1150l-450 444l-450 -445v1151q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe045;" d="M822 1200h-444q-11 0 -19 -7.5t-9 -17.5l-78 -301q-7 -24 7 -45l57 -108q6 -9 17.5 -15t21.5 -6h450q10 0 21.5 6t17.5 15l62 108q14 21 7 45l-83 301q-1 10 -9 17.5t-19 7.5zM1175 800h-150q-10 0 -21 -6.5t-15 -15.5l-78 -156q-4 -9 -15 -15.5t-21 -6.5h-550 q-10 0 -21 6.5t-15 15.5l-78 156q-4 9 -15 15.5t-21 6.5h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-650q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h750q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5 t7.5 17.5v650q0 10 -7.5 17.5t-17.5 7.5zM850 200h-500q-10 0 -19.5 -7t-11.5 -17l-38 -152q-2 -10 3.5 -17t15.5 -7h600q10 0 15.5 7t3.5 17l-38 152q-2 10 -11.5 17t-19.5 7z" />
-<glyph unicode="&#xe046;" d="M500 1100h200q56 0 102.5 -20.5t72.5 -50t44 -59t25 -50.5l6 -20h150q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5h150q2 8 6.5 21.5t24 48t45 61t72 48t102.5 21.5zM900 800v-100 h100v100h-100zM600 730q-95 0 -162.5 -67.5t-67.5 -162.5t67.5 -162.5t162.5 -67.5t162.5 67.5t67.5 162.5t-67.5 162.5t-162.5 67.5zM600 603q43 0 73 -30t30 -73t-30 -73t-73 -30t-73 30t-30 73t30 73t73 30z" />
-<glyph unicode="&#xe047;" d="M681 1199l385 -998q20 -50 60 -92q18 -19 36.5 -29.5t27.5 -11.5l10 -2v-66h-417v66q53 0 75 43.5t5 88.5l-82 222h-391q-58 -145 -92 -234q-11 -34 -6.5 -57t25.5 -37t46 -20t55 -6v-66h-365v66q56 24 84 52q12 12 25 30.5t20 31.5l7 13l399 1006h93zM416 521h340 l-162 457z" />
-<glyph unicode="&#xe048;" d="M753 641q5 -1 14.5 -4.5t36 -15.5t50.5 -26.5t53.5 -40t50.5 -54.5t35.5 -70t14.5 -87q0 -67 -27.5 -125.5t-71.5 -97.5t-98.5 -66.5t-108.5 -40.5t-102 -13h-500v89q41 7 70.5 32.5t29.5 65.5v827q0 24 -0.5 34t-3.5 24t-8.5 19.5t-17 13.5t-28 12.5t-42.5 11.5v71 l471 -1q57 0 115.5 -20.5t108 -57t80.5 -94t31 -124.5q0 -51 -15.5 -96.5t-38 -74.5t-45 -50.5t-38.5 -30.5zM400 700h139q78 0 130.5 48.5t52.5 122.5q0 41 -8.5 70.5t-29.5 55.5t-62.5 39.5t-103.5 13.5h-118v-350zM400 200h216q80 0 121 50.5t41 130.5q0 90 -62.5 154.5 t-156.5 64.5h-159v-400z" />
-<glyph unicode="&#xe049;" d="M877 1200l2 -57q-83 -19 -116 -45.5t-40 -66.5l-132 -839q-9 -49 13 -69t96 -26v-97h-500v97q186 16 200 98l173 832q3 17 3 30t-1.5 22.5t-9 17.5t-13.5 12.5t-21.5 10t-26 8.5t-33.5 10q-13 3 -19 5v57h425z" />
-<glyph unicode="&#xe050;" d="M1300 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM175 1000h-75v-800h75l-125 -167l-125 167h75v800h-75l125 167z" />
-<glyph unicode="&#xe051;" d="M1100 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-650q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v650h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM1167 50l-167 -125v75h-800v-75l-167 125l167 125v-75h800v75z" />
-<glyph unicode="&#xe052;" d="M50 1100h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe053;" d="M250 1100h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM250 500h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe054;" d="M500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000 q-21 0 -35.5 14.5t-14.5 35.5zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5zM0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5z" />
-<glyph unicode="&#xe055;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe056;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 1100h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 800h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 500h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 500h800q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 200h800 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe057;" d="M400 0h-100v1100h100v-1100zM550 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM267 550l-167 -125v75h-200v100h200v75zM550 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe058;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM900 0h-100v1100h100v-1100zM50 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM1100 600h200v-100h-200v-75l-167 125l167 125v-75zM50 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe059;" d="M75 1000h750q31 0 53 -22t22 -53v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53v650q0 31 22 53t53 22zM1200 300l-300 300l300 300v-600z" />
-<glyph unicode="&#xe060;" d="M44 1100h1112q18 0 31 -13t13 -31v-1012q0 -18 -13 -31t-31 -13h-1112q-18 0 -31 13t-13 31v1012q0 18 13 31t31 13zM100 1000v-737l247 182l298 -131l-74 156l293 318l236 -288v500h-1000zM342 884q56 0 95 -39t39 -94.5t-39 -95t-95 -39.5t-95 39.5t-39 95t39 94.5 t95 39z" />
-<glyph unicode="&#xe062;" d="M648 1169q117 0 216 -60t156.5 -161t57.5 -218q0 -115 -70 -258q-69 -109 -158 -225.5t-143 -179.5l-54 -62q-9 8 -25.5 24.5t-63.5 67.5t-91 103t-98.5 128t-95.5 148q-60 132 -60 249q0 88 34 169.5t91.5 142t137 96.5t166.5 36zM652.5 974q-91.5 0 -156.5 -65 t-65 -157t65 -156.5t156.5 -64.5t156.5 64.5t65 156.5t-65 157t-156.5 65z" />
-<glyph unicode="&#xe063;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 173v854q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57z" />
-<glyph unicode="&#xe064;" d="M554 1295q21 -72 57.5 -143.5t76 -130t83 -118t82.5 -117t70 -116t49.5 -126t18.5 -136.5q0 -71 -25.5 -135t-68.5 -111t-99 -82t-118.5 -54t-125.5 -23q-84 5 -161.5 34t-139.5 78.5t-99 125t-37 164.5q0 69 18 136.5t49.5 126.5t69.5 116.5t81.5 117.5t83.5 119 t76.5 131t58.5 143zM344 710q-23 -33 -43.5 -70.5t-40.5 -102.5t-17 -123q1 -37 14.5 -69.5t30 -52t41 -37t38.5 -24.5t33 -15q21 -7 32 -1t13 22l6 34q2 10 -2.5 22t-13.5 19q-5 4 -14 12t-29.5 40.5t-32.5 73.5q-26 89 6 271q2 11 -6 11q-8 1 -15 -10z" />
-<glyph unicode="&#xe065;" d="M1000 1013l108 115q2 1 5 2t13 2t20.5 -1t25 -9.5t28.5 -21.5q22 -22 27 -43t0 -32l-6 -10l-108 -115zM350 1100h400q50 0 105 -13l-187 -187h-368q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v182l200 200v-332 q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM1009 803l-362 -362l-161 -50l55 170l355 355z" />
-<glyph unicode="&#xe066;" d="M350 1100h361q-164 -146 -216 -200h-195q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5l200 153v-103q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M824 1073l339 -301q8 -7 8 -17.5t-8 -17.5l-340 -306q-7 -6 -12.5 -4t-6.5 11v203q-26 1 -54.5 0t-78.5 -7.5t-92 -17.5t-86 -35t-70 -57q10 59 33 108t51.5 81.5t65 58.5t68.5 40.5t67 24.5t56 13.5t40 4.5v210q1 10 6.5 12.5t13.5 -4.5z" />
-<glyph unicode="&#xe067;" d="M350 1100h350q60 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69l200 200v-219q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M643 639l395 395q7 7 17.5 7t17.5 -7l101 -101q7 -7 7 -17.5t-7 -17.5l-531 -532q-7 -7 -17.5 -7t-17.5 7l-248 248q-7 7 -7 17.5t7 17.5l101 101q7 7 17.5 7t17.5 -7l111 -111q8 -7 18 -7t18 7z" />
-<glyph unicode="&#xe068;" d="M318 918l264 264q8 8 18 8t18 -8l260 -264q7 -8 4.5 -13t-12.5 -5h-170v-200h200v173q0 10 5 12t13 -5l264 -260q8 -7 8 -17.5t-8 -17.5l-264 -265q-8 -7 -13 -5t-5 12v173h-200v-200h170q10 0 12.5 -5t-4.5 -13l-260 -264q-8 -8 -18 -8t-18 8l-264 264q-8 8 -5.5 13 t12.5 5h175v200h-200v-173q0 -10 -5 -12t-13 5l-264 265q-8 7 -8 17.5t8 17.5l264 260q8 7 13 5t5 -12v-173h200v200h-175q-10 0 -12.5 5t5.5 13z" />
-<glyph unicode="&#xe069;" d="M250 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe070;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5 t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe071;" d="M1200 1050v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-492 480q-15 14 -15 35t15 35l492 480q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25z" />
-<glyph unicode="&#xe072;" d="M243 1074l814 -498q18 -11 18 -26t-18 -26l-814 -498q-18 -11 -30.5 -4t-12.5 28v1000q0 21 12.5 28t30.5 -4z" />
-<glyph unicode="&#xe073;" d="M250 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM650 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800 q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe074;" d="M1100 950v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5z" />
-<glyph unicode="&#xe075;" d="M500 612v438q0 21 10.5 25t25.5 -10l492 -480q15 -14 15 -35t-15 -35l-492 -480q-15 -14 -25.5 -10t-10.5 25v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10z" />
-<glyph unicode="&#xe076;" d="M1048 1102l100 1q20 0 35 -14.5t15 -35.5l5 -1000q0 -21 -14.5 -35.5t-35.5 -14.5l-100 -1q-21 0 -35.5 14.5t-14.5 35.5l-2 437l-463 -454q-14 -15 -24.5 -10.5t-10.5 25.5l-2 437l-462 -455q-15 -14 -25.5 -9.5t-10.5 24.5l-5 1000q0 21 10.5 25.5t25.5 -10.5l466 -450 l-2 438q0 20 10.5 24.5t25.5 -9.5l466 -451l-2 438q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe077;" d="M850 1100h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10l464 -453v438q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe078;" d="M686 1081l501 -540q15 -15 10.5 -26t-26.5 -11h-1042q-22 0 -26.5 11t10.5 26l501 540q15 15 36 15t36 -15zM150 400h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe079;" d="M885 900l-352 -353l352 -353l-197 -198l-552 552l552 550z" />
-<glyph unicode="&#xe080;" d="M1064 547l-551 -551l-198 198l353 353l-353 353l198 198z" />
-<glyph unicode="&#xe081;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM650 900h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-150 q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5h150v-150q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5v150h150q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-150v150q0 21 -14.5 35.5t-35.5 14.5z" />
-<glyph unicode="&#xe082;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM850 700h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5 t35.5 -14.5h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5z" />
-<glyph unicode="&#xe083;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM741.5 913q-12.5 0 -21.5 -9l-120 -120l-120 120q-9 9 -21.5 9 t-21.5 -9l-141 -141q-9 -9 -9 -21.5t9 -21.5l120 -120l-120 -120q-9 -9 -9 -21.5t9 -21.5l141 -141q9 -9 21.5 -9t21.5 9l120 120l120 -120q9 -9 21.5 -9t21.5 9l141 141q9 9 9 21.5t-9 21.5l-120 120l120 120q9 9 9 21.5t-9 21.5l-141 141q-9 9 -21.5 9z" />
-<glyph unicode="&#xe084;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM546 623l-84 85q-7 7 -17.5 7t-18.5 -7l-139 -139q-7 -8 -7 -18t7 -18 l242 -241q7 -8 17.5 -8t17.5 8l375 375q7 7 7 17.5t-7 18.5l-139 139q-7 7 -17.5 7t-17.5 -7z" />
-<glyph unicode="&#xe085;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM588 941q-29 0 -59 -5.5t-63 -20.5t-58 -38.5t-41.5 -63t-16.5 -89.5 q0 -25 20 -25h131q30 -5 35 11q6 20 20.5 28t45.5 8q20 0 31.5 -10.5t11.5 -28.5q0 -23 -7 -34t-26 -18q-1 0 -13.5 -4t-19.5 -7.5t-20 -10.5t-22 -17t-18.5 -24t-15.5 -35t-8 -46q-1 -8 5.5 -16.5t20.5 -8.5h173q7 0 22 8t35 28t37.5 48t29.5 74t12 100q0 47 -17 83 t-42.5 57t-59.5 34.5t-64 18t-59 4.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe086;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM675 1000h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5 t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5zM675 700h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h75v-200h-75q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h350q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5 t-17.5 7.5h-75v275q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe087;" d="M525 1200h150q10 0 17.5 -7.5t7.5 -17.5v-194q103 -27 178.5 -102.5t102.5 -178.5h194q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-194q-27 -103 -102.5 -178.5t-178.5 -102.5v-194q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v194 q-103 27 -178.5 102.5t-102.5 178.5h-194q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h194q27 103 102.5 178.5t178.5 102.5v194q0 10 7.5 17.5t17.5 7.5zM700 893v-168q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v168q-68 -23 -119 -74 t-74 -119h168q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-168q23 -68 74 -119t119 -74v168q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-168q68 23 119 74t74 119h-168q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h168 q-23 68 -74 119t-119 74z" />
-<glyph unicode="&#xe088;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM759 823l64 -64q7 -7 7 -17.5t-7 -17.5l-124 -124l124 -124q7 -7 7 -17.5t-7 -17.5l-64 -64q-7 -7 -17.5 -7t-17.5 7l-124 124l-124 -124q-7 -7 -17.5 -7t-17.5 7l-64 64 q-7 7 -7 17.5t7 17.5l124 124l-124 124q-7 7 -7 17.5t7 17.5l64 64q7 7 17.5 7t17.5 -7l124 -124l124 124q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe089;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM782 788l106 -106q7 -7 7 -17.5t-7 -17.5l-320 -321q-8 -7 -18 -7t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l197 197q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe090;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5q0 -120 65 -225 l587 587q-105 65 -225 65zM965 819l-584 -584q104 -62 219 -62q116 0 214.5 57t155.5 155.5t57 214.5q0 115 -62 219z" />
-<glyph unicode="&#xe091;" d="M39 582l522 427q16 13 27.5 8t11.5 -26v-291h550q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-550v-291q0 -21 -11.5 -26t-27.5 8l-522 427q-16 13 -16 32t16 32z" />
-<glyph unicode="&#xe092;" d="M639 1009l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291h-550q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h550v291q0 21 11.5 26t27.5 -8z" />
-<glyph unicode="&#xe093;" d="M682 1161l427 -522q13 -16 8 -27.5t-26 -11.5h-291v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v550h-291q-21 0 -26 11.5t8 27.5l427 522q13 16 32 16t32 -16z" />
-<glyph unicode="&#xe094;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-550h291q21 0 26 -11.5t-8 -27.5l-427 -522q-13 -16 -32 -16t-32 16l-427 522q-13 16 -8 27.5t26 11.5h291v550q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe095;" d="M639 1109l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291q-94 -2 -182 -20t-170.5 -52t-147 -92.5t-100.5 -135.5q5 105 27 193.5t67.5 167t113 135t167 91.5t225.5 42v262q0 21 11.5 26t27.5 -8z" />
-<glyph unicode="&#xe096;" d="M850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5zM350 0h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249 q8 7 18 7t18 -7l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5z" />
-<glyph unicode="&#xe097;" d="M1014 1120l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249q8 7 18 7t18 -7zM250 600h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5z" />
-<glyph unicode="&#xe101;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM704 900h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5 t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe102;" d="M260 1200q9 0 19 -2t15 -4l5 -2q22 -10 44 -23l196 -118q21 -13 36 -24q29 -21 37 -12q11 13 49 35l196 118q22 13 45 23q17 7 38 7q23 0 47 -16.5t37 -33.5l13 -16q14 -21 18 -45l25 -123l8 -44q1 -9 8.5 -14.5t17.5 -5.5h61q10 0 17.5 -7.5t7.5 -17.5v-50 q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 -7.5t-7.5 -17.5v-175h-400v300h-200v-300h-400v175q0 10 -7.5 17.5t-17.5 7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5h61q11 0 18 3t7 8q0 4 9 52l25 128q5 25 19 45q2 3 5 7t13.5 15t21.5 19.5t26.5 15.5 t29.5 7zM915 1079l-166 -162q-7 -7 -5 -12t12 -5h219q10 0 15 7t2 17l-51 149q-3 10 -11 12t-15 -6zM463 917l-177 157q-8 7 -16 5t-11 -12l-51 -143q-3 -10 2 -17t15 -7h231q11 0 12.5 5t-5.5 12zM500 0h-375q-10 0 -17.5 7.5t-7.5 17.5v375h400v-400zM1100 400v-375 q0 -10 -7.5 -17.5t-17.5 -7.5h-375v400h400z" />
-<glyph unicode="&#xe103;" d="M1165 1190q8 3 21 -6.5t13 -17.5q-2 -178 -24.5 -323.5t-55.5 -245.5t-87 -174.5t-102.5 -118.5t-118 -68.5t-118.5 -33t-120 -4.5t-105 9.5t-90 16.5q-61 12 -78 11q-4 1 -12.5 0t-34 -14.5t-52.5 -40.5l-153 -153q-26 -24 -37 -14.5t-11 43.5q0 64 42 102q8 8 50.5 45 t66.5 58q19 17 35 47t13 61q-9 55 -10 102.5t7 111t37 130t78 129.5q39 51 80 88t89.5 63.5t94.5 45t113.5 36t129 31t157.5 37t182 47.5zM1116 1098q-8 9 -22.5 -3t-45.5 -50q-38 -47 -119 -103.5t-142 -89.5l-62 -33q-56 -30 -102 -57t-104 -68t-102.5 -80.5t-85.5 -91 t-64 -104.5q-24 -56 -31 -86t2 -32t31.5 17.5t55.5 59.5q25 30 94 75.5t125.5 77.5t147.5 81q70 37 118.5 69t102 79.5t99 111t86.5 148.5q22 50 24 60t-6 19z" />
-<glyph unicode="&#xe104;" d="M653 1231q-39 -67 -54.5 -131t-10.5 -114.5t24.5 -96.5t47.5 -80t63.5 -62.5t68.5 -46.5t65 -30q-4 7 -17.5 35t-18.5 39.5t-17 39.5t-17 43t-13 42t-9.5 44.5t-2 42t4 43t13.5 39t23 38.5q96 -42 165 -107.5t105 -138t52 -156t13 -159t-19 -149.5q-13 -55 -44 -106.5 t-68 -87t-78.5 -64.5t-72.5 -45t-53 -22q-72 -22 -127 -11q-31 6 -13 19q6 3 17 7q13 5 32.5 21t41 44t38.5 63.5t21.5 81.5t-6.5 94.5t-50 107t-104 115.5q10 -104 -0.5 -189t-37 -140.5t-65 -93t-84 -52t-93.5 -11t-95 24.5q-80 36 -131.5 114t-53.5 171q-2 23 0 49.5 t4.5 52.5t13.5 56t27.5 60t46 64.5t69.5 68.5q-8 -53 -5 -102.5t17.5 -90t34 -68.5t44.5 -39t49 -2q31 13 38.5 36t-4.5 55t-29 64.5t-36 75t-26 75.5q-15 85 2 161.5t53.5 128.5t85.5 92.5t93.5 61t81.5 25.5z" />
-<glyph unicode="&#xe105;" d="M600 1094q82 0 160.5 -22.5t140 -59t116.5 -82.5t94.5 -95t68 -95t42.5 -82.5t14 -57.5t-14 -57.5t-43 -82.5t-68.5 -95t-94.5 -95t-116.5 -82.5t-140 -59t-159.5 -22.5t-159.5 22.5t-140 59t-116.5 82.5t-94.5 95t-68.5 95t-43 82.5t-14 57.5t14 57.5t42.5 82.5t68 95 t94.5 95t116.5 82.5t140 59t160.5 22.5zM888 829q-15 15 -18 12t5 -22q25 -57 25 -119q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 59 23 114q8 19 4.5 22t-17.5 -12q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q22 -36 47 -71t70 -82t92.5 -81t113 -58.5t133.5 -24.5 t133.5 24t113 58.5t92.5 81.5t70 81.5t47 70.5q11 18 9 42.5t-14 41.5q-90 117 -163 189zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l35 34q14 15 12.5 33.5t-16.5 33.5q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
-<glyph unicode="&#xe106;" d="M592 0h-148l31 120q-91 20 -175.5 68.5t-143.5 106.5t-103.5 119t-66.5 110t-22 76q0 21 14 57.5t42.5 82.5t68 95t94.5 95t116.5 82.5t140 59t160.5 22.5q61 0 126 -15l32 121h148zM944 770l47 181q108 -85 176.5 -192t68.5 -159q0 -26 -19.5 -71t-59.5 -102t-93 -112 t-129 -104.5t-158 -75.5l46 173q77 49 136 117t97 131q11 18 9 42.5t-14 41.5q-54 70 -107 130zM310 824q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q18 -30 39 -60t57 -70.5t74 -73t90 -61t105 -41.5l41 154q-107 18 -178.5 101.5t-71.5 193.5q0 59 23 114q8 19 4.5 22 t-17.5 -12zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l12 11l22 86l-3 4q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
-<glyph unicode="&#xe107;" d="M-90 100l642 1066q20 31 48 28.5t48 -35.5l642 -1056q21 -32 7.5 -67.5t-50.5 -35.5h-1294q-37 0 -50.5 34t7.5 66zM155 200h345v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h345l-445 723zM496 700h208q20 0 32 -14.5t8 -34.5l-58 -252 q-4 -20 -21.5 -34.5t-37.5 -14.5h-54q-20 0 -37.5 14.5t-21.5 34.5l-58 252q-4 20 8 34.5t32 14.5z" />
-<glyph unicode="&#xe108;" d="M650 1200q62 0 106 -44t44 -106v-339l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -93 100 -113v-64q0 -21 -13 -29t-32 1l-205 128l-205 -128q-19 -9 -32 -1t-13 29v64q0 20 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5v41 q0 20 11 44.5t26 38.5l363 325v339q0 62 44 106t106 44z" />
-<glyph unicode="&#xe109;" d="M850 1200h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-150h-1100v150q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-50h500v50q0 21 14.5 35.5t35.5 14.5zM1100 800v-750q0 -21 -14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v750h1100zM100 600v-100h100v100h-100zM300 600v-100h100v100h-100zM500 600v-100h100v100h-100zM700 600v-100h100v100h-100zM900 600v-100h100v100h-100zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400 v-100h100v100h-100zM700 400v-100h100v100h-100zM900 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100zM500 200v-100h100v100h-100zM700 200v-100h100v100h-100zM900 200v-100h100v100h-100z" />
-<glyph unicode="&#xe110;" d="M1135 1165l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-159l-600 -600h-291q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h209l600 600h241v150q0 21 10.5 25t24.5 -10zM522 819l-141 -141l-122 122h-209q-21 0 -35.5 14.5 t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h291zM1135 565l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-241l-181 181l141 141l122 -122h159v150q0 21 10.5 25t24.5 -10z" />
-<glyph unicode="&#xe111;" d="M100 1100h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5z" />
-<glyph unicode="&#xe112;" d="M150 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM850 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM1100 800v-300q0 -41 -3 -77.5t-15 -89.5t-32 -96t-58 -89t-89 -77t-129 -51t-174 -20t-174 20 t-129 51t-89 77t-58 89t-32 96t-15 89.5t-3 77.5v300h300v-250v-27v-42.5t1.5 -41t5 -38t10 -35t16.5 -30t25.5 -24.5t35 -19t46.5 -12t60 -4t60 4.5t46.5 12.5t35 19.5t25 25.5t17 30.5t10 35t5 38t2 40.5t-0.5 42v25v250h300z" />
-<glyph unicode="&#xe113;" d="M1100 411l-198 -199l-353 353l-353 -353l-197 199l551 551z" />
-<glyph unicode="&#xe114;" d="M1101 789l-550 -551l-551 551l198 199l353 -353l353 353z" />
-<glyph unicode="&#xe115;" d="M404 1000h746q21 0 35.5 -14.5t14.5 -35.5v-551h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v401h-381zM135 984l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-400h385l215 -200h-750q-21 0 -35.5 14.5 t-14.5 35.5v550h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe116;" d="M56 1200h94q17 0 31 -11t18 -27l38 -162h896q24 0 39 -18.5t10 -42.5l-100 -475q-5 -21 -27 -42.5t-55 -21.5h-633l48 -200h535q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-50q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-300v-50 q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-31q-18 0 -32.5 10t-20.5 19l-5 10l-201 961h-54q-20 0 -35 14.5t-15 35.5t15 35.5t35 14.5z" />
-<glyph unicode="&#xe117;" d="M1200 1000v-100h-1200v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500zM0 800h1200v-800h-1200v800z" />
-<glyph unicode="&#xe118;" d="M200 800l-200 -400v600h200q0 41 29.5 70.5t70.5 29.5h300q42 0 71 -29.5t29 -70.5h500v-200h-1000zM1500 700l-300 -700h-1200l300 700h1200z" />
-<glyph unicode="&#xe119;" d="M635 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-601h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v601h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe120;" d="M936 864l249 -229q14 -15 14 -35.5t-14 -35.5l-249 -229q-15 -15 -25.5 -10.5t-10.5 24.5v151h-600v-151q0 -20 -10.5 -24.5t-25.5 10.5l-249 229q-14 15 -14 35.5t14 35.5l249 229q15 15 25.5 10.5t10.5 -25.5v-149h600v149q0 21 10.5 25.5t25.5 -10.5z" />
-<glyph unicode="&#xe121;" d="M1169 400l-172 732q-5 23 -23 45.5t-38 22.5h-672q-20 0 -38 -20t-23 -41l-172 -739h1138zM1100 300h-1000q-41 0 -70.5 -29.5t-29.5 -70.5v-100q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5v100q0 41 -29.5 70.5t-70.5 29.5zM800 100v100h100v-100h-100 zM1000 100v100h100v-100h-100z" />
-<glyph unicode="&#xe122;" d="M1150 1100q21 0 35.5 -14.5t14.5 -35.5v-850q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v850q0 21 14.5 35.5t35.5 14.5zM1000 200l-675 200h-38l47 -276q3 -16 -5.5 -20t-29.5 -4h-7h-84q-20 0 -34.5 14t-18.5 35q-55 337 -55 351v250v6q0 16 1 23.5t6.5 14 t17.5 6.5h200l675 250v-850zM0 750v-250q-4 0 -11 0.5t-24 6t-30 15t-24 30t-11 48.5v50q0 26 10.5 46t25 30t29 16t25.5 7z" />
-<glyph unicode="&#xe123;" d="M553 1200h94q20 0 29 -10.5t3 -29.5l-18 -37q83 -19 144 -82.5t76 -140.5l63 -327l118 -173h17q19 0 33 -14.5t14 -35t-13 -40.5t-31 -27q-8 -4 -23 -9.5t-65 -19.5t-103 -25t-132.5 -20t-158.5 -9q-57 0 -115 5t-104 12t-88.5 15.5t-73.5 17.5t-54.5 16t-35.5 12l-11 4 q-18 8 -31 28t-13 40.5t14 35t33 14.5h17l118 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3.5 32t28.5 13zM498 110q50 -6 102 -6q53 0 102 6q-12 -49 -39.5 -79.5t-62.5 -30.5t-63 30.5t-39 79.5z" />
-<glyph unicode="&#xe124;" d="M800 946l224 78l-78 -224l234 -45l-180 -155l180 -155l-234 -45l78 -224l-224 78l-45 -234l-155 180l-155 -180l-45 234l-224 -78l78 224l-234 45l180 155l-180 155l234 45l-78 224l224 -78l45 234l155 -180l155 180z" />
-<glyph unicode="&#xe125;" d="M650 1200h50q40 0 70 -40.5t30 -84.5v-150l-28 -125h328q40 0 70 -40.5t30 -84.5v-100q0 -45 -29 -74l-238 -344q-16 -24 -38 -40.5t-45 -16.5h-250q-7 0 -42 25t-66 50l-31 25h-61q-45 0 -72.5 18t-27.5 57v400q0 36 20 63l145 196l96 198q13 28 37.5 48t51.5 20z M650 1100l-100 -212l-150 -213v-375h100l136 -100h214l250 375v125h-450l50 225v175h-50zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe126;" d="M600 1100h250q23 0 45 -16.5t38 -40.5l238 -344q29 -29 29 -74v-100q0 -44 -30 -84.5t-70 -40.5h-328q28 -118 28 -125v-150q0 -44 -30 -84.5t-70 -40.5h-50q-27 0 -51.5 20t-37.5 48l-96 198l-145 196q-20 27 -20 63v400q0 39 27.5 57t72.5 18h61q124 100 139 100z M50 1000h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM636 1000l-136 -100h-100v-375l150 -213l100 -212h50v175l-50 225h450v125l-250 375h-214z" />
-<glyph unicode="&#xe127;" d="M356 873l363 230q31 16 53 -6l110 -112q13 -13 13.5 -32t-11.5 -34l-84 -121h302q84 0 138 -38t54 -110t-55 -111t-139 -39h-106l-131 -339q-6 -21 -19.5 -41t-28.5 -20h-342q-7 0 -90 81t-83 94v525q0 17 14 35.5t28 28.5zM400 792v-503l100 -89h293l131 339 q6 21 19.5 41t28.5 20h203q21 0 30.5 25t0.5 50t-31 25h-456h-7h-6h-5.5t-6 0.5t-5 1.5t-5 2t-4 2.5t-4 4t-2.5 4.5q-12 25 5 47l146 183l-86 83zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500 q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe128;" d="M475 1103l366 -230q2 -1 6 -3.5t14 -10.5t18 -16.5t14.5 -20t6.5 -22.5v-525q0 -13 -86 -94t-93 -81h-342q-15 0 -28.5 20t-19.5 41l-131 339h-106q-85 0 -139.5 39t-54.5 111t54 110t138 38h302l-85 121q-11 15 -10.5 34t13.5 32l110 112q22 22 53 6zM370 945l146 -183 q17 -22 5 -47q-2 -2 -3.5 -4.5t-4 -4t-4 -2.5t-5 -2t-5 -1.5t-6 -0.5h-6h-6.5h-6h-475v-100h221q15 0 29 -20t20 -41l130 -339h294l106 89v503l-342 236zM1050 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5 v500q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe129;" d="M550 1294q72 0 111 -55t39 -139v-106l339 -131q21 -6 41 -19.5t20 -28.5v-342q0 -7 -81 -90t-94 -83h-525q-17 0 -35.5 14t-28.5 28l-9 14l-230 363q-16 31 6 53l112 110q13 13 32 13.5t34 -11.5l121 -84v302q0 84 38 138t110 54zM600 972v203q0 21 -25 30.5t-50 0.5 t-25 -31v-456v-7v-6v-5.5t-0.5 -6t-1.5 -5t-2 -5t-2.5 -4t-4 -4t-4.5 -2.5q-25 -12 -47 5l-183 146l-83 -86l236 -339h503l89 100v293l-339 131q-21 6 -41 19.5t-20 28.5zM450 200h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe130;" d="M350 1100h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5zM600 306v-106q0 -84 -39 -139t-111 -55t-110 54t-38 138v302l-121 -84q-15 -12 -34 -11.5t-32 13.5l-112 110 q-22 22 -6 53l230 363q1 2 3.5 6t10.5 13.5t16.5 17t20 13.5t22.5 6h525q13 0 94 -83t81 -90v-342q0 -15 -20 -28.5t-41 -19.5zM308 900l-236 -339l83 -86l183 146q22 17 47 5q2 -1 4.5 -2.5t4 -4t2.5 -4t2 -5t1.5 -5t0.5 -6v-5.5v-6v-7v-456q0 -22 25 -31t50 0.5t25 30.5 v203q0 15 20 28.5t41 19.5l339 131v293l-89 100h-503z" />
-<glyph unicode="&#xe131;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM914 632l-275 223q-16 13 -27.5 8t-11.5 -26v-137h-275 q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h275v-137q0 -21 11.5 -26t27.5 8l275 223q16 13 16 32t-16 32z" />
-<glyph unicode="&#xe132;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM561 855l-275 -223q-16 -13 -16 -32t16 -32l275 -223q16 -13 27.5 -8 t11.5 26v137h275q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5h-275v137q0 21 -11.5 26t-27.5 -8z" />
-<glyph unicode="&#xe133;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM855 639l-223 275q-13 16 -32 16t-32 -16l-223 -275q-13 -16 -8 -27.5 t26 -11.5h137v-275q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v275h137q21 0 26 11.5t-8 27.5z" />
-<glyph unicode="&#xe134;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM675 900h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-275h-137q-21 0 -26 -11.5 t8 -27.5l223 -275q13 -16 32 -16t32 16l223 275q13 16 8 27.5t-26 11.5h-137v275q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe135;" d="M600 1176q116 0 222.5 -46t184 -123.5t123.5 -184t46 -222.5t-46 -222.5t-123.5 -184t-184 -123.5t-222.5 -46t-222.5 46t-184 123.5t-123.5 184t-46 222.5t46 222.5t123.5 184t184 123.5t222.5 46zM627 1101q-15 -12 -36.5 -20.5t-35.5 -12t-43 -8t-39 -6.5 q-15 -3 -45.5 0t-45.5 -2q-20 -7 -51.5 -26.5t-34.5 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -91t-29.5 -79q-9 -34 5 -93t8 -87q0 -9 17 -44.5t16 -59.5q12 0 23 -5t23.5 -15t19.5 -14q16 -8 33 -15t40.5 -15t34.5 -12q21 -9 52.5 -32t60 -38t57.5 -11 q7 -15 -3 -34t-22.5 -40t-9.5 -38q13 -21 23 -34.5t27.5 -27.5t36.5 -18q0 -7 -3.5 -16t-3.5 -14t5 -17q104 -2 221 112q30 29 46.5 47t34.5 49t21 63q-13 8 -37 8.5t-36 7.5q-15 7 -49.5 15t-51.5 19q-18 0 -41 -0.5t-43 -1.5t-42 -6.5t-38 -16.5q-51 -35 -66 -12 q-4 1 -3.5 25.5t0.5 25.5q-6 13 -26.5 17.5t-24.5 6.5q1 15 -0.5 30.5t-7 28t-18.5 11.5t-31 -21q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q7 -12 18 -24t21.5 -20.5t20 -15t15.5 -10.5l5 -3q2 12 7.5 30.5t8 34.5t-0.5 32q-3 18 3.5 29 t18 22.5t15.5 24.5q6 14 10.5 35t8 31t15.5 22.5t34 22.5q-6 18 10 36q8 0 24 -1.5t24.5 -1.5t20 4.5t20.5 15.5q-10 23 -31 42.5t-37.5 29.5t-49 27t-43.5 23q0 1 2 8t3 11.5t1.5 10.5t-1 9.5t-4.5 4.5q31 -13 58.5 -14.5t38.5 2.5l12 5q5 28 -9.5 46t-36.5 24t-50 15 t-41 20q-18 -4 -37 0zM613 994q0 -17 8 -42t17 -45t9 -23q-8 1 -39.5 5.5t-52.5 10t-37 16.5q3 11 16 29.5t16 25.5q10 -10 19 -10t14 6t13.5 14.5t16.5 12.5z" />
-<glyph unicode="&#xe136;" d="M756 1157q164 92 306 -9l-259 -138l145 -232l251 126q6 -89 -34 -156.5t-117 -110.5q-60 -34 -127 -39.5t-126 16.5l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5t15 37.5l600 599q-34 101 5.5 201.5t135.5 154.5z" />
-<glyph unicode="&#xe137;" horiz-adv-x="1220" d="M100 1196h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 1096h-200v-100h200v100zM100 796h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 696h-500v-100h500v100zM100 396h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 296h-300v-100h300v100z " />
-<glyph unicode="&#xe138;" d="M150 1200h900q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM700 500v-300l-200 -200v500l-350 500h900z" />
-<glyph unicode="&#xe139;" d="M500 1200h200q41 0 70.5 -29.5t29.5 -70.5v-100h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5zM500 1100v-100h200v100h-200zM1200 400v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v200h1200z" />
-<glyph unicode="&#xe140;" d="M50 1200h300q21 0 25 -10.5t-10 -24.5l-94 -94l199 -199q7 -8 7 -18t-7 -18l-106 -106q-8 -7 -18 -7t-18 7l-199 199l-94 -94q-14 -14 -24.5 -10t-10.5 25v300q0 21 14.5 35.5t35.5 14.5zM850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-199 -199q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l199 199l-94 94q-14 14 -10 24.5t25 10.5zM364 470l106 -106q7 -8 7 -18t-7 -18l-199 -199l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l199 199 q8 7 18 7t18 -7zM1071 271l94 94q14 14 24.5 10t10.5 -25v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -25 10.5t10 24.5l94 94l-199 199q-7 8 -7 18t7 18l106 106q8 7 18 7t18 -7z" />
-<glyph unicode="&#xe141;" d="M596 1192q121 0 231.5 -47.5t190 -127t127 -190t47.5 -231.5t-47.5 -231.5t-127 -190.5t-190 -127t-231.5 -47t-231.5 47t-190.5 127t-127 190.5t-47 231.5t47 231.5t127 190t190.5 127t231.5 47.5zM596 1010q-112 0 -207.5 -55.5t-151 -151t-55.5 -207.5t55.5 -207.5 t151 -151t207.5 -55.5t207.5 55.5t151 151t55.5 207.5t-55.5 207.5t-151 151t-207.5 55.5zM454.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38.5 -16.5t-38.5 16.5t-16 39t16 38.5t38.5 16zM754.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38 -16.5q-14 0 -29 10l-55 -145 q17 -23 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5q0 32 20.5 56.5t51.5 29.5l122 126l1 1q-9 14 -9 28q0 23 16 39t38.5 16zM345.5 709q22.5 0 38.5 -16t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16zM854.5 709q22.5 0 38.5 -16 t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16z" />
-<glyph unicode="&#xe142;" d="M546 173l469 470q91 91 99 192q7 98 -52 175.5t-154 94.5q-22 4 -47 4q-34 0 -66.5 -10t-56.5 -23t-55.5 -38t-48 -41.5t-48.5 -47.5q-376 -375 -391 -390q-30 -27 -45 -41.5t-37.5 -41t-32 -46.5t-16 -47.5t-1.5 -56.5q9 -62 53.5 -95t99.5 -33q74 0 125 51l548 548 q36 36 20 75q-7 16 -21.5 26t-32.5 10q-26 0 -50 -23q-13 -12 -39 -38l-341 -338q-15 -15 -35.5 -15.5t-34.5 13.5t-14 34.5t14 34.5q327 333 361 367q35 35 67.5 51.5t78.5 16.5q14 0 29 -1q44 -8 74.5 -35.5t43.5 -68.5q14 -47 2 -96.5t-47 -84.5q-12 -11 -32 -32 t-79.5 -81t-114.5 -115t-124.5 -123.5t-123 -119.5t-96.5 -89t-57 -45q-56 -27 -120 -27q-70 0 -129 32t-93 89q-48 78 -35 173t81 163l511 511q71 72 111 96q91 55 198 55q80 0 152 -33q78 -36 129.5 -103t66.5 -154q17 -93 -11 -183.5t-94 -156.5l-482 -476 q-15 -15 -36 -16t-37 14t-17.5 34t14.5 35z" />
-<glyph unicode="&#xe143;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104zM896 972q-33 0 -64.5 -19t-56.5 -46t-47.5 -53.5t-43.5 -45.5t-37.5 -19t-36 19t-40 45.5t-43 53.5t-54 46t-65.5 19q-67 0 -122.5 -55.5t-55.5 -132.5q0 -23 13.5 -51t46 -65t57.5 -63t76 -75l22 -22q15 -14 44 -44t50.5 -51t46 -44t41 -35t23 -12 t23.5 12t42.5 36t46 44t52.5 52t44 43q4 4 12 13q43 41 63.5 62t52 55t46 55t26 46t11.5 44q0 79 -53 133.5t-120 54.5z" />
-<glyph unicode="&#xe144;" d="M776.5 1214q93.5 0 159.5 -66l141 -141q66 -66 66 -160q0 -42 -28 -95.5t-62 -87.5l-29 -29q-31 53 -77 99l-18 18l95 95l-247 248l-389 -389l212 -212l-105 -106l-19 18l-141 141q-66 66 -66 159t66 159l283 283q65 66 158.5 66zM600 706l105 105q10 -8 19 -17l141 -141 q66 -66 66 -159t-66 -159l-283 -283q-66 -66 -159 -66t-159 66l-141 141q-66 66 -66 159.5t66 159.5l55 55q29 -55 75 -102l18 -17l-95 -95l247 -248l389 389z" />
-<glyph unicode="&#xe145;" d="M603 1200q85 0 162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5v953q0 21 30 46.5t81 48t129 37.5t163 15zM300 1000v-700h600v700h-600zM600 254q-43 0 -73.5 -30.5t-30.5 -73.5t30.5 -73.5t73.5 -30.5t73.5 30.5 t30.5 73.5t-30.5 73.5t-73.5 30.5z" />
-<glyph unicode="&#xe146;" d="M902 1185l283 -282q15 -15 15 -36t-14.5 -35.5t-35.5 -14.5t-35 15l-36 35l-279 -267v-300l-212 210l-308 -307l-280 -203l203 280l307 308l-210 212h300l267 279l-35 36q-15 14 -15 35t14.5 35.5t35.5 14.5t35 -15z" />
-<glyph unicode="&#xe148;" d="M700 1248v-78q38 -5 72.5 -14.5t75.5 -31.5t71 -53.5t52 -84t24 -118.5h-159q-4 36 -10.5 59t-21 45t-40 35.5t-64.5 20.5v-307l64 -13q34 -7 64 -16.5t70 -32t67.5 -52.5t47.5 -80t20 -112q0 -139 -89 -224t-244 -97v-77h-100v79q-150 16 -237 103q-40 40 -52.5 93.5 t-15.5 139.5h139q5 -77 48.5 -126t117.5 -65v335l-27 8q-46 14 -79 26.5t-72 36t-63 52t-40 72.5t-16 98q0 70 25 126t67.5 92t94.5 57t110 27v77h100zM600 754v274q-29 -4 -50 -11t-42 -21.5t-31.5 -41.5t-10.5 -65q0 -29 7 -50.5t16.5 -34t28.5 -22.5t31.5 -14t37.5 -10 q9 -3 13 -4zM700 547v-310q22 2 42.5 6.5t45 15.5t41.5 27t29 42t12 59.5t-12.5 59.5t-38 44.5t-53 31t-66.5 24.5z" />
-<glyph unicode="&#xe149;" d="M561 1197q84 0 160.5 -40t123.5 -109.5t47 -147.5h-153q0 40 -19.5 71.5t-49.5 48.5t-59.5 26t-55.5 9q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -26 13.5 -63t26.5 -61t37 -66q6 -9 9 -14h241v-100h-197q8 -50 -2.5 -115t-31.5 -95q-45 -62 -99 -112 q34 10 83 17.5t71 7.5q32 1 102 -16t104 -17q83 0 136 30l50 -147q-31 -19 -58 -30.5t-55 -15.5t-42 -4.5t-46 -0.5q-23 0 -76 17t-111 32.5t-96 11.5q-39 -3 -82 -16t-67 -25l-23 -11l-55 145q4 3 16 11t15.5 10.5t13 9t15.5 12t14.5 14t17.5 18.5q48 55 54 126.5 t-30 142.5h-221v100h166q-23 47 -44 104q-7 20 -12 41.5t-6 55.5t6 66.5t29.5 70.5t58.5 71q97 88 263 88z" />
-<glyph unicode="&#xe150;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM935 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-900h-200v900h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe151;" d="M1000 700h-100v100h-100v-100h-100v500h300v-500zM400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM801 1100v-200h100v200h-100zM1000 350l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150z " />
-<glyph unicode="&#xe152;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 1050l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150zM1000 0h-100v100h-100v-100h-100v500h300v-500zM801 400v-200h100v200h-100z " />
-<glyph unicode="&#xe153;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 700h-100v400h-100v100h200v-500zM1100 0h-100v100h-200v400h300v-500zM901 400v-200h100v200h-100z" />
-<glyph unicode="&#xe154;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1100 700h-100v100h-200v400h300v-500zM901 1100v-200h100v200h-100zM1000 0h-100v400h-100v100h200v-500z" />
-<glyph unicode="&#xe155;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM900 1000h-200v200h200v-200zM1000 700h-300v200h300v-200zM1100 400h-400v200h400v-200zM1200 100h-500v200h500v-200z" />
-<glyph unicode="&#xe156;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1200 1000h-500v200h500v-200zM1100 700h-400v200h400v-200zM1000 400h-300v200h300v-200zM900 100h-200v200h200v-200z" />
-<glyph unicode="&#xe157;" d="M350 1100h400q162 0 256 -93.5t94 -256.5v-400q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5z" />
-<glyph unicode="&#xe158;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-163 0 -256.5 92.5t-93.5 257.5v400q0 163 94 256.5t256 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM440 770l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
-<glyph unicode="&#xe159;" d="M350 1100h400q163 0 256.5 -94t93.5 -256v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 163 92.5 256.5t257.5 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM350 700h400q21 0 26.5 -12t-6.5 -28l-190 -253q-12 -17 -30 -17t-30 17l-190 253q-12 16 -6.5 28t26.5 12z" />
-<glyph unicode="&#xe160;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -163 -92.5 -256.5t-257.5 -93.5h-400q-163 0 -256.5 94t-93.5 256v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM580 693l190 -253q12 -16 6.5 -28t-26.5 -12h-400q-21 0 -26.5 12t6.5 28l190 253q12 17 30 17t30 -17z" />
-<glyph unicode="&#xe161;" d="M550 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h450q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-450q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM338 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
-<glyph unicode="&#xe162;" d="M793 1182l9 -9q8 -10 5 -27q-3 -11 -79 -225.5t-78 -221.5l300 1q24 0 32.5 -17.5t-5.5 -35.5q-1 0 -133.5 -155t-267 -312.5t-138.5 -162.5q-12 -15 -26 -15h-9l-9 8q-9 11 -4 32q2 9 42 123.5t79 224.5l39 110h-302q-23 0 -31 19q-10 21 6 41q75 86 209.5 237.5 t228 257t98.5 111.5q9 16 25 16h9z" />
-<glyph unicode="&#xe163;" d="M350 1100h400q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-450q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h450q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400 q0 165 92.5 257.5t257.5 92.5zM938 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
-<glyph unicode="&#xe164;" d="M750 1200h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -10.5 -25t-24.5 10l-109 109l-312 -312q-15 -15 -35.5 -15t-35.5 15l-141 141q-15 15 -15 35.5t15 35.5l312 312l-109 109q-14 14 -10 24.5t25 10.5zM456 900h-156q-41 0 -70.5 -29.5t-29.5 -70.5v-500 q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v148l200 200v-298q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5h300z" />
-<glyph unicode="&#xe165;" d="M600 1186q119 0 227.5 -46.5t187 -125t125 -187t46.5 -227.5t-46.5 -227.5t-125 -187t-187 -125t-227.5 -46.5t-227.5 46.5t-187 125t-125 187t-46.5 227.5t46.5 227.5t125 187t187 125t227.5 46.5zM600 1022q-115 0 -212 -56.5t-153.5 -153.5t-56.5 -212t56.5 -212 t153.5 -153.5t212 -56.5t212 56.5t153.5 153.5t56.5 212t-56.5 212t-153.5 153.5t-212 56.5zM600 794q80 0 137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137t57 137t137 57z" />
-<glyph unicode="&#xe166;" d="M450 1200h200q21 0 35.5 -14.5t14.5 -35.5v-350h245q20 0 25 -11t-9 -26l-383 -426q-14 -15 -33.5 -15t-32.5 15l-379 426q-13 15 -8.5 26t25.5 11h250v350q0 21 14.5 35.5t35.5 14.5zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe167;" d="M583 1182l378 -435q14 -15 9 -31t-26 -16h-244v-250q0 -20 -17 -35t-39 -15h-200q-20 0 -32 14.5t-12 35.5v250h-250q-20 0 -25.5 16.5t8.5 31.5l383 431q14 16 33.5 17t33.5 -14zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe168;" d="M396 723l369 369q7 7 17.5 7t17.5 -7l139 -139q7 -8 7 -18.5t-7 -17.5l-525 -525q-7 -8 -17.5 -8t-17.5 8l-292 291q-7 8 -7 18t7 18l139 139q8 7 18.5 7t17.5 -7zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50 h-100z" />
-<glyph unicode="&#xe169;" d="M135 1023l142 142q14 14 35 14t35 -14l77 -77l-212 -212l-77 76q-14 15 -14 36t14 35zM655 855l210 210q14 14 24.5 10t10.5 -25l-2 -599q-1 -20 -15.5 -35t-35.5 -15l-597 -1q-21 0 -25 10.5t10 24.5l208 208l-154 155l212 212zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5 v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe170;" d="M350 1200l599 -2q20 -1 35 -15.5t15 -35.5l1 -597q0 -21 -10.5 -25t-24.5 10l-208 208l-155 -154l-212 212l155 154l-210 210q-14 14 -10 24.5t25 10.5zM524 512l-76 -77q-15 -14 -36 -14t-35 14l-142 142q-14 14 -14 35t14 35l77 77zM50 300h1000q21 0 35.5 -14.5 t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe171;" d="M1200 103l-483 276l-314 -399v423h-399l1196 796v-1096zM483 424v-230l683 953z" />
-<glyph unicode="&#xe172;" d="M1100 1000v-850q0 -21 -14.5 -35.5t-35.5 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200z" />
-<glyph unicode="&#xe173;" d="M1100 1000l-2 -149l-299 -299l-95 95q-9 9 -21.5 9t-21.5 -9l-149 -147h-312v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1132 638l106 -106q7 -7 7 -17.5t-7 -17.5l-420 -421q-8 -7 -18 -7 t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l297 297q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe174;" d="M1100 1000v-269l-103 -103l-134 134q-15 15 -33.5 16.5t-34.5 -12.5l-266 -266h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1202 572l70 -70q15 -15 15 -35.5t-15 -35.5l-131 -131 l131 -131q15 -15 15 -35.5t-15 -35.5l-70 -70q-15 -15 -35.5 -15t-35.5 15l-131 131l-131 -131q-15 -15 -35.5 -15t-35.5 15l-70 70q-15 15 -15 35.5t15 35.5l131 131l-131 131q-15 15 -15 35.5t15 35.5l70 70q15 15 35.5 15t35.5 -15l131 -131l131 131q15 15 35.5 15 t35.5 -15z" />
-<glyph unicode="&#xe175;" d="M1100 1000v-300h-350q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM850 600h100q21 0 35.5 -14.5t14.5 -35.5v-250h150q21 0 25 -10.5t-10 -24.5 l-230 -230q-14 -14 -35 -14t-35 14l-230 230q-14 14 -10 24.5t25 10.5h150v250q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe176;" d="M1100 1000v-400l-165 165q-14 15 -35 15t-35 -15l-263 -265h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM935 565l230 -229q14 -15 10 -25.5t-25 -10.5h-150v-250q0 -20 -14.5 -35 t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35v250h-150q-21 0 -25 10.5t10 25.5l230 229q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe177;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-150h-1200v150q0 21 14.5 35.5t35.5 14.5zM1200 800v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v550h1200zM100 500v-200h400v200h-400z" />
-<glyph unicode="&#xe178;" d="M935 1165l248 -230q14 -14 14 -35t-14 -35l-248 -230q-14 -14 -24.5 -10t-10.5 25v150h-400v200h400v150q0 21 10.5 25t24.5 -10zM200 800h-50q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v-200zM400 800h-100v200h100v-200zM18 435l247 230 q14 14 24.5 10t10.5 -25v-150h400v-200h-400v-150q0 -21 -10.5 -25t-24.5 10l-247 230q-15 14 -15 35t15 35zM900 300h-100v200h100v-200zM1000 500h51q20 0 34.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-34.5 -14.5h-51v200z" />
-<glyph unicode="&#xe179;" d="M862 1073l276 116q25 18 43.5 8t18.5 -41v-1106q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v397q-4 1 -11 5t-24 17.5t-30 29t-24 42t-11 56.5v359q0 31 18.5 65t43.5 52zM550 1200q22 0 34.5 -12.5t14.5 -24.5l1 -13v-450q0 -28 -10.5 -59.5 t-25 -56t-29 -45t-25.5 -31.5l-10 -11v-447q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447q-4 4 -11 11.5t-24 30.5t-30 46t-24 55t-11 60v450q0 2 0.5 5.5t4 12t8.5 15t14.5 12t22.5 5.5q20 0 32.5 -12.5t14.5 -24.5l3 -13v-350h100v350v5.5t2.5 12 t7 15t15 12t25.5 5.5q23 0 35.5 -12.5t13.5 -24.5l1 -13v-350h100v350q0 2 0.5 5.5t3 12t7 15t15 12t24.5 5.5z" />
-<glyph unicode="&#xe180;" d="M1200 1100v-56q-4 0 -11 -0.5t-24 -3t-30 -7.5t-24 -15t-11 -24v-888q0 -22 25 -34.5t50 -13.5l25 -2v-56h-400v56q75 0 87.5 6.5t12.5 43.5v394h-500v-394q0 -37 12.5 -43.5t87.5 -6.5v-56h-400v56q4 0 11 0.5t24 3t30 7.5t24 15t11 24v888q0 22 -25 34.5t-50 13.5 l-25 2v56h400v-56q-75 0 -87.5 -6.5t-12.5 -43.5v-394h500v394q0 37 -12.5 43.5t-87.5 6.5v56h400z" />
-<glyph unicode="&#xe181;" d="M675 1000h375q21 0 35.5 -14.5t14.5 -35.5v-150h-105l-295 -98v98l-200 200h-400l100 100h375zM100 900h300q41 0 70.5 -29.5t29.5 -70.5v-500q0 -41 -29.5 -70.5t-70.5 -29.5h-300q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5zM100 800v-200h300v200 h-300zM1100 535l-400 -133v163l400 133v-163zM100 500v-200h300v200h-300zM1100 398v-248q0 -21 -14.5 -35.5t-35.5 -14.5h-375l-100 -100h-375l-100 100h400l200 200h105z" />
-<glyph unicode="&#xe182;" d="M17 1007l162 162q17 17 40 14t37 -22l139 -194q14 -20 11 -44.5t-20 -41.5l-119 -118q102 -142 228 -268t267 -227l119 118q17 17 42.5 19t44.5 -12l192 -136q19 -14 22.5 -37.5t-13.5 -40.5l-163 -162q-3 -1 -9.5 -1t-29.5 2t-47.5 6t-62.5 14.5t-77.5 26.5t-90 42.5 t-101.5 60t-111 83t-119 108.5q-74 74 -133.5 150.5t-94.5 138.5t-60 119.5t-34.5 100t-15 74.5t-4.5 48z" />
-<glyph unicode="&#xe183;" d="M600 1100q92 0 175 -10.5t141.5 -27t108.5 -36.5t81.5 -40t53.5 -37t31 -27l9 -10v-200q0 -21 -14.5 -33t-34.5 -9l-202 34q-20 3 -34.5 20t-14.5 38v146q-141 24 -300 24t-300 -24v-146q0 -21 -14.5 -38t-34.5 -20l-202 -34q-20 -3 -34.5 9t-14.5 33v200q3 4 9.5 10.5 t31 26t54 37.5t80.5 39.5t109 37.5t141 26.5t175 10.5zM600 795q56 0 97 -9.5t60 -23.5t30 -28t12 -24l1 -10v-50l365 -303q14 -15 24.5 -40t10.5 -45v-212q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v212q0 20 10.5 45t24.5 40l365 303v50 q0 4 1 10.5t12 23t30 29t60 22.5t97 10z" />
-<glyph unicode="&#xe184;" d="M1100 700l-200 -200h-600l-200 200v500h200v-200h200v200h200v-200h200v200h200v-500zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5 t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe185;" d="M700 1100h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-1000h300v1000q0 41 -29.5 70.5t-70.5 29.5zM1100 800h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-700h300v700q0 41 -29.5 70.5t-70.5 29.5zM400 0h-300v400q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-400z " />
-<glyph unicode="&#xe186;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
-<glyph unicode="&#xe187;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 300h-100v200h-100v-200h-100v500h100v-200h100v200h100v-500zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
-<glyph unicode="&#xe188;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-300h200v-100h-300v500h300v-100zM900 700h-200v-300h200v-100h-300v500h300v-100z" />
-<glyph unicode="&#xe189;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 400l-300 150l300 150v-300zM900 550l-300 -150v300z" />
-<glyph unicode="&#xe190;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM900 300h-700v500h700v-500zM800 700h-130q-38 0 -66.5 -43t-28.5 -108t27 -107t68 -42h130v300zM300 700v-300 h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130z" />
-<glyph unicode="&#xe191;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 300h-100v400h-100v100h200v-500z M700 300h-100v100h100v-100z" />
-<glyph unicode="&#xe192;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM300 700h200v-400h-300v500h100v-100zM900 300h-100v400h-100v100h200v-500zM300 600v-200h100v200h-100z M700 300h-100v100h100v-100z" />
-<glyph unicode="&#xe193;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 500l-199 -200h-100v50l199 200v150h-200v100h300v-300zM900 300h-100v400h-100v100h200v-500zM701 300h-100 v100h100v-100z" />
-<glyph unicode="&#xe194;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700h-300v-200h300v-100h-300l-100 100v200l100 100h300v-100z" />
-<glyph unicode="&#xe195;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700v-100l-50 -50l100 -100v-50h-100l-100 100h-150v-100h-100v400h300zM500 700v-100h200v100h-200z" />
-<glyph unicode="&#xe197;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -207t-85 -207t-205 -86.5h-128v250q0 21 -14.5 35.5t-35.5 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-250h-222q-80 0 -136 57.5t-56 136.5q0 69 43 122.5t108 67.5q-2 19 -2 37q0 100 49 185 t134 134t185 49zM525 500h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -244q-13 -16 -32 -16t-32 16l-223 244q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe198;" d="M502 1089q110 0 201 -59.5t135 -156.5q43 15 89 15q121 0 206 -86.5t86 -206.5q0 -99 -60 -181t-150 -110l-378 360q-13 16 -31.5 16t-31.5 -16l-381 -365h-9q-79 0 -135.5 57.5t-56.5 136.5q0 69 43 122.5t108 67.5q-2 19 -2 38q0 100 49 184.5t133.5 134t184.5 49.5z M632 467l223 -228q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5q199 204 223 228q19 19 31.5 19t32.5 -19z" />
-<glyph unicode="&#xe199;" d="M700 100v100h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170l-270 -300h400v-100h-50q-21 0 -35.5 -14.5t-14.5 -35.5v-50h400v50q0 21 -14.5 35.5t-35.5 14.5h-50z" />
-<glyph unicode="&#xe200;" d="M600 1179q94 0 167.5 -56.5t99.5 -145.5q89 -6 150.5 -71.5t61.5 -155.5q0 -61 -29.5 -112.5t-79.5 -82.5q9 -29 9 -55q0 -74 -52.5 -126.5t-126.5 -52.5q-55 0 -100 30v-251q21 0 35.5 -14.5t14.5 -35.5v-50h-300v50q0 21 14.5 35.5t35.5 14.5v251q-45 -30 -100 -30 q-74 0 -126.5 52.5t-52.5 126.5q0 18 4 38q-47 21 -75.5 65t-28.5 97q0 74 52.5 126.5t126.5 52.5q5 0 23 -2q0 2 -1 10t-1 13q0 116 81.5 197.5t197.5 81.5z" />
-<glyph unicode="&#xe201;" d="M1010 1010q111 -111 150.5 -260.5t0 -299t-150.5 -260.5q-83 -83 -191.5 -126.5t-218.5 -43.5t-218.5 43.5t-191.5 126.5q-111 111 -150.5 260.5t0 299t150.5 260.5q83 83 191.5 126.5t218.5 43.5t218.5 -43.5t191.5 -126.5zM476 1065q-4 0 -8 -1q-121 -34 -209.5 -122.5 t-122.5 -209.5q-4 -12 2.5 -23t18.5 -14l36 -9q3 -1 7 -1q23 0 29 22q27 96 98 166q70 71 166 98q11 3 17.5 13.5t3.5 22.5l-9 35q-3 13 -14 19q-7 4 -15 4zM512 920q-4 0 -9 -2q-80 -24 -138.5 -82.5t-82.5 -138.5q-4 -13 2 -24t19 -14l34 -9q4 -1 8 -1q22 0 28 21 q18 58 58.5 98.5t97.5 58.5q12 3 18 13.5t3 21.5l-9 35q-3 12 -14 19q-7 4 -15 4zM719.5 719.5q-49.5 49.5 -119.5 49.5t-119.5 -49.5t-49.5 -119.5t49.5 -119.5t119.5 -49.5t119.5 49.5t49.5 119.5t-49.5 119.5zM855 551q-22 0 -28 -21q-18 -58 -58.5 -98.5t-98.5 -57.5 q-11 -4 -17 -14.5t-3 -21.5l9 -35q3 -12 14 -19q7 -4 15 -4q4 0 9 2q80 24 138.5 82.5t82.5 138.5q4 13 -2.5 24t-18.5 14l-34 9q-4 1 -8 1zM1000 515q-23 0 -29 -22q-27 -96 -98 -166q-70 -71 -166 -98q-11 -3 -17.5 -13.5t-3.5 -22.5l9 -35q3 -13 14 -19q7 -4 15 -4 q4 0 8 1q121 34 209.5 122.5t122.5 209.5q4 12 -2.5 23t-18.5 14l-36 9q-3 1 -7 1z" />
-<glyph unicode="&#xe202;" d="M700 800h300v-380h-180v200h-340v-200h-380v755q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM700 300h162l-212 -212l-212 212h162v200h100v-200zM520 0h-395q-10 0 -17.5 7.5t-7.5 17.5v395zM1000 220v-195q0 -10 -7.5 -17.5t-17.5 -7.5h-195z" />
-<glyph unicode="&#xe203;" d="M700 800h300v-520l-350 350l-550 -550v1095q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM862 200h-162v-200h-100v200h-162l212 212zM480 0h-355q-10 0 -17.5 7.5t-7.5 17.5v55h380v-80zM1000 80v-55q0 -10 -7.5 -17.5t-17.5 -7.5h-155v80h180z" />
-<glyph unicode="&#xe204;" d="M1162 800h-162v-200h100l100 -100h-300v300h-162l212 212zM200 800h200q27 0 40 -2t29.5 -10.5t23.5 -30t7 -57.5h300v-100h-600l-200 -350v450h100q0 36 7 57.5t23.5 30t29.5 10.5t40 2zM800 400h240l-240 -400h-800l300 500h500v-100z" />
-<glyph unicode="&#xe205;" d="M650 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM1000 850v150q41 0 70.5 -29.5t29.5 -70.5v-800 q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-1 0 -20 4l246 246l-326 326v324q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM412 250l-212 -212v162h-200v100h200v162z" />
-<glyph unicode="&#xe206;" d="M450 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM800 850v150q41 0 70.5 -29.5t29.5 -70.5v-500 h-200v-300h200q0 -36 -7 -57.5t-23.5 -30t-29.5 -10.5t-40 -2h-600q-41 0 -70.5 29.5t-29.5 70.5v800q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM1212 250l-212 -212v162h-200v100h200v162z" />
-<glyph unicode="&#xe209;" d="M658 1197l637 -1104q23 -38 7 -65.5t-60 -27.5h-1276q-44 0 -60 27.5t7 65.5l637 1104q22 39 54 39t54 -39zM704 800h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM500 300v-100h200 v100h-200z" />
-<glyph unicode="&#xe210;" d="M425 1100h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM825 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM25 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5zM425 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5 v150q0 10 7.5 17.5t17.5 7.5zM25 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe211;" d="M700 1200h100v-200h-100v-100h350q62 0 86.5 -39.5t-3.5 -94.5l-66 -132q-41 -83 -81 -134h-772q-40 51 -81 134l-66 132q-28 55 -3.5 94.5t86.5 39.5h350v100h-100v200h100v100h200v-100zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100 h-950l138 100h-13q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe212;" d="M600 1300q40 0 68.5 -29.5t28.5 -70.5h-194q0 41 28.5 70.5t68.5 29.5zM443 1100h314q18 -37 18 -75q0 -8 -3 -25h328q41 0 44.5 -16.5t-30.5 -38.5l-175 -145h-678l-178 145q-34 22 -29 38.5t46 16.5h328q-3 17 -3 25q0 38 18 75zM250 700h700q21 0 35.5 -14.5 t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-150v-200l275 -200h-950l275 200v200h-150q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe213;" d="M600 1181q75 0 128 -53t53 -128t-53 -128t-128 -53t-128 53t-53 128t53 128t128 53zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13 l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe214;" d="M600 1300q47 0 92.5 -53.5t71 -123t25.5 -123.5q0 -78 -55.5 -133.5t-133.5 -55.5t-133.5 55.5t-55.5 133.5q0 62 34 143l144 -143l111 111l-163 163q34 26 63 26zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45 zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe215;" d="M600 1200l300 -161v-139h-300q0 -57 18.5 -108t50 -91.5t63 -72t70 -67.5t57.5 -61h-530q-60 83 -90.5 177.5t-30.5 178.5t33 164.5t87.5 139.5t126 96.5t145.5 41.5v-98zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100 h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe216;" d="M600 1300q41 0 70.5 -29.5t29.5 -70.5v-78q46 -26 73 -72t27 -100v-50h-400v50q0 54 27 100t73 72v78q0 41 29.5 70.5t70.5 29.5zM400 800h400q54 0 100 -27t72 -73h-172v-100h200v-100h-200v-100h200v-100h-200v-100h200q0 -83 -58.5 -141.5t-141.5 -58.5h-400 q-83 0 -141.5 58.5t-58.5 141.5v400q0 83 58.5 141.5t141.5 58.5z" />
-<glyph unicode="&#xe218;" d="M150 1100h900q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM125 400h950q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-283l224 -224q13 -13 13 -31.5t-13 -32 t-31.5 -13.5t-31.5 13l-88 88h-524l-87 -88q-13 -13 -32 -13t-32 13.5t-13 32t13 31.5l224 224h-289q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM541 300l-100 -100h324l-100 100h-124z" />
-<glyph unicode="&#xe219;" d="M200 1100h800q83 0 141.5 -58.5t58.5 -141.5v-200h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100v200q0 83 58.5 141.5t141.5 58.5zM100 600h1000q41 0 70.5 -29.5 t29.5 -70.5v-300h-1200v300q0 41 29.5 70.5t70.5 29.5zM300 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200zM1100 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200z" />
-<glyph unicode="&#xe221;" d="M480 1165l682 -683q31 -31 31 -75.5t-31 -75.5l-131 -131h-481l-517 518q-32 31 -32 75.5t32 75.5l295 296q31 31 75.5 31t76.5 -31zM108 794l342 -342l303 304l-341 341zM250 100h800q21 0 35.5 -14.5t14.5 -35.5v-50h-900v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe223;" d="M1057 647l-189 506q-8 19 -27.5 33t-40.5 14h-400q-21 0 -40.5 -14t-27.5 -33l-189 -506q-8 -19 1.5 -33t30.5 -14h625v-150q0 -21 14.5 -35.5t35.5 -14.5t35.5 14.5t14.5 35.5v150h125q21 0 30.5 14t1.5 33zM897 0h-595v50q0 21 14.5 35.5t35.5 14.5h50v50 q0 21 14.5 35.5t35.5 14.5h48v300h200v-300h47q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-50z" />
-<glyph unicode="&#xe224;" d="M900 800h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-375v591l-300 300v84q0 10 7.5 17.5t17.5 7.5h375v-400zM1200 900h-200v200zM400 600h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-650q-10 0 -17.5 7.5t-7.5 17.5v950q0 10 7.5 17.5t17.5 7.5h375v-400zM700 700h-200v200z " />
-<glyph unicode="&#xe225;" d="M484 1095h195q75 0 146 -32.5t124 -86t89.5 -122.5t48.5 -142q18 -14 35 -20q31 -10 64.5 6.5t43.5 48.5q10 34 -15 71q-19 27 -9 43q5 8 12.5 11t19 -1t23.5 -16q41 -44 39 -105q-3 -63 -46 -106.5t-104 -43.5h-62q-7 -55 -35 -117t-56 -100l-39 -234q-3 -20 -20 -34.5 t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l12 70q-49 -14 -91 -14h-195q-24 0 -65 8l-11 -64q-3 -20 -20 -34.5t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l26 157q-84 74 -128 175l-159 53q-19 7 -33 26t-14 40v50q0 21 14.5 35.5t35.5 14.5h124q11 87 56 166l-111 95 q-16 14 -12.5 23.5t24.5 9.5h203q116 101 250 101zM675 1000h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h250q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe226;" d="M641 900l423 247q19 8 42 2.5t37 -21.5l32 -38q14 -15 12.5 -36t-17.5 -34l-139 -120h-390zM50 1100h106q67 0 103 -17t66 -71l102 -212h823q21 0 35.5 -14.5t14.5 -35.5v-50q0 -21 -14 -40t-33 -26l-737 -132q-23 -4 -40 6t-26 25q-42 67 -100 67h-300q-62 0 -106 44 t-44 106v200q0 62 44 106t106 44zM173 928h-80q-19 0 -28 -14t-9 -35v-56q0 -51 42 -51h134q16 0 21.5 8t5.5 24q0 11 -16 45t-27 51q-18 28 -43 28zM550 727q-32 0 -54.5 -22.5t-22.5 -54.5t22.5 -54.5t54.5 -22.5t54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5zM130 389 l152 130q18 19 34 24t31 -3.5t24.5 -17.5t25.5 -28q28 -35 50.5 -51t48.5 -13l63 5l48 -179q13 -61 -3.5 -97.5t-67.5 -79.5l-80 -69q-47 -40 -109 -35.5t-103 51.5l-130 151q-40 47 -35.5 109.5t51.5 102.5zM380 377l-102 -88q-31 -27 2 -65l37 -43q13 -15 27.5 -19.5 t31.5 6.5l61 53q19 16 14 49q-2 20 -12 56t-17 45q-11 12 -19 14t-23 -8z" />
-<glyph unicode="&#xe227;" d="M625 1200h150q10 0 17.5 -7.5t7.5 -17.5v-109q79 -33 131 -87.5t53 -128.5q1 -46 -15 -84.5t-39 -61t-46 -38t-39 -21.5l-17 -6q6 0 15 -1.5t35 -9t50 -17.5t53 -30t50 -45t35.5 -64t14.5 -84q0 -59 -11.5 -105.5t-28.5 -76.5t-44 -51t-49.5 -31.5t-54.5 -16t-49.5 -6.5 t-43.5 -1v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-100v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-175q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v600h-75q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5h175v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h100v75q0 10 7.5 17.5t17.5 7.5zM400 900v-200h263q28 0 48.5 10.5t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-263zM400 500v-200h363q28 0 48.5 10.5 t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-363z" />
-<glyph unicode="&#xe230;" d="M212 1198h780q86 0 147 -61t61 -147v-416q0 -51 -18 -142.5t-36 -157.5l-18 -66q-29 -87 -93.5 -146.5t-146.5 -59.5h-572q-82 0 -147 59t-93 147q-8 28 -20 73t-32 143.5t-20 149.5v416q0 86 61 147t147 61zM600 1045q-70 0 -132.5 -11.5t-105.5 -30.5t-78.5 -41.5 t-57 -45t-36 -41t-20.5 -30.5l-6 -12l156 -243h560l156 243q-2 5 -6 12.5t-20 29.5t-36.5 42t-57 44.5t-79 42t-105 29.5t-132.5 12zM762 703h-157l195 261z" />
-<glyph unicode="&#xe231;" d="M475 1300h150q103 0 189 -86t86 -189v-500q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
-<glyph unicode="&#xe232;" d="M475 1300h96q0 -150 89.5 -239.5t239.5 -89.5v-446q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
-<glyph unicode="&#xe233;" d="M1294 767l-638 -283l-378 170l-78 -60v-224l100 -150v-199l-150 148l-150 -149v200l100 150v250q0 4 -0.5 10.5t0 9.5t1 8t3 8t6.5 6l47 40l-147 65l642 283zM1000 380l-350 -166l-350 166v147l350 -165l350 165v-147z" />
-<glyph unicode="&#xe234;" d="M250 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM650 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM1050 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
-<glyph unicode="&#xe235;" d="M550 1100q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 700q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 300q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
-<glyph unicode="&#xe236;" d="M125 1100h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM125 700h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM125 300h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe237;" d="M350 1200h500q162 0 256 -93.5t94 -256.5v-500q0 -165 -93.5 -257.5t-256.5 -92.5h-500q-165 0 -257.5 92.5t-92.5 257.5v500q0 165 92.5 257.5t257.5 92.5zM900 1000h-600q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h600q41 0 70.5 29.5 t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5zM350 900h500q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-500q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 14.5 35.5t35.5 14.5zM400 800v-200h400v200h-400z" />
-<glyph unicode="&#xe238;" d="M150 1100h1000q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe239;" d="M650 1187q87 -67 118.5 -156t0 -178t-118.5 -155q-87 66 -118.5 155t0 178t118.5 156zM300 800q124 0 212 -88t88 -212q-124 0 -212 88t-88 212zM1000 800q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM300 500q124 0 212 -88t88 -212q-124 0 -212 88t-88 212z M1000 500q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM700 199v-144q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v142q40 -4 43 -4q17 0 57 6z" />
-<glyph unicode="&#xe240;" d="M745 878l69 19q25 6 45 -12l298 -295q11 -11 15 -26.5t-2 -30.5q-5 -14 -18 -23.5t-28 -9.5h-8q1 0 1 -13q0 -29 -2 -56t-8.5 -62t-20 -63t-33 -53t-51 -39t-72.5 -14h-146q-184 0 -184 288q0 24 10 47q-20 4 -62 4t-63 -4q11 -24 11 -47q0 -288 -184 -288h-142 q-48 0 -84.5 21t-56 51t-32 71.5t-16 75t-3.5 68.5q0 13 2 13h-7q-15 0 -27.5 9.5t-18.5 23.5q-6 15 -2 30.5t15 25.5l298 296q20 18 46 11l76 -19q20 -5 30.5 -22.5t5.5 -37.5t-22.5 -31t-37.5 -5l-51 12l-182 -193h891l-182 193l-44 -12q-20 -5 -37.5 6t-22.5 31t6 37.5 t31 22.5z" />
-<glyph unicode="&#xe241;" d="M1200 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM500 450h-25q0 15 -4 24.5t-9 14.5t-17 7.5t-20 3t-25 0.5h-100v-425q0 -11 12.5 -17.5t25.5 -7.5h12v-50h-200v50q50 0 50 25v425h-100q-17 0 -25 -0.5t-20 -3t-17 -7.5t-9 -14.5t-4 -24.5h-25v150h500v-150z" />
-<glyph unicode="&#xe242;" d="M1000 300v50q-25 0 -55 32q-14 14 -25 31t-16 27l-4 11l-289 747h-69l-300 -754q-18 -35 -39 -56q-9 -9 -24.5 -18.5t-26.5 -14.5l-11 -5v-50h273v50q-49 0 -78.5 21.5t-11.5 67.5l69 176h293l61 -166q13 -34 -3.5 -66.5t-55.5 -32.5v-50h312zM412 691l134 342l121 -342 h-255zM1100 150v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5z" />
-<glyph unicode="&#xe243;" d="M50 1200h1100q21 0 35.5 -14.5t14.5 -35.5v-1100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5zM611 1118h-70q-13 0 -18 -12l-299 -753q-17 -32 -35 -51q-18 -18 -56 -34q-12 -5 -12 -18v-50q0 -8 5.5 -14t14.5 -6 h273q8 0 14 6t6 14v50q0 8 -6 14t-14 6q-55 0 -71 23q-10 14 0 39l63 163h266l57 -153q11 -31 -6 -55q-12 -17 -36 -17q-8 0 -14 -6t-6 -14v-50q0 -8 6 -14t14 -6h313q8 0 14 6t6 14v50q0 7 -5.5 13t-13.5 7q-17 0 -42 25q-25 27 -40 63h-1l-288 748q-5 12 -19 12zM639 611 h-197l103 264z" />
-<glyph unicode="&#xe244;" d="M1200 1100h-1200v100h1200v-100zM50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 1000h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM700 900v-300h300v300h-300z" />
-<glyph unicode="&#xe245;" d="M50 1200h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 700h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM700 600v-300h300v300h-300zM1200 0h-1200v100h1200v-100z" />
-<glyph unicode="&#xe246;" d="M50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-350h100v150q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-150h100v-100h-100v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v150h-100v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM700 700v-300h300v300h-300z" />
-<glyph unicode="&#xe247;" d="M100 0h-100v1200h100v-1200zM250 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM300 1000v-300h300v300h-300zM250 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe248;" d="M600 1100h150q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-100h450q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h350v100h-150q-21 0 -35.5 14.5 t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h150v100h100v-100zM400 1000v-300h300v300h-300z" />
-<glyph unicode="&#xe249;" d="M1200 0h-100v1200h100v-1200zM550 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM600 1000v-300h300v300h-300zM50 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe250;" d="M865 565l-494 -494q-23 -23 -41 -23q-14 0 -22 13.5t-8 38.5v1000q0 25 8 38.5t22 13.5q18 0 41 -23l494 -494q14 -14 14 -35t-14 -35z" />
-<glyph unicode="&#xe251;" d="M335 635l494 494q29 29 50 20.5t21 -49.5v-1000q0 -41 -21 -49.5t-50 20.5l-494 494q-14 14 -14 35t14 35z" />
-<glyph unicode="&#xe252;" d="M100 900h1000q41 0 49.5 -21t-20.5 -50l-494 -494q-14 -14 -35 -14t-35 14l-494 494q-29 29 -20.5 50t49.5 21z" />
-<glyph unicode="&#xe253;" d="M635 865l494 -494q29 -29 20.5 -50t-49.5 -21h-1000q-41 0 -49.5 21t20.5 50l494 494q14 14 35 14t35 -14z" />
-<glyph unicode="&#xe254;" d="M700 741v-182l-692 -323v221l413 193l-413 193v221zM1200 0h-800v200h800v-200z" />
-<glyph unicode="&#xe255;" d="M1200 900h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300zM0 700h50q0 21 4 37t9.5 26.5t18 17.5t22 11t28.5 5.5t31 2t37 0.5h100v-550q0 -22 -25 -34.5t-50 -13.5l-25 -2v-100h400v100q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5v550h100q25 0 37 -0.5t31 -2 t28.5 -5.5t22 -11t18 -17.5t9.5 -26.5t4 -37h50v300h-800v-300z" />
-<glyph unicode="&#xe256;" d="M800 700h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-100v-550q0 -22 25 -34.5t50 -14.5l25 -1v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v550h-100q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h800v-300zM1100 200h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300z" />
-<glyph unicode="&#xe257;" d="M701 1098h160q16 0 21 -11t-7 -23l-464 -464l464 -464q12 -12 7 -23t-21 -11h-160q-13 0 -23 9l-471 471q-7 8 -7 18t7 18l471 471q10 9 23 9z" />
-<glyph unicode="&#xe258;" d="M339 1098h160q13 0 23 -9l471 -471q7 -8 7 -18t-7 -18l-471 -471q-10 -9 -23 -9h-160q-16 0 -21 11t7 23l464 464l-464 464q-12 12 -7 23t21 11z" />
-<glyph unicode="&#xe259;" d="M1087 882q11 -5 11 -21v-160q0 -13 -9 -23l-471 -471q-8 -7 -18 -7t-18 7l-471 471q-9 10 -9 23v160q0 16 11 21t23 -7l464 -464l464 464q12 12 23 7z" />
-<glyph unicode="&#xe260;" d="M618 993l471 -471q9 -10 9 -23v-160q0 -16 -11 -21t-23 7l-464 464l-464 -464q-12 -12 -23 -7t-11 21v160q0 13 9 23l471 471q8 7 18 7t18 -7z" />
-<glyph unicode="&#xf8ff;" d="M1000 1200q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM450 1000h100q21 0 40 -14t26 -33l79 -194q5 1 16 3q34 6 54 9.5t60 7t65.5 1t61 -10t56.5 -23t42.5 -42t29 -64t5 -92t-19.5 -121.5q-1 -7 -3 -19.5t-11 -50t-20.5 -73t-32.5 -81.5t-46.5 -83t-64 -70 t-82.5 -50q-13 -5 -42 -5t-65.5 2.5t-47.5 2.5q-14 0 -49.5 -3.5t-63 -3.5t-43.5 7q-57 25 -104.5 78.5t-75 111.5t-46.5 112t-26 90l-7 35q-15 63 -18 115t4.5 88.5t26 64t39.5 43.5t52 25.5t58.5 13t62.5 2t59.5 -4.5t55.5 -8l-147 192q-12 18 -5.5 30t27.5 12z" />
-<glyph unicode="&#x1f511;" d="M250 1200h600q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-500l-255 -178q-19 -9 -32 -1t-13 29v650h-150q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM400 1100v-100h300v100h-300z" />
-<glyph unicode="&#x1f6aa;" d="M250 1200h750q39 0 69.5 -40.5t30.5 -84.5v-933l-700 -117v950l600 125h-700v-1000h-100v1025q0 23 15.5 49t34.5 26zM500 525v-100l100 20v100z" />
-</font>
-</defs></svg> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
deleted file mode 100644
index 1413fc60..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
deleted file mode 100644
index 9e612858..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
deleted file mode 100644
index 64539b54..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/js/bootstrap.min.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/js/bootstrap.min.js
deleted file mode 100644
index 9bcd2fcc..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/bootstrap/dist/js/bootstrap.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Bootstrap v3.3.7 (http://getbootstrap.com)
- * Copyright 2011-2016 Twitter, Inc.
- * Licensed under the MIT license
- */
-if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=window.SVGElement&&c instanceof window.SVGElement,g=d?{top:0,left:0}:f?null:b.offset(),h={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},i=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,h,i,g)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){
-this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&e<=c?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/css/font-awesome.min.css b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/css/font-awesome.min.css
deleted file mode 100644
index 540440ce..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/css/font-awesome.min.css
+++ /dev/null
@@ -1,4 +0,0 @@
-/*!
- * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
- * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
- */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.7.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/FontAwesome.otf b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/FontAwesome.otf
deleted file mode 100644
index 401ec0f3..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/FontAwesome.otf
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.eot b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.eot
deleted file mode 100644
index e9f60ca9..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.eot
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.svg b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.svg
deleted file mode 100644
index 855c845e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.svg
+++ /dev/null
@@ -1,2671 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg>
-<metadata>
-Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016
- By ,,,
-Copyright Dave Gandy 2016. All rights reserved.
-</metadata>
-<defs>
-<font id="FontAwesome" horiz-adv-x="1536" >
- <font-face
- font-family="FontAwesome"
- font-weight="400"
- font-stretch="normal"
- units-per-em="1792"
- panose-1="0 0 0 0 0 0 0 0 0 0"
- ascent="1536"
- descent="-256"
- bbox="-1.02083 -256.962 2304.6 1537.02"
- underline-thickness="0"
- underline-position="0"
- unicode-range="U+0020-F500"
- />
-<missing-glyph horiz-adv-x="896"
-d="M224 112h448v1312h-448v-1312zM112 0v1536h672v-1536h-672z" />
- <glyph glyph-name=".notdef" horiz-adv-x="896"
-d="M224 112h448v1312h-448v-1312zM112 0v1536h672v-1536h-672z" />
- <glyph glyph-name=".null" horiz-adv-x="0"
- />
- <glyph glyph-name="nonmarkingreturn" horiz-adv-x="597"
- />
- <glyph glyph-name="space" unicode=" " horiz-adv-x="448"
- />
- <glyph glyph-name="dieresis" unicode="&#xa8;" horiz-adv-x="1792"
- />
- <glyph glyph-name="copyright" unicode="&#xa9;" horiz-adv-x="1792"
- />
- <glyph glyph-name="registered" unicode="&#xae;" horiz-adv-x="1792"
- />
- <glyph glyph-name="acute" unicode="&#xb4;" horiz-adv-x="1792"
- />
- <glyph glyph-name="AE" unicode="&#xc6;" horiz-adv-x="1792"
- />
- <glyph glyph-name="Oslash" unicode="&#xd8;" horiz-adv-x="1792"
- />
- <glyph glyph-name="trademark" unicode="&#x2122;" horiz-adv-x="1792"
- />
- <glyph glyph-name="infinity" unicode="&#x221e;" horiz-adv-x="1792"
- />
- <glyph glyph-name="notequal" unicode="&#x2260;" horiz-adv-x="1792"
- />
- <glyph glyph-name="glass" unicode="&#xf000;" horiz-adv-x="1792"
-d="M1699 1350q0 -35 -43 -78l-632 -632v-768h320q26 0 45 -19t19 -45t-19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45t45 19h320v768l-632 632q-43 43 -43 78q0 23 18 36.5t38 17.5t43 4h1408q23 0 43 -4t38 -17.5t18 -36.5z" />
- <glyph glyph-name="music" unicode="&#xf001;"
-d="M1536 1312v-1120q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v537l-768 -237v-709q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89
-t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v967q0 31 19 56.5t49 35.5l832 256q12 4 28 4q40 0 68 -28t28 -68z" />
- <glyph glyph-name="search" unicode="&#xf002;" horiz-adv-x="1664"
-d="M1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -52 -38 -90t-90 -38q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5
-t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
- <glyph glyph-name="envelope" unicode="&#xf003;" horiz-adv-x="1792"
-d="M1664 32v768q-32 -36 -69 -66q-268 -206 -426 -338q-51 -43 -83 -67t-86.5 -48.5t-102.5 -24.5h-1h-1q-48 0 -102.5 24.5t-86.5 48.5t-83 67q-158 132 -426 338q-37 30 -69 66v-768q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1664 1083v11v13.5t-0.5 13
-t-3 12.5t-5.5 9t-9 7.5t-14 2.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5q0 -168 147 -284q193 -152 401 -317q6 -5 35 -29.5t46 -37.5t44.5 -31.5t50.5 -27.5t43 -9h1h1q20 0 43 9t50.5 27.5t44.5 31.5t46 37.5t35 29.5q208 165 401 317q54 43 100.5 115.5t46.5 131.5z
-M1792 1120v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
- <glyph glyph-name="heart" unicode="&#xf004;" horiz-adv-x="1792"
-d="M896 -128q-26 0 -44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124t127 -344q0 -221 -229 -450l-623 -600
-q-18 -18 -44 -18z" />
- <glyph glyph-name="star" unicode="&#xf005;" horiz-adv-x="1664"
-d="M1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -21 -10.5 -35.5t-30.5 -14.5q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455
-l502 -73q56 -9 56 -46z" />
- <glyph glyph-name="star_empty" unicode="&#xf006;" horiz-adv-x="1664"
-d="M1137 532l306 297l-422 62l-189 382l-189 -382l-422 -62l306 -297l-73 -421l378 199l377 -199zM1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -50 -41 -50q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500
-l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455l502 -73q56 -9 56 -46z" />
- <glyph glyph-name="user" unicode="&#xf007;" horiz-adv-x="1280"
-d="M1280 137q0 -109 -62.5 -187t-150.5 -78h-854q-88 0 -150.5 78t-62.5 187q0 85 8.5 160.5t31.5 152t58.5 131t94 89t134.5 34.5q131 -128 313 -128t313 128q76 0 134.5 -34.5t94 -89t58.5 -131t31.5 -152t8.5 -160.5zM1024 1024q0 -159 -112.5 -271.5t-271.5 -112.5
-t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" />
- <glyph glyph-name="film" unicode="&#xf008;" horiz-adv-x="1920"
-d="M384 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 320v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 704v128q0 26 -19 45t-45 19h-128
-q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 -64v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM384 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45
-t45 -19h128q26 0 45 19t19 45zM1792 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 704v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1792 320v128
-q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 704v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19
-t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1920 1248v-1344q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1344q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
- <glyph glyph-name="th_large" unicode="&#xf009;" horiz-adv-x="1664"
-d="M768 512v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM768 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 512v-384q0 -52 -38 -90t-90 -38
-h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
- <glyph glyph-name="th" unicode="&#xf00a;" horiz-adv-x="1792"
-d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 288v-192q0 -40 -28 -68t-68 -28h-320
-q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28
-h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192
-q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68z" />
- <glyph glyph-name="th_list" unicode="&#xf00b;" horiz-adv-x="1792"
-d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-960
-q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28
-h960q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68z" />
- <glyph glyph-name="ok" unicode="&#xf00c;" horiz-adv-x="1792"
-d="M1671 970q0 -40 -28 -68l-724 -724l-136 -136q-28 -28 -68 -28t-68 28l-136 136l-362 362q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -295l656 657q28 28 68 28t68 -28l136 -136q28 -28 28 -68z" />
- <glyph glyph-name="remove" unicode="&#xf00d;" horiz-adv-x="1408"
-d="M1298 214q0 -40 -28 -68l-136 -136q-28 -28 -68 -28t-68 28l-294 294l-294 -294q-28 -28 -68 -28t-68 28l-136 136q-28 28 -28 68t28 68l294 294l-294 294q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -294l294 294q28 28 68 28t68 -28l136 -136q28 -28 28 -68
-t-28 -68l-294 -294l294 -294q28 -28 28 -68z" />
- <glyph glyph-name="zoom_in" unicode="&#xf00e;" horiz-adv-x="1664"
-d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-224q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v224h-224q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h224v224q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-224h224
-q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5
-t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
- <glyph glyph-name="zoom_out" unicode="&#xf010;" horiz-adv-x="1664"
-d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-576q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h576q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5z
-M1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z
-" />
- <glyph glyph-name="off" unicode="&#xf011;"
-d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61t-298 61t-245 164t-164 245t-61 298q0 182 80.5 343t226.5 270q43 32 95.5 25t83.5 -50q32 -42 24.5 -94.5t-49.5 -84.5q-98 -74 -151.5 -181t-53.5 -228q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5
-t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5q0 121 -53.5 228t-151.5 181q-42 32 -49.5 84.5t24.5 94.5q31 43 84 50t95 -25q146 -109 226.5 -270t80.5 -343zM896 1408v-640q0 -52 -38 -90t-90 -38t-90 38t-38 90v640q0 52 38 90t90 38t90 -38t38 -90z" />
- <glyph glyph-name="signal" unicode="&#xf012;" horiz-adv-x="1792"
-d="M256 96v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 224v-320q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 480v-576q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23
-v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1408 864v-960q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1376v-1472q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1472q0 14 9 23t23 9h192q14 0 23 -9t9 -23z" />
- <glyph glyph-name="cog" unicode="&#xf013;"
-d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1536 749v-222q0 -12 -8 -23t-20 -13l-185 -28q-19 -54 -39 -91q35 -50 107 -138q10 -12 10 -25t-9 -23q-27 -37 -99 -108t-94 -71q-12 0 -26 9l-138 108q-44 -23 -91 -38
-q-16 -136 -29 -186q-7 -28 -36 -28h-222q-14 0 -24.5 8.5t-11.5 21.5l-28 184q-49 16 -90 37l-141 -107q-10 -9 -25 -9q-14 0 -25 11q-126 114 -165 168q-7 10 -7 23q0 12 8 23q15 21 51 66.5t54 70.5q-27 50 -41 99l-183 27q-13 2 -21 12.5t-8 23.5v222q0 12 8 23t19 13
-l186 28q14 46 39 92q-40 57 -107 138q-10 12 -10 24q0 10 9 23q26 36 98.5 107.5t94.5 71.5q13 0 26 -10l138 -107q44 23 91 38q16 136 29 186q7 28 36 28h222q14 0 24.5 -8.5t11.5 -21.5l28 -184q49 -16 90 -37l142 107q9 9 24 9q13 0 25 -10q129 -119 165 -170q7 -8 7 -22
-q0 -12 -8 -23q-15 -21 -51 -66.5t-54 -70.5q26 -50 41 -98l183 -28q13 -2 21 -12.5t8 -23.5z" />
- <glyph glyph-name="trash" unicode="&#xf014;" horiz-adv-x="1408"
-d="M512 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM768 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1024 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576
-q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1152 76v948h-896v-948q0 -22 7 -40.5t14.5 -27t10.5 -8.5h832q3 0 10.5 8.5t14.5 27t7 40.5zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832
-q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
- <glyph glyph-name="home" unicode="&#xf015;" horiz-adv-x="1664"
-d="M1408 544v-480q0 -26 -19 -45t-45 -19h-384v384h-256v-384h-384q-26 0 -45 19t-19 45v480q0 1 0.5 3t0.5 3l575 474l575 -474q1 -2 1 -6zM1631 613l-62 -74q-8 -9 -21 -11h-3q-13 0 -21 7l-692 577l-692 -577q-12 -8 -24 -7q-13 2 -21 11l-62 74q-8 10 -7 23.5t11 21.5
-l719 599q32 26 76 26t76 -26l244 -204v195q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-408l219 -182q10 -8 11 -21.5t-7 -23.5z" />
- <glyph glyph-name="file_alt" unicode="&#xf016;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-" />
- <glyph glyph-name="time" unicode="&#xf017;"
-d="M896 992v-448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640
-q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="road" unicode="&#xf018;" horiz-adv-x="1920"
-d="M1111 540v4l-24 320q-1 13 -11 22.5t-23 9.5h-186q-13 0 -23 -9.5t-11 -22.5l-24 -320v-4q-1 -12 8 -20t21 -8h244q12 0 21 8t8 20zM1870 73q0 -73 -46 -73h-704q13 0 22 9.5t8 22.5l-20 256q-1 13 -11 22.5t-23 9.5h-272q-13 0 -23 -9.5t-11 -22.5l-20 -256
-q-1 -13 8 -22.5t22 -9.5h-704q-46 0 -46 73q0 54 26 116l417 1044q8 19 26 33t38 14h339q-13 0 -23 -9.5t-11 -22.5l-15 -192q-1 -14 8 -23t22 -9h166q13 0 22 9t8 23l-15 192q-1 13 -11 22.5t-23 9.5h339q20 0 38 -14t26 -33l417 -1044q26 -62 26 -116z" />
- <glyph glyph-name="download_alt" unicode="&#xf019;" horiz-adv-x="1664"
-d="M1280 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 416v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h465l135 -136
-q58 -56 136 -56t136 56l136 136h464q40 0 68 -28t28 -68zM1339 985q17 -41 -14 -70l-448 -448q-18 -19 -45 -19t-45 19l-448 448q-31 29 -14 70q17 39 59 39h256v448q0 26 19 45t45 19h256q26 0 45 -19t19 -45v-448h256q42 0 59 -39z" />
- <glyph glyph-name="download" unicode="&#xf01a;"
-d="M1120 608q0 -12 -10 -24l-319 -319q-11 -9 -23 -9t-23 9l-320 320q-15 16 -7 35q8 20 30 20h192v352q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-352h192q14 0 23 -9t9 -23zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273
-t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="upload" unicode="&#xf01b;"
-d="M1118 660q-8 -20 -30 -20h-192v-352q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v352h-192q-14 0 -23 9t-9 23q0 12 10 24l319 319q11 9 23 9t23 -9l320 -320q15 -16 7 -35zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198
-t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="inbox" unicode="&#xf01c;"
-d="M1023 576h316q-1 3 -2.5 8.5t-2.5 7.5l-212 496h-708l-212 -496q-1 -3 -2.5 -8.5t-2.5 -7.5h316l95 -192h320zM1536 546v-482q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v482q0 62 25 123l238 552q10 25 36.5 42t52.5 17h832q26 0 52.5 -17t36.5 -42l238 -552
-q25 -61 25 -123z" />
- <glyph glyph-name="play_circle" unicode="&#xf01d;"
-d="M1184 640q0 -37 -32 -55l-544 -320q-15 -9 -32 -9q-16 0 -32 8q-32 19 -32 56v640q0 37 32 56q33 18 64 -1l544 -320q32 -18 32 -55zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640
-q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="repeat" unicode="&#xf01e;"
-d="M1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l138 138q-148 137 -349 137q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5q119 0 225 52t179 147q7 10 23 12q15 0 25 -9
-l137 -138q9 -8 9.5 -20.5t-7.5 -22.5q-109 -132 -264 -204.5t-327 -72.5q-156 0 -298 61t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q147 0 284.5 -55.5t244.5 -156.5l130 129q29 31 70 14q39 -17 39 -59z" />
- <glyph glyph-name="refresh" unicode="&#xf021;"
-d="M1511 480q0 -5 -1 -7q-64 -268 -268 -434.5t-478 -166.5q-146 0 -282.5 55t-243.5 157l-129 -129q-19 -19 -45 -19t-45 19t-19 45v448q0 26 19 45t45 19h448q26 0 45 -19t19 -45t-19 -45l-137 -137q71 -66 161 -102t187 -36q134 0 250 65t186 179q11 17 53 117
-q8 23 30 23h192q13 0 22.5 -9.5t9.5 -22.5zM1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-26 0 -45 19t-19 45t19 45l138 138q-148 137 -349 137q-134 0 -250 -65t-186 -179q-11 -17 -53 -117q-8 -23 -30 -23h-199q-13 0 -22.5 9.5t-9.5 22.5v7q65 268 270 434.5t480 166.5
-q146 0 284 -55.5t245 -156.5l130 129q19 19 45 19t45 -19t19 -45z" />
- <glyph glyph-name="list_alt" unicode="&#xf022;" horiz-adv-x="1792"
-d="M384 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M384 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1536 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5z
-M1536 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5zM1536 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5
-t9.5 -22.5zM1664 160v832q0 13 -9.5 22.5t-22.5 9.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 1248v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47
-t47 -113z" />
- <glyph glyph-name="lock" unicode="&#xf023;" horiz-adv-x="1152"
-d="M320 768h512v192q0 106 -75 181t-181 75t-181 -75t-75 -181v-192zM1152 672v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v192q0 184 132 316t316 132t316 -132t132 -316v-192h32q40 0 68 -28t28 -68z" />
- <glyph glyph-name="flag" unicode="&#xf024;" horiz-adv-x="1792"
-d="M320 1280q0 -72 -64 -110v-1266q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v1266q-64 38 -64 110q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -25 -12.5 -38.5t-39.5 -27.5q-215 -116 -369 -116q-61 0 -123.5 22t-108.5 48
-t-115.5 48t-142.5 22q-192 0 -464 -146q-17 -9 -33 -9q-26 0 -45 19t-19 45v742q0 32 31 55q21 14 79 43q236 120 421 120q107 0 200 -29t219 -88q38 -19 88 -19q54 0 117.5 21t110 47t88 47t54.5 21q26 0 45 -19t19 -45z" />
- <glyph glyph-name="headphones" unicode="&#xf025;" horiz-adv-x="1664"
-d="M1664 650q0 -166 -60 -314l-20 -49l-185 -33q-22 -83 -90.5 -136.5t-156.5 -53.5v-32q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-32q71 0 130 -35.5t93 -95.5l68 12q29 95 29 193q0 148 -88 279t-236.5 209t-315.5 78
-t-315.5 -78t-236.5 -209t-88 -279q0 -98 29 -193l68 -12q34 60 93 95.5t130 35.5v32q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v32q-88 0 -156.5 53.5t-90.5 136.5l-185 33l-20 49q-60 148 -60 314q0 151 67 291t179 242.5
-t266 163.5t320 61t320 -61t266 -163.5t179 -242.5t67 -291z" />
- <glyph glyph-name="volume_off" unicode="&#xf026;" horiz-adv-x="768"
-d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45z" />
- <glyph glyph-name="volume_down" unicode="&#xf027;" horiz-adv-x="1152"
-d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 36
-t12 56.5t-12 56.5t-29 36t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142z" />
- <glyph glyph-name="volume_up" unicode="&#xf028;" horiz-adv-x="1664"
-d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 36
-t12 56.5t-12 56.5t-29 36t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142zM1408 640q0 -153 -85 -282.5t-225 -188.5q-13 -5 -25 -5q-27 0 -46 19t-19 45q0 39 39 59q56 29 76 44q74 54 115.5 135.5t41.5 173.5t-41.5 173.5
-t-115.5 135.5q-20 15 -76 44q-39 20 -39 59q0 26 19 45t45 19q13 0 26 -5q140 -59 225 -188.5t85 -282.5zM1664 640q0 -230 -127 -422.5t-338 -283.5q-13 -5 -26 -5q-26 0 -45 19t-19 45q0 36 39 59q7 4 22.5 10.5t22.5 10.5q46 25 82 51q123 91 192 227t69 289t-69 289
-t-192 227q-36 26 -82 51q-7 4 -22.5 10.5t-22.5 10.5q-39 23 -39 59q0 26 19 45t45 19q13 0 26 -5q211 -91 338 -283.5t127 -422.5z" />
- <glyph glyph-name="qrcode" unicode="&#xf029;" horiz-adv-x="1408"
-d="M384 384v-128h-128v128h128zM384 1152v-128h-128v128h128zM1152 1152v-128h-128v128h128zM128 129h384v383h-384v-383zM128 896h384v384h-384v-384zM896 896h384v384h-384v-384zM640 640v-640h-640v640h640zM1152 128v-128h-128v128h128zM1408 128v-128h-128v128h128z
-M1408 640v-384h-384v128h-128v-384h-128v640h384v-128h128v128h128zM640 1408v-640h-640v640h640zM1408 1408v-640h-640v640h640z" />
- <glyph glyph-name="barcode" unicode="&#xf02a;" horiz-adv-x="1792"
-d="M63 0h-63v1408h63v-1408zM126 1h-32v1407h32v-1407zM220 1h-31v1407h31v-1407zM377 1h-31v1407h31v-1407zM534 1h-62v1407h62v-1407zM660 1h-31v1407h31v-1407zM723 1h-31v1407h31v-1407zM786 1h-31v1407h31v-1407zM943 1h-63v1407h63v-1407zM1100 1h-63v1407h63v-1407z
-M1226 1h-63v1407h63v-1407zM1352 1h-63v1407h63v-1407zM1446 1h-63v1407h63v-1407zM1635 1h-94v1407h94v-1407zM1698 1h-32v1407h32v-1407zM1792 0h-63v1408h63v-1408z" />
- <glyph glyph-name="tag" unicode="&#xf02b;"
-d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5
-l715 -714q37 -39 37 -91z" />
- <glyph glyph-name="tags" unicode="&#xf02c;" horiz-adv-x="1920"
-d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5
-l715 -714q37 -39 37 -91zM1899 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-36 0 -59 14t-53 45l470 470q37 37 37 90q0 52 -37 91l-715 714q-38 38 -102 64.5t-117 26.5h224q53 0 117 -26.5t102 -64.5l715 -714q37 -39 37 -91z" />
- <glyph glyph-name="book" unicode="&#xf02d;" horiz-adv-x="1664"
-d="M1639 1058q40 -57 18 -129l-275 -906q-19 -64 -76.5 -107.5t-122.5 -43.5h-923q-77 0 -148.5 53.5t-99.5 131.5q-24 67 -2 127q0 4 3 27t4 37q1 8 -3 21.5t-3 19.5q2 11 8 21t16.5 23.5t16.5 23.5q23 38 45 91.5t30 91.5q3 10 0.5 30t-0.5 28q3 11 17 28t17 23
-q21 36 42 92t25 90q1 9 -2.5 32t0.5 28q4 13 22 30.5t22 22.5q19 26 42.5 84.5t27.5 96.5q1 8 -3 25.5t-2 26.5q2 8 9 18t18 23t17 21q8 12 16.5 30.5t15 35t16 36t19.5 32t26.5 23.5t36 11.5t47.5 -5.5l-1 -3q38 9 51 9h761q74 0 114 -56t18 -130l-274 -906
-q-36 -119 -71.5 -153.5t-128.5 -34.5h-869q-27 0 -38 -15q-11 -16 -1 -43q24 -70 144 -70h923q29 0 56 15.5t35 41.5l300 987q7 22 5 57q38 -15 59 -43zM575 1056q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5
-t-16.5 -22.5zM492 800q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5t-16.5 -22.5z" />
- <glyph glyph-name="bookmark" unicode="&#xf02e;" horiz-adv-x="1280"
-d="M1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
- <glyph glyph-name="print" unicode="&#xf02f;" horiz-adv-x="1664"
-d="M384 0h896v256h-896v-256zM384 640h896v384h-160q-40 0 -68 28t-28 68v160h-640v-640zM1536 576q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 576v-416q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-160q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68
-v160h-224q-13 0 -22.5 9.5t-9.5 22.5v416q0 79 56.5 135.5t135.5 56.5h64v544q0 40 28 68t68 28h672q40 0 88 -20t76 -48l152 -152q28 -28 48 -76t20 -88v-256h64q79 0 135.5 -56.5t56.5 -135.5z" />
- <glyph glyph-name="camera" unicode="&#xf030;" horiz-adv-x="1920"
-d="M960 864q119 0 203.5 -84.5t84.5 -203.5t-84.5 -203.5t-203.5 -84.5t-203.5 84.5t-84.5 203.5t84.5 203.5t203.5 84.5zM1664 1280q106 0 181 -75t75 -181v-896q0 -106 -75 -181t-181 -75h-1408q-106 0 -181 75t-75 181v896q0 106 75 181t181 75h224l51 136
-q19 49 69.5 84.5t103.5 35.5h512q53 0 103.5 -35.5t69.5 -84.5l51 -136h224zM960 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="font" unicode="&#xf031;" horiz-adv-x="1664"
-d="M725 977l-170 -450q33 0 136.5 -2t160.5 -2q19 0 57 2q-87 253 -184 452zM0 -128l2 79q23 7 56 12.5t57 10.5t49.5 14.5t44.5 29t31 50.5l237 616l280 724h75h53q8 -14 11 -21l205 -480q33 -78 106 -257.5t114 -274.5q15 -34 58 -144.5t72 -168.5q20 -45 35 -57
-q19 -15 88 -29.5t84 -20.5q6 -38 6 -57q0 -5 -0.5 -13.5t-0.5 -12.5q-63 0 -190 8t-191 8q-76 0 -215 -7t-178 -8q0 43 4 78l131 28q1 0 12.5 2.5t15.5 3.5t14.5 4.5t15 6.5t11 8t9 11t2.5 14q0 16 -31 96.5t-72 177.5t-42 100l-450 2q-26 -58 -76.5 -195.5t-50.5 -162.5
-q0 -22 14 -37.5t43.5 -24.5t48.5 -13.5t57 -8.5t41 -4q1 -19 1 -58q0 -9 -2 -27q-58 0 -174.5 10t-174.5 10q-8 0 -26.5 -4t-21.5 -4q-80 -14 -188 -14z" />
- <glyph glyph-name="bold" unicode="&#xf032;" horiz-adv-x="1408"
-d="M555 15q74 -32 140 -32q376 0 376 335q0 114 -41 180q-27 44 -61.5 74t-67.5 46.5t-80.5 25t-84 10.5t-94.5 2q-73 0 -101 -10q0 -53 -0.5 -159t-0.5 -158q0 -8 -1 -67.5t-0.5 -96.5t4.5 -83.5t12 -66.5zM541 761q42 -7 109 -7q82 0 143 13t110 44.5t74.5 89.5t25.5 142
-q0 70 -29 122.5t-79 82t-108 43.5t-124 14q-50 0 -130 -13q0 -50 4 -151t4 -152q0 -27 -0.5 -80t-0.5 -79q0 -46 1 -69zM0 -128l2 94q15 4 85 16t106 27q7 12 12.5 27t8.5 33.5t5.5 32.5t3 37.5t0.5 34v35.5v30q0 982 -22 1025q-4 8 -22 14.5t-44.5 11t-49.5 7t-48.5 4.5
-t-30.5 3l-4 83q98 2 340 11.5t373 9.5q23 0 68 -0.5t68 -0.5q70 0 136.5 -13t128.5 -42t108 -71t74 -104.5t28 -137.5q0 -52 -16.5 -95.5t-39 -72t-64.5 -57.5t-73 -45t-84 -40q154 -35 256.5 -134t102.5 -248q0 -100 -35 -179.5t-93.5 -130.5t-138 -85.5t-163.5 -48.5
-t-176 -14q-44 0 -132 3t-132 3q-106 0 -307 -11t-231 -12z" />
- <glyph glyph-name="italic" unicode="&#xf033;" horiz-adv-x="1024"
-d="M0 -126l17 85q22 7 61.5 16.5t72 19t59.5 23.5q28 35 41 101q1 7 62 289t114 543.5t52 296.5v25q-24 13 -54.5 18.5t-69.5 8t-58 5.5l19 103q33 -2 120 -6.5t149.5 -7t120.5 -2.5q48 0 98.5 2.5t121 7t98.5 6.5q-5 -39 -19 -89q-30 -10 -101.5 -28.5t-108.5 -33.5
-q-8 -19 -14 -42.5t-9 -40t-7.5 -45.5t-6.5 -42q-27 -148 -87.5 -419.5t-77.5 -355.5q-2 -9 -13 -58t-20 -90t-16 -83.5t-6 -57.5l1 -18q17 -4 185 -31q-3 -44 -16 -99q-11 0 -32.5 -1.5t-32.5 -1.5q-29 0 -87 10t-86 10q-138 2 -206 2q-51 0 -143 -9t-121 -11z" />
- <glyph glyph-name="text_height" unicode="&#xf034;" horiz-adv-x="1792"
-d="M1744 128q33 0 42 -18.5t-11 -44.5l-126 -162q-20 -26 -49 -26t-49 26l-126 162q-20 26 -11 44.5t42 18.5h80v1024h-80q-33 0 -42 18.5t11 44.5l126 162q20 26 49 26t49 -26l126 -162q20 -26 11 -44.5t-42 -18.5h-80v-1024h80zM81 1407l54 -27q12 -5 211 -5q44 0 132 2
-t132 2q36 0 107.5 -0.5t107.5 -0.5h293q6 0 21 -0.5t20.5 0t16 3t17.5 9t15 17.5l42 1q4 0 14 -0.5t14 -0.5q2 -112 2 -336q0 -80 -5 -109q-39 -14 -68 -18q-25 44 -54 128q-3 9 -11 48t-14.5 73.5t-7.5 35.5q-6 8 -12 12.5t-15.5 6t-13 2.5t-18 0.5t-16.5 -0.5
-q-17 0 -66.5 0.5t-74.5 0.5t-64 -2t-71 -6q-9 -81 -8 -136q0 -94 2 -388t2 -455q0 -16 -2.5 -71.5t0 -91.5t12.5 -69q40 -21 124 -42.5t120 -37.5q5 -40 5 -50q0 -14 -3 -29l-34 -1q-76 -2 -218 8t-207 10q-50 0 -151 -9t-152 -9q-3 51 -3 52v9q17 27 61.5 43t98.5 29t78 27
-q19 42 19 383q0 101 -3 303t-3 303v117q0 2 0.5 15.5t0.5 25t-1 25.5t-3 24t-5 14q-11 12 -162 12q-33 0 -93 -12t-80 -26q-19 -13 -34 -72.5t-31.5 -111t-42.5 -53.5q-42 26 -56 44v383z" />
- <glyph glyph-name="text_width" unicode="&#xf035;"
-d="M81 1407l54 -27q12 -5 211 -5q44 0 132 2t132 2q70 0 246.5 1t304.5 0.5t247 -4.5q33 -1 56 31l42 1q4 0 14 -0.5t14 -0.5q2 -112 2 -336q0 -80 -5 -109q-39 -14 -68 -18q-25 44 -54 128q-3 9 -11 47.5t-15 73.5t-7 36q-10 13 -27 19q-5 2 -66 2q-30 0 -93 1t-103 1
-t-94 -2t-96 -7q-9 -81 -8 -136l1 -152v52q0 -55 1 -154t1.5 -180t0.5 -153q0 -16 -2.5 -71.5t0 -91.5t12.5 -69q40 -21 124 -42.5t120 -37.5q5 -40 5 -50q0 -14 -3 -29l-34 -1q-76 -2 -218 8t-207 10q-50 0 -151 -9t-152 -9q-3 51 -3 52v9q17 27 61.5 43t98.5 29t78 27
-q7 16 11.5 74t6 145.5t1.5 155t-0.5 153.5t-0.5 89q0 7 -2.5 21.5t-2.5 22.5q0 7 0.5 44t1 73t0 76.5t-3 67.5t-6.5 32q-11 12 -162 12q-41 0 -163 -13.5t-138 -24.5q-19 -12 -34 -71.5t-31.5 -111.5t-42.5 -54q-42 26 -56 44v383zM1310 125q12 0 42 -19.5t57.5 -41.5
-t59.5 -49t36 -30q26 -21 26 -49t-26 -49q-4 -3 -36 -30t-59.5 -49t-57.5 -41.5t-42 -19.5q-13 0 -20.5 10.5t-10 28.5t-2.5 33.5t1.5 33t1.5 19.5h-1024q0 -2 1.5 -19.5t1.5 -33t-2.5 -33.5t-10 -28.5t-20.5 -10.5q-12 0 -42 19.5t-57.5 41.5t-59.5 49t-36 30q-26 21 -26 49
-t26 49q4 3 36 30t59.5 49t57.5 41.5t42 19.5q13 0 20.5 -10.5t10 -28.5t2.5 -33.5t-1.5 -33t-1.5 -19.5h1024q0 2 -1.5 19.5t-1.5 33t2.5 33.5t10 28.5t20.5 10.5z" />
- <glyph glyph-name="align_left" unicode="&#xf036;" horiz-adv-x="1792"
-d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45
-t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
- <glyph glyph-name="align_center" unicode="&#xf037;" horiz-adv-x="1792"
-d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h896q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45t-45 -19
-h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h640q26 0 45 -19t19 -45z" />
- <glyph glyph-name="align_right" unicode="&#xf038;" horiz-adv-x="1792"
-d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45
-t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
- <glyph glyph-name="align_justify" unicode="&#xf039;" horiz-adv-x="1792"
-d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45
-t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
- <glyph glyph-name="list" unicode="&#xf03a;" horiz-adv-x="1792"
-d="M256 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM256 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5
-t9.5 -22.5zM256 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344
-q13 0 22.5 -9.5t9.5 -22.5zM256 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5
-t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192
-q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5z" />
- <glyph glyph-name="indent_left" unicode="&#xf03b;" horiz-adv-x="1792"
-d="M384 992v-576q0 -13 -9.5 -22.5t-22.5 -9.5q-14 0 -23 9l-288 288q-9 9 -9 23t9 23l288 288q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5
-t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088
-q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
- <glyph glyph-name="indent_right" unicode="&#xf03c;" horiz-adv-x="1792"
-d="M352 704q0 -14 -9 -23l-288 -288q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5q14 0 23 -9l288 -288q9 -9 9 -23zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5
-t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088
-q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
- <glyph glyph-name="facetime_video" unicode="&#xf03d;" horiz-adv-x="1792"
-d="M1792 1184v-1088q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-403 403v-166q0 -119 -84.5 -203.5t-203.5 -84.5h-704q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h704q119 0 203.5 -84.5t84.5 -203.5v-165l403 402q18 19 45 19q12 0 25 -5
-q39 -17 39 -59z" />
- <glyph glyph-name="picture" unicode="&#xf03e;" horiz-adv-x="1920"
-d="M640 960q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 576v-448h-1408v192l320 320l160 -160l512 512zM1760 1280h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5v1216
-q0 13 -9.5 22.5t-22.5 9.5zM1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
- <glyph glyph-name="pencil" unicode="&#xf040;"
-d="M363 0l91 91l-235 235l-91 -91v-107h128v-128h107zM886 928q0 22 -22 22q-10 0 -17 -7l-542 -542q-7 -7 -7 -17q0 -22 22 -22q10 0 17 7l542 542q7 7 7 17zM832 1120l416 -416l-832 -832h-416v416zM1515 1024q0 -53 -37 -90l-166 -166l-416 416l166 165q36 38 90 38
-q53 0 91 -38l235 -234q37 -39 37 -91z" />
- <glyph glyph-name="map_marker" unicode="&#xf041;" horiz-adv-x="1024"
-d="M768 896q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1024 896q0 -109 -33 -179l-364 -774q-16 -33 -47.5 -52t-67.5 -19t-67.5 19t-46.5 52l-365 774q-33 70 -33 179q0 212 150 362t362 150t362 -150t150 -362z" />
- <glyph glyph-name="adjust" unicode="&#xf042;"
-d="M768 96v1088q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="tint" unicode="&#xf043;" horiz-adv-x="1024"
-d="M512 384q0 36 -20 69q-1 1 -15.5 22.5t-25.5 38t-25 44t-21 50.5q-4 16 -21 16t-21 -16q-7 -23 -21 -50.5t-25 -44t-25.5 -38t-15.5 -22.5q-20 -33 -20 -69q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 512q0 -212 -150 -362t-362 -150t-362 150t-150 362
-q0 145 81 275q6 9 62.5 90.5t101 151t99.5 178t83 201.5q9 30 34 47t51 17t51.5 -17t33.5 -47q28 -93 83 -201.5t99.5 -178t101 -151t62.5 -90.5q81 -127 81 -275z" />
- <glyph glyph-name="edit" unicode="&#xf044;" horiz-adv-x="1792"
-d="M888 352l116 116l-152 152l-116 -116v-56h96v-96h56zM1328 1072q-16 16 -33 -1l-350 -350q-17 -17 -1 -33t33 1l350 350q17 17 1 33zM1408 478v-190q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832
-q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-14 -14 -32 -8q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v126q0 13 9 22l64 64q15 15 35 7t20 -29zM1312 1216l288 -288l-672 -672h-288v288zM1756 1084l-92 -92
-l-288 288l92 92q28 28 68 28t68 -28l152 -152q28 -28 28 -68t-28 -68z" />
- <glyph glyph-name="share" unicode="&#xf045;" horiz-adv-x="1664"
-d="M1408 547v-259q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h255v0q13 0 22.5 -9.5t9.5 -22.5q0 -27 -26 -32q-77 -26 -133 -60q-10 -4 -16 -4h-112q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832
-q66 0 113 47t47 113v214q0 19 18 29q28 13 54 37q16 16 35 8q21 -9 21 -29zM1645 1043l-384 -384q-18 -19 -45 -19q-12 0 -25 5q-39 17 -39 59v192h-160q-323 0 -438 -131q-119 -137 -74 -473q3 -23 -20 -34q-8 -2 -12 -2q-16 0 -26 13q-10 14 -21 31t-39.5 68.5t-49.5 99.5
-t-38.5 114t-17.5 122q0 49 3.5 91t14 90t28 88t47 81.5t68.5 74t94.5 61.5t124.5 48.5t159.5 30.5t196.5 11h160v192q0 42 39 59q13 5 25 5q26 0 45 -19l384 -384q19 -19 19 -45t-19 -45z" />
- <glyph glyph-name="check" unicode="&#xf046;" horiz-adv-x="1664"
-d="M1408 606v-318q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-10 -10 -23 -10q-3 0 -9 2q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832
-q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v254q0 13 9 22l64 64q10 10 23 10q6 0 12 -3q20 -8 20 -29zM1639 1095l-814 -814q-24 -24 -57 -24t-57 24l-430 430q-24 24 -24 57t24 57l110 110q24 24 57 24t57 -24l263 -263l647 647q24 24 57 24t57 -24l110 -110
-q24 -24 24 -57t-24 -57z" />
- <glyph glyph-name="move" unicode="&#xf047;" horiz-adv-x="1792"
-d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-384v-384h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v384h-384v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45
-t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h384v384h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45t-19 -45t-45 -19h-128v-384h384v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
- <glyph glyph-name="step_backward" unicode="&#xf048;" horiz-adv-x="1024"
-d="M979 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 10 13 19z" />
- <glyph glyph-name="fast_backward" unicode="&#xf049;" horiz-adv-x="1792"
-d="M1747 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 10 13 19l710 710
-q19 19 32 13t13 -32v-710q4 10 13 19z" />
- <glyph glyph-name="backward" unicode="&#xf04a;" horiz-adv-x="1664"
-d="M1619 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-19 19 -19 45t19 45l710 710q19 19 32 13t13 -32v-710q4 10 13 19z" />
- <glyph glyph-name="play" unicode="&#xf04b;" horiz-adv-x="1408"
-d="M1384 609l-1328 -738q-23 -13 -39.5 -3t-16.5 36v1472q0 26 16.5 36t39.5 -3l1328 -738q23 -13 23 -31t-23 -31z" />
- <glyph glyph-name="pause" unicode="&#xf04c;"
-d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45zM640 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45z" />
- <glyph glyph-name="stop" unicode="&#xf04d;"
-d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
- <glyph glyph-name="forward" unicode="&#xf04e;" horiz-adv-x="1664"
-d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q9 -9 13 -19v710q0 26 13 32t32 -13l710 -710q19 -19 19 -45t-19 -45l-710 -710q-19 -19 -32 -13t-13 32v710q-4 -10 -13 -19z" />
- <glyph glyph-name="fast_forward" unicode="&#xf050;" horiz-adv-x="1792"
-d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q9 -9 13 -19v710q0 26 13 32t32 -13l710 -710q9 -9 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-4 -10 -13 -19l-710 -710
-q-19 -19 -32 -13t-13 32v710q-4 -10 -13 -19z" />
- <glyph glyph-name="step_forward" unicode="&#xf051;" horiz-adv-x="1024"
-d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q9 -9 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-4 -10 -13 -19z" />
- <glyph glyph-name="eject" unicode="&#xf052;" horiz-adv-x="1538"
-d="M14 557l710 710q19 19 45 19t45 -19l710 -710q19 -19 13 -32t-32 -13h-1472q-26 0 -32 13t13 32zM1473 0h-1408q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1408q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19z" />
- <glyph glyph-name="chevron_left" unicode="&#xf053;" horiz-adv-x="1280"
-d="M1171 1235l-531 -531l531 -531q19 -19 19 -45t-19 -45l-166 -166q-19 -19 -45 -19t-45 19l-742 742q-19 19 -19 45t19 45l742 742q19 19 45 19t45 -19l166 -166q19 -19 19 -45t-19 -45z" />
- <glyph glyph-name="chevron_right" unicode="&#xf054;" horiz-adv-x="1280"
-d="M1107 659l-742 -742q-19 -19 -45 -19t-45 19l-166 166q-19 19 -19 45t19 45l531 531l-531 531q-19 19 -19 45t19 45l166 166q19 19 45 19t45 -19l742 -742q19 -19 19 -45t-19 -45z" />
- <glyph glyph-name="plus_sign" unicode="&#xf055;"
-d="M1216 576v128q0 26 -19 45t-45 19h-256v256q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-256h-256q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h256v-256q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v256h256q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5
-t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="minus_sign" unicode="&#xf056;"
-d="M1216 576v128q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5
-t103 -385.5z" />
- <glyph glyph-name="remove_sign" unicode="&#xf057;"
-d="M1149 414q0 26 -19 45l-181 181l181 181q19 19 19 45q0 27 -19 46l-90 90q-19 19 -46 19q-26 0 -45 -19l-181 -181l-181 181q-19 19 -45 19q-27 0 -46 -19l-90 -90q-19 -19 -19 -46q0 -26 19 -45l181 -181l-181 -181q-19 -19 -19 -45q0 -27 19 -46l90 -90q19 -19 46 -19
-q26 0 45 19l181 181l181 -181q19 -19 45 -19q27 0 46 19l90 90q19 19 19 46zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="ok_sign" unicode="&#xf058;"
-d="M1284 802q0 28 -18 46l-91 90q-19 19 -45 19t-45 -19l-408 -407l-226 226q-19 19 -45 19t-45 -19l-91 -90q-18 -18 -18 -46q0 -27 18 -45l362 -362q19 -19 45 -19q27 0 46 19l543 543q18 18 18 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103
-t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="question_sign" unicode="&#xf059;"
-d="M896 160v192q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h192q14 0 23 9t9 23zM1152 832q0 88 -55.5 163t-138.5 116t-170 41q-243 0 -371 -213q-15 -24 8 -42l132 -100q7 -6 19 -6q16 0 25 12q53 68 86 92q34 24 86 24q48 0 85.5 -26t37.5 -59
-q0 -38 -20 -61t-68 -45q-63 -28 -115.5 -86.5t-52.5 -125.5v-36q0 -14 9 -23t23 -9h192q14 0 23 9t9 23q0 19 21.5 49.5t54.5 49.5q32 18 49 28.5t46 35t44.5 48t28 60.5t12.5 81zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5
-t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="info_sign" unicode="&#xf05a;"
-d="M1024 160v160q0 14 -9 23t-23 9h-96v512q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h96v-320h-96q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h448q14 0 23 9t9 23zM896 1056v160q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23
-t23 -9h192q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="screenshot" unicode="&#xf05b;"
-d="M1197 512h-109q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h109q-32 108 -112.5 188.5t-188.5 112.5v-109q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v109q-108 -32 -188.5 -112.5t-112.5 -188.5h109q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-109
-q32 -108 112.5 -188.5t188.5 -112.5v109q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-109q108 32 188.5 112.5t112.5 188.5zM1536 704v-128q0 -26 -19 -45t-45 -19h-143q-37 -161 -154.5 -278.5t-278.5 -154.5v-143q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v143
-q-161 37 -278.5 154.5t-154.5 278.5h-143q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h143q37 161 154.5 278.5t278.5 154.5v143q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-143q161 -37 278.5 -154.5t154.5 -278.5h143q26 0 45 -19t19 -45z" />
- <glyph glyph-name="remove_circle" unicode="&#xf05c;"
-d="M1097 457l-146 -146q-10 -10 -23 -10t-23 10l-137 137l-137 -137q-10 -10 -23 -10t-23 10l-146 146q-10 10 -10 23t10 23l137 137l-137 137q-10 10 -10 23t10 23l146 146q10 10 23 10t23 -10l137 -137l137 137q10 10 23 10t23 -10l146 -146q10 -10 10 -23t-10 -23
-l-137 -137l137 -137q10 -10 10 -23t-10 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5
-t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="ok_circle" unicode="&#xf05d;"
-d="M1171 723l-422 -422q-19 -19 -45 -19t-45 19l-294 294q-19 19 -19 45t19 45l102 102q19 19 45 19t45 -19l147 -147l275 275q19 19 45 19t45 -19l102 -102q19 -19 19 -45t-19 -45zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198
-t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="ban_circle" unicode="&#xf05e;"
-d="M1312 643q0 161 -87 295l-754 -753q137 -89 297 -89q111 0 211.5 43.5t173.5 116.5t116 174.5t43 212.5zM313 344l755 754q-135 91 -300 91q-148 0 -273 -73t-198 -199t-73 -274q0 -162 89 -299zM1536 643q0 -157 -61 -300t-163.5 -246t-245 -164t-298.5 -61t-298.5 61
-t-245 164t-163.5 246t-61 300t61 299.5t163.5 245.5t245 164t298.5 61t298.5 -61t245 -164t163.5 -245.5t61 -299.5z" />
- <glyph glyph-name="arrow_left" unicode="&#xf060;"
-d="M1536 640v-128q0 -53 -32.5 -90.5t-84.5 -37.5h-704l293 -294q38 -36 38 -90t-38 -90l-75 -76q-37 -37 -90 -37q-52 0 -91 37l-651 652q-37 37 -37 90q0 52 37 91l651 650q38 38 91 38q52 0 90 -38l75 -74q38 -38 38 -91t-38 -91l-293 -293h704q52 0 84.5 -37.5
-t32.5 -90.5z" />
- <glyph glyph-name="arrow_right" unicode="&#xf061;"
-d="M1472 576q0 -54 -37 -91l-651 -651q-39 -37 -91 -37q-51 0 -90 37l-75 75q-38 38 -38 91t38 91l293 293h-704q-52 0 -84.5 37.5t-32.5 90.5v128q0 53 32.5 90.5t84.5 37.5h704l-293 294q-38 36 -38 90t38 90l75 75q38 38 90 38q53 0 91 -38l651 -651q37 -35 37 -90z" />
- <glyph glyph-name="arrow_up" unicode="&#xf062;" horiz-adv-x="1664"
-d="M1611 565q0 -51 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-294 293v-704q0 -52 -37.5 -84.5t-90.5 -32.5h-128q-53 0 -90.5 32.5t-37.5 84.5v704l-294 -293q-36 -38 -90 -38t-90 38l-75 75q-38 38 -38 90q0 53 38 91l651 651q35 37 90 37q54 0 91 -37l651 -651
-q37 -39 37 -91z" />
- <glyph glyph-name="arrow_down" unicode="&#xf063;" horiz-adv-x="1664"
-d="M1611 704q0 -53 -37 -90l-651 -652q-39 -37 -91 -37q-53 0 -90 37l-651 652q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l294 -294v704q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-704l294 294q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
- <glyph glyph-name="share_alt" unicode="&#xf064;" horiz-adv-x="1792"
-d="M1792 896q0 -26 -19 -45l-512 -512q-19 -19 -45 -19t-45 19t-19 45v256h-224q-98 0 -175.5 -6t-154 -21.5t-133 -42.5t-105.5 -69.5t-80 -101t-48.5 -138.5t-17.5 -181q0 -55 5 -123q0 -6 2.5 -23.5t2.5 -26.5q0 -15 -8.5 -25t-23.5 -10q-16 0 -28 17q-7 9 -13 22
-t-13.5 30t-10.5 24q-127 285 -127 451q0 199 53 333q162 403 875 403h224v256q0 26 19 45t45 19t45 -19l512 -512q19 -19 19 -45z" />
- <glyph glyph-name="resize_full" unicode="&#xf065;"
-d="M755 480q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23zM1536 1344v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332
-q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45z" />
- <glyph glyph-name="resize_small" unicode="&#xf066;"
-d="M768 576v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45zM1523 1248q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45
-t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23z" />
- <glyph glyph-name="plus" unicode="&#xf067;" horiz-adv-x="1408"
-d="M1408 800v-192q0 -40 -28 -68t-68 -28h-416v-416q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v416h-416q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h416v416q0 40 28 68t68 28h192q40 0 68 -28t28 -68v-416h416q40 0 68 -28t28 -68z" />
- <glyph glyph-name="minus" unicode="&#xf068;" horiz-adv-x="1408"
-d="M1408 800v-192q0 -40 -28 -68t-68 -28h-1216q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h1216q40 0 68 -28t28 -68z" />
- <glyph glyph-name="asterisk" unicode="&#xf069;" horiz-adv-x="1664"
-d="M1482 486q46 -26 59.5 -77.5t-12.5 -97.5l-64 -110q-26 -46 -77.5 -59.5t-97.5 12.5l-266 153v-307q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v307l-266 -153q-46 -26 -97.5 -12.5t-77.5 59.5l-64 110q-26 46 -12.5 97.5t59.5 77.5l266 154l-266 154
-q-46 26 -59.5 77.5t12.5 97.5l64 110q26 46 77.5 59.5t97.5 -12.5l266 -153v307q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-307l266 153q46 26 97.5 12.5t77.5 -59.5l64 -110q26 -46 12.5 -97.5t-59.5 -77.5l-266 -154z" />
- <glyph glyph-name="exclamation_sign" unicode="&#xf06a;"
-d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM896 161v190q0 14 -9 23.5t-22 9.5h-192q-13 0 -23 -10t-10 -23v-190q0 -13 10 -23t23 -10h192
-q13 0 22 9.5t9 23.5zM894 505l18 621q0 12 -10 18q-10 8 -24 8h-220q-14 0 -24 -8q-10 -6 -10 -18l17 -621q0 -10 10 -17.5t24 -7.5h185q14 0 23.5 7.5t10.5 17.5z" />
- <glyph glyph-name="gift" unicode="&#xf06b;"
-d="M928 180v56v468v192h-320v-192v-468v-56q0 -25 18 -38.5t46 -13.5h192q28 0 46 13.5t18 38.5zM472 1024h195l-126 161q-26 31 -69 31q-40 0 -68 -28t-28 -68t28 -68t68 -28zM1160 1120q0 40 -28 68t-68 28q-43 0 -69 -31l-125 -161h194q40 0 68 28t28 68zM1536 864v-320
-q0 -14 -9 -23t-23 -9h-96v-416q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v416h-96q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h440q-93 0 -158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5q107 0 168 -77l128 -165l128 165q61 77 168 77q93 0 158.5 -65.5t65.5 -158.5
-t-65.5 -158.5t-158.5 -65.5h440q14 0 23 -9t9 -23z" />
- <glyph glyph-name="leaf" unicode="&#xf06c;" horiz-adv-x="1792"
-d="M1280 832q0 26 -19 45t-45 19q-172 0 -318 -49.5t-259.5 -134t-235.5 -219.5q-19 -21 -19 -45q0 -26 19 -45t45 -19q24 0 45 19q27 24 74 71t67 66q137 124 268.5 176t313.5 52q26 0 45 19t19 45zM1792 1030q0 -95 -20 -193q-46 -224 -184.5 -383t-357.5 -268
-q-214 -108 -438 -108q-148 0 -286 47q-15 5 -88 42t-96 37q-16 0 -39.5 -32t-45 -70t-52.5 -70t-60 -32q-43 0 -63.5 17.5t-45.5 59.5q-2 4 -6 11t-5.5 10t-3 9.5t-1.5 13.5q0 35 31 73.5t68 65.5t68 56t31 48q0 4 -14 38t-16 44q-9 51 -9 104q0 115 43.5 220t119 184.5
-t170.5 139t204 95.5q55 18 145 25.5t179.5 9t178.5 6t163.5 24t113.5 56.5l29.5 29.5t29.5 28t27 20t36.5 16t43.5 4.5q39 0 70.5 -46t47.5 -112t24 -124t8 -96z" />
- <glyph glyph-name="fire" unicode="&#xf06d;" horiz-adv-x="1408"
-d="M1408 -160v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1152 896q0 -78 -24.5 -144t-64 -112.5t-87.5 -88t-96 -77.5t-87.5 -72t-64 -81.5t-24.5 -96.5q0 -96 67 -224l-4 1l1 -1
-q-90 41 -160 83t-138.5 100t-113.5 122.5t-72.5 150.5t-27.5 184q0 78 24.5 144t64 112.5t87.5 88t96 77.5t87.5 72t64 81.5t24.5 96.5q0 94 -66 224l3 -1l-1 1q90 -41 160 -83t138.5 -100t113.5 -122.5t72.5 -150.5t27.5 -184z" />
- <glyph glyph-name="eye_open" unicode="&#xf06e;" horiz-adv-x="1792"
-d="M1664 576q-152 236 -381 353q61 -104 61 -225q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 121 61 225q-229 -117 -381 -353q133 -205 333.5 -326.5t434.5 -121.5t434.5 121.5t333.5 326.5zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5
-t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1792 576q0 -34 -20 -69q-140 -230 -376.5 -368.5t-499.5 -138.5t-499.5 139t-376.5 368q-20 35 -20 69t20 69q140 229 376.5 368t499.5 139t499.5 -139t376.5 -368q20 -35 20 -69z" />
- <glyph glyph-name="eye_close" unicode="&#xf070;" horiz-adv-x="1792"
-d="M555 201l78 141q-87 63 -136 159t-49 203q0 121 61 225q-229 -117 -381 -353q167 -258 427 -375zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1307 1151q0 -7 -1 -9
-q-106 -189 -316 -567t-315 -566l-49 -89q-10 -16 -28 -16q-12 0 -134 70q-16 10 -16 28q0 12 44 87q-143 65 -263.5 173t-208.5 245q-20 31 -20 69t20 69q153 235 380 371t496 136q89 0 180 -17l54 97q10 16 28 16q5 0 18 -6t31 -15.5t33 -18.5t31.5 -18.5t19.5 -11.5
-q16 -10 16 -27zM1344 704q0 -139 -79 -253.5t-209 -164.5l280 502q8 -45 8 -84zM1792 576q0 -35 -20 -69q-39 -64 -109 -145q-150 -172 -347.5 -267t-419.5 -95l74 132q212 18 392.5 137t301.5 307q-115 179 -282 294l63 112q95 -64 182.5 -153t144.5 -184q20 -34 20 -69z
-" />
- <glyph glyph-name="warning_sign" unicode="&#xf071;" horiz-adv-x="1792"
-d="M1024 161v190q0 14 -9.5 23.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -23.5v-190q0 -14 9.5 -23.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 23.5zM1022 535l18 459q0 12 -10 19q-13 11 -24 11h-220q-11 0 -24 -11q-10 -7 -10 -21l17 -457q0 -10 10 -16.5t24 -6.5h185
-q14 0 23.5 6.5t10.5 16.5zM1008 1469l768 -1408q35 -63 -2 -126q-17 -29 -46.5 -46t-63.5 -17h-1536q-34 0 -63.5 17t-46.5 46q-37 63 -2 126l768 1408q17 31 47 49t65 18t65 -18t47 -49z" />
- <glyph glyph-name="plane" unicode="&#xf072;" horiz-adv-x="1408"
-d="M1376 1376q44 -52 12 -148t-108 -172l-161 -161l160 -696q5 -19 -12 -33l-128 -96q-7 -6 -19 -6q-4 0 -7 1q-15 3 -21 16l-279 508l-259 -259l53 -194q5 -17 -8 -31l-96 -96q-9 -9 -23 -9h-2q-15 2 -24 13l-189 252l-252 189q-11 7 -13 23q-1 13 9 25l96 97q9 9 23 9
-q6 0 8 -1l194 -53l259 259l-508 279q-14 8 -17 24q-2 16 9 27l128 128q14 13 30 8l665 -159l160 160q76 76 172 108t148 -12z" />
- <glyph glyph-name="calendar" unicode="&#xf073;" horiz-adv-x="1664"
-d="M128 -128h288v288h-288v-288zM480 -128h320v288h-320v-288zM128 224h288v320h-288v-320zM480 224h320v320h-320v-320zM128 608h288v288h-288v-288zM864 -128h320v288h-320v-288zM480 608h320v288h-320v-288zM1248 -128h288v288h-288v-288zM864 224h320v320h-320v-320z
-M512 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1248 224h288v320h-288v-320zM864 608h320v288h-320v-288zM1248 608h288v288h-288v-288zM1280 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64
-q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47
-h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
- <glyph glyph-name="random" unicode="&#xf074;" horiz-adv-x="1792"
-d="M666 1055q-60 -92 -137 -273q-22 45 -37 72.5t-40.5 63.5t-51 56.5t-63 35t-81.5 14.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q250 0 410 -225zM1792 256q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192q-32 0 -85 -0.5t-81 -1t-73 1
-t-71 5t-64 10.5t-63 18.5t-58 28.5t-59 40t-55 53.5t-56 69.5q59 93 136 273q22 -45 37 -72.5t40.5 -63.5t51 -56.5t63 -35t81.5 -14.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1792 1152q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5
-v192h-256q-48 0 -87 -15t-69 -45t-51 -61.5t-45 -77.5q-32 -62 -78 -171q-29 -66 -49.5 -111t-54 -105t-64 -100t-74 -83t-90 -68.5t-106.5 -42t-128 -16.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q48 0 87 15t69 45t51 61.5t45 77.5q32 62 78 171q29 66 49.5 111
-t54 105t64 100t74 83t90 68.5t106.5 42t128 16.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
- <glyph glyph-name="comment" unicode="&#xf075;" horiz-adv-x="1792"
-d="M1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22q-17 -2 -30.5 9t-17.5 29v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281
-q0 130 71 248.5t191 204.5t286 136.5t348 50.5q244 0 450 -85.5t326 -233t120 -321.5z" />
- <glyph glyph-name="magnet" unicode="&#xf076;"
-d="M1536 704v-128q0 -201 -98.5 -362t-274 -251.5t-395.5 -90.5t-395.5 90.5t-274 251.5t-98.5 362v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-128q0 -52 23.5 -90t53.5 -57t71 -30t64 -13t44 -2t44 2t64 13t71 30t53.5 57t23.5 90v128q0 26 19 45t45 19h384
-q26 0 45 -19t19 -45zM512 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45zM1536 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45z" />
- <glyph glyph-name="chevron_up" unicode="&#xf077;" horiz-adv-x="1792"
-d="M1683 205l-166 -165q-19 -19 -45 -19t-45 19l-531 531l-531 -531q-19 -19 -45 -19t-45 19l-166 165q-19 19 -19 45.5t19 45.5l742 741q19 19 45 19t45 -19l742 -741q19 -19 19 -45.5t-19 -45.5z" />
- <glyph glyph-name="chevron_down" unicode="&#xf078;" horiz-adv-x="1792"
-d="M1683 728l-742 -741q-19 -19 -45 -19t-45 19l-742 741q-19 19 -19 45.5t19 45.5l166 165q19 19 45 19t45 -19l531 -531l531 531q19 19 45 19t45 -19l166 -165q19 -19 19 -45.5t-19 -45.5z" />
- <glyph glyph-name="retweet" unicode="&#xf079;" horiz-adv-x="1920"
-d="M1280 32q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-8 0 -13.5 2t-9 7t-5.5 8t-3 11.5t-1 11.5v13v11v160v416h-192q-26 0 -45 19t-19 45q0 24 15 41l320 384q19 22 49 22t49 -22l320 -384q15 -17 15 -41q0 -26 -19 -45t-45 -19h-192v-384h576q16 0 25 -11l160 -192q7 -10 7 -21
-zM1920 448q0 -24 -15 -41l-320 -384q-20 -23 -49 -23t-49 23l-320 384q-15 17 -15 41q0 26 19 45t45 19h192v384h-576q-16 0 -25 12l-160 192q-7 9 -7 20q0 13 9.5 22.5t22.5 9.5h960q8 0 13.5 -2t9 -7t5.5 -8t3 -11.5t1 -11.5v-13v-11v-160v-416h192q26 0 45 -19t19 -45z
-" />
- <glyph glyph-name="shopping_cart" unicode="&#xf07a;" horiz-adv-x="1664"
-d="M640 0q0 -52 -38 -90t-90 -38t-90 38t-38 90t38 90t90 38t90 -38t38 -90zM1536 0q0 -52 -38 -90t-90 -38t-90 38t-38 90t38 90t90 38t90 -38t38 -90zM1664 1088v-512q0 -24 -16.5 -42.5t-40.5 -21.5l-1044 -122q13 -60 13 -70q0 -16 -24 -64h920q26 0 45 -19t19 -45
-t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 11 8 31.5t16 36t21.5 40t15.5 29.5l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t19.5 -15.5t13 -24.5t8 -26t5.5 -29.5t4.5 -26h1201q26 0 45 -19t19 -45z" />
- <glyph glyph-name="folder_close" unicode="&#xf07b;" horiz-adv-x="1664"
-d="M1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
- <glyph glyph-name="folder_open" unicode="&#xf07c;" horiz-adv-x="1920"
-d="M1879 584q0 -31 -31 -66l-336 -396q-43 -51 -120.5 -86.5t-143.5 -35.5h-1088q-34 0 -60.5 13t-26.5 43q0 31 31 66l336 396q43 51 120.5 86.5t143.5 35.5h1088q34 0 60.5 -13t26.5 -43zM1536 928v-160h-832q-94 0 -197 -47.5t-164 -119.5l-337 -396l-5 -6q0 4 -0.5 12.5
-t-0.5 12.5v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158z" />
- <glyph glyph-name="resize_vertical" unicode="&#xf07d;" horiz-adv-x="768"
-d="M704 1216q0 -26 -19 -45t-45 -19h-128v-1024h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v1024h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45z" />
- <glyph glyph-name="resize_horizontal" unicode="&#xf07e;" horiz-adv-x="1792"
-d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-1024v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h1024v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
- <glyph glyph-name="bar_chart" unicode="&#xf080;" horiz-adv-x="2048"
-d="M640 640v-512h-256v512h256zM1024 1152v-1024h-256v1024h256zM2048 0v-128h-2048v1536h128v-1408h1920zM1408 896v-768h-256v768h256zM1792 1280v-1152h-256v1152h256z" />
- <glyph glyph-name="twitter_sign" unicode="&#xf081;"
-d="M1280 926q-56 -25 -121 -34q68 40 93 117q-65 -38 -134 -51q-61 66 -153 66q-87 0 -148.5 -61.5t-61.5 -148.5q0 -29 5 -48q-129 7 -242 65t-192 155q-29 -50 -29 -106q0 -114 91 -175q-47 1 -100 26v-2q0 -75 50 -133.5t123 -72.5q-29 -8 -51 -8q-13 0 -39 4
-q21 -63 74.5 -104t121.5 -42q-116 -90 -261 -90q-26 0 -50 3q148 -94 322 -94q112 0 210 35.5t168 95t120.5 137t75 162t24.5 168.5q0 18 -1 27q63 45 105 109zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5
-t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="facebook_sign" unicode="&#xf082;"
-d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-188v595h199l30 232h-229v148q0 56 23.5 84t91.5 28l122 1v207q-63 9 -178 9q-136 0 -217.5 -80t-81.5 -226v-171h-200v-232h200v-595h-532q-119 0 -203.5 84.5t-84.5 203.5v960
-q0 119 84.5 203.5t203.5 84.5h960z" />
- <glyph glyph-name="camera_retro" unicode="&#xf083;" horiz-adv-x="1792"
-d="M928 704q0 14 -9 23t-23 9q-66 0 -113 -47t-47 -113q0 -14 9 -23t23 -9t23 9t9 23q0 40 28 68t68 28q14 0 23 9t9 23zM1152 574q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM128 0h1536v128h-1536v-128zM1280 574q0 159 -112.5 271.5
-t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM256 1216h384v128h-384v-128zM128 1024h1536v118v138h-828l-64 -128h-644v-128zM1792 1280v-1280q0 -53 -37.5 -90.5t-90.5 -37.5h-1536q-53 0 -90.5 37.5t-37.5 90.5v1280
-q0 53 37.5 90.5t90.5 37.5h1536q53 0 90.5 -37.5t37.5 -90.5z" />
- <glyph glyph-name="key" unicode="&#xf084;" horiz-adv-x="1792"
-d="M832 1024q0 80 -56 136t-136 56t-136 -56t-56 -136q0 -42 19 -83q-41 19 -83 19q-80 0 -136 -56t-56 -136t56 -136t136 -56t136 56t56 136q0 42 -19 83q41 -19 83 -19q80 0 136 56t56 136zM1683 320q0 -17 -49 -66t-66 -49q-9 0 -28.5 16t-36.5 33t-38.5 40t-24.5 26
-l-96 -96l220 -220q28 -28 28 -68q0 -42 -39 -81t-81 -39q-40 0 -68 28l-671 671q-176 -131 -365 -131q-163 0 -265.5 102.5t-102.5 265.5q0 160 95 313t248 248t313 95q163 0 265.5 -102.5t102.5 -265.5q0 -189 -131 -365l355 -355l96 96q-3 3 -26 24.5t-40 38.5t-33 36.5
-t-16 28.5q0 17 49 66t66 49q13 0 23 -10q6 -6 46 -44.5t82 -79.5t86.5 -86t73 -78t28.5 -41z" />
- <glyph glyph-name="cogs" unicode="&#xf085;" horiz-adv-x="1920"
-d="M896 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1664 128q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1152q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5
-t90.5 37.5t37.5 90.5zM1280 731v-185q0 -10 -7 -19.5t-16 -10.5l-155 -24q-11 -35 -32 -76q34 -48 90 -115q7 -11 7 -20q0 -12 -7 -19q-23 -30 -82.5 -89.5t-78.5 -59.5q-11 0 -21 7l-115 90q-37 -19 -77 -31q-11 -108 -23 -155q-7 -24 -30 -24h-186q-11 0 -20 7.5t-10 17.5
-l-23 153q-34 10 -75 31l-118 -89q-7 -7 -20 -7q-11 0 -21 8q-144 133 -144 160q0 9 7 19q10 14 41 53t47 61q-23 44 -35 82l-152 24q-10 1 -17 9.5t-7 19.5v185q0 10 7 19.5t16 10.5l155 24q11 35 32 76q-34 48 -90 115q-7 11 -7 20q0 12 7 20q22 30 82 89t79 59q11 0 21 -7
-l115 -90q34 18 77 32q11 108 23 154q7 24 30 24h186q11 0 20 -7.5t10 -17.5l23 -153q34 -10 75 -31l118 89q8 7 20 7q11 0 21 -8q144 -133 144 -160q0 -8 -7 -19q-12 -16 -42 -54t-45 -60q23 -48 34 -82l152 -23q10 -2 17 -10.5t7 -19.5zM1920 198v-140q0 -16 -149 -31
-q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20
-t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31zM1920 1222v-140q0 -16 -149 -31q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68
-q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70
-q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31z" />
- <glyph glyph-name="comments" unicode="&#xf086;" horiz-adv-x="1792"
-d="M1408 768q0 -139 -94 -257t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224
-q0 139 94 257t256.5 186.5t353.5 68.5t353.5 -68.5t256.5 -186.5t94 -257zM1792 512q0 -120 -71 -224.5t-195 -176.5q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7
-q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230z" />
- <glyph glyph-name="thumbs_up_alt" unicode="&#xf087;"
-d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 768q0 51 -39 89.5t-89 38.5h-352q0 58 48 159.5t48 160.5q0 98 -32 145t-128 47q-26 -26 -38 -85t-30.5 -125.5t-59.5 -109.5q-22 -23 -77 -91q-4 -5 -23 -30t-31.5 -41t-34.5 -42.5
-t-40 -44t-38.5 -35.5t-40 -27t-35.5 -9h-32v-640h32q13 0 31.5 -3t33 -6.5t38 -11t35 -11.5t35.5 -12.5t29 -10.5q211 -73 342 -73h121q192 0 192 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5q32 1 53.5 47t21.5 81zM1536 769
-q0 -89 -49 -163q9 -33 9 -69q0 -77 -38 -144q3 -21 3 -43q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5h-36h-93q-96 0 -189.5 22.5t-216.5 65.5q-116 40 -138 40h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h274q36 24 137 155q58 75 107 128
-q24 25 35.5 85.5t30.5 126.5t62 108q39 37 90 37q84 0 151 -32.5t102 -101.5t35 -186q0 -93 -48 -192h176q104 0 180 -76t76 -179z" />
- <glyph glyph-name="thumbs_down_alt" unicode="&#xf088;"
-d="M256 1088q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 512q0 35 -21.5 81t-53.5 47q15 17 25 47.5t10 55.5q0 69 -53 119q18 31 18 69q0 37 -17.5 73.5t-47.5 52.5q5 30 5 56q0 85 -49 126t-136 41h-128q-131 0 -342 -73q-5 -2 -29 -10.5
-t-35.5 -12.5t-35 -11.5t-38 -11t-33 -6.5t-31.5 -3h-32v-640h32q16 0 35.5 -9t40 -27t38.5 -35.5t40 -44t34.5 -42.5t31.5 -41t23 -30q55 -68 77 -91q41 -43 59.5 -109.5t30.5 -125.5t38 -85q96 0 128 47t32 145q0 59 -48 160.5t-48 159.5h352q50 0 89 38.5t39 89.5z
-M1536 511q0 -103 -76 -179t-180 -76h-176q48 -99 48 -192q0 -118 -35 -186q-35 -69 -102 -101.5t-151 -32.5q-51 0 -90 37q-34 33 -54 82t-25.5 90.5t-17.5 84.5t-31 64q-48 50 -107 127q-101 131 -137 155h-274q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5
-h288q22 0 138 40q128 44 223 66t200 22h112q140 0 226.5 -79t85.5 -216v-5q60 -77 60 -178q0 -22 -3 -43q38 -67 38 -144q0 -36 -9 -69q49 -73 49 -163z" />
- <glyph glyph-name="star_half" unicode="&#xf089;" horiz-adv-x="896"
-d="M832 1504v-1339l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41z" />
- <glyph glyph-name="heart_empty" unicode="&#xf08a;" horiz-adv-x="1792"
-d="M1664 940q0 81 -21.5 143t-55 98.5t-81.5 59.5t-94 31t-98 8t-112 -25.5t-110.5 -64t-86.5 -72t-60 -61.5q-18 -22 -49 -22t-49 22q-24 28 -60 61.5t-86.5 72t-110.5 64t-112 25.5t-98 -8t-94 -31t-81.5 -59.5t-55 -98.5t-21.5 -143q0 -168 187 -355l581 -560l580 559
-q188 188 188 356zM1792 940q0 -221 -229 -450l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5
-q224 0 351 -124t127 -344z" />
- <glyph glyph-name="signout" unicode="&#xf08b;" horiz-adv-x="1664"
-d="M640 96q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h320q13 0 22.5 -9.5t9.5 -22.5q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-66 0 -113 -47t-47 -113v-704
-q0 -66 47 -113t113 -47h288h11h13t11.5 -1t11.5 -3t8 -5.5t7 -9t2 -13.5zM1568 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45z" />
- <glyph glyph-name="linkedin_sign" unicode="&#xf08c;"
-d="M237 122h231v694h-231v-694zM483 1030q-1 52 -36 86t-93 34t-94.5 -34t-36.5 -86q0 -51 35.5 -85.5t92.5 -34.5h1q59 0 95 34.5t36 85.5zM1068 122h231v398q0 154 -73 233t-193 79q-136 0 -209 -117h2v101h-231q3 -66 0 -694h231v388q0 38 7 56q15 35 45 59.5t74 24.5
-q116 0 116 -157v-371zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="pushpin" unicode="&#xf08d;" horiz-adv-x="1152"
-d="M480 672v448q0 14 -9 23t-23 9t-23 -9t-9 -23v-448q0 -14 9 -23t23 -9t23 9t9 23zM1152 320q0 -26 -19 -45t-45 -19h-429l-51 -483q-2 -12 -10.5 -20.5t-20.5 -8.5h-1q-27 0 -32 27l-76 485h-404q-26 0 -45 19t-19 45q0 123 78.5 221.5t177.5 98.5v512q-52 0 -90 38
-t-38 90t38 90t90 38h640q52 0 90 -38t38 -90t-38 -90t-90 -38v-512q99 0 177.5 -98.5t78.5 -221.5z" />
- <glyph glyph-name="external_link" unicode="&#xf08e;" horiz-adv-x="1792"
-d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320
-q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" />
- <glyph glyph-name="signin" unicode="&#xf090;"
-d="M1184 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45zM1536 992v-704q0 -119 -84.5 -203.5t-203.5 -84.5h-320q-13 0 -22.5 9.5t-9.5 22.5
-q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q66 0 113 47t47 113v704q0 66 -47 113t-113 47h-288h-11h-13t-11.5 1t-11.5 3t-8 5.5t-7 9t-2 13.5q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="trophy" unicode="&#xf091;" horiz-adv-x="1664"
-d="M458 653q-74 162 -74 371h-256v-96q0 -78 94.5 -162t235.5 -113zM1536 928v96h-256q0 -209 -74 -371q141 29 235.5 113t94.5 162zM1664 1056v-128q0 -71 -41.5 -143t-112 -130t-173 -97.5t-215.5 -44.5q-42 -54 -95 -95q-38 -34 -52.5 -72.5t-14.5 -89.5q0 -54 30.5 -91
-t97.5 -37q75 0 133.5 -45.5t58.5 -114.5v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 69 58.5 114.5t133.5 45.5q67 0 97.5 37t30.5 91q0 51 -14.5 89.5t-52.5 72.5q-53 41 -95 95q-113 5 -215.5 44.5t-173 97.5t-112 130t-41.5 143v128q0 40 28 68t68 28h288v96
-q0 66 47 113t113 47h576q66 0 113 -47t47 -113v-96h288q40 0 68 -28t28 -68z" />
- <glyph glyph-name="github_sign" unicode="&#xf092;"
-d="M519 336q4 6 -3 13q-9 7 -14 2q-4 -6 3 -13q9 -7 14 -2zM491 377q-5 7 -12 4q-6 -4 0 -12q7 -8 12 -5q6 4 0 13zM450 417q2 4 -5 8q-7 2 -8 -2q-3 -5 4 -8q8 -2 9 2zM471 394q2 1 1.5 4.5t-3.5 5.5q-6 7 -10 3t1 -11q6 -6 11 -2zM557 319q2 7 -9 11q-9 3 -13 -4
-q-2 -7 9 -11q9 -3 13 4zM599 316q0 8 -12 8q-10 0 -10 -8t11 -8t11 8zM638 323q-2 7 -13 5t-9 -9q2 -8 12 -6t10 10zM1280 640q0 212 -150 362t-362 150t-362 -150t-150 -362q0 -167 98 -300.5t252 -185.5q18 -3 26.5 5t8.5 20q0 52 -1 95q-6 -1 -15.5 -2.5t-35.5 -2t-48 4
-t-43.5 20t-29.5 41.5q-23 59 -57 74q-2 1 -4.5 3.5l-8 8t-7 9.5t4 7.5t19.5 3.5q6 0 15 -2t30 -15.5t33 -35.5q16 -28 37.5 -42t43.5 -14t38 3.5t30 9.5q7 47 33 69q-49 6 -86 18.5t-73 39t-55.5 76t-19.5 119.5q0 79 53 137q-24 62 5 136q19 6 54.5 -7.5t60.5 -29.5l26 -16
-q58 17 128 17t128 -17q11 7 28.5 18t55.5 26t57 9q29 -74 5 -136q53 -58 53 -137q0 -57 -14 -100.5t-35.5 -70t-53.5 -44.5t-62.5 -26t-68.5 -12q35 -31 35 -95q0 -40 -0.5 -89t-0.5 -51q0 -12 8.5 -20t26.5 -5q154 52 252 185.5t98 300.5zM1536 1120v-960
-q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="upload_alt" unicode="&#xf093;" horiz-adv-x="1664"
-d="M1280 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 288v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h427q21 -56 70.5 -92
-t110.5 -36h256q61 0 110.5 36t70.5 92h427q40 0 68 -28t28 -68zM1339 936q-17 -40 -59 -40h-256v-448q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v448h-256q-42 0 -59 40q-17 39 14 69l448 448q18 19 45 19t45 -19l448 -448q31 -30 14 -69z" />
- <glyph glyph-name="lemon" unicode="&#xf094;"
-d="M1407 710q0 44 -7 113.5t-18 96.5q-12 30 -17 44t-9 36.5t-4 48.5q0 23 5 68.5t5 67.5q0 37 -10 55q-4 1 -13 1q-19 0 -58 -4.5t-59 -4.5q-60 0 -176 24t-175 24q-43 0 -94.5 -11.5t-85 -23.5t-89.5 -34q-137 -54 -202 -103q-96 -73 -159.5 -189.5t-88 -236t-24.5 -248.5
-q0 -40 12.5 -120t12.5 -121q0 -23 -11 -66.5t-11 -65.5t12 -36.5t34 -14.5q24 0 72.5 11t73.5 11q57 0 169.5 -15.5t169.5 -15.5q181 0 284 36q129 45 235.5 152.5t166 245.5t59.5 275zM1535 712q0 -165 -70 -327.5t-196 -288t-281 -180.5q-124 -44 -326 -44
-q-57 0 -170 14.5t-169 14.5q-24 0 -72.5 -14.5t-73.5 -14.5q-73 0 -123.5 55.5t-50.5 128.5q0 24 11 68t11 67q0 40 -12.5 120.5t-12.5 121.5q0 111 18 217.5t54.5 209.5t100.5 194t150 156q78 59 232 120q194 78 316 78q60 0 175.5 -24t173.5 -24q19 0 57 5t58 5
-q81 0 118 -50.5t37 -134.5q0 -23 -5 -68t-5 -68q0 -13 2 -25t3.5 -16.5t7.5 -20.5t8 -20q16 -40 25 -118.5t9 -136.5z" />
- <glyph glyph-name="phone" unicode="&#xf095;" horiz-adv-x="1408"
-d="M1408 296q0 -27 -10 -70.5t-21 -68.5q-21 -50 -122 -106q-94 -51 -186 -51q-27 0 -53 3.5t-57.5 12.5t-47 14.5t-55.5 20.5t-49 18q-98 35 -175 83q-127 79 -264 216t-216 264q-48 77 -83 175q-3 9 -18 49t-20.5 55.5t-14.5 47t-12.5 57.5t-3.5 53q0 92 51 186
-q56 101 106 122q25 11 68.5 21t70.5 10q14 0 21 -3q18 -6 53 -76q11 -19 30 -54t35 -63.5t31 -53.5q3 -4 17.5 -25t21.5 -35.5t7 -28.5q0 -20 -28.5 -50t-62 -55t-62 -53t-28.5 -46q0 -9 5 -22.5t8.5 -20.5t14 -24t11.5 -19q76 -137 174 -235t235 -174q2 -1 19 -11.5t24 -14
-t20.5 -8.5t22.5 -5q18 0 46 28.5t53 62t55 62t50 28.5q14 0 28.5 -7t35.5 -21.5t25 -17.5q25 -15 53.5 -31t63.5 -35t54 -30q70 -35 76 -53q3 -7 3 -21z" />
- <glyph glyph-name="check_empty" unicode="&#xf096;" horiz-adv-x="1408"
-d="M1120 1280h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v832q0 66 -47 113t-113 47zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832
-q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="bookmark_empty" unicode="&#xf097;" horiz-adv-x="1280"
-d="M1152 1280h-1024v-1242l423 406l89 85l89 -85l423 -406v1242zM1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289
-q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
- <glyph glyph-name="phone_sign" unicode="&#xf098;"
-d="M1280 343q0 11 -2 16t-18 16.5t-40.5 25t-47.5 26.5t-45.5 25t-28.5 15q-5 3 -19 13t-25 15t-21 5q-15 0 -36.5 -20.5t-39.5 -45t-38.5 -45t-33.5 -20.5q-7 0 -16.5 3.5t-15.5 6.5t-17 9.5t-14 8.5q-99 55 -170 126.5t-127 170.5q-2 3 -8.5 14t-9.5 17t-6.5 15.5
-t-3.5 16.5q0 13 20.5 33.5t45 38.5t45 39.5t20.5 36.5q0 10 -5 21t-15 25t-13 19q-3 6 -15 28.5t-25 45.5t-26.5 47.5t-25 40.5t-16.5 18t-16 2q-48 0 -101 -22q-46 -21 -80 -94.5t-34 -130.5q0 -16 2.5 -34t5 -30.5t9 -33t10 -29.5t12.5 -33t11 -30q60 -164 216.5 -320.5
-t320.5 -216.5q6 -2 30 -11t33 -12.5t29.5 -10t33 -9t30.5 -5t34 -2.5q57 0 130.5 34t94.5 80q22 53 22 101zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z
-" />
- <glyph glyph-name="twitter" unicode="&#xf099;" horiz-adv-x="1664"
-d="M1620 1128q-67 -98 -162 -167q1 -14 1 -42q0 -130 -38 -259.5t-115.5 -248.5t-184.5 -210.5t-258 -146t-323 -54.5q-271 0 -496 145q35 -4 78 -4q225 0 401 138q-105 2 -188 64.5t-114 159.5q33 -5 61 -5q43 0 85 11q-112 23 -185.5 111.5t-73.5 205.5v4q68 -38 146 -41
-q-66 44 -105 115t-39 154q0 88 44 163q121 -149 294.5 -238.5t371.5 -99.5q-8 38 -8 74q0 134 94.5 228.5t228.5 94.5q140 0 236 -102q109 21 205 78q-37 -115 -142 -178q93 10 186 50z" />
- <glyph glyph-name="facebook" unicode="&#xf09a;" horiz-adv-x="1024"
-d="M959 1524v-264h-157q-86 0 -116 -36t-30 -108v-189h293l-39 -296h-254v-759h-306v759h-255v296h255v218q0 186 104 288.5t277 102.5q147 0 228 -12z" />
- <glyph glyph-name="github" unicode="&#xf09b;"
-d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5q0 -251 -146.5 -451.5t-378.5 -277.5q-27 -5 -40 7t-13 30q0 3 0.5 76.5t0.5 134.5q0 97 -52 142q57 6 102.5 18t94 39t81 66.5t53 105t20.5 150.5q0 119 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24
-q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-85 13.5q-45 -113 -8 -204q-79 -87 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-39 -36 -49 -103q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5
-t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -88.5t0.5 -54.5q0 -18 -13 -30t-40 -7q-232 77 -378.5 277.5t-146.5 451.5q0 209 103 385.5t279.5 279.5t385.5 103zM291 305q3 7 -7 12
-q-10 3 -13 -2q-3 -7 7 -12q9 -6 13 2zM322 271q7 5 -2 16q-10 9 -16 3q-7 -5 2 -16q10 -10 16 -3zM352 226q9 7 0 19q-8 13 -17 6q-9 -5 0 -18t17 -7zM394 184q8 8 -4 19q-12 12 -20 3q-9 -8 4 -19q12 -12 20 -3zM451 159q3 11 -13 16q-15 4 -19 -7t13 -15q15 -6 19 6z
-M514 154q0 13 -17 11q-16 0 -16 -11q0 -13 17 -11q16 0 16 11zM572 164q-2 11 -18 9q-16 -3 -14 -15t18 -8t14 14z" />
- <glyph glyph-name="unlock" unicode="&#xf09c;" horiz-adv-x="1664"
-d="M1664 960v-256q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-192h96q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h672v192q0 185 131.5 316.5t316.5 131.5
-t316.5 -131.5t131.5 -316.5z" />
- <glyph glyph-name="credit_card" unicode="&#xf09d;" horiz-adv-x="1920"
-d="M1760 1408q66 0 113 -47t47 -113v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600zM160 1280q-13 0 -22.5 -9.5t-9.5 -22.5v-224h1664v224q0 13 -9.5 22.5t-22.5 9.5h-1600zM1760 0q13 0 22.5 9.5t9.5 22.5v608h-1664v-608
-q0 -13 9.5 -22.5t22.5 -9.5h1600zM256 128v128h256v-128h-256zM640 128v128h384v-128h-384z" />
- <glyph glyph-name="rss" unicode="&#xf09e;" horiz-adv-x="1408"
-d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5
-t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294
-q187 -186 294 -425.5t120 -501.5z" />
- <glyph glyph-name="hdd" unicode="&#xf0a0;"
-d="M1040 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1296 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1408 160v320q0 13 -9.5 22.5t-22.5 9.5
-h-1216q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5zM178 640h1180l-157 482q-4 13 -16 21.5t-26 8.5h-782q-14 0 -26 -8.5t-16 -21.5zM1536 480v-320q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v320q0 25 16 75
-l197 606q17 53 63 86t101 33h782q55 0 101 -33t63 -86l197 -606q16 -50 16 -75z" />
- <glyph glyph-name="bullhorn" unicode="&#xf0a1;" horiz-adv-x="1792"
-d="M1664 896q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5v-384q0 -52 -38 -90t-90 -38q-417 347 -812 380q-58 -19 -91 -66t-31 -100.5t40 -92.5q-20 -33 -23 -65.5t6 -58t33.5 -55t48 -50t61.5 -50.5q-29 -58 -111.5 -83t-168.5 -11.5t-132 55.5q-7 23 -29.5 87.5
-t-32 94.5t-23 89t-15 101t3.5 98.5t22 110.5h-122q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h480q435 0 896 384q52 0 90 -38t38 -90v-384zM1536 292v954q-394 -302 -768 -343v-270q377 -42 768 -341z" />
- <glyph glyph-name="bell" unicode="&#xf0a2;" horiz-adv-x="1792"
-d="M912 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM246 128h1300q-266 300 -266 832q0 51 -24 105t-69 103t-121.5 80.5t-169.5 31.5t-169.5 -31.5t-121.5 -80.5t-69 -103t-24 -105q0 -532 -266 -832z
-M1728 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q190 -28 307 -158.5
-t117 -282.5q0 -139 19.5 -260t50 -206t74.5 -158.5t85 -119.5t91 -88z" />
- <glyph glyph-name="certificate" unicode="&#xf0a3;"
-d="M1376 640l138 -135q30 -28 20 -70q-12 -41 -52 -51l-188 -48l53 -186q12 -41 -19 -70q-29 -31 -70 -19l-186 53l-48 -188q-10 -40 -51 -52q-12 -2 -19 -2q-31 0 -51 22l-135 138l-135 -138q-28 -30 -70 -20q-41 11 -51 52l-48 188l-186 -53q-41 -12 -70 19q-31 29 -19 70
-l53 186l-188 48q-40 10 -52 51q-10 42 20 70l138 135l-138 135q-30 28 -20 70q12 41 52 51l188 48l-53 186q-12 41 19 70q29 31 70 19l186 -53l48 188q10 41 51 51q41 12 70 -19l135 -139l135 139q29 30 70 19q41 -10 51 -51l48 -188l186 53q41 12 70 -19q31 -29 19 -70
-l-53 -186l188 -48q40 -10 52 -51q10 -42 -20 -70z" />
- <glyph glyph-name="hand_right" unicode="&#xf0a4;" horiz-adv-x="1792"
-d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 768q0 51 -39 89.5t-89 38.5h-576q0 20 15 48.5t33 55t33 68t15 84.5q0 67 -44.5 97.5t-115.5 30.5q-24 0 -90 -139q-24 -44 -37 -65q-40 -64 -112 -145q-71 -81 -101 -106
-q-69 -57 -140 -57h-32v-640h32q72 0 167 -32t193.5 -64t179.5 -32q189 0 189 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5h331q52 0 90 38t38 90zM1792 769q0 -105 -75.5 -181t-180.5 -76h-169q-4 -62 -37 -119q3 -21 3 -43
-q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5q-133 0 -322 69q-164 59 -223 59h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h288q10 0 21.5 4.5t23.5 14t22.5 18t24 22.5t20.5 21.5t19 21.5t14 17q65 74 100 129q13 21 33 62t37 72t40.5 63t55 49.5
-t69.5 17.5q125 0 206.5 -67t81.5 -189q0 -68 -22 -128h374q104 0 180 -76t76 -179z" />
- <glyph glyph-name="hand_left" unicode="&#xf0a5;" horiz-adv-x="1792"
-d="M1376 128h32v640h-32q-35 0 -67.5 12t-62.5 37t-50 46t-49 54q-8 9 -12 14q-72 81 -112 145q-14 22 -38 68q-1 3 -10.5 22.5t-18.5 36t-20 35.5t-21.5 30.5t-18.5 11.5q-71 0 -115.5 -30.5t-44.5 -97.5q0 -43 15 -84.5t33 -68t33 -55t15 -48.5h-576q-50 0 -89 -38.5
-t-39 -89.5q0 -52 38 -90t90 -38h331q-15 -17 -25 -47.5t-10 -55.5q0 -69 53 -119q-18 -32 -18 -69t17.5 -73.5t47.5 -52.5q-4 -24 -4 -56q0 -85 48.5 -126t135.5 -41q84 0 183 32t194 64t167 32zM1664 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45z
-M1792 768v-640q0 -53 -37.5 -90.5t-90.5 -37.5h-288q-59 0 -223 -59q-190 -69 -317 -69q-142 0 -230 77.5t-87 217.5l1 5q-61 76 -61 178q0 22 3 43q-33 57 -37 119h-169q-105 0 -180.5 76t-75.5 181q0 103 76 179t180 76h374q-22 60 -22 128q0 122 81.5 189t206.5 67
-q38 0 69.5 -17.5t55 -49.5t40.5 -63t37 -72t33 -62q35 -55 100 -129q2 -3 14 -17t19 -21.5t20.5 -21.5t24 -22.5t22.5 -18t23.5 -14t21.5 -4.5h288q53 0 90.5 -37.5t37.5 -90.5z" />
- <glyph glyph-name="hand_up" unicode="&#xf0a6;"
-d="M1280 -64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 700q0 189 -167 189q-26 0 -56 -5q-16 30 -52.5 47.5t-73.5 17.5t-69 -18q-50 53 -119 53q-25 0 -55.5 -10t-47.5 -25v331q0 52 -38 90t-90 38q-51 0 -89.5 -39t-38.5 -89v-576
-q-20 0 -48.5 15t-55 33t-68 33t-84.5 15q-67 0 -97.5 -44.5t-30.5 -115.5q0 -24 139 -90q44 -24 65 -37q64 -40 145 -112q81 -71 106 -101q57 -69 57 -140v-32h640v32q0 72 32 167t64 193.5t32 179.5zM1536 705q0 -133 -69 -322q-59 -164 -59 -223v-288q0 -53 -37.5 -90.5
-t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v288q0 10 -4.5 21.5t-14 23.5t-18 22.5t-22.5 24t-21.5 20.5t-21.5 19t-17 14q-74 65 -129 100q-21 13 -62 33t-72 37t-63 40.5t-49.5 55t-17.5 69.5q0 125 67 206.5t189 81.5q68 0 128 -22v374q0 104 76 180t179 76
-q105 0 181 -75.5t76 -180.5v-169q62 -4 119 -37q21 3 43 3q101 0 178 -60q139 1 219.5 -85t80.5 -227z" />
- <glyph glyph-name="hand_down" unicode="&#xf0a7;"
-d="M1408 576q0 84 -32 183t-64 194t-32 167v32h-640v-32q0 -35 -12 -67.5t-37 -62.5t-46 -50t-54 -49q-9 -8 -14 -12q-81 -72 -145 -112q-22 -14 -68 -38q-3 -1 -22.5 -10.5t-36 -18.5t-35.5 -20t-30.5 -21.5t-11.5 -18.5q0 -71 30.5 -115.5t97.5 -44.5q43 0 84.5 15t68 33
-t55 33t48.5 15v-576q0 -50 38.5 -89t89.5 -39q52 0 90 38t38 90v331q46 -35 103 -35q69 0 119 53q32 -18 69 -18t73.5 17.5t52.5 47.5q24 -4 56 -4q85 0 126 48.5t41 135.5zM1280 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 580
-q0 -142 -77.5 -230t-217.5 -87l-5 1q-76 -61 -178 -61q-22 0 -43 3q-54 -30 -119 -37v-169q0 -105 -76 -180.5t-181 -75.5q-103 0 -179 76t-76 180v374q-54 -22 -128 -22q-121 0 -188.5 81.5t-67.5 206.5q0 38 17.5 69.5t49.5 55t63 40.5t72 37t62 33q55 35 129 100
-q3 2 17 14t21.5 19t21.5 20.5t22.5 24t18 22.5t14 23.5t4.5 21.5v288q0 53 37.5 90.5t90.5 37.5h640q53 0 90.5 -37.5t37.5 -90.5v-288q0 -59 59 -223q69 -190 69 -317z" />
- <glyph glyph-name="circle_arrow_left" unicode="&#xf0a8;"
-d="M1280 576v128q0 26 -19 45t-45 19h-502l189 189q19 19 19 45t-19 45l-91 91q-18 18 -45 18t-45 -18l-362 -362l-91 -91q-18 -18 -18 -45t18 -45l91 -91l362 -362q18 -18 45 -18t45 18l91 91q18 18 18 45t-18 45l-189 189h502q26 0 45 19t19 45zM1536 640
-q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="circle_arrow_right" unicode="&#xf0a9;"
-d="M1285 640q0 27 -18 45l-91 91l-362 362q-18 18 -45 18t-45 -18l-91 -91q-18 -18 -18 -45t18 -45l189 -189h-502q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h502l-189 -189q-19 -19 -19 -45t19 -45l91 -91q18 -18 45 -18t45 18l362 362l91 91q18 18 18 45zM1536 640
-q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="circle_arrow_up" unicode="&#xf0aa;"
-d="M1284 641q0 27 -18 45l-362 362l-91 91q-18 18 -45 18t-45 -18l-91 -91l-362 -362q-18 -18 -18 -45t18 -45l91 -91q18 -18 45 -18t45 18l189 189v-502q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v502l189 -189q19 -19 45 -19t45 19l91 91q18 18 18 45zM1536 640
-q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="circle_arrow_down" unicode="&#xf0ab;"
-d="M1284 639q0 27 -18 45l-91 91q-18 18 -45 18t-45 -18l-189 -189v502q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-502l-189 189q-19 19 -45 19t-45 -19l-91 -91q-18 -18 -18 -45t18 -45l362 -362l91 -91q18 -18 45 -18t45 18l91 91l362 362q18 18 18 45zM1536 640
-q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="globe" unicode="&#xf0ac;"
-d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1042 887q-2 -1 -9.5 -9.5t-13.5 -9.5q2 0 4.5 5t5 11t3.5 7q6 7 22 15q14 6 52 12q34 8 51 -11
-q-2 2 9.5 13t14.5 12q3 2 15 4.5t15 7.5l2 22q-12 -1 -17.5 7t-6.5 21q0 -2 -6 -8q0 7 -4.5 8t-11.5 -1t-9 -1q-10 3 -15 7.5t-8 16.5t-4 15q-2 5 -9.5 11t-9.5 10q-1 2 -2.5 5.5t-3 6.5t-4 5.5t-5.5 2.5t-7 -5t-7.5 -10t-4.5 -5q-3 2 -6 1.5t-4.5 -1t-4.5 -3t-5 -3.5
-q-3 -2 -8.5 -3t-8.5 -2q15 5 -1 11q-10 4 -16 3q9 4 7.5 12t-8.5 14h5q-1 4 -8.5 8.5t-17.5 8.5t-13 6q-8 5 -34 9.5t-33 0.5q-5 -6 -4.5 -10.5t4 -14t3.5 -12.5q1 -6 -5.5 -13t-6.5 -12q0 -7 14 -15.5t10 -21.5q-3 -8 -16 -16t-16 -12q-5 -8 -1.5 -18.5t10.5 -16.5
-q2 -2 1.5 -4t-3.5 -4.5t-5.5 -4t-6.5 -3.5l-3 -2q-11 -5 -20.5 6t-13.5 26q-7 25 -16 30q-23 8 -29 -1q-5 13 -41 26q-25 9 -58 4q6 1 0 15q-7 15 -19 12q3 6 4 17.5t1 13.5q3 13 12 23q1 1 7 8.5t9.5 13.5t0.5 6q35 -4 50 11q5 5 11.5 17t10.5 17q9 6 14 5.5t14.5 -5.5
-t14.5 -5q14 -1 15.5 11t-7.5 20q12 -1 3 17q-4 7 -8 9q-12 4 -27 -5q-8 -4 2 -8q-1 1 -9.5 -10.5t-16.5 -17.5t-16 5q-1 1 -5.5 13.5t-9.5 13.5q-8 0 -16 -15q3 8 -11 15t-24 8q19 12 -8 27q-7 4 -20.5 5t-19.5 -4q-5 -7 -5.5 -11.5t5 -8t10.5 -5.5t11.5 -4t8.5 -3
-q14 -10 8 -14q-2 -1 -8.5 -3.5t-11.5 -4.5t-6 -4q-3 -4 0 -14t-2 -14q-5 5 -9 17.5t-7 16.5q7 -9 -25 -6l-10 1q-4 0 -16 -2t-20.5 -1t-13.5 8q-4 8 0 20q1 4 4 2q-4 3 -11 9.5t-10 8.5q-46 -15 -94 -41q6 -1 12 1q5 2 13 6.5t10 5.5q34 14 42 7l5 5q14 -16 20 -25
-q-7 4 -30 1q-20 -6 -22 -12q7 -12 5 -18q-4 3 -11.5 10t-14.5 11t-15 5q-16 0 -22 -1q-146 -80 -235 -222q7 -7 12 -8q4 -1 5 -9t2.5 -11t11.5 3q9 -8 3 -19q1 1 44 -27q19 -17 21 -21q3 -11 -10 -18q-1 2 -9 9t-9 4q-3 -5 0.5 -18.5t10.5 -12.5q-7 0 -9.5 -16t-2.5 -35.5
-t-1 -23.5l2 -1q-3 -12 5.5 -34.5t21.5 -19.5q-13 -3 20 -43q6 -8 8 -9q3 -2 12 -7.5t15 -10t10 -10.5q4 -5 10 -22.5t14 -23.5q-2 -6 9.5 -20t10.5 -23q-1 0 -2.5 -1t-2.5 -1q3 -7 15.5 -14t15.5 -13q1 -3 2 -10t3 -11t8 -2q2 20 -24 62q-15 25 -17 29q-3 5 -5.5 15.5
-t-4.5 14.5q2 0 6 -1.5t8.5 -3.5t7.5 -4t2 -3q-3 -7 2 -17.5t12 -18.5t17 -19t12 -13q6 -6 14 -19.5t0 -13.5q9 0 20 -10.5t17 -19.5q5 -8 8 -26t5 -24q2 -7 8.5 -13.5t12.5 -9.5l16 -8t13 -7q5 -2 18.5 -10.5t21.5 -11.5q10 -4 16 -4t14.5 2.5t13.5 3.5q15 2 29 -15t21 -21
-q36 -19 55 -11q-2 -1 0.5 -7.5t8 -15.5t9 -14.5t5.5 -8.5q5 -6 18 -15t18 -15q6 4 7 9q-3 -8 7 -20t18 -10q14 3 14 32q-31 -15 -49 18q0 1 -2.5 5.5t-4 8.5t-2.5 8.5t0 7.5t5 3q9 0 10 3.5t-2 12.5t-4 13q-1 8 -11 20t-12 15q-5 -9 -16 -8t-16 9q0 -1 -1.5 -5.5t-1.5 -6.5
-q-13 0 -15 1q1 3 2.5 17.5t3.5 22.5q1 4 5.5 12t7.5 14.5t4 12.5t-4.5 9.5t-17.5 2.5q-19 -1 -26 -20q-1 -3 -3 -10.5t-5 -11.5t-9 -7q-7 -3 -24 -2t-24 5q-13 8 -22.5 29t-9.5 37q0 10 2.5 26.5t3 25t-5.5 24.5q3 2 9 9.5t10 10.5q2 1 4.5 1.5t4.5 0t4 1.5t3 6q-1 1 -4 3
-q-3 3 -4 3q7 -3 28.5 1.5t27.5 -1.5q15 -11 22 2q0 1 -2.5 9.5t-0.5 13.5q5 -27 29 -9q3 -3 15.5 -5t17.5 -5q3 -2 7 -5.5t5.5 -4.5t5 0.5t8.5 6.5q10 -14 12 -24q11 -40 19 -44q7 -3 11 -2t4.5 9.5t0 14t-1.5 12.5l-1 8v18l-1 8q-15 3 -18.5 12t1.5 18.5t15 18.5q1 1 8 3.5
-t15.5 6.5t12.5 8q21 19 15 35q7 0 11 9q-1 0 -5 3t-7.5 5t-4.5 2q9 5 2 16q5 3 7.5 11t7.5 10q9 -12 21 -2q8 8 1 16q5 7 20.5 10.5t18.5 9.5q7 -2 8 2t1 12t3 12q4 5 15 9t13 5l17 11q3 4 0 4q18 -2 31 11q10 11 -6 20q3 6 -3 9.5t-15 5.5q3 1 11.5 0.5t10.5 1.5
-q15 10 -7 16q-17 5 -43 -12zM879 10q206 36 351 189q-3 3 -12.5 4.5t-12.5 3.5q-18 7 -24 8q1 7 -2.5 13t-8 9t-12.5 8t-11 7q-2 2 -7 6t-7 5.5t-7.5 4.5t-8.5 2t-10 -1l-3 -1q-3 -1 -5.5 -2.5t-5.5 -3t-4 -3t0 -2.5q-21 17 -36 22q-5 1 -11 5.5t-10.5 7t-10 1.5t-11.5 -7
-q-5 -5 -6 -15t-2 -13q-7 5 0 17.5t2 18.5q-3 6 -10.5 4.5t-12 -4.5t-11.5 -8.5t-9 -6.5t-8.5 -5.5t-8.5 -7.5q-3 -4 -6 -12t-5 -11q-2 4 -11.5 6.5t-9.5 5.5q2 -10 4 -35t5 -38q7 -31 -12 -48q-27 -25 -29 -40q-4 -22 12 -26q0 -7 -8 -20.5t-7 -21.5q0 -6 2 -16z" />
- <glyph glyph-name="wrench" unicode="&#xf0ad;" horiz-adv-x="1664"
-d="M384 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1028 484l-682 -682q-37 -37 -90 -37q-52 0 -91 37l-106 108q-38 36 -38 90q0 53 38 91l681 681q39 -98 114.5 -173.5t173.5 -114.5zM1662 919q0 -39 -23 -106q-47 -134 -164.5 -217.5
-t-258.5 -83.5q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q58 0 121.5 -16.5t107.5 -46.5q16 -11 16 -28t-16 -28l-293 -169v-224l193 -107q5 3 79 48.5t135.5 81t70.5 35.5q15 0 23.5 -10t8.5 -25z" />
- <glyph glyph-name="tasks" unicode="&#xf0ae;" horiz-adv-x="1792"
-d="M1024 128h640v128h-640v-128zM640 640h1024v128h-1024v-128zM1280 1152h384v128h-384v-128zM1792 320v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 832v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19
-t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
- <glyph glyph-name="filter" unicode="&#xf0b0;" horiz-adv-x="1408"
-d="M1403 1241q17 -41 -14 -70l-493 -493v-742q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-256 256q-19 19 -19 45v486l-493 493q-31 29 -14 70q17 39 59 39h1280q42 0 59 -39z" />
- <glyph glyph-name="briefcase" unicode="&#xf0b1;" horiz-adv-x="1792"
-d="M640 1280h512v128h-512v-128zM1792 640v-480q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v480h672v-160q0 -26 19 -45t45 -19h320q26 0 45 19t19 45v160h672zM1024 640v-128h-256v128h256zM1792 1120v-384h-1792v384q0 66 47 113t113 47h352v160q0 40 28 68
-t68 28h576q40 0 68 -28t28 -68v-160h352q66 0 113 -47t47 -113z" />
- <glyph glyph-name="fullscreen" unicode="&#xf0b2;"
-d="M1283 995l-355 -355l355 -355l144 144q29 31 70 14q39 -17 39 -59v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l144 144l-355 355l-355 -355l144 -144q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l144 -144
-l355 355l-355 355l-144 -144q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v448q0 26 19 45t45 19h448q42 0 59 -40q17 -39 -14 -69l-144 -144l355 -355l355 355l-144 144q-31 30 -14 69q17 40 59 40h448q26 0 45 -19t19 -45v-448q0 -42 -39 -59q-13 -5 -25 -5q-26 0 -45 19z
-" />
- <glyph glyph-name="group" unicode="&#xf0c0;" horiz-adv-x="1920"
-d="M593 640q-162 -5 -265 -128h-134q-82 0 -138 40.5t-56 118.5q0 353 124 353q6 0 43.5 -21t97.5 -42.5t119 -21.5q67 0 133 23q-5 -37 -5 -66q0 -139 81 -256zM1664 3q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5
-t43 97.5t62 81t85.5 53.5t111.5 20q10 0 43 -21.5t73 -48t107 -48t135 -21.5t135 21.5t107 48t73 48t43 21.5q61 0 111.5 -20t85.5 -53.5t62 -81t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM640 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75
-t75 -181zM1344 896q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5zM1920 671q0 -78 -56 -118.5t-138 -40.5h-134q-103 123 -265 128q81 117 81 256q0 29 -5 66q66 -23 133 -23q59 0 119 21.5t97.5 42.5
-t43.5 21q124 0 124 -353zM1792 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181z" />
- <glyph glyph-name="link" unicode="&#xf0c1;" horiz-adv-x="1664"
-d="M1456 320q0 40 -28 68l-208 208q-28 28 -68 28q-42 0 -72 -32q3 -3 19 -18.5t21.5 -21.5t15 -19t13 -25.5t3.5 -27.5q0 -40 -28 -68t-68 -28q-15 0 -27.5 3.5t-25.5 13t-19 15t-21.5 21.5t-18.5 19q-33 -31 -33 -73q0 -40 28 -68l206 -207q27 -27 68 -27q40 0 68 26
-l147 146q28 28 28 67zM753 1025q0 40 -28 68l-206 207q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l208 -208q27 -27 68 -27q42 0 72 31q-3 3 -19 18.5t-21.5 21.5t-15 19t-13 25.5t-3.5 27.5q0 40 28 68t68 28q15 0 27.5 -3.5t25.5 -13t19 -15
-t21.5 -21.5t18.5 -19q33 31 33 73zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-206 207q-83 83 -83 203q0 123 88 209l-88 88q-86 -88 -208 -88q-120 0 -204 84l-208 208q-84 84 -84 204t85 203l147 146q83 83 203 83q121 0 204 -85l206 -207
-q83 -83 83 -203q0 -123 -88 -209l88 -88q86 88 208 88q120 0 204 -84l208 -208q84 -84 84 -204z" />
- <glyph glyph-name="cloud" unicode="&#xf0c2;" horiz-adv-x="1920"
-d="M1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088q-185 0 -316.5 131.5t-131.5 316.5q0 132 71 241.5t187 163.5q-2 28 -2 43q0 212 150 362t362 150q158 0 286.5 -88t187.5 -230q70 62 166 62q106 0 181 -75t75 -181q0 -75 -41 -138q129 -30 213 -134.5t84 -239.5z
-" />
- <glyph glyph-name="beaker" unicode="&#xf0c3;" horiz-adv-x="1664"
-d="M1527 88q56 -89 21.5 -152.5t-140.5 -63.5h-1152q-106 0 -140.5 63.5t21.5 152.5l503 793v399h-64q-26 0 -45 19t-19 45t19 45t45 19h512q26 0 45 -19t19 -45t-19 -45t-45 -19h-64v-399zM748 813l-272 -429h712l-272 429l-20 31v37v399h-128v-399v-37z" />
- <glyph glyph-name="cut" unicode="&#xf0c4;" horiz-adv-x="1792"
-d="M960 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1260 576l507 -398q28 -20 25 -56q-5 -35 -35 -51l-128 -64q-13 -7 -29 -7q-17 0 -31 8l-690 387l-110 -66q-8 -4 -12 -5q14 -49 10 -97q-7 -77 -56 -147.5t-132 -123.5q-132 -84 -277 -84
-q-136 0 -222 78q-90 84 -79 207q7 76 56 147t131 124q132 84 278 84q83 0 151 -31q9 13 22 22l122 73l-122 73q-13 9 -22 22q-68 -31 -151 -31q-146 0 -278 84q-82 53 -131 124t-56 147q-5 59 15.5 113t63.5 93q85 79 222 79q145 0 277 -84q83 -52 132 -123t56 -148
-q4 -48 -10 -97q4 -1 12 -5l110 -66l690 387q14 8 31 8q16 0 29 -7l128 -64q30 -16 35 -51q3 -36 -25 -56zM579 836q46 42 21 108t-106 117q-92 59 -192 59q-74 0 -113 -36q-46 -42 -21 -108t106 -117q92 -59 192 -59q74 0 113 36zM494 91q81 51 106 117t-21 108
-q-39 36 -113 36q-100 0 -192 -59q-81 -51 -106 -117t21 -108q39 -36 113 -36q100 0 192 59zM672 704l96 -58v11q0 36 33 56l14 8l-79 47l-26 -26q-3 -3 -10 -11t-12 -12q-2 -2 -4 -3.5t-3 -2.5zM896 480l96 -32l736 576l-128 64l-768 -431v-113l-160 -96l9 -8q2 -2 7 -6
-q4 -4 11 -12t11 -12l26 -26zM1600 64l128 64l-520 408l-177 -138q-2 -3 -13 -7z" />
- <glyph glyph-name="copy" unicode="&#xf0c5;" horiz-adv-x="1792"
-d="M1696 1152q40 0 68 -28t28 -68v-1216q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v288h-544q-40 0 -68 28t-28 68v672q0 40 20 88t48 76l408 408q28 28 76 48t88 20h416q40 0 68 -28t28 -68v-328q68 40 128 40h416zM1152 939l-299 -299h299v299zM512 1323l-299 -299
-h299v299zM708 676l316 316v416h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h512v256q0 40 20 88t48 76zM1664 -128v1152h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h896z" />
- <glyph glyph-name="paper_clip" unicode="&#xf0c6;" horiz-adv-x="1408"
-d="M1404 151q0 -117 -79 -196t-196 -79q-135 0 -235 100l-777 776q-113 115 -113 271q0 159 110 270t269 111q158 0 273 -113l605 -606q10 -10 10 -22q0 -16 -30.5 -46.5t-46.5 -30.5q-13 0 -23 10l-606 607q-79 77 -181 77q-106 0 -179 -75t-73 -181q0 -105 76 -181
-l776 -777q63 -63 145 -63q64 0 106 42t42 106q0 82 -63 145l-581 581q-26 24 -60 24q-29 0 -48 -19t-19 -48q0 -32 25 -59l410 -410q10 -10 10 -22q0 -16 -31 -47t-47 -31q-12 0 -22 10l-410 410q-63 61 -63 149q0 82 57 139t139 57q88 0 149 -63l581 -581q100 -98 100 -235
-z" />
- <glyph glyph-name="save" unicode="&#xf0c7;"
-d="M384 0h768v384h-768v-384zM1280 0h128v896q0 14 -10 38.5t-20 34.5l-281 281q-10 10 -34 20t-39 10v-416q0 -40 -28 -68t-68 -28h-576q-40 0 -68 28t-28 68v416h-128v-1280h128v416q0 40 28 68t68 28h832q40 0 68 -28t28 -68v-416zM896 928v320q0 13 -9.5 22.5t-22.5 9.5
-h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1536 896v-928q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h928q40 0 88 -20t76 -48l280 -280q28 -28 48 -76t20 -88z" />
- <glyph glyph-name="sign_blank" unicode="&#xf0c8;"
-d="M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="reorder" unicode="&#xf0c9;"
-d="M1536 192v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 704v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 1216v-128q0 -26 -19 -45
-t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
- <glyph glyph-name="ul" unicode="&#xf0ca;" horiz-adv-x="1792"
-d="M384 128q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 640q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5
-t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1152q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z
-M1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
- <glyph glyph-name="ol" unicode="&#xf0cb;" horiz-adv-x="1792"
-d="M381 -84q0 -80 -54.5 -126t-135.5 -46q-106 0 -172 66l57 88q49 -45 106 -45q29 0 50.5 14.5t21.5 42.5q0 64 -105 56l-26 56q8 10 32.5 43.5t42.5 54t37 38.5v1q-16 0 -48.5 -1t-48.5 -1v-53h-106v152h333v-88l-95 -115q51 -12 81 -49t30 -88zM383 543v-159h-362
-q-6 36 -6 54q0 51 23.5 93t56.5 68t66 47.5t56.5 43.5t23.5 45q0 25 -14.5 38.5t-39.5 13.5q-46 0 -81 -58l-85 59q24 51 71.5 79.5t105.5 28.5q73 0 123 -41.5t50 -112.5q0 -50 -34 -91.5t-75 -64.5t-75.5 -50.5t-35.5 -52.5h127v60h105zM1792 224v-192q0 -13 -9.5 -22.5
-t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1123v-99h-335v99h107q0 41 0.5 121.5t0.5 121.5v12h-2q-8 -17 -50 -54l-71 76l136 127h106v-404h108zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216
-q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
- <glyph glyph-name="strikethrough" unicode="&#xf0cc;" horiz-adv-x="1792"
-d="M1760 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h1728zM483 704q-28 35 -51 80q-48 98 -48 188q0 181 134 309q133 127 393 127q50 0 167 -19q66 -12 177 -48q10 -38 21 -118q14 -123 14 -183q0 -18 -5 -45l-12 -3l-84 6
-l-14 2q-50 149 -103 205q-88 91 -210 91q-114 0 -182 -59q-67 -58 -67 -146q0 -73 66 -140t279 -129q69 -20 173 -66q58 -28 95 -52h-743zM990 448h411q7 -39 7 -92q0 -111 -41 -212q-23 -56 -71 -104q-37 -35 -109 -81q-80 -48 -153 -66q-80 -21 -203 -21q-114 0 -195 23
-l-140 40q-57 16 -72 28q-8 8 -8 22v13q0 108 -2 156q-1 30 0 68l2 37v44l102 2q15 -34 30 -71t22.5 -56t12.5 -27q35 -57 80 -94q43 -36 105 -57q59 -22 132 -22q64 0 139 27q77 26 122 86q47 61 47 129q0 84 -81 157q-34 29 -137 71z" />
- <glyph glyph-name="underline" unicode="&#xf0cd;"
-d="M48 1313q-37 2 -45 4l-3 88q13 1 40 1q60 0 112 -4q132 -7 166 -7q86 0 168 3q116 4 146 5q56 0 86 2l-1 -14l2 -64v-9q-60 -9 -124 -9q-60 0 -79 -25q-13 -14 -13 -132q0 -13 0.5 -32.5t0.5 -25.5l1 -229l14 -280q6 -124 51 -202q35 -59 96 -92q88 -47 177 -47
-q104 0 191 28q56 18 99 51q48 36 65 64q36 56 53 114q21 73 21 229q0 79 -3.5 128t-11 122.5t-13.5 159.5l-4 59q-5 67 -24 88q-34 35 -77 34l-100 -2l-14 3l2 86h84l205 -10q76 -3 196 10l18 -2q6 -38 6 -51q0 -7 -4 -31q-45 -12 -84 -13q-73 -11 -79 -17q-15 -15 -15 -41
-q0 -7 1.5 -27t1.5 -31q8 -19 22 -396q6 -195 -15 -304q-15 -76 -41 -122q-38 -65 -112 -123q-75 -57 -182 -89q-109 -33 -255 -33q-167 0 -284 46q-119 47 -179 122q-61 76 -83 195q-16 80 -16 237v333q0 188 -17 213q-25 36 -147 39zM1536 -96v64q0 14 -9 23t-23 9h-1472
-q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h1472q14 0 23 9t9 23z" />
- <glyph glyph-name="table" unicode="&#xf0ce;" horiz-adv-x="1664"
-d="M512 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23
-v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 160v192
-q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192
-q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1664 1248v-1088q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1344q66 0 113 -47t47 -113
-z" />
- <glyph glyph-name="magic" unicode="&#xf0d0;" horiz-adv-x="1664"
-d="M1190 955l293 293l-107 107l-293 -293zM1637 1248q0 -27 -18 -45l-1286 -1286q-18 -18 -45 -18t-45 18l-198 198q-18 18 -18 45t18 45l1286 1286q18 18 45 18t45 -18l198 -198q18 -18 18 -45zM286 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM636 1276
-l196 -60l-196 -60l-60 -196l-60 196l-196 60l196 60l60 196zM1566 798l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM926 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98z" />
- <glyph glyph-name="truck" unicode="&#xf0d1;" horiz-adv-x="1792"
-d="M640 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM256 640h384v256h-158q-13 0 -22 -9l-195 -195q-9 -9 -9 -22v-30zM1536 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1792 1216v-1024q0 -15 -4 -26.5t-13.5 -18.5
-t-16.5 -11.5t-23.5 -6t-22.5 -2t-25.5 0t-22.5 0.5q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-64q-3 0 -22.5 -0.5t-25.5 0t-22.5 2t-23.5 6t-16.5 11.5t-13.5 18.5t-4 26.5q0 26 19 45t45 19v320q0 8 -0.5 35t0 38
-t2.5 34.5t6.5 37t14 30.5t22.5 30l198 198q19 19 50.5 32t58.5 13h160v192q0 26 19 45t45 19h1024q26 0 45 -19t19 -45z" />
- <glyph glyph-name="pinterest" unicode="&#xf0d2;"
-d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103q-111 0 -218 32q59 93 78 164q9 34 54 211q20 -39 73 -67.5t114 -28.5q121 0 216 68.5t147 188.5t52 270q0 114 -59.5 214t-172.5 163t-255 63q-105 0 -196 -29t-154.5 -77t-109 -110.5t-67 -129.5t-21.5 -134
-q0 -104 40 -183t117 -111q30 -12 38 20q2 7 8 31t8 30q6 23 -11 43q-51 61 -51 151q0 151 104.5 259.5t273.5 108.5q151 0 235.5 -82t84.5 -213q0 -170 -68.5 -289t-175.5 -119q-61 0 -98 43.5t-23 104.5q8 35 26.5 93.5t30 103t11.5 75.5q0 50 -27 83t-77 33
-q-62 0 -105 -57t-43 -142q0 -73 25 -122l-99 -418q-17 -70 -13 -177q-206 91 -333 281t-127 423q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="pinterest_sign" unicode="&#xf0d3;"
-d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-725q85 122 108 210q9 34 53 209q21 -39 73.5 -67t112.5 -28q181 0 295.5 147.5t114.5 373.5q0 84 -35 162.5t-96.5 139t-152.5 97t-197 36.5q-104 0 -194.5 -28.5t-153 -76.5
-t-107.5 -109.5t-66.5 -128t-21.5 -132.5q0 -102 39.5 -180t116.5 -110q13 -5 23.5 0t14.5 19q10 44 15 61q6 23 -11 42q-50 62 -50 150q0 150 103.5 256.5t270.5 106.5q149 0 232.5 -81t83.5 -210q0 -168 -67.5 -286t-173.5 -118q-60 0 -97 43.5t-23 103.5q8 34 26.5 92.5
-t29.5 102t11 74.5q0 49 -26.5 81.5t-75.5 32.5q-61 0 -103.5 -56.5t-42.5 -139.5q0 -72 24 -121l-98 -414q-24 -100 -7 -254h-183q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" />
- <glyph glyph-name="google_plus_sign" unicode="&#xf0d4;"
-d="M917 631q0 26 -6 64h-362v-132h217q-3 -24 -16.5 -50t-37.5 -53t-66.5 -44.5t-96.5 -17.5q-99 0 -169 71t-70 171t70 171t169 71q92 0 153 -59l104 101q-108 100 -257 100q-160 0 -272 -112.5t-112 -271.5t112 -271.5t272 -112.5q165 0 266.5 105t101.5 270zM1262 585
-h109v110h-109v110h-110v-110h-110v-110h110v-110h110v110zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="google_plus" unicode="&#xf0d5;" horiz-adv-x="2304"
-d="M1437 623q0 -208 -87 -370.5t-248 -254t-369 -91.5q-149 0 -285 58t-234 156t-156 234t-58 285t58 285t156 234t234 156t285 58q286 0 491 -192l-199 -191q-117 113 -292 113q-123 0 -227.5 -62t-165.5 -168.5t-61 -232.5t61 -232.5t165.5 -168.5t227.5 -62
-q83 0 152.5 23t114.5 57.5t78.5 78.5t49 83t21.5 74h-416v252h692q12 -63 12 -122zM2304 745v-210h-209v-209h-210v209h-209v210h209v209h210v-209h209z" />
- <glyph glyph-name="money" unicode="&#xf0d6;" horiz-adv-x="1920"
-d="M768 384h384v96h-128v448h-114l-148 -137l77 -80q42 37 55 57h2v-288h-128v-96zM1280 640q0 -70 -21 -142t-59.5 -134t-101.5 -101t-138 -39t-138 39t-101.5 101t-59.5 134t-21 142t21 142t59.5 134t101.5 101t138 39t138 -39t101.5 -101t59.5 -134t21 -142zM1792 384
-v512q-106 0 -181 75t-75 181h-1152q0 -106 -75 -181t-181 -75v-512q106 0 181 -75t75 -181h1152q0 106 75 181t181 75zM1920 1216v-1152q0 -26 -19 -45t-45 -19h-1792q-26 0 -45 19t-19 45v1152q0 26 19 45t45 19h1792q26 0 45 -19t19 -45z" />
- <glyph glyph-name="caret_down" unicode="&#xf0d7;" horiz-adv-x="1024"
-d="M1024 832q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
- <glyph glyph-name="caret_up" unicode="&#xf0d8;" horiz-adv-x="1024"
-d="M1024 320q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
- <glyph glyph-name="caret_left" unicode="&#xf0d9;" horiz-adv-x="640"
-d="M640 1088v-896q0 -26 -19 -45t-45 -19t-45 19l-448 448q-19 19 -19 45t19 45l448 448q19 19 45 19t45 -19t19 -45z" />
- <glyph glyph-name="caret_right" unicode="&#xf0da;" horiz-adv-x="640"
-d="M576 640q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19t-19 45v896q0 26 19 45t45 19t45 -19l448 -448q19 -19 19 -45z" />
- <glyph glyph-name="columns" unicode="&#xf0db;" horiz-adv-x="1664"
-d="M160 0h608v1152h-640v-1120q0 -13 9.5 -22.5t22.5 -9.5zM1536 32v1120h-640v-1152h608q13 0 22.5 9.5t9.5 22.5zM1664 1248v-1216q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1344q66 0 113 -47t47 -113z" />
- <glyph glyph-name="sort" unicode="&#xf0dc;" horiz-adv-x="1024"
-d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45zM1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
- <glyph glyph-name="sort_down" unicode="&#xf0dd;" horiz-adv-x="1024"
-d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
- <glyph glyph-name="sort_up" unicode="&#xf0de;" horiz-adv-x="1024"
-d="M1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
- <glyph glyph-name="envelope_alt" unicode="&#xf0e0;" horiz-adv-x="1792"
-d="M1792 826v-794q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v794q44 -49 101 -87q362 -246 497 -345q57 -42 92.5 -65.5t94.5 -48t110 -24.5h1h1q51 0 110 24.5t94.5 48t92.5 65.5q170 123 498 345q57 39 100 87zM1792 1120q0 -79 -49 -151t-122 -123
-q-376 -261 -468 -325q-10 -7 -42.5 -30.5t-54 -38t-52 -32.5t-57.5 -27t-50 -9h-1h-1q-23 0 -50 9t-57.5 27t-52 32.5t-54 38t-42.5 30.5q-91 64 -262 182.5t-205 142.5q-62 42 -117 115.5t-55 136.5q0 78 41.5 130t118.5 52h1472q65 0 112.5 -47t47.5 -113z" />
- <glyph glyph-name="linkedin" unicode="&#xf0e1;"
-d="M349 911v-991h-330v991h330zM370 1217q1 -73 -50.5 -122t-135.5 -49h-2q-82 0 -132 49t-50 122q0 74 51.5 122.5t134.5 48.5t133 -48.5t51 -122.5zM1536 488v-568h-329v530q0 105 -40.5 164.5t-126.5 59.5q-63 0 -105.5 -34.5t-63.5 -85.5q-11 -30 -11 -81v-553h-329
-q2 399 2 647t-1 296l-1 48h329v-144h-2q20 32 41 56t56.5 52t87 43.5t114.5 15.5q171 0 275 -113.5t104 -332.5z" />
- <glyph glyph-name="undo" unicode="&#xf0e2;"
-d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5
-t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298z" />
- <glyph glyph-name="legal" unicode="&#xf0e3;" horiz-adv-x="1792"
-d="M1771 0q0 -53 -37 -90l-107 -108q-39 -37 -91 -37q-53 0 -90 37l-363 364q-38 36 -38 90q0 53 43 96l-256 256l-126 -126q-14 -14 -34 -14t-34 14q2 -2 12.5 -12t12.5 -13t10 -11.5t10 -13.5t6 -13.5t5.5 -16.5t1.5 -18q0 -38 -28 -68q-3 -3 -16.5 -18t-19 -20.5
-t-18.5 -16.5t-22 -15.5t-22 -9t-26 -4.5q-40 0 -68 28l-408 408q-28 28 -28 68q0 13 4.5 26t9 22t15.5 22t16.5 18.5t20.5 19t18 16.5q30 28 68 28q10 0 18 -1.5t16.5 -5.5t13.5 -6t13.5 -10t11.5 -10t13 -12.5t12 -12.5q-14 14 -14 34t14 34l348 348q14 14 34 14t34 -14
-q-2 2 -12.5 12t-12.5 13t-10 11.5t-10 13.5t-6 13.5t-5.5 16.5t-1.5 18q0 38 28 68q3 3 16.5 18t19 20.5t18.5 16.5t22 15.5t22 9t26 4.5q40 0 68 -28l408 -408q28 -28 28 -68q0 -13 -4.5 -26t-9 -22t-15.5 -22t-16.5 -18.5t-20.5 -19t-18 -16.5q-30 -28 -68 -28
-q-10 0 -18 1.5t-16.5 5.5t-13.5 6t-13.5 10t-11.5 10t-13 12.5t-12 12.5q14 -14 14 -34t-14 -34l-126 -126l256 -256q43 43 96 43q52 0 91 -37l363 -363q37 -39 37 -91z" />
- <glyph glyph-name="dashboard" unicode="&#xf0e4;" horiz-adv-x="1792"
-d="M384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM576 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1004 351l101 382q6 26 -7.5 48.5t-38.5 29.5
-t-48 -6.5t-30 -39.5l-101 -382q-60 -5 -107 -43.5t-63 -98.5q-20 -77 20 -146t117 -89t146 20t89 117q16 60 -6 117t-72 91zM1664 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 1024q0 53 -37.5 90.5
-t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1472 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 384q0 -261 -141 -483q-19 -29 -54 -29h-1402q-35 0 -54 29
-q-141 221 -141 483q0 182 71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="comment_alt" unicode="&#xf0e5;" horiz-adv-x="1792"
-d="M896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640
-q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 174 120 321.5
-t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />
- <glyph glyph-name="comments_alt" unicode="&#xf0e6;" horiz-adv-x="1792"
-d="M704 1152q-153 0 -286 -52t-211.5 -141t-78.5 -191q0 -82 53 -158t149 -132l97 -56l-35 -84q34 20 62 39l44 31l53 -10q78 -14 153 -14q153 0 286 52t211.5 141t78.5 191t-78.5 191t-211.5 141t-286 52zM704 1280q191 0 353.5 -68.5t256.5 -186.5t94 -257t-94 -257
-t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224q0 139 94 257t256.5 186.5
-t353.5 68.5zM1526 111q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129
-q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230q0 -120 -71 -224.5t-195 -176.5z" />
- <glyph glyph-name="bolt" unicode="&#xf0e7;" horiz-adv-x="896"
-d="M885 970q18 -20 7 -44l-540 -1157q-13 -25 -42 -25q-4 0 -14 2q-17 5 -25.5 19t-4.5 30l197 808l-406 -101q-4 -1 -12 -1q-18 0 -31 11q-18 15 -13 39l201 825q4 14 16 23t28 9h328q19 0 32 -12.5t13 -29.5q0 -8 -5 -18l-171 -463l396 98q8 2 12 2q19 0 34 -15z" />
- <glyph glyph-name="sitemap" unicode="&#xf0e8;" horiz-adv-x="1792"
-d="M1792 288v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320
-q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192q0 52 38 90t90 38h512v192h-96q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h320q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-96v-192h512q52 0 90 -38t38 -90v-192h96q40 0 68 -28t28 -68
-z" />
- <glyph glyph-name="umbrella" unicode="&#xf0e9;" horiz-adv-x="1664"
-d="M896 708v-580q0 -104 -76 -180t-180 -76t-180 76t-76 180q0 26 19 45t45 19t45 -19t19 -45q0 -50 39 -89t89 -39t89 39t39 89v580q33 11 64 11t64 -11zM1664 681q0 -13 -9.5 -22.5t-22.5 -9.5q-11 0 -23 10q-49 46 -93 69t-102 23q-68 0 -128 -37t-103 -97
-q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -28 -17q-18 0 -29 17q-4 6 -14.5 24t-17.5 28q-43 60 -102.5 97t-127.5 37t-127.5 -37t-102.5 -97q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -29 -17q-17 0 -28 17q-4 6 -14.5 24t-17.5 28q-43 60 -103 97t-128 37q-58 0 -102 -23t-93 -69
-q-12 -10 -23 -10q-13 0 -22.5 9.5t-9.5 22.5q0 5 1 7q45 183 172.5 319.5t298 204.5t360.5 68q140 0 274.5 -40t246.5 -113.5t194.5 -187t115.5 -251.5q1 -2 1 -7zM896 1408v-98q-42 2 -64 2t-64 -2v98q0 26 19 45t45 19t45 -19t19 -45z" />
- <glyph glyph-name="paste" unicode="&#xf0ea;" horiz-adv-x="1792"
-d="M768 -128h896v640h-416q-40 0 -68 28t-28 68v416h-384v-1152zM1024 1312v64q0 13 -9.5 22.5t-22.5 9.5h-704q-13 0 -22.5 -9.5t-9.5 -22.5v-64q0 -13 9.5 -22.5t22.5 -9.5h704q13 0 22.5 9.5t9.5 22.5zM1280 640h299l-299 299v-299zM1792 512v-672q0 -40 -28 -68t-68 -28
-h-960q-40 0 -68 28t-28 68v160h-544q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1088q40 0 68 -28t28 -68v-328q21 -13 36 -28l408 -408q28 -28 48 -76t20 -88z" />
- <glyph glyph-name="light_bulb" unicode="&#xf0eb;" horiz-adv-x="1024"
-d="M736 960q0 -13 -9.5 -22.5t-22.5 -9.5t-22.5 9.5t-9.5 22.5q0 46 -54 71t-106 25q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5q50 0 99.5 -16t87 -54t37.5 -90zM896 960q0 72 -34.5 134t-90 101.5t-123 62t-136.5 22.5t-136.5 -22.5t-123 -62t-90 -101.5t-34.5 -134
-q0 -101 68 -180q10 -11 30.5 -33t30.5 -33q128 -153 141 -298h228q13 145 141 298q10 11 30.5 33t30.5 33q68 79 68 180zM1024 960q0 -155 -103 -268q-45 -49 -74.5 -87t-59.5 -95.5t-34 -107.5q47 -28 47 -82q0 -37 -25 -64q25 -27 25 -64q0 -52 -45 -81q13 -23 13 -47
-q0 -46 -31.5 -71t-77.5 -25q-20 -44 -60 -70t-87 -26t-87 26t-60 70q-46 0 -77.5 25t-31.5 71q0 24 13 47q-45 29 -45 81q0 37 25 64q-25 27 -25 64q0 54 47 82q-4 50 -34 107.5t-59.5 95.5t-74.5 87q-103 113 -103 268q0 99 44.5 184.5t117 142t164 89t186.5 32.5
-t186.5 -32.5t164 -89t117 -142t44.5 -184.5z" />
- <glyph glyph-name="exchange" unicode="&#xf0ec;" horiz-adv-x="1792"
-d="M1792 352v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5q-12 0 -24 10l-319 320q-9 9 -9 22q0 14 9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h1376q13 0 22.5 -9.5t9.5 -22.5zM1792 896q0 -14 -9 -23l-320 -320q-9 -9 -23 -9
-q-13 0 -22.5 9.5t-9.5 22.5v192h-1376q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1376v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
- <glyph glyph-name="cloud_download" unicode="&#xf0ed;" horiz-adv-x="1920"
-d="M1280 608q0 14 -9 23t-23 9h-224v352q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-352h-224q-13 0 -22.5 -9.5t-9.5 -22.5q0 -14 9 -23l352 -352q9 -9 23 -9t23 9l351 351q10 12 10 24zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088
-q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
- <glyph glyph-name="cloud_upload" unicode="&#xf0ee;" horiz-adv-x="1920"
-d="M1280 672q0 14 -9 23l-352 352q-9 9 -23 9t-23 -9l-351 -351q-10 -12 -10 -24q0 -14 9 -23t23 -9h224v-352q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5v352h224q13 0 22.5 9.5t9.5 22.5zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088
-q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
- <glyph glyph-name="user_md" unicode="&#xf0f0;" horiz-adv-x="1408"
-d="M384 192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 68 5.5 131t24 138t47.5 132.5t81 103t120 60.5q-22 -52 -22 -120v-203q-58 -20 -93 -70t-35 -111q0 -80 56 -136t136 -56
-t136 56t56 136q0 61 -35.5 111t-92.5 70v203q0 62 25 93q132 -104 295 -104t295 104q25 -31 25 -93v-64q-106 0 -181 -75t-75 -181v-89q-32 -29 -32 -71q0 -40 28 -68t68 -28t68 28t28 68q0 42 -32 71v89q0 52 38 90t90 38t90 -38t38 -90v-89q-32 -29 -32 -71q0 -40 28 -68
-t68 -28t68 28t28 68q0 42 -32 71v89q0 68 -34.5 127.5t-93.5 93.5q0 10 0.5 42.5t0 48t-2.5 41.5t-7 47t-13 40q68 -15 120 -60.5t81 -103t47.5 -132.5t24 -138t5.5 -131zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5
-t271.5 -112.5t112.5 -271.5z" />
- <glyph glyph-name="stethoscope" unicode="&#xf0f1;" horiz-adv-x="1408"
-d="M1280 832q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 832q0 -62 -35.5 -111t-92.5 -70v-395q0 -159 -131.5 -271.5t-316.5 -112.5t-316.5 112.5t-131.5 271.5v132q-164 20 -274 128t-110 252v512q0 26 19 45t45 19q6 0 16 -2q17 30 47 48
-t65 18q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5q-33 0 -64 18v-402q0 -106 94 -181t226 -75t226 75t94 181v402q-31 -18 -64 -18q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5q35 0 65 -18t47 -48q10 2 16 2q26 0 45 -19t19 -45v-512q0 -144 -110 -252
-t-274 -128v-132q0 -106 94 -181t226 -75t226 75t94 181v395q-57 21 -92.5 70t-35.5 111q0 80 56 136t136 56t136 -56t56 -136z" />
- <glyph glyph-name="suitcase" unicode="&#xf0f2;" horiz-adv-x="1792"
-d="M640 1152h512v128h-512v-128zM288 1152v-1280h-64q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h64zM1408 1152v-1280h-1024v1280h128v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h128zM1792 928v-832q0 -92 -66 -158t-158 -66h-64v1280h64q92 0 158 -66
-t66 -158z" />
- <glyph glyph-name="bell_alt" unicode="&#xf0f3;" horiz-adv-x="1792"
-d="M912 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM1728 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q50 42 91 88t85 119.5t74.5 158.5
-t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q190 -28 307 -158.5t117 -282.5q0 -139 19.5 -260t50 -206t74.5 -158.5t85 -119.5t91 -88z" />
- <glyph glyph-name="coffee" unicode="&#xf0f4;" horiz-adv-x="1920"
-d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45
-t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z" />
- <glyph glyph-name="food" unicode="&#xf0f5;" horiz-adv-x="1408"
-d="M640 1472v-640q0 -61 -35.5 -111t-92.5 -70v-779q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v779q-57 20 -92.5 70t-35.5 111v640q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45
-t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45zM1408 1472v-1600q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v512h-224q-13 0 -22.5 9.5t-9.5 22.5v800q0 132 94 226t226 94h256q26 0 45 -19t19 -45z" />
- <glyph glyph-name="file_text_alt" unicode="&#xf0f6;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M384 736q0 14 9 23t23 9h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64zM1120 512q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704zM1120 256q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704
-q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704z" />
- <glyph glyph-name="building" unicode="&#xf0f7;" horiz-adv-x="1408"
-d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M640 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M640 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M896 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M896 -128h384v1536h-1152v-1536h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM1408 1472v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280q26 0 45 -19t19 -45z" />
- <glyph glyph-name="hospital" unicode="&#xf0f8;" horiz-adv-x="1408"
-d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z
-M896 -128h384v1152h-256v-32q0 -40 -28 -68t-68 -28h-448q-40 0 -68 28t-28 68v32h-256v-1152h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM896 1056v320q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-96h-128v96q0 13 -9.5 22.5
-t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5v96h128v-96q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1408 1088v-1280q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1280q0 26 19 45t45 19h320
-v288q0 40 28 68t68 28h448q40 0 68 -28t28 -68v-288h320q26 0 45 -19t19 -45z" />
- <glyph glyph-name="ambulance" unicode="&#xf0f9;" horiz-adv-x="1920"
-d="M640 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM256 640h384v256h-158q-14 -2 -22 -9l-195 -195q-7 -12 -9 -22v-30zM1536 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5
-t90.5 37.5t37.5 90.5zM1664 800v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM1920 1344v-1152
-q0 -26 -19 -45t-45 -19h-192q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-128q-26 0 -45 19t-19 45t19 45t45 19v416q0 26 13 58t32 51l198 198q19 19 51 32t58 13h160v320q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
- <glyph glyph-name="medkit" unicode="&#xf0fa;" horiz-adv-x="1792"
-d="M1280 416v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM640 1152h512v128h-512v-128zM256 1152v-1280h-32
-q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h32zM1440 1152v-1280h-1088v1280h160v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h160zM1792 928v-832q0 -92 -66 -158t-158 -66h-32v1280h32q92 0 158 -66t66 -158z" />
- <glyph glyph-name="fighter_jet" unicode="&#xf0fb;" horiz-adv-x="1920"
-d="M1920 576q-1 -32 -288 -96l-352 -32l-224 -64h-64l-293 -352h69q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-96h-160h-64v32h64v416h-160l-192 -224h-96l-32 32v192h32v32h128v8l-192 24v128l192 24v8h-128v32h-32v192l32 32h96l192 -224h160v416h-64v32h64h160h96
-q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-69l293 -352h64l224 -64l352 -32q128 -28 200 -52t80 -34z" />
- <glyph glyph-name="beer" unicode="&#xf0fc;" horiz-adv-x="1664"
-d="M640 640v384h-256v-256q0 -53 37.5 -90.5t90.5 -37.5h128zM1664 192v-192h-1152v192l128 192h-128q-159 0 -271.5 112.5t-112.5 271.5v320l-64 64l32 128h480l32 128h960l32 -192l-64 -32v-800z" />
- <glyph glyph-name="h_sign" unicode="&#xf0fd;"
-d="M1280 192v896q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-512v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-896q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h512v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1536 1120v-960
-q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="f0fe" unicode="&#xf0fe;"
-d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960
-q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="double_angle_left" unicode="&#xf100;" horiz-adv-x="1024"
-d="M627 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23zM1011 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23
-t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23z" />
- <glyph glyph-name="double_angle_right" unicode="&#xf101;" horiz-adv-x="1024"
-d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM979 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23
-l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
- <glyph glyph-name="double_angle_up" unicode="&#xf102;" horiz-adv-x="1152"
-d="M1075 224q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM1075 608q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393
-q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
- <glyph glyph-name="double_angle_down" unicode="&#xf103;" horiz-adv-x="1152"
-d="M1075 672q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23zM1075 1056q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23
-t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
- <glyph glyph-name="angle_left" unicode="&#xf104;" horiz-adv-x="640"
-d="M627 992q0 -13 -10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
- <glyph glyph-name="angle_right" unicode="&#xf105;" horiz-adv-x="640"
-d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
- <glyph glyph-name="angle_up" unicode="&#xf106;" horiz-adv-x="1152"
-d="M1075 352q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
- <glyph glyph-name="angle_down" unicode="&#xf107;" horiz-adv-x="1152"
-d="M1075 800q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
- <glyph glyph-name="desktop" unicode="&#xf108;" horiz-adv-x="1920"
-d="M1792 544v832q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1376v-1088q0 -66 -47 -113t-113 -47h-544q0 -37 16 -77.5t32 -71t16 -43.5q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19
-t-19 45q0 14 16 44t32 70t16 78h-544q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
- <glyph glyph-name="laptop" unicode="&#xf109;" horiz-adv-x="1920"
-d="M416 256q-66 0 -113 47t-47 113v704q0 66 47 113t113 47h1088q66 0 113 -47t47 -113v-704q0 -66 -47 -113t-113 -47h-1088zM384 1120v-704q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5v704q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5z
-M1760 192h160v-96q0 -40 -47 -68t-113 -28h-1600q-66 0 -113 28t-47 68v96h160h1600zM1040 96q16 0 16 16t-16 16h-160q-16 0 -16 -16t16 -16h160z" />
- <glyph glyph-name="tablet" unicode="&#xf10a;" horiz-adv-x="1152"
-d="M640 128q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1024 288v960q0 13 -9.5 22.5t-22.5 9.5h-832q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h832q13 0 22.5 9.5t9.5 22.5zM1152 1248v-1088q0 -66 -47 -113t-113 -47h-832
-q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h832q66 0 113 -47t47 -113z" />
- <glyph glyph-name="mobile_phone" unicode="&#xf10b;" horiz-adv-x="768"
-d="M464 128q0 33 -23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5t56.5 23.5t23.5 56.5zM672 288v704q0 13 -9.5 22.5t-22.5 9.5h-512q-13 0 -22.5 -9.5t-9.5 -22.5v-704q0 -13 9.5 -22.5t22.5 -9.5h512q13 0 22.5 9.5t9.5 22.5zM480 1136
-q0 16 -16 16h-160q-16 0 -16 -16t16 -16h160q16 0 16 16zM768 1152v-1024q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v1024q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
- <glyph glyph-name="circle_blank" unicode="&#xf10c;"
-d="M768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103
-t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="quote_left" unicode="&#xf10d;" horiz-adv-x="1664"
-d="M768 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z
-M1664 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z" />
- <glyph glyph-name="quote_right" unicode="&#xf10e;" horiz-adv-x="1664"
-d="M768 1216v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136zM1664 1216
-v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136z" />
- <glyph glyph-name="spinner" unicode="&#xf110;" horiz-adv-x="1792"
-d="M526 142q0 -53 -37.5 -90.5t-90.5 -37.5q-52 0 -90 38t-38 90q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1024 -64q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM320 640q0 -53 -37.5 -90.5t-90.5 -37.5
-t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1522 142q0 -52 -38 -90t-90 -38q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM558 1138q0 -66 -47 -113t-113 -47t-113 47t-47 113t47 113t113 47t113 -47t47 -113z
-M1728 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1088 1344q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1618 1138q0 -93 -66 -158.5t-158 -65.5q-93 0 -158.5 65.5t-65.5 158.5
-q0 92 65.5 158t158.5 66q92 0 158 -66t66 -158z" />
- <glyph glyph-name="circle" unicode="&#xf111;"
-d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="reply" unicode="&#xf112;" horiz-adv-x="1792"
-d="M1792 416q0 -166 -127 -451q-3 -7 -10.5 -24t-13.5 -30t-13 -22q-12 -17 -28 -17q-15 0 -23.5 10t-8.5 25q0 9 2.5 26.5t2.5 23.5q5 68 5 123q0 101 -17.5 181t-48.5 138.5t-80 101t-105.5 69.5t-133 42.5t-154 21.5t-175.5 6h-224v-256q0 -26 -19 -45t-45 -19t-45 19
-l-512 512q-19 19 -19 45t19 45l512 512q19 19 45 19t45 -19t19 -45v-256h224q713 0 875 -403q53 -134 53 -333z" />
- <glyph glyph-name="github_alt" unicode="&#xf113;" horiz-adv-x="1664"
-d="M640 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1280 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1440 320
-q0 120 -69 204t-187 84q-41 0 -195 -21q-71 -11 -157 -11t-157 11q-152 21 -195 21q-118 0 -187 -84t-69 -204q0 -88 32 -153.5t81 -103t122 -60t140 -29.5t149 -7h168q82 0 149 7t140 29.5t122 60t81 103t32 153.5zM1664 496q0 -207 -61 -331q-38 -77 -105.5 -133t-141 -86
-t-170 -47.5t-171.5 -22t-167 -4.5q-78 0 -142 3t-147.5 12.5t-152.5 30t-137 51.5t-121 81t-86 115q-62 123 -62 331q0 237 136 396q-27 82 -27 170q0 116 51 218q108 0 190 -39.5t189 -123.5q147 35 309 35q148 0 280 -32q105 82 187 121t189 39q51 -102 51 -218
-q0 -87 -27 -168q136 -160 136 -398z" />
- <glyph glyph-name="folder_close_alt" unicode="&#xf114;" horiz-adv-x="1664"
-d="M1536 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68v-960q0 -40 28 -68t68 -28h1216q40 0 68 28t28 68zM1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320
-q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
- <glyph glyph-name="folder_open_alt" unicode="&#xf115;" horiz-adv-x="1920"
-d="M1781 605q0 35 -53 35h-1088q-40 0 -85.5 -21.5t-71.5 -52.5l-294 -363q-18 -24 -18 -40q0 -35 53 -35h1088q40 0 86 22t71 53l294 363q18 22 18 39zM640 768h768v160q0 40 -28 68t-68 28h-576q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68
-v-853l256 315q44 53 116 87.5t140 34.5zM1909 605q0 -62 -46 -120l-295 -363q-43 -53 -116 -87.5t-140 -34.5h-1088q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158v-160h192q54 0 99 -24.5t67 -70.5q15 -32 15 -68z
-" />
- <glyph glyph-name="expand_alt" unicode="&#xf116;" horiz-adv-x="1792"
- />
- <glyph glyph-name="collapse_alt" unicode="&#xf117;" horiz-adv-x="1792"
- />
- <glyph glyph-name="smile" unicode="&#xf118;"
-d="M1134 461q-37 -121 -138 -195t-228 -74t-228 74t-138 195q-8 25 4 48.5t38 31.5q25 8 48.5 -4t31.5 -38q25 -80 92.5 -129.5t151.5 -49.5t151.5 49.5t92.5 129.5q8 26 32 38t49 4t37 -31.5t4 -48.5zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5
-t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5
-t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="frown" unicode="&#xf119;"
-d="M1134 307q8 -25 -4 -48.5t-37 -31.5t-49 4t-32 38q-25 80 -92.5 129.5t-151.5 49.5t-151.5 -49.5t-92.5 -129.5q-8 -26 -31.5 -38t-48.5 -4q-26 8 -38 31.5t-4 48.5q37 121 138 195t228 74t228 -74t138 -195zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5
-t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204
-t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="meh" unicode="&#xf11a;"
-d="M1152 448q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h640q26 0 45 -19t19 -45zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5
-t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640
-q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="gamepad" unicode="&#xf11b;" horiz-adv-x="1920"
-d="M832 448v128q0 14 -9 23t-23 9h-192v192q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-192h-192q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h192v-192q0 -14 9 -23t23 -9h128q14 0 23 9t9 23v192h192q14 0 23 9t9 23zM1408 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5
-t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1920 512q0 -212 -150 -362t-362 -150q-192 0 -338 128h-220q-146 -128 -338 -128q-212 0 -362 150
-t-150 362t150 362t362 150h896q212 0 362 -150t150 -362z" />
- <glyph glyph-name="keyboard" unicode="&#xf11c;" horiz-adv-x="1920"
-d="M384 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM512 624v-96q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h224q16 0 16 -16zM384 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 368v-96q0 -16 -16 -16
-h-864q-16 0 -16 16v96q0 16 16 16h864q16 0 16 -16zM768 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM640 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1024 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16
-h96q16 0 16 -16zM896 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1280 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1152 880v-96
-q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 880v-352q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h112v240q0 16 16 16h96q16 0 16 -16zM1792 128v896h-1664v-896
-h1664zM1920 1024v-896q0 -53 -37.5 -90.5t-90.5 -37.5h-1664q-53 0 -90.5 37.5t-37.5 90.5v896q0 53 37.5 90.5t90.5 37.5h1664q53 0 90.5 -37.5t37.5 -90.5z" />
- <glyph glyph-name="flag_alt" unicode="&#xf11d;" horiz-adv-x="1792"
-d="M1664 491v616q-169 -91 -306 -91q-82 0 -145 32q-100 49 -184 76.5t-178 27.5q-173 0 -403 -127v-599q245 113 433 113q55 0 103.5 -7.5t98 -26t77 -31t82.5 -39.5l28 -14q44 -22 101 -22q120 0 293 92zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9
-h-64q-14 0 -23 9t-9 23v1266q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102
-q-15 -9 -33 -9q-16 0 -32 8q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
- <glyph glyph-name="flag_checkered" unicode="&#xf11e;" horiz-adv-x="1792"
-d="M832 536v192q-181 -16 -384 -117v-185q205 96 384 110zM832 954v197q-172 -8 -384 -126v-189q215 111 384 118zM1664 491v184q-235 -116 -384 -71v224q-20 6 -39 15q-5 3 -33 17t-34.5 17t-31.5 15t-34.5 15.5t-32.5 13t-36 12.5t-35 8.5t-39.5 7.5t-39.5 4t-44 2
-q-23 0 -49 -3v-222h19q102 0 192.5 -29t197.5 -82q19 -9 39 -15v-188q42 -17 91 -17q120 0 293 92zM1664 918v189q-169 -91 -306 -91q-45 0 -78 8v-196q148 -42 384 90zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v1266
-q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102q-15 -9 -33 -9q-16 0 -32 8
-q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
- <glyph glyph-name="terminal" unicode="&#xf120;" horiz-adv-x="1664"
-d="M585 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23zM1664 96v-64q0 -14 -9 -23t-23 -9h-960q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h960q14 0 23 -9
-t9 -23z" />
- <glyph glyph-name="code" unicode="&#xf121;" horiz-adv-x="1920"
-d="M617 137l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23zM1208 1204l-373 -1291q-4 -13 -15.5 -19.5t-23.5 -2.5l-62 17q-13 4 -19.5 15.5t-2.5 24.5
-l373 1291q4 13 15.5 19.5t23.5 2.5l62 -17q13 -4 19.5 -15.5t2.5 -24.5zM1865 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23z" />
- <glyph glyph-name="reply_all" unicode="&#xf122;" horiz-adv-x="1792"
-d="M640 454v-70q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-69l-397 -398q-19 -19 -19 -45t19 -45zM1792 416q0 -58 -17 -133.5t-38.5 -138t-48 -125t-40.5 -90.5l-20 -40q-8 -17 -28 -17q-6 0 -9 1
-q-25 8 -23 34q43 400 -106 565q-64 71 -170.5 110.5t-267.5 52.5v-251q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-262q411 -28 599 -221q169 -173 169 -509z" />
- <glyph glyph-name="star_half_empty" unicode="&#xf123;" horiz-adv-x="1664"
-d="M1186 579l257 250l-356 52l-66 10l-30 60l-159 322v-963l59 -31l318 -168l-60 355l-12 66zM1638 841l-363 -354l86 -500q5 -33 -6 -51.5t-34 -18.5q-17 0 -40 12l-449 236l-449 -236q-23 -12 -40 -12q-23 0 -34 18.5t-6 51.5l86 500l-364 354q-32 32 -23 59.5t54 34.5
-l502 73l225 455q20 41 49 41q28 0 49 -41l225 -455l502 -73q45 -7 54 -34.5t-24 -59.5z" />
- <glyph glyph-name="location_arrow" unicode="&#xf124;" horiz-adv-x="1408"
-d="M1401 1187l-640 -1280q-17 -35 -57 -35q-5 0 -15 2q-22 5 -35.5 22.5t-13.5 39.5v576h-576q-22 0 -39.5 13.5t-22.5 35.5t4 42t29 30l1280 640q13 7 29 7q27 0 45 -19q15 -14 18.5 -34.5t-6.5 -39.5z" />
- <glyph glyph-name="crop" unicode="&#xf125;" horiz-adv-x="1664"
-d="M557 256h595v595zM512 301l595 595h-595v-595zM1664 224v-192q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v224h-864q-14 0 -23 9t-9 23v864h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224v224q0 14 9 23t23 9h192q14 0 23 -9t9 -23
-v-224h851l246 247q10 9 23 9t23 -9q9 -10 9 -23t-9 -23l-247 -246v-851h224q14 0 23 -9t9 -23z" />
- <glyph glyph-name="code_fork" unicode="&#xf126;" horiz-adv-x="1024"
-d="M288 64q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM288 1216q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM928 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1024 1088q0 -52 -26 -96.5t-70 -69.5
-q-2 -287 -226 -414q-67 -38 -203 -81q-128 -40 -169.5 -71t-41.5 -100v-26q44 -25 70 -69.5t26 -96.5q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 52 26 96.5t70 69.5v820q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136q0 -52 -26 -96.5t-70 -69.5v-497
-q54 26 154 57q55 17 87.5 29.5t70.5 31t59 39.5t40.5 51t28 69.5t8.5 91.5q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136z" />
- <glyph glyph-name="unlink" unicode="&#xf127;" horiz-adv-x="1664"
-d="M439 265l-256 -256q-11 -9 -23 -9t-23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23zM608 224v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM384 448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23t9 23t23 9h320
-q14 0 23 -9t9 -23zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-334 335q-21 21 -42 56l239 18l273 -274q27 -27 68 -27.5t68 26.5l147 146q28 28 28 67q0 40 -28 68l-274 275l18 239q35 -21 56 -42l336 -336q84 -86 84 -204zM1031 1044l-239 -18
-l-273 274q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l274 -274l-18 -240q-35 21 -56 42l-336 336q-84 86 -84 204q0 120 85 203l147 146q83 83 203 83q121 0 204 -85l334 -335q21 -21 42 -56zM1664 960q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9
-t-9 23t9 23t23 9h320q14 0 23 -9t9 -23zM1120 1504v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM1527 1353l-256 -256q-11 -9 -23 -9t-23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />
- <glyph glyph-name="question" unicode="&#xf128;" horiz-adv-x="1024"
-d="M704 280v-240q0 -16 -12 -28t-28 -12h-240q-16 0 -28 12t-12 28v240q0 16 12 28t28 12h240q16 0 28 -12t12 -28zM1020 880q0 -54 -15.5 -101t-35 -76.5t-55 -59.5t-57.5 -43.5t-61 -35.5q-41 -23 -68.5 -65t-27.5 -67q0 -17 -12 -32.5t-28 -15.5h-240q-15 0 -25.5 18.5
-t-10.5 37.5v45q0 83 65 156.5t143 108.5q59 27 84 56t25 76q0 42 -46.5 74t-107.5 32q-65 0 -108 -29q-35 -25 -107 -115q-13 -16 -31 -16q-12 0 -25 8l-164 125q-13 10 -15.5 25t5.5 28q160 266 464 266q80 0 161 -31t146 -83t106 -127.5t41 -158.5z" />
- <glyph glyph-name="_279" unicode="&#xf129;" horiz-adv-x="640"
-d="M640 192v-128q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64v384h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-576h64q26 0 45 -19t19 -45zM512 1344v-192q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v192
-q0 26 19 45t45 19h256q26 0 45 -19t19 -45z" />
- <glyph glyph-name="exclamation" unicode="&#xf12a;" horiz-adv-x="640"
-d="M512 288v-224q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v224q0 26 19 45t45 19h256q26 0 45 -19t19 -45zM542 1344l-28 -768q-1 -26 -20.5 -45t-45.5 -19h-256q-26 0 -45.5 19t-20.5 45l-28 768q-1 26 17.5 45t44.5 19h320q26 0 44.5 -19t17.5 -45z" />
- <glyph glyph-name="superscript" unicode="&#xf12b;"
-d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3q-1 -3 -2.5 -6.5t-3.5 -8t-3 -6.5q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109z
-M1534 846v-206h-514l-3 27q-4 28 -4 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q83 65 188 65q110 0 178 -59.5t68 -158.5q0 -56 -24.5 -103t-62 -76.5t-81.5 -58.5t-82 -50.5
-t-65.5 -51.5t-30.5 -63h232v80h126z" />
- <glyph glyph-name="subscript" unicode="&#xf12c;"
-d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3q-1 -3 -2.5 -6.5t-3.5 -8t-3 -6.5q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109z
-M1536 -50v-206h-514l-4 27q-3 45 -3 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q80 65 188 65q110 0 178 -59.5t68 -158.5q0 -66 -34.5 -118.5t-84 -86t-99.5 -62.5t-87 -63t-41 -73
-h232v80h126z" />
- <glyph glyph-name="_283" unicode="&#xf12d;" horiz-adv-x="1920"
-d="M896 128l336 384h-768l-336 -384h768zM1909 1205q15 -34 9.5 -71.5t-30.5 -65.5l-896 -1024q-38 -44 -96 -44h-768q-38 0 -69.5 20.5t-47.5 54.5q-15 34 -9.5 71.5t30.5 65.5l896 1024q38 44 96 44h768q38 0 69.5 -20.5t47.5 -54.5z" />
- <glyph glyph-name="puzzle_piece" unicode="&#xf12e;" horiz-adv-x="1664"
-d="M1664 438q0 -81 -44.5 -135t-123.5 -54q-41 0 -77.5 17.5t-59 38t-56.5 38t-71 17.5q-110 0 -110 -124q0 -39 16 -115t15 -115v-5q-22 0 -33 -1q-34 -3 -97.5 -11.5t-115.5 -13.5t-98 -5q-61 0 -103 26.5t-42 83.5q0 37 17.5 71t38 56.5t38 59t17.5 77.5q0 79 -54 123.5
-t-135 44.5q-84 0 -143 -45.5t-59 -127.5q0 -43 15 -83t33.5 -64.5t33.5 -53t15 -50.5q0 -45 -46 -89q-37 -35 -117 -35q-95 0 -245 24q-9 2 -27.5 4t-27.5 4l-13 2q-1 0 -3 1q-2 0 -2 1v1024q2 -1 17.5 -3.5t34 -5t21.5 -3.5q150 -24 245 -24q80 0 117 35q46 44 46 89
-q0 22 -15 50.5t-33.5 53t-33.5 64.5t-15 83q0 82 59 127.5t144 45.5q80 0 134 -44.5t54 -123.5q0 -41 -17.5 -77.5t-38 -59t-38 -56.5t-17.5 -71q0 -57 42 -83.5t103 -26.5q64 0 180 15t163 17v-2q-1 -2 -3.5 -17.5t-5 -34t-3.5 -21.5q-24 -150 -24 -245q0 -80 35 -117
-q44 -46 89 -46q22 0 50.5 15t53 33.5t64.5 33.5t83 15q82 0 127.5 -59t45.5 -143z" />
- <glyph glyph-name="microphone" unicode="&#xf130;" horiz-adv-x="1152"
-d="M1152 832v-128q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-217 24 -364.5 187.5t-147.5 384.5v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -185 131.5 -316.5t316.5 -131.5
-t316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45zM896 1216v-512q0 -132 -94 -226t-226 -94t-226 94t-94 226v512q0 132 94 226t226 94t226 -94t94 -226z" />
- <glyph glyph-name="microphone_off" unicode="&#xf131;" horiz-adv-x="1408"
-d="M271 591l-101 -101q-42 103 -42 214v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -53 15 -113zM1385 1193l-361 -361v-128q0 -132 -94 -226t-226 -94q-55 0 -109 19l-96 -96q97 -51 205 -51q185 0 316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45v-128
-q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-125 13 -235 81l-254 -254q-10 -10 -23 -10t-23 10l-82 82q-10 10 -10 23t10 23l1234 1234q10 10 23 10t23 -10l82 -82q10 -10 10 -23
-t-10 -23zM1005 1325l-621 -621v512q0 132 94 226t226 94q102 0 184.5 -59t116.5 -152z" />
- <glyph glyph-name="shield" unicode="&#xf132;" horiz-adv-x="1280"
-d="M1088 576v640h-448v-1137q119 63 213 137q235 184 235 360zM1280 1344v-768q0 -86 -33.5 -170.5t-83 -150t-118 -127.5t-126.5 -103t-121 -77.5t-89.5 -49.5t-42.5 -20q-12 -6 -26 -6t-26 6q-16 7 -42.5 20t-89.5 49.5t-121 77.5t-126.5 103t-118 127.5t-83 150
-t-33.5 170.5v768q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
- <glyph glyph-name="calendar_empty" unicode="&#xf133;" horiz-adv-x="1664"
-d="M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280
-q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
- <glyph glyph-name="fire_extinguisher" unicode="&#xf134;" horiz-adv-x="1408"
-d="M512 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 1376v-320q0 -16 -12 -25q-8 -7 -20 -7q-4 0 -7 1l-448 96q-11 2 -18 11t-7 20h-256v-102q111 -23 183.5 -111t72.5 -203v-800q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v800
-q0 106 62.5 190.5t161.5 114.5v111h-32q-59 0 -115 -23.5t-91.5 -53t-66 -66.5t-40.5 -53.5t-14 -24.5q-17 -35 -57 -35q-16 0 -29 7q-23 12 -31.5 37t3.5 49q5 10 14.5 26t37.5 53.5t60.5 70t85 67t108.5 52.5q-25 42 -25 86q0 66 47 113t113 47t113 -47t47 -113
-q0 -33 -14 -64h302q0 11 7 20t18 11l448 96q3 1 7 1q12 0 20 -7q12 -9 12 -25z" />
- <glyph glyph-name="rocket" unicode="&#xf135;" horiz-adv-x="1664"
-d="M1440 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1664 1376q0 -249 -75.5 -430.5t-253.5 -360.5q-81 -80 -195 -176l-20 -379q-2 -16 -16 -26l-384 -224q-7 -4 -16 -4q-12 0 -23 9l-64 64q-13 14 -8 32l85 276l-281 281l-276 -85q-3 -1 -9 -1
-q-14 0 -23 9l-64 64q-17 19 -5 39l224 384q10 14 26 16l379 20q96 114 176 195q188 187 358 258t431 71q14 0 24 -9.5t10 -22.5z" />
- <glyph glyph-name="maxcdn" unicode="&#xf136;" horiz-adv-x="1792"
-d="M1745 763l-164 -763h-334l178 832q13 56 -15 88q-27 33 -83 33h-169l-204 -953h-334l204 953h-286l-204 -953h-334l204 953l-153 327h1276q101 0 189.5 -40.5t147.5 -113.5q60 -73 81 -168.5t0 -194.5z" />
- <glyph glyph-name="chevron_sign_left" unicode="&#xf137;"
-d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5
-t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="chevron_sign_right" unicode="&#xf138;"
-d="M717 141l454 454q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l307 -307l-307 -307q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5
-t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="chevron_sign_up" unicode="&#xf139;"
-d="M1165 397l102 102q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l307 307l307 -307q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5
-t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="chevron_sign_down" unicode="&#xf13a;"
-d="M813 237l454 454q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-307 -307l-307 307q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5
-t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="html5" unicode="&#xf13b;" horiz-adv-x="1408"
-d="M1130 939l16 175h-884l47 -534h612l-22 -228l-197 -53l-196 53l-13 140h-175l22 -278l362 -100h4v1l359 99l50 544h-644l-15 181h674zM0 1408h1408l-128 -1438l-578 -162l-574 162z" />
- <glyph glyph-name="css3" unicode="&#xf13c;" horiz-adv-x="1792"
-d="M275 1408h1505l-266 -1333l-804 -267l-698 267l71 356h297l-29 -147l422 -161l486 161l68 339h-1208l58 297h1209l38 191h-1208z" />
- <glyph glyph-name="anchor" unicode="&#xf13d;" horiz-adv-x="1792"
-d="M960 1280q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1792 352v-352q0 -22 -20 -30q-8 -2 -12 -2q-12 0 -23 9l-93 93q-119 -143 -318.5 -226.5t-429.5 -83.5t-429.5 83.5t-318.5 226.5l-93 -93q-9 -9 -23 -9q-4 0 -12 2q-20 8 -20 30v352
-q0 14 9 23t23 9h352q22 0 30 -20q8 -19 -7 -35l-100 -100q67 -91 189.5 -153.5t271.5 -82.5v647h-192q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h192v163q-58 34 -93 92.5t-35 128.5q0 106 75 181t181 75t181 -75t75 -181q0 -70 -35 -128.5t-93 -92.5v-163h192q26 0 45 -19
-t19 -45v-128q0 -26 -19 -45t-45 -19h-192v-647q149 20 271.5 82.5t189.5 153.5l-100 100q-15 16 -7 35q8 20 30 20h352q14 0 23 -9t9 -23z" />
- <glyph glyph-name="unlock_alt" unicode="&#xf13e;" horiz-adv-x="1152"
-d="M1056 768q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v320q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45q0 106 -75 181t-181 75t-181 -75t-75 -181
-v-320h736z" />
- <glyph glyph-name="bullseye" unicode="&#xf140;"
-d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM1152 640q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM1280 640q0 -212 -150 -362t-362 -150t-362 150
-t-150 362t150 362t362 150t362 -150t150 -362zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640
-q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="ellipsis_horizontal" unicode="&#xf141;" horiz-adv-x="1408"
-d="M384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM896 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM1408 800v-192q0 -40 -28 -68t-68 -28h-192
-q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
- <glyph glyph-name="ellipsis_vertical" unicode="&#xf142;" horiz-adv-x="384"
-d="M384 288v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 1312v-192q0 -40 -28 -68t-68 -28h-192
-q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
- <glyph glyph-name="_303" unicode="&#xf143;"
-d="M512 256q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM863 162q-13 233 -176.5 396.5t-396.5 176.5q-14 1 -24 -9t-10 -23v-128q0 -13 8.5 -22t21.5 -10q154 -11 264 -121t121 -264q1 -13 10 -21.5t22 -8.5h128
-q13 0 23 10t9 24zM1247 161q-5 154 -56 297.5t-139.5 260t-205 205t-260 139.5t-297.5 56q-14 1 -23 -9q-10 -10 -10 -23v-128q0 -13 9 -22t22 -10q204 -7 378 -111.5t278.5 -278.5t111.5 -378q1 -13 10 -22t22 -9h128q13 0 23 10q11 9 9 23zM1536 1120v-960
-q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="play_sign" unicode="&#xf144;"
-d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1152 585q32 18 32 55t-32 55l-544 320q-31 19 -64 1q-32 -19 -32 -56v-640q0 -37 32 -56
-q16 -8 32 -8q17 0 32 9z" />
- <glyph glyph-name="ticket" unicode="&#xf145;" horiz-adv-x="1792"
-d="M1024 1084l316 -316l-572 -572l-316 316zM813 105l618 618q19 19 19 45t-19 45l-362 362q-18 18 -45 18t-45 -18l-618 -618q-19 -19 -19 -45t19 -45l362 -362q18 -18 45 -18t45 18zM1702 742l-907 -908q-37 -37 -90.5 -37t-90.5 37l-126 126q56 56 56 136t-56 136
-t-136 56t-136 -56l-125 126q-37 37 -37 90.5t37 90.5l907 906q37 37 90.5 37t90.5 -37l125 -125q-56 -56 -56 -136t56 -136t136 -56t136 56l126 -125q37 -37 37 -90.5t-37 -90.5z" />
- <glyph glyph-name="minus_sign_alt" unicode="&#xf146;"
-d="M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5
-t84.5 -203.5z" />
- <glyph glyph-name="check_minus" unicode="&#xf147;" horiz-adv-x="1408"
-d="M1152 736v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h832q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5
-t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="level_up" unicode="&#xf148;" horiz-adv-x="1024"
-d="M1018 933q-18 -37 -58 -37h-192v-864q0 -14 -9 -23t-23 -9h-704q-21 0 -29 18q-8 20 4 35l160 192q9 11 25 11h320v640h-192q-40 0 -58 37q-17 37 9 68l320 384q18 22 49 22t49 -22l320 -384q27 -32 9 -68z" />
- <glyph glyph-name="level_down" unicode="&#xf149;" horiz-adv-x="1024"
-d="M32 1280h704q13 0 22.5 -9.5t9.5 -23.5v-863h192q40 0 58 -37t-9 -69l-320 -384q-18 -22 -49 -22t-49 22l-320 384q-26 31 -9 69q18 37 58 37h192v640h-320q-14 0 -25 11l-160 192q-13 14 -4 34q9 19 29 19z" />
- <glyph glyph-name="check_sign" unicode="&#xf14a;"
-d="M685 237l614 614q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-467 -467l-211 211q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l358 -358q19 -19 45 -19t45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5
-t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="edit_sign" unicode="&#xf14b;"
-d="M404 428l152 -152l-52 -52h-56v96h-96v56zM818 818q14 -13 -3 -30l-291 -291q-17 -17 -30 -3q-14 13 3 30l291 291q17 17 30 3zM544 128l544 544l-288 288l-544 -544v-288h288zM1152 736l92 92q28 28 28 68t-28 68l-152 152q-28 28 -68 28t-68 -28l-92 -92zM1536 1120
-v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_312" unicode="&#xf14c;"
-d="M1280 608v480q0 26 -19 45t-45 19h-480q-42 0 -59 -39q-17 -41 14 -70l144 -144l-534 -534q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l534 534l144 -144q18 -19 45 -19q12 0 25 5q39 17 39 59zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960
-q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="share_sign" unicode="&#xf14d;"
-d="M1005 435l352 352q19 19 19 45t-19 45l-352 352q-30 31 -69 14q-40 -17 -40 -59v-160q-119 0 -216 -19.5t-162.5 -51t-114 -79t-76.5 -95.5t-44.5 -109t-21.5 -111.5t-5 -110.5q0 -181 167 -404q11 -12 25 -12q7 0 13 3q22 9 19 33q-44 354 62 473q46 52 130 75.5
-t224 23.5v-160q0 -42 40 -59q12 -5 24 -5q26 0 45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="compass" unicode="&#xf14e;"
-d="M640 448l256 128l-256 128v-256zM1024 1039v-542l-512 -256v542zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103
-t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="collapse" unicode="&#xf150;"
-d="M1145 861q18 -35 -5 -66l-320 -448q-19 -27 -52 -27t-52 27l-320 448q-23 31 -5 66q17 35 57 35h640q40 0 57 -35zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120
-v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="collapse_top" unicode="&#xf151;"
-d="M1145 419q-17 -35 -57 -35h-640q-40 0 -57 35q-18 35 5 66l320 448q19 27 52 27t52 -27l320 -448q23 -31 5 -66zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120v-960
-q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_317" unicode="&#xf152;"
-d="M1088 640q0 -33 -27 -52l-448 -320q-31 -23 -66 -5q-35 17 -35 57v640q0 40 35 57q35 18 66 -5l448 -320q27 -19 27 -52zM1280 160v960q0 14 -9 23t-23 9h-960q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h960q14 0 23 9t9 23zM1536 1120v-960q0 -119 -84.5 -203.5
-t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="eur" unicode="&#xf153;" horiz-adv-x="1024"
-d="M976 229l35 -159q3 -12 -3 -22.5t-17 -14.5l-5 -1q-4 -2 -10.5 -3.5t-16 -4.5t-21.5 -5.5t-25.5 -5t-30 -5t-33.5 -4.5t-36.5 -3t-38.5 -1q-234 0 -409 130.5t-238 351.5h-95q-13 0 -22.5 9.5t-9.5 22.5v113q0 13 9.5 22.5t22.5 9.5h66q-2 57 1 105h-67q-14 0 -23 9
-t-9 23v114q0 14 9 23t23 9h98q67 210 243.5 338t400.5 128q102 0 194 -23q11 -3 20 -15q6 -11 3 -24l-43 -159q-3 -13 -14 -19.5t-24 -2.5l-4 1q-4 1 -11.5 2.5l-17.5 3.5t-22.5 3.5t-26 3t-29 2.5t-29.5 1q-126 0 -226 -64t-150 -176h468q16 0 25 -12q10 -12 7 -26
-l-24 -114q-5 -26 -32 -26h-488q-3 -37 0 -105h459q15 0 25 -12q9 -12 6 -27l-24 -112q-2 -11 -11 -18.5t-20 -7.5h-387q48 -117 149.5 -185.5t228.5 -68.5q18 0 36 1.5t33.5 3.5t29.5 4.5t24.5 5t18.5 4.5l12 3l5 2q13 5 26 -2q12 -7 15 -21z" />
- <glyph glyph-name="gbp" unicode="&#xf154;" horiz-adv-x="1024"
-d="M1020 399v-367q0 -14 -9 -23t-23 -9h-956q-14 0 -23 9t-9 23v150q0 13 9.5 22.5t22.5 9.5h97v383h-95q-14 0 -23 9.5t-9 22.5v131q0 14 9 23t23 9h95v223q0 171 123.5 282t314.5 111q185 0 335 -125q9 -8 10 -20.5t-7 -22.5l-103 -127q-9 -11 -22 -12q-13 -2 -23 7
-q-5 5 -26 19t-69 32t-93 18q-85 0 -137 -47t-52 -123v-215h305q13 0 22.5 -9t9.5 -23v-131q0 -13 -9.5 -22.5t-22.5 -9.5h-305v-379h414v181q0 13 9 22.5t23 9.5h162q14 0 23 -9.5t9 -22.5z" />
- <glyph glyph-name="usd" unicode="&#xf155;" horiz-adv-x="1024"
-d="M978 351q0 -153 -99.5 -263.5t-258.5 -136.5v-175q0 -14 -9 -23t-23 -9h-135q-13 0 -22.5 9.5t-9.5 22.5v175q-66 9 -127.5 31t-101.5 44.5t-74 48t-46.5 37.5t-17.5 18q-17 21 -2 41l103 135q7 10 23 12q15 2 24 -9l2 -2q113 -99 243 -125q37 -8 74 -8q81 0 142.5 43
-t61.5 122q0 28 -15 53t-33.5 42t-58.5 37.5t-66 32t-80 32.5q-39 16 -61.5 25t-61.5 26.5t-62.5 31t-56.5 35.5t-53.5 42.5t-43.5 49t-35.5 58t-21 66.5t-8.5 78q0 138 98 242t255 134v180q0 13 9.5 22.5t22.5 9.5h135q14 0 23 -9t9 -23v-176q57 -6 110.5 -23t87 -33.5
-t63.5 -37.5t39 -29t15 -14q17 -18 5 -38l-81 -146q-8 -15 -23 -16q-14 -3 -27 7q-3 3 -14.5 12t-39 26.5t-58.5 32t-74.5 26t-85.5 11.5q-95 0 -155 -43t-60 -111q0 -26 8.5 -48t29.5 -41.5t39.5 -33t56 -31t60.5 -27t70 -27.5q53 -20 81 -31.5t76 -35t75.5 -42.5t62 -50
-t53 -63.5t31.5 -76.5t13 -94z" />
- <glyph glyph-name="inr" unicode="&#xf156;" horiz-adv-x="898"
-d="M898 1066v-102q0 -14 -9 -23t-23 -9h-168q-23 -144 -129 -234t-276 -110q167 -178 459 -536q14 -16 4 -34q-8 -18 -29 -18h-195q-16 0 -25 12q-306 367 -498 571q-9 9 -9 22v127q0 13 9.5 22.5t22.5 9.5h112q132 0 212.5 43t102.5 125h-427q-14 0 -23 9t-9 23v102
-q0 14 9 23t23 9h413q-57 113 -268 113h-145q-13 0 -22.5 9.5t-9.5 22.5v133q0 14 9 23t23 9h832q14 0 23 -9t9 -23v-102q0 -14 -9 -23t-23 -9h-233q47 -61 64 -144h171q14 0 23 -9t9 -23z" />
- <glyph glyph-name="jpy" unicode="&#xf157;" horiz-adv-x="1027"
-d="M603 0h-172q-13 0 -22.5 9t-9.5 23v330h-288q-13 0 -22.5 9t-9.5 23v103q0 13 9.5 22.5t22.5 9.5h288v85h-288q-13 0 -22.5 9t-9.5 23v104q0 13 9.5 22.5t22.5 9.5h214l-321 578q-8 16 0 32q10 16 28 16h194q19 0 29 -18l215 -425q19 -38 56 -125q10 24 30.5 68t27.5 61
-l191 420q8 19 29 19h191q17 0 27 -16q9 -14 1 -31l-313 -579h215q13 0 22.5 -9.5t9.5 -22.5v-104q0 -14 -9.5 -23t-22.5 -9h-290v-85h290q13 0 22.5 -9.5t9.5 -22.5v-103q0 -14 -9.5 -23t-22.5 -9h-290v-330q0 -13 -9.5 -22.5t-22.5 -9.5z" />
- <glyph glyph-name="rub" unicode="&#xf158;" horiz-adv-x="1280"
-d="M1043 971q0 100 -65 162t-171 62h-320v-448h320q106 0 171 62t65 162zM1280 971q0 -193 -126.5 -315t-326.5 -122h-340v-118h505q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-505v-192q0 -14 -9.5 -23t-22.5 -9h-167q-14 0 -23 9t-9 23v192h-224q-14 0 -23 9t-9 23v128
-q0 14 9 23t23 9h224v118h-224q-14 0 -23 9t-9 23v149q0 13 9 22.5t23 9.5h224v629q0 14 9 23t23 9h539q200 0 326.5 -122t126.5 -315z" />
- <glyph glyph-name="krw" unicode="&#xf159;" horiz-adv-x="1792"
-d="M514 341l81 299h-159l75 -300q1 -1 1 -3t1 -3q0 1 0.5 3.5t0.5 3.5zM630 768l35 128h-292l32 -128h225zM822 768h139l-35 128h-70zM1271 340l78 300h-162l81 -299q0 -1 0.5 -3.5t1.5 -3.5q0 1 0.5 3t0.5 3zM1382 768l33 128h-297l34 -128h230zM1792 736v-64q0 -14 -9 -23
-t-23 -9h-213l-164 -616q-7 -24 -31 -24h-159q-24 0 -31 24l-166 616h-209l-167 -616q-7 -24 -31 -24h-159q-11 0 -19.5 7t-10.5 17l-160 616h-208q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h175l-33 128h-142q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h109l-89 344q-5 15 5 28
-q10 12 26 12h137q26 0 31 -24l90 -360h359l97 360q7 24 31 24h126q24 0 31 -24l98 -360h365l93 360q5 24 31 24h137q16 0 26 -12q10 -13 5 -28l-91 -344h111q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-145l-34 -128h179q14 0 23 -9t9 -23z" />
- <glyph glyph-name="btc" unicode="&#xf15a;" horiz-adv-x="1280"
-d="M1167 896q18 -182 -131 -258q117 -28 175 -103t45 -214q-7 -71 -32.5 -125t-64.5 -89t-97 -58.5t-121.5 -34.5t-145.5 -15v-255h-154v251q-80 0 -122 1v-252h-154v255q-18 0 -54 0.5t-55 0.5h-200l31 183h111q50 0 58 51v402h16q-6 1 -16 1v287q-13 68 -89 68h-111v164
-l212 -1q64 0 97 1v252h154v-247q82 2 122 2v245h154v-252q79 -7 140 -22.5t113 -45t82.5 -78t36.5 -114.5zM952 351q0 36 -15 64t-37 46t-57.5 30.5t-65.5 18.5t-74 9t-69 3t-64.5 -1t-47.5 -1v-338q8 0 37 -0.5t48 -0.5t53 1.5t58.5 4t57 8.5t55.5 14t47.5 21t39.5 30
-t24.5 40t9.5 51zM881 827q0 33 -12.5 58.5t-30.5 42t-48 28t-55 16.5t-61.5 8t-58 2.5t-54 -1t-39.5 -0.5v-307q5 0 34.5 -0.5t46.5 0t50 2t55 5.5t51.5 11t48.5 18.5t37 27t27 38.5t9 51z" />
- <glyph glyph-name="file" unicode="&#xf15b;"
-d="M1024 1024v472q22 -14 36 -28l408 -408q14 -14 28 -36h-472zM896 992q0 -40 28 -68t68 -28h544v-1056q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h800v-544z" />
- <glyph glyph-name="file_text" unicode="&#xf15c;"
-d="M1468 1060q14 -14 28 -36h-472v472q22 -14 36 -28zM992 896h544v-1056q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h800v-544q0 -40 28 -68t68 -28zM1152 160v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704
-q14 0 23 9t9 23zM1152 416v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1152 672v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23z" />
- <glyph glyph-name="sort_by_alphabet" unicode="&#xf15d;" horiz-adv-x="1664"
-d="M1191 1128h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1572 -23
-v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -11v-2l14 2q9 2 30 2h248v119h121zM1661 874v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162
-l230 -662h70z" />
- <glyph glyph-name="_329" unicode="&#xf15e;" horiz-adv-x="1664"
-d="M1191 104h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1661 -150
-v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162l230 -662h70zM1572 1001v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -10v-3l14 3q9 1 30 1h248
-v119h121z" />
- <glyph glyph-name="sort_by_attributes" unicode="&#xf160;" horiz-adv-x="1792"
-d="M736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1792 -32v-192q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832
-q14 0 23 -9t9 -23zM1600 480v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1408 992v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1216 1504v-192q0 -14 -9 -23t-23 -9h-256
-q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23z" />
- <glyph glyph-name="sort_by_attributes_alt" unicode="&#xf161;" horiz-adv-x="1792"
-d="M1216 -32v-192q0 -14 -9 -23t-23 -9h-256q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192
-q14 0 23 -9t9 -23zM1408 480v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1600 992v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1792 1504v-192q0 -14 -9 -23t-23 -9h-832
-q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832q14 0 23 -9t9 -23z" />
- <glyph glyph-name="sort_by_order" unicode="&#xf162;"
-d="M1346 223q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23
-zM1486 165q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5
-t82 -252.5zM1456 882v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165z" />
- <glyph glyph-name="sort_by_order_alt" unicode="&#xf163;"
-d="M1346 1247q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9
-t9 -23zM1456 -142v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165zM1486 1189q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13
-q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5t82 -252.5z" />
- <glyph glyph-name="_334" unicode="&#xf164;" horiz-adv-x="1664"
-d="M256 192q0 26 -19 45t-45 19q-27 0 -45.5 -19t-18.5 -45q0 -27 18.5 -45.5t45.5 -18.5q26 0 45 18.5t19 45.5zM416 704v-640q0 -26 -19 -45t-45 -19h-288q-26 0 -45 19t-19 45v640q0 26 19 45t45 19h288q26 0 45 -19t19 -45zM1600 704q0 -86 -55 -149q15 -44 15 -76
-q3 -76 -43 -137q17 -56 0 -117q-15 -57 -54 -94q9 -112 -49 -181q-64 -76 -197 -78h-36h-76h-17q-66 0 -144 15.5t-121.5 29t-120.5 39.5q-123 43 -158 44q-26 1 -45 19.5t-19 44.5v641q0 25 18 43.5t43 20.5q24 2 76 59t101 121q68 87 101 120q18 18 31 48t17.5 48.5
-t13.5 60.5q7 39 12.5 61t19.5 52t34 50q19 19 45 19q46 0 82.5 -10.5t60 -26t40 -40.5t24 -45t12 -50t5 -45t0.5 -39q0 -38 -9.5 -76t-19 -60t-27.5 -56q-3 -6 -10 -18t-11 -22t-8 -24h277q78 0 135 -57t57 -135z" />
- <glyph glyph-name="_335" unicode="&#xf165;" horiz-adv-x="1664"
-d="M256 960q0 -26 -19 -45t-45 -19q-27 0 -45.5 19t-18.5 45q0 27 18.5 45.5t45.5 18.5q26 0 45 -18.5t19 -45.5zM416 448v640q0 26 -19 45t-45 19h-288q-26 0 -45 -19t-19 -45v-640q0 -26 19 -45t45 -19h288q26 0 45 19t19 45zM1545 597q55 -61 55 -149q-1 -78 -57.5 -135
-t-134.5 -57h-277q4 -14 8 -24t11 -22t10 -18q18 -37 27 -57t19 -58.5t10 -76.5q0 -24 -0.5 -39t-5 -45t-12 -50t-24 -45t-40 -40.5t-60 -26t-82.5 -10.5q-26 0 -45 19q-20 20 -34 50t-19.5 52t-12.5 61q-9 42 -13.5 60.5t-17.5 48.5t-31 48q-33 33 -101 120q-49 64 -101 121
-t-76 59q-25 2 -43 20.5t-18 43.5v641q0 26 19 44.5t45 19.5q35 1 158 44q77 26 120.5 39.5t121.5 29t144 15.5h17h76h36q133 -2 197 -78q58 -69 49 -181q39 -37 54 -94q17 -61 0 -117q46 -61 43 -137q0 -32 -15 -76z" />
- <glyph glyph-name="youtube_sign" unicode="&#xf166;"
-d="M919 233v157q0 50 -29 50q-17 0 -33 -16v-224q16 -16 33 -16q29 0 29 49zM1103 355h66v34q0 51 -33 51t-33 -51v-34zM532 621v-70h-80v-423h-74v423h-78v70h232zM733 495v-367h-67v40q-39 -45 -76 -45q-33 0 -42 28q-6 17 -6 54v290h66v-270q0 -24 1 -26q1 -15 15 -15
-q20 0 42 31v280h67zM985 384v-146q0 -52 -7 -73q-12 -42 -53 -42q-35 0 -68 41v-36h-67v493h67v-161q32 40 68 40q41 0 53 -42q7 -21 7 -74zM1236 255v-9q0 -29 -2 -43q-3 -22 -15 -40q-27 -40 -80 -40q-52 0 -81 38q-21 27 -21 86v129q0 59 20 86q29 38 80 38t78 -38
-q21 -29 21 -86v-76h-133v-65q0 -51 34 -51q24 0 30 26q0 1 0.5 7t0.5 16.5v21.5h68zM785 1079v-156q0 -51 -32 -51t-32 51v156q0 52 32 52t32 -52zM1318 366q0 177 -19 260q-10 44 -43 73.5t-76 34.5q-136 15 -412 15q-275 0 -411 -15q-44 -5 -76.5 -34.5t-42.5 -73.5
-q-20 -87 -20 -260q0 -176 20 -260q10 -43 42.5 -73t75.5 -35q137 -15 412 -15t412 15q43 5 75.5 35t42.5 73q20 84 20 260zM563 1017l90 296h-75l-51 -195l-53 195h-78q7 -23 23 -69l24 -69q35 -103 46 -158v-201h74v201zM852 936v130q0 58 -21 87q-29 38 -78 38
-q-51 0 -78 -38q-21 -29 -21 -87v-130q0 -58 21 -87q27 -38 78 -38q49 0 78 38q21 27 21 87zM1033 816h67v370h-67v-283q-22 -31 -42 -31q-15 0 -16 16q-1 2 -1 26v272h-67v-293q0 -37 6 -55q11 -27 43 -27q36 0 77 45v-40zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5
-h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="youtube" unicode="&#xf167;"
-d="M971 292v-211q0 -67 -39 -67q-23 0 -45 22v301q22 22 45 22q39 0 39 -67zM1309 291v-46h-90v46q0 68 45 68t45 -68zM343 509h107v94h-312v-94h105v-569h100v569zM631 -60h89v494h-89v-378q-30 -42 -57 -42q-18 0 -21 21q-1 3 -1 35v364h-89v-391q0 -49 8 -73
-q12 -37 58 -37q48 0 102 61v-54zM1060 88v197q0 73 -9 99q-17 56 -71 56q-50 0 -93 -54v217h-89v-663h89v48q45 -55 93 -55q54 0 71 55q9 27 9 100zM1398 98v13h-91q0 -51 -2 -61q-7 -36 -40 -36q-46 0 -46 69v87h179v103q0 79 -27 116q-39 51 -106 51q-68 0 -107 -51
-q-28 -37 -28 -116v-173q0 -79 29 -116q39 -51 108 -51q72 0 108 53q18 27 21 54q2 9 2 58zM790 1011v210q0 69 -43 69t-43 -69v-210q0 -70 43 -70t43 70zM1509 260q0 -234 -26 -350q-14 -59 -58 -99t-102 -46q-184 -21 -555 -21t-555 21q-58 6 -102.5 46t-57.5 99
-q-26 112 -26 350q0 234 26 350q14 59 58 99t103 47q183 20 554 20t555 -20q58 -7 102.5 -47t57.5 -99q26 -112 26 -350zM511 1536h102l-121 -399v-271h-100v271q-14 74 -61 212q-37 103 -65 187h106l71 -263zM881 1203v-175q0 -81 -28 -118q-38 -51 -106 -51q-67 0 -105 51
-q-28 38 -28 118v175q0 80 28 117q38 51 105 51q68 0 106 -51q28 -37 28 -117zM1216 1365v-499h-91v55q-53 -62 -103 -62q-46 0 -59 37q-8 24 -8 75v394h91v-367q0 -33 1 -35q3 -22 21 -22q27 0 57 43v381h91z" />
- <glyph glyph-name="xing" unicode="&#xf168;" horiz-adv-x="1408"
-d="M597 869q-10 -18 -257 -456q-27 -46 -65 -46h-239q-21 0 -31 17t0 36l253 448q1 0 0 1l-161 279q-12 22 -1 37q9 15 32 15h239q40 0 66 -45zM1403 1511q11 -16 0 -37l-528 -934v-1l336 -615q11 -20 1 -37q-10 -15 -32 -15h-239q-42 0 -66 45l-339 622q18 32 531 942
-q25 45 64 45h241q22 0 31 -15z" />
- <glyph glyph-name="xing_sign" unicode="&#xf169;"
-d="M685 771q0 1 -126 222q-21 34 -52 34h-184q-18 0 -26 -11q-7 -12 1 -29l125 -216v-1l-196 -346q-9 -14 0 -28q8 -13 24 -13h185q31 0 50 36zM1309 1268q-7 12 -24 12h-187q-30 0 -49 -35l-411 -729q1 -2 262 -481q20 -35 52 -35h184q18 0 25 12q8 13 -1 28l-260 476v1
-l409 723q8 16 0 28zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="youtube_play" unicode="&#xf16a;" horiz-adv-x="1792"
-d="M711 408l484 250l-484 253v-503zM896 1270q168 0 324.5 -4.5t229.5 -9.5l73 -4q1 0 17 -1.5t23 -3t23.5 -4.5t28.5 -8t28 -13t31 -19.5t29 -26.5q6 -6 15.5 -18.5t29 -58.5t26.5 -101q8 -64 12.5 -136.5t5.5 -113.5v-40v-136q1 -145 -18 -290q-7 -55 -25 -99.5t-32 -61.5
-l-14 -17q-14 -15 -29 -26.5t-31 -19t-28 -12.5t-28.5 -8t-24 -4.5t-23 -3t-16.5 -1.5q-251 -19 -627 -19q-207 2 -359.5 6.5t-200.5 7.5l-49 4l-36 4q-36 5 -54.5 10t-51 21t-56.5 41q-6 6 -15.5 18.5t-29 58.5t-26.5 101q-8 64 -12.5 136.5t-5.5 113.5v40v136
-q-1 145 18 290q7 55 25 99.5t32 61.5l14 17q14 15 29 26.5t31 19.5t28 13t28.5 8t23.5 4.5t23 3t17 1.5q251 18 627 18z" />
- <glyph glyph-name="dropbox" unicode="&#xf16b;" horiz-adv-x="1792"
-d="M402 829l494 -305l-342 -285l-490 319zM1388 274v-108l-490 -293v-1l-1 1l-1 -1v1l-489 293v108l147 -96l342 284v2l1 -1l1 1v-2l343 -284zM554 1418l342 -285l-494 -304l-338 270zM1390 829l338 -271l-489 -319l-343 285zM1239 1418l489 -319l-338 -270l-494 304z" />
- <glyph glyph-name="stackexchange" unicode="&#xf16c;"
-d="M1289 -96h-1118v480h-160v-640h1438v640h-160v-480zM347 428l33 157l783 -165l-33 -156zM450 802l67 146l725 -339l-67 -145zM651 1158l102 123l614 -513l-102 -123zM1048 1536l477 -641l-128 -96l-477 641zM330 65v159h800v-159h-800z" />
- <glyph glyph-name="instagram" unicode="&#xf16d;"
-d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1162 640q0 -164 -115 -279t-279 -115t-279 115t-115 279t115 279t279 115t279 -115t115 -279zM1270 1050q0 -38 -27 -65t-65 -27t-65 27t-27 65t27 65t65 27t65 -27t27 -65zM768 1270
-q-7 0 -76.5 0.5t-105.5 0t-96.5 -3t-103 -10t-71.5 -18.5q-50 -20 -88 -58t-58 -88q-11 -29 -18.5 -71.5t-10 -103t-3 -96.5t0 -105.5t0.5 -76.5t-0.5 -76.5t0 -105.5t3 -96.5t10 -103t18.5 -71.5q20 -50 58 -88t88 -58q29 -11 71.5 -18.5t103 -10t96.5 -3t105.5 0t76.5 0.5
-t76.5 -0.5t105.5 0t96.5 3t103 10t71.5 18.5q50 20 88 58t58 88q11 29 18.5 71.5t10 103t3 96.5t0 105.5t-0.5 76.5t0.5 76.5t0 105.5t-3 96.5t-10 103t-18.5 71.5q-20 50 -58 88t-88 58q-29 11 -71.5 18.5t-103 10t-96.5 3t-105.5 0t-76.5 -0.5zM1536 640q0 -229 -5 -317
-q-10 -208 -124 -322t-322 -124q-88 -5 -317 -5t-317 5q-208 10 -322 124t-124 322q-5 88 -5 317t5 317q10 208 124 322t322 124q88 5 317 5t317 -5q208 -10 322 -124t124 -322q5 -88 5 -317z" />
- <glyph glyph-name="flickr" unicode="&#xf16e;"
-d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM698 640q0 88 -62 150t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150zM1262 640q0 88 -62 150
-t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150z" />
- <glyph glyph-name="adn" unicode="&#xf170;"
-d="M768 914l201 -306h-402zM1133 384h94l-459 691l-459 -691h94l104 160h522zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="f171" unicode="&#xf171;" horiz-adv-x="1408"
-d="M815 677q8 -63 -50.5 -101t-111.5 -6q-39 17 -53.5 58t-0.5 82t52 58q36 18 72.5 12t64 -35.5t27.5 -67.5zM926 698q-14 107 -113 164t-197 13q-63 -28 -100.5 -88.5t-34.5 -129.5q4 -91 77.5 -155t165.5 -56q91 8 152 84t50 168zM1165 1240q-20 27 -56 44.5t-58 22
-t-71 12.5q-291 47 -566 -2q-43 -7 -66 -12t-55 -22t-50 -43q30 -28 76 -45.5t73.5 -22t87.5 -11.5q228 -29 448 -1q63 8 89.5 12t72.5 21.5t75 46.5zM1222 205q-8 -26 -15.5 -76.5t-14 -84t-28.5 -70t-58 -56.5q-86 -48 -189.5 -71.5t-202 -22t-201.5 18.5q-46 8 -81.5 18
-t-76.5 27t-73 43.5t-52 61.5q-25 96 -57 292l6 16l18 9q223 -148 506.5 -148t507.5 148q21 -6 24 -23t-5 -45t-8 -37zM1403 1166q-26 -167 -111 -655q-5 -30 -27 -56t-43.5 -40t-54.5 -31q-252 -126 -610 -88q-248 27 -394 139q-15 12 -25.5 26.5t-17 35t-9 34t-6 39.5
-t-5.5 35q-9 50 -26.5 150t-28 161.5t-23.5 147.5t-22 158q3 26 17.5 48.5t31.5 37.5t45 30t46 22.5t48 18.5q125 46 313 64q379 37 676 -50q155 -46 215 -122q16 -20 16.5 -51t-5.5 -54z" />
- <glyph glyph-name="bitbucket_sign" unicode="&#xf172;"
-d="M848 666q0 43 -41 66t-77 1q-43 -20 -42.5 -72.5t43.5 -70.5q39 -23 81 4t36 72zM928 682q8 -66 -36 -121t-110 -61t-119 40t-56 113q-2 49 25.5 93t72.5 64q70 31 141.5 -10t81.5 -118zM1100 1073q-20 -21 -53.5 -34t-53 -16t-63.5 -8q-155 -20 -324 0q-44 6 -63 9.5
-t-52.5 16t-54.5 32.5q13 19 36 31t40 15.5t47 8.5q198 35 408 1q33 -5 51 -8.5t43 -16t39 -31.5zM1142 327q0 7 5.5 26.5t3 32t-17.5 16.5q-161 -106 -365 -106t-366 106l-12 -6l-5 -12q26 -154 41 -210q47 -81 204 -108q249 -46 428 53q34 19 49 51.5t22.5 85.5t12.5 71z
-M1272 1020q9 53 -8 75q-43 55 -155 88q-216 63 -487 36q-132 -12 -226 -46q-38 -15 -59.5 -25t-47 -34t-29.5 -54q8 -68 19 -138t29 -171t24 -137q1 -5 5 -31t7 -36t12 -27t22 -28q105 -80 284 -100q259 -28 440 63q24 13 39.5 23t31 29t19.5 40q48 267 80 473zM1536 1120
-v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="tumblr" unicode="&#xf173;" horiz-adv-x="1024"
-d="M944 207l80 -237q-23 -35 -111 -66t-177 -32q-104 -2 -190.5 26t-142.5 74t-95 106t-55.5 120t-16.5 118v544h-168v215q72 26 129 69.5t91 90t58 102t34 99t15 88.5q1 5 4.5 8.5t7.5 3.5h244v-424h333v-252h-334v-518q0 -30 6.5 -56t22.5 -52.5t49.5 -41.5t81.5 -14
-q78 2 134 29z" />
- <glyph glyph-name="tumblr_sign" unicode="&#xf174;"
-d="M1136 75l-62 183q-44 -22 -103 -22q-36 -1 -62 10.5t-38.5 31.5t-17.5 40.5t-5 43.5v398h257v194h-256v326h-188q-8 0 -9 -10q-5 -44 -17.5 -87t-39 -95t-77 -95t-118.5 -68v-165h130v-418q0 -57 21.5 -115t65 -111t121 -85.5t176.5 -30.5q69 1 136.5 25t85.5 50z
-M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="long_arrow_down" unicode="&#xf175;" horiz-adv-x="768"
-d="M765 237q8 -19 -5 -35l-350 -384q-10 -10 -23 -10q-14 0 -24 10l-355 384q-13 16 -5 35q9 19 29 19h224v1248q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1248h224q21 0 29 -19z" />
- <glyph glyph-name="long_arrow_up" unicode="&#xf176;" horiz-adv-x="768"
-d="M765 1043q-9 -19 -29 -19h-224v-1248q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1248h-224q-21 0 -29 19t5 35l350 384q10 10 23 10q14 0 24 -10l355 -384q13 -16 5 -35z" />
- <glyph glyph-name="long_arrow_left" unicode="&#xf177;" horiz-adv-x="1792"
-d="M1792 736v-192q0 -14 -9 -23t-23 -9h-1248v-224q0 -21 -19 -29t-35 5l-384 350q-10 10 -10 23q0 14 10 24l384 354q16 14 35 6q19 -9 19 -29v-224h1248q14 0 23 -9t9 -23z" />
- <glyph glyph-name="long_arrow_right" unicode="&#xf178;" horiz-adv-x="1792"
-d="M1728 643q0 -14 -10 -24l-384 -354q-16 -14 -35 -6q-19 9 -19 29v224h-1248q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h1248v224q0 21 19 29t35 -5l384 -350q10 -10 10 -23z" />
- <glyph glyph-name="apple" unicode="&#xf179;" horiz-adv-x="1408"
-d="M1393 321q-39 -125 -123 -250q-129 -196 -257 -196q-49 0 -140 32q-86 32 -151 32q-61 0 -142 -33q-81 -34 -132 -34q-152 0 -301 259q-147 261 -147 503q0 228 113 374q113 144 284 144q72 0 177 -30q104 -30 138 -30q45 0 143 34q102 34 173 34q119 0 213 -65
-q52 -36 104 -100q-79 -67 -114 -118q-65 -94 -65 -207q0 -124 69 -223t158 -126zM1017 1494q0 -61 -29 -136q-30 -75 -93 -138q-54 -54 -108 -72q-37 -11 -104 -17q3 149 78 257q74 107 250 148q1 -3 2.5 -11t2.5 -11q0 -4 0.5 -10t0.5 -10z" />
- <glyph glyph-name="windows" unicode="&#xf17a;" horiz-adv-x="1664"
-d="M682 530v-651l-682 94v557h682zM682 1273v-659h-682v565zM1664 530v-786l-907 125v661h907zM1664 1408v-794h-907v669z" />
- <glyph glyph-name="android" unicode="&#xf17b;" horiz-adv-x="1408"
-d="M493 1053q16 0 27.5 11.5t11.5 27.5t-11.5 27.5t-27.5 11.5t-27 -11.5t-11 -27.5t11 -27.5t27 -11.5zM915 1053q16 0 27 11.5t11 27.5t-11 27.5t-27 11.5t-27.5 -11.5t-11.5 -27.5t11.5 -27.5t27.5 -11.5zM103 869q42 0 72 -30t30 -72v-430q0 -43 -29.5 -73t-72.5 -30
-t-73 30t-30 73v430q0 42 30 72t73 30zM1163 850v-666q0 -46 -32 -78t-77 -32h-75v-227q0 -43 -30 -73t-73 -30t-73 30t-30 73v227h-138v-227q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73l-1 227h-74q-46 0 -78 32t-32 78v666h918zM931 1255q107 -55 171 -153.5t64 -215.5
-h-925q0 117 64 215.5t172 153.5l-71 131q-7 13 5 20q13 6 20 -6l72 -132q95 42 201 42t201 -42l72 132q7 12 20 6q12 -7 5 -20zM1408 767v-430q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73v430q0 43 30 72.5t72 29.5q43 0 73 -29.5t30 -72.5z" />
- <glyph glyph-name="linux" unicode="&#xf17c;"
-d="M663 1125q-11 -1 -15.5 -10.5t-8.5 -9.5q-5 -1 -5 5q0 12 19 15h10zM750 1111q-4 -1 -11.5 6.5t-17.5 4.5q24 11 32 -2q3 -6 -3 -9zM399 684q-4 1 -6 -3t-4.5 -12.5t-5.5 -13.5t-10 -13q-10 -11 -1 -12q4 -1 12.5 7t12.5 18q1 3 2 7t2 6t1.5 4.5t0.5 4v3t-1 2.5t-3 2z
-M1254 325q0 18 -55 42q4 15 7.5 27.5t5 26t3 21.5t0.5 22.5t-1 19.5t-3.5 22t-4 20.5t-5 25t-5.5 26.5q-10 48 -47 103t-72 75q24 -20 57 -83q87 -162 54 -278q-11 -40 -50 -42q-31 -4 -38.5 18.5t-8 83.5t-11.5 107q-9 39 -19.5 69t-19.5 45.5t-15.5 24.5t-13 15t-7.5 7
-q-14 62 -31 103t-29.5 56t-23.5 33t-15 40q-4 21 6 53.5t4.5 49.5t-44.5 25q-15 3 -44.5 18t-35.5 16q-8 1 -11 26t8 51t36 27q37 3 51 -30t4 -58q-11 -19 -2 -26.5t30 -0.5q13 4 13 36v37q-5 30 -13.5 50t-21 30.5t-23.5 15t-27 7.5q-107 -8 -89 -134q0 -15 -1 -15
-q-9 9 -29.5 10.5t-33 -0.5t-15.5 5q1 57 -16 90t-45 34q-27 1 -41.5 -27.5t-16.5 -59.5q-1 -15 3.5 -37t13 -37.5t15.5 -13.5q10 3 16 14q4 9 -7 8q-7 0 -15.5 14.5t-9.5 33.5q-1 22 9 37t34 14q17 0 27 -21t9.5 -39t-1.5 -22q-22 -15 -31 -29q-8 -12 -27.5 -23.5
-t-20.5 -12.5q-13 -14 -15.5 -27t7.5 -18q14 -8 25 -19.5t16 -19t18.5 -13t35.5 -6.5q47 -2 102 15q2 1 23 7t34.5 10.5t29.5 13t21 17.5q9 14 20 8q5 -3 6.5 -8.5t-3 -12t-16.5 -9.5q-20 -6 -56.5 -21.5t-45.5 -19.5q-44 -19 -70 -23q-25 -5 -79 2q-10 2 -9 -2t17 -19
-q25 -23 67 -22q17 1 36 7t36 14t33.5 17.5t30 17t24.5 12t17.5 2.5t8.5 -11q0 -2 -1 -4.5t-4 -5t-6 -4.5t-8.5 -5t-9 -4.5t-10 -5t-9.5 -4.5q-28 -14 -67.5 -44t-66.5 -43t-49 -1q-21 11 -63 73q-22 31 -25 22q-1 -3 -1 -10q0 -25 -15 -56.5t-29.5 -55.5t-21 -58t11.5 -63
-q-23 -6 -62.5 -90t-47.5 -141q-2 -18 -1.5 -69t-5.5 -59q-8 -24 -29 -3q-32 31 -36 94q-2 28 4 56q4 19 -1 18q-2 -1 -4 -5q-36 -65 10 -166q5 -12 25 -28t24 -20q20 -23 104 -90.5t93 -76.5q16 -15 17.5 -38t-14 -43t-45.5 -23q8 -15 29 -44.5t28 -54t7 -70.5q46 24 7 92
-q-4 8 -10.5 16t-9.5 12t-2 6q3 5 13 9.5t20 -2.5q46 -52 166 -36q133 15 177 87q23 38 34 30q12 -6 10 -52q-1 -25 -23 -92q-9 -23 -6 -37.5t24 -15.5q3 19 14.5 77t13.5 90q2 21 -6.5 73.5t-7.5 97t23 70.5q15 18 51 18q1 37 34.5 53t72.5 10.5t60 -22.5zM626 1152
-q3 17 -2.5 30t-11.5 15q-9 2 -9 -7q2 -5 5 -6q10 0 7 -15q-3 -20 8 -20q3 0 3 3zM1045 955q-2 8 -6.5 11.5t-13 5t-14.5 5.5q-5 3 -9.5 8t-7 8t-5.5 6.5t-4 4t-4 -1.5q-14 -16 7 -43.5t39 -31.5q9 -1 14.5 8t3.5 20zM867 1168q0 11 -5 19.5t-11 12.5t-9 3q-6 0 -8 -2t0 -4
-t5 -3q14 -4 18 -31q0 -3 8 2q2 2 2 3zM921 1401q0 2 -2.5 5t-9 7t-9.5 6q-15 15 -24 15q-9 -1 -11.5 -7.5t-1 -13t-0.5 -12.5q-1 -4 -6 -10.5t-6 -9t3 -8.5q4 -3 8 0t11 9t15 9q1 1 9 1t15 2t9 7zM1486 60q20 -12 31 -24.5t12 -24t-2.5 -22.5t-15.5 -22t-23.5 -19.5
-t-30 -18.5t-31.5 -16.5t-32 -15.5t-27 -13q-38 -19 -85.5 -56t-75.5 -64q-17 -16 -68 -19.5t-89 14.5q-18 9 -29.5 23.5t-16.5 25.5t-22 19.5t-47 9.5q-44 1 -130 1q-19 0 -57 -1.5t-58 -2.5q-44 -1 -79.5 -15t-53.5 -30t-43.5 -28.5t-53.5 -11.5q-29 1 -111 31t-146 43
-q-19 4 -51 9.5t-50 9t-39.5 9.5t-33.5 14.5t-17 19.5q-10 23 7 66.5t18 54.5q1 16 -4 40t-10 42.5t-4.5 36.5t10.5 27q14 12 57 14t60 12q30 18 42 35t12 51q21 -73 -32 -106q-32 -20 -83 -15q-34 3 -43 -10q-13 -15 5 -57q2 -6 8 -18t8.5 -18t4.5 -17t1 -22q0 -15 -17 -49
-t-14 -48q3 -17 37 -26q20 -6 84.5 -18.5t99.5 -20.5q24 -6 74 -22t82.5 -23t55.5 -4q43 6 64.5 28t23 48t-7.5 58.5t-19 52t-20 36.5q-121 190 -169 242q-68 74 -113 40q-11 -9 -15 15q-3 16 -2 38q1 29 10 52t24 47t22 42q8 21 26.5 72t29.5 78t30 61t39 54
-q110 143 124 195q-12 112 -16 310q-2 90 24 151.5t106 104.5q39 21 104 21q53 1 106 -13.5t89 -41.5q57 -42 91.5 -121.5t29.5 -147.5q-5 -95 30 -214q34 -113 133 -218q55 -59 99.5 -163t59.5 -191q8 -49 5 -84.5t-12 -55.5t-20 -22q-10 -2 -23.5 -19t-27 -35.5
-t-40.5 -33.5t-61 -14q-18 1 -31.5 5t-22.5 13.5t-13.5 15.5t-11.5 20.5t-9 19.5q-22 37 -41 30t-28 -49t7 -97q20 -70 1 -195q-10 -65 18 -100.5t73 -33t85 35.5q59 49 89.5 66.5t103.5 42.5q53 18 77 36.5t18.5 34.5t-25 28.5t-51.5 23.5q-33 11 -49.5 48t-15 72.5
-t15.5 47.5q1 -31 8 -56.5t14.5 -40.5t20.5 -28.5t21 -19t21.5 -13t16.5 -9.5z" />
- <glyph glyph-name="dribble" unicode="&#xf17d;"
-d="M1024 36q-42 241 -140 498h-2l-2 -1q-16 -6 -43 -16.5t-101 -49t-137 -82t-131 -114.5t-103 -148l-15 11q184 -150 418 -150q132 0 256 52zM839 643q-21 49 -53 111q-311 -93 -673 -93q-1 -7 -1 -21q0 -124 44 -236.5t124 -201.5q50 89 123.5 166.5t142.5 124.5t130.5 81
-t99.5 48l37 13q4 1 13 3.5t13 4.5zM732 855q-120 213 -244 378q-138 -65 -234 -186t-128 -272q302 0 606 80zM1416 536q-210 60 -409 29q87 -239 128 -469q111 75 185 189.5t96 250.5zM611 1277q-1 0 -2 -1q1 1 2 1zM1201 1132q-185 164 -433 164q-76 0 -155 -19
-q131 -170 246 -382q69 26 130 60.5t96.5 61.5t65.5 57t37.5 40.5zM1424 647q-3 232 -149 410l-1 -1q-9 -12 -19 -24.5t-43.5 -44.5t-71 -60.5t-100 -65t-131.5 -64.5q25 -53 44 -95q2 -5 6.5 -17t7.5 -17q36 5 74.5 7t73.5 2t69 -1.5t64 -4t56.5 -5.5t48 -6.5t36.5 -6
-t25 -4.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="skype" unicode="&#xf17e;"
-d="M1173 473q0 50 -19.5 91.5t-48.5 68.5t-73 49t-82.5 34t-87.5 23l-104 24q-30 7 -44 10.5t-35 11.5t-30 16t-16.5 21t-7.5 30q0 77 144 77q43 0 77 -12t54 -28.5t38 -33.5t40 -29t48 -12q47 0 75.5 32t28.5 77q0 55 -56 99.5t-142 67.5t-182 23q-68 0 -132 -15.5
-t-119.5 -47t-89 -87t-33.5 -128.5q0 -61 19 -106.5t56 -75.5t80 -48.5t103 -32.5l146 -36q90 -22 112 -36q32 -20 32 -60q0 -39 -40 -64.5t-105 -25.5q-51 0 -91.5 16t-65 38.5t-45.5 45t-46 38.5t-54 16q-50 0 -75.5 -30t-25.5 -75q0 -92 122 -157.5t291 -65.5
-q73 0 140 18.5t122.5 53.5t88.5 93.5t33 131.5zM1536 256q0 -159 -112.5 -271.5t-271.5 -112.5q-130 0 -234 80q-77 -16 -150 -16q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5q0 73 16 150q-80 104 -80 234q0 159 112.5 271.5t271.5 112.5q130 0 234 -80
-q77 16 150 16q143 0 273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -73 -16 -150q80 -104 80 -234z" />
- <glyph glyph-name="foursquare" unicode="&#xf180;" horiz-adv-x="1280"
-d="M1000 1102l37 194q5 23 -9 40t-35 17h-712q-23 0 -38.5 -17t-15.5 -37v-1101q0 -7 6 -1l291 352q23 26 38 33.5t48 7.5h239q22 0 37 14.5t18 29.5q24 130 37 191q4 21 -11.5 40t-36.5 19h-294q-29 0 -48 19t-19 48v42q0 29 19 47.5t48 18.5h346q18 0 35 13.5t20 29.5z
-M1227 1324q-15 -73 -53.5 -266.5t-69.5 -350t-35 -173.5q-6 -22 -9 -32.5t-14 -32.5t-24.5 -33t-38.5 -21t-58 -10h-271q-13 0 -22 -10q-8 -9 -426 -494q-22 -25 -58.5 -28.5t-48.5 5.5q-55 22 -55 98v1410q0 55 38 102.5t120 47.5h888q95 0 127 -53t10 -159zM1227 1324
-l-158 -790q4 17 35 173.5t69.5 350t53.5 266.5z" />
- <glyph glyph-name="trello" unicode="&#xf181;"
-d="M704 192v1024q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-1024q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1376 576v640q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-640q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408
-q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
- <glyph glyph-name="female" unicode="&#xf182;" horiz-adv-x="1280"
-d="M1280 480q0 -40 -28 -68t-68 -28q-51 0 -80 43l-227 341h-45v-132l247 -411q9 -15 9 -33q0 -26 -19 -45t-45 -19h-192v-272q0 -46 -33 -79t-79 -33h-160q-46 0 -79 33t-33 79v272h-192q-26 0 -45 19t-19 45q0 18 9 33l247 411v132h-45l-227 -341q-29 -43 -80 -43
-q-40 0 -68 28t-28 68q0 29 16 53l256 384q73 107 176 107h384q103 0 176 -107l256 -384q16 -24 16 -53zM864 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
- <glyph glyph-name="male" unicode="&#xf183;" horiz-adv-x="1024"
-d="M1024 832v-416q0 -40 -28 -68t-68 -28t-68 28t-28 68v352h-64v-912q0 -46 -33 -79t-79 -33t-79 33t-33 79v464h-64v-464q0 -46 -33 -79t-79 -33t-79 33t-33 79v912h-64v-352q0 -40 -28 -68t-68 -28t-68 28t-28 68v416q0 80 56 136t136 56h640q80 0 136 -56t56 -136z
-M736 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
- <glyph glyph-name="gittip" unicode="&#xf184;"
-d="M773 234l350 473q16 22 24.5 59t-6 85t-61.5 79q-40 26 -83 25.5t-73.5 -17.5t-54.5 -45q-36 -40 -96 -40q-59 0 -95 40q-24 28 -54.5 45t-73.5 17.5t-84 -25.5q-46 -31 -60.5 -79t-6 -85t24.5 -59zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103
-t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="sun" unicode="&#xf185;" horiz-adv-x="1792"
-d="M1472 640q0 117 -45.5 223.5t-123 184t-184 123t-223.5 45.5t-223.5 -45.5t-184 -123t-123 -184t-45.5 -223.5t45.5 -223.5t123 -184t184 -123t223.5 -45.5t223.5 45.5t184 123t123 184t45.5 223.5zM1748 363q-4 -15 -20 -20l-292 -96v-306q0 -16 -13 -26q-15 -10 -29 -4
-l-292 94l-180 -248q-10 -13 -26 -13t-26 13l-180 248l-292 -94q-14 -6 -29 4q-13 10 -13 26v306l-292 96q-16 5 -20 20q-5 17 4 29l180 248l-180 248q-9 13 -4 29q4 15 20 20l292 96v306q0 16 13 26q15 10 29 4l292 -94l180 248q9 12 26 12t26 -12l180 -248l292 94
-q14 6 29 -4q13 -10 13 -26v-306l292 -96q16 -5 20 -20q5 -16 -4 -29l-180 -248l180 -248q9 -12 4 -29z" />
- <glyph glyph-name="_366" unicode="&#xf186;"
-d="M1262 233q-54 -9 -110 -9q-182 0 -337 90t-245 245t-90 337q0 192 104 357q-201 -60 -328.5 -229t-127.5 -384q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51q144 0 273.5 61.5t220.5 171.5zM1465 318q-94 -203 -283.5 -324.5t-413.5 -121.5q-156 0 -298 61
-t-245 164t-164 245t-61 298q0 153 57.5 292.5t156 241.5t235.5 164.5t290 68.5q44 2 61 -39q18 -41 -15 -72q-86 -78 -131.5 -181.5t-45.5 -218.5q0 -148 73 -273t198 -198t273 -73q118 0 228 51q41 18 72 -13q14 -14 17.5 -34t-4.5 -38z" />
- <glyph glyph-name="archive" unicode="&#xf187;" horiz-adv-x="1792"
-d="M1088 704q0 26 -19 45t-45 19h-256q-26 0 -45 -19t-19 -45t19 -45t45 -19h256q26 0 45 19t19 45zM1664 896v-960q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v960q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1728 1344v-256q0 -26 -19 -45t-45 -19h-1536
-q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1536q26 0 45 -19t19 -45z" />
- <glyph glyph-name="bug" unicode="&#xf188;" horiz-adv-x="1664"
-d="M1632 576q0 -26 -19 -45t-45 -19h-224q0 -171 -67 -290l208 -209q19 -19 19 -45t-19 -45q-18 -19 -45 -19t-45 19l-198 197q-5 -5 -15 -13t-42 -28.5t-65 -36.5t-82 -29t-97 -13v896h-128v-896q-51 0 -101.5 13.5t-87 33t-66 39t-43.5 32.5l-15 14l-183 -207
-q-20 -21 -48 -21q-24 0 -43 16q-19 18 -20.5 44.5t15.5 46.5l202 227q-58 114 -58 274h-224q-26 0 -45 19t-19 45t19 45t45 19h224v294l-173 173q-19 19 -19 45t19 45t45 19t45 -19l173 -173h844l173 173q19 19 45 19t45 -19t19 -45t-19 -45l-173 -173v-294h224q26 0 45 -19
-t19 -45zM1152 1152h-640q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5z" />
- <glyph glyph-name="vk" unicode="&#xf189;" horiz-adv-x="1920"
-d="M1917 1016q23 -64 -150 -294q-24 -32 -65 -85q-40 -51 -55 -72t-30.5 -49.5t-12 -42t13 -34.5t32.5 -43t57 -53q4 -2 5 -4q141 -131 191 -221q3 -5 6.5 -12.5t7 -26.5t-0.5 -34t-25 -27.5t-59 -12.5l-256 -4q-24 -5 -56 5t-52 22l-20 12q-30 21 -70 64t-68.5 77.5t-61 58
-t-56.5 15.5q-3 -1 -8 -3.5t-17 -14.5t-21.5 -29.5t-17 -52t-6.5 -77.5q0 -15 -3.5 -27.5t-7.5 -18.5l-4 -5q-18 -19 -53 -22h-115q-71 -4 -146 16.5t-131.5 53t-103 66t-70.5 57.5l-25 24q-10 10 -27.5 30t-71.5 91t-106 151t-122.5 211t-130.5 272q-6 16 -6 27t3 16l4 6
-q15 19 57 19l274 2q12 -2 23 -6.5t16 -8.5l5 -3q16 -11 24 -32q20 -50 46 -103.5t41 -81.5l16 -29q29 -60 56 -104t48.5 -68.5t41.5 -38.5t34 -14t27 5q2 1 5 5t12 22t13.5 47t9.5 81t0 125q-2 40 -9 73t-14 46l-6 12q-25 34 -85 43q-13 2 5 24q16 19 38 30q53 26 239 24
-q82 -1 135 -13q20 -5 33.5 -13.5t20.5 -24t10.5 -32t3.5 -45.5t-1 -55t-2.5 -70.5t-1.5 -82.5q0 -11 -1 -42t-0.5 -48t3.5 -40.5t11.5 -39t22.5 -24.5q8 -2 17 -4t26 11t38 34.5t52 67t68 107.5q60 104 107 225q4 10 10 17.5t11 10.5l4 3l5 2.5t13 3t20 0.5l288 2
-q39 5 64 -2.5t31 -16.5z" />
- <glyph glyph-name="weibo" unicode="&#xf18a;" horiz-adv-x="1792"
-d="M675 252q21 34 11 69t-45 50q-34 14 -73 1t-60 -46q-22 -34 -13 -68.5t43 -50.5t74.5 -2.5t62.5 47.5zM769 373q8 13 3.5 26.5t-17.5 18.5q-14 5 -28.5 -0.5t-21.5 -18.5q-17 -31 13 -45q14 -5 29 0.5t22 18.5zM943 266q-45 -102 -158 -150t-224 -12
-q-107 34 -147.5 126.5t6.5 187.5q47 93 151.5 139t210.5 19q111 -29 158.5 -119.5t2.5 -190.5zM1255 426q-9 96 -89 170t-208.5 109t-274.5 21q-223 -23 -369.5 -141.5t-132.5 -264.5q9 -96 89 -170t208.5 -109t274.5 -21q223 23 369.5 141.5t132.5 264.5zM1563 422
-q0 -68 -37 -139.5t-109 -137t-168.5 -117.5t-226 -83t-270.5 -31t-275 33.5t-240.5 93t-171.5 151t-65 199.5q0 115 69.5 245t197.5 258q169 169 341.5 236t246.5 -7q65 -64 20 -209q-4 -14 -1 -20t10 -7t14.5 0.5t13.5 3.5l6 2q139 59 246 59t153 -61q45 -63 0 -178
-q-2 -13 -4.5 -20t4.5 -12.5t12 -7.5t17 -6q57 -18 103 -47t80 -81.5t34 -116.5zM1489 1046q42 -47 54.5 -108.5t-6.5 -117.5q-8 -23 -29.5 -34t-44.5 -4q-23 8 -34 29.5t-4 44.5q20 63 -24 111t-107 35q-24 -5 -45 8t-25 37q-5 24 8 44.5t37 25.5q60 13 119 -5.5t101 -65.5z
-M1670 1209q87 -96 112.5 -222.5t-13.5 -241.5q-9 -27 -34 -40t-52 -4t-40 34t-5 52q28 82 10 172t-80 158q-62 69 -148 95.5t-173 8.5q-28 -6 -52 9.5t-30 43.5t9.5 51.5t43.5 29.5q123 26 244 -11.5t208 -134.5z" />
- <glyph glyph-name="renren" unicode="&#xf18b;"
-d="M1133 -34q-171 -94 -368 -94q-196 0 -367 94q138 87 235.5 211t131.5 268q35 -144 132.5 -268t235.5 -211zM638 1394v-485q0 -252 -126.5 -459.5t-330.5 -306.5q-181 215 -181 495q0 187 83.5 349.5t229.5 269.5t325 137zM1536 638q0 -280 -181 -495
-q-204 99 -330.5 306.5t-126.5 459.5v485q179 -30 325 -137t229.5 -269.5t83.5 -349.5z" />
- <glyph glyph-name="_372" unicode="&#xf18c;" horiz-adv-x="1408"
-d="M1402 433q-32 -80 -76 -138t-91 -88.5t-99 -46.5t-101.5 -14.5t-96.5 8.5t-86.5 22t-69.5 27.5t-46 22.5l-17 10q-113 -228 -289.5 -359.5t-384.5 -132.5q-19 0 -32 13t-13 32t13 31.5t32 12.5q173 1 322.5 107.5t251.5 294.5q-36 -14 -72 -23t-83 -13t-91 2.5t-93 28.5
-t-92 59t-84.5 100t-74.5 146q114 47 214 57t167.5 -7.5t124.5 -56.5t88.5 -77t56.5 -82q53 131 79 291q-7 -1 -18 -2.5t-46.5 -2.5t-69.5 0.5t-81.5 10t-88.5 23t-84 42.5t-75 65t-54.5 94.5t-28.5 127.5q70 28 133.5 36.5t112.5 -1t92 -30t73.5 -50t56 -61t42 -63t27.5 -56
-t16 -39.5l4 -16q12 122 12 195q-8 6 -21.5 16t-49 44.5t-63.5 71.5t-54 93t-33 112.5t12 127t70 138.5q73 -25 127.5 -61.5t84.5 -76.5t48 -85t20.5 -89t-0.5 -85.5t-13 -76.5t-19 -62t-17 -42l-7 -15q1 -4 1 -50t-1 -72q3 7 10 18.5t30.5 43t50.5 58t71 55.5t91.5 44.5
-t112 14.5t132.5 -24q-2 -78 -21.5 -141.5t-50 -104.5t-69.5 -71.5t-81.5 -45.5t-84.5 -24t-80 -9.5t-67.5 1t-46.5 4.5l-17 3q-23 -147 -73 -283q6 7 18 18.5t49.5 41t77.5 52.5t99.5 42t117.5 20t129 -23.5t137 -77.5z" />
- <glyph glyph-name="stack_exchange" unicode="&#xf18d;" horiz-adv-x="1280"
-d="M1259 283v-66q0 -85 -57.5 -144.5t-138.5 -59.5h-57l-260 -269v269h-529q-81 0 -138.5 59.5t-57.5 144.5v66h1238zM1259 609v-255h-1238v255h1238zM1259 937v-255h-1238v255h1238zM1259 1077v-67h-1238v67q0 84 57.5 143.5t138.5 59.5h846q81 0 138.5 -59.5t57.5 -143.5z
-" />
- <glyph glyph-name="_374" unicode="&#xf18e;"
-d="M1152 640q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198
-t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="arrow_circle_alt_left" unicode="&#xf190;"
-d="M1152 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-192q0 -14 -9 -23t-23 -9q-12 0 -24 10l-319 319q-9 9 -9 23t9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h352q13 0 22.5 -9.5t9.5 -22.5zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198
-t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="_376" unicode="&#xf191;"
-d="M1024 960v-640q0 -26 -19 -45t-45 -19q-20 0 -37 12l-448 320q-27 19 -27 52t27 52l448 320q17 12 37 12q26 0 45 -19t19 -45zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5z
-M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="dot_circle_alt" unicode="&#xf192;"
-d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5
-t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="_378" unicode="&#xf193;" horiz-adv-x="1664"
-d="M1023 349l102 -204q-58 -179 -210 -290t-339 -111q-156 0 -288.5 77.5t-210 210t-77.5 288.5q0 181 104.5 330t274.5 211l17 -131q-122 -54 -195 -165.5t-73 -244.5q0 -185 131.5 -316.5t316.5 -131.5q126 0 232.5 65t165 175.5t49.5 236.5zM1571 249l58 -114l-256 -128
-q-13 -7 -29 -7q-40 0 -57 35l-239 477h-472q-24 0 -42.5 16.5t-21.5 40.5l-96 779q-2 17 6 42q14 51 57 82.5t97 31.5q66 0 113 -47t47 -113q0 -69 -52 -117.5t-120 -41.5l37 -289h423v-128h-407l16 -128h455q40 0 57 -35l228 -455z" />
- <glyph glyph-name="vimeo_square" unicode="&#xf194;"
-d="M1292 898q10 216 -161 222q-231 8 -312 -261q44 19 82 19q85 0 74 -96q-4 -57 -74 -167t-105 -110q-43 0 -82 169q-13 54 -45 255q-30 189 -160 177q-59 -7 -164 -100l-81 -72l-81 -72l52 -67q76 52 87 52q57 0 107 -179q15 -55 45 -164.5t45 -164.5q68 -179 164 -179
-q157 0 383 294q220 283 226 444zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_380" unicode="&#xf195;" horiz-adv-x="1152"
-d="M1152 704q0 -191 -94.5 -353t-256.5 -256.5t-353 -94.5h-160q-14 0 -23 9t-9 23v611l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v93l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v250q0 14 9 23t23 9h160
-q14 0 23 -9t9 -23v-181l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-93l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-487q188 13 318 151t130 328q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" />
- <glyph glyph-name="plus_square_o" unicode="&#xf196;" horiz-adv-x="1408"
-d="M1152 736v-64q0 -14 -9 -23t-23 -9h-352v-352q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v352h-352q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h352v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-352h352q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832
-q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_382" unicode="&#xf197;" horiz-adv-x="2176"
-d="M620 416q-110 -64 -268 -64h-128v64h-64q-13 0 -22.5 23.5t-9.5 56.5q0 24 7 49q-58 2 -96.5 10.5t-38.5 20.5t38.5 20.5t96.5 10.5q-7 25 -7 49q0 33 9.5 56.5t22.5 23.5h64v64h128q158 0 268 -64h1113q42 -7 106.5 -18t80.5 -14q89 -15 150 -40.5t83.5 -47.5t22.5 -40
-t-22.5 -40t-83.5 -47.5t-150 -40.5q-16 -3 -80.5 -14t-106.5 -18h-1113zM1739 668q53 -36 53 -92t-53 -92l81 -30q68 48 68 122t-68 122zM625 400h1015q-217 -38 -456 -80q-57 0 -113 -24t-83 -48l-28 -24l-288 -288q-26 -26 -70.5 -45t-89.5 -19h-96l-93 464h29
-q157 0 273 64zM352 816h-29l93 464h96q46 0 90 -19t70 -45l288 -288q4 -4 11 -10.5t30.5 -23t48.5 -29t61.5 -23t72.5 -10.5l456 -80h-1015q-116 64 -273 64z" />
- <glyph glyph-name="_383" unicode="&#xf198;" horiz-adv-x="1664"
-d="M1519 760q62 0 103.5 -40.5t41.5 -101.5q0 -97 -93 -130l-172 -59l56 -167q7 -21 7 -47q0 -59 -42 -102t-101 -43q-47 0 -85.5 27t-53.5 72l-55 165l-310 -106l55 -164q8 -24 8 -47q0 -59 -42 -102t-102 -43q-47 0 -85 27t-53 72l-55 163l-153 -53q-29 -9 -50 -9
-q-61 0 -101.5 40t-40.5 101q0 47 27.5 85t71.5 53l156 53l-105 313l-156 -54q-26 -8 -48 -8q-60 0 -101 40.5t-41 100.5q0 47 27.5 85t71.5 53l157 53l-53 159q-8 24 -8 47q0 60 42 102.5t102 42.5q47 0 85 -27t53 -72l54 -160l310 105l-54 160q-8 24 -8 47q0 59 42.5 102
-t101.5 43q47 0 85.5 -27.5t53.5 -71.5l53 -161l162 55q21 6 43 6q60 0 102.5 -39.5t42.5 -98.5q0 -45 -30 -81.5t-74 -51.5l-157 -54l105 -316l164 56q24 8 46 8zM725 498l310 105l-105 315l-310 -107z" />
- <glyph glyph-name="_384" unicode="&#xf199;"
-d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM1280 352v436q-31 -35 -64 -55q-34 -22 -132.5 -85t-151.5 -99q-98 -69 -164 -69v0v0q-66 0 -164 69
-q-47 32 -142 92.5t-142 92.5q-12 8 -33 27t-31 27v-436q0 -40 28 -68t68 -28h832q40 0 68 28t28 68zM1280 925q0 41 -27.5 70t-68.5 29h-832q-40 0 -68 -28t-28 -68q0 -37 30.5 -76.5t67.5 -64.5q47 -32 137.5 -89t129.5 -83q3 -2 17 -11.5t21 -14t21 -13t23.5 -13
-t21.5 -9.5t22.5 -7.5t20.5 -2.5t20.5 2.5t22.5 7.5t21.5 9.5t23.5 13t21 13t21 14t17 11.5l267 174q35 23 66.5 62.5t31.5 73.5z" />
- <glyph glyph-name="_385" unicode="&#xf19a;" horiz-adv-x="1792"
-d="M127 640q0 163 67 313l367 -1005q-196 95 -315 281t-119 411zM1415 679q0 -19 -2.5 -38.5t-10 -49.5t-11.5 -44t-17.5 -59t-17.5 -58l-76 -256l-278 826q46 3 88 8q19 2 26 18.5t-2.5 31t-28.5 13.5l-205 -10q-75 1 -202 10q-12 1 -20.5 -5t-11.5 -15t-1.5 -18.5t9 -16.5
-t19.5 -8l80 -8l120 -328l-168 -504l-280 832q46 3 88 8q19 2 26 18.5t-2.5 31t-28.5 13.5l-205 -10q-7 0 -23 0.5t-26 0.5q105 160 274.5 253.5t367.5 93.5q147 0 280.5 -53t238.5 -149h-10q-55 0 -92 -40.5t-37 -95.5q0 -12 2 -24t4 -21.5t8 -23t9 -21t12 -22.5t12.5 -21
-t14.5 -24t14 -23q63 -107 63 -212zM909 573l237 -647q1 -6 5 -11q-126 -44 -255 -44q-112 0 -217 32zM1570 1009q95 -174 95 -369q0 -209 -104 -385.5t-279 -278.5l235 678q59 169 59 276q0 42 -6 79zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286
-t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM896 -215q173 0 331.5 68t273 182.5t182.5 273t68 331.5t-68 331.5t-182.5 273t-273 182.5t-331.5 68t-331.5 -68t-273 -182.5t-182.5 -273t-68 -331.5t68 -331.5t182.5 -273
-t273 -182.5t331.5 -68z" />
- <glyph glyph-name="_386" unicode="&#xf19b;" horiz-adv-x="1792"
-d="M1086 1536v-1536l-272 -128q-228 20 -414 102t-293 208.5t-107 272.5q0 140 100.5 263.5t275 205.5t391.5 108v-172q-217 -38 -356.5 -150t-139.5 -255q0 -152 154.5 -267t388.5 -145v1360zM1755 954l37 -390l-525 114l147 83q-119 70 -280 99v172q277 -33 481 -157z" />
- <glyph glyph-name="_387" unicode="&#xf19c;" horiz-adv-x="2048"
-d="M960 1536l960 -384v-128h-128q0 -26 -20.5 -45t-48.5 -19h-1526q-28 0 -48.5 19t-20.5 45h-128v128zM256 896h256v-768h128v768h256v-768h128v768h256v-768h128v768h256v-768h59q28 0 48.5 -19t20.5 -45v-64h-1664v64q0 26 20.5 45t48.5 19h59v768zM1851 -64
-q28 0 48.5 -19t20.5 -45v-128h-1920v128q0 26 20.5 45t48.5 19h1782z" />
- <glyph glyph-name="_388" unicode="&#xf19d;" horiz-adv-x="2304"
-d="M1774 700l18 -316q4 -69 -82 -128t-235 -93.5t-323 -34.5t-323 34.5t-235 93.5t-82 128l18 316l574 -181q22 -7 48 -7t48 7zM2304 1024q0 -23 -22 -31l-1120 -352q-4 -1 -10 -1t-10 1l-652 206q-43 -34 -71 -111.5t-34 -178.5q63 -36 63 -109q0 -69 -58 -107l58 -433
-q2 -14 -8 -25q-9 -11 -24 -11h-192q-15 0 -24 11q-10 11 -8 25l58 433q-58 38 -58 107q0 73 65 111q11 207 98 330l-333 104q-22 8 -22 31t22 31l1120 352q4 1 10 1t10 -1l1120 -352q22 -8 22 -31z" />
- <glyph glyph-name="_389" unicode="&#xf19e;"
-d="M859 579l13 -707q-62 11 -105 11q-41 0 -105 -11l13 707q-40 69 -168.5 295.5t-216.5 374.5t-181 287q58 -15 108 -15q44 0 111 15q63 -111 133.5 -229.5t167 -276.5t138.5 -227q37 61 109.5 177.5t117.5 190t105 176t107 189.5q54 -14 107 -14q56 0 114 14v0
-q-28 -39 -60 -88.5t-49.5 -78.5t-56.5 -96t-49 -84q-146 -248 -353 -610z" />
- <glyph glyph-name="uniF1A0" unicode="&#xf1a0;"
-d="M768 750h725q12 -67 12 -128q0 -217 -91 -387.5t-259.5 -266.5t-386.5 -96q-157 0 -299 60.5t-245 163.5t-163.5 245t-60.5 299t60.5 299t163.5 245t245 163.5t299 60.5q300 0 515 -201l-209 -201q-123 119 -306 119q-129 0 -238.5 -65t-173.5 -176.5t-64 -243.5
-t64 -243.5t173.5 -176.5t238.5 -65q87 0 160 24t120 60t82 82t51.5 87t22.5 78h-436v264z" />
- <glyph glyph-name="f1a1" unicode="&#xf1a1;" horiz-adv-x="1792"
-d="M1095 369q16 -16 0 -31q-62 -62 -199 -62t-199 62q-16 15 0 31q6 6 15 6t15 -6q48 -49 169 -49q120 0 169 49q6 6 15 6t15 -6zM788 550q0 -37 -26 -63t-63 -26t-63.5 26t-26.5 63q0 38 26.5 64t63.5 26t63 -26.5t26 -63.5zM1183 550q0 -37 -26.5 -63t-63.5 -26t-63 26
-t-26 63t26 63.5t63 26.5t63.5 -26t26.5 -64zM1434 670q0 49 -35 84t-85 35t-86 -36q-130 90 -311 96l63 283l200 -45q0 -37 26 -63t63 -26t63.5 26.5t26.5 63.5t-26.5 63.5t-63.5 26.5q-54 0 -80 -50l-221 49q-19 5 -25 -16l-69 -312q-180 -7 -309 -97q-35 37 -87 37
-q-50 0 -85 -35t-35 -84q0 -35 18.5 -64t49.5 -44q-6 -27 -6 -56q0 -142 140 -243t337 -101q198 0 338 101t140 243q0 32 -7 57q30 15 48 43.5t18 63.5zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191
-t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="_392" unicode="&#xf1a2;"
-d="M939 407q13 -13 0 -26q-53 -53 -171 -53t-171 53q-13 13 0 26q5 6 13 6t13 -6q42 -42 145 -42t145 42q5 6 13 6t13 -6zM676 563q0 -31 -23 -54t-54 -23t-54 23t-23 54q0 32 22.5 54.5t54.5 22.5t54.5 -22.5t22.5 -54.5zM1014 563q0 -31 -23 -54t-54 -23t-54 23t-23 54
-q0 32 22.5 54.5t54.5 22.5t54.5 -22.5t22.5 -54.5zM1229 666q0 42 -30 72t-73 30q-42 0 -73 -31q-113 78 -267 82l54 243l171 -39q1 -32 23.5 -54t53.5 -22q32 0 54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5q-48 0 -69 -43l-189 42q-17 5 -21 -13l-60 -268q-154 -6 -265 -83
-q-30 32 -74 32q-43 0 -73 -30t-30 -72q0 -30 16 -55t42 -38q-5 -25 -5 -48q0 -122 120 -208.5t289 -86.5q170 0 290 86.5t120 208.5q0 25 -6 49q25 13 40.5 37.5t15.5 54.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960
-q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_393" unicode="&#xf1a3;"
-d="M866 697l90 27v62q0 79 -58 135t-138 56t-138 -55.5t-58 -134.5v-283q0 -20 -14 -33.5t-33 -13.5t-32.5 13.5t-13.5 33.5v120h-151v-122q0 -82 57.5 -139t139.5 -57q81 0 138.5 56.5t57.5 136.5v280q0 19 13.5 33t33.5 14q19 0 32.5 -14t13.5 -33v-54zM1199 502v122h-150
-v-126q0 -20 -13.5 -33.5t-33.5 -13.5q-19 0 -32.5 14t-13.5 33v123l-90 -26l-60 28v-123q0 -80 58 -137t139 -57t138.5 57t57.5 139zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103
-t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="f1a4" unicode="&#xf1a4;" horiz-adv-x="1920"
-d="M1062 824v118q0 42 -30 72t-72 30t-72 -30t-30 -72v-612q0 -175 -126 -299t-303 -124q-178 0 -303.5 125.5t-125.5 303.5v266h328v-262q0 -43 30 -72.5t72 -29.5t72 29.5t30 72.5v620q0 171 126.5 292t301.5 121q176 0 302 -122t126 -294v-136l-195 -58zM1592 602h328
-v-266q0 -178 -125.5 -303.5t-303.5 -125.5q-177 0 -303 124.5t-126 300.5v268l131 -61l195 58v-270q0 -42 30 -71.5t72 -29.5t72 29.5t30 71.5v275z" />
- <glyph glyph-name="_395" unicode="&#xf1a5;"
-d="M1472 160v480h-704v704h-480q-93 0 -158.5 -65.5t-65.5 -158.5v-480h704v-704h480q93 0 158.5 65.5t65.5 158.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5
-t84.5 -203.5z" />
- <glyph glyph-name="_396" unicode="&#xf1a6;" horiz-adv-x="2048"
-d="M328 1254h204v-983h-532v697h328v286zM328 435v369h-123v-369h123zM614 968v-697h205v697h-205zM614 1254v-204h205v204h-205zM901 968h533v-942h-533v163h328v82h-328v697zM1229 435v369h-123v-369h123zM1516 968h532v-942h-532v163h327v82h-327v697zM1843 435v369h-123
-v-369h123z" />
- <glyph glyph-name="_397" unicode="&#xf1a7;"
-d="M1046 516q0 -64 -38 -109t-91 -45q-43 0 -70 15v277q28 17 70 17q53 0 91 -45.5t38 -109.5zM703 944q0 -64 -38 -109.5t-91 -45.5q-43 0 -70 15v277q28 17 70 17q53 0 91 -45t38 -109zM1265 513q0 134 -88 229t-213 95q-20 0 -39 -3q-23 -78 -78 -136q-87 -95 -211 -101
-v-636l211 41v206q51 -19 117 -19q125 0 213 95t88 229zM922 940q0 134 -88.5 229t-213.5 95q-74 0 -141 -36h-186v-840l211 41v206q55 -19 116 -19q125 0 213.5 95t88.5 229zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960
-q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_398" unicode="&#xf1a8;" horiz-adv-x="2038"
-d="M1222 607q75 3 143.5 -20.5t118 -58.5t101 -94.5t84 -108t75.5 -120.5q33 -56 78.5 -109t75.5 -80.5t99 -88.5q-48 -30 -108.5 -57.5t-138.5 -59t-114 -47.5q-44 37 -74 115t-43.5 164.5t-33 180.5t-42.5 168.5t-72.5 123t-122.5 48.5l-10 -2l-6 -4q4 -5 13 -14
-q6 -5 28 -23.5t25.5 -22t19 -18t18 -20.5t11.5 -21t10.5 -27.5t4.5 -31t4 -40.5l1 -33q1 -26 -2.5 -57.5t-7.5 -52t-12.5 -58.5t-11.5 -53q-35 1 -101 -9.5t-98 -10.5q-39 0 -72 10q-2 16 -2 47q0 74 3 96q2 13 31.5 41.5t57 59t26.5 51.5q-24 2 -43 -24
-q-36 -53 -111.5 -99.5t-136.5 -46.5q-25 0 -75.5 63t-106.5 139.5t-84 96.5q-6 4 -27 30q-482 -112 -513 -112q-16 0 -28 11t-12 27q0 15 8.5 26.5t22.5 14.5l486 106q-8 14 -8 25t5.5 17.5t16 11.5t20 7t23 4.5t18.5 4.5q4 1 15.5 7.5t17.5 6.5q15 0 28 -16t20 -33
-q163 37 172 37q17 0 29.5 -11t12.5 -28q0 -15 -8.5 -26t-23.5 -14l-182 -40l-1 -16q-1 -26 81.5 -117.5t104.5 -91.5q47 0 119 80t72 129q0 36 -23.5 53t-51 18.5t-51 11.5t-23.5 34q0 16 10 34l-68 19q43 44 43 117q0 26 -5 58q82 16 144 16q44 0 71.5 -1.5t48.5 -8.5
-t31 -13.5t20.5 -24.5t15.5 -33.5t17 -47.5t24 -60l50 25q-3 -40 -23 -60t-42.5 -21t-40 -6.5t-16.5 -20.5zM1282 842q-5 5 -13.5 15.5t-12 14.5t-10.5 11.5t-10 10.5l-8 8t-8.5 7.5t-8 5t-8.5 4.5q-7 3 -14.5 5t-20.5 2.5t-22 0.5h-32.5h-37.5q-126 0 -217 -43
-q16 30 36 46.5t54 29.5t65.5 36t46 36.5t50 55t43.5 50.5q12 -9 28 -31.5t32 -36.5t38 -13l12 1v-76l22 -1q247 95 371 190q28 21 50 39t42.5 37.5t33 31t29.5 34t24 31t24.5 37t23 38t27 47.5t29.5 53l7 9q-2 -53 -43 -139q-79 -165 -205 -264t-306 -142q-14 -3 -42 -7.5
-t-50 -9.5t-39 -14q3 -19 24.5 -46t21.5 -34q0 -11 -26 -30zM1061 -79q39 26 131.5 47.5t146.5 21.5q9 0 22.5 -15.5t28 -42.5t26 -50t24 -51t14.5 -33q-121 -45 -244 -45q-61 0 -125 11zM822 568l48 12l109 -177l-73 -48zM1323 51q3 -15 3 -16q0 -7 -17.5 -14.5t-46 -13
-t-54 -9.5t-53.5 -7.5t-32 -4.5l-7 43q21 2 60.5 8.5t72 10t60.5 3.5h14zM866 679l-96 -20l-6 17q10 1 32.5 7t34.5 6q19 0 35 -10zM1061 45h31l10 -83l-41 -12v95zM1950 1535v1v-1zM1950 1535l-1 -5l-2 -2l1 3zM1950 1535l1 1z" />
- <glyph glyph-name="_399" unicode="&#xf1a9;"
-d="M1167 -50q-5 19 -24 5q-30 -22 -87 -39t-131 -17q-129 0 -193 49q-5 4 -13 4q-11 0 -26 -12q-7 -6 -7.5 -16t7.5 -20q34 -32 87.5 -46t102.5 -12.5t99 4.5q41 4 84.5 20.5t65 30t28.5 20.5q12 12 7 29zM1128 65q-19 47 -39 61q-23 15 -76 15q-47 0 -71 -10
-q-29 -12 -78 -56q-26 -24 -12 -44q9 -8 17.5 -4.5t31.5 23.5q3 2 10.5 8.5t10.5 8.5t10 7t11.5 7t12.5 5t15 4.5t16.5 2.5t20.5 1q27 0 44.5 -7.5t23 -14.5t13.5 -22q10 -17 12.5 -20t12.5 1q23 12 14 34zM1483 346q0 22 -5 44.5t-16.5 45t-34 36.5t-52.5 14
-q-33 0 -97 -41.5t-129 -83.5t-101 -42q-27 -1 -63.5 19t-76 49t-83.5 58t-100 49t-111 19q-115 -1 -197 -78.5t-84 -178.5q-2 -112 74 -164q29 -20 62.5 -28.5t103.5 -8.5q57 0 132 32.5t134 71t120 70.5t93 31q26 -1 65 -31.5t71.5 -67t68 -67.5t55.5 -32q35 -3 58.5 14
-t55.5 63q28 41 42.5 101t14.5 106zM1536 506q0 -164 -62 -304.5t-166 -236t-242.5 -149.5t-290.5 -54t-293 57.5t-247.5 157t-170.5 241.5t-64 302q0 89 19.5 172.5t49 145.5t70.5 118.5t78.5 94t78.5 69.5t64.5 46.5t42.5 24.5q14 8 51 26.5t54.5 28.5t48 30t60.5 44
-q36 28 58 72.5t30 125.5q129 -155 186 -193q44 -29 130 -68t129 -66q21 -13 39 -25t60.5 -46.5t76 -70.5t75 -95t69 -122t47 -148.5t19.5 -177.5z" />
- <glyph glyph-name="_400" unicode="&#xf1aa;"
-d="M1070 463l-160 -160l-151 -152l-30 -30q-65 -64 -151.5 -87t-171.5 -2q-16 -70 -72 -115t-129 -45q-85 0 -145 60.5t-60 145.5q0 72 44.5 128t113.5 72q-22 86 1 173t88 152l12 12l151 -152l-11 -11q-37 -37 -37 -89t37 -90q37 -37 89 -37t89 37l30 30l151 152l161 160z
-M729 1145l12 -12l-152 -152l-12 12q-37 37 -89 37t-89 -37t-37 -89.5t37 -89.5l29 -29l152 -152l160 -160l-151 -152l-161 160l-151 152l-30 30q-68 67 -90 159.5t5 179.5q-70 15 -115 71t-45 129q0 85 60 145.5t145 60.5q76 0 133.5 -49t69.5 -123q84 20 169.5 -3.5
-t149.5 -87.5zM1536 78q0 -85 -60 -145.5t-145 -60.5q-74 0 -131 47t-71 118q-86 -28 -179.5 -6t-161.5 90l-11 12l151 152l12 -12q37 -37 89 -37t89 37t37 89t-37 89l-30 30l-152 152l-160 160l152 152l160 -160l152 -152l29 -30q64 -64 87.5 -150.5t2.5 -171.5
-q76 -11 126.5 -68.5t50.5 -134.5zM1534 1202q0 -77 -51 -135t-127 -69q26 -85 3 -176.5t-90 -158.5l-12 -12l-151 152l12 12q37 37 37 89t-37 89t-89 37t-89 -37l-30 -30l-152 -152l-160 -160l-152 152l161 160l152 152l29 30q67 67 159 89.5t178 -3.5q11 75 68.5 126
-t135.5 51q85 0 145 -60.5t60 -145.5z" />
- <glyph glyph-name="f1ab" unicode="&#xf1ab;"
-d="M654 458q-1 -3 -12.5 0.5t-31.5 11.5l-20 9q-44 20 -87 49q-7 5 -41 31.5t-38 28.5q-67 -103 -134 -181q-81 -95 -105 -110q-4 -2 -19.5 -4t-18.5 0q6 4 82 92q21 24 85.5 115t78.5 118q17 30 51 98.5t36 77.5q-8 1 -110 -33q-8 -2 -27.5 -7.5t-34.5 -9.5t-17 -5
-q-2 -2 -2 -10.5t-1 -9.5q-5 -10 -31 -15q-23 -7 -47 0q-18 4 -28 21q-4 6 -5 23q6 2 24.5 5t29.5 6q58 16 105 32q100 35 102 35q10 2 43 19.5t44 21.5q9 3 21.5 8t14.5 5.5t6 -0.5q2 -12 -1 -33q0 -2 -12.5 -27t-26.5 -53.5t-17 -33.5q-25 -50 -77 -131l64 -28
-q12 -6 74.5 -32t67.5 -28q4 -1 10.5 -25.5t4.5 -30.5zM449 944q3 -15 -4 -28q-12 -23 -50 -38q-30 -12 -60 -12q-26 3 -49 26q-14 15 -18 41l1 3q3 -3 19.5 -5t26.5 0t58 16q36 12 55 14q17 0 21 -17zM1147 815l63 -227l-139 42zM39 15l694 232v1032l-694 -233v-1031z
-M1280 332l102 -31l-181 657l-100 31l-216 -536l102 -31l45 110l211 -65zM777 1294l573 -184v380zM1088 -29l158 -13l-54 -160l-40 66q-130 -83 -276 -108q-58 -12 -91 -12h-84q-79 0 -199.5 39t-183.5 85q-8 7 -8 16q0 8 5 13.5t13 5.5q4 0 18 -7.5t30.5 -16.5t20.5 -11
-q73 -37 159.5 -61.5t157.5 -24.5q95 0 167 14.5t157 50.5q15 7 30.5 15.5t34 19t28.5 16.5zM1536 1050v-1079l-774 246q-14 -6 -375 -127.5t-368 -121.5q-13 0 -18 13q0 1 -1 3v1078q3 9 4 10q5 6 20 11q107 36 149 50v384l558 -198q2 0 160.5 55t316 108.5t161.5 53.5
-q20 0 20 -21v-418z" />
- <glyph glyph-name="_402" unicode="&#xf1ac;" horiz-adv-x="1792"
-d="M288 1152q66 0 113 -47t47 -113v-1088q0 -66 -47 -113t-113 -47h-128q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h128zM1664 989q58 -34 93 -93t35 -128v-768q0 -106 -75 -181t-181 -75h-864q-66 0 -113 47t-47 113v1536q0 40 28 68t68 28h672q40 0 88 -20t76 -48
-l152 -152q28 -28 48 -76t20 -88v-163zM928 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM928 256v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM928 512v128q0 14 -9 23
-t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1184 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1184 256v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128
-q14 0 23 9t9 23zM1184 512v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 256v128q0 14 -9 23t-23 9h-128
-q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 512v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1536 896v256h-160q-40 0 -68 28t-28 68v160h-640v-512h896z" />
- <glyph glyph-name="_403" unicode="&#xf1ad;"
-d="M1344 1536q26 0 45 -19t19 -45v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280zM512 1248v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 992v-64q0 -14 9 -23t23 -9h64q14 0 23 9
-t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 736v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 480v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM384 160v64
-q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64
-q14 0 23 9t9 23zM384 928v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 -96v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9
-t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM896 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 928v64
-q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 160v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64
-q14 0 23 9t9 23zM1152 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 928v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9
-t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23z" />
- <glyph glyph-name="_404" unicode="&#xf1ae;" horiz-adv-x="1280"
-d="M1188 988l-292 -292v-824q0 -46 -33 -79t-79 -33t-79 33t-33 79v384h-64v-384q0 -46 -33 -79t-79 -33t-79 33t-33 79v824l-292 292q-28 28 -28 68t28 68q29 28 68.5 28t67.5 -28l228 -228h368l228 228q28 28 68 28t68 -28q28 -29 28 -68.5t-28 -67.5zM864 1152
-q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
- <glyph glyph-name="uniF1B1" unicode="&#xf1b0;" horiz-adv-x="1664"
-d="M780 1064q0 -60 -19 -113.5t-63 -92.5t-105 -39q-76 0 -138 57.5t-92 135.5t-30 151q0 60 19 113.5t63 92.5t105 39q77 0 138.5 -57.5t91.5 -135t30 -151.5zM438 581q0 -80 -42 -139t-119 -59q-76 0 -141.5 55.5t-100.5 133.5t-35 152q0 80 42 139.5t119 59.5
-q76 0 141.5 -55.5t100.5 -134t35 -152.5zM832 608q118 0 255 -97.5t229 -237t92 -254.5q0 -46 -17 -76.5t-48.5 -45t-64.5 -20t-76 -5.5q-68 0 -187.5 45t-182.5 45q-66 0 -192.5 -44.5t-200.5 -44.5q-183 0 -183 146q0 86 56 191.5t139.5 192.5t187.5 146t193 59zM1071 819
-q-61 0 -105 39t-63 92.5t-19 113.5q0 74 30 151.5t91.5 135t138.5 57.5q61 0 105 -39t63 -92.5t19 -113.5q0 -73 -30 -151t-92 -135.5t-138 -57.5zM1503 923q77 0 119 -59.5t42 -139.5q0 -74 -35 -152t-100.5 -133.5t-141.5 -55.5q-77 0 -119 59t-42 139q0 74 35 152.5
-t100.5 134t141.5 55.5z" />
- <glyph glyph-name="_406" unicode="&#xf1b1;" horiz-adv-x="768"
-d="M704 1008q0 -145 -57 -243.5t-152 -135.5l45 -821q2 -26 -16 -45t-44 -19h-192q-26 0 -44 19t-16 45l45 821q-95 37 -152 135.5t-57 243.5q0 128 42.5 249.5t117.5 200t160 78.5t160 -78.5t117.5 -200t42.5 -249.5z" />
- <glyph glyph-name="_407" unicode="&#xf1b2;" horiz-adv-x="1792"
-d="M896 -93l640 349v636l-640 -233v-752zM832 772l698 254l-698 254l-698 -254zM1664 1024v-768q0 -35 -18 -65t-49 -47l-704 -384q-28 -16 -61 -16t-61 16l-704 384q-31 17 -49 47t-18 65v768q0 40 23 73t61 47l704 256q22 8 44 8t44 -8l704 -256q38 -14 61 -47t23 -73z
-" />
- <glyph glyph-name="_408" unicode="&#xf1b3;" horiz-adv-x="2304"
-d="M640 -96l384 192v314l-384 -164v-342zM576 358l404 173l-404 173l-404 -173zM1664 -96l384 192v314l-384 -164v-342zM1600 358l404 173l-404 173l-404 -173zM1152 651l384 165v266l-384 -164v-267zM1088 1030l441 189l-441 189l-441 -189zM2176 512v-416q0 -36 -19 -67
-t-52 -47l-448 -224q-25 -14 -57 -14t-57 14l-448 224q-4 2 -7 4q-2 -2 -7 -4l-448 -224q-25 -14 -57 -14t-57 14l-448 224q-33 16 -52 47t-19 67v416q0 38 21.5 70t56.5 48l434 186v400q0 38 21.5 70t56.5 48l448 192q23 10 50 10t50 -10l448 -192q35 -16 56.5 -48t21.5 -70
-v-400l434 -186q36 -16 57 -48t21 -70z" />
- <glyph glyph-name="_409" unicode="&#xf1b4;" horiz-adv-x="2048"
-d="M1848 1197h-511v-124h511v124zM1596 771q-90 0 -146 -52.5t-62 -142.5h408q-18 195 -200 195zM1612 186q63 0 122 32t76 87h221q-100 -307 -427 -307q-214 0 -340.5 132t-126.5 347q0 208 130.5 345.5t336.5 137.5q138 0 240.5 -68t153 -179t50.5 -248q0 -17 -2 -47h-658
-q0 -111 57.5 -171.5t166.5 -60.5zM277 236h296q205 0 205 167q0 180 -199 180h-302v-347zM277 773h281q78 0 123.5 36.5t45.5 113.5q0 144 -190 144h-260v-294zM0 1282h594q87 0 155 -14t126.5 -47.5t90 -96.5t31.5 -154q0 -181 -172 -263q114 -32 172 -115t58 -204
-q0 -75 -24.5 -136.5t-66 -103.5t-98.5 -71t-121 -42t-134 -13h-611v1260z" />
- <glyph glyph-name="_410" unicode="&#xf1b5;"
-d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM499 1041h-371v-787h382q117 0 197 57.5t80 170.5q0 158 -143 200q107 52 107 164q0 57 -19.5 96.5
-t-56.5 60.5t-79 29.5t-97 8.5zM477 723h-176v184h163q119 0 119 -90q0 -94 -106 -94zM486 388h-185v217h189q124 0 124 -113q0 -104 -128 -104zM1136 356q-68 0 -104 38t-36 107h411q1 10 1 30q0 132 -74.5 220.5t-203.5 88.5q-128 0 -210 -86t-82 -216q0 -135 79 -217
-t213 -82q205 0 267 191h-138q-11 -34 -47.5 -54t-75.5 -20zM1126 722q113 0 124 -122h-254q4 56 39 89t91 33zM964 988h319v-77h-319v77z" />
- <glyph glyph-name="_411" unicode="&#xf1b6;" horiz-adv-x="1792"
-d="M1582 954q0 -101 -71.5 -172.5t-172.5 -71.5t-172.5 71.5t-71.5 172.5t71.5 172.5t172.5 71.5t172.5 -71.5t71.5 -172.5zM812 212q0 104 -73 177t-177 73q-27 0 -54 -6l104 -42q77 -31 109.5 -106.5t1.5 -151.5q-31 -77 -107 -109t-152 -1q-21 8 -62 24.5t-61 24.5
-q32 -60 91 -96.5t130 -36.5q104 0 177 73t73 177zM1642 953q0 126 -89.5 215.5t-215.5 89.5q-127 0 -216.5 -89.5t-89.5 -215.5q0 -127 89.5 -216t216.5 -89q126 0 215.5 89t89.5 216zM1792 953q0 -189 -133.5 -322t-321.5 -133l-437 -319q-12 -129 -109 -218t-229 -89
-q-121 0 -214 76t-118 192l-230 92v429l389 -157q79 48 173 48q13 0 35 -2l284 407q2 187 135.5 319t320.5 132q188 0 321.5 -133.5t133.5 -321.5z" />
- <glyph glyph-name="_412" unicode="&#xf1b7;"
-d="M1242 889q0 80 -57 136.5t-137 56.5t-136.5 -57t-56.5 -136q0 -80 56.5 -136.5t136.5 -56.5t137 56.5t57 136.5zM632 301q0 -83 -58 -140.5t-140 -57.5q-56 0 -103 29t-72 77q52 -20 98 -40q60 -24 120 1.5t85 86.5q24 60 -1.5 120t-86.5 84l-82 33q22 5 42 5
-q82 0 140 -57.5t58 -140.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v153l172 -69q20 -92 93.5 -152t168.5 -60q104 0 181 70t87 173l345 252q150 0 255.5 105.5t105.5 254.5q0 150 -105.5 255.5t-255.5 105.5
-q-148 0 -253 -104.5t-107 -252.5l-225 -322q-9 1 -28 1q-75 0 -137 -37l-297 119v468q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5zM1289 887q0 -100 -71 -170.5t-171 -70.5t-170.5 70.5t-70.5 170.5t70.5 171t170.5 71q101 0 171.5 -70.5t70.5 -171.5z
-" />
- <glyph glyph-name="_413" unicode="&#xf1b8;" horiz-adv-x="1792"
-d="M836 367l-15 -368l-2 -22l-420 29q-36 3 -67 31.5t-47 65.5q-11 27 -14.5 55t4 65t12 55t21.5 64t19 53q78 -12 509 -28zM449 953l180 -379l-147 92q-63 -72 -111.5 -144.5t-72.5 -125t-39.5 -94.5t-18.5 -63l-4 -21l-190 357q-17 26 -18 56t6 47l8 18q35 63 114 188
-l-140 86zM1680 436l-188 -359q-12 -29 -36.5 -46.5t-43.5 -20.5l-18 -4q-71 -7 -219 -12l8 -164l-230 367l211 362l7 -173q170 -16 283 -5t170 33zM895 1360q-47 -63 -265 -435l-317 187l-19 12l225 356q20 31 60 45t80 10q24 -2 48.5 -12t42 -21t41.5 -33t36 -34.5
-t36 -39.5t32 -35zM1550 1053l212 -363q18 -37 12.5 -76t-27.5 -74q-13 -20 -33 -37t-38 -28t-48.5 -22t-47 -16t-51.5 -14t-46 -12q-34 72 -265 436l313 195zM1407 1279l142 83l-220 -373l-419 20l151 86q-34 89 -75 166t-75.5 123.5t-64.5 80t-47 46.5l-17 13l405 -1
-q31 3 58 -10.5t39 -28.5l11 -15q39 -61 112 -190z" />
- <glyph glyph-name="_414" unicode="&#xf1b9;" horiz-adv-x="2048"
-d="M480 448q0 66 -47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47t113 47t47 113zM516 768h1016l-89 357q-2 8 -14 17.5t-21 9.5h-768q-9 0 -21 -9.5t-14 -17.5zM1888 448q0 66 -47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47t113 47t47 113zM2048 544v-384
-q0 -14 -9 -23t-23 -9h-96v-128q0 -80 -56 -136t-136 -56t-136 56t-56 136v128h-1024v-128q0 -80 -56 -136t-136 -56t-136 56t-56 136v128h-96q-14 0 -23 9t-9 23v384q0 93 65.5 158.5t158.5 65.5h28l105 419q23 94 104 157.5t179 63.5h768q98 0 179 -63.5t104 -157.5
-l105 -419h28q93 0 158.5 -65.5t65.5 -158.5z" />
- <glyph glyph-name="_415" unicode="&#xf1ba;" horiz-adv-x="2048"
-d="M1824 640q93 0 158.5 -65.5t65.5 -158.5v-384q0 -14 -9 -23t-23 -9h-96v-64q0 -80 -56 -136t-136 -56t-136 56t-56 136v64h-1024v-64q0 -80 -56 -136t-136 -56t-136 56t-56 136v64h-96q-14 0 -23 9t-9 23v384q0 93 65.5 158.5t158.5 65.5h28l105 419q23 94 104 157.5
-t179 63.5h128v224q0 14 9 23t23 9h448q14 0 23 -9t9 -23v-224h128q98 0 179 -63.5t104 -157.5l105 -419h28zM320 160q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47zM516 640h1016l-89 357q-2 8 -14 17.5t-21 9.5h-768q-9 0 -21 -9.5t-14 -17.5z
-M1728 160q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47z" />
- <glyph glyph-name="_416" unicode="&#xf1bb;"
-d="M1504 64q0 -26 -19 -45t-45 -19h-462q1 -17 6 -87.5t5 -108.5q0 -25 -18 -42.5t-43 -17.5h-320q-25 0 -43 17.5t-18 42.5q0 38 5 108.5t6 87.5h-462q-26 0 -45 19t-19 45t19 45l402 403h-229q-26 0 -45 19t-19 45t19 45l402 403h-197q-26 0 -45 19t-19 45t19 45l384 384
-q19 19 45 19t45 -19l384 -384q19 -19 19 -45t-19 -45t-45 -19h-197l402 -403q19 -19 19 -45t-19 -45t-45 -19h-229l402 -403q19 -19 19 -45z" />
- <glyph glyph-name="_417" unicode="&#xf1bc;"
-d="M1127 326q0 32 -30 51q-193 115 -447 115q-133 0 -287 -34q-42 -9 -42 -52q0 -20 13.5 -34.5t35.5 -14.5q5 0 37 8q132 27 243 27q226 0 397 -103q19 -11 33 -11q19 0 33 13.5t14 34.5zM1223 541q0 40 -35 61q-237 141 -548 141q-153 0 -303 -42q-48 -13 -48 -64
-q0 -25 17.5 -42.5t42.5 -17.5q7 0 37 8q122 33 251 33q279 0 488 -124q24 -13 38 -13q25 0 42.5 17.5t17.5 42.5zM1331 789q0 47 -40 70q-126 73 -293 110.5t-343 37.5q-204 0 -364 -47q-23 -7 -38.5 -25.5t-15.5 -48.5q0 -31 20.5 -52t51.5 -21q11 0 40 8q133 37 307 37
-q159 0 309.5 -34t253.5 -95q21 -12 40 -12q29 0 50.5 20.5t21.5 51.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="_418" unicode="&#xf1bd;" horiz-adv-x="1024"
-d="M1024 1233l-303 -582l24 -31h279v-415h-507l-44 -30l-142 -273l-30 -30h-301v303l303 583l-24 30h-279v415h507l44 30l142 273l30 30h301v-303z" />
- <glyph glyph-name="_419" unicode="&#xf1be;" horiz-adv-x="2304"
-d="M784 164l16 241l-16 523q-1 10 -7.5 17t-16.5 7q-9 0 -16 -7t-7 -17l-14 -523l14 -241q1 -10 7.5 -16.5t15.5 -6.5q22 0 24 23zM1080 193l11 211l-12 586q0 16 -13 24q-8 5 -16 5t-16 -5q-13 -8 -13 -24l-1 -6l-10 -579q0 -1 11 -236v-1q0 -10 6 -17q9 -11 23 -11
-q11 0 20 9q9 7 9 20zM35 533l20 -128l-20 -126q-2 -9 -9 -9t-9 9l-17 126l17 128q2 9 9 9t9 -9zM121 612l26 -207l-26 -203q-2 -9 -10 -9q-9 0 -9 10l-23 202l23 207q0 9 9 9q8 0 10 -9zM401 159zM213 650l25 -245l-25 -237q0 -11 -11 -11q-10 0 -12 11l-21 237l21 245
-q2 12 12 12q11 0 11 -12zM307 657l23 -252l-23 -244q-2 -13 -14 -13q-13 0 -13 13l-21 244l21 252q0 13 13 13q12 0 14 -13zM401 639l21 -234l-21 -246q-2 -16 -16 -16q-6 0 -10.5 4.5t-4.5 11.5l-20 246l20 234q0 6 4.5 10.5t10.5 4.5q14 0 16 -15zM784 164zM495 785
-l21 -380l-21 -246q0 -7 -5 -12.5t-12 -5.5q-16 0 -18 18l-18 246l18 380q2 18 18 18q7 0 12 -5.5t5 -12.5zM589 871l19 -468l-19 -244q0 -8 -5.5 -13.5t-13.5 -5.5q-18 0 -20 19l-16 244l16 468q2 19 20 19q8 0 13.5 -5.5t5.5 -13.5zM687 911l18 -506l-18 -242
-q-2 -21 -22 -21q-19 0 -21 21l-16 242l16 506q0 9 6.5 15.5t14.5 6.5q9 0 15 -6.5t7 -15.5zM1079 169v0v0v0zM881 915l15 -510l-15 -239q0 -10 -7.5 -17.5t-17.5 -7.5t-17 7t-8 18l-14 239l14 510q0 11 7.5 18t17.5 7t17.5 -7t7.5 -18zM980 896l14 -492l-14 -236
-q0 -11 -8 -19t-19 -8t-19 8t-9 19l-12 236l12 492q1 12 9 20t19 8t18.5 -8t8.5 -20zM1192 404l-14 -231v0q0 -13 -9 -22t-22 -9t-22 9t-10 22l-6 114l-6 117l12 636v3q2 15 12 24q9 7 20 7q8 0 15 -5q14 -8 16 -26zM2304 423q0 -117 -83 -199.5t-200 -82.5h-786
-q-13 2 -22 11t-9 22v899q0 23 28 33q85 34 181 34q195 0 338 -131.5t160 -323.5q53 22 110 22q117 0 200 -83t83 -201z" />
- <glyph glyph-name="uniF1C0" unicode="&#xf1c0;"
-d="M768 768q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127t443 -43zM768 0q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127
-t443 -43zM768 384q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127t443 -43zM768 1536q208 0 385 -34.5t280 -93.5t103 -128v-128q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5
-t-103 128v128q0 69 103 128t280 93.5t385 34.5z" />
- <glyph glyph-name="uniF1C1" unicode="&#xf1c1;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M894 465q33 -26 84 -56q59 7 117 7q147 0 177 -49q16 -22 2 -52q0 -1 -1 -2l-2 -2v-1q-6 -38 -71 -38q-48 0 -115 20t-130 53q-221 -24 -392 -83q-153 -262 -242 -262q-15 0 -28 7l-24 12q-1 1 -6 5q-10 10 -6 36q9 40 56 91.5t132 96.5q14 9 23 -6q2 -2 2 -4q52 85 107 197
-q68 136 104 262q-24 82 -30.5 159.5t6.5 127.5q11 40 42 40h21h1q23 0 35 -15q18 -21 9 -68q-2 -6 -4 -8q1 -3 1 -8v-30q-2 -123 -14 -192q55 -164 146 -238zM318 54q52 24 137 158q-51 -40 -87.5 -84t-49.5 -74zM716 974q-15 -42 -2 -132q1 7 7 44q0 3 7 43q1 4 4 8
-q-1 1 -1 2q-1 2 -1 3q-1 22 -13 36q0 -1 -1 -2v-2zM592 313q135 54 284 81q-2 1 -13 9.5t-16 13.5q-76 67 -127 176q-27 -86 -83 -197q-30 -56 -45 -83zM1238 329q-24 24 -140 24q76 -28 124 -28q14 0 18 1q0 1 -2 3z" />
- <glyph glyph-name="_422" unicode="&#xf1c2;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M233 768v-107h70l164 -661h159l128 485q7 20 10 46q2 16 2 24h4l3 -24q1 -3 3.5 -20t5.5 -26l128 -485h159l164 661h70v107h-300v-107h90l-99 -438q-5 -20 -7 -46l-2 -21h-4q0 3 -0.5 6.5t-1.5 8t-1 6.5q-1 5 -4 21t-5 25l-144 545h-114l-144 -545q-2 -9 -4.5 -24.5
-t-3.5 -21.5l-4 -21h-4l-2 21q-2 26 -7 46l-99 438h90v107h-300z" />
- <glyph glyph-name="_423" unicode="&#xf1c3;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M429 106v-106h281v106h-75l103 161q5 7 10 16.5t7.5 13.5t3.5 4h2q1 -4 5 -10q2 -4 4.5 -7.5t6 -8t6.5 -8.5l107 -161h-76v-106h291v106h-68l-192 273l195 282h67v107h-279v-107h74l-103 -159q-4 -7 -10 -16.5t-9 -13.5l-2 -3h-2q-1 4 -5 10q-6 11 -17 23l-106 159h76v107
-h-290v-107h68l189 -272l-194 -283h-68z" />
- <glyph glyph-name="_424" unicode="&#xf1c4;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M416 106v-106h327v106h-93v167h137q76 0 118 15q67 23 106.5 87t39.5 146q0 81 -37 141t-100 87q-48 19 -130 19h-368v-107h92v-555h-92zM769 386h-119v268h120q52 0 83 -18q56 -33 56 -115q0 -89 -62 -120q-31 -15 -78 -15z" />
- <glyph glyph-name="_425" unicode="&#xf1c5;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M1280 320v-320h-1024v192l192 192l128 -128l384 384zM448 512q-80 0 -136 56t-56 136t56 136t136 56t136 -56t56 -136t-56 -136t-136 -56z" />
- <glyph glyph-name="_426" unicode="&#xf1c6;"
-d="M640 1152v128h-128v-128h128zM768 1024v128h-128v-128h128zM640 896v128h-128v-128h128zM768 768v128h-128v-128h128zM1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400
-v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-128v-128h-128v128h-512v-1536h1280zM781 593l107 -349q8 -27 8 -52q0 -83 -72.5 -137.5t-183.5 -54.5t-183.5 54.5t-72.5 137.5q0 25 8 52q21 63 120 396v128h128v-128h79
-q22 0 39 -13t23 -34zM640 128q53 0 90.5 19t37.5 45t-37.5 45t-90.5 19t-90.5 -19t-37.5 -45t37.5 -45t90.5 -19z" />
- <glyph glyph-name="_427" unicode="&#xf1c7;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M620 686q20 -8 20 -30v-544q0 -22 -20 -30q-8 -2 -12 -2q-12 0 -23 9l-166 167h-131q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h131l166 167q16 15 35 7zM1037 -3q31 0 50 24q129 159 129 363t-129 363q-16 21 -43 24t-47 -14q-21 -17 -23.5 -43.5t14.5 -47.5
-q100 -123 100 -282t-100 -282q-17 -21 -14.5 -47.5t23.5 -42.5q18 -15 40 -15zM826 145q27 0 47 20q87 93 87 219t-87 219q-18 19 -45 20t-46 -17t-20 -44.5t18 -46.5q52 -57 52 -131t-52 -131q-19 -20 -18 -46.5t20 -44.5q20 -17 44 -17z" />
- <glyph glyph-name="_428" unicode="&#xf1c8;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M768 768q52 0 90 -38t38 -90v-384q0 -52 -38 -90t-90 -38h-384q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h384zM1260 766q20 -8 20 -30v-576q0 -22 -20 -30q-8 -2 -12 -2q-14 0 -23 9l-265 266v90l265 266q9 9 23 9q4 0 12 -2z" />
- <glyph glyph-name="_429" unicode="&#xf1c9;"
-d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z
-M480 768q8 11 21 12.5t24 -6.5l51 -38q11 -8 12.5 -21t-6.5 -24l-182 -243l182 -243q8 -11 6.5 -24t-12.5 -21l-51 -38q-11 -8 -24 -6.5t-21 12.5l-226 301q-14 19 0 38zM1282 467q14 -19 0 -38l-226 -301q-8 -11 -21 -12.5t-24 6.5l-51 38q-11 8 -12.5 21t6.5 24l182 243
-l-182 243q-8 11 -6.5 24t12.5 21l51 38q11 8 24 6.5t21 -12.5zM662 6q-13 2 -20.5 13t-5.5 24l138 831q2 13 13 20.5t24 5.5l63 -10q13 -2 20.5 -13t5.5 -24l-138 -831q-2 -13 -13 -20.5t-24 -5.5z" />
- <glyph glyph-name="_430" unicode="&#xf1ca;"
-d="M1497 709v-198q-101 -23 -198 -23q-65 -136 -165.5 -271t-181.5 -215.5t-128 -106.5q-80 -45 -162 3q-28 17 -60.5 43.5t-85 83.5t-102.5 128.5t-107.5 184t-105.5 244t-91.5 314.5t-70.5 390h283q26 -218 70 -398.5t104.5 -317t121.5 -235.5t140 -195q169 169 287 406
-q-142 72 -223 220t-81 333q0 192 104 314.5t284 122.5q178 0 273 -105.5t95 -297.5q0 -159 -58 -286q-7 -1 -19.5 -3t-46 -2t-63 6t-62 25.5t-50.5 51.5q31 103 31 184q0 87 -29 132t-79 45q-53 0 -85 -49.5t-32 -140.5q0 -186 105 -293.5t267 -107.5q62 0 121 14z" />
- <glyph glyph-name="_431" unicode="&#xf1cb;" horiz-adv-x="1792"
-d="M216 367l603 -402v359l-334 223zM154 511l193 129l-193 129v-258zM973 -35l603 402l-269 180l-334 -223v-359zM896 458l272 182l-272 182l-272 -182zM485 733l334 223v359l-603 -402zM1445 640l193 -129v258zM1307 733l269 180l-603 402v-359zM1792 913v-546
-q0 -41 -34 -64l-819 -546q-21 -13 -43 -13t-43 13l-819 546q-34 23 -34 64v546q0 41 34 64l819 546q21 13 43 13t43 -13l819 -546q34 -23 34 -64z" />
- <glyph glyph-name="_432" unicode="&#xf1cc;" horiz-adv-x="2048"
-d="M1800 764q111 -46 179.5 -145.5t68.5 -221.5q0 -164 -118 -280.5t-285 -116.5q-4 0 -11.5 0.5t-10.5 0.5h-1209h-1h-2h-5q-170 10 -288 125.5t-118 280.5q0 110 55 203t147 147q-12 39 -12 82q0 115 82 196t199 81q95 0 172 -58q75 154 222.5 248t326.5 94
-q166 0 306 -80.5t221.5 -218.5t81.5 -301q0 -6 -0.5 -18t-0.5 -18zM468 498q0 -122 84 -193t208 -71q137 0 240 99q-16 20 -47.5 56.5t-43.5 50.5q-67 -65 -144 -65q-55 0 -93.5 33.5t-38.5 87.5q0 53 38.5 87t91.5 34q44 0 84.5 -21t73 -55t65 -75t69 -82t77 -75t97 -55
-t121.5 -21q121 0 204.5 71.5t83.5 190.5q0 121 -84 192t-207 71q-143 0 -241 -97l93 -108q66 64 142 64q52 0 92 -33t40 -84q0 -57 -37 -91.5t-94 -34.5q-43 0 -82.5 21t-72 55t-65.5 75t-69.5 82t-77.5 75t-96.5 55t-118.5 21q-122 0 -207 -70.5t-85 -189.5z" />
- <glyph glyph-name="_433" unicode="&#xf1cd;" horiz-adv-x="1792"
-d="M896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM896 1408q-190 0 -361 -90l194 -194q82 28 167 28t167 -28l194 194q-171 90 -361 90zM218 279l194 194
-q-28 82 -28 167t28 167l-194 194q-90 -171 -90 -361t90 -361zM896 -128q190 0 361 90l-194 194q-82 -28 -167 -28t-167 28l-194 -194q171 -90 361 -90zM896 256q159 0 271.5 112.5t112.5 271.5t-112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5
-t271.5 -112.5zM1380 473l194 -194q90 171 90 361t-90 361l-194 -194q28 -82 28 -167t-28 -167z" />
- <glyph glyph-name="_434" unicode="&#xf1ce;" horiz-adv-x="1792"
-d="M1760 640q0 -176 -68.5 -336t-184 -275.5t-275.5 -184t-336 -68.5t-336 68.5t-275.5 184t-184 275.5t-68.5 336q0 213 97 398.5t265 305.5t374 151v-228q-221 -45 -366.5 -221t-145.5 -406q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5
-t136.5 204t51 248.5q0 230 -145.5 406t-366.5 221v228q206 -31 374 -151t265 -305.5t97 -398.5z" />
- <glyph glyph-name="uniF1D0" unicode="&#xf1d0;" horiz-adv-x="1792"
-d="M19 662q8 217 116 406t305 318h5q0 -1 -1 -3q-8 -8 -28 -33.5t-52 -76.5t-60 -110.5t-44.5 -135.5t-14 -150.5t39 -157.5t108.5 -154q50 -50 102 -69.5t90.5 -11.5t69.5 23.5t47 32.5l16 16q39 51 53 116.5t6.5 122.5t-21 107t-26.5 80l-14 29q-10 25 -30.5 49.5t-43 41
-t-43.5 29.5t-35 19l-13 6l104 115q39 -17 78 -52t59 -61l19 -27q1 48 -18.5 103.5t-40.5 87.5l-20 31l161 183l160 -181q-33 -46 -52.5 -102.5t-22.5 -90.5l-4 -33q22 37 61.5 72.5t67.5 52.5l28 17l103 -115q-44 -14 -85 -50t-60 -65l-19 -29q-31 -56 -48 -133.5t-7 -170
-t57 -156.5q33 -45 77.5 -60.5t85 -5.5t76 26.5t57.5 33.5l21 16q60 53 96.5 115t48.5 121.5t10 121.5t-18 118t-37 107.5t-45.5 93t-45 72t-34.5 47.5l-13 17q-14 13 -7 13l10 -3q40 -29 62.5 -46t62 -50t64 -58t58.5 -65t55.5 -77t45.5 -88t38 -103t23.5 -117t10.5 -136
-q3 -259 -108 -465t-312 -321t-456 -115q-185 0 -351 74t-283.5 198t-184 293t-60.5 353z" />
- <glyph glyph-name="uniF1D1" unicode="&#xf1d1;" horiz-adv-x="1792"
-d="M874 -102v-66q-208 6 -385 109.5t-283 275.5l58 34q29 -49 73 -99l65 57q148 -168 368 -212l-17 -86q65 -12 121 -13zM276 428l-83 -28q22 -60 49 -112l-57 -33q-98 180 -98 385t98 385l57 -33q-30 -56 -49 -112l82 -28q-35 -100 -35 -212q0 -109 36 -212zM1528 251
-l58 -34q-106 -172 -283 -275.5t-385 -109.5v66q56 1 121 13l-17 86q220 44 368 212l65 -57q44 50 73 99zM1377 805l-233 -80q14 -42 14 -85t-14 -85l232 -80q-31 -92 -98 -169l-185 162q-57 -67 -147 -85l48 -241q-52 -10 -98 -10t-98 10l48 241q-90 18 -147 85l-185 -162
-q-67 77 -98 169l232 80q-14 42 -14 85t14 85l-233 80q33 93 99 169l185 -162q59 68 147 86l-48 240q44 10 98 10t98 -10l-48 -240q88 -18 147 -86l185 162q66 -76 99 -169zM874 1448v-66q-65 -2 -121 -13l17 -86q-220 -42 -368 -211l-65 56q-38 -42 -73 -98l-57 33
-q106 172 282 275.5t385 109.5zM1705 640q0 -205 -98 -385l-57 33q27 52 49 112l-83 28q36 103 36 212q0 112 -35 212l82 28q-19 56 -49 112l57 33q98 -180 98 -385zM1585 1063l-57 -33q-35 56 -73 98l-65 -56q-148 169 -368 211l17 86q-56 11 -121 13v66q209 -6 385 -109.5
-t282 -275.5zM1748 640q0 173 -67.5 331t-181.5 272t-272 181.5t-331 67.5t-331 -67.5t-272 -181.5t-181.5 -272t-67.5 -331t67.5 -331t181.5 -272t272 -181.5t331 -67.5t331 67.5t272 181.5t181.5 272t67.5 331zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71
-t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="uniF1D2" unicode="&#xf1d2;"
-d="M582 228q0 -66 -93 -66q-107 0 -107 63q0 64 98 64q102 0 102 -61zM546 694q0 -85 -74 -85q-77 0 -77 84q0 90 77 90q36 0 55 -25.5t19 -63.5zM712 769v125q-78 -29 -135 -29q-50 29 -110 29q-86 0 -145 -57t-59 -143q0 -50 29.5 -102t73.5 -67v-3q-38 -17 -38 -85
-q0 -53 41 -77v-3q-113 -37 -113 -139q0 -45 20 -78.5t54 -51t72 -25.5t81 -8q224 0 224 188q0 67 -48 99t-126 46q-27 5 -51.5 20.5t-24.5 39.5q0 44 49 52q77 15 122 70t45 134q0 24 -10 52q37 9 49 13zM771 350h137q-2 27 -2 82v387q0 46 2 69h-137q3 -23 3 -71v-392
-q0 -50 -3 -75zM1280 366v121q-30 -21 -68 -21q-53 0 -53 82v225h52q9 0 26.5 -1t26.5 -1v117h-105q0 82 3 102h-140q4 -24 4 -55v-47h-60v-117q36 3 37 3q3 0 11 -0.5t12 -0.5v-2h-2v-217q0 -37 2.5 -64t11.5 -56.5t24.5 -48.5t43.5 -31t66 -12q64 0 108 24zM924 1072
-q0 36 -24 63.5t-60 27.5t-60.5 -27t-24.5 -64q0 -36 25 -62.5t60 -26.5t59.5 27t24.5 62zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_438" unicode="&#xf1d3;" horiz-adv-x="1792"
-d="M595 22q0 100 -165 100q-158 0 -158 -104q0 -101 172 -101q151 0 151 105zM536 777q0 61 -30 102t-89 41q-124 0 -124 -145q0 -135 124 -135q119 0 119 137zM805 1101v-202q-36 -12 -79 -22q16 -43 16 -84q0 -127 -73 -216.5t-197 -112.5q-40 -8 -59.5 -27t-19.5 -58
-q0 -31 22.5 -51.5t58 -32t78.5 -22t86 -25.5t78.5 -37.5t58 -64t22.5 -98.5q0 -304 -363 -304q-69 0 -130 12.5t-116 41t-87.5 82t-32.5 127.5q0 165 182 225v4q-67 41 -67 126q0 109 63 137v4q-72 24 -119.5 108.5t-47.5 165.5q0 139 95 231.5t235 92.5q96 0 178 -47
-q98 0 218 47zM1123 220h-222q4 45 4 134v609q0 94 -4 128h222q-4 -33 -4 -124v-613q0 -89 4 -134zM1724 442v-196q-71 -39 -174 -39q-62 0 -107 20t-70 50t-39.5 78t-18.5 92t-4 103v351h2v4q-7 0 -19 1t-18 1q-21 0 -59 -6v190h96v76q0 54 -6 89h227q-6 -41 -6 -165h171
-v-190q-15 0 -43.5 2t-42.5 2h-85v-365q0 -131 87 -131q61 0 109 33zM1148 1389q0 -58 -39 -101.5t-96 -43.5q-58 0 -98 43.5t-40 101.5q0 59 39.5 103t98.5 44q58 0 96.5 -44.5t38.5 -102.5z" />
- <glyph glyph-name="_439" unicode="&#xf1d4;"
-d="M809 532l266 499h-112l-157 -312q-24 -48 -44 -92l-42 92l-155 312h-120l263 -493v-324h101v318zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="uniF1D5" unicode="&#xf1d5;" horiz-adv-x="1280"
-d="M842 964q0 -80 -57 -136.5t-136 -56.5q-60 0 -111 35q-62 -67 -115 -146q-247 -371 -202 -859q1 -22 -12.5 -38.5t-34.5 -18.5h-5q-20 0 -35 13.5t-17 33.5q-14 126 -3.5 247.5t29.5 217t54 186t69 155.5t74 125q61 90 132 165q-16 35 -16 77q0 80 56.5 136.5t136.5 56.5
-t136.5 -56.5t56.5 -136.5zM1223 953q0 -158 -78 -292t-212.5 -212t-292.5 -78q-64 0 -131 14q-21 5 -32.5 23.5t-6.5 39.5q5 20 23 31.5t39 7.5q51 -13 108 -13q97 0 186 38t153 102t102 153t38 186t-38 186t-102 153t-153 102t-186 38t-186 -38t-153 -102t-102 -153
-t-38 -186q0 -114 52 -218q10 -20 3.5 -40t-25.5 -30t-39.5 -3t-30.5 26q-64 123 -64 265q0 119 46.5 227t124.5 186t186 124t226 46q158 0 292.5 -78t212.5 -212.5t78 -292.5z" />
- <glyph glyph-name="uniF1D6" unicode="&#xf1d6;" horiz-adv-x="1792"
-d="M270 730q-8 19 -8 52q0 20 11 49t24 45q-1 22 7.5 53t22.5 43q0 139 92.5 288.5t217.5 209.5q139 66 324 66q133 0 266 -55q49 -21 90 -48t71 -56t55 -68t42 -74t32.5 -84.5t25.5 -89.5t22 -98l1 -5q55 -83 55 -150q0 -14 -9 -40t-9 -38q0 -1 1.5 -3.5t3.5 -5t2 -3.5
-q77 -114 120.5 -214.5t43.5 -208.5q0 -43 -19.5 -100t-55.5 -57q-9 0 -19.5 7.5t-19 17.5t-19 26t-16 26.5t-13.5 26t-9 17.5q-1 1 -3 1l-5 -4q-59 -154 -132 -223q20 -20 61.5 -38.5t69 -41.5t35.5 -65q-2 -4 -4 -16t-7 -18q-64 -97 -302 -97q-53 0 -110.5 9t-98 20
-t-104.5 30q-15 5 -23 7q-14 4 -46 4.5t-40 1.5q-41 -45 -127.5 -65t-168.5 -20q-35 0 -69 1.5t-93 9t-101 20.5t-74.5 40t-32.5 64q0 40 10 59.5t41 48.5q11 2 40.5 13t49.5 12q4 0 14 2q2 2 2 4l-2 3q-48 11 -108 105.5t-73 156.5l-5 3q-4 0 -12 -20q-18 -41 -54.5 -74.5
-t-77.5 -37.5h-1q-4 0 -6 4.5t-5 5.5q-23 54 -23 100q0 275 252 466z" />
- <glyph glyph-name="uniF1D7" unicode="&#xf1d7;" horiz-adv-x="2048"
-d="M580 1075q0 41 -25 66t-66 25q-43 0 -76 -25.5t-33 -65.5q0 -39 33 -64.5t76 -25.5q41 0 66 24.5t25 65.5zM1323 568q0 28 -25.5 50t-65.5 22q-27 0 -49.5 -22.5t-22.5 -49.5q0 -28 22.5 -50.5t49.5 -22.5q40 0 65.5 22t25.5 51zM1087 1075q0 41 -24.5 66t-65.5 25
-q-43 0 -76 -25.5t-33 -65.5q0 -39 33 -64.5t76 -25.5q41 0 65.5 24.5t24.5 65.5zM1722 568q0 28 -26 50t-65 22q-27 0 -49.5 -22.5t-22.5 -49.5q0 -28 22.5 -50.5t49.5 -22.5q39 0 65 22t26 51zM1456 965q-31 4 -70 4q-169 0 -311 -77t-223.5 -208.5t-81.5 -287.5
-q0 -78 23 -152q-35 -3 -68 -3q-26 0 -50 1.5t-55 6.5t-44.5 7t-54.5 10.5t-50 10.5l-253 -127l72 218q-290 203 -290 490q0 169 97.5 311t264 223.5t363.5 81.5q176 0 332.5 -66t262 -182.5t136.5 -260.5zM2048 404q0 -117 -68.5 -223.5t-185.5 -193.5l55 -181l-199 109
-q-150 -37 -218 -37q-169 0 -311 70.5t-223.5 191.5t-81.5 264t81.5 264t223.5 191.5t311 70.5q161 0 303 -70.5t227.5 -192t85.5 -263.5z" />
- <glyph glyph-name="_443" unicode="&#xf1d8;" horiz-adv-x="1792"
-d="M1764 1525q33 -24 27 -64l-256 -1536q-5 -29 -32 -45q-14 -8 -31 -8q-11 0 -24 5l-453 185l-242 -295q-18 -23 -49 -23q-13 0 -22 4q-19 7 -30.5 23.5t-11.5 36.5v349l864 1059l-1069 -925l-395 162q-37 14 -40 55q-2 40 32 59l1664 960q15 9 32 9q20 0 36 -11z" />
- <glyph glyph-name="_444" unicode="&#xf1d9;" horiz-adv-x="1792"
-d="M1764 1525q33 -24 27 -64l-256 -1536q-5 -29 -32 -45q-14 -8 -31 -8q-11 0 -24 5l-527 215l-298 -327q-18 -21 -47 -21q-14 0 -23 4q-19 7 -30 23.5t-11 36.5v452l-472 193q-37 14 -40 55q-3 39 32 59l1664 960q35 21 68 -2zM1422 26l221 1323l-1434 -827l336 -137
-l863 639l-478 -797z" />
- <glyph glyph-name="_445" unicode="&#xf1da;"
-d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5
-t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298zM896 928v-448q0 -14 -9 -23
-t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23z" />
- <glyph glyph-name="_446" unicode="&#xf1db;"
-d="M768 1280q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103
-t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="_447" unicode="&#xf1dc;" horiz-adv-x="1792"
-d="M1682 -128q-44 0 -132.5 3.5t-133.5 3.5q-44 0 -132 -3.5t-132 -3.5q-24 0 -37 20.5t-13 45.5q0 31 17 46t39 17t51 7t45 15q33 21 33 140l-1 391q0 21 -1 31q-13 4 -50 4h-675q-38 0 -51 -4q-1 -10 -1 -31l-1 -371q0 -142 37 -164q16 -10 48 -13t57 -3.5t45 -15
-t20 -45.5q0 -26 -12.5 -48t-36.5 -22q-47 0 -139.5 3.5t-138.5 3.5q-43 0 -128 -3.5t-127 -3.5q-23 0 -35.5 21t-12.5 45q0 30 15.5 45t36 17.5t47.5 7.5t42 15q33 23 33 143l-1 57v813q0 3 0.5 26t0 36.5t-1.5 38.5t-3.5 42t-6.5 36.5t-11 31.5t-16 18q-15 10 -45 12t-53 2
-t-41 14t-18 45q0 26 12 48t36 22q46 0 138.5 -3.5t138.5 -3.5q42 0 126.5 3.5t126.5 3.5q25 0 37.5 -22t12.5 -48q0 -30 -17 -43.5t-38.5 -14.5t-49.5 -4t-43 -13q-35 -21 -35 -160l1 -320q0 -21 1 -32q13 -3 39 -3h699q25 0 38 3q1 11 1 32l1 320q0 139 -35 160
-q-18 11 -58.5 12.5t-66 13t-25.5 49.5q0 26 12.5 48t37.5 22q44 0 132 -3.5t132 -3.5q43 0 129 3.5t129 3.5q25 0 37.5 -22t12.5 -48q0 -30 -17.5 -44t-40 -14.5t-51.5 -3t-44 -12.5q-35 -23 -35 -161l1 -943q0 -119 34 -140q16 -10 46 -13.5t53.5 -4.5t41.5 -15.5t18 -44.5
-q0 -26 -12 -48t-36 -22z" />
- <glyph glyph-name="_448" unicode="&#xf1dd;" horiz-adv-x="1280"
-d="M1278 1347v-73q0 -29 -18.5 -61t-42.5 -32q-50 0 -54 -1q-26 -6 -32 -31q-3 -11 -3 -64v-1152q0 -25 -18 -43t-43 -18h-108q-25 0 -43 18t-18 43v1218h-143v-1218q0 -25 -17.5 -43t-43.5 -18h-108q-26 0 -43.5 18t-17.5 43v496q-147 12 -245 59q-126 58 -192 179
-q-64 117 -64 259q0 166 88 286q88 118 209 159q111 37 417 37h479q25 0 43 -18t18 -43z" />
- <glyph glyph-name="_449" unicode="&#xf1de;"
-d="M352 128v-128h-352v128h352zM704 256q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM864 640v-128h-864v128h864zM224 1152v-128h-224v128h224zM1536 128v-128h-736v128h736zM576 1280q26 0 45 -19t19 -45v-256
-q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM1216 768q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM1536 640v-128h-224v128h224zM1536 1152v-128h-864v128h864z" />
- <glyph glyph-name="uniF1E0" unicode="&#xf1e0;"
-d="M1216 512q133 0 226.5 -93.5t93.5 -226.5t-93.5 -226.5t-226.5 -93.5t-226.5 93.5t-93.5 226.5q0 12 2 34l-360 180q-92 -86 -218 -86q-133 0 -226.5 93.5t-93.5 226.5t93.5 226.5t226.5 93.5q126 0 218 -86l360 180q-2 22 -2 34q0 133 93.5 226.5t226.5 93.5
-t226.5 -93.5t93.5 -226.5t-93.5 -226.5t-226.5 -93.5q-126 0 -218 86l-360 -180q2 -22 2 -34t-2 -34l360 -180q92 86 218 86z" />
- <glyph glyph-name="_451" unicode="&#xf1e1;"
-d="M1280 341q0 88 -62.5 151t-150.5 63q-84 0 -145 -58l-241 120q2 16 2 23t-2 23l241 120q61 -58 145 -58q88 0 150.5 63t62.5 151t-62.5 150.5t-150.5 62.5t-151 -62.5t-63 -150.5q0 -7 2 -23l-241 -120q-62 57 -145 57q-88 0 -150.5 -62.5t-62.5 -150.5t62.5 -150.5
-t150.5 -62.5q83 0 145 57l241 -120q-2 -16 -2 -23q0 -88 63 -150.5t151 -62.5t150.5 62.5t62.5 150.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_452" unicode="&#xf1e2;" horiz-adv-x="1792"
-d="M571 947q-10 25 -34 35t-49 0q-108 -44 -191 -127t-127 -191q-10 -25 0 -49t35 -34q13 -5 24 -5q42 0 60 40q34 84 98.5 148.5t148.5 98.5q25 11 35 35t0 49zM1513 1303l46 -46l-244 -243l68 -68q19 -19 19 -45.5t-19 -45.5l-64 -64q89 -161 89 -343q0 -143 -55.5 -273.5
-t-150 -225t-225 -150t-273.5 -55.5t-273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5q182 0 343 -89l64 64q19 19 45.5 19t45.5 -19l68 -68zM1521 1359q-10 -10 -22 -10q-13 0 -23 10l-91 90q-9 10 -9 23t9 23q10 9 23 9t23 -9l90 -91
-q10 -9 10 -22.5t-10 -22.5zM1751 1129q-11 -9 -23 -9t-23 9l-90 91q-10 9 -10 22.5t10 22.5q9 10 22.5 10t22.5 -10l91 -90q9 -10 9 -23t-9 -23zM1792 1312q0 -14 -9 -23t-23 -9h-96q-14 0 -23 9t-9 23t9 23t23 9h96q14 0 23 -9t9 -23zM1600 1504v-96q0 -14 -9 -23t-23 -9
-t-23 9t-9 23v96q0 14 9 23t23 9t23 -9t9 -23zM1751 1449l-91 -90q-10 -10 -22 -10q-13 0 -23 10q-10 9 -10 22.5t10 22.5l90 91q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />
- <glyph glyph-name="_453" unicode="&#xf1e3;" horiz-adv-x="1792"
-d="M609 720l287 208l287 -208l-109 -336h-355zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM1515 186q149 203 149 454v3l-102 -89l-240 224l63 323
-l134 -12q-150 206 -389 282l53 -124l-287 -159l-287 159l53 124q-239 -76 -389 -282l135 12l62 -323l-240 -224l-102 89v-3q0 -251 149 -454l30 132l326 -40l139 -298l-116 -69q117 -39 240 -39t240 39l-116 69l139 298l326 40z" />
- <glyph glyph-name="_454" unicode="&#xf1e4;" horiz-adv-x="1792"
-d="M448 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM256 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM832 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23
-v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM66 768q-28 0 -47 19t-19 46v129h514v-129q0 -27 -19 -46t-46 -19h-383zM1216 224v-192q0 -14 -9 -23t-23 -9h-192
-q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1600 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23
-zM1408 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1016v-13h-514v10q0 104 -382 102q-382 -1 -382 -102v-10h-514v13q0 17 8.5 43t34 64t65.5 75.5t110.5 76t160 67.5t224 47.5t293.5 18.5t293 -18.5t224 -47.5
-t160.5 -67.5t110.5 -76t65.5 -75.5t34 -64t8.5 -43zM1792 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 962v-129q0 -27 -19 -46t-46 -19h-384q-27 0 -46 19t-19 46v129h514z" />
- <glyph glyph-name="_455" unicode="&#xf1e5;" horiz-adv-x="1792"
-d="M704 1216v-768q0 -26 -19 -45t-45 -19v-576q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v512l249 873q7 23 31 23h424zM1024 1216v-704h-256v704h256zM1792 320v-512q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v576q-26 0 -45 19t-19 45v768h424q24 0 31 -23z
-M736 1504v-224h-352v224q0 14 9 23t23 9h288q14 0 23 -9t9 -23zM1408 1504v-224h-352v224q0 14 9 23t23 9h288q14 0 23 -9t9 -23z" />
- <glyph glyph-name="_456" unicode="&#xf1e6;" horiz-adv-x="1792"
-d="M1755 1083q37 -38 37 -90.5t-37 -90.5l-401 -400l150 -150l-160 -160q-163 -163 -389.5 -186.5t-411.5 100.5l-362 -362h-181v181l362 362q-124 185 -100.5 411.5t186.5 389.5l160 160l150 -150l400 401q38 37 91 37t90 -37t37 -90.5t-37 -90.5l-400 -401l234 -234
-l401 400q38 37 91 37t90 -37z" />
- <glyph glyph-name="_457" unicode="&#xf1e7;" horiz-adv-x="1792"
-d="M873 796q0 -83 -63.5 -142.5t-152.5 -59.5t-152.5 59.5t-63.5 142.5q0 84 63.5 143t152.5 59t152.5 -59t63.5 -143zM1375 796q0 -83 -63 -142.5t-153 -59.5q-89 0 -152.5 59.5t-63.5 142.5q0 84 63.5 143t152.5 59q90 0 153 -59t63 -143zM1600 616v667q0 87 -32 123.5
-t-111 36.5h-1112q-83 0 -112.5 -34t-29.5 -126v-673q43 -23 88.5 -40t81 -28t81 -18.5t71 -11t70 -4t58.5 -0.5t56.5 2t44.5 2q68 1 95 -27q6 -6 10 -9q26 -25 61 -51q7 91 118 87q5 0 36.5 -1.5t43 -2t45.5 -1t53 1t54.5 4.5t61 8.5t62 13.5t67 19.5t67.5 27t72 34.5z
-M1763 621q-121 -149 -372 -252q84 -285 -23 -465q-66 -113 -183 -148q-104 -32 -182 15q-86 51 -82 164l-1 326v1q-8 2 -24.5 6t-23.5 5l-1 -338q4 -114 -83 -164q-79 -47 -183 -15q-117 36 -182 150q-105 180 -22 463q-251 103 -372 252q-25 37 -4 63t60 -1q4 -2 11.5 -7
-t10.5 -8v694q0 72 47 123t114 51h1257q67 0 114 -51t47 -123v-694l21 15q39 27 60 1t-4 -63z" />
- <glyph glyph-name="_458" unicode="&#xf1e8;" horiz-adv-x="1792"
-d="M896 1102v-434h-145v434h145zM1294 1102v-434h-145v434h145zM1294 342l253 254v795h-1194v-1049h326v-217l217 217h398zM1692 1536v-1013l-434 -434h-326l-217 -217h-217v217h-398v1158l109 289h1483z" />
- <glyph glyph-name="_459" unicode="&#xf1e9;"
-d="M773 217v-127q-1 -292 -6 -305q-12 -32 -51 -40q-54 -9 -181.5 38t-162.5 89q-13 15 -17 36q-1 12 4 26q4 10 34 47t181 216q1 0 60 70q15 19 39.5 24.5t49.5 -3.5q24 -10 37.5 -29t12.5 -42zM624 468q-3 -55 -52 -70l-120 -39q-275 -88 -292 -88q-35 2 -54 36
-q-12 25 -17 75q-8 76 1 166.5t30 124.5t56 32q13 0 202 -77q71 -29 115 -47l84 -34q23 -9 35.5 -30.5t11.5 -48.5zM1450 171q-7 -54 -91.5 -161t-135.5 -127q-37 -14 -63 7q-14 10 -184 287l-47 77q-14 21 -11.5 46t19.5 46q35 43 83 26q1 -1 119 -40q203 -66 242 -79.5
-t47 -20.5q28 -22 22 -61zM778 803q5 -102 -54 -122q-58 -17 -114 71l-378 598q-8 35 19 62q41 43 207.5 89.5t224.5 31.5q40 -10 49 -45q3 -18 22 -305.5t24 -379.5zM1440 695q3 -39 -26 -59q-15 -10 -329 -86q-67 -15 -91 -23l1 2q-23 -6 -46 4t-37 32q-30 47 0 87
-q1 1 75 102q125 171 150 204t34 39q28 19 65 2q48 -23 123 -133.5t81 -167.5v-3z" />
- <glyph glyph-name="_460" unicode="&#xf1ea;" horiz-adv-x="2048"
-d="M1024 1024h-384v-384h384v384zM1152 384v-128h-640v128h640zM1152 1152v-640h-640v640h640zM1792 384v-128h-512v128h512zM1792 640v-128h-512v128h512zM1792 896v-128h-512v128h512zM1792 1152v-128h-512v128h512zM256 192v960h-128v-960q0 -26 19 -45t45 -19t45 19
-t19 45zM1920 192v1088h-1536v-1088q0 -33 -11 -64h1483q26 0 45 19t19 45zM2048 1408v-1216q0 -80 -56 -136t-136 -56h-1664q-80 0 -136 56t-56 136v1088h256v128h1792z" />
- <glyph glyph-name="_461" unicode="&#xf1eb;" horiz-adv-x="2048"
-d="M1024 13q-20 0 -93 73.5t-73 93.5q0 32 62.5 54t103.5 22t103.5 -22t62.5 -54q0 -20 -73 -93.5t-93 -73.5zM1294 284q-2 0 -40 25t-101.5 50t-128.5 25t-128.5 -25t-101 -50t-40.5 -25q-18 0 -93.5 75t-75.5 93q0 13 10 23q78 77 196 121t233 44t233 -44t196 -121
-q10 -10 10 -23q0 -18 -75.5 -93t-93.5 -75zM1567 556q-11 0 -23 8q-136 105 -252 154.5t-268 49.5q-85 0 -170.5 -22t-149 -53t-113.5 -62t-79 -53t-31 -22q-17 0 -92 75t-75 93q0 12 10 22q132 132 320 205t380 73t380 -73t320 -205q10 -10 10 -22q0 -18 -75 -93t-92 -75z
-M1838 827q-11 0 -22 9q-179 157 -371.5 236.5t-420.5 79.5t-420.5 -79.5t-371.5 -236.5q-11 -9 -22 -9q-17 0 -92.5 75t-75.5 93q0 13 10 23q187 186 445 288t527 102t527 -102t445 -288q10 -10 10 -23q0 -18 -75.5 -93t-92.5 -75z" />
- <glyph glyph-name="_462" unicode="&#xf1ec;" horiz-adv-x="1792"
-d="M384 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5
-t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1152 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5
-t37.5 90.5zM384 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1152 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 768q0 53 -37.5 90.5t-90.5 37.5
-t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1536 0v384q0 52 -38 90t-90 38t-90 -38t-38 -90v-384q0 -52 38 -90t90 -38t90 38t38 90zM1152 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5z
-M1536 1088v256q0 26 -19 45t-45 19h-1280q-26 0 -45 -19t-19 -45v-256q0 -26 19 -45t45 -19h1280q26 0 45 19t19 45zM1536 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1408v-1536q0 -52 -38 -90t-90 -38
-h-1408q-52 0 -90 38t-38 90v1536q0 52 38 90t90 38h1408q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_463" unicode="&#xf1ed;"
-d="M1519 890q18 -84 -4 -204q-87 -444 -565 -444h-44q-25 0 -44 -16.5t-24 -42.5l-4 -19l-55 -346l-2 -15q-5 -26 -24.5 -42.5t-44.5 -16.5h-251q-21 0 -33 15t-9 36q9 56 26.5 168t26.5 168t27 167.5t27 167.5q5 37 43 37h131q133 -2 236 21q175 39 287 144q102 95 155 246
-q24 70 35 133q1 6 2.5 7.5t3.5 1t6 -3.5q79 -59 98 -162zM1347 1172q0 -107 -46 -236q-80 -233 -302 -315q-113 -40 -252 -42q0 -1 -90 -1l-90 1q-100 0 -118 -96q-2 -8 -85 -530q-1 -10 -12 -10h-295q-22 0 -36.5 16.5t-11.5 38.5l232 1471q5 29 27.5 48t51.5 19h598
-q34 0 97.5 -13t111.5 -32q107 -41 163.5 -123t56.5 -196z" />
- <glyph glyph-name="_464" unicode="&#xf1ee;" horiz-adv-x="1792"
-d="M441 864q33 0 52 -26q266 -364 362 -774h-446q-127 441 -367 749q-12 16 -3 33.5t29 17.5h373zM1000 507q-49 -199 -125 -393q-79 310 -256 594q40 221 44 449q211 -340 337 -650zM1099 1216q235 -324 384.5 -698.5t184.5 -773.5h-451q-41 665 -553 1472h435zM1792 640
-q0 -424 -101 -812q-67 560 -359 1083q-25 301 -106 584q-4 16 5.5 28.5t25.5 12.5h359q21 0 38.5 -13t22.5 -33q115 -409 115 -850z" />
- <glyph glyph-name="uniF1F0" unicode="&#xf1f0;" horiz-adv-x="2304"
-d="M1975 546h-138q14 37 66 179l3 9q4 10 10 26t9 26l12 -55zM531 611l-58 295q-11 54 -75 54h-268l-2 -13q311 -79 403 -336zM710 960l-162 -438l-17 89q-26 70 -85 129.5t-131 88.5l135 -510h175l261 641h-176zM849 318h166l104 642h-166zM1617 944q-69 27 -149 27
-q-123 0 -201 -59t-79 -153q-1 -102 145 -174q48 -23 67 -41t19 -39q0 -30 -30 -46t-69 -16q-86 0 -156 33l-22 11l-23 -144q74 -34 185 -34q130 -1 208.5 59t80.5 160q0 106 -140 174q-49 25 -71 42t-22 38q0 22 24.5 38.5t70.5 16.5q70 1 124 -24l15 -8zM2042 960h-128
-q-65 0 -87 -54l-246 -588h174l35 96h212q5 -22 20 -96h154zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_466" unicode="&#xf1f1;" horiz-adv-x="2304"
-d="M1119 1195q-128 85 -281 85q-103 0 -197.5 -40.5t-162.5 -108.5t-108.5 -162t-40.5 -197q0 -104 40.5 -198t108.5 -162t162 -108.5t198 -40.5q153 0 281 85q-131 107 -178 265.5t0.5 316.5t177.5 265zM1152 1171q-126 -99 -172 -249.5t-0.5 -300.5t172.5 -249
-q127 99 172.5 249t-0.5 300.5t-172 249.5zM1185 1195q130 -107 177.5 -265.5t0.5 -317t-178 -264.5q128 -85 281 -85q104 0 198 40.5t162 108.5t108.5 162t40.5 198q0 103 -40.5 197t-108.5 162t-162.5 108.5t-197.5 40.5q-153 0 -281 -85zM1926 473h7v3h-17v-3h7v-17h3v17z
-M1955 456h4v20h-5l-6 -13l-6 13h-5v-20h3v15l6 -13h4l5 13v-15zM1947 16v-2h-2h-3v3h3h2v-1zM1947 7h3l-4 5h2l1 1q1 1 1 3t-1 3l-1 1h-3h-6v-13h3v5h1zM685 75q0 19 11 31t30 12q18 0 29 -12.5t11 -30.5q0 -19 -11 -31t-29 -12q-19 0 -30 12t-11 31zM1158 119q30 0 35 -32
-h-70q5 32 35 32zM1514 75q0 19 11 31t29 12t29.5 -12.5t11.5 -30.5q0 -19 -11 -31t-30 -12q-18 0 -29 12t-11 31zM1786 75q0 18 11.5 30.5t29.5 12.5t29.5 -12.5t11.5 -30.5q0 -19 -11.5 -31t-29.5 -12t-29.5 12.5t-11.5 30.5zM1944 3q-2 0 -4 1q-1 0 -3 2t-2 3q-1 2 -1 4
-q0 3 1 4q0 2 2 4l1 1q2 0 2 1q2 1 4 1q3 0 4 -1l4 -2l2 -4v-1q1 -2 1 -3l-1 -1v-3t-1 -1l-1 -2q-2 -2 -4 -2q-1 -1 -4 -1zM599 7h30v85q0 24 -14.5 38.5t-39.5 15.5q-32 0 -47 -24q-14 24 -45 24q-24 0 -39 -20v16h-30v-135h30v75q0 36 33 36q30 0 30 -36v-75h29v75
-q0 36 33 36q30 0 30 -36v-75zM765 7h29v68v67h-29v-16q-17 20 -43 20q-29 0 -48 -20t-19 -51t19 -51t48 -20q28 0 43 20v-17zM943 48q0 34 -47 40l-14 2q-23 4 -23 14q0 15 25 15q23 0 43 -11l12 24q-22 14 -55 14q-26 0 -41 -12t-15 -32q0 -33 47 -39l13 -2q24 -4 24 -14
-q0 -17 -31 -17q-25 0 -45 14l-13 -23q25 -17 58 -17q29 0 45.5 12t16.5 32zM1073 14l-8 25q-13 -7 -26 -7q-19 0 -19 22v61h48v27h-48v41h-30v-41h-28v-27h28v-61q0 -50 47 -50q21 0 36 10zM1159 146q-29 0 -48 -20t-19 -51q0 -32 19.5 -51.5t49.5 -19.5q33 0 55 19l-14 22
-q-18 -15 -39 -15q-34 0 -41 33h101v12q0 32 -18 51.5t-46 19.5zM1318 146q-23 0 -35 -20v16h-30v-135h30v76q0 35 29 35q10 0 18 -4l9 28q-9 4 -21 4zM1348 75q0 -31 19.5 -51t52.5 -20q29 0 48 16l-14 24q-18 -13 -35 -12q-18 0 -29.5 12t-11.5 31t11.5 31t29.5 12
-q19 0 35 -12l14 24q-20 16 -48 16q-33 0 -52.5 -20t-19.5 -51zM1593 7h30v68v67h-30v-16q-15 20 -42 20q-29 0 -48.5 -20t-19.5 -51t19.5 -51t48.5 -20q28 0 42 20v-17zM1726 146q-23 0 -35 -20v16h-29v-135h29v76q0 35 29 35q10 0 18 -4l9 28q-8 4 -21 4zM1866 7h29v68v122
-h-29v-71q-15 20 -43 20t-47.5 -20.5t-19.5 -50.5t19.5 -50.5t47.5 -20.5q29 0 43 20v-17zM1944 27l-2 -1h-3q-2 -1 -4 -3q-3 -1 -3 -4q-1 -2 -1 -6q0 -3 1 -5q0 -2 3 -4q2 -2 4 -3t5 -1q4 0 6 1q0 1 2 2l2 1q1 1 3 4q1 2 1 5q0 4 -1 6q-1 1 -3 4q0 1 -2 2l-2 1q-1 0 -3 0.5
-t-3 0.5zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_467" unicode="&#xf1f2;" horiz-adv-x="2304"
-d="M313 759q0 -51 -36 -84q-29 -26 -89 -26h-17v220h17q61 0 89 -27q36 -31 36 -83zM2089 824q0 -52 -64 -52h-19v101h20q63 0 63 -49zM380 759q0 74 -50 120.5t-129 46.5h-95v-333h95q74 0 119 38q60 51 60 128zM410 593h65v333h-65v-333zM730 694q0 40 -20.5 62t-75.5 42
-q-29 10 -39.5 19t-10.5 23q0 16 13.5 26.5t34.5 10.5q29 0 53 -27l34 44q-41 37 -98 37q-44 0 -74 -27.5t-30 -67.5q0 -35 18 -55.5t64 -36.5q37 -13 45 -19q19 -12 19 -34q0 -20 -14 -33.5t-36 -13.5q-48 0 -71 44l-42 -40q44 -64 115 -64q51 0 83 30.5t32 79.5zM1008 604
-v77q-37 -37 -78 -37q-49 0 -80.5 32.5t-31.5 82.5q0 48 31.5 81.5t77.5 33.5q43 0 81 -38v77q-40 20 -80 20q-74 0 -125.5 -50.5t-51.5 -123.5t51 -123.5t125 -50.5q42 0 81 19zM2240 0v527q-65 -40 -144.5 -84t-237.5 -117t-329.5 -137.5t-417.5 -134.5t-504 -118h1569
-q26 0 45 19t19 45zM1389 757q0 75 -53 128t-128 53t-128 -53t-53 -128t53 -128t128 -53t128 53t53 128zM1541 584l144 342h-71l-90 -224l-89 224h-71l142 -342h35zM1714 593h184v56h-119v90h115v56h-115v74h119v57h-184v-333zM2105 593h80l-105 140q76 16 76 94q0 47 -31 73
-t-87 26h-97v-333h65v133h9zM2304 1274v-1268q0 -56 -38.5 -95t-93.5 -39h-2040q-55 0 -93.5 39t-38.5 95v1268q0 56 38.5 95t93.5 39h2040q55 0 93.5 -39t38.5 -95z" />
- <glyph glyph-name="f1f3" unicode="&#xf1f3;" horiz-adv-x="2304"
-d="M119 854h89l-45 108zM740 328l74 79l-70 79h-163v-49h142v-55h-142v-54h159zM898 406l99 -110v217zM1186 453q0 33 -40 33h-84v-69h83q41 0 41 36zM1475 457q0 29 -42 29h-82v-61h81q43 0 43 32zM1197 923q0 29 -42 29h-82v-60h81q43 0 43 31zM1656 854h89l-44 108z
-M699 1009v-271h-66v212l-94 -212h-57l-94 212v-212h-132l-25 60h-135l-25 -60h-70l116 271h96l110 -257v257h106l85 -184l77 184h108zM1255 453q0 -20 -5.5 -35t-14 -25t-22.5 -16.5t-26 -10t-31.5 -4.5t-31.5 -1t-32.5 0.5t-29.5 0.5v-91h-126l-80 90l-83 -90h-256v271h260
-l80 -89l82 89h207q109 0 109 -89zM964 794v-56h-217v271h217v-57h-152v-49h148v-55h-148v-54h152zM2304 235v-229q0 -55 -38.5 -94.5t-93.5 -39.5h-2040q-55 0 -93.5 39.5t-38.5 94.5v678h111l25 61h55l25 -61h218v46l19 -46h113l20 47v-47h541v99l10 1q10 0 10 -14v-86h279
-v23q23 -12 55 -18t52.5 -6.5t63 0.5t51.5 1l25 61h56l25 -61h227v58l34 -58h182v378h-180v-44l-25 44h-185v-44l-23 44h-249q-69 0 -109 -22v22h-172v-22q-24 22 -73 22h-628l-43 -97l-43 97h-198v-44l-22 44h-169l-78 -179v391q0 55 38.5 94.5t93.5 39.5h2040
-q55 0 93.5 -39.5t38.5 -94.5v-678h-120q-51 0 -81 -22v22h-177q-55 0 -78 -22v22h-316v-22q-31 22 -87 22h-209v-22q-23 22 -91 22h-234l-54 -58l-50 58h-349v-378h343l55 59l52 -59h211v89h21q59 0 90 13v-102h174v99h8q8 0 10 -2t2 -10v-87h529q57 0 88 24v-24h168
-q60 0 95 17zM1546 469q0 -23 -12 -43t-34 -29q25 -9 34 -26t9 -46v-54h-65v45q0 33 -12 43.5t-46 10.5h-69v-99h-65v271h154q48 0 77 -15t29 -58zM1269 936q0 -24 -12.5 -44t-33.5 -29q26 -9 34.5 -25.5t8.5 -46.5v-53h-65q0 9 0.5 26.5t0 25t-3 18.5t-8.5 16t-17.5 8.5
-t-29.5 3.5h-70v-98h-64v271l153 -1q49 0 78 -14.5t29 -57.5zM1798 327v-56h-216v271h216v-56h-151v-49h148v-55h-148v-54zM1372 1009v-271h-66v271h66zM2065 357q0 -86 -102 -86h-126v58h126q34 0 34 25q0 16 -17 21t-41.5 5t-49.5 3.5t-42 22.5t-17 55q0 39 26 60t66 21
-h130v-57h-119q-36 0 -36 -25q0 -16 17.5 -20.5t42 -4t49 -2.5t42 -21.5t17.5 -54.5zM2304 407v-101q-24 -35 -88 -35h-125v58h125q33 0 33 25q0 13 -12.5 19t-31 5.5t-40 2t-40 8t-31 24t-12.5 48.5q0 39 26.5 60t66.5 21h129v-57h-118q-36 0 -36 -25q0 -20 29 -22t68.5 -5
-t56.5 -26zM2139 1008v-270h-92l-122 203v-203h-132l-26 60h-134l-25 -60h-75q-129 0 -129 133q0 138 133 138h63v-59q-7 0 -28 1t-28.5 0.5t-23 -2t-21.5 -6.5t-14.5 -13.5t-11.5 -23t-3 -33.5q0 -38 13.5 -58t49.5 -20h29l92 213h97l109 -256v256h99l114 -188v188h66z" />
- <glyph glyph-name="_469" unicode="&#xf1f4;" horiz-adv-x="2304"
-d="M745 630q0 -37 -25.5 -61.5t-62.5 -24.5q-29 0 -46.5 16t-17.5 44q0 37 25 62.5t62 25.5q28 0 46.5 -16.5t18.5 -45.5zM1530 779q0 -42 -22 -57t-66 -15l-32 -1l17 107q2 11 13 11h18q22 0 35 -2t25 -12.5t12 -30.5zM1881 630q0 -36 -25.5 -61t-61.5 -25q-29 0 -47 16
-t-18 44q0 37 25 62.5t62 25.5q28 0 46.5 -16.5t18.5 -45.5zM513 801q0 59 -38.5 85.5t-100.5 26.5h-160q-19 0 -21 -19l-65 -408q-1 -6 3 -11t10 -5h76q20 0 22 19l18 110q1 8 7 13t15 6.5t17 1.5t19 -1t14 -1q86 0 135 48.5t49 134.5zM822 489l41 261q1 6 -3 11t-10 5h-76
-q-14 0 -17 -33q-27 40 -95 40q-72 0 -122.5 -54t-50.5 -127q0 -59 34.5 -94t92.5 -35q28 0 58 12t48 32q-4 -12 -4 -21q0 -16 13 -16h69q19 0 22 19zM1269 752q0 5 -4 9.5t-9 4.5h-77q-11 0 -18 -10l-106 -156l-44 150q-5 16 -22 16h-75q-5 0 -9 -4.5t-4 -9.5q0 -2 19.5 -59
-t42 -123t23.5 -70q-82 -112 -82 -120q0 -13 13 -13h77q11 0 18 10l255 368q2 2 2 7zM1649 801q0 59 -38.5 85.5t-100.5 26.5h-159q-20 0 -22 -19l-65 -408q-1 -6 3 -11t10 -5h82q12 0 16 13l18 116q1 8 7 13t15 6.5t17 1.5t19 -1t14 -1q86 0 135 48.5t49 134.5zM1958 489
-l41 261q1 6 -3 11t-10 5h-76q-14 0 -17 -33q-26 40 -95 40q-72 0 -122.5 -54t-50.5 -127q0 -59 34.5 -94t92.5 -35q29 0 59 12t47 32q0 -1 -2 -9t-2 -12q0 -16 13 -16h69q19 0 22 19zM2176 898v1q0 14 -13 14h-74q-11 0 -13 -11l-65 -416l-1 -2q0 -5 4 -9.5t10 -4.5h66
-q19 0 21 19zM392 764q-5 -35 -26 -46t-60 -11l-33 -1l17 107q2 11 13 11h19q40 0 58 -11.5t12 -48.5zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_470" unicode="&#xf1f5;" horiz-adv-x="2304"
-d="M1597 633q0 -69 -21 -106q-19 -35 -52 -35q-23 0 -41 9v224q29 30 57 30q57 0 57 -122zM2035 669h-110q6 98 56 98q51 0 54 -98zM476 534q0 59 -33 91.5t-101 57.5q-36 13 -52 24t-16 25q0 26 38 26q58 0 124 -33l18 112q-67 32 -149 32q-77 0 -123 -38q-48 -39 -48 -109
-q0 -58 32.5 -90.5t99.5 -56.5q39 -14 54.5 -25.5t15.5 -27.5q0 -31 -48 -31q-29 0 -70 12.5t-72 30.5l-18 -113q72 -41 168 -41q81 0 129 37q51 41 51 117zM771 749l19 111h-96v135l-129 -21l-18 -114l-46 -8l-17 -103h62v-219q0 -84 44 -120q38 -30 111 -30q32 0 79 11v118
-q-32 -7 -44 -7q-42 0 -42 50v197h77zM1087 724v139q-15 3 -28 3q-32 0 -55.5 -16t-33.5 -46l-10 56h-131v-471h150v306q26 31 82 31q16 0 26 -2zM1124 389h150v471h-150v-471zM1746 638q0 122 -45 179q-40 52 -111 52q-64 0 -117 -56l-8 47h-132v-645l150 25v151
-q36 -11 68 -11q83 0 134 56q61 65 61 202zM1278 986q0 33 -23 56t-56 23t-56 -23t-23 -56t23 -56.5t56 -23.5t56 23.5t23 56.5zM2176 629q0 113 -48 176q-50 64 -144 64q-96 0 -151.5 -66t-55.5 -180q0 -128 63 -188q55 -55 161 -55q101 0 160 40l-16 103q-57 -31 -128 -31
-q-43 0 -63 19q-23 19 -28 66h248q2 14 2 52zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_471" unicode="&#xf1f6;" horiz-adv-x="2048"
-d="M1558 684q61 -356 298 -556q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-180.5 74.5t-75.5 180.5zM1024 -176q16 0 16 16t-16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5zM2026 1424q8 -10 7.5 -23.5t-10.5 -22.5
-l-1872 -1622q-10 -8 -23.5 -7t-21.5 11l-84 96q-8 10 -7.5 23.5t10.5 21.5l186 161q-19 32 -19 66q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q124 -18 219 -82.5t148 -157.5
-l418 363q10 8 23.5 7t21.5 -11z" />
- <glyph glyph-name="_472" unicode="&#xf1f7;" horiz-adv-x="2048"
-d="M1040 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM503 315l877 760q-42 88 -132.5 146.5t-223.5 58.5q-93 0 -169.5 -31.5t-121.5 -80.5t-69 -103t-24 -105q0 -384 -137 -645zM1856 128
-q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-180.5 74.5t-75.5 180.5l149 129h757q-166 187 -227 459l111 97q61 -356 298 -556zM1942 1520l84 -96q8 -10 7.5 -23.5t-10.5 -22.5l-1872 -1622q-10 -8 -23.5 -7t-21.5 11l-84 96q-8 10 -7.5 23.5t10.5 21.5l186 161
-q-19 32 -19 66q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q124 -18 219 -82.5t148 -157.5l418 363q10 8 23.5 7t21.5 -11z" />
- <glyph glyph-name="_473" unicode="&#xf1f8;" horiz-adv-x="1408"
-d="M512 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM768 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1024 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704
-q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167
-q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
- <glyph glyph-name="_474" unicode="&#xf1f9;"
-d="M1150 462v-109q0 -50 -36.5 -89t-94 -60.5t-118 -32.5t-117.5 -11q-205 0 -342.5 139t-137.5 346q0 203 136 339t339 136q34 0 75.5 -4.5t93 -18t92.5 -34t69 -56.5t28 -81v-109q0 -16 -16 -16h-118q-16 0 -16 16v70q0 43 -65.5 67.5t-137.5 24.5q-140 0 -228.5 -91.5
-t-88.5 -237.5q0 -151 91.5 -249.5t233.5 -98.5q68 0 138 24t70 66v70q0 7 4.5 11.5t10.5 4.5h119q6 0 11 -4.5t5 -11.5zM768 1280q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5
-t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="_475" unicode="&#xf1fa;"
-d="M972 761q0 108 -53.5 169t-147.5 61q-63 0 -124 -30.5t-110 -84.5t-79.5 -137t-30.5 -180q0 -112 53.5 -173t150.5 -61q96 0 176 66.5t122.5 166t42.5 203.5zM1536 640q0 -111 -37 -197t-98.5 -135t-131.5 -74.5t-145 -27.5q-6 0 -15.5 -0.5t-16.5 -0.5q-95 0 -142 53
-q-28 33 -33 83q-52 -66 -131.5 -110t-173.5 -44q-161 0 -249.5 95.5t-88.5 269.5q0 157 66 290t179 210.5t246 77.5q87 0 155 -35.5t106 -99.5l2 19l11 56q1 6 5.5 12t9.5 6h118q5 0 13 -11q5 -5 3 -16l-120 -614q-5 -24 -5 -48q0 -39 12.5 -52t44.5 -13q28 1 57 5.5t73 24
-t77 50t57 89.5t24 137q0 292 -174 466t-466 174q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51q228 0 405 144q11 9 24 8t21 -12l41 -49q8 -12 7 -24q-2 -13 -12 -22q-102 -83 -227.5 -128t-258.5 -45q-156 0 -298 61
-t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q344 0 556 -212t212 -556z" />
- <glyph glyph-name="_476" unicode="&#xf1fb;" horiz-adv-x="1792"
-d="M1698 1442q94 -94 94 -226.5t-94 -225.5l-225 -223l104 -104q10 -10 10 -23t-10 -23l-210 -210q-10 -10 -23 -10t-23 10l-105 105l-603 -603q-37 -37 -90 -37h-203l-256 -128l-64 64l128 256v203q0 53 37 90l603 603l-105 105q-10 10 -10 23t10 23l210 210q10 10 23 10
-t23 -10l104 -104l223 225q93 94 225.5 94t226.5 -94zM512 64l576 576l-192 192l-576 -576v-192h192z" />
- <glyph glyph-name="f1fc" unicode="&#xf1fc;" horiz-adv-x="1792"
-d="M1615 1536q70 0 122.5 -46.5t52.5 -116.5q0 -63 -45 -151q-332 -629 -465 -752q-97 -91 -218 -91q-126 0 -216.5 92.5t-90.5 219.5q0 128 92 212l638 579q59 54 130 54zM706 502q39 -76 106.5 -130t150.5 -76l1 -71q4 -213 -129.5 -347t-348.5 -134q-123 0 -218 46.5
-t-152.5 127.5t-86.5 183t-29 220q7 -5 41 -30t62 -44.5t59 -36.5t46 -17q41 0 55 37q25 66 57.5 112.5t69.5 76t88 47.5t103 25.5t125 10.5z" />
- <glyph glyph-name="_478" unicode="&#xf1fd;" horiz-adv-x="1792"
-d="M1792 128v-384h-1792v384q45 0 85 14t59 27.5t47 37.5q30 27 51.5 38t56.5 11q24 0 44 -7t31 -15t33 -27q29 -25 47 -38t58 -27t86 -14q45 0 85 14.5t58 27t48 37.5q21 19 32.5 27t31 15t43.5 7q35 0 56.5 -11t51.5 -38q28 -24 47 -37.5t59 -27.5t85 -14t85 14t59 27.5
-t47 37.5q30 27 51.5 38t56.5 11q34 0 55.5 -11t51.5 -38q28 -24 47 -37.5t59 -27.5t85 -14zM1792 448v-192q-24 0 -44 7t-31 15t-33 27q-29 25 -47 38t-58 27t-85 14q-46 0 -86 -14t-58 -27t-47 -38q-22 -19 -33 -27t-31 -15t-44 -7q-35 0 -56.5 11t-51.5 38q-29 25 -47 38
-t-58 27t-86 14q-45 0 -85 -14.5t-58 -27t-48 -37.5q-21 -19 -32.5 -27t-31 -15t-43.5 -7q-35 0 -56.5 11t-51.5 38q-28 24 -47 37.5t-59 27.5t-85 14q-46 0 -86 -14t-58 -27t-47 -38q-30 -27 -51.5 -38t-56.5 -11v192q0 80 56 136t136 56h64v448h256v-448h256v448h256v-448
-h256v448h256v-448h64q80 0 136 -56t56 -136zM512 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150zM1024 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5
-q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150zM1536 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150z" />
- <glyph glyph-name="_479" unicode="&#xf1fe;" horiz-adv-x="2048"
-d="M2048 0v-128h-2048v1536h128v-1408h1920zM1664 1024l256 -896h-1664v576l448 576l576 -576z" />
- <glyph glyph-name="_480" unicode="&#xf200;" horiz-adv-x="1792"
-d="M768 646l546 -546q-106 -108 -247.5 -168t-298.5 -60q-209 0 -385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103v-762zM955 640h773q0 -157 -60 -298.5t-168 -247.5zM1664 768h-768v768q209 0 385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="_481" unicode="&#xf201;" horiz-adv-x="2048"
-d="M2048 0v-128h-2048v1536h128v-1408h1920zM1920 1248v-435q0 -21 -19.5 -29.5t-35.5 7.5l-121 121l-633 -633q-10 -10 -23 -10t-23 10l-233 233l-416 -416l-192 192l585 585q10 10 23 10t23 -10l233 -233l464 464l-121 121q-16 16 -7.5 35.5t29.5 19.5h435q14 0 23 -9
-t9 -23z" />
- <glyph glyph-name="_482" unicode="&#xf202;" horiz-adv-x="1792"
-d="M1292 832q0 -6 10 -41q10 -29 25 -49.5t41 -34t44 -20t55 -16.5q325 -91 325 -332q0 -146 -105.5 -242.5t-254.5 -96.5q-59 0 -111.5 18.5t-91.5 45.5t-77 74.5t-63 87.5t-53.5 103.5t-43.5 103t-39.5 106.5t-35.5 95q-32 81 -61.5 133.5t-73.5 96.5t-104 64t-142 20
-q-96 0 -183 -55.5t-138 -144.5t-51 -185q0 -160 106.5 -279.5t263.5 -119.5q177 0 258 95q56 63 83 116l84 -152q-15 -34 -44 -70l1 -1q-131 -152 -388 -152q-147 0 -269.5 79t-190.5 207.5t-68 274.5q0 105 43.5 206t116 176.5t172 121.5t204.5 46q87 0 159 -19t123.5 -50
-t95 -80t72.5 -99t58.5 -117t50.5 -124.5t50 -130.5t55 -127q96 -200 233 -200q81 0 138.5 48.5t57.5 128.5q0 42 -19 72t-50.5 46t-72.5 31.5t-84.5 27t-87.5 34t-81 52t-65 82t-39 122.5q-3 16 -3 33q0 110 87.5 192t198.5 78q78 -3 120.5 -14.5t90.5 -53.5h-1
-q12 -11 23 -24.5t26 -36t19 -27.5l-129 -99q-26 49 -54 70v1q-23 21 -97 21q-49 0 -84 -33t-35 -83z" />
- <glyph glyph-name="_483" unicode="&#xf203;"
-d="M1432 484q0 173 -234 239q-35 10 -53 16.5t-38 25t-29 46.5q0 2 -2 8.5t-3 12t-1 7.5q0 36 24.5 59.5t60.5 23.5q54 0 71 -15h-1q20 -15 39 -51l93 71q-39 54 -49 64q-33 29 -67.5 39t-85.5 10q-80 0 -142 -57.5t-62 -137.5q0 -7 2 -23q16 -96 64.5 -140t148.5 -73
-q29 -8 49 -15.5t45 -21.5t38.5 -34.5t13.5 -46.5v-5q1 -58 -40.5 -93t-100.5 -35q-97 0 -167 144q-23 47 -51.5 121.5t-48 125.5t-54 110.5t-74 95.5t-103.5 60.5t-147 24.5q-101 0 -192 -56t-144 -148t-50 -192v-1q4 -108 50.5 -199t133.5 -147.5t196 -56.5q186 0 279 110
-q20 27 31 51l-60 109q-42 -80 -99 -116t-146 -36q-115 0 -191 87t-76 204q0 105 82 189t186 84q112 0 170 -53.5t104 -172.5q8 -21 25.5 -68.5t28.5 -76.5t31.5 -74.5t38.5 -74t45.5 -62.5t55.5 -53.5t66 -33t80 -13.5q107 0 183 69.5t76 174.5zM1536 1120v-960
-q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_484" unicode="&#xf204;" horiz-adv-x="2048"
-d="M1152 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1920 640q0 104 -40.5 198.5
-t-109.5 163.5t-163.5 109.5t-198.5 40.5h-386q119 -90 188.5 -224t69.5 -288t-69.5 -288t-188.5 -224h386q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM2048 640q0 -130 -51 -248.5t-136.5 -204t-204 -136.5t-248.5 -51h-768q-130 0 -248.5 51t-204 136.5
-t-136.5 204t-51 248.5t51 248.5t136.5 204t204 136.5t248.5 51h768q130 0 248.5 -51t204 -136.5t136.5 -204t51 -248.5z" />
- <glyph glyph-name="_485" unicode="&#xf205;" horiz-adv-x="2048"
-d="M0 640q0 130 51 248.5t136.5 204t204 136.5t248.5 51h768q130 0 248.5 -51t204 -136.5t136.5 -204t51 -248.5t-51 -248.5t-136.5 -204t-204 -136.5t-248.5 -51h-768q-130 0 -248.5 51t-204 136.5t-136.5 204t-51 248.5zM1408 128q104 0 198.5 40.5t163.5 109.5
-t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5z" />
- <glyph glyph-name="_486" unicode="&#xf206;" horiz-adv-x="2304"
-d="M762 384h-314q-40 0 -57.5 35t6.5 67l188 251q-65 31 -137 31q-132 0 -226 -94t-94 -226t94 -226t226 -94q115 0 203 72.5t111 183.5zM576 512h186q-18 85 -75 148zM1056 512l288 384h-480l-99 -132q105 -103 126 -252h165zM2176 448q0 132 -94 226t-226 94
-q-60 0 -121 -24l174 -260q15 -23 10 -49t-27 -40q-15 -11 -36 -11q-35 0 -53 29l-174 260q-93 -95 -93 -225q0 -132 94 -226t226 -94t226 94t94 226zM2304 448q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 97 39.5 183.5t109.5 149.5l-65 98l-353 -469
-q-18 -26 -51 -26h-197q-23 -164 -149 -274t-294 -110q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q114 0 215 -55l137 183h-224q-26 0 -45 19t-19 45t19 45t45 19h384v-128h435l-85 128h-222q-26 0 -45 19t-19 45t19 45t45 19h256q33 0 53 -28l267 -400
-q91 44 192 44q185 0 316.5 -131.5t131.5 -316.5z" />
- <glyph glyph-name="_487" unicode="&#xf207;"
-d="M384 320q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1408 320q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1362 716l-72 384q-5 23 -22.5 37.5t-40.5 14.5
-h-918q-23 0 -40.5 -14.5t-22.5 -37.5l-72 -384q-5 -30 14 -53t49 -23h1062q30 0 49 23t14 53zM1136 1328q0 20 -14 34t-34 14h-640q-20 0 -34 -14t-14 -34t14 -34t34 -14h640q20 0 34 14t14 34zM1536 603v-603h-128v-128q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5
-t-37.5 90.5v128h-768v-128q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5v128h-128v603q0 112 25 223l103 454q9 78 97.5 137t230 89t312.5 30t312.5 -30t230 -89t97.5 -137l105 -454q23 -102 23 -223z" />
- <glyph glyph-name="_488" unicode="&#xf208;" horiz-adv-x="2048"
-d="M1463 704q0 -35 -25 -60.5t-61 -25.5h-702q-36 0 -61 25.5t-25 60.5t25 60.5t61 25.5h702q36 0 61 -25.5t25 -60.5zM1677 704q0 86 -23 170h-982q-36 0 -61 25t-25 60q0 36 25 61t61 25h908q-88 143 -235 227t-320 84q-177 0 -327.5 -87.5t-238 -237.5t-87.5 -327
-q0 -86 23 -170h982q36 0 61 -25t25 -60q0 -36 -25 -61t-61 -25h-908q88 -143 235.5 -227t320.5 -84q132 0 253 51.5t208 139t139 208t52 253.5zM2048 959q0 -35 -25 -60t-61 -25h-131q17 -85 17 -170q0 -167 -65.5 -319.5t-175.5 -263t-262.5 -176t-319.5 -65.5
-q-246 0 -448.5 133t-301.5 350h-189q-36 0 -61 25t-25 61q0 35 25 60t61 25h132q-17 85 -17 170q0 167 65.5 319.5t175.5 263t262.5 176t320.5 65.5q245 0 447.5 -133t301.5 -350h188q36 0 61 -25t25 -61z" />
- <glyph glyph-name="_489" unicode="&#xf209;" horiz-adv-x="1280"
-d="M953 1158l-114 -328l117 -21q165 451 165 518q0 56 -38 56q-57 0 -130 -225zM654 471l33 -88q37 42 71 67l-33 5.5t-38.5 7t-32.5 8.5zM362 1367q0 -98 159 -521q17 10 49 10q15 0 75 -5l-121 351q-75 220 -123 220q-19 0 -29 -17.5t-10 -37.5zM283 608q0 -36 51.5 -119
-t117.5 -153t100 -70q14 0 25.5 13t11.5 27q0 24 -32 102q-13 32 -32 72t-47.5 89t-61.5 81t-62 32q-20 0 -45.5 -27t-25.5 -47zM125 273q0 -41 25 -104q59 -145 183.5 -227t281.5 -82q227 0 382 170q152 169 152 427q0 43 -1 67t-11.5 62t-30.5 56q-56 49 -211.5 75.5
-t-270.5 26.5q-37 0 -49 -11q-12 -5 -12 -35q0 -34 21.5 -60t55.5 -40t77.5 -23.5t87.5 -11.5t85 -4t70 0h23q24 0 40 -19q15 -19 19 -55q-28 -28 -96 -54q-61 -22 -93 -46q-64 -46 -108.5 -114t-44.5 -137q0 -31 18.5 -88.5t18.5 -87.5l-3 -12q-4 -12 -4 -14
-q-137 10 -146 216q-8 -2 -41 -2q2 -7 2 -21q0 -53 -40.5 -89.5t-94.5 -36.5q-82 0 -166.5 78t-84.5 159q0 34 33 67q52 -64 60 -76q77 -104 133 -104q12 0 26.5 8.5t14.5 20.5q0 34 -87.5 145t-116.5 111q-43 0 -70 -44.5t-27 -90.5zM11 264q0 101 42.5 163t136.5 88
-q-28 74 -28 104q0 62 61 123t122 61q29 0 70 -15q-163 462 -163 567q0 80 41 130.5t119 50.5q131 0 325 -581q6 -17 8 -23q6 16 29 79.5t43.5 118.5t54 127.5t64.5 123t70.5 86.5t76.5 36q71 0 112 -49t41 -122q0 -108 -159 -550q61 -15 100.5 -46t58.5 -78t26 -93.5
-t7 -110.5q0 -150 -47 -280t-132 -225t-211 -150t-278 -55q-111 0 -223 42q-149 57 -258 191.5t-109 286.5z" />
- <glyph glyph-name="_490" unicode="&#xf20a;" horiz-adv-x="2048"
-d="M785 528h207q-14 -158 -98.5 -248.5t-214.5 -90.5q-162 0 -254.5 116t-92.5 316q0 194 93 311.5t233 117.5q148 0 232 -87t97 -247h-203q-5 64 -35.5 99t-81.5 35q-57 0 -88.5 -60.5t-31.5 -177.5q0 -48 5 -84t18 -69.5t40 -51.5t66 -18q95 0 109 139zM1497 528h206
-q-14 -158 -98 -248.5t-214 -90.5q-162 0 -254.5 116t-92.5 316q0 194 93 311.5t233 117.5q148 0 232 -87t97 -247h-204q-4 64 -35 99t-81 35q-57 0 -88.5 -60.5t-31.5 -177.5q0 -48 5 -84t18 -69.5t39.5 -51.5t65.5 -18q49 0 76.5 38t33.5 101zM1856 647q0 207 -15.5 307
-t-60.5 161q-6 8 -13.5 14t-21.5 15t-16 11q-86 63 -697 63q-625 0 -710 -63q-5 -4 -17.5 -11.5t-21 -14t-14.5 -14.5q-45 -60 -60 -159.5t-15 -308.5q0 -208 15 -307.5t60 -160.5q6 -8 15 -15t20.5 -14t17.5 -12q44 -33 239.5 -49t470.5 -16q610 0 697 65q5 4 17 11t20.5 14
-t13.5 16q46 60 61 159t15 309zM2048 1408v-1536h-2048v1536h2048z" />
- <glyph glyph-name="_491" unicode="&#xf20b;"
-d="M992 912v-496q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v496q0 112 -80 192t-192 80h-272v-1152q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v1344q0 14 9 23t23 9h464q135 0 249 -66.5t180.5 -180.5t66.5 -249zM1376 1376v-880q0 -135 -66.5 -249t-180.5 -180.5
-t-249 -66.5h-464q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h160q14 0 23 -9t9 -23v-768h272q112 0 192 80t80 192v880q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" />
- <glyph glyph-name="_492" unicode="&#xf20c;"
-d="M1311 694v-114q0 -24 -13.5 -38t-37.5 -14h-202q-24 0 -38 14t-14 38v114q0 24 14 38t38 14h202q24 0 37.5 -14t13.5 -38zM821 464v250q0 53 -32.5 85.5t-85.5 32.5h-133q-68 0 -96 -52q-28 52 -96 52h-130q-53 0 -85.5 -32.5t-32.5 -85.5v-250q0 -22 21 -22h55
-q22 0 22 22v230q0 24 13.5 38t38.5 14h94q24 0 38 -14t14 -38v-230q0 -22 21 -22h54q22 0 22 22v230q0 24 14 38t38 14h97q24 0 37.5 -14t13.5 -38v-230q0 -22 22 -22h55q21 0 21 22zM1410 560v154q0 53 -33 85.5t-86 32.5h-264q-53 0 -86 -32.5t-33 -85.5v-410
-q0 -21 22 -21h55q21 0 21 21v180q31 -42 94 -42h191q53 0 86 32.5t33 85.5zM1536 1176v-1072q0 -96 -68 -164t-164 -68h-1072q-96 0 -164 68t-68 164v1072q0 96 68 164t164 68h1072q96 0 164 -68t68 -164z" />
- <glyph glyph-name="_493" unicode="&#xf20d;"
-d="M915 450h-294l147 551zM1001 128h311l-324 1024h-440l-324 -1024h311l383 314zM1536 1120v-960q0 -118 -85 -203t-203 -85h-960q-118 0 -203 85t-85 203v960q0 118 85 203t203 85h960q118 0 203 -85t85 -203z" />
- <glyph glyph-name="_494" unicode="&#xf20e;" horiz-adv-x="2048"
-d="M2048 641q0 -21 -13 -36.5t-33 -19.5l-205 -356q3 -9 3 -18q0 -20 -12.5 -35.5t-32.5 -19.5l-193 -337q3 -8 3 -16q0 -23 -16.5 -40t-40.5 -17q-25 0 -41 18h-400q-17 -20 -43 -20t-43 20h-399q-17 -20 -43 -20q-23 0 -40 16.5t-17 40.5q0 8 4 20l-193 335
-q-20 4 -32.5 19.5t-12.5 35.5q0 9 3 18l-206 356q-20 5 -32.5 20.5t-12.5 35.5q0 21 13.5 36.5t33.5 19.5l199 344q0 1 -0.5 3t-0.5 3q0 36 34 51l209 363q-4 10 -4 18q0 24 17 40.5t40 16.5q26 0 44 -21h396q16 21 43 21t43 -21h398q18 21 44 21q23 0 40 -16.5t17 -40.5
-q0 -6 -4 -18l207 -358q23 -1 39 -17.5t16 -38.5q0 -13 -7 -27l187 -324q19 -4 31.5 -19.5t12.5 -35.5zM1063 -158h389l-342 354h-143l-342 -354h360q18 16 39 16t39 -16zM112 654q1 -4 1 -13q0 -10 -2 -15l208 -360l15 -6l188 199v347l-187 194q-13 -8 -29 -10zM986 1438
-h-388l190 -200l554 200h-280q-16 -16 -38 -16t-38 16zM1689 226q1 6 5 11l-64 68l-17 -79h76zM1583 226l22 105l-252 266l-296 -307l63 -64h463zM1495 -142l16 28l65 310h-427l333 -343q8 4 13 5zM578 -158h5l342 354h-373v-335l4 -6q14 -5 22 -13zM552 226h402l64 66
-l-309 321l-157 -166v-221zM359 226h163v189l-168 -177q4 -8 5 -12zM358 1051q0 -1 0.5 -2t0.5 -2q0 -16 -8 -29l171 -177v269zM552 1121v-311l153 -157l297 314l-223 236zM556 1425l-4 -8v-264l205 74l-191 201q-6 -2 -10 -3zM1447 1438h-16l-621 -224l213 -225zM1023 946
-l-297 -315l311 -319l296 307zM688 634l-136 141v-284zM1038 270l-42 -44h85zM1374 618l238 -251l132 624l-3 5l-1 1zM1718 1018q-8 13 -8 29v2l-216 376q-5 1 -13 5l-437 -463l310 -327zM522 1142v223l-163 -282zM522 196h-163l163 -283v283zM1607 196l-48 -227l130 227h-82
-zM1729 266l207 361q-2 10 -2 14q0 1 3 16l-171 296l-129 -612l77 -82q5 3 15 7z" />
- <glyph glyph-name="f210" unicode="&#xf210;"
-d="M0 856q0 131 91.5 226.5t222.5 95.5h742l352 358v-1470q0 -132 -91.5 -227t-222.5 -95h-780q-131 0 -222.5 95t-91.5 227v790zM1232 102l-176 180v425q0 46 -32 79t-78 33h-484q-46 0 -78 -33t-32 -79v-492q0 -46 32.5 -79.5t77.5 -33.5h770z" />
- <glyph glyph-name="_496" unicode="&#xf211;"
-d="M934 1386q-317 -121 -556 -362.5t-358 -560.5q-20 89 -20 176q0 208 102.5 384.5t278.5 279t384 102.5q82 0 169 -19zM1203 1267q93 -65 164 -155q-389 -113 -674.5 -400.5t-396.5 -676.5q-93 72 -155 162q112 386 395 671t667 399zM470 -67q115 356 379.5 622t619.5 384
-q40 -92 54 -195q-292 -120 -516 -345t-343 -518q-103 14 -194 52zM1536 -125q-193 50 -367 115q-135 -84 -290 -107q109 205 274 370.5t369 275.5q-21 -152 -101 -284q65 -175 115 -370z" />
- <glyph glyph-name="f212" unicode="&#xf212;" horiz-adv-x="2048"
-d="M1893 1144l155 -1272q-131 0 -257 57q-200 91 -393 91q-226 0 -374 -148q-148 148 -374 148q-193 0 -393 -91q-128 -57 -252 -57h-5l155 1272q224 127 482 127q233 0 387 -106q154 106 387 106q258 0 482 -127zM1398 157q129 0 232 -28.5t260 -93.5l-124 1021
-q-171 78 -368 78q-224 0 -374 -141q-150 141 -374 141q-197 0 -368 -78l-124 -1021q105 43 165.5 65t148.5 39.5t178 17.5q202 0 374 -108q172 108 374 108zM1438 191l-55 907q-211 -4 -359 -155q-152 155 -374 155q-176 0 -336 -66l-114 -941q124 51 228.5 76t221.5 25
-q209 0 374 -102q172 107 374 102z" />
- <glyph glyph-name="_498" unicode="&#xf213;" horiz-adv-x="2048"
-d="M1500 165v733q0 21 -15 36t-35 15h-93q-20 0 -35 -15t-15 -36v-733q0 -20 15 -35t35 -15h93q20 0 35 15t15 35zM1216 165v531q0 20 -15 35t-35 15h-101q-20 0 -35 -15t-15 -35v-531q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM924 165v429q0 20 -15 35t-35 15h-101
-q-20 0 -35 -15t-15 -35v-429q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM632 165v362q0 20 -15 35t-35 15h-101q-20 0 -35 -15t-15 -35v-362q0 -20 15 -35t35 -15h101q20 0 35 15t15 35zM2048 311q0 -166 -118 -284t-284 -118h-1244q-166 0 -284 118t-118 284
-q0 116 63 214.5t168 148.5q-10 34 -10 73q0 113 80.5 193.5t193.5 80.5q102 0 180 -67q45 183 194 300t338 117q149 0 275 -73.5t199.5 -199.5t73.5 -275q0 -66 -14 -122q135 -33 221 -142.5t86 -247.5z" />
- <glyph glyph-name="_499" unicode="&#xf214;"
-d="M0 1536h1536v-1392l-776 -338l-760 338v1392zM1436 209v926h-1336v-926l661 -294zM1436 1235v201h-1336v-201h1336zM181 937v-115h-37v115h37zM181 789v-115h-37v115h37zM181 641v-115h-37v115h37zM181 493v-115h-37v115h37zM181 345v-115h-37v115h37zM207 202l15 34
-l105 -47l-15 -33zM343 142l15 34l105 -46l-15 -34zM478 82l15 34l105 -46l-15 -34zM614 23l15 33l104 -46l-15 -34zM797 10l105 46l15 -33l-105 -47zM932 70l105 46l15 -34l-105 -46zM1068 130l105 46l15 -34l-105 -46zM1203 189l105 47l15 -34l-105 -46zM259 1389v-36h-114
-v36h114zM421 1389v-36h-115v36h115zM583 1389v-36h-115v36h115zM744 1389v-36h-114v36h114zM906 1389v-36h-114v36h114zM1068 1389v-36h-115v36h115zM1230 1389v-36h-115v36h115zM1391 1389v-36h-114v36h114zM181 1049v-79h-37v115h115v-36h-78zM421 1085v-36h-115v36h115z
-M583 1085v-36h-115v36h115zM744 1085v-36h-114v36h114zM906 1085v-36h-114v36h114zM1068 1085v-36h-115v36h115zM1230 1085v-36h-115v36h115zM1355 970v79h-78v36h115v-115h-37zM1355 822v115h37v-115h-37zM1355 674v115h37v-115h-37zM1355 526v115h37v-115h-37zM1355 378
-v115h37v-115h-37zM1355 230v115h37v-115h-37zM760 265q-129 0 -221 91.5t-92 221.5q0 129 92 221t221 92q130 0 221.5 -92t91.5 -221q0 -130 -91.5 -221.5t-221.5 -91.5zM595 646q0 -36 19.5 -56.5t49.5 -25t64 -7t64 -2t49.5 -9t19.5 -30.5q0 -49 -112 -49q-97 0 -123 51
-h-3l-31 -63q67 -42 162 -42q29 0 56.5 5t55.5 16t45.5 33t17.5 53q0 46 -27.5 69.5t-67.5 27t-79.5 3t-67 5t-27.5 25.5q0 21 20.5 33t40.5 15t41 3q34 0 70.5 -11t51.5 -34h3l30 58q-3 1 -21 8.5t-22.5 9t-19.5 7t-22 7t-20 4.5t-24 4t-23 1q-29 0 -56.5 -5t-54 -16.5
-t-43 -34t-16.5 -53.5z" />
- <glyph glyph-name="_500" unicode="&#xf215;" horiz-adv-x="2048"
-d="M863 504q0 112 -79.5 191.5t-191.5 79.5t-191 -79.5t-79 -191.5t79 -191t191 -79t191.5 79t79.5 191zM1726 505q0 112 -79 191t-191 79t-191.5 -79t-79.5 -191q0 -113 79.5 -192t191.5 -79t191 79.5t79 191.5zM2048 1314v-1348q0 -44 -31.5 -75.5t-76.5 -31.5h-1832
-q-45 0 -76.5 31.5t-31.5 75.5v1348q0 44 31.5 75.5t76.5 31.5h431q44 0 76 -31.5t32 -75.5v-161h754v161q0 44 32 75.5t76 31.5h431q45 0 76.5 -31.5t31.5 -75.5z" />
- <glyph glyph-name="_501" unicode="&#xf216;" horiz-adv-x="2048"
-d="M1430 953zM1690 749q148 0 253 -98.5t105 -244.5q0 -157 -109 -261.5t-267 -104.5q-85 0 -162 27.5t-138 73.5t-118 106t-109 126t-103.5 132.5t-108.5 126.5t-117 106t-136 73.5t-159 27.5q-154 0 -251.5 -91.5t-97.5 -244.5q0 -157 104 -250t263 -93q100 0 208 37.5
-t193 98.5q5 4 21 18.5t30 24t22 9.5q14 0 24.5 -10.5t10.5 -24.5q0 -24 -60 -77q-101 -88 -234.5 -142t-260.5 -54q-133 0 -245.5 58t-180 165t-67.5 241q0 205 141.5 341t347.5 136q120 0 226.5 -43.5t185.5 -113t151.5 -153t139 -167.5t133.5 -153.5t149.5 -113
-t172.5 -43.5q102 0 168.5 61.5t66.5 162.5q0 95 -64.5 159t-159.5 64q-30 0 -81.5 -18.5t-68.5 -18.5q-20 0 -35.5 15t-15.5 35q0 18 8.5 57t8.5 59q0 159 -107.5 263t-266.5 104q-58 0 -111.5 -18.5t-84 -40.5t-55.5 -40.5t-33 -18.5q-15 0 -25.5 10.5t-10.5 25.5
-q0 19 25 46q59 67 147 103.5t182 36.5q191 0 318 -125.5t127 -315.5q0 -37 -4 -66q57 15 115 15z" />
- <glyph glyph-name="_502" unicode="&#xf217;" horiz-adv-x="1664"
-d="M1216 832q0 26 -19 45t-45 19h-128v128q0 26 -19 45t-45 19t-45 -19t-19 -45v-128h-128q-26 0 -45 -19t-19 -45t19 -45t45 -19h128v-128q0 -26 19 -45t45 -19t45 19t19 45v128h128q26 0 45 19t19 45zM640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5
-t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920
-q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />
- <glyph glyph-name="_503" unicode="&#xf218;" horiz-adv-x="1664"
-d="M1280 832q0 26 -19 45t-45 19t-45 -19l-147 -146v293q0 26 -19 45t-45 19t-45 -19t-19 -45v-293l-147 146q-19 19 -45 19t-45 -19t-19 -45t19 -45l256 -256q19 -19 45 -19t45 19l256 256q19 19 19 45zM640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5
-t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920
-q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />
- <glyph glyph-name="_504" unicode="&#xf219;" horiz-adv-x="2048"
-d="M212 768l623 -665l-300 665h-323zM1024 -4l349 772h-698zM538 896l204 384h-262l-288 -384h346zM1213 103l623 665h-323zM683 896h682l-204 384h-274zM1510 896h346l-288 384h-262zM1651 1382l384 -512q14 -18 13 -41.5t-17 -40.5l-960 -1024q-18 -20 -47 -20t-47 20
-l-960 1024q-16 17 -17 40.5t13 41.5l384 512q18 26 51 26h1152q33 0 51 -26z" />
- <glyph glyph-name="_505" unicode="&#xf21a;" horiz-adv-x="2048"
-d="M1811 -19q19 19 45 19t45 -19l128 -128l-90 -90l-83 83l-83 -83q-18 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83
-q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-128 128l90 90l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83q19 19 45 19t45 -19l83 -83l83 83
-q19 19 45 19t45 -19l83 -83zM237 19q-19 -19 -45 -19t-45 19l-128 128l90 90l83 -82l83 82q19 19 45 19t45 -19l83 -82l64 64v293l-210 314q-17 26 -7 56.5t40 40.5l177 58v299h128v128h256v128h256v-128h256v-128h128v-299l177 -58q30 -10 40 -40.5t-7 -56.5l-210 -314
-v-293l19 18q19 19 45 19t45 -19l83 -82l83 82q19 19 45 19t45 -19l128 -128l-90 -90l-83 83l-83 -83q-18 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83l-83 -83
-q-19 -19 -45 -19t-45 19l-83 83l-83 -83q-19 -19 -45 -19t-45 19l-83 83zM640 1152v-128l384 128l384 -128v128h-128v128h-512v-128h-128z" />
- <glyph glyph-name="_506" unicode="&#xf21b;"
-d="M576 0l96 448l-96 128l-128 64zM832 0l128 640l-128 -64l-96 -128zM992 1010q-2 4 -4 6q-10 8 -96 8q-70 0 -167 -19q-7 -2 -21 -2t-21 2q-97 19 -167 19q-86 0 -96 -8q-2 -2 -4 -6q2 -18 4 -27q2 -3 7.5 -6.5t7.5 -10.5q2 -4 7.5 -20.5t7 -20.5t7.5 -17t8.5 -17t9 -14
-t12 -13.5t14 -9.5t17.5 -8t20.5 -4t24.5 -2q36 0 59 12.5t32.5 30t14.5 34.5t11.5 29.5t17.5 12.5h12q11 0 17.5 -12.5t11.5 -29.5t14.5 -34.5t32.5 -30t59 -12.5q13 0 24.5 2t20.5 4t17.5 8t14 9.5t12 13.5t9 14t8.5 17t7.5 17t7 20.5t7.5 20.5q2 7 7.5 10.5t7.5 6.5
-q2 9 4 27zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 61 4.5 118t19 125.5t37.5 123.5t63.5 103.5t93.5 74.5l-90 220h214q-22 64 -22 128q0 12 2 32q-194 40 -194 96q0 57 210 99q17 62 51.5 134t70.5 114q32 37 76 37q30 0 84 -31t84 -31t84 31
-t84 31q44 0 76 -37q36 -42 70.5 -114t51.5 -134q210 -42 210 -99q0 -56 -194 -96q7 -81 -20 -160h214l-82 -225q63 -33 107.5 -96.5t65.5 -143.5t29 -151.5t8 -148.5z" />
- <glyph glyph-name="_507" unicode="&#xf21c;" horiz-adv-x="2304"
-d="M2301 500q12 -103 -22 -198.5t-99 -163.5t-158.5 -106t-196.5 -31q-161 11 -279.5 125t-134.5 274q-12 111 27.5 210.5t118.5 170.5l-71 107q-96 -80 -151 -194t-55 -244q0 -27 -18.5 -46.5t-45.5 -19.5h-256h-69q-23 -164 -149 -274t-294 -110q-185 0 -316.5 131.5
-t-131.5 316.5t131.5 316.5t316.5 131.5q76 0 152 -27l24 45q-123 110 -304 110h-64q-26 0 -45 19t-19 45t19 45t45 19h128q78 0 145 -13.5t116.5 -38.5t71.5 -39.5t51 -36.5h512h115l-85 128h-222q-30 0 -49 22.5t-14 52.5q4 23 23 38t43 15h253q33 0 53 -28l70 -105
-l114 114q19 19 46 19h101q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-179l115 -172q131 63 275 36q143 -26 244 -134.5t118 -253.5zM448 128q115 0 203 72.5t111 183.5h-314q-35 0 -55 31q-18 32 -1 63l147 277q-47 13 -91 13q-132 0 -226 -94t-94 -226t94 -226
-t226 -94zM1856 128q132 0 226 94t94 226t-94 226t-226 94q-60 0 -121 -24l174 -260q15 -23 10 -49t-27 -40q-15 -11 -36 -11q-35 0 -53 29l-174 260q-93 -95 -93 -225q0 -132 94 -226t226 -94z" />
- <glyph glyph-name="_508" unicode="&#xf21d;"
-d="M1408 0q0 -63 -61.5 -113.5t-164 -81t-225 -46t-253.5 -15.5t-253.5 15.5t-225 46t-164 81t-61.5 113.5q0 49 33 88.5t91 66.5t118 44.5t131 29.5q26 5 48 -10.5t26 -41.5q5 -26 -10.5 -48t-41.5 -26q-58 -10 -106 -23.5t-76.5 -25.5t-48.5 -23.5t-27.5 -19.5t-8.5 -12
-q3 -11 27 -26.5t73 -33t114 -32.5t160.5 -25t201.5 -10t201.5 10t160.5 25t114 33t73 33.5t27 27.5q-1 4 -8.5 11t-27.5 19t-48.5 23.5t-76.5 25t-106 23.5q-26 4 -41.5 26t-10.5 48q4 26 26 41.5t48 10.5q71 -12 131 -29.5t118 -44.5t91 -66.5t33 -88.5zM1024 896v-384
-q0 -26 -19 -45t-45 -19h-64v-384q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v384h-64q-26 0 -45 19t-19 45v384q0 53 37.5 90.5t90.5 37.5h384q53 0 90.5 -37.5t37.5 -90.5zM928 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5
-t158.5 -65.5t65.5 -158.5z" />
- <glyph glyph-name="_509" unicode="&#xf21e;" horiz-adv-x="1792"
-d="M1280 512h305q-5 -6 -10 -10.5t-9 -7.5l-3 -4l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-5 2 -21 20h369q22 0 39.5 13.5t22.5 34.5l70 281l190 -667q6 -20 23 -33t39 -13q21 0 38 13t23 33l146 485l56 -112q18 -35 57 -35zM1792 940q0 -145 -103 -300h-369l-111 221
-q-8 17 -25.5 27t-36.5 8q-45 -5 -56 -46l-129 -430l-196 686q-6 20 -23.5 33t-39.5 13t-39 -13.5t-22 -34.5l-116 -464h-423q-103 155 -103 300q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124
-t127 -344z" />
- <glyph glyph-name="venus" unicode="&#xf221;" horiz-adv-x="1280"
-d="M1152 960q0 -221 -147.5 -384.5t-364.5 -187.5v-260h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v260q-150 16 -271.5 103t-186 224t-52.5 292
-q11 134 80.5 249t182 188t245.5 88q170 19 319 -54t236 -212t87 -306zM128 960q0 -185 131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5z" />
- <glyph glyph-name="_511" unicode="&#xf222;"
-d="M1472 1408q26 0 45 -19t19 -45v-416q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v262l-382 -383q126 -156 126 -359q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5
-q203 0 359 -126l382 382h-261q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h416zM576 0q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="_512" unicode="&#xf223;" horiz-adv-x="1280"
-d="M830 1220q145 -72 233.5 -210.5t88.5 -305.5q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-217 24 -364.5 187.5
-t-147.5 384.5q0 167 88.5 305.5t233.5 210.5q-165 96 -228 273q-6 16 3.5 29.5t26.5 13.5h69q21 0 29 -20q44 -106 140 -171t214 -65t214 65t140 171q8 20 37 20h61q17 0 26.5 -13.5t3.5 -29.5q-63 -177 -228 -273zM576 256q185 0 316.5 131.5t131.5 316.5t-131.5 316.5
-t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="_513" unicode="&#xf224;"
-d="M1024 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q126 -158 126 -359q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64
-q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-149 16 -270.5 103t-186.5 223.5t-53 291.5q16 204 160 353.5t347 172.5q118 14 228 -19t198 -103l255 254h-134q-14 0 -23 9t-9 23v64zM576 256q185 0 316.5 131.5t131.5 316.5t-131.5 316.5
-t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="_514" unicode="&#xf225;" horiz-adv-x="1792"
-d="M1280 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q126 -158 126 -359q0 -221 -147.5 -384.5t-364.5 -187.5v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64
-q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-217 24 -364.5 187.5t-147.5 384.5q0 201 126 359l-52 53l-101 -111q-9 -10 -22 -10.5t-23 7.5l-48 44q-10 8 -10.5 21.5t8.5 23.5l105 115l-111 112v-134q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9
-t-9 23v288q0 26 19 45t45 19h288q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-133l106 -107l86 94q9 10 22 10.5t23 -7.5l48 -44q10 -8 10.5 -21.5t-8.5 -23.5l-90 -99l57 -56q158 126 359 126t359 -126l255 254h-134q-14 0 -23 9t-9 23v64zM832 256q185 0 316.5 131.5
-t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="_515" unicode="&#xf226;" horiz-adv-x="1792"
-d="M1790 1007q12 -155 -52.5 -292t-186 -224t-271.5 -103v-260h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-512v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23
-t23 9h224v260q-150 16 -271.5 103t-186 224t-52.5 292q17 206 164.5 356.5t352.5 169.5q206 21 377 -94q171 115 377 94q205 -19 352.5 -169.5t164.5 -356.5zM896 647q128 131 128 313t-128 313q-128 -131 -128 -313t128 -313zM576 512q115 0 218 57q-154 165 -154 391
-q0 224 154 391q-103 57 -218 57q-185 0 -316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5zM1152 128v260q-137 15 -256 94q-119 -79 -256 -94v-260h512zM1216 512q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5q-115 0 -218 -57q154 -167 154 -391
-q0 -226 -154 -391q103 -57 218 -57z" />
- <glyph glyph-name="_516" unicode="&#xf227;" horiz-adv-x="1920"
-d="M1536 1120q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q76 -95 107.5 -214t9.5 -247q-31 -182 -166 -312t-318 -156q-210 -29 -384.5 80t-241.5 300q-117 6 -221 57.5t-177.5 133t-113.5 192.5t-32 230
-q9 135 78 252t182 191.5t248 89.5q118 14 227.5 -19t198.5 -103l255 254h-134q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q59 -74 93 -169q182 -9 328 -124l255 254h-134q-14 0 -23 9
-t-9 23v64zM1024 704q0 20 -4 58q-162 -25 -271 -150t-109 -292q0 -20 4 -58q162 25 271 150t109 292zM128 704q0 -168 111 -294t276 -149q-3 29 -3 59q0 210 135 369.5t338 196.5q-53 120 -163.5 193t-245.5 73q-185 0 -316.5 -131.5t-131.5 -316.5zM1088 -128
-q185 0 316.5 131.5t131.5 316.5q0 168 -111 294t-276 149q3 -28 3 -59q0 -210 -135 -369.5t-338 -196.5q53 -120 163.5 -193t245.5 -73z" />
- <glyph glyph-name="_517" unicode="&#xf228;" horiz-adv-x="2048"
-d="M1664 1504q0 14 9 23t23 9h288q26 0 45 -19t19 -45v-288q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v134l-254 -255q76 -95 107.5 -214t9.5 -247q-32 -180 -164.5 -310t-313.5 -157q-223 -34 -409 90q-117 -78 -256 -93v-132h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23
-t-23 -9h-96v-96q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v96h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v132q-155 17 -279.5 109.5t-187 237.5t-39.5 307q25 187 159.5 322.5t320.5 164.5q224 34 410 -90q146 97 320 97q201 0 359 -126l255 254h-134q-14 0 -23 9
-t-9 23v64zM896 391q128 131 128 313t-128 313q-128 -131 -128 -313t128 -313zM128 704q0 -185 131.5 -316.5t316.5 -131.5q117 0 218 57q-154 167 -154 391t154 391q-101 57 -218 57q-185 0 -316.5 -131.5t-131.5 -316.5zM1216 256q185 0 316.5 131.5t131.5 316.5
-t-131.5 316.5t-316.5 131.5q-117 0 -218 -57q154 -167 154 -391t-154 -391q101 -57 218 -57z" />
- <glyph glyph-name="_518" unicode="&#xf229;"
-d="M1472 1408q26 0 45 -19t19 -45v-416q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v262l-213 -214l140 -140q9 -10 9 -23t-9 -22l-46 -46q-9 -9 -22 -9t-23 9l-140 141l-78 -79q126 -156 126 -359q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5
-t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123t223.5 45.5q203 0 359 -126l78 78l-172 172q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l172 -172l213 213h-261q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h416zM576 0q185 0 316.5 131.5t131.5 316.5t-131.5 316.5
-t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="_519" unicode="&#xf22a;" horiz-adv-x="1280"
-d="M640 892q217 -24 364.5 -187.5t147.5 -384.5q0 -167 -87 -306t-236 -212t-319 -54q-133 15 -245.5 88t-182 188t-80.5 249q-12 155 52.5 292t186 224t271.5 103v132h-160q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h160v165l-92 -92q-10 -9 -23 -9t-22 9l-46 46q-9 9 -9 22
-t9 23l202 201q19 19 45 19t45 -19l202 -201q9 -10 9 -23t-9 -22l-46 -46q-9 -9 -22 -9t-23 9l-92 92v-165h160q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-160v-132zM576 -128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5
-t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="_520" unicode="&#xf22b;" horiz-adv-x="2048"
-d="M1901 621q19 -19 19 -45t-19 -45l-294 -294q-9 -10 -22.5 -10t-22.5 10l-45 45q-10 9 -10 22.5t10 22.5l185 185h-294v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-132q-24 -217 -187.5 -364.5t-384.5 -147.5q-167 0 -306 87t-212 236t-54 319q15 133 88 245.5
-t188 182t249 80.5q155 12 292 -52.5t224 -186t103 -271.5h132v224q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-224h294l-185 185q-10 9 -10 22.5t10 22.5l45 45q9 10 22.5 10t22.5 -10zM576 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5
-t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="_521" unicode="&#xf22c;" horiz-adv-x="1280"
-d="M1152 960q0 -221 -147.5 -384.5t-364.5 -187.5v-612q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v612q-217 24 -364.5 187.5t-147.5 384.5q0 117 45.5 223.5t123 184t184 123t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5zM576 512q185 0 316.5 131.5
-t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
- <glyph glyph-name="_522" unicode="&#xf22d;" horiz-adv-x="1280"
-d="M1024 576q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1152 576q0 -117 -45.5 -223.5t-123 -184t-184 -123t-223.5 -45.5t-223.5 45.5t-184 123t-123 184t-45.5 223.5t45.5 223.5t123 184t184 123
-t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5z" />
- <glyph glyph-name="_523" unicode="&#xf22e;" horiz-adv-x="1792"
- />
- <glyph glyph-name="_524" unicode="&#xf22f;" horiz-adv-x="1792"
- />
- <glyph glyph-name="_525" unicode="&#xf230;"
-d="M1451 1408q35 0 60 -25t25 -60v-1366q0 -35 -25 -60t-60 -25h-391v595h199l30 232h-229v148q0 56 23.5 84t91.5 28l122 1v207q-63 9 -178 9q-136 0 -217.5 -80t-81.5 -226v-171h-200v-232h200v-595h-735q-35 0 -60 25t-25 60v1366q0 35 25 60t60 25h1366z" />
- <glyph glyph-name="_526" unicode="&#xf231;" horiz-adv-x="1280"
-d="M0 939q0 108 37.5 203.5t103.5 166.5t152 123t185 78t202 26q158 0 294 -66.5t221 -193.5t85 -287q0 -96 -19 -188t-60 -177t-100 -149.5t-145 -103t-189 -38.5q-68 0 -135 32t-96 88q-10 -39 -28 -112.5t-23.5 -95t-20.5 -71t-26 -71t-32 -62.5t-46 -77.5t-62 -86.5
-l-14 -5l-9 10q-15 157 -15 188q0 92 21.5 206.5t66.5 287.5t52 203q-32 65 -32 169q0 83 52 156t132 73q61 0 95 -40.5t34 -102.5q0 -66 -44 -191t-44 -187q0 -63 45 -104.5t109 -41.5q55 0 102 25t78.5 68t56 95t38 110.5t20 111t6.5 99.5q0 173 -109.5 269.5t-285.5 96.5
-q-200 0 -334 -129.5t-134 -328.5q0 -44 12.5 -85t27 -65t27 -45.5t12.5 -30.5q0 -28 -15 -73t-37 -45q-2 0 -17 3q-51 15 -90.5 56t-61 94.5t-32.5 108t-11 106.5z" />
- <glyph glyph-name="_527" unicode="&#xf232;"
-d="M985 562q13 0 97.5 -44t89.5 -53q2 -5 2 -15q0 -33 -17 -76q-16 -39 -71 -65.5t-102 -26.5q-57 0 -190 62q-98 45 -170 118t-148 185q-72 107 -71 194v8q3 91 74 158q24 22 52 22q6 0 18 -1.5t19 -1.5q19 0 26.5 -6.5t15.5 -27.5q8 -20 33 -88t25 -75q0 -21 -34.5 -57.5
-t-34.5 -46.5q0 -7 5 -15q34 -73 102 -137q56 -53 151 -101q12 -7 22 -7q15 0 54 48.5t52 48.5zM782 32q127 0 243.5 50t200.5 134t134 200.5t50 243.5t-50 243.5t-134 200.5t-200.5 134t-243.5 50t-243.5 -50t-200.5 -134t-134 -200.5t-50 -243.5q0 -203 120 -368l-79 -233
-l242 77q158 -104 345 -104zM782 1414q153 0 292.5 -60t240.5 -161t161 -240.5t60 -292.5t-60 -292.5t-161 -240.5t-240.5 -161t-292.5 -60q-195 0 -365 94l-417 -134l136 405q-108 178 -108 389q0 153 60 292.5t161 240.5t240.5 161t292.5 60z" />
- <glyph glyph-name="_528" unicode="&#xf233;" horiz-adv-x="1792"
-d="M128 128h1024v128h-1024v-128zM128 640h1024v128h-1024v-128zM1696 192q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM128 1152h1024v128h-1024v-128zM1696 704q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1696 1216
-q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1792 384v-384h-1792v384h1792zM1792 896v-384h-1792v384h1792zM1792 1408v-384h-1792v384h1792z" />
- <glyph glyph-name="_529" unicode="&#xf234;" horiz-adv-x="2048"
-d="M704 640q-159 0 -271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5zM1664 512h352q13 0 22.5 -9.5t9.5 -22.5v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-352q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5
-t-9.5 22.5v352h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v352q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5v-352zM928 288q0 -52 38 -90t90 -38h256v-238q-68 -50 -171 -50h-874q-121 0 -194 69t-73 190q0 53 3.5 103.5t14 109t26.5 108.5
-t43 97.5t62 81t85.5 53.5t111.5 20q19 0 39 -17q79 -61 154.5 -91.5t164.5 -30.5t164.5 30.5t154.5 91.5q20 17 39 17q132 0 217 -96h-223q-52 0 -90 -38t-38 -90v-192z" />
- <glyph glyph-name="_530" unicode="&#xf235;" horiz-adv-x="2048"
-d="M704 640q-159 0 -271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5zM1781 320l249 -249q9 -9 9 -23q0 -13 -9 -22l-136 -136q-9 -9 -22 -9q-14 0 -23 9l-249 249l-249 -249q-9 -9 -23 -9q-13 0 -22 9l-136 136
-q-9 9 -9 22q0 14 9 23l249 249l-249 249q-9 9 -9 23q0 13 9 22l136 136q9 9 22 9q14 0 23 -9l249 -249l249 249q9 9 23 9q13 0 22 -9l136 -136q9 -9 9 -22q0 -14 -9 -23zM1283 320l-181 -181q-37 -37 -37 -91q0 -53 37 -90l83 -83q-21 -3 -44 -3h-874q-121 0 -194 69
-t-73 190q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q19 0 39 -17q154 -122 319 -122t319 122q20 17 39 17q28 0 57 -6q-28 -27 -41 -50t-13 -56q0 -54 37 -91z" />
- <glyph glyph-name="_531" unicode="&#xf236;" horiz-adv-x="2048"
-d="M256 512h1728q26 0 45 -19t19 -45v-448h-256v256h-1536v-256h-256v1216q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-704zM832 832q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM2048 576v64q0 159 -112.5 271.5t-271.5 112.5h-704
-q-26 0 -45 -19t-19 -45v-384h1152z" />
- <glyph glyph-name="_532" unicode="&#xf237;"
-d="M1536 1536l-192 -448h192v-192h-274l-55 -128h329v-192h-411l-357 -832l-357 832h-411v192h329l-55 128h-274v192h192l-192 448h256l323 -768h378l323 768h256zM768 320l108 256h-216z" />
- <glyph glyph-name="_533" unicode="&#xf238;"
-d="M1088 1536q185 0 316.5 -93.5t131.5 -226.5v-896q0 -130 -125.5 -222t-305.5 -97l213 -202q16 -15 8 -35t-30 -20h-1056q-22 0 -30 20t8 35l213 202q-180 5 -305.5 97t-125.5 222v896q0 133 131.5 226.5t316.5 93.5h640zM768 192q80 0 136 56t56 136t-56 136t-136 56
-t-136 -56t-56 -136t56 -136t136 -56zM1344 768v512h-1152v-512h1152z" />
- <glyph glyph-name="_534" unicode="&#xf239;"
-d="M1088 1536q185 0 316.5 -93.5t131.5 -226.5v-896q0 -130 -125.5 -222t-305.5 -97l213 -202q16 -15 8 -35t-30 -20h-1056q-22 0 -30 20t8 35l213 202q-180 5 -305.5 97t-125.5 222v896q0 133 131.5 226.5t316.5 93.5h640zM288 224q66 0 113 47t47 113t-47 113t-113 47
-t-113 -47t-47 -113t47 -113t113 -47zM704 768v512h-544v-512h544zM1248 224q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47zM1408 768v512h-576v-512h576z" />
- <glyph glyph-name="_535" unicode="&#xf23a;" horiz-adv-x="1792"
-d="M597 1115v-1173q0 -25 -12.5 -42.5t-36.5 -17.5q-17 0 -33 8l-465 233q-21 10 -35.5 33.5t-14.5 46.5v1140q0 20 10 34t29 14q14 0 44 -15l511 -256q3 -3 3 -5zM661 1014l534 -866l-534 266v600zM1792 996v-1054q0 -25 -14 -40.5t-38 -15.5t-47 13l-441 220zM1789 1116
-q0 -3 -256.5 -419.5t-300.5 -487.5l-390 634l324 527q17 28 52 28q14 0 26 -6l541 -270q4 -2 4 -6z" />
- <glyph glyph-name="_536" unicode="&#xf23b;"
-d="M809 532l266 499h-112l-157 -312q-24 -48 -44 -92l-42 92l-155 312h-120l263 -493v-324h101v318zM1536 1408v-1536h-1536v1536h1536z" />
- <glyph glyph-name="_537" unicode="&#xf23c;" horiz-adv-x="2296"
-d="M478 -139q-8 -16 -27 -34.5t-37 -25.5q-25 -9 -51.5 3.5t-28.5 31.5q-1 22 40 55t68 38q23 4 34 -21.5t2 -46.5zM1819 -139q7 -16 26 -34.5t38 -25.5q25 -9 51.5 3.5t27.5 31.5q2 22 -39.5 55t-68.5 38q-22 4 -33 -21.5t-2 -46.5zM1867 -30q13 -27 56.5 -59.5t77.5 -41.5
-q45 -13 82 4.5t37 50.5q0 46 -67.5 100.5t-115.5 59.5q-40 5 -63.5 -37.5t-6.5 -76.5zM428 -30q-13 -27 -56 -59.5t-77 -41.5q-45 -13 -82 4.5t-37 50.5q0 46 67.5 100.5t115.5 59.5q40 5 63 -37.5t6 -76.5zM1158 1094h1q-41 0 -76 -15q27 -8 44 -30.5t17 -49.5
-q0 -35 -27 -60t-65 -25q-52 0 -80 43q-5 -23 -5 -42q0 -74 56 -126.5t135 -52.5q80 0 136 52.5t56 126.5t-56 126.5t-136 52.5zM1462 1312q-99 109 -220.5 131.5t-245.5 -44.5q27 60 82.5 96.5t118 39.5t121.5 -17t99.5 -74.5t44.5 -131.5zM2212 73q8 -11 -11 -42
-q7 -23 7 -40q1 -56 -44.5 -112.5t-109.5 -91.5t-118 -37q-48 -2 -92 21.5t-66 65.5q-687 -25 -1259 0q-23 -41 -66.5 -65t-92.5 -22q-86 3 -179.5 80.5t-92.5 160.5q2 22 7 40q-19 31 -11 42q6 10 31 1q14 22 41 51q-7 29 2 38q11 10 39 -4q29 20 59 34q0 29 13 37
-q23 12 51 -16q35 5 61 -2q18 -4 38 -19v73q-11 0 -18 2q-53 10 -97 44.5t-55 87.5q-9 38 0 81q15 62 93 95q2 17 19 35.5t36 23.5t33 -7.5t19 -30.5h13q46 -5 60 -23q3 -3 5 -7q10 1 30.5 3.5t30.5 3.5q-15 11 -30 17q-23 40 -91 43q0 6 1 10q-62 2 -118.5 18.5t-84.5 47.5
-q-32 36 -42.5 92t-2.5 112q16 126 90 179q23 16 52 4.5t32 -40.5q0 -1 1.5 -14t2.5 -21t3 -20t5.5 -19t8.5 -10q27 -14 76 -12q48 46 98 74q-40 4 -162 -14l47 46q61 58 163 111q145 73 282 86q-20 8 -41 15.5t-47 14t-42.5 10.5t-47.5 11t-43 10q595 126 904 -139
-q98 -84 158 -222q85 -10 121 9h1q5 3 8.5 10t5.5 19t3 19.5t3 21.5l1 14q3 28 32 40t52 -5q73 -52 91 -178q7 -57 -3.5 -113t-42.5 -91q-28 -32 -83.5 -48.5t-115.5 -18.5v-10q-71 -2 -95 -43q-14 -5 -31 -17q11 -1 32 -3.5t30 -3.5q1 5 5 8q16 18 60 23h13q5 18 19 30t33 8
-t36 -23t19 -36q79 -32 93 -95q9 -40 1 -81q-12 -53 -56 -88t-97 -44q-10 -2 -17 -2q0 -49 -1 -73q20 15 38 19q26 7 61 2q28 28 51 16q14 -9 14 -37q33 -16 59 -34q27 13 38 4q10 -10 2 -38q28 -30 41 -51q23 8 31 -1zM1937 1025q0 -29 -9 -54q82 -32 112 -132
-q4 37 -9.5 98.5t-41.5 90.5q-20 19 -36 17t-16 -20zM1859 925q35 -42 47.5 -108.5t-0.5 -124.5q67 13 97 45q13 14 18 28q-3 64 -31 114.5t-79 66.5q-15 -15 -52 -21zM1822 921q-30 0 -44 1q42 -115 53 -239q21 0 43 3q16 68 1 135t-53 100zM258 839q30 100 112 132
-q-9 25 -9 54q0 18 -16.5 20t-35.5 -17q-28 -29 -41.5 -90.5t-9.5 -98.5zM294 737q29 -31 97 -45q-13 58 -0.5 124.5t47.5 108.5v0q-37 6 -52 21q-51 -16 -78.5 -66t-31.5 -115q9 -17 18 -28zM471 683q14 124 73 235q-19 -4 -55 -18l-45 -19v1q-46 -89 -20 -196q25 -3 47 -3z
-M1434 644q8 -38 16.5 -108.5t11.5 -89.5q3 -18 9.5 -21.5t23.5 4.5q40 20 62 85.5t23 125.5q-24 2 -146 4zM1152 1285q-116 0 -199 -82.5t-83 -198.5q0 -117 83 -199.5t199 -82.5t199 82.5t83 199.5q0 116 -83 198.5t-199 82.5zM1380 646q-105 2 -211 0v1q-1 -27 2.5 -86
-t13.5 -66q29 -14 93.5 -14.5t95.5 10.5q9 3 11 39t-0.5 69.5t-4.5 46.5zM1112 447q8 4 9.5 48t-0.5 88t-4 63v1q-212 -3 -214 -3q-4 -20 -7 -62t0 -83t14 -46q34 -15 101 -16t101 10zM718 636q-16 -59 4.5 -118.5t77.5 -84.5q15 -8 24 -5t12 21q3 16 8 90t10 103
-q-69 -2 -136 -6zM591 510q3 -23 -34 -36q132 -141 271.5 -240t305.5 -154q172 49 310.5 146t293.5 250q-33 13 -30 34q0 2 0.5 3.5t1.5 3t1 2.5v1v-1q-17 2 -50 5.5t-48 4.5q-26 -90 -82 -132q-51 -38 -82 1q-5 6 -9 14q-7 13 -17 62q-2 -5 -5 -9t-7.5 -7t-8 -5.5t-9.5 -4
-l-10 -2.5t-12 -2l-12 -1.5t-13.5 -1t-13.5 -0.5q-106 -9 -163 11q-4 -17 -10 -26.5t-21 -15t-23 -7t-36 -3.5q-6 -1 -9 -1q-179 -17 -203 40q-2 -63 -56 -54q-47 8 -91 54q-12 13 -20 26q-17 29 -26 65q-58 -6 -87 -10q1 -2 4 -10zM507 -118q3 14 3 30q-17 71 -51 130
-t-73 70q-41 12 -101.5 -14.5t-104.5 -80t-39 -107.5q35 -53 100 -93t119 -42q51 -2 94 28t53 79zM510 53q23 -63 27 -119q195 113 392 174q-98 52 -180.5 120t-179.5 165q-6 -4 -29 -13q0 -1 -1 -4t-1 -5q31 -18 22 -37q-12 -23 -56 -34q-10 -13 -29 -24h-1q-2 -83 1 -150
-q19 -34 35 -73zM579 -113q532 -21 1145 0q-254 147 -428 196q-76 -35 -156 -57q-8 -3 -16 0q-65 21 -129 49q-208 -60 -416 -188h-1v-1q1 0 1 1zM1763 -67q4 54 28 120q14 38 33 71l-1 -1q3 77 3 153q-15 8 -30 25q-42 9 -56 33q-9 20 22 38q-2 4 -2 9q-16 4 -28 12
-q-204 -190 -383 -284q198 -59 414 -176zM2155 -90q5 54 -39 107.5t-104 80t-102 14.5q-38 -11 -72.5 -70.5t-51.5 -129.5q0 -16 3 -30q10 -49 53 -79t94 -28q54 2 119 42t100 93z" />
- <glyph glyph-name="_538" unicode="&#xf23d;" horiz-adv-x="2304"
-d="M1524 -25q0 -68 -48 -116t-116 -48t-116.5 48t-48.5 116t48.5 116.5t116.5 48.5t116 -48.5t48 -116.5zM775 -25q0 -68 -48.5 -116t-116.5 -48t-116 48t-48 116t48 116.5t116 48.5t116.5 -48.5t48.5 -116.5zM0 1469q57 -60 110.5 -104.5t121 -82t136 -63t166 -45.5
-t200 -31.5t250 -18.5t304 -9.5t372.5 -2.5q139 0 244.5 -5t181 -16.5t124 -27.5t71 -39.5t24 -51.5t-19.5 -64t-56.5 -76.5t-89.5 -91t-116 -104.5t-139 -119q-185 -157 -286 -247q29 51 76.5 109t94 105.5t94.5 98.5t83 91.5t54 80.5t13 70t-45.5 55.5t-116.5 41t-204 23.5
-t-304 5q-168 -2 -314 6t-256 23t-204.5 41t-159.5 51.5t-122.5 62.5t-91.5 66.5t-68 71.5t-50.5 69.5t-40 68t-36.5 59.5z" />
- <glyph glyph-name="_539" unicode="&#xf23e;" horiz-adv-x="1792"
-d="M896 1472q-169 0 -323 -66t-265.5 -177.5t-177.5 -265.5t-66 -323t66 -323t177.5 -265.5t265.5 -177.5t323 -66t323 66t265.5 177.5t177.5 265.5t66 323t-66 323t-177.5 265.5t-265.5 177.5t-323 66zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348
-t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM496 704q16 0 16 -16v-480q0 -16 -16 -16h-32q-16 0 -16 16v480q0 16 16 16h32zM896 640q53 0 90.5 -37.5t37.5 -90.5q0 -35 -17.5 -64t-46.5 -46v-114q0 -14 -9 -23
-t-23 -9h-64q-14 0 -23 9t-9 23v114q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5zM896 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM544 928v-96
-q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v96q0 93 65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5v-96q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v96q0 146 -103 249t-249 103t-249 -103t-103 -249zM1408 192v512q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-512
-q0 -26 19 -45t45 -19h896q26 0 45 19t19 45z" />
- <glyph glyph-name="_540" unicode="&#xf240;" horiz-adv-x="2304"
-d="M1920 1024v-768h-1664v768h1664zM2048 448h128v384h-128v288q0 14 -9 23t-23 9h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288zM2304 832v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113
-v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160q53 0 90.5 -37.5t37.5 -90.5z" />
- <glyph glyph-name="_541" unicode="&#xf241;" horiz-adv-x="2304"
-d="M256 256v768h1280v-768h-1280zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9
-h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" />
- <glyph glyph-name="_542" unicode="&#xf242;" horiz-adv-x="2304"
-d="M256 256v768h896v-768h-896zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9
-h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" />
- <glyph glyph-name="_543" unicode="&#xf243;" horiz-adv-x="2304"
-d="M256 256v768h512v-768h-512zM2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9
-h-1856q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" />
- <glyph glyph-name="_544" unicode="&#xf244;" horiz-adv-x="2304"
-d="M2176 960q53 0 90.5 -37.5t37.5 -90.5v-384q0 -53 -37.5 -90.5t-90.5 -37.5v-160q0 -66 -47 -113t-113 -47h-1856q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1856q66 0 113 -47t47 -113v-160zM2176 448v384h-128v288q0 14 -9 23t-23 9h-1856q-14 0 -23 -9t-9 -23
-v-960q0 -14 9 -23t23 -9h1856q14 0 23 9t9 23v288h128z" />
- <glyph glyph-name="_545" unicode="&#xf245;" horiz-adv-x="1280"
-d="M1133 493q31 -30 14 -69q-17 -40 -59 -40h-382l201 -476q10 -25 0 -49t-34 -35l-177 -75q-25 -10 -49 0t-35 34l-191 452l-312 -312q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v1504q0 42 40 59q12 5 24 5q27 0 45 -19z" />
- <glyph glyph-name="_546" unicode="&#xf246;" horiz-adv-x="1024"
-d="M832 1408q-320 0 -320 -224v-416h128v-128h-128v-544q0 -224 320 -224h64v-128h-64q-272 0 -384 146q-112 -146 -384 -146h-64v128h64q320 0 320 224v544h-128v128h128v416q0 224 -320 224h-64v128h64q272 0 384 -146q112 146 384 146h64v-128h-64z" />
- <glyph glyph-name="_547" unicode="&#xf247;" horiz-adv-x="2048"
-d="M2048 1152h-128v-1024h128v-384h-384v128h-1280v-128h-384v384h128v1024h-128v384h384v-128h1280v128h384v-384zM1792 1408v-128h128v128h-128zM128 1408v-128h128v128h-128zM256 -128v128h-128v-128h128zM1664 0v128h128v1024h-128v128h-1280v-128h-128v-1024h128v-128
-h1280zM1920 -128v128h-128v-128h128zM1280 896h384v-768h-896v256h-384v768h896v-256zM512 512h640v512h-640v-512zM1536 256v512h-256v-384h-384v-128h640z" />
- <glyph glyph-name="_548" unicode="&#xf248;" horiz-adv-x="2304"
-d="M2304 768h-128v-640h128v-384h-384v128h-896v-128h-384v384h128v128h-384v-128h-384v384h128v640h-128v384h384v-128h896v128h384v-384h-128v-128h384v128h384v-384zM2048 1024v-128h128v128h-128zM1408 1408v-128h128v128h-128zM128 1408v-128h128v128h-128zM256 256
-v128h-128v-128h128zM1536 384h-128v-128h128v128zM384 384h896v128h128v640h-128v128h-896v-128h-128v-640h128v-128zM896 -128v128h-128v-128h128zM2176 -128v128h-128v-128h128zM2048 128v640h-128v128h-384v-384h128v-384h-384v128h-384v-128h128v-128h896v128h128z" />
- <glyph glyph-name="_549" unicode="&#xf249;"
-d="M1024 288v-416h-928q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1344q40 0 68 -28t28 -68v-928h-416q-40 0 -68 -28t-28 -68zM1152 256h381q-15 -82 -65 -132l-184 -184q-50 -50 -132 -65v381z" />
- <glyph glyph-name="_550" unicode="&#xf24a;"
-d="M1400 256h-248v-248q29 10 41 22l185 185q12 12 22 41zM1120 384h288v896h-1280v-1280h896v288q0 40 28 68t68 28zM1536 1312v-1024q0 -40 -20 -88t-48 -76l-184 -184q-28 -28 -76 -48t-88 -20h-1024q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1344q40 0 68 -28t28 -68
-z" />
- <glyph glyph-name="_551" unicode="&#xf24b;" horiz-adv-x="2304"
-d="M1951 538q0 -26 -15.5 -44.5t-38.5 -23.5q-8 -2 -18 -2h-153v140h153q10 0 18 -2q23 -5 38.5 -23.5t15.5 -44.5zM1933 751q0 -25 -15 -42t-38 -21q-3 -1 -15 -1h-139v129h139q3 0 8.5 -0.5t6.5 -0.5q23 -4 38 -21.5t15 -42.5zM728 587v308h-228v-308q0 -58 -38 -94.5
-t-105 -36.5q-108 0 -229 59v-112q53 -15 121 -23t109 -9l42 -1q328 0 328 217zM1442 403v113q-99 -52 -200 -59q-108 -8 -169 41t-61 142t61 142t169 41q101 -7 200 -58v112q-48 12 -100 19.5t-80 9.5l-28 2q-127 6 -218.5 -14t-140.5 -60t-71 -88t-22 -106t22 -106t71 -88
-t140.5 -60t218.5 -14q101 4 208 31zM2176 518q0 54 -43 88.5t-109 39.5v3q57 8 89 41.5t32 79.5q0 55 -41 88t-107 36q-3 0 -12 0.5t-14 0.5h-455v-510h491q74 0 121.5 36.5t47.5 96.5zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90
-t90 38h2048q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_552" unicode="&#xf24c;" horiz-adv-x="2304"
-d="M858 295v693q-106 -41 -172 -135.5t-66 -211.5t66 -211.5t172 -134.5zM1362 641q0 117 -66 211.5t-172 135.5v-694q106 41 172 135.5t66 211.5zM1577 641q0 -159 -78.5 -294t-213.5 -213.5t-294 -78.5q-119 0 -227.5 46.5t-187 125t-125 187t-46.5 227.5q0 159 78.5 294
-t213.5 213.5t294 78.5t294 -78.5t213.5 -213.5t78.5 -294zM1960 634q0 139 -55.5 261.5t-147.5 205.5t-213.5 131t-252.5 48h-301q-176 0 -323.5 -81t-235 -230t-87.5 -335q0 -171 87 -317.5t236 -231.5t323 -85h301q129 0 251.5 50.5t214.5 135t147.5 202.5t55.5 246z
-M2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_553" unicode="&#xf24d;" horiz-adv-x="1792"
-d="M1664 -96v1088q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5v-1088q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5zM1792 992v-1088q0 -66 -47 -113t-113 -47h-1088q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1088q66 0 113 -47t47 -113
-zM1408 1376v-160h-128v160q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5v-1088q0 -13 9.5 -22.5t22.5 -9.5h160v-128h-160q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1088q66 0 113 -47t47 -113z" />
- <glyph glyph-name="_554" unicode="&#xf24e;" horiz-adv-x="2304"
-d="M1728 1088l-384 -704h768zM448 1088l-384 -704h768zM1269 1280q-14 -40 -45.5 -71.5t-71.5 -45.5v-1291h608q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1344q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h608v1291q-40 14 -71.5 45.5t-45.5 71.5h-491q-14 0 -23 9t-9 23v64
-q0 14 9 23t23 9h491q21 57 70 92.5t111 35.5t111 -35.5t70 -92.5h491q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-491zM1088 1264q33 0 56.5 23.5t23.5 56.5t-23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5zM2176 384q0 -73 -46.5 -131t-117.5 -91
-t-144.5 -49.5t-139.5 -16.5t-139.5 16.5t-144.5 49.5t-117.5 91t-46.5 131q0 11 35 81t92 174.5t107 195.5t102 184t56 100q18 33 56 33t56 -33q4 -7 56 -100t102 -184t107 -195.5t92 -174.5t35 -81zM896 384q0 -73 -46.5 -131t-117.5 -91t-144.5 -49.5t-139.5 -16.5
-t-139.5 16.5t-144.5 49.5t-117.5 91t-46.5 131q0 11 35 81t92 174.5t107 195.5t102 184t56 100q18 33 56 33t56 -33q4 -7 56 -100t102 -184t107 -195.5t92 -174.5t35 -81z" />
- <glyph glyph-name="_555" unicode="&#xf250;"
-d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9
-t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM874 700q77 29 149 92.5t129.5 152.5t92.5 210t35 253h-1024q0 -132 35 -253t92.5 -210t129.5 -152.5t149 -92.5q19 -7 30.5 -23.5t11.5 -36.5t-11.5 -36.5t-30.5 -23.5q-77 -29 -149 -92.5
-t-129.5 -152.5t-92.5 -210t-35 -253h1024q0 132 -35 253t-92.5 210t-129.5 152.5t-149 92.5q-19 7 -30.5 23.5t-11.5 36.5t11.5 36.5t30.5 23.5z" />
- <glyph glyph-name="_556" unicode="&#xf251;"
-d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9
-t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM1280 1408h-1024q0 -66 9 -128h1006q9 61 9 128zM1280 -128q0 130 -34 249.5t-90.5 208t-126.5 152t-146 94.5h-230q-76 -31 -146 -94.5t-126.5 -152t-90.5 -208t-34 -249.5h1024z" />
- <glyph glyph-name="_557" unicode="&#xf252;"
-d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9
-t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM1280 1408h-1024q0 -206 85 -384h854q85 178 85 384zM1223 192q-54 141 -145.5 241.5t-194.5 142.5h-230q-103 -42 -194.5 -142.5t-145.5 -241.5h910z" />
- <glyph glyph-name="_558" unicode="&#xf253;"
-d="M1408 1408q0 -261 -106.5 -461.5t-266.5 -306.5q160 -106 266.5 -306.5t106.5 -461.5h96q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96q0 261 106.5 461.5t266.5 306.5q-160 106 -266.5 306.5t-106.5 461.5h-96q-14 0 -23 9
-t-9 23v64q0 14 9 23t23 9h1472q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-96zM874 700q77 29 149 92.5t129.5 152.5t92.5 210t35 253h-1024q0 -132 35 -253t92.5 -210t129.5 -152.5t149 -92.5q19 -7 30.5 -23.5t11.5 -36.5t-11.5 -36.5t-30.5 -23.5q-137 -51 -244 -196
-h700q-107 145 -244 196q-19 7 -30.5 23.5t-11.5 36.5t11.5 36.5t30.5 23.5z" />
- <glyph glyph-name="_559" unicode="&#xf254;"
-d="M1504 -64q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-1472q-14 0 -23 9t-9 23v128q0 14 9 23t23 9h1472zM130 0q3 55 16 107t30 95t46 87t53.5 76t64.5 69.5t66 60t70.5 55t66.5 47.5t65 43q-43 28 -65 43t-66.5 47.5t-70.5 55t-66 60t-64.5 69.5t-53.5 76t-46 87
-t-30 95t-16 107h1276q-3 -55 -16 -107t-30 -95t-46 -87t-53.5 -76t-64.5 -69.5t-66 -60t-70.5 -55t-66.5 -47.5t-65 -43q43 -28 65 -43t66.5 -47.5t70.5 -55t66 -60t64.5 -69.5t53.5 -76t46 -87t30 -95t16 -107h-1276zM1504 1536q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9
-h-1472q-14 0 -23 9t-9 23v128q0 14 9 23t23 9h1472z" />
- <glyph glyph-name="_560" unicode="&#xf255;"
-d="M768 1152q-53 0 -90.5 -37.5t-37.5 -90.5v-128h-32v93q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-429l-32 30v172q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-224q0 -47 35 -82l310 -296q39 -39 39 -102q0 -26 19 -45t45 -19h640q26 0 45 19t19 45v25
-q0 41 10 77l108 436q10 36 10 77v246q0 48 -32 81.5t-80 33.5q-46 0 -79 -33t-33 -79v-32h-32v125q0 40 -25 72.5t-64 40.5q-14 2 -23 2q-46 0 -79 -33t-33 -79v-128h-32v122q0 51 -32.5 89.5t-82.5 43.5q-5 1 -13 1zM768 1280q84 0 149 -50q57 34 123 34q59 0 111 -27
-t86 -76q27 7 59 7q100 0 170 -71.5t70 -171.5v-246q0 -51 -13 -108l-109 -436q-6 -24 -6 -71q0 -80 -56 -136t-136 -56h-640q-84 0 -138 58.5t-54 142.5l-308 296q-76 73 -76 175v224q0 99 70.5 169.5t169.5 70.5q11 0 16 -1q6 95 75.5 160t164.5 65q52 0 98 -21
-q72 69 174 69z" />
- <glyph glyph-name="_561" unicode="&#xf256;" horiz-adv-x="1792"
-d="M880 1408q-46 0 -79 -33t-33 -79v-656h-32v528q0 46 -33 79t-79 33t-79 -33t-33 -79v-528v-256l-154 205q-38 51 -102 51q-53 0 -90.5 -37.5t-37.5 -90.5q0 -43 26 -77l384 -512q38 -51 102 -51h688q34 0 61 22t34 56l76 405q5 32 5 59v498q0 46 -33 79t-79 33t-79 -33
-t-33 -79v-272h-32v528q0 46 -33 79t-79 33t-79 -33t-33 -79v-528h-32v656q0 46 -33 79t-79 33zM880 1536q68 0 125.5 -35.5t88.5 -96.5q19 4 42 4q99 0 169.5 -70.5t70.5 -169.5v-17q105 6 180.5 -64t75.5 -175v-498q0 -40 -8 -83l-76 -404q-14 -79 -76.5 -131t-143.5 -52
-h-688q-60 0 -114.5 27.5t-90.5 74.5l-384 512q-51 68 -51 154q0 106 75 181t181 75q78 0 128 -34v434q0 99 70.5 169.5t169.5 70.5q23 0 42 -4q31 61 88.5 96.5t125.5 35.5z" />
- <glyph glyph-name="_562" unicode="&#xf257;" horiz-adv-x="1792"
-d="M1073 -128h-177q-163 0 -226 141q-23 49 -23 102v5q-62 30 -98.5 88.5t-36.5 127.5q0 38 5 48h-261q-106 0 -181 75t-75 181t75 181t181 75h113l-44 17q-74 28 -119.5 93.5t-45.5 145.5q0 106 75 181t181 75q46 0 91 -17l628 -239h401q106 0 181 -75t75 -181v-668
-q0 -88 -54 -157.5t-140 -90.5l-339 -85q-92 -23 -186 -23zM1024 583l-155 -71l-163 -74q-30 -14 -48 -41.5t-18 -60.5q0 -46 33 -79t79 -33q26 0 46 10l338 154q-49 10 -80.5 50t-31.5 90v55zM1344 272q0 46 -33 79t-79 33q-26 0 -46 -10l-290 -132q-28 -13 -37 -17
-t-30.5 -17t-29.5 -23.5t-16 -29t-8 -40.5q0 -50 31.5 -82t81.5 -32q20 0 38 9l352 160q30 14 48 41.5t18 60.5zM1112 1024l-650 248q-24 8 -46 8q-53 0 -90.5 -37.5t-37.5 -90.5q0 -40 22.5 -73t59.5 -47l526 -200v-64h-640q-53 0 -90.5 -37.5t-37.5 -90.5t37.5 -90.5
-t90.5 -37.5h535l233 106v198q0 63 46 106l111 102h-69zM1073 0q82 0 155 19l339 85q43 11 70 45.5t27 78.5v668q0 53 -37.5 90.5t-90.5 37.5h-308l-136 -126q-36 -33 -36 -82v-296q0 -46 33 -77t79 -31t79 35t33 81v208h32v-208q0 -70 -57 -114q52 -8 86.5 -48.5t34.5 -93.5
-q0 -42 -23 -78t-61 -53l-310 -141h91z" />
- <glyph glyph-name="_563" unicode="&#xf258;" horiz-adv-x="2048"
-d="M1151 1536q61 0 116 -28t91 -77l572 -781q118 -159 118 -359v-355q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v177l-286 143h-546q-80 0 -136 56t-56 136v32q0 119 84.5 203.5t203.5 84.5h420l42 128h-686q-100 0 -173.5 67.5t-81.5 166.5q-65 79 -65 182v32
-q0 80 56 136t136 56h959zM1920 -64v355q0 157 -93 284l-573 781q-39 52 -103 52h-959q-26 0 -45 -19t-19 -45q0 -32 1.5 -49.5t9.5 -40.5t25 -43q10 31 35.5 50t56.5 19h832v-32h-832q-26 0 -45 -19t-19 -45q0 -44 3 -58q8 -44 44 -73t81 -29h640h91q40 0 68 -28t28 -68
-q0 -15 -5 -30l-64 -192q-10 -29 -35 -47.5t-56 -18.5h-443q-66 0 -113 -47t-47 -113v-32q0 -26 19 -45t45 -19h561q16 0 29 -7l317 -158q24 -13 38.5 -36t14.5 -50v-197q0 -26 19 -45t45 -19h384q26 0 45 19t19 45z" />
- <glyph glyph-name="_564" unicode="&#xf259;" horiz-adv-x="2048"
-d="M459 -256q-77 0 -137.5 47.5t-79.5 122.5l-101 401q-13 57 -13 108q0 45 -5 67l-116 477q-7 27 -7 57q0 93 62 161t155 78q17 85 82.5 139t152.5 54q83 0 148 -51.5t85 -132.5l83 -348l103 428q20 81 85 132.5t148 51.5q89 0 155.5 -57.5t80.5 -144.5q92 -10 152 -79
-t60 -162q0 -24 -7 -59l-123 -512q10 7 37.5 28.5t38.5 29.5t35 23t41 20.5t41.5 11t49.5 5.5q105 0 180 -74t75 -179q0 -62 -28.5 -118t-78.5 -94l-507 -380q-68 -51 -153 -51h-694zM1104 1408q-38 0 -68.5 -24t-39.5 -62l-164 -682h-127l-145 602q-9 38 -39.5 62t-68.5 24
-q-48 0 -80 -33t-32 -80q0 -15 3 -28l132 -547h-26l-99 408q-9 37 -40 62.5t-69 25.5q-47 0 -80 -33t-33 -79q0 -14 3 -26l116 -478q7 -28 9 -86t10 -88l100 -401q8 -32 34 -52.5t59 -20.5h694q42 0 76 26l507 379q56 43 56 110q0 52 -37.5 88.5t-89.5 36.5q-43 0 -77 -26
-l-307 -230v227q0 4 32 138t68 282t39 161q4 18 4 29q0 47 -32 81t-79 34q-39 0 -69.5 -24t-39.5 -62l-116 -482h-26l150 624q3 14 3 28q0 48 -31.5 82t-79.5 34z" />
- <glyph glyph-name="_565" unicode="&#xf25a;" horiz-adv-x="1792"
-d="M640 1408q-53 0 -90.5 -37.5t-37.5 -90.5v-512v-384l-151 202q-41 54 -107 54q-52 0 -89 -38t-37 -90q0 -43 26 -77l384 -512q38 -51 102 -51h718q22 0 39.5 13.5t22.5 34.5l92 368q24 96 24 194v217q0 41 -28 71t-68 30t-68 -28t-28 -68h-32v61q0 48 -32 81.5t-80 33.5
-q-46 0 -79 -33t-33 -79v-64h-32v90q0 55 -37 94.5t-91 39.5q-53 0 -90.5 -37.5t-37.5 -90.5v-96h-32v570q0 55 -37 94.5t-91 39.5zM640 1536q107 0 181.5 -77.5t74.5 -184.5v-220q22 2 32 2q99 0 173 -69q47 21 99 21q113 0 184 -87q27 7 56 7q94 0 159 -67.5t65 -161.5
-v-217q0 -116 -28 -225l-92 -368q-16 -64 -68 -104.5t-118 -40.5h-718q-60 0 -114.5 27.5t-90.5 74.5l-384 512q-51 68 -51 154q0 105 74.5 180.5t179.5 75.5q71 0 130 -35v547q0 106 75 181t181 75zM768 128v384h-32v-384h32zM1024 128v384h-32v-384h32zM1280 128v384h-32
-v-384h32z" />
- <glyph glyph-name="_566" unicode="&#xf25b;"
-d="M1288 889q60 0 107 -23q141 -63 141 -226v-177q0 -94 -23 -186l-85 -339q-21 -86 -90.5 -140t-157.5 -54h-668q-106 0 -181 75t-75 181v401l-239 628q-17 45 -17 91q0 106 75 181t181 75q80 0 145.5 -45.5t93.5 -119.5l17 -44v113q0 106 75 181t181 75t181 -75t75 -181
-v-261q27 5 48 5q69 0 127.5 -36.5t88.5 -98.5zM1072 896q-33 0 -60.5 -18t-41.5 -48l-74 -163l-71 -155h55q50 0 90 -31.5t50 -80.5l154 338q10 20 10 46q0 46 -33 79t-79 33zM1293 761q-22 0 -40.5 -8t-29 -16t-23.5 -29.5t-17 -30.5t-17 -37l-132 -290q-10 -20 -10 -46
-q0 -46 33 -79t79 -33q33 0 60.5 18t41.5 48l160 352q9 18 9 38q0 50 -32 81.5t-82 31.5zM128 1120q0 -22 8 -46l248 -650v-69l102 111q43 46 106 46h198l106 233v535q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5v-640h-64l-200 526q-14 37 -47 59.5t-73 22.5
-q-53 0 -90.5 -37.5t-37.5 -90.5zM1180 -128q44 0 78.5 27t45.5 70l85 339q19 73 19 155v91l-141 -310q-17 -38 -53 -61t-78 -23q-53 0 -93.5 34.5t-48.5 86.5q-44 -57 -114 -57h-208v32h208q46 0 81 33t35 79t-31 79t-77 33h-296q-49 0 -82 -36l-126 -136v-308
-q0 -53 37.5 -90.5t90.5 -37.5h668z" />
- <glyph glyph-name="_567" unicode="&#xf25c;" horiz-adv-x="1973"
-d="M857 992v-117q0 -13 -9.5 -22t-22.5 -9h-298v-812q0 -13 -9 -22.5t-22 -9.5h-135q-13 0 -22.5 9t-9.5 23v812h-297q-13 0 -22.5 9t-9.5 22v117q0 14 9 23t23 9h793q13 0 22.5 -9.5t9.5 -22.5zM1895 995l77 -961q1 -13 -8 -24q-10 -10 -23 -10h-134q-12 0 -21 8.5
-t-10 20.5l-46 588l-189 -425q-8 -19 -29 -19h-120q-20 0 -29 19l-188 427l-45 -590q-1 -12 -10 -20.5t-21 -8.5h-135q-13 0 -23 10q-9 10 -9 24l78 961q1 12 10 20.5t21 8.5h142q20 0 29 -19l220 -520q10 -24 20 -51q3 7 9.5 24.5t10.5 26.5l221 520q9 19 29 19h141
-q13 0 22 -8.5t10 -20.5z" />
- <glyph glyph-name="_568" unicode="&#xf25d;" horiz-adv-x="1792"
-d="M1042 833q0 88 -60 121q-33 18 -117 18h-123v-281h162q66 0 102 37t36 105zM1094 548l205 -373q8 -17 -1 -31q-8 -16 -27 -16h-152q-20 0 -28 17l-194 365h-155v-350q0 -14 -9 -23t-23 -9h-134q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h294q128 0 190 -24q85 -31 134 -109
-t49 -180q0 -92 -42.5 -165.5t-115.5 -109.5q6 -10 9 -16zM896 1376q-150 0 -286 -58.5t-234.5 -157t-157 -234.5t-58.5 -286t58.5 -286t157 -234.5t234.5 -157t286 -58.5t286 58.5t234.5 157t157 234.5t58.5 286t-58.5 286t-157 234.5t-234.5 157t-286 58.5zM1792 640
-q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="_569" unicode="&#xf25e;" horiz-adv-x="1792"
-d="M605 303q153 0 257 104q14 18 3 36l-45 82q-6 13 -24 17q-16 2 -27 -11l-4 -3q-4 -4 -11.5 -10t-17.5 -13.5t-23.5 -14.5t-28.5 -13t-33.5 -9.5t-37.5 -3.5q-76 0 -125 50t-49 127q0 76 48 125.5t122 49.5q37 0 71.5 -14t50.5 -28l16 -14q11 -11 26 -10q16 2 24 14l53 78
-q13 20 -2 39q-3 4 -11 12t-30 23.5t-48.5 28t-67.5 22.5t-86 10q-148 0 -246 -96.5t-98 -240.5q0 -146 97 -241.5t247 -95.5zM1235 303q153 0 257 104q14 18 4 36l-45 82q-8 14 -25 17q-16 2 -27 -11l-4 -3q-4 -4 -11.5 -10t-17.5 -13.5t-23.5 -14.5t-28.5 -13t-33.5 -9.5
-t-37.5 -3.5q-76 0 -125 50t-49 127q0 76 48 125.5t122 49.5q37 0 71.5 -14t50.5 -28l16 -14q11 -11 26 -10q16 2 24 14l53 78q13 20 -2 39q-3 4 -11 12t-30 23.5t-48.5 28t-67.5 22.5t-86 10q-147 0 -245.5 -96.5t-98.5 -240.5q0 -146 97 -241.5t247 -95.5zM896 1376
-q-150 0 -286 -58.5t-234.5 -157t-157 -234.5t-58.5 -286t58.5 -286t157 -234.5t234.5 -157t286 -58.5t286 58.5t234.5 157t157 234.5t58.5 286t-58.5 286t-157 234.5t-234.5 157t-286 58.5zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191
-t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71z" />
- <glyph glyph-name="f260" unicode="&#xf260;" horiz-adv-x="2048"
-d="M736 736l384 -384l-384 -384l-672 672l672 672l168 -168l-96 -96l-72 72l-480 -480l480 -480l193 193l-289 287zM1312 1312l672 -672l-672 -672l-168 168l96 96l72 -72l480 480l-480 480l-193 -193l289 -287l-96 -96l-384 384z" />
- <glyph glyph-name="f261" unicode="&#xf261;" horiz-adv-x="1792"
-d="M717 182l271 271l-279 279l-88 -88l192 -191l-96 -96l-279 279l279 279l40 -40l87 87l-127 128l-454 -454zM1075 190l454 454l-454 454l-271 -271l279 -279l88 88l-192 191l96 96l279 -279l-279 -279l-40 40l-87 -88zM1792 640q0 -182 -71 -348t-191 -286t-286 -191
-t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="_572" unicode="&#xf262;" horiz-adv-x="2304"
-d="M651 539q0 -39 -27.5 -66.5t-65.5 -27.5q-39 0 -66.5 27.5t-27.5 66.5q0 38 27.5 65.5t66.5 27.5q38 0 65.5 -27.5t27.5 -65.5zM1805 540q0 -39 -27.5 -66.5t-66.5 -27.5t-66.5 27.5t-27.5 66.5t27.5 66t66.5 27t66.5 -27t27.5 -66zM765 539q0 79 -56.5 136t-136.5 57
-t-136.5 -56.5t-56.5 -136.5t56.5 -136.5t136.5 -56.5t136.5 56.5t56.5 136.5zM1918 540q0 80 -56.5 136.5t-136.5 56.5q-79 0 -136 -56.5t-57 -136.5t56.5 -136.5t136.5 -56.5t136.5 56.5t56.5 136.5zM850 539q0 -116 -81.5 -197.5t-196.5 -81.5q-116 0 -197.5 82t-81.5 197
-t82 196.5t197 81.5t196.5 -81.5t81.5 -196.5zM2004 540q0 -115 -81.5 -196.5t-197.5 -81.5q-115 0 -196.5 81.5t-81.5 196.5t81.5 196.5t196.5 81.5q116 0 197.5 -81.5t81.5 -196.5zM1040 537q0 191 -135.5 326.5t-326.5 135.5q-125 0 -231 -62t-168 -168.5t-62 -231.5
-t62 -231.5t168 -168.5t231 -62q191 0 326.5 135.5t135.5 326.5zM1708 1110q-254 111 -556 111q-319 0 -573 -110q117 0 223 -45.5t182.5 -122.5t122 -183t45.5 -223q0 115 43.5 219.5t118 180.5t177.5 123t217 50zM2187 537q0 191 -135 326.5t-326 135.5t-326.5 -135.5
-t-135.5 -326.5t135.5 -326.5t326.5 -135.5t326 135.5t135 326.5zM1921 1103h383q-44 -51 -75 -114.5t-40 -114.5q110 -151 110 -337q0 -156 -77 -288t-209 -208.5t-287 -76.5q-133 0 -249 56t-196 155q-47 -56 -129 -179q-11 22 -53.5 82.5t-74.5 97.5
-q-80 -99 -196.5 -155.5t-249.5 -56.5q-155 0 -287 76.5t-209 208.5t-77 288q0 186 110 337q-9 51 -40 114.5t-75 114.5h365q149 100 355 156.5t432 56.5q224 0 421 -56t348 -157z" />
- <glyph glyph-name="f263" unicode="&#xf263;" horiz-adv-x="1280"
-d="M640 629q-188 0 -321 133t-133 320q0 188 133 321t321 133t321 -133t133 -321q0 -187 -133 -320t-321 -133zM640 1306q-92 0 -157.5 -65.5t-65.5 -158.5q0 -92 65.5 -157.5t157.5 -65.5t157.5 65.5t65.5 157.5q0 93 -65.5 158.5t-157.5 65.5zM1163 574q13 -27 15 -49.5
-t-4.5 -40.5t-26.5 -38.5t-42.5 -37t-61.5 -41.5q-115 -73 -315 -94l73 -72l267 -267q30 -31 30 -74t-30 -73l-12 -13q-31 -30 -74 -30t-74 30q-67 68 -267 268l-267 -268q-31 -30 -74 -30t-73 30l-12 13q-31 30 -31 73t31 74l267 267l72 72q-203 21 -317 94
-q-39 25 -61.5 41.5t-42.5 37t-26.5 38.5t-4.5 40.5t15 49.5q10 20 28 35t42 22t56 -2t65 -35q5 -4 15 -11t43 -24.5t69 -30.5t92 -24t113 -11q91 0 174 25.5t120 50.5l38 25q33 26 65 35t56 2t42 -22t28 -35z" />
- <glyph glyph-name="_574" unicode="&#xf264;"
-d="M927 956q0 -66 -46.5 -112.5t-112.5 -46.5t-112.5 46.5t-46.5 112.5t46.5 112.5t112.5 46.5t112.5 -46.5t46.5 -112.5zM1141 593q-10 20 -28 32t-47.5 9.5t-60.5 -27.5q-10 -8 -29 -20t-81 -32t-127 -20t-124 18t-86 36l-27 18q-31 25 -60.5 27.5t-47.5 -9.5t-28 -32
-q-22 -45 -2 -74.5t87 -73.5q83 -53 226 -67l-51 -52q-142 -142 -191 -190q-22 -22 -22 -52.5t22 -52.5l9 -9q22 -22 52.5 -22t52.5 22l191 191q114 -115 191 -191q22 -22 52.5 -22t52.5 22l9 9q22 22 22 52.5t-22 52.5l-191 190l-52 52q141 14 225 67q67 44 87 73.5t-2 74.5
-zM1092 956q0 134 -95 229t-229 95t-229 -95t-95 -229t95 -229t229 -95t229 95t95 229zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="_575" unicode="&#xf265;" horiz-adv-x="1720"
-d="M1565 1408q65 0 110 -45.5t45 -110.5v-519q0 -176 -68 -336t-182.5 -275t-274 -182.5t-334.5 -67.5q-176 0 -335.5 67.5t-274.5 182.5t-183 275t-68 336v519q0 64 46 110t110 46h1409zM861 344q47 0 82 33l404 388q37 35 37 85q0 49 -34.5 83.5t-83.5 34.5q-47 0 -82 -33
-l-323 -310l-323 310q-35 33 -81 33q-49 0 -83.5 -34.5t-34.5 -83.5q0 -51 36 -85l405 -388q33 -33 81 -33z" />
- <glyph glyph-name="_576" unicode="&#xf266;" horiz-adv-x="2304"
-d="M1494 -103l-295 695q-25 -49 -158.5 -305.5t-198.5 -389.5q-1 -1 -27.5 -0.5t-26.5 1.5q-82 193 -255.5 587t-259.5 596q-21 50 -66.5 107.5t-103.5 100.5t-102 43q0 5 -0.5 24t-0.5 27h583v-50q-39 -2 -79.5 -16t-66.5 -43t-10 -64q26 -59 216.5 -499t235.5 -540
-q31 61 140 266.5t131 247.5q-19 39 -126 281t-136 295q-38 69 -201 71v50l513 -1v-47q-60 -2 -93.5 -25t-12.5 -69q33 -70 87 -189.5t86 -187.5q110 214 173 363q24 55 -10 79.5t-129 26.5q1 7 1 25v24q64 0 170.5 0.5t180 1t92.5 0.5v-49q-62 -2 -119 -33t-90 -81
-l-213 -442q13 -33 127.5 -290t121.5 -274l441 1017q-14 38 -49.5 62.5t-65 31.5t-55.5 8v50l460 -4l1 -2l-1 -44q-139 -4 -201 -145q-526 -1216 -559 -1291h-49z" />
- <glyph glyph-name="_577" unicode="&#xf267;" horiz-adv-x="1792"
-d="M949 643q0 -26 -16.5 -45t-41.5 -19q-26 0 -45 16.5t-19 41.5q0 26 17 45t42 19t44 -16.5t19 -41.5zM964 585l350 581q-9 -8 -67.5 -62.5t-125.5 -116.5t-136.5 -127t-117 -110.5t-50.5 -51.5l-349 -580q7 7 67 62t126 116.5t136 127t117 111t50 50.5zM1611 640
-q0 -201 -104 -371q-3 2 -17 11t-26.5 16.5t-16.5 7.5q-13 0 -13 -13q0 -10 59 -44q-74 -112 -184.5 -190.5t-241.5 -110.5l-16 67q-1 10 -15 10q-5 0 -8 -5.5t-2 -9.5l16 -68q-72 -15 -146 -15q-199 0 -372 105q1 2 13 20.5t21.5 33.5t9.5 19q0 13 -13 13q-6 0 -17 -14.5
-t-22.5 -34.5t-13.5 -23q-113 75 -192 187.5t-110 244.5l69 15q10 3 10 15q0 5 -5.5 8t-10.5 2l-68 -15q-14 72 -14 139q0 206 109 379q2 -1 18.5 -12t30 -19t17.5 -8q13 0 13 12q0 6 -12.5 15.5t-32.5 21.5l-20 12q77 112 189 189t244 107l15 -67q2 -10 15 -10q5 0 8 5.5
-t2 10.5l-15 66q71 13 134 13q204 0 379 -109q-39 -56 -39 -65q0 -13 12 -13q11 0 48 64q111 -75 187.5 -186t107.5 -241l-56 -12q-10 -2 -10 -16q0 -5 5.5 -8t9.5 -2l57 13q14 -72 14 -140zM1696 640q0 163 -63.5 311t-170.5 255t-255 170.5t-311 63.5t-311 -63.5
-t-255 -170.5t-170.5 -255t-63.5 -311t63.5 -311t170.5 -255t255 -170.5t311 -63.5t311 63.5t255 170.5t170.5 255t63.5 311zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191
-t191 -286t71 -348z" />
- <glyph glyph-name="_578" unicode="&#xf268;" horiz-adv-x="1792"
-d="M893 1536q240 2 451 -120q232 -134 352 -372l-742 39q-160 9 -294 -74.5t-185 -229.5l-276 424q128 159 311 245.5t383 87.5zM146 1131l337 -663q72 -143 211 -217t293 -45l-230 -451q-212 33 -385 157.5t-272.5 316t-99.5 411.5q0 267 146 491zM1732 962
-q58 -150 59.5 -310.5t-48.5 -306t-153 -272t-246 -209.5q-230 -133 -498 -119l405 623q88 131 82.5 290.5t-106.5 277.5zM896 942q125 0 213.5 -88.5t88.5 -213.5t-88.5 -213.5t-213.5 -88.5t-213.5 88.5t-88.5 213.5t88.5 213.5t213.5 88.5z" />
- <glyph glyph-name="_579" unicode="&#xf269;" horiz-adv-x="1792"
-d="M903 -256q-283 0 -504.5 150.5t-329.5 398.5q-58 131 -67 301t26 332.5t111 312t179 242.5l-11 -281q11 14 68 15.5t70 -15.5q42 81 160.5 138t234.5 59q-54 -45 -119.5 -148.5t-58.5 -163.5q25 -8 62.5 -13.5t63 -7.5t68 -4t50.5 -3q15 -5 9.5 -45.5t-30.5 -75.5
-q-5 -7 -16.5 -18.5t-56.5 -35.5t-101 -34l15 -189l-139 67q-18 -43 -7.5 -81.5t36 -66.5t65.5 -41.5t81 -6.5q51 9 98 34.5t83.5 45t73.5 17.5q61 -4 89.5 -33t19.5 -65q-1 -2 -2.5 -5.5t-8.5 -12.5t-18 -15.5t-31.5 -10.5t-46.5 -1q-60 -95 -144.5 -135.5t-209.5 -29.5
-q74 -61 162.5 -82.5t168.5 -6t154.5 52t128 87.5t80.5 104q43 91 39 192.5t-37.5 188.5t-78.5 125q87 -38 137 -79.5t77 -112.5q15 170 -57.5 343t-209.5 284q265 -77 412 -279.5t151 -517.5q2 -127 -40.5 -255t-123.5 -238t-189 -196t-247.5 -135.5t-288.5 -49.5z" />
- <glyph glyph-name="_580" unicode="&#xf26a;" horiz-adv-x="1792"
-d="M1493 1308q-165 110 -359 110q-155 0 -293 -73t-240 -200q-75 -93 -119.5 -218t-48.5 -266v-42q4 -141 48.5 -266t119.5 -218q102 -127 240 -200t293 -73q194 0 359 110q-121 -108 -274.5 -168t-322.5 -60q-29 0 -43 1q-175 8 -333 82t-272 193t-181 281t-67 339
-q0 182 71 348t191 286t286 191t348 71h3q168 -1 320.5 -60.5t273.5 -167.5zM1792 640q0 -192 -77 -362.5t-213 -296.5q-104 -63 -222 -63q-137 0 -255 84q154 56 253.5 233t99.5 405q0 227 -99 404t-253 234q119 83 254 83q119 0 226 -65q135 -125 210.5 -295t75.5 -361z
-" />
- <glyph glyph-name="_581" unicode="&#xf26b;" horiz-adv-x="1792"
-d="M1792 599q0 -56 -7 -104h-1151q0 -146 109.5 -244.5t257.5 -98.5q99 0 185.5 46.5t136.5 130.5h423q-56 -159 -170.5 -281t-267.5 -188.5t-321 -66.5q-187 0 -356 83q-228 -116 -394 -116q-237 0 -237 263q0 115 45 275q17 60 109 229q199 360 475 606
-q-184 -79 -427 -354q63 274 283.5 449.5t501.5 175.5q30 0 45 -1q255 117 433 117q64 0 116 -13t94.5 -40.5t66.5 -76.5t24 -115q0 -116 -75 -286q101 -182 101 -390zM1722 1239q0 83 -53 132t-137 49q-108 0 -254 -70q121 -47 222.5 -131.5t170.5 -195.5q51 135 51 216z
-M128 2q0 -86 48.5 -132.5t134.5 -46.5q115 0 266 83q-122 72 -213.5 183t-137.5 245q-98 -205 -98 -332zM632 715h728q-5 142 -113 237t-251 95q-144 0 -251.5 -95t-112.5 -237z" />
- <glyph glyph-name="_582" unicode="&#xf26c;" horiz-adv-x="2048"
-d="M1792 288v960q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1248v-960q0 -66 -47 -113t-113 -47h-736v-128h352q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23
-v64q0 14 9 23t23 9h352v128h-736q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
- <glyph glyph-name="_583" unicode="&#xf26d;" horiz-adv-x="1792"
-d="M138 1408h197q-70 -64 -126 -149q-36 -56 -59 -115t-30 -125.5t-8.5 -120t10.5 -132t21 -126t28 -136.5q4 -19 6 -28q51 -238 81 -329q57 -171 152 -275h-272q-48 0 -82 34t-34 82v1304q0 48 34 82t82 34zM1346 1408h308q48 0 82 -34t34 -82v-1304q0 -48 -34 -82t-82 -34
-h-178q212 210 196 565l-469 -101q-2 -45 -12 -82t-31 -72t-59.5 -59.5t-93.5 -36.5q-123 -26 -199 40q-32 27 -53 61t-51.5 129t-64.5 258q-35 163 -45.5 263t-5.5 139t23 77q20 41 62.5 73t102.5 45q45 12 83.5 6.5t67 -17t54 -35t43 -48t34.5 -56.5l468 100
-q-68 175 -180 287z" />
- <glyph glyph-name="_584" unicode="&#xf26e;"
-d="M1401 -11l-6 -6q-113 -113 -259 -175q-154 -64 -317 -64q-165 0 -317 64q-148 63 -259 175q-113 112 -175 258q-42 103 -54 189q-4 28 48 36q51 8 56 -20q1 -1 1 -4q18 -90 46 -159q50 -124 152 -226q98 -98 226 -152q132 -56 276 -56q143 0 276 56q128 55 225 152l6 6
-q10 10 25 6q12 -3 33 -22q36 -37 17 -58zM929 604l-66 -66l63 -63q21 -21 -7 -49q-17 -17 -32 -17q-10 0 -19 10l-62 61l-66 -66q-5 -5 -15 -5q-15 0 -31 16l-2 2q-18 15 -18 29q0 7 8 17l66 65l-66 66q-16 16 14 45q18 18 31 18q6 0 13 -5l65 -66l65 65q18 17 48 -13
-q27 -27 11 -44zM1400 547q0 -118 -46 -228q-45 -105 -126 -186q-80 -80 -187 -126t-228 -46t-228 46t-187 126q-82 82 -125 186q-15 33 -15 40h-1q-9 27 43 44q50 16 60 -12q37 -99 97 -167h1v339v2q3 136 102 232q105 103 253 103q147 0 251 -103t104 -249
-q0 -147 -104.5 -251t-250.5 -104q-58 0 -112 16q-28 11 -13 61q16 51 44 43l14 -3q14 -3 33 -6t30 -3q104 0 176 71.5t72 174.5q0 101 -72 171q-71 71 -175 71q-107 0 -178 -80q-64 -72 -64 -160v-413q110 -67 242 -67q96 0 185 36.5t156 103.5t103.5 155t36.5 183
-q0 198 -141 339q-140 140 -339 140q-200 0 -340 -140q-53 -53 -77 -87l-2 -2q-8 -11 -13 -15.5t-21.5 -9.5t-38.5 3q-21 5 -36.5 16.5t-15.5 26.5v680q0 15 10.5 26.5t27.5 11.5h877q30 0 30 -55t-30 -55h-811v-483h1q40 42 102 84t108 61q109 46 231 46q121 0 228 -46
-t187 -126q81 -81 126 -186q46 -112 46 -229zM1369 1128q9 -8 9 -18t-5.5 -18t-16.5 -21q-26 -26 -39 -26q-9 0 -16 7q-106 91 -207 133q-128 56 -276 56q-133 0 -262 -49q-27 -10 -45 37q-9 25 -8 38q3 16 16 20q130 57 299 57q164 0 316 -64q137 -58 235 -152z" />
- <glyph glyph-name="_585" unicode="&#xf270;" horiz-adv-x="1792"
-d="M1551 60q15 6 26 3t11 -17.5t-15 -33.5q-13 -16 -44 -43.5t-95.5 -68t-141 -74t-188 -58t-229.5 -24.5q-119 0 -238 31t-209 76.5t-172.5 104t-132.5 105t-84 87.5q-8 9 -10 16.5t1 12t8 7t11.5 2t11.5 -4.5q192 -117 300 -166q389 -176 799 -90q190 40 391 135z
-M1758 175q11 -16 2.5 -69.5t-28.5 -102.5q-34 -83 -85 -124q-17 -14 -26 -9t0 24q21 45 44.5 121.5t6.5 98.5q-5 7 -15.5 11.5t-27 6t-29.5 2.5t-35 0t-31.5 -2t-31 -3t-22.5 -2q-6 -1 -13 -1.5t-11 -1t-8.5 -1t-7 -0.5h-5.5h-4.5t-3 0.5t-2 1.5l-1.5 3q-6 16 47 40t103 30
-q46 7 108 1t76 -24zM1364 618q0 -31 13.5 -64t32 -58t37.5 -46t33 -32l13 -11l-227 -224q-40 37 -79 75.5t-58 58.5l-19 20q-11 11 -25 33q-38 -59 -97.5 -102.5t-127.5 -63.5t-140 -23t-137.5 21t-117.5 65.5t-83 113t-31 162.5q0 84 28 154t72 116.5t106.5 83t122.5 57
-t130 34.5t119.5 18.5t99.5 6.5v127q0 65 -21 97q-34 53 -121 53q-6 0 -16.5 -1t-40.5 -12t-56 -29.5t-56 -59.5t-48 -96l-294 27q0 60 22 119t67 113t108 95t151.5 65.5t190.5 24.5q100 0 181 -25t129.5 -61.5t81 -83t45 -86t12.5 -73.5v-589zM692 597q0 -86 70 -133
-q66 -44 139 -22q84 25 114 123q14 45 14 101v162q-59 -2 -111 -12t-106.5 -33.5t-87 -71t-32.5 -114.5z" />
- <glyph glyph-name="_586" unicode="&#xf271;" horiz-adv-x="1792"
-d="M1536 1280q52 0 90 -38t38 -90v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128zM1152 1376v-288q0 -14 9 -23t23 -9
-h64q14 0 23 9t9 23v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM384 1376v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM1536 -128v1024h-1408v-1024h1408zM896 448h224q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-224
-v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v224q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-224z" />
- <glyph glyph-name="_587" unicode="&#xf272;" horiz-adv-x="1792"
-d="M1152 416v-64q0 -14 -9 -23t-23 -9h-576q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h576q14 0 23 -9t9 -23zM128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23
-t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47
-t47 -113v-96h128q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_588" unicode="&#xf273;" horiz-adv-x="1792"
-d="M1111 151l-46 -46q-9 -9 -22 -9t-23 9l-188 189l-188 -189q-10 -9 -23 -9t-22 9l-46 46q-9 9 -9 22t9 23l189 188l-189 188q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l188 -188l188 188q10 9 23 9t22 -9l46 -46q9 -9 9 -22t-9 -23l-188 -188l188 -188q9 -10 9 -23t-9 -22z
-M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280
-q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_589" unicode="&#xf274;" horiz-adv-x="1792"
-d="M1303 572l-512 -512q-10 -9 -23 -9t-23 9l-288 288q-9 10 -9 23t9 22l46 46q9 9 22 9t23 -9l220 -220l444 444q10 9 23 9t22 -9l46 -46q9 -9 9 -22t-9 -23zM128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23
-t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47
-t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
- <glyph glyph-name="_590" unicode="&#xf275;" horiz-adv-x="1792"
-d="M448 1536q26 0 45 -19t19 -45v-891l536 429q17 14 40 14q26 0 45 -19t19 -45v-379l536 429q17 14 40 14q26 0 45 -19t19 -45v-1152q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h384z" />
- <glyph glyph-name="_591" unicode="&#xf276;" horiz-adv-x="1024"
-d="M512 448q66 0 128 15v-655q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v655q62 -15 128 -15zM512 1536q212 0 362 -150t150 -362t-150 -362t-362 -150t-362 150t-150 362t150 362t362 150zM512 1312q14 0 23 9t9 23t-9 23t-23 9q-146 0 -249 -103t-103 -249
-q0 -14 9 -23t23 -9t23 9t9 23q0 119 84.5 203.5t203.5 84.5z" />
- <glyph glyph-name="_592" unicode="&#xf277;" horiz-adv-x="1792"
-d="M1745 1239q10 -10 10 -23t-10 -23l-141 -141q-28 -28 -68 -28h-1344q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h576v64q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-64h512q40 0 68 -28zM768 320h256v-512q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v512zM1600 768
-q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-1344q-40 0 -68 28l-141 141q-10 10 -10 23t10 23l141 141q28 28 68 28h512v192h256v-192h576z" />
- <glyph glyph-name="_593" unicode="&#xf278;" horiz-adv-x="2048"
-d="M2020 1525q28 -20 28 -53v-1408q0 -20 -11 -36t-29 -23l-640 -256q-24 -11 -48 0l-616 246l-616 -246q-10 -5 -24 -5q-19 0 -36 11q-28 20 -28 53v1408q0 20 11 36t29 23l640 256q24 11 48 0l616 -246l616 246q32 13 60 -6zM736 1390v-1270l576 -230v1270zM128 1173
-v-1270l544 217v1270zM1920 107v1270l-544 -217v-1270z" />
- <glyph glyph-name="_594" unicode="&#xf279;" horiz-adv-x="1792"
-d="M512 1536q13 0 22.5 -9.5t9.5 -22.5v-1472q0 -20 -17 -28l-480 -256q-7 -4 -15 -4q-13 0 -22.5 9.5t-9.5 22.5v1472q0 20 17 28l480 256q7 4 15 4zM1760 1536q13 0 22.5 -9.5t9.5 -22.5v-1472q0 -20 -17 -28l-480 -256q-7 -4 -15 -4q-13 0 -22.5 9.5t-9.5 22.5v1472
-q0 20 17 28l480 256q7 4 15 4zM640 1536q8 0 14 -3l512 -256q18 -10 18 -29v-1472q0 -13 -9.5 -22.5t-22.5 -9.5q-8 0 -14 3l-512 256q-18 10 -18 29v1472q0 13 9.5 22.5t22.5 9.5z" />
- <glyph glyph-name="_595" unicode="&#xf27a;" horiz-adv-x="1792"
-d="M640 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1408 640q0 53 -37.5 90.5t-90.5 37.5
-t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-110 0 -211 18q-173 -173 -435 -229q-52 -10 -86 -13q-12 -1 -22 6t-13 18q-4 15 20 37q5 5 23.5 21.5t25.5 23.5t23.5 25.5t24 31.5t20.5 37
-t20 48t14.5 57.5t12.5 72.5q-146 90 -229.5 216.5t-83.5 269.5q0 174 120 321.5t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />
- <glyph glyph-name="_596" unicode="&#xf27b;" horiz-adv-x="1792"
-d="M640 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1024 640q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 -53 -37.5 -90.5t-90.5 -37.5
-t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5
-t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51
-t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 130 71 248.5t191 204.5t286 136.5t348 50.5t348 -50.5t286 -136.5t191 -204.5t71 -248.5z" />
- <glyph glyph-name="_597" unicode="&#xf27c;" horiz-adv-x="1024"
-d="M512 345l512 295v-591l-512 -296v592zM0 640v-591l512 296zM512 1527v-591l-512 -296v591zM512 936l512 295v-591z" />
- <glyph glyph-name="_598" unicode="&#xf27d;" horiz-adv-x="1792"
-d="M1709 1018q-10 -236 -332 -651q-333 -431 -562 -431q-142 0 -240 263q-44 160 -132 482q-72 262 -157 262q-18 0 -127 -76l-77 98q24 21 108 96.5t130 115.5q156 138 241 146q95 9 153 -55.5t81 -203.5q44 -287 66 -373q55 -249 120 -249q51 0 154 161q101 161 109 246
-q13 139 -109 139q-57 0 -121 -26q120 393 459 382q251 -8 236 -326z" />
- <glyph glyph-name="f27e" unicode="&#xf27e;"
-d="M0 1408h1536v-1536h-1536v1536zM1085 293l-221 631l221 297h-634l221 -297l-221 -631l317 -304z" />
- <glyph glyph-name="uniF280" unicode="&#xf280;"
-d="M0 1408h1536v-1536h-1536v1536zM908 1088l-12 -33l75 -83l-31 -114l25 -25l107 57l107 -57l25 25l-31 114l75 83l-12 33h-95l-53 96h-32l-53 -96h-95zM641 925q32 0 44.5 -16t11.5 -63l174 21q0 55 -17.5 92.5t-50.5 56t-69 25.5t-85 7q-133 0 -199 -57.5t-66 -182.5v-72
-h-96v-128h76q20 0 20 -8v-382q0 -14 -5 -20t-18 -7l-73 -7v-88h448v86l-149 14q-6 1 -8.5 1.5t-3.5 2.5t-0.5 4t1 7t0.5 10v387h191l38 128h-231q-6 0 -2 6t4 9v80q0 27 1.5 40.5t7.5 28t19.5 20t36.5 5.5zM1248 96v86l-54 9q-7 1 -9.5 2.5t-2.5 3t1 7.5t1 12v520h-275
-l-23 -101l83 -22q23 -7 23 -27v-370q0 -14 -6 -18.5t-20 -6.5l-70 -9v-86h352z" />
- <glyph glyph-name="uniF281" unicode="&#xf281;" horiz-adv-x="1792"
-d="M1792 690q0 -58 -29.5 -105.5t-79.5 -72.5q12 -46 12 -96q0 -155 -106.5 -287t-290.5 -208.5t-400 -76.5t-399.5 76.5t-290 208.5t-106.5 287q0 47 11 94q-51 25 -82 73.5t-31 106.5q0 82 58 140.5t141 58.5q85 0 145 -63q218 152 515 162l116 521q3 13 15 21t26 5
-l369 -81q18 37 54 59.5t79 22.5q62 0 106 -43.5t44 -105.5t-44 -106t-106 -44t-105.5 43.5t-43.5 105.5l-334 74l-104 -472q300 -9 519 -160q58 61 143 61q83 0 141 -58.5t58 -140.5zM418 491q0 -62 43.5 -106t105.5 -44t106 44t44 106t-44 105.5t-106 43.5q-61 0 -105 -44
-t-44 -105zM1228 136q11 11 11 26t-11 26q-10 10 -25 10t-26 -10q-41 -42 -121 -62t-160 -20t-160 20t-121 62q-11 10 -26 10t-25 -10q-11 -10 -11 -25.5t11 -26.5q43 -43 118.5 -68t122.5 -29.5t91 -4.5t91 4.5t122.5 29.5t118.5 68zM1225 341q62 0 105.5 44t43.5 106
-q0 61 -44 105t-105 44q-62 0 -106 -43.5t-44 -105.5t44 -106t106 -44z" />
- <glyph glyph-name="_602" unicode="&#xf282;" horiz-adv-x="1792"
-d="M69 741h1q16 126 58.5 241.5t115 217t167.5 176t223.5 117.5t276.5 43q231 0 414 -105.5t294 -303.5q104 -187 104 -442v-188h-1125q1 -111 53.5 -192.5t136.5 -122.5t189.5 -57t213 -3t208 46.5t173.5 84.5v-377q-92 -55 -229.5 -92t-312.5 -38t-316 53
-q-189 73 -311.5 249t-124.5 372q-3 242 111 412t325 268q-48 -60 -78 -125.5t-46 -159.5h635q8 77 -8 140t-47 101.5t-70.5 66.5t-80.5 41t-75 20.5t-56 8.5l-22 1q-135 -5 -259.5 -44.5t-223.5 -104.5t-176 -140.5t-138 -163.5z" />
- <glyph glyph-name="_603" unicode="&#xf283;" horiz-adv-x="2304"
-d="M0 32v608h2304v-608q0 -66 -47 -113t-113 -47h-1984q-66 0 -113 47t-47 113zM640 256v-128h384v128h-384zM256 256v-128h256v128h-256zM2144 1408q66 0 113 -47t47 -113v-224h-2304v224q0 66 47 113t113 47h1984z" />
- <glyph glyph-name="_604" unicode="&#xf284;" horiz-adv-x="1792"
-d="M1584 246l-218 111q-74 -120 -196.5 -189t-263.5 -69q-147 0 -271 72t-196 196t-72 270q0 110 42.5 209.5t115 172t172 115t209.5 42.5q131 0 247.5 -60.5t192.5 -168.5l215 125q-110 169 -286.5 265t-378.5 96q-161 0 -308 -63t-253 -169t-169 -253t-63 -308t63 -308
-t169 -253t253 -169t308 -63q213 0 397.5 107t290.5 292zM1030 643l693 -352q-116 -253 -334.5 -400t-492.5 -147q-182 0 -348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71q260 0 470.5 -133.5t335.5 -366.5zM1543 640h-39v-160h-96v352h136q32 0 54.5 -20
-t28.5 -48t1 -56t-27.5 -48t-57.5 -20z" />
- <glyph glyph-name="uniF285" unicode="&#xf285;" horiz-adv-x="1792"
-d="M1427 827l-614 386l92 151h855zM405 562l-184 116v858l1183 -743zM1424 697l147 -95v-858l-532 335zM1387 718l-500 -802h-855l356 571z" />
- <glyph glyph-name="uniF286" unicode="&#xf286;" horiz-adv-x="1792"
-d="M640 528v224q0 16 -16 16h-96q-16 0 -16 -16v-224q0 -16 16 -16h96q16 0 16 16zM1152 528v224q0 16 -16 16h-96q-16 0 -16 -16v-224q0 -16 16 -16h96q16 0 16 16zM1664 496v-752h-640v320q0 80 -56 136t-136 56t-136 -56t-56 -136v-320h-640v752q0 16 16 16h96
-q16 0 16 -16v-112h128v624q0 16 16 16h96q16 0 16 -16v-112h128v112q0 16 16 16h96q16 0 16 -16v-112h128v112q0 6 2.5 9.5t8.5 5t9.5 2t11.5 0t9 -0.5v391q-32 15 -32 50q0 23 16.5 39t38.5 16t38.5 -16t16.5 -39q0 -35 -32 -50v-17q45 10 83 10q21 0 59.5 -7.5t54.5 -7.5
-q17 0 47 7.5t37 7.5q16 0 16 -16v-210q0 -15 -35 -21.5t-62 -6.5q-18 0 -54.5 7.5t-55.5 7.5q-40 0 -90 -12v-133q1 0 9 0.5t11.5 0t9.5 -2t8.5 -5t2.5 -9.5v-112h128v112q0 16 16 16h96q16 0 16 -16v-112h128v112q0 16 16 16h96q16 0 16 -16v-624h128v112q0 16 16 16h96
-q16 0 16 -16z" />
- <glyph glyph-name="_607" unicode="&#xf287;" horiz-adv-x="2304"
-d="M2288 731q16 -8 16 -27t-16 -27l-320 -192q-8 -5 -16 -5q-9 0 -16 4q-16 10 -16 28v128h-858q37 -58 83 -165q16 -37 24.5 -55t24 -49t27 -47t27 -34t31.5 -26t33 -8h96v96q0 14 9 23t23 9h320q14 0 23 -9t9 -23v-320q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v96h-96
-q-32 0 -61 10t-51 23.5t-45 40.5t-37 46t-33.5 57t-28.5 57.5t-28 60.5q-23 53 -37 81.5t-36 65t-44.5 53.5t-46.5 17h-360q-22 -84 -91 -138t-157 -54q-106 0 -181 75t-75 181t75 181t181 75q88 0 157 -54t91 -138h104q24 0 46.5 17t44.5 53.5t36 65t37 81.5q19 41 28 60.5
-t28.5 57.5t33.5 57t37 46t45 40.5t51 23.5t61 10h107q21 57 70 92.5t111 35.5q80 0 136 -56t56 -136t-56 -136t-136 -56q-62 0 -111 35.5t-70 92.5h-107q-17 0 -33 -8t-31.5 -26t-27 -34t-27 -47t-24 -49t-24.5 -55q-46 -107 -83 -165h1114v128q0 18 16 28t32 -1z" />
- <glyph glyph-name="_608" unicode="&#xf288;" horiz-adv-x="1792"
-d="M1150 774q0 -56 -39.5 -95t-95.5 -39h-253v269h253q56 0 95.5 -39.5t39.5 -95.5zM1329 774q0 130 -91.5 222t-222.5 92h-433v-896h180v269h253q130 0 222 91.5t92 221.5zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348
-t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="_609" unicode="&#xf289;" horiz-adv-x="2304"
-d="M1645 438q0 59 -34 106.5t-87 68.5q-7 -45 -23 -92q-7 -24 -27.5 -38t-44.5 -14q-12 0 -24 3q-31 10 -45 38.5t-4 58.5q23 71 23 143q0 123 -61 227.5t-166 165.5t-228 61q-134 0 -247 -73t-167 -194q108 -28 188 -106q22 -23 22 -55t-22 -54t-54 -22t-55 22
-q-75 75 -180 75q-106 0 -181 -74.5t-75 -180.5t75 -180.5t181 -74.5h1046q79 0 134.5 55.5t55.5 133.5zM1798 438q0 -142 -100.5 -242t-242.5 -100h-1046q-169 0 -289 119.5t-120 288.5q0 153 100 267t249 136q62 184 221 298t354 114q235 0 408.5 -158.5t196.5 -389.5
-q116 -25 192.5 -118.5t76.5 -214.5zM2048 438q0 -175 -97 -319q-23 -33 -64 -33q-24 0 -43 13q-26 17 -32 48.5t12 57.5q71 104 71 233t-71 233q-18 26 -12 57t32 49t57.5 11.5t49.5 -32.5q97 -142 97 -318zM2304 438q0 -244 -134 -443q-23 -34 -64 -34q-23 0 -42 13
-q-26 18 -32.5 49t11.5 57q108 164 108 358q0 195 -108 357q-18 26 -11.5 57.5t32.5 48.5q26 18 57 12t49 -33q134 -198 134 -442z" />
- <glyph glyph-name="_610" unicode="&#xf28a;"
-d="M1500 -13q0 -89 -63 -152.5t-153 -63.5t-153.5 63.5t-63.5 152.5q0 90 63.5 153.5t153.5 63.5t153 -63.5t63 -153.5zM1267 268q-115 -15 -192.5 -102.5t-77.5 -205.5q0 -74 33 -138q-146 -78 -379 -78q-109 0 -201 21t-153.5 54.5t-110.5 76.5t-76 85t-44.5 83
-t-23.5 66.5t-6 39.5q0 19 4.5 42.5t18.5 56t36.5 58t64 43.5t94.5 18t94 -17.5t63 -41t35.5 -53t17.5 -49t4 -33.5q0 -34 -23 -81q28 -27 82 -42t93 -17l40 -1q115 0 190 51t75 133q0 26 -9 48.5t-31.5 44.5t-49.5 41t-74 44t-93.5 47.5t-119.5 56.5q-28 13 -43 20
-q-116 55 -187 100t-122.5 102t-72 125.5t-20.5 162.5q0 78 20.5 150t66 137.5t112.5 114t166.5 77t221.5 28.5q120 0 220 -26t164.5 -67t109.5 -94t64 -105.5t19 -103.5q0 -46 -15 -82.5t-36.5 -58t-48.5 -36t-49 -19.5t-39 -5h-8h-32t-39 5t-44 14t-41 28t-37 46t-24 70.5
-t-10 97.5q-15 16 -59 25.5t-81 10.5l-37 1q-68 0 -117.5 -31t-70.5 -70t-21 -76q0 -24 5 -43t24 -46t53 -51t97 -53.5t150 -58.5q76 -25 138.5 -53.5t109 -55.5t83 -59t60.5 -59.5t41 -62.5t26.5 -62t14.5 -63.5t6 -62t1 -62.5z" />
- <glyph glyph-name="_611" unicode="&#xf28b;"
-d="M704 352v576q0 14 -9 23t-23 9h-256q-14 0 -23 -9t-9 -23v-576q0 -14 9 -23t23 -9h256q14 0 23 9t9 23zM1152 352v576q0 14 -9 23t-23 9h-256q-14 0 -23 -9t-9 -23v-576q0 -14 9 -23t23 -9h256q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103
-t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="_612" unicode="&#xf28c;"
-d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM768 96q148 0 273 73t198 198t73 273t-73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273
-t73 -273t198 -198t273 -73zM864 320q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-192zM480 320q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-192z" />
- <glyph glyph-name="_613" unicode="&#xf28d;"
-d="M1088 352v576q0 14 -9 23t-23 9h-576q-14 0 -23 -9t-9 -23v-576q0 -14 9 -23t23 -9h576q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5
-t103 -385.5z" />
- <glyph glyph-name="_614" unicode="&#xf28e;"
-d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM768 96q148 0 273 73t198 198t73 273t-73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273
-t73 -273t198 -198t273 -73zM480 320q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h576q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-576z" />
- <glyph glyph-name="_615" unicode="&#xf290;" horiz-adv-x="1792"
-d="M1757 128l35 -313q3 -28 -16 -50q-19 -21 -48 -21h-1664q-29 0 -48 21q-19 22 -16 50l35 313h1722zM1664 967l86 -775h-1708l86 775q3 24 21 40.5t43 16.5h256v-128q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5v128h384v-128q0 -53 37.5 -90.5t90.5 -37.5
-t90.5 37.5t37.5 90.5v128h256q25 0 43 -16.5t21 -40.5zM1280 1152v-256q0 -26 -19 -45t-45 -19t-45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-256q0 -26 -19 -45t-45 -19t-45 19t-19 45v256q0 159 112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" />
- <glyph glyph-name="_616" unicode="&#xf291;" horiz-adv-x="2048"
-d="M1920 768q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5h-15l-115 -662q-8 -46 -44 -76t-82 -30h-1280q-46 0 -82 30t-44 76l-115 662h-15q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5h1792zM485 -32q26 2 43.5 22.5t15.5 46.5l-32 416q-2 26 -22.5 43.5
-t-46.5 15.5t-43.5 -22.5t-15.5 -46.5l32 -416q2 -25 20.5 -42t43.5 -17h5zM896 32v416q0 26 -19 45t-45 19t-45 -19t-19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45zM1280 32v416q0 26 -19 45t-45 19t-45 -19t-19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45zM1632 27l32 416
-q2 26 -15.5 46.5t-43.5 22.5t-46.5 -15.5t-22.5 -43.5l-32 -416q-2 -26 15.5 -46.5t43.5 -22.5h5q25 0 43.5 17t20.5 42zM476 1244l-93 -412h-132l101 441q19 88 89 143.5t160 55.5h167q0 26 19 45t45 19h384q26 0 45 -19t19 -45h167q90 0 160 -55.5t89 -143.5l101 -441
-h-132l-93 412q-11 44 -45.5 72t-79.5 28h-167q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45h-167q-45 0 -79.5 -28t-45.5 -72z" />
- <glyph glyph-name="_617" unicode="&#xf292;" horiz-adv-x="1792"
-d="M991 512l64 256h-254l-64 -256h254zM1759 1016l-56 -224q-7 -24 -31 -24h-327l-64 -256h311q15 0 25 -12q10 -14 6 -28l-56 -224q-5 -24 -31 -24h-327l-81 -328q-7 -24 -31 -24h-224q-16 0 -26 12q-9 12 -6 28l78 312h-254l-81 -328q-7 -24 -31 -24h-225q-15 0 -25 12
-q-9 12 -6 28l78 312h-311q-15 0 -25 12q-9 12 -6 28l56 224q7 24 31 24h327l64 256h-311q-15 0 -25 12q-10 14 -6 28l56 224q5 24 31 24h327l81 328q7 24 32 24h224q15 0 25 -12q9 -12 6 -28l-78 -312h254l81 328q7 24 32 24h224q15 0 25 -12q9 -12 6 -28l-78 -312h311
-q15 0 25 -12q9 -12 6 -28z" />
- <glyph glyph-name="_618" unicode="&#xf293;"
-d="M841 483l148 -148l-149 -149zM840 1094l149 -149l-148 -148zM710 -130l464 464l-306 306l306 306l-464 464v-611l-255 255l-93 -93l320 -321l-320 -321l93 -93l255 255v-611zM1429 640q0 -209 -32 -365.5t-87.5 -257t-140.5 -162.5t-181.5 -86.5t-219.5 -24.5
-t-219.5 24.5t-181.5 86.5t-140.5 162.5t-87.5 257t-32 365.5t32 365.5t87.5 257t140.5 162.5t181.5 86.5t219.5 24.5t219.5 -24.5t181.5 -86.5t140.5 -162.5t87.5 -257t32 -365.5z" />
- <glyph glyph-name="_619" unicode="&#xf294;" horiz-adv-x="1024"
-d="M596 113l173 172l-173 172v-344zM596 823l173 172l-173 172v-344zM628 640l356 -356l-539 -540v711l-297 -296l-108 108l372 373l-372 373l108 108l297 -296v711l539 -540z" />
- <glyph glyph-name="_620" unicode="&#xf295;"
-d="M1280 256q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM512 1024q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1536 256q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5
-t112.5 -271.5zM1440 1344q0 -20 -13 -38l-1056 -1408q-19 -26 -51 -26h-160q-26 0 -45 19t-19 45q0 20 13 38l1056 1408q19 26 51 26h160q26 0 45 -19t19 -45zM768 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5
-t271.5 -112.5t112.5 -271.5z" />
- <glyph glyph-name="_621" unicode="&#xf296;" horiz-adv-x="1792"
-d="M104 830l792 -1015l-868 630q-18 13 -25 34.5t0 42.5l101 308v0zM566 830h660l-330 -1015v0zM368 1442l198 -612h-462l198 612q8 23 33 23t33 -23zM1688 830l101 -308q7 -21 0 -42.5t-25 -34.5l-868 -630l792 1015v0zM1688 830h-462l198 612q8 23 33 23t33 -23z" />
- <glyph glyph-name="_622" unicode="&#xf297;" horiz-adv-x="1792"
-d="M384 704h160v224h-160v-224zM1221 372v92q-104 -36 -243 -38q-135 -1 -259.5 46.5t-220.5 122.5l1 -96q88 -80 212 -128.5t272 -47.5q129 0 238 49zM640 704h640v224h-640v-224zM1792 736q0 -187 -99 -352q89 -102 89 -229q0 -157 -129.5 -268t-313.5 -111
-q-122 0 -225 52.5t-161 140.5q-19 -1 -57 -1t-57 1q-58 -88 -161 -140.5t-225 -52.5q-184 0 -313.5 111t-129.5 268q0 127 89 229q-99 165 -99 352q0 209 120 385.5t326.5 279.5t449.5 103t449.5 -103t326.5 -279.5t120 -385.5z" />
- <glyph glyph-name="_623" unicode="&#xf298;"
-d="M515 625v-128h-252v128h252zM515 880v-127h-252v127h252zM1273 369v-128h-341v128h341zM1273 625v-128h-672v128h672zM1273 880v-127h-672v127h672zM1408 20v1240q0 8 -6 14t-14 6h-32l-378 -256l-210 171l-210 -171l-378 256h-32q-8 0 -14 -6t-6 -14v-1240q0 -8 6 -14
-t14 -6h1240q8 0 14 6t6 14zM553 1130l185 150h-406zM983 1130l221 150h-406zM1536 1260v-1240q0 -62 -43 -105t-105 -43h-1240q-62 0 -105 43t-43 105v1240q0 62 43 105t105 43h1240q62 0 105 -43t43 -105z" />
- <glyph glyph-name="_624" unicode="&#xf299;" horiz-adv-x="1792"
-d="M896 720q-104 196 -160 278q-139 202 -347 318q-34 19 -70 36q-89 40 -94 32t34 -38l39 -31q62 -43 112.5 -93.5t94.5 -116.5t70.5 -113t70.5 -131q9 -17 13 -25q44 -84 84 -153t98 -154t115.5 -150t131 -123.5t148.5 -90.5q153 -66 154 -60q1 3 -49 37q-53 36 -81 57
-q-77 58 -179 211t-185 310zM549 177q-76 60 -132.5 125t-98 143.5t-71 154.5t-58.5 186t-52 209t-60.5 252t-76.5 289q273 0 497.5 -36t379 -92t271 -144.5t185.5 -172.5t110 -198.5t56 -199.5t12.5 -198.5t-9.5 -173t-20 -143.5t-13 -107l323 -327h-104l-281 285
-q-22 -2 -91.5 -14t-121.5 -19t-138 -6t-160.5 17t-167.5 59t-179 111z" />
- <glyph glyph-name="_625" unicode="&#xf29a;" horiz-adv-x="1792"
-d="M1374 879q-6 26 -28.5 39.5t-48.5 7.5q-261 -62 -401 -62t-401 62q-26 6 -48.5 -7.5t-28.5 -39.5t7.5 -48.5t39.5 -28.5q194 -46 303 -58q-2 -158 -15.5 -269t-26.5 -155.5t-41 -115.5l-9 -21q-10 -25 1 -49t36 -34q9 -4 23 -4q44 0 60 41l8 20q54 139 71 259h42
-q17 -120 71 -259l8 -20q16 -41 60 -41q14 0 23 4q25 10 36 34t1 49l-9 21q-28 71 -41 115.5t-26.5 155.5t-15.5 269q109 12 303 58q26 6 39.5 28.5t7.5 48.5zM1024 1024q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5z
-M1600 640q0 -143 -55.5 -273.5t-150 -225t-225 -150t-273.5 -55.5t-273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5zM896 1408q-156 0 -298 -61t-245 -164t-164 -245t-61 -298t61 -298
-t164 -245t245 -164t298 -61t298 61t245 164t164 245t61 298t-61 298t-164 245t-245 164t-298 61zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="_626" unicode="&#xf29b;"
-d="M1438 723q34 -35 29 -82l-44 -551q-4 -42 -34.5 -70t-71.5 -28q-6 0 -9 1q-44 3 -72.5 36.5t-25.5 77.5l35 429l-143 -8q55 -113 55 -240q0 -216 -148 -372l-137 137q91 101 91 235q0 145 -102.5 248t-247.5 103q-134 0 -236 -92l-137 138q120 114 284 141l264 300
-l-149 87l-181 -161q-33 -30 -77 -27.5t-73 35.5t-26.5 77t34.5 73l239 213q26 23 60 26.5t64 -14.5l488 -283q36 -21 48 -68q17 -67 -26 -117l-205 -232l371 20q49 3 83 -32zM1240 1180q-74 0 -126 52t-52 126t52 126t126 52t126.5 -52t52.5 -126t-52.5 -126t-126.5 -52z
-M613 -62q106 0 196 61l139 -139q-146 -116 -335 -116q-148 0 -273.5 73t-198.5 198t-73 273q0 188 116 336l139 -139q-60 -88 -60 -197q0 -145 102.5 -247.5t247.5 -102.5z" />
- <glyph glyph-name="_627" unicode="&#xf29c;"
-d="M880 336v-160q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v160q0 14 9 23t23 9h160q14 0 23 -9t9 -23zM1136 832q0 -50 -15 -90t-45.5 -69t-52 -44t-59.5 -36q-32 -18 -46.5 -28t-26 -24t-11.5 -29v-32q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v68q0 35 10.5 64.5
-t24 47.5t39 35.5t41 25.5t44.5 21q53 25 75 43t22 49q0 42 -43.5 71.5t-95.5 29.5q-56 0 -95 -27q-29 -20 -80 -83q-9 -12 -25 -12q-11 0 -19 6l-108 82q-10 7 -12 20t5 23q122 192 349 192q129 0 238.5 -89.5t109.5 -214.5zM768 1280q-130 0 -248.5 -51t-204 -136.5
-t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5
-t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="_628" unicode="&#xf29d;" horiz-adv-x="1408"
-d="M366 1225q-64 0 -110 45.5t-46 110.5q0 64 46 109.5t110 45.5t109.5 -45.5t45.5 -109.5q0 -65 -45.5 -110.5t-109.5 -45.5zM917 583q0 -50 -30 -67.5t-63.5 -6.5t-47.5 34l-367 438q-7 12 -14 15.5t-11 1.5l-3 -3q-7 -8 4 -21l122 -139l1 -354l-161 -457
-q-67 -192 -92 -234q-15 -26 -28 -32q-50 -26 -103 -1q-29 13 -41.5 43t-9.5 57q2 17 197 618l5 416l-85 -164l35 -222q4 -24 -1 -42t-14 -27.5t-19 -16t-17 -7.5l-7 -2q-19 -3 -34.5 3t-24 16t-14 22t-7.5 19.5t-2 9.5l-46 299l211 381q23 34 113 34q75 0 107 -40l424 -521
-q7 -5 14 -17l3 -3l-1 -1q7 -13 7 -29zM514 433q43 -113 88.5 -225t69.5 -168l24 -55q36 -93 42 -125q11 -70 -36 -97q-35 -22 -66 -16t-51 22t-29 35h-1q-6 16 -8 25l-124 351zM1338 -159q31 -49 31 -57q0 -5 -3 -7q-9 -5 -14.5 0.5t-15.5 26t-16 30.5q-114 172 -423 661
-q3 -1 7 1t7 4l3 2q11 9 11 17z" />
- <glyph glyph-name="_629" unicode="&#xf29e;" horiz-adv-x="2304"
-d="M504 542h171l-1 265zM1530 641q0 87 -50.5 140t-146.5 53h-54v-388h52q91 0 145 57t54 138zM956 1018l1 -756q0 -14 -9.5 -24t-23.5 -10h-216q-14 0 -23.5 10t-9.5 24v62h-291l-55 -81q-10 -15 -28 -15h-267q-21 0 -30.5 18t3.5 35l556 757q9 14 27 14h332q14 0 24 -10
-t10 -24zM1783 641q0 -193 -125.5 -303t-324.5 -110h-270q-14 0 -24 10t-10 24v756q0 14 10 24t24 10h268q200 0 326 -109t126 -302zM1939 640q0 -11 -0.5 -29t-8 -71.5t-21.5 -102t-44.5 -108t-73.5 -102.5h-51q38 45 66.5 104.5t41.5 112t21 98t9 72.5l1 27q0 8 -0.5 22.5
-t-7.5 60t-20 91.5t-41 111.5t-66 124.5h43q41 -47 72 -107t45.5 -111.5t23 -96t10.5 -70.5zM2123 640q0 -11 -0.5 -29t-8 -71.5t-21.5 -102t-45 -108t-74 -102.5h-51q38 45 66.5 104.5t41.5 112t21 98t9 72.5l1 27q0 8 -0.5 22.5t-7.5 60t-19.5 91.5t-40.5 111.5t-66 124.5
-h43q41 -47 72 -107t45.5 -111.5t23 -96t10.5 -70.5zM2304 640q0 -11 -0.5 -29t-8 -71.5t-21.5 -102t-44.5 -108t-73.5 -102.5h-51q38 45 66 104.5t41 112t21 98t9 72.5l1 27q0 8 -0.5 22.5t-7.5 60t-19.5 91.5t-40.5 111.5t-66 124.5h43q41 -47 72 -107t45.5 -111.5t23 -96
-t9.5 -70.5z" />
- <glyph glyph-name="uniF2A0" unicode="&#xf2a0;" horiz-adv-x="1408"
-d="M617 -153q0 11 -13 58t-31 107t-20 69q-1 4 -5 26.5t-8.5 36t-13.5 21.5q-15 14 -51 14q-23 0 -70 -5.5t-71 -5.5q-34 0 -47 11q-6 5 -11 15.5t-7.5 20t-6.5 24t-5 18.5q-37 128 -37 255t37 255q1 4 5 18.5t6.5 24t7.5 20t11 15.5q13 11 47 11q24 0 71 -5.5t70 -5.5
-q36 0 51 14q9 8 13.5 21.5t8.5 36t5 26.5q2 9 20 69t31 107t13 58q0 22 -43.5 52.5t-75.5 42.5q-20 8 -45 8q-34 0 -98 -18q-57 -17 -96.5 -40.5t-71 -66t-46 -70t-45.5 -94.5q-6 -12 -9 -19q-49 -107 -68 -216t-19 -244t19 -244t68 -216q56 -122 83 -161q63 -91 179 -127
-l6 -2q64 -18 98 -18q25 0 45 8q32 12 75.5 42.5t43.5 52.5zM776 760q-26 0 -45 19t-19 45.5t19 45.5q37 37 37 90q0 52 -37 91q-19 19 -19 45t19 45t45 19t45 -19q75 -75 75 -181t-75 -181q-21 -19 -45 -19zM957 579q-27 0 -45 19q-19 19 -19 45t19 45q112 114 112 272
-t-112 272q-19 19 -19 45t19 45t45 19t45 -19q150 -150 150 -362t-150 -362q-18 -19 -45 -19zM1138 398q-27 0 -45 19q-19 19 -19 45t19 45q90 91 138.5 208t48.5 245t-48.5 245t-138.5 208q-19 19 -19 45t19 45t45 19t45 -19q109 -109 167 -249t58 -294t-58 -294t-167 -249
-q-18 -19 -45 -19z" />
- <glyph glyph-name="uniF2A1" unicode="&#xf2a1;" horiz-adv-x="2176"
-d="M192 352q-66 0 -113 -47t-47 -113t47 -113t113 -47t113 47t47 113t-47 113t-113 47zM704 352q-66 0 -113 -47t-47 -113t47 -113t113 -47t113 47t47 113t-47 113t-113 47zM704 864q-66 0 -113 -47t-47 -113t47 -113t113 -47t113 47t47 113t-47 113t-113 47zM1472 352
-q-66 0 -113 -47t-47 -113t47 -113t113 -47t113 47t47 113t-47 113t-113 47zM1984 352q-66 0 -113 -47t-47 -113t47 -113t113 -47t113 47t47 113t-47 113t-113 47zM1472 864q-66 0 -113 -47t-47 -113t47 -113t113 -47t113 47t47 113t-47 113t-113 47zM1984 864
-q-66 0 -113 -47t-47 -113t47 -113t113 -47t113 47t47 113t-47 113t-113 47zM1984 1376q-66 0 -113 -47t-47 -113t47 -113t113 -47t113 47t47 113t-47 113t-113 47zM384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 192q0 -80 -56 -136
-t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 704q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 704q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 1216q0 -80 -56 -136t-136 -56
-t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 1216q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM2176 192q0 -80 -56 -136t-136 -56t-136 56
-t-56 136t56 136t136 56t136 -56t56 -136zM1664 704q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM2176 704q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 1216q0 -80 -56 -136t-136 -56t-136 56t-56 136
-t56 136t136 56t136 -56t56 -136zM2176 1216q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136z" />
- <glyph glyph-name="uniF2A2" unicode="&#xf2a2;" horiz-adv-x="1792"
-d="M128 -192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM320 0q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM365 365l256 -256l-90 -90l-256 256zM704 384q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45z
-M1411 704q0 -59 -11.5 -108.5t-37.5 -93.5t-44 -67.5t-53 -64.5q-31 -35 -45.5 -54t-33.5 -50t-26.5 -64t-7.5 -74q0 -159 -112.5 -271.5t-271.5 -112.5q-26 0 -45 19t-19 45t19 45t45 19q106 0 181 75t75 181q0 57 11.5 105.5t37 91t43.5 66.5t52 63q40 46 59.5 72
-t37.5 74.5t18 103.5q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5q0 -26 -19 -45t-45 -19t-45 19t-19 45q0 117 45.5 223.5t123 184t184 123t223.5 45.5t223.5 -45.5t184 -123t123 -184t45.5 -223.5zM896 576q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45
-t45 19t45 -19t19 -45zM1184 704q0 -26 -19 -45t-45 -19t-45 19t-19 45q0 93 -65.5 158.5t-158.5 65.5q-92 0 -158 -65.5t-66 -158.5q0 -26 -19 -45t-45 -19t-45 19t-19 45q0 146 103 249t249 103t249 -103t103 -249zM1578 993q10 -25 -1 -49t-36 -34q-9 -4 -23 -4
-q-19 0 -35.5 11t-23.5 30q-68 178 -224 295q-21 16 -25 42t12 47q17 21 43 25t47 -12q183 -137 266 -351zM1788 1074q9 -25 -1.5 -49t-35.5 -34q-11 -4 -23 -4q-44 0 -60 41q-92 238 -297 393q-22 16 -25.5 42t12.5 47q16 22 42 25.5t47 -12.5q235 -175 341 -449z" />
- <glyph glyph-name="uniF2A3" unicode="&#xf2a3;" horiz-adv-x="2304"
-d="M1032 576q-59 2 -84 55q-17 34 -48 53.5t-68 19.5q-53 0 -90.5 -37.5t-37.5 -90.5q0 -56 36 -89l10 -8q34 -31 82 -31q37 0 68 19.5t48 53.5q25 53 84 55zM1600 704q0 56 -36 89l-10 8q-34 31 -82 31q-37 0 -68 -19.5t-48 -53.5q-25 -53 -84 -55q59 -2 84 -55
-q17 -34 48 -53.5t68 -19.5q53 0 90.5 37.5t37.5 90.5zM1174 925q-17 -35 -55 -48t-73 4q-62 31 -134 31q-51 0 -99 -17q3 0 9.5 0.5t9.5 0.5q92 0 170.5 -50t118.5 -133q17 -36 3.5 -73.5t-49.5 -54.5q-18 -9 -39 -9q21 0 39 -9q36 -17 49.5 -54.5t-3.5 -73.5
-q-40 -83 -118.5 -133t-170.5 -50h-6q-16 2 -44 4l-290 27l-239 -120q-14 -7 -29 -7q-40 0 -57 35l-160 320q-11 23 -4 47.5t29 37.5l209 119l148 267q17 155 91.5 291.5t195.5 236.5q31 25 70.5 21.5t64.5 -34.5t21.5 -70t-34.5 -65q-70 -59 -117 -128q123 84 267 101
-q40 5 71.5 -19t35.5 -64q5 -40 -19 -71.5t-64 -35.5q-84 -10 -159 -55q46 10 99 10q115 0 218 -50q36 -18 49 -55.5t-5 -73.5zM2137 1085l160 -320q11 -23 4 -47.5t-29 -37.5l-209 -119l-148 -267q-17 -155 -91.5 -291.5t-195.5 -236.5q-26 -22 -61 -22q-45 0 -74 35
-q-25 31 -21.5 70t34.5 65q70 59 117 128q-123 -84 -267 -101q-4 -1 -12 -1q-36 0 -63.5 24t-31.5 60q-5 40 19 71.5t64 35.5q84 10 159 55q-46 -10 -99 -10q-115 0 -218 50q-36 18 -49 55.5t5 73.5q17 35 55 48t73 -4q62 -31 134 -31q51 0 99 17q-3 0 -9.5 -0.5t-9.5 -0.5
-q-92 0 -170.5 50t-118.5 133q-17 36 -3.5 73.5t49.5 54.5q18 9 39 9q-21 0 -39 9q-36 17 -49.5 54.5t3.5 73.5q40 83 118.5 133t170.5 50h6h1q14 -2 42 -4l291 -27l239 120q14 7 29 7q40 0 57 -35z" />
- <glyph glyph-name="uniF2A4" unicode="&#xf2a4;" horiz-adv-x="1792"
-d="M1056 704q0 -26 19 -45t45 -19t45 19t19 45q0 146 -103 249t-249 103t-249 -103t-103 -249q0 -26 19 -45t45 -19t45 19t19 45q0 93 66 158.5t158 65.5t158 -65.5t66 -158.5zM835 1280q-117 0 -223.5 -45.5t-184 -123t-123 -184t-45.5 -223.5q0 -26 19 -45t45 -19t45 19
-t19 45q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5q0 -55 -18 -103.5t-37.5 -74.5t-59.5 -72q-34 -39 -52 -63t-43.5 -66.5t-37 -91t-11.5 -105.5q0 -106 -75 -181t-181 -75q-26 0 -45 -19t-19 -45t19 -45t45 -19q159 0 271.5 112.5t112.5 271.5q0 41 7.5 74
-t26.5 64t33.5 50t45.5 54q35 41 53 64.5t44 67.5t37.5 93.5t11.5 108.5q0 117 -45.5 223.5t-123 184t-184 123t-223.5 45.5zM591 561l226 -226l-579 -579q-12 -12 -29 -12t-29 12l-168 168q-12 12 -12 29t12 29zM1612 1524l168 -168q12 -12 12 -29t-12 -30l-233 -233
-l-26 -25l-71 -71q-66 153 -195 258l91 91l207 207q13 12 30 12t29 -12z" />
- <glyph glyph-name="uniF2A5" unicode="&#xf2a5;"
-d="M866 1021q0 -27 -13 -94q-11 -50 -31.5 -150t-30.5 -150q-2 -11 -4.5 -12.5t-13.5 -2.5q-20 -2 -31 -2q-58 0 -84 49.5t-26 113.5q0 88 35 174t103 124q28 14 51 14q28 0 36.5 -16.5t8.5 -47.5zM1352 597q0 14 -39 75.5t-52 66.5q-21 8 -34 8q-91 0 -226 -77l-2 2
-q3 22 27.5 135t24.5 178q0 233 -242 233q-24 0 -68 -6q-94 -17 -168.5 -89.5t-111.5 -166.5t-37 -189q0 -146 80.5 -225t227.5 -79q25 0 25 -3t-1 -5q-4 -34 -26 -117q-14 -52 -51.5 -101t-82.5 -49q-42 0 -42 47q0 24 10.5 47.5t25 39.5t29.5 28.5t26 20t11 8.5q0 3 -7 10
-q-24 22 -58.5 36.5t-65.5 14.5q-35 0 -63.5 -34t-41 -75t-12.5 -75q0 -88 51.5 -142t138.5 -54q82 0 155 53t117.5 126t65.5 153q6 22 15.5 66.5t14.5 66.5q3 12 14 18q118 60 227 60q48 0 127 -18q1 -1 4 -1q5 0 9.5 4.5t4.5 8.5zM1536 1120v-960q0 -119 -84.5 -203.5
-t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="uniF2A6" unicode="&#xf2a6;" horiz-adv-x="1535"
-d="M744 1231q0 24 -2 38.5t-8.5 30t-21 23t-37.5 7.5q-39 0 -78 -23q-105 -58 -159 -190.5t-54 -269.5q0 -44 8.5 -85.5t26.5 -80.5t52.5 -62.5t81.5 -23.5q4 0 18 -0.5t20 0t16 3t15 8.5t7 16q16 77 48 231.5t48 231.5q19 91 19 146zM1498 575q0 -7 -7.5 -13.5t-15.5 -6.5
-l-6 1q-22 3 -62 11t-72 12.5t-63 4.5q-167 0 -351 -93q-15 -8 -21 -27q-10 -36 -24.5 -105.5t-22.5 -100.5q-23 -91 -70 -179.5t-112.5 -164.5t-154.5 -123t-185 -47q-135 0 -214.5 83.5t-79.5 219.5q0 53 19.5 117t63 116.5t97.5 52.5q38 0 120 -33.5t83 -61.5
-q0 -1 -16.5 -12.5t-39.5 -31t-46 -44.5t-39 -61t-16 -74q0 -33 16.5 -53t48.5 -20q45 0 85 31.5t66.5 78t48 105.5t32.5 107t16 90v9q0 2 -3.5 3.5t-8.5 1.5h-10t-10 -0.5t-6 -0.5q-227 0 -352 122.5t-125 348.5q0 108 34.5 221t96 210t156 167.5t204.5 89.5q52 9 106 9
-q374 0 374 -360q0 -98 -38 -273t-43 -211l3 -3q101 57 182.5 88t167.5 31q22 0 53 -13q19 -7 80 -102.5t61 -116.5z" />
- <glyph glyph-name="uniF2A7" unicode="&#xf2a7;" horiz-adv-x="1664"
-d="M831 863q32 0 59 -18l222 -148q61 -40 110 -97l146 -170q40 -46 29 -106l-72 -413q-6 -32 -29.5 -53.5t-55.5 -25.5l-527 -56l-352 -32h-9q-39 0 -67.5 28t-28.5 68q0 37 27 64t65 32l260 32h-448q-41 0 -69.5 30t-26.5 71q2 39 32 65t69 26l442 1l-521 64q-41 5 -66 37
-t-19 73q6 35 34.5 57.5t65.5 22.5h10l481 -60l-351 94q-38 10 -62 41.5t-18 68.5q6 36 33 58.5t62 22.5q6 0 20 -2l448 -96l217 -37q1 0 3 -0.5t3 -0.5q23 0 30.5 23t-12.5 36l-186 125q-35 23 -42 63.5t18 73.5q27 38 76 38zM761 661l186 -125l-218 37l-5 2l-36 38
-l-238 262q-1 1 -2.5 3.5t-2.5 3.5q-24 31 -18.5 70t37.5 64q31 23 68 17.5t64 -33.5l142 -147q-2 -1 -5 -3.5t-4 -4.5q-32 -45 -23 -99t55 -85zM1648 1115l15 -266q4 -73 -11 -147l-48 -219q-12 -59 -67 -87l-106 -54q2 62 -39 109l-146 170q-53 61 -117 103l-222 148
-q-34 23 -76 23q-51 0 -88 -37l-235 312q-25 33 -18 73.5t41 63.5q33 22 71.5 14t62.5 -40l266 -352l-262 455q-21 35 -10.5 75t47.5 59q35 18 72.5 6t57.5 -46l241 -420l-136 337q-15 35 -4.5 74t44.5 56q37 19 76 6t56 -51l193 -415l101 -196q8 -15 23 -17.5t27 7.5t11 26
-l-12 224q-2 41 26 71t69 31q39 0 67 -28.5t30 -67.5z" />
- <glyph glyph-name="uniF2A8" unicode="&#xf2a8;" horiz-adv-x="1792"
-d="M335 180q-2 0 -6 2q-86 57 -168.5 145t-139.5 180q-21 30 -21 69q0 9 2 19t4 18t7 18t8.5 16t10.5 17t10 15t12 15.5t11 14.5q184 251 452 365q-110 198 -110 211q0 19 17 29q116 64 128 64q18 0 28 -16l124 -229q92 19 192 19q266 0 497.5 -137.5t378.5 -369.5
-q20 -31 20 -69t-20 -69q-91 -142 -218.5 -253.5t-278.5 -175.5q110 -198 110 -211q0 -20 -17 -29q-116 -64 -127 -64q-19 0 -29 16l-124 229l-64 119l-444 820l7 7q-58 -24 -99 -47q3 -5 127 -234t243 -449t119 -223q0 -7 -9 -9q-13 -3 -72 -3q-57 0 -60 7l-456 841
-q-39 -28 -82 -68q24 -43 214 -393.5t190 -354.5q0 -10 -11 -10q-14 0 -82.5 22t-72.5 28l-106 197l-224 413q-44 -53 -78 -106q2 -3 18 -25t23 -34l176 -327q0 -10 -10 -10zM1165 282l49 -91q273 111 450 385q-180 277 -459 389q67 -64 103 -148.5t36 -176.5
-q0 -106 -47 -200.5t-132 -157.5zM848 896q0 -20 14 -34t34 -14q86 0 147 -61t61 -147q0 -20 14 -34t34 -14t34 14t14 34q0 126 -89 215t-215 89q-20 0 -34 -14t-14 -34zM1214 961l-9 4l7 -7z" />
- <glyph glyph-name="uniF2A9" unicode="&#xf2a9;" horiz-adv-x="1280"
-d="M1050 430q0 -215 -147 -374q-148 -161 -378 -161q-232 0 -378 161q-147 159 -147 374q0 147 68 270.5t189 196.5t268 73q96 0 182 -31q-32 -62 -39 -126q-66 28 -143 28q-167 0 -280.5 -123t-113.5 -291q0 -170 112.5 -288.5t281.5 -118.5t281 118.5t112 288.5
-q0 89 -32 166q66 13 123 49q41 -98 41 -212zM846 619q0 -192 -79.5 -345t-238.5 -253l-14 -1q-29 0 -62 5q83 32 146.5 102.5t99.5 154.5t58.5 189t30 192.5t7.5 178.5q0 69 -3 103q55 -160 55 -326zM791 947v-2q-73 214 -206 440q88 -59 142.5 -186.5t63.5 -251.5z
-M1035 744q-83 0 -160 75q218 120 290 247q19 37 21 56q-42 -94 -139.5 -166.5t-204.5 -97.5q-35 54 -35 113q0 37 17 79t43 68q46 44 157 74q59 16 106 58.5t74 100.5q74 -105 74 -253q0 -109 -24 -170q-32 -77 -88.5 -130.5t-130.5 -53.5z" />
- <glyph glyph-name="uniF2AA" unicode="&#xf2aa;"
-d="M1050 495q0 78 -28 147q-41 -25 -85 -34q22 -50 22 -114q0 -117 -77 -198.5t-193 -81.5t-193.5 81.5t-77.5 198.5q0 115 78 199.5t193 84.5q53 0 98 -19q4 43 27 87q-60 21 -125 21q-154 0 -257.5 -108.5t-103.5 -263.5t103.5 -261t257.5 -106t257.5 106.5t103.5 260.5z
-M872 850q2 -24 2 -71q0 -63 -5 -123t-20.5 -132.5t-40.5 -130t-68.5 -106t-100.5 -70.5q21 -3 42 -3h10q219 139 219 411q0 116 -38 225zM872 850q-4 80 -44 171.5t-98 130.5q92 -156 142 -302zM1207 955q0 102 -51 174q-41 -86 -124 -109q-69 -19 -109 -53.5t-40 -99.5
-q0 -40 24 -77q74 17 140.5 67t95.5 115q-4 -52 -74.5 -111.5t-138.5 -97.5q52 -52 110 -52q51 0 90 37t60 90q17 42 17 117zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5
-t84.5 -203.5z" />
- <glyph glyph-name="uniF2AB" unicode="&#xf2ab;"
-d="M1279 388q0 22 -22 27q-67 15 -118 59t-80 108q-7 19 -7 25q0 15 19.5 26t43 17t43 20.5t19.5 36.5q0 19 -18.5 31.5t-38.5 12.5q-12 0 -32 -8t-31 -8q-4 0 -12 2q5 95 5 114q0 79 -17 114q-36 78 -103 121.5t-152 43.5q-199 0 -275 -165q-17 -35 -17 -114q0 -19 5 -114
-q-4 -2 -14 -2q-12 0 -32 7.5t-30 7.5q-21 0 -38.5 -12t-17.5 -32q0 -21 19.5 -35.5t43 -20.5t43 -17t19.5 -26q0 -6 -7 -25q-64 -138 -198 -167q-22 -5 -22 -27q0 -46 137 -68q2 -5 6 -26t11.5 -30.5t23.5 -9.5q12 0 37.5 4.5t39.5 4.5q35 0 67 -15t54 -32.5t57.5 -32.5
-t76.5 -15q43 0 79 15t57.5 32.5t53.5 32.5t67 15q14 0 39.5 -4t38.5 -4q16 0 23 10t11 30t6 25q137 22 137 68zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5
-t103 -385.5z" />
- <glyph glyph-name="uniF2AC" unicode="&#xf2ac;" horiz-adv-x="1664"
-d="M848 1408q134 1 240.5 -68.5t163.5 -192.5q27 -58 27 -179q0 -47 -9 -191q14 -7 28 -7q18 0 51 13.5t51 13.5q29 0 56 -18t27 -46q0 -32 -31.5 -54t-69 -31.5t-69 -29t-31.5 -47.5q0 -15 12 -43q37 -82 102.5 -150t144.5 -101q28 -12 80 -23q28 -6 28 -35
-q0 -70 -219 -103q-7 -11 -11 -39t-14 -46.5t-33 -18.5q-20 0 -62 6.5t-64 6.5q-37 0 -62 -5q-32 -5 -63 -22.5t-58 -38t-58 -40.5t-76 -33.5t-99 -13.5q-52 0 -96.5 13.5t-75 33.5t-57.5 40.5t-58 38t-62 22.5q-26 5 -63 5q-24 0 -65.5 -7.5t-58.5 -7.5q-25 0 -35 18.5
-t-14 47.5t-11 40q-219 33 -219 103q0 29 28 35q52 11 80 23q78 32 144.5 101t102.5 150q12 28 12 43q0 28 -31.5 47.5t-69.5 29.5t-69.5 31.5t-31.5 52.5q0 27 26 45.5t55 18.5q15 0 48 -13t53 -13q18 0 32 7q-9 142 -9 190q0 122 27 180q64 137 172 198t264 63z" />
- <glyph glyph-name="uniF2AD" unicode="&#xf2ad;"
-d="M1280 388q0 22 -22 27q-67 14 -118 58t-80 109q-7 14 -7 25q0 15 19.5 26t42.5 17t42.5 20.5t19.5 36.5q0 19 -18.5 31.5t-38.5 12.5q-11 0 -31 -8t-32 -8q-4 0 -12 2q5 63 5 115q0 78 -17 114q-36 78 -102.5 121.5t-152.5 43.5q-198 0 -275 -165q-18 -38 -18 -115
-q0 -38 6 -114q-10 -2 -15 -2q-11 0 -31.5 8t-30.5 8q-20 0 -37.5 -12.5t-17.5 -32.5q0 -21 19.5 -35.5t42.5 -20.5t42.5 -17t19.5 -26q0 -11 -7 -25q-64 -138 -198 -167q-22 -5 -22 -27q0 -47 138 -69q2 -5 6 -26t11 -30.5t23 -9.5q13 0 38.5 5t38.5 5q35 0 67.5 -15
-t54.5 -32.5t57.5 -32.5t76.5 -15q43 0 79 15t57.5 32.5t54 32.5t67.5 15q13 0 39 -4.5t39 -4.5q15 0 22.5 9.5t11.5 31t5 24.5q138 22 138 69zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960
-q119 0 203.5 -84.5t84.5 -203.5z" />
- <glyph glyph-name="uniF2AE" unicode="&#xf2ae;" horiz-adv-x="2304"
-d="M2304 1536q-69 -46 -125 -92t-89 -81t-59.5 -71.5t-37.5 -57.5t-22 -44.5t-14 -29.5q-10 -18 -35.5 -136.5t-48.5 -164.5q-15 -29 -50 -60.5t-67.5 -50.5t-72.5 -41t-48 -28q-47 -31 -151 -231q-341 14 -630 -158q-92 -53 -303 -179q47 16 86 31t55 22l15 7
-q71 27 163 64.5t133.5 53.5t108 34.5t142.5 31.5q186 31 465 -7q1 0 10 -3q11 -6 14 -17t-3 -22l-194 -345q-15 -29 -47 -22q-128 24 -354 24q-146 0 -402 -44.5t-392 -46.5q-82 -1 -149 13t-107 37t-61 40t-33 34l-1 1v2q0 6 6 6q138 0 371 55q192 366 374.5 524t383.5 158
-q5 0 14.5 -0.5t38 -5t55 -12t61.5 -24.5t63 -39.5t54 -59t40 -82.5l102 177q2 4 21 42.5t44.5 86.5t61 109.5t84 133.5t100.5 137q66 82 128 141.5t121.5 96.5t92.5 53.5t88 39.5z" />
- <glyph glyph-name="uniF2B0" unicode="&#xf2b0;"
-d="M1322 640q0 -45 -5 -76l-236 14l224 -78q-19 -73 -58 -141l-214 103l177 -158q-44 -61 -107 -108l-157 178l103 -215q-61 -37 -140 -59l-79 228l14 -240q-38 -6 -76 -6t-76 6l14 238l-78 -226q-74 19 -140 59l103 215l-157 -178q-59 43 -108 108l178 158l-214 -104
-q-39 69 -58 141l224 79l-237 -14q-5 42 -5 76q0 35 5 77l238 -14l-225 79q19 73 58 140l214 -104l-177 159q46 61 107 108l158 -178l-103 215q67 39 140 58l77 -224l-13 236q36 6 75 6q38 0 76 -6l-14 -237l78 225q74 -19 140 -59l-103 -214l158 178q61 -47 107 -108
-l-177 -159l213 104q37 -62 58 -141l-224 -78l237 14q5 -31 5 -77zM1352 640q0 160 -78.5 295.5t-213 214t-292.5 78.5q-119 0 -227 -46.5t-186.5 -125t-124.5 -187.5t-46 -229q0 -119 46 -228t124.5 -187.5t186.5 -125t227 -46.5q158 0 292.5 78.5t213 214t78.5 294.5z
-M1425 1023v-766l-657 -383l-657 383v766l657 383zM768 -183l708 412v823l-708 411l-708 -411v-823zM1536 1088v-896l-768 -448l-768 448v896l768 448z" />
- <glyph glyph-name="uniF2B1" unicode="&#xf2b1;" horiz-adv-x="1664"
-d="M339 1318h691l-26 -72h-665q-110 0 -188.5 -79t-78.5 -189v-771q0 -95 60.5 -169.5t153.5 -93.5q23 -5 98 -5v-72h-45q-140 0 -239.5 100t-99.5 240v771q0 140 99.5 240t239.5 100zM1190 1536h247l-482 -1294q-23 -61 -40.5 -103.5t-45 -98t-54 -93.5t-64.5 -78.5
-t-79.5 -65t-95.5 -41t-116 -18.5v195q163 26 220 182q20 52 20 105q0 54 -20 106l-285 733h228l187 -585zM1664 978v-1111h-795q37 55 45 73h678v1038q0 85 -49.5 155t-129.5 99l25 67q101 -34 163.5 -123.5t62.5 -197.5z" />
- <glyph glyph-name="uniF2B2" unicode="&#xf2b2;" horiz-adv-x="1792"
-d="M852 1227q0 -29 -17 -52.5t-45 -23.5t-45 23.5t-17 52.5t17 52.5t45 23.5t45 -23.5t17 -52.5zM688 -149v114q0 30 -20.5 51.5t-50.5 21.5t-50 -21.5t-20 -51.5v-114q0 -30 20.5 -52t49.5 -22q30 0 50.5 22t20.5 52zM860 -149v114q0 30 -20 51.5t-50 21.5t-50.5 -21.5
-t-20.5 -51.5v-114q0 -30 20.5 -52t50.5 -22q29 0 49.5 22t20.5 52zM1034 -149v114q0 30 -20.5 51.5t-50.5 21.5t-50.5 -21.5t-20.5 -51.5v-114q0 -30 20.5 -52t50.5 -22t50.5 22t20.5 52zM1208 -149v114q0 30 -20.5 51.5t-50.5 21.5t-50.5 -21.5t-20.5 -51.5v-114
-q0 -30 20.5 -52t50.5 -22t50.5 22t20.5 52zM1476 535q-84 -160 -232 -259.5t-323 -99.5q-123 0 -229.5 51.5t-178.5 137t-113 197.5t-41 232q0 88 21 174q-104 -175 -104 -390q0 -162 65 -312t185 -251q30 57 91 57q56 0 86 -50q32 50 87 50q56 0 86 -50q32 50 87 50t87 -50
-q30 50 86 50q28 0 52.5 -15.5t37.5 -40.5q112 94 177 231.5t73 287.5zM1326 564q0 75 -72 75q-17 0 -47 -6q-95 -19 -149 -19q-226 0 -226 243q0 86 30 204q-83 -127 -83 -275q0 -150 89 -260.5t235 -110.5q111 0 210 70q13 48 13 79zM884 1223q0 50 -32 89.5t-81 39.5
-t-81 -39.5t-32 -89.5q0 -51 31.5 -90.5t81.5 -39.5t81.5 39.5t31.5 90.5zM1513 884q0 96 -37.5 179t-113 137t-173.5 54q-77 0 -149 -35t-127 -94q-48 -159 -48 -268q0 -104 45.5 -157t147.5 -53q53 0 142 19q36 6 53 6q51 0 77.5 -28t26.5 -80q0 -26 -4 -46
-q75 68 117.5 165.5t42.5 200.5zM1792 667q0 -111 -33.5 -249.5t-93.5 -204.5q-58 -64 -195 -142.5t-228 -104.5l-4 -1v-114q0 -43 -29.5 -75t-72.5 -32q-56 0 -86 50q-32 -50 -87 -50t-87 50q-30 -50 -86 -50q-55 0 -87 50q-30 -50 -86 -50q-47 0 -75 33.5t-28 81.5
-q-90 -68 -198 -68q-118 0 -211 80q54 1 106 20q-113 31 -182 127q32 -7 71 -7q89 0 164 46q-192 192 -240 306q-24 56 -24 160q0 57 9 125.5t31.5 146.5t55 141t86.5 105t120 42q59 0 81 -52q19 29 42 54q2 3 12 13t13 16q10 15 23 38t25 42t28 39q87 111 211.5 177
-t260.5 66q35 0 62 -4q59 64 146 64q83 0 140 -57q5 -5 5 -12q0 -5 -6 -13.5t-12.5 -16t-16 -17l-10.5 -10.5q17 -6 36 -18t19 -24q0 -6 -16 -25q157 -138 197 -378q25 30 60 30q45 0 100 -49q90 -80 90 -279z" />
- <glyph glyph-name="uniF2B3" unicode="&#xf2b3;"
-d="M917 631q0 33 -6 64h-362v-132h217q-12 -76 -74.5 -120.5t-142.5 -44.5q-99 0 -169 71.5t-70 170.5t70 170.5t169 71.5q93 0 153 -59l104 101q-108 100 -257 100q-160 0 -272 -112.5t-112 -271.5t112 -271.5t272 -112.5q165 0 266.5 105t101.5 270zM1262 585h109v110
-h-109v110h-110v-110h-110v-110h110v-110h110v110zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
- <glyph glyph-name="uniF2B4" unicode="&#xf2b4;"
-d="M1536 1024v-839q0 -48 -49 -62q-174 -52 -338 -52q-73 0 -215.5 29.5t-227.5 29.5q-164 0 -370 -48v-338h-160v1368q-63 25 -101 81t-38 124q0 91 64 155t155 64t155 -64t64 -155q0 -68 -38 -124t-101 -81v-68q190 44 343 44q99 0 198 -15q14 -2 111.5 -22.5t149.5 -20.5
-q77 0 165 18q11 2 80 21t89 19q26 0 45 -19t19 -45z" />
- <glyph glyph-name="uniF2B5" unicode="&#xf2b5;" horiz-adv-x="2304"
-d="M192 384q40 0 56 32t0 64t-56 32t-56 -32t0 -64t56 -32zM1665 442q-10 13 -38.5 50t-41.5 54t-38 49t-42.5 53t-40.5 47t-45 49l-125 -140q-83 -94 -208.5 -92t-205.5 98q-57 69 -56.5 158t58.5 157l177 206q-22 11 -51 16.5t-47.5 6t-56.5 -0.5t-49 -1q-92 0 -158 -66
-l-158 -158h-155v-544q5 0 21 0.5t22 0t19.5 -2t20.5 -4.5t17.5 -8.5t18.5 -13.5l297 -292q115 -111 227 -111q78 0 125 47q57 -20 112.5 8t72.5 85q74 -6 127 44q20 18 36 45.5t14 50.5q10 -10 43 -10q43 0 77 21t49.5 53t12 71.5t-30.5 73.5zM1824 384h96v512h-93l-157 180
-q-66 76 -169 76h-167q-89 0 -146 -67l-209 -243q-28 -33 -28 -75t27 -75q43 -51 110 -52t111 49l193 218q25 23 53.5 21.5t47 -27t8.5 -56.5q16 -19 56 -63t60 -68q29 -36 82.5 -105.5t64.5 -84.5q52 -66 60 -140zM2112 384q40 0 56 32t0 64t-56 32t-56 -32t0 -64t56 -32z
-M2304 960v-640q0 -26 -19 -45t-45 -19h-434q-27 -65 -82 -106.5t-125 -51.5q-33 -48 -80.5 -81.5t-102.5 -45.5q-42 -53 -104.5 -81.5t-128.5 -24.5q-60 -34 -126 -39.5t-127.5 14t-117 53.5t-103.5 81l-287 282h-358q-26 0 -45 19t-19 45v672q0 26 19 45t45 19h421
-q14 14 47 48t47.5 48t44 40t50.5 37.5t51 25.5t62 19.5t68 5.5h117q99 0 181 -56q82 56 181 56h167q35 0 67 -6t56.5 -14.5t51.5 -26.5t44.5 -31t43 -39.5t39 -42t41 -48t41.5 -48.5h355q26 0 45 -19t19 -45z" />
- <glyph glyph-name="uniF2B6" unicode="&#xf2b6;" horiz-adv-x="1792"
-d="M1792 882v-978q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v978q0 15 11 24q8 7 39 34.5t41.5 36t45.5 37.5t70 55.5t96 73t143.5 107t192.5 140.5q5 4 52.5 40t71.5 52.5t64 35t69 18.5t69 -18.5t65 -35.5t71 -52t52 -40q110 -80 192.5 -140.5t143.5 -107
-t96 -73t70 -55.5t45.5 -37.5t41.5 -36t39 -34.5q11 -9 11 -24zM1228 297q263 191 345 252q11 8 12.5 20.5t-6.5 23.5l-38 52q-8 11 -21 12.5t-24 -6.5q-231 -169 -343 -250q-5 -3 -52 -39t-71.5 -52.5t-64.5 -35t-69 -18.5t-69 18.5t-64.5 35t-71.5 52.5t-52 39
-q-186 134 -343 250q-11 8 -24 6.5t-21 -12.5l-38 -52q-8 -11 -6.5 -23.5t12.5 -20.5q82 -61 345 -252q10 -8 50 -38t65 -47t64 -39.5t77.5 -33.5t75.5 -11t75.5 11t79 34.5t64.5 39.5t65 47.5t48 36.5z" />
- <glyph glyph-name="uniF2B7" unicode="&#xf2b7;" horiz-adv-x="1792"
-d="M1474 623l39 -51q8 -11 6.5 -23.5t-11.5 -20.5q-43 -34 -126.5 -98.5t-146.5 -113t-67 -51.5q-39 -32 -60 -48t-60.5 -41t-76.5 -36.5t-74 -11.5h-1h-1q-37 0 -74 11.5t-76 36.5t-61 41.5t-60 47.5q-5 4 -65 50.5t-143.5 111t-122.5 94.5q-11 8 -12.5 20.5t6.5 23.5
-l37 52q8 11 21.5 13t24.5 -7q94 -73 306 -236q5 -4 43.5 -35t60.5 -46.5t56.5 -32.5t58.5 -17h1h1q24 0 58.5 17t56.5 32.5t60.5 46.5t43.5 35q258 198 313 242q11 8 24 6.5t21 -12.5zM1664 -96v928q-90 83 -159 139q-91 74 -389 304q-3 2 -43 35t-61 48t-56 32.5t-59 17.5
-h-1h-1q-24 0 -59 -17.5t-56 -32.5t-61 -48t-43 -35q-215 -166 -315.5 -245.5t-129.5 -104t-82 -74.5q-14 -12 -21 -19v-928q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 832v-928q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v928q0 56 41 94
-q123 114 350 290.5t233 181.5q36 30 59 47.5t61.5 42t76 36.5t74.5 12h1h1q37 0 74.5 -12t76 -36.5t61.5 -42t59 -47.5q43 -36 156 -122t226 -177t201 -173q41 -38 41 -94z" />
- <glyph glyph-name="uniF2B8" unicode="&#xf2b8;"
-d="M330 1l202 -214l-34 236l-216 213zM556 -225l274 218l-11 245l-300 -215zM245 413l227 -213l-48 327l-245 204zM495 189l317 214l-14 324l-352 -200zM843 178l95 -80l-2 239l-103 79q0 -1 1 -8.5t0 -12t-5 -7.5l-78 -52l85 -70q7 -6 7 -88zM138 930l256 -200l-68 465
-l-279 173zM1173 267l15 234l-230 -164l2 -240zM417 722l373 194l-19 441l-423 -163zM1270 357l20 233l-226 142l-2 -105l144 -95q6 -4 4 -9l-7 -119zM1461 496l30 222l-179 -128l-20 -228zM1273 329l-71 49l-8 -117q0 -5 -4 -8l-234 -187q-7 -5 -14 0l-98 83l7 -161
-q0 -5 -4 -8l-293 -234q-4 -2 -6 -2q-8 2 -8 3l-228 242q-4 4 -59 277q-2 7 5 11l61 37q-94 86 -95 92l-72 351q-2 7 6 12l94 45q-133 100 -135 108l-96 466q-2 10 7 13l433 135q5 0 8 -1l317 -153q6 -4 6 -9l20 -463q0 -7 -6 -10l-118 -61l126 -85q5 -2 5 -8l5 -123l121 74
-q5 4 11 0l84 -56l3 110q0 6 5 9l206 126q6 3 11 0l245 -135q4 -4 5 -7t-6.5 -60t-17.5 -124.5t-10 -70.5q0 -5 -4 -7l-191 -153q-6 -5 -13 0z" />
- <glyph glyph-name="uniF2B9" unicode="&#xf2b9;" horiz-adv-x="1664"
-d="M1201 298q0 57 -5.5 107t-21 100.5t-39.5 86t-64 58t-91 22.5q-6 -4 -33.5 -20.5t-42.5 -24.5t-40.5 -20t-49 -17t-46.5 -5t-46.5 5t-49 17t-40.5 20t-42.5 24.5t-33.5 20.5q-51 0 -91 -22.5t-64 -58t-39.5 -86t-21 -100.5t-5.5 -107q0 -73 42 -121.5t103 -48.5h576
-q61 0 103 48.5t42 121.5zM1028 892q0 108 -76.5 184t-183.5 76t-183.5 -76t-76.5 -184q0 -107 76.5 -183t183.5 -76t183.5 76t76.5 183zM1664 352v-192q0 -14 -9 -23t-23 -9h-96v-224q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v1472q0 66 47 113t113 47h1216
-q66 0 113 -47t47 -113v-224h96q14 0 23 -9t9 -23v-192q0 -14 -9 -23t-23 -9h-96v-128h96q14 0 23 -9t9 -23v-192q0 -14 -9 -23t-23 -9h-96v-128h96q14 0 23 -9t9 -23z" />
- <glyph glyph-name="uniF2BA" unicode="&#xf2ba;" horiz-adv-x="1664"
-d="M1028 892q0 -107 -76.5 -183t-183.5 -76t-183.5 76t-76.5 183q0 108 76.5 184t183.5 76t183.5 -76t76.5 -184zM980 672q46 0 82.5 -17t60 -47.5t39.5 -67t24 -81t11.5 -82.5t3.5 -79q0 -67 -39.5 -118.5t-105.5 -51.5h-576q-66 0 -105.5 51.5t-39.5 118.5q0 48 4.5 93.5
-t18.5 98.5t36.5 91.5t63 64.5t93.5 26h5q7 -4 32 -19.5t35.5 -21t33 -17t37 -16t35 -9t39.5 -4.5t39.5 4.5t35 9t37 16t33 17t35.5 21t32 19.5zM1664 928q0 -13 -9.5 -22.5t-22.5 -9.5h-96v-128h96q13 0 22.5 -9.5t9.5 -22.5v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-96v-128h96
-q13 0 22.5 -9.5t9.5 -22.5v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-96v-224q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v1472q0 66 47 113t113 47h1216q66 0 113 -47t47 -113v-224h96q13 0 22.5 -9.5t9.5 -22.5v-192zM1408 -96v1472q0 13 -9.5 22.5t-22.5 9.5h-1216
-q-13 0 -22.5 -9.5t-9.5 -22.5v-1472q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5z" />
- <glyph glyph-name="uniF2BB" unicode="&#xf2bb;" horiz-adv-x="2048"
-d="M1024 405q0 64 -9 117.5t-29.5 103t-60.5 78t-97 28.5q-6 -4 -30 -18t-37.5 -21.5t-35.5 -17.5t-43 -14.5t-42 -4.5t-42 4.5t-43 14.5t-35.5 17.5t-37.5 21.5t-30 18q-57 0 -97 -28.5t-60.5 -78t-29.5 -103t-9 -117.5t37 -106.5t91 -42.5h512q54 0 91 42.5t37 106.5z
-M867 925q0 94 -66.5 160.5t-160.5 66.5t-160.5 -66.5t-66.5 -160.5t66.5 -160.5t160.5 -66.5t160.5 66.5t66.5 160.5zM1792 416v64q0 14 -9 23t-23 9h-576q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h576q14 0 23 9t9 23zM1792 676v56q0 15 -10.5 25.5t-25.5 10.5h-568
-q-15 0 -25.5 -10.5t-10.5 -25.5v-56q0 -15 10.5 -25.5t25.5 -10.5h568q15 0 25.5 10.5t10.5 25.5zM1792 928v64q0 14 -9 23t-23 9h-576q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h576q14 0 23 9t9 23zM2048 1248v-1216q0 -66 -47 -113t-113 -47h-352v96q0 14 -9 23t-23 9
-h-64q-14 0 -23 -9t-9 -23v-96h-768v96q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-96h-352q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1728q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2BC" unicode="&#xf2bc;" horiz-adv-x="2048"
-d="M1024 405q0 -64 -37 -106.5t-91 -42.5h-512q-54 0 -91 42.5t-37 106.5t9 117.5t29.5 103t60.5 78t97 28.5q6 -4 30 -18t37.5 -21.5t35.5 -17.5t43 -14.5t42 -4.5t42 4.5t43 14.5t35.5 17.5t37.5 21.5t30 18q57 0 97 -28.5t60.5 -78t29.5 -103t9 -117.5zM867 925
-q0 -94 -66.5 -160.5t-160.5 -66.5t-160.5 66.5t-66.5 160.5t66.5 160.5t160.5 66.5t160.5 -66.5t66.5 -160.5zM1792 480v-64q0 -14 -9 -23t-23 -9h-576q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h576q14 0 23 -9t9 -23zM1792 732v-56q0 -15 -10.5 -25.5t-25.5 -10.5h-568
-q-15 0 -25.5 10.5t-10.5 25.5v56q0 15 10.5 25.5t25.5 10.5h568q15 0 25.5 -10.5t10.5 -25.5zM1792 992v-64q0 -14 -9 -23t-23 -9h-576q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h576q14 0 23 -9t9 -23zM1920 32v1216q0 13 -9.5 22.5t-22.5 9.5h-1728q-13 0 -22.5 -9.5
-t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h352v96q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-96h768v96q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-96h352q13 0 22.5 9.5t9.5 22.5zM2048 1248v-1216q0 -66 -47 -113t-113 -47h-1728q-66 0 -113 47t-47 113v1216q0 66 47 113
-t113 47h1728q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2BD" unicode="&#xf2bd;" horiz-adv-x="1792"
-d="M1523 197q-22 155 -87.5 257.5t-184.5 118.5q-67 -74 -159.5 -115.5t-195.5 -41.5t-195.5 41.5t-159.5 115.5q-119 -16 -184.5 -118.5t-87.5 -257.5q106 -150 271 -237.5t356 -87.5t356 87.5t271 237.5zM1280 896q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5
-t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM1792 640q0 -182 -71 -347.5t-190.5 -286t-285.5 -191.5t-349 -71q-182 0 -348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="uniF2BE" unicode="&#xf2be;" horiz-adv-x="1792"
-d="M896 1536q182 0 348 -71t286 -191t191 -286t71 -348q0 -181 -70.5 -347t-190.5 -286t-286 -191.5t-349 -71.5t-349 71t-285.5 191.5t-190.5 286t-71 347.5t71 348t191 286t286 191t348 71zM1515 185q149 205 149 455q0 156 -61 298t-164 245t-245 164t-298 61t-298 -61
-t-245 -164t-164 -245t-61 -298q0 -250 149 -455q66 327 306 327q131 -128 313 -128t313 128q240 0 306 -327zM1280 832q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5z" />
- <glyph glyph-name="uniF2C0" unicode="&#xf2c0;"
-d="M1201 752q47 -14 89.5 -38t89 -73t79.5 -115.5t55 -172t22 -236.5q0 -154 -100 -263.5t-241 -109.5h-854q-141 0 -241 109.5t-100 263.5q0 131 22 236.5t55 172t79.5 115.5t89 73t89.5 38q-79 125 -79 272q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5
-t198.5 -40.5t163.5 -109.5t109.5 -163.5t40.5 -198.5q0 -147 -79 -272zM768 1408q-159 0 -271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5t-112.5 271.5t-271.5 112.5zM1195 -128q88 0 150.5 71.5t62.5 173.5q0 239 -78.5 377t-225.5 145
-q-145 -127 -336 -127t-336 127q-147 -7 -225.5 -145t-78.5 -377q0 -102 62.5 -173.5t150.5 -71.5h854z" />
- <glyph glyph-name="uniF2C1" unicode="&#xf2c1;" horiz-adv-x="1280"
-d="M1024 278q0 -64 -37 -107t-91 -43h-512q-54 0 -91 43t-37 107t9 118t29.5 104t61 78.5t96.5 28.5q80 -75 188 -75t188 75q56 0 96.5 -28.5t61 -78.5t29.5 -104t9 -118zM870 797q0 -94 -67.5 -160.5t-162.5 -66.5t-162.5 66.5t-67.5 160.5t67.5 160.5t162.5 66.5
-t162.5 -66.5t67.5 -160.5zM1152 -96v1376h-1024v-1376q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1280 1376v-1472q0 -66 -47 -113t-113 -47h-960q-66 0 -113 47t-47 113v1472q0 66 47 113t113 47h352v-96q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v96h352
-q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2C2" unicode="&#xf2c2;" horiz-adv-x="2048"
-d="M896 324q0 54 -7.5 100.5t-24.5 90t-51 68.5t-81 25q-64 -64 -156 -64t-156 64q-47 0 -81 -25t-51 -68.5t-24.5 -90t-7.5 -100.5q0 -55 31.5 -93.5t75.5 -38.5h426q44 0 75.5 38.5t31.5 93.5zM768 768q0 80 -56 136t-136 56t-136 -56t-56 -136t56 -136t136 -56t136 56
-t56 136zM1792 288v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1408 544v64q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1792 544v64q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23
-v-64q0 -14 9 -23t23 -9h192q14 0 23 9t9 23zM1792 800v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM128 1152h1792v96q0 14 -9 23t-23 9h-1728q-14 0 -23 -9t-9 -23v-96zM2048 1248v-1216q0 -66 -47 -113t-113 -47h-1728
-q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1728q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2C3" unicode="&#xf2c3;" horiz-adv-x="2048"
-d="M896 324q0 -55 -31.5 -93.5t-75.5 -38.5h-426q-44 0 -75.5 38.5t-31.5 93.5q0 54 7.5 100.5t24.5 90t51 68.5t81 25q64 -64 156 -64t156 64q47 0 81 -25t51 -68.5t24.5 -90t7.5 -100.5zM768 768q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136z
-M1792 352v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM1408 608v-64q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h320q14 0 23 -9t9 -23zM1792 608v-64q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v64
-q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 864v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM1920 32v1120h-1792v-1120q0 -13 9.5 -22.5t22.5 -9.5h1728q13 0 22.5 9.5t9.5 22.5zM2048 1248v-1216q0 -66 -47 -113t-113 -47
-h-1728q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1728q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2C4" unicode="&#xf2c4;" horiz-adv-x="1792"
-d="M1255 749q0 318 -105 474.5t-330 156.5q-222 0 -326 -157t-104 -474q0 -316 104 -471.5t326 -155.5q74 0 131 17q-22 43 -39 73t-44 65t-53.5 56.5t-63 36t-77.5 14.5q-46 0 -79 -16l-49 97q105 91 276 91q132 0 215.5 -54t150.5 -155q67 149 67 402zM1645 117h117
-q3 -27 -2 -67t-26.5 -95t-58 -100.5t-107 -78t-162.5 -32.5q-71 0 -130.5 19t-105.5 56t-79 78t-66 96q-97 -27 -205 -27q-150 0 -292.5 58t-253 158.5t-178 249t-67.5 317.5q0 170 67.5 319.5t178.5 250.5t253.5 159t291.5 58q121 0 238.5 -36t217 -106t176 -164.5
-t119.5 -219t43 -261.5q0 -190 -80.5 -347.5t-218.5 -264.5q47 -70 93.5 -106.5t104.5 -36.5q61 0 94 37.5t38 85.5z" />
- <glyph glyph-name="uniF2C5" unicode="&#xf2c5;" horiz-adv-x="2304"
-d="M453 -101q0 -21 -16 -37.5t-37 -16.5q-1 0 -13 3q-63 15 -162 140q-225 284 -225 676q0 341 213 614q39 51 95 103.5t94 52.5q19 0 35 -13.5t16 -32.5q0 -27 -63 -90q-98 -102 -147 -184q-119 -199 -119 -449q0 -281 123 -491q50 -85 136 -173q2 -3 14.5 -16t19.5 -21
-t17 -20.5t14.5 -23.5t4.5 -21zM1796 33q0 -29 -17.5 -48.5t-46.5 -19.5h-1081q-26 0 -45 19t-19 45q0 29 17.5 48.5t46.5 19.5h1081q26 0 45 -19t19 -45zM1581 644q0 -134 -67 -233q-25 -38 -69.5 -78.5t-83.5 -60.5q-16 -10 -27 -10q-7 0 -15 6t-8 12q0 9 19 30t42 46
-t42 67.5t19 88.5q0 76 -35 130q-29 42 -46 42q-3 0 -3 -5q0 -12 7.5 -35.5t7.5 -36.5q0 -22 -21.5 -35t-44.5 -13q-66 0 -66 76q0 15 1.5 44t1.5 44q0 25 -10 46q-13 25 -42 53.5t-51 28.5q-5 0 -7 -0.5t-3.5 -2.5t-1.5 -6q0 -2 16 -26t16 -54q0 -37 -19 -68t-46 -54
-t-53.5 -46t-45.5 -54t-19 -68q0 -98 42 -160q29 -43 79 -63q16 -5 17 -10q1 -2 1 -5q0 -16 -18 -16q-6 0 -33 11q-119 43 -195 139.5t-76 218.5q0 55 24.5 115.5t60 115t70.5 108.5t59.5 113.5t24.5 111.5q0 53 -25 94q-29 48 -56 64q-19 9 -19 21q0 20 41 20q50 0 110 -29
-q41 -19 71 -44.5t49.5 -51t33.5 -62.5t22 -69t16 -80q0 -1 3 -17.5t4.5 -25t5.5 -25t9 -27t11 -21.5t14.5 -16.5t18.5 -5.5q23 0 37 14t14 37q0 25 -20 67t-20 52t10 10q27 0 93 -70q72 -76 102.5 -156t30.5 -186zM2304 615q0 -274 -138 -503q-19 -32 -48 -72t-68 -86.5
-t-81 -77t-74 -30.5q-16 0 -31 15.5t-15 31.5q0 15 29 50.5t68.5 77t48.5 52.5q183 230 183 531q0 131 -20.5 235t-72.5 211q-58 119 -163 228q-2 3 -13 13.5t-16.5 16.5t-15 17.5t-15 20t-9.5 18.5t-4 19q0 19 16 35.5t35 16.5q70 0 196 -169q98 -131 146 -273t60 -314
-q2 -42 2 -64z" />
- <glyph glyph-name="uniF2C6" unicode="&#xf2c6;" horiz-adv-x="1792"
-d="M1189 229l147 693q9 44 -10.5 63t-51.5 7l-864 -333q-29 -11 -39.5 -25t-2.5 -26.5t32 -19.5l221 -69l513 323q21 14 32 6q7 -5 -4 -15l-415 -375v0v0l-16 -228q23 0 45 22l108 104l224 -165q64 -36 81 38zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71
-t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="uniF2C7" unicode="&#xf2c7;" horiz-adv-x="1024"
-d="M640 192q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 60 35 110t93 71v907h128v-907q58 -21 93 -71t35 -110zM768 192q0 77 -34 144t-94 112v768q0 80 -56 136t-136 56t-136 -56t-56 -136v-768q-60 -45 -94 -112t-34 -144q0 -133 93.5 -226.5t226.5 -93.5t226.5 93.5
-t93.5 226.5zM896 192q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 182 128 313v711q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5v-711q128 -131 128 -313zM1024 768v-128h-192v128h192zM1024 1024v-128h-192v128h192zM1024 1280v-128h-192
-v128h192z" />
- <glyph glyph-name="uniF2C8" unicode="&#xf2c8;" horiz-adv-x="1024"
-d="M640 192q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 60 35 110t93 71v651h128v-651q58 -21 93 -71t35 -110zM768 192q0 77 -34 144t-94 112v768q0 80 -56 136t-136 56t-136 -56t-56 -136v-768q-60 -45 -94 -112t-34 -144q0 -133 93.5 -226.5t226.5 -93.5t226.5 93.5
-t93.5 226.5zM896 192q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 182 128 313v711q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5v-711q128 -131 128 -313zM1024 768v-128h-192v128h192zM1024 1024v-128h-192v128h192zM1024 1280v-128h-192
-v128h192z" />
- <glyph glyph-name="uniF2C9" unicode="&#xf2c9;" horiz-adv-x="1024"
-d="M640 192q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 60 35 110t93 71v395h128v-395q58 -21 93 -71t35 -110zM768 192q0 77 -34 144t-94 112v768q0 80 -56 136t-136 56t-136 -56t-56 -136v-768q-60 -45 -94 -112t-34 -144q0 -133 93.5 -226.5t226.5 -93.5t226.5 93.5
-t93.5 226.5zM896 192q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 182 128 313v711q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5v-711q128 -131 128 -313zM1024 768v-128h-192v128h192zM1024 1024v-128h-192v128h192zM1024 1280v-128h-192
-v128h192z" />
- <glyph glyph-name="uniF2CA" unicode="&#xf2ca;" horiz-adv-x="1024"
-d="M640 192q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 60 35 110t93 71v139h128v-139q58 -21 93 -71t35 -110zM768 192q0 77 -34 144t-94 112v768q0 80 -56 136t-136 56t-136 -56t-56 -136v-768q-60 -45 -94 -112t-34 -144q0 -133 93.5 -226.5t226.5 -93.5t226.5 93.5
-t93.5 226.5zM896 192q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 182 128 313v711q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5v-711q128 -131 128 -313zM1024 768v-128h-192v128h192zM1024 1024v-128h-192v128h192zM1024 1280v-128h-192
-v128h192z" />
- <glyph glyph-name="uniF2CB" unicode="&#xf2cb;" horiz-adv-x="1024"
-d="M640 192q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 79 56 135.5t136 56.5t136 -56.5t56 -135.5zM768 192q0 77 -34 144t-94 112v768q0 80 -56 136t-136 56t-136 -56t-56 -136v-768q-60 -45 -94 -112t-34 -144q0 -133 93.5 -226.5t226.5 -93.5t226.5 93.5t93.5 226.5z
-M896 192q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 182 128 313v711q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5v-711q128 -131 128 -313zM1024 768v-128h-192v128h192zM1024 1024v-128h-192v128h192zM1024 1280v-128h-192v128h192z" />
- <glyph glyph-name="uniF2CC" unicode="&#xf2cc;" horiz-adv-x="1920"
-d="M1433 1287q10 -10 10 -23t-10 -23l-626 -626q-10 -10 -23 -10t-23 10l-82 82q-10 10 -10 23t10 23l44 44q-72 91 -81.5 207t46.5 215q-74 71 -176 71q-106 0 -181 -75t-75 -181v-1280h-256v1280q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5q106 0 201 -41
-t166 -115q94 39 197 24.5t185 -79.5l44 44q10 10 23 10t23 -10zM1344 1024q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1600 896q-26 0 -45 19t-19 45t19 45t45 19t45 -19t19 -45t-19 -45t-45 -19zM1856 1024q26 0 45 -19t19 -45t-19 -45t-45 -19
-t-45 19t-19 45t19 45t45 19zM1216 896q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1408 832q0 26 19 45t45 19t45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45zM1728 896q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1088 768
-q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1344 640q-26 0 -45 19t-19 45t19 45t45 19t45 -19t19 -45t-19 -45t-45 -19zM1600 768q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1216 512q-26 0 -45 19t-19 45t19 45t45 19t45 -19
-t19 -45t-19 -45t-45 -19zM1472 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1088 512q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1344 512q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1216 384
-q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1088 256q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19z" />
- <glyph glyph-name="uniF2CD" unicode="&#xf2cd;" horiz-adv-x="1792"
-d="M1664 448v-192q0 -169 -128 -286v-194q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v118q-63 -22 -128 -22h-768q-65 0 -128 22v-110q0 -17 -9.5 -28.5t-22.5 -11.5h-64q-13 0 -22.5 11.5t-9.5 28.5v186q-128 117 -128 286v192h1536zM704 864q0 -14 -9 -23t-23 -9t-23 9
-t-9 23t9 23t23 9t23 -9t9 -23zM768 928q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM704 992q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM832 992q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM768 1056q0 -14 -9 -23t-23 -9t-23 9
-t-9 23t9 23t23 9t23 -9t9 -23zM704 1120q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM1792 608v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h96v640q0 106 75 181t181 75q108 0 184 -78q46 19 98 12t93 -39l22 22q11 11 22 0l42 -42
-q11 -11 0 -22l-314 -314q-11 -11 -22 0l-42 42q-11 11 0 22l22 22q-36 46 -40.5 104t23.5 108q-37 35 -88 35q-53 0 -90.5 -37.5t-37.5 -90.5v-640h1504q14 0 23 -9t9 -23zM896 1056q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM832 1120q0 -14 -9 -23t-23 -9
-t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM768 1184q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM960 1120q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM896 1184q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM832 1248q0 -14 -9 -23
-t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM1024 1184q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM960 1248q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23zM1088 1248q0 -14 -9 -23t-23 -9t-23 9t-9 23t9 23t23 9t23 -9t9 -23z" />
- <glyph glyph-name="uniF2CE" unicode="&#xf2ce;"
-d="M994 344q0 -86 -17 -197q-31 -215 -55 -313q-22 -90 -152 -90t-152 90q-24 98 -55 313q-17 110 -17 197q0 168 224 168t224 -168zM1536 768q0 -240 -134 -434t-350 -280q-8 -3 -15 3t-6 15q7 48 10 66q4 32 6 47q1 9 9 12q159 81 255.5 234t96.5 337q0 180 -91 330.5
-t-247 234.5t-337 74q-124 -7 -237 -61t-193.5 -140.5t-128 -202t-46.5 -240.5q1 -184 99 -336.5t257 -231.5q7 -3 9 -12q3 -21 6 -45q1 -9 5 -32.5t6 -35.5q1 -9 -6.5 -15t-15.5 -2q-148 58 -261 169.5t-173.5 264t-52.5 319.5q7 143 66 273.5t154.5 227t225 157.5t272.5 70
-q164 10 315.5 -46.5t261 -160.5t175 -250.5t65.5 -308.5zM994 800q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5zM1282 768q0 -122 -53.5 -228.5t-146.5 -177.5q-8 -6 -16 -2t-10 14q-6 52 -29 92q-7 10 3 20
-q58 54 91 127t33 155q0 111 -58.5 204t-157.5 141.5t-212 36.5q-133 -15 -229 -113t-109 -231q-10 -92 23.5 -176t98.5 -144q10 -10 3 -20q-24 -41 -29 -93q-2 -9 -10 -13t-16 2q-95 74 -148.5 183t-51.5 234q3 131 69 244t177 181.5t241 74.5q144 7 268 -60t196.5 -187.5
-t72.5 -263.5z" />
- <glyph glyph-name="uniF2D0" unicode="&#xf2d0;" horiz-adv-x="1792"
-d="M256 128h1280v768h-1280v-768zM1792 1248v-1216q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2D1" unicode="&#xf2d1;" horiz-adv-x="1792"
-d="M1792 224v-192q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2D2" unicode="&#xf2d2;" horiz-adv-x="2048"
-d="M256 0h768v512h-768v-512zM1280 512h512v768h-768v-256h96q66 0 113 -47t47 -113v-352zM2048 1376v-960q0 -66 -47 -113t-113 -47h-608v-352q0 -66 -47 -113t-113 -47h-960q-66 0 -113 47t-47 113v960q0 66 47 113t113 47h608v352q0 66 47 113t113 47h960q66 0 113 -47
-t47 -113z" />
- <glyph glyph-name="uniF2D3" unicode="&#xf2d3;" horiz-adv-x="1792"
-d="M1175 215l146 146q10 10 10 23t-10 23l-233 233l233 233q10 10 10 23t-10 23l-146 146q-10 10 -23 10t-23 -10l-233 -233l-233 233q-10 10 -23 10t-23 -10l-146 -146q-10 -10 -10 -23t10 -23l233 -233l-233 -233q-10 -10 -10 -23t10 -23l146 -146q10 -10 23 -10t23 10
-l233 233l233 -233q10 -10 23 -10t23 10zM1792 1248v-1216q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2D4" unicode="&#xf2d4;" horiz-adv-x="1792"
-d="M1257 425l-146 -146q-10 -10 -23 -10t-23 10l-169 169l-169 -169q-10 -10 -23 -10t-23 10l-146 146q-10 10 -10 23t10 23l169 169l-169 169q-10 10 -10 23t10 23l146 146q10 10 23 10t23 -10l169 -169l169 169q10 10 23 10t23 -10l146 -146q10 -10 10 -23t-10 -23
-l-169 -169l169 -169q10 -10 10 -23t-10 -23zM256 128h1280v1024h-1280v-1024zM1792 1248v-1216q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2D5" unicode="&#xf2d5;" horiz-adv-x="1792"
-d="M1070 358l306 564h-654l-306 -564h654zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="uniF2D6" unicode="&#xf2d6;" horiz-adv-x="1794"
-d="M1291 1060q-15 17 -35 8.5t-26 -28.5t5 -38q14 -17 40 -14.5t34 20.5t-18 52zM895 814q-8 -8 -19.5 -8t-18.5 8q-8 8 -8 19t8 18q7 8 18.5 8t19.5 -8q7 -7 7 -18t-7 -19zM1060 740l-35 -35q-12 -13 -29.5 -13t-30.5 13l-38 38q-12 13 -12 30t12 30l35 35q12 12 29.5 12
-t30.5 -12l38 -39q12 -12 12 -29.5t-12 -29.5zM951 870q-7 -8 -18.5 -8t-19.5 8q-7 8 -7 19t7 19q8 8 19 8t19 -8t8 -19t-8 -19zM1354 968q-34 -64 -107.5 -85.5t-127.5 16.5q-38 28 -61 66.5t-21 87.5t39 92t75.5 53t70.5 -5t70 -51q2 -2 13 -12.5t14.5 -13.5t13 -13.5
-t12.5 -15.5t10 -15.5t8.5 -18t4 -18.5t1 -21t-5 -22t-9.5 -24zM1555 486q3 20 -8.5 34.5t-27.5 21.5t-33 17t-23 20q-40 71 -84 98.5t-113 11.5q19 13 40 18.5t33 4.5l12 -1q2 45 -34 90q6 20 6.5 40.5t-2.5 30.5l-3 10q43 24 71 65t34 91q10 84 -43 150.5t-137 76.5
-q-60 7 -114 -18.5t-82 -74.5q-30 -51 -33.5 -101t14.5 -87t43.5 -64t56.5 -42q-45 4 -88 36t-57 88q-28 108 32 222q-16 21 -29 32q-50 0 -89 -19q19 24 42 37t36 14l13 1q0 50 -13 78q-10 21 -32.5 28.5t-47 -3.5t-37.5 -40q2 4 4 7q-7 -28 -6.5 -75.5t19 -117t48.5 -122.5
-q-25 -14 -47 -36q-35 -16 -85.5 -70.5t-84.5 -101.5l-33 -46q-90 -34 -181 -125.5t-75 -162.5q1 -16 11 -27q-15 -12 -30 -30q-21 -25 -21 -54t21.5 -40t63.5 6q41 19 77 49.5t55 60.5q-2 2 -6.5 5t-20.5 7.5t-33 3.5q23 5 51 12.5t40 10t27.5 6t26 4t23.5 0.5q14 -7 22 34
-q7 37 7 90q0 102 -40 150q106 -103 101 -219q-1 -29 -15 -50t-27 -27l-13 -6q-4 -7 -19 -32t-26 -45.5t-26.5 -52t-25 -61t-17 -63t-6.5 -66.5t10 -63q-35 54 -37 80q-22 -24 -34.5 -39t-33.5 -42t-30.5 -46t-16.5 -41t-0.5 -38t25.5 -27q45 -25 144 64t190.5 221.5
-t122.5 228.5q86 52 145 115.5t86 119.5q47 -93 154 -178q104 -83 167 -80q39 2 46 43zM1794 640q0 -182 -71 -348t-191 -286t-286.5 -191t-348.5 -71t-348.5 71t-286.5 191t-191 286t-71 348t71 348t191 286t286.5 191t348.5 71t348.5 -71t286.5 -191t191 -286t71 -348z" />
- <glyph glyph-name="uniF2D7" unicode="&#xf2d7;"
-d="M518 1353v-655q103 -1 191.5 1.5t125.5 5.5l37 3q68 2 90.5 24.5t39.5 94.5l33 142h103l-14 -322l7 -319h-103l-29 127q-15 68 -45 93t-84 26q-87 8 -352 8v-556q0 -78 43.5 -115.5t133.5 -37.5h357q35 0 59.5 2t55 7.5t54 18t48.5 32t46 50.5t39 73l93 216h89
-q-6 -37 -31.5 -252t-30.5 -276q-146 5 -263.5 8t-162.5 4h-44h-628l-376 -12v102l127 25q67 13 91.5 37t25.5 79l8 643q3 402 -8 645q-2 61 -25.5 84t-91.5 36l-127 24v102l376 -12h702q139 0 374 27q-6 -68 -14 -194.5t-12 -219.5l-5 -92h-93l-32 124q-31 121 -74 179.5
-t-113 58.5h-548q-28 0 -35.5 -8.5t-7.5 -30.5z" />
- <glyph glyph-name="uniF2D8" unicode="&#xf2d8;"
-d="M922 739v-182q0 -4 0.5 -15t0 -15l-1.5 -12t-3.5 -11.5t-6.5 -7.5t-11 -5.5t-16 -1.5v309q9 0 16 -1t11 -5t6.5 -5.5t3.5 -9.5t1 -10.5v-13.5v-14zM1238 643v-121q0 -1 0.5 -12.5t0 -15.5t-2.5 -11.5t-7.5 -10.5t-13.5 -3q-9 0 -14 9q-4 10 -4 165v7v8.5v9t1.5 8.5l3.5 7
-t5 5.5t8 1.5q6 0 10 -1.5t6.5 -4.5t4 -6t2 -8.5t0.5 -8v-9.5v-9zM180 407h122v472h-122v-472zM614 407h106v472h-159l-28 -221q-20 148 -32 221h-158v-472h107v312l45 -312h76l43 319v-319zM1039 712q0 67 -5 90q-3 16 -11 28.5t-17 20.5t-25 14t-26.5 8.5t-31 4t-29 1.5
-h-29.5h-12h-91v-472h56q169 -1 197 24.5t25 180.5q-1 62 -1 100zM1356 515v133q0 29 -2 45t-9.5 33.5t-24.5 25t-46 7.5q-46 0 -77 -34v154h-117v-472h110l7 30q30 -36 77 -36q50 0 66 30.5t16 83.5zM1536 1248v-1216q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113
-v1216q0 66 47 113t113 47h1216q66 0 113 -47t47 -113z" />
- <glyph glyph-name="uniF2D9" unicode="&#xf2d9;" horiz-adv-x="2176"
-d="M1143 -197q-6 1 -11 4q-13 8 -36 23t-86 65t-116.5 104.5t-112 140t-89.5 172.5q-17 3 -175 37q66 -213 235 -362t391 -184zM502 409l168 -28q-25 76 -41 167.5t-19 145.5l-4 53q-84 -82 -121 -224q5 -65 17 -114zM612 1018q-43 -64 -77 -148q44 46 74 68zM2049 584
-q0 161 -62 307t-167.5 252t-250.5 168.5t-304 62.5q-147 0 -281 -52.5t-240 -148.5q-30 -58 -45 -160q60 51 143 83.5t158.5 43t143 13.5t108.5 -1l40 -3q33 -1 53 -15.5t24.5 -33t6.5 -37t-1 -28.5q-126 11 -227.5 0.5t-183 -43.5t-142.5 -71.5t-131 -98.5
-q4 -36 11.5 -92.5t35.5 -178t62 -179.5q123 -6 247.5 14.5t214.5 53.5t162.5 67t109.5 59l37 24q22 16 39.5 20.5t30.5 -5t17 -34.5q14 -97 -39 -121q-208 -97 -467 -134q-135 -20 -317 -16q41 -96 110 -176.5t137 -127t130.5 -79t101.5 -43.5l39 -12q143 -23 263 15
-q195 99 314 289t119 418zM2123 621q-14 -135 -40 -212q-70 -208 -181.5 -346.5t-318.5 -253.5q-48 -33 -82 -44q-72 -26 -163 -16q-36 -3 -73 -3q-283 0 -504.5 173t-295.5 442q-1 0 -4 0.5t-5 0.5q-6 -50 2.5 -112.5t26 -115t36 -98t31.5 -71.5l14 -26q8 -12 54 -82
-q-71 38 -124.5 106.5t-78.5 140t-39.5 137t-17.5 107.5l-2 42q-5 2 -33.5 12.5t-48.5 18t-53 20.5t-57.5 25t-50 25.5t-42.5 27t-25 25.5q19 -10 50.5 -25.5t113 -45.5t145.5 -38l2 32q11 149 94 290q41 202 176 365q28 115 81 214q15 28 32 45t49 32q158 74 303.5 104
-t302 11t306.5 -97q220 -115 333 -336t87 -474z" />
- <glyph glyph-name="uniF2DA" unicode="&#xf2da;" horiz-adv-x="1792"
-d="M1341 752q29 44 -6.5 129.5t-121.5 142.5q-58 39 -125.5 53.5t-118 4.5t-68.5 -37q-12 -23 -4.5 -28t42.5 -10q23 -3 38.5 -5t44.5 -9.5t56 -17.5q36 -13 67.5 -31.5t53 -37t40 -38.5t30.5 -38t22 -34.5t16.5 -28.5t12 -18.5t10.5 -6t11 9.5zM1704 178
-q-52 -127 -148.5 -220t-214.5 -141.5t-253 -60.5t-266 13.5t-251 91t-210 161.5t-141.5 235.5t-46.5 303.5q1 41 8.5 84.5t12.5 64t24 80.5t23 73q-51 -208 1 -397t173 -318t291 -206t346 -83t349 74.5t289 244.5q20 27 18 14q0 -4 -4 -14zM1465 627q0 -104 -40.5 -199
-t-108.5 -164t-162 -109.5t-198 -40.5t-198 40.5t-162 109.5t-108.5 164t-40.5 199t40.5 199t108.5 164t162 109.5t198 40.5t198 -40.5t162 -109.5t108.5 -164t40.5 -199zM1752 915q-65 147 -180.5 251t-253 153.5t-292 53.5t-301 -36.5t-275.5 -129t-220 -211.5t-131 -297
-t-10 -373q-49 161 -51.5 311.5t35.5 272.5t109 227t165.5 180.5t207 126t232 71t242.5 9t236 -54t216 -124.5t178 -197q33 -50 62 -121t31 -112zM1690 573q12 244 -136.5 416t-396.5 240q-8 0 -10 5t24 8q125 -4 230 -50t173 -120t116 -168.5t58.5 -199t-1 -208
-t-61.5 -197.5t-122.5 -167t-185 -117.5t-248.5 -46.5q108 30 201.5 80t174 123t129.5 176.5t55 225.5z" />
- <glyph glyph-name="uniF2DB" unicode="&#xf2db;"
-d="M192 256v-128h-112q-16 0 -16 16v16h-48q-16 0 -16 16v32q0 16 16 16h48v16q0 16 16 16h112zM192 512v-128h-112q-16 0 -16 16v16h-48q-16 0 -16 16v32q0 16 16 16h48v16q0 16 16 16h112zM192 768v-128h-112q-16 0 -16 16v16h-48q-16 0 -16 16v32q0 16 16 16h48v16
-q0 16 16 16h112zM192 1024v-128h-112q-16 0 -16 16v16h-48q-16 0 -16 16v32q0 16 16 16h48v16q0 16 16 16h112zM192 1280v-128h-112q-16 0 -16 16v16h-48q-16 0 -16 16v32q0 16 16 16h48v16q0 16 16 16h112zM1280 1440v-1472q0 -40 -28 -68t-68 -28h-832q-40 0 -68 28
-t-28 68v1472q0 40 28 68t68 28h832q40 0 68 -28t28 -68zM1536 208v-32q0 -16 -16 -16h-48v-16q0 -16 -16 -16h-112v128h112q16 0 16 -16v-16h48q16 0 16 -16zM1536 464v-32q0 -16 -16 -16h-48v-16q0 -16 -16 -16h-112v128h112q16 0 16 -16v-16h48q16 0 16 -16zM1536 720v-32
-q0 -16 -16 -16h-48v-16q0 -16 -16 -16h-112v128h112q16 0 16 -16v-16h48q16 0 16 -16zM1536 976v-32q0 -16 -16 -16h-48v-16q0 -16 -16 -16h-112v128h112q16 0 16 -16v-16h48q16 0 16 -16zM1536 1232v-32q0 -16 -16 -16h-48v-16q0 -16 -16 -16h-112v128h112q16 0 16 -16v-16
-h48q16 0 16 -16z" />
- <glyph glyph-name="uniF2DC" unicode="&#xf2dc;" horiz-adv-x="1664"
-d="M1566 419l-167 -33l186 -107q23 -13 29.5 -38.5t-6.5 -48.5q-14 -23 -39 -29.5t-48 6.5l-186 106l55 -160q13 -38 -12 -63.5t-60.5 -20.5t-48.5 42l-102 300l-271 156v-313l208 -238q16 -18 17 -39t-11 -36.5t-28.5 -25t-37 -5.5t-36.5 22l-112 128v-214q0 -26 -19 -45
-t-45 -19t-45 19t-19 45v214l-112 -128q-16 -18 -36.5 -22t-37 5.5t-28.5 25t-11 36.5t17 39l208 238v313l-271 -156l-102 -300q-13 -37 -48.5 -42t-60.5 20.5t-12 63.5l55 160l-186 -106q-23 -13 -48 -6.5t-39 29.5q-13 23 -6.5 48.5t29.5 38.5l186 107l-167 33
-q-29 6 -42 29t-8.5 46.5t25.5 40t50 10.5l310 -62l271 157l-271 157l-310 -62q-4 -1 -13 -1q-27 0 -44 18t-19 40t11 43t40 26l167 33l-186 107q-23 13 -29.5 38.5t6.5 48.5t39 30t48 -7l186 -106l-55 160q-13 38 12 63.5t60.5 20.5t48.5 -42l102 -300l271 -156v313
-l-208 238q-16 18 -17 39t11 36.5t28.5 25t37 5.5t36.5 -22l112 -128v214q0 26 19 45t45 19t45 -19t19 -45v-214l112 128q16 18 36.5 22t37 -5.5t28.5 -25t11 -36.5t-17 -39l-208 -238v-313l271 156l102 300q13 37 48.5 42t60.5 -20.5t12 -63.5l-55 -160l186 106
-q23 13 48 6.5t39 -29.5q13 -23 6.5 -48.5t-29.5 -38.5l-186 -107l167 -33q27 -5 40 -26t11 -43t-19 -40t-44 -18q-9 0 -13 1l-310 62l-271 -157l271 -157l310 62q29 6 50 -10.5t25.5 -40t-8.5 -46.5t-42 -29z" />
- <glyph glyph-name="uniF2DD" unicode="&#xf2dd;" horiz-adv-x="1792"
-d="M1473 607q7 118 -33 226.5t-113 189t-177 131t-221 57.5q-116 7 -225.5 -32t-192 -110.5t-135 -175t-59.5 -220.5q-7 -118 33 -226.5t113 -189t177.5 -131t221.5 -57.5q155 -9 293 59t224 195.5t94 283.5zM1792 1536l-349 -348q120 -117 180.5 -272t50.5 -321
-q-11 -183 -102 -339t-241 -255.5t-332 -124.5l-999 -132l347 347q-120 116 -180.5 271.5t-50.5 321.5q11 184 102 340t241.5 255.5t332.5 124.5q167 22 500 66t500 66z" />
- <glyph glyph-name="uniF2DE" unicode="&#xf2de;" horiz-adv-x="1792"
-d="M948 508l163 -329h-51l-175 350l-171 -350h-49l179 374l-78 33l21 49l240 -102l-21 -50zM563 1100l304 -130l-130 -304l-304 130zM907 915l240 -103l-103 -239l-239 102zM1188 765l191 -81l-82 -190l-190 81zM1680 640q0 159 -62 304t-167.5 250.5t-250.5 167.5t-304 62
-t-304 -62t-250.5 -167.5t-167.5 -250.5t-62 -304t62 -304t167.5 -250.5t250.5 -167.5t304 -62t304 62t250.5 167.5t167.5 250.5t62 304zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71
-t286 -191t191 -286t71 -348z" />
- <glyph glyph-name="uniF2E0" unicode="&#xf2e0;" horiz-adv-x="1920"
-d="M1334 302q-4 24 -27.5 34t-49.5 10.5t-48.5 12.5t-25.5 38q-5 47 33 139.5t75 181t32 127.5q-14 101 -117 103q-45 1 -75 -16l-3 -2l-5 -2.5t-4.5 -2t-5 -2t-5 -0.5t-6 1.5t-6 3.5t-6.5 5q-3 2 -9 8.5t-9 9t-8.5 7.5t-9.5 7.5t-9.5 5.5t-11 4.5t-11.5 2.5q-30 5 -48 -3
-t-45 -31q-1 -1 -9 -8.5t-12.5 -11t-15 -10t-16.5 -5.5t-17 3q-54 27 -84 40q-41 18 -94 -5t-76 -65q-16 -28 -41 -98.5t-43.5 -132.5t-40 -134t-21.5 -73q-22 -69 18.5 -119t110.5 -46q30 2 50.5 15t38.5 46q7 13 79 199.5t77 194.5q6 11 21.5 18t29.5 0q27 -15 21 -53
-q-2 -18 -51 -139.5t-50 -132.5q-6 -38 19.5 -56.5t60.5 -7t55 49.5q4 8 45.5 92t81.5 163.5t46 88.5q20 29 41 28q29 0 25 -38q-2 -16 -65.5 -147.5t-70.5 -159.5q-12 -53 13 -103t74 -74q17 -9 51 -15.5t71.5 -8t62.5 14t20 48.5zM383 86q3 -15 -5 -27.5t-23 -15.5
-q-14 -3 -26.5 5t-15.5 23q-3 14 5 27t22 16t27 -5t16 -23zM953 -177q12 -17 8.5 -37.5t-20.5 -32.5t-37.5 -8t-32.5 21q-11 17 -7.5 37.5t20.5 32.5t37.5 8t31.5 -21zM177 635q-18 -27 -49.5 -33t-57.5 13q-26 18 -32 50t12 58q18 27 49.5 33t57.5 -12q26 -19 32 -50.5
-t-12 -58.5zM1467 -42q19 -28 13 -61.5t-34 -52.5t-60.5 -13t-51.5 34t-13 61t33 53q28 19 60.5 13t52.5 -34zM1579 562q69 -113 42.5 -244.5t-134.5 -207.5q-90 -63 -199 -60q-20 -80 -84.5 -127t-143.5 -44.5t-140 57.5q-12 -9 -13 -10q-103 -71 -225 -48.5t-193 126.5
-q-50 73 -53 164q-83 14 -142.5 70.5t-80.5 128t-2 152t81 138.5q-36 60 -38 128t24.5 125t79.5 98.5t121 50.5q32 85 99 148t146.5 91.5t168 17t159.5 -66.5q72 21 140 17.5t128.5 -36t104.5 -80t67.5 -115t17.5 -140.5q52 -16 87 -57t45.5 -89t-5.5 -99.5t-58 -87.5z
-M455 1222q14 -20 9.5 -44.5t-24.5 -38.5q-19 -14 -43.5 -9.5t-37.5 24.5q-14 20 -9.5 44.5t24.5 38.5q19 14 43.5 9.5t37.5 -24.5zM614 1503q4 -16 -5 -30.5t-26 -18.5t-31 5.5t-18 26.5q-3 17 6.5 31t25.5 18q17 4 31 -5.5t17 -26.5zM1800 555q4 -20 -6.5 -37t-30.5 -21
-q-19 -4 -36 6.5t-21 30.5t6.5 37t30.5 22q20 4 36.5 -7.5t20.5 -30.5zM1136 1448q16 -27 8.5 -58.5t-35.5 -47.5q-27 -16 -57.5 -8.5t-46.5 34.5q-16 28 -8.5 59t34.5 48t58 9t47 -36zM1882 792q4 -15 -4 -27.5t-23 -16.5q-15 -3 -27.5 5.5t-15.5 22.5q-3 15 5 28t23 16
-q14 3 26.5 -5t15.5 -23zM1691 1033q15 -22 10.5 -49t-26.5 -43q-22 -15 -49 -10t-42 27t-10 49t27 43t48.5 11t41.5 -28z" />
- <glyph glyph-name="uniF2E1" unicode="&#xf2e1;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2E2" unicode="&#xf2e2;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2E3" unicode="&#xf2e3;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2E4" unicode="&#xf2e4;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2E5" unicode="&#xf2e5;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2E6" unicode="&#xf2e6;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2E7" unicode="&#xf2e7;" horiz-adv-x="1792"
- />
- <glyph glyph-name="_698" unicode="&#xf2e8;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2E9" unicode="&#xf2e9;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2EA" unicode="&#xf2ea;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2EB" unicode="&#xf2eb;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2EC" unicode="&#xf2ec;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2ED" unicode="&#xf2ed;" horiz-adv-x="1792"
- />
- <glyph glyph-name="uniF2EE" unicode="&#xf2ee;" horiz-adv-x="1792"
- />
- <glyph glyph-name="lessequal" unicode="&#xf500;" horiz-adv-x="1792"
- />
- </font>
-</defs></svg>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.ttf b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.ttf
deleted file mode 100644
index 35acda2f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.ttf
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff
deleted file mode 100644
index 400014a4..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff2 b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff2
deleted file mode 100644
index 4d13fc60..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff2
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-1/dist/jquery.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-1/dist/jquery.js
deleted file mode 100644
index 7fc60fca..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-1/dist/jquery.js
+++ /dev/null
@@ -1,11008 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.12.4
- * http://jquery.com/
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2016-05-20T17:17Z
- */
-
-(function( global, factory ) {
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Support: Firefox 18+
-// Can't be in strict mode, several libs including ASP.NET trace
-// the stack via arguments.caller.callee and Firefox dies if
-// you try to trace through "use strict" call chains. (#13335)
-//"use strict";
-var deletedIds = [];
-
-var document = window.document;
-
-var slice = deletedIds.slice;
-
-var concat = deletedIds.concat;
-
-var push = deletedIds.push;
-
-var indexOf = deletedIds.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var support = {};
-
-
-
-var
- version = "1.12.4",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
-
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- },
-
- // Support: Android<4.1, IE<9
- // Make sure we trim BOM and NBSP
- rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
-
- // Matches dashed string for camelizing
- rmsPrefix = /^-ms-/,
- rdashAlpha = /-([\da-z])/gi,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn = jQuery.prototype = {
-
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // Start with an empty selector
- selector: "",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num != null ?
-
- // Return just the one element from the set
- ( num < 0 ? this[ num + this.length ] : this[ num ] ) :
-
- // Return all the elements in a clean array
- slice.call( this );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
- ret.context = this.context;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- each: function( callback ) {
- return jQuery.each( this, callback );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map( this, function( elem, i ) {
- return callback.call( elem, i, elem );
- } ) );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor();
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: deletedIds.sort,
- splice: deletedIds.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var src, copyIsArray, copy, name, options, clone,
- target = arguments[ 0 ] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
-
- // Only deal with non-null/undefined values
- if ( ( options = arguments[ i ] ) != null ) {
-
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
-
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray( src ) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject( src ) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend( {
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return jQuery.type( obj ) === "function";
- },
-
- isArray: Array.isArray || function( obj ) {
- return jQuery.type( obj ) === "array";
- },
-
- isWindow: function( obj ) {
- /* jshint eqeqeq: false */
- return obj != null && obj == obj.window;
- },
-
- isNumeric: function( obj ) {
-
- // parseFloat NaNs numeric-cast false positives (null|true|false|"")
- // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
- // subtraction forces infinities to NaN
- // adding 1 corrects loss of precision from parseFloat (#15100)
- var realStringObj = obj && obj.toString();
- return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0;
- },
-
- isEmptyObject: function( obj ) {
- var name;
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- isPlainObject: function( obj ) {
- var key;
-
- // Must be an Object.
- // Because of IE, we also have to check the presence of the constructor property.
- // Make sure that DOM nodes and window objects don't pass through, as well
- if ( !obj || jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- try {
-
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call( obj, "constructor" ) &&
- !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
- return false;
- }
- } catch ( e ) {
-
- // IE8,9 Will throw exceptions on certain host objects #9897
- return false;
- }
-
- // Support: IE<9
- // Handle iteration over inherited properties before own properties.
- if ( !support.ownFirst ) {
- for ( key in obj ) {
- return hasOwn.call( obj, key );
- }
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- type: function( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
- },
-
- // Workarounds based on findings by Jim Driscoll
- // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
- globalEval: function( data ) {
- if ( data && jQuery.trim( data ) ) {
-
- // We use execScript on Internet Explorer
- // We use an anonymous function so that context is window
- // rather than jQuery in Firefox
- ( window.execScript || function( data ) {
- window[ "eval" ].call( window, data ); // jscs:ignore requireDotNotation
- } )( data );
- }
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
- },
-
- each: function( obj, callback ) {
- var length, i = 0;
-
- if ( isArrayLike( obj ) ) {
- length = obj.length;
- for ( ; i < length; i++ ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- }
-
- return obj;
- },
-
- // Support: Android<4.1, IE<9
- trim: function( text ) {
- return text == null ?
- "" :
- ( text + "" ).replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArrayLike( Object( arr ) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- var len;
-
- if ( arr ) {
- if ( indexOf ) {
- return indexOf.call( arr, elem, i );
- }
-
- len = arr.length;
- i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
-
- for ( ; i < len; i++ ) {
-
- // Skip accessing in sparse arrays
- if ( i in arr && arr[ i ] === elem ) {
- return i;
- }
- }
- }
-
- return -1;
- },
-
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- while ( j < len ) {
- first[ i++ ] = second[ j++ ];
- }
-
- // Support: IE<9
- // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)
- if ( len !== len ) {
- while ( second[ j ] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var length, value,
- i = 0,
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArrayLike( elems ) ) {
- length = elems.length;
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- var args, proxy, tmp;
-
- if ( typeof context === "string" ) {
- tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- args = slice.call( arguments, 2 );
- proxy = function() {
- return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
- return proxy;
- },
-
- now: function() {
- return +( new Date() );
- },
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-} );
-
-// JSHint would error on this code due to the Symbol not being defined in ES5.
-// Defining this global in .jshintrc would create a danger of using the global
-// unguarded in another place, it seems safer to just disable JSHint for these
-// three lines.
-/* jshint ignore: start */
-if ( typeof Symbol === "function" ) {
- jQuery.fn[ Symbol.iterator ] = deletedIds[ Symbol.iterator ];
-}
-/* jshint ignore: end */
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( i, name ) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
- // Support: iOS 8.2 (not reproducible in simulator)
- // `in` check used to prevent JIT error (gh-2145)
- // hasOwn isn't used here due to false negatives
- // regarding Nodelist length in IE
- var length = !!obj && "length" in obj && obj.length,
- type = jQuery.type( obj );
-
- if ( type === "function" || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v2.2.1
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2015-10-17
- */
-(function( window ) {
-
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + 1 * new Date(),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // General-purpose constants
- MAX_NEGATIVE = 1 << 31,
-
- // Instance methods
- hasOwn = ({}).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- push_native = arr.push,
- push = arr.push,
- slice = arr.slice,
- // Use a stripped-down indexOf as it's faster than native
- // http://jsperf.com/thor-indexof-vs-for/5
- indexOf = function( list, elem ) {
- var i = 0,
- len = list.length;
- for ( ; i < len; i++ ) {
- if ( list[i] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
-
- // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
- identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
- // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
- "*\\]",
-
- pseudos = ":(" + identifier + ")(?:\\((" +
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rwhitespace = new RegExp( whitespace + "+", "g" ),
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
-
- rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + identifier + ")" ),
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
- "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
- "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
- whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
- rescape = /'|\\/g,
-
- // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
- funescape = function( _, escaped, escapedWhitespace ) {
- var high = "0x" + escaped - 0x10000;
- // NaN means non-codepoint
- // Support: Firefox<24
- // Workaround erroneous numeric interpretation of +"0x"
- return high !== high || escapedWhitespace ?
- escaped :
- high < 0 ?
- // BMP codepoint
- String.fromCharCode( high + 0x10000 ) :
- // Supplemental Plane codepoint (surrogate pair)
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- },
-
- // Used for iframes
- // See setDocument()
- // Removing the function wrapper causes a "Permission Denied"
- // error in IE
- unloadHandler = function() {
- setDocument();
- };
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- (arr = slice.call( preferredDoc.childNodes )),
- preferredDoc.childNodes
- );
- // Support: Android<4.0
- // Detect silently failing push.apply
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- push_native.apply( target, slice.call(els) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
- // Can't trust NodeList.length
- while ( (target[j++] = els[i++]) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var m, i, elem, nid, nidselect, match, groups, newSelector,
- newContext = context && context.ownerDocument,
-
- // nodeType defaults to 9, since context defaults to document
- nodeType = context ? context.nodeType : 9;
-
- results = results || [];
-
- // Return early from calls with invalid selector or context
- if ( typeof selector !== "string" || !selector ||
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
- return results;
- }
-
- // Try to shortcut find operations (as opposed to filters) in HTML documents
- if ( !seed ) {
-
- if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
- setDocument( context );
- }
- context = context || document;
-
- if ( documentIsHTML ) {
-
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
- // (excepting DocumentFragment context, where the methods don't exist)
- if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
-
- // ID selector
- if ( (m = match[1]) ) {
-
- // Document context
- if ( nodeType === 9 ) {
- if ( (elem = context.getElementById( m )) ) {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
-
- // Element context
- } else {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( newContext && (elem = newContext.getElementById( m )) &&
- contains( context, elem ) &&
- elem.id === m ) {
-
- results.push( elem );
- return results;
- }
- }
-
- // Type selector
- } else if ( match[2] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Class selector
- } else if ( (m = match[3]) && support.getElementsByClassName &&
- context.getElementsByClassName ) {
-
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // Take advantage of querySelectorAll
- if ( support.qsa &&
- !compilerCache[ selector + " " ] &&
- (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
-
- if ( nodeType !== 1 ) {
- newContext = context;
- newSelector = selector;
-
- // qSA looks outside Element context, which is not what we want
- // Thanks to Andrew Dupont for this workaround technique
- // Support: IE <=8
- // Exclude object elements
- } else if ( context.nodeName.toLowerCase() !== "object" ) {
-
- // Capture the context ID, setting it first if necessary
- if ( (nid = context.getAttribute( "id" )) ) {
- nid = nid.replace( rescape, "\\$&" );
- } else {
- context.setAttribute( "id", (nid = expando) );
- }
-
- // Prefix every selector in the list
- groups = tokenize( selector );
- i = groups.length;
- nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
- while ( i-- ) {
- groups[i] = nidselect + " " + toSelector( groups[i] );
- }
- newSelector = groups.join( "," );
-
- // Expand context for sibling selectors
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
- context;
- }
-
- if ( newSelector ) {
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch ( qsaError ) {
- } finally {
- if ( nid === expando ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return (cache[ key + " " ] = value);
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created div and expects a boolean result
- */
-function assert( fn ) {
- var div = document.createElement("div");
-
- try {
- return !!fn( div );
- } catch (e) {
- return false;
- } finally {
- // Remove from its parent by default
- if ( div.parentNode ) {
- div.parentNode.removeChild( div );
- }
- // release memory in IE
- div = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split("|"),
- i = arr.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[i] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- ( ~b.sourceIndex || MAX_NEGATIVE ) -
- ( ~a.sourceIndex || MAX_NEGATIVE );
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( (cur = cur.nextSibling) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction(function( argument ) {
- argument = +argument;
- return markFunction(function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ (j = matchIndexes[i]) ] ) {
- seed[j] = !(matches[j] = seed[j]);
- }
- }
- });
- });
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && (elem.ownerDocument || elem).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare, parent,
- doc = node ? node.ownerDocument || node : preferredDoc;
-
- // Return early if doc is invalid or already selected
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Update global variables
- document = doc;
- docElem = document.documentElement;
- documentIsHTML = !isXML( document );
-
- // Support: IE 9-11, Edge
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
- if ( (parent = document.defaultView) && parent.top !== parent ) {
- // Support: IE 11
- if ( parent.addEventListener ) {
- parent.addEventListener( "unload", unloadHandler, false );
-
- // Support: IE 9 - 10 only
- } else if ( parent.attachEvent ) {
- parent.attachEvent( "onunload", unloadHandler );
- }
- }
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties
- // (excepting IE8 booleans)
- support.attributes = assert(function( div ) {
- div.className = "i";
- return !div.getAttribute("className");
- });
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert(function( div ) {
- div.appendChild( document.createComment("") );
- return !div.getElementsByTagName("*").length;
- });
-
- // Support: IE<9
- support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert(function( div ) {
- docElem.appendChild( div ).id = expando;
- return !document.getElementsByName || !document.getElementsByName( expando ).length;
- });
-
- // ID find and filter
- if ( support.getById ) {
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var m = context.getElementById( id );
- return m ? [ m ] : [];
- }
- };
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute("id") === attrId;
- };
- };
- } else {
- // Support: IE6/7
- // getElementById is not reliable as a find shortcut
- delete Expr.find["ID"];
-
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== "undefined" &&
- elem.getAttributeNode("id");
- return node && node.value === attrId;
- };
- };
- }
-
- // Tag
- Expr.find["TAG"] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( tag );
-
- // DocumentFragment nodes don't have gEBTN
- } else if ( support.qsa ) {
- return context.querySelectorAll( tag );
- }
- } :
-
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
- // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( (elem = results[i++]) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See http://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert(function( div ) {
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // http://bugs.jquery.com/ticket/12359
- docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
- "<select id='" + expando + "-\r\\' msallowcapture=''>" +
- "<option selected=''></option></select>";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( div.querySelectorAll("[msallowcapture^='']").length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !div.querySelectorAll("[selected]").length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
- if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
- rbuggyQSA.push("~=");
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":checked").length ) {
- rbuggyQSA.push(":checked");
- }
-
- // Support: Safari 8+, iOS 8+
- // https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibing-combinator selector` fails
- if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
- rbuggyQSA.push(".#.+[+~]");
- }
- });
-
- assert(function( div ) {
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = document.createElement("input");
- input.setAttribute( "type", "hidden" );
- div.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( div.querySelectorAll("[name=d]").length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":enabled").length ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Opera 10-11 does not throw on post-comma invalid pseudos
- div.querySelectorAll("*,:x");
- rbuggyQSA.push(",.*:");
- });
- }
-
- if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector) )) ) {
-
- assert(function( div ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( div, "div" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( div, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- });
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully self-exclusive
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ));
- } :
- function( a, b ) {
- if ( b ) {
- while ( (b = b.parentNode) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
- return -1;
- }
- if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
- return a === document ? -1 :
- b === document ? 1 :
- aup ? -1 :
- bup ? 1 :
- sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( (cur = cur.parentNode) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( (cur = cur.parentNode) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[i] === bp[i] ) {
- i++;
- }
-
- return i ?
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[i], bp[i] ) :
-
- // Otherwise nodes in our document sort first
- ap[i] === preferredDoc ? -1 :
- bp[i] === preferredDoc ? 1 :
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- // Make sure that attribute selectors are quoted
- expr = expr.replace( rattributeQuotes, "='$1']" );
-
- if ( support.matchesSelector && documentIsHTML &&
- !compilerCache[ expr + " " ] &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch (e) {}
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
- // Set document vars if needed
- if ( ( context.ownerDocument || context ) !== document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- (val = elem.getAttributeNode(name)) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( (elem = results[i++]) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
- // If no nodeType, this is expected to be an array
- while ( (node = elem[i++]) ) {
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[1] = match[1].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
-
- if ( match[2] === "~=" ) {
- match[3] = " " + match[3] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[1] = match[1].toLowerCase();
-
- if ( match[1].slice( 0, 3 ) === "nth" ) {
- // nth-* requires argument
- if ( !match[3] ) {
- Sizzle.error( match[0] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
- match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[3] ) {
- Sizzle.error( match[0] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[6] && match[2];
-
- if ( matchExpr["CHILD"].test( match[0] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[3] ) {
- match[2] = match[4] || match[5] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
- // Get excess from tokenize (recursively)
- (excess = tokenize( unquoted, true )) &&
- // advance to the next closing parenthesis
- (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
- // excess is a negative index
- match[0] = match[0].slice( 0, excess );
- match[2] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() { return true; } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
- classCache( className, function( elem ) {
- return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
- });
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- };
- },
-
- "CHILD": function( type, what, argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, context, xml ) {
- var cache, uniqueCache, outerCache, node, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType,
- diff = false;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( (node = node[ dir ]) ) {
- if ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) {
-
- return false;
- }
- }
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
-
- // Seek `elem` from a previously-cached index
-
- // ...in a gzip-friendly way
- node = parent;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex && cache[ 2 ];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( (node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- } else {
- // Use previously-cached element index if available
- if ( useCache ) {
- // ...in a gzip-friendly way
- node = elem;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex;
- }
-
- // xml :nth-child(...)
- // or :nth-last-child(...) or :nth(-last)?-of-type(...)
- if ( diff === false ) {
- // Use the same loop as above to seek `elem` from the start
- while ( (node = ++nodeIndex && node && node[ dir ] ||
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- if ( ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) &&
- ++diff ) {
-
- // Cache the index of each encountered element
- if ( useCache ) {
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- uniqueCache[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction(function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf( seed, matched[i] );
- seed[ idx ] = !( matches[ idx ] = matched[i] );
- }
- }) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
- // Potentially complex pseudos
- "not": markFunction(function( selector ) {
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction(function( seed, matches, context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( (elem = unmatched[i]) ) {
- seed[i] = !(matches[i] = elem);
- }
- }
- }) :
- function( elem, context, xml ) {
- input[0] = elem;
- matcher( input, null, xml, results );
- // Don't keep the element (issue #299)
- input[0] = null;
- return !results.pop();
- };
- }),
-
- "has": markFunction(function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- }),
-
- "contains": markFunction(function( text ) {
- text = text.replace( runescape, funescape );
- return function( elem ) {
- return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
- };
- }),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
- // lang value must be a valid identifier
- if ( !ridentifier.test(lang || "") ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( (elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
- return false;
- };
- }),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
- },
-
- // Boolean properties
- "enabled": function( elem ) {
- return elem.disabled === false;
- },
-
- "disabled": function( elem ) {
- return elem.disabled === true;
- },
-
- "checked": function( elem ) {
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
- },
-
- "selected": function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos["empty"]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo(function() {
- return [ 0 ];
- }),
-
- "last": createPositionalPseudo(function( matchIndexes, length ) {
- return [ length - 1 ];
- }),
-
- "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- }),
-
- "even": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "odd": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- })
- }
-};
-
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || (match = rcomma.exec( soFar )) ) {
- if ( match ) {
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[0].length ) || soFar;
- }
- groups.push( (tokens = []) );
- }
-
- matched = false;
-
- // Combinators
- if ( (match = rcombinators.exec( soFar )) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- // Cast descendant combinators to space
- type: match[0].replace( rtrim, " " )
- });
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
- (match = preFilters[ type ]( match ))) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- type: type,
- matches: match
- });
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[i].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- checkNonElements = base && dir === "parentNode",
- doneName = done++;
-
- return combinator.first ?
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, uniqueCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
- if ( xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || (elem[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
-
- if ( (oldCache = uniqueCache[ dir ]) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return (newCache[ 2 ] = oldCache[ 2 ]);
- } else {
- // Reuse newcache so results back-propagate to previous elements
- uniqueCache[ dir ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
- return true;
- }
- }
- }
- }
- }
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[i]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[0];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[i], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( (elem = unmatched[i]) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction(function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( (elem = temp[i]) ) {
- matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) ) {
- // Restore matcherIn since elem is not yet a final match
- temp.push( (matcherIn[i] = elem) );
- }
- }
- postFinder( null, (matcherOut = []), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) &&
- (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
-
- seed[temp] = !(results[temp] = elem);
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- });
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[0].type ],
- implicitRelative = leadingRelative || Expr.relative[" "],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- (checkContext = context).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
- // Avoid hanging onto element (issue #299)
- checkContext = null;
- return ret;
- } ];
-
- for ( ; i < len; i++ ) {
- if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
- matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
- } else {
- matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[j].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
- ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
- len = elems.length;
-
- if ( outermost ) {
- outermostContext = context === document || context || outermost;
- }
-
- // Add elements passing elementMatchers directly to results
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
- for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
- if ( !context && elem.ownerDocument !== document ) {
- setDocument( elem );
- xml = !documentIsHTML;
- }
- while ( (matcher = elementMatchers[j++]) ) {
- if ( matcher( elem, context || document, xml) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
- // They will have gone through all possible matchers
- if ( (elem = !matcher && elem) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // `i` is now the count of elements visited above, and adding it to `matchedCount`
- // makes the latter nonnegative.
- matchedCount += i;
-
- // Apply set filters to unmatched elements
- // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
- // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
- // no element matchers and no seed.
- // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
- // case, which will result in a "00" `matchedCount` that differs from `i` but is also
- // numerically zero.
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( (matcher = setMatchers[j++]) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !(unmatched[i] || setMatched[i]) ) {
- setMatched[i] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[i] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( (selector = compiled.selector || selector) );
-
- results = results || [];
-
- // Try to minimize operations if there is only one selector in the list and no seed
- // (the latter of which guarantees us context)
- if ( match.length === 1 ) {
-
- // Reduce context if the leading compound selector is an ID
- tokens = match[0] = match[0].slice( 0 );
- if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
- support.getById && context.nodeType === 9 && documentIsHTML &&
- Expr.relative[ tokens[1].type ] ) {
-
- context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[i];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ (type = token.type) ] ) {
- break;
- }
- if ( (find = Expr.find[ type ]) ) {
- // Search, expanding context for leading sibling combinators
- if ( (seed = find(
- token.matches[0].replace( runescape, funescape ),
- rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
- )) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert(function( div1 ) {
- // Should return 1, but returns 4 (following)
- return div1.compareDocumentPosition( document.createElement("div") ) & 1;
-});
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert(function( div ) {
- div.innerHTML = "<a href='#'></a>";
- return div.firstChild.getAttribute("href") === "#" ;
-}) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- });
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert(function( div ) {
- div.innerHTML = "<input/>";
- div.firstChild.setAttribute( "value", "" );
- return div.firstChild.getAttribute( "value" ) === "";
-}) ) {
- addHandle( "value", function( elem, name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- });
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert(function( div ) {
- return div.getAttribute("disabled") == null;
-}) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- (val = elem.getAttributeNode( name )) && val.specified ?
- val.value :
- null;
- }
- });
-}
-
-return Sizzle;
-
-})( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-
-var dir = function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
-};
-
-
-var siblings = function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
-};
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-var rsingleTag = ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
-
-
-
-var risSimple = /^.[^:#\[\.,]*$/;
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- /* jshint -W018 */
- return !!qualifier.call( elem, i, elem ) !== not;
- } );
-
- }
-
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- } );
-
- }
-
- if ( typeof qualifier === "string" ) {
- if ( risSimple.test( qualifier ) ) {
- return jQuery.filter( qualifier, elements, not );
- }
-
- qualifier = jQuery.filter( qualifier, elements );
- }
-
- return jQuery.grep( elements, function( elem ) {
- return ( jQuery.inArray( elem, qualifier ) > -1 ) !== not;
- } );
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 && elem.nodeType === 1 ?
- jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
- jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- } ) );
-};
-
-jQuery.fn.extend( {
- find: function( selector ) {
- var i,
- ret = [],
- self = this,
- len = self.length;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- } ) );
- }
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- // Needed because $( selector, context ) becomes $( context ).find( selector )
- ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
- ret.selector = this.selector ? this.selector + " " + selector : selector;
- return ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow( this, selector || [], false ) );
- },
- not: function( selector ) {
- return this.pushStack( winnow( this, selector || [], true ) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-} );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // A simple way to check for HTML strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
-
- init = jQuery.fn.init = function( selector, context, root ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // init accepts an alternate rootjQuery
- // so migrate can support jQuery.sub (gh-2101)
- root = root || rootjQuery;
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector.charAt( 0 ) === "<" &&
- selector.charAt( selector.length - 1 ) === ">" &&
- selector.length >= 3 ) {
-
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && ( match[ 1 ] || !context ) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[ 1 ] ) {
- context = context instanceof jQuery ? context[ 0 ] : context;
-
- // scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[ 1 ],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
-
- // Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[ 2 ] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
-
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[ 2 ] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[ 0 ] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || root ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this.context = this[ 0 ] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return typeof root.ready !== "undefined" ?
- root.ready( selector ) :
-
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- if ( selector.selector !== undefined ) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
- // methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend( {
- has: function( target ) {
- var i,
- targets = jQuery( target, this ),
- len = targets.length;
-
- return this.filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( this, targets[ i ] ) ) {
- return true;
- }
- }
- } );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
- jQuery( selectors, context || this.context ) :
- 0;
-
- for ( ; i < l; i++ ) {
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
- // Always skip document fragments
- if ( cur.nodeType < 11 && ( pos ?
- pos.index( cur ) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // index in selector
- if ( typeof elem === "string" ) {
- return jQuery.inArray( this[ 0 ], jQuery( elem ) );
- }
-
- // Locate the position of the desired element
- return jQuery.inArray(
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem, this );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.uniqueSort(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter( selector )
- );
- }
-} );
-
-function sibling( cur, dir ) {
- do {
- cur = cur[ dir ];
- } while ( cur && cur.nodeType !== 1 );
-
- return cur;
-}
-
-jQuery.each( {
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return siblings( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- ret = jQuery.filter( selector, ret );
- }
-
- if ( this.length > 1 ) {
-
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- ret = jQuery.uniqueSort( ret );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- ret = ret.reverse();
- }
- }
-
- return this.pushStack( ret );
- };
-} );
-var rnotwhite = ( /\S+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
- var object = {};
- jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- } );
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- createOptions( options ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
-
- // Last fire value for non-forgettable lists
- memory,
-
- // Flag to know if list was already fired
- fired,
-
- // Flag to prevent firing
- locked,
-
- // Actual callback list
- list = [],
-
- // Queue of execution data for repeatable lists
- queue = [],
-
- // Index of currently firing callback (modified by add/remove as needed)
- firingIndex = -1,
-
- // Fire callbacks
- fire = function() {
-
- // Enforce single-firing
- locked = options.once;
-
- // Execute callbacks for all pending executions,
- // respecting firingIndex overrides and runtime changes
- fired = firing = true;
- for ( ; queue.length; firingIndex = -1 ) {
- memory = queue.shift();
- while ( ++firingIndex < list.length ) {
-
- // Run callback and check for early termination
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
- options.stopOnFalse ) {
-
- // Jump to end and forget the data so .add doesn't re-fire
- firingIndex = list.length;
- memory = false;
- }
- }
- }
-
- // Forget the data if we're done with it
- if ( !options.memory ) {
- memory = false;
- }
-
- firing = false;
-
- // Clean up if we're done firing for good
- if ( locked ) {
-
- // Keep an empty list if we have data for future add calls
- if ( memory ) {
- list = [];
-
- // Otherwise, this object is spent
- } else {
- list = "";
- }
- }
- },
-
- // Actual Callbacks object
- self = {
-
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
-
- // If we have memory from a past run, we should fire after adding
- if ( memory && !firing ) {
- firingIndex = list.length - 1;
- queue.push( memory );
- }
-
- ( function add( args ) {
- jQuery.each( args, function( _, arg ) {
- if ( jQuery.isFunction( arg ) ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
-
- // Inspect recursively
- add( arg );
- }
- } );
- } )( arguments );
-
- if ( memory && !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Remove a callback from the list
- remove: function() {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
-
- // Handle firing indexes
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- } );
- return this;
- },
-
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ?
- jQuery.inArray( fn, list ) > -1 :
- list.length > 0;
- },
-
- // Remove all callbacks from the list
- empty: function() {
- if ( list ) {
- list = [];
- }
- return this;
- },
-
- // Disable .fire and .add
- // Abort any current/pending executions
- // Clear all callbacks and values
- disable: function() {
- locked = queue = [];
- list = memory = "";
- return this;
- },
- disabled: function() {
- return !list;
- },
-
- // Disable .fire
- // Also disable .add unless we have memory (since it would have no effect)
- // Abort any pending executions
- lock: function() {
- locked = true;
- if ( !memory ) {
- self.disable();
- }
- return this;
- },
- locked: function() {
- return !!locked;
- },
-
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( !locked ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- queue.push( args );
- if ( !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
-
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-jQuery.extend( {
-
- Deferred: function( func ) {
- var tuples = [
-
- // action, add listener, listener list, final state
- [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],
- [ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ],
- [ "notify", "progress", jQuery.Callbacks( "memory" ) ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- then: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
- return jQuery.Deferred( function( newDefer ) {
- jQuery.each( tuples, function( i, tuple ) {
- var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
-
- // deferred[ done | fail | progress ] for forwarding actions to newDefer
- deferred[ tuple[ 1 ] ]( function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise()
- .progress( newDefer.notify )
- .done( newDefer.resolve )
- .fail( newDefer.reject );
- } else {
- newDefer[ tuple[ 0 ] + "With" ](
- this === promise ? newDefer.promise() : this,
- fn ? [ returned ] : arguments
- );
- }
- } );
- } );
- fns = null;
- } ).promise();
- },
-
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Keep pipe for back-compat
- promise.pipe = promise.then;
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 3 ];
-
- // promise[ done | fail | progress ] = list.add
- promise[ tuple[ 1 ] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add( function() {
-
- // state = [ resolved | rejected ]
- state = stateString;
-
- // [ reject_list | resolve_list ].disable; progress_list.lock
- }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
- }
-
- // deferred[ resolve | reject | notify ]
- deferred[ tuple[ 0 ] ] = function() {
- deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments );
- return this;
- };
- deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
- } );
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( subordinate /* , ..., subordinateN */ ) {
- var i = 0,
- resolveValues = slice.call( arguments ),
- length = resolveValues.length,
-
- // the count of uncompleted subordinates
- remaining = length !== 1 ||
- ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
-
- // the master Deferred.
- // If resolveValues consist of only a single Deferred, just use that.
- deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
-
- // Update function for both resolve and progress values
- updateFunc = function( i, contexts, values ) {
- return function( value ) {
- contexts[ i ] = this;
- values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( values === progressValues ) {
- deferred.notifyWith( contexts, values );
-
- } else if ( !( --remaining ) ) {
- deferred.resolveWith( contexts, values );
- }
- };
- },
-
- progressValues, progressContexts, resolveContexts;
-
- // add listeners to Deferred subordinates; treat others as resolved
- if ( length > 1 ) {
- progressValues = new Array( length );
- progressContexts = new Array( length );
- resolveContexts = new Array( length );
- for ( ; i < length; i++ ) {
- if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
- resolveValues[ i ].promise()
- .progress( updateFunc( i, progressContexts, progressValues ) )
- .done( updateFunc( i, resolveContexts, resolveValues ) )
- .fail( deferred.reject );
- } else {
- --remaining;
- }
- }
- }
-
- // if we're not waiting on anything, resolve the master
- if ( !remaining ) {
- deferred.resolveWith( resolveContexts, resolveValues );
- }
-
- return deferred.promise();
- }
-} );
-
-
-// The deferred used on DOM ready
-var readyList;
-
-jQuery.fn.ready = function( fn ) {
-
- // Add the callback
- jQuery.ready.promise().done( fn );
-
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.triggerHandler ) {
- jQuery( document ).triggerHandler( "ready" );
- jQuery( document ).off( "ready" );
- }
- }
-} );
-
-/**
- * Clean-up method for dom ready events
- */
-function detach() {
- if ( document.addEventListener ) {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
-
- } else {
- document.detachEvent( "onreadystatechange", completed );
- window.detachEvent( "onload", completed );
- }
-}
-
-/**
- * The ready event handler and self cleanup method
- */
-function completed() {
-
- // readyState === "complete" is good enough for us to call the dom ready in oldIE
- if ( document.addEventListener ||
- window.event.type === "load" ||
- document.readyState === "complete" ) {
-
- detach();
- jQuery.ready();
- }
-}
-
-jQuery.ready.promise = function( obj ) {
- if ( !readyList ) {
-
- readyList = jQuery.Deferred();
-
- // Catch cases where $(document).ready() is called
- // after the browser event has already occurred.
- // Support: IE6-10
- // Older IE sometimes signals "interactive" too soon
- if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
- // Standards-based browsers support DOMContentLoaded
- } else if ( document.addEventListener ) {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
-
- // If IE event model is used
- } else {
-
- // Ensure firing before onload, maybe late but safe also for iframes
- document.attachEvent( "onreadystatechange", completed );
-
- // A fallback to window.onload, that will always work
- window.attachEvent( "onload", completed );
-
- // If IE and not a frame
- // continually check to see if the document is ready
- var top = false;
-
- try {
- top = window.frameElement == null && document.documentElement;
- } catch ( e ) {}
-
- if ( top && top.doScroll ) {
- ( function doScrollCheck() {
- if ( !jQuery.isReady ) {
-
- try {
-
- // Use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- top.doScroll( "left" );
- } catch ( e ) {
- return window.setTimeout( doScrollCheck, 50 );
- }
-
- // detach all dom ready events
- detach();
-
- // and execute any waiting functions
- jQuery.ready();
- }
- } )();
- }
- }
- }
- return readyList.promise( obj );
-};
-
-// Kick off the DOM ready check even if the user does not
-jQuery.ready.promise();
-
-
-
-
-// Support: IE<9
-// Iteration over object's inherited properties before its own
-var i;
-for ( i in jQuery( support ) ) {
- break;
-}
-support.ownFirst = i === "0";
-
-// Note: most support tests are defined in their respective modules.
-// false until the test is run
-support.inlineBlockNeedsLayout = false;
-
-// Execute ASAP in case we need to set body.style.zoom
-jQuery( function() {
-
- // Minified: var a,b,c,d
- var val, div, body, container;
-
- body = document.getElementsByTagName( "body" )[ 0 ];
- if ( !body || !body.style ) {
-
- // Return for frameset docs that don't have a body
- return;
- }
-
- // Setup
- div = document.createElement( "div" );
- container = document.createElement( "div" );
- container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
- body.appendChild( container ).appendChild( div );
-
- if ( typeof div.style.zoom !== "undefined" ) {
-
- // Support: IE<8
- // Check if natively block-level elements act like inline-block
- // elements when setting their display to 'inline' and giving
- // them layout
- div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
-
- support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
- if ( val ) {
-
- // Prevent IE 6 from affecting layout for positioned elements #11048
- // Prevent IE from shrinking the body in IE 7 mode #12869
- // Support: IE<8
- body.style.zoom = 1;
- }
- }
-
- body.removeChild( container );
-} );
-
-
-( function() {
- var div = document.createElement( "div" );
-
- // Support: IE<9
- support.deleteExpando = true;
- try {
- delete div.test;
- } catch ( e ) {
- support.deleteExpando = false;
- }
-
- // Null elements to avoid leaks in IE.
- div = null;
-} )();
-var acceptData = function( elem ) {
- var noData = jQuery.noData[ ( elem.nodeName + " " ).toLowerCase() ],
- nodeType = +elem.nodeType || 1;
-
- // Do not set data on non-element DOM nodes because it will not be cleared (#8335).
- return nodeType !== 1 && nodeType !== 9 ?
- false :
-
- // Nodes accept data unless otherwise specified; rejection can be conditional
- !noData || noData !== true && elem.getAttribute( "classid" ) === noData;
-};
-
-
-
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /([A-Z])/g;
-
-function dataAttr( elem, key, data ) {
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
-
- var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
-
- // Only convert to a number if it doesn't change the string
- +data + "" === data ? +data :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch ( e ) {}
-
- // Make sure we set the data so it isn't changed later
- jQuery.data( elem, key, data );
-
- } else {
- data = undefined;
- }
- }
-
- return data;
-}
-
-// checks a cache object for emptiness
-function isEmptyDataObject( obj ) {
- var name;
- for ( name in obj ) {
-
- // if the public data object is empty, the private is still empty
- if ( name === "data" && jQuery.isEmptyObject( obj[ name ] ) ) {
- continue;
- }
- if ( name !== "toJSON" ) {
- return false;
- }
- }
-
- return true;
-}
-
-function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
- if ( !acceptData( elem ) ) {
- return;
- }
-
- var ret, thisCache,
- internalKey = jQuery.expando,
-
- // We have to handle DOM nodes and JS objects differently because IE6-7
- // can't GC object references properly across the DOM-JS boundary
- isNode = elem.nodeType,
-
- // Only DOM nodes need the global jQuery cache; JS object data is
- // attached directly to the object so GC can occur automatically
- cache = isNode ? jQuery.cache : elem,
-
- // Only defining an ID for JS objects if its cache already exists allows
- // the code to shortcut on the same path as a DOM node with no cache
- id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;
-
- // Avoid doing any more work than we need to when trying to get data on an
- // object that has no data at all
- if ( ( !id || !cache[ id ] || ( !pvt && !cache[ id ].data ) ) &&
- data === undefined && typeof name === "string" ) {
- return;
- }
-
- if ( !id ) {
-
- // Only DOM nodes need a new unique ID for each element since their data
- // ends up in the global cache
- if ( isNode ) {
- id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++;
- } else {
- id = internalKey;
- }
- }
-
- if ( !cache[ id ] ) {
-
- // Avoid exposing jQuery metadata on plain JS objects when the object
- // is serialized using JSON.stringify
- cache[ id ] = isNode ? {} : { toJSON: jQuery.noop };
- }
-
- // An object can be passed to jQuery.data instead of a key/value pair; this gets
- // shallow copied over onto the existing cache
- if ( typeof name === "object" || typeof name === "function" ) {
- if ( pvt ) {
- cache[ id ] = jQuery.extend( cache[ id ], name );
- } else {
- cache[ id ].data = jQuery.extend( cache[ id ].data, name );
- }
- }
-
- thisCache = cache[ id ];
-
- // jQuery data() is stored in a separate object inside the object's internal data
- // cache in order to avoid key collisions between internal data and user-defined
- // data.
- if ( !pvt ) {
- if ( !thisCache.data ) {
- thisCache.data = {};
- }
-
- thisCache = thisCache.data;
- }
-
- if ( data !== undefined ) {
- thisCache[ jQuery.camelCase( name ) ] = data;
- }
-
- // Check for both converted-to-camel and non-converted data property names
- // If a data property was specified
- if ( typeof name === "string" ) {
-
- // First Try to find as-is property data
- ret = thisCache[ name ];
-
- // Test for null|undefined property data
- if ( ret == null ) {
-
- // Try to find the camelCased property
- ret = thisCache[ jQuery.camelCase( name ) ];
- }
- } else {
- ret = thisCache;
- }
-
- return ret;
-}
-
-function internalRemoveData( elem, name, pvt ) {
- if ( !acceptData( elem ) ) {
- return;
- }
-
- var thisCache, i,
- isNode = elem.nodeType,
-
- // See jQuery.data for more information
- cache = isNode ? jQuery.cache : elem,
- id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
-
- // If there is already no cache entry for this object, there is no
- // purpose in continuing
- if ( !cache[ id ] ) {
- return;
- }
-
- if ( name ) {
-
- thisCache = pvt ? cache[ id ] : cache[ id ].data;
-
- if ( thisCache ) {
-
- // Support array or space separated string names for data keys
- if ( !jQuery.isArray( name ) ) {
-
- // try the string as a key before any manipulation
- if ( name in thisCache ) {
- name = [ name ];
- } else {
-
- // split the camel cased version by spaces unless a key with the spaces exists
- name = jQuery.camelCase( name );
- if ( name in thisCache ) {
- name = [ name ];
- } else {
- name = name.split( " " );
- }
- }
- } else {
-
- // If "name" is an array of keys...
- // When data is initially created, via ("key", "val") signature,
- // keys will be converted to camelCase.
- // Since there is no way to tell _how_ a key was added, remove
- // both plain key and camelCase key. #12786
- // This will only penalize the array argument path.
- name = name.concat( jQuery.map( name, jQuery.camelCase ) );
- }
-
- i = name.length;
- while ( i-- ) {
- delete thisCache[ name[ i ] ];
- }
-
- // If there is no data left in the cache, we want to continue
- // and let the cache object itself get destroyed
- if ( pvt ? !isEmptyDataObject( thisCache ) : !jQuery.isEmptyObject( thisCache ) ) {
- return;
- }
- }
- }
-
- // See jQuery.data for more information
- if ( !pvt ) {
- delete cache[ id ].data;
-
- // Don't destroy the parent cache unless the internal data object
- // had been the only thing left in it
- if ( !isEmptyDataObject( cache[ id ] ) ) {
- return;
- }
- }
-
- // Destroy the cache
- if ( isNode ) {
- jQuery.cleanData( [ elem ], true );
-
- // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
- /* jshint eqeqeq: false */
- } else if ( support.deleteExpando || cache != cache.window ) {
- /* jshint eqeqeq: true */
- delete cache[ id ];
-
- // When all else fails, undefined
- } else {
- cache[ id ] = undefined;
- }
-}
-
-jQuery.extend( {
- cache: {},
-
- // The following elements (space-suffixed to avoid Object.prototype collisions)
- // throw uncatchable exceptions if you attempt to set expando properties
- noData: {
- "applet ": true,
- "embed ": true,
-
- // ...but Flash objects (which have this classid) *can* handle expandos
- "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
- },
-
- hasData: function( elem ) {
- elem = elem.nodeType ? jQuery.cache[ elem[ jQuery.expando ] ] : elem[ jQuery.expando ];
- return !!elem && !isEmptyDataObject( elem );
- },
-
- data: function( elem, name, data ) {
- return internalData( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- return internalRemoveData( elem, name );
- },
-
- // For internal use only.
- _data: function( elem, name, data ) {
- return internalData( elem, name, data, true );
- },
-
- _removeData: function( elem, name ) {
- return internalRemoveData( elem, name, true );
- }
-} );
-
-jQuery.fn.extend( {
- data: function( key, value ) {
- var i, name, data,
- elem = this[ 0 ],
- attrs = elem && elem.attributes;
-
- // Special expections of .data basically thwart jQuery.access,
- // so implement the relevant behavior ourselves
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = jQuery.data( elem );
-
- if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE11+
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.slice( 5 ) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- jQuery._data( elem, "parsedAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each( function() {
- jQuery.data( this, key );
- } );
- }
-
- return arguments.length > 1 ?
-
- // Sets one value
- this.each( function() {
- jQuery.data( this, key, value );
- } ) :
-
- // Gets one value
- // Try to fetch any internally stored data first
- elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined;
- },
-
- removeData: function( key ) {
- return this.each( function() {
- jQuery.removeData( this, key );
- } );
- }
-} );
-
-
-jQuery.extend( {
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = jQuery._data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || jQuery.isArray( data ) ) {
- queue = jQuery._data( elem, type, jQuery.makeArray( data ) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // not intended for public consumption - generates a queueHooks object,
- // or returns the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return jQuery._data( elem, key ) || jQuery._data( elem, key, {
- empty: jQuery.Callbacks( "once memory" ).add( function() {
- jQuery._removeData( elem, type + "queue" );
- jQuery._removeData( elem, key );
- } )
- } );
- }
-} );
-
-jQuery.fn.extend( {
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[ 0 ], type );
- }
-
- return data === undefined ?
- this :
- this.each( function() {
- var queue = jQuery.queue( this, type, data );
-
- // ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- dequeue: function( type ) {
- return this.each( function() {
- jQuery.dequeue( this, type );
- } );
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
-
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = jQuery._data( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-} );
-
-
-( function() {
- var shrinkWrapBlocksVal;
-
- support.shrinkWrapBlocks = function() {
- if ( shrinkWrapBlocksVal != null ) {
- return shrinkWrapBlocksVal;
- }
-
- // Will be changed later if needed.
- shrinkWrapBlocksVal = false;
-
- // Minified: var b,c,d
- var div, body, container;
-
- body = document.getElementsByTagName( "body" )[ 0 ];
- if ( !body || !body.style ) {
-
- // Test fired too early or in an unsupported environment, exit.
- return;
- }
-
- // Setup
- div = document.createElement( "div" );
- container = document.createElement( "div" );
- container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
- body.appendChild( container ).appendChild( div );
-
- // Support: IE6
- // Check if elements with layout shrink-wrap their children
- if ( typeof div.style.zoom !== "undefined" ) {
-
- // Reset CSS: box-sizing; display; margin; border
- div.style.cssText =
-
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
- "box-sizing:content-box;display:block;margin:0;border:0;" +
- "padding:1px;width:1px;zoom:1";
- div.appendChild( document.createElement( "div" ) ).style.width = "5px";
- shrinkWrapBlocksVal = div.offsetWidth !== 3;
- }
-
- body.removeChild( container );
-
- return shrinkWrapBlocksVal;
- };
-
-} )();
-var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var isHidden = function( elem, el ) {
-
- // isHidden might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
- return jQuery.css( elem, "display" ) === "none" ||
- !jQuery.contains( elem.ownerDocument, elem );
- };
-
-
-
-function adjustCSS( elem, prop, valueParts, tween ) {
- var adjusted,
- scale = 1,
- maxIterations = 20,
- currentValue = tween ?
- function() { return tween.cur(); } :
- function() { return jQuery.css( elem, prop, "" ); },
- initial = currentValue(),
- unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
- rcssNum.exec( jQuery.css( elem, prop ) );
-
- if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
- // Trust units reported by jQuery.css
- unit = unit || initialInUnit[ 3 ];
-
- // Make sure we update the tween properties later on
- valueParts = valueParts || [];
-
- // Iteratively approximate from a nonzero starting point
- initialInUnit = +initial || 1;
-
- do {
-
- // If previous iteration zeroed out, double until we get *something*.
- // Use string for doubling so we don't accidentally see scale as unchanged below
- scale = scale || ".5";
-
- // Adjust and apply
- initialInUnit = initialInUnit / scale;
- jQuery.style( elem, prop, initialInUnit + unit );
-
- // Update scale, tolerating zero or NaN from tween.cur()
- // Break the loop if scale is unchanged or perfect, or if we've just had enough.
- } while (
- scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
- );
- }
-
- if ( valueParts ) {
- initialInUnit = +initialInUnit || +initial || 0;
-
- // Apply relative offset (+=/-=) if specified
- adjusted = valueParts[ 1 ] ?
- initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
- +valueParts[ 2 ];
- if ( tween ) {
- tween.unit = unit;
- tween.start = initialInUnit;
- tween.end = adjusted;
- }
- }
- return adjusted;
-}
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- length = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( jQuery.type( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !jQuery.isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
-
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < length; i++ ) {
- fn(
- elems[ i ],
- key,
- raw ? value : value.call( elems[ i ], i, fn( elems[ i ], key ) )
- );
- }
- }
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- length ? fn( elems[ 0 ], key ) : emptyGet;
-};
-var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-var rtagName = ( /<([\w:-]+)/ );
-
-var rscriptType = ( /^$|\/(?:java|ecma)script/i );
-
-var rleadingWhitespace = ( /^\s+/ );
-
-var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|" +
- "details|dialog|figcaption|figure|footer|header|hgroup|main|" +
- "mark|meter|nav|output|picture|progress|section|summary|template|time|video";
-
-
-
-function createSafeFragment( document ) {
- var list = nodeNames.split( "|" ),
- safeFrag = document.createDocumentFragment();
-
- if ( safeFrag.createElement ) {
- while ( list.length ) {
- safeFrag.createElement(
- list.pop()
- );
- }
- }
- return safeFrag;
-}
-
-
-( function() {
- var div = document.createElement( "div" ),
- fragment = document.createDocumentFragment(),
- input = document.createElement( "input" );
-
- // Setup
- div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
-
- // IE strips leading whitespace when .innerHTML is used
- support.leadingWhitespace = div.firstChild.nodeType === 3;
-
- // Make sure that tbody elements aren't automatically inserted
- // IE will insert them into empty tables
- support.tbody = !div.getElementsByTagName( "tbody" ).length;
-
- // Make sure that link elements get serialized correctly by innerHTML
- // This requires a wrapper element in IE
- support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;
-
- // Makes sure cloning an html5 element does not cause problems
- // Where outerHTML is undefined, this still works
- support.html5Clone =
- document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";
-
- // Check if a disconnected checkbox will retain its checked
- // value of true after appended to the DOM (IE6/7)
- input.type = "checkbox";
- input.checked = true;
- fragment.appendChild( input );
- support.appendChecked = input.checked;
-
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- // Support: IE6-IE11+
- div.innerHTML = "<textarea>x</textarea>";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-
- // #11217 - WebKit loses check when the name is after the checked attribute
- fragment.appendChild( div );
-
- // Support: Windows Web Apps (WWA)
- // `name` and `type` must use .setAttribute for WWA (#14901)
- input = document.createElement( "input" );
- input.setAttribute( "type", "radio" );
- input.setAttribute( "checked", "checked" );
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
-
- // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
- // old WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE<9
- // Cloned elements keep attachEvent handlers, we use addEventListener on IE9+
- support.noCloneEvent = !!div.addEventListener;
-
- // Support: IE<9
- // Since attributes and properties are the same in IE,
- // cleanData must set properties to undefined rather than use removeAttribute
- div[ jQuery.expando ] = 1;
- support.attributes = !div.getAttribute( jQuery.expando );
-} )();
-
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
- legend: [ 1, "<fieldset>", "</fieldset>" ],
- area: [ 1, "<map>", "</map>" ],
-
- // Support: IE8
- param: [ 1, "<object>", "</object>" ],
- thead: [ 1, "<table>", "</table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
- // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
- // unless wrapped in a div with non-breaking characters in front of it.
- _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]
-};
-
-// Support: IE8-IE9
-wrapMap.optgroup = wrapMap.option;
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-
-function getAll( context, tag ) {
- var elems, elem,
- i = 0,
- found = typeof context.getElementsByTagName !== "undefined" ?
- context.getElementsByTagName( tag || "*" ) :
- typeof context.querySelectorAll !== "undefined" ?
- context.querySelectorAll( tag || "*" ) :
- undefined;
-
- if ( !found ) {
- for ( found = [], elems = context.childNodes || context;
- ( elem = elems[ i ] ) != null;
- i++
- ) {
- if ( !tag || jQuery.nodeName( elem, tag ) ) {
- found.push( elem );
- } else {
- jQuery.merge( found, getAll( elem, tag ) );
- }
- }
- }
-
- return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
- jQuery.merge( [ context ], found ) :
- found;
-}
-
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var elem,
- i = 0;
- for ( ; ( elem = elems[ i ] ) != null; i++ ) {
- jQuery._data(
- elem,
- "globalEval",
- !refElements || jQuery._data( refElements[ i ], "globalEval" )
- );
- }
-}
-
-
-var rhtml = /<|&#?\w+;/,
- rtbody = /<tbody/i;
-
-function fixDefaultChecked( elem ) {
- if ( rcheckableType.test( elem.type ) ) {
- elem.defaultChecked = elem.checked;
- }
-}
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
- var j, elem, contains,
- tmp, tag, tbody, wrap,
- l = elems.length,
-
- // Ensure a safe fragment
- safe = createSafeFragment( context ),
-
- nodes = [],
- i = 0;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( jQuery.type( elem ) === "object" ) {
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || safe.appendChild( context.createElement( "div" ) );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
-
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Manually add leading whitespace removed by IE
- if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
- nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[ 0 ] ) );
- }
-
- // Remove IE's autoinserted <tbody> from table fragments
- if ( !support.tbody ) {
-
- // String was a <table>, *may* have spurious <tbody>
- elem = tag === "table" && !rtbody.test( elem ) ?
- tmp.firstChild :
-
- // String was a bare <thead> or <tfoot>
- wrap[ 1 ] === "<table>" && !rtbody.test( elem ) ?
- tmp :
- 0;
-
- j = elem && elem.childNodes.length;
- while ( j-- ) {
- if ( jQuery.nodeName( ( tbody = elem.childNodes[ j ] ), "tbody" ) &&
- !tbody.childNodes.length ) {
-
- elem.removeChild( tbody );
- }
- }
- }
-
- jQuery.merge( nodes, tmp.childNodes );
-
- // Fix #12392 for WebKit and IE > 9
- tmp.textContent = "";
-
- // Fix #12392 for oldIE
- while ( tmp.firstChild ) {
- tmp.removeChild( tmp.firstChild );
- }
-
- // Remember the top-level container for proper cleanup
- tmp = safe.lastChild;
- }
- }
- }
-
- // Fix #11356: Clear elements from fragment
- if ( tmp ) {
- safe.removeChild( tmp );
- }
-
- // Reset defaultChecked for any radios and checkboxes
- // about to be appended to the DOM in IE 6/7 (#8060)
- if ( !support.appendChecked ) {
- jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );
- }
-
- i = 0;
- while ( ( elem = nodes[ i++ ] ) ) {
-
- // Skip elements already in the context collection (trac-4087)
- if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
- if ( ignored ) {
- ignored.push( elem );
- }
-
- continue;
- }
-
- contains = jQuery.contains( elem.ownerDocument, elem );
-
- // Append to fragment
- tmp = getAll( safe.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( contains ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( ( elem = tmp[ j++ ] ) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- tmp = null;
-
- return safe;
-}
-
-
-( function() {
- var i, eventName,
- div = document.createElement( "div" );
-
- // Support: IE<9 (lack submit/change bubble), Firefox (lack focus(in | out) events)
- for ( i in { submit: true, change: true, focusin: true } ) {
- eventName = "on" + i;
-
- if ( !( support[ i ] = eventName in window ) ) {
-
- // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
- div.setAttribute( eventName, "t" );
- support[ i ] = div.attributes[ eventName ].expando === false;
- }
- }
-
- // Null elements to avoid leaks in IE.
- div = null;
-} )();
-
-
-var rformElems = /^(?:input|select|textarea)$/i,
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-// Support: IE9
-// See #13393 for more info
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
-
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
-
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- on( elem, type, selector, data, types[ type ], one );
- }
- return elem;
- }
-
- if ( data == null && fn == null ) {
-
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
-
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
-
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return elem;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
-
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
-
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return elem.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- } );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
- var tmp, events, t, handleObjIn,
- special, eventHandle, handleObj,
- handlers, type, namespaces, origType,
- elemData = jQuery._data( elem );
-
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- if ( !elemData ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !( events = elemData.events ) ) {
- events = elemData.events = {};
- }
- if ( !( eventHandle = elemData.handle ) ) {
- eventHandle = elemData.handle = function( e ) {
-
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" &&
- ( !e || jQuery.event.triggered !== e.type ) ?
- jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
- undefined;
- };
-
- // Add elem as a property of the handle fn to prevent a memory leak
- // with IE non-native events
- eventHandle.elem = elem;
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend( {
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join( "." )
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !( handlers = events[ type ] ) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener/attachEvent if the special events handler returns false
- if ( !special.setup ||
- special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
- // Bind the global event handler to the element
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
-
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
- var j, handleObj, tmp,
- origCount, t, events,
- special, handlers, type,
- namespaces, origType,
- elemData = jQuery.hasData( elem ) && jQuery._data( elem );
-
- if ( !elemData || !( events = elemData.events ) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[ 2 ] &&
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector ||
- selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown ||
- special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- delete elemData.handle;
-
- // removeData also checks for emptiness and clears the expando if empty
- // so use it instead of delete
- jQuery._removeData( elem, "events" );
- }
- },
-
- trigger: function( event, data, elem, onlyHandlers ) {
- var handle, ontype, cur,
- bubbleType, special, tmp, i,
- eventPath = [ elem || document ],
- type = hasOwn.call( event, "type" ) ? event.type : event,
- namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
-
- cur = tmp = elem = elem || document;
-
- // Don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf( "." ) > -1 ) {
-
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split( "." );
- type = namespaces.shift();
- namespaces.sort();
- }
- ontype = type.indexOf( ":" ) < 0 && "on" + type;
-
- // Caller can pass in a jQuery.Event object, Object, or just an event type string
- event = event[ jQuery.expando ] ?
- event :
- new jQuery.Event( type, typeof event === "object" && event );
-
- // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
- event.isTrigger = onlyHandlers ? 2 : 3;
- event.namespace = namespaces.join( "." );
- event.rnamespace = event.namespace ?
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
- null;
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data == null ?
- [ event ] :
- jQuery.makeArray( data, [ event ] );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- if ( !rfocusMorph.test( bubbleType + type ) ) {
- cur = cur.parentNode;
- }
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push( cur );
- tmp = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( tmp === ( elem.ownerDocument || document ) ) {
- eventPath.push( tmp.defaultView || tmp.parentWindow || window );
- }
- }
-
- // Fire handlers on the event path
- i = 0;
- while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
-
- event.type = i > 1 ?
- bubbleType :
- special.bindType || type;
-
- // jQuery handler
- handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] &&
- jQuery._data( cur, "handle" );
-
- if ( handle ) {
- handle.apply( cur, data );
- }
-
- // Native handler
- handle = ontype && cur[ ontype ];
- if ( handle && handle.apply && acceptData( cur ) ) {
- event.result = handle.apply( cur, data );
- if ( event.result === false ) {
- event.preventDefault();
- }
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if (
- ( !special._default ||
- special._default.apply( eventPath.pop(), data ) === false
- ) && acceptData( elem )
- ) {
-
- // Call a native DOM method on the target with the same name name as the event.
- // Can't use an .isFunction() check here because IE6/7 fails that test.
- // Don't do default actions on window, that's where global variables be (#6170)
- if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- tmp = elem[ ontype ];
-
- if ( tmp ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- try {
- elem[ type ]();
- } catch ( e ) {
-
- // IE<9 dies on focus/blur to hidden element (#1486,#12518)
- // only reproducible on winXP IE8 native, not IE9 in IE8 mode
- }
- jQuery.event.triggered = undefined;
-
- if ( tmp ) {
- elem[ ontype ] = tmp;
- }
- }
- }
- }
-
- return event.result;
- },
-
- dispatch: function( event ) {
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( event );
-
- var i, j, ret, matched, handleObj,
- handlerQueue = [],
- args = slice.call( arguments ),
- handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[ 0 ] = event;
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( ( handleObj = matched.handlers[ j++ ] ) &&
- !event.isImmediatePropagationStopped() ) {
-
- // Triggered event must either 1) have no namespace, or 2) have namespace(s)
- // a subset or equal to those in the bound event (both can have no namespace).
- if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
- handleObj.handler ).apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( ( event.result = ret ) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, matches, sel, handleObj,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Support (at least): Chrome, IE9
- // Find delegate handlers
- // Black-hole SVG <use> instance trees (#13180)
- //
- // Support: Firefox<=42+
- // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
- if ( delegateCount && cur.nodeType &&
- ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
-
- /* jshint eqeqeq: false */
- for ( ; cur != this; cur = cur.parentNode || this ) {
- /* jshint eqeqeq: true */
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) {
- matches = [];
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matches[ sel ] === undefined ) {
- matches[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) > -1 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matches[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push( { elem: cur, handlers: matches } );
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( delegateCount < handlers.length ) {
- handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );
- }
-
- return handlerQueue;
- },
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // Create a writable copy of the event object and normalize some properties
- var i, prop, copy,
- type = event.type,
- originalEvent = event,
- fixHook = this.fixHooks[ type ];
-
- if ( !fixHook ) {
- this.fixHooks[ type ] = fixHook =
- rmouseEvent.test( type ) ? this.mouseHooks :
- rkeyEvent.test( type ) ? this.keyHooks :
- {};
- }
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
- event = new jQuery.Event( originalEvent );
-
- i = copy.length;
- while ( i-- ) {
- prop = copy[ i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Support: IE<9
- // Fix target property (#1925)
- if ( !event.target ) {
- event.target = originalEvent.srcElement || document;
- }
-
- // Support: Safari 6-8+
- // Target should not be a text node (#504, #13143)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- // Support: IE<9
- // For mouse/key events, metaKey==false if it's undefined (#3368, #11328)
- event.metaKey = !!event.metaKey;
-
- return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
- },
-
- // Includes some event props shared by KeyEvent and MouseEvent
- props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
- "metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
-
- fixHooks: {},
-
- keyHooks: {
- props: "char charCode key keyCode".split( " " ),
- filter: function( event, original ) {
-
- // Add which for key events
- if ( event.which == null ) {
- event.which = original.charCode != null ? original.charCode : original.keyCode;
- }
-
- return event;
- }
- },
-
- mouseHooks: {
- props: ( "button buttons clientX clientY fromElement offsetX offsetY " +
- "pageX pageY screenX screenY toElement" ).split( " " ),
- filter: function( event, original ) {
- var body, eventDoc, doc,
- button = original.button,
- fromElement = original.fromElement;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && original.clientX != null ) {
- eventDoc = event.target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
-
- event.pageX = original.clientX +
- ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) -
- ( doc && doc.clientLeft || body && body.clientLeft || 0 );
- event.pageY = original.clientY +
- ( doc && doc.scrollTop || body && body.scrollTop || 0 ) -
- ( doc && doc.clientTop || body && body.clientTop || 0 );
- }
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && fromElement ) {
- event.relatedTarget = fromElement === event.target ?
- original.toElement :
- fromElement;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && button !== undefined ) {
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event;
- }
- },
-
- special: {
- load: {
-
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- focus: {
-
- // Fire native event if possible so blur/focus sequence is correct
- trigger: function() {
- if ( this !== safeActiveElement() && this.focus ) {
- try {
- this.focus();
- return false;
- } catch ( e ) {
-
- // Support: IE<9
- // If we error on focus to hidden element (#1486, #12518),
- // let .trigger() run the handlers
- }
- }
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if ( this === safeActiveElement() && this.blur ) {
- this.blur();
- return false;
- }
- },
- delegateType: "focusout"
- },
- click: {
-
- // For checkbox, fire native event so checked state will be right
- trigger: function() {
- if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
- this.click();
- return false;
- }
- },
-
- // For cross-browser consistency, don't fire native .click() on links
- _default: function( event ) {
- return jQuery.nodeName( event.target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- },
-
- // Piggyback on a donor event to simulate a different one
- simulate: function( type, elem, event ) {
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- {
- type: type,
- isSimulated: true
-
- // Previously, `originalEvent: {}` was set here, so stopPropagation call
- // would not be triggered on donor event, since in our own
- // jQuery.event.stopPropagation function we had a check for existence of
- // originalEvent.stopPropagation method, so, consequently it would be a noop.
- //
- // Guard for simulated events was moved to jQuery.event.stopPropagation function
- // since `originalEvent` should point to the original event for the
- // constancy with other events and for more focused logic
- }
- );
-
- jQuery.event.trigger( e, null, elem );
-
- if ( e.isDefaultPrevented() ) {
- event.preventDefault();
- }
- }
-};
-
-jQuery.removeEvent = document.removeEventListener ?
- function( elem, type, handle ) {
-
- // This "if" is needed for plain objects
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle );
- }
- } :
- function( elem, type, handle ) {
- var name = "on" + type;
-
- if ( elem.detachEvent ) {
-
- // #8545, #7054, preventing memory leaks for custom events in IE6-8
- // detachEvent needed property on element, by name of that event,
- // to properly expose it to GC
- if ( typeof elem[ name ] === "undefined" ) {
- elem[ name ] = null;
- }
-
- elem.detachEvent( name, handle );
- }
- };
-
-jQuery.Event = function( src, props ) {
-
- // Allow instantiation without the 'new' keyword
- if ( !( this instanceof jQuery.Event ) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
-
- // Support: IE < 9, Android < 4.0
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- constructor: jQuery.Event,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
- if ( !e ) {
- return;
- }
-
- // If preventDefault exists, run it on the original event
- if ( e.preventDefault ) {
- e.preventDefault();
-
- // Support: IE
- // Otherwise set the returnValue property of the original event to false
- } else {
- e.returnValue = false;
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( !e || this.isSimulated ) {
- return;
- }
-
- // If stopPropagation exists, run it on the original event
- if ( e.stopPropagation ) {
- e.stopPropagation();
- }
-
- // Support: IE
- // Set the cancelBubble property of the original event to true
- e.cancelBubble = true;
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && e.stopImmediatePropagation ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://code.google.com/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mouseenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-} );
-
-// IE submit delegation
-if ( !support.submit ) {
-
- jQuery.event.special.submit = {
- setup: function() {
-
- // Only need this for delegated form submit events
- if ( jQuery.nodeName( this, "form" ) ) {
- return false;
- }
-
- // Lazy-add a submit handler when a descendant form may potentially be submitted
- jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
-
- // Node name check avoids a VML-related crash in IE (#9807)
- var elem = e.target,
- form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ?
-
- // Support: IE <=8
- // We use jQuery.prop instead of elem.form
- // to allow fixing the IE8 delegated submit issue (gh-2332)
- // by 3rd party polyfills/workarounds.
- jQuery.prop( elem, "form" ) :
- undefined;
-
- if ( form && !jQuery._data( form, "submit" ) ) {
- jQuery.event.add( form, "submit._submit", function( event ) {
- event._submitBubble = true;
- } );
- jQuery._data( form, "submit", true );
- }
- } );
-
- // return undefined since we don't need an event listener
- },
-
- postDispatch: function( event ) {
-
- // If form was submitted by the user, bubble the event up the tree
- if ( event._submitBubble ) {
- delete event._submitBubble;
- if ( this.parentNode && !event.isTrigger ) {
- jQuery.event.simulate( "submit", this.parentNode, event );
- }
- }
- },
-
- teardown: function() {
-
- // Only need this for delegated form submit events
- if ( jQuery.nodeName( this, "form" ) ) {
- return false;
- }
-
- // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
- jQuery.event.remove( this, "._submit" );
- }
- };
-}
-
-// IE change delegation and checkbox/radio fix
-if ( !support.change ) {
-
- jQuery.event.special.change = {
-
- setup: function() {
-
- if ( rformElems.test( this.nodeName ) ) {
-
- // IE doesn't fire change on a check/radio until blur; trigger it on click
- // after a propertychange. Eat the blur-change in special.change.handle.
- // This still fires onchange a second time for check/radio after blur.
- if ( this.type === "checkbox" || this.type === "radio" ) {
- jQuery.event.add( this, "propertychange._change", function( event ) {
- if ( event.originalEvent.propertyName === "checked" ) {
- this._justChanged = true;
- }
- } );
- jQuery.event.add( this, "click._change", function( event ) {
- if ( this._justChanged && !event.isTrigger ) {
- this._justChanged = false;
- }
-
- // Allow triggered, simulated change events (#11500)
- jQuery.event.simulate( "change", this, event );
- } );
- }
- return false;
- }
-
- // Delegated event; lazy-add a change handler on descendant inputs
- jQuery.event.add( this, "beforeactivate._change", function( e ) {
- var elem = e.target;
-
- if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "change" ) ) {
- jQuery.event.add( elem, "change._change", function( event ) {
- if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
- jQuery.event.simulate( "change", this.parentNode, event );
- }
- } );
- jQuery._data( elem, "change", true );
- }
- } );
- },
-
- handle: function( event ) {
- var elem = event.target;
-
- // Swallow native change events from checkbox/radio, we already triggered them above
- if ( this !== elem || event.isSimulated || event.isTrigger ||
- ( elem.type !== "radio" && elem.type !== "checkbox" ) ) {
-
- return event.handleObj.handler.apply( this, arguments );
- }
- },
-
- teardown: function() {
- jQuery.event.remove( this, "._change" );
-
- return !rformElems.test( this.nodeName );
- }
- };
-}
-
-// Support: Firefox
-// Firefox doesn't have focus(in | out) events
-// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
-//
-// Support: Chrome, Safari
-// focus(in | out) events fire after focus & blur events,
-// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
-// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857
-if ( !support.focusin ) {
- jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler on the document while someone wants focusin/focusout
- var handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- var doc = this.ownerDocument || this,
- attaches = jQuery._data( doc, fix );
-
- if ( !attaches ) {
- doc.addEventListener( orig, handler, true );
- }
- jQuery._data( doc, fix, ( attaches || 0 ) + 1 );
- },
- teardown: function() {
- var doc = this.ownerDocument || this,
- attaches = jQuery._data( doc, fix ) - 1;
-
- if ( !attaches ) {
- doc.removeEventListener( orig, handler, true );
- jQuery._removeData( doc, fix );
- } else {
- jQuery._data( doc, fix, attaches );
- }
- }
- };
- } );
-}
-
-jQuery.fn.extend( {
-
- on: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn );
- },
- one: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
-
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ?
- handleObj.origType + "." + handleObj.namespace :
- handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
-
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
-
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each( function() {
- jQuery.event.remove( this, types, fn, selector );
- } );
- },
-
- trigger: function( type, data ) {
- return this.each( function() {
- jQuery.event.trigger( type, data, this );
- } );
- },
- triggerHandler: function( type, data ) {
- var elem = this[ 0 ];
- if ( elem ) {
- return jQuery.event.trigger( type, data, elem, true );
- }
- }
-} );
-
-
-var rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
- rnoshimcache = new RegExp( "<(?:" + nodeNames + ")[\\s/>]", "i" ),
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
-
- // Support: IE 10-11, Edge 10240+
- // In IE/Edge using regex groups here causes severe slowdowns.
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
- rnoInnerhtml = /<script|<style|<link/i,
-
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptTypeMasked = /^true\/(.*)/,
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
- safeFragment = createSafeFragment( document ),
- fragmentDiv = safeFragment.appendChild( document.createElement( "div" ) );
-
-// Support: IE<8
-// Manipulating tables requires a tbody
-function manipulationTarget( elem, content ) {
- return jQuery.nodeName( elem, "table" ) &&
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
-
- elem.getElementsByTagName( "tbody" )[ 0 ] ||
- elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
- elem;
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
- elem.type = ( jQuery.find.attr( elem, "type" ) !== null ) + "/" + elem.type;
- return elem;
-}
-function restoreScript( elem ) {
- var match = rscriptTypeMasked.exec( elem.type );
- if ( match ) {
- elem.type = match[ 1 ];
- } else {
- elem.removeAttribute( "type" );
- }
- return elem;
-}
-
-function cloneCopyEvent( src, dest ) {
- if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
- return;
- }
-
- var type, i, l,
- oldData = jQuery._data( src ),
- curData = jQuery._data( dest, oldData ),
- events = oldData.events;
-
- if ( events ) {
- delete curData.handle;
- curData.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
-
- // make the cloned public data object a copy from the original
- if ( curData.data ) {
- curData.data = jQuery.extend( {}, curData.data );
- }
-}
-
-function fixCloneNodeIssues( src, dest ) {
- var nodeName, e, data;
-
- // We do not need to do anything for non-Elements
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- nodeName = dest.nodeName.toLowerCase();
-
- // IE6-8 copies events bound via attachEvent when using cloneNode.
- if ( !support.noCloneEvent && dest[ jQuery.expando ] ) {
- data = jQuery._data( dest );
-
- for ( e in data.events ) {
- jQuery.removeEvent( dest, e, data.handle );
- }
-
- // Event data gets referenced instead of copied if the expando gets copied too
- dest.removeAttribute( jQuery.expando );
- }
-
- // IE blanks contents when cloning scripts, and tries to evaluate newly-set text
- if ( nodeName === "script" && dest.text !== src.text ) {
- disableScript( dest ).text = src.text;
- restoreScript( dest );
-
- // IE6-10 improperly clones children of object elements using classid.
- // IE10 throws NoModificationAllowedError if parent is null, #12132.
- } else if ( nodeName === "object" ) {
- if ( dest.parentNode ) {
- dest.outerHTML = src.outerHTML;
- }
-
- // This path appears unavoidable for IE9. When cloning an object
- // element in IE9, the outerHTML strategy above is not sufficient.
- // If the src has innerHTML and the destination does not,
- // copy the src.innerHTML into the dest.innerHTML. #10324
- if ( support.html5Clone && ( src.innerHTML && !jQuery.trim( dest.innerHTML ) ) ) {
- dest.innerHTML = src.innerHTML;
- }
-
- } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
-
- // IE6-8 fails to persist the checked state of a cloned checkbox
- // or radio button. Worse, IE6-7 fail to give the cloned element
- // a checked appearance if the defaultChecked value isn't also set
-
- dest.defaultChecked = dest.checked = src.checked;
-
- // IE6-7 get confused and end up setting the value of a cloned
- // checkbox/radio button to an empty string instead of "on"
- if ( dest.value !== src.value ) {
- dest.value = src.value;
- }
-
- // IE6-8 fails to return the selected option to the default selected
- // state when cloning options
- } else if ( nodeName === "option" ) {
- dest.defaultSelected = dest.selected = src.defaultSelected;
-
- // IE6-8 fails to set the defaultValue to the correct value when
- // cloning other types of input fields
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-}
-
-function domManip( collection, args, callback, ignored ) {
-
- // Flatten any nested arrays
- args = concat.apply( [], args );
-
- var first, node, hasScripts,
- scripts, doc, fragment,
- i = 0,
- l = collection.length,
- iNoClone = l - 1,
- value = args[ 0 ],
- isFunction = jQuery.isFunction( value );
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( isFunction ||
- ( l > 1 && typeof value === "string" &&
- !support.checkClone && rchecked.test( value ) ) ) {
- return collection.each( function( index ) {
- var self = collection.eq( index );
- if ( isFunction ) {
- args[ 0 ] = value.call( this, index, self.html() );
- }
- domManip( self, args, callback, ignored );
- } );
- }
-
- if ( l ) {
- fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
- first = fragment.firstChild;
-
- if ( fragment.childNodes.length === 1 ) {
- fragment = first;
- }
-
- // Require either new content or an interest in ignored elements to invoke the callback
- if ( first || ignored ) {
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
- hasScripts = scripts.length;
-
- // Use the original fragment for the last item
- // instead of the first because it can end up
- // being emptied incorrectly in certain situations (#8070).
- for ( ; i < l; i++ ) {
- node = fragment;
-
- if ( i !== iNoClone ) {
- node = jQuery.clone( node, true, true );
-
- // Keep references to cloned scripts for later restoration
- if ( hasScripts ) {
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( scripts, getAll( node, "script" ) );
- }
- }
-
- callback.call( collection[ i ], node, i );
- }
-
- if ( hasScripts ) {
- doc = scripts[ scripts.length - 1 ].ownerDocument;
-
- // Reenable scripts
- jQuery.map( scripts, restoreScript );
-
- // Evaluate executable scripts on first document insertion
- for ( i = 0; i < hasScripts; i++ ) {
- node = scripts[ i ];
- if ( rscriptType.test( node.type || "" ) &&
- !jQuery._data( node, "globalEval" ) &&
- jQuery.contains( doc, node ) ) {
-
- if ( node.src ) {
-
- // Optional AJAX dependency, but won't run scripts if not present
- if ( jQuery._evalUrl ) {
- jQuery._evalUrl( node.src );
- }
- } else {
- jQuery.globalEval(
- ( node.text || node.textContent || node.innerHTML || "" )
- .replace( rcleanScript, "" )
- );
- }
- }
- }
- }
-
- // Fix #11809: Avoid leaking memory
- fragment = first = null;
- }
- }
-
- return collection;
-}
-
-function remove( elem, selector, keepData ) {
- var node,
- elems = selector ? jQuery.filter( selector, elem ) : elem,
- i = 0;
-
- for ( ; ( node = elems[ i ] ) != null; i++ ) {
-
- if ( !keepData && node.nodeType === 1 ) {
- jQuery.cleanData( getAll( node ) );
- }
-
- if ( node.parentNode ) {
- if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
- setGlobalEval( getAll( node, "script" ) );
- }
- node.parentNode.removeChild( node );
- }
- }
-
- return elem;
-}
-
-jQuery.extend( {
- htmlPrefilter: function( html ) {
- return html.replace( rxhtmlTag, "<$1></$2>" );
- },
-
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var destElements, node, clone, i, srcElements,
- inPage = jQuery.contains( elem.ownerDocument, elem );
-
- if ( support.html5Clone || jQuery.isXMLDoc( elem ) ||
- !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
-
- clone = elem.cloneNode( true );
-
- // IE<=8 does not properly clone detached, unknown element nodes
- } else {
- fragmentDiv.innerHTML = elem.outerHTML;
- fragmentDiv.removeChild( clone = fragmentDiv.firstChild );
- }
-
- if ( ( !support.noCloneEvent || !support.noCloneChecked ) &&
- ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) {
-
- // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
- destElements = getAll( clone );
- srcElements = getAll( elem );
-
- // Fix all IE cloning issues
- for ( i = 0; ( node = srcElements[ i ] ) != null; ++i ) {
-
- // Ensure that the destination node is not null; Fixes #9587
- if ( destElements[ i ] ) {
- fixCloneNodeIssues( node, destElements[ i ] );
- }
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- if ( deepDataAndEvents ) {
- srcElements = srcElements || getAll( elem );
- destElements = destElements || getAll( clone );
-
- for ( i = 0; ( node = srcElements[ i ] ) != null; i++ ) {
- cloneCopyEvent( node, destElements[ i ] );
- }
- } else {
- cloneCopyEvent( elem, clone );
- }
- }
-
- // Preserve script evaluation history
- destElements = getAll( clone, "script" );
- if ( destElements.length > 0 ) {
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
- }
-
- destElements = srcElements = node = null;
-
- // Return the cloned set
- return clone;
- },
-
- cleanData: function( elems, /* internal */ forceAcceptData ) {
- var elem, type, id, data,
- i = 0,
- internalKey = jQuery.expando,
- cache = jQuery.cache,
- attributes = support.attributes,
- special = jQuery.event.special;
-
- for ( ; ( elem = elems[ i ] ) != null; i++ ) {
- if ( forceAcceptData || acceptData( elem ) ) {
-
- id = elem[ internalKey ];
- data = id && cache[ id ];
-
- if ( data ) {
- if ( data.events ) {
- for ( type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
-
- // Remove cache only if it was not already removed by jQuery.event.remove
- if ( cache[ id ] ) {
-
- delete cache[ id ];
-
- // Support: IE<9
- // IE does not allow us to delete expando properties from nodes
- // IE creates expando attributes along with the property
- // IE does not have a removeAttribute function on Document nodes
- if ( !attributes && typeof elem.removeAttribute !== "undefined" ) {
- elem.removeAttribute( internalKey );
-
- // Webkit & Blink performance suffers when deleting properties
- // from DOM nodes, so set to undefined instead
- // https://code.google.com/p/chromium/issues/detail?id=378607
- } else {
- elem[ internalKey ] = undefined;
- }
-
- deletedIds.push( id );
- }
- }
- }
- }
- }
-} );
-
-jQuery.fn.extend( {
-
- // Keep domManip exposed until 3.0 (gh-2225)
- domManip: domManip,
-
- detach: function( selector ) {
- return remove( this, selector, true );
- },
-
- remove: function( selector ) {
- return remove( this, selector );
- },
-
- text: function( value ) {
- return access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().append(
- ( this[ 0 ] && this[ 0 ].ownerDocument || document ).createTextNode( value )
- );
- }, null, value, arguments.length );
- },
-
- append: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.appendChild( elem );
- }
- } );
- },
-
- prepend: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.insertBefore( elem, target.firstChild );
- }
- } );
- },
-
- before: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this );
- }
- } );
- },
-
- after: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- }
- } );
- },
-
- empty: function() {
- var elem,
- i = 0;
-
- for ( ; ( elem = this[ i ] ) != null; i++ ) {
-
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- }
-
- // Remove any remaining nodes
- while ( elem.firstChild ) {
- elem.removeChild( elem.firstChild );
- }
-
- // If this is a select, ensure that it displays empty (#12336)
- // Support: IE<9
- if ( elem.options && jQuery.nodeName( elem, "select" ) ) {
- elem.options.length = 0;
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function() {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- } );
- },
-
- html: function( value ) {
- return access( this, function( value ) {
- var elem = this[ 0 ] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined ) {
- return elem.nodeType === 1 ?
- elem.innerHTML.replace( rinlinejQuery, "" ) :
- undefined;
- }
-
- // See if we can take a shortcut and just use innerHTML
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- ( support.htmlSerialize || !rnoshimcache.test( value ) ) &&
- ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
- !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
- value = jQuery.htmlPrefilter( value );
-
- try {
- for ( ; i < l; i++ ) {
-
- // Remove element nodes and prevent memory leaks
- elem = this[ i ] || {};
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch ( e ) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function() {
- var ignored = [];
-
- // Make the changes, replacing each non-ignored context element with the new content
- return domManip( this, arguments, function( elem ) {
- var parent = this.parentNode;
-
- if ( jQuery.inArray( this, ignored ) < 0 ) {
- jQuery.cleanData( getAll( this ) );
- if ( parent ) {
- parent.replaceChild( elem, this );
- }
- }
-
- // Force callback invocation
- }, ignored );
- }
-} );
-
-jQuery.each( {
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var elems,
- i = 0,
- ret = [],
- insert = jQuery( selector ),
- last = insert.length - 1;
-
- for ( ; i <= last; i++ ) {
- elems = i === last ? this : this.clone( true );
- jQuery( insert[ i ] )[ original ]( elems );
-
- // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
- push.apply( ret, elems.get() );
- }
-
- return this.pushStack( ret );
- };
-} );
-
-
-var iframe,
- elemdisplay = {
-
- // Support: Firefox
- // We have to pre-define these values for FF (#10227)
- HTML: "block",
- BODY: "block"
- };
-
-/**
- * Retrieve the actual display of a element
- * @param {String} name nodeName of the element
- * @param {Object} doc Document object
- */
-
-// Called only from within defaultDisplay
-function actualDisplay( name, doc ) {
- var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
-
- display = jQuery.css( elem[ 0 ], "display" );
-
- // We don't have any data stored on the element,
- // so use "detach" method as fast way to get rid of the element
- elem.detach();
-
- return display;
-}
-
-/**
- * Try to determine the default display value of an element
- * @param {String} nodeName
- */
-function defaultDisplay( nodeName ) {
- var doc = document,
- display = elemdisplay[ nodeName ];
-
- if ( !display ) {
- display = actualDisplay( nodeName, doc );
-
- // If the simple way fails, read from inside an iframe
- if ( display === "none" || !display ) {
-
- // Use the already-created iframe if possible
- iframe = ( iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" ) )
- .appendTo( doc.documentElement );
-
- // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
- doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;
-
- // Support: IE
- doc.write();
- doc.close();
-
- display = actualDisplay( nodeName, doc );
- iframe.detach();
- }
-
- // Store the correct default display
- elemdisplay[ nodeName ] = display;
- }
-
- return display;
-}
-var rmargin = ( /^margin/ );
-
-var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-
-var swap = function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
-};
-
-
-var documentElement = document.documentElement;
-
-
-
-( function() {
- var pixelPositionVal, pixelMarginRightVal, boxSizingReliableVal,
- reliableHiddenOffsetsVal, reliableMarginRightVal, reliableMarginLeftVal,
- container = document.createElement( "div" ),
- div = document.createElement( "div" );
-
- // Finish early in limited (non-browser) environments
- if ( !div.style ) {
- return;
- }
-
- div.style.cssText = "float:left;opacity:.5";
-
- // Support: IE<9
- // Make sure that element opacity exists (as opposed to filter)
- support.opacity = div.style.opacity === "0.5";
-
- // Verify style float existence
- // (IE uses styleFloat instead of cssFloat)
- support.cssFloat = !!div.style.cssFloat;
-
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- container = document.createElement( "div" );
- container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
- "padding:0;margin-top:1px;position:absolute";
- div.innerHTML = "";
- container.appendChild( div );
-
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- support.boxSizing = div.style.boxSizing === "" || div.style.MozBoxSizing === "" ||
- div.style.WebkitBoxSizing === "";
-
- jQuery.extend( support, {
- reliableHiddenOffsets: function() {
- if ( pixelPositionVal == null ) {
- computeStyleTests();
- }
- return reliableHiddenOffsetsVal;
- },
-
- boxSizingReliable: function() {
-
- // We're checking for pixelPositionVal here instead of boxSizingReliableVal
- // since that compresses better and they're computed together anyway.
- if ( pixelPositionVal == null ) {
- computeStyleTests();
- }
- return boxSizingReliableVal;
- },
-
- pixelMarginRight: function() {
-
- // Support: Android 4.0-4.3
- if ( pixelPositionVal == null ) {
- computeStyleTests();
- }
- return pixelMarginRightVal;
- },
-
- pixelPosition: function() {
- if ( pixelPositionVal == null ) {
- computeStyleTests();
- }
- return pixelPositionVal;
- },
-
- reliableMarginRight: function() {
-
- // Support: Android 2.3
- if ( pixelPositionVal == null ) {
- computeStyleTests();
- }
- return reliableMarginRightVal;
- },
-
- reliableMarginLeft: function() {
-
- // Support: IE <=8 only, Android 4.0 - 4.3 only, Firefox <=3 - 37
- if ( pixelPositionVal == null ) {
- computeStyleTests();
- }
- return reliableMarginLeftVal;
- }
- } );
-
- function computeStyleTests() {
- var contents, divStyle,
- documentElement = document.documentElement;
-
- // Setup
- documentElement.appendChild( container );
-
- div.style.cssText =
-
- // Support: Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:border-box;box-sizing:border-box;" +
- "position:relative;display:block;" +
- "margin:auto;border:1px;padding:1px;" +
- "top:1%;width:50%";
-
- // Support: IE<9
- // Assume reasonable values in the absence of getComputedStyle
- pixelPositionVal = boxSizingReliableVal = reliableMarginLeftVal = false;
- pixelMarginRightVal = reliableMarginRightVal = true;
-
- // Check for getComputedStyle so that this code is not run in IE<9.
- if ( window.getComputedStyle ) {
- divStyle = window.getComputedStyle( div );
- pixelPositionVal = ( divStyle || {} ).top !== "1%";
- reliableMarginLeftVal = ( divStyle || {} ).marginLeft === "2px";
- boxSizingReliableVal = ( divStyle || { width: "4px" } ).width === "4px";
-
- // Support: Android 4.0 - 4.3 only
- // Some styles come back with percentage values, even though they shouldn't
- div.style.marginRight = "50%";
- pixelMarginRightVal = ( divStyle || { marginRight: "4px" } ).marginRight === "4px";
-
- // Support: Android 2.3 only
- // Div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container (#3333)
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- contents = div.appendChild( document.createElement( "div" ) );
-
- // Reset CSS: box-sizing; display; margin; border; padding
- contents.style.cssText = div.style.cssText =
-
- // Support: Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
- "box-sizing:content-box;display:block;margin:0;border:0;padding:0";
- contents.style.marginRight = contents.style.width = "0";
- div.style.width = "1px";
-
- reliableMarginRightVal =
- !parseFloat( ( window.getComputedStyle( contents ) || {} ).marginRight );
-
- div.removeChild( contents );
- }
-
- // Support: IE6-8
- // First check that getClientRects works as expected
- // Check if table cells still have offsetWidth/Height when they are set
- // to display:none and there are still other visible table cells in a
- // table row; if so, offsetWidth/Height are not reliable for use when
- // determining if an element has been hidden directly using
- // display:none (it is still safe to use offsets if a parent element is
- // hidden; don safety goggles and see bug #4512 for more information).
- div.style.display = "none";
- reliableHiddenOffsetsVal = div.getClientRects().length === 0;
- if ( reliableHiddenOffsetsVal ) {
- div.style.display = "";
- div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
- div.childNodes[ 0 ].style.borderCollapse = "separate";
- contents = div.getElementsByTagName( "td" );
- contents[ 0 ].style.cssText = "margin:0;border:0;padding:0;display:none";
- reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
- if ( reliableHiddenOffsetsVal ) {
- contents[ 0 ].style.display = "";
- contents[ 1 ].style.display = "none";
- reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
- }
- }
-
- // Teardown
- documentElement.removeChild( container );
- }
-
-} )();
-
-
-var getStyles, curCSS,
- rposition = /^(top|right|bottom|left)$/;
-
-if ( window.getComputedStyle ) {
- getStyles = function( elem ) {
-
- // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
- // IE throws on elements created in popups
- // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
- var view = elem.ownerDocument.defaultView;
-
- if ( !view || !view.opener ) {
- view = window;
- }
-
- return view.getComputedStyle( elem );
- };
-
- curCSS = function( elem, name, computed ) {
- var width, minWidth, maxWidth, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
-
- // getPropertyValue is only needed for .css('filter') in IE9, see #12537
- ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
-
- // Support: Opera 12.1x only
- // Fall back to style even without computed
- // computed is undefined for elems on document fragments
- if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) {
- ret = jQuery.style( elem, name );
- }
-
- if ( computed ) {
-
- // A tribute to the "awesome hack by Dean Edwards"
- // Chrome < 17 and Safari 5.0 uses "computed value"
- // instead of "used value" for margin-right
- // Safari 5.1.7 (at least) returns percentage for a larger set of values,
- // but width seems to be reliably pixels
- // this is against the CSSOM draft spec:
- // http://dev.w3.org/csswg/cssom/#resolved-values
- if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
- // Remember the original values
- width = style.width;
- minWidth = style.minWidth;
- maxWidth = style.maxWidth;
-
- // Put in the new values to get a computed value out
- style.minWidth = style.maxWidth = style.width = ret;
- ret = computed.width;
-
- // Revert the changed values
- style.width = width;
- style.minWidth = minWidth;
- style.maxWidth = maxWidth;
- }
- }
-
- // Support: IE
- // IE returns zIndex value as an integer.
- return ret === undefined ?
- ret :
- ret + "";
- };
-} else if ( documentElement.currentStyle ) {
- getStyles = function( elem ) {
- return elem.currentStyle;
- };
-
- curCSS = function( elem, name, computed ) {
- var left, rs, rsLeft, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
- ret = computed ? computed[ name ] : undefined;
-
- // Avoid setting ret to empty string here
- // so we don't default to auto
- if ( ret == null && style && style[ name ] ) {
- ret = style[ name ];
- }
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- // but not position css attributes, as those are
- // proportional to the parent element instead
- // and we can't measure the parent instead because it
- // might trigger a "stacking dolls" problem
- if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
-
- // Remember the original values
- left = style.left;
- rs = elem.runtimeStyle;
- rsLeft = rs && rs.left;
-
- // Put in the new values to get a computed value out
- if ( rsLeft ) {
- rs.left = elem.currentStyle.left;
- }
- style.left = name === "fontSize" ? "1em" : ret;
- ret = style.pixelLeft + "px";
-
- // Revert the changed values
- style.left = left;
- if ( rsLeft ) {
- rs.left = rsLeft;
- }
- }
-
- // Support: IE
- // IE returns zIndex value as an integer.
- return ret === undefined ?
- ret :
- ret + "" || "auto";
- };
-}
-
-
-
-
-function addGetHookIf( conditionFn, hookFn ) {
-
- // Define the hook, we'll check on the first run if it's really needed.
- return {
- get: function() {
- if ( conditionFn() ) {
-
- // Hook not needed (or it's not possible to use it due
- // to missing dependency), remove it.
- delete this.get;
- return;
- }
-
- // Hook needed; redefine it so that the support test is not executed again.
- return ( this.get = hookFn ).apply( this, arguments );
- }
- };
-}
-
-
-var
-
- ralpha = /alpha\([^)]*\)/i,
- ropacity = /opacity\s*=\s*([^)]*)/i,
-
- // swappable if display is none or starts with table except
- // "table", "table-cell", or "table-caption"
- // see here for display values:
- // https://developer.mozilla.org/en-US/docs/CSS/display
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
- rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssNormalTransform = {
- letterSpacing: "0",
- fontWeight: "400"
- },
-
- cssPrefixes = [ "Webkit", "O", "Moz", "ms" ],
- emptyStyle = document.createElement( "div" ).style;
-
-
-// return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( name ) {
-
- // shortcut for names that are not vendor prefixed
- if ( name in emptyStyle ) {
- return name;
- }
-
- // check for vendor prefixed names
- var capName = name.charAt( 0 ).toUpperCase() + name.slice( 1 ),
- i = cssPrefixes.length;
-
- while ( i-- ) {
- name = cssPrefixes[ i ] + capName;
- if ( name in emptyStyle ) {
- return name;
- }
- }
-}
-
-function showHide( elements, show ) {
- var display, elem, hidden,
- values = [],
- index = 0,
- length = elements.length;
-
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- values[ index ] = jQuery._data( elem, "olddisplay" );
- display = elem.style.display;
- if ( show ) {
-
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !values[ index ] && display === "none" ) {
- elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( elem.style.display === "" && isHidden( elem ) ) {
- values[ index ] =
- jQuery._data( elem, "olddisplay", defaultDisplay( elem.nodeName ) );
- }
- } else {
- hidden = isHidden( elem );
-
- if ( display && display !== "none" || !hidden ) {
- jQuery._data(
- elem,
- "olddisplay",
- hidden ? display : jQuery.css( elem, "display" )
- );
- }
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( index = 0; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
- if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
- elem.style.display = show ? values[ index ] || "" : "none";
- }
- }
-
- return elements;
-}
-
-function setPositiveNumber( elem, value, subtract ) {
- var matches = rnumsplit.exec( value );
- return matches ?
-
- // Guard against undefined "subtract", e.g., when used as in cssHooks
- Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
- value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
-
- // If we already have the right measurement, avoid augmentation
- 4 :
-
- // Otherwise initialize for horizontal or vertical properties
- name === "width" ? 1 : 0,
-
- val = 0;
-
- for ( ; i < 4; i += 2 ) {
-
- // both box models exclude margin, so add it if we want it
- if ( extra === "margin" ) {
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
- }
-
- if ( isBorderBox ) {
-
- // border-box includes padding, so remove it if we want content
- if ( extra === "content" ) {
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
- }
-
- // at this point, extra isn't border nor margin, so remove border
- if ( extra !== "margin" ) {
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- } else {
-
- // at this point, extra isn't content, so add padding
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
- // at this point, extra isn't content nor padding, so add border
- if ( extra !== "padding" ) {
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- }
- }
-
- return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property, which is equivalent to the border-box value
- var valueIsBorderBox = true,
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
- styles = getStyles( elem ),
- isBorderBox = support.boxSizing &&
- jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
- // some non-html elements return undefined for offsetWidth, so check for null/undefined
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
- if ( val <= 0 || val == null ) {
-
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name, styles );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test( val ) ) {
- return val;
- }
-
- // we need the check for style in case a browser which returns unreliable values
- // for getComputedStyle silently falls back to the reliable elem.style
- valueIsBorderBox = isBorderBox &&
- ( support.boxSizingReliable() || val === elem.style[ name ] );
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
- }
-
- // use the active box-sizing model to add/subtract irrelevant styles
- return ( val +
- augmentWidthOrHeight(
- elem,
- name,
- extra || ( isBorderBox ? "border" : "content" ),
- valueIsBorderBox,
- styles
- )
- ) + "px";
-}
-
-jQuery.extend( {
-
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
-
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
- }
- }
- }
- },
-
- // Don't automatically add "px" to these possibly-unitless properties
- cssNumber: {
- "animationIterationCount": true,
- "columnCount": true,
- "fillOpacity": true,
- "flexGrow": true,
- "flexShrink": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "order": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
-
- // normalize float css property
- "float": support.cssFloat ? "cssFloat" : "styleFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
-
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, hooks,
- origName = jQuery.camelCase( name ),
- style = elem.style;
-
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // gets hook for the prefixed version
- // followed by the unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // Convert "+=" or "-=" to relative numbers (#7345)
- if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
- value = adjustCSS( elem, name, ret );
-
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that null and NaN values aren't set. See: #7116
- if ( value == null || value !== value ) {
- return;
- }
-
- // If a number was passed in, add the unit (except for certain CSS properties)
- if ( type === "number" ) {
- value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
- }
-
- // Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
- // but it would mean to define eight
- // (for every problematic property) identical functions
- if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
- style[ name ] = "inherit";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !( "set" in hooks ) ||
- ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
-
- // Support: IE
- // Swallow errors from 'invalid' CSS values (#5509)
- try {
- style[ name ] = value;
- } catch ( e ) {}
- }
-
- } else {
-
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks &&
- ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
-
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra, styles ) {
- var num, val, hooks,
- origName = jQuery.camelCase( name );
-
- // Make sure that we're working with the right name
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // gets hook for the prefixed version
- // followed by the unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks ) {
- val = hooks.get( elem, true, extra );
- }
-
- // Otherwise, if a way to get the computed value exists, use that
- if ( val === undefined ) {
- val = curCSS( elem, name, styles );
- }
-
- //convert "normal" to computed value
- if ( val === "normal" && name in cssNormalTransform ) {
- val = cssNormalTransform[ name ];
- }
-
- // Return, converting to number if forced or a qualifier was provided and val looks numeric
- if ( extra === "" || extra ) {
- num = parseFloat( val );
- return extra === true || isFinite( num ) ? num || 0 : val;
- }
- return val;
- }
-} );
-
-jQuery.each( [ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
-
- // certain elements can have dimension info if we invisibly show them
- // however, it must have a current display style that would benefit from this
- return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
- elem.offsetWidth === 0 ?
- swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- } ) :
- getWidthOrHeight( elem, name, extra );
- }
- },
-
- set: function( elem, value, extra ) {
- var styles = extra && getStyles( elem );
- return setPositiveNumber( elem, value, extra ?
- augmentWidthOrHeight(
- elem,
- name,
- extra,
- support.boxSizing &&
- jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
- styles
- ) : 0
- );
- }
- };
-} );
-
-if ( !support.opacity ) {
- jQuery.cssHooks.opacity = {
- get: function( elem, computed ) {
-
- // IE uses filters for opacity
- return ropacity.test( ( computed && elem.currentStyle ?
- elem.currentStyle.filter :
- elem.style.filter ) || "" ) ?
- ( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
- computed ? "1" : "";
- },
-
- set: function( elem, value ) {
- var style = elem.style,
- currentStyle = elem.currentStyle,
- opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
- filter = currentStyle && currentStyle.filter || style.filter || "";
-
- // IE has trouble with opacity if it does not have layout
- // Force it by setting the zoom level
- style.zoom = 1;
-
- // if setting opacity to 1, and no other filters exist -
- // attempt to remove filter attribute #6652
- // if value === "", then remove inline opacity #12685
- if ( ( value >= 1 || value === "" ) &&
- jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
- style.removeAttribute ) {
-
- // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
- // if "filter:" is present at all, clearType is disabled, we want to avoid this
- // style.removeAttribute is IE Only, but so apparently is this code path...
- style.removeAttribute( "filter" );
-
- // if there is no filter style applied in a css rule
- // or unset inline opacity, we are done
- if ( value === "" || currentStyle && !currentStyle.filter ) {
- return;
- }
- }
-
- // otherwise, set new filter values
- style.filter = ralpha.test( filter ) ?
- filter.replace( ralpha, opacity ) :
- filter + " " + opacity;
- }
- };
-}
-
-jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
- function( elem, computed ) {
- if ( computed ) {
- return swap( elem, { "display": "inline-block" },
- curCSS, [ elem, "marginRight" ] );
- }
- }
-);
-
-jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
- function( elem, computed ) {
- if ( computed ) {
- return (
- parseFloat( curCSS( elem, "marginLeft" ) ) ||
-
- // Support: IE<=11+
- // Running getBoundingClientRect on a disconnected node in IE throws an error
- // Support: IE8 only
- // getClientRects() errors on disconnected elems
- ( jQuery.contains( elem.ownerDocument, elem ) ?
- elem.getBoundingClientRect().left -
- swap( elem, { marginLeft: 0 }, function() {
- return elem.getBoundingClientRect().left;
- } ) :
- 0
- )
- ) + "px";
- }
- }
-);
-
-// These hooks are used by animate to expand properties
-jQuery.each( {
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i = 0,
- expanded = {},
-
- // assumes a single number if not a string
- parts = typeof value === "string" ? value.split( " " ) : [ value ];
-
- for ( ; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-
- if ( !rmargin.test( prefix ) ) {
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
- }
-} );
-
-jQuery.fn.extend( {
- css: function( name, value ) {
- return access( this, function( elem, name, value ) {
- var styles, len,
- map = {},
- i = 0;
-
- if ( jQuery.isArray( name ) ) {
- styles = getStyles( elem );
- len = name.length;
-
- for ( ; i < len; i++ ) {
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
- }
-
- return map;
- }
-
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
- },
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each( function() {
- if ( isHidden( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- } );
- }
-} );
-
-
-function Tween( elem, options, prop, end, easing ) {
- return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
- constructor: Tween,
- init: function( elem, options, prop, end, easing, unit ) {
- this.elem = elem;
- this.prop = prop;
- this.easing = easing || jQuery.easing._default;
- this.options = options;
- this.start = this.now = this.cur();
- this.end = end;
- this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
- },
- cur: function() {
- var hooks = Tween.propHooks[ this.prop ];
-
- return hooks && hooks.get ?
- hooks.get( this ) :
- Tween.propHooks._default.get( this );
- },
- run: function( percent ) {
- var eased,
- hooks = Tween.propHooks[ this.prop ];
-
- if ( this.options.duration ) {
- this.pos = eased = jQuery.easing[ this.easing ](
- percent, this.options.duration * percent, 0, 1, this.options.duration
- );
- } else {
- this.pos = eased = percent;
- }
- this.now = ( this.end - this.start ) * eased + this.start;
-
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- if ( hooks && hooks.set ) {
- hooks.set( this );
- } else {
- Tween.propHooks._default.set( this );
- }
- return this;
- }
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
- _default: {
- get: function( tween ) {
- var result;
-
- // Use a property on the element directly when it is not a DOM element,
- // or when there is no matching style property that exists.
- if ( tween.elem.nodeType !== 1 ||
- tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
- return tween.elem[ tween.prop ];
- }
-
- // passing an empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails
- // so, simple values such as "10px" are parsed to Float.
- // complex values such as "rotate(1rad)" are returned as is.
- result = jQuery.css( tween.elem, tween.prop, "" );
-
- // Empty strings, null, undefined and "auto" are converted to 0.
- return !result || result === "auto" ? 0 : result;
- },
- set: function( tween ) {
-
- // use step hook for back compat - use cssHook if its there - use .style if its
- // available and use plain properties where available
- if ( jQuery.fx.step[ tween.prop ] ) {
- jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.nodeType === 1 &&
- ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
- jQuery.cssHooks[ tween.prop ] ) ) {
- jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
- } else {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
- }
-};
-
-// Support: IE <=9
-// Panic based approach to setting things on disconnected nodes
-
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
- set: function( tween ) {
- if ( tween.elem.nodeType && tween.elem.parentNode ) {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
-};
-
-jQuery.easing = {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return 0.5 - Math.cos( p * Math.PI ) / 2;
- },
- _default: "swing"
-};
-
-jQuery.fx = Tween.prototype.init;
-
-// Back Compat <1.8 extension point
-jQuery.fx.step = {};
-
-
-
-
-var
- fxNow, timerId,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rrun = /queueHooks$/;
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- window.setTimeout( function() {
- fxNow = undefined;
- } );
- return ( fxNow = jQuery.now() );
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
- var which,
- attrs = { height: type },
- i = 0;
-
- // if we include width, step value is 1 to do all cssExpand values,
- // if we don't include width, step value is 2 to skip over Left and Right
- includeWidth = includeWidth ? 1 : 0;
- for ( ; i < 4 ; i += 2 - includeWidth ) {
- which = cssExpand[ i ];
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
- }
-
- if ( includeWidth ) {
- attrs.opacity = attrs.width = type;
- }
-
- return attrs;
-}
-
-function createTween( value, prop, animation ) {
- var tween,
- collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
- index = 0,
- length = collection.length;
- for ( ; index < length; index++ ) {
- if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
-
- // we're done with this property
- return tween;
- }
- }
-}
-
-function defaultPrefilter( elem, props, opts ) {
- /* jshint validthis: true */
- var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
- anim = this,
- orig = {},
- style = elem.style,
- hidden = elem.nodeType && isHidden( elem ),
- dataShow = jQuery._data( elem, "fxshow" );
-
- // handle queue: false promises
- if ( !opts.queue ) {
- hooks = jQuery._queueHooks( elem, "fx" );
- if ( hooks.unqueued == null ) {
- hooks.unqueued = 0;
- oldfire = hooks.empty.fire;
- hooks.empty.fire = function() {
- if ( !hooks.unqueued ) {
- oldfire();
- }
- };
- }
- hooks.unqueued++;
-
- anim.always( function() {
-
- // doing this makes sure that the complete handler will be called
- // before this completes
- anim.always( function() {
- hooks.unqueued--;
- if ( !jQuery.queue( elem, "fx" ).length ) {
- hooks.empty.fire();
- }
- } );
- } );
- }
-
- // height/width overflow pass
- if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
-
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE does not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height animated
- display = jQuery.css( elem, "display" );
-
- // Test default display if display is currently "none"
- checkDisplay = display === "none" ?
- jQuery._data( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
-
- if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
-
- // inline-level elements accept inline-block;
- // block-level elements need to be inline with layout
- if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
- style.display = "inline-block";
- } else {
- style.zoom = 1;
- }
- }
- }
-
- if ( opts.overflow ) {
- style.overflow = "hidden";
- if ( !support.shrinkWrapBlocks() ) {
- anim.always( function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- } );
- }
- }
-
- // show/hide pass
- for ( prop in props ) {
- value = props[ prop ];
- if ( rfxtypes.exec( value ) ) {
- delete props[ prop ];
- toggle = toggle || value === "toggle";
- if ( value === ( hidden ? "hide" : "show" ) ) {
-
- // If there is dataShow left over from a stopped hide or show
- // and we are going to proceed with show, we should pretend to be hidden
- if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
- hidden = true;
- } else {
- continue;
- }
- }
- orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
-
- // Any non-fx value stops us from restoring the original display value
- } else {
- display = undefined;
- }
- }
-
- if ( !jQuery.isEmptyObject( orig ) ) {
- if ( dataShow ) {
- if ( "hidden" in dataShow ) {
- hidden = dataShow.hidden;
- }
- } else {
- dataShow = jQuery._data( elem, "fxshow", {} );
- }
-
- // store state if its toggle - enables .stop().toggle() to "reverse"
- if ( toggle ) {
- dataShow.hidden = !hidden;
- }
- if ( hidden ) {
- jQuery( elem ).show();
- } else {
- anim.done( function() {
- jQuery( elem ).hide();
- } );
- }
- anim.done( function() {
- var prop;
- jQuery._removeData( elem, "fxshow" );
- for ( prop in orig ) {
- jQuery.style( elem, prop, orig[ prop ] );
- }
- } );
- for ( prop in orig ) {
- tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
-
- if ( !( prop in dataShow ) ) {
- dataShow[ prop ] = tween.start;
- if ( hidden ) {
- tween.end = tween.start;
- tween.start = prop === "width" || prop === "height" ? 1 : 0;
- }
- }
- }
-
- // If this is a noop like .hide().hide(), restore an overwritten display value
- } else if ( ( display === "none" ? defaultDisplay( elem.nodeName ) : display ) === "inline" ) {
- style.display = display;
- }
-}
-
-function propFilter( props, specialEasing ) {
- var index, name, easing, value, hooks;
-
- // camelCase, specialEasing and expand cssHook pass
- for ( index in props ) {
- name = jQuery.camelCase( index );
- easing = specialEasing[ name ];
- value = props[ index ];
- if ( jQuery.isArray( value ) ) {
- easing = value[ 1 ];
- value = props[ index ] = value[ 0 ];
- }
-
- if ( index !== name ) {
- props[ name ] = value;
- delete props[ index ];
- }
-
- hooks = jQuery.cssHooks[ name ];
- if ( hooks && "expand" in hooks ) {
- value = hooks.expand( value );
- delete props[ name ];
-
- // not quite $.extend, this wont overwrite keys already present.
- // also - reusing 'index' from above because we have the correct "name"
- for ( index in value ) {
- if ( !( index in props ) ) {
- props[ index ] = value[ index ];
- specialEasing[ index ] = easing;
- }
- }
- } else {
- specialEasing[ name ] = easing;
- }
- }
-}
-
-function Animation( elem, properties, options ) {
- var result,
- stopped,
- index = 0,
- length = Animation.prefilters.length,
- deferred = jQuery.Deferred().always( function() {
-
- // don't match elem in the :animated selector
- delete tick.elem;
- } ),
- tick = function() {
- if ( stopped ) {
- return false;
- }
- var currentTime = fxNow || createFxNow(),
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
-
- // Support: Android 2.3
- // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
- temp = remaining / animation.duration || 0,
- percent = 1 - temp,
- index = 0,
- length = animation.tweens.length;
-
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( percent );
- }
-
- deferred.notifyWith( elem, [ animation, percent, remaining ] );
-
- if ( percent < 1 && length ) {
- return remaining;
- } else {
- deferred.resolveWith( elem, [ animation ] );
- return false;
- }
- },
- animation = deferred.promise( {
- elem: elem,
- props: jQuery.extend( {}, properties ),
- opts: jQuery.extend( true, {
- specialEasing: {},
- easing: jQuery.easing._default
- }, options ),
- originalProperties: properties,
- originalOptions: options,
- startTime: fxNow || createFxNow(),
- duration: options.duration,
- tweens: [],
- createTween: function( prop, end ) {
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
- animation.tweens.push( tween );
- return tween;
- },
- stop: function( gotoEnd ) {
- var index = 0,
-
- // if we are going to the end, we want to run all the tweens
- // otherwise we skip this part
- length = gotoEnd ? animation.tweens.length : 0;
- if ( stopped ) {
- return this;
- }
- stopped = true;
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( 1 );
- }
-
- // resolve when we played the last frame
- // otherwise, reject
- if ( gotoEnd ) {
- deferred.notifyWith( elem, [ animation, 1, 0 ] );
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
- } else {
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
- }
- return this;
- }
- } ),
- props = animation.props;
-
- propFilter( props, animation.opts.specialEasing );
-
- for ( ; index < length ; index++ ) {
- result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
- if ( result ) {
- if ( jQuery.isFunction( result.stop ) ) {
- jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
- jQuery.proxy( result.stop, result );
- }
- return result;
- }
- }
-
- jQuery.map( props, createTween, animation );
-
- if ( jQuery.isFunction( animation.opts.start ) ) {
- animation.opts.start.call( elem, animation );
- }
-
- jQuery.fx.timer(
- jQuery.extend( tick, {
- elem: elem,
- anim: animation,
- queue: animation.opts.queue
- } )
- );
-
- // attach callbacks from options
- return animation.progress( animation.opts.progress )
- .done( animation.opts.done, animation.opts.complete )
- .fail( animation.opts.fail )
- .always( animation.opts.always );
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
-
- tweeners: {
- "*": [ function( prop, value ) {
- var tween = this.createTween( prop, value );
- adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
- return tween;
- } ]
- },
-
- tweener: function( props, callback ) {
- if ( jQuery.isFunction( props ) ) {
- callback = props;
- props = [ "*" ];
- } else {
- props = props.match( rnotwhite );
- }
-
- var prop,
- index = 0,
- length = props.length;
-
- for ( ; index < length ; index++ ) {
- prop = props[ index ];
- Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
- Animation.tweeners[ prop ].unshift( callback );
- }
- },
-
- prefilters: [ defaultPrefilter ],
-
- prefilter: function( callback, prepend ) {
- if ( prepend ) {
- Animation.prefilters.unshift( callback );
- } else {
- Animation.prefilters.push( callback );
- }
- }
-} );
-
-jQuery.speed = function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
- opt.duration in jQuery.fx.speeds ?
- jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
- // normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function() {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- }
- };
-
- return opt;
-};
-
-jQuery.fn.extend( {
- fadeTo: function( speed, to, easing, callback ) {
-
- // show any hidden elements after setting opacity to 0
- return this.filter( isHidden ).css( "opacity", 0 ).show()
-
- // animate to the value specified
- .end().animate( { opacity: to }, speed, easing, callback );
- },
- animate: function( prop, speed, easing, callback ) {
- var empty = jQuery.isEmptyObject( prop ),
- optall = jQuery.speed( speed, easing, callback ),
- doAnimation = function() {
-
- // Operate on a copy of prop so per-property easing won't be lost
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
- // Empty animations, or finishing resolves immediately
- if ( empty || jQuery._data( this, "finish" ) ) {
- anim.stop( true );
- }
- };
- doAnimation.finish = doAnimation;
-
- return empty || optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
- stop: function( type, clearQueue, gotoEnd ) {
- var stopQueue = function( hooks ) {
- var stop = hooks.stop;
- delete hooks.stop;
- stop( gotoEnd );
- };
-
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each( function() {
- var dequeue = true,
- index = type != null && type + "queueHooks",
- timers = jQuery.timers,
- data = jQuery._data( this );
-
- if ( index ) {
- if ( data[ index ] && data[ index ].stop ) {
- stopQueue( data[ index ] );
- }
- } else {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
- stopQueue( data[ index ] );
- }
- }
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this &&
- ( type == null || timers[ index ].queue === type ) ) {
-
- timers[ index ].anim.stop( gotoEnd );
- dequeue = false;
- timers.splice( index, 1 );
- }
- }
-
- // start the next in the queue if the last step wasn't forced
- // timers currently will call their complete callbacks, which will dequeue
- // but only if they were gotoEnd
- if ( dequeue || !gotoEnd ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- finish: function( type ) {
- if ( type !== false ) {
- type = type || "fx";
- }
- return this.each( function() {
- var index,
- data = jQuery._data( this ),
- queue = data[ type + "queue" ],
- hooks = data[ type + "queueHooks" ],
- timers = jQuery.timers,
- length = queue ? queue.length : 0;
-
- // enable finishing flag on private data
- data.finish = true;
-
- // empty the queue first
- jQuery.queue( this, type, [] );
-
- if ( hooks && hooks.stop ) {
- hooks.stop.call( this, true );
- }
-
- // look for any active animations, and finish them
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
- timers[ index ].anim.stop( true );
- timers.splice( index, 1 );
- }
- }
-
- // look for any animations in the old queue and finish them
- for ( index = 0; index < length; index++ ) {
- if ( queue[ index ] && queue[ index ].finish ) {
- queue[ index ].finish.call( this );
- }
- }
-
- // turn off finishing flag
- delete data.finish;
- } );
- }
-} );
-
-jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
- var cssFn = jQuery.fn[ name ];
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return speed == null || typeof speed === "boolean" ?
- cssFn.apply( this, arguments ) :
- this.animate( genFx( name, true ), speed, easing, callback );
- };
-} );
-
-// Generate shortcuts for custom animations
-jQuery.each( {
- slideDown: genFx( "show" ),
- slideUp: genFx( "hide" ),
- slideToggle: genFx( "toggle" ),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-} );
-
-jQuery.timers = [];
-jQuery.fx.tick = function() {
- var timer,
- timers = jQuery.timers,
- i = 0;
-
- fxNow = jQuery.now();
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
-
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
- jQuery.timers.push( timer );
- if ( timer() ) {
- jQuery.fx.start();
- } else {
- jQuery.timers.pop();
- }
-};
-
-jQuery.fx.interval = 13;
-
-jQuery.fx.start = function() {
- if ( !timerId ) {
- timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
- }
-};
-
-jQuery.fx.stop = function() {
- window.clearInterval( timerId );
- timerId = null;
-};
-
-jQuery.fx.speeds = {
- slow: 600,
- fast: 200,
-
- // Default speed
- _default: 400
-};
-
-
-// Based off of the plugin by Clint Helfers, with permission.
-// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
-jQuery.fn.delay = function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = window.setTimeout( next, time );
- hooks.stop = function() {
- window.clearTimeout( timeout );
- };
- } );
-};
-
-
-( function() {
- var a,
- input = document.createElement( "input" ),
- div = document.createElement( "div" ),
- select = document.createElement( "select" ),
- opt = select.appendChild( document.createElement( "option" ) );
-
- // Setup
- div = document.createElement( "div" );
- div.setAttribute( "className", "t" );
- div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
- a = div.getElementsByTagName( "a" )[ 0 ];
-
- // Support: Windows Web Apps (WWA)
- // `type` must use .setAttribute for WWA (#14901)
- input.setAttribute( "type", "checkbox" );
- div.appendChild( input );
-
- a = div.getElementsByTagName( "a" )[ 0 ];
-
- // First batch of tests.
- a.style.cssText = "top:1px";
-
- // Test setAttribute on camelCase class.
- // If it works, we need attrFixes when doing get/setAttribute (ie6/7)
- support.getSetAttribute = div.className !== "t";
-
- // Get the style information from getAttribute
- // (IE uses .cssText instead)
- support.style = /top/.test( a.getAttribute( "style" ) );
-
- // Make sure that URLs aren't manipulated
- // (IE normalizes it by default)
- support.hrefNormalized = a.getAttribute( "href" ) === "/a";
-
- // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
- support.checkOn = !!input.value;
-
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- support.optSelected = opt.selected;
-
- // Tests for enctype support on a form (#6743)
- support.enctype = !!document.createElement( "form" ).enctype;
-
- // Make sure that the options inside disabled selects aren't marked as disabled
- // (WebKit marks them as disabled)
- select.disabled = true;
- support.optDisabled = !opt.disabled;
-
- // Support: IE8 only
- // Check if we can trust getAttribute("value")
- input = document.createElement( "input" );
- input.setAttribute( "value", "" );
- support.input = input.getAttribute( "value" ) === "";
-
- // Check if an input maintains its value after becoming a radio
- input.value = "t";
- input.setAttribute( "type", "radio" );
- support.radioValue = input.value === "t";
-} )();
-
-
-var rreturn = /\r/g,
- rspaces = /[\x20\t\r\n\f]+/g;
-
-jQuery.fn.extend( {
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[ 0 ];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] ||
- jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if (
- hooks &&
- "get" in hooks &&
- ( ret = hooks.get( elem, "value" ) ) !== undefined
- ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
-
- // handle most common string cases
- ret.replace( rreturn, "" ) :
-
- // handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each( function( i ) {
- var val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, jQuery( this ).val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
- } else if ( typeof val === "number" ) {
- val += "";
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map( val, function( value ) {
- return value == null ? "" : value + "";
- } );
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- } );
- }
-} );
-
-jQuery.extend( {
- valHooks: {
- option: {
- get: function( elem ) {
- var val = jQuery.find.attr( elem, "value" );
- return val != null ?
- val :
-
- // Support: IE10-11+
- // option.text throws exceptions (#14686, #14858)
- // Strip and collapse whitespace
- // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
- jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
- }
- },
- select: {
- get: function( elem ) {
- var value, option,
- options = elem.options,
- index = elem.selectedIndex,
- one = elem.type === "select-one" || index < 0,
- values = one ? null : [],
- max = one ? index + 1 : options.length,
- i = index < 0 ?
- max :
- one ? index : 0;
-
- // Loop through all the selected options
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // oldIE doesn't update selected after form reset (#2551)
- if ( ( option.selected || i === index ) &&
-
- // Don't return options that are disabled or in a disabled optgroup
- ( support.optDisabled ?
- !option.disabled :
- option.getAttribute( "disabled" ) === null ) &&
- ( !option.parentNode.disabled ||
- !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var optionSet, option,
- options = elem.options,
- values = jQuery.makeArray( value ),
- i = options.length;
-
- while ( i-- ) {
- option = options[ i ];
-
- if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) {
-
- // Support: IE6
- // When new option element is added to select box we need to
- // force reflow of newly added node in order to workaround delay
- // of initialization properties
- try {
- option.selected = optionSet = true;
-
- } catch ( _ ) {
-
- // Will be executed only in IE6
- option.scrollHeight;
- }
-
- } else {
- option.selected = false;
- }
- }
-
- // Force browsers to behave consistently when non-matching value is set
- if ( !optionSet ) {
- elem.selectedIndex = -1;
- }
-
- return options;
- }
- }
- }
-} );
-
-// Radios and checkboxes getter/setter
-jQuery.each( [ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
- }
- }
- };
- if ( !support.checkOn ) {
- jQuery.valHooks[ this ].get = function( elem ) {
- return elem.getAttribute( "value" ) === null ? "on" : elem.value;
- };
- }
-} );
-
-
-
-
-var nodeHook, boolHook,
- attrHandle = jQuery.expr.attrHandle,
- ruseDefault = /^(?:checked|selected)$/i,
- getSetAttribute = support.getSetAttribute,
- getSetInput = support.input;
-
-jQuery.fn.extend( {
- attr: function( name, value ) {
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each( function() {
- jQuery.removeAttr( this, name );
- } );
- }
-} );
-
-jQuery.extend( {
- attr: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set attributes on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === "undefined" ) {
- return jQuery.prop( elem, name, value );
- }
-
- // All attributes are lowercase
- // Grab necessary hook if one is defined
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
- name = name.toLowerCase();
- hooks = jQuery.attrHooks[ name ] ||
- ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
- }
-
- if ( value !== undefined ) {
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
- return;
- }
-
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- elem.setAttribute( name, value + "" );
- return value;
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- ret = jQuery.find.attr( elem, name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret == null ? undefined : ret;
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- if ( !support.radioValue && value === "radio" &&
- jQuery.nodeName( elem, "input" ) ) {
-
- // Setting the type on a radio button after the value resets the value in IE8-9
- // Reset value to default in case type is set after value during creation
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- }
- },
-
- removeAttr: function( elem, value ) {
- var name, propName,
- i = 0,
- attrNames = value && value.match( rnotwhite );
-
- if ( attrNames && elem.nodeType === 1 ) {
- while ( ( name = attrNames[ i++ ] ) ) {
- propName = jQuery.propFix[ name ] || name;
-
- // Boolean attributes get special treatment (#10870)
- if ( jQuery.expr.match.bool.test( name ) ) {
-
- // Set corresponding property to false
- if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
- elem[ propName ] = false;
-
- // Support: IE<9
- // Also clear defaultChecked/defaultSelected (if appropriate)
- } else {
- elem[ jQuery.camelCase( "default-" + name ) ] =
- elem[ propName ] = false;
- }
-
- // See #9699 for explanation of this approach (setting first, then removal)
- } else {
- jQuery.attr( elem, name, "" );
- }
-
- elem.removeAttribute( getSetAttribute ? name : propName );
- }
- }
- }
-} );
-
-// Hooks for boolean attributes
-boolHook = {
- set: function( elem, value, name ) {
- if ( value === false ) {
-
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
-
- // IE<8 needs the *property* name
- elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );
-
- } else {
-
- // Support: IE<9
- // Use defaultChecked and defaultSelected for oldIE
- elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;
- }
- return name;
- }
-};
-
-jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
- var getter = attrHandle[ name ] || jQuery.find.attr;
-
- if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
- attrHandle[ name ] = function( elem, name, isXML ) {
- var ret, handle;
- if ( !isXML ) {
-
- // Avoid an infinite loop by temporarily removing this function from the getter
- handle = attrHandle[ name ];
- attrHandle[ name ] = ret;
- ret = getter( elem, name, isXML ) != null ?
- name.toLowerCase() :
- null;
- attrHandle[ name ] = handle;
- }
- return ret;
- };
- } else {
- attrHandle[ name ] = function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem[ jQuery.camelCase( "default-" + name ) ] ?
- name.toLowerCase() :
- null;
- }
- };
- }
-} );
-
-// fix oldIE attroperties
-if ( !getSetInput || !getSetAttribute ) {
- jQuery.attrHooks.value = {
- set: function( elem, value, name ) {
- if ( jQuery.nodeName( elem, "input" ) ) {
-
- // Does not return so that setAttribute is also used
- elem.defaultValue = value;
- } else {
-
- // Use nodeHook if defined (#1954); otherwise setAttribute is fine
- return nodeHook && nodeHook.set( elem, value, name );
- }
- }
- };
-}
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !getSetAttribute ) {
-
- // Use this for any attribute in IE6/7
- // This fixes almost every IE6/7 issue
- nodeHook = {
- set: function( elem, value, name ) {
-
- // Set the existing or create a new attribute node
- var ret = elem.getAttributeNode( name );
- if ( !ret ) {
- elem.setAttributeNode(
- ( ret = elem.ownerDocument.createAttribute( name ) )
- );
- }
-
- ret.value = value += "";
-
- // Break association with cloned elements by also using setAttribute (#9646)
- if ( name === "value" || value === elem.getAttribute( name ) ) {
- return value;
- }
- }
- };
-
- // Some attributes are constructed with empty-string values when not defined
- attrHandle.id = attrHandle.name = attrHandle.coords =
- function( elem, name, isXML ) {
- var ret;
- if ( !isXML ) {
- return ( ret = elem.getAttributeNode( name ) ) && ret.value !== "" ?
- ret.value :
- null;
- }
- };
-
- // Fixing value retrieval on a button requires this module
- jQuery.valHooks.button = {
- get: function( elem, name ) {
- var ret = elem.getAttributeNode( name );
- if ( ret && ret.specified ) {
- return ret.value;
- }
- },
- set: nodeHook.set
- };
-
- // Set contenteditable to false on removals(#10429)
- // Setting to empty string throws an error as an invalid value
- jQuery.attrHooks.contenteditable = {
- set: function( elem, value, name ) {
- nodeHook.set( elem, value === "" ? false : value, name );
- }
- };
-
- // Set width and height to auto instead of 0 on empty string( Bug #8150 )
- // This is for removals
- jQuery.each( [ "width", "height" ], function( i, name ) {
- jQuery.attrHooks[ name ] = {
- set: function( elem, value ) {
- if ( value === "" ) {
- elem.setAttribute( name, "auto" );
- return value;
- }
- }
- };
- } );
-}
-
-if ( !support.style ) {
- jQuery.attrHooks.style = {
- get: function( elem ) {
-
- // Return undefined in the case of empty string
- // Note: IE uppercases css property names, but if we were to .toLowerCase()
- // .cssText, that would destroy case sensitivity in URL's, like in "background"
- return elem.style.cssText || undefined;
- },
- set: function( elem, value ) {
- return ( elem.style.cssText = value + "" );
- }
- };
-}
-
-
-
-
-var rfocusable = /^(?:input|select|textarea|button|object)$/i,
- rclickable = /^(?:a|area)$/i;
-
-jQuery.fn.extend( {
- prop: function( name, value ) {
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- name = jQuery.propFix[ name ] || name;
- return this.each( function() {
-
- // try/catch handles cases where IE balks (such as removing a property on window)
- try {
- this[ name ] = undefined;
- delete this[ name ];
- } catch ( e ) {}
- } );
- }
-} );
-
-jQuery.extend( {
- prop: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set properties on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- return ( elem[ name ] = value );
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- return elem[ name ];
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
-
- // elem.tabIndex doesn't always return the
- // correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- // Use proper attribute retrieval(#12072)
- var tabindex = jQuery.find.attr( elem, "tabindex" );
-
- return tabindex ?
- parseInt( tabindex, 10 ) :
- rfocusable.test( elem.nodeName ) ||
- rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- -1;
- }
- }
- },
-
- propFix: {
- "for": "htmlFor",
- "class": "className"
- }
-} );
-
-// Some attributes require a special call on IE
-// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !support.hrefNormalized ) {
-
- // href/src property should get the full normalized URL (#10299/#12915)
- jQuery.each( [ "href", "src" ], function( i, name ) {
- jQuery.propHooks[ name ] = {
- get: function( elem ) {
- return elem.getAttribute( name, 4 );
- }
- };
- } );
-}
-
-// Support: Safari, IE9+
-// Accessing the selectedIndex property
-// forces the browser to respect setting selected
-// on the option
-// The getter ensures a default option is selected
-// when in an optgroup
-if ( !support.optSelected ) {
- jQuery.propHooks.selected = {
- get: function( elem ) {
- var parent = elem.parentNode;
-
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- return null;
- },
- set: function( elem ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
- };
-}
-
-jQuery.each( [
- "tabIndex",
- "readOnly",
- "maxLength",
- "cellSpacing",
- "cellPadding",
- "rowSpan",
- "colSpan",
- "useMap",
- "frameBorder",
- "contentEditable"
-], function() {
- jQuery.propFix[ this.toLowerCase() ] = this;
-} );
-
-// IE6/7 call enctype encoding
-if ( !support.enctype ) {
- jQuery.propFix.enctype = "encoding";
-}
-
-
-
-
-var rclass = /[\t\r\n\f]/g;
-
-function getClass( elem ) {
- return jQuery.attr( elem, "class" ) || "";
-}
-
-jQuery.fn.extend( {
- addClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
- cur += clazz + " ";
- }
- }
-
- // only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- jQuery.attr( elem, "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( !arguments.length ) {
- return this.attr( "class", "" );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
-
- // This expression is here for better compressibility (see addClass)
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
-
- // Remove *all* instances
- while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
- cur = cur.replace( " " + clazz + " ", " " );
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- jQuery.attr( elem, "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value;
-
- if ( typeof stateVal === "boolean" && type === "string" ) {
- return stateVal ? this.addClass( value ) : this.removeClass( value );
- }
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( i ) {
- jQuery( this ).toggleClass(
- value.call( this, i, getClass( this ), stateVal ),
- stateVal
- );
- } );
- }
-
- return this.each( function() {
- var className, i, self, classNames;
-
- if ( type === "string" ) {
-
- // Toggle individual class names
- i = 0;
- self = jQuery( this );
- classNames = value.match( rnotwhite ) || [];
-
- while ( ( className = classNames[ i++ ] ) ) {
-
- // Check each className given, space separated list
- if ( self.hasClass( className ) ) {
- self.removeClass( className );
- } else {
- self.addClass( className );
- }
- }
-
- // Toggle whole class name
- } else if ( value === undefined || type === "boolean" ) {
- className = getClass( this );
- if ( className ) {
-
- // store className if set
- jQuery._data( this, "__className__", className );
- }
-
- // If the element has a class name or if we're passed "false",
- // then remove the whole classname (if there was one, the above saved it).
- // Otherwise bring back whatever was previously saved (if anything),
- // falling back to the empty string if nothing was stored.
- jQuery.attr( this, "class",
- className || value === false ?
- "" :
- jQuery._data( this, "__className__" ) || ""
- );
- }
- } );
- },
-
- hasClass: function( selector ) {
- var className, elem,
- i = 0;
-
- className = " " + selector + " ";
- while ( ( elem = this[ i++ ] ) ) {
- if ( elem.nodeType === 1 &&
- ( " " + getClass( elem ) + " " ).replace( rclass, " " )
- .indexOf( className ) > -1
- ) {
- return true;
- }
- }
-
- return false;
- }
-} );
-
-
-
-
-// Return jQuery for attributes-only inclusion
-
-
-jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
- function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-} );
-
-jQuery.fn.extend( {
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-} );
-
-
-var location = window.location;
-
-var nonce = jQuery.now();
-
-var rquery = ( /\?/ );
-
-
-
-var rvalidtokens = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
-
-jQuery.parseJSON = function( data ) {
-
- // Attempt to parse using the native JSON parser first
- if ( window.JSON && window.JSON.parse ) {
-
- // Support: Android 2.3
- // Workaround failure to string-cast null input
- return window.JSON.parse( data + "" );
- }
-
- var requireNonComma,
- depth = null,
- str = jQuery.trim( data + "" );
-
- // Guard against invalid (and possibly dangerous) input by ensuring that nothing remains
- // after removing valid tokens
- return str && !jQuery.trim( str.replace( rvalidtokens, function( token, comma, open, close ) {
-
- // Force termination if we see a misplaced comma
- if ( requireNonComma && comma ) {
- depth = 0;
- }
-
- // Perform no more replacements after returning to outermost depth
- if ( depth === 0 ) {
- return token;
- }
-
- // Commas must not follow "[", "{", or ","
- requireNonComma = open || comma;
-
- // Determine new depth
- // array/object open ("[" or "{"): depth += true - false (increment)
- // array/object close ("]" or "}"): depth += false - true (decrement)
- // other cases ("," or primitive): depth += true - true (numeric cast)
- depth += !close - !open;
-
- // Remove this token
- return "";
- } ) ) ?
- ( Function( "return " + str ) )() :
- jQuery.error( "Invalid JSON: " + data );
-};
-
-
-// Cross-browser xml parsing
-jQuery.parseXML = function( data ) {
- var xml, tmp;
- if ( !data || typeof data !== "string" ) {
- return null;
- }
- try {
- if ( window.DOMParser ) { // Standard
- tmp = new window.DOMParser();
- xml = tmp.parseFromString( data, "text/xml" );
- } else { // IE
- xml = new window.ActiveXObject( "Microsoft.XMLDOM" );
- xml.async = "false";
- xml.loadXML( data );
- }
- } catch ( e ) {
- xml = undefined;
- }
- if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
-};
-
-
-var
- rhash = /#.*$/,
- rts = /([?&])_=[^&]*/,
-
- // IE leaves an \r character at EOL
- rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg,
-
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
- rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = "*/".concat( "*" ),
-
- // Document location
- ajaxLocation = location.href,
-
- // Segment location into parts
- ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- var dataType,
- i = 0,
- dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
-
- if ( jQuery.isFunction( func ) ) {
-
- // For each dataType in the dataTypeExpression
- while ( ( dataType = dataTypes[ i++ ] ) ) {
-
- // Prepend if requested
- if ( dataType.charAt( 0 ) === "+" ) {
- dataType = dataType.slice( 1 ) || "*";
- ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
-
- // Otherwise append
- } else {
- ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
- }
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
- var inspected = {},
- seekingTransport = ( structure === transports );
-
- function inspect( dataType ) {
- var selected;
- inspected[ dataType ] = true;
- jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
- var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
- if ( typeof dataTypeOrTransport === "string" &&
- !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
-
- options.dataTypes.unshift( dataTypeOrTransport );
- inspect( dataTypeOrTransport );
- return false;
- } else if ( seekingTransport ) {
- return !( selected = dataTypeOrTransport );
- }
- } );
- return selected;
- }
-
- return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var deep, key,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-
- return target;
-}
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
- var firstDataType, ct, finalDataType, type,
- contents = s.contents,
- dataTypes = s.dataTypes;
-
- // Remove auto dataType and get content-type in the process
- while ( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
-
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
-
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
- var conv2, current, conv, tmp, prev,
- converters = {},
-
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice();
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- current = dataTypes.shift();
-
- // Convert to each sequential dataType
- while ( current ) {
-
- if ( s.responseFields[ current ] ) {
- jqXHR[ s.responseFields[ current ] ] = response;
- }
-
- // Apply the dataFilter if provided
- if ( !prev && isSuccess && s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- prev = current;
- current = dataTypes.shift();
-
- if ( current ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current === "*" ) {
-
- current = prev;
-
- // Convert response if prev dataType is non-auto and differs from current
- } else if ( prev !== "*" && prev !== current ) {
-
- // Seek a direct converter
- conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
- // If none found, seek a pair
- if ( !conv ) {
- for ( conv2 in converters ) {
-
- // If conv2 outputs current
- tmp = conv2.split( " " );
- if ( tmp[ 1 ] === current ) {
-
- // If prev can be converted to accepted input
- conv = converters[ prev + " " + tmp[ 0 ] ] ||
- converters[ "* " + tmp[ 0 ] ];
- if ( conv ) {
-
- // Condense equivalence converters
- if ( conv === true ) {
- conv = converters[ conv2 ];
-
- // Otherwise, insert the intermediate dataType
- } else if ( converters[ conv2 ] !== true ) {
- current = tmp[ 0 ];
- dataTypes.unshift( tmp[ 1 ] );
- }
- break;
- }
- }
- }
- }
-
- // Apply converter (if not an equivalence)
- if ( conv !== true ) {
-
- // Unless errors are allowed to bubble, catch and return them
- if ( conv && s[ "throws" ] ) { // jscs:ignore requireDotNotation
- response = conv( response );
- } else {
- try {
- response = conv( response );
- } catch ( e ) {
- return {
- state: "parsererror",
- error: conv ? e : "No conversion from " + prev + " to " + current
- };
- }
- }
- }
- }
- }
- }
-
- return { state: "success", data: response };
-}
-
-jQuery.extend( {
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajaxSettings: {
- url: ajaxLocation,
- type: "GET",
- isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
- global: true,
- processData: true,
- async: true,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- throws: false,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- "*": allTypes,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
-
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- url: true,
- context: true
- }
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- return settings ?
-
- // Building a settings object
- ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
- // Extending ajaxSettings
- ajaxExtend( jQuery.ajaxSettings, target );
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var
-
- // Cross-domain detection vars
- parts,
-
- // Loop variable
- i,
-
- // URL without anti-cache param
- cacheURL,
-
- // Response headers as string
- responseHeadersString,
-
- // timeout handle
- timeoutTimer,
-
- // To know if global events are to be dispatched
- fireGlobals,
-
- transport,
-
- // Response headers
- responseHeaders,
-
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
-
- // Callbacks context
- callbackContext = s.context || s,
-
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context &&
- ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
-
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks( "once memory" ),
-
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
-
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
-
- // The jqXHR state
- state = 0,
-
- // Default abort message
- strAbort = "canceled",
-
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- var lname = name.toLowerCase();
- if ( !state ) {
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( state < 2 ) {
- for ( code in map ) {
-
- // Lazy-add the new callback in a way that preserves old ones
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- } else {
-
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR ).complete = completeDeferred.add;
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || ajaxLocation ) + "" )
- .replace( rhash, "" )
- .replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
-
- // A cross-domain request is in order when we have a protocol:host:port mismatch
- if ( s.crossDomain == null ) {
- parts = rurl.exec( s.url.toLowerCase() );
- s.crossDomain = !!( parts &&
- ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
- ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
- ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )
- );
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
- fireGlobals = jQuery.event && s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- cacheURL = s.url;
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
-
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
- s.url = rts.test( cacheURL ) ?
-
- // If there is already a '_' parameter, set its value
- cacheURL.replace( rts, "$1_=" + nonce++ ) :
-
- // Otherwise add one to the end
- cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
- }
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
- s.accepts[ s.dataTypes[ 0 ] ] +
- ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend &&
- ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
-
- // If request was aborted inside ajaxSend, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = window.setTimeout( function() {
- jqXHR.abort( "timeout" );
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch ( e ) {
-
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
-
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- window.clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Determine if successful
- isSuccess = status >= 200 && status < 300 || status === 304;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // Convert no matter what (that way responseXXX fields are always set)
- response = ajaxConvert( s, response, jqXHR, isSuccess );
-
- // If successful, handle type chaining
- if ( isSuccess ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader( "Last-Modified" );
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader( "etag" );
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // if no content
- if ( status === 204 || s.type === "HEAD" ) {
- statusText = "nocontent";
-
- // if not modified
- } else if ( status === 304 ) {
- statusText = "notmodified";
-
- // If we have data, let's convert it
- } else {
- statusText = response.state;
- success = response.data;
- error = response.error;
- isSuccess = !error;
- }
- } else {
-
- // We extract error from statusText
- // then normalize statusText and status for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- return jqXHR;
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- }
-} );
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
-
- // shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- // The url can be an options object (which then must have .url)
- return jQuery.ajax( jQuery.extend( {
- url: url,
- type: method,
- dataType: type,
- data: data,
- success: callback
- }, jQuery.isPlainObject( url ) && url ) );
- };
-} );
-
-
-jQuery._evalUrl = function( url ) {
- return jQuery.ajax( {
- url: url,
-
- // Make this explicit, since user can override this through ajaxSetup (#11264)
- type: "GET",
- dataType: "script",
- cache: true,
- async: false,
- global: false,
- "throws": true
- } );
-};
-
-
-jQuery.fn.extend( {
- wrapAll: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapAll( html.call( this, i ) );
- } );
- }
-
- if ( this[ 0 ] ) {
-
- // The elements to wrap the target around
- var wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
- if ( this[ 0 ].parentNode ) {
- wrap.insertBefore( this[ 0 ] );
- }
-
- wrap.map( function() {
- var elem = this;
-
- while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
- elem = elem.firstChild;
- }
-
- return elem;
- } ).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapInner( html.call( this, i ) );
- } );
- }
-
- return this.each( function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- } );
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each( function( i ) {
- jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
- } );
- },
-
- unwrap: function() {
- return this.parent().each( function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- } ).end();
- }
-} );
-
-
-function getDisplay( elem ) {
- return elem.style && elem.style.display || jQuery.css( elem, "display" );
-}
-
-function filterHidden( elem ) {
-
- // Disconnected elements are considered hidden
- if ( !jQuery.contains( elem.ownerDocument || document, elem ) ) {
- return true;
- }
- while ( elem && elem.nodeType === 1 ) {
- if ( getDisplay( elem ) === "none" || elem.type === "hidden" ) {
- return true;
- }
- elem = elem.parentNode;
- }
- return false;
-}
-
-jQuery.expr.filters.hidden = function( elem ) {
-
- // Support: Opera <= 12.12
- // Opera reports offsetWidths and offsetHeights less than zero on some elements
- return support.reliableHiddenOffsets() ?
- ( elem.offsetWidth <= 0 && elem.offsetHeight <= 0 &&
- !elem.getClientRects().length ) :
- filterHidden( elem );
-};
-
-jQuery.expr.filters.visible = function( elem ) {
- return !jQuery.expr.filters.hidden( elem );
-};
-
-
-
-
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-function buildParams( prefix, obj, traditional, add ) {
- var name;
-
- if ( jQuery.isArray( obj ) ) {
-
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
-
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
-
- // Item is non-scalar (array or object), encode its numeric index.
- buildParams(
- prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
- v,
- traditional,
- add
- );
- }
- } );
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
-
- // Serialize object item.
- for ( name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
-
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-jQuery.param = function( a, traditional ) {
- var prefix,
- s = [],
- add = function( key, value ) {
-
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- } );
-
- } else {
-
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" ).replace( r20, "+" );
-};
-
-jQuery.fn.extend( {
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
- serializeArray: function() {
- return this.map( function() {
-
- // Can add propHook for "elements" to filter or add form elements
- var elements = jQuery.prop( this, "elements" );
- return elements ? jQuery.makeArray( elements ) : this;
- } )
- .filter( function() {
- var type = this.type;
-
- // Use .is(":disabled") so that fieldset[disabled] works
- return this.name && !jQuery( this ).is( ":disabled" ) &&
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !rcheckableType.test( type ) );
- } )
- .map( function( i, elem ) {
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val ) {
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ).get();
- }
-} );
-
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?
-
- // Support: IE6-IE8
- function() {
-
- // XHR cannot access local files, always use ActiveX for that case
- if ( this.isLocal ) {
- return createActiveXHR();
- }
-
- // Support: IE 9-11
- // IE seems to error on cross-domain PATCH requests when ActiveX XHR
- // is used. In IE 9+ always use the native XHR.
- // Note: this condition won't catch Edge as it doesn't define
- // document.documentMode but it also doesn't support ActiveX so it won't
- // reach this code.
- if ( document.documentMode > 8 ) {
- return createStandardXHR();
- }
-
- // Support: IE<9
- // oldIE XHR does not support non-RFC2616 methods (#13240)
- // See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
- // and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
- // Although this check for six methods instead of eight
- // since IE also does not support "trace" and "connect"
- return /^(get|post|head|put|delete|options)$/i.test( this.type ) &&
- createStandardXHR() || createActiveXHR();
- } :
-
- // For all other browsers, use the standard XMLHttpRequest object
- createStandardXHR;
-
-var xhrId = 0,
- xhrCallbacks = {},
- xhrSupported = jQuery.ajaxSettings.xhr();
-
-// Support: IE<10
-// Open requests must be manually aborted on unload (#5280)
-// See https://support.microsoft.com/kb/2856746 for more info
-if ( window.attachEvent ) {
- window.attachEvent( "onunload", function() {
- for ( var key in xhrCallbacks ) {
- xhrCallbacks[ key ]( undefined, true );
- }
- } );
-}
-
-// Determine support properties
-support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-xhrSupported = support.ajax = !!xhrSupported;
-
-// Create transport if the browser can provide an xhr
-if ( xhrSupported ) {
-
- jQuery.ajaxTransport( function( options ) {
-
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( !options.crossDomain || support.cors ) {
-
- var callback;
-
- return {
- send: function( headers, complete ) {
- var i,
- xhr = options.xhr(),
- id = ++xhrId;
-
- // Open the socket
- xhr.open(
- options.type,
- options.url,
- options.async,
- options.username,
- options.password
- );
-
- // Apply custom fields if provided
- if ( options.xhrFields ) {
- for ( i in options.xhrFields ) {
- xhr[ i ] = options.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( options.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( options.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
- }
-
- // Set headers
- for ( i in headers ) {
-
- // Support: IE<9
- // IE's ActiveXObject throws a 'Type Mismatch' exception when setting
- // request header to a null-value.
- //
- // To keep consistent with other XHR implementations, cast the value
- // to string and ignore `undefined`.
- if ( headers[ i ] !== undefined ) {
- xhr.setRequestHeader( i, headers[ i ] + "" );
- }
- }
-
- // Do send the request
- // This may raise an exception which is actually
- // handled in jQuery.ajax (so no try/catch here)
- xhr.send( ( options.hasContent && options.data ) || null );
-
- // Listener
- callback = function( _, isAbort ) {
- var status, statusText, responses;
-
- // Was never called and is aborted or complete
- if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
- // Clean up
- delete xhrCallbacks[ id ];
- callback = undefined;
- xhr.onreadystatechange = jQuery.noop;
-
- // Abort manually if needed
- if ( isAbort ) {
- if ( xhr.readyState !== 4 ) {
- xhr.abort();
- }
- } else {
- responses = {};
- status = xhr.status;
-
- // Support: IE<10
- // Accessing binary-data responseText throws an exception
- // (#11426)
- if ( typeof xhr.responseText === "string" ) {
- responses.text = xhr.responseText;
- }
-
- // Firefox throws an exception when accessing
- // statusText for faulty cross-domain requests
- try {
- statusText = xhr.statusText;
- } catch ( e ) {
-
- // We normalize with Webkit giving an empty statusText
- statusText = "";
- }
-
- // Filter status for non standard behaviors
-
- // If the request is local and we have data: assume a success
- // (success with no data won't get notified, that's the best we
- // can do given current implementations)
- if ( !status && options.isLocal && !options.crossDomain ) {
- status = responses.text ? 200 : 404;
-
- // IE - #1450: sometimes returns 1223 when it should be 204
- } else if ( status === 1223 ) {
- status = 204;
- }
- }
- }
-
- // Call complete if needed
- if ( responses ) {
- complete( status, statusText, responses, xhr.getAllResponseHeaders() );
- }
- };
-
- // Do send the request
- // `xhr.send` may raise an exception, but it will be
- // handled in jQuery.ajax (so no try/catch here)
- if ( !options.async ) {
-
- // If we're in sync mode we fire the callback
- callback();
- } else if ( xhr.readyState === 4 ) {
-
- // (IE6 & IE7) if it's in cache and has been
- // retrieved directly we need to fire the callback
- window.setTimeout( callback );
- } else {
-
- // Register the callback, but delay it in case `xhr.send` throws
- // Add to the list of active xhr callbacks
- xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback( undefined, true );
- }
- }
- };
- }
- } );
-}
-
-// Functions to create xhrs
-function createStandardXHR() {
- try {
- return new window.XMLHttpRequest();
- } catch ( e ) {}
-}
-
-function createActiveXHR() {
- try {
- return new window.ActiveXObject( "Microsoft.XMLHTTP" );
- } catch ( e ) {}
-}
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup( {
- accepts: {
- script: "text/javascript, application/javascript, " +
- "application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-} );
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- s.global = false;
- }
-} );
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function( s ) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
-
- var script,
- head = document.head || jQuery( "head" )[ 0 ] || document.documentElement;
-
- return {
-
- send: function( _, callback ) {
-
- script = document.createElement( "script" );
-
- script.async = true;
-
- if ( s.scriptCharset ) {
- script.charset = s.scriptCharset;
- }
-
- script.src = s.url;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function( _, isAbort ) {
-
- if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = null;
-
- // Remove the script
- if ( script.parentNode ) {
- script.parentNode.removeChild( script );
- }
-
- // Dereference the script
- script = null;
-
- // Callback if not abort
- if ( !isAbort ) {
- callback( 200, "success" );
- }
- }
- };
-
- // Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
- // Use native DOM manipulation to avoid our domManip AJAX trickery
- head.insertBefore( script, head.firstChild );
- },
-
- abort: function() {
- if ( script ) {
- script.onload( undefined, true );
- }
- }
- };
- }
-} );
-
-
-
-
-var oldCallbacks = [],
- rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup( {
- jsonp: "callback",
- jsonpCallback: function() {
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
- this[ callback ] = true;
- return callback;
- }
-} );
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var callbackName, overwritten, responseContainer,
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
- "url" :
- typeof s.data === "string" &&
- ( s.contentType || "" )
- .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
- rjsonp.test( s.data ) && "data"
- );
-
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
- // Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
- s.jsonpCallback() :
- s.jsonpCallback;
-
- // Insert callback into url or form data
- if ( jsonProp ) {
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
- } else if ( s.jsonp !== false ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
- }
-
- // Use data converter to retrieve json after script execution
- s.converters[ "script json" ] = function() {
- if ( !responseContainer ) {
- jQuery.error( callbackName + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Install callback
- overwritten = window[ callbackName ];
- window[ callbackName ] = function() {
- responseContainer = arguments;
- };
-
- // Clean-up function (fires after converters)
- jqXHR.always( function() {
-
- // If previous value didn't exist - remove it
- if ( overwritten === undefined ) {
- jQuery( window ).removeProp( callbackName );
-
- // Otherwise restore preexisting value
- } else {
- window[ callbackName ] = overwritten;
- }
-
- // Save back as free
- if ( s[ callbackName ] ) {
-
- // make sure that re-using the options doesn't screw things around
- s.jsonpCallback = originalSettings.jsonpCallback;
-
- // save the callback name for future use
- oldCallbacks.push( callbackName );
- }
-
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
- overwritten( responseContainer[ 0 ] );
- }
-
- responseContainer = overwritten = undefined;
- } );
-
- // Delegate to script
- return "script";
- }
-} );
-
-
-
-
-// data: string of html
-// context (optional): If specified, the fragment will be created in this context,
-// defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-jQuery.parseHTML = function( data, context, keepScripts ) {
- if ( !data || typeof data !== "string" ) {
- return null;
- }
- if ( typeof context === "boolean" ) {
- keepScripts = context;
- context = false;
- }
- context = context || document;
-
- var parsed = rsingleTag.exec( data ),
- scripts = !keepScripts && [];
-
- // Single tag
- if ( parsed ) {
- return [ context.createElement( parsed[ 1 ] ) ];
- }
-
- parsed = buildFragment( [ data ], context, scripts );
-
- if ( scripts && scripts.length ) {
- jQuery( scripts ).remove();
- }
-
- return jQuery.merge( [], parsed.childNodes );
-};
-
-
-// Keep a copy of the old load method
-var _load = jQuery.fn.load;
-
-/**
- * Load a url into a page
- */
-jQuery.fn.load = function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
- }
-
- var selector, type, response,
- self = this,
- off = url.indexOf( " " );
-
- if ( off > -1 ) {
- selector = jQuery.trim( url.slice( off, url.length ) );
- url = url.slice( 0, off );
- }
-
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
-
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( params && typeof params === "object" ) {
- type = "POST";
- }
-
- // If we have elements to modify, make the request
- if ( self.length > 0 ) {
- jQuery.ajax( {
- url: url,
-
- // If "type" variable is undefined, then "GET" method will be used.
- // Make value of this field explicit since
- // user can override it through ajaxSetup method
- type: type || "GET",
- dataType: "html",
- data: params
- } ).done( function( responseText ) {
-
- // Save response for use in complete callback
- response = arguments;
-
- self.html( selector ?
-
- // If a selector was specified, locate the right elements in a dummy div
- // Exclude scripts to avoid IE 'Permission Denied' errors
- jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- // If the request succeeds, this function gets "data", "status", "jqXHR"
- // but they are ignored because response was set above.
- // If it fails, this function gets "jqXHR", "status", "error"
- } ).always( callback && function( jqXHR, status ) {
- self.each( function() {
- callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
- } );
- } );
- }
-
- return this;
-};
-
-
-
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [
- "ajaxStart",
- "ajaxStop",
- "ajaxComplete",
- "ajaxError",
- "ajaxSuccess",
- "ajaxSend"
-], function( i, type ) {
- jQuery.fn[ type ] = function( fn ) {
- return this.on( type, fn );
- };
-} );
-
-
-
-
-jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep( jQuery.timers, function( fn ) {
- return elem === fn.elem;
- } ).length;
-};
-
-
-
-
-
-/**
- * Gets a window from an element
- */
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ?
- elem :
- elem.nodeType === 9 ?
- elem.defaultView || elem.parentWindow :
- false;
-}
-
-jQuery.offset = {
- setOffset: function( elem, options, i ) {
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
- position = jQuery.css( elem, "position" ),
- curElem = jQuery( elem ),
- props = {};
-
- // set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- curOffset = curElem.offset();
- curCSSTop = jQuery.css( elem, "top" );
- curCSSLeft = jQuery.css( elem, "left" );
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
- jQuery.inArray( "auto", [ curCSSTop, curCSSLeft ] ) > -1;
-
- // need to be able to calculate position if either top or left
- // is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
-
- // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
- options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- }
-};
-
-jQuery.fn.extend( {
- offset: function( options ) {
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each( function( i ) {
- jQuery.offset.setOffset( this, options, i );
- } );
- }
-
- var docElem, win,
- box = { top: 0, left: 0 },
- elem = this[ 0 ],
- doc = elem && elem.ownerDocument;
-
- if ( !doc ) {
- return;
- }
-
- docElem = doc.documentElement;
-
- // Make sure it's not a disconnected DOM node
- if ( !jQuery.contains( docElem, elem ) ) {
- return box;
- }
-
- // If we don't have gBCR, just use 0,0 rather than error
- // BlackBerry 5, iOS 3 (original iPhone)
- if ( typeof elem.getBoundingClientRect !== "undefined" ) {
- box = elem.getBoundingClientRect();
- }
- win = getWindow( doc );
- return {
- top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
- left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
- };
- },
-
- position: function() {
- if ( !this[ 0 ] ) {
- return;
- }
-
- var offsetParent, offset,
- parentOffset = { top: 0, left: 0 },
- elem = this[ 0 ];
-
- // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
- // because it is its only offset parent
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
-
- // we assume that getBoundingClientRect is available when computed position is fixed
- offset = elem.getBoundingClientRect();
- } else {
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent();
-
- // Get correct offsets
- offset = this.offset();
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
- parentOffset = offsetParent.offset();
- }
-
- // Add offsetParent borders
- parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
- parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
- }
-
- // Subtract parent offsets and element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- return {
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
- };
- },
-
- offsetParent: function() {
- return this.map( function() {
- var offsetParent = this.offsetParent;
-
- while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) &&
- jQuery.css( offsetParent, "position" ) === "static" ) ) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent || documentElement;
- } );
- }
-} );
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
- var top = /Y/.test( prop );
-
- jQuery.fn[ method ] = function( val ) {
- return access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? ( prop in win ) ? win[ prop ] :
- win.document.documentElement[ method ] :
- elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : jQuery( win ).scrollLeft(),
- top ? val : jQuery( win ).scrollTop()
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length, null );
- };
-} );
-
-// Support: Safari<7-8+, Chrome<37-44+
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// getComputedStyle returns percent when specified for top/left/bottom/right
-// rather than make the css module depend on the offset module, we just check for it here
-jQuery.each( [ "top", "left" ], function( i, prop ) {
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
- function( elem, computed ) {
- if ( computed ) {
- computed = curCSS( elem, prop );
-
- // if curCSS returns percentage, fallback to offset
- return rnumnonpx.test( computed ) ?
- jQuery( elem ).position()[ prop ] + "px" :
- computed;
- }
- }
- );
-} );
-
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
- function( defaultExtra, funcName ) {
-
- // margin is only for outerHeight, outerWidth
- jQuery.fn[ funcName ] = function( margin, value ) {
- var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
- extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
- return access( this, function( elem, type, value ) {
- var doc;
-
- if ( jQuery.isWindow( elem ) ) {
-
- // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
- // isn't a whole lot we can do. See pull request at this URL for discussion:
- // https://github.com/jquery/jquery/pull/764
- return elem.document.documentElement[ "client" + name ];
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- doc = elem.documentElement;
-
- // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
- // whichever is greatest
- // unfortunately, this causes bug #3838 in IE6/8 only,
- // but there is currently no good, small way to fix it.
- return Math.max(
- elem.body[ "scroll" + name ], doc[ "scroll" + name ],
- elem.body[ "offset" + name ], doc[ "offset" + name ],
- doc[ "client" + name ]
- );
- }
-
- return value === undefined ?
-
- // Get width or height on the element, requesting but not forcing parseFloat
- jQuery.css( elem, type, extra ) :
-
- // Set width or height on the element
- jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable, null );
- };
- } );
-} );
-
-
-jQuery.fn.extend( {
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
-
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ?
- this.off( selector, "**" ) :
- this.off( types, selector || "**", fn );
- }
-} );
-
-// The number of elements contained in the matched element set
-jQuery.fn.size = function() {
- return this.length;
-};
-
-jQuery.fn.andSelf = jQuery.fn.addBack;
-
-
-
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-if ( typeof define === "function" && define.amd ) {
- define( "jquery", [], function() {
- return jQuery;
- } );
-}
-
-
-
-var
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$;
-
-jQuery.noConflict = function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
-};
-
-// Expose jQuery and $ identifiers, even in
-// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-if ( !noGlobal ) {
- window.jQuery = window.$ = jQuery;
-}
-
-return jQuery;
-}));
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-1/dist/jquery.min.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-1/dist/jquery.min.js
deleted file mode 100644
index e8364758..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-1/dist/jquery.min.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
-!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0;
-}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return c=d.getElementsByTagName("body")[0],c&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],W=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function X(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&U.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var Y=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)Y(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/<tbody/i;function ia(a){Z.test(a.type)&&(a.defaultChecked=a.checked)}function ja(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ca(b),q=[],r=0;o>r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?"<table>"!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ma.test(f)?this.mouseHooks:la.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ra()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ra()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&("undefined"==typeof a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?pa:qa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:qa,isPropagationStopped:qa,isImmediatePropagationStopped:qa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=pa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=pa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=pa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){return ka.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ka.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!ka.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return sa(this,a,b,c,d)},one:function(a,b,c,d){return sa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=qa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ta=/ jQuery\d+="(?:null|\d+)"/g,ua=new RegExp("<(?:"+ba+")[\\s/>]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/<script|<style|<link/i,xa=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=/^true\/(.*)/,za=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ja[0].contentWindow||Ja[0].contentDocument).document,b.write(),b.close(),c=La(a,b),Ja.detach()),Ka[a]=c),c}var Na=/^margin/,Oa=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Pa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Qa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");if(j.style){j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}});function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="<table><tr><td></td><td>t</td></tr></table>",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",f=0===k[0].offsetHeight,f&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}}}();var Ra,Sa,Ta=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Oa.test(g)&&Na.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Qa.currentStyle&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Oa.test(g)&&!Ta.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ua(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Va=/alpha\([^)]*\)/i,Wa=/opacity\s*=\s*([^)]*)/i,Xa=/^(none|table(?!-c[ea]).+)/,Ya=new RegExp("^("+T+")(.*)$","i"),Za={position:"absolute",visibility:"hidden",display:"block"},$a={letterSpacing:"0",fontWeight:"400"},_a=["Webkit","O","Moz","ms"],ab=d.createElement("div").style;function bb(a){if(a in ab)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=_a.length;while(c--)if(a=_a[c]+b,a in ab)return a}function cb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&W(d)&&(f[g]=n._data(d,"olddisplay",Ma(d.nodeName)))):(e=W(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function db(a,b,c){var d=Ya.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function eb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+V[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+V[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+V[f]+"Width",!0,e))):(g+=n.css(a,"padding"+V[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+V[f]+"Width",!0,e)));return g}function fb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Sa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Oa.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+eb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Sa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=U.exec(c))&&e[1]&&(c=X(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Sa(a,b,d)),"normal"===f&&b in $a&&(f=$a[b]),""===c||c?(e=parseFloat(f),c===!0||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Xa.test(n.css(a,"display"))&&0===a.offsetWidth?Pa(a,Za,function(){return fb(a,b,d)}):fb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return db(a,c,d?eb(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Wa.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Va,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Va.test(f)?f.replace(Va,e):f+" "+e)}}),n.cssHooks.marginRight=Ua(l.reliableMarginRight,function(a,b){return b?Pa(a,{display:"inline-block"},Sa,[a,"marginRight"]):void 0}),n.cssHooks.marginLeft=Ua(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Sa(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Pa(a,{
-marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+V[d]+b]=f[d]||f[d-2]||f[0];return e}},Na.test(a)||(n.cssHooks[a+b].set=db)}),n.fn.extend({css:function(a,b){return Y(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return cb(this,!0)},hide:function(){return cb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){W(this)?n(this).show():n(this).hide()})}});function gb(a,b,c,d,e){return new gb.prototype.init(a,b,c,d,e)}n.Tween=gb,gb.prototype={constructor:gb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=gb.propHooks[this.prop];return a&&a.get?a.get(this):gb.propHooks._default.get(this)},run:function(a){var b,c=gb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):gb.propHooks._default.set(this),this}},gb.prototype.init.prototype=gb.prototype,gb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},gb.propHooks.scrollTop=gb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=gb.prototype.init,n.fx.step={};var hb,ib,jb=/^(?:toggle|show|hide)$/,kb=/queueHooks$/;function lb(){return a.setTimeout(function(){hb=void 0}),hb=n.now()}function mb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=V[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function nb(a,b,c){for(var d,e=(qb.tweeners[b]||[]).concat(qb.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ob(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&W(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k="none"===j?n._data(a,"olddisplay")||Ma(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==Ma(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],jb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?Ma(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=nb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function pb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function qb(a,b,c){var d,e,f=0,g=qb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=hb||lb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:hb||lb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(pb(k,j.opts.specialEasing);g>f;f++)if(d=qb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,nb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(qb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return X(c.elem,a,U.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],qb.tweeners[c]=qb.tweeners[c]||[],qb.tweeners[c].unshift(b)},prefilters:[ob],prefilter:function(a,b){b?qb.prefilters.unshift(a):qb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(W).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=qb(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&kb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(mb(b,!0),a,d,e)}}),n.each({slideDown:mb("show"),slideUp:mb("hide"),slideToggle:mb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(hb=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),hb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ib||(ib=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(ib),ib=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var rb=/\r/g,sb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(sb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var tb,ub,vb=n.expr.attrHandle,wb=/^(?:checked|selected)$/i,xb=l.getSetAttribute,yb=l.input;n.fn.extend({attr:function(a,b){return Y(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ub:tb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?yb&&xb||!wb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(xb?c:d)}}),ub={set:function(a,b,c){return b===!1?n.removeAttr(a,c):yb&&xb||!wb.test(c)?a.setAttribute(!xb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=vb[b]||n.find.attr;yb&&xb||!wb.test(b)?vb[b]=function(a,b,d){var e,f;return d||(f=vb[b],vb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,vb[b]=f),e}:vb[b]=function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),yb&&xb||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):tb&&tb.set(a,b,c)}}),xb||(tb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},vb.id=vb.name=vb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:tb.set},n.attrHooks.contenteditable={set:function(a,b,c){tb.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var zb=/^(?:input|select|textarea|button|object)$/i,Ab=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return Y(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):zb.test(a.nodeName)||Ab.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Bb=/[\t\r\n\f]/g;function Cb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Cb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Cb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Cb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Cb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||a===!1?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Cb(c)+" ").replace(Bb," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Db=a.location,Eb=n.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Hb=/#.*$/,Ib=/([?&])_=[^&]*/,Jb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Kb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lb=/^(?:GET|HEAD)$/,Mb=/^\/\//,Nb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ob={},Pb={},Qb="*/".concat("*"),Rb=Db.href,Sb=Nb.exec(Rb.toLowerCase())||[];function Tb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Ub(a,b,c,d){var e={},f=a===Pb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Vb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Wb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Xb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rb,type:"GET",isLocal:Kb.test(Sb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Vb(Vb(a,n.ajaxSettings),b):Vb(n.ajaxSettings,a)},ajaxPrefilter:Tb(Ob),ajaxTransport:Tb(Pb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Jb.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),y(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Rb)+"").replace(Hb,"").replace(Mb,Sb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(G)||[""],null==l.crossDomain&&(d=Nb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Sb[1]&&d[2]===Sb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Sb[3]||("http:"===Sb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Ub(Ob,l,c,w),2===u)return w;i=n.event&&l.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Lb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ib.test(f)?f.replace(Ib,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Qb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,w,l)===!1||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Ub(Pb,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,y)}catch(x){if(!(2>u))throw x;y(-1,x)}}else y(-1,"No Transport");function y(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&300>b||304===b,d&&(v=Wb(l,w,d)),v=Xb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),x=w.getResponseHeader("etag"),x&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Yb(a){return a.style&&a.style.display||n.css(a,"display")}function Zb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Yb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Zb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var $b=/%20/g,_b=/\[\]$/,ac=/\r?\n/g,bc=/^(?:submit|button|image|reset|file)$/i,cc=/^(?:input|select|textarea|keygen)/i;function dc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||_b.test(a)?d(a,e):dc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)dc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)dc(c,a[c],b,e);return d.join("&").replace($b,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&cc.test(this.nodeName)&&!bc.test(a)&&(this.checked||!Z.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(ac,"\r\n")}}):{name:b.name,value:c.replace(ac,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?ic():d.documentMode>8?hc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&hc()||ic()}:hc;var ec=0,fc={},gc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in fc)fc[a](void 0,!0)}),l.cors=!!gc&&"withCredentials"in gc,gc=l.ajax=!!gc,gc&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++ec;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete fc[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=fc[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function hc(){try{return new a.XMLHttpRequest}catch(b){}}function ic(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var jc=[],kc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=jc.pop()||n.expando+"_"+Eb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(kc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&kc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(kc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,jc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ja([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var lc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&lc)return lc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function mc(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?("undefined"!=typeof e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=mc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Qa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return Y(this,function(a,d,e){var f=mc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ua(l.pixelPosition,function(a,c){return c?(c=Sa(a,b),Oa.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({
-padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Y(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var nc=a.jQuery,oc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=oc),b&&a.jQuery===n&&(a.jQuery=nc),n},b||(a.jQuery=a.$=n),n});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-2/dist/jquery.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-2/dist/jquery.js
deleted file mode 100644
index 5c3c456a..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-2/dist/jquery.js
+++ /dev/null
@@ -1,9814 +0,0 @@
-/*!
- * jQuery JavaScript Library v2.2.4
- * http://jquery.com/
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2016-05-20T17:23Z
- */
-
-(function( global, factory ) {
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Support: Firefox 18+
-// Can't be in strict mode, several libs including ASP.NET trace
-// the stack via arguments.caller.callee and Firefox dies if
-// you try to trace through "use strict" call chains. (#13335)
-//"use strict";
-var arr = [];
-
-var document = window.document;
-
-var slice = arr.slice;
-
-var concat = arr.concat;
-
-var push = arr.push;
-
-var indexOf = arr.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var support = {};
-
-
-
-var
- version = "2.2.4",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
-
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- },
-
- // Support: Android<4.1
- // Make sure we trim BOM and NBSP
- rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
-
- // Matches dashed string for camelizing
- rmsPrefix = /^-ms-/,
- rdashAlpha = /-([\da-z])/gi,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn = jQuery.prototype = {
-
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // Start with an empty selector
- selector: "",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num != null ?
-
- // Return just the one element from the set
- ( num < 0 ? this[ num + this.length ] : this[ num ] ) :
-
- // Return all the elements in a clean array
- slice.call( this );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
- ret.context = this.context;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- each: function( callback ) {
- return jQuery.each( this, callback );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map( this, function( elem, i ) {
- return callback.call( elem, i, elem );
- } ) );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor();
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: arr.sort,
- splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[ 0 ] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // Skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
- target = {};
- }
-
- // Extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
-
- // Only deal with non-null/undefined values
- if ( ( options = arguments[ i ] ) != null ) {
-
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
-
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray( src ) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject( src ) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend( {
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- isFunction: function( obj ) {
- return jQuery.type( obj ) === "function";
- },
-
- isArray: Array.isArray,
-
- isWindow: function( obj ) {
- return obj != null && obj === obj.window;
- },
-
- isNumeric: function( obj ) {
-
- // parseFloat NaNs numeric-cast false positives (null|true|false|"")
- // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
- // subtraction forces infinities to NaN
- // adding 1 corrects loss of precision from parseFloat (#15100)
- var realStringObj = obj && obj.toString();
- return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0;
- },
-
- isPlainObject: function( obj ) {
- var key;
-
- // Not plain objects:
- // - Any object or value whose internal [[Class]] property is not "[object Object]"
- // - DOM nodes
- // - window
- if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call( obj, "constructor" ) &&
- !hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) {
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- var name;
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- type: function( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
-
- // Support: Android<4.0, iOS<6 (functionish RegExp)
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
- },
-
- // Evaluates a script in a global context
- globalEval: function( code ) {
- var script,
- indirect = eval;
-
- code = jQuery.trim( code );
-
- if ( code ) {
-
- // If the code includes a valid, prologue position
- // strict mode pragma, execute code by injecting a
- // script tag into the document.
- if ( code.indexOf( "use strict" ) === 1 ) {
- script = document.createElement( "script" );
- script.text = code;
- document.head.appendChild( script ).parentNode.removeChild( script );
- } else {
-
- // Otherwise, avoid the DOM node creation, insertion
- // and removal by using an indirect global eval
-
- indirect( code );
- }
- }
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Support: IE9-11+
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
- },
-
- each: function( obj, callback ) {
- var length, i = 0;
-
- if ( isArrayLike( obj ) ) {
- length = obj.length;
- for ( ; i < length; i++ ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- }
-
- return obj;
- },
-
- // Support: Android<4.1
- trim: function( text ) {
- return text == null ?
- "" :
- ( text + "" ).replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArrayLike( Object( arr ) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- return arr == null ? -1 : indexOf.call( arr, elem, i );
- },
-
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- for ( ; j < len; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var length, value,
- i = 0,
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArrayLike( elems ) ) {
- length = elems.length;
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- var tmp, args, proxy;
-
- if ( typeof context === "string" ) {
- tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- args = slice.call( arguments, 2 );
- proxy = function() {
- return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
- return proxy;
- },
-
- now: Date.now,
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-} );
-
-// JSHint would error on this code due to the Symbol not being defined in ES5.
-// Defining this global in .jshintrc would create a danger of using the global
-// unguarded in another place, it seems safer to just disable JSHint for these
-// three lines.
-/* jshint ignore: start */
-if ( typeof Symbol === "function" ) {
- jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-/* jshint ignore: end */
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( i, name ) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
- // Support: iOS 8.2 (not reproducible in simulator)
- // `in` check used to prevent JIT error (gh-2145)
- // hasOwn isn't used here due to false negatives
- // regarding Nodelist length in IE
- var length = !!obj && "length" in obj && obj.length,
- type = jQuery.type( obj );
-
- if ( type === "function" || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v2.2.1
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2015-10-17
- */
-(function( window ) {
-
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + 1 * new Date(),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // General-purpose constants
- MAX_NEGATIVE = 1 << 31,
-
- // Instance methods
- hasOwn = ({}).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- push_native = arr.push,
- push = arr.push,
- slice = arr.slice,
- // Use a stripped-down indexOf as it's faster than native
- // http://jsperf.com/thor-indexof-vs-for/5
- indexOf = function( list, elem ) {
- var i = 0,
- len = list.length;
- for ( ; i < len; i++ ) {
- if ( list[i] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
-
- // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
- identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
- // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
- "*\\]",
-
- pseudos = ":(" + identifier + ")(?:\\((" +
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rwhitespace = new RegExp( whitespace + "+", "g" ),
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
-
- rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + identifier + ")" ),
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
- "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
- "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
- whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
- rescape = /'|\\/g,
-
- // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
- funescape = function( _, escaped, escapedWhitespace ) {
- var high = "0x" + escaped - 0x10000;
- // NaN means non-codepoint
- // Support: Firefox<24
- // Workaround erroneous numeric interpretation of +"0x"
- return high !== high || escapedWhitespace ?
- escaped :
- high < 0 ?
- // BMP codepoint
- String.fromCharCode( high + 0x10000 ) :
- // Supplemental Plane codepoint (surrogate pair)
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- },
-
- // Used for iframes
- // See setDocument()
- // Removing the function wrapper causes a "Permission Denied"
- // error in IE
- unloadHandler = function() {
- setDocument();
- };
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- (arr = slice.call( preferredDoc.childNodes )),
- preferredDoc.childNodes
- );
- // Support: Android<4.0
- // Detect silently failing push.apply
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- push_native.apply( target, slice.call(els) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
- // Can't trust NodeList.length
- while ( (target[j++] = els[i++]) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var m, i, elem, nid, nidselect, match, groups, newSelector,
- newContext = context && context.ownerDocument,
-
- // nodeType defaults to 9, since context defaults to document
- nodeType = context ? context.nodeType : 9;
-
- results = results || [];
-
- // Return early from calls with invalid selector or context
- if ( typeof selector !== "string" || !selector ||
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
- return results;
- }
-
- // Try to shortcut find operations (as opposed to filters) in HTML documents
- if ( !seed ) {
-
- if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
- setDocument( context );
- }
- context = context || document;
-
- if ( documentIsHTML ) {
-
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
- // (excepting DocumentFragment context, where the methods don't exist)
- if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
-
- // ID selector
- if ( (m = match[1]) ) {
-
- // Document context
- if ( nodeType === 9 ) {
- if ( (elem = context.getElementById( m )) ) {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
-
- // Element context
- } else {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( newContext && (elem = newContext.getElementById( m )) &&
- contains( context, elem ) &&
- elem.id === m ) {
-
- results.push( elem );
- return results;
- }
- }
-
- // Type selector
- } else if ( match[2] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Class selector
- } else if ( (m = match[3]) && support.getElementsByClassName &&
- context.getElementsByClassName ) {
-
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // Take advantage of querySelectorAll
- if ( support.qsa &&
- !compilerCache[ selector + " " ] &&
- (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
-
- if ( nodeType !== 1 ) {
- newContext = context;
- newSelector = selector;
-
- // qSA looks outside Element context, which is not what we want
- // Thanks to Andrew Dupont for this workaround technique
- // Support: IE <=8
- // Exclude object elements
- } else if ( context.nodeName.toLowerCase() !== "object" ) {
-
- // Capture the context ID, setting it first if necessary
- if ( (nid = context.getAttribute( "id" )) ) {
- nid = nid.replace( rescape, "\\$&" );
- } else {
- context.setAttribute( "id", (nid = expando) );
- }
-
- // Prefix every selector in the list
- groups = tokenize( selector );
- i = groups.length;
- nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
- while ( i-- ) {
- groups[i] = nidselect + " " + toSelector( groups[i] );
- }
- newSelector = groups.join( "," );
-
- // Expand context for sibling selectors
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
- context;
- }
-
- if ( newSelector ) {
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch ( qsaError ) {
- } finally {
- if ( nid === expando ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return (cache[ key + " " ] = value);
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created div and expects a boolean result
- */
-function assert( fn ) {
- var div = document.createElement("div");
-
- try {
- return !!fn( div );
- } catch (e) {
- return false;
- } finally {
- // Remove from its parent by default
- if ( div.parentNode ) {
- div.parentNode.removeChild( div );
- }
- // release memory in IE
- div = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split("|"),
- i = arr.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[i] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- ( ~b.sourceIndex || MAX_NEGATIVE ) -
- ( ~a.sourceIndex || MAX_NEGATIVE );
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( (cur = cur.nextSibling) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction(function( argument ) {
- argument = +argument;
- return markFunction(function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ (j = matchIndexes[i]) ] ) {
- seed[j] = !(matches[j] = seed[j]);
- }
- }
- });
- });
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && (elem.ownerDocument || elem).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare, parent,
- doc = node ? node.ownerDocument || node : preferredDoc;
-
- // Return early if doc is invalid or already selected
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Update global variables
- document = doc;
- docElem = document.documentElement;
- documentIsHTML = !isXML( document );
-
- // Support: IE 9-11, Edge
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
- if ( (parent = document.defaultView) && parent.top !== parent ) {
- // Support: IE 11
- if ( parent.addEventListener ) {
- parent.addEventListener( "unload", unloadHandler, false );
-
- // Support: IE 9 - 10 only
- } else if ( parent.attachEvent ) {
- parent.attachEvent( "onunload", unloadHandler );
- }
- }
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties
- // (excepting IE8 booleans)
- support.attributes = assert(function( div ) {
- div.className = "i";
- return !div.getAttribute("className");
- });
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert(function( div ) {
- div.appendChild( document.createComment("") );
- return !div.getElementsByTagName("*").length;
- });
-
- // Support: IE<9
- support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert(function( div ) {
- docElem.appendChild( div ).id = expando;
- return !document.getElementsByName || !document.getElementsByName( expando ).length;
- });
-
- // ID find and filter
- if ( support.getById ) {
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var m = context.getElementById( id );
- return m ? [ m ] : [];
- }
- };
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute("id") === attrId;
- };
- };
- } else {
- // Support: IE6/7
- // getElementById is not reliable as a find shortcut
- delete Expr.find["ID"];
-
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== "undefined" &&
- elem.getAttributeNode("id");
- return node && node.value === attrId;
- };
- };
- }
-
- // Tag
- Expr.find["TAG"] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( tag );
-
- // DocumentFragment nodes don't have gEBTN
- } else if ( support.qsa ) {
- return context.querySelectorAll( tag );
- }
- } :
-
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
- // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( (elem = results[i++]) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See http://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert(function( div ) {
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // http://bugs.jquery.com/ticket/12359
- docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
- "<select id='" + expando + "-\r\\' msallowcapture=''>" +
- "<option selected=''></option></select>";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( div.querySelectorAll("[msallowcapture^='']").length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !div.querySelectorAll("[selected]").length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
- if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
- rbuggyQSA.push("~=");
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":checked").length ) {
- rbuggyQSA.push(":checked");
- }
-
- // Support: Safari 8+, iOS 8+
- // https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibing-combinator selector` fails
- if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
- rbuggyQSA.push(".#.+[+~]");
- }
- });
-
- assert(function( div ) {
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = document.createElement("input");
- input.setAttribute( "type", "hidden" );
- div.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( div.querySelectorAll("[name=d]").length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":enabled").length ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Opera 10-11 does not throw on post-comma invalid pseudos
- div.querySelectorAll("*,:x");
- rbuggyQSA.push(",.*:");
- });
- }
-
- if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector) )) ) {
-
- assert(function( div ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( div, "div" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( div, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- });
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully self-exclusive
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ));
- } :
- function( a, b ) {
- if ( b ) {
- while ( (b = b.parentNode) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
- return -1;
- }
- if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
- return a === document ? -1 :
- b === document ? 1 :
- aup ? -1 :
- bup ? 1 :
- sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( (cur = cur.parentNode) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( (cur = cur.parentNode) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[i] === bp[i] ) {
- i++;
- }
-
- return i ?
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[i], bp[i] ) :
-
- // Otherwise nodes in our document sort first
- ap[i] === preferredDoc ? -1 :
- bp[i] === preferredDoc ? 1 :
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- // Make sure that attribute selectors are quoted
- expr = expr.replace( rattributeQuotes, "='$1']" );
-
- if ( support.matchesSelector && documentIsHTML &&
- !compilerCache[ expr + " " ] &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch (e) {}
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
- // Set document vars if needed
- if ( ( context.ownerDocument || context ) !== document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- (val = elem.getAttributeNode(name)) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( (elem = results[i++]) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
- // If no nodeType, this is expected to be an array
- while ( (node = elem[i++]) ) {
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[1] = match[1].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
-
- if ( match[2] === "~=" ) {
- match[3] = " " + match[3] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[1] = match[1].toLowerCase();
-
- if ( match[1].slice( 0, 3 ) === "nth" ) {
- // nth-* requires argument
- if ( !match[3] ) {
- Sizzle.error( match[0] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
- match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[3] ) {
- Sizzle.error( match[0] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[6] && match[2];
-
- if ( matchExpr["CHILD"].test( match[0] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[3] ) {
- match[2] = match[4] || match[5] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
- // Get excess from tokenize (recursively)
- (excess = tokenize( unquoted, true )) &&
- // advance to the next closing parenthesis
- (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
- // excess is a negative index
- match[0] = match[0].slice( 0, excess );
- match[2] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() { return true; } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
- classCache( className, function( elem ) {
- return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
- });
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- };
- },
-
- "CHILD": function( type, what, argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, context, xml ) {
- var cache, uniqueCache, outerCache, node, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType,
- diff = false;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( (node = node[ dir ]) ) {
- if ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) {
-
- return false;
- }
- }
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
-
- // Seek `elem` from a previously-cached index
-
- // ...in a gzip-friendly way
- node = parent;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex && cache[ 2 ];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( (node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- } else {
- // Use previously-cached element index if available
- if ( useCache ) {
- // ...in a gzip-friendly way
- node = elem;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex;
- }
-
- // xml :nth-child(...)
- // or :nth-last-child(...) or :nth(-last)?-of-type(...)
- if ( diff === false ) {
- // Use the same loop as above to seek `elem` from the start
- while ( (node = ++nodeIndex && node && node[ dir ] ||
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- if ( ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) &&
- ++diff ) {
-
- // Cache the index of each encountered element
- if ( useCache ) {
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- uniqueCache[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction(function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf( seed, matched[i] );
- seed[ idx ] = !( matches[ idx ] = matched[i] );
- }
- }) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
- // Potentially complex pseudos
- "not": markFunction(function( selector ) {
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction(function( seed, matches, context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( (elem = unmatched[i]) ) {
- seed[i] = !(matches[i] = elem);
- }
- }
- }) :
- function( elem, context, xml ) {
- input[0] = elem;
- matcher( input, null, xml, results );
- // Don't keep the element (issue #299)
- input[0] = null;
- return !results.pop();
- };
- }),
-
- "has": markFunction(function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- }),
-
- "contains": markFunction(function( text ) {
- text = text.replace( runescape, funescape );
- return function( elem ) {
- return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
- };
- }),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
- // lang value must be a valid identifier
- if ( !ridentifier.test(lang || "") ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( (elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
- return false;
- };
- }),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
- },
-
- // Boolean properties
- "enabled": function( elem ) {
- return elem.disabled === false;
- },
-
- "disabled": function( elem ) {
- return elem.disabled === true;
- },
-
- "checked": function( elem ) {
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
- },
-
- "selected": function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos["empty"]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo(function() {
- return [ 0 ];
- }),
-
- "last": createPositionalPseudo(function( matchIndexes, length ) {
- return [ length - 1 ];
- }),
-
- "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- }),
-
- "even": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "odd": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- })
- }
-};
-
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || (match = rcomma.exec( soFar )) ) {
- if ( match ) {
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[0].length ) || soFar;
- }
- groups.push( (tokens = []) );
- }
-
- matched = false;
-
- // Combinators
- if ( (match = rcombinators.exec( soFar )) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- // Cast descendant combinators to space
- type: match[0].replace( rtrim, " " )
- });
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
- (match = preFilters[ type ]( match ))) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- type: type,
- matches: match
- });
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[i].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- checkNonElements = base && dir === "parentNode",
- doneName = done++;
-
- return combinator.first ?
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, uniqueCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
- if ( xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || (elem[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
-
- if ( (oldCache = uniqueCache[ dir ]) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return (newCache[ 2 ] = oldCache[ 2 ]);
- } else {
- // Reuse newcache so results back-propagate to previous elements
- uniqueCache[ dir ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
- return true;
- }
- }
- }
- }
- }
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[i]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[0];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[i], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( (elem = unmatched[i]) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction(function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( (elem = temp[i]) ) {
- matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) ) {
- // Restore matcherIn since elem is not yet a final match
- temp.push( (matcherIn[i] = elem) );
- }
- }
- postFinder( null, (matcherOut = []), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) &&
- (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
-
- seed[temp] = !(results[temp] = elem);
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- });
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[0].type ],
- implicitRelative = leadingRelative || Expr.relative[" "],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- (checkContext = context).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
- // Avoid hanging onto element (issue #299)
- checkContext = null;
- return ret;
- } ];
-
- for ( ; i < len; i++ ) {
- if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
- matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
- } else {
- matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[j].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
- ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
- len = elems.length;
-
- if ( outermost ) {
- outermostContext = context === document || context || outermost;
- }
-
- // Add elements passing elementMatchers directly to results
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
- for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
- if ( !context && elem.ownerDocument !== document ) {
- setDocument( elem );
- xml = !documentIsHTML;
- }
- while ( (matcher = elementMatchers[j++]) ) {
- if ( matcher( elem, context || document, xml) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
- // They will have gone through all possible matchers
- if ( (elem = !matcher && elem) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // `i` is now the count of elements visited above, and adding it to `matchedCount`
- // makes the latter nonnegative.
- matchedCount += i;
-
- // Apply set filters to unmatched elements
- // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
- // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
- // no element matchers and no seed.
- // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
- // case, which will result in a "00" `matchedCount` that differs from `i` but is also
- // numerically zero.
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( (matcher = setMatchers[j++]) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !(unmatched[i] || setMatched[i]) ) {
- setMatched[i] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[i] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( (selector = compiled.selector || selector) );
-
- results = results || [];
-
- // Try to minimize operations if there is only one selector in the list and no seed
- // (the latter of which guarantees us context)
- if ( match.length === 1 ) {
-
- // Reduce context if the leading compound selector is an ID
- tokens = match[0] = match[0].slice( 0 );
- if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
- support.getById && context.nodeType === 9 && documentIsHTML &&
- Expr.relative[ tokens[1].type ] ) {
-
- context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[i];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ (type = token.type) ] ) {
- break;
- }
- if ( (find = Expr.find[ type ]) ) {
- // Search, expanding context for leading sibling combinators
- if ( (seed = find(
- token.matches[0].replace( runescape, funescape ),
- rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
- )) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert(function( div1 ) {
- // Should return 1, but returns 4 (following)
- return div1.compareDocumentPosition( document.createElement("div") ) & 1;
-});
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert(function( div ) {
- div.innerHTML = "<a href='#'></a>";
- return div.firstChild.getAttribute("href") === "#" ;
-}) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- });
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert(function( div ) {
- div.innerHTML = "<input/>";
- div.firstChild.setAttribute( "value", "" );
- return div.firstChild.getAttribute( "value" ) === "";
-}) ) {
- addHandle( "value", function( elem, name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- });
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert(function( div ) {
- return div.getAttribute("disabled") == null;
-}) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- (val = elem.getAttributeNode( name )) && val.specified ?
- val.value :
- null;
- }
- });
-}
-
-return Sizzle;
-
-})( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-
-var dir = function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
-};
-
-
-var siblings = function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
-};
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-var rsingleTag = ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
-
-
-
-var risSimple = /^.[^:#\[\.,]*$/;
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- /* jshint -W018 */
- return !!qualifier.call( elem, i, elem ) !== not;
- } );
-
- }
-
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- } );
-
- }
-
- if ( typeof qualifier === "string" ) {
- if ( risSimple.test( qualifier ) ) {
- return jQuery.filter( qualifier, elements, not );
- }
-
- qualifier = jQuery.filter( qualifier, elements );
- }
-
- return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
- } );
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 && elem.nodeType === 1 ?
- jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
- jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- } ) );
-};
-
-jQuery.fn.extend( {
- find: function( selector ) {
- var i,
- len = this.length,
- ret = [],
- self = this;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- } ) );
- }
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- // Needed because $( selector, context ) becomes $( context ).find( selector )
- ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
- ret.selector = this.selector ? this.selector + " " + selector : selector;
- return ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow( this, selector || [], false ) );
- },
- not: function( selector ) {
- return this.pushStack( winnow( this, selector || [], true ) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-} );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // A simple way to check for HTML strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
-
- init = jQuery.fn.init = function( selector, context, root ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Method init() accepts an alternate rootjQuery
- // so migrate can support jQuery.sub (gh-2101)
- root = root || rootjQuery;
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector[ 0 ] === "<" &&
- selector[ selector.length - 1 ] === ">" &&
- selector.length >= 3 ) {
-
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && ( match[ 1 ] || !context ) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[ 1 ] ) {
- context = context instanceof jQuery ? context[ 0 ] : context;
-
- // Option to run scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[ 1 ],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
-
- // Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[ 2 ] );
-
- // Support: Blackberry 4.6
- // gEBID returns nodes no longer in the document (#6963)
- if ( elem && elem.parentNode ) {
-
- // Inject the element directly into the jQuery object
- this.length = 1;
- this[ 0 ] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || root ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this.context = this[ 0 ] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return root.ready !== undefined ?
- root.ready( selector ) :
-
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- if ( selector.selector !== undefined ) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
- // Methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend( {
- has: function( target ) {
- var targets = jQuery( target, this ),
- l = targets.length;
-
- return this.filter( function() {
- var i = 0;
- for ( ; i < l; i++ ) {
- if ( jQuery.contains( this, targets[ i ] ) ) {
- return true;
- }
- }
- } );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
- jQuery( selectors, context || this.context ) :
- 0;
-
- for ( ; i < l; i++ ) {
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
- // Always skip document fragments
- if ( cur.nodeType < 11 && ( pos ?
- pos.index( cur ) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
- },
-
- // Determine the position of an element within the set
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // Index in selector
- if ( typeof elem === "string" ) {
- return indexOf.call( jQuery( elem ), this[ 0 ] );
- }
-
- // Locate the position of the desired element
- return indexOf.call( this,
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem
- );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.uniqueSort(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter( selector )
- );
- }
-} );
-
-function sibling( cur, dir ) {
- while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
- return cur;
-}
-
-jQuery.each( {
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return siblings( elem.firstChild );
- },
- contents: function( elem ) {
- return elem.contentDocument || jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var matched = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- matched = jQuery.filter( selector, matched );
- }
-
- if ( this.length > 1 ) {
-
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- jQuery.uniqueSort( matched );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- matched.reverse();
- }
- }
-
- return this.pushStack( matched );
- };
-} );
-var rnotwhite = ( /\S+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
- var object = {};
- jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- } );
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- createOptions( options ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
-
- // Last fire value for non-forgettable lists
- memory,
-
- // Flag to know if list was already fired
- fired,
-
- // Flag to prevent firing
- locked,
-
- // Actual callback list
- list = [],
-
- // Queue of execution data for repeatable lists
- queue = [],
-
- // Index of currently firing callback (modified by add/remove as needed)
- firingIndex = -1,
-
- // Fire callbacks
- fire = function() {
-
- // Enforce single-firing
- locked = options.once;
-
- // Execute callbacks for all pending executions,
- // respecting firingIndex overrides and runtime changes
- fired = firing = true;
- for ( ; queue.length; firingIndex = -1 ) {
- memory = queue.shift();
- while ( ++firingIndex < list.length ) {
-
- // Run callback and check for early termination
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
- options.stopOnFalse ) {
-
- // Jump to end and forget the data so .add doesn't re-fire
- firingIndex = list.length;
- memory = false;
- }
- }
- }
-
- // Forget the data if we're done with it
- if ( !options.memory ) {
- memory = false;
- }
-
- firing = false;
-
- // Clean up if we're done firing for good
- if ( locked ) {
-
- // Keep an empty list if we have data for future add calls
- if ( memory ) {
- list = [];
-
- // Otherwise, this object is spent
- } else {
- list = "";
- }
- }
- },
-
- // Actual Callbacks object
- self = {
-
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
-
- // If we have memory from a past run, we should fire after adding
- if ( memory && !firing ) {
- firingIndex = list.length - 1;
- queue.push( memory );
- }
-
- ( function add( args ) {
- jQuery.each( args, function( _, arg ) {
- if ( jQuery.isFunction( arg ) ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
-
- // Inspect recursively
- add( arg );
- }
- } );
- } )( arguments );
-
- if ( memory && !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Remove a callback from the list
- remove: function() {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
-
- // Handle firing indexes
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- } );
- return this;
- },
-
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ?
- jQuery.inArray( fn, list ) > -1 :
- list.length > 0;
- },
-
- // Remove all callbacks from the list
- empty: function() {
- if ( list ) {
- list = [];
- }
- return this;
- },
-
- // Disable .fire and .add
- // Abort any current/pending executions
- // Clear all callbacks and values
- disable: function() {
- locked = queue = [];
- list = memory = "";
- return this;
- },
- disabled: function() {
- return !list;
- },
-
- // Disable .fire
- // Also disable .add unless we have memory (since it would have no effect)
- // Abort any pending executions
- lock: function() {
- locked = queue = [];
- if ( !memory ) {
- list = memory = "";
- }
- return this;
- },
- locked: function() {
- return !!locked;
- },
-
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( !locked ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- queue.push( args );
- if ( !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
-
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-jQuery.extend( {
-
- Deferred: function( func ) {
- var tuples = [
-
- // action, add listener, listener list, final state
- [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],
- [ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ],
- [ "notify", "progress", jQuery.Callbacks( "memory" ) ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- then: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
- return jQuery.Deferred( function( newDefer ) {
- jQuery.each( tuples, function( i, tuple ) {
- var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
-
- // deferred[ done | fail | progress ] for forwarding actions to newDefer
- deferred[ tuple[ 1 ] ]( function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise()
- .progress( newDefer.notify )
- .done( newDefer.resolve )
- .fail( newDefer.reject );
- } else {
- newDefer[ tuple[ 0 ] + "With" ](
- this === promise ? newDefer.promise() : this,
- fn ? [ returned ] : arguments
- );
- }
- } );
- } );
- fns = null;
- } ).promise();
- },
-
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Keep pipe for back-compat
- promise.pipe = promise.then;
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 3 ];
-
- // promise[ done | fail | progress ] = list.add
- promise[ tuple[ 1 ] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add( function() {
-
- // state = [ resolved | rejected ]
- state = stateString;
-
- // [ reject_list | resolve_list ].disable; progress_list.lock
- }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
- }
-
- // deferred[ resolve | reject | notify ]
- deferred[ tuple[ 0 ] ] = function() {
- deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments );
- return this;
- };
- deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
- } );
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( subordinate /* , ..., subordinateN */ ) {
- var i = 0,
- resolveValues = slice.call( arguments ),
- length = resolveValues.length,
-
- // the count of uncompleted subordinates
- remaining = length !== 1 ||
- ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
-
- // the master Deferred.
- // If resolveValues consist of only a single Deferred, just use that.
- deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
-
- // Update function for both resolve and progress values
- updateFunc = function( i, contexts, values ) {
- return function( value ) {
- contexts[ i ] = this;
- values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( values === progressValues ) {
- deferred.notifyWith( contexts, values );
- } else if ( !( --remaining ) ) {
- deferred.resolveWith( contexts, values );
- }
- };
- },
-
- progressValues, progressContexts, resolveContexts;
-
- // Add listeners to Deferred subordinates; treat others as resolved
- if ( length > 1 ) {
- progressValues = new Array( length );
- progressContexts = new Array( length );
- resolveContexts = new Array( length );
- for ( ; i < length; i++ ) {
- if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
- resolveValues[ i ].promise()
- .progress( updateFunc( i, progressContexts, progressValues ) )
- .done( updateFunc( i, resolveContexts, resolveValues ) )
- .fail( deferred.reject );
- } else {
- --remaining;
- }
- }
- }
-
- // If we're not waiting on anything, resolve the master
- if ( !remaining ) {
- deferred.resolveWith( resolveContexts, resolveValues );
- }
-
- return deferred.promise();
- }
-} );
-
-
-// The deferred used on DOM ready
-var readyList;
-
-jQuery.fn.ready = function( fn ) {
-
- // Add the callback
- jQuery.ready.promise().done( fn );
-
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.triggerHandler ) {
- jQuery( document ).triggerHandler( "ready" );
- jQuery( document ).off( "ready" );
- }
- }
-} );
-
-/**
- * The ready event handler and self cleanup method
- */
-function completed() {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
- jQuery.ready();
-}
-
-jQuery.ready.promise = function( obj ) {
- if ( !readyList ) {
-
- readyList = jQuery.Deferred();
-
- // Catch cases where $(document).ready() is called
- // after the browser event has already occurred.
- // Support: IE9-10 only
- // Older IE sometimes signals "interactive" too soon
- if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
- } else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
- }
- }
- return readyList.promise( obj );
-};
-
-// Kick off the DOM ready check even if the user does not
-jQuery.ready.promise();
-
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- len = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( jQuery.type( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !jQuery.isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
-
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < len; i++ ) {
- fn(
- elems[ i ], key, raw ?
- value :
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
- );
- }
- }
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- len ? fn( elems[ 0 ], key ) : emptyGet;
-};
-var acceptData = function( owner ) {
-
- // Accepts only:
- // - Node
- // - Node.ELEMENT_NODE
- // - Node.DOCUMENT_NODE
- // - Object
- // - Any
- /* jshint -W018 */
- return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-};
-
-
-
-
-function Data() {
- this.expando = jQuery.expando + Data.uid++;
-}
-
-Data.uid = 1;
-
-Data.prototype = {
-
- register: function( owner, initial ) {
- var value = initial || {};
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable, non-writable property
- // configurability must be true to allow the property to be
- // deleted with the delete operator
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- writable: true,
- configurable: true
- } );
- }
- return owner[ this.expando ];
- },
- cache: function( owner ) {
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( !acceptData( owner ) ) {
- return {};
- }
-
- // Check if the owner object already has a cache
- var value = owner[ this.expando ];
-
- // If not, create one
- if ( !value ) {
- value = {};
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( acceptData( owner ) ) {
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable property
- // configurable must be true to allow the property to be
- // deleted when data is removed
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- configurable: true
- } );
- }
- }
- }
-
- return value;
- },
- set: function( owner, data, value ) {
- var prop,
- cache = this.cache( owner );
-
- // Handle: [ owner, key, value ] args
- if ( typeof data === "string" ) {
- cache[ data ] = value;
-
- // Handle: [ owner, { properties } ] args
- } else {
-
- // Copy the properties one-by-one to the cache object
- for ( prop in data ) {
- cache[ prop ] = data[ prop ];
- }
- }
- return cache;
- },
- get: function( owner, key ) {
- return key === undefined ?
- this.cache( owner ) :
- owner[ this.expando ] && owner[ this.expando ][ key ];
- },
- access: function( owner, key, value ) {
- var stored;
-
- // In cases where either:
- //
- // 1. No key was specified
- // 2. A string key was specified, but no value provided
- //
- // Take the "read" path and allow the get method to determine
- // which value to return, respectively either:
- //
- // 1. The entire cache object
- // 2. The data stored at the key
- //
- if ( key === undefined ||
- ( ( key && typeof key === "string" ) && value === undefined ) ) {
-
- stored = this.get( owner, key );
-
- return stored !== undefined ?
- stored : this.get( owner, jQuery.camelCase( key ) );
- }
-
- // When the key is not a string, or both a key and value
- // are specified, set or extend (existing objects) with either:
- //
- // 1. An object of properties
- // 2. A key and value
- //
- this.set( owner, key, value );
-
- // Since the "set" path can have two possible entry points
- // return the expected data based on which path was taken[*]
- return value !== undefined ? value : key;
- },
- remove: function( owner, key ) {
- var i, name, camel,
- cache = owner[ this.expando ];
-
- if ( cache === undefined ) {
- return;
- }
-
- if ( key === undefined ) {
- this.register( owner );
-
- } else {
-
- // Support array or space separated string of keys
- if ( jQuery.isArray( key ) ) {
-
- // If "name" is an array of keys...
- // When data is initially created, via ("key", "val") signature,
- // keys will be converted to camelCase.
- // Since there is no way to tell _how_ a key was added, remove
- // both plain key and camelCase key. #12786
- // This will only penalize the array argument path.
- name = key.concat( key.map( jQuery.camelCase ) );
- } else {
- camel = jQuery.camelCase( key );
-
- // Try the string as a key before any manipulation
- if ( key in cache ) {
- name = [ key, camel ];
- } else {
-
- // If a key with the spaces exists, use it.
- // Otherwise, create an array by matching non-whitespace
- name = camel;
- name = name in cache ?
- [ name ] : ( name.match( rnotwhite ) || [] );
- }
- }
-
- i = name.length;
-
- while ( i-- ) {
- delete cache[ name[ i ] ];
- }
- }
-
- // Remove the expando if there's no more data
- if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
- // Support: Chrome <= 35-45+
- // Webkit & Blink performance suffers when deleting properties
- // from DOM nodes, so set to undefined instead
- // https://code.google.com/p/chromium/issues/detail?id=378607
- if ( owner.nodeType ) {
- owner[ this.expando ] = undefined;
- } else {
- delete owner[ this.expando ];
- }
- }
- },
- hasData: function( owner ) {
- var cache = owner[ this.expando ];
- return cache !== undefined && !jQuery.isEmptyObject( cache );
- }
-};
-var dataPriv = new Data();
-
-var dataUser = new Data();
-
-
-
-// Implementation Summary
-//
-// 1. Enforce API surface and semantic compatibility with 1.9.x branch
-// 2. Improve the module's maintainability by reducing the storage
-// paths to a single mechanism.
-// 3. Use the same single mechanism to support "private" and "user" data.
-// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-// 5. Avoid exposing implementation details on user objects (eg. expando properties)
-// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /[A-Z]/g;
-
-function dataAttr( elem, key, data ) {
- var name;
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
-
- // Only convert to a number if it doesn't change the string
- +data + "" === data ? +data :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch ( e ) {}
-
- // Make sure we set the data so it isn't changed later
- dataUser.set( elem, key, data );
- } else {
- data = undefined;
- }
- }
- return data;
-}
-
-jQuery.extend( {
- hasData: function( elem ) {
- return dataUser.hasData( elem ) || dataPriv.hasData( elem );
- },
-
- data: function( elem, name, data ) {
- return dataUser.access( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- dataUser.remove( elem, name );
- },
-
- // TODO: Now that all calls to _data and _removeData have been replaced
- // with direct calls to dataPriv methods, these can be deprecated.
- _data: function( elem, name, data ) {
- return dataPriv.access( elem, name, data );
- },
-
- _removeData: function( elem, name ) {
- dataPriv.remove( elem, name );
- }
-} );
-
-jQuery.fn.extend( {
- data: function( key, value ) {
- var i, name, data,
- elem = this[ 0 ],
- attrs = elem && elem.attributes;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = dataUser.get( elem );
-
- if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE11+
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.slice( 5 ) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- dataPriv.set( elem, "hasDataAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each( function() {
- dataUser.set( this, key );
- } );
- }
-
- return access( this, function( value ) {
- var data, camelKey;
-
- // The calling jQuery object (element matches) is not empty
- // (and therefore has an element appears at this[ 0 ]) and the
- // `value` parameter was not undefined. An empty jQuery object
- // will result in `undefined` for elem = this[ 0 ] which will
- // throw an exception if an attempt to read a data cache is made.
- if ( elem && value === undefined ) {
-
- // Attempt to get data from the cache
- // with the key as-is
- data = dataUser.get( elem, key ) ||
-
- // Try to find dashed key if it exists (gh-2779)
- // This is for 2.2.x only
- dataUser.get( elem, key.replace( rmultiDash, "-$&" ).toLowerCase() );
-
- if ( data !== undefined ) {
- return data;
- }
-
- camelKey = jQuery.camelCase( key );
-
- // Attempt to get data from the cache
- // with the key camelized
- data = dataUser.get( elem, camelKey );
- if ( data !== undefined ) {
- return data;
- }
-
- // Attempt to "discover" the data in
- // HTML5 custom data-* attrs
- data = dataAttr( elem, camelKey, undefined );
- if ( data !== undefined ) {
- return data;
- }
-
- // We tried really hard, but the data doesn't exist.
- return;
- }
-
- // Set the data...
- camelKey = jQuery.camelCase( key );
- this.each( function() {
-
- // First, attempt to store a copy or reference of any
- // data that might've been store with a camelCased key.
- var data = dataUser.get( this, camelKey );
-
- // For HTML5 data-* attribute interop, we have to
- // store property names with dashes in a camelCase form.
- // This might not apply to all properties...*
- dataUser.set( this, camelKey, value );
-
- // *... In the case of properties that might _actually_
- // have dashes, we need to also store a copy of that
- // unchanged property.
- if ( key.indexOf( "-" ) > -1 && data !== undefined ) {
- dataUser.set( this, key, value );
- }
- } );
- }, null, value, arguments.length > 1, null, true );
- },
-
- removeData: function( key ) {
- return this.each( function() {
- dataUser.remove( this, key );
- } );
- }
-} );
-
-
-jQuery.extend( {
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = dataPriv.get( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || jQuery.isArray( data ) ) {
- queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // Clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // Not public - generate a queueHooks object, or return the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
- empty: jQuery.Callbacks( "once memory" ).add( function() {
- dataPriv.remove( elem, [ type + "queue", key ] );
- } )
- } );
- }
-} );
-
-jQuery.fn.extend( {
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[ 0 ], type );
- }
-
- return data === undefined ?
- this :
- this.each( function() {
- var queue = jQuery.queue( this, type, data );
-
- // Ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- dequeue: function( type ) {
- return this.each( function() {
- jQuery.dequeue( this, type );
- } );
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
-
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-} );
-var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var isHidden = function( elem, el ) {
-
- // isHidden might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
- return jQuery.css( elem, "display" ) === "none" ||
- !jQuery.contains( elem.ownerDocument, elem );
- };
-
-
-
-function adjustCSS( elem, prop, valueParts, tween ) {
- var adjusted,
- scale = 1,
- maxIterations = 20,
- currentValue = tween ?
- function() { return tween.cur(); } :
- function() { return jQuery.css( elem, prop, "" ); },
- initial = currentValue(),
- unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
- rcssNum.exec( jQuery.css( elem, prop ) );
-
- if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
- // Trust units reported by jQuery.css
- unit = unit || initialInUnit[ 3 ];
-
- // Make sure we update the tween properties later on
- valueParts = valueParts || [];
-
- // Iteratively approximate from a nonzero starting point
- initialInUnit = +initial || 1;
-
- do {
-
- // If previous iteration zeroed out, double until we get *something*.
- // Use string for doubling so we don't accidentally see scale as unchanged below
- scale = scale || ".5";
-
- // Adjust and apply
- initialInUnit = initialInUnit / scale;
- jQuery.style( elem, prop, initialInUnit + unit );
-
- // Update scale, tolerating zero or NaN from tween.cur()
- // Break the loop if scale is unchanged or perfect, or if we've just had enough.
- } while (
- scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
- );
- }
-
- if ( valueParts ) {
- initialInUnit = +initialInUnit || +initial || 0;
-
- // Apply relative offset (+=/-=) if specified
- adjusted = valueParts[ 1 ] ?
- initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
- +valueParts[ 2 ];
- if ( tween ) {
- tween.unit = unit;
- tween.start = initialInUnit;
- tween.end = adjusted;
- }
- }
- return adjusted;
-}
-var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-var rtagName = ( /<([\w:-]+)/ );
-
-var rscriptType = ( /^$|\/(?:java|ecma)script/i );
-
-
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
-
- // Support: IE9
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
-
- // XHTML parsers do not magically insert elements in the
- // same way that tag soup parsers do. So we cannot shorten
- // this by omitting <tbody> or other required elements.
- thead: [ 1, "<table>", "</table>" ],
- col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
- _default: [ 0, "", "" ]
-};
-
-// Support: IE9
-wrapMap.optgroup = wrapMap.option;
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-
-function getAll( context, tag ) {
-
- // Support: IE9-11+
- // Use typeof to avoid zero-argument method invocation on host objects (#15151)
- var ret = typeof context.getElementsByTagName !== "undefined" ?
- context.getElementsByTagName( tag || "*" ) :
- typeof context.querySelectorAll !== "undefined" ?
- context.querySelectorAll( tag || "*" ) :
- [];
-
- return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
- jQuery.merge( [ context ], ret ) :
- ret;
-}
-
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- dataPriv.set(
- elems[ i ],
- "globalEval",
- !refElements || dataPriv.get( refElements[ i ], "globalEval" )
- );
- }
-}
-
-
-var rhtml = /<|&#?\w+;/;
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
- var elem, tmp, tag, wrap, contains, j,
- fragment = context.createDocumentFragment(),
- nodes = [],
- i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( jQuery.type( elem ) === "object" ) {
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, tmp.childNodes );
-
- // Remember the top-level container
- tmp = fragment.firstChild;
-
- // Ensure the created nodes are orphaned (#12392)
- tmp.textContent = "";
- }
- }
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
-
- i = 0;
- while ( ( elem = nodes[ i++ ] ) ) {
-
- // Skip elements already in the context collection (trac-4087)
- if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
- if ( ignored ) {
- ignored.push( elem );
- }
- continue;
- }
-
- contains = jQuery.contains( elem.ownerDocument, elem );
-
- // Append to fragment
- tmp = getAll( fragment.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( contains ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( ( elem = tmp[ j++ ] ) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- return fragment;
-}
-
-
-( function() {
- var fragment = document.createDocumentFragment(),
- div = fragment.appendChild( document.createElement( "div" ) ),
- input = document.createElement( "input" );
-
- // Support: Android 4.0-4.3, Safari<=5.1
- // Check state lost if the name is set (#11217)
- // Support: Windows Web Apps (WWA)
- // `name` and `type` must use .setAttribute for WWA (#14901)
- input.setAttribute( "type", "radio" );
- input.setAttribute( "checked", "checked" );
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
-
- // Support: Safari<=5.1, Android<4.2
- // Older WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE<=11+
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- div.innerHTML = "<textarea>x</textarea>";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-} )();
-
-
-var
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-// Support: IE9
-// See #13393 for more info
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
-
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
-
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- on( elem, type, selector, data, types[ type ], one );
- }
- return elem;
- }
-
- if ( data == null && fn == null ) {
-
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
-
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
-
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return elem;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
-
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
-
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return elem.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- } );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
-
- var handleObjIn, eventHandle, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.get( elem );
-
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- if ( !elemData ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !( events = elemData.events ) ) {
- events = elemData.events = {};
- }
- if ( !( eventHandle = elemData.handle ) ) {
- eventHandle = elemData.handle = function( e ) {
-
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
- jQuery.event.dispatch.apply( elem, arguments ) : undefined;
- };
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend( {
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join( "." )
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !( handlers = events[ type ] ) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener if the special events handler returns false
- if ( !special.setup ||
- special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var j, origCount, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
- if ( !elemData || !( events = elemData.events ) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[ 2 ] &&
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector ||
- selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown ||
- special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove data and the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- dataPriv.remove( elem, "handle events" );
- }
- },
-
- dispatch: function( event ) {
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( event );
-
- var i, j, ret, matched, handleObj,
- handlerQueue = [],
- args = slice.call( arguments ),
- handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[ 0 ] = event;
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( ( handleObj = matched.handlers[ j++ ] ) &&
- !event.isImmediatePropagationStopped() ) {
-
- // Triggered event must either 1) have no namespace, or 2) have namespace(s)
- // a subset or equal to those in the bound event (both can have no namespace).
- if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
- handleObj.handler ).apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( ( event.result = ret ) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, matches, sel, handleObj,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Support (at least): Chrome, IE9
- // Find delegate handlers
- // Black-hole SVG <use> instance trees (#13180)
- //
- // Support: Firefox<=42+
- // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
- if ( delegateCount && cur.nodeType &&
- ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
-
- for ( ; cur !== this; cur = cur.parentNode || this ) {
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) {
- matches = [];
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matches[ sel ] === undefined ) {
- matches[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) > -1 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matches[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push( { elem: cur, handlers: matches } );
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( delegateCount < handlers.length ) {
- handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );
- }
-
- return handlerQueue;
- },
-
- // Includes some event props shared by KeyEvent and MouseEvent
- props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
- "metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
-
- fixHooks: {},
-
- keyHooks: {
- props: "char charCode key keyCode".split( " " ),
- filter: function( event, original ) {
-
- // Add which for key events
- if ( event.which == null ) {
- event.which = original.charCode != null ? original.charCode : original.keyCode;
- }
-
- return event;
- }
- },
-
- mouseHooks: {
- props: ( "button buttons clientX clientY offsetX offsetY pageX pageY " +
- "screenX screenY toElement" ).split( " " ),
- filter: function( event, original ) {
- var eventDoc, doc, body,
- button = original.button;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && original.clientX != null ) {
- eventDoc = event.target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
-
- event.pageX = original.clientX +
- ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) -
- ( doc && doc.clientLeft || body && body.clientLeft || 0 );
- event.pageY = original.clientY +
- ( doc && doc.scrollTop || body && body.scrollTop || 0 ) -
- ( doc && doc.clientTop || body && body.clientTop || 0 );
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && button !== undefined ) {
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event;
- }
- },
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // Create a writable copy of the event object and normalize some properties
- var i, prop, copy,
- type = event.type,
- originalEvent = event,
- fixHook = this.fixHooks[ type ];
-
- if ( !fixHook ) {
- this.fixHooks[ type ] = fixHook =
- rmouseEvent.test( type ) ? this.mouseHooks :
- rkeyEvent.test( type ) ? this.keyHooks :
- {};
- }
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
- event = new jQuery.Event( originalEvent );
-
- i = copy.length;
- while ( i-- ) {
- prop = copy[ i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Support: Cordova 2.5 (WebKit) (#13255)
- // All events should have a target; Cordova deviceready doesn't
- if ( !event.target ) {
- event.target = document;
- }
-
- // Support: Safari 6.0+, Chrome<28
- // Target should not be a text node (#504, #13143)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
- },
-
- special: {
- load: {
-
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- focus: {
-
- // Fire native event if possible so blur/focus sequence is correct
- trigger: function() {
- if ( this !== safeActiveElement() && this.focus ) {
- this.focus();
- return false;
- }
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if ( this === safeActiveElement() && this.blur ) {
- this.blur();
- return false;
- }
- },
- delegateType: "focusout"
- },
- click: {
-
- // For checkbox, fire native event so checked state will be right
- trigger: function() {
- if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
- this.click();
- return false;
- }
- },
-
- // For cross-browser consistency, don't fire native .click() on links
- _default: function( event ) {
- return jQuery.nodeName( event.target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- }
-};
-
-jQuery.removeEvent = function( elem, type, handle ) {
-
- // This "if" is needed for plain objects
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle );
- }
-};
-
-jQuery.Event = function( src, props ) {
-
- // Allow instantiation without the 'new' keyword
- if ( !( this instanceof jQuery.Event ) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
-
- // Support: Android<4.0
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- constructor: jQuery.Event,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
- isSimulated: false,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.preventDefault();
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopPropagation();
- }
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://code.google.com/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mouseenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-} );
-
-jQuery.fn.extend( {
- on: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn );
- },
- one: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
-
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ?
- handleObj.origType + "." + handleObj.namespace :
- handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
-
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
-
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each( function() {
- jQuery.event.remove( this, types, fn, selector );
- } );
- }
-} );
-
-
-var
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
-
- // Support: IE 10-11, Edge 10240+
- // In IE/Edge using regex groups here causes severe slowdowns.
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
- rnoInnerhtml = /<script|<style|<link/i,
-
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptTypeMasked = /^true\/(.*)/,
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
-// Manipulating tables requires a tbody
-function manipulationTarget( elem, content ) {
- return jQuery.nodeName( elem, "table" ) &&
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
-
- elem.getElementsByTagName( "tbody" )[ 0 ] ||
- elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
- elem;
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
- elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
- return elem;
-}
-function restoreScript( elem ) {
- var match = rscriptTypeMasked.exec( elem.type );
-
- if ( match ) {
- elem.type = match[ 1 ];
- } else {
- elem.removeAttribute( "type" );
- }
-
- return elem;
-}
-
-function cloneCopyEvent( src, dest ) {
- var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
-
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- // 1. Copy private data: events, handlers, etc.
- if ( dataPriv.hasData( src ) ) {
- pdataOld = dataPriv.access( src );
- pdataCur = dataPriv.set( dest, pdataOld );
- events = pdataOld.events;
-
- if ( events ) {
- delete pdataCur.handle;
- pdataCur.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
- }
-
- // 2. Copy user data
- if ( dataUser.hasData( src ) ) {
- udataOld = dataUser.access( src );
- udataCur = jQuery.extend( {}, udataOld );
-
- dataUser.set( dest, udataCur );
- }
-}
-
-// Fix IE bugs, see support tests
-function fixInput( src, dest ) {
- var nodeName = dest.nodeName.toLowerCase();
-
- // Fails to persist the checked state of a cloned checkbox or radio button.
- if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
- dest.checked = src.checked;
-
- // Fails to return the selected option to the default selected state when cloning options
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-}
-
-function domManip( collection, args, callback, ignored ) {
-
- // Flatten any nested arrays
- args = concat.apply( [], args );
-
- var fragment, first, scripts, hasScripts, node, doc,
- i = 0,
- l = collection.length,
- iNoClone = l - 1,
- value = args[ 0 ],
- isFunction = jQuery.isFunction( value );
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( isFunction ||
- ( l > 1 && typeof value === "string" &&
- !support.checkClone && rchecked.test( value ) ) ) {
- return collection.each( function( index ) {
- var self = collection.eq( index );
- if ( isFunction ) {
- args[ 0 ] = value.call( this, index, self.html() );
- }
- domManip( self, args, callback, ignored );
- } );
- }
-
- if ( l ) {
- fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
- first = fragment.firstChild;
-
- if ( fragment.childNodes.length === 1 ) {
- fragment = first;
- }
-
- // Require either new content or an interest in ignored elements to invoke the callback
- if ( first || ignored ) {
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
- hasScripts = scripts.length;
-
- // Use the original fragment for the last item
- // instead of the first because it can end up
- // being emptied incorrectly in certain situations (#8070).
- for ( ; i < l; i++ ) {
- node = fragment;
-
- if ( i !== iNoClone ) {
- node = jQuery.clone( node, true, true );
-
- // Keep references to cloned scripts for later restoration
- if ( hasScripts ) {
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( scripts, getAll( node, "script" ) );
- }
- }
-
- callback.call( collection[ i ], node, i );
- }
-
- if ( hasScripts ) {
- doc = scripts[ scripts.length - 1 ].ownerDocument;
-
- // Reenable scripts
- jQuery.map( scripts, restoreScript );
-
- // Evaluate executable scripts on first document insertion
- for ( i = 0; i < hasScripts; i++ ) {
- node = scripts[ i ];
- if ( rscriptType.test( node.type || "" ) &&
- !dataPriv.access( node, "globalEval" ) &&
- jQuery.contains( doc, node ) ) {
-
- if ( node.src ) {
-
- // Optional AJAX dependency, but won't run scripts if not present
- if ( jQuery._evalUrl ) {
- jQuery._evalUrl( node.src );
- }
- } else {
- jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
- }
- }
- }
- }
- }
- }
-
- return collection;
-}
-
-function remove( elem, selector, keepData ) {
- var node,
- nodes = selector ? jQuery.filter( selector, elem ) : elem,
- i = 0;
-
- for ( ; ( node = nodes[ i ] ) != null; i++ ) {
- if ( !keepData && node.nodeType === 1 ) {
- jQuery.cleanData( getAll( node ) );
- }
-
- if ( node.parentNode ) {
- if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
- setGlobalEval( getAll( node, "script" ) );
- }
- node.parentNode.removeChild( node );
- }
- }
-
- return elem;
-}
-
-jQuery.extend( {
- htmlPrefilter: function( html ) {
- return html.replace( rxhtmlTag, "<$1></$2>" );
- },
-
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var i, l, srcElements, destElements,
- clone = elem.cloneNode( true ),
- inPage = jQuery.contains( elem.ownerDocument, elem );
-
- // Fix IE cloning issues
- if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
- !jQuery.isXMLDoc( elem ) ) {
-
- // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
- destElements = getAll( clone );
- srcElements = getAll( elem );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- fixInput( srcElements[ i ], destElements[ i ] );
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- if ( deepDataAndEvents ) {
- srcElements = srcElements || getAll( elem );
- destElements = destElements || getAll( clone );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- cloneCopyEvent( srcElements[ i ], destElements[ i ] );
- }
- } else {
- cloneCopyEvent( elem, clone );
- }
- }
-
- // Preserve script evaluation history
- destElements = getAll( clone, "script" );
- if ( destElements.length > 0 ) {
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
- }
-
- // Return the cloned set
- return clone;
- },
-
- cleanData: function( elems ) {
- var data, elem, type,
- special = jQuery.event.special,
- i = 0;
-
- for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
- if ( acceptData( elem ) ) {
- if ( ( data = elem[ dataPriv.expando ] ) ) {
- if ( data.events ) {
- for ( type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
-
- // Support: Chrome <= 35-45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataPriv.expando ] = undefined;
- }
- if ( elem[ dataUser.expando ] ) {
-
- // Support: Chrome <= 35-45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataUser.expando ] = undefined;
- }
- }
- }
- }
-} );
-
-jQuery.fn.extend( {
-
- // Keep domManip exposed until 3.0 (gh-2225)
- domManip: domManip,
-
- detach: function( selector ) {
- return remove( this, selector, true );
- },
-
- remove: function( selector ) {
- return remove( this, selector );
- },
-
- text: function( value ) {
- return access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().each( function() {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- this.textContent = value;
- }
- } );
- }, null, value, arguments.length );
- },
-
- append: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.appendChild( elem );
- }
- } );
- },
-
- prepend: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.insertBefore( elem, target.firstChild );
- }
- } );
- },
-
- before: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this );
- }
- } );
- },
-
- after: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- }
- } );
- },
-
- empty: function() {
- var elem,
- i = 0;
-
- for ( ; ( elem = this[ i ] ) != null; i++ ) {
- if ( elem.nodeType === 1 ) {
-
- // Prevent memory leaks
- jQuery.cleanData( getAll( elem, false ) );
-
- // Remove any remaining nodes
- elem.textContent = "";
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function() {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- } );
- },
-
- html: function( value ) {
- return access( this, function( value ) {
- var elem = this[ 0 ] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined && elem.nodeType === 1 ) {
- return elem.innerHTML;
- }
-
- // See if we can take a shortcut and just use innerHTML
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
- value = jQuery.htmlPrefilter( value );
-
- try {
- for ( ; i < l; i++ ) {
- elem = this[ i ] || {};
-
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch ( e ) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function() {
- var ignored = [];
-
- // Make the changes, replacing each non-ignored context element with the new content
- return domManip( this, arguments, function( elem ) {
- var parent = this.parentNode;
-
- if ( jQuery.inArray( this, ignored ) < 0 ) {
- jQuery.cleanData( getAll( this ) );
- if ( parent ) {
- parent.replaceChild( elem, this );
- }
- }
-
- // Force callback invocation
- }, ignored );
- }
-} );
-
-jQuery.each( {
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var elems,
- ret = [],
- insert = jQuery( selector ),
- last = insert.length - 1,
- i = 0;
-
- for ( ; i <= last; i++ ) {
- elems = i === last ? this : this.clone( true );
- jQuery( insert[ i ] )[ original ]( elems );
-
- // Support: QtWebKit
- // .get() because push.apply(_, arraylike) throws
- push.apply( ret, elems.get() );
- }
-
- return this.pushStack( ret );
- };
-} );
-
-
-var iframe,
- elemdisplay = {
-
- // Support: Firefox
- // We have to pre-define these values for FF (#10227)
- HTML: "block",
- BODY: "block"
- };
-
-/**
- * Retrieve the actual display of a element
- * @param {String} name nodeName of the element
- * @param {Object} doc Document object
- */
-
-// Called only from within defaultDisplay
-function actualDisplay( name, doc ) {
- var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
-
- display = jQuery.css( elem[ 0 ], "display" );
-
- // We don't have any data stored on the element,
- // so use "detach" method as fast way to get rid of the element
- elem.detach();
-
- return display;
-}
-
-/**
- * Try to determine the default display value of an element
- * @param {String} nodeName
- */
-function defaultDisplay( nodeName ) {
- var doc = document,
- display = elemdisplay[ nodeName ];
-
- if ( !display ) {
- display = actualDisplay( nodeName, doc );
-
- // If the simple way fails, read from inside an iframe
- if ( display === "none" || !display ) {
-
- // Use the already-created iframe if possible
- iframe = ( iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" ) )
- .appendTo( doc.documentElement );
-
- // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
- doc = iframe[ 0 ].contentDocument;
-
- // Support: IE
- doc.write();
- doc.close();
-
- display = actualDisplay( nodeName, doc );
- iframe.detach();
- }
-
- // Store the correct default display
- elemdisplay[ nodeName ] = display;
- }
-
- return display;
-}
-var rmargin = ( /^margin/ );
-
-var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-
-var getStyles = function( elem ) {
-
- // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
- // IE throws on elements created in popups
- // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
- var view = elem.ownerDocument.defaultView;
-
- if ( !view || !view.opener ) {
- view = window;
- }
-
- return view.getComputedStyle( elem );
- };
-
-var swap = function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
-};
-
-
-var documentElement = document.documentElement;
-
-
-
-( function() {
- var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
- container = document.createElement( "div" ),
- div = document.createElement( "div" );
-
- // Finish early in limited (non-browser) environments
- if ( !div.style ) {
- return;
- }
-
- // Support: IE9-11+
- // Style of cloned element affects source element cloned (#8908)
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
- "padding:0;margin-top:1px;position:absolute";
- container.appendChild( div );
-
- // Executing both pixelPosition & boxSizingReliable tests require only one layout
- // so they're executed at the same time to save the second computation.
- function computeStyleTests() {
- div.style.cssText =
-
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;" +
- "position:relative;display:block;" +
- "margin:auto;border:1px;padding:1px;" +
- "top:1%;width:50%";
- div.innerHTML = "";
- documentElement.appendChild( container );
-
- var divStyle = window.getComputedStyle( div );
- pixelPositionVal = divStyle.top !== "1%";
- reliableMarginLeftVal = divStyle.marginLeft === "2px";
- boxSizingReliableVal = divStyle.width === "4px";
-
- // Support: Android 4.0 - 4.3 only
- // Some styles come back with percentage values, even though they shouldn't
- div.style.marginRight = "50%";
- pixelMarginRightVal = divStyle.marginRight === "4px";
-
- documentElement.removeChild( container );
- }
-
- jQuery.extend( support, {
- pixelPosition: function() {
-
- // This test is executed only once but we still do memoizing
- // since we can use the boxSizingReliable pre-computing.
- // No need to check if the test was already performed, though.
- computeStyleTests();
- return pixelPositionVal;
- },
- boxSizingReliable: function() {
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return boxSizingReliableVal;
- },
- pixelMarginRight: function() {
-
- // Support: Android 4.0-4.3
- // We're checking for boxSizingReliableVal here instead of pixelMarginRightVal
- // since that compresses better and they're computed together anyway.
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return pixelMarginRightVal;
- },
- reliableMarginLeft: function() {
-
- // Support: IE <=8 only, Android 4.0 - 4.3 only, Firefox <=3 - 37
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return reliableMarginLeftVal;
- },
- reliableMarginRight: function() {
-
- // Support: Android 2.3
- // Check if div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container. (#3333)
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- // This support function is only executed once so no memoizing is needed.
- var ret,
- marginDiv = div.appendChild( document.createElement( "div" ) );
-
- // Reset CSS: box-sizing; display; margin; border; padding
- marginDiv.style.cssText = div.style.cssText =
-
- // Support: Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:content-box;box-sizing:content-box;" +
- "display:block;margin:0;border:0;padding:0";
- marginDiv.style.marginRight = marginDiv.style.width = "0";
- div.style.width = "1px";
- documentElement.appendChild( container );
-
- ret = !parseFloat( window.getComputedStyle( marginDiv ).marginRight );
-
- documentElement.removeChild( container );
- div.removeChild( marginDiv );
-
- return ret;
- }
- } );
-} )();
-
-
-function curCSS( elem, name, computed ) {
- var width, minWidth, maxWidth, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
- ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
-
- // Support: Opera 12.1x only
- // Fall back to style even without computed
- // computed is undefined for elems on document fragments
- if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) {
- ret = jQuery.style( elem, name );
- }
-
- // Support: IE9
- // getPropertyValue is only needed for .css('filter') (#12537)
- if ( computed ) {
-
- // A tribute to the "awesome hack by Dean Edwards"
- // Android Browser returns percentage for some values,
- // but width seems to be reliably pixels.
- // This is against the CSSOM draft spec:
- // http://dev.w3.org/csswg/cssom/#resolved-values
- if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
- // Remember the original values
- width = style.width;
- minWidth = style.minWidth;
- maxWidth = style.maxWidth;
-
- // Put in the new values to get a computed value out
- style.minWidth = style.maxWidth = style.width = ret;
- ret = computed.width;
-
- // Revert the changed values
- style.width = width;
- style.minWidth = minWidth;
- style.maxWidth = maxWidth;
- }
- }
-
- return ret !== undefined ?
-
- // Support: IE9-11+
- // IE returns zIndex value as an integer.
- ret + "" :
- ret;
-}
-
-
-function addGetHookIf( conditionFn, hookFn ) {
-
- // Define the hook, we'll check on the first run if it's really needed.
- return {
- get: function() {
- if ( conditionFn() ) {
-
- // Hook not needed (or it's not possible to use it due
- // to missing dependency), remove it.
- delete this.get;
- return;
- }
-
- // Hook needed; redefine it so that the support test is not executed again.
- return ( this.get = hookFn ).apply( this, arguments );
- }
- };
-}
-
-
-var
-
- // Swappable if display is none or starts with table
- // except "table", "table-cell", or "table-caption"
- // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssNormalTransform = {
- letterSpacing: "0",
- fontWeight: "400"
- },
-
- cssPrefixes = [ "Webkit", "O", "Moz", "ms" ],
- emptyStyle = document.createElement( "div" ).style;
-
-// Return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( name ) {
-
- // Shortcut for names that are not vendor prefixed
- if ( name in emptyStyle ) {
- return name;
- }
-
- // Check for vendor prefixed names
- var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
- i = cssPrefixes.length;
-
- while ( i-- ) {
- name = cssPrefixes[ i ] + capName;
- if ( name in emptyStyle ) {
- return name;
- }
- }
-}
-
-function setPositiveNumber( elem, value, subtract ) {
-
- // Any relative (+/-) values have already been
- // normalized at this point
- var matches = rcssNum.exec( value );
- return matches ?
-
- // Guard against undefined "subtract", e.g., when used as in cssHooks
- Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
- value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
-
- // If we already have the right measurement, avoid augmentation
- 4 :
-
- // Otherwise initialize for horizontal or vertical properties
- name === "width" ? 1 : 0,
-
- val = 0;
-
- for ( ; i < 4; i += 2 ) {
-
- // Both box models exclude margin, so add it if we want it
- if ( extra === "margin" ) {
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
- }
-
- if ( isBorderBox ) {
-
- // border-box includes padding, so remove it if we want content
- if ( extra === "content" ) {
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
- }
-
- // At this point, extra isn't border nor margin, so remove border
- if ( extra !== "margin" ) {
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- } else {
-
- // At this point, extra isn't content, so add padding
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
- // At this point, extra isn't content nor padding, so add border
- if ( extra !== "padding" ) {
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- }
- }
-
- return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property, which is equivalent to the border-box value
- var valueIsBorderBox = true,
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
- styles = getStyles( elem ),
- isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
- // Some non-html elements return undefined for offsetWidth, so check for null/undefined
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
- if ( val <= 0 || val == null ) {
-
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name, styles );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test( val ) ) {
- return val;
- }
-
- // Check for style in case a browser which returns unreliable values
- // for getComputedStyle silently falls back to the reliable elem.style
- valueIsBorderBox = isBorderBox &&
- ( support.boxSizingReliable() || val === elem.style[ name ] );
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
- }
-
- // Use the active box-sizing model to add/subtract irrelevant styles
- return ( val +
- augmentWidthOrHeight(
- elem,
- name,
- extra || ( isBorderBox ? "border" : "content" ),
- valueIsBorderBox,
- styles
- )
- ) + "px";
-}
-
-function showHide( elements, show ) {
- var display, elem, hidden,
- values = [],
- index = 0,
- length = elements.length;
-
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- values[ index ] = dataPriv.get( elem, "olddisplay" );
- display = elem.style.display;
- if ( show ) {
-
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !values[ index ] && display === "none" ) {
- elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( elem.style.display === "" && isHidden( elem ) ) {
- values[ index ] = dataPriv.access(
- elem,
- "olddisplay",
- defaultDisplay( elem.nodeName )
- );
- }
- } else {
- hidden = isHidden( elem );
-
- if ( display !== "none" || !hidden ) {
- dataPriv.set(
- elem,
- "olddisplay",
- hidden ? display : jQuery.css( elem, "display" )
- );
- }
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( index = 0; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
- if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
- elem.style.display = show ? values[ index ] || "" : "none";
- }
- }
-
- return elements;
-}
-
-jQuery.extend( {
-
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
-
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
- }
- }
- }
- },
-
- // Don't automatically add "px" to these possibly-unitless properties
- cssNumber: {
- "animationIterationCount": true,
- "columnCount": true,
- "fillOpacity": true,
- "flexGrow": true,
- "flexShrink": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "order": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- "float": "cssFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
-
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, hooks,
- origName = jQuery.camelCase( name ),
- style = elem.style;
-
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Gets hook for the prefixed version, then unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // Convert "+=" or "-=" to relative numbers (#7345)
- if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
- value = adjustCSS( elem, name, ret );
-
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that null and NaN values aren't set (#7116)
- if ( value == null || value !== value ) {
- return;
- }
-
- // If a number was passed in, add the unit (except for certain CSS properties)
- if ( type === "number" ) {
- value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
- }
-
- // Support: IE9-11+
- // background-* props affect original clone's values
- if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
- style[ name ] = "inherit";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !( "set" in hooks ) ||
- ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
-
- style[ name ] = value;
- }
-
- } else {
-
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks &&
- ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
-
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra, styles ) {
- var val, num, hooks,
- origName = jQuery.camelCase( name );
-
- // Make sure that we're working with the right name
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Try prefixed name followed by the unprefixed name
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks ) {
- val = hooks.get( elem, true, extra );
- }
-
- // Otherwise, if a way to get the computed value exists, use that
- if ( val === undefined ) {
- val = curCSS( elem, name, styles );
- }
-
- // Convert "normal" to computed value
- if ( val === "normal" && name in cssNormalTransform ) {
- val = cssNormalTransform[ name ];
- }
-
- // Make numeric if forced or a qualifier was provided and val looks numeric
- if ( extra === "" || extra ) {
- num = parseFloat( val );
- return extra === true || isFinite( num ) ? num || 0 : val;
- }
- return val;
- }
-} );
-
-jQuery.each( [ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
-
- // Certain elements can have dimension info if we invisibly show them
- // but it must have a current display style that would benefit
- return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
- elem.offsetWidth === 0 ?
- swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- } ) :
- getWidthOrHeight( elem, name, extra );
- }
- },
-
- set: function( elem, value, extra ) {
- var matches,
- styles = extra && getStyles( elem ),
- subtract = extra && augmentWidthOrHeight(
- elem,
- name,
- extra,
- jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
- styles
- );
-
- // Convert to pixels if value adjustment is needed
- if ( subtract && ( matches = rcssNum.exec( value ) ) &&
- ( matches[ 3 ] || "px" ) !== "px" ) {
-
- elem.style[ name ] = value;
- value = jQuery.css( elem, name );
- }
-
- return setPositiveNumber( elem, value, subtract );
- }
- };
-} );
-
-jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
- function( elem, computed ) {
- if ( computed ) {
- return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
- elem.getBoundingClientRect().left -
- swap( elem, { marginLeft: 0 }, function() {
- return elem.getBoundingClientRect().left;
- } )
- ) + "px";
- }
- }
-);
-
-// Support: Android 2.3
-jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
- function( elem, computed ) {
- if ( computed ) {
- return swap( elem, { "display": "inline-block" },
- curCSS, [ elem, "marginRight" ] );
- }
- }
-);
-
-// These hooks are used by animate to expand properties
-jQuery.each( {
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i = 0,
- expanded = {},
-
- // Assumes a single number if not a string
- parts = typeof value === "string" ? value.split( " " ) : [ value ];
-
- for ( ; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-
- if ( !rmargin.test( prefix ) ) {
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
- }
-} );
-
-jQuery.fn.extend( {
- css: function( name, value ) {
- return access( this, function( elem, name, value ) {
- var styles, len,
- map = {},
- i = 0;
-
- if ( jQuery.isArray( name ) ) {
- styles = getStyles( elem );
- len = name.length;
-
- for ( ; i < len; i++ ) {
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
- }
-
- return map;
- }
-
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
- },
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each( function() {
- if ( isHidden( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- } );
- }
-} );
-
-
-function Tween( elem, options, prop, end, easing ) {
- return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
- constructor: Tween,
- init: function( elem, options, prop, end, easing, unit ) {
- this.elem = elem;
- this.prop = prop;
- this.easing = easing || jQuery.easing._default;
- this.options = options;
- this.start = this.now = this.cur();
- this.end = end;
- this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
- },
- cur: function() {
- var hooks = Tween.propHooks[ this.prop ];
-
- return hooks && hooks.get ?
- hooks.get( this ) :
- Tween.propHooks._default.get( this );
- },
- run: function( percent ) {
- var eased,
- hooks = Tween.propHooks[ this.prop ];
-
- if ( this.options.duration ) {
- this.pos = eased = jQuery.easing[ this.easing ](
- percent, this.options.duration * percent, 0, 1, this.options.duration
- );
- } else {
- this.pos = eased = percent;
- }
- this.now = ( this.end - this.start ) * eased + this.start;
-
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- if ( hooks && hooks.set ) {
- hooks.set( this );
- } else {
- Tween.propHooks._default.set( this );
- }
- return this;
- }
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
- _default: {
- get: function( tween ) {
- var result;
-
- // Use a property on the element directly when it is not a DOM element,
- // or when there is no matching style property that exists.
- if ( tween.elem.nodeType !== 1 ||
- tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
- return tween.elem[ tween.prop ];
- }
-
- // Passing an empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails.
- // Simple values such as "10px" are parsed to Float;
- // complex values such as "rotate(1rad)" are returned as-is.
- result = jQuery.css( tween.elem, tween.prop, "" );
-
- // Empty strings, null, undefined and "auto" are converted to 0.
- return !result || result === "auto" ? 0 : result;
- },
- set: function( tween ) {
-
- // Use step hook for back compat.
- // Use cssHook if its there.
- // Use .style if available and use plain properties where available.
- if ( jQuery.fx.step[ tween.prop ] ) {
- jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.nodeType === 1 &&
- ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
- jQuery.cssHooks[ tween.prop ] ) ) {
- jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
- } else {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
- }
-};
-
-// Support: IE9
-// Panic based approach to setting things on disconnected nodes
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
- set: function( tween ) {
- if ( tween.elem.nodeType && tween.elem.parentNode ) {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
-};
-
-jQuery.easing = {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return 0.5 - Math.cos( p * Math.PI ) / 2;
- },
- _default: "swing"
-};
-
-jQuery.fx = Tween.prototype.init;
-
-// Back Compat <1.8 extension point
-jQuery.fx.step = {};
-
-
-
-
-var
- fxNow, timerId,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rrun = /queueHooks$/;
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- window.setTimeout( function() {
- fxNow = undefined;
- } );
- return ( fxNow = jQuery.now() );
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
- var which,
- i = 0,
- attrs = { height: type };
-
- // If we include width, step value is 1 to do all cssExpand values,
- // otherwise step value is 2 to skip over Left and Right
- includeWidth = includeWidth ? 1 : 0;
- for ( ; i < 4 ; i += 2 - includeWidth ) {
- which = cssExpand[ i ];
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
- }
-
- if ( includeWidth ) {
- attrs.opacity = attrs.width = type;
- }
-
- return attrs;
-}
-
-function createTween( value, prop, animation ) {
- var tween,
- collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
- index = 0,
- length = collection.length;
- for ( ; index < length; index++ ) {
- if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
-
- // We're done with this property
- return tween;
- }
- }
-}
-
-function defaultPrefilter( elem, props, opts ) {
- /* jshint validthis: true */
- var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
- anim = this,
- orig = {},
- style = elem.style,
- hidden = elem.nodeType && isHidden( elem ),
- dataShow = dataPriv.get( elem, "fxshow" );
-
- // Handle queue: false promises
- if ( !opts.queue ) {
- hooks = jQuery._queueHooks( elem, "fx" );
- if ( hooks.unqueued == null ) {
- hooks.unqueued = 0;
- oldfire = hooks.empty.fire;
- hooks.empty.fire = function() {
- if ( !hooks.unqueued ) {
- oldfire();
- }
- };
- }
- hooks.unqueued++;
-
- anim.always( function() {
-
- // Ensure the complete handler is called before this completes
- anim.always( function() {
- hooks.unqueued--;
- if ( !jQuery.queue( elem, "fx" ).length ) {
- hooks.empty.fire();
- }
- } );
- } );
- }
-
- // Height/width overflow pass
- if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
-
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE9-10 do not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height animated
- display = jQuery.css( elem, "display" );
-
- // Test default display if display is currently "none"
- checkDisplay = display === "none" ?
- dataPriv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
-
- if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
- style.display = "inline-block";
- }
- }
-
- if ( opts.overflow ) {
- style.overflow = "hidden";
- anim.always( function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- } );
- }
-
- // show/hide pass
- for ( prop in props ) {
- value = props[ prop ];
- if ( rfxtypes.exec( value ) ) {
- delete props[ prop ];
- toggle = toggle || value === "toggle";
- if ( value === ( hidden ? "hide" : "show" ) ) {
-
- // If there is dataShow left over from a stopped hide or show
- // and we are going to proceed with show, we should pretend to be hidden
- if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
- hidden = true;
- } else {
- continue;
- }
- }
- orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
-
- // Any non-fx value stops us from restoring the original display value
- } else {
- display = undefined;
- }
- }
-
- if ( !jQuery.isEmptyObject( orig ) ) {
- if ( dataShow ) {
- if ( "hidden" in dataShow ) {
- hidden = dataShow.hidden;
- }
- } else {
- dataShow = dataPriv.access( elem, "fxshow", {} );
- }
-
- // Store state if its toggle - enables .stop().toggle() to "reverse"
- if ( toggle ) {
- dataShow.hidden = !hidden;
- }
- if ( hidden ) {
- jQuery( elem ).show();
- } else {
- anim.done( function() {
- jQuery( elem ).hide();
- } );
- }
- anim.done( function() {
- var prop;
-
- dataPriv.remove( elem, "fxshow" );
- for ( prop in orig ) {
- jQuery.style( elem, prop, orig[ prop ] );
- }
- } );
- for ( prop in orig ) {
- tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
-
- if ( !( prop in dataShow ) ) {
- dataShow[ prop ] = tween.start;
- if ( hidden ) {
- tween.end = tween.start;
- tween.start = prop === "width" || prop === "height" ? 1 : 0;
- }
- }
- }
-
- // If this is a noop like .hide().hide(), restore an overwritten display value
- } else if ( ( display === "none" ? defaultDisplay( elem.nodeName ) : display ) === "inline" ) {
- style.display = display;
- }
-}
-
-function propFilter( props, specialEasing ) {
- var index, name, easing, value, hooks;
-
- // camelCase, specialEasing and expand cssHook pass
- for ( index in props ) {
- name = jQuery.camelCase( index );
- easing = specialEasing[ name ];
- value = props[ index ];
- if ( jQuery.isArray( value ) ) {
- easing = value[ 1 ];
- value = props[ index ] = value[ 0 ];
- }
-
- if ( index !== name ) {
- props[ name ] = value;
- delete props[ index ];
- }
-
- hooks = jQuery.cssHooks[ name ];
- if ( hooks && "expand" in hooks ) {
- value = hooks.expand( value );
- delete props[ name ];
-
- // Not quite $.extend, this won't overwrite existing keys.
- // Reusing 'index' because we have the correct "name"
- for ( index in value ) {
- if ( !( index in props ) ) {
- props[ index ] = value[ index ];
- specialEasing[ index ] = easing;
- }
- }
- } else {
- specialEasing[ name ] = easing;
- }
- }
-}
-
-function Animation( elem, properties, options ) {
- var result,
- stopped,
- index = 0,
- length = Animation.prefilters.length,
- deferred = jQuery.Deferred().always( function() {
-
- // Don't match elem in the :animated selector
- delete tick.elem;
- } ),
- tick = function() {
- if ( stopped ) {
- return false;
- }
- var currentTime = fxNow || createFxNow(),
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
-
- // Support: Android 2.3
- // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
- temp = remaining / animation.duration || 0,
- percent = 1 - temp,
- index = 0,
- length = animation.tweens.length;
-
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( percent );
- }
-
- deferred.notifyWith( elem, [ animation, percent, remaining ] );
-
- if ( percent < 1 && length ) {
- return remaining;
- } else {
- deferred.resolveWith( elem, [ animation ] );
- return false;
- }
- },
- animation = deferred.promise( {
- elem: elem,
- props: jQuery.extend( {}, properties ),
- opts: jQuery.extend( true, {
- specialEasing: {},
- easing: jQuery.easing._default
- }, options ),
- originalProperties: properties,
- originalOptions: options,
- startTime: fxNow || createFxNow(),
- duration: options.duration,
- tweens: [],
- createTween: function( prop, end ) {
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
- animation.tweens.push( tween );
- return tween;
- },
- stop: function( gotoEnd ) {
- var index = 0,
-
- // If we are going to the end, we want to run all the tweens
- // otherwise we skip this part
- length = gotoEnd ? animation.tweens.length : 0;
- if ( stopped ) {
- return this;
- }
- stopped = true;
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( 1 );
- }
-
- // Resolve when we played the last frame; otherwise, reject
- if ( gotoEnd ) {
- deferred.notifyWith( elem, [ animation, 1, 0 ] );
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
- } else {
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
- }
- return this;
- }
- } ),
- props = animation.props;
-
- propFilter( props, animation.opts.specialEasing );
-
- for ( ; index < length ; index++ ) {
- result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
- if ( result ) {
- if ( jQuery.isFunction( result.stop ) ) {
- jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
- jQuery.proxy( result.stop, result );
- }
- return result;
- }
- }
-
- jQuery.map( props, createTween, animation );
-
- if ( jQuery.isFunction( animation.opts.start ) ) {
- animation.opts.start.call( elem, animation );
- }
-
- jQuery.fx.timer(
- jQuery.extend( tick, {
- elem: elem,
- anim: animation,
- queue: animation.opts.queue
- } )
- );
-
- // attach callbacks from options
- return animation.progress( animation.opts.progress )
- .done( animation.opts.done, animation.opts.complete )
- .fail( animation.opts.fail )
- .always( animation.opts.always );
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
- tweeners: {
- "*": [ function( prop, value ) {
- var tween = this.createTween( prop, value );
- adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
- return tween;
- } ]
- },
-
- tweener: function( props, callback ) {
- if ( jQuery.isFunction( props ) ) {
- callback = props;
- props = [ "*" ];
- } else {
- props = props.match( rnotwhite );
- }
-
- var prop,
- index = 0,
- length = props.length;
-
- for ( ; index < length ; index++ ) {
- prop = props[ index ];
- Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
- Animation.tweeners[ prop ].unshift( callback );
- }
- },
-
- prefilters: [ defaultPrefilter ],
-
- prefilter: function( callback, prepend ) {
- if ( prepend ) {
- Animation.prefilters.unshift( callback );
- } else {
- Animation.prefilters.push( callback );
- }
- }
-} );
-
-jQuery.speed = function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ?
- opt.duration : opt.duration in jQuery.fx.speeds ?
- jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
- // Normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function() {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- }
- };
-
- return opt;
-};
-
-jQuery.fn.extend( {
- fadeTo: function( speed, to, easing, callback ) {
-
- // Show any hidden elements after setting opacity to 0
- return this.filter( isHidden ).css( "opacity", 0 ).show()
-
- // Animate to the value specified
- .end().animate( { opacity: to }, speed, easing, callback );
- },
- animate: function( prop, speed, easing, callback ) {
- var empty = jQuery.isEmptyObject( prop ),
- optall = jQuery.speed( speed, easing, callback ),
- doAnimation = function() {
-
- // Operate on a copy of prop so per-property easing won't be lost
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
- // Empty animations, or finishing resolves immediately
- if ( empty || dataPriv.get( this, "finish" ) ) {
- anim.stop( true );
- }
- };
- doAnimation.finish = doAnimation;
-
- return empty || optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
- stop: function( type, clearQueue, gotoEnd ) {
- var stopQueue = function( hooks ) {
- var stop = hooks.stop;
- delete hooks.stop;
- stop( gotoEnd );
- };
-
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each( function() {
- var dequeue = true,
- index = type != null && type + "queueHooks",
- timers = jQuery.timers,
- data = dataPriv.get( this );
-
- if ( index ) {
- if ( data[ index ] && data[ index ].stop ) {
- stopQueue( data[ index ] );
- }
- } else {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
- stopQueue( data[ index ] );
- }
- }
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this &&
- ( type == null || timers[ index ].queue === type ) ) {
-
- timers[ index ].anim.stop( gotoEnd );
- dequeue = false;
- timers.splice( index, 1 );
- }
- }
-
- // Start the next in the queue if the last step wasn't forced.
- // Timers currently will call their complete callbacks, which
- // will dequeue but only if they were gotoEnd.
- if ( dequeue || !gotoEnd ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- finish: function( type ) {
- if ( type !== false ) {
- type = type || "fx";
- }
- return this.each( function() {
- var index,
- data = dataPriv.get( this ),
- queue = data[ type + "queue" ],
- hooks = data[ type + "queueHooks" ],
- timers = jQuery.timers,
- length = queue ? queue.length : 0;
-
- // Enable finishing flag on private data
- data.finish = true;
-
- // Empty the queue first
- jQuery.queue( this, type, [] );
-
- if ( hooks && hooks.stop ) {
- hooks.stop.call( this, true );
- }
-
- // Look for any active animations, and finish them
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
- timers[ index ].anim.stop( true );
- timers.splice( index, 1 );
- }
- }
-
- // Look for any animations in the old queue and finish them
- for ( index = 0; index < length; index++ ) {
- if ( queue[ index ] && queue[ index ].finish ) {
- queue[ index ].finish.call( this );
- }
- }
-
- // Turn off finishing flag
- delete data.finish;
- } );
- }
-} );
-
-jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
- var cssFn = jQuery.fn[ name ];
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return speed == null || typeof speed === "boolean" ?
- cssFn.apply( this, arguments ) :
- this.animate( genFx( name, true ), speed, easing, callback );
- };
-} );
-
-// Generate shortcuts for custom animations
-jQuery.each( {
- slideDown: genFx( "show" ),
- slideUp: genFx( "hide" ),
- slideToggle: genFx( "toggle" ),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-} );
-
-jQuery.timers = [];
-jQuery.fx.tick = function() {
- var timer,
- i = 0,
- timers = jQuery.timers;
-
- fxNow = jQuery.now();
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
-
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
- jQuery.timers.push( timer );
- if ( timer() ) {
- jQuery.fx.start();
- } else {
- jQuery.timers.pop();
- }
-};
-
-jQuery.fx.interval = 13;
-jQuery.fx.start = function() {
- if ( !timerId ) {
- timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
- }
-};
-
-jQuery.fx.stop = function() {
- window.clearInterval( timerId );
-
- timerId = null;
-};
-
-jQuery.fx.speeds = {
- slow: 600,
- fast: 200,
-
- // Default speed
- _default: 400
-};
-
-
-// Based off of the plugin by Clint Helfers, with permission.
-// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
-jQuery.fn.delay = function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = window.setTimeout( next, time );
- hooks.stop = function() {
- window.clearTimeout( timeout );
- };
- } );
-};
-
-
-( function() {
- var input = document.createElement( "input" ),
- select = document.createElement( "select" ),
- opt = select.appendChild( document.createElement( "option" ) );
-
- input.type = "checkbox";
-
- // Support: iOS<=5.1, Android<=4.2+
- // Default value for a checkbox should be "on"
- support.checkOn = input.value !== "";
-
- // Support: IE<=11+
- // Must access selectedIndex to make default options select
- support.optSelected = opt.selected;
-
- // Support: Android<=2.3
- // Options inside disabled selects are incorrectly marked as disabled
- select.disabled = true;
- support.optDisabled = !opt.disabled;
-
- // Support: IE<=11+
- // An input loses its value after becoming a radio
- input = document.createElement( "input" );
- input.value = "t";
- input.type = "radio";
- support.radioValue = input.value === "t";
-} )();
-
-
-var boolHook,
- attrHandle = jQuery.expr.attrHandle;
-
-jQuery.fn.extend( {
- attr: function( name, value ) {
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each( function() {
- jQuery.removeAttr( this, name );
- } );
- }
-} );
-
-jQuery.extend( {
- attr: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set attributes on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === "undefined" ) {
- return jQuery.prop( elem, name, value );
- }
-
- // All attributes are lowercase
- // Grab necessary hook if one is defined
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
- name = name.toLowerCase();
- hooks = jQuery.attrHooks[ name ] ||
- ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
- }
-
- if ( value !== undefined ) {
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
- return;
- }
-
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- elem.setAttribute( name, value + "" );
- return value;
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- ret = jQuery.find.attr( elem, name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret == null ? undefined : ret;
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- if ( !support.radioValue && value === "radio" &&
- jQuery.nodeName( elem, "input" ) ) {
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- }
- },
-
- removeAttr: function( elem, value ) {
- var name, propName,
- i = 0,
- attrNames = value && value.match( rnotwhite );
-
- if ( attrNames && elem.nodeType === 1 ) {
- while ( ( name = attrNames[ i++ ] ) ) {
- propName = jQuery.propFix[ name ] || name;
-
- // Boolean attributes get special treatment (#10870)
- if ( jQuery.expr.match.bool.test( name ) ) {
-
- // Set corresponding property to false
- elem[ propName ] = false;
- }
-
- elem.removeAttribute( name );
- }
- }
- }
-} );
-
-// Hooks for boolean attributes
-boolHook = {
- set: function( elem, value, name ) {
- if ( value === false ) {
-
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else {
- elem.setAttribute( name, name );
- }
- return name;
- }
-};
-jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
- var getter = attrHandle[ name ] || jQuery.find.attr;
-
- attrHandle[ name ] = function( elem, name, isXML ) {
- var ret, handle;
- if ( !isXML ) {
-
- // Avoid an infinite loop by temporarily removing this function from the getter
- handle = attrHandle[ name ];
- attrHandle[ name ] = ret;
- ret = getter( elem, name, isXML ) != null ?
- name.toLowerCase() :
- null;
- attrHandle[ name ] = handle;
- }
- return ret;
- };
-} );
-
-
-
-
-var rfocusable = /^(?:input|select|textarea|button)$/i,
- rclickable = /^(?:a|area)$/i;
-
-jQuery.fn.extend( {
- prop: function( name, value ) {
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- return this.each( function() {
- delete this[ jQuery.propFix[ name ] || name ];
- } );
- }
-} );
-
-jQuery.extend( {
- prop: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set properties on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- return ( elem[ name ] = value );
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- return elem[ name ];
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
-
- // elem.tabIndex doesn't always return the
- // correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- // Use proper attribute retrieval(#12072)
- var tabindex = jQuery.find.attr( elem, "tabindex" );
-
- return tabindex ?
- parseInt( tabindex, 10 ) :
- rfocusable.test( elem.nodeName ) ||
- rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- -1;
- }
- }
- },
-
- propFix: {
- "for": "htmlFor",
- "class": "className"
- }
-} );
-
-// Support: IE <=11 only
-// Accessing the selectedIndex property
-// forces the browser to respect setting selected
-// on the option
-// The getter ensures a default option is selected
-// when in an optgroup
-if ( !support.optSelected ) {
- jQuery.propHooks.selected = {
- get: function( elem ) {
- var parent = elem.parentNode;
- if ( parent && parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- return null;
- },
- set: function( elem ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
- };
-}
-
-jQuery.each( [
- "tabIndex",
- "readOnly",
- "maxLength",
- "cellSpacing",
- "cellPadding",
- "rowSpan",
- "colSpan",
- "useMap",
- "frameBorder",
- "contentEditable"
-], function() {
- jQuery.propFix[ this.toLowerCase() ] = this;
-} );
-
-
-
-
-var rclass = /[\t\r\n\f]/g;
-
-function getClass( elem ) {
- return elem.getAttribute && elem.getAttribute( "class" ) || "";
-}
-
-jQuery.fn.extend( {
- addClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
- cur += clazz + " ";
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( !arguments.length ) {
- return this.attr( "class", "" );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
-
- // This expression is here for better compressibility (see addClass)
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
-
- // Remove *all* instances
- while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
- cur = cur.replace( " " + clazz + " ", " " );
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value;
-
- if ( typeof stateVal === "boolean" && type === "string" ) {
- return stateVal ? this.addClass( value ) : this.removeClass( value );
- }
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( i ) {
- jQuery( this ).toggleClass(
- value.call( this, i, getClass( this ), stateVal ),
- stateVal
- );
- } );
- }
-
- return this.each( function() {
- var className, i, self, classNames;
-
- if ( type === "string" ) {
-
- // Toggle individual class names
- i = 0;
- self = jQuery( this );
- classNames = value.match( rnotwhite ) || [];
-
- while ( ( className = classNames[ i++ ] ) ) {
-
- // Check each className given, space separated list
- if ( self.hasClass( className ) ) {
- self.removeClass( className );
- } else {
- self.addClass( className );
- }
- }
-
- // Toggle whole class name
- } else if ( value === undefined || type === "boolean" ) {
- className = getClass( this );
- if ( className ) {
-
- // Store className if set
- dataPriv.set( this, "__className__", className );
- }
-
- // If the element has a class name or if we're passed `false`,
- // then remove the whole classname (if there was one, the above saved it).
- // Otherwise bring back whatever was previously saved (if anything),
- // falling back to the empty string if nothing was stored.
- if ( this.setAttribute ) {
- this.setAttribute( "class",
- className || value === false ?
- "" :
- dataPriv.get( this, "__className__" ) || ""
- );
- }
- }
- } );
- },
-
- hasClass: function( selector ) {
- var className, elem,
- i = 0;
-
- className = " " + selector + " ";
- while ( ( elem = this[ i++ ] ) ) {
- if ( elem.nodeType === 1 &&
- ( " " + getClass( elem ) + " " ).replace( rclass, " " )
- .indexOf( className ) > -1
- ) {
- return true;
- }
- }
-
- return false;
- }
-} );
-
-
-
-
-var rreturn = /\r/g,
- rspaces = /[\x20\t\r\n\f]+/g;
-
-jQuery.fn.extend( {
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[ 0 ];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] ||
- jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks &&
- "get" in hooks &&
- ( ret = hooks.get( elem, "value" ) ) !== undefined
- ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
-
- // Handle most common string cases
- ret.replace( rreturn, "" ) :
-
- // Handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each( function( i ) {
- var val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, jQuery( this ).val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
-
- } else if ( typeof val === "number" ) {
- val += "";
-
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map( val, function( value ) {
- return value == null ? "" : value + "";
- } );
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- } );
- }
-} );
-
-jQuery.extend( {
- valHooks: {
- option: {
- get: function( elem ) {
-
- var val = jQuery.find.attr( elem, "value" );
- return val != null ?
- val :
-
- // Support: IE10-11+
- // option.text throws exceptions (#14686, #14858)
- // Strip and collapse whitespace
- // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
- jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
- }
- },
- select: {
- get: function( elem ) {
- var value, option,
- options = elem.options,
- index = elem.selectedIndex,
- one = elem.type === "select-one" || index < 0,
- values = one ? null : [],
- max = one ? index + 1 : options.length,
- i = index < 0 ?
- max :
- one ? index : 0;
-
- // Loop through all the selected options
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // IE8-9 doesn't update selected after form reset (#2551)
- if ( ( option.selected || i === index ) &&
-
- // Don't return options that are disabled or in a disabled optgroup
- ( support.optDisabled ?
- !option.disabled : option.getAttribute( "disabled" ) === null ) &&
- ( !option.parentNode.disabled ||
- !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var optionSet, option,
- options = elem.options,
- values = jQuery.makeArray( value ),
- i = options.length;
-
- while ( i-- ) {
- option = options[ i ];
- if ( option.selected =
- jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
- ) {
- optionSet = true;
- }
- }
-
- // Force browsers to behave consistently when non-matching value is set
- if ( !optionSet ) {
- elem.selectedIndex = -1;
- }
- return values;
- }
- }
- }
-} );
-
-// Radios and checkboxes getter/setter
-jQuery.each( [ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
- }
- }
- };
- if ( !support.checkOn ) {
- jQuery.valHooks[ this ].get = function( elem ) {
- return elem.getAttribute( "value" ) === null ? "on" : elem.value;
- };
- }
-} );
-
-
-
-
-// Return jQuery for attributes-only inclusion
-
-
-var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
-
-jQuery.extend( jQuery.event, {
-
- trigger: function( event, data, elem, onlyHandlers ) {
-
- var i, cur, tmp, bubbleType, ontype, handle, special,
- eventPath = [ elem || document ],
- type = hasOwn.call( event, "type" ) ? event.type : event,
- namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
-
- cur = tmp = elem = elem || document;
-
- // Don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf( "." ) > -1 ) {
-
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split( "." );
- type = namespaces.shift();
- namespaces.sort();
- }
- ontype = type.indexOf( ":" ) < 0 && "on" + type;
-
- // Caller can pass in a jQuery.Event object, Object, or just an event type string
- event = event[ jQuery.expando ] ?
- event :
- new jQuery.Event( type, typeof event === "object" && event );
-
- // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
- event.isTrigger = onlyHandlers ? 2 : 3;
- event.namespace = namespaces.join( "." );
- event.rnamespace = event.namespace ?
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
- null;
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data == null ?
- [ event ] :
- jQuery.makeArray( data, [ event ] );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- if ( !rfocusMorph.test( bubbleType + type ) ) {
- cur = cur.parentNode;
- }
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push( cur );
- tmp = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( tmp === ( elem.ownerDocument || document ) ) {
- eventPath.push( tmp.defaultView || tmp.parentWindow || window );
- }
- }
-
- // Fire handlers on the event path
- i = 0;
- while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
-
- event.type = i > 1 ?
- bubbleType :
- special.bindType || type;
-
- // jQuery handler
- handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
- dataPriv.get( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
-
- // Native handler
- handle = ontype && cur[ ontype ];
- if ( handle && handle.apply && acceptData( cur ) ) {
- event.result = handle.apply( cur, data );
- if ( event.result === false ) {
- event.preventDefault();
- }
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( ( !special._default ||
- special._default.apply( eventPath.pop(), data ) === false ) &&
- acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name name as the event.
- // Don't do default actions on window, that's where global variables be (#6170)
- if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- tmp = elem[ ontype ];
-
- if ( tmp ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- elem[ type ]();
- jQuery.event.triggered = undefined;
-
- if ( tmp ) {
- elem[ ontype ] = tmp;
- }
- }
- }
- }
-
- return event.result;
- },
-
- // Piggyback on a donor event to simulate a different one
- // Used only for `focus(in | out)` events
- simulate: function( type, elem, event ) {
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- {
- type: type,
- isSimulated: true
- }
- );
-
- jQuery.event.trigger( e, null, elem );
- }
-
-} );
-
-jQuery.fn.extend( {
-
- trigger: function( type, data ) {
- return this.each( function() {
- jQuery.event.trigger( type, data, this );
- } );
- },
- triggerHandler: function( type, data ) {
- var elem = this[ 0 ];
- if ( elem ) {
- return jQuery.event.trigger( type, data, elem, true );
- }
- }
-} );
-
-
-jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
- function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-} );
-
-jQuery.fn.extend( {
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-} );
-
-
-
-
-support.focusin = "onfocusin" in window;
-
-
-// Support: Firefox
-// Firefox doesn't have focus(in | out) events
-// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
-//
-// Support: Chrome, Safari
-// focus(in | out) events fire after focus & blur events,
-// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
-// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857
-if ( !support.focusin ) {
- jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler on the document while someone wants focusin/focusout
- var handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix );
-
- if ( !attaches ) {
- doc.addEventListener( orig, handler, true );
- }
- dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
- },
- teardown: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix ) - 1;
-
- if ( !attaches ) {
- doc.removeEventListener( orig, handler, true );
- dataPriv.remove( doc, fix );
-
- } else {
- dataPriv.access( doc, fix, attaches );
- }
- }
- };
- } );
-}
-var location = window.location;
-
-var nonce = jQuery.now();
-
-var rquery = ( /\?/ );
-
-
-
-// Support: Android 2.3
-// Workaround failure to string-cast null input
-jQuery.parseJSON = function( data ) {
- return JSON.parse( data + "" );
-};
-
-
-// Cross-browser xml parsing
-jQuery.parseXML = function( data ) {
- var xml;
- if ( !data || typeof data !== "string" ) {
- return null;
- }
-
- // Support: IE9
- try {
- xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
- } catch ( e ) {
- xml = undefined;
- }
-
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
-};
-
-
-var
- rhash = /#.*$/,
- rts = /([?&])_=[^&]*/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
-
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = "*/".concat( "*" ),
-
- // Anchor tag for parsing the document origin
- originAnchor = document.createElement( "a" );
- originAnchor.href = location.href;
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- var dataType,
- i = 0,
- dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
-
- if ( jQuery.isFunction( func ) ) {
-
- // For each dataType in the dataTypeExpression
- while ( ( dataType = dataTypes[ i++ ] ) ) {
-
- // Prepend if requested
- if ( dataType[ 0 ] === "+" ) {
- dataType = dataType.slice( 1 ) || "*";
- ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
-
- // Otherwise append
- } else {
- ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
- }
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
- var inspected = {},
- seekingTransport = ( structure === transports );
-
- function inspect( dataType ) {
- var selected;
- inspected[ dataType ] = true;
- jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
- var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
- if ( typeof dataTypeOrTransport === "string" &&
- !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
-
- options.dataTypes.unshift( dataTypeOrTransport );
- inspect( dataTypeOrTransport );
- return false;
- } else if ( seekingTransport ) {
- return !( selected = dataTypeOrTransport );
- }
- } );
- return selected;
- }
-
- return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var key, deep,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-
- return target;
-}
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var ct, type, finalDataType, firstDataType,
- contents = s.contents,
- dataTypes = s.dataTypes;
-
- // Remove auto dataType and get content-type in the process
- while ( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
-
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
-
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
- var conv2, current, conv, tmp, prev,
- converters = {},
-
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice();
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- current = dataTypes.shift();
-
- // Convert to each sequential dataType
- while ( current ) {
-
- if ( s.responseFields[ current ] ) {
- jqXHR[ s.responseFields[ current ] ] = response;
- }
-
- // Apply the dataFilter if provided
- if ( !prev && isSuccess && s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- prev = current;
- current = dataTypes.shift();
-
- if ( current ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current === "*" ) {
-
- current = prev;
-
- // Convert response if prev dataType is non-auto and differs from current
- } else if ( prev !== "*" && prev !== current ) {
-
- // Seek a direct converter
- conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
- // If none found, seek a pair
- if ( !conv ) {
- for ( conv2 in converters ) {
-
- // If conv2 outputs current
- tmp = conv2.split( " " );
- if ( tmp[ 1 ] === current ) {
-
- // If prev can be converted to accepted input
- conv = converters[ prev + " " + tmp[ 0 ] ] ||
- converters[ "* " + tmp[ 0 ] ];
- if ( conv ) {
-
- // Condense equivalence converters
- if ( conv === true ) {
- conv = converters[ conv2 ];
-
- // Otherwise, insert the intermediate dataType
- } else if ( converters[ conv2 ] !== true ) {
- current = tmp[ 0 ];
- dataTypes.unshift( tmp[ 1 ] );
- }
- break;
- }
- }
- }
- }
-
- // Apply converter (if not an equivalence)
- if ( conv !== true ) {
-
- // Unless errors are allowed to bubble, catch and return them
- if ( conv && s.throws ) {
- response = conv( response );
- } else {
- try {
- response = conv( response );
- } catch ( e ) {
- return {
- state: "parsererror",
- error: conv ? e : "No conversion from " + prev + " to " + current
- };
- }
- }
- }
- }
- }
- }
-
- return { state: "success", data: response };
-}
-
-jQuery.extend( {
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajaxSettings: {
- url: location.href,
- type: "GET",
- isLocal: rlocalProtocol.test( location.protocol ),
- global: true,
- processData: true,
- async: true,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- throws: false,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- "*": allTypes,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
-
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- url: true,
- context: true
- }
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- return settings ?
-
- // Building a settings object
- ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
- // Extending ajaxSettings
- ajaxExtend( jQuery.ajaxSettings, target );
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var transport,
-
- // URL without anti-cache param
- cacheURL,
-
- // Response headers
- responseHeadersString,
- responseHeaders,
-
- // timeout handle
- timeoutTimer,
-
- // Url cleanup var
- urlAnchor,
-
- // To know if global events are to be dispatched
- fireGlobals,
-
- // Loop variable
- i,
-
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
-
- // Callbacks context
- callbackContext = s.context || s,
-
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context &&
- ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
-
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks( "once memory" ),
-
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
-
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
-
- // The jqXHR state
- state = 0,
-
- // Default abort message
- strAbort = "canceled",
-
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- var lname = name.toLowerCase();
- if ( !state ) {
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( state < 2 ) {
- for ( code in map ) {
-
- // Lazy-add the new callback in a way that preserves old ones
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- } else {
-
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR ).complete = completeDeferred.add;
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (prefilters might expect it)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || location.href ) + "" ).replace( rhash, "" )
- .replace( rprotocol, location.protocol + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
-
- // A cross-domain request is in order when the origin doesn't match the current origin.
- if ( s.crossDomain == null ) {
- urlAnchor = document.createElement( "a" );
-
- // Support: IE8-11+
- // IE throws exception if url is malformed, e.g. http://example.com:80x/
- try {
- urlAnchor.href = s.url;
-
- // Support: IE8-11+
- // Anchor's host property isn't correctly set when s.url is relative
- urlAnchor.href = urlAnchor.href;
- s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
- urlAnchor.protocol + "//" + urlAnchor.host;
- } catch ( e ) {
-
- // If there is an error parsing the URL, assume it is crossDomain,
- // it can be rejected by the transport if it is invalid
- s.crossDomain = true;
- }
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
- fireGlobals = jQuery.event && s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- cacheURL = s.url;
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
-
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
- s.url = rts.test( cacheURL ) ?
-
- // If there is already a '_' parameter, set its value
- cacheURL.replace( rts, "$1_=" + nonce++ ) :
-
- // Otherwise add one to the end
- cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
- }
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
- s.accepts[ s.dataTypes[ 0 ] ] +
- ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend &&
- ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // Aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
-
- // If request was aborted inside ajaxSend, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = window.setTimeout( function() {
- jqXHR.abort( "timeout" );
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch ( e ) {
-
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
-
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- window.clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Determine if successful
- isSuccess = status >= 200 && status < 300 || status === 304;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // Convert no matter what (that way responseXXX fields are always set)
- response = ajaxConvert( s, response, jqXHR, isSuccess );
-
- // If successful, handle type chaining
- if ( isSuccess ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader( "Last-Modified" );
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader( "etag" );
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // if no content
- if ( status === 204 || s.type === "HEAD" ) {
- statusText = "nocontent";
-
- // if not modified
- } else if ( status === 304 ) {
- statusText = "notmodified";
-
- // If we have data, let's convert it
- } else {
- statusText = response.state;
- success = response.data;
- error = response.error;
- isSuccess = !error;
- }
- } else {
-
- // Extract error from statusText and normalize for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- return jqXHR;
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- }
-} );
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
-
- // Shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- // The url can be an options object (which then must have .url)
- return jQuery.ajax( jQuery.extend( {
- url: url,
- type: method,
- dataType: type,
- data: data,
- success: callback
- }, jQuery.isPlainObject( url ) && url ) );
- };
-} );
-
-
-jQuery._evalUrl = function( url ) {
- return jQuery.ajax( {
- url: url,
-
- // Make this explicit, since user can override this through ajaxSetup (#11264)
- type: "GET",
- dataType: "script",
- async: false,
- global: false,
- "throws": true
- } );
-};
-
-
-jQuery.fn.extend( {
- wrapAll: function( html ) {
- var wrap;
-
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapAll( html.call( this, i ) );
- } );
- }
-
- if ( this[ 0 ] ) {
-
- // The elements to wrap the target around
- wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
- if ( this[ 0 ].parentNode ) {
- wrap.insertBefore( this[ 0 ] );
- }
-
- wrap.map( function() {
- var elem = this;
-
- while ( elem.firstElementChild ) {
- elem = elem.firstElementChild;
- }
-
- return elem;
- } ).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapInner( html.call( this, i ) );
- } );
- }
-
- return this.each( function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- } );
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each( function( i ) {
- jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
- } );
- },
-
- unwrap: function() {
- return this.parent().each( function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- } ).end();
- }
-} );
-
-
-jQuery.expr.filters.hidden = function( elem ) {
- return !jQuery.expr.filters.visible( elem );
-};
-jQuery.expr.filters.visible = function( elem ) {
-
- // Support: Opera <= 12.12
- // Opera reports offsetWidths and offsetHeights less than zero on some elements
- // Use OR instead of AND as the element is not visible if either is true
- // See tickets #10406 and #13132
- return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;
-};
-
-
-
-
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-function buildParams( prefix, obj, traditional, add ) {
- var name;
-
- if ( jQuery.isArray( obj ) ) {
-
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
-
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
-
- // Item is non-scalar (array or object), encode its numeric index.
- buildParams(
- prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
- v,
- traditional,
- add
- );
- }
- } );
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
-
- // Serialize object item.
- for ( name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
-
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-jQuery.param = function( a, traditional ) {
- var prefix,
- s = [],
- add = function( key, value ) {
-
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- } );
-
- } else {
-
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" ).replace( r20, "+" );
-};
-
-jQuery.fn.extend( {
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
- serializeArray: function() {
- return this.map( function() {
-
- // Can add propHook for "elements" to filter or add form elements
- var elements = jQuery.prop( this, "elements" );
- return elements ? jQuery.makeArray( elements ) : this;
- } )
- .filter( function() {
- var type = this.type;
-
- // Use .is( ":disabled" ) so that fieldset[disabled] works
- return this.name && !jQuery( this ).is( ":disabled" ) &&
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !rcheckableType.test( type ) );
- } )
- .map( function( i, elem ) {
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val ) {
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ).get();
- }
-} );
-
-
-jQuery.ajaxSettings.xhr = function() {
- try {
- return new window.XMLHttpRequest();
- } catch ( e ) {}
-};
-
-var xhrSuccessStatus = {
-
- // File protocol always yields status code 0, assume 200
- 0: 200,
-
- // Support: IE9
- // #1450: sometimes IE returns 1223 when it should be 204
- 1223: 204
- },
- xhrSupported = jQuery.ajaxSettings.xhr();
-
-support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-support.ajax = xhrSupported = !!xhrSupported;
-
-jQuery.ajaxTransport( function( options ) {
- var callback, errorCallback;
-
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( support.cors || xhrSupported && !options.crossDomain ) {
- return {
- send: function( headers, complete ) {
- var i,
- xhr = options.xhr();
-
- xhr.open(
- options.type,
- options.url,
- options.async,
- options.username,
- options.password
- );
-
- // Apply custom fields if provided
- if ( options.xhrFields ) {
- for ( i in options.xhrFields ) {
- xhr[ i ] = options.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( options.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( options.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
- }
-
- // Set headers
- for ( i in headers ) {
- xhr.setRequestHeader( i, headers[ i ] );
- }
-
- // Callback
- callback = function( type ) {
- return function() {
- if ( callback ) {
- callback = errorCallback = xhr.onload =
- xhr.onerror = xhr.onabort = xhr.onreadystatechange = null;
-
- if ( type === "abort" ) {
- xhr.abort();
- } else if ( type === "error" ) {
-
- // Support: IE9
- // On a manual native abort, IE9 throws
- // errors on any property access that is not readyState
- if ( typeof xhr.status !== "number" ) {
- complete( 0, "error" );
- } else {
- complete(
-
- // File: protocol always yields status 0; see #8605, #14207
- xhr.status,
- xhr.statusText
- );
- }
- } else {
- complete(
- xhrSuccessStatus[ xhr.status ] || xhr.status,
- xhr.statusText,
-
- // Support: IE9 only
- // IE9 has no XHR2 but throws on binary (trac-11426)
- // For XHR2 non-text, let the caller handle it (gh-2498)
- ( xhr.responseType || "text" ) !== "text" ||
- typeof xhr.responseText !== "string" ?
- { binary: xhr.response } :
- { text: xhr.responseText },
- xhr.getAllResponseHeaders()
- );
- }
- }
- };
- };
-
- // Listen to events
- xhr.onload = callback();
- errorCallback = xhr.onerror = callback( "error" );
-
- // Support: IE9
- // Use onreadystatechange to replace onabort
- // to handle uncaught aborts
- if ( xhr.onabort !== undefined ) {
- xhr.onabort = errorCallback;
- } else {
- xhr.onreadystatechange = function() {
-
- // Check readyState before timeout as it changes
- if ( xhr.readyState === 4 ) {
-
- // Allow onerror to be called first,
- // but that will not handle a native abort
- // Also, save errorCallback to a variable
- // as xhr.onerror cannot be accessed
- window.setTimeout( function() {
- if ( callback ) {
- errorCallback();
- }
- } );
- }
- };
- }
-
- // Create the abort callback
- callback = callback( "abort" );
-
- try {
-
- // Do send the request (this may raise an exception)
- xhr.send( options.hasContent && options.data || null );
- } catch ( e ) {
-
- // #14683: Only rethrow if this hasn't been notified as an error yet
- if ( callback ) {
- throw e;
- }
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup( {
- accepts: {
- script: "text/javascript, application/javascript, " +
- "application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-} );
-
-// Handle cache's special case and crossDomain
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- }
-} );
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function( s ) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
- var script, callback;
- return {
- send: function( _, complete ) {
- script = jQuery( "<script>" ).prop( {
- charset: s.scriptCharset,
- src: s.url
- } ).on(
- "load error",
- callback = function( evt ) {
- script.remove();
- callback = null;
- if ( evt ) {
- complete( evt.type === "error" ? 404 : 200, evt.type );
- }
- }
- );
-
- // Use native DOM manipulation to avoid our domManip AJAX trickery
- document.head.appendChild( script[ 0 ] );
- },
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-
-
-
-var oldCallbacks = [],
- rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup( {
- jsonp: "callback",
- jsonpCallback: function() {
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
- this[ callback ] = true;
- return callback;
- }
-} );
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var callbackName, overwritten, responseContainer,
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
- "url" :
- typeof s.data === "string" &&
- ( s.contentType || "" )
- .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
- rjsonp.test( s.data ) && "data"
- );
-
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
- // Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
- s.jsonpCallback() :
- s.jsonpCallback;
-
- // Insert callback into url or form data
- if ( jsonProp ) {
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
- } else if ( s.jsonp !== false ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
- }
-
- // Use data converter to retrieve json after script execution
- s.converters[ "script json" ] = function() {
- if ( !responseContainer ) {
- jQuery.error( callbackName + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // Force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Install callback
- overwritten = window[ callbackName ];
- window[ callbackName ] = function() {
- responseContainer = arguments;
- };
-
- // Clean-up function (fires after converters)
- jqXHR.always( function() {
-
- // If previous value didn't exist - remove it
- if ( overwritten === undefined ) {
- jQuery( window ).removeProp( callbackName );
-
- // Otherwise restore preexisting value
- } else {
- window[ callbackName ] = overwritten;
- }
-
- // Save back as free
- if ( s[ callbackName ] ) {
-
- // Make sure that re-using the options doesn't screw things around
- s.jsonpCallback = originalSettings.jsonpCallback;
-
- // Save the callback name for future use
- oldCallbacks.push( callbackName );
- }
-
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
- overwritten( responseContainer[ 0 ] );
- }
-
- responseContainer = overwritten = undefined;
- } );
-
- // Delegate to script
- return "script";
- }
-} );
-
-
-
-
-// Argument "data" should be string of html
-// context (optional): If specified, the fragment will be created in this context,
-// defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-jQuery.parseHTML = function( data, context, keepScripts ) {
- if ( !data || typeof data !== "string" ) {
- return null;
- }
- if ( typeof context === "boolean" ) {
- keepScripts = context;
- context = false;
- }
- context = context || document;
-
- var parsed = rsingleTag.exec( data ),
- scripts = !keepScripts && [];
-
- // Single tag
- if ( parsed ) {
- return [ context.createElement( parsed[ 1 ] ) ];
- }
-
- parsed = buildFragment( [ data ], context, scripts );
-
- if ( scripts && scripts.length ) {
- jQuery( scripts ).remove();
- }
-
- return jQuery.merge( [], parsed.childNodes );
-};
-
-
-// Keep a copy of the old load method
-var _load = jQuery.fn.load;
-
-/**
- * Load a url into a page
- */
-jQuery.fn.load = function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
- }
-
- var selector, type, response,
- self = this,
- off = url.indexOf( " " );
-
- if ( off > -1 ) {
- selector = jQuery.trim( url.slice( off ) );
- url = url.slice( 0, off );
- }
-
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
-
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( params && typeof params === "object" ) {
- type = "POST";
- }
-
- // If we have elements to modify, make the request
- if ( self.length > 0 ) {
- jQuery.ajax( {
- url: url,
-
- // If "type" variable is undefined, then "GET" method will be used.
- // Make value of this field explicit since
- // user can override it through ajaxSetup method
- type: type || "GET",
- dataType: "html",
- data: params
- } ).done( function( responseText ) {
-
- // Save response for use in complete callback
- response = arguments;
-
- self.html( selector ?
-
- // If a selector was specified, locate the right elements in a dummy div
- // Exclude scripts to avoid IE 'Permission Denied' errors
- jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- // If the request succeeds, this function gets "data", "status", "jqXHR"
- // but they are ignored because response was set above.
- // If it fails, this function gets "jqXHR", "status", "error"
- } ).always( callback && function( jqXHR, status ) {
- self.each( function() {
- callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
- } );
- } );
- }
-
- return this;
-};
-
-
-
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [
- "ajaxStart",
- "ajaxStop",
- "ajaxComplete",
- "ajaxError",
- "ajaxSuccess",
- "ajaxSend"
-], function( i, type ) {
- jQuery.fn[ type ] = function( fn ) {
- return this.on( type, fn );
- };
-} );
-
-
-
-
-jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep( jQuery.timers, function( fn ) {
- return elem === fn.elem;
- } ).length;
-};
-
-
-
-
-/**
- * Gets a window from an element
- */
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
-}
-
-jQuery.offset = {
- setOffset: function( elem, options, i ) {
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
- position = jQuery.css( elem, "position" ),
- curElem = jQuery( elem ),
- props = {};
-
- // Set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- curOffset = curElem.offset();
- curCSSTop = jQuery.css( elem, "top" );
- curCSSLeft = jQuery.css( elem, "left" );
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
- ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
-
- // Need to be able to calculate position if either
- // top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
-
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
-
- // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
- options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
-
- } else {
- curElem.css( props );
- }
- }
-};
-
-jQuery.fn.extend( {
- offset: function( options ) {
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each( function( i ) {
- jQuery.offset.setOffset( this, options, i );
- } );
- }
-
- var docElem, win,
- elem = this[ 0 ],
- box = { top: 0, left: 0 },
- doc = elem && elem.ownerDocument;
-
- if ( !doc ) {
- return;
- }
-
- docElem = doc.documentElement;
-
- // Make sure it's not a disconnected DOM node
- if ( !jQuery.contains( docElem, elem ) ) {
- return box;
- }
-
- box = elem.getBoundingClientRect();
- win = getWindow( doc );
- return {
- top: box.top + win.pageYOffset - docElem.clientTop,
- left: box.left + win.pageXOffset - docElem.clientLeft
- };
- },
-
- position: function() {
- if ( !this[ 0 ] ) {
- return;
- }
-
- var offsetParent, offset,
- elem = this[ 0 ],
- parentOffset = { top: 0, left: 0 };
-
- // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
- // because it is its only offset parent
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
-
- // Assume getBoundingClientRect is there when computed position is fixed
- offset = elem.getBoundingClientRect();
-
- } else {
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent();
-
- // Get correct offsets
- offset = this.offset();
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
- parentOffset = offsetParent.offset();
- }
-
- // Add offsetParent borders
- parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
- parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
- }
-
- // Subtract parent offsets and element margins
- return {
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
- };
- },
-
- // This method will return documentElement in the following cases:
- // 1) For the element inside the iframe without offsetParent, this method will return
- // documentElement of the parent window
- // 2) For the hidden or detached element
- // 3) For body or html element, i.e. in case of the html node - it will return itself
- //
- // but those exceptions were never presented as a real life use-cases
- // and might be considered as more preferable results.
- //
- // This logic, however, is not guaranteed and can change at any point in the future
- offsetParent: function() {
- return this.map( function() {
- var offsetParent = this.offsetParent;
-
- while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
- offsetParent = offsetParent.offsetParent;
- }
-
- return offsetParent || documentElement;
- } );
- }
-} );
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
- var top = "pageYOffset" === prop;
-
- jQuery.fn[ method ] = function( val ) {
- return access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? win[ prop ] : elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : win.pageXOffset,
- top ? val : win.pageYOffset
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length );
- };
-} );
-
-// Support: Safari<7-8+, Chrome<37-44+
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// Blink bug: https://code.google.com/p/chromium/issues/detail?id=229280
-// getComputedStyle returns percent when specified for top/left/bottom/right;
-// rather than make the css module depend on the offset module, just check for it here
-jQuery.each( [ "top", "left" ], function( i, prop ) {
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
- function( elem, computed ) {
- if ( computed ) {
- computed = curCSS( elem, prop );
-
- // If curCSS returns percentage, fallback to offset
- return rnumnonpx.test( computed ) ?
- jQuery( elem ).position()[ prop ] + "px" :
- computed;
- }
- }
- );
-} );
-
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
- function( defaultExtra, funcName ) {
-
- // Margin is only for outerHeight, outerWidth
- jQuery.fn[ funcName ] = function( margin, value ) {
- var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
- extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
- return access( this, function( elem, type, value ) {
- var doc;
-
- if ( jQuery.isWindow( elem ) ) {
-
- // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
- // isn't a whole lot we can do. See pull request at this URL for discussion:
- // https://github.com/jquery/jquery/pull/764
- return elem.document.documentElement[ "client" + name ];
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- doc = elem.documentElement;
-
- // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
- // whichever is greatest
- return Math.max(
- elem.body[ "scroll" + name ], doc[ "scroll" + name ],
- elem.body[ "offset" + name ], doc[ "offset" + name ],
- doc[ "client" + name ]
- );
- }
-
- return value === undefined ?
-
- // Get width or height on the element, requesting but not forcing parseFloat
- jQuery.css( elem, type, extra ) :
-
- // Set width or height on the element
- jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable, null );
- };
- } );
-} );
-
-
-jQuery.fn.extend( {
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
-
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ?
- this.off( selector, "**" ) :
- this.off( types, selector || "**", fn );
- },
- size: function() {
- return this.length;
- }
-} );
-
-jQuery.fn.andSelf = jQuery.fn.addBack;
-
-
-
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-if ( typeof define === "function" && define.amd ) {
- define( "jquery", [], function() {
- return jQuery;
- } );
-}
-
-
-
-var
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$;
-
-jQuery.noConflict = function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
-};
-
-// Expose jQuery and $ identifiers, even in AMD
-// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-if ( !noGlobal ) {
- window.jQuery = window.$ = jQuery;
-}
-
-return jQuery;
-}));
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-2/dist/jquery.min.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-2/dist/jquery.min.js
deleted file mode 100644
index 4024b662..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-2/dist/jquery.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */
-!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c;
-}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=N.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||d,e=c.documentElement,f=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ea.test(f)?this.mouseHooks:da.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=d),3===a.target.nodeType&&(a.target=a.target.parentNode),h.filter?h.filter(a,g):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ga:ha):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ga,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ga,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ga,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),n.fn.extend({on:function(a,b,c,d){return ja(this,a,b,c,d)},one:function(a,b,c,d){return ja(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=ha),this.each(function(){n.event.remove(this,a,c,b)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=wa[0].contentDocument,b.write(),b.close(),c=ya(a,b),wa.detach()),xa[a]=c),c}var Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Ea=d.documentElement;!function(){var b,c,e,f,g=d.createElement("div"),h=d.createElement("div");if(h.style){h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h);function i(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Ea.appendChild(g);var d=a.getComputedStyle(h);b="1%"!==d.top,f="2px"===d.marginLeft,c="4px"===d.width,h.style.marginRight="50%",e="4px"===d.marginRight,Ea.removeChild(g)}n.extend(l,{pixelPosition:function(){return i(),b},boxSizingReliable:function(){return null==c&&i(),c},pixelMarginRight:function(){return null==c&&i(),e},reliableMarginLeft:function(){return null==c&&i(),f},reliableMarginRight:function(){var b,c=h.appendChild(d.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",Ea.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),Ea.removeChild(g),h.removeChild(c),b}})}}();function Fa(a,b,c){var d,e,f,g,h=a.style;return c=c||Ca(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Ba.test(g)&&Aa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0!==g?g+"":g}function Ga(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;function Ma(a){if(a in La)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ka.length;while(c--)if(a=Ka[c]+b,a in La)return a}function Na(a,b,c){var d=T.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Oa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Pa(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ca(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Fa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ba.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Oa(a,b,c||(g?"border":"content"),d,f)+"px"}function Qa(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=N.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=N.access(d,"olddisplay",za(d.nodeName)))):(e=V(d),"none"===c&&e||N.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Fa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Fa(a,b,d)),"normal"===e&&b in Ja&&(e=Ja[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Ha.test(n.css(a,"display"))&&0===a.offsetWidth?Da(a,Ia,function(){return Pa(a,b,d)}):Pa(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Ca(a),g=d&&Oa(a,b,d,"border-box"===n.css(a,"boxSizing",!1,f),f);return g&&(e=T.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=n.css(a,b)),Na(a,c,g)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Fa(a,"marginLeft"))||a.getBoundingClientRect().left-Da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(a,b){return b?Da(a,{display:"inline-block"},Fa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Aa.test(a)||(n.cssHooks[a+b].set=Na)}),n.fn.extend({css:function(a,b){return K(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ca(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function Ra(a,b,c,d,e){return new Ra.prototype.init(a,b,c,d,e)}n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ra.propHooks[this.prop];return a&&a.get?a.get(this):Ra.propHooks._default.get(this)},run:function(a){var b,c=Ra.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=U[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ya(a,b,c){for(var d,e=(_a.tweeners[b]||[]).concat(_a.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Za(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&V(a),q=N.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?N.get(a,"olddisplay")||za(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Ua.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?za(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=N.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;N.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ya(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function $a(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function _a(a,b,c){var d,e,f=0,g=_a.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Sa||Wa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:Sa||Wa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for($a(k,j.opts.specialEasing);g>f;f++)if(d=_a.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,Ya,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(_a,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],_a.tweeners[c]=_a.tweeners[c]||[],_a.tweeners[c].unshift(b)},prefilters:[Za],prefilter:function(a,b){b?_a.prefilters.unshift(a):_a.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=_a(this,n.extend({},a),f);(e||N.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=N.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Va.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=N.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Xa(b,!0),a,d,e)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Sa=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=d.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var ab,bb=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return K(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ab:void 0)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),ab={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=bb[b]||n.find.attr;bb[b]=function(a,b,d){var e,f;return d||(f=bb[b],bb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,bb[b]=f),e}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return K(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),
-void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;function fb(a){return a.getAttribute&&a.getAttribute("class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,fb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,fb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=fb(this),b&&N.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":N.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+fb(c)+" ").replace(eb," ").indexOf(b)>-1)return!0;return!1}});var gb=/\r/g,hb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(gb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(hb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(n.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ib=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ib.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!n.isWindow(e)){for(j=o.delegateType||q,ib.test(j+q)||(h=h.parentNode);h;h=h.parentNode)p.push(h),i=h;i===(e.ownerDocument||d)&&p.push(i.defaultView||i.parentWindow||a)}g=0;while((h=p[g++])&&!b.isPropagationStopped())b.type=g>1?j:o.bindType||q,m=(N.get(h,"events")||{})[b.type]&&N.get(h,"handle"),m&&m.apply(h,c),m=l&&h[l],m&&m.apply&&L(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!L(e)||l&&n.isFunction(e[q])&&!n.isWindow(e)&&(i=e[l],i&&(e[l]=null),n.event.triggered=q,e[q](),n.event.triggered=void 0,i&&(e[l]=i)),b.result}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b)}}),n.fn.extend({trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=N.access(d,b);e||d.addEventListener(a,c,!0),N.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=N.access(d,b)-1;e?N.access(d,b,e):(d.removeEventListener(a,c,!0),N.remove(d,b))}}});var jb=a.location,kb=n.now(),lb=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var mb=/#.*$/,nb=/([?&])_=[^&]*/,ob=/^(.*?):[ \t]*([^\r\n]*)$/gm,pb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,sb={},tb={},ub="*/".concat("*"),vb=d.createElement("a");vb.href=jb.href;function wb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function xb(a,b,c,d){var e={},f=a===tb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function yb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function zb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Ab(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jb.href,type:"GET",isLocal:pb.test(jb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?yb(yb(a,n.ajaxSettings),b):yb(n.ajaxSettings,a)},ajaxPrefilter:wb(sb),ajaxTransport:wb(tb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m=n.ajaxSetup({},c),o=m.context||m,p=m.context&&(o.nodeType||o.jquery)?n(o):n.event,q=n.Deferred(),r=n.Callbacks("once memory"),s=m.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(2===v){if(!h){h={};while(b=ob.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===v?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return v||(a=u[c]=u[c]||a,t[a]=b),this},overrideMimeType:function(a){return v||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>v)for(b in a)s[b]=[s[b],a[b]];else x.always(a[x.status]);return this},abort:function(a){var b=a||w;return e&&e.abort(b),z(0,b),this}};if(q.promise(x).complete=r.add,x.success=x.done,x.error=x.fail,m.url=((b||m.url||jb.href)+"").replace(mb,"").replace(rb,jb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=n.trim(m.dataType||"*").toLowerCase().match(G)||[""],null==m.crossDomain){j=d.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=vb.protocol+"//"+vb.host!=j.protocol+"//"+j.host}catch(y){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=n.param(m.data,m.traditional)),xb(sb,m,c,x),2===v)return x;k=n.event&&m.global,k&&0===n.active++&&n.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(lb.test(f)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=nb.test(f)?f.replace(nb,"$1_="+kb++):f+(lb.test(f)?"&":"?")+"_="+kb++)),m.ifModified&&(n.lastModified[f]&&x.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&x.setRequestHeader("If-None-Match",n.etag[f])),(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+ub+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)x.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(o,x,m)===!1||2===v))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](m[l]);if(e=xb(tb,m,c,x)){if(x.readyState=1,k&&p.trigger("ajaxSend",[x,m]),2===v)return x;m.async&&m.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},m.timeout));try{v=1,e.send(t,z)}catch(y){if(!(2>v))throw y;z(-1,y)}}else z(-1,"No Transport");function z(b,c,d,h){var j,l,t,u,w,y=c;2!==v&&(v=2,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=zb(m,x,d)),u=Ab(m,u,x,j),j?(m.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(n.lastModified[f]=w),w=x.getResponseHeader("etag"),w&&(n.etag[f]=w)),204===b||"HEAD"===m.type?y="nocontent":304===b?y="notmodified":(y=u.state,l=u.data,t=u.error,j=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),x.status=b,x.statusText=(c||y)+"",j?q.resolveWith(o,[l,y,x]):q.rejectWith(o,[x,y,t]),x.statusCode(s),s=void 0,k&&p.trigger(j?"ajaxSuccess":"ajaxError",[x,m,j?l:t]),r.fireWith(o,[x,y]),k&&(p.trigger("ajaxComplete",[x,m]),--n.active||n.event.trigger("ajaxStop")))}return x},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return!n.expr.filters.visible(a)},n.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Bb=/%20/g,Cb=/\[\]$/,Db=/\r?\n/g,Eb=/^(?:submit|button|image|reset|file)$/i,Fb=/^(?:input|select|textarea|keygen)/i;function Gb(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Cb.test(a)?d(a,e):Gb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Gb(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Gb(c,a[c],b,e);return d.join("&").replace(Bb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Fb.test(this.nodeName)&&!Eb.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Db,"\r\n")}}):{name:b.name,value:c.replace(Db,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Hb={0:200,1223:204},Ib=n.ajaxSettings.xhr();l.cors=!!Ib&&"withCredentials"in Ib,l.ajax=Ib=!!Ib,n.ajaxTransport(function(b){var c,d;return l.cors||Ib&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Hb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=n("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Jb.pop()||n.expando+"_"+kb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Kb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Kb,"$1"+e):b.jsonp!==!1&&(b.url+=(lb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Jb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ca([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var Lb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Lb)return Lb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function Mb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(e=d.getBoundingClientRect(),c=Mb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;n.fn[a]=function(d){return K(this,function(a,d,e){var f=Mb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ga(l.pixelPosition,function(a,c){return c?(c=Fa(a,b),Ba.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return K(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Nb=a.jQuery,Ob=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Ob),b&&a.jQuery===n&&(a.jQuery=Nb),n},b||(a.jQuery=a.$=n),n});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-cookie/jquery.cookie.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-cookie/jquery.cookie.js
deleted file mode 100644
index c7f3a59b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-cookie/jquery.cookie.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/*!
- * jQuery Cookie Plugin v1.4.1
- * https://github.com/carhartl/jquery-cookie
- *
- * Copyright 2013 Klaus Hartl
- * Released under the MIT license
- */
-(function (factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD
- define(['jquery'], factory);
- } else if (typeof exports === 'object') {
- // CommonJS
- factory(require('jquery'));
- } else {
- // Browser globals
- factory(jQuery);
- }
-}(function ($) {
-
- var pluses = /\+/g;
-
- function encode(s) {
- return config.raw ? s : encodeURIComponent(s);
- }
-
- function decode(s) {
- return config.raw ? s : decodeURIComponent(s);
- }
-
- function stringifyCookieValue(value) {
- return encode(config.json ? JSON.stringify(value) : String(value));
- }
-
- function parseCookieValue(s) {
- if (s.indexOf('"') === 0) {
- // This is a quoted cookie as according to RFC2068, unescape...
- s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
- }
-
- try {
- // Replace server-side written pluses with spaces.
- // If we can't decode the cookie, ignore it, it's unusable.
- // If we can't parse the cookie, ignore it, it's unusable.
- s = decodeURIComponent(s.replace(pluses, ' '));
- return config.json ? JSON.parse(s) : s;
- } catch(e) {}
- }
-
- function read(s, converter) {
- var value = config.raw ? s : parseCookieValue(s);
- return $.isFunction(converter) ? converter(value) : value;
- }
-
- var config = $.cookie = function (key, value, options) {
-
- // Write
-
- if (value !== undefined && !$.isFunction(value)) {
- options = $.extend({}, config.defaults, options);
-
- if (typeof options.expires === 'number') {
- var days = options.expires, t = options.expires = new Date();
- t.setTime(+t + days * 864e+5);
- }
-
- return (document.cookie = [
- encode(key), '=', stringifyCookieValue(value),
- options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
- options.path ? '; path=' + options.path : '',
- options.domain ? '; domain=' + options.domain : '',
- options.secure ? '; secure' : ''
- ].join(''));
- }
-
- // Read
-
- var result = key ? undefined : {};
-
- // To prevent the for loop in the first place assign an empty array
- // in case there are no cookies at all. Also prevents odd result when
- // calling $.cookie().
- var cookies = document.cookie ? document.cookie.split('; ') : [];
-
- for (var i = 0, l = cookies.length; i < l; i++) {
- var parts = cookies[i].split('=');
- var name = decode(parts.shift());
- var cookie = parts.join('=');
-
- if (key && key === name) {
- // If second argument (value) is a function it's a converter...
- result = read(cookie, value);
- break;
- }
-
- // Prevent storing a cookie that we couldn't decode.
- if (!key && (cookie = read(cookie)) !== undefined) {
- result[name] = cookie;
- }
- }
-
- return result;
- };
-
- config.defaults = {};
-
- $.removeCookie = function (key, options) {
- if ($.cookie(key) === undefined) {
- return false;
- }
-
- // Must not alter options, thus extending a fresh object...
- $.cookie(key, '', $.extend({}, options, { expires: -1 }));
- return !$.cookie(key);
- };
-
-}));
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-mockjax/dist/jquery.mockjax.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-mockjax/dist/jquery.mockjax.js
deleted file mode 100644
index cb938bed..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery-mockjax/dist/jquery.mockjax.js
+++ /dev/null
@@ -1,1003 +0,0 @@
-/*! jQuery Mockjax
- * A Plugin providing simple and flexible mocking of ajax requests and responses
- *
- * Version: 2.2.1
- * Home: https://github.com/jakerella/jquery-mockjax
- * Copyright (c) 2016 Jordan Kasper, formerly appendTo;
- * NOTE: This repository was taken over by Jordan Kasper (@jakerella) October, 2014
- *
- * Dual licensed under the MIT or GPL licenses.
- * http://opensource.org/licenses/MIT OR http://www.gnu.org/licenses/gpl-2.0.html
- */
-(function(root, factory) {
- 'use strict';
-
- // AMDJS module definition
- if ( typeof define === 'function' && define.amd && define.amd.jQuery ) {
- define(['jquery'], function($) {
- return factory($, root);
- });
-
- // CommonJS module definition
- } else if ( typeof exports === 'object') {
-
- // NOTE: To use Mockjax as a Node module you MUST provide the factory with
- // a valid version of jQuery and a window object (the global scope):
- // var mockjax = require('jquery.mockjax')(jQuery, window);
-
- module.exports = factory;
-
- // Global jQuery in web browsers
- } else {
- return factory(root.jQuery || root.$, root);
- }
-}(this, function($, window) {
- 'use strict';
-
- var _ajax = $.ajax,
- mockHandlers = [],
- mockedAjaxCalls = [],
- unmockedAjaxCalls = [],
- CALLBACK_REGEX = /=\?(&|$)/,
- jsc = (new Date()).getTime(),
- DEFAULT_RESPONSE_TIME = 500;
-
- // Parse the given XML string.
- function parseXML(xml) {
- if ( window.DOMParser === undefined && window.ActiveXObject ) {
- window.DOMParser = function() { };
- DOMParser.prototype.parseFromString = function( xmlString ) {
- var doc = new ActiveXObject('Microsoft.XMLDOM');
- doc.async = 'false';
- doc.loadXML( xmlString );
- return doc;
- };
- }
-
- try {
- var xmlDoc = ( new DOMParser() ).parseFromString( xml, 'text/xml' );
- if ( $.isXMLDoc( xmlDoc ) ) {
- var err = $('parsererror', xmlDoc);
- if ( err.length === 1 ) {
- throw new Error('Error: ' + $(xmlDoc).text() );
- }
- } else {
- throw new Error('Unable to parse XML');
- }
- return xmlDoc;
- } catch( e ) {
- var msg = ( e.name === undefined ? e : e.name + ': ' + e.message );
- $(document).trigger('xmlParseError', [ msg ]);
- return undefined;
- }
- }
-
- // Check if the data field on the mock handler and the request match. This
- // can be used to restrict a mock handler to being used only when a certain
- // set of data is passed to it.
- function isMockDataEqual( mock, live ) {
- logger.debug( mock, ['Checking mock data against request data', mock, live] );
- var identical = true;
-
- if ( $.isFunction(mock) ) {
- return !!mock(live);
- }
-
- // Test for situations where the data is a querystring (not an object)
- if (typeof live === 'string') {
- // Querystring may be a regex
- if ($.isFunction( mock.test )) {
- return mock.test(live);
- } else if (typeof mock === 'object') {
- live = getQueryParams(live);
- } else {
- return mock === live;
- }
- }
-
- $.each(mock, function(k) {
- if ( live[k] === undefined ) {
- identical = false;
- return identical;
- } else {
- if ( typeof live[k] === 'object' && live[k] !== null ) {
- if ( identical && $.isArray( live[k] ) ) {
- identical = $.isArray( mock[k] ) && live[k].length === mock[k].length;
- }
- identical = identical && isMockDataEqual(mock[k], live[k]);
- } else {
- if ( mock[k] && $.isFunction( mock[k].test ) ) {
- identical = identical && mock[k].test(live[k]);
- } else {
- identical = identical && ( mock[k] === live[k] );
- }
- }
- }
- });
-
- return identical;
- }
-
- function getQueryParams(queryString) {
- var i, l, param, tmp,
- paramsObj = {},
- params = String(queryString).split(/&/);
-
- for (i=0, l=params.length; i<l; ++i) {
- param = params[i];
- try {
- param = decodeURIComponent(param.replace(/\+/g, ' '));
- param = param.split(/=/);
- } catch(e) {
- // Can't parse this one, so let it go?
- continue;
- }
-
- if (paramsObj[param[0]]) {
- // this is an array query param (more than one entry in query)
- if (!paramsObj[param[0]].splice) {
- // if not already an array, make it one
- tmp = paramsObj[param[0]];
- paramsObj[param[0]] = [];
- paramsObj[param[0]].push(tmp);
- }
- paramsObj[param[0]].push(param[1]);
- } else {
- paramsObj[param[0]] = param[1];
- }
- }
-
- logger.debug( null, ['Getting query params from string', queryString, paramsObj] );
-
- return paramsObj;
- }
-
- // See if a mock handler property matches the default settings
- function isDefaultSetting(handler, property) {
- return handler[property] === $.mockjaxSettings[property];
- }
-
- // Check the given handler should mock the given request
- function getMockForRequest( handler, requestSettings ) {
- // If the mock was registered with a function, let the function decide if we
- // want to mock this request
- if ( $.isFunction(handler) ) {
- return handler( requestSettings );
- }
-
- // Inspect the URL of the request and check if the mock handler's url
- // matches the url for this ajax request
- if ( $.isFunction(handler.url.test) ) {
- // The user provided a regex for the url, test it
- if ( !handler.url.test( requestSettings.url ) ) {
- return null;
- }
- } else {
-
- // Apply namespace prefix to the mock handler's url.
- var namespace = handler.namespace || $.mockjaxSettings.namespace;
- if (!!namespace) {
- var namespacedUrl = [namespace, handler.url].join('/');
- namespacedUrl = namespacedUrl.replace(/(\/+)/g, '/');
- handler.url = namespacedUrl;
- }
-
- // Look for a simple wildcard '*' or a direct URL match
- var star = handler.url.indexOf('*');
- if (handler.url !== requestSettings.url && star === -1 ||
- !new RegExp(handler.url.replace(/[-[\]{}()+?.,\\^$|#\s]/g, '\\$&').replace(/\*/g, '.+')).test(requestSettings.url)) {
- return null;
- }
- }
-
- // Inspect the request headers submitted
- if ( handler.requestHeaders ) {
- //No expectation for headers, do not mock this request
- if (requestSettings.headers === undefined) {
- return null;
- } else {
- var headersMismatch = false;
- $.each(handler.requestHeaders, function(key, value) {
- var v = requestSettings.headers[key];
- if(v !== value) {
- headersMismatch = true;
- return false;
- }
- });
- //Headers do not match, do not mock this request
- if (headersMismatch) {
- return null;
- }
- }
- }
-
- // Inspect the data submitted in the request (either POST body or GET query string)
- if ( handler.data ) {
- if ( !requestSettings.data || !isMockDataEqual(handler.data, requestSettings.data) ) {
- // They're not identical, do not mock this request
- return null;
- }
- }
- // Inspect the request type
- if ( handler && handler.type &&
- handler.type.toLowerCase() !== requestSettings.type.toLowerCase() ) {
- // The request type doesn't match (GET vs. POST)
- return null;
- }
-
- return handler;
- }
-
- function isPosNum(value) {
- return typeof value === 'number' && value >= 0;
- }
-
- function parseResponseTimeOpt(responseTime) {
- if ($.isArray(responseTime) && responseTime.length === 2) {
- var min = responseTime[0];
- var max = responseTime[1];
- if(isPosNum(min) && isPosNum(max)) {
- return Math.floor(Math.random() * (max - min)) + min;
- }
- } else if(isPosNum(responseTime)) {
- return responseTime;
- }
- return DEFAULT_RESPONSE_TIME;
- }
-
- // Process the xhr objects send operation
- function _xhrSend(mockHandler, requestSettings, origSettings) {
- logger.debug( mockHandler, ['Sending fake XHR request', mockHandler, requestSettings, origSettings] );
-
- // This is a substitute for < 1.4 which lacks $.proxy
- var process = (function(that) {
- return function() {
- return (function() {
- // The request has returned
- this.status = mockHandler.status;
- this.statusText = mockHandler.statusText;
- this.readyState = 1;
-
- var finishRequest = function () {
- this.readyState = 4;
-
- var onReady;
- // Copy over our mock to our xhr object before passing control back to
- // jQuery's onreadystatechange callback
- if ( requestSettings.dataType === 'json' && ( typeof mockHandler.responseText === 'object' ) ) {
- this.responseText = JSON.stringify(mockHandler.responseText);
- } else if ( requestSettings.dataType === 'xml' ) {
- if ( typeof mockHandler.responseXML === 'string' ) {
- this.responseXML = parseXML(mockHandler.responseXML);
- //in jQuery 1.9.1+, responseXML is processed differently and relies on responseText
- this.responseText = mockHandler.responseXML;
- } else {
- this.responseXML = mockHandler.responseXML;
- }
- } else if (typeof mockHandler.responseText === 'object' && mockHandler.responseText !== null) {
- // since jQuery 1.9 responseText type has to match contentType
- mockHandler.contentType = 'application/json';
- this.responseText = JSON.stringify(mockHandler.responseText);
- } else {
- this.responseText = mockHandler.responseText;
- }
- if( typeof mockHandler.status === 'number' || typeof mockHandler.status === 'string' ) {
- this.status = mockHandler.status;
- }
- if( typeof mockHandler.statusText === 'string') {
- this.statusText = mockHandler.statusText;
- }
- // jQuery 2.0 renamed onreadystatechange to onload
- onReady = this.onload || this.onreadystatechange;
-
- // jQuery < 1.4 doesn't have onreadystate change for xhr
- if ( $.isFunction( onReady ) ) {
- if( mockHandler.isTimeout) {
- this.status = -1;
- }
- onReady.call( this, mockHandler.isTimeout ? 'timeout' : undefined );
- } else if ( mockHandler.isTimeout ) {
- // Fix for 1.3.2 timeout to keep success from firing.
- this.status = -1;
- }
- };
-
- // We have an executable function, call it to give
- // the mock handler a chance to update it's data
- if ( $.isFunction(mockHandler.response) ) {
- // Wait for it to finish
- if ( mockHandler.response.length === 2 ) {
- mockHandler.response(origSettings, function () {
- finishRequest.call(that);
- });
- return;
- } else {
- mockHandler.response(origSettings);
- }
- }
-
- finishRequest.call(that);
- }).apply(that);
- };
- })(this);
-
- if ( mockHandler.proxy ) {
- logger.info( mockHandler, ['Retrieving proxy file: ' + mockHandler.proxy, mockHandler] );
- // We're proxying this request and loading in an external file instead
- _ajax({
- global: false,
- url: mockHandler.proxy,
- type: mockHandler.proxyType,
- data: mockHandler.data,
- async: requestSettings.async,
- dataType: requestSettings.dataType === 'script' ? 'text/plain' : requestSettings.dataType,
- complete: function(xhr) {
- // Fix for bug #105
- // jQuery will convert the text to XML for us, and if we use the actual responseXML here
- // then some other things don't happen, resulting in no data given to the 'success' cb
- mockHandler.responseXML = mockHandler.responseText = xhr.responseText;
-
- // Don't override the handler status/statusText if it's specified by the config
- if (isDefaultSetting(mockHandler, 'status')) {
- mockHandler.status = xhr.status;
- }
- if (isDefaultSetting(mockHandler, 'statusText')) {
- mockHandler.statusText = xhr.statusText;
- }
-
- if ( requestSettings.async === false ) {
- // TODO: Blocking delay
- process();
- } else {
- this.responseTimer = setTimeout(process, parseResponseTimeOpt(mockHandler.responseTime));
- }
- }
- });
- } else {
- // type === 'POST' || 'GET' || 'DELETE'
- if ( requestSettings.async === false ) {
- // TODO: Blocking delay
- process();
- } else {
- this.responseTimer = setTimeout(process, parseResponseTimeOpt(mockHandler.responseTime));
- }
- }
-
- }
-
- // Construct a mocked XHR Object
- function xhr(mockHandler, requestSettings, origSettings, origHandler) {
- logger.debug( mockHandler, ['Creating new mock XHR object', mockHandler, requestSettings, origSettings, origHandler] );
-
- // Extend with our default mockjax settings
- mockHandler = $.extend(true, {}, $.mockjaxSettings, mockHandler);
-
- if (typeof mockHandler.headers === 'undefined') {
- mockHandler.headers = {};
- }
- if (typeof requestSettings.headers === 'undefined') {
- requestSettings.headers = {};
- }
- if ( mockHandler.contentType ) {
- mockHandler.headers['content-type'] = mockHandler.contentType;
- }
-
- return {
- status: mockHandler.status,
- statusText: mockHandler.statusText,
- readyState: 1,
- open: function() { },
- send: function() {
- origHandler.fired = true;
- _xhrSend.call(this, mockHandler, requestSettings, origSettings);
- },
- abort: function() {
- clearTimeout(this.responseTimer);
- },
- setRequestHeader: function(header, value) {
- requestSettings.headers[header] = value;
- },
- getResponseHeader: function(header) {
- // 'Last-modified', 'Etag', 'content-type' are all checked by jQuery
- if ( mockHandler.headers && mockHandler.headers[header] ) {
- // Return arbitrary headers
- return mockHandler.headers[header];
- } else if ( header.toLowerCase() === 'last-modified' ) {
- return mockHandler.lastModified || (new Date()).toString();
- } else if ( header.toLowerCase() === 'etag' ) {
- return mockHandler.etag || '';
- } else if ( header.toLowerCase() === 'content-type' ) {
- return mockHandler.contentType || 'text/plain';
- }
- },
- getAllResponseHeaders: function() {
- var headers = '';
- // since jQuery 1.9 responseText type has to match contentType
- if (mockHandler.contentType) {
- mockHandler.headers['Content-Type'] = mockHandler.contentType;
- }
- $.each(mockHandler.headers, function(k, v) {
- headers += k + ': ' + v + '\n';
- });
- return headers;
- }
- };
- }
-
- // Process a JSONP mock request.
- function processJsonpMock( requestSettings, mockHandler, origSettings ) {
- // Handle JSONP Parameter Callbacks, we need to replicate some of the jQuery core here
- // because there isn't an easy hook for the cross domain script tag of jsonp
-
- processJsonpUrl( requestSettings );
-
- requestSettings.dataType = 'json';
- if(requestSettings.data && CALLBACK_REGEX.test(requestSettings.data) || CALLBACK_REGEX.test(requestSettings.url)) {
- createJsonpCallback(requestSettings, mockHandler, origSettings);
-
- // We need to make sure
- // that a JSONP style response is executed properly
-
- var rurl = /^(\w+:)?\/\/([^\/?#]+)/,
- parts = rurl.exec( requestSettings.url ),
- remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host);
-
- requestSettings.dataType = 'script';
- if(requestSettings.type.toUpperCase() === 'GET' && remote ) {
- var newMockReturn = processJsonpRequest( requestSettings, mockHandler, origSettings );
-
- // Check if we are supposed to return a Deferred back to the mock call, or just
- // signal success
- if(newMockReturn) {
- return newMockReturn;
- } else {
- return true;
- }
- }
- }
- return null;
- }
-
- // Append the required callback parameter to the end of the request URL, for a JSONP request
- function processJsonpUrl( requestSettings ) {
- if ( requestSettings.type.toUpperCase() === 'GET' ) {
- if ( !CALLBACK_REGEX.test( requestSettings.url ) ) {
- requestSettings.url += (/\?/.test( requestSettings.url ) ? '&' : '?') +
- (requestSettings.jsonp || 'callback') + '=?';
- }
- } else if ( !requestSettings.data || !CALLBACK_REGEX.test(requestSettings.data) ) {
- requestSettings.data = (requestSettings.data ? requestSettings.data + '&' : '') + (requestSettings.jsonp || 'callback') + '=?';
- }
- }
-
- // Process a JSONP request by evaluating the mocked response text
- function processJsonpRequest( requestSettings, mockHandler, origSettings ) {
- logger.debug( mockHandler, ['Performing JSONP request', mockHandler, requestSettings, origSettings] );
-
- // Synthesize the mock request for adding a script tag
- var callbackContext = origSettings && origSettings.context || requestSettings,
- // If we are running under jQuery 1.5+, return a deferred object
- newMock = ($.Deferred) ? (new $.Deferred()) : null;
-
- // If the response handler on the moock is a function, call it
- if ( mockHandler.response && $.isFunction(mockHandler.response) ) {
-
- mockHandler.response(origSettings);
-
-
- } else if ( typeof mockHandler.responseText === 'object' ) {
- // Evaluate the responseText javascript in a global context
- $.globalEval( '(' + JSON.stringify( mockHandler.responseText ) + ')');
-
- } else if (mockHandler.proxy) {
- logger.info( mockHandler, ['Performing JSONP proxy request: ' + mockHandler.proxy, mockHandler] );
-
- // This handles the unique case where we have a remote URL, but want to proxy the JSONP
- // response to another file (not the same URL as the mock matching)
- _ajax({
- global: false,
- url: mockHandler.proxy,
- type: mockHandler.proxyType,
- data: mockHandler.data,
- dataType: requestSettings.dataType === 'script' ? 'text/plain' : requestSettings.dataType,
- complete: function(xhr) {
- $.globalEval( '(' + xhr.responseText + ')');
- completeJsonpCall( requestSettings, mockHandler, callbackContext, newMock );
- }
- });
-
- return newMock;
-
- } else {
- $.globalEval( '(' +
- ((typeof mockHandler.responseText === 'string') ?
- ('"' + mockHandler.responseText + '"') : mockHandler.responseText) +
- ')');
- }
-
- completeJsonpCall( requestSettings, mockHandler, callbackContext, newMock );
-
- return newMock;
- }
-
- function completeJsonpCall( requestSettings, mockHandler, callbackContext, newMock ) {
- var json;
-
- // Successful response
- setTimeout(function() {
- jsonpSuccess( requestSettings, callbackContext, mockHandler );
- jsonpComplete( requestSettings, callbackContext );
-
- if ( newMock ) {
- try {
- json = $.parseJSON( mockHandler.responseText );
- } catch (err) { /* just checking... */ }
-
- newMock.resolveWith( callbackContext, [json || mockHandler.responseText] );
- logger.log( mockHandler, ['JSONP mock call complete', mockHandler, newMock] );
- }
- }, parseResponseTimeOpt( mockHandler.responseTime ));
- }
-
-
- // Create the required JSONP callback function for the request
- function createJsonpCallback( requestSettings, mockHandler, origSettings ) {
- var callbackContext = origSettings && origSettings.context || requestSettings;
- var jsonp = (typeof requestSettings.jsonpCallback === 'string' && requestSettings.jsonpCallback) || ('jsonp' + jsc++);
-
- // Replace the =? sequence both in the query string and the data
- if ( requestSettings.data ) {
- requestSettings.data = (requestSettings.data + '').replace(CALLBACK_REGEX, '=' + jsonp + '$1');
- }
-
- requestSettings.url = requestSettings.url.replace(CALLBACK_REGEX, '=' + jsonp + '$1');
-
-
- // Handle JSONP-style loading
- window[ jsonp ] = window[ jsonp ] || function() {
- jsonpSuccess( requestSettings, callbackContext, mockHandler );
- jsonpComplete( requestSettings, callbackContext );
- // Garbage collect
- window[ jsonp ] = undefined;
-
- try {
- delete window[ jsonp ];
- } catch(e) {}
- };
- requestSettings.jsonpCallback = jsonp;
- }
-
- // The JSONP request was successful
- function jsonpSuccess(requestSettings, callbackContext, mockHandler) {
- // If a local callback was specified, fire it and pass it the data
- if ( requestSettings.success ) {
- requestSettings.success.call( callbackContext, mockHandler.responseText || '', 'success', {} );
- }
-
- // Fire the global callback
- if ( requestSettings.global ) {
- (requestSettings.context ? $(requestSettings.context) : $.event).trigger('ajaxSuccess', [{}, requestSettings]);
- }
- }
-
- // The JSONP request was completed
- function jsonpComplete(requestSettings, callbackContext) {
- if ( requestSettings.complete ) {
- requestSettings.complete.call( callbackContext, {
- statusText: 'success',
- status: 200
- } , 'success' );
- }
-
- // The request was completed
- if ( requestSettings.global ) {
- (requestSettings.context ? $(requestSettings.context) : $.event).trigger('ajaxComplete', [{}, requestSettings]);
- }
-
- // Handle the global AJAX counter
- if ( requestSettings.global && ! --$.active ) {
- $.event.trigger( 'ajaxStop' );
- }
- }
-
-
- // The core $.ajax replacement.
- function handleAjax( url, origSettings ) {
- var mockRequest, requestSettings, mockHandler, overrideCallback;
-
- logger.debug( null, ['Ajax call intercepted', url, origSettings] );
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === 'object' ) {
- origSettings = url;
- url = undefined;
- } else {
- // work around to support 1.5 signature
- origSettings = origSettings || {};
- origSettings.url = url || origSettings.url;
- }
-
- // Extend the original settings for the request
- requestSettings = $.ajaxSetup({}, origSettings);
- requestSettings.type = requestSettings.method = requestSettings.method || requestSettings.type;
-
- // Generic function to override callback methods for use with
- // callback options (onAfterSuccess, onAfterError, onAfterComplete)
- overrideCallback = function(action, mockHandler) {
- var origHandler = origSettings[action.toLowerCase()];
- return function() {
- if ( $.isFunction(origHandler) ) {
- origHandler.apply(this, [].slice.call(arguments));
- }
- mockHandler['onAfter' + action]();
- };
- };
-
- // Iterate over our mock handlers (in registration order) until we find
- // one that is willing to intercept the request
- for(var k = 0; k < mockHandlers.length; k++) {
- if ( !mockHandlers[k] ) {
- continue;
- }
-
- mockHandler = getMockForRequest( mockHandlers[k], requestSettings );
- if(!mockHandler) {
- logger.debug( mockHandlers[k], ['Mock does not match request', url, requestSettings] );
- // No valid mock found for this request
- continue;
- }
-
- if ($.mockjaxSettings.retainAjaxCalls) {
- mockedAjaxCalls.push(requestSettings);
- }
-
- // If logging is enabled, log the mock to the console
- logger.info( mockHandler, [
- 'MOCK ' + requestSettings.type.toUpperCase() + ': ' + requestSettings.url,
- $.ajaxSetup({}, requestSettings)
- ] );
-
-
- if ( requestSettings.dataType && requestSettings.dataType.toUpperCase() === 'JSONP' ) {
- if ((mockRequest = processJsonpMock( requestSettings, mockHandler, origSettings ))) {
- // This mock will handle the JSONP request
- return mockRequest;
- }
- }
-
- // We are mocking, so there will be no cross domain request, however, jQuery
- // aggressively pursues this if the domains don't match, so we need to
- // explicitly disallow it. (See #136)
- origSettings.crossDomain = false;
-
- // Removed to fix #54 - keep the mocking data object intact
- //mockHandler.data = requestSettings.data;
-
- mockHandler.cache = requestSettings.cache;
- mockHandler.timeout = requestSettings.timeout;
- mockHandler.global = requestSettings.global;
-
- // In the case of a timeout, we just need to ensure
- // an actual jQuery timeout (That is, our reponse won't)
- // return faster than the timeout setting.
- if ( mockHandler.isTimeout ) {
- if ( mockHandler.responseTime > 1 ) {
- origSettings.timeout = mockHandler.responseTime - 1;
- } else {
- mockHandler.responseTime = 2;
- origSettings.timeout = 1;
- }
- }
-
- // Set up onAfter[X] callback functions
- if ( $.isFunction( mockHandler.onAfterSuccess ) ) {
- origSettings.success = overrideCallback('Success', mockHandler);
- }
- if ( $.isFunction( mockHandler.onAfterError ) ) {
- origSettings.error = overrideCallback('Error', mockHandler);
- }
- if ( $.isFunction( mockHandler.onAfterComplete ) ) {
- origSettings.complete = overrideCallback('Complete', mockHandler);
- }
-
- copyUrlParameters(mockHandler, origSettings);
-
- /* jshint loopfunc:true */
- (function(mockHandler, requestSettings, origSettings, origHandler) {
-
- mockRequest = _ajax.call($, $.extend(true, {}, origSettings, {
- // Mock the XHR object
- xhr: function() { return xhr( mockHandler, requestSettings, origSettings, origHandler ); }
- }));
- })(mockHandler, requestSettings, origSettings, mockHandlers[k]);
- /* jshint loopfunc:false */
-
- return mockRequest;
- }
-
- // We don't have a mock request
- logger.log( null, ['No mock matched to request', url, origSettings] );
- if ($.mockjaxSettings.retainAjaxCalls) {
- unmockedAjaxCalls.push(origSettings);
- }
- if($.mockjaxSettings.throwUnmocked === true) {
- throw new Error('AJAX not mocked: ' + origSettings.url);
- }
- else { // trigger a normal request
- return _ajax.apply($, [origSettings]);
- }
- }
-
- /**
- * Copies URL parameter values if they were captured by a regular expression
- * @param {Object} mockHandler
- * @param {Object} origSettings
- */
- function copyUrlParameters(mockHandler, origSettings) {
- //parameters aren't captured if the URL isn't a RegExp
- if (!(mockHandler.url instanceof RegExp)) {
- return;
- }
- //if no URL params were defined on the handler, don't attempt a capture
- if (!mockHandler.hasOwnProperty('urlParams')) {
- return;
- }
- var captures = mockHandler.url.exec(origSettings.url);
- //the whole RegExp match is always the first value in the capture results
- if (captures.length === 1) {
- return;
- }
- captures.shift();
- //use handler params as keys and capture resuts as values
- var i = 0,
- capturesLength = captures.length,
- paramsLength = mockHandler.urlParams.length,
- //in case the number of params specified is less than actual captures
- maxIterations = Math.min(capturesLength, paramsLength),
- paramValues = {};
- for (i; i < maxIterations; i++) {
- var key = mockHandler.urlParams[i];
- paramValues[key] = captures[i];
- }
- origSettings.urlParams = paramValues;
- }
-
- /**
- * Clears handlers that mock given url
- * @param url
- * @returns {Array}
- */
- function clearByUrl(url) {
- var i, len,
- handler,
- results = [],
- match=url instanceof RegExp ?
- function(testUrl) { return url.test(testUrl); } :
- function(testUrl) { return url === testUrl; };
- for (i=0, len=mockHandlers.length; i<len; i++) {
- handler = mockHandlers[i];
- if (!match(handler.url)) {
- results.push(handler);
- } else {
- logger.log( handler, [
- 'Clearing mock: ' + (handler && handler.url),
- handler
- ] );
- }
- }
- return results;
- }
-
-
- // Public
-
- $.extend({
- ajax: handleAjax
- });
-
- var logger = {
- _log: function logger( mockHandler, args, level ) {
- var loggerLevel = $.mockjaxSettings.logging;
- if (mockHandler && typeof mockHandler.logging !== 'undefined') {
- loggerLevel = mockHandler.logging;
- }
- level = ( level === 0 ) ? level : ( level || logLevels.LOG );
- args = (args.splice) ? args : [ args ];
-
- // Is logging turned off for this mock or mockjax as a whole?
- // Or is this log message above the desired log level?
- if ( loggerLevel === false || loggerLevel < level ) {
- return;
- }
-
- if ( $.mockjaxSettings.log ) {
- return $.mockjaxSettings.log( mockHandler, args[1] || args[0] );
- } else if ( $.mockjaxSettings.logger && $.mockjaxSettings.logger[$.mockjaxSettings.logLevelMethods[level]] ) {
- return $.mockjaxSettings.logger[$.mockjaxSettings.logLevelMethods[level]].apply( $.mockjaxSettings.logger, args );
- }
- },
- /**
- * Convenience method for logging a DEBUG level message
- * @param {Object} m The mock handler in question
- * @param {Array|String|Object} a The items to log
- * @return {?} Will return whatever the $.mockjaxSettings.logger method for this level would return (generally 'undefined')
- */
- debug: function(m,a) { return logger._log(m,a,logLevels.DEBUG); },
- /**
- * @see logger.debug
- */
- log: function(m,a) { return logger._log(m,a,logLevels.LOG); },
- /**
- * @see logger.debug
- */
- info: function(m,a) { return logger._log(m,a,logLevels.INFO); },
- /**
- * @see logger.debug
- */
- warn: function(m,a) { return logger._log(m,a,logLevels.WARN); },
- /**
- * @see logger.debug
- */
- error: function(m,a) { return logger._log(m,a,logLevels.ERROR); }
- };
-
- var logLevels = {
- DEBUG: 4,
- LOG: 3,
- INFO: 2,
- WARN: 1,
- ERROR: 0
- };
-
- /**
- * Default settings for mockjax. Some of these are used for defaults of
- * individual mock handlers, and some are for the library as a whole.
- * For individual mock handler settings, please see the README on the repo:
- * https://github.com/jakerella/jquery-mockjax#api-methods
- *
- * @type {Object}
- */
- $.mockjaxSettings = {
- log: null, // this is only here for historical purposes... use $.mockjaxSettings.logger
- logger: window.console,
- logging: 2,
- logLevelMethods: ['error', 'warn', 'info', 'log', 'debug'],
- namespace: null,
- status: 200,
- statusText: 'OK',
- responseTime: DEFAULT_RESPONSE_TIME,
- isTimeout: false,
- throwUnmocked: false,
- retainAjaxCalls: true,
- contentType: 'text/plain',
- response: '',
- responseText: '',
- responseXML: '',
- proxy: '',
- proxyType: 'GET',
-
- lastModified: null,
- etag: '',
- headers: {
- etag: 'IJF@H#@923uf8023hFO@I#H#',
- 'content-type' : 'text/plain'
- }
- };
-
- /**
- * Create a new mock Ajax handler. When a mock handler is matched during a
- * $.ajax() call this library will intercept that request and fake a response
- * using the data and methods in the mock. You can see all settings in the
- * README of the main repository:
- * https://github.com/jakerella/jquery-mockjax#api-methods
- *
- * @param {Object} settings The mock handelr settings: https://github.com/jakerella/jquery-mockjax#api-methods
- * @return {Number} The id (index) of the mock handler suitable for clearing (see $.mockjax.clear())
- */
- $.mockjax = function(settings) {
- // Multiple mocks.
- if ( $.isArray(settings) ) {
- return $.map(settings, function(s) {
- return $.mockjax(s);
- });
- }
-
- var i = mockHandlers.length;
- mockHandlers[i] = settings;
- logger.log( settings, ['Created new mock handler', settings] );
- return i;
- };
-
- $.mockjax._logger = logger;
-
- /**
- * Remove an Ajax mock from those held in memory. This will prevent any
- * future Ajax request mocking for matched requests.
- * NOTE: Clearing a mock will not prevent the resolution of in progress requests
- *
- * @param {Number|String|RegExp} i OPTIONAL The mock to clear. If not provided, all mocks are cleared,
- * if a number it is the index in the in-memory cache. If a string or
- * RegExp, find a mock that matches that URL and clear it.
- * @return {void}
- */
- $.mockjax.clear = function(i) {
- if ( typeof i === 'string' || i instanceof RegExp) {
- mockHandlers = clearByUrl(i);
- } else if ( i || i === 0 ) {
- logger.log( mockHandlers[i], [
- 'Clearing mock: ' + (mockHandlers[i] && mockHandlers[i].url),
- mockHandlers[i]
- ] );
- mockHandlers[i] = null;
- } else {
- logger.log( null, 'Clearing all mocks' );
- mockHandlers = [];
- }
- mockedAjaxCalls = [];
- unmockedAjaxCalls = [];
- };
-
- /**
- * By default all Ajax requests performed after loading Mockjax are recorded
- * so that we can see which requests were mocked and which were not. This
- * method allows the developer to clear those retained requests.
- *
- * @return {void}
- */
- $.mockjax.clearRetainedAjaxCalls = function() {
- mockedAjaxCalls = [];
- unmockedAjaxCalls = [];
- logger.debug( null, 'Cleared retained ajax calls' );
- };
-
- /**
- * Retrive the mock handler with the given id (index).
- *
- * @param {Number} i The id (index) to retrieve
- * @return {Object} The mock handler settings
- */
- $.mockjax.handler = function(i) {
- if ( arguments.length === 1 ) {
- return mockHandlers[i];
- }
- };
-
- /**
- * Retrieve all Ajax calls that have been mocked by this library during the
- * current session (in other words, only since you last loaded this file).
- *
- * @return {Array} The mocked Ajax calls (request settings)
- */
- $.mockjax.mockedAjaxCalls = function() {
- return mockedAjaxCalls;
- };
-
- /**
- * Return all mock handlers that have NOT been matched against Ajax requests
- *
- * @return {Array} The mock handlers
- */
- $.mockjax.unfiredHandlers = function() {
- var results = [];
- for (var i=0, len=mockHandlers.length; i<len; i++) {
- var handler = mockHandlers[i];
- if (handler !== null && !handler.fired) {
- results.push(handler);
- }
- }
- return results;
- };
-
- /**
- * Retrieve all Ajax calls that have NOT been mocked by this library during
- * the current session (in other words, only since you last loaded this file).
- *
- * @return {Array} The mocked Ajax calls (request settings)
- */
- $.mockjax.unmockedAjaxCalls = function() {
- return unmockedAjaxCalls;
- };
-
- return $.mockjax;
-
-}));
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery/dist/jquery.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery/dist/jquery.js
deleted file mode 100644
index 072e3081..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery/dist/jquery.js
+++ /dev/null
@@ -1,10220 +0,0 @@
-/*!
- * jQuery JavaScript Library v3.1.1
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2016-09-22T22:30Z
- */
-( function( global, factory ) {
-
- "use strict";
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
-
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
-// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
-// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
-// enough that all such attempts are guarded in a try block.
-"use strict";
-
-var arr = [];
-
-var document = window.document;
-
-var getProto = Object.getPrototypeOf;
-
-var slice = arr.slice;
-
-var concat = arr.concat;
-
-var push = arr.push;
-
-var indexOf = arr.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var fnToString = hasOwn.toString;
-
-var ObjectFunctionString = fnToString.call( Object );
-
-var support = {};
-
-
-
- function DOMEval( code, doc ) {
- doc = doc || document;
-
- var script = doc.createElement( "script" );
-
- script.text = code;
- doc.head.appendChild( script ).parentNode.removeChild( script );
- }
-/* global Symbol */
-// Defining this global in .eslintrc.json would create a danger of using the global
-// unguarded in another place, it seems safer to define global only for this module
-
-
-
-var
- version = "3.1.1",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
-
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- },
-
- // Support: Android <=4.0 only
- // Make sure we trim BOM and NBSP
- rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
-
- // Matches dashed string for camelizing
- rmsPrefix = /^-ms-/,
- rdashAlpha = /-([a-z])/g,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn = jQuery.prototype = {
-
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
-
- // Return all the elements in a clean array
- if ( num == null ) {
- return slice.call( this );
- }
-
- // Return just the one element from the set
- return num < 0 ? this[ num + this.length ] : this[ num ];
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- each: function( callback ) {
- return jQuery.each( this, callback );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map( this, function( elem, i ) {
- return callback.call( elem, i, elem );
- } ) );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor();
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: arr.sort,
- splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[ 0 ] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // Skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
- target = {};
- }
-
- // Extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
-
- // Only deal with non-null/undefined values
- if ( ( options = arguments[ i ] ) != null ) {
-
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
-
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray( src ) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject( src ) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend( {
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- isFunction: function( obj ) {
- return jQuery.type( obj ) === "function";
- },
-
- isArray: Array.isArray,
-
- isWindow: function( obj ) {
- return obj != null && obj === obj.window;
- },
-
- isNumeric: function( obj ) {
-
- // As of jQuery 3.0, isNumeric is limited to
- // strings and numbers (primitives or objects)
- // that can be coerced to finite numbers (gh-2662)
- var type = jQuery.type( obj );
- return ( type === "number" || type === "string" ) &&
-
- // parseFloat NaNs numeric-cast false positives ("")
- // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
- // subtraction forces infinities to NaN
- !isNaN( obj - parseFloat( obj ) );
- },
-
- isPlainObject: function( obj ) {
- var proto, Ctor;
-
- // Detect obvious negatives
- // Use toString instead of jQuery.type to catch host objects
- if ( !obj || toString.call( obj ) !== "[object Object]" ) {
- return false;
- }
-
- proto = getProto( obj );
-
- // Objects with no prototype (e.g., `Object.create( null )`) are plain
- if ( !proto ) {
- return true;
- }
-
- // Objects with prototype are plain iff they were constructed by a global Object function
- Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
- return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
- },
-
- isEmptyObject: function( obj ) {
-
- /* eslint-disable no-unused-vars */
- // See https://github.com/eslint/eslint/issues/6125
- var name;
-
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- type: function( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
-
- // Support: Android <=2.3 only (functionish RegExp)
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
- },
-
- // Evaluates a script in a global context
- globalEval: function( code ) {
- DOMEval( code );
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Support: IE <=9 - 11, Edge 12 - 13
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
- },
-
- each: function( obj, callback ) {
- var length, i = 0;
-
- if ( isArrayLike( obj ) ) {
- length = obj.length;
- for ( ; i < length; i++ ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- }
-
- return obj;
- },
-
- // Support: Android <=4.0 only
- trim: function( text ) {
- return text == null ?
- "" :
- ( text + "" ).replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArrayLike( Object( arr ) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- return arr == null ? -1 : indexOf.call( arr, elem, i );
- },
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- for ( ; j < len; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var length, value,
- i = 0,
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArrayLike( elems ) ) {
- length = elems.length;
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- var tmp, args, proxy;
-
- if ( typeof context === "string" ) {
- tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- args = slice.call( arguments, 2 );
- proxy = function() {
- return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
- return proxy;
- },
-
- now: Date.now,
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-} );
-
-if ( typeof Symbol === "function" ) {
- jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( i, name ) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
- // Support: real iOS 8.2 only (not reproducible in simulator)
- // `in` check used to prevent JIT error (gh-2145)
- // hasOwn isn't used here due to false negatives
- // regarding Nodelist length in IE
- var length = !!obj && "length" in obj && obj.length,
- type = jQuery.type( obj );
-
- if ( type === "function" || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v2.3.3
- * https://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2016-08-08
- */
-(function( window ) {
-
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + 1 * new Date(),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // Instance methods
- hasOwn = ({}).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- push_native = arr.push,
- push = arr.push,
- slice = arr.slice,
- // Use a stripped-down indexOf as it's faster than native
- // https://jsperf.com/thor-indexof-vs-for/5
- indexOf = function( list, elem ) {
- var i = 0,
- len = list.length;
- for ( ; i < len; i++ ) {
- if ( list[i] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
-
- // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
- identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
- // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
- "*\\]",
-
- pseudos = ":(" + identifier + ")(?:\\((" +
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rwhitespace = new RegExp( whitespace + "+", "g" ),
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
-
- rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + identifier + ")" ),
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
- "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
- "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
- whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
-
- // CSS escapes
- // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
- funescape = function( _, escaped, escapedWhitespace ) {
- var high = "0x" + escaped - 0x10000;
- // NaN means non-codepoint
- // Support: Firefox<24
- // Workaround erroneous numeric interpretation of +"0x"
- return high !== high || escapedWhitespace ?
- escaped :
- high < 0 ?
- // BMP codepoint
- String.fromCharCode( high + 0x10000 ) :
- // Supplemental Plane codepoint (surrogate pair)
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- },
-
- // CSS string/identifier serialization
- // https://drafts.csswg.org/cssom/#common-serializing-idioms
- rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
- fcssescape = function( ch, asCodePoint ) {
- if ( asCodePoint ) {
-
- // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
- if ( ch === "\0" ) {
- return "\uFFFD";
- }
-
- // Control characters and (dependent upon position) numbers get escaped as code points
- return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
- }
-
- // Other potentially-special ASCII characters get backslash-escaped
- return "\\" + ch;
- },
-
- // Used for iframes
- // See setDocument()
- // Removing the function wrapper causes a "Permission Denied"
- // error in IE
- unloadHandler = function() {
- setDocument();
- },
-
- disabledAncestor = addCombinator(
- function( elem ) {
- return elem.disabled === true && ("form" in elem || "label" in elem);
- },
- { dir: "parentNode", next: "legend" }
- );
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- (arr = slice.call( preferredDoc.childNodes )),
- preferredDoc.childNodes
- );
- // Support: Android<4.0
- // Detect silently failing push.apply
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- push_native.apply( target, slice.call(els) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
- // Can't trust NodeList.length
- while ( (target[j++] = els[i++]) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var m, i, elem, nid, match, groups, newSelector,
- newContext = context && context.ownerDocument,
-
- // nodeType defaults to 9, since context defaults to document
- nodeType = context ? context.nodeType : 9;
-
- results = results || [];
-
- // Return early from calls with invalid selector or context
- if ( typeof selector !== "string" || !selector ||
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
- return results;
- }
-
- // Try to shortcut find operations (as opposed to filters) in HTML documents
- if ( !seed ) {
-
- if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
- setDocument( context );
- }
- context = context || document;
-
- if ( documentIsHTML ) {
-
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
- // (excepting DocumentFragment context, where the methods don't exist)
- if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
-
- // ID selector
- if ( (m = match[1]) ) {
-
- // Document context
- if ( nodeType === 9 ) {
- if ( (elem = context.getElementById( m )) ) {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
-
- // Element context
- } else {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( newContext && (elem = newContext.getElementById( m )) &&
- contains( context, elem ) &&
- elem.id === m ) {
-
- results.push( elem );
- return results;
- }
- }
-
- // Type selector
- } else if ( match[2] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Class selector
- } else if ( (m = match[3]) && support.getElementsByClassName &&
- context.getElementsByClassName ) {
-
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // Take advantage of querySelectorAll
- if ( support.qsa &&
- !compilerCache[ selector + " " ] &&
- (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
-
- if ( nodeType !== 1 ) {
- newContext = context;
- newSelector = selector;
-
- // qSA looks outside Element context, which is not what we want
- // Thanks to Andrew Dupont for this workaround technique
- // Support: IE <=8
- // Exclude object elements
- } else if ( context.nodeName.toLowerCase() !== "object" ) {
-
- // Capture the context ID, setting it first if necessary
- if ( (nid = context.getAttribute( "id" )) ) {
- nid = nid.replace( rcssescape, fcssescape );
- } else {
- context.setAttribute( "id", (nid = expando) );
- }
-
- // Prefix every selector in the list
- groups = tokenize( selector );
- i = groups.length;
- while ( i-- ) {
- groups[i] = "#" + nid + " " + toSelector( groups[i] );
- }
- newSelector = groups.join( "," );
-
- // Expand context for sibling selectors
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
- context;
- }
-
- if ( newSelector ) {
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch ( qsaError ) {
- } finally {
- if ( nid === expando ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return (cache[ key + " " ] = value);
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created element and returns a boolean result
- */
-function assert( fn ) {
- var el = document.createElement("fieldset");
-
- try {
- return !!fn( el );
- } catch (e) {
- return false;
- } finally {
- // Remove from its parent by default
- if ( el.parentNode ) {
- el.parentNode.removeChild( el );
- }
- // release memory in IE
- el = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split("|"),
- i = arr.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[i] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- a.sourceIndex - b.sourceIndex;
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( (cur = cur.nextSibling) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for :enabled/:disabled
- * @param {Boolean} disabled true for :disabled; false for :enabled
- */
-function createDisabledPseudo( disabled ) {
-
- // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
- return function( elem ) {
-
- // Only certain elements can match :enabled or :disabled
- // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
- // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
- if ( "form" in elem ) {
-
- // Check for inherited disabledness on relevant non-disabled elements:
- // * listed form-associated elements in a disabled fieldset
- // https://html.spec.whatwg.org/multipage/forms.html#category-listed
- // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
- // * option elements in a disabled optgroup
- // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
- // All such elements have a "form" property.
- if ( elem.parentNode && elem.disabled === false ) {
-
- // Option elements defer to a parent optgroup if present
- if ( "label" in elem ) {
- if ( "label" in elem.parentNode ) {
- return elem.parentNode.disabled === disabled;
- } else {
- return elem.disabled === disabled;
- }
- }
-
- // Support: IE 6 - 11
- // Use the isDisabled shortcut property to check for disabled fieldset ancestors
- return elem.isDisabled === disabled ||
-
- // Where there is no isDisabled, check manually
- /* jshint -W018 */
- elem.isDisabled !== !disabled &&
- disabledAncestor( elem ) === disabled;
- }
-
- return elem.disabled === disabled;
-
- // Try to winnow out elements that can't be disabled before trusting the disabled property.
- // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
- // even exist on them, let alone have a boolean value.
- } else if ( "label" in elem ) {
- return elem.disabled === disabled;
- }
-
- // Remaining elements are neither :enabled nor :disabled
- return false;
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction(function( argument ) {
- argument = +argument;
- return markFunction(function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ (j = matchIndexes[i]) ] ) {
- seed[j] = !(matches[j] = seed[j]);
- }
- }
- });
- });
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && (elem.ownerDocument || elem).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare, subWindow,
- doc = node ? node.ownerDocument || node : preferredDoc;
-
- // Return early if doc is invalid or already selected
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Update global variables
- document = doc;
- docElem = document.documentElement;
- documentIsHTML = !isXML( document );
-
- // Support: IE 9-11, Edge
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
- if ( preferredDoc !== document &&
- (subWindow = document.defaultView) && subWindow.top !== subWindow ) {
-
- // Support: IE 11, Edge
- if ( subWindow.addEventListener ) {
- subWindow.addEventListener( "unload", unloadHandler, false );
-
- // Support: IE 9 - 10 only
- } else if ( subWindow.attachEvent ) {
- subWindow.attachEvent( "onunload", unloadHandler );
- }
- }
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties
- // (excepting IE8 booleans)
- support.attributes = assert(function( el ) {
- el.className = "i";
- return !el.getAttribute("className");
- });
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert(function( el ) {
- el.appendChild( document.createComment("") );
- return !el.getElementsByTagName("*").length;
- });
-
- // Support: IE<9
- support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programmatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert(function( el ) {
- docElem.appendChild( el ).id = expando;
- return !document.getElementsByName || !document.getElementsByName( expando ).length;
- });
-
- // ID filter and find
- if ( support.getById ) {
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute("id") === attrId;
- };
- };
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var elem = context.getElementById( id );
- return elem ? [ elem ] : [];
- }
- };
- } else {
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== "undefined" &&
- elem.getAttributeNode("id");
- return node && node.value === attrId;
- };
- };
-
- // Support: IE 6 - 7 only
- // getElementById is not reliable as a find shortcut
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var node, i, elems,
- elem = context.getElementById( id );
-
- if ( elem ) {
-
- // Verify the id attribute
- node = elem.getAttributeNode("id");
- if ( node && node.value === id ) {
- return [ elem ];
- }
-
- // Fall back on getElementsByName
- elems = context.getElementsByName( id );
- i = 0;
- while ( (elem = elems[i++]) ) {
- node = elem.getAttributeNode("id");
- if ( node && node.value === id ) {
- return [ elem ];
- }
- }
- }
-
- return [];
- }
- };
- }
-
- // Tag
- Expr.find["TAG"] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( tag );
-
- // DocumentFragment nodes don't have gEBTN
- } else if ( support.qsa ) {
- return context.querySelectorAll( tag );
- }
- } :
-
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
- // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( (elem = results[i++]) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See https://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert(function( el ) {
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // https://bugs.jquery.com/ticket/12359
- docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
- "<select id='" + expando + "-\r\\' msallowcapture=''>" +
- "<option selected=''></option></select>";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( el.querySelectorAll("[msallowcapture^='']").length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !el.querySelectorAll("[selected]").length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
- if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
- rbuggyQSA.push("~=");
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !el.querySelectorAll(":checked").length ) {
- rbuggyQSA.push(":checked");
- }
-
- // Support: Safari 8+, iOS 8+
- // https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibling-combinator selector` fails
- if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
- rbuggyQSA.push(".#.+[+~]");
- }
- });
-
- assert(function( el ) {
- el.innerHTML = "<a href='' disabled='disabled'></a>" +
- "<select disabled='disabled'><option/></select>";
-
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = document.createElement("input");
- input.setAttribute( "type", "hidden" );
- el.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( el.querySelectorAll("[name=d]").length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( el.querySelectorAll(":enabled").length !== 2 ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Support: IE9-11+
- // IE's :disabled selector does not pick up the children of disabled fieldsets
- docElem.appendChild( el ).disabled = true;
- if ( el.querySelectorAll(":disabled").length !== 2 ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Opera 10-11 does not throw on post-comma invalid pseudos
- el.querySelectorAll("*,:x");
- rbuggyQSA.push(",.*:");
- });
- }
-
- if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector) )) ) {
-
- assert(function( el ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( el, "*" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( el, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- });
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully self-exclusive
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ));
- } :
- function( a, b ) {
- if ( b ) {
- while ( (b = b.parentNode) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
- return -1;
- }
- if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
- return a === document ? -1 :
- b === document ? 1 :
- aup ? -1 :
- bup ? 1 :
- sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( (cur = cur.parentNode) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( (cur = cur.parentNode) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[i] === bp[i] ) {
- i++;
- }
-
- return i ?
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[i], bp[i] ) :
-
- // Otherwise nodes in our document sort first
- ap[i] === preferredDoc ? -1 :
- bp[i] === preferredDoc ? 1 :
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- // Make sure that attribute selectors are quoted
- expr = expr.replace( rattributeQuotes, "='$1']" );
-
- if ( support.matchesSelector && documentIsHTML &&
- !compilerCache[ expr + " " ] &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch (e) {}
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
- // Set document vars if needed
- if ( ( context.ownerDocument || context ) !== document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- (val = elem.getAttributeNode(name)) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.escape = function( sel ) {
- return (sel + "").replace( rcssescape, fcssescape );
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( (elem = results[i++]) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
- // If no nodeType, this is expected to be an array
- while ( (node = elem[i++]) ) {
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[1] = match[1].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
-
- if ( match[2] === "~=" ) {
- match[3] = " " + match[3] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[1] = match[1].toLowerCase();
-
- if ( match[1].slice( 0, 3 ) === "nth" ) {
- // nth-* requires argument
- if ( !match[3] ) {
- Sizzle.error( match[0] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
- match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[3] ) {
- Sizzle.error( match[0] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[6] && match[2];
-
- if ( matchExpr["CHILD"].test( match[0] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[3] ) {
- match[2] = match[4] || match[5] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
- // Get excess from tokenize (recursively)
- (excess = tokenize( unquoted, true )) &&
- // advance to the next closing parenthesis
- (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
- // excess is a negative index
- match[0] = match[0].slice( 0, excess );
- match[2] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() { return true; } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
- classCache( className, function( elem ) {
- return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
- });
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- };
- },
-
- "CHILD": function( type, what, argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, context, xml ) {
- var cache, uniqueCache, outerCache, node, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType,
- diff = false;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( (node = node[ dir ]) ) {
- if ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) {
-
- return false;
- }
- }
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
-
- // Seek `elem` from a previously-cached index
-
- // ...in a gzip-friendly way
- node = parent;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex && cache[ 2 ];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( (node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- } else {
- // Use previously-cached element index if available
- if ( useCache ) {
- // ...in a gzip-friendly way
- node = elem;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex;
- }
-
- // xml :nth-child(...)
- // or :nth-last-child(...) or :nth(-last)?-of-type(...)
- if ( diff === false ) {
- // Use the same loop as above to seek `elem` from the start
- while ( (node = ++nodeIndex && node && node[ dir ] ||
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- if ( ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) &&
- ++diff ) {
-
- // Cache the index of each encountered element
- if ( useCache ) {
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- uniqueCache[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction(function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf( seed, matched[i] );
- seed[ idx ] = !( matches[ idx ] = matched[i] );
- }
- }) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
- // Potentially complex pseudos
- "not": markFunction(function( selector ) {
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction(function( seed, matches, context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( (elem = unmatched[i]) ) {
- seed[i] = !(matches[i] = elem);
- }
- }
- }) :
- function( elem, context, xml ) {
- input[0] = elem;
- matcher( input, null, xml, results );
- // Don't keep the element (issue #299)
- input[0] = null;
- return !results.pop();
- };
- }),
-
- "has": markFunction(function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- }),
-
- "contains": markFunction(function( text ) {
- text = text.replace( runescape, funescape );
- return function( elem ) {
- return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
- };
- }),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
- // lang value must be a valid identifier
- if ( !ridentifier.test(lang || "") ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( (elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
- return false;
- };
- }),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
- },
-
- // Boolean properties
- "enabled": createDisabledPseudo( false ),
- "disabled": createDisabledPseudo( true ),
-
- "checked": function( elem ) {
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
- },
-
- "selected": function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos["empty"]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo(function() {
- return [ 0 ];
- }),
-
- "last": createPositionalPseudo(function( matchIndexes, length ) {
- return [ length - 1 ];
- }),
-
- "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- }),
-
- "even": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "odd": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- })
- }
-};
-
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || (match = rcomma.exec( soFar )) ) {
- if ( match ) {
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[0].length ) || soFar;
- }
- groups.push( (tokens = []) );
- }
-
- matched = false;
-
- // Combinators
- if ( (match = rcombinators.exec( soFar )) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- // Cast descendant combinators to space
- type: match[0].replace( rtrim, " " )
- });
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
- (match = preFilters[ type ]( match ))) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- type: type,
- matches: match
- });
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[i].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- skip = combinator.next,
- key = skip || dir,
- checkNonElements = base && key === "parentNode",
- doneName = done++;
-
- return combinator.first ?
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- return false;
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, uniqueCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
- if ( xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || (elem[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
-
- if ( skip && skip === elem.nodeName.toLowerCase() ) {
- elem = elem[ dir ] || elem;
- } else if ( (oldCache = uniqueCache[ key ]) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return (newCache[ 2 ] = oldCache[ 2 ]);
- } else {
- // Reuse newcache so results back-propagate to previous elements
- uniqueCache[ key ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
- return true;
- }
- }
- }
- }
- }
- return false;
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[i]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[0];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[i], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( (elem = unmatched[i]) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction(function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( (elem = temp[i]) ) {
- matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) ) {
- // Restore matcherIn since elem is not yet a final match
- temp.push( (matcherIn[i] = elem) );
- }
- }
- postFinder( null, (matcherOut = []), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) &&
- (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
-
- seed[temp] = !(results[temp] = elem);
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- });
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[0].type ],
- implicitRelative = leadingRelative || Expr.relative[" "],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- (checkContext = context).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
- // Avoid hanging onto element (issue #299)
- checkContext = null;
- return ret;
- } ];
-
- for ( ; i < len; i++ ) {
- if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
- matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
- } else {
- matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[j].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
- ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
- len = elems.length;
-
- if ( outermost ) {
- outermostContext = context === document || context || outermost;
- }
-
- // Add elements passing elementMatchers directly to results
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
- for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
- if ( !context && elem.ownerDocument !== document ) {
- setDocument( elem );
- xml = !documentIsHTML;
- }
- while ( (matcher = elementMatchers[j++]) ) {
- if ( matcher( elem, context || document, xml) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
- // They will have gone through all possible matchers
- if ( (elem = !matcher && elem) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // `i` is now the count of elements visited above, and adding it to `matchedCount`
- // makes the latter nonnegative.
- matchedCount += i;
-
- // Apply set filters to unmatched elements
- // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
- // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
- // no element matchers and no seed.
- // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
- // case, which will result in a "00" `matchedCount` that differs from `i` but is also
- // numerically zero.
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( (matcher = setMatchers[j++]) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !(unmatched[i] || setMatched[i]) ) {
- setMatched[i] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[i] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( (selector = compiled.selector || selector) );
-
- results = results || [];
-
- // Try to minimize operations if there is only one selector in the list and no seed
- // (the latter of which guarantees us context)
- if ( match.length === 1 ) {
-
- // Reduce context if the leading compound selector is an ID
- tokens = match[0] = match[0].slice( 0 );
- if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
- context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {
-
- context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[i];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ (type = token.type) ] ) {
- break;
- }
- if ( (find = Expr.find[ type ]) ) {
- // Search, expanding context for leading sibling combinators
- if ( (seed = find(
- token.matches[0].replace( runescape, funescape ),
- rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
- )) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert(function( el ) {
- // Should return 1, but returns 4 (following)
- return el.compareDocumentPosition( document.createElement("fieldset") ) & 1;
-});
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert(function( el ) {
- el.innerHTML = "<a href='#'></a>";
- return el.firstChild.getAttribute("href") === "#" ;
-}) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- });
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert(function( el ) {
- el.innerHTML = "<input/>";
- el.firstChild.setAttribute( "value", "" );
- return el.firstChild.getAttribute( "value" ) === "";
-}) ) {
- addHandle( "value", function( elem, name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- });
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert(function( el ) {
- return el.getAttribute("disabled") == null;
-}) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- (val = elem.getAttributeNode( name )) && val.specified ?
- val.value :
- null;
- }
- });
-}
-
-return Sizzle;
-
-})( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-
-// Deprecated
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-jQuery.escapeSelector = Sizzle.escape;
-
-
-
-
-var dir = function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
-};
-
-
-var siblings = function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
-};
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
-
-
-
-var risSimple = /^.[^:#\[\.,]*$/;
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- return !!qualifier.call( elem, i, elem ) !== not;
- } );
- }
-
- // Single element
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- } );
- }
-
- // Arraylike of elements (jQuery, arguments, Array)
- if ( typeof qualifier !== "string" ) {
- return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
- } );
- }
-
- // Simple selector that can be filtered directly, removing non-Elements
- if ( risSimple.test( qualifier ) ) {
- return jQuery.filter( qualifier, elements, not );
- }
-
- // Complex selector, compare the two sets, removing non-Elements
- qualifier = jQuery.filter( qualifier, elements );
- return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;
- } );
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- if ( elems.length === 1 && elem.nodeType === 1 ) {
- return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
- }
-
- return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- } ) );
-};
-
-jQuery.fn.extend( {
- find: function( selector ) {
- var i, ret,
- len = this.length,
- self = this;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- } ) );
- }
-
- ret = this.pushStack( [] );
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- return len > 1 ? jQuery.uniqueSort( ret ) : ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow( this, selector || [], false ) );
- },
- not: function( selector ) {
- return this.pushStack( winnow( this, selector || [], true ) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-} );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // A simple way to check for HTML strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- // Shortcut simple #id case for speed
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
-
- init = jQuery.fn.init = function( selector, context, root ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Method init() accepts an alternate rootjQuery
- // so migrate can support jQuery.sub (gh-2101)
- root = root || rootjQuery;
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector[ 0 ] === "<" &&
- selector[ selector.length - 1 ] === ">" &&
- selector.length >= 3 ) {
-
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && ( match[ 1 ] || !context ) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[ 1 ] ) {
- context = context instanceof jQuery ? context[ 0 ] : context;
-
- // Option to run scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[ 1 ],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
-
- // Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[ 2 ] );
-
- if ( elem ) {
-
- // Inject the element directly into the jQuery object
- this[ 0 ] = elem;
- this.length = 1;
- }
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || root ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this[ 0 ] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return root.ready !== undefined ?
- root.ready( selector ) :
-
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
- // Methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend( {
- has: function( target ) {
- var targets = jQuery( target, this ),
- l = targets.length;
-
- return this.filter( function() {
- var i = 0;
- for ( ; i < l; i++ ) {
- if ( jQuery.contains( this, targets[ i ] ) ) {
- return true;
- }
- }
- } );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- targets = typeof selectors !== "string" && jQuery( selectors );
-
- // Positional selectors never match, since there's no _selection_ context
- if ( !rneedsContext.test( selectors ) ) {
- for ( ; i < l; i++ ) {
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
- // Always skip document fragments
- if ( cur.nodeType < 11 && ( targets ?
- targets.index( cur ) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
- },
-
- // Determine the position of an element within the set
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // Index in selector
- if ( typeof elem === "string" ) {
- return indexOf.call( jQuery( elem ), this[ 0 ] );
- }
-
- // Locate the position of the desired element
- return indexOf.call( this,
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem
- );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.uniqueSort(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter( selector )
- );
- }
-} );
-
-function sibling( cur, dir ) {
- while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
- return cur;
-}
-
-jQuery.each( {
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return siblings( elem.firstChild );
- },
- contents: function( elem ) {
- return elem.contentDocument || jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var matched = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- matched = jQuery.filter( selector, matched );
- }
-
- if ( this.length > 1 ) {
-
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- jQuery.uniqueSort( matched );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- matched.reverse();
- }
- }
-
- return this.pushStack( matched );
- };
-} );
-var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
- var object = {};
- jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- } );
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- createOptions( options ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
-
- // Last fire value for non-forgettable lists
- memory,
-
- // Flag to know if list was already fired
- fired,
-
- // Flag to prevent firing
- locked,
-
- // Actual callback list
- list = [],
-
- // Queue of execution data for repeatable lists
- queue = [],
-
- // Index of currently firing callback (modified by add/remove as needed)
- firingIndex = -1,
-
- // Fire callbacks
- fire = function() {
-
- // Enforce single-firing
- locked = options.once;
-
- // Execute callbacks for all pending executions,
- // respecting firingIndex overrides and runtime changes
- fired = firing = true;
- for ( ; queue.length; firingIndex = -1 ) {
- memory = queue.shift();
- while ( ++firingIndex < list.length ) {
-
- // Run callback and check for early termination
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
- options.stopOnFalse ) {
-
- // Jump to end and forget the data so .add doesn't re-fire
- firingIndex = list.length;
- memory = false;
- }
- }
- }
-
- // Forget the data if we're done with it
- if ( !options.memory ) {
- memory = false;
- }
-
- firing = false;
-
- // Clean up if we're done firing for good
- if ( locked ) {
-
- // Keep an empty list if we have data for future add calls
- if ( memory ) {
- list = [];
-
- // Otherwise, this object is spent
- } else {
- list = "";
- }
- }
- },
-
- // Actual Callbacks object
- self = {
-
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
-
- // If we have memory from a past run, we should fire after adding
- if ( memory && !firing ) {
- firingIndex = list.length - 1;
- queue.push( memory );
- }
-
- ( function add( args ) {
- jQuery.each( args, function( _, arg ) {
- if ( jQuery.isFunction( arg ) ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
-
- // Inspect recursively
- add( arg );
- }
- } );
- } )( arguments );
-
- if ( memory && !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Remove a callback from the list
- remove: function() {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
-
- // Handle firing indexes
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- } );
- return this;
- },
-
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ?
- jQuery.inArray( fn, list ) > -1 :
- list.length > 0;
- },
-
- // Remove all callbacks from the list
- empty: function() {
- if ( list ) {
- list = [];
- }
- return this;
- },
-
- // Disable .fire and .add
- // Abort any current/pending executions
- // Clear all callbacks and values
- disable: function() {
- locked = queue = [];
- list = memory = "";
- return this;
- },
- disabled: function() {
- return !list;
- },
-
- // Disable .fire
- // Also disable .add unless we have memory (since it would have no effect)
- // Abort any pending executions
- lock: function() {
- locked = queue = [];
- if ( !memory && !firing ) {
- list = memory = "";
- }
- return this;
- },
- locked: function() {
- return !!locked;
- },
-
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( !locked ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- queue.push( args );
- if ( !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
-
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-function Identity( v ) {
- return v;
-}
-function Thrower( ex ) {
- throw ex;
-}
-
-function adoptValue( value, resolve, reject ) {
- var method;
-
- try {
-
- // Check for promise aspect first to privilege synchronous behavior
- if ( value && jQuery.isFunction( ( method = value.promise ) ) ) {
- method.call( value ).done( resolve ).fail( reject );
-
- // Other thenables
- } else if ( value && jQuery.isFunction( ( method = value.then ) ) ) {
- method.call( value, resolve, reject );
-
- // Other non-thenables
- } else {
-
- // Support: Android 4.0 only
- // Strict mode functions invoked without .call/.apply get global-object context
- resolve.call( undefined, value );
- }
-
- // For Promises/A+, convert exceptions into rejections
- // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
- // Deferred#then to conditionally suppress rejection.
- } catch ( value ) {
-
- // Support: Android 4.0 only
- // Strict mode functions invoked without .call/.apply get global-object context
- reject.call( undefined, value );
- }
-}
-
-jQuery.extend( {
-
- Deferred: function( func ) {
- var tuples = [
-
- // action, add listener, callbacks,
- // ... .then handlers, argument index, [final state]
- [ "notify", "progress", jQuery.Callbacks( "memory" ),
- jQuery.Callbacks( "memory" ), 2 ],
- [ "resolve", "done", jQuery.Callbacks( "once memory" ),
- jQuery.Callbacks( "once memory" ), 0, "resolved" ],
- [ "reject", "fail", jQuery.Callbacks( "once memory" ),
- jQuery.Callbacks( "once memory" ), 1, "rejected" ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- "catch": function( fn ) {
- return promise.then( null, fn );
- },
-
- // Keep pipe for back-compat
- pipe: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
-
- return jQuery.Deferred( function( newDefer ) {
- jQuery.each( tuples, function( i, tuple ) {
-
- // Map tuples (progress, done, fail) to arguments (done, fail, progress)
- var fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
-
- // deferred.progress(function() { bind to newDefer or newDefer.notify })
- // deferred.done(function() { bind to newDefer or newDefer.resolve })
- // deferred.fail(function() { bind to newDefer or newDefer.reject })
- deferred[ tuple[ 1 ] ]( function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise()
- .progress( newDefer.notify )
- .done( newDefer.resolve )
- .fail( newDefer.reject );
- } else {
- newDefer[ tuple[ 0 ] + "With" ](
- this,
- fn ? [ returned ] : arguments
- );
- }
- } );
- } );
- fns = null;
- } ).promise();
- },
- then: function( onFulfilled, onRejected, onProgress ) {
- var maxDepth = 0;
- function resolve( depth, deferred, handler, special ) {
- return function() {
- var that = this,
- args = arguments,
- mightThrow = function() {
- var returned, then;
-
- // Support: Promises/A+ section 2.3.3.3.3
- // https://promisesaplus.com/#point-59
- // Ignore double-resolution attempts
- if ( depth < maxDepth ) {
- return;
- }
-
- returned = handler.apply( that, args );
-
- // Support: Promises/A+ section 2.3.1
- // https://promisesaplus.com/#point-48
- if ( returned === deferred.promise() ) {
- throw new TypeError( "Thenable self-resolution" );
- }
-
- // Support: Promises/A+ sections 2.3.3.1, 3.5
- // https://promisesaplus.com/#point-54
- // https://promisesaplus.com/#point-75
- // Retrieve `then` only once
- then = returned &&
-
- // Support: Promises/A+ section 2.3.4
- // https://promisesaplus.com/#point-64
- // Only check objects and functions for thenability
- ( typeof returned === "object" ||
- typeof returned === "function" ) &&
- returned.then;
-
- // Handle a returned thenable
- if ( jQuery.isFunction( then ) ) {
-
- // Special processors (notify) just wait for resolution
- if ( special ) {
- then.call(
- returned,
- resolve( maxDepth, deferred, Identity, special ),
- resolve( maxDepth, deferred, Thrower, special )
- );
-
- // Normal processors (resolve) also hook into progress
- } else {
-
- // ...and disregard older resolution values
- maxDepth++;
-
- then.call(
- returned,
- resolve( maxDepth, deferred, Identity, special ),
- resolve( maxDepth, deferred, Thrower, special ),
- resolve( maxDepth, deferred, Identity,
- deferred.notifyWith )
- );
- }
-
- // Handle all other returned values
- } else {
-
- // Only substitute handlers pass on context
- // and multiple values (non-spec behavior)
- if ( handler !== Identity ) {
- that = undefined;
- args = [ returned ];
- }
-
- // Process the value(s)
- // Default process is resolve
- ( special || deferred.resolveWith )( that, args );
- }
- },
-
- // Only normal processors (resolve) catch and reject exceptions
- process = special ?
- mightThrow :
- function() {
- try {
- mightThrow();
- } catch ( e ) {
-
- if ( jQuery.Deferred.exceptionHook ) {
- jQuery.Deferred.exceptionHook( e,
- process.stackTrace );
- }
-
- // Support: Promises/A+ section 2.3.3.3.4.1
- // https://promisesaplus.com/#point-61
- // Ignore post-resolution exceptions
- if ( depth + 1 >= maxDepth ) {
-
- // Only substitute handlers pass on context
- // and multiple values (non-spec behavior)
- if ( handler !== Thrower ) {
- that = undefined;
- args = [ e ];
- }
-
- deferred.rejectWith( that, args );
- }
- }
- };
-
- // Support: Promises/A+ section 2.3.3.3.1
- // https://promisesaplus.com/#point-57
- // Re-resolve promises immediately to dodge false rejection from
- // subsequent errors
- if ( depth ) {
- process();
- } else {
-
- // Call an optional hook to record the stack, in case of exception
- // since it's otherwise lost when execution goes async
- if ( jQuery.Deferred.getStackHook ) {
- process.stackTrace = jQuery.Deferred.getStackHook();
- }
- window.setTimeout( process );
- }
- };
- }
-
- return jQuery.Deferred( function( newDefer ) {
-
- // progress_handlers.add( ... )
- tuples[ 0 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- jQuery.isFunction( onProgress ) ?
- onProgress :
- Identity,
- newDefer.notifyWith
- )
- );
-
- // fulfilled_handlers.add( ... )
- tuples[ 1 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- jQuery.isFunction( onFulfilled ) ?
- onFulfilled :
- Identity
- )
- );
-
- // rejected_handlers.add( ... )
- tuples[ 2 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- jQuery.isFunction( onRejected ) ?
- onRejected :
- Thrower
- )
- );
- } ).promise();
- },
-
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 5 ];
-
- // promise.progress = list.add
- // promise.done = list.add
- // promise.fail = list.add
- promise[ tuple[ 1 ] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add(
- function() {
-
- // state = "resolved" (i.e., fulfilled)
- // state = "rejected"
- state = stateString;
- },
-
- // rejected_callbacks.disable
- // fulfilled_callbacks.disable
- tuples[ 3 - i ][ 2 ].disable,
-
- // progress_callbacks.lock
- tuples[ 0 ][ 2 ].lock
- );
- }
-
- // progress_handlers.fire
- // fulfilled_handlers.fire
- // rejected_handlers.fire
- list.add( tuple[ 3 ].fire );
-
- // deferred.notify = function() { deferred.notifyWith(...) }
- // deferred.resolve = function() { deferred.resolveWith(...) }
- // deferred.reject = function() { deferred.rejectWith(...) }
- deferred[ tuple[ 0 ] ] = function() {
- deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
- return this;
- };
-
- // deferred.notifyWith = list.fireWith
- // deferred.resolveWith = list.fireWith
- // deferred.rejectWith = list.fireWith
- deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
- } );
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( singleValue ) {
- var
-
- // count of uncompleted subordinates
- remaining = arguments.length,
-
- // count of unprocessed arguments
- i = remaining,
-
- // subordinate fulfillment data
- resolveContexts = Array( i ),
- resolveValues = slice.call( arguments ),
-
- // the master Deferred
- master = jQuery.Deferred(),
-
- // subordinate callback factory
- updateFunc = function( i ) {
- return function( value ) {
- resolveContexts[ i ] = this;
- resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( !( --remaining ) ) {
- master.resolveWith( resolveContexts, resolveValues );
- }
- };
- };
-
- // Single- and empty arguments are adopted like Promise.resolve
- if ( remaining <= 1 ) {
- adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject );
-
- // Use .then() to unwrap secondary thenables (cf. gh-3000)
- if ( master.state() === "pending" ||
- jQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
-
- return master.then();
- }
- }
-
- // Multiple arguments are aggregated like Promise.all array elements
- while ( i-- ) {
- adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
- }
-
- return master.promise();
- }
-} );
-
-
-// These usually indicate a programmer mistake during development,
-// warn about them ASAP rather than swallowing them by default.
-var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
-
-jQuery.Deferred.exceptionHook = function( error, stack ) {
-
- // Support: IE 8 - 9 only
- // Console exists when dev tools are open, which can happen at any time
- if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
- window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
- }
-};
-
-
-
-
-jQuery.readyException = function( error ) {
- window.setTimeout( function() {
- throw error;
- } );
-};
-
-
-
-
-// The deferred used on DOM ready
-var readyList = jQuery.Deferred();
-
-jQuery.fn.ready = function( fn ) {
-
- readyList
- .then( fn )
-
- // Wrap jQuery.readyException in a function so that the lookup
- // happens at the time of error handling instead of callback
- // registration.
- .catch( function( error ) {
- jQuery.readyException( error );
- } );
-
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
- }
-} );
-
-jQuery.ready.then = readyList.then;
-
-// The ready event handler and self cleanup method
-function completed() {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
- jQuery.ready();
-}
-
-// Catch cases where $(document).ready() is called
-// after the browser event has already occurred.
-// Support: IE <=9 - 10 only
-// Older IE sometimes signals "interactive" too soon
-if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
-} else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
-}
-
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- len = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( jQuery.type( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !jQuery.isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
-
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < len; i++ ) {
- fn(
- elems[ i ], key, raw ?
- value :
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
- );
- }
- }
- }
-
- if ( chainable ) {
- return elems;
- }
-
- // Gets
- if ( bulk ) {
- return fn.call( elems );
- }
-
- return len ? fn( elems[ 0 ], key ) : emptyGet;
-};
-var acceptData = function( owner ) {
-
- // Accepts only:
- // - Node
- // - Node.ELEMENT_NODE
- // - Node.DOCUMENT_NODE
- // - Object
- // - Any
- return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-};
-
-
-
-
-function Data() {
- this.expando = jQuery.expando + Data.uid++;
-}
-
-Data.uid = 1;
-
-Data.prototype = {
-
- cache: function( owner ) {
-
- // Check if the owner object already has a cache
- var value = owner[ this.expando ];
-
- // If not, create one
- if ( !value ) {
- value = {};
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( acceptData( owner ) ) {
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable property
- // configurable must be true to allow the property to be
- // deleted when data is removed
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- configurable: true
- } );
- }
- }
- }
-
- return value;
- },
- set: function( owner, data, value ) {
- var prop,
- cache = this.cache( owner );
-
- // Handle: [ owner, key, value ] args
- // Always use camelCase key (gh-2257)
- if ( typeof data === "string" ) {
- cache[ jQuery.camelCase( data ) ] = value;
-
- // Handle: [ owner, { properties } ] args
- } else {
-
- // Copy the properties one-by-one to the cache object
- for ( prop in data ) {
- cache[ jQuery.camelCase( prop ) ] = data[ prop ];
- }
- }
- return cache;
- },
- get: function( owner, key ) {
- return key === undefined ?
- this.cache( owner ) :
-
- // Always use camelCase key (gh-2257)
- owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];
- },
- access: function( owner, key, value ) {
-
- // In cases where either:
- //
- // 1. No key was specified
- // 2. A string key was specified, but no value provided
- //
- // Take the "read" path and allow the get method to determine
- // which value to return, respectively either:
- //
- // 1. The entire cache object
- // 2. The data stored at the key
- //
- if ( key === undefined ||
- ( ( key && typeof key === "string" ) && value === undefined ) ) {
-
- return this.get( owner, key );
- }
-
- // When the key is not a string, or both a key and value
- // are specified, set or extend (existing objects) with either:
- //
- // 1. An object of properties
- // 2. A key and value
- //
- this.set( owner, key, value );
-
- // Since the "set" path can have two possible entry points
- // return the expected data based on which path was taken[*]
- return value !== undefined ? value : key;
- },
- remove: function( owner, key ) {
- var i,
- cache = owner[ this.expando ];
-
- if ( cache === undefined ) {
- return;
- }
-
- if ( key !== undefined ) {
-
- // Support array or space separated string of keys
- if ( jQuery.isArray( key ) ) {
-
- // If key is an array of keys...
- // We always set camelCase keys, so remove that.
- key = key.map( jQuery.camelCase );
- } else {
- key = jQuery.camelCase( key );
-
- // If a key with the spaces exists, use it.
- // Otherwise, create an array by matching non-whitespace
- key = key in cache ?
- [ key ] :
- ( key.match( rnothtmlwhite ) || [] );
- }
-
- i = key.length;
-
- while ( i-- ) {
- delete cache[ key[ i ] ];
- }
- }
-
- // Remove the expando if there's no more data
- if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
- // Support: Chrome <=35 - 45
- // Webkit & Blink performance suffers when deleting properties
- // from DOM nodes, so set to undefined instead
- // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
- if ( owner.nodeType ) {
- owner[ this.expando ] = undefined;
- } else {
- delete owner[ this.expando ];
- }
- }
- },
- hasData: function( owner ) {
- var cache = owner[ this.expando ];
- return cache !== undefined && !jQuery.isEmptyObject( cache );
- }
-};
-var dataPriv = new Data();
-
-var dataUser = new Data();
-
-
-
-// Implementation Summary
-//
-// 1. Enforce API surface and semantic compatibility with 1.9.x branch
-// 2. Improve the module's maintainability by reducing the storage
-// paths to a single mechanism.
-// 3. Use the same single mechanism to support "private" and "user" data.
-// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-// 5. Avoid exposing implementation details on user objects (eg. expando properties)
-// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /[A-Z]/g;
-
-function getData( data ) {
- if ( data === "true" ) {
- return true;
- }
-
- if ( data === "false" ) {
- return false;
- }
-
- if ( data === "null" ) {
- return null;
- }
-
- // Only convert to a number if it doesn't change the string
- if ( data === +data + "" ) {
- return +data;
- }
-
- if ( rbrace.test( data ) ) {
- return JSON.parse( data );
- }
-
- return data;
-}
-
-function dataAttr( elem, key, data ) {
- var name;
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = getData( data );
- } catch ( e ) {}
-
- // Make sure we set the data so it isn't changed later
- dataUser.set( elem, key, data );
- } else {
- data = undefined;
- }
- }
- return data;
-}
-
-jQuery.extend( {
- hasData: function( elem ) {
- return dataUser.hasData( elem ) || dataPriv.hasData( elem );
- },
-
- data: function( elem, name, data ) {
- return dataUser.access( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- dataUser.remove( elem, name );
- },
-
- // TODO: Now that all calls to _data and _removeData have been replaced
- // with direct calls to dataPriv methods, these can be deprecated.
- _data: function( elem, name, data ) {
- return dataPriv.access( elem, name, data );
- },
-
- _removeData: function( elem, name ) {
- dataPriv.remove( elem, name );
- }
-} );
-
-jQuery.fn.extend( {
- data: function( key, value ) {
- var i, name, data,
- elem = this[ 0 ],
- attrs = elem && elem.attributes;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = dataUser.get( elem );
-
- if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE 11 only
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.slice( 5 ) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- dataPriv.set( elem, "hasDataAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each( function() {
- dataUser.set( this, key );
- } );
- }
-
- return access( this, function( value ) {
- var data;
-
- // The calling jQuery object (element matches) is not empty
- // (and therefore has an element appears at this[ 0 ]) and the
- // `value` parameter was not undefined. An empty jQuery object
- // will result in `undefined` for elem = this[ 0 ] which will
- // throw an exception if an attempt to read a data cache is made.
- if ( elem && value === undefined ) {
-
- // Attempt to get data from the cache
- // The key will always be camelCased in Data
- data = dataUser.get( elem, key );
- if ( data !== undefined ) {
- return data;
- }
-
- // Attempt to "discover" the data in
- // HTML5 custom data-* attrs
- data = dataAttr( elem, key );
- if ( data !== undefined ) {
- return data;
- }
-
- // We tried really hard, but the data doesn't exist.
- return;
- }
-
- // Set the data...
- this.each( function() {
-
- // We always store the camelCased key
- dataUser.set( this, key, value );
- } );
- }, null, value, arguments.length > 1, null, true );
- },
-
- removeData: function( key ) {
- return this.each( function() {
- dataUser.remove( this, key );
- } );
- }
-} );
-
-
-jQuery.extend( {
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = dataPriv.get( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || jQuery.isArray( data ) ) {
- queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // Clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // Not public - generate a queueHooks object, or return the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
- empty: jQuery.Callbacks( "once memory" ).add( function() {
- dataPriv.remove( elem, [ type + "queue", key ] );
- } )
- } );
- }
-} );
-
-jQuery.fn.extend( {
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[ 0 ], type );
- }
-
- return data === undefined ?
- this :
- this.each( function() {
- var queue = jQuery.queue( this, type, data );
-
- // Ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- dequeue: function( type ) {
- return this.each( function() {
- jQuery.dequeue( this, type );
- } );
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
-
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-} );
-var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var isHiddenWithinTree = function( elem, el ) {
-
- // isHiddenWithinTree might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
-
- // Inline style trumps all
- return elem.style.display === "none" ||
- elem.style.display === "" &&
-
- // Otherwise, check computed style
- // Support: Firefox <=43 - 45
- // Disconnected elements can have computed display: none, so first confirm that elem is
- // in the document.
- jQuery.contains( elem.ownerDocument, elem ) &&
-
- jQuery.css( elem, "display" ) === "none";
- };
-
-var swap = function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
-};
-
-
-
-
-function adjustCSS( elem, prop, valueParts, tween ) {
- var adjusted,
- scale = 1,
- maxIterations = 20,
- currentValue = tween ?
- function() {
- return tween.cur();
- } :
- function() {
- return jQuery.css( elem, prop, "" );
- },
- initial = currentValue(),
- unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
- rcssNum.exec( jQuery.css( elem, prop ) );
-
- if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
- // Trust units reported by jQuery.css
- unit = unit || initialInUnit[ 3 ];
-
- // Make sure we update the tween properties later on
- valueParts = valueParts || [];
-
- // Iteratively approximate from a nonzero starting point
- initialInUnit = +initial || 1;
-
- do {
-
- // If previous iteration zeroed out, double until we get *something*.
- // Use string for doubling so we don't accidentally see scale as unchanged below
- scale = scale || ".5";
-
- // Adjust and apply
- initialInUnit = initialInUnit / scale;
- jQuery.style( elem, prop, initialInUnit + unit );
-
- // Update scale, tolerating zero or NaN from tween.cur()
- // Break the loop if scale is unchanged or perfect, or if we've just had enough.
- } while (
- scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
- );
- }
-
- if ( valueParts ) {
- initialInUnit = +initialInUnit || +initial || 0;
-
- // Apply relative offset (+=/-=) if specified
- adjusted = valueParts[ 1 ] ?
- initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
- +valueParts[ 2 ];
- if ( tween ) {
- tween.unit = unit;
- tween.start = initialInUnit;
- tween.end = adjusted;
- }
- }
- return adjusted;
-}
-
-
-var defaultDisplayMap = {};
-
-function getDefaultDisplay( elem ) {
- var temp,
- doc = elem.ownerDocument,
- nodeName = elem.nodeName,
- display = defaultDisplayMap[ nodeName ];
-
- if ( display ) {
- return display;
- }
-
- temp = doc.body.appendChild( doc.createElement( nodeName ) );
- display = jQuery.css( temp, "display" );
-
- temp.parentNode.removeChild( temp );
-
- if ( display === "none" ) {
- display = "block";
- }
- defaultDisplayMap[ nodeName ] = display;
-
- return display;
-}
-
-function showHide( elements, show ) {
- var display, elem,
- values = [],
- index = 0,
- length = elements.length;
-
- // Determine new display value for elements that need to change
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- display = elem.style.display;
- if ( show ) {
-
- // Since we force visibility upon cascade-hidden elements, an immediate (and slow)
- // check is required in this first loop unless we have a nonempty display value (either
- // inline or about-to-be-restored)
- if ( display === "none" ) {
- values[ index ] = dataPriv.get( elem, "display" ) || null;
- if ( !values[ index ] ) {
- elem.style.display = "";
- }
- }
- if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
- values[ index ] = getDefaultDisplay( elem );
- }
- } else {
- if ( display !== "none" ) {
- values[ index ] = "none";
-
- // Remember what we're overwriting
- dataPriv.set( elem, "display", display );
- }
- }
- }
-
- // Set the display of the elements in a second loop to avoid constant reflow
- for ( index = 0; index < length; index++ ) {
- if ( values[ index ] != null ) {
- elements[ index ].style.display = values[ index ];
- }
- }
-
- return elements;
-}
-
-jQuery.fn.extend( {
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each( function() {
- if ( isHiddenWithinTree( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- } );
- }
-} );
-var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i );
-
-var rscriptType = ( /^$|\/(?:java|ecma)script/i );
-
-
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
-
- // Support: IE <=9 only
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
-
- // XHTML parsers do not magically insert elements in the
- // same way that tag soup parsers do. So we cannot shorten
- // this by omitting <tbody> or other required elements.
- thead: [ 1, "<table>", "</table>" ],
- col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
- _default: [ 0, "", "" ]
-};
-
-// Support: IE <=9 only
-wrapMap.optgroup = wrapMap.option;
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-
-function getAll( context, tag ) {
-
- // Support: IE <=9 - 11 only
- // Use typeof to avoid zero-argument method invocation on host objects (#15151)
- var ret;
-
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- ret = context.getElementsByTagName( tag || "*" );
-
- } else if ( typeof context.querySelectorAll !== "undefined" ) {
- ret = context.querySelectorAll( tag || "*" );
-
- } else {
- ret = [];
- }
-
- if ( tag === undefined || tag && jQuery.nodeName( context, tag ) ) {
- return jQuery.merge( [ context ], ret );
- }
-
- return ret;
-}
-
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- dataPriv.set(
- elems[ i ],
- "globalEval",
- !refElements || dataPriv.get( refElements[ i ], "globalEval" )
- );
- }
-}
-
-
-var rhtml = /<|&#?\w+;/;
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
- var elem, tmp, tag, wrap, contains, j,
- fragment = context.createDocumentFragment(),
- nodes = [],
- i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( jQuery.type( elem ) === "object" ) {
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, tmp.childNodes );
-
- // Remember the top-level container
- tmp = fragment.firstChild;
-
- // Ensure the created nodes are orphaned (#12392)
- tmp.textContent = "";
- }
- }
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
-
- i = 0;
- while ( ( elem = nodes[ i++ ] ) ) {
-
- // Skip elements already in the context collection (trac-4087)
- if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
- if ( ignored ) {
- ignored.push( elem );
- }
- continue;
- }
-
- contains = jQuery.contains( elem.ownerDocument, elem );
-
- // Append to fragment
- tmp = getAll( fragment.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( contains ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( ( elem = tmp[ j++ ] ) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- return fragment;
-}
-
-
-( function() {
- var fragment = document.createDocumentFragment(),
- div = fragment.appendChild( document.createElement( "div" ) ),
- input = document.createElement( "input" );
-
- // Support: Android 4.0 - 4.3 only
- // Check state lost if the name is set (#11217)
- // Support: Windows Web Apps (WWA)
- // `name` and `type` must use .setAttribute for WWA (#14901)
- input.setAttribute( "type", "radio" );
- input.setAttribute( "checked", "checked" );
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
-
- // Support: Android <=4.1 only
- // Older WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE <=11 only
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- div.innerHTML = "<textarea>x</textarea>";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-} )();
-var documentElement = document.documentElement;
-
-
-
-var
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-// Support: IE <=9 only
-// See #13393 for more info
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
-
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
-
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- on( elem, type, selector, data, types[ type ], one );
- }
- return elem;
- }
-
- if ( data == null && fn == null ) {
-
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
-
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
-
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return elem;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
-
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
-
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return elem.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- } );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
-
- var handleObjIn, eventHandle, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.get( elem );
-
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- if ( !elemData ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Ensure that invalid selectors throw exceptions at attach time
- // Evaluate against documentElement in case elem is a non-element node (e.g., document)
- if ( selector ) {
- jQuery.find.matchesSelector( documentElement, selector );
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !( events = elemData.events ) ) {
- events = elemData.events = {};
- }
- if ( !( eventHandle = elemData.handle ) ) {
- eventHandle = elemData.handle = function( e ) {
-
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
- jQuery.event.dispatch.apply( elem, arguments ) : undefined;
- };
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend( {
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join( "." )
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !( handlers = events[ type ] ) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener if the special events handler returns false
- if ( !special.setup ||
- special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var j, origCount, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
- if ( !elemData || !( events = elemData.events ) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[ 2 ] &&
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector ||
- selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown ||
- special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove data and the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- dataPriv.remove( elem, "handle events" );
- }
- },
-
- dispatch: function( nativeEvent ) {
-
- // Make a writable jQuery.Event from the native event object
- var event = jQuery.event.fix( nativeEvent );
-
- var i, j, ret, matched, handleObj, handlerQueue,
- args = new Array( arguments.length ),
- handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[ 0 ] = event;
-
- for ( i = 1; i < arguments.length; i++ ) {
- args[ i ] = arguments[ i ];
- }
-
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( ( handleObj = matched.handlers[ j++ ] ) &&
- !event.isImmediatePropagationStopped() ) {
-
- // Triggered event must either 1) have no namespace, or 2) have namespace(s)
- // a subset or equal to those in the bound event (both can have no namespace).
- if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
- handleObj.handler ).apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( ( event.result = ret ) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, handleObj, sel, matchedHandlers, matchedSelectors,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Find delegate handlers
- if ( delegateCount &&
-
- // Support: IE <=9
- // Black-hole SVG <use> instance trees (trac-13180)
- cur.nodeType &&
-
- // Support: Firefox <=42
- // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
- // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
- // Support: IE 11 only
- // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
- !( event.type === "click" && event.button >= 1 ) ) {
-
- for ( ; cur !== this; cur = cur.parentNode || this ) {
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
- matchedHandlers = [];
- matchedSelectors = {};
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matchedSelectors[ sel ] === undefined ) {
- matchedSelectors[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) > -1 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matchedSelectors[ sel ] ) {
- matchedHandlers.push( handleObj );
- }
- }
- if ( matchedHandlers.length ) {
- handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- cur = this;
- if ( delegateCount < handlers.length ) {
- handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
- }
-
- return handlerQueue;
- },
-
- addProp: function( name, hook ) {
- Object.defineProperty( jQuery.Event.prototype, name, {
- enumerable: true,
- configurable: true,
-
- get: jQuery.isFunction( hook ) ?
- function() {
- if ( this.originalEvent ) {
- return hook( this.originalEvent );
- }
- } :
- function() {
- if ( this.originalEvent ) {
- return this.originalEvent[ name ];
- }
- },
-
- set: function( value ) {
- Object.defineProperty( this, name, {
- enumerable: true,
- configurable: true,
- writable: true,
- value: value
- } );
- }
- } );
- },
-
- fix: function( originalEvent ) {
- return originalEvent[ jQuery.expando ] ?
- originalEvent :
- new jQuery.Event( originalEvent );
- },
-
- special: {
- load: {
-
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- focus: {
-
- // Fire native event if possible so blur/focus sequence is correct
- trigger: function() {
- if ( this !== safeActiveElement() && this.focus ) {
- this.focus();
- return false;
- }
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if ( this === safeActiveElement() && this.blur ) {
- this.blur();
- return false;
- }
- },
- delegateType: "focusout"
- },
- click: {
-
- // For checkbox, fire native event so checked state will be right
- trigger: function() {
- if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
- this.click();
- return false;
- }
- },
-
- // For cross-browser consistency, don't fire native .click() on links
- _default: function( event ) {
- return jQuery.nodeName( event.target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- }
-};
-
-jQuery.removeEvent = function( elem, type, handle ) {
-
- // This "if" is needed for plain objects
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle );
- }
-};
-
-jQuery.Event = function( src, props ) {
-
- // Allow instantiation without the 'new' keyword
- if ( !( this instanceof jQuery.Event ) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
-
- // Support: Android <=2.3 only
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Create target properties
- // Support: Safari <=6 - 7 only
- // Target should not be a text node (#504, #13143)
- this.target = ( src.target && src.target.nodeType === 3 ) ?
- src.target.parentNode :
- src.target;
-
- this.currentTarget = src.currentTarget;
- this.relatedTarget = src.relatedTarget;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- constructor: jQuery.Event,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
- isSimulated: false,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.preventDefault();
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopPropagation();
- }
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Includes all common event props including KeyEvent and MouseEvent specific props
-jQuery.each( {
- altKey: true,
- bubbles: true,
- cancelable: true,
- changedTouches: true,
- ctrlKey: true,
- detail: true,
- eventPhase: true,
- metaKey: true,
- pageX: true,
- pageY: true,
- shiftKey: true,
- view: true,
- "char": true,
- charCode: true,
- key: true,
- keyCode: true,
- button: true,
- buttons: true,
- clientX: true,
- clientY: true,
- offsetX: true,
- offsetY: true,
- pointerId: true,
- pointerType: true,
- screenX: true,
- screenY: true,
- targetTouches: true,
- toElement: true,
- touches: true,
-
- which: function( event ) {
- var button = event.button;
-
- // Add which for key events
- if ( event.which == null && rkeyEvent.test( event.type ) ) {
- return event.charCode != null ? event.charCode : event.keyCode;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
- if ( button & 1 ) {
- return 1;
- }
-
- if ( button & 2 ) {
- return 3;
- }
-
- if ( button & 4 ) {
- return 2;
- }
-
- return 0;
- }
-
- return event.which;
- }
-}, jQuery.event.addProp );
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mouseenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-} );
-
-jQuery.fn.extend( {
-
- on: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn );
- },
- one: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
-
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ?
- handleObj.origType + "." + handleObj.namespace :
- handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
-
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
-
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each( function() {
- jQuery.event.remove( this, types, fn, selector );
- } );
- }
-} );
-
-
-var
-
- /* eslint-disable max-len */
-
- // See https://github.com/eslint/eslint/issues/3229
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
-
- /* eslint-enable */
-
- // Support: IE <=10 - 11, Edge 12 - 13
- // In IE/Edge using regex groups here causes severe slowdowns.
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
- rnoInnerhtml = /<script|<style|<link/i,
-
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptTypeMasked = /^true\/(.*)/,
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
-function manipulationTarget( elem, content ) {
- if ( jQuery.nodeName( elem, "table" ) &&
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
-
- return elem.getElementsByTagName( "tbody" )[ 0 ] || elem;
- }
-
- return elem;
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
- elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
- return elem;
-}
-function restoreScript( elem ) {
- var match = rscriptTypeMasked.exec( elem.type );
-
- if ( match ) {
- elem.type = match[ 1 ];
- } else {
- elem.removeAttribute( "type" );
- }
-
- return elem;
-}
-
-function cloneCopyEvent( src, dest ) {
- var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
-
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- // 1. Copy private data: events, handlers, etc.
- if ( dataPriv.hasData( src ) ) {
- pdataOld = dataPriv.access( src );
- pdataCur = dataPriv.set( dest, pdataOld );
- events = pdataOld.events;
-
- if ( events ) {
- delete pdataCur.handle;
- pdataCur.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
- }
-
- // 2. Copy user data
- if ( dataUser.hasData( src ) ) {
- udataOld = dataUser.access( src );
- udataCur = jQuery.extend( {}, udataOld );
-
- dataUser.set( dest, udataCur );
- }
-}
-
-// Fix IE bugs, see support tests
-function fixInput( src, dest ) {
- var nodeName = dest.nodeName.toLowerCase();
-
- // Fails to persist the checked state of a cloned checkbox or radio button.
- if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
- dest.checked = src.checked;
-
- // Fails to return the selected option to the default selected state when cloning options
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-}
-
-function domManip( collection, args, callback, ignored ) {
-
- // Flatten any nested arrays
- args = concat.apply( [], args );
-
- var fragment, first, scripts, hasScripts, node, doc,
- i = 0,
- l = collection.length,
- iNoClone = l - 1,
- value = args[ 0 ],
- isFunction = jQuery.isFunction( value );
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( isFunction ||
- ( l > 1 && typeof value === "string" &&
- !support.checkClone && rchecked.test( value ) ) ) {
- return collection.each( function( index ) {
- var self = collection.eq( index );
- if ( isFunction ) {
- args[ 0 ] = value.call( this, index, self.html() );
- }
- domManip( self, args, callback, ignored );
- } );
- }
-
- if ( l ) {
- fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
- first = fragment.firstChild;
-
- if ( fragment.childNodes.length === 1 ) {
- fragment = first;
- }
-
- // Require either new content or an interest in ignored elements to invoke the callback
- if ( first || ignored ) {
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
- hasScripts = scripts.length;
-
- // Use the original fragment for the last item
- // instead of the first because it can end up
- // being emptied incorrectly in certain situations (#8070).
- for ( ; i < l; i++ ) {
- node = fragment;
-
- if ( i !== iNoClone ) {
- node = jQuery.clone( node, true, true );
-
- // Keep references to cloned scripts for later restoration
- if ( hasScripts ) {
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( scripts, getAll( node, "script" ) );
- }
- }
-
- callback.call( collection[ i ], node, i );
- }
-
- if ( hasScripts ) {
- doc = scripts[ scripts.length - 1 ].ownerDocument;
-
- // Reenable scripts
- jQuery.map( scripts, restoreScript );
-
- // Evaluate executable scripts on first document insertion
- for ( i = 0; i < hasScripts; i++ ) {
- node = scripts[ i ];
- if ( rscriptType.test( node.type || "" ) &&
- !dataPriv.access( node, "globalEval" ) &&
- jQuery.contains( doc, node ) ) {
-
- if ( node.src ) {
-
- // Optional AJAX dependency, but won't run scripts if not present
- if ( jQuery._evalUrl ) {
- jQuery._evalUrl( node.src );
- }
- } else {
- DOMEval( node.textContent.replace( rcleanScript, "" ), doc );
- }
- }
- }
- }
- }
- }
-
- return collection;
-}
-
-function remove( elem, selector, keepData ) {
- var node,
- nodes = selector ? jQuery.filter( selector, elem ) : elem,
- i = 0;
-
- for ( ; ( node = nodes[ i ] ) != null; i++ ) {
- if ( !keepData && node.nodeType === 1 ) {
- jQuery.cleanData( getAll( node ) );
- }
-
- if ( node.parentNode ) {
- if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
- setGlobalEval( getAll( node, "script" ) );
- }
- node.parentNode.removeChild( node );
- }
- }
-
- return elem;
-}
-
-jQuery.extend( {
- htmlPrefilter: function( html ) {
- return html.replace( rxhtmlTag, "<$1></$2>" );
- },
-
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var i, l, srcElements, destElements,
- clone = elem.cloneNode( true ),
- inPage = jQuery.contains( elem.ownerDocument, elem );
-
- // Fix IE cloning issues
- if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
- !jQuery.isXMLDoc( elem ) ) {
-
- // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
- destElements = getAll( clone );
- srcElements = getAll( elem );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- fixInput( srcElements[ i ], destElements[ i ] );
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- if ( deepDataAndEvents ) {
- srcElements = srcElements || getAll( elem );
- destElements = destElements || getAll( clone );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- cloneCopyEvent( srcElements[ i ], destElements[ i ] );
- }
- } else {
- cloneCopyEvent( elem, clone );
- }
- }
-
- // Preserve script evaluation history
- destElements = getAll( clone, "script" );
- if ( destElements.length > 0 ) {
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
- }
-
- // Return the cloned set
- return clone;
- },
-
- cleanData: function( elems ) {
- var data, elem, type,
- special = jQuery.event.special,
- i = 0;
-
- for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
- if ( acceptData( elem ) ) {
- if ( ( data = elem[ dataPriv.expando ] ) ) {
- if ( data.events ) {
- for ( type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
-
- // Support: Chrome <=35 - 45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataPriv.expando ] = undefined;
- }
- if ( elem[ dataUser.expando ] ) {
-
- // Support: Chrome <=35 - 45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataUser.expando ] = undefined;
- }
- }
- }
- }
-} );
-
-jQuery.fn.extend( {
- detach: function( selector ) {
- return remove( this, selector, true );
- },
-
- remove: function( selector ) {
- return remove( this, selector );
- },
-
- text: function( value ) {
- return access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().each( function() {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- this.textContent = value;
- }
- } );
- }, null, value, arguments.length );
- },
-
- append: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.appendChild( elem );
- }
- } );
- },
-
- prepend: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.insertBefore( elem, target.firstChild );
- }
- } );
- },
-
- before: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this );
- }
- } );
- },
-
- after: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- }
- } );
- },
-
- empty: function() {
- var elem,
- i = 0;
-
- for ( ; ( elem = this[ i ] ) != null; i++ ) {
- if ( elem.nodeType === 1 ) {
-
- // Prevent memory leaks
- jQuery.cleanData( getAll( elem, false ) );
-
- // Remove any remaining nodes
- elem.textContent = "";
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function() {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- } );
- },
-
- html: function( value ) {
- return access( this, function( value ) {
- var elem = this[ 0 ] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined && elem.nodeType === 1 ) {
- return elem.innerHTML;
- }
-
- // See if we can take a shortcut and just use innerHTML
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
- value = jQuery.htmlPrefilter( value );
-
- try {
- for ( ; i < l; i++ ) {
- elem = this[ i ] || {};
-
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch ( e ) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function() {
- var ignored = [];
-
- // Make the changes, replacing each non-ignored context element with the new content
- return domManip( this, arguments, function( elem ) {
- var parent = this.parentNode;
-
- if ( jQuery.inArray( this, ignored ) < 0 ) {
- jQuery.cleanData( getAll( this ) );
- if ( parent ) {
- parent.replaceChild( elem, this );
- }
- }
-
- // Force callback invocation
- }, ignored );
- }
-} );
-
-jQuery.each( {
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var elems,
- ret = [],
- insert = jQuery( selector ),
- last = insert.length - 1,
- i = 0;
-
- for ( ; i <= last; i++ ) {
- elems = i === last ? this : this.clone( true );
- jQuery( insert[ i ] )[ original ]( elems );
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // .get() because push.apply(_, arraylike) throws on ancient WebKit
- push.apply( ret, elems.get() );
- }
-
- return this.pushStack( ret );
- };
-} );
-var rmargin = ( /^margin/ );
-
-var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-
-var getStyles = function( elem ) {
-
- // Support: IE <=11 only, Firefox <=30 (#15098, #14150)
- // IE throws on elements created in popups
- // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
- var view = elem.ownerDocument.defaultView;
-
- if ( !view || !view.opener ) {
- view = window;
- }
-
- return view.getComputedStyle( elem );
- };
-
-
-
-( function() {
-
- // Executing both pixelPosition & boxSizingReliable tests require only one layout
- // so they're executed at the same time to save the second computation.
- function computeStyleTests() {
-
- // This is a singleton, we need to execute it only once
- if ( !div ) {
- return;
- }
-
- div.style.cssText =
- "box-sizing:border-box;" +
- "position:relative;display:block;" +
- "margin:auto;border:1px;padding:1px;" +
- "top:1%;width:50%";
- div.innerHTML = "";
- documentElement.appendChild( container );
-
- var divStyle = window.getComputedStyle( div );
- pixelPositionVal = divStyle.top !== "1%";
-
- // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
- reliableMarginLeftVal = divStyle.marginLeft === "2px";
- boxSizingReliableVal = divStyle.width === "4px";
-
- // Support: Android 4.0 - 4.3 only
- // Some styles come back with percentage values, even though they shouldn't
- div.style.marginRight = "50%";
- pixelMarginRightVal = divStyle.marginRight === "4px";
-
- documentElement.removeChild( container );
-
- // Nullify the div so it wouldn't be stored in the memory and
- // it will also be a sign that checks already performed
- div = null;
- }
-
- var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
- container = document.createElement( "div" ),
- div = document.createElement( "div" );
-
- // Finish early in limited (non-browser) environments
- if ( !div.style ) {
- return;
- }
-
- // Support: IE <=9 - 11 only
- // Style of cloned element affects source element cloned (#8908)
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
- "padding:0;margin-top:1px;position:absolute";
- container.appendChild( div );
-
- jQuery.extend( support, {
- pixelPosition: function() {
- computeStyleTests();
- return pixelPositionVal;
- },
- boxSizingReliable: function() {
- computeStyleTests();
- return boxSizingReliableVal;
- },
- pixelMarginRight: function() {
- computeStyleTests();
- return pixelMarginRightVal;
- },
- reliableMarginLeft: function() {
- computeStyleTests();
- return reliableMarginLeftVal;
- }
- } );
-} )();
-
-
-function curCSS( elem, name, computed ) {
- var width, minWidth, maxWidth, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
-
- // Support: IE <=9 only
- // getPropertyValue is only needed for .css('filter') (#12537)
- if ( computed ) {
- ret = computed.getPropertyValue( name ) || computed[ name ];
-
- if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
- ret = jQuery.style( elem, name );
- }
-
- // A tribute to the "awesome hack by Dean Edwards"
- // Android Browser returns percentage for some values,
- // but width seems to be reliably pixels.
- // This is against the CSSOM draft spec:
- // https://drafts.csswg.org/cssom/#resolved-values
- if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
- // Remember the original values
- width = style.width;
- minWidth = style.minWidth;
- maxWidth = style.maxWidth;
-
- // Put in the new values to get a computed value out
- style.minWidth = style.maxWidth = style.width = ret;
- ret = computed.width;
-
- // Revert the changed values
- style.width = width;
- style.minWidth = minWidth;
- style.maxWidth = maxWidth;
- }
- }
-
- return ret !== undefined ?
-
- // Support: IE <=9 - 11 only
- // IE returns zIndex value as an integer.
- ret + "" :
- ret;
-}
-
-
-function addGetHookIf( conditionFn, hookFn ) {
-
- // Define the hook, we'll check on the first run if it's really needed.
- return {
- get: function() {
- if ( conditionFn() ) {
-
- // Hook not needed (or it's not possible to use it due
- // to missing dependency), remove it.
- delete this.get;
- return;
- }
-
- // Hook needed; redefine it so that the support test is not executed again.
- return ( this.get = hookFn ).apply( this, arguments );
- }
- };
-}
-
-
-var
-
- // Swappable if display is none or starts with table
- // except "table", "table-cell", or "table-caption"
- // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssNormalTransform = {
- letterSpacing: "0",
- fontWeight: "400"
- },
-
- cssPrefixes = [ "Webkit", "Moz", "ms" ],
- emptyStyle = document.createElement( "div" ).style;
-
-// Return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( name ) {
-
- // Shortcut for names that are not vendor prefixed
- if ( name in emptyStyle ) {
- return name;
- }
-
- // Check for vendor prefixed names
- var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
- i = cssPrefixes.length;
-
- while ( i-- ) {
- name = cssPrefixes[ i ] + capName;
- if ( name in emptyStyle ) {
- return name;
- }
- }
-}
-
-function setPositiveNumber( elem, value, subtract ) {
-
- // Any relative (+/-) values have already been
- // normalized at this point
- var matches = rcssNum.exec( value );
- return matches ?
-
- // Guard against undefined "subtract", e.g., when used as in cssHooks
- Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
- value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i,
- val = 0;
-
- // If we already have the right measurement, avoid augmentation
- if ( extra === ( isBorderBox ? "border" : "content" ) ) {
- i = 4;
-
- // Otherwise initialize for horizontal or vertical properties
- } else {
- i = name === "width" ? 1 : 0;
- }
-
- for ( ; i < 4; i += 2 ) {
-
- // Both box models exclude margin, so add it if we want it
- if ( extra === "margin" ) {
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
- }
-
- if ( isBorderBox ) {
-
- // border-box includes padding, so remove it if we want content
- if ( extra === "content" ) {
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
- }
-
- // At this point, extra isn't border nor margin, so remove border
- if ( extra !== "margin" ) {
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- } else {
-
- // At this point, extra isn't content, so add padding
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
- // At this point, extra isn't content nor padding, so add border
- if ( extra !== "padding" ) {
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- }
- }
-
- return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property, which is equivalent to the border-box value
- var val,
- valueIsBorderBox = true,
- styles = getStyles( elem ),
- isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
- // Support: IE <=11 only
- // Running getBoundingClientRect on a disconnected node
- // in IE throws an error.
- if ( elem.getClientRects().length ) {
- val = elem.getBoundingClientRect()[ name ];
- }
-
- // Some non-html elements return undefined for offsetWidth, so check for null/undefined
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
- if ( val <= 0 || val == null ) {
-
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name, styles );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test( val ) ) {
- return val;
- }
-
- // Check for style in case a browser which returns unreliable values
- // for getComputedStyle silently falls back to the reliable elem.style
- valueIsBorderBox = isBorderBox &&
- ( support.boxSizingReliable() || val === elem.style[ name ] );
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
- }
-
- // Use the active box-sizing model to add/subtract irrelevant styles
- return ( val +
- augmentWidthOrHeight(
- elem,
- name,
- extra || ( isBorderBox ? "border" : "content" ),
- valueIsBorderBox,
- styles
- )
- ) + "px";
-}
-
-jQuery.extend( {
-
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
-
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
- }
- }
- }
- },
-
- // Don't automatically add "px" to these possibly-unitless properties
- cssNumber: {
- "animationIterationCount": true,
- "columnCount": true,
- "fillOpacity": true,
- "flexGrow": true,
- "flexShrink": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "order": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- "float": "cssFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
-
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, hooks,
- origName = jQuery.camelCase( name ),
- style = elem.style;
-
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Gets hook for the prefixed version, then unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // Convert "+=" or "-=" to relative numbers (#7345)
- if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
- value = adjustCSS( elem, name, ret );
-
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that null and NaN values aren't set (#7116)
- if ( value == null || value !== value ) {
- return;
- }
-
- // If a number was passed in, add the unit (except for certain CSS properties)
- if ( type === "number" ) {
- value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
- }
-
- // background-* props affect original clone's values
- if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
- style[ name ] = "inherit";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !( "set" in hooks ) ||
- ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
-
- style[ name ] = value;
- }
-
- } else {
-
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks &&
- ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
-
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra, styles ) {
- var val, num, hooks,
- origName = jQuery.camelCase( name );
-
- // Make sure that we're working with the right name
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Try prefixed name followed by the unprefixed name
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks ) {
- val = hooks.get( elem, true, extra );
- }
-
- // Otherwise, if a way to get the computed value exists, use that
- if ( val === undefined ) {
- val = curCSS( elem, name, styles );
- }
-
- // Convert "normal" to computed value
- if ( val === "normal" && name in cssNormalTransform ) {
- val = cssNormalTransform[ name ];
- }
-
- // Make numeric if forced or a qualifier was provided and val looks numeric
- if ( extra === "" || extra ) {
- num = parseFloat( val );
- return extra === true || isFinite( num ) ? num || 0 : val;
- }
- return val;
- }
-} );
-
-jQuery.each( [ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
-
- // Certain elements can have dimension info if we invisibly show them
- // but it must have a current display style that would benefit
- return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
-
- // Support: Safari 8+
- // Table columns in Safari have non-zero offsetWidth & zero
- // getBoundingClientRect().width unless display is changed.
- // Support: IE <=11 only
- // Running getBoundingClientRect on a disconnected node
- // in IE throws an error.
- ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
- swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- } ) :
- getWidthOrHeight( elem, name, extra );
- }
- },
-
- set: function( elem, value, extra ) {
- var matches,
- styles = extra && getStyles( elem ),
- subtract = extra && augmentWidthOrHeight(
- elem,
- name,
- extra,
- jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
- styles
- );
-
- // Convert to pixels if value adjustment is needed
- if ( subtract && ( matches = rcssNum.exec( value ) ) &&
- ( matches[ 3 ] || "px" ) !== "px" ) {
-
- elem.style[ name ] = value;
- value = jQuery.css( elem, name );
- }
-
- return setPositiveNumber( elem, value, subtract );
- }
- };
-} );
-
-jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
- function( elem, computed ) {
- if ( computed ) {
- return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
- elem.getBoundingClientRect().left -
- swap( elem, { marginLeft: 0 }, function() {
- return elem.getBoundingClientRect().left;
- } )
- ) + "px";
- }
- }
-);
-
-// These hooks are used by animate to expand properties
-jQuery.each( {
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i = 0,
- expanded = {},
-
- // Assumes a single number if not a string
- parts = typeof value === "string" ? value.split( " " ) : [ value ];
-
- for ( ; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-
- if ( !rmargin.test( prefix ) ) {
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
- }
-} );
-
-jQuery.fn.extend( {
- css: function( name, value ) {
- return access( this, function( elem, name, value ) {
- var styles, len,
- map = {},
- i = 0;
-
- if ( jQuery.isArray( name ) ) {
- styles = getStyles( elem );
- len = name.length;
-
- for ( ; i < len; i++ ) {
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
- }
-
- return map;
- }
-
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
- }
-} );
-
-
-function Tween( elem, options, prop, end, easing ) {
- return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
- constructor: Tween,
- init: function( elem, options, prop, end, easing, unit ) {
- this.elem = elem;
- this.prop = prop;
- this.easing = easing || jQuery.easing._default;
- this.options = options;
- this.start = this.now = this.cur();
- this.end = end;
- this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
- },
- cur: function() {
- var hooks = Tween.propHooks[ this.prop ];
-
- return hooks && hooks.get ?
- hooks.get( this ) :
- Tween.propHooks._default.get( this );
- },
- run: function( percent ) {
- var eased,
- hooks = Tween.propHooks[ this.prop ];
-
- if ( this.options.duration ) {
- this.pos = eased = jQuery.easing[ this.easing ](
- percent, this.options.duration * percent, 0, 1, this.options.duration
- );
- } else {
- this.pos = eased = percent;
- }
- this.now = ( this.end - this.start ) * eased + this.start;
-
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- if ( hooks && hooks.set ) {
- hooks.set( this );
- } else {
- Tween.propHooks._default.set( this );
- }
- return this;
- }
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
- _default: {
- get: function( tween ) {
- var result;
-
- // Use a property on the element directly when it is not a DOM element,
- // or when there is no matching style property that exists.
- if ( tween.elem.nodeType !== 1 ||
- tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
- return tween.elem[ tween.prop ];
- }
-
- // Passing an empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails.
- // Simple values such as "10px" are parsed to Float;
- // complex values such as "rotate(1rad)" are returned as-is.
- result = jQuery.css( tween.elem, tween.prop, "" );
-
- // Empty strings, null, undefined and "auto" are converted to 0.
- return !result || result === "auto" ? 0 : result;
- },
- set: function( tween ) {
-
- // Use step hook for back compat.
- // Use cssHook if its there.
- // Use .style if available and use plain properties where available.
- if ( jQuery.fx.step[ tween.prop ] ) {
- jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.nodeType === 1 &&
- ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
- jQuery.cssHooks[ tween.prop ] ) ) {
- jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
- } else {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
- }
-};
-
-// Support: IE <=9 only
-// Panic based approach to setting things on disconnected nodes
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
- set: function( tween ) {
- if ( tween.elem.nodeType && tween.elem.parentNode ) {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
-};
-
-jQuery.easing = {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return 0.5 - Math.cos( p * Math.PI ) / 2;
- },
- _default: "swing"
-};
-
-jQuery.fx = Tween.prototype.init;
-
-// Back compat <1.8 extension point
-jQuery.fx.step = {};
-
-
-
-
-var
- fxNow, timerId,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rrun = /queueHooks$/;
-
-function raf() {
- if ( timerId ) {
- window.requestAnimationFrame( raf );
- jQuery.fx.tick();
- }
-}
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- window.setTimeout( function() {
- fxNow = undefined;
- } );
- return ( fxNow = jQuery.now() );
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
- var which,
- i = 0,
- attrs = { height: type };
-
- // If we include width, step value is 1 to do all cssExpand values,
- // otherwise step value is 2 to skip over Left and Right
- includeWidth = includeWidth ? 1 : 0;
- for ( ; i < 4; i += 2 - includeWidth ) {
- which = cssExpand[ i ];
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
- }
-
- if ( includeWidth ) {
- attrs.opacity = attrs.width = type;
- }
-
- return attrs;
-}
-
-function createTween( value, prop, animation ) {
- var tween,
- collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
- index = 0,
- length = collection.length;
- for ( ; index < length; index++ ) {
- if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
-
- // We're done with this property
- return tween;
- }
- }
-}
-
-function defaultPrefilter( elem, props, opts ) {
- var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
- isBox = "width" in props || "height" in props,
- anim = this,
- orig = {},
- style = elem.style,
- hidden = elem.nodeType && isHiddenWithinTree( elem ),
- dataShow = dataPriv.get( elem, "fxshow" );
-
- // Queue-skipping animations hijack the fx hooks
- if ( !opts.queue ) {
- hooks = jQuery._queueHooks( elem, "fx" );
- if ( hooks.unqueued == null ) {
- hooks.unqueued = 0;
- oldfire = hooks.empty.fire;
- hooks.empty.fire = function() {
- if ( !hooks.unqueued ) {
- oldfire();
- }
- };
- }
- hooks.unqueued++;
-
- anim.always( function() {
-
- // Ensure the complete handler is called before this completes
- anim.always( function() {
- hooks.unqueued--;
- if ( !jQuery.queue( elem, "fx" ).length ) {
- hooks.empty.fire();
- }
- } );
- } );
- }
-
- // Detect show/hide animations
- for ( prop in props ) {
- value = props[ prop ];
- if ( rfxtypes.test( value ) ) {
- delete props[ prop ];
- toggle = toggle || value === "toggle";
- if ( value === ( hidden ? "hide" : "show" ) ) {
-
- // Pretend to be hidden if this is a "show" and
- // there is still data from a stopped show/hide
- if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
- hidden = true;
-
- // Ignore all other no-op show/hide data
- } else {
- continue;
- }
- }
- orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
- }
- }
-
- // Bail out if this is a no-op like .hide().hide()
- propTween = !jQuery.isEmptyObject( props );
- if ( !propTween && jQuery.isEmptyObject( orig ) ) {
- return;
- }
-
- // Restrict "overflow" and "display" styles during box animations
- if ( isBox && elem.nodeType === 1 ) {
-
- // Support: IE <=9 - 11, Edge 12 - 13
- // Record all 3 overflow attributes because IE does not infer the shorthand
- // from identically-valued overflowX and overflowY
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
- // Identify a display type, preferring old show/hide data over the CSS cascade
- restoreDisplay = dataShow && dataShow.display;
- if ( restoreDisplay == null ) {
- restoreDisplay = dataPriv.get( elem, "display" );
- }
- display = jQuery.css( elem, "display" );
- if ( display === "none" ) {
- if ( restoreDisplay ) {
- display = restoreDisplay;
- } else {
-
- // Get nonempty value(s) by temporarily forcing visibility
- showHide( [ elem ], true );
- restoreDisplay = elem.style.display || restoreDisplay;
- display = jQuery.css( elem, "display" );
- showHide( [ elem ] );
- }
- }
-
- // Animate inline elements as inline-block
- if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
- if ( jQuery.css( elem, "float" ) === "none" ) {
-
- // Restore the original display value at the end of pure show/hide animations
- if ( !propTween ) {
- anim.done( function() {
- style.display = restoreDisplay;
- } );
- if ( restoreDisplay == null ) {
- display = style.display;
- restoreDisplay = display === "none" ? "" : display;
- }
- }
- style.display = "inline-block";
- }
- }
- }
-
- if ( opts.overflow ) {
- style.overflow = "hidden";
- anim.always( function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- } );
- }
-
- // Implement show/hide animations
- propTween = false;
- for ( prop in orig ) {
-
- // General show/hide setup for this element animation
- if ( !propTween ) {
- if ( dataShow ) {
- if ( "hidden" in dataShow ) {
- hidden = dataShow.hidden;
- }
- } else {
- dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
- }
-
- // Store hidden/visible for toggle so `.stop().toggle()` "reverses"
- if ( toggle ) {
- dataShow.hidden = !hidden;
- }
-
- // Show elements before animating them
- if ( hidden ) {
- showHide( [ elem ], true );
- }
-
- /* eslint-disable no-loop-func */
-
- anim.done( function() {
-
- /* eslint-enable no-loop-func */
-
- // The final step of a "hide" animation is actually hiding the element
- if ( !hidden ) {
- showHide( [ elem ] );
- }
- dataPriv.remove( elem, "fxshow" );
- for ( prop in orig ) {
- jQuery.style( elem, prop, orig[ prop ] );
- }
- } );
- }
-
- // Per-property setup
- propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
- if ( !( prop in dataShow ) ) {
- dataShow[ prop ] = propTween.start;
- if ( hidden ) {
- propTween.end = propTween.start;
- propTween.start = 0;
- }
- }
- }
-}
-
-function propFilter( props, specialEasing ) {
- var index, name, easing, value, hooks;
-
- // camelCase, specialEasing and expand cssHook pass
- for ( index in props ) {
- name = jQuery.camelCase( index );
- easing = specialEasing[ name ];
- value = props[ index ];
- if ( jQuery.isArray( value ) ) {
- easing = value[ 1 ];
- value = props[ index ] = value[ 0 ];
- }
-
- if ( index !== name ) {
- props[ name ] = value;
- delete props[ index ];
- }
-
- hooks = jQuery.cssHooks[ name ];
- if ( hooks && "expand" in hooks ) {
- value = hooks.expand( value );
- delete props[ name ];
-
- // Not quite $.extend, this won't overwrite existing keys.
- // Reusing 'index' because we have the correct "name"
- for ( index in value ) {
- if ( !( index in props ) ) {
- props[ index ] = value[ index ];
- specialEasing[ index ] = easing;
- }
- }
- } else {
- specialEasing[ name ] = easing;
- }
- }
-}
-
-function Animation( elem, properties, options ) {
- var result,
- stopped,
- index = 0,
- length = Animation.prefilters.length,
- deferred = jQuery.Deferred().always( function() {
-
- // Don't match elem in the :animated selector
- delete tick.elem;
- } ),
- tick = function() {
- if ( stopped ) {
- return false;
- }
- var currentTime = fxNow || createFxNow(),
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
-
- // Support: Android 2.3 only
- // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
- temp = remaining / animation.duration || 0,
- percent = 1 - temp,
- index = 0,
- length = animation.tweens.length;
-
- for ( ; index < length; index++ ) {
- animation.tweens[ index ].run( percent );
- }
-
- deferred.notifyWith( elem, [ animation, percent, remaining ] );
-
- if ( percent < 1 && length ) {
- return remaining;
- } else {
- deferred.resolveWith( elem, [ animation ] );
- return false;
- }
- },
- animation = deferred.promise( {
- elem: elem,
- props: jQuery.extend( {}, properties ),
- opts: jQuery.extend( true, {
- specialEasing: {},
- easing: jQuery.easing._default
- }, options ),
- originalProperties: properties,
- originalOptions: options,
- startTime: fxNow || createFxNow(),
- duration: options.duration,
- tweens: [],
- createTween: function( prop, end ) {
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
- animation.tweens.push( tween );
- return tween;
- },
- stop: function( gotoEnd ) {
- var index = 0,
-
- // If we are going to the end, we want to run all the tweens
- // otherwise we skip this part
- length = gotoEnd ? animation.tweens.length : 0;
- if ( stopped ) {
- return this;
- }
- stopped = true;
- for ( ; index < length; index++ ) {
- animation.tweens[ index ].run( 1 );
- }
-
- // Resolve when we played the last frame; otherwise, reject
- if ( gotoEnd ) {
- deferred.notifyWith( elem, [ animation, 1, 0 ] );
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
- } else {
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
- }
- return this;
- }
- } ),
- props = animation.props;
-
- propFilter( props, animation.opts.specialEasing );
-
- for ( ; index < length; index++ ) {
- result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
- if ( result ) {
- if ( jQuery.isFunction( result.stop ) ) {
- jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
- jQuery.proxy( result.stop, result );
- }
- return result;
- }
- }
-
- jQuery.map( props, createTween, animation );
-
- if ( jQuery.isFunction( animation.opts.start ) ) {
- animation.opts.start.call( elem, animation );
- }
-
- jQuery.fx.timer(
- jQuery.extend( tick, {
- elem: elem,
- anim: animation,
- queue: animation.opts.queue
- } )
- );
-
- // attach callbacks from options
- return animation.progress( animation.opts.progress )
- .done( animation.opts.done, animation.opts.complete )
- .fail( animation.opts.fail )
- .always( animation.opts.always );
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
-
- tweeners: {
- "*": [ function( prop, value ) {
- var tween = this.createTween( prop, value );
- adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
- return tween;
- } ]
- },
-
- tweener: function( props, callback ) {
- if ( jQuery.isFunction( props ) ) {
- callback = props;
- props = [ "*" ];
- } else {
- props = props.match( rnothtmlwhite );
- }
-
- var prop,
- index = 0,
- length = props.length;
-
- for ( ; index < length; index++ ) {
- prop = props[ index ];
- Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
- Animation.tweeners[ prop ].unshift( callback );
- }
- },
-
- prefilters: [ defaultPrefilter ],
-
- prefilter: function( callback, prepend ) {
- if ( prepend ) {
- Animation.prefilters.unshift( callback );
- } else {
- Animation.prefilters.push( callback );
- }
- }
-} );
-
-jQuery.speed = function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- // Go to the end state if fx are off or if document is hidden
- if ( jQuery.fx.off || document.hidden ) {
- opt.duration = 0;
-
- } else {
- if ( typeof opt.duration !== "number" ) {
- if ( opt.duration in jQuery.fx.speeds ) {
- opt.duration = jQuery.fx.speeds[ opt.duration ];
-
- } else {
- opt.duration = jQuery.fx.speeds._default;
- }
- }
- }
-
- // Normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function() {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- }
- };
-
- return opt;
-};
-
-jQuery.fn.extend( {
- fadeTo: function( speed, to, easing, callback ) {
-
- // Show any hidden elements after setting opacity to 0
- return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
-
- // Animate to the value specified
- .end().animate( { opacity: to }, speed, easing, callback );
- },
- animate: function( prop, speed, easing, callback ) {
- var empty = jQuery.isEmptyObject( prop ),
- optall = jQuery.speed( speed, easing, callback ),
- doAnimation = function() {
-
- // Operate on a copy of prop so per-property easing won't be lost
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
- // Empty animations, or finishing resolves immediately
- if ( empty || dataPriv.get( this, "finish" ) ) {
- anim.stop( true );
- }
- };
- doAnimation.finish = doAnimation;
-
- return empty || optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
- stop: function( type, clearQueue, gotoEnd ) {
- var stopQueue = function( hooks ) {
- var stop = hooks.stop;
- delete hooks.stop;
- stop( gotoEnd );
- };
-
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each( function() {
- var dequeue = true,
- index = type != null && type + "queueHooks",
- timers = jQuery.timers,
- data = dataPriv.get( this );
-
- if ( index ) {
- if ( data[ index ] && data[ index ].stop ) {
- stopQueue( data[ index ] );
- }
- } else {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
- stopQueue( data[ index ] );
- }
- }
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this &&
- ( type == null || timers[ index ].queue === type ) ) {
-
- timers[ index ].anim.stop( gotoEnd );
- dequeue = false;
- timers.splice( index, 1 );
- }
- }
-
- // Start the next in the queue if the last step wasn't forced.
- // Timers currently will call their complete callbacks, which
- // will dequeue but only if they were gotoEnd.
- if ( dequeue || !gotoEnd ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- finish: function( type ) {
- if ( type !== false ) {
- type = type || "fx";
- }
- return this.each( function() {
- var index,
- data = dataPriv.get( this ),
- queue = data[ type + "queue" ],
- hooks = data[ type + "queueHooks" ],
- timers = jQuery.timers,
- length = queue ? queue.length : 0;
-
- // Enable finishing flag on private data
- data.finish = true;
-
- // Empty the queue first
- jQuery.queue( this, type, [] );
-
- if ( hooks && hooks.stop ) {
- hooks.stop.call( this, true );
- }
-
- // Look for any active animations, and finish them
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
- timers[ index ].anim.stop( true );
- timers.splice( index, 1 );
- }
- }
-
- // Look for any animations in the old queue and finish them
- for ( index = 0; index < length; index++ ) {
- if ( queue[ index ] && queue[ index ].finish ) {
- queue[ index ].finish.call( this );
- }
- }
-
- // Turn off finishing flag
- delete data.finish;
- } );
- }
-} );
-
-jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
- var cssFn = jQuery.fn[ name ];
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return speed == null || typeof speed === "boolean" ?
- cssFn.apply( this, arguments ) :
- this.animate( genFx( name, true ), speed, easing, callback );
- };
-} );
-
-// Generate shortcuts for custom animations
-jQuery.each( {
- slideDown: genFx( "show" ),
- slideUp: genFx( "hide" ),
- slideToggle: genFx( "toggle" ),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-} );
-
-jQuery.timers = [];
-jQuery.fx.tick = function() {
- var timer,
- i = 0,
- timers = jQuery.timers;
-
- fxNow = jQuery.now();
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
-
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
- jQuery.timers.push( timer );
- if ( timer() ) {
- jQuery.fx.start();
- } else {
- jQuery.timers.pop();
- }
-};
-
-jQuery.fx.interval = 13;
-jQuery.fx.start = function() {
- if ( !timerId ) {
- timerId = window.requestAnimationFrame ?
- window.requestAnimationFrame( raf ) :
- window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
- }
-};
-
-jQuery.fx.stop = function() {
- if ( window.cancelAnimationFrame ) {
- window.cancelAnimationFrame( timerId );
- } else {
- window.clearInterval( timerId );
- }
-
- timerId = null;
-};
-
-jQuery.fx.speeds = {
- slow: 600,
- fast: 200,
-
- // Default speed
- _default: 400
-};
-
-
-// Based off of the plugin by Clint Helfers, with permission.
-// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
-jQuery.fn.delay = function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = window.setTimeout( next, time );
- hooks.stop = function() {
- window.clearTimeout( timeout );
- };
- } );
-};
-
-
-( function() {
- var input = document.createElement( "input" ),
- select = document.createElement( "select" ),
- opt = select.appendChild( document.createElement( "option" ) );
-
- input.type = "checkbox";
-
- // Support: Android <=4.3 only
- // Default value for a checkbox should be "on"
- support.checkOn = input.value !== "";
-
- // Support: IE <=11 only
- // Must access selectedIndex to make default options select
- support.optSelected = opt.selected;
-
- // Support: IE <=11 only
- // An input loses its value after becoming a radio
- input = document.createElement( "input" );
- input.value = "t";
- input.type = "radio";
- support.radioValue = input.value === "t";
-} )();
-
-
-var boolHook,
- attrHandle = jQuery.expr.attrHandle;
-
-jQuery.fn.extend( {
- attr: function( name, value ) {
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each( function() {
- jQuery.removeAttr( this, name );
- } );
- }
-} );
-
-jQuery.extend( {
- attr: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set attributes on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === "undefined" ) {
- return jQuery.prop( elem, name, value );
- }
-
- // Attribute hooks are determined by the lowercase version
- // Grab necessary hook if one is defined
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
- hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
- ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
- }
-
- if ( value !== undefined ) {
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
- return;
- }
-
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- elem.setAttribute( name, value + "" );
- return value;
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- ret = jQuery.find.attr( elem, name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret == null ? undefined : ret;
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- if ( !support.radioValue && value === "radio" &&
- jQuery.nodeName( elem, "input" ) ) {
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- }
- },
-
- removeAttr: function( elem, value ) {
- var name,
- i = 0,
-
- // Attribute names can contain non-HTML whitespace characters
- // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
- attrNames = value && value.match( rnothtmlwhite );
-
- if ( attrNames && elem.nodeType === 1 ) {
- while ( ( name = attrNames[ i++ ] ) ) {
- elem.removeAttribute( name );
- }
- }
- }
-} );
-
-// Hooks for boolean attributes
-boolHook = {
- set: function( elem, value, name ) {
- if ( value === false ) {
-
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else {
- elem.setAttribute( name, name );
- }
- return name;
- }
-};
-
-jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
- var getter = attrHandle[ name ] || jQuery.find.attr;
-
- attrHandle[ name ] = function( elem, name, isXML ) {
- var ret, handle,
- lowercaseName = name.toLowerCase();
-
- if ( !isXML ) {
-
- // Avoid an infinite loop by temporarily removing this function from the getter
- handle = attrHandle[ lowercaseName ];
- attrHandle[ lowercaseName ] = ret;
- ret = getter( elem, name, isXML ) != null ?
- lowercaseName :
- null;
- attrHandle[ lowercaseName ] = handle;
- }
- return ret;
- };
-} );
-
-
-
-
-var rfocusable = /^(?:input|select|textarea|button)$/i,
- rclickable = /^(?:a|area)$/i;
-
-jQuery.fn.extend( {
- prop: function( name, value ) {
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- return this.each( function() {
- delete this[ jQuery.propFix[ name ] || name ];
- } );
- }
-} );
-
-jQuery.extend( {
- prop: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set properties on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- return ( elem[ name ] = value );
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- return elem[ name ];
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
-
- // Support: IE <=9 - 11 only
- // elem.tabIndex doesn't always return the
- // correct value when it hasn't been explicitly set
- // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- // Use proper attribute retrieval(#12072)
- var tabindex = jQuery.find.attr( elem, "tabindex" );
-
- if ( tabindex ) {
- return parseInt( tabindex, 10 );
- }
-
- if (
- rfocusable.test( elem.nodeName ) ||
- rclickable.test( elem.nodeName ) &&
- elem.href
- ) {
- return 0;
- }
-
- return -1;
- }
- }
- },
-
- propFix: {
- "for": "htmlFor",
- "class": "className"
- }
-} );
-
-// Support: IE <=11 only
-// Accessing the selectedIndex property
-// forces the browser to respect setting selected
-// on the option
-// The getter ensures a default option is selected
-// when in an optgroup
-// eslint rule "no-unused-expressions" is disabled for this code
-// since it considers such accessions noop
-if ( !support.optSelected ) {
- jQuery.propHooks.selected = {
- get: function( elem ) {
-
- /* eslint no-unused-expressions: "off" */
-
- var parent = elem.parentNode;
- if ( parent && parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- return null;
- },
- set: function( elem ) {
-
- /* eslint no-unused-expressions: "off" */
-
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
- };
-}
-
-jQuery.each( [
- "tabIndex",
- "readOnly",
- "maxLength",
- "cellSpacing",
- "cellPadding",
- "rowSpan",
- "colSpan",
- "useMap",
- "frameBorder",
- "contentEditable"
-], function() {
- jQuery.propFix[ this.toLowerCase() ] = this;
-} );
-
-
-
-
- // Strip and collapse whitespace according to HTML spec
- // https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace
- function stripAndCollapse( value ) {
- var tokens = value.match( rnothtmlwhite ) || [];
- return tokens.join( " " );
- }
-
-
-function getClass( elem ) {
- return elem.getAttribute && elem.getAttribute( "class" ) || "";
-}
-
-jQuery.fn.extend( {
- addClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnothtmlwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
- cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
- cur += clazz + " ";
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = stripAndCollapse( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( !arguments.length ) {
- return this.attr( "class", "" );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnothtmlwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
-
- // This expression is here for better compressibility (see addClass)
- cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
-
- // Remove *all* instances
- while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
- cur = cur.replace( " " + clazz + " ", " " );
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = stripAndCollapse( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value;
-
- if ( typeof stateVal === "boolean" && type === "string" ) {
- return stateVal ? this.addClass( value ) : this.removeClass( value );
- }
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( i ) {
- jQuery( this ).toggleClass(
- value.call( this, i, getClass( this ), stateVal ),
- stateVal
- );
- } );
- }
-
- return this.each( function() {
- var className, i, self, classNames;
-
- if ( type === "string" ) {
-
- // Toggle individual class names
- i = 0;
- self = jQuery( this );
- classNames = value.match( rnothtmlwhite ) || [];
-
- while ( ( className = classNames[ i++ ] ) ) {
-
- // Check each className given, space separated list
- if ( self.hasClass( className ) ) {
- self.removeClass( className );
- } else {
- self.addClass( className );
- }
- }
-
- // Toggle whole class name
- } else if ( value === undefined || type === "boolean" ) {
- className = getClass( this );
- if ( className ) {
-
- // Store className if set
- dataPriv.set( this, "__className__", className );
- }
-
- // If the element has a class name or if we're passed `false`,
- // then remove the whole classname (if there was one, the above saved it).
- // Otherwise bring back whatever was previously saved (if anything),
- // falling back to the empty string if nothing was stored.
- if ( this.setAttribute ) {
- this.setAttribute( "class",
- className || value === false ?
- "" :
- dataPriv.get( this, "__className__" ) || ""
- );
- }
- }
- } );
- },
-
- hasClass: function( selector ) {
- var className, elem,
- i = 0;
-
- className = " " + selector + " ";
- while ( ( elem = this[ i++ ] ) ) {
- if ( elem.nodeType === 1 &&
- ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
- return true;
- }
- }
-
- return false;
- }
-} );
-
-
-
-
-var rreturn = /\r/g;
-
-jQuery.fn.extend( {
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[ 0 ];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] ||
- jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks &&
- "get" in hooks &&
- ( ret = hooks.get( elem, "value" ) ) !== undefined
- ) {
- return ret;
- }
-
- ret = elem.value;
-
- // Handle most common string cases
- if ( typeof ret === "string" ) {
- return ret.replace( rreturn, "" );
- }
-
- // Handle cases where value is null/undef or number
- return ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each( function( i ) {
- var val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, jQuery( this ).val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
-
- } else if ( typeof val === "number" ) {
- val += "";
-
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map( val, function( value ) {
- return value == null ? "" : value + "";
- } );
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- } );
- }
-} );
-
-jQuery.extend( {
- valHooks: {
- option: {
- get: function( elem ) {
-
- var val = jQuery.find.attr( elem, "value" );
- return val != null ?
- val :
-
- // Support: IE <=10 - 11 only
- // option.text throws exceptions (#14686, #14858)
- // Strip and collapse whitespace
- // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
- stripAndCollapse( jQuery.text( elem ) );
- }
- },
- select: {
- get: function( elem ) {
- var value, option, i,
- options = elem.options,
- index = elem.selectedIndex,
- one = elem.type === "select-one",
- values = one ? null : [],
- max = one ? index + 1 : options.length;
-
- if ( index < 0 ) {
- i = max;
-
- } else {
- i = one ? index : 0;
- }
-
- // Loop through all the selected options
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // Support: IE <=9 only
- // IE8-9 doesn't update selected after form reset (#2551)
- if ( ( option.selected || i === index ) &&
-
- // Don't return options that are disabled or in a disabled optgroup
- !option.disabled &&
- ( !option.parentNode.disabled ||
- !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var optionSet, option,
- options = elem.options,
- values = jQuery.makeArray( value ),
- i = options.length;
-
- while ( i-- ) {
- option = options[ i ];
-
- /* eslint-disable no-cond-assign */
-
- if ( option.selected =
- jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
- ) {
- optionSet = true;
- }
-
- /* eslint-enable no-cond-assign */
- }
-
- // Force browsers to behave consistently when non-matching value is set
- if ( !optionSet ) {
- elem.selectedIndex = -1;
- }
- return values;
- }
- }
- }
-} );
-
-// Radios and checkboxes getter/setter
-jQuery.each( [ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
- }
- }
- };
- if ( !support.checkOn ) {
- jQuery.valHooks[ this ].get = function( elem ) {
- return elem.getAttribute( "value" ) === null ? "on" : elem.value;
- };
- }
-} );
-
-
-
-
-// Return jQuery for attributes-only inclusion
-
-
-var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
-
-jQuery.extend( jQuery.event, {
-
- trigger: function( event, data, elem, onlyHandlers ) {
-
- var i, cur, tmp, bubbleType, ontype, handle, special,
- eventPath = [ elem || document ],
- type = hasOwn.call( event, "type" ) ? event.type : event,
- namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
-
- cur = tmp = elem = elem || document;
-
- // Don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf( "." ) > -1 ) {
-
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split( "." );
- type = namespaces.shift();
- namespaces.sort();
- }
- ontype = type.indexOf( ":" ) < 0 && "on" + type;
-
- // Caller can pass in a jQuery.Event object, Object, or just an event type string
- event = event[ jQuery.expando ] ?
- event :
- new jQuery.Event( type, typeof event === "object" && event );
-
- // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
- event.isTrigger = onlyHandlers ? 2 : 3;
- event.namespace = namespaces.join( "." );
- event.rnamespace = event.namespace ?
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
- null;
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data == null ?
- [ event ] :
- jQuery.makeArray( data, [ event ] );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- if ( !rfocusMorph.test( bubbleType + type ) ) {
- cur = cur.parentNode;
- }
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push( cur );
- tmp = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( tmp === ( elem.ownerDocument || document ) ) {
- eventPath.push( tmp.defaultView || tmp.parentWindow || window );
- }
- }
-
- // Fire handlers on the event path
- i = 0;
- while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
-
- event.type = i > 1 ?
- bubbleType :
- special.bindType || type;
-
- // jQuery handler
- handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
- dataPriv.get( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
-
- // Native handler
- handle = ontype && cur[ ontype ];
- if ( handle && handle.apply && acceptData( cur ) ) {
- event.result = handle.apply( cur, data );
- if ( event.result === false ) {
- event.preventDefault();
- }
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( ( !special._default ||
- special._default.apply( eventPath.pop(), data ) === false ) &&
- acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name as the event.
- // Don't do default actions on window, that's where global variables be (#6170)
- if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- tmp = elem[ ontype ];
-
- if ( tmp ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- elem[ type ]();
- jQuery.event.triggered = undefined;
-
- if ( tmp ) {
- elem[ ontype ] = tmp;
- }
- }
- }
- }
-
- return event.result;
- },
-
- // Piggyback on a donor event to simulate a different one
- // Used only for `focus(in | out)` events
- simulate: function( type, elem, event ) {
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- {
- type: type,
- isSimulated: true
- }
- );
-
- jQuery.event.trigger( e, null, elem );
- }
-
-} );
-
-jQuery.fn.extend( {
-
- trigger: function( type, data ) {
- return this.each( function() {
- jQuery.event.trigger( type, data, this );
- } );
- },
- triggerHandler: function( type, data ) {
- var elem = this[ 0 ];
- if ( elem ) {
- return jQuery.event.trigger( type, data, elem, true );
- }
- }
-} );
-
-
-jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup contextmenu" ).split( " " ),
- function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-} );
-
-jQuery.fn.extend( {
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-} );
-
-
-
-
-support.focusin = "onfocusin" in window;
-
-
-// Support: Firefox <=44
-// Firefox doesn't have focus(in | out) events
-// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
-//
-// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
-// focus(in | out) events fire after focus & blur events,
-// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
-// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
-if ( !support.focusin ) {
- jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler on the document while someone wants focusin/focusout
- var handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix );
-
- if ( !attaches ) {
- doc.addEventListener( orig, handler, true );
- }
- dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
- },
- teardown: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix ) - 1;
-
- if ( !attaches ) {
- doc.removeEventListener( orig, handler, true );
- dataPriv.remove( doc, fix );
-
- } else {
- dataPriv.access( doc, fix, attaches );
- }
- }
- };
- } );
-}
-var location = window.location;
-
-var nonce = jQuery.now();
-
-var rquery = ( /\?/ );
-
-
-
-// Cross-browser xml parsing
-jQuery.parseXML = function( data ) {
- var xml;
- if ( !data || typeof data !== "string" ) {
- return null;
- }
-
- // Support: IE 9 - 11 only
- // IE throws on parseFromString with invalid input.
- try {
- xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
- } catch ( e ) {
- xml = undefined;
- }
-
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
-};
-
-
-var
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-function buildParams( prefix, obj, traditional, add ) {
- var name;
-
- if ( jQuery.isArray( obj ) ) {
-
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
-
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
-
- // Item is non-scalar (array or object), encode its numeric index.
- buildParams(
- prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
- v,
- traditional,
- add
- );
- }
- } );
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
-
- // Serialize object item.
- for ( name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
-
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-jQuery.param = function( a, traditional ) {
- var prefix,
- s = [],
- add = function( key, valueOrFunction ) {
-
- // If value is a function, invoke it and use its return value
- var value = jQuery.isFunction( valueOrFunction ) ?
- valueOrFunction() :
- valueOrFunction;
-
- s[ s.length ] = encodeURIComponent( key ) + "=" +
- encodeURIComponent( value == null ? "" : value );
- };
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- } );
-
- } else {
-
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" );
-};
-
-jQuery.fn.extend( {
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
- serializeArray: function() {
- return this.map( function() {
-
- // Can add propHook for "elements" to filter or add form elements
- var elements = jQuery.prop( this, "elements" );
- return elements ? jQuery.makeArray( elements ) : this;
- } )
- .filter( function() {
- var type = this.type;
-
- // Use .is( ":disabled" ) so that fieldset[disabled] works
- return this.name && !jQuery( this ).is( ":disabled" ) &&
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !rcheckableType.test( type ) );
- } )
- .map( function( i, elem ) {
- var val = jQuery( this ).val();
-
- if ( val == null ) {
- return null;
- }
-
- if ( jQuery.isArray( val ) ) {
- return jQuery.map( val, function( val ) {
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } );
- }
-
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ).get();
- }
-} );
-
-
-var
- r20 = /%20/g,
- rhash = /#.*$/,
- rantiCache = /([?&])_=[^&]*/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
-
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = "*/".concat( "*" ),
-
- // Anchor tag for parsing the document origin
- originAnchor = document.createElement( "a" );
- originAnchor.href = location.href;
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- var dataType,
- i = 0,
- dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
-
- if ( jQuery.isFunction( func ) ) {
-
- // For each dataType in the dataTypeExpression
- while ( ( dataType = dataTypes[ i++ ] ) ) {
-
- // Prepend if requested
- if ( dataType[ 0 ] === "+" ) {
- dataType = dataType.slice( 1 ) || "*";
- ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
-
- // Otherwise append
- } else {
- ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
- }
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
- var inspected = {},
- seekingTransport = ( structure === transports );
-
- function inspect( dataType ) {
- var selected;
- inspected[ dataType ] = true;
- jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
- var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
- if ( typeof dataTypeOrTransport === "string" &&
- !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
-
- options.dataTypes.unshift( dataTypeOrTransport );
- inspect( dataTypeOrTransport );
- return false;
- } else if ( seekingTransport ) {
- return !( selected = dataTypeOrTransport );
- }
- } );
- return selected;
- }
-
- return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var key, deep,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-
- return target;
-}
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var ct, type, finalDataType, firstDataType,
- contents = s.contents,
- dataTypes = s.dataTypes;
-
- // Remove auto dataType and get content-type in the process
- while ( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
-
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
-
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
- var conv2, current, conv, tmp, prev,
- converters = {},
-
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice();
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- current = dataTypes.shift();
-
- // Convert to each sequential dataType
- while ( current ) {
-
- if ( s.responseFields[ current ] ) {
- jqXHR[ s.responseFields[ current ] ] = response;
- }
-
- // Apply the dataFilter if provided
- if ( !prev && isSuccess && s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- prev = current;
- current = dataTypes.shift();
-
- if ( current ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current === "*" ) {
-
- current = prev;
-
- // Convert response if prev dataType is non-auto and differs from current
- } else if ( prev !== "*" && prev !== current ) {
-
- // Seek a direct converter
- conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
- // If none found, seek a pair
- if ( !conv ) {
- for ( conv2 in converters ) {
-
- // If conv2 outputs current
- tmp = conv2.split( " " );
- if ( tmp[ 1 ] === current ) {
-
- // If prev can be converted to accepted input
- conv = converters[ prev + " " + tmp[ 0 ] ] ||
- converters[ "* " + tmp[ 0 ] ];
- if ( conv ) {
-
- // Condense equivalence converters
- if ( conv === true ) {
- conv = converters[ conv2 ];
-
- // Otherwise, insert the intermediate dataType
- } else if ( converters[ conv2 ] !== true ) {
- current = tmp[ 0 ];
- dataTypes.unshift( tmp[ 1 ] );
- }
- break;
- }
- }
- }
- }
-
- // Apply converter (if not an equivalence)
- if ( conv !== true ) {
-
- // Unless errors are allowed to bubble, catch and return them
- if ( conv && s.throws ) {
- response = conv( response );
- } else {
- try {
- response = conv( response );
- } catch ( e ) {
- return {
- state: "parsererror",
- error: conv ? e : "No conversion from " + prev + " to " + current
- };
- }
- }
- }
- }
- }
- }
-
- return { state: "success", data: response };
-}
-
-jQuery.extend( {
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajaxSettings: {
- url: location.href,
- type: "GET",
- isLocal: rlocalProtocol.test( location.protocol ),
- global: true,
- processData: true,
- async: true,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
-
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- throws: false,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- "*": allTypes,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
-
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": JSON.parse,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- url: true,
- context: true
- }
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- return settings ?
-
- // Building a settings object
- ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
- // Extending ajaxSettings
- ajaxExtend( jQuery.ajaxSettings, target );
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var transport,
-
- // URL without anti-cache param
- cacheURL,
-
- // Response headers
- responseHeadersString,
- responseHeaders,
-
- // timeout handle
- timeoutTimer,
-
- // Url cleanup var
- urlAnchor,
-
- // Request state (becomes false upon send and true upon completion)
- completed,
-
- // To know if global events are to be dispatched
- fireGlobals,
-
- // Loop variable
- i,
-
- // uncached part of the url
- uncached,
-
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
-
- // Callbacks context
- callbackContext = s.context || s,
-
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context &&
- ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
-
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks( "once memory" ),
-
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
-
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
-
- // Default abort message
- strAbort = "canceled",
-
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( completed ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return completed ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- if ( completed == null ) {
- name = requestHeadersNames[ name.toLowerCase() ] =
- requestHeadersNames[ name.toLowerCase() ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( completed == null ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( completed ) {
-
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- } else {
-
- // Lazy-add the new callbacks in a way that preserves old ones
- for ( code in map ) {
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR );
-
- // Add protocol if not provided (prefilters might expect it)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || location.href ) + "" )
- .replace( rprotocol, location.protocol + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
-
- // A cross-domain request is in order when the origin doesn't match the current origin.
- if ( s.crossDomain == null ) {
- urlAnchor = document.createElement( "a" );
-
- // Support: IE <=8 - 11, Edge 12 - 13
- // IE throws exception on accessing the href property if url is malformed,
- // e.g. http://example.com:80x/
- try {
- urlAnchor.href = s.url;
-
- // Support: IE <=8 - 11 only
- // Anchor's host property isn't correctly set when s.url is relative
- urlAnchor.href = urlAnchor.href;
- s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
- urlAnchor.protocol + "//" + urlAnchor.host;
- } catch ( e ) {
-
- // If there is an error parsing the URL, assume it is crossDomain,
- // it can be rejected by the transport if it is invalid
- s.crossDomain = true;
- }
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( completed ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
- fireGlobals = jQuery.event && s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- // Remove hash to simplify url manipulation
- cacheURL = s.url.replace( rhash, "" );
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // Remember the hash so we can put it back
- uncached = s.url.slice( cacheURL.length );
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
-
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add or update anti-cache param if needed
- if ( s.cache === false ) {
- cacheURL = cacheURL.replace( rantiCache, "$1" );
- uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached;
- }
-
- // Put hash and anti-cache on the URL that will be requested (gh-1732)
- s.url = cacheURL + uncached;
-
- // Change '%20' to '+' if this is encoded form body content (gh-2658)
- } else if ( s.data && s.processData &&
- ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
- s.data = s.data.replace( r20, "+" );
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
- s.accepts[ s.dataTypes[ 0 ] ] +
- ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend &&
- ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
-
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // Aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- completeDeferred.add( s.complete );
- jqXHR.done( s.success );
- jqXHR.fail( s.error );
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
-
- // If request was aborted inside ajaxSend, stop there
- if ( completed ) {
- return jqXHR;
- }
-
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = window.setTimeout( function() {
- jqXHR.abort( "timeout" );
- }, s.timeout );
- }
-
- try {
- completed = false;
- transport.send( requestHeaders, done );
- } catch ( e ) {
-
- // Rethrow post-completion exceptions
- if ( completed ) {
- throw e;
- }
-
- // Propagate others as results
- done( -1, e );
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Ignore repeat invocations
- if ( completed ) {
- return;
- }
-
- completed = true;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- window.clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Determine if successful
- isSuccess = status >= 200 && status < 300 || status === 304;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // Convert no matter what (that way responseXXX fields are always set)
- response = ajaxConvert( s, response, jqXHR, isSuccess );
-
- // If successful, handle type chaining
- if ( isSuccess ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader( "Last-Modified" );
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader( "etag" );
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // if no content
- if ( status === 204 || s.type === "HEAD" ) {
- statusText = "nocontent";
-
- // if not modified
- } else if ( status === 304 ) {
- statusText = "notmodified";
-
- // If we have data, let's convert it
- } else {
- statusText = response.state;
- success = response.data;
- error = response.error;
- isSuccess = !error;
- }
- } else {
-
- // Extract error from statusText and normalize for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- return jqXHR;
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- }
-} );
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
-
- // Shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- // The url can be an options object (which then must have .url)
- return jQuery.ajax( jQuery.extend( {
- url: url,
- type: method,
- dataType: type,
- data: data,
- success: callback
- }, jQuery.isPlainObject( url ) && url ) );
- };
-} );
-
-
-jQuery._evalUrl = function( url ) {
- return jQuery.ajax( {
- url: url,
-
- // Make this explicit, since user can override this through ajaxSetup (#11264)
- type: "GET",
- dataType: "script",
- cache: true,
- async: false,
- global: false,
- "throws": true
- } );
-};
-
-
-jQuery.fn.extend( {
- wrapAll: function( html ) {
- var wrap;
-
- if ( this[ 0 ] ) {
- if ( jQuery.isFunction( html ) ) {
- html = html.call( this[ 0 ] );
- }
-
- // The elements to wrap the target around
- wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
- if ( this[ 0 ].parentNode ) {
- wrap.insertBefore( this[ 0 ] );
- }
-
- wrap.map( function() {
- var elem = this;
-
- while ( elem.firstElementChild ) {
- elem = elem.firstElementChild;
- }
-
- return elem;
- } ).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapInner( html.call( this, i ) );
- } );
- }
-
- return this.each( function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- } );
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each( function( i ) {
- jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
- } );
- },
-
- unwrap: function( selector ) {
- this.parent( selector ).not( "body" ).each( function() {
- jQuery( this ).replaceWith( this.childNodes );
- } );
- return this;
- }
-} );
-
-
-jQuery.expr.pseudos.hidden = function( elem ) {
- return !jQuery.expr.pseudos.visible( elem );
-};
-jQuery.expr.pseudos.visible = function( elem ) {
- return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
-};
-
-
-
-
-jQuery.ajaxSettings.xhr = function() {
- try {
- return new window.XMLHttpRequest();
- } catch ( e ) {}
-};
-
-var xhrSuccessStatus = {
-
- // File protocol always yields status code 0, assume 200
- 0: 200,
-
- // Support: IE <=9 only
- // #1450: sometimes IE returns 1223 when it should be 204
- 1223: 204
- },
- xhrSupported = jQuery.ajaxSettings.xhr();
-
-support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-support.ajax = xhrSupported = !!xhrSupported;
-
-jQuery.ajaxTransport( function( options ) {
- var callback, errorCallback;
-
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( support.cors || xhrSupported && !options.crossDomain ) {
- return {
- send: function( headers, complete ) {
- var i,
- xhr = options.xhr();
-
- xhr.open(
- options.type,
- options.url,
- options.async,
- options.username,
- options.password
- );
-
- // Apply custom fields if provided
- if ( options.xhrFields ) {
- for ( i in options.xhrFields ) {
- xhr[ i ] = options.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( options.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( options.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
- }
-
- // Set headers
- for ( i in headers ) {
- xhr.setRequestHeader( i, headers[ i ] );
- }
-
- // Callback
- callback = function( type ) {
- return function() {
- if ( callback ) {
- callback = errorCallback = xhr.onload =
- xhr.onerror = xhr.onabort = xhr.onreadystatechange = null;
-
- if ( type === "abort" ) {
- xhr.abort();
- } else if ( type === "error" ) {
-
- // Support: IE <=9 only
- // On a manual native abort, IE9 throws
- // errors on any property access that is not readyState
- if ( typeof xhr.status !== "number" ) {
- complete( 0, "error" );
- } else {
- complete(
-
- // File: protocol always yields status 0; see #8605, #14207
- xhr.status,
- xhr.statusText
- );
- }
- } else {
- complete(
- xhrSuccessStatus[ xhr.status ] || xhr.status,
- xhr.statusText,
-
- // Support: IE <=9 only
- // IE9 has no XHR2 but throws on binary (trac-11426)
- // For XHR2 non-text, let the caller handle it (gh-2498)
- ( xhr.responseType || "text" ) !== "text" ||
- typeof xhr.responseText !== "string" ?
- { binary: xhr.response } :
- { text: xhr.responseText },
- xhr.getAllResponseHeaders()
- );
- }
- }
- };
- };
-
- // Listen to events
- xhr.onload = callback();
- errorCallback = xhr.onerror = callback( "error" );
-
- // Support: IE 9 only
- // Use onreadystatechange to replace onabort
- // to handle uncaught aborts
- if ( xhr.onabort !== undefined ) {
- xhr.onabort = errorCallback;
- } else {
- xhr.onreadystatechange = function() {
-
- // Check readyState before timeout as it changes
- if ( xhr.readyState === 4 ) {
-
- // Allow onerror to be called first,
- // but that will not handle a native abort
- // Also, save errorCallback to a variable
- // as xhr.onerror cannot be accessed
- window.setTimeout( function() {
- if ( callback ) {
- errorCallback();
- }
- } );
- }
- };
- }
-
- // Create the abort callback
- callback = callback( "abort" );
-
- try {
-
- // Do send the request (this may raise an exception)
- xhr.send( options.hasContent && options.data || null );
- } catch ( e ) {
-
- // #14683: Only rethrow if this hasn't been notified as an error yet
- if ( callback ) {
- throw e;
- }
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-
-
-
-// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
-jQuery.ajaxPrefilter( function( s ) {
- if ( s.crossDomain ) {
- s.contents.script = false;
- }
-} );
-
-// Install script dataType
-jQuery.ajaxSetup( {
- accepts: {
- script: "text/javascript, application/javascript, " +
- "application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-} );
-
-// Handle cache's special case and crossDomain
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- }
-} );
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function( s ) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
- var script, callback;
- return {
- send: function( _, complete ) {
- script = jQuery( "<script>" ).prop( {
- charset: s.scriptCharset,
- src: s.url
- } ).on(
- "load error",
- callback = function( evt ) {
- script.remove();
- callback = null;
- if ( evt ) {
- complete( evt.type === "error" ? 404 : 200, evt.type );
- }
- }
- );
-
- // Use native DOM manipulation to avoid our domManip AJAX trickery
- document.head.appendChild( script[ 0 ] );
- },
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-
-
-
-var oldCallbacks = [],
- rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup( {
- jsonp: "callback",
- jsonpCallback: function() {
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
- this[ callback ] = true;
- return callback;
- }
-} );
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var callbackName, overwritten, responseContainer,
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
- "url" :
- typeof s.data === "string" &&
- ( s.contentType || "" )
- .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
- rjsonp.test( s.data ) && "data"
- );
-
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
- // Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
- s.jsonpCallback() :
- s.jsonpCallback;
-
- // Insert callback into url or form data
- if ( jsonProp ) {
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
- } else if ( s.jsonp !== false ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
- }
-
- // Use data converter to retrieve json after script execution
- s.converters[ "script json" ] = function() {
- if ( !responseContainer ) {
- jQuery.error( callbackName + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // Force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Install callback
- overwritten = window[ callbackName ];
- window[ callbackName ] = function() {
- responseContainer = arguments;
- };
-
- // Clean-up function (fires after converters)
- jqXHR.always( function() {
-
- // If previous value didn't exist - remove it
- if ( overwritten === undefined ) {
- jQuery( window ).removeProp( callbackName );
-
- // Otherwise restore preexisting value
- } else {
- window[ callbackName ] = overwritten;
- }
-
- // Save back as free
- if ( s[ callbackName ] ) {
-
- // Make sure that re-using the options doesn't screw things around
- s.jsonpCallback = originalSettings.jsonpCallback;
-
- // Save the callback name for future use
- oldCallbacks.push( callbackName );
- }
-
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
- overwritten( responseContainer[ 0 ] );
- }
-
- responseContainer = overwritten = undefined;
- } );
-
- // Delegate to script
- return "script";
- }
-} );
-
-
-
-
-// Support: Safari 8 only
-// In Safari 8 documents created via document.implementation.createHTMLDocument
-// collapse sibling forms: the second one becomes a child of the first one.
-// Because of that, this security measure has to be disabled in Safari 8.
-// https://bugs.webkit.org/show_bug.cgi?id=137337
-support.createHTMLDocument = ( function() {
- var body = document.implementation.createHTMLDocument( "" ).body;
- body.innerHTML = "<form></form><form></form>";
- return body.childNodes.length === 2;
-} )();
-
-
-// Argument "data" should be string of html
-// context (optional): If specified, the fragment will be created in this context,
-// defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-jQuery.parseHTML = function( data, context, keepScripts ) {
- if ( typeof data !== "string" ) {
- return [];
- }
- if ( typeof context === "boolean" ) {
- keepScripts = context;
- context = false;
- }
-
- var base, parsed, scripts;
-
- if ( !context ) {
-
- // Stop scripts or inline event handlers from being executed immediately
- // by using document.implementation
- if ( support.createHTMLDocument ) {
- context = document.implementation.createHTMLDocument( "" );
-
- // Set the base href for the created document
- // so any parsed elements with URLs
- // are based on the document's URL (gh-2965)
- base = context.createElement( "base" );
- base.href = document.location.href;
- context.head.appendChild( base );
- } else {
- context = document;
- }
- }
-
- parsed = rsingleTag.exec( data );
- scripts = !keepScripts && [];
-
- // Single tag
- if ( parsed ) {
- return [ context.createElement( parsed[ 1 ] ) ];
- }
-
- parsed = buildFragment( [ data ], context, scripts );
-
- if ( scripts && scripts.length ) {
- jQuery( scripts ).remove();
- }
-
- return jQuery.merge( [], parsed.childNodes );
-};
-
-
-/**
- * Load a url into a page
- */
-jQuery.fn.load = function( url, params, callback ) {
- var selector, type, response,
- self = this,
- off = url.indexOf( " " );
-
- if ( off > -1 ) {
- selector = stripAndCollapse( url.slice( off ) );
- url = url.slice( 0, off );
- }
-
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
-
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( params && typeof params === "object" ) {
- type = "POST";
- }
-
- // If we have elements to modify, make the request
- if ( self.length > 0 ) {
- jQuery.ajax( {
- url: url,
-
- // If "type" variable is undefined, then "GET" method will be used.
- // Make value of this field explicit since
- // user can override it through ajaxSetup method
- type: type || "GET",
- dataType: "html",
- data: params
- } ).done( function( responseText ) {
-
- // Save response for use in complete callback
- response = arguments;
-
- self.html( selector ?
-
- // If a selector was specified, locate the right elements in a dummy div
- // Exclude scripts to avoid IE 'Permission Denied' errors
- jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- // If the request succeeds, this function gets "data", "status", "jqXHR"
- // but they are ignored because response was set above.
- // If it fails, this function gets "jqXHR", "status", "error"
- } ).always( callback && function( jqXHR, status ) {
- self.each( function() {
- callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
- } );
- } );
- }
-
- return this;
-};
-
-
-
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [
- "ajaxStart",
- "ajaxStop",
- "ajaxComplete",
- "ajaxError",
- "ajaxSuccess",
- "ajaxSend"
-], function( i, type ) {
- jQuery.fn[ type ] = function( fn ) {
- return this.on( type, fn );
- };
-} );
-
-
-
-
-jQuery.expr.pseudos.animated = function( elem ) {
- return jQuery.grep( jQuery.timers, function( fn ) {
- return elem === fn.elem;
- } ).length;
-};
-
-
-
-
-/**
- * Gets a window from an element
- */
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
-}
-
-jQuery.offset = {
- setOffset: function( elem, options, i ) {
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
- position = jQuery.css( elem, "position" ),
- curElem = jQuery( elem ),
- props = {};
-
- // Set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- curOffset = curElem.offset();
- curCSSTop = jQuery.css( elem, "top" );
- curCSSLeft = jQuery.css( elem, "left" );
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
- ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
-
- // Need to be able to calculate position if either
- // top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
-
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
-
- // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
- options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
-
- } else {
- curElem.css( props );
- }
- }
-};
-
-jQuery.fn.extend( {
- offset: function( options ) {
-
- // Preserve chaining for setter
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each( function( i ) {
- jQuery.offset.setOffset( this, options, i );
- } );
- }
-
- var docElem, win, rect, doc,
- elem = this[ 0 ];
-
- if ( !elem ) {
- return;
- }
-
- // Support: IE <=11 only
- // Running getBoundingClientRect on a
- // disconnected node in IE throws an error
- if ( !elem.getClientRects().length ) {
- return { top: 0, left: 0 };
- }
-
- rect = elem.getBoundingClientRect();
-
- // Make sure element is not hidden (display: none)
- if ( rect.width || rect.height ) {
- doc = elem.ownerDocument;
- win = getWindow( doc );
- docElem = doc.documentElement;
-
- return {
- top: rect.top + win.pageYOffset - docElem.clientTop,
- left: rect.left + win.pageXOffset - docElem.clientLeft
- };
- }
-
- // Return zeros for disconnected and hidden elements (gh-2310)
- return rect;
- },
-
- position: function() {
- if ( !this[ 0 ] ) {
- return;
- }
-
- var offsetParent, offset,
- elem = this[ 0 ],
- parentOffset = { top: 0, left: 0 };
-
- // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
- // because it is its only offset parent
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
-
- // Assume getBoundingClientRect is there when computed position is fixed
- offset = elem.getBoundingClientRect();
-
- } else {
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent();
-
- // Get correct offsets
- offset = this.offset();
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
- parentOffset = offsetParent.offset();
- }
-
- // Add offsetParent borders
- parentOffset = {
- top: parentOffset.top + jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ),
- left: parentOffset.left + jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true )
- };
- }
-
- // Subtract parent offsets and element margins
- return {
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
- };
- },
-
- // This method will return documentElement in the following cases:
- // 1) For the element inside the iframe without offsetParent, this method will return
- // documentElement of the parent window
- // 2) For the hidden or detached element
- // 3) For body or html element, i.e. in case of the html node - it will return itself
- //
- // but those exceptions were never presented as a real life use-cases
- // and might be considered as more preferable results.
- //
- // This logic, however, is not guaranteed and can change at any point in the future
- offsetParent: function() {
- return this.map( function() {
- var offsetParent = this.offsetParent;
-
- while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
- offsetParent = offsetParent.offsetParent;
- }
-
- return offsetParent || documentElement;
- } );
- }
-} );
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
- var top = "pageYOffset" === prop;
-
- jQuery.fn[ method ] = function( val ) {
- return access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? win[ prop ] : elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : win.pageXOffset,
- top ? val : win.pageYOffset
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length );
- };
-} );
-
-// Support: Safari <=7 - 9.1, Chrome <=37 - 49
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
-// getComputedStyle returns percent when specified for top/left/bottom/right;
-// rather than make the css module depend on the offset module, just check for it here
-jQuery.each( [ "top", "left" ], function( i, prop ) {
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
- function( elem, computed ) {
- if ( computed ) {
- computed = curCSS( elem, prop );
-
- // If curCSS returns percentage, fallback to offset
- return rnumnonpx.test( computed ) ?
- jQuery( elem ).position()[ prop ] + "px" :
- computed;
- }
- }
- );
-} );
-
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
- function( defaultExtra, funcName ) {
-
- // Margin is only for outerHeight, outerWidth
- jQuery.fn[ funcName ] = function( margin, value ) {
- var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
- extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
- return access( this, function( elem, type, value ) {
- var doc;
-
- if ( jQuery.isWindow( elem ) ) {
-
- // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
- return funcName.indexOf( "outer" ) === 0 ?
- elem[ "inner" + name ] :
- elem.document.documentElement[ "client" + name ];
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- doc = elem.documentElement;
-
- // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
- // whichever is greatest
- return Math.max(
- elem.body[ "scroll" + name ], doc[ "scroll" + name ],
- elem.body[ "offset" + name ], doc[ "offset" + name ],
- doc[ "client" + name ]
- );
- }
-
- return value === undefined ?
-
- // Get width or height on the element, requesting but not forcing parseFloat
- jQuery.css( elem, type, extra ) :
-
- // Set width or height on the element
- jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable );
- };
- } );
-} );
-
-
-jQuery.fn.extend( {
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
-
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ?
- this.off( selector, "**" ) :
- this.off( types, selector || "**", fn );
- }
-} );
-
-jQuery.parseJSON = JSON.parse;
-
-
-
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-if ( typeof define === "function" && define.amd ) {
- define( "jquery", [], function() {
- return jQuery;
- } );
-}
-
-
-
-
-var
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$;
-
-jQuery.noConflict = function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
-};
-
-// Expose jQuery and $ identifiers, even in AMD
-// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-if ( !noGlobal ) {
- window.jQuery = window.$ = jQuery;
-}
-
-
-
-
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery/dist/jquery.min.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery/dist/jquery.min.js
deleted file mode 100644
index 4c5be4c0..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/jquery/dist/jquery.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/*! jQuery v3.1.1 | (c) jQuery Foundation | jquery.org/license */
-!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.1.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=r.isArray(d)))?(e?(e=!1,f=c&&r.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,C=/^.[^:#\[\.,]*$/;function D(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):C.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b<d;b++)if(r.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)r.find(a,e[b],c);return d>1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(D(this,a||[],!1))},not:function(a){return this.pushStack(D(this,a||[],!0))},is:function(a){return!!D(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var E,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,G=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||E,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:F.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),B.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};G.prototype=r.fn,E=r(d);var H=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(r.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&r(a);if(!A.test(a))for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function J(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return J(a,"nextSibling")},prev:function(a){return J(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return a.contentDocument||r.merge([],a.childNodes)}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(I[a]||r.uniqueSort(e),H.test(a)&&e.reverse()),this.pushStack(e)}});var K=/[^\x20\t\r\n\f]+/g;function L(a){var b={};return r.each(a.match(K)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?L(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){r.each(b,function(b,c){r.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==r.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return r.each(arguments,function(a,b){var c;while((c=r.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function M(a){return a}function N(a){throw a}function O(a,b,c){var d;try{a&&r.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&r.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b<f)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,r.isFunction(j)?e?j.call(a,g(f,c,M,e),g(f,c,N,e)):(f++,j.call(a,g(f,c,M,e),g(f,c,N,e),g(f,c,M,c.notifyWith))):(d!==M&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},k=e?j:function(){try{j()}catch(a){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(a,k.stackTrace),b+1>=f&&(d!==N&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:M,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:M)),c[2][3].add(g(0,a,r.isFunction(d)?d:N))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(O(a,g.done(h(c)).resolve,g.reject),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)O(e[c],h(c),g.reject);return g.promise()}});var P=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&P.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var Q=r.Deferred();r.fn.ready=function(a){return Q.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,holdReady:function(a){a?r.readyWait++:r.ready(!0)},ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||Q.resolveWith(d,[r]))}}),r.ready.then=Q.then;function R(){d.removeEventListener("DOMContentLoaded",R),
-a.removeEventListener("load",R),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",R),a.addEventListener("load",R));var S=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)S(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},T=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function U(){this.expando=r.expando+U.uid++}U.uid=1,U.prototype={cache:function(a){var b=a[this.expando];return b||(b={},T(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){r.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(K)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var V=new U,W=new U,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function Z(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:X.test(a)?JSON.parse(a):a)}function $(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Y,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=Z(c)}catch(e){}W.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return W.hasData(a)||V.hasData(a)},data:function(a,b,c){return W.access(a,b,c)},removeData:function(a,b){W.remove(a,b)},_data:function(a,b,c){return V.access(a,b,c)},_removeData:function(a,b){V.remove(a,b)}}),r.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=W.get(f),1===f.nodeType&&!V.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),$(f,d,e[d])));V.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){W.set(this,a)}):S(this,function(b){var c;if(f&&void 0===b){if(c=W.get(f,a),void 0!==c)return c;if(c=$(f,a),void 0!==c)return c}else this.each(function(){W.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){W.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=V.get(a,b),c&&(!d||r.isArray(c)?d=V.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return V.get(a,c)||V.access(a,c,{empty:r.Callbacks("once memory").add(function(){V.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=V.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var _=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,aa=new RegExp("^(?:([+-])=|)("+_+")([a-z%]*)$","i"),ba=["Top","Right","Bottom","Left"],ca=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};function ea(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return r.css(a,b,"")},i=h(),j=c&&c[3]||(r.cssNumber[b]?"":"px"),k=(r.cssNumber[b]||"px"!==j&&+i)&&aa.exec(r.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,r.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var fa={};function ga(a){var b,c=a.ownerDocument,d=a.nodeName,e=fa[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=r.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),fa[d]=e,e)}function ha(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=V.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&ca(d)&&(e[f]=ga(d))):"none"!==c&&(e[f]="none",V.set(d,"display",c)));for(f=0;f<g;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}r.fn.extend({show:function(){return ha(this,!0)},hide:function(){return ha(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){ca(this)?r(this).show():r(this).hide()})}});var ia=/^(?:checkbox|radio)$/i,ja=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ka=/^$|\/(?:java|ecma)script/i,la={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};la.optgroup=la.option,la.tbody=la.tfoot=la.colgroup=la.caption=la.thead,la.th=la.td;function ma(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&r.nodeName(a,b)?r.merge([a],c):c}function na(a,b){for(var c=0,d=a.length;c<d;c++)V.set(a[c],"globalEval",!b||V.get(b[c],"globalEval"))}var oa=/<|&#?\w+;/;function pa(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;n<o;n++)if(f=a[n],f||0===f)if("object"===r.type(f))r.merge(m,f.nodeType?[f]:f);else if(oa.test(f)){g=g||l.appendChild(b.createElement("div")),h=(ja.exec(f)||["",""])[1].toLowerCase(),i=la[h]||la._default,g.innerHTML=i[1]+r.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;r.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",n=0;while(f=m[n++])if(d&&r.inArray(f,d)>-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=ma(l.appendChild(f),"script"),j&&na(g),c){k=0;while(f=g[k++])ka.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var qa=d.documentElement,ra=/^key/,sa=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ta=/^([^.]*)(?:\.(.+)|)/;function ua(){return!0}function va(){return!1}function wa(){try{return d.activeElement}catch(a){}}function xa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)xa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=va;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(qa,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(K)||[""],j=b.length;while(j--)h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.hasData(a)&&V.get(a);if(q&&(i=q.events)){b=(b||"").match(K)||[""],j=b.length;while(j--)if(h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&V.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(V.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c<arguments.length;c++)i[c]=arguments[c];if(b.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,b)!==!1){h=r.event.handlers.call(this,b,j),c=0;while((f=h[c++])&&!b.isPropagationStopped()){b.currentTarget=f.elem,d=0;while((g=f.handlers[d++])&&!b.isImmediatePropagationStopped())b.rnamespace&&!b.rnamespace.test(g.namespace)||(b.handleObj=g,b.data=g.data,e=((r.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(b.result=e)===!1&&(b.preventDefault(),b.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,b),b.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c<i;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?r(e,this).index(j)>-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(r.Event.prototype,a,{enumerable:!0,configurable:!0,get:r.isFunction(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[r.expando]?a:new r.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==wa()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===wa()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&r.nodeName(this,"input"))return this.click(),!1},_default:function(a){return r.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},r.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},r.Event=function(a,b){return this instanceof r.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ua:va,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&r.extend(this,b),this.timeStamp=a&&a.timeStamp||r.now(),void(this[r.expando]=!0)):new r.Event(a,b)},r.Event.prototype={constructor:r.Event,isDefaultPrevented:va,isPropagationStopped:va,isImmediatePropagationStopped:va,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ua,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ua,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ua,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},r.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&ra.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&sa.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},r.event.addProp),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){r.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||r.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),r.fn.extend({on:function(a,b,c,d){return xa(this,a,b,c,d)},one:function(a,b,c,d){return xa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,r(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=va),this.each(function(){r.event.remove(this,a,c,b)})}});var ya=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,za=/<script|<style|<link/i,Aa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ba=/^true\/(.*)/,Ca=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Da(a,b){return r.nodeName(a,"table")&&r.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function Ea(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Fa(a){var b=Ba.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ga(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(V.hasData(a)&&(f=V.access(a),g=V.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)r.event.add(b,e,j[e][c])}W.hasData(a)&&(h=W.access(a),i=r.extend({},h),W.set(b,i))}}function Ha(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ia.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function Ia(a,b,c,d){b=g.apply([],b);var e,f,h,i,j,k,l=0,m=a.length,n=m-1,q=b[0],s=r.isFunction(q);if(s||m>1&&"string"==typeof q&&!o.checkClone&&Aa.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ia(f,b,c,d)});if(m&&(e=pa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(ma(e,"script"),Ea),i=h.length;l<m;l++)j=e,l!==n&&(j=r.clone(j,!0,!0),i&&r.merge(h,ma(j,"script"))),c.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,r.map(h,Fa),l=0;l<i;l++)j=h[l],ka.test(j.type||"")&&!V.access(j,"globalEval")&&r.contains(k,j)&&(j.src?r._evalUrl&&r._evalUrl(j.src):p(j.textContent.replace(Ca,""),k))}return a}function Ja(a,b,c){for(var d,e=b?r.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||r.cleanData(ma(d)),d.parentNode&&(c&&r.contains(d.ownerDocument,d)&&na(ma(d,"script")),d.parentNode.removeChild(d));return a}r.extend({htmlPrefilter:function(a){return a.replace(ya,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=ma(h),f=ma(a),d=0,e=f.length;d<e;d++)Ha(f[d],g[d]);if(b)if(c)for(f=f||ma(a),g=g||ma(h),d=0,e=f.length;d<e;d++)Ga(f[d],g[d]);else Ga(a,h);return g=ma(h,"script"),g.length>0&&na(g,!i&&ma(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(T(c)){if(b=c[V.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[V.expando]=void 0}c[W.expando]&&(c[W.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ja(this,a,!0)},remove:function(a){return Ja(this,a)},text:function(a){return S(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.appendChild(a)}})},prepend:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(ma(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return S(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!za.test(a)&&!la[(ja.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(ma(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ia(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(ma(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){r.fn[a]=function(a){for(var c,d=[],e=r(a),f=e.length-1,g=0;g<=f;g++)c=g===f?this:this.clone(!0),r(e[g])[b](c),h.apply(d,c.get());return this.pushStack(d)}});var Ka=/^margin/,La=new RegExp("^("+_+")(?!px)[a-z%]+$","i"),Ma=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(i){i.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i.innerHTML="",qa.appendChild(h);var b=a.getComputedStyle(i);c="1%"!==b.top,g="2px"===b.marginLeft,e="4px"===b.width,i.style.marginRight="50%",f="4px"===b.marginRight,qa.removeChild(h),i=null}}var c,e,f,g,h=d.createElement("div"),i=d.createElement("div");i.style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===i.style.backgroundClip,h.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",h.appendChild(i),r.extend(o,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),e},pixelMarginRight:function(){return b(),f},reliableMarginLeft:function(){return b(),g}}))}();function Na(a,b,c){var d,e,f,g,h=a.style;return c=c||Ma(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||r.contains(a.ownerDocument,a)||(g=r.style(a,b)),!o.pixelMarginRight()&&La.test(g)&&Ka.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function Oa(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Pa=/^(none|table(?!-c[ea]).+)/,Qa={position:"absolute",visibility:"hidden",display:"block"},Ra={letterSpacing:"0",fontWeight:"400"},Sa=["Webkit","Moz","ms"],Ta=d.createElement("div").style;function Ua(a){if(a in Ta)return a;var b=a[0].toUpperCase()+a.slice(1),c=Sa.length;while(c--)if(a=Sa[c]+b,a in Ta)return a}function Va(a,b,c){var d=aa.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Wa(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;f<4;f+=2)"margin"===c&&(g+=r.css(a,c+ba[f],!0,e)),d?("content"===c&&(g-=r.css(a,"padding"+ba[f],!0,e)),"margin"!==c&&(g-=r.css(a,"border"+ba[f]+"Width",!0,e))):(g+=r.css(a,"padding"+ba[f],!0,e),"padding"!==c&&(g+=r.css(a,"border"+ba[f]+"Width",!0,e)));return g}function Xa(a,b,c){var d,e=!0,f=Ma(a),g="border-box"===r.css(a,"boxSizing",!1,f);if(a.getClientRects().length&&(d=a.getBoundingClientRect()[b]),d<=0||null==d){if(d=Na(a,b,f),(d<0||null==d)&&(d=a.style[b]),La.test(d))return d;e=g&&(o.boxSizingReliable()||d===a.style[b]),d=parseFloat(d)||0}return d+Wa(a,b,c||(g?"border":"content"),e,f)+"px"}r.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Na(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=r.camelCase(b),i=a.style;return b=r.cssProps[h]||(r.cssProps[h]=Ua(h)||h),g=r.cssHooks[b]||r.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=aa.exec(c))&&e[1]&&(c=ea(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(r.cssNumber[h]?"":"px")),o.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=r.camelCase(b);return b=r.cssProps[h]||(r.cssProps[h]=Ua(h)||h),g=r.cssHooks[b]||r.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Na(a,b,d)),"normal"===e&&b in Ra&&(e=Ra[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),r.each(["height","width"],function(a,b){r.cssHooks[b]={get:function(a,c,d){if(c)return!Pa.test(r.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?Xa(a,b,d):da(a,Qa,function(){return Xa(a,b,d)})},set:function(a,c,d){var e,f=d&&Ma(a),g=d&&Wa(a,b,d,"border-box"===r.css(a,"boxSizing",!1,f),f);return g&&(e=aa.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=r.css(a,b)),Va(a,c,g)}}}),r.cssHooks.marginLeft=Oa(o.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Na(a,"marginLeft"))||a.getBoundingClientRect().left-da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),r.each({margin:"",padding:"",border:"Width"},function(a,b){r.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+ba[d]+b]=f[d]||f[d-2]||f[0];return e}},Ka.test(a)||(r.cssHooks[a+b].set=Va)}),r.fn.extend({css:function(a,b){return S(this,function(a,b,c){var d,e,f={},g=0;if(r.isArray(b)){for(d=Ma(a),e=b.length;g<e;g++)f[b[g]]=r.css(a,b[g],!1,d);return f}return void 0!==c?r.style(a,b,c):r.css(a,b)},a,b,arguments.length>1)}});function Ya(a,b,c,d,e){return new Ya.prototype.init(a,b,c,d,e)}r.Tween=Ya,Ya.prototype={constructor:Ya,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=Ya.propHooks[this.prop];return a&&a.get?a.get(this):Ya.propHooks._default.get(this)},run:function(a){var b,c=Ya.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ya.propHooks._default.set(this),this}},Ya.prototype.init.prototype=Ya.prototype,Ya.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},Ya.propHooks.scrollTop=Ya.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=Ya.prototype.init,r.fx.step={};var Za,$a,_a=/^(?:toggle|show|hide)$/,ab=/queueHooks$/;function bb(){$a&&(a.requestAnimationFrame(bb),r.fx.tick())}function cb(){return a.setTimeout(function(){Za=void 0}),Za=r.now()}function db(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ba[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function eb(a,b,c){for(var d,e=(hb.tweeners[b]||[]).concat(hb.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function fb(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&ca(a),q=V.get(a,"fxshow");c.queue||(g=r._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,r.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],_a.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||r.style(a,d)}if(i=!r.isEmptyObject(b),i||!r.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=V.get(a,"display")),k=r.css(a,"display"),"none"===k&&(j?k=j:(ha([a],!0),j=a.style.display||j,k=r.css(a,"display"),ha([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===r.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=V.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&ha([a],!0),m.done(function(){p||ha([a]),V.remove(a,"fxshow");for(d in n)r.style(a,d,n[d])})),i=eb(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function gb(a,b){var c,d,e,f,g;for(c in a)if(d=r.camelCase(c),e=b[d],f=a[c],r.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=r.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function hb(a,b,c){var d,e,f=0,g=hb.prefilters.length,h=r.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Za||cb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:r.extend({},b),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},c),originalProperties:b,originalOptions:c,startTime:Za||cb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=r.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(gb(k,j.opts.specialEasing);f<g;f++)if(d=hb.prefilters[f].call(j,a,k,j.opts))return r.isFunction(d.stop)&&(r._queueHooks(j.elem,j.opts.queue).stop=r.proxy(d.stop,d)),d;return r.map(k,eb,j),r.isFunction(j.opts.start)&&j.opts.start.call(a,j),r.fx.timer(r.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}r.Animation=r.extend(hb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return ea(c.elem,a,aa.exec(b),c),c}]},tweener:function(a,b){r.isFunction(a)?(b=a,a=["*"]):a=a.match(K);for(var c,d=0,e=a.length;d<e;d++)c=a[d],hb.tweeners[c]=hb.tweeners[c]||[],hb.tweeners[c].unshift(b)},prefilters:[fb],prefilter:function(a,b){b?hb.prefilters.unshift(a):hb.prefilters.push(a)}}),r.speed=function(a,b,c){var e=a&&"object"==typeof a?r.extend({},a):{complete:c||!c&&b||r.isFunction(a)&&a,duration:a,easing:c&&b||b&&!r.isFunction(b)&&b};return r.fx.off||d.hidden?e.duration=0:"number"!=typeof e.duration&&(e.duration in r.fx.speeds?e.duration=r.fx.speeds[e.duration]:e.duration=r.fx.speeds._default),null!=e.queue&&e.queue!==!0||(e.queue="fx"),e.old=e.complete,e.complete=function(){r.isFunction(e.old)&&e.old.call(this),e.queue&&r.dequeue(this,e.queue)},e},r.fn.extend({fadeTo:function(a,b,c,d){return this.filter(ca).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=r.isEmptyObject(a),f=r.speed(b,c,d),g=function(){var b=hb(this,r.extend({},a),f);(e||V.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=r.timers,g=V.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&ab.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||r.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=V.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=r.timers,g=d?d.length:0;for(c.finish=!0,r.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),r.each(["toggle","show","hide"],function(a,b){var c=r.fn[b];r.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(db(b,!0),a,d,e)}}),r.each({slideDown:db("show"),slideUp:db("hide"),slideToggle:db("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){r.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),r.timers=[],r.fx.tick=function(){var a,b=0,c=r.timers;for(Za=r.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||r.fx.stop(),Za=void 0},r.fx.timer=function(a){r.timers.push(a),a()?r.fx.start():r.timers.pop()},r.fx.interval=13,r.fx.start=function(){$a||($a=a.requestAnimationFrame?a.requestAnimationFrame(bb):a.setInterval(r.fx.tick,r.fx.interval))},r.fx.stop=function(){a.cancelAnimationFrame?a.cancelAnimationFrame($a):a.clearInterval($a),$a=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(b,c){return b=r.fx?r.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",o.checkOn=""!==a.value,o.optSelected=c.selected,a=d.createElement("input"),a.value="t",a.type="radio",o.radioValue="t"===a.value}();var ib,jb=r.expr.attrHandle;r.fn.extend({attr:function(a,b){return S(this,r.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?ib:void 0)),
-void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&r.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(K);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),ib={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=jb[b]||r.find.attr;jb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=jb[g],jb[g]=e,e=null!=c(a,b,d)?g:null,jb[g]=f),e}});var kb=/^(?:input|select|textarea|button)$/i,lb=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return S(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):kb.test(a.nodeName)||lb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function mb(a){var b=a.match(K)||[];return b.join(" ")}function nb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,nb(this)))});if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,nb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,nb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(K)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=nb(this),b&&V.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":V.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+mb(nb(c))+" ").indexOf(b)>-1)return!0;return!1}});var ob=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":r.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ob,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:mb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d<i;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!r.nodeName(c.parentNode,"optgroup"))){if(b=r(c).val(),g)return b;h.push(b)}return h},set:function(a,b){var c,d,e=a.options,f=r.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=r.inArray(r.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(r.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var pb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!pb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,pb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(V.get(h,"events")||{})[b.type]&&V.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&T(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!T(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=V.access(d,b);e||d.addEventListener(a,c,!0),V.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=V.access(d,b)-1;e?V.access(d,b,e):(d.removeEventListener(a,c,!0),V.remove(d,b))}}});var qb=a.location,rb=r.now(),sb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var tb=/\[\]$/,ub=/\r?\n/g,vb=/^(?:submit|button|image|reset|file)$/i,wb=/^(?:input|select|textarea|keygen)/i;function xb(a,b,c,d){var e;if(r.isArray(b))r.each(b,function(b,e){c||tb.test(a)?d(a,e):xb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)xb(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(r.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)xb(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&wb.test(this.nodeName)&&!vb.test(a)&&(this.checked||!ia.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:r.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(ub,"\r\n")}}):{name:b.name,value:c.replace(ub,"\r\n")}}).get()}});var yb=/%20/g,zb=/#.*$/,Ab=/([?&])_=[^&]*/,Bb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Cb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Db=/^(?:GET|HEAD)$/,Eb=/^\/\//,Fb={},Gb={},Hb="*/".concat("*"),Ib=d.createElement("a");Ib.href=qb.href;function Jb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(K)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Kb(a,b,c,d){var e={},f=a===Gb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Lb(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Mb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Nb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qb.href,type:"GET",isLocal:Cb.test(qb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Lb(Lb(a,r.ajaxSettings),b):Lb(r.ajaxSettings,a)},ajaxPrefilter:Jb(Fb),ajaxTransport:Jb(Gb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Bb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||qb.href)+"").replace(Eb,qb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(K)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Ib.protocol+"//"+Ib.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Kb(Fb,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Db.test(o.type),f=o.url.replace(zb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(yb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(sb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Ab,"$1"),n=(sb.test(f)?"&":"?")+"_="+rb++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Hb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Kb(Gb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Mb(o,y,d)),v=Nb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Ob={0:200,1223:204},Pb=r.ajaxSettings.xhr();o.cors=!!Pb&&"withCredentials"in Pb,o.ajax=Pb=!!Pb,r.ajaxTransport(function(b){var c,d;if(o.cors||Pb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Ob[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Qb=[],Rb=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Qb.pop()||r.expando+"_"+rb++;return this[a]=!0,a}}),r.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Rb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rb.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=r.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Rb,"$1"+e):b.jsonp!==!1&&(b.url+=(sb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||r.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?r(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Qb.push(e)),g&&r.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),o.createHTMLDocument=function(){var a=d.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),r.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var e,f,g;return b||(o.createHTMLDocument?(b=d.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=d.location.href,b.head.appendChild(e)):b=d),f=B.exec(a),g=!c&&[],f?[b.createElement(f[1])]:(f=pa([a],b,g),g&&g.length&&r(g).remove(),r.merge([],f.childNodes))},r.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=mb(a.slice(h)),a=a.slice(0,h)),r.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&r.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?r("<div>").append(r.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){r.fn[b]=function(a){return this.on(b,a)}}),r.expr.pseudos.animated=function(a){return r.grep(r.timers,function(b){return a===b.elem}).length};function Sb(a){return r.isWindow(a)?a:9===a.nodeType&&a.defaultView}r.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=r.css(a,"position"),l=r(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=r.css(a,"top"),i=r.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),r.isFunction(b)&&(b=b.call(a,c,r.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},r.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){r.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),d.width||d.height?(e=f.ownerDocument,c=Sb(e),b=e.documentElement,{top:d.top+c.pageYOffset-b.clientTop,left:d.left+c.pageXOffset-b.clientLeft}):d):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===r.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),r.nodeName(a[0],"html")||(d=a.offset()),d={top:d.top+r.css(a[0],"borderTopWidth",!0),left:d.left+r.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-r.css(c,"marginTop",!0),left:b.left-d.left-r.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===r.css(a,"position"))a=a.offsetParent;return a||qa})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;r.fn[a]=function(d){return S(this,function(a,d,e){var f=Sb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),r.each(["top","left"],function(a,b){r.cssHooks[b]=Oa(o.pixelPosition,function(a,c){if(c)return c=Na(a,b),La.test(c)?r(a).position()[b]+"px":c})}),r.each({Height:"height",Width:"width"},function(a,b){r.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){r.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return S(this,function(b,c,e){var f;return r.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?r.css(b,c,h):r.style(b,c,e,h)},b,g?e:void 0,g)}})}),r.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),r.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return r});var Tb=a.jQuery,Ub=a.$;return r.noConflict=function(b){return a.$===r&&(a.$=Ub),b&&a.jQuery===r&&(a.jQuery=Tb),r},b||(a.jQuery=a.$=r),r});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/json3/lib/json3.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/json3/lib/json3.js
deleted file mode 100644
index 4817c9e7..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/json3/lib/json3.js
+++ /dev/null
@@ -1,902 +0,0 @@
-/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
-;(function () {
- // Detect the `define` function exposed by asynchronous module loaders. The
- // strict `define` check is necessary for compatibility with `r.js`.
- var isLoader = typeof define === "function" && define.amd;
-
- // A set of types used to distinguish objects from primitives.
- var objectTypes = {
- "function": true,
- "object": true
- };
-
- // Detect the `exports` object exposed by CommonJS implementations.
- var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
-
- // Use the `global` object exposed by Node (including Browserify via
- // `insert-module-globals`), Narwhal, and Ringo as the default context,
- // and the `window` object in browsers. Rhino exports a `global` function
- // instead.
- var root = objectTypes[typeof window] && window || this,
- freeGlobal = freeExports && objectTypes[typeof module] && module && !module.nodeType && typeof global == "object" && global;
-
- if (freeGlobal && (freeGlobal["global"] === freeGlobal || freeGlobal["window"] === freeGlobal || freeGlobal["self"] === freeGlobal)) {
- root = freeGlobal;
- }
-
- // Public: Initializes JSON 3 using the given `context` object, attaching the
- // `stringify` and `parse` functions to the specified `exports` object.
- function runInContext(context, exports) {
- context || (context = root["Object"]());
- exports || (exports = root["Object"]());
-
- // Native constructor aliases.
- var Number = context["Number"] || root["Number"],
- String = context["String"] || root["String"],
- Object = context["Object"] || root["Object"],
- Date = context["Date"] || root["Date"],
- SyntaxError = context["SyntaxError"] || root["SyntaxError"],
- TypeError = context["TypeError"] || root["TypeError"],
- Math = context["Math"] || root["Math"],
- nativeJSON = context["JSON"] || root["JSON"];
-
- // Delegate to the native `stringify` and `parse` implementations.
- if (typeof nativeJSON == "object" && nativeJSON) {
- exports.stringify = nativeJSON.stringify;
- exports.parse = nativeJSON.parse;
- }
-
- // Convenience aliases.
- var objectProto = Object.prototype,
- getClass = objectProto.toString,
- isProperty, forEach, undef;
-
- // Test the `Date#getUTC*` methods. Based on work by @Yaffle.
- var isExtended = new Date(-3509827334573292);
- try {
- // The `getUTCFullYear`, `Month`, and `Date` methods return nonsensical
- // results for certain dates in Opera >= 10.53.
- isExtended = isExtended.getUTCFullYear() == -109252 && isExtended.getUTCMonth() === 0 && isExtended.getUTCDate() === 1 &&
- // Safari < 2.0.2 stores the internal millisecond time value correctly,
- // but clips the values returned by the date methods to the range of
- // signed 32-bit integers ([-2 ** 31, 2 ** 31 - 1]).
- isExtended.getUTCHours() == 10 && isExtended.getUTCMinutes() == 37 && isExtended.getUTCSeconds() == 6 && isExtended.getUTCMilliseconds() == 708;
- } catch (exception) {}
-
- // Internal: Determines whether the native `JSON.stringify` and `parse`
- // implementations are spec-compliant. Based on work by Ken Snyder.
- function has(name) {
- if (has[name] !== undef) {
- // Return cached feature test result.
- return has[name];
- }
- var isSupported;
- if (name == "bug-string-char-index") {
- // IE <= 7 doesn't support accessing string characters using square
- // bracket notation. IE 8 only supports this for primitives.
- isSupported = "a"[0] != "a";
- } else if (name == "json") {
- // Indicates whether both `JSON.stringify` and `JSON.parse` are
- // supported.
- isSupported = has("json-stringify") && has("json-parse");
- } else {
- var value, serialized = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
- // Test `JSON.stringify`.
- if (name == "json-stringify") {
- var stringify = exports.stringify, stringifySupported = typeof stringify == "function" && isExtended;
- if (stringifySupported) {
- // A test function object with a custom `toJSON` method.
- (value = function () {
- return 1;
- }).toJSON = value;
- try {
- stringifySupported =
- // Firefox 3.1b1 and b2 serialize string, number, and boolean
- // primitives as object literals.
- stringify(0) === "0" &&
- // FF 3.1b1, b2, and JSON 2 serialize wrapped primitives as object
- // literals.
- stringify(new Number()) === "0" &&
- stringify(new String()) == '""' &&
- // FF 3.1b1, 2 throw an error if the value is `null`, `undefined`, or
- // does not define a canonical JSON representation (this applies to
- // objects with `toJSON` properties as well, *unless* they are nested
- // within an object or array).
- stringify(getClass) === undef &&
- // IE 8 serializes `undefined` as `"undefined"`. Safari <= 5.1.7 and
- // FF 3.1b3 pass this test.
- stringify(undef) === undef &&
- // Safari <= 5.1.7 and FF 3.1b3 throw `Error`s and `TypeError`s,
- // respectively, if the value is omitted entirely.
- stringify() === undef &&
- // FF 3.1b1, 2 throw an error if the given value is not a number,
- // string, array, object, Boolean, or `null` literal. This applies to
- // objects with custom `toJSON` methods as well, unless they are nested
- // inside object or array literals. YUI 3.0.0b1 ignores custom `toJSON`
- // methods entirely.
- stringify(value) === "1" &&
- stringify([value]) == "[1]" &&
- // Prototype <= 1.6.1 serializes `[undefined]` as `"[]"` instead of
- // `"[null]"`.
- stringify([undef]) == "[null]" &&
- // YUI 3.0.0b1 fails to serialize `null` literals.
- stringify(null) == "null" &&
- // FF 3.1b1, 2 halts serialization if an array contains a function:
- // `[1, true, getClass, 1]` serializes as "[1,true,],". FF 3.1b3
- // elides non-JSON values from objects and arrays, unless they
- // define custom `toJSON` methods.
- stringify([undef, getClass, null]) == "[null,null,null]" &&
- // Simple serialization test. FF 3.1b1 uses Unicode escape sequences
- // where character escape codes are expected (e.g., `\b` => `\u0008`).
- stringify({ "a": [value, true, false, null, "\x00\b\n\f\r\t"] }) == serialized &&
- // FF 3.1b1 and b2 ignore the `filter` and `width` arguments.
- stringify(null, value) === "1" &&
- stringify([1, 2], null, 1) == "[\n 1,\n 2\n]" &&
- // JSON 2, Prototype <= 1.7, and older WebKit builds incorrectly
- // serialize extended years.
- stringify(new Date(-8.64e15)) == '"-271821-04-20T00:00:00.000Z"' &&
- // The milliseconds are optional in ES 5, but required in 5.1.
- stringify(new Date(8.64e15)) == '"+275760-09-13T00:00:00.000Z"' &&
- // Firefox <= 11.0 incorrectly serializes years prior to 0 as negative
- // four-digit years instead of six-digit years. Credits: @Yaffle.
- stringify(new Date(-621987552e5)) == '"-000001-01-01T00:00:00.000Z"' &&
- // Safari <= 5.1.5 and Opera >= 10.53 incorrectly serialize millisecond
- // values less than 1000. Credits: @Yaffle.
- stringify(new Date(-1)) == '"1969-12-31T23:59:59.999Z"';
- } catch (exception) {
- stringifySupported = false;
- }
- }
- isSupported = stringifySupported;
- }
- // Test `JSON.parse`.
- if (name == "json-parse") {
- var parse = exports.parse;
- if (typeof parse == "function") {
- try {
- // FF 3.1b1, b2 will throw an exception if a bare literal is provided.
- // Conforming implementations should also coerce the initial argument to
- // a string prior to parsing.
- if (parse("0") === 0 && !parse(false)) {
- // Simple parsing test.
- value = parse(serialized);
- var parseSupported = value["a"].length == 5 && value["a"][0] === 1;
- if (parseSupported) {
- try {
- // Safari <= 5.1.2 and FF 3.1b1 allow unescaped tabs in strings.
- parseSupported = !parse('"\t"');
- } catch (exception) {}
- if (parseSupported) {
- try {
- // FF 4.0 and 4.0.1 allow leading `+` signs and leading
- // decimal points. FF 4.0, 4.0.1, and IE 9-10 also allow
- // certain octal literals.
- parseSupported = parse("01") !== 1;
- } catch (exception) {}
- }
- if (parseSupported) {
- try {
- // FF 4.0, 4.0.1, and Rhino 1.7R3-R4 allow trailing decimal
- // points. These environments, along with FF 3.1b1 and 2,
- // also allow trailing commas in JSON objects and arrays.
- parseSupported = parse("1.") !== 1;
- } catch (exception) {}
- }
- }
- }
- } catch (exception) {
- parseSupported = false;
- }
- }
- isSupported = parseSupported;
- }
- }
- return has[name] = !!isSupported;
- }
-
- if (!has("json")) {
- // Common `[[Class]]` name aliases.
- var functionClass = "[object Function]",
- dateClass = "[object Date]",
- numberClass = "[object Number]",
- stringClass = "[object String]",
- arrayClass = "[object Array]",
- booleanClass = "[object Boolean]";
-
- // Detect incomplete support for accessing string characters by index.
- var charIndexBuggy = has("bug-string-char-index");
-
- // Define additional utility methods if the `Date` methods are buggy.
- if (!isExtended) {
- var floor = Math.floor;
- // A mapping between the months of the year and the number of days between
- // January 1st and the first of the respective month.
- var Months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
- // Internal: Calculates the number of days between the Unix epoch and the
- // first day of the given month.
- var getDay = function (year, month) {
- return Months[month] + 365 * (year - 1970) + floor((year - 1969 + (month = +(month > 1))) / 4) - floor((year - 1901 + month) / 100) + floor((year - 1601 + month) / 400);
- };
- }
-
- // Internal: Determines if a property is a direct property of the given
- // object. Delegates to the native `Object#hasOwnProperty` method.
- if (!(isProperty = objectProto.hasOwnProperty)) {
- isProperty = function (property) {
- var members = {}, constructor;
- if ((members.__proto__ = null, members.__proto__ = {
- // The *proto* property cannot be set multiple times in recent
- // versions of Firefox and SeaMonkey.
- "toString": 1
- }, members).toString != getClass) {
- // Safari <= 2.0.3 doesn't implement `Object#hasOwnProperty`, but
- // supports the mutable *proto* property.
- isProperty = function (property) {
- // Capture and break the object's prototype chain (see section 8.6.2
- // of the ES 5.1 spec). The parenthesized expression prevents an
- // unsafe transformation by the Closure Compiler.
- var original = this.__proto__, result = property in (this.__proto__ = null, this);
- // Restore the original prototype chain.
- this.__proto__ = original;
- return result;
- };
- } else {
- // Capture a reference to the top-level `Object` constructor.
- constructor = members.constructor;
- // Use the `constructor` property to simulate `Object#hasOwnProperty` in
- // other environments.
- isProperty = function (property) {
- var parent = (this.constructor || constructor).prototype;
- return property in this && !(property in parent && this[property] === parent[property]);
- };
- }
- members = null;
- return isProperty.call(this, property);
- };
- }
-
- // Internal: Normalizes the `for...in` iteration algorithm across
- // environments. Each enumerated key is yielded to a `callback` function.
- forEach = function (object, callback) {
- var size = 0, Properties, members, property;
-
- // Tests for bugs in the current environment's `for...in` algorithm. The
- // `valueOf` property inherits the non-enumerable flag from
- // `Object.prototype` in older versions of IE, Netscape, and Mozilla.
- (Properties = function () {
- this.valueOf = 0;
- }).prototype.valueOf = 0;
-
- // Iterate over a new instance of the `Properties` class.
- members = new Properties();
- for (property in members) {
- // Ignore all properties inherited from `Object.prototype`.
- if (isProperty.call(members, property)) {
- size++;
- }
- }
- Properties = members = null;
-
- // Normalize the iteration algorithm.
- if (!size) {
- // A list of non-enumerable properties inherited from `Object.prototype`.
- members = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"];
- // IE <= 8, Mozilla 1.0, and Netscape 6.2 ignore shadowed non-enumerable
- // properties.
- forEach = function (object, callback) {
- var isFunction = getClass.call(object) == functionClass, property, length;
- var hasProperty = !isFunction && typeof object.constructor != "function" && objectTypes[typeof object.hasOwnProperty] && object.hasOwnProperty || isProperty;
- for (property in object) {
- // Gecko <= 1.0 enumerates the `prototype` property of functions under
- // certain conditions; IE does not.
- if (!(isFunction && property == "prototype") && hasProperty.call(object, property)) {
- callback(property);
- }
- }
- // Manually invoke the callback for each non-enumerable property.
- for (length = members.length; property = members[--length]; hasProperty.call(object, property) && callback(property));
- };
- } else if (size == 2) {
- // Safari <= 2.0.4 enumerates shadowed properties twice.
- forEach = function (object, callback) {
- // Create a set of iterated properties.
- var members = {}, isFunction = getClass.call(object) == functionClass, property;
- for (property in object) {
- // Store each property name to prevent double enumeration. The
- // `prototype` property of functions is not enumerated due to cross-
- // environment inconsistencies.
- if (!(isFunction && property == "prototype") && !isProperty.call(members, property) && (members[property] = 1) && isProperty.call(object, property)) {
- callback(property);
- }
- }
- };
- } else {
- // No bugs detected; use the standard `for...in` algorithm.
- forEach = function (object, callback) {
- var isFunction = getClass.call(object) == functionClass, property, isConstructor;
- for (property in object) {
- if (!(isFunction && property == "prototype") && isProperty.call(object, property) && !(isConstructor = property === "constructor")) {
- callback(property);
- }
- }
- // Manually invoke the callback for the `constructor` property due to
- // cross-environment inconsistencies.
- if (isConstructor || isProperty.call(object, (property = "constructor"))) {
- callback(property);
- }
- };
- }
- return forEach(object, callback);
- };
-
- // Public: Serializes a JavaScript `value` as a JSON string. The optional
- // `filter` argument may specify either a function that alters how object and
- // array members are serialized, or an array of strings and numbers that
- // indicates which properties should be serialized. The optional `width`
- // argument may be either a string or number that specifies the indentation
- // level of the output.
- if (!has("json-stringify")) {
- // Internal: A map of control characters and their escaped equivalents.
- var Escapes = {
- 92: "\\\\",
- 34: '\\"',
- 8: "\\b",
- 12: "\\f",
- 10: "\\n",
- 13: "\\r",
- 9: "\\t"
- };
-
- // Internal: Converts `value` into a zero-padded string such that its
- // length is at least equal to `width`. The `width` must be <= 6.
- var leadingZeroes = "000000";
- var toPaddedString = function (width, value) {
- // The `|| 0` expression is necessary to work around a bug in
- // Opera <= 7.54u2 where `0 == -0`, but `String(-0) !== "0"`.
- return (leadingZeroes + (value || 0)).slice(-width);
- };
-
- // Internal: Double-quotes a string `value`, replacing all ASCII control
- // characters (characters with code unit values between 0 and 31) with
- // their escaped equivalents. This is an implementation of the
- // `Quote(value)` operation defined in ES 5.1 section 15.12.3.
- var unicodePrefix = "\\u00";
- var quote = function (value) {
- var result = '"', index = 0, length = value.length, useCharIndex = !charIndexBuggy || length > 10;
- var symbols = useCharIndex && (charIndexBuggy ? value.split("") : value);
- for (; index < length; index++) {
- var charCode = value.charCodeAt(index);
- // If the character is a control character, append its Unicode or
- // shorthand escape sequence; otherwise, append the character as-is.
- switch (charCode) {
- case 8: case 9: case 10: case 12: case 13: case 34: case 92:
- result += Escapes[charCode];
- break;
- default:
- if (charCode < 32) {
- result += unicodePrefix + toPaddedString(2, charCode.toString(16));
- break;
- }
- result += useCharIndex ? symbols[index] : value.charAt(index);
- }
- }
- return result + '"';
- };
-
- // Internal: Recursively serializes an object. Implements the
- // `Str(key, holder)`, `JO(value)`, and `JA(value)` operations.
- var serialize = function (property, object, callback, properties, whitespace, indentation, stack) {
- var value, className, year, month, date, time, hours, minutes, seconds, milliseconds, results, element, index, length, prefix, result;
- try {
- // Necessary for host object support.
- value = object[property];
- } catch (exception) {}
- if (typeof value == "object" && value) {
- className = getClass.call(value);
- if (className == dateClass && !isProperty.call(value, "toJSON")) {
- if (value > -1 / 0 && value < 1 / 0) {
- // Dates are serialized according to the `Date#toJSON` method
- // specified in ES 5.1 section 15.9.5.44. See section 15.9.1.15
- // for the ISO 8601 date time string format.
- if (getDay) {
- // Manually compute the year, month, date, hours, minutes,
- // seconds, and milliseconds if the `getUTC*` methods are
- // buggy. Adapted from @Yaffle's `date-shim` project.
- date = floor(value / 864e5);
- for (year = floor(date / 365.2425) + 1970 - 1; getDay(year + 1, 0) <= date; year++);
- for (month = floor((date - getDay(year, 0)) / 30.42); getDay(year, month + 1) <= date; month++);
- date = 1 + date - getDay(year, month);
- // The `time` value specifies the time within the day (see ES
- // 5.1 section 15.9.1.2). The formula `(A % B + B) % B` is used
- // to compute `A modulo B`, as the `%` operator does not
- // correspond to the `modulo` operation for negative numbers.
- time = (value % 864e5 + 864e5) % 864e5;
- // The hours, minutes, seconds, and milliseconds are obtained by
- // decomposing the time within the day. See section 15.9.1.10.
- hours = floor(time / 36e5) % 24;
- minutes = floor(time / 6e4) % 60;
- seconds = floor(time / 1e3) % 60;
- milliseconds = time % 1e3;
- } else {
- year = value.getUTCFullYear();
- month = value.getUTCMonth();
- date = value.getUTCDate();
- hours = value.getUTCHours();
- minutes = value.getUTCMinutes();
- seconds = value.getUTCSeconds();
- milliseconds = value.getUTCMilliseconds();
- }
- // Serialize extended years correctly.
- value = (year <= 0 || year >= 1e4 ? (year < 0 ? "-" : "+") + toPaddedString(6, year < 0 ? -year : year) : toPaddedString(4, year)) +
- "-" + toPaddedString(2, month + 1) + "-" + toPaddedString(2, date) +
- // Months, dates, hours, minutes, and seconds should have two
- // digits; milliseconds should have three.
- "T" + toPaddedString(2, hours) + ":" + toPaddedString(2, minutes) + ":" + toPaddedString(2, seconds) +
- // Milliseconds are optional in ES 5.0, but required in 5.1.
- "." + toPaddedString(3, milliseconds) + "Z";
- } else {
- value = null;
- }
- } else if (typeof value.toJSON == "function" && ((className != numberClass && className != stringClass && className != arrayClass) || isProperty.call(value, "toJSON"))) {
- // Prototype <= 1.6.1 adds non-standard `toJSON` methods to the
- // `Number`, `String`, `Date`, and `Array` prototypes. JSON 3
- // ignores all `toJSON` methods on these objects unless they are
- // defined directly on an instance.
- value = value.toJSON(property);
- }
- }
- if (callback) {
- // If a replacement function was provided, call it to obtain the value
- // for serialization.
- value = callback.call(object, property, value);
- }
- if (value === null) {
- return "null";
- }
- className = getClass.call(value);
- if (className == booleanClass) {
- // Booleans are represented literally.
- return "" + value;
- } else if (className == numberClass) {
- // JSON numbers must be finite. `Infinity` and `NaN` are serialized as
- // `"null"`.
- return value > -1 / 0 && value < 1 / 0 ? "" + value : "null";
- } else if (className == stringClass) {
- // Strings are double-quoted and escaped.
- return quote("" + value);
- }
- // Recursively serialize objects and arrays.
- if (typeof value == "object") {
- // Check for cyclic structures. This is a linear search; performance
- // is inversely proportional to the number of unique nested objects.
- for (length = stack.length; length--;) {
- if (stack[length] === value) {
- // Cyclic structures cannot be serialized by `JSON.stringify`.
- throw TypeError();
- }
- }
- // Add the object to the stack of traversed objects.
- stack.push(value);
- results = [];
- // Save the current indentation level and indent one additional level.
- prefix = indentation;
- indentation += whitespace;
- if (className == arrayClass) {
- // Recursively serialize array elements.
- for (index = 0, length = value.length; index < length; index++) {
- element = serialize(index, value, callback, properties, whitespace, indentation, stack);
- results.push(element === undef ? "null" : element);
- }
- result = results.length ? (whitespace ? "[\n" + indentation + results.join(",\n" + indentation) + "\n" + prefix + "]" : ("[" + results.join(",") + "]")) : "[]";
- } else {
- // Recursively serialize object members. Members are selected from
- // either a user-specified list of property names, or the object
- // itself.
- forEach(properties || value, function (property) {
- var element = serialize(property, value, callback, properties, whitespace, indentation, stack);
- if (element !== undef) {
- // According to ES 5.1 section 15.12.3: "If `gap` {whitespace}
- // is not the empty string, let `member` {quote(property) + ":"}
- // be the concatenation of `member` and the `space` character."
- // The "`space` character" refers to the literal space
- // character, not the `space` {width} argument provided to
- // `JSON.stringify`.
- results.push(quote(property) + ":" + (whitespace ? " " : "") + element);
- }
- });
- result = results.length ? (whitespace ? "{\n" + indentation + results.join(",\n" + indentation) + "\n" + prefix + "}" : ("{" + results.join(",") + "}")) : "{}";
- }
- // Remove the object from the traversed object stack.
- stack.pop();
- return result;
- }
- };
-
- // Public: `JSON.stringify`. See ES 5.1 section 15.12.3.
- exports.stringify = function (source, filter, width) {
- var whitespace, callback, properties, className;
- if (objectTypes[typeof filter] && filter) {
- if ((className = getClass.call(filter)) == functionClass) {
- callback = filter;
- } else if (className == arrayClass) {
- // Convert the property names array into a makeshift set.
- properties = {};
- for (var index = 0, length = filter.length, value; index < length; value = filter[index++], ((className = getClass.call(value)), className == stringClass || className == numberClass) && (properties[value] = 1));
- }
- }
- if (width) {
- if ((className = getClass.call(width)) == numberClass) {
- // Convert the `width` to an integer and create a string containing
- // `width` number of space characters.
- if ((width -= width % 1) > 0) {
- for (whitespace = "", width > 10 && (width = 10); whitespace.length < width; whitespace += " ");
- }
- } else if (className == stringClass) {
- whitespace = width.length <= 10 ? width : width.slice(0, 10);
- }
- }
- // Opera <= 7.54u2 discards the values associated with empty string keys
- // (`""`) only if they are used directly within an object member list
- // (e.g., `!("" in { "": 1})`).
- return serialize("", (value = {}, value[""] = source, value), callback, properties, whitespace, "", []);
- };
- }
-
- // Public: Parses a JSON source string.
- if (!has("json-parse")) {
- var fromCharCode = String.fromCharCode;
-
- // Internal: A map of escaped control characters and their unescaped
- // equivalents.
- var Unescapes = {
- 92: "\\",
- 34: '"',
- 47: "/",
- 98: "\b",
- 116: "\t",
- 110: "\n",
- 102: "\f",
- 114: "\r"
- };
-
- // Internal: Stores the parser state.
- var Index, Source;
-
- // Internal: Resets the parser state and throws a `SyntaxError`.
- var abort = function () {
- Index = Source = null;
- throw SyntaxError();
- };
-
- // Internal: Returns the next token, or `"$"` if the parser has reached
- // the end of the source string. A token may be a string, number, `null`
- // literal, or Boolean literal.
- var lex = function () {
- var source = Source, length = source.length, value, begin, position, isSigned, charCode;
- while (Index < length) {
- charCode = source.charCodeAt(Index);
- switch (charCode) {
- case 9: case 10: case 13: case 32:
- // Skip whitespace tokens, including tabs, carriage returns, line
- // feeds, and space characters.
- Index++;
- break;
- case 123: case 125: case 91: case 93: case 58: case 44:
- // Parse a punctuator token (`{`, `}`, `[`, `]`, `:`, or `,`) at
- // the current position.
- value = charIndexBuggy ? source.charAt(Index) : source[Index];
- Index++;
- return value;
- case 34:
- // `"` delimits a JSON string; advance to the next character and
- // begin parsing the string. String tokens are prefixed with the
- // sentinel `@` character to distinguish them from punctuators and
- // end-of-string tokens.
- for (value = "@", Index++; Index < length;) {
- charCode = source.charCodeAt(Index);
- if (charCode < 32) {
- // Unescaped ASCII control characters (those with a code unit
- // less than the space character) are not permitted.
- abort();
- } else if (charCode == 92) {
- // A reverse solidus (`\`) marks the beginning of an escaped
- // control character (including `"`, `\`, and `/`) or Unicode
- // escape sequence.
- charCode = source.charCodeAt(++Index);
- switch (charCode) {
- case 92: case 34: case 47: case 98: case 116: case 110: case 102: case 114:
- // Revive escaped control characters.
- value += Unescapes[charCode];
- Index++;
- break;
- case 117:
- // `\u` marks the beginning of a Unicode escape sequence.
- // Advance to the first character and validate the
- // four-digit code point.
- begin = ++Index;
- for (position = Index + 4; Index < position; Index++) {
- charCode = source.charCodeAt(Index);
- // A valid sequence comprises four hexdigits (case-
- // insensitive) that form a single hexadecimal value.
- if (!(charCode >= 48 && charCode <= 57 || charCode >= 97 && charCode <= 102 || charCode >= 65 && charCode <= 70)) {
- // Invalid Unicode escape sequence.
- abort();
- }
- }
- // Revive the escaped character.
- value += fromCharCode("0x" + source.slice(begin, Index));
- break;
- default:
- // Invalid escape sequence.
- abort();
- }
- } else {
- if (charCode == 34) {
- // An unescaped double-quote character marks the end of the
- // string.
- break;
- }
- charCode = source.charCodeAt(Index);
- begin = Index;
- // Optimize for the common case where a string is valid.
- while (charCode >= 32 && charCode != 92 && charCode != 34) {
- charCode = source.charCodeAt(++Index);
- }
- // Append the string as-is.
- value += source.slice(begin, Index);
- }
- }
- if (source.charCodeAt(Index) == 34) {
- // Advance to the next character and return the revived string.
- Index++;
- return value;
- }
- // Unterminated string.
- abort();
- default:
- // Parse numbers and literals.
- begin = Index;
- // Advance past the negative sign, if one is specified.
- if (charCode == 45) {
- isSigned = true;
- charCode = source.charCodeAt(++Index);
- }
- // Parse an integer or floating-point value.
- if (charCode >= 48 && charCode <= 57) {
- // Leading zeroes are interpreted as octal literals.
- if (charCode == 48 && ((charCode = source.charCodeAt(Index + 1)), charCode >= 48 && charCode <= 57)) {
- // Illegal octal literal.
- abort();
- }
- isSigned = false;
- // Parse the integer component.
- for (; Index < length && ((charCode = source.charCodeAt(Index)), charCode >= 48 && charCode <= 57); Index++);
- // Floats cannot contain a leading decimal point; however, this
- // case is already accounted for by the parser.
- if (source.charCodeAt(Index) == 46) {
- position = ++Index;
- // Parse the decimal component.
- for (; position < length && ((charCode = source.charCodeAt(position)), charCode >= 48 && charCode <= 57); position++);
- if (position == Index) {
- // Illegal trailing decimal.
- abort();
- }
- Index = position;
- }
- // Parse exponents. The `e` denoting the exponent is
- // case-insensitive.
- charCode = source.charCodeAt(Index);
- if (charCode == 101 || charCode == 69) {
- charCode = source.charCodeAt(++Index);
- // Skip past the sign following the exponent, if one is
- // specified.
- if (charCode == 43 || charCode == 45) {
- Index++;
- }
- // Parse the exponential component.
- for (position = Index; position < length && ((charCode = source.charCodeAt(position)), charCode >= 48 && charCode <= 57); position++);
- if (position == Index) {
- // Illegal empty exponent.
- abort();
- }
- Index = position;
- }
- // Coerce the parsed value to a JavaScript number.
- return +source.slice(begin, Index);
- }
- // A negative sign may only precede numbers.
- if (isSigned) {
- abort();
- }
- // `true`, `false`, and `null` literals.
- if (source.slice(Index, Index + 4) == "true") {
- Index += 4;
- return true;
- } else if (source.slice(Index, Index + 5) == "false") {
- Index += 5;
- return false;
- } else if (source.slice(Index, Index + 4) == "null") {
- Index += 4;
- return null;
- }
- // Unrecognized token.
- abort();
- }
- }
- // Return the sentinel `$` character if the parser has reached the end
- // of the source string.
- return "$";
- };
-
- // Internal: Parses a JSON `value` token.
- var get = function (value) {
- var results, hasMembers;
- if (value == "$") {
- // Unexpected end of input.
- abort();
- }
- if (typeof value == "string") {
- if ((charIndexBuggy ? value.charAt(0) : value[0]) == "@") {
- // Remove the sentinel `@` character.
- return value.slice(1);
- }
- // Parse object and array literals.
- if (value == "[") {
- // Parses a JSON array, returning a new JavaScript array.
- results = [];
- for (;; hasMembers || (hasMembers = true)) {
- value = lex();
- // A closing square bracket marks the end of the array literal.
- if (value == "]") {
- break;
- }
- // If the array literal contains elements, the current token
- // should be a comma separating the previous element from the
- // next.
- if (hasMembers) {
- if (value == ",") {
- value = lex();
- if (value == "]") {
- // Unexpected trailing `,` in array literal.
- abort();
- }
- } else {
- // A `,` must separate each array element.
- abort();
- }
- }
- // Elisions and leading commas are not permitted.
- if (value == ",") {
- abort();
- }
- results.push(get(value));
- }
- return results;
- } else if (value == "{") {
- // Parses a JSON object, returning a new JavaScript object.
- results = {};
- for (;; hasMembers || (hasMembers = true)) {
- value = lex();
- // A closing curly brace marks the end of the object literal.
- if (value == "}") {
- break;
- }
- // If the object literal contains members, the current token
- // should be a comma separator.
- if (hasMembers) {
- if (value == ",") {
- value = lex();
- if (value == "}") {
- // Unexpected trailing `,` in object literal.
- abort();
- }
- } else {
- // A `,` must separate each object member.
- abort();
- }
- }
- // Leading commas are not permitted, object property names must be
- // double-quoted strings, and a `:` must separate each property
- // name and value.
- if (value == "," || typeof value != "string" || (charIndexBuggy ? value.charAt(0) : value[0]) != "@" || lex() != ":") {
- abort();
- }
- results[value.slice(1)] = get(lex());
- }
- return results;
- }
- // Unexpected token encountered.
- abort();
- }
- return value;
- };
-
- // Internal: Updates a traversed object member.
- var update = function (source, property, callback) {
- var element = walk(source, property, callback);
- if (element === undef) {
- delete source[property];
- } else {
- source[property] = element;
- }
- };
-
- // Internal: Recursively traverses a parsed JSON object, invoking the
- // `callback` function for each value. This is an implementation of the
- // `Walk(holder, name)` operation defined in ES 5.1 section 15.12.2.
- var walk = function (source, property, callback) {
- var value = source[property], length;
- if (typeof value == "object" && value) {
- // `forEach` can't be used to traverse an array in Opera <= 8.54
- // because its `Object#hasOwnProperty` implementation returns `false`
- // for array indices (e.g., `![1, 2, 3].hasOwnProperty("0")`).
- if (getClass.call(value) == arrayClass) {
- for (length = value.length; length--;) {
- update(value, length, callback);
- }
- } else {
- forEach(value, function (property) {
- update(value, property, callback);
- });
- }
- }
- return callback.call(source, property, value);
- };
-
- // Public: `JSON.parse`. See ES 5.1 section 15.12.2.
- exports.parse = function (source, callback) {
- var result, value;
- Index = 0;
- Source = "" + source;
- result = get(lex());
- // If a JSON string contains multiple tokens, it is invalid.
- if (lex() != "$") {
- abort();
- }
- // Reset the parser state.
- Index = Source = null;
- return callback && getClass.call(callback) == functionClass ? walk((value = {}, value[""] = result, value), "", callback) : result;
- };
- }
- }
-
- exports["runInContext"] = runInContext;
- return exports;
- }
-
- if (freeExports && !isLoader) {
- // Export for CommonJS environments.
- runInContext(root, freeExports);
- } else {
- // Export for web browsers and JavaScript engines.
- var nativeJSON = root.JSON,
- previousJSON = root["JSON3"],
- isRestored = false;
-
- var JSON3 = runInContext(root, (root["JSON3"] = {
- // Public: Restores the original value of the global `JSON` object and
- // returns a reference to the `JSON3` object.
- "noConflict": function () {
- if (!isRestored) {
- isRestored = true;
- root.JSON = nativeJSON;
- root["JSON3"] = previousJSON;
- nativeJSON = previousJSON = null;
- }
- return JSON3;
- }
- }));
-
- root.JSON = {
- "parse": JSON3.parse,
- "stringify": JSON3.stringify
- };
- }
-
- // Export for asynchronous module loaders.
- if (isLoader) {
- define(function () {
- return JSON3;
- });
- }
-}).call(this);
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/pygments/css/monokai.css b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/pygments/css/monokai.css
deleted file mode 100644
index ff0b5d77..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/pygments/css/monokai.css
+++ /dev/null
@@ -1,65 +0,0 @@
-.hll { background-color: #49483e }
-.c { color: #75715e } /* Comment */
-.err { color: #960050; background-color: #1e0010 } /* Error */
-.k { color: #66d9ef } /* Keyword */
-.l { color: #ae81ff } /* Literal */
-.n { color: #f8f8f2 } /* Name */
-.o { color: #f92672 } /* Operator */
-.p { color: #f8f8f2 } /* Punctuation */
-.ch { color: #75715e } /* Comment.Hashbang */
-.cm { color: #75715e } /* Comment.Multiline */
-.cp { color: #75715e } /* Comment.Preproc */
-.cpf { color: #75715e } /* Comment.PreprocFile */
-.c1 { color: #75715e } /* Comment.Single */
-.cs { color: #75715e } /* Comment.Special */
-.gd { color: #f92672 } /* Generic.Deleted */
-.ge { font-style: italic } /* Generic.Emph */
-.gi { color: #a6e22e } /* Generic.Inserted */
-.gs { font-weight: bold } /* Generic.Strong */
-.gu { color: #75715e } /* Generic.Subheading */
-.kc { color: #66d9ef } /* Keyword.Constant */
-.kd { color: #66d9ef } /* Keyword.Declaration */
-.kn { color: #f92672 } /* Keyword.Namespace */
-.kp { color: #66d9ef } /* Keyword.Pseudo */
-.kr { color: #66d9ef } /* Keyword.Reserved */
-.kt { color: #66d9ef } /* Keyword.Type */
-.ld { color: #e6db74 } /* Literal.Date */
-.m { color: #ae81ff } /* Literal.Number */
-.s { color: #e6db74 } /* Literal.String */
-.na { color: #a6e22e } /* Name.Attribute */
-.nb { color: #f8f8f2 } /* Name.Builtin */
-.nc { color: #a6e22e } /* Name.Class */
-.no { color: #66d9ef } /* Name.Constant */
-.nd { color: #a6e22e } /* Name.Decorator */
-.ni { color: #f8f8f2 } /* Name.Entity */
-.ne { color: #a6e22e } /* Name.Exception */
-.nf { color: #a6e22e } /* Name.Function */
-.nl { color: #f8f8f2 } /* Name.Label */
-.nn { color: #f8f8f2 } /* Name.Namespace */
-.nx { color: #a6e22e } /* Name.Other */
-.py { color: #f8f8f2 } /* Name.Property */
-.nt { color: #f92672 } /* Name.Tag */
-.nv { color: #f8f8f2 } /* Name.Variable */
-.ow { color: #f92672 } /* Operator.Word */
-.w { color: #f8f8f2 } /* Text.Whitespace */
-.mb { color: #ae81ff } /* Literal.Number.Bin */
-.mf { color: #ae81ff } /* Literal.Number.Float */
-.mh { color: #ae81ff } /* Literal.Number.Hex */
-.mi { color: #ae81ff } /* Literal.Number.Integer */
-.mo { color: #ae81ff } /* Literal.Number.Oct */
-.sb { color: #e6db74 } /* Literal.String.Backtick */
-.sc { color: #e6db74 } /* Literal.String.Char */
-.sd { color: #e6db74 } /* Literal.String.Doc */
-.s2 { color: #e6db74 } /* Literal.String.Double */
-.se { color: #ae81ff } /* Literal.String.Escape */
-.sh { color: #e6db74 } /* Literal.String.Heredoc */
-.si { color: #e6db74 } /* Literal.String.Interpol */
-.sx { color: #e6db74 } /* Literal.String.Other */
-.sr { color: #e6db74 } /* Literal.String.Regex */
-.s1 { color: #e6db74 } /* Literal.String.Single */
-.ss { color: #e6db74 } /* Literal.String.Symbol */
-.bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
-.vc { color: #f8f8f2 } /* Name.Variable.Class */
-.vg { color: #f8f8f2 } /* Name.Variable.Global */
-.vi { color: #f8f8f2 } /* Name.Variable.Instance */
-.il { color: #ae81ff } /* Literal.Number.Integer.Long */
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/qunit/qunit/qunit.css b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/qunit/qunit/qunit.css
deleted file mode 100644
index 50fe5c29..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/qunit/qunit/qunit.css
+++ /dev/null
@@ -1,431 +0,0 @@
-/*!
- * QUnit 2.1.1
- * https://qunitjs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2017-01-06T01:52Z
- */
-
-/** Font Family and Sizes */
-
-#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
- font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
-}
-
-#qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
-#qunit-tests { font-size: smaller; }
-
-
-/** Resets */
-
-#qunit-tests, #qunit-header, #qunit-banner, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
- margin: 0;
- padding: 0;
-}
-
-
-/** Header (excluding toolbar) */
-
-#qunit-header {
- padding: 0.5em 0 0.5em 1em;
-
- color: #8699A4;
- background-color: #0D3349;
-
- font-size: 1.5em;
- line-height: 1em;
- font-weight: 400;
-
- border-radius: 5px 5px 0 0;
-}
-
-#qunit-header a {
- text-decoration: none;
- color: #C2CCD1;
-}
-
-#qunit-header a:hover,
-#qunit-header a:focus {
- color: #FFF;
-}
-
-#qunit-banner {
- height: 5px;
-}
-
-#qunit-filteredTest {
- padding: 0.5em 1em 0.5em 1em;
- color: #366097;
- background-color: #F4FF77;
-}
-
-#qunit-userAgent {
- padding: 0.5em 1em 0.5em 1em;
- color: #FFF;
- background-color: #2B81AF;
- text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
-}
-
-
-/** Toolbar */
-
-#qunit-testrunner-toolbar {
- padding: 0.5em 1em 0.5em 1em;
- color: #5E740B;
- background-color: #EEE;
-}
-
-#qunit-testrunner-toolbar .clearfix {
- height: 0;
- clear: both;
-}
-
-#qunit-testrunner-toolbar label {
- display: inline-block;
-}
-
-#qunit-testrunner-toolbar input[type=checkbox],
-#qunit-testrunner-toolbar input[type=radio] {
- margin: 3px;
- vertical-align: -2px;
-}
-
-#qunit-testrunner-toolbar input[type=text] {
- box-sizing: border-box;
- height: 1.6em;
-}
-
-.qunit-url-config,
-.qunit-filter,
-#qunit-modulefilter {
- display: inline-block;
- line-height: 2.1em;
-}
-
-.qunit-filter,
-#qunit-modulefilter {
- float: right;
- position: relative;
- margin-left: 1em;
-}
-
-.qunit-url-config label {
- margin-right: 0.5em;
-}
-
-#qunit-modulefilter-search {
- box-sizing: border-box;
- width: 400px;
-}
-
-#qunit-modulefilter-search-container:after {
- position: absolute;
- right: 0.3em;
- content: "\25bc";
- color: black;
-}
-
-#qunit-modulefilter-dropdown {
- /* align with #qunit-modulefilter-search */
- box-sizing: border-box;
- width: 400px;
- position: absolute;
- right: 0;
- top: 50%;
- margin-top: 0.8em;
-
- border: 1px solid #D3D3D3;
- border-top: none;
- border-radius: 0 0 .25em .25em;
- color: #000;
- background-color: #F5F5F5;
- z-index: 99;
-}
-
-#qunit-modulefilter-dropdown a {
- color: inherit;
- text-decoration: none;
-}
-
-#qunit-modulefilter-dropdown .clickable.checked {
- font-weight: bold;
- color: #000;
- background-color: #D2E0E6;
-}
-
-#qunit-modulefilter-dropdown .clickable:hover {
- color: #FFF;
- background-color: #0D3349;
-}
-
-#qunit-modulefilter-actions {
- display: block;
- overflow: auto;
-
- /* align with #qunit-modulefilter-dropdown-list */
- font: smaller/1.5em sans-serif;
-}
-
-#qunit-modulefilter-dropdown #qunit-modulefilter-actions > * {
- box-sizing: border-box;
- max-height: 2.8em;
- display: block;
- padding: 0.4em;
-}
-
-#qunit-modulefilter-dropdown #qunit-modulefilter-actions > button {
- float: right;
- font: inherit;
-}
-
-#qunit-modulefilter-dropdown #qunit-modulefilter-actions > :last-child {
- /* insert padding to align with checkbox margins */
- padding-left: 3px;
-}
-
-#qunit-modulefilter-dropdown-list {
- max-height: 200px;
- overflow-y: auto;
- margin: 0;
- border-top: 2px groove threedhighlight;
- padding: 0.4em 0 0;
- font: smaller/1.5em sans-serif;
-}
-
-#qunit-modulefilter-dropdown-list li {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-#qunit-modulefilter-dropdown-list .clickable {
- display: block;
- padding-left: 0.15em;
-}
-
-
-/** Tests: Pass/Fail */
-
-#qunit-tests {
- list-style-position: inside;
-}
-
-#qunit-tests li {
- padding: 0.4em 1em 0.4em 1em;
- border-bottom: 1px solid #FFF;
- list-style-position: inside;
-}
-
-#qunit-tests > li {
- display: none;
-}
-
-#qunit-tests li.running,
-#qunit-tests li.pass,
-#qunit-tests li.fail,
-#qunit-tests li.skipped,
-#qunit-tests li.aborted {
- display: list-item;
-}
-
-#qunit-tests.hidepass {
- position: relative;
-}
-
-#qunit-tests.hidepass li.running,
-#qunit-tests.hidepass li.pass {
- visibility: hidden;
- position: absolute;
- width: 0;
- height: 0;
- padding: 0;
- border: 0;
- margin: 0;
-}
-
-#qunit-tests li strong {
- cursor: pointer;
-}
-
-#qunit-tests li.skipped strong {
- cursor: default;
-}
-
-#qunit-tests li a {
- padding: 0.5em;
- color: #C2CCD1;
- text-decoration: none;
-}
-
-#qunit-tests li p a {
- padding: 0.25em;
- color: #6B6464;
-}
-#qunit-tests li a:hover,
-#qunit-tests li a:focus {
- color: #000;
-}
-
-#qunit-tests li .runtime {
- float: right;
- font-size: smaller;
-}
-
-.qunit-assert-list {
- margin-top: 0.5em;
- padding: 0.5em;
-
- background-color: #FFF;
-
- border-radius: 5px;
-}
-
-.qunit-source {
- margin: 0.6em 0 0.3em;
-}
-
-.qunit-collapsed {
- display: none;
-}
-
-#qunit-tests table {
- border-collapse: collapse;
- margin-top: 0.2em;
-}
-
-#qunit-tests th {
- text-align: right;
- vertical-align: top;
- padding: 0 0.5em 0 0;
-}
-
-#qunit-tests td {
- vertical-align: top;
-}
-
-#qunit-tests pre {
- margin: 0;
- white-space: pre-wrap;
- word-wrap: break-word;
-}
-
-#qunit-tests del {
- color: #374E0C;
- background-color: #E0F2BE;
- text-decoration: none;
-}
-
-#qunit-tests ins {
- color: #500;
- background-color: #FFCACA;
- text-decoration: none;
-}
-
-/*** Test Counts */
-
-#qunit-tests b.counts { color: #000; }
-#qunit-tests b.passed { color: #5E740B; }
-#qunit-tests b.failed { color: #710909; }
-
-#qunit-tests li li {
- padding: 5px;
- background-color: #FFF;
- border-bottom: none;
- list-style-position: inside;
-}
-
-/*** Passing Styles */
-
-#qunit-tests li li.pass {
- color: #3C510C;
- background-color: #FFF;
- border-left: 10px solid #C6E746;
-}
-
-#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
-#qunit-tests .pass .test-name { color: #366097; }
-
-#qunit-tests .pass .test-actual,
-#qunit-tests .pass .test-expected { color: #999; }
-
-#qunit-banner.qunit-pass { background-color: #C6E746; }
-
-/*** Failing Styles */
-
-#qunit-tests li li.fail {
- color: #710909;
- background-color: #FFF;
- border-left: 10px solid #EE5757;
- white-space: pre;
-}
-
-#qunit-tests > li:last-child {
- border-radius: 0 0 5px 5px;
-}
-
-#qunit-tests .fail { color: #000; background-color: #EE5757; }
-#qunit-tests .fail .test-name,
-#qunit-tests .fail .module-name { color: #000; }
-
-#qunit-tests .fail .test-actual { color: #EE5757; }
-#qunit-tests .fail .test-expected { color: #008000; }
-
-#qunit-banner.qunit-fail { background-color: #EE5757; }
-
-
-/*** Aborted tests */
-#qunit-tests .aborted { color: #000; background-color: orange; }
-/*** Skipped tests */
-
-#qunit-tests .skipped {
- background-color: #EBECE9;
-}
-
-#qunit-tests .qunit-skipped-label {
- background-color: #F4FF77;
- display: inline-block;
- font-style: normal;
- color: #366097;
- line-height: 1.8em;
- padding: 0 0.5em;
- margin: -0.4em 0.4em -0.4em 0;
-}
-
-/** Result */
-
-#qunit-testresult {
- color: #2B81AF;
- background-color: #D2E0E6;
-
- border-bottom: 1px solid #FFF;
-}
-#qunit-testresult .clearfix {
- height: 0;
- clear: both;
-}
-#qunit-testresult .module-name {
- font-weight: 700;
-}
-#qunit-testresult-display {
- padding: 0.5em 1em 0.5em 1em;
- width: 85%;
- float:left;
-}
-#qunit-testresult-controls {
- padding: 0.5em 1em 0.5em 1em;
- width: 10%;
- float:left;
-}
-
-/** Fixture */
-
-#qunit-fixture {
- position: absolute;
- top: -10000px;
- left: -10000px;
- width: 1000px;
- height: 1000px;
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/qunit/qunit/qunit.js b/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/qunit/qunit/qunit.js
deleted file mode 100644
index e90caadf..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/bower_components/qunit/qunit/qunit.js
+++ /dev/null
@@ -1,4366 +0,0 @@
-/*!
- * QUnit 2.1.1
- * https://qunitjs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2017-01-06T01:52Z
- */
-(function (global$1) {
- 'use strict';
-
- global$1 = 'default' in global$1 ? global$1['default'] : global$1;
-
- var window = global$1.window;
- var console = global$1.console;
- var setTimeout = global$1.setTimeout;
- var clearTimeout = global$1.clearTimeout;
-
- var document = window && window.document;
- var navigator = window && window.navigator;
- var sessionStorage = window && window.sessionStorage;
-
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
- return typeof obj;
- } : function (obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- };
-
-
-
-
-
-
-
-
-
-
-
- var classCallCheck = function (instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- };
-
- var createClass = function () {
- function defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- Object.defineProperty(target, descriptor.key, descriptor);
- }
- }
-
- return function (Constructor, protoProps, staticProps) {
- if (protoProps) defineProperties(Constructor.prototype, protoProps);
- if (staticProps) defineProperties(Constructor, staticProps);
- return Constructor;
- };
- }();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- var toConsumableArray = function (arr) {
- if (Array.isArray(arr)) {
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
-
- return arr2;
- } else {
- return Array.from(arr);
- }
- };
-
- var toString = Object.prototype.toString;
- var hasOwn = Object.prototype.hasOwnProperty;
- var now = Date.now || function () {
- return new Date().getTime();
- };
-
- var defined = {
- document: window && window.document !== undefined,
- setTimeout: setTimeout !== undefined
- };
-
- // Returns a new Array with the elements that are in a but not in b
- function diff(a, b) {
- var i,
- j,
- result = a.slice();
-
- for (i = 0; i < result.length; i++) {
- for (j = 0; j < b.length; j++) {
- if (result[i] === b[j]) {
- result.splice(i, 1);
- i--;
- break;
- }
- }
- }
- return result;
- }
-
- // From jquery.js
- function inArray(elem, array) {
- if (array.indexOf) {
- return array.indexOf(elem);
- }
-
- for (var i = 0, length = array.length; i < length; i++) {
- if (array[i] === elem) {
- return i;
- }
- }
-
- return -1;
- }
-
- /**
- * Makes a clone of an object using only Array or Object as base,
- * and copies over the own enumerable properties.
- *
- * @param {Object} obj
- * @return {Object} New object with only the own properties (recursively).
- */
- function objectValues(obj) {
- var key,
- val,
- vals = is("array", obj) ? [] : {};
- for (key in obj) {
- if (hasOwn.call(obj, key)) {
- val = obj[key];
- vals[key] = val === Object(val) ? objectValues(val) : val;
- }
- }
- return vals;
- }
-
- function extend(a, b, undefOnly) {
- for (var prop in b) {
- if (hasOwn.call(b, prop)) {
- if (b[prop] === undefined) {
- delete a[prop];
- } else if (!(undefOnly && typeof a[prop] !== "undefined")) {
- a[prop] = b[prop];
- }
- }
- }
-
- return a;
- }
-
- function objectType(obj) {
- if (typeof obj === "undefined") {
- return "undefined";
- }
-
- // Consider: typeof null === object
- if (obj === null) {
- return "null";
- }
-
- var match = toString.call(obj).match(/^\[object\s(.*)\]$/),
- type = match && match[1];
-
- switch (type) {
- case "Number":
- if (isNaN(obj)) {
- return "nan";
- }
- return "number";
- case "String":
- case "Boolean":
- case "Array":
- case "Set":
- case "Map":
- case "Date":
- case "RegExp":
- case "Function":
- case "Symbol":
- return type.toLowerCase();
- }
-
- if ((typeof obj === "undefined" ? "undefined" : _typeof(obj)) === "object") {
- return "object";
- }
- }
-
- // Safe object type checking
- function is(type, obj) {
- return objectType(obj) === type;
- }
-
- // Test for equality any JavaScript type.
- // Author: Philippe Rathé <prathe@gmail.com>
- var equiv = (function () {
-
- // Stack to decide between skip/abort functions
- var callers = [];
-
- // Stack to avoiding loops from circular referencing
- var parents = [];
- var parentsB = [];
-
- var getProto = Object.getPrototypeOf || function (obj) {
- return obj.__proto__;
- };
-
- function useStrictEquality(b, a) {
-
- // To catch short annotation VS 'new' annotation of a declaration. e.g.:
- // `var i = 1;`
- // `var j = new Number(1);`
- if ((typeof a === "undefined" ? "undefined" : _typeof(a)) === "object") {
- a = a.valueOf();
- }
- if ((typeof b === "undefined" ? "undefined" : _typeof(b)) === "object") {
- b = b.valueOf();
- }
-
- return a === b;
- }
-
- function compareConstructors(a, b) {
- var protoA = getProto(a);
- var protoB = getProto(b);
-
- // Comparing constructors is more strict than using `instanceof`
- if (a.constructor === b.constructor) {
- return true;
- }
-
- // Ref #851
- // If the obj prototype descends from a null constructor, treat it
- // as a null prototype.
- if (protoA && protoA.constructor === null) {
- protoA = null;
- }
- if (protoB && protoB.constructor === null) {
- protoB = null;
- }
-
- // Allow objects with no prototype to be equivalent to
- // objects with Object as their constructor.
- if (protoA === null && protoB === Object.prototype || protoB === null && protoA === Object.prototype) {
- return true;
- }
-
- return false;
- }
-
- function getRegExpFlags(regexp) {
- return "flags" in regexp ? regexp.flags : regexp.toString().match(/[gimuy]*$/)[0];
- }
-
- var callbacks = {
- "string": useStrictEquality,
- "boolean": useStrictEquality,
- "number": useStrictEquality,
- "null": useStrictEquality,
- "undefined": useStrictEquality,
- "symbol": useStrictEquality,
- "date": useStrictEquality,
-
- "nan": function nan() {
- return true;
- },
-
- "regexp": function regexp(b, a) {
- return a.source === b.source &&
-
- // Include flags in the comparison
- getRegExpFlags(a) === getRegExpFlags(b);
- },
-
- // - skip when the property is a method of an instance (OOP)
- // - abort otherwise,
- // initial === would have catch identical references anyway
- "function": function _function(b, a) {
-
- var caller = callers[callers.length - 1];
- return caller !== Object && typeof caller !== "undefined" && a.toString() === b.toString();
- },
-
- "array": function array(b, a) {
- var i, j, len, loop, aCircular, bCircular;
-
- len = a.length;
- if (len !== b.length) {
-
- // Safe and faster
- return false;
- }
-
- // Track reference to avoid circular references
- parents.push(a);
- parentsB.push(b);
- for (i = 0; i < len; i++) {
- loop = false;
- for (j = 0; j < parents.length; j++) {
- aCircular = parents[j] === a[i];
- bCircular = parentsB[j] === b[i];
- if (aCircular || bCircular) {
- if (a[i] === b[i] || aCircular && bCircular) {
- loop = true;
- } else {
- parents.pop();
- parentsB.pop();
- return false;
- }
- }
- }
- if (!loop && !innerEquiv(a[i], b[i])) {
- parents.pop();
- parentsB.pop();
- return false;
- }
- }
- parents.pop();
- parentsB.pop();
- return true;
- },
-
- "set": function set$$1(b, a) {
- var innerEq,
- outerEq = true;
-
- if (a.size !== b.size) {
- return false;
- }
-
- a.forEach(function (aVal) {
- innerEq = false;
-
- b.forEach(function (bVal) {
- if (innerEquiv(bVal, aVal)) {
- innerEq = true;
- }
- });
-
- if (!innerEq) {
- outerEq = false;
- }
- });
-
- return outerEq;
- },
-
- "map": function map(b, a) {
- var innerEq,
- outerEq = true;
-
- if (a.size !== b.size) {
- return false;
- }
-
- a.forEach(function (aVal, aKey) {
- innerEq = false;
-
- b.forEach(function (bVal, bKey) {
- if (innerEquiv([bVal, bKey], [aVal, aKey])) {
- innerEq = true;
- }
- });
-
- if (!innerEq) {
- outerEq = false;
- }
- });
-
- return outerEq;
- },
-
- "object": function object(b, a) {
- var i, j, loop, aCircular, bCircular;
-
- // Default to true
- var eq = true;
- var aProperties = [];
- var bProperties = [];
-
- if (compareConstructors(a, b) === false) {
- return false;
- }
-
- // Stack constructor before traversing properties
- callers.push(a.constructor);
-
- // Track reference to avoid circular references
- parents.push(a);
- parentsB.push(b);
-
- // Be strict: don't ensure hasOwnProperty and go deep
- for (i in a) {
- loop = false;
- for (j = 0; j < parents.length; j++) {
- aCircular = parents[j] === a[i];
- bCircular = parentsB[j] === b[i];
- if (aCircular || bCircular) {
- if (a[i] === b[i] || aCircular && bCircular) {
- loop = true;
- } else {
- eq = false;
- break;
- }
- }
- }
- aProperties.push(i);
- if (!loop && !innerEquiv(a[i], b[i])) {
- eq = false;
- break;
- }
- }
-
- parents.pop();
- parentsB.pop();
-
- // Unstack, we are done
- callers.pop();
-
- for (i in b) {
-
- // Collect b's properties
- bProperties.push(i);
- }
-
- // Ensures identical properties name
- return eq && innerEquiv(aProperties.sort(), bProperties.sort());
- }
- };
-
- function typeEquiv(a, b) {
- var type = objectType(a);
- return objectType(b) === type && callbacks[type](b, a);
- }
-
- // The real equiv function
- function innerEquiv(a, b) {
-
- // We're done when there's nothing more to compare
- if (arguments.length < 2) {
- return true;
- }
-
- // Require type-specific equality
- return (a === b || typeEquiv(a, b)) && (
-
- // ...across all consecutive argument pairs
- arguments.length === 2 || innerEquiv.apply(this, [].slice.call(arguments, 1)));
- }
-
- return innerEquiv;
- })();
-
- /**
- * Config object: Maintain internal state
- * Later exposed as QUnit.config
- * `config` initialized at top of scope
- */
- var config = {
-
- // The queue of tests to run
- queue: [],
-
- // Block until document ready
- blocking: true,
-
- // By default, run previously failed tests first
- // very useful in combination with "Hide passed tests" checked
- reorder: true,
-
- // By default, modify document.title when suite is done
- altertitle: true,
-
- // HTML Reporter: collapse every test except the first failing test
- // If false, all failing tests will be expanded
- collapse: true,
-
- // By default, scroll to top of the page when suite is done
- scrolltop: true,
-
- // Depth up-to which object will be dumped
- maxDepth: 5,
-
- // When enabled, all tests must call expect()
- requireExpects: false,
-
- // Placeholder for user-configurable form-exposed URL parameters
- urlConfig: [],
-
- // Set of all modules.
- modules: [],
-
- // Stack of nested modules
- moduleStack: [],
-
- // The first unnamed module
- currentModule: {
- name: "",
- tests: [],
- childModules: [],
- testsRun: 0
- },
-
- callbacks: {},
-
- // The storage module to use for reordering tests
- storage: sessionStorage
- };
-
- // take a predefined QUnit.config and extend the defaults
- var globalConfig = window && window.QUnit && window.QUnit.config;
-
- // only extend the global config if there is no QUnit overload
- if (window && window.QUnit && !window.QUnit.version) {
- extend(config, globalConfig);
- }
-
- // Push a loose unnamed module to the modules collection
- config.modules.push(config.currentModule);
-
- // Based on jsDump by Ariel Flesler
- // http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html
- var dump = (function () {
- function quote(str) {
- return "\"" + str.toString().replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"";
- }
- function literal(o) {
- return o + "";
- }
- function join(pre, arr, post) {
- var s = dump.separator(),
- base = dump.indent(),
- inner = dump.indent(1);
- if (arr.join) {
- arr = arr.join("," + s + inner);
- }
- if (!arr) {
- return pre + post;
- }
- return [pre, inner + arr, base + post].join(s);
- }
- function array(arr, stack) {
- var i = arr.length,
- ret = new Array(i);
-
- if (dump.maxDepth && dump.depth > dump.maxDepth) {
- return "[object Array]";
- }
-
- this.up();
- while (i--) {
- ret[i] = this.parse(arr[i], undefined, stack);
- }
- this.down();
- return join("[", ret, "]");
- }
-
- function isArray(obj) {
- return (
-
- //Native Arrays
- toString.call(obj) === "[object Array]" ||
-
- // NodeList objects
- typeof obj.length === "number" && obj.item !== undefined && (obj.length ? obj.item(0) === obj[0] : obj.item(0) === null && obj[0] === undefined)
- );
- }
-
- var reName = /^function (\w+)/,
- dump = {
-
- // The objType is used mostly internally, you can fix a (custom) type in advance
- parse: function parse(obj, objType, stack) {
- stack = stack || [];
- var res,
- parser,
- parserType,
- inStack = inArray(obj, stack);
-
- if (inStack !== -1) {
- return "recursion(" + (inStack - stack.length) + ")";
- }
-
- objType = objType || this.typeOf(obj);
- parser = this.parsers[objType];
- parserType = typeof parser === "undefined" ? "undefined" : _typeof(parser);
-
- if (parserType === "function") {
- stack.push(obj);
- res = parser.call(this, obj, stack);
- stack.pop();
- return res;
- }
- return parserType === "string" ? parser : this.parsers.error;
- },
- typeOf: function typeOf(obj) {
- var type;
-
- if (obj === null) {
- type = "null";
- } else if (typeof obj === "undefined") {
- type = "undefined";
- } else if (is("regexp", obj)) {
- type = "regexp";
- } else if (is("date", obj)) {
- type = "date";
- } else if (is("function", obj)) {
- type = "function";
- } else if (obj.setInterval !== undefined && obj.document !== undefined && obj.nodeType === undefined) {
- type = "window";
- } else if (obj.nodeType === 9) {
- type = "document";
- } else if (obj.nodeType) {
- type = "node";
- } else if (isArray(obj)) {
- type = "array";
- } else if (obj.constructor === Error.prototype.constructor) {
- type = "error";
- } else {
- type = typeof obj === "undefined" ? "undefined" : _typeof(obj);
- }
- return type;
- },
-
- separator: function separator() {
- if (this.multiline) {
- return this.HTML ? "<br />" : "\n";
- } else {
- return this.HTML ? "&#160;" : " ";
- }
- },
-
- // Extra can be a number, shortcut for increasing-calling-decreasing
- indent: function indent(extra) {
- if (!this.multiline) {
- return "";
- }
- var chr = this.indentChar;
- if (this.HTML) {
- chr = chr.replace(/\t/g, " ").replace(/ /g, "&#160;");
- }
- return new Array(this.depth + (extra || 0)).join(chr);
- },
- up: function up(a) {
- this.depth += a || 1;
- },
- down: function down(a) {
- this.depth -= a || 1;
- },
- setParser: function setParser(name, parser) {
- this.parsers[name] = parser;
- },
-
- // The next 3 are exposed so you can use them
- quote: quote,
- literal: literal,
- join: join,
- depth: 1,
- maxDepth: config.maxDepth,
-
- // This is the list of parsers, to modify them, use dump.setParser
- parsers: {
- window: "[Window]",
- document: "[Document]",
- error: function error(_error) {
- return "Error(\"" + _error.message + "\")";
- },
- unknown: "[Unknown]",
- "null": "null",
- "undefined": "undefined",
- "function": function _function(fn) {
- var ret = "function",
-
-
- // Functions never have name in IE
- name = "name" in fn ? fn.name : (reName.exec(fn) || [])[1];
-
- if (name) {
- ret += " " + name;
- }
- ret += "(";
-
- ret = [ret, dump.parse(fn, "functionArgs"), "){"].join("");
- return join(ret, dump.parse(fn, "functionCode"), "}");
- },
- array: array,
- nodelist: array,
- "arguments": array,
- object: function object(map, stack) {
- var keys,
- key,
- val,
- i,
- nonEnumerableProperties,
- ret = [];
-
- if (dump.maxDepth && dump.depth > dump.maxDepth) {
- return "[object Object]";
- }
-
- dump.up();
- keys = [];
- for (key in map) {
- keys.push(key);
- }
-
- // Some properties are not always enumerable on Error objects.
- nonEnumerableProperties = ["message", "name"];
- for (i in nonEnumerableProperties) {
- key = nonEnumerableProperties[i];
- if (key in map && inArray(key, keys) < 0) {
- keys.push(key);
- }
- }
- keys.sort();
- for (i = 0; i < keys.length; i++) {
- key = keys[i];
- val = map[key];
- ret.push(dump.parse(key, "key") + ": " + dump.parse(val, undefined, stack));
- }
- dump.down();
- return join("{", ret, "}");
- },
- node: function node(_node) {
- var len,
- i,
- val,
- open = dump.HTML ? "&lt;" : "<",
- close = dump.HTML ? "&gt;" : ">",
- tag = _node.nodeName.toLowerCase(),
- ret = open + tag,
- attrs = _node.attributes;
-
- if (attrs) {
- for (i = 0, len = attrs.length; i < len; i++) {
- val = attrs[i].nodeValue;
-
- // IE6 includes all attributes in .attributes, even ones not explicitly
- // set. Those have values like undefined, null, 0, false, "" or
- // "inherit".
- if (val && val !== "inherit") {
- ret += " " + attrs[i].nodeName + "=" + dump.parse(val, "attribute");
- }
- }
- }
- ret += close;
-
- // Show content of TextNode or CDATASection
- if (_node.nodeType === 3 || _node.nodeType === 4) {
- ret += _node.nodeValue;
- }
-
- return ret + open + "/" + tag + close;
- },
-
- // Function calls it internally, it's the arguments part of the function
- functionArgs: function functionArgs(fn) {
- var args,
- l = fn.length;
-
- if (!l) {
- return "";
- }
-
- args = new Array(l);
- while (l--) {
-
- // 97 is 'a'
- args[l] = String.fromCharCode(97 + l);
- }
- return " " + args.join(", ") + " ";
- },
-
- // Object calls it internally, the key part of an item in a map
- key: quote,
-
- // Function calls it internally, it's the content of the function
- functionCode: "[code]",
-
- // Node calls it internally, it's a html attribute value
- attribute: quote,
- string: quote,
- date: quote,
- regexp: literal,
- number: literal,
- "boolean": literal,
- symbol: function symbol(sym) {
- return sym.toString();
- }
- },
-
- // If true, entities are escaped ( <, >, \t, space and \n )
- HTML: false,
-
- // Indentation unit
- indentChar: " ",
-
- // If true, items in a collection, are separated by a \n, else just a space.
- multiline: true
- };
-
- return dump;
- })();
-
- // Register logging callbacks
- function registerLoggingCallbacks(obj) {
- var i,
- l,
- key,
- callbackNames = ["begin", "done", "log", "testStart", "testDone", "moduleStart", "moduleDone"];
-
- function registerLoggingCallback(key) {
- var loggingCallback = function loggingCallback(callback) {
- if (objectType(callback) !== "function") {
- throw new Error("QUnit logging methods require a callback function as their first parameters.");
- }
-
- config.callbacks[key].push(callback);
- };
-
- return loggingCallback;
- }
-
- for (i = 0, l = callbackNames.length; i < l; i++) {
- key = callbackNames[i];
-
- // Initialize key collection of logging callback
- if (objectType(config.callbacks[key]) === "undefined") {
- config.callbacks[key] = [];
- }
-
- obj[key] = registerLoggingCallback(key);
- }
- }
-
- function runLoggingCallbacks(key, args) {
- var i, l, callbacks;
-
- callbacks = config.callbacks[key];
- for (i = 0, l = callbacks.length; i < l; i++) {
- callbacks[i](args);
- }
- }
-
- // Doesn't support IE9, it will return undefined on these browsers
- // See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack
- var fileName = (sourceFromStacktrace(0) || "").replace(/(:\d+)+\)?/, "").replace(/.+\//, "");
-
- function extractStacktrace(e, offset) {
- offset = offset === undefined ? 4 : offset;
-
- var stack, include, i;
-
- if (e && e.stack) {
- stack = e.stack.split("\n");
- if (/^error$/i.test(stack[0])) {
- stack.shift();
- }
- if (fileName) {
- include = [];
- for (i = offset; i < stack.length; i++) {
- if (stack[i].indexOf(fileName) !== -1) {
- break;
- }
- include.push(stack[i]);
- }
- if (include.length) {
- return include.join("\n");
- }
- }
- return stack[offset];
- }
- }
-
- function sourceFromStacktrace(offset) {
- var error = new Error();
-
- // Support: Safari <=7 only, IE <=10 - 11 only
- // Not all browsers generate the `stack` property for `new Error()`, see also #636
- if (!error.stack) {
- try {
- throw error;
- } catch (err) {
- error = err;
- }
- }
-
- return extractStacktrace(error, offset);
- }
-
- var unitSampler;
- var focused = false;
- var priorityCount = 0;
-
- function Test(settings) {
- var i, l;
-
- ++Test.count;
-
- this.expected = null;
- extend(this, settings);
- this.assertions = [];
- this.semaphore = 0;
- this.usedAsync = false;
- this.module = config.currentModule;
- this.stack = sourceFromStacktrace(3);
-
- // Register unique strings
- for (i = 0, l = this.module.tests; i < l.length; i++) {
- if (this.module.tests[i].name === this.testName) {
- this.testName += " ";
- }
- }
-
- this.testId = generateHash(this.module.name, this.testName);
-
- this.module.tests.push({
- name: this.testName,
- testId: this.testId
- });
-
- if (settings.skip) {
-
- // Skipped tests will fully ignore any sent callback
- this.callback = function () {};
- this.async = false;
- this.expected = 0;
- } else {
- this.assert = new Assert(this);
- }
- }
-
- Test.count = 0;
-
- function getNotStartedModules(startModule) {
- var module = startModule,
- modules = [];
-
- while (module && module.testsRun === 0) {
- modules.push(module);
- module = module.parentModule;
- }
-
- return modules;
- }
-
- Test.prototype = {
- before: function before() {
- var i,
- startModule,
- module = this.module,
- notStartedModules = getNotStartedModules(module);
-
- for (i = notStartedModules.length - 1; i >= 0; i--) {
- startModule = notStartedModules[i];
- startModule.stats = { all: 0, bad: 0, started: now() };
- runLoggingCallbacks("moduleStart", {
- name: startModule.name,
- tests: startModule.tests
- });
- }
-
- config.current = this;
-
- if (module.testEnvironment) {
- delete module.testEnvironment.before;
- delete module.testEnvironment.beforeEach;
- delete module.testEnvironment.afterEach;
- delete module.testEnvironment.after;
- }
- this.testEnvironment = extend({}, module.testEnvironment);
-
- this.started = now();
- runLoggingCallbacks("testStart", {
- name: this.testName,
- module: module.name,
- testId: this.testId,
- previousFailure: this.previousFailure
- });
-
- if (!config.pollution) {
- saveGlobal();
- }
- },
-
- run: function run() {
- var promise;
-
- config.current = this;
-
- this.callbackStarted = now();
-
- if (config.notrycatch) {
- runTest(this);
- return;
- }
-
- try {
- runTest(this);
- } catch (e) {
- this.pushFailure("Died on test #" + (this.assertions.length + 1) + " " + this.stack + ": " + (e.message || e), extractStacktrace(e, 0));
-
- // Else next test will carry the responsibility
- saveGlobal();
-
- // Restart the tests if they're blocking
- if (config.blocking) {
- internalRecover(this);
- }
- }
-
- function runTest(test) {
- promise = test.callback.call(test.testEnvironment, test.assert);
- test.resolvePromise(promise);
- }
- },
-
- after: function after() {
- checkPollution();
- },
-
- queueHook: function queueHook(hook, hookName, hookOwner) {
- var promise,
- test = this;
- return function runHook() {
- if (hookName === "before") {
- if (hookOwner.testsRun !== 0) {
- return;
- }
-
- test.preserveEnvironment = true;
- }
-
- if (hookName === "after" && hookOwner.testsRun !== numberOfTests(hookOwner) - 1) {
- return;
- }
-
- config.current = test;
- if (config.notrycatch) {
- callHook();
- return;
- }
- try {
- callHook();
- } catch (error) {
- test.pushFailure(hookName + " failed on " + test.testName + ": " + (error.message || error), extractStacktrace(error, 0));
- }
-
- function callHook() {
- promise = hook.call(test.testEnvironment, test.assert);
- test.resolvePromise(promise, hookName);
- }
- };
- },
-
- // Currently only used for module level hooks, can be used to add global level ones
- hooks: function hooks(handler) {
- var hooks = [];
-
- function processHooks(test, module) {
- if (module.parentModule) {
- processHooks(test, module.parentModule);
- }
- if (module.testEnvironment && objectType(module.testEnvironment[handler]) === "function") {
- hooks.push(test.queueHook(module.testEnvironment[handler], handler, module));
- }
- }
-
- // Hooks are ignored on skipped tests
- if (!this.skip) {
- processHooks(this, this.module);
- }
- return hooks;
- },
-
- finish: function finish() {
- config.current = this;
- if (config.requireExpects && this.expected === null) {
- this.pushFailure("Expected number of assertions to be defined, but expect() was " + "not called.", this.stack);
- } else if (this.expected !== null && this.expected !== this.assertions.length) {
- this.pushFailure("Expected " + this.expected + " assertions, but " + this.assertions.length + " were run", this.stack);
- } else if (this.expected === null && !this.assertions.length) {
- this.pushFailure("Expected at least one assertion, but none were run - call " + "expect(0) to accept zero assertions.", this.stack);
- }
-
- var i,
- module = this.module,
- moduleName = module.name,
- testName = this.testName,
- skipped = !!this.skip,
- bad = 0,
- storage = config.storage;
-
- this.runtime = now() - this.started;
-
- config.stats.all += this.assertions.length;
- module.stats.all += this.assertions.length;
-
- for (i = 0; i < this.assertions.length; i++) {
- if (!this.assertions[i].result) {
- bad++;
- config.stats.bad++;
- module.stats.bad++;
- }
- }
-
- notifyTestsRan(module);
-
- // Store result when possible
- if (storage) {
- if (bad) {
- storage.setItem("qunit-test-" + moduleName + "-" + testName, bad);
- } else {
- storage.removeItem("qunit-test-" + moduleName + "-" + testName);
- }
- }
-
- runLoggingCallbacks("testDone", {
- name: testName,
- module: moduleName,
- skipped: skipped,
- failed: bad,
- passed: this.assertions.length - bad,
- total: this.assertions.length,
- runtime: skipped ? 0 : this.runtime,
-
- // HTML Reporter use
- assertions: this.assertions,
- testId: this.testId,
-
- // Source of Test
- source: this.stack
- });
-
- if (module.testsRun === numberOfTests(module)) {
- runLoggingCallbacks("moduleDone", {
- name: module.name,
- tests: module.tests,
- failed: module.stats.bad,
- passed: module.stats.all - module.stats.bad,
- total: module.stats.all,
- runtime: now() - module.stats.started
- });
- }
-
- config.current = undefined;
- },
-
- preserveTestEnvironment: function preserveTestEnvironment() {
- if (this.preserveEnvironment) {
- this.module.testEnvironment = this.testEnvironment;
- this.testEnvironment = extend({}, this.module.testEnvironment);
- }
- },
-
- queue: function queue() {
- var priority,
- previousFailCount,
- test = this;
-
- if (!this.valid()) {
- return;
- }
-
- function run() {
-
- // Each of these can by async
- synchronize([function () {
- test.before();
- }, test.hooks("before"), function () {
- test.preserveTestEnvironment();
- }, test.hooks("beforeEach"), function () {
- test.run();
- }, test.hooks("afterEach").reverse(), test.hooks("after").reverse(), function () {
- test.after();
- }, function () {
- test.finish();
- }]);
- }
-
- previousFailCount = config.storage && +config.storage.getItem("qunit-test-" + this.module.name + "-" + this.testName);
-
- // Prioritize previously failed tests, detected from storage
- priority = config.reorder && previousFailCount;
-
- this.previousFailure = !!previousFailCount;
-
- return synchronize(run, priority, config.seed);
- },
-
- pushResult: function pushResult(resultInfo) {
-
- // Destructure of resultInfo = { result, actual, expected, message, negative }
- var source,
- details = {
- module: this.module.name,
- name: this.testName,
- result: resultInfo.result,
- message: resultInfo.message,
- actual: resultInfo.actual,
- expected: resultInfo.expected,
- testId: this.testId,
- negative: resultInfo.negative || false,
- runtime: now() - this.started
- };
-
- if (!resultInfo.result) {
- source = sourceFromStacktrace();
-
- if (source) {
- details.source = source;
- }
- }
-
- runLoggingCallbacks("log", details);
-
- this.assertions.push({
- result: !!resultInfo.result,
- message: resultInfo.message
- });
- },
-
- pushFailure: function pushFailure(message, source, actual) {
- if (!(this instanceof Test)) {
- throw new Error("pushFailure() assertion outside test context, was " + sourceFromStacktrace(2));
- }
-
- var details = {
- module: this.module.name,
- name: this.testName,
- result: false,
- message: message || "error",
- actual: actual || null,
- testId: this.testId,
- runtime: now() - this.started
- };
-
- if (source) {
- details.source = source;
- }
-
- runLoggingCallbacks("log", details);
-
- this.assertions.push({
- result: false,
- message: message
- });
- },
-
- resolvePromise: function resolvePromise(promise, phase) {
- var then,
- resume,
- message,
- test = this;
- if (promise != null) {
- then = promise.then;
- if (objectType(then) === "function") {
- resume = internalStop(test);
- then.call(promise, function () {
- resume();
- }, function (error) {
- message = "Promise rejected " + (!phase ? "during" : phase.replace(/Each$/, "")) + " \"" + test.testName + "\": " + (error && error.message || error);
- test.pushFailure(message, extractStacktrace(error, 0));
-
- // Else next test will carry the responsibility
- saveGlobal();
-
- // Unblock
- resume();
- });
- }
- }
- },
-
- valid: function valid() {
- var filter = config.filter,
- regexFilter = /^(!?)\/([\w\W]*)\/(i?$)/.exec(filter),
- module = config.module && config.module.toLowerCase(),
- fullName = this.module.name + ": " + this.testName;
-
- function moduleChainNameMatch(testModule) {
- var testModuleName = testModule.name ? testModule.name.toLowerCase() : null;
- if (testModuleName === module) {
- return true;
- } else if (testModule.parentModule) {
- return moduleChainNameMatch(testModule.parentModule);
- } else {
- return false;
- }
- }
-
- function moduleChainIdMatch(testModule) {
- return inArray(testModule.moduleId, config.moduleId) > -1 || testModule.parentModule && moduleChainIdMatch(testModule.parentModule);
- }
-
- // Internally-generated tests are always valid
- if (this.callback && this.callback.validTest) {
- return true;
- }
-
- if (config.moduleId && config.moduleId.length > 0 && !moduleChainIdMatch(this.module)) {
-
- return false;
- }
-
- if (config.testId && config.testId.length > 0 && inArray(this.testId, config.testId) < 0) {
-
- return false;
- }
-
- if (module && !moduleChainNameMatch(this.module)) {
- return false;
- }
-
- if (!filter) {
- return true;
- }
-
- return regexFilter ? this.regexFilter(!!regexFilter[1], regexFilter[2], regexFilter[3], fullName) : this.stringFilter(filter, fullName);
- },
-
- regexFilter: function regexFilter(exclude, pattern, flags, fullName) {
- var regex = new RegExp(pattern, flags);
- var match = regex.test(fullName);
-
- return match !== exclude;
- },
-
- stringFilter: function stringFilter(filter, fullName) {
- filter = filter.toLowerCase();
- fullName = fullName.toLowerCase();
-
- var include = filter.charAt(0) !== "!";
- if (!include) {
- filter = filter.slice(1);
- }
-
- // If the filter matches, we need to honour include
- if (fullName.indexOf(filter) !== -1) {
- return include;
- }
-
- // Otherwise, do the opposite
- return !include;
- }
- };
-
- function pushFailure() {
- if (!config.current) {
- throw new Error("pushFailure() assertion outside test context, in " + sourceFromStacktrace(2));
- }
-
- // Gets current test obj
- var currentTest = config.current;
-
- return currentTest.pushFailure.apply(currentTest, arguments);
- }
-
- // Based on Java's String.hashCode, a simple but not
- // rigorously collision resistant hashing function
- function generateHash(module, testName) {
- var hex,
- i = 0,
- hash = 0,
- str = module + "\x1C" + testName,
- len = str.length;
-
- for (; i < len; i++) {
- hash = (hash << 5) - hash + str.charCodeAt(i);
- hash |= 0;
- }
-
- // Convert the possibly negative integer hash code into an 8 character hex string, which isn't
- // strictly necessary but increases user understanding that the id is a SHA-like hash
- hex = (0x100000000 + hash).toString(16);
- if (hex.length < 8) {
- hex = "0000000" + hex;
- }
-
- return hex.slice(-8);
- }
-
- function synchronize(callback, priority, seed) {
- var last = !priority,
- index;
-
- if (objectType(callback) === "array") {
- while (callback.length) {
- synchronize(callback.shift());
- }
- return;
- }
-
- if (priority) {
- config.queue.splice(priorityCount++, 0, callback);
- } else if (seed) {
- if (!unitSampler) {
- unitSampler = unitSamplerGenerator(seed);
- }
-
- // Insert into a random position after all priority items
- index = Math.floor(unitSampler() * (config.queue.length - priorityCount + 1));
- config.queue.splice(priorityCount + index, 0, callback);
- } else {
- config.queue.push(callback);
- }
-
- if (internalState.autorun && !config.blocking) {
- process(last);
- }
- }
-
- function unitSamplerGenerator(seed) {
-
- // 32-bit xorshift, requires only a nonzero seed
- // http://excamera.com/sphinx/article-xorshift.html
- var sample = parseInt(generateHash(seed), 16) || -1;
- return function () {
- sample ^= sample << 13;
- sample ^= sample >>> 17;
- sample ^= sample << 5;
-
- // ECMAScript has no unsigned number type
- if (sample < 0) {
- sample += 0x100000000;
- }
-
- return sample / 0x100000000;
- };
- }
-
- function saveGlobal() {
- config.pollution = [];
-
- if (config.noglobals) {
- for (var key in global$1) {
- if (hasOwn.call(global$1, key)) {
-
- // In Opera sometimes DOM element ids show up here, ignore them
- if (/^qunit-test-output/.test(key)) {
- continue;
- }
- config.pollution.push(key);
- }
- }
- }
- }
-
- function checkPollution() {
- var newGlobals,
- deletedGlobals,
- old = config.pollution;
-
- saveGlobal();
-
- newGlobals = diff(config.pollution, old);
- if (newGlobals.length > 0) {
- pushFailure("Introduced global variable(s): " + newGlobals.join(", "));
- }
-
- deletedGlobals = diff(old, config.pollution);
- if (deletedGlobals.length > 0) {
- pushFailure("Deleted global variable(s): " + deletedGlobals.join(", "));
- }
- }
-
- // Will be exposed as QUnit.test
- function test(testName, callback) {
- if (focused) {
- return;
- }
-
- var newTest;
-
- newTest = new Test({
- testName: testName,
- callback: callback
- });
-
- newTest.queue();
- }
-
- // Will be exposed as QUnit.skip
- function skip(testName) {
- if (focused) {
- return;
- }
-
- var test = new Test({
- testName: testName,
- skip: true
- });
-
- test.queue();
- }
-
- // Will be exposed as QUnit.only
- function only(testName, callback) {
- var newTest;
-
- if (focused) {
- return;
- }
-
- config.queue.length = 0;
- focused = true;
-
- newTest = new Test({
- testName: testName,
- callback: callback
- });
-
- newTest.queue();
- }
-
- // Put a hold on processing and return a function that will release it.
- function internalStop(test) {
- var released = false;
-
- test.semaphore += 1;
- config.blocking = true;
-
- // Set a recovery timeout, if so configured.
- if (config.testTimeout && defined.setTimeout) {
- clearTimeout(config.timeout);
- config.timeout = setTimeout(function () {
- pushFailure("Test timed out", sourceFromStacktrace(2));
- internalRecover(test);
- }, config.testTimeout);
- }
-
- return function resume() {
- if (released) {
- return;
- }
-
- released = true;
- test.semaphore -= 1;
- internalStart(test);
- };
- }
-
- // Forcefully release all processing holds.
- function internalRecover(test) {
- test.semaphore = 0;
- internalStart(test);
- }
-
- // Release a processing hold, scheduling a resumption attempt if no holds remain.
- function internalStart(test) {
-
- // If semaphore is non-numeric, throw error
- if (isNaN(test.semaphore)) {
- test.semaphore = 0;
-
- pushFailure("Invalid value on test.semaphore", sourceFromStacktrace(2));
- return;
- }
-
- // Don't start until equal number of stop-calls
- if (test.semaphore > 0) {
- return;
- }
-
- // Throw an Error if start is called more often than stop
- if (test.semaphore < 0) {
- test.semaphore = 0;
-
- pushFailure("Tried to restart test while already started (test's semaphore was 0 already)", sourceFromStacktrace(2));
- return;
- }
-
- // Add a slight delay to allow more assertions etc.
- if (defined.setTimeout) {
- if (config.timeout) {
- clearTimeout(config.timeout);
- }
- config.timeout = setTimeout(function () {
- if (test.semaphore > 0) {
- return;
- }
-
- if (config.timeout) {
- clearTimeout(config.timeout);
- }
-
- begin();
- }, 13);
- } else {
- begin();
- }
- }
-
- function numberOfTests(module) {
- var count = module.tests.length,
- modules = [].concat(toConsumableArray(module.childModules));
-
- // Do a breadth-first traversal of the child modules
- while (modules.length) {
- var nextModule = modules.shift();
- count += nextModule.tests.length;
- modules.push.apply(modules, toConsumableArray(nextModule.childModules));
- }
-
- return count;
- }
-
- function notifyTestsRan(module) {
- module.testsRun++;
- while (module = module.parentModule) {
- module.testsRun++;
- }
- }
-
- var Assert = function () {
- function Assert(testContext) {
- classCallCheck(this, Assert);
-
- this.test = testContext;
- }
-
- // Assert helpers
-
- // Specify the number of expected assertions to guarantee that failed test
- // (no assertions are run at all) don't slip through.
-
-
- createClass(Assert, [{
- key: "expect",
- value: function expect(asserts) {
- if (arguments.length === 1) {
- this.test.expected = asserts;
- } else {
- return this.test.expected;
- }
- }
-
- // Put a hold on processing and return a function that will release it a maximum of once.
-
- }, {
- key: "async",
- value: function async(count) {
- var test$$1 = this.test,
- popped = false,
- acceptCallCount = count;
-
- if (typeof acceptCallCount === "undefined") {
- acceptCallCount = 1;
- }
-
- test$$1.usedAsync = true;
- var resume = internalStop(test$$1);
-
- return function done() {
- if (popped) {
- test$$1.pushFailure("Too many calls to the `assert.async` callback", sourceFromStacktrace(2));
- return;
- }
-
- acceptCallCount -= 1;
- if (acceptCallCount > 0) {
- return;
- }
-
- popped = true;
- resume();
- };
- }
-
- // Exports test.push() to the user API
- // Alias of pushResult.
-
- }, {
- key: "push",
- value: function push(result, actual, expected, message, negative) {
- console.warn("assert.push is deprecated and will be removed in QUnit 3.0." + " Please use assert.pushResult instead (http://api.qunitjs.com/pushResult/).");
-
- var currentAssert = this instanceof Assert ? this : config.current.assert;
- return currentAssert.pushResult({
- result: result,
- actual: actual,
- expected: expected,
- message: message,
- negative: negative
- });
- }
- }, {
- key: "pushResult",
- value: function pushResult(resultInfo) {
-
- // Destructure of resultInfo = { result, actual, expected, message, negative }
- var assert = this,
- currentTest = assert instanceof Assert && assert.test || config.current;
-
- // Backwards compatibility fix.
- // Allows the direct use of global exported assertions and QUnit.assert.*
- // Although, it's use is not recommended as it can leak assertions
- // to other tests from async tests, because we only get a reference to the current test,
- // not exactly the test where assertion were intended to be called.
- if (!currentTest) {
- throw new Error("assertion outside test context, in " + sourceFromStacktrace(2));
- }
-
- if (currentTest.usedAsync === true && currentTest.semaphore === 0) {
- currentTest.pushFailure("Assertion after the final `assert.async` was resolved", sourceFromStacktrace(2));
-
- // Allow this assertion to continue running anyway...
- }
-
- if (!(assert instanceof Assert)) {
- assert = currentTest.assert;
- }
-
- return assert.test.pushResult(resultInfo);
- }
- }, {
- key: "ok",
- value: function ok(result, message) {
- if (!message) {
- message = result ? "okay" : "failed, expected argument to be truthy, was: " + dump.parse(result);
- }
-
- this.pushResult({
- result: !!result,
- actual: result,
- expected: true,
- message: message
- });
- }
- }, {
- key: "notOk",
- value: function notOk(result, message) {
- if (!message) {
- message = !result ? "okay" : "failed, expected argument to be falsy, was: " + dump.parse(result);
- }
-
- this.pushResult({
- result: !result,
- actual: result,
- expected: false,
- message: message
- });
- }
- }, {
- key: "equal",
- value: function equal(actual, expected, message) {
-
- // eslint-disable-next-line eqeqeq
- var result = expected == actual;
-
- this.pushResult({
- result: result,
- actual: actual,
- expected: expected,
- message: message
- });
- }
- }, {
- key: "notEqual",
- value: function notEqual(actual, expected, message) {
-
- // eslint-disable-next-line eqeqeq
- var result = expected != actual;
-
- this.pushResult({
- result: result,
- actual: actual,
- expected: expected,
- message: message,
- negative: true
- });
- }
- }, {
- key: "propEqual",
- value: function propEqual(actual, expected, message) {
- actual = objectValues(actual);
- expected = objectValues(expected);
-
- this.pushResult({
- result: equiv(actual, expected),
- actual: actual,
- expected: expected,
- message: message
- });
- }
- }, {
- key: "notPropEqual",
- value: function notPropEqual(actual, expected, message) {
- actual = objectValues(actual);
- expected = objectValues(expected);
-
- this.pushResult({
- result: !equiv(actual, expected),
- actual: actual,
- expected: expected,
- message: message,
- negative: true
- });
- }
- }, {
- key: "deepEqual",
- value: function deepEqual(actual, expected, message) {
- this.pushResult({
- result: equiv(actual, expected),
- actual: actual,
- expected: expected,
- message: message
- });
- }
- }, {
- key: "notDeepEqual",
- value: function notDeepEqual(actual, expected, message) {
- this.pushResult({
- result: !equiv(actual, expected),
- actual: actual,
- expected: expected,
- message: message,
- negative: true
- });
- }
- }, {
- key: "strictEqual",
- value: function strictEqual(actual, expected, message) {
- this.pushResult({
- result: expected === actual,
- actual: actual,
- expected: expected,
- message: message
- });
- }
- }, {
- key: "notStrictEqual",
- value: function notStrictEqual(actual, expected, message) {
- this.pushResult({
- result: expected !== actual,
- actual: actual,
- expected: expected,
- message: message,
- negative: true
- });
- }
- }, {
- key: "throws",
- value: function throws(block, expected, message) {
- var actual = void 0,
- result = false,
- currentTest = this instanceof Assert && this.test || config.current;
-
- // 'expected' is optional unless doing string comparison
- if (objectType(expected) === "string") {
- if (message == null) {
- message = expected;
- expected = null;
- } else {
- throw new Error("throws/raises does not accept a string value for the expected argument.\n" + "Use a non-string object value (e.g. regExp) instead if it's necessary.");
- }
- }
-
- currentTest.ignoreGlobalErrors = true;
- try {
- block.call(currentTest.testEnvironment);
- } catch (e) {
- actual = e;
- }
- currentTest.ignoreGlobalErrors = false;
-
- if (actual) {
- var expectedType = objectType(expected);
-
- // We don't want to validate thrown error
- if (!expected) {
- result = true;
- expected = null;
-
- // Expected is a regexp
- } else if (expectedType === "regexp") {
- result = expected.test(errorString(actual));
-
- // Expected is a constructor, maybe an Error constructor
- } else if (expectedType === "function" && actual instanceof expected) {
- result = true;
-
- // Expected is an Error object
- } else if (expectedType === "object") {
- result = actual instanceof expected.constructor && actual.name === expected.name && actual.message === expected.message;
-
- // Expected is a validation function which returns true if validation passed
- } else if (expectedType === "function" && expected.call({}, actual) === true) {
- expected = null;
- result = true;
- }
- }
-
- currentTest.assert.pushResult({
- result: result,
- actual: actual,
- expected: expected,
- message: message
- });
- }
- }]);
- return Assert;
- }();
-
- // Provide an alternative to assert.throws(), for environments that consider throws a reserved word
- // Known to us are: Closure Compiler, Narwhal
- // eslint-disable-next-line dot-notation
-
-
- Assert.prototype.raises = Assert.prototype["throws"];
-
- /**
- * Converts an error into a simple string for comparisons.
- *
- * @param {Error} error
- * @return {String}
- */
- function errorString(error) {
- var resultErrorString = error.toString();
-
- if (resultErrorString.substring(0, 7) === "[object") {
- var name = error.name ? error.name.toString() : "Error";
- var message = error.message ? error.message.toString() : "";
-
- if (name && message) {
- return name + ": " + message;
- } else if (name) {
- return name;
- } else if (message) {
- return message;
- } else {
- return "Error";
- }
- } else {
- return resultErrorString;
- }
- }
-
- /* global module, exports, define */
- function exportQUnit(QUnit) {
-
- if (defined.document) {
-
- // QUnit may be defined when it is preconfigured but then only QUnit and QUnit.config may be defined.
- if (window.QUnit && window.QUnit.version) {
- throw new Error("QUnit has already been defined.");
- }
-
- window.QUnit = QUnit;
- }
-
- // For nodejs
- if (typeof module !== "undefined" && module && module.exports) {
- module.exports = QUnit;
-
- // For consistency with CommonJS environments' exports
- module.exports.QUnit = QUnit;
- }
-
- // For CommonJS with exports, but without module.exports, like Rhino
- if (typeof exports !== "undefined" && exports) {
- exports.QUnit = QUnit;
- }
-
- if (typeof define === "function" && define.amd) {
- define(function () {
- return QUnit;
- });
- QUnit.config.autostart = false;
- }
- }
-
- (function () {
- if (!defined.document) {
- return;
- }
-
- // `onErrorFnPrev` initialized at top of scope
- // Preserve other handlers
- var onErrorFnPrev = window.onerror;
-
- // Cover uncaught exceptions
- // Returning true will suppress the default browser handler,
- // returning false will let it run.
- window.onerror = function (error, filePath, linerNr) {
- var ret = false;
- if (onErrorFnPrev) {
- ret = onErrorFnPrev(error, filePath, linerNr);
- }
-
- // Treat return value as window.onerror itself does,
- // Only do our handling if not suppressed.
- if (ret !== true) {
- if (config.current) {
- if (config.current.ignoreGlobalErrors) {
- return true;
- }
- pushFailure(error, filePath + ":" + linerNr);
- } else {
- test("global failure", extend(function () {
- pushFailure(error, filePath + ":" + linerNr);
- }, { validTest: true }));
- }
- return false;
- }
-
- return ret;
- };
- })();
-
- var QUnit = {};
-
- var globalStartCalled = false;
- var runStarted = false;
-
- var internalState = {
- autorun: false
- };
-
- // Figure out if we're running the tests from a server or not
- QUnit.isLocal = !(defined.document && window.location.protocol !== "file:");
-
- // Expose the current QUnit version
- QUnit.version = "2.1.1";
-
- extend(QUnit, {
-
- // Call on start of module test to prepend name to all tests
- module: function module(name, testEnvironment, executeNow) {
- var module, moduleFns;
- var currentModule = config.currentModule;
-
- if (arguments.length === 2) {
- if (objectType(testEnvironment) === "function") {
- executeNow = testEnvironment;
- testEnvironment = undefined;
- }
- }
-
- module = createModule();
-
- moduleFns = {
- before: setHook(module, "before"),
- beforeEach: setHook(module, "beforeEach"),
- afterEach: setHook(module, "afterEach"),
- after: setHook(module, "after")
- };
-
- if (objectType(executeNow) === "function") {
- config.moduleStack.push(module);
- setCurrentModule(module);
- executeNow.call(module.testEnvironment, moduleFns);
- config.moduleStack.pop();
- module = module.parentModule || currentModule;
- }
-
- setCurrentModule(module);
-
- function createModule() {
- var parentModule = config.moduleStack.length ? config.moduleStack.slice(-1)[0] : null;
- var moduleName = parentModule !== null ? [parentModule.name, name].join(" > ") : name;
- var module = {
- name: moduleName,
- parentModule: parentModule,
- tests: [],
- moduleId: generateHash(moduleName),
- testsRun: 0,
- childModules: []
- };
-
- var env = {};
- if (parentModule) {
- parentModule.childModules.push(module);
- extend(env, parentModule.testEnvironment);
- delete env.beforeEach;
- delete env.afterEach;
- }
- extend(env, testEnvironment);
- module.testEnvironment = env;
-
- config.modules.push(module);
- return module;
- }
-
- function setCurrentModule(module) {
- config.currentModule = module;
- }
- },
-
- test: test,
-
- skip: skip,
-
- only: only,
-
- start: function start(count) {
- var globalStartAlreadyCalled = globalStartCalled;
-
- if (!config.current) {
- globalStartCalled = true;
-
- if (runStarted) {
- throw new Error("Called start() while test already started running");
- } else if (globalStartAlreadyCalled || count > 1) {
- throw new Error("Called start() outside of a test context too many times");
- } else if (config.autostart) {
- throw new Error("Called start() outside of a test context when " + "QUnit.config.autostart was true");
- } else if (!defined.document && !config.pageLoaded) {
-
- // Starts from Node even if .load was not previously called
- QUnit.load();
- } else if (!config.pageLoaded) {
-
- // The page isn't completely loaded yet, so bail out and let `QUnit.load` handle it
- config.autostart = true;
- return;
- }
- } else {
- throw new Error("QUnit.start cannot be called inside a test context.");
- }
-
- scheduleBegin();
- },
-
- config: config,
-
- is: is,
-
- objectType: objectType,
-
- extend: extend,
-
- load: function load() {
- config.pageLoaded = true;
-
- // Initialize the configuration options
- extend(config, {
- stats: { all: 0, bad: 0 },
- started: 0,
- updateRate: 1000,
- autostart: true,
- filter: ""
- }, true);
-
- if (!runStarted) {
- config.blocking = false;
-
- if (config.autostart) {
- scheduleBegin();
- }
- }
- },
-
- stack: function stack(offset) {
- offset = (offset || 0) + 2;
- return sourceFromStacktrace(offset);
- }
- });
-
- QUnit.pushFailure = pushFailure;
- QUnit.assert = Assert.prototype;
- QUnit.equiv = equiv;
- QUnit.dump = dump;
-
- registerLoggingCallbacks(QUnit);
-
- function scheduleBegin() {
-
- runStarted = true;
-
- // Add a slight delay to allow definition of more modules and tests.
- if (defined.setTimeout) {
- setTimeout(function () {
- begin();
- }, 13);
- } else {
- begin();
- }
- }
-
- function begin() {
- var i,
- l,
- modulesLog = [];
-
- // If the test run hasn't officially begun yet
- if (!config.started) {
-
- // Record the time of the test run's beginning
- config.started = now();
-
- // Delete the loose unnamed module if unused.
- if (config.modules[0].name === "" && config.modules[0].tests.length === 0) {
- config.modules.shift();
- }
-
- // Avoid unnecessary information by not logging modules' test environments
- for (i = 0, l = config.modules.length; i < l; i++) {
- modulesLog.push({
- name: config.modules[i].name,
- tests: config.modules[i].tests
- });
- }
-
- // The test run is officially beginning now
- runLoggingCallbacks("begin", {
- totalTests: Test.count,
- modules: modulesLog
- });
- }
-
- config.blocking = false;
- process(true);
- }
-
- function process(last) {
- function next() {
- process(last);
- }
- var start = now();
- config.depth = (config.depth || 0) + 1;
-
- while (config.queue.length && !config.blocking) {
- if (!defined.setTimeout || config.updateRate <= 0 || now() - start < config.updateRate) {
- if (config.current) {
-
- // Reset async tracking for each phase of the Test lifecycle
- config.current.usedAsync = false;
- }
- config.queue.shift()();
- } else {
- setTimeout(next, 13);
- break;
- }
- }
- config.depth--;
- if (last && !config.blocking && !config.queue.length && config.depth === 0) {
- done();
- }
- }
-
- function done() {
- var runtime,
- passed,
- i,
- key,
- storage = config.storage;
-
- internalState.autorun = true;
-
- runtime = now() - config.started;
- passed = config.stats.all - config.stats.bad;
-
- runLoggingCallbacks("done", {
- failed: config.stats.bad,
- passed: passed,
- total: config.stats.all,
- runtime: runtime
- });
-
- // Clear own storage items if all tests passed
- if (storage && config.stats.bad === 0) {
- for (i = storage.length - 1; i >= 0; i--) {
- key = storage.key(i);
- if (key.indexOf("qunit-test-") === 0) {
- storage.removeItem(key);
- }
- }
- }
- }
-
- function setHook(module, hookName) {
- if (module.testEnvironment === undefined) {
- module.testEnvironment = {};
- }
-
- return function (callback) {
- module.testEnvironment[hookName] = callback;
- };
- }
-
- exportQUnit(QUnit);
-
- (function () {
-
- if (typeof window === "undefined" || typeof document === "undefined") {
- return;
- }
-
- var config = QUnit.config,
- hasOwn = Object.prototype.hasOwnProperty;
-
- // Stores fixture HTML for resetting later
- function storeFixture() {
-
- // Avoid overwriting user-defined values
- if (hasOwn.call(config, "fixture")) {
- return;
- }
-
- var fixture = document.getElementById("qunit-fixture");
- if (fixture) {
- config.fixture = fixture.innerHTML;
- }
- }
-
- QUnit.begin(storeFixture);
-
- // Resets the fixture DOM element if available.
- function resetFixture() {
- if (config.fixture == null) {
- return;
- }
-
- var fixture = document.getElementById("qunit-fixture");
- if (fixture) {
- fixture.innerHTML = config.fixture;
- }
- }
-
- QUnit.testStart(resetFixture);
- })();
-
- (function () {
-
- // Only interact with URLs via window.location
- var location = typeof window !== "undefined" && window.location;
- if (!location) {
- return;
- }
-
- var urlParams = getUrlParams();
-
- QUnit.urlParams = urlParams;
-
- // Match module/test by inclusion in an array
- QUnit.config.moduleId = [].concat(urlParams.moduleId || []);
- QUnit.config.testId = [].concat(urlParams.testId || []);
-
- // Exact case-insensitive match of the module name
- QUnit.config.module = urlParams.module;
-
- // Regular expression or case-insenstive substring match against "moduleName: testName"
- QUnit.config.filter = urlParams.filter;
-
- // Test order randomization
- if (urlParams.seed === true) {
-
- // Generate a random seed if the option is specified without a value
- QUnit.config.seed = Math.random().toString(36).slice(2);
- } else if (urlParams.seed) {
- QUnit.config.seed = urlParams.seed;
- }
-
- // Add URL-parameter-mapped config values with UI form rendering data
- QUnit.config.urlConfig.push({
- id: "hidepassed",
- label: "Hide passed tests",
- tooltip: "Only show tests and assertions that fail. Stored as query-strings."
- }, {
- id: "noglobals",
- label: "Check for Globals",
- tooltip: "Enabling this will test if any test introduces new properties on the " + "global object (`window` in Browsers). Stored as query-strings."
- }, {
- id: "notrycatch",
- label: "No try-catch",
- tooltip: "Enabling this will run tests outside of a try-catch block. Makes debugging " + "exceptions in IE reasonable. Stored as query-strings."
- });
-
- QUnit.begin(function () {
- var i,
- option,
- urlConfig = QUnit.config.urlConfig;
-
- for (i = 0; i < urlConfig.length; i++) {
-
- // Options can be either strings or objects with nonempty "id" properties
- option = QUnit.config.urlConfig[i];
- if (typeof option !== "string") {
- option = option.id;
- }
-
- if (QUnit.config[option] === undefined) {
- QUnit.config[option] = urlParams[option];
- }
- }
- });
-
- function getUrlParams() {
- var i, param, name, value;
- var urlParams = Object.create(null);
- var params = location.search.slice(1).split("&");
- var length = params.length;
-
- for (i = 0; i < length; i++) {
- if (params[i]) {
- param = params[i].split("=");
- name = decodeQueryParam(param[0]);
-
- // Allow just a key to turn on a flag, e.g., test.html?noglobals
- value = param.length === 1 || decodeQueryParam(param.slice(1).join("="));
- if (name in urlParams) {
- urlParams[name] = [].concat(urlParams[name], value);
- } else {
- urlParams[name] = value;
- }
- }
- }
-
- return urlParams;
- }
-
- function decodeQueryParam(param) {
- return decodeURIComponent(param.replace(/\+/g, "%20"));
- }
- })();
-
- // Escape text for attribute or text content.
- function escapeText(s) {
- if (!s) {
- return "";
- }
- s = s + "";
-
- // Both single quotes and double quotes (for attributes)
- return s.replace(/['"<>&]/g, function (s) {
- switch (s) {
- case "'":
- return "&#039;";
- case "\"":
- return "&quot;";
- case "<":
- return "&lt;";
- case ">":
- return "&gt;";
- case "&":
- return "&amp;";
- }
- });
- }
-
- (function () {
-
- // Don't load the HTML Reporter on non-browser environments
- if (typeof window === "undefined" || !window.document) {
- return;
- }
-
- var config = QUnit.config,
- document$$1 = window.document,
- collapseNext = false,
- hasOwn = Object.prototype.hasOwnProperty,
- unfilteredUrl = setUrl({ filter: undefined, module: undefined,
- moduleId: undefined, testId: undefined }),
- modulesList = [];
-
- function addEvent(elem, type, fn) {
- elem.addEventListener(type, fn, false);
- }
-
- function removeEvent(elem, type, fn) {
- elem.removeEventListener(type, fn, false);
- }
-
- function addEvents(elems, type, fn) {
- var i = elems.length;
- while (i--) {
- addEvent(elems[i], type, fn);
- }
- }
-
- function hasClass(elem, name) {
- return (" " + elem.className + " ").indexOf(" " + name + " ") >= 0;
- }
-
- function addClass(elem, name) {
- if (!hasClass(elem, name)) {
- elem.className += (elem.className ? " " : "") + name;
- }
- }
-
- function toggleClass(elem, name, force) {
- if (force || typeof force === "undefined" && !hasClass(elem, name)) {
- addClass(elem, name);
- } else {
- removeClass(elem, name);
- }
- }
-
- function removeClass(elem, name) {
- var set = " " + elem.className + " ";
-
- // Class name may appear multiple times
- while (set.indexOf(" " + name + " ") >= 0) {
- set = set.replace(" " + name + " ", " ");
- }
-
- // Trim for prettiness
- elem.className = typeof set.trim === "function" ? set.trim() : set.replace(/^\s+|\s+$/g, "");
- }
-
- function id(name) {
- return document$$1.getElementById && document$$1.getElementById(name);
- }
-
- function abortTests() {
- var abortButton = id("qunit-abort-tests-button");
- if (abortButton) {
- abortButton.disabled = true;
- abortButton.innerHTML = "Aborting...";
- }
- QUnit.config.queue.length = 0;
- return false;
- }
-
- function interceptNavigation(ev) {
- applyUrlParams();
-
- if (ev && ev.preventDefault) {
- ev.preventDefault();
- }
-
- return false;
- }
-
- function getUrlConfigHtml() {
- var i,
- j,
- val,
- escaped,
- escapedTooltip,
- selection = false,
- urlConfig = config.urlConfig,
- urlConfigHtml = "";
-
- for (i = 0; i < urlConfig.length; i++) {
-
- // Options can be either strings or objects with nonempty "id" properties
- val = config.urlConfig[i];
- if (typeof val === "string") {
- val = {
- id: val,
- label: val
- };
- }
-
- escaped = escapeText(val.id);
- escapedTooltip = escapeText(val.tooltip);
-
- if (!val.value || typeof val.value === "string") {
- urlConfigHtml += "<label for='qunit-urlconfig-" + escaped + "' title='" + escapedTooltip + "'><input id='qunit-urlconfig-" + escaped + "' name='" + escaped + "' type='checkbox'" + (val.value ? " value='" + escapeText(val.value) + "'" : "") + (config[val.id] ? " checked='checked'" : "") + " title='" + escapedTooltip + "' />" + escapeText(val.label) + "</label>";
- } else {
- urlConfigHtml += "<label for='qunit-urlconfig-" + escaped + "' title='" + escapedTooltip + "'>" + val.label + ": </label><select id='qunit-urlconfig-" + escaped + "' name='" + escaped + "' title='" + escapedTooltip + "'><option></option>";
-
- if (QUnit.is("array", val.value)) {
- for (j = 0; j < val.value.length; j++) {
- escaped = escapeText(val.value[j]);
- urlConfigHtml += "<option value='" + escaped + "'" + (config[val.id] === val.value[j] ? (selection = true) && " selected='selected'" : "") + ">" + escaped + "</option>";
- }
- } else {
- for (j in val.value) {
- if (hasOwn.call(val.value, j)) {
- urlConfigHtml += "<option value='" + escapeText(j) + "'" + (config[val.id] === j ? (selection = true) && " selected='selected'" : "") + ">" + escapeText(val.value[j]) + "</option>";
- }
- }
- }
- if (config[val.id] && !selection) {
- escaped = escapeText(config[val.id]);
- urlConfigHtml += "<option value='" + escaped + "' selected='selected' disabled='disabled'>" + escaped + "</option>";
- }
- urlConfigHtml += "</select>";
- }
- }
-
- return urlConfigHtml;
- }
-
- // Handle "click" events on toolbar checkboxes and "change" for select menus.
- // Updates the URL with the new state of `config.urlConfig` values.
- function toolbarChanged() {
- var updatedUrl,
- value,
- tests,
- field = this,
- params = {};
-
- // Detect if field is a select menu or a checkbox
- if ("selectedIndex" in field) {
- value = field.options[field.selectedIndex].value || undefined;
- } else {
- value = field.checked ? field.defaultValue || true : undefined;
- }
-
- params[field.name] = value;
- updatedUrl = setUrl(params);
-
- // Check if we can apply the change without a page refresh
- if ("hidepassed" === field.name && "replaceState" in window.history) {
- QUnit.urlParams[field.name] = value;
- config[field.name] = value || false;
- tests = id("qunit-tests");
- if (tests) {
- toggleClass(tests, "hidepass", value || false);
- }
- window.history.replaceState(null, "", updatedUrl);
- } else {
- window.location = updatedUrl;
- }
- }
-
- function setUrl(params) {
- var key,
- arrValue,
- i,
- querystring = "?",
- location = window.location;
-
- params = QUnit.extend(QUnit.extend({}, QUnit.urlParams), params);
-
- for (key in params) {
-
- // Skip inherited or undefined properties
- if (hasOwn.call(params, key) && params[key] !== undefined) {
-
- // Output a parameter for each value of this key (but usually just one)
- arrValue = [].concat(params[key]);
- for (i = 0; i < arrValue.length; i++) {
- querystring += encodeURIComponent(key);
- if (arrValue[i] !== true) {
- querystring += "=" + encodeURIComponent(arrValue[i]);
- }
- querystring += "&";
- }
- }
- }
- return location.protocol + "//" + location.host + location.pathname + querystring.slice(0, -1);
- }
-
- function applyUrlParams() {
- var i,
- selectedModules = [],
- modulesList = id("qunit-modulefilter-dropdown-list").getElementsByTagName("input"),
- filter = id("qunit-filter-input").value;
-
- for (i = 0; i < modulesList.length; i++) {
- if (modulesList[i].checked) {
- selectedModules.push(modulesList[i].value);
- }
- }
-
- window.location = setUrl({
- filter: filter === "" ? undefined : filter,
- moduleId: selectedModules.length === 0 ? undefined : selectedModules,
-
- // Remove module and testId filter
- module: undefined,
- testId: undefined
- });
- }
-
- function toolbarUrlConfigContainer() {
- var urlConfigContainer = document$$1.createElement("span");
-
- urlConfigContainer.innerHTML = getUrlConfigHtml();
- addClass(urlConfigContainer, "qunit-url-config");
-
- addEvents(urlConfigContainer.getElementsByTagName("input"), "change", toolbarChanged);
- addEvents(urlConfigContainer.getElementsByTagName("select"), "change", toolbarChanged);
-
- return urlConfigContainer;
- }
-
- function abortTestsButton() {
- var button = document$$1.createElement("button");
- button.id = "qunit-abort-tests-button";
- button.innerHTML = "Abort";
- addEvent(button, "click", abortTests);
- return button;
- }
-
- function toolbarLooseFilter() {
- var filter = document$$1.createElement("form"),
- label = document$$1.createElement("label"),
- input = document$$1.createElement("input"),
- button = document$$1.createElement("button");
-
- addClass(filter, "qunit-filter");
-
- label.innerHTML = "Filter: ";
-
- input.type = "text";
- input.value = config.filter || "";
- input.name = "filter";
- input.id = "qunit-filter-input";
-
- button.innerHTML = "Go";
-
- label.appendChild(input);
-
- filter.appendChild(label);
- filter.appendChild(document$$1.createTextNode(" "));
- filter.appendChild(button);
- addEvent(filter, "submit", interceptNavigation);
-
- return filter;
- }
-
- function moduleListHtml() {
- var i,
- checked,
- html = "";
-
- for (i = 0; i < config.modules.length; i++) {
- if (config.modules[i].name !== "") {
- checked = config.moduleId.indexOf(config.modules[i].moduleId) > -1;
- html += "<li><label class='clickable" + (checked ? " checked" : "") + "'><input type='checkbox' " + "value='" + config.modules[i].moduleId + "'" + (checked ? " checked='checked'" : "") + " />" + escapeText(config.modules[i].name) + "</label></li>";
- }
- }
-
- return html;
- }
-
- function toolbarModuleFilter() {
- var allCheckbox,
- commit,
- reset,
- moduleFilter = document$$1.createElement("form"),
- label = document$$1.createElement("label"),
- moduleSearch = document$$1.createElement("input"),
- dropDown = document$$1.createElement("div"),
- actions = document$$1.createElement("span"),
- dropDownList = document$$1.createElement("ul"),
- dirty = false;
-
- moduleSearch.id = "qunit-modulefilter-search";
- addEvent(moduleSearch, "input", searchInput);
- addEvent(moduleSearch, "input", searchFocus);
- addEvent(moduleSearch, "focus", searchFocus);
- addEvent(moduleSearch, "click", searchFocus);
-
- label.id = "qunit-modulefilter-search-container";
- label.innerHTML = "Module: ";
- label.appendChild(moduleSearch);
-
- actions.id = "qunit-modulefilter-actions";
- actions.innerHTML = "<button style='display:none'>Apply</button>" + "<button type='reset' style='display:none'>Reset</button>" + "<label class='clickable" + (config.moduleId.length ? "" : " checked") + "'><input type='checkbox'" + (config.moduleId.length ? "" : " checked='checked'") + ">All modules</label>";
- allCheckbox = actions.lastChild.firstChild;
- commit = actions.firstChild;
- reset = commit.nextSibling;
- addEvent(commit, "click", applyUrlParams);
-
- dropDownList.id = "qunit-modulefilter-dropdown-list";
- dropDownList.innerHTML = moduleListHtml();
-
- dropDown.id = "qunit-modulefilter-dropdown";
- dropDown.style.display = "none";
- dropDown.appendChild(actions);
- dropDown.appendChild(dropDownList);
- addEvent(dropDown, "change", selectionChange);
- selectionChange();
-
- moduleFilter.id = "qunit-modulefilter";
- moduleFilter.appendChild(label);
- moduleFilter.appendChild(dropDown);
- addEvent(moduleFilter, "submit", interceptNavigation);
- addEvent(moduleFilter, "reset", function () {
-
- // Let the reset happen, then update styles
- window.setTimeout(selectionChange);
- });
-
- // Enables show/hide for the dropdown
- function searchFocus() {
- if (dropDown.style.display !== "none") {
- return;
- }
-
- dropDown.style.display = "block";
- addEvent(document$$1, "click", hideHandler);
- addEvent(document$$1, "keydown", hideHandler);
-
- // Hide on Escape keydown or outside-container click
- function hideHandler(e) {
- var inContainer = moduleFilter.contains(e.target);
-
- if (e.keyCode === 27 || !inContainer) {
- if (e.keyCode === 27 && inContainer) {
- moduleSearch.focus();
- }
- dropDown.style.display = "none";
- removeEvent(document$$1, "click", hideHandler);
- removeEvent(document$$1, "keydown", hideHandler);
- moduleSearch.value = "";
- searchInput();
- }
- }
- }
-
- // Processes module search box input
- function searchInput() {
- var i,
- item,
- searchText = moduleSearch.value.toLowerCase(),
- listItems = dropDownList.children;
-
- for (i = 0; i < listItems.length; i++) {
- item = listItems[i];
- if (!searchText || item.textContent.toLowerCase().indexOf(searchText) > -1) {
- item.style.display = "";
- } else {
- item.style.display = "none";
- }
- }
- }
-
- // Processes selection changes
- function selectionChange(evt) {
- var i,
- item,
- checkbox = evt && evt.target || allCheckbox,
- modulesList = dropDownList.getElementsByTagName("input"),
- selectedNames = [];
-
- toggleClass(checkbox.parentNode, "checked", checkbox.checked);
-
- dirty = false;
- if (checkbox.checked && checkbox !== allCheckbox) {
- allCheckbox.checked = false;
- removeClass(allCheckbox.parentNode, "checked");
- }
- for (i = 0; i < modulesList.length; i++) {
- item = modulesList[i];
- if (!evt) {
- toggleClass(item.parentNode, "checked", item.checked);
- } else if (checkbox === allCheckbox && checkbox.checked) {
- item.checked = false;
- removeClass(item.parentNode, "checked");
- }
- dirty = dirty || item.checked !== item.defaultChecked;
- if (item.checked) {
- selectedNames.push(item.parentNode.textContent);
- }
- }
-
- commit.style.display = reset.style.display = dirty ? "" : "none";
- moduleSearch.placeholder = selectedNames.join(", ") || allCheckbox.parentNode.textContent;
- moduleSearch.title = "Type to filter list. Current selection:\n" + (selectedNames.join("\n") || allCheckbox.parentNode.textContent);
- }
-
- return moduleFilter;
- }
-
- function appendToolbar() {
- var toolbar = id("qunit-testrunner-toolbar");
-
- if (toolbar) {
- toolbar.appendChild(toolbarUrlConfigContainer());
- toolbar.appendChild(toolbarModuleFilter());
- toolbar.appendChild(toolbarLooseFilter());
- toolbar.appendChild(document$$1.createElement("div")).className = "clearfix";
- }
- }
-
- function appendHeader() {
- var header = id("qunit-header");
-
- if (header) {
- header.innerHTML = "<a href='" + escapeText(unfilteredUrl) + "'>" + header.innerHTML + "</a> ";
- }
- }
-
- function appendBanner() {
- var banner = id("qunit-banner");
-
- if (banner) {
- banner.className = "";
- }
- }
-
- function appendTestResults() {
- var tests = id("qunit-tests"),
- result = id("qunit-testresult"),
- controls;
-
- if (result) {
- result.parentNode.removeChild(result);
- }
-
- if (tests) {
- tests.innerHTML = "";
- result = document$$1.createElement("p");
- result.id = "qunit-testresult";
- result.className = "result";
- tests.parentNode.insertBefore(result, tests);
- result.innerHTML = "<div id=\"qunit-testresult-display\">Running...<br />&#160;</div>" + "<div id=\"qunit-testresult-controls\"></div>" + "<div class=\"clearfix\"></div>";
- controls = id("qunit-testresult-controls");
- }
-
- if (controls) {
- controls.appendChild(abortTestsButton());
- }
- }
-
- function appendFilteredTest() {
- var testId = QUnit.config.testId;
- if (!testId || testId.length <= 0) {
- return "";
- }
- return "<div id='qunit-filteredTest'>Rerunning selected tests: " + escapeText(testId.join(", ")) + " <a id='qunit-clearFilter' href='" + escapeText(unfilteredUrl) + "'>Run all tests</a></div>";
- }
-
- function appendUserAgent() {
- var userAgent = id("qunit-userAgent");
-
- if (userAgent) {
- userAgent.innerHTML = "";
- userAgent.appendChild(document$$1.createTextNode("QUnit " + QUnit.version + "; " + navigator.userAgent));
- }
- }
-
- function appendInterface() {
- var qunit = id("qunit");
-
- if (qunit) {
- qunit.innerHTML = "<h1 id='qunit-header'>" + escapeText(document$$1.title) + "</h1>" + "<h2 id='qunit-banner'></h2>" + "<div id='qunit-testrunner-toolbar'></div>" + appendFilteredTest() + "<h2 id='qunit-userAgent'></h2>" + "<ol id='qunit-tests'></ol>";
- }
-
- appendHeader();
- appendBanner();
- appendTestResults();
- appendUserAgent();
- appendToolbar();
- }
-
- function appendTestsList(modules) {
- var i, l, x, z, test, moduleObj;
-
- for (i = 0, l = modules.length; i < l; i++) {
- moduleObj = modules[i];
-
- for (x = 0, z = moduleObj.tests.length; x < z; x++) {
- test = moduleObj.tests[x];
-
- appendTest(test.name, test.testId, moduleObj.name);
- }
- }
- }
-
- function appendTest(name, testId, moduleName) {
- var title,
- rerunTrigger,
- testBlock,
- assertList,
- tests = id("qunit-tests");
-
- if (!tests) {
- return;
- }
-
- title = document$$1.createElement("strong");
- title.innerHTML = getNameHtml(name, moduleName);
-
- rerunTrigger = document$$1.createElement("a");
- rerunTrigger.innerHTML = "Rerun";
- rerunTrigger.href = setUrl({ testId: testId });
-
- testBlock = document$$1.createElement("li");
- testBlock.appendChild(title);
- testBlock.appendChild(rerunTrigger);
- testBlock.id = "qunit-test-output-" + testId;
-
- assertList = document$$1.createElement("ol");
- assertList.className = "qunit-assert-list";
-
- testBlock.appendChild(assertList);
-
- tests.appendChild(testBlock);
- }
-
- // HTML Reporter initialization and load
- QUnit.begin(function (details) {
- var i, moduleObj, tests;
-
- // Sort modules by name for the picker
- for (i = 0; i < details.modules.length; i++) {
- moduleObj = details.modules[i];
- if (moduleObj.name) {
- modulesList.push(moduleObj.name);
- }
- }
- modulesList.sort(function (a, b) {
- return a.localeCompare(b);
- });
-
- // Initialize QUnit elements
- appendInterface();
- appendTestsList(details.modules);
- tests = id("qunit-tests");
- if (tests && config.hidepassed) {
- addClass(tests, "hidepass");
- }
- });
-
- QUnit.done(function (details) {
- var banner = id("qunit-banner"),
- tests = id("qunit-tests"),
- abortButton = id("qunit-abort-tests-button"),
- html = ["Tests completed in ", details.runtime, " milliseconds.<br />", "<span class='passed'>", details.passed, "</span> assertions of <span class='total'>", details.total, "</span> passed, <span class='failed'>", details.failed, "</span> failed."].join(""),
- test,
- assertLi,
- assertList;
-
- // Update remaing tests to aborted
- if (abortButton && abortButton.disabled) {
- html = "Tests aborted after " + details.runtime + " milliseconds.";
-
- for (var i = 0; i < tests.children.length; i++) {
- test = tests.children[i];
- if (test.className === "" || test.className === "running") {
- test.className = "aborted";
- assertList = test.getElementsByTagName("ol")[0];
- assertLi = document$$1.createElement("li");
- assertLi.className = "fail";
- assertLi.innerHTML = "Test aborted.";
- assertList.appendChild(assertLi);
- }
- }
- }
-
- if (banner && (!abortButton || abortButton.disabled === false)) {
- banner.className = details.failed ? "qunit-fail" : "qunit-pass";
- }
-
- if (abortButton) {
- abortButton.parentNode.removeChild(abortButton);
- }
-
- if (tests) {
- id("qunit-testresult-display").innerHTML = html;
- }
-
- if (config.altertitle && document$$1.title) {
-
- // Show ✖ for good, ✔ for bad suite result in title
- // use escape sequences in case file gets loaded with non-utf-8-charset
- document$$1.title = [details.failed ? "\u2716" : "\u2714", document$$1.title.replace(/^[\u2714\u2716] /i, "")].join(" ");
- }
-
- // Scroll back to top to show results
- if (config.scrolltop && window.scrollTo) {
- window.scrollTo(0, 0);
- }
- });
-
- function getNameHtml(name, module) {
- var nameHtml = "";
-
- if (module) {
- nameHtml = "<span class='module-name'>" + escapeText(module) + "</span>: ";
- }
-
- nameHtml += "<span class='test-name'>" + escapeText(name) + "</span>";
-
- return nameHtml;
- }
-
- QUnit.testStart(function (details) {
- var running, testBlock, bad;
-
- testBlock = id("qunit-test-output-" + details.testId);
- if (testBlock) {
- testBlock.className = "running";
- } else {
-
- // Report later registered tests
- appendTest(details.name, details.testId, details.module);
- }
-
- running = id("qunit-testresult-display");
- if (running) {
- bad = QUnit.config.reorder && details.previousFailure;
-
- running.innerHTML = (bad ? "Rerunning previously failed test: <br />" : "Running: <br />") + getNameHtml(details.name, details.module);
- }
- });
-
- function stripHtml(string) {
-
- // Strip tags, html entity and whitespaces
- return string.replace(/<\/?[^>]+(>|$)/g, "").replace(/\&quot;/g, "").replace(/\s+/g, "");
- }
-
- QUnit.log(function (details) {
- var assertList,
- assertLi,
- message,
- expected,
- actual,
- diff,
- showDiff = false,
- testItem = id("qunit-test-output-" + details.testId);
-
- if (!testItem) {
- return;
- }
-
- message = escapeText(details.message) || (details.result ? "okay" : "failed");
- message = "<span class='test-message'>" + message + "</span>";
- message += "<span class='runtime'>@ " + details.runtime + " ms</span>";
-
- // The pushFailure doesn't provide details.expected
- // when it calls, it's implicit to also not show expected and diff stuff
- // Also, we need to check details.expected existence, as it can exist and be undefined
- if (!details.result && hasOwn.call(details, "expected")) {
- if (details.negative) {
- expected = "NOT " + QUnit.dump.parse(details.expected);
- } else {
- expected = QUnit.dump.parse(details.expected);
- }
-
- actual = QUnit.dump.parse(details.actual);
- message += "<table><tr class='test-expected'><th>Expected: </th><td><pre>" + escapeText(expected) + "</pre></td></tr>";
-
- if (actual !== expected) {
-
- message += "<tr class='test-actual'><th>Result: </th><td><pre>" + escapeText(actual) + "</pre></td></tr>";
-
- // Don't show diff if actual or expected are booleans
- if (!/^(true|false)$/.test(actual) && !/^(true|false)$/.test(expected)) {
- diff = QUnit.diff(expected, actual);
- showDiff = stripHtml(diff).length !== stripHtml(expected).length + stripHtml(actual).length;
- }
-
- // Don't show diff if expected and actual are totally different
- if (showDiff) {
- message += "<tr class='test-diff'><th>Diff: </th><td><pre>" + diff + "</pre></td></tr>";
- }
- } else if (expected.indexOf("[object Array]") !== -1 || expected.indexOf("[object Object]") !== -1) {
- message += "<tr class='test-message'><th>Message: </th><td>" + "Diff suppressed as the depth of object is more than current max depth (" + QUnit.config.maxDepth + ").<p>Hint: Use <code>QUnit.dump.maxDepth</code> to " + " run with a higher max depth or <a href='" + escapeText(setUrl({ maxDepth: -1 })) + "'>" + "Rerun</a> without max depth.</p></td></tr>";
- } else {
- message += "<tr class='test-message'><th>Message: </th><td>" + "Diff suppressed as the expected and actual results have an equivalent" + " serialization</td></tr>";
- }
-
- if (details.source) {
- message += "<tr class='test-source'><th>Source: </th><td><pre>" + escapeText(details.source) + "</pre></td></tr>";
- }
-
- message += "</table>";
-
- // This occurs when pushFailure is set and we have an extracted stack trace
- } else if (!details.result && details.source) {
- message += "<table>" + "<tr class='test-source'><th>Source: </th><td><pre>" + escapeText(details.source) + "</pre></td></tr>" + "</table>";
- }
-
- assertList = testItem.getElementsByTagName("ol")[0];
-
- assertLi = document$$1.createElement("li");
- assertLi.className = details.result ? "pass" : "fail";
- assertLi.innerHTML = message;
- assertList.appendChild(assertLi);
- });
-
- QUnit.testDone(function (details) {
- var testTitle,
- time,
- testItem,
- assertList,
- good,
- bad,
- testCounts,
- skipped,
- sourceName,
- tests = id("qunit-tests");
-
- if (!tests) {
- return;
- }
-
- testItem = id("qunit-test-output-" + details.testId);
-
- assertList = testItem.getElementsByTagName("ol")[0];
-
- good = details.passed;
- bad = details.failed;
-
- if (bad === 0) {
-
- // Collapse the passing tests
- addClass(assertList, "qunit-collapsed");
- } else if (config.collapse) {
- if (!collapseNext) {
-
- // Skip collapsing the first failing test
- collapseNext = true;
- } else {
-
- // Collapse remaining tests
- addClass(assertList, "qunit-collapsed");
- }
- }
-
- // The testItem.firstChild is the test name
- testTitle = testItem.firstChild;
-
- testCounts = bad ? "<b class='failed'>" + bad + "</b>, " + "<b class='passed'>" + good + "</b>, " : "";
-
- testTitle.innerHTML += " <b class='counts'>(" + testCounts + details.assertions.length + ")</b>";
-
- if (details.skipped) {
- testItem.className = "skipped";
- skipped = document$$1.createElement("em");
- skipped.className = "qunit-skipped-label";
- skipped.innerHTML = "skipped";
- testItem.insertBefore(skipped, testTitle);
- } else {
- addEvent(testTitle, "click", function () {
- toggleClass(assertList, "qunit-collapsed");
- });
-
- testItem.className = bad ? "fail" : "pass";
-
- time = document$$1.createElement("span");
- time.className = "runtime";
- time.innerHTML = details.runtime + " ms";
- testItem.insertBefore(time, assertList);
- }
-
- // Show the source of the test when showing assertions
- if (details.source) {
- sourceName = document$$1.createElement("p");
- sourceName.innerHTML = "<strong>Source: </strong>" + details.source;
- addClass(sourceName, "qunit-source");
- if (bad === 0) {
- addClass(sourceName, "qunit-collapsed");
- }
- addEvent(testTitle, "click", function () {
- toggleClass(sourceName, "qunit-collapsed");
- });
- testItem.appendChild(sourceName);
- }
- });
-
- // Avoid readyState issue with phantomjs
- // Ref: #818
- var notPhantom = function (p) {
- return !(p && p.version && p.version.major > 0);
- }(window.phantom);
-
- if (notPhantom && document$$1.readyState === "complete") {
- QUnit.load();
- } else {
- addEvent(window, "load", QUnit.load);
- }
- })();
-
- /*
- * This file is a modified version of google-diff-match-patch's JavaScript implementation
- * (https://code.google.com/p/google-diff-match-patch/source/browse/trunk/javascript/diff_match_patch_uncompressed.js),
- * modifications are licensed as more fully set forth in LICENSE.txt.
- *
- * The original source of google-diff-match-patch is attributable and licensed as follows:
- *
- * Copyright 2006 Google Inc.
- * https://code.google.com/p/google-diff-match-patch/
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * More Info:
- * https://code.google.com/p/google-diff-match-patch/
- *
- * Usage: QUnit.diff(expected, actual)
- *
- */
- QUnit.diff = function () {
- function DiffMatchPatch() {}
-
- // DIFF FUNCTIONS
-
- /**
- * The data structure representing a diff is an array of tuples:
- * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]
- * which means: delete 'Hello', add 'Goodbye' and keep ' world.'
- */
- var DIFF_DELETE = -1,
- DIFF_INSERT = 1,
- DIFF_EQUAL = 0;
-
- /**
- * Find the differences between two texts. Simplifies the problem by stripping
- * any common prefix or suffix off the texts before diffing.
- * @param {string} text1 Old string to be diffed.
- * @param {string} text2 New string to be diffed.
- * @param {boolean=} optChecklines Optional speedup flag. If present and false,
- * then don't run a line-level diff first to identify the changed areas.
- * Defaults to true, which does a faster, slightly less optimal diff.
- * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
- */
- DiffMatchPatch.prototype.DiffMain = function (text1, text2, optChecklines) {
- var deadline, checklines, commonlength, commonprefix, commonsuffix, diffs;
-
- // The diff must be complete in up to 1 second.
- deadline = new Date().getTime() + 1000;
-
- // Check for null inputs.
- if (text1 === null || text2 === null) {
- throw new Error("Null input. (DiffMain)");
- }
-
- // Check for equality (speedup).
- if (text1 === text2) {
- if (text1) {
- return [[DIFF_EQUAL, text1]];
- }
- return [];
- }
-
- if (typeof optChecklines === "undefined") {
- optChecklines = true;
- }
-
- checklines = optChecklines;
-
- // Trim off common prefix (speedup).
- commonlength = this.diffCommonPrefix(text1, text2);
- commonprefix = text1.substring(0, commonlength);
- text1 = text1.substring(commonlength);
- text2 = text2.substring(commonlength);
-
- // Trim off common suffix (speedup).
- commonlength = this.diffCommonSuffix(text1, text2);
- commonsuffix = text1.substring(text1.length - commonlength);
- text1 = text1.substring(0, text1.length - commonlength);
- text2 = text2.substring(0, text2.length - commonlength);
-
- // Compute the diff on the middle block.
- diffs = this.diffCompute(text1, text2, checklines, deadline);
-
- // Restore the prefix and suffix.
- if (commonprefix) {
- diffs.unshift([DIFF_EQUAL, commonprefix]);
- }
- if (commonsuffix) {
- diffs.push([DIFF_EQUAL, commonsuffix]);
- }
- this.diffCleanupMerge(diffs);
- return diffs;
- };
-
- /**
- * Reduce the number of edits by eliminating operationally trivial equalities.
- * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
- */
- DiffMatchPatch.prototype.diffCleanupEfficiency = function (diffs) {
- var changes, equalities, equalitiesLength, lastequality, pointer, preIns, preDel, postIns, postDel;
- changes = false;
- equalities = []; // Stack of indices where equalities are found.
- equalitiesLength = 0; // Keeping our own length var is faster in JS.
- /** @type {?string} */
- lastequality = null;
-
- // Always equal to diffs[equalities[equalitiesLength - 1]][1]
- pointer = 0; // Index of current position.
-
- // Is there an insertion operation before the last equality.
- preIns = false;
-
- // Is there a deletion operation before the last equality.
- preDel = false;
-
- // Is there an insertion operation after the last equality.
- postIns = false;
-
- // Is there a deletion operation after the last equality.
- postDel = false;
- while (pointer < diffs.length) {
-
- // Equality found.
- if (diffs[pointer][0] === DIFF_EQUAL) {
- if (diffs[pointer][1].length < 4 && (postIns || postDel)) {
-
- // Candidate found.
- equalities[equalitiesLength++] = pointer;
- preIns = postIns;
- preDel = postDel;
- lastequality = diffs[pointer][1];
- } else {
-
- // Not a candidate, and can never become one.
- equalitiesLength = 0;
- lastequality = null;
- }
- postIns = postDel = false;
-
- // An insertion or deletion.
- } else {
-
- if (diffs[pointer][0] === DIFF_DELETE) {
- postDel = true;
- } else {
- postIns = true;
- }
-
- /*
- * Five types to be split:
- * <ins>A</ins><del>B</del>XY<ins>C</ins><del>D</del>
- * <ins>A</ins>X<ins>C</ins><del>D</del>
- * <ins>A</ins><del>B</del>X<ins>C</ins>
- * <ins>A</del>X<ins>C</ins><del>D</del>
- * <ins>A</ins><del>B</del>X<del>C</del>
- */
- if (lastequality && (preIns && preDel && postIns && postDel || lastequality.length < 2 && preIns + preDel + postIns + postDel === 3)) {
-
- // Duplicate record.
- diffs.splice(equalities[equalitiesLength - 1], 0, [DIFF_DELETE, lastequality]);
-
- // Change second copy to insert.
- diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;
- equalitiesLength--; // Throw away the equality we just deleted;
- lastequality = null;
- if (preIns && preDel) {
-
- // No changes made which could affect previous entry, keep going.
- postIns = postDel = true;
- equalitiesLength = 0;
- } else {
- equalitiesLength--; // Throw away the previous equality.
- pointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1;
- postIns = postDel = false;
- }
- changes = true;
- }
- }
- pointer++;
- }
-
- if (changes) {
- this.diffCleanupMerge(diffs);
- }
- };
-
- /**
- * Convert a diff array into a pretty HTML report.
- * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
- * @param {integer} string to be beautified.
- * @return {string} HTML representation.
- */
- DiffMatchPatch.prototype.diffPrettyHtml = function (diffs) {
- var op,
- data,
- x,
- html = [];
- for (x = 0; x < diffs.length; x++) {
- op = diffs[x][0]; // Operation (insert, delete, equal)
- data = diffs[x][1]; // Text of change.
- switch (op) {
- case DIFF_INSERT:
- html[x] = "<ins>" + escapeText(data) + "</ins>";
- break;
- case DIFF_DELETE:
- html[x] = "<del>" + escapeText(data) + "</del>";
- break;
- case DIFF_EQUAL:
- html[x] = "<span>" + escapeText(data) + "</span>";
- break;
- }
- }
- return html.join("");
- };
-
- /**
- * Determine the common prefix of two strings.
- * @param {string} text1 First string.
- * @param {string} text2 Second string.
- * @return {number} The number of characters common to the start of each
- * string.
- */
- DiffMatchPatch.prototype.diffCommonPrefix = function (text1, text2) {
- var pointermid, pointermax, pointermin, pointerstart;
-
- // Quick check for common null cases.
- if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) {
- return 0;
- }
-
- // Binary search.
- // Performance analysis: https://neil.fraser.name/news/2007/10/09/
- pointermin = 0;
- pointermax = Math.min(text1.length, text2.length);
- pointermid = pointermax;
- pointerstart = 0;
- while (pointermin < pointermid) {
- if (text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid)) {
- pointermin = pointermid;
- pointerstart = pointermin;
- } else {
- pointermax = pointermid;
- }
- pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
- }
- return pointermid;
- };
-
- /**
- * Determine the common suffix of two strings.
- * @param {string} text1 First string.
- * @param {string} text2 Second string.
- * @return {number} The number of characters common to the end of each string.
- */
- DiffMatchPatch.prototype.diffCommonSuffix = function (text1, text2) {
- var pointermid, pointermax, pointermin, pointerend;
-
- // Quick check for common null cases.
- if (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1)) {
- return 0;
- }
-
- // Binary search.
- // Performance analysis: https://neil.fraser.name/news/2007/10/09/
- pointermin = 0;
- pointermax = Math.min(text1.length, text2.length);
- pointermid = pointermax;
- pointerend = 0;
- while (pointermin < pointermid) {
- if (text1.substring(text1.length - pointermid, text1.length - pointerend) === text2.substring(text2.length - pointermid, text2.length - pointerend)) {
- pointermin = pointermid;
- pointerend = pointermin;
- } else {
- pointermax = pointermid;
- }
- pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
- }
- return pointermid;
- };
-
- /**
- * Find the differences between two texts. Assumes that the texts do not
- * have any common prefix or suffix.
- * @param {string} text1 Old string to be diffed.
- * @param {string} text2 New string to be diffed.
- * @param {boolean} checklines Speedup flag. If false, then don't run a
- * line-level diff first to identify the changed areas.
- * If true, then run a faster, slightly less optimal diff.
- * @param {number} deadline Time when the diff should be complete by.
- * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
- * @private
- */
- DiffMatchPatch.prototype.diffCompute = function (text1, text2, checklines, deadline) {
- var diffs, longtext, shorttext, i, hm, text1A, text2A, text1B, text2B, midCommon, diffsA, diffsB;
-
- if (!text1) {
-
- // Just add some text (speedup).
- return [[DIFF_INSERT, text2]];
- }
-
- if (!text2) {
-
- // Just delete some text (speedup).
- return [[DIFF_DELETE, text1]];
- }
-
- longtext = text1.length > text2.length ? text1 : text2;
- shorttext = text1.length > text2.length ? text2 : text1;
- i = longtext.indexOf(shorttext);
- if (i !== -1) {
-
- // Shorter text is inside the longer text (speedup).
- diffs = [[DIFF_INSERT, longtext.substring(0, i)], [DIFF_EQUAL, shorttext], [DIFF_INSERT, longtext.substring(i + shorttext.length)]];
-
- // Swap insertions for deletions if diff is reversed.
- if (text1.length > text2.length) {
- diffs[0][0] = diffs[2][0] = DIFF_DELETE;
- }
- return diffs;
- }
-
- if (shorttext.length === 1) {
-
- // Single character string.
- // After the previous speedup, the character can't be an equality.
- return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
- }
-
- // Check to see if the problem can be split in two.
- hm = this.diffHalfMatch(text1, text2);
- if (hm) {
-
- // A half-match was found, sort out the return data.
- text1A = hm[0];
- text1B = hm[1];
- text2A = hm[2];
- text2B = hm[3];
- midCommon = hm[4];
-
- // Send both pairs off for separate processing.
- diffsA = this.DiffMain(text1A, text2A, checklines, deadline);
- diffsB = this.DiffMain(text1B, text2B, checklines, deadline);
-
- // Merge the results.
- return diffsA.concat([[DIFF_EQUAL, midCommon]], diffsB);
- }
-
- if (checklines && text1.length > 100 && text2.length > 100) {
- return this.diffLineMode(text1, text2, deadline);
- }
-
- return this.diffBisect(text1, text2, deadline);
- };
-
- /**
- * Do the two texts share a substring which is at least half the length of the
- * longer text?
- * This speedup can produce non-minimal diffs.
- * @param {string} text1 First string.
- * @param {string} text2 Second string.
- * @return {Array.<string>} Five element Array, containing the prefix of
- * text1, the suffix of text1, the prefix of text2, the suffix of
- * text2 and the common middle. Or null if there was no match.
- * @private
- */
- DiffMatchPatch.prototype.diffHalfMatch = function (text1, text2) {
- var longtext, shorttext, dmp, text1A, text2B, text2A, text1B, midCommon, hm1, hm2, hm;
-
- longtext = text1.length > text2.length ? text1 : text2;
- shorttext = text1.length > text2.length ? text2 : text1;
- if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {
- return null; // Pointless.
- }
- dmp = this; // 'this' becomes 'window' in a closure.
-
- /**
- * Does a substring of shorttext exist within longtext such that the substring
- * is at least half the length of longtext?
- * Closure, but does not reference any external variables.
- * @param {string} longtext Longer string.
- * @param {string} shorttext Shorter string.
- * @param {number} i Start index of quarter length substring within longtext.
- * @return {Array.<string>} Five element Array, containing the prefix of
- * longtext, the suffix of longtext, the prefix of shorttext, the suffix
- * of shorttext and the common middle. Or null if there was no match.
- * @private
- */
- function diffHalfMatchI(longtext, shorttext, i) {
- var seed, j, bestCommon, prefixLength, suffixLength, bestLongtextA, bestLongtextB, bestShorttextA, bestShorttextB;
-
- // Start with a 1/4 length substring at position i as a seed.
- seed = longtext.substring(i, i + Math.floor(longtext.length / 4));
- j = -1;
- bestCommon = "";
- while ((j = shorttext.indexOf(seed, j + 1)) !== -1) {
- prefixLength = dmp.diffCommonPrefix(longtext.substring(i), shorttext.substring(j));
- suffixLength = dmp.diffCommonSuffix(longtext.substring(0, i), shorttext.substring(0, j));
- if (bestCommon.length < suffixLength + prefixLength) {
- bestCommon = shorttext.substring(j - suffixLength, j) + shorttext.substring(j, j + prefixLength);
- bestLongtextA = longtext.substring(0, i - suffixLength);
- bestLongtextB = longtext.substring(i + prefixLength);
- bestShorttextA = shorttext.substring(0, j - suffixLength);
- bestShorttextB = shorttext.substring(j + prefixLength);
- }
- }
- if (bestCommon.length * 2 >= longtext.length) {
- return [bestLongtextA, bestLongtextB, bestShorttextA, bestShorttextB, bestCommon];
- } else {
- return null;
- }
- }
-
- // First check if the second quarter is the seed for a half-match.
- hm1 = diffHalfMatchI(longtext, shorttext, Math.ceil(longtext.length / 4));
-
- // Check again based on the third quarter.
- hm2 = diffHalfMatchI(longtext, shorttext, Math.ceil(longtext.length / 2));
- if (!hm1 && !hm2) {
- return null;
- } else if (!hm2) {
- hm = hm1;
- } else if (!hm1) {
- hm = hm2;
- } else {
-
- // Both matched. Select the longest.
- hm = hm1[4].length > hm2[4].length ? hm1 : hm2;
- }
-
- // A half-match was found, sort out the return data.
- if (text1.length > text2.length) {
- text1A = hm[0];
- text1B = hm[1];
- text2A = hm[2];
- text2B = hm[3];
- } else {
- text2A = hm[0];
- text2B = hm[1];
- text1A = hm[2];
- text1B = hm[3];
- }
- midCommon = hm[4];
- return [text1A, text1B, text2A, text2B, midCommon];
- };
-
- /**
- * Do a quick line-level diff on both strings, then rediff the parts for
- * greater accuracy.
- * This speedup can produce non-minimal diffs.
- * @param {string} text1 Old string to be diffed.
- * @param {string} text2 New string to be diffed.
- * @param {number} deadline Time when the diff should be complete by.
- * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
- * @private
- */
- DiffMatchPatch.prototype.diffLineMode = function (text1, text2, deadline) {
- var a, diffs, linearray, pointer, countInsert, countDelete, textInsert, textDelete, j;
-
- // Scan the text on a line-by-line basis first.
- a = this.diffLinesToChars(text1, text2);
- text1 = a.chars1;
- text2 = a.chars2;
- linearray = a.lineArray;
-
- diffs = this.DiffMain(text1, text2, false, deadline);
-
- // Convert the diff back to original text.
- this.diffCharsToLines(diffs, linearray);
-
- // Eliminate freak matches (e.g. blank lines)
- this.diffCleanupSemantic(diffs);
-
- // Rediff any replacement blocks, this time character-by-character.
- // Add a dummy entry at the end.
- diffs.push([DIFF_EQUAL, ""]);
- pointer = 0;
- countDelete = 0;
- countInsert = 0;
- textDelete = "";
- textInsert = "";
- while (pointer < diffs.length) {
- switch (diffs[pointer][0]) {
- case DIFF_INSERT:
- countInsert++;
- textInsert += diffs[pointer][1];
- break;
- case DIFF_DELETE:
- countDelete++;
- textDelete += diffs[pointer][1];
- break;
- case DIFF_EQUAL:
-
- // Upon reaching an equality, check for prior redundancies.
- if (countDelete >= 1 && countInsert >= 1) {
-
- // Delete the offending records and add the merged ones.
- diffs.splice(pointer - countDelete - countInsert, countDelete + countInsert);
- pointer = pointer - countDelete - countInsert;
- a = this.DiffMain(textDelete, textInsert, false, deadline);
- for (j = a.length - 1; j >= 0; j--) {
- diffs.splice(pointer, 0, a[j]);
- }
- pointer = pointer + a.length;
- }
- countInsert = 0;
- countDelete = 0;
- textDelete = "";
- textInsert = "";
- break;
- }
- pointer++;
- }
- diffs.pop(); // Remove the dummy entry at the end.
-
- return diffs;
- };
-
- /**
- * Find the 'middle snake' of a diff, split the problem in two
- * and return the recursively constructed diff.
- * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.
- * @param {string} text1 Old string to be diffed.
- * @param {string} text2 New string to be diffed.
- * @param {number} deadline Time at which to bail if not yet complete.
- * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
- * @private
- */
- DiffMatchPatch.prototype.diffBisect = function (text1, text2, deadline) {
- var text1Length, text2Length, maxD, vOffset, vLength, v1, v2, x, delta, front, k1start, k1end, k2start, k2end, k2Offset, k1Offset, x1, x2, y1, y2, d, k1, k2;
-
- // Cache the text lengths to prevent multiple calls.
- text1Length = text1.length;
- text2Length = text2.length;
- maxD = Math.ceil((text1Length + text2Length) / 2);
- vOffset = maxD;
- vLength = 2 * maxD;
- v1 = new Array(vLength);
- v2 = new Array(vLength);
-
- // Setting all elements to -1 is faster in Chrome & Firefox than mixing
- // integers and undefined.
- for (x = 0; x < vLength; x++) {
- v1[x] = -1;
- v2[x] = -1;
- }
- v1[vOffset + 1] = 0;
- v2[vOffset + 1] = 0;
- delta = text1Length - text2Length;
-
- // If the total number of characters is odd, then the front path will collide
- // with the reverse path.
- front = delta % 2 !== 0;
-
- // Offsets for start and end of k loop.
- // Prevents mapping of space beyond the grid.
- k1start = 0;
- k1end = 0;
- k2start = 0;
- k2end = 0;
- for (d = 0; d < maxD; d++) {
-
- // Bail out if deadline is reached.
- if (new Date().getTime() > deadline) {
- break;
- }
-
- // Walk the front path one step.
- for (k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {
- k1Offset = vOffset + k1;
- if (k1 === -d || k1 !== d && v1[k1Offset - 1] < v1[k1Offset + 1]) {
- x1 = v1[k1Offset + 1];
- } else {
- x1 = v1[k1Offset - 1] + 1;
- }
- y1 = x1 - k1;
- while (x1 < text1Length && y1 < text2Length && text1.charAt(x1) === text2.charAt(y1)) {
- x1++;
- y1++;
- }
- v1[k1Offset] = x1;
- if (x1 > text1Length) {
-
- // Ran off the right of the graph.
- k1end += 2;
- } else if (y1 > text2Length) {
-
- // Ran off the bottom of the graph.
- k1start += 2;
- } else if (front) {
- k2Offset = vOffset + delta - k1;
- if (k2Offset >= 0 && k2Offset < vLength && v2[k2Offset] !== -1) {
-
- // Mirror x2 onto top-left coordinate system.
- x2 = text1Length - v2[k2Offset];
- if (x1 >= x2) {
-
- // Overlap detected.
- return this.diffBisectSplit(text1, text2, x1, y1, deadline);
- }
- }
- }
- }
-
- // Walk the reverse path one step.
- for (k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {
- k2Offset = vOffset + k2;
- if (k2 === -d || k2 !== d && v2[k2Offset - 1] < v2[k2Offset + 1]) {
- x2 = v2[k2Offset + 1];
- } else {
- x2 = v2[k2Offset - 1] + 1;
- }
- y2 = x2 - k2;
- while (x2 < text1Length && y2 < text2Length && text1.charAt(text1Length - x2 - 1) === text2.charAt(text2Length - y2 - 1)) {
- x2++;
- y2++;
- }
- v2[k2Offset] = x2;
- if (x2 > text1Length) {
-
- // Ran off the left of the graph.
- k2end += 2;
- } else if (y2 > text2Length) {
-
- // Ran off the top of the graph.
- k2start += 2;
- } else if (!front) {
- k1Offset = vOffset + delta - k2;
- if (k1Offset >= 0 && k1Offset < vLength && v1[k1Offset] !== -1) {
- x1 = v1[k1Offset];
- y1 = vOffset + x1 - k1Offset;
-
- // Mirror x2 onto top-left coordinate system.
- x2 = text1Length - x2;
- if (x1 >= x2) {
-
- // Overlap detected.
- return this.diffBisectSplit(text1, text2, x1, y1, deadline);
- }
- }
- }
- }
- }
-
- // Diff took too long and hit the deadline or
- // number of diffs equals number of characters, no commonality at all.
- return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
- };
-
- /**
- * Given the location of the 'middle snake', split the diff in two parts
- * and recurse.
- * @param {string} text1 Old string to be diffed.
- * @param {string} text2 New string to be diffed.
- * @param {number} x Index of split point in text1.
- * @param {number} y Index of split point in text2.
- * @param {number} deadline Time at which to bail if not yet complete.
- * @return {!Array.<!DiffMatchPatch.Diff>} Array of diff tuples.
- * @private
- */
- DiffMatchPatch.prototype.diffBisectSplit = function (text1, text2, x, y, deadline) {
- var text1a, text1b, text2a, text2b, diffs, diffsb;
- text1a = text1.substring(0, x);
- text2a = text2.substring(0, y);
- text1b = text1.substring(x);
- text2b = text2.substring(y);
-
- // Compute both diffs serially.
- diffs = this.DiffMain(text1a, text2a, false, deadline);
- diffsb = this.DiffMain(text1b, text2b, false, deadline);
-
- return diffs.concat(diffsb);
- };
-
- /**
- * Reduce the number of edits by eliminating semantically trivial equalities.
- * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
- */
- DiffMatchPatch.prototype.diffCleanupSemantic = function (diffs) {
- var changes, equalities, equalitiesLength, lastequality, pointer, lengthInsertions2, lengthDeletions2, lengthInsertions1, lengthDeletions1, deletion, insertion, overlapLength1, overlapLength2;
- changes = false;
- equalities = []; // Stack of indices where equalities are found.
- equalitiesLength = 0; // Keeping our own length var is faster in JS.
- /** @type {?string} */
- lastequality = null;
-
- // Always equal to diffs[equalities[equalitiesLength - 1]][1]
- pointer = 0; // Index of current position.
-
- // Number of characters that changed prior to the equality.
- lengthInsertions1 = 0;
- lengthDeletions1 = 0;
-
- // Number of characters that changed after the equality.
- lengthInsertions2 = 0;
- lengthDeletions2 = 0;
- while (pointer < diffs.length) {
- if (diffs[pointer][0] === DIFF_EQUAL) {
- // Equality found.
- equalities[equalitiesLength++] = pointer;
- lengthInsertions1 = lengthInsertions2;
- lengthDeletions1 = lengthDeletions2;
- lengthInsertions2 = 0;
- lengthDeletions2 = 0;
- lastequality = diffs[pointer][1];
- } else {
- // An insertion or deletion.
- if (diffs[pointer][0] === DIFF_INSERT) {
- lengthInsertions2 += diffs[pointer][1].length;
- } else {
- lengthDeletions2 += diffs[pointer][1].length;
- }
-
- // Eliminate an equality that is smaller or equal to the edits on both
- // sides of it.
- if (lastequality && lastequality.length <= Math.max(lengthInsertions1, lengthDeletions1) && lastequality.length <= Math.max(lengthInsertions2, lengthDeletions2)) {
-
- // Duplicate record.
- diffs.splice(equalities[equalitiesLength - 1], 0, [DIFF_DELETE, lastequality]);
-
- // Change second copy to insert.
- diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;
-
- // Throw away the equality we just deleted.
- equalitiesLength--;
-
- // Throw away the previous equality (it needs to be reevaluated).
- equalitiesLength--;
- pointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1;
-
- // Reset the counters.
- lengthInsertions1 = 0;
- lengthDeletions1 = 0;
- lengthInsertions2 = 0;
- lengthDeletions2 = 0;
- lastequality = null;
- changes = true;
- }
- }
- pointer++;
- }
-
- // Normalize the diff.
- if (changes) {
- this.diffCleanupMerge(diffs);
- }
-
- // Find any overlaps between deletions and insertions.
- // e.g: <del>abcxxx</del><ins>xxxdef</ins>
- // -> <del>abc</del>xxx<ins>def</ins>
- // e.g: <del>xxxabc</del><ins>defxxx</ins>
- // -> <ins>def</ins>xxx<del>abc</del>
- // Only extract an overlap if it is as big as the edit ahead or behind it.
- pointer = 1;
- while (pointer < diffs.length) {
- if (diffs[pointer - 1][0] === DIFF_DELETE && diffs[pointer][0] === DIFF_INSERT) {
- deletion = diffs[pointer - 1][1];
- insertion = diffs[pointer][1];
- overlapLength1 = this.diffCommonOverlap(deletion, insertion);
- overlapLength2 = this.diffCommonOverlap(insertion, deletion);
- if (overlapLength1 >= overlapLength2) {
- if (overlapLength1 >= deletion.length / 2 || overlapLength1 >= insertion.length / 2) {
-
- // Overlap found. Insert an equality and trim the surrounding edits.
- diffs.splice(pointer, 0, [DIFF_EQUAL, insertion.substring(0, overlapLength1)]);
- diffs[pointer - 1][1] = deletion.substring(0, deletion.length - overlapLength1);
- diffs[pointer + 1][1] = insertion.substring(overlapLength1);
- pointer++;
- }
- } else {
- if (overlapLength2 >= deletion.length / 2 || overlapLength2 >= insertion.length / 2) {
-
- // Reverse overlap found.
- // Insert an equality and swap and trim the surrounding edits.
- diffs.splice(pointer, 0, [DIFF_EQUAL, deletion.substring(0, overlapLength2)]);
-
- diffs[pointer - 1][0] = DIFF_INSERT;
- diffs[pointer - 1][1] = insertion.substring(0, insertion.length - overlapLength2);
- diffs[pointer + 1][0] = DIFF_DELETE;
- diffs[pointer + 1][1] = deletion.substring(overlapLength2);
- pointer++;
- }
- }
- pointer++;
- }
- pointer++;
- }
- };
-
- /**
- * Determine if the suffix of one string is the prefix of another.
- * @param {string} text1 First string.
- * @param {string} text2 Second string.
- * @return {number} The number of characters common to the end of the first
- * string and the start of the second string.
- * @private
- */
- DiffMatchPatch.prototype.diffCommonOverlap = function (text1, text2) {
- var text1Length, text2Length, textLength, best, length, pattern, found;
-
- // Cache the text lengths to prevent multiple calls.
- text1Length = text1.length;
- text2Length = text2.length;
-
- // Eliminate the null case.
- if (text1Length === 0 || text2Length === 0) {
- return 0;
- }
-
- // Truncate the longer string.
- if (text1Length > text2Length) {
- text1 = text1.substring(text1Length - text2Length);
- } else if (text1Length < text2Length) {
- text2 = text2.substring(0, text1Length);
- }
- textLength = Math.min(text1Length, text2Length);
-
- // Quick check for the worst case.
- if (text1 === text2) {
- return textLength;
- }
-
- // Start by looking for a single character match
- // and increase length until no match is found.
- // Performance analysis: https://neil.fraser.name/news/2010/11/04/
- best = 0;
- length = 1;
- while (true) {
- pattern = text1.substring(textLength - length);
- found = text2.indexOf(pattern);
- if (found === -1) {
- return best;
- }
- length += found;
- if (found === 0 || text1.substring(textLength - length) === text2.substring(0, length)) {
- best = length;
- length++;
- }
- }
- };
-
- /**
- * Split two texts into an array of strings. Reduce the texts to a string of
- * hashes where each Unicode character represents one line.
- * @param {string} text1 First string.
- * @param {string} text2 Second string.
- * @return {{chars1: string, chars2: string, lineArray: !Array.<string>}}
- * An object containing the encoded text1, the encoded text2 and
- * the array of unique strings.
- * The zeroth element of the array of unique strings is intentionally blank.
- * @private
- */
- DiffMatchPatch.prototype.diffLinesToChars = function (text1, text2) {
- var lineArray, lineHash, chars1, chars2;
- lineArray = []; // E.g. lineArray[4] === 'Hello\n'
- lineHash = {}; // E.g. lineHash['Hello\n'] === 4
-
- // '\x00' is a valid character, but various debuggers don't like it.
- // So we'll insert a junk entry to avoid generating a null character.
- lineArray[0] = "";
-
- /**
- * Split a text into an array of strings. Reduce the texts to a string of
- * hashes where each Unicode character represents one line.
- * Modifies linearray and linehash through being a closure.
- * @param {string} text String to encode.
- * @return {string} Encoded string.
- * @private
- */
- function diffLinesToCharsMunge(text) {
- var chars, lineStart, lineEnd, lineArrayLength, line;
- chars = "";
-
- // Walk the text, pulling out a substring for each line.
- // text.split('\n') would would temporarily double our memory footprint.
- // Modifying text would create many large strings to garbage collect.
- lineStart = 0;
- lineEnd = -1;
-
- // Keeping our own length variable is faster than looking it up.
- lineArrayLength = lineArray.length;
- while (lineEnd < text.length - 1) {
- lineEnd = text.indexOf("\n", lineStart);
- if (lineEnd === -1) {
- lineEnd = text.length - 1;
- }
- line = text.substring(lineStart, lineEnd + 1);
- lineStart = lineEnd + 1;
-
- if (lineHash.hasOwnProperty ? lineHash.hasOwnProperty(line) : lineHash[line] !== undefined) {
- chars += String.fromCharCode(lineHash[line]);
- } else {
- chars += String.fromCharCode(lineArrayLength);
- lineHash[line] = lineArrayLength;
- lineArray[lineArrayLength++] = line;
- }
- }
- return chars;
- }
-
- chars1 = diffLinesToCharsMunge(text1);
- chars2 = diffLinesToCharsMunge(text2);
- return {
- chars1: chars1,
- chars2: chars2,
- lineArray: lineArray
- };
- };
-
- /**
- * Rehydrate the text in a diff from a string of line hashes to real lines of
- * text.
- * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
- * @param {!Array.<string>} lineArray Array of unique strings.
- * @private
- */
- DiffMatchPatch.prototype.diffCharsToLines = function (diffs, lineArray) {
- var x, chars, text, y;
- for (x = 0; x < diffs.length; x++) {
- chars = diffs[x][1];
- text = [];
- for (y = 0; y < chars.length; y++) {
- text[y] = lineArray[chars.charCodeAt(y)];
- }
- diffs[x][1] = text.join("");
- }
- };
-
- /**
- * Reorder and merge like edit sections. Merge equalities.
- * Any edit section can move as long as it doesn't cross an equality.
- * @param {!Array.<!DiffMatchPatch.Diff>} diffs Array of diff tuples.
- */
- DiffMatchPatch.prototype.diffCleanupMerge = function (diffs) {
- var pointer, countDelete, countInsert, textInsert, textDelete, commonlength, changes, diffPointer, position;
- diffs.push([DIFF_EQUAL, ""]); // Add a dummy entry at the end.
- pointer = 0;
- countDelete = 0;
- countInsert = 0;
- textDelete = "";
- textInsert = "";
-
- while (pointer < diffs.length) {
- switch (diffs[pointer][0]) {
- case DIFF_INSERT:
- countInsert++;
- textInsert += diffs[pointer][1];
- pointer++;
- break;
- case DIFF_DELETE:
- countDelete++;
- textDelete += diffs[pointer][1];
- pointer++;
- break;
- case DIFF_EQUAL:
-
- // Upon reaching an equality, check for prior redundancies.
- if (countDelete + countInsert > 1) {
- if (countDelete !== 0 && countInsert !== 0) {
-
- // Factor out any common prefixes.
- commonlength = this.diffCommonPrefix(textInsert, textDelete);
- if (commonlength !== 0) {
- if (pointer - countDelete - countInsert > 0 && diffs[pointer - countDelete - countInsert - 1][0] === DIFF_EQUAL) {
- diffs[pointer - countDelete - countInsert - 1][1] += textInsert.substring(0, commonlength);
- } else {
- diffs.splice(0, 0, [DIFF_EQUAL, textInsert.substring(0, commonlength)]);
- pointer++;
- }
- textInsert = textInsert.substring(commonlength);
- textDelete = textDelete.substring(commonlength);
- }
-
- // Factor out any common suffixies.
- commonlength = this.diffCommonSuffix(textInsert, textDelete);
- if (commonlength !== 0) {
- diffs[pointer][1] = textInsert.substring(textInsert.length - commonlength) + diffs[pointer][1];
- textInsert = textInsert.substring(0, textInsert.length - commonlength);
- textDelete = textDelete.substring(0, textDelete.length - commonlength);
- }
- }
-
- // Delete the offending records and add the merged ones.
- if (countDelete === 0) {
- diffs.splice(pointer - countInsert, countDelete + countInsert, [DIFF_INSERT, textInsert]);
- } else if (countInsert === 0) {
- diffs.splice(pointer - countDelete, countDelete + countInsert, [DIFF_DELETE, textDelete]);
- } else {
- diffs.splice(pointer - countDelete - countInsert, countDelete + countInsert, [DIFF_DELETE, textDelete], [DIFF_INSERT, textInsert]);
- }
- pointer = pointer - countDelete - countInsert + (countDelete ? 1 : 0) + (countInsert ? 1 : 0) + 1;
- } else if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {
-
- // Merge this equality with the previous one.
- diffs[pointer - 1][1] += diffs[pointer][1];
- diffs.splice(pointer, 1);
- } else {
- pointer++;
- }
- countInsert = 0;
- countDelete = 0;
- textDelete = "";
- textInsert = "";
- break;
- }
- }
- if (diffs[diffs.length - 1][1] === "") {
- diffs.pop(); // Remove the dummy entry at the end.
- }
-
- // Second pass: look for single edits surrounded on both sides by equalities
- // which can be shifted sideways to eliminate an equality.
- // e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC
- changes = false;
- pointer = 1;
-
- // Intentionally ignore the first and last element (don't need checking).
- while (pointer < diffs.length - 1) {
- if (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) {
-
- diffPointer = diffs[pointer][1];
- position = diffPointer.substring(diffPointer.length - diffs[pointer - 1][1].length);
-
- // This is a single edit surrounded by equalities.
- if (position === diffs[pointer - 1][1]) {
-
- // Shift the edit over the previous equality.
- diffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(0, diffs[pointer][1].length - diffs[pointer - 1][1].length);
- diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];
- diffs.splice(pointer - 1, 1);
- changes = true;
- } else if (diffPointer.substring(0, diffs[pointer + 1][1].length) === diffs[pointer + 1][1]) {
-
- // Shift the edit over the next equality.
- diffs[pointer - 1][1] += diffs[pointer + 1][1];
- diffs[pointer][1] = diffs[pointer][1].substring(diffs[pointer + 1][1].length) + diffs[pointer + 1][1];
- diffs.splice(pointer + 1, 1);
- changes = true;
- }
- }
- pointer++;
- }
-
- // If shifts were made, the diff needs reordering and another shift sweep.
- if (changes) {
- this.diffCleanupMerge(diffs);
- }
- };
-
- return function (o, n) {
- var diff, output, text;
- diff = new DiffMatchPatch();
- output = diff.DiffMain(o, n);
- diff.diffCleanupEfficiency(output);
- text = diff.diffPrettyHtml(output);
-
- return text;
- };
- }();
-
-}((function() { return this; }())));
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/documentation.css b/ecomp-portal-FE/client/bower_components/jqTree/static/documentation.css
deleted file mode 100644
index e2c90788..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/documentation.css
+++ /dev/null
@@ -1,171 +0,0 @@
-/* general */
-body {
- margin-bottom: 32px;
-}
-
-h4 {
- margin-top: 32px;
-}
-
-/* jumbotron */
-
-#jqtree {
- background: #001F3F;
- padding-top: 24px;
- text-align: center;
-}
-
-#jqtree h1 {
- margin-bottom: 32px;
- color: #0074D9;
-}
-
-#jqtree p {
- color: #fff;
-}
-
-#jqtree .btn-primary {
- background-color: #FFDC00;
- background-image: none;
- border: solid 1px #FFDC00;
- color: #001F3F;
-}
-
-#jqtree .btn-primary:hover {
- background-color: #FFDC00;
-}
-
-#jqtree strong {
- color: #F012BE;
-}
-
-#jqtree strong.title {
- color: #0074D9;
-}
-
-#jqtree h1 .second {
- font-weight: bold;
-}
-
-/* sidebar */
-#menu.affix-top h2 {
- display: none;
-}
-
-@media screen and (max-width: 991px) {
- #menu h2 {
- display: none;
- }
-}
-
-#menu h2 {
- background: #001F3F;
- margin: 0 0 10px 0;
- color: #fff;
- font-size: 18px;
- padding: 8px 10px;
-}
-
-#menu a:hover {
- text-decoration: none;
-}
-
-/*
- * Side navigation
- *
- * Scrollspy and affixed enhanced navigation to highlight sections and secondary
- * sections of docs content.
- */
-
-/* By default it's not affixed in mobile views, so undo that */
-.bs-sidebar.affix {
- position: static;
-}
-
-/* First level of nav */
-.bs-sidenav {
- margin-top: 0;
- margin-bottom: 30px;
-}
-
-/* All levels of nav */
-.bs-sidebar .nav > li > a {
- display: block;
- color: #000;
- padding: 5px 10px;
-}
-.bs-sidebar .nav > li > a:hover,
-.bs-sidebar .nav > li > a:focus {
- text-decoration: none;
- background: #fff;
-}
-.bs-sidebar .nav > .active > a,
-.bs-sidebar .nav > .active:hover > a,
-.bs-sidebar .nav > .active:focus > a {
- font-weight: bold;
- color: #000;
- background-color: transparent;
-}
-.bs-sidebar .nav > li > a:first-child {
- padding-top: 0;
-}
-
-/* Nav: second level (shown on .active) */
-.bs-sidebar .nav .nav {
- display: none; /* Hide by default, but at >768px, show it */
- margin-bottom: 8px;
-}
-.bs-sidebar .nav .nav > li > a {
- padding-top: 3px;
- padding-bottom: 3px;
- padding-left: 20px;
- font-size: 90%;
-}
-
-/* Show and affix the side nav when space allows it */
-@media screen and (min-width: 992px) {
- .bs-sidebar .nav > .active > ul {
- display: block;
- }
- /* Widen the fixed sidebar */
- .bs-sidebar.affix,
- .bs-sidebar.affix-bottom {
- width: 213px;
- }
- .bs-sidebar.affix {
- position: fixed; /* Undo the static from mobile first approach */
- top: 0;
- }
- .bs-sidebar.affix-bottom {
- position: absolute; /* Undo the static from mobile first approach */
- }
- .bs-sidebar.affix-bottom .bs-sidenav,
- .bs-sidebar.affix .bs-sidenav {
- margin-top: 0;
- margin-bottom: 0;
- }
-}
-@media screen and (min-width: 1200px) {
- /* Widen the fixed sidebar again */
- .bs-sidebar.affix-bottom,
- .bs-sidebar.affix {
- width: 263px;
- }
-}
-
-/* code */
-pre {
- background: #000;
-}
-
-/* demo tree */
-
-#tree1 {
- background-color: #DDDDDD;
- padding: 8px 16px;
-}
-
-/* introduction */
-#introduction {
- margin-top: 0;
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/documentation.js b/ecomp-portal-FE/client/bower_components/jqTree/static/documentation.js
deleted file mode 100644
index 43f50f4e..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/documentation.js
+++ /dev/null
@@ -1,51 +0,0 @@
-$(function() {
- var $menu = $('#menu');
- var $body = $('body');
- var $h1 = $('#jqtree h1');
-
- // title
- $h1.html("<span class=\"first\">jq</span><span class=\"second\">Tree</span>");
-
- // menu
- $menu.affix({
- offset: {
- top: $menu.offset().top,
- bottom: 0
- }
- });
-
- $body.scrollspy({
- target: '#menu'
- });
- var scrollspy = $body.data('bs.scrollspy');
-
- // If no menu item is active, then activate first item
- if (! scrollspy.activeTarget) {
- scrollspy.activate('#general');
- }
-
- // demo tree
- var data = [
- {
- label: 'node1', id: 1,
- children: [
- { label: 'child1', id: 2 },
- { label: 'child2', id: 3 }
- ]
- },
- {
- label: 'node2', id: 4,
- children: [
- { label: 'child3', id: 5 }
- ]
- }
- ];
-
- var $tree1 = $('#tree1');
-
- $tree1.tree({
- data: data,
- autoOpen: true,
- dragAndDrop: true
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/example.css b/ecomp-portal-FE/client/bower_components/jqTree/static/example.css
deleted file mode 100644
index f8caf34f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/example.css
+++ /dev/null
@@ -1,60 +0,0 @@
-h1 {
- font-size: 20px;
- margin-bottom: 16px; }
-
-h3 {
- font-size: 16px;
- font-weight: bold;
- margin: 16px 0 8px 0; }
-
-p {
- margin-bottom: 8px; }
-
-ul {
- margin-bottom: 8px; }
-
-#tree1 {
- background-color: #ccc;
- padding: 8px 16px;
- margin-bottom: 16px; }
- #tree1.block-style {
- background-color: #fafafa; }
-
-#nav {
- margin: 16px 0; }
- #nav .next {
- float: right; }
-
-.jqtree-tree .jqtree-loading > div .jqtree-title:after {
- content: url(spinner.gif);
- margin-left: 8px; }
-
-#tree1.jqtree-loading:after {
- content: url(spinner.gif); }
-
-pre {
- background-color: #333; }
-
-#scroll-container {
- height: 200px;
- overflow-y: scroll;
- position: relative;
- /* ie7 fix */
- -ms-user-select: none;
- user-select: none;
- margin-bottom: 16px; }
-
-.block-style ul.jqtree-tree {
- margin-left: 0; }
- .block-style ul.jqtree-tree ul.jqtree_common {
- margin-left: 2em; }
- .block-style ul.jqtree-tree .jqtree-element {
- margin-bottom: 8px;
- background-color: #ddd;
- padding: 8px; }
- .block-style ul.jqtree-tree .jqtree-element .jqtree-title {
- margin-left: 0; }
- .block-style ul.jqtree-tree li.jqtree-selected > .jqtree-element,
- .block-style ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover {
- background: #97BDD6;
- text-shadow: none; }
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/example.scss b/ecomp-portal-FE/client/bower_components/jqTree/static/example.scss
deleted file mode 100644
index 3365c680..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/example.scss
+++ /dev/null
@@ -1,86 +0,0 @@
-h1 {
- font-size: 20px;
- margin-bottom: 16px;
-}
-
-h3 {
- font-size: 16px;
- font-weight: bold;
- margin: 16px 0 8px 0;
-}
-
-p {
- margin-bottom: 8px;
-}
-
-ul {
- margin-bottom: 8px;
-}
-
-#tree1 {
- background-color: #ccc;
- padding: 8px 16px;
- margin-bottom: 16px;
-
- &.block-style {
- background-color: #fafafa;
- }
-}
-
-#nav {
- margin: 16px 0;
-
- .next {
- float: right;
- }
-}
-
-.jqtree-tree .jqtree-loading > div .jqtree-title:after {
- content: url(spinner.gif);
- margin-left: 8px;
-}
-
-#tree1.jqtree-loading:after {
- content: url(spinner.gif);
-}
-
-pre {
- background-color: #333;
-}
-
-#scroll-container {
- height: 200px;
- overflow-y: scroll;
- position: relative; /* ie7 fix */
- -ms-user-select: none;
- user-select: none;
- margin-bottom: 16px;
-}
-
-.block-style {
- ul.jqtree-tree {
- margin-left: 0;
-
- ul.jqtree_common {
- margin-left: 2em;
- }
-
- .jqtree-element {
- margin-bottom: 8px;
- background-color: #ddd;
- padding: 8px;
-
- .jqtree-title {
- margin-left: 0;
- }
- }
-
- li.jqtree-selected {
- > .jqtree-element,
- > .jqtree-element:hover {
- background: #97BDD6;
- text-shadow: none;
- }
- }
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/example_data.js b/ecomp-portal-FE/client/bower_components/jqTree/static/example_data.js
deleted file mode 100644
index 58a80252..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/example_data.js
+++ /dev/null
@@ -1,128 +0,0 @@
-var ExampleData = {};
-
-ExampleData.example_data = [
- {
- name: 'Saurischia',
- id: 1,
- children: [
- {name: 'Herrerasaurians', id: 2},
- {
- name: 'Theropods',
- id: 3,
- children: [
- {name: 'Coelophysoids', id: 4},
- {name: 'Ceratosaurians', id: 5},
- {name: 'Spinosauroids', id: 6},
- {name: 'Carnosaurians', id: 7},
- {
- name: 'Coelurosaurians',
- id: 8,
- children: [
- {name: 'Tyrannosauroids', id: 9},
- {name: 'Ornithomimosaurians', id: 10},
- {name: 'Therizinosauroids', id: 11},
- {name: 'Oviraptorosaurians', id: 12},
- {name: 'Dromaeosaurids', id: 13},
- {name: 'Troodontids', id: 14},
- {name: 'Avialans', id: 15}
- ]
- }
- ]
- },
- {
- name: 'Sauropodomorphs',
- id: 16,
- children: [
- {name: 'Prosauropods', id: 17},
- {
- name: 'Sauropods',
- id: 18,
- children: [
- {name: 'Diplodocoids', id: 19},
- {
- name: 'Macronarians',
- id: 20,
- children: [
- {name: 'Brachiosaurids', id: 21},
- {name: 'Titanosaurians', id: 22}
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- name: 'Ornithischians',
- id: 23,
- children: [
- {name: 'Heterodontosaurids', id: 24},
- {
- name: 'Thyreophorans',
- id: 25,
- children: [
- {name: 'Ankylosaurians', id: 26},
- {name: 'Stegosaurians', id: 27}
- ]
- },
- {
- name: 'Ornithopods',
- id: 28,
- children: [
- {name: 'Hadrosaurids', id: 29}
- ]
- },
- {name: 'Pachycephalosaurians', id: 30},
- {name: 'Ceratopsians', id: 31}
- ]
- }
-];
-
-ExampleData.getFirstLevelData = function(nodes) {
- if (! nodes) {
- nodes = ExampleData.example_data;
- }
-
- var data = [];
-
- $.each(nodes, function() {
- var node = {
- name: this.name,
- id: this.id
- };
-
- if (this.children) {
- node.load_on_demand = true;
- }
-
- data.push(node);
- });
-
- return data;
-}
-
-ExampleData.getChildrenOfNode = function(node_id) {
- var result = null;
-
- function iterate(nodes) {
- $.each(nodes, function() {
- if (result) {
- return;
- }
- else {
- if (this.id == node_id) {
- result = this;
- }
-
- if (this.children) {
- iterate(this.children);
- }
- }
- });
- }
-
- iterate(ExampleData.example_data);
-
- return ExampleData.getFirstLevelData(result.children);
-}
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoescape.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoescape.js
deleted file mode 100644
index 26b7173f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoescape.js
+++ /dev/null
@@ -1,19 +0,0 @@
-$(function() {
- var data = [
- {
- name: 'examples',
- children: [
- { name: '<a href="example1.html">Example 1</a>' },
- { name: '<a href="example2.html">Example 2</a>' },
- '<a href="example3.html">Example 3</a>'
- ]
- }
- ];
-
- // set autoEscape to false
- $('#tree1').tree({
- data: data,
- autoEscape: false,
- autoOpen: true
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoscroll.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoscroll.js
deleted file mode 100644
index 936f956f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoscroll.js
+++ /dev/null
@@ -1,8 +0,0 @@
-$(function() {
- var $tree = $('#tree1');
- $tree.tree({
- data: ExampleData.example_data,
- dragAndDrop: true,
- autoOpen: true
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/button-on-right.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/button-on-right.js
deleted file mode 100644
index 30d6551b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/button-on-right.js
+++ /dev/null
@@ -1,15 +0,0 @@
-$.mockjax({
- url: '*',
- response: function(options) {
- this.responseText = ExampleData.example_data;
- },
- responseTime: 0
-});
-
-$(function() {
- $('#tree1').tree({
- buttonLeft: false,
- autoOpen: 0,
- slide: true
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js
deleted file mode 100644
index eb8e429d..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js
+++ /dev/null
@@ -1,32 +0,0 @@
-$(function() {
- var $tree = $('#tree1');
-
- $tree.tree({
- data: ExampleData.example_data,
- autoOpen: 1,
- onCreateLi: function(node, $li) {
- // Append a link to the jqtree-element div.
- // The link has an url '#node-[id]' and a data property 'node-id'.
- $li.find('.jqtree-element').append(
- '<a href="#node-'+ node.id +'" class="edit" data-node-id="'+ node.id +'">edit</a>'
- );
- }
- });
-
- // Handle a click on the edit link
- $tree.on(
- 'click', '.edit',
- function(e) {
- // Get the id from the 'node-id' data property
- var node_id = $(e.target).data('node-id');
-
- // Get the node from the tree
- var node = $tree.tree('getNodeById', node_id);
-
- if (node) {
- // Display the node name
- alert(node.name);
- }
- }
- );
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js
deleted file mode 100644
index d638b0c3..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js
+++ /dev/null
@@ -1,15 +0,0 @@
-$.mockjax({
- url: '*',
- response: function(options) {
- this.responseText = ExampleData.example_data;
- },
- responseTime: 0
-});
-
-$(function() {
- var $tree = $('#tree1');
- $tree.tree({
- dragAndDrop: true,
- autoOpen: 0
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/icon_buttons.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/icon_buttons.js
deleted file mode 100644
index a7b27fcc..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/icon_buttons.js
+++ /dev/null
@@ -1,14 +0,0 @@
-$.mockjax({
- url: '*',
- response: function(options) {
- this.responseText = ExampleData.example_data;
- },
- responseTime: 0
-});
-
-$(function() {
- $('#tree1').tree({
- closedIcon: $('<i class="fa fa-arrow-circle-right"></i>'),
- openedIcon: $('<i class="fa fa-arrow-circle-down"></i>')
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data.js
deleted file mode 100644
index 6062f2c6..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data.js
+++ /dev/null
@@ -1,21 +0,0 @@
-$(function() {
- var data = [
- {
- name: 'node1', id: 1,
- children: [
- { name: 'child1', id: 2 },
- { name: 'child2', id: 3 }
- ]
- },
- {
- name: 'node2', id: 4,
- children: [
- { name: 'child3', id: 5 }
- ]
- }
- ];
-
- $('#tree1').tree({
- data: data
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data_from_server.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data_from_server.js
deleted file mode 100644
index 487e694f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data_from_server.js
+++ /dev/null
@@ -1,11 +0,0 @@
-$.mockjax({
- url: '*',
- response: function(options) {
- this.responseText = ExampleData.example_data;
- },
- responseTime: 0
-});
-
-$(function() {
- $('#tree1').tree();
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_on_demand.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_on_demand.js
deleted file mode 100644
index dec33d48..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_on_demand.js
+++ /dev/null
@@ -1,20 +0,0 @@
-$.mockjax({
- url: '*',
- responseTime: 1000,
- response: function(options) {
- if (options.data && options.data.node) {
- this.responseText = ExampleData.getChildrenOfNode(options.data.node);
- }
- else {
- this.responseText = ExampleData.getFirstLevelData();
- }
- }
-});
-
-$(function() {
- var $tree = $('#tree1');
-
- $tree.tree({
- saveState: true
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/multiple_select.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/multiple_select.js
deleted file mode 100644
index 54ab18f3..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/multiple_select.js
+++ /dev/null
@@ -1,27 +0,0 @@
-$(function() {
- var $tree = $('#tree1');
- $tree.tree({
- data: ExampleData.example_data,
- autoOpen: true
- });
- $tree.bind(
- 'tree.click',
- function(e) {
- // Disable single selection
- e.preventDefault();
-
- var selected_node = e.node;
-
- if (selected_node.id == undefined) {
- console.log('The multiple selection functions require that nodes have an id');
- }
-
- if ($tree.tree('isNodeSelected', selected_node)) {
- $tree.tree('removeFromSelection', selected_node);
- }
- else {
- $tree.tree('addToSelection', selected_node);
- }
- }
- );
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/right-to-left.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/right-to-left.js
deleted file mode 100644
index ffa506b1..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/right-to-left.js
+++ /dev/null
@@ -1,13 +0,0 @@
-$.mockjax({
- url: '*',
- response: function(options) {
- this.responseText = ExampleData.example_data;
- },
- responseTime: 0
-});
-
-$(function() {
- $('#tree1').tree({
- rtl: true
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/save_state.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/save_state.js
deleted file mode 100644
index 252bf368..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/save_state.js
+++ /dev/null
@@ -1,13 +0,0 @@
-$.mockjax({
- url: '*',
- response: function(options) {
- this.responseText = ExampleData.example_data;
- },
- responseTime: 0
-});
-
-$(function() {
- $('#tree1').tree({
- saveState: true
- });
-});
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/spinner.gif b/ecomp-portal-FE/client/bower_components/jqTree/static/spinner.gif
deleted file mode 100644
index a48cdd0f..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/static/spinner.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/test/test.html b/ecomp-portal-FE/client/bower_components/jqTree/test/test.html
deleted file mode 100644
index 72797ae6..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/test/test.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <title>jqTree - Test</title>
- <link rel="stylesheet" href="../static/bower_components/qunit/qunit/qunit.css">
- <link rel="stylesheet" href="../jqtree.css">
- <!--[if lt IE 9]>
- <script src="../static/bower_components/jquery-1/dist/jquery.min.js"></script>
- <![endif]-->
- <!--[if gte IE 9]><!-->
- <script src="../static/bower_components/jquery/dist/jquery.min.js"></script>
- <!--<![endif]-->
- <script src="../static/bower_components/qunit/qunit/qunit.js"></script>
- <!--[if gte IE 9]><!-->
- <script src="../static/bower_components/blanket/dist/qunit/blanket.js"></script>
- <!--<![endif]-->
- <script src="../tree.jquery.js" data-cover></script>
- <script src="test_build.js"></script>
-</head>
-<body>
- <div id="qunit"></div>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/test/test_build.js b/ecomp-portal-FE/client/bower_components/jqTree/test/test_build.js
deleted file mode 100644
index be620bbb..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/test/test_build.js
+++ /dev/null
@@ -1,3267 +0,0 @@
-(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
-(function(root, factory) {
- 'use strict';
-
- // AMDJS module definition
- if ( typeof define === 'function' && define.amd && define.amd.jQuery ) {
- define(['jquery'], function($) {
- return factory($, root);
- });
-
- // CommonJS module definition
- } else if ( typeof exports === 'object') {
-
- // NOTE: To use Mockjax as a Node module you MUST provide the factory with
- // a valid version of jQuery and a window object (the global scope):
- // var mockjax = require('jquery.mockjax')(jQuery, window);
-
- module.exports = factory;
-
- // Global jQuery in web browsers
- } else {
- return factory(root.jQuery || root.$, root);
- }
-}(this, function($, window) {
- 'use strict';
-
- var _ajax = $.ajax,
- mockHandlers = [],
- mockedAjaxCalls = [],
- unmockedAjaxCalls = [],
- CALLBACK_REGEX = /=\?(&|$)/,
- jsc = (new Date()).getTime(),
- DEFAULT_RESPONSE_TIME = 500;
-
- // Parse the given XML string.
- function parseXML(xml) {
- if ( window.DOMParser === undefined && window.ActiveXObject ) {
- window.DOMParser = function() { };
- DOMParser.prototype.parseFromString = function( xmlString ) {
- var doc = new ActiveXObject('Microsoft.XMLDOM');
- doc.async = 'false';
- doc.loadXML( xmlString );
- return doc;
- };
- }
-
- try {
- var xmlDoc = ( new DOMParser() ).parseFromString( xml, 'text/xml' );
- if ( $.isXMLDoc( xmlDoc ) ) {
- var err = $('parsererror', xmlDoc);
- if ( err.length === 1 ) {
- throw new Error('Error: ' + $(xmlDoc).text() );
- }
- } else {
- throw new Error('Unable to parse XML');
- }
- return xmlDoc;
- } catch( e ) {
- var msg = ( e.name === undefined ? e : e.name + ': ' + e.message );
- $(document).trigger('xmlParseError', [ msg ]);
- return undefined;
- }
- }
-
- // Check if the data field on the mock handler and the request match. This
- // can be used to restrict a mock handler to being used only when a certain
- // set of data is passed to it.
- function isMockDataEqual( mock, live ) {
- logger.debug( mock, ['Checking mock data against request data', mock, live] );
- var identical = true;
-
- if ( $.isFunction(mock) ) {
- return !!mock(live);
- }
-
- // Test for situations where the data is a querystring (not an object)
- if (typeof live === 'string') {
- // Querystring may be a regex
- if ($.isFunction( mock.test )) {
- return mock.test(live);
- } else if (typeof mock === 'object') {
- live = getQueryParams(live);
- } else {
- return mock === live;
- }
- }
-
- $.each(mock, function(k) {
- if ( live[k] === undefined ) {
- identical = false;
- return identical;
- } else {
- if ( typeof live[k] === 'object' && live[k] !== null ) {
- if ( identical && $.isArray( live[k] ) ) {
- identical = $.isArray( mock[k] ) && live[k].length === mock[k].length;
- }
- identical = identical && isMockDataEqual(mock[k], live[k]);
- } else {
- if ( mock[k] && $.isFunction( mock[k].test ) ) {
- identical = identical && mock[k].test(live[k]);
- } else {
- identical = identical && ( mock[k] === live[k] );
- }
- }
- }
- });
-
- return identical;
- }
-
- function getQueryParams(queryString) {
- var i, l, param, tmp,
- paramsObj = {},
- params = String(queryString).split(/&/);
-
- for (i=0, l=params.length; i<l; ++i) {
- param = params[i];
- try {
- param = decodeURIComponent(param.replace(/\+/g, ' '));
- param = param.split(/=/);
- } catch(e) {
- // Can't parse this one, so let it go?
- continue;
- }
-
- if (paramsObj[param[0]]) {
- // this is an array query param (more than one entry in query)
- if (!paramsObj[param[0]].splice) {
- // if not already an array, make it one
- tmp = paramsObj[param[0]];
- paramsObj[param[0]] = [];
- paramsObj[param[0]].push(tmp);
- }
- paramsObj[param[0]].push(param[1]);
- } else {
- paramsObj[param[0]] = param[1];
- }
- }
-
- logger.debug( null, ['Getting query params from string', queryString, paramsObj] );
-
- return paramsObj;
- }
-
- // See if a mock handler property matches the default settings
- function isDefaultSetting(handler, property) {
- return handler[property] === $.mockjaxSettings[property];
- }
-
- // Check the given handler should mock the given request
- function getMockForRequest( handler, requestSettings ) {
- // If the mock was registered with a function, let the function decide if we
- // want to mock this request
- if ( $.isFunction(handler) ) {
- return handler( requestSettings );
- }
-
- // Inspect the URL of the request and check if the mock handler's url
- // matches the url for this ajax request
- if ( $.isFunction(handler.url.test) ) {
- // The user provided a regex for the url, test it
- if ( !handler.url.test( requestSettings.url ) ) {
- return null;
- }
- } else {
-
- // Apply namespace prefix to the mock handler's url.
- var namespace = handler.namespace || $.mockjaxSettings.namespace;
- if (!!namespace) {
- var namespacedUrl = [namespace, handler.url].join('/');
- namespacedUrl = namespacedUrl.replace(/(\/+)/g, '/');
- handler.url = namespacedUrl;
- }
-
- // Look for a simple wildcard '*' or a direct URL match
- var star = handler.url.indexOf('*');
- if (handler.url !== requestSettings.url && star === -1 ||
- !new RegExp(handler.url.replace(/[-[\]{}()+?.,\\^$|#\s]/g, '\\$&').replace(/\*/g, '.+')).test(requestSettings.url)) {
- return null;
- }
- }
-
- // Inspect the request headers submitted
- if ( handler.requestHeaders ) {
- //No expectation for headers, do not mock this request
- if (requestSettings.headers === undefined) {
- return null;
- } else {
- var headersMismatch = false;
- $.each(handler.requestHeaders, function(key, value) {
- var v = requestSettings.headers[key];
- if(v !== value) {
- headersMismatch = true;
- return false;
- }
- });
- //Headers do not match, do not mock this request
- if (headersMismatch) {
- return null;
- }
- }
- }
-
- // Inspect the data submitted in the request (either POST body or GET query string)
- if ( handler.data ) {
- if ( !requestSettings.data || !isMockDataEqual(handler.data, requestSettings.data) ) {
- // They're not identical, do not mock this request
- return null;
- }
- }
- // Inspect the request type
- if ( handler && handler.type &&
- handler.type.toLowerCase() !== requestSettings.type.toLowerCase() ) {
- // The request type doesn't match (GET vs. POST)
- return null;
- }
-
- return handler;
- }
-
- function isPosNum(value) {
- return typeof value === 'number' && value >= 0;
- }
-
- function parseResponseTimeOpt(responseTime) {
- if ($.isArray(responseTime) && responseTime.length === 2) {
- var min = responseTime[0];
- var max = responseTime[1];
- if(isPosNum(min) && isPosNum(max)) {
- return Math.floor(Math.random() * (max - min)) + min;
- }
- } else if(isPosNum(responseTime)) {
- return responseTime;
- }
- return DEFAULT_RESPONSE_TIME;
- }
-
- // Process the xhr objects send operation
- function _xhrSend(mockHandler, requestSettings, origSettings) {
- logger.debug( mockHandler, ['Sending fake XHR request', mockHandler, requestSettings, origSettings] );
-
- // This is a substitute for < 1.4 which lacks $.proxy
- var process = (function(that) {
- return function() {
- return (function() {
- // The request has returned
- this.status = mockHandler.status;
- this.statusText = mockHandler.statusText;
- this.readyState = 1;
-
- var finishRequest = function () {
- this.readyState = 4;
-
- var onReady;
- // Copy over our mock to our xhr object before passing control back to
- // jQuery's onreadystatechange callback
- if ( requestSettings.dataType === 'json' && ( typeof mockHandler.responseText === 'object' ) ) {
- this.responseText = JSON.stringify(mockHandler.responseText);
- } else if ( requestSettings.dataType === 'xml' ) {
- if ( typeof mockHandler.responseXML === 'string' ) {
- this.responseXML = parseXML(mockHandler.responseXML);
- //in jQuery 1.9.1+, responseXML is processed differently and relies on responseText
- this.responseText = mockHandler.responseXML;
- } else {
- this.responseXML = mockHandler.responseXML;
- }
- } else if (typeof mockHandler.responseText === 'object' && mockHandler.responseText !== null) {
- // since jQuery 1.9 responseText type has to match contentType
- mockHandler.contentType = 'application/json';
- this.responseText = JSON.stringify(mockHandler.responseText);
- } else {
- this.responseText = mockHandler.responseText;
- }
- if( typeof mockHandler.status === 'number' || typeof mockHandler.status === 'string' ) {
- this.status = mockHandler.status;
- }
- if( typeof mockHandler.statusText === 'string') {
- this.statusText = mockHandler.statusText;
- }
- // jQuery 2.0 renamed onreadystatechange to onload
- onReady = this.onload || this.onreadystatechange;
-
- // jQuery < 1.4 doesn't have onreadystate change for xhr
- if ( $.isFunction( onReady ) ) {
- if( mockHandler.isTimeout) {
- this.status = -1;
- }
- onReady.call( this, mockHandler.isTimeout ? 'timeout' : undefined );
- } else if ( mockHandler.isTimeout ) {
- // Fix for 1.3.2 timeout to keep success from firing.
- this.status = -1;
- }
- };
-
- // We have an executable function, call it to give
- // the mock handler a chance to update it's data
- if ( $.isFunction(mockHandler.response) ) {
- // Wait for it to finish
- if ( mockHandler.response.length === 2 ) {
- mockHandler.response(origSettings, function () {
- finishRequest.call(that);
- });
- return;
- } else {
- mockHandler.response(origSettings);
- }
- }
-
- finishRequest.call(that);
- }).apply(that);
- };
- })(this);
-
- if ( mockHandler.proxy ) {
- logger.info( mockHandler, ['Retrieving proxy file: ' + mockHandler.proxy, mockHandler] );
- // We're proxying this request and loading in an external file instead
- _ajax({
- global: false,
- url: mockHandler.proxy,
- type: mockHandler.proxyType,
- data: mockHandler.data,
- async: requestSettings.async,
- dataType: requestSettings.dataType === 'script' ? 'text/plain' : requestSettings.dataType,
- complete: function(xhr) {
- // Fix for bug #105
- // jQuery will convert the text to XML for us, and if we use the actual responseXML here
- // then some other things don't happen, resulting in no data given to the 'success' cb
- mockHandler.responseXML = mockHandler.responseText = xhr.responseText;
-
- // Don't override the handler status/statusText if it's specified by the config
- if (isDefaultSetting(mockHandler, 'status')) {
- mockHandler.status = xhr.status;
- }
- if (isDefaultSetting(mockHandler, 'statusText')) {
- mockHandler.statusText = xhr.statusText;
- }
-
- if ( requestSettings.async === false ) {
- // TODO: Blocking delay
- process();
- } else {
- this.responseTimer = setTimeout(process, parseResponseTimeOpt(mockHandler.responseTime));
- }
- }
- });
- } else {
- // type === 'POST' || 'GET' || 'DELETE'
- if ( requestSettings.async === false ) {
- // TODO: Blocking delay
- process();
- } else {
- this.responseTimer = setTimeout(process, parseResponseTimeOpt(mockHandler.responseTime));
- }
- }
-
- }
-
- // Construct a mocked XHR Object
- function xhr(mockHandler, requestSettings, origSettings, origHandler) {
- logger.debug( mockHandler, ['Creating new mock XHR object', mockHandler, requestSettings, origSettings, origHandler] );
-
- // Extend with our default mockjax settings
- mockHandler = $.extend(true, {}, $.mockjaxSettings, mockHandler);
-
- if (typeof mockHandler.headers === 'undefined') {
- mockHandler.headers = {};
- }
- if (typeof requestSettings.headers === 'undefined') {
- requestSettings.headers = {};
- }
- if ( mockHandler.contentType ) {
- mockHandler.headers['content-type'] = mockHandler.contentType;
- }
-
- return {
- status: mockHandler.status,
- statusText: mockHandler.statusText,
- readyState: 1,
- open: function() { },
- send: function() {
- origHandler.fired = true;
- _xhrSend.call(this, mockHandler, requestSettings, origSettings);
- },
- abort: function() {
- clearTimeout(this.responseTimer);
- },
- setRequestHeader: function(header, value) {
- requestSettings.headers[header] = value;
- },
- getResponseHeader: function(header) {
- // 'Last-modified', 'Etag', 'content-type' are all checked by jQuery
- if ( mockHandler.headers && mockHandler.headers[header] ) {
- // Return arbitrary headers
- return mockHandler.headers[header];
- } else if ( header.toLowerCase() === 'last-modified' ) {
- return mockHandler.lastModified || (new Date()).toString();
- } else if ( header.toLowerCase() === 'etag' ) {
- return mockHandler.etag || '';
- } else if ( header.toLowerCase() === 'content-type' ) {
- return mockHandler.contentType || 'text/plain';
- }
- },
- getAllResponseHeaders: function() {
- var headers = '';
- // since jQuery 1.9 responseText type has to match contentType
- if (mockHandler.contentType) {
- mockHandler.headers['Content-Type'] = mockHandler.contentType;
- }
- $.each(mockHandler.headers, function(k, v) {
- headers += k + ': ' + v + '\n';
- });
- return headers;
- }
- };
- }
-
- // Process a JSONP mock request.
- function processJsonpMock( requestSettings, mockHandler, origSettings ) {
- // Handle JSONP Parameter Callbacks, we need to replicate some of the jQuery core here
- // because there isn't an easy hook for the cross domain script tag of jsonp
-
- processJsonpUrl( requestSettings );
-
- requestSettings.dataType = 'json';
- if(requestSettings.data && CALLBACK_REGEX.test(requestSettings.data) || CALLBACK_REGEX.test(requestSettings.url)) {
- createJsonpCallback(requestSettings, mockHandler, origSettings);
-
- // We need to make sure
- // that a JSONP style response is executed properly
-
- var rurl = /^(\w+:)?\/\/([^\/?#]+)/,
- parts = rurl.exec( requestSettings.url ),
- remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host);
-
- requestSettings.dataType = 'script';
- if(requestSettings.type.toUpperCase() === 'GET' && remote ) {
- var newMockReturn = processJsonpRequest( requestSettings, mockHandler, origSettings );
-
- // Check if we are supposed to return a Deferred back to the mock call, or just
- // signal success
- if(newMockReturn) {
- return newMockReturn;
- } else {
- return true;
- }
- }
- }
- return null;
- }
-
- // Append the required callback parameter to the end of the request URL, for a JSONP request
- function processJsonpUrl( requestSettings ) {
- if ( requestSettings.type.toUpperCase() === 'GET' ) {
- if ( !CALLBACK_REGEX.test( requestSettings.url ) ) {
- requestSettings.url += (/\?/.test( requestSettings.url ) ? '&' : '?') +
- (requestSettings.jsonp || 'callback') + '=?';
- }
- } else if ( !requestSettings.data || !CALLBACK_REGEX.test(requestSettings.data) ) {
- requestSettings.data = (requestSettings.data ? requestSettings.data + '&' : '') + (requestSettings.jsonp || 'callback') + '=?';
- }
- }
-
- // Process a JSONP request by evaluating the mocked response text
- function processJsonpRequest( requestSettings, mockHandler, origSettings ) {
- logger.debug( mockHandler, ['Performing JSONP request', mockHandler, requestSettings, origSettings] );
-
- // Synthesize the mock request for adding a script tag
- var callbackContext = origSettings && origSettings.context || requestSettings,
- // If we are running under jQuery 1.5+, return a deferred object
- newMock = ($.Deferred) ? (new $.Deferred()) : null;
-
- // If the response handler on the moock is a function, call it
- if ( mockHandler.response && $.isFunction(mockHandler.response) ) {
-
- mockHandler.response(origSettings);
-
-
- } else if ( typeof mockHandler.responseText === 'object' ) {
- // Evaluate the responseText javascript in a global context
- $.globalEval( '(' + JSON.stringify( mockHandler.responseText ) + ')');
-
- } else if (mockHandler.proxy) {
- logger.info( mockHandler, ['Performing JSONP proxy request: ' + mockHandler.proxy, mockHandler] );
-
- // This handles the unique case where we have a remote URL, but want to proxy the JSONP
- // response to another file (not the same URL as the mock matching)
- _ajax({
- global: false,
- url: mockHandler.proxy,
- type: mockHandler.proxyType,
- data: mockHandler.data,
- dataType: requestSettings.dataType === 'script' ? 'text/plain' : requestSettings.dataType,
- complete: function(xhr) {
- $.globalEval( '(' + xhr.responseText + ')');
- completeJsonpCall( requestSettings, mockHandler, callbackContext, newMock );
- }
- });
-
- return newMock;
-
- } else {
- $.globalEval( '(' +
- ((typeof mockHandler.responseText === 'string') ?
- ('"' + mockHandler.responseText + '"') : mockHandler.responseText) +
- ')');
- }
-
- completeJsonpCall( requestSettings, mockHandler, callbackContext, newMock );
-
- return newMock;
- }
-
- function completeJsonpCall( requestSettings, mockHandler, callbackContext, newMock ) {
- var json;
-
- // Successful response
- setTimeout(function() {
- jsonpSuccess( requestSettings, callbackContext, mockHandler );
- jsonpComplete( requestSettings, callbackContext );
-
- if ( newMock ) {
- try {
- json = $.parseJSON( mockHandler.responseText );
- } catch (err) { /* just checking... */ }
-
- newMock.resolveWith( callbackContext, [json || mockHandler.responseText] );
- logger.log( mockHandler, ['JSONP mock call complete', mockHandler, newMock] );
- }
- }, parseResponseTimeOpt( mockHandler.responseTime ));
- }
-
-
- // Create the required JSONP callback function for the request
- function createJsonpCallback( requestSettings, mockHandler, origSettings ) {
- var callbackContext = origSettings && origSettings.context || requestSettings;
- var jsonp = (typeof requestSettings.jsonpCallback === 'string' && requestSettings.jsonpCallback) || ('jsonp' + jsc++);
-
- // Replace the =? sequence both in the query string and the data
- if ( requestSettings.data ) {
- requestSettings.data = (requestSettings.data + '').replace(CALLBACK_REGEX, '=' + jsonp + '$1');
- }
-
- requestSettings.url = requestSettings.url.replace(CALLBACK_REGEX, '=' + jsonp + '$1');
-
-
- // Handle JSONP-style loading
- window[ jsonp ] = window[ jsonp ] || function() {
- jsonpSuccess( requestSettings, callbackContext, mockHandler );
- jsonpComplete( requestSettings, callbackContext );
- // Garbage collect
- window[ jsonp ] = undefined;
-
- try {
- delete window[ jsonp ];
- } catch(e) {}
- };
- requestSettings.jsonpCallback = jsonp;
- }
-
- // The JSONP request was successful
- function jsonpSuccess(requestSettings, callbackContext, mockHandler) {
- // If a local callback was specified, fire it and pass it the data
- if ( requestSettings.success ) {
- requestSettings.success.call( callbackContext, mockHandler.responseText || '', 'success', {} );
- }
-
- // Fire the global callback
- if ( requestSettings.global ) {
- (requestSettings.context ? $(requestSettings.context) : $.event).trigger('ajaxSuccess', [{}, requestSettings]);
- }
- }
-
- // The JSONP request was completed
- function jsonpComplete(requestSettings, callbackContext) {
- if ( requestSettings.complete ) {
- requestSettings.complete.call( callbackContext, {
- statusText: 'success',
- status: 200
- } , 'success' );
- }
-
- // The request was completed
- if ( requestSettings.global ) {
- (requestSettings.context ? $(requestSettings.context) : $.event).trigger('ajaxComplete', [{}, requestSettings]);
- }
-
- // Handle the global AJAX counter
- if ( requestSettings.global && ! --$.active ) {
- $.event.trigger( 'ajaxStop' );
- }
- }
-
-
- // The core $.ajax replacement.
- function handleAjax( url, origSettings ) {
- var mockRequest, requestSettings, mockHandler, overrideCallback;
-
- logger.debug( null, ['Ajax call intercepted', url, origSettings] );
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === 'object' ) {
- origSettings = url;
- url = undefined;
- } else {
- // work around to support 1.5 signature
- origSettings = origSettings || {};
- origSettings.url = url || origSettings.url;
- }
-
- // Extend the original settings for the request
- requestSettings = $.ajaxSetup({}, origSettings);
- requestSettings.type = requestSettings.method = requestSettings.method || requestSettings.type;
-
- // Generic function to override callback methods for use with
- // callback options (onAfterSuccess, onAfterError, onAfterComplete)
- overrideCallback = function(action, mockHandler) {
- var origHandler = origSettings[action.toLowerCase()];
- return function() {
- if ( $.isFunction(origHandler) ) {
- origHandler.apply(this, [].slice.call(arguments));
- }
- mockHandler['onAfter' + action]();
- };
- };
-
- // Iterate over our mock handlers (in registration order) until we find
- // one that is willing to intercept the request
- for(var k = 0; k < mockHandlers.length; k++) {
- if ( !mockHandlers[k] ) {
- continue;
- }
-
- mockHandler = getMockForRequest( mockHandlers[k], requestSettings );
- if(!mockHandler) {
- logger.debug( mockHandlers[k], ['Mock does not match request', url, requestSettings] );
- // No valid mock found for this request
- continue;
- }
-
- if ($.mockjaxSettings.retainAjaxCalls) {
- mockedAjaxCalls.push(requestSettings);
- }
-
- // If logging is enabled, log the mock to the console
- logger.info( mockHandler, [
- 'MOCK ' + requestSettings.type.toUpperCase() + ': ' + requestSettings.url,
- $.ajaxSetup({}, requestSettings)
- ] );
-
-
- if ( requestSettings.dataType && requestSettings.dataType.toUpperCase() === 'JSONP' ) {
- if ((mockRequest = processJsonpMock( requestSettings, mockHandler, origSettings ))) {
- // This mock will handle the JSONP request
- return mockRequest;
- }
- }
-
- // We are mocking, so there will be no cross domain request, however, jQuery
- // aggressively pursues this if the domains don't match, so we need to
- // explicitly disallow it. (See #136)
- origSettings.crossDomain = false;
-
- // Removed to fix #54 - keep the mocking data object intact
- //mockHandler.data = requestSettings.data;
-
- mockHandler.cache = requestSettings.cache;
- mockHandler.timeout = requestSettings.timeout;
- mockHandler.global = requestSettings.global;
-
- // In the case of a timeout, we just need to ensure
- // an actual jQuery timeout (That is, our reponse won't)
- // return faster than the timeout setting.
- if ( mockHandler.isTimeout ) {
- if ( mockHandler.responseTime > 1 ) {
- origSettings.timeout = mockHandler.responseTime - 1;
- } else {
- mockHandler.responseTime = 2;
- origSettings.timeout = 1;
- }
- }
-
- // Set up onAfter[X] callback functions
- if ( $.isFunction( mockHandler.onAfterSuccess ) ) {
- origSettings.success = overrideCallback('Success', mockHandler);
- }
- if ( $.isFunction( mockHandler.onAfterError ) ) {
- origSettings.error = overrideCallback('Error', mockHandler);
- }
- if ( $.isFunction( mockHandler.onAfterComplete ) ) {
- origSettings.complete = overrideCallback('Complete', mockHandler);
- }
-
- copyUrlParameters(mockHandler, origSettings);
-
- /* jshint loopfunc:true */
- (function(mockHandler, requestSettings, origSettings, origHandler) {
-
- mockRequest = _ajax.call($, $.extend(true, {}, origSettings, {
- // Mock the XHR object
- xhr: function() { return xhr( mockHandler, requestSettings, origSettings, origHandler ); }
- }));
- })(mockHandler, requestSettings, origSettings, mockHandlers[k]);
- /* jshint loopfunc:false */
-
- return mockRequest;
- }
-
- // We don't have a mock request
- logger.log( null, ['No mock matched to request', url, origSettings] );
- if ($.mockjaxSettings.retainAjaxCalls) {
- unmockedAjaxCalls.push(origSettings);
- }
- if($.mockjaxSettings.throwUnmocked === true) {
- throw new Error('AJAX not mocked: ' + origSettings.url);
- }
- else { // trigger a normal request
- return _ajax.apply($, [origSettings]);
- }
- }
-
- /**
- * Copies URL parameter values if they were captured by a regular expression
- * @param {Object} mockHandler
- * @param {Object} origSettings
- */
- function copyUrlParameters(mockHandler, origSettings) {
- //parameters aren't captured if the URL isn't a RegExp
- if (!(mockHandler.url instanceof RegExp)) {
- return;
- }
- //if no URL params were defined on the handler, don't attempt a capture
- if (!mockHandler.hasOwnProperty('urlParams')) {
- return;
- }
- var captures = mockHandler.url.exec(origSettings.url);
- //the whole RegExp match is always the first value in the capture results
- if (captures.length === 1) {
- return;
- }
- captures.shift();
- //use handler params as keys and capture resuts as values
- var i = 0,
- capturesLength = captures.length,
- paramsLength = mockHandler.urlParams.length,
- //in case the number of params specified is less than actual captures
- maxIterations = Math.min(capturesLength, paramsLength),
- paramValues = {};
- for (i; i < maxIterations; i++) {
- var key = mockHandler.urlParams[i];
- paramValues[key] = captures[i];
- }
- origSettings.urlParams = paramValues;
- }
-
- /**
- * Clears handlers that mock given url
- * @param url
- * @returns {Array}
- */
- function clearByUrl(url) {
- var i, len,
- handler,
- results = [],
- match=url instanceof RegExp ?
- function(testUrl) { return url.test(testUrl); } :
- function(testUrl) { return url === testUrl; };
- for (i=0, len=mockHandlers.length; i<len; i++) {
- handler = mockHandlers[i];
- if (!match(handler.url)) {
- results.push(handler);
- } else {
- logger.log( handler, [
- 'Clearing mock: ' + (handler && handler.url),
- handler
- ] );
- }
- }
- return results;
- }
-
-
- // Public
-
- $.extend({
- ajax: handleAjax
- });
-
- var logger = {
- _log: function logger( mockHandler, args, level ) {
- var loggerLevel = $.mockjaxSettings.logging;
- if (mockHandler && typeof mockHandler.logging !== 'undefined') {
- loggerLevel = mockHandler.logging;
- }
- level = ( level === 0 ) ? level : ( level || logLevels.LOG );
- args = (args.splice) ? args : [ args ];
-
- // Is logging turned off for this mock or mockjax as a whole?
- // Or is this log message above the desired log level?
- if ( loggerLevel === false || loggerLevel < level ) {
- return;
- }
-
- if ( $.mockjaxSettings.log ) {
- return $.mockjaxSettings.log( mockHandler, args[1] || args[0] );
- } else if ( $.mockjaxSettings.logger && $.mockjaxSettings.logger[$.mockjaxSettings.logLevelMethods[level]] ) {
- return $.mockjaxSettings.logger[$.mockjaxSettings.logLevelMethods[level]].apply( $.mockjaxSettings.logger, args );
- }
- },
- /**
- * Convenience method for logging a DEBUG level message
- * @param {Object} m The mock handler in question
- * @param {Array|String|Object} a The items to log
- * @return {?} Will return whatever the $.mockjaxSettings.logger method for this level would return (generally 'undefined')
- */
- debug: function(m,a) { return logger._log(m,a,logLevels.DEBUG); },
- /**
- * @see logger.debug
- */
- log: function(m,a) { return logger._log(m,a,logLevels.LOG); },
- /**
- * @see logger.debug
- */
- info: function(m,a) { return logger._log(m,a,logLevels.INFO); },
- /**
- * @see logger.debug
- */
- warn: function(m,a) { return logger._log(m,a,logLevels.WARN); },
- /**
- * @see logger.debug
- */
- error: function(m,a) { return logger._log(m,a,logLevels.ERROR); }
- };
-
- var logLevels = {
- DEBUG: 4,
- LOG: 3,
- INFO: 2,
- WARN: 1,
- ERROR: 0
- };
-
- /**
- * Default settings for mockjax. Some of these are used for defaults of
- * individual mock handlers, and some are for the library as a whole.
- * For individual mock handler settings, please see the README on the repo:
- * https://github.com/jakerella/jquery-mockjax#api-methods
- *
- * @type {Object}
- */
- $.mockjaxSettings = {
- log: null, // this is only here for historical purposes... use $.mockjaxSettings.logger
- logger: window.console,
- logging: 2,
- logLevelMethods: ['error', 'warn', 'info', 'log', 'debug'],
- namespace: null,
- status: 200,
- statusText: 'OK',
- responseTime: DEFAULT_RESPONSE_TIME,
- isTimeout: false,
- throwUnmocked: false,
- retainAjaxCalls: true,
- contentType: 'text/plain',
- response: '',
- responseText: '',
- responseXML: '',
- proxy: '',
- proxyType: 'GET',
-
- lastModified: null,
- etag: '',
- headers: {
- etag: 'IJF@H#@923uf8023hFO@I#H#',
- 'content-type' : 'text/plain'
- }
- };
-
- /**
- * Create a new mock Ajax handler. When a mock handler is matched during a
- * $.ajax() call this library will intercept that request and fake a response
- * using the data and methods in the mock. You can see all settings in the
- * README of the main repository:
- * https://github.com/jakerella/jquery-mockjax#api-methods
- *
- * @param {Object} settings The mock handelr settings: https://github.com/jakerella/jquery-mockjax#api-methods
- * @return {Number} The id (index) of the mock handler suitable for clearing (see $.mockjax.clear())
- */
- $.mockjax = function(settings) {
- // Multiple mocks.
- if ( $.isArray(settings) ) {
- return $.map(settings, function(s) {
- return $.mockjax(s);
- });
- }
-
- var i = mockHandlers.length;
- mockHandlers[i] = settings;
- logger.log( settings, ['Created new mock handler', settings] );
- return i;
- };
-
- $.mockjax._logger = logger;
-
- /**
- * Remove an Ajax mock from those held in memory. This will prevent any
- * future Ajax request mocking for matched requests.
- * NOTE: Clearing a mock will not prevent the resolution of in progress requests
- *
- * @param {Number|String|RegExp} i OPTIONAL The mock to clear. If not provided, all mocks are cleared,
- * if a number it is the index in the in-memory cache. If a string or
- * RegExp, find a mock that matches that URL and clear it.
- * @return {void}
- */
- $.mockjax.clear = function(i) {
- if ( typeof i === 'string' || i instanceof RegExp) {
- mockHandlers = clearByUrl(i);
- } else if ( i || i === 0 ) {
- logger.log( mockHandlers[i], [
- 'Clearing mock: ' + (mockHandlers[i] && mockHandlers[i].url),
- mockHandlers[i]
- ] );
- mockHandlers[i] = null;
- } else {
- logger.log( null, 'Clearing all mocks' );
- mockHandlers = [];
- }
- mockedAjaxCalls = [];
- unmockedAjaxCalls = [];
- };
-
- /**
- * By default all Ajax requests performed after loading Mockjax are recorded
- * so that we can see which requests were mocked and which were not. This
- * method allows the developer to clear those retained requests.
- *
- * @return {void}
- */
- $.mockjax.clearRetainedAjaxCalls = function() {
- mockedAjaxCalls = [];
- unmockedAjaxCalls = [];
- logger.debug( null, 'Cleared retained ajax calls' );
- };
-
- /**
- * Retrive the mock handler with the given id (index).
- *
- * @param {Number} i The id (index) to retrieve
- * @return {Object} The mock handler settings
- */
- $.mockjax.handler = function(i) {
- if ( arguments.length === 1 ) {
- return mockHandlers[i];
- }
- };
-
- /**
- * Retrieve all Ajax calls that have been mocked by this library during the
- * current session (in other words, only since you last loaded this file).
- *
- * @return {Array} The mocked Ajax calls (request settings)
- */
- $.mockjax.mockedAjaxCalls = function() {
- return mockedAjaxCalls;
- };
-
- /**
- * Return all mock handlers that have NOT been matched against Ajax requests
- *
- * @return {Array} The mock handlers
- */
- $.mockjax.unfiredHandlers = function() {
- var results = [];
- for (var i=0, len=mockHandlers.length; i<len; i++) {
- var handler = mockHandlers[i];
- if (handler !== null && !handler.fired) {
- results.push(handler);
- }
- }
- return results;
- };
-
- /**
- * Retrieve all Ajax calls that have NOT been mocked by this library during
- * the current session (in other words, only since you last loaded this file).
- *
- * @return {Array} The mocked Ajax calls (request settings)
- */
- $.mockjax.unmockedAjaxCalls = function() {
- return unmockedAjaxCalls;
- };
-
- return $.mockjax;
-
-}));
-
-},{}],2:[function(require,module,exports){
-require('./test_util');
-require('./test_tree');
-require('./test_jqtree');
-
-QUnit.config.testTimeout = 5000;
-
-},{"./test_jqtree":3,"./test_tree":4,"./test_util":5}],3:[function(require,module,exports){
-var mockjax = require('jquery-mockjax')(jQuery, window);
-
-var utils_for_test = require('./utils_for_test');
-
-var example_data = utils_for_test.example_data;
-var example_data2 = utils_for_test.example_data2;
-var formatNodes = utils_for_test.formatNodes;
-var formatTitles = utils_for_test.formatTitles;
-var isNodeOpen = utils_for_test.isNodeOpen;
-var isNodeClosed = utils_for_test.isNodeClosed;
-
-var tree_vars = utils_for_test.getTreeVariables();
-
-var Position = tree_vars.Position;
-
-var test = QUnit.test;
-
-
-QUnit.module("jqtree", {
- beforeEach: function() {
- $('body').append('<div id="tree1"></div>');
- },
-
- afterEach: function() {
- var $tree = $('#tree1');
- $tree.tree('destroy');
- $tree.remove();
-
- $.mockjax.clear();
- }
-});
-
-test("create jqtree from data", function(assert) {
- $('#tree1').tree({
- data: example_data
- });
-
- assert.equal(
- $('#tree1').children().length, 1,
- 'number of children on level 0'
- );
- assert.ok(
- $('#tree1').children().is('ul.jqtree-tree'),
- 'first element is ul.jqtree-tree'
- );
- assert.equal(
- $('#tree1 ul.jqtree-tree > li').length, 2,
- 'number of children on level 1'
- );
- assert.ok(
- $('#tree1 ul.jqtree-tree li:eq(0)').is('li.jqtree-folder.jqtree-closed'),
- 'first child is li.jqtree-folder.jqtree-closed'
- );
- assert.ok(
- $('#tree1 ul.jqtree-tree li:eq(0) > .jqtree-element > a.jqtree-toggler').is('a.jqtree-toggler.jqtree-closed'),
- 'button in first folder'
- );
- assert.equal(
- $('#tree1 ul.jqtree-tree li:eq(0) > .jqtree-element span.jqtree-title').text(),
- 'node1'
- );
-});
-
-test('toggle', function(assert) {
- // setup
- var done = assert.async();
-
- // create tree
- var $tree = $('#tree1');
- var $node1;
- var node1;
-
- $tree.tree({
- data: example_data
- });
-
- $tree.bind(
- 'tree.open',
- function(e) {
- assert.ok(! isNodeClosed($node1), 'node1 is open');
-
- // 2. close node1
- $tree.tree('toggle', node1);
- }
- );
-
- $tree.bind(
- 'tree.close',
- function(e) {
- assert.ok(isNodeClosed($node1), 'node1 is closed');
-
- done();
- }
- );
-
- var tree = $tree.tree('getTree');
- node1 = tree.children[0];
- $node1 = $tree.find('ul.jqtree-tree li:eq(0)');
-
- // node1 is initially closed
- assert.ok(isNodeClosed($node1), 'node1 is closed');
-
- // 1. open node1
- $tree.tree('toggle', node1);
-});
-
-test("click event", function(assert) {
- var select_count = 0;
-
- // create tree
- var $tree = $('#tree1');
-
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- var $node1 = $tree.find('ul.jqtree-tree li:first');
- var $text_span = $node1.find('span:first');
-
- $tree.bind('tree.click', function(e) {
- assert.equal(e.node.name, 'node1');
- });
-
- var done = assert.async();
-
- $tree.bind('tree.select', function(e) {
- select_count += 1;
-
- if (select_count == 1) {
- assert.equal(e.node.name, 'node1');
-
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // deselect
- $text_span.click();
- }
- else {
- assert.equal(e.node, null);
- assert.equal(e.previous_node.name, 'node1');
- assert.equal($tree.tree('getSelectedNode'), false);
-
- done();
- }
- });
-
- // click on node1
- $text_span.click();
-});
-
-test('saveState', function(assert) {
- var $tree = $('#tree1');
-
- var saved_state;
-
- function setState(state) {
- saved_state = state;
- }
-
- function getState() {
- return saved_state;
- }
-
- function createTree() {
- $tree.tree({
- data: example_data,
- saveState: true,
- onSetStateFromStorage: setState,
- onGetStateFromStorage: getState,
- selectable: true
- });
- }
-
- // create tree
- createTree();
-
- // nodes are initially closed
- var tree = $tree.tree('getTree');
- tree.iterate(function(node) {
- assert.ok(! node.is_open, 'jqtree-closed');
- return true;
- });
-
- // open node1
- $tree.tree('toggle', tree.children[0]);
-
- // node1 is open
- assert.ok(tree.children[0].is_open, 'node1 is_open');
-
- // select node2
- $tree.tree('selectNode', tree.children[1]);
-
- // node2 is selected
- assert.equal(
- $tree.tree('getSelectedNode').name,
- 'node2',
- 'getSelectedNode (1)'
- );
-
- // create tree again
- $tree.tree('destroy');
- createTree();
-
- tree = $tree.tree('getTree');
- assert.ok(tree.children[0].is_open, 'node1 is_open');
- assert.ok(! tree.children[1].is_open, 'node2 is closed');
-
- // node2 is selected
- assert.equal(
- $tree.tree('getSelectedNode').name,
- 'node2',
- 'getSelectedNode (2)'
- );
-});
-
-test('getSelectedNode', function(assert) {
- var $tree = $('#tree1');
-
- // create tree
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- // there is no node selected
- assert.equal(
- $tree.tree('getSelectedNode'),
- false,
- 'getSelectedNode'
- );
-
- // select node1
- var tree = $tree.tree('getTree');
- var node1 = tree.children[0];
- $tree.tree('selectNode', node1);
-
- // node1 is selected
- assert.equal(
- $tree.tree('getSelectedNode').name,
- 'node1',
- 'getSelectedNode'
- );
-});
-
-test("toJson", function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- // 1. call toJson
- assert.equal(
- $tree.tree('toJson'),
- '[{"name":"node1","id":123,"int_property":1,"str_property":"1",'+
- '"children":[{"name":"child1","id":125,"int_property":2},{"name":'+
- '"child2","id":126}]},{"name":"node2","id":124,"int_property":3,'+
- '"str_property":"3","children":[{"name":"child3","id":127}]}]'
- );
-
- // Check that properties 'children', 'parent' and 'element' still exist.
- var tree = $tree.tree('getTree');
- assert.equal(tree.children.length, 2);
- assert.ok(tree.children[0].parent != undefined, 'parent');
- assert.ok($(tree.children[0].element).is('li'), 'element');
-});
-
-test('loadData', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- autoOpen: true
- });
-
- // first node is 'node1'
- assert.equal(
- $tree.find('> ul > li:first .jqtree-element:first > span').text(),
- 'node1'
- );
-
- // - load new data
- $tree.tree('loadData', example_data2);
-
- // first node is 'main'
- assert.equal(
- $tree.find('> ul > li:first .jqtree-element:first > span').text(),
- 'main'
- );
-
- // - load new data under node 'child3'
- $tree.tree('loadData', example_data);
-
- var child3 = $tree.tree('getNodeByName', 'child3');
-
- var data = [
- { label: 'c4', id: 200 },
- {
- label: 'c5', id: 201,
- children: [
- { label: 'c6', id: 202 }
- ]
- }
- ];
- $tree.tree('loadData', data, child3);
-
- // first node in html is still 'node1'
- assert.equal(
- $tree.find('li:eq(0)').find('.jqtree-element:eq(0) span.jqtree-title').text(),
- 'node1'
- );
-
- // Node 'child3' now has a children 'c4' and 'c5'
- var $child3 = $tree.find('span:contains(child3)');
- var $li = $child3.closest('li');
- assert.equal(
- $li.children('ul').children('li:eq(0)').find('.jqtree-element span.jqtree-title').text(),
- 'c4'
- );
-
- // Node 'child3' must have toggler button
- assert.ok(
- $child3.prev().is('a.jqtree-toggler'),
- "node 'child3' must have toggler button"
- );
-
- // - select node 'c5' and load new data under 'child3'
- var c5 = $tree.tree('getNodeByName', 'c5');
- $tree.tree('selectNode', c5);
-
- assert.equal($tree.tree('getSelectedNode').name, 'c5');
-
- var data2 = [
- { label: 'c7' },
- { label: 'c8' }
- ];
- $tree.tree('loadData', data2, child3);
-
- // c5 must be deselected
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // - select c7; load new data under child3; note that c7 has no id
- $tree.tree('selectNode', $tree.tree('getNodeByName', 'c7'));
-
- assert.equal($tree.tree('getSelectedNode').name, 'c7');
-
- $tree.tree('loadData', [ 'c9' ], child3);
-
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // - select c9 (which has no id); load new nodes under child2
- $tree.tree('selectNode', $tree.tree('getNodeByName', 'c9'));
-
- var child2 = $tree.tree('getNodeByName', 'child2');
- $tree.tree('loadData', [ 'c10' ], child2);
-
- assert.equal($tree.tree('getSelectedNode').name, 'c9');
-});
-
-test('openNode and closeNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var node2 = $tree.tree('getNodeByName', 'node2');
- assert.equal(node2.name, 'node2');
- assert.equal(node2.is_open, undefined);
-
- // 1. open node2
- $tree.tree('openNode', node2, false);
- assert.equal(node2.is_open, true);
- assert.equal(isNodeOpen($(node2.element)), true);
-
- // 2. close node2
- $tree.tree('closeNode', node2, false);
- assert.equal(node2.is_open, false);
- assert.equal(isNodeClosed($(node2.element)), true);
-
- // 3. open child1
- var node1 = $tree.tree('getNodeByName', 'node1');
- var child1 = $tree.tree('getNodeByName', 'child1');
-
- // add a child to child1 so it is a folder
- $tree.tree('appendNode', 'child1a', child1);
-
- // node1 is initialy closed
- assert.equal(node1.is_open, undefined);
-
- // open child1
- $tree.tree('openNode', child1, false);
-
- // node1 and child1 are now open1
- assert.equal(node1.is_open, true);
- assert.equal(child1.is_open, true);
-});
-
-function test_open_node_with_callback(slide, include_slide_param, assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var node2 = $tree.tree('getNodeByName', 'node2');
-
- // open node2
- var done = assert.async();
-
- function handleOpenNode(node) {
- assert.equal(node.name, 'node2');
- assert.ok(node.is_open);
-
- done();
- }
-
- if (include_slide_param) {
- $tree.tree('openNode', node2, slide, handleOpenNode);
- }
- else {
- $tree.tree('openNode', node2, handleOpenNode);
- }
-}
-
-test('openNode with callback with slide true', function(assert) {
- test_open_node_with_callback(true, true, assert);
-});
-
-test('openNode with callback with slide false', function(assert) {
- test_open_node_with_callback(false, true, assert);
-});
-
-test('openNode with callback with slide null', function(assert) {
- test_open_node_with_callback(null, true, assert);
-});
-
-test('openNode with callback without slide param', function(assert) {
- test_open_node_with_callback(null, false, assert);
-});
-
-test('selectNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- var node1 = $tree.tree('getTree').children[0];
- var node2 = $tree.tree('getTree').children[1];
- var child3 = node2.children[0];
-
- assert.equal(child3.name, 'child3');
- assert.equal(node1.is_open, undefined);
- assert.equal(node2.is_open, undefined);
- assert.equal(child3.is_open, undefined);
-
- // -- select node 'child3', which is a child of 'node2'; must_open_parents = true
- $tree.tree('selectNode', child3, true);
- assert.equal($tree.tree('getSelectedNode').name, 'child3');
-
- assert.equal(node1.is_open, undefined);
- assert.equal(node2.is_open, true);
- assert.equal(child3.is_open, undefined);
-
- // -- select node 'node1'
- $tree.tree('selectNode', node1);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // -- is 'node1' selected?
- assert.equal($tree.tree('isNodeSelected', node1), true);
-
- // -- deselect
- $tree.tree('selectNode', null);
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // -- is 'node1' selected?
- assert.equal($tree.tree('isNodeSelected', node1), false);
-});
-
-test('selectNode when another node is selected', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- var node1 = $tree.tree('getTree').children[0];
- var node2 = $tree.tree('getTree').children[1];
-
- // -- select node 'node2'
- $tree.tree('selectNode', node2);
- assert.equal($tree.tree('getSelectedNode').name, 'node2');
-
- // -- setting event
- // -- is node 'node2' named 'deselected_node' in object's attributes?
- var is_select_event_fired = false;
-
- $tree.bind('tree.select', function(e) {
- assert.equal(e.deselected_node, node2);
- is_select_event_fired = true;
- });
-
- // -- select node 'node1'; node 'node2' is selected before it
- $tree.tree('selectNode', node1);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- assert.equal($tree.tree('isNodeSelected', node1), true);
-
- // event was fired
- assert.ok(is_select_event_fired);
-});
-
-test('click toggler', function(assert) {
- // setup
- var done = assert.async();
-
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- var $title = $tree.find('li:eq(0)').find('> .jqtree-element > span.jqtree-title');
- assert.equal($title.text(), 'node1');
- var $toggler = $title.prev();
- assert.ok($toggler.is('a.jqtree-toggler.jqtree-closed'));
-
- $tree.bind('tree.open', function(e) {
- // 2. handle 'open' event
- assert.equal(e.node.name, 'node1');
-
- // 3. click toggler again
- $toggler.click();
- });
-
- $tree.bind('tree.close', function(e) {
- assert.equal(e.node.name, 'node1');
- done();
- });
-
- // 1. click toggler of 'node1'
- $toggler.click();
-});
-
-test('getNodeById', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
- var node2 = $tree.tree('getNodeByName', 'node2');
-
- // 1. get 'node2' by id
- assert.equal(
- $tree.tree('getNodeById', 124).name,
- 'node2'
- );
-
- // 2. get id that does not exist
- assert.equal($tree.tree('getNodeById', 333), null);
-
- // 3. get id by string
- assert.equal(
- $tree.tree('getNodeById', '124').name,
- 'node2'
- );
-
- // 4. add node with string id; search by int
- $tree.tree(
- 'appendNode',
- {
- label: 'abc',
- id: '234'
- }
- );
-
- assert.equal(
- $tree.tree('getNodeById', 234).name,
- 'abc'
- );
- assert.equal(
- $tree.tree('getNodeById', '234').name,
- 'abc'
- );
-
- // 5. load subtree in node2
- var subtree_data = [
- {
- label: 'sub1',
- id: 200,
- children: [
- {label: 'sub2', id: 201}
- ]
- }
- ];
- $tree.tree('loadData', subtree_data, node2);
- var t = $tree.tree('getTree');
-
- assert.equal(
- $tree.tree('getNodeById', 200).name,
- 'sub1'
- );
- assert.equal(
- $tree.tree('getNodeById', 201).name,
- 'sub2'
- );
-});
-
-test('autoOpen', function(assert) {
- var $tree = $('#tree1');
-
- function formatOpenFolders() {
- var open_nodes = [];
- $tree.find('li').each(function() {
- var $li = $(this);
- if ($li.is('.jqtree-folder') && ! $li.is('.jqtree-closed')) {
- var label = $li.children('.jqtree-element').find('span').text();
- open_nodes.push(label);
- };
- });
-
- return open_nodes.join(';');
- }
-
- /*
- -l1n1 (level 0)
- ----l2n1 (1)
- ----l2n2 (1)
- -------l3n1 (2)
- ----------l4n1 (3)
- -l1n2
- */
- var data = [
- {
- label: 'l1n1',
- children: [
- 'l2n1',
- {
- label: 'l2n2',
- children: [
- {
- label: 'l3n1',
- children: [
- 'l4n1'
- ]
- }
- ]
- }
- ]
- },
- 'l1n2'
- ];
-
- // 1. autoOpen is false
- $tree.tree({
- data: data,
- autoOpen: false
- });
- assert.equal(formatOpenFolders(), '');
-
- $tree.tree('destroy');
-
- // 2. autoOpen is true
- $tree.tree({
- data: data,
- autoOpen: true
- });
- assert.equal(formatOpenFolders(), 'l1n1;l2n2;l3n1');
-
- $tree.tree('destroy');
-
- // 3. autoOpen level 1
- $tree.tree({
- data: data,
- autoOpen: 1
- });
- assert.equal(formatOpenFolders(), 'l1n1;l2n2');
-});
-
-test('onCreateLi', function(assert) {
- // 1. init tree with onCreateLi
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- onCreateLi: function(node, $li) {
- var $span = $li.children('.jqtree-element').find('span');
- $span.html('_' + node.name + '_');
- }
- });
-
- assert.equal(
- $tree.find('span:eq(0)').text(),
- '_node1_'
- );
-});
-
-test('save state', function(assert) {
- // setup
- var state = null;
-
- // Fake $.cookie plugin for browsers that do not support localstorage
- $.cookie = function(key, param2, param3) {
- if (typeof param3 == 'object') {
- // set
- state = param2;
- }
- else {
- // get
- return state;
- }
- }
-
- // Remove state from localstorage
- if (typeof localStorage != 'undefined') {
- localStorage.setItem('my_tree', null);
- }
-
- // 1. init tree
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true,
- saveState: 'my_tree'
- });
-
- var tree = $tree.tree('getTree');
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // 2. select node -> state is saved
- $tree.tree('selectNode', tree.children[0]);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // 3. init tree again
- $tree.tree('destroy');
-
- $tree.tree({
- data: example_data,
- selectable: true,
- saveState: 'my_tree'
- });
-
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- $.cookie = null;
-});
-
-test('generate hit areas', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- // 1. get hit areas
- var node = $tree.tree('getNodeById', 123);
- var hit_areas = $tree.tree('testGenerateHitAreas', node);
-
- var strings = $.map(hit_areas, function(hit_area) {
- return hit_area.node.name + ' ' + Position.getName(hit_area.position);
- });
- assert.equal(strings.join(';'), 'node1 none;node2 inside;node2 after');
-});
-
-test('removeNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- selectable: true
- });
-
- // 1. Remove selected node; node is 'child1'
- var child1 = $tree.tree('getNodeByName', 'child1');
- $tree.tree('selectNode', child1);
-
- assert.equal($tree.tree('getSelectedNode').name, 'child1');
-
- $tree.tree('removeNode', child1);
-
- assert.equal(
- formatTitles($tree),
- 'node1 child2 node2 child3'
- );
-
- // getSelectedNode must now return false
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // 2. No node is selected; remove child3
- $tree.tree('loadData', example_data);
-
- var child3 = $tree.tree('getNodeByName', 'child3');
- $tree.tree('removeNode', child3);
-
- assert.equal(
- formatTitles($tree),
- 'node1 child1 child2 node2'
- );
-
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // 3. Remove parent of selected node
- $tree.tree('loadData', example_data);
-
- child1 = $tree.tree('getNodeByName', 'child1');
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- $tree.tree('selectNode', child1);
-
- $tree.tree('removeNode', node1);
-
- // node is unselected
- assert.equal($tree.tree('getSelectedNode'), false);
-
- // 4. Remove unselected node without an id
- $tree.tree('loadData', example_data2);
-
- var c1 = $tree.tree('getNodeByName', 'c1');
-
- $tree.tree('removeNode', c1);
-
- assert.equal(
- formatTitles($tree),
- 'main c2'
- );
-});
-
-test('appendNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // 1. Add child3 to node1
- $tree.tree('appendNode', 'child3', node1);
-
- assert.equal(
- formatTitles($(node1.element)),
- 'node1 child1 child2 child3'
- );
-
- // 2. Add child4 to child1
- var child1 = $tree.tree('getNodeByName', 'child1');
-
- // Node 'child1' does not have a toggler button
- assert.equal(
- $(child1.element).find('> .jqtree-element > .jqtree-toggler').length,
- 0
- );
-
- $tree.tree('appendNode', 'child4', child1);
-
- assert.equal(formatTitles($(child1.element)), 'child1 child4');
-
- // Node 'child1' must get a toggler button
- assert.equal(
- $(child1.element).find('> .jqtree-element > .jqtree-toggler').length,
- 1
- );
-});
-
-test('prependNode', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // 1. Prepend child0 to node1
- $tree.tree('prependNode', 'child0', node1);
-
- assert.equal(
- formatTitles($(node1.element)),
- 'node1 child0 child1 child2'
- );
-});
-
-test('init event for local data', function(assert) {
- // setup
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- $tree.bind('tree.init', function() {
- // Check that we can call functions in 'tree.init' event
- assert.equal($tree.tree('getNodeByName', 'node2').name, 'node2');
-
- done();
- });
-
- // init tree
- $tree.tree({
- data: example_data
- });
-});
-
-test('init event for ajax', function(assert) {
- // setup
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- mockjax({
- url: '/tree/',
- responseText: example_data,
- logging: false
- });
-
- $tree.bind('tree.init', function() {
- assert.equal($tree.tree('getNodeByName', 'node2').name, 'node2');
-
- done();
- });
-
- // init tree
- $tree.tree({
- dataUrl: '/tree/'
- });
-});
-
-test('updateNode', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 node2 child3');
-
- // -- update label
- var node2 = $tree.tree('getNodeByName', 'node2');
- $tree.tree('updateNode', node2, 'CHANGED');
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 CHANGED child3');
- assert.equal(node2.name, 'CHANGED');
-
- // -- update data
- $tree.tree(
- 'updateNode',
- node2,
- {
- name: 'xyz',
- tag1: 'abc'
- }
- );
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 xyz child3');
- assert.equal(node2.name, 'xyz');
- assert.equal(node2.tag1, 'abc');
-
- // - update id
- assert.equal(node2.id, 124);
-
- $tree.tree('updateNode', node2, {id: 555});
-
- assert.equal(node2.id, 555);
- assert.equal(node2.name, 'xyz');
-
- // get node by id
- var node_555 = $tree.tree('getNodeById', 555);
- assert.equal(node_555.name, 'xyz');
-
- var node_124 = $tree.tree('getNodeById', 124);
- assert.equal(node_124, undefined);
-
- // update child1
- var child1 = $tree.tree('getNodeByName', 'child1');
-
- $tree.tree('updateNode', child1, 'child1a');
-
- assert.equal(formatTitles($tree), 'node1 child1a child2 xyz child3');
-
- // select child1
- $tree.tree('selectNode', child1);
- $tree.tree('updateNode', child1, 'child1b');
-
- assert.ok($(child1.element).hasClass('jqtree-selected'));
-
- // add children to child1
- $tree.tree(
- 'updateNode',
- child1,
- {
- id: child1.id,
- name: 'child1',
- children: [
- { id: 5, name: 'child1-1' }
- ]
- }
- );
-
- assert.equal(formatTitles($tree), 'node1 child1 child1-1 child2 xyz child3');
-
- // remove children
- $tree.tree(
- 'updateNode',
- child1,
- {
- id: child1.id,
- name: 'child1',
- children: []
- }
- );
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 xyz child3');
-});
-
-test('moveNode', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
-
- var child1 = $tree.tree('getNodeByName', 'child1');
- var child2 = $tree.tree('getNodeByName', 'child2');
- var node1 = $tree.tree('getNodeByName', 'node1');
- var node2 = $tree.tree('getNodeByName', 'node2');
-
- // -- Move child1 after node2
- $tree.tree('moveNode', child1, node2, 'after');
-
- assert.equal(formatTitles($tree), 'node1 child2 node2 child3 child1');
-
- // -- Check that illegal moves are skipped
- $tree.tree('moveNode', node1, child2, 'inside');
-});
-
-test('load on demand', function(assert) {
- // setup
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- $tree.tree({
- data: [
- {
- id: 1,
- label: 'node1',
- load_on_demand: true
- }
- ],
- dataUrl: '/tree/'
- });
-
- mockjax({
- url: '*',
- response: function(options) {
- assert.equal(options.url, '/tree/', '2');
- assert.deepEqual(options.data, { 'node' : 1 }, '3');
-
- this.responseText = [
- {
- id: 2,
- label: 'child1'
- }
- ];
- },
- logging: false
- });
-
- // -- open node
- function handleOpenNode(node) {
- assert.equal(node.name, 'node1');
- assert.equal(formatTitles($tree), 'node1 child1', '4');
-
- done();
- }
-
- var node1 = $tree.tree('getNodeByName', 'node1');
- assert.equal(formatTitles($tree), 'node1', '1');
-
- $tree.tree('openNode', node1, handleOpenNode);
-});
-
-test('addNodeAfter', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // -- add node after node1
- $tree.tree('addNodeAfter', 'node3', node1);
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 node3 node2 child3');
-});
-
-test('addNodeBefore', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // -- add node before node1
- var new_node = $tree.tree('addNodeBefore', 'node3', node1);
-
- assert.equal(formatTitles($tree), 'node3 node1 child1 child2 node2 child3');
-});
-
-test('addParentNode', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- $tree.tree({ data: example_data });
- var child3 = $tree.tree('getNodeByName', 'child3');
-
- // -- add parent to child3
- $tree.tree('addParentNode', 'node3', child3);
-
- assert.equal(formatTitles($tree), 'node1 child1 child2 node2 node3 child3');
-});
-
-test('mouse events', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data,
- dragAndDrop: true,
- autoOpen: true
- });
- $tree.tree('setMouseDelay', 0);
-
- function getTitleElement(node_name) {
- var node = $tree.tree('getNodeByName', node_name);
- var $el = $(node.element);
- return $($el.find('.jqtree-title'));
- }
-
- var $node1 = getTitleElement('node1');
- var $child3 = getTitleElement('child3');
-
- // Move node1 inside child3
- // trigger mousedown event on node1
- $node1.trigger(
- $.Event('mousedown', { which: 1 })
- );
-
- // trigger mouse move to child3
- var child3_offset = $child3.offset();
- $tree.trigger(
- $.Event('mousemove', { pageX: child3_offset.left, pageY: child3_offset.top })
- );
- $tree.trigger('mouseup');
-
- assert.equal(
- formatTitles($tree),
- 'node2 child3 node1 child1 child2'
- );
-});
-
-test('multiple select', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({ data: example_data });
-
- var child1 = $tree.tree('getNodeByName', 'child1');
- var child2 = $tree.tree('getNodeByName', 'child2');
-
- // -- add nodes to selection
- // todo: more nodes as parameters?
- // todo: rename to 'selection.add' or 'selection' 'add'?
- $tree.tree('addToSelection', child1);
- $tree.tree('addToSelection', child2);
-
- // -- get selected nodes
- var selected_nodes = $tree.tree('getSelectedNodes');
- assert.equal(
- formatNodes(selected_nodes),
- 'child1 child2'
- );
-});
-
-test('keyboard', function(assert) {
- // setup
- var $tree = $('#tree1');
-
- function keyDown(key) {
- $tree.trigger(
- $.Event('keydown', { which: key })
- );
- }
-
- $tree.tree({ data: example_data });
-
- var node1 = $tree.tree('getNodeByName', 'node1');
-
- // select node1
- $tree.tree('selectNode', node1);
- assert.equal(node1.is_open, undefined);
-
- // - move down; -> node2
- keyDown(40);
- assert.equal($tree.tree('getSelectedNode').name, 'node2');
-
- // - move up; -> back to node1
- keyDown(38);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // - move right; open node1
- keyDown(39);
- assert.equal(node1.is_open, true);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-
- // - select child3 and move up -> node2
- $tree.tree('selectNode', $tree.tree('getNodeByName', 'child3'));
- keyDown(38);
- assert.equal($tree.tree('getSelectedNode').name, 'node2');
-
- // - move up -> child2
- keyDown(38);
- assert.equal($tree.tree('getSelectedNode').name, 'child2');
-
- // - select node1 and move left -> close
- $tree.tree('selectNode', node1);
- keyDown(37);
- assert.equal(node1.is_open, false);
- assert.equal($tree.tree('getSelectedNode').name, 'node1');
-});
-
-test('getNodesByProperty', function(assert) {
- // setup
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
- var node2 = $tree.tree('getNodeByName', 'node2');
-
- // 1. get 'node1' by property
- assert.equal(
- $tree.tree('getNodesByProperty', 'int_property', 1)[0].name,
- 'node1'
- );
-
- // 2. get property that does not exist in any node
- assert.equal($tree.tree('getNodesByProperty', 'int_property', 123).length, 0);
-
- // 3. get string property
- assert.equal(
- $tree.tree('getNodesByProperty', 'str_property', '1')[0].name,
- 'node1'
- );
-
- // 4. add node with string id; search by int
- $tree.tree(
- 'appendNode',
- {
- label: 'abc',
- id: '234',
- str_property: '111',
- int_property: 111
- }
- );
-
- assert.equal(
- $tree.tree('getNodesByProperty', 'int_property', 111)[0].name,
- 'abc'
- );
- assert.equal(
- $tree.tree('getNodesByProperty', 'str_property', '111')[0].name,
- 'abc'
- );
-
- // 5. load subtree in node2
- var subtree_data = [
- {
- label: 'sub1',
- id: 200,
- int_property: 222,
- children: [
- {label: 'sub2', id: 201, int_property: 444}
- ]
- }
- ];
- $tree.tree('loadData', subtree_data, node2);
- var t = $tree.tree('getTree');
-
- assert.equal(
- $tree.tree('getNodesByProperty', 'int_property', 222)[0].name,
- 'sub1'
- );
- assert.equal(
- $tree.tree('getNodesByProperty', 'int_property', 444)[0].name,
- 'sub2'
- );
-});
-
-test('dataUrl extra options', function(assert) {
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- mockjax({
- url: '*',
- response: function(options) {
- // 2. handle ajax request
- // expect 'headers' option
- assert.equal(options.url, '/tree2/');
- assert.deepEqual(options.headers, {'abc': 'def'});
-
- done();
- },
- logging: false
- });
-
- // 1. init tree
- // dataUrl contains 'headers' option
- $tree.tree({
- dataUrl: {
- 'url': '/tree2/',
- 'headers': {'abc': 'def'}
- }
- });
-});
-
-test('dataUrl is function', function(assert) {
- var done = assert.async();
-
- var $tree = $('#tree1');
-
- mockjax({
- url: '*',
- response: function(options) {
- // 2. handle ajax request
- // expect 'headers' option
- assert.equal(options.url, '/tree3/');
- assert.deepEqual(options.headers, {'abc': 'def'});
-
- done();
- },
- logging: false
- });
-
- // 1. init tree
- // dataUrl is a function
- $tree.tree({
- dataUrl: function(node) {
- return {
- 'url': '/tree3/',
- 'headers': {'abc': 'def'}
- };
- }
- });
-});
-
-test('getNodeByHtmlElement', function(assert) {
- var $tree = $('#tree1');
- $tree.tree({
- data: example_data
- });
-
- var $el = $('.jqtree-title');
-
- // Get node for jquery element
- var node = $tree.tree('getNodeByHtmlElement', $el);
- assert.equal(node.name, 'node1');
-
- // Same for html element
- node = $tree.tree('getNodeByHtmlElement', $el[0]);
- assert.equal(node.name, 'node1');
-});
-
-test('onLoadFailed', function(assert) {
- mockjax({
- url: '/tree/',
- status: 500,
- responseText: 'test error',
- logging: false
- });
-
- var done = assert.async();
-
- function handleLoadFailed(e) {
- assert.equal(e.responseText, 'test error');
-
- done();
- }
-
- var $tree = $('#tree1');
- $tree.tree({
- dataUrl: '/tree/',
- onLoadFailed: handleLoadFailed
- });
-});
-
-},{"./utils_for_test":6,"jquery-mockjax":1}],4:[function(require,module,exports){
-var utils_for_test = require('./utils_for_test');
-
-var example_data = utils_for_test.example_data;
-var formatNodes = utils_for_test.formatNodes;
-
-var tree_vars = utils_for_test.getTreeVariables();
-
-var Node = tree_vars.Node;
-var Position = tree_vars.Position;
-
-var test = QUnit.test;
-
-
-QUnit.module("Tree");
-test('constructor', function(assert) {
- // 1. Create node from string
- var node = new Node('n1');
-
- assert.equal(node.name, 'n1');
- assert.equal(node.children.length, 0);
- assert.equal(node.parent, null);
-
- // 2. Create node from object
- node = new Node({
- label: 'n2',
- id: 123,
- parent: 'abc', // parent must be ignored
- children: ['c'], // children must be ignored
- url: '/'
- });
-
- assert.equal(node.name, 'n2');
- assert.equal(node.id, 123);
- assert.equal(node.url, '/');
- assert.equal(node.label, undefined);
- assert.equal(node.children.length, 0);
- assert.equal(node.parent, null);
-});
-
-test("create tree from data", function(assert) {
- function checkData(tree) {
- assert.equal(
- formatNodes(tree.children),
- 'node1 node2',
- 'nodes on level 1'
- );
- assert.equal(
- formatNodes(tree.children[0].children),
- 'child1 child2',
- 'children of node1'
- );
- assert.equal(
- formatNodes(tree.children[1].children),
- 'child3',
- 'children of node2'
- );
- assert.equal(
- tree.children[0].id,
- 123,
- 'id'
- );
- }
-
- // - create tree from example data
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
- checkData(tree);
-
- // - create tree from new data format
- var data = [
- {
- label: 'node1',
- id: 123,
- children: ['child1', 'child2'] // nodes are only defined by a string
- },
- {
- label: 'node2',
- id: 124,
- children: ['child3']
- }
- ];
- var tree = new Node(null, true);
- tree.loadFromData(data);
- checkData(tree);
-});
-
-test("addChild", function(assert) {
- var tree = new Node('tree1', true);
- tree.addChild(
- new Node('abc')
- );
- tree.addChild(
- new Node('def')
- );
-
- assert.equal(
- formatNodes(tree.children),
- 'abc def',
- 'children'
- );
-
- var node = tree.children[0];
- assert.equal(
- node.parent.name,
- 'tree1',
- 'parent of node'
- );
-});
-
-test('addChildAtPosition', function(assert) {
- var tree = new Node(null, true);
- tree.addChildAtPosition(new Node('abc'), 0); // first
- tree.addChildAtPosition(new Node('ghi'), 2); // index 2 does not exist
- tree.addChildAtPosition(new Node('def'), 1);
- tree.addChildAtPosition(new Node('123'), 0);
-
- assert.equal(
- formatNodes(tree.children),
- '123 abc def ghi',
- 'children'
- );
-});
-
-test('removeChild', function(assert) {
- var tree = new Node(null, true);
-
- var abc = new Node({'label': 'abc', 'id': 1});
- var def = new Node({'label': 'def', 'id': 2});
- var ghi = new Node({'label': 'ghi', 'id': 3});
-
- tree.addChild(abc);
- tree.addChild(def);
- tree.addChild(ghi);
-
- var jkl = new Node({'label': 'jkl', 'id': 4});
- def.addChild(jkl);
-
- assert.equal(
- formatNodes(tree.children),
- 'abc def ghi',
- 'children'
- );
-
- assert.equal(tree.id_mapping[2].name, 'def');
- assert.equal(tree.id_mapping[4].name, 'jkl');
-
- // remove 'def'
- tree.removeChild(def);
- assert.equal(
- formatNodes(tree.children),
- 'abc ghi',
- 'children'
- );
-
- assert.equal(tree.id_mapping[2], null);
- assert.equal(tree.id_mapping[4], null);
-
- // remove 'ghi'
- tree.removeChild(ghi);
- assert.equal(
- formatNodes(tree.children),
- 'abc',
- 'children'
- );
-
- // remove 'abc'
- tree.removeChild(abc);
- assert.equal(
- formatNodes(tree.children),
- '',
- 'children'
- );
-});
-
-test('getChildIndex', function(assert) {
- // setup
- var tree = new Node(null, true);
-
- var abc = new Node('abc');
- var def = new Node('def');
- var ghi = new Node('ghi');
- tree.addChild(abc);
- tree.addChild(def);
- tree.addChild(ghi);
-
- // 1. Get child index of 'def'
- assert.equal(tree.getChildIndex(def), 1);
-
- // 2. Get child index of non-existing node
- assert.equal(tree.getChildIndex(new Node('xyz')), -1);
-});
-
-test('hasChildren', function(assert) {
- var tree = new Node(null, true);
- assert.equal(
- tree.hasChildren(),
- false,
- 'tree without children'
- );
-
- tree.addChild(new Node('abc'));
- assert.equal(
- tree.hasChildren(),
- true,
- 'tree has children'
- );
-});
-
-test('iterate', function(assert) {
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // iterate over all the nodes
- var nodes = [];
- tree.iterate(
- function(node, level) {
- nodes.push(node);
- return true;
- }
- );
-
- assert.equal(
- formatNodes(nodes),
- 'node1 child1 child2 node2 child3',
- 'all nodes'
- );
-
- // iterate over nodes on first level
- nodes = [];
- tree.iterate(
- function(node, level) {
- nodes.push(node);
- return false;
- }
- );
-
- assert.equal(
- formatNodes(nodes),
- 'node1 node2',
- 'nodes on first level'
- );
-
- // add child 4
- var node3 = tree.getNodeById(124).children[0];
- node3.addChild(
- new Node('child4')
- );
-
- // test level parameter
- nodes = [];
- tree.iterate(
- function(node, level) {
- nodes.push(node.name + ' ' + level);
- return true;
- }
- );
-
- assert.equal(
- nodes.join(','),
- 'node1 0,child1 1,child2 1,node2 0,child3 1,child4 2'
- );
-});
-
-test('moveNode', function(assert) {
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- /*
- node1
- ---child1
- ---child2
- node2
- ---child3
- */
-
- var node1 = tree.children[0];
- var node2 = tree.children[1];
- var child1 = node1.children[0];
- var child2 = node1.children[1];
- assert.equal(node2.name, 'node2', 'node2 name');
- assert.equal(child2.name, 'child2', 'child2 name');
-
- // move child2 after node2
- tree.moveNode(child2, node2, Position.AFTER);
-
- /*
- node1
- ---child1
- node2
- ---child3
- child2
- */
- assert.equal(
- formatNodes(tree.children),
- 'node1 node2 child2',
- 'tree nodes at first level'
- );
- assert.equal(
- formatNodes(node1.children),
- 'child1',
- 'node1 children'
- );
-
- // move child1 inside node2
- // this means it's the first child
- tree.moveNode(child1, node2, Position.INSIDE);
-
- /*
- node1
- node2
- ---child1
- ---child3
- child2
- */
- assert.equal(
- formatNodes(node2.children),
- 'child1 child3',
- 'node2 children'
- );
- assert.equal(
- formatNodes(node1.children),
- '',
- 'node1 has no children'
- );
-
- // move child2 before child1
- tree.moveNode(child2, child1, Position.BEFORE);
-
- /*
- node1
- node2
- ---child2
- ---child1
- ---child3
- */
- assert.equal(
- formatNodes(node2.children),
- 'child2 child1 child3',
- 'node2 children'
- );
- assert.equal(
- formatNodes(tree.children),
- 'node1 node2',
- 'tree nodes at first level'
- );
-});
-
-test('initFromData', function(assert) {
- var data =
- {
- label: 'main',
- children: [
- 'c1',
- {
- label: 'c2',
- id: 201
- }
- ]
- };
- var node = new Node(null, true);
- node.initFromData(data);
-
- assert.equal(node.name, 'main')
- assert.equal(
- formatNodes(node.children),
- 'c1 c2',
- 'children'
- );
- assert.equal(node.children[1].id, 201);
-});
-
-test('getData', function(assert) {
- // 1. empty node
- var node = new Node(null, true);
- assert.deepEqual(node.getData(), []);
-
- // 2.node with data
- node.loadFromData(
- [
- {
- label: 'n1',
- children: [
- {
- label: 'c1'
- }
- ]
- }
- ]
- );
- assert.deepEqual(
- node.getData(),
- [
- {
- name: 'n1',
- children: [
- {
- name: 'c1'
- }
- ]
- }
- ]
- );
-
- // 3. get data including parent
- var n1 = node.getNodeByName('n1');
-
- assert.deepEqual(
- n1.getData(true),
- [
- {
- name: 'n1',
- children: [
- { name: 'c1'}
- ]
- }
- ]
- );
-});
-
-test('addAfter', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- /*
- -node1
- ---c1
- ---c2
- -node2
- ---c3
- */
-
- assert.equal(formatNodes(tree.children), 'node1 node2');
-
- // - Add 'node_b' after node2
- var node2 = tree.getNodeByName('node2');
- node2.addAfter('node_b');
-
- assert.equal(formatNodes(tree.children), 'node1 node2 node_b');
-
- var node_b = tree.getNodeByName('node_b');
- assert.equal(node_b.name, 'node_b');
-
- // - Add 'node_a' after node1
- var node1 = tree.getNodeByName('node1');
- node1.addAfter('node_a');
-
- assert.equal(formatNodes(tree.children), 'node1 node_a node2 node_b');
-
- // - Add 'node_c' after node_b; new node is an object
- node_b.addAfter({
- label: 'node_c',
- id: 789
- });
-
- var node_c = tree.getNodeByName('node_c');
- assert.equal(node_c.id, 789);
-
- assert.equal(formatNodes(tree.children), 'node1 node_a node2 node_b node_c');
-
- // - Add after root node; this is not possible
- assert.equal(tree.addAfter('node_x'), null);
-});
-
-test('addBefore', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // - Add 'node_0' before node1
- var node1 = tree.getNodeByName('node1');
- node1.addBefore('node0');
- assert.equal(formatNodes(tree.children), 'node0 node1 node2');
-
- // - Add before root node; this is not possile
- assert.equal(tree.addBefore('x'), null);
-});
-
-test('addParent', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // - Add node 'root' as parent of node1
- // Note that node also becomes a child of 'root'
- var node1 = tree.getNodeByName('node1');
- node1.addParent('root');
-
- var root = tree.getNodeByName('root');
- assert.equal(formatNodes(root.children), 'node1 node2');
-
- // - Add parent to root node; not possible
- assert.equal(tree.addParent('x'), null);
-});
-
-test('remove', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- var child1 = tree.getNodeByName('child1');
- var node1 = tree.getNodeByName('node1');
-
- assert.equal(formatNodes(node1.children), 'child1 child2');
- assert.equal(child1.parent, node1);
-
- // 1. Remove child1
- child1.remove();
-
- assert.equal(formatNodes(node1.children), 'child2');
- assert.equal(child1.parent, null);
-});
-
-test('append', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- var node1 = tree.getNodeByName('node1');
-
- // 1. Append child3 to node1
- node1.append('child3');
-
- assert.equal(formatNodes(node1.children), 'child1 child2 child3');
-
- // 2. Append subtree
- node1.append(
- {
- name: 'child4',
- children: [
- { name: 'child5' }
- ]
- }
- );
-
- assert.equal(formatNodes(node1.children), 'child1 child2 child3 child4');
-
- var child4 = node1.getNodeByName('child4');
- assert.equal(formatNodes(child4.children), 'child5');
-});
-
-test('prepend', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- var node1 = tree.getNodeByName('node1');
-
- // 1. Prepend child0 to node1
- node1.prepend('child0');
-
- assert.equal(formatNodes(node1.children), 'child0 child1 child2');
-
- // 2. Prepend subtree
- node1.prepend({
- name: 'child3',
- children: [
- { name: 'child4' }
- ]
- });
-
- assert.equal(formatNodes(node1.children), 'child3 child0 child1 child2');
-
- var child3 = node1.getNodeByName('child3');
- assert.equal(formatNodes(child3.children), 'child4');
-});
-
-test('getNodeById', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // 1. Get node with id 124
- var node = tree.getNodeById(124);
- assert.equal(node.name, 'node2');
-
- // 2. Delete node with id 124 and search again
- node.remove();
-
- assert.equal(tree.getNodeById(124), null);
-
- // 3. Add node with id 456 and search for it
- var child3 = tree.getNodeByName('child2');
- child3.append({
- id: 456,
- label: 'new node'
- });
-
- node = tree.getNodeById(456);
- assert.equal(node.name, 'new node');
-});
-
-test('getLevel', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // 1. get level for node1 and child1
- assert.equal(tree.getNodeByName('node1').getLevel(), 1);
- assert.equal(tree.getNodeByName('child1').getLevel(), 2);
-});
-
-test('loadFromData and id mapping', function(assert) {
- // - get node from empty tree
- var tree = new Node(null, true);
- assert.equal(tree.getNodeById(999), null);
-
- // - load example data in tree
- tree.loadFromData(example_data);
- assert.equal(tree.getNodeById(124).name, 'node2');
-
- var child2 = tree.getNodeById(126);
- child2.addChild(
- new Node({label: 'child4', id: 128})
- );
- child2.addChild(
- new Node({label: 'child5', id: 129})
- );
-
- // - load data in node child2
- child2.loadFromData(['abc', 'def']);
-
- assert.equal(tree.getNodeById(128), null);
- assert.equal(child2.children.length, 2);
- assert.equal(child2.children[0].name, 'abc');
-});
-
-test('removeChildren', function(assert) {
- // - load example data
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // add child4 and child5
- var child2 = tree.getNodeById(126);
- assert.equal(child2.name, 'child2');
-
- child2.addChild(
- new Node({label: 'child4', id: 128})
- );
- child2.addChild(
- new Node({label: 'child5', id: 129})
- );
- assert.equal(tree.getNodeById(128).name, 'child4');
-
- // - remove children from child2
- child2.removeChildren();
- assert.equal(tree.getNodeById(128), null);
- assert.equal(child2.children.length, 0);
-});
-
-test('node with id 0', function(assert) {
- // - load node with id 0
- var tree = new Node(null, true);
- tree.loadFromData([
- {
- id: 0,
- label: 'mynode'
- }
- ]);
-
- // - get node by id
- var node = tree.getNodeById(0);
- assert.equal(node.name, 'mynode');
-
- // -- remove the node
- node.remove();
-
- assert.equal(tree.getNodeById(0), undefined);
-});
-
-test('getPreviousSibling', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // - getPreviousSibling
- assert.equal(
- tree.getNodeByName('child2').getPreviousSibling().name,
- 'child1'
- );
- assert.equal(tree.getPreviousSibling(), null);
- assert.equal(
- tree.getNodeByName('child1').getPreviousSibling(),
- null
- );
-});
-
-test('getNextSibling', function(assert) {
- // setup
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- // - getNextSibling
- assert.equal(
- tree.getNodeByName('node1').getNextSibling().name,
- 'node2'
- );
- assert.equal(
- tree.getNodeByName('node2').getNextSibling(),
- null
- );
- assert.equal(tree.getNextSibling(), null);
-});
-
-test('getNodesByProperty', function(assert) {
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- nodes = tree.getNodesByProperty('name', 'child1');
-
- assert.equal(nodes.length, 1);
- assert.equal(nodes[0].name, 'child1');
-});
-
-test('getNodeByCallback', function(assert) {
- var tree = new Node(null, true);
- tree.loadFromData(example_data);
-
- node = tree.getNodeByCallback(
- function(node) {
- return node.name == 'child1';
- }
- );
-
- assert.equal(node.name, 'child1');
-});
-
-},{"./utils_for_test":6}],5:[function(require,module,exports){
-var utils_for_test = require('./utils_for_test');
-
-var tree_vars = utils_for_test.getTreeVariables();
-
-var Position = tree_vars.Position;
-var util = tree_vars.util;
-
-var test = QUnit.test;
-
-
-QUnit.module('util');
-
-test('indexOf', function(assert) {
- var _indexOf = util._indexOf;
- var indexOf = util.indexOf;
-
- assert.equal(indexOf([3, 2, 1], 1), 2);
- assert.equal(_indexOf([3, 2, 1], 1), 2);
- assert.equal(indexOf([4, 5, 6], 1), -1);
- assert.equal(_indexOf([4, 5, 6], 1), -1);
-});
-
-test('Position.getName', function(assert) {
- assert.equal(Position.getName(Position.BEFORE), 'before');
- assert.equal(Position.getName(Position.AFTER), 'after');
- assert.equal(Position.getName(Position.INSIDE), 'inside');
- assert.equal(Position.getName(Position.NONE), 'none');
-});
-
-test('Position.nameToIndex', function(assert) {
- assert.equal(Position.nameToIndex('before'), Position.BEFORE);
- assert.equal(Position.nameToIndex('after'), Position.AFTER);
- assert.equal(Position.nameToIndex(''), 0);
-});
-
-},{"./utils_for_test":6}],6:[function(require,module,exports){
-/*
-example data:
-
-node1
----child1
----child2
--node2
----child3
-*/
-
-var example_data = [
- {
- label: 'node1',
- id: 123, // extra data
- int_property: 1,
- str_property: '1',
- children: [
- { label: 'child1', id: 125, int_property: 2 },
- { label: 'child2', id: 126 }
- ]
- },
- {
- label: 'node2',
- id: 124,
- int_property: 3,
- str_property: '3',
- children: [
- { label: 'child3', id: 127 }
- ]
- }
-];
-
-/*
-example data 2:
-
--main
----c1
----c2
-*/
-
-var example_data2 = [
- {
- label: 'main',
- children: [
- { label: 'c1' },
- { label: 'c2' }
- ]
- }
-];
-
-function formatNodes(nodes) {
- var strings = $.map(nodes, function(node) {
- return node.name;
- });
- return strings.join(' ');
-};
-
-function isNodeClosed($node) {
- return (
- ($node.is('li.jqtree-folder.jqtree-closed')) &&
- ($node.find('a:eq(0)').is('a.jqtree-toggler.jqtree-closed')) &&
- ($node.find('ul:eq(0)').is('ul'))
- );
-}
-
-function isNodeOpen($node) {
- return (
- ($node.is('li.jqtree-folder')) &&
- ($node.find('a:eq(0)').is('a.jqtree-toggler')) &&
- ($node.find('ul:eq(0)').is('ul')) &&
- (! $node.is('li.jqtree-folder.jqtree-closed')) &&
- (! $node.find('span:eq(0)').is('a.jqtree-toggler.jqtree-closed'))
- );
-}
-
-function formatTitles($node) {
- var titles = $node.find('.jqtree-title').map(
- function(i, el) {
- return $(el).text();
- }
- );
- return titles.toArray().join(' ');
-}
-
-function getTreeVariables() {
- var JqTreeWidget = $('').tree('get_widget_class');
-
- var node = JqTreeWidget.getModule('node');
- var util = JqTreeWidget.getModule('util');
-
- return {
- Node: node.Node,
- Position: node.Position,
- util: util
- };
-}
-
-
-module.exports = {
- example_data: example_data,
- example_data2: example_data2,
- formatNodes: formatNodes,
- formatTitles: formatTitles,
- getTreeVariables: getTreeVariables,
- isNodeClosed: isNodeClosed,
- isNodeOpen: isNodeOpen
-};
-
-},{}]},{},[2]);
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/test/test_jquery_1.html b/ecomp-portal-FE/client/bower_components/jqTree/test/test_jquery_1.html
deleted file mode 100644
index 83a72e86..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/test/test_jquery_1.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <title>jqTree - Test</title>
- <link rel="stylesheet" href="../static/bower_components/qunit/qunit/qunit.css">
- <link rel="stylesheet" href="../jqtree.css">
- <script src="../static/bower_components/jquery-1/dist/jquery.min.js"></script>
- <script src="../static/bower_components/qunit/qunit/qunit.js"></script>
- <script src="../tree.jquery.js" data-cover></script>
- <script src="test_build.js"></script>
-</head>
-<body>
- <div id="qunit"></div>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/test/test_jquery_2.html b/ecomp-portal-FE/client/bower_components/jqTree/test/test_jquery_2.html
deleted file mode 100644
index c699c18b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/test/test_jquery_2.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8">
- <title>jqTree - Test</title>
- <link rel="stylesheet" href="../static/bower_components/qunit/qunit/qunit.css">
- <link rel="stylesheet" href="../jqtree.css">
- <script src="../static/bower_components/jquery-2/dist/jquery.min.js"></script>
- <script src="../static/bower_components/qunit/qunit/qunit.js"></script>
- <script src="../tree.jquery.js" data-cover></script>
- <script src="test_build.js"></script>
-</head>
-<body>
- <div id="qunit"></div>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/tree.jquery.js b/ecomp-portal-FE/client/bower_components/jqTree/tree.jquery.js
deleted file mode 100644
index dd42aa0b..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/tree.jquery.js
+++ /dev/null
@@ -1,3640 +0,0 @@
-/*
-JqTree 1.3.7
-
-Copyright 2015 Marco Braak
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
-var $, DragAndDropHandler, DragElement, HitAreasGenerator, Position, VisibleNodeIterator, node_module, util,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
-node_module = require('./node');
-
-util = require('./util');
-
-Position = node_module.Position;
-
-$ = jQuery;
-
-DragAndDropHandler = (function() {
- function DragAndDropHandler(tree_widget) {
- this.tree_widget = tree_widget;
- this.hovered_area = null;
- this.$ghost = null;
- this.hit_areas = [];
- this.is_dragging = false;
- this.current_item = null;
- }
-
- DragAndDropHandler.prototype.mouseCapture = function(position_info) {
- var $element, node_element;
- $element = $(position_info.target);
- if (!this.mustCaptureElement($element)) {
- return null;
- }
- if (this.tree_widget.options.onIsMoveHandle && !this.tree_widget.options.onIsMoveHandle($element)) {
- return null;
- }
- node_element = this.tree_widget._getNodeElement($element);
- if (node_element && this.tree_widget.options.onCanMove) {
- if (!this.tree_widget.options.onCanMove(node_element.node)) {
- node_element = null;
- }
- }
- this.current_item = node_element;
- return this.current_item !== null;
- };
-
- DragAndDropHandler.prototype.mouseStart = function(position_info) {
- var node, node_name, offset;
- this.refresh();
- offset = $(position_info.target).offset();
- node = this.current_item.node;
- if (this.tree_widget.options.autoEscape) {
- node_name = util.html_escape(node.name);
- } else {
- node_name = node.name;
- }
- this.drag_element = new DragElement(node_name, position_info.page_x - offset.left, position_info.page_y - offset.top, this.tree_widget.element);
- this.is_dragging = true;
- this.current_item.$element.addClass('jqtree-moving');
- return true;
- };
-
- DragAndDropHandler.prototype.mouseDrag = function(position_info) {
- var area, can_move_to;
- this.drag_element.move(position_info.page_x, position_info.page_y);
- area = this.findHoveredArea(position_info.page_x, position_info.page_y);
- can_move_to = this.canMoveToArea(area);
- if (can_move_to && area) {
- if (!area.node.isFolder()) {
- this.stopOpenFolderTimer();
- }
- if (this.hovered_area !== area) {
- this.hovered_area = area;
- if (this.mustOpenFolderTimer(area)) {
- this.startOpenFolderTimer(area.node);
- } else {
- this.stopOpenFolderTimer();
- }
- this.updateDropHint();
- }
- } else {
- this.removeHover();
- this.removeDropHint();
- this.stopOpenFolderTimer();
- }
- if (!area) {
- if (this.tree_widget.options.onDragMove != null) {
- this.tree_widget.options.onDragMove(this.current_item.node, position_info.original_event);
- }
- }
- return true;
- };
-
- DragAndDropHandler.prototype.mustCaptureElement = function($element) {
- return !$element.is('input,select,textarea');
- };
-
- DragAndDropHandler.prototype.canMoveToArea = function(area) {
- var position_name;
- if (!area) {
- return false;
- } else if (this.tree_widget.options.onCanMoveTo) {
- position_name = Position.getName(area.position);
- return this.tree_widget.options.onCanMoveTo(this.current_item.node, area.node, position_name);
- } else {
- return true;
- }
- };
-
- DragAndDropHandler.prototype.mouseStop = function(position_info) {
- var current_item;
- this.moveItem(position_info);
- this.clear();
- this.removeHover();
- this.removeDropHint();
- this.removeHitAreas();
- current_item = this.current_item;
- if (this.current_item) {
- this.current_item.$element.removeClass('jqtree-moving');
- this.current_item = null;
- }
- this.is_dragging = false;
- if (!this.hovered_area && current_item) {
- if (this.tree_widget.options.onDragStop != null) {
- this.tree_widget.options.onDragStop(current_item.node, position_info.original_event);
- }
- }
- return false;
- };
-
- DragAndDropHandler.prototype.refresh = function() {
- this.removeHitAreas();
- if (this.current_item) {
- this.generateHitAreas();
- this.current_item = this.tree_widget._getNodeElementForNode(this.current_item.node);
- if (this.is_dragging) {
- return this.current_item.$element.addClass('jqtree-moving');
- }
- }
- };
-
- DragAndDropHandler.prototype.removeHitAreas = function() {
- return this.hit_areas = [];
- };
-
- DragAndDropHandler.prototype.clear = function() {
- this.drag_element.remove();
- return this.drag_element = null;
- };
-
- DragAndDropHandler.prototype.removeDropHint = function() {
- if (this.previous_ghost) {
- return this.previous_ghost.remove();
- }
- };
-
- DragAndDropHandler.prototype.removeHover = function() {
- return this.hovered_area = null;
- };
-
- DragAndDropHandler.prototype.generateHitAreas = function() {
- var hit_areas_generator;
- hit_areas_generator = new HitAreasGenerator(this.tree_widget.tree, this.current_item.node, this.getTreeDimensions().bottom);
- return this.hit_areas = hit_areas_generator.generate();
- };
-
- DragAndDropHandler.prototype.findHoveredArea = function(x, y) {
- var area, dimensions, high, low, mid;
- dimensions = this.getTreeDimensions();
- if (x < dimensions.left || y < dimensions.top || x > dimensions.right || y > dimensions.bottom) {
- return null;
- }
- low = 0;
- high = this.hit_areas.length;
- while (low < high) {
- mid = (low + high) >> 1;
- area = this.hit_areas[mid];
- if (y < area.top) {
- high = mid;
- } else if (y > area.bottom) {
- low = mid + 1;
- } else {
- return area;
- }
- }
- return null;
- };
-
- DragAndDropHandler.prototype.mustOpenFolderTimer = function(area) {
- var node;
- node = area.node;
- return node.isFolder() && !node.is_open && area.position === Position.INSIDE;
- };
-
- DragAndDropHandler.prototype.updateDropHint = function() {
- var node_element;
- if (!this.hovered_area) {
- return;
- }
- this.removeDropHint();
- node_element = this.tree_widget._getNodeElementForNode(this.hovered_area.node);
- return this.previous_ghost = node_element.addDropHint(this.hovered_area.position);
- };
-
- DragAndDropHandler.prototype.startOpenFolderTimer = function(folder) {
- var openFolder;
- openFolder = (function(_this) {
- return function() {
- return _this.tree_widget._openNode(folder, _this.tree_widget.options.slide, function() {
- _this.refresh();
- return _this.updateDropHint();
- });
- };
- })(this);
- this.stopOpenFolderTimer();
- return this.open_folder_timer = setTimeout(openFolder, this.tree_widget.options.openFolderDelay);
- };
-
- DragAndDropHandler.prototype.stopOpenFolderTimer = function() {
- if (this.open_folder_timer) {
- clearTimeout(this.open_folder_timer);
- return this.open_folder_timer = null;
- }
- };
-
- DragAndDropHandler.prototype.moveItem = function(position_info) {
- var doMove, event, moved_node, position, previous_parent, target_node;
- if (this.hovered_area && this.hovered_area.position !== Position.NONE && this.canMoveToArea(this.hovered_area)) {
- moved_node = this.current_item.node;
- target_node = this.hovered_area.node;
- position = this.hovered_area.position;
- previous_parent = moved_node.parent;
- if (position === Position.INSIDE) {
- this.hovered_area.node.is_open = true;
- }
- doMove = (function(_this) {
- return function() {
- _this.tree_widget.tree.moveNode(moved_node, target_node, position);
- _this.tree_widget.element.empty();
- return _this.tree_widget._refreshElements();
- };
- })(this);
- event = this.tree_widget._triggerEvent('tree.move', {
- move_info: {
- moved_node: moved_node,
- target_node: target_node,
- position: Position.getName(position),
- previous_parent: previous_parent,
- do_move: doMove,
- original_event: position_info.original_event
- }
- });
- if (!event.isDefaultPrevented()) {
- return doMove();
- }
- }
- };
-
- DragAndDropHandler.prototype.getTreeDimensions = function() {
- var offset;
- offset = this.tree_widget.element.offset();
- return {
- left: offset.left,
- top: offset.top,
- right: offset.left + this.tree_widget.element.width(),
- bottom: offset.top + this.tree_widget.element.height() + 16
- };
- };
-
- return DragAndDropHandler;
-
-})();
-
-VisibleNodeIterator = (function() {
- function VisibleNodeIterator(tree) {
- this.tree = tree;
- }
-
- VisibleNodeIterator.prototype.iterate = function() {
- var _iterateNode, is_first_node;
- is_first_node = true;
- _iterateNode = (function(_this) {
- return function(node, next_node) {
- var $element, child, children_length, i, j, len, must_iterate_inside, ref;
- must_iterate_inside = (node.is_open || !node.element) && node.hasChildren();
- if (node.element) {
- $element = $(node.element);
- if (!$element.is(':visible')) {
- return;
- }
- if (is_first_node) {
- _this.handleFirstNode(node, $element);
- is_first_node = false;
- }
- if (!node.hasChildren()) {
- _this.handleNode(node, next_node, $element);
- } else if (node.is_open) {
- if (!_this.handleOpenFolder(node, $element)) {
- must_iterate_inside = false;
- }
- } else {
- _this.handleClosedFolder(node, next_node, $element);
- }
- }
- if (must_iterate_inside) {
- children_length = node.children.length;
- ref = node.children;
- for (i = j = 0, len = ref.length; j < len; i = ++j) {
- child = ref[i];
- if (i === (children_length - 1)) {
- _iterateNode(node.children[i], null);
- } else {
- _iterateNode(node.children[i], node.children[i + 1]);
- }
- }
- if (node.is_open) {
- return _this.handleAfterOpenFolder(node, next_node, $element);
- }
- }
- };
- })(this);
- return _iterateNode(this.tree, null);
- };
-
- VisibleNodeIterator.prototype.handleNode = function(node, next_node, $element) {};
-
- VisibleNodeIterator.prototype.handleOpenFolder = function(node, $element) {};
-
- VisibleNodeIterator.prototype.handleClosedFolder = function(node, next_node, $element) {};
-
- VisibleNodeIterator.prototype.handleAfterOpenFolder = function(node, next_node, $element) {};
-
- VisibleNodeIterator.prototype.handleFirstNode = function(node, $element) {};
-
- return VisibleNodeIterator;
-
-})();
-
-HitAreasGenerator = (function(superClass) {
- extend(HitAreasGenerator, superClass);
-
- function HitAreasGenerator(tree, current_node, tree_bottom) {
- HitAreasGenerator.__super__.constructor.call(this, tree);
- this.current_node = current_node;
- this.tree_bottom = tree_bottom;
- }
-
- HitAreasGenerator.prototype.generate = function() {
- this.positions = [];
- this.last_top = 0;
- this.iterate();
- return this.generateHitAreas(this.positions);
- };
-
- HitAreasGenerator.prototype.getTop = function($element) {
- return $element.offset().top;
- };
-
- HitAreasGenerator.prototype.addPosition = function(node, position, top) {
- var area;
- area = {
- top: top,
- node: node,
- position: position
- };
- this.positions.push(area);
- return this.last_top = top;
- };
-
- HitAreasGenerator.prototype.handleNode = function(node, next_node, $element) {
- var top;
- top = this.getTop($element);
- if (node === this.current_node) {
- this.addPosition(node, Position.NONE, top);
- } else {
- this.addPosition(node, Position.INSIDE, top);
- }
- if (next_node === this.current_node || node === this.current_node) {
- return this.addPosition(node, Position.NONE, top);
- } else {
- return this.addPosition(node, Position.AFTER, top);
- }
- };
-
- HitAreasGenerator.prototype.handleOpenFolder = function(node, $element) {
- if (node === this.current_node) {
- return false;
- }
- if (node.children[0] !== this.current_node) {
- this.addPosition(node, Position.INSIDE, this.getTop($element));
- }
- return true;
- };
-
- HitAreasGenerator.prototype.handleClosedFolder = function(node, next_node, $element) {
- var top;
- top = this.getTop($element);
- if (node === this.current_node) {
- return this.addPosition(node, Position.NONE, top);
- } else {
- this.addPosition(node, Position.INSIDE, top);
- if (next_node !== this.current_node) {
- return this.addPosition(node, Position.AFTER, top);
- }
- }
- };
-
- HitAreasGenerator.prototype.handleFirstNode = function(node, $element) {
- if (node !== this.current_node) {
- return this.addPosition(node, Position.BEFORE, this.getTop($(node.element)));
- }
- };
-
- HitAreasGenerator.prototype.handleAfterOpenFolder = function(node, next_node, $element) {
- if (node === this.current_node.node || next_node === this.current_node.node) {
- return this.addPosition(node, Position.NONE, this.last_top);
- } else {
- return this.addPosition(node, Position.AFTER, this.last_top);
- }
- };
-
- HitAreasGenerator.prototype.generateHitAreas = function(positions) {
- var group, hit_areas, j, len, position, previous_top;
- previous_top = -1;
- group = [];
- hit_areas = [];
- for (j = 0, len = positions.length; j < len; j++) {
- position = positions[j];
- if (position.top !== previous_top && group.length) {
- if (group.length) {
- this.generateHitAreasForGroup(hit_areas, group, previous_top, position.top);
- }
- previous_top = position.top;
- group = [];
- }
- group.push(position);
- }
- this.generateHitAreasForGroup(hit_areas, group, previous_top, this.tree_bottom);
- return hit_areas;
- };
-
- HitAreasGenerator.prototype.generateHitAreasForGroup = function(hit_areas, positions_in_group, top, bottom) {
- var area_height, area_top, i, position, position_count;
- position_count = Math.min(positions_in_group.length, 4);
- area_height = Math.round((bottom - top) / position_count);
- area_top = top;
- i = 0;
- while (i < position_count) {
- position = positions_in_group[i];
- hit_areas.push({
- top: area_top,
- bottom: area_top + area_height,
- node: position.node,
- position: position.position
- });
- area_top += area_height;
- i += 1;
- }
- return null;
- };
-
- return HitAreasGenerator;
-
-})(VisibleNodeIterator);
-
-DragElement = (function() {
- function DragElement(node_name, offset_x, offset_y, $tree) {
- this.offset_x = offset_x;
- this.offset_y = offset_y;
- this.$element = $("<span class=\"jqtree-title jqtree-dragging\">" + node_name + "</span>");
- this.$element.css("position", "absolute");
- $tree.append(this.$element);
- }
-
- DragElement.prototype.move = function(page_x, page_y) {
- return this.$element.offset({
- left: page_x - this.offset_x,
- top: page_y - this.offset_y
- });
- };
-
- DragElement.prototype.remove = function() {
- return this.$element.remove();
- };
-
- return DragElement;
-
-})();
-
-module.exports = {
- DragAndDropHandler: DragAndDropHandler,
- DragElement: DragElement,
- HitAreasGenerator: HitAreasGenerator
-};
-
-},{"./node":5,"./util":12}],2:[function(require,module,exports){
-var $, ElementsRenderer, NodeElement, html_escape, node_element, util;
-
-node_element = require('./node_element');
-
-NodeElement = node_element.NodeElement;
-
-util = require('./util');
-
-html_escape = util.html_escape;
-
-$ = jQuery;
-
-ElementsRenderer = (function() {
- function ElementsRenderer(tree_widget) {
- this.tree_widget = tree_widget;
- this.opened_icon_element = this.createButtonElement(tree_widget.options.openedIcon);
- this.closed_icon_element = this.createButtonElement(tree_widget.options.closedIcon);
- }
-
- ElementsRenderer.prototype.render = function(from_node) {
- if (from_node && from_node.parent) {
- return this.renderFromNode(from_node);
- } else {
- return this.renderFromRoot();
- }
- };
-
- ElementsRenderer.prototype.renderFromRoot = function() {
- var $element;
- $element = this.tree_widget.element;
- $element.empty();
- return this.createDomElements($element[0], this.tree_widget.tree.children, true, true, 1);
- };
-
- ElementsRenderer.prototype.renderFromNode = function(node) {
- var $previous_li, li;
- $previous_li = $(node.element);
- li = this.createLi(node, node.getLevel());
- this.attachNodeData(node, li);
- $previous_li.after(li);
- $previous_li.remove();
- if (node.children) {
- return this.createDomElements(li, node.children, false, false, node.getLevel() + 1);
- }
- };
-
- ElementsRenderer.prototype.createDomElements = function(element, children, is_root_node, is_open, level) {
- var child, i, len, li, ul;
- ul = this.createUl(is_root_node);
- element.appendChild(ul);
- for (i = 0, len = children.length; i < len; i++) {
- child = children[i];
- li = this.createLi(child, level);
- ul.appendChild(li);
- this.attachNodeData(child, li);
- if (child.hasChildren()) {
- this.createDomElements(li, child.children, false, child.is_open, level + 1);
- }
- }
- return null;
- };
-
- ElementsRenderer.prototype.attachNodeData = function(node, li) {
- node.element = li;
- return $(li).data('node', node);
- };
-
- ElementsRenderer.prototype.createUl = function(is_root_node) {
- var class_string, role, ul;
- if (!is_root_node) {
- class_string = '';
- role = 'group';
- } else {
- class_string = 'jqtree-tree';
- role = 'tree';
- if (this.tree_widget.options.rtl) {
- class_string += ' jqtree-rtl';
- }
- }
- ul = document.createElement('ul');
- ul.className = "jqtree_common " + class_string;
- ul.setAttribute('role', role);
- return ul;
- };
-
- ElementsRenderer.prototype.createLi = function(node, level) {
- var is_selected, li;
- is_selected = this.tree_widget.select_node_handler && this.tree_widget.select_node_handler.isNodeSelected(node);
- if (node.isFolder()) {
- li = this.createFolderLi(node, level, is_selected);
- } else {
- li = this.createNodeLi(node, level, is_selected);
- }
- if (this.tree_widget.options.onCreateLi) {
- this.tree_widget.options.onCreateLi(node, $(li));
- }
- return li;
- };
-
- ElementsRenderer.prototype.createFolderLi = function(node, level, is_selected) {
- var button_classes, button_link, div, folder_classes, icon_element, is_folder, li;
- button_classes = this.getButtonClasses(node);
- folder_classes = this.getFolderClasses(node, is_selected);
- if (node.is_open) {
- icon_element = this.opened_icon_element;
- } else {
- icon_element = this.closed_icon_element;
- }
- li = document.createElement('li');
- li.className = "jqtree_common " + folder_classes;
- li.setAttribute('role', 'presentation');
- div = document.createElement('div');
- div.className = "jqtree-element jqtree_common";
- div.setAttribute('role', 'presentation');
- li.appendChild(div);
- button_link = document.createElement('a');
- button_link.className = button_classes;
- button_link.appendChild(icon_element.cloneNode(false));
- button_link.setAttribute('role', 'presentation');
- button_link.setAttribute('aria-hidden', 'true');
- if (this.tree_widget.options.buttonLeft) {
- div.appendChild(button_link);
- }
- div.appendChild(this.createTitleSpan(node.name, level, is_selected, node.is_open, is_folder = true));
- if (!this.tree_widget.options.buttonLeft) {
- div.appendChild(button_link);
- }
- return li;
- };
-
- ElementsRenderer.prototype.createNodeLi = function(node, level, is_selected) {
- var class_string, div, is_folder, li, li_classes;
- li_classes = ['jqtree_common'];
- if (is_selected) {
- li_classes.push('jqtree-selected');
- }
- class_string = li_classes.join(' ');
- li = document.createElement('li');
- li.className = class_string;
- li.setAttribute('role', 'presentation');
- div = document.createElement('div');
- div.className = "jqtree-element jqtree_common";
- div.setAttribute('role', 'presentation');
- li.appendChild(div);
- div.appendChild(this.createTitleSpan(node.name, level, is_selected, node.is_open, is_folder = false));
- return li;
- };
-
- ElementsRenderer.prototype.createTitleSpan = function(node_name, level, is_selected, is_open, is_folder) {
- var classes, title_span;
- title_span = document.createElement('span');
- classes = "jqtree-title jqtree_common";
- if (is_folder) {
- classes += " jqtree-title-folder";
- }
- title_span.className = classes;
- title_span.setAttribute('role', 'treeitem');
- title_span.setAttribute('aria-level', level);
- title_span.setAttribute('aria-selected', util.getBoolString(is_selected));
- title_span.setAttribute('aria-expanded', util.getBoolString(is_open));
- if (is_selected) {
- title_span.setAttribute('tabindex', 0);
- }
- title_span.innerHTML = this.escapeIfNecessary(node_name);
- return title_span;
- };
-
- ElementsRenderer.prototype.getButtonClasses = function(node) {
- var classes;
- classes = ['jqtree-toggler', 'jqtree_common'];
- if (!node.is_open) {
- classes.push('jqtree-closed');
- }
- if (this.tree_widget.options.buttonLeft) {
- classes.push('jqtree-toggler-left');
- } else {
- classes.push('jqtree-toggler-right');
- }
- return classes.join(' ');
- };
-
- ElementsRenderer.prototype.getFolderClasses = function(node, is_selected) {
- var classes;
- classes = ['jqtree-folder'];
- if (!node.is_open) {
- classes.push('jqtree-closed');
- }
- if (is_selected) {
- classes.push('jqtree-selected');
- }
- if (node.is_loading) {
- classes.push('jqtree-loading');
- }
- return classes.join(' ');
- };
-
- ElementsRenderer.prototype.escapeIfNecessary = function(value) {
- if (this.tree_widget.options.autoEscape) {
- return html_escape(value);
- } else {
- return value;
- }
- };
-
- ElementsRenderer.prototype.createButtonElement = function(value) {
- var div;
- if (typeof value === 'string') {
- div = document.createElement('div');
- div.innerHTML = value;
- return document.createTextNode(div.innerHTML);
- } else {
- return $(value)[0];
- }
- };
-
- return ElementsRenderer;
-
-})();
-
-module.exports = ElementsRenderer;
-
-},{"./node_element":6,"./util":12}],3:[function(require,module,exports){
-var $, KeyHandler,
- bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
-
-$ = jQuery;
-
-KeyHandler = (function() {
- var DOWN, LEFT, RIGHT, UP;
-
- LEFT = 37;
-
- UP = 38;
-
- RIGHT = 39;
-
- DOWN = 40;
-
- function KeyHandler(tree_widget) {
- this.selectNode = bind(this.selectNode, this);
- this.tree_widget = tree_widget;
- if (tree_widget.options.keyboardSupport) {
- $(document).bind('keydown.jqtree', $.proxy(this.handleKeyDown, this));
- }
- }
-
- KeyHandler.prototype.deinit = function() {
- return $(document).unbind('keydown.jqtree');
- };
-
- KeyHandler.prototype.moveDown = function() {
- var node;
- node = this.tree_widget.getSelectedNode();
- if (node) {
- return this.selectNode(node.getNextNode());
- } else {
- return false;
- }
- };
-
- KeyHandler.prototype.moveUp = function() {
- var node;
- node = this.tree_widget.getSelectedNode();
- if (node) {
- return this.selectNode(node.getPreviousNode());
- } else {
- return false;
- }
- };
-
- KeyHandler.prototype.moveRight = function() {
- var node;
- node = this.tree_widget.getSelectedNode();
- if (!node) {
- return true;
- } else if (!node.isFolder()) {
- return true;
- } else {
- if (node.is_open) {
- return this.selectNode(node.getNextNode());
- } else {
- this.tree_widget.openNode(node);
- return false;
- }
- }
- };
-
- KeyHandler.prototype.moveLeft = function() {
- var node;
- node = this.tree_widget.getSelectedNode();
- if (!node) {
- return true;
- } else if (node.isFolder() && node.is_open) {
- this.tree_widget.closeNode(node);
- return false;
- } else {
- return this.selectNode(node.getParent());
- }
- };
-
- KeyHandler.prototype.handleKeyDown = function(e) {
- var key;
- if (!this.tree_widget.options.keyboardSupport) {
- return true;
- }
- if ($(document.activeElement).is('textarea,input,select')) {
- return true;
- }
- if (!this.tree_widget.getSelectedNode()) {
- return true;
- }
- key = e.which;
- switch (key) {
- case DOWN:
- return this.moveDown();
- case UP:
- return this.moveUp();
- case RIGHT:
- return this.moveRight();
- case LEFT:
- return this.moveLeft();
- }
- return true;
- };
-
- KeyHandler.prototype.selectNode = function(node) {
- if (!node) {
- return true;
- } else {
- this.tree_widget.selectNode(node);
- if (this.tree_widget.scroll_handler && (!this.tree_widget.scroll_handler.isScrolledIntoView($(node.element).find('.jqtree-element')))) {
- this.tree_widget.scrollToNode(node);
- }
- return false;
- }
- };
-
- return KeyHandler;
-
-})();
-
-module.exports = KeyHandler;
-
-},{}],4:[function(require,module,exports){
-
-/*
-This widget does the same a the mouse widget in jqueryui.
- */
-var $, MouseWidget, SimpleWidget,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
-SimpleWidget = require('./simple.widget');
-
-$ = jQuery;
-
-MouseWidget = (function(superClass) {
- extend(MouseWidget, superClass);
-
- function MouseWidget() {
- return MouseWidget.__super__.constructor.apply(this, arguments);
- }
-
- MouseWidget.is_mouse_handled = false;
-
- MouseWidget.prototype._init = function() {
- this.$el.bind('mousedown.mousewidget', $.proxy(this._mouseDown, this));
- this.$el.bind('touchstart.mousewidget', $.proxy(this._touchStart, this));
- this.is_mouse_started = false;
- this.mouse_delay = 0;
- this._mouse_delay_timer = null;
- this._is_mouse_delay_met = true;
- return this.mouse_down_info = null;
- };
-
- MouseWidget.prototype._deinit = function() {
- var $document;
- this.$el.unbind('mousedown.mousewidget');
- this.$el.unbind('touchstart.mousewidget');
- $document = $(document);
- $document.unbind('mousemove.mousewidget');
- return $document.unbind('mouseup.mousewidget');
- };
-
- MouseWidget.prototype._mouseDown = function(e) {
- var result;
- if (e.which !== 1) {
- return;
- }
- result = this._handleMouseDown(e, this._getPositionInfo(e));
- if (result) {
- e.preventDefault();
- }
- return result;
- };
-
- MouseWidget.prototype._handleMouseDown = function(e, position_info) {
- if (MouseWidget.is_mouse_handled) {
- return;
- }
- if (this.is_mouse_started) {
- this._handleMouseUp(position_info);
- }
- this.mouse_down_info = position_info;
- if (!this._mouseCapture(position_info)) {
- return;
- }
- this._handleStartMouse();
- this.is_mouse_handled = true;
- return true;
- };
-
- MouseWidget.prototype._handleStartMouse = function() {
- var $document;
- $document = $(document);
- $document.bind('mousemove.mousewidget', $.proxy(this._mouseMove, this));
- $document.bind('touchmove.mousewidget', $.proxy(this._touchMove, this));
- $document.bind('mouseup.mousewidget', $.proxy(this._mouseUp, this));
- $document.bind('touchend.mousewidget', $.proxy(this._touchEnd, this));
- if (this.mouse_delay) {
- return this._startMouseDelayTimer();
- }
- };
-
- MouseWidget.prototype._startMouseDelayTimer = function() {
- if (this._mouse_delay_timer) {
- clearTimeout(this._mouse_delay_timer);
- }
- this._mouse_delay_timer = setTimeout((function(_this) {
- return function() {
- return _this._is_mouse_delay_met = true;
- };
- })(this), this.mouse_delay);
- return this._is_mouse_delay_met = false;
- };
-
- MouseWidget.prototype._mouseMove = function(e) {
- return this._handleMouseMove(e, this._getPositionInfo(e));
- };
-
- MouseWidget.prototype._handleMouseMove = function(e, position_info) {
- if (this.is_mouse_started) {
- this._mouseDrag(position_info);
- return e.preventDefault();
- }
- if (this.mouse_delay && !this._is_mouse_delay_met) {
- return true;
- }
- this.is_mouse_started = this._mouseStart(this.mouse_down_info) !== false;
- if (this.is_mouse_started) {
- this._mouseDrag(position_info);
- } else {
- this._handleMouseUp(position_info);
- }
- return !this.is_mouse_started;
- };
-
- MouseWidget.prototype._getPositionInfo = function(e) {
- return {
- page_x: e.pageX,
- page_y: e.pageY,
- target: e.target,
- original_event: e
- };
- };
-
- MouseWidget.prototype._mouseUp = function(e) {
- return this._handleMouseUp(this._getPositionInfo(e));
- };
-
- MouseWidget.prototype._handleMouseUp = function(position_info) {
- var $document;
- $document = $(document);
- $document.unbind('mousemove.mousewidget');
- $document.unbind('touchmove.mousewidget');
- $document.unbind('mouseup.mousewidget');
- $document.unbind('touchend.mousewidget');
- if (this.is_mouse_started) {
- this.is_mouse_started = false;
- this._mouseStop(position_info);
- }
- };
-
- MouseWidget.prototype._mouseCapture = function(position_info) {
- return true;
- };
-
- MouseWidget.prototype._mouseStart = function(position_info) {
- return null;
- };
-
- MouseWidget.prototype._mouseDrag = function(position_info) {
- return null;
- };
-
- MouseWidget.prototype._mouseStop = function(position_info) {
- return null;
- };
-
- MouseWidget.prototype.setMouseDelay = function(mouse_delay) {
- return this.mouse_delay = mouse_delay;
- };
-
- MouseWidget.prototype._touchStart = function(e) {
- var touch;
- if (e.originalEvent.touches.length > 1) {
- return;
- }
- touch = e.originalEvent.changedTouches[0];
- return this._handleMouseDown(e, this._getPositionInfo(touch));
- };
-
- MouseWidget.prototype._touchMove = function(e) {
- var touch;
- if (e.originalEvent.touches.length > 1) {
- return;
- }
- touch = e.originalEvent.changedTouches[0];
- return this._handleMouseMove(e, this._getPositionInfo(touch));
- };
-
- MouseWidget.prototype._touchEnd = function(e) {
- var touch;
- if (e.originalEvent.touches.length > 1) {
- return;
- }
- touch = e.originalEvent.changedTouches[0];
- return this._handleMouseUp(this._getPositionInfo(touch));
- };
-
- return MouseWidget;
-
-})(SimpleWidget);
-
-module.exports = MouseWidget;
-
-},{"./simple.widget":10}],5:[function(require,module,exports){
-var $, Node, Position;
-
-$ = jQuery;
-
-Position = {
- getName: function(position) {
- return Position.strings[position - 1];
- },
- nameToIndex: function(name) {
- var i, j, ref;
- for (i = j = 1, ref = Position.strings.length; 1 <= ref ? j <= ref : j >= ref; i = 1 <= ref ? ++j : --j) {
- if (Position.strings[i - 1] === name) {
- return i;
- }
- }
- return 0;
- }
-};
-
-Position.BEFORE = 1;
-
-Position.AFTER = 2;
-
-Position.INSIDE = 3;
-
-Position.NONE = 4;
-
-Position.strings = ['before', 'after', 'inside', 'none'];
-
-Node = (function() {
- function Node(o, is_root, node_class) {
- if (is_root == null) {
- is_root = false;
- }
- if (node_class == null) {
- node_class = Node;
- }
- this.name = '';
- this.setData(o);
- this.children = [];
- this.parent = null;
- if (is_root) {
- this.id_mapping = {};
- this.tree = this;
- this.node_class = node_class;
- }
- }
-
- Node.prototype.setData = function(o) {
-
- /*
- Set the data of this node.
-
- setData(string): set the name of the node
- setdata(object): set attributes of the node
-
- Examples:
- setdata('node1')
-
- setData({ name: 'node1', id: 1});
-
- setData({ name: 'node2', id: 2, color: 'green'});
-
- * This is an internal function; it is not in the docs
- * Does not remove existing node values
- */
- var key, setName, value;
- setName = (function(_this) {
- return function(name) {
- if (name !== null) {
- return _this.name = name;
- }
- };
- })(this);
- if (typeof o !== 'object') {
- setName(o);
- } else {
- for (key in o) {
- value = o[key];
- if (key === 'label') {
- setName(value);
- } else if (key !== 'children') {
- this[key] = value;
- }
- }
- }
- return null;
- };
-
- Node.prototype.initFromData = function(data) {
- var addChildren, addNode;
- addNode = (function(_this) {
- return function(node_data) {
- _this.setData(node_data);
- if (node_data.children) {
- return addChildren(node_data.children);
- }
- };
- })(this);
- addChildren = (function(_this) {
- return function(children_data) {
- var child, j, len, node;
- for (j = 0, len = children_data.length; j < len; j++) {
- child = children_data[j];
- node = new _this.tree.node_class('');
- node.initFromData(child);
- _this.addChild(node);
- }
- return null;
- };
- })(this);
- addNode(data);
- return null;
- };
-
-
- /*
- Create tree from data.
-
- Structure of data is:
- [
- {
- label: 'node1',
- children: [
- { label: 'child1' },
- { label: 'child2' }
- ]
- },
- {
- label: 'node2'
- }
- ]
- */
-
- Node.prototype.loadFromData = function(data) {
- var j, len, node, o;
- this.removeChildren();
- for (j = 0, len = data.length; j < len; j++) {
- o = data[j];
- node = new this.tree.node_class(o);
- this.addChild(node);
- if (typeof o === 'object' && o.children) {
- node.loadFromData(o.children);
- }
- }
- return null;
- };
-
-
- /*
- Add child.
-
- tree.addChild(
- new Node('child1')
- );
- */
-
- Node.prototype.addChild = function(node) {
- this.children.push(node);
- return node._setParent(this);
- };
-
-
- /*
- Add child at position. Index starts at 0.
-
- tree.addChildAtPosition(
- new Node('abc'),
- 1
- );
- */
-
- Node.prototype.addChildAtPosition = function(node, index) {
- this.children.splice(index, 0, node);
- return node._setParent(this);
- };
-
- Node.prototype._setParent = function(parent) {
- this.parent = parent;
- this.tree = parent.tree;
- return this.tree.addNodeToIndex(this);
- };
-
-
- /*
- Remove child. This also removes the children of the node.
-
- tree.removeChild(tree.children[0]);
- */
-
- Node.prototype.removeChild = function(node) {
- node.removeChildren();
- return this._removeChild(node);
- };
-
- Node.prototype._removeChild = function(node) {
- this.children.splice(this.getChildIndex(node), 1);
- return this.tree.removeNodeFromIndex(node);
- };
-
-
- /*
- Get child index.
-
- var index = getChildIndex(node);
- */
-
- Node.prototype.getChildIndex = function(node) {
- return $.inArray(node, this.children);
- };
-
-
- /*
- Does the tree have children?
-
- if (tree.hasChildren()) {
- //
- }
- */
-
- Node.prototype.hasChildren = function() {
- return this.children.length !== 0;
- };
-
- Node.prototype.isFolder = function() {
- return this.hasChildren() || this.load_on_demand;
- };
-
-
- /*
- Iterate over all the nodes in the tree.
-
- Calls callback with (node, level).
-
- The callback must return true to continue the iteration on current node.
-
- tree.iterate(
- function(node, level) {
- console.log(node.name);
-
- // stop iteration after level 2
- return (level <= 2);
- }
- );
- */
-
- Node.prototype.iterate = function(callback) {
- var _iterate;
- _iterate = function(node, level) {
- var child, j, len, ref, result;
- if (node.children) {
- ref = node.children;
- for (j = 0, len = ref.length; j < len; j++) {
- child = ref[j];
- result = callback(child, level);
- if (result && child.hasChildren()) {
- _iterate(child, level + 1);
- }
- }
- return null;
- }
- };
- _iterate(this, 0);
- return null;
- };
-
-
- /*
- Move node relative to another node.
-
- Argument position: Position.BEFORE, Position.AFTER or Position.Inside
-
- // move node1 after node2
- tree.moveNode(node1, node2, Position.AFTER);
- */
-
- Node.prototype.moveNode = function(moved_node, target_node, position) {
- if (moved_node.isParentOf(target_node)) {
- return;
- }
- moved_node.parent._removeChild(moved_node);
- if (position === Position.AFTER) {
- return target_node.parent.addChildAtPosition(moved_node, target_node.parent.getChildIndex(target_node) + 1);
- } else if (position === Position.BEFORE) {
- return target_node.parent.addChildAtPosition(moved_node, target_node.parent.getChildIndex(target_node));
- } else if (position === Position.INSIDE) {
- return target_node.addChildAtPosition(moved_node, 0);
- }
- };
-
-
- /*
- Get the tree as data.
- */
-
- Node.prototype.getData = function(include_parent) {
- var getDataFromNodes;
- if (include_parent == null) {
- include_parent = false;
- }
- getDataFromNodes = function(nodes) {
- var data, j, k, len, node, tmp_node, v;
- data = [];
- for (j = 0, len = nodes.length; j < len; j++) {
- node = nodes[j];
- tmp_node = {};
- for (k in node) {
- v = node[k];
- if ((k !== 'parent' && k !== 'children' && k !== 'element' && k !== 'tree') && Object.prototype.hasOwnProperty.call(node, k)) {
- tmp_node[k] = v;
- }
- }
- if (node.hasChildren()) {
- tmp_node.children = getDataFromNodes(node.children);
- }
- data.push(tmp_node);
- }
- return data;
- };
- if (include_parent) {
- return getDataFromNodes([this]);
- } else {
- return getDataFromNodes(this.children);
- }
- };
-
- Node.prototype.getNodeByName = function(name) {
- return this.getNodeByCallback(function(node) {
- return node.name === name;
- });
- };
-
- Node.prototype.getNodeByCallback = function(callback) {
- var result;
- result = null;
- this.iterate(function(node) {
- if (callback(node)) {
- result = node;
- return false;
- } else {
- return true;
- }
- });
- return result;
- };
-
- Node.prototype.addAfter = function(node_info) {
- var child_index, node;
- if (!this.parent) {
- return null;
- } else {
- node = new this.tree.node_class(node_info);
- child_index = this.parent.getChildIndex(this);
- this.parent.addChildAtPosition(node, child_index + 1);
- if (typeof node_info === 'object' && node_info.children && node_info.children.length) {
- node.loadFromData(node_info.children);
- }
- return node;
- }
- };
-
- Node.prototype.addBefore = function(node_info) {
- var child_index, node;
- if (!this.parent) {
- return null;
- } else {
- node = new this.tree.node_class(node_info);
- child_index = this.parent.getChildIndex(this);
- this.parent.addChildAtPosition(node, child_index);
- if (typeof node_info === 'object' && node_info.children && node_info.children.length) {
- node.loadFromData(node_info.children);
- }
- return node;
- }
- };
-
- Node.prototype.addParent = function(node_info) {
- var child, j, len, new_parent, original_parent, ref;
- if (!this.parent) {
- return null;
- } else {
- new_parent = new this.tree.node_class(node_info);
- new_parent._setParent(this.tree);
- original_parent = this.parent;
- ref = original_parent.children;
- for (j = 0, len = ref.length; j < len; j++) {
- child = ref[j];
- new_parent.addChild(child);
- }
- original_parent.children = [];
- original_parent.addChild(new_parent);
- return new_parent;
- }
- };
-
- Node.prototype.remove = function() {
- if (this.parent) {
- this.parent.removeChild(this);
- return this.parent = null;
- }
- };
-
- Node.prototype.append = function(node_info) {
- var node;
- node = new this.tree.node_class(node_info);
- this.addChild(node);
- if (typeof node_info === 'object' && node_info.children && node_info.children.length) {
- node.loadFromData(node_info.children);
- }
- return node;
- };
-
- Node.prototype.prepend = function(node_info) {
- var node;
- node = new this.tree.node_class(node_info);
- this.addChildAtPosition(node, 0);
- if (typeof node_info === 'object' && node_info.children && node_info.children.length) {
- node.loadFromData(node_info.children);
- }
- return node;
- };
-
- Node.prototype.isParentOf = function(node) {
- var parent;
- parent = node.parent;
- while (parent) {
- if (parent === this) {
- return true;
- }
- parent = parent.parent;
- }
- return false;
- };
-
- Node.prototype.getLevel = function() {
- var level, node;
- level = 0;
- node = this;
- while (node.parent) {
- level += 1;
- node = node.parent;
- }
- return level;
- };
-
- Node.prototype.getNodeById = function(node_id) {
- return this.id_mapping[node_id];
- };
-
- Node.prototype.addNodeToIndex = function(node) {
- if (node.id != null) {
- return this.id_mapping[node.id] = node;
- }
- };
-
- Node.prototype.removeNodeFromIndex = function(node) {
- if (node.id != null) {
- return delete this.id_mapping[node.id];
- }
- };
-
- Node.prototype.removeChildren = function() {
- this.iterate((function(_this) {
- return function(child) {
- _this.tree.removeNodeFromIndex(child);
- return true;
- };
- })(this));
- return this.children = [];
- };
-
- Node.prototype.getPreviousSibling = function() {
- var previous_index;
- if (!this.parent) {
- return null;
- } else {
- previous_index = this.parent.getChildIndex(this) - 1;
- if (previous_index >= 0) {
- return this.parent.children[previous_index];
- } else {
- return null;
- }
- }
- };
-
- Node.prototype.getNextSibling = function() {
- var next_index;
- if (!this.parent) {
- return null;
- } else {
- next_index = this.parent.getChildIndex(this) + 1;
- if (next_index < this.parent.children.length) {
- return this.parent.children[next_index];
- } else {
- return null;
- }
- }
- };
-
- Node.prototype.getNodesByProperty = function(key, value) {
- return this.filter(function(node) {
- return node[key] === value;
- });
- };
-
- Node.prototype.filter = function(f) {
- var result;
- result = [];
- this.iterate(function(node) {
- if (f(node)) {
- result.push(node);
- }
- return true;
- });
- return result;
- };
-
- Node.prototype.getNextNode = function(include_children) {
- var next_sibling;
- if (include_children == null) {
- include_children = true;
- }
- if (include_children && this.hasChildren() && this.is_open) {
- return this.children[0];
- } else {
- if (!this.parent) {
- return null;
- } else {
- next_sibling = this.getNextSibling();
- if (next_sibling) {
- return next_sibling;
- } else {
- return this.parent.getNextNode(false);
- }
- }
- }
- };
-
- Node.prototype.getPreviousNode = function() {
- var previous_sibling;
- if (!this.parent) {
- return null;
- } else {
- previous_sibling = this.getPreviousSibling();
- if (previous_sibling) {
- if (!previous_sibling.hasChildren() || !previous_sibling.is_open) {
- return previous_sibling;
- } else {
- return previous_sibling.getLastChild();
- }
- } else {
- return this.getParent();
- }
- }
- };
-
- Node.prototype.getParent = function() {
- if (!this.parent) {
- return null;
- } else if (!this.parent.parent) {
- return null;
- } else {
- return this.parent;
- }
- };
-
- Node.prototype.getLastChild = function() {
- var last_child;
- if (!this.hasChildren()) {
- return null;
- } else {
- last_child = this.children[this.children.length - 1];
- if (!last_child.hasChildren() || !last_child.is_open) {
- return last_child;
- } else {
- return last_child.getLastChild();
- }
- }
- };
-
- return Node;
-
-})();
-
-module.exports = {
- Node: Node,
- Position: Position
-};
-
-},{}],6:[function(require,module,exports){
-var $, BorderDropHint, FolderElement, GhostDropHint, NodeElement, Position, node,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
-node = require('./node');
-
-Position = node.Position;
-
-$ = jQuery;
-
-NodeElement = (function() {
- function NodeElement(node, tree_widget) {
- this.init(node, tree_widget);
- }
-
- NodeElement.prototype.init = function(node, tree_widget) {
- this.node = node;
- this.tree_widget = tree_widget;
- if (!node.element) {
- node.element = this.tree_widget.element;
- }
- return this.$element = $(node.element);
- };
-
- NodeElement.prototype.getUl = function() {
- return this.$element.children('ul:first');
- };
-
- NodeElement.prototype.getSpan = function() {
- return this.$element.children('.jqtree-element').find('span.jqtree-title');
- };
-
- NodeElement.prototype.getLi = function() {
- return this.$element;
- };
-
- NodeElement.prototype.addDropHint = function(position) {
- if (position === Position.INSIDE) {
- return new BorderDropHint(this.$element);
- } else {
- return new GhostDropHint(this.node, this.$element, position);
- }
- };
-
- NodeElement.prototype.select = function() {
- var $li, $span;
- $li = this.getLi();
- $li.addClass('jqtree-selected');
- $li.attr('aria-selected', 'true');
- $span = this.getSpan();
- return $span.attr('tabindex', 0);
- };
-
- NodeElement.prototype.deselect = function() {
- var $li, $span;
- $li = this.getLi();
- $li.removeClass('jqtree-selected');
- $li.attr('aria-selected', 'false');
- $span = this.getSpan();
- return $span.attr('tabindex', -1);
- };
-
- return NodeElement;
-
-})();
-
-FolderElement = (function(superClass) {
- extend(FolderElement, superClass);
-
- function FolderElement() {
- return FolderElement.__super__.constructor.apply(this, arguments);
- }
-
- FolderElement.prototype.open = function(on_finished, slide) {
- var $button, doOpen;
- if (slide == null) {
- slide = true;
- }
- if (!this.node.is_open) {
- this.node.is_open = true;
- $button = this.getButton();
- $button.removeClass('jqtree-closed');
- $button.html('');
- $button.append(this.tree_widget.renderer.opened_icon_element.cloneNode(false));
- doOpen = (function(_this) {
- return function() {
- var $li, $span;
- $li = _this.getLi();
- $li.removeClass('jqtree-closed');
- $span = _this.getSpan();
- $span.attr('aria-expanded', 'true');
- if (on_finished) {
- on_finished(_this.node);
- }
- return _this.tree_widget._triggerEvent('tree.open', {
- node: _this.node
- });
- };
- })(this);
- if (slide) {
- return this.getUl().slideDown('fast', doOpen);
- } else {
- this.getUl().show();
- return doOpen();
- }
- }
- };
-
- FolderElement.prototype.close = function(slide) {
- var $button, doClose;
- if (slide == null) {
- slide = true;
- }
- if (this.node.is_open) {
- this.node.is_open = false;
- $button = this.getButton();
- $button.addClass('jqtree-closed');
- $button.html('');
- $button.append(this.tree_widget.renderer.closed_icon_element.cloneNode(false));
- doClose = (function(_this) {
- return function() {
- var $li, $span;
- $li = _this.getLi();
- $li.addClass('jqtree-closed');
- $span = _this.getSpan();
- $span.attr('aria-expanded', 'false');
- return _this.tree_widget._triggerEvent('tree.close', {
- node: _this.node
- });
- };
- })(this);
- if (slide) {
- return this.getUl().slideUp('fast', doClose);
- } else {
- this.getUl().hide();
- return doClose();
- }
- }
- };
-
- FolderElement.prototype.getButton = function() {
- return this.$element.children('.jqtree-element').find('a.jqtree-toggler');
- };
-
- FolderElement.prototype.addDropHint = function(position) {
- if (!this.node.is_open && position === Position.INSIDE) {
- return new BorderDropHint(this.$element);
- } else {
- return new GhostDropHint(this.node, this.$element, position);
- }
- };
-
- return FolderElement;
-
-})(NodeElement);
-
-BorderDropHint = (function() {
- function BorderDropHint($element) {
- var $div, width;
- $div = $element.children('.jqtree-element');
- width = $element.width() - 4;
- this.$hint = $('<span class="jqtree-border"></span>');
- $div.append(this.$hint);
- this.$hint.css({
- width: width,
- height: $div.outerHeight() - 4
- });
- }
-
- BorderDropHint.prototype.remove = function() {
- return this.$hint.remove();
- };
-
- return BorderDropHint;
-
-})();
-
-GhostDropHint = (function() {
- function GhostDropHint(node, $element, position) {
- this.$element = $element;
- this.node = node;
- this.$ghost = $('<li class="jqtree_common jqtree-ghost"><span class="jqtree_common jqtree-circle"></span><span class="jqtree_common jqtree-line"></span></li>');
- if (position === Position.AFTER) {
- this.moveAfter();
- } else if (position === Position.BEFORE) {
- this.moveBefore();
- } else if (position === Position.INSIDE) {
- if (node.isFolder() && node.is_open) {
- this.moveInsideOpenFolder();
- } else {
- this.moveInside();
- }
- }
- }
-
- GhostDropHint.prototype.remove = function() {
- return this.$ghost.remove();
- };
-
- GhostDropHint.prototype.moveAfter = function() {
- return this.$element.after(this.$ghost);
- };
-
- GhostDropHint.prototype.moveBefore = function() {
- return this.$element.before(this.$ghost);
- };
-
- GhostDropHint.prototype.moveInsideOpenFolder = function() {
- return $(this.node.children[0].element).before(this.$ghost);
- };
-
- GhostDropHint.prototype.moveInside = function() {
- this.$element.after(this.$ghost);
- return this.$ghost.addClass('jqtree-inside');
- };
-
- return GhostDropHint;
-
-})();
-
-module.exports = {
- BorderDropHint: BorderDropHint,
- FolderElement: FolderElement,
- GhostDropHint: GhostDropHint,
- NodeElement: NodeElement
-};
-
-},{"./node":5}],7:[function(require,module,exports){
-var $, SaveStateHandler, indexOf, isInt, util;
-
-util = require('./util');
-
-indexOf = util.indexOf;
-
-isInt = util.isInt;
-
-$ = jQuery;
-
-SaveStateHandler = (function() {
- function SaveStateHandler(tree_widget) {
- this.tree_widget = tree_widget;
- }
-
- SaveStateHandler.prototype.saveState = function() {
- var state;
- state = JSON.stringify(this.getState());
- if (this.tree_widget.options.onSetStateFromStorage) {
- return this.tree_widget.options.onSetStateFromStorage(state);
- } else if (this.supportsLocalStorage()) {
- return localStorage.setItem(this.getCookieName(), state);
- } else if ($.cookie) {
- $.cookie.raw = true;
- return $.cookie(this.getCookieName(), state, {
- path: '/'
- });
- }
- };
-
- SaveStateHandler.prototype.getStateFromStorage = function() {
- var json_data;
- json_data = this._loadFromStorage();
- if (json_data) {
- return this._parseState(json_data);
- } else {
- return null;
- }
- };
-
- SaveStateHandler.prototype._parseState = function(json_data) {
- var state;
- state = $.parseJSON(json_data);
- if (state && state.selected_node && isInt(state.selected_node)) {
- state.selected_node = [state.selected_node];
- }
- return state;
- };
-
- SaveStateHandler.prototype._loadFromStorage = function() {
- if (this.tree_widget.options.onGetStateFromStorage) {
- return this.tree_widget.options.onGetStateFromStorage();
- } else if (this.supportsLocalStorage()) {
- return localStorage.getItem(this.getCookieName());
- } else if ($.cookie) {
- $.cookie.raw = true;
- return $.cookie(this.getCookieName());
- } else {
- return null;
- }
- };
-
- SaveStateHandler.prototype.getState = function() {
- var getOpenNodeIds, getSelectedNodeIds;
- getOpenNodeIds = (function(_this) {
- return function() {
- var open_nodes;
- open_nodes = [];
- _this.tree_widget.tree.iterate(function(node) {
- if (node.is_open && node.id && node.hasChildren()) {
- open_nodes.push(node.id);
- }
- return true;
- });
- return open_nodes;
- };
- })(this);
- getSelectedNodeIds = (function(_this) {
- return function() {
- var n;
- return (function() {
- var i, len, ref, results;
- ref = this.tree_widget.getSelectedNodes();
- results = [];
- for (i = 0, len = ref.length; i < len; i++) {
- n = ref[i];
- results.push(n.id);
- }
- return results;
- }).call(_this);
- };
- })(this);
- return {
- open_nodes: getOpenNodeIds(),
- selected_node: getSelectedNodeIds()
- };
- };
-
- SaveStateHandler.prototype.setInitialState = function(state) {
- var must_load_on_demand;
- if (!state) {
- return false;
- } else {
- must_load_on_demand = this._openInitialNodes(state.open_nodes);
- this._selectInitialNodes(state.selected_node);
- return must_load_on_demand;
- }
- };
-
- SaveStateHandler.prototype._openInitialNodes = function(node_ids) {
- var i, len, must_load_on_demand, node, node_id;
- must_load_on_demand = false;
- for (i = 0, len = node_ids.length; i < len; i++) {
- node_id = node_ids[i];
- node = this.tree_widget.getNodeById(node_id);
- if (node) {
- if (!node.load_on_demand) {
- node.is_open = true;
- } else {
- must_load_on_demand = true;
- }
- }
- }
- return must_load_on_demand;
- };
-
- SaveStateHandler.prototype._selectInitialNodes = function(node_ids) {
- var i, len, node, node_id, select_count;
- select_count = 0;
- for (i = 0, len = node_ids.length; i < len; i++) {
- node_id = node_ids[i];
- node = this.tree_widget.getNodeById(node_id);
- if (node) {
- select_count += 1;
- this.tree_widget.select_node_handler.addToSelection(node);
- }
- }
- return select_count !== 0;
- };
-
- SaveStateHandler.prototype.setInitialStateOnDemand = function(state, cb_finished) {
- if (state) {
- return this._setInitialStateOnDemand(state.open_nodes, state.selected_node, cb_finished);
- } else {
- return cb_finished();
- }
- };
-
- SaveStateHandler.prototype._setInitialStateOnDemand = function(node_ids, selected_nodes, cb_finished) {
- var loadAndOpenNode, loading_count, openNodes;
- loading_count = 0;
- openNodes = (function(_this) {
- return function() {
- var i, len, new_nodes_ids, node, node_id;
- new_nodes_ids = [];
- for (i = 0, len = node_ids.length; i < len; i++) {
- node_id = node_ids[i];
- node = _this.tree_widget.getNodeById(node_id);
- if (!node) {
- new_nodes_ids.push(node_id);
- } else {
- if (!node.is_loading) {
- if (node.load_on_demand) {
- loadAndOpenNode(node);
- } else {
- _this.tree_widget._openNode(node, false);
- }
- }
- }
- }
- node_ids = new_nodes_ids;
- if (_this._selectInitialNodes(selected_nodes)) {
- _this.tree_widget._refreshElements();
- }
- if (loading_count === 0) {
- return cb_finished();
- }
- };
- })(this);
- loadAndOpenNode = (function(_this) {
- return function(node) {
- loading_count += 1;
- return _this.tree_widget._openNode(node, false, function() {
- loading_count -= 1;
- return openNodes();
- });
- };
- })(this);
- return openNodes();
- };
-
- SaveStateHandler.prototype.getCookieName = function() {
- if (typeof this.tree_widget.options.saveState === 'string') {
- return this.tree_widget.options.saveState;
- } else {
- return 'tree';
- }
- };
-
- SaveStateHandler.prototype.supportsLocalStorage = function() {
- var testSupport;
- testSupport = function() {
- var error, key;
- if (typeof localStorage === "undefined" || localStorage === null) {
- return false;
- } else {
- try {
- key = '_storage_test';
- sessionStorage.setItem(key, true);
- sessionStorage.removeItem(key);
- } catch (error1) {
- error = error1;
- return false;
- }
- return true;
- }
- };
- if (this._supportsLocalStorage == null) {
- this._supportsLocalStorage = testSupport();
- }
- return this._supportsLocalStorage;
- };
-
- SaveStateHandler.prototype.getNodeIdToBeSelected = function() {
- var state;
- state = this.getStateFromStorage();
- if (state && state.selected_node) {
- return state.selected_node[0];
- } else {
- return null;
- }
- };
-
- return SaveStateHandler;
-
-})();
-
-module.exports = SaveStateHandler;
-
-},{"./util":12}],8:[function(require,module,exports){
-var $, ScrollHandler;
-
-$ = jQuery;
-
-ScrollHandler = (function() {
- function ScrollHandler(tree_widget) {
- this.tree_widget = tree_widget;
- this.previous_top = -1;
- this.is_initialized = false;
- }
-
- ScrollHandler.prototype._initScrollParent = function() {
- var $scroll_parent, getParentWithOverflow, setDocumentAsScrollParent;
- getParentWithOverflow = (function(_this) {
- return function() {
- var css_values, el, hasOverFlow, i, len, ref;
- css_values = ['overflow', 'overflow-y'];
- hasOverFlow = function(el) {
- var css_value, i, len, ref;
- for (i = 0, len = css_values.length; i < len; i++) {
- css_value = css_values[i];
- if ((ref = $.css(el, css_value)) === 'auto' || ref === 'scroll') {
- return true;
- }
- }
- return false;
- };
- if (hasOverFlow(_this.tree_widget.$el[0])) {
- return _this.tree_widget.$el;
- }
- ref = _this.tree_widget.$el.parents();
- for (i = 0, len = ref.length; i < len; i++) {
- el = ref[i];
- if (hasOverFlow(el)) {
- return $(el);
- }
- }
- return null;
- };
- })(this);
- setDocumentAsScrollParent = (function(_this) {
- return function() {
- _this.scroll_parent_top = 0;
- return _this.$scroll_parent = null;
- };
- })(this);
- if (this.tree_widget.$el.css('position') === 'fixed') {
- setDocumentAsScrollParent();
- }
- $scroll_parent = getParentWithOverflow();
- if ($scroll_parent && $scroll_parent.length && $scroll_parent[0].tagName !== 'HTML') {
- this.$scroll_parent = $scroll_parent;
- this.scroll_parent_top = this.$scroll_parent.offset().top;
- } else {
- setDocumentAsScrollParent();
- }
- return this.is_initialized = true;
- };
-
- ScrollHandler.prototype._ensureInit = function() {
- if (!this.is_initialized) {
- return this._initScrollParent();
- }
- };
-
- ScrollHandler.prototype.checkScrolling = function() {
- var hovered_area;
- this._ensureInit();
- hovered_area = this.tree_widget.dnd_handler.hovered_area;
- if (hovered_area && hovered_area.top !== this.previous_top) {
- this.previous_top = hovered_area.top;
- if (this.$scroll_parent) {
- return this._handleScrollingWithScrollParent(hovered_area);
- } else {
- return this._handleScrollingWithDocument(hovered_area);
- }
- }
- };
-
- ScrollHandler.prototype._handleScrollingWithScrollParent = function(area) {
- var distance_bottom;
- distance_bottom = this.scroll_parent_top + this.$scroll_parent[0].offsetHeight - area.bottom;
- if (distance_bottom < 20) {
- this.$scroll_parent[0].scrollTop += 20;
- this.tree_widget.refreshHitAreas();
- return this.previous_top = -1;
- } else if ((area.top - this.scroll_parent_top) < 20) {
- this.$scroll_parent[0].scrollTop -= 20;
- this.tree_widget.refreshHitAreas();
- return this.previous_top = -1;
- }
- };
-
- ScrollHandler.prototype._handleScrollingWithDocument = function(area) {
- var distance_top;
- distance_top = area.top - $(document).scrollTop();
- if (distance_top < 20) {
- return $(document).scrollTop($(document).scrollTop() - 20);
- } else if ($(window).height() - (area.bottom - $(document).scrollTop()) < 20) {
- return $(document).scrollTop($(document).scrollTop() + 20);
- }
- };
-
- ScrollHandler.prototype.scrollTo = function(top) {
- var tree_top;
- this._ensureInit();
- if (this.$scroll_parent) {
- return this.$scroll_parent[0].scrollTop = top;
- } else {
- tree_top = this.tree_widget.$el.offset().top;
- return $(document).scrollTop(top + tree_top);
- }
- };
-
- ScrollHandler.prototype.isScrolledIntoView = function(element) {
- var $element, element_bottom, element_top, view_bottom, view_top;
- this._ensureInit();
- $element = $(element);
- if (this.$scroll_parent) {
- view_top = 0;
- view_bottom = this.$scroll_parent.height();
- element_top = $element.offset().top - this.scroll_parent_top;
- element_bottom = element_top + $element.height();
- } else {
- view_top = $(window).scrollTop();
- view_bottom = view_top + $(window).height();
- element_top = $element.offset().top;
- element_bottom = element_top + $element.height();
- }
- return (element_bottom <= view_bottom) && (element_top >= view_top);
- };
-
- return ScrollHandler;
-
-})();
-
-module.exports = ScrollHandler;
-
-},{}],9:[function(require,module,exports){
-var $, SelectNodeHandler;
-
-$ = jQuery;
-
-SelectNodeHandler = (function() {
- function SelectNodeHandler(tree_widget) {
- this.tree_widget = tree_widget;
- this.clear();
- }
-
- SelectNodeHandler.prototype.getSelectedNode = function() {
- var selected_nodes;
- selected_nodes = this.getSelectedNodes();
- if (selected_nodes.length) {
- return selected_nodes[0];
- } else {
- return false;
- }
- };
-
- SelectNodeHandler.prototype.getSelectedNodes = function() {
- var id, node, selected_nodes;
- if (this.selected_single_node) {
- return [this.selected_single_node];
- } else {
- selected_nodes = [];
- for (id in this.selected_nodes) {
- node = this.tree_widget.getNodeById(id);
- if (node) {
- selected_nodes.push(node);
- }
- }
- return selected_nodes;
- }
- };
-
- SelectNodeHandler.prototype.getSelectedNodesUnder = function(parent) {
- var id, node, selected_nodes;
- if (this.selected_single_node) {
- if (parent.isParentOf(this.selected_single_node)) {
- return [this.selected_single_node];
- } else {
- return [];
- }
- } else {
- selected_nodes = [];
- for (id in this.selected_nodes) {
- node = this.tree_widget.getNodeById(id);
- if (node && parent.isParentOf(node)) {
- selected_nodes.push(node);
- }
- }
- return selected_nodes;
- }
- };
-
- SelectNodeHandler.prototype.isNodeSelected = function(node) {
- if (!node) {
- return false;
- } else if (node.id) {
- if (this.selected_nodes[node.id]) {
- return true;
- } else {
- return false;
- }
- } else if (this.selected_single_node) {
- return this.selected_single_node.element === node.element;
- } else {
- return false;
- }
- };
-
- SelectNodeHandler.prototype.clear = function() {
- this.selected_nodes = {};
- return this.selected_single_node = null;
- };
-
- SelectNodeHandler.prototype.removeFromSelection = function(node, include_children) {
- if (include_children == null) {
- include_children = false;
- }
- if (!node.id) {
- if (this.selected_single_node && node.element === this.selected_single_node.element) {
- return this.selected_single_node = null;
- }
- } else {
- delete this.selected_nodes[node.id];
- if (include_children) {
- return node.iterate((function(_this) {
- return function(n) {
- delete _this.selected_nodes[node.id];
- return true;
- };
- })(this));
- }
- }
- };
-
- SelectNodeHandler.prototype.addToSelection = function(node) {
- if (node.id) {
- return this.selected_nodes[node.id] = true;
- } else {
- return this.selected_single_node = node;
- }
- };
-
- return SelectNodeHandler;
-
-})();
-
-module.exports = SelectNodeHandler;
-
-},{}],10:[function(require,module,exports){
-
-/*
-Copyright 2013 Marco Braak
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
- */
-var $, SimpleWidget,
- slice = [].slice;
-
-$ = jQuery;
-
-SimpleWidget = (function() {
- SimpleWidget.prototype.defaults = {};
-
- function SimpleWidget(el, options) {
- this.$el = $(el);
- this.options = $.extend({}, this.defaults, options);
- }
-
- SimpleWidget.prototype.destroy = function() {
- return this._deinit();
- };
-
- SimpleWidget.prototype._init = function() {
- return null;
- };
-
- SimpleWidget.prototype._deinit = function() {
- return null;
- };
-
- SimpleWidget.register = function(widget_class, widget_name) {
- var callFunction, createWidget, destroyWidget, getDataKey, getWidgetData;
- getDataKey = function() {
- return "simple_widget_" + widget_name;
- };
- getWidgetData = function(el, data_key) {
- var widget;
- widget = $.data(el, data_key);
- if (widget && (widget instanceof SimpleWidget)) {
- return widget;
- } else {
- return null;
- }
- };
- createWidget = function($el, options) {
- var data_key, el, existing_widget, i, len, widget;
- data_key = getDataKey();
- for (i = 0, len = $el.length; i < len; i++) {
- el = $el[i];
- existing_widget = getWidgetData(el, data_key);
- if (!existing_widget) {
- widget = new widget_class(el, options);
- if (!$.data(el, data_key)) {
- $.data(el, data_key, widget);
- }
- widget._init();
- }
- }
- return $el;
- };
- destroyWidget = function($el) {
- var data_key, el, i, len, results, widget;
- data_key = getDataKey();
- results = [];
- for (i = 0, len = $el.length; i < len; i++) {
- el = $el[i];
- widget = getWidgetData(el, data_key);
- if (widget) {
- widget.destroy();
- }
- results.push($.removeData(el, data_key));
- }
- return results;
- };
- callFunction = function($el, function_name, args) {
- var el, i, len, result, widget, widget_function;
- result = null;
- for (i = 0, len = $el.length; i < len; i++) {
- el = $el[i];
- widget = $.data(el, getDataKey());
- if (widget && (widget instanceof SimpleWidget)) {
- widget_function = widget[function_name];
- if (widget_function && (typeof widget_function === 'function')) {
- result = widget_function.apply(widget, args);
- }
- }
- }
- return result;
- };
- return $.fn[widget_name] = function() {
- var $el, args, argument1, function_name, options;
- argument1 = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
- $el = this;
- if (argument1 === void 0 || typeof argument1 === 'object') {
- options = argument1;
- return createWidget($el, options);
- } else if (typeof argument1 === 'string' && argument1[0] !== '_') {
- function_name = argument1;
- if (function_name === 'destroy') {
- return destroyWidget($el);
- } else if (function_name === 'get_widget_class') {
- return widget_class;
- } else {
- return callFunction($el, function_name, args);
- }
- }
- };
- };
-
- return SimpleWidget;
-
-})();
-
-module.exports = SimpleWidget;
-
-},{}],11:[function(require,module,exports){
-var $, BorderDropHint, DragAndDropHandler, DragElement, ElementsRenderer, FolderElement, GhostDropHint, HitAreasGenerator, JqTreeWidget, KeyHandler, MouseWidget, Node, NodeElement, Position, SaveStateHandler, ScrollHandler, SelectNodeHandler, SimpleWidget, __version__, drag_and_drop_handler, isFunction, node_module, ref, util_module,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
-__version__ = require('./version');
-
-drag_and_drop_handler = require('./drag_and_drop_handler');
-
-ElementsRenderer = require('./elements_renderer');
-
-KeyHandler = require('./key_handler');
-
-MouseWidget = require('./mouse.widget');
-
-SaveStateHandler = require('./save_state_handler');
-
-ScrollHandler = require('./scroll_handler');
-
-SelectNodeHandler = require('./select_node_handler');
-
-SimpleWidget = require('./simple.widget');
-
-node_module = require('./node');
-
-Node = node_module.Node;
-
-Position = node_module.Position;
-
-util_module = require('./util');
-
-isFunction = util_module.isFunction;
-
-ref = require('./node_element'), BorderDropHint = ref.BorderDropHint, FolderElement = ref.FolderElement, GhostDropHint = ref.GhostDropHint, NodeElement = ref.NodeElement;
-
-DragAndDropHandler = drag_and_drop_handler.DragAndDropHandler, DragElement = drag_and_drop_handler.DragElement, HitAreasGenerator = drag_and_drop_handler.HitAreasGenerator;
-
-$ = jQuery;
-
-JqTreeWidget = (function(superClass) {
- extend(JqTreeWidget, superClass);
-
- function JqTreeWidget() {
- return JqTreeWidget.__super__.constructor.apply(this, arguments);
- }
-
- JqTreeWidget.prototype.BorderDropHint = BorderDropHint;
-
- JqTreeWidget.prototype.DragElement = DragElement;
-
- JqTreeWidget.prototype.DragAndDropHandler = DragAndDropHandler;
-
- JqTreeWidget.prototype.ElementsRenderer = ElementsRenderer;
-
- JqTreeWidget.prototype.GhostDropHint = GhostDropHint;
-
- JqTreeWidget.prototype.HitAreasGenerator = HitAreasGenerator;
-
- JqTreeWidget.prototype.Node = Node;
-
- JqTreeWidget.prototype.SaveStateHandler = SaveStateHandler;
-
- JqTreeWidget.prototype.ScrollHandler = ScrollHandler;
-
- JqTreeWidget.prototype.SelectNodeHandler = SelectNodeHandler;
-
- JqTreeWidget.prototype.defaults = {
- autoOpen: false,
- saveState: false,
- dragAndDrop: false,
- selectable: true,
- useContextMenu: true,
- onCanSelectNode: null,
- onSetStateFromStorage: null,
- onGetStateFromStorage: null,
- onCreateLi: null,
- onIsMoveHandle: null,
- onCanMove: null,
- onCanMoveTo: null,
- onLoadFailed: null,
- autoEscape: true,
- dataUrl: null,
- closedIcon: null,
- openedIcon: '&#x25bc;',
- slide: true,
- nodeClass: Node,
- dataFilter: null,
- keyboardSupport: true,
- openFolderDelay: 500,
- rtl: null,
- onDragMove: null,
- onDragStop: null,
- buttonLeft: true,
- onLoading: null
- };
-
- JqTreeWidget.prototype.toggle = function(node, slide) {
- if (slide == null) {
- slide = null;
- }
- if (slide === null) {
- slide = this.options.slide;
- }
- if (node.is_open) {
- this.closeNode(node, slide);
- } else {
- this.openNode(node, slide);
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.getTree = function() {
- return this.tree;
- };
-
- JqTreeWidget.prototype.selectNode = function(node) {
- this._selectNode(node, false);
- return this.element;
- };
-
- JqTreeWidget.prototype._selectNode = function(node, must_toggle) {
- var canSelect, deselected_node, openParents, saveState;
- if (must_toggle == null) {
- must_toggle = false;
- }
- if (!this.select_node_handler) {
- return;
- }
- canSelect = (function(_this) {
- return function() {
- if (_this.options.onCanSelectNode) {
- return _this.options.selectable && _this.options.onCanSelectNode(node);
- } else {
- return _this.options.selectable;
- }
- };
- })(this);
- openParents = (function(_this) {
- return function() {
- var parent;
- parent = node.parent;
- if (parent && parent.parent && !parent.is_open) {
- return _this.openNode(parent, false);
- }
- };
- })(this);
- saveState = (function(_this) {
- return function() {
- if (_this.options.saveState) {
- return _this.save_state_handler.saveState();
- }
- };
- })(this);
- if (!node) {
- this._deselectCurrentNode();
- saveState();
- return;
- }
- if (!canSelect()) {
- return;
- }
- if (this.select_node_handler.isNodeSelected(node)) {
- if (must_toggle) {
- this._deselectCurrentNode();
- this._triggerEvent('tree.select', {
- node: null,
- previous_node: node
- });
- }
- } else {
- deselected_node = this.getSelectedNode();
- this._deselectCurrentNode();
- this.addToSelection(node);
- this._triggerEvent('tree.select', {
- node: node,
- deselected_node: deselected_node
- });
- openParents();
- }
- return saveState();
- };
-
- JqTreeWidget.prototype.getSelectedNode = function() {
- if (this.select_node_handler) {
- return this.select_node_handler.getSelectedNode();
- } else {
- return null;
- }
- };
-
- JqTreeWidget.prototype.toJson = function() {
- return JSON.stringify(this.tree.getData());
- };
-
- JqTreeWidget.prototype.loadData = function(data, parent_node) {
- this._loadData(data, parent_node);
- return this.element;
- };
-
-
- /*
- signatures:
- - loadDataFromUrl(url, parent_node=null, on_finished=null)
- loadDataFromUrl('/my_data');
- loadDataFromUrl('/my_data', node1);
- loadDataFromUrl('/my_data', node1, function() { console.log('finished'); });
- loadDataFromUrl('/my_data', null, function() { console.log('finished'); });
-
- - loadDataFromUrl(parent_node=null, on_finished=null)
- loadDataFromUrl();
- loadDataFromUrl(node1);
- loadDataFromUrl(null, function() { console.log('finished'); });
- loadDataFromUrl(node1, function() { console.log('finished'); });
- */
-
- JqTreeWidget.prototype.loadDataFromUrl = function(param1, param2, param3) {
- if ($.type(param1) === 'string') {
- this._loadDataFromUrl(param1, param2, param3);
- } else {
- this._loadDataFromUrl(null, param1, param2);
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.reload = function(on_finished) {
- this._loadDataFromUrl(null, null, on_finished);
- return this.element;
- };
-
- JqTreeWidget.prototype._loadDataFromUrl = function(url_info, parent_node, on_finished) {
- var $el, addLoadingClass, handeLoadData, handleError, handleSuccess, loadDataFromUrlInfo, parseUrlInfo, removeLoadingClass;
- $el = null;
- addLoadingClass = (function(_this) {
- return function() {
- if (parent_node) {
- $el = $(parent_node.element);
- } else {
- $el = _this.element;
- }
- $el.addClass('jqtree-loading');
- return _this._notifyLoading(true, parent_node, $el);
- };
- })(this);
- removeLoadingClass = (function(_this) {
- return function() {
- if ($el) {
- $el.removeClass('jqtree-loading');
- return _this._notifyLoading(false, parent_node, $el);
- }
- };
- })(this);
- parseUrlInfo = function() {
- if ($.type(url_info) === 'string') {
- return {
- url: url_info
- };
- }
- if (!url_info.method) {
- url_info.method = 'get';
- }
- return url_info;
- };
- handeLoadData = (function(_this) {
- return function(data) {
- removeLoadingClass();
- _this._loadData(data, parent_node);
- if (on_finished && $.isFunction(on_finished)) {
- return on_finished();
- }
- };
- })(this);
- handleSuccess = (function(_this) {
- return function(response) {
- var data;
- if ($.isArray(response) || typeof response === 'object') {
- data = response;
- } else if (data != null) {
- data = $.parseJSON(response);
- } else {
- data = [];
- }
- if (_this.options.dataFilter) {
- data = _this.options.dataFilter(data);
- }
- return handeLoadData(data);
- };
- })(this);
- handleError = (function(_this) {
- return function(response) {
- removeLoadingClass();
- if (_this.options.onLoadFailed) {
- return _this.options.onLoadFailed(response);
- }
- };
- })(this);
- loadDataFromUrlInfo = function() {
- url_info = parseUrlInfo();
- return $.ajax($.extend({}, url_info, {
- method: url_info.method != null ? url_info.method.toUpperCase() : 'GET',
- cache: false,
- dataType: 'json',
- success: handleSuccess,
- error: handleError
- }));
- };
- if (!url_info) {
- url_info = this._getDataUrlInfo(parent_node);
- }
- addLoadingClass();
- if (!url_info) {
- removeLoadingClass();
- } else if ($.isArray(url_info)) {
- handeLoadData(url_info);
- } else {
- loadDataFromUrlInfo();
- }
- };
-
- JqTreeWidget.prototype._loadData = function(data, parent_node) {
- var deselectNodes, loadSubtree;
- if (parent_node == null) {
- parent_node = null;
- }
- deselectNodes = (function(_this) {
- return function() {
- var i, len, n, selected_nodes_under_parent;
- if (_this.select_node_handler) {
- selected_nodes_under_parent = _this.select_node_handler.getSelectedNodesUnder(parent_node);
- for (i = 0, len = selected_nodes_under_parent.length; i < len; i++) {
- n = selected_nodes_under_parent[i];
- _this.select_node_handler.removeFromSelection(n);
- }
- }
- return null;
- };
- })(this);
- loadSubtree = (function(_this) {
- return function() {
- parent_node.loadFromData(data);
- parent_node.load_on_demand = false;
- parent_node.is_loading = false;
- return _this._refreshElements(parent_node);
- };
- })(this);
- if (!data) {
- return;
- }
- this._triggerEvent('tree.load_data', {
- tree_data: data
- });
- if (!parent_node) {
- this._initTree(data);
- } else {
- deselectNodes();
- loadSubtree();
- }
- if (this.isDragging()) {
- return this.dnd_handler.refresh();
- }
- };
-
- JqTreeWidget.prototype.getNodeById = function(node_id) {
- return this.tree.getNodeById(node_id);
- };
-
- JqTreeWidget.prototype.getNodeByName = function(name) {
- return this.tree.getNodeByName(name);
- };
-
- JqTreeWidget.prototype.getNodesByProperty = function(key, value) {
- return this.tree.getNodesByProperty(key, value);
- };
-
- JqTreeWidget.prototype.getNodeByHtmlElement = function(element) {
- return this._getNode($(element));
- };
-
- JqTreeWidget.prototype.getNodeByCallback = function(callback) {
- return this.tree.getNodeByCallback(callback);
- };
-
- JqTreeWidget.prototype.openNode = function(node, slide_param, on_finished_param) {
- var on_finished, parseParams, ref1, slide;
- if (slide_param == null) {
- slide_param = null;
- }
- if (on_finished_param == null) {
- on_finished_param = null;
- }
- parseParams = (function(_this) {
- return function() {
- var on_finished, slide;
- if (isFunction(slide_param)) {
- on_finished = slide_param;
- slide = null;
- } else {
- slide = slide_param;
- on_finished = on_finished_param;
- }
- if (slide === null) {
- slide = _this.options.slide;
- }
- return [slide, on_finished];
- };
- })(this);
- ref1 = parseParams(), slide = ref1[0], on_finished = ref1[1];
- if (node) {
- this._openNode(node, slide, on_finished);
- }
- return this.element;
- };
-
- JqTreeWidget.prototype._openNode = function(node, slide, on_finished) {
- var doOpenNode, parent;
- if (slide == null) {
- slide = true;
- }
- doOpenNode = (function(_this) {
- return function(_node, _slide, _on_finished) {
- var folder_element;
- folder_element = new FolderElement(_node, _this);
- return folder_element.open(_on_finished, _slide);
- };
- })(this);
- if (node.isFolder()) {
- if (node.load_on_demand) {
- return this._loadFolderOnDemand(node, slide, on_finished);
- } else {
- parent = node.parent;
- while (parent) {
- if (parent.parent) {
- doOpenNode(parent, false, null);
- }
- parent = parent.parent;
- }
- doOpenNode(node, slide, on_finished);
- return this._saveState();
- }
- }
- };
-
- JqTreeWidget.prototype._loadFolderOnDemand = function(node, slide, on_finished) {
- if (slide == null) {
- slide = true;
- }
- node.is_loading = true;
- return this._loadDataFromUrl(null, node, (function(_this) {
- return function() {
- return _this._openNode(node, slide, on_finished);
- };
- })(this));
- };
-
- JqTreeWidget.prototype.closeNode = function(node, slide) {
- if (slide == null) {
- slide = null;
- }
- if (slide === null) {
- slide = this.options.slide;
- }
- if (node.isFolder()) {
- new FolderElement(node, this).close(slide);
- this._saveState();
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.isDragging = function() {
- if (this.dnd_handler) {
- return this.dnd_handler.is_dragging;
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype.refreshHitAreas = function() {
- this.dnd_handler.refresh();
- return this.element;
- };
-
- JqTreeWidget.prototype.addNodeAfter = function(new_node_info, existing_node) {
- var new_node;
- new_node = existing_node.addAfter(new_node_info);
- this._refreshElements(existing_node.parent);
- return new_node;
- };
-
- JqTreeWidget.prototype.addNodeBefore = function(new_node_info, existing_node) {
- var new_node;
- new_node = existing_node.addBefore(new_node_info);
- this._refreshElements(existing_node.parent);
- return new_node;
- };
-
- JqTreeWidget.prototype.addParentNode = function(new_node_info, existing_node) {
- var new_node;
- new_node = existing_node.addParent(new_node_info);
- this._refreshElements(new_node.parent);
- return new_node;
- };
-
- JqTreeWidget.prototype.removeNode = function(node) {
- var parent;
- parent = node.parent;
- if (parent) {
- this.select_node_handler.removeFromSelection(node, true);
- node.remove();
- this._refreshElements(parent);
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.appendNode = function(new_node_info, parent_node) {
- var node;
- parent_node = parent_node || this.tree;
- node = parent_node.append(new_node_info);
- this._refreshElements(parent_node);
- return node;
- };
-
- JqTreeWidget.prototype.prependNode = function(new_node_info, parent_node) {
- var node;
- if (!parent_node) {
- parent_node = this.tree;
- }
- node = parent_node.prepend(new_node_info);
- this._refreshElements(parent_node);
- return node;
- };
-
- JqTreeWidget.prototype.updateNode = function(node, data) {
- var id_is_changed;
- id_is_changed = data.id && data.id !== node.id;
- if (id_is_changed) {
- this.tree.removeNodeFromIndex(node);
- }
- node.setData(data);
- if (id_is_changed) {
- this.tree.addNodeToIndex(node);
- }
- if (typeof data === 'object' && data.children) {
- node.removeChildren();
- if (data.children.length) {
- node.loadFromData(data.children);
- }
- }
- this.renderer.renderFromNode(node);
- this._selectCurrentNode();
- return this.element;
- };
-
- JqTreeWidget.prototype.moveNode = function(node, target_node, position) {
- var position_index;
- position_index = Position.nameToIndex(position);
- this.tree.moveNode(node, target_node, position_index);
- this._refreshElements();
- return this.element;
- };
-
- JqTreeWidget.prototype.getStateFromStorage = function() {
- return this.save_state_handler.getStateFromStorage();
- };
-
- JqTreeWidget.prototype.addToSelection = function(node) {
- if (node) {
- this.select_node_handler.addToSelection(node);
- this._getNodeElementForNode(node).select();
- this._saveState();
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.getSelectedNodes = function() {
- return this.select_node_handler.getSelectedNodes();
- };
-
- JqTreeWidget.prototype.isNodeSelected = function(node) {
- return this.select_node_handler.isNodeSelected(node);
- };
-
- JqTreeWidget.prototype.removeFromSelection = function(node) {
- this.select_node_handler.removeFromSelection(node);
- this._getNodeElementForNode(node).deselect();
- this._saveState();
- return this.element;
- };
-
- JqTreeWidget.prototype.scrollToNode = function(node) {
- var $element, top;
- $element = $(node.element);
- top = $element.offset().top - this.$el.offset().top;
- this.scroll_handler.scrollTo(top);
- return this.element;
- };
-
- JqTreeWidget.prototype.getState = function() {
- return this.save_state_handler.getState();
- };
-
- JqTreeWidget.prototype.setState = function(state) {
- this.save_state_handler.setInitialState(state);
- this._refreshElements();
- return this.element;
- };
-
- JqTreeWidget.prototype.setOption = function(option, value) {
- this.options[option] = value;
- return this.element;
- };
-
- JqTreeWidget.prototype.moveDown = function() {
- if (this.key_handler) {
- this.key_handler.moveDown();
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.moveUp = function() {
- if (this.key_handler) {
- this.key_handler.moveUp();
- }
- return this.element;
- };
-
- JqTreeWidget.prototype.getVersion = function() {
- return __version__;
- };
-
- JqTreeWidget.prototype._init = function() {
- JqTreeWidget.__super__._init.call(this);
- this.element = this.$el;
- this.mouse_delay = 300;
- this.is_initialized = false;
- this.options.rtl = this._getRtlOption();
- if (!this.options.closedIcon) {
- this.options.closedIcon = this._getDefaultClosedIcon();
- }
- this.renderer = new ElementsRenderer(this);
- if (SaveStateHandler != null) {
- this.save_state_handler = new SaveStateHandler(this);
- } else {
- this.options.saveState = false;
- }
- if (SelectNodeHandler != null) {
- this.select_node_handler = new SelectNodeHandler(this);
- }
- if (DragAndDropHandler != null) {
- this.dnd_handler = new DragAndDropHandler(this);
- } else {
- this.options.dragAndDrop = false;
- }
- if (ScrollHandler != null) {
- this.scroll_handler = new ScrollHandler(this);
- }
- if ((KeyHandler != null) && (SelectNodeHandler != null)) {
- this.key_handler = new KeyHandler(this);
- }
- this._initData();
- this.element.click($.proxy(this._click, this));
- this.element.dblclick($.proxy(this._dblclick, this));
- if (this.options.useContextMenu) {
- return this.element.bind('contextmenu', $.proxy(this._contextmenu, this));
- }
- };
-
- JqTreeWidget.prototype._deinit = function() {
- this.element.empty();
- this.element.unbind();
- if (this.key_handler) {
- this.key_handler.deinit();
- }
- this.tree = null;
- return JqTreeWidget.__super__._deinit.call(this);
- };
-
- JqTreeWidget.prototype._initData = function() {
- var data_url;
- if (this.options.data) {
- return this._loadData(this.options.data);
- } else {
- data_url = this._getDataUrlInfo();
- if (data_url) {
- return this._loadDataFromUrl();
- } else {
- return this._loadData([]);
- }
- }
- };
-
- JqTreeWidget.prototype._getDataUrlInfo = function(node) {
- var data_url, getUrlFromString;
- data_url = this.options.dataUrl || this.element.data('url');
- getUrlFromString = (function(_this) {
- return function() {
- var data, selected_node_id, url_info;
- url_info = {
- url: data_url
- };
- if (node && node.id) {
- data = {
- node: node.id
- };
- url_info['data'] = data;
- } else {
- selected_node_id = _this._getNodeIdToBeSelected();
- if (selected_node_id) {
- data = {
- selected_node: selected_node_id
- };
- url_info['data'] = data;
- }
- }
- return url_info;
- };
- })(this);
- if ($.isFunction(data_url)) {
- return data_url(node);
- } else if ($.type(data_url) === 'string') {
- return getUrlFromString();
- } else {
- return data_url;
- }
- };
-
- JqTreeWidget.prototype._getNodeIdToBeSelected = function() {
- if (this.options.saveState) {
- return this.save_state_handler.getNodeIdToBeSelected();
- } else {
- return null;
- }
- };
-
- JqTreeWidget.prototype._initTree = function(data) {
- var doInit, must_load_on_demand;
- doInit = (function(_this) {
- return function() {
- if (!_this.is_initialized) {
- _this.is_initialized = true;
- return _this._triggerEvent('tree.init');
- }
- };
- })(this);
- this.tree = new this.options.nodeClass(null, true, this.options.nodeClass);
- if (this.select_node_handler) {
- this.select_node_handler.clear();
- }
- this.tree.loadFromData(data);
- must_load_on_demand = this._setInitialState();
- this._refreshElements();
- if (!must_load_on_demand) {
- return doInit();
- } else {
- return this._setInitialStateOnDemand(doInit);
- }
- };
-
- JqTreeWidget.prototype._setInitialState = function() {
- var autoOpenNodes, is_restored, must_load_on_demand, ref1, restoreState;
- restoreState = (function(_this) {
- return function() {
- var must_load_on_demand, state;
- if (!(_this.options.saveState && _this.save_state_handler)) {
- return [false, false];
- } else {
- state = _this.save_state_handler.getStateFromStorage();
- if (!state) {
- return [false, false];
- } else {
- must_load_on_demand = _this.save_state_handler.setInitialState(state);
- return [true, must_load_on_demand];
- }
- }
- };
- })(this);
- autoOpenNodes = (function(_this) {
- return function() {
- var max_level, must_load_on_demand;
- if (_this.options.autoOpen === false) {
- return false;
- }
- max_level = _this._getAutoOpenMaxLevel();
- must_load_on_demand = false;
- _this.tree.iterate(function(node, level) {
- if (node.load_on_demand) {
- must_load_on_demand = true;
- return false;
- } else if (!node.hasChildren()) {
- return false;
- } else {
- node.is_open = true;
- return level !== max_level;
- }
- });
- return must_load_on_demand;
- };
- })(this);
- ref1 = restoreState(), is_restored = ref1[0], must_load_on_demand = ref1[1];
- if (!is_restored) {
- must_load_on_demand = autoOpenNodes();
- }
- return must_load_on_demand;
- };
-
- JqTreeWidget.prototype._setInitialStateOnDemand = function(cb_finished) {
- var autoOpenNodes, restoreState;
- restoreState = (function(_this) {
- return function() {
- var state;
- if (!(_this.options.saveState && _this.save_state_handler)) {
- return false;
- } else {
- state = _this.save_state_handler.getStateFromStorage();
- if (!state) {
- return false;
- } else {
- _this.save_state_handler.setInitialStateOnDemand(state, cb_finished);
- return true;
- }
- }
- };
- })(this);
- autoOpenNodes = (function(_this) {
- return function() {
- var loadAndOpenNode, loading_count, max_level, openNodes;
- max_level = _this._getAutoOpenMaxLevel();
- loading_count = 0;
- loadAndOpenNode = function(node) {
- loading_count += 1;
- return _this._openNode(node, false, function() {
- loading_count -= 1;
- return openNodes();
- });
- };
- openNodes = function() {
- _this.tree.iterate(function(node, level) {
- if (node.load_on_demand) {
- if (!node.is_loading) {
- loadAndOpenNode(node);
- }
- return false;
- } else {
- _this._openNode(node, false);
- return level !== max_level;
- }
- });
- if (loading_count === 0) {
- return cb_finished();
- }
- };
- return openNodes();
- };
- })(this);
- if (!restoreState()) {
- return autoOpenNodes();
- }
- };
-
- JqTreeWidget.prototype._getAutoOpenMaxLevel = function() {
- if (this.options.autoOpen === true) {
- return -1;
- } else {
- return parseInt(this.options.autoOpen);
- }
- };
-
-
- /*
- Redraw the tree or part of the tree.
- * from_node: redraw this subtree
- */
-
- JqTreeWidget.prototype._refreshElements = function(from_node) {
- if (from_node == null) {
- from_node = null;
- }
- this.renderer.render(from_node);
- return this._triggerEvent('tree.refresh');
- };
-
- JqTreeWidget.prototype._click = function(e) {
- var click_target, event, node;
- click_target = this._getClickTarget(e.target);
- if (click_target) {
- if (click_target.type === 'button') {
- this.toggle(click_target.node, this.options.slide);
- e.preventDefault();
- return e.stopPropagation();
- } else if (click_target.type === 'label') {
- node = click_target.node;
- event = this._triggerEvent('tree.click', {
- node: node,
- click_event: e
- });
- if (!event.isDefaultPrevented()) {
- return this._selectNode(node, true);
- }
- }
- }
- };
-
- JqTreeWidget.prototype._dblclick = function(e) {
- var click_target;
- click_target = this._getClickTarget(e.target);
- if (click_target && click_target.type === 'label') {
- return this._triggerEvent('tree.dblclick', {
- node: click_target.node,
- click_event: e
- });
- }
- };
-
- JqTreeWidget.prototype._getClickTarget = function(element) {
- var $button, $el, $target, node;
- $target = $(element);
- $button = $target.closest('.jqtree-toggler');
- if ($button.length) {
- node = this._getNode($button);
- if (node) {
- return {
- type: 'button',
- node: node
- };
- }
- } else {
- $el = $target.closest('.jqtree-element');
- if ($el.length) {
- node = this._getNode($el);
- if (node) {
- return {
- type: 'label',
- node: node
- };
- }
- }
- }
- return null;
- };
-
- JqTreeWidget.prototype._getNode = function($element) {
- var $li;
- $li = $element.closest('li.jqtree_common');
- if ($li.length === 0) {
- return null;
- } else {
- return $li.data('node');
- }
- };
-
- JqTreeWidget.prototype._getNodeElementForNode = function(node) {
- if (node.isFolder()) {
- return new FolderElement(node, this);
- } else {
- return new NodeElement(node, this);
- }
- };
-
- JqTreeWidget.prototype._getNodeElement = function($element) {
- var node;
- node = this._getNode($element);
- if (node) {
- return this._getNodeElementForNode(node);
- } else {
- return null;
- }
- };
-
- JqTreeWidget.prototype._contextmenu = function(e) {
- var $div, node;
- $div = $(e.target).closest('ul.jqtree-tree .jqtree-element');
- if ($div.length) {
- node = this._getNode($div);
- if (node) {
- e.preventDefault();
- e.stopPropagation();
- this._triggerEvent('tree.contextmenu', {
- node: node,
- click_event: e
- });
- return false;
- }
- }
- };
-
- JqTreeWidget.prototype._saveState = function() {
- if (this.options.saveState) {
- return this.save_state_handler.saveState();
- }
- };
-
- JqTreeWidget.prototype._mouseCapture = function(position_info) {
- if (this.options.dragAndDrop) {
- return this.dnd_handler.mouseCapture(position_info);
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype._mouseStart = function(position_info) {
- if (this.options.dragAndDrop) {
- return this.dnd_handler.mouseStart(position_info);
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype._mouseDrag = function(position_info) {
- var result;
- if (this.options.dragAndDrop) {
- result = this.dnd_handler.mouseDrag(position_info);
- if (this.scroll_handler) {
- this.scroll_handler.checkScrolling();
- }
- return result;
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype._mouseStop = function(position_info) {
- if (this.options.dragAndDrop) {
- return this.dnd_handler.mouseStop(position_info);
- } else {
- return false;
- }
- };
-
- JqTreeWidget.prototype._triggerEvent = function(event_name, values) {
- var event;
- event = $.Event(event_name);
- $.extend(event, values);
- this.element.trigger(event);
- return event;
- };
-
- JqTreeWidget.prototype.testGenerateHitAreas = function(moving_node) {
- this.dnd_handler.current_item = this._getNodeElementForNode(moving_node);
- this.dnd_handler.generateHitAreas();
- return this.dnd_handler.hit_areas;
- };
-
- JqTreeWidget.prototype._selectCurrentNode = function() {
- var node, node_element;
- node = this.getSelectedNode();
- if (node) {
- node_element = this._getNodeElementForNode(node);
- if (node_element) {
- return node_element.select();
- }
- }
- };
-
- JqTreeWidget.prototype._deselectCurrentNode = function() {
- var node;
- node = this.getSelectedNode();
- if (node) {
- return this.removeFromSelection(node);
- }
- };
-
- JqTreeWidget.prototype._getDefaultClosedIcon = function() {
- if (this.options.rtl) {
- return '&#x25c0;';
- } else {
- return '&#x25ba;';
- }
- };
-
- JqTreeWidget.prototype._getRtlOption = function() {
- var data_rtl;
- if (this.options.rtl !== null) {
- return this.options.rtl;
- } else {
- data_rtl = this.element.data('rtl');
- if ((data_rtl != null) && data_rtl !== false) {
- return true;
- } else {
- return false;
- }
- }
- };
-
- JqTreeWidget.prototype._notifyLoading = function(is_loading, node, $el) {
- if (this.options.onLoading) {
- return this.options.onLoading(is_loading, node, $el);
- }
- };
-
- return JqTreeWidget;
-
-})(MouseWidget);
-
-JqTreeWidget.getModule = function(name) {
- var modules;
- modules = {
- 'node': node_module,
- 'util': util_module,
- 'drag_and_drop_handler': drag_and_drop_handler
- };
- return modules[name];
-};
-
-SimpleWidget.register(JqTreeWidget, 'tree');
-
-},{"./drag_and_drop_handler":1,"./elements_renderer":2,"./key_handler":3,"./mouse.widget":4,"./node":5,"./node_element":6,"./save_state_handler":7,"./scroll_handler":8,"./select_node_handler":9,"./simple.widget":10,"./util":12,"./version":13}],12:[function(require,module,exports){
-var _indexOf, getBoolString, html_escape, indexOf, isFunction, isInt;
-
-_indexOf = function(array, item) {
- var i, j, len, value;
- for (i = j = 0, len = array.length; j < len; i = ++j) {
- value = array[i];
- if (value === item) {
- return i;
- }
- }
- return -1;
-};
-
-indexOf = function(array, item) {
- if (array.indexOf) {
- return array.indexOf(item);
- } else {
- return _indexOf(array, item);
- }
-};
-
-isInt = function(n) {
- return typeof n === 'number' && n % 1 === 0;
-};
-
-isFunction = function(v) {
- return typeof v === 'function';
-};
-
-html_escape = function(string) {
- return ('' + string).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\//g, '&#x2F;');
-};
-
-getBoolString = function(value) {
- if (value) {
- return 'true';
- } else {
- return 'false';
- }
-};
-
-module.exports = {
- _indexOf: _indexOf,
- getBoolString: getBoolString,
- html_escape: html_escape,
- indexOf: indexOf,
- isInt: isInt,
- isFunction: isFunction
-};
-
-},{}],13:[function(require,module,exports){
-module.exports = '1.3.7';
-
-},{}]},{},[11]);
diff --git a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/.bower.json b/ecomp-portal-FE/client/bower_components/jquery-mousewheel/.bower.json
deleted file mode 100644
index 594ec703..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/.bower.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "name": "jquery-mousewheel",
- "version": "3.1.13",
- "main": "./jquery.mousewheel.js",
- "ignore": [
- "*.json",
- "*.markdown",
- "*.txt",
- ".*",
- "!LICENSE.txt",
- "Gruntfile.js",
- "test"
- ],
- "dependencies": {
- "jquery": ">=1.2.2"
- },
- "homepage": "https://github.com/jquery/jquery-mousewheel",
- "_release": "3.1.13",
- "_resolution": {
- "type": "version",
- "tag": "3.1.13",
- "commit": "67289b6b2aa0066d7d78a5807f520387135ffb22"
- },
- "_source": "https://github.com/jquery/jquery-mousewheel.git",
- "_target": ">=3.1.13",
- "_originalSource": "jquery-mousewheel"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/ChangeLog.md b/ecomp-portal-FE/client/bower_components/jquery-mousewheel/ChangeLog.md
deleted file mode 100644
index 76752a1a..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/ChangeLog.md
+++ /dev/null
@@ -1,147 +0,0 @@
-# Mouse Wheel ChangeLog
-
-## 3.1.13
-
-* Update copyright notice and license to remove years
-* Create the correct compressed version
-* Remove the obsolete jQuery Plugin Registry file
-
-## 3.1.12
-
-* Fix possible 0 value for line height when in delta mode 1
-
-## 3.1.11
-
-* Fix version number for package managers...
-
-## 3.1.10
-
-* Fix issue with calculating line height when using older versions of jQuery
-* Add offsetX/Y normalization with setting to turn it off
-* Cleans up data on teardown
-
-## 3.1.9
-
-* Fix bower.json file
-* Updated how the deltas are adjusted for older mousewheel based events that have deltas that are factors of 120.
-* Add $.event.special.mousewheel.settings.adjustOldDeltas (defaults to true) to turn off adjusting of old deltas that are factors of 120. You'd turn this off if you want to be as close to native scrolling as possible.
-
-## 3.1.8
-
-* Even better handling of older browsers that use a wheelDelta based on 120
-* And fix version reported by `$.event.special.mousewheel`
-
-## 3.1.7
-
-* Better handle the `deltaMode` values 1 (lines) and 2 (pages)
-* Attempt to better handle older browsers that use a wheelDelta based on 120
-
-## 3.1.6
-
-* Deprecating `delta`, `deltaX`, and `deltaY` event handler arguments
-* Update actual event object with normalized `deltaX `and `deltaY` values (`event.deltaX`, `event.deltaY`)
-* Add `deltaFactor` to the event object (`event.deltaFactor`)
-* Handle `> 0` but `< 1` deltas better
-* Do not fire the event if `deltaX` and `deltaY` are `0`
-* Better handle different devices that give different `lowestDelta` values
-* Add `$.event.special.mousewheel.version`
-* Some clean up
-
-## 3.1.5
-
-* Bad release because I did not update the new `$.event.special.mousewheel.version`
-
-## 3.1.4
-
-* Always set the `deltaY`
-* Add back in the `deltaX` and `deltaY` support for older Firefox versions
-
-## 3.1.3
-
-* Include `MozMousePixelScroll` in the to fix list to avoid inconsistent behavior in older Firefox
-
-## 3.1.2
-
-* Include grunt utilities for development purposes (jshint and uglify)
-* Include support for browserify
-* Some basic cleaning up
-
-## 3.1.1
-
-* Fix rounding issue with deltas less than zero
-
-
-## 3.1.0
-
-* Fix Firefox 17+ issues by using new wheel event
-* Normalize delta values
-* Adds horizontal support for IE 9+ by using new wheel event
-* Support AMD loaders
-
-
-## 3.0.6
-
-* Fix issue with delta being 0 in Firefox
-
-
-## 3.0.5
-
-* jQuery 1.7 compatibility
-
-
-## 3.0.4
-
-* Fix IE issue
-
-
-## 3.0.3
-
-* Added `deltaX` and `deltaY` for horizontal scrolling support (Thanks to Seamus Leahy)
-
-
-## 3.0.2
-
-* Fixed delta being opposite value in latest Opera
-* No longer fix `pageX`, `pageY` for older Mozilla browsers
-* Removed browser detection
-* Cleaned up the code
-
-
-## 3.0.1
-
-* Bad release... creating a new release due to plugins.jquery.com issue :(
-
-
-## 3.0
-
-* Uses new special events API in jQuery 1.2.2+
-* You can now treat `mousewheel` as a normal event and use `.bind`, `.unbind` and `.trigger`
-* Using jQuery.data API for expandos
-
-
-## 2.2
-
-* Fixed `pageX`, `pageY`, `clientX` and `clientY` event properties for Mozilla based browsers
-
-
-## 2.1.1
-
-* Updated to work with jQuery 1.1.3
-* Used one instead of bind to do unload event for clean up
-
-
-## 2.1
-
-* Fixed an issue with the unload handler
-
-
-## 2.0
-
-* Major reduction in code size and complexity (internals have change a whole lot)
-
-
-## 1.0
-
-* Fixed Opera issue
-* Fixed an issue with children elements that also have a mousewheel handler
-* Added ability to handle multiple handlers
diff --git a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/LICENSE.txt b/ecomp-portal-FE/client/bower_components/jquery-mousewheel/LICENSE.txt
deleted file mode 100644
index 919fe6a7..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/LICENSE.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-Copyright jQuery Foundation and other contributors
-https://jquery.org/
-
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/jquery/jquery-mousewheel
-
-The following license applies to all parts of this software except as
-documented below:
-
-====
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-====
-
-All files located in the node_modules and external directories are
-externally maintained libraries used by this software which have their
-own licenses; we recommend you read them, as their terms may differ from
-the terms above.
diff --git a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/README.md b/ecomp-portal-FE/client/bower_components/jquery-mousewheel/README.md
deleted file mode 100644
index a03fdde8..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/README.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# jQuery Mouse Wheel Plugin
-
-A [jQuery](http://jquery.com/) plugin that adds cross-browser mouse wheel support with delta normalization.
-
-In order to use the plugin, simply bind the `mousewheel` event to an element.
-
-It also provides two helper methods called `mousewheel` and `unmousewheel`
-that act just like other event helper methods in jQuery.
-
-The event object is updated with the normalized `deltaX` and `deltaY` properties.
-In addition there is a new property on the event object called `deltaFactor`. Multiply
-the `deltaFactor` by `deltaX` or `deltaY` to get the scroll distance that the browser
-has reported.
-
-Here is an example of using both the bind and helper method syntax:
-
-```js
-// using on
-$('#my_elem').on('mousewheel', function(event) {
- console.log(event.deltaX, event.deltaY, event.deltaFactor);
-});
-
-// using the event helper
-$('#my_elem').mousewheel(function(event) {
- console.log(event.deltaX, event.deltaY, event.deltaFactor);
-});
-```
-
-The old behavior of adding three arguments (`delta`, `deltaX`, and `deltaY`) to the
-event handler is now deprecated and will be removed in later releases.
-
-
-## The Deltas...
-
-The combination of Browsers, Operating Systems, and Devices offer a huge range of possible delta values. In fact if the user
-uses a trackpad and then a physical mouse wheel the delta values can differ wildly. This plugin normalizes those
-values so you get a whole number starting at +-1 and going up in increments of +-1 according to the force or
-acceleration that is used. This number has the potential to be in the thousands depending on the device.
-Check out some of the data collected from users [here](http://mousewheeldatacollector.herokuapp.com/).
-
-### Getting the scroll distance
-
-In some use-cases we prefer to have the normalized delta but in others we want to know how far the browser should
-scroll based on the users input. This can be done by multiplying the `deltaFactor` by the `deltaX` or `deltaY`
-event property to find the scroll distance the browser reported.
-
-The `deltaFactor` property was added to the event object in 3.1.5 so that the actual reported delta value can be
-extracted. This is a non-standard property.
-
-
-## Using with [Browserify](http://browserify.org)
-
-Support for browserify is baked in.
-
-```bash
-npm install jquery-mousewheel
-npm install jquery-browserify
-```
-
-In your server-side node.js code:
-
-```js
-var express = require('express');
-var app = express.createServer();
-
-app.use(require('browserify')({
- require : [ 'jquery-browserify', 'jquery-mousewheel' ]
-}));
-```
-
-In your browser-side javascript:
-
-```js
-var $ = require('jquery-browserify');
-require('jquery-mousewheel')($);
-```
diff --git a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/bower.json b/ecomp-portal-FE/client/bower_components/jquery-mousewheel/bower.json
deleted file mode 100644
index 8bd2cc5e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/bower.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "name": "jquery-mousewheel",
- "version": "3.1.13",
- "main": "./jquery.mousewheel.js",
- "ignore": [
- "*.json",
- "*.markdown",
- "*.txt",
- ".*",
- "!LICENSE.txt",
- "Gruntfile.js",
- "test"
- ],
- "dependencies": {
- "jquery": ">=1.2.2"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/jquery.mousewheel.js b/ecomp-portal-FE/client/bower_components/jquery-mousewheel/jquery.mousewheel.js
deleted file mode 100644
index 3eadb7ed..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/jquery.mousewheel.js
+++ /dev/null
@@ -1,221 +0,0 @@
-/*!
- * jQuery Mousewheel 3.1.13
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- */
-
-(function (factory) {
- if ( typeof define === 'function' && define.amd ) {
- // AMD. Register as an anonymous module.
- define(['jquery'], factory);
- } else if (typeof exports === 'object') {
- // Node/CommonJS style for Browserify
- module.exports = factory;
- } else {
- // Browser globals
- factory(jQuery);
- }
-}(function ($) {
-
- var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'],
- toBind = ( 'onwheel' in document || document.documentMode >= 9 ) ?
- ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'],
- slice = Array.prototype.slice,
- nullLowestDeltaTimeout, lowestDelta;
-
- if ( $.event.fixHooks ) {
- for ( var i = toFix.length; i; ) {
- $.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
- }
- }
-
- var special = $.event.special.mousewheel = {
- version: '3.1.12',
-
- setup: function() {
- if ( this.addEventListener ) {
- for ( var i = toBind.length; i; ) {
- this.addEventListener( toBind[--i], handler, false );
- }
- } else {
- this.onmousewheel = handler;
- }
- // Store the line height and page height for this particular element
- $.data(this, 'mousewheel-line-height', special.getLineHeight(this));
- $.data(this, 'mousewheel-page-height', special.getPageHeight(this));
- },
-
- teardown: function() {
- if ( this.removeEventListener ) {
- for ( var i = toBind.length; i; ) {
- this.removeEventListener( toBind[--i], handler, false );
- }
- } else {
- this.onmousewheel = null;
- }
- // Clean up the data we added to the element
- $.removeData(this, 'mousewheel-line-height');
- $.removeData(this, 'mousewheel-page-height');
- },
-
- getLineHeight: function(elem) {
- var $elem = $(elem),
- $parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
- if (!$parent.length) {
- $parent = $('body');
- }
- return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
- },
-
- getPageHeight: function(elem) {
- return $(elem).height();
- },
-
- settings: {
- adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
- normalizeOffset: true // calls getBoundingClientRect for each event
- }
- };
-
- $.fn.extend({
- mousewheel: function(fn) {
- return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
- },
-
- unmousewheel: function(fn) {
- return this.unbind('mousewheel', fn);
- }
- });
-
-
- function handler(event) {
- var orgEvent = event || window.event,
- args = slice.call(arguments, 1),
- delta = 0,
- deltaX = 0,
- deltaY = 0,
- absDelta = 0,
- offsetX = 0,
- offsetY = 0;
- event = $.event.fix(orgEvent);
- event.type = 'mousewheel';
-
- // Old school scrollwheel delta
- if ( 'detail' in orgEvent ) { deltaY = orgEvent.detail * -1; }
- if ( 'wheelDelta' in orgEvent ) { deltaY = orgEvent.wheelDelta; }
- if ( 'wheelDeltaY' in orgEvent ) { deltaY = orgEvent.wheelDeltaY; }
- if ( 'wheelDeltaX' in orgEvent ) { deltaX = orgEvent.wheelDeltaX * -1; }
-
- // Firefox < 17 horizontal scrolling related to DOMMouseScroll event
- if ( 'axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
- deltaX = deltaY * -1;
- deltaY = 0;
- }
-
- // Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
- delta = deltaY === 0 ? deltaX : deltaY;
-
- // New school wheel delta (wheel event)
- if ( 'deltaY' in orgEvent ) {
- deltaY = orgEvent.deltaY * -1;
- delta = deltaY;
- }
- if ( 'deltaX' in orgEvent ) {
- deltaX = orgEvent.deltaX;
- if ( deltaY === 0 ) { delta = deltaX * -1; }
- }
-
- // No change actually happened, no reason to go any further
- if ( deltaY === 0 && deltaX === 0 ) { return; }
-
- // Need to convert lines and pages to pixels if we aren't already in pixels
- // There are three delta modes:
- // * deltaMode 0 is by pixels, nothing to do
- // * deltaMode 1 is by lines
- // * deltaMode 2 is by pages
- if ( orgEvent.deltaMode === 1 ) {
- var lineHeight = $.data(this, 'mousewheel-line-height');
- delta *= lineHeight;
- deltaY *= lineHeight;
- deltaX *= lineHeight;
- } else if ( orgEvent.deltaMode === 2 ) {
- var pageHeight = $.data(this, 'mousewheel-page-height');
- delta *= pageHeight;
- deltaY *= pageHeight;
- deltaX *= pageHeight;
- }
-
- // Store lowest absolute delta to normalize the delta values
- absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) );
-
- if ( !lowestDelta || absDelta < lowestDelta ) {
- lowestDelta = absDelta;
-
- // Adjust older deltas if necessary
- if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
- lowestDelta /= 40;
- }
- }
-
- // Adjust older deltas if necessary
- if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
- // Divide all the things by 40!
- delta /= 40;
- deltaX /= 40;
- deltaY /= 40;
- }
-
- // Get a whole, normalized value for the deltas
- delta = Math[ delta >= 1 ? 'floor' : 'ceil' ](delta / lowestDelta);
- deltaX = Math[ deltaX >= 1 ? 'floor' : 'ceil' ](deltaX / lowestDelta);
- deltaY = Math[ deltaY >= 1 ? 'floor' : 'ceil' ](deltaY / lowestDelta);
-
- // Normalise offsetX and offsetY properties
- if ( special.settings.normalizeOffset && this.getBoundingClientRect ) {
- var boundingRect = this.getBoundingClientRect();
- offsetX = event.clientX - boundingRect.left;
- offsetY = event.clientY - boundingRect.top;
- }
-
- // Add information to the event object
- event.deltaX = deltaX;
- event.deltaY = deltaY;
- event.deltaFactor = lowestDelta;
- event.offsetX = offsetX;
- event.offsetY = offsetY;
- // Go ahead and set deltaMode to 0 since we converted to pixels
- // Although this is a little odd since we overwrite the deltaX/Y
- // properties with normalized deltas.
- event.deltaMode = 0;
-
- // Add event and delta to the front of the arguments
- args.unshift(event, delta, deltaX, deltaY);
-
- // Clearout lowestDelta after sometime to better
- // handle multiple device types that give different
- // a different lowestDelta
- // Ex: trackpad = 3 and mouse wheel = 120
- if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); }
- nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);
-
- return ($.event.dispatch || $.event.handle).apply(this, args);
- }
-
- function nullLowestDelta() {
- lowestDelta = null;
- }
-
- function shouldAdjustOldDeltas(orgEvent, absDelta) {
- // If this is an older event and the delta is divisable by 120,
- // then we are assuming that the browser is treating this as an
- // older mouse wheel event and that we should divide the deltas
- // by 40 to try and get a more usable deltaFactor.
- // Side note, this actually impacts the reported scroll distance
- // in older browsers and can cause scrolling to be slower than native.
- // Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
- return special.settings.adjustOldDeltas && orgEvent.type === 'mousewheel' && absDelta % 120 === 0;
- }
-
-}));
diff --git a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/jquery.mousewheel.min.js b/ecomp-portal-FE/client/bower_components/jquery-mousewheel/jquery.mousewheel.min.js
deleted file mode 100644
index 03bfd60c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery-mousewheel/jquery.mousewheel.min.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*!
- * jQuery Mousewheel 3.1.13
- *
- * Copyright 2015 jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
-!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/.bower.json b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/.bower.json
deleted file mode 100644
index d76fa6f5..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/.bower.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "jquery.event.drag-new",
- "homepage": "https://github.com/threedubmedia/jquery.threedubmedia",
- "_release": "de7ad443f0",
- "_resolution": {
- "type": "branch",
- "branch": "master",
- "commit": "de7ad443f09b56cda9a505592cedb9bd69b99d82"
- },
- "_source": "https://github.com/threedubmedia/jquery.threedubmedia.git",
- "_target": "*",
- "_originalSource": "jquery.event.drag-new"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/jquery.event.drag.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/jquery.event.drag.js
deleted file mode 100644
index 1cda0e21..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/jquery.event.drag.js
+++ /dev/null
@@ -1,402 +0,0 @@
-/*!
- * jquery.event.drag - v 2.2
- * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
- * Open Source MIT License - http://threedubmedia.com/code/license
- */
-// Created: 2008-06-04
-// Updated: 2012-05-21
-// REQUIRES: jquery 1.7.x
-
-;(function( $ ){
-
-// add the jquery instance method
-$.fn.drag = function( str, arg, opts ){
- // figure out the event type
- var type = typeof str == "string" ? str : "",
- // figure out the event handler...
- fn = $.isFunction( str ) ? str : $.isFunction( arg ) ? arg : null;
- // fix the event type
- if ( type.indexOf("drag") !== 0 )
- type = "drag"+ type;
- // were options passed
- opts = ( str == fn ? arg : opts ) || {};
- // trigger or bind event handler
- return fn ? this.bind( type, opts, fn ) : this.trigger( type );
-};
-
-// local refs (increase compression)
-var $event = $.event,
-$special = $event.special,
-// configure the drag special event
-drag = $special.drag = {
-
- // these are the default settings
- defaults: {
- which: 1, // mouse button pressed to start drag sequence
- distance: 0, // distance dragged before dragstart
- not: ':input', // selector to suppress dragging on target elements
- handle: null, // selector to match handle target elements
- relative: false, // true to use "position", false to use "offset"
- drop: true, // false to suppress drop events, true or selector to allow
- click: false // false to suppress click events after dragend (no proxy)
- },
-
- // the key name for stored drag data
- datakey: "dragdata",
-
- // prevent bubbling for better performance
- noBubble: true,
-
- // count bound related events
- add: function( obj ){
- // read the interaction data
- var data = $.data( this, drag.datakey ),
- // read any passed options
- opts = obj.data || {};
- // count another realted event
- data.related += 1;
- // extend data options bound with this event
- // don't iterate "opts" in case it is a node
- $.each( drag.defaults, function( key, def ){
- if ( opts[ key ] !== undefined )
- data[ key ] = opts[ key ];
- });
- },
-
- // forget unbound related events
- remove: function(){
- $.data( this, drag.datakey ).related -= 1;
- },
-
- // configure interaction, capture settings
- setup: function(){
- // check for related events
- if ( $.data( this, drag.datakey ) )
- return;
- // initialize the drag data with copied defaults
- var data = $.extend({ related:0 }, drag.defaults );
- // store the interaction data
- $.data( this, drag.datakey, data );
- // bind the mousedown event, which starts drag interactions
- $event.add( this, "touchstart mousedown", drag.init, data );
- // prevent image dragging in IE...
- if ( this.attachEvent )
- this.attachEvent("ondragstart", drag.dontstart );
- },
-
- // destroy configured interaction
- teardown: function(){
- var data = $.data( this, drag.datakey ) || {};
- // check for related events
- if ( data.related )
- return;
- // remove the stored data
- $.removeData( this, drag.datakey );
- // remove the mousedown event
- $event.remove( this, "touchstart mousedown", drag.init );
- // enable text selection
- drag.textselect( true );
- // un-prevent image dragging in IE...
- if ( this.detachEvent )
- this.detachEvent("ondragstart", drag.dontstart );
- },
-
- // initialize the interaction
- init: function( event ){
- // sorry, only one touch at a time
- if ( drag.touched )
- return;
- // the drag/drop interaction data
- var dd = event.data, results;
- // check the which directive
- if ( event.which != 0 && dd.which > 0 && event.which != dd.which )
- return;
- // check for suppressed selector
- if ( $( event.target ).is( dd.not ) )
- return;
- // check for handle selector
- if ( dd.handle && !$( event.target ).closest( dd.handle, event.currentTarget ).length )
- return;
-
- drag.touched = event.type == 'touchstart' ? this : null;
- dd.propagates = 1;
- dd.mousedown = this;
- dd.interactions = [ drag.interaction( this, dd ) ];
- dd.target = event.target;
- dd.pageX = event.pageX;
- dd.pageY = event.pageY;
- dd.dragging = null;
- // handle draginit event...
- results = drag.hijack( event, "draginit", dd );
- // early cancel
- if ( !dd.propagates )
- return;
- // flatten the result set
- results = drag.flatten( results );
- // insert new interaction elements
- if ( results && results.length ){
- dd.interactions = [];
- $.each( results, function(){
- dd.interactions.push( drag.interaction( this, dd ) );
- });
- }
- // remember how many interactions are propagating
- dd.propagates = dd.interactions.length;
- // locate and init the drop targets
- if ( dd.drop !== false && $special.drop )
- $special.drop.handler( event, dd );
- // disable text selection
- drag.textselect( false );
- // bind additional events...
- if ( drag.touched )
- $event.add( drag.touched, "touchmove touchend", drag.handler, dd );
- else
- $event.add( document, "mousemove mouseup", drag.handler, dd );
- // helps prevent text selection or scrolling
- if ( !drag.touched || dd.live )
- return false;
- },
-
- // returns an interaction object
- interaction: function( elem, dd ){
- var offset = $( elem )[ dd.relative ? "position" : "offset" ]() || { top:0, left:0 };
- return {
- drag: elem,
- callback: new drag.callback(),
- droppable: [],
- offset: offset
- };
- },
-
- // handle drag-releatd DOM events
- handler: function( event ){
- // read the data before hijacking anything
- var dd = event.data;
- // handle various events
- switch ( event.type ){
- // mousemove, check distance, start dragging
- case !dd.dragging && 'touchmove':
- event.preventDefault();
- case !dd.dragging && 'mousemove':
- // drag tolerance, x² + y² = distance²
- if ( Math.pow( event.pageX-dd.pageX, 2 ) + Math.pow( event.pageY-dd.pageY, 2 ) < Math.pow( dd.distance, 2 ) )
- break; // distance tolerance not reached
- event.target = dd.target; // force target from "mousedown" event (fix distance issue)
- drag.hijack( event, "dragstart", dd ); // trigger "dragstart"
- if ( dd.propagates ) // "dragstart" not rejected
- dd.dragging = true; // activate interaction
- // mousemove, dragging
- case 'touchmove':
- event.preventDefault();
- case 'mousemove':
- if ( dd.dragging ){
- // trigger "drag"
- drag.hijack( event, "drag", dd );
- if ( dd.propagates ){
- // manage drop events
- if ( dd.drop !== false && $special.drop )
- $special.drop.handler( event, dd ); // "dropstart", "dropend"
- break; // "drag" not rejected, stop
- }
- event.type = "mouseup"; // helps "drop" handler behave
- }
- // mouseup, stop dragging
- case 'touchend':
- case 'mouseup':
- default:
- if ( drag.touched )
- $event.remove( drag.touched, "touchmove touchend", drag.handler ); // remove touch events
- else
- $event.remove( document, "mousemove mouseup", drag.handler ); // remove page events
- if ( dd.dragging ){
- if ( dd.drop !== false && $special.drop )
- $special.drop.handler( event, dd ); // "drop"
- drag.hijack( event, "dragend", dd ); // trigger "dragend"
- }
- drag.textselect( true ); // enable text selection
- // if suppressing click events...
- if ( dd.click === false && dd.dragging )
- $.data( dd.mousedown, "suppress.click", new Date().getTime() + 5 );
- dd.dragging = drag.touched = false; // deactivate element
- break;
- }
- },
-
- // re-use event object for custom events
- hijack: function( event, type, dd, x, elem ){
- // not configured
- if ( !dd )
- return;
- // remember the original event and type
- var orig = { event:event.originalEvent, type:event.type },
- // is the event drag related or drog related?
- mode = type.indexOf("drop") ? "drag" : "drop",
- // iteration vars
- result, i = x || 0, ia, $elems, callback,
- len = !isNaN( x ) ? x : dd.interactions.length;
- // modify the event type
- event.type = type;
- // remove the original event
- event.originalEvent = null;
- // initialize the results
- dd.results = [];
- // handle each interacted element
- do if ( ia = dd.interactions[ i ] ){
- // validate the interaction
- if ( type !== "dragend" && ia.cancelled )
- continue;
- // set the dragdrop properties on the event object
- callback = drag.properties( event, dd, ia );
- // prepare for more results
- ia.results = [];
- // handle each element
- $( elem || ia[ mode ] || dd.droppable ).each(function( p, subject ){
- // identify drag or drop targets individually
- callback.target = subject;
- // force propagtion of the custom event
- event.isPropagationStopped = function(){ return false; };
- // handle the event
- result = subject ? $event.dispatch.call( subject, event, callback ) : null;
- // stop the drag interaction for this element
- if ( result === false ){
- if ( mode == "drag" ){
- ia.cancelled = true;
- dd.propagates -= 1;
- }
- if ( type == "drop" ){
- ia[ mode ][p] = null;
- }
- }
- // assign any dropinit elements
- else if ( type == "dropinit" )
- ia.droppable.push( drag.element( result ) || subject );
- // accept a returned proxy element
- if ( type == "dragstart" )
- ia.proxy = $( drag.element( result ) || ia.drag )[0];
- // remember this result
- ia.results.push( result );
- // forget the event result, for recycling
- delete event.result;
- // break on cancelled handler
- if ( type !== "dropinit" )
- return result;
- });
- // flatten the results
- dd.results[ i ] = drag.flatten( ia.results );
- // accept a set of valid drop targets
- if ( type == "dropinit" )
- ia.droppable = drag.flatten( ia.droppable );
- // locate drop targets
- if ( type == "dragstart" && !ia.cancelled )
- callback.update();
- }
- while ( ++i < len )
- // restore the original event & type
- event.type = orig.type;
- event.originalEvent = orig.event;
- // return all handler results
- return drag.flatten( dd.results );
- },
-
- // extend the callback object with drag/drop properties...
- properties: function( event, dd, ia ){
- var obj = ia.callback;
- // elements
- obj.drag = ia.drag;
- obj.proxy = ia.proxy || ia.drag;
- // starting mouse position
- obj.startX = dd.pageX;
- obj.startY = dd.pageY;
- // current distance dragged
- obj.deltaX = event.pageX - dd.pageX;
- obj.deltaY = event.pageY - dd.pageY;
- // original element position
- obj.originalX = ia.offset.left;
- obj.originalY = ia.offset.top;
- // adjusted element position
- obj.offsetX = obj.originalX + obj.deltaX;
- obj.offsetY = obj.originalY + obj.deltaY;
- // assign the drop targets information
- obj.drop = drag.flatten( ( ia.drop || [] ).slice() );
- obj.available = drag.flatten( ( ia.droppable || [] ).slice() );
- return obj;
- },
-
- // determine is the argument is an element or jquery instance
- element: function( arg ){
- if ( arg && ( arg.jquery || arg.nodeType == 1 ) )
- return arg;
- },
-
- // flatten nested jquery objects and arrays into a single dimension array
- flatten: function( arr ){
- return $.map( arr, function( member ){
- return member && member.jquery ? $.makeArray( member ) :
- member && member.length ? drag.flatten( member ) : member;
- });
- },
-
- // toggles text selection attributes ON (true) or OFF (false)
- textselect: function( bool ){
- $( document )[ bool ? "unbind" : "bind" ]("selectstart", drag.dontstart )
- .css("MozUserSelect", bool ? "" : "none" );
- // .attr("unselectable", bool ? "off" : "on" )
- document.unselectable = bool ? "off" : "on";
- },
-
- // suppress "selectstart" and "ondragstart" events
- dontstart: function(){
- return false;
- },
-
- // a callback instance contructor
- callback: function(){}
-
-};
-
-// callback methods
-drag.callback.prototype = {
- update: function(){
- if ( $special.drop && this.available.length )
- $.each( this.available, function( i ){
- $special.drop.locate( this, i );
- });
- }
-};
-
-// patch $.event.$dispatch to allow suppressing clicks
-var $dispatch = $event.dispatch;
-$event.dispatch = function( event ){
- if ( $.data( this, "suppress."+ event.type ) - new Date().getTime() > 0 ){
- $.removeData( this, "suppress."+ event.type );
- return;
- }
- return $dispatch.apply( this, arguments );
-};
-
-// event fix hooks for touch events...
-var touchHooks =
-$event.fixHooks.touchstart =
-$event.fixHooks.touchmove =
-$event.fixHooks.touchend =
-$event.fixHooks.touchcancel = {
- props: "clientX clientY pageX pageY screenX screenY".split( " " ),
- filter: function( event, orig ) {
- if ( orig ){
- var touched = ( orig.touches && orig.touches[0] )
- || ( orig.changedTouches && orig.changedTouches[0] )
- || null;
- // iOS webkit: touchstart, touchmove, touchend
- if ( touched )
- $.each( touchHooks.props, function( i, prop ){
- event[ prop ] = touched[ prop ];
- });
- }
- return event;
- }
-};
-
-// share the same special event configuration with related events...
-$special.draginit = $special.dragstart = $special.dragend = drag;
-
-})( jQuery ); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/jquery.event.drag.live.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/jquery.event.drag.live.js
deleted file mode 100644
index 77452716..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/jquery.event.drag.live.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/*!
- * jquery.event.drag.live - v 2.2
- * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
- * Open Source MIT License - http://threedubmedia.com/code/license
- */
-// Created: 2010-06-07
-// Updated: 2012-05-21
-// REQUIRES: jquery 1.7.x, event.drag 2.2
-
-;(function( $ ){
-
-// local refs (increase compression)
-var $event = $.event,
-// ref the special event config
-drag = $event.special.drag,
-// old drag event add method
-origadd = drag.add,
-// old drag event teradown method
-origteardown = drag.teardown;
-
-// allow events to bubble for delegation
-drag.noBubble = false;
-
-// the namespace for internal live events
-drag.livekey = "livedrag";
-
-// new drop event add method
-drag.add = function( obj ){
- // call the old method
- origadd.apply( this, arguments );
- // read the data
- var data = $.data( this, drag.datakey );
- // bind the live "draginit" delegator
- if ( !data.live && obj.selector ){
- data.live = true;
- $event.add( this, "draginit."+ drag.livekey, drag.delegate );
- }
-};
-
-// new drop event teardown method
-drag.teardown = function(){
- // call the old method
- origteardown.apply( this, arguments );
- // read the data
- var data = $.data( this, drag.datakey ) || {};
- // bind the live "draginit" delegator
- if ( data.live ){
- // remove the "live" delegation
- $event.remove( this, "draginit."+ drag.livekey, drag.delegate );
- data.live = false;
- }
-};
-
-// identify potential delegate elements
-drag.delegate = function( event ){
- // local refs
- var elems = [], target,
- // element event structure
- events = $.data( this, "events" ) || {};
- // query live events
- $.each( events || [], function( key, arr ){
- // no event type matches
- if ( key.indexOf("drag") !== 0 )
- return;
- $.each( arr || [], function( i, obj ){
- // locate the element to delegate
- target = $( event.target ).closest( obj.selector, event.currentTarget )[0];
- // no element found
- if ( !target )
- return;
- // add an event handler
- $event.add( target, obj.origType+'.'+drag.livekey, obj.origHandler || obj.handler, obj.data );
- // remember new elements
- if ( $.inArray( target, elems ) < 0 )
- elems.push( target );
- });
- });
- // if there are no elements, break
- if ( !elems.length )
- return false;
- // return the matched results, and clenup when complete
- return $( elems ).bind("dragend."+ drag.livekey, function(){
- $event.remove( this, "."+ drag.livekey ); // cleanup delegation
- });
-};
-
-})( jQuery ); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/binding.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/binding.js
deleted file mode 100644
index 01c9609f..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/binding.js
+++ /dev/null
@@ -1,64 +0,0 @@
-module("Event Binding");
-
-$.each(['draginit','dragstart','drag','dragend'],function( i, type ){
-
- test('"'+ type +'"',function(){
-
- expect( 27 );
-
- // make sure the event handler gets bound to the element
- var $elem = $('<div />'),
- elem = $elem[0],
- count = 0,
- fn = function(){
- count += 1;
- },
- opts = {
- which: 99,
- distance: 88,
- not: 77,
- handle: 66,
- relative: 55,
- drop: 44,
- click: 33
- },
- def = $.event.special[ type ].defaults,
- data;
-
- ok( $elem.bind( type, fn )[0] == elem, '.bind("'+ type +'", fn )' );
- ok( data = $.data( elem, $.event.special.drag.datakey ), "drag data exists" );
- ok( $.data( elem, "events" ), "event data exists" );
- ok( $.data( elem, "events" )[ type ][0], '"'+ type +'" event handler added' );
-
- ok( data.which == def.which, '"which" default stored' );
- ok( data.distance == def.distance, '"distance" default stored' );
- ok( data.not == def.not, '"not" default stored' );
- ok( data.handle == def.handle, '"handle" default stored' );
- ok( data.relative == def.relative, '"relative" default stored' );
- ok( data.drop == def.drop, '"drop" default stored' );
- ok( data.click == def.click, '"click" default stored' );
-
- ok( $elem.trigger( type )[0] == elem, '.trigger("'+ type +'")' );
- ok( count == 1, "handler was triggered");
-
- ok( $elem.unbind( type )[0] == elem, '.unbind("'+ type +'")' );
- ok( !$.data( elem, "events" ), "event data removed" );
- ok( !$.data( elem, $.event.special.drag.datakey ), "drag data removed" );
-
- ok( $elem.bind( type, opts, fn )[0] == elem, '.bind("'+ type +'", data, fn )' );
- ok( data = $.data( elem, $.event.special.drag.datakey ), "drag data exists" );
- ok( $.data( elem, "events" ), "event data exists" );
- ok( $.data( elem, "events" )[ type ][0], '"drag'+ type +'" event handler added' );
-
- ok( data.which == opts.which, '"which" option stored' );
- ok( data.distance == opts.distance, '"distance" option stored' );
- ok( data.not == opts.not, '"not" option stored' );
- ok( data.handle == opts.handle, '"handle" option stored' );
- ok( data.relative == opts.relative, '"relative" option stored' );
- ok( data.drop == opts.drop, '"drop" option stored' );
- ok( data.click == opts.click, '"click" option stored' );
-
- $elem.remove();
-
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/handlers.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/handlers.js
deleted file mode 100644
index 799051ad..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/handlers.js
+++ /dev/null
@@ -1,160 +0,0 @@
-;(function(){
-
- module("Event Handlers");
-
- // a simple re-usable test harness object
- var obj = {
- init: function( opts ){
- obj.$div = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .appendTo( document.body )
- .bind("draginit dragstart drag dragend click", opts || {}, function( event ){
- obj[ event.type ] += 1;
- if ( obj.extra[ event.type ] )
- obj.extra[ event.type ].apply( this, arguments );
- return obj.returned[ event.type ];
- });
-
- $.extend( obj, { draginit:0, dragstart:0, drag:0, dragend:0, click:0 });
- obj.extra = {};
- obj.returned = {};
- },
- mouse: function(){
- var start = {
- pageX: Math.round( Math.random() * 90 ) + 5,
- pageY: Math.round( Math.random() * 90 ) + 5
- },
- end = {
- pageX: Math.round( Math.random() * 90 ) + start.pageX,
- pageY: Math.round( Math.random() * 90 ) + start.pageY
- };
- // simulate a complete mouse drag
- obj.$div
- .fire("mousedown", start )
- .fire("mousemove", end )
- .fire("mouseup", end )
- .fire("click", end );
- },
- done: function( ms ){
- obj.$div.remove();
- start();
- }
- };
-
- // test DRAGINIT FALSE
- asyncTest('"draginit" return false',function(){
- expect( 5 );
- // test prep
- obj.init();
- obj.returned['draginit'] = false;
- // simulate a mouse drag
- obj.mouse();
- // check counts
- equals( obj.draginit, 1, "draginit fired");
- equals( obj.dragstart, 0, "dragstart did not fire");
- equals( obj.drag, 0, "drag did not fire");
- equals( obj.dragend, 0, "dragend did not fire");
- equals( obj.click, 1, "click fired");
- // continue
- obj.done();
- });
-
- asyncTest('"dragstart" return false',function(){
- expect( 5 );
- // test prep
- obj.init();
- obj.returned['dragstart'] = false;
- // simulate a mouse drag
- obj.mouse();
- // check counts
- equals( obj.draginit, 1, "draginit fired");
- equals( obj.dragstart, 1, "dragstart fired");
- equals( obj.drag, 0, "drag did not fire");
- equals( obj.dragend, 0, "dragend did not fire");
- equals( obj.click, 1, "click fired");
- // continue
- obj.done();
- });
-
- asyncTest('"drag" return false',function(){
- expect( 5 );
- // test prep
- obj.init();
- obj.returned['drag'] = false;
- // simulate a mouse drag
- obj.mouse();
- // check ocunts
- equals( obj.draginit, 1, "draginit fired");
- equals( obj.dragstart, 1, "dragstart fired");
- equals( obj.drag, 1, "drag fired");
- equals( obj.dragend, 1, "dragend fired");
- equals( obj.click, 0, "click did not fire");
- // continue
- obj.done();
- });
-
- asyncTest('"draginit" return new element',function(){
- expect( 8 );
- // test prep
- obj.init();
- var $clone = obj.returned['draginit'] = obj.$div.clone( true );
- obj.extra['dragstart'] = obj.extra['drag'] = obj.extra['dragend'] = function( ev, dd ){
- ok( dd.drag === $clone[0], ev.type +' target element' );
- };
- // simulate a mouse drag
- obj.mouse();
- // check counts
- equals( obj.draginit, 1, "draginit fired");
- equals( obj.dragstart, 1, "dragstart fired");
- equals( obj.drag, 1, "drag fired");
- equals( obj.dragend, 1, "dragend fired");
- equals( obj.click, 0, "click did not fire");
- // continue
- obj.done();
- });
-
- asyncTest('"draginit" return multiple elements',function(){
- expect( 5 );
- // test prep
- obj.init();
- obj.returned['draginit'] = obj.$div.clone( true ).add( obj.$div );
- // simulate a mouse drag
- obj.mouse();
- // check counts
- equals( obj.draginit, 1, "draginit fired once");
- equals( obj.dragstart, 2, "dragstart fired twice");
- equals( obj.drag, 2, "drag fired twice");
- equals( obj.dragend, 2, "dragend fired twice");
- equals( obj.click, 0, "click did not fire");
- // continue
- obj.done();
- });
-
-
- asyncTest('"dragstart" return proxy element',function(){
- expect( 7 );
- // test prep
- obj.init();
- var $proxy = obj.returned['dragstart'] = obj.$div.clone().addClass('proxy');
- obj.extra['drag'] = obj.extra['dragend'] = function( ev, dd ){
- ok( dd.proxy === $proxy[0], ev.type +' proxy element' );
- };
- // simulate a mouse drag
- obj.mouse();
- // check counts
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 0, "click did not fire");
- // continue
- obj.done();
- });
-
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/index.html b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/index.html
deleted file mode 100644
index 45991889..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/index.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<link href="../../img/favicon.ico" rel="shortcut icon" />
-<link href="../../jquery/qunit.css" rel="stylesheet" />
-<script src="../../jquery/jquery.js"></script>
-<script src="../../jquery/qunit.js"></script>
-<script src="../../fire/jquery.fire.js"></script>
-<script src="../jquery.event.drag.js"></script>
-<script src="../jquery.event.drag.live.js"></script>
-<script src="./requirements.js"></script>
-<script src="./binding.js"></script>
-<script src="./method.js"></script>
-<script src="./interaction.js"></script>
-<script src="./touch.js"></script>
-<script src="./properties.js"></script>
-<script src="./handlers.js"></script>
-<script src="./live.js"></script>
-<title>ThreeDubMedia &middot; jQuery.event.drag.js</title>
-</head>
-<body>
-<h1 id="qunit-header">jQuery.event.drag.js Unit Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-</body>
-</html> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/interaction.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/interaction.js
deleted file mode 100644
index 3464627b..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/interaction.js
+++ /dev/null
@@ -1,198 +0,0 @@
-;(function(){
-
- module("Mouse Interaction");
-
- // a simple re-usable test harness object
- var obj = {
- init: function( opts ){
- obj.$div = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .append('<div class="child" />')
- .appendTo( document.body )
- .bind("draginit dragstart drag dragend click", opts || {}, function( event ){
- obj[ event.type ] += 1;
- });
- $.extend( obj, { draginit:0, dragstart:0, drag:0, dragend:0, click:0 });
- },
- done: function(){
- obj.$div.remove();
- start();
- }
- };
-
- asyncTest("default",function(){
- expect( 5 );
- // prep DEFAULT interaction
- obj.init();
- // simulate DEFAULT interaction
- obj.$div
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 0, "click");
- // clean-up interaction
- obj.done();
- });
-
- asyncTest('"not" option',function(){
- expect( 10 );
- // prep interaction
- obj.init({ not:'.child' });
- // simulate NOT interaction
- obj.$div.children()
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 0, "draginit");
- equals( obj.dragstart, 0, "dragstart");
- equals( obj.drag, 0, "drag");
- equals( obj.dragend, 0, "dragend");
- equals( obj.click, 1, "click");
- // simlate NON NOT interaction
- obj.$div
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
- asyncTest('"handle" option',function(){
- expect( 10 );
- // prep interaction
- obj.init({ handle:'.child' });
- // simulate HANDLE interaction
- obj.$div.children()
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 0, "click");
- // simulate NON HANDLE interaction
- obj.$div
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
- asyncTest('"which" option',function(){
- expect( 10 );
- // prep interaction
- obj.init({ which:3 });
- // simulate WHICH interaction
- obj.$div
- .fire("mousedown",{ pageX:50, pageY:50, button:2 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 0, "click");
- // simulate NON WHICH interaction
- obj.$div
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
- asyncTest('"distance" option',function(){
- expect( 10 );
- // prep interaction
- obj.init({ distance:5 });
- // simulate NON DISTANCE interaction
- obj.$div
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 0, "dragstart");
- equals( obj.drag, 0, "drag");
- equals( obj.dragend, 0, "dragend");
- equals( obj.click, 1, "click");
- // simulate DISTANCE interaction
- obj.$div
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:53, pageY:54 })
- .fire("mouseup",{ pageX:53, pageY:54 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 2, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
-
- asyncTest('"click" option',function(){
- expect( 5 );
- // prep interaction
- obj.init({ click:true });
- // simulate CLICK interaction
- obj.$div
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/live.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/live.js
deleted file mode 100644
index cf1898a7..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/live.js
+++ /dev/null
@@ -1,41 +0,0 @@
-module("Live Delegation");
-
-$.each(["draginit","dragstart","drag","dragend"],function( i, type ){
-
- test('"'+ type+'"',function(){
-
- expect( i ? 5 : 1 );
-
- if ( !i ){
- ok( true, 'Not supported for this event type.');
- return;
- }
-
- // set up the delegation
- $('.drag').live( type, function( event ){
- count += 1;
- equals( this, $drag[0], event.type+" target" );
- });
- // local refs
- var count = 0,
- // add a div to test the delegation
- $drag = $('<div class="drag" />').appendTo( document.body );
-
- // manual triggering
- ok( $drag.trigger( type ), '.trigger("'+ type +'")');
- equals( count, 1, "event was triggered");
-
- // simulate a complete drag
- $drag
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click",{ pageX:51, pageY:51 });
-
- equals( count, 2, "event was delegated");
-
- // remove delegation
- $('.drag').die( type );
- $drag.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js
deleted file mode 100644
index d6b4a514..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/method.js
+++ /dev/null
@@ -1,64 +0,0 @@
-module("Drag Method");
-
-$.each(['init','start','','end'],function( i, type ){
-
- test('"drag'+ type +'"',function(){
-
- expect( 27 );
-
- // make sure the event handler gets bound to the element
- var $elem = $('<div />'),
- elem = $elem[0],
- count = 0,
- fn = function(){
- count += 1;
- },
- opts = {
- which: 99,
- distance: 88,
- not: 77,
- handle: 66,
- relative: 55,
- drop: 44,
- click: 33
- },
- def = $.event.special[ 'drag'+ type ].defaults,
- data;
-
- ok( $elem.drag( type, fn )[0] == elem, '.drag('+( type ? '"'+ type +'",' : '' )+' fn )' );
- ok( data = $.data( elem, $.event.special.drag.datakey ), "drag data exists" );
- ok( $.data( elem, "events" ), "event data exists" );
- ok( $.data( elem, "events" )[ 'drag'+type ][0], '"drag'+ type +'" event handler added' );
-
- ok( data.which == def.which, '"which" default stored' );
- ok( data.distance == def.distance, '"distance" default stored' );
- ok( data.not == def.not, '"not" default stored' );
- ok( data.handle == def.handle, '"handle" default stored' );
- ok( data.relative == def.relative, '"relative" default stored' );
- ok( data.drop == def.drop, '"drop" default stored' );
- ok( data.click == def.click, '"click" default stored' );
-
- ok( $elem.drag( type )[0] == elem, '.drag('+( type ? '"'+ type +'"' : '' )+')' );
- ok( count == 1, "handler was triggered");
-
- ok( $elem.unbind( "drag"+ type )[0] == elem, '.unbind("drag'+ type +'")' );
- ok( !$.data( elem, "events" ), "event data removed" );
- ok( !$.data( elem, $.event.special.drag.datakey ), "drag data removed" );
-
- ok( $elem.drag( type, fn, opts )[0] == elem, '.drag('+( type ? '"'+ type +'",' : '' )+' fn, opts )' );
- ok( data = $.data( elem, $.event.special.drag.datakey ), "drag data exists" );
- ok( $.data( elem, "events" ), "event data exists" );
- ok( $.data( elem, "events" )[ 'drag'+type ][0], '"drag'+ type +'" event handler added' );
-
- ok( data.which == opts.which, '"which" option stored' );
- ok( data.distance == opts.distance, '"distance" option stored' );
- ok( data.not == opts.not, '"not" option stored' );
- ok( data.handle == opts.handle, '"handle" option stored' );
- ok( data.relative == opts.relative, '"relative" option stored' );
- ok( data.drop == opts.drop, '"drop" option stored' );
- ok( data.click == opts.click, '"click" option stored' );
-
- $elem.remove();
-
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/properties.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/properties.js
deleted file mode 100644
index aef28244..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/properties.js
+++ /dev/null
@@ -1,71 +0,0 @@
-module("Callback Properties");
-
-$.each(["init","start","","end"],function( i, type ){
-
- test('"drag'+ type +'" callback',function(){
-
- expect( 13 );
-
- // create the markup for the test
- var $div = $('<div />')
- .appendTo( document.body ),
- // starting position
- sx = Math.round( Math.random() * 90 ) + 5,
- sy = Math.round( Math.random() * 90 ) + 5,
- // mouse offset position
- mx = Math.round( Math.random() * 90 ) + 5,
- my = Math.round( Math.random() * 90 ) + 5,
- // distance dragged
- dx = Math.round( Math.random() * 90 ) + 5,
- dy = Math.round( Math.random() * 90 ) + 5;
-
- $div
- .drag( type, function( event, dd ){
-
- ok( dd.target == $div[0], "target: [drag target]" );
- ok( dd.drag == $div[0], "drag: [drag target]" );
- ok( dd.proxy == $div[0], "proxy: [drag target]" );
-
- equals( dd.startX, sx + mx, "startX" );
- equals( dd.startY, sy + my, "startY" );
-
- equals( dd.deltaX, i ? dx : 0, "deltaX" );
- equals( dd.deltaY, i ? dy : 0, "deltaY" );
-
- equals( dd.originalX, sx, "originalX" );
- equals( dd.originalY, sy, "originalY" );
-
- equals( dd.offsetX, i ? sx + dx : sx, "offsetX" );
- equals( dd.offsetY, i ? sy + dy : sy, "offsetY" );
-
- ok( dd.drop.constructor == Array && !dd.drop.length, "drop: []" );
- ok( dd.available.constructor == Array && !dd.available.length, "available: []" );
-
- })
- .css({
- position: 'absolute',
- top: sy,
- left: sx,
- height: 100,
- width: 100
- })
- // simulate a drag
- .fire("mousedown",{
- pageX: sx + mx,
- pageY: sy + my
- })
- .fire("mousemove",{
- pageX: sx + mx + dx,
- pageY: sy + my + dy
- })
- .fire("mouseup",{
- pageX: sx + mx + dx,
- pageY: sy + my + dy
- })
- .fire("click",{
- pageX: sx + mx + dx,
- pageY: sy + my + dy
- });
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js
deleted file mode 100644
index d9cf4172..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/requirements.js
+++ /dev/null
@@ -1,24 +0,0 @@
-module("Requirements");
-
-test("jQuery",function(){
-
- expect( 2 );
-
- // make sure the right jquery is included
- ok( window.jQuery, "jQuery exists" );
- ok( parseFloat( jQuery([]).jquery ) >= 1.4, "jQuery version is 1.4 or greater" );
-
-});
-
-test("Installation",function(){
-
- expect( 5 );
-
- // make sure the event interface is complete
- ok( jQuery.event.special.draginit, '"draginit" special event is defined' );
- ok( jQuery.event.special.dragstart, '"dragstart" special event is defined' );
- ok( jQuery.event.special.drag, '"drag" special event is defined' );
- ok( jQuery.event.special.dragend, '"dragend" special event is defined' );
- ok( jQuery([]).drag, "$.fn.drag method is defined" );
-
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/touch.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/touch.js
deleted file mode 100644
index 78279081..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drag/test/touch.js
+++ /dev/null
@@ -1,206 +0,0 @@
-;(function(){
-
- module("Touch Interaction");
-
- if ( !document.createEvent ){
- test("Touch Simulation Not Supported",function(){
- ok( true, 'This browser does not support "document.createEvent" and cannot simulate touch events.');
- });
- return;
- }
-
- // a simple re-usable test harness object
- var obj = {
- init: function( opts ){
- obj.$div = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .append('<div class="child" />')
- .appendTo( document.body )
- .bind("draginit dragstart drag dragend click", opts || {}, function( event ){
- obj[ event.type ] += 1;
- });
- $.extend( obj, { draginit:0, dragstart:0, drag:0, dragend:0, click:0 });
- },
- done: function(){
- obj.$div.remove();
- start();
- }
- };
-
- asyncTest("default",function(){
- expect( 5 );
- // prep DEFAULT interaction
- obj.init();
- // simulate DEFAULT interaction
- obj.$div
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 0, "click");
- // clean-up interaction
- obj.done();
- });
-
- asyncTest('"not" option',function(){
- expect( 10 );
- // prep interaction
- obj.init({ not:'.child' });
- // simulate NOT interaction
- obj.$div.children()
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 0, "draginit");
- equals( obj.dragstart, 0, "dragstart");
- equals( obj.drag, 0, "drag");
- equals( obj.dragend, 0, "dragend");
- equals( obj.click, 1, "click");
- // simlate NON NOT interaction
- obj.$div
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
- asyncTest('"handle" option',function(){
- expect( 10 );
- // prep interaction
- obj.init({ handle:'.child' });
- // simulate HANDLE interaction
- obj.$div.children()
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 0, "click");
- // simulate NON HANDLE interaction
- obj.$div
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
- asyncTest('"which" option',function(){
- expect( 11 );
- // prep interaction
- obj.init({ which:0 });
- // simulate WHICH interaction
- obj.$div
- .fire("touchstart",{ pageX:50, pageY:50, button:5 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 0, "click");
- ok( true, '"which" not supported with touch events...');
- // simulate NON WHICH interaction
- obj.$div
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 2, "draginit");
- equals( obj.dragstart, 2, "dragstart");
- equals( obj.drag, 2, "drag");
- equals( obj.dragend, 2, "dragend");
- equals( obj.click, 0, "click");
- // clean-up interaction
- obj.done();
- });
-
- asyncTest('"distance" option',function(){
- expect( 10 );
- // prep interaction
- obj.init({ distance:5 });
- // simulate NON DISTANCE interaction
- obj.$div
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 0, "dragstart");
- equals( obj.drag, 0, "drag");
- equals( obj.dragend, 0, "dragend");
- equals( obj.click, 1, "click");
- // simulate DISTANCE interaction
- obj.$div
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:53, pageY:54 })
- .fire("touchend",{ pageX:53, pageY:54 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 2, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
-
- asyncTest('"click" option',function(){
- expect( 5 );
- // prep interaction
- obj.init({ click:true });
- // simulate CLICK interaction
- obj.$div
- .fire("touchstart",{ pageX:50, pageY:50 })
- .fire("touchmove",{ pageX:51, pageY:51 })
- .fire("touchend",{ pageX:51, pageY:51 })
- .fire("click");
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.click, 1, "click");
- // clean-up interaction
- obj.done();
- });
-
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.js
deleted file mode 100644
index 7599ef91..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.js
+++ /dev/null
@@ -1,302 +0,0 @@
-/*!
- * jquery.event.drop - v 2.2
- * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
- * Open Source MIT License - http://threedubmedia.com/code/license
- */
-// Created: 2008-06-04
-// Updated: 2012-05-21
-// REQUIRES: jquery 1.7.x, event.drag 2.2
-
-;(function($){ // secure $ jQuery alias
-
-// Events: drop, dropstart, dropend
-
-// add the jquery instance method
-$.fn.drop = function( str, arg, opts ){
- // figure out the event type
- var type = typeof str == "string" ? str : "",
- // figure out the event handler...
- fn = $.isFunction( str ) ? str : $.isFunction( arg ) ? arg : null;
- // fix the event type
- if ( type.indexOf("drop") !== 0 )
- type = "drop"+ type;
- // were options passed
- opts = ( str == fn ? arg : opts ) || {};
- // trigger or bind event handler
- return fn ? this.bind( type, opts, fn ) : this.trigger( type );
-};
-
-// DROP MANAGEMENT UTILITY
-// returns filtered drop target elements, caches their positions
-$.drop = function( opts ){
- opts = opts || {};
- // safely set new options...
- drop.multi = opts.multi === true ? Infinity :
- opts.multi === false ? 1 : !isNaN( opts.multi ) ? opts.multi : drop.multi;
- drop.delay = opts.delay || drop.delay;
- drop.tolerance = $.isFunction( opts.tolerance ) ? opts.tolerance :
- opts.tolerance === null ? null : drop.tolerance;
- drop.mode = opts.mode || drop.mode || 'intersect';
-};
-
-// local refs (increase compression)
-var $event = $.event,
-$special = $event.special,
-// configure the drop special event
-drop = $.event.special.drop = {
-
- // these are the default settings
- multi: 1, // allow multiple drop winners per dragged element
- delay: 20, // async timeout delay
- mode: 'overlap', // drop tolerance mode
-
- // internal cache
- targets: [],
-
- // the key name for stored drop data
- datakey: "dropdata",
-
- // prevent bubbling for better performance
- noBubble: true,
-
- // count bound related events
- add: function( obj ){
- // read the interaction data
- var data = $.data( this, drop.datakey );
- // count another realted event
- data.related += 1;
- },
-
- // forget unbound related events
- remove: function(){
- $.data( this, drop.datakey ).related -= 1;
- },
-
- // configure the interactions
- setup: function(){
- // check for related events
- if ( $.data( this, drop.datakey ) )
- return;
- // initialize the drop element data
- var data = {
- related: 0,
- active: [],
- anyactive: 0,
- winner: 0,
- location: {}
- };
- // store the drop data on the element
- $.data( this, drop.datakey, data );
- // store the drop target in internal cache
- drop.targets.push( this );
- },
-
- // destroy the configure interaction
- teardown: function(){
- var data = $.data( this, drop.datakey ) || {};
- // check for related events
- if ( data.related )
- return;
- // remove the stored data
- $.removeData( this, drop.datakey );
- // reference the targeted element
- var element = this;
- // remove from the internal cache
- drop.targets = $.grep( drop.targets, function( target ){
- return ( target !== element );
- });
- },
-
- // shared event handler
- handler: function( event, dd ){
- // local vars
- var results, $targets;
- // make sure the right data is available
- if ( !dd )
- return;
- // handle various events
- switch ( event.type ){
- // draginit, from $.event.special.drag
- case 'mousedown': // DROPINIT >>
- case 'touchstart': // DROPINIT >>
- // collect and assign the drop targets
- $targets = $( drop.targets );
- if ( typeof dd.drop == "string" )
- $targets = $targets.filter( dd.drop );
- // reset drop data winner properties
- $targets.each(function(){
- var data = $.data( this, drop.datakey );
- data.active = [];
- data.anyactive = 0;
- data.winner = 0;
- });
- // set available target elements
- dd.droppable = $targets;
- // activate drop targets for the initial element being dragged
- $special.drag.hijack( event, "dropinit", dd );
- break;
- // drag, from $.event.special.drag
- case 'mousemove': // TOLERATE >>
- case 'touchmove': // TOLERATE >>
- drop.event = event; // store the mousemove event
- if ( !drop.timer )
- // monitor drop targets
- drop.tolerate( dd );
- break;
- // dragend, from $.event.special.drag
- case 'mouseup': // DROP >> DROPEND >>
- case 'touchend': // DROP >> DROPEND >>
- drop.timer = clearTimeout( drop.timer ); // delete timer
- if ( dd.propagates ){
- $special.drag.hijack( event, "drop", dd );
- $special.drag.hijack( event, "dropend", dd );
- }
- break;
-
- }
- },
-
- // returns the location positions of an element
- locate: function( elem, index ){
- var data = $.data( elem, drop.datakey ),
- $elem = $( elem ),
- posi = $elem.offset() || {},
- height = $elem.outerHeight(),
- width = $elem.outerWidth(),
- location = {
- elem: elem,
- width: width,
- height: height,
- top: posi.top,
- left: posi.left,
- right: posi.left + width,
- bottom: posi.top + height
- };
- // drag elements might not have dropdata
- if ( data ){
- data.location = location;
- data.index = index;
- data.elem = elem;
- }
- return location;
- },
-
- // test the location positions of an element against another OR an X,Y coord
- contains: function( target, test ){ // target { location } contains test [x,y] or { location }
- return ( ( test[0] || test.left ) >= target.left && ( test[0] || test.right ) <= target.right
- && ( test[1] || test.top ) >= target.top && ( test[1] || test.bottom ) <= target.bottom );
- },
-
- // stored tolerance modes
- modes: { // fn scope: "$.event.special.drop" object
- // target with mouse wins, else target with most overlap wins
- 'intersect': function( event, proxy, target ){
- return this.contains( target, [ event.pageX, event.pageY ] ) ? // check cursor
- 1e9 : this.modes.overlap.apply( this, arguments ); // check overlap
- },
- // target with most overlap wins
- 'overlap': function( event, proxy, target ){
- // calculate the area of overlap...
- return Math.max( 0, Math.min( target.bottom, proxy.bottom ) - Math.max( target.top, proxy.top ) )
- * Math.max( 0, Math.min( target.right, proxy.right ) - Math.max( target.left, proxy.left ) );
- },
- // proxy is completely contained within target bounds
- 'fit': function( event, proxy, target ){
- return this.contains( target, proxy ) ? 1 : 0;
- },
- // center of the proxy is contained within target bounds
- 'middle': function( event, proxy, target ){
- return this.contains( target, [ proxy.left + proxy.width * .5, proxy.top + proxy.height * .5 ] ) ? 1 : 0;
- }
- },
-
- // sort drop target cache by by winner (dsc), then index (asc)
- sort: function( a, b ){
- return ( b.winner - a.winner ) || ( a.index - b.index );
- },
-
- // async, recursive tolerance execution
- tolerate: function( dd ){
- // declare local refs
- var i, drp, drg, data, arr, len, elem,
- // interaction iteration variables
- x = 0, ia, end = dd.interactions.length,
- // determine the mouse coords
- xy = [ drop.event.pageX, drop.event.pageY ],
- // custom or stored tolerance fn
- tolerance = drop.tolerance || drop.modes[ drop.mode ];
- // go through each passed interaction...
- do if ( ia = dd.interactions[x] ){
- // check valid interaction
- if ( !ia )
- return;
- // initialize or clear the drop data
- ia.drop = [];
- // holds the drop elements
- arr = [];
- len = ia.droppable.length;
- // determine the proxy location, if needed
- if ( tolerance )
- drg = drop.locate( ia.proxy );
- // reset the loop
- i = 0;
- // loop each stored drop target
- do if ( elem = ia.droppable[i] ){
- data = $.data( elem, drop.datakey );
- drp = data.location;
- if ( !drp ) continue;
- // find a winner: tolerance function is defined, call it
- data.winner = tolerance ? tolerance.call( drop, drop.event, drg, drp )
- // mouse position is always the fallback
- : drop.contains( drp, xy ) ? 1 : 0;
- arr.push( data );
- } while ( ++i < len ); // loop
- // sort the drop targets
- arr.sort( drop.sort );
- // reset the loop
- i = 0;
- // loop through all of the targets again
- do if ( data = arr[ i ] ){
- // winners...
- if ( data.winner && ia.drop.length < drop.multi ){
- // new winner... dropstart
- if ( !data.active[x] && !data.anyactive ){
- // check to make sure that this is not prevented
- if ( $special.drag.hijack( drop.event, "dropstart", dd, x, data.elem )[0] !== false ){
- data.active[x] = 1;
- data.anyactive += 1;
- }
- // if false, it is not a winner
- else
- data.winner = 0;
- }
- // if it is still a winner
- if ( data.winner )
- ia.drop.push( data.elem );
- }
- // losers...
- else if ( data.active[x] && data.anyactive == 1 ){
- // former winner... dropend
- $special.drag.hijack( drop.event, "dropend", dd, x, data.elem );
- data.active[x] = 0;
- data.anyactive -= 1;
- }
- } while ( ++i < len ); // loop
- } while ( ++x < end ) // loop
- // check if the mouse is still moving or is idle
- if ( drop.last && xy[0] == drop.last.pageX && xy[1] == drop.last.pageY )
- delete drop.timer; // idle, don't recurse
- else // recurse
- drop.timer = setTimeout(function(){
- drop.tolerate( dd );
- }, drop.delay );
- // remember event, to compare idleness
- drop.last = drop.event;
- }
-
-};
-
-// share the same special event configuration with related events...
-$special.dropinit = $special.dropstart = $special.dropend = drop;
-
-})(jQuery); // confine scope \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js
deleted file mode 100644
index f5911a10..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/jquery.event.drop.live.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/*!
- * jquery.event.drop.live - v 2.2
- * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
- * Open Source MIT License - http://threedubmedia.com/code/license
- */
-// Created: 2010-06-07
-// Updated: 2012-05-21
-// REQUIRES: jquery 1.7.x, event.drag 2.2, event.drop 2.2
-
-;(function($){ // secure $ jQuery alias
-
-// local refs (increase compression)
-var $event = $.event,
-// ref the drop special event config
-drop = $event.special.drop,
-// old drop event add method
-origadd = drop.add,
-// old drop event teradown method
-origteardown = drop.teardown;
-
-// allow events to bubble for delegation
-drop.noBubble = false;
-
-// the namespace for internal live events
-drop.livekey = "livedrop";
-
-// new drop event add method
-drop.add = function( obj ){
- // call the old method
- origadd.apply( this, arguments );
- // read the data
- var data = $.data( this, drop.datakey );
- // bind the live "dropinit" delegator
- if ( !data.live && obj.selector ){
- data.live = true;
- $event.add( this, "dropinit."+ drop.livekey, drop.delegate );
- }
-};
-
-// new drop event teardown method
-drop.teardown = function(){
- // call the old method
- origteardown.apply( this, arguments );
- // read the data
- var data = $.data( this, drop.datakey ) || {};
- // remove the live "dropinit" delegator
- if ( data.live ){
- // remove the "live" delegation
- $event.remove( this, "dropinit", drop.delegate );
- data.live = false;
- }
-};
-
-// identify potential delegate elements
-drop.delegate = function( event, dd ){
- // local refs
- var elems = [], $targets,
- // element event structure
- events = $.data( this, "events" ) || {};
- // query live events
- $.each( events || [], function( key, arr ){
- // no event type matches
- if ( key.indexOf("drop") !== 0 )
- return;
- $.each( arr, function( i, obj ){
- // locate the elements to delegate
- $targets = $( event.currentTarget ).find( obj.selector );
- // no element found
- if ( !$targets.length )
- return;
- // take each target...
- $targets.each(function(){
- // add an event handler
- $event.add( this, obj.origType +'.'+ drop.livekey, obj.origHandler || obj.handler, obj.data );
- // remember new elements
- if ( $.inArray( this, elems ) < 0 )
- elems.push( this );
- });
- });
- });
- // may not exist when artifically triggering dropinit event
- if ( dd )
- // clean-up after the interaction ends
- $event.add( dd.drag, "dragend."+drop.livekey, function(){
- $.each( elems.concat( this ), function(){
- $event.remove( this, '.'+ drop.livekey );
- });
- });
- //drop.delegates.push( elems );
- return elems.length ? $( elems ) : false;
-};
-
-})( jQuery ); // confine scope \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/binding.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/binding.js
deleted file mode 100644
index e7541150..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/binding.js
+++ /dev/null
@@ -1,32 +0,0 @@
-module("Event Binding");
-
-$.each(['dropinit','dropstart','drop','dropend'],function( i, type ){
-
- test('"'+ type +'"',function(){
-
- expect( 9 );
-
- // make sure the event handler gets bound to the element
- var $elem = $('<div />'),
- elem = $elem[0],
- count = 0,
- fn = function(){
- count += 1;
- };
-
- ok( $elem.bind( type, fn )[0] == elem, '.bind("'+ type +'", fn )' );
- ok( $.data( elem, $.event.special.drop.datakey ), "drop data exists" );
- ok( $.data( elem, "events" ), "event data exists" );
- ok( $.data( elem, "events" )[ type ][0], '"'+ type +'" event handler added' );
-
- ok( $elem.trigger( type )[0] == elem, '.trigger("'+ type +'")' );
- ok( count == 1, "handler was triggered");
-
- ok( $elem.unbind( type )[0] == elem, '.unbind("'+ type +'")' );
- ok( !$.data( elem, "events" ), "event data removed" );
- ok( !$.data( elem, $.event.special.drop.datakey ), "drop data removed" );
-
- $elem.remove();
-
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/handlers.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/handlers.js
deleted file mode 100644
index f38526ac..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/handlers.js
+++ /dev/null
@@ -1,130 +0,0 @@
-;(function(){
-
- module("Event Handlers");
-
- // a simple re-usable test harness object
- var obj = {
- init: function( opts ){
- obj.$drag = $('<div class="drag"/>')
- .appendTo( document.body )
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .bind("dragend",{ drop:'.drop' },function( event, dd ){
- same( dd.drop, obj.dragend, "drop (dragend)" );
- });
- obj.$drop = $('<div class="drop"/><div class="extra"/>')
- .appendTo( document.body )
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .bind("dropinit dropstart drop dropend",function( event, dd ){
- obj[ event.type ] += 1;
- return obj.returned[ event.type ];
- });
- $.extend( obj, { dropinit:0, dropstart:0, drop:0, dropend:0 });
- $.drop({ mode:'overlap', multi:false });
- obj.returned = {};
- obj.dragend = null;
- },
- mouse: function(){
- var start = {
- pageX: Math.round( Math.random() * 90 ) + 5,
- pageY: Math.round( Math.random() * 90 ) + 5
- },
- end = {
- pageX: Math.round( Math.random() * 90 ) + start.pageX,
- pageY: Math.round( Math.random() * 90 ) + start.pageY
- };
- // simulate a complete mouse drag
- obj.$drag
- .fire("mousedown", start )
- .fire("mousemove", end )
- .fire("mouseup", end )
- .fire("click", end );
- },
- done: function( ms ){
- obj.$drag.remove();
- obj.$drop.remove();
- start();
- }
- };
-
- asyncTest('"dropinit" return false',function(){
- expect( 5 );
- // test prep
- obj.init();
- obj.returned['dropinit'] = false;
- obj.dragend = [];
- // simulate a partial drag
- obj.mouse();
- // check counts
- equals( obj.dropinit, 1, "dropinit");
- equals( obj.dropstart, 0, "dropstart");
- equals( obj.drop, 0, "drop");
- equals( obj.dropend, 0, "dropend");
- // continue
- obj.done();
- });
-
- asyncTest('"dropstart" return false',function(){
- expect( 5 );
- // test prep
- obj.init();
- obj.returned['dropstart'] = false;
- obj.dragend = [];
- // simulate a partial drag
- obj.mouse();
- // check counts
- equals( obj.dropinit, 1, "dropinit");
- equals( obj.dropstart, 1, "dropstart");
- equals( obj.drop, 0, "drop");
- equals( obj.dropend, 0, "dropend");
- // continue
- obj.done();
- });
-
-
- asyncTest('"drop" return false',function(){
- expect( 5 );
- // test prep
- obj.init();// test DROP FALSE
- obj.returned['drop'] = false;
- obj.dragend = [];
- // simulate a partial drag
- obj.mouse();
- // check counts
- equals( obj.dropinit, 1, "dropinit");
- equals( obj.dropstart, 1, "dropstart");
- equals( obj.drop, 1, "drop");
- equals( obj.dropend, 0, "dropend");
- // continue
- obj.done();
- });
-
- asyncTest('"dropinit" return elements',function(){
- expect( 5 );
- // test prep
- obj.init();
- obj.returned['dropinit'] = obj.$drop.eq(1);
- obj.dragend = [ obj.$drop[1] ];
- // simulate a partial drag
- obj.mouse();
- // check counts
- equals( obj.dropinit, 1, "dropinit");
- equals( obj.dropstart, 1, "dropstart");
- equals( obj.drop, 1, "drop");
- equals( obj.dropend, 1, "dropend");
- // continue
- obj.done();
- });
-
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/index.html b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/index.html
deleted file mode 100644
index 65928704..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/index.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<link href="../../img/favicon.ico" rel="shortcut icon" />
-<link href="../../jquery/qunit.css" rel="stylesheet" />
-<script src="../../jquery/jquery.js"></script>
-<script src="../../jquery/qunit.js"></script>
-<script src="../../fire/jquery.fire.js"></script>
-<script src="../../event.drag/jquery.event.drag.js"></script>
-<script src="../../event.drag/jquery.event.drag.live.js"></script>
-<script src="../jquery.event.drop.js"></script>
-<script src="../jquery.event.drop.live.js"></script>
-<script src="./requirements.js"></script>
-<script src="./binding.js"></script>
-<script src="./method.js"></script>
-<script src="./tolerance.js"></script>
-<script src="./interaction.js"></script>
-<script src="./touch.js"></script>
-<script src="./properties.js"></script>
-<script src="./handlers.js"></script>
-<script src="./live.js"></script>
-
-<title>ThreeDubMedia &middot; jQuery.event.drop.js</title>
-</head>
-<body>
-<h1 id="qunit-header">jQuery.event.drop.js Unit Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-</body>
-</html> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/interaction.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/interaction.js
deleted file mode 100644
index 5b0f4f38..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/interaction.js
+++ /dev/null
@@ -1,134 +0,0 @@
-;(function(){
-
- module("Mouse Interaction");
-
- // a simple re-usable test harness object
- var obj = {
- init: function( opts ){
- obj.$drag = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .appendTo( document.body )
- .bind("draginit dragstart drag dragend click", opts || {}, function( event ){
- obj[ event.type ] += 1;
- });
- obj.$drop = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .appendTo( document.body )
- .bind("dropinit dropstart drop dropend",function( event ){
- obj[ event.type ] += 1;
- });
- $.extend( obj, {
- draginit:0, dragstart:0, drag:0, dragend:0,
- dropinit:0, dropstart:0, drop:0, dropend:0,
- click:0
- });
- },
- mouse: function(){
- var start = {
- pageX: Math.round( Math.random() * 90 ) + 5,
- pageY: Math.round( Math.random() * 90 ) + 5
- },
- end = {
- pageX: Math.round( Math.random() * 90 ) + start.pageX,
- pageY: Math.round( Math.random() * 90 ) + start.pageY
- };
- // simulate a complete mouse drag
- obj.$drag
- .fire("mousedown", start )
- .fire("mousemove", end )
- .fire("mouseup", end )
- .fire("click", end );
- },
- done: function(){
- obj.$drag.remove();
- obj.$drop.remove();
- start();
- }
- };
-
- asyncTest('Drag and Drop defaults',function(){
- // prep DEFAULT interaction
- obj.init();
- // simulate DEFAULT interaction
- obj.mouse();
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.dropinit, 1, "dropinit");
- equals( obj.dropstart, 1, "dropstart");
- equals( obj.drop, 1, "drop");
- equals( obj.dropend, 1, "dropend");
- // continue
- obj.done();
- });
-
- asyncTest('Drag "drop" option (false)',function(){
- // prep interaction
- obj.init({ drop:false });
- // simulate drag
- obj.mouse();
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.dropinit, 0, "dropinit");
- equals( obj.dropstart, 0, "dropstart");
- equals( obj.drop, 0, "drop");
- equals( obj.dropend, 0, "dropend");
- // continue
- obj.done();
- });
-
- asyncTest('Drag "drop" option (unmatched)',function(){
- // prep interaction
- obj.init({ drop:'body' });
- // simulate drag
- obj.mouse();
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.dropinit, 0, "dropinit");
- equals( obj.dropstart, 0, "dropstart");
- equals( obj.drop, 0, "drop");
- equals( obj.dropend, 0, "dropend");
- // continue
- obj.done();
- });
-
- asyncTest('Drag "drop" option (matched)',function(){
- // prep interaction
- obj.init({ drop:'div' });
- // simulate drag
- obj.mouse();
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.dropinit, 1, "dropinit");
- equals( obj.dropstart, 1, "dropstart");
- equals( obj.drop, 1, "drop");
- equals( obj.dropend, 1, "dropend");
- // continue
- obj.done();
- });
-
-})();
-
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/live.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/live.js
deleted file mode 100644
index 5e30130f..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/live.js
+++ /dev/null
@@ -1,60 +0,0 @@
-module("Live Delegation");
-
-$.each(["dropinit","dropstart","drop","dropend"],function( i, type ){
-
- test('"'+ type+'"',function(){
-
- expect( i ? 5 : 1 );
-
- if ( !i ){
- ok( true, 'Not supported for this event type.');
- return;
- }
-
- // set up the delegation
- $('.drop').live( type, function( event ){
- count += 1;
- equals( this, $drop[0], event.type+" target" );
- });
- // local refs
- var count = 0,
- // add a div to test the delegation
- $drop = $('<div class="drop" />')
- .css({
- position: 'absolute',
- top: 0, left: 0,
- height: 100, width: 100
- })
- .appendTo( document.body ),
- // add a dragger
- $drag = $('<div class="drag" />')
- .css({
- position: 'absolute',
- top: 0, left: 0,
- height: 100, width: 100
- })
- .appendTo( document.body )
- .drag(function(){ });
-
- // check triggering of the event handlers
- ok( $drop.trigger( type ), '.trigger("'+ type +'")');
- equals( count, 1, "event was triggered");
-
- // simulate a complete drag
- $drag
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .fire("click",{ pageX:51, pageY:51 });
-
- // check the event handler counts
- equals( count, 2, "event was delegated");
-
- // remove delegation
- $('.drop').die( type );
- $drag.remove();
- $drop.remove();
-
- });
-
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/method.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/method.js
deleted file mode 100644
index ea9a05d8..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/method.js
+++ /dev/null
@@ -1,63 +0,0 @@
-module("Drop Method");
-
-$.each(['init','start','','end'],function( i, type ){
-
- test('"drop'+ type +'"',function(){
-
- expect( 9 );
-
- // make sure the event handler gets bound to the element
- var $elem = $('<div />'),
- elem = $elem[0],
- count = 0,
- fn = function(){
- count += 1;
- };
-
- ok( $elem.drop( type, fn )[0] == elem, ".drop("+( type ? '"'+ type +'",' : "" )+" fn )" );
- ok( $.data( elem, $.event.special.drop.datakey ), "drop data exists" );
- ok( $.data( elem, "events" ), "event data exists" );
- ok( $.data( elem, "events" )[ 'drop'+type ][0], '"drop'+ type +'" event handler added' );
-
- ok( $elem.drop( type )[0] == elem, ".drop("+( type ? '"'+ type +'"' : "" )+")" );
- ok( count == 1, "handler was triggered");
-
- ok( $elem.unbind( "drop"+ type )[0] == elem, '.unbind("drop'+ type +'")' );
- ok( !$.data( elem, "events" ), "event data removed" );
- ok( !$.data( elem, $.event.special.drag.datakey ), "drag data removed" );
-
- $elem.remove();
-
- });
-
-});
-
-test('$.drop()',function(){
-
- expect( 4 );
-
- // call the static method with settings
- var drop = $.event.special.drop,
- def = {
- multi: drop.multi,
- delay: drop.delay,
- mode: drop.mode,
- tolerance: null
- },
- opts = {
- multi: 99,
- delay: 88,
- mode: 77,
- tolerance: function(){}
- };
- $.drop( opts );
-
- ok( drop.multi == opts.multi, "multi option was set" );
- ok( drop.delay == opts.delay, "delay option was set" );
- ok( drop.mode == opts.mode, "mode option was set" );
- ok( drop.tolerance == opts.tolerance, "tolerance option was set" );
-
- // restore defaults
- $.drop( def );
-
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/properties.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/properties.js
deleted file mode 100644
index 96185e9e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/properties.js
+++ /dev/null
@@ -1,62 +0,0 @@
-module("Callback Properties");
-
-$.each(["init","start","","end"],function( i, type ){
-
- test('"drop'+ type +'" callback',function(){
-
- expect( i ? 10 : 12 );
-
- // create the markup for the test
- var $drag = $('<div class="drag"/>')
- .appendTo( document.body )
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .bind("draginit",function( ev, dd ){
- same( dd.drop, [], 'draginit: "drop"' );
- same( dd.available, [], 'draginit: "available"' );
- })
- .bind("dragstart",function( ev, dd ){
- same( dd.drop, [], 'dragstart: "drop"' );
- same( dd.available, available, 'dragstart: "available"' );
- })
- .bind("drag",function( ev, dd ){
- same( dd.drop, [], 'drag: "drop"' );
- same( dd.available, available, 'drag: "available"' );
- })
- .bind("dragend",function( ev, dd ){
- same( dd.drop, drop, 'dragend: "drop"' );
- same( dd.available, available, 'dragend: "available"' );
- $drag.remove();
- $drop.remove();
- }),
- $drop = $('<div class="drop"/><div class="drop"/>')
- .appendTo( document.body )
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .drop( type, function( ev, dd ){
- same( dd.drop, i < 2 ? [] : drop, 'drop'+ type +': "drop"' );
- same( dd.available, i < 1 ? [] : available, 'drop'+ type +': "available"' );
- }),
- available = $drop.toArray(),
- drop = $drop.eq(0).toArray();
-
- $.drop({ mode:'overlap', multi:false });
- // simulate a complete drag and drop
- $drag
- .fire("mousedown",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:51, pageY:51 })
- .fire("mouseup",{ pageX:51, pageY:51 })
- .trigger("click");
- });
-
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js
deleted file mode 100644
index 697d2032..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/requirements.js
+++ /dev/null
@@ -1,37 +0,0 @@
-module("Requirements");
-
-test("jQuery",function(){
-
- expect( 2 );
-
- // make sure the right jquery is included
- ok( window.jQuery, "jQuery exists" );
- ok( parseFloat( jQuery([]).jquery ) >= 1.4, "jQuery version is 1.4 or greater" );
-});
-
-test("$.event.special.drag",function(){
-
- expect( 5 );
-
- // make sure the event interface is complete
- ok( jQuery.event.special.draginit, '"draginit" special event is defined' );
- ok( jQuery.event.special.dragstart, '"dragstart" special event is defined' );
- ok( jQuery.event.special.drag, '"drag" special event is defined' );
- ok( jQuery.event.special.dragend, '"dragend" special event is defined' );
- ok( jQuery([]).drag, "$.fn.drag method is defined" );
-
-});
-
-test("Installation",function(){
-
- expect( 6 );
-
- // make sure the event interface is complete
- ok( jQuery.event.special.dropinit, '"dropinit" special event is defined' );
- ok( jQuery.event.special.dropstart, '"dropstart" special event is defined' );
- ok( jQuery.event.special.drop, '"drop" special event is defined' );
- ok( jQuery.event.special.dropend, '"dropend" special event is defined' );
- ok( jQuery([]).drop, '$.fn.drop method is defined' );
- ok( jQuery.drop, '$.drop method is defined' );
-
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/tolerance.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/tolerance.js
deleted file mode 100644
index 4bdaf6e5..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/tolerance.js
+++ /dev/null
@@ -1,189 +0,0 @@
-;(function(){
-
- module("Tolerance Mode");
-
- // re-usable test harness object
- var obj = {
- init: function( opts ){
- // the drop element
- obj.$drop = $('<div />')
- .css({
- position: 'absolute',
- top: 200,
- left: 200,
- height: 100,
- width: 100
- })
- .appendTo( document.body )
- .bind("dropinit",function( event ){
- if ( obj.multidrop )
- return $( this )
- .clone( true )
- .addClass('clone')
- .appendTo( document.body )
- .add( this );
- })
- .bind("drop",function( event ){
- obj.count += 1;
- });
- // the drag element
- obj.$drag = $('<div />')
- .css({
- position: 'absolute',
- top: 100,
- left: 100,
- height: 100,
- width: 100
- })
- .appendTo( document.body )
- .bind("draginit", function( event ){
- if ( obj.multidrag )
- return $( this )
- .clone( true )
- .addClass('clone')
- .appendTo( document.body )
- .add( this );
- })
- .bind("dragstart",function( ev, dd ){
- if ( obj.proxy )
- return $( this ).clone()
- .addClass('clone')
- .appendTo( document.body );
- })
- .bind("drag",function( ev, dd ){
- if ( obj.move )
- $( dd.proxy ).css({
- top: dd.offsetY,
- left: dd.offsetX
- });
- })
- .bind("dragend",function( ev, dd ){
- var $div = $( this ).css({
- top: 100,
- left: 100
- });
- $( document.body ).find('.clone').remove();
- });
- // reset test vars
- obj.count = 0;
- obj.move = obj.proxy = obj.multidrag = obj.multidrop = null;
- },
- done: function(){
- obj.$drag.remove();
- obj.$drop.remove();
- start();
- }
- };
-
- // async iterator
- function asyncEach( obj, func, after ){
- // local refs
- var arr = [], i = 0, len;
- // translate into a secondary array
- $.each( obj, function( index, value ){
- len = arr.push({ that:this, index:index, value:value });
- });
- function next(){
- var data = arr[ i++ ], ret;
- if ( i <= len ){
- if ( data )
- ret = func.call( data.that, data.index, data.value, next );
- if ( ret === false )
- done();
- }
- else done();
- };
- function done(){
- if ( after )
- after();
- };
- next();
- }
-
- // test each mode...
- $.each({
- 'mouse':{
- 'overlap':[0,0,0,0,0],
- 'middle':[0,0,0,0,0],
- 'fit':[0,0,0,0,0],
- 'mouse':[1,1,1,2,4],
- 'away':[0,0,0,0,0]
- },
- 'overlap':{
- 'overlap':[0,1,1,2,4],
- 'middle':[0,1,1,2,4],
- 'fit':[0,1,1,2,4],
- 'mouse':[0,0,0,0,0],
- 'away':[0,0,0,0,0]
- },
- 'middle':{
- 'overlap':[0,0,0,0,0],
- 'middle':[0,1,1,2,4],
- 'fit':[0,1,1,2,4],
- 'mouse':[0,0,0,0,0],
- 'away':[0,0,0,0,0]
- },
- 'fit':{
- 'overlap':[0,0,0,0,0],
- 'middle':[0,0,0,0,0],
- 'fit':[0,1,1,2,4],
- 'mouse':[0,0,0,0,0],
- 'away':[0,0,0,0,0]
- },
- 'intersect':{
- 'overlap':[0,1,1,2,4],
- 'middle':[0,1,1,2,4],
- 'fit':[0,1,1,2,4],
- 'mouse':[1,1,1,2,4],
- 'away':[0,0,0,0,0]
- }
- }, function( mode, expected ){
-
- // test each mode
- asyncTest('"'+ mode +'"',function(){
-
- expect( 25 );
-
- // test prep
- obj.init();
- $.drop({
- mode:mode,
- multi:true
- });
- // drag to each position
- asyncEach({
- 'overlap':{ pageX:33, pageY:33 },
- 'middle':{ pageX:66, pageY:66 },
- 'fit':{ pageX:100, pageY:100 },
- 'mouse':{ pageX:250, pageY:250 },
- 'away':{ pageX:-1, pageY:-1 }
- }, function( where, coord, next ){
- // execute interaction variants
- asyncEach([
- 'dropped '+ where +' (no motion)',
- 'dropped '+ where +' (drag motion)',
- 'dropped '+ where +' (proxy motion)',
- 'dropped '+ where +' (multi drag)',
- 'dropped '+ where +' (multi drop)'
- ], function( i, msg, next ){
- // set-up
- obj.count = 0;
- obj.move = ( i > 0 );
- obj.proxy = ( i > 1 );
- obj.multidrag = ( i > 2 );
- obj.multidrop = ( i > 3 );
- // simulate a partial drag
- obj.$drag
- .fire("mousedown",{ pageX:0, pageY:0 })
- .fire("mousemove", coord )
- .fire("mouseup", coord )
- .fire("click", coord );
- equals( obj.count, expected[where][i], msg );
- next();
- }, next );
- }, obj.done );
- });
-
- });
-
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/touch.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/touch.js
deleted file mode 100644
index b28177fc..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.drop/test/touch.js
+++ /dev/null
@@ -1,140 +0,0 @@
-;(function(){
-
- module("Touch Interaction");
-
- if ( !document.createEvent ){
- test("Touch Simulation Not Supported",function(){
- ok( true, 'This browser does not support "document.createEvent" and cannot simulate touch events.');
- });
- return;
- }
-
- // a simple re-usable test harness object
- var obj = {
- init: function( opts ){
- obj.$drag = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .appendTo( document.body )
- .bind("draginit dragstart drag dragend click", opts || {}, function( event ){
- obj[ event.type ] += 1;
- });
- obj.$drop = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .appendTo( document.body )
- .bind("dropinit dropstart drop dropend",function( event ){
- obj[ event.type ] += 1;
- });
- $.extend( obj, {
- draginit:0, dragstart:0, drag:0, dragend:0,
- dropinit:0, dropstart:0, drop:0, dropend:0,
- click:0
- });
- },
- touch: function(){
- var start = {
- pageX: Math.round( Math.random() * 90 ) + 5,
- pageY: Math.round( Math.random() * 90 ) + 5
- },
- end = {
- pageX: Math.round( Math.random() * 90 ) + start.pageX,
- pageY: Math.round( Math.random() * 90 ) + start.pageY
- };
- // simulate a complete mouse drag
- obj.$drag
- .fire("touchstart", start )
- .fire("touchmove", end )
- .fire("touchend", end )
- .fire("click", end );
- },
- done: function(){
- obj.$drag.remove();
- obj.$drop.remove();
- start();
- }
- };
-
- asyncTest('Drag and Drop defaults',function(){
- // prep DEFAULT interaction
- obj.init();
- // simulate DEFAULT interaction
- obj.touch();
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.dropinit, 1, "dropinit");
- equals( obj.dropstart, 1, "dropstart");
- equals( obj.drop, 1, "drop");
- equals( obj.dropend, 1, "dropend");
- // continue
- obj.done();
- });
-
- asyncTest('Drag "drop" option (false)',function(){
- // prep interaction
- obj.init({ drop:false });
- // simulate drag
- obj.touch();
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.dropinit, 0, "dropinit");
- equals( obj.dropstart, 0, "dropstart");
- equals( obj.drop, 0, "drop");
- equals( obj.dropend, 0, "dropend");
- // continue
- obj.done();
- });
-
- asyncTest('Drag "drop" option (unmatched)',function(){
- // prep interaction
- obj.init({ drop:'body' });
- // simulate drag
- obj.touch();
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.dropinit, 0, "dropinit");
- equals( obj.dropstart, 0, "dropstart");
- equals( obj.drop, 0, "drop");
- equals( obj.dropend, 0, "dropend");
- // continue
- obj.done();
- });
-
- asyncTest('Drag "drop" option (matched)',function(){
- // prep interaction
- obj.init({ drop:'div' });
- // simulate drag
- obj.touch();
- // inspect results
- equals( obj.draginit, 1, "draginit");
- equals( obj.dragstart, 1, "dragstart");
- equals( obj.drag, 1, "drag");
- equals( obj.dragend, 1, "dragend");
- equals( obj.dropinit, 1, "dropinit");
- equals( obj.dropstart, 1, "dropstart");
- equals( obj.drop, 1, "drop");
- equals( obj.dropend, 1, "dropend");
- // continue
- obj.done();
- });
-
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.keyend/jquery.event.keyend.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.keyend/jquery.event.keyend.js
deleted file mode 100644
index f4a29cfd..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.keyend/jquery.event.keyend.js
+++ /dev/null
@@ -1,20 +0,0 @@
-;(function( $ ){
- $.fn.keyend = function( fn ){
- return this[ fn ? "bind" : "trigger" ]( "keyend", fn );
- };
- var keyend = $.event.special.keyend = {
- delay: 400,
- setup: function( data ){
- $( this ).bind("keypress",{ delay: data.delay }, keyend.handler );
- },
- teardown: function(){
- $( this ).unbind("keypress", keyend.handler );
- },
- handler: function( event ){
- clearTimeout( event.data.timer );
- event.data.timer = setTimeout(function(){
- $( event.currentTarget ).keyend();
- }, event.data.delay || keyend.delay );
- }
- };
-})( jQuery ); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/jquery.event.linger.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/jquery.event.linger.js
deleted file mode 100644
index 66217ea2..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/jquery.event.linger.js
+++ /dev/null
@@ -1,190 +0,0 @@
-/*!
- * jquery.event.linger - v 1.0.0
- * Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
- * Open Source MIT License - http://threedubmedia.com/code/license
- */
-// Created: 2008-06-02
-// Updated: 2010-09-13
-// REQUIRES: jquery 1.4.2+
-
-;(function($){ // secure $ jQuery alias
-
-// add the jquery instance method
-$.fn.linger = function( str, arg, opts ){
- // figure out the event type
- var type = typeof str == "string" ? str : "",
- // figure out the event handler...
- fn = $.isFunction( str ) ? str : $.isFunction( arg ) ? arg : null;
- // fix the event type
- if ( type.indexOf("linger") !== 0 )
- type = "linger"+ type;
- // were options passed
- opts = ( str == fn ? arg : opts ) || {};
- // trigger or bind event handler
- return fn ? this.bind( type, opts, fn ) : this.trigger( type );
-};
-
-
-// local refs (increase compression)
-var $event = $.event,
-$special = $event.special,
-// special event configuration
-linger = $special.linger = {
-
- // default settings
- defaults: {
- speed: 100, // speed limit (pixels per second)
- delay: 100, // milliseconds per speed check
- persist: 400 // milliseconds after mouseleave
- },
-
- // the key name for stored data
- datakey: "lingerdata",
-
- // count bound related events
- add: function( obj ){
- // read the interaction data
- var data = $.data( this, linger.datakey ),
- // read any passed options
- opts = obj.data || {};
- // count another realted event
- data.related += 1;
- // extend data options bound with this event
- // don't iterate "opts" in case it is a node
- $.each( linger.defaults, function( key, def ){
- if ( opts[ key ] !== undefined )
- data[ key ] = opts[ key ];
- });
- },
-
- // forget unbound related events
- remove: function(){
- $.data( this, linger.datakey ).related -= 1;
- },
-
- // configure interaction
- setup: function(){
- // check for related events
- if ( $.data( this, linger.datakey ) )
- return;
- // initialize the drag data with copied defaults
- var data = $.extend({ related:0 }, linger.defaults );
- // store the interaction data
- $.data( this, linger.datakey, data );
- // bind the mouse events with data
- $event.add( this, "mouseenter mouseleave", linger.handler, data );
- },
-
- // destroy configured interaction
- teardown: function(){
- // check for related events
- if ( $.data( this, linger.datakey ).related )
- return;
- // remove the stored data
- $.removeData( this, linger.datakey );
- // remove the mouse events
- $event.remove( this, "mouseenter mousemove mouseleave", linger.handler );
- },
-
- // handle mouse events
- handler: function( event ){
- var data = event.data || {};
- // initialize props for new interaction
- if ( event.type == "mouseenter" && !data.lingered ){
- // mouse distance squared
- data.dist2 = 0;
- // ( speed * time ) squared
- data.limit = Math.pow( data.speed * ( data.delay/1e3 ), 2 );
- // the interacted element
- data.elem = this;
- // handle the start event (handler may return false to cancel)
- if ( linger.hijack( event, "lingerstart", this ) ){
- // store the event, to compare later
- data.event = event;
- // begin tracking the mouse movement
- $event.add( this, "mousemove", linger.handler, data );
- // start comparing mouse speed at fixed intervals
- data.timer = setTimeout(function(){
- // check the current speed against the limit
- if ( data.dist2 <= data.limit )
- // handle the linger event (handler may return false to cancel)
- data.lingered = linger.hijack( data.event, "linger", data.elem );
- // stop tracking the mouse
- if ( data.lingered )
- $event.remove( data.elem, "mousemove", linger.handler );
- // recurse
- else
- data.timer = setTimeout( arguments.callee, data.delay );
- // reset distance for next comparison
- data.dist2 = 0;
- }, data.delay );
- }
- }
- // stop if not properly initialized
- if ( !data.event )
- return;
- // handle other events
- switch ( event.type ){
- // mouse re-entry
- case data.lingered && 'mouseenter':
- // stop the current timer
- clearTimeout( data.timer );
- break;
- // track mouse movement
- case 'mousemove':
- // distance² = x² + y²
- data.dist2 += Math.pow( event.pageX - data.event.pageX, 2 )
- + Math.pow( event.pageY - data.event.pageY, 2 );
- // store current event
- data.event = event;
- break;
- // handle leaving after lingering
- case data.lingered && 'mouseleave':
- // optionally delay the end event
- data.timer = setTimeout(function(){
- // handle the end event, flip flag for lingering
- data.lingered = !linger.hijack( event, "lingerend", data.elem );
- // if still lingering, recurse
- if ( data.lingered )
- setTimeout( arguments.callee, data.persist );
- }, data.persist );
- break;
- // handle leaving after no lingering
- case !data.lingered && 'mouseleave':
- // stop the current timer
- clearTimeout( data.timer );
- // stop tracking the mouse movement
- $event.remove( data.elem, "mousemove", linger.handler );
- // clean the data for next interaction
- data.event = null;
- break;
- }
- },
-
- // re-use event object for custom events
- hijack: function( event, type, elem ){
- // remember the original event and type
- var result, orig = {
- event: event.originalEvent,
- type: event.type
- };
- // modify the event type
- event.type = type;
- // remove the original event
- event.originalEvent = null;
- // remove any previous event result
- event.result = null;
- // handle the custom event
- result = $event.handle.call( elem, event );
- // restore the original event & type
- event.type = orig.type;
- event.originalEvent = orig.event;
- // return handled result
- return ( result !== false );
- }
-};
-
-// share the same special event configuration with related events...
-$special.lingerstart = $special.lingerend = linger;
-
-})(jQuery); // confine scope \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/binding.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/binding.js
deleted file mode 100644
index 8101e44d..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/binding.js
+++ /dev/null
@@ -1,45 +0,0 @@
-module("Bind Method");
-
-$.each(['lingerstart','linger','lingerend'],function( i, type ){
-
- test('"'+ type +'"', function(){
-
- expect( 14 );
-
- // make sure the event handler gets bound to the element
- var $elem = $('<div />'),
- elem = $elem[0],
- count = 0,
- fn = function(){
- count += 1;
- },
- opts = {
- speed: 111,
- delay: 222,
- persist: 333
- },
- data;
-
- ok( $elem.bind( type, fn )[0] == elem, ".bind('"+ type +"', fn )" );
- ok( $.data( elem, $.event.special.linger.datakey ), "linger data exists" );
- ok( $.data( elem, "events" ), "event data exists" );
- ok( $.data( elem, "events" )[ type ][0], type +" event handler added" );
-
- ok( $elem.trigger( type )[0] == elem, ".trigger('"+ type +"')" );
- ok( count == 1, "handler was triggered");
-
- ok( $elem.unbind( type )[0] == elem, ".unbind('"+ type +"')" );
- ok( !$.data( elem, "events" ), "event data removed" );
- ok( !$.data( elem, $.event.special.linger.datakey ), "linger data removed" );
-
- ok( $elem.bind( type, opts, fn )[0] == elem, ".bind('"+ type +"', data, fn )" );
- ok( data = $.data( elem, $.event.special.linger.datakey ), "linger data exists" );
-
- ok( data.speed == opts.speed, "'speed' option stored" );
- ok( data.delay == opts.delay, "'delay' option stored" );
- ok( data.persist == opts.persist, "'persist' option stored" );
-
- $elem.remove();
-
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/handlers.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/handlers.js
deleted file mode 100644
index 621ea491..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/handlers.js
+++ /dev/null
@@ -1,111 +0,0 @@
-;(function(){
-
- module("Event Handlers");
-
- // a simple re-usable test harness object
- var obj = {
- init: function( opts ){
- obj.$div = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .append('<div class="child" />')
- .appendTo( document.body )
- .bind("lingerstart linger lingerend", opts || {}, function( event ){
- obj[ event.type ] += 1;
- return obj.returned[ event.type ];
- });
- $.extend( obj, { lingerstart:0, linger:0, lingerend:0 });
- obj.returned = {};
- },
- done: function(){
- obj.$div.remove();
- start();
- }
- };
-
- asyncTest('"lingerstart" return false',function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init();
- // set the return value
- obj.returned['lingerstart'] = false;
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait 100 ms (default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 100 ms (persist)
- setTimeout(function(){
- // inspect results
- equals( obj.lingerstart, 1, "lingerstart");
- equals( obj.linger, 0, "linger");
- equals( obj.lingerend, 0, "lingerend");
- obj.done();
- }, 100 );
- }, 100 );
-
- });
-
- asyncTest('"linger" return false',function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ persist:100 });
- // set the return value
- obj.returned['linger'] = false;
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait 300 ms (3x default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 100 ms (persist)
- setTimeout(function(){
- // inspect results
- equals( obj.lingerstart, 1, "lingerstart");
- equals( obj.linger, 3, "linger");
- equals( obj.lingerend, 0, "lingerend");
- obj.done();
- }, 100 );
- }, 350 );
-
- });
-
- asyncTest('"lingerend" return false',function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ persist:100 });
- // set the return value
- obj.returned['lingerend'] = false;
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait 100 ms (default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 300 ms (3x persist)
- setTimeout(function(){
- // inspect results
- equals( obj.lingerstart, 1, "lingerstart");
- equals( obj.linger, 1, "linger");
- equals( obj.lingerend, 3, "lingerend");
- obj.done();
- }, 350 );
- }, 300 );
- });
-
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/index.html b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/index.html
deleted file mode 100644
index f22a41da..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/index.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<link href="../../img/favicon.ico" rel="shortcut icon" />
-<link href="../../jquery/qunit.css" rel="stylesheet" />
-<script src="../../jquery/jquery.js"></script>
-<script src="../../jquery/qunit.js"></script>
-<script src="../../fire/jquery.fire.js"></script>
-<script src="../jquery.event.linger.js"></script>
-<script src="./requirements.js"></script>
-<script src="./binding.js"></script>
-<script src="./method.js"></script>
-<script src="./interaction.js"></script>
-<script src="./handlers.js"></script>
-<title>ThreeDubMedia &middot; jQuery.event.linger.js</title>
-</head>
-<body>
-<h1 id="qunit-header">jQuery.event.linger.js Unit Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-</body>
-</html> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/interaction.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/interaction.js
deleted file mode 100644
index d4bbf512..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/interaction.js
+++ /dev/null
@@ -1,231 +0,0 @@
-;(function(){
-
- module("Interaction");
-
- // a simple re-usable test harness object
- var obj = {
- init: function( opts ){
- obj.$div = $('<div />')
- .css({
- position: 'absolute',
- top: 0,
- left: 0,
- height: 100,
- width: 100
- })
- .append('<div class="child" />')
- .appendTo( document.body )
- .bind("lingerstart linger lingerend", opts || {}, function( event ){
- obj.counts[ event.type ] += 1;
- });
- obj.counts = { lingerstart:0, linger:0, lingerend:0 };
- },
- done: function(){
- obj.$div.remove();
- start();
- }
- };
-
- asyncTest("defaults",function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init();
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait 100 ms (default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 400 ms (default persist)
- setTimeout(function(){
- // inspect results
- equals( obj.counts.lingerstart, 1, "lingerstart");
- equals( obj.counts.linger, 1, "linger");
- equals( obj.counts.lingerend, 1, "lingerend");
- obj.done();
- }, 400 );
- }, 100 );
- });
-
- asyncTest("speed (miss)",function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ speed:200 });
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:63, pageY:67 }); // move > 20 pixels (custom speed)
- // wait 100 ms (default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 400 ms (default persist)
- setTimeout(function(){
- // inspect results
- equals( obj.counts.lingerstart, 1, "lingerstart");
- equals( obj.counts.linger, 0, "linger");
- equals( obj.counts.lingerend, 0, "lingerend");
- obj.done();
- }, 400 );
- }, 100 );
- });
-
- asyncTest("speed (hit)",function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ speed:200 });
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:62, pageY:66 }); // move <= 20 pixels (custom speed)
- // wait 100 ms (default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 400 ms (default persist)
- setTimeout(function(){
- // inspect results
- equals( obj.counts.lingerstart, 1, "lingerstart");
- equals( obj.counts.linger, 1, "linger");
- equals( obj.counts.lingerend, 1, "lingerend");
- obj.done();
- }, 400 );
- }, 100 );
- });
-
- asyncTest("delay (miss)",function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ delay:200 });
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait < 200 ms (custom delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 400 ms (default persist)
- setTimeout(function(){
- // inspect results
- equals( obj.counts.lingerstart, 1, "lingerstart");
- equals( obj.counts.linger, 0, "linger");
- equals( obj.counts.lingerend, 0, "lingerend");
- obj.done();
- }, 400 );
- }, 100 );
- });
-
- asyncTest("delay (hit)",function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ delay:200 });
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait 200 ms (custom delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 400 ms (default persist)
- setTimeout(function(){
- // inspect results
- equals( obj.counts.lingerstart, 1, "lingerstart");
- equals( obj.counts.linger, 1, "linger");
- equals( obj.counts.lingerend, 1, "lingerend");
- obj.done();
- }, 400 );
- }, 200 );
- });
-
- asyncTest("persist (miss)",function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ persist:200 });
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait 100 ms (default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait < 200 ms (custom persist)
- setTimeout(function(){
- // inspect results
- equals( obj.counts.lingerstart, 1, "lingerstart");
- equals( obj.counts.linger, 1, "linger");
- equals( obj.counts.lingerend, 0, "lingerend");
- setTimeout(function(){
- obj.done();
- }, 100 );
- }, 100 );
- }, 100 );
- });
-
- asyncTest("persist (hit)",function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ persist:200 });
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait 100 ms (default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 });
- // wait 200 ms (custom persist)
- setTimeout(function(){
- // inspect results
- equals( obj.counts.lingerstart, 1, "lingerstart");
- equals( obj.counts.linger, 1, "linger");
- equals( obj.counts.lingerend, 1, "lingerend");
- obj.done();
- }, 200 );
- }, 100 );
-
- });
-
- asyncTest("persist (re-enter)",function(){
-
- expect( 3 );
-
- // prep interaction
- obj.init({ persist:200 });
- // simulate interaction
- obj.$div
- .fire("mouseover",{ pageX:50, pageY:50 })
- .fire("mousemove",{ pageX:56, pageY:58 }); // move <= 10 pixels (default speed)
- // wait 100 ms (default delay)
- setTimeout(function(){
- obj.$div.fire("mouseout",{ pageX:51, pageY:51 })
- // wait < 200 ms (custom persist)
- setTimeout(function(){
- // re-enter the element
- obj.$div.fire("mouseover",{ pageX:50, pageY:50 });
- // wait 200 ms (custom persist)
- setTimeout(function(){
- // inspect results
- equals( obj.counts.lingerstart, 1, "lingerstart");
- equals( obj.counts.linger, 1, "linger");
- equals( obj.counts.lingerend, 0, "lingerend");
- obj.done();
- }, 200 );
- }, 100 );
- }, 100 );
-
- });
-
-})();
-
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/method.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/method.js
deleted file mode 100644
index c2303eb8..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/method.js
+++ /dev/null
@@ -1,43 +0,0 @@
-module("Linger Method");
-
-$.each(['start','','end'],function( i, type ){
-
- test('"linger'+ type +'"',function(){
-
- expect( 11 );
-
- // make sure the event handler gets bound to the element
- var $elem = $('<div />'),
- elem = $elem[0],
- count = 0,
- fn = function(){
- count += 1;
- },
- opts = {
- speed: 111,
- delay: 222,
- persist: 333
- },
- data;
-
- ok( $elem.linger( type, fn )[0] == elem, ".linger("+( type ? "'"+ type +"'," : "" )+" fn )" );
- ok( $.data( elem, $.event.special.linger.datakey ), "linger data exists" );
- ok( $.data( elem, "events" ), "event data exists" );
- ok( $.data( elem, "events" )[ 'linger'+type ][0], 'linger'+ type +" event handler added" );
-
- ok( $elem.linger( type )[0] == elem, ".linger("+( type ? "'"+ type +"'" : "" )+")" );
- ok( count == 1, "handler was triggered");
-
- $elem.unbind( type );
-
- ok( $elem.linger( type, fn, opts )[0] == elem, ".linger("+( type ? "'"+ type +"'," : "" )+" fn, opts )" );
- ok( data = $.data( elem, $.event.special.linger.datakey ), "linger data exists" );
-
- ok( data.speed == opts.speed, "'speed' option stored" );
- ok( data.delay == opts.delay, "'delay' option stored" );
- ok( data.persist == opts.persist, "'persist' option stored" );
-
- $elem.remove();
-
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/requirements.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/requirements.js
deleted file mode 100644
index f16c4c7c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.linger/test/requirements.js
+++ /dev/null
@@ -1,23 +0,0 @@
-module("Requirements");
-
-test("jQuery",function(){
-
- expect( 2 );
-
- // make sure the right jquery is included
- ok( window.jQuery, "jQuery exists" );
- ok( parseFloat( jQuery([]).jquery ) >= 1.4, "jQuery version is 1.4 or greater" );
-
-});
-
-test("Installation",function(){
-
- expect( 4 );
-
- // make sure the event interface is complete
- ok( jQuery.event.special.lingerstart, "LINGERSTART special event is defined" );
- ok( jQuery.event.special.linger, "LINGER special event is defined" );
- ok( jQuery.event.special.lingerend, "LINGEREND special event is defined" );
- ok( jQuery([]).linger, "$('...').linger() method is defined" );
-
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.wheel/jquery.event.wheel.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.wheel/jquery.event.wheel.js
deleted file mode 100644
index 0d1380f0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/event.wheel/jquery.event.wheel.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*!
- * jquery.event.wheel - v 1.0.0 - http://jquery-ux.com/
- * Copyright (c) 2010 Michael Helgeson, Three Dub Media
- * Open Source MIT License - http://jquery-ux.com/license
- */
-// Created: 2008-07-01
-// Updated: 2010-01-08
-// REQUIRES: jquery 1.3+
-
-;(function( $ ){ // secure $ jQuery alias
-
-// jquery method
-$.fn.wheel = function( fn ){
- return this[ fn ? "bind" : "trigger" ]( "wheel", fn );
-};
-
-// special event config
-var wheel = $.event.special.wheel = {
- events: "DOMMouseScroll mousewheel" // IE, opera, safari, firefox
- +( $.browser.mozilla && $.browser.version < "1.9" ? " mousemove" : "" ), // firefox 2
- setup: function(){
- $.event.add( this, wheel.events, wheel.handler, {} );
- },
- teardown: function(){
- $.event.remove( this, wheel.events, wheel.handler );
- },
- handler: function( event ){
- switch ( event.type ){
- case "mousewheel": // IE, opera, safari
- event.delta = event.wheelDelta/120;
- if ( window.opera ){
- event.delta *= -1;
- }
- break;
- case "DOMMouseScroll": // firefox
- $.extend( event, event.data ); // fix event properties in FF2
- event.delta = -event.detail/3;
- break;
- case "mousemove": // FF2 has incorrect event positions
- return $.extend( event.data, { // store the correct properties
- clientX: event.clientX, pageX: event.pageX,
- clientY: event.clientY, pageY: event.pageY
- });
- }
- event.type = "wheel"; // hijack the event
- return $.event.handle.call( this, event, event.delta );
- }
-};
-
-})( jQuery ); // confine scope \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/jquery.fire.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/jquery.fire.js
deleted file mode 100644
index fd6f2ed6..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/jquery.fire.js
+++ /dev/null
@@ -1,171 +0,0 @@
-;(function( $, window ){
-
-/*
- http://www.w3.org/TR/DOM-Level-3-Events/#event-type-wheel
-*/
-
-// jQuery method
-$.fn.fire = function( type, opts ){
- opts = opts || {};
- // translate pageX to clientX
- if ( opts.pageX && !opts.clientX )
- opts.clientX = opts.pageX - $( window ).scrollLeft();
- // translate pageY to clientY
- if ( opts.pageY && !opts.clientY )
- opts.clientY = opts.pageY - $( window ).scrollTop();
- // iterate the jquery collection
- return this.each(function(){
- // clone options uniquely for each instance
- opts = $.extend( {}, $.fire.defaults, opts );
- // instanitate a new event
- new $.fire( this, type, opts );
- });
-};
-
-// Constructor
-$.fire = function( element, type, opts ){
- this.element = element;
- this.type = type;
- this.event = this.create( opts );
- this.dispatch();
-};
-
-// Defaults
-$.fire.defaults = {
- bubbles: true,
- cancelable: true,
- view: window,
- detail: 0,
- screenX: 0,
- screenY: 0,
- clientX: 0,
- clientY: 0,
- ctrlKey: false,
- altKey: false,
- shiftKey: false,
- metaKey: false,
- button: 0
-};
-
-// Methods
-$.fire.prototype = {
- create: function( opts ){
- switch ( this.type ){
- case "mousemove":
- opts.cancelable = false;
- case "mousedown":
- case "mouseup":
- case "mouseover":
- case "mouseout":
- case "click":
- case "dblclick":
- case "touchstart":
- case "touchmove":
- case "touchend":
- return this.mouse( opts );
- case "keyup":
- case "keypress":
- case "keydown":
- return this.key( opts );
- default:
- return this.event( opts );
- }
- },
- event: function( opts ){
- var event;
- if ( document.createEvent ){
- event = document.createEvent("HTMLEvents");
- event.initEvent(
- this.type,
- opts.bubbles,
- opts.cancelable
- );
- $.extend( event, {
- view: opts.view,
- detail: opts.detail,
- screenX: opts.screenX,
- screenY: opts.screenY,
- clientX: opts.clientX,
- clientY: opts.clientY,
- ctrlKey: opts.ctrlKey,
- altKey: opts.altKey,
- shiftKey: opts.shiftKey,
- metaKey: opts.metaKey,
- keyCode: opts.keyCode,
- charCode: opts.charCode,
- button: opts.button
- });
- }
- else if ( document.createEventObject ) {
- event = $.extend( document.createEventObject(), opts );
- }
- return event;
- },
- mouse: function( opts ){
- var event;
- if ( document.createEvent ){
- event = document.createEvent("MouseEvents");
- event.initMouseEvent(
- this.type,
- opts.bubbles,
- opts.cancelable,
- opts.view,
- opts.detail,
- opts.screenX,
- opts.screenY,
- opts.clientX,
- opts.clientY,
- opts.ctrlKey,
- opts.altKey,
- opts.shiftKey,
- opts.metaKey,
- opts.button,
- $( opts.relatedTarget )[0] || document.body.parentNode
- );
- }
- else if ( document.createEventObject ) {
- event = this.event();
- event.button = { 0:1, 1:4, 2:2 }[ event.button ] || event.button;
- }
- return event;
- },
- key: function( opts ){
- var event;
- if ( document.createEvent ) {
- try {
- event = document.createEvent("KeyEvents");
- event.initKeyEvent(
- this.type,
- opts.bubbles,
- opts.cancelable,
- opts.view,
- opts.ctrlKey,
- opts.altKey,
- opts.shiftKey,
- opts.metaKey,
- opts.keyCode,
- opts.charCode
- );
- }
- catch ( err ){
- event = this.event( opts );
- }
- }
- else if ( document.createEventObject ){
- event = this.event( opts );
- }
- if ( $.browser.msie || $.browser.opera ){
- event.keyCode = opts.charCode > 0 ? opts.charCode : opts.keyCode;
- event.charCode = undefined;
- }
- return event;
- },
- dispatch: function(){
- if ( this.element.dispatchEvent )
- this.element.dispatchEvent( this.event );
- else if ( this.element.fireEvent )
- this.element.fireEvent( 'on'+this.type, this.event );
- }
-};
-
-})( jQuery, window ); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/custom.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/custom.js
deleted file mode 100644
index 8e9fbce4..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/custom.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module("Custom Events");
-
-if ( !document.createEvent ){
- test("Custom Event Simulation Not Supported",function(){
- ok( true, 'This browser does not support "document.createEvent" and cannot simulate custom events.');
- });
-}
-else {
-
- // test each of the following events
- $.each([
- "snap","crackle","pop"
- ],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 33 );
-
- // custom event properties
- var props = {
- pageX: Math.round( Math.random() * 500 ),
- pageY: Math.round( Math.random() * 500 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false,
- button: Math.round( Math.random() * 2 )
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
- equals( ev.pageX, props.pageX, "event.pageX" );
- equals( ev.pageY, props.pageY, "event.pageY" );
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.button, props.button, "event.button" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
- });
-
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/form.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/form.js
deleted file mode 100644
index 973e587c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/form.js
+++ /dev/null
@@ -1,50 +0,0 @@
-module("Form Events");
-
-// test each of the following events
-$.each([
- "focus","blur","change",
- "submit","select","reset"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 0 );
-
- // custom event properties
- var props = {
- //keyCode: Math.round( Math.random() * 256 ),
- //charCode: Math.round( Math.random() * 256 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
-
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/index.html b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/index.html
deleted file mode 100644
index 0b3e7e2d..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/index.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link href="../../img/favicon.ico" rel="shortcut icon" />
- <link href="../../jquery/qunit.css" rel="stylesheet" />
- <script src="../../jquery/jquery.js"></script>
- <script src="../../jquery/qunit.js"></script>
- <script src="../../fire/jquery.fire.js"></script>
- <script src="./requirements.js"></script>
- <script src="./mouse.js"></script>
- <script src="./touch.js"></script>
- <script src="./key.js"></script>
- <script src="./form.js"></script>
- <script src="./object.js"></script>
- <script src="./mutation.js"></script>
- <script src="./custom.js"></script>
- <title>ThreeDubMedia &middot; jQuery.fire.js</title>
- </head>
- <body>
- <h1 id="qunit-header">jQuery.fire.js Unit Tests</h1>
- <h2 id="qunit-banner"></h2>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- </body>
-</html> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/key.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/key.js
deleted file mode 100644
index 3ff0b27f..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/key.js
+++ /dev/null
@@ -1,52 +0,0 @@
-module("Key Events");
-
-// test each of the following events
-$.each([
- "keydown","keyup","keypress"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( i < 2 ? 27 : 30 );
-
- // custom event properties
- var props = {
- keyCode: Math.round( Math.random() * 256 ),
- charCode: Math.round( Math.random() * 256 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
- equals( ev.keyCode, props.keyCode, "event.keyCode" );
- if ( type == "keypress" ){
- equals( ev.charCode, props.charCode, "event.charCode" );
- }
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mouse.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mouse.js
deleted file mode 100644
index 8e25d785..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mouse.js
+++ /dev/null
@@ -1,54 +0,0 @@
-module("Mouse Events");
-
-// test each of the following events
-$.each([
- "click","dblclick",
- "mouseover","mouseout",
- "mousedown","mouseup","mousemove"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 33 );
-
- // custom event properties
- var props = {
- pageX: Math.round( Math.random() * 500 ),
- pageY: Math.round( Math.random() * 500 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false,
- button: Math.round( Math.random() * 2 )
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
- equals( ev.pageX, props.pageX, "event.pageX" );
- equals( ev.pageY, props.pageY, "event.pageY" );
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.button, props.button, "event.button" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mutation.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mutation.js
deleted file mode 100644
index 340f6418..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/mutation.js
+++ /dev/null
@@ -1,52 +0,0 @@
-module("Mutation Events");
-
-// test each of the following events
-$.each([
- "DOMSubtreeModified","DOMNodeInserted",
- "DOMNodeRemoved","DOMNodeRemovedFromDocument",
- "DOMNodeInsertedIntoDocument","DOMAttrModified",
- "DOMCharacterDataModified"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 0 );
-
- // custom event properties
- var props = {
- //keyCode: Math.round( Math.random() * 256 ),
- //charCode: Math.round( Math.random() * 256 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
-
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/object.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/object.js
deleted file mode 100644
index 27193dc0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/object.js
+++ /dev/null
@@ -1,50 +0,0 @@
-module("Object/Frame Events");
-
-// test each of the following events
-$.each([
- "abort","scroll","resize",
- "error","load","unload"
-],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 0 );
-
- // custom event properties
- var props = {
- //keyCode: Math.round( Math.random() * 256 ),
- //charCode: Math.round( Math.random() * 256 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
-
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/requirements.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/requirements.js
deleted file mode 100644
index fcc369e8..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/requirements.js
+++ /dev/null
@@ -1,26 +0,0 @@
-module("Requirements");
-
-test("jQuery",function(){
-
- expect( 2 );
-
- // make sure the right jquery is included
- ok( window.jQuery, "jQuery exists" );
- ok( parseFloat( jQuery([]).jquery ) >= 1.4, "jQuery version is 1.4 or greater" );
-
-});
-
-test("Installation",function(){
-
- expect( 8 );
-
- // make sure the plugin interface is complete
- ok( jQuery.fn.fire, "FIRE method is defined" );
- ok( jQuery.fire, "CONSTRUCTOR is defined" );
- ok( jQuery.fire.defaults, "DEFAULTS are defined" );
- ok( jQuery.fire.prototype.create, "CREATE method is defined" );
- ok( jQuery.fire.prototype.event, "EVENT method is defined" );
- ok( jQuery.fire.prototype.mouse, "MOUSE method is defined" );
- ok( jQuery.fire.prototype.key, "KEY method is defined" );
- ok( jQuery.fire.prototype.dispatch, "DISPATCH method is defined" );
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/touch.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/touch.js
deleted file mode 100644
index aa05bb67..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/fire/test/touch.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module("Touch Events");
-
-if ( !document.createEvent ){
- test("Touch Simulation Not Supported",function(){
- ok( true, 'This browser does not support "document.createEvent" and cannot simulate touch events.');
- });
-}
-else {
-
- // test each of the following events
- $.each([
- "touchstart","touchmove","touchend"
- ],function( i, type ){
- // test each event type
- test( '"'+ type +'"', function(){
- expect( 33 );
-
- // custom event properties
- var props = {
- pageX: Math.round( Math.random() * 500 ),
- pageY: Math.round( Math.random() * 500 ),
- ctrlKey: Math.round( Math.random() ) ? true : false,
- altKey: Math.round( Math.random() ) ? true : false,
- shiftKey: Math.round( Math.random() ) ? true : false,
- button: Math.round( Math.random() * 2 )
- },
- // new test element
- $div = $('<div/>').appendTo( document.body );
- // test the document too for bubbling
- $div.add( document ).bind( type, function( ev ){
-
- equals( ev.currentTarget, this, "event.currentTarget");
- equals( ev.target, $div[0], "event.target" );
- equals( ev.type, type, "event.type" );
- equals( ev.pageX, props.pageX, "event.pageX" );
- equals( ev.pageY, props.pageY, "event.pageY" );
- equals( ev.ctrlKey, props.ctrlKey, "event.ctrlKey" );
- equals( ev.altKey, props.altKey, "event.altKey" );
- equals( ev.shiftKey, props.shiftKey, "event.shiftKey" );
- equals( ev.metaKey, props.metaKey, "event.metaKey" );
- equals( ev.button, props.button, "event.button" );
- equals( ev.bubbles, props.bubbles, "event.bubbles" );
- });
-
- // make sure that metaKey and ctrlKey are equal
- props.metaKey = props.ctrlKey;
- // fire the event with bubbling
- props.bubbles = true;
- $div.fire( type, props );
-
- // fire the event without bubbling
- props.bubbles = false;
- $div.fire( type, props );
-
- // cleanup
- $( document ).unbind( type );
- $div.remove();
- });
- });
-
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.4.2.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.4.2.js
deleted file mode 100644
index 94fd5a79..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.4.2.js
+++ /dev/null
@@ -1,6240 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.4.2
- * http://jquery.com/
- *
- * Copyright 2010, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2010, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Sat Feb 13 22:33:48 2010 -0500
- */
-(function( window, undefined ) {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context );
- },
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$,
-
- // Use the correct document accordingly with window argument (sandbox)
- document = window.document,
-
- // A central reference to the root jQuery(document)
- rootjQuery,
-
- // A simple way to check for HTML strings or ID strings
- // (both of which we optimize for)
- quickExpr = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,
-
- // Is it a simple selector
- isSimple = /^.[^:#\[\.,]*$/,
-
- // Check if a string has a non-whitespace character in it
- rnotwhite = /\S/,
-
- // Used for trimming whitespace
- rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
-
- // Match a standalone tag
- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
- // Keep a UserAgent string for use with jQuery.browser
- userAgent = navigator.userAgent,
-
- // For matching the engine and version of the browser
- browserMatch,
-
- // Has the ready events already been bound?
- readyBound = false,
-
- // The functions to execute on DOM ready
- readyList = [],
-
- // The ready event handler
- DOMContentLoaded,
-
- // Save a reference to some core methods
- toString = Object.prototype.toString,
- hasOwnProperty = Object.prototype.hasOwnProperty,
- push = Array.prototype.push,
- slice = Array.prototype.slice,
- indexOf = Array.prototype.indexOf;
-
-jQuery.fn = jQuery.prototype = {
- init: function( selector, context ) {
- var match, elem, ret, doc;
-
- // Handle $(""), $(null), or $(undefined)
- if ( !selector ) {
- return this;
- }
-
- // Handle $(DOMElement)
- if ( selector.nodeType ) {
- this.context = this[0] = selector;
- this.length = 1;
- return this;
- }
-
- // The body element only exists once, optimize finding it
- if ( selector === "body" && !context ) {
- this.context = document;
- this[0] = document.body;
- this.selector = "body";
- this.length = 1;
- return this;
- }
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- // Are we dealing with HTML string or an ID?
- match = quickExpr.exec( selector );
-
- // Verify a match, and that no context was specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] ) {
- doc = (context ? context.ownerDocument || context : document);
-
- // If a single string is passed in and it's a single tag
- // just do a createElement and skip the rest
- ret = rsingleTag.exec( selector );
-
- if ( ret ) {
- if ( jQuery.isPlainObject( context ) ) {
- selector = [ document.createElement( ret[1] ) ];
- jQuery.fn.attr.call( selector, context, true );
-
- } else {
- selector = [ doc.createElement( ret[1] ) ];
- }
-
- } else {
- ret = buildFragment( [ match[1] ], [ doc ] );
- selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes;
- }
-
- return jQuery.merge( this, selector );
-
- // HANDLE: $("#id")
- } else {
- elem = document.getElementById( match[2] );
-
- if ( elem ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[2] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[0] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $("TAG")
- } else if ( !context && /^\w+$/.test( selector ) ) {
- this.selector = selector;
- this.context = document;
- selector = document.getElementsByTagName( selector );
- return jQuery.merge( this, selector );
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return (context || rootjQuery).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return jQuery( context ).find( selector );
- }
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return rootjQuery.ready( selector );
- }
-
- if (selector.selector !== undefined) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- },
-
- // Start with an empty selector
- selector: "",
-
- // The current version of jQuery being used
- jquery: "1.4.2",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
- toArray: function() {
- return slice.call( this, 0 );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num == null ?
-
- // Return a 'clean' array
- this.toArray() :
-
- // Return just the object
- ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems, name, selector ) {
- // Build a new jQuery matched element set
- var ret = jQuery();
-
- if ( jQuery.isArray( elems ) ) {
- push.apply( ret, elems );
-
- } else {
- jQuery.merge( ret, elems );
- }
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- ret.context = this.context;
-
- if ( name === "find" ) {
- ret.selector = this.selector + (this.selector ? " " : "") + selector;
- } else if ( name ) {
- ret.selector = this.selector + "." + name + "(" + selector + ")";
- }
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- ready: function( fn ) {
- // Attach the listeners
- jQuery.bindReady();
-
- // If the DOM is already ready
- if ( jQuery.isReady ) {
- // Execute the function immediately
- fn.call( document, jQuery );
-
- // Otherwise, remember the function for later
- } else if ( readyList ) {
- // Add the function to the wait list
- readyList.push( fn );
- }
-
- return this;
- },
-
- eq: function( i ) {
- return i === -1 ?
- this.slice( i ) :
- this.slice( i, +i + 1 );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ),
- "slice", slice.call(arguments).join(",") );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function( elem, i ) {
- return callback.call( elem, i, elem );
- }));
- },
-
- end: function() {
- return this.prevObject || jQuery(null);
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: [].sort,
- splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
- // copy reference to target object
- var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( length === i ) {
- target = this;
- --i;
- }
-
- for ( ; i < length; i++ ) {
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null ) {
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging object literal values or arrays
- if ( deep && copy && ( jQuery.isPlainObject(copy) || jQuery.isArray(copy) ) ) {
- var clone = src && ( jQuery.isPlainObject(src) || jQuery.isArray(src) ) ? src
- : jQuery.isArray(copy) ? [] : {};
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend({
- noConflict: function( deep ) {
- window.$ = _$;
-
- if ( deep ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
- },
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // Handle when the DOM is ready
- ready: function() {
- // Make sure that the DOM is not already loaded
- if ( !jQuery.isReady ) {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( !document.body ) {
- return setTimeout( jQuery.ready, 13 );
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If there are functions bound, to execute
- if ( readyList ) {
- // Execute all of them
- var fn, i = 0;
- while ( (fn = readyList[ i++ ]) ) {
- fn.call( document, jQuery );
- }
-
- // Reset the list of functions
- readyList = null;
- }
-
- // Trigger any bound ready events
- if ( jQuery.fn.triggerHandler ) {
- jQuery( document ).triggerHandler( "ready" );
- }
- }
- },
-
- bindReady: function() {
- if ( readyBound ) {
- return;
- }
-
- readyBound = true;
-
- // Catch cases where $(document).ready() is called after the
- // browser event has already occurred.
- if ( document.readyState === "complete" ) {
- return jQuery.ready();
- }
-
- // Mozilla, Opera and webkit nightlies currently support this event
- if ( document.addEventListener ) {
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", jQuery.ready, false );
-
- // If IE event model is used
- } else if ( document.attachEvent ) {
- // ensure firing before onload,
- // maybe late but safe also for iframes
- document.attachEvent("onreadystatechange", DOMContentLoaded);
-
- // A fallback to window.onload, that will always work
- window.attachEvent( "onload", jQuery.ready );
-
- // If IE and not a frame
- // continually check to see if the document is ready
- var toplevel = false;
-
- try {
- toplevel = window.frameElement == null;
- } catch(e) {}
-
- if ( document.documentElement.doScroll && toplevel ) {
- doScrollCheck();
- }
- }
- },
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return toString.call(obj) === "[object Function]";
- },
-
- isArray: function( obj ) {
- return toString.call(obj) === "[object Array]";
- },
-
- isPlainObject: function( obj ) {
- // Must be an Object.
- // Because of IE, we also have to check the presence of the constructor property.
- // Make sure that DOM nodes and window objects don't pass through, as well
- if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) {
- return false;
- }
-
- // Not own constructor property must be Object
- if ( obj.constructor
- && !hasOwnProperty.call(obj, "constructor")
- && !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) {
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
-
- var key;
- for ( key in obj ) {}
-
- return key === undefined || hasOwnProperty.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- for ( var name in obj ) {
- return false;
- }
- return true;
- },
-
- error: function( msg ) {
- throw msg;
- },
-
- parseJSON: function( data ) {
- if ( typeof data !== "string" || !data ) {
- return null;
- }
-
- // Make sure leading/trailing whitespace is removed (IE can't handle it)
- data = jQuery.trim( data );
-
- // Make sure the incoming data is actual JSON
- // Logic borrowed from http://json.org/json2.js
- if ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@")
- .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]")
- .replace(/(?:^|:|,)(?:\s*\[)+/g, "")) ) {
-
- // Try to use the native JSON parser first
- return window.JSON && window.JSON.parse ?
- window.JSON.parse( data ) :
- (new Function("return " + data))();
-
- } else {
- jQuery.error( "Invalid JSON: " + data );
- }
- },
-
- noop: function() {},
-
- // Evalulates a script in a global context
- globalEval: function( data ) {
- if ( data && rnotwhite.test(data) ) {
- // Inspired by code by Andrea Giammarchi
- // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
- var head = document.getElementsByTagName("head")[0] || document.documentElement,
- script = document.createElement("script");
-
- script.type = "text/javascript";
-
- if ( jQuery.support.scriptEval ) {
- script.appendChild( document.createTextNode( data ) );
- } else {
- script.text = data;
- }
-
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709).
- head.insertBefore( script, head.firstChild );
- head.removeChild( script );
- }
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
- },
-
- // args is for internal usage only
- each: function( object, callback, args ) {
- var name, i = 0,
- length = object.length,
- isObj = length === undefined || jQuery.isFunction(object);
-
- if ( args ) {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.apply( object[ name ], args ) === false ) {
- break;
- }
- }
- } else {
- for ( ; i < length; ) {
- if ( callback.apply( object[ i++ ], args ) === false ) {
- break;
- }
- }
- }
-
- // A special, fast, case for the most common use of each
- } else {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
- break;
- }
- }
- } else {
- for ( var value = object[0];
- i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
- }
- }
-
- return object;
- },
-
- trim: function( text ) {
- return (text || "").replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( array, results ) {
- var ret = results || [];
-
- if ( array != null ) {
- // The window, strings (and functions) also have 'length'
- // The extra typeof function check is to prevent crashes
- // in Safari 2 (See: #3039)
- if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) {
- push.call( ret, array );
- } else {
- jQuery.merge( ret, array );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, array ) {
- if ( array.indexOf ) {
- return array.indexOf( elem );
- }
-
- for ( var i = 0, length = array.length; i < length; i++ ) {
- if ( array[ i ] === elem ) {
- return i;
- }
- }
-
- return -1;
- },
-
- merge: function( first, second ) {
- var i = first.length, j = 0;
-
- if ( typeof second.length === "number" ) {
- for ( var l = second.length; j < l; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- } else {
- while ( second[j] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, inv ) {
- var ret = [];
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- if ( !inv !== !callback( elems[ i ], i ) ) {
- ret.push( elems[ i ] );
- }
- }
-
- return ret;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var ret = [], value;
-
- // Go through the array, translating each of the items to their
- // new value (or values).
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
-
- return ret.concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- proxy: function( fn, proxy, thisObject ) {
- if ( arguments.length === 2 ) {
- if ( typeof proxy === "string" ) {
- thisObject = fn;
- fn = thisObject[ proxy ];
- proxy = undefined;
-
- } else if ( proxy && !jQuery.isFunction( proxy ) ) {
- thisObject = proxy;
- proxy = undefined;
- }
- }
-
- if ( !proxy && fn ) {
- proxy = function() {
- return fn.apply( thisObject || this, arguments );
- };
- }
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- if ( fn ) {
- proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
- }
-
- // So proxy can be declared as an argument
- return proxy;
- },
-
- // Use of jQuery.browser is frowned upon.
- // More details: http://docs.jquery.com/Utilities/jQuery.browser
- uaMatch: function( ua ) {
- ua = ua.toLowerCase();
-
- var match = /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
- /(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) ||
- /(msie) ([\w.]+)/.exec( ua ) ||
- !/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) ||
- [];
-
- return { browser: match[1] || "", version: match[2] || "0" };
- },
-
- browser: {}
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
- jQuery.browser[ browserMatch.browser ] = true;
- jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
- jQuery.browser.safari = true;
-}
-
-if ( indexOf ) {
- jQuery.inArray = function( elem, array ) {
- return indexOf.call( array, elem );
- };
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
- DOMContentLoaded = function() {
- document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
- jQuery.ready();
- };
-
-} else if ( document.attachEvent ) {
- DOMContentLoaded = function() {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( document.readyState === "complete" ) {
- document.detachEvent( "onreadystatechange", DOMContentLoaded );
- jQuery.ready();
- }
- };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
- if ( jQuery.isReady ) {
- return;
- }
-
- try {
- // If IE is used, use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- document.documentElement.doScroll("left");
- } catch( error ) {
- setTimeout( doScrollCheck, 1 );
- return;
- }
-
- // and execute any waiting functions
- jQuery.ready();
-}
-
-function evalScript( i, elem ) {
- if ( elem.src ) {
- jQuery.ajax({
- url: elem.src,
- async: false,
- dataType: "script"
- });
- } else {
- jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
-}
-
-// Mutifunctional method to get and set values to a collection
-// The value/s can be optionally by executed if its a function
-function access( elems, key, value, exec, fn, pass ) {
- var length = elems.length;
-
- // Setting many attributes
- if ( typeof key === "object" ) {
- for ( var k in key ) {
- access( elems, k, key[k], exec, fn, value );
- }
- return elems;
- }
-
- // Setting one attribute
- if ( value !== undefined ) {
- // Optionally, function values get executed if exec is true
- exec = !pass && exec && jQuery.isFunction(value);
-
- for ( var i = 0; i < length; i++ ) {
- fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
- }
-
- return elems;
- }
-
- // Getting an attribute
- return length ? fn( elems[0], key ) : undefined;
-}
-
-function now() {
- return (new Date).getTime();
-}
-(function() {
-
- jQuery.support = {};
-
- var root = document.documentElement,
- script = document.createElement("script"),
- div = document.createElement("div"),
- id = "script" + now();
-
- div.style.display = "none";
- div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
- var all = div.getElementsByTagName("*"),
- a = div.getElementsByTagName("a")[0];
-
- // Can't get basic test support
- if ( !all || !all.length || !a ) {
- return;
- }
-
- jQuery.support = {
- // IE strips leading whitespace when .innerHTML is used
- leadingWhitespace: div.firstChild.nodeType === 3,
-
- // Make sure that tbody elements aren't automatically inserted
- // IE will insert them into empty tables
- tbody: !div.getElementsByTagName("tbody").length,
-
- // Make sure that link elements get serialized correctly by innerHTML
- // This requires a wrapper element in IE
- htmlSerialize: !!div.getElementsByTagName("link").length,
-
- // Get the style information from getAttribute
- // (IE uses .cssText insted)
- style: /red/.test( a.getAttribute("style") ),
-
- // Make sure that URLs aren't manipulated
- // (IE normalizes it by default)
- hrefNormalized: a.getAttribute("href") === "/a",
-
- // Make sure that element opacity exists
- // (IE uses filter instead)
- // Use a regex to work around a WebKit issue. See #5145
- opacity: /^0.55$/.test( a.style.opacity ),
-
- // Verify style float existence
- // (IE uses styleFloat instead of cssFloat)
- cssFloat: !!a.style.cssFloat,
-
- // Make sure that if no value is specified for a checkbox
- // that it defaults to "on".
- // (WebKit defaults to "" instead)
- checkOn: div.getElementsByTagName("input")[0].value === "on",
-
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected,
-
- parentNode: div.removeChild( div.appendChild( document.createElement("div") ) ).parentNode === null,
-
- // Will be defined later
- deleteExpando: true,
- checkClone: false,
- scriptEval: false,
- noCloneEvent: true,
- boxModel: null
- };
-
- script.type = "text/javascript";
- try {
- script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
- } catch(e) {}
-
- root.insertBefore( script, root.firstChild );
-
- // Make sure that the execution of code works by injecting a script
- // tag with appendChild/createTextNode
- // (IE doesn't support this, fails, and uses .text instead)
- if ( window[ id ] ) {
- jQuery.support.scriptEval = true;
- delete window[ id ];
- }
-
- // Test to see if it's possible to delete an expando from an element
- // Fails in Internet Explorer
- try {
- delete script.test;
-
- } catch(e) {
- jQuery.support.deleteExpando = false;
- }
-
- root.removeChild( script );
-
- if ( div.attachEvent && div.fireEvent ) {
- div.attachEvent("onclick", function click() {
- // Cloning a node shouldn't copy over any
- // bound event handlers (IE does this)
- jQuery.support.noCloneEvent = false;
- div.detachEvent("onclick", click);
- });
- div.cloneNode(true).fireEvent("onclick");
- }
-
- div = document.createElement("div");
- div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
-
- var fragment = document.createDocumentFragment();
- fragment.appendChild( div.firstChild );
-
- // WebKit doesn't clone checked state correctly in fragments
- jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
-
- // Figure out if the W3C box model works as expected
- // document.body must exist before we can do this
- jQuery(function() {
- var div = document.createElement("div");
- div.style.width = div.style.paddingLeft = "1px";
-
- document.body.appendChild( div );
- jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
- document.body.removeChild( div ).style.display = 'none';
-
- div = null;
- });
-
- // Technique from Juriy Zaytsev
- // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
- var eventSupported = function( eventName ) {
- var el = document.createElement("div");
- eventName = "on" + eventName;
-
- var isSupported = (eventName in el);
- if ( !isSupported ) {
- el.setAttribute(eventName, "return;");
- isSupported = typeof el[eventName] === "function";
- }
- el = null;
-
- return isSupported;
- };
-
- jQuery.support.submitBubbles = eventSupported("submit");
- jQuery.support.changeBubbles = eventSupported("change");
-
- // release memory in IE
- root = script = div = all = a = null;
-})();
-
-jQuery.props = {
- "for": "htmlFor",
- "class": "className",
- readonly: "readOnly",
- maxlength: "maxLength",
- cellspacing: "cellSpacing",
- rowspan: "rowSpan",
- colspan: "colSpan",
- tabindex: "tabIndex",
- usemap: "useMap",
- frameborder: "frameBorder"
-};
-var expando = "jQuery" + now(), uuid = 0, windowData = {};
-
-jQuery.extend({
- cache: {},
-
- expando:expando,
-
- // The following elements throw uncatchable exceptions if you
- // attempt to add expando properties to them.
- noData: {
- "embed": true,
- "object": true,
- "applet": true
- },
-
- data: function( elem, name, data ) {
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
- return;
- }
-
- elem = elem == window ?
- windowData :
- elem;
-
- var id = elem[ expando ], cache = jQuery.cache, thisCache;
-
- if ( !id && typeof name === "string" && data === undefined ) {
- return null;
- }
-
- // Compute a unique ID for the element
- if ( !id ) {
- id = ++uuid;
- }
-
- // Avoid generating a new cache unless none exists and we
- // want to manipulate it.
- if ( typeof name === "object" ) {
- elem[ expando ] = id;
- thisCache = cache[ id ] = jQuery.extend(true, {}, name);
-
- } else if ( !cache[ id ] ) {
- elem[ expando ] = id;
- cache[ id ] = {};
- }
-
- thisCache = cache[ id ];
-
- // Prevent overriding the named cache with undefined values
- if ( data !== undefined ) {
- thisCache[ name ] = data;
- }
-
- return typeof name === "string" ? thisCache[ name ] : thisCache;
- },
-
- removeData: function( elem, name ) {
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
- return;
- }
-
- elem = elem == window ?
- windowData :
- elem;
-
- var id = elem[ expando ], cache = jQuery.cache, thisCache = cache[ id ];
-
- // If we want to remove a specific section of the element's data
- if ( name ) {
- if ( thisCache ) {
- // Remove the section of cache data
- delete thisCache[ name ];
-
- // If we've removed all the data, remove the element's cache
- if ( jQuery.isEmptyObject(thisCache) ) {
- jQuery.removeData( elem );
- }
- }
-
- // Otherwise, we want to remove all of the element's data
- } else {
- if ( jQuery.support.deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
- }
-
- // Completely remove the data cache
- delete cache[ id ];
- }
- }
-});
-
-jQuery.fn.extend({
- data: function( key, value ) {
- if ( typeof key === "undefined" && this.length ) {
- return jQuery.data( this[0] );
-
- } else if ( typeof key === "object" ) {
- return this.each(function() {
- jQuery.data( this, key );
- });
- }
-
- var parts = key.split(".");
- parts[1] = parts[1] ? "." + parts[1] : "";
-
- if ( value === undefined ) {
- var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
- if ( data === undefined && this.length ) {
- data = jQuery.data( this[0], key );
- }
- return data === undefined && parts[1] ?
- this.data( parts[0] ) :
- data;
- } else {
- return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() {
- jQuery.data( this, key, value );
- });
- }
- },
-
- removeData: function( key ) {
- return this.each(function() {
- jQuery.removeData( this, key );
- });
- }
-});
-jQuery.extend({
- queue: function( elem, type, data ) {
- if ( !elem ) {
- return;
- }
-
- type = (type || "fx") + "queue";
- var q = jQuery.data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( !data ) {
- return q || [];
- }
-
- if ( !q || jQuery.isArray(data) ) {
- q = jQuery.data( elem, type, jQuery.makeArray(data) );
-
- } else {
- q.push( data );
- }
-
- return q;
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ), fn = queue.shift();
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- }
-
- if ( fn ) {
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift("inprogress");
- }
-
- fn.call(elem, function() {
- jQuery.dequeue(elem, type);
- });
- }
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- }
-
- if ( data === undefined ) {
- return jQuery.queue( this[0], type );
- }
- return this.each(function( i, elem ) {
- var queue = jQuery.queue( this, type, data );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
-
- // Based off of the plugin by Clint Helfers, with permission.
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
- delay: function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
- type = type || "fx";
-
- return this.queue( type, function() {
- var elem = this;
- setTimeout(function() {
- jQuery.dequeue( elem, type );
- }, time );
- });
- },
-
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- }
-});
-var rclass = /[\n\t]/g,
- rspace = /\s+/,
- rreturn = /\r/g,
- rspecialurl = /href|src|style/,
- rtype = /(button|input)/i,
- rfocusable = /(button|input|object|select|textarea)/i,
- rclickable = /^(a|area)$/i,
- rradiocheck = /radio|checkbox/;
-
-jQuery.fn.extend({
- attr: function( name, value ) {
- return access( this, name, value, true, jQuery.attr );
- },
-
- removeAttr: function( name, fn ) {
- return this.each(function(){
- jQuery.attr( this, name, "" );
- if ( this.nodeType === 1 ) {
- this.removeAttribute( name );
- }
- });
- },
-
- addClass: function( value ) {
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.addClass( value.call(this, i, self.attr("class")) );
- });
- }
-
- if ( value && typeof value === "string" ) {
- var classNames = (value || "").split( rspace );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var elem = this[i];
-
- if ( elem.nodeType === 1 ) {
- if ( !elem.className ) {
- elem.className = value;
-
- } else {
- var className = " " + elem.className + " ", setClass = elem.className;
- for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
- if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
- setClass += " " + classNames[c];
- }
- }
- elem.className = jQuery.trim( setClass );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.removeClass( value.call(this, i, self.attr("class")) );
- });
- }
-
- if ( (value && typeof value === "string") || value === undefined ) {
- var classNames = (value || "").split(rspace);
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var elem = this[i];
-
- if ( elem.nodeType === 1 && elem.className ) {
- if ( value ) {
- var className = (" " + elem.className + " ").replace(rclass, " ");
- for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
- className = className.replace(" " + classNames[c] + " ", " ");
- }
- elem.className = jQuery.trim( className );
-
- } else {
- elem.className = "";
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value, isBool = typeof stateVal === "boolean";
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
- });
- }
-
- return this.each(function() {
- if ( type === "string" ) {
- // toggle individual class names
- var className, i = 0, self = jQuery(this),
- state = stateVal,
- classNames = value.split( rspace );
-
- while ( (className = classNames[ i++ ]) ) {
- // check each className given, space seperated list
- state = isBool ? state : !self.hasClass( className );
- self[ state ? "addClass" : "removeClass" ]( className );
- }
-
- } else if ( type === "undefined" || type === "boolean" ) {
- if ( this.className ) {
- // store className if set
- jQuery.data( this, "__className__", this.className );
- }
-
- // toggle whole className
- this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || "";
- }
- });
- },
-
- hasClass: function( selector ) {
- var className = " " + selector + " ";
- for ( var i = 0, l = this.length; i < l; i++ ) {
- if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
- return true;
- }
- }
-
- return false;
- },
-
- val: function( value ) {
- if ( value === undefined ) {
- var elem = this[0];
-
- if ( elem ) {
- if ( jQuery.nodeName( elem, "option" ) ) {
- return (elem.attributes.value || {}).specified ? elem.value : elem.text;
- }
-
- // We need to handle select boxes special
- if ( jQuery.nodeName( elem, "select" ) ) {
- var index = elem.selectedIndex,
- values = [],
- options = elem.options,
- one = elem.type === "select-one";
-
- // Nothing was selected
- if ( index < 0 ) {
- return null;
- }
-
- // Loop through all the selected options
- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
- var option = options[ i ];
-
- if ( option.selected ) {
- // Get the specifc value for the option
- value = jQuery(option).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- }
-
- // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
- if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
- return elem.getAttribute("value") === null ? "on" : elem.value;
- }
-
-
- // Everything else, we just grab the value
- return (elem.value || "").replace(rreturn, "");
-
- }
-
- return undefined;
- }
-
- var isFunction = jQuery.isFunction(value);
-
- return this.each(function(i) {
- var self = jQuery(this), val = value;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call(this, i, self.val());
- }
-
- // Typecast each time if the value is a Function and the appended
- // value is therefore different each time.
- if ( typeof val === "number" ) {
- val += "";
- }
-
- if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
- this.checked = jQuery.inArray( self.val(), val ) >= 0;
-
- } else if ( jQuery.nodeName( this, "select" ) ) {
- var values = jQuery.makeArray(val);
-
- jQuery( "option", this ).each(function() {
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
- });
-
- if ( !values.length ) {
- this.selectedIndex = -1;
- }
-
- } else {
- this.value = val;
- }
- });
- }
-});
-
-jQuery.extend({
- attrFn: {
- val: true,
- css: true,
- html: true,
- text: true,
- data: true,
- width: true,
- height: true,
- offset: true
- },
-
- attr: function( elem, name, value, pass ) {
- // don't set attributes on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
- return undefined;
- }
-
- if ( pass && name in jQuery.attrFn ) {
- return jQuery(elem)[name](value);
- }
-
- var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),
- // Whether we are setting (or getting)
- set = value !== undefined;
-
- // Try to normalize/fix the name
- name = notxml && jQuery.props[ name ] || name;
-
- // Only do all the following if this is a node (faster for style)
- if ( elem.nodeType === 1 ) {
- // These attributes require special treatment
- var special = rspecialurl.test( name );
-
- // Safari mis-reports the default selected property of an option
- // Accessing the parent's selectedIndex property fixes it
- if ( name === "selected" && !jQuery.support.optSelected ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
-
- // If applicable, access the attribute via the DOM 0 way
- if ( name in elem && notxml && !special ) {
- if ( set ) {
- // We can't allow the type property to be changed (since it causes problems in IE)
- if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
- jQuery.error( "type property can't be changed" );
- }
-
- elem[ name ] = value;
- }
-
- // browsers index elements by id/name on forms, give priority to attributes.
- if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
- return elem.getAttributeNode( name ).nodeValue;
- }
-
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- if ( name === "tabIndex" ) {
- var attributeNode = elem.getAttributeNode( "tabIndex" );
-
- return attributeNode && attributeNode.specified ?
- attributeNode.value :
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- undefined;
- }
-
- return elem[ name ];
- }
-
- if ( !jQuery.support.style && notxml && name === "style" ) {
- if ( set ) {
- elem.style.cssText = "" + value;
- }
-
- return elem.style.cssText;
- }
-
- if ( set ) {
- // convert the value to a string (all browsers do this but IE) see #1070
- elem.setAttribute( name, "" + value );
- }
-
- var attr = !jQuery.support.hrefNormalized && notxml && special ?
- // Some attributes require a special call on IE
- elem.getAttribute( name, 2 ) :
- elem.getAttribute( name );
-
- // Non-existent attributes return null, we normalize to undefined
- return attr === null ? undefined : attr;
- }
-
- // elem is actually elem.style ... set the style
- // Using attr for specific style information is now deprecated. Use style instead.
- return jQuery.style( elem, name, value );
- }
-});
-var rnamespaces = /\.(.*)$/,
- fcleanup = function( nm ) {
- return nm.replace(/[^\w\s\.\|`]/g, function( ch ) {
- return "\\" + ch;
- });
- };
-
-/*
- * A number of helper functions used for managing events.
- * Many of the ideas behind this code originated from
- * Dean Edwards' addEvent library.
- */
-jQuery.event = {
-
- // Bind an event to an element
- // Original by Dean Edwards
- add: function( elem, types, handler, data ) {
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // For whatever reason, IE has trouble passing the window object
- // around, causing it to be cloned in the process
- if ( elem.setInterval && ( elem !== window && !elem.frameElement ) ) {
- elem = window;
- }
-
- var handleObjIn, handleObj;
-
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- }
-
- // Make sure that the function being executed has a unique ID
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure
- var elemData = jQuery.data( elem );
-
- // If no elemData is found then we must be trying to bind to one of the
- // banned noData elements
- if ( !elemData ) {
- return;
- }
-
- var events = elemData.events = elemData.events || {},
- eventHandle = elemData.handle, eventHandle;
-
- if ( !eventHandle ) {
- elemData.handle = eventHandle = function() {
- // Handle the second event of a trigger and when
- // an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
- jQuery.event.handle.apply( eventHandle.elem, arguments ) :
- undefined;
- };
- }
-
- // Add elem as a property of the handle function
- // This is to prevent a memory leak with non-native events in IE.
- eventHandle.elem = elem;
-
- // Handle multiple events separated by a space
- // jQuery(...).bind("mouseover mouseout", fn);
- types = types.split(" ");
-
- var type, i = 0, namespaces;
-
- while ( (type = types[ i++ ]) ) {
- handleObj = handleObjIn ?
- jQuery.extend({}, handleObjIn) :
- { handler: handler, data: data };
-
- // Namespaced event handlers
- if ( type.indexOf(".") > -1 ) {
- namespaces = type.split(".");
- type = namespaces.shift();
- handleObj.namespace = namespaces.slice(0).sort().join(".");
-
- } else {
- namespaces = [];
- handleObj.namespace = "";
- }
-
- handleObj.type = type;
- handleObj.guid = handler.guid;
-
- // Get the current list of functions bound to this event
- var handlers = events[ type ],
- special = jQuery.event.special[ type ] || {};
-
- // Init the event handler queue
- if ( !handlers ) {
- handlers = events[ type ] = [];
-
- // Check for a special event handler
- // Only use addEventListener/attachEvent if the special
- // events handler returns false
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
- // Bind the global event handler to the element
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
-
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add the function to the element's handler list
- handlers.push( handleObj );
-
- // Keep track of which events have been used, for global triggering
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- global: {},
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, pos ) {
- // don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- var ret, type, fn, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
- elemData = jQuery.data( elem ),
- events = elemData && elemData.events;
-
- if ( !elemData || !events ) {
- return;
- }
-
- // types is actually an event object here
- if ( types && types.type ) {
- handler = types.handler;
- types = types.type;
- }
-
- // Unbind all events for the element
- if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
- types = types || "";
-
- for ( type in events ) {
- jQuery.event.remove( elem, type + types );
- }
-
- return;
- }
-
- // Handle multiple events separated by a space
- // jQuery(...).unbind("mouseover mouseout", fn);
- types = types.split(" ");
-
- while ( (type = types[ i++ ]) ) {
- origType = type;
- handleObj = null;
- all = type.indexOf(".") < 0;
- namespaces = [];
-
- if ( !all ) {
- // Namespaced event handlers
- namespaces = type.split(".");
- type = namespaces.shift();
-
- namespace = new RegExp("(^|\\.)" +
- jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)")
- }
-
- eventType = events[ type ];
-
- if ( !eventType ) {
- continue;
- }
-
- if ( !handler ) {
- for ( var j = 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( all || namespace.test( handleObj.namespace ) ) {
- jQuery.event.remove( elem, origType, handleObj.handler, j );
- eventType.splice( j--, 1 );
- }
- }
-
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
-
- for ( var j = pos || 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( handler.guid === handleObj.guid ) {
- // remove the given handler for the given type
- if ( all || namespace.test( handleObj.namespace ) ) {
- if ( pos == null ) {
- eventType.splice( j--, 1 );
- }
-
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
-
- if ( pos != null ) {
- break;
- }
- }
- }
-
- // remove generic event handler if no more handlers exist
- if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
- if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
- removeEvent( elem, type, elemData.handle );
- }
-
- ret = null;
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- var handle = elemData.handle;
- if ( handle ) {
- handle.elem = null;
- }
-
- delete elemData.events;
- delete elemData.handle;
-
- if ( jQuery.isEmptyObject( elemData ) ) {
- jQuery.removeData( elem );
- }
- }
- },
-
- // bubbling is internal
- trigger: function( event, data, elem /*, bubbling */ ) {
- // Event object or event type
- var type = event.type || event,
- bubbling = arguments[3];
-
- if ( !bubbling ) {
- event = typeof event === "object" ?
- // jQuery.Event object
- event[expando] ? event :
- // Object literal
- jQuery.extend( jQuery.Event(type), event ) :
- // Just the event type (string)
- jQuery.Event(type);
-
- if ( type.indexOf("!") >= 0 ) {
- event.type = type = type.slice(0, -1);
- event.exclusive = true;
- }
-
- // Handle a global trigger
- if ( !elem ) {
- // Don't bubble custom events when global (to avoid too much overhead)
- event.stopPropagation();
-
- // Only trigger if we've ever bound an event for it
- if ( jQuery.event.global[ type ] ) {
- jQuery.each( jQuery.cache, function() {
- if ( this.events && this.events[type] ) {
- jQuery.event.trigger( event, data, this.handle.elem );
- }
- });
- }
- }
-
- // Handle triggering a single element
-
- // don't do events on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
- return undefined;
- }
-
- // Clean up in case it is reused
- event.result = undefined;
- event.target = elem;
-
- // Clone the incoming data, if any
- data = jQuery.makeArray( data );
- data.unshift( event );
- }
-
- event.currentTarget = elem;
-
- // Trigger the event, it is assumed that "handle" is a function
- var handle = jQuery.data( elem, "handle" );
- if ( handle ) {
- handle.apply( elem, data );
- }
-
- var parent = elem.parentNode || elem.ownerDocument;
-
- // Trigger an inline bound script
- try {
- if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
- if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
- event.result = false;
- }
- }
-
- // prevent IE from throwing an error for some elements with some event types, see #3533
- } catch (e) {}
-
- if ( !event.isPropagationStopped() && parent ) {
- jQuery.event.trigger( event, data, parent, true );
-
- } else if ( !event.isDefaultPrevented() ) {
- var target = event.target, old,
- isClick = jQuery.nodeName(target, "a") && type === "click",
- special = jQuery.event.special[ type ] || {};
-
- if ( (!special._default || special._default.call( elem, event ) === false) &&
- !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
-
- try {
- if ( target[ type ] ) {
- // Make sure that we don't accidentally re-trigger the onFOO events
- old = target[ "on" + type ];
-
- if ( old ) {
- target[ "on" + type ] = null;
- }
-
- jQuery.event.triggered = true;
- target[ type ]();
- }
-
- // prevent IE from throwing an error for some elements with some event types, see #3533
- } catch (e) {}
-
- if ( old ) {
- target[ "on" + type ] = old;
- }
-
- jQuery.event.triggered = false;
- }
- }
- },
-
- handle: function( event ) {
- var all, handlers, namespaces, namespace, events;
-
- event = arguments[0] = jQuery.event.fix( event || window.event );
- event.currentTarget = this;
-
- // Namespaced event handlers
- all = event.type.indexOf(".") < 0 && !event.exclusive;
-
- if ( !all ) {
- namespaces = event.type.split(".");
- event.type = namespaces.shift();
- namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)");
- }
-
- var events = jQuery.data(this, "events"), handlers = events[ event.type ];
-
- if ( events && handlers ) {
- // Clone the handlers to prevent manipulation
- handlers = handlers.slice(0);
-
- for ( var j = 0, l = handlers.length; j < l; j++ ) {
- var handleObj = handlers[ j ];
-
- // Filter the functions by class
- if ( all || namespace.test( handleObj.namespace ) ) {
- // Pass in a reference to the handler function itself
- // So that we can later remove it
- event.handler = handleObj.handler;
- event.data = handleObj.data;
- event.handleObj = handleObj;
-
- var ret = handleObj.handler.apply( this, arguments );
-
- if ( ret !== undefined ) {
- event.result = ret;
- if ( ret === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
-
- if ( event.isImmediatePropagationStopped() ) {
- break;
- }
- }
- }
- }
-
- return event.result;
- },
-
- props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-
- fix: function( event ) {
- if ( event[ expando ] ) {
- return event;
- }
-
- // store a copy of the original event object
- // and "clone" to set read-only properties
- var originalEvent = event;
- event = jQuery.Event( originalEvent );
-
- for ( var i = this.props.length, prop; i; ) {
- prop = this.props[ --i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Fix target property, if necessary
- if ( !event.target ) {
- event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
- }
-
- // check if target is a textnode (safari)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && event.fromElement ) {
- event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
- }
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && event.clientX != null ) {
- var doc = document.documentElement, body = document.body;
- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
- }
-
- // Add which for key events
- if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) ) {
- event.which = event.charCode || event.keyCode;
- }
-
- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
- if ( !event.metaKey && event.ctrlKey ) {
- event.metaKey = event.ctrlKey;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && event.button !== undefined ) {
- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
- }
-
- return event;
- },
-
- // Deprecated, use jQuery.guid instead
- guid: 1E8,
-
- // Deprecated, use jQuery.proxy instead
- proxy: jQuery.proxy,
-
- special: {
- ready: {
- // Make sure the ready event is setup
- setup: jQuery.bindReady,
- teardown: jQuery.noop
- },
-
- live: {
- add: function( handleObj ) {
- jQuery.event.add( this, handleObj.origType, jQuery.extend({}, handleObj, {handler: liveHandler}), handleObj.data );
- },
-
- remove: function( handleObj ) {
- var remove = true,
- type = handleObj.origType.replace(rnamespaces, "");
-
- jQuery.each( jQuery.data(this, "events").live || [], function() {
- if ( type === this.origType.replace(rnamespaces, "") ) {
- remove = false;
- return false;
- }
- });
-
- if ( remove ) {
- jQuery.event.remove( this, handleObj.origType, liveHandler );
- }
- }
-
- },
-
- beforeunload: {
- setup: function( data, namespaces, eventHandle ) {
- // We only want to do this special case on windows
- if ( this.setInterval ) {
- this.onbeforeunload = eventHandle;
- }
-
- return false;
- },
- teardown: function( namespaces, eventHandle ) {
- if ( this.onbeforeunload === eventHandle ) {
- this.onbeforeunload = null;
- }
- }
- }
- }
-};
-
-var removeEvent = document.removeEventListener ?
- function( elem, type, handle ) {
- elem.removeEventListener( type, handle, false );
- } :
- function( elem, type, handle ) {
- elem.detachEvent( "on" + type, handle );
- };
-
-jQuery.Event = function( src ) {
- // Allow instantiation without the 'new' keyword
- if ( !this.preventDefault ) {
- return new jQuery.Event( src );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
- // Event type
- } else {
- this.type = src;
- }
-
- // timeStamp is buggy for some events on Firefox(#3843)
- // So we won't rely on the native value
- this.timeStamp = now();
-
- // Mark it as fixed
- this[ expando ] = true;
-};
-
-function returnFalse() {
- return false;
-}
-function returnTrue() {
- return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- preventDefault: function() {
- this.isDefaultPrevented = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
-
- // if preventDefault exists run it on the original event
- if ( e.preventDefault ) {
- e.preventDefault();
- }
- // otherwise set the returnValue property of the original event to false (IE)
- e.returnValue = false;
- },
- stopPropagation: function() {
- this.isPropagationStopped = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
- // if stopPropagation exists run it on the original event
- if ( e.stopPropagation ) {
- e.stopPropagation();
- }
- // otherwise set the cancelBubble property of the original event to true (IE)
- e.cancelBubble = true;
- },
- stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = returnTrue;
- this.stopPropagation();
- },
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse
-};
-
-// Checks if an event happened on an element within another element
-// Used in jQuery.event.special.mouseenter and mouseleave handlers
-var withinElement = function( event ) {
- // Check if mouse(over|out) are still within the same parent element
- var parent = event.relatedTarget;
-
- // Firefox sometimes assigns relatedTarget a XUL element
- // which we cannot access the parentNode property of
- try {
- // Traverse up the tree
- while ( parent && parent !== this ) {
- parent = parent.parentNode;
- }
-
- if ( parent !== this ) {
- // set the correct event type
- event.type = event.data;
-
- // handle event if we actually just moused on to a non sub-element
- jQuery.event.handle.apply( this, arguments );
- }
-
- // assuming we've left the element since we most likely mousedover a xul element
- } catch(e) { }
-},
-
-// In case of event delegation, we only need to rename the event.type,
-// liveHandler will take care of the rest.
-delegate = function( event ) {
- event.type = event.data;
- jQuery.event.handle.apply( this, arguments );
-};
-
-// Create mouseenter and mouseleave events
-jQuery.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- setup: function( data ) {
- jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
- },
- teardown: function( data ) {
- jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
- }
- };
-});
-
-// submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
- jQuery.event.special.submit = {
- setup: function( data, namespaces ) {
- if ( this.nodeName.toLowerCase() !== "form" ) {
- jQuery.event.add(this, "click.specialSubmit", function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
- return trigger( "submit", this, arguments );
- }
- });
-
- jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
- return trigger( "submit", this, arguments );
- }
- });
-
- } else {
- return false;
- }
- },
-
- teardown: function( namespaces ) {
- jQuery.event.remove( this, ".specialSubmit" );
- }
- };
-
-}
-
-// change delegation, happens here so we have bind.
-if ( !jQuery.support.changeBubbles ) {
-
- var formElems = /textarea|input|select/i,
-
- changeFilters,
-
- getVal = function( elem ) {
- var type = elem.type, val = elem.value;
-
- if ( type === "radio" || type === "checkbox" ) {
- val = elem.checked;
-
- } else if ( type === "select-multiple" ) {
- val = elem.selectedIndex > -1 ?
- jQuery.map( elem.options, function( elem ) {
- return elem.selected;
- }).join("-") :
- "";
-
- } else if ( elem.nodeName.toLowerCase() === "select" ) {
- val = elem.selectedIndex;
- }
-
- return val;
- },
-
- testChange = function testChange( e ) {
- var elem = e.target, data, val;
-
- if ( !formElems.test( elem.nodeName ) || elem.readOnly ) {
- return;
- }
-
- data = jQuery.data( elem, "_change_data" );
- val = getVal(elem);
-
- // the current data will be also retrieved by beforeactivate
- if ( e.type !== "focusout" || elem.type !== "radio" ) {
- jQuery.data( elem, "_change_data", val );
- }
-
- if ( data === undefined || val === data ) {
- return;
- }
-
- if ( data != null || val ) {
- e.type = "change";
- return jQuery.event.trigger( e, arguments[1], elem );
- }
- };
-
- jQuery.event.special.change = {
- filters: {
- focusout: testChange,
-
- click: function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) {
- return testChange.call( this, e );
- }
- },
-
- // Change has to be called before submit
- // Keydown will be called before keypress, which is used in submit-event delegation
- keydown: function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
- (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
- type === "select-multiple" ) {
- return testChange.call( this, e );
- }
- },
-
- // Beforeactivate happens also before the previous element is blurred
- // with this event you can't trigger a change event, but you can store
- // information/focus[in] is not needed anymore
- beforeactivate: function( e ) {
- var elem = e.target;
- jQuery.data( elem, "_change_data", getVal(elem) );
- }
- },
-
- setup: function( data, namespaces ) {
- if ( this.type === "file" ) {
- return false;
- }
-
- for ( var type in changeFilters ) {
- jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
- }
-
- return formElems.test( this.nodeName );
- },
-
- teardown: function( namespaces ) {
- jQuery.event.remove( this, ".specialChange" );
-
- return formElems.test( this.nodeName );
- }
- };
-
- changeFilters = jQuery.event.special.change.filters;
-}
-
-function trigger( type, elem, args ) {
- args[0].type = type;
- return jQuery.event.handle.apply( elem, args );
-}
-
-// Create "bubbling" focus and blur events
-if ( document.addEventListener ) {
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
- jQuery.event.special[ fix ] = {
- setup: function() {
- this.addEventListener( orig, handler, true );
- },
- teardown: function() {
- this.removeEventListener( orig, handler, true );
- }
- };
-
- function handler( e ) {
- e = jQuery.event.fix( e );
- e.type = fix;
- return jQuery.event.handle.call( this, e );
- }
- });
-}
-
-jQuery.each(["bind", "one"], function( i, name ) {
- jQuery.fn[ name ] = function( type, data, fn ) {
- // Handle object literals
- if ( typeof type === "object" ) {
- for ( var key in type ) {
- this[ name ](key, data, type[key], fn);
- }
- return this;
- }
-
- if ( jQuery.isFunction( data ) ) {
- fn = data;
- data = undefined;
- }
-
- var handler = name === "one" ? jQuery.proxy( fn, function( event ) {
- jQuery( this ).unbind( event, handler );
- return fn.apply( this, arguments );
- }) : fn;
-
- if ( type === "unload" && name !== "one" ) {
- this.one( type, data, fn );
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- jQuery.event.add( this[i], type, handler, data );
- }
- }
-
- return this;
- };
-});
-
-jQuery.fn.extend({
- unbind: function( type, fn ) {
- // Handle object literals
- if ( typeof type === "object" && !type.preventDefault ) {
- for ( var key in type ) {
- this.unbind(key, type[key]);
- }
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- jQuery.event.remove( this[i], type, fn );
- }
- }
-
- return this;
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.live( types, data, fn, selector );
- },
-
- undelegate: function( selector, types, fn ) {
- if ( arguments.length === 0 ) {
- return this.unbind( "live" );
-
- } else {
- return this.die( types, null, fn, selector );
- }
- },
-
- trigger: function( type, data ) {
- return this.each(function() {
- jQuery.event.trigger( type, data, this );
- });
- },
-
- triggerHandler: function( type, data ) {
- if ( this[0] ) {
- var event = jQuery.Event( type );
- event.preventDefault();
- event.stopPropagation();
- jQuery.event.trigger( event, data, this[0] );
- return event.result;
- }
- },
-
- toggle: function( fn ) {
- // Save reference to arguments for access in closure
- var args = arguments, i = 1;
-
- // link all the functions, so any of them can unbind this click handler
- while ( i < args.length ) {
- jQuery.proxy( fn, args[ i++ ] );
- }
-
- return this.click( jQuery.proxy( fn, function( event ) {
- // Figure out which function to execute
- var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
- jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
- // Make sure that clicks stop
- event.preventDefault();
-
- // and execute the function
- return args[ lastToggle ].apply( this, arguments ) || false;
- }));
- },
-
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-});
-
-var liveMap = {
- focus: "focusin",
- blur: "focusout",
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-};
-
-jQuery.each(["live", "die"], function( i, name ) {
- jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
- var type, i = 0, match, namespaces, preType,
- selector = origSelector || this.selector,
- context = origSelector ? this : jQuery( this.context );
-
- if ( jQuery.isFunction( data ) ) {
- fn = data;
- data = undefined;
- }
-
- types = (types || "").split(" ");
-
- while ( (type = types[ i++ ]) != null ) {
- match = rnamespaces.exec( type );
- namespaces = "";
-
- if ( match ) {
- namespaces = match[0];
- type = type.replace( rnamespaces, "" );
- }
-
- if ( type === "hover" ) {
- types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
- continue;
- }
-
- preType = type;
-
- if ( type === "focus" || type === "blur" ) {
- types.push( liveMap[ type ] + namespaces );
- type = type + namespaces;
-
- } else {
- type = (liveMap[ type ] || type) + namespaces;
- }
-
- if ( name === "live" ) {
- // bind live handler
- context.each(function(){
- jQuery.event.add( this, liveConvert( type, selector ),
- { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
- });
-
- } else {
- // unbind live handler
- context.unbind( liveConvert( type, selector ), fn );
- }
- }
-
- return this;
- }
-});
-
-function liveHandler( event ) {
- var stop, elems = [], selectors = [], args = arguments,
- related, match, handleObj, elem, j, i, l, data,
- events = jQuery.data( this, "events" );
-
- // Make sure we avoid non-left-click bubbling in Firefox (#3861)
- if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
- return;
- }
-
- event.liveFired = this;
-
- var live = events.live.slice(0);
-
- for ( j = 0; j < live.length; j++ ) {
- handleObj = live[j];
-
- if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
- selectors.push( handleObj.selector );
-
- } else {
- live.splice( j--, 1 );
- }
- }
-
- match = jQuery( event.target ).closest( selectors, event.currentTarget );
-
- for ( i = 0, l = match.length; i < l; i++ ) {
- for ( j = 0; j < live.length; j++ ) {
- handleObj = live[j];
-
- if ( match[i].selector === handleObj.selector ) {
- elem = match[i].elem;
- related = null;
-
- // Those two events require additional checking
- if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
- related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
- }
-
- if ( !related || related !== elem ) {
- elems.push({ elem: elem, handleObj: handleObj });
- }
- }
- }
- }
-
- for ( i = 0, l = elems.length; i < l; i++ ) {
- match = elems[i];
- event.currentTarget = match.elem;
- event.data = match.handleObj.data;
- event.handleObj = match.handleObj;
-
- if ( match.handleObj.origHandler.apply( match.elem, args ) === false ) {
- stop = false;
- break;
- }
- }
-
- return stop;
-}
-
-function liveConvert( type, selector ) {
- return "live." + (type && type !== "*" ? type + "." : "") + selector.replace(/\./g, "`").replace(/ /g, "&");
-}
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( fn ) {
- return fn ? this.bind( name, fn ) : this.trigger( name );
- };
-
- if ( jQuery.attrFn ) {
- jQuery.attrFn[ name ] = true;
- }
-});
-
-// Prevent memory leaks in IE
-// Window isn't included so as not to unbind existing unload events
-// More info:
-// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
-if ( window.attachEvent && !window.addEventListener ) {
- window.attachEvent("onunload", function() {
- for ( var id in jQuery.cache ) {
- if ( jQuery.cache[ id ].handle ) {
- // Try/Catch is to handle iframes being unloaded, see #4280
- try {
- jQuery.event.remove( jQuery.cache[ id ].handle.elem );
- } catch(e) {}
- }
- }
- });
-}
-/*!
- * Sizzle CSS Selector Engine - v1.0
- * Copyright 2009, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- done = 0,
- toString = Object.prototype.toString,
- hasDuplicate = false,
- baseHasDuplicate = true;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-// Thus far that includes Google Chrome.
-[0, 0].sort(function(){
- baseHasDuplicate = false;
- return 0;
-});
-
-var Sizzle = function(selector, context, results, seed) {
- results = results || [];
- var origContext = context = context || document;
-
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
- return [];
- }
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- var parts = [], m, set, checkSet, extra, prune = true, contextXML = isXML(context),
- soFar = selector;
-
- // Reset the position of the chunker regexp (start from head)
- while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) {
- soFar = m[3];
-
- parts.push( m[1] );
-
- if ( m[2] ) {
- extra = m[3];
- break;
- }
- }
-
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
- set = posProcess( parts[0] + parts[1], context );
- } else {
- set = Expr.relative[ parts[0] ] ?
- [ context ] :
- Sizzle( parts.shift(), context );
-
- while ( parts.length ) {
- selector = parts.shift();
-
- if ( Expr.relative[ selector ] ) {
- selector += parts.shift();
- }
-
- set = posProcess( selector, set );
- }
- }
- } else {
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
- var ret = Sizzle.find( parts.shift(), context, contextXML );
- context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0];
- }
-
- if ( context ) {
- var ret = seed ?
- { expr: parts.pop(), set: makeArray(seed) } :
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
- set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set;
-
- if ( parts.length > 0 ) {
- checkSet = makeArray(set);
- } else {
- prune = false;
- }
-
- while ( parts.length ) {
- var cur = parts.pop(), pop = cur;
-
- if ( !Expr.relative[ cur ] ) {
- cur = "";
- } else {
- pop = parts.pop();
- }
-
- if ( pop == null ) {
- pop = context;
- }
-
- Expr.relative[ cur ]( checkSet, pop, contextXML );
- }
- } else {
- checkSet = parts = [];
- }
- }
-
- if ( !checkSet ) {
- checkSet = set;
- }
-
- if ( !checkSet ) {
- Sizzle.error( cur || selector );
- }
-
- if ( toString.call(checkSet) === "[object Array]" ) {
- if ( !prune ) {
- results.push.apply( results, checkSet );
- } else if ( context && context.nodeType === 1 ) {
- for ( var i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
- results.push( set[i] );
- }
- }
- } else {
- for ( var i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
- results.push( set[i] );
- }
- }
- }
- } else {
- makeArray( checkSet, results );
- }
-
- if ( extra ) {
- Sizzle( extra, origContext, results, seed );
- Sizzle.uniqueSort( results );
- }
-
- return results;
-};
-
-Sizzle.uniqueSort = function(results){
- if ( sortOrder ) {
- hasDuplicate = baseHasDuplicate;
- results.sort(sortOrder);
-
- if ( hasDuplicate ) {
- for ( var i = 1; i < results.length; i++ ) {
- if ( results[i] === results[i-1] ) {
- results.splice(i--, 1);
- }
- }
- }
- }
-
- return results;
-};
-
-Sizzle.matches = function(expr, set){
- return Sizzle(expr, null, null, set);
-};
-
-Sizzle.find = function(expr, context, isXML){
- var set, match;
-
- if ( !expr ) {
- return [];
- }
-
- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
- var type = Expr.order[i], match;
-
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
- var left = match[1];
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) !== "\\" ) {
- match[1] = (match[1] || "").replace(/\\/g, "");
- set = Expr.find[ type ]( match, context, isXML );
- if ( set != null ) {
- expr = expr.replace( Expr.match[ type ], "" );
- break;
- }
- }
- }
- }
-
- if ( !set ) {
- set = context.getElementsByTagName("*");
- }
-
- return {set: set, expr: expr};
-};
-
-Sizzle.filter = function(expr, set, inplace, not){
- var old = expr, result = [], curLoop = set, match, anyFound,
- isXMLFilter = set && set[0] && isXML(set[0]);
-
- while ( expr && set.length ) {
- for ( var type in Expr.filter ) {
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
- var filter = Expr.filter[ type ], found, item, left = match[1];
- anyFound = false;
-
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) === "\\" ) {
- continue;
- }
-
- if ( curLoop === result ) {
- result = [];
- }
-
- if ( Expr.preFilter[ type ] ) {
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
- if ( !match ) {
- anyFound = found = true;
- } else if ( match === true ) {
- continue;
- }
- }
-
- if ( match ) {
- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
- if ( item ) {
- found = filter( item, match, i, curLoop );
- var pass = not ^ !!found;
-
- if ( inplace && found != null ) {
- if ( pass ) {
- anyFound = true;
- } else {
- curLoop[i] = false;
- }
- } else if ( pass ) {
- result.push( item );
- anyFound = true;
- }
- }
- }
- }
-
- if ( found !== undefined ) {
- if ( !inplace ) {
- curLoop = result;
- }
-
- expr = expr.replace( Expr.match[ type ], "" );
-
- if ( !anyFound ) {
- return [];
- }
-
- break;
- }
- }
- }
-
- // Improper expression
- if ( expr === old ) {
- if ( anyFound == null ) {
- Sizzle.error( expr );
- } else {
- break;
- }
- }
-
- old = expr;
- }
-
- return curLoop;
-};
-
-Sizzle.error = function( msg ) {
- throw "Syntax error, unrecognized expression: " + msg;
-};
-
-var Expr = Sizzle.selectors = {
- order: [ "ID", "NAME", "TAG" ],
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
- },
- leftMatch: {},
- attrMap: {
- "class": "className",
- "for": "htmlFor"
- },
- attrHandle: {
- href: function(elem){
- return elem.getAttribute("href");
- }
- },
- relative: {
- "+": function(checkSet, part){
- var isPartStr = typeof part === "string",
- isTag = isPartStr && !/\W/.test(part),
- isPartStrNotTag = isPartStr && !isTag;
-
- if ( isTag ) {
- part = part.toLowerCase();
- }
-
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
- if ( (elem = checkSet[i]) ) {
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
- elem || false :
- elem === part;
- }
- }
-
- if ( isPartStrNotTag ) {
- Sizzle.filter( part, checkSet, true );
- }
- },
- ">": function(checkSet, part){
- var isPartStr = typeof part === "string";
-
- if ( isPartStr && !/\W/.test(part) ) {
- part = part.toLowerCase();
-
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- var parent = elem.parentNode;
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
- }
- }
- } else {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- checkSet[i] = isPartStr ?
- elem.parentNode :
- elem.parentNode === part;
- }
- }
-
- if ( isPartStr ) {
- Sizzle.filter( part, checkSet, true );
- }
- }
- },
- "": function(checkSet, part, isXML){
- var doneName = done++, checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test(part) ) {
- var nodeCheck = part = part.toLowerCase();
- checkFn = dirNodeCheck;
- }
-
- checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
- },
- "~": function(checkSet, part, isXML){
- var doneName = done++, checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test(part) ) {
- var nodeCheck = part = part.toLowerCase();
- checkFn = dirNodeCheck;
- }
-
- checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
- }
- },
- find: {
- ID: function(match, context, isXML){
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- return m ? [m] : [];
- }
- },
- NAME: function(match, context){
- if ( typeof context.getElementsByName !== "undefined" ) {
- var ret = [], results = context.getElementsByName(match[1]);
-
- for ( var i = 0, l = results.length; i < l; i++ ) {
- if ( results[i].getAttribute("name") === match[1] ) {
- ret.push( results[i] );
- }
- }
-
- return ret.length === 0 ? null : ret;
- }
- },
- TAG: function(match, context){
- return context.getElementsByTagName(match[1]);
- }
- },
- preFilter: {
- CLASS: function(match, curLoop, inplace, result, not, isXML){
- match = " " + match[1].replace(/\\/g, "") + " ";
-
- if ( isXML ) {
- return match;
- }
-
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
- if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n]/g, " ").indexOf(match) >= 0) ) {
- if ( !inplace ) {
- result.push( elem );
- }
- } else if ( inplace ) {
- curLoop[i] = false;
- }
- }
- }
-
- return false;
- },
- ID: function(match){
- return match[1].replace(/\\/g, "");
- },
- TAG: function(match, curLoop){
- return match[1].toLowerCase();
- },
- CHILD: function(match){
- if ( match[1] === "nth" ) {
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
- match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
- // calculate the numbers (first)n+(last) including if they are negative
- match[2] = (test[1] + (test[2] || 1)) - 0;
- match[3] = test[3] - 0;
- }
-
- // TODO: Move to normal caching system
- match[0] = done++;
-
- return match;
- },
- ATTR: function(match, curLoop, inplace, result, not, isXML){
- var name = match[1].replace(/\\/g, "");
-
- if ( !isXML && Expr.attrMap[name] ) {
- match[1] = Expr.attrMap[name];
- }
-
- if ( match[2] === "~=" ) {
- match[4] = " " + match[4] + " ";
- }
-
- return match;
- },
- PSEUDO: function(match, curLoop, inplace, result, not){
- if ( match[1] === "not" ) {
- // If we're dealing with a complex expression, or a simple one
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
- match[3] = Sizzle(match[3], null, null, curLoop);
- } else {
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
- if ( !inplace ) {
- result.push.apply( result, ret );
- }
- return false;
- }
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
- return true;
- }
-
- return match;
- },
- POS: function(match){
- match.unshift( true );
- return match;
- }
- },
- filters: {
- enabled: function(elem){
- return elem.disabled === false && elem.type !== "hidden";
- },
- disabled: function(elem){
- return elem.disabled === true;
- },
- checked: function(elem){
- return elem.checked === true;
- },
- selected: function(elem){
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- elem.parentNode.selectedIndex;
- return elem.selected === true;
- },
- parent: function(elem){
- return !!elem.firstChild;
- },
- empty: function(elem){
- return !elem.firstChild;
- },
- has: function(elem, i, match){
- return !!Sizzle( match[3], elem ).length;
- },
- header: function(elem){
- return /h\d/i.test( elem.nodeName );
- },
- text: function(elem){
- return "text" === elem.type;
- },
- radio: function(elem){
- return "radio" === elem.type;
- },
- checkbox: function(elem){
- return "checkbox" === elem.type;
- },
- file: function(elem){
- return "file" === elem.type;
- },
- password: function(elem){
- return "password" === elem.type;
- },
- submit: function(elem){
- return "submit" === elem.type;
- },
- image: function(elem){
- return "image" === elem.type;
- },
- reset: function(elem){
- return "reset" === elem.type;
- },
- button: function(elem){
- return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
- },
- input: function(elem){
- return /input|select|textarea|button/i.test(elem.nodeName);
- }
- },
- setFilters: {
- first: function(elem, i){
- return i === 0;
- },
- last: function(elem, i, match, array){
- return i === array.length - 1;
- },
- even: function(elem, i){
- return i % 2 === 0;
- },
- odd: function(elem, i){
- return i % 2 === 1;
- },
- lt: function(elem, i, match){
- return i < match[3] - 0;
- },
- gt: function(elem, i, match){
- return i > match[3] - 0;
- },
- nth: function(elem, i, match){
- return match[3] - 0 === i;
- },
- eq: function(elem, i, match){
- return match[3] - 0 === i;
- }
- },
- filter: {
- PSEUDO: function(elem, match, i, array){
- var name = match[1], filter = Expr.filters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- } else if ( name === "contains" ) {
- return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
- } else if ( name === "not" ) {
- var not = match[3];
-
- for ( var i = 0, l = not.length; i < l; i++ ) {
- if ( not[i] === elem ) {
- return false;
- }
- }
-
- return true;
- } else {
- Sizzle.error( "Syntax error, unrecognized expression: " + name );
- }
- },
- CHILD: function(elem, match){
- var type = match[1], node = elem;
- switch (type) {
- case 'only':
- case 'first':
- while ( (node = node.previousSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
- if ( type === "first" ) {
- return true;
- }
- node = elem;
- case 'last':
- while ( (node = node.nextSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
- return true;
- case 'nth':
- var first = match[2], last = match[3];
-
- if ( first === 1 && last === 0 ) {
- return true;
- }
-
- var doneName = match[0],
- parent = elem.parentNode;
-
- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
- var count = 0;
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
- if ( node.nodeType === 1 ) {
- node.nodeIndex = ++count;
- }
- }
- parent.sizcache = doneName;
- }
-
- var diff = elem.nodeIndex - last;
- if ( first === 0 ) {
- return diff === 0;
- } else {
- return ( diff % first === 0 && diff / first >= 0 );
- }
- }
- },
- ID: function(elem, match){
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
- },
- TAG: function(elem, match){
- return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
- },
- CLASS: function(elem, match){
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
- .indexOf( match ) > -1;
- },
- ATTR: function(elem, match){
- var name = match[1],
- result = Expr.attrHandle[ name ] ?
- Expr.attrHandle[ name ]( elem ) :
- elem[ name ] != null ?
- elem[ name ] :
- elem.getAttribute( name ),
- value = result + "",
- type = match[2],
- check = match[4];
-
- return result == null ?
- type === "!=" :
- type === "=" ?
- value === check :
- type === "*=" ?
- value.indexOf(check) >= 0 :
- type === "~=" ?
- (" " + value + " ").indexOf(check) >= 0 :
- !check ?
- value && result !== false :
- type === "!=" ?
- value !== check :
- type === "^=" ?
- value.indexOf(check) === 0 :
- type === "$=" ?
- value.substr(value.length - check.length) === check :
- type === "|=" ?
- value === check || value.substr(0, check.length + 1) === check + "-" :
- false;
- },
- POS: function(elem, match, i, array){
- var name = match[2], filter = Expr.setFilters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- }
- }
- }
-};
-
-var origPOS = Expr.match.POS;
-
-for ( var type in Expr.match ) {
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, function(all, num){
- return "\\" + (num - 0 + 1);
- }));
-}
-
-var makeArray = function(array, results) {
- array = Array.prototype.slice.call( array, 0 );
-
- if ( results ) {
- results.push.apply( results, array );
- return results;
- }
-
- return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch(e){
- makeArray = function(array, results) {
- var ret = results || [];
-
- if ( toString.call(array) === "[object Array]" ) {
- Array.prototype.push.apply( ret, array );
- } else {
- if ( typeof array.length === "number" ) {
- for ( var i = 0, l = array.length; i < l; i++ ) {
- ret.push( array[i] );
- }
- } else {
- for ( var i = 0; array[i]; i++ ) {
- ret.push( array[i] );
- }
- }
- }
-
- return ret;
- };
-}
-
-var sortOrder;
-
-if ( document.documentElement.compareDocumentPosition ) {
- sortOrder = function( a, b ) {
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return a.compareDocumentPosition ? -1 : 1;
- }
-
- var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-} else if ( "sourceIndex" in document.documentElement ) {
- sortOrder = function( a, b ) {
- if ( !a.sourceIndex || !b.sourceIndex ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return a.sourceIndex ? -1 : 1;
- }
-
- var ret = a.sourceIndex - b.sourceIndex;
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-} else if ( document.createRange ) {
- sortOrder = function( a, b ) {
- if ( !a.ownerDocument || !b.ownerDocument ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return a.ownerDocument ? -1 : 1;
- }
-
- var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
- aRange.setStart(a, 0);
- aRange.setEnd(a, 0);
- bRange.setStart(b, 0);
- bRange.setEnd(b, 0);
- var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-}
-
-// Utility function for retreiving the text value of an array of DOM nodes
-function getText( elems ) {
- var ret = "", elem;
-
- for ( var i = 0; elems[i]; i++ ) {
- elem = elems[i];
-
- // Get the text from text nodes and CDATA nodes
- if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
- ret += elem.nodeValue;
-
- // Traverse everything else, except comment nodes
- } else if ( elem.nodeType !== 8 ) {
- ret += getText( elem.childNodes );
- }
- }
-
- return ret;
-}
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
- // We're going to inject a fake input element with a specified name
- var form = document.createElement("div"),
- id = "script" + (new Date).getTime();
- form.innerHTML = "<a name='" + id + "'/>";
-
- // Inject it into the root element, check its status, and remove it quickly
- var root = document.documentElement;
- root.insertBefore( form, root.firstChild );
-
- // The workaround has to do additional checks after a getElementById
- // Which slows things down for other browsers (hence the branching)
- if ( document.getElementById( id ) ) {
- Expr.find.ID = function(match, context, isXML){
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
- }
- };
-
- Expr.filter.ID = function(elem, match){
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
- return elem.nodeType === 1 && node && node.nodeValue === match;
- };
- }
-
- root.removeChild( form );
- root = form = null; // release memory in IE
-})();
-
-(function(){
- // Check to see if the browser returns only elements
- // when doing getElementsByTagName("*")
-
- // Create a fake element
- var div = document.createElement("div");
- div.appendChild( document.createComment("") );
-
- // Make sure no comments are found
- if ( div.getElementsByTagName("*").length > 0 ) {
- Expr.find.TAG = function(match, context){
- var results = context.getElementsByTagName(match[1]);
-
- // Filter out possible comments
- if ( match[1] === "*" ) {
- var tmp = [];
-
- for ( var i = 0; results[i]; i++ ) {
- if ( results[i].nodeType === 1 ) {
- tmp.push( results[i] );
- }
- }
-
- results = tmp;
- }
-
- return results;
- };
- }
-
- // Check to see if an attribute returns normalized href attributes
- div.innerHTML = "<a href='#'></a>";
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
- div.firstChild.getAttribute("href") !== "#" ) {
- Expr.attrHandle.href = function(elem){
- return elem.getAttribute("href", 2);
- };
- }
-
- div = null; // release memory in IE
-})();
-
-if ( document.querySelectorAll ) {
- (function(){
- var oldSizzle = Sizzle, div = document.createElement("div");
- div.innerHTML = "<p class='TEST'></p>";
-
- // Safari can't handle uppercase or unicode characters when
- // in quirks mode.
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
- return;
- }
-
- Sizzle = function(query, context, extra, seed){
- context = context || document;
-
- // Only use querySelectorAll on non-XML documents
- // (ID selectors don't work in non-HTML documents)
- if ( !seed && context.nodeType === 9 && !isXML(context) ) {
- try {
- return makeArray( context.querySelectorAll(query), extra );
- } catch(e){}
- }
-
- return oldSizzle(query, context, extra, seed);
- };
-
- for ( var prop in oldSizzle ) {
- Sizzle[ prop ] = oldSizzle[ prop ];
- }
-
- div = null; // release memory in IE
- })();
-}
-
-(function(){
- var div = document.createElement("div");
-
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
- // Opera can't find a second classname (in 9.6)
- // Also, make sure that getElementsByClassName actually exists
- if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
- return;
- }
-
- // Safari caches class attributes, doesn't catch changes (in 3.2)
- div.lastChild.className = "e";
-
- if ( div.getElementsByClassName("e").length === 1 ) {
- return;
- }
-
- Expr.order.splice(1, 0, "CLASS");
- Expr.find.CLASS = function(match, context, isXML) {
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
- return context.getElementsByClassName(match[1]);
- }
- };
-
- div = null; // release memory in IE
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- elem = elem[dir];
- var match = false;
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 && !isXML ){
- elem.sizcache = doneName;
- elem.sizset = i;
- }
-
- if ( elem.nodeName.toLowerCase() === cur ) {
- match = elem;
- break;
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- elem = elem[dir];
- var match = false;
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 ) {
- if ( !isXML ) {
- elem.sizcache = doneName;
- elem.sizset = i;
- }
- if ( typeof cur !== "string" ) {
- if ( elem === cur ) {
- match = true;
- break;
- }
-
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
- match = elem;
- break;
- }
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-var contains = document.compareDocumentPosition ? function(a, b){
- return !!(a.compareDocumentPosition(b) & 16);
-} : function(a, b){
- return a !== b && (a.contains ? a.contains(b) : true);
-};
-
-var isXML = function(elem){
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function(selector, context){
- var tmpSet = [], later = "", match,
- root = context.nodeType ? [context] : context;
-
- // Position selectors must be done after the filter
- // And so must :not(positional) so we move all PSEUDOs to the end
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
- later += match[0];
- selector = selector.replace( Expr.match.PSEUDO, "" );
- }
-
- selector = Expr.relative[selector] ? selector + "*" : selector;
-
- for ( var i = 0, l = root.length; i < l; i++ ) {
- Sizzle( selector, root[i], tmpSet );
- }
-
- return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = getText;
-jQuery.isXMLDoc = isXML;
-jQuery.contains = contains;
-
-return;
-
-window.Sizzle = Sizzle;
-
-})();
-var runtil = /Until$/,
- rparentsprev = /^(?:parents|prevUntil|prevAll)/,
- // Note: This RegExp should be improved, or likely pulled from Sizzle
- rmultiselector = /,/,
- slice = Array.prototype.slice;
-
-// Implement the identical functionality for filter and not
-var winnow = function( elements, qualifier, keep ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep(elements, function( elem, i ) {
- return !!qualifier.call( elem, i, elem ) === keep;
- });
-
- } else if ( qualifier.nodeType ) {
- return jQuery.grep(elements, function( elem, i ) {
- return (elem === qualifier) === keep;
- });
-
- } else if ( typeof qualifier === "string" ) {
- var filtered = jQuery.grep(elements, function( elem ) {
- return elem.nodeType === 1;
- });
-
- if ( isSimple.test( qualifier ) ) {
- return jQuery.filter(qualifier, filtered, !keep);
- } else {
- qualifier = jQuery.filter( qualifier, filtered );
- }
- }
-
- return jQuery.grep(elements, function( elem, i ) {
- return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
- });
-};
-
-jQuery.fn.extend({
- find: function( selector ) {
- var ret = this.pushStack( "", "find", selector ), length = 0;
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- length = ret.length;
- jQuery.find( selector, this[i], ret );
-
- if ( i > 0 ) {
- // Make sure that the results are unique
- for ( var n = length; n < ret.length; n++ ) {
- for ( var r = 0; r < length; r++ ) {
- if ( ret[r] === ret[n] ) {
- ret.splice(n--, 1);
- break;
- }
- }
- }
- }
- }
-
- return ret;
- },
-
- has: function( target ) {
- var targets = jQuery( target );
- return this.filter(function() {
- for ( var i = 0, l = targets.length; i < l; i++ ) {
- if ( jQuery.contains( this, targets[i] ) ) {
- return true;
- }
- }
- });
- },
-
- not: function( selector ) {
- return this.pushStack( winnow(this, selector, false), "not", selector);
- },
-
- filter: function( selector ) {
- return this.pushStack( winnow(this, selector, true), "filter", selector );
- },
-
- is: function( selector ) {
- return !!selector && jQuery.filter( selector, this ).length > 0;
- },
-
- closest: function( selectors, context ) {
- if ( jQuery.isArray( selectors ) ) {
- var ret = [], cur = this[0], match, matches = {}, selector;
-
- if ( cur && selectors.length ) {
- for ( var i = 0, l = selectors.length; i < l; i++ ) {
- selector = selectors[i];
-
- if ( !matches[selector] ) {
- matches[selector] = jQuery.expr.match.POS.test( selector ) ?
- jQuery( selector, context || this.context ) :
- selector;
- }
- }
-
- while ( cur && cur.ownerDocument && cur !== context ) {
- for ( selector in matches ) {
- match = matches[selector];
-
- if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
- ret.push({ selector: selector, elem: cur });
- delete matches[selector];
- }
- }
- cur = cur.parentNode;
- }
- }
-
- return ret;
- }
-
- var pos = jQuery.expr.match.POS.test( selectors ) ?
- jQuery( selectors, context || this.context ) : null;
-
- return this.map(function( i, cur ) {
- while ( cur && cur.ownerDocument && cur !== context ) {
- if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selectors) ) {
- return cur;
- }
- cur = cur.parentNode;
- }
- return null;
- });
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
- if ( !elem || typeof elem === "string" ) {
- return jQuery.inArray( this[0],
- // If it receives a string, the selector is used
- // If it receives nothing, the siblings are used
- elem ? jQuery( elem ) : this.parent().children() );
- }
- // Locate the position of the desired element
- return jQuery.inArray(
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[0] : elem, this );
- },
-
- add: function( selector, context ) {
- var set = typeof selector === "string" ?
- jQuery( selector, context || this.context ) :
- jQuery.makeArray( selector ),
- all = jQuery.merge( this.get(), set );
-
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
- all :
- jQuery.unique( all ) );
- },
-
- andSelf: function() {
- return this.add( this.prevObject );
- }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
- return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return jQuery.dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return jQuery.nth( elem, 2, "nextSibling" );
- },
- prev: function( elem ) {
- return jQuery.nth( elem, 2, "previousSibling" );
- },
- nextAll: function( elem ) {
- return jQuery.dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return jQuery.dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return jQuery.sibling( elem.parentNode.firstChild, elem );
- },
- children: function( elem ) {
- return jQuery.sibling( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.makeArray( elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until );
-
- if ( !runtil.test( name ) ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- ret = jQuery.filter( selector, ret );
- }
-
- ret = this.length > 1 ? jQuery.unique( ret ) : ret;
-
- if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
- ret = ret.reverse();
- }
-
- return this.pushStack( ret, name, slice.call(arguments).join(",") );
- };
-});
-
-jQuery.extend({
- filter: function( expr, elems, not ) {
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return jQuery.find.matches(expr, elems);
- },
-
- dir: function( elem, dir, until ) {
- var matched = [], cur = elem[dir];
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
- if ( cur.nodeType === 1 ) {
- matched.push( cur );
- }
- cur = cur[dir];
- }
- return matched;
- },
-
- nth: function( cur, result, dir, elem ) {
- result = result || 1;
- var num = 0;
-
- for ( ; cur; cur = cur[dir] ) {
- if ( cur.nodeType === 1 && ++num === result ) {
- break;
- }
- }
-
- return cur;
- },
-
- sibling: function( n, elem ) {
- var r = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- r.push( n );
- }
- }
-
- return r;
- }
-});
-var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
- rleadingWhitespace = /^\s+/,
- rxhtmlTag = /(<([\w:]+)[^>]*?)\/>/g,
- rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
- rtagName = /<([\w:]+)/,
- rtbody = /<tbody/i,
- rhtml = /<|&#?\w+;/,
- rnocache = /<script|<object|<embed|<option|<style/i,
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, // checked="checked" or checked (html5)
- fcloseTag = function( all, front, tag ) {
- return rselfClosing.test( tag ) ?
- all :
- front + "></" + tag + ">";
- },
- wrapMap = {
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
- legend: [ 1, "<fieldset>", "</fieldset>" ],
- thead: [ 1, "<table>", "</table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
- col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
- area: [ 1, "<map>", "</map>" ],
- _default: [ 0, "", "" ]
- };
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
- wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
- text: function( text ) {
- if ( jQuery.isFunction(text) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.text( text.call(this, i, self.text()) );
- });
- }
-
- if ( typeof text !== "object" && text !== undefined ) {
- return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
- }
-
- return jQuery.text( this );
- },
-
- wrapAll: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapAll( html.call(this, i) );
- });
- }
-
- if ( this[0] ) {
- // The elements to wrap the target around
- var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
- if ( this[0].parentNode ) {
- wrap.insertBefore( this[0] );
- }
-
- wrap.map(function() {
- var elem = this;
-
- while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
- elem = elem.firstChild;
- }
-
- return elem;
- }).append(this);
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapInner( html.call(this, i) );
- });
- }
-
- return this.each(function() {
- var self = jQuery( this ), contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- });
- },
-
- wrap: function( html ) {
- return this.each(function() {
- jQuery( this ).wrapAll( html );
- });
- },
-
- unwrap: function() {
- return this.parent().each(function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- }).end();
- },
-
- append: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.appendChild( elem );
- }
- });
- },
-
- prepend: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.insertBefore( elem, this.firstChild );
- }
- });
- },
-
- before: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this );
- });
- } else if ( arguments.length ) {
- var set = jQuery(arguments[0]);
- set.push.apply( set, this.toArray() );
- return this.pushStack( set, "before", arguments );
- }
- },
-
- after: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- });
- } else if ( arguments.length ) {
- var set = this.pushStack( this, "after", arguments );
- set.push.apply( set, jQuery(arguments[0]).toArray() );
- return set;
- }
- },
-
- // keepData is for internal use only--do not document
- remove: function( selector, keepData ) {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
- if ( !keepData && elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- jQuery.cleanData( [ elem ] );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
- }
- }
-
- return this;
- },
-
- empty: function() {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- }
-
- // Remove any remaining nodes
- while ( elem.firstChild ) {
- elem.removeChild( elem.firstChild );
- }
- }
-
- return this;
- },
-
- clone: function( events ) {
- // Do the clone
- var ret = this.map(function() {
- if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
- // IE copies events bound via attachEvent when
- // using cloneNode. Calling detachEvent on the
- // clone will also remove the events from the orignal
- // In order to get around this, we use innerHTML.
- // Unfortunately, this means some modifications to
- // attributes in IE that are actually only stored
- // as properties will not be copied (such as the
- // the name attribute on an input).
- var html = this.outerHTML, ownerDocument = this.ownerDocument;
- if ( !html ) {
- var div = ownerDocument.createElement("div");
- div.appendChild( this.cloneNode(true) );
- html = div.innerHTML;
- }
-
- return jQuery.clean([html.replace(rinlinejQuery, "")
- // Handle the case in IE 8 where action=/test/> self-closes a tag
- .replace(/=([^="'>\s]+\/)>/g, '="$1">')
- .replace(rleadingWhitespace, "")], ownerDocument)[0];
- } else {
- return this.cloneNode(true);
- }
- });
-
- // Copy the events from the original to the clone
- if ( events === true ) {
- cloneCopyEvent( this, ret );
- cloneCopyEvent( this.find("*"), ret.find("*") );
- }
-
- // Return the cloned set
- return ret;
- },
-
- html: function( value ) {
- if ( value === undefined ) {
- return this[0] && this[0].nodeType === 1 ?
- this[0].innerHTML.replace(rinlinejQuery, "") :
- null;
-
- // See if we can take a shortcut and just use innerHTML
- } else if ( typeof value === "string" && !rnocache.test( value ) &&
- (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
- !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
-
- value = value.replace(rxhtmlTag, fcloseTag);
-
- try {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( this[i].nodeType === 1 ) {
- jQuery.cleanData( this[i].getElementsByTagName("*") );
- this[i].innerHTML = value;
- }
- }
-
- // If using innerHTML throws an exception, use the fallback method
- } catch(e) {
- this.empty().append( value );
- }
-
- } else if ( jQuery.isFunction( value ) ) {
- this.each(function(i){
- var self = jQuery(this), old = self.html();
- self.empty().append(function(){
- return value.call( this, i, old );
- });
- });
-
- } else {
- this.empty().append( value );
- }
-
- return this;
- },
-
- replaceWith: function( value ) {
- if ( this[0] && this[0].parentNode ) {
- // Make sure that the elements are removed from the DOM before they are inserted
- // this can help fix replacing a parent with child elements
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this), old = self.html();
- self.replaceWith( value.call( this, i, old ) );
- });
- }
-
- if ( typeof value !== "string" ) {
- value = jQuery(value).detach();
- }
-
- return this.each(function() {
- var next = this.nextSibling, parent = this.parentNode;
-
- jQuery(this).remove();
-
- if ( next ) {
- jQuery(next).before( value );
- } else {
- jQuery(parent).append( value );
- }
- });
- } else {
- return this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value );
- }
- },
-
- detach: function( selector ) {
- return this.remove( selector, true );
- },
-
- domManip: function( args, table, callback ) {
- var results, first, value = args[0], scripts = [], fragment, parent;
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
- return this.each(function() {
- jQuery(this).domManip( args, table, callback, true );
- });
- }
-
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- args[0] = value.call(this, i, table ? self.html() : undefined);
- self.domManip( args, table, callback );
- });
- }
-
- if ( this[0] ) {
- parent = value && value.parentNode;
-
- // If we're in a fragment, just use that instead of building a new one
- if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
- results = { fragment: parent };
-
- } else {
- results = buildFragment( args, this, scripts );
- }
-
- fragment = results.fragment;
-
- if ( fragment.childNodes.length === 1 ) {
- first = fragment = fragment.firstChild;
- } else {
- first = fragment.firstChild;
- }
-
- if ( first ) {
- table = table && jQuery.nodeName( first, "tr" );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- callback.call(
- table ?
- root(this[i], first) :
- this[i],
- i > 0 || results.cacheable || this.length > 1 ?
- fragment.cloneNode(true) :
- fragment
- );
- }
- }
-
- if ( scripts.length ) {
- jQuery.each( scripts, evalScript );
- }
- }
-
- return this;
-
- function root( elem, cur ) {
- return jQuery.nodeName(elem, "table") ?
- (elem.getElementsByTagName("tbody")[0] ||
- elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
- elem;
- }
- }
-});
-
-function cloneCopyEvent(orig, ret) {
- var i = 0;
-
- ret.each(function() {
- if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) {
- return;
- }
-
- var oldData = jQuery.data( orig[i++] ), curData = jQuery.data( this, oldData ), events = oldData && oldData.events;
-
- if ( events ) {
- delete curData.handle;
- curData.events = {};
-
- for ( var type in events ) {
- for ( var handler in events[ type ] ) {
- jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
- }
- }
- }
- });
-}
-
-function buildFragment( args, nodes, scripts ) {
- var fragment, cacheable, cacheresults,
- doc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document);
-
- // Only cache "small" (1/2 KB) strings that are associated with the main document
- // Cloning options loses the selected state, so don't cache them
- // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
- // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
- if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
- !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
-
- cacheable = true;
- cacheresults = jQuery.fragments[ args[0] ];
- if ( cacheresults ) {
- if ( cacheresults !== 1 ) {
- fragment = cacheresults;
- }
- }
- }
-
- if ( !fragment ) {
- fragment = doc.createDocumentFragment();
- jQuery.clean( args, doc, fragment, scripts );
- }
-
- if ( cacheable ) {
- jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;
- }
-
- return { fragment: fragment, cacheable: cacheable };
-}
-
-jQuery.fragments = {};
-
-jQuery.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var ret = [], insert = jQuery( selector ),
- parent = this.length === 1 && this[0].parentNode;
-
- if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
- insert[ original ]( this[0] );
- return this;
-
- } else {
- for ( var i = 0, l = insert.length; i < l; i++ ) {
- var elems = (i > 0 ? this.clone(true) : this).get();
- jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
- ret = ret.concat( elems );
- }
-
- return this.pushStack( ret, name, insert.selector );
- }
- };
-});
-
-jQuery.extend({
- clean: function( elems, context, fragment, scripts ) {
- context = context || document;
-
- // !context.createElement fails in IE with an error but returns typeof 'object'
- if ( typeof context.createElement === "undefined" ) {
- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
- }
-
- var ret = [];
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( typeof elem === "number" ) {
- elem += "";
- }
-
- if ( !elem ) {
- continue;
- }
-
- // Convert html string into DOM nodes
- if ( typeof elem === "string" && !rhtml.test( elem ) ) {
- elem = context.createTextNode( elem );
-
- } else if ( typeof elem === "string" ) {
- // Fix "XHTML"-style tags in all browsers
- elem = elem.replace(rxhtmlTag, fcloseTag);
-
- // Trim whitespace, otherwise indexOf won't work as expected
- var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(),
- wrap = wrapMap[ tag ] || wrapMap._default,
- depth = wrap[0],
- div = context.createElement("div");
-
- // Go to html and back, then peel off extra wrappers
- div.innerHTML = wrap[1] + elem + wrap[2];
-
- // Move to the right depth
- while ( depth-- ) {
- div = div.lastChild;
- }
-
- // Remove IE's autoinserted <tbody> from table fragments
- if ( !jQuery.support.tbody ) {
-
- // String was a <table>, *may* have spurious <tbody>
- var hasBody = rtbody.test(elem),
- tbody = tag === "table" && !hasBody ?
- div.firstChild && div.firstChild.childNodes :
-
- // String was a bare <thead> or <tfoot>
- wrap[1] === "<table>" && !hasBody ?
- div.childNodes :
- [];
-
- for ( var j = tbody.length - 1; j >= 0 ; --j ) {
- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
- tbody[ j ].parentNode.removeChild( tbody[ j ] );
- }
- }
-
- }
-
- // IE completely kills leading whitespace when innerHTML is used
- if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
- div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
- }
-
- elem = div.childNodes;
- }
-
- if ( elem.nodeType ) {
- ret.push( elem );
- } else {
- ret = jQuery.merge( ret, elem );
- }
- }
-
- if ( fragment ) {
- for ( var i = 0; ret[i]; i++ ) {
- if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
- scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
-
- } else {
- if ( ret[i].nodeType === 1 ) {
- ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
- }
- fragment.appendChild( ret[i] );
- }
- }
- }
-
- return ret;
- },
-
- cleanData: function( elems ) {
- var data, id, cache = jQuery.cache,
- special = jQuery.event.special,
- deleteExpando = jQuery.support.deleteExpando;
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- id = elem[ jQuery.expando ];
-
- if ( id ) {
- data = cache[ id ];
-
- if ( data.events ) {
- for ( var type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- } else {
- removeEvent( elem, type, data.handle );
- }
- }
- }
-
- if ( deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
- }
-
- delete cache[ id ];
- }
- }
- }
-});
-// exclude the following css properties to add px
-var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
- ralpha = /alpha\([^)]*\)/,
- ropacity = /opacity=([^)]*)/,
- rfloat = /float/i,
- rdashAlpha = /-([a-z])/ig,
- rupper = /([A-Z])/g,
- rnumpx = /^-?\d+(?:px)?$/i,
- rnum = /^-?\d/,
-
- cssShow = { position: "absolute", visibility: "hidden", display:"block" },
- cssWidth = [ "Left", "Right" ],
- cssHeight = [ "Top", "Bottom" ],
-
- // cache check for defaultView.getComputedStyle
- getComputedStyle = document.defaultView && document.defaultView.getComputedStyle,
- // normalize float css property
- styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat",
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn.css = function( name, value ) {
- return access( this, name, value, true, function( elem, name, value ) {
- if ( value === undefined ) {
- return jQuery.curCSS( elem, name );
- }
-
- if ( typeof value === "number" && !rexclude.test(name) ) {
- value += "px";
- }
-
- jQuery.style( elem, name, value );
- });
-};
-
-jQuery.extend({
- style: function( elem, name, value ) {
- // don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
- return undefined;
- }
-
- // ignore negative width and height values #1599
- if ( (name === "width" || name === "height") && parseFloat(value) < 0 ) {
- value = undefined;
- }
-
- var style = elem.style || elem, set = value !== undefined;
-
- // IE uses filters for opacity
- if ( !jQuery.support.opacity && name === "opacity" ) {
- if ( set ) {
- // IE has trouble with opacity if it does not have layout
- // Force it by setting the zoom level
- style.zoom = 1;
-
- // Set the alpha filter to set the opacity
- var opacity = parseInt( value, 10 ) + "" === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")";
- var filter = style.filter || jQuery.curCSS( elem, "filter" ) || "";
- style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity;
- }
-
- return style.filter && style.filter.indexOf("opacity=") >= 0 ?
- (parseFloat( ropacity.exec(style.filter)[1] ) / 100) + "":
- "";
- }
-
- // Make sure we're using the right name for getting the float value
- if ( rfloat.test( name ) ) {
- name = styleFloat;
- }
-
- name = name.replace(rdashAlpha, fcamelCase);
-
- if ( set ) {
- style[ name ] = value;
- }
-
- return style[ name ];
- },
-
- css: function( elem, name, force, extra ) {
- if ( name === "width" || name === "height" ) {
- var val, props = cssShow, which = name === "width" ? cssWidth : cssHeight;
-
- function getWH() {
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight;
-
- if ( extra === "border" ) {
- return;
- }
-
- jQuery.each( which, function() {
- if ( !extra ) {
- val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
- }
-
- if ( extra === "margin" ) {
- val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
- } else {
- val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
- }
- });
- }
-
- if ( elem.offsetWidth !== 0 ) {
- getWH();
- } else {
- jQuery.swap( elem, props, getWH );
- }
-
- return Math.max(0, Math.round(val));
- }
-
- return jQuery.curCSS( elem, name, force );
- },
-
- curCSS: function( elem, name, force ) {
- var ret, style = elem.style, filter;
-
- // IE uses filters for opacity
- if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
- ret = ropacity.test(elem.currentStyle.filter || "") ?
- (parseFloat(RegExp.$1) / 100) + "" :
- "";
-
- return ret === "" ?
- "1" :
- ret;
- }
-
- // Make sure we're using the right name for getting the float value
- if ( rfloat.test( name ) ) {
- name = styleFloat;
- }
-
- if ( !force && style && style[ name ] ) {
- ret = style[ name ];
-
- } else if ( getComputedStyle ) {
-
- // Only "float" is needed here
- if ( rfloat.test( name ) ) {
- name = "float";
- }
-
- name = name.replace( rupper, "-$1" ).toLowerCase();
-
- var defaultView = elem.ownerDocument.defaultView;
-
- if ( !defaultView ) {
- return null;
- }
-
- var computedStyle = defaultView.getComputedStyle( elem, null );
-
- if ( computedStyle ) {
- ret = computedStyle.getPropertyValue( name );
- }
-
- // We should always get a number back from opacity
- if ( name === "opacity" && ret === "" ) {
- ret = "1";
- }
-
- } else if ( elem.currentStyle ) {
- var camelCase = name.replace(rdashAlpha, fcamelCase);
-
- ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
- // Remember the original values
- var left = style.left, rsLeft = elem.runtimeStyle.left;
-
- // Put in the new values to get a computed value out
- elem.runtimeStyle.left = elem.currentStyle.left;
- style.left = camelCase === "fontSize" ? "1em" : (ret || 0);
- ret = style.pixelLeft + "px";
-
- // Revert the changed values
- style.left = left;
- elem.runtimeStyle.left = rsLeft;
- }
- }
-
- return ret;
- },
-
- // A method for quickly swapping in/out CSS properties to get correct calculations
- swap: function( elem, options, callback ) {
- var old = {};
-
- // Remember the old values, and insert the new ones
- for ( var name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- callback.call( elem );
-
- // Revert the old values
- for ( var name in options ) {
- elem.style[ name ] = old[ name ];
- }
- }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.hidden = function( elem ) {
- var width = elem.offsetWidth, height = elem.offsetHeight,
- skip = elem.nodeName.toLowerCase() === "tr";
-
- return width === 0 && height === 0 && !skip ?
- true :
- width > 0 && height > 0 && !skip ?
- false :
- jQuery.curCSS(elem, "display") === "none";
- };
-
- jQuery.expr.filters.visible = function( elem ) {
- return !jQuery.expr.filters.hidden( elem );
- };
-}
-var jsc = now(),
- rscript = /<script(.|\s)*?\/script>/gi,
- rselectTextarea = /select|textarea/i,
- rinput = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,
- jsre = /=\?(&|$)/,
- rquery = /\?/,
- rts = /(\?|&)_=.*?(&|$)/,
- rurl = /^(\w+:)?\/\/([^\/?#]+)/,
- r20 = /%20/g,
-
- // Keep a copy of the old load method
- _load = jQuery.fn.load;
-
-jQuery.fn.extend({
- load: function( url, params, callback ) {
- if ( typeof url !== "string" ) {
- return _load.call( this, url );
-
- // Don't do a request if no elements are being requested
- } else if ( !this.length ) {
- return this;
- }
-
- var off = url.indexOf(" ");
- if ( off >= 0 ) {
- var selector = url.slice(off, url.length);
- url = url.slice(0, off);
- }
-
- // Default to a GET request
- var type = "GET";
-
- // If the second parameter was provided
- if ( params ) {
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
- // We assume that it's the callback
- callback = params;
- params = null;
-
- // Otherwise, build a param string
- } else if ( typeof params === "object" ) {
- params = jQuery.param( params, jQuery.ajaxSettings.traditional );
- type = "POST";
- }
- }
-
- var self = this;
-
- // Request the remote document
- jQuery.ajax({
- url: url,
- type: type,
- dataType: "html",
- data: params,
- complete: function( res, status ) {
- // If successful, inject the HTML into all the matched elements
- if ( status === "success" || status === "notmodified" ) {
- // See if a selector was specified
- self.html( selector ?
- // Create a dummy div to hold the results
- jQuery("<div />")
- // inject the contents of the document in, removing the scripts
- // to avoid any 'Permission Denied' errors in IE
- .append(res.responseText.replace(rscript, ""))
-
- // Locate the specified elements
- .find(selector) :
-
- // If not, just inject the full result
- res.responseText );
- }
-
- if ( callback ) {
- self.each( callback, [res.responseText, status, res] );
- }
- }
- });
-
- return this;
- },
-
- serialize: function() {
- return jQuery.param(this.serializeArray());
- },
- serializeArray: function() {
- return this.map(function() {
- return this.elements ? jQuery.makeArray(this.elements) : this;
- })
- .filter(function() {
- return this.name && !this.disabled &&
- (this.checked || rselectTextarea.test(this.nodeName) ||
- rinput.test(this.type));
- })
- .map(function( i, elem ) {
- var val = jQuery(this).val();
-
- return val == null ?
- null :
- jQuery.isArray(val) ?
- jQuery.map( val, function( val, i ) {
- return { name: elem.name, value: val };
- }) :
- { name: elem.name, value: val };
- }).get();
- }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function( i, o ) {
- jQuery.fn[o] = function( f ) {
- return this.bind(o, f);
- };
-});
-
-jQuery.extend({
-
- get: function( url, data, callback, type ) {
- // shift arguments if data argument was omited
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = null;
- }
-
- return jQuery.ajax({
- type: "GET",
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- },
-
- getScript: function( url, callback ) {
- return jQuery.get(url, null, callback, "script");
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get(url, data, callback, "json");
- },
-
- post: function( url, data, callback, type ) {
- // shift arguments if data argument was omited
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = {};
- }
-
- return jQuery.ajax({
- type: "POST",
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- },
-
- ajaxSetup: function( settings ) {
- jQuery.extend( jQuery.ajaxSettings, settings );
- },
-
- ajaxSettings: {
- url: location.href,
- global: true,
- type: "GET",
- contentType: "application/x-www-form-urlencoded",
- processData: true,
- async: true,
- /*
- timeout: 0,
- data: null,
- username: null,
- password: null,
- traditional: false,
- */
- // Create the request object; Microsoft failed to properly
- // implement the XMLHttpRequest in IE7 (can't request local files),
- // so we use the ActiveXObject when it is available
- // This function can be overriden by calling jQuery.ajaxSetup
- xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ?
- function() {
- return new window.XMLHttpRequest();
- } :
- function() {
- try {
- return new window.ActiveXObject("Microsoft.XMLHTTP");
- } catch(e) {}
- },
- accepts: {
- xml: "application/xml, text/xml",
- html: "text/html",
- script: "text/javascript, application/javascript",
- json: "application/json, text/javascript",
- text: "text/plain",
- _default: "*/*"
- }
- },
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajax: function( origSettings ) {
- var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings);
-
- var jsonp, status, data,
- callbackContext = origSettings && origSettings.context || s,
- type = s.type.toUpperCase();
-
- // convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Handle JSONP Parameter Callbacks
- if ( s.dataType === "jsonp" ) {
- if ( type === "GET" ) {
- if ( !jsre.test( s.url ) ) {
- s.url += (rquery.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?";
- }
- } else if ( !s.data || !jsre.test(s.data) ) {
- s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
- }
- s.dataType = "json";
- }
-
- // Build temporary JSONP function
- if ( s.dataType === "json" && (s.data && jsre.test(s.data) || jsre.test(s.url)) ) {
- jsonp = s.jsonpCallback || ("jsonp" + jsc++);
-
- // Replace the =? sequence both in the query string and the data
- if ( s.data ) {
- s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
- }
-
- s.url = s.url.replace(jsre, "=" + jsonp + "$1");
-
- // We need to make sure
- // that a JSONP style response is executed properly
- s.dataType = "script";
-
- // Handle JSONP-style loading
- window[ jsonp ] = window[ jsonp ] || function( tmp ) {
- data = tmp;
- success();
- complete();
- // Garbage collect
- window[ jsonp ] = undefined;
-
- try {
- delete window[ jsonp ];
- } catch(e) {}
-
- if ( head ) {
- head.removeChild( script );
- }
- };
- }
-
- if ( s.dataType === "script" && s.cache === null ) {
- s.cache = false;
- }
-
- if ( s.cache === false && type === "GET" ) {
- var ts = now();
-
- // try replacing _= if it is there
- var ret = s.url.replace(rts, "$1_=" + ts + "$2");
-
- // if nothing was replaced, add timestamp to the end
- s.url = ret + ((ret === s.url) ? (rquery.test(s.url) ? "&" : "?") + "_=" + ts : "");
- }
-
- // If data is available, append data to url for get requests
- if ( s.data && type === "GET" ) {
- s.url += (rquery.test(s.url) ? "&" : "?") + s.data;
- }
-
- // Watch for a new set of requests
- if ( s.global && ! jQuery.active++ ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // Matches an absolute URL, and saves the domain
- var parts = rurl.exec( s.url ),
- remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host);
-
- // If we're requesting a remote document
- // and trying to load JSON or Script with a GET
- if ( s.dataType === "script" && type === "GET" && remote ) {
- var head = document.getElementsByTagName("head")[0] || document.documentElement;
- var script = document.createElement("script");
- script.src = s.url;
- if ( s.scriptCharset ) {
- script.charset = s.scriptCharset;
- }
-
- // Handle Script loading
- if ( !jsonp ) {
- var done = false;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function() {
- if ( !done && (!this.readyState ||
- this.readyState === "loaded" || this.readyState === "complete") ) {
- done = true;
- success();
- complete();
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = null;
- if ( head && script.parentNode ) {
- head.removeChild( script );
- }
- }
- };
- }
-
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709 and #4378).
- head.insertBefore( script, head.firstChild );
-
- // We handle everything using the script element injection
- return undefined;
- }
-
- var requestDone = false;
-
- // Create the request object
- var xhr = s.xhr();
-
- if ( !xhr ) {
- return;
- }
-
- // Open the socket
- // Passing null username, generates a login popup on Opera (#2865)
- if ( s.username ) {
- xhr.open(type, s.url, s.async, s.username, s.password);
- } else {
- xhr.open(type, s.url, s.async);
- }
-
- // Need an extra try/catch for cross domain requests in Firefox 3
- try {
- // Set the correct header, if data is being sent
- if ( s.data || origSettings && origSettings.contentType ) {
- xhr.setRequestHeader("Content-Type", s.contentType);
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[s.url] ) {
- xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url]);
- }
-
- if ( jQuery.etag[s.url] ) {
- xhr.setRequestHeader("If-None-Match", jQuery.etag[s.url]);
- }
- }
-
- // Set header so the called script knows that it's an XMLHttpRequest
- // Only send the header if it's not a remote XHR
- if ( !remote ) {
- xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
- }
-
- // Set the Accepts header for the server, depending on the dataType
- xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
- s.accepts[ s.dataType ] + ", */*" :
- s.accepts._default );
- } catch(e) {}
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend && s.beforeSend.call(callbackContext, xhr, s) === false ) {
- // Handle the global AJAX counter
- if ( s.global && ! --jQuery.active ) {
- jQuery.event.trigger( "ajaxStop" );
- }
-
- // close opended socket
- xhr.abort();
- return false;
- }
-
- if ( s.global ) {
- trigger("ajaxSend", [xhr, s]);
- }
-
- // Wait for a response to come back
- var onreadystatechange = xhr.onreadystatechange = function( isTimeout ) {
- // The request was aborted
- if ( !xhr || xhr.readyState === 0 || isTimeout === "abort" ) {
- // Opera doesn't call onreadystatechange before this point
- // so we simulate the call
- if ( !requestDone ) {
- complete();
- }
-
- requestDone = true;
- if ( xhr ) {
- xhr.onreadystatechange = jQuery.noop;
- }
-
- // The transfer is complete and the data is available, or the request timed out
- } else if ( !requestDone && xhr && (xhr.readyState === 4 || isTimeout === "timeout") ) {
- requestDone = true;
- xhr.onreadystatechange = jQuery.noop;
-
- status = isTimeout === "timeout" ?
- "timeout" :
- !jQuery.httpSuccess( xhr ) ?
- "error" :
- s.ifModified && jQuery.httpNotModified( xhr, s.url ) ?
- "notmodified" :
- "success";
-
- var errMsg;
-
- if ( status === "success" ) {
- // Watch for, and catch, XML document parse errors
- try {
- // process the data (runs the xml through httpData regardless of callback)
- data = jQuery.httpData( xhr, s.dataType, s );
- } catch(err) {
- status = "parsererror";
- errMsg = err;
- }
- }
-
- // Make sure that the request was successful or notmodified
- if ( status === "success" || status === "notmodified" ) {
- // JSONP handles its own success callback
- if ( !jsonp ) {
- success();
- }
- } else {
- jQuery.handleError(s, xhr, status, errMsg);
- }
-
- // Fire the complete handlers
- complete();
-
- if ( isTimeout === "timeout" ) {
- xhr.abort();
- }
-
- // Stop memory leaks
- if ( s.async ) {
- xhr = null;
- }
- }
- };
-
- // Override the abort handler, if we can (IE doesn't allow it, but that's OK)
- // Opera doesn't fire onreadystatechange at all on abort
- try {
- var oldAbort = xhr.abort;
- xhr.abort = function() {
- if ( xhr ) {
- oldAbort.call( xhr );
- }
-
- onreadystatechange( "abort" );
- };
- } catch(e) { }
-
- // Timeout checker
- if ( s.async && s.timeout > 0 ) {
- setTimeout(function() {
- // Check to see if the request is still happening
- if ( xhr && !requestDone ) {
- onreadystatechange( "timeout" );
- }
- }, s.timeout);
- }
-
- // Send the data
- try {
- xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null );
- } catch(e) {
- jQuery.handleError(s, xhr, null, e);
- // Fire the complete handlers
- complete();
- }
-
- // firefox 1.5 doesn't fire statechange for sync requests
- if ( !s.async ) {
- onreadystatechange();
- }
-
- function success() {
- // If a local callback was specified, fire it and pass it the data
- if ( s.success ) {
- s.success.call( callbackContext, data, status, xhr );
- }
-
- // Fire the global callback
- if ( s.global ) {
- trigger( "ajaxSuccess", [xhr, s] );
- }
- }
-
- function complete() {
- // Process result
- if ( s.complete ) {
- s.complete.call( callbackContext, xhr, status);
- }
-
- // The request was completed
- if ( s.global ) {
- trigger( "ajaxComplete", [xhr, s] );
- }
-
- // Handle the global AJAX counter
- if ( s.global && ! --jQuery.active ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
-
- function trigger(type, args) {
- (s.context ? jQuery(s.context) : jQuery.event).trigger(type, args);
- }
-
- // return XMLHttpRequest to allow aborting the request etc.
- return xhr;
- },
-
- handleError: function( s, xhr, status, e ) {
- // If a local callback was specified, fire it
- if ( s.error ) {
- s.error.call( s.context || s, xhr, status, e );
- }
-
- // Fire the global callback
- if ( s.global ) {
- (s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] );
- }
- },
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Determines if an XMLHttpRequest was successful or not
- httpSuccess: function( xhr ) {
- try {
- // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
- return !xhr.status && location.protocol === "file:" ||
- // Opera returns 0 when status is 304
- ( xhr.status >= 200 && xhr.status < 300 ) ||
- xhr.status === 304 || xhr.status === 1223 || xhr.status === 0;
- } catch(e) {}
-
- return false;
- },
-
- // Determines if an XMLHttpRequest returns NotModified
- httpNotModified: function( xhr, url ) {
- var lastModified = xhr.getResponseHeader("Last-Modified"),
- etag = xhr.getResponseHeader("Etag");
-
- if ( lastModified ) {
- jQuery.lastModified[url] = lastModified;
- }
-
- if ( etag ) {
- jQuery.etag[url] = etag;
- }
-
- // Opera returns 0 when status is 304
- return xhr.status === 304 || xhr.status === 0;
- },
-
- httpData: function( xhr, type, s ) {
- var ct = xhr.getResponseHeader("content-type") || "",
- xml = type === "xml" || !type && ct.indexOf("xml") >= 0,
- data = xml ? xhr.responseXML : xhr.responseText;
-
- if ( xml && data.documentElement.nodeName === "parsererror" ) {
- jQuery.error( "parsererror" );
- }
-
- // Allow a pre-filtering function to sanitize the response
- // s is checked to keep backwards compatibility
- if ( s && s.dataFilter ) {
- data = s.dataFilter( data, type );
- }
-
- // The filter can actually parse the response
- if ( typeof data === "string" ) {
- // Get the JavaScript object, if JSON is used.
- if ( type === "json" || !type && ct.indexOf("json") >= 0 ) {
- data = jQuery.parseJSON( data );
-
- // If the type is "script", eval it in global context
- } else if ( type === "script" || !type && ct.indexOf("javascript") >= 0 ) {
- jQuery.globalEval( data );
- }
- }
-
- return data;
- },
-
- // Serialize an array of form elements or a set of
- // key/values into a query string
- param: function( a, traditional ) {
- var s = [];
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray(a) || a.jquery ) {
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- });
-
- } else {
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( var prefix in a ) {
- buildParams( prefix, a[prefix] );
- }
- }
-
- // Return the resulting serialization
- return s.join("&").replace(r20, "+");
-
- function buildParams( prefix, obj ) {
- if ( jQuery.isArray(obj) ) {
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || /\[\]$/.test( prefix ) ) {
- // Treat each array item as a scalar.
- add( prefix, v );
- } else {
- // If array item is non-scalar (array or object), encode its
- // numeric index to resolve deserialization ambiguity issues.
- // Note that rack (as of 1.0.0) can't currently deserialize
- // nested arrays properly, and attempting to do so may cause
- // a server error. Possible fixes are to modify rack's
- // deserialization algorithm or to provide an option or flag
- // to force array serialization to be shallow.
- buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v );
- }
- });
-
- } else if ( !traditional && obj != null && typeof obj === "object" ) {
- // Serialize object item.
- jQuery.each( obj, function( k, v ) {
- buildParams( prefix + "[" + k + "]", v );
- });
-
- } else {
- // Serialize scalar item.
- add( prefix, obj );
- }
- }
-
- function add( key, value ) {
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction(value) ? value() : value;
- s[ s.length ] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
- }
- }
-});
-var elemdisplay = {},
- rfxtypes = /toggle|show|hide/,
- rfxnum = /^([+-]=)?([\d+-.]+)(.*)$/,
- timerId,
- fxAttrs = [
- // height animations
- [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
- // width animations
- [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
- // opacity animations
- [ "opacity" ]
- ];
-
-jQuery.fn.extend({
- show: function( speed, callback ) {
- if ( speed || speed === 0) {
- return this.animate( genFx("show", 3), speed, callback);
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var old = jQuery.data(this[i], "olddisplay");
-
- this[i].style.display = old || "";
-
- if ( jQuery.css(this[i], "display") === "none" ) {
- var nodeName = this[i].nodeName, display;
-
- if ( elemdisplay[ nodeName ] ) {
- display = elemdisplay[ nodeName ];
-
- } else {
- var elem = jQuery("<" + nodeName + " />").appendTo("body");
-
- display = elem.css("display");
-
- if ( display === "none" ) {
- display = "block";
- }
-
- elem.remove();
-
- elemdisplay[ nodeName ] = display;
- }
-
- jQuery.data(this[i], "olddisplay", display);
- }
- }
-
- // Set the display of the elements in a second loop
- // to avoid the constant reflow
- for ( var j = 0, k = this.length; j < k; j++ ) {
- this[j].style.display = jQuery.data(this[j], "olddisplay") || "";
- }
-
- return this;
- }
- },
-
- hide: function( speed, callback ) {
- if ( speed || speed === 0 ) {
- return this.animate( genFx("hide", 3), speed, callback);
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var old = jQuery.data(this[i], "olddisplay");
- if ( !old && old !== "none" ) {
- jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
- }
- }
-
- // Set the display of the elements in a second loop
- // to avoid the constant reflow
- for ( var j = 0, k = this.length; j < k; j++ ) {
- this[j].style.display = "none";
- }
-
- return this;
- }
- },
-
- // Save the old toggle function
- _toggle: jQuery.fn.toggle,
-
- toggle: function( fn, fn2 ) {
- var bool = typeof fn === "boolean";
-
- if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
- this._toggle.apply( this, arguments );
-
- } else if ( fn == null || bool ) {
- this.each(function() {
- var state = bool ? fn : jQuery(this).is(":hidden");
- jQuery(this)[ state ? "show" : "hide" ]();
- });
-
- } else {
- this.animate(genFx("toggle", 3), fn, fn2);
- }
-
- return this;
- },
-
- fadeTo: function( speed, to, callback ) {
- return this.filter(":hidden").css("opacity", 0).show().end()
- .animate({opacity: to}, speed, callback);
- },
-
- animate: function( prop, speed, easing, callback ) {
- var optall = jQuery.speed(speed, easing, callback);
-
- if ( jQuery.isEmptyObject( prop ) ) {
- return this.each( optall.complete );
- }
-
- return this[ optall.queue === false ? "each" : "queue" ](function() {
- var opt = jQuery.extend({}, optall), p,
- hidden = this.nodeType === 1 && jQuery(this).is(":hidden"),
- self = this;
-
- for ( p in prop ) {
- var name = p.replace(rdashAlpha, fcamelCase);
-
- if ( p !== name ) {
- prop[ name ] = prop[ p ];
- delete prop[ p ];
- p = name;
- }
-
- if ( prop[p] === "hide" && hidden || prop[p] === "show" && !hidden ) {
- return opt.complete.call(this);
- }
-
- if ( ( p === "height" || p === "width" ) && this.style ) {
- // Store display property
- opt.display = jQuery.css(this, "display");
-
- // Make sure that nothing sneaks out
- opt.overflow = this.style.overflow;
- }
-
- if ( jQuery.isArray( prop[p] ) ) {
- // Create (if needed) and add to specialEasing
- (opt.specialEasing = opt.specialEasing || {})[p] = prop[p][1];
- prop[p] = prop[p][0];
- }
- }
-
- if ( opt.overflow != null ) {
- this.style.overflow = "hidden";
- }
-
- opt.curAnim = jQuery.extend({}, prop);
-
- jQuery.each( prop, function( name, val ) {
- var e = new jQuery.fx( self, opt, name );
-
- if ( rfxtypes.test(val) ) {
- e[ val === "toggle" ? hidden ? "show" : "hide" : val ]( prop );
-
- } else {
- var parts = rfxnum.exec(val),
- start = e.cur(true) || 0;
-
- if ( parts ) {
- var end = parseFloat( parts[2] ),
- unit = parts[3] || "px";
-
- // We need to compute starting value
- if ( unit !== "px" ) {
- self.style[ name ] = (end || 1) + unit;
- start = ((end || 1) / e.cur(true)) * start;
- self.style[ name ] = start + unit;
- }
-
- // If a +=/-= token was provided, we're doing a relative animation
- if ( parts[1] ) {
- end = ((parts[1] === "-=" ? -1 : 1) * end) + start;
- }
-
- e.custom( start, end, unit );
-
- } else {
- e.custom( start, val, "" );
- }
- }
- });
-
- // For JS strict compliance
- return true;
- });
- },
-
- stop: function( clearQueue, gotoEnd ) {
- var timers = jQuery.timers;
-
- if ( clearQueue ) {
- this.queue([]);
- }
-
- this.each(function() {
- // go in reverse order so anything added to the queue during the loop is ignored
- for ( var i = timers.length - 1; i >= 0; i-- ) {
- if ( timers[i].elem === this ) {
- if (gotoEnd) {
- // force the next step to be the last
- timers[i](true);
- }
-
- timers.splice(i, 1);
- }
- }
- });
-
- // start the next in the queue if the last step wasn't forced
- if ( !gotoEnd ) {
- this.dequeue();
- }
-
- return this;
- }
-
-});
-
-// Generate shortcuts for custom animations
-jQuery.each({
- slideDown: genFx("show", 1),
- slideUp: genFx("hide", 1),
- slideToggle: genFx("toggle", 1),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, callback ) {
- return this.animate( props, speed, callback );
- };
-});
-
-jQuery.extend({
- speed: function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? speed : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
- jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
-
- // Queueing
- opt.old = opt.complete;
- opt.complete = function() {
- if ( opt.queue !== false ) {
- jQuery(this).dequeue();
- }
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
- };
-
- return opt;
- },
-
- easing: {
- linear: function( p, n, firstNum, diff ) {
- return firstNum + diff * p;
- },
- swing: function( p, n, firstNum, diff ) {
- return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
- }
- },
-
- timers: [],
-
- fx: function( elem, options, prop ) {
- this.options = options;
- this.elem = elem;
- this.prop = prop;
-
- if ( !options.orig ) {
- options.orig = {};
- }
- }
-
-});
-
-jQuery.fx.prototype = {
- // Simple function for setting a style value
- update: function() {
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
-
- // Set display property to block for height/width animations
- if ( ( this.prop === "height" || this.prop === "width" ) && this.elem.style ) {
- this.elem.style.display = "block";
- }
- },
-
- // Get the current size
- cur: function( force ) {
- if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
- return this.elem[ this.prop ];
- }
-
- var r = parseFloat(jQuery.css(this.elem, this.prop, force));
- return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
- },
-
- // Start an animation from one number to another
- custom: function( from, to, unit ) {
- this.startTime = now();
- this.start = from;
- this.end = to;
- this.unit = unit || this.unit || "px";
- this.now = this.start;
- this.pos = this.state = 0;
-
- var self = this;
- function t( gotoEnd ) {
- return self.step(gotoEnd);
- }
-
- t.elem = this.elem;
-
- if ( t() && jQuery.timers.push(t) && !timerId ) {
- timerId = setInterval(jQuery.fx.tick, 13);
- }
- },
-
- // Simple 'show' function
- show: function() {
- // Remember where we started, so that we can go back to it later
- this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
- this.options.show = true;
-
- // Begin the animation
- // Make sure that we start at a small width/height to avoid any
- // flash of content
- this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
-
- // Start by showing the element
- jQuery( this.elem ).show();
- },
-
- // Simple 'hide' function
- hide: function() {
- // Remember where we started, so that we can go back to it later
- this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
- this.options.hide = true;
-
- // Begin the animation
- this.custom(this.cur(), 0);
- },
-
- // Each step of an animation
- step: function( gotoEnd ) {
- var t = now(), done = true;
-
- if ( gotoEnd || t >= this.options.duration + this.startTime ) {
- this.now = this.end;
- this.pos = this.state = 1;
- this.update();
-
- this.options.curAnim[ this.prop ] = true;
-
- for ( var i in this.options.curAnim ) {
- if ( this.options.curAnim[i] !== true ) {
- done = false;
- }
- }
-
- if ( done ) {
- if ( this.options.display != null ) {
- // Reset the overflow
- this.elem.style.overflow = this.options.overflow;
-
- // Reset the display
- var old = jQuery.data(this.elem, "olddisplay");
- this.elem.style.display = old ? old : this.options.display;
-
- if ( jQuery.css(this.elem, "display") === "none" ) {
- this.elem.style.display = "block";
- }
- }
-
- // Hide the element if the "hide" operation was done
- if ( this.options.hide ) {
- jQuery(this.elem).hide();
- }
-
- // Reset the properties, if the item has been hidden or shown
- if ( this.options.hide || this.options.show ) {
- for ( var p in this.options.curAnim ) {
- jQuery.style(this.elem, p, this.options.orig[p]);
- }
- }
-
- // Execute the complete function
- this.options.complete.call( this.elem );
- }
-
- return false;
-
- } else {
- var n = t - this.startTime;
- this.state = n / this.options.duration;
-
- // Perform the easing function, defaults to swing
- var specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop];
- var defaultEasing = this.options.easing || (jQuery.easing.swing ? "swing" : "linear");
- this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration);
- this.now = this.start + ((this.end - this.start) * this.pos);
-
- // Perform the next step of the animation
- this.update();
- }
-
- return true;
- }
-};
-
-jQuery.extend( jQuery.fx, {
- tick: function() {
- var timers = jQuery.timers;
-
- for ( var i = 0; i < timers.length; i++ ) {
- if ( !timers[i]() ) {
- timers.splice(i--, 1);
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- },
-
- stop: function() {
- clearInterval( timerId );
- timerId = null;
- },
-
- speeds: {
- slow: 600,
- fast: 200,
- // Default speed
- _default: 400
- },
-
- step: {
- opacity: function( fx ) {
- jQuery.style(fx.elem, "opacity", fx.now);
- },
-
- _default: function( fx ) {
- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
- fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
- } else {
- fx.elem[ fx.prop ] = fx.now;
- }
- }
- }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep(jQuery.timers, function( fn ) {
- return elem === fn.elem;
- }).length;
- };
-}
-
-function genFx( type, num ) {
- var obj = {};
-
- jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
- obj[ this ] = type;
- });
-
- return obj;
-}
-if ( "getBoundingClientRect" in document.documentElement ) {
- jQuery.fn.offset = function( options ) {
- var elem = this[0];
-
- if ( options ) {
- return this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- if ( !elem || !elem.ownerDocument ) {
- return null;
- }
-
- if ( elem === elem.ownerDocument.body ) {
- return jQuery.offset.bodyOffset( elem );
- }
-
- var box = elem.getBoundingClientRect(), doc = elem.ownerDocument, body = doc.body, docElem = doc.documentElement,
- clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
- top = box.top + (self.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop,
- left = box.left + (self.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
-
- return { top: top, left: left };
- };
-
-} else {
- jQuery.fn.offset = function( options ) {
- var elem = this[0];
-
- if ( options ) {
- return this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- if ( !elem || !elem.ownerDocument ) {
- return null;
- }
-
- if ( elem === elem.ownerDocument.body ) {
- return jQuery.offset.bodyOffset( elem );
- }
-
- jQuery.offset.initialize();
-
- var offsetParent = elem.offsetParent, prevOffsetParent = elem,
- doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
- body = doc.body, defaultView = doc.defaultView,
- prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
- top = elem.offsetTop, left = elem.offsetLeft;
-
- while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
- if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
- break;
- }
-
- computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
- top -= elem.scrollTop;
- left -= elem.scrollLeft;
-
- if ( elem === offsetParent ) {
- top += elem.offsetTop;
- left += elem.offsetLeft;
-
- if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.nodeName)) ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
- }
-
- if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevComputedStyle = computedStyle;
- }
-
- if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
- top += body.offsetTop;
- left += body.offsetLeft;
- }
-
- if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
- top += Math.max( docElem.scrollTop, body.scrollTop );
- left += Math.max( docElem.scrollLeft, body.scrollLeft );
- }
-
- return { top: top, left: left };
- };
-}
-
-jQuery.offset = {
- initialize: function() {
- var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.curCSS(body, "marginTop", true) ) || 0,
- html = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
-
- jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } );
-
- container.innerHTML = html;
- body.insertBefore( container, body.firstChild );
- innerDiv = container.firstChild;
- checkDiv = innerDiv.firstChild;
- td = innerDiv.nextSibling.firstChild.firstChild;
-
- this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
- this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
-
- checkDiv.style.position = "fixed", checkDiv.style.top = "20px";
- // safari subtracts parent border width here which is 5px
- this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);
- checkDiv.style.position = checkDiv.style.top = "";
-
- innerDiv.style.overflow = "hidden", innerDiv.style.position = "relative";
- this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
-
- this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
-
- body.removeChild( container );
- body = container = innerDiv = checkDiv = table = td = null;
- jQuery.offset.initialize = jQuery.noop;
- },
-
- bodyOffset: function( body ) {
- var top = body.offsetTop, left = body.offsetLeft;
-
- jQuery.offset.initialize();
-
- if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {
- top += parseFloat( jQuery.curCSS(body, "marginTop", true) ) || 0;
- left += parseFloat( jQuery.curCSS(body, "marginLeft", true) ) || 0;
- }
-
- return { top: top, left: left };
- },
-
- setOffset: function( elem, options, i ) {
- // set position first, in-case top/left are set even on static elem
- if ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) {
- elem.style.position = "relative";
- }
- var curElem = jQuery( elem ),
- curOffset = curElem.offset(),
- curTop = parseInt( jQuery.curCSS( elem, "top", true ), 10 ) || 0,
- curLeft = parseInt( jQuery.curCSS( elem, "left", true ), 10 ) || 0;
-
- if ( jQuery.isFunction( options ) ) {
- options = options.call( elem, i, curOffset );
- }
-
- var props = {
- top: (options.top - curOffset.top) + curTop,
- left: (options.left - curOffset.left) + curLeft
- };
-
- if ( "using" in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- }
-};
-
-
-jQuery.fn.extend({
- position: function() {
- if ( !this[0] ) {
- return null;
- }
-
- var elem = this[0],
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent(),
-
- // Get correct offsets
- offset = this.offset(),
- parentOffset = /^body|html$/i.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
- // Subtract element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- offset.top -= parseFloat( jQuery.curCSS(elem, "marginTop", true) ) || 0;
- offset.left -= parseFloat( jQuery.curCSS(elem, "marginLeft", true) ) || 0;
-
- // Add offsetParent borders
- parentOffset.top += parseFloat( jQuery.curCSS(offsetParent[0], "borderTopWidth", true) ) || 0;
- parentOffset.left += parseFloat( jQuery.curCSS(offsetParent[0], "borderLeftWidth", true) ) || 0;
-
- // Subtract the two offsets
- return {
- top: offset.top - parentOffset.top,
- left: offset.left - parentOffset.left
- };
- },
-
- offsetParent: function() {
- return this.map(function() {
- var offsetParent = this.offsetParent || document.body;
- while ( offsetParent && (!/^body|html$/i.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent;
- });
- }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ["Left", "Top"], function( i, name ) {
- var method = "scroll" + name;
-
- jQuery.fn[ method ] = function(val) {
- var elem = this[0], win;
-
- if ( !elem ) {
- return null;
- }
-
- if ( val !== undefined ) {
- // Set the scroll offset
- return this.each(function() {
- win = getWindow( this );
-
- if ( win ) {
- win.scrollTo(
- !i ? val : jQuery(win).scrollLeft(),
- i ? val : jQuery(win).scrollTop()
- );
-
- } else {
- this[ method ] = val;
- }
- });
- } else {
- win = getWindow( elem );
-
- // Return the scroll offset
- return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
- jQuery.support.boxModel && win.document.documentElement[ method ] ||
- win.document.body[ method ] :
- elem[ method ];
- }
- };
-});
-
-function getWindow( elem ) {
- return ("scrollTo" in elem && elem.document) ?
- elem :
- elem.nodeType === 9 ?
- elem.defaultView || elem.parentWindow :
- false;
-}
-// Create innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function( i, name ) {
-
- var type = name.toLowerCase();
-
- // innerHeight and innerWidth
- jQuery.fn["inner" + name] = function() {
- return this[0] ?
- jQuery.css( this[0], type, false, "padding" ) :
- null;
- };
-
- // outerHeight and outerWidth
- jQuery.fn["outer" + name] = function( margin ) {
- return this[0] ?
- jQuery.css( this[0], type, false, margin ? "margin" : "border" ) :
- null;
- };
-
- jQuery.fn[ type ] = function( size ) {
- // Get window width or height
- var elem = this[0];
- if ( !elem ) {
- return size == null ? null : this;
- }
-
- if ( jQuery.isFunction( size ) ) {
- return this.each(function( i ) {
- var self = jQuery( this );
- self[ type ]( size.call( this, i, self[ type ]() ) );
- });
- }
-
- return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window?
- // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
- elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
- elem.document.body[ "client" + name ] :
-
- // Get document width or height
- (elem.nodeType === 9) ? // is it a document
- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
- Math.max(
- elem.documentElement["client" + name],
- elem.body["scroll" + name], elem.documentElement["scroll" + name],
- elem.body["offset" + name], elem.documentElement["offset" + name]
- ) :
-
- // Get or set width or height on the element
- size === undefined ?
- // Get width or height on the element
- jQuery.css( elem, type ) :
-
- // Set the width or height on the element (default to pixels if value is unitless)
- this.css( type, typeof size === "string" ? size : size + "px" );
- };
-
-});
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-
-})(window); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.4.4.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.4.4.js
deleted file mode 100644
index 2ddcf993..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.4.4.js
+++ /dev/null
@@ -1,7179 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.4.4
- * http://jquery.com/
- *
- * Copyright 2010, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2010, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Thu Nov 11 19:04:53 2010 -0500
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context );
- },
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$,
-
- // A central reference to the root jQuery(document)
- rootjQuery,
-
- // A simple way to check for HTML strings or ID strings
- // (both of which we optimize for)
- quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,
-
- // Is it a simple selector
- isSimple = /^.[^:#\[\.,]*$/,
-
- // Check if a string has a non-whitespace character in it
- rnotwhite = /\S/,
- rwhite = /\s/,
-
- // Used for trimming whitespace
- trimLeft = /^\s+/,
- trimRight = /\s+$/,
-
- // Check for non-word characters
- rnonword = /\W/,
-
- // Check for digits
- rdigit = /\d/,
-
- // Match a standalone tag
- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
- // JSON RegExp
- rvalidchars = /^[\],:{}\s]*$/,
- rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
- rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
- rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
- // Useragent RegExp
- rwebkit = /(webkit)[ \/]([\w.]+)/,
- ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
- rmsie = /(msie) ([\w.]+)/,
- rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
- // Keep a UserAgent string for use with jQuery.browser
- userAgent = navigator.userAgent,
-
- // For matching the engine and version of the browser
- browserMatch,
-
- // Has the ready events already been bound?
- readyBound = false,
-
- // The functions to execute on DOM ready
- readyList = [],
-
- // The ready event handler
- DOMContentLoaded,
-
- // Save a reference to some core methods
- toString = Object.prototype.toString,
- hasOwn = Object.prototype.hasOwnProperty,
- push = Array.prototype.push,
- slice = Array.prototype.slice,
- trim = String.prototype.trim,
- indexOf = Array.prototype.indexOf,
-
- // [[Class]] -> type pairs
- class2type = {};
-
-jQuery.fn = jQuery.prototype = {
- init: function( selector, context ) {
- var match, elem, ret, doc;
-
- // Handle $(""), $(null), or $(undefined)
- if ( !selector ) {
- return this;
- }
-
- // Handle $(DOMElement)
- if ( selector.nodeType ) {
- this.context = this[0] = selector;
- this.length = 1;
- return this;
- }
-
- // The body element only exists once, optimize finding it
- if ( selector === "body" && !context && document.body ) {
- this.context = document;
- this[0] = document.body;
- this.selector = "body";
- this.length = 1;
- return this;
- }
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- // Are we dealing with HTML string or an ID?
- match = quickExpr.exec( selector );
-
- // Verify a match, and that no context was specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] ) {
- doc = (context ? context.ownerDocument || context : document);
-
- // If a single string is passed in and it's a single tag
- // just do a createElement and skip the rest
- ret = rsingleTag.exec( selector );
-
- if ( ret ) {
- if ( jQuery.isPlainObject( context ) ) {
- selector = [ document.createElement( ret[1] ) ];
- jQuery.fn.attr.call( selector, context, true );
-
- } else {
- selector = [ doc.createElement( ret[1] ) ];
- }
-
- } else {
- ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
- selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes;
- }
-
- return jQuery.merge( this, selector );
-
- // HANDLE: $("#id")
- } else {
- elem = document.getElementById( match[2] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[2] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[0] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $("TAG")
- } else if ( !context && !rnonword.test( selector ) ) {
- this.selector = selector;
- this.context = document;
- selector = document.getElementsByTagName( selector );
- return jQuery.merge( this, selector );
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return (context || rootjQuery).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return jQuery( context ).find( selector );
- }
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return rootjQuery.ready( selector );
- }
-
- if (selector.selector !== undefined) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- },
-
- // Start with an empty selector
- selector: "",
-
- // The current version of jQuery being used
- jquery: "1.4.4",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
- toArray: function() {
- return slice.call( this, 0 );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num == null ?
-
- // Return a 'clean' array
- this.toArray() :
-
- // Return just the object
- ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems, name, selector ) {
- // Build a new jQuery matched element set
- var ret = jQuery();
-
- if ( jQuery.isArray( elems ) ) {
- push.apply( ret, elems );
-
- } else {
- jQuery.merge( ret, elems );
- }
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- ret.context = this.context;
-
- if ( name === "find" ) {
- ret.selector = this.selector + (this.selector ? " " : "") + selector;
- } else if ( name ) {
- ret.selector = this.selector + "." + name + "(" + selector + ")";
- }
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- ready: function( fn ) {
- // Attach the listeners
- jQuery.bindReady();
-
- // If the DOM is already ready
- if ( jQuery.isReady ) {
- // Execute the function immediately
- fn.call( document, jQuery );
-
- // Otherwise, remember the function for later
- } else if ( readyList ) {
- // Add the function to the wait list
- readyList.push( fn );
- }
-
- return this;
- },
-
- eq: function( i ) {
- return i === -1 ?
- this.slice( i ) :
- this.slice( i, +i + 1 );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ),
- "slice", slice.call(arguments).join(",") );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function( elem, i ) {
- return callback.call( elem, i, elem );
- }));
- },
-
- end: function() {
- return this.prevObject || jQuery(null);
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: [].sort,
- splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[0] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( length === i ) {
- target = this;
- --i;
- }
-
- for ( ; i < length; i++ ) {
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null ) {
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray(src) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject(src) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend({
- noConflict: function( deep ) {
- window.$ = _$;
-
- if ( deep ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
- },
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Handle when the DOM is ready
- ready: function( wait ) {
- // A third-party is pushing the ready event forwards
- if ( wait === true ) {
- jQuery.readyWait--;
- }
-
- // Make sure that the DOM is not already loaded
- if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( !document.body ) {
- return setTimeout( jQuery.ready, 1 );
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- if ( readyList ) {
- // Execute all of them
- var fn,
- i = 0,
- ready = readyList;
-
- // Reset the list of functions
- readyList = null;
-
- while ( (fn = ready[ i++ ]) ) {
- fn.call( document, jQuery );
- }
-
- // Trigger any bound ready events
- if ( jQuery.fn.trigger ) {
- jQuery( document ).trigger( "ready" ).unbind( "ready" );
- }
- }
- }
- },
-
- bindReady: function() {
- if ( readyBound ) {
- return;
- }
-
- readyBound = true;
-
- // Catch cases where $(document).ready() is called after the
- // browser event has already occurred.
- if ( document.readyState === "complete" ) {
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- return setTimeout( jQuery.ready, 1 );
- }
-
- // Mozilla, Opera and webkit nightlies currently support this event
- if ( document.addEventListener ) {
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", jQuery.ready, false );
-
- // If IE event model is used
- } else if ( document.attachEvent ) {
- // ensure firing before onload,
- // maybe late but safe also for iframes
- document.attachEvent("onreadystatechange", DOMContentLoaded);
-
- // A fallback to window.onload, that will always work
- window.attachEvent( "onload", jQuery.ready );
-
- // If IE and not a frame
- // continually check to see if the document is ready
- var toplevel = false;
-
- try {
- toplevel = window.frameElement == null;
- } catch(e) {}
-
- if ( document.documentElement.doScroll && toplevel ) {
- doScrollCheck();
- }
- }
- },
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return jQuery.type(obj) === "function";
- },
-
- isArray: Array.isArray || function( obj ) {
- return jQuery.type(obj) === "array";
- },
-
- // A crude way of determining if an object is a window
- isWindow: function( obj ) {
- return obj && typeof obj === "object" && "setInterval" in obj;
- },
-
- isNaN: function( obj ) {
- return obj == null || !rdigit.test( obj ) || isNaN( obj );
- },
-
- type: function( obj ) {
- return obj == null ?
- String( obj ) :
- class2type[ toString.call(obj) ] || "object";
- },
-
- isPlainObject: function( obj ) {
- // Must be an Object.
- // Because of IE, we also have to check the presence of the constructor property.
- // Make sure that DOM nodes and window objects don't pass through, as well
- if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call(obj, "constructor") &&
- !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
-
- var key;
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- for ( var name in obj ) {
- return false;
- }
- return true;
- },
-
- error: function( msg ) {
- throw msg;
- },
-
- parseJSON: function( data ) {
- if ( typeof data !== "string" || !data ) {
- return null;
- }
-
- // Make sure leading/trailing whitespace is removed (IE can't handle it)
- data = jQuery.trim( data );
-
- // Make sure the incoming data is actual JSON
- // Logic borrowed from http://json.org/json2.js
- if ( rvalidchars.test(data.replace(rvalidescape, "@")
- .replace(rvalidtokens, "]")
- .replace(rvalidbraces, "")) ) {
-
- // Try to use the native JSON parser first
- return window.JSON && window.JSON.parse ?
- window.JSON.parse( data ) :
- (new Function("return " + data))();
-
- } else {
- jQuery.error( "Invalid JSON: " + data );
- }
- },
-
- noop: function() {},
-
- // Evalulates a script in a global context
- globalEval: function( data ) {
- if ( data && rnotwhite.test(data) ) {
- // Inspired by code by Andrea Giammarchi
- // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
- var head = document.getElementsByTagName("head")[0] || document.documentElement,
- script = document.createElement("script");
-
- script.type = "text/javascript";
-
- if ( jQuery.support.scriptEval ) {
- script.appendChild( document.createTextNode( data ) );
- } else {
- script.text = data;
- }
-
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709).
- head.insertBefore( script, head.firstChild );
- head.removeChild( script );
- }
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
- },
-
- // args is for internal usage only
- each: function( object, callback, args ) {
- var name, i = 0,
- length = object.length,
- isObj = length === undefined || jQuery.isFunction(object);
-
- if ( args ) {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.apply( object[ name ], args ) === false ) {
- break;
- }
- }
- } else {
- for ( ; i < length; ) {
- if ( callback.apply( object[ i++ ], args ) === false ) {
- break;
- }
- }
- }
-
- // A special, fast, case for the most common use of each
- } else {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
- break;
- }
- }
- } else {
- for ( var value = object[0];
- i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
- }
- }
-
- return object;
- },
-
- // Use native String.trim function wherever possible
- trim: trim ?
- function( text ) {
- return text == null ?
- "" :
- trim.call( text );
- } :
-
- // Otherwise use our own trimming functionality
- function( text ) {
- return text == null ?
- "" :
- text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
- },
-
- // results is for internal usage only
- makeArray: function( array, results ) {
- var ret = results || [];
-
- if ( array != null ) {
- // The window, strings (and functions) also have 'length'
- // The extra typeof function check is to prevent crashes
- // in Safari 2 (See: #3039)
- // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
- var type = jQuery.type(array);
-
- if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
- push.call( ret, array );
- } else {
- jQuery.merge( ret, array );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, array ) {
- if ( array.indexOf ) {
- return array.indexOf( elem );
- }
-
- for ( var i = 0, length = array.length; i < length; i++ ) {
- if ( array[ i ] === elem ) {
- return i;
- }
- }
-
- return -1;
- },
-
- merge: function( first, second ) {
- var i = first.length,
- j = 0;
-
- if ( typeof second.length === "number" ) {
- for ( var l = second.length; j < l; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- } else {
- while ( second[j] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, inv ) {
- var ret = [], retVal;
- inv = !!inv;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- retVal = !!callback( elems[ i ], i );
- if ( inv !== retVal ) {
- ret.push( elems[ i ] );
- }
- }
-
- return ret;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var ret = [], value;
-
- // Go through the array, translating each of the items to their
- // new value (or values).
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
-
- return ret.concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- proxy: function( fn, proxy, thisObject ) {
- if ( arguments.length === 2 ) {
- if ( typeof proxy === "string" ) {
- thisObject = fn;
- fn = thisObject[ proxy ];
- proxy = undefined;
-
- } else if ( proxy && !jQuery.isFunction( proxy ) ) {
- thisObject = proxy;
- proxy = undefined;
- }
- }
-
- if ( !proxy && fn ) {
- proxy = function() {
- return fn.apply( thisObject || this, arguments );
- };
- }
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- if ( fn ) {
- proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
- }
-
- // So proxy can be declared as an argument
- return proxy;
- },
-
- // Mutifunctional method to get and set values to a collection
- // The value/s can be optionally by executed if its a function
- access: function( elems, key, value, exec, fn, pass ) {
- var length = elems.length;
-
- // Setting many attributes
- if ( typeof key === "object" ) {
- for ( var k in key ) {
- jQuery.access( elems, k, key[k], exec, fn, value );
- }
- return elems;
- }
-
- // Setting one attribute
- if ( value !== undefined ) {
- // Optionally, function values get executed if exec is true
- exec = !pass && exec && jQuery.isFunction(value);
-
- for ( var i = 0; i < length; i++ ) {
- fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
- }
-
- return elems;
- }
-
- // Getting an attribute
- return length ? fn( elems[0], key ) : undefined;
- },
-
- now: function() {
- return (new Date()).getTime();
- },
-
- // Use of jQuery.browser is frowned upon.
- // More details: http://docs.jquery.com/Utilities/jQuery.browser
- uaMatch: function( ua ) {
- ua = ua.toLowerCase();
-
- var match = rwebkit.exec( ua ) ||
- ropera.exec( ua ) ||
- rmsie.exec( ua ) ||
- ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
- [];
-
- return { browser: match[1] || "", version: match[2] || "0" };
- },
-
- browser: {}
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
- jQuery.browser[ browserMatch.browser ] = true;
- jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
- jQuery.browser.safari = true;
-}
-
-if ( indexOf ) {
- jQuery.inArray = function( elem, array ) {
- return indexOf.call( array, elem );
- };
-}
-
-// Verify that \s matches non-breaking spaces
-// (IE fails on this test)
-if ( !rwhite.test( "\xA0" ) ) {
- trimLeft = /^[\s\xA0]+/;
- trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
- DOMContentLoaded = function() {
- document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
- jQuery.ready();
- };
-
-} else if ( document.attachEvent ) {
- DOMContentLoaded = function() {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( document.readyState === "complete" ) {
- document.detachEvent( "onreadystatechange", DOMContentLoaded );
- jQuery.ready();
- }
- };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
- if ( jQuery.isReady ) {
- return;
- }
-
- try {
- // If IE is used, use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- document.documentElement.doScroll("left");
- } catch(e) {
- setTimeout( doScrollCheck, 1 );
- return;
- }
-
- // and execute any waiting functions
- jQuery.ready();
-}
-
-// Expose jQuery to the global object
-return (window.jQuery = window.$ = jQuery);
-
-})();
-
-
-(function() {
-
- jQuery.support = {};
-
- var root = document.documentElement,
- script = document.createElement("script"),
- div = document.createElement("div"),
- id = "script" + jQuery.now();
-
- div.style.display = "none";
- div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
- var all = div.getElementsByTagName("*"),
- a = div.getElementsByTagName("a")[0],
- select = document.createElement("select"),
- opt = select.appendChild( document.createElement("option") );
-
- // Can't get basic test support
- if ( !all || !all.length || !a ) {
- return;
- }
-
- jQuery.support = {
- // IE strips leading whitespace when .innerHTML is used
- leadingWhitespace: div.firstChild.nodeType === 3,
-
- // Make sure that tbody elements aren't automatically inserted
- // IE will insert them into empty tables
- tbody: !div.getElementsByTagName("tbody").length,
-
- // Make sure that link elements get serialized correctly by innerHTML
- // This requires a wrapper element in IE
- htmlSerialize: !!div.getElementsByTagName("link").length,
-
- // Get the style information from getAttribute
- // (IE uses .cssText insted)
- style: /red/.test( a.getAttribute("style") ),
-
- // Make sure that URLs aren't manipulated
- // (IE normalizes it by default)
- hrefNormalized: a.getAttribute("href") === "/a",
-
- // Make sure that element opacity exists
- // (IE uses filter instead)
- // Use a regex to work around a WebKit issue. See #5145
- opacity: /^0.55$/.test( a.style.opacity ),
-
- // Verify style float existence
- // (IE uses styleFloat instead of cssFloat)
- cssFloat: !!a.style.cssFloat,
-
- // Make sure that if no value is specified for a checkbox
- // that it defaults to "on".
- // (WebKit defaults to "" instead)
- checkOn: div.getElementsByTagName("input")[0].value === "on",
-
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- optSelected: opt.selected,
-
- // Will be defined later
- deleteExpando: true,
- optDisabled: false,
- checkClone: false,
- scriptEval: false,
- noCloneEvent: true,
- boxModel: null,
- inlineBlockNeedsLayout: false,
- shrinkWrapBlocks: false,
- reliableHiddenOffsets: true
- };
-
- // Make sure that the options inside disabled selects aren't marked as disabled
- // (WebKit marks them as diabled)
- select.disabled = true;
- jQuery.support.optDisabled = !opt.disabled;
-
- script.type = "text/javascript";
- try {
- script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
- } catch(e) {}
-
- root.insertBefore( script, root.firstChild );
-
- // Make sure that the execution of code works by injecting a script
- // tag with appendChild/createTextNode
- // (IE doesn't support this, fails, and uses .text instead)
- if ( window[ id ] ) {
- jQuery.support.scriptEval = true;
- delete window[ id ];
- }
-
- // Test to see if it's possible to delete an expando from an element
- // Fails in Internet Explorer
- try {
- delete script.test;
-
- } catch(e) {
- jQuery.support.deleteExpando = false;
- }
-
- root.removeChild( script );
-
- if ( div.attachEvent && div.fireEvent ) {
- div.attachEvent("onclick", function click() {
- // Cloning a node shouldn't copy over any
- // bound event handlers (IE does this)
- jQuery.support.noCloneEvent = false;
- div.detachEvent("onclick", click);
- });
- div.cloneNode(true).fireEvent("onclick");
- }
-
- div = document.createElement("div");
- div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
-
- var fragment = document.createDocumentFragment();
- fragment.appendChild( div.firstChild );
-
- // WebKit doesn't clone checked state correctly in fragments
- jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
-
- // Figure out if the W3C box model works as expected
- // document.body must exist before we can do this
- jQuery(function() {
- var div = document.createElement("div");
- div.style.width = div.style.paddingLeft = "1px";
-
- document.body.appendChild( div );
- jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
-
- if ( "zoom" in div.style ) {
- // Check if natively block-level elements act like inline-block
- // elements when setting their display to 'inline' and giving
- // them layout
- // (IE < 8 does this)
- div.style.display = "inline";
- div.style.zoom = 1;
- jQuery.support.inlineBlockNeedsLayout = div.offsetWidth === 2;
-
- // Check if elements with layout shrink-wrap their children
- // (IE 6 does this)
- div.style.display = "";
- div.innerHTML = "<div style='width:4px;'></div>";
- jQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;
- }
-
- div.innerHTML = "<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";
- var tds = div.getElementsByTagName("td");
-
- // Check if table cells still have offsetWidth/Height when they are set
- // to display:none and there are still other visible table cells in a
- // table row; if so, offsetWidth/Height are not reliable for use when
- // determining if an element has been hidden directly using
- // display:none (it is still safe to use offsets if a parent element is
- // hidden; don safety goggles and see bug #4512 for more information).
- // (only IE 8 fails this test)
- jQuery.support.reliableHiddenOffsets = tds[0].offsetHeight === 0;
-
- tds[0].style.display = "";
- tds[1].style.display = "none";
-
- // Check if empty table cells still have offsetWidth/Height
- // (IE < 8 fail this test)
- jQuery.support.reliableHiddenOffsets = jQuery.support.reliableHiddenOffsets && tds[0].offsetHeight === 0;
- div.innerHTML = "";
-
- document.body.removeChild( div ).style.display = "none";
- div = tds = null;
- });
-
- // Technique from Juriy Zaytsev
- // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
- var eventSupported = function( eventName ) {
- var el = document.createElement("div");
- eventName = "on" + eventName;
-
- var isSupported = (eventName in el);
- if ( !isSupported ) {
- el.setAttribute(eventName, "return;");
- isSupported = typeof el[eventName] === "function";
- }
- el = null;
-
- return isSupported;
- };
-
- jQuery.support.submitBubbles = eventSupported("submit");
- jQuery.support.changeBubbles = eventSupported("change");
-
- // release memory in IE
- root = script = div = all = a = null;
-})();
-
-
-
-var windowData = {},
- rbrace = /^(?:\{.*\}|\[.*\])$/;
-
-jQuery.extend({
- cache: {},
-
- // Please use with caution
- uuid: 0,
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + jQuery.now(),
-
- // The following elements throw uncatchable exceptions if you
- // attempt to add expando properties to them.
- noData: {
- "embed": true,
- // Ban all objects except for Flash (which handle expandos)
- "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
- "applet": true
- },
-
- data: function( elem, name, data ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- elem = elem == window ?
- windowData :
- elem;
-
- var isNode = elem.nodeType,
- id = isNode ? elem[ jQuery.expando ] : null,
- cache = jQuery.cache, thisCache;
-
- if ( isNode && !id && typeof name === "string" && data === undefined ) {
- return;
- }
-
- // Get the data from the object directly
- if ( !isNode ) {
- cache = elem;
-
- // Compute a unique ID for the element
- } else if ( !id ) {
- elem[ jQuery.expando ] = id = ++jQuery.uuid;
- }
-
- // Avoid generating a new cache unless none exists and we
- // want to manipulate it.
- if ( typeof name === "object" ) {
- if ( isNode ) {
- cache[ id ] = jQuery.extend(cache[ id ], name);
-
- } else {
- jQuery.extend( cache, name );
- }
-
- } else if ( isNode && !cache[ id ] ) {
- cache[ id ] = {};
- }
-
- thisCache = isNode ? cache[ id ] : cache;
-
- // Prevent overriding the named cache with undefined values
- if ( data !== undefined ) {
- thisCache[ name ] = data;
- }
-
- return typeof name === "string" ? thisCache[ name ] : thisCache;
- },
-
- removeData: function( elem, name ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- elem = elem == window ?
- windowData :
- elem;
-
- var isNode = elem.nodeType,
- id = isNode ? elem[ jQuery.expando ] : elem,
- cache = jQuery.cache,
- thisCache = isNode ? cache[ id ] : id;
-
- // If we want to remove a specific section of the element's data
- if ( name ) {
- if ( thisCache ) {
- // Remove the section of cache data
- delete thisCache[ name ];
-
- // If we've removed all the data, remove the element's cache
- if ( isNode && jQuery.isEmptyObject(thisCache) ) {
- jQuery.removeData( elem );
- }
- }
-
- // Otherwise, we want to remove all of the element's data
- } else {
- if ( isNode && jQuery.support.deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
-
- // Completely remove the data cache
- } else if ( isNode ) {
- delete cache[ id ];
-
- // Remove all fields from the object
- } else {
- for ( var n in elem ) {
- delete elem[ n ];
- }
- }
- }
- },
-
- // A method for determining if a DOM node can handle the data expando
- acceptData: function( elem ) {
- if ( elem.nodeName ) {
- var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
- if ( match ) {
- return !(match === true || elem.getAttribute("classid") !== match);
- }
- }
-
- return true;
- }
-});
-
-jQuery.fn.extend({
- data: function( key, value ) {
- var data = null;
-
- if ( typeof key === "undefined" ) {
- if ( this.length ) {
- var attr = this[0].attributes, name;
- data = jQuery.data( this[0] );
-
- for ( var i = 0, l = attr.length; i < l; i++ ) {
- name = attr[i].name;
-
- if ( name.indexOf( "data-" ) === 0 ) {
- name = name.substr( 5 );
- dataAttr( this[0], name, data[ name ] );
- }
- }
- }
-
- return data;
-
- } else if ( typeof key === "object" ) {
- return this.each(function() {
- jQuery.data( this, key );
- });
- }
-
- var parts = key.split(".");
- parts[1] = parts[1] ? "." + parts[1] : "";
-
- if ( value === undefined ) {
- data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
- // Try to fetch any internally stored data first
- if ( data === undefined && this.length ) {
- data = jQuery.data( this[0], key );
- data = dataAttr( this[0], key, data );
- }
-
- return data === undefined && parts[1] ?
- this.data( parts[0] ) :
- data;
-
- } else {
- return this.each(function() {
- var $this = jQuery( this ),
- args = [ parts[0], value ];
-
- $this.triggerHandler( "setData" + parts[1] + "!", args );
- jQuery.data( this, key, value );
- $this.triggerHandler( "changeData" + parts[1] + "!", args );
- });
- }
- },
-
- removeData: function( key ) {
- return this.each(function() {
- jQuery.removeData( this, key );
- });
- }
-});
-
-function dataAttr( elem, key, data ) {
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- data = elem.getAttribute( "data-" + key );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
- !jQuery.isNaN( data ) ? parseFloat( data ) :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch( e ) {}
-
- // Make sure we set the data so it isn't changed later
- jQuery.data( elem, key, data );
-
- } else {
- data = undefined;
- }
- }
-
- return data;
-}
-
-
-
-
-jQuery.extend({
- queue: function( elem, type, data ) {
- if ( !elem ) {
- return;
- }
-
- type = (type || "fx") + "queue";
- var q = jQuery.data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( !data ) {
- return q || [];
- }
-
- if ( !q || jQuery.isArray(data) ) {
- q = jQuery.data( elem, type, jQuery.makeArray(data) );
-
- } else {
- q.push( data );
- }
-
- return q;
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- fn = queue.shift();
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- }
-
- if ( fn ) {
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift("inprogress");
- }
-
- fn.call(elem, function() {
- jQuery.dequeue(elem, type);
- });
- }
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- }
-
- if ( data === undefined ) {
- return jQuery.queue( this[0], type );
- }
- return this.each(function( i ) {
- var queue = jQuery.queue( this, type, data );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
-
- // Based off of the plugin by Clint Helfers, with permission.
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
- delay: function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
- type = type || "fx";
-
- return this.queue( type, function() {
- var elem = this;
- setTimeout(function() {
- jQuery.dequeue( elem, type );
- }, time );
- });
- },
-
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- }
-});
-
-
-
-
-var rclass = /[\n\t]/g,
- rspaces = /\s+/,
- rreturn = /\r/g,
- rspecialurl = /^(?:href|src|style)$/,
- rtype = /^(?:button|input)$/i,
- rfocusable = /^(?:button|input|object|select|textarea)$/i,
- rclickable = /^a(?:rea)?$/i,
- rradiocheck = /^(?:radio|checkbox)$/i;
-
-jQuery.props = {
- "for": "htmlFor",
- "class": "className",
- readonly: "readOnly",
- maxlength: "maxLength",
- cellspacing: "cellSpacing",
- rowspan: "rowSpan",
- colspan: "colSpan",
- tabindex: "tabIndex",
- usemap: "useMap",
- frameborder: "frameBorder"
-};
-
-jQuery.fn.extend({
- attr: function( name, value ) {
- return jQuery.access( this, name, value, true, jQuery.attr );
- },
-
- removeAttr: function( name, fn ) {
- return this.each(function(){
- jQuery.attr( this, name, "" );
- if ( this.nodeType === 1 ) {
- this.removeAttribute( name );
- }
- });
- },
-
- addClass: function( value ) {
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.addClass( value.call(this, i, self.attr("class")) );
- });
- }
-
- if ( value && typeof value === "string" ) {
- var classNames = (value || "").split( rspaces );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var elem = this[i];
-
- if ( elem.nodeType === 1 ) {
- if ( !elem.className ) {
- elem.className = value;
-
- } else {
- var className = " " + elem.className + " ",
- setClass = elem.className;
-
- for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
- if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
- setClass += " " + classNames[c];
- }
- }
- elem.className = jQuery.trim( setClass );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.removeClass( value.call(this, i, self.attr("class")) );
- });
- }
-
- if ( (value && typeof value === "string") || value === undefined ) {
- var classNames = (value || "").split( rspaces );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var elem = this[i];
-
- if ( elem.nodeType === 1 && elem.className ) {
- if ( value ) {
- var className = (" " + elem.className + " ").replace(rclass, " ");
- for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
- className = className.replace(" " + classNames[c] + " ", " ");
- }
- elem.className = jQuery.trim( className );
-
- } else {
- elem.className = "";
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value,
- isBool = typeof stateVal === "boolean";
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
- });
- }
-
- return this.each(function() {
- if ( type === "string" ) {
- // toggle individual class names
- var className,
- i = 0,
- self = jQuery( this ),
- state = stateVal,
- classNames = value.split( rspaces );
-
- while ( (className = classNames[ i++ ]) ) {
- // check each className given, space seperated list
- state = isBool ? state : !self.hasClass( className );
- self[ state ? "addClass" : "removeClass" ]( className );
- }
-
- } else if ( type === "undefined" || type === "boolean" ) {
- if ( this.className ) {
- // store className if set
- jQuery.data( this, "__className__", this.className );
- }
-
- // toggle whole className
- this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || "";
- }
- });
- },
-
- hasClass: function( selector ) {
- var className = " " + selector + " ";
- for ( var i = 0, l = this.length; i < l; i++ ) {
- if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
- return true;
- }
- }
-
- return false;
- },
-
- val: function( value ) {
- if ( !arguments.length ) {
- var elem = this[0];
-
- if ( elem ) {
- if ( jQuery.nodeName( elem, "option" ) ) {
- // attributes.value is undefined in Blackberry 4.7 but
- // uses .value. See #6932
- var val = elem.attributes.value;
- return !val || val.specified ? elem.value : elem.text;
- }
-
- // We need to handle select boxes special
- if ( jQuery.nodeName( elem, "select" ) ) {
- var index = elem.selectedIndex,
- values = [],
- options = elem.options,
- one = elem.type === "select-one";
-
- // Nothing was selected
- if ( index < 0 ) {
- return null;
- }
-
- // Loop through all the selected options
- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
- var option = options[ i ];
-
- // Don't return options that are disabled or in a disabled optgroup
- if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
- (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
- // Get the specific value for the option
- value = jQuery(option).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- }
-
- // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
- if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
- return elem.getAttribute("value") === null ? "on" : elem.value;
- }
-
-
- // Everything else, we just grab the value
- return (elem.value || "").replace(rreturn, "");
-
- }
-
- return undefined;
- }
-
- var isFunction = jQuery.isFunction(value);
-
- return this.each(function(i) {
- var self = jQuery(this), val = value;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call(this, i, self.val());
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
- } else if ( typeof val === "number" ) {
- val += "";
- } else if ( jQuery.isArray(val) ) {
- val = jQuery.map(val, function (value) {
- return value == null ? "" : value + "";
- });
- }
-
- if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
- this.checked = jQuery.inArray( self.val(), val ) >= 0;
-
- } else if ( jQuery.nodeName( this, "select" ) ) {
- var values = jQuery.makeArray(val);
-
- jQuery( "option", this ).each(function() {
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
- });
-
- if ( !values.length ) {
- this.selectedIndex = -1;
- }
-
- } else {
- this.value = val;
- }
- });
- }
-});
-
-jQuery.extend({
- attrFn: {
- val: true,
- css: true,
- html: true,
- text: true,
- data: true,
- width: true,
- height: true,
- offset: true
- },
-
- attr: function( elem, name, value, pass ) {
- // don't set attributes on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
- return undefined;
- }
-
- if ( pass && name in jQuery.attrFn ) {
- return jQuery(elem)[name](value);
- }
-
- var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),
- // Whether we are setting (or getting)
- set = value !== undefined;
-
- // Try to normalize/fix the name
- name = notxml && jQuery.props[ name ] || name;
-
- // These attributes require special treatment
- var special = rspecialurl.test( name );
-
- // Safari mis-reports the default selected property of an option
- // Accessing the parent's selectedIndex property fixes it
- if ( name === "selected" && !jQuery.support.optSelected ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
-
- // If applicable, access the attribute via the DOM 0 way
- // 'in' checks fail in Blackberry 4.7 #6931
- if ( (name in elem || elem[ name ] !== undefined) && notxml && !special ) {
- if ( set ) {
- // We can't allow the type property to be changed (since it causes problems in IE)
- if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
- jQuery.error( "type property can't be changed" );
- }
-
- if ( value === null ) {
- if ( elem.nodeType === 1 ) {
- elem.removeAttribute( name );
- }
-
- } else {
- elem[ name ] = value;
- }
- }
-
- // browsers index elements by id/name on forms, give priority to attributes.
- if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
- return elem.getAttributeNode( name ).nodeValue;
- }
-
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- if ( name === "tabIndex" ) {
- var attributeNode = elem.getAttributeNode( "tabIndex" );
-
- return attributeNode && attributeNode.specified ?
- attributeNode.value :
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- undefined;
- }
-
- return elem[ name ];
- }
-
- if ( !jQuery.support.style && notxml && name === "style" ) {
- if ( set ) {
- elem.style.cssText = "" + value;
- }
-
- return elem.style.cssText;
- }
-
- if ( set ) {
- // convert the value to a string (all browsers do this but IE) see #1070
- elem.setAttribute( name, "" + value );
- }
-
- // Ensure that missing attributes return undefined
- // Blackberry 4.7 returns "" from getAttribute #6938
- if ( !elem.attributes[ name ] && (elem.hasAttribute && !elem.hasAttribute( name )) ) {
- return undefined;
- }
-
- var attr = !jQuery.support.hrefNormalized && notxml && special ?
- // Some attributes require a special call on IE
- elem.getAttribute( name, 2 ) :
- elem.getAttribute( name );
-
- // Non-existent attributes return null, we normalize to undefined
- return attr === null ? undefined : attr;
- }
-});
-
-
-
-
-var rnamespaces = /\.(.*)$/,
- rformElems = /^(?:textarea|input|select)$/i,
- rperiod = /\./g,
- rspace = / /g,
- rescape = /[^\w\s.|`]/g,
- fcleanup = function( nm ) {
- return nm.replace(rescape, "\\$&");
- },
- focusCounts = { focusin: 0, focusout: 0 };
-
-/*
- * A number of helper functions used for managing events.
- * Many of the ideas behind this code originated from
- * Dean Edwards' addEvent library.
- */
-jQuery.event = {
-
- // Bind an event to an element
- // Original by Dean Edwards
- add: function( elem, types, handler, data ) {
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // For whatever reason, IE has trouble passing the window object
- // around, causing it to be cloned in the process
- if ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) {
- elem = window;
- }
-
- if ( handler === false ) {
- handler = returnFalse;
- } else if ( !handler ) {
- // Fixes bug #7229. Fix recommended by jdalton
- return;
- }
-
- var handleObjIn, handleObj;
-
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- }
-
- // Make sure that the function being executed has a unique ID
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure
- var elemData = jQuery.data( elem );
-
- // If no elemData is found then we must be trying to bind to one of the
- // banned noData elements
- if ( !elemData ) {
- return;
- }
-
- // Use a key less likely to result in collisions for plain JS objects.
- // Fixes bug #7150.
- var eventKey = elem.nodeType ? "events" : "__events__",
- events = elemData[ eventKey ],
- eventHandle = elemData.handle;
-
- if ( typeof events === "function" ) {
- // On plain objects events is a fn that holds the the data
- // which prevents this data from being JSON serialized
- // the function does not need to be called, it just contains the data
- eventHandle = events.handle;
- events = events.events;
-
- } else if ( !events ) {
- if ( !elem.nodeType ) {
- // On plain objects, create a fn that acts as the holder
- // of the values to avoid JSON serialization of event data
- elemData[ eventKey ] = elemData = function(){};
- }
-
- elemData.events = events = {};
- }
-
- if ( !eventHandle ) {
- elemData.handle = eventHandle = function() {
- // Handle the second event of a trigger and when
- // an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
- jQuery.event.handle.apply( eventHandle.elem, arguments ) :
- undefined;
- };
- }
-
- // Add elem as a property of the handle function
- // This is to prevent a memory leak with non-native events in IE.
- eventHandle.elem = elem;
-
- // Handle multiple events separated by a space
- // jQuery(...).bind("mouseover mouseout", fn);
- types = types.split(" ");
-
- var type, i = 0, namespaces;
-
- while ( (type = types[ i++ ]) ) {
- handleObj = handleObjIn ?
- jQuery.extend({}, handleObjIn) :
- { handler: handler, data: data };
-
- // Namespaced event handlers
- if ( type.indexOf(".") > -1 ) {
- namespaces = type.split(".");
- type = namespaces.shift();
- handleObj.namespace = namespaces.slice(0).sort().join(".");
-
- } else {
- namespaces = [];
- handleObj.namespace = "";
- }
-
- handleObj.type = type;
- if ( !handleObj.guid ) {
- handleObj.guid = handler.guid;
- }
-
- // Get the current list of functions bound to this event
- var handlers = events[ type ],
- special = jQuery.event.special[ type ] || {};
-
- // Init the event handler queue
- if ( !handlers ) {
- handlers = events[ type ] = [];
-
- // Check for a special event handler
- // Only use addEventListener/attachEvent if the special
- // events handler returns false
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
- // Bind the global event handler to the element
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
-
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add the function to the element's handler list
- handlers.push( handleObj );
-
- // Keep track of which events have been used, for global triggering
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- global: {},
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, pos ) {
- // don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- if ( handler === false ) {
- handler = returnFalse;
- }
-
- var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
- eventKey = elem.nodeType ? "events" : "__events__",
- elemData = jQuery.data( elem ),
- events = elemData && elemData[ eventKey ];
-
- if ( !elemData || !events ) {
- return;
- }
-
- if ( typeof events === "function" ) {
- elemData = events;
- events = events.events;
- }
-
- // types is actually an event object here
- if ( types && types.type ) {
- handler = types.handler;
- types = types.type;
- }
-
- // Unbind all events for the element
- if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
- types = types || "";
-
- for ( type in events ) {
- jQuery.event.remove( elem, type + types );
- }
-
- return;
- }
-
- // Handle multiple events separated by a space
- // jQuery(...).unbind("mouseover mouseout", fn);
- types = types.split(" ");
-
- while ( (type = types[ i++ ]) ) {
- origType = type;
- handleObj = null;
- all = type.indexOf(".") < 0;
- namespaces = [];
-
- if ( !all ) {
- // Namespaced event handlers
- namespaces = type.split(".");
- type = namespaces.shift();
-
- namespace = new RegExp("(^|\\.)" +
- jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)");
- }
-
- eventType = events[ type ];
-
- if ( !eventType ) {
- continue;
- }
-
- if ( !handler ) {
- for ( j = 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( all || namespace.test( handleObj.namespace ) ) {
- jQuery.event.remove( elem, origType, handleObj.handler, j );
- eventType.splice( j--, 1 );
- }
- }
-
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
-
- for ( j = pos || 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( handler.guid === handleObj.guid ) {
- // remove the given handler for the given type
- if ( all || namespace.test( handleObj.namespace ) ) {
- if ( pos == null ) {
- eventType.splice( j--, 1 );
- }
-
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
-
- if ( pos != null ) {
- break;
- }
- }
- }
-
- // remove generic event handler if no more handlers exist
- if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
- if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- ret = null;
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- var handle = elemData.handle;
- if ( handle ) {
- handle.elem = null;
- }
-
- delete elemData.events;
- delete elemData.handle;
-
- if ( typeof elemData === "function" ) {
- jQuery.removeData( elem, eventKey );
-
- } else if ( jQuery.isEmptyObject( elemData ) ) {
- jQuery.removeData( elem );
- }
- }
- },
-
- // bubbling is internal
- trigger: function( event, data, elem /*, bubbling */ ) {
- // Event object or event type
- var type = event.type || event,
- bubbling = arguments[3];
-
- if ( !bubbling ) {
- event = typeof event === "object" ?
- // jQuery.Event object
- event[ jQuery.expando ] ? event :
- // Object literal
- jQuery.extend( jQuery.Event(type), event ) :
- // Just the event type (string)
- jQuery.Event(type);
-
- if ( type.indexOf("!") >= 0 ) {
- event.type = type = type.slice(0, -1);
- event.exclusive = true;
- }
-
- // Handle a global trigger
- if ( !elem ) {
- // Don't bubble custom events when global (to avoid too much overhead)
- event.stopPropagation();
-
- // Only trigger if we've ever bound an event for it
- if ( jQuery.event.global[ type ] ) {
- jQuery.each( jQuery.cache, function() {
- if ( this.events && this.events[type] ) {
- jQuery.event.trigger( event, data, this.handle.elem );
- }
- });
- }
- }
-
- // Handle triggering a single element
-
- // don't do events on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
- return undefined;
- }
-
- // Clean up in case it is reused
- event.result = undefined;
- event.target = elem;
-
- // Clone the incoming data, if any
- data = jQuery.makeArray( data );
- data.unshift( event );
- }
-
- event.currentTarget = elem;
-
- // Trigger the event, it is assumed that "handle" is a function
- var handle = elem.nodeType ?
- jQuery.data( elem, "handle" ) :
- (jQuery.data( elem, "__events__" ) || {}).handle;
-
- if ( handle ) {
- handle.apply( elem, data );
- }
-
- var parent = elem.parentNode || elem.ownerDocument;
-
- // Trigger an inline bound script
- try {
- if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
- if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
- event.result = false;
- event.preventDefault();
- }
- }
-
- // prevent IE from throwing an error for some elements with some event types, see #3533
- } catch (inlineError) {}
-
- if ( !event.isPropagationStopped() && parent ) {
- jQuery.event.trigger( event, data, parent, true );
-
- } else if ( !event.isDefaultPrevented() ) {
- var old,
- target = event.target,
- targetType = type.replace( rnamespaces, "" ),
- isClick = jQuery.nodeName( target, "a" ) && targetType === "click",
- special = jQuery.event.special[ targetType ] || {};
-
- if ( (!special._default || special._default.call( elem, event ) === false) &&
- !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
-
- try {
- if ( target[ targetType ] ) {
- // Make sure that we don't accidentally re-trigger the onFOO events
- old = target[ "on" + targetType ];
-
- if ( old ) {
- target[ "on" + targetType ] = null;
- }
-
- jQuery.event.triggered = true;
- target[ targetType ]();
- }
-
- // prevent IE from throwing an error for some elements with some event types, see #3533
- } catch (triggerError) {}
-
- if ( old ) {
- target[ "on" + targetType ] = old;
- }
-
- jQuery.event.triggered = false;
- }
- }
- },
-
- handle: function( event ) {
- var all, handlers, namespaces, namespace_re, events,
- namespace_sort = [],
- args = jQuery.makeArray( arguments );
-
- event = args[0] = jQuery.event.fix( event || window.event );
- event.currentTarget = this;
-
- // Namespaced event handlers
- all = event.type.indexOf(".") < 0 && !event.exclusive;
-
- if ( !all ) {
- namespaces = event.type.split(".");
- event.type = namespaces.shift();
- namespace_sort = namespaces.slice(0).sort();
- namespace_re = new RegExp("(^|\\.)" + namespace_sort.join("\\.(?:.*\\.)?") + "(\\.|$)");
- }
-
- event.namespace = event.namespace || namespace_sort.join(".");
-
- events = jQuery.data(this, this.nodeType ? "events" : "__events__");
-
- if ( typeof events === "function" ) {
- events = events.events;
- }
-
- handlers = (events || {})[ event.type ];
-
- if ( events && handlers ) {
- // Clone the handlers to prevent manipulation
- handlers = handlers.slice(0);
-
- for ( var j = 0, l = handlers.length; j < l; j++ ) {
- var handleObj = handlers[ j ];
-
- // Filter the functions by class
- if ( all || namespace_re.test( handleObj.namespace ) ) {
- // Pass in a reference to the handler function itself
- // So that we can later remove it
- event.handler = handleObj.handler;
- event.data = handleObj.data;
- event.handleObj = handleObj;
-
- var ret = handleObj.handler.apply( this, args );
-
- if ( ret !== undefined ) {
- event.result = ret;
- if ( ret === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
-
- if ( event.isImmediatePropagationStopped() ) {
- break;
- }
- }
- }
- }
-
- return event.result;
- },
-
- props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // store a copy of the original event object
- // and "clone" to set read-only properties
- var originalEvent = event;
- event = jQuery.Event( originalEvent );
-
- for ( var i = this.props.length, prop; i; ) {
- prop = this.props[ --i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Fix target property, if necessary
- if ( !event.target ) {
- // Fixes #1925 where srcElement might not be defined either
- event.target = event.srcElement || document;
- }
-
- // check if target is a textnode (safari)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && event.fromElement ) {
- event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
- }
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && event.clientX != null ) {
- var doc = document.documentElement,
- body = document.body;
-
- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
- }
-
- // Add which for key events
- if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {
- event.which = event.charCode != null ? event.charCode : event.keyCode;
- }
-
- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
- if ( !event.metaKey && event.ctrlKey ) {
- event.metaKey = event.ctrlKey;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && event.button !== undefined ) {
- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
- }
-
- return event;
- },
-
- // Deprecated, use jQuery.guid instead
- guid: 1E8,
-
- // Deprecated, use jQuery.proxy instead
- proxy: jQuery.proxy,
-
- special: {
- ready: {
- // Make sure the ready event is setup
- setup: jQuery.bindReady,
- teardown: jQuery.noop
- },
-
- live: {
- add: function( handleObj ) {
- jQuery.event.add( this,
- liveConvert( handleObj.origType, handleObj.selector ),
- jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) );
- },
-
- remove: function( handleObj ) {
- jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );
- }
- },
-
- beforeunload: {
- setup: function( data, namespaces, eventHandle ) {
- // We only want to do this special case on windows
- if ( jQuery.isWindow( this ) ) {
- this.onbeforeunload = eventHandle;
- }
- },
-
- teardown: function( namespaces, eventHandle ) {
- if ( this.onbeforeunload === eventHandle ) {
- this.onbeforeunload = null;
- }
- }
- }
- }
-};
-
-jQuery.removeEvent = document.removeEventListener ?
- function( elem, type, handle ) {
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle, false );
- }
- } :
- function( elem, type, handle ) {
- if ( elem.detachEvent ) {
- elem.detachEvent( "on" + type, handle );
- }
- };
-
-jQuery.Event = function( src ) {
- // Allow instantiation without the 'new' keyword
- if ( !this.preventDefault ) {
- return new jQuery.Event( src );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
- // Event type
- } else {
- this.type = src;
- }
-
- // timeStamp is buggy for some events on Firefox(#3843)
- // So we won't rely on the native value
- this.timeStamp = jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
- return false;
-}
-function returnTrue() {
- return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- preventDefault: function() {
- this.isDefaultPrevented = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
-
- // if preventDefault exists run it on the original event
- if ( e.preventDefault ) {
- e.preventDefault();
-
- // otherwise set the returnValue property of the original event to false (IE)
- } else {
- e.returnValue = false;
- }
- },
- stopPropagation: function() {
- this.isPropagationStopped = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
- // if stopPropagation exists run it on the original event
- if ( e.stopPropagation ) {
- e.stopPropagation();
- }
- // otherwise set the cancelBubble property of the original event to true (IE)
- e.cancelBubble = true;
- },
- stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = returnTrue;
- this.stopPropagation();
- },
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse
-};
-
-// Checks if an event happened on an element within another element
-// Used in jQuery.event.special.mouseenter and mouseleave handlers
-var withinElement = function( event ) {
- // Check if mouse(over|out) are still within the same parent element
- var parent = event.relatedTarget;
-
- // Firefox sometimes assigns relatedTarget a XUL element
- // which we cannot access the parentNode property of
- try {
- // Traverse up the tree
- while ( parent && parent !== this ) {
- parent = parent.parentNode;
- }
-
- if ( parent !== this ) {
- // set the correct event type
- event.type = event.data;
-
- // handle event if we actually just moused on to a non sub-element
- jQuery.event.handle.apply( this, arguments );
- }
-
- // assuming we've left the element since we most likely mousedover a xul element
- } catch(e) { }
-},
-
-// In case of event delegation, we only need to rename the event.type,
-// liveHandler will take care of the rest.
-delegate = function( event ) {
- event.type = event.data;
- jQuery.event.handle.apply( this, arguments );
-};
-
-// Create mouseenter and mouseleave events
-jQuery.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- setup: function( data ) {
- jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
- },
- teardown: function( data ) {
- jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
- }
- };
-});
-
-// submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
- jQuery.event.special.submit = {
- setup: function( data, namespaces ) {
- if ( this.nodeName.toLowerCase() !== "form" ) {
- jQuery.event.add(this, "click.specialSubmit", function( e ) {
- var elem = e.target,
- type = elem.type;
-
- if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
- e.liveFired = undefined;
- return trigger( "submit", this, arguments );
- }
- });
-
- jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
- var elem = e.target,
- type = elem.type;
-
- if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
- e.liveFired = undefined;
- return trigger( "submit", this, arguments );
- }
- });
-
- } else {
- return false;
- }
- },
-
- teardown: function( namespaces ) {
- jQuery.event.remove( this, ".specialSubmit" );
- }
- };
-
-}
-
-// change delegation, happens here so we have bind.
-if ( !jQuery.support.changeBubbles ) {
-
- var changeFilters,
-
- getVal = function( elem ) {
- var type = elem.type, val = elem.value;
-
- if ( type === "radio" || type === "checkbox" ) {
- val = elem.checked;
-
- } else if ( type === "select-multiple" ) {
- val = elem.selectedIndex > -1 ?
- jQuery.map( elem.options, function( elem ) {
- return elem.selected;
- }).join("-") :
- "";
-
- } else if ( elem.nodeName.toLowerCase() === "select" ) {
- val = elem.selectedIndex;
- }
-
- return val;
- },
-
- testChange = function testChange( e ) {
- var elem = e.target, data, val;
-
- if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {
- return;
- }
-
- data = jQuery.data( elem, "_change_data" );
- val = getVal(elem);
-
- // the current data will be also retrieved by beforeactivate
- if ( e.type !== "focusout" || elem.type !== "radio" ) {
- jQuery.data( elem, "_change_data", val );
- }
-
- if ( data === undefined || val === data ) {
- return;
- }
-
- if ( data != null || val ) {
- e.type = "change";
- e.liveFired = undefined;
- return jQuery.event.trigger( e, arguments[1], elem );
- }
- };
-
- jQuery.event.special.change = {
- filters: {
- focusout: testChange,
-
- beforedeactivate: testChange,
-
- click: function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) {
- return testChange.call( this, e );
- }
- },
-
- // Change has to be called before submit
- // Keydown will be called before keypress, which is used in submit-event delegation
- keydown: function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
- (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
- type === "select-multiple" ) {
- return testChange.call( this, e );
- }
- },
-
- // Beforeactivate happens also before the previous element is blurred
- // with this event you can't trigger a change event, but you can store
- // information
- beforeactivate: function( e ) {
- var elem = e.target;
- jQuery.data( elem, "_change_data", getVal(elem) );
- }
- },
-
- setup: function( data, namespaces ) {
- if ( this.type === "file" ) {
- return false;
- }
-
- for ( var type in changeFilters ) {
- jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
- }
-
- return rformElems.test( this.nodeName );
- },
-
- teardown: function( namespaces ) {
- jQuery.event.remove( this, ".specialChange" );
-
- return rformElems.test( this.nodeName );
- }
- };
-
- changeFilters = jQuery.event.special.change.filters;
-
- // Handle when the input is .focus()'d
- changeFilters.focus = changeFilters.beforeactivate;
-}
-
-function trigger( type, elem, args ) {
- args[0].type = type;
- return jQuery.event.handle.apply( elem, args );
-}
-
-// Create "bubbling" focus and blur events
-if ( document.addEventListener ) {
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
- jQuery.event.special[ fix ] = {
- setup: function() {
- if ( focusCounts[fix]++ === 0 ) {
- document.addEventListener( orig, handler, true );
- }
- },
- teardown: function() {
- if ( --focusCounts[fix] === 0 ) {
- document.removeEventListener( orig, handler, true );
- }
- }
- };
-
- function handler( e ) {
- e = jQuery.event.fix( e );
- e.type = fix;
- return jQuery.event.trigger( e, null, e.target );
- }
- });
-}
-
-jQuery.each(["bind", "one"], function( i, name ) {
- jQuery.fn[ name ] = function( type, data, fn ) {
- // Handle object literals
- if ( typeof type === "object" ) {
- for ( var key in type ) {
- this[ name ](key, data, type[key], fn);
- }
- return this;
- }
-
- if ( jQuery.isFunction( data ) || data === false ) {
- fn = data;
- data = undefined;
- }
-
- var handler = name === "one" ? jQuery.proxy( fn, function( event ) {
- jQuery( this ).unbind( event, handler );
- return fn.apply( this, arguments );
- }) : fn;
-
- if ( type === "unload" && name !== "one" ) {
- this.one( type, data, fn );
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- jQuery.event.add( this[i], type, handler, data );
- }
- }
-
- return this;
- };
-});
-
-jQuery.fn.extend({
- unbind: function( type, fn ) {
- // Handle object literals
- if ( typeof type === "object" && !type.preventDefault ) {
- for ( var key in type ) {
- this.unbind(key, type[key]);
- }
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- jQuery.event.remove( this[i], type, fn );
- }
- }
-
- return this;
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.live( types, data, fn, selector );
- },
-
- undelegate: function( selector, types, fn ) {
- if ( arguments.length === 0 ) {
- return this.unbind( "live" );
-
- } else {
- return this.die( types, null, fn, selector );
- }
- },
-
- trigger: function( type, data ) {
- return this.each(function() {
- jQuery.event.trigger( type, data, this );
- });
- },
-
- triggerHandler: function( type, data ) {
- if ( this[0] ) {
- var event = jQuery.Event( type );
- event.preventDefault();
- event.stopPropagation();
- jQuery.event.trigger( event, data, this[0] );
- return event.result;
- }
- },
-
- toggle: function( fn ) {
- // Save reference to arguments for access in closure
- var args = arguments,
- i = 1;
-
- // link all the functions, so any of them can unbind this click handler
- while ( i < args.length ) {
- jQuery.proxy( fn, args[ i++ ] );
- }
-
- return this.click( jQuery.proxy( fn, function( event ) {
- // Figure out which function to execute
- var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
- jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
- // Make sure that clicks stop
- event.preventDefault();
-
- // and execute the function
- return args[ lastToggle ].apply( this, arguments ) || false;
- }));
- },
-
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-});
-
-var liveMap = {
- focus: "focusin",
- blur: "focusout",
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-};
-
-jQuery.each(["live", "die"], function( i, name ) {
- jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
- var type, i = 0, match, namespaces, preType,
- selector = origSelector || this.selector,
- context = origSelector ? this : jQuery( this.context );
-
- if ( typeof types === "object" && !types.preventDefault ) {
- for ( var key in types ) {
- context[ name ]( key, data, types[key], selector );
- }
-
- return this;
- }
-
- if ( jQuery.isFunction( data ) ) {
- fn = data;
- data = undefined;
- }
-
- types = (types || "").split(" ");
-
- while ( (type = types[ i++ ]) != null ) {
- match = rnamespaces.exec( type );
- namespaces = "";
-
- if ( match ) {
- namespaces = match[0];
- type = type.replace( rnamespaces, "" );
- }
-
- if ( type === "hover" ) {
- types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
- continue;
- }
-
- preType = type;
-
- if ( type === "focus" || type === "blur" ) {
- types.push( liveMap[ type ] + namespaces );
- type = type + namespaces;
-
- } else {
- type = (liveMap[ type ] || type) + namespaces;
- }
-
- if ( name === "live" ) {
- // bind live handler
- for ( var j = 0, l = context.length; j < l; j++ ) {
- jQuery.event.add( context[j], "live." + liveConvert( type, selector ),
- { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
- }
-
- } else {
- // unbind live handler
- context.unbind( "live." + liveConvert( type, selector ), fn );
- }
- }
-
- return this;
- };
-});
-
-function liveHandler( event ) {
- var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
- elems = [],
- selectors = [],
- events = jQuery.data( this, this.nodeType ? "events" : "__events__" );
-
- if ( typeof events === "function" ) {
- events = events.events;
- }
-
- // Make sure we avoid non-left-click bubbling in Firefox (#3861)
- if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
- return;
- }
-
- if ( event.namespace ) {
- namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
- }
-
- event.liveFired = this;
-
- var live = events.live.slice(0);
-
- for ( j = 0; j < live.length; j++ ) {
- handleObj = live[j];
-
- if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
- selectors.push( handleObj.selector );
-
- } else {
- live.splice( j--, 1 );
- }
- }
-
- match = jQuery( event.target ).closest( selectors, event.currentTarget );
-
- for ( i = 0, l = match.length; i < l; i++ ) {
- close = match[i];
-
- for ( j = 0; j < live.length; j++ ) {
- handleObj = live[j];
-
- if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) ) {
- elem = close.elem;
- related = null;
-
- // Those two events require additional checking
- if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
- event.type = handleObj.preType;
- related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
- }
-
- if ( !related || related !== elem ) {
- elems.push({ elem: elem, handleObj: handleObj, level: close.level });
- }
- }
- }
- }
-
- for ( i = 0, l = elems.length; i < l; i++ ) {
- match = elems[i];
-
- if ( maxLevel && match.level > maxLevel ) {
- break;
- }
-
- event.currentTarget = match.elem;
- event.data = match.handleObj.data;
- event.handleObj = match.handleObj;
-
- ret = match.handleObj.origHandler.apply( match.elem, arguments );
-
- if ( ret === false || event.isPropagationStopped() ) {
- maxLevel = match.level;
-
- if ( ret === false ) {
- stop = false;
- }
- if ( event.isImmediatePropagationStopped() ) {
- break;
- }
- }
- }
-
- return stop;
-}
-
-function liveConvert( type, selector ) {
- return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspace, "&");
-}
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- if ( fn == null ) {
- fn = data;
- data = null;
- }
-
- return arguments.length > 0 ?
- this.bind( name, data, fn ) :
- this.trigger( name );
- };
-
- if ( jQuery.attrFn ) {
- jQuery.attrFn[ name ] = true;
- }
-});
-
-// Prevent memory leaks in IE
-// Window isn't included so as not to unbind existing unload events
-// More info:
-// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
-if ( window.attachEvent && !window.addEventListener ) {
- jQuery(window).bind("unload", function() {
- for ( var id in jQuery.cache ) {
- if ( jQuery.cache[ id ].handle ) {
- // Try/Catch is to handle iframes being unloaded, see #4280
- try {
- jQuery.event.remove( jQuery.cache[ id ].handle.elem );
- } catch(e) {}
- }
- }
- });
-}
-
-
-/*!
- * Sizzle CSS Selector Engine - v1.0
- * Copyright 2009, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- done = 0,
- toString = Object.prototype.toString,
- hasDuplicate = false,
- baseHasDuplicate = true;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-// Thus far that includes Google Chrome.
-[0, 0].sort(function() {
- baseHasDuplicate = false;
- return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
- results = results || [];
- context = context || document;
-
- var origContext = context;
-
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
- return [];
- }
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- var m, set, checkSet, extra, ret, cur, pop, i,
- prune = true,
- contextXML = Sizzle.isXML( context ),
- parts = [],
- soFar = selector;
-
- // Reset the position of the chunker regexp (start from head)
- do {
- chunker.exec( "" );
- m = chunker.exec( soFar );
-
- if ( m ) {
- soFar = m[3];
-
- parts.push( m[1] );
-
- if ( m[2] ) {
- extra = m[3];
- break;
- }
- }
- } while ( m );
-
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
- set = posProcess( parts[0] + parts[1], context );
-
- } else {
- set = Expr.relative[ parts[0] ] ?
- [ context ] :
- Sizzle( parts.shift(), context );
-
- while ( parts.length ) {
- selector = parts.shift();
-
- if ( Expr.relative[ selector ] ) {
- selector += parts.shift();
- }
-
- set = posProcess( selector, set );
- }
- }
-
- } else {
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
- ret = Sizzle.find( parts.shift(), context, contextXML );
- context = ret.expr ?
- Sizzle.filter( ret.expr, ret.set )[0] :
- ret.set[0];
- }
-
- if ( context ) {
- ret = seed ?
- { expr: parts.pop(), set: makeArray(seed) } :
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
- set = ret.expr ?
- Sizzle.filter( ret.expr, ret.set ) :
- ret.set;
-
- if ( parts.length > 0 ) {
- checkSet = makeArray( set );
-
- } else {
- prune = false;
- }
-
- while ( parts.length ) {
- cur = parts.pop();
- pop = cur;
-
- if ( !Expr.relative[ cur ] ) {
- cur = "";
- } else {
- pop = parts.pop();
- }
-
- if ( pop == null ) {
- pop = context;
- }
-
- Expr.relative[ cur ]( checkSet, pop, contextXML );
- }
-
- } else {
- checkSet = parts = [];
- }
- }
-
- if ( !checkSet ) {
- checkSet = set;
- }
-
- if ( !checkSet ) {
- Sizzle.error( cur || selector );
- }
-
- if ( toString.call(checkSet) === "[object Array]" ) {
- if ( !prune ) {
- results.push.apply( results, checkSet );
-
- } else if ( context && context.nodeType === 1 ) {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
- results.push( set[i] );
- }
- }
-
- } else {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
- results.push( set[i] );
- }
- }
- }
-
- } else {
- makeArray( checkSet, results );
- }
-
- if ( extra ) {
- Sizzle( extra, origContext, results, seed );
- Sizzle.uniqueSort( results );
- }
-
- return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
- if ( sortOrder ) {
- hasDuplicate = baseHasDuplicate;
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- for ( var i = 1; i < results.length; i++ ) {
- if ( results[i] === results[ i - 1 ] ) {
- results.splice( i--, 1 );
- }
- }
- }
- }
-
- return results;
-};
-
-Sizzle.matches = function( expr, set ) {
- return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
- return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
- var set;
-
- if ( !expr ) {
- return [];
- }
-
- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
- var match,
- type = Expr.order[i];
-
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
- var left = match[1];
- match.splice( 1, 1 );
-
- if ( left.substr( left.length - 1 ) !== "\\" ) {
- match[1] = (match[1] || "").replace(/\\/g, "");
- set = Expr.find[ type ]( match, context, isXML );
-
- if ( set != null ) {
- expr = expr.replace( Expr.match[ type ], "" );
- break;
- }
- }
- }
- }
-
- if ( !set ) {
- set = context.getElementsByTagName( "*" );
- }
-
- return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
- var match, anyFound,
- old = expr,
- result = [],
- curLoop = set,
- isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
- while ( expr && set.length ) {
- for ( var type in Expr.filter ) {
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
- var found, item,
- filter = Expr.filter[ type ],
- left = match[1];
-
- anyFound = false;
-
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) === "\\" ) {
- continue;
- }
-
- if ( curLoop === result ) {
- result = [];
- }
-
- if ( Expr.preFilter[ type ] ) {
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
- if ( !match ) {
- anyFound = found = true;
-
- } else if ( match === true ) {
- continue;
- }
- }
-
- if ( match ) {
- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
- if ( item ) {
- found = filter( item, match, i, curLoop );
- var pass = not ^ !!found;
-
- if ( inplace && found != null ) {
- if ( pass ) {
- anyFound = true;
-
- } else {
- curLoop[i] = false;
- }
-
- } else if ( pass ) {
- result.push( item );
- anyFound = true;
- }
- }
- }
- }
-
- if ( found !== undefined ) {
- if ( !inplace ) {
- curLoop = result;
- }
-
- expr = expr.replace( Expr.match[ type ], "" );
-
- if ( !anyFound ) {
- return [];
- }
-
- break;
- }
- }
- }
-
- // Improper expression
- if ( expr === old ) {
- if ( anyFound == null ) {
- Sizzle.error( expr );
-
- } else {
- break;
- }
- }
-
- old = expr;
- }
-
- return curLoop;
-};
-
-Sizzle.error = function( msg ) {
- throw "Syntax error, unrecognized expression: " + msg;
-};
-
-var Expr = Sizzle.selectors = {
- order: [ "ID", "NAME", "TAG" ],
-
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
- },
-
- leftMatch: {},
-
- attrMap: {
- "class": "className",
- "for": "htmlFor"
- },
-
- attrHandle: {
- href: function( elem ) {
- return elem.getAttribute( "href" );
- }
- },
-
- relative: {
- "+": function(checkSet, part){
- var isPartStr = typeof part === "string",
- isTag = isPartStr && !/\W/.test( part ),
- isPartStrNotTag = isPartStr && !isTag;
-
- if ( isTag ) {
- part = part.toLowerCase();
- }
-
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
- if ( (elem = checkSet[i]) ) {
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
- elem || false :
- elem === part;
- }
- }
-
- if ( isPartStrNotTag ) {
- Sizzle.filter( part, checkSet, true );
- }
- },
-
- ">": function( checkSet, part ) {
- var elem,
- isPartStr = typeof part === "string",
- i = 0,
- l = checkSet.length;
-
- if ( isPartStr && !/\W/.test( part ) ) {
- part = part.toLowerCase();
-
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
-
- if ( elem ) {
- var parent = elem.parentNode;
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
- }
- }
-
- } else {
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
-
- if ( elem ) {
- checkSet[i] = isPartStr ?
- elem.parentNode :
- elem.parentNode === part;
- }
- }
-
- if ( isPartStr ) {
- Sizzle.filter( part, checkSet, true );
- }
- }
- },
-
- "": function(checkSet, part, isXML){
- var nodeCheck,
- doneName = done++,
- checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test(part) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
-
- checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
- },
-
- "~": function( checkSet, part, isXML ) {
- var nodeCheck,
- doneName = done++,
- checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test( part ) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
-
- checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
- }
- },
-
- find: {
- ID: function( match, context, isXML ) {
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- return m && m.parentNode ? [m] : [];
- }
- },
-
- NAME: function( match, context ) {
- if ( typeof context.getElementsByName !== "undefined" ) {
- var ret = [],
- results = context.getElementsByName( match[1] );
-
- for ( var i = 0, l = results.length; i < l; i++ ) {
- if ( results[i].getAttribute("name") === match[1] ) {
- ret.push( results[i] );
- }
- }
-
- return ret.length === 0 ? null : ret;
- }
- },
-
- TAG: function( match, context ) {
- return context.getElementsByTagName( match[1] );
- }
- },
- preFilter: {
- CLASS: function( match, curLoop, inplace, result, not, isXML ) {
- match = " " + match[1].replace(/\\/g, "") + " ";
-
- if ( isXML ) {
- return match;
- }
-
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
- if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n]/g, " ").indexOf(match) >= 0) ) {
- if ( !inplace ) {
- result.push( elem );
- }
-
- } else if ( inplace ) {
- curLoop[i] = false;
- }
- }
- }
-
- return false;
- },
-
- ID: function( match ) {
- return match[1].replace(/\\/g, "");
- },
-
- TAG: function( match, curLoop ) {
- return match[1].toLowerCase();
- },
-
- CHILD: function( match ) {
- if ( match[1] === "nth" ) {
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
- match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
- // calculate the numbers (first)n+(last) including if they are negative
- match[2] = (test[1] + (test[2] || 1)) - 0;
- match[3] = test[3] - 0;
- }
-
- // TODO: Move to normal caching system
- match[0] = done++;
-
- return match;
- },
-
- ATTR: function( match, curLoop, inplace, result, not, isXML ) {
- var name = match[1].replace(/\\/g, "");
-
- if ( !isXML && Expr.attrMap[name] ) {
- match[1] = Expr.attrMap[name];
- }
-
- if ( match[2] === "~=" ) {
- match[4] = " " + match[4] + " ";
- }
-
- return match;
- },
-
- PSEUDO: function( match, curLoop, inplace, result, not ) {
- if ( match[1] === "not" ) {
- // If we're dealing with a complex expression, or a simple one
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
- match[3] = Sizzle(match[3], null, null, curLoop);
-
- } else {
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
- if ( !inplace ) {
- result.push.apply( result, ret );
- }
-
- return false;
- }
-
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
- return true;
- }
-
- return match;
- },
-
- POS: function( match ) {
- match.unshift( true );
-
- return match;
- }
- },
-
- filters: {
- enabled: function( elem ) {
- return elem.disabled === false && elem.type !== "hidden";
- },
-
- disabled: function( elem ) {
- return elem.disabled === true;
- },
-
- checked: function( elem ) {
- return elem.checked === true;
- },
-
- selected: function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- elem.parentNode.selectedIndex;
-
- return elem.selected === true;
- },
-
- parent: function( elem ) {
- return !!elem.firstChild;
- },
-
- empty: function( elem ) {
- return !elem.firstChild;
- },
-
- has: function( elem, i, match ) {
- return !!Sizzle( match[3], elem ).length;
- },
-
- header: function( elem ) {
- return (/h\d/i).test( elem.nodeName );
- },
-
- text: function( elem ) {
- return "text" === elem.type;
- },
- radio: function( elem ) {
- return "radio" === elem.type;
- },
-
- checkbox: function( elem ) {
- return "checkbox" === elem.type;
- },
-
- file: function( elem ) {
- return "file" === elem.type;
- },
- password: function( elem ) {
- return "password" === elem.type;
- },
-
- submit: function( elem ) {
- return "submit" === elem.type;
- },
-
- image: function( elem ) {
- return "image" === elem.type;
- },
-
- reset: function( elem ) {
- return "reset" === elem.type;
- },
-
- button: function( elem ) {
- return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
- },
-
- input: function( elem ) {
- return (/input|select|textarea|button/i).test( elem.nodeName );
- }
- },
- setFilters: {
- first: function( elem, i ) {
- return i === 0;
- },
-
- last: function( elem, i, match, array ) {
- return i === array.length - 1;
- },
-
- even: function( elem, i ) {
- return i % 2 === 0;
- },
-
- odd: function( elem, i ) {
- return i % 2 === 1;
- },
-
- lt: function( elem, i, match ) {
- return i < match[3] - 0;
- },
-
- gt: function( elem, i, match ) {
- return i > match[3] - 0;
- },
-
- nth: function( elem, i, match ) {
- return match[3] - 0 === i;
- },
-
- eq: function( elem, i, match ) {
- return match[3] - 0 === i;
- }
- },
- filter: {
- PSEUDO: function( elem, match, i, array ) {
- var name = match[1],
- filter = Expr.filters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
-
- } else if ( name === "contains" ) {
- return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
- } else if ( name === "not" ) {
- var not = match[3];
-
- for ( var j = 0, l = not.length; j < l; j++ ) {
- if ( not[j] === elem ) {
- return false;
- }
- }
-
- return true;
-
- } else {
- Sizzle.error( "Syntax error, unrecognized expression: " + name );
- }
- },
-
- CHILD: function( elem, match ) {
- var type = match[1],
- node = elem;
-
- switch ( type ) {
- case "only":
- case "first":
- while ( (node = node.previousSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
-
- if ( type === "first" ) {
- return true;
- }
-
- node = elem;
-
- case "last":
- while ( (node = node.nextSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
-
- return true;
-
- case "nth":
- var first = match[2],
- last = match[3];
-
- if ( first === 1 && last === 0 ) {
- return true;
- }
-
- var doneName = match[0],
- parent = elem.parentNode;
-
- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
- var count = 0;
-
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
- if ( node.nodeType === 1 ) {
- node.nodeIndex = ++count;
- }
- }
-
- parent.sizcache = doneName;
- }
-
- var diff = elem.nodeIndex - last;
-
- if ( first === 0 ) {
- return diff === 0;
-
- } else {
- return ( diff % first === 0 && diff / first >= 0 );
- }
- }
- },
-
- ID: function( elem, match ) {
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
- },
-
- TAG: function( elem, match ) {
- return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
- },
-
- CLASS: function( elem, match ) {
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
- .indexOf( match ) > -1;
- },
-
- ATTR: function( elem, match ) {
- var name = match[1],
- result = Expr.attrHandle[ name ] ?
- Expr.attrHandle[ name ]( elem ) :
- elem[ name ] != null ?
- elem[ name ] :
- elem.getAttribute( name ),
- value = result + "",
- type = match[2],
- check = match[4];
-
- return result == null ?
- type === "!=" :
- type === "=" ?
- value === check :
- type === "*=" ?
- value.indexOf(check) >= 0 :
- type === "~=" ?
- (" " + value + " ").indexOf(check) >= 0 :
- !check ?
- value && result !== false :
- type === "!=" ?
- value !== check :
- type === "^=" ?
- value.indexOf(check) === 0 :
- type === "$=" ?
- value.substr(value.length - check.length) === check :
- type === "|=" ?
- value === check || value.substr(0, check.length + 1) === check + "-" :
- false;
- },
-
- POS: function( elem, match, i, array ) {
- var name = match[2],
- filter = Expr.setFilters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- }
- }
- }
-};
-
-var origPOS = Expr.match.POS,
- fescape = function(all, num){
- return "\\" + (num - 0 + 1);
- };
-
-for ( var type in Expr.match ) {
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-
-var makeArray = function( array, results ) {
- array = Array.prototype.slice.call( array, 0 );
-
- if ( results ) {
- results.push.apply( results, array );
- return results;
- }
-
- return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
- makeArray = function( array, results ) {
- var i = 0,
- ret = results || [];
-
- if ( toString.call(array) === "[object Array]" ) {
- Array.prototype.push.apply( ret, array );
-
- } else {
- if ( typeof array.length === "number" ) {
- for ( var l = array.length; i < l; i++ ) {
- ret.push( array[i] );
- }
-
- } else {
- for ( ; array[i]; i++ ) {
- ret.push( array[i] );
- }
- }
- }
-
- return ret;
- };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
- return a.compareDocumentPosition ? -1 : 1;
- }
-
- return a.compareDocumentPosition(b) & 4 ? -1 : 1;
- };
-
-} else {
- sortOrder = function( a, b ) {
- var al, bl,
- ap = [],
- bp = [],
- aup = a.parentNode,
- bup = b.parentNode,
- cur = aup;
-
- // The nodes are identical, we can exit early
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
-
- // If the nodes are siblings (or identical) we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
-
- // If no parents were found then the nodes are disconnected
- } else if ( !aup ) {
- return -1;
-
- } else if ( !bup ) {
- return 1;
- }
-
- // Otherwise they're somewhere else in the tree so we need
- // to build up a full list of the parentNodes for comparison
- while ( cur ) {
- ap.unshift( cur );
- cur = cur.parentNode;
- }
-
- cur = bup;
-
- while ( cur ) {
- bp.unshift( cur );
- cur = cur.parentNode;
- }
-
- al = ap.length;
- bl = bp.length;
-
- // Start walking down the tree looking for a discrepancy
- for ( var i = 0; i < al && i < bl; i++ ) {
- if ( ap[i] !== bp[i] ) {
- return siblingCheck( ap[i], bp[i] );
- }
- }
-
- // We ended someplace up the tree so do a sibling check
- return i === al ?
- siblingCheck( a, bp[i], -1 ) :
- siblingCheck( ap[i], b, 1 );
- };
-
- siblingCheck = function( a, b, ret ) {
- if ( a === b ) {
- return ret;
- }
-
- var cur = a.nextSibling;
-
- while ( cur ) {
- if ( cur === b ) {
- return -1;
- }
-
- cur = cur.nextSibling;
- }
-
- return 1;
- };
-}
-
-// Utility function for retreiving the text value of an array of DOM nodes
-Sizzle.getText = function( elems ) {
- var ret = "", elem;
-
- for ( var i = 0; elems[i]; i++ ) {
- elem = elems[i];
-
- // Get the text from text nodes and CDATA nodes
- if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
- ret += elem.nodeValue;
-
- // Traverse everything else, except comment nodes
- } else if ( elem.nodeType !== 8 ) {
- ret += Sizzle.getText( elem.childNodes );
- }
- }
-
- return ret;
-};
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
- // We're going to inject a fake input element with a specified name
- var form = document.createElement("div"),
- id = "script" + (new Date()).getTime(),
- root = document.documentElement;
-
- form.innerHTML = "<a name='" + id + "'/>";
-
- // Inject it into the root element, check its status, and remove it quickly
- root.insertBefore( form, root.firstChild );
-
- // The workaround has to do additional checks after a getElementById
- // Which slows things down for other browsers (hence the branching)
- if ( document.getElementById( id ) ) {
- Expr.find.ID = function( match, context, isXML ) {
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
-
- return m ?
- m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
- [m] :
- undefined :
- [];
- }
- };
-
- Expr.filter.ID = function( elem, match ) {
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
- return elem.nodeType === 1 && node && node.nodeValue === match;
- };
- }
-
- root.removeChild( form );
-
- // release memory in IE
- root = form = null;
-})();
-
-(function(){
- // Check to see if the browser returns only elements
- // when doing getElementsByTagName("*")
-
- // Create a fake element
- var div = document.createElement("div");
- div.appendChild( document.createComment("") );
-
- // Make sure no comments are found
- if ( div.getElementsByTagName("*").length > 0 ) {
- Expr.find.TAG = function( match, context ) {
- var results = context.getElementsByTagName( match[1] );
-
- // Filter out possible comments
- if ( match[1] === "*" ) {
- var tmp = [];
-
- for ( var i = 0; results[i]; i++ ) {
- if ( results[i].nodeType === 1 ) {
- tmp.push( results[i] );
- }
- }
-
- results = tmp;
- }
-
- return results;
- };
- }
-
- // Check to see if an attribute returns normalized href attributes
- div.innerHTML = "<a href='#'></a>";
-
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
- div.firstChild.getAttribute("href") !== "#" ) {
-
- Expr.attrHandle.href = function( elem ) {
- return elem.getAttribute( "href", 2 );
- };
- }
-
- // release memory in IE
- div = null;
-})();
-
-if ( document.querySelectorAll ) {
- (function(){
- var oldSizzle = Sizzle,
- div = document.createElement("div"),
- id = "__sizzle__";
-
- div.innerHTML = "<p class='TEST'></p>";
-
- // Safari can't handle uppercase or unicode characters when
- // in quirks mode.
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
- return;
- }
-
- Sizzle = function( query, context, extra, seed ) {
- context = context || document;
-
- // Make sure that attribute selectors are quoted
- query = query.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
- // Only use querySelectorAll on non-XML documents
- // (ID selectors don't work in non-HTML documents)
- if ( !seed && !Sizzle.isXML(context) ) {
- if ( context.nodeType === 9 ) {
- try {
- return makeArray( context.querySelectorAll(query), extra );
- } catch(qsaError) {}
-
- // qSA works strangely on Element-rooted queries
- // We can work around this by specifying an extra ID on the root
- // and working up from there (Thanks to Andrew Dupont for the technique)
- // IE 8 doesn't work on object elements
- } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
- var old = context.getAttribute( "id" ),
- nid = old || id;
-
- if ( !old ) {
- context.setAttribute( "id", nid );
- }
-
- try {
- return makeArray( context.querySelectorAll( "#" + nid + " " + query ), extra );
-
- } catch(pseudoError) {
- } finally {
- if ( !old ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
-
- return oldSizzle(query, context, extra, seed);
- };
-
- for ( var prop in oldSizzle ) {
- Sizzle[ prop ] = oldSizzle[ prop ];
- }
-
- // release memory in IE
- div = null;
- })();
-}
-
-(function(){
- var html = document.documentElement,
- matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector,
- pseudoWorks = false;
-
- try {
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( document.documentElement, "[test!='']:sizzle" );
-
- } catch( pseudoError ) {
- pseudoWorks = true;
- }
-
- if ( matches ) {
- Sizzle.matchesSelector = function( node, expr ) {
- // Make sure that attribute selectors are quoted
- expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
- if ( !Sizzle.isXML( node ) ) {
- try {
- if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
- return matches.call( node, expr );
- }
- } catch(e) {}
- }
-
- return Sizzle(expr, null, null, [node]).length > 0;
- };
- }
-})();
-
-(function(){
- var div = document.createElement("div");
-
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
- // Opera can't find a second classname (in 9.6)
- // Also, make sure that getElementsByClassName actually exists
- if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
- return;
- }
-
- // Safari caches class attributes, doesn't catch changes (in 3.2)
- div.lastChild.className = "e";
-
- if ( div.getElementsByClassName("e").length === 1 ) {
- return;
- }
-
- Expr.order.splice(1, 0, "CLASS");
- Expr.find.CLASS = function( match, context, isXML ) {
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
- return context.getElementsByClassName(match[1]);
- }
- };
-
- // release memory in IE
- div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
-
- if ( elem ) {
- var match = false;
-
- elem = elem[dir];
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 && !isXML ){
- elem.sizcache = doneName;
- elem.sizset = i;
- }
-
- if ( elem.nodeName.toLowerCase() === cur ) {
- match = elem;
- break;
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
-
- if ( elem ) {
- var match = false;
-
- elem = elem[dir];
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 ) {
- if ( !isXML ) {
- elem.sizcache = doneName;
- elem.sizset = i;
- }
-
- if ( typeof cur !== "string" ) {
- if ( elem === cur ) {
- match = true;
- break;
- }
-
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
- match = elem;
- break;
- }
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-if ( document.documentElement.contains ) {
- Sizzle.contains = function( a, b ) {
- return a !== b && (a.contains ? a.contains(b) : true);
- };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
- Sizzle.contains = function( a, b ) {
- return !!(a.compareDocumentPosition(b) & 16);
- };
-
-} else {
- Sizzle.contains = function() {
- return false;
- };
-}
-
-Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context ) {
- var match,
- tmpSet = [],
- later = "",
- root = context.nodeType ? [context] : context;
-
- // Position selectors must be done after the filter
- // And so must :not(positional) so we move all PSEUDOs to the end
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
- later += match[0];
- selector = selector.replace( Expr.match.PSEUDO, "" );
- }
-
- selector = Expr.relative[selector] ? selector + "*" : selector;
-
- for ( var i = 0, l = root.length; i < l; i++ ) {
- Sizzle( selector, root[i], tmpSet );
- }
-
- return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
- rparentsprev = /^(?:parents|prevUntil|prevAll)/,
- // Note: This RegExp should be improved, or likely pulled from Sizzle
- rmultiselector = /,/,
- isSimple = /^.[^:#\[\.,]*$/,
- slice = Array.prototype.slice,
- POS = jQuery.expr.match.POS;
-
-jQuery.fn.extend({
- find: function( selector ) {
- var ret = this.pushStack( "", "find", selector ),
- length = 0;
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- length = ret.length;
- jQuery.find( selector, this[i], ret );
-
- if ( i > 0 ) {
- // Make sure that the results are unique
- for ( var n = length; n < ret.length; n++ ) {
- for ( var r = 0; r < length; r++ ) {
- if ( ret[r] === ret[n] ) {
- ret.splice(n--, 1);
- break;
- }
- }
- }
- }
- }
-
- return ret;
- },
-
- has: function( target ) {
- var targets = jQuery( target );
- return this.filter(function() {
- for ( var i = 0, l = targets.length; i < l; i++ ) {
- if ( jQuery.contains( this, targets[i] ) ) {
- return true;
- }
- }
- });
- },
-
- not: function( selector ) {
- return this.pushStack( winnow(this, selector, false), "not", selector);
- },
-
- filter: function( selector ) {
- return this.pushStack( winnow(this, selector, true), "filter", selector );
- },
-
- is: function( selector ) {
- return !!selector && jQuery.filter( selector, this ).length > 0;
- },
-
- closest: function( selectors, context ) {
- var ret = [], i, l, cur = this[0];
-
- if ( jQuery.isArray( selectors ) ) {
- var match, selector,
- matches = {},
- level = 1;
-
- if ( cur && selectors.length ) {
- for ( i = 0, l = selectors.length; i < l; i++ ) {
- selector = selectors[i];
-
- if ( !matches[selector] ) {
- matches[selector] = jQuery.expr.match.POS.test( selector ) ?
- jQuery( selector, context || this.context ) :
- selector;
- }
- }
-
- while ( cur && cur.ownerDocument && cur !== context ) {
- for ( selector in matches ) {
- match = matches[selector];
-
- if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
- ret.push({ selector: selector, elem: cur, level: level });
- }
- }
-
- cur = cur.parentNode;
- level++;
- }
- }
-
- return ret;
- }
-
- var pos = POS.test( selectors ) ?
- jQuery( selectors, context || this.context ) : null;
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- cur = this[i];
-
- while ( cur ) {
- if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
- ret.push( cur );
- break;
-
- } else {
- cur = cur.parentNode;
- if ( !cur || !cur.ownerDocument || cur === context ) {
- break;
- }
- }
- }
- }
-
- ret = ret.length > 1 ? jQuery.unique(ret) : ret;
-
- return this.pushStack( ret, "closest", selectors );
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
- if ( !elem || typeof elem === "string" ) {
- return jQuery.inArray( this[0],
- // If it receives a string, the selector is used
- // If it receives nothing, the siblings are used
- elem ? jQuery( elem ) : this.parent().children() );
- }
- // Locate the position of the desired element
- return jQuery.inArray(
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[0] : elem, this );
- },
-
- add: function( selector, context ) {
- var set = typeof selector === "string" ?
- jQuery( selector, context || this.context ) :
- jQuery.makeArray( selector ),
- all = jQuery.merge( this.get(), set );
-
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
- all :
- jQuery.unique( all ) );
- },
-
- andSelf: function() {
- return this.add( this.prevObject );
- }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
- return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return jQuery.dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return jQuery.nth( elem, 2, "nextSibling" );
- },
- prev: function( elem ) {
- return jQuery.nth( elem, 2, "previousSibling" );
- },
- nextAll: function( elem ) {
- return jQuery.dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return jQuery.dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return jQuery.sibling( elem.parentNode.firstChild, elem );
- },
- children: function( elem ) {
- return jQuery.sibling( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.makeArray( elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until );
-
- if ( !runtil.test( name ) ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- ret = jQuery.filter( selector, ret );
- }
-
- ret = this.length > 1 ? jQuery.unique( ret ) : ret;
-
- if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
- ret = ret.reverse();
- }
-
- return this.pushStack( ret, name, slice.call(arguments).join(",") );
- };
-});
-
-jQuery.extend({
- filter: function( expr, elems, not ) {
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 ?
- jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
- jQuery.find.matches(expr, elems);
- },
-
- dir: function( elem, dir, until ) {
- var matched = [],
- cur = elem[ dir ];
-
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
- if ( cur.nodeType === 1 ) {
- matched.push( cur );
- }
- cur = cur[dir];
- }
- return matched;
- },
-
- nth: function( cur, result, dir, elem ) {
- result = result || 1;
- var num = 0;
-
- for ( ; cur; cur = cur[dir] ) {
- if ( cur.nodeType === 1 && ++num === result ) {
- break;
- }
- }
-
- return cur;
- },
-
- sibling: function( n, elem ) {
- var r = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- r.push( n );
- }
- }
-
- return r;
- }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep(elements, function( elem, i ) {
- var retVal = !!qualifier.call( elem, i, elem );
- return retVal === keep;
- });
-
- } else if ( qualifier.nodeType ) {
- return jQuery.grep(elements, function( elem, i ) {
- return (elem === qualifier) === keep;
- });
-
- } else if ( typeof qualifier === "string" ) {
- var filtered = jQuery.grep(elements, function( elem ) {
- return elem.nodeType === 1;
- });
-
- if ( isSimple.test( qualifier ) ) {
- return jQuery.filter(qualifier, filtered, !keep);
- } else {
- qualifier = jQuery.filter( qualifier, filtered );
- }
- }
-
- return jQuery.grep(elements, function( elem, i ) {
- return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
- });
-}
-
-
-
-
-var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
- rleadingWhitespace = /^\s+/,
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
- rtagName = /<([\w:]+)/,
- rtbody = /<tbody/i,
- rhtml = /<|&#?\w+;/,
- rnocache = /<(?:script|object|embed|option|style)/i,
- // checked="checked" or checked (html5)
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- raction = /\=([^="'>\s]+\/)>/g,
- wrapMap = {
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
- legend: [ 1, "<fieldset>", "</fieldset>" ],
- thead: [ 1, "<table>", "</table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
- col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
- area: [ 1, "<map>", "</map>" ],
- _default: [ 0, "", "" ]
- };
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
- wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
- text: function( text ) {
- if ( jQuery.isFunction(text) ) {
- return this.each(function(i) {
- var self = jQuery( this );
-
- self.text( text.call(this, i, self.text()) );
- });
- }
-
- if ( typeof text !== "object" && text !== undefined ) {
- return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
- }
-
- return jQuery.text( this );
- },
-
- wrapAll: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapAll( html.call(this, i) );
- });
- }
-
- if ( this[0] ) {
- // The elements to wrap the target around
- var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
- if ( this[0].parentNode ) {
- wrap.insertBefore( this[0] );
- }
-
- wrap.map(function() {
- var elem = this;
-
- while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
- elem = elem.firstChild;
- }
-
- return elem;
- }).append(this);
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapInner( html.call(this, i) );
- });
- }
-
- return this.each(function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- });
- },
-
- wrap: function( html ) {
- return this.each(function() {
- jQuery( this ).wrapAll( html );
- });
- },
-
- unwrap: function() {
- return this.parent().each(function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- }).end();
- },
-
- append: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.appendChild( elem );
- }
- });
- },
-
- prepend: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.insertBefore( elem, this.firstChild );
- }
- });
- },
-
- before: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this );
- });
- } else if ( arguments.length ) {
- var set = jQuery(arguments[0]);
- set.push.apply( set, this.toArray() );
- return this.pushStack( set, "before", arguments );
- }
- },
-
- after: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- });
- } else if ( arguments.length ) {
- var set = this.pushStack( this, "after", arguments );
- set.push.apply( set, jQuery(arguments[0]).toArray() );
- return set;
- }
- },
-
- // keepData is for internal use only--do not document
- remove: function( selector, keepData ) {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
- if ( !keepData && elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- jQuery.cleanData( [ elem ] );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
- }
- }
-
- return this;
- },
-
- empty: function() {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- }
-
- // Remove any remaining nodes
- while ( elem.firstChild ) {
- elem.removeChild( elem.firstChild );
- }
- }
-
- return this;
- },
-
- clone: function( events ) {
- // Do the clone
- var ret = this.map(function() {
- if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
- // IE copies events bound via attachEvent when
- // using cloneNode. Calling detachEvent on the
- // clone will also remove the events from the orignal
- // In order to get around this, we use innerHTML.
- // Unfortunately, this means some modifications to
- // attributes in IE that are actually only stored
- // as properties will not be copied (such as the
- // the name attribute on an input).
- var html = this.outerHTML,
- ownerDocument = this.ownerDocument;
-
- if ( !html ) {
- var div = ownerDocument.createElement("div");
- div.appendChild( this.cloneNode(true) );
- html = div.innerHTML;
- }
-
- return jQuery.clean([html.replace(rinlinejQuery, "")
- // Handle the case in IE 8 where action=/test/> self-closes a tag
- .replace(raction, '="$1">')
- .replace(rleadingWhitespace, "")], ownerDocument)[0];
- } else {
- return this.cloneNode(true);
- }
- });
-
- // Copy the events from the original to the clone
- if ( events === true ) {
- cloneCopyEvent( this, ret );
- cloneCopyEvent( this.find("*"), ret.find("*") );
- }
-
- // Return the cloned set
- return ret;
- },
-
- html: function( value ) {
- if ( value === undefined ) {
- return this[0] && this[0].nodeType === 1 ?
- this[0].innerHTML.replace(rinlinejQuery, "") :
- null;
-
- // See if we can take a shortcut and just use innerHTML
- } else if ( typeof value === "string" && !rnocache.test( value ) &&
- (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
- !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
-
- value = value.replace(rxhtmlTag, "<$1></$2>");
-
- try {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( this[i].nodeType === 1 ) {
- jQuery.cleanData( this[i].getElementsByTagName("*") );
- this[i].innerHTML = value;
- }
- }
-
- // If using innerHTML throws an exception, use the fallback method
- } catch(e) {
- this.empty().append( value );
- }
-
- } else if ( jQuery.isFunction( value ) ) {
- this.each(function(i){
- var self = jQuery( this );
-
- self.html( value.call(this, i, self.html()) );
- });
-
- } else {
- this.empty().append( value );
- }
-
- return this;
- },
-
- replaceWith: function( value ) {
- if ( this[0] && this[0].parentNode ) {
- // Make sure that the elements are removed from the DOM before they are inserted
- // this can help fix replacing a parent with child elements
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this), old = self.html();
- self.replaceWith( value.call( this, i, old ) );
- });
- }
-
- if ( typeof value !== "string" ) {
- value = jQuery( value ).detach();
- }
-
- return this.each(function() {
- var next = this.nextSibling,
- parent = this.parentNode;
-
- jQuery( this ).remove();
-
- if ( next ) {
- jQuery(next).before( value );
- } else {
- jQuery(parent).append( value );
- }
- });
- } else {
- return this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value );
- }
- },
-
- detach: function( selector ) {
- return this.remove( selector, true );
- },
-
- domManip: function( args, table, callback ) {
- var results, first, fragment, parent,
- value = args[0],
- scripts = [];
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
- return this.each(function() {
- jQuery(this).domManip( args, table, callback, true );
- });
- }
-
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- args[0] = value.call(this, i, table ? self.html() : undefined);
- self.domManip( args, table, callback );
- });
- }
-
- if ( this[0] ) {
- parent = value && value.parentNode;
-
- // If we're in a fragment, just use that instead of building a new one
- if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
- results = { fragment: parent };
-
- } else {
- results = jQuery.buildFragment( args, this, scripts );
- }
-
- fragment = results.fragment;
-
- if ( fragment.childNodes.length === 1 ) {
- first = fragment = fragment.firstChild;
- } else {
- first = fragment.firstChild;
- }
-
- if ( first ) {
- table = table && jQuery.nodeName( first, "tr" );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- callback.call(
- table ?
- root(this[i], first) :
- this[i],
- i > 0 || results.cacheable || this.length > 1 ?
- fragment.cloneNode(true) :
- fragment
- );
- }
- }
-
- if ( scripts.length ) {
- jQuery.each( scripts, evalScript );
- }
- }
-
- return this;
- }
-});
-
-function root( elem, cur ) {
- return jQuery.nodeName(elem, "table") ?
- (elem.getElementsByTagName("tbody")[0] ||
- elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
- elem;
-}
-
-function cloneCopyEvent(orig, ret) {
- var i = 0;
-
- ret.each(function() {
- if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) {
- return;
- }
-
- var oldData = jQuery.data( orig[i++] ),
- curData = jQuery.data( this, oldData ),
- events = oldData && oldData.events;
-
- if ( events ) {
- delete curData.handle;
- curData.events = {};
-
- for ( var type in events ) {
- for ( var handler in events[ type ] ) {
- jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
- }
- }
- }
- });
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
- var fragment, cacheable, cacheresults,
- doc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document);
-
- // Only cache "small" (1/2 KB) strings that are associated with the main document
- // Cloning options loses the selected state, so don't cache them
- // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
- // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
- if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
- !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
-
- cacheable = true;
- cacheresults = jQuery.fragments[ args[0] ];
- if ( cacheresults ) {
- if ( cacheresults !== 1 ) {
- fragment = cacheresults;
- }
- }
- }
-
- if ( !fragment ) {
- fragment = doc.createDocumentFragment();
- jQuery.clean( args, doc, fragment, scripts );
- }
-
- if ( cacheable ) {
- jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;
- }
-
- return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var ret = [],
- insert = jQuery( selector ),
- parent = this.length === 1 && this[0].parentNode;
-
- if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
- insert[ original ]( this[0] );
- return this;
-
- } else {
- for ( var i = 0, l = insert.length; i < l; i++ ) {
- var elems = (i > 0 ? this.clone(true) : this).get();
- jQuery( insert[i] )[ original ]( elems );
- ret = ret.concat( elems );
- }
-
- return this.pushStack( ret, name, insert.selector );
- }
- };
-});
-
-jQuery.extend({
- clean: function( elems, context, fragment, scripts ) {
- context = context || document;
-
- // !context.createElement fails in IE with an error but returns typeof 'object'
- if ( typeof context.createElement === "undefined" ) {
- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
- }
-
- var ret = [];
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( typeof elem === "number" ) {
- elem += "";
- }
-
- if ( !elem ) {
- continue;
- }
-
- // Convert html string into DOM nodes
- if ( typeof elem === "string" && !rhtml.test( elem ) ) {
- elem = context.createTextNode( elem );
-
- } else if ( typeof elem === "string" ) {
- // Fix "XHTML"-style tags in all browsers
- elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
- // Trim whitespace, otherwise indexOf won't work as expected
- var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(),
- wrap = wrapMap[ tag ] || wrapMap._default,
- depth = wrap[0],
- div = context.createElement("div");
-
- // Go to html and back, then peel off extra wrappers
- div.innerHTML = wrap[1] + elem + wrap[2];
-
- // Move to the right depth
- while ( depth-- ) {
- div = div.lastChild;
- }
-
- // Remove IE's autoinserted <tbody> from table fragments
- if ( !jQuery.support.tbody ) {
-
- // String was a <table>, *may* have spurious <tbody>
- var hasBody = rtbody.test(elem),
- tbody = tag === "table" && !hasBody ?
- div.firstChild && div.firstChild.childNodes :
-
- // String was a bare <thead> or <tfoot>
- wrap[1] === "<table>" && !hasBody ?
- div.childNodes :
- [];
-
- for ( var j = tbody.length - 1; j >= 0 ; --j ) {
- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
- tbody[ j ].parentNode.removeChild( tbody[ j ] );
- }
- }
-
- }
-
- // IE completely kills leading whitespace when innerHTML is used
- if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
- div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
- }
-
- elem = div.childNodes;
- }
-
- if ( elem.nodeType ) {
- ret.push( elem );
- } else {
- ret = jQuery.merge( ret, elem );
- }
- }
-
- if ( fragment ) {
- for ( i = 0; ret[i]; i++ ) {
- if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
- scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
-
- } else {
- if ( ret[i].nodeType === 1 ) {
- ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
- }
- fragment.appendChild( ret[i] );
- }
- }
- }
-
- return ret;
- },
-
- cleanData: function( elems ) {
- var data, id, cache = jQuery.cache,
- special = jQuery.event.special,
- deleteExpando = jQuery.support.deleteExpando;
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
- continue;
- }
-
- id = elem[ jQuery.expando ];
-
- if ( id ) {
- data = cache[ id ];
-
- if ( data && data.events ) {
- for ( var type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
-
- if ( deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
- }
-
- delete cache[ id ];
- }
- }
- }
-});
-
-function evalScript( i, elem ) {
- if ( elem.src ) {
- jQuery.ajax({
- url: elem.src,
- async: false,
- dataType: "script"
- });
- } else {
- jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
-}
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
- ropacity = /opacity=([^)]*)/,
- rdashAlpha = /-([a-z])/ig,
- rupper = /([A-Z])/g,
- rnumpx = /^-?\d+(?:px)?$/i,
- rnum = /^-?\d/,
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssWidth = [ "Left", "Right" ],
- cssHeight = [ "Top", "Bottom" ],
- curCSS,
-
- getComputedStyle,
- currentStyle,
-
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn.css = function( name, value ) {
- // Setting 'undefined' is a no-op
- if ( arguments.length === 2 && value === undefined ) {
- return this;
- }
-
- return jQuery.access( this, name, value, true, function( elem, name, value ) {
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- });
-};
-
-jQuery.extend({
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity", "opacity" );
- return ret === "" ? "1" : ret;
-
- } else {
- return elem.style.opacity;
- }
- }
- }
- },
-
- // Exclude the following css properties to add px
- cssNumber: {
- "zIndex": true,
- "fontWeight": true,
- "opacity": true,
- "zoom": true,
- "lineHeight": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- // normalize float css property
- "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, origName = jQuery.camelCase( name ),
- style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
- name = jQuery.cssProps[ origName ] || origName;
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- // Make sure that NaN and null values aren't set. See: #7116
- if ( typeof value === "number" && isNaN( value ) || value == null ) {
- return;
- }
-
- // If a number was passed in, add 'px' to the (except for certain CSS properties)
- if ( typeof value === "number" && !jQuery.cssNumber[ origName ] ) {
- value += "px";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
- // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
- // Fixes bug #5509
- try {
- style[ name ] = value;
- } catch(e) {}
- }
-
- } else {
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra ) {
- // Make sure that we're working with the right name
- var ret, origName = jQuery.camelCase( name ),
- hooks = jQuery.cssHooks[ origName ];
-
- name = jQuery.cssProps[ origName ] || origName;
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
- return ret;
-
- // Otherwise, if a way to get the computed value exists, use that
- } else if ( curCSS ) {
- return curCSS( elem, name, origName );
- }
- },
-
- // A method for quickly swapping in/out CSS properties to get correct calculations
- swap: function( elem, options, callback ) {
- var old = {};
-
- // Remember the old values, and insert the new ones
- for ( var name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- callback.call( elem );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
- },
-
- camelCase: function( string ) {
- return string.replace( rdashAlpha, fcamelCase );
- }
-});
-
-// DEPRECATED, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-jQuery.each(["height", "width"], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- var val;
-
- if ( computed ) {
- if ( elem.offsetWidth !== 0 ) {
- val = getWH( elem, name, extra );
-
- } else {
- jQuery.swap( elem, cssShow, function() {
- val = getWH( elem, name, extra );
- });
- }
-
- if ( val <= 0 ) {
- val = curCSS( elem, name, name );
-
- if ( val === "0px" && currentStyle ) {
- val = currentStyle( elem, name, name );
- }
-
- if ( val != null ) {
- // Should return "auto" instead of 0, use 0 for
- // temporary backwards-compat
- return val === "" || val === "auto" ? "0px" : val;
- }
- }
-
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
-
- // Should return "auto" instead of 0, use 0 for
- // temporary backwards-compat
- return val === "" || val === "auto" ? "0px" : val;
- }
-
- return typeof val === "string" ? val : val + "px";
- }
- },
-
- set: function( elem, value ) {
- if ( rnumpx.test( value ) ) {
- // ignore negative width and height values #1599
- value = parseFloat(value);
-
- if ( value >= 0 ) {
- return value + "px";
- }
-
- } else {
- return value;
- }
- }
- };
-});
-
-if ( !jQuery.support.opacity ) {
- jQuery.cssHooks.opacity = {
- get: function( elem, computed ) {
- // IE uses filters for opacity
- return ropacity.test((computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "") ?
- (parseFloat(RegExp.$1) / 100) + "" :
- computed ? "1" : "";
- },
-
- set: function( elem, value ) {
- var style = elem.style;
-
- // IE has trouble with opacity if it does not have layout
- // Force it by setting the zoom level
- style.zoom = 1;
-
- // Set the alpha filter to set the opacity
- var opacity = jQuery.isNaN(value) ?
- "" :
- "alpha(opacity=" + value * 100 + ")",
- filter = style.filter || "";
-
- style.filter = ralpha.test(filter) ?
- filter.replace(ralpha, opacity) :
- style.filter + ' ' + opacity;
- }
- };
-}
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
- getComputedStyle = function( elem, newName, name ) {
- var ret, defaultView, computedStyle;
-
- name = name.replace( rupper, "-$1" ).toLowerCase();
-
- if ( !(defaultView = elem.ownerDocument.defaultView) ) {
- return undefined;
- }
-
- if ( (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
- ret = computedStyle.getPropertyValue( name );
- if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
- ret = jQuery.style( elem, name );
- }
- }
-
- return ret;
- };
-}
-
-if ( document.documentElement.currentStyle ) {
- currentStyle = function( elem, name ) {
- var left, rsLeft,
- ret = elem.currentStyle && elem.currentStyle[ name ],
- style = elem.style;
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
- // Remember the original values
- left = style.left;
- rsLeft = elem.runtimeStyle.left;
-
- // Put in the new values to get a computed value out
- elem.runtimeStyle.left = elem.currentStyle.left;
- style.left = name === "fontSize" ? "1em" : (ret || 0);
- ret = style.pixelLeft + "px";
-
- // Revert the changed values
- style.left = left;
- elem.runtimeStyle.left = rsLeft;
- }
-
- return ret === "" ? "auto" : ret;
- };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWH( elem, name, extra ) {
- var which = name === "width" ? cssWidth : cssHeight,
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight;
-
- if ( extra === "border" ) {
- return val;
- }
-
- jQuery.each( which, function() {
- if ( !extra ) {
- val -= parseFloat(jQuery.css( elem, "padding" + this )) || 0;
- }
-
- if ( extra === "margin" ) {
- val += parseFloat(jQuery.css( elem, "margin" + this )) || 0;
-
- } else {
- val -= parseFloat(jQuery.css( elem, "border" + this + "Width" )) || 0;
- }
- });
-
- return val;
-}
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.hidden = function( elem ) {
- var width = elem.offsetWidth,
- height = elem.offsetHeight;
-
- return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none");
- };
-
- jQuery.expr.filters.visible = function( elem ) {
- return !jQuery.expr.filters.hidden( elem );
- };
-}
-
-
-
-
-var jsc = jQuery.now(),
- rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
- rselectTextarea = /^(?:select|textarea)/i,
- rinput = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
- rnoContent = /^(?:GET|HEAD)$/,
- rbracket = /\[\]$/,
- jsre = /\=\?(&|$)/,
- rquery = /\?/,
- rts = /([?&])_=[^&]*/,
- rurl = /^(\w+:)?\/\/([^\/?#]+)/,
- r20 = /%20/g,
- rhash = /#.*$/,
-
- // Keep a copy of the old load method
- _load = jQuery.fn.load;
-
-jQuery.fn.extend({
- load: function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
-
- // Don't do a request if no elements are being requested
- } else if ( !this.length ) {
- return this;
- }
-
- var off = url.indexOf(" ");
- if ( off >= 0 ) {
- var selector = url.slice(off, url.length);
- url = url.slice(0, off);
- }
-
- // Default to a GET request
- var type = "GET";
-
- // If the second parameter was provided
- if ( params ) {
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
- // We assume that it's the callback
- callback = params;
- params = null;
-
- // Otherwise, build a param string
- } else if ( typeof params === "object" ) {
- params = jQuery.param( params, jQuery.ajaxSettings.traditional );
- type = "POST";
- }
- }
-
- var self = this;
-
- // Request the remote document
- jQuery.ajax({
- url: url,
- type: type,
- dataType: "html",
- data: params,
- complete: function( res, status ) {
- // If successful, inject the HTML into all the matched elements
- if ( status === "success" || status === "notmodified" ) {
- // See if a selector was specified
- self.html( selector ?
- // Create a dummy div to hold the results
- jQuery("<div>")
- // inject the contents of the document in, removing the scripts
- // to avoid any 'Permission Denied' errors in IE
- .append(res.responseText.replace(rscript, ""))
-
- // Locate the specified elements
- .find(selector) :
-
- // If not, just inject the full result
- res.responseText );
- }
-
- if ( callback ) {
- self.each( callback, [res.responseText, status, res] );
- }
- }
- });
-
- return this;
- },
-
- serialize: function() {
- return jQuery.param(this.serializeArray());
- },
-
- serializeArray: function() {
- return this.map(function() {
- return this.elements ? jQuery.makeArray(this.elements) : this;
- })
- .filter(function() {
- return this.name && !this.disabled &&
- (this.checked || rselectTextarea.test(this.nodeName) ||
- rinput.test(this.type));
- })
- .map(function( i, elem ) {
- var val = jQuery(this).val();
-
- return val == null ?
- null :
- jQuery.isArray(val) ?
- jQuery.map( val, function( val, i ) {
- return { name: elem.name, value: val };
- }) :
- { name: elem.name, value: val };
- }).get();
- }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function( i, o ) {
- jQuery.fn[o] = function( f ) {
- return this.bind(o, f);
- };
-});
-
-jQuery.extend({
- get: function( url, data, callback, type ) {
- // shift arguments if data argument was omited
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = null;
- }
-
- return jQuery.ajax({
- type: "GET",
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- },
-
- getScript: function( url, callback ) {
- return jQuery.get(url, null, callback, "script");
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get(url, data, callback, "json");
- },
-
- post: function( url, data, callback, type ) {
- // shift arguments if data argument was omited
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = {};
- }
-
- return jQuery.ajax({
- type: "POST",
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- },
-
- ajaxSetup: function( settings ) {
- jQuery.extend( jQuery.ajaxSettings, settings );
- },
-
- ajaxSettings: {
- url: location.href,
- global: true,
- type: "GET",
- contentType: "application/x-www-form-urlencoded",
- processData: true,
- async: true,
- /*
- timeout: 0,
- data: null,
- username: null,
- password: null,
- traditional: false,
- */
- // This function can be overriden by calling jQuery.ajaxSetup
- xhr: function() {
- return new window.XMLHttpRequest();
- },
- accepts: {
- xml: "application/xml, text/xml",
- html: "text/html",
- script: "text/javascript, application/javascript",
- json: "application/json, text/javascript",
- text: "text/plain",
- _default: "*/*"
- }
- },
-
- ajax: function( origSettings ) {
- var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings),
- jsonp, status, data, type = s.type.toUpperCase(), noContent = rnoContent.test(type);
-
- s.url = s.url.replace( rhash, "" );
-
- // Use original (not extended) context object if it was provided
- s.context = origSettings && origSettings.context != null ? origSettings.context : s;
-
- // convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Handle JSONP Parameter Callbacks
- if ( s.dataType === "jsonp" ) {
- if ( type === "GET" ) {
- if ( !jsre.test( s.url ) ) {
- s.url += (rquery.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?";
- }
- } else if ( !s.data || !jsre.test(s.data) ) {
- s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
- }
- s.dataType = "json";
- }
-
- // Build temporary JSONP function
- if ( s.dataType === "json" && (s.data && jsre.test(s.data) || jsre.test(s.url)) ) {
- jsonp = s.jsonpCallback || ("jsonp" + jsc++);
-
- // Replace the =? sequence both in the query string and the data
- if ( s.data ) {
- s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
- }
-
- s.url = s.url.replace(jsre, "=" + jsonp + "$1");
-
- // We need to make sure
- // that a JSONP style response is executed properly
- s.dataType = "script";
-
- // Handle JSONP-style loading
- var customJsonp = window[ jsonp ];
-
- window[ jsonp ] = function( tmp ) {
- if ( jQuery.isFunction( customJsonp ) ) {
- customJsonp( tmp );
-
- } else {
- // Garbage collect
- window[ jsonp ] = undefined;
-
- try {
- delete window[ jsonp ];
- } catch( jsonpError ) {}
- }
-
- data = tmp;
- jQuery.handleSuccess( s, xhr, status, data );
- jQuery.handleComplete( s, xhr, status, data );
-
- if ( head ) {
- head.removeChild( script );
- }
- };
- }
-
- if ( s.dataType === "script" && s.cache === null ) {
- s.cache = false;
- }
-
- if ( s.cache === false && noContent ) {
- var ts = jQuery.now();
-
- // try replacing _= if it is there
- var ret = s.url.replace(rts, "$1_=" + ts);
-
- // if nothing was replaced, add timestamp to the end
- s.url = ret + ((ret === s.url) ? (rquery.test(s.url) ? "&" : "?") + "_=" + ts : "");
- }
-
- // If data is available, append data to url for GET/HEAD requests
- if ( s.data && noContent ) {
- s.url += (rquery.test(s.url) ? "&" : "?") + s.data;
- }
-
- // Watch for a new set of requests
- if ( s.global && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // Matches an absolute URL, and saves the domain
- var parts = rurl.exec( s.url ),
- remote = parts && (parts[1] && parts[1].toLowerCase() !== location.protocol || parts[2].toLowerCase() !== location.host);
-
- // If we're requesting a remote document
- // and trying to load JSON or Script with a GET
- if ( s.dataType === "script" && type === "GET" && remote ) {
- var head = document.getElementsByTagName("head")[0] || document.documentElement;
- var script = document.createElement("script");
- if ( s.scriptCharset ) {
- script.charset = s.scriptCharset;
- }
- script.src = s.url;
-
- // Handle Script loading
- if ( !jsonp ) {
- var done = false;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function() {
- if ( !done && (!this.readyState ||
- this.readyState === "loaded" || this.readyState === "complete") ) {
- done = true;
- jQuery.handleSuccess( s, xhr, status, data );
- jQuery.handleComplete( s, xhr, status, data );
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = null;
- if ( head && script.parentNode ) {
- head.removeChild( script );
- }
- }
- };
- }
-
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709 and #4378).
- head.insertBefore( script, head.firstChild );
-
- // We handle everything using the script element injection
- return undefined;
- }
-
- var requestDone = false;
-
- // Create the request object
- var xhr = s.xhr();
-
- if ( !xhr ) {
- return;
- }
-
- // Open the socket
- // Passing null username, generates a login popup on Opera (#2865)
- if ( s.username ) {
- xhr.open(type, s.url, s.async, s.username, s.password);
- } else {
- xhr.open(type, s.url, s.async);
- }
-
- // Need an extra try/catch for cross domain requests in Firefox 3
- try {
- // Set content-type if data specified and content-body is valid for this type
- if ( (s.data != null && !noContent) || (origSettings && origSettings.contentType) ) {
- xhr.setRequestHeader("Content-Type", s.contentType);
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[s.url] ) {
- xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url]);
- }
-
- if ( jQuery.etag[s.url] ) {
- xhr.setRequestHeader("If-None-Match", jQuery.etag[s.url]);
- }
- }
-
- // Set header so the called script knows that it's an XMLHttpRequest
- // Only send the header if it's not a remote XHR
- if ( !remote ) {
- xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
- }
-
- // Set the Accepts header for the server, depending on the dataType
- xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
- s.accepts[ s.dataType ] + ", */*; q=0.01" :
- s.accepts._default );
- } catch( headerError ) {}
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend && s.beforeSend.call(s.context, xhr, s) === false ) {
- // Handle the global AJAX counter
- if ( s.global && jQuery.active-- === 1 ) {
- jQuery.event.trigger( "ajaxStop" );
- }
-
- // close opended socket
- xhr.abort();
- return false;
- }
-
- if ( s.global ) {
- jQuery.triggerGlobal( s, "ajaxSend", [xhr, s] );
- }
-
- // Wait for a response to come back
- var onreadystatechange = xhr.onreadystatechange = function( isTimeout ) {
- // The request was aborted
- if ( !xhr || xhr.readyState === 0 || isTimeout === "abort" ) {
- // Opera doesn't call onreadystatechange before this point
- // so we simulate the call
- if ( !requestDone ) {
- jQuery.handleComplete( s, xhr, status, data );
- }
-
- requestDone = true;
- if ( xhr ) {
- xhr.onreadystatechange = jQuery.noop;
- }
-
- // The transfer is complete and the data is available, or the request timed out
- } else if ( !requestDone && xhr && (xhr.readyState === 4 || isTimeout === "timeout") ) {
- requestDone = true;
- xhr.onreadystatechange = jQuery.noop;
-
- status = isTimeout === "timeout" ?
- "timeout" :
- !jQuery.httpSuccess( xhr ) ?
- "error" :
- s.ifModified && jQuery.httpNotModified( xhr, s.url ) ?
- "notmodified" :
- "success";
-
- var errMsg;
-
- if ( status === "success" ) {
- // Watch for, and catch, XML document parse errors
- try {
- // process the data (runs the xml through httpData regardless of callback)
- data = jQuery.httpData( xhr, s.dataType, s );
- } catch( parserError ) {
- status = "parsererror";
- errMsg = parserError;
- }
- }
-
- // Make sure that the request was successful or notmodified
- if ( status === "success" || status === "notmodified" ) {
- // JSONP handles its own success callback
- if ( !jsonp ) {
- jQuery.handleSuccess( s, xhr, status, data );
- }
- } else {
- jQuery.handleError( s, xhr, status, errMsg );
- }
-
- // Fire the complete handlers
- if ( !jsonp ) {
- jQuery.handleComplete( s, xhr, status, data );
- }
-
- if ( isTimeout === "timeout" ) {
- xhr.abort();
- }
-
- // Stop memory leaks
- if ( s.async ) {
- xhr = null;
- }
- }
- };
-
- // Override the abort handler, if we can (IE 6 doesn't allow it, but that's OK)
- // Opera doesn't fire onreadystatechange at all on abort
- try {
- var oldAbort = xhr.abort;
- xhr.abort = function() {
- if ( xhr ) {
- // oldAbort has no call property in IE7 so
- // just do it this way, which works in all
- // browsers
- Function.prototype.call.call( oldAbort, xhr );
- }
-
- onreadystatechange( "abort" );
- };
- } catch( abortError ) {}
-
- // Timeout checker
- if ( s.async && s.timeout > 0 ) {
- setTimeout(function() {
- // Check to see if the request is still happening
- if ( xhr && !requestDone ) {
- onreadystatechange( "timeout" );
- }
- }, s.timeout);
- }
-
- // Send the data
- try {
- xhr.send( noContent || s.data == null ? null : s.data );
-
- } catch( sendError ) {
- jQuery.handleError( s, xhr, null, sendError );
-
- // Fire the complete handlers
- jQuery.handleComplete( s, xhr, status, data );
- }
-
- // firefox 1.5 doesn't fire statechange for sync requests
- if ( !s.async ) {
- onreadystatechange();
- }
-
- // return XMLHttpRequest to allow aborting the request etc.
- return xhr;
- },
-
- // Serialize an array of form elements or a set of
- // key/values into a query string
- param: function( a, traditional ) {
- var s = [],
- add = function( key, value ) {
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction(value) ? value() : value;
- s[ s.length ] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray(a) || a.jquery ) {
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- });
-
- } else {
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( var prefix in a ) {
- buildParams( prefix, a[prefix], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join("&").replace(r20, "+");
- }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
- if ( jQuery.isArray(obj) && obj.length ) {
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
- // If array item is non-scalar (array or object), encode its
- // numeric index to resolve deserialization ambiguity issues.
- // Note that rack (as of 1.0.0) can't currently deserialize
- // nested arrays properly, and attempting to do so may cause
- // a server error. Possible fixes are to modify rack's
- // deserialization algorithm or to provide an option or flag
- // to force array serialization to be shallow.
- buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
- }
- });
-
- } else if ( !traditional && obj != null && typeof obj === "object" ) {
- if ( jQuery.isEmptyObject( obj ) ) {
- add( prefix, "" );
-
- // Serialize object item.
- } else {
- jQuery.each( obj, function( k, v ) {
- buildParams( prefix + "[" + k + "]", v, traditional, add );
- });
- }
-
- } else {
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- handleError: function( s, xhr, status, e ) {
- // If a local callback was specified, fire it
- if ( s.error ) {
- s.error.call( s.context, xhr, status, e );
- }
-
- // Fire the global callback
- if ( s.global ) {
- jQuery.triggerGlobal( s, "ajaxError", [xhr, s, e] );
- }
- },
-
- handleSuccess: function( s, xhr, status, data ) {
- // If a local callback was specified, fire it and pass it the data
- if ( s.success ) {
- s.success.call( s.context, data, status, xhr );
- }
-
- // Fire the global callback
- if ( s.global ) {
- jQuery.triggerGlobal( s, "ajaxSuccess", [xhr, s] );
- }
- },
-
- handleComplete: function( s, xhr, status ) {
- // Process result
- if ( s.complete ) {
- s.complete.call( s.context, xhr, status );
- }
-
- // The request was completed
- if ( s.global ) {
- jQuery.triggerGlobal( s, "ajaxComplete", [xhr, s] );
- }
-
- // Handle the global AJAX counter
- if ( s.global && jQuery.active-- === 1 ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- },
-
- triggerGlobal: function( s, type, args ) {
- (s.context && s.context.url == null ? jQuery(s.context) : jQuery.event).trigger(type, args);
- },
-
- // Determines if an XMLHttpRequest was successful or not
- httpSuccess: function( xhr ) {
- try {
- // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
- return !xhr.status && location.protocol === "file:" ||
- xhr.status >= 200 && xhr.status < 300 ||
- xhr.status === 304 || xhr.status === 1223;
- } catch(e) {}
-
- return false;
- },
-
- // Determines if an XMLHttpRequest returns NotModified
- httpNotModified: function( xhr, url ) {
- var lastModified = xhr.getResponseHeader("Last-Modified"),
- etag = xhr.getResponseHeader("Etag");
-
- if ( lastModified ) {
- jQuery.lastModified[url] = lastModified;
- }
-
- if ( etag ) {
- jQuery.etag[url] = etag;
- }
-
- return xhr.status === 304;
- },
-
- httpData: function( xhr, type, s ) {
- var ct = xhr.getResponseHeader("content-type") || "",
- xml = type === "xml" || !type && ct.indexOf("xml") >= 0,
- data = xml ? xhr.responseXML : xhr.responseText;
-
- if ( xml && data.documentElement.nodeName === "parsererror" ) {
- jQuery.error( "parsererror" );
- }
-
- // Allow a pre-filtering function to sanitize the response
- // s is checked to keep backwards compatibility
- if ( s && s.dataFilter ) {
- data = s.dataFilter( data, type );
- }
-
- // The filter can actually parse the response
- if ( typeof data === "string" ) {
- // Get the JavaScript object, if JSON is used.
- if ( type === "json" || !type && ct.indexOf("json") >= 0 ) {
- data = jQuery.parseJSON( data );
-
- // If the type is "script", eval it in global context
- } else if ( type === "script" || !type && ct.indexOf("javascript") >= 0 ) {
- jQuery.globalEval( data );
- }
- }
-
- return data;
- }
-
-});
-
-/*
- * Create the request object; Microsoft failed to properly
- * implement the XMLHttpRequest in IE7 (can't request local files),
- * so we use the ActiveXObject when it is available
- * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
- * we need a fallback.
- */
-if ( window.ActiveXObject ) {
- jQuery.ajaxSettings.xhr = function() {
- if ( window.location.protocol !== "file:" ) {
- try {
- return new window.XMLHttpRequest();
- } catch(xhrError) {}
- }
-
- try {
- return new window.ActiveXObject("Microsoft.XMLHTTP");
- } catch(activeError) {}
- };
-}
-
-// Does this browser support XHR requests?
-jQuery.support.ajax = !!jQuery.ajaxSettings.xhr();
-
-
-
-
-var elemdisplay = {},
- rfxtypes = /^(?:toggle|show|hide)$/,
- rfxnum = /^([+\-]=)?([\d+.\-]+)(.*)$/,
- timerId,
- fxAttrs = [
- // height animations
- [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
- // width animations
- [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
- // opacity animations
- [ "opacity" ]
- ];
-
-jQuery.fn.extend({
- show: function( speed, easing, callback ) {
- var elem, display;
-
- if ( speed || speed === 0 ) {
- return this.animate( genFx("show", 3), speed, easing, callback);
-
- } else {
- for ( var i = 0, j = this.length; i < j; i++ ) {
- elem = this[i];
- display = elem.style.display;
-
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !jQuery.data(elem, "olddisplay") && display === "none" ) {
- display = elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( display === "" && jQuery.css( elem, "display" ) === "none" ) {
- jQuery.data(elem, "olddisplay", defaultDisplay(elem.nodeName));
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( i = 0; i < j; i++ ) {
- elem = this[i];
- display = elem.style.display;
-
- if ( display === "" || display === "none" ) {
- elem.style.display = jQuery.data(elem, "olddisplay") || "";
- }
- }
-
- return this;
- }
- },
-
- hide: function( speed, easing, callback ) {
- if ( speed || speed === 0 ) {
- return this.animate( genFx("hide", 3), speed, easing, callback);
-
- } else {
- for ( var i = 0, j = this.length; i < j; i++ ) {
- var display = jQuery.css( this[i], "display" );
-
- if ( display !== "none" ) {
- jQuery.data( this[i], "olddisplay", display );
- }
- }
-
- // Set the display of the elements in a second loop
- // to avoid the constant reflow
- for ( i = 0; i < j; i++ ) {
- this[i].style.display = "none";
- }
-
- return this;
- }
- },
-
- // Save the old toggle function
- _toggle: jQuery.fn.toggle,
-
- toggle: function( fn, fn2, callback ) {
- var bool = typeof fn === "boolean";
-
- if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
- this._toggle.apply( this, arguments );
-
- } else if ( fn == null || bool ) {
- this.each(function() {
- var state = bool ? fn : jQuery(this).is(":hidden");
- jQuery(this)[ state ? "show" : "hide" ]();
- });
-
- } else {
- this.animate(genFx("toggle", 3), fn, fn2, callback);
- }
-
- return this;
- },
-
- fadeTo: function( speed, to, easing, callback ) {
- return this.filter(":hidden").css("opacity", 0).show().end()
- .animate({opacity: to}, speed, easing, callback);
- },
-
- animate: function( prop, speed, easing, callback ) {
- var optall = jQuery.speed(speed, easing, callback);
-
- if ( jQuery.isEmptyObject( prop ) ) {
- return this.each( optall.complete );
- }
-
- return this[ optall.queue === false ? "each" : "queue" ](function() {
- // XXX 'this' does not always have a nodeName when running the
- // test suite
-
- var opt = jQuery.extend({}, optall), p,
- isElement = this.nodeType === 1,
- hidden = isElement && jQuery(this).is(":hidden"),
- self = this;
-
- for ( p in prop ) {
- var name = jQuery.camelCase( p );
-
- if ( p !== name ) {
- prop[ name ] = prop[ p ];
- delete prop[ p ];
- p = name;
- }
-
- if ( prop[p] === "hide" && hidden || prop[p] === "show" && !hidden ) {
- return opt.complete.call(this);
- }
-
- if ( isElement && ( p === "height" || p === "width" ) ) {
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE does not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height
- // animated
- if ( jQuery.css( this, "display" ) === "inline" &&
- jQuery.css( this, "float" ) === "none" ) {
- if ( !jQuery.support.inlineBlockNeedsLayout ) {
- this.style.display = "inline-block";
-
- } else {
- var display = defaultDisplay(this.nodeName);
-
- // inline-level elements accept inline-block;
- // block-level elements need to be inline with layout
- if ( display === "inline" ) {
- this.style.display = "inline-block";
-
- } else {
- this.style.display = "inline";
- this.style.zoom = 1;
- }
- }
- }
- }
-
- if ( jQuery.isArray( prop[p] ) ) {
- // Create (if needed) and add to specialEasing
- (opt.specialEasing = opt.specialEasing || {})[p] = prop[p][1];
- prop[p] = prop[p][0];
- }
- }
-
- if ( opt.overflow != null ) {
- this.style.overflow = "hidden";
- }
-
- opt.curAnim = jQuery.extend({}, prop);
-
- jQuery.each( prop, function( name, val ) {
- var e = new jQuery.fx( self, opt, name );
-
- if ( rfxtypes.test(val) ) {
- e[ val === "toggle" ? hidden ? "show" : "hide" : val ]( prop );
-
- } else {
- var parts = rfxnum.exec(val),
- start = e.cur() || 0;
-
- if ( parts ) {
- var end = parseFloat( parts[2] ),
- unit = parts[3] || "px";
-
- // We need to compute starting value
- if ( unit !== "px" ) {
- jQuery.style( self, name, (end || 1) + unit);
- start = ((end || 1) / e.cur()) * start;
- jQuery.style( self, name, start + unit);
- }
-
- // If a +=/-= token was provided, we're doing a relative animation
- if ( parts[1] ) {
- end = ((parts[1] === "-=" ? -1 : 1) * end) + start;
- }
-
- e.custom( start, end, unit );
-
- } else {
- e.custom( start, val, "" );
- }
- }
- });
-
- // For JS strict compliance
- return true;
- });
- },
-
- stop: function( clearQueue, gotoEnd ) {
- var timers = jQuery.timers;
-
- if ( clearQueue ) {
- this.queue([]);
- }
-
- this.each(function() {
- // go in reverse order so anything added to the queue during the loop is ignored
- for ( var i = timers.length - 1; i >= 0; i-- ) {
- if ( timers[i].elem === this ) {
- if (gotoEnd) {
- // force the next step to be the last
- timers[i](true);
- }
-
- timers.splice(i, 1);
- }
- }
- });
-
- // start the next in the queue if the last step wasn't forced
- if ( !gotoEnd ) {
- this.dequeue();
- }
-
- return this;
- }
-
-});
-
-function genFx( type, num ) {
- var obj = {};
-
- jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
- obj[ this ] = type;
- });
-
- return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
- slideDown: genFx("show", 1),
- slideUp: genFx("hide", 1),
- slideToggle: genFx("toggle", 1),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-});
-
-jQuery.extend({
- speed: function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
- opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
-
- // Queueing
- opt.old = opt.complete;
- opt.complete = function() {
- if ( opt.queue !== false ) {
- jQuery(this).dequeue();
- }
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
- };
-
- return opt;
- },
-
- easing: {
- linear: function( p, n, firstNum, diff ) {
- return firstNum + diff * p;
- },
- swing: function( p, n, firstNum, diff ) {
- return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
- }
- },
-
- timers: [],
-
- fx: function( elem, options, prop ) {
- this.options = options;
- this.elem = elem;
- this.prop = prop;
-
- if ( !options.orig ) {
- options.orig = {};
- }
- }
-
-});
-
-jQuery.fx.prototype = {
- // Simple function for setting a style value
- update: function() {
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
- },
-
- // Get the current size
- cur: function() {
- if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
- return this.elem[ this.prop ];
- }
-
- var r = parseFloat( jQuery.css( this.elem, this.prop ) );
- return r && r > -10000 ? r : 0;
- },
-
- // Start an animation from one number to another
- custom: function( from, to, unit ) {
- var self = this,
- fx = jQuery.fx;
-
- this.startTime = jQuery.now();
- this.start = from;
- this.end = to;
- this.unit = unit || this.unit || "px";
- this.now = this.start;
- this.pos = this.state = 0;
-
- function t( gotoEnd ) {
- return self.step(gotoEnd);
- }
-
- t.elem = this.elem;
-
- if ( t() && jQuery.timers.push(t) && !timerId ) {
- timerId = setInterval(fx.tick, fx.interval);
- }
- },
-
- // Simple 'show' function
- show: function() {
- // Remember where we started, so that we can go back to it later
- this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
- this.options.show = true;
-
- // Begin the animation
- // Make sure that we start at a small width/height to avoid any
- // flash of content
- this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
-
- // Start by showing the element
- jQuery( this.elem ).show();
- },
-
- // Simple 'hide' function
- hide: function() {
- // Remember where we started, so that we can go back to it later
- this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
- this.options.hide = true;
-
- // Begin the animation
- this.custom(this.cur(), 0);
- },
-
- // Each step of an animation
- step: function( gotoEnd ) {
- var t = jQuery.now(), done = true;
-
- if ( gotoEnd || t >= this.options.duration + this.startTime ) {
- this.now = this.end;
- this.pos = this.state = 1;
- this.update();
-
- this.options.curAnim[ this.prop ] = true;
-
- for ( var i in this.options.curAnim ) {
- if ( this.options.curAnim[i] !== true ) {
- done = false;
- }
- }
-
- if ( done ) {
- // Reset the overflow
- if ( this.options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
- var elem = this.elem,
- options = this.options;
-
- jQuery.each( [ "", "X", "Y" ], function (index, value) {
- elem.style[ "overflow" + value ] = options.overflow[index];
- } );
- }
-
- // Hide the element if the "hide" operation was done
- if ( this.options.hide ) {
- jQuery(this.elem).hide();
- }
-
- // Reset the properties, if the item has been hidden or shown
- if ( this.options.hide || this.options.show ) {
- for ( var p in this.options.curAnim ) {
- jQuery.style( this.elem, p, this.options.orig[p] );
- }
- }
-
- // Execute the complete function
- this.options.complete.call( this.elem );
- }
-
- return false;
-
- } else {
- var n = t - this.startTime;
- this.state = n / this.options.duration;
-
- // Perform the easing function, defaults to swing
- var specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop];
- var defaultEasing = this.options.easing || (jQuery.easing.swing ? "swing" : "linear");
- this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration);
- this.now = this.start + ((this.end - this.start) * this.pos);
-
- // Perform the next step of the animation
- this.update();
- }
-
- return true;
- }
-};
-
-jQuery.extend( jQuery.fx, {
- tick: function() {
- var timers = jQuery.timers;
-
- for ( var i = 0; i < timers.length; i++ ) {
- if ( !timers[i]() ) {
- timers.splice(i--, 1);
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- },
-
- interval: 13,
-
- stop: function() {
- clearInterval( timerId );
- timerId = null;
- },
-
- speeds: {
- slow: 600,
- fast: 200,
- // Default speed
- _default: 400
- },
-
- step: {
- opacity: function( fx ) {
- jQuery.style( fx.elem, "opacity", fx.now );
- },
-
- _default: function( fx ) {
- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
- fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
- } else {
- fx.elem[ fx.prop ] = fx.now;
- }
- }
- }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep(jQuery.timers, function( fn ) {
- return elem === fn.elem;
- }).length;
- };
-}
-
-function defaultDisplay( nodeName ) {
- if ( !elemdisplay[ nodeName ] ) {
- var elem = jQuery("<" + nodeName + ">").appendTo("body"),
- display = elem.css("display");
-
- elem.remove();
-
- if ( display === "none" || display === "" ) {
- display = "block";
- }
-
- elemdisplay[ nodeName ] = display;
- }
-
- return elemdisplay[ nodeName ];
-}
-
-
-
-
-var rtable = /^t(?:able|d|h)$/i,
- rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
- jQuery.fn.offset = function( options ) {
- var elem = this[0], box;
-
- if ( options ) {
- return this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- if ( !elem || !elem.ownerDocument ) {
- return null;
- }
-
- if ( elem === elem.ownerDocument.body ) {
- return jQuery.offset.bodyOffset( elem );
- }
-
- try {
- box = elem.getBoundingClientRect();
- } catch(e) {}
-
- var doc = elem.ownerDocument,
- docElem = doc.documentElement;
-
- // Make sure we're not dealing with a disconnected DOM node
- if ( !box || !jQuery.contains( docElem, elem ) ) {
- return box || { top: 0, left: 0 };
- }
-
- var body = doc.body,
- win = getWindow(doc),
- clientTop = docElem.clientTop || body.clientTop || 0,
- clientLeft = docElem.clientLeft || body.clientLeft || 0,
- scrollTop = (win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop ),
- scrollLeft = (win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft),
- top = box.top + scrollTop - clientTop,
- left = box.left + scrollLeft - clientLeft;
-
- return { top: top, left: left };
- };
-
-} else {
- jQuery.fn.offset = function( options ) {
- var elem = this[0];
-
- if ( options ) {
- return this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- if ( !elem || !elem.ownerDocument ) {
- return null;
- }
-
- if ( elem === elem.ownerDocument.body ) {
- return jQuery.offset.bodyOffset( elem );
- }
-
- jQuery.offset.initialize();
-
- var computedStyle,
- offsetParent = elem.offsetParent,
- prevOffsetParent = elem,
- doc = elem.ownerDocument,
- docElem = doc.documentElement,
- body = doc.body,
- defaultView = doc.defaultView,
- prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
- top = elem.offsetTop,
- left = elem.offsetLeft;
-
- while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
- if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
- break;
- }
-
- computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
- top -= elem.scrollTop;
- left -= elem.scrollLeft;
-
- if ( elem === offsetParent ) {
- top += elem.offsetTop;
- left += elem.offsetLeft;
-
- if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevOffsetParent = offsetParent;
- offsetParent = elem.offsetParent;
- }
-
- if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevComputedStyle = computedStyle;
- }
-
- if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
- top += body.offsetTop;
- left += body.offsetLeft;
- }
-
- if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
- top += Math.max( docElem.scrollTop, body.scrollTop );
- left += Math.max( docElem.scrollLeft, body.scrollLeft );
- }
-
- return { top: top, left: left };
- };
-}
-
-jQuery.offset = {
- initialize: function() {
- var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.css(body, "marginTop") ) || 0,
- html = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
-
- jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } );
-
- container.innerHTML = html;
- body.insertBefore( container, body.firstChild );
- innerDiv = container.firstChild;
- checkDiv = innerDiv.firstChild;
- td = innerDiv.nextSibling.firstChild.firstChild;
-
- this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
- this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
-
- checkDiv.style.position = "fixed";
- checkDiv.style.top = "20px";
-
- // safari subtracts parent border width here which is 5px
- this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);
- checkDiv.style.position = checkDiv.style.top = "";
-
- innerDiv.style.overflow = "hidden";
- innerDiv.style.position = "relative";
-
- this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
-
- this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
-
- body.removeChild( container );
- body = container = innerDiv = checkDiv = table = td = null;
- jQuery.offset.initialize = jQuery.noop;
- },
-
- bodyOffset: function( body ) {
- var top = body.offsetTop,
- left = body.offsetLeft;
-
- jQuery.offset.initialize();
-
- if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {
- top += parseFloat( jQuery.css(body, "marginTop") ) || 0;
- left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
- }
-
- return { top: top, left: left };
- },
-
- setOffset: function( elem, options, i ) {
- var position = jQuery.css( elem, "position" );
-
- // set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- var curElem = jQuery( elem ),
- curOffset = curElem.offset(),
- curCSSTop = jQuery.css( elem, "top" ),
- curCSSLeft = jQuery.css( elem, "left" ),
- calculatePosition = (position === "absolute" && jQuery.inArray('auto', [curCSSTop, curCSSLeft]) > -1),
- props = {}, curPosition = {}, curTop, curLeft;
-
- // need to be able to calculate position if either top or left is auto and position is absolute
- if ( calculatePosition ) {
- curPosition = curElem.position();
- }
-
- curTop = calculatePosition ? curPosition.top : parseInt( curCSSTop, 10 ) || 0;
- curLeft = calculatePosition ? curPosition.left : parseInt( curCSSLeft, 10 ) || 0;
-
- if ( jQuery.isFunction( options ) ) {
- options = options.call( elem, i, curOffset );
- }
-
- if (options.top != null) {
- props.top = (options.top - curOffset.top) + curTop;
- }
- if (options.left != null) {
- props.left = (options.left - curOffset.left) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- }
-};
-
-
-jQuery.fn.extend({
- position: function() {
- if ( !this[0] ) {
- return null;
- }
-
- var elem = this[0],
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent(),
-
- // Get correct offsets
- offset = this.offset(),
- parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
- // Subtract element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
- offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
- // Add offsetParent borders
- parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
- parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
- // Subtract the two offsets
- return {
- top: offset.top - parentOffset.top,
- left: offset.left - parentOffset.left
- };
- },
-
- offsetParent: function() {
- return this.map(function() {
- var offsetParent = this.offsetParent || document.body;
- while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent;
- });
- }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ["Left", "Top"], function( i, name ) {
- var method = "scroll" + name;
-
- jQuery.fn[ method ] = function(val) {
- var elem = this[0], win;
-
- if ( !elem ) {
- return null;
- }
-
- if ( val !== undefined ) {
- // Set the scroll offset
- return this.each(function() {
- win = getWindow( this );
-
- if ( win ) {
- win.scrollTo(
- !i ? val : jQuery(win).scrollLeft(),
- i ? val : jQuery(win).scrollTop()
- );
-
- } else {
- this[ method ] = val;
- }
- });
- } else {
- win = getWindow( elem );
-
- // Return the scroll offset
- return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
- jQuery.support.boxModel && win.document.documentElement[ method ] ||
- win.document.body[ method ] :
- elem[ method ];
- }
- };
-});
-
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ?
- elem :
- elem.nodeType === 9 ?
- elem.defaultView || elem.parentWindow :
- false;
-}
-
-
-
-
-// Create innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function( i, name ) {
-
- var type = name.toLowerCase();
-
- // innerHeight and innerWidth
- jQuery.fn["inner" + name] = function() {
- return this[0] ?
- parseFloat( jQuery.css( this[0], type, "padding" ) ) :
- null;
- };
-
- // outerHeight and outerWidth
- jQuery.fn["outer" + name] = function( margin ) {
- return this[0] ?
- parseFloat( jQuery.css( this[0], type, margin ? "margin" : "border" ) ) :
- null;
- };
-
- jQuery.fn[ type ] = function( size ) {
- // Get window width or height
- var elem = this[0];
- if ( !elem ) {
- return size == null ? null : this;
- }
-
- if ( jQuery.isFunction( size ) ) {
- return this.each(function( i ) {
- var self = jQuery( this );
- self[ type ]( size.call( this, i, self[ type ]() ) );
- });
- }
-
- if ( jQuery.isWindow( elem ) ) {
- // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
- return elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
- elem.document.body[ "client" + name ];
-
- // Get document width or height
- } else if ( elem.nodeType === 9 ) {
- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
- return Math.max(
- elem.documentElement["client" + name],
- elem.body["scroll" + name], elem.documentElement["scroll" + name],
- elem.body["offset" + name], elem.documentElement["offset" + name]
- );
-
- // Get or set width or height on the element
- } else if ( size === undefined ) {
- var orig = jQuery.css( elem, type ),
- ret = parseFloat( orig );
-
- return jQuery.isNaN( ret ) ? orig : ret;
-
- // Set the width or height on the element (default to pixels if value is unitless)
- } else {
- return this.css( type, typeof size === "string" ? size : size + "px" );
- }
- };
-
-});
-
-
-})(window); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.5b1.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.5b1.js
deleted file mode 100644
index 23da0751..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.5b1.js
+++ /dev/null
@@ -1,8068 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.5b1
- * http://jquery.com/
- *
- * Copyright 2010, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2010, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Fri Jan 14 14:56:21 2011 -0500
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context, rootjQuery );
- },
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$,
-
- // A central reference to the root jQuery(document)
- rootjQuery,
-
- // A simple way to check for HTML strings or ID strings
- // (both of which we optimize for)
- quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,
-
- // Is it a simple selector
- isSimple = /^.[^:#\[\.,]*$/,
-
- // Check if a string has a non-whitespace character in it
- rnotwhite = /\S/,
- rwhite = /\s/,
-
- // Used for trimming whitespace
- trimLeft = /^\s+/,
- trimRight = /\s+$/,
-
- // Check for non-word characters
- rnonword = /\W/,
-
- // Check for digits
- rdigit = /\d/,
-
- // Match a standalone tag
- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
- // JSON RegExp
- rvalidchars = /^[\],:{}\s]*$/,
- rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
- rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
- rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
- // Useragent RegExp
- rwebkit = /(webkit)[ \/]([\w.]+)/,
- ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
- rmsie = /(msie) ([\w.]+)/,
- rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
- // Keep a UserAgent string for use with jQuery.browser
- userAgent = navigator.userAgent,
-
- // For matching the engine and version of the browser
- browserMatch,
-
- // Has the ready events already been bound?
- readyBound = false,
-
- // The deferred used on DOM ready
- readyList,
-
- // The ready event handler
- DOMContentLoaded,
-
- // Save a reference to some core methods
- toString = Object.prototype.toString,
- hasOwn = Object.prototype.hasOwnProperty,
- push = Array.prototype.push,
- slice = Array.prototype.slice,
- trim = String.prototype.trim,
- indexOf = Array.prototype.indexOf,
-
- // [[Class]] -> type pairs
- class2type = {};
-
-jQuery.fn = jQuery.prototype = {
- constructor: jQuery,
- init: function( selector, context, rootjQuery ) {
- var match, elem, ret, doc;
-
- // Handle $(""), $(null), or $(undefined)
- if ( !selector ) {
- return this;
- }
-
- // Handle $(DOMElement)
- if ( selector.nodeType ) {
- this.context = this[0] = selector;
- this.length = 1;
- return this;
- }
-
- // The body element only exists once, optimize finding it
- if ( selector === "body" && !context && document.body ) {
- this.context = document;
- this[0] = document.body;
- this.selector = "body";
- this.length = 1;
- return this;
- }
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- // Are we dealing with HTML string or an ID?
- match = quickExpr.exec( selector );
-
- // Verify a match, and that no context was specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] ) {
- context = context instanceof jQuery ? context[0] : context;
- doc = (context ? context.ownerDocument || context : document);
-
- // If a single string is passed in and it's a single tag
- // just do a createElement and skip the rest
- ret = rsingleTag.exec( selector );
-
- if ( ret ) {
- if ( jQuery.isPlainObject( context ) ) {
- selector = [ document.createElement( ret[1] ) ];
- jQuery.fn.attr.call( selector, context, true );
-
- } else {
- selector = [ doc.createElement( ret[1] ) ];
- }
-
- } else {
- ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
- selector = (ret.cacheable ? jQuery(ret.fragment).clone()[0] : ret.fragment).childNodes;
- }
-
- return jQuery.merge( this, selector );
-
- // HANDLE: $("#id")
- } else {
- elem = document.getElementById( match[2] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[2] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[0] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $("TAG")
- } else if ( !context && !rnonword.test( selector ) ) {
- this.selector = selector;
- this.context = document;
- selector = document.getElementsByTagName( selector );
- return jQuery.merge( this, selector );
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return (context || rootjQuery).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return rootjQuery.ready( selector );
- }
-
- if (selector.selector !== undefined) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- },
-
- // Start with an empty selector
- selector: "",
-
- // The current version of jQuery being used
- jquery: "1.5b1",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
- toArray: function() {
- return slice.call( this, 0 );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num == null ?
-
- // Return a 'clean' array
- this.toArray() :
-
- // Return just the object
- ( num < 0 ? this[ this.length + num ] : this[ num ] );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems, name, selector ) {
- // Build a new jQuery matched element set
- var ret = this.constructor();
-
- if ( jQuery.isArray( elems ) ) {
- push.apply( ret, elems );
-
- } else {
- jQuery.merge( ret, elems );
- }
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- ret.context = this.context;
-
- if ( name === "find" ) {
- ret.selector = this.selector + (this.selector ? " " : "") + selector;
- } else if ( name ) {
- ret.selector = this.selector + "." + name + "(" + selector + ")";
- }
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- ready: function() {
- // Attach the listeners
- jQuery.bindReady();
-
- // Change ready & apply
- return ( jQuery.fn.ready = readyList.done ).apply( this , arguments );
- },
-
- eq: function( i ) {
- return i === -1 ?
- this.slice( i ) :
- this.slice( i, +i + 1 );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ),
- "slice", slice.call(arguments).join(",") );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function( elem, i ) {
- return callback.call( elem, i, elem );
- }));
- },
-
- end: function() {
- return this.prevObject || this.constructor(null);
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: [].sort,
- splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[0] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( length === i ) {
- target = this;
- --i;
- }
-
- for ( ; i < length; i++ ) {
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null ) {
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray(src) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject(src) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend({
- noConflict: function( deep ) {
- window.$ = _$;
-
- if ( deep ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
- },
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Handle when the DOM is ready
- ready: function( wait ) {
- // A third-party is pushing the ready event forwards
- if ( wait === true ) {
- jQuery.readyWait--;
- }
-
- // Make sure that the DOM is not already loaded
- if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( !document.body ) {
- return setTimeout( jQuery.ready, 1 );
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.fire( document , [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.trigger ) {
- jQuery( document ).trigger( "ready" ).unbind( "ready" );
- }
- }
- },
-
- bindReady: function() {
- if ( readyBound ) {
- return;
- }
-
- readyBound = true;
-
- // Catch cases where $(document).ready() is called after the
- // browser event has already occurred.
- if ( document.readyState === "complete" ) {
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- return setTimeout( jQuery.ready, 1 );
- }
-
- // Mozilla, Opera and webkit nightlies currently support this event
- if ( document.addEventListener ) {
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", jQuery.ready, false );
-
- // If IE event model is used
- } else if ( document.attachEvent ) {
- // ensure firing before onload,
- // maybe late but safe also for iframes
- document.attachEvent("onreadystatechange", DOMContentLoaded);
-
- // A fallback to window.onload, that will always work
- window.attachEvent( "onload", jQuery.ready );
-
- // If IE and not a frame
- // continually check to see if the document is ready
- var toplevel = false;
-
- try {
- toplevel = window.frameElement == null;
- } catch(e) {}
-
- if ( document.documentElement.doScroll && toplevel ) {
- doScrollCheck();
- }
- }
- },
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return jQuery.type(obj) === "function";
- },
-
- isArray: Array.isArray || function( obj ) {
- return jQuery.type(obj) === "array";
- },
-
- // A crude way of determining if an object is a window
- isWindow: function( obj ) {
- return obj && typeof obj === "object" && "setInterval" in obj;
- },
-
- isNaN: function( obj ) {
- return obj == null || !rdigit.test( obj ) || isNaN( obj );
- },
-
- type: function( obj ) {
- return obj == null ?
- String( obj ) :
- class2type[ toString.call(obj) ] || "object";
- },
-
- isPlainObject: function( obj ) {
- // Must be an Object.
- // Because of IE, we also have to check the presence of the constructor property.
- // Make sure that DOM nodes and window objects don't pass through, as well
- if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call(obj, "constructor") &&
- !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
-
- var key;
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- for ( var name in obj ) {
- return false;
- }
- return true;
- },
-
- error: function( msg ) {
- throw msg;
- },
-
- parseJSON: function( data ) {
- if ( typeof data !== "string" || !data ) {
- return null;
- }
-
- // Make sure leading/trailing whitespace is removed (IE can't handle it)
- data = jQuery.trim( data );
-
- // Make sure the incoming data is actual JSON
- // Logic borrowed from http://json.org/json2.js
- if ( rvalidchars.test(data.replace(rvalidescape, "@")
- .replace(rvalidtokens, "]")
- .replace(rvalidbraces, "")) ) {
-
- // Try to use the native JSON parser first
- return window.JSON && window.JSON.parse ?
- window.JSON.parse( data ) :
- (new Function("return " + data))();
-
- } else {
- jQuery.error( "Invalid JSON: " + data );
- }
- },
-
- // Cross-browser xml parsing
- // (xml & tmp used internally)
- parseXML: function( data , xml , tmp ) {
-
- if ( window.DOMParser ) { // Standard
- tmp = new DOMParser();
- xml = tmp.parseFromString( data , "text/xml" );
- } else { // IE
- xml = new ActiveXObject( "Microsoft.XMLDOM" );
- xml.async = "false";
- xml.loadXML( data );
- }
-
- tmp = xml.documentElement;
-
- if ( ! tmp || ! tmp.nodeName || tmp.nodeName === "parsererror" ) {
- jQuery.error( "Invalid XML: " + data );
- }
-
- return xml;
- },
-
- noop: function() {},
-
- // Evalulates a script in a global context
- globalEval: function( data ) {
- if ( data && rnotwhite.test(data) ) {
- // Inspired by code by Andrea Giammarchi
- // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
- var head = document.getElementsByTagName("head")[0] || document.documentElement,
- script = document.createElement("script");
-
- script.type = "text/javascript";
-
- if ( jQuery.support.scriptEval ) {
- script.appendChild( document.createTextNode( data ) );
- } else {
- script.text = data;
- }
-
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709).
- head.insertBefore( script, head.firstChild );
- head.removeChild( script );
- }
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
- },
-
- // args is for internal usage only
- each: function( object, callback, args ) {
- var name, i = 0,
- length = object.length,
- isObj = length === undefined || jQuery.isFunction(object);
-
- if ( args ) {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.apply( object[ name ], args ) === false ) {
- break;
- }
- }
- } else {
- for ( ; i < length; ) {
- if ( callback.apply( object[ i++ ], args ) === false ) {
- break;
- }
- }
- }
-
- // A special, fast, case for the most common use of each
- } else {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
- break;
- }
- }
- } else {
- for ( var value = object[0];
- i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
- }
- }
-
- return object;
- },
-
- // Use native String.trim function wherever possible
- trim: trim ?
- function( text ) {
- return text == null ?
- "" :
- trim.call( text );
- } :
-
- // Otherwise use our own trimming functionality
- function( text ) {
- return text == null ?
- "" :
- text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
- },
-
- // results is for internal usage only
- makeArray: function( array, results ) {
- var ret = results || [];
-
- if ( array != null ) {
- // The window, strings (and functions) also have 'length'
- // The extra typeof function check is to prevent crashes
- // in Safari 2 (See: #3039)
- // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
- var type = jQuery.type(array);
-
- if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
- push.call( ret, array );
- } else {
- jQuery.merge( ret, array );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, array ) {
- if ( array.indexOf ) {
- return array.indexOf( elem );
- }
-
- for ( var i = 0, length = array.length; i < length; i++ ) {
- if ( array[ i ] === elem ) {
- return i;
- }
- }
-
- return -1;
- },
-
- merge: function( first, second ) {
- var i = first.length,
- j = 0;
-
- if ( typeof second.length === "number" ) {
- for ( var l = second.length; j < l; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- } else {
- while ( second[j] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, inv ) {
- var ret = [], retVal;
- inv = !!inv;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- retVal = !!callback( elems[ i ], i );
- if ( inv !== retVal ) {
- ret.push( elems[ i ] );
- }
- }
-
- return ret;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var ret = [], value;
-
- // Go through the array, translating each of the items to their
- // new value (or values).
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
-
- // Flatten any nested arrays
- return ret.concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- proxy: function( fn, proxy, thisObject ) {
- if ( arguments.length === 2 ) {
- if ( typeof proxy === "string" ) {
- thisObject = fn;
- fn = thisObject[ proxy ];
- proxy = undefined;
-
- } else if ( proxy && !jQuery.isFunction( proxy ) ) {
- thisObject = proxy;
- proxy = undefined;
- }
- }
-
- if ( !proxy && fn ) {
- proxy = function() {
- return fn.apply( thisObject || this, arguments );
- };
- }
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- if ( fn ) {
- proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
- }
-
- // So proxy can be declared as an argument
- return proxy;
- },
-
- // Mutifunctional method to get and set values to a collection
- // The value/s can be optionally by executed if its a function
- access: function( elems, key, value, exec, fn, pass ) {
- var length = elems.length;
-
- // Setting many attributes
- if ( typeof key === "object" ) {
- for ( var k in key ) {
- jQuery.access( elems, k, key[k], exec, fn, value );
- }
- return elems;
- }
-
- // Setting one attribute
- if ( value !== undefined ) {
- // Optionally, function values get executed if exec is true
- exec = !pass && exec && jQuery.isFunction(value);
-
- for ( var i = 0; i < length; i++ ) {
- fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
- }
-
- return elems;
- }
-
- // Getting an attribute
- return length ? fn( elems[0], key ) : undefined;
- },
-
- now: function() {
- return (new Date()).getTime();
- },
-
- // Create a simple deferred (one callbacks list)
- _Deferred: function() {
-
- var // callbacks list
- callbacks = [],
- // stored [ context , args ]
- fired,
- // to avoid firing when already doing so
- firing,
- // flag to know if the deferred has been cancelled
- cancelled,
- // the deferred itself
- deferred = {
-
- // done( f1, f2, ...)
- done: function () {
-
- if ( ! cancelled ) {
-
- var args = arguments,
- i,
- length,
- elem,
- type,
- _fired;
-
- if ( fired ) {
- _fired = fired;
- fired = 0;
- }
-
- for ( i = 0, length = args.length ; i < length ; i++ ) {
- elem = args[ i ];
- type = jQuery.type( elem );
- if ( type === "array" ) {
- deferred.done.apply( deferred , elem );
- } else if ( type === "function" ) {
- callbacks.push( elem );
- }
- }
-
- if ( _fired ) {
- deferred.fire( _fired[ 0 ] , _fired[ 1 ] );
- }
- }
-
- return this;
- },
-
- // resolve with given context and args
- fire: function( context , args ) {
- if ( ! cancelled && ! fired && ! firing ) {
-
- firing = 1;
-
- try {
- while( callbacks[ 0 ] ) {
- callbacks.shift().apply( context , args );
- }
- }
- finally {
- fired = [ context , args ];
- firing = 0;
- }
- }
- return this;
- },
-
- // resolve with this as context and given arguments
- resolve: function() {
- deferred.fire( jQuery.isFunction( this.promise ) ? this.promise() : this , arguments );
- return this;
- },
-
- // Has this deferred been resolved?
- isResolved: function() {
- return !!( firing || fired );
- },
-
- // Cancel
- cancel: function() {
- cancelled = 1;
- callbacks = [];
- return this;
- }
- };
-
- return deferred;
- },
-
- // Full fledged deferred (two callbacks list)
- // Typical success/error system
- Deferred: function( func ) {
-
- var deferred = jQuery._Deferred(),
- failDeferred = jQuery._Deferred();
-
- // Add errorDeferred methods and redefine cancel
- jQuery.extend( deferred , {
-
- then: function( doneCallbacks , failCallbacks ) {
- deferred.done( doneCallbacks ).fail( failCallbacks );
- return this;
- },
- fail: failDeferred.done,
- fireReject: failDeferred.fire,
- reject: failDeferred.resolve,
- isRejected: failDeferred.isResolved,
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- obj = obj || {};
- jQuery.each( "then done fail isResolved isRejected".split( " " ) , function( _ , method ) {
- obj[ method ] = deferred[ method ];
- });
- obj.promise = function() {
- return obj;
- };
- return obj;
- }
-
- } );
-
- // Make sure only one callback list will be used
- deferred.then( failDeferred.cancel , deferred.cancel );
-
- // Unexpose cancel
- delete deferred.cancel;
-
- // Call given func if any
- if ( func ) {
- func.call( deferred , deferred );
- }
-
- return deferred;
- },
-
- // Deferred helper
- when: function( object ) {
- object = object && jQuery.isFunction( object.promise ) ?
- object :
- jQuery.Deferred().resolve( object );
- return object.promise();
- },
-
- // Use of jQuery.browser is frowned upon.
- // More details: http://docs.jquery.com/Utilities/jQuery.browser
- uaMatch: function( ua ) {
- ua = ua.toLowerCase();
-
- var match = rwebkit.exec( ua ) ||
- ropera.exec( ua ) ||
- rmsie.exec( ua ) ||
- ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
- [];
-
- return { browser: match[1] || "", version: match[2] || "0" };
- },
-
- subclass: function(){
- function jQuerySubclass( selector, context ) {
- return new jQuerySubclass.fn.init( selector, context );
- }
- jQuerySubclass.superclass = this;
- jQuerySubclass.fn = jQuerySubclass.prototype = this();
- jQuerySubclass.fn.constructor = jQuerySubclass;
- jQuerySubclass.subclass = this.subclass;
- jQuerySubclass.fn.init = function init( selector, context ) {
- if (context && context instanceof jQuery && !(context instanceof jQuerySubclass)){
- context = jQuerySubclass(context);
- }
- return jQuery.fn.init.call( this, selector, context, rootjQuerySubclass );
- };
- jQuerySubclass.fn.init.prototype = jQuerySubclass.fn;
- var rootjQuerySubclass = jQuerySubclass(document);
- return jQuerySubclass;
- },
-
- browser: {}
-});
-
-// Create readyList deferred
-readyList = jQuery._Deferred();
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
- jQuery.browser[ browserMatch.browser ] = true;
- jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
- jQuery.browser.safari = true;
-}
-
-if ( indexOf ) {
- jQuery.inArray = function( elem, array ) {
- return indexOf.call( array, elem );
- };
-}
-
-// Verify that \s matches non-breaking spaces
-// (IE fails on this test)
-if ( !rwhite.test( "\xA0" ) ) {
- trimLeft = /^[\s\xA0]+/;
- trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
- DOMContentLoaded = function() {
- document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
- jQuery.ready();
- };
-
-} else if ( document.attachEvent ) {
- DOMContentLoaded = function() {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( document.readyState === "complete" ) {
- document.detachEvent( "onreadystatechange", DOMContentLoaded );
- jQuery.ready();
- }
- };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
- if ( jQuery.isReady ) {
- return;
- }
-
- try {
- // If IE is used, use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- document.documentElement.doScroll("left");
- } catch(e) {
- setTimeout( doScrollCheck, 1 );
- return;
- }
-
- // and execute any waiting functions
- jQuery.ready();
-}
-
-// Expose jQuery to the global object
-return (window.jQuery = window.$ = jQuery);
-
-})();
-
-
-(function() {
-
- jQuery.support = {};
-
- var root = document.documentElement,
- script = document.createElement("script"),
- div = document.createElement("div"),
- id = "script" + jQuery.now();
-
- div.style.display = "none";
- div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
- var all = div.getElementsByTagName("*"),
- a = div.getElementsByTagName("a")[0],
- select = document.createElement("select"),
- opt = select.appendChild( document.createElement("option") );
-
- // Can't get basic test support
- if ( !all || !all.length || !a ) {
- return;
- }
-
- jQuery.support = {
- // IE strips leading whitespace when .innerHTML is used
- leadingWhitespace: div.firstChild.nodeType === 3,
-
- // Make sure that tbody elements aren't automatically inserted
- // IE will insert them into empty tables
- tbody: !div.getElementsByTagName("tbody").length,
-
- // Make sure that link elements get serialized correctly by innerHTML
- // This requires a wrapper element in IE
- htmlSerialize: !!div.getElementsByTagName("link").length,
-
- // Get the style information from getAttribute
- // (IE uses .cssText insted)
- style: /red/.test( a.getAttribute("style") ),
-
- // Make sure that URLs aren't manipulated
- // (IE normalizes it by default)
- hrefNormalized: a.getAttribute("href") === "/a",
-
- // Make sure that element opacity exists
- // (IE uses filter instead)
- // Use a regex to work around a WebKit issue. See #5145
- opacity: /^0.55$/.test( a.style.opacity ),
-
- // Verify style float existence
- // (IE uses styleFloat instead of cssFloat)
- cssFloat: !!a.style.cssFloat,
-
- // Make sure that if no value is specified for a checkbox
- // that it defaults to "on".
- // (WebKit defaults to "" instead)
- checkOn: div.getElementsByTagName("input")[0].value === "on",
-
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- optSelected: opt.selected,
-
- // Will be defined later
- deleteExpando: true,
- optDisabled: false,
- checkClone: false,
- scriptEval: false,
- noCloneEvent: true,
- boxModel: null,
- inlineBlockNeedsLayout: false,
- shrinkWrapBlocks: false,
- reliableHiddenOffsets: true
- };
-
- // Make sure that the options inside disabled selects aren't marked as disabled
- // (WebKit marks them as diabled)
- select.disabled = true;
- jQuery.support.optDisabled = !opt.disabled;
-
- script.type = "text/javascript";
- try {
- script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
- } catch(e) {}
-
- root.insertBefore( script, root.firstChild );
-
- // Make sure that the execution of code works by injecting a script
- // tag with appendChild/createTextNode
- // (IE doesn't support this, fails, and uses .text instead)
- if ( window[ id ] ) {
- jQuery.support.scriptEval = true;
- delete window[ id ];
- }
-
- // Test to see if it's possible to delete an expando from an element
- // Fails in Internet Explorer
- try {
- delete script.test;
-
- } catch(e) {
- jQuery.support.deleteExpando = false;
- }
-
- root.removeChild( script );
-
- if ( div.attachEvent && div.fireEvent ) {
- div.attachEvent("onclick", function click() {
- // Cloning a node shouldn't copy over any
- // bound event handlers (IE does this)
- jQuery.support.noCloneEvent = false;
- div.detachEvent("onclick", click);
- });
- div.cloneNode(true).fireEvent("onclick");
- }
-
- div = document.createElement("div");
- div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
-
- var fragment = document.createDocumentFragment();
- fragment.appendChild( div.firstChild );
-
- // WebKit doesn't clone checked state correctly in fragments
- jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
-
- // Figure out if the W3C box model works as expected
- // document.body must exist before we can do this
- jQuery(function() {
- var div = document.createElement("div");
- div.style.width = div.style.paddingLeft = "1px";
-
- document.body.appendChild( div );
- jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
-
- if ( "zoom" in div.style ) {
- // Check if natively block-level elements act like inline-block
- // elements when setting their display to 'inline' and giving
- // them layout
- // (IE < 8 does this)
- div.style.display = "inline";
- div.style.zoom = 1;
- jQuery.support.inlineBlockNeedsLayout = div.offsetWidth === 2;
-
- // Check if elements with layout shrink-wrap their children
- // (IE 6 does this)
- div.style.display = "";
- div.innerHTML = "<div style='width:4px;'></div>";
- jQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;
- }
-
- div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
- var tds = div.getElementsByTagName("td");
-
- // Check if table cells still have offsetWidth/Height when they are set
- // to display:none and there are still other visible table cells in a
- // table row; if so, offsetWidth/Height are not reliable for use when
- // determining if an element has been hidden directly using
- // display:none (it is still safe to use offsets if a parent element is
- // hidden; don safety goggles and see bug #4512 for more information).
- // (only IE 8 fails this test)
- jQuery.support.reliableHiddenOffsets = tds[0].offsetHeight === 0;
-
- tds[0].style.display = "";
- tds[1].style.display = "none";
-
- // Check if empty table cells still have offsetWidth/Height
- // (IE < 8 fail this test)
- jQuery.support.reliableHiddenOffsets = jQuery.support.reliableHiddenOffsets && tds[0].offsetHeight === 0;
- div.innerHTML = "";
-
- document.body.removeChild( div ).style.display = "none";
- div = tds = null;
- });
-
- // Technique from Juriy Zaytsev
- // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
- var eventSupported = function( eventName ) {
- var el = document.createElement("div");
- eventName = "on" + eventName;
-
- var isSupported = (eventName in el);
- if ( !isSupported ) {
- el.setAttribute(eventName, "return;");
- isSupported = typeof el[eventName] === "function";
- }
- el = null;
-
- return isSupported;
- };
-
- jQuery.support.submitBubbles = eventSupported("submit");
- jQuery.support.changeBubbles = eventSupported("change");
-
- // release memory in IE
- root = script = div = all = a = null;
-})();
-
-
-
-var windowData = {},
- rbrace = /^(?:\{.*\}|\[.*\])$/;
-
-jQuery.extend({
- cache: {},
-
- // Please use with caution
- uuid: 0,
-
- // Unique for each copy of jQuery on the page
- // Non-digits removed to match rinlinejQuery
- expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
-
- // The following elements throw uncatchable exceptions if you
- // attempt to add expando properties to them.
- noData: {
- "embed": true,
- // Ban all objects except for Flash (which handle expandos)
- "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
- "applet": true
- },
-
- hasData: function( elem ) {
- if ( elem.nodeType ) {
- elem = jQuery.cache[ elem[jQuery.expando] ];
- }
-
- return !!elem && !jQuery.isEmptyObject(elem);
- },
-
- data: function( elem, name, data ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- elem = elem == window ?
- windowData :
- elem;
-
- var isNode = elem.nodeType,
- id = isNode ? elem[ jQuery.expando ] : null,
- cache = jQuery.cache, thisCache;
-
- if ( isNode && !id && typeof name === "string" && data === undefined ) {
- return;
- }
-
- // Get the data from the object directly
- if ( !isNode ) {
- cache = elem;
-
- // Compute a unique ID for the element
- } else if ( !id ) {
- elem[ jQuery.expando ] = id = ++jQuery.uuid;
- }
-
- // Avoid generating a new cache unless none exists and we
- // want to manipulate it.
- if ( typeof name === "object" ) {
- if ( isNode ) {
- cache[ id ] = jQuery.extend(cache[ id ], name);
-
- } else {
- jQuery.extend( cache, name );
- }
-
- } else if ( isNode && !cache[ id ] ) {
- cache[ id ] = {};
- }
-
- thisCache = isNode ? cache[ id ] : cache;
-
- // Prevent overriding the named cache with undefined values
- if ( data !== undefined ) {
- thisCache[ name ] = data;
- }
-
- return typeof name === "string" ? thisCache[ name ] : thisCache;
- },
-
- removeData: function( elem, name ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- elem = elem == window ?
- windowData :
- elem;
-
- var isNode = elem.nodeType,
- id = isNode ? elem[ jQuery.expando ] : elem,
- cache = jQuery.cache,
- thisCache = isNode ? cache[ id ] : id;
-
- // If we want to remove a specific section of the element's data
- if ( name ) {
- if ( thisCache ) {
- // Remove the section of cache data
- delete thisCache[ name ];
-
- // If we've removed all the data, remove the element's cache
- if ( isNode && jQuery.isEmptyObject(thisCache) ) {
- jQuery.removeData( elem );
- }
- }
-
- // Otherwise, we want to remove all of the element's data
- } else {
- if ( isNode && jQuery.support.deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
-
- // Completely remove the data cache
- } else if ( isNode ) {
- delete cache[ id ];
-
- // Remove all fields from the object
- } else {
- for ( var n in elem ) {
- delete elem[ n ];
- }
- }
- }
- },
-
- // A method for determining if a DOM node can handle the data expando
- acceptData: function( elem ) {
- if ( elem.nodeName ) {
- var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
- if ( match ) {
- return !(match === true || elem.getAttribute("classid") !== match);
- }
- }
-
- return true;
- }
-});
-
-jQuery.fn.extend({
- data: function( key, value ) {
- var data = null;
-
- if ( typeof key === "undefined" ) {
- if ( this.length ) {
- data = jQuery.data( this[0] );
-
- if ( this[0].nodeType === 1 ) {
- var attr = this[0].attributes, name;
- for ( var i = 0, l = attr.length; i < l; i++ ) {
- name = attr[i].name;
-
- if ( name.indexOf( "data-" ) === 0 ) {
- name = name.substr( 5 );
- dataAttr( this[0], name, data[ name ] );
- }
- }
- }
- }
-
- return data;
-
- } else if ( typeof key === "object" ) {
- return this.each(function() {
- jQuery.data( this, key );
- });
- }
-
- var parts = key.split(".");
- parts[1] = parts[1] ? "." + parts[1] : "";
-
- if ( value === undefined ) {
- data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
- // Try to fetch any internally stored data first
- if ( data === undefined && this.length ) {
- data = jQuery.data( this[0], key );
- data = dataAttr( this[0], key, data );
- }
-
- return data === undefined && parts[1] ?
- this.data( parts[0] ) :
- data;
-
- } else {
- return this.each(function() {
- var $this = jQuery( this ),
- args = [ parts[0], value ];
-
- $this.triggerHandler( "setData" + parts[1] + "!", args );
- jQuery.data( this, key, value );
- $this.triggerHandler( "changeData" + parts[1] + "!", args );
- });
- }
- },
-
- removeData: function( key ) {
- return this.each(function() {
- jQuery.removeData( this, key );
- });
- }
-});
-
-function dataAttr( elem, key, data ) {
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- data = elem.getAttribute( "data-" + key );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
- !jQuery.isNaN( data ) ? parseFloat( data ) :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch( e ) {}
-
- // Make sure we set the data so it isn't changed later
- jQuery.data( elem, key, data );
-
- } else {
- data = undefined;
- }
- }
-
- return data;
-}
-
-
-
-
-jQuery.extend({
- queue: function( elem, type, data ) {
- if ( !elem ) {
- return;
- }
-
- type = (type || "fx") + "queue";
- var q = jQuery.data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( !data ) {
- return q || [];
- }
-
- if ( !q || jQuery.isArray(data) ) {
- q = jQuery.data( elem, type, jQuery.makeArray(data) );
-
- } else {
- q.push( data );
- }
-
- return q;
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- fn = queue.shift();
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- }
-
- if ( fn ) {
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift("inprogress");
- }
-
- fn.call(elem, function() {
- jQuery.dequeue(elem, type);
- });
- }
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- }
-
- if ( data === undefined ) {
- return jQuery.queue( this[0], type );
- }
- return this.each(function( i ) {
- var queue = jQuery.queue( this, type, data );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
-
- // Based off of the plugin by Clint Helfers, with permission.
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
- delay: function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
- type = type || "fx";
-
- return this.queue( type, function() {
- var elem = this;
- setTimeout(function() {
- jQuery.dequeue( elem, type );
- }, time );
- });
- },
-
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- }
-});
-
-
-
-
-var rclass = /[\n\t\r]/g,
- rspaces = /\s+/,
- rreturn = /\r/g,
- rspecialurl = /^(?:href|src|style)$/,
- rtype = /^(?:button|input)$/i,
- rfocusable = /^(?:button|input|object|select|textarea)$/i,
- rclickable = /^a(?:rea)?$/i,
- rradiocheck = /^(?:radio|checkbox)$/i;
-
-jQuery.props = {
- "for": "htmlFor",
- "class": "className",
- readonly: "readOnly",
- maxlength: "maxLength",
- cellspacing: "cellSpacing",
- rowspan: "rowSpan",
- colspan: "colSpan",
- tabindex: "tabIndex",
- usemap: "useMap",
- frameborder: "frameBorder"
-};
-
-jQuery.fn.extend({
- attr: function( name, value ) {
- return jQuery.access( this, name, value, true, jQuery.attr );
- },
-
- removeAttr: function( name, fn ) {
- return this.each(function(){
- jQuery.attr( this, name, "" );
- if ( this.nodeType === 1 ) {
- this.removeAttribute( name );
- }
- });
- },
-
- addClass: function( value ) {
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.addClass( value.call(this, i, self.attr("class")) );
- });
- }
-
- if ( value && typeof value === "string" ) {
- var classNames = (value || "").split( rspaces );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var elem = this[i];
-
- if ( elem.nodeType === 1 ) {
- if ( !elem.className ) {
- elem.className = value;
-
- } else {
- var className = " " + elem.className + " ",
- setClass = elem.className;
-
- for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
- if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
- setClass += " " + classNames[c];
- }
- }
- elem.className = jQuery.trim( setClass );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.removeClass( value.call(this, i, self.attr("class")) );
- });
- }
-
- if ( (value && typeof value === "string") || value === undefined ) {
- var classNames = (value || "").split( rspaces );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- var elem = this[i];
-
- if ( elem.nodeType === 1 && elem.className ) {
- if ( value ) {
- var className = (" " + elem.className + " ").replace(rclass, " ");
- for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
- className = className.replace(" " + classNames[c] + " ", " ");
- }
- elem.className = jQuery.trim( className );
-
- } else {
- elem.className = "";
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value,
- isBool = typeof stateVal === "boolean";
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
- });
- }
-
- return this.each(function() {
- if ( type === "string" ) {
- // toggle individual class names
- var className,
- i = 0,
- self = jQuery( this ),
- state = stateVal,
- classNames = value.split( rspaces );
-
- while ( (className = classNames[ i++ ]) ) {
- // check each className given, space seperated list
- state = isBool ? state : !self.hasClass( className );
- self[ state ? "addClass" : "removeClass" ]( className );
- }
-
- } else if ( type === "undefined" || type === "boolean" ) {
- if ( this.className ) {
- // store className if set
- jQuery.data( this, "__className__", this.className );
- }
-
- // toggle whole className
- this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || "";
- }
- });
- },
-
- hasClass: function( selector ) {
- var className = " " + selector + " ";
- for ( var i = 0, l = this.length; i < l; i++ ) {
- if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
- return true;
- }
- }
-
- return false;
- },
-
- val: function( value ) {
- if ( !arguments.length ) {
- var elem = this[0];
-
- if ( elem ) {
- if ( jQuery.nodeName( elem, "option" ) ) {
- // attributes.value is undefined in Blackberry 4.7 but
- // uses .value. See #6932
- var val = elem.attributes.value;
- return !val || val.specified ? elem.value : elem.text;
- }
-
- // We need to handle select boxes special
- if ( jQuery.nodeName( elem, "select" ) ) {
- var index = elem.selectedIndex,
- values = [],
- options = elem.options,
- one = elem.type === "select-one";
-
- // Nothing was selected
- if ( index < 0 ) {
- return null;
- }
-
- // Loop through all the selected options
- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
- var option = options[ i ];
-
- // Don't return options that are disabled or in a disabled optgroup
- if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
- (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
- // Get the specific value for the option
- value = jQuery(option).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- }
-
- // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
- if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
- return elem.getAttribute("value") === null ? "on" : elem.value;
- }
-
- // Everything else, we just grab the value
- return (elem.value || "").replace(rreturn, "");
-
- }
-
- return undefined;
- }
-
- var isFunction = jQuery.isFunction(value);
-
- return this.each(function(i) {
- var self = jQuery(this), val = value;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call(this, i, self.val());
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
- } else if ( typeof val === "number" ) {
- val += "";
- } else if ( jQuery.isArray(val) ) {
- val = jQuery.map(val, function (value) {
- return value == null ? "" : value + "";
- });
- }
-
- if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
- this.checked = jQuery.inArray( self.val(), val ) >= 0;
-
- } else if ( jQuery.nodeName( this, "select" ) ) {
- var values = jQuery.makeArray(val);
-
- jQuery( "option", this ).each(function() {
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
- });
-
- if ( !values.length ) {
- this.selectedIndex = -1;
- }
-
- } else {
- this.value = val;
- }
- });
- }
-});
-
-jQuery.extend({
- attrFn: {
- val: true,
- css: true,
- html: true,
- text: true,
- data: true,
- width: true,
- height: true,
- offset: true
- },
-
- attr: function( elem, name, value, pass ) {
- // don't get/set attributes on text, comment and attribute nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || elem.nodeType === 2 ) {
- return undefined;
- }
-
- if ( pass && name in jQuery.attrFn ) {
- return jQuery(elem)[name](value);
- }
-
- var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),
- // Whether we are setting (or getting)
- set = value !== undefined;
-
- // Try to normalize/fix the name
- name = notxml && jQuery.props[ name ] || name;
-
- // Only do all the following if this is a node (faster for style)
- if ( elem.nodeType === 1 ) {
- // These attributes require special treatment
- var special = rspecialurl.test( name );
-
- // Safari mis-reports the default selected property of an option
- // Accessing the parent's selectedIndex property fixes it
- if ( name === "selected" && !jQuery.support.optSelected ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
-
- // If applicable, access the attribute via the DOM 0 way
- // 'in' checks fail in Blackberry 4.7 #6931
- if ( (name in elem || elem[ name ] !== undefined) && notxml && !special ) {
- if ( set ) {
- // We can't allow the type property to be changed (since it causes problems in IE)
- if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
- jQuery.error( "type property can't be changed" );
- }
-
- if ( value === null ) {
- if ( elem.nodeType === 1 ) {
- elem.removeAttribute( name );
- }
-
- } else {
- elem[ name ] = value;
- }
- }
-
- // browsers index elements by id/name on forms, give priority to attributes.
- if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
- return elem.getAttributeNode( name ).nodeValue;
- }
-
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- if ( name === "tabIndex" ) {
- var attributeNode = elem.getAttributeNode( "tabIndex" );
-
- return attributeNode && attributeNode.specified ?
- attributeNode.value :
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- undefined;
- }
-
- return elem[ name ];
- }
-
- if ( !jQuery.support.style && notxml && name === "style" ) {
- if ( set ) {
- elem.style.cssText = "" + value;
- }
-
- return elem.style.cssText;
- }
-
- if ( set ) {
- // convert the value to a string (all browsers do this but IE) see #1070
- elem.setAttribute( name, "" + value );
- }
-
- // Ensure that missing attributes return undefined
- // Blackberry 4.7 returns "" from getAttribute #6938
- if ( !elem.attributes[ name ] && (elem.hasAttribute && !elem.hasAttribute( name )) ) {
- return undefined;
- }
-
- var attr = !jQuery.support.hrefNormalized && notxml && special ?
- // Some attributes require a special call on IE
- elem.getAttribute( name, 2 ) :
- elem.getAttribute( name );
-
- // Non-existent attributes return null, we normalize to undefined
- return attr === null ? undefined : attr;
- }
- // Handle everything which isn't a DOM element node
- if ( set ) {
- elem[ name ] = value;
- }
- return elem[ name ];
- }
-});
-
-
-
-
-var rnamespaces = /\.(.*)$/,
- rformElems = /^(?:textarea|input|select)$/i,
- rperiod = /\./g,
- rspace = / /g,
- rescape = /[^\w\s.|`]/g,
- fcleanup = function( nm ) {
- return nm.replace(rescape, "\\$&");
- },
- focusCounts = { focusin: 0, focusout: 0 };
-
-/*
- * A number of helper functions used for managing events.
- * Many of the ideas behind this code originated from
- * Dean Edwards' addEvent library.
- */
-jQuery.event = {
-
- // Bind an event to an element
- // Original by Dean Edwards
- add: function( elem, types, handler, data ) {
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // For whatever reason, IE has trouble passing the window object
- // around, causing it to be cloned in the process
- if ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) {
- elem = window;
- }
-
- if ( handler === false ) {
- handler = returnFalse;
- } else if ( !handler ) {
- // Fixes bug #7229. Fix recommended by jdalton
- return;
- }
-
- var handleObjIn, handleObj;
-
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- }
-
- // Make sure that the function being executed has a unique ID
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure
- var elemData = jQuery.data( elem );
-
- // If no elemData is found then we must be trying to bind to one of the
- // banned noData elements
- if ( !elemData ) {
- return;
- }
-
- // Use a key less likely to result in collisions for plain JS objects.
- // Fixes bug #7150.
- var eventKey = elem.nodeType ? "events" : "__events__",
- events = elemData[ eventKey ],
- eventHandle = elemData.handle;
-
- if ( typeof events === "function" ) {
- // On plain objects events is a fn that holds the the data
- // which prevents this data from being JSON serialized
- // the function does not need to be called, it just contains the data
- eventHandle = events.handle;
- events = events.events;
-
- } else if ( !events ) {
- if ( !elem.nodeType ) {
- // On plain objects, create a fn that acts as the holder
- // of the values to avoid JSON serialization of event data
- elemData[ eventKey ] = elemData = function(){};
- }
-
- elemData.events = events = {};
- }
-
- if ( !eventHandle ) {
- elemData.handle = eventHandle = function() {
- // Handle the second event of a trigger and when
- // an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
- jQuery.event.handle.apply( eventHandle.elem, arguments ) :
- undefined;
- };
- }
-
- // Add elem as a property of the handle function
- // This is to prevent a memory leak with non-native events in IE.
- eventHandle.elem = elem;
-
- // Handle multiple events separated by a space
- // jQuery(...).bind("mouseover mouseout", fn);
- types = types.split(" ");
-
- var type, i = 0, namespaces;
-
- while ( (type = types[ i++ ]) ) {
- handleObj = handleObjIn ?
- jQuery.extend({}, handleObjIn) :
- { handler: handler, data: data };
-
- // Namespaced event handlers
- if ( type.indexOf(".") > -1 ) {
- namespaces = type.split(".");
- type = namespaces.shift();
- handleObj.namespace = namespaces.slice(0).sort().join(".");
-
- } else {
- namespaces = [];
- handleObj.namespace = "";
- }
-
- handleObj.type = type;
- if ( !handleObj.guid ) {
- handleObj.guid = handler.guid;
- }
-
- // Get the current list of functions bound to this event
- var handlers = events[ type ],
- special = jQuery.event.special[ type ] || {};
-
- // Init the event handler queue
- if ( !handlers ) {
- handlers = events[ type ] = [];
-
- // Check for a special event handler
- // Only use addEventListener/attachEvent if the special
- // events handler returns false
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
- // Bind the global event handler to the element
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
-
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add the function to the element's handler list
- handlers.push( handleObj );
-
- // Keep track of which events have been used, for global triggering
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- global: {},
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, pos ) {
- // don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- if ( handler === false ) {
- handler = returnFalse;
- }
-
- var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
- eventKey = elem.nodeType ? "events" : "__events__",
- elemData = jQuery.data( elem ),
- events = elemData && elemData[ eventKey ];
-
- if ( !elemData || !events ) {
- return;
- }
-
- if ( typeof events === "function" ) {
- elemData = events;
- events = events.events;
- }
-
- // types is actually an event object here
- if ( types && types.type ) {
- handler = types.handler;
- types = types.type;
- }
-
- // Unbind all events for the element
- if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
- types = types || "";
-
- for ( type in events ) {
- jQuery.event.remove( elem, type + types );
- }
-
- return;
- }
-
- // Handle multiple events separated by a space
- // jQuery(...).unbind("mouseover mouseout", fn);
- types = types.split(" ");
-
- while ( (type = types[ i++ ]) ) {
- origType = type;
- handleObj = null;
- all = type.indexOf(".") < 0;
- namespaces = [];
-
- if ( !all ) {
- // Namespaced event handlers
- namespaces = type.split(".");
- type = namespaces.shift();
-
- namespace = new RegExp("(^|\\.)" +
- jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)");
- }
-
- eventType = events[ type ];
-
- if ( !eventType ) {
- continue;
- }
-
- if ( !handler ) {
- for ( j = 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( all || namespace.test( handleObj.namespace ) ) {
- jQuery.event.remove( elem, origType, handleObj.handler, j );
- eventType.splice( j--, 1 );
- }
- }
-
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
-
- for ( j = pos || 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( handler.guid === handleObj.guid ) {
- // remove the given handler for the given type
- if ( all || namespace.test( handleObj.namespace ) ) {
- if ( pos == null ) {
- eventType.splice( j--, 1 );
- }
-
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
-
- if ( pos != null ) {
- break;
- }
- }
- }
-
- // remove generic event handler if no more handlers exist
- if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
- if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- ret = null;
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- var handle = elemData.handle;
- if ( handle ) {
- handle.elem = null;
- }
-
- delete elemData.events;
- delete elemData.handle;
-
- if ( typeof elemData === "function" ) {
- jQuery.removeData( elem, eventKey );
-
- } else if ( jQuery.isEmptyObject( elemData ) ) {
- jQuery.removeData( elem );
- }
- }
- },
-
- // bubbling is internal
- trigger: function( event, data, elem /*, bubbling */ ) {
- // Event object or event type
- var type = event.type || event,
- bubbling = arguments[3];
-
- if ( !bubbling ) {
- event = typeof event === "object" ?
- // jQuery.Event object
- event[ jQuery.expando ] ? event :
- // Object literal
- jQuery.extend( jQuery.Event(type), event ) :
- // Just the event type (string)
- jQuery.Event(type);
-
- if ( type.indexOf("!") >= 0 ) {
- event.type = type = type.slice(0, -1);
- event.exclusive = true;
- }
-
- // Handle a global trigger
- if ( !elem ) {
- // Don't bubble custom events when global (to avoid too much overhead)
- event.stopPropagation();
-
- // Only trigger if we've ever bound an event for it
- if ( jQuery.event.global[ type ] ) {
- jQuery.each( jQuery.cache, function() {
- if ( this.events && this.events[type] ) {
- jQuery.event.trigger( event, data, this.handle.elem );
- }
- });
- }
- }
-
- // Handle triggering a single element
-
- // don't do events on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
- return undefined;
- }
-
- // Clean up in case it is reused
- event.result = undefined;
- event.target = elem;
-
- // Clone the incoming data, if any
- data = jQuery.makeArray( data );
- data.unshift( event );
- }
-
- event.currentTarget = elem;
-
- // Trigger the event, it is assumed that "handle" is a function
- var handle = elem.nodeType ?
- jQuery.data( elem, "handle" ) :
- (jQuery.data( elem, "__events__" ) || {}).handle;
-
- if ( handle ) {
- handle.apply( elem, data );
- }
-
- var parent = elem.parentNode || elem.ownerDocument;
-
- // Trigger an inline bound script
- try {
- if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
- if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
- event.result = false;
- event.preventDefault();
- }
- }
-
- // prevent IE from throwing an error for some elements with some event types, see #3533
- } catch (inlineError) {}
-
- if ( !event.isPropagationStopped() && parent ) {
- jQuery.event.trigger( event, data, parent, true );
-
- } else if ( !event.isDefaultPrevented() ) {
- var old,
- target = event.target,
- targetType = type.replace( rnamespaces, "" ),
- isClick = jQuery.nodeName( target, "a" ) && targetType === "click",
- special = jQuery.event.special[ targetType ] || {};
-
- if ( (!special._default || special._default.call( elem, event ) === false) &&
- !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
-
- try {
- if ( target[ targetType ] ) {
- // Make sure that we don't accidentally re-trigger the onFOO events
- old = target[ "on" + targetType ];
-
- if ( old ) {
- target[ "on" + targetType ] = null;
- }
-
- jQuery.event.triggered = true;
- target[ targetType ]();
- }
-
- // prevent IE from throwing an error for some elements with some event types, see #3533
- } catch (triggerError) {}
-
- if ( old ) {
- target[ "on" + targetType ] = old;
- }
-
- jQuery.event.triggered = false;
- }
- }
- },
-
- handle: function( event ) {
- var all, handlers, namespaces, namespace_re, events,
- namespace_sort = [],
- args = jQuery.makeArray( arguments );
-
- event = args[0] = jQuery.event.fix( event || window.event );
- event.currentTarget = this;
-
- // Namespaced event handlers
- all = event.type.indexOf(".") < 0 && !event.exclusive;
-
- if ( !all ) {
- namespaces = event.type.split(".");
- event.type = namespaces.shift();
- namespace_sort = namespaces.slice(0).sort();
- namespace_re = new RegExp("(^|\\.)" + namespace_sort.join("\\.(?:.*\\.)?") + "(\\.|$)");
- }
-
- event.namespace = event.namespace || namespace_sort.join(".");
-
- events = jQuery.data(this, this.nodeType ? "events" : "__events__");
-
- if ( typeof events === "function" ) {
- events = events.events;
- }
-
- handlers = (events || {})[ event.type ];
-
- if ( events && handlers ) {
- // Clone the handlers to prevent manipulation
- handlers = handlers.slice(0);
-
- for ( var j = 0, l = handlers.length; j < l; j++ ) {
- var handleObj = handlers[ j ];
-
- // Filter the functions by class
- if ( all || namespace_re.test( handleObj.namespace ) ) {
- // Pass in a reference to the handler function itself
- // So that we can later remove it
- event.handler = handleObj.handler;
- event.data = handleObj.data;
- event.handleObj = handleObj;
-
- var ret = handleObj.handler.apply( this, args );
-
- if ( ret !== undefined ) {
- event.result = ret;
- if ( ret === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
-
- if ( event.isImmediatePropagationStopped() ) {
- break;
- }
- }
- }
- }
-
- return event.result;
- },
-
- props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // store a copy of the original event object
- // and "clone" to set read-only properties
- var originalEvent = event;
- event = jQuery.Event( originalEvent );
-
- for ( var i = this.props.length, prop; i; ) {
- prop = this.props[ --i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Fix target property, if necessary
- if ( !event.target ) {
- // Fixes #1925 where srcElement might not be defined either
- event.target = event.srcElement || document;
- }
-
- // check if target is a textnode (safari)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && event.fromElement ) {
- event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
- }
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && event.clientX != null ) {
- var doc = document.documentElement,
- body = document.body;
-
- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
- }
-
- // Add which for key events
- if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {
- event.which = event.charCode != null ? event.charCode : event.keyCode;
- }
-
- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
- if ( !event.metaKey && event.ctrlKey ) {
- event.metaKey = event.ctrlKey;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && event.button !== undefined ) {
- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
- }
-
- return event;
- },
-
- // Deprecated, use jQuery.guid instead
- guid: 1E8,
-
- // Deprecated, use jQuery.proxy instead
- proxy: jQuery.proxy,
-
- special: {
- ready: {
- // Make sure the ready event is setup
- setup: jQuery.bindReady,
- teardown: jQuery.noop
- },
-
- live: {
- add: function( handleObj ) {
- jQuery.event.add( this,
- liveConvert( handleObj.origType, handleObj.selector ),
- jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) );
- },
-
- remove: function( handleObj ) {
- jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );
- }
- },
-
- beforeunload: {
- setup: function( data, namespaces, eventHandle ) {
- // We only want to do this special case on windows
- if ( jQuery.isWindow( this ) ) {
- this.onbeforeunload = eventHandle;
- }
- },
-
- teardown: function( namespaces, eventHandle ) {
- if ( this.onbeforeunload === eventHandle ) {
- this.onbeforeunload = null;
- }
- }
- }
- }
-};
-
-jQuery.removeEvent = document.removeEventListener ?
- function( elem, type, handle ) {
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle, false );
- }
- } :
- function( elem, type, handle ) {
- if ( elem.detachEvent ) {
- elem.detachEvent( "on" + type, handle );
- }
- };
-
-jQuery.Event = function( src ) {
- // Allow instantiation without the 'new' keyword
- if ( !this.preventDefault ) {
- return new jQuery.Event( src );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||
- src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // timeStamp is buggy for some events on Firefox(#3843)
- // So we won't rely on the native value
- this.timeStamp = jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
- return false;
-}
-function returnTrue() {
- return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- preventDefault: function() {
- this.isDefaultPrevented = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
-
- // if preventDefault exists run it on the original event
- if ( e.preventDefault ) {
- e.preventDefault();
-
- // otherwise set the returnValue property of the original event to false (IE)
- } else {
- e.returnValue = false;
- }
- },
- stopPropagation: function() {
- this.isPropagationStopped = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
- // if stopPropagation exists run it on the original event
- if ( e.stopPropagation ) {
- e.stopPropagation();
- }
- // otherwise set the cancelBubble property of the original event to true (IE)
- e.cancelBubble = true;
- },
- stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = returnTrue;
- this.stopPropagation();
- },
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse
-};
-
-// Checks if an event happened on an element within another element
-// Used in jQuery.event.special.mouseenter and mouseleave handlers
-var withinElement = function( event ) {
- // Check if mouse(over|out) are still within the same parent element
- var parent = event.relatedTarget;
-
- // Firefox sometimes assigns relatedTarget a XUL element
- // which we cannot access the parentNode property of
- try {
- // Traverse up the tree
- while ( parent && parent !== this ) {
- parent = parent.parentNode;
- }
-
- if ( parent !== this ) {
- // set the correct event type
- event.type = event.data;
-
- // handle event if we actually just moused on to a non sub-element
- jQuery.event.handle.apply( this, arguments );
- }
-
- // assuming we've left the element since we most likely mousedover a xul element
- } catch(e) { }
-},
-
-// In case of event delegation, we only need to rename the event.type,
-// liveHandler will take care of the rest.
-delegate = function( event ) {
- event.type = event.data;
- jQuery.event.handle.apply( this, arguments );
-};
-
-// Create mouseenter and mouseleave events
-jQuery.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- setup: function( data ) {
- jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
- },
- teardown: function( data ) {
- jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
- }
- };
-});
-
-// submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
- jQuery.event.special.submit = {
- setup: function( data, namespaces ) {
- if ( this.nodeName && this.nodeName.toLowerCase() !== "form" ) {
- jQuery.event.add(this, "click.specialSubmit", function( e ) {
- var elem = e.target,
- type = elem.type;
-
- if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
- e.liveFired = undefined;
- return trigger( "submit", this, arguments );
- }
- });
-
- jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
- var elem = e.target,
- type = elem.type;
-
- if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
- e.liveFired = undefined;
- return trigger( "submit", this, arguments );
- }
- });
-
- } else {
- return false;
- }
- },
-
- teardown: function( namespaces ) {
- jQuery.event.remove( this, ".specialSubmit" );
- }
- };
-
-}
-
-// change delegation, happens here so we have bind.
-if ( !jQuery.support.changeBubbles ) {
-
- var changeFilters,
-
- getVal = function( elem ) {
- var type = elem.type, val = elem.value;
-
- if ( type === "radio" || type === "checkbox" ) {
- val = elem.checked;
-
- } else if ( type === "select-multiple" ) {
- val = elem.selectedIndex > -1 ?
- jQuery.map( elem.options, function( elem ) {
- return elem.selected;
- }).join("-") :
- "";
-
- } else if ( elem.nodeName.toLowerCase() === "select" ) {
- val = elem.selectedIndex;
- }
-
- return val;
- },
-
- testChange = function testChange( e ) {
- var elem = e.target, data, val;
-
- if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {
- return;
- }
-
- data = jQuery.data( elem, "_change_data" );
- val = getVal(elem);
-
- // the current data will be also retrieved by beforeactivate
- if ( e.type !== "focusout" || elem.type !== "radio" ) {
- jQuery.data( elem, "_change_data", val );
- }
-
- if ( data === undefined || val === data ) {
- return;
- }
-
- if ( data != null || val ) {
- e.type = "change";
- e.liveFired = undefined;
- return jQuery.event.trigger( e, arguments[1], elem );
- }
- };
-
- jQuery.event.special.change = {
- filters: {
- focusout: testChange,
-
- beforedeactivate: testChange,
-
- click: function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) {
- return testChange.call( this, e );
- }
- },
-
- // Change has to be called before submit
- // Keydown will be called before keypress, which is used in submit-event delegation
- keydown: function( e ) {
- var elem = e.target, type = elem.type;
-
- if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
- (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
- type === "select-multiple" ) {
- return testChange.call( this, e );
- }
- },
-
- // Beforeactivate happens also before the previous element is blurred
- // with this event you can't trigger a change event, but you can store
- // information
- beforeactivate: function( e ) {
- var elem = e.target;
- jQuery.data( elem, "_change_data", getVal(elem) );
- }
- },
-
- setup: function( data, namespaces ) {
- if ( this.type === "file" ) {
- return false;
- }
-
- for ( var type in changeFilters ) {
- jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
- }
-
- return rformElems.test( this.nodeName );
- },
-
- teardown: function( namespaces ) {
- jQuery.event.remove( this, ".specialChange" );
-
- return rformElems.test( this.nodeName );
- }
- };
-
- changeFilters = jQuery.event.special.change.filters;
-
- // Handle when the input is .focus()'d
- changeFilters.focus = changeFilters.beforeactivate;
-}
-
-function trigger( type, elem, args ) {
- args[0].type = type;
- return jQuery.event.handle.apply( elem, args );
-}
-
-// Create "bubbling" focus and blur events
-if ( document.addEventListener ) {
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
- jQuery.event.special[ fix ] = {
- setup: function() {
- if ( focusCounts[fix]++ === 0 ) {
- document.addEventListener( orig, handler, true );
- }
- },
- teardown: function() {
- if ( --focusCounts[fix] === 0 ) {
- document.removeEventListener( orig, handler, true );
- }
- }
- };
-
- function handler( e ) {
- e = jQuery.event.fix( e );
- e.type = fix;
- return jQuery.event.trigger( e, null, e.target );
- }
- });
-}
-
-jQuery.each(["bind", "one"], function( i, name ) {
- jQuery.fn[ name ] = function( type, data, fn ) {
- // Handle object literals
- if ( typeof type === "object" ) {
- for ( var key in type ) {
- this[ name ](key, data, type[key], fn);
- }
- return this;
- }
-
- if ( jQuery.isFunction( data ) || data === false ) {
- fn = data;
- data = undefined;
- }
-
- var handler = name === "one" ? jQuery.proxy( fn, function( event ) {
- jQuery( this ).unbind( event, handler );
- return fn.apply( this, arguments );
- }) : fn;
-
- if ( type === "unload" && name !== "one" ) {
- this.one( type, data, fn );
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- jQuery.event.add( this[i], type, handler, data );
- }
- }
-
- return this;
- };
-});
-
-jQuery.fn.extend({
- unbind: function( type, fn ) {
- // Handle object literals
- if ( typeof type === "object" && !type.preventDefault ) {
- for ( var key in type ) {
- this.unbind(key, type[key]);
- }
-
- } else {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- jQuery.event.remove( this[i], type, fn );
- }
- }
-
- return this;
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.live( types, data, fn, selector );
- },
-
- undelegate: function( selector, types, fn ) {
- if ( arguments.length === 0 ) {
- return this.unbind( "live" );
-
- } else {
- return this.die( types, null, fn, selector );
- }
- },
-
- trigger: function( type, data ) {
- return this.each(function() {
- jQuery.event.trigger( type, data, this );
- });
- },
-
- triggerHandler: function( type, data ) {
- if ( this[0] ) {
- var event = jQuery.Event( type );
- event.preventDefault();
- event.stopPropagation();
- jQuery.event.trigger( event, data, this[0] );
- return event.result;
- }
- },
-
- toggle: function( fn ) {
- // Save reference to arguments for access in closure
- var args = arguments,
- i = 1;
-
- // link all the functions, so any of them can unbind this click handler
- while ( i < args.length ) {
- jQuery.proxy( fn, args[ i++ ] );
- }
-
- return this.click( jQuery.proxy( fn, function( event ) {
- // Figure out which function to execute
- var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
- jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
- // Make sure that clicks stop
- event.preventDefault();
-
- // and execute the function
- return args[ lastToggle ].apply( this, arguments ) || false;
- }));
- },
-
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-});
-
-var liveMap = {
- focus: "focusin",
- blur: "focusout",
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-};
-
-jQuery.each(["live", "die"], function( i, name ) {
- jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
- var type, i = 0, match, namespaces, preType,
- selector = origSelector || this.selector,
- context = origSelector ? this : jQuery( this.context );
-
- if ( typeof types === "object" && !types.preventDefault ) {
- for ( var key in types ) {
- context[ name ]( key, data, types[key], selector );
- }
-
- return this;
- }
-
- if ( jQuery.isFunction( data ) ) {
- fn = data;
- data = undefined;
- }
-
- types = (types || "").split(" ");
-
- while ( (type = types[ i++ ]) != null ) {
- match = rnamespaces.exec( type );
- namespaces = "";
-
- if ( match ) {
- namespaces = match[0];
- type = type.replace( rnamespaces, "" );
- }
-
- if ( type === "hover" ) {
- types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
- continue;
- }
-
- preType = type;
-
- if ( type === "focus" || type === "blur" ) {
- types.push( liveMap[ type ] + namespaces );
- type = type + namespaces;
-
- } else {
- type = (liveMap[ type ] || type) + namespaces;
- }
-
- if ( name === "live" ) {
- // bind live handler
- for ( var j = 0, l = context.length; j < l; j++ ) {
- jQuery.event.add( context[j], "live." + liveConvert( type, selector ),
- { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
- }
-
- } else {
- // unbind live handler
- context.unbind( "live." + liveConvert( type, selector ), fn );
- }
- }
-
- return this;
- };
-});
-
-function liveHandler( event ) {
- var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
- elems = [],
- selectors = [],
- events = jQuery.data( this, this.nodeType ? "events" : "__events__" );
-
- if ( typeof events === "function" ) {
- events = events.events;
- }
-
- // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)
- if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
- return;
- }
-
- if ( event.namespace ) {
- namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
- }
-
- event.liveFired = this;
-
- var live = events.live.slice(0);
-
- for ( j = 0; j < live.length; j++ ) {
- handleObj = live[j];
-
- if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
- selectors.push( handleObj.selector );
-
- } else {
- live.splice( j--, 1 );
- }
- }
-
- match = jQuery( event.target ).closest( selectors, event.currentTarget );
-
- for ( i = 0, l = match.length; i < l; i++ ) {
- close = match[i];
-
- for ( j = 0; j < live.length; j++ ) {
- handleObj = live[j];
-
- if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) ) {
- elem = close.elem;
- related = null;
-
- // Those two events require additional checking
- if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
- event.type = handleObj.preType;
- related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
- }
-
- if ( !related || related !== elem ) {
- elems.push({ elem: elem, handleObj: handleObj, level: close.level });
- }
- }
- }
- }
-
- for ( i = 0, l = elems.length; i < l; i++ ) {
- match = elems[i];
-
- if ( maxLevel && match.level > maxLevel ) {
- break;
- }
-
- event.currentTarget = match.elem;
- event.data = match.handleObj.data;
- event.handleObj = match.handleObj;
-
- ret = match.handleObj.origHandler.apply( match.elem, arguments );
-
- if ( ret === false || event.isPropagationStopped() ) {
- maxLevel = match.level;
-
- if ( ret === false ) {
- stop = false;
- }
- if ( event.isImmediatePropagationStopped() ) {
- break;
- }
- }
- }
-
- return stop;
-}
-
-function liveConvert( type, selector ) {
- return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspace, "&");
-}
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- if ( fn == null ) {
- fn = data;
- data = null;
- }
-
- return arguments.length > 0 ?
- this.bind( name, data, fn ) :
- this.trigger( name );
- };
-
- if ( jQuery.attrFn ) {
- jQuery.attrFn[ name ] = true;
- }
-});
-
-
-/*!
- * Sizzle CSS Selector Engine - v1.0
- * Copyright 2009, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- done = 0,
- toString = Object.prototype.toString,
- hasDuplicate = false,
- baseHasDuplicate = true;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-// Thus far that includes Google Chrome.
-[0, 0].sort(function() {
- baseHasDuplicate = false;
- return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
- results = results || [];
- context = context || document;
-
- var origContext = context;
-
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
- return [];
- }
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- var m, set, checkSet, extra, ret, cur, pop, i,
- prune = true,
- contextXML = Sizzle.isXML( context ),
- parts = [],
- soFar = selector;
-
- // Reset the position of the chunker regexp (start from head)
- do {
- chunker.exec( "" );
- m = chunker.exec( soFar );
-
- if ( m ) {
- soFar = m[3];
-
- parts.push( m[1] );
-
- if ( m[2] ) {
- extra = m[3];
- break;
- }
- }
- } while ( m );
-
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
- set = posProcess( parts[0] + parts[1], context );
-
- } else {
- set = Expr.relative[ parts[0] ] ?
- [ context ] :
- Sizzle( parts.shift(), context );
-
- while ( parts.length ) {
- selector = parts.shift();
-
- if ( Expr.relative[ selector ] ) {
- selector += parts.shift();
- }
-
- set = posProcess( selector, set );
- }
- }
-
- } else {
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
- ret = Sizzle.find( parts.shift(), context, contextXML );
- context = ret.expr ?
- Sizzle.filter( ret.expr, ret.set )[0] :
- ret.set[0];
- }
-
- if ( context ) {
- ret = seed ?
- { expr: parts.pop(), set: makeArray(seed) } :
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
- set = ret.expr ?
- Sizzle.filter( ret.expr, ret.set ) :
- ret.set;
-
- if ( parts.length > 0 ) {
- checkSet = makeArray( set );
-
- } else {
- prune = false;
- }
-
- while ( parts.length ) {
- cur = parts.pop();
- pop = cur;
-
- if ( !Expr.relative[ cur ] ) {
- cur = "";
- } else {
- pop = parts.pop();
- }
-
- if ( pop == null ) {
- pop = context;
- }
-
- Expr.relative[ cur ]( checkSet, pop, contextXML );
- }
-
- } else {
- checkSet = parts = [];
- }
- }
-
- if ( !checkSet ) {
- checkSet = set;
- }
-
- if ( !checkSet ) {
- Sizzle.error( cur || selector );
- }
-
- if ( toString.call(checkSet) === "[object Array]" ) {
- if ( !prune ) {
- results.push.apply( results, checkSet );
-
- } else if ( context && context.nodeType === 1 ) {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
- results.push( set[i] );
- }
- }
-
- } else {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
- results.push( set[i] );
- }
- }
- }
-
- } else {
- makeArray( checkSet, results );
- }
-
- if ( extra ) {
- Sizzle( extra, origContext, results, seed );
- Sizzle.uniqueSort( results );
- }
-
- return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
- if ( sortOrder ) {
- hasDuplicate = baseHasDuplicate;
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- for ( var i = 1; i < results.length; i++ ) {
- if ( results[i] === results[ i - 1 ] ) {
- results.splice( i--, 1 );
- }
- }
- }
- }
-
- return results;
-};
-
-Sizzle.matches = function( expr, set ) {
- return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
- return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
- var set;
-
- if ( !expr ) {
- return [];
- }
-
- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
- var match,
- type = Expr.order[i];
-
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
- var left = match[1];
- match.splice( 1, 1 );
-
- if ( left.substr( left.length - 1 ) !== "\\" ) {
- match[1] = (match[1] || "").replace(/\\/g, "");
- set = Expr.find[ type ]( match, context, isXML );
-
- if ( set != null ) {
- expr = expr.replace( Expr.match[ type ], "" );
- break;
- }
- }
- }
- }
-
- if ( !set ) {
- set = context.getElementsByTagName( "*" );
- }
-
- return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
- var match, anyFound,
- old = expr,
- result = [],
- curLoop = set,
- isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
- while ( expr && set.length ) {
- for ( var type in Expr.filter ) {
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
- var found, item,
- filter = Expr.filter[ type ],
- left = match[1];
-
- anyFound = false;
-
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) === "\\" ) {
- continue;
- }
-
- if ( curLoop === result ) {
- result = [];
- }
-
- if ( Expr.preFilter[ type ] ) {
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
- if ( !match ) {
- anyFound = found = true;
-
- } else if ( match === true ) {
- continue;
- }
- }
-
- if ( match ) {
- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
- if ( item ) {
- found = filter( item, match, i, curLoop );
- var pass = not ^ !!found;
-
- if ( inplace && found != null ) {
- if ( pass ) {
- anyFound = true;
-
- } else {
- curLoop[i] = false;
- }
-
- } else if ( pass ) {
- result.push( item );
- anyFound = true;
- }
- }
- }
- }
-
- if ( found !== undefined ) {
- if ( !inplace ) {
- curLoop = result;
- }
-
- expr = expr.replace( Expr.match[ type ], "" );
-
- if ( !anyFound ) {
- return [];
- }
-
- break;
- }
- }
- }
-
- // Improper expression
- if ( expr === old ) {
- if ( anyFound == null ) {
- Sizzle.error( expr );
-
- } else {
- break;
- }
- }
-
- old = expr;
- }
-
- return curLoop;
-};
-
-Sizzle.error = function( msg ) {
- throw "Syntax error, unrecognized expression: " + msg;
-};
-
-var Expr = Sizzle.selectors = {
- order: [ "ID", "NAME", "TAG" ],
-
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
- },
-
- leftMatch: {},
-
- attrMap: {
- "class": "className",
- "for": "htmlFor"
- },
-
- attrHandle: {
- href: function( elem ) {
- return elem.getAttribute( "href" );
- }
- },
-
- relative: {
- "+": function(checkSet, part){
- var isPartStr = typeof part === "string",
- isTag = isPartStr && !/\W/.test( part ),
- isPartStrNotTag = isPartStr && !isTag;
-
- if ( isTag ) {
- part = part.toLowerCase();
- }
-
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
- if ( (elem = checkSet[i]) ) {
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
- elem || false :
- elem === part;
- }
- }
-
- if ( isPartStrNotTag ) {
- Sizzle.filter( part, checkSet, true );
- }
- },
-
- ">": function( checkSet, part ) {
- var elem,
- isPartStr = typeof part === "string",
- i = 0,
- l = checkSet.length;
-
- if ( isPartStr && !/\W/.test( part ) ) {
- part = part.toLowerCase();
-
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
-
- if ( elem ) {
- var parent = elem.parentNode;
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
- }
- }
-
- } else {
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
-
- if ( elem ) {
- checkSet[i] = isPartStr ?
- elem.parentNode :
- elem.parentNode === part;
- }
- }
-
- if ( isPartStr ) {
- Sizzle.filter( part, checkSet, true );
- }
- }
- },
-
- "": function(checkSet, part, isXML){
- var nodeCheck,
- doneName = done++,
- checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test(part) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
-
- checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
- },
-
- "~": function( checkSet, part, isXML ) {
- var nodeCheck,
- doneName = done++,
- checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test( part ) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
-
- checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
- }
- },
-
- find: {
- ID: function( match, context, isXML ) {
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- return m && m.parentNode ? [m] : [];
- }
- },
-
- NAME: function( match, context ) {
- if ( typeof context.getElementsByName !== "undefined" ) {
- var ret = [],
- results = context.getElementsByName( match[1] );
-
- for ( var i = 0, l = results.length; i < l; i++ ) {
- if ( results[i].getAttribute("name") === match[1] ) {
- ret.push( results[i] );
- }
- }
-
- return ret.length === 0 ? null : ret;
- }
- },
-
- TAG: function( match, context ) {
- return context.getElementsByTagName( match[1] );
- }
- },
- preFilter: {
- CLASS: function( match, curLoop, inplace, result, not, isXML ) {
- match = " " + match[1].replace(/\\/g, "") + " ";
-
- if ( isXML ) {
- return match;
- }
-
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
- if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
- if ( !inplace ) {
- result.push( elem );
- }
-
- } else if ( inplace ) {
- curLoop[i] = false;
- }
- }
- }
-
- return false;
- },
-
- ID: function( match ) {
- return match[1].replace(/\\/g, "");
- },
-
- TAG: function( match, curLoop ) {
- return match[1].toLowerCase();
- },
-
- CHILD: function( match ) {
- if ( match[1] === "nth" ) {
- if ( !match[2] ) {
- Sizzle.error( match[0] );
- }
-
- match[2] = match[2].replace(/^\+|\s*/g, '');
-
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
- match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
- // calculate the numbers (first)n+(last) including if they are negative
- match[2] = (test[1] + (test[2] || 1)) - 0;
- match[3] = test[3] - 0;
- }
- else if ( match[2] ) {
- Sizzle.error( match[0] );
- }
-
- // TODO: Move to normal caching system
- match[0] = done++;
-
- return match;
- },
-
- ATTR: function( match, curLoop, inplace, result, not, isXML ) {
- var name = match[1].replace(/\\/g, "");
-
- if ( !isXML && Expr.attrMap[name] ) {
- match[1] = Expr.attrMap[name];
- }
-
- if ( match[2] === "~=" ) {
- match[4] = " " + match[4] + " ";
- }
-
- return match;
- },
-
- PSEUDO: function( match, curLoop, inplace, result, not ) {
- if ( match[1] === "not" ) {
- // If we're dealing with a complex expression, or a simple one
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
- match[3] = Sizzle(match[3], null, null, curLoop);
-
- } else {
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
- if ( !inplace ) {
- result.push.apply( result, ret );
- }
-
- return false;
- }
-
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
- return true;
- }
-
- return match;
- },
-
- POS: function( match ) {
- match.unshift( true );
-
- return match;
- }
- },
-
- filters: {
- enabled: function( elem ) {
- return elem.disabled === false && elem.type !== "hidden";
- },
-
- disabled: function( elem ) {
- return elem.disabled === true;
- },
-
- checked: function( elem ) {
- return elem.checked === true;
- },
-
- selected: function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- elem.parentNode.selectedIndex;
-
- return elem.selected === true;
- },
-
- parent: function( elem ) {
- return !!elem.firstChild;
- },
-
- empty: function( elem ) {
- return !elem.firstChild;
- },
-
- has: function( elem, i, match ) {
- return !!Sizzle( match[3], elem ).length;
- },
-
- header: function( elem ) {
- return (/h\d/i).test( elem.nodeName );
- },
-
- text: function( elem ) {
- return "text" === elem.type;
- },
- radio: function( elem ) {
- return "radio" === elem.type;
- },
-
- checkbox: function( elem ) {
- return "checkbox" === elem.type;
- },
-
- file: function( elem ) {
- return "file" === elem.type;
- },
- password: function( elem ) {
- return "password" === elem.type;
- },
-
- submit: function( elem ) {
- return "submit" === elem.type;
- },
-
- image: function( elem ) {
- return "image" === elem.type;
- },
-
- reset: function( elem ) {
- return "reset" === elem.type;
- },
-
- button: function( elem ) {
- return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
- },
-
- input: function( elem ) {
- return (/input|select|textarea|button/i).test( elem.nodeName );
- }
- },
- setFilters: {
- first: function( elem, i ) {
- return i === 0;
- },
-
- last: function( elem, i, match, array ) {
- return i === array.length - 1;
- },
-
- even: function( elem, i ) {
- return i % 2 === 0;
- },
-
- odd: function( elem, i ) {
- return i % 2 === 1;
- },
-
- lt: function( elem, i, match ) {
- return i < match[3] - 0;
- },
-
- gt: function( elem, i, match ) {
- return i > match[3] - 0;
- },
-
- nth: function( elem, i, match ) {
- return match[3] - 0 === i;
- },
-
- eq: function( elem, i, match ) {
- return match[3] - 0 === i;
- }
- },
- filter: {
- PSEUDO: function( elem, match, i, array ) {
- var name = match[1],
- filter = Expr.filters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
-
- } else if ( name === "contains" ) {
- return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
- } else if ( name === "not" ) {
- var not = match[3];
-
- for ( var j = 0, l = not.length; j < l; j++ ) {
- if ( not[j] === elem ) {
- return false;
- }
- }
-
- return true;
-
- } else {
- Sizzle.error( name );
- }
- },
-
- CHILD: function( elem, match ) {
- var type = match[1],
- node = elem;
-
- switch ( type ) {
- case "only":
- case "first":
- while ( (node = node.previousSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
-
- if ( type === "first" ) {
- return true;
- }
-
- node = elem;
-
- case "last":
- while ( (node = node.nextSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
-
- return true;
-
- case "nth":
- var first = match[2],
- last = match[3];
-
- if ( first === 1 && last === 0 ) {
- return true;
- }
-
- var doneName = match[0],
- parent = elem.parentNode;
-
- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
- var count = 0;
-
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
- if ( node.nodeType === 1 ) {
- node.nodeIndex = ++count;
- }
- }
-
- parent.sizcache = doneName;
- }
-
- var diff = elem.nodeIndex - last;
-
- if ( first === 0 ) {
- return diff === 0;
-
- } else {
- return ( diff % first === 0 && diff / first >= 0 );
- }
- }
- },
-
- ID: function( elem, match ) {
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
- },
-
- TAG: function( elem, match ) {
- return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
- },
-
- CLASS: function( elem, match ) {
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
- .indexOf( match ) > -1;
- },
-
- ATTR: function( elem, match ) {
- var name = match[1],
- result = Expr.attrHandle[ name ] ?
- Expr.attrHandle[ name ]( elem ) :
- elem[ name ] != null ?
- elem[ name ] :
- elem.getAttribute( name ),
- value = result + "",
- type = match[2],
- check = match[4];
-
- return result == null ?
- type === "!=" :
- type === "=" ?
- value === check :
- type === "*=" ?
- value.indexOf(check) >= 0 :
- type === "~=" ?
- (" " + value + " ").indexOf(check) >= 0 :
- !check ?
- value && result !== false :
- type === "!=" ?
- value !== check :
- type === "^=" ?
- value.indexOf(check) === 0 :
- type === "$=" ?
- value.substr(value.length - check.length) === check :
- type === "|=" ?
- value === check || value.substr(0, check.length + 1) === check + "-" :
- false;
- },
-
- POS: function( elem, match, i, array ) {
- var name = match[2],
- filter = Expr.setFilters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- }
- }
- }
-};
-
-var origPOS = Expr.match.POS,
- fescape = function(all, num){
- return "\\" + (num - 0 + 1);
- };
-
-for ( var type in Expr.match ) {
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-
-var makeArray = function( array, results ) {
- array = Array.prototype.slice.call( array, 0 );
-
- if ( results ) {
- results.push.apply( results, array );
- return results;
- }
-
- return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
- makeArray = function( array, results ) {
- var i = 0,
- ret = results || [];
-
- if ( toString.call(array) === "[object Array]" ) {
- Array.prototype.push.apply( ret, array );
-
- } else {
- if ( typeof array.length === "number" ) {
- for ( var l = array.length; i < l; i++ ) {
- ret.push( array[i] );
- }
-
- } else {
- for ( ; array[i]; i++ ) {
- ret.push( array[i] );
- }
- }
- }
-
- return ret;
- };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
- return a.compareDocumentPosition ? -1 : 1;
- }
-
- return a.compareDocumentPosition(b) & 4 ? -1 : 1;
- };
-
-} else {
- sortOrder = function( a, b ) {
- var al, bl,
- ap = [],
- bp = [],
- aup = a.parentNode,
- bup = b.parentNode,
- cur = aup;
-
- // The nodes are identical, we can exit early
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
-
- // If the nodes are siblings (or identical) we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
-
- // If no parents were found then the nodes are disconnected
- } else if ( !aup ) {
- return -1;
-
- } else if ( !bup ) {
- return 1;
- }
-
- // Otherwise they're somewhere else in the tree so we need
- // to build up a full list of the parentNodes for comparison
- while ( cur ) {
- ap.unshift( cur );
- cur = cur.parentNode;
- }
-
- cur = bup;
-
- while ( cur ) {
- bp.unshift( cur );
- cur = cur.parentNode;
- }
-
- al = ap.length;
- bl = bp.length;
-
- // Start walking down the tree looking for a discrepancy
- for ( var i = 0; i < al && i < bl; i++ ) {
- if ( ap[i] !== bp[i] ) {
- return siblingCheck( ap[i], bp[i] );
- }
- }
-
- // We ended someplace up the tree so do a sibling check
- return i === al ?
- siblingCheck( a, bp[i], -1 ) :
- siblingCheck( ap[i], b, 1 );
- };
-
- siblingCheck = function( a, b, ret ) {
- if ( a === b ) {
- return ret;
- }
-
- var cur = a.nextSibling;
-
- while ( cur ) {
- if ( cur === b ) {
- return -1;
- }
-
- cur = cur.nextSibling;
- }
-
- return 1;
- };
-}
-
-// Utility function for retreiving the text value of an array of DOM nodes
-Sizzle.getText = function( elems ) {
- var ret = "", elem;
-
- for ( var i = 0; elems[i]; i++ ) {
- elem = elems[i];
-
- // Get the text from text nodes and CDATA nodes
- if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
- ret += elem.nodeValue;
-
- // Traverse everything else, except comment nodes
- } else if ( elem.nodeType !== 8 ) {
- ret += Sizzle.getText( elem.childNodes );
- }
- }
-
- return ret;
-};
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
- // We're going to inject a fake input element with a specified name
- var form = document.createElement("div"),
- id = "script" + (new Date()).getTime(),
- root = document.documentElement;
-
- form.innerHTML = "<a name='" + id + "'/>";
-
- // Inject it into the root element, check its status, and remove it quickly
- root.insertBefore( form, root.firstChild );
-
- // The workaround has to do additional checks after a getElementById
- // Which slows things down for other browsers (hence the branching)
- if ( document.getElementById( id ) ) {
- Expr.find.ID = function( match, context, isXML ) {
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
-
- return m ?
- m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
- [m] :
- undefined :
- [];
- }
- };
-
- Expr.filter.ID = function( elem, match ) {
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
- return elem.nodeType === 1 && node && node.nodeValue === match;
- };
- }
-
- root.removeChild( form );
-
- // release memory in IE
- root = form = null;
-})();
-
-(function(){
- // Check to see if the browser returns only elements
- // when doing getElementsByTagName("*")
-
- // Create a fake element
- var div = document.createElement("div");
- div.appendChild( document.createComment("") );
-
- // Make sure no comments are found
- if ( div.getElementsByTagName("*").length > 0 ) {
- Expr.find.TAG = function( match, context ) {
- var results = context.getElementsByTagName( match[1] );
-
- // Filter out possible comments
- if ( match[1] === "*" ) {
- var tmp = [];
-
- for ( var i = 0; results[i]; i++ ) {
- if ( results[i].nodeType === 1 ) {
- tmp.push( results[i] );
- }
- }
-
- results = tmp;
- }
-
- return results;
- };
- }
-
- // Check to see if an attribute returns normalized href attributes
- div.innerHTML = "<a href='#'></a>";
-
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
- div.firstChild.getAttribute("href") !== "#" ) {
-
- Expr.attrHandle.href = function( elem ) {
- return elem.getAttribute( "href", 2 );
- };
- }
-
- // release memory in IE
- div = null;
-})();
-
-if ( document.querySelectorAll ) {
- (function(){
- var oldSizzle = Sizzle,
- div = document.createElement("div"),
- id = "__sizzle__";
-
- div.innerHTML = "<p class='TEST'></p>";
-
- // Safari can't handle uppercase or unicode characters when
- // in quirks mode.
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
- return;
- }
-
- Sizzle = function( query, context, extra, seed ) {
- context = context || document;
-
- // Make sure that attribute selectors are quoted
- query = query.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
- // Only use querySelectorAll on non-XML documents
- // (ID selectors don't work in non-HTML documents)
- if ( !seed && !Sizzle.isXML(context) ) {
- if ( context.nodeType === 9 ) {
- try {
- return makeArray( context.querySelectorAll(query), extra );
- } catch(qsaError) {}
-
- // qSA works strangely on Element-rooted queries
- // We can work around this by specifying an extra ID on the root
- // and working up from there (Thanks to Andrew Dupont for the technique)
- // IE 8 doesn't work on object elements
- } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
- var old = context.getAttribute( "id" ),
- nid = old || id,
- hasParent = context.parentNode,
- relativeHierarchySelector = /^\s*[+~]/.test( query );
-
- if ( !old ) {
- context.setAttribute( "id", nid );
- } else {
- nid = nid.replace( /'/g, "\\$&" );
- }
- if ( relativeHierarchySelector && hasParent ) {
- context = context.parentNode;
- }
-
- try {
- if ( !relativeHierarchySelector || hasParent ) {
- return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
- }
-
- } catch(pseudoError) {
- } finally {
- if ( !old ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
-
- return oldSizzle(query, context, extra, seed);
- };
-
- for ( var prop in oldSizzle ) {
- Sizzle[ prop ] = oldSizzle[ prop ];
- }
-
- // release memory in IE
- div = null;
- })();
-}
-
-(function(){
- var html = document.documentElement,
- matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector,
- pseudoWorks = false;
-
- try {
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( document.documentElement, "[test!='']:sizzle" );
-
- } catch( pseudoError ) {
- pseudoWorks = true;
- }
-
- if ( matches ) {
- Sizzle.matchesSelector = function( node, expr ) {
- // Make sure that attribute selectors are quoted
- expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
- if ( !Sizzle.isXML( node ) ) {
- try {
- if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
- return matches.call( node, expr );
- }
- } catch(e) {}
- }
-
- return Sizzle(expr, null, null, [node]).length > 0;
- };
- }
-})();
-
-(function(){
- var div = document.createElement("div");
-
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
- // Opera can't find a second classname (in 9.6)
- // Also, make sure that getElementsByClassName actually exists
- if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
- return;
- }
-
- // Safari caches class attributes, doesn't catch changes (in 3.2)
- div.lastChild.className = "e";
-
- if ( div.getElementsByClassName("e").length === 1 ) {
- return;
- }
-
- Expr.order.splice(1, 0, "CLASS");
- Expr.find.CLASS = function( match, context, isXML ) {
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
- return context.getElementsByClassName(match[1]);
- }
- };
-
- // release memory in IE
- div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
-
- if ( elem ) {
- var match = false;
-
- elem = elem[dir];
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 && !isXML ){
- elem.sizcache = doneName;
- elem.sizset = i;
- }
-
- if ( elem.nodeName.toLowerCase() === cur ) {
- match = elem;
- break;
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
-
- if ( elem ) {
- var match = false;
-
- elem = elem[dir];
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 ) {
- if ( !isXML ) {
- elem.sizcache = doneName;
- elem.sizset = i;
- }
-
- if ( typeof cur !== "string" ) {
- if ( elem === cur ) {
- match = true;
- break;
- }
-
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
- match = elem;
- break;
- }
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-if ( document.documentElement.contains ) {
- Sizzle.contains = function( a, b ) {
- return a !== b && (a.contains ? a.contains(b) : true);
- };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
- Sizzle.contains = function( a, b ) {
- return !!(a.compareDocumentPosition(b) & 16);
- };
-
-} else {
- Sizzle.contains = function() {
- return false;
- };
-}
-
-Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context ) {
- var match,
- tmpSet = [],
- later = "",
- root = context.nodeType ? [context] : context;
-
- // Position selectors must be done after the filter
- // And so must :not(positional) so we move all PSEUDOs to the end
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
- later += match[0];
- selector = selector.replace( Expr.match.PSEUDO, "" );
- }
-
- selector = Expr.relative[selector] ? selector + "*" : selector;
-
- for ( var i = 0, l = root.length; i < l; i++ ) {
- Sizzle( selector, root[i], tmpSet );
- }
-
- return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
- rparentsprev = /^(?:parents|prevUntil|prevAll)/,
- // Note: This RegExp should be improved, or likely pulled from Sizzle
- rmultiselector = /,/,
- isSimple = /^.[^:#\[\.,]*$/,
- slice = Array.prototype.slice,
- POS = jQuery.expr.match.POS,
- // methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend({
- find: function( selector ) {
- var ret = this.pushStack( "", "find", selector ),
- length = 0;
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- length = ret.length;
- jQuery.find( selector, this[i], ret );
-
- if ( i > 0 ) {
- // Make sure that the results are unique
- for ( var n = length; n < ret.length; n++ ) {
- for ( var r = 0; r < length; r++ ) {
- if ( ret[r] === ret[n] ) {
- ret.splice(n--, 1);
- break;
- }
- }
- }
- }
- }
-
- return ret;
- },
-
- has: function( target ) {
- var targets = jQuery( target );
- return this.filter(function() {
- for ( var i = 0, l = targets.length; i < l; i++ ) {
- if ( jQuery.contains( this, targets[i] ) ) {
- return true;
- }
- }
- });
- },
-
- not: function( selector ) {
- return this.pushStack( winnow(this, selector, false), "not", selector);
- },
-
- filter: function( selector ) {
- return this.pushStack( winnow(this, selector, true), "filter", selector );
- },
-
- is: function( selector ) {
- return !!selector && jQuery.filter( selector, this ).length > 0;
- },
-
- closest: function( selectors, context ) {
- var ret = [], i, l, cur = this[0];
-
- if ( jQuery.isArray( selectors ) ) {
- var match, selector,
- matches = {},
- level = 1;
-
- if ( cur && selectors.length ) {
- for ( i = 0, l = selectors.length; i < l; i++ ) {
- selector = selectors[i];
-
- if ( !matches[selector] ) {
- matches[selector] = jQuery.expr.match.POS.test( selector ) ?
- jQuery( selector, context || this.context ) :
- selector;
- }
- }
-
- while ( cur && cur.ownerDocument && cur !== context ) {
- for ( selector in matches ) {
- match = matches[selector];
-
- if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
- ret.push({ selector: selector, elem: cur, level: level });
- }
- }
-
- cur = cur.parentNode;
- level++;
- }
- }
-
- return ret;
- }
-
- var pos = POS.test( selectors ) ?
- jQuery( selectors, context || this.context ) : null;
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- cur = this[i];
-
- while ( cur ) {
- if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
- ret.push( cur );
- break;
-
- } else {
- cur = cur.parentNode;
- if ( !cur || !cur.ownerDocument || cur === context ) {
- break;
- }
- }
- }
- }
-
- ret = ret.length > 1 ? jQuery.unique(ret) : ret;
-
- return this.pushStack( ret, "closest", selectors );
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
- if ( !elem || typeof elem === "string" ) {
- return jQuery.inArray( this[0],
- // If it receives a string, the selector is used
- // If it receives nothing, the siblings are used
- elem ? jQuery( elem ) : this.parent().children() );
- }
- // Locate the position of the desired element
- return jQuery.inArray(
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[0] : elem, this );
- },
-
- add: function( selector, context ) {
- var set = typeof selector === "string" ?
- jQuery( selector, context || this.context ) :
- jQuery.makeArray( selector ),
- all = jQuery.merge( this.get(), set );
-
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
- all :
- jQuery.unique( all ) );
- },
-
- andSelf: function() {
- return this.add( this.prevObject );
- }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
- return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return jQuery.dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return jQuery.nth( elem, 2, "nextSibling" );
- },
- prev: function( elem ) {
- return jQuery.nth( elem, 2, "previousSibling" );
- },
- nextAll: function( elem ) {
- return jQuery.dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return jQuery.dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return jQuery.sibling( elem.parentNode.firstChild, elem );
- },
- children: function( elem ) {
- return jQuery.sibling( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.makeArray( elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until ),
- args = slice.call(arguments);
-
- if ( !runtil.test( name ) ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- ret = jQuery.filter( selector, ret );
- }
-
- ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
-
- if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
- ret = ret.reverse();
- }
-
- return this.pushStack( ret, name, args.join(",") );
- };
-});
-
-jQuery.extend({
- filter: function( expr, elems, not ) {
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 ?
- jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
- jQuery.find.matches(expr, elems);
- },
-
- dir: function( elem, dir, until ) {
- var matched = [],
- cur = elem[ dir ];
-
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
- if ( cur.nodeType === 1 ) {
- matched.push( cur );
- }
- cur = cur[dir];
- }
- return matched;
- },
-
- nth: function( cur, result, dir, elem ) {
- result = result || 1;
- var num = 0;
-
- for ( ; cur; cur = cur[dir] ) {
- if ( cur.nodeType === 1 && ++num === result ) {
- break;
- }
- }
-
- return cur;
- },
-
- sibling: function( n, elem ) {
- var r = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- r.push( n );
- }
- }
-
- return r;
- }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep(elements, function( elem, i ) {
- var retVal = !!qualifier.call( elem, i, elem );
- return retVal === keep;
- });
-
- } else if ( qualifier.nodeType ) {
- return jQuery.grep(elements, function( elem, i ) {
- return (elem === qualifier) === keep;
- });
-
- } else if ( typeof qualifier === "string" ) {
- var filtered = jQuery.grep(elements, function( elem ) {
- return elem.nodeType === 1;
- });
-
- if ( isSimple.test( qualifier ) ) {
- return jQuery.filter(qualifier, filtered, !keep);
- } else {
- qualifier = jQuery.filter( qualifier, filtered );
- }
- }
-
- return jQuery.grep(elements, function( elem, i ) {
- return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
- });
-}
-
-
-
-
-var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
- rleadingWhitespace = /^\s+/,
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
- rtagName = /<([\w:]+)/,
- rtbody = /<tbody/i,
- rhtml = /<|&#?\w+;/,
- rnocache = /<(?:script|object|embed|option|style)/i,
- // checked="checked" or checked (html5)
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- wrapMap = {
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
- legend: [ 1, "<fieldset>", "</fieldset>" ],
- thead: [ 1, "<table>", "</table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
- col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
- area: [ 1, "<map>", "</map>" ],
- _default: [ 0, "", "" ]
- };
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
- wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
- text: function( text ) {
- if ( jQuery.isFunction(text) ) {
- return this.each(function(i) {
- var self = jQuery( this );
-
- self.text( text.call(this, i, self.text()) );
- });
- }
-
- if ( typeof text !== "object" && text !== undefined ) {
- return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
- }
-
- return jQuery.text( this );
- },
-
- wrapAll: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapAll( html.call(this, i) );
- });
- }
-
- if ( this[0] ) {
- // The elements to wrap the target around
- var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
- if ( this[0].parentNode ) {
- wrap.insertBefore( this[0] );
- }
-
- wrap.map(function() {
- var elem = this;
-
- while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
- elem = elem.firstChild;
- }
-
- return elem;
- }).append(this);
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapInner( html.call(this, i) );
- });
- }
-
- return this.each(function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- });
- },
-
- wrap: function( html ) {
- return this.each(function() {
- jQuery( this ).wrapAll( html );
- });
- },
-
- unwrap: function() {
- return this.parent().each(function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- }).end();
- },
-
- append: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.appendChild( elem );
- }
- });
- },
-
- prepend: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.insertBefore( elem, this.firstChild );
- }
- });
- },
-
- before: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this );
- });
- } else if ( arguments.length ) {
- var set = jQuery(arguments[0]);
- set.push.apply( set, this.toArray() );
- return this.pushStack( set, "before", arguments );
- }
- },
-
- after: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- });
- } else if ( arguments.length ) {
- var set = this.pushStack( this, "after", arguments );
- set.push.apply( set, jQuery(arguments[0]).toArray() );
- return set;
- }
- },
-
- // keepData is for internal use only--do not document
- remove: function( selector, keepData ) {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
- if ( !keepData && elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- jQuery.cleanData( [ elem ] );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
- }
- }
-
- return this;
- },
-
- empty: function() {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- }
-
- // Remove any remaining nodes
- while ( elem.firstChild ) {
- elem.removeChild( elem.firstChild );
- }
- }
-
- return this;
- },
-
- clone: function( events ) {
- // Do the clone
- var ret = this.map(function() {
- var clone = this.cloneNode(true);
- if ( !jQuery.support.noCloneEvent && (this.nodeType === 1 || this.nodeType === 11) && !jQuery.isXMLDoc(this) ) {
- // IE copies events bound via attachEvent when using cloneNode.
- // Calling detachEvent on the clone will also remove the events
- // from the original. In order to get around this, we use some
- // proprietary methods to clear the events. Thanks to MooTools
- // guys for this hotness.
-
- // Using Sizzle here is crazy slow, so we use getElementsByTagName
- // instead
- var srcElements = this.getElementsByTagName("*"),
- destElements = clone.getElementsByTagName("*");
-
- // Weird iteration because IE will replace the length property
- // with an element if you are cloning the body and one of the
- // elements on the page has a name or id of "length"
- for ( var i = 0; srcElements[i]; ++i ) {
- cloneFixAttributes( srcElements[i], destElements[i] );
- }
-
- cloneFixAttributes( this, clone );
- }
-
- return clone;
- });
-
- // Copy the events from the original to the clone
- if ( events === true ) {
- cloneCopyEvent( this, ret );
- cloneCopyEvent( this.find("*"), ret.find("*") );
- }
-
- // Return the cloned set
- return ret;
- },
-
- html: function( value ) {
- if ( value === undefined ) {
- return this[0] && this[0].nodeType === 1 ?
- this[0].innerHTML.replace(rinlinejQuery, "") :
- null;
-
- // See if we can take a shortcut and just use innerHTML
- } else if ( typeof value === "string" && !rnocache.test( value ) &&
- (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
- !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
-
- value = value.replace(rxhtmlTag, "<$1></$2>");
-
- try {
- for ( var i = 0, l = this.length; i < l; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( this[i].nodeType === 1 ) {
- jQuery.cleanData( this[i].getElementsByTagName("*") );
- this[i].innerHTML = value;
- }
- }
-
- // If using innerHTML throws an exception, use the fallback method
- } catch(e) {
- this.empty().append( value );
- }
-
- } else if ( jQuery.isFunction( value ) ) {
- this.each(function(i){
- var self = jQuery( this );
-
- self.html( value.call(this, i, self.html()) );
- });
-
- } else {
- this.empty().append( value );
- }
-
- return this;
- },
-
- replaceWith: function( value ) {
- if ( this[0] && this[0].parentNode ) {
- // Make sure that the elements are removed from the DOM before they are inserted
- // this can help fix replacing a parent with child elements
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this), old = self.html();
- self.replaceWith( value.call( this, i, old ) );
- });
- }
-
- if ( typeof value !== "string" ) {
- value = jQuery( value ).detach();
- }
-
- return this.each(function() {
- var next = this.nextSibling,
- parent = this.parentNode;
-
- jQuery( this ).remove();
-
- if ( next ) {
- jQuery(next).before( value );
- } else {
- jQuery(parent).append( value );
- }
- });
- } else {
- return this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value );
- }
- },
-
- detach: function( selector ) {
- return this.remove( selector, true );
- },
-
- domManip: function( args, table, callback ) {
- var results, first, fragment, parent,
- value = args[0],
- scripts = [];
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
- return this.each(function() {
- jQuery(this).domManip( args, table, callback, true );
- });
- }
-
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- args[0] = value.call(this, i, table ? self.html() : undefined);
- self.domManip( args, table, callback );
- });
- }
-
- if ( this[0] ) {
- parent = value && value.parentNode;
-
- // If we're in a fragment, just use that instead of building a new one
- if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
- results = { fragment: parent };
-
- } else {
- results = jQuery.buildFragment( args, this, scripts );
- }
-
- fragment = results.fragment;
-
- if ( fragment.childNodes.length === 1 ) {
- first = fragment = fragment.firstChild;
- } else {
- first = fragment.firstChild;
- }
-
- if ( first ) {
- table = table && jQuery.nodeName( first, "tr" );
-
- for ( var i = 0, l = this.length; i < l; i++ ) {
- callback.call(
- table ?
- root(this[i], first) :
- this[i],
- i > 0 || results.cacheable || this.length > 1 ?
- jQuery(fragment).clone(true)[0] :
- fragment
- );
- }
- }
-
- if ( scripts.length ) {
- jQuery.each( scripts, evalScript );
- }
- }
-
- return this;
- }
-});
-
-function root( elem, cur ) {
- return jQuery.nodeName(elem, "table") ?
- (elem.getElementsByTagName("tbody")[0] ||
- elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
- elem;
-}
-
-function cloneCopyEvent(orig, ret) {
- ret.each(function (nodeIndex) {
- if ( this.nodeType !== 1 || !jQuery.hasData(orig[nodeIndex]) ) {
- return;
- }
-
- // XXX remove for 1.5 RC or merge back in if there is actually a reason for this check that has been
- // unexposed by unit tests
- if ( this.nodeName !== (orig[nodeIndex] && orig[nodeIndex].nodeName) ) {
- throw "Cloned data mismatch";
- }
-
- var oldData = jQuery.data( orig[nodeIndex] ),
- curData = jQuery.data( this, oldData ),
- events = oldData && oldData.events;
-
- if ( events ) {
- delete curData.handle;
- curData.events = {};
-
- for ( var type in events ) {
- for ( var i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( this, type, events[ type ][ i ], events[ type ][ i ].data );
- }
- }
- }
- });
-}
-
-function cloneFixAttributes(src, dest) {
- // We do not need to do anything for non-Elements
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- var nodeName = dest.nodeName.toLowerCase();
-
- // clearAttributes removes the attributes, which we don't want,
- // but also removes the attachEvent events, which we *do* want
- dest.clearAttributes();
-
- // mergeAttributes, in contrast, only merges back on the
- // original attributes, not the events
- dest.mergeAttributes(src);
-
- // IE6-8 fail to clone children inside object elements that use
- // the proprietary classid attribute value (rather than the type
- // attribute) to identify the type of content to display
- if ( nodeName === "object" ) {
- dest.outerHTML = src.outerHTML;
-
- } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
- // IE6-8 fails to persist the checked state of a cloned checkbox
- // or radio button. Worse, IE6-7 fail to give the cloned element
- // a checked appearance if the defaultChecked value isn't also set
- if ( src.checked ) {
- dest.defaultChecked = dest.checked = src.checked;
- }
-
- // IE6-7 get confused and end up setting the value of a cloned
- // checkbox/radio button to an empty string instead of "on"
- if ( dest.value !== src.value ) {
- dest.value = src.value;
- }
-
- // IE6-8 fails to return the selected option to the default selected
- // state when cloning options
- } else if ( nodeName === "option" ) {
- dest.selected = src.defaultSelected;
-
- // IE6-8 fails to set the defaultValue to the correct value when
- // cloning other types of input fields
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-
- // Event data gets referenced instead of copied if the expando
- // gets copied too
- dest.removeAttribute( jQuery.expando );
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
- var fragment, cacheable, cacheresults,
- doc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document);
-
- // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
- // Cloning options loses the selected state, so don't cache them
- // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
- // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
- if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
- args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
-
- cacheable = true;
- cacheresults = jQuery.fragments[ args[0] ];
- if ( cacheresults ) {
- if ( cacheresults !== 1 ) {
- fragment = cacheresults;
- }
- }
- }
-
- if ( !fragment ) {
- fragment = doc.createDocumentFragment();
- jQuery.clean( args, doc, fragment, scripts );
- }
-
- if ( cacheable ) {
- jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;
- }
-
- return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var ret = [],
- insert = jQuery( selector ),
- parent = this.length === 1 && this[0].parentNode;
-
- if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
- insert[ original ]( this[0] );
- return this;
-
- } else {
- for ( var i = 0, l = insert.length; i < l; i++ ) {
- var elems = (i > 0 ? this.clone(true) : this).get();
- jQuery( insert[i] )[ original ]( elems );
- ret = ret.concat( elems );
- }
-
- return this.pushStack( ret, name, insert.selector );
- }
- };
-});
-
-jQuery.extend({
- clean: function( elems, context, fragment, scripts ) {
- context = context || document;
-
- // !context.createElement fails in IE with an error but returns typeof 'object'
- if ( typeof context.createElement === "undefined" ) {
- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
- }
-
- var ret = [];
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( typeof elem === "number" ) {
- elem += "";
- }
-
- if ( !elem ) {
- continue;
- }
-
- // Convert html string into DOM nodes
- if ( typeof elem === "string" && !rhtml.test( elem ) ) {
- elem = context.createTextNode( elem );
-
- } else if ( typeof elem === "string" ) {
- // Fix "XHTML"-style tags in all browsers
- elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
- // Trim whitespace, otherwise indexOf won't work as expected
- var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(),
- wrap = wrapMap[ tag ] || wrapMap._default,
- depth = wrap[0],
- div = context.createElement("div");
-
- // Go to html and back, then peel off extra wrappers
- div.innerHTML = wrap[1] + elem + wrap[2];
-
- // Move to the right depth
- while ( depth-- ) {
- div = div.lastChild;
- }
-
- // Remove IE's autoinserted <tbody> from table fragments
- if ( !jQuery.support.tbody ) {
-
- // String was a <table>, *may* have spurious <tbody>
- var hasBody = rtbody.test(elem),
- tbody = tag === "table" && !hasBody ?
- div.firstChild && div.firstChild.childNodes :
-
- // String was a bare <thead> or <tfoot>
- wrap[1] === "<table>" && !hasBody ?
- div.childNodes :
- [];
-
- for ( var j = tbody.length - 1; j >= 0 ; --j ) {
- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
- tbody[ j ].parentNode.removeChild( tbody[ j ] );
- }
- }
-
- }
-
- // IE completely kills leading whitespace when innerHTML is used
- if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
- div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
- }
-
- elem = div.childNodes;
- }
-
- if ( elem.nodeType ) {
- ret.push( elem );
- } else {
- ret = jQuery.merge( ret, elem );
- }
- }
-
- if ( fragment ) {
- for ( i = 0; ret[i]; i++ ) {
- if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
- scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
-
- } else {
- if ( ret[i].nodeType === 1 ) {
- ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
- }
- fragment.appendChild( ret[i] );
- }
- }
- }
-
- return ret;
- },
-
- cleanData: function( elems ) {
- var data, id, cache = jQuery.cache,
- special = jQuery.event.special,
- deleteExpando = jQuery.support.deleteExpando;
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
- continue;
- }
-
- id = elem[ jQuery.expando ];
-
- if ( id ) {
- data = cache[ id ];
-
- if ( data && data.events ) {
- for ( var type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
-
- // Null the DOM reference to avoid IE6/7/8 leak (#7054)
- if ( data.handle ) {
- data.handle.elem = null;
- }
- }
-
- if ( deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
- }
-
- delete cache[ id ];
- }
- }
- }
-});
-
-function evalScript( i, elem ) {
- if ( elem.src ) {
- jQuery.ajax({
- url: elem.src,
- async: false,
- dataType: "script"
- });
- } else {
- jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
-}
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
- ropacity = /opacity=([^)]*)/,
- rdashAlpha = /-([a-z])/ig,
- rupper = /([A-Z])/g,
- rnumpx = /^-?\d+(?:px)?$/i,
- rnum = /^-?\d/,
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssWidth = [ "Left", "Right" ],
- cssHeight = [ "Top", "Bottom" ],
- curCSS,
-
- getComputedStyle,
- currentStyle,
-
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn.css = function( name, value ) {
- // Setting 'undefined' is a no-op
- if ( arguments.length === 2 && value === undefined ) {
- return this;
- }
-
- return jQuery.access( this, name, value, true, function( elem, name, value ) {
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- });
-};
-
-jQuery.extend({
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity", "opacity" );
- return ret === "" ? "1" : ret;
-
- } else {
- return elem.style.opacity;
- }
- }
- }
- },
-
- // Exclude the following css properties to add px
- cssNumber: {
- "zIndex": true,
- "fontWeight": true,
- "opacity": true,
- "zoom": true,
- "lineHeight": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- // normalize float css property
- "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, origName = jQuery.camelCase( name ),
- style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
- name = jQuery.cssProps[ origName ] || origName;
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- // Make sure that NaN and null values aren't set. See: #7116
- if ( typeof value === "number" && isNaN( value ) || value == null ) {
- return;
- }
-
- // If a number was passed in, add 'px' to the (except for certain CSS properties)
- if ( typeof value === "number" && !jQuery.cssNumber[ origName ] ) {
- value += "px";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
- // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
- // Fixes bug #5509
- try {
- style[ name ] = value;
- } catch(e) {}
- }
-
- } else {
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra ) {
- // Make sure that we're working with the right name
- var ret, origName = jQuery.camelCase( name ),
- hooks = jQuery.cssHooks[ origName ];
-
- name = jQuery.cssProps[ origName ] || origName;
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
- return ret;
-
- // Otherwise, if a way to get the computed value exists, use that
- } else if ( curCSS ) {
- return curCSS( elem, name, origName );
- }
- },
-
- // A method for quickly swapping in/out CSS properties to get correct calculations
- swap: function( elem, options, callback ) {
- var old = {};
-
- // Remember the old values, and insert the new ones
- for ( var name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- callback.call( elem );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
- },
-
- camelCase: function( string ) {
- return string.replace( rdashAlpha, fcamelCase );
- }
-});
-
-// DEPRECATED, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-jQuery.each(["height", "width"], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- var val;
-
- if ( computed ) {
- if ( elem.offsetWidth !== 0 ) {
- val = getWH( elem, name, extra );
-
- } else {
- jQuery.swap( elem, cssShow, function() {
- val = getWH( elem, name, extra );
- });
- }
-
- if ( val <= 0 ) {
- val = curCSS( elem, name, name );
-
- if ( val === "0px" && currentStyle ) {
- val = currentStyle( elem, name, name );
- }
-
- if ( val != null ) {
- // Should return "auto" instead of 0, use 0 for
- // temporary backwards-compat
- return val === "" || val === "auto" ? "0px" : val;
- }
- }
-
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
-
- // Should return "auto" instead of 0, use 0 for
- // temporary backwards-compat
- return val === "" || val === "auto" ? "0px" : val;
- }
-
- return typeof val === "string" ? val : val + "px";
- }
- },
-
- set: function( elem, value ) {
- if ( rnumpx.test( value ) ) {
- // ignore negative width and height values #1599
- value = parseFloat(value);
-
- if ( value >= 0 ) {
- return value + "px";
- }
-
- } else {
- return value;
- }
- }
- };
-});
-
-if ( !jQuery.support.opacity ) {
- jQuery.cssHooks.opacity = {
- get: function( elem, computed ) {
- // IE uses filters for opacity
- return ropacity.test((computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "") ?
- (parseFloat(RegExp.$1) / 100) + "" :
- computed ? "1" : "";
- },
-
- set: function( elem, value ) {
- var style = elem.style;
-
- // IE has trouble with opacity if it does not have layout
- // Force it by setting the zoom level
- style.zoom = 1;
-
- // Set the alpha filter to set the opacity
- var opacity = jQuery.isNaN(value) ?
- "" :
- "alpha(opacity=" + value * 100 + ")",
- filter = style.filter || "";
-
- style.filter = ralpha.test(filter) ?
- filter.replace(ralpha, opacity) :
- style.filter + ' ' + opacity;
- }
- };
-}
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
- getComputedStyle = function( elem, newName, name ) {
- var ret, defaultView, computedStyle;
-
- name = name.replace( rupper, "-$1" ).toLowerCase();
-
- if ( !(defaultView = elem.ownerDocument.defaultView) ) {
- return undefined;
- }
-
- if ( (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
- ret = computedStyle.getPropertyValue( name );
- if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
- ret = jQuery.style( elem, name );
- }
- }
-
- return ret;
- };
-}
-
-if ( document.documentElement.currentStyle ) {
- currentStyle = function( elem, name ) {
- var left, rsLeft,
- ret = elem.currentStyle && elem.currentStyle[ name ],
- style = elem.style;
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
- // Remember the original values
- left = style.left;
- rsLeft = elem.runtimeStyle.left;
-
- // Put in the new values to get a computed value out
- elem.runtimeStyle.left = elem.currentStyle.left;
- style.left = name === "fontSize" ? "1em" : (ret || 0);
- ret = style.pixelLeft + "px";
-
- // Revert the changed values
- style.left = left;
- elem.runtimeStyle.left = rsLeft;
- }
-
- return ret === "" ? "auto" : ret;
- };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWH( elem, name, extra ) {
- var which = name === "width" ? cssWidth : cssHeight,
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight;
-
- if ( extra === "border" ) {
- return val;
- }
-
- jQuery.each( which, function() {
- if ( !extra ) {
- val -= parseFloat(jQuery.css( elem, "padding" + this )) || 0;
- }
-
- if ( extra === "margin" ) {
- val += parseFloat(jQuery.css( elem, "margin" + this )) || 0;
-
- } else {
- val -= parseFloat(jQuery.css( elem, "border" + this + "Width" )) || 0;
- }
- });
-
- return val;
-}
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.hidden = function( elem ) {
- var width = elem.offsetWidth,
- height = elem.offsetHeight;
-
- return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none");
- };
-
- jQuery.expr.filters.visible = function( elem ) {
- return !jQuery.expr.filters.hidden( elem );
- };
-}
-
-
-
-
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rhash = /#.*$/,
- rheaders = /^(.*?):\s*(.*?)\r?$/mg, // IE leaves an \r character at EOL
- rinput = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
- rnoContent = /^(?:GET|HEAD)$/,
- rquery = /\?/,
- rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
- rselectTextarea = /^(?:select|textarea)/i,
- rts = /([?&])_=[^&]*/,
- rurl = /^(\w+:)?\/\/([^\/?#:]+)(?::(\d+))?/,
- rCRLF = /\r?\n/g,
-
- // Slice function
- sliceFunc = Array.prototype.slice,
-
- // Keep a copy of the old load method
- _load = jQuery.fn.load;
-
-jQuery.fn.extend({
- load: function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
-
- // Don't do a request if no elements are being requested
- } else if ( !this.length ) {
- return this;
- }
-
- var off = url.indexOf(" ");
- if ( off >= 0 ) {
- var selector = url.slice(off, url.length);
- url = url.slice(0, off);
- }
-
- // Default to a GET request
- var type = "GET";
-
- // If the second parameter was provided
- if ( params ) {
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
- // We assume that it's the callback
- callback = params;
- params = null;
-
- // Otherwise, build a param string
- } else if ( typeof params === "object" ) {
- params = jQuery.param( params, jQuery.ajaxSettings.traditional );
- type = "POST";
- }
- }
-
- var self = this;
-
- // Request the remote document
- jQuery.ajax({
- url: url,
- type: type,
- dataType: "html",
- data: params,
- // Complete callback (responseText is used internally)
- complete: function( jXHR, status, responseText ) {
- // Store the response as specified by the jXHR object
- responseText = jXHR.responseText;
- // If successful, inject the HTML into all the matched elements
- if ( jXHR.isResolved() ) {
- // #4825: Get the actual response in case
- // a dataFilter is present in ajaxSettings
- jXHR.done(function( r ) {
- responseText = r;
- });
- // See if a selector was specified
- self.html( selector ?
- // Create a dummy div to hold the results
- jQuery("<div>")
- // inject the contents of the document in, removing the scripts
- // to avoid any 'Permission Denied' errors in IE
- .append(responseText.replace(rscript, ""))
-
- // Locate the specified elements
- .find(selector) :
-
- // If not, just inject the full result
- responseText );
- }
-
- if ( callback ) {
- self.each( callback, [responseText, status, jXHR] );
- }
- }
- });
-
- return this;
- },
-
- serialize: function() {
- return jQuery.param(this.serializeArray());
- },
-
- serializeArray: function() {
- return this.map(function(){
- return this.elements ? jQuery.makeArray(this.elements) : this;
- })
- .filter(function(){
- return this.name && !this.disabled &&
- (this.checked || rselectTextarea.test(this.nodeName) ||
- rinput.test(this.type));
- })
- .map(function(i, elem){
- var val = jQuery(this).val();
-
- return val == null ?
- null :
- jQuery.isArray(val) ?
- jQuery.map( val, function(val, i){
- return { name: elem.name, value: val.replace(rCRLF, "\r\n") };
- }) :
- { name: elem.name, value: val.replace(rCRLF, "\r\n") };
- }).get();
- }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function(i,o){
- jQuery.fn[o] = function(f){
- return this.bind(o, f);
- };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
- // shift arguments if data argument was omited
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = null;
- }
-
- return jQuery.ajax({
- type: method,
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- };
-});
-
-jQuery.extend({
-
- getScript: function( url, callback ) {
- return jQuery.get(url, null, callback, "script");
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get(url, data, callback, "json");
- },
-
- ajaxSetup: function( settings ) {
- jQuery.extend( true, jQuery.ajaxSettings, settings );
- return this;
- },
-
- ajaxSettings: {
- url: location.href,
- global: true,
- type: "GET",
- contentType: "application/x-www-form-urlencoded",
- processData: true,
- async: true,
- /*
- timeout: 0,
- data: null,
- dataType: null,
- dataTypes: null,
- username: null,
- password: null,
- cache: null,
- traditional: false,
- */
- xhr: function() {
- return new window.XMLHttpRequest();
- },
-
- accepts: {
- xml: "application/xml, text/xml",
- html: "text/html",
- text: "text/plain",
- json: "application/json, text/javascript",
- "*": "*/*"
- },
-
- contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
- },
-
- // Prefilters
- // 1) They are useful to introduce custom dataTypes (see transport/jsonp for an example)
- // 2) These are called:
- // * BEFORE asking for a transport
- // * AFTER param serialization (s.data is a string if s.processData is true)
- // 3) key is the dataType
- // 4) the catchall symbol "*" can be used
- // 5) execution will start with transport dataType and THEN continue down to "*" if needed
- prefilters: {},
-
- // Transports bindings
- // 1) key is the dataType
- // 2) the catchall symbol "*" can be used
- // 3) selection will start with transport dataType and THEN go to "*" if needed
- transports: {},
-
- // List of data converters
- // 1) key format is "source_type destination_type" (a single space in-between)
- // 2) the catchall symbol "*" can be used for source_type
- converters: {
-
- // Convert anything to text
- "* text": window.String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- }
- },
-
- // Main method
- // (s is used internally)
- ajax: function( url , options , s ) {
-
- // Handle varargs
- if ( arguments.length === 1 ) {
- options = url;
- url = options ? options.url : undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- // Get the url if provided separately
- options.url = url || options.url;
-
- // Create the final options object
- s = jQuery.extend( true , {} , jQuery.ajaxSettings , options );
-
- // We force the original context
- // (plain objects used as context get extended)
- s.context = options.context;
-
- var // jQuery lists
- jQuery_lastModified = jQuery.lastModified,
- jQuery_etag = jQuery.etag,
- // Callbacks contexts
- callbackContext = s.context || s,
- globalEventContext = s.context ? jQuery( s.context ) : jQuery.event,
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery._Deferred(),
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
- // Headers (they are sent all at once)
- requestHeaders = {},
- // Response headers
- responseHeadersString,
- responseHeaders,
- // transport
- transport,
- // timeout handle
- timeoutTimer,
- // Cross-domain detection vars
- loc = document.location,
- parts,
- // The jXHR state
- state = 0,
- // Loop variable
- i,
- // Fake xhr
- jXHR = {
-
- readyState: 0,
-
- // Caches the header
- setRequestHeader: function(name,value) {
- if ( state === 0 ) {
- requestHeaders[ name.toLowerCase() ] = value;
- }
- return this;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Builds headers hashtable if needed
- // (match is used internally)
- getResponseHeader: function( key , match ) {
-
- if ( state !== 2 ) {
- return null;
- }
-
- if ( responseHeaders === undefined ) {
-
- responseHeaders = {};
-
- if ( typeof responseHeadersString === "string" ) {
-
- while( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
- }
- }
- }
- return responseHeaders[ key.toLowerCase() ];
- },
-
- // Cancel the request
- abort: function( statusText ) {
- if ( transport && state !== 2 ) {
- transport.abort( statusText || "abort" );
- done( 0 , statusText );
- }
- return this;
- }
- };
-
- // Callback for when everything is done
- // It is defined here because jslint complains if it is declared
- // at the end of the function (which would be more logical and readable)
- function done( status , statusText , response , headers) {
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Set readyState
- jXHR.readyState = status ? 4 : 0;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- clearTimeout(timeoutTimer);
- }
-
- var // Reference url
- url = s.url,
- // and ifModified status
- ifModified = s.ifModified,
-
- // Is it a success?
- isSuccess = 0,
- // Stored success
- success,
- // Stored error
- error;
-
- // If successful, handle type chaining
- if ( status >= 200 && status < 300 || status === 304 ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
-
- var lastModified = jXHR.getResponseHeader("Last-Modified"),
- etag = jXHR.getResponseHeader("Etag");
-
- if (lastModified) {
- jQuery_lastModified[ s.url ] = lastModified;
- }
- if (etag) {
- jQuery_etag[ s.url ] = etag;
- }
- }
-
- // If not modified
- if ( status === 304 ) {
-
- // Set the statusText accordingly
- statusText = "notmodified";
- // Mark as a success
- isSuccess = 1;
-
- // If we have data
- } else {
-
- // Set the statusText accordingly
- statusText = "success";
-
- // Chain data conversions and determine the final value
- // (if an exception is thrown in the process, it'll be notified as an error)
- try {
-
- var i,
- // Current dataType
- current,
- // Previous dataType
- prev,
- // Conversion function
- conv,
- // Conversion functions (when text is used in-between)
- conv1,
- conv2,
- // Local references to dataTypes & converters
- dataTypes = s.dataTypes,
- converters = s.converters,
- // DataType to responseXXX field mapping
- responses = {
- "xml": "XML",
- "text": "Text"
- };
-
- // For each dataType in the chain
- for( i = 0 ; i < dataTypes.length ; i++ ) {
-
- current = dataTypes[ i ];
-
- // If a responseXXX field for this dataType exists
- // and if it hasn't been set yet
- if ( responses[ current ] ) {
- // Set it
- jXHR[ "response" + responses[ current ] ] = response;
- // Mark it as set
- responses[ current ] = 0;
- }
-
- // If this is not the first element
- if ( i ) {
-
- // Get the dataType to convert from
- prev = dataTypes[ i - 1 ];
-
- // If no catch-all and dataTypes are actually different
- if ( prev !== "*" && current !== "*" && prev !== current ) {
-
- // Get the converter
- conv = converters[ prev + " " + current ] ||
- converters[ "* " + current ];
-
- conv1 = conv2 = 0;
-
- // If there is no direct converter and none of the dataTypes is text
- if ( ! conv && prev !== "text" && current !== "text" ) {
- // Try with text in-between
- conv1 = converters[ prev + " text" ] || converters[ "* text" ];
- conv2 = converters[ "text " + current ];
- // Revert back to a single converter
- // if one of the converter is an equivalence
- if ( conv1 === true ) {
- conv = conv2;
- } else if ( conv2 === true ) {
- conv = conv1;
- }
- }
- // If we found no converter, dispatch an error
- if ( ! ( conv || conv1 && conv2 ) ) {
- throw conversion;
- }
- // If found converter is not an equivalence
- if ( conv !== true ) {
- // Convert with 1 or 2 converters accordingly
- response = conv ? conv( response ) : conv2( conv1( response ) );
- }
- }
- // If it is the first element of the chain
- // and we have a dataFilter
- } else if ( s.dataFilter ) {
- // Apply the dataFilter
- response = s.dataFilter( response , current );
- // Get dataTypes again in case the filter changed them
- dataTypes = s.dataTypes;
- }
- }
- // End of loop
-
- // We have a real success
- success = response;
- isSuccess = 1;
-
- // If an exception was thrown
- } catch(e) {
-
- // We have a parsererror
- statusText = "parsererror";
- error = "" + e;
-
- }
- }
-
- // if not success, mark it as an error
- } else {
-
- error = statusText = statusText || "error";
-
- // Set responseText if needed
- if ( response ) {
- jXHR.responseText = response;
- }
- }
-
- // Set data for the fake xhr object
- jXHR.status = status;
- jXHR.statusText = statusText;
-
- // Success/Error
- if ( isSuccess ) {
- deferred.fire( callbackContext , [ success , statusText , jXHR ] );
- } else {
- deferred.fireReject( callbackContext , [ jXHR , statusText , error ] );
- }
-
- // Status-dependent callbacks
- jXHR.statusCode( statusCode );
-
- if ( s.global ) {
- globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ) ,
- [ jXHR , s , isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fire( callbackContext, [ jXHR , statusText ] );
-
- if ( s.global ) {
- globalEventContext.trigger( "ajaxComplete" , [ jXHR , s] );
- // Handle the global AJAX counter
- if ( ! --jQuery.active ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- // Attach deferreds
- deferred.promise( jXHR );
- jXHR.success = jXHR.done;
- jXHR.error = jXHR.fail;
- jXHR.complete = completeDeferred.done;
-
- // Status-dependent callbacks
- jXHR.statusCode = function( map ) {
- if ( map ) {
- var resolved = jXHR.isResolved(),
- tmp;
- if ( resolved || jXHR.isRejected() ) {
- tmp = map[ jXHR.status ];
- if ( tmp ) {
- if ( map === statusCode ) {
- delete statusCode[ jXHR.status ];
- }
- jXHR[ resolved ? "done" : "fail" ]( tmp );
- }
- } else {
- for( tmp in map ) {
- statusCode[ tmp ] = [ statusCode[ tmp ] , map[ tmp ] ];
- }
- }
- }
- return this;
- };
-
- // Remove hash character (#7531: and string promotion)
- s.url = ( "" + s.url ).replace( rhash , "" );
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = ! rnoContent.test( s.type );
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( /\s+/ );
-
- // Determine if a cross-domain request is in order
- if ( ! s.crossDomain ) {
- parts = rurl.exec( s.url.toLowerCase() );
- s.crossDomain = !!(
- parts &&
- ( parts[ 1 ] && parts[ 1 ] != loc.protocol ||
- parts[ 2 ] != loc.hostname ||
- ( parts[ 3 ] || 80 ) != ( loc.port || 80 ) )
- );
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data != "string" ) {
- s.data = jQuery.param( s.data , s.traditional );
- }
-
- // Get transport
- transport = jQuery.ajaxPrefilter( s , options ).ajaxTransport( s );
-
- // Watch for a new set of requests
- if ( s.global && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // If no transport, we auto-abort
- if ( ! transport ) {
-
- done( 0 , "transport not found" );
- jXHR = false;
-
- } else {
-
- // More options handling for requests with no content
- if ( ! s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
- }
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
-
- var ts = jQuery.now(),
- // try replacing _= if it is there
- ret = s.url.replace( rts , "$1_=" + ts );
-
- // if nothing was replaced, add timestamp to the end
- s.url = ret + ( (ret == s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "");
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- requestHeaders[ "content-type" ] = s.contentType;
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery_lastModified[ s.url ] ) {
- requestHeaders[ "if-modified-since" ] = jQuery_lastModified[ s.url ];
- }
- if ( jQuery_etag[ s.url ] ) {
- requestHeaders[ "if-none-match" ] = jQuery_etag[ s.url ];
- }
- }
-
- // Set the Accepts header for the server, depending on the dataType
- requestHeaders.accept = s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
- s.accepts[ s.dataTypes[ 0 ] ] + ( s.dataTypes[ 0 ] !== "*" ? ", */*; q=0.01" : "" ) :
- s.accepts[ "*" ];
-
- // Check for headers option
- for ( i in s.headers ) {
- requestHeaders[ i.toLowerCase() ] = s.headers[ i ];
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend && ( s.beforeSend.call( callbackContext , jXHR , s ) === false || state === 2 ) ) {
-
- // Abort if not done already
- done( 0 , "abort" );
- jXHR = false;
-
- } else {
-
- // Set state as sending
- state = 1;
- jXHR.readyState = 1;
-
- // Install callbacks on deferreds
- for ( i in { success:1, error:1, complete:1 } ) {
- jXHR[ i ]( s[ i ] );
- }
-
- // Send global event
- if ( s.global ) {
- globalEventContext.trigger( "ajaxSend" , [ jXHR , s ] );
- }
-
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = setTimeout(function(){
- jXHR.abort( "timeout" );
- }, s.timeout);
- }
-
- // Try to send
- try {
- transport.send(requestHeaders, done);
- } catch (e) {
- // Propagate exception as error if not done
- if ( status === 1 ) {
-
- done(0, "error", "" + e);
- jXHR = false;
-
- // Simply rethrow otherwise
- } else {
- jQuery.error(e);
- }
- }
- }
- }
-
- return jXHR;
- },
-
- // Serialize an array of form elements or a set of
- // key/values into a query string
- param: function( a, traditional ) {
- var s = [],
- add = function( key, value ) {
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction(value) ? value() : value;
- s[ s.length ] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray(a) || a.jquery ) {
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- });
-
- } else {
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( var prefix in a ) {
- buildParams( prefix, a[prefix], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join("&").replace(r20, "+");
- }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
- if ( jQuery.isArray(obj) && obj.length ) {
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
- // If array item is non-scalar (array or object), encode its
- // numeric index to resolve deserialization ambiguity issues.
- // Note that rack (as of 1.0.0) can't currently deserialize
- // nested arrays properly, and attempting to do so may cause
- // a server error. Possible fixes are to modify rack's
- // deserialization algorithm or to provide an option or flag
- // to force array serialization to be shallow.
- buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
- }
- });
-
- } else if ( !traditional && obj != null && typeof obj === "object" ) {
- // If we see an array here, it is empty and should be treated as an empty
- // object
- if ( jQuery.isArray( obj ) || jQuery.isEmptyObject( obj ) ) {
- add( prefix, "" );
-
- // Serialize object item.
- } else {
- jQuery.each( obj, function( k, v ) {
- buildParams( prefix + "[" + k + "]", v, traditional, add );
- });
- }
-
- } else {
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {}
-
-});
-
-//Execute or select from functions in a given structure of options
-function ajax_selectOrExecute( structure , s ) {
-
- var dataTypes = s.dataTypes,
- transportDataType,
- list,
- selected,
- i,
- length,
- checked = {},
- flag,
- noSelect = structure !== "transports";
-
- function initSearch( dataType ) {
-
- flag = transportDataType !== dataType && ! checked[ dataType ];
-
- if ( flag ) {
-
- checked[ dataType ] = 1;
- transportDataType = dataType;
- list = s[ structure ][ dataType ];
- i = -1;
- length = list ? list.length : 0 ;
- }
-
- return flag;
- }
-
- initSearch( dataTypes[ 0 ] );
-
- for ( i = 0 ; ( noSelect || ! selected ) && i <= length ; i++ ) {
-
- if ( i === length ) {
-
- initSearch( "*" );
-
- } else {
-
- selected = list[ i ]( s , determineDataType );
-
- // If we got redirected to another dataType
- // Search there (if not in progress or already tried)
- if ( typeof( selected ) === "string" &&
- initSearch( selected ) ) {
-
- dataTypes.unshift( selected );
- selected = 0;
- }
- }
- }
-
- return noSelect ? jQuery : selected;
-}
-
-// Add an element to one of the structures in ajaxSettings
-function ajax_addElement( structure , args ) {
-
- var i,
- start = 0,
- length = args.length,
- dataTypes = [ "*" ],
- dLength = 1,
- dataType,
- functors = [],
- first,
- append,
- list;
-
- if ( length ) {
-
- first = jQuery.type( args[ 0 ] );
-
- if ( first === "object" ) {
- return ajax_selectOrExecute( structure , args[ 0 ] );
- }
-
- structure = jQuery.ajaxSettings[ structure ];
-
- if ( first !== "function" ) {
-
- dataTypes = args[ 0 ].toLowerCase().split(/\s+/);
- dLength = dataTypes.length;
- start = 1;
-
- }
-
- if ( dLength && start < length ) {
-
- functors = sliceFunc.call( args , start );
-
- for( i = 0 ; i < dLength ; i++ ) {
-
- dataType = dataTypes[ i ];
-
- first = /^\+/.test( dataType );
-
- if (first) {
- dataType = dataType.substr(1);
- }
-
- if ( dataType !== "" ) {
-
- append = Array.prototype[ first ? "unshift" : "push" ];
- list = structure[ dataType ] = structure[ dataType ] || [];
- append.apply( list , functors );
- }
- }
- }
- }
-
- return jQuery;
-}
-
-// Install prefilter & transport methods
-jQuery.each( [ "Prefilter" , "Transport" ] , function( _ , name ) {
- _ = name.toLowerCase() + "s";
- jQuery[ "ajax" + name ] = function() {
- return ajax_addElement( _ , arguments );
- };
-} );
-
-// Utility function that handles dataType when response is received
-// (for those transports that can give text or xml responses)
-function determineDataType( s , ct , text , xml ) {
-
- var contents = s.contents,
- type,
- regexp,
- dataTypes = s.dataTypes,
- transportDataType = dataTypes[0],
- response;
-
- // Auto (xml, json, script or text determined given headers)
- if ( transportDataType === "*" ) {
-
- for ( type in contents ) {
- if ( ( regexp = contents[ type ] ) && regexp.test( ct ) ) {
- transportDataType = dataTypes[0] = type;
- break;
- }
- }
- }
-
- // xml and parsed as such
- if ( transportDataType === "xml" &&
- xml &&
- xml.documentElement /* #4958 */ ) {
-
- response = xml;
-
- // Text response was provided
- } else {
-
- response = text;
-
- // If it's not really text, defer to converters
- if ( transportDataType !== "text" ) {
- dataTypes.unshift( "text" );
- }
-
- }
-
- return response;
-}
-
-/*
- * Create the request object; Microsoft failed to properly
- * implement the XMLHttpRequest in IE7 (can't request local files),
- * so we use the ActiveXObject when it is available
- * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
- * we need a fallback.
- */
-if ( window.ActiveXObject ) {
- jQuery.ajaxSettings.xhr = function() {
- if ( window.location.protocol !== "file:" ) {
- try {
- return new window.XMLHttpRequest();
- } catch( xhrError ) {}
- }
-
- try {
- return new window.ActiveXObject("Microsoft.XMLHTTP");
- } catch( activeError ) {}
- };
-}
-
-var testXHR = jQuery.ajaxSettings.xhr();
-
-// Does this browser support XHR requests?
-jQuery.support.ajax = !!testXHR;
-
-// Does this browser support crossDomain XHR requests
-jQuery.support.cors = testXHR && "withCredentials" in testXHR;
-
-
-
-
-var jsc = jQuery.now(),
- jsre = /(\=)(?:\?|%3F)(&|$)|()(?:\?\?|%3F%3F)()/i,
- rquery_jsonp = /\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- return "jsonp" + jsc++;
- }
-
-// Normalize jsonp queries
-// 1) put callback parameter in url or data
-// 2) sneakily ensure transportDataType is always jsonp for jsonp requests
-}).ajaxPrefilter("json jsonp", function(s, originalSettings) {
-
- if ( s.dataTypes[ 0 ] === "jsonp" ||
- originalSettings.jsonp ||
- originalSettings.jsonpCallback ||
- jsre.test(s.url) ||
- typeof(s.data) === "string" && jsre.test(s.data) ) {
-
- var jsonpCallback = s.jsonpCallback =
- jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
- url = s.url.replace(jsre, "$1" + jsonpCallback + "$2"),
- data = s.url === url && typeof(s.data) === "string" ? s.data.replace(jsre, "$1" + jsonpCallback + "$2") : s.data;
-
- if ( url === s.url && data === s.data ) {
- url += (rquery_jsonp.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
- }
-
- s.url = url;
- s.data = data;
- s.dataTypes[ 0 ] = "jsonp";
- }
-
-// Bind transport to jsonp dataType
-}).ajaxTransport("jsonp", function(s) {
-
- // Put callback in place
- var responseContainer,
- jsonpCallback = s.jsonpCallback,
- previous = window[ jsonpCallback ];
-
- window [ jsonpCallback ] = function( response ) {
- responseContainer = [response];
- };
-
- s.complete = [function() {
-
- // Set callback back to previous value
- window[ jsonpCallback ] = previous;
-
- // Call if it was a function and we have a response
- if ( previous) {
- if ( responseContainer && jQuery.isFunction ( previous ) ) {
- window[ jsonpCallback ] ( responseContainer[0] );
- }
- } else {
- // else, more memory leak avoidance
- try{ delete window[ jsonpCallback ]; } catch(e){}
- }
-
- }, s.complete ];
-
- // Sneakily ensure this will be handled as json
- s.dataTypes[ 0 ] = "json";
-
- // Use data converter to retrieve json after script execution
- s.converters["script json"] = function() {
- if ( ! responseContainer ) {
- jQuery.error( jsonpCallback + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // Delegate to script transport
- return "script";
-});
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
-
- accepts: {
- script: "text/javascript, application/javascript"
- },
-
- contents: {
- script: /javascript/
- },
-
- converters: {
- "text script": jQuery.globalEval
- }
-
-// Bind script tag hack transport
-}).ajaxTransport("script", function(s) {
-
- // Handle cache special case
- if ( s.cache === undefined ) {
- s.cache = false;
- }
-
- // This transport only deals with cross domain get requests
- if ( s.crossDomain && s.async && ( s.type === "GET" || ! s.data ) ) {
-
- s.global = false;
-
- var script,
- head = document.getElementsByTagName("head")[0] || document.documentElement;
-
- return {
-
- send: function(_, callback) {
-
- script = document.createElement("script");
-
- script.async = "async";
-
- if ( s.scriptCharset ) {
- script.charset = s.scriptCharset;
- }
-
- script.src = s.url;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function( _ , isAbort ) {
-
- if ( ! script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = null;
-
- // Remove the script
- if ( head && script.parentNode ) {
- head.removeChild( script );
- }
-
- // Dereference the script
- script = 0;
-
- // Callback if not abort
- if ( ! isAbort ) {
- callback( 200, "success" );
- }
- }
- };
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709 and #4378).
- head.insertBefore( script, head.firstChild );
- },
-
- abort: function() {
- if ( script ) {
- script.onload(0,1);
- }
- }
- };
- }
-});
-
-
-
-
-var // Next active xhr id
- xhrId = jQuery.now(),
-
- // active xhrs
- xhrs = {},
-
- // #5280: see below
- xhrUnloadAbortInstalled;
-
-
-jQuery.ajaxTransport( function( s , determineDataType ) {
-
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( ! s.crossDomain || jQuery.support.cors ) {
-
- var callback;
-
- return {
-
- send: function(headers, complete) {
-
- // #5280: we need to abort on unload or IE will keep connections alive
- if ( ! xhrUnloadAbortInstalled ) {
-
- xhrUnloadAbortInstalled = 1;
-
- jQuery(window).bind( "unload" , function() {
-
- // Abort all pending requests
- jQuery.each(xhrs, function(_, xhr) {
- if ( xhr.onreadystatechange ) {
- xhr.onreadystatechange( 1 );
- }
- });
-
- });
- }
-
- // Get a new xhr
- var xhr = s.xhr(),
- handle;
-
- // Open the socket
- // Passing null username, generates a login popup on Opera (#2865)
- if ( s.username ) {
- xhr.open(s.type, s.url, s.async, s.username, s.password);
- } else {
- xhr.open(s.type, s.url, s.async);
- }
-
- // Requested-With header
- // Not set for crossDomain requests with no content
- // (see why at http://trac.dojotoolkit.org/ticket/9486)
- // Won't change header if already provided
- if ( ! ( s.crossDomain && ! s.hasContent ) && ! headers["x-requested-with"] ) {
- headers["x-requested-with"] = "XMLHttpRequest";
- }
-
- // Need an extra try/catch for cross domain requests in Firefox 3
- try {
-
- jQuery.each(headers, function(key,value) {
- xhr.setRequestHeader(key,value);
- });
-
- } catch(_) {}
-
- // Do send the request
- try {
- xhr.send( ( s.hasContent && s.data ) || null );
- } catch(e) {
- complete(0, "error", "" + e);
- return;
- }
-
- // Listener
- callback = function( _ , isAbort ) {
-
- // Was never called and is aborted or complete
- if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
- // Only called once
- callback = 0;
-
- // Do not keep as active anymore
- // and store back into pool
- if (handle) {
- xhr.onreadystatechange = jQuery.noop;
- delete xhrs[ handle ];
- }
-
- // If it's an abort
- if ( isAbort ) {
-
- // Abort it manually if needed
- if ( xhr.readyState !== 4 ) {
- xhr.abort();
- }
- } else {
-
- // Get info
- var status = xhr.status,
- statusText,
- response,
- responseHeaders = xhr.getAllResponseHeaders();
-
- try { // Firefox throws an exception when accessing statusText for faulty cross-domain requests
-
- statusText = xhr.statusText;
-
- } catch( e ) {
-
- statusText = ""; // We normalize with Webkit giving an empty statusText
-
- }
-
- // Filter status for non standard behaviours
- // (so many they seem to be the actual "standard")
- status =
- // Opera returns 0 when it should be 304
- // Webkit returns 0 for failing cross-domain no matter the real status
- status === 0 ?
- (
- ! s.crossDomain || statusText ? // Webkit, Firefox: filter out faulty cross-domain requests
- (
- responseHeaders ? // Opera: filter out real aborts #6060
- 304
- :
- 0
- )
- :
- 302 // We assume 302 but could be anything cross-domain related
- )
- :
- (
- status == 1223 ? // IE sometimes returns 1223 when it should be 204 (see #1450)
- 204
- :
- status
- );
-
- // Guess response & update dataType accordingly
- response =
- determineDataType(
- s,
- xhr.getResponseHeader("content-type"),
- xhr.responseText,
- xhr.responseXML );
-
- // Call complete
- complete(status,statusText,response,responseHeaders);
- }
- }
- };
-
- // if we're in sync mode
- // or it's in cache and has been retrieved directly (IE6 & IE7)
- // we need to manually fire the callback
- if ( ! s.async || xhr.readyState === 4 ) {
-
- callback();
-
- } else {
-
- // Add to list of active xhrs
- handle = xhrId++;
- xhrs[ handle ] = xhr;
- xhr.onreadystatechange = callback;
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback(0,1);
- }
- }
- };
- }
-});
-
-
-
-
-var elemdisplay = {},
- rfxtypes = /^(?:toggle|show|hide)$/,
- rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
- timerId,
- fxAttrs = [
- // height animations
- [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
- // width animations
- [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
- // opacity animations
- [ "opacity" ]
- ];
-
-jQuery.fn.extend({
- show: function( speed, easing, callback ) {
- var elem, display;
-
- if ( speed || speed === 0 ) {
- return this.animate( genFx("show", 3), speed, easing, callback);
-
- } else {
- for ( var i = 0, j = this.length; i < j; i++ ) {
- elem = this[i];
- display = elem.style.display;
-
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !jQuery.data(elem, "olddisplay") && display === "none" ) {
- display = elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( display === "" && jQuery.css( elem, "display" ) === "none" ) {
- jQuery.data(elem, "olddisplay", defaultDisplay(elem.nodeName));
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( i = 0; i < j; i++ ) {
- elem = this[i];
- display = elem.style.display;
-
- if ( display === "" || display === "none" ) {
- elem.style.display = jQuery.data(elem, "olddisplay") || "";
- }
- }
-
- return this;
- }
- },
-
- hide: function( speed, easing, callback ) {
- if ( speed || speed === 0 ) {
- return this.animate( genFx("hide", 3), speed, easing, callback);
-
- } else {
- for ( var i = 0, j = this.length; i < j; i++ ) {
- var display = jQuery.css( this[i], "display" );
-
- if ( display !== "none" && !jQuery.data( this[i], "olddisplay" ) ) {
- jQuery.data( this[i], "olddisplay", display );
- }
- }
-
- // Set the display of the elements in a second loop
- // to avoid the constant reflow
- for ( i = 0; i < j; i++ ) {
- this[i].style.display = "none";
- }
-
- return this;
- }
- },
-
- // Save the old toggle function
- _toggle: jQuery.fn.toggle,
-
- toggle: function( fn, fn2, callback ) {
- var bool = typeof fn === "boolean";
-
- if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
- this._toggle.apply( this, arguments );
-
- } else if ( fn == null || bool ) {
- this.each(function() {
- var state = bool ? fn : jQuery(this).is(":hidden");
- jQuery(this)[ state ? "show" : "hide" ]();
- });
-
- } else {
- this.animate(genFx("toggle", 3), fn, fn2, callback);
- }
-
- return this;
- },
-
- fadeTo: function( speed, to, easing, callback ) {
- return this.filter(":hidden").css("opacity", 0).show().end()
- .animate({opacity: to}, speed, easing, callback);
- },
-
- animate: function( prop, speed, easing, callback ) {
- var optall = jQuery.speed(speed, easing, callback);
-
- if ( jQuery.isEmptyObject( prop ) ) {
- return this.each( optall.complete );
- }
-
- return this[ optall.queue === false ? "each" : "queue" ](function() {
- // XXX 'this' does not always have a nodeName when running the
- // test suite
-
- var opt = jQuery.extend({}, optall), p,
- isElement = this.nodeType === 1,
- hidden = isElement && jQuery(this).is(":hidden"),
- self = this;
-
- for ( p in prop ) {
- var name = jQuery.camelCase( p );
-
- if ( p !== name ) {
- prop[ name ] = prop[ p ];
- delete prop[ p ];
- p = name;
- }
-
- if ( prop[p] === "hide" && hidden || prop[p] === "show" && !hidden ) {
- return opt.complete.call(this);
- }
-
- if ( isElement && ( p === "height" || p === "width" ) ) {
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE does not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height
- // animated
- if ( jQuery.css( this, "display" ) === "inline" &&
- jQuery.css( this, "float" ) === "none" ) {
- if ( !jQuery.support.inlineBlockNeedsLayout ) {
- this.style.display = "inline-block";
-
- } else {
- var display = defaultDisplay(this.nodeName);
-
- // inline-level elements accept inline-block;
- // block-level elements need to be inline with layout
- if ( display === "inline" ) {
- this.style.display = "inline-block";
-
- } else {
- this.style.display = "inline";
- this.style.zoom = 1;
- }
- }
- }
- }
-
- if ( jQuery.isArray( prop[p] ) ) {
- // Create (if needed) and add to specialEasing
- (opt.specialEasing = opt.specialEasing || {})[p] = prop[p][1];
- prop[p] = prop[p][0];
- }
- }
-
- if ( opt.overflow != null ) {
- this.style.overflow = "hidden";
- }
-
- opt.curAnim = jQuery.extend({}, prop);
-
- jQuery.each( prop, function( name, val ) {
- var e = new jQuery.fx( self, opt, name );
-
- if ( rfxtypes.test(val) ) {
- e[ val === "toggle" ? hidden ? "show" : "hide" : val ]( prop );
-
- } else {
- var parts = rfxnum.exec(val),
- start = e.cur() || 0;
-
- if ( parts ) {
- var end = parseFloat( parts[2] ),
- unit = parts[3] || "px";
-
- // We need to compute starting value
- if ( unit !== "px" ) {
- jQuery.style( self, name, (end || 1) + unit);
- start = ((end || 1) / e.cur()) * start;
- jQuery.style( self, name, start + unit);
- }
-
- // If a +=/-= token was provided, we're doing a relative animation
- if ( parts[1] ) {
- end = ((parts[1] === "-=" ? -1 : 1) * end) + start;
- }
-
- e.custom( start, end, unit );
-
- } else {
- e.custom( start, val, "" );
- }
- }
- });
-
- // For JS strict compliance
- return true;
- });
- },
-
- stop: function( clearQueue, gotoEnd ) {
- var timers = jQuery.timers;
-
- if ( clearQueue ) {
- this.queue([]);
- }
-
- this.each(function() {
- // go in reverse order so anything added to the queue during the loop is ignored
- for ( var i = timers.length - 1; i >= 0; i-- ) {
- if ( timers[i].elem === this ) {
- if (gotoEnd) {
- // force the next step to be the last
- timers[i](true);
- }
-
- timers.splice(i, 1);
- }
- }
- });
-
- // start the next in the queue if the last step wasn't forced
- if ( !gotoEnd ) {
- this.dequeue();
- }
-
- return this;
- }
-
-});
-
-function genFx( type, num ) {
- var obj = {};
-
- jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
- obj[ this ] = type;
- });
-
- return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
- slideDown: genFx("show", 1),
- slideUp: genFx("hide", 1),
- slideToggle: genFx("toggle", 1),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-});
-
-jQuery.extend({
- speed: function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
- opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
-
- // Queueing
- opt.old = opt.complete;
- opt.complete = function() {
- if ( opt.queue !== false ) {
- jQuery(this).dequeue();
- }
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
- };
-
- return opt;
- },
-
- easing: {
- linear: function( p, n, firstNum, diff ) {
- return firstNum + diff * p;
- },
- swing: function( p, n, firstNum, diff ) {
- return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
- }
- },
-
- timers: [],
-
- fx: function( elem, options, prop ) {
- this.options = options;
- this.elem = elem;
- this.prop = prop;
-
- if ( !options.orig ) {
- options.orig = {};
- }
- }
-
-});
-
-jQuery.fx.prototype = {
- // Simple function for setting a style value
- update: function() {
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
- },
-
- // Get the current size
- cur: function() {
- if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
- return this.elem[ this.prop ];
- }
-
- var r = parseFloat( jQuery.css( this.elem, this.prop ) );
- return r || 0;
- },
-
- // Start an animation from one number to another
- custom: function( from, to, unit ) {
- var self = this,
- fx = jQuery.fx;
-
- this.startTime = jQuery.now();
- this.start = from;
- this.end = to;
- this.unit = unit || this.unit || "px";
- this.now = this.start;
- this.pos = this.state = 0;
-
- function t( gotoEnd ) {
- return self.step(gotoEnd);
- }
-
- t.elem = this.elem;
-
- if ( t() && jQuery.timers.push(t) && !timerId ) {
- timerId = setInterval(fx.tick, fx.interval);
- }
- },
-
- // Simple 'show' function
- show: function() {
- // Remember where we started, so that we can go back to it later
- this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
- this.options.show = true;
-
- // Begin the animation
- // Make sure that we start at a small width/height to avoid any
- // flash of content
- this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
-
- // Start by showing the element
- jQuery( this.elem ).show();
- },
-
- // Simple 'hide' function
- hide: function() {
- // Remember where we started, so that we can go back to it later
- this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
- this.options.hide = true;
-
- // Begin the animation
- this.custom(this.cur(), 0);
- },
-
- // Each step of an animation
- step: function( gotoEnd ) {
- var t = jQuery.now(), done = true;
-
- if ( gotoEnd || t >= this.options.duration + this.startTime ) {
- this.now = this.end;
- this.pos = this.state = 1;
- this.update();
-
- this.options.curAnim[ this.prop ] = true;
-
- for ( var i in this.options.curAnim ) {
- if ( this.options.curAnim[i] !== true ) {
- done = false;
- }
- }
-
- if ( done ) {
- // Reset the overflow
- if ( this.options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
- var elem = this.elem,
- options = this.options;
-
- jQuery.each( [ "", "X", "Y" ], function (index, value) {
- elem.style[ "overflow" + value ] = options.overflow[index];
- } );
- }
-
- // Hide the element if the "hide" operation was done
- if ( this.options.hide ) {
- jQuery(this.elem).hide();
- }
-
- // Reset the properties, if the item has been hidden or shown
- if ( this.options.hide || this.options.show ) {
- for ( var p in this.options.curAnim ) {
- jQuery.style( this.elem, p, this.options.orig[p] );
- }
- }
-
- // Execute the complete function
- this.options.complete.call( this.elem );
- }
-
- return false;
-
- } else {
- var n = t - this.startTime;
- this.state = n / this.options.duration;
-
- // Perform the easing function, defaults to swing
- var specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop];
- var defaultEasing = this.options.easing || (jQuery.easing.swing ? "swing" : "linear");
- this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration);
- this.now = this.start + ((this.end - this.start) * this.pos);
-
- // Perform the next step of the animation
- this.update();
- }
-
- return true;
- }
-};
-
-jQuery.extend( jQuery.fx, {
- tick: function() {
- var timers = jQuery.timers;
-
- for ( var i = 0; i < timers.length; i++ ) {
- if ( !timers[i]() ) {
- timers.splice(i--, 1);
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- },
-
- interval: 13,
-
- stop: function() {
- clearInterval( timerId );
- timerId = null;
- },
-
- speeds: {
- slow: 600,
- fast: 200,
- // Default speed
- _default: 400
- },
-
- step: {
- opacity: function( fx ) {
- jQuery.style( fx.elem, "opacity", fx.now );
- },
-
- _default: function( fx ) {
- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
- fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
- } else {
- fx.elem[ fx.prop ] = fx.now;
- }
- }
- }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep(jQuery.timers, function( fn ) {
- return elem === fn.elem;
- }).length;
- };
-}
-
-function defaultDisplay( nodeName ) {
- if ( !elemdisplay[ nodeName ] ) {
- var elem = jQuery("<" + nodeName + ">").appendTo("body"),
- display = elem.css("display");
-
- elem.remove();
-
- if ( display === "none" || display === "" ) {
- display = "block";
- }
-
- elemdisplay[ nodeName ] = display;
- }
-
- return elemdisplay[ nodeName ];
-}
-
-
-
-
-var rtable = /^t(?:able|d|h)$/i,
- rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
- jQuery.fn.offset = function( options ) {
- var elem = this[0], box;
-
- if ( options ) {
- return this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- if ( !elem || !elem.ownerDocument ) {
- return null;
- }
-
- if ( elem === elem.ownerDocument.body ) {
- return jQuery.offset.bodyOffset( elem );
- }
-
- try {
- box = elem.getBoundingClientRect();
- } catch(e) {}
-
- var doc = elem.ownerDocument,
- docElem = doc.documentElement;
-
- // Make sure we're not dealing with a disconnected DOM node
- if ( !box || !jQuery.contains( docElem, elem ) ) {
- return box || { top: 0, left: 0 };
- }
-
- var body = doc.body,
- win = getWindow(doc),
- clientTop = docElem.clientTop || body.clientTop || 0,
- clientLeft = docElem.clientLeft || body.clientLeft || 0,
- scrollTop = (win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop ),
- scrollLeft = (win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft),
- top = box.top + scrollTop - clientTop,
- left = box.left + scrollLeft - clientLeft;
-
- return { top: top, left: left };
- };
-
-} else {
- jQuery.fn.offset = function( options ) {
- var elem = this[0];
-
- if ( options ) {
- return this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- if ( !elem || !elem.ownerDocument ) {
- return null;
- }
-
- if ( elem === elem.ownerDocument.body ) {
- return jQuery.offset.bodyOffset( elem );
- }
-
- jQuery.offset.initialize();
-
- var computedStyle,
- offsetParent = elem.offsetParent,
- prevOffsetParent = elem,
- doc = elem.ownerDocument,
- docElem = doc.documentElement,
- body = doc.body,
- defaultView = doc.defaultView,
- prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
- top = elem.offsetTop,
- left = elem.offsetLeft;
-
- while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
- if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
- break;
- }
-
- computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
- top -= elem.scrollTop;
- left -= elem.scrollLeft;
-
- if ( elem === offsetParent ) {
- top += elem.offsetTop;
- left += elem.offsetLeft;
-
- if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevOffsetParent = offsetParent;
- offsetParent = elem.offsetParent;
- }
-
- if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevComputedStyle = computedStyle;
- }
-
- if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
- top += body.offsetTop;
- left += body.offsetLeft;
- }
-
- if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
- top += Math.max( docElem.scrollTop, body.scrollTop );
- left += Math.max( docElem.scrollLeft, body.scrollLeft );
- }
-
- return { top: top, left: left };
- };
-}
-
-jQuery.offset = {
- initialize: function() {
- var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.css(body, "marginTop") ) || 0,
- html = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
-
- jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } );
-
- container.innerHTML = html;
- body.insertBefore( container, body.firstChild );
- innerDiv = container.firstChild;
- checkDiv = innerDiv.firstChild;
- td = innerDiv.nextSibling.firstChild.firstChild;
-
- this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
- this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
-
- checkDiv.style.position = "fixed";
- checkDiv.style.top = "20px";
-
- // safari subtracts parent border width here which is 5px
- this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);
- checkDiv.style.position = checkDiv.style.top = "";
-
- innerDiv.style.overflow = "hidden";
- innerDiv.style.position = "relative";
-
- this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
-
- this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
-
- body.removeChild( container );
- body = container = innerDiv = checkDiv = table = td = null;
- jQuery.offset.initialize = jQuery.noop;
- },
-
- bodyOffset: function( body ) {
- var top = body.offsetTop,
- left = body.offsetLeft;
-
- jQuery.offset.initialize();
-
- if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {
- top += parseFloat( jQuery.css(body, "marginTop") ) || 0;
- left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
- }
-
- return { top: top, left: left };
- },
-
- setOffset: function( elem, options, i ) {
- var position = jQuery.css( elem, "position" );
-
- // set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- var curElem = jQuery( elem ),
- curOffset = curElem.offset(),
- curCSSTop = jQuery.css( elem, "top" ),
- curCSSLeft = jQuery.css( elem, "left" ),
- calculatePosition = (position === "absolute" && jQuery.inArray('auto', [curCSSTop, curCSSLeft]) > -1),
- props = {}, curPosition = {}, curTop, curLeft;
-
- // need to be able to calculate position if either top or left is auto and position is absolute
- if ( calculatePosition ) {
- curPosition = curElem.position();
- }
-
- curTop = calculatePosition ? curPosition.top : parseInt( curCSSTop, 10 ) || 0;
- curLeft = calculatePosition ? curPosition.left : parseInt( curCSSLeft, 10 ) || 0;
-
- if ( jQuery.isFunction( options ) ) {
- options = options.call( elem, i, curOffset );
- }
-
- if (options.top != null) {
- props.top = (options.top - curOffset.top) + curTop;
- }
- if (options.left != null) {
- props.left = (options.left - curOffset.left) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- }
-};
-
-
-jQuery.fn.extend({
- position: function() {
- if ( !this[0] ) {
- return null;
- }
-
- var elem = this[0],
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent(),
-
- // Get correct offsets
- offset = this.offset(),
- parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
- // Subtract element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
- offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
- // Add offsetParent borders
- parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
- parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
- // Subtract the two offsets
- return {
- top: offset.top - parentOffset.top,
- left: offset.left - parentOffset.left
- };
- },
-
- offsetParent: function() {
- return this.map(function() {
- var offsetParent = this.offsetParent || document.body;
- while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent;
- });
- }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ["Left", "Top"], function( i, name ) {
- var method = "scroll" + name;
-
- jQuery.fn[ method ] = function(val) {
- var elem = this[0], win;
-
- if ( !elem ) {
- return null;
- }
-
- if ( val !== undefined ) {
- // Set the scroll offset
- return this.each(function() {
- win = getWindow( this );
-
- if ( win ) {
- win.scrollTo(
- !i ? val : jQuery(win).scrollLeft(),
- i ? val : jQuery(win).scrollTop()
- );
-
- } else {
- this[ method ] = val;
- }
- });
- } else {
- win = getWindow( elem );
-
- // Return the scroll offset
- return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
- jQuery.support.boxModel && win.document.documentElement[ method ] ||
- win.document.body[ method ] :
- elem[ method ];
- }
- };
-});
-
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ?
- elem :
- elem.nodeType === 9 ?
- elem.defaultView || elem.parentWindow :
- false;
-}
-
-
-
-
-// Create innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function( i, name ) {
-
- var type = name.toLowerCase();
-
- // innerHeight and innerWidth
- jQuery.fn["inner" + name] = function() {
- return this[0] ?
- parseFloat( jQuery.css( this[0], type, "padding" ) ) :
- null;
- };
-
- // outerHeight and outerWidth
- jQuery.fn["outer" + name] = function( margin ) {
- return this[0] ?
- parseFloat( jQuery.css( this[0], type, margin ? "margin" : "border" ) ) :
- null;
- };
-
- jQuery.fn[ type ] = function( size ) {
- // Get window width or height
- var elem = this[0];
- if ( !elem ) {
- return size == null ? null : this;
- }
-
- if ( jQuery.isFunction( size ) ) {
- return this.each(function( i ) {
- var self = jQuery( this );
- self[ type ]( size.call( this, i, self[ type ]() ) );
- });
- }
-
- if ( jQuery.isWindow( elem ) ) {
- // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
- return elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
- elem.document.body[ "client" + name ];
-
- // Get document width or height
- } else if ( elem.nodeType === 9 ) {
- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
- return Math.max(
- elem.documentElement["client" + name],
- elem.body["scroll" + name], elem.documentElement["scroll" + name],
- elem.body["offset" + name], elem.documentElement["offset" + name]
- );
-
- // Get or set width or height on the element
- } else if ( size === undefined ) {
- var orig = jQuery.css( elem, type ),
- ret = parseFloat( orig );
-
- return jQuery.isNaN( ret ) ? orig : ret;
-
- // Set the width or height on the element (default to pixels if value is unitless)
- } else {
- return this.css( type, typeof size === "string" ? size : size + "px" );
- }
- };
-
-});
-
-
-})(window); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.7.2.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.7.2.js
deleted file mode 100644
index 34f10869..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery-1.7.2.js
+++ /dev/null
@@ -1,9404 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.7.2
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Wed Mar 21 12:46:34 2012 -0700
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document,
- navigator = window.navigator,
- location = window.location;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context, rootjQuery );
- },
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$,
-
- // A central reference to the root jQuery(document)
- rootjQuery,
-
- // A simple way to check for HTML strings or ID strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
- // Check if a string has a non-whitespace character in it
- rnotwhite = /\S/,
-
- // Used for trimming whitespace
- trimLeft = /^\s+/,
- trimRight = /\s+$/,
-
- // Match a standalone tag
- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
- // JSON RegExp
- rvalidchars = /^[\],:{}\s]*$/,
- rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
- rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
- rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
- // Useragent RegExp
- rwebkit = /(webkit)[ \/]([\w.]+)/,
- ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
- rmsie = /(msie) ([\w.]+)/,
- rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
- // Matches dashed string for camelizing
- rdashAlpha = /-([a-z]|[0-9])/ig,
- rmsPrefix = /^-ms-/,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return ( letter + "" ).toUpperCase();
- },
-
- // Keep a UserAgent string for use with jQuery.browser
- userAgent = navigator.userAgent,
-
- // For matching the engine and version of the browser
- browserMatch,
-
- // The deferred used on DOM ready
- readyList,
-
- // The ready event handler
- DOMContentLoaded,
-
- // Save a reference to some core methods
- toString = Object.prototype.toString,
- hasOwn = Object.prototype.hasOwnProperty,
- push = Array.prototype.push,
- slice = Array.prototype.slice,
- trim = String.prototype.trim,
- indexOf = Array.prototype.indexOf,
-
- // [[Class]] -> type pairs
- class2type = {};
-
-jQuery.fn = jQuery.prototype = {
- constructor: jQuery,
- init: function( selector, context, rootjQuery ) {
- var match, elem, ret, doc;
-
- // Handle $(""), $(null), or $(undefined)
- if ( !selector ) {
- return this;
- }
-
- // Handle $(DOMElement)
- if ( selector.nodeType ) {
- this.context = this[0] = selector;
- this.length = 1;
- return this;
- }
-
- // The body element only exists once, optimize finding it
- if ( selector === "body" && !context && document.body ) {
- this.context = document;
- this[0] = document.body;
- this.selector = selector;
- this.length = 1;
- return this;
- }
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- // Are we dealing with HTML string or an ID?
- if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = quickExpr.exec( selector );
- }
-
- // Verify a match, and that no context was specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] ) {
- context = context instanceof jQuery ? context[0] : context;
- doc = ( context ? context.ownerDocument || context : document );
-
- // If a single string is passed in and it's a single tag
- // just do a createElement and skip the rest
- ret = rsingleTag.exec( selector );
-
- if ( ret ) {
- if ( jQuery.isPlainObject( context ) ) {
- selector = [ document.createElement( ret[1] ) ];
- jQuery.fn.attr.call( selector, context, true );
-
- } else {
- selector = [ doc.createElement( ret[1] ) ];
- }
-
- } else {
- ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
- selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
- }
-
- return jQuery.merge( this, selector );
-
- // HANDLE: $("#id")
- } else {
- elem = document.getElementById( match[2] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[2] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[0] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || rootjQuery ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return rootjQuery.ready( selector );
- }
-
- if ( selector.selector !== undefined ) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- },
-
- // Start with an empty selector
- selector: "",
-
- // The current version of jQuery being used
- jquery: "1.7.2",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
- toArray: function() {
- return slice.call( this, 0 );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num == null ?
-
- // Return a 'clean' array
- this.toArray() :
-
- // Return just the object
- ( num < 0 ? this[ this.length + num ] : this[ num ] );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems, name, selector ) {
- // Build a new jQuery matched element set
- var ret = this.constructor();
-
- if ( jQuery.isArray( elems ) ) {
- push.apply( ret, elems );
-
- } else {
- jQuery.merge( ret, elems );
- }
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- ret.context = this.context;
-
- if ( name === "find" ) {
- ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
- } else if ( name ) {
- ret.selector = this.selector + "." + name + "(" + selector + ")";
- }
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- ready: function( fn ) {
- // Attach the listeners
- jQuery.bindReady();
-
- // Add the callback
- readyList.add( fn );
-
- return this;
- },
-
- eq: function( i ) {
- i = +i;
- return i === -1 ?
- this.slice( i ) :
- this.slice( i, i + 1 );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ),
- "slice", slice.call(arguments).join(",") );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function( elem, i ) {
- return callback.call( elem, i, elem );
- }));
- },
-
- end: function() {
- return this.prevObject || this.constructor(null);
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: [].sort,
- splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[0] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( length === i ) {
- target = this;
- --i;
- }
-
- for ( ; i < length; i++ ) {
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null ) {
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray(src) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject(src) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend({
- noConflict: function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
- },
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
- // Either a released hold or an DOMready/load event and not yet ready
- if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( !document.body ) {
- return setTimeout( jQuery.ready, 1 );
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.fireWith( document, [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.trigger ) {
- jQuery( document ).trigger( "ready" ).off( "ready" );
- }
- }
- },
-
- bindReady: function() {
- if ( readyList ) {
- return;
- }
-
- readyList = jQuery.Callbacks( "once memory" );
-
- // Catch cases where $(document).ready() is called after the
- // browser event has already occurred.
- if ( document.readyState === "complete" ) {
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- return setTimeout( jQuery.ready, 1 );
- }
-
- // Mozilla, Opera and webkit nightlies currently support this event
- if ( document.addEventListener ) {
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", jQuery.ready, false );
-
- // If IE event model is used
- } else if ( document.attachEvent ) {
- // ensure firing before onload,
- // maybe late but safe also for iframes
- document.attachEvent( "onreadystatechange", DOMContentLoaded );
-
- // A fallback to window.onload, that will always work
- window.attachEvent( "onload", jQuery.ready );
-
- // If IE and not a frame
- // continually check to see if the document is ready
- var toplevel = false;
-
- try {
- toplevel = window.frameElement == null;
- } catch(e) {}
-
- if ( document.documentElement.doScroll && toplevel ) {
- doScrollCheck();
- }
- }
- },
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return jQuery.type(obj) === "function";
- },
-
- isArray: Array.isArray || function( obj ) {
- return jQuery.type(obj) === "array";
- },
-
- isWindow: function( obj ) {
- return obj != null && obj == obj.window;
- },
-
- isNumeric: function( obj ) {
- return !isNaN( parseFloat(obj) ) && isFinite( obj );
- },
-
- type: function( obj ) {
- return obj == null ?
- String( obj ) :
- class2type[ toString.call(obj) ] || "object";
- },
-
- isPlainObject: function( obj ) {
- // Must be an Object.
- // Because of IE, we also have to check the presence of the constructor property.
- // Make sure that DOM nodes and window objects don't pass through, as well
- if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- try {
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call(obj, "constructor") &&
- !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
- return false;
- }
- } catch ( e ) {
- // IE8,9 Will throw exceptions on certain host objects #9897
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
-
- var key;
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- for ( var name in obj ) {
- return false;
- }
- return true;
- },
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- parseJSON: function( data ) {
- if ( typeof data !== "string" || !data ) {
- return null;
- }
-
- // Make sure leading/trailing whitespace is removed (IE can't handle it)
- data = jQuery.trim( data );
-
- // Attempt to parse using the native JSON parser first
- if ( window.JSON && window.JSON.parse ) {
- return window.JSON.parse( data );
- }
-
- // Make sure the incoming data is actual JSON
- // Logic borrowed from http://json.org/json2.js
- if ( rvalidchars.test( data.replace( rvalidescape, "@" )
- .replace( rvalidtokens, "]" )
- .replace( rvalidbraces, "")) ) {
-
- return ( new Function( "return " + data ) )();
-
- }
- jQuery.error( "Invalid JSON: " + data );
- },
-
- // Cross-browser xml parsing
- parseXML: function( data ) {
- if ( typeof data !== "string" || !data ) {
- return null;
- }
- var xml, tmp;
- try {
- if ( window.DOMParser ) { // Standard
- tmp = new DOMParser();
- xml = tmp.parseFromString( data , "text/xml" );
- } else { // IE
- xml = new ActiveXObject( "Microsoft.XMLDOM" );
- xml.async = "false";
- xml.loadXML( data );
- }
- } catch( e ) {
- xml = undefined;
- }
- if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
- },
-
- noop: function() {},
-
- // Evaluates a script in a global context
- // Workarounds based on findings by Jim Driscoll
- // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
- globalEval: function( data ) {
- if ( data && rnotwhite.test( data ) ) {
- // We use execScript on Internet Explorer
- // We use an anonymous function so that context is window
- // rather than jQuery in Firefox
- ( window.execScript || function( data ) {
- window[ "eval" ].call( window, data );
- } )( data );
- }
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
- },
-
- // args is for internal usage only
- each: function( object, callback, args ) {
- var name, i = 0,
- length = object.length,
- isObj = length === undefined || jQuery.isFunction( object );
-
- if ( args ) {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.apply( object[ name ], args ) === false ) {
- break;
- }
- }
- } else {
- for ( ; i < length; ) {
- if ( callback.apply( object[ i++ ], args ) === false ) {
- break;
- }
- }
- }
-
- // A special, fast, case for the most common use of each
- } else {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
- break;
- }
- }
- } else {
- for ( ; i < length; ) {
- if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
- break;
- }
- }
- }
- }
-
- return object;
- },
-
- // Use native String.trim function wherever possible
- trim: trim ?
- function( text ) {
- return text == null ?
- "" :
- trim.call( text );
- } :
-
- // Otherwise use our own trimming functionality
- function( text ) {
- return text == null ?
- "" :
- text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
- },
-
- // results is for internal usage only
- makeArray: function( array, results ) {
- var ret = results || [];
-
- if ( array != null ) {
- // The window, strings (and functions) also have 'length'
- // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
- var type = jQuery.type( array );
-
- if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
- push.call( ret, array );
- } else {
- jQuery.merge( ret, array );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, array, i ) {
- var len;
-
- if ( array ) {
- if ( indexOf ) {
- return indexOf.call( array, elem, i );
- }
-
- len = array.length;
- i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
-
- for ( ; i < len; i++ ) {
- // Skip accessing in sparse arrays
- if ( i in array && array[ i ] === elem ) {
- return i;
- }
- }
- }
-
- return -1;
- },
-
- merge: function( first, second ) {
- var i = first.length,
- j = 0;
-
- if ( typeof second.length === "number" ) {
- for ( var l = second.length; j < l; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- } else {
- while ( second[j] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, inv ) {
- var ret = [], retVal;
- inv = !!inv;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- retVal = !!callback( elems[ i ], i );
- if ( inv !== retVal ) {
- ret.push( elems[ i ] );
- }
- }
-
- return ret;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var value, key, ret = [],
- i = 0,
- length = elems.length,
- // jquery objects are treated as arrays
- isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
-
- // Go through the array, translating each of the items to their
- if ( isArray ) {
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( key in elems ) {
- value = callback( elems[ key ], key, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
- }
-
- // Flatten any nested arrays
- return ret.concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- if ( typeof context === "string" ) {
- var tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- var args = slice.call( arguments, 2 ),
- proxy = function() {
- return fn.apply( context, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
-
- return proxy;
- },
-
- // Mutifunctional method to get and set values to a collection
- // The value/s can optionally be executed if it's a function
- access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
- var exec,
- bulk = key == null,
- i = 0,
- length = elems.length;
-
- // Sets many values
- if ( key && typeof key === "object" ) {
- for ( i in key ) {
- jQuery.access( elems, fn, i, key[i], 1, emptyGet, value );
- }
- chainable = 1;
-
- // Sets one value
- } else if ( value !== undefined ) {
- // Optionally, function values get executed if exec is true
- exec = pass === undefined && jQuery.isFunction( value );
-
- if ( bulk ) {
- // Bulk operations only iterate when executing function values
- if ( exec ) {
- exec = fn;
- fn = function( elem, key, value ) {
- return exec.call( jQuery( elem ), value );
- };
-
- // Otherwise they run against the entire set
- } else {
- fn.call( elems, value );
- fn = null;
- }
- }
-
- if ( fn ) {
- for (; i < length; i++ ) {
- fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
- }
- }
-
- chainable = 1;
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- length ? fn( elems[0], key ) : emptyGet;
- },
-
- now: function() {
- return ( new Date() ).getTime();
- },
-
- // Use of jQuery.browser is frowned upon.
- // More details: http://docs.jquery.com/Utilities/jQuery.browser
- uaMatch: function( ua ) {
- ua = ua.toLowerCase();
-
- var match = rwebkit.exec( ua ) ||
- ropera.exec( ua ) ||
- rmsie.exec( ua ) ||
- ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
- [];
-
- return { browser: match[1] || "", version: match[2] || "0" };
- },
-
- sub: function() {
- function jQuerySub( selector, context ) {
- return new jQuerySub.fn.init( selector, context );
- }
- jQuery.extend( true, jQuerySub, this );
- jQuerySub.superclass = this;
- jQuerySub.fn = jQuerySub.prototype = this();
- jQuerySub.fn.constructor = jQuerySub;
- jQuerySub.sub = this.sub;
- jQuerySub.fn.init = function init( selector, context ) {
- if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
- context = jQuerySub( context );
- }
-
- return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
- };
- jQuerySub.fn.init.prototype = jQuerySub.fn;
- var rootjQuerySub = jQuerySub(document);
- return jQuerySub;
- },
-
- browser: {}
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
- jQuery.browser[ browserMatch.browser ] = true;
- jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
- jQuery.browser.safari = true;
-}
-
-// IE doesn't match non-breaking spaces with \s
-if ( rnotwhite.test( "\xA0" ) ) {
- trimLeft = /^[\s\xA0]+/;
- trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
- DOMContentLoaded = function() {
- document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
- jQuery.ready();
- };
-
-} else if ( document.attachEvent ) {
- DOMContentLoaded = function() {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( document.readyState === "complete" ) {
- document.detachEvent( "onreadystatechange", DOMContentLoaded );
- jQuery.ready();
- }
- };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
- if ( jQuery.isReady ) {
- return;
- }
-
- try {
- // If IE is used, use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- document.documentElement.doScroll("left");
- } catch(e) {
- setTimeout( doScrollCheck, 1 );
- return;
- }
-
- // and execute any waiting functions
- jQuery.ready();
-}
-
-return jQuery;
-
-})();
-
-
-// String to Object flags format cache
-var flagsCache = {};
-
-// Convert String-formatted flags into Object-formatted ones and store in cache
-function createFlags( flags ) {
- var object = flagsCache[ flags ] = {},
- i, length;
- flags = flags.split( /\s+/ );
- for ( i = 0, length = flags.length; i < length; i++ ) {
- object[ flags[i] ] = true;
- }
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * flags: an optional list of space-separated flags that will change how
- * the callback list behaves
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible flags:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( flags ) {
-
- // Convert flags from String-formatted to Object-formatted
- // (we check in cache first)
- flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
-
- var // Actual callback list
- list = [],
- // Stack of fire calls for repeatable lists
- stack = [],
- // Last fire value (for non-forgettable lists)
- memory,
- // Flag to know if list was already fired
- fired,
- // Flag to know if list is currently firing
- firing,
- // First callback to fire (used internally by add and fireWith)
- firingStart,
- // End of the loop when firing
- firingLength,
- // Index of currently firing callback (modified by remove if needed)
- firingIndex,
- // Add one or several callbacks to the list
- add = function( args ) {
- var i,
- length,
- elem,
- type,
- actual;
- for ( i = 0, length = args.length; i < length; i++ ) {
- elem = args[ i ];
- type = jQuery.type( elem );
- if ( type === "array" ) {
- // Inspect recursively
- add( elem );
- } else if ( type === "function" ) {
- // Add if not in unique mode and callback is not in
- if ( !flags.unique || !self.has( elem ) ) {
- list.push( elem );
- }
- }
- }
- },
- // Fire callbacks
- fire = function( context, args ) {
- args = args || [];
- memory = !flags.memory || [ context, args ];
- fired = true;
- firing = true;
- firingIndex = firingStart || 0;
- firingStart = 0;
- firingLength = list.length;
- for ( ; list && firingIndex < firingLength; firingIndex++ ) {
- if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
- memory = true; // Mark as halted
- break;
- }
- }
- firing = false;
- if ( list ) {
- if ( !flags.once ) {
- if ( stack && stack.length ) {
- memory = stack.shift();
- self.fireWith( memory[ 0 ], memory[ 1 ] );
- }
- } else if ( memory === true ) {
- self.disable();
- } else {
- list = [];
- }
- }
- },
- // Actual Callbacks object
- self = {
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
- var length = list.length;
- add( arguments );
- // Do we need to add the callbacks to the
- // current firing batch?
- if ( firing ) {
- firingLength = list.length;
- // With memory, if we're not firing then
- // we should call right away, unless previous
- // firing was halted (stopOnFalse)
- } else if ( memory && memory !== true ) {
- firingStart = length;
- fire( memory[ 0 ], memory[ 1 ] );
- }
- }
- return this;
- },
- // Remove a callback from the list
- remove: function() {
- if ( list ) {
- var args = arguments,
- argIndex = 0,
- argLength = args.length;
- for ( ; argIndex < argLength ; argIndex++ ) {
- for ( var i = 0; i < list.length; i++ ) {
- if ( args[ argIndex ] === list[ i ] ) {
- // Handle firingIndex and firingLength
- if ( firing ) {
- if ( i <= firingLength ) {
- firingLength--;
- if ( i <= firingIndex ) {
- firingIndex--;
- }
- }
- }
- // Remove the element
- list.splice( i--, 1 );
- // If we have some unicity property then
- // we only need to do this once
- if ( flags.unique ) {
- break;
- }
- }
- }
- }
- }
- return this;
- },
- // Control if a given callback is in the list
- has: function( fn ) {
- if ( list ) {
- var i = 0,
- length = list.length;
- for ( ; i < length; i++ ) {
- if ( fn === list[ i ] ) {
- return true;
- }
- }
- }
- return false;
- },
- // Remove all callbacks from the list
- empty: function() {
- list = [];
- return this;
- },
- // Have the list do nothing anymore
- disable: function() {
- list = stack = memory = undefined;
- return this;
- },
- // Is it disabled?
- disabled: function() {
- return !list;
- },
- // Lock the list in its current state
- lock: function() {
- stack = undefined;
- if ( !memory || memory === true ) {
- self.disable();
- }
- return this;
- },
- // Is it locked?
- locked: function() {
- return !stack;
- },
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( stack ) {
- if ( firing ) {
- if ( !flags.once ) {
- stack.push( [ context, args ] );
- }
- } else if ( !( flags.once && memory ) ) {
- fire( context, args );
- }
- }
- return this;
- },
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-
-
-var // Static reference to slice
- sliceDeferred = [].slice;
-
-jQuery.extend({
-
- Deferred: function( func ) {
- var doneList = jQuery.Callbacks( "once memory" ),
- failList = jQuery.Callbacks( "once memory" ),
- progressList = jQuery.Callbacks( "memory" ),
- state = "pending",
- lists = {
- resolve: doneList,
- reject: failList,
- notify: progressList
- },
- promise = {
- done: doneList.add,
- fail: failList.add,
- progress: progressList.add,
-
- state: function() {
- return state;
- },
-
- // Deprecated
- isResolved: doneList.fired,
- isRejected: failList.fired,
-
- then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
- deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
- return this;
- },
- always: function() {
- deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
- return this;
- },
- pipe: function( fnDone, fnFail, fnProgress ) {
- return jQuery.Deferred(function( newDefer ) {
- jQuery.each( {
- done: [ fnDone, "resolve" ],
- fail: [ fnFail, "reject" ],
- progress: [ fnProgress, "notify" ]
- }, function( handler, data ) {
- var fn = data[ 0 ],
- action = data[ 1 ],
- returned;
- if ( jQuery.isFunction( fn ) ) {
- deferred[ handler ](function() {
- returned = fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
- } else {
- newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
- }
- });
- } else {
- deferred[ handler ]( newDefer[ action ] );
- }
- });
- }).promise();
- },
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- if ( obj == null ) {
- obj = promise;
- } else {
- for ( var key in promise ) {
- obj[ key ] = promise[ key ];
- }
- }
- return obj;
- }
- },
- deferred = promise.promise({}),
- key;
-
- for ( key in lists ) {
- deferred[ key ] = lists[ key ].fire;
- deferred[ key + "With" ] = lists[ key ].fireWith;
- }
-
- // Handle state
- deferred.done( function() {
- state = "resolved";
- }, failList.disable, progressList.lock ).fail( function() {
- state = "rejected";
- }, doneList.disable, progressList.lock );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( firstParam ) {
- var args = sliceDeferred.call( arguments, 0 ),
- i = 0,
- length = args.length,
- pValues = new Array( length ),
- count = length,
- pCount = length,
- deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
- firstParam :
- jQuery.Deferred(),
- promise = deferred.promise();
- function resolveFunc( i ) {
- return function( value ) {
- args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
- if ( !( --count ) ) {
- deferred.resolveWith( deferred, args );
- }
- };
- }
- function progressFunc( i ) {
- return function( value ) {
- pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
- deferred.notifyWith( promise, pValues );
- };
- }
- if ( length > 1 ) {
- for ( ; i < length; i++ ) {
- if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
- args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
- } else {
- --count;
- }
- }
- if ( !count ) {
- deferred.resolveWith( deferred, args );
- }
- } else if ( deferred !== firstParam ) {
- deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
- }
- return promise;
- }
-});
-
-
-
-
-jQuery.support = (function() {
-
- var support,
- all,
- a,
- select,
- opt,
- input,
- fragment,
- tds,
- events,
- eventName,
- i,
- isSupported,
- div = document.createElement( "div" ),
- documentElement = document.documentElement;
-
- // Preliminary tests
- div.setAttribute("className", "t");
- div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
- all = div.getElementsByTagName( "*" );
- a = div.getElementsByTagName( "a" )[ 0 ];
-
- // Can't get basic test support
- if ( !all || !all.length || !a ) {
- return {};
- }
-
- // First batch of supports tests
- select = document.createElement( "select" );
- opt = select.appendChild( document.createElement("option") );
- input = div.getElementsByTagName( "input" )[ 0 ];
-
- support = {
- // IE strips leading whitespace when .innerHTML is used
- leadingWhitespace: ( div.firstChild.nodeType === 3 ),
-
- // Make sure that tbody elements aren't automatically inserted
- // IE will insert them into empty tables
- tbody: !div.getElementsByTagName("tbody").length,
-
- // Make sure that link elements get serialized correctly by innerHTML
- // This requires a wrapper element in IE
- htmlSerialize: !!div.getElementsByTagName("link").length,
-
- // Get the style information from getAttribute
- // (IE uses .cssText instead)
- style: /top/.test( a.getAttribute("style") ),
-
- // Make sure that URLs aren't manipulated
- // (IE normalizes it by default)
- hrefNormalized: ( a.getAttribute("href") === "/a" ),
-
- // Make sure that element opacity exists
- // (IE uses filter instead)
- // Use a regex to work around a WebKit issue. See #5145
- opacity: /^0.55/.test( a.style.opacity ),
-
- // Verify style float existence
- // (IE uses styleFloat instead of cssFloat)
- cssFloat: !!a.style.cssFloat,
-
- // Make sure that if no value is specified for a checkbox
- // that it defaults to "on".
- // (WebKit defaults to "" instead)
- checkOn: ( input.value === "on" ),
-
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- optSelected: opt.selected,
-
- // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
- getSetAttribute: div.className !== "t",
-
- // Tests for enctype support on a form(#6743)
- enctype: !!document.createElement("form").enctype,
-
- // Makes sure cloning an html5 element does not cause problems
- // Where outerHTML is undefined, this still works
- html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
-
- // Will be defined later
- submitBubbles: true,
- changeBubbles: true,
- focusinBubbles: false,
- deleteExpando: true,
- noCloneEvent: true,
- inlineBlockNeedsLayout: false,
- shrinkWrapBlocks: false,
- reliableMarginRight: true,
- pixelMargin: true
- };
-
- // jQuery.boxModel DEPRECATED in 1.3, use jQuery.support.boxModel instead
- jQuery.boxModel = support.boxModel = (document.compatMode === "CSS1Compat");
-
- // Make sure checked status is properly cloned
- input.checked = true;
- support.noCloneChecked = input.cloneNode( true ).checked;
-
- // Make sure that the options inside disabled selects aren't marked as disabled
- // (WebKit marks them as disabled)
- select.disabled = true;
- support.optDisabled = !opt.disabled;
-
- // Test to see if it's possible to delete an expando from an element
- // Fails in Internet Explorer
- try {
- delete div.test;
- } catch( e ) {
- support.deleteExpando = false;
- }
-
- if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
- div.attachEvent( "onclick", function() {
- // Cloning a node shouldn't copy over any
- // bound event handlers (IE does this)
- support.noCloneEvent = false;
- });
- div.cloneNode( true ).fireEvent( "onclick" );
- }
-
- // Check if a radio maintains its value
- // after being appended to the DOM
- input = document.createElement("input");
- input.value = "t";
- input.setAttribute("type", "radio");
- support.radioValue = input.value === "t";
-
- input.setAttribute("checked", "checked");
-
- // #11217 - WebKit loses check when the name is after the checked attribute
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
- fragment = document.createDocumentFragment();
- fragment.appendChild( div.lastChild );
-
- // WebKit doesn't clone checked state correctly in fragments
- support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Check if a disconnected checkbox will retain its checked
- // value of true after appended to the DOM (IE6/7)
- support.appendChecked = input.checked;
-
- fragment.removeChild( input );
- fragment.appendChild( div );
-
- // Technique from Juriy Zaytsev
- // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
- // We only care about the case where non-standard event systems
- // are used, namely in IE. Short-circuiting here helps us to
- // avoid an eval call (in setAttribute) which can cause CSP
- // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
- if ( div.attachEvent ) {
- for ( i in {
- submit: 1,
- change: 1,
- focusin: 1
- }) {
- eventName = "on" + i;
- isSupported = ( eventName in div );
- if ( !isSupported ) {
- div.setAttribute( eventName, "return;" );
- isSupported = ( typeof div[ eventName ] === "function" );
- }
- support[ i + "Bubbles" ] = isSupported;
- }
- }
-
- fragment.removeChild( div );
-
- // Null elements to avoid leaks in IE
- fragment = select = opt = div = input = null;
-
- // Run tests that need a body at doc ready
- jQuery(function() {
- var container, outer, inner, table, td, offsetSupport,
- marginDiv, conMarginTop, style, html, positionTopLeftWidthHeight,
- paddingMarginBorderVisibility, paddingMarginBorder,
- body = document.getElementsByTagName("body")[0];
-
- if ( !body ) {
- // Return for frameset docs that don't have a body
- return;
- }
-
- conMarginTop = 1;
- paddingMarginBorder = "padding:0;margin:0;border:";
- positionTopLeftWidthHeight = "position:absolute;top:0;left:0;width:1px;height:1px;";
- paddingMarginBorderVisibility = paddingMarginBorder + "0;visibility:hidden;";
- style = "style='" + positionTopLeftWidthHeight + paddingMarginBorder + "5px solid #000;";
- html = "<div " + style + "display:block;'><div style='" + paddingMarginBorder + "0;display:block;overflow:hidden;'></div></div>" +
- "<table " + style + "' cellpadding='0' cellspacing='0'>" +
- "<tr><td></td></tr></table>";
-
- container = document.createElement("div");
- container.style.cssText = paddingMarginBorderVisibility + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
- body.insertBefore( container, body.firstChild );
-
- // Construct the test element
- div = document.createElement("div");
- container.appendChild( div );
-
- // Check if table cells still have offsetWidth/Height when they are set
- // to display:none and there are still other visible table cells in a
- // table row; if so, offsetWidth/Height are not reliable for use when
- // determining if an element has been hidden directly using
- // display:none (it is still safe to use offsets if a parent element is
- // hidden; don safety goggles and see bug #4512 for more information).
- // (only IE 8 fails this test)
- div.innerHTML = "<table><tr><td style='" + paddingMarginBorder + "0;display:none'></td><td>t</td></tr></table>";
- tds = div.getElementsByTagName( "td" );
- isSupported = ( tds[ 0 ].offsetHeight === 0 );
-
- tds[ 0 ].style.display = "";
- tds[ 1 ].style.display = "none";
-
- // Check if empty table cells still have offsetWidth/Height
- // (IE <= 8 fail this test)
- support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
-
- // Check if div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container. For more
- // info see bug #3333
- // Fails in WebKit before Feb 2011 nightlies
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- if ( window.getComputedStyle ) {
- div.innerHTML = "";
- marginDiv = document.createElement( "div" );
- marginDiv.style.width = "0";
- marginDiv.style.marginRight = "0";
- div.style.width = "2px";
- div.appendChild( marginDiv );
- support.reliableMarginRight =
- ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
- }
-
- if ( typeof div.style.zoom !== "undefined" ) {
- // Check if natively block-level elements act like inline-block
- // elements when setting their display to 'inline' and giving
- // them layout
- // (IE < 8 does this)
- div.innerHTML = "";
- div.style.width = div.style.padding = "1px";
- div.style.border = 0;
- div.style.overflow = "hidden";
- div.style.display = "inline";
- div.style.zoom = 1;
- support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );
-
- // Check if elements with layout shrink-wrap their children
- // (IE 6 does this)
- div.style.display = "block";
- div.style.overflow = "visible";
- div.innerHTML = "<div style='width:5px;'></div>";
- support.shrinkWrapBlocks = ( div.offsetWidth !== 3 );
- }
-
- div.style.cssText = positionTopLeftWidthHeight + paddingMarginBorderVisibility;
- div.innerHTML = html;
-
- outer = div.firstChild;
- inner = outer.firstChild;
- td = outer.nextSibling.firstChild.firstChild;
-
- offsetSupport = {
- doesNotAddBorder: ( inner.offsetTop !== 5 ),
- doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
- };
-
- inner.style.position = "fixed";
- inner.style.top = "20px";
-
- // safari subtracts parent border width here which is 5px
- offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
- inner.style.position = inner.style.top = "";
-
- outer.style.overflow = "hidden";
- outer.style.position = "relative";
-
- offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
- offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
-
- if ( window.getComputedStyle ) {
- div.style.marginTop = "1%";
- support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%";
- }
-
- if ( typeof container.style.zoom !== "undefined" ) {
- container.style.zoom = 1;
- }
-
- body.removeChild( container );
- marginDiv = div = container = null;
-
- jQuery.extend( support, offsetSupport );
- });
-
- return support;
-})();
-
-
-
-
-var rbrace = /^(?:\{.*\}|\[.*\])$/,
- rmultiDash = /([A-Z])/g;
-
-jQuery.extend({
- cache: {},
-
- // Please use with caution
- uuid: 0,
-
- // Unique for each copy of jQuery on the page
- // Non-digits removed to match rinlinejQuery
- expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
-
- // The following elements throw uncatchable exceptions if you
- // attempt to add expando properties to them.
- noData: {
- "embed": true,
- // Ban all objects except for Flash (which handle expandos)
- "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
- "applet": true
- },
-
- hasData: function( elem ) {
- elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
- return !!elem && !isEmptyDataObject( elem );
- },
-
- data: function( elem, name, data, pvt /* Internal Use Only */ ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- var privateCache, thisCache, ret,
- internalKey = jQuery.expando,
- getByName = typeof name === "string",
-
- // We have to handle DOM nodes and JS objects differently because IE6-7
- // can't GC object references properly across the DOM-JS boundary
- isNode = elem.nodeType,
-
- // Only DOM nodes need the global jQuery cache; JS object data is
- // attached directly to the object so GC can occur automatically
- cache = isNode ? jQuery.cache : elem,
-
- // Only defining an ID for JS objects if its cache already exists allows
- // the code to shortcut on the same path as a DOM node with no cache
- id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
- isEvents = name === "events";
-
- // Avoid doing any more work than we need to when trying to get data on an
- // object that has no data at all
- if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
- return;
- }
-
- if ( !id ) {
- // Only DOM nodes need a new unique ID for each element since their data
- // ends up in the global cache
- if ( isNode ) {
- elem[ internalKey ] = id = ++jQuery.uuid;
- } else {
- id = internalKey;
- }
- }
-
- if ( !cache[ id ] ) {
- cache[ id ] = {};
-
- // Avoids exposing jQuery metadata on plain JS objects when the object
- // is serialized using JSON.stringify
- if ( !isNode ) {
- cache[ id ].toJSON = jQuery.noop;
- }
- }
-
- // An object can be passed to jQuery.data instead of a key/value pair; this gets
- // shallow copied over onto the existing cache
- if ( typeof name === "object" || typeof name === "function" ) {
- if ( pvt ) {
- cache[ id ] = jQuery.extend( cache[ id ], name );
- } else {
- cache[ id ].data = jQuery.extend( cache[ id ].data, name );
- }
- }
-
- privateCache = thisCache = cache[ id ];
-
- // jQuery data() is stored in a separate object inside the object's internal data
- // cache in order to avoid key collisions between internal data and user-defined
- // data.
- if ( !pvt ) {
- if ( !thisCache.data ) {
- thisCache.data = {};
- }
-
- thisCache = thisCache.data;
- }
-
- if ( data !== undefined ) {
- thisCache[ jQuery.camelCase( name ) ] = data;
- }
-
- // Users should not attempt to inspect the internal events object using jQuery.data,
- // it is undocumented and subject to change. But does anyone listen? No.
- if ( isEvents && !thisCache[ name ] ) {
- return privateCache.events;
- }
-
- // Check for both converted-to-camel and non-converted data property names
- // If a data property was specified
- if ( getByName ) {
-
- // First Try to find as-is property data
- ret = thisCache[ name ];
-
- // Test for null|undefined property data
- if ( ret == null ) {
-
- // Try to find the camelCased property
- ret = thisCache[ jQuery.camelCase( name ) ];
- }
- } else {
- ret = thisCache;
- }
-
- return ret;
- },
-
- removeData: function( elem, name, pvt /* Internal Use Only */ ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- var thisCache, i, l,
-
- // Reference to internal data cache key
- internalKey = jQuery.expando,
-
- isNode = elem.nodeType,
-
- // See jQuery.data for more information
- cache = isNode ? jQuery.cache : elem,
-
- // See jQuery.data for more information
- id = isNode ? elem[ internalKey ] : internalKey;
-
- // If there is already no cache entry for this object, there is no
- // purpose in continuing
- if ( !cache[ id ] ) {
- return;
- }
-
- if ( name ) {
-
- thisCache = pvt ? cache[ id ] : cache[ id ].data;
-
- if ( thisCache ) {
-
- // Support array or space separated string names for data keys
- if ( !jQuery.isArray( name ) ) {
-
- // try the string as a key before any manipulation
- if ( name in thisCache ) {
- name = [ name ];
- } else {
-
- // split the camel cased version by spaces unless a key with the spaces exists
- name = jQuery.camelCase( name );
- if ( name in thisCache ) {
- name = [ name ];
- } else {
- name = name.split( " " );
- }
- }
- }
-
- for ( i = 0, l = name.length; i < l; i++ ) {
- delete thisCache[ name[i] ];
- }
-
- // If there is no data left in the cache, we want to continue
- // and let the cache object itself get destroyed
- if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
- return;
- }
- }
- }
-
- // See jQuery.data for more information
- if ( !pvt ) {
- delete cache[ id ].data;
-
- // Don't destroy the parent cache unless the internal data object
- // had been the only thing left in it
- if ( !isEmptyDataObject(cache[ id ]) ) {
- return;
- }
- }
-
- // Browsers that fail expando deletion also refuse to delete expandos on
- // the window, but it will allow it on all other JS objects; other browsers
- // don't care
- // Ensure that `cache` is not a window object #10080
- if ( jQuery.support.deleteExpando || !cache.setInterval ) {
- delete cache[ id ];
- } else {
- cache[ id ] = null;
- }
-
- // We destroyed the cache and need to eliminate the expando on the node to avoid
- // false lookups in the cache for entries that no longer exist
- if ( isNode ) {
- // IE does not allow us to delete expando properties from nodes,
- // nor does it have a removeAttribute function on Document nodes;
- // we must handle all of these cases
- if ( jQuery.support.deleteExpando ) {
- delete elem[ internalKey ];
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( internalKey );
- } else {
- elem[ internalKey ] = null;
- }
- }
- },
-
- // For internal use only.
- _data: function( elem, name, data ) {
- return jQuery.data( elem, name, data, true );
- },
-
- // A method for determining if a DOM node can handle the data expando
- acceptData: function( elem ) {
- if ( elem.nodeName ) {
- var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
- if ( match ) {
- return !(match === true || elem.getAttribute("classid") !== match);
- }
- }
-
- return true;
- }
-});
-
-jQuery.fn.extend({
- data: function( key, value ) {
- var parts, part, attr, name, l,
- elem = this[0],
- i = 0,
- data = null;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = jQuery.data( elem );
-
- if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
- attr = elem.attributes;
- for ( l = attr.length; i < l; i++ ) {
- name = attr[i].name;
-
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.substring(5) );
-
- dataAttr( elem, name, data[ name ] );
- }
- }
- jQuery._data( elem, "parsedAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each(function() {
- jQuery.data( this, key );
- });
- }
-
- parts = key.split( ".", 2 );
- parts[1] = parts[1] ? "." + parts[1] : "";
- part = parts[1] + "!";
-
- return jQuery.access( this, function( value ) {
-
- if ( value === undefined ) {
- data = this.triggerHandler( "getData" + part, [ parts[0] ] );
-
- // Try to fetch any internally stored data first
- if ( data === undefined && elem ) {
- data = jQuery.data( elem, key );
- data = dataAttr( elem, key, data );
- }
-
- return data === undefined && parts[1] ?
- this.data( parts[0] ) :
- data;
- }
-
- parts[1] = value;
- this.each(function() {
- var self = jQuery( this );
-
- self.triggerHandler( "setData" + part, parts );
- jQuery.data( this, key, value );
- self.triggerHandler( "changeData" + part, parts );
- });
- }, null, value, arguments.length > 1, null, false );
- },
-
- removeData: function( key ) {
- return this.each(function() {
- jQuery.removeData( this, key );
- });
- }
-});
-
-function dataAttr( elem, key, data ) {
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
-
- var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
- jQuery.isNumeric( data ) ? +data :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch( e ) {}
-
- // Make sure we set the data so it isn't changed later
- jQuery.data( elem, key, data );
-
- } else {
- data = undefined;
- }
- }
-
- return data;
-}
-
-// checks a cache object for emptiness
-function isEmptyDataObject( obj ) {
- for ( var name in obj ) {
-
- // if the public data object is empty, the private is still empty
- if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
- continue;
- }
- if ( name !== "toJSON" ) {
- return false;
- }
- }
-
- return true;
-}
-
-
-
-
-function handleQueueMarkDefer( elem, type, src ) {
- var deferDataKey = type + "defer",
- queueDataKey = type + "queue",
- markDataKey = type + "mark",
- defer = jQuery._data( elem, deferDataKey );
- if ( defer &&
- ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
- ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
- // Give room for hard-coded callbacks to fire first
- // and eventually mark/queue something else on the element
- setTimeout( function() {
- if ( !jQuery._data( elem, queueDataKey ) &&
- !jQuery._data( elem, markDataKey ) ) {
- jQuery.removeData( elem, deferDataKey, true );
- defer.fire();
- }
- }, 0 );
- }
-}
-
-jQuery.extend({
-
- _mark: function( elem, type ) {
- if ( elem ) {
- type = ( type || "fx" ) + "mark";
- jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
- }
- },
-
- _unmark: function( force, elem, type ) {
- if ( force !== true ) {
- type = elem;
- elem = force;
- force = false;
- }
- if ( elem ) {
- type = type || "fx";
- var key = type + "mark",
- count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
- if ( count ) {
- jQuery._data( elem, key, count );
- } else {
- jQuery.removeData( elem, key, true );
- handleQueueMarkDefer( elem, type, "mark" );
- }
- }
- },
-
- queue: function( elem, type, data ) {
- var q;
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- q = jQuery._data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !q || jQuery.isArray(data) ) {
- q = jQuery._data( elem, type, jQuery.makeArray(data) );
- } else {
- q.push( data );
- }
- }
- return q || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- fn = queue.shift(),
- hooks = {};
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- }
-
- if ( fn ) {
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- jQuery._data( elem, type + ".run", hooks );
- fn.call( elem, function() {
- jQuery.dequeue( elem, type );
- }, hooks );
- }
-
- if ( !queue.length ) {
- jQuery.removeData( elem, type + "queue " + type + ".run", true );
- handleQueueMarkDefer( elem, type, "queue" );
- }
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[0], type );
- }
-
- return data === undefined ?
- this :
- this.each(function() {
- var queue = jQuery.queue( this, type, data );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
- // Based off of the plugin by Clint Helfers, with permission.
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
- delay: function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = setTimeout( next, time );
- hooks.stop = function() {
- clearTimeout( timeout );
- };
- });
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, object ) {
- if ( typeof type !== "string" ) {
- object = type;
- type = undefined;
- }
- type = type || "fx";
- var defer = jQuery.Deferred(),
- elements = this,
- i = elements.length,
- count = 1,
- deferDataKey = type + "defer",
- queueDataKey = type + "queue",
- markDataKey = type + "mark",
- tmp;
- function resolve() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- }
- while( i-- ) {
- if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
- ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
- jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
- jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
- count++;
- tmp.add( resolve );
- }
- }
- resolve();
- return defer.promise( object );
- }
-});
-
-
-
-
-var rclass = /[\n\t\r]/g,
- rspace = /\s+/,
- rreturn = /\r/g,
- rtype = /^(?:button|input)$/i,
- rfocusable = /^(?:button|input|object|select|textarea)$/i,
- rclickable = /^a(?:rea)?$/i,
- rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
- getSetAttribute = jQuery.support.getSetAttribute,
- nodeHook, boolHook, fixSpecified;
-
-jQuery.fn.extend({
- attr: function( name, value ) {
- return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each(function() {
- jQuery.removeAttr( this, name );
- });
- },
-
- prop: function( name, value ) {
- return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- name = jQuery.propFix[ name ] || name;
- return this.each(function() {
- // try/catch handles cases where IE balks (such as removing a property on window)
- try {
- this[ name ] = undefined;
- delete this[ name ];
- } catch( e ) {}
- });
- },
-
- addClass: function( value ) {
- var classNames, i, l, elem,
- setClass, c, cl;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( j ) {
- jQuery( this ).addClass( value.call(this, j, this.className) );
- });
- }
-
- if ( value && typeof value === "string" ) {
- classNames = value.split( rspace );
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- elem = this[ i ];
-
- if ( elem.nodeType === 1 ) {
- if ( !elem.className && classNames.length === 1 ) {
- elem.className = value;
-
- } else {
- setClass = " " + elem.className + " ";
-
- for ( c = 0, cl = classNames.length; c < cl; c++ ) {
- if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
- setClass += classNames[ c ] + " ";
- }
- }
- elem.className = jQuery.trim( setClass );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classNames, i, l, elem, className, c, cl;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( j ) {
- jQuery( this ).removeClass( value.call(this, j, this.className) );
- });
- }
-
- if ( (value && typeof value === "string") || value === undefined ) {
- classNames = ( value || "" ).split( rspace );
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- elem = this[ i ];
-
- if ( elem.nodeType === 1 && elem.className ) {
- if ( value ) {
- className = (" " + elem.className + " ").replace( rclass, " " );
- for ( c = 0, cl = classNames.length; c < cl; c++ ) {
- className = className.replace(" " + classNames[ c ] + " ", " ");
- }
- elem.className = jQuery.trim( className );
-
- } else {
- elem.className = "";
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value,
- isBool = typeof stateVal === "boolean";
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( i ) {
- jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
- });
- }
-
- return this.each(function() {
- if ( type === "string" ) {
- // toggle individual class names
- var className,
- i = 0,
- self = jQuery( this ),
- state = stateVal,
- classNames = value.split( rspace );
-
- while ( (className = classNames[ i++ ]) ) {
- // check each className given, space seperated list
- state = isBool ? state : !self.hasClass( className );
- self[ state ? "addClass" : "removeClass" ]( className );
- }
-
- } else if ( type === "undefined" || type === "boolean" ) {
- if ( this.className ) {
- // store className if set
- jQuery._data( this, "__className__", this.className );
- }
-
- // toggle whole className
- this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
- }
- });
- },
-
- hasClass: function( selector ) {
- var className = " " + selector + " ",
- i = 0,
- l = this.length;
- for ( ; i < l; i++ ) {
- if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
- return true;
- }
- }
-
- return false;
- },
-
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[0];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
- // handle most common string cases
- ret.replace(rreturn, "") :
- // handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each(function( i ) {
- var self = jQuery(this), val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, self.val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
- } else if ( typeof val === "number" ) {
- val += "";
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map(val, function ( value ) {
- return value == null ? "" : value + "";
- });
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- });
- }
-});
-
-jQuery.extend({
- valHooks: {
- option: {
- get: function( elem ) {
- // attributes.value is undefined in Blackberry 4.7 but
- // uses .value. See #6932
- var val = elem.attributes.value;
- return !val || val.specified ? elem.value : elem.text;
- }
- },
- select: {
- get: function( elem ) {
- var value, i, max, option,
- index = elem.selectedIndex,
- values = [],
- options = elem.options,
- one = elem.type === "select-one";
-
- // Nothing was selected
- if ( index < 0 ) {
- return null;
- }
-
- // Loop through all the selected options
- i = one ? index : 0;
- max = one ? index + 1 : options.length;
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // Don't return options that are disabled or in a disabled optgroup
- if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
- (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
- if ( one && !values.length && options.length ) {
- return jQuery( options[ index ] ).val();
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var values = jQuery.makeArray( value );
-
- jQuery(elem).find("option").each(function() {
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
- });
-
- if ( !values.length ) {
- elem.selectedIndex = -1;
- }
- return values;
- }
- }
- },
-
- attrFn: {
- val: true,
- css: true,
- html: true,
- text: true,
- data: true,
- width: true,
- height: true,
- offset: true
- },
-
- attr: function( elem, name, value, pass ) {
- var ret, hooks, notxml,
- nType = elem.nodeType;
-
- // don't get/set attributes on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- if ( pass && name in jQuery.attrFn ) {
- return jQuery( elem )[ name ]( value );
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === "undefined" ) {
- return jQuery.prop( elem, name, value );
- }
-
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
- // All attributes are lowercase
- // Grab necessary hook if one is defined
- if ( notxml ) {
- name = name.toLowerCase();
- hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
- }
-
- if ( value !== undefined ) {
-
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
- return;
-
- } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
- return ret;
-
- } else {
- elem.setAttribute( name, "" + value );
- return value;
- }
-
- } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
- return ret;
-
- } else {
-
- ret = elem.getAttribute( name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret === null ?
- undefined :
- ret;
- }
- },
-
- removeAttr: function( elem, value ) {
- var propName, attrNames, name, l, isBool,
- i = 0;
-
- if ( value && elem.nodeType === 1 ) {
- attrNames = value.toLowerCase().split( rspace );
- l = attrNames.length;
-
- for ( ; i < l; i++ ) {
- name = attrNames[ i ];
-
- if ( name ) {
- propName = jQuery.propFix[ name ] || name;
- isBool = rboolean.test( name );
-
- // See #9699 for explanation of this approach (setting first, then removal)
- // Do not do this for boolean attributes (see #10870)
- if ( !isBool ) {
- jQuery.attr( elem, name, "" );
- }
- elem.removeAttribute( getSetAttribute ? name : propName );
-
- // Set corresponding property to false for boolean attributes
- if ( isBool && propName in elem ) {
- elem[ propName ] = false;
- }
- }
- }
- }
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- // We can't allow the type property to be changed (since it causes problems in IE)
- if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
- jQuery.error( "type property can't be changed" );
- } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
- // Setting the type on a radio button after the value resets the value in IE6-9
- // Reset value to it's default in case type is set after value
- // This is for element creation
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- },
- // Use the value property for back compat
- // Use the nodeHook for button elements in IE6/7 (#1954)
- value: {
- get: function( elem, name ) {
- if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
- return nodeHook.get( elem, name );
- }
- return name in elem ?
- elem.value :
- null;
- },
- set: function( elem, value, name ) {
- if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
- return nodeHook.set( elem, value, name );
- }
- // Does not return so that setAttribute is also used
- elem.value = value;
- }
- }
- },
-
- propFix: {
- tabindex: "tabIndex",
- readonly: "readOnly",
- "for": "htmlFor",
- "class": "className",
- maxlength: "maxLength",
- cellspacing: "cellSpacing",
- cellpadding: "cellPadding",
- rowspan: "rowSpan",
- colspan: "colSpan",
- usemap: "useMap",
- frameborder: "frameBorder",
- contenteditable: "contentEditable"
- },
-
- prop: function( elem, name, value ) {
- var ret, hooks, notxml,
- nType = elem.nodeType;
-
- // don't get/set properties on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
- if ( notxml ) {
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
- return ret;
-
- } else {
- return ( elem[ name ] = value );
- }
-
- } else {
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
- return ret;
-
- } else {
- return elem[ name ];
- }
- }
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- var attributeNode = elem.getAttributeNode("tabindex");
-
- return attributeNode && attributeNode.specified ?
- parseInt( attributeNode.value, 10 ) :
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- undefined;
- }
- }
- }
-});
-
-// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
-jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
-
-// Hook for boolean attributes
-boolHook = {
- get: function( elem, name ) {
- // Align boolean attributes with corresponding properties
- // Fall back to attribute presence where some booleans are not supported
- var attrNode,
- property = jQuery.prop( elem, name );
- return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
- name.toLowerCase() :
- undefined;
- },
- set: function( elem, value, name ) {
- var propName;
- if ( value === false ) {
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else {
- // value is true since we know at this point it's type boolean and not false
- // Set boolean attributes to the same name and set the DOM property
- propName = jQuery.propFix[ name ] || name;
- if ( propName in elem ) {
- // Only set the IDL specifically if it already exists on the element
- elem[ propName ] = true;
- }
-
- elem.setAttribute( name, name.toLowerCase() );
- }
- return name;
- }
-};
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !getSetAttribute ) {
-
- fixSpecified = {
- name: true,
- id: true,
- coords: true
- };
-
- // Use this for any attribute in IE6/7
- // This fixes almost every IE6/7 issue
- nodeHook = jQuery.valHooks.button = {
- get: function( elem, name ) {
- var ret;
- ret = elem.getAttributeNode( name );
- return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
- ret.nodeValue :
- undefined;
- },
- set: function( elem, value, name ) {
- // Set the existing or create a new attribute node
- var ret = elem.getAttributeNode( name );
- if ( !ret ) {
- ret = document.createAttribute( name );
- elem.setAttributeNode( ret );
- }
- return ( ret.nodeValue = value + "" );
- }
- };
-
- // Apply the nodeHook to tabindex
- jQuery.attrHooks.tabindex.set = nodeHook.set;
-
- // Set width and height to auto instead of 0 on empty string( Bug #8150 )
- // This is for removals
- jQuery.each([ "width", "height" ], function( i, name ) {
- jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
- set: function( elem, value ) {
- if ( value === "" ) {
- elem.setAttribute( name, "auto" );
- return value;
- }
- }
- });
- });
-
- // Set contenteditable to false on removals(#10429)
- // Setting to empty string throws an error as an invalid value
- jQuery.attrHooks.contenteditable = {
- get: nodeHook.get,
- set: function( elem, value, name ) {
- if ( value === "" ) {
- value = "false";
- }
- nodeHook.set( elem, value, name );
- }
- };
-}
-
-
-// Some attributes require a special call on IE
-if ( !jQuery.support.hrefNormalized ) {
- jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
- jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
- get: function( elem ) {
- var ret = elem.getAttribute( name, 2 );
- return ret === null ? undefined : ret;
- }
- });
- });
-}
-
-if ( !jQuery.support.style ) {
- jQuery.attrHooks.style = {
- get: function( elem ) {
- // Return undefined in the case of empty string
- // Normalize to lowercase since IE uppercases css property names
- return elem.style.cssText.toLowerCase() || undefined;
- },
- set: function( elem, value ) {
- return ( elem.style.cssText = "" + value );
- }
- };
-}
-
-// Safari mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !jQuery.support.optSelected ) {
- jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
- get: function( elem ) {
- var parent = elem.parentNode;
-
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- return null;
- }
- });
-}
-
-// IE6/7 call enctype encoding
-if ( !jQuery.support.enctype ) {
- jQuery.propFix.enctype = "encoding";
-}
-
-// Radios and checkboxes getter/setter
-if ( !jQuery.support.checkOn ) {
- jQuery.each([ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- get: function( elem ) {
- // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
- return elem.getAttribute("value") === null ? "on" : elem.value;
- }
- };
- });
-}
-jQuery.each([ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
- }
- }
- });
-});
-
-
-
-
-var rformElems = /^(?:textarea|input|select)$/i,
- rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
- rhoverHack = /(?:^|\s)hover(\.\S+)?\b/,
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|contextmenu)|click/,
- rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
- rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
- quickParse = function( selector ) {
- var quick = rquickIs.exec( selector );
- if ( quick ) {
- // 0 1 2 3
- // [ _, tag, id, class ]
- quick[1] = ( quick[1] || "" ).toLowerCase();
- quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
- }
- return quick;
- },
- quickIs = function( elem, m ) {
- var attrs = elem.attributes || {};
- return (
- (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
- (!m[2] || (attrs.id || {}).value === m[2]) &&
- (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
- );
- },
- hoverHack = function( events ) {
- return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
- };
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- add: function( elem, types, handler, data, selector ) {
-
- var elemData, eventHandle, events,
- t, tns, type, namespaces, handleObj,
- handleObjIn, quick, handlers, special;
-
- // Don't attach events to noData or text/comment nodes (allow plain objects tho)
- if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- events = elemData.events;
- if ( !events ) {
- elemData.events = events = {};
- }
- eventHandle = elemData.handle;
- if ( !eventHandle ) {
- elemData.handle = eventHandle = function( e ) {
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
- jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
- undefined;
- };
- // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
- eventHandle.elem = elem;
- }
-
- // Handle multiple events separated by a space
- // jQuery(...).bind("mouseover mouseout", fn);
- types = jQuery.trim( hoverHack(types) ).split( " " );
- for ( t = 0; t < types.length; t++ ) {
-
- tns = rtypenamespace.exec( types[t] ) || [];
- type = tns[1];
- namespaces = ( tns[2] || "" ).split( "." ).sort();
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend({
- type: type,
- origType: tns[1],
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- quick: selector && quickParse( selector ),
- namespace: namespaces.join(".")
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- handlers = events[ type ];
- if ( !handlers ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener/attachEvent if the special events handler returns false
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
- // Bind the global event handler to the element
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
-
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- global: {},
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
- t, tns, type, origType, namespaces, origCount,
- j, events, special, handle, eventType, handleObj;
-
- if ( !elemData || !(events = elemData.events) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
- for ( t = 0; t < types.length; t++ ) {
- tns = rtypenamespace.exec( types[t] ) || [];
- type = origType = tns[1];
- namespaces = tns[2];
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector? special.delegateType : special.bindType ) || type;
- eventType = events[ type ] || [];
- origCount = eventType.length;
- namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
-
- // Remove matching events
- for ( j = 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
- eventType.splice( j--, 1 );
-
- if ( handleObj.selector ) {
- eventType.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( eventType.length === 0 && origCount !== eventType.length ) {
- if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- handle = elemData.handle;
- if ( handle ) {
- handle.elem = null;
- }
-
- // removeData also checks for emptiness and clears the expando if empty
- // so use it instead of delete
- jQuery.removeData( elem, [ "events", "handle" ], true );
- }
- },
-
- // Events that are safe to short-circuit if no handlers are attached.
- // Native DOM events should not be added, they may have inline handlers.
- customEvent: {
- "getData": true,
- "setData": true,
- "changeData": true
- },
-
- trigger: function( event, data, elem, onlyHandlers ) {
- // Don't do events on text and comment nodes
- if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
- return;
- }
-
- // Event object or event type
- var type = event.type || event,
- namespaces = [],
- cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf( "!" ) >= 0 ) {
- // Exclusive events trigger only for the exact event (no namespaces)
- type = type.slice(0, -1);
- exclusive = true;
- }
-
- if ( type.indexOf( "." ) >= 0 ) {
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split(".");
- type = namespaces.shift();
- namespaces.sort();
- }
-
- if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
- // No jQuery handlers for this event type, and it can't have inline handlers
- return;
- }
-
- // Caller can pass in an Event, Object, or just an event type string
- event = typeof event === "object" ?
- // jQuery.Event object
- event[ jQuery.expando ] ? event :
- // Object literal
- new jQuery.Event( type, event ) :
- // Just the event type (string)
- new jQuery.Event( type );
-
- event.type = type;
- event.isTrigger = true;
- event.exclusive = exclusive;
- event.namespace = namespaces.join( "." );
- event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
- ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
-
- // Handle a global trigger
- if ( !elem ) {
-
- // TODO: Stop taunting the data cache; remove global events and always attach to document
- cache = jQuery.cache;
- for ( i in cache ) {
- if ( cache[ i ].events && cache[ i ].events[ type ] ) {
- jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
- }
- }
- return;
- }
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data != null ? jQuery.makeArray( data ) : [];
- data.unshift( event );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- eventPath = [[ elem, special.bindType || type ]];
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
- old = null;
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push([ cur, bubbleType ]);
- old = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( old && old === elem.ownerDocument ) {
- eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
- }
- }
-
- // Fire handlers on the event path
- for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
-
- cur = eventPath[i][0];
- event.type = eventPath[i][1];
-
- handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
- // Note that this is a bare JS function and not a jQuery handler
- handle = ontype && cur[ ontype ];
- if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
- event.preventDefault();
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
- !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name name as the event.
- // Can't use an .isFunction() check here because IE6/7 fails that test.
- // Don't do default actions on window, that's where global variables be (#6170)
- // IE<9 dies on focus/blur to hidden element (#1486)
- if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- old = elem[ ontype ];
-
- if ( old ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- elem[ type ]();
- jQuery.event.triggered = undefined;
-
- if ( old ) {
- elem[ ontype ] = old;
- }
- }
- }
- }
-
- return event.result;
- },
-
- dispatch: function( event ) {
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( event || window.event );
-
- var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
- delegateCount = handlers.delegateCount,
- args = [].slice.call( arguments, 0 ),
- run_all = !event.exclusive && !event.namespace,
- special = jQuery.event.special[ event.type ] || {},
- handlerQueue = [],
- i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[0] = event;
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers that should run if there are delegated events
- // Avoid non-left-click bubbling in Firefox (#3861)
- if ( delegateCount && !(event.button && event.type === "click") ) {
-
- // Pregenerate a single jQuery object for reuse with .is()
- jqcur = jQuery(this);
- jqcur.context = this.ownerDocument || this;
-
- for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
-
- // Don't process events on disabled elements (#6911, #8165)
- if ( cur.disabled !== true ) {
- selMatch = {};
- matches = [];
- jqcur[0] = cur;
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
- sel = handleObj.selector;
-
- if ( selMatch[ sel ] === undefined ) {
- selMatch[ sel ] = (
- handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
- );
- }
- if ( selMatch[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push({ elem: cur, matches: matches });
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( handlers.length > delegateCount ) {
- handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
- }
-
- // Run delegates first; they may want to stop propagation beneath us
- for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
- matched = handlerQueue[ i ];
- event.currentTarget = matched.elem;
-
- for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
- handleObj = matched.matches[ j ];
-
- // Triggered event must either 1) be non-exclusive and have no namespace, or
- // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
- if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
-
- event.data = handleObj.data;
- event.handleObj = handleObj;
-
- ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
- .apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- event.result = ret;
- if ( ret === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- // Includes some event props shared by KeyEvent and MouseEvent
- // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
- props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
-
- fixHooks: {},
-
- keyHooks: {
- props: "char charCode key keyCode".split(" "),
- filter: function( event, original ) {
-
- // Add which for key events
- if ( event.which == null ) {
- event.which = original.charCode != null ? original.charCode : original.keyCode;
- }
-
- return event;
- }
- },
-
- mouseHooks: {
- props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
- filter: function( event, original ) {
- var eventDoc, doc, body,
- button = original.button,
- fromElement = original.fromElement;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && original.clientX != null ) {
- eventDoc = event.target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
-
- event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
- event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
- }
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && fromElement ) {
- event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && button !== undefined ) {
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event;
- }
- },
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // Create a writable copy of the event object and normalize some properties
- var i, prop,
- originalEvent = event,
- fixHook = jQuery.event.fixHooks[ event.type ] || {},
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
- event = jQuery.Event( originalEvent );
-
- for ( i = copy.length; i; ) {
- prop = copy[ --i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
- if ( !event.target ) {
- event.target = originalEvent.srcElement || document;
- }
-
- // Target should not be a text node (#504, Safari)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
- if ( event.metaKey === undefined ) {
- event.metaKey = event.ctrlKey;
- }
-
- return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
- },
-
- special: {
- ready: {
- // Make sure the ready event is setup
- setup: jQuery.bindReady
- },
-
- load: {
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
-
- focus: {
- delegateType: "focusin"
- },
- blur: {
- delegateType: "focusout"
- },
-
- beforeunload: {
- setup: function( data, namespaces, eventHandle ) {
- // We only want to do this special case on windows
- if ( jQuery.isWindow( this ) ) {
- this.onbeforeunload = eventHandle;
- }
- },
-
- teardown: function( namespaces, eventHandle ) {
- if ( this.onbeforeunload === eventHandle ) {
- this.onbeforeunload = null;
- }
- }
- }
- },
-
- simulate: function( type, elem, event, bubble ) {
- // Piggyback on a donor event to simulate a different one.
- // Fake originalEvent to avoid donor's stopPropagation, but if the
- // simulated event prevents default then we do the same on the donor.
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- { type: type,
- isSimulated: true,
- originalEvent: {}
- }
- );
- if ( bubble ) {
- jQuery.event.trigger( e, null, elem );
- } else {
- jQuery.event.dispatch.call( elem, e );
- }
- if ( e.isDefaultPrevented() ) {
- event.preventDefault();
- }
- }
-};
-
-// Some plugins are using, but it's undocumented/deprecated and will be removed.
-// The 1.7 special event interface should provide all the hooks needed now.
-jQuery.event.handle = jQuery.event.dispatch;
-
-jQuery.removeEvent = document.removeEventListener ?
- function( elem, type, handle ) {
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle, false );
- }
- } :
- function( elem, type, handle ) {
- if ( elem.detachEvent ) {
- elem.detachEvent( "on" + type, handle );
- }
- };
-
-jQuery.Event = function( src, props ) {
- // Allow instantiation without the 'new' keyword
- if ( !(this instanceof jQuery.Event) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
- src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
- return false;
-}
-function returnTrue() {
- return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- preventDefault: function() {
- this.isDefaultPrevented = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
-
- // if preventDefault exists run it on the original event
- if ( e.preventDefault ) {
- e.preventDefault();
-
- // otherwise set the returnValue property of the original event to false (IE)
- } else {
- e.returnValue = false;
- }
- },
- stopPropagation: function() {
- this.isPropagationStopped = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
- // if stopPropagation exists run it on the original event
- if ( e.stopPropagation ) {
- e.stopPropagation();
- }
- // otherwise set the cancelBubble property of the original event to true (IE)
- e.cancelBubble = true;
- },
- stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = returnTrue;
- this.stopPropagation();
- },
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-jQuery.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj,
- selector = handleObj.selector,
- ret;
-
- // For mousenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-});
-
-// IE submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
- jQuery.event.special.submit = {
- setup: function() {
- // Only need this for delegated form submit events
- if ( jQuery.nodeName( this, "form" ) ) {
- return false;
- }
-
- // Lazy-add a submit handler when a descendant form may potentially be submitted
- jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
- // Node name check avoids a VML-related crash in IE (#9807)
- var elem = e.target,
- form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
- if ( form && !form._submit_attached ) {
- jQuery.event.add( form, "submit._submit", function( event ) {
- event._submit_bubble = true;
- });
- form._submit_attached = true;
- }
- });
- // return undefined since we don't need an event listener
- },
-
- postDispatch: function( event ) {
- // If form was submitted by the user, bubble the event up the tree
- if ( event._submit_bubble ) {
- delete event._submit_bubble;
- if ( this.parentNode && !event.isTrigger ) {
- jQuery.event.simulate( "submit", this.parentNode, event, true );
- }
- }
- },
-
- teardown: function() {
- // Only need this for delegated form submit events
- if ( jQuery.nodeName( this, "form" ) ) {
- return false;
- }
-
- // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
- jQuery.event.remove( this, "._submit" );
- }
- };
-}
-
-// IE change delegation and checkbox/radio fix
-if ( !jQuery.support.changeBubbles ) {
-
- jQuery.event.special.change = {
-
- setup: function() {
-
- if ( rformElems.test( this.nodeName ) ) {
- // IE doesn't fire change on a check/radio until blur; trigger it on click
- // after a propertychange. Eat the blur-change in special.change.handle.
- // This still fires onchange a second time for check/radio after blur.
- if ( this.type === "checkbox" || this.type === "radio" ) {
- jQuery.event.add( this, "propertychange._change", function( event ) {
- if ( event.originalEvent.propertyName === "checked" ) {
- this._just_changed = true;
- }
- });
- jQuery.event.add( this, "click._change", function( event ) {
- if ( this._just_changed && !event.isTrigger ) {
- this._just_changed = false;
- jQuery.event.simulate( "change", this, event, true );
- }
- });
- }
- return false;
- }
- // Delegated event; lazy-add a change handler on descendant inputs
- jQuery.event.add( this, "beforeactivate._change", function( e ) {
- var elem = e.target;
-
- if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
- jQuery.event.add( elem, "change._change", function( event ) {
- if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
- jQuery.event.simulate( "change", this.parentNode, event, true );
- }
- });
- elem._change_attached = true;
- }
- });
- },
-
- handle: function( event ) {
- var elem = event.target;
-
- // Swallow native change events from checkbox/radio, we already triggered them above
- if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
- return event.handleObj.handler.apply( this, arguments );
- }
- },
-
- teardown: function() {
- jQuery.event.remove( this, "._change" );
-
- return rformElems.test( this.nodeName );
- }
- };
-}
-
-// Create "bubbling" focus and blur events
-if ( !jQuery.support.focusinBubbles ) {
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler while someone wants focusin/focusout
- var attaches = 0,
- handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- if ( attaches++ === 0 ) {
- document.addEventListener( orig, handler, true );
- }
- },
- teardown: function() {
- if ( --attaches === 0 ) {
- document.removeEventListener( orig, handler, true );
- }
- }
- };
- });
-}
-
-jQuery.fn.extend({
-
- on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) { // && selector != null
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- this.on( type, selector, data, types[ type ], one );
- }
- return this;
- }
-
- if ( data == null && fn == null ) {
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return this;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return this.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- });
- },
- one: function( types, selector, data, fn ) {
- return this.on( types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- if ( types && types.preventDefault && types.handleObj ) {
- // ( event ) dispatched jQuery.Event
- var handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
- // ( types-object [, selector] )
- for ( var type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each(function() {
- jQuery.event.remove( this, types, fn, selector );
- });
- },
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- live: function( types, data, fn ) {
- jQuery( this.context ).on( types, this.selector, data, fn );
- return this;
- },
- die: function( types, fn ) {
- jQuery( this.context ).off( types, this.selector || "**", fn );
- return this;
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
- },
-
- trigger: function( type, data ) {
- return this.each(function() {
- jQuery.event.trigger( type, data, this );
- });
- },
- triggerHandler: function( type, data ) {
- if ( this[0] ) {
- return jQuery.event.trigger( type, data, this[0], true );
- }
- },
-
- toggle: function( fn ) {
- // Save reference to arguments for access in closure
- var args = arguments,
- guid = fn.guid || jQuery.guid++,
- i = 0,
- toggler = function( event ) {
- // Figure out which function to execute
- var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
- jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
- // Make sure that clicks stop
- event.preventDefault();
-
- // and execute the function
- return args[ lastToggle ].apply( this, arguments ) || false;
- };
-
- // link all the functions, so any of them can unbind this click handler
- toggler.guid = guid;
- while ( i < args.length ) {
- args[ i++ ].guid = guid;
- }
-
- return this.click( toggler );
- },
-
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-});
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- if ( fn == null ) {
- fn = data;
- data = null;
- }
-
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-
- if ( jQuery.attrFn ) {
- jQuery.attrFn[ name ] = true;
- }
-
- if ( rkeyEvent.test( name ) ) {
- jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
- }
-
- if ( rmouseEvent.test( name ) ) {
- jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
- }
-});
-
-
-
-/*!
- * Sizzle CSS Selector Engine
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- expando = "sizcache" + (Math.random() + '').replace('.', ''),
- done = 0,
- toString = Object.prototype.toString,
- hasDuplicate = false,
- baseHasDuplicate = true,
- rBackslash = /\\/g,
- rReturn = /\r\n/g,
- rNonWord = /\W/;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-// Thus far that includes Google Chrome.
-[0, 0].sort(function() {
- baseHasDuplicate = false;
- return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
- results = results || [];
- context = context || document;
-
- var origContext = context;
-
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
- return [];
- }
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- var m, set, checkSet, extra, ret, cur, pop, i,
- prune = true,
- contextXML = Sizzle.isXML( context ),
- parts = [],
- soFar = selector;
-
- // Reset the position of the chunker regexp (start from head)
- do {
- chunker.exec( "" );
- m = chunker.exec( soFar );
-
- if ( m ) {
- soFar = m[3];
-
- parts.push( m[1] );
-
- if ( m[2] ) {
- extra = m[3];
- break;
- }
- }
- } while ( m );
-
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
- set = posProcess( parts[0] + parts[1], context, seed );
-
- } else {
- set = Expr.relative[ parts[0] ] ?
- [ context ] :
- Sizzle( parts.shift(), context );
-
- while ( parts.length ) {
- selector = parts.shift();
-
- if ( Expr.relative[ selector ] ) {
- selector += parts.shift();
- }
-
- set = posProcess( selector, set, seed );
- }
- }
-
- } else {
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
- ret = Sizzle.find( parts.shift(), context, contextXML );
- context = ret.expr ?
- Sizzle.filter( ret.expr, ret.set )[0] :
- ret.set[0];
- }
-
- if ( context ) {
- ret = seed ?
- { expr: parts.pop(), set: makeArray(seed) } :
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
- set = ret.expr ?
- Sizzle.filter( ret.expr, ret.set ) :
- ret.set;
-
- if ( parts.length > 0 ) {
- checkSet = makeArray( set );
-
- } else {
- prune = false;
- }
-
- while ( parts.length ) {
- cur = parts.pop();
- pop = cur;
-
- if ( !Expr.relative[ cur ] ) {
- cur = "";
- } else {
- pop = parts.pop();
- }
-
- if ( pop == null ) {
- pop = context;
- }
-
- Expr.relative[ cur ]( checkSet, pop, contextXML );
- }
-
- } else {
- checkSet = parts = [];
- }
- }
-
- if ( !checkSet ) {
- checkSet = set;
- }
-
- if ( !checkSet ) {
- Sizzle.error( cur || selector );
- }
-
- if ( toString.call(checkSet) === "[object Array]" ) {
- if ( !prune ) {
- results.push.apply( results, checkSet );
-
- } else if ( context && context.nodeType === 1 ) {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
- results.push( set[i] );
- }
- }
-
- } else {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
- results.push( set[i] );
- }
- }
- }
-
- } else {
- makeArray( checkSet, results );
- }
-
- if ( extra ) {
- Sizzle( extra, origContext, results, seed );
- Sizzle.uniqueSort( results );
- }
-
- return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
- if ( sortOrder ) {
- hasDuplicate = baseHasDuplicate;
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- for ( var i = 1; i < results.length; i++ ) {
- if ( results[i] === results[ i - 1 ] ) {
- results.splice( i--, 1 );
- }
- }
- }
- }
-
- return results;
-};
-
-Sizzle.matches = function( expr, set ) {
- return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
- return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
- var set, i, len, match, type, left;
-
- if ( !expr ) {
- return [];
- }
-
- for ( i = 0, len = Expr.order.length; i < len; i++ ) {
- type = Expr.order[i];
-
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
- left = match[1];
- match.splice( 1, 1 );
-
- if ( left.substr( left.length - 1 ) !== "\\" ) {
- match[1] = (match[1] || "").replace( rBackslash, "" );
- set = Expr.find[ type ]( match, context, isXML );
-
- if ( set != null ) {
- expr = expr.replace( Expr.match[ type ], "" );
- break;
- }
- }
- }
- }
-
- if ( !set ) {
- set = typeof context.getElementsByTagName !== "undefined" ?
- context.getElementsByTagName( "*" ) :
- [];
- }
-
- return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
- var match, anyFound,
- type, found, item, filter, left,
- i, pass,
- old = expr,
- result = [],
- curLoop = set,
- isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
- while ( expr && set.length ) {
- for ( type in Expr.filter ) {
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
- filter = Expr.filter[ type ];
- left = match[1];
-
- anyFound = false;
-
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) === "\\" ) {
- continue;
- }
-
- if ( curLoop === result ) {
- result = [];
- }
-
- if ( Expr.preFilter[ type ] ) {
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
- if ( !match ) {
- anyFound = found = true;
-
- } else if ( match === true ) {
- continue;
- }
- }
-
- if ( match ) {
- for ( i = 0; (item = curLoop[i]) != null; i++ ) {
- if ( item ) {
- found = filter( item, match, i, curLoop );
- pass = not ^ found;
-
- if ( inplace && found != null ) {
- if ( pass ) {
- anyFound = true;
-
- } else {
- curLoop[i] = false;
- }
-
- } else if ( pass ) {
- result.push( item );
- anyFound = true;
- }
- }
- }
- }
-
- if ( found !== undefined ) {
- if ( !inplace ) {
- curLoop = result;
- }
-
- expr = expr.replace( Expr.match[ type ], "" );
-
- if ( !anyFound ) {
- return [];
- }
-
- break;
- }
- }
- }
-
- // Improper expression
- if ( expr === old ) {
- if ( anyFound == null ) {
- Sizzle.error( expr );
-
- } else {
- break;
- }
- }
-
- old = expr;
- }
-
- return curLoop;
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Utility function for retreiving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-var getText = Sizzle.getText = function( elem ) {
- var i, node,
- nodeType = elem.nodeType,
- ret = "";
-
- if ( nodeType ) {
- if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent || innerText for elements
- if ( typeof elem.textContent === 'string' ) {
- return elem.textContent;
- } else if ( typeof elem.innerText === 'string' ) {
- // Replace IE's carriage returns
- return elem.innerText.replace( rReturn, '' );
- } else {
- // Traverse it's children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- } else {
-
- // If no nodeType, this is expected to be an array
- for ( i = 0; (node = elem[i]); i++ ) {
- // Do not traverse comment nodes
- if ( node.nodeType !== 8 ) {
- ret += getText( node );
- }
- }
- }
- return ret;
-};
-
-var Expr = Sizzle.selectors = {
- order: [ "ID", "NAME", "TAG" ],
-
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
- },
-
- leftMatch: {},
-
- attrMap: {
- "class": "className",
- "for": "htmlFor"
- },
-
- attrHandle: {
- href: function( elem ) {
- return elem.getAttribute( "href" );
- },
- type: function( elem ) {
- return elem.getAttribute( "type" );
- }
- },
-
- relative: {
- "+": function(checkSet, part){
- var isPartStr = typeof part === "string",
- isTag = isPartStr && !rNonWord.test( part ),
- isPartStrNotTag = isPartStr && !isTag;
-
- if ( isTag ) {
- part = part.toLowerCase();
- }
-
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
- if ( (elem = checkSet[i]) ) {
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
- elem || false :
- elem === part;
- }
- }
-
- if ( isPartStrNotTag ) {
- Sizzle.filter( part, checkSet, true );
- }
- },
-
- ">": function( checkSet, part ) {
- var elem,
- isPartStr = typeof part === "string",
- i = 0,
- l = checkSet.length;
-
- if ( isPartStr && !rNonWord.test( part ) ) {
- part = part.toLowerCase();
-
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
-
- if ( elem ) {
- var parent = elem.parentNode;
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
- }
- }
-
- } else {
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
-
- if ( elem ) {
- checkSet[i] = isPartStr ?
- elem.parentNode :
- elem.parentNode === part;
- }
- }
-
- if ( isPartStr ) {
- Sizzle.filter( part, checkSet, true );
- }
- }
- },
-
- "": function(checkSet, part, isXML){
- var nodeCheck,
- doneName = done++,
- checkFn = dirCheck;
-
- if ( typeof part === "string" && !rNonWord.test( part ) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
-
- checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
- },
-
- "~": function( checkSet, part, isXML ) {
- var nodeCheck,
- doneName = done++,
- checkFn = dirCheck;
-
- if ( typeof part === "string" && !rNonWord.test( part ) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
-
- checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
- }
- },
-
- find: {
- ID: function( match, context, isXML ) {
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- return m && m.parentNode ? [m] : [];
- }
- },
-
- NAME: function( match, context ) {
- if ( typeof context.getElementsByName !== "undefined" ) {
- var ret = [],
- results = context.getElementsByName( match[1] );
-
- for ( var i = 0, l = results.length; i < l; i++ ) {
- if ( results[i].getAttribute("name") === match[1] ) {
- ret.push( results[i] );
- }
- }
-
- return ret.length === 0 ? null : ret;
- }
- },
-
- TAG: function( match, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( match[1] );
- }
- }
- },
- preFilter: {
- CLASS: function( match, curLoop, inplace, result, not, isXML ) {
- match = " " + match[1].replace( rBackslash, "" ) + " ";
-
- if ( isXML ) {
- return match;
- }
-
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
- if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
- if ( !inplace ) {
- result.push( elem );
- }
-
- } else if ( inplace ) {
- curLoop[i] = false;
- }
- }
- }
-
- return false;
- },
-
- ID: function( match ) {
- return match[1].replace( rBackslash, "" );
- },
-
- TAG: function( match, curLoop ) {
- return match[1].replace( rBackslash, "" ).toLowerCase();
- },
-
- CHILD: function( match ) {
- if ( match[1] === "nth" ) {
- if ( !match[2] ) {
- Sizzle.error( match[0] );
- }
-
- match[2] = match[2].replace(/^\+|\s*/g, '');
-
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
- match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
- // calculate the numbers (first)n+(last) including if they are negative
- match[2] = (test[1] + (test[2] || 1)) - 0;
- match[3] = test[3] - 0;
- }
- else if ( match[2] ) {
- Sizzle.error( match[0] );
- }
-
- // TODO: Move to normal caching system
- match[0] = done++;
-
- return match;
- },
-
- ATTR: function( match, curLoop, inplace, result, not, isXML ) {
- var name = match[1] = match[1].replace( rBackslash, "" );
-
- if ( !isXML && Expr.attrMap[name] ) {
- match[1] = Expr.attrMap[name];
- }
-
- // Handle if an un-quoted value was used
- match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
-
- if ( match[2] === "~=" ) {
- match[4] = " " + match[4] + " ";
- }
-
- return match;
- },
-
- PSEUDO: function( match, curLoop, inplace, result, not ) {
- if ( match[1] === "not" ) {
- // If we're dealing with a complex expression, or a simple one
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
- match[3] = Sizzle(match[3], null, null, curLoop);
-
- } else {
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
- if ( !inplace ) {
- result.push.apply( result, ret );
- }
-
- return false;
- }
-
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
- return true;
- }
-
- return match;
- },
-
- POS: function( match ) {
- match.unshift( true );
-
- return match;
- }
- },
-
- filters: {
- enabled: function( elem ) {
- return elem.disabled === false && elem.type !== "hidden";
- },
-
- disabled: function( elem ) {
- return elem.disabled === true;
- },
-
- checked: function( elem ) {
- return elem.checked === true;
- },
-
- selected: function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- parent: function( elem ) {
- return !!elem.firstChild;
- },
-
- empty: function( elem ) {
- return !elem.firstChild;
- },
-
- has: function( elem, i, match ) {
- return !!Sizzle( match[3], elem ).length;
- },
-
- header: function( elem ) {
- return (/h\d/i).test( elem.nodeName );
- },
-
- text: function( elem ) {
- var attr = elem.getAttribute( "type" ), type = elem.type;
- // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
- // use getAttribute instead to test this case
- return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
- },
-
- radio: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
- },
-
- checkbox: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
- },
-
- file: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
- },
-
- password: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
- },
-
- submit: function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && "submit" === elem.type;
- },
-
- image: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
- },
-
- reset: function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && "reset" === elem.type;
- },
-
- button: function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && "button" === elem.type || name === "button";
- },
-
- input: function( elem ) {
- return (/input|select|textarea|button/i).test( elem.nodeName );
- },
-
- focus: function( elem ) {
- return elem === elem.ownerDocument.activeElement;
- }
- },
- setFilters: {
- first: function( elem, i ) {
- return i === 0;
- },
-
- last: function( elem, i, match, array ) {
- return i === array.length - 1;
- },
-
- even: function( elem, i ) {
- return i % 2 === 0;
- },
-
- odd: function( elem, i ) {
- return i % 2 === 1;
- },
-
- lt: function( elem, i, match ) {
- return i < match[3] - 0;
- },
-
- gt: function( elem, i, match ) {
- return i > match[3] - 0;
- },
-
- nth: function( elem, i, match ) {
- return match[3] - 0 === i;
- },
-
- eq: function( elem, i, match ) {
- return match[3] - 0 === i;
- }
- },
- filter: {
- PSEUDO: function( elem, match, i, array ) {
- var name = match[1],
- filter = Expr.filters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
-
- } else if ( name === "contains" ) {
- return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
- } else if ( name === "not" ) {
- var not = match[3];
-
- for ( var j = 0, l = not.length; j < l; j++ ) {
- if ( not[j] === elem ) {
- return false;
- }
- }
-
- return true;
-
- } else {
- Sizzle.error( name );
- }
- },
-
- CHILD: function( elem, match ) {
- var first, last,
- doneName, parent, cache,
- count, diff,
- type = match[1],
- node = elem;
-
- switch ( type ) {
- case "only":
- case "first":
- while ( (node = node.previousSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
-
- if ( type === "first" ) {
- return true;
- }
-
- node = elem;
-
- /* falls through */
- case "last":
- while ( (node = node.nextSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
-
- return true;
-
- case "nth":
- first = match[2];
- last = match[3];
-
- if ( first === 1 && last === 0 ) {
- return true;
- }
-
- doneName = match[0];
- parent = elem.parentNode;
-
- if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
- count = 0;
-
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
- if ( node.nodeType === 1 ) {
- node.nodeIndex = ++count;
- }
- }
-
- parent[ expando ] = doneName;
- }
-
- diff = elem.nodeIndex - last;
-
- if ( first === 0 ) {
- return diff === 0;
-
- } else {
- return ( diff % first === 0 && diff / first >= 0 );
- }
- }
- },
-
- ID: function( elem, match ) {
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
- },
-
- TAG: function( elem, match ) {
- return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
- },
-
- CLASS: function( elem, match ) {
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
- .indexOf( match ) > -1;
- },
-
- ATTR: function( elem, match ) {
- var name = match[1],
- result = Sizzle.attr ?
- Sizzle.attr( elem, name ) :
- Expr.attrHandle[ name ] ?
- Expr.attrHandle[ name ]( elem ) :
- elem[ name ] != null ?
- elem[ name ] :
- elem.getAttribute( name ),
- value = result + "",
- type = match[2],
- check = match[4];
-
- return result == null ?
- type === "!=" :
- !type && Sizzle.attr ?
- result != null :
- type === "=" ?
- value === check :
- type === "*=" ?
- value.indexOf(check) >= 0 :
- type === "~=" ?
- (" " + value + " ").indexOf(check) >= 0 :
- !check ?
- value && result !== false :
- type === "!=" ?
- value !== check :
- type === "^=" ?
- value.indexOf(check) === 0 :
- type === "$=" ?
- value.substr(value.length - check.length) === check :
- type === "|=" ?
- value === check || value.substr(0, check.length + 1) === check + "-" :
- false;
- },
-
- POS: function( elem, match, i, array ) {
- var name = match[2],
- filter = Expr.setFilters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- }
- }
- }
-};
-
-var origPOS = Expr.match.POS,
- fescape = function(all, num){
- return "\\" + (num - 0 + 1);
- };
-
-for ( var type in Expr.match ) {
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-// Expose origPOS
-// "global" as in regardless of relation to brackets/parens
-Expr.match.globalPOS = origPOS;
-
-var makeArray = function( array, results ) {
- array = Array.prototype.slice.call( array, 0 );
-
- if ( results ) {
- results.push.apply( results, array );
- return results;
- }
-
- return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
- makeArray = function( array, results ) {
- var i = 0,
- ret = results || [];
-
- if ( toString.call(array) === "[object Array]" ) {
- Array.prototype.push.apply( ret, array );
-
- } else {
- if ( typeof array.length === "number" ) {
- for ( var l = array.length; i < l; i++ ) {
- ret.push( array[i] );
- }
-
- } else {
- for ( ; array[i]; i++ ) {
- ret.push( array[i] );
- }
- }
- }
-
- return ret;
- };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
- return a.compareDocumentPosition ? -1 : 1;
- }
-
- return a.compareDocumentPosition(b) & 4 ? -1 : 1;
- };
-
-} else {
- sortOrder = function( a, b ) {
- // The nodes are identical, we can exit early
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
-
- // Fallback to using sourceIndex (in IE) if it's available on both nodes
- } else if ( a.sourceIndex && b.sourceIndex ) {
- return a.sourceIndex - b.sourceIndex;
- }
-
- var al, bl,
- ap = [],
- bp = [],
- aup = a.parentNode,
- bup = b.parentNode,
- cur = aup;
-
- // If the nodes are siblings (or identical) we can do a quick check
- if ( aup === bup ) {
- return siblingCheck( a, b );
-
- // If no parents were found then the nodes are disconnected
- } else if ( !aup ) {
- return -1;
-
- } else if ( !bup ) {
- return 1;
- }
-
- // Otherwise they're somewhere else in the tree so we need
- // to build up a full list of the parentNodes for comparison
- while ( cur ) {
- ap.unshift( cur );
- cur = cur.parentNode;
- }
-
- cur = bup;
-
- while ( cur ) {
- bp.unshift( cur );
- cur = cur.parentNode;
- }
-
- al = ap.length;
- bl = bp.length;
-
- // Start walking down the tree looking for a discrepancy
- for ( var i = 0; i < al && i < bl; i++ ) {
- if ( ap[i] !== bp[i] ) {
- return siblingCheck( ap[i], bp[i] );
- }
- }
-
- // We ended someplace up the tree so do a sibling check
- return i === al ?
- siblingCheck( a, bp[i], -1 ) :
- siblingCheck( ap[i], b, 1 );
- };
-
- siblingCheck = function( a, b, ret ) {
- if ( a === b ) {
- return ret;
- }
-
- var cur = a.nextSibling;
-
- while ( cur ) {
- if ( cur === b ) {
- return -1;
- }
-
- cur = cur.nextSibling;
- }
-
- return 1;
- };
-}
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
- // We're going to inject a fake input element with a specified name
- var form = document.createElement("div"),
- id = "script" + (new Date()).getTime(),
- root = document.documentElement;
-
- form.innerHTML = "<a name='" + id + "'/>";
-
- // Inject it into the root element, check its status, and remove it quickly
- root.insertBefore( form, root.firstChild );
-
- // The workaround has to do additional checks after a getElementById
- // Which slows things down for other browsers (hence the branching)
- if ( document.getElementById( id ) ) {
- Expr.find.ID = function( match, context, isXML ) {
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
-
- return m ?
- m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
- [m] :
- undefined :
- [];
- }
- };
-
- Expr.filter.ID = function( elem, match ) {
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
- return elem.nodeType === 1 && node && node.nodeValue === match;
- };
- }
-
- root.removeChild( form );
-
- // release memory in IE
- root = form = null;
-})();
-
-(function(){
- // Check to see if the browser returns only elements
- // when doing getElementsByTagName("*")
-
- // Create a fake element
- var div = document.createElement("div");
- div.appendChild( document.createComment("") );
-
- // Make sure no comments are found
- if ( div.getElementsByTagName("*").length > 0 ) {
- Expr.find.TAG = function( match, context ) {
- var results = context.getElementsByTagName( match[1] );
-
- // Filter out possible comments
- if ( match[1] === "*" ) {
- var tmp = [];
-
- for ( var i = 0; results[i]; i++ ) {
- if ( results[i].nodeType === 1 ) {
- tmp.push( results[i] );
- }
- }
-
- results = tmp;
- }
-
- return results;
- };
- }
-
- // Check to see if an attribute returns normalized href attributes
- div.innerHTML = "<a href='#'></a>";
-
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
- div.firstChild.getAttribute("href") !== "#" ) {
-
- Expr.attrHandle.href = function( elem ) {
- return elem.getAttribute( "href", 2 );
- };
- }
-
- // release memory in IE
- div = null;
-})();
-
-if ( document.querySelectorAll ) {
- (function(){
- var oldSizzle = Sizzle,
- div = document.createElement("div"),
- id = "__sizzle__";
-
- div.innerHTML = "<p class='TEST'></p>";
-
- // Safari can't handle uppercase or unicode characters when
- // in quirks mode.
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
- return;
- }
-
- Sizzle = function( query, context, extra, seed ) {
- context = context || document;
-
- // Only use querySelectorAll on non-XML documents
- // (ID selectors don't work in non-HTML documents)
- if ( !seed && !Sizzle.isXML(context) ) {
- // See if we find a selector to speed up
- var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
-
- if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
- // Speed-up: Sizzle("TAG")
- if ( match[1] ) {
- return makeArray( context.getElementsByTagName( query ), extra );
-
- // Speed-up: Sizzle(".CLASS")
- } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
- return makeArray( context.getElementsByClassName( match[2] ), extra );
- }
- }
-
- if ( context.nodeType === 9 ) {
- // Speed-up: Sizzle("body")
- // The body element only exists once, optimize finding it
- if ( query === "body" && context.body ) {
- return makeArray( [ context.body ], extra );
-
- // Speed-up: Sizzle("#ID")
- } else if ( match && match[3] ) {
- var elem = context.getElementById( match[3] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id === match[3] ) {
- return makeArray( [ elem ], extra );
- }
-
- } else {
- return makeArray( [], extra );
- }
- }
-
- try {
- return makeArray( context.querySelectorAll(query), extra );
- } catch(qsaError) {}
-
- // qSA works strangely on Element-rooted queries
- // We can work around this by specifying an extra ID on the root
- // and working up from there (Thanks to Andrew Dupont for the technique)
- // IE 8 doesn't work on object elements
- } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
- var oldContext = context,
- old = context.getAttribute( "id" ),
- nid = old || id,
- hasParent = context.parentNode,
- relativeHierarchySelector = /^\s*[+~]/.test( query );
-
- if ( !old ) {
- context.setAttribute( "id", nid );
- } else {
- nid = nid.replace( /'/g, "\\$&" );
- }
- if ( relativeHierarchySelector && hasParent ) {
- context = context.parentNode;
- }
-
- try {
- if ( !relativeHierarchySelector || hasParent ) {
- return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
- }
-
- } catch(pseudoError) {
- } finally {
- if ( !old ) {
- oldContext.removeAttribute( "id" );
- }
- }
- }
- }
-
- return oldSizzle(query, context, extra, seed);
- };
-
- for ( var prop in oldSizzle ) {
- Sizzle[ prop ] = oldSizzle[ prop ];
- }
-
- // release memory in IE
- div = null;
- })();
-}
-
-(function(){
- var html = document.documentElement,
- matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
-
- if ( matches ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9 fails this)
- var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
- pseudoWorks = false;
-
- try {
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( document.documentElement, "[test!='']:sizzle" );
-
- } catch( pseudoError ) {
- pseudoWorks = true;
- }
-
- Sizzle.matchesSelector = function( node, expr ) {
- // Make sure that attribute selectors are quoted
- expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
- if ( !Sizzle.isXML( node ) ) {
- try {
- if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
- var ret = matches.call( node, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || !disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9, so check for that
- node.document && node.document.nodeType !== 11 ) {
- return ret;
- }
- }
- } catch(e) {}
- }
-
- return Sizzle(expr, null, null, [node]).length > 0;
- };
- }
-})();
-
-(function(){
- var div = document.createElement("div");
-
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
- // Opera can't find a second classname (in 9.6)
- // Also, make sure that getElementsByClassName actually exists
- if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
- return;
- }
-
- // Safari caches class attributes, doesn't catch changes (in 3.2)
- div.lastChild.className = "e";
-
- if ( div.getElementsByClassName("e").length === 1 ) {
- return;
- }
-
- Expr.order.splice(1, 0, "CLASS");
- Expr.find.CLASS = function( match, context, isXML ) {
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
- return context.getElementsByClassName(match[1]);
- }
- };
-
- // release memory in IE
- div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
-
- if ( elem ) {
- var match = false;
-
- elem = elem[dir];
-
- while ( elem ) {
- if ( elem[ expando ] === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 && !isXML ){
- elem[ expando ] = doneName;
- elem.sizset = i;
- }
-
- if ( elem.nodeName.toLowerCase() === cur ) {
- match = elem;
- break;
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
-
- if ( elem ) {
- var match = false;
-
- elem = elem[dir];
-
- while ( elem ) {
- if ( elem[ expando ] === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 ) {
- if ( !isXML ) {
- elem[ expando ] = doneName;
- elem.sizset = i;
- }
-
- if ( typeof cur !== "string" ) {
- if ( elem === cur ) {
- match = true;
- break;
- }
-
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
- match = elem;
- break;
- }
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-if ( document.documentElement.contains ) {
- Sizzle.contains = function( a, b ) {
- return a !== b && (a.contains ? a.contains(b) : true);
- };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
- Sizzle.contains = function( a, b ) {
- return !!(a.compareDocumentPosition(b) & 16);
- };
-
-} else {
- Sizzle.contains = function() {
- return false;
- };
-}
-
-Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context, seed ) {
- var match,
- tmpSet = [],
- later = "",
- root = context.nodeType ? [context] : context;
-
- // Position selectors must be done after the filter
- // And so must :not(positional) so we move all PSEUDOs to the end
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
- later += match[0];
- selector = selector.replace( Expr.match.PSEUDO, "" );
- }
-
- selector = Expr.relative[selector] ? selector + "*" : selector;
-
- for ( var i = 0, l = root.length; i < l; i++ ) {
- Sizzle( selector, root[i], tmpSet, seed );
- }
-
- return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-// Override sizzle attribute retrieval
-Sizzle.attr = jQuery.attr;
-Sizzle.selectors.attrMap = {};
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
- rparentsprev = /^(?:parents|prevUntil|prevAll)/,
- // Note: This RegExp should be improved, or likely pulled from Sizzle
- rmultiselector = /,/,
- isSimple = /^.[^:#\[\.,]*$/,
- slice = Array.prototype.slice,
- POS = jQuery.expr.match.globalPOS,
- // methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend({
- find: function( selector ) {
- var self = this,
- i, l;
-
- if ( typeof selector !== "string" ) {
- return jQuery( selector ).filter(function() {
- for ( i = 0, l = self.length; i < l; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- });
- }
-
- var ret = this.pushStack( "", "find", selector ),
- length, n, r;
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- length = ret.length;
- jQuery.find( selector, this[i], ret );
-
- if ( i > 0 ) {
- // Make sure that the results are unique
- for ( n = length; n < ret.length; n++ ) {
- for ( r = 0; r < length; r++ ) {
- if ( ret[r] === ret[n] ) {
- ret.splice(n--, 1);
- break;
- }
- }
- }
- }
- }
-
- return ret;
- },
-
- has: function( target ) {
- var targets = jQuery( target );
- return this.filter(function() {
- for ( var i = 0, l = targets.length; i < l; i++ ) {
- if ( jQuery.contains( this, targets[i] ) ) {
- return true;
- }
- }
- });
- },
-
- not: function( selector ) {
- return this.pushStack( winnow(this, selector, false), "not", selector);
- },
-
- filter: function( selector ) {
- return this.pushStack( winnow(this, selector, true), "filter", selector );
- },
-
- is: function( selector ) {
- return !!selector && (
- typeof selector === "string" ?
- // If this is a positional selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- POS.test( selector ) ?
- jQuery( selector, this.context ).index( this[0] ) >= 0 :
- jQuery.filter( selector, this ).length > 0 :
- this.filter( selector ).length > 0 );
- },
-
- closest: function( selectors, context ) {
- var ret = [], i, l, cur = this[0];
-
- // Array (deprecated as of jQuery 1.7)
- if ( jQuery.isArray( selectors ) ) {
- var level = 1;
-
- while ( cur && cur.ownerDocument && cur !== context ) {
- for ( i = 0; i < selectors.length; i++ ) {
-
- if ( jQuery( cur ).is( selectors[ i ] ) ) {
- ret.push({ selector: selectors[ i ], elem: cur, level: level });
- }
- }
-
- cur = cur.parentNode;
- level++;
- }
-
- return ret;
- }
-
- // String
- var pos = POS.test( selectors ) || typeof selectors !== "string" ?
- jQuery( selectors, context || this.context ) :
- 0;
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- cur = this[i];
-
- while ( cur ) {
- if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
- ret.push( cur );
- break;
-
- } else {
- cur = cur.parentNode;
- if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
- break;
- }
- }
- }
- }
-
- ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
-
- return this.pushStack( ret, "closest", selectors );
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
- }
-
- // index in selector
- if ( typeof elem === "string" ) {
- return jQuery.inArray( this[0], jQuery( elem ) );
- }
-
- // Locate the position of the desired element
- return jQuery.inArray(
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[0] : elem, this );
- },
-
- add: function( selector, context ) {
- var set = typeof selector === "string" ?
- jQuery( selector, context ) :
- jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
- all = jQuery.merge( this.get(), set );
-
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
- all :
- jQuery.unique( all ) );
- },
-
- andSelf: function() {
- return this.add( this.prevObject );
- }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
- return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return jQuery.dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return jQuery.nth( elem, 2, "nextSibling" );
- },
- prev: function( elem ) {
- return jQuery.nth( elem, 2, "previousSibling" );
- },
- nextAll: function( elem ) {
- return jQuery.dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return jQuery.dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return jQuery.sibling( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.makeArray( elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until );
-
- if ( !runtil.test( name ) ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- ret = jQuery.filter( selector, ret );
- }
-
- ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
-
- if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
- ret = ret.reverse();
- }
-
- return this.pushStack( ret, name, slice.call( arguments ).join(",") );
- };
-});
-
-jQuery.extend({
- filter: function( expr, elems, not ) {
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 ?
- jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
- jQuery.find.matches(expr, elems);
- },
-
- dir: function( elem, dir, until ) {
- var matched = [],
- cur = elem[ dir ];
-
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
- if ( cur.nodeType === 1 ) {
- matched.push( cur );
- }
- cur = cur[dir];
- }
- return matched;
- },
-
- nth: function( cur, result, dir, elem ) {
- result = result || 1;
- var num = 0;
-
- for ( ; cur; cur = cur[dir] ) {
- if ( cur.nodeType === 1 && ++num === result ) {
- break;
- }
- }
-
- return cur;
- },
-
- sibling: function( n, elem ) {
- var r = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- r.push( n );
- }
- }
-
- return r;
- }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
-
- // Can't pass null or undefined to indexOf in Firefox 4
- // Set to 0 to skip string check
- qualifier = qualifier || 0;
-
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep(elements, function( elem, i ) {
- var retVal = !!qualifier.call( elem, i, elem );
- return retVal === keep;
- });
-
- } else if ( qualifier.nodeType ) {
- return jQuery.grep(elements, function( elem, i ) {
- return ( elem === qualifier ) === keep;
- });
-
- } else if ( typeof qualifier === "string" ) {
- var filtered = jQuery.grep(elements, function( elem ) {
- return elem.nodeType === 1;
- });
-
- if ( isSimple.test( qualifier ) ) {
- return jQuery.filter(qualifier, filtered, !keep);
- } else {
- qualifier = jQuery.filter( qualifier, filtered );
- }
- }
-
- return jQuery.grep(elements, function( elem, i ) {
- return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
- });
-}
-
-
-
-
-function createSafeFragment( document ) {
- var list = nodeNames.split( "|" ),
- safeFrag = document.createDocumentFragment();
-
- if ( safeFrag.createElement ) {
- while ( list.length ) {
- safeFrag.createElement(
- list.pop()
- );
- }
- }
- return safeFrag;
-}
-
-var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
- "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
- rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
- rleadingWhitespace = /^\s+/,
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
- rtagName = /<([\w:]+)/,
- rtbody = /<tbody/i,
- rhtml = /<|&#?\w+;/,
- rnoInnerhtml = /<(?:script|style)/i,
- rnocache = /<(?:script|object|embed|option|style)/i,
- rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptType = /\/(java|ecma)script/i,
- rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
- wrapMap = {
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
- legend: [ 1, "<fieldset>", "</fieldset>" ],
- thead: [ 1, "<table>", "</table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
- col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
- area: [ 1, "<map>", "</map>" ],
- _default: [ 0, "", "" ]
- },
- safeFragment = createSafeFragment( document );
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
- wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
- text: function( value ) {
- return jQuery.access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
- }, null, value, arguments.length );
- },
-
- wrapAll: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapAll( html.call(this, i) );
- });
- }
-
- if ( this[0] ) {
- // The elements to wrap the target around
- var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
- if ( this[0].parentNode ) {
- wrap.insertBefore( this[0] );
- }
-
- wrap.map(function() {
- var elem = this;
-
- while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
- elem = elem.firstChild;
- }
-
- return elem;
- }).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapInner( html.call(this, i) );
- });
- }
-
- return this.each(function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- });
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each(function(i) {
- jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
- });
- },
-
- unwrap: function() {
- return this.parent().each(function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- }).end();
- },
-
- append: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.appendChild( elem );
- }
- });
- },
-
- prepend: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.insertBefore( elem, this.firstChild );
- }
- });
- },
-
- before: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this );
- });
- } else if ( arguments.length ) {
- var set = jQuery.clean( arguments );
- set.push.apply( set, this.toArray() );
- return this.pushStack( set, "before", arguments );
- }
- },
-
- after: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- });
- } else if ( arguments.length ) {
- var set = this.pushStack( this, "after", arguments );
- set.push.apply( set, jQuery.clean(arguments) );
- return set;
- }
- },
-
- // keepData is for internal use only--do not document
- remove: function( selector, keepData ) {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
- if ( !keepData && elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- jQuery.cleanData( [ elem ] );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
- }
- }
-
- return this;
- },
-
- empty: function() {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- }
-
- // Remove any remaining nodes
- while ( elem.firstChild ) {
- elem.removeChild( elem.firstChild );
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function () {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- });
- },
-
- html: function( value ) {
- return jQuery.access( this, function( value ) {
- var elem = this[0] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined ) {
- return elem.nodeType === 1 ?
- elem.innerHTML.replace( rinlinejQuery, "" ) :
- null;
- }
-
-
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
- !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
-
- value = value.replace( rxhtmlTag, "<$1></$2>" );
-
- try {
- for (; i < l; i++ ) {
- // Remove element nodes and prevent memory leaks
- elem = this[i] || {};
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName( "*" ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch(e) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function( value ) {
- if ( this[0] && this[0].parentNode ) {
- // Make sure that the elements are removed from the DOM before they are inserted
- // this can help fix replacing a parent with child elements
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this), old = self.html();
- self.replaceWith( value.call( this, i, old ) );
- });
- }
-
- if ( typeof value !== "string" ) {
- value = jQuery( value ).detach();
- }
-
- return this.each(function() {
- var next = this.nextSibling,
- parent = this.parentNode;
-
- jQuery( this ).remove();
-
- if ( next ) {
- jQuery(next).before( value );
- } else {
- jQuery(parent).append( value );
- }
- });
- } else {
- return this.length ?
- this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
- this;
- }
- },
-
- detach: function( selector ) {
- return this.remove( selector, true );
- },
-
- domManip: function( args, table, callback ) {
- var results, first, fragment, parent,
- value = args[0],
- scripts = [];
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
- return this.each(function() {
- jQuery(this).domManip( args, table, callback, true );
- });
- }
-
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- args[0] = value.call(this, i, table ? self.html() : undefined);
- self.domManip( args, table, callback );
- });
- }
-
- if ( this[0] ) {
- parent = value && value.parentNode;
-
- // If we're in a fragment, just use that instead of building a new one
- if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
- results = { fragment: parent };
-
- } else {
- results = jQuery.buildFragment( args, this, scripts );
- }
-
- fragment = results.fragment;
-
- if ( fragment.childNodes.length === 1 ) {
- first = fragment = fragment.firstChild;
- } else {
- first = fragment.firstChild;
- }
-
- if ( first ) {
- table = table && jQuery.nodeName( first, "tr" );
-
- for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
- callback.call(
- table ?
- root(this[i], first) :
- this[i],
- // Make sure that we do not leak memory by inadvertently discarding
- // the original fragment (which might have attached data) instead of
- // using it; in addition, use the original fragment object for the last
- // item instead of first because it can end up being emptied incorrectly
- // in certain situations (Bug #8070).
- // Fragments from the fragment cache must always be cloned and never used
- // in place.
- results.cacheable || ( l > 1 && i < lastIndex ) ?
- jQuery.clone( fragment, true, true ) :
- fragment
- );
- }
- }
-
- if ( scripts.length ) {
- jQuery.each( scripts, function( i, elem ) {
- if ( elem.src ) {
- jQuery.ajax({
- type: "GET",
- global: false,
- url: elem.src,
- async: false,
- dataType: "script"
- });
- } else {
- jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
- });
- }
- }
-
- return this;
- }
-});
-
-function root( elem, cur ) {
- return jQuery.nodeName(elem, "table") ?
- (elem.getElementsByTagName("tbody")[0] ||
- elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
- elem;
-}
-
-function cloneCopyEvent( src, dest ) {
-
- if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
- return;
- }
-
- var type, i, l,
- oldData = jQuery._data( src ),
- curData = jQuery._data( dest, oldData ),
- events = oldData.events;
-
- if ( events ) {
- delete curData.handle;
- curData.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
-
- // make the cloned public data object a copy from the original
- if ( curData.data ) {
- curData.data = jQuery.extend( {}, curData.data );
- }
-}
-
-function cloneFixAttributes( src, dest ) {
- var nodeName;
-
- // We do not need to do anything for non-Elements
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- // clearAttributes removes the attributes, which we don't want,
- // but also removes the attachEvent events, which we *do* want
- if ( dest.clearAttributes ) {
- dest.clearAttributes();
- }
-
- // mergeAttributes, in contrast, only merges back on the
- // original attributes, not the events
- if ( dest.mergeAttributes ) {
- dest.mergeAttributes( src );
- }
-
- nodeName = dest.nodeName.toLowerCase();
-
- // IE6-8 fail to clone children inside object elements that use
- // the proprietary classid attribute value (rather than the type
- // attribute) to identify the type of content to display
- if ( nodeName === "object" ) {
- dest.outerHTML = src.outerHTML;
-
- } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
- // IE6-8 fails to persist the checked state of a cloned checkbox
- // or radio button. Worse, IE6-7 fail to give the cloned element
- // a checked appearance if the defaultChecked value isn't also set
- if ( src.checked ) {
- dest.defaultChecked = dest.checked = src.checked;
- }
-
- // IE6-7 get confused and end up setting the value of a cloned
- // checkbox/radio button to an empty string instead of "on"
- if ( dest.value !== src.value ) {
- dest.value = src.value;
- }
-
- // IE6-8 fails to return the selected option to the default selected
- // state when cloning options
- } else if ( nodeName === "option" ) {
- dest.selected = src.defaultSelected;
-
- // IE6-8 fails to set the defaultValue to the correct value when
- // cloning other types of input fields
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
-
- // IE blanks contents when cloning scripts
- } else if ( nodeName === "script" && dest.text !== src.text ) {
- dest.text = src.text;
- }
-
- // Event data gets referenced instead of copied if the expando
- // gets copied too
- dest.removeAttribute( jQuery.expando );
-
- // Clear flags for bubbling special change/submit events, they must
- // be reattached when the newly cloned events are first activated
- dest.removeAttribute( "_submit_attached" );
- dest.removeAttribute( "_change_attached" );
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
- var fragment, cacheable, cacheresults, doc,
- first = args[ 0 ];
-
- // nodes may contain either an explicit document object,
- // a jQuery collection or context object.
- // If nodes[0] contains a valid object to assign to doc
- if ( nodes && nodes[0] ) {
- doc = nodes[0].ownerDocument || nodes[0];
- }
-
- // Ensure that an attr object doesn't incorrectly stand in as a document object
- // Chrome and Firefox seem to allow this to occur and will throw exception
- // Fixes #8950
- if ( !doc.createDocumentFragment ) {
- doc = document;
- }
-
- // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
- // Cloning options loses the selected state, so don't cache them
- // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
- // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
- // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
- if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
- first.charAt(0) === "<" && !rnocache.test( first ) &&
- (jQuery.support.checkClone || !rchecked.test( first )) &&
- (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
-
- cacheable = true;
-
- cacheresults = jQuery.fragments[ first ];
- if ( cacheresults && cacheresults !== 1 ) {
- fragment = cacheresults;
- }
- }
-
- if ( !fragment ) {
- fragment = doc.createDocumentFragment();
- jQuery.clean( args, doc, fragment, scripts );
- }
-
- if ( cacheable ) {
- jQuery.fragments[ first ] = cacheresults ? fragment : 1;
- }
-
- return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var ret = [],
- insert = jQuery( selector ),
- parent = this.length === 1 && this[0].parentNode;
-
- if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
- insert[ original ]( this[0] );
- return this;
-
- } else {
- for ( var i = 0, l = insert.length; i < l; i++ ) {
- var elems = ( i > 0 ? this.clone(true) : this ).get();
- jQuery( insert[i] )[ original ]( elems );
- ret = ret.concat( elems );
- }
-
- return this.pushStack( ret, name, insert.selector );
- }
- };
-});
-
-function getAll( elem ) {
- if ( typeof elem.getElementsByTagName !== "undefined" ) {
- return elem.getElementsByTagName( "*" );
-
- } else if ( typeof elem.querySelectorAll !== "undefined" ) {
- return elem.querySelectorAll( "*" );
-
- } else {
- return [];
- }
-}
-
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
- if ( elem.type === "checkbox" || elem.type === "radio" ) {
- elem.defaultChecked = elem.checked;
- }
-}
-// Finds all inputs and passes them to fixDefaultChecked
-function findInputs( elem ) {
- var nodeName = ( elem.nodeName || "" ).toLowerCase();
- if ( nodeName === "input" ) {
- fixDefaultChecked( elem );
- // Skip scripts, get other children
- } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
- jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
- }
-}
-
-// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
-function shimCloneNode( elem ) {
- var div = document.createElement( "div" );
- safeFragment.appendChild( div );
-
- div.innerHTML = elem.outerHTML;
- return div.firstChild;
-}
-
-jQuery.extend({
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var srcElements,
- destElements,
- i,
- // IE<=8 does not properly clone detached, unknown element nodes
- clone = jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ?
- elem.cloneNode( true ) :
- shimCloneNode( elem );
-
- if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
- (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
- // IE copies events bound via attachEvent when using cloneNode.
- // Calling detachEvent on the clone will also remove the events
- // from the original. In order to get around this, we use some
- // proprietary methods to clear the events. Thanks to MooTools
- // guys for this hotness.
-
- cloneFixAttributes( elem, clone );
-
- // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
- srcElements = getAll( elem );
- destElements = getAll( clone );
-
- // Weird iteration because IE will replace the length property
- // with an element if you are cloning the body and one of the
- // elements on the page has a name or id of "length"
- for ( i = 0; srcElements[i]; ++i ) {
- // Ensure that the destination node is not null; Fixes #9587
- if ( destElements[i] ) {
- cloneFixAttributes( srcElements[i], destElements[i] );
- }
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- cloneCopyEvent( elem, clone );
-
- if ( deepDataAndEvents ) {
- srcElements = getAll( elem );
- destElements = getAll( clone );
-
- for ( i = 0; srcElements[i]; ++i ) {
- cloneCopyEvent( srcElements[i], destElements[i] );
- }
- }
- }
-
- srcElements = destElements = null;
-
- // Return the cloned set
- return clone;
- },
-
- clean: function( elems, context, fragment, scripts ) {
- var checkScriptType, script, j,
- ret = [];
-
- context = context || document;
-
- // !context.createElement fails in IE with an error but returns typeof 'object'
- if ( typeof context.createElement === "undefined" ) {
- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
- }
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( typeof elem === "number" ) {
- elem += "";
- }
-
- if ( !elem ) {
- continue;
- }
-
- // Convert html string into DOM nodes
- if ( typeof elem === "string" ) {
- if ( !rhtml.test( elem ) ) {
- elem = context.createTextNode( elem );
- } else {
- // Fix "XHTML"-style tags in all browsers
- elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
- // Trim whitespace, otherwise indexOf won't work as expected
- var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
- wrap = wrapMap[ tag ] || wrapMap._default,
- depth = wrap[0],
- div = context.createElement("div"),
- safeChildNodes = safeFragment.childNodes,
- remove;
-
- // Append wrapper element to unknown element safe doc fragment
- if ( context === document ) {
- // Use the fragment we've already created for this document
- safeFragment.appendChild( div );
- } else {
- // Use a fragment created with the owner document
- createSafeFragment( context ).appendChild( div );
- }
-
- // Go to html and back, then peel off extra wrappers
- div.innerHTML = wrap[1] + elem + wrap[2];
-
- // Move to the right depth
- while ( depth-- ) {
- div = div.lastChild;
- }
-
- // Remove IE's autoinserted <tbody> from table fragments
- if ( !jQuery.support.tbody ) {
-
- // String was a <table>, *may* have spurious <tbody>
- var hasBody = rtbody.test(elem),
- tbody = tag === "table" && !hasBody ?
- div.firstChild && div.firstChild.childNodes :
-
- // String was a bare <thead> or <tfoot>
- wrap[1] === "<table>" && !hasBody ?
- div.childNodes :
- [];
-
- for ( j = tbody.length - 1; j >= 0 ; --j ) {
- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
- tbody[ j ].parentNode.removeChild( tbody[ j ] );
- }
- }
- }
-
- // IE completely kills leading whitespace when innerHTML is used
- if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
- div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
- }
-
- elem = div.childNodes;
-
- // Clear elements from DocumentFragment (safeFragment or otherwise)
- // to avoid hoarding elements. Fixes #11356
- if ( div ) {
- div.parentNode.removeChild( div );
-
- // Guard against -1 index exceptions in FF3.6
- if ( safeChildNodes.length > 0 ) {
- remove = safeChildNodes[ safeChildNodes.length - 1 ];
-
- if ( remove && remove.parentNode ) {
- remove.parentNode.removeChild( remove );
- }
- }
- }
- }
- }
-
- // Resets defaultChecked for any radios and checkboxes
- // about to be appended to the DOM in IE 6/7 (#8060)
- var len;
- if ( !jQuery.support.appendChecked ) {
- if ( elem[0] && typeof (len = elem.length) === "number" ) {
- for ( j = 0; j < len; j++ ) {
- findInputs( elem[j] );
- }
- } else {
- findInputs( elem );
- }
- }
-
- if ( elem.nodeType ) {
- ret.push( elem );
- } else {
- ret = jQuery.merge( ret, elem );
- }
- }
-
- if ( fragment ) {
- checkScriptType = function( elem ) {
- return !elem.type || rscriptType.test( elem.type );
- };
- for ( i = 0; ret[i]; i++ ) {
- script = ret[i];
- if ( scripts && jQuery.nodeName( script, "script" ) && (!script.type || rscriptType.test( script.type )) ) {
- scripts.push( script.parentNode ? script.parentNode.removeChild( script ) : script );
-
- } else {
- if ( script.nodeType === 1 ) {
- var jsTags = jQuery.grep( script.getElementsByTagName( "script" ), checkScriptType );
-
- ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
- }
- fragment.appendChild( script );
- }
- }
- }
-
- return ret;
- },
-
- cleanData: function( elems ) {
- var data, id,
- cache = jQuery.cache,
- special = jQuery.event.special,
- deleteExpando = jQuery.support.deleteExpando;
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
- continue;
- }
-
- id = elem[ jQuery.expando ];
-
- if ( id ) {
- data = cache[ id ];
-
- if ( data && data.events ) {
- for ( var type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
-
- // Null the DOM reference to avoid IE6/7/8 leak (#7054)
- if ( data.handle ) {
- data.handle.elem = null;
- }
- }
-
- if ( deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
- }
-
- delete cache[ id ];
- }
- }
- }
-});
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
- ropacity = /opacity=([^)]*)/,
- // fixed for IE9, see #8346
- rupper = /([A-Z]|^ms)/g,
- rnum = /^[\-+]?(?:\d*\.)?\d+$/i,
- rnumnonpx = /^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,
- rrelNum = /^([\-+])=([\-+.\de]+)/,
- rmargin = /^margin/,
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-
- // order is important!
- cssExpand = [ "Top", "Right", "Bottom", "Left" ],
-
- curCSS,
-
- getComputedStyle,
- currentStyle;
-
-jQuery.fn.css = function( name, value ) {
- return jQuery.access( this, function( elem, name, value ) {
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
-};
-
-jQuery.extend({
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
-
- } else {
- return elem.style.opacity;
- }
- }
- }
- },
-
- // Exclude the following css properties to add px
- cssNumber: {
- "fillOpacity": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- // normalize float css property
- "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, origName = jQuery.camelCase( name ),
- style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
- name = jQuery.cssProps[ origName ] || origName;
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // convert relative number strings (+= or -=) to relative numbers. #7345
- if ( type === "string" && (ret = rrelNum.exec( value )) ) {
- value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that NaN and null values aren't set. See: #7116
- if ( value == null || type === "number" && isNaN( value ) ) {
- return;
- }
-
- // If a number was passed in, add 'px' to the (except for certain CSS properties)
- if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
- value += "px";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
- // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
- // Fixes bug #5509
- try {
- style[ name ] = value;
- } catch(e) {}
- }
-
- } else {
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra ) {
- var ret, hooks;
-
- // Make sure that we're working with the right name
- name = jQuery.camelCase( name );
- hooks = jQuery.cssHooks[ name ];
- name = jQuery.cssProps[ name ] || name;
-
- // cssFloat needs a special treatment
- if ( name === "cssFloat" ) {
- name = "float";
- }
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
- return ret;
-
- // Otherwise, if a way to get the computed value exists, use that
- } else if ( curCSS ) {
- return curCSS( elem, name );
- }
- },
-
- // A method for quickly swapping in/out CSS properties to get correct calculations
- swap: function( elem, options, callback ) {
- var old = {},
- ret, name;
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.call( elem );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
- }
-});
-
-// DEPRECATED in 1.3, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
- getComputedStyle = function( elem, name ) {
- var ret, defaultView, computedStyle, width,
- style = elem.style;
-
- name = name.replace( rupper, "-$1" ).toLowerCase();
-
- if ( (defaultView = elem.ownerDocument.defaultView) &&
- (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
-
- ret = computedStyle.getPropertyValue( name );
- if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
- ret = jQuery.style( elem, name );
- }
- }
-
- // A tribute to the "awesome hack by Dean Edwards"
- // WebKit uses "computed value (percentage if specified)" instead of "used value" for margins
- // which is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
- if ( !jQuery.support.pixelMargin && computedStyle && rmargin.test( name ) && rnumnonpx.test( ret ) ) {
- width = style.width;
- style.width = ret;
- ret = computedStyle.width;
- style.width = width;
- }
-
- return ret;
- };
-}
-
-if ( document.documentElement.currentStyle ) {
- currentStyle = function( elem, name ) {
- var left, rsLeft, uncomputed,
- ret = elem.currentStyle && elem.currentStyle[ name ],
- style = elem.style;
-
- // Avoid setting ret to empty string here
- // so we don't default to auto
- if ( ret == null && style && (uncomputed = style[ name ]) ) {
- ret = uncomputed;
- }
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- if ( rnumnonpx.test( ret ) ) {
-
- // Remember the original values
- left = style.left;
- rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
-
- // Put in the new values to get a computed value out
- if ( rsLeft ) {
- elem.runtimeStyle.left = elem.currentStyle.left;
- }
- style.left = name === "fontSize" ? "1em" : ret;
- ret = style.pixelLeft + "px";
-
- // Revert the changed values
- style.left = left;
- if ( rsLeft ) {
- elem.runtimeStyle.left = rsLeft;
- }
- }
-
- return ret === "" ? "auto" : ret;
- };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property
- var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
- i = name === "width" ? 1 : 0,
- len = 4;
-
- if ( val > 0 ) {
- if ( extra !== "border" ) {
- for ( ; i < len; i += 2 ) {
- if ( !extra ) {
- val -= parseFloat( jQuery.css( elem, "padding" + cssExpand[ i ] ) ) || 0;
- }
- if ( extra === "margin" ) {
- val += parseFloat( jQuery.css( elem, extra + cssExpand[ i ] ) ) || 0;
- } else {
- val -= parseFloat( jQuery.css( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
- }
- }
- }
-
- return val + "px";
- }
-
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test(val) ) {
- return val;
- }
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
-
- // Add padding, border, margin
- if ( extra ) {
- for ( ; i < len; i += 2 ) {
- val += parseFloat( jQuery.css( elem, "padding" + cssExpand[ i ] ) ) || 0;
- if ( extra !== "padding" ) {
- val += parseFloat( jQuery.css( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
- }
- if ( extra === "margin" ) {
- val += parseFloat( jQuery.css( elem, extra + cssExpand[ i ]) ) || 0;
- }
- }
- }
-
- return val + "px";
-}
-
-jQuery.each([ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
- if ( elem.offsetWidth !== 0 ) {
- return getWidthOrHeight( elem, name, extra );
- } else {
- return jQuery.swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- });
- }
- }
- },
-
- set: function( elem, value ) {
- return rnum.test( value ) ?
- value + "px" :
- value;
- }
- };
-});
-
-if ( !jQuery.support.opacity ) {
- jQuery.cssHooks.opacity = {
- get: function( elem, computed ) {
- // IE uses filters for opacity
- return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
- ( parseFloat( RegExp.$1 ) / 100 ) + "" :
- computed ? "1" : "";
- },
-
- set: function( elem, value ) {
- var style = elem.style,
- currentStyle = elem.currentStyle,
- opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
- filter = currentStyle && currentStyle.filter || style.filter || "";
-
- // IE has trouble with opacity if it does not have layout
- // Force it by setting the zoom level
- style.zoom = 1;
-
- // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
- if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
-
- // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
- // if "filter:" is present at all, clearType is disabled, we want to avoid this
- // style.removeAttribute is IE Only, but so apparently is this code path...
- style.removeAttribute( "filter" );
-
- // if there there is no filter style applied in a css rule, we are done
- if ( currentStyle && !currentStyle.filter ) {
- return;
- }
- }
-
- // otherwise, set new filter values
- style.filter = ralpha.test( filter ) ?
- filter.replace( ralpha, opacity ) :
- filter + " " + opacity;
- }
- };
-}
-
-jQuery(function() {
- // This hook cannot be added until DOM ready because the support test
- // for it is not run until after DOM ready
- if ( !jQuery.support.reliableMarginRight ) {
- jQuery.cssHooks.marginRight = {
- get: function( elem, computed ) {
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- // Work around by temporarily setting element display to inline-block
- return jQuery.swap( elem, { "display": "inline-block" }, function() {
- if ( computed ) {
- return curCSS( elem, "margin-right" );
- } else {
- return elem.style.marginRight;
- }
- });
- }
- };
- }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.hidden = function( elem ) {
- var width = elem.offsetWidth,
- height = elem.offsetHeight;
-
- return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
- };
-
- jQuery.expr.filters.visible = function( elem ) {
- return !jQuery.expr.filters.hidden( elem );
- };
-}
-
-// These hooks are used by animate to expand properties
-jQuery.each({
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
-
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i,
-
- // assumes a single number if not a string
- parts = typeof value === "string" ? value.split(" ") : [ value ],
- expanded = {};
-
- for ( i = 0; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-});
-
-
-
-
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rhash = /#.*$/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
- rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
- rquery = /\?/,
- rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
- rselectTextarea = /^(?:select|textarea)/i,
- rspacesAjax = /\s+/,
- rts = /([?&])_=[^&]*/,
- rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
-
- // Keep a copy of the old load method
- _load = jQuery.fn.load,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Document location
- ajaxLocation,
-
- // Document location segments
- ajaxLocParts,
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = ["*/"] + ["*"];
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
- ajaxLocation = location.href;
-} catch( e ) {
- // Use the href attribute of an A element
- // since IE will modify it given document.location
- ajaxLocation = document.createElement( "a" );
- ajaxLocation.href = "";
- ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- if ( jQuery.isFunction( func ) ) {
- var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
- i = 0,
- length = dataTypes.length,
- dataType,
- list,
- placeBefore;
-
- // For each dataType in the dataTypeExpression
- for ( ; i < length; i++ ) {
- dataType = dataTypes[ i ];
- // We control if we're asked to add before
- // any existing element
- placeBefore = /^\+/.test( dataType );
- if ( placeBefore ) {
- dataType = dataType.substr( 1 ) || "*";
- }
- list = structure[ dataType ] = structure[ dataType ] || [];
- // then we add to the structure accordingly
- list[ placeBefore ? "unshift" : "push" ]( func );
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
- dataType /* internal */, inspected /* internal */ ) {
-
- dataType = dataType || options.dataTypes[ 0 ];
- inspected = inspected || {};
-
- inspected[ dataType ] = true;
-
- var list = structure[ dataType ],
- i = 0,
- length = list ? list.length : 0,
- executeOnly = ( structure === prefilters ),
- selection;
-
- for ( ; i < length && ( executeOnly || !selection ); i++ ) {
- selection = list[ i ]( options, originalOptions, jqXHR );
- // If we got redirected to another dataType
- // we try there if executing only and not done already
- if ( typeof selection === "string" ) {
- if ( !executeOnly || inspected[ selection ] ) {
- selection = undefined;
- } else {
- options.dataTypes.unshift( selection );
- selection = inspectPrefiltersOrTransports(
- structure, options, originalOptions, jqXHR, selection, inspected );
- }
- }
- }
- // If we're only executing or nothing was selected
- // we try the catchall dataType if not done already
- if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
- selection = inspectPrefiltersOrTransports(
- structure, options, originalOptions, jqXHR, "*", inspected );
- }
- // unnecessary when only executing (prefilters)
- // but it'll be ignored by the caller in that case
- return selection;
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var key, deep,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-}
-
-jQuery.fn.extend({
- load: function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
-
- // Don't do a request if no elements are being requested
- } else if ( !this.length ) {
- return this;
- }
-
- var off = url.indexOf( " " );
- if ( off >= 0 ) {
- var selector = url.slice( off, url.length );
- url = url.slice( 0, off );
- }
-
- // Default to a GET request
- var type = "GET";
-
- // If the second parameter was provided
- if ( params ) {
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( typeof params === "object" ) {
- params = jQuery.param( params, jQuery.ajaxSettings.traditional );
- type = "POST";
- }
- }
-
- var self = this;
-
- // Request the remote document
- jQuery.ajax({
- url: url,
- type: type,
- dataType: "html",
- data: params,
- // Complete callback (responseText is used internally)
- complete: function( jqXHR, status, responseText ) {
- // Store the response as specified by the jqXHR object
- responseText = jqXHR.responseText;
- // If successful, inject the HTML into all the matched elements
- if ( jqXHR.isResolved() ) {
- // #4825: Get the actual response in case
- // a dataFilter is present in ajaxSettings
- jqXHR.done(function( r ) {
- responseText = r;
- });
- // See if a selector was specified
- self.html( selector ?
- // Create a dummy div to hold the results
- jQuery("<div>")
- // inject the contents of the document in, removing the scripts
- // to avoid any 'Permission Denied' errors in IE
- .append(responseText.replace(rscript, ""))
-
- // Locate the specified elements
- .find(selector) :
-
- // If not, just inject the full result
- responseText );
- }
-
- if ( callback ) {
- self.each( callback, [ responseText, status, jqXHR ] );
- }
- }
- });
-
- return this;
- },
-
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
-
- serializeArray: function() {
- return this.map(function(){
- return this.elements ? jQuery.makeArray( this.elements ) : this;
- })
- .filter(function(){
- return this.name && !this.disabled &&
- ( this.checked || rselectTextarea.test( this.nodeName ) ||
- rinput.test( this.type ) );
- })
- .map(function( i, elem ){
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val, i ){
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- }) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- }).get();
- }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
- jQuery.fn[ o ] = function( f ){
- return this.on( o, f );
- };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
- // shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- return jQuery.ajax({
- type: method,
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- };
-});
-
-jQuery.extend({
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- if ( settings ) {
- // Building a settings object
- ajaxExtend( target, jQuery.ajaxSettings );
- } else {
- // Extending ajaxSettings
- settings = target;
- target = jQuery.ajaxSettings;
- }
- ajaxExtend( target, settings );
- return target;
- },
-
- ajaxSettings: {
- url: ajaxLocation,
- isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
- global: true,
- type: "GET",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- processData: true,
- async: true,
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- xml: "application/xml, text/xml",
- html: "text/html",
- text: "text/plain",
- json: "application/json, text/javascript",
- "*": allTypes
- },
-
- contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText"
- },
-
- // List of data converters
- // 1) key format is "source_type destination_type" (a single space in-between)
- // 2) the catchall symbol "*" can be used for source_type
- converters: {
-
- // Convert anything to text
- "* text": window.String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- context: true,
- url: true
- }
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
- // Callbacks context
- callbackContext = s.context || s,
- // Context for global events
- // It's the callbackContext if one was provided in the options
- // and if it's a DOM node or a jQuery collection
- globalEventContext = callbackContext !== s &&
- ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
- jQuery( callbackContext ) : jQuery.event,
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks( "once memory" ),
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
- // ifModified key
- ifModifiedKey,
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
- // Response headers
- responseHeadersString,
- responseHeaders,
- // transport
- transport,
- // timeout handle
- timeoutTimer,
- // Cross-domain detection vars
- parts,
- // The jqXHR state
- state = 0,
- // To know if global events are to be dispatched
- fireGlobals,
- // Loop variable
- i,
- // Fake xhr
- jqXHR = {
-
- readyState: 0,
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- if ( !state ) {
- var lname = name.toLowerCase();
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match === undefined ? null : match;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- statusText = statusText || "abort";
- if ( transport ) {
- transport.abort( statusText );
- }
- done( 0, statusText );
- return this;
- }
- };
-
- // Callback for when everything is done
- // It is defined here because jslint complains if it is declared
- // at the end of the function (which would be more logical and readable)
- function done( status, nativeStatusText, responses, headers ) {
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- var isSuccess,
- success,
- error,
- statusText = nativeStatusText,
- response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
- lastModified,
- etag;
-
- // If successful, handle type chaining
- if ( status >= 200 && status < 300 || status === 304 ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
-
- if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
- jQuery.lastModified[ ifModifiedKey ] = lastModified;
- }
- if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
- jQuery.etag[ ifModifiedKey ] = etag;
- }
- }
-
- // If not modified
- if ( status === 304 ) {
-
- statusText = "notmodified";
- isSuccess = true;
-
- // If we have data
- } else {
-
- try {
- success = ajaxConvert( s, response );
- statusText = "success";
- isSuccess = true;
- } catch(e) {
- // We have a parsererror
- statusText = "parsererror";
- error = e;
- }
- }
- } else {
- // We extract error from statusText
- // then normalize statusText and status for non-aborts
- error = statusText;
- if ( !statusText || status ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = "" + ( nativeStatusText || statusText );
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- // Attach deferreds
- deferred.promise( jqXHR );
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
- jqXHR.complete = completeDeferred.add;
-
- // Status-dependent callbacks
- jqXHR.statusCode = function( map ) {
- if ( map ) {
- var tmp;
- if ( state < 2 ) {
- for ( tmp in map ) {
- statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
- }
- } else {
- tmp = map[ jqXHR.status ];
- jqXHR.then( tmp, tmp );
- }
- }
- return this;
- };
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
- // We also use the url parameter if available
- s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
-
- // Determine if a cross-domain request is in order
- if ( s.crossDomain == null ) {
- parts = rurl.exec( s.url.toLowerCase() );
- s.crossDomain = !!( parts &&
- ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
- ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
- ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
- );
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return false;
- }
-
- // We can fire global events as of now if asked to
- fireGlobals = s.global;
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Get ifModifiedKey before adding the anti-cache parameter
- ifModifiedKey = s.url;
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
-
- var ts = jQuery.now(),
- // try replacing _= if it is there
- ret = s.url.replace( rts, "$1_=" + ts );
-
- // if nothing was replaced, add timestamp to the end
- s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- ifModifiedKey = ifModifiedKey || s.url;
- if ( jQuery.lastModified[ ifModifiedKey ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
- }
- if ( jQuery.etag[ ifModifiedKey ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
- }
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
- s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
- // Abort if not done already
- jqXHR.abort();
- return false;
-
- }
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = setTimeout( function(){
- jqXHR.abort( "timeout" );
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch (e) {
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- return jqXHR;
- },
-
- // Serialize an array of form elements or a set of
- // key/values into a query string
- param: function( a, traditional ) {
- var s = [],
- add = function( key, value ) {
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction( value ) ? value() : value;
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- });
-
- } else {
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( var prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" ).replace( r20, "+" );
- }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
- if ( jQuery.isArray( obj ) ) {
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
- // If array item is non-scalar (array or object), encode its
- // numeric index to resolve deserialization ambiguity issues.
- // Note that rack (as of 1.0.0) can't currently deserialize
- // nested arrays properly, and attempting to do so may cause
- // a server error. Possible fixes are to modify rack's
- // deserialization algorithm or to provide an option or flag
- // to force array serialization to be shallow.
- buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
- }
- });
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
- // Serialize object item.
- for ( var name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {}
-
-});
-
-/* Handles responses to an ajax request:
- * - sets all responseXXX fields accordingly
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var contents = s.contents,
- dataTypes = s.dataTypes,
- responseFields = s.responseFields,
- ct,
- type,
- finalDataType,
- firstDataType;
-
- // Fill responseXXX fields
- for ( type in responseFields ) {
- if ( type in responses ) {
- jqXHR[ responseFields[type] ] = responses[ type ];
- }
- }
-
- // Remove auto dataType and get content-type in the process
- while( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-// Chain conversions given the request and the original response
-function ajaxConvert( s, response ) {
-
- // Apply the dataFilter if provided
- if ( s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- var dataTypes = s.dataTypes,
- converters = {},
- i,
- key,
- length = dataTypes.length,
- tmp,
- // Current and previous dataTypes
- current = dataTypes[ 0 ],
- prev,
- // Conversion expression
- conversion,
- // Conversion function
- conv,
- // Conversion functions (transitive conversion)
- conv1,
- conv2;
-
- // For each dataType in the chain
- for ( i = 1; i < length; i++ ) {
-
- // Create converters map
- // with lowercased keys
- if ( i === 1 ) {
- for ( key in s.converters ) {
- if ( typeof key === "string" ) {
- converters[ key.toLowerCase() ] = s.converters[ key ];
- }
- }
- }
-
- // Get the dataTypes
- prev = current;
- current = dataTypes[ i ];
-
- // If current is auto dataType, update it to prev
- if ( current === "*" ) {
- current = prev;
- // If no auto and dataTypes are actually different
- } else if ( prev !== "*" && prev !== current ) {
-
- // Get the converter
- conversion = prev + " " + current;
- conv = converters[ conversion ] || converters[ "* " + current ];
-
- // If there is no direct converter, search transitively
- if ( !conv ) {
- conv2 = undefined;
- for ( conv1 in converters ) {
- tmp = conv1.split( " " );
- if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
- conv2 = converters[ tmp[1] + " " + current ];
- if ( conv2 ) {
- conv1 = converters[ conv1 ];
- if ( conv1 === true ) {
- conv = conv2;
- } else if ( conv2 === true ) {
- conv = conv1;
- }
- break;
- }
- }
- }
- }
- // If we found no converter, dispatch an error
- if ( !( conv || conv2 ) ) {
- jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
- }
- // If found converter is not an equivalence
- if ( conv !== true ) {
- // Convert with 1 or 2 converters accordingly
- response = conv ? conv( response ) : conv2( conv1(response) );
- }
- }
- }
- return response;
-}
-
-
-
-
-var jsc = jQuery.now(),
- jsre = /(\=)\?(&|$)|\?\?/i;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- return jQuery.expando + "_" + ( jsc++ );
- }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var inspectData = ( typeof s.data === "string" ) && /^application\/x\-www\-form\-urlencoded/.test( s.contentType );
-
- if ( s.dataTypes[ 0 ] === "jsonp" ||
- s.jsonp !== false && ( jsre.test( s.url ) ||
- inspectData && jsre.test( s.data ) ) ) {
-
- var responseContainer,
- jsonpCallback = s.jsonpCallback =
- jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
- previous = window[ jsonpCallback ],
- url = s.url,
- data = s.data,
- replace = "$1" + jsonpCallback + "$2";
-
- if ( s.jsonp !== false ) {
- url = url.replace( jsre, replace );
- if ( s.url === url ) {
- if ( inspectData ) {
- data = data.replace( jsre, replace );
- }
- if ( s.data === data ) {
- // Add callback manually
- url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
- }
- }
- }
-
- s.url = url;
- s.data = data;
-
- // Install callback
- window[ jsonpCallback ] = function( response ) {
- responseContainer = [ response ];
- };
-
- // Clean-up function
- jqXHR.always(function() {
- // Set callback back to previous value
- window[ jsonpCallback ] = previous;
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( previous ) ) {
- window[ jsonpCallback ]( responseContainer[ 0 ] );
- }
- });
-
- // Use data converter to retrieve json after script execution
- s.converters["script json"] = function() {
- if ( !responseContainer ) {
- jQuery.error( jsonpCallback + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Delegate to script
- return "script";
- }
-});
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /javascript|ecmascript/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- s.global = false;
- }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
-
- var script,
- head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
-
- return {
-
- send: function( _, callback ) {
-
- script = document.createElement( "script" );
-
- script.async = "async";
-
- if ( s.scriptCharset ) {
- script.charset = s.scriptCharset;
- }
-
- script.src = s.url;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function( _, isAbort ) {
-
- if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = null;
-
- // Remove the script
- if ( head && script.parentNode ) {
- head.removeChild( script );
- }
-
- // Dereference the script
- script = undefined;
-
- // Callback if not abort
- if ( !isAbort ) {
- callback( 200, "success" );
- }
- }
- };
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709 and #4378).
- head.insertBefore( script, head.firstChild );
- },
-
- abort: function() {
- if ( script ) {
- script.onload( 0, 1 );
- }
- }
- };
- }
-});
-
-
-
-
-var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
- xhrOnUnloadAbort = window.ActiveXObject ? function() {
- // Abort all pending requests
- for ( var key in xhrCallbacks ) {
- xhrCallbacks[ key ]( 0, 1 );
- }
- } : false,
- xhrId = 0,
- xhrCallbacks;
-
-// Functions to create xhrs
-function createStandardXHR() {
- try {
- return new window.XMLHttpRequest();
- } catch( e ) {}
-}
-
-function createActiveXHR() {
- try {
- return new window.ActiveXObject( "Microsoft.XMLHTTP" );
- } catch( e ) {}
-}
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject ?
- /* Microsoft failed to properly
- * implement the XMLHttpRequest in IE7 (can't request local files),
- * so we use the ActiveXObject when it is available
- * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
- * we need a fallback.
- */
- function() {
- return !this.isLocal && createStandardXHR() || createActiveXHR();
- } :
- // For all other browsers, use the standard XMLHttpRequest object
- createStandardXHR;
-
-// Determine support properties
-(function( xhr ) {
- jQuery.extend( jQuery.support, {
- ajax: !!xhr,
- cors: !!xhr && ( "withCredentials" in xhr )
- });
-})( jQuery.ajaxSettings.xhr() );
-
-// Create transport if the browser can provide an xhr
-if ( jQuery.support.ajax ) {
-
- jQuery.ajaxTransport(function( s ) {
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( !s.crossDomain || jQuery.support.cors ) {
-
- var callback;
-
- return {
- send: function( headers, complete ) {
-
- // Get a new xhr
- var xhr = s.xhr(),
- handle,
- i;
-
- // Open the socket
- // Passing null username, generates a login popup on Opera (#2865)
- if ( s.username ) {
- xhr.open( s.type, s.url, s.async, s.username, s.password );
- } else {
- xhr.open( s.type, s.url, s.async );
- }
-
- // Apply custom fields if provided
- if ( s.xhrFields ) {
- for ( i in s.xhrFields ) {
- xhr[ i ] = s.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( s.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( s.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !s.crossDomain && !headers["X-Requested-With"] ) {
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
- }
-
- // Need an extra try/catch for cross domain requests in Firefox 3
- try {
- for ( i in headers ) {
- xhr.setRequestHeader( i, headers[ i ] );
- }
- } catch( _ ) {}
-
- // Do send the request
- // This may raise an exception which is actually
- // handled in jQuery.ajax (so no try/catch here)
- xhr.send( ( s.hasContent && s.data ) || null );
-
- // Listener
- callback = function( _, isAbort ) {
-
- var status,
- statusText,
- responseHeaders,
- responses,
- xml;
-
- // Firefox throws exceptions when accessing properties
- // of an xhr when a network error occured
- // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
- try {
-
- // Was never called and is aborted or complete
- if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
- // Only called once
- callback = undefined;
-
- // Do not keep as active anymore
- if ( handle ) {
- xhr.onreadystatechange = jQuery.noop;
- if ( xhrOnUnloadAbort ) {
- delete xhrCallbacks[ handle ];
- }
- }
-
- // If it's an abort
- if ( isAbort ) {
- // Abort it manually if needed
- if ( xhr.readyState !== 4 ) {
- xhr.abort();
- }
- } else {
- status = xhr.status;
- responseHeaders = xhr.getAllResponseHeaders();
- responses = {};
- xml = xhr.responseXML;
-
- // Construct response list
- if ( xml && xml.documentElement /* #4958 */ ) {
- responses.xml = xml;
- }
-
- // When requesting binary data, IE6-9 will throw an exception
- // on any attempt to access responseText (#11426)
- try {
- responses.text = xhr.responseText;
- } catch( _ ) {
- }
-
- // Firefox throws an exception when accessing
- // statusText for faulty cross-domain requests
- try {
- statusText = xhr.statusText;
- } catch( e ) {
- // We normalize with Webkit giving an empty statusText
- statusText = "";
- }
-
- // Filter status for non standard behaviors
-
- // If the request is local and we have data: assume a success
- // (success with no data won't get notified, that's the best we
- // can do given current implementations)
- if ( !status && s.isLocal && !s.crossDomain ) {
- status = responses.text ? 200 : 404;
- // IE - #1450: sometimes returns 1223 when it should be 204
- } else if ( status === 1223 ) {
- status = 204;
- }
- }
- }
- } catch( firefoxAccessException ) {
- if ( !isAbort ) {
- complete( -1, firefoxAccessException );
- }
- }
-
- // Call complete if needed
- if ( responses ) {
- complete( status, statusText, responses, responseHeaders );
- }
- };
-
- // if we're in sync mode or it's in cache
- // and has been retrieved directly (IE6 & IE7)
- // we need to manually fire the callback
- if ( !s.async || xhr.readyState === 4 ) {
- callback();
- } else {
- handle = ++xhrId;
- if ( xhrOnUnloadAbort ) {
- // Create the active xhrs callbacks list if needed
- // and attach the unload handler
- if ( !xhrCallbacks ) {
- xhrCallbacks = {};
- jQuery( window ).unload( xhrOnUnloadAbort );
- }
- // Add to list of active xhrs callbacks
- xhrCallbacks[ handle ] = callback;
- }
- xhr.onreadystatechange = callback;
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback(0,1);
- }
- }
- };
- }
- });
-}
-
-
-
-
-var elemdisplay = {},
- iframe, iframeDoc,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
- timerId,
- fxAttrs = [
- // height animations
- [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
- // width animations
- [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
- // opacity animations
- [ "opacity" ]
- ],
- fxNow;
-
-jQuery.fn.extend({
- show: function( speed, easing, callback ) {
- var elem, display;
-
- if ( speed || speed === 0 ) {
- return this.animate( genFx("show", 3), speed, easing, callback );
-
- } else {
- for ( var i = 0, j = this.length; i < j; i++ ) {
- elem = this[ i ];
-
- if ( elem.style ) {
- display = elem.style.display;
-
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
- display = elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( (display === "" && jQuery.css(elem, "display") === "none") ||
- !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
- jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
- }
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( i = 0; i < j; i++ ) {
- elem = this[ i ];
-
- if ( elem.style ) {
- display = elem.style.display;
-
- if ( display === "" || display === "none" ) {
- elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
- }
- }
- }
-
- return this;
- }
- },
-
- hide: function( speed, easing, callback ) {
- if ( speed || speed === 0 ) {
- return this.animate( genFx("hide", 3), speed, easing, callback);
-
- } else {
- var elem, display,
- i = 0,
- j = this.length;
-
- for ( ; i < j; i++ ) {
- elem = this[i];
- if ( elem.style ) {
- display = jQuery.css( elem, "display" );
-
- if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
- jQuery._data( elem, "olddisplay", display );
- }
- }
- }
-
- // Set the display of the elements in a second loop
- // to avoid the constant reflow
- for ( i = 0; i < j; i++ ) {
- if ( this[i].style ) {
- this[i].style.display = "none";
- }
- }
-
- return this;
- }
- },
-
- // Save the old toggle function
- _toggle: jQuery.fn.toggle,
-
- toggle: function( fn, fn2, callback ) {
- var bool = typeof fn === "boolean";
-
- if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
- this._toggle.apply( this, arguments );
-
- } else if ( fn == null || bool ) {
- this.each(function() {
- var state = bool ? fn : jQuery(this).is(":hidden");
- jQuery(this)[ state ? "show" : "hide" ]();
- });
-
- } else {
- this.animate(genFx("toggle", 3), fn, fn2, callback);
- }
-
- return this;
- },
-
- fadeTo: function( speed, to, easing, callback ) {
- return this.filter(":hidden").css("opacity", 0).show().end()
- .animate({opacity: to}, speed, easing, callback);
- },
-
- animate: function( prop, speed, easing, callback ) {
- var optall = jQuery.speed( speed, easing, callback );
-
- if ( jQuery.isEmptyObject( prop ) ) {
- return this.each( optall.complete, [ false ] );
- }
-
- // Do not change referenced properties as per-property easing will be lost
- prop = jQuery.extend( {}, prop );
-
- function doAnimation() {
- // XXX 'this' does not always have a nodeName when running the
- // test suite
-
- if ( optall.queue === false ) {
- jQuery._mark( this );
- }
-
- var opt = jQuery.extend( {}, optall ),
- isElement = this.nodeType === 1,
- hidden = isElement && jQuery(this).is(":hidden"),
- name, val, p, e, hooks, replace,
- parts, start, end, unit,
- method;
-
- // will store per property easing and be used to determine when an animation is complete
- opt.animatedProperties = {};
-
- // first pass over propertys to expand / normalize
- for ( p in prop ) {
- name = jQuery.camelCase( p );
- if ( p !== name ) {
- prop[ name ] = prop[ p ];
- delete prop[ p ];
- }
-
- if ( ( hooks = jQuery.cssHooks[ name ] ) && "expand" in hooks ) {
- replace = hooks.expand( prop[ name ] );
- delete prop[ name ];
-
- // not quite $.extend, this wont overwrite keys already present.
- // also - reusing 'p' from above because we have the correct "name"
- for ( p in replace ) {
- if ( ! ( p in prop ) ) {
- prop[ p ] = replace[ p ];
- }
- }
- }
- }
-
- for ( name in prop ) {
- val = prop[ name ];
- // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
- if ( jQuery.isArray( val ) ) {
- opt.animatedProperties[ name ] = val[ 1 ];
- val = prop[ name ] = val[ 0 ];
- } else {
- opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
- }
-
- if ( val === "hide" && hidden || val === "show" && !hidden ) {
- return opt.complete.call( this );
- }
-
- if ( isElement && ( name === "height" || name === "width" ) ) {
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE does not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height animated
- if ( jQuery.css( this, "display" ) === "inline" &&
- jQuery.css( this, "float" ) === "none" ) {
-
- // inline-level elements accept inline-block;
- // block-level elements need to be inline with layout
- if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
- this.style.display = "inline-block";
-
- } else {
- this.style.zoom = 1;
- }
- }
- }
- }
-
- if ( opt.overflow != null ) {
- this.style.overflow = "hidden";
- }
-
- for ( p in prop ) {
- e = new jQuery.fx( this, opt, p );
- val = prop[ p ];
-
- if ( rfxtypes.test( val ) ) {
-
- // Tracks whether to show or hide based on private
- // data attached to the element
- method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
- if ( method ) {
- jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
- e[ method ]();
- } else {
- e[ val ]();
- }
-
- } else {
- parts = rfxnum.exec( val );
- start = e.cur();
-
- if ( parts ) {
- end = parseFloat( parts[2] );
- unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
-
- // We need to compute starting value
- if ( unit !== "px" ) {
- jQuery.style( this, p, (end || 1) + unit);
- start = ( (end || 1) / e.cur() ) * start;
- jQuery.style( this, p, start + unit);
- }
-
- // If a +=/-= token was provided, we're doing a relative animation
- if ( parts[1] ) {
- end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
- }
-
- e.custom( start, end, unit );
-
- } else {
- e.custom( start, val, "" );
- }
- }
- }
-
- // For JS strict compliance
- return true;
- }
-
- return optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
-
- stop: function( type, clearQueue, gotoEnd ) {
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each(function() {
- var index,
- hadTimers = false,
- timers = jQuery.timers,
- data = jQuery._data( this );
-
- // clear marker counters if we know they won't be
- if ( !gotoEnd ) {
- jQuery._unmark( true, this );
- }
-
- function stopQueue( elem, data, index ) {
- var hooks = data[ index ];
- jQuery.removeData( elem, index, true );
- hooks.stop( gotoEnd );
- }
-
- if ( type == null ) {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
- stopQueue( this, data, index );
- }
- }
- } else if ( data[ index = type + ".run" ] && data[ index ].stop ){
- stopQueue( this, data, index );
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
- if ( gotoEnd ) {
-
- // force the next step to be the last
- timers[ index ]( true );
- } else {
- timers[ index ].saveState();
- }
- hadTimers = true;
- timers.splice( index, 1 );
- }
- }
-
- // start the next in the queue if the last step wasn't forced
- // timers currently will call their complete callbacks, which will dequeue
- // but only if they were gotoEnd
- if ( !( gotoEnd && hadTimers ) ) {
- jQuery.dequeue( this, type );
- }
- });
- }
-
-});
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- setTimeout( clearFxNow, 0 );
- return ( fxNow = jQuery.now() );
-}
-
-function clearFxNow() {
- fxNow = undefined;
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, num ) {
- var obj = {};
-
- jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
- obj[ this ] = type;
- });
-
- return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
- slideDown: genFx( "show", 1 ),
- slideUp: genFx( "hide", 1 ),
- slideToggle: genFx( "toggle", 1 ),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-});
-
-jQuery.extend({
- speed: function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
- opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
- // normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function( noUnmark ) {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- } else if ( noUnmark !== false ) {
- jQuery._unmark( this );
- }
- };
-
- return opt;
- },
-
- easing: {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return ( -Math.cos( p*Math.PI ) / 2 ) + 0.5;
- }
- },
-
- timers: [],
-
- fx: function( elem, options, prop ) {
- this.options = options;
- this.elem = elem;
- this.prop = prop;
-
- options.orig = options.orig || {};
- }
-
-});
-
-jQuery.fx.prototype = {
- // Simple function for setting a style value
- update: function() {
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
- },
-
- // Get the current size
- cur: function() {
- if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
- return this.elem[ this.prop ];
- }
-
- var parsed,
- r = jQuery.css( this.elem, this.prop );
- // Empty strings, null, undefined and "auto" are converted to 0,
- // complex values such as "rotate(1rad)" are returned as is,
- // simple values such as "10px" are parsed to Float.
- return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
- },
-
- // Start an animation from one number to another
- custom: function( from, to, unit ) {
- var self = this,
- fx = jQuery.fx;
-
- this.startTime = fxNow || createFxNow();
- this.end = to;
- this.now = this.start = from;
- this.pos = this.state = 0;
- this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
-
- function t( gotoEnd ) {
- return self.step( gotoEnd );
- }
-
- t.queue = this.options.queue;
- t.elem = this.elem;
- t.saveState = function() {
- if ( jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
- if ( self.options.hide ) {
- jQuery._data( self.elem, "fxshow" + self.prop, self.start );
- } else if ( self.options.show ) {
- jQuery._data( self.elem, "fxshow" + self.prop, self.end );
- }
- }
- };
-
- if ( t() && jQuery.timers.push(t) && !timerId ) {
- timerId = setInterval( fx.tick, fx.interval );
- }
- },
-
- // Simple 'show' function
- show: function() {
- var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
-
- // Remember where we started, so that we can go back to it later
- this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
- this.options.show = true;
-
- // Begin the animation
- // Make sure that we start at a small width/height to avoid any flash of content
- if ( dataShow !== undefined ) {
- // This show is picking up where a previous hide or show left off
- this.custom( this.cur(), dataShow );
- } else {
- this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
- }
-
- // Start by showing the element
- jQuery( this.elem ).show();
- },
-
- // Simple 'hide' function
- hide: function() {
- // Remember where we started, so that we can go back to it later
- this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
- this.options.hide = true;
-
- // Begin the animation
- this.custom( this.cur(), 0 );
- },
-
- // Each step of an animation
- step: function( gotoEnd ) {
- var p, n, complete,
- t = fxNow || createFxNow(),
- done = true,
- elem = this.elem,
- options = this.options;
-
- if ( gotoEnd || t >= options.duration + this.startTime ) {
- this.now = this.end;
- this.pos = this.state = 1;
- this.update();
-
- options.animatedProperties[ this.prop ] = true;
-
- for ( p in options.animatedProperties ) {
- if ( options.animatedProperties[ p ] !== true ) {
- done = false;
- }
- }
-
- if ( done ) {
- // Reset the overflow
- if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
-
- jQuery.each( [ "", "X", "Y" ], function( index, value ) {
- elem.style[ "overflow" + value ] = options.overflow[ index ];
- });
- }
-
- // Hide the element if the "hide" operation was done
- if ( options.hide ) {
- jQuery( elem ).hide();
- }
-
- // Reset the properties, if the item has been hidden or shown
- if ( options.hide || options.show ) {
- for ( p in options.animatedProperties ) {
- jQuery.style( elem, p, options.orig[ p ] );
- jQuery.removeData( elem, "fxshow" + p, true );
- // Toggle data is no longer needed
- jQuery.removeData( elem, "toggle" + p, true );
- }
- }
-
- // Execute the complete function
- // in the event that the complete function throws an exception
- // we must ensure it won't be called twice. #5684
-
- complete = options.complete;
- if ( complete ) {
-
- options.complete = false;
- complete.call( elem );
- }
- }
-
- return false;
-
- } else {
- // classical easing cannot be used with an Infinity duration
- if ( options.duration == Infinity ) {
- this.now = t;
- } else {
- n = t - this.startTime;
- this.state = n / options.duration;
-
- // Perform the easing function, defaults to swing
- this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
- this.now = this.start + ( (this.end - this.start) * this.pos );
- }
- // Perform the next step of the animation
- this.update();
- }
-
- return true;
- }
-};
-
-jQuery.extend( jQuery.fx, {
- tick: function() {
- var timer,
- timers = jQuery.timers,
- i = 0;
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- },
-
- interval: 13,
-
- stop: function() {
- clearInterval( timerId );
- timerId = null;
- },
-
- speeds: {
- slow: 600,
- fast: 200,
- // Default speed
- _default: 400
- },
-
- step: {
- opacity: function( fx ) {
- jQuery.style( fx.elem, "opacity", fx.now );
- },
-
- _default: function( fx ) {
- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
- fx.elem.style[ fx.prop ] = fx.now + fx.unit;
- } else {
- fx.elem[ fx.prop ] = fx.now;
- }
- }
- }
-});
-
-// Ensure props that can't be negative don't go there on undershoot easing
-jQuery.each( fxAttrs.concat.apply( [], fxAttrs ), function( i, prop ) {
- // exclude marginTop, marginLeft, marginBottom and marginRight from this list
- if ( prop.indexOf( "margin" ) ) {
- jQuery.fx.step[ prop ] = function( fx ) {
- jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
- };
- }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep(jQuery.timers, function( fn ) {
- return elem === fn.elem;
- }).length;
- };
-}
-
-// Try to restore the default display value of an element
-function defaultDisplay( nodeName ) {
-
- if ( !elemdisplay[ nodeName ] ) {
-
- var body = document.body,
- elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
- display = elem.css( "display" );
- elem.remove();
-
- // If the simple way fails,
- // get element's real default display by attaching it to a temp iframe
- if ( display === "none" || display === "" ) {
- // No iframe to use yet, so create it
- if ( !iframe ) {
- iframe = document.createElement( "iframe" );
- iframe.frameBorder = iframe.width = iframe.height = 0;
- }
-
- body.appendChild( iframe );
-
- // Create a cacheable copy of the iframe document on first call.
- // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
- // document to it; WebKit & Firefox won't allow reusing the iframe document.
- if ( !iframeDoc || !iframe.createElement ) {
- iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
- iframeDoc.write( ( jQuery.support.boxModel ? "<!doctype html>" : "" ) + "<html><body>" );
- iframeDoc.close();
- }
-
- elem = iframeDoc.createElement( nodeName );
-
- iframeDoc.body.appendChild( elem );
-
- display = jQuery.css( elem, "display" );
- body.removeChild( iframe );
- }
-
- // Store the correct default display
- elemdisplay[ nodeName ] = display;
- }
-
- return elemdisplay[ nodeName ];
-}
-
-
-
-
-var getOffset,
- rtable = /^t(?:able|d|h)$/i,
- rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
- getOffset = function( elem, doc, docElem, box ) {
- try {
- box = elem.getBoundingClientRect();
- } catch(e) {}
-
- // Make sure we're not dealing with a disconnected DOM node
- if ( !box || !jQuery.contains( docElem, elem ) ) {
- return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
- }
-
- var body = doc.body,
- win = getWindow( doc ),
- clientTop = docElem.clientTop || body.clientTop || 0,
- clientLeft = docElem.clientLeft || body.clientLeft || 0,
- scrollTop = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop,
- scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
- top = box.top + scrollTop - clientTop,
- left = box.left + scrollLeft - clientLeft;
-
- return { top: top, left: left };
- };
-
-} else {
- getOffset = function( elem, doc, docElem ) {
- var computedStyle,
- offsetParent = elem.offsetParent,
- prevOffsetParent = elem,
- body = doc.body,
- defaultView = doc.defaultView,
- prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
- top = elem.offsetTop,
- left = elem.offsetLeft;
-
- while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
- if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
- break;
- }
-
- computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
- top -= elem.scrollTop;
- left -= elem.scrollLeft;
-
- if ( elem === offsetParent ) {
- top += elem.offsetTop;
- left += elem.offsetLeft;
-
- if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevOffsetParent = offsetParent;
- offsetParent = elem.offsetParent;
- }
-
- if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevComputedStyle = computedStyle;
- }
-
- if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
- top += body.offsetTop;
- left += body.offsetLeft;
- }
-
- if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
- top += Math.max( docElem.scrollTop, body.scrollTop );
- left += Math.max( docElem.scrollLeft, body.scrollLeft );
- }
-
- return { top: top, left: left };
- };
-}
-
-jQuery.fn.offset = function( options ) {
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- var elem = this[0],
- doc = elem && elem.ownerDocument;
-
- if ( !doc ) {
- return null;
- }
-
- if ( elem === doc.body ) {
- return jQuery.offset.bodyOffset( elem );
- }
-
- return getOffset( elem, doc, doc.documentElement );
-};
-
-jQuery.offset = {
-
- bodyOffset: function( body ) {
- var top = body.offsetTop,
- left = body.offsetLeft;
-
- if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
- top += parseFloat( jQuery.css(body, "marginTop") ) || 0;
- left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
- }
-
- return { top: top, left: left };
- },
-
- setOffset: function( elem, options, i ) {
- var position = jQuery.css( elem, "position" );
-
- // set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- var curElem = jQuery( elem ),
- curOffset = curElem.offset(),
- curCSSTop = jQuery.css( elem, "top" ),
- curCSSLeft = jQuery.css( elem, "left" ),
- calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
- props = {}, curPosition = {}, curTop, curLeft;
-
- // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
- options = options.call( elem, i, curOffset );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- }
-};
-
-
-jQuery.fn.extend({
-
- position: function() {
- if ( !this[0] ) {
- return null;
- }
-
- var elem = this[0],
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent(),
-
- // Get correct offsets
- offset = this.offset(),
- parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
- // Subtract element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
- offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
- // Add offsetParent borders
- parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
- parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
- // Subtract the two offsets
- return {
- top: offset.top - parentOffset.top,
- left: offset.left - parentOffset.left
- };
- },
-
- offsetParent: function() {
- return this.map(function() {
- var offsetParent = this.offsetParent || document.body;
- while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent;
- });
- }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) {
- var top = /Y/.test( prop );
-
- jQuery.fn[ method ] = function( val ) {
- return jQuery.access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? (prop in win) ? win[ prop ] :
- jQuery.support.boxModel && win.document.documentElement[ method ] ||
- win.document.body[ method ] :
- elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : jQuery( win ).scrollLeft(),
- top ? val : jQuery( win ).scrollTop()
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length, null );
- };
-});
-
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ?
- elem :
- elem.nodeType === 9 ?
- elem.defaultView || elem.parentWindow :
- false;
-}
-
-
-
-
-// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- var clientProp = "client" + name,
- scrollProp = "scroll" + name,
- offsetProp = "offset" + name;
-
- // innerHeight and innerWidth
- jQuery.fn[ "inner" + name ] = function() {
- var elem = this[0];
- return elem ?
- elem.style ?
- parseFloat( jQuery.css( elem, type, "padding" ) ) :
- this[ type ]() :
- null;
- };
-
- // outerHeight and outerWidth
- jQuery.fn[ "outer" + name ] = function( margin ) {
- var elem = this[0];
- return elem ?
- elem.style ?
- parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
- this[ type ]() :
- null;
- };
-
- jQuery.fn[ type ] = function( value ) {
- return jQuery.access( this, function( elem, type, value ) {
- var doc, docElemProp, orig, ret;
-
- if ( jQuery.isWindow( elem ) ) {
- // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
- doc = elem.document;
- docElemProp = doc.documentElement[ clientProp ];
- return jQuery.support.boxModel && docElemProp ||
- doc.body && doc.body[ clientProp ] || docElemProp;
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
- doc = elem.documentElement;
-
- // when a window > document, IE6 reports a offset[Width/Height] > client[Width/Height]
- // so we can't use max, as it'll choose the incorrect offset[Width/Height]
- // instead we use the correct client[Width/Height]
- // support:IE6
- if ( doc[ clientProp ] >= doc[ scrollProp ] ) {
- return doc[ clientProp ];
- }
-
- return Math.max(
- elem.body[ scrollProp ], doc[ scrollProp ],
- elem.body[ offsetProp ], doc[ offsetProp ]
- );
- }
-
- // Get width or height on the element
- if ( value === undefined ) {
- orig = jQuery.css( elem, type );
- ret = parseFloat( orig );
- return jQuery.isNumeric( ret ) ? ret : orig;
- }
-
- // Set the width or height on the element
- jQuery( elem ).css( type, value );
- }, type, value, arguments.length, null );
- };
-});
-
-
-
-
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-
-// Expose jQuery as an AMD module, but only for AMD loaders that
-// understand the issues with loading multiple versions of jQuery
-// in a page that all might call define(). The loader will indicate
-// they have special allowances for multiple jQuery versions by
-// specifying define.amd.jQuery = true. Register as a named module,
-// since jQuery can be concatenated with other files that may use define,
-// but not use a proper concatenation script that understands anonymous
-// AMD modules. A named AMD is safest and most robust way to register.
-// Lowercase jquery is used because AMD module names are derived from
-// file names, and jQuery is normally delivered in a lowercase file name.
-// Do this after creating the global so that if an AMD module wants to call
-// noConflict to hide this version of jQuery, it will work.
-if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
- define( "jquery", [], function () { return jQuery; } );
-}
-
-
-
-})( window ); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery.js
deleted file mode 100644
index 34f10869..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/jquery.js
+++ /dev/null
@@ -1,9404 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.7.2
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Wed Mar 21 12:46:34 2012 -0700
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document,
- navigator = window.navigator,
- location = window.location;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context, rootjQuery );
- },
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$,
-
- // A central reference to the root jQuery(document)
- rootjQuery,
-
- // A simple way to check for HTML strings or ID strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
- // Check if a string has a non-whitespace character in it
- rnotwhite = /\S/,
-
- // Used for trimming whitespace
- trimLeft = /^\s+/,
- trimRight = /\s+$/,
-
- // Match a standalone tag
- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
- // JSON RegExp
- rvalidchars = /^[\],:{}\s]*$/,
- rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
- rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
- rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
- // Useragent RegExp
- rwebkit = /(webkit)[ \/]([\w.]+)/,
- ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
- rmsie = /(msie) ([\w.]+)/,
- rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
- // Matches dashed string for camelizing
- rdashAlpha = /-([a-z]|[0-9])/ig,
- rmsPrefix = /^-ms-/,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return ( letter + "" ).toUpperCase();
- },
-
- // Keep a UserAgent string for use with jQuery.browser
- userAgent = navigator.userAgent,
-
- // For matching the engine and version of the browser
- browserMatch,
-
- // The deferred used on DOM ready
- readyList,
-
- // The ready event handler
- DOMContentLoaded,
-
- // Save a reference to some core methods
- toString = Object.prototype.toString,
- hasOwn = Object.prototype.hasOwnProperty,
- push = Array.prototype.push,
- slice = Array.prototype.slice,
- trim = String.prototype.trim,
- indexOf = Array.prototype.indexOf,
-
- // [[Class]] -> type pairs
- class2type = {};
-
-jQuery.fn = jQuery.prototype = {
- constructor: jQuery,
- init: function( selector, context, rootjQuery ) {
- var match, elem, ret, doc;
-
- // Handle $(""), $(null), or $(undefined)
- if ( !selector ) {
- return this;
- }
-
- // Handle $(DOMElement)
- if ( selector.nodeType ) {
- this.context = this[0] = selector;
- this.length = 1;
- return this;
- }
-
- // The body element only exists once, optimize finding it
- if ( selector === "body" && !context && document.body ) {
- this.context = document;
- this[0] = document.body;
- this.selector = selector;
- this.length = 1;
- return this;
- }
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- // Are we dealing with HTML string or an ID?
- if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = quickExpr.exec( selector );
- }
-
- // Verify a match, and that no context was specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] ) {
- context = context instanceof jQuery ? context[0] : context;
- doc = ( context ? context.ownerDocument || context : document );
-
- // If a single string is passed in and it's a single tag
- // just do a createElement and skip the rest
- ret = rsingleTag.exec( selector );
-
- if ( ret ) {
- if ( jQuery.isPlainObject( context ) ) {
- selector = [ document.createElement( ret[1] ) ];
- jQuery.fn.attr.call( selector, context, true );
-
- } else {
- selector = [ doc.createElement( ret[1] ) ];
- }
-
- } else {
- ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
- selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
- }
-
- return jQuery.merge( this, selector );
-
- // HANDLE: $("#id")
- } else {
- elem = document.getElementById( match[2] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[2] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[0] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || rootjQuery ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return rootjQuery.ready( selector );
- }
-
- if ( selector.selector !== undefined ) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- },
-
- // Start with an empty selector
- selector: "",
-
- // The current version of jQuery being used
- jquery: "1.7.2",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
- toArray: function() {
- return slice.call( this, 0 );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num == null ?
-
- // Return a 'clean' array
- this.toArray() :
-
- // Return just the object
- ( num < 0 ? this[ this.length + num ] : this[ num ] );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems, name, selector ) {
- // Build a new jQuery matched element set
- var ret = this.constructor();
-
- if ( jQuery.isArray( elems ) ) {
- push.apply( ret, elems );
-
- } else {
- jQuery.merge( ret, elems );
- }
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- ret.context = this.context;
-
- if ( name === "find" ) {
- ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
- } else if ( name ) {
- ret.selector = this.selector + "." + name + "(" + selector + ")";
- }
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- ready: function( fn ) {
- // Attach the listeners
- jQuery.bindReady();
-
- // Add the callback
- readyList.add( fn );
-
- return this;
- },
-
- eq: function( i ) {
- i = +i;
- return i === -1 ?
- this.slice( i ) :
- this.slice( i, i + 1 );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ),
- "slice", slice.call(arguments).join(",") );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function( elem, i ) {
- return callback.call( elem, i, elem );
- }));
- },
-
- end: function() {
- return this.prevObject || this.constructor(null);
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: [].sort,
- splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[0] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( length === i ) {
- target = this;
- --i;
- }
-
- for ( ; i < length; i++ ) {
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null ) {
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray(src) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject(src) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend({
- noConflict: function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
- },
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
- // Either a released hold or an DOMready/load event and not yet ready
- if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( !document.body ) {
- return setTimeout( jQuery.ready, 1 );
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.fireWith( document, [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.trigger ) {
- jQuery( document ).trigger( "ready" ).off( "ready" );
- }
- }
- },
-
- bindReady: function() {
- if ( readyList ) {
- return;
- }
-
- readyList = jQuery.Callbacks( "once memory" );
-
- // Catch cases where $(document).ready() is called after the
- // browser event has already occurred.
- if ( document.readyState === "complete" ) {
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- return setTimeout( jQuery.ready, 1 );
- }
-
- // Mozilla, Opera and webkit nightlies currently support this event
- if ( document.addEventListener ) {
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", jQuery.ready, false );
-
- // If IE event model is used
- } else if ( document.attachEvent ) {
- // ensure firing before onload,
- // maybe late but safe also for iframes
- document.attachEvent( "onreadystatechange", DOMContentLoaded );
-
- // A fallback to window.onload, that will always work
- window.attachEvent( "onload", jQuery.ready );
-
- // If IE and not a frame
- // continually check to see if the document is ready
- var toplevel = false;
-
- try {
- toplevel = window.frameElement == null;
- } catch(e) {}
-
- if ( document.documentElement.doScroll && toplevel ) {
- doScrollCheck();
- }
- }
- },
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return jQuery.type(obj) === "function";
- },
-
- isArray: Array.isArray || function( obj ) {
- return jQuery.type(obj) === "array";
- },
-
- isWindow: function( obj ) {
- return obj != null && obj == obj.window;
- },
-
- isNumeric: function( obj ) {
- return !isNaN( parseFloat(obj) ) && isFinite( obj );
- },
-
- type: function( obj ) {
- return obj == null ?
- String( obj ) :
- class2type[ toString.call(obj) ] || "object";
- },
-
- isPlainObject: function( obj ) {
- // Must be an Object.
- // Because of IE, we also have to check the presence of the constructor property.
- // Make sure that DOM nodes and window objects don't pass through, as well
- if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- try {
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call(obj, "constructor") &&
- !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
- return false;
- }
- } catch ( e ) {
- // IE8,9 Will throw exceptions on certain host objects #9897
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
-
- var key;
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- for ( var name in obj ) {
- return false;
- }
- return true;
- },
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- parseJSON: function( data ) {
- if ( typeof data !== "string" || !data ) {
- return null;
- }
-
- // Make sure leading/trailing whitespace is removed (IE can't handle it)
- data = jQuery.trim( data );
-
- // Attempt to parse using the native JSON parser first
- if ( window.JSON && window.JSON.parse ) {
- return window.JSON.parse( data );
- }
-
- // Make sure the incoming data is actual JSON
- // Logic borrowed from http://json.org/json2.js
- if ( rvalidchars.test( data.replace( rvalidescape, "@" )
- .replace( rvalidtokens, "]" )
- .replace( rvalidbraces, "")) ) {
-
- return ( new Function( "return " + data ) )();
-
- }
- jQuery.error( "Invalid JSON: " + data );
- },
-
- // Cross-browser xml parsing
- parseXML: function( data ) {
- if ( typeof data !== "string" || !data ) {
- return null;
- }
- var xml, tmp;
- try {
- if ( window.DOMParser ) { // Standard
- tmp = new DOMParser();
- xml = tmp.parseFromString( data , "text/xml" );
- } else { // IE
- xml = new ActiveXObject( "Microsoft.XMLDOM" );
- xml.async = "false";
- xml.loadXML( data );
- }
- } catch( e ) {
- xml = undefined;
- }
- if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
- },
-
- noop: function() {},
-
- // Evaluates a script in a global context
- // Workarounds based on findings by Jim Driscoll
- // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
- globalEval: function( data ) {
- if ( data && rnotwhite.test( data ) ) {
- // We use execScript on Internet Explorer
- // We use an anonymous function so that context is window
- // rather than jQuery in Firefox
- ( window.execScript || function( data ) {
- window[ "eval" ].call( window, data );
- } )( data );
- }
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
- },
-
- // args is for internal usage only
- each: function( object, callback, args ) {
- var name, i = 0,
- length = object.length,
- isObj = length === undefined || jQuery.isFunction( object );
-
- if ( args ) {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.apply( object[ name ], args ) === false ) {
- break;
- }
- }
- } else {
- for ( ; i < length; ) {
- if ( callback.apply( object[ i++ ], args ) === false ) {
- break;
- }
- }
- }
-
- // A special, fast, case for the most common use of each
- } else {
- if ( isObj ) {
- for ( name in object ) {
- if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
- break;
- }
- }
- } else {
- for ( ; i < length; ) {
- if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
- break;
- }
- }
- }
- }
-
- return object;
- },
-
- // Use native String.trim function wherever possible
- trim: trim ?
- function( text ) {
- return text == null ?
- "" :
- trim.call( text );
- } :
-
- // Otherwise use our own trimming functionality
- function( text ) {
- return text == null ?
- "" :
- text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
- },
-
- // results is for internal usage only
- makeArray: function( array, results ) {
- var ret = results || [];
-
- if ( array != null ) {
- // The window, strings (and functions) also have 'length'
- // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
- var type = jQuery.type( array );
-
- if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
- push.call( ret, array );
- } else {
- jQuery.merge( ret, array );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, array, i ) {
- var len;
-
- if ( array ) {
- if ( indexOf ) {
- return indexOf.call( array, elem, i );
- }
-
- len = array.length;
- i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
-
- for ( ; i < len; i++ ) {
- // Skip accessing in sparse arrays
- if ( i in array && array[ i ] === elem ) {
- return i;
- }
- }
- }
-
- return -1;
- },
-
- merge: function( first, second ) {
- var i = first.length,
- j = 0;
-
- if ( typeof second.length === "number" ) {
- for ( var l = second.length; j < l; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- } else {
- while ( second[j] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, inv ) {
- var ret = [], retVal;
- inv = !!inv;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- retVal = !!callback( elems[ i ], i );
- if ( inv !== retVal ) {
- ret.push( elems[ i ] );
- }
- }
-
- return ret;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var value, key, ret = [],
- i = 0,
- length = elems.length,
- // jquery objects are treated as arrays
- isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
-
- // Go through the array, translating each of the items to their
- if ( isArray ) {
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( key in elems ) {
- value = callback( elems[ key ], key, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
- }
-
- // Flatten any nested arrays
- return ret.concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- if ( typeof context === "string" ) {
- var tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- var args = slice.call( arguments, 2 ),
- proxy = function() {
- return fn.apply( context, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
-
- return proxy;
- },
-
- // Mutifunctional method to get and set values to a collection
- // The value/s can optionally be executed if it's a function
- access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
- var exec,
- bulk = key == null,
- i = 0,
- length = elems.length;
-
- // Sets many values
- if ( key && typeof key === "object" ) {
- for ( i in key ) {
- jQuery.access( elems, fn, i, key[i], 1, emptyGet, value );
- }
- chainable = 1;
-
- // Sets one value
- } else if ( value !== undefined ) {
- // Optionally, function values get executed if exec is true
- exec = pass === undefined && jQuery.isFunction( value );
-
- if ( bulk ) {
- // Bulk operations only iterate when executing function values
- if ( exec ) {
- exec = fn;
- fn = function( elem, key, value ) {
- return exec.call( jQuery( elem ), value );
- };
-
- // Otherwise they run against the entire set
- } else {
- fn.call( elems, value );
- fn = null;
- }
- }
-
- if ( fn ) {
- for (; i < length; i++ ) {
- fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
- }
- }
-
- chainable = 1;
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- length ? fn( elems[0], key ) : emptyGet;
- },
-
- now: function() {
- return ( new Date() ).getTime();
- },
-
- // Use of jQuery.browser is frowned upon.
- // More details: http://docs.jquery.com/Utilities/jQuery.browser
- uaMatch: function( ua ) {
- ua = ua.toLowerCase();
-
- var match = rwebkit.exec( ua ) ||
- ropera.exec( ua ) ||
- rmsie.exec( ua ) ||
- ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
- [];
-
- return { browser: match[1] || "", version: match[2] || "0" };
- },
-
- sub: function() {
- function jQuerySub( selector, context ) {
- return new jQuerySub.fn.init( selector, context );
- }
- jQuery.extend( true, jQuerySub, this );
- jQuerySub.superclass = this;
- jQuerySub.fn = jQuerySub.prototype = this();
- jQuerySub.fn.constructor = jQuerySub;
- jQuerySub.sub = this.sub;
- jQuerySub.fn.init = function init( selector, context ) {
- if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
- context = jQuerySub( context );
- }
-
- return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
- };
- jQuerySub.fn.init.prototype = jQuerySub.fn;
- var rootjQuerySub = jQuerySub(document);
- return jQuerySub;
- },
-
- browser: {}
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
- jQuery.browser[ browserMatch.browser ] = true;
- jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
- jQuery.browser.safari = true;
-}
-
-// IE doesn't match non-breaking spaces with \s
-if ( rnotwhite.test( "\xA0" ) ) {
- trimLeft = /^[\s\xA0]+/;
- trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
- DOMContentLoaded = function() {
- document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
- jQuery.ready();
- };
-
-} else if ( document.attachEvent ) {
- DOMContentLoaded = function() {
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( document.readyState === "complete" ) {
- document.detachEvent( "onreadystatechange", DOMContentLoaded );
- jQuery.ready();
- }
- };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
- if ( jQuery.isReady ) {
- return;
- }
-
- try {
- // If IE is used, use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- document.documentElement.doScroll("left");
- } catch(e) {
- setTimeout( doScrollCheck, 1 );
- return;
- }
-
- // and execute any waiting functions
- jQuery.ready();
-}
-
-return jQuery;
-
-})();
-
-
-// String to Object flags format cache
-var flagsCache = {};
-
-// Convert String-formatted flags into Object-formatted ones and store in cache
-function createFlags( flags ) {
- var object = flagsCache[ flags ] = {},
- i, length;
- flags = flags.split( /\s+/ );
- for ( i = 0, length = flags.length; i < length; i++ ) {
- object[ flags[i] ] = true;
- }
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * flags: an optional list of space-separated flags that will change how
- * the callback list behaves
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible flags:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( flags ) {
-
- // Convert flags from String-formatted to Object-formatted
- // (we check in cache first)
- flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
-
- var // Actual callback list
- list = [],
- // Stack of fire calls for repeatable lists
- stack = [],
- // Last fire value (for non-forgettable lists)
- memory,
- // Flag to know if list was already fired
- fired,
- // Flag to know if list is currently firing
- firing,
- // First callback to fire (used internally by add and fireWith)
- firingStart,
- // End of the loop when firing
- firingLength,
- // Index of currently firing callback (modified by remove if needed)
- firingIndex,
- // Add one or several callbacks to the list
- add = function( args ) {
- var i,
- length,
- elem,
- type,
- actual;
- for ( i = 0, length = args.length; i < length; i++ ) {
- elem = args[ i ];
- type = jQuery.type( elem );
- if ( type === "array" ) {
- // Inspect recursively
- add( elem );
- } else if ( type === "function" ) {
- // Add if not in unique mode and callback is not in
- if ( !flags.unique || !self.has( elem ) ) {
- list.push( elem );
- }
- }
- }
- },
- // Fire callbacks
- fire = function( context, args ) {
- args = args || [];
- memory = !flags.memory || [ context, args ];
- fired = true;
- firing = true;
- firingIndex = firingStart || 0;
- firingStart = 0;
- firingLength = list.length;
- for ( ; list && firingIndex < firingLength; firingIndex++ ) {
- if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
- memory = true; // Mark as halted
- break;
- }
- }
- firing = false;
- if ( list ) {
- if ( !flags.once ) {
- if ( stack && stack.length ) {
- memory = stack.shift();
- self.fireWith( memory[ 0 ], memory[ 1 ] );
- }
- } else if ( memory === true ) {
- self.disable();
- } else {
- list = [];
- }
- }
- },
- // Actual Callbacks object
- self = {
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
- var length = list.length;
- add( arguments );
- // Do we need to add the callbacks to the
- // current firing batch?
- if ( firing ) {
- firingLength = list.length;
- // With memory, if we're not firing then
- // we should call right away, unless previous
- // firing was halted (stopOnFalse)
- } else if ( memory && memory !== true ) {
- firingStart = length;
- fire( memory[ 0 ], memory[ 1 ] );
- }
- }
- return this;
- },
- // Remove a callback from the list
- remove: function() {
- if ( list ) {
- var args = arguments,
- argIndex = 0,
- argLength = args.length;
- for ( ; argIndex < argLength ; argIndex++ ) {
- for ( var i = 0; i < list.length; i++ ) {
- if ( args[ argIndex ] === list[ i ] ) {
- // Handle firingIndex and firingLength
- if ( firing ) {
- if ( i <= firingLength ) {
- firingLength--;
- if ( i <= firingIndex ) {
- firingIndex--;
- }
- }
- }
- // Remove the element
- list.splice( i--, 1 );
- // If we have some unicity property then
- // we only need to do this once
- if ( flags.unique ) {
- break;
- }
- }
- }
- }
- }
- return this;
- },
- // Control if a given callback is in the list
- has: function( fn ) {
- if ( list ) {
- var i = 0,
- length = list.length;
- for ( ; i < length; i++ ) {
- if ( fn === list[ i ] ) {
- return true;
- }
- }
- }
- return false;
- },
- // Remove all callbacks from the list
- empty: function() {
- list = [];
- return this;
- },
- // Have the list do nothing anymore
- disable: function() {
- list = stack = memory = undefined;
- return this;
- },
- // Is it disabled?
- disabled: function() {
- return !list;
- },
- // Lock the list in its current state
- lock: function() {
- stack = undefined;
- if ( !memory || memory === true ) {
- self.disable();
- }
- return this;
- },
- // Is it locked?
- locked: function() {
- return !stack;
- },
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( stack ) {
- if ( firing ) {
- if ( !flags.once ) {
- stack.push( [ context, args ] );
- }
- } else if ( !( flags.once && memory ) ) {
- fire( context, args );
- }
- }
- return this;
- },
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-
-
-var // Static reference to slice
- sliceDeferred = [].slice;
-
-jQuery.extend({
-
- Deferred: function( func ) {
- var doneList = jQuery.Callbacks( "once memory" ),
- failList = jQuery.Callbacks( "once memory" ),
- progressList = jQuery.Callbacks( "memory" ),
- state = "pending",
- lists = {
- resolve: doneList,
- reject: failList,
- notify: progressList
- },
- promise = {
- done: doneList.add,
- fail: failList.add,
- progress: progressList.add,
-
- state: function() {
- return state;
- },
-
- // Deprecated
- isResolved: doneList.fired,
- isRejected: failList.fired,
-
- then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
- deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
- return this;
- },
- always: function() {
- deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
- return this;
- },
- pipe: function( fnDone, fnFail, fnProgress ) {
- return jQuery.Deferred(function( newDefer ) {
- jQuery.each( {
- done: [ fnDone, "resolve" ],
- fail: [ fnFail, "reject" ],
- progress: [ fnProgress, "notify" ]
- }, function( handler, data ) {
- var fn = data[ 0 ],
- action = data[ 1 ],
- returned;
- if ( jQuery.isFunction( fn ) ) {
- deferred[ handler ](function() {
- returned = fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
- } else {
- newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
- }
- });
- } else {
- deferred[ handler ]( newDefer[ action ] );
- }
- });
- }).promise();
- },
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- if ( obj == null ) {
- obj = promise;
- } else {
- for ( var key in promise ) {
- obj[ key ] = promise[ key ];
- }
- }
- return obj;
- }
- },
- deferred = promise.promise({}),
- key;
-
- for ( key in lists ) {
- deferred[ key ] = lists[ key ].fire;
- deferred[ key + "With" ] = lists[ key ].fireWith;
- }
-
- // Handle state
- deferred.done( function() {
- state = "resolved";
- }, failList.disable, progressList.lock ).fail( function() {
- state = "rejected";
- }, doneList.disable, progressList.lock );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( firstParam ) {
- var args = sliceDeferred.call( arguments, 0 ),
- i = 0,
- length = args.length,
- pValues = new Array( length ),
- count = length,
- pCount = length,
- deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
- firstParam :
- jQuery.Deferred(),
- promise = deferred.promise();
- function resolveFunc( i ) {
- return function( value ) {
- args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
- if ( !( --count ) ) {
- deferred.resolveWith( deferred, args );
- }
- };
- }
- function progressFunc( i ) {
- return function( value ) {
- pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
- deferred.notifyWith( promise, pValues );
- };
- }
- if ( length > 1 ) {
- for ( ; i < length; i++ ) {
- if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
- args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
- } else {
- --count;
- }
- }
- if ( !count ) {
- deferred.resolveWith( deferred, args );
- }
- } else if ( deferred !== firstParam ) {
- deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
- }
- return promise;
- }
-});
-
-
-
-
-jQuery.support = (function() {
-
- var support,
- all,
- a,
- select,
- opt,
- input,
- fragment,
- tds,
- events,
- eventName,
- i,
- isSupported,
- div = document.createElement( "div" ),
- documentElement = document.documentElement;
-
- // Preliminary tests
- div.setAttribute("className", "t");
- div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
- all = div.getElementsByTagName( "*" );
- a = div.getElementsByTagName( "a" )[ 0 ];
-
- // Can't get basic test support
- if ( !all || !all.length || !a ) {
- return {};
- }
-
- // First batch of supports tests
- select = document.createElement( "select" );
- opt = select.appendChild( document.createElement("option") );
- input = div.getElementsByTagName( "input" )[ 0 ];
-
- support = {
- // IE strips leading whitespace when .innerHTML is used
- leadingWhitespace: ( div.firstChild.nodeType === 3 ),
-
- // Make sure that tbody elements aren't automatically inserted
- // IE will insert them into empty tables
- tbody: !div.getElementsByTagName("tbody").length,
-
- // Make sure that link elements get serialized correctly by innerHTML
- // This requires a wrapper element in IE
- htmlSerialize: !!div.getElementsByTagName("link").length,
-
- // Get the style information from getAttribute
- // (IE uses .cssText instead)
- style: /top/.test( a.getAttribute("style") ),
-
- // Make sure that URLs aren't manipulated
- // (IE normalizes it by default)
- hrefNormalized: ( a.getAttribute("href") === "/a" ),
-
- // Make sure that element opacity exists
- // (IE uses filter instead)
- // Use a regex to work around a WebKit issue. See #5145
- opacity: /^0.55/.test( a.style.opacity ),
-
- // Verify style float existence
- // (IE uses styleFloat instead of cssFloat)
- cssFloat: !!a.style.cssFloat,
-
- // Make sure that if no value is specified for a checkbox
- // that it defaults to "on".
- // (WebKit defaults to "" instead)
- checkOn: ( input.value === "on" ),
-
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- optSelected: opt.selected,
-
- // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
- getSetAttribute: div.className !== "t",
-
- // Tests for enctype support on a form(#6743)
- enctype: !!document.createElement("form").enctype,
-
- // Makes sure cloning an html5 element does not cause problems
- // Where outerHTML is undefined, this still works
- html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
-
- // Will be defined later
- submitBubbles: true,
- changeBubbles: true,
- focusinBubbles: false,
- deleteExpando: true,
- noCloneEvent: true,
- inlineBlockNeedsLayout: false,
- shrinkWrapBlocks: false,
- reliableMarginRight: true,
- pixelMargin: true
- };
-
- // jQuery.boxModel DEPRECATED in 1.3, use jQuery.support.boxModel instead
- jQuery.boxModel = support.boxModel = (document.compatMode === "CSS1Compat");
-
- // Make sure checked status is properly cloned
- input.checked = true;
- support.noCloneChecked = input.cloneNode( true ).checked;
-
- // Make sure that the options inside disabled selects aren't marked as disabled
- // (WebKit marks them as disabled)
- select.disabled = true;
- support.optDisabled = !opt.disabled;
-
- // Test to see if it's possible to delete an expando from an element
- // Fails in Internet Explorer
- try {
- delete div.test;
- } catch( e ) {
- support.deleteExpando = false;
- }
-
- if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
- div.attachEvent( "onclick", function() {
- // Cloning a node shouldn't copy over any
- // bound event handlers (IE does this)
- support.noCloneEvent = false;
- });
- div.cloneNode( true ).fireEvent( "onclick" );
- }
-
- // Check if a radio maintains its value
- // after being appended to the DOM
- input = document.createElement("input");
- input.value = "t";
- input.setAttribute("type", "radio");
- support.radioValue = input.value === "t";
-
- input.setAttribute("checked", "checked");
-
- // #11217 - WebKit loses check when the name is after the checked attribute
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
- fragment = document.createDocumentFragment();
- fragment.appendChild( div.lastChild );
-
- // WebKit doesn't clone checked state correctly in fragments
- support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Check if a disconnected checkbox will retain its checked
- // value of true after appended to the DOM (IE6/7)
- support.appendChecked = input.checked;
-
- fragment.removeChild( input );
- fragment.appendChild( div );
-
- // Technique from Juriy Zaytsev
- // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
- // We only care about the case where non-standard event systems
- // are used, namely in IE. Short-circuiting here helps us to
- // avoid an eval call (in setAttribute) which can cause CSP
- // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
- if ( div.attachEvent ) {
- for ( i in {
- submit: 1,
- change: 1,
- focusin: 1
- }) {
- eventName = "on" + i;
- isSupported = ( eventName in div );
- if ( !isSupported ) {
- div.setAttribute( eventName, "return;" );
- isSupported = ( typeof div[ eventName ] === "function" );
- }
- support[ i + "Bubbles" ] = isSupported;
- }
- }
-
- fragment.removeChild( div );
-
- // Null elements to avoid leaks in IE
- fragment = select = opt = div = input = null;
-
- // Run tests that need a body at doc ready
- jQuery(function() {
- var container, outer, inner, table, td, offsetSupport,
- marginDiv, conMarginTop, style, html, positionTopLeftWidthHeight,
- paddingMarginBorderVisibility, paddingMarginBorder,
- body = document.getElementsByTagName("body")[0];
-
- if ( !body ) {
- // Return for frameset docs that don't have a body
- return;
- }
-
- conMarginTop = 1;
- paddingMarginBorder = "padding:0;margin:0;border:";
- positionTopLeftWidthHeight = "position:absolute;top:0;left:0;width:1px;height:1px;";
- paddingMarginBorderVisibility = paddingMarginBorder + "0;visibility:hidden;";
- style = "style='" + positionTopLeftWidthHeight + paddingMarginBorder + "5px solid #000;";
- html = "<div " + style + "display:block;'><div style='" + paddingMarginBorder + "0;display:block;overflow:hidden;'></div></div>" +
- "<table " + style + "' cellpadding='0' cellspacing='0'>" +
- "<tr><td></td></tr></table>";
-
- container = document.createElement("div");
- container.style.cssText = paddingMarginBorderVisibility + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
- body.insertBefore( container, body.firstChild );
-
- // Construct the test element
- div = document.createElement("div");
- container.appendChild( div );
-
- // Check if table cells still have offsetWidth/Height when they are set
- // to display:none and there are still other visible table cells in a
- // table row; if so, offsetWidth/Height are not reliable for use when
- // determining if an element has been hidden directly using
- // display:none (it is still safe to use offsets if a parent element is
- // hidden; don safety goggles and see bug #4512 for more information).
- // (only IE 8 fails this test)
- div.innerHTML = "<table><tr><td style='" + paddingMarginBorder + "0;display:none'></td><td>t</td></tr></table>";
- tds = div.getElementsByTagName( "td" );
- isSupported = ( tds[ 0 ].offsetHeight === 0 );
-
- tds[ 0 ].style.display = "";
- tds[ 1 ].style.display = "none";
-
- // Check if empty table cells still have offsetWidth/Height
- // (IE <= 8 fail this test)
- support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
-
- // Check if div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container. For more
- // info see bug #3333
- // Fails in WebKit before Feb 2011 nightlies
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- if ( window.getComputedStyle ) {
- div.innerHTML = "";
- marginDiv = document.createElement( "div" );
- marginDiv.style.width = "0";
- marginDiv.style.marginRight = "0";
- div.style.width = "2px";
- div.appendChild( marginDiv );
- support.reliableMarginRight =
- ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
- }
-
- if ( typeof div.style.zoom !== "undefined" ) {
- // Check if natively block-level elements act like inline-block
- // elements when setting their display to 'inline' and giving
- // them layout
- // (IE < 8 does this)
- div.innerHTML = "";
- div.style.width = div.style.padding = "1px";
- div.style.border = 0;
- div.style.overflow = "hidden";
- div.style.display = "inline";
- div.style.zoom = 1;
- support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );
-
- // Check if elements with layout shrink-wrap their children
- // (IE 6 does this)
- div.style.display = "block";
- div.style.overflow = "visible";
- div.innerHTML = "<div style='width:5px;'></div>";
- support.shrinkWrapBlocks = ( div.offsetWidth !== 3 );
- }
-
- div.style.cssText = positionTopLeftWidthHeight + paddingMarginBorderVisibility;
- div.innerHTML = html;
-
- outer = div.firstChild;
- inner = outer.firstChild;
- td = outer.nextSibling.firstChild.firstChild;
-
- offsetSupport = {
- doesNotAddBorder: ( inner.offsetTop !== 5 ),
- doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
- };
-
- inner.style.position = "fixed";
- inner.style.top = "20px";
-
- // safari subtracts parent border width here which is 5px
- offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
- inner.style.position = inner.style.top = "";
-
- outer.style.overflow = "hidden";
- outer.style.position = "relative";
-
- offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
- offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
-
- if ( window.getComputedStyle ) {
- div.style.marginTop = "1%";
- support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%";
- }
-
- if ( typeof container.style.zoom !== "undefined" ) {
- container.style.zoom = 1;
- }
-
- body.removeChild( container );
- marginDiv = div = container = null;
-
- jQuery.extend( support, offsetSupport );
- });
-
- return support;
-})();
-
-
-
-
-var rbrace = /^(?:\{.*\}|\[.*\])$/,
- rmultiDash = /([A-Z])/g;
-
-jQuery.extend({
- cache: {},
-
- // Please use with caution
- uuid: 0,
-
- // Unique for each copy of jQuery on the page
- // Non-digits removed to match rinlinejQuery
- expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
-
- // The following elements throw uncatchable exceptions if you
- // attempt to add expando properties to them.
- noData: {
- "embed": true,
- // Ban all objects except for Flash (which handle expandos)
- "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
- "applet": true
- },
-
- hasData: function( elem ) {
- elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
- return !!elem && !isEmptyDataObject( elem );
- },
-
- data: function( elem, name, data, pvt /* Internal Use Only */ ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- var privateCache, thisCache, ret,
- internalKey = jQuery.expando,
- getByName = typeof name === "string",
-
- // We have to handle DOM nodes and JS objects differently because IE6-7
- // can't GC object references properly across the DOM-JS boundary
- isNode = elem.nodeType,
-
- // Only DOM nodes need the global jQuery cache; JS object data is
- // attached directly to the object so GC can occur automatically
- cache = isNode ? jQuery.cache : elem,
-
- // Only defining an ID for JS objects if its cache already exists allows
- // the code to shortcut on the same path as a DOM node with no cache
- id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
- isEvents = name === "events";
-
- // Avoid doing any more work than we need to when trying to get data on an
- // object that has no data at all
- if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
- return;
- }
-
- if ( !id ) {
- // Only DOM nodes need a new unique ID for each element since their data
- // ends up in the global cache
- if ( isNode ) {
- elem[ internalKey ] = id = ++jQuery.uuid;
- } else {
- id = internalKey;
- }
- }
-
- if ( !cache[ id ] ) {
- cache[ id ] = {};
-
- // Avoids exposing jQuery metadata on plain JS objects when the object
- // is serialized using JSON.stringify
- if ( !isNode ) {
- cache[ id ].toJSON = jQuery.noop;
- }
- }
-
- // An object can be passed to jQuery.data instead of a key/value pair; this gets
- // shallow copied over onto the existing cache
- if ( typeof name === "object" || typeof name === "function" ) {
- if ( pvt ) {
- cache[ id ] = jQuery.extend( cache[ id ], name );
- } else {
- cache[ id ].data = jQuery.extend( cache[ id ].data, name );
- }
- }
-
- privateCache = thisCache = cache[ id ];
-
- // jQuery data() is stored in a separate object inside the object's internal data
- // cache in order to avoid key collisions between internal data and user-defined
- // data.
- if ( !pvt ) {
- if ( !thisCache.data ) {
- thisCache.data = {};
- }
-
- thisCache = thisCache.data;
- }
-
- if ( data !== undefined ) {
- thisCache[ jQuery.camelCase( name ) ] = data;
- }
-
- // Users should not attempt to inspect the internal events object using jQuery.data,
- // it is undocumented and subject to change. But does anyone listen? No.
- if ( isEvents && !thisCache[ name ] ) {
- return privateCache.events;
- }
-
- // Check for both converted-to-camel and non-converted data property names
- // If a data property was specified
- if ( getByName ) {
-
- // First Try to find as-is property data
- ret = thisCache[ name ];
-
- // Test for null|undefined property data
- if ( ret == null ) {
-
- // Try to find the camelCased property
- ret = thisCache[ jQuery.camelCase( name ) ];
- }
- } else {
- ret = thisCache;
- }
-
- return ret;
- },
-
- removeData: function( elem, name, pvt /* Internal Use Only */ ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- var thisCache, i, l,
-
- // Reference to internal data cache key
- internalKey = jQuery.expando,
-
- isNode = elem.nodeType,
-
- // See jQuery.data for more information
- cache = isNode ? jQuery.cache : elem,
-
- // See jQuery.data for more information
- id = isNode ? elem[ internalKey ] : internalKey;
-
- // If there is already no cache entry for this object, there is no
- // purpose in continuing
- if ( !cache[ id ] ) {
- return;
- }
-
- if ( name ) {
-
- thisCache = pvt ? cache[ id ] : cache[ id ].data;
-
- if ( thisCache ) {
-
- // Support array or space separated string names for data keys
- if ( !jQuery.isArray( name ) ) {
-
- // try the string as a key before any manipulation
- if ( name in thisCache ) {
- name = [ name ];
- } else {
-
- // split the camel cased version by spaces unless a key with the spaces exists
- name = jQuery.camelCase( name );
- if ( name in thisCache ) {
- name = [ name ];
- } else {
- name = name.split( " " );
- }
- }
- }
-
- for ( i = 0, l = name.length; i < l; i++ ) {
- delete thisCache[ name[i] ];
- }
-
- // If there is no data left in the cache, we want to continue
- // and let the cache object itself get destroyed
- if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
- return;
- }
- }
- }
-
- // See jQuery.data for more information
- if ( !pvt ) {
- delete cache[ id ].data;
-
- // Don't destroy the parent cache unless the internal data object
- // had been the only thing left in it
- if ( !isEmptyDataObject(cache[ id ]) ) {
- return;
- }
- }
-
- // Browsers that fail expando deletion also refuse to delete expandos on
- // the window, but it will allow it on all other JS objects; other browsers
- // don't care
- // Ensure that `cache` is not a window object #10080
- if ( jQuery.support.deleteExpando || !cache.setInterval ) {
- delete cache[ id ];
- } else {
- cache[ id ] = null;
- }
-
- // We destroyed the cache and need to eliminate the expando on the node to avoid
- // false lookups in the cache for entries that no longer exist
- if ( isNode ) {
- // IE does not allow us to delete expando properties from nodes,
- // nor does it have a removeAttribute function on Document nodes;
- // we must handle all of these cases
- if ( jQuery.support.deleteExpando ) {
- delete elem[ internalKey ];
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( internalKey );
- } else {
- elem[ internalKey ] = null;
- }
- }
- },
-
- // For internal use only.
- _data: function( elem, name, data ) {
- return jQuery.data( elem, name, data, true );
- },
-
- // A method for determining if a DOM node can handle the data expando
- acceptData: function( elem ) {
- if ( elem.nodeName ) {
- var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
- if ( match ) {
- return !(match === true || elem.getAttribute("classid") !== match);
- }
- }
-
- return true;
- }
-});
-
-jQuery.fn.extend({
- data: function( key, value ) {
- var parts, part, attr, name, l,
- elem = this[0],
- i = 0,
- data = null;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = jQuery.data( elem );
-
- if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
- attr = elem.attributes;
- for ( l = attr.length; i < l; i++ ) {
- name = attr[i].name;
-
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.substring(5) );
-
- dataAttr( elem, name, data[ name ] );
- }
- }
- jQuery._data( elem, "parsedAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each(function() {
- jQuery.data( this, key );
- });
- }
-
- parts = key.split( ".", 2 );
- parts[1] = parts[1] ? "." + parts[1] : "";
- part = parts[1] + "!";
-
- return jQuery.access( this, function( value ) {
-
- if ( value === undefined ) {
- data = this.triggerHandler( "getData" + part, [ parts[0] ] );
-
- // Try to fetch any internally stored data first
- if ( data === undefined && elem ) {
- data = jQuery.data( elem, key );
- data = dataAttr( elem, key, data );
- }
-
- return data === undefined && parts[1] ?
- this.data( parts[0] ) :
- data;
- }
-
- parts[1] = value;
- this.each(function() {
- var self = jQuery( this );
-
- self.triggerHandler( "setData" + part, parts );
- jQuery.data( this, key, value );
- self.triggerHandler( "changeData" + part, parts );
- });
- }, null, value, arguments.length > 1, null, false );
- },
-
- removeData: function( key ) {
- return this.each(function() {
- jQuery.removeData( this, key );
- });
- }
-});
-
-function dataAttr( elem, key, data ) {
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
-
- var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
- jQuery.isNumeric( data ) ? +data :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch( e ) {}
-
- // Make sure we set the data so it isn't changed later
- jQuery.data( elem, key, data );
-
- } else {
- data = undefined;
- }
- }
-
- return data;
-}
-
-// checks a cache object for emptiness
-function isEmptyDataObject( obj ) {
- for ( var name in obj ) {
-
- // if the public data object is empty, the private is still empty
- if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
- continue;
- }
- if ( name !== "toJSON" ) {
- return false;
- }
- }
-
- return true;
-}
-
-
-
-
-function handleQueueMarkDefer( elem, type, src ) {
- var deferDataKey = type + "defer",
- queueDataKey = type + "queue",
- markDataKey = type + "mark",
- defer = jQuery._data( elem, deferDataKey );
- if ( defer &&
- ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
- ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
- // Give room for hard-coded callbacks to fire first
- // and eventually mark/queue something else on the element
- setTimeout( function() {
- if ( !jQuery._data( elem, queueDataKey ) &&
- !jQuery._data( elem, markDataKey ) ) {
- jQuery.removeData( elem, deferDataKey, true );
- defer.fire();
- }
- }, 0 );
- }
-}
-
-jQuery.extend({
-
- _mark: function( elem, type ) {
- if ( elem ) {
- type = ( type || "fx" ) + "mark";
- jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
- }
- },
-
- _unmark: function( force, elem, type ) {
- if ( force !== true ) {
- type = elem;
- elem = force;
- force = false;
- }
- if ( elem ) {
- type = type || "fx";
- var key = type + "mark",
- count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
- if ( count ) {
- jQuery._data( elem, key, count );
- } else {
- jQuery.removeData( elem, key, true );
- handleQueueMarkDefer( elem, type, "mark" );
- }
- }
- },
-
- queue: function( elem, type, data ) {
- var q;
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- q = jQuery._data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !q || jQuery.isArray(data) ) {
- q = jQuery._data( elem, type, jQuery.makeArray(data) );
- } else {
- q.push( data );
- }
- }
- return q || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- fn = queue.shift(),
- hooks = {};
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- }
-
- if ( fn ) {
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- jQuery._data( elem, type + ".run", hooks );
- fn.call( elem, function() {
- jQuery.dequeue( elem, type );
- }, hooks );
- }
-
- if ( !queue.length ) {
- jQuery.removeData( elem, type + "queue " + type + ".run", true );
- handleQueueMarkDefer( elem, type, "queue" );
- }
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[0], type );
- }
-
- return data === undefined ?
- this :
- this.each(function() {
- var queue = jQuery.queue( this, type, data );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
- // Based off of the plugin by Clint Helfers, with permission.
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
- delay: function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = setTimeout( next, time );
- hooks.stop = function() {
- clearTimeout( timeout );
- };
- });
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, object ) {
- if ( typeof type !== "string" ) {
- object = type;
- type = undefined;
- }
- type = type || "fx";
- var defer = jQuery.Deferred(),
- elements = this,
- i = elements.length,
- count = 1,
- deferDataKey = type + "defer",
- queueDataKey = type + "queue",
- markDataKey = type + "mark",
- tmp;
- function resolve() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- }
- while( i-- ) {
- if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
- ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
- jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
- jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
- count++;
- tmp.add( resolve );
- }
- }
- resolve();
- return defer.promise( object );
- }
-});
-
-
-
-
-var rclass = /[\n\t\r]/g,
- rspace = /\s+/,
- rreturn = /\r/g,
- rtype = /^(?:button|input)$/i,
- rfocusable = /^(?:button|input|object|select|textarea)$/i,
- rclickable = /^a(?:rea)?$/i,
- rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
- getSetAttribute = jQuery.support.getSetAttribute,
- nodeHook, boolHook, fixSpecified;
-
-jQuery.fn.extend({
- attr: function( name, value ) {
- return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each(function() {
- jQuery.removeAttr( this, name );
- });
- },
-
- prop: function( name, value ) {
- return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- name = jQuery.propFix[ name ] || name;
- return this.each(function() {
- // try/catch handles cases where IE balks (such as removing a property on window)
- try {
- this[ name ] = undefined;
- delete this[ name ];
- } catch( e ) {}
- });
- },
-
- addClass: function( value ) {
- var classNames, i, l, elem,
- setClass, c, cl;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( j ) {
- jQuery( this ).addClass( value.call(this, j, this.className) );
- });
- }
-
- if ( value && typeof value === "string" ) {
- classNames = value.split( rspace );
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- elem = this[ i ];
-
- if ( elem.nodeType === 1 ) {
- if ( !elem.className && classNames.length === 1 ) {
- elem.className = value;
-
- } else {
- setClass = " " + elem.className + " ";
-
- for ( c = 0, cl = classNames.length; c < cl; c++ ) {
- if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
- setClass += classNames[ c ] + " ";
- }
- }
- elem.className = jQuery.trim( setClass );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classNames, i, l, elem, className, c, cl;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( j ) {
- jQuery( this ).removeClass( value.call(this, j, this.className) );
- });
- }
-
- if ( (value && typeof value === "string") || value === undefined ) {
- classNames = ( value || "" ).split( rspace );
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- elem = this[ i ];
-
- if ( elem.nodeType === 1 && elem.className ) {
- if ( value ) {
- className = (" " + elem.className + " ").replace( rclass, " " );
- for ( c = 0, cl = classNames.length; c < cl; c++ ) {
- className = className.replace(" " + classNames[ c ] + " ", " ");
- }
- elem.className = jQuery.trim( className );
-
- } else {
- elem.className = "";
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value,
- isBool = typeof stateVal === "boolean";
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( i ) {
- jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
- });
- }
-
- return this.each(function() {
- if ( type === "string" ) {
- // toggle individual class names
- var className,
- i = 0,
- self = jQuery( this ),
- state = stateVal,
- classNames = value.split( rspace );
-
- while ( (className = classNames[ i++ ]) ) {
- // check each className given, space seperated list
- state = isBool ? state : !self.hasClass( className );
- self[ state ? "addClass" : "removeClass" ]( className );
- }
-
- } else if ( type === "undefined" || type === "boolean" ) {
- if ( this.className ) {
- // store className if set
- jQuery._data( this, "__className__", this.className );
- }
-
- // toggle whole className
- this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
- }
- });
- },
-
- hasClass: function( selector ) {
- var className = " " + selector + " ",
- i = 0,
- l = this.length;
- for ( ; i < l; i++ ) {
- if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
- return true;
- }
- }
-
- return false;
- },
-
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[0];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
- // handle most common string cases
- ret.replace(rreturn, "") :
- // handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each(function( i ) {
- var self = jQuery(this), val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, self.val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
- } else if ( typeof val === "number" ) {
- val += "";
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map(val, function ( value ) {
- return value == null ? "" : value + "";
- });
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- });
- }
-});
-
-jQuery.extend({
- valHooks: {
- option: {
- get: function( elem ) {
- // attributes.value is undefined in Blackberry 4.7 but
- // uses .value. See #6932
- var val = elem.attributes.value;
- return !val || val.specified ? elem.value : elem.text;
- }
- },
- select: {
- get: function( elem ) {
- var value, i, max, option,
- index = elem.selectedIndex,
- values = [],
- options = elem.options,
- one = elem.type === "select-one";
-
- // Nothing was selected
- if ( index < 0 ) {
- return null;
- }
-
- // Loop through all the selected options
- i = one ? index : 0;
- max = one ? index + 1 : options.length;
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // Don't return options that are disabled or in a disabled optgroup
- if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
- (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
- if ( one && !values.length && options.length ) {
- return jQuery( options[ index ] ).val();
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var values = jQuery.makeArray( value );
-
- jQuery(elem).find("option").each(function() {
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
- });
-
- if ( !values.length ) {
- elem.selectedIndex = -1;
- }
- return values;
- }
- }
- },
-
- attrFn: {
- val: true,
- css: true,
- html: true,
- text: true,
- data: true,
- width: true,
- height: true,
- offset: true
- },
-
- attr: function( elem, name, value, pass ) {
- var ret, hooks, notxml,
- nType = elem.nodeType;
-
- // don't get/set attributes on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- if ( pass && name in jQuery.attrFn ) {
- return jQuery( elem )[ name ]( value );
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === "undefined" ) {
- return jQuery.prop( elem, name, value );
- }
-
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
- // All attributes are lowercase
- // Grab necessary hook if one is defined
- if ( notxml ) {
- name = name.toLowerCase();
- hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
- }
-
- if ( value !== undefined ) {
-
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
- return;
-
- } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
- return ret;
-
- } else {
- elem.setAttribute( name, "" + value );
- return value;
- }
-
- } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
- return ret;
-
- } else {
-
- ret = elem.getAttribute( name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret === null ?
- undefined :
- ret;
- }
- },
-
- removeAttr: function( elem, value ) {
- var propName, attrNames, name, l, isBool,
- i = 0;
-
- if ( value && elem.nodeType === 1 ) {
- attrNames = value.toLowerCase().split( rspace );
- l = attrNames.length;
-
- for ( ; i < l; i++ ) {
- name = attrNames[ i ];
-
- if ( name ) {
- propName = jQuery.propFix[ name ] || name;
- isBool = rboolean.test( name );
-
- // See #9699 for explanation of this approach (setting first, then removal)
- // Do not do this for boolean attributes (see #10870)
- if ( !isBool ) {
- jQuery.attr( elem, name, "" );
- }
- elem.removeAttribute( getSetAttribute ? name : propName );
-
- // Set corresponding property to false for boolean attributes
- if ( isBool && propName in elem ) {
- elem[ propName ] = false;
- }
- }
- }
- }
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- // We can't allow the type property to be changed (since it causes problems in IE)
- if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
- jQuery.error( "type property can't be changed" );
- } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
- // Setting the type on a radio button after the value resets the value in IE6-9
- // Reset value to it's default in case type is set after value
- // This is for element creation
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- },
- // Use the value property for back compat
- // Use the nodeHook for button elements in IE6/7 (#1954)
- value: {
- get: function( elem, name ) {
- if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
- return nodeHook.get( elem, name );
- }
- return name in elem ?
- elem.value :
- null;
- },
- set: function( elem, value, name ) {
- if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
- return nodeHook.set( elem, value, name );
- }
- // Does not return so that setAttribute is also used
- elem.value = value;
- }
- }
- },
-
- propFix: {
- tabindex: "tabIndex",
- readonly: "readOnly",
- "for": "htmlFor",
- "class": "className",
- maxlength: "maxLength",
- cellspacing: "cellSpacing",
- cellpadding: "cellPadding",
- rowspan: "rowSpan",
- colspan: "colSpan",
- usemap: "useMap",
- frameborder: "frameBorder",
- contenteditable: "contentEditable"
- },
-
- prop: function( elem, name, value ) {
- var ret, hooks, notxml,
- nType = elem.nodeType;
-
- // don't get/set properties on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
- if ( notxml ) {
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
- return ret;
-
- } else {
- return ( elem[ name ] = value );
- }
-
- } else {
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
- return ret;
-
- } else {
- return elem[ name ];
- }
- }
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- var attributeNode = elem.getAttributeNode("tabindex");
-
- return attributeNode && attributeNode.specified ?
- parseInt( attributeNode.value, 10 ) :
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- undefined;
- }
- }
- }
-});
-
-// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
-jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
-
-// Hook for boolean attributes
-boolHook = {
- get: function( elem, name ) {
- // Align boolean attributes with corresponding properties
- // Fall back to attribute presence where some booleans are not supported
- var attrNode,
- property = jQuery.prop( elem, name );
- return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
- name.toLowerCase() :
- undefined;
- },
- set: function( elem, value, name ) {
- var propName;
- if ( value === false ) {
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else {
- // value is true since we know at this point it's type boolean and not false
- // Set boolean attributes to the same name and set the DOM property
- propName = jQuery.propFix[ name ] || name;
- if ( propName in elem ) {
- // Only set the IDL specifically if it already exists on the element
- elem[ propName ] = true;
- }
-
- elem.setAttribute( name, name.toLowerCase() );
- }
- return name;
- }
-};
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !getSetAttribute ) {
-
- fixSpecified = {
- name: true,
- id: true,
- coords: true
- };
-
- // Use this for any attribute in IE6/7
- // This fixes almost every IE6/7 issue
- nodeHook = jQuery.valHooks.button = {
- get: function( elem, name ) {
- var ret;
- ret = elem.getAttributeNode( name );
- return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
- ret.nodeValue :
- undefined;
- },
- set: function( elem, value, name ) {
- // Set the existing or create a new attribute node
- var ret = elem.getAttributeNode( name );
- if ( !ret ) {
- ret = document.createAttribute( name );
- elem.setAttributeNode( ret );
- }
- return ( ret.nodeValue = value + "" );
- }
- };
-
- // Apply the nodeHook to tabindex
- jQuery.attrHooks.tabindex.set = nodeHook.set;
-
- // Set width and height to auto instead of 0 on empty string( Bug #8150 )
- // This is for removals
- jQuery.each([ "width", "height" ], function( i, name ) {
- jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
- set: function( elem, value ) {
- if ( value === "" ) {
- elem.setAttribute( name, "auto" );
- return value;
- }
- }
- });
- });
-
- // Set contenteditable to false on removals(#10429)
- // Setting to empty string throws an error as an invalid value
- jQuery.attrHooks.contenteditable = {
- get: nodeHook.get,
- set: function( elem, value, name ) {
- if ( value === "" ) {
- value = "false";
- }
- nodeHook.set( elem, value, name );
- }
- };
-}
-
-
-// Some attributes require a special call on IE
-if ( !jQuery.support.hrefNormalized ) {
- jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
- jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
- get: function( elem ) {
- var ret = elem.getAttribute( name, 2 );
- return ret === null ? undefined : ret;
- }
- });
- });
-}
-
-if ( !jQuery.support.style ) {
- jQuery.attrHooks.style = {
- get: function( elem ) {
- // Return undefined in the case of empty string
- // Normalize to lowercase since IE uppercases css property names
- return elem.style.cssText.toLowerCase() || undefined;
- },
- set: function( elem, value ) {
- return ( elem.style.cssText = "" + value );
- }
- };
-}
-
-// Safari mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !jQuery.support.optSelected ) {
- jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
- get: function( elem ) {
- var parent = elem.parentNode;
-
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- return null;
- }
- });
-}
-
-// IE6/7 call enctype encoding
-if ( !jQuery.support.enctype ) {
- jQuery.propFix.enctype = "encoding";
-}
-
-// Radios and checkboxes getter/setter
-if ( !jQuery.support.checkOn ) {
- jQuery.each([ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- get: function( elem ) {
- // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
- return elem.getAttribute("value") === null ? "on" : elem.value;
- }
- };
- });
-}
-jQuery.each([ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
- }
- }
- });
-});
-
-
-
-
-var rformElems = /^(?:textarea|input|select)$/i,
- rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
- rhoverHack = /(?:^|\s)hover(\.\S+)?\b/,
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|contextmenu)|click/,
- rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
- rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
- quickParse = function( selector ) {
- var quick = rquickIs.exec( selector );
- if ( quick ) {
- // 0 1 2 3
- // [ _, tag, id, class ]
- quick[1] = ( quick[1] || "" ).toLowerCase();
- quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
- }
- return quick;
- },
- quickIs = function( elem, m ) {
- var attrs = elem.attributes || {};
- return (
- (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
- (!m[2] || (attrs.id || {}).value === m[2]) &&
- (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
- );
- },
- hoverHack = function( events ) {
- return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
- };
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- add: function( elem, types, handler, data, selector ) {
-
- var elemData, eventHandle, events,
- t, tns, type, namespaces, handleObj,
- handleObjIn, quick, handlers, special;
-
- // Don't attach events to noData or text/comment nodes (allow plain objects tho)
- if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- events = elemData.events;
- if ( !events ) {
- elemData.events = events = {};
- }
- eventHandle = elemData.handle;
- if ( !eventHandle ) {
- elemData.handle = eventHandle = function( e ) {
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
- jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
- undefined;
- };
- // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
- eventHandle.elem = elem;
- }
-
- // Handle multiple events separated by a space
- // jQuery(...).bind("mouseover mouseout", fn);
- types = jQuery.trim( hoverHack(types) ).split( " " );
- for ( t = 0; t < types.length; t++ ) {
-
- tns = rtypenamespace.exec( types[t] ) || [];
- type = tns[1];
- namespaces = ( tns[2] || "" ).split( "." ).sort();
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend({
- type: type,
- origType: tns[1],
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- quick: selector && quickParse( selector ),
- namespace: namespaces.join(".")
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- handlers = events[ type ];
- if ( !handlers ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener/attachEvent if the special events handler returns false
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
- // Bind the global event handler to the element
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
-
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- global: {},
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
- t, tns, type, origType, namespaces, origCount,
- j, events, special, handle, eventType, handleObj;
-
- if ( !elemData || !(events = elemData.events) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
- for ( t = 0; t < types.length; t++ ) {
- tns = rtypenamespace.exec( types[t] ) || [];
- type = origType = tns[1];
- namespaces = tns[2];
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector? special.delegateType : special.bindType ) || type;
- eventType = events[ type ] || [];
- origCount = eventType.length;
- namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
-
- // Remove matching events
- for ( j = 0; j < eventType.length; j++ ) {
- handleObj = eventType[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
- eventType.splice( j--, 1 );
-
- if ( handleObj.selector ) {
- eventType.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( eventType.length === 0 && origCount !== eventType.length ) {
- if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- handle = elemData.handle;
- if ( handle ) {
- handle.elem = null;
- }
-
- // removeData also checks for emptiness and clears the expando if empty
- // so use it instead of delete
- jQuery.removeData( elem, [ "events", "handle" ], true );
- }
- },
-
- // Events that are safe to short-circuit if no handlers are attached.
- // Native DOM events should not be added, they may have inline handlers.
- customEvent: {
- "getData": true,
- "setData": true,
- "changeData": true
- },
-
- trigger: function( event, data, elem, onlyHandlers ) {
- // Don't do events on text and comment nodes
- if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
- return;
- }
-
- // Event object or event type
- var type = event.type || event,
- namespaces = [],
- cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf( "!" ) >= 0 ) {
- // Exclusive events trigger only for the exact event (no namespaces)
- type = type.slice(0, -1);
- exclusive = true;
- }
-
- if ( type.indexOf( "." ) >= 0 ) {
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split(".");
- type = namespaces.shift();
- namespaces.sort();
- }
-
- if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
- // No jQuery handlers for this event type, and it can't have inline handlers
- return;
- }
-
- // Caller can pass in an Event, Object, or just an event type string
- event = typeof event === "object" ?
- // jQuery.Event object
- event[ jQuery.expando ] ? event :
- // Object literal
- new jQuery.Event( type, event ) :
- // Just the event type (string)
- new jQuery.Event( type );
-
- event.type = type;
- event.isTrigger = true;
- event.exclusive = exclusive;
- event.namespace = namespaces.join( "." );
- event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
- ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
-
- // Handle a global trigger
- if ( !elem ) {
-
- // TODO: Stop taunting the data cache; remove global events and always attach to document
- cache = jQuery.cache;
- for ( i in cache ) {
- if ( cache[ i ].events && cache[ i ].events[ type ] ) {
- jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
- }
- }
- return;
- }
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data != null ? jQuery.makeArray( data ) : [];
- data.unshift( event );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- eventPath = [[ elem, special.bindType || type ]];
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
- old = null;
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push([ cur, bubbleType ]);
- old = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( old && old === elem.ownerDocument ) {
- eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
- }
- }
-
- // Fire handlers on the event path
- for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
-
- cur = eventPath[i][0];
- event.type = eventPath[i][1];
-
- handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
- // Note that this is a bare JS function and not a jQuery handler
- handle = ontype && cur[ ontype ];
- if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
- event.preventDefault();
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
- !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name name as the event.
- // Can't use an .isFunction() check here because IE6/7 fails that test.
- // Don't do default actions on window, that's where global variables be (#6170)
- // IE<9 dies on focus/blur to hidden element (#1486)
- if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- old = elem[ ontype ];
-
- if ( old ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- elem[ type ]();
- jQuery.event.triggered = undefined;
-
- if ( old ) {
- elem[ ontype ] = old;
- }
- }
- }
- }
-
- return event.result;
- },
-
- dispatch: function( event ) {
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( event || window.event );
-
- var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
- delegateCount = handlers.delegateCount,
- args = [].slice.call( arguments, 0 ),
- run_all = !event.exclusive && !event.namespace,
- special = jQuery.event.special[ event.type ] || {},
- handlerQueue = [],
- i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[0] = event;
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers that should run if there are delegated events
- // Avoid non-left-click bubbling in Firefox (#3861)
- if ( delegateCount && !(event.button && event.type === "click") ) {
-
- // Pregenerate a single jQuery object for reuse with .is()
- jqcur = jQuery(this);
- jqcur.context = this.ownerDocument || this;
-
- for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
-
- // Don't process events on disabled elements (#6911, #8165)
- if ( cur.disabled !== true ) {
- selMatch = {};
- matches = [];
- jqcur[0] = cur;
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
- sel = handleObj.selector;
-
- if ( selMatch[ sel ] === undefined ) {
- selMatch[ sel ] = (
- handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
- );
- }
- if ( selMatch[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push({ elem: cur, matches: matches });
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( handlers.length > delegateCount ) {
- handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
- }
-
- // Run delegates first; they may want to stop propagation beneath us
- for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
- matched = handlerQueue[ i ];
- event.currentTarget = matched.elem;
-
- for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
- handleObj = matched.matches[ j ];
-
- // Triggered event must either 1) be non-exclusive and have no namespace, or
- // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
- if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
-
- event.data = handleObj.data;
- event.handleObj = handleObj;
-
- ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
- .apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- event.result = ret;
- if ( ret === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- // Includes some event props shared by KeyEvent and MouseEvent
- // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
- props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
-
- fixHooks: {},
-
- keyHooks: {
- props: "char charCode key keyCode".split(" "),
- filter: function( event, original ) {
-
- // Add which for key events
- if ( event.which == null ) {
- event.which = original.charCode != null ? original.charCode : original.keyCode;
- }
-
- return event;
- }
- },
-
- mouseHooks: {
- props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
- filter: function( event, original ) {
- var eventDoc, doc, body,
- button = original.button,
- fromElement = original.fromElement;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && original.clientX != null ) {
- eventDoc = event.target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
-
- event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
- event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
- }
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && fromElement ) {
- event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && button !== undefined ) {
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event;
- }
- },
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // Create a writable copy of the event object and normalize some properties
- var i, prop,
- originalEvent = event,
- fixHook = jQuery.event.fixHooks[ event.type ] || {},
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
- event = jQuery.Event( originalEvent );
-
- for ( i = copy.length; i; ) {
- prop = copy[ --i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
- if ( !event.target ) {
- event.target = originalEvent.srcElement || document;
- }
-
- // Target should not be a text node (#504, Safari)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
- if ( event.metaKey === undefined ) {
- event.metaKey = event.ctrlKey;
- }
-
- return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
- },
-
- special: {
- ready: {
- // Make sure the ready event is setup
- setup: jQuery.bindReady
- },
-
- load: {
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
-
- focus: {
- delegateType: "focusin"
- },
- blur: {
- delegateType: "focusout"
- },
-
- beforeunload: {
- setup: function( data, namespaces, eventHandle ) {
- // We only want to do this special case on windows
- if ( jQuery.isWindow( this ) ) {
- this.onbeforeunload = eventHandle;
- }
- },
-
- teardown: function( namespaces, eventHandle ) {
- if ( this.onbeforeunload === eventHandle ) {
- this.onbeforeunload = null;
- }
- }
- }
- },
-
- simulate: function( type, elem, event, bubble ) {
- // Piggyback on a donor event to simulate a different one.
- // Fake originalEvent to avoid donor's stopPropagation, but if the
- // simulated event prevents default then we do the same on the donor.
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- { type: type,
- isSimulated: true,
- originalEvent: {}
- }
- );
- if ( bubble ) {
- jQuery.event.trigger( e, null, elem );
- } else {
- jQuery.event.dispatch.call( elem, e );
- }
- if ( e.isDefaultPrevented() ) {
- event.preventDefault();
- }
- }
-};
-
-// Some plugins are using, but it's undocumented/deprecated and will be removed.
-// The 1.7 special event interface should provide all the hooks needed now.
-jQuery.event.handle = jQuery.event.dispatch;
-
-jQuery.removeEvent = document.removeEventListener ?
- function( elem, type, handle ) {
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle, false );
- }
- } :
- function( elem, type, handle ) {
- if ( elem.detachEvent ) {
- elem.detachEvent( "on" + type, handle );
- }
- };
-
-jQuery.Event = function( src, props ) {
- // Allow instantiation without the 'new' keyword
- if ( !(this instanceof jQuery.Event) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
- src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
- return false;
-}
-function returnTrue() {
- return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- preventDefault: function() {
- this.isDefaultPrevented = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
-
- // if preventDefault exists run it on the original event
- if ( e.preventDefault ) {
- e.preventDefault();
-
- // otherwise set the returnValue property of the original event to false (IE)
- } else {
- e.returnValue = false;
- }
- },
- stopPropagation: function() {
- this.isPropagationStopped = returnTrue;
-
- var e = this.originalEvent;
- if ( !e ) {
- return;
- }
- // if stopPropagation exists run it on the original event
- if ( e.stopPropagation ) {
- e.stopPropagation();
- }
- // otherwise set the cancelBubble property of the original event to true (IE)
- e.cancelBubble = true;
- },
- stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = returnTrue;
- this.stopPropagation();
- },
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-jQuery.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj,
- selector = handleObj.selector,
- ret;
-
- // For mousenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-});
-
-// IE submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
- jQuery.event.special.submit = {
- setup: function() {
- // Only need this for delegated form submit events
- if ( jQuery.nodeName( this, "form" ) ) {
- return false;
- }
-
- // Lazy-add a submit handler when a descendant form may potentially be submitted
- jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
- // Node name check avoids a VML-related crash in IE (#9807)
- var elem = e.target,
- form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
- if ( form && !form._submit_attached ) {
- jQuery.event.add( form, "submit._submit", function( event ) {
- event._submit_bubble = true;
- });
- form._submit_attached = true;
- }
- });
- // return undefined since we don't need an event listener
- },
-
- postDispatch: function( event ) {
- // If form was submitted by the user, bubble the event up the tree
- if ( event._submit_bubble ) {
- delete event._submit_bubble;
- if ( this.parentNode && !event.isTrigger ) {
- jQuery.event.simulate( "submit", this.parentNode, event, true );
- }
- }
- },
-
- teardown: function() {
- // Only need this for delegated form submit events
- if ( jQuery.nodeName( this, "form" ) ) {
- return false;
- }
-
- // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
- jQuery.event.remove( this, "._submit" );
- }
- };
-}
-
-// IE change delegation and checkbox/radio fix
-if ( !jQuery.support.changeBubbles ) {
-
- jQuery.event.special.change = {
-
- setup: function() {
-
- if ( rformElems.test( this.nodeName ) ) {
- // IE doesn't fire change on a check/radio until blur; trigger it on click
- // after a propertychange. Eat the blur-change in special.change.handle.
- // This still fires onchange a second time for check/radio after blur.
- if ( this.type === "checkbox" || this.type === "radio" ) {
- jQuery.event.add( this, "propertychange._change", function( event ) {
- if ( event.originalEvent.propertyName === "checked" ) {
- this._just_changed = true;
- }
- });
- jQuery.event.add( this, "click._change", function( event ) {
- if ( this._just_changed && !event.isTrigger ) {
- this._just_changed = false;
- jQuery.event.simulate( "change", this, event, true );
- }
- });
- }
- return false;
- }
- // Delegated event; lazy-add a change handler on descendant inputs
- jQuery.event.add( this, "beforeactivate._change", function( e ) {
- var elem = e.target;
-
- if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
- jQuery.event.add( elem, "change._change", function( event ) {
- if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
- jQuery.event.simulate( "change", this.parentNode, event, true );
- }
- });
- elem._change_attached = true;
- }
- });
- },
-
- handle: function( event ) {
- var elem = event.target;
-
- // Swallow native change events from checkbox/radio, we already triggered them above
- if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
- return event.handleObj.handler.apply( this, arguments );
- }
- },
-
- teardown: function() {
- jQuery.event.remove( this, "._change" );
-
- return rformElems.test( this.nodeName );
- }
- };
-}
-
-// Create "bubbling" focus and blur events
-if ( !jQuery.support.focusinBubbles ) {
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler while someone wants focusin/focusout
- var attaches = 0,
- handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- if ( attaches++ === 0 ) {
- document.addEventListener( orig, handler, true );
- }
- },
- teardown: function() {
- if ( --attaches === 0 ) {
- document.removeEventListener( orig, handler, true );
- }
- }
- };
- });
-}
-
-jQuery.fn.extend({
-
- on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) { // && selector != null
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- this.on( type, selector, data, types[ type ], one );
- }
- return this;
- }
-
- if ( data == null && fn == null ) {
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return this;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return this.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- });
- },
- one: function( types, selector, data, fn ) {
- return this.on( types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- if ( types && types.preventDefault && types.handleObj ) {
- // ( event ) dispatched jQuery.Event
- var handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
- // ( types-object [, selector] )
- for ( var type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each(function() {
- jQuery.event.remove( this, types, fn, selector );
- });
- },
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- live: function( types, data, fn ) {
- jQuery( this.context ).on( types, this.selector, data, fn );
- return this;
- },
- die: function( types, fn ) {
- jQuery( this.context ).off( types, this.selector || "**", fn );
- return this;
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
- },
-
- trigger: function( type, data ) {
- return this.each(function() {
- jQuery.event.trigger( type, data, this );
- });
- },
- triggerHandler: function( type, data ) {
- if ( this[0] ) {
- return jQuery.event.trigger( type, data, this[0], true );
- }
- },
-
- toggle: function( fn ) {
- // Save reference to arguments for access in closure
- var args = arguments,
- guid = fn.guid || jQuery.guid++,
- i = 0,
- toggler = function( event ) {
- // Figure out which function to execute
- var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
- jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
- // Make sure that clicks stop
- event.preventDefault();
-
- // and execute the function
- return args[ lastToggle ].apply( this, arguments ) || false;
- };
-
- // link all the functions, so any of them can unbind this click handler
- toggler.guid = guid;
- while ( i < args.length ) {
- args[ i++ ].guid = guid;
- }
-
- return this.click( toggler );
- },
-
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-});
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- if ( fn == null ) {
- fn = data;
- data = null;
- }
-
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-
- if ( jQuery.attrFn ) {
- jQuery.attrFn[ name ] = true;
- }
-
- if ( rkeyEvent.test( name ) ) {
- jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
- }
-
- if ( rmouseEvent.test( name ) ) {
- jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
- }
-});
-
-
-
-/*!
- * Sizzle CSS Selector Engine
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- expando = "sizcache" + (Math.random() + '').replace('.', ''),
- done = 0,
- toString = Object.prototype.toString,
- hasDuplicate = false,
- baseHasDuplicate = true,
- rBackslash = /\\/g,
- rReturn = /\r\n/g,
- rNonWord = /\W/;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-// Thus far that includes Google Chrome.
-[0, 0].sort(function() {
- baseHasDuplicate = false;
- return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
- results = results || [];
- context = context || document;
-
- var origContext = context;
-
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
- return [];
- }
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- var m, set, checkSet, extra, ret, cur, pop, i,
- prune = true,
- contextXML = Sizzle.isXML( context ),
- parts = [],
- soFar = selector;
-
- // Reset the position of the chunker regexp (start from head)
- do {
- chunker.exec( "" );
- m = chunker.exec( soFar );
-
- if ( m ) {
- soFar = m[3];
-
- parts.push( m[1] );
-
- if ( m[2] ) {
- extra = m[3];
- break;
- }
- }
- } while ( m );
-
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
- set = posProcess( parts[0] + parts[1], context, seed );
-
- } else {
- set = Expr.relative[ parts[0] ] ?
- [ context ] :
- Sizzle( parts.shift(), context );
-
- while ( parts.length ) {
- selector = parts.shift();
-
- if ( Expr.relative[ selector ] ) {
- selector += parts.shift();
- }
-
- set = posProcess( selector, set, seed );
- }
- }
-
- } else {
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
- ret = Sizzle.find( parts.shift(), context, contextXML );
- context = ret.expr ?
- Sizzle.filter( ret.expr, ret.set )[0] :
- ret.set[0];
- }
-
- if ( context ) {
- ret = seed ?
- { expr: parts.pop(), set: makeArray(seed) } :
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
- set = ret.expr ?
- Sizzle.filter( ret.expr, ret.set ) :
- ret.set;
-
- if ( parts.length > 0 ) {
- checkSet = makeArray( set );
-
- } else {
- prune = false;
- }
-
- while ( parts.length ) {
- cur = parts.pop();
- pop = cur;
-
- if ( !Expr.relative[ cur ] ) {
- cur = "";
- } else {
- pop = parts.pop();
- }
-
- if ( pop == null ) {
- pop = context;
- }
-
- Expr.relative[ cur ]( checkSet, pop, contextXML );
- }
-
- } else {
- checkSet = parts = [];
- }
- }
-
- if ( !checkSet ) {
- checkSet = set;
- }
-
- if ( !checkSet ) {
- Sizzle.error( cur || selector );
- }
-
- if ( toString.call(checkSet) === "[object Array]" ) {
- if ( !prune ) {
- results.push.apply( results, checkSet );
-
- } else if ( context && context.nodeType === 1 ) {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
- results.push( set[i] );
- }
- }
-
- } else {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
- results.push( set[i] );
- }
- }
- }
-
- } else {
- makeArray( checkSet, results );
- }
-
- if ( extra ) {
- Sizzle( extra, origContext, results, seed );
- Sizzle.uniqueSort( results );
- }
-
- return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
- if ( sortOrder ) {
- hasDuplicate = baseHasDuplicate;
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- for ( var i = 1; i < results.length; i++ ) {
- if ( results[i] === results[ i - 1 ] ) {
- results.splice( i--, 1 );
- }
- }
- }
- }
-
- return results;
-};
-
-Sizzle.matches = function( expr, set ) {
- return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
- return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
- var set, i, len, match, type, left;
-
- if ( !expr ) {
- return [];
- }
-
- for ( i = 0, len = Expr.order.length; i < len; i++ ) {
- type = Expr.order[i];
-
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
- left = match[1];
- match.splice( 1, 1 );
-
- if ( left.substr( left.length - 1 ) !== "\\" ) {
- match[1] = (match[1] || "").replace( rBackslash, "" );
- set = Expr.find[ type ]( match, context, isXML );
-
- if ( set != null ) {
- expr = expr.replace( Expr.match[ type ], "" );
- break;
- }
- }
- }
- }
-
- if ( !set ) {
- set = typeof context.getElementsByTagName !== "undefined" ?
- context.getElementsByTagName( "*" ) :
- [];
- }
-
- return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
- var match, anyFound,
- type, found, item, filter, left,
- i, pass,
- old = expr,
- result = [],
- curLoop = set,
- isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
- while ( expr && set.length ) {
- for ( type in Expr.filter ) {
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
- filter = Expr.filter[ type ];
- left = match[1];
-
- anyFound = false;
-
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) === "\\" ) {
- continue;
- }
-
- if ( curLoop === result ) {
- result = [];
- }
-
- if ( Expr.preFilter[ type ] ) {
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
- if ( !match ) {
- anyFound = found = true;
-
- } else if ( match === true ) {
- continue;
- }
- }
-
- if ( match ) {
- for ( i = 0; (item = curLoop[i]) != null; i++ ) {
- if ( item ) {
- found = filter( item, match, i, curLoop );
- pass = not ^ found;
-
- if ( inplace && found != null ) {
- if ( pass ) {
- anyFound = true;
-
- } else {
- curLoop[i] = false;
- }
-
- } else if ( pass ) {
- result.push( item );
- anyFound = true;
- }
- }
- }
- }
-
- if ( found !== undefined ) {
- if ( !inplace ) {
- curLoop = result;
- }
-
- expr = expr.replace( Expr.match[ type ], "" );
-
- if ( !anyFound ) {
- return [];
- }
-
- break;
- }
- }
- }
-
- // Improper expression
- if ( expr === old ) {
- if ( anyFound == null ) {
- Sizzle.error( expr );
-
- } else {
- break;
- }
- }
-
- old = expr;
- }
-
- return curLoop;
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Utility function for retreiving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-var getText = Sizzle.getText = function( elem ) {
- var i, node,
- nodeType = elem.nodeType,
- ret = "";
-
- if ( nodeType ) {
- if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent || innerText for elements
- if ( typeof elem.textContent === 'string' ) {
- return elem.textContent;
- } else if ( typeof elem.innerText === 'string' ) {
- // Replace IE's carriage returns
- return elem.innerText.replace( rReturn, '' );
- } else {
- // Traverse it's children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- } else {
-
- // If no nodeType, this is expected to be an array
- for ( i = 0; (node = elem[i]); i++ ) {
- // Do not traverse comment nodes
- if ( node.nodeType !== 8 ) {
- ret += getText( node );
- }
- }
- }
- return ret;
-};
-
-var Expr = Sizzle.selectors = {
- order: [ "ID", "NAME", "TAG" ],
-
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
- },
-
- leftMatch: {},
-
- attrMap: {
- "class": "className",
- "for": "htmlFor"
- },
-
- attrHandle: {
- href: function( elem ) {
- return elem.getAttribute( "href" );
- },
- type: function( elem ) {
- return elem.getAttribute( "type" );
- }
- },
-
- relative: {
- "+": function(checkSet, part){
- var isPartStr = typeof part === "string",
- isTag = isPartStr && !rNonWord.test( part ),
- isPartStrNotTag = isPartStr && !isTag;
-
- if ( isTag ) {
- part = part.toLowerCase();
- }
-
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
- if ( (elem = checkSet[i]) ) {
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
- elem || false :
- elem === part;
- }
- }
-
- if ( isPartStrNotTag ) {
- Sizzle.filter( part, checkSet, true );
- }
- },
-
- ">": function( checkSet, part ) {
- var elem,
- isPartStr = typeof part === "string",
- i = 0,
- l = checkSet.length;
-
- if ( isPartStr && !rNonWord.test( part ) ) {
- part = part.toLowerCase();
-
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
-
- if ( elem ) {
- var parent = elem.parentNode;
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
- }
- }
-
- } else {
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
-
- if ( elem ) {
- checkSet[i] = isPartStr ?
- elem.parentNode :
- elem.parentNode === part;
- }
- }
-
- if ( isPartStr ) {
- Sizzle.filter( part, checkSet, true );
- }
- }
- },
-
- "": function(checkSet, part, isXML){
- var nodeCheck,
- doneName = done++,
- checkFn = dirCheck;
-
- if ( typeof part === "string" && !rNonWord.test( part ) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
-
- checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
- },
-
- "~": function( checkSet, part, isXML ) {
- var nodeCheck,
- doneName = done++,
- checkFn = dirCheck;
-
- if ( typeof part === "string" && !rNonWord.test( part ) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
-
- checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
- }
- },
-
- find: {
- ID: function( match, context, isXML ) {
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- return m && m.parentNode ? [m] : [];
- }
- },
-
- NAME: function( match, context ) {
- if ( typeof context.getElementsByName !== "undefined" ) {
- var ret = [],
- results = context.getElementsByName( match[1] );
-
- for ( var i = 0, l = results.length; i < l; i++ ) {
- if ( results[i].getAttribute("name") === match[1] ) {
- ret.push( results[i] );
- }
- }
-
- return ret.length === 0 ? null : ret;
- }
- },
-
- TAG: function( match, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( match[1] );
- }
- }
- },
- preFilter: {
- CLASS: function( match, curLoop, inplace, result, not, isXML ) {
- match = " " + match[1].replace( rBackslash, "" ) + " ";
-
- if ( isXML ) {
- return match;
- }
-
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
- if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
- if ( !inplace ) {
- result.push( elem );
- }
-
- } else if ( inplace ) {
- curLoop[i] = false;
- }
- }
- }
-
- return false;
- },
-
- ID: function( match ) {
- return match[1].replace( rBackslash, "" );
- },
-
- TAG: function( match, curLoop ) {
- return match[1].replace( rBackslash, "" ).toLowerCase();
- },
-
- CHILD: function( match ) {
- if ( match[1] === "nth" ) {
- if ( !match[2] ) {
- Sizzle.error( match[0] );
- }
-
- match[2] = match[2].replace(/^\+|\s*/g, '');
-
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
- match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
- // calculate the numbers (first)n+(last) including if they are negative
- match[2] = (test[1] + (test[2] || 1)) - 0;
- match[3] = test[3] - 0;
- }
- else if ( match[2] ) {
- Sizzle.error( match[0] );
- }
-
- // TODO: Move to normal caching system
- match[0] = done++;
-
- return match;
- },
-
- ATTR: function( match, curLoop, inplace, result, not, isXML ) {
- var name = match[1] = match[1].replace( rBackslash, "" );
-
- if ( !isXML && Expr.attrMap[name] ) {
- match[1] = Expr.attrMap[name];
- }
-
- // Handle if an un-quoted value was used
- match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
-
- if ( match[2] === "~=" ) {
- match[4] = " " + match[4] + " ";
- }
-
- return match;
- },
-
- PSEUDO: function( match, curLoop, inplace, result, not ) {
- if ( match[1] === "not" ) {
- // If we're dealing with a complex expression, or a simple one
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
- match[3] = Sizzle(match[3], null, null, curLoop);
-
- } else {
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
- if ( !inplace ) {
- result.push.apply( result, ret );
- }
-
- return false;
- }
-
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
- return true;
- }
-
- return match;
- },
-
- POS: function( match ) {
- match.unshift( true );
-
- return match;
- }
- },
-
- filters: {
- enabled: function( elem ) {
- return elem.disabled === false && elem.type !== "hidden";
- },
-
- disabled: function( elem ) {
- return elem.disabled === true;
- },
-
- checked: function( elem ) {
- return elem.checked === true;
- },
-
- selected: function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- parent: function( elem ) {
- return !!elem.firstChild;
- },
-
- empty: function( elem ) {
- return !elem.firstChild;
- },
-
- has: function( elem, i, match ) {
- return !!Sizzle( match[3], elem ).length;
- },
-
- header: function( elem ) {
- return (/h\d/i).test( elem.nodeName );
- },
-
- text: function( elem ) {
- var attr = elem.getAttribute( "type" ), type = elem.type;
- // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
- // use getAttribute instead to test this case
- return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
- },
-
- radio: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
- },
-
- checkbox: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
- },
-
- file: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
- },
-
- password: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
- },
-
- submit: function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && "submit" === elem.type;
- },
-
- image: function( elem ) {
- return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
- },
-
- reset: function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && "reset" === elem.type;
- },
-
- button: function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && "button" === elem.type || name === "button";
- },
-
- input: function( elem ) {
- return (/input|select|textarea|button/i).test( elem.nodeName );
- },
-
- focus: function( elem ) {
- return elem === elem.ownerDocument.activeElement;
- }
- },
- setFilters: {
- first: function( elem, i ) {
- return i === 0;
- },
-
- last: function( elem, i, match, array ) {
- return i === array.length - 1;
- },
-
- even: function( elem, i ) {
- return i % 2 === 0;
- },
-
- odd: function( elem, i ) {
- return i % 2 === 1;
- },
-
- lt: function( elem, i, match ) {
- return i < match[3] - 0;
- },
-
- gt: function( elem, i, match ) {
- return i > match[3] - 0;
- },
-
- nth: function( elem, i, match ) {
- return match[3] - 0 === i;
- },
-
- eq: function( elem, i, match ) {
- return match[3] - 0 === i;
- }
- },
- filter: {
- PSEUDO: function( elem, match, i, array ) {
- var name = match[1],
- filter = Expr.filters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
-
- } else if ( name === "contains" ) {
- return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
- } else if ( name === "not" ) {
- var not = match[3];
-
- for ( var j = 0, l = not.length; j < l; j++ ) {
- if ( not[j] === elem ) {
- return false;
- }
- }
-
- return true;
-
- } else {
- Sizzle.error( name );
- }
- },
-
- CHILD: function( elem, match ) {
- var first, last,
- doneName, parent, cache,
- count, diff,
- type = match[1],
- node = elem;
-
- switch ( type ) {
- case "only":
- case "first":
- while ( (node = node.previousSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
-
- if ( type === "first" ) {
- return true;
- }
-
- node = elem;
-
- /* falls through */
- case "last":
- while ( (node = node.nextSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
-
- return true;
-
- case "nth":
- first = match[2];
- last = match[3];
-
- if ( first === 1 && last === 0 ) {
- return true;
- }
-
- doneName = match[0];
- parent = elem.parentNode;
-
- if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
- count = 0;
-
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
- if ( node.nodeType === 1 ) {
- node.nodeIndex = ++count;
- }
- }
-
- parent[ expando ] = doneName;
- }
-
- diff = elem.nodeIndex - last;
-
- if ( first === 0 ) {
- return diff === 0;
-
- } else {
- return ( diff % first === 0 && diff / first >= 0 );
- }
- }
- },
-
- ID: function( elem, match ) {
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
- },
-
- TAG: function( elem, match ) {
- return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
- },
-
- CLASS: function( elem, match ) {
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
- .indexOf( match ) > -1;
- },
-
- ATTR: function( elem, match ) {
- var name = match[1],
- result = Sizzle.attr ?
- Sizzle.attr( elem, name ) :
- Expr.attrHandle[ name ] ?
- Expr.attrHandle[ name ]( elem ) :
- elem[ name ] != null ?
- elem[ name ] :
- elem.getAttribute( name ),
- value = result + "",
- type = match[2],
- check = match[4];
-
- return result == null ?
- type === "!=" :
- !type && Sizzle.attr ?
- result != null :
- type === "=" ?
- value === check :
- type === "*=" ?
- value.indexOf(check) >= 0 :
- type === "~=" ?
- (" " + value + " ").indexOf(check) >= 0 :
- !check ?
- value && result !== false :
- type === "!=" ?
- value !== check :
- type === "^=" ?
- value.indexOf(check) === 0 :
- type === "$=" ?
- value.substr(value.length - check.length) === check :
- type === "|=" ?
- value === check || value.substr(0, check.length + 1) === check + "-" :
- false;
- },
-
- POS: function( elem, match, i, array ) {
- var name = match[2],
- filter = Expr.setFilters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- }
- }
- }
-};
-
-var origPOS = Expr.match.POS,
- fescape = function(all, num){
- return "\\" + (num - 0 + 1);
- };
-
-for ( var type in Expr.match ) {
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-// Expose origPOS
-// "global" as in regardless of relation to brackets/parens
-Expr.match.globalPOS = origPOS;
-
-var makeArray = function( array, results ) {
- array = Array.prototype.slice.call( array, 0 );
-
- if ( results ) {
- results.push.apply( results, array );
- return results;
- }
-
- return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
- makeArray = function( array, results ) {
- var i = 0,
- ret = results || [];
-
- if ( toString.call(array) === "[object Array]" ) {
- Array.prototype.push.apply( ret, array );
-
- } else {
- if ( typeof array.length === "number" ) {
- for ( var l = array.length; i < l; i++ ) {
- ret.push( array[i] );
- }
-
- } else {
- for ( ; array[i]; i++ ) {
- ret.push( array[i] );
- }
- }
- }
-
- return ret;
- };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
- return a.compareDocumentPosition ? -1 : 1;
- }
-
- return a.compareDocumentPosition(b) & 4 ? -1 : 1;
- };
-
-} else {
- sortOrder = function( a, b ) {
- // The nodes are identical, we can exit early
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
-
- // Fallback to using sourceIndex (in IE) if it's available on both nodes
- } else if ( a.sourceIndex && b.sourceIndex ) {
- return a.sourceIndex - b.sourceIndex;
- }
-
- var al, bl,
- ap = [],
- bp = [],
- aup = a.parentNode,
- bup = b.parentNode,
- cur = aup;
-
- // If the nodes are siblings (or identical) we can do a quick check
- if ( aup === bup ) {
- return siblingCheck( a, b );
-
- // If no parents were found then the nodes are disconnected
- } else if ( !aup ) {
- return -1;
-
- } else if ( !bup ) {
- return 1;
- }
-
- // Otherwise they're somewhere else in the tree so we need
- // to build up a full list of the parentNodes for comparison
- while ( cur ) {
- ap.unshift( cur );
- cur = cur.parentNode;
- }
-
- cur = bup;
-
- while ( cur ) {
- bp.unshift( cur );
- cur = cur.parentNode;
- }
-
- al = ap.length;
- bl = bp.length;
-
- // Start walking down the tree looking for a discrepancy
- for ( var i = 0; i < al && i < bl; i++ ) {
- if ( ap[i] !== bp[i] ) {
- return siblingCheck( ap[i], bp[i] );
- }
- }
-
- // We ended someplace up the tree so do a sibling check
- return i === al ?
- siblingCheck( a, bp[i], -1 ) :
- siblingCheck( ap[i], b, 1 );
- };
-
- siblingCheck = function( a, b, ret ) {
- if ( a === b ) {
- return ret;
- }
-
- var cur = a.nextSibling;
-
- while ( cur ) {
- if ( cur === b ) {
- return -1;
- }
-
- cur = cur.nextSibling;
- }
-
- return 1;
- };
-}
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
- // We're going to inject a fake input element with a specified name
- var form = document.createElement("div"),
- id = "script" + (new Date()).getTime(),
- root = document.documentElement;
-
- form.innerHTML = "<a name='" + id + "'/>";
-
- // Inject it into the root element, check its status, and remove it quickly
- root.insertBefore( form, root.firstChild );
-
- // The workaround has to do additional checks after a getElementById
- // Which slows things down for other browsers (hence the branching)
- if ( document.getElementById( id ) ) {
- Expr.find.ID = function( match, context, isXML ) {
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
-
- return m ?
- m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
- [m] :
- undefined :
- [];
- }
- };
-
- Expr.filter.ID = function( elem, match ) {
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
- return elem.nodeType === 1 && node && node.nodeValue === match;
- };
- }
-
- root.removeChild( form );
-
- // release memory in IE
- root = form = null;
-})();
-
-(function(){
- // Check to see if the browser returns only elements
- // when doing getElementsByTagName("*")
-
- // Create a fake element
- var div = document.createElement("div");
- div.appendChild( document.createComment("") );
-
- // Make sure no comments are found
- if ( div.getElementsByTagName("*").length > 0 ) {
- Expr.find.TAG = function( match, context ) {
- var results = context.getElementsByTagName( match[1] );
-
- // Filter out possible comments
- if ( match[1] === "*" ) {
- var tmp = [];
-
- for ( var i = 0; results[i]; i++ ) {
- if ( results[i].nodeType === 1 ) {
- tmp.push( results[i] );
- }
- }
-
- results = tmp;
- }
-
- return results;
- };
- }
-
- // Check to see if an attribute returns normalized href attributes
- div.innerHTML = "<a href='#'></a>";
-
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
- div.firstChild.getAttribute("href") !== "#" ) {
-
- Expr.attrHandle.href = function( elem ) {
- return elem.getAttribute( "href", 2 );
- };
- }
-
- // release memory in IE
- div = null;
-})();
-
-if ( document.querySelectorAll ) {
- (function(){
- var oldSizzle = Sizzle,
- div = document.createElement("div"),
- id = "__sizzle__";
-
- div.innerHTML = "<p class='TEST'></p>";
-
- // Safari can't handle uppercase or unicode characters when
- // in quirks mode.
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
- return;
- }
-
- Sizzle = function( query, context, extra, seed ) {
- context = context || document;
-
- // Only use querySelectorAll on non-XML documents
- // (ID selectors don't work in non-HTML documents)
- if ( !seed && !Sizzle.isXML(context) ) {
- // See if we find a selector to speed up
- var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
-
- if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
- // Speed-up: Sizzle("TAG")
- if ( match[1] ) {
- return makeArray( context.getElementsByTagName( query ), extra );
-
- // Speed-up: Sizzle(".CLASS")
- } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
- return makeArray( context.getElementsByClassName( match[2] ), extra );
- }
- }
-
- if ( context.nodeType === 9 ) {
- // Speed-up: Sizzle("body")
- // The body element only exists once, optimize finding it
- if ( query === "body" && context.body ) {
- return makeArray( [ context.body ], extra );
-
- // Speed-up: Sizzle("#ID")
- } else if ( match && match[3] ) {
- var elem = context.getElementById( match[3] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id === match[3] ) {
- return makeArray( [ elem ], extra );
- }
-
- } else {
- return makeArray( [], extra );
- }
- }
-
- try {
- return makeArray( context.querySelectorAll(query), extra );
- } catch(qsaError) {}
-
- // qSA works strangely on Element-rooted queries
- // We can work around this by specifying an extra ID on the root
- // and working up from there (Thanks to Andrew Dupont for the technique)
- // IE 8 doesn't work on object elements
- } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
- var oldContext = context,
- old = context.getAttribute( "id" ),
- nid = old || id,
- hasParent = context.parentNode,
- relativeHierarchySelector = /^\s*[+~]/.test( query );
-
- if ( !old ) {
- context.setAttribute( "id", nid );
- } else {
- nid = nid.replace( /'/g, "\\$&" );
- }
- if ( relativeHierarchySelector && hasParent ) {
- context = context.parentNode;
- }
-
- try {
- if ( !relativeHierarchySelector || hasParent ) {
- return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
- }
-
- } catch(pseudoError) {
- } finally {
- if ( !old ) {
- oldContext.removeAttribute( "id" );
- }
- }
- }
- }
-
- return oldSizzle(query, context, extra, seed);
- };
-
- for ( var prop in oldSizzle ) {
- Sizzle[ prop ] = oldSizzle[ prop ];
- }
-
- // release memory in IE
- div = null;
- })();
-}
-
-(function(){
- var html = document.documentElement,
- matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
-
- if ( matches ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9 fails this)
- var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
- pseudoWorks = false;
-
- try {
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( document.documentElement, "[test!='']:sizzle" );
-
- } catch( pseudoError ) {
- pseudoWorks = true;
- }
-
- Sizzle.matchesSelector = function( node, expr ) {
- // Make sure that attribute selectors are quoted
- expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
- if ( !Sizzle.isXML( node ) ) {
- try {
- if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
- var ret = matches.call( node, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || !disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9, so check for that
- node.document && node.document.nodeType !== 11 ) {
- return ret;
- }
- }
- } catch(e) {}
- }
-
- return Sizzle(expr, null, null, [node]).length > 0;
- };
- }
-})();
-
-(function(){
- var div = document.createElement("div");
-
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
- // Opera can't find a second classname (in 9.6)
- // Also, make sure that getElementsByClassName actually exists
- if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
- return;
- }
-
- // Safari caches class attributes, doesn't catch changes (in 3.2)
- div.lastChild.className = "e";
-
- if ( div.getElementsByClassName("e").length === 1 ) {
- return;
- }
-
- Expr.order.splice(1, 0, "CLASS");
- Expr.find.CLASS = function( match, context, isXML ) {
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
- return context.getElementsByClassName(match[1]);
- }
- };
-
- // release memory in IE
- div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
-
- if ( elem ) {
- var match = false;
-
- elem = elem[dir];
-
- while ( elem ) {
- if ( elem[ expando ] === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 && !isXML ){
- elem[ expando ] = doneName;
- elem.sizset = i;
- }
-
- if ( elem.nodeName.toLowerCase() === cur ) {
- match = elem;
- break;
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
-
- if ( elem ) {
- var match = false;
-
- elem = elem[dir];
-
- while ( elem ) {
- if ( elem[ expando ] === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 ) {
- if ( !isXML ) {
- elem[ expando ] = doneName;
- elem.sizset = i;
- }
-
- if ( typeof cur !== "string" ) {
- if ( elem === cur ) {
- match = true;
- break;
- }
-
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
- match = elem;
- break;
- }
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-if ( document.documentElement.contains ) {
- Sizzle.contains = function( a, b ) {
- return a !== b && (a.contains ? a.contains(b) : true);
- };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
- Sizzle.contains = function( a, b ) {
- return !!(a.compareDocumentPosition(b) & 16);
- };
-
-} else {
- Sizzle.contains = function() {
- return false;
- };
-}
-
-Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context, seed ) {
- var match,
- tmpSet = [],
- later = "",
- root = context.nodeType ? [context] : context;
-
- // Position selectors must be done after the filter
- // And so must :not(positional) so we move all PSEUDOs to the end
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
- later += match[0];
- selector = selector.replace( Expr.match.PSEUDO, "" );
- }
-
- selector = Expr.relative[selector] ? selector + "*" : selector;
-
- for ( var i = 0, l = root.length; i < l; i++ ) {
- Sizzle( selector, root[i], tmpSet, seed );
- }
-
- return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-// Override sizzle attribute retrieval
-Sizzle.attr = jQuery.attr;
-Sizzle.selectors.attrMap = {};
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
- rparentsprev = /^(?:parents|prevUntil|prevAll)/,
- // Note: This RegExp should be improved, or likely pulled from Sizzle
- rmultiselector = /,/,
- isSimple = /^.[^:#\[\.,]*$/,
- slice = Array.prototype.slice,
- POS = jQuery.expr.match.globalPOS,
- // methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend({
- find: function( selector ) {
- var self = this,
- i, l;
-
- if ( typeof selector !== "string" ) {
- return jQuery( selector ).filter(function() {
- for ( i = 0, l = self.length; i < l; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- });
- }
-
- var ret = this.pushStack( "", "find", selector ),
- length, n, r;
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- length = ret.length;
- jQuery.find( selector, this[i], ret );
-
- if ( i > 0 ) {
- // Make sure that the results are unique
- for ( n = length; n < ret.length; n++ ) {
- for ( r = 0; r < length; r++ ) {
- if ( ret[r] === ret[n] ) {
- ret.splice(n--, 1);
- break;
- }
- }
- }
- }
- }
-
- return ret;
- },
-
- has: function( target ) {
- var targets = jQuery( target );
- return this.filter(function() {
- for ( var i = 0, l = targets.length; i < l; i++ ) {
- if ( jQuery.contains( this, targets[i] ) ) {
- return true;
- }
- }
- });
- },
-
- not: function( selector ) {
- return this.pushStack( winnow(this, selector, false), "not", selector);
- },
-
- filter: function( selector ) {
- return this.pushStack( winnow(this, selector, true), "filter", selector );
- },
-
- is: function( selector ) {
- return !!selector && (
- typeof selector === "string" ?
- // If this is a positional selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- POS.test( selector ) ?
- jQuery( selector, this.context ).index( this[0] ) >= 0 :
- jQuery.filter( selector, this ).length > 0 :
- this.filter( selector ).length > 0 );
- },
-
- closest: function( selectors, context ) {
- var ret = [], i, l, cur = this[0];
-
- // Array (deprecated as of jQuery 1.7)
- if ( jQuery.isArray( selectors ) ) {
- var level = 1;
-
- while ( cur && cur.ownerDocument && cur !== context ) {
- for ( i = 0; i < selectors.length; i++ ) {
-
- if ( jQuery( cur ).is( selectors[ i ] ) ) {
- ret.push({ selector: selectors[ i ], elem: cur, level: level });
- }
- }
-
- cur = cur.parentNode;
- level++;
- }
-
- return ret;
- }
-
- // String
- var pos = POS.test( selectors ) || typeof selectors !== "string" ?
- jQuery( selectors, context || this.context ) :
- 0;
-
- for ( i = 0, l = this.length; i < l; i++ ) {
- cur = this[i];
-
- while ( cur ) {
- if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
- ret.push( cur );
- break;
-
- } else {
- cur = cur.parentNode;
- if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
- break;
- }
- }
- }
- }
-
- ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
-
- return this.pushStack( ret, "closest", selectors );
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
- }
-
- // index in selector
- if ( typeof elem === "string" ) {
- return jQuery.inArray( this[0], jQuery( elem ) );
- }
-
- // Locate the position of the desired element
- return jQuery.inArray(
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[0] : elem, this );
- },
-
- add: function( selector, context ) {
- var set = typeof selector === "string" ?
- jQuery( selector, context ) :
- jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
- all = jQuery.merge( this.get(), set );
-
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
- all :
- jQuery.unique( all ) );
- },
-
- andSelf: function() {
- return this.add( this.prevObject );
- }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
- return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return jQuery.dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return jQuery.nth( elem, 2, "nextSibling" );
- },
- prev: function( elem ) {
- return jQuery.nth( elem, 2, "previousSibling" );
- },
- nextAll: function( elem ) {
- return jQuery.dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return jQuery.dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return jQuery.sibling( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.makeArray( elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until );
-
- if ( !runtil.test( name ) ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- ret = jQuery.filter( selector, ret );
- }
-
- ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
-
- if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
- ret = ret.reverse();
- }
-
- return this.pushStack( ret, name, slice.call( arguments ).join(",") );
- };
-});
-
-jQuery.extend({
- filter: function( expr, elems, not ) {
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 ?
- jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
- jQuery.find.matches(expr, elems);
- },
-
- dir: function( elem, dir, until ) {
- var matched = [],
- cur = elem[ dir ];
-
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
- if ( cur.nodeType === 1 ) {
- matched.push( cur );
- }
- cur = cur[dir];
- }
- return matched;
- },
-
- nth: function( cur, result, dir, elem ) {
- result = result || 1;
- var num = 0;
-
- for ( ; cur; cur = cur[dir] ) {
- if ( cur.nodeType === 1 && ++num === result ) {
- break;
- }
- }
-
- return cur;
- },
-
- sibling: function( n, elem ) {
- var r = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- r.push( n );
- }
- }
-
- return r;
- }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
-
- // Can't pass null or undefined to indexOf in Firefox 4
- // Set to 0 to skip string check
- qualifier = qualifier || 0;
-
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep(elements, function( elem, i ) {
- var retVal = !!qualifier.call( elem, i, elem );
- return retVal === keep;
- });
-
- } else if ( qualifier.nodeType ) {
- return jQuery.grep(elements, function( elem, i ) {
- return ( elem === qualifier ) === keep;
- });
-
- } else if ( typeof qualifier === "string" ) {
- var filtered = jQuery.grep(elements, function( elem ) {
- return elem.nodeType === 1;
- });
-
- if ( isSimple.test( qualifier ) ) {
- return jQuery.filter(qualifier, filtered, !keep);
- } else {
- qualifier = jQuery.filter( qualifier, filtered );
- }
- }
-
- return jQuery.grep(elements, function( elem, i ) {
- return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
- });
-}
-
-
-
-
-function createSafeFragment( document ) {
- var list = nodeNames.split( "|" ),
- safeFrag = document.createDocumentFragment();
-
- if ( safeFrag.createElement ) {
- while ( list.length ) {
- safeFrag.createElement(
- list.pop()
- );
- }
- }
- return safeFrag;
-}
-
-var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
- "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
- rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
- rleadingWhitespace = /^\s+/,
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
- rtagName = /<([\w:]+)/,
- rtbody = /<tbody/i,
- rhtml = /<|&#?\w+;/,
- rnoInnerhtml = /<(?:script|style)/i,
- rnocache = /<(?:script|object|embed|option|style)/i,
- rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptType = /\/(java|ecma)script/i,
- rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
- wrapMap = {
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
- legend: [ 1, "<fieldset>", "</fieldset>" ],
- thead: [ 1, "<table>", "</table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
- col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
- area: [ 1, "<map>", "</map>" ],
- _default: [ 0, "", "" ]
- },
- safeFragment = createSafeFragment( document );
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
- wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
- text: function( value ) {
- return jQuery.access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
- }, null, value, arguments.length );
- },
-
- wrapAll: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapAll( html.call(this, i) );
- });
- }
-
- if ( this[0] ) {
- // The elements to wrap the target around
- var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
- if ( this[0].parentNode ) {
- wrap.insertBefore( this[0] );
- }
-
- wrap.map(function() {
- var elem = this;
-
- while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
- elem = elem.firstChild;
- }
-
- return elem;
- }).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapInner( html.call(this, i) );
- });
- }
-
- return this.each(function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- });
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each(function(i) {
- jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
- });
- },
-
- unwrap: function() {
- return this.parent().each(function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- }).end();
- },
-
- append: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.appendChild( elem );
- }
- });
- },
-
- prepend: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 ) {
- this.insertBefore( elem, this.firstChild );
- }
- });
- },
-
- before: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this );
- });
- } else if ( arguments.length ) {
- var set = jQuery.clean( arguments );
- set.push.apply( set, this.toArray() );
- return this.pushStack( set, "before", arguments );
- }
- },
-
- after: function() {
- if ( this[0] && this[0].parentNode ) {
- return this.domManip(arguments, false, function( elem ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- });
- } else if ( arguments.length ) {
- var set = this.pushStack( this, "after", arguments );
- set.push.apply( set, jQuery.clean(arguments) );
- return set;
- }
- },
-
- // keepData is for internal use only--do not document
- remove: function( selector, keepData ) {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
- if ( !keepData && elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- jQuery.cleanData( [ elem ] );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
- }
- }
-
- return this;
- },
-
- empty: function() {
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName("*") );
- }
-
- // Remove any remaining nodes
- while ( elem.firstChild ) {
- elem.removeChild( elem.firstChild );
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function () {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- });
- },
-
- html: function( value ) {
- return jQuery.access( this, function( value ) {
- var elem = this[0] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined ) {
- return elem.nodeType === 1 ?
- elem.innerHTML.replace( rinlinejQuery, "" ) :
- null;
- }
-
-
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
- !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
-
- value = value.replace( rxhtmlTag, "<$1></$2>" );
-
- try {
- for (; i < l; i++ ) {
- // Remove element nodes and prevent memory leaks
- elem = this[i] || {};
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( elem.getElementsByTagName( "*" ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch(e) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function( value ) {
- if ( this[0] && this[0].parentNode ) {
- // Make sure that the elements are removed from the DOM before they are inserted
- // this can help fix replacing a parent with child elements
- if ( jQuery.isFunction( value ) ) {
- return this.each(function(i) {
- var self = jQuery(this), old = self.html();
- self.replaceWith( value.call( this, i, old ) );
- });
- }
-
- if ( typeof value !== "string" ) {
- value = jQuery( value ).detach();
- }
-
- return this.each(function() {
- var next = this.nextSibling,
- parent = this.parentNode;
-
- jQuery( this ).remove();
-
- if ( next ) {
- jQuery(next).before( value );
- } else {
- jQuery(parent).append( value );
- }
- });
- } else {
- return this.length ?
- this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
- this;
- }
- },
-
- detach: function( selector ) {
- return this.remove( selector, true );
- },
-
- domManip: function( args, table, callback ) {
- var results, first, fragment, parent,
- value = args[0],
- scripts = [];
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
- return this.each(function() {
- jQuery(this).domManip( args, table, callback, true );
- });
- }
-
- if ( jQuery.isFunction(value) ) {
- return this.each(function(i) {
- var self = jQuery(this);
- args[0] = value.call(this, i, table ? self.html() : undefined);
- self.domManip( args, table, callback );
- });
- }
-
- if ( this[0] ) {
- parent = value && value.parentNode;
-
- // If we're in a fragment, just use that instead of building a new one
- if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
- results = { fragment: parent };
-
- } else {
- results = jQuery.buildFragment( args, this, scripts );
- }
-
- fragment = results.fragment;
-
- if ( fragment.childNodes.length === 1 ) {
- first = fragment = fragment.firstChild;
- } else {
- first = fragment.firstChild;
- }
-
- if ( first ) {
- table = table && jQuery.nodeName( first, "tr" );
-
- for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
- callback.call(
- table ?
- root(this[i], first) :
- this[i],
- // Make sure that we do not leak memory by inadvertently discarding
- // the original fragment (which might have attached data) instead of
- // using it; in addition, use the original fragment object for the last
- // item instead of first because it can end up being emptied incorrectly
- // in certain situations (Bug #8070).
- // Fragments from the fragment cache must always be cloned and never used
- // in place.
- results.cacheable || ( l > 1 && i < lastIndex ) ?
- jQuery.clone( fragment, true, true ) :
- fragment
- );
- }
- }
-
- if ( scripts.length ) {
- jQuery.each( scripts, function( i, elem ) {
- if ( elem.src ) {
- jQuery.ajax({
- type: "GET",
- global: false,
- url: elem.src,
- async: false,
- dataType: "script"
- });
- } else {
- jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
- }
-
- if ( elem.parentNode ) {
- elem.parentNode.removeChild( elem );
- }
- });
- }
- }
-
- return this;
- }
-});
-
-function root( elem, cur ) {
- return jQuery.nodeName(elem, "table") ?
- (elem.getElementsByTagName("tbody")[0] ||
- elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
- elem;
-}
-
-function cloneCopyEvent( src, dest ) {
-
- if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
- return;
- }
-
- var type, i, l,
- oldData = jQuery._data( src ),
- curData = jQuery._data( dest, oldData ),
- events = oldData.events;
-
- if ( events ) {
- delete curData.handle;
- curData.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
-
- // make the cloned public data object a copy from the original
- if ( curData.data ) {
- curData.data = jQuery.extend( {}, curData.data );
- }
-}
-
-function cloneFixAttributes( src, dest ) {
- var nodeName;
-
- // We do not need to do anything for non-Elements
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- // clearAttributes removes the attributes, which we don't want,
- // but also removes the attachEvent events, which we *do* want
- if ( dest.clearAttributes ) {
- dest.clearAttributes();
- }
-
- // mergeAttributes, in contrast, only merges back on the
- // original attributes, not the events
- if ( dest.mergeAttributes ) {
- dest.mergeAttributes( src );
- }
-
- nodeName = dest.nodeName.toLowerCase();
-
- // IE6-8 fail to clone children inside object elements that use
- // the proprietary classid attribute value (rather than the type
- // attribute) to identify the type of content to display
- if ( nodeName === "object" ) {
- dest.outerHTML = src.outerHTML;
-
- } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
- // IE6-8 fails to persist the checked state of a cloned checkbox
- // or radio button. Worse, IE6-7 fail to give the cloned element
- // a checked appearance if the defaultChecked value isn't also set
- if ( src.checked ) {
- dest.defaultChecked = dest.checked = src.checked;
- }
-
- // IE6-7 get confused and end up setting the value of a cloned
- // checkbox/radio button to an empty string instead of "on"
- if ( dest.value !== src.value ) {
- dest.value = src.value;
- }
-
- // IE6-8 fails to return the selected option to the default selected
- // state when cloning options
- } else if ( nodeName === "option" ) {
- dest.selected = src.defaultSelected;
-
- // IE6-8 fails to set the defaultValue to the correct value when
- // cloning other types of input fields
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
-
- // IE blanks contents when cloning scripts
- } else if ( nodeName === "script" && dest.text !== src.text ) {
- dest.text = src.text;
- }
-
- // Event data gets referenced instead of copied if the expando
- // gets copied too
- dest.removeAttribute( jQuery.expando );
-
- // Clear flags for bubbling special change/submit events, they must
- // be reattached when the newly cloned events are first activated
- dest.removeAttribute( "_submit_attached" );
- dest.removeAttribute( "_change_attached" );
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
- var fragment, cacheable, cacheresults, doc,
- first = args[ 0 ];
-
- // nodes may contain either an explicit document object,
- // a jQuery collection or context object.
- // If nodes[0] contains a valid object to assign to doc
- if ( nodes && nodes[0] ) {
- doc = nodes[0].ownerDocument || nodes[0];
- }
-
- // Ensure that an attr object doesn't incorrectly stand in as a document object
- // Chrome and Firefox seem to allow this to occur and will throw exception
- // Fixes #8950
- if ( !doc.createDocumentFragment ) {
- doc = document;
- }
-
- // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
- // Cloning options loses the selected state, so don't cache them
- // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
- // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
- // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
- if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
- first.charAt(0) === "<" && !rnocache.test( first ) &&
- (jQuery.support.checkClone || !rchecked.test( first )) &&
- (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
-
- cacheable = true;
-
- cacheresults = jQuery.fragments[ first ];
- if ( cacheresults && cacheresults !== 1 ) {
- fragment = cacheresults;
- }
- }
-
- if ( !fragment ) {
- fragment = doc.createDocumentFragment();
- jQuery.clean( args, doc, fragment, scripts );
- }
-
- if ( cacheable ) {
- jQuery.fragments[ first ] = cacheresults ? fragment : 1;
- }
-
- return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var ret = [],
- insert = jQuery( selector ),
- parent = this.length === 1 && this[0].parentNode;
-
- if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
- insert[ original ]( this[0] );
- return this;
-
- } else {
- for ( var i = 0, l = insert.length; i < l; i++ ) {
- var elems = ( i > 0 ? this.clone(true) : this ).get();
- jQuery( insert[i] )[ original ]( elems );
- ret = ret.concat( elems );
- }
-
- return this.pushStack( ret, name, insert.selector );
- }
- };
-});
-
-function getAll( elem ) {
- if ( typeof elem.getElementsByTagName !== "undefined" ) {
- return elem.getElementsByTagName( "*" );
-
- } else if ( typeof elem.querySelectorAll !== "undefined" ) {
- return elem.querySelectorAll( "*" );
-
- } else {
- return [];
- }
-}
-
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
- if ( elem.type === "checkbox" || elem.type === "radio" ) {
- elem.defaultChecked = elem.checked;
- }
-}
-// Finds all inputs and passes them to fixDefaultChecked
-function findInputs( elem ) {
- var nodeName = ( elem.nodeName || "" ).toLowerCase();
- if ( nodeName === "input" ) {
- fixDefaultChecked( elem );
- // Skip scripts, get other children
- } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
- jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
- }
-}
-
-// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
-function shimCloneNode( elem ) {
- var div = document.createElement( "div" );
- safeFragment.appendChild( div );
-
- div.innerHTML = elem.outerHTML;
- return div.firstChild;
-}
-
-jQuery.extend({
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var srcElements,
- destElements,
- i,
- // IE<=8 does not properly clone detached, unknown element nodes
- clone = jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ?
- elem.cloneNode( true ) :
- shimCloneNode( elem );
-
- if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
- (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
- // IE copies events bound via attachEvent when using cloneNode.
- // Calling detachEvent on the clone will also remove the events
- // from the original. In order to get around this, we use some
- // proprietary methods to clear the events. Thanks to MooTools
- // guys for this hotness.
-
- cloneFixAttributes( elem, clone );
-
- // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
- srcElements = getAll( elem );
- destElements = getAll( clone );
-
- // Weird iteration because IE will replace the length property
- // with an element if you are cloning the body and one of the
- // elements on the page has a name or id of "length"
- for ( i = 0; srcElements[i]; ++i ) {
- // Ensure that the destination node is not null; Fixes #9587
- if ( destElements[i] ) {
- cloneFixAttributes( srcElements[i], destElements[i] );
- }
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- cloneCopyEvent( elem, clone );
-
- if ( deepDataAndEvents ) {
- srcElements = getAll( elem );
- destElements = getAll( clone );
-
- for ( i = 0; srcElements[i]; ++i ) {
- cloneCopyEvent( srcElements[i], destElements[i] );
- }
- }
- }
-
- srcElements = destElements = null;
-
- // Return the cloned set
- return clone;
- },
-
- clean: function( elems, context, fragment, scripts ) {
- var checkScriptType, script, j,
- ret = [];
-
- context = context || document;
-
- // !context.createElement fails in IE with an error but returns typeof 'object'
- if ( typeof context.createElement === "undefined" ) {
- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
- }
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( typeof elem === "number" ) {
- elem += "";
- }
-
- if ( !elem ) {
- continue;
- }
-
- // Convert html string into DOM nodes
- if ( typeof elem === "string" ) {
- if ( !rhtml.test( elem ) ) {
- elem = context.createTextNode( elem );
- } else {
- // Fix "XHTML"-style tags in all browsers
- elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
- // Trim whitespace, otherwise indexOf won't work as expected
- var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
- wrap = wrapMap[ tag ] || wrapMap._default,
- depth = wrap[0],
- div = context.createElement("div"),
- safeChildNodes = safeFragment.childNodes,
- remove;
-
- // Append wrapper element to unknown element safe doc fragment
- if ( context === document ) {
- // Use the fragment we've already created for this document
- safeFragment.appendChild( div );
- } else {
- // Use a fragment created with the owner document
- createSafeFragment( context ).appendChild( div );
- }
-
- // Go to html and back, then peel off extra wrappers
- div.innerHTML = wrap[1] + elem + wrap[2];
-
- // Move to the right depth
- while ( depth-- ) {
- div = div.lastChild;
- }
-
- // Remove IE's autoinserted <tbody> from table fragments
- if ( !jQuery.support.tbody ) {
-
- // String was a <table>, *may* have spurious <tbody>
- var hasBody = rtbody.test(elem),
- tbody = tag === "table" && !hasBody ?
- div.firstChild && div.firstChild.childNodes :
-
- // String was a bare <thead> or <tfoot>
- wrap[1] === "<table>" && !hasBody ?
- div.childNodes :
- [];
-
- for ( j = tbody.length - 1; j >= 0 ; --j ) {
- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
- tbody[ j ].parentNode.removeChild( tbody[ j ] );
- }
- }
- }
-
- // IE completely kills leading whitespace when innerHTML is used
- if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
- div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
- }
-
- elem = div.childNodes;
-
- // Clear elements from DocumentFragment (safeFragment or otherwise)
- // to avoid hoarding elements. Fixes #11356
- if ( div ) {
- div.parentNode.removeChild( div );
-
- // Guard against -1 index exceptions in FF3.6
- if ( safeChildNodes.length > 0 ) {
- remove = safeChildNodes[ safeChildNodes.length - 1 ];
-
- if ( remove && remove.parentNode ) {
- remove.parentNode.removeChild( remove );
- }
- }
- }
- }
- }
-
- // Resets defaultChecked for any radios and checkboxes
- // about to be appended to the DOM in IE 6/7 (#8060)
- var len;
- if ( !jQuery.support.appendChecked ) {
- if ( elem[0] && typeof (len = elem.length) === "number" ) {
- for ( j = 0; j < len; j++ ) {
- findInputs( elem[j] );
- }
- } else {
- findInputs( elem );
- }
- }
-
- if ( elem.nodeType ) {
- ret.push( elem );
- } else {
- ret = jQuery.merge( ret, elem );
- }
- }
-
- if ( fragment ) {
- checkScriptType = function( elem ) {
- return !elem.type || rscriptType.test( elem.type );
- };
- for ( i = 0; ret[i]; i++ ) {
- script = ret[i];
- if ( scripts && jQuery.nodeName( script, "script" ) && (!script.type || rscriptType.test( script.type )) ) {
- scripts.push( script.parentNode ? script.parentNode.removeChild( script ) : script );
-
- } else {
- if ( script.nodeType === 1 ) {
- var jsTags = jQuery.grep( script.getElementsByTagName( "script" ), checkScriptType );
-
- ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
- }
- fragment.appendChild( script );
- }
- }
- }
-
- return ret;
- },
-
- cleanData: function( elems ) {
- var data, id,
- cache = jQuery.cache,
- special = jQuery.event.special,
- deleteExpando = jQuery.support.deleteExpando;
-
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
- continue;
- }
-
- id = elem[ jQuery.expando ];
-
- if ( id ) {
- data = cache[ id ];
-
- if ( data && data.events ) {
- for ( var type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
-
- // Null the DOM reference to avoid IE6/7/8 leak (#7054)
- if ( data.handle ) {
- data.handle.elem = null;
- }
- }
-
- if ( deleteExpando ) {
- delete elem[ jQuery.expando ];
-
- } else if ( elem.removeAttribute ) {
- elem.removeAttribute( jQuery.expando );
- }
-
- delete cache[ id ];
- }
- }
- }
-});
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
- ropacity = /opacity=([^)]*)/,
- // fixed for IE9, see #8346
- rupper = /([A-Z]|^ms)/g,
- rnum = /^[\-+]?(?:\d*\.)?\d+$/i,
- rnumnonpx = /^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,
- rrelNum = /^([\-+])=([\-+.\de]+)/,
- rmargin = /^margin/,
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-
- // order is important!
- cssExpand = [ "Top", "Right", "Bottom", "Left" ],
-
- curCSS,
-
- getComputedStyle,
- currentStyle;
-
-jQuery.fn.css = function( name, value ) {
- return jQuery.access( this, function( elem, name, value ) {
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
-};
-
-jQuery.extend({
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
-
- } else {
- return elem.style.opacity;
- }
- }
- }
- },
-
- // Exclude the following css properties to add px
- cssNumber: {
- "fillOpacity": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- // normalize float css property
- "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, origName = jQuery.camelCase( name ),
- style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
- name = jQuery.cssProps[ origName ] || origName;
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // convert relative number strings (+= or -=) to relative numbers. #7345
- if ( type === "string" && (ret = rrelNum.exec( value )) ) {
- value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that NaN and null values aren't set. See: #7116
- if ( value == null || type === "number" && isNaN( value ) ) {
- return;
- }
-
- // If a number was passed in, add 'px' to the (except for certain CSS properties)
- if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
- value += "px";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
- // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
- // Fixes bug #5509
- try {
- style[ name ] = value;
- } catch(e) {}
- }
-
- } else {
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra ) {
- var ret, hooks;
-
- // Make sure that we're working with the right name
- name = jQuery.camelCase( name );
- hooks = jQuery.cssHooks[ name ];
- name = jQuery.cssProps[ name ] || name;
-
- // cssFloat needs a special treatment
- if ( name === "cssFloat" ) {
- name = "float";
- }
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
- return ret;
-
- // Otherwise, if a way to get the computed value exists, use that
- } else if ( curCSS ) {
- return curCSS( elem, name );
- }
- },
-
- // A method for quickly swapping in/out CSS properties to get correct calculations
- swap: function( elem, options, callback ) {
- var old = {},
- ret, name;
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.call( elem );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
- }
-});
-
-// DEPRECATED in 1.3, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
- getComputedStyle = function( elem, name ) {
- var ret, defaultView, computedStyle, width,
- style = elem.style;
-
- name = name.replace( rupper, "-$1" ).toLowerCase();
-
- if ( (defaultView = elem.ownerDocument.defaultView) &&
- (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
-
- ret = computedStyle.getPropertyValue( name );
- if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
- ret = jQuery.style( elem, name );
- }
- }
-
- // A tribute to the "awesome hack by Dean Edwards"
- // WebKit uses "computed value (percentage if specified)" instead of "used value" for margins
- // which is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
- if ( !jQuery.support.pixelMargin && computedStyle && rmargin.test( name ) && rnumnonpx.test( ret ) ) {
- width = style.width;
- style.width = ret;
- ret = computedStyle.width;
- style.width = width;
- }
-
- return ret;
- };
-}
-
-if ( document.documentElement.currentStyle ) {
- currentStyle = function( elem, name ) {
- var left, rsLeft, uncomputed,
- ret = elem.currentStyle && elem.currentStyle[ name ],
- style = elem.style;
-
- // Avoid setting ret to empty string here
- // so we don't default to auto
- if ( ret == null && style && (uncomputed = style[ name ]) ) {
- ret = uncomputed;
- }
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- if ( rnumnonpx.test( ret ) ) {
-
- // Remember the original values
- left = style.left;
- rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
-
- // Put in the new values to get a computed value out
- if ( rsLeft ) {
- elem.runtimeStyle.left = elem.currentStyle.left;
- }
- style.left = name === "fontSize" ? "1em" : ret;
- ret = style.pixelLeft + "px";
-
- // Revert the changed values
- style.left = left;
- if ( rsLeft ) {
- elem.runtimeStyle.left = rsLeft;
- }
- }
-
- return ret === "" ? "auto" : ret;
- };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property
- var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
- i = name === "width" ? 1 : 0,
- len = 4;
-
- if ( val > 0 ) {
- if ( extra !== "border" ) {
- for ( ; i < len; i += 2 ) {
- if ( !extra ) {
- val -= parseFloat( jQuery.css( elem, "padding" + cssExpand[ i ] ) ) || 0;
- }
- if ( extra === "margin" ) {
- val += parseFloat( jQuery.css( elem, extra + cssExpand[ i ] ) ) || 0;
- } else {
- val -= parseFloat( jQuery.css( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
- }
- }
- }
-
- return val + "px";
- }
-
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test(val) ) {
- return val;
- }
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
-
- // Add padding, border, margin
- if ( extra ) {
- for ( ; i < len; i += 2 ) {
- val += parseFloat( jQuery.css( elem, "padding" + cssExpand[ i ] ) ) || 0;
- if ( extra !== "padding" ) {
- val += parseFloat( jQuery.css( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
- }
- if ( extra === "margin" ) {
- val += parseFloat( jQuery.css( elem, extra + cssExpand[ i ]) ) || 0;
- }
- }
- }
-
- return val + "px";
-}
-
-jQuery.each([ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
- if ( elem.offsetWidth !== 0 ) {
- return getWidthOrHeight( elem, name, extra );
- } else {
- return jQuery.swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- });
- }
- }
- },
-
- set: function( elem, value ) {
- return rnum.test( value ) ?
- value + "px" :
- value;
- }
- };
-});
-
-if ( !jQuery.support.opacity ) {
- jQuery.cssHooks.opacity = {
- get: function( elem, computed ) {
- // IE uses filters for opacity
- return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
- ( parseFloat( RegExp.$1 ) / 100 ) + "" :
- computed ? "1" : "";
- },
-
- set: function( elem, value ) {
- var style = elem.style,
- currentStyle = elem.currentStyle,
- opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
- filter = currentStyle && currentStyle.filter || style.filter || "";
-
- // IE has trouble with opacity if it does not have layout
- // Force it by setting the zoom level
- style.zoom = 1;
-
- // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
- if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
-
- // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
- // if "filter:" is present at all, clearType is disabled, we want to avoid this
- // style.removeAttribute is IE Only, but so apparently is this code path...
- style.removeAttribute( "filter" );
-
- // if there there is no filter style applied in a css rule, we are done
- if ( currentStyle && !currentStyle.filter ) {
- return;
- }
- }
-
- // otherwise, set new filter values
- style.filter = ralpha.test( filter ) ?
- filter.replace( ralpha, opacity ) :
- filter + " " + opacity;
- }
- };
-}
-
-jQuery(function() {
- // This hook cannot be added until DOM ready because the support test
- // for it is not run until after DOM ready
- if ( !jQuery.support.reliableMarginRight ) {
- jQuery.cssHooks.marginRight = {
- get: function( elem, computed ) {
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- // Work around by temporarily setting element display to inline-block
- return jQuery.swap( elem, { "display": "inline-block" }, function() {
- if ( computed ) {
- return curCSS( elem, "margin-right" );
- } else {
- return elem.style.marginRight;
- }
- });
- }
- };
- }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.hidden = function( elem ) {
- var width = elem.offsetWidth,
- height = elem.offsetHeight;
-
- return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
- };
-
- jQuery.expr.filters.visible = function( elem ) {
- return !jQuery.expr.filters.hidden( elem );
- };
-}
-
-// These hooks are used by animate to expand properties
-jQuery.each({
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
-
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i,
-
- // assumes a single number if not a string
- parts = typeof value === "string" ? value.split(" ") : [ value ],
- expanded = {};
-
- for ( i = 0; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-});
-
-
-
-
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rhash = /#.*$/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
- rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
- rquery = /\?/,
- rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
- rselectTextarea = /^(?:select|textarea)/i,
- rspacesAjax = /\s+/,
- rts = /([?&])_=[^&]*/,
- rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
-
- // Keep a copy of the old load method
- _load = jQuery.fn.load,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Document location
- ajaxLocation,
-
- // Document location segments
- ajaxLocParts,
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = ["*/"] + ["*"];
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
- ajaxLocation = location.href;
-} catch( e ) {
- // Use the href attribute of an A element
- // since IE will modify it given document.location
- ajaxLocation = document.createElement( "a" );
- ajaxLocation.href = "";
- ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- if ( jQuery.isFunction( func ) ) {
- var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
- i = 0,
- length = dataTypes.length,
- dataType,
- list,
- placeBefore;
-
- // For each dataType in the dataTypeExpression
- for ( ; i < length; i++ ) {
- dataType = dataTypes[ i ];
- // We control if we're asked to add before
- // any existing element
- placeBefore = /^\+/.test( dataType );
- if ( placeBefore ) {
- dataType = dataType.substr( 1 ) || "*";
- }
- list = structure[ dataType ] = structure[ dataType ] || [];
- // then we add to the structure accordingly
- list[ placeBefore ? "unshift" : "push" ]( func );
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
- dataType /* internal */, inspected /* internal */ ) {
-
- dataType = dataType || options.dataTypes[ 0 ];
- inspected = inspected || {};
-
- inspected[ dataType ] = true;
-
- var list = structure[ dataType ],
- i = 0,
- length = list ? list.length : 0,
- executeOnly = ( structure === prefilters ),
- selection;
-
- for ( ; i < length && ( executeOnly || !selection ); i++ ) {
- selection = list[ i ]( options, originalOptions, jqXHR );
- // If we got redirected to another dataType
- // we try there if executing only and not done already
- if ( typeof selection === "string" ) {
- if ( !executeOnly || inspected[ selection ] ) {
- selection = undefined;
- } else {
- options.dataTypes.unshift( selection );
- selection = inspectPrefiltersOrTransports(
- structure, options, originalOptions, jqXHR, selection, inspected );
- }
- }
- }
- // If we're only executing or nothing was selected
- // we try the catchall dataType if not done already
- if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
- selection = inspectPrefiltersOrTransports(
- structure, options, originalOptions, jqXHR, "*", inspected );
- }
- // unnecessary when only executing (prefilters)
- // but it'll be ignored by the caller in that case
- return selection;
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var key, deep,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-}
-
-jQuery.fn.extend({
- load: function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
-
- // Don't do a request if no elements are being requested
- } else if ( !this.length ) {
- return this;
- }
-
- var off = url.indexOf( " " );
- if ( off >= 0 ) {
- var selector = url.slice( off, url.length );
- url = url.slice( 0, off );
- }
-
- // Default to a GET request
- var type = "GET";
-
- // If the second parameter was provided
- if ( params ) {
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( typeof params === "object" ) {
- params = jQuery.param( params, jQuery.ajaxSettings.traditional );
- type = "POST";
- }
- }
-
- var self = this;
-
- // Request the remote document
- jQuery.ajax({
- url: url,
- type: type,
- dataType: "html",
- data: params,
- // Complete callback (responseText is used internally)
- complete: function( jqXHR, status, responseText ) {
- // Store the response as specified by the jqXHR object
- responseText = jqXHR.responseText;
- // If successful, inject the HTML into all the matched elements
- if ( jqXHR.isResolved() ) {
- // #4825: Get the actual response in case
- // a dataFilter is present in ajaxSettings
- jqXHR.done(function( r ) {
- responseText = r;
- });
- // See if a selector was specified
- self.html( selector ?
- // Create a dummy div to hold the results
- jQuery("<div>")
- // inject the contents of the document in, removing the scripts
- // to avoid any 'Permission Denied' errors in IE
- .append(responseText.replace(rscript, ""))
-
- // Locate the specified elements
- .find(selector) :
-
- // If not, just inject the full result
- responseText );
- }
-
- if ( callback ) {
- self.each( callback, [ responseText, status, jqXHR ] );
- }
- }
- });
-
- return this;
- },
-
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
-
- serializeArray: function() {
- return this.map(function(){
- return this.elements ? jQuery.makeArray( this.elements ) : this;
- })
- .filter(function(){
- return this.name && !this.disabled &&
- ( this.checked || rselectTextarea.test( this.nodeName ) ||
- rinput.test( this.type ) );
- })
- .map(function( i, elem ){
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val, i ){
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- }) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- }).get();
- }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
- jQuery.fn[ o ] = function( f ){
- return this.on( o, f );
- };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
- // shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- return jQuery.ajax({
- type: method,
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- };
-});
-
-jQuery.extend({
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- if ( settings ) {
- // Building a settings object
- ajaxExtend( target, jQuery.ajaxSettings );
- } else {
- // Extending ajaxSettings
- settings = target;
- target = jQuery.ajaxSettings;
- }
- ajaxExtend( target, settings );
- return target;
- },
-
- ajaxSettings: {
- url: ajaxLocation,
- isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
- global: true,
- type: "GET",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- processData: true,
- async: true,
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- xml: "application/xml, text/xml",
- html: "text/html",
- text: "text/plain",
- json: "application/json, text/javascript",
- "*": allTypes
- },
-
- contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText"
- },
-
- // List of data converters
- // 1) key format is "source_type destination_type" (a single space in-between)
- // 2) the catchall symbol "*" can be used for source_type
- converters: {
-
- // Convert anything to text
- "* text": window.String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- context: true,
- url: true
- }
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
- // Callbacks context
- callbackContext = s.context || s,
- // Context for global events
- // It's the callbackContext if one was provided in the options
- // and if it's a DOM node or a jQuery collection
- globalEventContext = callbackContext !== s &&
- ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
- jQuery( callbackContext ) : jQuery.event,
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks( "once memory" ),
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
- // ifModified key
- ifModifiedKey,
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
- // Response headers
- responseHeadersString,
- responseHeaders,
- // transport
- transport,
- // timeout handle
- timeoutTimer,
- // Cross-domain detection vars
- parts,
- // The jqXHR state
- state = 0,
- // To know if global events are to be dispatched
- fireGlobals,
- // Loop variable
- i,
- // Fake xhr
- jqXHR = {
-
- readyState: 0,
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- if ( !state ) {
- var lname = name.toLowerCase();
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match === undefined ? null : match;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- statusText = statusText || "abort";
- if ( transport ) {
- transport.abort( statusText );
- }
- done( 0, statusText );
- return this;
- }
- };
-
- // Callback for when everything is done
- // It is defined here because jslint complains if it is declared
- // at the end of the function (which would be more logical and readable)
- function done( status, nativeStatusText, responses, headers ) {
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- var isSuccess,
- success,
- error,
- statusText = nativeStatusText,
- response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
- lastModified,
- etag;
-
- // If successful, handle type chaining
- if ( status >= 200 && status < 300 || status === 304 ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
-
- if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
- jQuery.lastModified[ ifModifiedKey ] = lastModified;
- }
- if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
- jQuery.etag[ ifModifiedKey ] = etag;
- }
- }
-
- // If not modified
- if ( status === 304 ) {
-
- statusText = "notmodified";
- isSuccess = true;
-
- // If we have data
- } else {
-
- try {
- success = ajaxConvert( s, response );
- statusText = "success";
- isSuccess = true;
- } catch(e) {
- // We have a parsererror
- statusText = "parsererror";
- error = e;
- }
- }
- } else {
- // We extract error from statusText
- // then normalize statusText and status for non-aborts
- error = statusText;
- if ( !statusText || status ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = "" + ( nativeStatusText || statusText );
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- // Attach deferreds
- deferred.promise( jqXHR );
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
- jqXHR.complete = completeDeferred.add;
-
- // Status-dependent callbacks
- jqXHR.statusCode = function( map ) {
- if ( map ) {
- var tmp;
- if ( state < 2 ) {
- for ( tmp in map ) {
- statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
- }
- } else {
- tmp = map[ jqXHR.status ];
- jqXHR.then( tmp, tmp );
- }
- }
- return this;
- };
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
- // We also use the url parameter if available
- s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
-
- // Determine if a cross-domain request is in order
- if ( s.crossDomain == null ) {
- parts = rurl.exec( s.url.toLowerCase() );
- s.crossDomain = !!( parts &&
- ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
- ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
- ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
- );
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return false;
- }
-
- // We can fire global events as of now if asked to
- fireGlobals = s.global;
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Get ifModifiedKey before adding the anti-cache parameter
- ifModifiedKey = s.url;
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
-
- var ts = jQuery.now(),
- // try replacing _= if it is there
- ret = s.url.replace( rts, "$1_=" + ts );
-
- // if nothing was replaced, add timestamp to the end
- s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- ifModifiedKey = ifModifiedKey || s.url;
- if ( jQuery.lastModified[ ifModifiedKey ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
- }
- if ( jQuery.etag[ ifModifiedKey ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
- }
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
- s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
- // Abort if not done already
- jqXHR.abort();
- return false;
-
- }
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = setTimeout( function(){
- jqXHR.abort( "timeout" );
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch (e) {
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- return jqXHR;
- },
-
- // Serialize an array of form elements or a set of
- // key/values into a query string
- param: function( a, traditional ) {
- var s = [],
- add = function( key, value ) {
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction( value ) ? value() : value;
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- });
-
- } else {
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( var prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" ).replace( r20, "+" );
- }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
- if ( jQuery.isArray( obj ) ) {
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
- // If array item is non-scalar (array or object), encode its
- // numeric index to resolve deserialization ambiguity issues.
- // Note that rack (as of 1.0.0) can't currently deserialize
- // nested arrays properly, and attempting to do so may cause
- // a server error. Possible fixes are to modify rack's
- // deserialization algorithm or to provide an option or flag
- // to force array serialization to be shallow.
- buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
- }
- });
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
- // Serialize object item.
- for ( var name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {}
-
-});
-
-/* Handles responses to an ajax request:
- * - sets all responseXXX fields accordingly
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var contents = s.contents,
- dataTypes = s.dataTypes,
- responseFields = s.responseFields,
- ct,
- type,
- finalDataType,
- firstDataType;
-
- // Fill responseXXX fields
- for ( type in responseFields ) {
- if ( type in responses ) {
- jqXHR[ responseFields[type] ] = responses[ type ];
- }
- }
-
- // Remove auto dataType and get content-type in the process
- while( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-// Chain conversions given the request and the original response
-function ajaxConvert( s, response ) {
-
- // Apply the dataFilter if provided
- if ( s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- var dataTypes = s.dataTypes,
- converters = {},
- i,
- key,
- length = dataTypes.length,
- tmp,
- // Current and previous dataTypes
- current = dataTypes[ 0 ],
- prev,
- // Conversion expression
- conversion,
- // Conversion function
- conv,
- // Conversion functions (transitive conversion)
- conv1,
- conv2;
-
- // For each dataType in the chain
- for ( i = 1; i < length; i++ ) {
-
- // Create converters map
- // with lowercased keys
- if ( i === 1 ) {
- for ( key in s.converters ) {
- if ( typeof key === "string" ) {
- converters[ key.toLowerCase() ] = s.converters[ key ];
- }
- }
- }
-
- // Get the dataTypes
- prev = current;
- current = dataTypes[ i ];
-
- // If current is auto dataType, update it to prev
- if ( current === "*" ) {
- current = prev;
- // If no auto and dataTypes are actually different
- } else if ( prev !== "*" && prev !== current ) {
-
- // Get the converter
- conversion = prev + " " + current;
- conv = converters[ conversion ] || converters[ "* " + current ];
-
- // If there is no direct converter, search transitively
- if ( !conv ) {
- conv2 = undefined;
- for ( conv1 in converters ) {
- tmp = conv1.split( " " );
- if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
- conv2 = converters[ tmp[1] + " " + current ];
- if ( conv2 ) {
- conv1 = converters[ conv1 ];
- if ( conv1 === true ) {
- conv = conv2;
- } else if ( conv2 === true ) {
- conv = conv1;
- }
- break;
- }
- }
- }
- }
- // If we found no converter, dispatch an error
- if ( !( conv || conv2 ) ) {
- jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
- }
- // If found converter is not an equivalence
- if ( conv !== true ) {
- // Convert with 1 or 2 converters accordingly
- response = conv ? conv( response ) : conv2( conv1(response) );
- }
- }
- }
- return response;
-}
-
-
-
-
-var jsc = jQuery.now(),
- jsre = /(\=)\?(&|$)|\?\?/i;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- return jQuery.expando + "_" + ( jsc++ );
- }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var inspectData = ( typeof s.data === "string" ) && /^application\/x\-www\-form\-urlencoded/.test( s.contentType );
-
- if ( s.dataTypes[ 0 ] === "jsonp" ||
- s.jsonp !== false && ( jsre.test( s.url ) ||
- inspectData && jsre.test( s.data ) ) ) {
-
- var responseContainer,
- jsonpCallback = s.jsonpCallback =
- jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
- previous = window[ jsonpCallback ],
- url = s.url,
- data = s.data,
- replace = "$1" + jsonpCallback + "$2";
-
- if ( s.jsonp !== false ) {
- url = url.replace( jsre, replace );
- if ( s.url === url ) {
- if ( inspectData ) {
- data = data.replace( jsre, replace );
- }
- if ( s.data === data ) {
- // Add callback manually
- url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
- }
- }
- }
-
- s.url = url;
- s.data = data;
-
- // Install callback
- window[ jsonpCallback ] = function( response ) {
- responseContainer = [ response ];
- };
-
- // Clean-up function
- jqXHR.always(function() {
- // Set callback back to previous value
- window[ jsonpCallback ] = previous;
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( previous ) ) {
- window[ jsonpCallback ]( responseContainer[ 0 ] );
- }
- });
-
- // Use data converter to retrieve json after script execution
- s.converters["script json"] = function() {
- if ( !responseContainer ) {
- jQuery.error( jsonpCallback + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Delegate to script
- return "script";
- }
-});
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /javascript|ecmascript/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- s.global = false;
- }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
-
- var script,
- head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
-
- return {
-
- send: function( _, callback ) {
-
- script = document.createElement( "script" );
-
- script.async = "async";
-
- if ( s.scriptCharset ) {
- script.charset = s.scriptCharset;
- }
-
- script.src = s.url;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function( _, isAbort ) {
-
- if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = null;
-
- // Remove the script
- if ( head && script.parentNode ) {
- head.removeChild( script );
- }
-
- // Dereference the script
- script = undefined;
-
- // Callback if not abort
- if ( !isAbort ) {
- callback( 200, "success" );
- }
- }
- };
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709 and #4378).
- head.insertBefore( script, head.firstChild );
- },
-
- abort: function() {
- if ( script ) {
- script.onload( 0, 1 );
- }
- }
- };
- }
-});
-
-
-
-
-var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
- xhrOnUnloadAbort = window.ActiveXObject ? function() {
- // Abort all pending requests
- for ( var key in xhrCallbacks ) {
- xhrCallbacks[ key ]( 0, 1 );
- }
- } : false,
- xhrId = 0,
- xhrCallbacks;
-
-// Functions to create xhrs
-function createStandardXHR() {
- try {
- return new window.XMLHttpRequest();
- } catch( e ) {}
-}
-
-function createActiveXHR() {
- try {
- return new window.ActiveXObject( "Microsoft.XMLHTTP" );
- } catch( e ) {}
-}
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject ?
- /* Microsoft failed to properly
- * implement the XMLHttpRequest in IE7 (can't request local files),
- * so we use the ActiveXObject when it is available
- * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
- * we need a fallback.
- */
- function() {
- return !this.isLocal && createStandardXHR() || createActiveXHR();
- } :
- // For all other browsers, use the standard XMLHttpRequest object
- createStandardXHR;
-
-// Determine support properties
-(function( xhr ) {
- jQuery.extend( jQuery.support, {
- ajax: !!xhr,
- cors: !!xhr && ( "withCredentials" in xhr )
- });
-})( jQuery.ajaxSettings.xhr() );
-
-// Create transport if the browser can provide an xhr
-if ( jQuery.support.ajax ) {
-
- jQuery.ajaxTransport(function( s ) {
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( !s.crossDomain || jQuery.support.cors ) {
-
- var callback;
-
- return {
- send: function( headers, complete ) {
-
- // Get a new xhr
- var xhr = s.xhr(),
- handle,
- i;
-
- // Open the socket
- // Passing null username, generates a login popup on Opera (#2865)
- if ( s.username ) {
- xhr.open( s.type, s.url, s.async, s.username, s.password );
- } else {
- xhr.open( s.type, s.url, s.async );
- }
-
- // Apply custom fields if provided
- if ( s.xhrFields ) {
- for ( i in s.xhrFields ) {
- xhr[ i ] = s.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( s.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( s.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !s.crossDomain && !headers["X-Requested-With"] ) {
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
- }
-
- // Need an extra try/catch for cross domain requests in Firefox 3
- try {
- for ( i in headers ) {
- xhr.setRequestHeader( i, headers[ i ] );
- }
- } catch( _ ) {}
-
- // Do send the request
- // This may raise an exception which is actually
- // handled in jQuery.ajax (so no try/catch here)
- xhr.send( ( s.hasContent && s.data ) || null );
-
- // Listener
- callback = function( _, isAbort ) {
-
- var status,
- statusText,
- responseHeaders,
- responses,
- xml;
-
- // Firefox throws exceptions when accessing properties
- // of an xhr when a network error occured
- // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
- try {
-
- // Was never called and is aborted or complete
- if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
- // Only called once
- callback = undefined;
-
- // Do not keep as active anymore
- if ( handle ) {
- xhr.onreadystatechange = jQuery.noop;
- if ( xhrOnUnloadAbort ) {
- delete xhrCallbacks[ handle ];
- }
- }
-
- // If it's an abort
- if ( isAbort ) {
- // Abort it manually if needed
- if ( xhr.readyState !== 4 ) {
- xhr.abort();
- }
- } else {
- status = xhr.status;
- responseHeaders = xhr.getAllResponseHeaders();
- responses = {};
- xml = xhr.responseXML;
-
- // Construct response list
- if ( xml && xml.documentElement /* #4958 */ ) {
- responses.xml = xml;
- }
-
- // When requesting binary data, IE6-9 will throw an exception
- // on any attempt to access responseText (#11426)
- try {
- responses.text = xhr.responseText;
- } catch( _ ) {
- }
-
- // Firefox throws an exception when accessing
- // statusText for faulty cross-domain requests
- try {
- statusText = xhr.statusText;
- } catch( e ) {
- // We normalize with Webkit giving an empty statusText
- statusText = "";
- }
-
- // Filter status for non standard behaviors
-
- // If the request is local and we have data: assume a success
- // (success with no data won't get notified, that's the best we
- // can do given current implementations)
- if ( !status && s.isLocal && !s.crossDomain ) {
- status = responses.text ? 200 : 404;
- // IE - #1450: sometimes returns 1223 when it should be 204
- } else if ( status === 1223 ) {
- status = 204;
- }
- }
- }
- } catch( firefoxAccessException ) {
- if ( !isAbort ) {
- complete( -1, firefoxAccessException );
- }
- }
-
- // Call complete if needed
- if ( responses ) {
- complete( status, statusText, responses, responseHeaders );
- }
- };
-
- // if we're in sync mode or it's in cache
- // and has been retrieved directly (IE6 & IE7)
- // we need to manually fire the callback
- if ( !s.async || xhr.readyState === 4 ) {
- callback();
- } else {
- handle = ++xhrId;
- if ( xhrOnUnloadAbort ) {
- // Create the active xhrs callbacks list if needed
- // and attach the unload handler
- if ( !xhrCallbacks ) {
- xhrCallbacks = {};
- jQuery( window ).unload( xhrOnUnloadAbort );
- }
- // Add to list of active xhrs callbacks
- xhrCallbacks[ handle ] = callback;
- }
- xhr.onreadystatechange = callback;
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback(0,1);
- }
- }
- };
- }
- });
-}
-
-
-
-
-var elemdisplay = {},
- iframe, iframeDoc,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
- timerId,
- fxAttrs = [
- // height animations
- [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
- // width animations
- [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
- // opacity animations
- [ "opacity" ]
- ],
- fxNow;
-
-jQuery.fn.extend({
- show: function( speed, easing, callback ) {
- var elem, display;
-
- if ( speed || speed === 0 ) {
- return this.animate( genFx("show", 3), speed, easing, callback );
-
- } else {
- for ( var i = 0, j = this.length; i < j; i++ ) {
- elem = this[ i ];
-
- if ( elem.style ) {
- display = elem.style.display;
-
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
- display = elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( (display === "" && jQuery.css(elem, "display") === "none") ||
- !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
- jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
- }
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( i = 0; i < j; i++ ) {
- elem = this[ i ];
-
- if ( elem.style ) {
- display = elem.style.display;
-
- if ( display === "" || display === "none" ) {
- elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
- }
- }
- }
-
- return this;
- }
- },
-
- hide: function( speed, easing, callback ) {
- if ( speed || speed === 0 ) {
- return this.animate( genFx("hide", 3), speed, easing, callback);
-
- } else {
- var elem, display,
- i = 0,
- j = this.length;
-
- for ( ; i < j; i++ ) {
- elem = this[i];
- if ( elem.style ) {
- display = jQuery.css( elem, "display" );
-
- if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
- jQuery._data( elem, "olddisplay", display );
- }
- }
- }
-
- // Set the display of the elements in a second loop
- // to avoid the constant reflow
- for ( i = 0; i < j; i++ ) {
- if ( this[i].style ) {
- this[i].style.display = "none";
- }
- }
-
- return this;
- }
- },
-
- // Save the old toggle function
- _toggle: jQuery.fn.toggle,
-
- toggle: function( fn, fn2, callback ) {
- var bool = typeof fn === "boolean";
-
- if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
- this._toggle.apply( this, arguments );
-
- } else if ( fn == null || bool ) {
- this.each(function() {
- var state = bool ? fn : jQuery(this).is(":hidden");
- jQuery(this)[ state ? "show" : "hide" ]();
- });
-
- } else {
- this.animate(genFx("toggle", 3), fn, fn2, callback);
- }
-
- return this;
- },
-
- fadeTo: function( speed, to, easing, callback ) {
- return this.filter(":hidden").css("opacity", 0).show().end()
- .animate({opacity: to}, speed, easing, callback);
- },
-
- animate: function( prop, speed, easing, callback ) {
- var optall = jQuery.speed( speed, easing, callback );
-
- if ( jQuery.isEmptyObject( prop ) ) {
- return this.each( optall.complete, [ false ] );
- }
-
- // Do not change referenced properties as per-property easing will be lost
- prop = jQuery.extend( {}, prop );
-
- function doAnimation() {
- // XXX 'this' does not always have a nodeName when running the
- // test suite
-
- if ( optall.queue === false ) {
- jQuery._mark( this );
- }
-
- var opt = jQuery.extend( {}, optall ),
- isElement = this.nodeType === 1,
- hidden = isElement && jQuery(this).is(":hidden"),
- name, val, p, e, hooks, replace,
- parts, start, end, unit,
- method;
-
- // will store per property easing and be used to determine when an animation is complete
- opt.animatedProperties = {};
-
- // first pass over propertys to expand / normalize
- for ( p in prop ) {
- name = jQuery.camelCase( p );
- if ( p !== name ) {
- prop[ name ] = prop[ p ];
- delete prop[ p ];
- }
-
- if ( ( hooks = jQuery.cssHooks[ name ] ) && "expand" in hooks ) {
- replace = hooks.expand( prop[ name ] );
- delete prop[ name ];
-
- // not quite $.extend, this wont overwrite keys already present.
- // also - reusing 'p' from above because we have the correct "name"
- for ( p in replace ) {
- if ( ! ( p in prop ) ) {
- prop[ p ] = replace[ p ];
- }
- }
- }
- }
-
- for ( name in prop ) {
- val = prop[ name ];
- // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
- if ( jQuery.isArray( val ) ) {
- opt.animatedProperties[ name ] = val[ 1 ];
- val = prop[ name ] = val[ 0 ];
- } else {
- opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
- }
-
- if ( val === "hide" && hidden || val === "show" && !hidden ) {
- return opt.complete.call( this );
- }
-
- if ( isElement && ( name === "height" || name === "width" ) ) {
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE does not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height animated
- if ( jQuery.css( this, "display" ) === "inline" &&
- jQuery.css( this, "float" ) === "none" ) {
-
- // inline-level elements accept inline-block;
- // block-level elements need to be inline with layout
- if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
- this.style.display = "inline-block";
-
- } else {
- this.style.zoom = 1;
- }
- }
- }
- }
-
- if ( opt.overflow != null ) {
- this.style.overflow = "hidden";
- }
-
- for ( p in prop ) {
- e = new jQuery.fx( this, opt, p );
- val = prop[ p ];
-
- if ( rfxtypes.test( val ) ) {
-
- // Tracks whether to show or hide based on private
- // data attached to the element
- method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
- if ( method ) {
- jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
- e[ method ]();
- } else {
- e[ val ]();
- }
-
- } else {
- parts = rfxnum.exec( val );
- start = e.cur();
-
- if ( parts ) {
- end = parseFloat( parts[2] );
- unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
-
- // We need to compute starting value
- if ( unit !== "px" ) {
- jQuery.style( this, p, (end || 1) + unit);
- start = ( (end || 1) / e.cur() ) * start;
- jQuery.style( this, p, start + unit);
- }
-
- // If a +=/-= token was provided, we're doing a relative animation
- if ( parts[1] ) {
- end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
- }
-
- e.custom( start, end, unit );
-
- } else {
- e.custom( start, val, "" );
- }
- }
- }
-
- // For JS strict compliance
- return true;
- }
-
- return optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
-
- stop: function( type, clearQueue, gotoEnd ) {
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each(function() {
- var index,
- hadTimers = false,
- timers = jQuery.timers,
- data = jQuery._data( this );
-
- // clear marker counters if we know they won't be
- if ( !gotoEnd ) {
- jQuery._unmark( true, this );
- }
-
- function stopQueue( elem, data, index ) {
- var hooks = data[ index ];
- jQuery.removeData( elem, index, true );
- hooks.stop( gotoEnd );
- }
-
- if ( type == null ) {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
- stopQueue( this, data, index );
- }
- }
- } else if ( data[ index = type + ".run" ] && data[ index ].stop ){
- stopQueue( this, data, index );
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
- if ( gotoEnd ) {
-
- // force the next step to be the last
- timers[ index ]( true );
- } else {
- timers[ index ].saveState();
- }
- hadTimers = true;
- timers.splice( index, 1 );
- }
- }
-
- // start the next in the queue if the last step wasn't forced
- // timers currently will call their complete callbacks, which will dequeue
- // but only if they were gotoEnd
- if ( !( gotoEnd && hadTimers ) ) {
- jQuery.dequeue( this, type );
- }
- });
- }
-
-});
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- setTimeout( clearFxNow, 0 );
- return ( fxNow = jQuery.now() );
-}
-
-function clearFxNow() {
- fxNow = undefined;
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, num ) {
- var obj = {};
-
- jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
- obj[ this ] = type;
- });
-
- return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
- slideDown: genFx( "show", 1 ),
- slideUp: genFx( "hide", 1 ),
- slideToggle: genFx( "toggle", 1 ),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-});
-
-jQuery.extend({
- speed: function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
- opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
- // normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function( noUnmark ) {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- } else if ( noUnmark !== false ) {
- jQuery._unmark( this );
- }
- };
-
- return opt;
- },
-
- easing: {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return ( -Math.cos( p*Math.PI ) / 2 ) + 0.5;
- }
- },
-
- timers: [],
-
- fx: function( elem, options, prop ) {
- this.options = options;
- this.elem = elem;
- this.prop = prop;
-
- options.orig = options.orig || {};
- }
-
-});
-
-jQuery.fx.prototype = {
- // Simple function for setting a style value
- update: function() {
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
- },
-
- // Get the current size
- cur: function() {
- if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
- return this.elem[ this.prop ];
- }
-
- var parsed,
- r = jQuery.css( this.elem, this.prop );
- // Empty strings, null, undefined and "auto" are converted to 0,
- // complex values such as "rotate(1rad)" are returned as is,
- // simple values such as "10px" are parsed to Float.
- return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
- },
-
- // Start an animation from one number to another
- custom: function( from, to, unit ) {
- var self = this,
- fx = jQuery.fx;
-
- this.startTime = fxNow || createFxNow();
- this.end = to;
- this.now = this.start = from;
- this.pos = this.state = 0;
- this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
-
- function t( gotoEnd ) {
- return self.step( gotoEnd );
- }
-
- t.queue = this.options.queue;
- t.elem = this.elem;
- t.saveState = function() {
- if ( jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
- if ( self.options.hide ) {
- jQuery._data( self.elem, "fxshow" + self.prop, self.start );
- } else if ( self.options.show ) {
- jQuery._data( self.elem, "fxshow" + self.prop, self.end );
- }
- }
- };
-
- if ( t() && jQuery.timers.push(t) && !timerId ) {
- timerId = setInterval( fx.tick, fx.interval );
- }
- },
-
- // Simple 'show' function
- show: function() {
- var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
-
- // Remember where we started, so that we can go back to it later
- this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
- this.options.show = true;
-
- // Begin the animation
- // Make sure that we start at a small width/height to avoid any flash of content
- if ( dataShow !== undefined ) {
- // This show is picking up where a previous hide or show left off
- this.custom( this.cur(), dataShow );
- } else {
- this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
- }
-
- // Start by showing the element
- jQuery( this.elem ).show();
- },
-
- // Simple 'hide' function
- hide: function() {
- // Remember where we started, so that we can go back to it later
- this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
- this.options.hide = true;
-
- // Begin the animation
- this.custom( this.cur(), 0 );
- },
-
- // Each step of an animation
- step: function( gotoEnd ) {
- var p, n, complete,
- t = fxNow || createFxNow(),
- done = true,
- elem = this.elem,
- options = this.options;
-
- if ( gotoEnd || t >= options.duration + this.startTime ) {
- this.now = this.end;
- this.pos = this.state = 1;
- this.update();
-
- options.animatedProperties[ this.prop ] = true;
-
- for ( p in options.animatedProperties ) {
- if ( options.animatedProperties[ p ] !== true ) {
- done = false;
- }
- }
-
- if ( done ) {
- // Reset the overflow
- if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
-
- jQuery.each( [ "", "X", "Y" ], function( index, value ) {
- elem.style[ "overflow" + value ] = options.overflow[ index ];
- });
- }
-
- // Hide the element if the "hide" operation was done
- if ( options.hide ) {
- jQuery( elem ).hide();
- }
-
- // Reset the properties, if the item has been hidden or shown
- if ( options.hide || options.show ) {
- for ( p in options.animatedProperties ) {
- jQuery.style( elem, p, options.orig[ p ] );
- jQuery.removeData( elem, "fxshow" + p, true );
- // Toggle data is no longer needed
- jQuery.removeData( elem, "toggle" + p, true );
- }
- }
-
- // Execute the complete function
- // in the event that the complete function throws an exception
- // we must ensure it won't be called twice. #5684
-
- complete = options.complete;
- if ( complete ) {
-
- options.complete = false;
- complete.call( elem );
- }
- }
-
- return false;
-
- } else {
- // classical easing cannot be used with an Infinity duration
- if ( options.duration == Infinity ) {
- this.now = t;
- } else {
- n = t - this.startTime;
- this.state = n / options.duration;
-
- // Perform the easing function, defaults to swing
- this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
- this.now = this.start + ( (this.end - this.start) * this.pos );
- }
- // Perform the next step of the animation
- this.update();
- }
-
- return true;
- }
-};
-
-jQuery.extend( jQuery.fx, {
- tick: function() {
- var timer,
- timers = jQuery.timers,
- i = 0;
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- },
-
- interval: 13,
-
- stop: function() {
- clearInterval( timerId );
- timerId = null;
- },
-
- speeds: {
- slow: 600,
- fast: 200,
- // Default speed
- _default: 400
- },
-
- step: {
- opacity: function( fx ) {
- jQuery.style( fx.elem, "opacity", fx.now );
- },
-
- _default: function( fx ) {
- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
- fx.elem.style[ fx.prop ] = fx.now + fx.unit;
- } else {
- fx.elem[ fx.prop ] = fx.now;
- }
- }
- }
-});
-
-// Ensure props that can't be negative don't go there on undershoot easing
-jQuery.each( fxAttrs.concat.apply( [], fxAttrs ), function( i, prop ) {
- // exclude marginTop, marginLeft, marginBottom and marginRight from this list
- if ( prop.indexOf( "margin" ) ) {
- jQuery.fx.step[ prop ] = function( fx ) {
- jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
- };
- }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep(jQuery.timers, function( fn ) {
- return elem === fn.elem;
- }).length;
- };
-}
-
-// Try to restore the default display value of an element
-function defaultDisplay( nodeName ) {
-
- if ( !elemdisplay[ nodeName ] ) {
-
- var body = document.body,
- elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
- display = elem.css( "display" );
- elem.remove();
-
- // If the simple way fails,
- // get element's real default display by attaching it to a temp iframe
- if ( display === "none" || display === "" ) {
- // No iframe to use yet, so create it
- if ( !iframe ) {
- iframe = document.createElement( "iframe" );
- iframe.frameBorder = iframe.width = iframe.height = 0;
- }
-
- body.appendChild( iframe );
-
- // Create a cacheable copy of the iframe document on first call.
- // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
- // document to it; WebKit & Firefox won't allow reusing the iframe document.
- if ( !iframeDoc || !iframe.createElement ) {
- iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
- iframeDoc.write( ( jQuery.support.boxModel ? "<!doctype html>" : "" ) + "<html><body>" );
- iframeDoc.close();
- }
-
- elem = iframeDoc.createElement( nodeName );
-
- iframeDoc.body.appendChild( elem );
-
- display = jQuery.css( elem, "display" );
- body.removeChild( iframe );
- }
-
- // Store the correct default display
- elemdisplay[ nodeName ] = display;
- }
-
- return elemdisplay[ nodeName ];
-}
-
-
-
-
-var getOffset,
- rtable = /^t(?:able|d|h)$/i,
- rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
- getOffset = function( elem, doc, docElem, box ) {
- try {
- box = elem.getBoundingClientRect();
- } catch(e) {}
-
- // Make sure we're not dealing with a disconnected DOM node
- if ( !box || !jQuery.contains( docElem, elem ) ) {
- return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
- }
-
- var body = doc.body,
- win = getWindow( doc ),
- clientTop = docElem.clientTop || body.clientTop || 0,
- clientLeft = docElem.clientLeft || body.clientLeft || 0,
- scrollTop = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop,
- scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
- top = box.top + scrollTop - clientTop,
- left = box.left + scrollLeft - clientLeft;
-
- return { top: top, left: left };
- };
-
-} else {
- getOffset = function( elem, doc, docElem ) {
- var computedStyle,
- offsetParent = elem.offsetParent,
- prevOffsetParent = elem,
- body = doc.body,
- defaultView = doc.defaultView,
- prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
- top = elem.offsetTop,
- left = elem.offsetLeft;
-
- while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
- if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
- break;
- }
-
- computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
- top -= elem.scrollTop;
- left -= elem.scrollLeft;
-
- if ( elem === offsetParent ) {
- top += elem.offsetTop;
- left += elem.offsetLeft;
-
- if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevOffsetParent = offsetParent;
- offsetParent = elem.offsetParent;
- }
-
- if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
- }
-
- prevComputedStyle = computedStyle;
- }
-
- if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
- top += body.offsetTop;
- left += body.offsetLeft;
- }
-
- if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
- top += Math.max( docElem.scrollTop, body.scrollTop );
- left += Math.max( docElem.scrollLeft, body.scrollLeft );
- }
-
- return { top: top, left: left };
- };
-}
-
-jQuery.fn.offset = function( options ) {
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- var elem = this[0],
- doc = elem && elem.ownerDocument;
-
- if ( !doc ) {
- return null;
- }
-
- if ( elem === doc.body ) {
- return jQuery.offset.bodyOffset( elem );
- }
-
- return getOffset( elem, doc, doc.documentElement );
-};
-
-jQuery.offset = {
-
- bodyOffset: function( body ) {
- var top = body.offsetTop,
- left = body.offsetLeft;
-
- if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
- top += parseFloat( jQuery.css(body, "marginTop") ) || 0;
- left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
- }
-
- return { top: top, left: left };
- },
-
- setOffset: function( elem, options, i ) {
- var position = jQuery.css( elem, "position" );
-
- // set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- var curElem = jQuery( elem ),
- curOffset = curElem.offset(),
- curCSSTop = jQuery.css( elem, "top" ),
- curCSSLeft = jQuery.css( elem, "left" ),
- calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
- props = {}, curPosition = {}, curTop, curLeft;
-
- // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
- options = options.call( elem, i, curOffset );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- }
-};
-
-
-jQuery.fn.extend({
-
- position: function() {
- if ( !this[0] ) {
- return null;
- }
-
- var elem = this[0],
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent(),
-
- // Get correct offsets
- offset = this.offset(),
- parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
- // Subtract element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
- offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
- // Add offsetParent borders
- parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
- parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
- // Subtract the two offsets
- return {
- top: offset.top - parentOffset.top,
- left: offset.left - parentOffset.left
- };
- },
-
- offsetParent: function() {
- return this.map(function() {
- var offsetParent = this.offsetParent || document.body;
- while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent;
- });
- }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) {
- var top = /Y/.test( prop );
-
- jQuery.fn[ method ] = function( val ) {
- return jQuery.access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? (prop in win) ? win[ prop ] :
- jQuery.support.boxModel && win.document.documentElement[ method ] ||
- win.document.body[ method ] :
- elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : jQuery( win ).scrollLeft(),
- top ? val : jQuery( win ).scrollTop()
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length, null );
- };
-});
-
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ?
- elem :
- elem.nodeType === 9 ?
- elem.defaultView || elem.parentWindow :
- false;
-}
-
-
-
-
-// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- var clientProp = "client" + name,
- scrollProp = "scroll" + name,
- offsetProp = "offset" + name;
-
- // innerHeight and innerWidth
- jQuery.fn[ "inner" + name ] = function() {
- var elem = this[0];
- return elem ?
- elem.style ?
- parseFloat( jQuery.css( elem, type, "padding" ) ) :
- this[ type ]() :
- null;
- };
-
- // outerHeight and outerWidth
- jQuery.fn[ "outer" + name ] = function( margin ) {
- var elem = this[0];
- return elem ?
- elem.style ?
- parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
- this[ type ]() :
- null;
- };
-
- jQuery.fn[ type ] = function( value ) {
- return jQuery.access( this, function( elem, type, value ) {
- var doc, docElemProp, orig, ret;
-
- if ( jQuery.isWindow( elem ) ) {
- // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
- doc = elem.document;
- docElemProp = doc.documentElement[ clientProp ];
- return jQuery.support.boxModel && docElemProp ||
- doc.body && doc.body[ clientProp ] || docElemProp;
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
- doc = elem.documentElement;
-
- // when a window > document, IE6 reports a offset[Width/Height] > client[Width/Height]
- // so we can't use max, as it'll choose the incorrect offset[Width/Height]
- // instead we use the correct client[Width/Height]
- // support:IE6
- if ( doc[ clientProp ] >= doc[ scrollProp ] ) {
- return doc[ clientProp ];
- }
-
- return Math.max(
- elem.body[ scrollProp ], doc[ scrollProp ],
- elem.body[ offsetProp ], doc[ offsetProp ]
- );
- }
-
- // Get width or height on the element
- if ( value === undefined ) {
- orig = jQuery.css( elem, type );
- ret = parseFloat( orig );
- return jQuery.isNumeric( ret ) ? ret : orig;
- }
-
- // Set the width or height on the element
- jQuery( elem ).css( type, value );
- }, type, value, arguments.length, null );
- };
-});
-
-
-
-
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-
-// Expose jQuery as an AMD module, but only for AMD loaders that
-// understand the issues with loading multiple versions of jQuery
-// in a page that all might call define(). The loader will indicate
-// they have special allowances for multiple jQuery versions by
-// specifying define.amd.jQuery = true. Register as a named module,
-// since jQuery can be concatenated with other files that may use define,
-// but not use a proper concatenation script that understands anonymous
-// AMD modules. A named AMD is safest and most robust way to register.
-// Lowercase jquery is used because AMD module names are derived from
-// file names, and jQuery is normally delivered in a lowercase file name.
-// Do this after creating the global so that if an AMD module wants to call
-// noConflict to hide this version of jQuery, it will work.
-if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
- define( "jquery", [], function () { return jQuery; } );
-}
-
-
-
-})( window ); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/qunit.css b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/qunit.css
deleted file mode 100644
index 9eafd240..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/qunit.css
+++ /dev/null
@@ -1,118 +0,0 @@
-ol#qunit-tests {
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- margin:0;
- padding:0;
- list-style-position:inside;
-
- font-size: smaller;
-}
-ol#qunit-tests li{
- padding:0.4em 0.5em 0.4em 2.5em;
- border-bottom:1px solid #fff;
- font-size:small;
- list-style-position:inside;
-}
-ol#qunit-tests li ol{
- box-shadow: inset 0px 2px 13px #999;
- -moz-box-shadow: inset 0px 2px 13px #999;
- -webkit-box-shadow: inset 0px 2px 13px #999;
- margin-top:0.5em;
- margin-left:0;
- padding:0.5em;
- background-color:#fff;
- border-radius:15px;
- -moz-border-radius: 15px;
- -webkit-border-radius: 15px;
-}
-ol#qunit-tests li li{
- border-bottom:none;
- margin:0.5em;
- background-color:#fff;
- list-style-position: inside;
- padding:0.4em 0.5em 0.4em 0.5em;
-}
-
-ol#qunit-tests li li.pass{
- border-left:26px solid #C6E746;
- background-color:#fff;
- color:#5E740B;
- }
-ol#qunit-tests li li.fail{
- border-left:26px solid #EE5757;
- background-color:#fff;
- color:#710909;
-}
-ol#qunit-tests li.pass{
- background-color:#D2E0E6;
- color:#528CE0;
-}
-ol#qunit-tests li.fail{
- background-color:#EE5757;
- color:#000;
-}
-ol#qunit-tests li strong {
- cursor:pointer;
-}
-h1#qunit-header{
- background-color:#0d3349;
- margin:0;
- padding:0.5em 0 0.5em 1em;
- color:#fff;
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- border-top-right-radius:15px;
- border-top-left-radius:15px;
- -moz-border-radius-topright:15px;
- -moz-border-radius-topleft:15px;
- -webkit-border-top-right-radius:15px;
- -webkit-border-top-left-radius:15px;
- text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
-}
-h2#qunit-banner{
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- height:5px;
- margin:0;
- padding:0;
-}
-h2#qunit-banner.qunit-pass{
- background-color:#C6E746;
-}
-h2#qunit-banner.qunit-fail, #qunit-testrunner-toolbar {
- background-color:#EE5757;
-}
-#qunit-testrunner-toolbar {
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- padding:0;
- /*width:80%;*/
- padding:0em 0 0.5em 2em;
- font-size: small;
-}
-h2#qunit-userAgent {
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- background-color:#2b81af;
- margin:0;
- padding:0;
- color:#fff;
- font-size: small;
- padding:0.5em 0 0.5em 2.5em;
- text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
-}
-p#qunit-testresult{
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- margin:0;
- font-size: small;
- color:#2b81af;
- border-bottom-right-radius:15px;
- border-bottom-left-radius:15px;
- -moz-border-radius-bottomright:15px;
- -moz-border-radius-bottomleft:15px;
- -webkit-border-bottom-right-radius:15px;
- -webkit-border-bottom-left-radius:15px;
- background-color:#D2E0E6;
- padding:0.5em 0.5em 0.5em 2.5em;
-}
-strong b.fail{
- color:#710909;
- }
-strong b.pass{
- color:#5E740B;
- }
diff --git a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/qunit.js b/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/qunit.js
deleted file mode 100644
index b0fc8711..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.event.drag-new/jquery/qunit.js
+++ /dev/null
@@ -1,1069 +0,0 @@
-/*
- * QUnit - A JavaScript Unit Testing Framework
- *
- * http://docs.jquery.com/QUnit
- *
- * Copyright (c) 2009 John Resig, Jörn Zaefferer
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- */
-
-(function(window) {
-
-var QUnit = {
-
- // Initialize the configuration options
- init: function() {
- config = {
- stats: { all: 0, bad: 0 },
- moduleStats: { all: 0, bad: 0 },
- started: +new Date,
- updateRate: 1000,
- blocking: false,
- autorun: false,
- assertions: [],
- filters: [],
- queue: []
- };
-
- var tests = id("qunit-tests"),
- banner = id("qunit-banner"),
- result = id("qunit-testresult");
-
- if ( tests ) {
- tests.innerHTML = "";
- }
-
- if ( banner ) {
- banner.className = "";
- }
-
- if ( result ) {
- result.parentNode.removeChild( result );
- }
- },
-
- // call on start of module test to prepend name to all tests
- module: function(name, testEnvironment) {
- config.currentModule = name;
-
- synchronize(function() {
- if ( config.currentModule ) {
- QUnit.moduleDone( config.currentModule, config.moduleStats.bad, config.moduleStats.all );
- }
-
- config.currentModule = name;
- config.moduleTestEnvironment = testEnvironment;
- config.moduleStats = { all: 0, bad: 0 };
-
- QUnit.moduleStart( name, testEnvironment );
- });
- },
-
- asyncTest: function(testName, expected, callback) {
- if ( arguments.length === 2 ) {
- callback = expected;
- expected = 0;
- }
-
- QUnit.test(testName, expected, callback, true);
- },
-
- test: function(testName, expected, callback, async) {
- var name = testName, testEnvironment, testEnvironmentArg;
-
- if ( arguments.length === 2 ) {
- callback = expected;
- expected = null;
- }
- // is 2nd argument a testEnvironment?
- if ( expected && typeof expected === 'object') {
- testEnvironmentArg = expected;
- expected = null;
- }
-
- if ( config.currentModule ) {
- name = config.currentModule + " module: " + name;
- }
-
- if ( !validTest(name) ) {
- return;
- }
-
- synchronize(function() {
- QUnit.testStart( testName );
-
- testEnvironment = extend({
- setup: function() {},
- teardown: function() {}
- }, config.moduleTestEnvironment);
- if (testEnvironmentArg) {
- extend(testEnvironment,testEnvironmentArg);
- }
-
- // allow utility functions to access the current test environment
- QUnit.current_testEnvironment = testEnvironment;
-
- config.assertions = [];
- config.expected = expected;
-
- try {
- if ( !config.pollution ) {
- saveGlobal();
- }
-
- testEnvironment.setup.call(testEnvironment);
- } catch(e) {
- QUnit.ok( false, "Setup failed on " + name + ": " + e.message );
- }
-
- if ( async ) {
- QUnit.stop();
- }
-
- try {
- callback.call(testEnvironment);
- } catch(e) {
- fail("Test " + name + " died, exception and test follows", e, callback);
- QUnit.ok( false, "Died on test #" + (config.assertions.length + 1) + ": " + e.message );
- // else next test will carry the responsibility
- saveGlobal();
-
- // Restart the tests if they're blocking
- if ( config.blocking ) {
- start();
- }
- }
- });
-
- synchronize(function() {
- try {
- checkPollution();
- testEnvironment.teardown.call(testEnvironment);
- } catch(e) {
- QUnit.ok( false, "Teardown failed on " + name + ": " + e.message );
- }
-
- try {
- QUnit.reset();
- } catch(e) {
- fail("reset() failed, following Test " + name + ", exception and reset fn follows", e, reset);
- }
-
- if ( config.expected && config.expected != config.assertions.length ) {
- QUnit.ok( false, "Expected " + config.expected + " assertions, but " + config.assertions.length + " were run" );
- }
-
- var good = 0, bad = 0,
- tests = id("qunit-tests");
-
- config.stats.all += config.assertions.length;
- config.moduleStats.all += config.assertions.length;
-
- if ( tests ) {
- var ol = document.createElement("ol");
- ol.style.display = "none";
-
- for ( var i = 0; i < config.assertions.length; i++ ) {
- var assertion = config.assertions[i];
-
- var li = document.createElement("li");
- li.className = assertion.result ? "pass" : "fail";
- li.appendChild(document.createTextNode(assertion.message || "(no message)"));
- ol.appendChild( li );
-
- if ( assertion.result ) {
- good++;
- } else {
- bad++;
- config.stats.bad++;
- config.moduleStats.bad++;
- }
- }
-
- var b = document.createElement("strong");
- b.innerHTML = name + " <b style='color:black;'>(<b class='fail'>" + bad + "</b>, <b class='pass'>" + good + "</b>, " + config.assertions.length + ")</b>";
-
- addEvent(b, "click", function() {
- var next = b.nextSibling, display = next.style.display;
- next.style.display = display === "none" ? "block" : "none";
- });
-
- addEvent(b, "dblclick", function(e) {
- var target = e && e.target ? e.target : window.event.srcElement;
- if ( target.nodeName.toLowerCase() === "strong" ) {
- var text = "", node = target.firstChild;
-
- while ( node.nodeType === 3 ) {
- text += node.nodeValue;
- node = node.nextSibling;
- }
-
- text = text.replace(/(^\s*|\s*$)/g, "");
-
- if ( window.location ) {
- window.location.href = window.location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent(text);
- }
- }
- });
-
- var li = document.createElement("li");
- li.className = bad ? "fail" : "pass";
- li.appendChild( b );
- li.appendChild( ol );
- tests.appendChild( li );
-
- if ( bad ) {
- var toolbar = id("qunit-testrunner-toolbar");
- if ( toolbar ) {
- toolbar.style.display = "block";
- id("qunit-filter-pass").disabled = null;
- id("qunit-filter-missing").disabled = null;
- }
- }
-
- } else {
- for ( var i = 0; i < config.assertions.length; i++ ) {
- if ( !config.assertions[i].result ) {
- bad++;
- config.stats.bad++;
- config.moduleStats.bad++;
- }
- }
- }
-
- QUnit.testDone( testName, bad, config.assertions.length );
-
- if ( !window.setTimeout && !config.queue.length ) {
- done();
- }
- });
-
- if ( window.setTimeout && !config.doneTimer ) {
- config.doneTimer = window.setTimeout(function(){
- if ( !config.queue.length ) {
- done();
- } else {
- synchronize( done );
- }
- }, 13);
- }
- },
-
- /**
- * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
- */
- expect: function(asserts) {
- config.expected = asserts;
- },
-
- /**
- * Asserts true.
- * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" );
- */
- ok: function(a, msg) {
- QUnit.log(a, msg);
-
- config.assertions.push({
- result: !!a,
- message: msg
- });
- },
-
- /**
- * Checks that the first two arguments are equal, with an optional message.
- * Prints out both actual and expected values.
- *
- * Prefered to ok( actual == expected, message )
- *
- * @example equal( format("Received {0} bytes.", 2), "Received 2 bytes." );
- *
- * @param Object actual
- * @param Object expected
- * @param String message (optional)
- */
- equal: function(actual, expected, message) {
- push(expected == actual, actual, expected, message);
- },
-
- notEqual: function(actual, expected, message) {
- push(expected != actual, actual, expected, message);
- },
-
- deepEqual: function(a, b, message) {
- push(QUnit.equiv(a, b), a, b, message);
- },
-
- notDeepEqual: function(a, b, message) {
- push(!QUnit.equiv(a, b), a, b, message);
- },
-
- strictEqual: function(actual, expected, message) {
- push(expected === actual, actual, expected, message);
- },
-
- notStrictEqual: function(actual, expected, message) {
- push(expected !== actual, actual, expected, message);
- },
-
- start: function() {
- // A slight delay, to avoid any current callbacks
- if ( window.setTimeout ) {
- window.setTimeout(function() {
- if ( config.timeout ) {
- clearTimeout(config.timeout);
- }
-
- config.blocking = false;
- process();
- }, 13);
- } else {
- config.blocking = false;
- process();
- }
- },
-
- stop: function(timeout) {
- config.blocking = true;
-
- if ( timeout && window.setTimeout ) {
- config.timeout = window.setTimeout(function() {
- QUnit.ok( false, "Test timed out" );
- QUnit.start();
- }, timeout);
- }
- },
-
- /**
- * Resets the test setup. Useful for tests that modify the DOM.
- */
- reset: function() {
- if ( window.jQuery ) {
- jQuery("#main").html( config.fixture );
- jQuery.event.global = {};
- jQuery.ajaxSettings = extend({}, config.ajaxSettings);
- }
- },
-
- /**
- * Trigger an event on an element.
- *
- * @example triggerEvent( document.body, "click" );
- *
- * @param DOMElement elem
- * @param String type
- */
- triggerEvent: function( elem, type, event ) {
- if ( document.createEvent ) {
- event = document.createEvent("MouseEvents");
- event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
- 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- elem.dispatchEvent( event );
-
- } else if ( elem.fireEvent ) {
- elem.fireEvent("on"+type);
- }
- },
-
- // Safe object type checking
- is: function( type, obj ) {
- return Object.prototype.toString.call( obj ) === "[object "+ type +"]";
- },
-
- // Logging callbacks
- done: function(failures, total) {},
- log: function(result, message) {},
- testStart: function(name) {},
- testDone: function(name, failures, total) {},
- moduleStart: function(name, testEnvironment) {},
- moduleDone: function(name, failures, total) {}
-};
-
-// Backwards compatibility, deprecated
-QUnit.equals = QUnit.equal;
-QUnit.same = QUnit.deepEqual;
-
-// Maintain internal state
-var config = {
- // The queue of tests to run
- queue: [],
-
- // block until document ready
- blocking: true
-};
-
-// Load paramaters
-(function() {
- var location = window.location || { search: "", protocol: "file:" },
- GETParams = location.search.slice(1).split('&');
-
- for ( var i = 0; i < GETParams.length; i++ ) {
- GETParams[i] = decodeURIComponent( GETParams[i] );
- if ( GETParams[i] === "noglobals" ) {
- GETParams.splice( i, 1 );
- i--;
- config.noglobals = true;
- } else if ( GETParams[i].search('=') > -1 ) {
- GETParams.splice( i, 1 );
- i--;
- }
- }
-
- // restrict modules/tests by get parameters
- config.filters = GETParams;
-
- // Figure out if we're running the tests from a server or not
- QUnit.isLocal = !!(location.protocol === 'file:');
-})();
-
-// Expose the API as global variables, unless an 'exports'
-// object exists, in that case we assume we're in CommonJS
-if ( typeof exports === "undefined" || typeof require === "undefined" ) {
- extend(window, QUnit);
- window.QUnit = QUnit;
-} else {
- extend(exports, QUnit);
- exports.QUnit = QUnit;
-}
-
-if ( typeof document === "undefined" || document.readyState === "complete" ) {
- config.autorun = true;
-}
-
-addEvent(window, "load", function() {
- // Initialize the config, saving the execution queue
- var oldconfig = extend({}, config);
- QUnit.init();
- extend(config, oldconfig);
-
- config.blocking = false;
-
- var userAgent = id("qunit-userAgent");
- if ( userAgent ) {
- userAgent.innerHTML = navigator.userAgent;
- }
-
- var toolbar = id("qunit-testrunner-toolbar");
- if ( toolbar ) {
- toolbar.style.display = "none";
-
- var filter = document.createElement("input");
- filter.type = "checkbox";
- filter.id = "qunit-filter-pass";
- filter.disabled = true;
- addEvent( filter, "click", function() {
- var li = document.getElementsByTagName("li");
- for ( var i = 0; i < li.length; i++ ) {
- if ( li[i].className.indexOf("pass") > -1 ) {
- li[i].style.display = filter.checked ? "none" : "";
- }
- }
- });
- toolbar.appendChild( filter );
-
- var label = document.createElement("label");
- label.setAttribute("for", "qunit-filter-pass");
- label.innerHTML = "Hide passed tests";
- toolbar.appendChild( label );
-
- var missing = document.createElement("input");
- missing.type = "checkbox";
- missing.id = "qunit-filter-missing";
- missing.disabled = true;
- addEvent( missing, "click", function() {
- var li = document.getElementsByTagName("li");
- for ( var i = 0; i < li.length; i++ ) {
- if ( li[i].className.indexOf("fail") > -1 && li[i].innerHTML.indexOf('missing test - untested code is broken code') > - 1 ) {
- li[i].parentNode.parentNode.style.display = missing.checked ? "none" : "block";
- }
- }
- });
- toolbar.appendChild( missing );
-
- label = document.createElement("label");
- label.setAttribute("for", "qunit-filter-missing");
- label.innerHTML = "Hide missing tests (untested code is broken code)";
- toolbar.appendChild( label );
- }
-
- var main = id('main');
- if ( main ) {
- config.fixture = main.innerHTML;
- }
-
- if ( window.jQuery ) {
- config.ajaxSettings = window.jQuery.ajaxSettings;
- }
-
- QUnit.start();
-});
-
-function done() {
- if ( config.doneTimer && window.clearTimeout ) {
- window.clearTimeout( config.doneTimer );
- config.doneTimer = null;
- }
-
- if ( config.queue.length ) {
- config.doneTimer = window.setTimeout(function(){
- if ( !config.queue.length ) {
- done();
- } else {
- synchronize( done );
- }
- }, 13);
-
- return;
- }
-
- config.autorun = true;
-
- // Log the last module results
- if ( config.currentModule ) {
- QUnit.moduleDone( config.currentModule, config.moduleStats.bad, config.moduleStats.all );
- }
-
- var banner = id("qunit-banner"),
- tests = id("qunit-tests"),
- html = ['Tests completed in ',
- +new Date - config.started, ' milliseconds.<br/>',
- '<span class="passed">', config.stats.all - config.stats.bad, '</span> tests of <span class="total">', config.stats.all, '</span> passed, <span class="failed">', config.stats.bad,'</span> failed.'].join('');
-
- if ( banner ) {
- banner.className = (config.stats.bad ? "qunit-fail" : "qunit-pass");
- }
-
- if ( tests ) {
- var result = id("qunit-testresult");
-
- if ( !result ) {
- result = document.createElement("p");
- result.id = "qunit-testresult";
- result.className = "result";
- tests.parentNode.insertBefore( result, tests.nextSibling );
- }
-
- result.innerHTML = html;
- }
-
- QUnit.done( config.stats.bad, config.stats.all );
-}
-
-function validTest( name ) {
- var i = config.filters.length,
- run = false;
-
- if ( !i ) {
- return true;
- }
-
- while ( i-- ) {
- var filter = config.filters[i],
- not = filter.charAt(0) == '!';
-
- if ( not ) {
- filter = filter.slice(1);
- }
-
- if ( name.indexOf(filter) !== -1 ) {
- return !not;
- }
-
- if ( not ) {
- run = true;
- }
- }
-
- return run;
-}
-
-function push(result, actual, expected, message) {
- message = message || (result ? "okay" : "failed");
- QUnit.ok( result, result ? message + ": " + QUnit.jsDump.parse(expected) : message + ", expected: " + QUnit.jsDump.parse(expected) + " result: " + QUnit.jsDump.parse(actual) );
-}
-
-function synchronize( callback ) {
- config.queue.push( callback );
-
- if ( config.autorun && !config.blocking ) {
- process();
- }
-}
-
-function process() {
- var start = (new Date()).getTime();
-
- while ( config.queue.length && !config.blocking ) {
- if ( config.updateRate <= 0 || (((new Date()).getTime() - start) < config.updateRate) ) {
- config.queue.shift()();
-
- } else {
- setTimeout( process, 13 );
- break;
- }
- }
-}
-
-function saveGlobal() {
- config.pollution = [];
-
- if ( config.noglobals ) {
- for ( var key in window ) {
- config.pollution.push( key );
- }
- }
-}
-
-function checkPollution( name ) {
- var old = config.pollution;
- saveGlobal();
-
- var newGlobals = diff( old, config.pollution );
- if ( newGlobals.length > 0 ) {
- ok( false, "Introduced global variable(s): " + newGlobals.join(", ") );
- config.expected++;
- }
-
- var deletedGlobals = diff( config.pollution, old );
- if ( deletedGlobals.length > 0 ) {
- ok( false, "Deleted global variable(s): " + deletedGlobals.join(", ") );
- config.expected++;
- }
-}
-
-// returns a new Array with the elements that are in a but not in b
-function diff( a, b ) {
- var result = a.slice();
- for ( var i = 0; i < result.length; i++ ) {
- for ( var j = 0; j < b.length; j++ ) {
- if ( result[i] === b[j] ) {
- result.splice(i, 1);
- i--;
- break;
- }
- }
- }
- return result;
-}
-
-function fail(message, exception, callback) {
- if ( typeof console !== "undefined" && console.error && console.warn ) {
- console.error(message);
- console.error(exception);
- console.warn(callback.toString());
-
- } else if ( window.opera && opera.postError ) {
- opera.postError(message, exception, callback.toString);
- }
-}
-
-function extend(a, b) {
- for ( var prop in b ) {
- a[prop] = b[prop];
- }
-
- return a;
-}
-
-function addEvent(elem, type, fn) {
- if ( elem.addEventListener ) {
- elem.addEventListener( type, fn, false );
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, fn );
- } else {
- fn();
- }
-}
-
-function id(name) {
- return !!(typeof document !== "undefined" && document && document.getElementById) &&
- document.getElementById( name );
-}
-
-// Test for equality any JavaScript type.
-// Discussions and reference: http://philrathe.com/articles/equiv
-// Test suites: http://philrathe.com/tests/equiv
-// Author: Philippe Rathé <prathe@gmail.com>
-QUnit.equiv = function () {
-
- var innerEquiv; // the real equiv function
- var callers = []; // stack to decide between skip/abort functions
- var parents = []; // stack to avoiding loops from circular referencing
-
-
- // Determine what is o.
- function hoozit(o) {
- if (QUnit.is("String", o)) {
- return "string";
-
- } else if (QUnit.is("Boolean", o)) {
- return "boolean";
-
- } else if (QUnit.is("Number", o)) {
-
- if (isNaN(o)) {
- return "nan";
- } else {
- return "number";
- }
-
- } else if (typeof o === "undefined") {
- return "undefined";
-
- // consider: typeof null === object
- } else if (o === null) {
- return "null";
-
- // consider: typeof [] === object
- } else if (QUnit.is( "Array", o)) {
- return "array";
-
- // consider: typeof new Date() === object
- } else if (QUnit.is( "Date", o)) {
- return "date";
-
- // consider: /./ instanceof Object;
- // /./ instanceof RegExp;
- // typeof /./ === "function"; // => false in IE and Opera,
- // true in FF and Safari
- } else if (QUnit.is( "RegExp", o)) {
- return "regexp";
-
- } else if (typeof o === "object") {
- return "object";
-
- } else if (QUnit.is( "Function", o)) {
- return "function";
- } else {
- return undefined;
- }
- }
-
- // Call the o related callback with the given arguments.
- function bindCallbacks(o, callbacks, args) {
- var prop = hoozit(o);
- if (prop) {
- if (hoozit(callbacks[prop]) === "function") {
- return callbacks[prop].apply(callbacks, args);
- } else {
- return callbacks[prop]; // or undefined
- }
- }
- }
-
- var callbacks = function () {
-
- // for string, boolean, number and null
- function useStrictEquality(b, a) {
- if (b instanceof a.constructor || a instanceof b.constructor) {
- // to catch short annotaion VS 'new' annotation of a declaration
- // e.g. var i = 1;
- // var j = new Number(1);
- return a == b;
- } else {
- return a === b;
- }
- }
-
- return {
- "string": useStrictEquality,
- "boolean": useStrictEquality,
- "number": useStrictEquality,
- "null": useStrictEquality,
- "undefined": useStrictEquality,
-
- "nan": function (b) {
- return isNaN(b);
- },
-
- "date": function (b, a) {
- return hoozit(b) === "date" && a.valueOf() === b.valueOf();
- },
-
- "regexp": function (b, a) {
- return hoozit(b) === "regexp" &&
- a.source === b.source && // the regex itself
- a.global === b.global && // and its modifers (gmi) ...
- a.ignoreCase === b.ignoreCase &&
- a.multiline === b.multiline;
- },
-
- // - skip when the property is a method of an instance (OOP)
- // - abort otherwise,
- // initial === would have catch identical references anyway
- "function": function () {
- var caller = callers[callers.length - 1];
- return caller !== Object &&
- typeof caller !== "undefined";
- },
-
- "array": function (b, a) {
- var i, j, loop;
- var len;
-
- // b could be an object literal here
- if ( ! (hoozit(b) === "array")) {
- return false;
- }
-
- len = a.length;
- if (len !== b.length) { // safe and faster
- return false;
- }
-
- //track reference to avoid circular references
- parents.push(a);
- for (i = 0; i < len; i++) {
- loop = false;
- for(j=0;j<parents.length;j++){
- if(parents[j] === a[i]){
- loop = true;//dont rewalk array
- }
- }
- if (!loop && ! innerEquiv(a[i], b[i])) {
- parents.pop();
- return false;
- }
- }
- parents.pop();
- return true;
- },
-
- "object": function (b, a) {
- var i, j, loop;
- var eq = true; // unless we can proove it
- var aProperties = [], bProperties = []; // collection of strings
-
- // comparing constructors is more strict than using instanceof
- if ( a.constructor !== b.constructor) {
- return false;
- }
-
- // stack constructor before traversing properties
- callers.push(a.constructor);
- //track reference to avoid circular references
- parents.push(a);
-
- for (i in a) { // be strict: don't ensures hasOwnProperty and go deep
- loop = false;
- for(j=0;j<parents.length;j++){
- if(parents[j] === a[i])
- loop = true; //don't go down the same path twice
- }
- aProperties.push(i); // collect a's properties
-
- if (!loop && ! innerEquiv(a[i], b[i])) {
- eq = false;
- break;
- }
- }
-
- callers.pop(); // unstack, we are done
- parents.pop();
-
- for (i in b) {
- bProperties.push(i); // collect b's properties
- }
-
- // Ensures identical properties name
- return eq && innerEquiv(aProperties.sort(), bProperties.sort());
- }
- };
- }();
-
- innerEquiv = function () { // can take multiple arguments
- var args = Array.prototype.slice.apply(arguments);
- if (args.length < 2) {
- return true; // end transition
- }
-
- return (function (a, b) {
- if (a === b) {
- return true; // catch the most you can
- } else if (a === null || b === null || typeof a === "undefined" || typeof b === "undefined" || hoozit(a) !== hoozit(b)) {
- return false; // don't lose time with error prone cases
- } else {
- return bindCallbacks(a, callbacks, [b, a]);
- }
-
- // apply transition with (1..n) arguments
- })(args[0], args[1]) && arguments.callee.apply(this, args.splice(1, args.length -1));
- };
-
- return innerEquiv;
-
-}();
-
-/**
- * jsDump
- * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
- * Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php)
- * Date: 5/15/2008
- * @projectDescription Advanced and extensible data dumping for Javascript.
- * @version 1.0.0
- * @author Ariel Flesler
- * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
- */
-QUnit.jsDump = (function() {
- function quote( str ) {
- return '"' + str.toString().replace(/"/g, '\\"') + '"';
- };
- function literal( o ) {
- return o + '';
- };
- function join( pre, arr, post ) {
- var s = jsDump.separator(),
- base = jsDump.indent(),
- inner = jsDump.indent(1);
- if ( arr.join )
- arr = arr.join( ',' + s + inner );
- if ( !arr )
- return pre + post;
- return [ pre, inner + arr, base + post ].join(s);
- };
- function array( arr ) {
- var i = arr.length, ret = Array(i);
- this.up();
- while ( i-- )
- ret[i] = this.parse( arr[i] );
- this.down();
- return join( '[', ret, ']' );
- };
-
- var reName = /^function (\w+)/;
-
- var jsDump = {
- parse:function( obj, type ) { //type is used mostly internally, you can fix a (custom)type in advance
- var parser = this.parsers[ type || this.typeOf(obj) ];
- type = typeof parser;
-
- return type == 'function' ? parser.call( this, obj ) :
- type == 'string' ? parser :
- this.parsers.error;
- },
- typeOf:function( obj ) {
- var type;
- if ( obj === null ) {
- type = "null";
- } else if (typeof obj === "undefined") {
- type = "undefined";
- } else if (QUnit.is("RegExp", obj)) {
- type = "regexp";
- } else if (QUnit.is("Date", obj)) {
- type = "date";
- } else if (QUnit.is("Function", obj)) {
- type = "function";
- } else if (obj.setInterval && obj.document && !obj.nodeType) {
- type = "window";
- } else if (obj.nodeType === 9) {
- type = "document";
- } else if (obj.nodeType) {
- type = "node";
- } else if (typeof obj === "object" && typeof obj.length === "number" && obj.length >= 0) {
- type = "array";
- } else {
- type = typeof obj;
- }
- return type;
- },
- separator:function() {
- return this.multiline ? this.HTML ? '<br />' : '\n' : this.HTML ? '&nbsp;' : ' ';
- },
- indent:function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing
- if ( !this.multiline )
- return '';
- var chr = this.indentChar;
- if ( this.HTML )
- chr = chr.replace(/\t/g,' ').replace(/ /g,'&nbsp;');
- return Array( this._depth_ + (extra||0) ).join(chr);
- },
- up:function( a ) {
- this._depth_ += a || 1;
- },
- down:function( a ) {
- this._depth_ -= a || 1;
- },
- setParser:function( name, parser ) {
- this.parsers[name] = parser;
- },
- // The next 3 are exposed so you can use them
- quote:quote,
- literal:literal,
- join:join,
- //
- _depth_: 1,
- // This is the list of parsers, to modify them, use jsDump.setParser
- parsers:{
- window: '[Window]',
- document: '[Document]',
- error:'[ERROR]', //when no parser is found, shouldn't happen
- unknown: '[Unknown]',
- 'null':'null',
- undefined:'undefined',
- 'function':function( fn ) {
- var ret = 'function',
- name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE
- if ( name )
- ret += ' ' + name;
- ret += '(';
-
- ret = [ ret, this.parse( fn, 'functionArgs' ), '){'].join('');
- return join( ret, this.parse(fn,'functionCode'), '}' );
- },
- array: array,
- nodelist: array,
- arguments: array,
- object:function( map ) {
- var ret = [ ];
- this.up();
- for ( var key in map )
- ret.push( this.parse(key,'key') + ': ' + this.parse(map[key]) );
- this.down();
- return join( '{', ret, '}' );
- },
- node:function( node ) {
- var open = this.HTML ? '&lt;' : '<',
- close = this.HTML ? '&gt;' : '>';
-
- var tag = node.nodeName.toLowerCase(),
- ret = open + tag;
-
- for ( var a in this.DOMAttrs ) {
- var val = node[this.DOMAttrs[a]];
- if ( val )
- ret += ' ' + a + '=' + this.parse( val, 'attribute' );
- }
- return ret + close + open + '/' + tag + close;
- },
- functionArgs:function( fn ) {//function calls it internally, it's the arguments part of the function
- var l = fn.length;
- if ( !l ) return '';
-
- var args = Array(l);
- while ( l-- )
- args[l] = String.fromCharCode(97+l);//97 is 'a'
- return ' ' + args.join(', ') + ' ';
- },
- key:quote, //object calls it internally, the key part of an item in a map
- functionCode:'[code]', //function calls it internally, it's the content of the function
- attribute:quote, //node calls it internally, it's an html attribute value
- string:quote,
- date:quote,
- regexp:literal, //regex
- number:literal,
- 'boolean':literal
- },
- DOMAttrs:{//attributes to dump from nodes, name=>realName
- id:'id',
- name:'name',
- 'class':'className'
- },
- HTML:false,//if true, entities are escaped ( <, >, \t, space and \n )
- indentChar:' ',//indentation unit
- multiline:false //if true, items in a collection, are separated by a \n, else just a space.
- };
-
- return jsDump;
-})();
-
-})(this); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/.bower.json b/ecomp-portal-FE/client/bower_components/jquery.newstape/.bower.json
deleted file mode 100644
index 553e7d17..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.newstape/.bower.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "jquery.newstape",
- "version": "1.0.0",
- "license": "MIT",
- "main": [
- "dist/jquery.newstape.min.js"
- ],
- "description": "Simple Touch-enabled News Ticker Plugin",
- "authors": [
- "Nxeed <nxeed@ya.ru>"
- ],
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ],
- "dependencies": {
- "jquery": ">=1.7",
- "jquery-mousewheel": ">=3.1.13",
- "jquery.event.drag-new": "*"
- },
- "homepage": "https://github.com/nxeed/JQuery-Newstape",
- "_release": "1.0.0",
- "_resolution": {
- "type": "version",
- "tag": "v1.0.0",
- "commit": "c67331c7cbb309da87d08ebb30a92244cda14776"
- },
- "_source": "https://github.com/nxeed/JQuery-Newstape.git",
- "_target": "1.0.0",
- "_originalSource": "jquery.newstape"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/bower.json b/ecomp-portal-FE/client/bower_components/jquery.newstape/bower.json
deleted file mode 100644
index e20d577f..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.newstape/bower.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "jquery.newstape",
- "version": "1.0.0",
- "license": "MIT",
- "main": [
- "dist/jquery.newstape.min.js"
- ],
- "description": "Simple Touch-enabled News Ticker Plugin",
- "authors": [
- "Nxeed <nxeed@ya.ru>"
- ],
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ],
- "dependencies": {
- "jquery": ">=1.7",
- "jquery-mousewheel": ">=3.1.13",
- "jquery.event.drag-new": "*"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js b/ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js
deleted file mode 100644
index f42e320e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js
+++ /dev/null
@@ -1 +0,0 @@
-"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(e,t,n){var o={$elem:null,$content:null,options:{},height:0,contentHeight:0,dragstartPos:0,dragDeltaY:0,dragDeltaYReduce:0,timer:null,pos:0,init:function(t,n){var o=this;o.$elem=e(n),o.$content=e(".newstape-content",o.$elem),o.options=e.extend({},e.fn.newstape.options,o.$elem.data(),t);var a=function(){o.height=o.$elem.outerHeight(),o.contentHeight=o.$content.outerHeight()};o.options.heightSpy&&setInterval(a,1e3),a();var s=function(){o.timer=setInterval(function(){o.move()},o.options.period)};o.$elem.bind("mouseover.newstape",function(){clearInterval(o.timer)}),o.$elem.bind("mouseout.newstape",function(){s()}),o.options.mousewheel&&o.$elem.bind("mousewheel.newstape",function(e){e.preventDefault(),o.pos=e.deltaY>0?o.pos+o.options.mousewheelRate:o.pos-o.options.mousewheelRate,o.move()}),e("a",o.$elem).focus(function(t){o.$elem.scrollTop(0),o.pos=o.height-e(this).position().top-e(this).outerHeight(),o.move()}),o.options.dragable&&o.$elem.bind("dragstart.newstape",function(e,t){o.dragDeltaY=0,o.dragDeltaYReduce=0,o.dragstartPos=o.pos,o.$elem.addClass("newstape-drag")}).bind("drag.newstape",function(e,t){o.dragDeltaY=t.deltaY,o.pos=o.dragstartPos+(t.deltaY-o.dragDeltaYReduce),o.move()}).bind("dragend.newstape",function(e,t){o.$elem.removeClass("newstape-drag")}),s()},move:function(){var e=this,t=function(){e.dragstartPos=e.pos,e.dragDeltaYReduce=e.dragDeltaY,e.dragDeltaY=0};e.pos<=-1*e.contentHeight&&(e.pos=e.height,t()),e.pos>=e.height+e.options.offset&&(e.pos=-1*e.contentHeight,t()),e.$elem.hasClass("newstape-drag")||(e.pos=e.pos-e.options.offset),e.$content.css("top",parseInt(e.pos)+"px")}};e.fn.newstape=function(t){return this.each(function(){if(e(this).data("newstape-init")===!0)return!1;e(this).data("newstape-init",!0);var n=Object.create(o);n.init(t,this),e.data(this,"newstape",n)})},e.fn.newstape.options={period:30,offset:1,mousewheel:!0,dragable:!0,mousewheelRate:30,heightSpy:!0}}(jQuery,window,document); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/gulpfile.js b/ecomp-portal-FE/client/bower_components/jquery.newstape/gulpfile.js
deleted file mode 100644
index 68104cd0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.newstape/gulpfile.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var gulp = require('gulp'),
- uglify = require('gulp-uglify'),
- rename = require('gulp-rename'),
- clean = require('gulp-clean');
-
-gulp.task('minjs', function() {
- return gulp.src(['jquery.newstape.js'])
- .pipe(uglify())
- .pipe(rename({
- suffix: ".min"
- }))
- .pipe(gulp.dest('dist'));
-});
-
-gulp.task('clean', function() {
- return gulp.src(['dist/**/.*'], {read: false})
- .pipe(clean());
-});
-
-gulp.task('default', ['clean', 'minjs'], function() {
-
-}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/jquery.newstape.js b/ecomp-portal-FE/client/bower_components/jquery.newstape/jquery.newstape.js
deleted file mode 100644
index 3c3d3f26..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.newstape/jquery.newstape.js
+++ /dev/null
@@ -1,135 +0,0 @@
-if (typeof Object.create !== "function") {
- Object.create = function(obj) {
- function F() {
- }
- F.prototype = obj;
- return new F();
- };
-}
-
-(function($, window, document) {
- var Newstape = {
- $elem: null,
- $content: null,
- options: {},
- height: 0,
- contentHeight: 0,
- dragstartPos: 0,
- dragDeltaY: 0,
- dragDeltaYReduce: 0,
- timer: null,
- pos: 0,
- init: function(options, el) {
- var base = this;
-
- base.$elem = $(el);
- base.$content = $('.newstape-content', base.$elem);
-
- base.options = $.extend({}, $.fn.newstape.options, base.$elem.data(), options);
-
- var heightRefresh = function() {
- base.height = base.$elem.outerHeight();
- base.contentHeight = base.$content.outerHeight();
- };
-
- if (base.options.heightSpy) {
- setInterval(heightRefresh, 1000);
- }
-
- heightRefresh();
-
- var play = function() {
- base.timer = setInterval(function() {
- base.move();
- }, base.options.period);
- };
-
- base.$elem.bind('mouseover.newstape', function() {
- clearInterval(base.timer);
- });
-
- base.$elem.bind('mouseout.newstape', function() {
- play();
- });
-
- if (base.options.mousewheel) {
- base.$elem.bind('mousewheel.newstape', function(e) {
- e.preventDefault();
- base.pos = (e.deltaY > 0) ? base.pos + base.options.mousewheelRate : base.pos - base.options.mousewheelRate;
- base.move();
- });
- }
-
- $('a', base.$elem).focus(function(e) {
- base.$elem.scrollTop(0);
- base.pos = base.height - $(this).position().top - $(this).outerHeight();
- base.move();
- });
-
- if (base.options.dragable) {
- base.$elem.bind('dragstart.newstape', function(e, dd) {
- base.dragDeltaY = 0;
- base.dragDeltaYReduce = 0;
- base.dragstartPos = base.pos;
- base.$elem.addClass('newstape-drag');
- }).bind('drag.newstape', function(e, dd) {
- base.dragDeltaY = dd.deltaY;
- base.pos = base.dragstartPos + (dd.deltaY - base.dragDeltaYReduce);
- base.move();
- }).bind('dragend.newstape', function(e, dd) {
- base.$elem.removeClass('newstape-drag');
- });
- }
-
- play();
- },
- move: function() {
- var base = this;
-
- var dragUpdate = function() {
- base.dragstartPos = base.pos;
- base.dragDeltaYReduce = base.dragDeltaY;
- base.dragDeltaY = 0;
- };
-
- if (base.pos <= base.contentHeight * -1) {
- base.pos = base.height;
- dragUpdate();
- }
-
- if (base.pos >= base.height + base.options.offset) {
- base.pos = base.contentHeight * -1;
- dragUpdate();
- }
-
- if (!base.$elem.hasClass('newstape-drag')) {
- base.pos = base.pos - base.options.offset;
- }
-
- base.$content.css('top', parseInt(base.pos) + 'px');
- }
- };
-
- $.fn.newstape = function(options) {
- return this.each(function() {
- if ($(this).data("newstape-init") === true) {
- return false;
- }
-
- $(this).data("newstape-init", true);
- var newstape = Object.create(Newstape);
- newstape.init(options, this);
- $.data(this, "newstape", newstape);
- });
- };
-
- $.fn.newstape.options = {
- period: 30,
- offset: 1,
- mousewheel: true,
- dragable: true,
- mousewheelRate: 30,
- heightSpy: true
- };
-
-}(jQuery, window, document));
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/package.json b/ecomp-portal-FE/client/bower_components/jquery.newstape/package.json
deleted file mode 100644
index 4809c2df..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.newstape/package.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "devDependencies": {
- "gulp": "^3.9.0",
- "gulp-clean": "^0.3.1",
- "gulp-rename": "^1.2.2",
- "gulp-uglify": "^1.5.1"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/readme.md b/ecomp-portal-FE/client/bower_components/jquery.newstape/readme.md
deleted file mode 100644
index 4383382c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery.newstape/readme.md
+++ /dev/null
@@ -1,99 +0,0 @@
-JQuery Newstape
-===================
-Simple Touch-enabled News Ticker Plugin
-
-Newstape is a really small jQuery text scroller plugin which automatically & vertically scrolls through a list of news feeds with support for mouse wheel, mouse drag and touch swipe events.
-
-[DEMO](http://www.jqueryscript.net/demo/Simple-Touch-enabled-News-Ticker-Plugin-Newstape/)
-
-How to use it:
--------------
-Load jQuery library and the jQuery newstape plugin in your html page.
-``` html
-<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
-<script src="jquery.newstape.js"></script>
-```
-Load the optional jQuery mousewheel plugin for mouse wheel support.
-``` html
-<script src="jquery.mousewheel.min.js"></script>
-```
-Load the optional jquery.event.drag plugin for drag & swipe support.
-``` html
-<script src="jquery.event.drag.min.js"></script>
-```
-Create a basic news ticker as follow.
-``` html
-<div class="newstape">
- <div class="newstape-content">
- <div class="news-block">
- <h3>News 1</h3>
- <small>13.04.2015</small>
- <p class="text-justify"> Content 1 ... </p>
- <div class="text-right"> <a href="#">More</a> </div>
- <hr />
- </div>
- <div class="news-block">
- <h3>News 2</h3>
- <small>13.04.2015</small>
- <p class="text-justify"> Content 2 ... </p>
- <div class="text-right"> <a href="#">More</a> </div>
- <hr />
- </div>
- <div class="news-block">
- <h3>News 3</h3>
- <small>13.04.2015</small>
- <p class="text-justify"> Content 3 ... </p>
- <div class="text-right"> <a href="#">More</a> </div>
- <hr />
- </div>
- </div>
-</div>
-```
-Add your own CSS styles to the news ticker.
-``` css
-.newstape {
- background-color: #3BB0D6;
- color: #fff;
- height: 400px;
- overflow: hidden;
-}
-
-.newstape-content {
- position: relative;
- padding: 15px;
-}
-
-.newstape-drag { cursor: ns-resize; }
-
-.text-center { text-align: center; }
-
-.text-right { text-align: right; }
-
-.text-justify { text-align: justify; }
-```
-Call the plugin to start the news ticker.
-``` javascript
-$('.newstape').newstape();
-
-```
-Default settings.
-``` javascript
-$('.newstape').newstape({
-
-// timer period
-period: 30,
-
-// offset pixel count
-offset: 1,
-
-// mousewheel scrolling
-mousewheel: true,
-
-// mousewheel offset pixel count
-mousewheelRate: 30,
-
-// dragging tape content
-dragable: true
-
-});
-```
diff --git a/ecomp-portal-FE/client/bower_components/jquery/.bower.json b/ecomp-portal-FE/client/bower_components/jquery/.bower.json
deleted file mode 100644
index 25f5cf87..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/.bower.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "name": "jquery",
- "main": "dist/jquery.js",
- "license": "MIT",
- "ignore": [
- "package.json"
- ],
- "keywords": [
- "jquery",
- "javascript",
- "browser",
- "library"
- ],
- "homepage": "https://github.com/jquery/jquery-dist",
- "version": "2.2.4",
- "_release": "2.2.4",
- "_resolution": {
- "type": "version",
- "tag": "2.2.4",
- "commit": "c0185ab7c75aab88762c5aae780b9d83b80eda72"
- },
- "_source": "https://github.com/jquery/jquery-dist.git",
- "_target": "~2.2.4",
- "_originalSource": "jquery"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery/AUTHORS.txt b/ecomp-portal-FE/client/bower_components/jquery/AUTHORS.txt
deleted file mode 100644
index dde64cac..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/AUTHORS.txt
+++ /dev/null
@@ -1,278 +0,0 @@
-Authors ordered by first contribution.
-
-John Resig <jeresig@gmail.com>
-Gilles van den Hoven <gilles0181@gmail.com>
-Michael Geary <mike@geary.com>
-Stefan Petre <stefan.petre@gmail.com>
-Yehuda Katz <wycats@gmail.com>
-Corey Jewett <cj@syntheticplayground.com>
-Klaus Hartl <klaus.hartl@gmail.com>
-Franck Marcia <franck.marcia@gmail.com>
-Jörn Zaefferer <joern.zaefferer@gmail.com>
-Paul Bakaus <paul.bakaus@gmail.com>
-Brandon Aaron <brandon.aaron@gmail.com>
-Mike Alsup <malsup@gmail.com>
-Dave Methvin <dave.methvin@gmail.com>
-Ed Engelhardt <edengelhardt@gmail.com>
-Sean Catchpole <littlecooldude@gmail.com>
-Paul Mclanahan <pmclanahan@gmail.com>
-David Serduke <davidserduke@gmail.com>
-Richard D. Worth <rdworth@gmail.com>
-Scott González <scott.gonzalez@gmail.com>
-Ariel Flesler <aflesler@gmail.com>
-Jon Evans <jon@springyweb.com>
-TJ Holowaychuk <tj@vision-media.ca>
-Michael Bensoussan <mickey@seesmic.com>
-Robert Katić <robert.katic@gmail.com>
-Louis-Rémi Babé <lrbabe@gmail.com>
-Earle Castledine <mrspeaker@gmail.com>
-Damian Janowski <damian.janowski@gmail.com>
-Rich Dougherty <rich@rd.gen.nz>
-Kim Dalsgaard <kim@kimdalsgaard.com>
-Andrea Giammarchi <andrea.giammarchi@gmail.com>
-Mark Gibson <jollytoad@gmail.com>
-Karl Swedberg <kswedberg@gmail.com>
-Justin Meyer <justinbmeyer@gmail.com>
-Ben Alman <cowboy@rj3.net>
-James Padolsey <cla@padolsey.net>
-David Petersen <public@petersendidit.com>
-Batiste Bieler <batiste.bieler@gmail.com>
-Alexander Farkas <info@corrupt-system.de>
-Rick Waldron <waldron.rick@gmail.com>
-Filipe Fortes <filipe@fortes.com>
-Neeraj Singh <neerajdotname@gmail.com>
-Paul Irish <paul.irish@gmail.com>
-Iraê Carvalho <irae@irae.pro.br>
-Matt Curry <matt@pseudocoder.com>
-Michael Monteleone <michael@michaelmonteleone.net>
-Noah Sloan <noah.sloan@gmail.com>
-Tom Viner <github@viner.tv>
-Douglas Neiner <doug@dougneiner.com>
-Adam J. Sontag <ajpiano@ajpiano.com>
-Dave Reed <dareed@microsoft.com>
-Ralph Whitbeck <ralph.whitbeck@gmail.com>
-Carl Fürstenberg <azatoth@gmail.com>
-Jacob Wright <jacwright@gmail.com>
-J. Ryan Stinnett <jryans@gmail.com>
-unknown <Igen005@.upcorp.ad.uprr.com>
-temp01 <temp01irc@gmail.com>
-Heungsub Lee <h@subl.ee>
-Colin Snover <github.com@zetafleet.com>
-Ryan W Tenney <ryan@10e.us>
-Pinhook <contact@pinhooklabs.com>
-Ron Otten <r.j.g.otten@gmail.com>
-Jephte Clain <Jephte.Clain@univ-reunion.fr>
-Anton Matzneller <obhvsbypqghgc@gmail.com>
-Alex Sexton <AlexSexton@gmail.com>
-Dan Heberden <danheberden@gmail.com>
-Henri Wiechers <hwiechers@gmail.com>
-Russell Holbrook <russell.holbrook@patch.com>
-Julian Aubourg <aubourg.julian@gmail.com>
-Gianni Alessandro Chiappetta <gianni@runlevel6.org>
-Scott Jehl <scottjehl@gmail.com>
-James Burke <jrburke@gmail.com>
-Jonas Pfenniger <jonas@pfenniger.name>
-Xavi Ramirez <xavi.rmz@gmail.com>
-Jared Grippe <jared@deadlyicon.com>
-Sylvester Keil <sylvester@keil.or.at>
-Brandon Sterne <bsterne@mozilla.com>
-Mathias Bynens <mathias@qiwi.be>
-Timmy Willison <timmywillisn@gmail.com>
-Corey Frang <gnarf37@gmail.com>
-Digitalxero <digitalxero>
-Anton Kovalyov <anton@kovalyov.net>
-David Murdoch <david@davidmurdoch.com>
-Josh Varner <josh.varner@gmail.com>
-Charles McNulty <cmcnulty@kznf.com>
-Jordan Boesch <jboesch26@gmail.com>
-Jess Thrysoee <jess@thrysoee.dk>
-Michael Murray <m@murz.net>
-Lee Carpenter <elcarpie@gmail.com>
-Alexis Abril <me@alexisabril.com>
-Rob Morgan <robbym@gmail.com>
-John Firebaugh <john_firebaugh@bigfix.com>
-Sam Bisbee <sam@sbisbee.com>
-Gilmore Davidson <gilmoreorless@gmail.com>
-Brian Brennan <me@brianlovesthings.com>
-Xavier Montillet <xavierm02.net@gmail.com>
-Daniel Pihlstrom <sciolist.se@gmail.com>
-Sahab Yazdani <sahab.yazdani+github@gmail.com>
-avaly <github-com@agachi.name>
-Scott Hughes <hi@scott-hughes.me>
-Mike Sherov <mike.sherov@gmail.com>
-Greg Hazel <ghazel@gmail.com>
-Schalk Neethling <schalk@ossreleasefeed.com>
-Denis Knauf <Denis.Knauf@gmail.com>
-Timo Tijhof <krinklemail@gmail.com>
-Steen Nielsen <swinedk@gmail.com>
-Anton Ryzhov <anton@ryzhov.me>
-Shi Chuan <shichuanr@gmail.com>
-Berker Peksag <berker.peksag@gmail.com>
-Toby Brain <tobyb@freshview.com>
-Matt Mueller <mattmuelle@gmail.com>
-Justin <drakefjustin@gmail.com>
-Daniel Herman <daniel.c.herman@gmail.com>
-Oleg Gaidarenko <markelog@gmail.com>
-Richard Gibson <richard.gibson@gmail.com>
-Rafaël Blais Masson <rafbmasson@gmail.com>
-cmc3cn <59194618@qq.com>
-Joe Presbrey <presbrey@gmail.com>
-Sindre Sorhus <sindresorhus@gmail.com>
-Arne de Bree <arne@bukkie.nl>
-Vladislav Zarakovsky <vlad.zar@gmail.com>
-Andrew E Monat <amonat@gmail.com>
-Oskari <admin@o-programs.com>
-Joao Henrique de Andrade Bruni <joaohbruni@yahoo.com.br>
-tsinha <tsinha@Anthonys-MacBook-Pro.local>
-Matt Farmer <matt@frmr.me>
-Trey Hunner <treyhunner@gmail.com>
-Jason Moon <jmoon@socialcast.com>
-Jeffery To <jeffery.to@gmail.com>
-Kris Borchers <kris.borchers@gmail.com>
-Vladimir Zhuravlev <private.face@gmail.com>
-Jacob Thornton <jacobthornton@gmail.com>
-Chad Killingsworth <chadkillingsworth@missouristate.edu>
-Nowres Rafid <nowres.rafed@gmail.com>
-David Benjamin <davidben@mit.edu>
-Uri Gilad <antishok@gmail.com>
-Chris Faulkner <thefaulkner@gmail.com>
-Elijah Manor <elijah.manor@gmail.com>
-Daniel Chatfield <chatfielddaniel@gmail.com>
-Nikita Govorov <nikita.govorov@gmail.com>
-Wesley Walser <waw325@gmail.com>
-Mike Pennisi <mike@mikepennisi.com>
-Markus Staab <markus.staab@redaxo.de>
-Dave Riddle <david@joyvuu.com>
-Callum Macrae <callum@lynxphp.com>
-Benjamin Truyman <bentruyman@gmail.com>
-James Huston <james@jameshuston.net>
-Erick Ruiz de Chávez <erickrdch@gmail.com>
-David Bonner <dbonner@cogolabs.com>
-Akintayo Akinwunmi <aakinwunmi@judge.com>
-MORGAN <morgan@morgangraphics.com>
-Ismail Khair <ismail.khair@gmail.com>
-Carl Danley <carldanley@gmail.com>
-Mike Petrovich <michael.c.petrovich@gmail.com>
-Greg Lavallee <greglavallee@wapolabs.com>
-Daniel Gálvez <dgalvez@editablething.com>
-Sai Lung Wong <sai.wong@huffingtonpost.com>
-Tom H Fuertes <TomFuertes@gmail.com>
-Roland Eckl <eckl.roland@googlemail.com>
-Jay Merrifield <fracmak@gmail.com>
-Allen J Schmidt Jr <cobrasoft@gmail.com>
-Jonathan Sampson <jjdsampson@gmail.com>
-Marcel Greter <marcel.greter@ocbnet.ch>
-Matthias Jäggli <matthias.jaeggli@gmail.com>
-David Fox <dfoxinator@gmail.com>
-Yiming He <yiminghe@gmail.com>
-Devin Cooper <cooper.semantics@gmail.com>
-Paul Ramos <paul.b.ramos@gmail.com>
-Rod Vagg <rod@vagg.org>
-Bennett Sorbo <bsorbo@gmail.com>
-Sebastian Burkhard <sebi.burkhard@gmail.com>
-Zachary Adam Kaplan <razic@viralkitty.com>
-nanto_vi <nanto@moon.email.ne.jp>
-nanto <nanto@moon.email.ne.jp>
-Danil Somsikov <danilasomsikov@gmail.com>
-Ryunosuke SATO <tricknotes.rs@gmail.com>
-Jean Boussier <jean.boussier@gmail.com>
-Adam Coulombe <me@adam.co>
-Andrew Plummer <plummer.andrew@gmail.com>
-Mark Raddatz <mraddatz@gmail.com>
-Isaac Z. Schlueter <i@izs.me>
-Karl Sieburg <ksieburg@yahoo.com>
-Pascal Borreli <pascal@borreli.com>
-Nguyen Phuc Lam <ruado1987@gmail.com>
-Dmitry Gusev <dmitry.gusev@gmail.com>
-Michał Gołębiowski <m.goleb@gmail.com>
-Li Xudong <istonelee@gmail.com>
-Steven Benner <admin@stevenbenner.com>
-Tom H Fuertes <tomfuertes@gmail.com>
-Renato Oliveira dos Santos <ros3@cin.ufpe.br>
-ros3cin <ros3@cin.ufpe.br>
-Jason Bedard <jason+jquery@jbedard.ca>
-Kyle Robinson Young <kyle@dontkry.com>
-Chris Talkington <chris@talkingtontech.com>
-Eddie Monge <eddie@eddiemonge.com>
-Terry Jones <terry@jon.es>
-Jason Merino <jasonmerino@gmail.com>
-Jeremy Dunck <jdunck@gmail.com>
-Chris Price <price.c@gmail.com>
-Guy Bedford <guybedford@gmail.com>
-Amey Sakhadeo <me@ameyms.com>
-Mike Sidorov <mikes.ekb@gmail.com>
-Anthony Ryan <anthonyryan1@gmail.com>
-Dominik D. Geyer <dominik.geyer@gmail.com>
-George Kats <katsgeorgeek@gmail.com>
-Lihan Li <frankieteardrop@gmail.com>
-Ronny Springer <springer.ronny@gmail.com>
-Chris Antaki <ChrisAntaki@gmail.com>
-Marian Sollmann <marian.sollmann@cargomedia.ch>
-njhamann <njhamann@gmail.com>
-Ilya Kantor <iliakan@gmail.com>
-David Hong <d.hong@me.com>
-John Paul <john@johnkpaul.com>
-Jakob Stoeck <jakob@pokermania.de>
-Christopher Jones <chris@cjqed.com>
-Forbes Lindesay <forbes@lindesay.co.uk>
-S. Andrew Sheppard <andrew@wq.io>
-Leonardo Balter <leonardo.balter@gmail.com>
-Roman Reiß <me@silverwind.io>
-Benjy Cui <benjytrys@gmail.com>
-Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com>
-John Hoven <hovenj@gmail.com>
-Philip Jägenstedt <philip@foolip.org>
-Christian Kosmowski <ksmwsk@gmail.com>
-Liang Peng <poppinlp@gmail.com>
-TJ VanToll <tj.vantoll@gmail.com>
-Senya Pugach <upisfree@outlook.com>
-Aurelio De Rosa <aurelioderosa@gmail.com>
-Nazar Mokrynskyi <nazar@mokrynskyi.com>
-Amit Merchant <bullredeyes@gmail.com>
-Jason Bedard <jason+github@jbedard.ca>
-Arthur Verschaeve <contact@arthurverschaeve.be>
-Dan Hart <danhart@notonthehighstreet.com>
-Bin Xin <rhyzix@gmail.com>
-David Corbacho <davidcorbacho@gmail.com>
-Veaceslav Grimalschi <grimalschi@yandex.ru>
-Daniel Husar <dano.husar@gmail.com>
-Frederic Hemberger <mail@frederic-hemberger.de>
-Ben Toews <mastahyeti@gmail.com>
-Aditya Raghavan <araghavan3@gmail.com>
-Victor Homyakov <vkhomyackov@gmail.com>
-Shivaji Varma <contact@shivajivarma.com>
-Nicolas HENRY <icewil@gmail.com>
-Anne-Gaelle Colom <coloma@westminster.ac.uk>
-George Mauer <gmauer@gmail.com>
-Leonardo Braga <leonardo.braga@gmail.com>
-Stephen Edgar <stephen@netweb.com.au>
-Thomas Tortorini <thomastortorini@gmail.com>
-Winston Howes <winstonhowes@gmail.com>
-Jon Hester <jon.d.hester@gmail.com>
-Alexander O'Mara <me@alexomara.com>
-Bastian Buchholz <buchholz.bastian@googlemail.com>
-Arthur Stolyar <nekr.fabula@gmail.com>
-Calvin Metcalf <calvin.metcalf@gmail.com>
-Mu Haibao <mhbseal@163.com>
-Richard McDaniel <rm0026@uah.edu>
-Chris Rebert <github@rebertia.com>
-Gabriel Schulhof <gabriel.schulhof@intel.com>
-Gilad Peleg <giladp007@gmail.com>
-Martin Naumann <martin@geekonaut.de>
-Marek Lewandowski <m.lewandowski@cksource.com>
-Bruno PeÌrel <brunoperel@gmail.com>
-Reed Loden <reed@reedloden.com>
-Daniel Nill <daniellnill@gmail.com>
-Yongwoo Jeon <yongwoo.jeon@navercorp.com>
-Sean Henderson <seanh.za@gmail.com>
-Richard Kraaijenhagen <stdin+git@riichard.com>
-Connor Atherton <c.liam.atherton@gmail.com>
-Gary Ye <garysye@gmail.com>
-Christian Grete <webmaster@christiangrete.com>
-Liza Ramo <liza.h.ramo@gmail.com>
-Julian Alexander Murillo <julian.alexander.murillo@gmail.com>
-Joelle Fleurantin <joasqueeniebee@gmail.com>
-Jun Sun <klsforever@gmail.com>
-Devin Wilson <dwilson6.github@gmail.com>
-Todor Prikumov <tono_pr@abv.bg>
-Zack Hall <zackhall@outlook.com>
diff --git a/ecomp-portal-FE/client/bower_components/jquery/LICENSE.txt b/ecomp-portal-FE/client/bower_components/jquery/LICENSE.txt
deleted file mode 100644
index 5312a4c8..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/LICENSE.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-Copyright jQuery Foundation and other contributors, https://jquery.org/
-
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/jquery/jquery
-
-The following license applies to all parts of this software except as
-documented below:
-
-====
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-====
-
-All files located in the node_modules and external directories are
-externally maintained libraries used by this software which have their
-own licenses; we recommend you read them, as their terms may differ from
-the terms above.
diff --git a/ecomp-portal-FE/client/bower_components/jquery/README.md b/ecomp-portal-FE/client/bower_components/jquery/README.md
deleted file mode 100644
index ba3174a7..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/README.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# jQuery
-
-> jQuery is a fast, small, and feature-rich JavaScript library.
-
-For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/).
-For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).
-
-## Including jQuery
-
-Below are some of the most common ways to include jQuery.
-
-### Browser
-
-#### Script tag
-
-```html
-<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
-```
-
-#### Babel
-
-[Babel](http://babeljs.io/) is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively.
-
-```js
-import $ from "jquery";
-```
-
-#### Browserify/Webpack
-
-There are several ways to use [Browserify](http://browserify.org/) and [Webpack](https://webpack.github.io/). For more information on using these tools, please refer to the corresponding project's documention. In the script, including jQuery will usually look like this...
-
-```js
-var $ = require("jquery");
-```
-
-#### AMD (Asynchronous Module Definition)
-
-AMD is a module format built for the browser. For more information, we recommend [require.js' documentation](http://requirejs.org/docs/whyamd.html).
-
-```js
-define(["jquery"], function($) {
-
-});
-```
-
-### Node
-
-To include jQuery in [Node](nodejs.org), first install with npm.
-
-```sh
-npm install jquery
-```
-
-For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/tmpvar/jsdom). This can be useful for testing purposes.
-
-```js
-require("jsdom").env("", function(err, window) {
- if (err) {
- console.error(err);
- return;
- }
-
- var $ = require("jquery")(window);
-});
-```
diff --git a/ecomp-portal-FE/client/bower_components/jquery/bower.json b/ecomp-portal-FE/client/bower_components/jquery/bower.json
deleted file mode 100644
index 95798d5a..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/bower.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "jquery",
- "main": "dist/jquery.js",
- "license": "MIT",
- "ignore": [
- "package.json"
- ],
- "keywords": [
- "jquery",
- "javascript",
- "browser",
- "library"
- ]
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.js b/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.js
deleted file mode 100644
index 5c3c456a..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.js
+++ /dev/null
@@ -1,9814 +0,0 @@
-/*!
- * jQuery JavaScript Library v2.2.4
- * http://jquery.com/
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2016-05-20T17:23Z
- */
-
-(function( global, factory ) {
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Support: Firefox 18+
-// Can't be in strict mode, several libs including ASP.NET trace
-// the stack via arguments.caller.callee and Firefox dies if
-// you try to trace through "use strict" call chains. (#13335)
-//"use strict";
-var arr = [];
-
-var document = window.document;
-
-var slice = arr.slice;
-
-var concat = arr.concat;
-
-var push = arr.push;
-
-var indexOf = arr.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var support = {};
-
-
-
-var
- version = "2.2.4",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
-
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- },
-
- // Support: Android<4.1
- // Make sure we trim BOM and NBSP
- rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
-
- // Matches dashed string for camelizing
- rmsPrefix = /^-ms-/,
- rdashAlpha = /-([\da-z])/gi,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn = jQuery.prototype = {
-
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // Start with an empty selector
- selector: "",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num != null ?
-
- // Return just the one element from the set
- ( num < 0 ? this[ num + this.length ] : this[ num ] ) :
-
- // Return all the elements in a clean array
- slice.call( this );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
- ret.context = this.context;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- each: function( callback ) {
- return jQuery.each( this, callback );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map( this, function( elem, i ) {
- return callback.call( elem, i, elem );
- } ) );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor();
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: arr.sort,
- splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[ 0 ] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // Skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
- target = {};
- }
-
- // Extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
-
- // Only deal with non-null/undefined values
- if ( ( options = arguments[ i ] ) != null ) {
-
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
-
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray( src ) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject( src ) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend( {
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- isFunction: function( obj ) {
- return jQuery.type( obj ) === "function";
- },
-
- isArray: Array.isArray,
-
- isWindow: function( obj ) {
- return obj != null && obj === obj.window;
- },
-
- isNumeric: function( obj ) {
-
- // parseFloat NaNs numeric-cast false positives (null|true|false|"")
- // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
- // subtraction forces infinities to NaN
- // adding 1 corrects loss of precision from parseFloat (#15100)
- var realStringObj = obj && obj.toString();
- return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0;
- },
-
- isPlainObject: function( obj ) {
- var key;
-
- // Not plain objects:
- // - Any object or value whose internal [[Class]] property is not "[object Object]"
- // - DOM nodes
- // - window
- if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call( obj, "constructor" ) &&
- !hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) {
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- var name;
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- type: function( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
-
- // Support: Android<4.0, iOS<6 (functionish RegExp)
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
- },
-
- // Evaluates a script in a global context
- globalEval: function( code ) {
- var script,
- indirect = eval;
-
- code = jQuery.trim( code );
-
- if ( code ) {
-
- // If the code includes a valid, prologue position
- // strict mode pragma, execute code by injecting a
- // script tag into the document.
- if ( code.indexOf( "use strict" ) === 1 ) {
- script = document.createElement( "script" );
- script.text = code;
- document.head.appendChild( script ).parentNode.removeChild( script );
- } else {
-
- // Otherwise, avoid the DOM node creation, insertion
- // and removal by using an indirect global eval
-
- indirect( code );
- }
- }
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Support: IE9-11+
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
- },
-
- each: function( obj, callback ) {
- var length, i = 0;
-
- if ( isArrayLike( obj ) ) {
- length = obj.length;
- for ( ; i < length; i++ ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- }
-
- return obj;
- },
-
- // Support: Android<4.1
- trim: function( text ) {
- return text == null ?
- "" :
- ( text + "" ).replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArrayLike( Object( arr ) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- return arr == null ? -1 : indexOf.call( arr, elem, i );
- },
-
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- for ( ; j < len; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var length, value,
- i = 0,
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArrayLike( elems ) ) {
- length = elems.length;
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- var tmp, args, proxy;
-
- if ( typeof context === "string" ) {
- tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- args = slice.call( arguments, 2 );
- proxy = function() {
- return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
- return proxy;
- },
-
- now: Date.now,
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-} );
-
-// JSHint would error on this code due to the Symbol not being defined in ES5.
-// Defining this global in .jshintrc would create a danger of using the global
-// unguarded in another place, it seems safer to just disable JSHint for these
-// three lines.
-/* jshint ignore: start */
-if ( typeof Symbol === "function" ) {
- jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-/* jshint ignore: end */
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( i, name ) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
- // Support: iOS 8.2 (not reproducible in simulator)
- // `in` check used to prevent JIT error (gh-2145)
- // hasOwn isn't used here due to false negatives
- // regarding Nodelist length in IE
- var length = !!obj && "length" in obj && obj.length,
- type = jQuery.type( obj );
-
- if ( type === "function" || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v2.2.1
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2015-10-17
- */
-(function( window ) {
-
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + 1 * new Date(),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // General-purpose constants
- MAX_NEGATIVE = 1 << 31,
-
- // Instance methods
- hasOwn = ({}).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- push_native = arr.push,
- push = arr.push,
- slice = arr.slice,
- // Use a stripped-down indexOf as it's faster than native
- // http://jsperf.com/thor-indexof-vs-for/5
- indexOf = function( list, elem ) {
- var i = 0,
- len = list.length;
- for ( ; i < len; i++ ) {
- if ( list[i] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
-
- // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
- identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
- // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
- "*\\]",
-
- pseudos = ":(" + identifier + ")(?:\\((" +
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rwhitespace = new RegExp( whitespace + "+", "g" ),
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
-
- rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + identifier + ")" ),
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
- "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
- "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
- whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
- rescape = /'|\\/g,
-
- // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
- funescape = function( _, escaped, escapedWhitespace ) {
- var high = "0x" + escaped - 0x10000;
- // NaN means non-codepoint
- // Support: Firefox<24
- // Workaround erroneous numeric interpretation of +"0x"
- return high !== high || escapedWhitespace ?
- escaped :
- high < 0 ?
- // BMP codepoint
- String.fromCharCode( high + 0x10000 ) :
- // Supplemental Plane codepoint (surrogate pair)
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- },
-
- // Used for iframes
- // See setDocument()
- // Removing the function wrapper causes a "Permission Denied"
- // error in IE
- unloadHandler = function() {
- setDocument();
- };
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- (arr = slice.call( preferredDoc.childNodes )),
- preferredDoc.childNodes
- );
- // Support: Android<4.0
- // Detect silently failing push.apply
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- push_native.apply( target, slice.call(els) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
- // Can't trust NodeList.length
- while ( (target[j++] = els[i++]) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var m, i, elem, nid, nidselect, match, groups, newSelector,
- newContext = context && context.ownerDocument,
-
- // nodeType defaults to 9, since context defaults to document
- nodeType = context ? context.nodeType : 9;
-
- results = results || [];
-
- // Return early from calls with invalid selector or context
- if ( typeof selector !== "string" || !selector ||
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
- return results;
- }
-
- // Try to shortcut find operations (as opposed to filters) in HTML documents
- if ( !seed ) {
-
- if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
- setDocument( context );
- }
- context = context || document;
-
- if ( documentIsHTML ) {
-
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
- // (excepting DocumentFragment context, where the methods don't exist)
- if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
-
- // ID selector
- if ( (m = match[1]) ) {
-
- // Document context
- if ( nodeType === 9 ) {
- if ( (elem = context.getElementById( m )) ) {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
-
- // Element context
- } else {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( newContext && (elem = newContext.getElementById( m )) &&
- contains( context, elem ) &&
- elem.id === m ) {
-
- results.push( elem );
- return results;
- }
- }
-
- // Type selector
- } else if ( match[2] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Class selector
- } else if ( (m = match[3]) && support.getElementsByClassName &&
- context.getElementsByClassName ) {
-
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // Take advantage of querySelectorAll
- if ( support.qsa &&
- !compilerCache[ selector + " " ] &&
- (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
-
- if ( nodeType !== 1 ) {
- newContext = context;
- newSelector = selector;
-
- // qSA looks outside Element context, which is not what we want
- // Thanks to Andrew Dupont for this workaround technique
- // Support: IE <=8
- // Exclude object elements
- } else if ( context.nodeName.toLowerCase() !== "object" ) {
-
- // Capture the context ID, setting it first if necessary
- if ( (nid = context.getAttribute( "id" )) ) {
- nid = nid.replace( rescape, "\\$&" );
- } else {
- context.setAttribute( "id", (nid = expando) );
- }
-
- // Prefix every selector in the list
- groups = tokenize( selector );
- i = groups.length;
- nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
- while ( i-- ) {
- groups[i] = nidselect + " " + toSelector( groups[i] );
- }
- newSelector = groups.join( "," );
-
- // Expand context for sibling selectors
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
- context;
- }
-
- if ( newSelector ) {
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch ( qsaError ) {
- } finally {
- if ( nid === expando ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return (cache[ key + " " ] = value);
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created div and expects a boolean result
- */
-function assert( fn ) {
- var div = document.createElement("div");
-
- try {
- return !!fn( div );
- } catch (e) {
- return false;
- } finally {
- // Remove from its parent by default
- if ( div.parentNode ) {
- div.parentNode.removeChild( div );
- }
- // release memory in IE
- div = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split("|"),
- i = arr.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[i] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- ( ~b.sourceIndex || MAX_NEGATIVE ) -
- ( ~a.sourceIndex || MAX_NEGATIVE );
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( (cur = cur.nextSibling) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction(function( argument ) {
- argument = +argument;
- return markFunction(function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ (j = matchIndexes[i]) ] ) {
- seed[j] = !(matches[j] = seed[j]);
- }
- }
- });
- });
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && (elem.ownerDocument || elem).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare, parent,
- doc = node ? node.ownerDocument || node : preferredDoc;
-
- // Return early if doc is invalid or already selected
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Update global variables
- document = doc;
- docElem = document.documentElement;
- documentIsHTML = !isXML( document );
-
- // Support: IE 9-11, Edge
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
- if ( (parent = document.defaultView) && parent.top !== parent ) {
- // Support: IE 11
- if ( parent.addEventListener ) {
- parent.addEventListener( "unload", unloadHandler, false );
-
- // Support: IE 9 - 10 only
- } else if ( parent.attachEvent ) {
- parent.attachEvent( "onunload", unloadHandler );
- }
- }
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties
- // (excepting IE8 booleans)
- support.attributes = assert(function( div ) {
- div.className = "i";
- return !div.getAttribute("className");
- });
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert(function( div ) {
- div.appendChild( document.createComment("") );
- return !div.getElementsByTagName("*").length;
- });
-
- // Support: IE<9
- support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert(function( div ) {
- docElem.appendChild( div ).id = expando;
- return !document.getElementsByName || !document.getElementsByName( expando ).length;
- });
-
- // ID find and filter
- if ( support.getById ) {
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var m = context.getElementById( id );
- return m ? [ m ] : [];
- }
- };
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute("id") === attrId;
- };
- };
- } else {
- // Support: IE6/7
- // getElementById is not reliable as a find shortcut
- delete Expr.find["ID"];
-
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== "undefined" &&
- elem.getAttributeNode("id");
- return node && node.value === attrId;
- };
- };
- }
-
- // Tag
- Expr.find["TAG"] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( tag );
-
- // DocumentFragment nodes don't have gEBTN
- } else if ( support.qsa ) {
- return context.querySelectorAll( tag );
- }
- } :
-
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
- // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( (elem = results[i++]) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See http://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert(function( div ) {
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // http://bugs.jquery.com/ticket/12359
- docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
- "<select id='" + expando + "-\r\\' msallowcapture=''>" +
- "<option selected=''></option></select>";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( div.querySelectorAll("[msallowcapture^='']").length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !div.querySelectorAll("[selected]").length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
- if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
- rbuggyQSA.push("~=");
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":checked").length ) {
- rbuggyQSA.push(":checked");
- }
-
- // Support: Safari 8+, iOS 8+
- // https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibing-combinator selector` fails
- if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
- rbuggyQSA.push(".#.+[+~]");
- }
- });
-
- assert(function( div ) {
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = document.createElement("input");
- input.setAttribute( "type", "hidden" );
- div.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( div.querySelectorAll("[name=d]").length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":enabled").length ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Opera 10-11 does not throw on post-comma invalid pseudos
- div.querySelectorAll("*,:x");
- rbuggyQSA.push(",.*:");
- });
- }
-
- if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector) )) ) {
-
- assert(function( div ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( div, "div" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( div, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- });
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully self-exclusive
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ));
- } :
- function( a, b ) {
- if ( b ) {
- while ( (b = b.parentNode) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
- return -1;
- }
- if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
- return a === document ? -1 :
- b === document ? 1 :
- aup ? -1 :
- bup ? 1 :
- sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( (cur = cur.parentNode) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( (cur = cur.parentNode) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[i] === bp[i] ) {
- i++;
- }
-
- return i ?
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[i], bp[i] ) :
-
- // Otherwise nodes in our document sort first
- ap[i] === preferredDoc ? -1 :
- bp[i] === preferredDoc ? 1 :
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- // Make sure that attribute selectors are quoted
- expr = expr.replace( rattributeQuotes, "='$1']" );
-
- if ( support.matchesSelector && documentIsHTML &&
- !compilerCache[ expr + " " ] &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch (e) {}
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
- // Set document vars if needed
- if ( ( context.ownerDocument || context ) !== document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- (val = elem.getAttributeNode(name)) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( (elem = results[i++]) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
- // If no nodeType, this is expected to be an array
- while ( (node = elem[i++]) ) {
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[1] = match[1].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
-
- if ( match[2] === "~=" ) {
- match[3] = " " + match[3] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[1] = match[1].toLowerCase();
-
- if ( match[1].slice( 0, 3 ) === "nth" ) {
- // nth-* requires argument
- if ( !match[3] ) {
- Sizzle.error( match[0] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
- match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[3] ) {
- Sizzle.error( match[0] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[6] && match[2];
-
- if ( matchExpr["CHILD"].test( match[0] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[3] ) {
- match[2] = match[4] || match[5] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
- // Get excess from tokenize (recursively)
- (excess = tokenize( unquoted, true )) &&
- // advance to the next closing parenthesis
- (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
- // excess is a negative index
- match[0] = match[0].slice( 0, excess );
- match[2] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() { return true; } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
- classCache( className, function( elem ) {
- return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
- });
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- };
- },
-
- "CHILD": function( type, what, argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, context, xml ) {
- var cache, uniqueCache, outerCache, node, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType,
- diff = false;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( (node = node[ dir ]) ) {
- if ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) {
-
- return false;
- }
- }
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
-
- // Seek `elem` from a previously-cached index
-
- // ...in a gzip-friendly way
- node = parent;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex && cache[ 2 ];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( (node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- } else {
- // Use previously-cached element index if available
- if ( useCache ) {
- // ...in a gzip-friendly way
- node = elem;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex;
- }
-
- // xml :nth-child(...)
- // or :nth-last-child(...) or :nth(-last)?-of-type(...)
- if ( diff === false ) {
- // Use the same loop as above to seek `elem` from the start
- while ( (node = ++nodeIndex && node && node[ dir ] ||
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- if ( ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) &&
- ++diff ) {
-
- // Cache the index of each encountered element
- if ( useCache ) {
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- uniqueCache[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction(function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf( seed, matched[i] );
- seed[ idx ] = !( matches[ idx ] = matched[i] );
- }
- }) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
- // Potentially complex pseudos
- "not": markFunction(function( selector ) {
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction(function( seed, matches, context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( (elem = unmatched[i]) ) {
- seed[i] = !(matches[i] = elem);
- }
- }
- }) :
- function( elem, context, xml ) {
- input[0] = elem;
- matcher( input, null, xml, results );
- // Don't keep the element (issue #299)
- input[0] = null;
- return !results.pop();
- };
- }),
-
- "has": markFunction(function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- }),
-
- "contains": markFunction(function( text ) {
- text = text.replace( runescape, funescape );
- return function( elem ) {
- return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
- };
- }),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
- // lang value must be a valid identifier
- if ( !ridentifier.test(lang || "") ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( (elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
- return false;
- };
- }),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
- },
-
- // Boolean properties
- "enabled": function( elem ) {
- return elem.disabled === false;
- },
-
- "disabled": function( elem ) {
- return elem.disabled === true;
- },
-
- "checked": function( elem ) {
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
- },
-
- "selected": function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos["empty"]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo(function() {
- return [ 0 ];
- }),
-
- "last": createPositionalPseudo(function( matchIndexes, length ) {
- return [ length - 1 ];
- }),
-
- "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- }),
-
- "even": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "odd": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- })
- }
-};
-
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || (match = rcomma.exec( soFar )) ) {
- if ( match ) {
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[0].length ) || soFar;
- }
- groups.push( (tokens = []) );
- }
-
- matched = false;
-
- // Combinators
- if ( (match = rcombinators.exec( soFar )) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- // Cast descendant combinators to space
- type: match[0].replace( rtrim, " " )
- });
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
- (match = preFilters[ type ]( match ))) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- type: type,
- matches: match
- });
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[i].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- checkNonElements = base && dir === "parentNode",
- doneName = done++;
-
- return combinator.first ?
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, uniqueCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
- if ( xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || (elem[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
-
- if ( (oldCache = uniqueCache[ dir ]) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return (newCache[ 2 ] = oldCache[ 2 ]);
- } else {
- // Reuse newcache so results back-propagate to previous elements
- uniqueCache[ dir ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
- return true;
- }
- }
- }
- }
- }
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[i]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[0];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[i], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( (elem = unmatched[i]) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction(function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( (elem = temp[i]) ) {
- matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) ) {
- // Restore matcherIn since elem is not yet a final match
- temp.push( (matcherIn[i] = elem) );
- }
- }
- postFinder( null, (matcherOut = []), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) &&
- (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
-
- seed[temp] = !(results[temp] = elem);
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- });
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[0].type ],
- implicitRelative = leadingRelative || Expr.relative[" "],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- (checkContext = context).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
- // Avoid hanging onto element (issue #299)
- checkContext = null;
- return ret;
- } ];
-
- for ( ; i < len; i++ ) {
- if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
- matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
- } else {
- matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[j].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
- ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
- len = elems.length;
-
- if ( outermost ) {
- outermostContext = context === document || context || outermost;
- }
-
- // Add elements passing elementMatchers directly to results
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
- for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
- if ( !context && elem.ownerDocument !== document ) {
- setDocument( elem );
- xml = !documentIsHTML;
- }
- while ( (matcher = elementMatchers[j++]) ) {
- if ( matcher( elem, context || document, xml) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
- // They will have gone through all possible matchers
- if ( (elem = !matcher && elem) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // `i` is now the count of elements visited above, and adding it to `matchedCount`
- // makes the latter nonnegative.
- matchedCount += i;
-
- // Apply set filters to unmatched elements
- // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
- // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
- // no element matchers and no seed.
- // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
- // case, which will result in a "00" `matchedCount` that differs from `i` but is also
- // numerically zero.
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( (matcher = setMatchers[j++]) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !(unmatched[i] || setMatched[i]) ) {
- setMatched[i] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[i] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( (selector = compiled.selector || selector) );
-
- results = results || [];
-
- // Try to minimize operations if there is only one selector in the list and no seed
- // (the latter of which guarantees us context)
- if ( match.length === 1 ) {
-
- // Reduce context if the leading compound selector is an ID
- tokens = match[0] = match[0].slice( 0 );
- if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
- support.getById && context.nodeType === 9 && documentIsHTML &&
- Expr.relative[ tokens[1].type ] ) {
-
- context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[i];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ (type = token.type) ] ) {
- break;
- }
- if ( (find = Expr.find[ type ]) ) {
- // Search, expanding context for leading sibling combinators
- if ( (seed = find(
- token.matches[0].replace( runescape, funescape ),
- rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
- )) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert(function( div1 ) {
- // Should return 1, but returns 4 (following)
- return div1.compareDocumentPosition( document.createElement("div") ) & 1;
-});
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert(function( div ) {
- div.innerHTML = "<a href='#'></a>";
- return div.firstChild.getAttribute("href") === "#" ;
-}) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- });
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert(function( div ) {
- div.innerHTML = "<input/>";
- div.firstChild.setAttribute( "value", "" );
- return div.firstChild.getAttribute( "value" ) === "";
-}) ) {
- addHandle( "value", function( elem, name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- });
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert(function( div ) {
- return div.getAttribute("disabled") == null;
-}) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- (val = elem.getAttributeNode( name )) && val.specified ?
- val.value :
- null;
- }
- });
-}
-
-return Sizzle;
-
-})( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-
-var dir = function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
-};
-
-
-var siblings = function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
-};
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-var rsingleTag = ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
-
-
-
-var risSimple = /^.[^:#\[\.,]*$/;
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- /* jshint -W018 */
- return !!qualifier.call( elem, i, elem ) !== not;
- } );
-
- }
-
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- } );
-
- }
-
- if ( typeof qualifier === "string" ) {
- if ( risSimple.test( qualifier ) ) {
- return jQuery.filter( qualifier, elements, not );
- }
-
- qualifier = jQuery.filter( qualifier, elements );
- }
-
- return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
- } );
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 && elem.nodeType === 1 ?
- jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
- jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- } ) );
-};
-
-jQuery.fn.extend( {
- find: function( selector ) {
- var i,
- len = this.length,
- ret = [],
- self = this;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- } ) );
- }
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- // Needed because $( selector, context ) becomes $( context ).find( selector )
- ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
- ret.selector = this.selector ? this.selector + " " + selector : selector;
- return ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow( this, selector || [], false ) );
- },
- not: function( selector ) {
- return this.pushStack( winnow( this, selector || [], true ) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-} );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // A simple way to check for HTML strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
-
- init = jQuery.fn.init = function( selector, context, root ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Method init() accepts an alternate rootjQuery
- // so migrate can support jQuery.sub (gh-2101)
- root = root || rootjQuery;
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector[ 0 ] === "<" &&
- selector[ selector.length - 1 ] === ">" &&
- selector.length >= 3 ) {
-
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && ( match[ 1 ] || !context ) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[ 1 ] ) {
- context = context instanceof jQuery ? context[ 0 ] : context;
-
- // Option to run scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[ 1 ],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
-
- // Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[ 2 ] );
-
- // Support: Blackberry 4.6
- // gEBID returns nodes no longer in the document (#6963)
- if ( elem && elem.parentNode ) {
-
- // Inject the element directly into the jQuery object
- this.length = 1;
- this[ 0 ] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || root ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this.context = this[ 0 ] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return root.ready !== undefined ?
- root.ready( selector ) :
-
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- if ( selector.selector !== undefined ) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
- // Methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend( {
- has: function( target ) {
- var targets = jQuery( target, this ),
- l = targets.length;
-
- return this.filter( function() {
- var i = 0;
- for ( ; i < l; i++ ) {
- if ( jQuery.contains( this, targets[ i ] ) ) {
- return true;
- }
- }
- } );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
- jQuery( selectors, context || this.context ) :
- 0;
-
- for ( ; i < l; i++ ) {
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
- // Always skip document fragments
- if ( cur.nodeType < 11 && ( pos ?
- pos.index( cur ) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
- },
-
- // Determine the position of an element within the set
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // Index in selector
- if ( typeof elem === "string" ) {
- return indexOf.call( jQuery( elem ), this[ 0 ] );
- }
-
- // Locate the position of the desired element
- return indexOf.call( this,
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem
- );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.uniqueSort(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter( selector )
- );
- }
-} );
-
-function sibling( cur, dir ) {
- while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
- return cur;
-}
-
-jQuery.each( {
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return siblings( elem.firstChild );
- },
- contents: function( elem ) {
- return elem.contentDocument || jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var matched = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- matched = jQuery.filter( selector, matched );
- }
-
- if ( this.length > 1 ) {
-
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- jQuery.uniqueSort( matched );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- matched.reverse();
- }
- }
-
- return this.pushStack( matched );
- };
-} );
-var rnotwhite = ( /\S+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
- var object = {};
- jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- } );
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- createOptions( options ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
-
- // Last fire value for non-forgettable lists
- memory,
-
- // Flag to know if list was already fired
- fired,
-
- // Flag to prevent firing
- locked,
-
- // Actual callback list
- list = [],
-
- // Queue of execution data for repeatable lists
- queue = [],
-
- // Index of currently firing callback (modified by add/remove as needed)
- firingIndex = -1,
-
- // Fire callbacks
- fire = function() {
-
- // Enforce single-firing
- locked = options.once;
-
- // Execute callbacks for all pending executions,
- // respecting firingIndex overrides and runtime changes
- fired = firing = true;
- for ( ; queue.length; firingIndex = -1 ) {
- memory = queue.shift();
- while ( ++firingIndex < list.length ) {
-
- // Run callback and check for early termination
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
- options.stopOnFalse ) {
-
- // Jump to end and forget the data so .add doesn't re-fire
- firingIndex = list.length;
- memory = false;
- }
- }
- }
-
- // Forget the data if we're done with it
- if ( !options.memory ) {
- memory = false;
- }
-
- firing = false;
-
- // Clean up if we're done firing for good
- if ( locked ) {
-
- // Keep an empty list if we have data for future add calls
- if ( memory ) {
- list = [];
-
- // Otherwise, this object is spent
- } else {
- list = "";
- }
- }
- },
-
- // Actual Callbacks object
- self = {
-
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
-
- // If we have memory from a past run, we should fire after adding
- if ( memory && !firing ) {
- firingIndex = list.length - 1;
- queue.push( memory );
- }
-
- ( function add( args ) {
- jQuery.each( args, function( _, arg ) {
- if ( jQuery.isFunction( arg ) ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
-
- // Inspect recursively
- add( arg );
- }
- } );
- } )( arguments );
-
- if ( memory && !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Remove a callback from the list
- remove: function() {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
-
- // Handle firing indexes
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- } );
- return this;
- },
-
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ?
- jQuery.inArray( fn, list ) > -1 :
- list.length > 0;
- },
-
- // Remove all callbacks from the list
- empty: function() {
- if ( list ) {
- list = [];
- }
- return this;
- },
-
- // Disable .fire and .add
- // Abort any current/pending executions
- // Clear all callbacks and values
- disable: function() {
- locked = queue = [];
- list = memory = "";
- return this;
- },
- disabled: function() {
- return !list;
- },
-
- // Disable .fire
- // Also disable .add unless we have memory (since it would have no effect)
- // Abort any pending executions
- lock: function() {
- locked = queue = [];
- if ( !memory ) {
- list = memory = "";
- }
- return this;
- },
- locked: function() {
- return !!locked;
- },
-
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( !locked ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- queue.push( args );
- if ( !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
-
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-jQuery.extend( {
-
- Deferred: function( func ) {
- var tuples = [
-
- // action, add listener, listener list, final state
- [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],
- [ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ],
- [ "notify", "progress", jQuery.Callbacks( "memory" ) ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- then: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
- return jQuery.Deferred( function( newDefer ) {
- jQuery.each( tuples, function( i, tuple ) {
- var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
-
- // deferred[ done | fail | progress ] for forwarding actions to newDefer
- deferred[ tuple[ 1 ] ]( function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise()
- .progress( newDefer.notify )
- .done( newDefer.resolve )
- .fail( newDefer.reject );
- } else {
- newDefer[ tuple[ 0 ] + "With" ](
- this === promise ? newDefer.promise() : this,
- fn ? [ returned ] : arguments
- );
- }
- } );
- } );
- fns = null;
- } ).promise();
- },
-
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Keep pipe for back-compat
- promise.pipe = promise.then;
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 3 ];
-
- // promise[ done | fail | progress ] = list.add
- promise[ tuple[ 1 ] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add( function() {
-
- // state = [ resolved | rejected ]
- state = stateString;
-
- // [ reject_list | resolve_list ].disable; progress_list.lock
- }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
- }
-
- // deferred[ resolve | reject | notify ]
- deferred[ tuple[ 0 ] ] = function() {
- deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments );
- return this;
- };
- deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
- } );
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( subordinate /* , ..., subordinateN */ ) {
- var i = 0,
- resolveValues = slice.call( arguments ),
- length = resolveValues.length,
-
- // the count of uncompleted subordinates
- remaining = length !== 1 ||
- ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
-
- // the master Deferred.
- // If resolveValues consist of only a single Deferred, just use that.
- deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
-
- // Update function for both resolve and progress values
- updateFunc = function( i, contexts, values ) {
- return function( value ) {
- contexts[ i ] = this;
- values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( values === progressValues ) {
- deferred.notifyWith( contexts, values );
- } else if ( !( --remaining ) ) {
- deferred.resolveWith( contexts, values );
- }
- };
- },
-
- progressValues, progressContexts, resolveContexts;
-
- // Add listeners to Deferred subordinates; treat others as resolved
- if ( length > 1 ) {
- progressValues = new Array( length );
- progressContexts = new Array( length );
- resolveContexts = new Array( length );
- for ( ; i < length; i++ ) {
- if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
- resolveValues[ i ].promise()
- .progress( updateFunc( i, progressContexts, progressValues ) )
- .done( updateFunc( i, resolveContexts, resolveValues ) )
- .fail( deferred.reject );
- } else {
- --remaining;
- }
- }
- }
-
- // If we're not waiting on anything, resolve the master
- if ( !remaining ) {
- deferred.resolveWith( resolveContexts, resolveValues );
- }
-
- return deferred.promise();
- }
-} );
-
-
-// The deferred used on DOM ready
-var readyList;
-
-jQuery.fn.ready = function( fn ) {
-
- // Add the callback
- jQuery.ready.promise().done( fn );
-
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.triggerHandler ) {
- jQuery( document ).triggerHandler( "ready" );
- jQuery( document ).off( "ready" );
- }
- }
-} );
-
-/**
- * The ready event handler and self cleanup method
- */
-function completed() {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
- jQuery.ready();
-}
-
-jQuery.ready.promise = function( obj ) {
- if ( !readyList ) {
-
- readyList = jQuery.Deferred();
-
- // Catch cases where $(document).ready() is called
- // after the browser event has already occurred.
- // Support: IE9-10 only
- // Older IE sometimes signals "interactive" too soon
- if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
- } else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
- }
- }
- return readyList.promise( obj );
-};
-
-// Kick off the DOM ready check even if the user does not
-jQuery.ready.promise();
-
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- len = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( jQuery.type( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !jQuery.isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
-
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < len; i++ ) {
- fn(
- elems[ i ], key, raw ?
- value :
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
- );
- }
- }
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- len ? fn( elems[ 0 ], key ) : emptyGet;
-};
-var acceptData = function( owner ) {
-
- // Accepts only:
- // - Node
- // - Node.ELEMENT_NODE
- // - Node.DOCUMENT_NODE
- // - Object
- // - Any
- /* jshint -W018 */
- return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-};
-
-
-
-
-function Data() {
- this.expando = jQuery.expando + Data.uid++;
-}
-
-Data.uid = 1;
-
-Data.prototype = {
-
- register: function( owner, initial ) {
- var value = initial || {};
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable, non-writable property
- // configurability must be true to allow the property to be
- // deleted with the delete operator
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- writable: true,
- configurable: true
- } );
- }
- return owner[ this.expando ];
- },
- cache: function( owner ) {
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( !acceptData( owner ) ) {
- return {};
- }
-
- // Check if the owner object already has a cache
- var value = owner[ this.expando ];
-
- // If not, create one
- if ( !value ) {
- value = {};
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( acceptData( owner ) ) {
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable property
- // configurable must be true to allow the property to be
- // deleted when data is removed
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- configurable: true
- } );
- }
- }
- }
-
- return value;
- },
- set: function( owner, data, value ) {
- var prop,
- cache = this.cache( owner );
-
- // Handle: [ owner, key, value ] args
- if ( typeof data === "string" ) {
- cache[ data ] = value;
-
- // Handle: [ owner, { properties } ] args
- } else {
-
- // Copy the properties one-by-one to the cache object
- for ( prop in data ) {
- cache[ prop ] = data[ prop ];
- }
- }
- return cache;
- },
- get: function( owner, key ) {
- return key === undefined ?
- this.cache( owner ) :
- owner[ this.expando ] && owner[ this.expando ][ key ];
- },
- access: function( owner, key, value ) {
- var stored;
-
- // In cases where either:
- //
- // 1. No key was specified
- // 2. A string key was specified, but no value provided
- //
- // Take the "read" path and allow the get method to determine
- // which value to return, respectively either:
- //
- // 1. The entire cache object
- // 2. The data stored at the key
- //
- if ( key === undefined ||
- ( ( key && typeof key === "string" ) && value === undefined ) ) {
-
- stored = this.get( owner, key );
-
- return stored !== undefined ?
- stored : this.get( owner, jQuery.camelCase( key ) );
- }
-
- // When the key is not a string, or both a key and value
- // are specified, set or extend (existing objects) with either:
- //
- // 1. An object of properties
- // 2. A key and value
- //
- this.set( owner, key, value );
-
- // Since the "set" path can have two possible entry points
- // return the expected data based on which path was taken[*]
- return value !== undefined ? value : key;
- },
- remove: function( owner, key ) {
- var i, name, camel,
- cache = owner[ this.expando ];
-
- if ( cache === undefined ) {
- return;
- }
-
- if ( key === undefined ) {
- this.register( owner );
-
- } else {
-
- // Support array or space separated string of keys
- if ( jQuery.isArray( key ) ) {
-
- // If "name" is an array of keys...
- // When data is initially created, via ("key", "val") signature,
- // keys will be converted to camelCase.
- // Since there is no way to tell _how_ a key was added, remove
- // both plain key and camelCase key. #12786
- // This will only penalize the array argument path.
- name = key.concat( key.map( jQuery.camelCase ) );
- } else {
- camel = jQuery.camelCase( key );
-
- // Try the string as a key before any manipulation
- if ( key in cache ) {
- name = [ key, camel ];
- } else {
-
- // If a key with the spaces exists, use it.
- // Otherwise, create an array by matching non-whitespace
- name = camel;
- name = name in cache ?
- [ name ] : ( name.match( rnotwhite ) || [] );
- }
- }
-
- i = name.length;
-
- while ( i-- ) {
- delete cache[ name[ i ] ];
- }
- }
-
- // Remove the expando if there's no more data
- if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
- // Support: Chrome <= 35-45+
- // Webkit & Blink performance suffers when deleting properties
- // from DOM nodes, so set to undefined instead
- // https://code.google.com/p/chromium/issues/detail?id=378607
- if ( owner.nodeType ) {
- owner[ this.expando ] = undefined;
- } else {
- delete owner[ this.expando ];
- }
- }
- },
- hasData: function( owner ) {
- var cache = owner[ this.expando ];
- return cache !== undefined && !jQuery.isEmptyObject( cache );
- }
-};
-var dataPriv = new Data();
-
-var dataUser = new Data();
-
-
-
-// Implementation Summary
-//
-// 1. Enforce API surface and semantic compatibility with 1.9.x branch
-// 2. Improve the module's maintainability by reducing the storage
-// paths to a single mechanism.
-// 3. Use the same single mechanism to support "private" and "user" data.
-// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-// 5. Avoid exposing implementation details on user objects (eg. expando properties)
-// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /[A-Z]/g;
-
-function dataAttr( elem, key, data ) {
- var name;
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
-
- // Only convert to a number if it doesn't change the string
- +data + "" === data ? +data :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch ( e ) {}
-
- // Make sure we set the data so it isn't changed later
- dataUser.set( elem, key, data );
- } else {
- data = undefined;
- }
- }
- return data;
-}
-
-jQuery.extend( {
- hasData: function( elem ) {
- return dataUser.hasData( elem ) || dataPriv.hasData( elem );
- },
-
- data: function( elem, name, data ) {
- return dataUser.access( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- dataUser.remove( elem, name );
- },
-
- // TODO: Now that all calls to _data and _removeData have been replaced
- // with direct calls to dataPriv methods, these can be deprecated.
- _data: function( elem, name, data ) {
- return dataPriv.access( elem, name, data );
- },
-
- _removeData: function( elem, name ) {
- dataPriv.remove( elem, name );
- }
-} );
-
-jQuery.fn.extend( {
- data: function( key, value ) {
- var i, name, data,
- elem = this[ 0 ],
- attrs = elem && elem.attributes;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = dataUser.get( elem );
-
- if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE11+
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.slice( 5 ) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- dataPriv.set( elem, "hasDataAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each( function() {
- dataUser.set( this, key );
- } );
- }
-
- return access( this, function( value ) {
- var data, camelKey;
-
- // The calling jQuery object (element matches) is not empty
- // (and therefore has an element appears at this[ 0 ]) and the
- // `value` parameter was not undefined. An empty jQuery object
- // will result in `undefined` for elem = this[ 0 ] which will
- // throw an exception if an attempt to read a data cache is made.
- if ( elem && value === undefined ) {
-
- // Attempt to get data from the cache
- // with the key as-is
- data = dataUser.get( elem, key ) ||
-
- // Try to find dashed key if it exists (gh-2779)
- // This is for 2.2.x only
- dataUser.get( elem, key.replace( rmultiDash, "-$&" ).toLowerCase() );
-
- if ( data !== undefined ) {
- return data;
- }
-
- camelKey = jQuery.camelCase( key );
-
- // Attempt to get data from the cache
- // with the key camelized
- data = dataUser.get( elem, camelKey );
- if ( data !== undefined ) {
- return data;
- }
-
- // Attempt to "discover" the data in
- // HTML5 custom data-* attrs
- data = dataAttr( elem, camelKey, undefined );
- if ( data !== undefined ) {
- return data;
- }
-
- // We tried really hard, but the data doesn't exist.
- return;
- }
-
- // Set the data...
- camelKey = jQuery.camelCase( key );
- this.each( function() {
-
- // First, attempt to store a copy or reference of any
- // data that might've been store with a camelCased key.
- var data = dataUser.get( this, camelKey );
-
- // For HTML5 data-* attribute interop, we have to
- // store property names with dashes in a camelCase form.
- // This might not apply to all properties...*
- dataUser.set( this, camelKey, value );
-
- // *... In the case of properties that might _actually_
- // have dashes, we need to also store a copy of that
- // unchanged property.
- if ( key.indexOf( "-" ) > -1 && data !== undefined ) {
- dataUser.set( this, key, value );
- }
- } );
- }, null, value, arguments.length > 1, null, true );
- },
-
- removeData: function( key ) {
- return this.each( function() {
- dataUser.remove( this, key );
- } );
- }
-} );
-
-
-jQuery.extend( {
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = dataPriv.get( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || jQuery.isArray( data ) ) {
- queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // Clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // Not public - generate a queueHooks object, or return the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
- empty: jQuery.Callbacks( "once memory" ).add( function() {
- dataPriv.remove( elem, [ type + "queue", key ] );
- } )
- } );
- }
-} );
-
-jQuery.fn.extend( {
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[ 0 ], type );
- }
-
- return data === undefined ?
- this :
- this.each( function() {
- var queue = jQuery.queue( this, type, data );
-
- // Ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- dequeue: function( type ) {
- return this.each( function() {
- jQuery.dequeue( this, type );
- } );
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
-
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-} );
-var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var isHidden = function( elem, el ) {
-
- // isHidden might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
- return jQuery.css( elem, "display" ) === "none" ||
- !jQuery.contains( elem.ownerDocument, elem );
- };
-
-
-
-function adjustCSS( elem, prop, valueParts, tween ) {
- var adjusted,
- scale = 1,
- maxIterations = 20,
- currentValue = tween ?
- function() { return tween.cur(); } :
- function() { return jQuery.css( elem, prop, "" ); },
- initial = currentValue(),
- unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
- rcssNum.exec( jQuery.css( elem, prop ) );
-
- if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
- // Trust units reported by jQuery.css
- unit = unit || initialInUnit[ 3 ];
-
- // Make sure we update the tween properties later on
- valueParts = valueParts || [];
-
- // Iteratively approximate from a nonzero starting point
- initialInUnit = +initial || 1;
-
- do {
-
- // If previous iteration zeroed out, double until we get *something*.
- // Use string for doubling so we don't accidentally see scale as unchanged below
- scale = scale || ".5";
-
- // Adjust and apply
- initialInUnit = initialInUnit / scale;
- jQuery.style( elem, prop, initialInUnit + unit );
-
- // Update scale, tolerating zero or NaN from tween.cur()
- // Break the loop if scale is unchanged or perfect, or if we've just had enough.
- } while (
- scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
- );
- }
-
- if ( valueParts ) {
- initialInUnit = +initialInUnit || +initial || 0;
-
- // Apply relative offset (+=/-=) if specified
- adjusted = valueParts[ 1 ] ?
- initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
- +valueParts[ 2 ];
- if ( tween ) {
- tween.unit = unit;
- tween.start = initialInUnit;
- tween.end = adjusted;
- }
- }
- return adjusted;
-}
-var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-var rtagName = ( /<([\w:-]+)/ );
-
-var rscriptType = ( /^$|\/(?:java|ecma)script/i );
-
-
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
-
- // Support: IE9
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
-
- // XHTML parsers do not magically insert elements in the
- // same way that tag soup parsers do. So we cannot shorten
- // this by omitting <tbody> or other required elements.
- thead: [ 1, "<table>", "</table>" ],
- col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
- _default: [ 0, "", "" ]
-};
-
-// Support: IE9
-wrapMap.optgroup = wrapMap.option;
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-
-function getAll( context, tag ) {
-
- // Support: IE9-11+
- // Use typeof to avoid zero-argument method invocation on host objects (#15151)
- var ret = typeof context.getElementsByTagName !== "undefined" ?
- context.getElementsByTagName( tag || "*" ) :
- typeof context.querySelectorAll !== "undefined" ?
- context.querySelectorAll( tag || "*" ) :
- [];
-
- return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
- jQuery.merge( [ context ], ret ) :
- ret;
-}
-
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- dataPriv.set(
- elems[ i ],
- "globalEval",
- !refElements || dataPriv.get( refElements[ i ], "globalEval" )
- );
- }
-}
-
-
-var rhtml = /<|&#?\w+;/;
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
- var elem, tmp, tag, wrap, contains, j,
- fragment = context.createDocumentFragment(),
- nodes = [],
- i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( jQuery.type( elem ) === "object" ) {
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, tmp.childNodes );
-
- // Remember the top-level container
- tmp = fragment.firstChild;
-
- // Ensure the created nodes are orphaned (#12392)
- tmp.textContent = "";
- }
- }
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
-
- i = 0;
- while ( ( elem = nodes[ i++ ] ) ) {
-
- // Skip elements already in the context collection (trac-4087)
- if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
- if ( ignored ) {
- ignored.push( elem );
- }
- continue;
- }
-
- contains = jQuery.contains( elem.ownerDocument, elem );
-
- // Append to fragment
- tmp = getAll( fragment.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( contains ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( ( elem = tmp[ j++ ] ) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- return fragment;
-}
-
-
-( function() {
- var fragment = document.createDocumentFragment(),
- div = fragment.appendChild( document.createElement( "div" ) ),
- input = document.createElement( "input" );
-
- // Support: Android 4.0-4.3, Safari<=5.1
- // Check state lost if the name is set (#11217)
- // Support: Windows Web Apps (WWA)
- // `name` and `type` must use .setAttribute for WWA (#14901)
- input.setAttribute( "type", "radio" );
- input.setAttribute( "checked", "checked" );
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
-
- // Support: Safari<=5.1, Android<4.2
- // Older WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE<=11+
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- div.innerHTML = "<textarea>x</textarea>";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-} )();
-
-
-var
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-// Support: IE9
-// See #13393 for more info
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
-
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
-
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- on( elem, type, selector, data, types[ type ], one );
- }
- return elem;
- }
-
- if ( data == null && fn == null ) {
-
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
-
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
-
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return elem;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
-
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
-
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return elem.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- } );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
-
- var handleObjIn, eventHandle, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.get( elem );
-
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- if ( !elemData ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !( events = elemData.events ) ) {
- events = elemData.events = {};
- }
- if ( !( eventHandle = elemData.handle ) ) {
- eventHandle = elemData.handle = function( e ) {
-
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
- jQuery.event.dispatch.apply( elem, arguments ) : undefined;
- };
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend( {
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join( "." )
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !( handlers = events[ type ] ) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener if the special events handler returns false
- if ( !special.setup ||
- special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var j, origCount, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
- if ( !elemData || !( events = elemData.events ) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[ 2 ] &&
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector ||
- selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown ||
- special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove data and the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- dataPriv.remove( elem, "handle events" );
- }
- },
-
- dispatch: function( event ) {
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( event );
-
- var i, j, ret, matched, handleObj,
- handlerQueue = [],
- args = slice.call( arguments ),
- handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[ 0 ] = event;
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( ( handleObj = matched.handlers[ j++ ] ) &&
- !event.isImmediatePropagationStopped() ) {
-
- // Triggered event must either 1) have no namespace, or 2) have namespace(s)
- // a subset or equal to those in the bound event (both can have no namespace).
- if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
- handleObj.handler ).apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( ( event.result = ret ) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, matches, sel, handleObj,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Support (at least): Chrome, IE9
- // Find delegate handlers
- // Black-hole SVG <use> instance trees (#13180)
- //
- // Support: Firefox<=42+
- // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
- if ( delegateCount && cur.nodeType &&
- ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
-
- for ( ; cur !== this; cur = cur.parentNode || this ) {
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) {
- matches = [];
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matches[ sel ] === undefined ) {
- matches[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) > -1 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matches[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push( { elem: cur, handlers: matches } );
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( delegateCount < handlers.length ) {
- handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );
- }
-
- return handlerQueue;
- },
-
- // Includes some event props shared by KeyEvent and MouseEvent
- props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
- "metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
-
- fixHooks: {},
-
- keyHooks: {
- props: "char charCode key keyCode".split( " " ),
- filter: function( event, original ) {
-
- // Add which for key events
- if ( event.which == null ) {
- event.which = original.charCode != null ? original.charCode : original.keyCode;
- }
-
- return event;
- }
- },
-
- mouseHooks: {
- props: ( "button buttons clientX clientY offsetX offsetY pageX pageY " +
- "screenX screenY toElement" ).split( " " ),
- filter: function( event, original ) {
- var eventDoc, doc, body,
- button = original.button;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && original.clientX != null ) {
- eventDoc = event.target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
-
- event.pageX = original.clientX +
- ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) -
- ( doc && doc.clientLeft || body && body.clientLeft || 0 );
- event.pageY = original.clientY +
- ( doc && doc.scrollTop || body && body.scrollTop || 0 ) -
- ( doc && doc.clientTop || body && body.clientTop || 0 );
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && button !== undefined ) {
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event;
- }
- },
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // Create a writable copy of the event object and normalize some properties
- var i, prop, copy,
- type = event.type,
- originalEvent = event,
- fixHook = this.fixHooks[ type ];
-
- if ( !fixHook ) {
- this.fixHooks[ type ] = fixHook =
- rmouseEvent.test( type ) ? this.mouseHooks :
- rkeyEvent.test( type ) ? this.keyHooks :
- {};
- }
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
- event = new jQuery.Event( originalEvent );
-
- i = copy.length;
- while ( i-- ) {
- prop = copy[ i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Support: Cordova 2.5 (WebKit) (#13255)
- // All events should have a target; Cordova deviceready doesn't
- if ( !event.target ) {
- event.target = document;
- }
-
- // Support: Safari 6.0+, Chrome<28
- // Target should not be a text node (#504, #13143)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
- },
-
- special: {
- load: {
-
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- focus: {
-
- // Fire native event if possible so blur/focus sequence is correct
- trigger: function() {
- if ( this !== safeActiveElement() && this.focus ) {
- this.focus();
- return false;
- }
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if ( this === safeActiveElement() && this.blur ) {
- this.blur();
- return false;
- }
- },
- delegateType: "focusout"
- },
- click: {
-
- // For checkbox, fire native event so checked state will be right
- trigger: function() {
- if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
- this.click();
- return false;
- }
- },
-
- // For cross-browser consistency, don't fire native .click() on links
- _default: function( event ) {
- return jQuery.nodeName( event.target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- }
-};
-
-jQuery.removeEvent = function( elem, type, handle ) {
-
- // This "if" is needed for plain objects
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle );
- }
-};
-
-jQuery.Event = function( src, props ) {
-
- // Allow instantiation without the 'new' keyword
- if ( !( this instanceof jQuery.Event ) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
-
- // Support: Android<4.0
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- constructor: jQuery.Event,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
- isSimulated: false,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.preventDefault();
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopPropagation();
- }
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://code.google.com/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mouseenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-} );
-
-jQuery.fn.extend( {
- on: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn );
- },
- one: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
-
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ?
- handleObj.origType + "." + handleObj.namespace :
- handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
-
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
-
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each( function() {
- jQuery.event.remove( this, types, fn, selector );
- } );
- }
-} );
-
-
-var
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
-
- // Support: IE 10-11, Edge 10240+
- // In IE/Edge using regex groups here causes severe slowdowns.
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
- rnoInnerhtml = /<script|<style|<link/i,
-
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptTypeMasked = /^true\/(.*)/,
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
-// Manipulating tables requires a tbody
-function manipulationTarget( elem, content ) {
- return jQuery.nodeName( elem, "table" ) &&
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
-
- elem.getElementsByTagName( "tbody" )[ 0 ] ||
- elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
- elem;
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
- elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
- return elem;
-}
-function restoreScript( elem ) {
- var match = rscriptTypeMasked.exec( elem.type );
-
- if ( match ) {
- elem.type = match[ 1 ];
- } else {
- elem.removeAttribute( "type" );
- }
-
- return elem;
-}
-
-function cloneCopyEvent( src, dest ) {
- var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
-
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- // 1. Copy private data: events, handlers, etc.
- if ( dataPriv.hasData( src ) ) {
- pdataOld = dataPriv.access( src );
- pdataCur = dataPriv.set( dest, pdataOld );
- events = pdataOld.events;
-
- if ( events ) {
- delete pdataCur.handle;
- pdataCur.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
- }
-
- // 2. Copy user data
- if ( dataUser.hasData( src ) ) {
- udataOld = dataUser.access( src );
- udataCur = jQuery.extend( {}, udataOld );
-
- dataUser.set( dest, udataCur );
- }
-}
-
-// Fix IE bugs, see support tests
-function fixInput( src, dest ) {
- var nodeName = dest.nodeName.toLowerCase();
-
- // Fails to persist the checked state of a cloned checkbox or radio button.
- if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
- dest.checked = src.checked;
-
- // Fails to return the selected option to the default selected state when cloning options
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-}
-
-function domManip( collection, args, callback, ignored ) {
-
- // Flatten any nested arrays
- args = concat.apply( [], args );
-
- var fragment, first, scripts, hasScripts, node, doc,
- i = 0,
- l = collection.length,
- iNoClone = l - 1,
- value = args[ 0 ],
- isFunction = jQuery.isFunction( value );
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( isFunction ||
- ( l > 1 && typeof value === "string" &&
- !support.checkClone && rchecked.test( value ) ) ) {
- return collection.each( function( index ) {
- var self = collection.eq( index );
- if ( isFunction ) {
- args[ 0 ] = value.call( this, index, self.html() );
- }
- domManip( self, args, callback, ignored );
- } );
- }
-
- if ( l ) {
- fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
- first = fragment.firstChild;
-
- if ( fragment.childNodes.length === 1 ) {
- fragment = first;
- }
-
- // Require either new content or an interest in ignored elements to invoke the callback
- if ( first || ignored ) {
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
- hasScripts = scripts.length;
-
- // Use the original fragment for the last item
- // instead of the first because it can end up
- // being emptied incorrectly in certain situations (#8070).
- for ( ; i < l; i++ ) {
- node = fragment;
-
- if ( i !== iNoClone ) {
- node = jQuery.clone( node, true, true );
-
- // Keep references to cloned scripts for later restoration
- if ( hasScripts ) {
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( scripts, getAll( node, "script" ) );
- }
- }
-
- callback.call( collection[ i ], node, i );
- }
-
- if ( hasScripts ) {
- doc = scripts[ scripts.length - 1 ].ownerDocument;
-
- // Reenable scripts
- jQuery.map( scripts, restoreScript );
-
- // Evaluate executable scripts on first document insertion
- for ( i = 0; i < hasScripts; i++ ) {
- node = scripts[ i ];
- if ( rscriptType.test( node.type || "" ) &&
- !dataPriv.access( node, "globalEval" ) &&
- jQuery.contains( doc, node ) ) {
-
- if ( node.src ) {
-
- // Optional AJAX dependency, but won't run scripts if not present
- if ( jQuery._evalUrl ) {
- jQuery._evalUrl( node.src );
- }
- } else {
- jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
- }
- }
- }
- }
- }
- }
-
- return collection;
-}
-
-function remove( elem, selector, keepData ) {
- var node,
- nodes = selector ? jQuery.filter( selector, elem ) : elem,
- i = 0;
-
- for ( ; ( node = nodes[ i ] ) != null; i++ ) {
- if ( !keepData && node.nodeType === 1 ) {
- jQuery.cleanData( getAll( node ) );
- }
-
- if ( node.parentNode ) {
- if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
- setGlobalEval( getAll( node, "script" ) );
- }
- node.parentNode.removeChild( node );
- }
- }
-
- return elem;
-}
-
-jQuery.extend( {
- htmlPrefilter: function( html ) {
- return html.replace( rxhtmlTag, "<$1></$2>" );
- },
-
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var i, l, srcElements, destElements,
- clone = elem.cloneNode( true ),
- inPage = jQuery.contains( elem.ownerDocument, elem );
-
- // Fix IE cloning issues
- if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
- !jQuery.isXMLDoc( elem ) ) {
-
- // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
- destElements = getAll( clone );
- srcElements = getAll( elem );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- fixInput( srcElements[ i ], destElements[ i ] );
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- if ( deepDataAndEvents ) {
- srcElements = srcElements || getAll( elem );
- destElements = destElements || getAll( clone );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- cloneCopyEvent( srcElements[ i ], destElements[ i ] );
- }
- } else {
- cloneCopyEvent( elem, clone );
- }
- }
-
- // Preserve script evaluation history
- destElements = getAll( clone, "script" );
- if ( destElements.length > 0 ) {
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
- }
-
- // Return the cloned set
- return clone;
- },
-
- cleanData: function( elems ) {
- var data, elem, type,
- special = jQuery.event.special,
- i = 0;
-
- for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
- if ( acceptData( elem ) ) {
- if ( ( data = elem[ dataPriv.expando ] ) ) {
- if ( data.events ) {
- for ( type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
-
- // Support: Chrome <= 35-45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataPriv.expando ] = undefined;
- }
- if ( elem[ dataUser.expando ] ) {
-
- // Support: Chrome <= 35-45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataUser.expando ] = undefined;
- }
- }
- }
- }
-} );
-
-jQuery.fn.extend( {
-
- // Keep domManip exposed until 3.0 (gh-2225)
- domManip: domManip,
-
- detach: function( selector ) {
- return remove( this, selector, true );
- },
-
- remove: function( selector ) {
- return remove( this, selector );
- },
-
- text: function( value ) {
- return access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().each( function() {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- this.textContent = value;
- }
- } );
- }, null, value, arguments.length );
- },
-
- append: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.appendChild( elem );
- }
- } );
- },
-
- prepend: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.insertBefore( elem, target.firstChild );
- }
- } );
- },
-
- before: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this );
- }
- } );
- },
-
- after: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- }
- } );
- },
-
- empty: function() {
- var elem,
- i = 0;
-
- for ( ; ( elem = this[ i ] ) != null; i++ ) {
- if ( elem.nodeType === 1 ) {
-
- // Prevent memory leaks
- jQuery.cleanData( getAll( elem, false ) );
-
- // Remove any remaining nodes
- elem.textContent = "";
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function() {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- } );
- },
-
- html: function( value ) {
- return access( this, function( value ) {
- var elem = this[ 0 ] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined && elem.nodeType === 1 ) {
- return elem.innerHTML;
- }
-
- // See if we can take a shortcut and just use innerHTML
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
- value = jQuery.htmlPrefilter( value );
-
- try {
- for ( ; i < l; i++ ) {
- elem = this[ i ] || {};
-
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch ( e ) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function() {
- var ignored = [];
-
- // Make the changes, replacing each non-ignored context element with the new content
- return domManip( this, arguments, function( elem ) {
- var parent = this.parentNode;
-
- if ( jQuery.inArray( this, ignored ) < 0 ) {
- jQuery.cleanData( getAll( this ) );
- if ( parent ) {
- parent.replaceChild( elem, this );
- }
- }
-
- // Force callback invocation
- }, ignored );
- }
-} );
-
-jQuery.each( {
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var elems,
- ret = [],
- insert = jQuery( selector ),
- last = insert.length - 1,
- i = 0;
-
- for ( ; i <= last; i++ ) {
- elems = i === last ? this : this.clone( true );
- jQuery( insert[ i ] )[ original ]( elems );
-
- // Support: QtWebKit
- // .get() because push.apply(_, arraylike) throws
- push.apply( ret, elems.get() );
- }
-
- return this.pushStack( ret );
- };
-} );
-
-
-var iframe,
- elemdisplay = {
-
- // Support: Firefox
- // We have to pre-define these values for FF (#10227)
- HTML: "block",
- BODY: "block"
- };
-
-/**
- * Retrieve the actual display of a element
- * @param {String} name nodeName of the element
- * @param {Object} doc Document object
- */
-
-// Called only from within defaultDisplay
-function actualDisplay( name, doc ) {
- var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
-
- display = jQuery.css( elem[ 0 ], "display" );
-
- // We don't have any data stored on the element,
- // so use "detach" method as fast way to get rid of the element
- elem.detach();
-
- return display;
-}
-
-/**
- * Try to determine the default display value of an element
- * @param {String} nodeName
- */
-function defaultDisplay( nodeName ) {
- var doc = document,
- display = elemdisplay[ nodeName ];
-
- if ( !display ) {
- display = actualDisplay( nodeName, doc );
-
- // If the simple way fails, read from inside an iframe
- if ( display === "none" || !display ) {
-
- // Use the already-created iframe if possible
- iframe = ( iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" ) )
- .appendTo( doc.documentElement );
-
- // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
- doc = iframe[ 0 ].contentDocument;
-
- // Support: IE
- doc.write();
- doc.close();
-
- display = actualDisplay( nodeName, doc );
- iframe.detach();
- }
-
- // Store the correct default display
- elemdisplay[ nodeName ] = display;
- }
-
- return display;
-}
-var rmargin = ( /^margin/ );
-
-var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-
-var getStyles = function( elem ) {
-
- // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
- // IE throws on elements created in popups
- // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
- var view = elem.ownerDocument.defaultView;
-
- if ( !view || !view.opener ) {
- view = window;
- }
-
- return view.getComputedStyle( elem );
- };
-
-var swap = function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
-};
-
-
-var documentElement = document.documentElement;
-
-
-
-( function() {
- var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
- container = document.createElement( "div" ),
- div = document.createElement( "div" );
-
- // Finish early in limited (non-browser) environments
- if ( !div.style ) {
- return;
- }
-
- // Support: IE9-11+
- // Style of cloned element affects source element cloned (#8908)
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
- "padding:0;margin-top:1px;position:absolute";
- container.appendChild( div );
-
- // Executing both pixelPosition & boxSizingReliable tests require only one layout
- // so they're executed at the same time to save the second computation.
- function computeStyleTests() {
- div.style.cssText =
-
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;" +
- "position:relative;display:block;" +
- "margin:auto;border:1px;padding:1px;" +
- "top:1%;width:50%";
- div.innerHTML = "";
- documentElement.appendChild( container );
-
- var divStyle = window.getComputedStyle( div );
- pixelPositionVal = divStyle.top !== "1%";
- reliableMarginLeftVal = divStyle.marginLeft === "2px";
- boxSizingReliableVal = divStyle.width === "4px";
-
- // Support: Android 4.0 - 4.3 only
- // Some styles come back with percentage values, even though they shouldn't
- div.style.marginRight = "50%";
- pixelMarginRightVal = divStyle.marginRight === "4px";
-
- documentElement.removeChild( container );
- }
-
- jQuery.extend( support, {
- pixelPosition: function() {
-
- // This test is executed only once but we still do memoizing
- // since we can use the boxSizingReliable pre-computing.
- // No need to check if the test was already performed, though.
- computeStyleTests();
- return pixelPositionVal;
- },
- boxSizingReliable: function() {
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return boxSizingReliableVal;
- },
- pixelMarginRight: function() {
-
- // Support: Android 4.0-4.3
- // We're checking for boxSizingReliableVal here instead of pixelMarginRightVal
- // since that compresses better and they're computed together anyway.
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return pixelMarginRightVal;
- },
- reliableMarginLeft: function() {
-
- // Support: IE <=8 only, Android 4.0 - 4.3 only, Firefox <=3 - 37
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return reliableMarginLeftVal;
- },
- reliableMarginRight: function() {
-
- // Support: Android 2.3
- // Check if div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container. (#3333)
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- // This support function is only executed once so no memoizing is needed.
- var ret,
- marginDiv = div.appendChild( document.createElement( "div" ) );
-
- // Reset CSS: box-sizing; display; margin; border; padding
- marginDiv.style.cssText = div.style.cssText =
-
- // Support: Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:content-box;box-sizing:content-box;" +
- "display:block;margin:0;border:0;padding:0";
- marginDiv.style.marginRight = marginDiv.style.width = "0";
- div.style.width = "1px";
- documentElement.appendChild( container );
-
- ret = !parseFloat( window.getComputedStyle( marginDiv ).marginRight );
-
- documentElement.removeChild( container );
- div.removeChild( marginDiv );
-
- return ret;
- }
- } );
-} )();
-
-
-function curCSS( elem, name, computed ) {
- var width, minWidth, maxWidth, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
- ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
-
- // Support: Opera 12.1x only
- // Fall back to style even without computed
- // computed is undefined for elems on document fragments
- if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) {
- ret = jQuery.style( elem, name );
- }
-
- // Support: IE9
- // getPropertyValue is only needed for .css('filter') (#12537)
- if ( computed ) {
-
- // A tribute to the "awesome hack by Dean Edwards"
- // Android Browser returns percentage for some values,
- // but width seems to be reliably pixels.
- // This is against the CSSOM draft spec:
- // http://dev.w3.org/csswg/cssom/#resolved-values
- if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
- // Remember the original values
- width = style.width;
- minWidth = style.minWidth;
- maxWidth = style.maxWidth;
-
- // Put in the new values to get a computed value out
- style.minWidth = style.maxWidth = style.width = ret;
- ret = computed.width;
-
- // Revert the changed values
- style.width = width;
- style.minWidth = minWidth;
- style.maxWidth = maxWidth;
- }
- }
-
- return ret !== undefined ?
-
- // Support: IE9-11+
- // IE returns zIndex value as an integer.
- ret + "" :
- ret;
-}
-
-
-function addGetHookIf( conditionFn, hookFn ) {
-
- // Define the hook, we'll check on the first run if it's really needed.
- return {
- get: function() {
- if ( conditionFn() ) {
-
- // Hook not needed (or it's not possible to use it due
- // to missing dependency), remove it.
- delete this.get;
- return;
- }
-
- // Hook needed; redefine it so that the support test is not executed again.
- return ( this.get = hookFn ).apply( this, arguments );
- }
- };
-}
-
-
-var
-
- // Swappable if display is none or starts with table
- // except "table", "table-cell", or "table-caption"
- // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssNormalTransform = {
- letterSpacing: "0",
- fontWeight: "400"
- },
-
- cssPrefixes = [ "Webkit", "O", "Moz", "ms" ],
- emptyStyle = document.createElement( "div" ).style;
-
-// Return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( name ) {
-
- // Shortcut for names that are not vendor prefixed
- if ( name in emptyStyle ) {
- return name;
- }
-
- // Check for vendor prefixed names
- var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
- i = cssPrefixes.length;
-
- while ( i-- ) {
- name = cssPrefixes[ i ] + capName;
- if ( name in emptyStyle ) {
- return name;
- }
- }
-}
-
-function setPositiveNumber( elem, value, subtract ) {
-
- // Any relative (+/-) values have already been
- // normalized at this point
- var matches = rcssNum.exec( value );
- return matches ?
-
- // Guard against undefined "subtract", e.g., when used as in cssHooks
- Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
- value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
-
- // If we already have the right measurement, avoid augmentation
- 4 :
-
- // Otherwise initialize for horizontal or vertical properties
- name === "width" ? 1 : 0,
-
- val = 0;
-
- for ( ; i < 4; i += 2 ) {
-
- // Both box models exclude margin, so add it if we want it
- if ( extra === "margin" ) {
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
- }
-
- if ( isBorderBox ) {
-
- // border-box includes padding, so remove it if we want content
- if ( extra === "content" ) {
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
- }
-
- // At this point, extra isn't border nor margin, so remove border
- if ( extra !== "margin" ) {
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- } else {
-
- // At this point, extra isn't content, so add padding
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
- // At this point, extra isn't content nor padding, so add border
- if ( extra !== "padding" ) {
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- }
- }
-
- return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property, which is equivalent to the border-box value
- var valueIsBorderBox = true,
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
- styles = getStyles( elem ),
- isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
- // Some non-html elements return undefined for offsetWidth, so check for null/undefined
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
- if ( val <= 0 || val == null ) {
-
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name, styles );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test( val ) ) {
- return val;
- }
-
- // Check for style in case a browser which returns unreliable values
- // for getComputedStyle silently falls back to the reliable elem.style
- valueIsBorderBox = isBorderBox &&
- ( support.boxSizingReliable() || val === elem.style[ name ] );
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
- }
-
- // Use the active box-sizing model to add/subtract irrelevant styles
- return ( val +
- augmentWidthOrHeight(
- elem,
- name,
- extra || ( isBorderBox ? "border" : "content" ),
- valueIsBorderBox,
- styles
- )
- ) + "px";
-}
-
-function showHide( elements, show ) {
- var display, elem, hidden,
- values = [],
- index = 0,
- length = elements.length;
-
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- values[ index ] = dataPriv.get( elem, "olddisplay" );
- display = elem.style.display;
- if ( show ) {
-
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !values[ index ] && display === "none" ) {
- elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( elem.style.display === "" && isHidden( elem ) ) {
- values[ index ] = dataPriv.access(
- elem,
- "olddisplay",
- defaultDisplay( elem.nodeName )
- );
- }
- } else {
- hidden = isHidden( elem );
-
- if ( display !== "none" || !hidden ) {
- dataPriv.set(
- elem,
- "olddisplay",
- hidden ? display : jQuery.css( elem, "display" )
- );
- }
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( index = 0; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
- if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
- elem.style.display = show ? values[ index ] || "" : "none";
- }
- }
-
- return elements;
-}
-
-jQuery.extend( {
-
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
-
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
- }
- }
- }
- },
-
- // Don't automatically add "px" to these possibly-unitless properties
- cssNumber: {
- "animationIterationCount": true,
- "columnCount": true,
- "fillOpacity": true,
- "flexGrow": true,
- "flexShrink": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "order": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- "float": "cssFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
-
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, hooks,
- origName = jQuery.camelCase( name ),
- style = elem.style;
-
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Gets hook for the prefixed version, then unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // Convert "+=" or "-=" to relative numbers (#7345)
- if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
- value = adjustCSS( elem, name, ret );
-
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that null and NaN values aren't set (#7116)
- if ( value == null || value !== value ) {
- return;
- }
-
- // If a number was passed in, add the unit (except for certain CSS properties)
- if ( type === "number" ) {
- value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
- }
-
- // Support: IE9-11+
- // background-* props affect original clone's values
- if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
- style[ name ] = "inherit";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !( "set" in hooks ) ||
- ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
-
- style[ name ] = value;
- }
-
- } else {
-
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks &&
- ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
-
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra, styles ) {
- var val, num, hooks,
- origName = jQuery.camelCase( name );
-
- // Make sure that we're working with the right name
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Try prefixed name followed by the unprefixed name
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks ) {
- val = hooks.get( elem, true, extra );
- }
-
- // Otherwise, if a way to get the computed value exists, use that
- if ( val === undefined ) {
- val = curCSS( elem, name, styles );
- }
-
- // Convert "normal" to computed value
- if ( val === "normal" && name in cssNormalTransform ) {
- val = cssNormalTransform[ name ];
- }
-
- // Make numeric if forced or a qualifier was provided and val looks numeric
- if ( extra === "" || extra ) {
- num = parseFloat( val );
- return extra === true || isFinite( num ) ? num || 0 : val;
- }
- return val;
- }
-} );
-
-jQuery.each( [ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
-
- // Certain elements can have dimension info if we invisibly show them
- // but it must have a current display style that would benefit
- return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
- elem.offsetWidth === 0 ?
- swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- } ) :
- getWidthOrHeight( elem, name, extra );
- }
- },
-
- set: function( elem, value, extra ) {
- var matches,
- styles = extra && getStyles( elem ),
- subtract = extra && augmentWidthOrHeight(
- elem,
- name,
- extra,
- jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
- styles
- );
-
- // Convert to pixels if value adjustment is needed
- if ( subtract && ( matches = rcssNum.exec( value ) ) &&
- ( matches[ 3 ] || "px" ) !== "px" ) {
-
- elem.style[ name ] = value;
- value = jQuery.css( elem, name );
- }
-
- return setPositiveNumber( elem, value, subtract );
- }
- };
-} );
-
-jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
- function( elem, computed ) {
- if ( computed ) {
- return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
- elem.getBoundingClientRect().left -
- swap( elem, { marginLeft: 0 }, function() {
- return elem.getBoundingClientRect().left;
- } )
- ) + "px";
- }
- }
-);
-
-// Support: Android 2.3
-jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
- function( elem, computed ) {
- if ( computed ) {
- return swap( elem, { "display": "inline-block" },
- curCSS, [ elem, "marginRight" ] );
- }
- }
-);
-
-// These hooks are used by animate to expand properties
-jQuery.each( {
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i = 0,
- expanded = {},
-
- // Assumes a single number if not a string
- parts = typeof value === "string" ? value.split( " " ) : [ value ];
-
- for ( ; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-
- if ( !rmargin.test( prefix ) ) {
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
- }
-} );
-
-jQuery.fn.extend( {
- css: function( name, value ) {
- return access( this, function( elem, name, value ) {
- var styles, len,
- map = {},
- i = 0;
-
- if ( jQuery.isArray( name ) ) {
- styles = getStyles( elem );
- len = name.length;
-
- for ( ; i < len; i++ ) {
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
- }
-
- return map;
- }
-
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
- },
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each( function() {
- if ( isHidden( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- } );
- }
-} );
-
-
-function Tween( elem, options, prop, end, easing ) {
- return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
- constructor: Tween,
- init: function( elem, options, prop, end, easing, unit ) {
- this.elem = elem;
- this.prop = prop;
- this.easing = easing || jQuery.easing._default;
- this.options = options;
- this.start = this.now = this.cur();
- this.end = end;
- this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
- },
- cur: function() {
- var hooks = Tween.propHooks[ this.prop ];
-
- return hooks && hooks.get ?
- hooks.get( this ) :
- Tween.propHooks._default.get( this );
- },
- run: function( percent ) {
- var eased,
- hooks = Tween.propHooks[ this.prop ];
-
- if ( this.options.duration ) {
- this.pos = eased = jQuery.easing[ this.easing ](
- percent, this.options.duration * percent, 0, 1, this.options.duration
- );
- } else {
- this.pos = eased = percent;
- }
- this.now = ( this.end - this.start ) * eased + this.start;
-
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- if ( hooks && hooks.set ) {
- hooks.set( this );
- } else {
- Tween.propHooks._default.set( this );
- }
- return this;
- }
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
- _default: {
- get: function( tween ) {
- var result;
-
- // Use a property on the element directly when it is not a DOM element,
- // or when there is no matching style property that exists.
- if ( tween.elem.nodeType !== 1 ||
- tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
- return tween.elem[ tween.prop ];
- }
-
- // Passing an empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails.
- // Simple values such as "10px" are parsed to Float;
- // complex values such as "rotate(1rad)" are returned as-is.
- result = jQuery.css( tween.elem, tween.prop, "" );
-
- // Empty strings, null, undefined and "auto" are converted to 0.
- return !result || result === "auto" ? 0 : result;
- },
- set: function( tween ) {
-
- // Use step hook for back compat.
- // Use cssHook if its there.
- // Use .style if available and use plain properties where available.
- if ( jQuery.fx.step[ tween.prop ] ) {
- jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.nodeType === 1 &&
- ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
- jQuery.cssHooks[ tween.prop ] ) ) {
- jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
- } else {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
- }
-};
-
-// Support: IE9
-// Panic based approach to setting things on disconnected nodes
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
- set: function( tween ) {
- if ( tween.elem.nodeType && tween.elem.parentNode ) {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
-};
-
-jQuery.easing = {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return 0.5 - Math.cos( p * Math.PI ) / 2;
- },
- _default: "swing"
-};
-
-jQuery.fx = Tween.prototype.init;
-
-// Back Compat <1.8 extension point
-jQuery.fx.step = {};
-
-
-
-
-var
- fxNow, timerId,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rrun = /queueHooks$/;
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- window.setTimeout( function() {
- fxNow = undefined;
- } );
- return ( fxNow = jQuery.now() );
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
- var which,
- i = 0,
- attrs = { height: type };
-
- // If we include width, step value is 1 to do all cssExpand values,
- // otherwise step value is 2 to skip over Left and Right
- includeWidth = includeWidth ? 1 : 0;
- for ( ; i < 4 ; i += 2 - includeWidth ) {
- which = cssExpand[ i ];
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
- }
-
- if ( includeWidth ) {
- attrs.opacity = attrs.width = type;
- }
-
- return attrs;
-}
-
-function createTween( value, prop, animation ) {
- var tween,
- collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
- index = 0,
- length = collection.length;
- for ( ; index < length; index++ ) {
- if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
-
- // We're done with this property
- return tween;
- }
- }
-}
-
-function defaultPrefilter( elem, props, opts ) {
- /* jshint validthis: true */
- var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
- anim = this,
- orig = {},
- style = elem.style,
- hidden = elem.nodeType && isHidden( elem ),
- dataShow = dataPriv.get( elem, "fxshow" );
-
- // Handle queue: false promises
- if ( !opts.queue ) {
- hooks = jQuery._queueHooks( elem, "fx" );
- if ( hooks.unqueued == null ) {
- hooks.unqueued = 0;
- oldfire = hooks.empty.fire;
- hooks.empty.fire = function() {
- if ( !hooks.unqueued ) {
- oldfire();
- }
- };
- }
- hooks.unqueued++;
-
- anim.always( function() {
-
- // Ensure the complete handler is called before this completes
- anim.always( function() {
- hooks.unqueued--;
- if ( !jQuery.queue( elem, "fx" ).length ) {
- hooks.empty.fire();
- }
- } );
- } );
- }
-
- // Height/width overflow pass
- if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
-
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE9-10 do not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height animated
- display = jQuery.css( elem, "display" );
-
- // Test default display if display is currently "none"
- checkDisplay = display === "none" ?
- dataPriv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
-
- if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
- style.display = "inline-block";
- }
- }
-
- if ( opts.overflow ) {
- style.overflow = "hidden";
- anim.always( function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- } );
- }
-
- // show/hide pass
- for ( prop in props ) {
- value = props[ prop ];
- if ( rfxtypes.exec( value ) ) {
- delete props[ prop ];
- toggle = toggle || value === "toggle";
- if ( value === ( hidden ? "hide" : "show" ) ) {
-
- // If there is dataShow left over from a stopped hide or show
- // and we are going to proceed with show, we should pretend to be hidden
- if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
- hidden = true;
- } else {
- continue;
- }
- }
- orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
-
- // Any non-fx value stops us from restoring the original display value
- } else {
- display = undefined;
- }
- }
-
- if ( !jQuery.isEmptyObject( orig ) ) {
- if ( dataShow ) {
- if ( "hidden" in dataShow ) {
- hidden = dataShow.hidden;
- }
- } else {
- dataShow = dataPriv.access( elem, "fxshow", {} );
- }
-
- // Store state if its toggle - enables .stop().toggle() to "reverse"
- if ( toggle ) {
- dataShow.hidden = !hidden;
- }
- if ( hidden ) {
- jQuery( elem ).show();
- } else {
- anim.done( function() {
- jQuery( elem ).hide();
- } );
- }
- anim.done( function() {
- var prop;
-
- dataPriv.remove( elem, "fxshow" );
- for ( prop in orig ) {
- jQuery.style( elem, prop, orig[ prop ] );
- }
- } );
- for ( prop in orig ) {
- tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
-
- if ( !( prop in dataShow ) ) {
- dataShow[ prop ] = tween.start;
- if ( hidden ) {
- tween.end = tween.start;
- tween.start = prop === "width" || prop === "height" ? 1 : 0;
- }
- }
- }
-
- // If this is a noop like .hide().hide(), restore an overwritten display value
- } else if ( ( display === "none" ? defaultDisplay( elem.nodeName ) : display ) === "inline" ) {
- style.display = display;
- }
-}
-
-function propFilter( props, specialEasing ) {
- var index, name, easing, value, hooks;
-
- // camelCase, specialEasing and expand cssHook pass
- for ( index in props ) {
- name = jQuery.camelCase( index );
- easing = specialEasing[ name ];
- value = props[ index ];
- if ( jQuery.isArray( value ) ) {
- easing = value[ 1 ];
- value = props[ index ] = value[ 0 ];
- }
-
- if ( index !== name ) {
- props[ name ] = value;
- delete props[ index ];
- }
-
- hooks = jQuery.cssHooks[ name ];
- if ( hooks && "expand" in hooks ) {
- value = hooks.expand( value );
- delete props[ name ];
-
- // Not quite $.extend, this won't overwrite existing keys.
- // Reusing 'index' because we have the correct "name"
- for ( index in value ) {
- if ( !( index in props ) ) {
- props[ index ] = value[ index ];
- specialEasing[ index ] = easing;
- }
- }
- } else {
- specialEasing[ name ] = easing;
- }
- }
-}
-
-function Animation( elem, properties, options ) {
- var result,
- stopped,
- index = 0,
- length = Animation.prefilters.length,
- deferred = jQuery.Deferred().always( function() {
-
- // Don't match elem in the :animated selector
- delete tick.elem;
- } ),
- tick = function() {
- if ( stopped ) {
- return false;
- }
- var currentTime = fxNow || createFxNow(),
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
-
- // Support: Android 2.3
- // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
- temp = remaining / animation.duration || 0,
- percent = 1 - temp,
- index = 0,
- length = animation.tweens.length;
-
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( percent );
- }
-
- deferred.notifyWith( elem, [ animation, percent, remaining ] );
-
- if ( percent < 1 && length ) {
- return remaining;
- } else {
- deferred.resolveWith( elem, [ animation ] );
- return false;
- }
- },
- animation = deferred.promise( {
- elem: elem,
- props: jQuery.extend( {}, properties ),
- opts: jQuery.extend( true, {
- specialEasing: {},
- easing: jQuery.easing._default
- }, options ),
- originalProperties: properties,
- originalOptions: options,
- startTime: fxNow || createFxNow(),
- duration: options.duration,
- tweens: [],
- createTween: function( prop, end ) {
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
- animation.tweens.push( tween );
- return tween;
- },
- stop: function( gotoEnd ) {
- var index = 0,
-
- // If we are going to the end, we want to run all the tweens
- // otherwise we skip this part
- length = gotoEnd ? animation.tweens.length : 0;
- if ( stopped ) {
- return this;
- }
- stopped = true;
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( 1 );
- }
-
- // Resolve when we played the last frame; otherwise, reject
- if ( gotoEnd ) {
- deferred.notifyWith( elem, [ animation, 1, 0 ] );
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
- } else {
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
- }
- return this;
- }
- } ),
- props = animation.props;
-
- propFilter( props, animation.opts.specialEasing );
-
- for ( ; index < length ; index++ ) {
- result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
- if ( result ) {
- if ( jQuery.isFunction( result.stop ) ) {
- jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
- jQuery.proxy( result.stop, result );
- }
- return result;
- }
- }
-
- jQuery.map( props, createTween, animation );
-
- if ( jQuery.isFunction( animation.opts.start ) ) {
- animation.opts.start.call( elem, animation );
- }
-
- jQuery.fx.timer(
- jQuery.extend( tick, {
- elem: elem,
- anim: animation,
- queue: animation.opts.queue
- } )
- );
-
- // attach callbacks from options
- return animation.progress( animation.opts.progress )
- .done( animation.opts.done, animation.opts.complete )
- .fail( animation.opts.fail )
- .always( animation.opts.always );
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
- tweeners: {
- "*": [ function( prop, value ) {
- var tween = this.createTween( prop, value );
- adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
- return tween;
- } ]
- },
-
- tweener: function( props, callback ) {
- if ( jQuery.isFunction( props ) ) {
- callback = props;
- props = [ "*" ];
- } else {
- props = props.match( rnotwhite );
- }
-
- var prop,
- index = 0,
- length = props.length;
-
- for ( ; index < length ; index++ ) {
- prop = props[ index ];
- Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
- Animation.tweeners[ prop ].unshift( callback );
- }
- },
-
- prefilters: [ defaultPrefilter ],
-
- prefilter: function( callback, prepend ) {
- if ( prepend ) {
- Animation.prefilters.unshift( callback );
- } else {
- Animation.prefilters.push( callback );
- }
- }
-} );
-
-jQuery.speed = function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ?
- opt.duration : opt.duration in jQuery.fx.speeds ?
- jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
- // Normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function() {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- }
- };
-
- return opt;
-};
-
-jQuery.fn.extend( {
- fadeTo: function( speed, to, easing, callback ) {
-
- // Show any hidden elements after setting opacity to 0
- return this.filter( isHidden ).css( "opacity", 0 ).show()
-
- // Animate to the value specified
- .end().animate( { opacity: to }, speed, easing, callback );
- },
- animate: function( prop, speed, easing, callback ) {
- var empty = jQuery.isEmptyObject( prop ),
- optall = jQuery.speed( speed, easing, callback ),
- doAnimation = function() {
-
- // Operate on a copy of prop so per-property easing won't be lost
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
- // Empty animations, or finishing resolves immediately
- if ( empty || dataPriv.get( this, "finish" ) ) {
- anim.stop( true );
- }
- };
- doAnimation.finish = doAnimation;
-
- return empty || optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
- stop: function( type, clearQueue, gotoEnd ) {
- var stopQueue = function( hooks ) {
- var stop = hooks.stop;
- delete hooks.stop;
- stop( gotoEnd );
- };
-
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each( function() {
- var dequeue = true,
- index = type != null && type + "queueHooks",
- timers = jQuery.timers,
- data = dataPriv.get( this );
-
- if ( index ) {
- if ( data[ index ] && data[ index ].stop ) {
- stopQueue( data[ index ] );
- }
- } else {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
- stopQueue( data[ index ] );
- }
- }
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this &&
- ( type == null || timers[ index ].queue === type ) ) {
-
- timers[ index ].anim.stop( gotoEnd );
- dequeue = false;
- timers.splice( index, 1 );
- }
- }
-
- // Start the next in the queue if the last step wasn't forced.
- // Timers currently will call their complete callbacks, which
- // will dequeue but only if they were gotoEnd.
- if ( dequeue || !gotoEnd ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- finish: function( type ) {
- if ( type !== false ) {
- type = type || "fx";
- }
- return this.each( function() {
- var index,
- data = dataPriv.get( this ),
- queue = data[ type + "queue" ],
- hooks = data[ type + "queueHooks" ],
- timers = jQuery.timers,
- length = queue ? queue.length : 0;
-
- // Enable finishing flag on private data
- data.finish = true;
-
- // Empty the queue first
- jQuery.queue( this, type, [] );
-
- if ( hooks && hooks.stop ) {
- hooks.stop.call( this, true );
- }
-
- // Look for any active animations, and finish them
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
- timers[ index ].anim.stop( true );
- timers.splice( index, 1 );
- }
- }
-
- // Look for any animations in the old queue and finish them
- for ( index = 0; index < length; index++ ) {
- if ( queue[ index ] && queue[ index ].finish ) {
- queue[ index ].finish.call( this );
- }
- }
-
- // Turn off finishing flag
- delete data.finish;
- } );
- }
-} );
-
-jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
- var cssFn = jQuery.fn[ name ];
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return speed == null || typeof speed === "boolean" ?
- cssFn.apply( this, arguments ) :
- this.animate( genFx( name, true ), speed, easing, callback );
- };
-} );
-
-// Generate shortcuts for custom animations
-jQuery.each( {
- slideDown: genFx( "show" ),
- slideUp: genFx( "hide" ),
- slideToggle: genFx( "toggle" ),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-} );
-
-jQuery.timers = [];
-jQuery.fx.tick = function() {
- var timer,
- i = 0,
- timers = jQuery.timers;
-
- fxNow = jQuery.now();
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
-
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
- jQuery.timers.push( timer );
- if ( timer() ) {
- jQuery.fx.start();
- } else {
- jQuery.timers.pop();
- }
-};
-
-jQuery.fx.interval = 13;
-jQuery.fx.start = function() {
- if ( !timerId ) {
- timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
- }
-};
-
-jQuery.fx.stop = function() {
- window.clearInterval( timerId );
-
- timerId = null;
-};
-
-jQuery.fx.speeds = {
- slow: 600,
- fast: 200,
-
- // Default speed
- _default: 400
-};
-
-
-// Based off of the plugin by Clint Helfers, with permission.
-// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
-jQuery.fn.delay = function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = window.setTimeout( next, time );
- hooks.stop = function() {
- window.clearTimeout( timeout );
- };
- } );
-};
-
-
-( function() {
- var input = document.createElement( "input" ),
- select = document.createElement( "select" ),
- opt = select.appendChild( document.createElement( "option" ) );
-
- input.type = "checkbox";
-
- // Support: iOS<=5.1, Android<=4.2+
- // Default value for a checkbox should be "on"
- support.checkOn = input.value !== "";
-
- // Support: IE<=11+
- // Must access selectedIndex to make default options select
- support.optSelected = opt.selected;
-
- // Support: Android<=2.3
- // Options inside disabled selects are incorrectly marked as disabled
- select.disabled = true;
- support.optDisabled = !opt.disabled;
-
- // Support: IE<=11+
- // An input loses its value after becoming a radio
- input = document.createElement( "input" );
- input.value = "t";
- input.type = "radio";
- support.radioValue = input.value === "t";
-} )();
-
-
-var boolHook,
- attrHandle = jQuery.expr.attrHandle;
-
-jQuery.fn.extend( {
- attr: function( name, value ) {
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each( function() {
- jQuery.removeAttr( this, name );
- } );
- }
-} );
-
-jQuery.extend( {
- attr: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set attributes on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === "undefined" ) {
- return jQuery.prop( elem, name, value );
- }
-
- // All attributes are lowercase
- // Grab necessary hook if one is defined
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
- name = name.toLowerCase();
- hooks = jQuery.attrHooks[ name ] ||
- ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
- }
-
- if ( value !== undefined ) {
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
- return;
- }
-
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- elem.setAttribute( name, value + "" );
- return value;
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- ret = jQuery.find.attr( elem, name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret == null ? undefined : ret;
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- if ( !support.radioValue && value === "radio" &&
- jQuery.nodeName( elem, "input" ) ) {
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- }
- },
-
- removeAttr: function( elem, value ) {
- var name, propName,
- i = 0,
- attrNames = value && value.match( rnotwhite );
-
- if ( attrNames && elem.nodeType === 1 ) {
- while ( ( name = attrNames[ i++ ] ) ) {
- propName = jQuery.propFix[ name ] || name;
-
- // Boolean attributes get special treatment (#10870)
- if ( jQuery.expr.match.bool.test( name ) ) {
-
- // Set corresponding property to false
- elem[ propName ] = false;
- }
-
- elem.removeAttribute( name );
- }
- }
- }
-} );
-
-// Hooks for boolean attributes
-boolHook = {
- set: function( elem, value, name ) {
- if ( value === false ) {
-
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else {
- elem.setAttribute( name, name );
- }
- return name;
- }
-};
-jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
- var getter = attrHandle[ name ] || jQuery.find.attr;
-
- attrHandle[ name ] = function( elem, name, isXML ) {
- var ret, handle;
- if ( !isXML ) {
-
- // Avoid an infinite loop by temporarily removing this function from the getter
- handle = attrHandle[ name ];
- attrHandle[ name ] = ret;
- ret = getter( elem, name, isXML ) != null ?
- name.toLowerCase() :
- null;
- attrHandle[ name ] = handle;
- }
- return ret;
- };
-} );
-
-
-
-
-var rfocusable = /^(?:input|select|textarea|button)$/i,
- rclickable = /^(?:a|area)$/i;
-
-jQuery.fn.extend( {
- prop: function( name, value ) {
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- return this.each( function() {
- delete this[ jQuery.propFix[ name ] || name ];
- } );
- }
-} );
-
-jQuery.extend( {
- prop: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set properties on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- return ( elem[ name ] = value );
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- return elem[ name ];
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
-
- // elem.tabIndex doesn't always return the
- // correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- // Use proper attribute retrieval(#12072)
- var tabindex = jQuery.find.attr( elem, "tabindex" );
-
- return tabindex ?
- parseInt( tabindex, 10 ) :
- rfocusable.test( elem.nodeName ) ||
- rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- -1;
- }
- }
- },
-
- propFix: {
- "for": "htmlFor",
- "class": "className"
- }
-} );
-
-// Support: IE <=11 only
-// Accessing the selectedIndex property
-// forces the browser to respect setting selected
-// on the option
-// The getter ensures a default option is selected
-// when in an optgroup
-if ( !support.optSelected ) {
- jQuery.propHooks.selected = {
- get: function( elem ) {
- var parent = elem.parentNode;
- if ( parent && parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- return null;
- },
- set: function( elem ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
- };
-}
-
-jQuery.each( [
- "tabIndex",
- "readOnly",
- "maxLength",
- "cellSpacing",
- "cellPadding",
- "rowSpan",
- "colSpan",
- "useMap",
- "frameBorder",
- "contentEditable"
-], function() {
- jQuery.propFix[ this.toLowerCase() ] = this;
-} );
-
-
-
-
-var rclass = /[\t\r\n\f]/g;
-
-function getClass( elem ) {
- return elem.getAttribute && elem.getAttribute( "class" ) || "";
-}
-
-jQuery.fn.extend( {
- addClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
- cur += clazz + " ";
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( !arguments.length ) {
- return this.attr( "class", "" );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
-
- // This expression is here for better compressibility (see addClass)
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
-
- // Remove *all* instances
- while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
- cur = cur.replace( " " + clazz + " ", " " );
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value;
-
- if ( typeof stateVal === "boolean" && type === "string" ) {
- return stateVal ? this.addClass( value ) : this.removeClass( value );
- }
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( i ) {
- jQuery( this ).toggleClass(
- value.call( this, i, getClass( this ), stateVal ),
- stateVal
- );
- } );
- }
-
- return this.each( function() {
- var className, i, self, classNames;
-
- if ( type === "string" ) {
-
- // Toggle individual class names
- i = 0;
- self = jQuery( this );
- classNames = value.match( rnotwhite ) || [];
-
- while ( ( className = classNames[ i++ ] ) ) {
-
- // Check each className given, space separated list
- if ( self.hasClass( className ) ) {
- self.removeClass( className );
- } else {
- self.addClass( className );
- }
- }
-
- // Toggle whole class name
- } else if ( value === undefined || type === "boolean" ) {
- className = getClass( this );
- if ( className ) {
-
- // Store className if set
- dataPriv.set( this, "__className__", className );
- }
-
- // If the element has a class name or if we're passed `false`,
- // then remove the whole classname (if there was one, the above saved it).
- // Otherwise bring back whatever was previously saved (if anything),
- // falling back to the empty string if nothing was stored.
- if ( this.setAttribute ) {
- this.setAttribute( "class",
- className || value === false ?
- "" :
- dataPriv.get( this, "__className__" ) || ""
- );
- }
- }
- } );
- },
-
- hasClass: function( selector ) {
- var className, elem,
- i = 0;
-
- className = " " + selector + " ";
- while ( ( elem = this[ i++ ] ) ) {
- if ( elem.nodeType === 1 &&
- ( " " + getClass( elem ) + " " ).replace( rclass, " " )
- .indexOf( className ) > -1
- ) {
- return true;
- }
- }
-
- return false;
- }
-} );
-
-
-
-
-var rreturn = /\r/g,
- rspaces = /[\x20\t\r\n\f]+/g;
-
-jQuery.fn.extend( {
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[ 0 ];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] ||
- jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks &&
- "get" in hooks &&
- ( ret = hooks.get( elem, "value" ) ) !== undefined
- ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
-
- // Handle most common string cases
- ret.replace( rreturn, "" ) :
-
- // Handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each( function( i ) {
- var val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, jQuery( this ).val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
-
- } else if ( typeof val === "number" ) {
- val += "";
-
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map( val, function( value ) {
- return value == null ? "" : value + "";
- } );
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- } );
- }
-} );
-
-jQuery.extend( {
- valHooks: {
- option: {
- get: function( elem ) {
-
- var val = jQuery.find.attr( elem, "value" );
- return val != null ?
- val :
-
- // Support: IE10-11+
- // option.text throws exceptions (#14686, #14858)
- // Strip and collapse whitespace
- // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
- jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
- }
- },
- select: {
- get: function( elem ) {
- var value, option,
- options = elem.options,
- index = elem.selectedIndex,
- one = elem.type === "select-one" || index < 0,
- values = one ? null : [],
- max = one ? index + 1 : options.length,
- i = index < 0 ?
- max :
- one ? index : 0;
-
- // Loop through all the selected options
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // IE8-9 doesn't update selected after form reset (#2551)
- if ( ( option.selected || i === index ) &&
-
- // Don't return options that are disabled or in a disabled optgroup
- ( support.optDisabled ?
- !option.disabled : option.getAttribute( "disabled" ) === null ) &&
- ( !option.parentNode.disabled ||
- !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var optionSet, option,
- options = elem.options,
- values = jQuery.makeArray( value ),
- i = options.length;
-
- while ( i-- ) {
- option = options[ i ];
- if ( option.selected =
- jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
- ) {
- optionSet = true;
- }
- }
-
- // Force browsers to behave consistently when non-matching value is set
- if ( !optionSet ) {
- elem.selectedIndex = -1;
- }
- return values;
- }
- }
- }
-} );
-
-// Radios and checkboxes getter/setter
-jQuery.each( [ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
- }
- }
- };
- if ( !support.checkOn ) {
- jQuery.valHooks[ this ].get = function( elem ) {
- return elem.getAttribute( "value" ) === null ? "on" : elem.value;
- };
- }
-} );
-
-
-
-
-// Return jQuery for attributes-only inclusion
-
-
-var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
-
-jQuery.extend( jQuery.event, {
-
- trigger: function( event, data, elem, onlyHandlers ) {
-
- var i, cur, tmp, bubbleType, ontype, handle, special,
- eventPath = [ elem || document ],
- type = hasOwn.call( event, "type" ) ? event.type : event,
- namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
-
- cur = tmp = elem = elem || document;
-
- // Don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf( "." ) > -1 ) {
-
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split( "." );
- type = namespaces.shift();
- namespaces.sort();
- }
- ontype = type.indexOf( ":" ) < 0 && "on" + type;
-
- // Caller can pass in a jQuery.Event object, Object, or just an event type string
- event = event[ jQuery.expando ] ?
- event :
- new jQuery.Event( type, typeof event === "object" && event );
-
- // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
- event.isTrigger = onlyHandlers ? 2 : 3;
- event.namespace = namespaces.join( "." );
- event.rnamespace = event.namespace ?
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
- null;
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data == null ?
- [ event ] :
- jQuery.makeArray( data, [ event ] );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- if ( !rfocusMorph.test( bubbleType + type ) ) {
- cur = cur.parentNode;
- }
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push( cur );
- tmp = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( tmp === ( elem.ownerDocument || document ) ) {
- eventPath.push( tmp.defaultView || tmp.parentWindow || window );
- }
- }
-
- // Fire handlers on the event path
- i = 0;
- while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
-
- event.type = i > 1 ?
- bubbleType :
- special.bindType || type;
-
- // jQuery handler
- handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
- dataPriv.get( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
-
- // Native handler
- handle = ontype && cur[ ontype ];
- if ( handle && handle.apply && acceptData( cur ) ) {
- event.result = handle.apply( cur, data );
- if ( event.result === false ) {
- event.preventDefault();
- }
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( ( !special._default ||
- special._default.apply( eventPath.pop(), data ) === false ) &&
- acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name name as the event.
- // Don't do default actions on window, that's where global variables be (#6170)
- if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- tmp = elem[ ontype ];
-
- if ( tmp ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- elem[ type ]();
- jQuery.event.triggered = undefined;
-
- if ( tmp ) {
- elem[ ontype ] = tmp;
- }
- }
- }
- }
-
- return event.result;
- },
-
- // Piggyback on a donor event to simulate a different one
- // Used only for `focus(in | out)` events
- simulate: function( type, elem, event ) {
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- {
- type: type,
- isSimulated: true
- }
- );
-
- jQuery.event.trigger( e, null, elem );
- }
-
-} );
-
-jQuery.fn.extend( {
-
- trigger: function( type, data ) {
- return this.each( function() {
- jQuery.event.trigger( type, data, this );
- } );
- },
- triggerHandler: function( type, data ) {
- var elem = this[ 0 ];
- if ( elem ) {
- return jQuery.event.trigger( type, data, elem, true );
- }
- }
-} );
-
-
-jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
- function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-} );
-
-jQuery.fn.extend( {
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-} );
-
-
-
-
-support.focusin = "onfocusin" in window;
-
-
-// Support: Firefox
-// Firefox doesn't have focus(in | out) events
-// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
-//
-// Support: Chrome, Safari
-// focus(in | out) events fire after focus & blur events,
-// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
-// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857
-if ( !support.focusin ) {
- jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler on the document while someone wants focusin/focusout
- var handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix );
-
- if ( !attaches ) {
- doc.addEventListener( orig, handler, true );
- }
- dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
- },
- teardown: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix ) - 1;
-
- if ( !attaches ) {
- doc.removeEventListener( orig, handler, true );
- dataPriv.remove( doc, fix );
-
- } else {
- dataPriv.access( doc, fix, attaches );
- }
- }
- };
- } );
-}
-var location = window.location;
-
-var nonce = jQuery.now();
-
-var rquery = ( /\?/ );
-
-
-
-// Support: Android 2.3
-// Workaround failure to string-cast null input
-jQuery.parseJSON = function( data ) {
- return JSON.parse( data + "" );
-};
-
-
-// Cross-browser xml parsing
-jQuery.parseXML = function( data ) {
- var xml;
- if ( !data || typeof data !== "string" ) {
- return null;
- }
-
- // Support: IE9
- try {
- xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
- } catch ( e ) {
- xml = undefined;
- }
-
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
-};
-
-
-var
- rhash = /#.*$/,
- rts = /([?&])_=[^&]*/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
-
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = "*/".concat( "*" ),
-
- // Anchor tag for parsing the document origin
- originAnchor = document.createElement( "a" );
- originAnchor.href = location.href;
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- var dataType,
- i = 0,
- dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
-
- if ( jQuery.isFunction( func ) ) {
-
- // For each dataType in the dataTypeExpression
- while ( ( dataType = dataTypes[ i++ ] ) ) {
-
- // Prepend if requested
- if ( dataType[ 0 ] === "+" ) {
- dataType = dataType.slice( 1 ) || "*";
- ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
-
- // Otherwise append
- } else {
- ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
- }
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
- var inspected = {},
- seekingTransport = ( structure === transports );
-
- function inspect( dataType ) {
- var selected;
- inspected[ dataType ] = true;
- jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
- var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
- if ( typeof dataTypeOrTransport === "string" &&
- !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
-
- options.dataTypes.unshift( dataTypeOrTransport );
- inspect( dataTypeOrTransport );
- return false;
- } else if ( seekingTransport ) {
- return !( selected = dataTypeOrTransport );
- }
- } );
- return selected;
- }
-
- return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var key, deep,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-
- return target;
-}
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var ct, type, finalDataType, firstDataType,
- contents = s.contents,
- dataTypes = s.dataTypes;
-
- // Remove auto dataType and get content-type in the process
- while ( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
-
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
-
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
- var conv2, current, conv, tmp, prev,
- converters = {},
-
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice();
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- current = dataTypes.shift();
-
- // Convert to each sequential dataType
- while ( current ) {
-
- if ( s.responseFields[ current ] ) {
- jqXHR[ s.responseFields[ current ] ] = response;
- }
-
- // Apply the dataFilter if provided
- if ( !prev && isSuccess && s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- prev = current;
- current = dataTypes.shift();
-
- if ( current ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current === "*" ) {
-
- current = prev;
-
- // Convert response if prev dataType is non-auto and differs from current
- } else if ( prev !== "*" && prev !== current ) {
-
- // Seek a direct converter
- conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
- // If none found, seek a pair
- if ( !conv ) {
- for ( conv2 in converters ) {
-
- // If conv2 outputs current
- tmp = conv2.split( " " );
- if ( tmp[ 1 ] === current ) {
-
- // If prev can be converted to accepted input
- conv = converters[ prev + " " + tmp[ 0 ] ] ||
- converters[ "* " + tmp[ 0 ] ];
- if ( conv ) {
-
- // Condense equivalence converters
- if ( conv === true ) {
- conv = converters[ conv2 ];
-
- // Otherwise, insert the intermediate dataType
- } else if ( converters[ conv2 ] !== true ) {
- current = tmp[ 0 ];
- dataTypes.unshift( tmp[ 1 ] );
- }
- break;
- }
- }
- }
- }
-
- // Apply converter (if not an equivalence)
- if ( conv !== true ) {
-
- // Unless errors are allowed to bubble, catch and return them
- if ( conv && s.throws ) {
- response = conv( response );
- } else {
- try {
- response = conv( response );
- } catch ( e ) {
- return {
- state: "parsererror",
- error: conv ? e : "No conversion from " + prev + " to " + current
- };
- }
- }
- }
- }
- }
- }
-
- return { state: "success", data: response };
-}
-
-jQuery.extend( {
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajaxSettings: {
- url: location.href,
- type: "GET",
- isLocal: rlocalProtocol.test( location.protocol ),
- global: true,
- processData: true,
- async: true,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- throws: false,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- "*": allTypes,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
-
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- url: true,
- context: true
- }
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- return settings ?
-
- // Building a settings object
- ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
- // Extending ajaxSettings
- ajaxExtend( jQuery.ajaxSettings, target );
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var transport,
-
- // URL without anti-cache param
- cacheURL,
-
- // Response headers
- responseHeadersString,
- responseHeaders,
-
- // timeout handle
- timeoutTimer,
-
- // Url cleanup var
- urlAnchor,
-
- // To know if global events are to be dispatched
- fireGlobals,
-
- // Loop variable
- i,
-
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
-
- // Callbacks context
- callbackContext = s.context || s,
-
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context &&
- ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
-
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks( "once memory" ),
-
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
-
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
-
- // The jqXHR state
- state = 0,
-
- // Default abort message
- strAbort = "canceled",
-
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- var lname = name.toLowerCase();
- if ( !state ) {
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( state < 2 ) {
- for ( code in map ) {
-
- // Lazy-add the new callback in a way that preserves old ones
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- } else {
-
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR ).complete = completeDeferred.add;
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (prefilters might expect it)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || location.href ) + "" ).replace( rhash, "" )
- .replace( rprotocol, location.protocol + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
-
- // A cross-domain request is in order when the origin doesn't match the current origin.
- if ( s.crossDomain == null ) {
- urlAnchor = document.createElement( "a" );
-
- // Support: IE8-11+
- // IE throws exception if url is malformed, e.g. http://example.com:80x/
- try {
- urlAnchor.href = s.url;
-
- // Support: IE8-11+
- // Anchor's host property isn't correctly set when s.url is relative
- urlAnchor.href = urlAnchor.href;
- s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
- urlAnchor.protocol + "//" + urlAnchor.host;
- } catch ( e ) {
-
- // If there is an error parsing the URL, assume it is crossDomain,
- // it can be rejected by the transport if it is invalid
- s.crossDomain = true;
- }
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
- fireGlobals = jQuery.event && s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- cacheURL = s.url;
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
-
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
- s.url = rts.test( cacheURL ) ?
-
- // If there is already a '_' parameter, set its value
- cacheURL.replace( rts, "$1_=" + nonce++ ) :
-
- // Otherwise add one to the end
- cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
- }
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
- s.accepts[ s.dataTypes[ 0 ] ] +
- ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend &&
- ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // Aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
-
- // If request was aborted inside ajaxSend, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = window.setTimeout( function() {
- jqXHR.abort( "timeout" );
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch ( e ) {
-
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
-
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- window.clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Determine if successful
- isSuccess = status >= 200 && status < 300 || status === 304;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // Convert no matter what (that way responseXXX fields are always set)
- response = ajaxConvert( s, response, jqXHR, isSuccess );
-
- // If successful, handle type chaining
- if ( isSuccess ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader( "Last-Modified" );
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader( "etag" );
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // if no content
- if ( status === 204 || s.type === "HEAD" ) {
- statusText = "nocontent";
-
- // if not modified
- } else if ( status === 304 ) {
- statusText = "notmodified";
-
- // If we have data, let's convert it
- } else {
- statusText = response.state;
- success = response.data;
- error = response.error;
- isSuccess = !error;
- }
- } else {
-
- // Extract error from statusText and normalize for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- return jqXHR;
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- }
-} );
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
-
- // Shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- // The url can be an options object (which then must have .url)
- return jQuery.ajax( jQuery.extend( {
- url: url,
- type: method,
- dataType: type,
- data: data,
- success: callback
- }, jQuery.isPlainObject( url ) && url ) );
- };
-} );
-
-
-jQuery._evalUrl = function( url ) {
- return jQuery.ajax( {
- url: url,
-
- // Make this explicit, since user can override this through ajaxSetup (#11264)
- type: "GET",
- dataType: "script",
- async: false,
- global: false,
- "throws": true
- } );
-};
-
-
-jQuery.fn.extend( {
- wrapAll: function( html ) {
- var wrap;
-
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapAll( html.call( this, i ) );
- } );
- }
-
- if ( this[ 0 ] ) {
-
- // The elements to wrap the target around
- wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
- if ( this[ 0 ].parentNode ) {
- wrap.insertBefore( this[ 0 ] );
- }
-
- wrap.map( function() {
- var elem = this;
-
- while ( elem.firstElementChild ) {
- elem = elem.firstElementChild;
- }
-
- return elem;
- } ).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapInner( html.call( this, i ) );
- } );
- }
-
- return this.each( function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- } );
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each( function( i ) {
- jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
- } );
- },
-
- unwrap: function() {
- return this.parent().each( function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- } ).end();
- }
-} );
-
-
-jQuery.expr.filters.hidden = function( elem ) {
- return !jQuery.expr.filters.visible( elem );
-};
-jQuery.expr.filters.visible = function( elem ) {
-
- // Support: Opera <= 12.12
- // Opera reports offsetWidths and offsetHeights less than zero on some elements
- // Use OR instead of AND as the element is not visible if either is true
- // See tickets #10406 and #13132
- return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;
-};
-
-
-
-
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-function buildParams( prefix, obj, traditional, add ) {
- var name;
-
- if ( jQuery.isArray( obj ) ) {
-
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
-
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
-
- // Item is non-scalar (array or object), encode its numeric index.
- buildParams(
- prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
- v,
- traditional,
- add
- );
- }
- } );
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
-
- // Serialize object item.
- for ( name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
-
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-jQuery.param = function( a, traditional ) {
- var prefix,
- s = [],
- add = function( key, value ) {
-
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- } );
-
- } else {
-
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" ).replace( r20, "+" );
-};
-
-jQuery.fn.extend( {
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
- serializeArray: function() {
- return this.map( function() {
-
- // Can add propHook for "elements" to filter or add form elements
- var elements = jQuery.prop( this, "elements" );
- return elements ? jQuery.makeArray( elements ) : this;
- } )
- .filter( function() {
- var type = this.type;
-
- // Use .is( ":disabled" ) so that fieldset[disabled] works
- return this.name && !jQuery( this ).is( ":disabled" ) &&
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !rcheckableType.test( type ) );
- } )
- .map( function( i, elem ) {
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val ) {
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ).get();
- }
-} );
-
-
-jQuery.ajaxSettings.xhr = function() {
- try {
- return new window.XMLHttpRequest();
- } catch ( e ) {}
-};
-
-var xhrSuccessStatus = {
-
- // File protocol always yields status code 0, assume 200
- 0: 200,
-
- // Support: IE9
- // #1450: sometimes IE returns 1223 when it should be 204
- 1223: 204
- },
- xhrSupported = jQuery.ajaxSettings.xhr();
-
-support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-support.ajax = xhrSupported = !!xhrSupported;
-
-jQuery.ajaxTransport( function( options ) {
- var callback, errorCallback;
-
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( support.cors || xhrSupported && !options.crossDomain ) {
- return {
- send: function( headers, complete ) {
- var i,
- xhr = options.xhr();
-
- xhr.open(
- options.type,
- options.url,
- options.async,
- options.username,
- options.password
- );
-
- // Apply custom fields if provided
- if ( options.xhrFields ) {
- for ( i in options.xhrFields ) {
- xhr[ i ] = options.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( options.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( options.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
- }
-
- // Set headers
- for ( i in headers ) {
- xhr.setRequestHeader( i, headers[ i ] );
- }
-
- // Callback
- callback = function( type ) {
- return function() {
- if ( callback ) {
- callback = errorCallback = xhr.onload =
- xhr.onerror = xhr.onabort = xhr.onreadystatechange = null;
-
- if ( type === "abort" ) {
- xhr.abort();
- } else if ( type === "error" ) {
-
- // Support: IE9
- // On a manual native abort, IE9 throws
- // errors on any property access that is not readyState
- if ( typeof xhr.status !== "number" ) {
- complete( 0, "error" );
- } else {
- complete(
-
- // File: protocol always yields status 0; see #8605, #14207
- xhr.status,
- xhr.statusText
- );
- }
- } else {
- complete(
- xhrSuccessStatus[ xhr.status ] || xhr.status,
- xhr.statusText,
-
- // Support: IE9 only
- // IE9 has no XHR2 but throws on binary (trac-11426)
- // For XHR2 non-text, let the caller handle it (gh-2498)
- ( xhr.responseType || "text" ) !== "text" ||
- typeof xhr.responseText !== "string" ?
- { binary: xhr.response } :
- { text: xhr.responseText },
- xhr.getAllResponseHeaders()
- );
- }
- }
- };
- };
-
- // Listen to events
- xhr.onload = callback();
- errorCallback = xhr.onerror = callback( "error" );
-
- // Support: IE9
- // Use onreadystatechange to replace onabort
- // to handle uncaught aborts
- if ( xhr.onabort !== undefined ) {
- xhr.onabort = errorCallback;
- } else {
- xhr.onreadystatechange = function() {
-
- // Check readyState before timeout as it changes
- if ( xhr.readyState === 4 ) {
-
- // Allow onerror to be called first,
- // but that will not handle a native abort
- // Also, save errorCallback to a variable
- // as xhr.onerror cannot be accessed
- window.setTimeout( function() {
- if ( callback ) {
- errorCallback();
- }
- } );
- }
- };
- }
-
- // Create the abort callback
- callback = callback( "abort" );
-
- try {
-
- // Do send the request (this may raise an exception)
- xhr.send( options.hasContent && options.data || null );
- } catch ( e ) {
-
- // #14683: Only rethrow if this hasn't been notified as an error yet
- if ( callback ) {
- throw e;
- }
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup( {
- accepts: {
- script: "text/javascript, application/javascript, " +
- "application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-} );
-
-// Handle cache's special case and crossDomain
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- }
-} );
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function( s ) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
- var script, callback;
- return {
- send: function( _, complete ) {
- script = jQuery( "<script>" ).prop( {
- charset: s.scriptCharset,
- src: s.url
- } ).on(
- "load error",
- callback = function( evt ) {
- script.remove();
- callback = null;
- if ( evt ) {
- complete( evt.type === "error" ? 404 : 200, evt.type );
- }
- }
- );
-
- // Use native DOM manipulation to avoid our domManip AJAX trickery
- document.head.appendChild( script[ 0 ] );
- },
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-
-
-
-var oldCallbacks = [],
- rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup( {
- jsonp: "callback",
- jsonpCallback: function() {
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
- this[ callback ] = true;
- return callback;
- }
-} );
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var callbackName, overwritten, responseContainer,
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
- "url" :
- typeof s.data === "string" &&
- ( s.contentType || "" )
- .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
- rjsonp.test( s.data ) && "data"
- );
-
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
- // Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
- s.jsonpCallback() :
- s.jsonpCallback;
-
- // Insert callback into url or form data
- if ( jsonProp ) {
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
- } else if ( s.jsonp !== false ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
- }
-
- // Use data converter to retrieve json after script execution
- s.converters[ "script json" ] = function() {
- if ( !responseContainer ) {
- jQuery.error( callbackName + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // Force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Install callback
- overwritten = window[ callbackName ];
- window[ callbackName ] = function() {
- responseContainer = arguments;
- };
-
- // Clean-up function (fires after converters)
- jqXHR.always( function() {
-
- // If previous value didn't exist - remove it
- if ( overwritten === undefined ) {
- jQuery( window ).removeProp( callbackName );
-
- // Otherwise restore preexisting value
- } else {
- window[ callbackName ] = overwritten;
- }
-
- // Save back as free
- if ( s[ callbackName ] ) {
-
- // Make sure that re-using the options doesn't screw things around
- s.jsonpCallback = originalSettings.jsonpCallback;
-
- // Save the callback name for future use
- oldCallbacks.push( callbackName );
- }
-
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
- overwritten( responseContainer[ 0 ] );
- }
-
- responseContainer = overwritten = undefined;
- } );
-
- // Delegate to script
- return "script";
- }
-} );
-
-
-
-
-// Argument "data" should be string of html
-// context (optional): If specified, the fragment will be created in this context,
-// defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-jQuery.parseHTML = function( data, context, keepScripts ) {
- if ( !data || typeof data !== "string" ) {
- return null;
- }
- if ( typeof context === "boolean" ) {
- keepScripts = context;
- context = false;
- }
- context = context || document;
-
- var parsed = rsingleTag.exec( data ),
- scripts = !keepScripts && [];
-
- // Single tag
- if ( parsed ) {
- return [ context.createElement( parsed[ 1 ] ) ];
- }
-
- parsed = buildFragment( [ data ], context, scripts );
-
- if ( scripts && scripts.length ) {
- jQuery( scripts ).remove();
- }
-
- return jQuery.merge( [], parsed.childNodes );
-};
-
-
-// Keep a copy of the old load method
-var _load = jQuery.fn.load;
-
-/**
- * Load a url into a page
- */
-jQuery.fn.load = function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
- }
-
- var selector, type, response,
- self = this,
- off = url.indexOf( " " );
-
- if ( off > -1 ) {
- selector = jQuery.trim( url.slice( off ) );
- url = url.slice( 0, off );
- }
-
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
-
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( params && typeof params === "object" ) {
- type = "POST";
- }
-
- // If we have elements to modify, make the request
- if ( self.length > 0 ) {
- jQuery.ajax( {
- url: url,
-
- // If "type" variable is undefined, then "GET" method will be used.
- // Make value of this field explicit since
- // user can override it through ajaxSetup method
- type: type || "GET",
- dataType: "html",
- data: params
- } ).done( function( responseText ) {
-
- // Save response for use in complete callback
- response = arguments;
-
- self.html( selector ?
-
- // If a selector was specified, locate the right elements in a dummy div
- // Exclude scripts to avoid IE 'Permission Denied' errors
- jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- // If the request succeeds, this function gets "data", "status", "jqXHR"
- // but they are ignored because response was set above.
- // If it fails, this function gets "jqXHR", "status", "error"
- } ).always( callback && function( jqXHR, status ) {
- self.each( function() {
- callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
- } );
- } );
- }
-
- return this;
-};
-
-
-
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [
- "ajaxStart",
- "ajaxStop",
- "ajaxComplete",
- "ajaxError",
- "ajaxSuccess",
- "ajaxSend"
-], function( i, type ) {
- jQuery.fn[ type ] = function( fn ) {
- return this.on( type, fn );
- };
-} );
-
-
-
-
-jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep( jQuery.timers, function( fn ) {
- return elem === fn.elem;
- } ).length;
-};
-
-
-
-
-/**
- * Gets a window from an element
- */
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
-}
-
-jQuery.offset = {
- setOffset: function( elem, options, i ) {
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
- position = jQuery.css( elem, "position" ),
- curElem = jQuery( elem ),
- props = {};
-
- // Set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- curOffset = curElem.offset();
- curCSSTop = jQuery.css( elem, "top" );
- curCSSLeft = jQuery.css( elem, "left" );
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
- ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
-
- // Need to be able to calculate position if either
- // top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
-
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
-
- // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
- options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
-
- } else {
- curElem.css( props );
- }
- }
-};
-
-jQuery.fn.extend( {
- offset: function( options ) {
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each( function( i ) {
- jQuery.offset.setOffset( this, options, i );
- } );
- }
-
- var docElem, win,
- elem = this[ 0 ],
- box = { top: 0, left: 0 },
- doc = elem && elem.ownerDocument;
-
- if ( !doc ) {
- return;
- }
-
- docElem = doc.documentElement;
-
- // Make sure it's not a disconnected DOM node
- if ( !jQuery.contains( docElem, elem ) ) {
- return box;
- }
-
- box = elem.getBoundingClientRect();
- win = getWindow( doc );
- return {
- top: box.top + win.pageYOffset - docElem.clientTop,
- left: box.left + win.pageXOffset - docElem.clientLeft
- };
- },
-
- position: function() {
- if ( !this[ 0 ] ) {
- return;
- }
-
- var offsetParent, offset,
- elem = this[ 0 ],
- parentOffset = { top: 0, left: 0 };
-
- // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
- // because it is its only offset parent
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
-
- // Assume getBoundingClientRect is there when computed position is fixed
- offset = elem.getBoundingClientRect();
-
- } else {
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent();
-
- // Get correct offsets
- offset = this.offset();
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
- parentOffset = offsetParent.offset();
- }
-
- // Add offsetParent borders
- parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
- parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
- }
-
- // Subtract parent offsets and element margins
- return {
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
- };
- },
-
- // This method will return documentElement in the following cases:
- // 1) For the element inside the iframe without offsetParent, this method will return
- // documentElement of the parent window
- // 2) For the hidden or detached element
- // 3) For body or html element, i.e. in case of the html node - it will return itself
- //
- // but those exceptions were never presented as a real life use-cases
- // and might be considered as more preferable results.
- //
- // This logic, however, is not guaranteed and can change at any point in the future
- offsetParent: function() {
- return this.map( function() {
- var offsetParent = this.offsetParent;
-
- while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
- offsetParent = offsetParent.offsetParent;
- }
-
- return offsetParent || documentElement;
- } );
- }
-} );
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
- var top = "pageYOffset" === prop;
-
- jQuery.fn[ method ] = function( val ) {
- return access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? win[ prop ] : elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : win.pageXOffset,
- top ? val : win.pageYOffset
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length );
- };
-} );
-
-// Support: Safari<7-8+, Chrome<37-44+
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// Blink bug: https://code.google.com/p/chromium/issues/detail?id=229280
-// getComputedStyle returns percent when specified for top/left/bottom/right;
-// rather than make the css module depend on the offset module, just check for it here
-jQuery.each( [ "top", "left" ], function( i, prop ) {
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
- function( elem, computed ) {
- if ( computed ) {
- computed = curCSS( elem, prop );
-
- // If curCSS returns percentage, fallback to offset
- return rnumnonpx.test( computed ) ?
- jQuery( elem ).position()[ prop ] + "px" :
- computed;
- }
- }
- );
-} );
-
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
- function( defaultExtra, funcName ) {
-
- // Margin is only for outerHeight, outerWidth
- jQuery.fn[ funcName ] = function( margin, value ) {
- var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
- extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
- return access( this, function( elem, type, value ) {
- var doc;
-
- if ( jQuery.isWindow( elem ) ) {
-
- // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
- // isn't a whole lot we can do. See pull request at this URL for discussion:
- // https://github.com/jquery/jquery/pull/764
- return elem.document.documentElement[ "client" + name ];
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- doc = elem.documentElement;
-
- // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
- // whichever is greatest
- return Math.max(
- elem.body[ "scroll" + name ], doc[ "scroll" + name ],
- elem.body[ "offset" + name ], doc[ "offset" + name ],
- doc[ "client" + name ]
- );
- }
-
- return value === undefined ?
-
- // Get width or height on the element, requesting but not forcing parseFloat
- jQuery.css( elem, type, extra ) :
-
- // Set width or height on the element
- jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable, null );
- };
- } );
-} );
-
-
-jQuery.fn.extend( {
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
-
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ?
- this.off( selector, "**" ) :
- this.off( types, selector || "**", fn );
- },
- size: function() {
- return this.length;
- }
-} );
-
-jQuery.fn.andSelf = jQuery.fn.addBack;
-
-
-
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-if ( typeof define === "function" && define.amd ) {
- define( "jquery", [], function() {
- return jQuery;
- } );
-}
-
-
-
-var
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$;
-
-jQuery.noConflict = function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
-};
-
-// Expose jQuery and $ identifiers, even in AMD
-// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-if ( !noGlobal ) {
- window.jQuery = window.$ = jQuery;
-}
-
-return jQuery;
-}));
diff --git a/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.min.js b/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.min.js
deleted file mode 100644
index 4024b662..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */
-!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c;
-}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=N.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||d,e=c.documentElement,f=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ea.test(f)?this.mouseHooks:da.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=d),3===a.target.nodeType&&(a.target=a.target.parentNode),h.filter?h.filter(a,g):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ga:ha):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ga,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ga,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ga,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),n.fn.extend({on:function(a,b,c,d){return ja(this,a,b,c,d)},one:function(a,b,c,d){return ja(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=ha),this.each(function(){n.event.remove(this,a,c,b)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=wa[0].contentDocument,b.write(),b.close(),c=ya(a,b),wa.detach()),xa[a]=c),c}var Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Ea=d.documentElement;!function(){var b,c,e,f,g=d.createElement("div"),h=d.createElement("div");if(h.style){h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h);function i(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Ea.appendChild(g);var d=a.getComputedStyle(h);b="1%"!==d.top,f="2px"===d.marginLeft,c="4px"===d.width,h.style.marginRight="50%",e="4px"===d.marginRight,Ea.removeChild(g)}n.extend(l,{pixelPosition:function(){return i(),b},boxSizingReliable:function(){return null==c&&i(),c},pixelMarginRight:function(){return null==c&&i(),e},reliableMarginLeft:function(){return null==c&&i(),f},reliableMarginRight:function(){var b,c=h.appendChild(d.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",Ea.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),Ea.removeChild(g),h.removeChild(c),b}})}}();function Fa(a,b,c){var d,e,f,g,h=a.style;return c=c||Ca(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Ba.test(g)&&Aa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0!==g?g+"":g}function Ga(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;function Ma(a){if(a in La)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ka.length;while(c--)if(a=Ka[c]+b,a in La)return a}function Na(a,b,c){var d=T.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Oa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Pa(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ca(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Fa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ba.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Oa(a,b,c||(g?"border":"content"),d,f)+"px"}function Qa(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=N.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=N.access(d,"olddisplay",za(d.nodeName)))):(e=V(d),"none"===c&&e||N.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Fa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Fa(a,b,d)),"normal"===e&&b in Ja&&(e=Ja[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Ha.test(n.css(a,"display"))&&0===a.offsetWidth?Da(a,Ia,function(){return Pa(a,b,d)}):Pa(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Ca(a),g=d&&Oa(a,b,d,"border-box"===n.css(a,"boxSizing",!1,f),f);return g&&(e=T.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=n.css(a,b)),Na(a,c,g)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Fa(a,"marginLeft"))||a.getBoundingClientRect().left-Da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(a,b){return b?Da(a,{display:"inline-block"},Fa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Aa.test(a)||(n.cssHooks[a+b].set=Na)}),n.fn.extend({css:function(a,b){return K(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ca(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function Ra(a,b,c,d,e){return new Ra.prototype.init(a,b,c,d,e)}n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ra.propHooks[this.prop];return a&&a.get?a.get(this):Ra.propHooks._default.get(this)},run:function(a){var b,c=Ra.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=U[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ya(a,b,c){for(var d,e=(_a.tweeners[b]||[]).concat(_a.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Za(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&V(a),q=N.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?N.get(a,"olddisplay")||za(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Ua.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?za(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=N.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;N.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ya(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function $a(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function _a(a,b,c){var d,e,f=0,g=_a.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Sa||Wa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:Sa||Wa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for($a(k,j.opts.specialEasing);g>f;f++)if(d=_a.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,Ya,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(_a,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],_a.tweeners[c]=_a.tweeners[c]||[],_a.tweeners[c].unshift(b)},prefilters:[Za],prefilter:function(a,b){b?_a.prefilters.unshift(a):_a.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=_a(this,n.extend({},a),f);(e||N.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=N.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Va.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=N.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Xa(b,!0),a,d,e)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Sa=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=d.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var ab,bb=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return K(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ab:void 0)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),ab={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=bb[b]||n.find.attr;bb[b]=function(a,b,d){var e,f;return d||(f=bb[b],bb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,bb[b]=f),e}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return K(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),
-void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;function fb(a){return a.getAttribute&&a.getAttribute("class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,fb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,fb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=fb(this),b&&N.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":N.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+fb(c)+" ").replace(eb," ").indexOf(b)>-1)return!0;return!1}});var gb=/\r/g,hb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(gb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(hb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(n.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ib=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ib.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!n.isWindow(e)){for(j=o.delegateType||q,ib.test(j+q)||(h=h.parentNode);h;h=h.parentNode)p.push(h),i=h;i===(e.ownerDocument||d)&&p.push(i.defaultView||i.parentWindow||a)}g=0;while((h=p[g++])&&!b.isPropagationStopped())b.type=g>1?j:o.bindType||q,m=(N.get(h,"events")||{})[b.type]&&N.get(h,"handle"),m&&m.apply(h,c),m=l&&h[l],m&&m.apply&&L(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!L(e)||l&&n.isFunction(e[q])&&!n.isWindow(e)&&(i=e[l],i&&(e[l]=null),n.event.triggered=q,e[q](),n.event.triggered=void 0,i&&(e[l]=i)),b.result}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b)}}),n.fn.extend({trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=N.access(d,b);e||d.addEventListener(a,c,!0),N.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=N.access(d,b)-1;e?N.access(d,b,e):(d.removeEventListener(a,c,!0),N.remove(d,b))}}});var jb=a.location,kb=n.now(),lb=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var mb=/#.*$/,nb=/([?&])_=[^&]*/,ob=/^(.*?):[ \t]*([^\r\n]*)$/gm,pb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,sb={},tb={},ub="*/".concat("*"),vb=d.createElement("a");vb.href=jb.href;function wb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function xb(a,b,c,d){var e={},f=a===tb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function yb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function zb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Ab(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jb.href,type:"GET",isLocal:pb.test(jb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?yb(yb(a,n.ajaxSettings),b):yb(n.ajaxSettings,a)},ajaxPrefilter:wb(sb),ajaxTransport:wb(tb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m=n.ajaxSetup({},c),o=m.context||m,p=m.context&&(o.nodeType||o.jquery)?n(o):n.event,q=n.Deferred(),r=n.Callbacks("once memory"),s=m.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(2===v){if(!h){h={};while(b=ob.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===v?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return v||(a=u[c]=u[c]||a,t[a]=b),this},overrideMimeType:function(a){return v||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>v)for(b in a)s[b]=[s[b],a[b]];else x.always(a[x.status]);return this},abort:function(a){var b=a||w;return e&&e.abort(b),z(0,b),this}};if(q.promise(x).complete=r.add,x.success=x.done,x.error=x.fail,m.url=((b||m.url||jb.href)+"").replace(mb,"").replace(rb,jb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=n.trim(m.dataType||"*").toLowerCase().match(G)||[""],null==m.crossDomain){j=d.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=vb.protocol+"//"+vb.host!=j.protocol+"//"+j.host}catch(y){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=n.param(m.data,m.traditional)),xb(sb,m,c,x),2===v)return x;k=n.event&&m.global,k&&0===n.active++&&n.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(lb.test(f)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=nb.test(f)?f.replace(nb,"$1_="+kb++):f+(lb.test(f)?"&":"?")+"_="+kb++)),m.ifModified&&(n.lastModified[f]&&x.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&x.setRequestHeader("If-None-Match",n.etag[f])),(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+ub+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)x.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(o,x,m)===!1||2===v))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](m[l]);if(e=xb(tb,m,c,x)){if(x.readyState=1,k&&p.trigger("ajaxSend",[x,m]),2===v)return x;m.async&&m.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},m.timeout));try{v=1,e.send(t,z)}catch(y){if(!(2>v))throw y;z(-1,y)}}else z(-1,"No Transport");function z(b,c,d,h){var j,l,t,u,w,y=c;2!==v&&(v=2,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=zb(m,x,d)),u=Ab(m,u,x,j),j?(m.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(n.lastModified[f]=w),w=x.getResponseHeader("etag"),w&&(n.etag[f]=w)),204===b||"HEAD"===m.type?y="nocontent":304===b?y="notmodified":(y=u.state,l=u.data,t=u.error,j=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),x.status=b,x.statusText=(c||y)+"",j?q.resolveWith(o,[l,y,x]):q.rejectWith(o,[x,y,t]),x.statusCode(s),s=void 0,k&&p.trigger(j?"ajaxSuccess":"ajaxError",[x,m,j?l:t]),r.fireWith(o,[x,y]),k&&(p.trigger("ajaxComplete",[x,m]),--n.active||n.event.trigger("ajaxStop")))}return x},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return!n.expr.filters.visible(a)},n.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Bb=/%20/g,Cb=/\[\]$/,Db=/\r?\n/g,Eb=/^(?:submit|button|image|reset|file)$/i,Fb=/^(?:input|select|textarea|keygen)/i;function Gb(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Cb.test(a)?d(a,e):Gb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Gb(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Gb(c,a[c],b,e);return d.join("&").replace(Bb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Fb.test(this.nodeName)&&!Eb.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Db,"\r\n")}}):{name:b.name,value:c.replace(Db,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Hb={0:200,1223:204},Ib=n.ajaxSettings.xhr();l.cors=!!Ib&&"withCredentials"in Ib,l.ajax=Ib=!!Ib,n.ajaxTransport(function(b){var c,d;return l.cors||Ib&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Hb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=n("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Jb.pop()||n.expando+"_"+kb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Kb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Kb,"$1"+e):b.jsonp!==!1&&(b.url+=(lb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Jb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ca([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var Lb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Lb)return Lb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function Mb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(e=d.getBoundingClientRect(),c=Mb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;n.fn[a]=function(d){return K(this,function(a,d,e){var f=Mb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ga(l.pixelPosition,function(a,c){return c?(c=Fa(a,b),Ba.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return K(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Nb=a.jQuery,Ob=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Ob),b&&a.jQuery===n&&(a.jQuery=Nb),n},b||(a.jQuery=a.$=n),n});
diff --git a/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.min.map b/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.min.map
deleted file mode 100644
index 49efa4b3..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/dist/jquery.min.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["jquery.js"],"names":["global","factory","module","exports","document","w","Error","window","this","noGlobal","arr","slice","concat","push","indexOf","class2type","toString","hasOwn","hasOwnProperty","support","version","jQuery","selector","context","fn","init","rtrim","rmsPrefix","rdashAlpha","fcamelCase","all","letter","toUpperCase","prototype","jquery","constructor","length","toArray","call","get","num","pushStack","elems","ret","merge","prevObject","each","callback","map","elem","i","apply","arguments","first","eq","last","len","j","end","sort","splice","extend","options","name","src","copy","copyIsArray","clone","target","deep","isFunction","isPlainObject","isArray","undefined","expando","Math","random","replace","isReady","error","msg","noop","obj","type","Array","isWindow","isNumeric","realStringObj","parseFloat","key","nodeType","isEmptyObject","globalEval","code","script","indirect","eval","trim","createElement","text","head","appendChild","parentNode","removeChild","camelCase","string","nodeName","toLowerCase","isArrayLike","makeArray","results","Object","inArray","second","grep","invert","callbackInverse","matches","callbackExpect","arg","value","guid","proxy","tmp","args","now","Date","Symbol","iterator","split","Sizzle","Expr","getText","isXML","tokenize","compile","select","outermostContext","sortInput","hasDuplicate","setDocument","docElem","documentIsHTML","rbuggyQSA","rbuggyMatches","contains","preferredDoc","dirruns","done","classCache","createCache","tokenCache","compilerCache","sortOrder","a","b","MAX_NEGATIVE","pop","push_native","list","booleans","whitespace","identifier","attributes","pseudos","rwhitespace","RegExp","rcomma","rcombinators","rattributeQuotes","rpseudo","ridentifier","matchExpr","ID","CLASS","TAG","ATTR","PSEUDO","CHILD","bool","needsContext","rinputs","rheader","rnative","rquickExpr","rsibling","rescape","runescape","funescape","_","escaped","escapedWhitespace","high","String","fromCharCode","unloadHandler","childNodes","e","els","seed","m","nid","nidselect","match","groups","newSelector","newContext","ownerDocument","exec","getElementById","id","getElementsByTagName","getElementsByClassName","qsa","test","getAttribute","setAttribute","toSelector","join","testContext","querySelectorAll","qsaError","removeAttribute","keys","cache","cacheLength","shift","markFunction","assert","div","addHandle","attrs","handler","attrHandle","siblingCheck","cur","diff","sourceIndex","nextSibling","createInputPseudo","createButtonPseudo","createPositionalPseudo","argument","matchIndexes","documentElement","node","hasCompare","parent","doc","defaultView","top","addEventListener","attachEvent","className","createComment","getById","getElementsByName","find","filter","attrId","getAttributeNode","tag","innerHTML","input","matchesSelector","webkitMatchesSelector","mozMatchesSelector","oMatchesSelector","msMatchesSelector","disconnectedMatch","compareDocumentPosition","adown","bup","compare","sortDetached","aup","ap","bp","unshift","expr","elements","attr","val","specified","uniqueSort","duplicates","detectDuplicates","sortStable","textContent","firstChild","nodeValue","selectors","createPseudo","relative",">","dir"," ","+","~","preFilter","excess","unquoted","nodeNameSelector","pattern","operator","check","result","what","simple","forward","ofType","xml","uniqueCache","outerCache","nodeIndex","start","useCache","lastChild","uniqueID","pseudo","setFilters","idx","matched","not","matcher","unmatched","has","innerText","lang","elemLang","hash","location","root","focus","activeElement","hasFocus","href","tabIndex","enabled","disabled","checked","selected","selectedIndex","empty","header","button","even","odd","lt","gt","radio","checkbox","file","password","image","submit","reset","filters","parseOnly","tokens","soFar","preFilters","cached","addCombinator","combinator","base","checkNonElements","doneName","oldCache","newCache","elementMatcher","matchers","multipleContexts","contexts","condense","newUnmatched","mapped","setMatcher","postFilter","postFinder","postSelector","temp","preMap","postMap","preexisting","matcherIn","matcherOut","matcherFromTokens","checkContext","leadingRelative","implicitRelative","matchContext","matchAnyContext","matcherFromGroupMatchers","elementMatchers","setMatchers","bySet","byElement","superMatcher","outermost","matchedCount","setMatched","contextBackup","dirrunsUnique","token","compiled","div1","defaultValue","unique","isXMLDoc","until","truncate","is","siblings","n","rneedsContext","rsingleTag","risSimple","winnow","qualifier","self","rootjQuery","parseHTML","ready","rparentsprev","guaranteedUnique","children","contents","next","prev","targets","l","closest","pos","index","prevAll","add","addBack","sibling","parents","parentsUntil","nextAll","nextUntil","prevUntil","contentDocument","reverse","rnotwhite","createOptions","object","flag","Callbacks","firing","memory","fired","locked","queue","firingIndex","fire","once","stopOnFalse","remove","disable","lock","fireWith","Deferred","func","tuples","state","promise","always","deferred","fail","then","fns","newDefer","tuple","returned","progress","notify","resolve","reject","pipe","stateString","when","subordinate","resolveValues","remaining","updateFunc","values","progressValues","notifyWith","resolveWith","progressContexts","resolveContexts","readyList","readyWait","holdReady","hold","wait","triggerHandler","off","completed","removeEventListener","readyState","doScroll","setTimeout","access","chainable","emptyGet","raw","bulk","acceptData","owner","Data","uid","register","initial","defineProperty","writable","configurable","set","data","prop","stored","camel","hasData","dataPriv","dataUser","rbrace","rmultiDash","dataAttr","parseJSON","removeData","_data","_removeData","camelKey","dequeue","startLength","hooks","_queueHooks","stop","setter","clearQueue","count","defer","pnum","source","rcssNum","cssExpand","isHidden","el","css","adjustCSS","valueParts","tween","adjusted","scale","maxIterations","currentValue","unit","cssNumber","initialInUnit","style","rcheckableType","rtagName","rscriptType","wrapMap","option","thead","col","tr","td","_default","optgroup","tbody","tfoot","colgroup","caption","th","getAll","setGlobalEval","refElements","rhtml","buildFragment","scripts","selection","ignored","wrap","fragment","createDocumentFragment","nodes","htmlPrefilter","createTextNode","checkClone","cloneNode","noCloneChecked","rkeyEvent","rmouseEvent","rtypenamespace","returnTrue","returnFalse","safeActiveElement","err","on","types","one","origFn","event","handleObjIn","eventHandle","events","t","handleObj","special","handlers","namespaces","origType","elemData","handle","triggered","dispatch","delegateType","bindType","namespace","delegateCount","setup","mappedTypes","origCount","teardown","removeEvent","fix","handlerQueue","delegateTarget","preDispatch","isPropagationStopped","currentTarget","isImmediatePropagationStopped","rnamespace","preventDefault","stopPropagation","postDispatch","sel","isNaN","props","fixHooks","keyHooks","original","which","charCode","keyCode","mouseHooks","eventDoc","body","pageX","clientX","scrollLeft","clientLeft","pageY","clientY","scrollTop","clientTop","originalEvent","fixHook","Event","load","noBubble","trigger","blur","click","beforeunload","returnValue","isDefaultPrevented","defaultPrevented","timeStamp","isSimulated","stopImmediatePropagation","mouseenter","mouseleave","pointerenter","pointerleave","orig","related","relatedTarget","rxhtmlTag","rnoInnerhtml","rchecked","rscriptTypeMasked","rcleanScript","manipulationTarget","content","disableScript","restoreScript","cloneCopyEvent","dest","pdataOld","pdataCur","udataOld","udataCur","fixInput","domManip","collection","hasScripts","iNoClone","html","_evalUrl","keepData","cleanData","dataAndEvents","deepDataAndEvents","srcElements","destElements","inPage","detach","append","prepend","insertBefore","before","after","replaceWith","replaceChild","appendTo","prependTo","insertAfter","replaceAll","insert","iframe","elemdisplay","HTML","BODY","actualDisplay","display","defaultDisplay","write","close","rmargin","rnumnonpx","getStyles","view","opener","getComputedStyle","swap","old","pixelPositionVal","boxSizingReliableVal","pixelMarginRightVal","reliableMarginLeftVal","container","backgroundClip","clearCloneStyle","cssText","computeStyleTests","divStyle","marginLeft","width","marginRight","pixelPosition","boxSizingReliable","pixelMarginRight","reliableMarginLeft","reliableMarginRight","marginDiv","curCSS","computed","minWidth","maxWidth","getPropertyValue","addGetHookIf","conditionFn","hookFn","rdisplayswap","cssShow","position","visibility","cssNormalTransform","letterSpacing","fontWeight","cssPrefixes","emptyStyle","vendorPropName","capName","setPositiveNumber","subtract","max","augmentWidthOrHeight","extra","isBorderBox","styles","getWidthOrHeight","valueIsBorderBox","offsetWidth","offsetHeight","showHide","show","hidden","cssHooks","opacity","animationIterationCount","columnCount","fillOpacity","flexGrow","flexShrink","lineHeight","order","orphans","widows","zIndex","zoom","cssProps","float","origName","isFinite","getBoundingClientRect","left","margin","padding","border","prefix","suffix","expand","expanded","parts","hide","toggle","Tween","easing","propHooks","run","percent","eased","duration","step","fx","linear","p","swing","cos","PI","fxNow","timerId","rfxtypes","rrun","createFxNow","genFx","includeWidth","height","createTween","animation","Animation","tweeners","defaultPrefilter","opts","oldfire","checkDisplay","anim","dataShow","unqueued","overflow","overflowX","overflowY","propFilter","specialEasing","properties","stopped","prefilters","tick","currentTime","startTime","tweens","originalProperties","originalOptions","gotoEnd","rejectWith","timer","complete","*","tweener","prefilter","speed","opt","speeds","fadeTo","to","animate","optall","doAnimation","finish","stopQueue","timers","cssFn","slideDown","slideUp","slideToggle","fadeIn","fadeOut","fadeToggle","interval","setInterval","clearInterval","slow","fast","delay","time","timeout","clearTimeout","checkOn","optSelected","optDisabled","radioValue","boolHook","removeAttr","nType","attrHooks","propName","attrNames","propFix","getter","rfocusable","rclickable","removeProp","tabindex","parseInt","for","class","rclass","getClass","addClass","classes","curValue","clazz","finalValue","removeClass","toggleClass","stateVal","classNames","hasClass","rreturn","rspaces","valHooks","optionSet","rfocusMorph","onlyHandlers","bubbleType","ontype","eventPath","isTrigger","parentWindow","simulate","hover","fnOver","fnOut","focusin","attaches","nonce","rquery","JSON","parse","parseXML","DOMParser","parseFromString","rhash","rts","rheaders","rlocalProtocol","rnoContent","rprotocol","transports","allTypes","originAnchor","addToPrefiltersOrTransports","structure","dataTypeExpression","dataType","dataTypes","inspectPrefiltersOrTransports","jqXHR","inspected","seekingTransport","inspect","prefilterOrFactory","dataTypeOrTransport","ajaxExtend","flatOptions","ajaxSettings","ajaxHandleResponses","s","responses","ct","finalDataType","firstDataType","mimeType","getResponseHeader","converters","ajaxConvert","response","isSuccess","conv2","current","conv","responseFields","dataFilter","active","lastModified","etag","url","isLocal","protocol","processData","async","contentType","accepts","json","* text","text html","text json","text xml","ajaxSetup","settings","ajaxPrefilter","ajaxTransport","ajax","transport","cacheURL","responseHeadersString","responseHeaders","timeoutTimer","urlAnchor","fireGlobals","callbackContext","globalEventContext","completeDeferred","statusCode","requestHeaders","requestHeadersNames","strAbort","getAllResponseHeaders","setRequestHeader","lname","overrideMimeType","status","abort","statusText","finalText","success","method","crossDomain","host","param","traditional","hasContent","ifModified","headers","beforeSend","send","nativeStatusText","modified","getJSON","getScript","throws","wrapAll","firstElementChild","wrapInner","unwrap","visible","getClientRects","r20","rbracket","rCRLF","rsubmitterTypes","rsubmittable","buildParams","v","encodeURIComponent","serialize","serializeArray","xhr","XMLHttpRequest","xhrSuccessStatus","0","1223","xhrSupported","cors","errorCallback","open","username","xhrFields","onload","onerror","onabort","onreadystatechange","responseType","responseText","binary","text script","charset","scriptCharset","evt","oldCallbacks","rjsonp","jsonp","jsonpCallback","originalSettings","callbackName","overwritten","responseContainer","jsonProp","keepScripts","parsed","_load","params","animated","getWindow","offset","setOffset","curPosition","curLeft","curCSSTop","curTop","curOffset","curCSSLeft","calculatePosition","curElem","using","win","box","pageYOffset","pageXOffset","offsetParent","parentOffset","scrollTo","Height","Width","","defaultExtra","funcName","bind","unbind","delegate","undelegate","size","andSelf","define","amd","_jQuery","_$","$","noConflict"],"mappings":";CAcC,SAAUA,EAAQC,GAEK,gBAAXC,SAAiD,gBAAnBA,QAAOC,QAQhDD,OAAOC,QAAUH,EAAOI,SACvBH,EAASD,GAAQ,GACjB,SAAUK,GACT,IAAMA,EAAED,SACP,KAAM,IAAIE,OAAO,2CAElB,OAAOL,GAASI,IAGlBJ,EAASD,IAIS,mBAAXO,QAAyBA,OAASC,KAAM,SAAUD,EAAQE,GAOnE,GAAIC,MAEAN,EAAWG,EAAOH,SAElBO,EAAQD,EAAIC,MAEZC,EAASF,EAAIE,OAEbC,EAAOH,EAAIG,KAEXC,EAAUJ,EAAII,QAEdC,KAEAC,EAAWD,EAAWC,SAEtBC,EAASF,EAAWG,eAEpBC,KAKHC,EAAU,QAGVC,EAAS,SAAUC,EAAUC,GAI5B,MAAO,IAAIF,GAAOG,GAAGC,KAAMH,EAAUC,IAKtCG,EAAQ,qCAGRC,EAAY,QACZC,EAAa,eAGbC,EAAa,SAAUC,EAAKC,GAC3B,MAAOA,GAAOC,cAGhBX,GAAOG,GAAKH,EAAOY,WAGlBC,OAAQd,EAERe,YAAad,EAGbC,SAAU,GAGVc,OAAQ,EAERC,QAAS,WACR,MAAO1B,GAAM2B,KAAM9B,OAKpB+B,IAAK,SAAUC,GACd,MAAc,OAAPA,EAGE,EAANA,EAAUhC,KAAMgC,EAAMhC,KAAK4B,QAAW5B,KAAMgC,GAG9C7B,EAAM2B,KAAM9B,OAKdiC,UAAW,SAAUC,GAGpB,GAAIC,GAAMtB,EAAOuB,MAAOpC,KAAK2B,cAAeO,EAO5C,OAJAC,GAAIE,WAAarC,KACjBmC,EAAIpB,QAAUf,KAAKe,QAGZoB,GAIRG,KAAM,SAAUC,GACf,MAAO1B,GAAOyB,KAAMtC,KAAMuC,IAG3BC,IAAK,SAAUD,GACd,MAAOvC,MAAKiC,UAAWpB,EAAO2B,IAAKxC,KAAM,SAAUyC,EAAMC,GACxD,MAAOH,GAAST,KAAMW,EAAMC,EAAGD,OAIjCtC,MAAO,WACN,MAAOH,MAAKiC,UAAW9B,EAAMwC,MAAO3C,KAAM4C,aAG3CC,MAAO,WACN,MAAO7C,MAAK8C,GAAI,IAGjBC,KAAM,WACL,MAAO/C,MAAK8C,GAAI,KAGjBA,GAAI,SAAUJ,GACb,GAAIM,GAAMhD,KAAK4B,OACdqB,GAAKP,GAAU,EAAJA,EAAQM,EAAM,EAC1B,OAAOhD,MAAKiC,UAAWgB,GAAK,GAASD,EAAJC,GAAYjD,KAAMiD,SAGpDC,IAAK,WACJ,MAAOlD,MAAKqC,YAAcrC,KAAK2B,eAKhCtB,KAAMA,EACN8C,KAAMjD,EAAIiD,KACVC,OAAQlD,EAAIkD,QAGbvC,EAAOwC,OAASxC,EAAOG,GAAGqC,OAAS,WAClC,GAAIC,GAASC,EAAMC,EAAKC,EAAMC,EAAaC,EAC1CC,EAAShB,UAAW,OACpBF,EAAI,EACJd,EAASgB,UAAUhB,OACnBiC,GAAO,CAsBR,KAnBuB,iBAAXD,KACXC,EAAOD,EAGPA,EAAShB,UAAWF,OACpBA,KAIsB,gBAAXkB,IAAwB/C,EAAOiD,WAAYF,KACtDA,MAIIlB,IAAMd,IACVgC,EAAS5D,KACT0C,KAGWd,EAAJc,EAAYA,IAGnB,GAAqC,OAA9BY,EAAUV,UAAWF,IAG3B,IAAMa,IAAQD,GACbE,EAAMI,EAAQL,GACdE,EAAOH,EAASC,GAGXK,IAAWH,IAKXI,GAAQJ,IAAU5C,EAAOkD,cAAeN,KAC1CC,EAAc7C,EAAOmD,QAASP,MAE3BC,GACJA,GAAc,EACdC,EAAQH,GAAO3C,EAAOmD,QAASR,GAAQA,MAGvCG,EAAQH,GAAO3C,EAAOkD,cAAeP,GAAQA,KAI9CI,EAAQL,GAAS1C,EAAOwC,OAAQQ,EAAMF,EAAOF,IAGzBQ,SAATR,IACXG,EAAQL,GAASE,GAOrB,OAAOG,IAGR/C,EAAOwC,QAGNa,QAAS,UAAatD,EAAUuD,KAAKC,UAAWC,QAAS,MAAO,IAGhEC,SAAS,EAETC,MAAO,SAAUC,GAChB,KAAM,IAAI1E,OAAO0E,IAGlBC,KAAM,aAENX,WAAY,SAAUY,GACrB,MAA8B,aAAvB7D,EAAO8D,KAAMD,IAGrBV,QAASY,MAAMZ,QAEfa,SAAU,SAAUH,GACnB,MAAc,OAAPA,GAAeA,IAAQA,EAAI3E,QAGnC+E,UAAW,SAAUJ,GAMpB,GAAIK,GAAgBL,GAAOA,EAAIlE,UAC/B,QAAQK,EAAOmD,QAASU,IAAWK,EAAgBC,WAAYD,GAAkB,GAAO,GAGzFhB,cAAe,SAAUW,GACxB,GAAIO,EAMJ,IAA4B,WAAvBpE,EAAO8D,KAAMD,IAAsBA,EAAIQ,UAAYrE,EAAOgE,SAAUH,GACxE,OAAO,CAIR,IAAKA,EAAI/C,cACNlB,EAAOqB,KAAM4C,EAAK,iBAClBjE,EAAOqB,KAAM4C,EAAI/C,YAAYF,cAAiB,iBAChD,OAAO,CAKR,KAAMwD,IAAOP,IAEb,MAAeT,UAARgB,GAAqBxE,EAAOqB,KAAM4C,EAAKO,IAG/CE,cAAe,SAAUT,GACxB,GAAInB,EACJ,KAAMA,IAAQmB,GACb,OAAO,CAER,QAAO,GAGRC,KAAM,SAAUD,GACf,MAAY,OAAPA,EACGA,EAAM,GAIQ,gBAARA,IAAmC,kBAARA,GACxCnE,EAAYC,EAASsB,KAAM4C,KAAW,eAC/BA,IAITU,WAAY,SAAUC,GACrB,GAAIC,GACHC,EAAWC,IAEZH,GAAOxE,EAAO4E,KAAMJ,GAEfA,IAKkC,IAAjCA,EAAK/E,QAAS,eAClBgF,EAAS1F,EAAS8F,cAAe,UACjCJ,EAAOK,KAAON,EACdzF,EAASgG,KAAKC,YAAaP,GAASQ,WAAWC,YAAaT,IAM5DC,EAAUF,KAQbW,UAAW,SAAUC,GACpB,MAAOA,GAAO5B,QAASlD,EAAW,OAAQkD,QAASjD,EAAYC,IAGhE6E,SAAU,SAAUzD,EAAMc,GACzB,MAAOd,GAAKyD,UAAYzD,EAAKyD,SAASC,gBAAkB5C,EAAK4C,eAG9D7D,KAAM,SAAUoC,EAAKnC,GACpB,GAAIX,GAAQc,EAAI,CAEhB,IAAK0D,EAAa1B,IAEjB,IADA9C,EAAS8C,EAAI9C,OACDA,EAAJc,EAAYA,IACnB,GAAKH,EAAST,KAAM4C,EAAKhC,GAAKA,EAAGgC,EAAKhC,OAAU,EAC/C,UAIF,KAAMA,IAAKgC,GACV,GAAKnC,EAAST,KAAM4C,EAAKhC,GAAKA,EAAGgC,EAAKhC,OAAU,EAC/C,KAKH,OAAOgC,IAIRe,KAAM,SAAUE,GACf,MAAe,OAARA,EACN,IACEA,EAAO,IAAKtB,QAASnD,EAAO,KAIhCmF,UAAW,SAAUnG,EAAKoG,GACzB,GAAInE,GAAMmE,KAaV,OAXY,OAAPpG,IACCkG,EAAaG,OAAQrG,IACzBW,EAAOuB,MAAOD,EACE,gBAARjC,IACLA,GAAQA,GAGXG,EAAKyB,KAAMK,EAAKjC,IAIXiC,GAGRqE,QAAS,SAAU/D,EAAMvC,EAAKwC,GAC7B,MAAc,OAAPxC,EAAc,GAAKI,EAAQwB,KAAM5B,EAAKuC,EAAMC,IAGpDN,MAAO,SAAUS,EAAO4D,GAKvB,IAJA,GAAIzD,IAAOyD,EAAO7E,OACjBqB,EAAI,EACJP,EAAIG,EAAMjB,OAECoB,EAAJC,EAASA,IAChBJ,EAAOH,KAAQ+D,EAAQxD,EAKxB,OAFAJ,GAAMjB,OAASc,EAERG,GAGR6D,KAAM,SAAUxE,EAAOK,EAAUoE,GAShC,IARA,GAAIC,GACHC,KACAnE,EAAI,EACJd,EAASM,EAAMN,OACfkF,GAAkBH,EAIP/E,EAAJc,EAAYA,IACnBkE,GAAmBrE,EAAUL,EAAOQ,GAAKA,GACpCkE,IAAoBE,GACxBD,EAAQxG,KAAM6B,EAAOQ,GAIvB,OAAOmE,IAIRrE,IAAK,SAAUN,EAAOK,EAAUwE,GAC/B,GAAInF,GAAQoF,EACXtE,EAAI,EACJP,IAGD,IAAKiE,EAAalE,GAEjB,IADAN,EAASM,EAAMN,OACHA,EAAJc,EAAYA,IACnBsE,EAAQzE,EAAUL,EAAOQ,GAAKA,EAAGqE,GAEnB,MAATC,GACJ7E,EAAI9B,KAAM2G,OAMZ,KAAMtE,IAAKR,GACV8E,EAAQzE,EAAUL,EAAOQ,GAAKA,EAAGqE,GAEnB,MAATC,GACJ7E,EAAI9B,KAAM2G,EAMb,OAAO5G,GAAOuC,SAAWR,IAI1B8E,KAAM,EAINC,MAAO,SAAUlG,EAAID,GACpB,GAAIoG,GAAKC,EAAMF,CAUf,OARwB,gBAAZnG,KACXoG,EAAMnG,EAAID,GACVA,EAAUC,EACVA,EAAKmG,GAKAtG,EAAOiD,WAAY9C,IAKzBoG,EAAOjH,EAAM2B,KAAMc,UAAW,GAC9BsE,EAAQ,WACP,MAAOlG,GAAG2B,MAAO5B,GAAWf,KAAMoH,EAAKhH,OAAQD,EAAM2B,KAAMc,cAI5DsE,EAAMD,KAAOjG,EAAGiG,KAAOjG,EAAGiG,MAAQpG,EAAOoG,OAElCC,GAbP,QAgBDG,IAAKC,KAAKD,IAIV1G,QAASA,IAQa,kBAAX4G,UACX1G,EAAOG,GAAIuG,OAAOC,UAAatH,EAAKqH,OAAOC,WAK5C3G,EAAOyB,KAAM,uEAAuEmF,MAAO,KAC3F,SAAU/E,EAAGa,GACZhD,EAAY,WAAagD,EAAO,KAAQA,EAAK4C,eAG9C,SAASC,GAAa1B,GAMrB,GAAI9C,KAAW8C,GAAO,UAAYA,IAAOA,EAAI9C,OAC5C+C,EAAO9D,EAAO8D,KAAMD,EAErB,OAAc,aAATC,GAAuB9D,EAAOgE,SAAUH,IACrC,EAGQ,UAATC,GAA+B,IAAX/C,GACR,gBAAXA,IAAuBA,EAAS,GAAOA,EAAS,IAAO8C,GAEhE,GAAIgD,GAWJ,SAAW3H,GAEX,GAAI2C,GACH/B,EACAgH,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAGAC,EACAxI,EACAyI,EACAC,EACAC,EACAC,EACA3B,EACA4B,EAGAvE,EAAU,SAAW,EAAI,GAAIoD,MAC7BoB,EAAe3I,EAAOH,SACtB+I,EAAU,EACVC,EAAO,EACPC,EAAaC,KACbC,EAAaD,KACbE,EAAgBF,KAChBG,EAAY,SAAUC,EAAGC,GAIxB,MAHKD,KAAMC,IACVhB,GAAe,GAET,GAIRiB,EAAe,GAAK,GAGpB3I,KAAcC,eACdR,KACAmJ,EAAMnJ,EAAImJ,IACVC,EAAcpJ,EAAIG,KAClBA,EAAOH,EAAIG,KACXF,EAAQD,EAAIC,MAGZG,EAAU,SAAUiJ,EAAM9G,GAGzB,IAFA,GAAIC,GAAI,EACPM,EAAMuG,EAAK3H,OACAoB,EAAJN,EAASA,IAChB,GAAK6G,EAAK7G,KAAOD,EAChB,MAAOC,EAGT,OAAO,IAGR8G,EAAW,6HAKXC,EAAa,sBAGbC,EAAa,mCAGbC,EAAa,MAAQF,EAAa,KAAOC,EAAa,OAASD,EAE9D,gBAAkBA,EAElB,2DAA6DC,EAAa,OAASD,EACnF,OAEDG,EAAU,KAAOF,EAAa,wFAKAC,EAAa,eAM3CE,EAAc,GAAIC,QAAQL,EAAa,IAAK,KAC5CvI,EAAQ,GAAI4I,QAAQ,IAAML,EAAa,8BAAgCA,EAAa,KAAM,KAE1FM,EAAS,GAAID,QAAQ,IAAML,EAAa,KAAOA,EAAa,KAC5DO,EAAe,GAAIF,QAAQ,IAAML,EAAa,WAAaA,EAAa,IAAMA,EAAa,KAE3FQ,EAAmB,GAAIH,QAAQ,IAAML,EAAa,iBAAmBA,EAAa,OAAQ,KAE1FS,EAAU,GAAIJ,QAAQF,GACtBO,EAAc,GAAIL,QAAQ,IAAMJ,EAAa,KAE7CU,GACCC,GAAM,GAAIP,QAAQ,MAAQJ,EAAa,KACvCY,MAAS,GAAIR,QAAQ,QAAUJ,EAAa,KAC5Ca,IAAO,GAAIT,QAAQ,KAAOJ,EAAa,SACvCc,KAAQ,GAAIV,QAAQ,IAAMH,GAC1Bc,OAAU,GAAIX,QAAQ,IAAMF,GAC5Bc,MAAS,GAAIZ,QAAQ,yDAA2DL,EAC/E,+BAAiCA,EAAa,cAAgBA,EAC9D,aAAeA,EAAa,SAAU,KACvCkB,KAAQ,GAAIb,QAAQ,OAASN,EAAW,KAAM,KAG9CoB,aAAgB,GAAId,QAAQ,IAAML,EAAa,mDAC9CA,EAAa,mBAAqBA,EAAa,mBAAoB,MAGrEoB,EAAU,sCACVC,EAAU,SAEVC,EAAU,yBAGVC,EAAa,mCAEbC,EAAW,OACXC,GAAU,QAGVC,GAAY,GAAIrB,QAAQ,qBAAuBL,EAAa,MAAQA,EAAa,OAAQ,MACzF2B,GAAY,SAAUC,EAAGC,EAASC,GACjC,GAAIC,GAAO,KAAOF,EAAU,KAI5B,OAAOE,KAASA,GAAQD,EACvBD,EACO,EAAPE,EAECC,OAAOC,aAAcF,EAAO,OAE5BC,OAAOC,aAAcF,GAAQ,GAAK,MAAe,KAAPA,EAAe,QAO5DG,GAAgB,WACfvD,IAIF,KACC/H,EAAKsC,MACHzC,EAAMC,EAAM2B,KAAM4G,EAAakD,YAChClD,EAAakD,YAId1L,EAAKwI,EAAakD,WAAWhK,QAASsD,SACrC,MAAQ2G,IACTxL,GAASsC,MAAOzC,EAAI0B,OAGnB,SAAUgC,EAAQkI,GACjBxC,EAAY3G,MAAOiB,EAAQzD,EAAM2B,KAAKgK,KAKvC,SAAUlI,EAAQkI,GACjB,GAAI7I,GAAIW,EAAOhC,OACdc,EAAI,CAEL,OAASkB,EAAOX,KAAO6I,EAAIpJ,MAC3BkB,EAAOhC,OAASqB,EAAI,IAKvB,QAASyE,IAAQ5G,EAAUC,EAASuF,EAASyF,GAC5C,GAAIC,GAAGtJ,EAAGD,EAAMwJ,EAAKC,EAAWC,EAAOC,EAAQC,EAC9CC,EAAavL,GAAWA,EAAQwL,cAGhCrH,EAAWnE,EAAUA,EAAQmE,SAAW,CAKzC,IAHAoB,EAAUA,MAGe,gBAAbxF,KAA0BA,GACxB,IAAboE,GAA+B,IAAbA,GAA+B,KAAbA,EAEpC,MAAOoB,EAIR,KAAMyF,KAEEhL,EAAUA,EAAQwL,eAAiBxL,EAAU2H,KAAmB9I,GACtEwI,EAAarH,GAEdA,EAAUA,GAAWnB,EAEhB0I,GAAiB,CAIrB,GAAkB,KAAbpD,IAAoBiH,EAAQnB,EAAWwB,KAAM1L,IAGjD,GAAMkL,EAAIG,EAAM,IAGf,GAAkB,IAAbjH,EAAiB,CACrB,KAAMzC,EAAO1B,EAAQ0L,eAAgBT,IAUpC,MAAO1F,EALP,IAAK7D,EAAKiK,KAAOV,EAEhB,MADA1F,GAAQjG,KAAMoC,GACP6D,MAYT,IAAKgG,IAAe7J,EAAO6J,EAAWG,eAAgBT,KACrDvD,EAAU1H,EAAS0B,IACnBA,EAAKiK,KAAOV,EAGZ,MADA1F,GAAQjG,KAAMoC,GACP6D,MAKH,CAAA,GAAK6F,EAAM,GAEjB,MADA9L,GAAKsC,MAAO2D,EAASvF,EAAQ4L,qBAAsB7L,IAC5CwF,CAGD,KAAM0F,EAAIG,EAAM,KAAOxL,EAAQiM,wBACrC7L,EAAQ6L,uBAGR,MADAvM,GAAKsC,MAAO2D,EAASvF,EAAQ6L,uBAAwBZ,IAC9C1F,EAKT,GAAK3F,EAAQkM,MACX7D,EAAelI,EAAW,QACzByH,IAAcA,EAAUuE,KAAMhM,IAAc,CAE9C,GAAkB,IAAboE,EACJoH,EAAavL,EACbsL,EAAcvL,MAMR,IAAwC,WAAnCC,EAAQmF,SAASC,cAA6B,EAGnD8F,EAAMlL,EAAQgM,aAAc,OACjCd,EAAMA,EAAI5H,QAAS6G,GAAS,QAE5BnK,EAAQiM,aAAc,KAAOf,EAAM/H,GAIpCkI,EAAStE,EAAUhH,GACnB4B,EAAI0J,EAAOxK,OACXsK,EAAY/B,EAAY2C,KAAMb,GAAQ,IAAMA,EAAM,QAAUA,EAAM,IAClE,OAAQvJ,IACP0J,EAAO1J,GAAKwJ,EAAY,IAAMe,GAAYb,EAAO1J,GAElD2J,GAAcD,EAAOc,KAAM,KAG3BZ,EAAarB,EAAS6B,KAAMhM,IAAcqM,GAAapM,EAAQ+E,aAC9D/E,EAGF,GAAKsL,EACJ,IAIC,MAHAhM,GAAKsC,MAAO2D,EACXgG,EAAWc,iBAAkBf,IAEvB/F,EACN,MAAQ+G,IACR,QACIpB,IAAQ/H,GACZnD,EAAQuM,gBAAiB,QAS/B,MAAOtF,GAAQlH,EAASuD,QAASnD,EAAO,MAAQH,EAASuF,EAASyF,GASnE,QAASjD,MACR,GAAIyE,KAEJ,SAASC,GAAOvI,EAAK+B,GAMpB,MAJKuG,GAAKlN,KAAM4E,EAAM,KAAQ0C,EAAK8F,mBAE3BD,GAAOD,EAAKG,SAEZF,EAAOvI,EAAM,KAAQ+B,EAE9B,MAAOwG,GAOR,QAASG,IAAc3M,GAEtB,MADAA,GAAIkD,IAAY,EACTlD,EAOR,QAAS4M,IAAQ5M,GAChB,GAAI6M,GAAMjO,EAAS8F,cAAc,MAEjC,KACC,QAAS1E,EAAI6M,GACZ,MAAOhC,GACR,OAAO,EACN,QAEIgC,EAAI/H,YACR+H,EAAI/H,WAAWC,YAAa8H,GAG7BA,EAAM,MASR,QAASC,IAAWC,EAAOC,GAC1B,GAAI9N,GAAM6N,EAAMtG,MAAM,KACrB/E,EAAIxC,EAAI0B,MAET,OAAQc,IACPiF,EAAKsG,WAAY/N,EAAIwC,IAAOsL,EAU9B,QAASE,IAAchF,EAAGC,GACzB,GAAIgF,GAAMhF,GAAKD,EACdkF,EAAOD,GAAsB,IAAfjF,EAAEhE,UAAiC,IAAfiE,EAAEjE,YAChCiE,EAAEkF,aAAejF,KACjBF,EAAEmF,aAAejF,EAGtB,IAAKgF,EACJ,MAAOA,EAIR,IAAKD,EACJ,MAASA,EAAMA,EAAIG,YAClB,GAAKH,IAAQhF,EACZ,MAAO,EAKV,OAAOD,GAAI,EAAI,GAOhB,QAASqF,IAAmB5J,GAC3B,MAAO,UAAUlC,GAChB,GAAIc,GAAOd,EAAKyD,SAASC,aACzB,OAAgB,UAAT5C,GAAoBd,EAAKkC,OAASA,GAQ3C,QAAS6J,IAAoB7J,GAC5B,MAAO,UAAUlC,GAChB,GAAIc,GAAOd,EAAKyD,SAASC,aACzB,QAAiB,UAAT5C,GAA6B,WAATA,IAAsBd,EAAKkC,OAASA,GAQlE,QAAS8J,IAAwBzN,GAChC,MAAO2M,IAAa,SAAUe,GAE7B,MADAA,IAAYA,EACLf,GAAa,SAAU5B,EAAMlF,GACnC,GAAI5D,GACH0L,EAAe3N,KAAQ+K,EAAKnK,OAAQ8M,GACpChM,EAAIiM,EAAa/M,MAGlB,OAAQc,IACFqJ,EAAO9I,EAAI0L,EAAajM,MAC5BqJ,EAAK9I,KAAO4D,EAAQ5D,GAAK8I,EAAK9I,SAYnC,QAASkK,IAAapM,GACrB,MAAOA,IAAmD,mBAAjCA,GAAQ4L,sBAAwC5L,EAI1EJ,EAAU+G,GAAO/G,WAOjBkH,EAAQH,GAAOG,MAAQ,SAAUpF,GAGhC,GAAImM,GAAkBnM,IAASA,EAAK8J,eAAiB9J,GAAMmM,eAC3D,OAAOA,GAA+C,SAA7BA,EAAgB1I,UAAsB,GAQhEkC,EAAcV,GAAOU,YAAc,SAAUyG,GAC5C,GAAIC,GAAYC,EACfC,EAAMH,EAAOA,EAAKtC,eAAiBsC,EAAOnG,CAG3C,OAAKsG,KAAQpP,GAA6B,IAAjBoP,EAAI9J,UAAmB8J,EAAIJ,iBAKpDhP,EAAWoP,EACX3G,EAAUzI,EAASgP,gBACnBtG,GAAkBT,EAAOjI,IAInBmP,EAASnP,EAASqP,cAAgBF,EAAOG,MAAQH,IAEjDA,EAAOI,iBACXJ,EAAOI,iBAAkB,SAAUxD,IAAe,GAGvCoD,EAAOK,aAClBL,EAAOK,YAAa,WAAYzD,KAUlChL,EAAQgJ,WAAaiE,GAAO,SAAUC,GAErC,MADAA,GAAIwB,UAAY,KACRxB,EAAId,aAAa,eAO1BpM,EAAQgM,qBAAuBiB,GAAO,SAAUC,GAE/C,MADAA,GAAIhI,YAAajG,EAAS0P,cAAc,MAChCzB,EAAIlB,qBAAqB,KAAK/K,SAIvCjB,EAAQiM,uBAAyB7B,EAAQ+B,KAAMlN,EAASgN,wBAMxDjM,EAAQ4O,QAAU3B,GAAO,SAAUC,GAElC,MADAxF,GAAQxC,YAAagI,GAAMnB,GAAKxI,GACxBtE,EAAS4P,oBAAsB5P,EAAS4P,kBAAmBtL,GAAUtC,SAIzEjB,EAAQ4O,SACZ5H,EAAK8H,KAAS,GAAI,SAAU/C,EAAI3L,GAC/B,GAAuC,mBAA3BA,GAAQ0L,gBAAkCnE,EAAiB,CACtE,GAAI0D,GAAIjL,EAAQ0L,eAAgBC,EAChC,OAAOV,IAAMA,QAGfrE,EAAK+H,OAAW,GAAI,SAAUhD,GAC7B,GAAIiD,GAASjD,EAAGrI,QAAS8G,GAAWC,GACpC,OAAO,UAAU3I,GAChB,MAAOA,GAAKsK,aAAa,QAAU4C,YAM9BhI,GAAK8H,KAAS,GAErB9H,EAAK+H,OAAW,GAAK,SAAUhD,GAC9B,GAAIiD,GAASjD,EAAGrI,QAAS8G,GAAWC,GACpC,OAAO,UAAU3I,GAChB,GAAIoM,GAAwC,mBAA1BpM,GAAKmN,kBACtBnN,EAAKmN,iBAAiB,KACvB,OAAOf,IAAQA,EAAK7H,QAAU2I,KAMjChI,EAAK8H,KAAU,IAAI9O,EAAQgM,qBAC1B,SAAUkD,EAAK9O,GACd,MAA6C,mBAAjCA,GAAQ4L,qBACZ5L,EAAQ4L,qBAAsBkD,GAG1BlP,EAAQkM,IACZ9L,EAAQqM,iBAAkByC,GAD3B,QAKR,SAAUA,EAAK9O,GACd,GAAI0B,GACH0E,KACAzE,EAAI,EAEJ4D,EAAUvF,EAAQ4L,qBAAsBkD,EAGzC,IAAa,MAARA,EAAc,CAClB,MAASpN,EAAO6D,EAAQ5D,KACA,IAAlBD,EAAKyC,UACTiC,EAAI9G,KAAMoC,EAIZ,OAAO0E,GAER,MAAOb,IAITqB,EAAK8H,KAAY,MAAI9O,EAAQiM,wBAA0B,SAAUyC,EAAWtO,GAC3E,MAA+C,mBAAnCA,GAAQ6L,wBAA0CtE,EACtDvH,EAAQ6L,uBAAwByC,GADxC,QAWD7G,KAOAD,MAEM5H,EAAQkM,IAAM9B,EAAQ+B,KAAMlN,EAASwN,qBAG1CQ,GAAO,SAAUC,GAMhBxF,EAAQxC,YAAagI,GAAMiC,UAAY,UAAY5L,EAAU,qBAC3CA,EAAU,kEAOvB2J,EAAIT,iBAAiB,wBAAwBxL,QACjD2G,EAAUlI,KAAM,SAAWoJ,EAAa,gBAKnCoE,EAAIT,iBAAiB,cAAcxL,QACxC2G,EAAUlI,KAAM,MAAQoJ,EAAa,aAAeD,EAAW,KAI1DqE,EAAIT,iBAAkB,QAAUlJ,EAAU,MAAOtC,QACtD2G,EAAUlI,KAAK,MAMVwN,EAAIT,iBAAiB,YAAYxL,QACtC2G,EAAUlI,KAAK,YAMVwN,EAAIT,iBAAkB,KAAOlJ,EAAU,MAAOtC,QACnD2G,EAAUlI,KAAK,cAIjBuN,GAAO,SAAUC,GAGhB,GAAIkC,GAAQnQ,EAAS8F,cAAc,QACnCqK,GAAM/C,aAAc,OAAQ,UAC5Ba,EAAIhI,YAAakK,GAAQ/C,aAAc,OAAQ,KAI1Ca,EAAIT,iBAAiB,YAAYxL,QACrC2G,EAAUlI,KAAM,OAASoJ,EAAa,eAKjCoE,EAAIT,iBAAiB,YAAYxL,QACtC2G,EAAUlI,KAAM,WAAY,aAI7BwN,EAAIT,iBAAiB,QACrB7E,EAAUlI,KAAK,YAIXM,EAAQqP,gBAAkBjF,EAAQ+B,KAAOjG,EAAUwB,EAAQxB,SAChEwB,EAAQ4H,uBACR5H,EAAQ6H,oBACR7H,EAAQ8H,kBACR9H,EAAQ+H,qBAERxC,GAAO,SAAUC,GAGhBlN,EAAQ0P,kBAAoBxJ,EAAQ/E,KAAM+L,EAAK,OAI/ChH,EAAQ/E,KAAM+L,EAAK,aACnBrF,EAAcnI,KAAM,KAAMuJ,KAI5BrB,EAAYA,EAAU3G,QAAU,GAAIkI,QAAQvB,EAAU2E,KAAK,MAC3D1E,EAAgBA,EAAc5G,QAAU,GAAIkI,QAAQtB,EAAc0E,KAAK,MAIvE4B,EAAa/D,EAAQ+B,KAAMzE,EAAQiI,yBAKnC7H,EAAWqG,GAAc/D,EAAQ+B,KAAMzE,EAAQI,UAC9C,SAAUS,EAAGC,GACZ,GAAIoH,GAAuB,IAAfrH,EAAEhE,SAAiBgE,EAAE0F,gBAAkB1F,EAClDsH,EAAMrH,GAAKA,EAAErD,UACd,OAAOoD,KAAMsH,MAAWA,GAAwB,IAAjBA,EAAItL,YAClCqL,EAAM9H,SACL8H,EAAM9H,SAAU+H,GAChBtH,EAAEoH,yBAA8D,GAAnCpH,EAAEoH,wBAAyBE,MAG3D,SAAUtH,EAAGC,GACZ,GAAKA,EACJ,MAASA,EAAIA,EAAErD,WACd,GAAKqD,IAAMD,EACV,OAAO,CAIV,QAAO,GAOTD,EAAY6F,EACZ,SAAU5F,EAAGC,GAGZ,GAAKD,IAAMC,EAEV,MADAhB,IAAe,EACR,CAIR,IAAIsI,IAAWvH,EAAEoH,yBAA2BnH,EAAEmH,uBAC9C,OAAKG,GACGA,GAIRA,GAAYvH,EAAEqD,eAAiBrD,MAAUC,EAAEoD,eAAiBpD,GAC3DD,EAAEoH,wBAAyBnH,GAG3B,EAGc,EAAVsH,IACF9P,EAAQ+P,cAAgBvH,EAAEmH,wBAAyBpH,KAAQuH,EAGxDvH,IAAMtJ,GAAYsJ,EAAEqD,gBAAkB7D,GAAgBD,EAASC,EAAcQ,GAC1E,GAEHC,IAAMvJ,GAAYuJ,EAAEoD,gBAAkB7D,GAAgBD,EAASC,EAAcS,GAC1E,EAIDjB,EACJ5H,EAAS4H,EAAWgB,GAAM5I,EAAS4H,EAAWiB,GAChD,EAGe,EAAVsH,EAAc,GAAK,IAE3B,SAAUvH,EAAGC,GAEZ,GAAKD,IAAMC,EAEV,MADAhB,IAAe,EACR,CAGR,IAAIgG,GACHzL,EAAI,EACJiO,EAAMzH,EAAEpD,WACR0K,EAAMrH,EAAErD,WACR8K,GAAO1H,GACP2H,GAAO1H,EAGR,KAAMwH,IAAQH,EACb,MAAOtH,KAAMtJ,EAAW,GACvBuJ,IAAMvJ,EAAW,EACjB+Q,EAAM,GACNH,EAAM,EACNtI,EACE5H,EAAS4H,EAAWgB,GAAM5I,EAAS4H,EAAWiB,GAChD,CAGK,IAAKwH,IAAQH,EACnB,MAAOtC,IAAchF,EAAGC,EAIzBgF,GAAMjF,CACN,OAASiF,EAAMA,EAAIrI,WAClB8K,EAAGE,QAAS3C,EAEbA,GAAMhF,CACN,OAASgF,EAAMA,EAAIrI,WAClB+K,EAAGC,QAAS3C,EAIb,OAAQyC,EAAGlO,KAAOmO,EAAGnO,GACpBA,GAGD,OAAOA,GAENwL,GAAc0C,EAAGlO,GAAImO,EAAGnO,IAGxBkO,EAAGlO,KAAOgG,EAAe,GACzBmI,EAAGnO,KAAOgG,EAAe,EACzB,GAGK9I,GArWCA,GAwWT8H,GAAOb,QAAU,SAAUkK,EAAMC,GAChC,MAAOtJ,IAAQqJ,EAAM,KAAM,KAAMC,IAGlCtJ,GAAOsI,gBAAkB,SAAUvN,EAAMsO,GASxC,IAPOtO,EAAK8J,eAAiB9J,KAAW7C,GACvCwI,EAAa3F,GAIdsO,EAAOA,EAAK1M,QAAS4F,EAAkB,UAElCtJ,EAAQqP,iBAAmB1H,IAC9BU,EAAe+H,EAAO,QACpBvI,IAAkBA,EAAcsE,KAAMiE,OACtCxI,IAAkBA,EAAUuE,KAAMiE,IAErC,IACC,GAAI5O,GAAM0E,EAAQ/E,KAAMW,EAAMsO,EAG9B,IAAK5O,GAAOxB,EAAQ0P,mBAGlB5N,EAAK7C,UAAuC,KAA3B6C,EAAK7C,SAASsF,SAChC,MAAO/C,GAEP,MAAO0J,IAGV,MAAOnE,IAAQqJ,EAAMnR,EAAU,MAAQ6C,IAASb,OAAS,GAG1D8F,GAAOe,SAAW,SAAU1H,EAAS0B,GAKpC,OAHO1B,EAAQwL,eAAiBxL,KAAcnB,GAC7CwI,EAAarH,GAEP0H,EAAU1H,EAAS0B,IAG3BiF,GAAOuJ,KAAO,SAAUxO,EAAMc,IAEtBd,EAAK8J,eAAiB9J,KAAW7C,GACvCwI,EAAa3F,EAGd,IAAIzB,GAAK2G,EAAKsG,WAAY1K,EAAK4C,eAE9B+K,EAAMlQ,GAAMP,EAAOqB,KAAM6F,EAAKsG,WAAY1K,EAAK4C,eAC9CnF,EAAIyB,EAAMc,GAAO+E,GACjBrE,MAEF,OAAeA,UAARiN,EACNA,EACAvQ,EAAQgJ,aAAerB,EACtB7F,EAAKsK,aAAcxJ,IAClB2N,EAAMzO,EAAKmN,iBAAiBrM,KAAU2N,EAAIC,UAC1CD,EAAIlK,MACJ,MAGJU,GAAOnD,MAAQ,SAAUC,GACxB,KAAM,IAAI1E,OAAO,0CAA4C0E,IAO9DkD,GAAO0J,WAAa,SAAU9K,GAC7B,GAAI7D,GACH4O,KACApO,EAAI,EACJP,EAAI,CAOL,IAJAyF,GAAgBxH,EAAQ2Q,iBACxBpJ,GAAavH,EAAQ4Q,YAAcjL,EAAQnG,MAAO,GAClDmG,EAAQnD,KAAM8F,GAETd,EAAe,CACnB,MAAS1F,EAAO6D,EAAQ5D,KAClBD,IAAS6D,EAAS5D,KACtBO,EAAIoO,EAAWhR,KAAMqC,GAGvB,OAAQO,IACPqD,EAAQlD,OAAQiO,EAAYpO,GAAK,GAQnC,MAFAiF,GAAY,KAEL5B,GAORsB,EAAUF,GAAOE,QAAU,SAAUnF,GACpC,GAAIoM,GACH1M,EAAM,GACNO,EAAI,EACJwC,EAAWzC,EAAKyC,QAEjB,IAAMA,GAMC,GAAkB,IAAbA,GAA+B,IAAbA,GAA+B,KAAbA,EAAkB,CAGjE,GAAiC,gBAArBzC,GAAK+O,YAChB,MAAO/O,GAAK+O,WAGZ,KAAM/O,EAAOA,EAAKgP,WAAYhP,EAAMA,EAAOA,EAAK6L,YAC/CnM,GAAOyF,EAASnF,OAGZ,IAAkB,IAAbyC,GAA+B,IAAbA,EAC7B,MAAOzC,GAAKiP,cAhBZ,OAAS7C,EAAOpM,EAAKC,KAEpBP,GAAOyF,EAASiH,EAkBlB,OAAO1M,IAGRwF,EAAOD,GAAOiK,WAGblE,YAAa,GAEbmE,aAAcjE,GAEdxB,MAAO/B,EAEP6D,cAEAwB,QAEAoC,UACCC,KAAOC,IAAK,aAAclP,OAAO,GACjCmP,KAAOD,IAAK,cACZE,KAAOF,IAAK,kBAAmBlP,OAAO,GACtCqP,KAAOH,IAAK,oBAGbI,WACC3H,KAAQ,SAAU2B,GAUjB,MATAA,GAAM,GAAKA,EAAM,GAAG9H,QAAS8G,GAAWC,IAGxCe,EAAM,IAAOA,EAAM,IAAMA,EAAM,IAAMA,EAAM,IAAM,IAAK9H,QAAS8G,GAAWC,IAExD,OAAbe,EAAM,KACVA,EAAM,GAAK,IAAMA,EAAM,GAAK,KAGtBA,EAAMhM,MAAO,EAAG,IAGxBuK,MAAS,SAAUyB,GA6BlB,MAlBAA,GAAM,GAAKA,EAAM,GAAGhG,cAEY,QAA3BgG,EAAM,GAAGhM,MAAO,EAAG,IAEjBgM,EAAM,IACXzE,GAAOnD,MAAO4H,EAAM,IAKrBA,EAAM,KAAQA,EAAM,GAAKA,EAAM,IAAMA,EAAM,IAAM,GAAK,GAAmB,SAAbA,EAAM,IAA8B,QAAbA,EAAM,KACzFA,EAAM,KAAUA,EAAM,GAAKA,EAAM,IAAqB,QAAbA,EAAM,KAGpCA,EAAM,IACjBzE,GAAOnD,MAAO4H,EAAM,IAGdA,GAGR1B,OAAU,SAAU0B,GACnB,GAAIiG,GACHC,GAAYlG,EAAM,IAAMA,EAAM,EAE/B,OAAK/B,GAAiB,MAAE0C,KAAMX,EAAM,IAC5B,MAIHA,EAAM,GACVA,EAAM,GAAKA,EAAM,IAAMA,EAAM,IAAM,GAGxBkG,GAAYnI,EAAQ4C,KAAMuF,KAEpCD,EAAStK,EAAUuK,GAAU,MAE7BD,EAASC,EAAS/R,QAAS,IAAK+R,EAASzQ,OAASwQ,GAAWC,EAASzQ,UAGvEuK,EAAM,GAAKA,EAAM,GAAGhM,MAAO,EAAGiS,GAC9BjG,EAAM,GAAKkG,EAASlS,MAAO,EAAGiS,IAIxBjG,EAAMhM,MAAO,EAAG,MAIzBuP,QAECnF,IAAO,SAAU+H,GAChB,GAAIpM,GAAWoM,EAAiBjO,QAAS8G,GAAWC,IAAYjF,aAChE,OAA4B,MAArBmM,EACN,WAAa,OAAO,GACpB,SAAU7P,GACT,MAAOA,GAAKyD,UAAYzD,EAAKyD,SAASC,gBAAkBD,IAI3DoE,MAAS,SAAU+E,GAClB,GAAIkD,GAAU1J,EAAYwG,EAAY,IAEtC,OAAOkD,KACLA,EAAU,GAAIzI,QAAQ,MAAQL,EAAa,IAAM4F,EAAY,IAAM5F,EAAa,SACjFZ,EAAYwG,EAAW,SAAU5M,GAChC,MAAO8P,GAAQzF,KAAgC,gBAAnBrK,GAAK4M,WAA0B5M,EAAK4M,WAA0C,mBAAtB5M,GAAKsK,cAAgCtK,EAAKsK,aAAa,UAAY,OAI1JvC,KAAQ,SAAUjH,EAAMiP,EAAUC,GACjC,MAAO,UAAUhQ,GAChB,GAAIiQ,GAAShL,GAAOuJ,KAAMxO,EAAMc,EAEhC,OAAe,OAAVmP,EACgB,OAAbF,EAEFA,GAINE,GAAU,GAEU,MAAbF,EAAmBE,IAAWD,EACvB,OAAbD,EAAoBE,IAAWD,EAClB,OAAbD,EAAoBC,GAAqC,IAA5BC,EAAOpS,QAASmS,GAChC,OAAbD,EAAoBC,GAASC,EAAOpS,QAASmS,GAAU,GAC1C,OAAbD,EAAoBC,GAASC,EAAOvS,OAAQsS,EAAM7Q,UAAa6Q,EAClD,OAAbD,GAAsB,IAAME,EAAOrO,QAASwF,EAAa,KAAQ,KAAMvJ,QAASmS,GAAU,GAC7E,OAAbD,EAAoBE,IAAWD,GAASC,EAAOvS,MAAO,EAAGsS,EAAM7Q,OAAS,KAAQ6Q,EAAQ,KACxF,IAZO,IAgBV/H,MAAS,SAAU/F,EAAMgO,EAAMjE,EAAU7L,EAAOE,GAC/C,GAAI6P,GAAgC,QAAvBjO,EAAKxE,MAAO,EAAG,GAC3B0S,EAA+B,SAArBlO,EAAKxE,MAAO,IACtB2S,EAAkB,YAATH,CAEV,OAAiB,KAAV9P,GAAwB,IAATE,EAGrB,SAAUN,GACT,QAASA,EAAKqD,YAGf,SAAUrD,EAAM1B,EAASgS,GACxB,GAAIvF,GAAOwF,EAAaC,EAAYpE,EAAMqE,EAAWC,EACpDpB,EAAMa,IAAWC,EAAU,cAAgB,kBAC3C9D,EAAStM,EAAKqD,WACdvC,EAAOuP,GAAUrQ,EAAKyD,SAASC,cAC/BiN,GAAYL,IAAQD,EACpB1E,GAAO,CAER,IAAKW,EAAS,CAGb,GAAK6D,EAAS,CACb,MAAQb,EAAM,CACblD,EAAOpM,CACP,OAASoM,EAAOA,EAAMkD,GACrB,GAAKe,EACJjE,EAAK3I,SAASC,gBAAkB5C,EACd,IAAlBsL,EAAK3J,SAEL,OAAO,CAITiO,GAAQpB,EAAe,SAATpN,IAAoBwO,GAAS,cAE5C,OAAO,EAMR,GAHAA,GAAUN,EAAU9D,EAAO0C,WAAa1C,EAAOsE,WAG1CR,GAAWO,EAAW,CAK1BvE,EAAOE,EACPkE,EAAapE,EAAM3K,KAAc2K,EAAM3K,OAIvC8O,EAAcC,EAAYpE,EAAKyE,YAC7BL,EAAYpE,EAAKyE,cAEnB9F,EAAQwF,EAAarO,OACrBuO,EAAY1F,EAAO,KAAQ7E,GAAW6E,EAAO,GAC7CY,EAAO8E,GAAa1F,EAAO,GAC3BqB,EAAOqE,GAAanE,EAAOnD,WAAYsH,EAEvC,OAASrE,IAASqE,GAAarE,GAAQA,EAAMkD,KAG3C3D,EAAO8E,EAAY,IAAMC,EAAM9J,MAGhC,GAAuB,IAAlBwF,EAAK3J,YAAoBkJ,GAAQS,IAASpM,EAAO,CACrDuQ,EAAarO,IAAWgE,EAASuK,EAAW9E,EAC5C,YAuBF,IAjBKgF,IAEJvE,EAAOpM,EACPwQ,EAAapE,EAAM3K,KAAc2K,EAAM3K,OAIvC8O,EAAcC,EAAYpE,EAAKyE,YAC7BL,EAAYpE,EAAKyE,cAEnB9F,EAAQwF,EAAarO,OACrBuO,EAAY1F,EAAO,KAAQ7E,GAAW6E,EAAO,GAC7CY,EAAO8E,GAKH9E,KAAS,EAEb,MAASS,IAASqE,GAAarE,GAAQA,EAAMkD,KAC3C3D,EAAO8E,EAAY,IAAMC,EAAM9J,MAEhC,IAAOyJ,EACNjE,EAAK3I,SAASC,gBAAkB5C,EACd,IAAlBsL,EAAK3J,aACHkJ,IAGGgF,IACJH,EAAapE,EAAM3K,KAAc2K,EAAM3K,OAIvC8O,EAAcC,EAAYpE,EAAKyE,YAC7BL,EAAYpE,EAAKyE,cAEnBN,EAAarO,IAAWgE,EAASyF,IAG7BS,IAASpM,GACb,KASL,OADA2L,IAAQrL,EACDqL,IAASvL,GAAWuL,EAAOvL,IAAU,GAAKuL,EAAOvL,GAAS,KAKrE4H,OAAU,SAAU8I,EAAQ7E,GAK3B,GAAItH,GACHpG,EAAK2G,EAAKiC,QAAS2J,IAAY5L,EAAK6L,WAAYD,EAAOpN,gBACtDuB,GAAOnD,MAAO,uBAAyBgP,EAKzC,OAAKvS,GAAIkD,GACDlD,EAAI0N,GAIP1N,EAAGY,OAAS,GAChBwF,GAASmM,EAAQA,EAAQ,GAAI7E,GACtB/G,EAAK6L,WAAW9S,eAAgB6S,EAAOpN,eAC7CwH,GAAa,SAAU5B,EAAMlF,GAC5B,GAAI4M,GACHC,EAAU1S,EAAI+K,EAAM2C,GACpBhM,EAAIgR,EAAQ9R,MACb,OAAQc,IACP+Q,EAAMnT,EAASyL,EAAM2H,EAAQhR,IAC7BqJ,EAAM0H,KAAW5M,EAAS4M,GAAQC,EAAQhR,MAG5C,SAAUD,GACT,MAAOzB,GAAIyB,EAAM,EAAG2E,KAIhBpG,IAIT4I,SAEC+J,IAAOhG,GAAa,SAAU7M,GAI7B,GAAIiP,MACHzJ,KACAsN,EAAU7L,EAASjH,EAASuD,QAASnD,EAAO,MAE7C,OAAO0S,GAAS1P,GACfyJ,GAAa,SAAU5B,EAAMlF,EAAS9F,EAASgS,GAC9C,GAAItQ,GACHoR,EAAYD,EAAS7H,EAAM,KAAMgH,MACjCrQ,EAAIqJ,EAAKnK,MAGV,OAAQc,KACDD,EAAOoR,EAAUnR,MACtBqJ,EAAKrJ,KAAOmE,EAAQnE,GAAKD,MAI5B,SAAUA,EAAM1B,EAASgS,GAKxB,MAJAhD,GAAM,GAAKtN,EACXmR,EAAS7D,EAAO,KAAMgD,EAAKzM,GAE3ByJ,EAAM,GAAK,MACHzJ,EAAQ+C,SAInByK,IAAOnG,GAAa,SAAU7M,GAC7B,MAAO,UAAU2B,GAChB,MAAOiF,IAAQ5G,EAAU2B,GAAOb,OAAS,KAI3C6G,SAAYkF,GAAa,SAAUhI,GAElC,MADAA,GAAOA,EAAKtB,QAAS8G,GAAWC,IACzB,SAAU3I,GAChB,OAASA,EAAK+O,aAAe/O,EAAKsR,WAAanM,EAASnF,IAASnC,QAASqF,GAAS,MAWrFqO,KAAQrG,GAAc,SAAUqG,GAM/B,MAJM7J,GAAY2C,KAAKkH,GAAQ,KAC9BtM,GAAOnD,MAAO,qBAAuByP,GAEtCA,EAAOA,EAAK3P,QAAS8G,GAAWC,IAAYjF,cACrC,SAAU1D,GAChB,GAAIwR,EACJ,GACC,IAAMA,EAAW3L,EAChB7F,EAAKuR,KACLvR,EAAKsK,aAAa,aAAetK,EAAKsK,aAAa,QAGnD,MADAkH,GAAWA,EAAS9N,cACb8N,IAAaD,GAA2C,IAAnCC,EAAS3T,QAAS0T,EAAO,YAE5CvR,EAAOA,EAAKqD,aAAiC,IAAlBrD,EAAKyC,SAC3C,QAAO,KAKTtB,OAAU,SAAUnB,GACnB,GAAIyR,GAAOnU,EAAOoU,UAAYpU,EAAOoU,SAASD,IAC9C,OAAOA,IAAQA,EAAK/T,MAAO,KAAQsC,EAAKiK,IAGzC0H,KAAQ,SAAU3R,GACjB,MAAOA,KAAS4F,GAGjBgM,MAAS,SAAU5R,GAClB,MAAOA,KAAS7C,EAAS0U,iBAAmB1U,EAAS2U,UAAY3U,EAAS2U,gBAAkB9R,EAAKkC,MAAQlC,EAAK+R,OAAS/R,EAAKgS,WAI7HC,QAAW,SAAUjS,GACpB,MAAOA,GAAKkS,YAAa,GAG1BA,SAAY,SAAUlS,GACrB,MAAOA,GAAKkS,YAAa,GAG1BC,QAAW,SAAUnS,GAGpB,GAAIyD,GAAWzD,EAAKyD,SAASC,aAC7B,OAAqB,UAAbD,KAA0BzD,EAAKmS,SAA0B,WAAb1O,KAA2BzD,EAAKoS,UAGrFA,SAAY,SAAUpS,GAOrB,MAJKA,GAAKqD,YACTrD,EAAKqD,WAAWgP,cAGVrS,EAAKoS,YAAa,GAI1BE,MAAS,SAAUtS,GAKlB,IAAMA,EAAOA,EAAKgP,WAAYhP,EAAMA,EAAOA,EAAK6L,YAC/C,GAAK7L,EAAKyC,SAAW,EACpB,OAAO,CAGT,QAAO,GAGR6J,OAAU,SAAUtM,GACnB,OAAQkF,EAAKiC,QAAe,MAAGnH,IAIhCuS,OAAU,SAAUvS,GACnB,MAAOqI,GAAQgC,KAAMrK,EAAKyD,WAG3B6J,MAAS,SAAUtN,GAClB,MAAOoI,GAAQiC,KAAMrK,EAAKyD,WAG3B+O,OAAU,SAAUxS,GACnB,GAAIc,GAAOd,EAAKyD,SAASC,aACzB,OAAgB,UAAT5C,GAAkC,WAAdd,EAAKkC,MAA8B,WAATpB,GAGtDoC,KAAQ,SAAUlD,GACjB,GAAIwO,EACJ,OAAuC,UAAhCxO,EAAKyD,SAASC,eACN,SAAd1D,EAAKkC,OAImC,OAArCsM,EAAOxO,EAAKsK,aAAa,UAA2C,SAAvBkE,EAAK9K,gBAIvDtD,MAAS4L,GAAuB,WAC/B,OAAS,KAGV1L,KAAQ0L,GAAuB,SAAUE,EAAc/M,GACtD,OAASA,EAAS,KAGnBkB,GAAM2L,GAAuB,SAAUE,EAAc/M,EAAQ8M,GAC5D,OAAoB,EAAXA,EAAeA,EAAW9M,EAAS8M,KAG7CwG,KAAQzG,GAAuB,SAAUE,EAAc/M,GAEtD,IADA,GAAIc,GAAI,EACId,EAAJc,EAAYA,GAAK,EACxBiM,EAAatO,KAAMqC,EAEpB,OAAOiM,KAGRwG,IAAO1G,GAAuB,SAAUE,EAAc/M,GAErD,IADA,GAAIc,GAAI,EACId,EAAJc,EAAYA,GAAK,EACxBiM,EAAatO,KAAMqC,EAEpB,OAAOiM,KAGRyG,GAAM3G,GAAuB,SAAUE,EAAc/M,EAAQ8M,GAE5D,IADA,GAAIhM,GAAe,EAAXgM,EAAeA,EAAW9M,EAAS8M,IACjChM,GAAK,GACdiM,EAAatO,KAAMqC,EAEpB,OAAOiM,KAGR0G,GAAM5G,GAAuB,SAAUE,EAAc/M,EAAQ8M,GAE5D,IADA,GAAIhM,GAAe,EAAXgM,EAAeA,EAAW9M,EAAS8M,IACjChM,EAAId,GACb+M,EAAatO,KAAMqC,EAEpB,OAAOiM,OAKVhH,EAAKiC,QAAa,IAAIjC,EAAKiC,QAAY,EAGvC,KAAMlH,KAAO4S,OAAO,EAAMC,UAAU,EAAMC,MAAM,EAAMC,UAAU,EAAMC,OAAO,GAC5E/N,EAAKiC,QAASlH,GAAM6L,GAAmB7L,EAExC,KAAMA,KAAOiT,QAAQ,EAAMC,OAAO,GACjCjO,EAAKiC,QAASlH,GAAM8L,GAAoB9L,EAIzC,SAAS8Q,OACTA,GAAW/R,UAAYkG,EAAKkO,QAAUlO,EAAKiC,QAC3CjC,EAAK6L,WAAa,GAAIA,IAEtB1L,EAAWJ,GAAOI,SAAW,SAAUhH,EAAUgV,GAChD,GAAIpC,GAASvH,EAAO4J,EAAQpR,EAC3BqR,EAAO5J,EAAQ6J,EACfC,EAASnN,EAAYjI,EAAW,IAEjC,IAAKoV,EACJ,MAAOJ,GAAY,EAAII,EAAO/V,MAAO,EAGtC6V,GAAQlV,EACRsL,KACA6J,EAAatO,EAAKwK,SAElB,OAAQ6D,EAAQ,CAGTtC,KAAYvH,EAAQpC,EAAOyC,KAAMwJ,MACjC7J,IAEJ6J,EAAQA,EAAM7V,MAAOgM,EAAM,GAAGvK,SAAYoU,GAE3C5J,EAAO/L,KAAO0V,OAGfrC,GAAU,GAGJvH,EAAQnC,EAAawC,KAAMwJ,MAChCtC,EAAUvH,EAAMuB,QAChBqI,EAAO1V,MACN2G,MAAO0M,EAEP/O,KAAMwH,EAAM,GAAG9H,QAASnD,EAAO,OAEhC8U,EAAQA,EAAM7V,MAAOuT,EAAQ9R,QAI9B,KAAM+C,IAAQgD,GAAK+H,SACZvD,EAAQ/B,EAAWzF,GAAO6H,KAAMwJ,KAAcC,EAAYtR,MAC9DwH,EAAQ8J,EAAYtR,GAAQwH,MAC7BuH,EAAUvH,EAAMuB,QAChBqI,EAAO1V,MACN2G,MAAO0M,EACP/O,KAAMA,EACNkC,QAASsF,IAEV6J,EAAQA,EAAM7V,MAAOuT,EAAQ9R,QAI/B,KAAM8R,EACL,MAOF,MAAOoC,GACNE,EAAMpU,OACNoU,EACCtO,GAAOnD,MAAOzD,GAEdiI,EAAYjI,EAAUsL,GAASjM,MAAO,GAGzC,SAAS8M,IAAY8I,GAIpB,IAHA,GAAIrT,GAAI,EACPM,EAAM+S,EAAOnU,OACbd,EAAW,GACAkC,EAAJN,EAASA,IAChB5B,GAAYiV,EAAOrT,GAAGsE,KAEvB,OAAOlG,GAGR,QAASqV,IAAevC,EAASwC,EAAYC,GAC5C,GAAItE,GAAMqE,EAAWrE,IACpBuE,EAAmBD,GAAgB,eAARtE,EAC3BwE,EAAW3N,GAEZ,OAAOwN,GAAWvT,MAEjB,SAAUJ,EAAM1B,EAASgS,GACxB,MAAStQ,EAAOA,EAAMsP,GACrB,GAAuB,IAAlBtP,EAAKyC,UAAkBoR,EAC3B,MAAO1C,GAASnR,EAAM1B,EAASgS,IAMlC,SAAUtQ,EAAM1B,EAASgS,GACxB,GAAIyD,GAAUxD,EAAaC,EAC1BwD,GAAa9N,EAAS4N,EAGvB,IAAKxD,GACJ,MAAStQ,EAAOA,EAAMsP,GACrB,IAAuB,IAAlBtP,EAAKyC,UAAkBoR,IACtB1C,EAASnR,EAAM1B,EAASgS,GAC5B,OAAO,MAKV,OAAStQ,EAAOA,EAAMsP,GACrB,GAAuB,IAAlBtP,EAAKyC,UAAkBoR,EAAmB,CAO9C,GANArD,EAAaxQ,EAAMyB,KAAczB,EAAMyB,OAIvC8O,EAAcC,EAAYxQ,EAAK6Q,YAAeL,EAAYxQ,EAAK6Q,eAEzDkD,EAAWxD,EAAajB,KAC7ByE,EAAU,KAAQ7N,GAAW6N,EAAU,KAAQD,EAG/C,MAAQE,GAAU,GAAMD,EAAU,EAMlC,IAHAxD,EAAajB,GAAQ0E,EAGfA,EAAU,GAAM7C,EAASnR,EAAM1B,EAASgS,GAC7C,OAAO,IASf,QAAS2D,IAAgBC,GACxB,MAAOA,GAAS/U,OAAS,EACxB,SAAUa,EAAM1B,EAASgS,GACxB,GAAIrQ,GAAIiU,EAAS/U,MACjB,OAAQc,IACP,IAAMiU,EAASjU,GAAID,EAAM1B,EAASgS,GACjC,OAAO,CAGT,QAAO,GAER4D,EAAS,GAGX,QAASC,IAAkB9V,EAAU+V,EAAUvQ,GAG9C,IAFA,GAAI5D,GAAI,EACPM,EAAM6T,EAASjV,OACJoB,EAAJN,EAASA,IAChBgF,GAAQ5G,EAAU+V,EAASnU,GAAI4D,EAEhC,OAAOA,GAGR,QAASwQ,IAAUjD,EAAWrR,EAAKkN,EAAQ3O,EAASgS,GAOnD,IANA,GAAItQ,GACHsU,KACArU,EAAI,EACJM,EAAM6Q,EAAUjS,OAChBoV,EAAgB,MAAPxU,EAEEQ,EAAJN,EAASA,KACVD,EAAOoR,EAAUnR,MAChBgN,IAAUA,EAAQjN,EAAM1B,EAASgS,KACtCgE,EAAa1W,KAAMoC,GACduU,GACJxU,EAAInC,KAAMqC,IAMd,OAAOqU,GAGR,QAASE,IAAY9E,EAAWrR,EAAU8S,EAASsD,EAAYC,EAAYC,GAO1E,MANKF,KAAeA,EAAYhT,KAC/BgT,EAAaD,GAAYC,IAErBC,IAAeA,EAAYjT,KAC/BiT,EAAaF,GAAYE,EAAYC,IAE/BzJ,GAAa,SAAU5B,EAAMzF,EAASvF,EAASgS,GACrD,GAAIsE,GAAM3U,EAAGD,EACZ6U,KACAC,KACAC,EAAclR,EAAQ1E,OAGtBM,EAAQ6J,GAAQ6K,GAAkB9V,GAAY,IAAKC,EAAQmE,UAAanE,GAAYA,MAGpF0W,GAAYtF,IAAepG,GAASjL,EAEnCoB,EADA4U,GAAU5U,EAAOoV,EAAQnF,EAAWpR,EAASgS,GAG9C2E,EAAa9D,EAEZuD,IAAgBpL,EAAOoG,EAAYqF,GAAeN,MAMjD5Q,EACDmR,CAQF,IALK7D,GACJA,EAAS6D,EAAWC,EAAY3W,EAASgS,GAIrCmE,EAAa,CACjBG,EAAOP,GAAUY,EAAYH,GAC7BL,EAAYG,KAAUtW,EAASgS,GAG/BrQ,EAAI2U,EAAKzV,MACT,OAAQc,KACDD,EAAO4U,EAAK3U,MACjBgV,EAAYH,EAAQ7U,MAAS+U,EAAWF,EAAQ7U,IAAOD,IAK1D,GAAKsJ,GACJ,GAAKoL,GAAchF,EAAY,CAC9B,GAAKgF,EAAa,CAEjBE,KACA3U,EAAIgV,EAAW9V,MACf,OAAQc,KACDD,EAAOiV,EAAWhV,KAEvB2U,EAAKhX,KAAOoX,EAAU/U,GAAKD,EAG7B0U,GAAY,KAAOO,KAAkBL,EAAMtE,GAI5CrQ,EAAIgV,EAAW9V,MACf,OAAQc,KACDD,EAAOiV,EAAWhV,MACtB2U,EAAOF,EAAa7W,EAASyL,EAAMtJ,GAAS6U,EAAO5U,IAAM,KAE1DqJ,EAAKsL,KAAU/Q,EAAQ+Q,GAAQ5U,SAOlCiV,GAAaZ,GACZY,IAAepR,EACdoR,EAAWtU,OAAQoU,EAAaE,EAAW9V,QAC3C8V,GAEGP,EACJA,EAAY,KAAM7Q,EAASoR,EAAY3E,GAEvC1S,EAAKsC,MAAO2D,EAASoR,KAMzB,QAASC,IAAmB5B,GAwB3B,IAvBA,GAAI6B,GAAchE,EAAS3Q,EAC1BD,EAAM+S,EAAOnU,OACbiW,EAAkBlQ,EAAKkK,SAAUkE,EAAO,GAAGpR,MAC3CmT,EAAmBD,GAAmBlQ,EAAKkK,SAAS,KACpDnP,EAAImV,EAAkB,EAAI,EAG1BE,EAAe5B,GAAe,SAAU1T,GACvC,MAAOA,KAASmV,GACdE,GAAkB,GACrBE,EAAkB7B,GAAe,SAAU1T,GAC1C,MAAOnC,GAASsX,EAAcnV,GAAS,IACrCqV,GAAkB,GACrBnB,GAAa,SAAUlU,EAAM1B,EAASgS,GACrC,GAAI5Q,IAAS0V,IAAqB9E,GAAOhS,IAAYkH,MACnD2P,EAAe7W,GAASmE,SACxB6S,EAActV,EAAM1B,EAASgS,GAC7BiF,EAAiBvV,EAAM1B,EAASgS,GAGlC,OADA6E,GAAe,KACRzV,IAGGa,EAAJN,EAASA,IAChB,GAAMkR,EAAUjM,EAAKkK,SAAUkE,EAAOrT,GAAGiC,MACxCgS,GAAaR,GAAcO,GAAgBC,GAAY/C,QACjD,CAIN,GAHAA,EAAUjM,EAAK+H,OAAQqG,EAAOrT,GAAGiC,MAAOhC,MAAO,KAAMoT,EAAOrT,GAAGmE,SAG1D+M,EAAS1P,GAAY,CAGzB,IADAjB,IAAMP,EACMM,EAAJC,EAASA,IAChB,GAAK0E,EAAKkK,SAAUkE,EAAO9S,GAAG0B,MAC7B,KAGF,OAAOsS,IACNvU,EAAI,GAAKgU,GAAgBC,GACzBjU,EAAI,GAAKuK,GAER8I,EAAO5V,MAAO,EAAGuC,EAAI,GAAItC,QAAS4G,MAAgC,MAAzB+O,EAAQrT,EAAI,GAAIiC,KAAe,IAAM,MAC7EN,QAASnD,EAAO,MAClB0S,EACI3Q,EAAJP,GAASiV,GAAmB5B,EAAO5V,MAAOuC,EAAGO,IACzCD,EAAJC,GAAW0U,GAAoB5B,EAASA,EAAO5V,MAAO8C,IAClDD,EAAJC,GAAWgK,GAAY8I,IAGzBY,EAAStW,KAAMuT,GAIjB,MAAO8C,IAAgBC,GAGxB,QAASsB,IAA0BC,EAAiBC,GACnD,GAAIC,GAAQD,EAAYvW,OAAS,EAChCyW,EAAYH,EAAgBtW,OAAS,EACrC0W,EAAe,SAAUvM,EAAMhL,EAASgS,EAAKzM,EAASiS,GACrD,GAAI9V,GAAMQ,EAAG2Q,EACZ4E,EAAe,EACf9V,EAAI,IACJmR,EAAY9H,MACZ0M,KACAC,EAAgBzQ,EAEhB/F,EAAQ6J,GAAQsM,GAAa1Q,EAAK8H,KAAU,IAAG,IAAK8I,GAEpDI,EAAiBhQ,GAA4B,MAAjB+P,EAAwB,EAAIvU,KAAKC,UAAY,GACzEpB,EAAMd,EAAMN,MASb,KAPK2W,IACJtQ,EAAmBlH,IAAYnB,GAAYmB,GAAWwX,GAM/C7V,IAAMM,GAA4B,OAApBP,EAAOP,EAAMQ,IAAaA,IAAM,CACrD,GAAK2V,GAAa5V,EAAO,CACxBQ,EAAI,EACElC,GAAW0B,EAAK8J,gBAAkB3M,IACvCwI,EAAa3F,GACbsQ,GAAOzK,EAER,OAASsL,EAAUsE,EAAgBjV,KAClC,GAAK2Q,EAASnR,EAAM1B,GAAWnB,EAAUmT,GAAO,CAC/CzM,EAAQjG,KAAMoC,EACd,OAGG8V,IACJ5P,EAAUgQ,GAKPP,KAEE3V,GAAQmR,GAAWnR,IACxB+V,IAIIzM,GACJ8H,EAAUxT,KAAMoC,IAgBnB,GATA+V,GAAgB9V,EASX0V,GAAS1V,IAAM8V,EAAe,CAClCvV,EAAI,CACJ,OAAS2Q,EAAUuE,EAAYlV,KAC9B2Q,EAASC,EAAW4E,EAAY1X,EAASgS,EAG1C,IAAKhH,EAAO,CAEX,GAAKyM,EAAe,EACnB,MAAQ9V,IACAmR,EAAUnR,IAAM+V,EAAW/V,KACjC+V,EAAW/V,GAAK2G,EAAIvH,KAAMwE,GAM7BmS,GAAa3B,GAAU2B,GAIxBpY,EAAKsC,MAAO2D,EAASmS,GAGhBF,IAAcxM,GAAQ0M,EAAW7W,OAAS,GAC5C4W,EAAeL,EAAYvW,OAAW,GAExC8F,GAAO0J,WAAY9K,GAUrB,MALKiS,KACJ5P,EAAUgQ,EACV1Q,EAAmByQ,GAGb7E,EAGT,OAAOuE,GACNzK,GAAc2K,GACdA,EAgLF,MA7KAvQ,GAAUL,GAAOK,QAAU,SAAUjH,EAAUqL,GAC9C,GAAIzJ,GACHyV,KACAD,KACAhC,EAASlN,EAAelI,EAAW,IAEpC,KAAMoV,EAAS,CAER/J,IACLA,EAAQrE,EAAUhH,IAEnB4B,EAAIyJ,EAAMvK,MACV,OAAQc,IACPwT,EAASyB,GAAmBxL,EAAMzJ,IAC7BwT,EAAQhS,GACZiU,EAAY9X,KAAM6V,GAElBgC,EAAgB7X,KAAM6V,EAKxBA,GAASlN,EAAelI,EAAUmX,GAA0BC,EAAiBC,IAG7EjC,EAAOpV,SAAWA,EAEnB,MAAOoV,IAYRlO,EAASN,GAAOM,OAAS,SAAUlH,EAAUC,EAASuF,EAASyF,GAC9D,GAAIrJ,GAAGqT,EAAQ6C,EAAOjU,EAAM8K,EAC3BoJ,EAA+B,kBAAb/X,IAA2BA,EAC7CqL,GAASJ,GAAQjE,EAAWhH,EAAW+X,EAAS/X,UAAYA,EAM7D,IAJAwF,EAAUA,MAIY,IAAjB6F,EAAMvK,OAAe,CAIzB,GADAmU,EAAS5J,EAAM,GAAKA,EAAM,GAAGhM,MAAO,GAC/B4V,EAAOnU,OAAS,GAAkC,QAA5BgX,EAAQ7C,EAAO,IAAIpR,MAC5ChE,EAAQ4O,SAAgC,IAArBxO,EAAQmE,UAAkBoD,GAC7CX,EAAKkK,SAAUkE,EAAO,GAAGpR,MAAS,CAGnC,GADA5D,GAAY4G,EAAK8H,KAAS,GAAGmJ,EAAM/R,QAAQ,GAAGxC,QAAQ8G,GAAWC,IAAYrK,QAAkB,IACzFA,EACL,MAAOuF,EAGIuS,KACX9X,EAAUA,EAAQ+E,YAGnBhF,EAAWA,EAASX,MAAO4V,EAAOrI,QAAQ1G,MAAMpF,QAIjDc,EAAI0H,EAAwB,aAAE0C,KAAMhM,GAAa,EAAIiV,EAAOnU,MAC5D,OAAQc,IAAM,CAIb,GAHAkW,EAAQ7C,EAAOrT,GAGViF,EAAKkK,SAAWlN,EAAOiU,EAAMjU,MACjC,KAED,KAAM8K,EAAO9H,EAAK8H,KAAM9K,MAEjBoH,EAAO0D,EACZmJ,EAAM/R,QAAQ,GAAGxC,QAAS8G,GAAWC,IACrCH,EAAS6B,KAAMiJ,EAAO,GAAGpR,OAAUwI,GAAapM,EAAQ+E,aAAgB/E,IACpE,CAKJ,GAFAgV,EAAO3S,OAAQV,EAAG,GAClB5B,EAAWiL,EAAKnK,QAAUqL,GAAY8I,IAChCjV,EAEL,MADAT,GAAKsC,MAAO2D,EAASyF,GACdzF,CAGR,SAeJ,OAPEuS,GAAY9Q,EAASjH,EAAUqL,IAChCJ,EACAhL,GACCuH,EACDhC,GACCvF,GAAWkK,EAAS6B,KAAMhM,IAAcqM,GAAapM,EAAQ+E,aAAgB/E,GAExEuF,GAMR3F,EAAQ4Q,WAAarN,EAAQuD,MAAM,IAAItE,KAAM8F,GAAYiE,KAAK,MAAQhJ,EAItEvD,EAAQ2Q,mBAAqBnJ,EAG7BC,IAIAzH,EAAQ+P,aAAe9C,GAAO,SAAUkL,GAEvC,MAAuE,GAAhEA,EAAKxI,wBAAyB1Q,EAAS8F,cAAc,UAMvDkI,GAAO,SAAUC,GAEtB,MADAA,GAAIiC,UAAY,mBAC+B,MAAxCjC,EAAI4D,WAAW1E,aAAa,WAEnCe,GAAW,yBAA0B,SAAUrL,EAAMc,EAAMsE,GAC1D,MAAMA,GAAN,OACQpF,EAAKsK,aAAcxJ,EAA6B,SAAvBA,EAAK4C,cAA2B,EAAI,KAOjExF,EAAQgJ,YAAeiE,GAAO,SAAUC,GAG7C,MAFAA,GAAIiC,UAAY,WAChBjC,EAAI4D,WAAWzE,aAAc,QAAS,IACY,KAA3Ca,EAAI4D,WAAW1E,aAAc,YAEpCe,GAAW,QAAS,SAAUrL,EAAMc,EAAMsE,GACzC,MAAMA,IAAyC,UAAhCpF,EAAKyD,SAASC,cAA7B,OACQ1D,EAAKsW,eAOTnL,GAAO,SAAUC,GACtB,MAAuC,OAAhCA,EAAId,aAAa,eAExBe,GAAWtE,EAAU,SAAU/G,EAAMc,EAAMsE,GAC1C,GAAIqJ,EACJ,OAAMrJ,GAAN,OACQpF,EAAMc,MAAW,EAAOA,EAAK4C,eACjC+K,EAAMzO,EAAKmN,iBAAkBrM,KAAW2N,EAAIC,UAC7CD,EAAIlK,MACL,OAKGU,IAEH3H,EAIJc,GAAO4O,KAAO/H,EACd7G,EAAOkQ,KAAOrJ,EAAOiK,UACrB9Q,EAAOkQ,KAAM,KAAQlQ,EAAOkQ,KAAKnH,QACjC/I,EAAOuQ,WAAavQ,EAAOmY,OAAStR,EAAO0J,WAC3CvQ,EAAO8E,KAAO+B,EAAOE,QACrB/G,EAAOoY,SAAWvR,EAAOG,MACzBhH,EAAO4H,SAAWf,EAAOe,QAIzB,IAAIsJ,GAAM,SAAUtP,EAAMsP,EAAKmH,GAC9B,GAAIxF,MACHyF,EAAqBlV,SAAViV,CAEZ,QAAUzW,EAAOA,EAAMsP,KAA6B,IAAlBtP,EAAKyC,SACtC,GAAuB,IAAlBzC,EAAKyC,SAAiB,CAC1B,GAAKiU,GAAYtY,EAAQ4B,GAAO2W,GAAIF,GACnC,KAEDxF,GAAQrT,KAAMoC,GAGhB,MAAOiR,IAIJ2F,EAAW,SAAUC,EAAG7W,GAG3B,IAFA,GAAIiR,MAEI4F,EAAGA,EAAIA,EAAEhL,YACI,IAAfgL,EAAEpU,UAAkBoU,IAAM7W,GAC9BiR,EAAQrT,KAAMiZ,EAIhB,OAAO5F,IAIJ6F,EAAgB1Y,EAAOkQ,KAAK5E,MAAMvB,aAElC4O,EAAa,gCAIbC,EAAY,gBAGhB,SAASC,GAAQ1I,EAAU2I,EAAWhG,GACrC,GAAK9S,EAAOiD,WAAY6V,GACvB,MAAO9Y,GAAO6F,KAAMsK,EAAU,SAAUvO,EAAMC,GAE7C,QAASiX,EAAU7X,KAAMW,EAAMC,EAAGD,KAAWkR,GAK/C,IAAKgG,EAAUzU,SACd,MAAOrE,GAAO6F,KAAMsK,EAAU,SAAUvO,GACvC,MAASA,KAASkX,IAAgBhG,GAKpC,IAA0B,gBAAdgG,GAAyB,CACpC,GAAKF,EAAU3M,KAAM6M,GACpB,MAAO9Y,GAAO6O,OAAQiK,EAAW3I,EAAU2C,EAG5CgG,GAAY9Y,EAAO6O,OAAQiK,EAAW3I,GAGvC,MAAOnQ,GAAO6F,KAAMsK,EAAU,SAAUvO,GACvC,MAASnC,GAAQwB,KAAM6X,EAAWlX,GAAS,KAASkR,IAItD9S,EAAO6O,OAAS,SAAUqB,EAAM7O,EAAOyR,GACtC,GAAIlR,GAAOP,EAAO,EAMlB,OAJKyR,KACJ5C,EAAO,QAAUA,EAAO,KAGD,IAAjB7O,EAAMN,QAAkC,IAAlBa,EAAKyC,SACjCrE,EAAO4O,KAAKO,gBAAiBvN,EAAMsO,IAAWtO,MAC9C5B,EAAO4O,KAAK5I,QAASkK,EAAMlQ,EAAO6F,KAAMxE,EAAO,SAAUO,GACxD,MAAyB,KAAlBA,EAAKyC,aAIfrE,EAAOG,GAAGqC,QACToM,KAAM,SAAU3O,GACf,GAAI4B,GACHM,EAAMhD,KAAK4B,OACXO,KACAyX,EAAO5Z,IAER,IAAyB,gBAAbc,GACX,MAAOd,MAAKiC,UAAWpB,EAAQC,GAAW4O,OAAQ,WACjD,IAAMhN,EAAI,EAAOM,EAAJN,EAASA,IACrB,GAAK7B,EAAO4H,SAAUmR,EAAMlX,GAAK1C,MAChC,OAAO,IAMX,KAAM0C,EAAI,EAAOM,EAAJN,EAASA,IACrB7B,EAAO4O,KAAM3O,EAAU8Y,EAAMlX,GAAKP,EAMnC,OAFAA,GAAMnC,KAAKiC,UAAWe,EAAM,EAAInC,EAAOmY,OAAQ7W,GAAQA,GACvDA,EAAIrB,SAAWd,KAAKc,SAAWd,KAAKc,SAAW,IAAMA,EAAWA,EACzDqB,GAERuN,OAAQ,SAAU5O,GACjB,MAAOd,MAAKiC,UAAWyX,EAAQ1Z,KAAMc,OAAgB,KAEtD6S,IAAK,SAAU7S,GACd,MAAOd,MAAKiC,UAAWyX,EAAQ1Z,KAAMc,OAAgB,KAEtDsY,GAAI,SAAUtY,GACb,QAAS4Y,EACR1Z,KAIoB,gBAAbc,IAAyByY,EAAczM,KAAMhM,GACnDD,EAAQC,GACRA,OACD,GACCc,SASJ,IAAIiY,GAKH7O,EAAa,sCAEb/J,EAAOJ,EAAOG,GAAGC,KAAO,SAAUH,EAAUC,EAASqT,GACpD,GAAIjI,GAAO1J,CAGX,KAAM3B,EACL,MAAOd,KAQR,IAHAoU,EAAOA,GAAQyF,EAGU,gBAAb/Y,GAAwB,CAanC,GAPCqL,EALsB,MAAlBrL,EAAU,IACsB,MAApCA,EAAUA,EAASc,OAAS,IAC5Bd,EAASc,QAAU,GAGT,KAAMd,EAAU,MAGlBkK,EAAWwB,KAAM1L,IAIrBqL,IAAWA,EAAO,IAAQpL,EAkDxB,OAAMA,GAAWA,EAAQW,QACtBX,GAAWqT,GAAO3E,KAAM3O,GAK1Bd,KAAK2B,YAAaZ,GAAU0O,KAAM3O,EArDzC,IAAKqL,EAAO,GAAM,CAYjB,GAXApL,EAAUA,YAAmBF,GAASE,EAAS,GAAMA,EAIrDF,EAAOuB,MAAOpC,KAAMa,EAAOiZ,UAC1B3N,EAAO,GACPpL,GAAWA,EAAQmE,SAAWnE,EAAQwL,eAAiBxL,EAAUnB,GACjE,IAII4Z,EAAW1M,KAAMX,EAAO,KAAStL,EAAOkD,cAAehD,GAC3D,IAAMoL,IAASpL,GAGTF,EAAOiD,WAAY9D,KAAMmM,IAC7BnM,KAAMmM,GAASpL,EAASoL,IAIxBnM,KAAKiR,KAAM9E,EAAOpL,EAASoL,GAK9B,OAAOnM,MAiBP,MAbAyC,GAAO7C,EAAS6M,eAAgBN,EAAO,IAIlC1J,GAAQA,EAAKqD,aAGjB9F,KAAK4B,OAAS,EACd5B,KAAM,GAAMyC,GAGbzC,KAAKe,QAAUnB,EACfI,KAAKc,SAAWA,EACTd,KAcH,MAAKc,GAASoE,UACpBlF,KAAKe,QAAUf,KAAM,GAAMc,EAC3Bd,KAAK4B,OAAS,EACP5B,MAIIa,EAAOiD,WAAYhD,GACRmD,SAAfmQ,EAAK2F,MACX3F,EAAK2F,MAAOjZ,GAGZA,EAAUD,IAGeoD,SAAtBnD,EAASA,WACbd,KAAKc,SAAWA,EAASA,SACzBd,KAAKe,QAAUD,EAASC,SAGlBF,EAAOwF,UAAWvF,EAAUd,OAIrCiB,GAAKQ,UAAYZ,EAAOG,GAGxB6Y,EAAahZ,EAAQjB,EAGrB,IAAIoa,GAAe,iCAGlBC,GACCC,UAAU,EACVC,UAAU,EACVC,MAAM,EACNC,MAAM,EAGRxZ,GAAOG,GAAGqC,QACTyQ,IAAK,SAAUlQ,GACd,GAAI0W,GAAUzZ,EAAQ+C,EAAQ5D,MAC7Bua,EAAID,EAAQ1Y,MAEb,OAAO5B,MAAK0P,OAAQ,WAEnB,IADA,GAAIhN,GAAI,EACI6X,EAAJ7X,EAAOA,IACd,GAAK7B,EAAO4H,SAAUzI,KAAMsa,EAAS5X,IACpC,OAAO,KAMX8X,QAAS,SAAU7I,EAAW5Q,GAS7B,IARA,GAAIoN,GACHzL,EAAI,EACJ6X,EAAIva,KAAK4B,OACT8R,KACA+G,EAAMlB,EAAczM,KAAM6E,IAAoC,gBAAdA,GAC/C9Q,EAAQ8Q,EAAW5Q,GAAWf,KAAKe,SACnC,EAEUwZ,EAAJ7X,EAAOA,IACd,IAAMyL,EAAMnO,KAAM0C,GAAKyL,GAAOA,IAAQpN,EAASoN,EAAMA,EAAIrI,WAGxD,GAAKqI,EAAIjJ,SAAW,KAAQuV,EAC3BA,EAAIC,MAAOvM,GAAQ,GAGF,IAAjBA,EAAIjJ,UACHrE,EAAO4O,KAAKO,gBAAiB7B,EAAKwD,IAAgB,CAEnD+B,EAAQrT,KAAM8N,EACd,OAKH,MAAOnO,MAAKiC,UAAWyR,EAAQ9R,OAAS,EAAIf,EAAOuQ,WAAYsC,GAAYA,IAI5EgH,MAAO,SAAUjY,GAGhB,MAAMA,GAKe,gBAATA,GACJnC,EAAQwB,KAAMjB,EAAQ4B,GAAQzC,KAAM,IAIrCM,EAAQwB,KAAM9B,KAGpByC,EAAKf,OAASe,EAAM,GAAMA,GAZjBzC,KAAM,IAAOA,KAAM,GAAI8F,WAAe9F,KAAK6C,QAAQ8X,UAAU/Y,OAAS,IAgBjFgZ,IAAK,SAAU9Z,EAAUC,GACxB,MAAOf,MAAKiC,UACXpB,EAAOuQ,WACNvQ,EAAOuB,MAAOpC,KAAK+B,MAAOlB,EAAQC,EAAUC,OAK/C8Z,QAAS,SAAU/Z,GAClB,MAAOd,MAAK4a,IAAiB,MAAZ9Z,EAChBd,KAAKqC,WAAarC,KAAKqC,WAAWqN,OAAQ5O,MAK7C,SAASga,GAAS3M,EAAK4D,GACtB,OAAU5D,EAAMA,EAAK4D,KAA4B,IAAjB5D,EAAIjJ,UACpC,MAAOiJ,GAGRtN,EAAOyB,MACNyM,OAAQ,SAAUtM,GACjB,GAAIsM,GAAStM,EAAKqD,UAClB,OAAOiJ,IAA8B,KAApBA,EAAO7J,SAAkB6J,EAAS,MAEpDgM,QAAS,SAAUtY,GAClB,MAAOsP,GAAKtP,EAAM,eAEnBuY,aAAc,SAAUvY,EAAMC,EAAGwW,GAChC,MAAOnH,GAAKtP,EAAM,aAAcyW,IAEjCkB,KAAM,SAAU3X,GACf,MAAOqY,GAASrY,EAAM,gBAEvB4X,KAAM,SAAU5X,GACf,MAAOqY,GAASrY,EAAM,oBAEvBwY,QAAS,SAAUxY,GAClB,MAAOsP,GAAKtP,EAAM,gBAEnBkY,QAAS,SAAUlY,GAClB,MAAOsP,GAAKtP,EAAM,oBAEnByY,UAAW,SAAUzY,EAAMC,EAAGwW,GAC7B,MAAOnH,GAAKtP,EAAM,cAAeyW,IAElCiC,UAAW,SAAU1Y,EAAMC,EAAGwW,GAC7B,MAAOnH,GAAKtP,EAAM,kBAAmByW,IAEtCG,SAAU,SAAU5W,GACnB,MAAO4W,IAAY5W,EAAKqD,gBAAmB2L,WAAYhP,IAExDyX,SAAU,SAAUzX,GACnB,MAAO4W,GAAU5W,EAAKgP,aAEvB0I,SAAU,SAAU1X,GACnB,MAAOA,GAAK2Y,iBAAmBva,EAAOuB,SAAWK,EAAKmJ,cAErD,SAAUrI,EAAMvC,GAClBH,EAAOG,GAAIuC,GAAS,SAAU2V,EAAOpY,GACpC,GAAI4S,GAAU7S,EAAO2B,IAAKxC,KAAMgB,EAAIkY,EAuBpC,OArB0B,UAArB3V,EAAKpD,MAAO,MAChBW,EAAWoY,GAGPpY,GAAgC,gBAAbA,KACvB4S,EAAU7S,EAAO6O,OAAQ5O,EAAU4S,IAG/B1T,KAAK4B,OAAS,IAGZqY,EAAkB1W,IACvB1C,EAAOuQ,WAAYsC,GAIfsG,EAAalN,KAAMvJ,IACvBmQ,EAAQ2H,WAIHrb,KAAKiC,UAAWyR,KAGzB,IAAI4H,GAAY,MAKhB,SAASC,GAAejY,GACvB,GAAIkY,KAIJ,OAHA3a,GAAOyB,KAAMgB,EAAQ6I,MAAOmP,OAAmB,SAAUjQ,EAAGoQ,GAC3DD,EAAQC,IAAS,IAEXD,EAyBR3a,EAAO6a,UAAY,SAAUpY,GAI5BA,EAA6B,gBAAZA,GAChBiY,EAAejY,GACfzC,EAAOwC,UAAYC,EAEpB,IACCqY,GAGAC,EAGAC,EAGAC,EAGAvS,KAGAwS,KAGAC,EAAc,GAGdC,EAAO,WAQN,IALAH,EAASxY,EAAQ4Y,KAIjBL,EAAQF,GAAS,EACTI,EAAMna,OAAQoa,EAAc,GAAK,CACxCJ,EAASG,EAAMrO,OACf,SAAUsO,EAAczS,EAAK3H,OAGvB2H,EAAMyS,GAAcrZ,MAAOiZ,EAAQ,GAAKA,EAAQ,OAAU,GAC9DtY,EAAQ6Y,cAGRH,EAAczS,EAAK3H,OACnBga,GAAS,GAMNtY,EAAQsY,SACbA,GAAS,GAGVD,GAAS,EAGJG,IAIHvS,EADIqS,KAKG,KAMVhC,GAGCgB,IAAK,WA2BJ,MA1BKrR,KAGCqS,IAAWD,IACfK,EAAczS,EAAK3H,OAAS,EAC5Bma,EAAM1b,KAAMub,IAGb,QAAWhB,GAAKxT,GACfvG,EAAOyB,KAAM8E,EAAM,SAAUiE,EAAGtE,GAC1BlG,EAAOiD,WAAYiD,GACjBzD,EAAQ0V,QAAWY,EAAK9F,IAAK/M,IAClCwC,EAAKlJ,KAAM0G,GAEDA,GAAOA,EAAInF,QAAiC,WAAvBf,EAAO8D,KAAMoC,IAG7C6T,EAAK7T,MAGHnE,WAEAgZ,IAAWD,GACfM,KAGKjc,MAIRoc,OAAQ,WAYP,MAXAvb,GAAOyB,KAAMM,UAAW,SAAUyI,EAAGtE,GACpC,GAAI2T,EACJ,QAAUA,EAAQ7Z,EAAO2F,QAASO,EAAKwC,EAAMmR,IAAY,GACxDnR,EAAKnG,OAAQsX,EAAO,GAGNsB,GAATtB,GACJsB,MAIIhc,MAKR8T,IAAK,SAAU9S,GACd,MAAOA,GACNH,EAAO2F,QAASxF,EAAIuI,GAAS,GAC7BA,EAAK3H,OAAS,GAIhBmT,MAAO,WAIN,MAHKxL,KACJA,MAEMvJ,MAMRqc,QAAS,WAGR,MAFAP,GAASC,KACTxS,EAAOqS,EAAS,GACT5b,MAER2U,SAAU,WACT,OAAQpL,GAMT+S,KAAM,WAKL,MAJAR,GAASC,KACHH,IACLrS,EAAOqS,EAAS,IAEV5b,MAER8b,OAAQ,WACP,QAASA,GAIVS,SAAU,SAAUxb,EAASqG,GAS5B,MARM0U,KACL1U,EAAOA,MACPA,GAASrG,EAASqG,EAAKjH,MAAQiH,EAAKjH,QAAUiH,GAC9C2U,EAAM1b,KAAM+G,GACNuU,GACLM,KAGKjc,MAIRic,KAAM,WAEL,MADArC,GAAK2C,SAAUvc,KAAM4C,WACd5C,MAIR6b,MAAO,WACN,QAASA,GAIZ,OAAOjC,IAIR/Y,EAAOwC,QAENmZ,SAAU,SAAUC,GACnB,GAAIC,KAGA,UAAW,OAAQ7b,EAAO6a,UAAW,eAAiB,aACtD,SAAU,OAAQ7a,EAAO6a,UAAW,eAAiB,aACrD,SAAU,WAAY7a,EAAO6a,UAAW,YAE3CiB,EAAQ,UACRC,GACCD,MAAO,WACN,MAAOA,IAERE,OAAQ,WAEP,MADAC,GAASlU,KAAMhG,WAAYma,KAAMna,WAC1B5C,MAERgd,KAAM,WACL,GAAIC,GAAMra,SACV,OAAO/B,GAAO2b,SAAU,SAAUU,GACjCrc,EAAOyB,KAAMoa,EAAQ,SAAUha,EAAGya,GACjC,GAAInc,GAAKH,EAAOiD,WAAYmZ,EAAKva,KAASua,EAAKva,EAG/Coa,GAAUK,EAAO,IAAO,WACvB,GAAIC,GAAWpc,GAAMA,EAAG2B,MAAO3C,KAAM4C,UAChCwa,IAAYvc,EAAOiD,WAAYsZ,EAASR,SAC5CQ,EAASR,UACPS,SAAUH,EAASI,QACnB1U,KAAMsU,EAASK,SACfR,KAAMG,EAASM,QAEjBN,EAAUC,EAAO,GAAM,QACtBnd,OAAS4c,EAAUM,EAASN,UAAY5c,KACxCgB,GAAOoc,GAAaxa,eAKxBqa,EAAM,OACHL,WAKLA,QAAS,SAAUlY,GAClB,MAAc,OAAPA,EAAc7D,EAAOwC,OAAQqB,EAAKkY,GAAYA,IAGvDE,IAyCD,OAtCAF,GAAQa,KAAOb,EAAQI,KAGvBnc,EAAOyB,KAAMoa,EAAQ,SAAUha,EAAGya,GACjC,GAAI5T,GAAO4T,EAAO,GACjBO,EAAcP,EAAO,EAGtBP,GAASO,EAAO,IAAQ5T,EAAKqR,IAGxB8C,GACJnU,EAAKqR,IAAK,WAGT+B,EAAQe,GAGNhB,EAAY,EAAJha,GAAS,GAAI2Z,QAASK,EAAQ,GAAK,GAAIJ,MAInDQ,EAAUK,EAAO,IAAQ,WAExB,MADAL,GAAUK,EAAO,GAAM,QAAUnd,OAAS8c,EAAWF,EAAU5c,KAAM4C,WAC9D5C,MAER8c,EAAUK,EAAO,GAAM,QAAW5T,EAAKgT,WAIxCK,EAAQA,QAASE,GAGZL,GACJA,EAAK3a,KAAMgb,EAAUA,GAIfA,GAIRa,KAAM,SAAUC,GACf,GAAIlb,GAAI,EACPmb,EAAgB1d,EAAM2B,KAAMc,WAC5BhB,EAASic,EAAcjc,OAGvBkc,EAAuB,IAAXlc,GACTgc,GAAe/c,EAAOiD,WAAY8Z,EAAYhB,SAAchb,EAAS,EAIxEkb,EAAyB,IAAdgB,EAAkBF,EAAc/c,EAAO2b,WAGlDuB,EAAa,SAAUrb,EAAGmU,EAAUmH,GACnC,MAAO,UAAUhX,GAChB6P,EAAUnU,GAAM1C,KAChBge,EAAQtb,GAAME,UAAUhB,OAAS,EAAIzB,EAAM2B,KAAMc,WAAcoE,EAC1DgX,IAAWC,EACfnB,EAASoB,WAAYrH,EAAUmH,KACfF,GAChBhB,EAASqB,YAAatH,EAAUmH,KAKnCC,EAAgBG,EAAkBC,CAGnC,IAAKzc,EAAS,EAIb,IAHAqc,EAAiB,GAAIrZ,OAAOhD,GAC5Bwc,EAAmB,GAAIxZ,OAAOhD,GAC9Byc,EAAkB,GAAIzZ,OAAOhD,GACjBA,EAAJc,EAAYA,IACdmb,EAAenb,IAAO7B,EAAOiD,WAAY+Z,EAAenb,GAAIka,SAChEiB,EAAenb,GAAIka,UACjBS,SAAUU,EAAYrb,EAAG0b,EAAkBH,IAC3CrV,KAAMmV,EAAYrb,EAAG2b,EAAiBR,IACtCd,KAAMD,EAASU,UAEfM,CAUL,OAJMA,IACLhB,EAASqB,YAAaE,EAAiBR,GAGjCf,EAASF,YAMlB,IAAI0B,EAEJzd,GAAOG,GAAG+Y,MAAQ,SAAU/Y,GAK3B,MAFAH,GAAOkZ,MAAM6C,UAAUhU,KAAM5H,GAEtBhB,MAGRa,EAAOwC,QAGNiB,SAAS,EAITia,UAAW,EAGXC,UAAW,SAAUC,GACfA,EACJ5d,EAAO0d,YAEP1d,EAAOkZ,OAAO,IAKhBA,MAAO,SAAU2E,IAGXA,KAAS,IAAS7d,EAAO0d,UAAY1d,EAAOyD,WAKjDzD,EAAOyD,SAAU,EAGZoa,KAAS,KAAU7d,EAAO0d,UAAY,IAK3CD,EAAUH,YAAave,GAAYiB,IAG9BA,EAAOG,GAAG2d,iBACd9d,EAAQjB,GAAW+e,eAAgB,SACnC9d,EAAQjB,GAAWgf,IAAK,cAQ3B,SAASC,KACRjf,EAASkf,oBAAqB,mBAAoBD,GAClD9e,EAAO+e,oBAAqB,OAAQD,GACpChe,EAAOkZ,QAGRlZ,EAAOkZ,MAAM6C,QAAU,SAAUlY,GAwBhC,MAvBM4Z,KAELA,EAAYzd,EAAO2b,WAMU,aAAxB5c,EAASmf,YACa,YAAxBnf,EAASmf,aAA6Bnf,EAASgP,gBAAgBoQ,SAGjEjf,EAAOkf,WAAYpe,EAAOkZ,QAK1Bna,EAASuP,iBAAkB,mBAAoB0P,GAG/C9e,EAAOoP,iBAAkB,OAAQ0P,KAG5BP,EAAU1B,QAASlY,IAI3B7D,EAAOkZ,MAAM6C,SAOb,IAAIsC,GAAS,SAAUhd,EAAOlB,EAAIiE,EAAK+B,EAAOmY,EAAWC,EAAUC,GAClE,GAAI3c,GAAI,EACPM,EAAMd,EAAMN,OACZ0d,EAAc,MAAPra,CAGR,IAA4B,WAAvBpE,EAAO8D,KAAMM,GAAqB,CACtCka,GAAY,CACZ,KAAMzc,IAAKuC,GACVia,EAAQhd,EAAOlB,EAAI0B,EAAGuC,EAAKvC,IAAK,EAAM0c,EAAUC,OAI3C,IAAepb,SAAV+C,IACXmY,GAAY,EAENte,EAAOiD,WAAYkD,KACxBqY,GAAM,GAGFC,IAGCD,GACJre,EAAGc,KAAMI,EAAO8E,GAChBhG,EAAK,OAILse,EAAOte,EACPA,EAAK,SAAUyB,EAAMwC,EAAK+B,GACzB,MAAOsY,GAAKxd,KAAMjB,EAAQ4B,GAAQuE,MAKhChG,GACJ,KAAYgC,EAAJN,EAASA,IAChB1B,EACCkB,EAAOQ,GAAKuC,EAAKoa,EACjBrY,EACAA,EAAMlF,KAAMI,EAAOQ,GAAKA,EAAG1B,EAAIkB,EAAOQ,GAAKuC,IAM/C,OAAOka,GACNjd,EAGAod,EACCte,EAAGc,KAAMI,GACTc,EAAMhC,EAAIkB,EAAO,GAAK+C,GAAQma,GAE7BG,EAAa,SAAUC,GAS1B,MAA0B,KAAnBA,EAAMta,UAAqC,IAAnBsa,EAAMta,YAAsBsa,EAAMta,SAMlE,SAASua,KACRzf,KAAKkE,QAAUrD,EAAOqD,QAAUub,EAAKC,MAGtCD,EAAKC,IAAM,EAEXD,EAAKhe,WAEJke,SAAU,SAAUH,EAAOI,GAC1B,GAAI5Y,GAAQ4Y,KAiBZ,OAbKJ,GAAMta,SACVsa,EAAOxf,KAAKkE,SAAY8C,EAMxBT,OAAOsZ,eAAgBL,EAAOxf,KAAKkE,SAClC8C,MAAOA,EACP8Y,UAAU,EACVC,cAAc,IAGTP,EAAOxf,KAAKkE,UAEpBsJ,MAAO,SAAUgS,GAKhB,IAAMD,EAAYC,GACjB,QAID,IAAIxY,GAAQwY,EAAOxf,KAAKkE,QA4BxB,OAzBM8C,KACLA,KAKKuY,EAAYC,KAIXA,EAAMta,SACVsa,EAAOxf,KAAKkE,SAAY8C,EAMxBT,OAAOsZ,eAAgBL,EAAOxf,KAAKkE,SAClC8C,MAAOA,EACP+Y,cAAc,MAMX/Y,GAERgZ,IAAK,SAAUR,EAAOS,EAAMjZ,GAC3B,GAAIkZ,GACH1S,EAAQxN,KAAKwN,MAAOgS,EAGrB,IAAqB,gBAATS,GACXzS,EAAOyS,GAASjZ,MAMhB,KAAMkZ,IAAQD,GACbzS,EAAO0S,GAASD,EAAMC,EAGxB,OAAO1S,IAERzL,IAAK,SAAUyd,EAAOva,GACrB,MAAehB,UAARgB,EACNjF,KAAKwN,MAAOgS,GACZA,EAAOxf,KAAKkE,UAAasb,EAAOxf,KAAKkE,SAAWe,IAElDia,OAAQ,SAAUM,EAAOva,EAAK+B,GAC7B,GAAImZ,EAaJ,OAAalc,UAARgB,GACCA,GAAsB,gBAARA,IAAgChB,SAAV+C,GAEzCmZ,EAASngB,KAAK+B,IAAKyd,EAAOva,GAERhB,SAAXkc,EACNA,EAASngB,KAAK+B,IAAKyd,EAAO3e,EAAOmF,UAAWf,MAS9CjF,KAAKggB,IAAKR,EAAOva,EAAK+B,GAIL/C,SAAV+C,EAAsBA,EAAQ/B,IAEtCmX,OAAQ,SAAUoD,EAAOva,GACxB,GAAIvC,GAAGa,EAAM6c,EACZ5S,EAAQgS,EAAOxf,KAAKkE,QAErB,IAAeD,SAAVuJ,EAAL,CAIA,GAAavJ,SAARgB,EACJjF,KAAK2f,SAAUH,OAET,CAGD3e,EAAOmD,QAASiB,GAQpB1B,EAAO0B,EAAI7E,OAAQ6E,EAAIzC,IAAK3B,EAAOmF,aAEnCoa,EAAQvf,EAAOmF,UAAWf,GAGrBA,IAAOuI,GACXjK,GAAS0B,EAAKmb,IAKd7c,EAAO6c,EACP7c,EAAOA,IAAQiK,IACZjK,GAAWA,EAAK4I,MAAOmP,SAI5B5Y,EAAIa,EAAK3B,MAET,OAAQc,UACA8K,GAAOjK,EAAMb,KAKTuB,SAARgB,GAAqBpE,EAAOsE,cAAeqI,MAM1CgS,EAAMta,SACVsa,EAAOxf,KAAKkE,SAAYD,aAEjBub,GAAOxf,KAAKkE,YAItBmc,QAAS,SAAUb,GAClB,GAAIhS,GAAQgS,EAAOxf,KAAKkE,QACxB,OAAiBD,UAAVuJ,IAAwB3M,EAAOsE,cAAeqI,IAGvD,IAAI8S,GAAW,GAAIb,GAEfc,EAAW,GAAId,GAcfe,EAAS,gCACZC,EAAa,QAEd,SAASC,GAAUje,EAAMwC,EAAKgb,GAC7B,GAAI1c,EAIJ,IAAcU,SAATgc,GAAwC,IAAlBxd,EAAKyC,SAI/B,GAHA3B,EAAO,QAAU0B,EAAIZ,QAASoc,EAAY,OAAQta,cAClD8Z,EAAOxd,EAAKsK,aAAcxJ,GAEL,gBAAT0c,GAAoB,CAC/B,IACCA,EAAgB,SAATA,GAAkB,EACf,UAATA,GAAmB,EACV,SAATA,EAAkB,MAGjBA,EAAO,KAAOA,GAAQA,EACvBO,EAAO1T,KAAMmT,GAASpf,EAAO8f,UAAWV,GACxCA;CACA,MAAQpU,IAGV0U,EAASP,IAAKvd,EAAMwC,EAAKgb,OAEzBA,GAAOhc,MAGT,OAAOgc,GAGRpf,EAAOwC,QACNgd,QAAS,SAAU5d,GAClB,MAAO8d,GAASF,QAAS5d,IAAU6d,EAASD,QAAS5d,IAGtDwd,KAAM,SAAUxd,EAAMc,EAAM0c,GAC3B,MAAOM,GAASrB,OAAQzc,EAAMc,EAAM0c,IAGrCW,WAAY,SAAUne,EAAMc,GAC3Bgd,EAASnE,OAAQ3Z,EAAMc,IAKxBsd,MAAO,SAAUpe,EAAMc,EAAM0c,GAC5B,MAAOK,GAASpB,OAAQzc,EAAMc,EAAM0c,IAGrCa,YAAa,SAAUre,EAAMc,GAC5B+c,EAASlE,OAAQ3Z,EAAMc,MAIzB1C,EAAOG,GAAGqC,QACT4c,KAAM,SAAUhb,EAAK+B,GACpB,GAAItE,GAAGa,EAAM0c,EACZxd,EAAOzC,KAAM,GACb+N,EAAQtL,GAAQA,EAAKkH,UAGtB,IAAa1F,SAARgB,EAAoB,CACxB,GAAKjF,KAAK4B,SACTqe,EAAOM,EAASxe,IAAKU,GAEE,IAAlBA,EAAKyC,WAAmBob,EAASve,IAAKU,EAAM,iBAAmB,CACnEC,EAAIqL,EAAMnM,MACV,OAAQc,IAIFqL,EAAOrL,KACXa,EAAOwK,EAAOrL,GAAIa,KACe,IAA5BA,EAAKjD,QAAS,WAClBiD,EAAO1C,EAAOmF,UAAWzC,EAAKpD,MAAO,IACrCugB,EAAUje,EAAMc,EAAM0c,EAAM1c,KAI/B+c,GAASN,IAAKvd,EAAM,gBAAgB,GAItC,MAAOwd,GAIR,MAAoB,gBAARhb,GACJjF,KAAKsC,KAAM,WACjBie,EAASP,IAAKhgB,KAAMiF,KAIfia,EAAQlf,KAAM,SAAUgH,GAC9B,GAAIiZ,GAAMc,CAOV,IAAKte,GAAkBwB,SAAV+C,EAAb,CAUC,GANAiZ,EAAOM,EAASxe,IAAKU,EAAMwC,IAI1Bsb,EAASxe,IAAKU,EAAMwC,EAAIZ,QAASoc,EAAY,OAAQta,eAExClC,SAATgc,EACJ,MAAOA,EAQR,IALAc,EAAWlgB,EAAOmF,UAAWf,GAI7Bgb,EAAOM,EAASxe,IAAKU,EAAMse,GACb9c,SAATgc,EACJ,MAAOA,EAMR,IADAA,EAAOS,EAAUje,EAAMse,EAAU9c,QACnBA,SAATgc,EACJ,MAAOA,OAQTc,GAAWlgB,EAAOmF,UAAWf,GAC7BjF,KAAKsC,KAAM,WAIV,GAAI2d,GAAOM,EAASxe,IAAK/B,KAAM+gB,EAK/BR,GAASP,IAAKhgB,KAAM+gB,EAAU/Z,GAKzB/B,EAAI3E,QAAS,KAAQ,IAAe2D,SAATgc,GAC/BM,EAASP,IAAKhgB,KAAMiF,EAAK+B,MAGzB,KAAMA,EAAOpE,UAAUhB,OAAS,EAAG,MAAM,IAG7Cgf,WAAY,SAAU3b,GACrB,MAAOjF,MAAKsC,KAAM,WACjBie,EAASnE,OAAQpc,KAAMiF,QAM1BpE,EAAOwC,QACN0Y,MAAO,SAAUtZ,EAAMkC,EAAMsb,GAC5B,GAAIlE,EAEJ,OAAKtZ,IACJkC,GAASA,GAAQ,MAAS,QAC1BoX,EAAQuE,EAASve,IAAKU,EAAMkC,GAGvBsb,KACElE,GAASlb,EAAOmD,QAASic,GAC9BlE,EAAQuE,EAASpB,OAAQzc,EAAMkC,EAAM9D,EAAOwF,UAAW4Z,IAEvDlE,EAAM1b,KAAM4f,IAGPlE,OAZR,QAgBDiF,QAAS,SAAUve,EAAMkC,GACxBA,EAAOA,GAAQ,IAEf,IAAIoX,GAAQlb,EAAOkb,MAAOtZ,EAAMkC,GAC/Bsc,EAAclF,EAAMna,OACpBZ,EAAK+a,EAAMrO,QACXwT,EAAQrgB,EAAOsgB,YAAa1e,EAAMkC,GAClCyV,EAAO,WACNvZ,EAAOmgB,QAASve,EAAMkC,GAIZ,gBAAP3D,IACJA,EAAK+a,EAAMrO,QACXuT,KAGIjgB,IAIU,OAAT2D,GACJoX,EAAMjL,QAAS,oBAIToQ,GAAME,KACbpgB,EAAGc,KAAMW,EAAM2X,EAAM8G,KAGhBD,GAAeC,GACpBA,EAAMnM,MAAMkH,QAKdkF,YAAa,SAAU1e,EAAMkC,GAC5B,GAAIM,GAAMN,EAAO,YACjB,OAAO2b,GAASve,IAAKU,EAAMwC,IAASqb,EAASpB,OAAQzc,EAAMwC,GAC1D8P,MAAOlU,EAAO6a,UAAW,eAAgBd,IAAK,WAC7C0F,EAASlE,OAAQ3Z,GAAQkC,EAAO,QAASM,WAM7CpE,EAAOG,GAAGqC,QACT0Y,MAAO,SAAUpX,EAAMsb,GACtB,GAAIoB,GAAS,CAQb,OANqB,gBAAT1c,KACXsb,EAAOtb,EACPA,EAAO,KACP0c,KAGIze,UAAUhB,OAASyf,EAChBxgB,EAAOkb,MAAO/b,KAAM,GAAK2E,GAGjBV,SAATgc,EACNjgB,KACAA,KAAKsC,KAAM,WACV,GAAIyZ,GAAQlb,EAAOkb,MAAO/b,KAAM2E,EAAMsb,EAGtCpf,GAAOsgB,YAAanhB,KAAM2E,GAEZ,OAATA,GAAgC,eAAfoX,EAAO,IAC5Blb,EAAOmgB,QAAShhB,KAAM2E,MAI1Bqc,QAAS,SAAUrc,GAClB,MAAO3E,MAAKsC,KAAM,WACjBzB,EAAOmgB,QAAShhB,KAAM2E,MAGxB2c,WAAY,SAAU3c,GACrB,MAAO3E,MAAK+b,MAAOpX,GAAQ,UAK5BiY,QAAS,SAAUjY,EAAMD,GACxB,GAAIyC,GACHoa,EAAQ,EACRC,EAAQ3gB,EAAO2b,WACfxL,EAAWhR,KACX0C,EAAI1C,KAAK4B,OACT2b,EAAU,aACCgE,GACTC,EAAMrD,YAAanN,GAAYA,IAIb,iBAATrM,KACXD,EAAMC,EACNA,EAAOV,QAERU,EAAOA,GAAQ,IAEf,OAAQjC,IACPyE,EAAMmZ,EAASve,IAAKiP,EAAUtO,GAAKiC,EAAO,cACrCwC,GAAOA,EAAI4N,QACfwM,IACApa,EAAI4N,MAAM6F,IAAK2C,GAIjB,OADAA,KACOiE,EAAM5E,QAASlY,KAGxB,IAAI+c,GAAO,sCAA0CC,OAEjDC,EAAU,GAAI7X,QAAQ,iBAAmB2X,EAAO,cAAe,KAG/DG,GAAc,MAAO,QAAS,SAAU,QAExCC,EAAW,SAAUpf,EAAMqf,GAK7B,MADArf,GAAOqf,GAAMrf,EAC4B,SAAlC5B,EAAOkhB,IAAKtf,EAAM,aACvB5B,EAAO4H,SAAUhG,EAAK8J,cAAe9J,GAKzC,SAASuf,GAAWvf,EAAMyd,EAAM+B,EAAYC,GAC3C,GAAIC,GACHC,EAAQ,EACRC,EAAgB,GAChBC,EAAeJ,EACd,WAAa,MAAOA,GAAM/T,OAC1B,WAAa,MAAOtN,GAAOkhB,IAAKtf,EAAMyd,EAAM,KAC7CN,EAAU0C,IACVC,EAAON,GAAcA,EAAY,KAASphB,EAAO2hB,UAAWtC,GAAS,GAAK,MAG1EuC,GAAkB5hB,EAAO2hB,UAAWtC,IAAmB,OAATqC,IAAkB3C,IAC/D+B,EAAQnV,KAAM3L,EAAOkhB,IAAKtf,EAAMyd,GAElC,IAAKuC,GAAiBA,EAAe,KAAQF,EAAO,CAGnDA,EAAOA,GAAQE,EAAe,GAG9BR,EAAaA,MAGbQ,GAAiB7C,GAAW,CAE5B,GAICwC,GAAQA,GAAS,KAGjBK,GAAgCL,EAChCvhB,EAAO6hB,MAAOjgB,EAAMyd,EAAMuC,EAAgBF,SAK1CH,KAAYA,EAAQE,IAAiB1C,IAAuB,IAAVwC,KAAiBC,GAiBrE,MAbKJ,KACJQ,GAAiBA,IAAkB7C,GAAW,EAG9CuC,EAAWF,EAAY,GACtBQ,GAAkBR,EAAY,GAAM,GAAMA,EAAY,IACrDA,EAAY,GACTC,IACJA,EAAMK,KAAOA,EACbL,EAAM/O,MAAQsP,EACdP,EAAMhf,IAAMif,IAGPA,EAER,GAAIQ,GAAiB,wBAEjBC,EAAW,aAEXC,EAAc,4BAKdC,GAGHC,QAAU,EAAG,+BAAgC,aAK7CC,OAAS,EAAG,UAAW,YACvBC,KAAO,EAAG,oBAAqB,uBAC/BC,IAAM,EAAG,iBAAkB,oBAC3BC,IAAM,EAAG,qBAAsB,yBAE/BC,UAAY,EAAG,GAAI,IAIpBN,GAAQO,SAAWP,EAAQC,OAE3BD,EAAQQ,MAAQR,EAAQS,MAAQT,EAAQU,SAAWV,EAAQW,QAAUX,EAAQE,MAC7EF,EAAQY,GAAKZ,EAAQK,EAGrB,SAASQ,GAAQ5iB,EAAS8O,GAIzB,GAAI1N,GAA8C,mBAAjCpB,GAAQ4L,qBACvB5L,EAAQ4L,qBAAsBkD,GAAO,KACD,mBAA7B9O,GAAQqM,iBACdrM,EAAQqM,iBAAkByC,GAAO,OAGpC,OAAe5L,UAAR4L,GAAqBA,GAAOhP,EAAOqF,SAAUnF,EAAS8O,GAC5DhP,EAAOuB,OAASrB,GAAWoB,GAC3BA,EAKF,QAASyhB,IAAe1hB,EAAO2hB,GAI9B,IAHA,GAAInhB,GAAI,EACP6X,EAAIrY,EAAMN,OAEC2Y,EAAJ7X,EAAOA,IACd4d,EAASN,IACR9d,EAAOQ,GACP,cACCmhB,GAAevD,EAASve,IAAK8hB,EAAanhB,GAAK,eAMnD,GAAIohB,IAAQ,WAEZ,SAASC,IAAe7hB,EAAOnB,EAASijB,EAASC,EAAWC,GAO3D,IANA,GAAIzhB,GAAM0E,EAAK0I,EAAKsU,EAAM1b,EAAUxF,EACnCmhB,EAAWrjB,EAAQsjB,yBACnBC,KACA5hB,EAAI,EACJ6X,EAAIrY,EAAMN,OAEC2Y,EAAJ7X,EAAOA,IAGd,GAFAD,EAAOP,EAAOQ,GAETD,GAAiB,IAATA,EAGZ,GAA6B,WAAxB5B,EAAO8D,KAAMlC,GAIjB5B,EAAOuB,MAAOkiB,EAAO7hB,EAAKyC,UAAazC,GAASA,OAG1C,IAAMqhB,GAAMhX,KAAMrK,GAIlB,CACN0E,EAAMA,GAAOid,EAASve,YAAa9E,EAAQ2E,cAAe,QAG1DmK,GAAQ+S,EAASpW,KAAM/J,KAAY,GAAI,KAAQ,GAAI0D,cACnDge,EAAOrB,EAASjT,IAASiT,EAAQM,SACjCjc,EAAI2I,UAAYqU,EAAM,GAAMtjB,EAAO0jB,cAAe9hB,GAAS0hB,EAAM,GAGjElhB,EAAIkhB,EAAM,EACV,OAAQlhB,IACPkE,EAAMA,EAAIkM,SAKXxS,GAAOuB,MAAOkiB,EAAOnd,EAAIyE,YAGzBzE,EAAMid,EAAS3S,WAGftK,EAAIqK,YAAc,OAzBlB8S,GAAMjkB,KAAMU,EAAQyjB,eAAgB/hB,GA+BvC2hB,GAAS5S,YAAc,GAEvB9O,EAAI,CACJ,OAAUD,EAAO6hB,EAAO5hB,KAGvB,GAAKuhB,GAAapjB,EAAO2F,QAAS/D,EAAMwhB,GAAc,GAChDC,GACJA,EAAQ7jB,KAAMoC,OAgBhB,IAXAgG,EAAW5H,EAAO4H,SAAUhG,EAAK8J,cAAe9J,GAGhD0E,EAAMwc,EAAQS,EAASve,YAAapD,GAAQ,UAGvCgG,GACJmb,GAAezc,GAIX6c,EAAU,CACd/gB,EAAI,CACJ,OAAUR,EAAO0E,EAAKlE,KAChB4f,EAAY/V,KAAMrK,EAAKkC,MAAQ,KACnCqf,EAAQ3jB,KAAMoC,GAMlB,MAAO2hB,IAIR,WACC,GAAIA,GAAWxkB,EAASykB,yBACvBxW,EAAMuW,EAASve,YAAajG,EAAS8F,cAAe,QACpDqK,EAAQnQ,EAAS8F,cAAe,QAMjCqK,GAAM/C,aAAc,OAAQ,SAC5B+C,EAAM/C,aAAc,UAAW,WAC/B+C,EAAM/C,aAAc,OAAQ,KAE5Ba,EAAIhI,YAAakK,GAIjBpP,EAAQ8jB,WAAa5W,EAAI6W,WAAW,GAAOA,WAAW,GAAOrR,UAAUuB,QAIvE/G,EAAIiC,UAAY,yBAChBnP,EAAQgkB,iBAAmB9W,EAAI6W,WAAW,GAAOrR,UAAU0F,eAI5D,IACC6L,IAAY,OACZC,GAAc,iDACdC,GAAiB,qBAElB,SAASC,MACR,OAAO,EAGR,QAASC,MACR,OAAO,EAKR,QAASC,MACR,IACC,MAAOrlB,GAAS0U,cACf,MAAQ4Q,KAGX,QAASC,IAAI1iB,EAAM2iB,EAAOtkB,EAAUmf,EAAMjf,EAAIqkB,GAC7C,GAAIC,GAAQ3gB,CAGZ,IAAsB,gBAAVygB,GAAqB,CAGP,gBAAbtkB,KAGXmf,EAAOA,GAAQnf,EACfA,EAAWmD,OAEZ,KAAMU,IAAQygB,GACbD,GAAI1iB,EAAMkC,EAAM7D,EAAUmf,EAAMmF,EAAOzgB,GAAQ0gB,EAEhD,OAAO5iB,GAsBR,GAnBa,MAARwd,GAAsB,MAANjf,GAGpBA,EAAKF,EACLmf,EAAOnf,EAAWmD,QACD,MAANjD,IACc,gBAAbF,IAGXE,EAAKif,EACLA,EAAOhc,SAIPjD,EAAKif,EACLA,EAAOnf,EACPA,EAAWmD,SAGRjD,KAAO,EACXA,EAAKgkB,OACC,KAAMhkB,EACZ,MAAOyB,EAeR,OAZa,KAAR4iB,IACJC,EAAStkB,EACTA,EAAK,SAAUukB,GAId,MADA1kB,KAAS+d,IAAK2G,GACPD,EAAO3iB,MAAO3C,KAAM4C,YAI5B5B,EAAGiG,KAAOqe,EAAOre,OAAUqe,EAAOre,KAAOpG,EAAOoG,SAE1CxE,EAAKH,KAAM,WACjBzB,EAAO0kB,MAAM3K,IAAK5a,KAAMolB,EAAOpkB,EAAIif,EAAMnf,KAQ3CD,EAAO0kB,OAEN/lB,UAEAob,IAAK,SAAUnY,EAAM2iB,EAAOpX,EAASiS,EAAMnf,GAE1C,GAAI0kB,GAAaC,EAAate,EAC7Bue,EAAQC,EAAGC,EACXC,EAASC,EAAUnhB,EAAMohB,EAAYC,EACrCC,EAAW3F,EAASve,IAAKU,EAG1B,IAAMwjB,EAAN,CAKKjY,EAAQA,UACZwX,EAAcxX,EACdA,EAAUwX,EAAYxX,QACtBlN,EAAW0kB,EAAY1kB,UAIlBkN,EAAQ/G,OACb+G,EAAQ/G,KAAOpG,EAAOoG,SAIfye,EAASO,EAASP,UACzBA,EAASO,EAASP,YAEXD,EAAcQ,EAASC,UAC9BT,EAAcQ,EAASC,OAAS,SAAUra,GAIzC,MAAyB,mBAAXhL,IAA0BA,EAAO0kB,MAAMY,YAActa,EAAElH,KACpE9D,EAAO0kB,MAAMa,SAASzjB,MAAOF,EAAMG,WAAcqB,SAKpDmhB,GAAUA,GAAS,IAAKjZ,MAAOmP,KAAiB,IAChDqK,EAAIP,EAAMxjB,MACV,OAAQ+jB,IACPxe,EAAM2d,GAAetY,KAAM4Y,EAAOO,QAClChhB,EAAOqhB,EAAW7e,EAAK,GACvB4e,GAAe5e,EAAK,IAAO,IAAKM,MAAO,KAAMtE,OAGvCwB,IAKNkhB,EAAUhlB,EAAO0kB,MAAMM,QAASlhB,OAGhCA,GAAS7D,EAAW+kB,EAAQQ,aAAeR,EAAQS,WAAc3hB,EAGjEkhB,EAAUhlB,EAAO0kB,MAAMM,QAASlhB,OAGhCihB,EAAY/kB,EAAOwC,QAClBsB,KAAMA,EACNqhB,SAAUA,EACV/F,KAAMA,EACNjS,QAASA,EACT/G,KAAM+G,EAAQ/G,KACdnG,SAAUA,EACV8J,aAAc9J,GAAYD,EAAOkQ,KAAK5E,MAAMvB,aAAakC,KAAMhM,GAC/DylB,UAAWR,EAAW7Y,KAAM,MAC1BsY,IAGKM,EAAWJ,EAAQ/gB,MAC1BmhB,EAAWJ,EAAQ/gB,MACnBmhB,EAASU,cAAgB,EAGnBX,EAAQY,OACbZ,EAAQY,MAAM3kB,KAAMW,EAAMwd,EAAM8F,EAAYN,MAAkB,GAEzDhjB,EAAK0M,kBACT1M,EAAK0M,iBAAkBxK,EAAM8gB,IAK3BI,EAAQjL,MACZiL,EAAQjL,IAAI9Y,KAAMW,EAAMmjB,GAElBA,EAAU5X,QAAQ/G,OACvB2e,EAAU5X,QAAQ/G,KAAO+G,EAAQ/G,OAK9BnG,EACJglB,EAAS1iB,OAAQ0iB,EAASU,gBAAiB,EAAGZ,GAE9CE,EAASzlB,KAAMulB,GAIhB/kB,EAAO0kB,MAAM/lB,OAAQmF,IAAS,KAMhCyX,OAAQ,SAAU3Z,EAAM2iB,EAAOpX,EAASlN,EAAU4lB,GAEjD,GAAIzjB,GAAG0jB,EAAWxf,EACjBue,EAAQC,EAAGC,EACXC,EAASC,EAAUnhB,EAAMohB,EAAYC,EACrCC,EAAW3F,EAASD,QAAS5d,IAAU6d,EAASve,IAAKU,EAEtD,IAAMwjB,IAAeP,EAASO,EAASP,QAAvC,CAKAN,GAAUA,GAAS,IAAKjZ,MAAOmP,KAAiB,IAChDqK,EAAIP,EAAMxjB,MACV,OAAQ+jB,IAMP,GALAxe,EAAM2d,GAAetY,KAAM4Y,EAAOO,QAClChhB,EAAOqhB,EAAW7e,EAAK,GACvB4e,GAAe5e,EAAK,IAAO,IAAKM,MAAO,KAAMtE,OAGvCwB,EAAN,CAOAkhB,EAAUhlB,EAAO0kB,MAAMM,QAASlhB,OAChCA,GAAS7D,EAAW+kB,EAAQQ,aAAeR,EAAQS,WAAc3hB,EACjEmhB,EAAWJ,EAAQ/gB,OACnBwC,EAAMA,EAAK,IACV,GAAI2C,QAAQ,UAAYic,EAAW7Y,KAAM,iBAAoB,WAG9DyZ,EAAY1jB,EAAI6iB,EAASlkB,MACzB,OAAQqB,IACP2iB,EAAYE,EAAU7iB,IAEfyjB,GAAeV,IAAaJ,EAAUI,UACzChY,GAAWA,EAAQ/G,OAAS2e,EAAU3e,MACtCE,IAAOA,EAAI2F,KAAM8Y,EAAUW,YAC3BzlB,GAAYA,IAAa8kB,EAAU9kB,WACxB,OAAbA,IAAqB8kB,EAAU9kB,YAChCglB,EAAS1iB,OAAQH,EAAG,GAEf2iB,EAAU9kB,UACdglB,EAASU,gBAELX,EAAQzJ,QACZyJ,EAAQzJ,OAAOta,KAAMW,EAAMmjB,GAOzBe,KAAcb,EAASlkB,SACrBikB,EAAQe,UACbf,EAAQe,SAAS9kB,KAAMW,EAAMsjB,EAAYE,EAASC,WAAa,GAE/DrlB,EAAOgmB,YAAapkB,EAAMkC,EAAMshB,EAASC,cAGnCR,GAAQ/gB,QA1Cf,KAAMA,IAAQ+gB,GACb7kB,EAAO0kB,MAAMnJ,OAAQ3Z,EAAMkC,EAAOygB,EAAOO,GAAK3X,EAASlN,GAAU,EA8C/DD,GAAOsE,cAAeugB,IAC1BpF,EAASlE,OAAQ3Z,EAAM,mBAIzB2jB,SAAU,SAAUb,GAGnBA,EAAQ1kB,EAAO0kB,MAAMuB,IAAKvB,EAE1B,IAAI7iB,GAAGO,EAAGd,EAAKuR,EAASkS,EACvBmB,KACA3f,EAAOjH,EAAM2B,KAAMc,WACnBkjB,GAAaxF,EAASve,IAAK/B,KAAM,eAAoBulB,EAAM5gB,UAC3DkhB,EAAUhlB,EAAO0kB,MAAMM,QAASN,EAAM5gB,SAOvC,IAJAyC,EAAM,GAAMme,EACZA,EAAMyB,eAAiBhnB,MAGlB6lB,EAAQoB,aAAepB,EAAQoB,YAAYnlB,KAAM9B,KAAMulB,MAAY,EAAxE,CAKAwB,EAAelmB,EAAO0kB,MAAMO,SAAShkB,KAAM9B,KAAMulB,EAAOO,GAGxDpjB,EAAI,CACJ,QAAUgR,EAAUqT,EAAcrkB,QAAY6iB,EAAM2B,uBAAyB,CAC5E3B,EAAM4B,cAAgBzT,EAAQjR,KAE9BQ,EAAI,CACJ,QAAU2iB,EAAYlS,EAAQoS,SAAU7iB,QACtCsiB,EAAM6B,gCAID7B,EAAM8B,aAAc9B,EAAM8B,WAAWva,KAAM8Y,EAAUW,aAE1DhB,EAAMK,UAAYA,EAClBL,EAAMtF,KAAO2F,EAAU3F,KAEvB9d,IAAUtB,EAAO0kB,MAAMM,QAASD,EAAUI,eAAmBE,QAC5DN,EAAU5X,SAAUrL,MAAO+Q,EAAQjR,KAAM2E,GAE7BnD,SAAR9B,IACGojB,EAAM7S,OAASvQ,MAAU,IAC/BojB,EAAM+B,iBACN/B,EAAMgC,oBAYX,MAJK1B,GAAQ2B,cACZ3B,EAAQ2B,aAAa1lB,KAAM9B,KAAMulB,GAG3BA,EAAM7S,SAGdoT,SAAU,SAAUP,EAAOO,GAC1B,GAAIpjB,GAAGmE,EAAS4gB,EAAK7B,EACpBmB,KACAP,EAAgBV,EAASU,cACzBrY,EAAMoX,EAAM3hB,MAQb,IAAK4iB,GAAiBrY,EAAIjJ,WACR,UAAfqgB,EAAM5gB,MAAoB+iB,MAAOnC,EAAMtQ,SAAYsQ,EAAMtQ,OAAS,GAEpE,KAAQ9G,IAAQnO,KAAMmO,EAAMA,EAAIrI,YAAc9F,KAI7C,GAAsB,IAAjBmO,EAAIjJ,WAAoBiJ,EAAIwG,YAAa,GAAuB,UAAf4Q,EAAM5gB,MAAqB,CAEhF,IADAkC,KACMnE,EAAI,EAAO8jB,EAAJ9jB,EAAmBA,IAC/BkjB,EAAYE,EAAUpjB,GAGtB+kB,EAAM7B,EAAU9kB,SAAW,IAEHmD,SAAnB4C,EAAS4gB,KACb5gB,EAAS4gB,GAAQ7B,EAAUhb,aAC1B/J,EAAQ4mB,EAAKznB,MAAO0a,MAAOvM,GAAQ,GACnCtN,EAAO4O,KAAMgY,EAAKznB,KAAM,MAAQmO,IAAQvM,QAErCiF,EAAS4gB,IACb5gB,EAAQxG,KAAMulB,EAGX/e,GAAQjF,QACZmlB,EAAa1mB,MAAQoC,KAAM0L,EAAK2X,SAAUjf,IAW9C,MAJK2f,GAAgBV,EAASlkB,QAC7BmlB,EAAa1mB,MAAQoC,KAAMzC,KAAM8lB,SAAUA,EAAS3lB,MAAOqmB,KAGrDO,GAIRY,MAAO,+HACyDlgB,MAAO,KAEvEmgB,YAEAC,UACCF,MAAO,4BAA4BlgB,MAAO,KAC1CiI,OAAQ,SAAU6V,EAAOuC,GAOxB,MAJoB,OAAfvC,EAAMwC,QACVxC,EAAMwC,MAA6B,MAArBD,EAASE,SAAmBF,EAASE,SAAWF,EAASG,SAGjE1C,IAIT2C,YACCP,MAAO,uFACwBlgB,MAAO,KACtCiI,OAAQ,SAAU6V,EAAOuC,GACxB,GAAIK,GAAUnZ,EAAKoZ,EAClBnT,EAAS6S,EAAS7S,MAsBnB,OAnBoB,OAAfsQ,EAAM8C,OAAqC,MAApBP,EAASQ,UACpCH,EAAW5C,EAAM3hB,OAAO2I,eAAiB3M,EACzCoP,EAAMmZ,EAASvZ,gBACfwZ,EAAOD,EAASC,KAEhB7C,EAAM8C,MAAQP,EAASQ,SACpBtZ,GAAOA,EAAIuZ,YAAcH,GAAQA,EAAKG,YAAc,IACpDvZ,GAAOA,EAAIwZ,YAAcJ,GAAQA,EAAKI,YAAc,GACvDjD,EAAMkD,MAAQX,EAASY,SACpB1Z,GAAOA,EAAI2Z,WAAcP,GAAQA,EAAKO,WAAc,IACpD3Z,GAAOA,EAAI4Z,WAAcR,GAAQA,EAAKQ,WAAc,IAKlDrD,EAAMwC,OAAoB9jB,SAAXgR,IACpBsQ,EAAMwC,MAAmB,EAAT9S,EAAa,EAAe,EAATA,EAAa,EAAe,EAATA,EAAa,EAAI,GAGjEsQ,IAITuB,IAAK,SAAUvB,GACd,GAAKA,EAAO1kB,EAAOqD,SAClB,MAAOqhB,EAIR,IAAI7iB,GAAGwd,EAAMzc,EACZkB,EAAO4gB,EAAM5gB,KACbkkB,EAAgBtD,EAChBuD,EAAU9oB,KAAK4nB,SAAUjjB,EAEpBmkB,KACL9oB,KAAK4nB,SAAUjjB,GAASmkB,EACvBjE,GAAY/X,KAAMnI,GAAS3E,KAAKkoB,WAChCtD,GAAU9X,KAAMnI,GAAS3E,KAAK6nB,aAGhCpkB,EAAOqlB,EAAQnB,MAAQ3nB,KAAK2nB,MAAMvnB,OAAQ0oB,EAAQnB,OAAU3nB,KAAK2nB,MAEjEpC,EAAQ,GAAI1kB,GAAOkoB,MAAOF,GAE1BnmB,EAAIe,EAAK7B,MACT,OAAQc,IACPwd,EAAOzc,EAAMf,GACb6iB,EAAOrF,GAAS2I,EAAe3I,EAehC,OAVMqF,GAAM3hB,SACX2hB,EAAM3hB,OAAShE,GAKe,IAA1B2lB,EAAM3hB,OAAOsB,WACjBqgB,EAAM3hB,OAAS2hB,EAAM3hB,OAAOkC,YAGtBgjB,EAAQpZ,OAASoZ,EAAQpZ,OAAQ6V,EAAOsD,GAAkBtD,GAGlEM,SACCmD,MAGCC,UAAU,GAEX5U,OAGC6U,QAAS,WACR,MAAKlpB,QAASilB,MAAuBjlB,KAAKqU,OACzCrU,KAAKqU,SACE,GAFR,QAKDgS,aAAc,WAEf8C,MACCD,QAAS,WACR,MAAKlpB,QAASilB,MAAuBjlB,KAAKmpB,MACzCnpB,KAAKmpB,QACE,GAFR,QAKD9C,aAAc,YAEf+C,OAGCF,QAAS,WACR,MAAmB,aAAdlpB,KAAK2E,MAAuB3E,KAAKopB,OAASvoB,EAAOqF,SAAUlG,KAAM,UACrEA,KAAKopB,SACE,GAFR,QAODhG,SAAU,SAAUmC,GACnB,MAAO1kB,GAAOqF,SAAUqf,EAAM3hB,OAAQ,OAIxCylB,cACC7B,aAAc,SAAUjC,GAIDthB,SAAjBshB,EAAM7S,QAAwB6S,EAAMsD,gBACxCtD,EAAMsD,cAAcS,YAAc/D,EAAM7S,YAO7C7R,EAAOgmB,YAAc,SAAUpkB,EAAMkC,EAAMuhB,GAGrCzjB,EAAKqc,qBACTrc,EAAKqc,oBAAqBna,EAAMuhB,IAIlCrlB,EAAOkoB,MAAQ,SAAUvlB,EAAKmkB,GAG7B,MAAQ3nB,gBAAgBa,GAAOkoB,OAK1BvlB,GAAOA,EAAImB,MACf3E,KAAK6oB,cAAgBrlB,EACrBxD,KAAK2E,KAAOnB,EAAImB,KAIhB3E,KAAKupB,mBAAqB/lB,EAAIgmB,kBACHvlB,SAAzBT,EAAIgmB,kBAGJhmB,EAAI8lB,eAAgB,EACrBvE,GACAC,IAIDhlB,KAAK2E,KAAOnB,EAIRmkB,GACJ9mB,EAAOwC,OAAQrD,KAAM2nB,GAItB3nB,KAAKypB,UAAYjmB,GAAOA,EAAIimB,WAAa5oB,EAAOwG,WAGhDrH,KAAMa,EAAOqD,UAAY,IAhCjB,GAAIrD,GAAOkoB,MAAOvlB,EAAKmkB,IAqChC9mB,EAAOkoB,MAAMtnB,WACZE,YAAad,EAAOkoB,MACpBQ,mBAAoBvE,GACpBkC,qBAAsBlC,GACtBoC,8BAA+BpC,GAC/B0E,aAAa,EAEbpC,eAAgB,WACf,GAAIzb,GAAI7L,KAAK6oB,aAEb7oB,MAAKupB,mBAAqBxE,GAErBlZ,IAAM7L,KAAK0pB,aACf7d,EAAEyb,kBAGJC,gBAAiB,WAChB,GAAI1b,GAAI7L,KAAK6oB,aAEb7oB,MAAKknB,qBAAuBnC,GAEvBlZ,IAAM7L,KAAK0pB,aACf7d,EAAE0b,mBAGJoC,yBAA0B,WACzB,GAAI9d,GAAI7L,KAAK6oB,aAEb7oB,MAAKonB,8BAAgCrC,GAEhClZ,IAAM7L,KAAK0pB,aACf7d,EAAE8d,2BAGH3pB,KAAKunB,oBAYP1mB,EAAOyB,MACNsnB,WAAY,YACZC,WAAY,WACZC,aAAc,cACdC,aAAc,cACZ,SAAUC,EAAMlD,GAClBjmB,EAAO0kB,MAAMM,QAASmE,IACrB3D,aAAcS,EACdR,SAAUQ,EAEVZ,OAAQ,SAAUX,GACjB,GAAIpjB,GACHyB,EAAS5D,KACTiqB,EAAU1E,EAAM2E,cAChBtE,EAAYL,EAAMK,SASnB,OALMqE,KAAaA,IAAYrmB,GAAW/C,EAAO4H,SAAU7E,EAAQqmB,MAClE1E,EAAM5gB,KAAOihB,EAAUI,SACvB7jB,EAAMyjB,EAAU5X,QAAQrL,MAAO3C,KAAM4C,WACrC2iB,EAAM5gB,KAAOmiB,GAEP3kB,MAKVtB,EAAOG,GAAGqC,QACT8hB,GAAI,SAAUC,EAAOtkB,EAAUmf,EAAMjf,GACpC,MAAOmkB,IAAInlB,KAAMolB,EAAOtkB,EAAUmf,EAAMjf,IAEzCqkB,IAAK,SAAUD,EAAOtkB,EAAUmf,EAAMjf,GACrC,MAAOmkB,IAAInlB,KAAMolB,EAAOtkB,EAAUmf,EAAMjf,EAAI,IAE7C4d,IAAK,SAAUwG,EAAOtkB,EAAUE,GAC/B,GAAI4kB,GAAWjhB,CACf,IAAKygB,GAASA,EAAMkC,gBAAkBlC,EAAMQ,UAW3C,MARAA,GAAYR,EAAMQ,UAClB/kB,EAAQukB,EAAM4B,gBAAiBpI,IAC9BgH,EAAUW,UACTX,EAAUI,SAAW,IAAMJ,EAAUW,UACrCX,EAAUI,SACXJ,EAAU9kB,SACV8kB,EAAU5X,SAEJhO,IAER,IAAsB,gBAAVolB,GAAqB,CAGhC,IAAMzgB,IAAQygB,GACbplB,KAAK4e,IAAKja,EAAM7D,EAAUskB,EAAOzgB,GAElC,OAAO3E,MAWR,MATKc,MAAa,GAA6B,kBAAbA,KAGjCE,EAAKF,EACLA,EAAWmD,QAEPjD,KAAO,IACXA,EAAKgkB,IAEChlB,KAAKsC,KAAM,WACjBzB,EAAO0kB,MAAMnJ,OAAQpc,KAAMolB,EAAOpkB,EAAIF,OAMzC,IACCqpB,IAAY,2EAKZC,GAAe,wBAGfC,GAAW,oCACXC,GAAoB,cACpBC,GAAe,0CAGhB,SAASC,IAAoB/nB,EAAMgoB,GAClC,MAAO5pB,GAAOqF,SAAUzD,EAAM,UAC7B5B,EAAOqF,SAA+B,KAArBukB,EAAQvlB,SAAkBulB,EAAUA,EAAQhZ,WAAY,MAEzEhP,EAAKkK,qBAAsB,SAAW,IACrClK,EAAKoD,YAAapD,EAAK8J,cAAc7G,cAAe,UACrDjD,EAIF,QAASioB,IAAejoB,GAEvB,MADAA,GAAKkC,MAAyC,OAAhClC,EAAKsK,aAAc,SAAsB,IAAMtK,EAAKkC,KAC3DlC,EAER,QAASkoB,IAAeloB,GACvB,GAAI0J,GAAQme,GAAkB9d,KAAM/J,EAAKkC,KAQzC,OANKwH,GACJ1J,EAAKkC,KAAOwH,EAAO,GAEnB1J,EAAK6K,gBAAiB,QAGhB7K,EAGR,QAASmoB,IAAgBpnB,EAAKqnB,GAC7B,GAAInoB,GAAG6X,EAAG5V,EAAMmmB,EAAUC,EAAUC,EAAUC,EAAUvF,CAExD,IAAuB,IAAlBmF,EAAK3lB,SAAV,CAKA,GAAKob,EAASD,QAAS7c,KACtBsnB,EAAWxK,EAASpB,OAAQ1b,GAC5BunB,EAAWzK,EAASN,IAAK6K,EAAMC,GAC/BpF,EAASoF,EAASpF,QAEJ,OACNqF,GAAS7E,OAChB6E,EAASrF,SAET,KAAM/gB,IAAQ+gB,GACb,IAAMhjB,EAAI,EAAG6X,EAAImL,EAAQ/gB,GAAO/C,OAAY2Y,EAAJ7X,EAAOA,IAC9C7B,EAAO0kB,MAAM3K,IAAKiQ,EAAMlmB,EAAM+gB,EAAQ/gB,GAAQjC,IAO7C6d,EAASF,QAAS7c,KACtBwnB,EAAWzK,EAASrB,OAAQ1b,GAC5BynB,EAAWpqB,EAAOwC,UAAY2nB,GAE9BzK,EAASP,IAAK6K,EAAMI,KAKtB,QAASC,IAAU1nB,EAAKqnB,GACvB,GAAI3kB,GAAW2kB,EAAK3kB,SAASC,aAGX,WAAbD,GAAwByc,EAAe7V,KAAMtJ,EAAImB,MACrDkmB,EAAKjW,QAAUpR,EAAIoR,QAGK,UAAb1O,GAAqC,aAAbA,IACnC2kB,EAAK9R,aAAevV,EAAIuV,cAI1B,QAASoS,IAAUC,EAAYhkB,EAAM7E,EAAU2hB,GAG9C9c,EAAOhH,EAAOuC,SAAWyE,EAEzB,IAAIgd,GAAUvhB,EAAOmhB,EAASqH,EAAYxc,EAAMG,EAC/CtM,EAAI,EACJ6X,EAAI6Q,EAAWxpB,OACf0pB,EAAW/Q,EAAI,EACfvT,EAAQI,EAAM,GACdtD,EAAajD,EAAOiD,WAAYkD,EAGjC,IAAKlD,GACDyW,EAAI,GAAsB,gBAAVvT,KAChBrG,EAAQ8jB,YAAc4F,GAASvd,KAAM9F,GACxC,MAAOokB,GAAW9oB,KAAM,SAAUoY,GACjC,GAAId,GAAOwR,EAAWtoB,GAAI4X,EACrB5W,KACJsD,EAAM,GAAMJ,EAAMlF,KAAM9B,KAAM0a,EAAOd,EAAK2R,SAE3CJ,GAAUvR,EAAMxS,EAAM7E,EAAU2hB,IAIlC,IAAK3J,IACJ6J,EAAWL,GAAe3c,EAAMgkB,EAAY,GAAI7e,eAAe,EAAO6e,EAAYlH,GAClFrhB,EAAQuhB,EAAS3S,WAEmB,IAA/B2S,EAASxY,WAAWhK,SACxBwiB,EAAWvhB,GAIPA,GAASqhB,GAAU,CAOvB,IANAF,EAAUnjB,EAAO2B,IAAKmhB,EAAQS,EAAU,UAAYsG,IACpDW,EAAarH,EAAQpiB,OAKT2Y,EAAJ7X,EAAOA,IACdmM,EAAOuV,EAEF1hB,IAAM4oB,IACVzc,EAAOhO,EAAO8C,MAAOkL,GAAM,GAAM,GAG5Bwc,GAIJxqB,EAAOuB,MAAO4hB,EAASL,EAAQ9U,EAAM,YAIvCtM,EAAST,KAAMspB,EAAY1oB,GAAKmM,EAAMnM,EAGvC,IAAK2oB,EAOJ,IANArc,EAAMgV,EAASA,EAAQpiB,OAAS,GAAI2K,cAGpC1L,EAAO2B,IAAKwhB,EAAS2G,IAGfjoB,EAAI,EAAO2oB,EAAJ3oB,EAAgBA,IAC5BmM,EAAOmV,EAASthB,GACXmgB,EAAY/V,KAAM+B,EAAKlK,MAAQ,MAClC2b,EAASpB,OAAQrQ,EAAM,eACxBhO,EAAO4H,SAAUuG,EAAKH,KAEjBA,EAAKrL,IAGJ3C,EAAO2qB,UACX3qB,EAAO2qB,SAAU3c,EAAKrL,KAGvB3C,EAAOuE,WAAYyJ,EAAK2C,YAAYnN,QAASkmB,GAAc,MAQjE,MAAOa,GAGR,QAAShP,IAAQ3Z,EAAM3B,EAAU2qB,GAKhC,IAJA,GAAI5c,GACHyV,EAAQxjB,EAAWD,EAAO6O,OAAQ5O,EAAU2B,GAASA,EACrDC,EAAI,EAE4B,OAAvBmM,EAAOyV,EAAO5hB,IAAeA,IAChC+oB,GAA8B,IAAlB5c,EAAK3J,UACtBrE,EAAO6qB,UAAW/H,EAAQ9U,IAGtBA,EAAK/I,aACJ2lB,GAAY5qB,EAAO4H,SAAUoG,EAAKtC,cAAesC,IACrD+U,GAAeD,EAAQ9U,EAAM,WAE9BA,EAAK/I,WAAWC,YAAa8I,GAI/B,OAAOpM,GAGR5B,EAAOwC,QACNkhB,cAAe,SAAUgH,GACxB,MAAOA,GAAKlnB,QAAS8lB,GAAW,cAGjCxmB,MAAO,SAAUlB,EAAMkpB,EAAeC,GACrC,GAAIlpB,GAAG6X,EAAGsR,EAAaC,EACtBnoB,EAAQlB,EAAKiiB,WAAW,GACxBqH,EAASlrB,EAAO4H,SAAUhG,EAAK8J,cAAe9J,EAG/C,MAAM9B,EAAQgkB,gBAAsC,IAAlBliB,EAAKyC,UAAoC,KAAlBzC,EAAKyC,UAC3DrE,EAAOoY,SAAUxW,IAMnB,IAHAqpB,EAAenI,EAAQhgB,GACvBkoB,EAAclI,EAAQlhB,GAEhBC,EAAI,EAAG6X,EAAIsR,EAAYjqB,OAAY2Y,EAAJ7X,EAAOA,IAC3CwoB,GAAUW,EAAanpB,GAAKopB,EAAcppB,GAK5C,IAAKipB,EACJ,GAAKC,EAIJ,IAHAC,EAAcA,GAAelI,EAAQlhB,GACrCqpB,EAAeA,GAAgBnI,EAAQhgB,GAEjCjB,EAAI,EAAG6X,EAAIsR,EAAYjqB,OAAY2Y,EAAJ7X,EAAOA,IAC3CkoB,GAAgBiB,EAAanpB,GAAKopB,EAAcppB,QAGjDkoB,IAAgBnoB,EAAMkB,EAWxB,OANAmoB,GAAenI,EAAQhgB,EAAO,UACzBmoB,EAAalqB,OAAS,GAC1BgiB,GAAekI,GAAeC,GAAUpI,EAAQlhB,EAAM,WAIhDkB,GAGR+nB,UAAW,SAAUxpB,GAKpB,IAJA,GAAI+d,GAAMxd,EAAMkC,EACfkhB,EAAUhlB,EAAO0kB,MAAMM,QACvBnjB,EAAI,EAE6BuB,UAAxBxB,EAAOP,EAAOQ,IAAqBA,IAC5C,GAAK6c,EAAY9c,GAAS,CACzB,GAAOwd,EAAOxd,EAAM6d,EAASpc,SAAc,CAC1C,GAAK+b,EAAKyF,OACT,IAAM/gB,IAAQsb,GAAKyF,OACbG,EAASlhB,GACb9D,EAAO0kB,MAAMnJ,OAAQ3Z,EAAMkC,GAI3B9D,EAAOgmB,YAAapkB,EAAMkC,EAAMsb,EAAKiG,OAOxCzjB,GAAM6d,EAASpc,SAAYD,OAEvBxB,EAAM8d,EAASrc,WAInBzB,EAAM8d,EAASrc,SAAYD,YAOhCpD,EAAOG,GAAGqC,QAGT8nB,SAAUA,GAEVa,OAAQ,SAAUlrB,GACjB,MAAOsb,IAAQpc,KAAMc,GAAU,IAGhCsb,OAAQ,SAAUtb,GACjB,MAAOsb,IAAQpc,KAAMc,IAGtB6E,KAAM,SAAUqB,GACf,MAAOkY,GAAQlf,KAAM,SAAUgH,GAC9B,MAAiB/C,UAAV+C,EACNnG,EAAO8E,KAAM3F,MACbA,KAAK+U,QAAQzS,KAAM,WACK,IAAlBtC,KAAKkF,UAAoC,KAAlBlF,KAAKkF,UAAqC,IAAlBlF,KAAKkF,WACxDlF,KAAKwR,YAAcxK,MAGpB,KAAMA,EAAOpE,UAAUhB,SAG3BqqB,OAAQ,WACP,MAAOd,IAAUnrB,KAAM4C,UAAW,SAAUH,GAC3C,GAAuB,IAAlBzC,KAAKkF,UAAoC,KAAlBlF,KAAKkF,UAAqC,IAAlBlF,KAAKkF,SAAiB,CACzE,GAAItB,GAAS4mB,GAAoBxqB,KAAMyC,EACvCmB,GAAOiC,YAAapD,OAKvBypB,QAAS,WACR,MAAOf,IAAUnrB,KAAM4C,UAAW,SAAUH,GAC3C,GAAuB,IAAlBzC,KAAKkF,UAAoC,KAAlBlF,KAAKkF,UAAqC,IAAlBlF,KAAKkF,SAAiB,CACzE,GAAItB,GAAS4mB,GAAoBxqB,KAAMyC,EACvCmB,GAAOuoB,aAAc1pB,EAAMmB,EAAO6N,gBAKrC2a,OAAQ,WACP,MAAOjB,IAAUnrB,KAAM4C,UAAW,SAAUH,GACtCzC,KAAK8F,YACT9F,KAAK8F,WAAWqmB,aAAc1pB,EAAMzC,SAKvCqsB,MAAO,WACN,MAAOlB,IAAUnrB,KAAM4C,UAAW,SAAUH,GACtCzC,KAAK8F,YACT9F,KAAK8F,WAAWqmB,aAAc1pB,EAAMzC,KAAKsO,gBAK5CyG,MAAO,WAIN,IAHA,GAAItS,GACHC,EAAI,EAE2B,OAAtBD,EAAOzC,KAAM0C,IAAeA,IACd,IAAlBD,EAAKyC,WAGTrE,EAAO6qB,UAAW/H,EAAQlhB,GAAM,IAGhCA,EAAK+O,YAAc,GAIrB,OAAOxR,OAGR2D,MAAO,SAAUgoB,EAAeC,GAI/B,MAHAD,GAAiC,MAAjBA,GAAwB,EAAQA,EAChDC,EAAyC,MAArBA,EAA4BD,EAAgBC,EAEzD5rB,KAAKwC,IAAK,WAChB,MAAO3B,GAAO8C,MAAO3D,KAAM2rB,EAAeC,MAI5CL,KAAM,SAAUvkB,GACf,MAAOkY,GAAQlf,KAAM,SAAUgH,GAC9B,GAAIvE,GAAOzC,KAAM,OAChB0C,EAAI,EACJ6X,EAAIva,KAAK4B,MAEV,IAAeqC,SAAV+C,GAAyC,IAAlBvE,EAAKyC,SAChC,MAAOzC,GAAKqN,SAIb,IAAsB,gBAAV9I,KAAuBojB,GAAatd,KAAM9F,KACpD8b,GAAWF,EAASpW,KAAMxF,KAAa,GAAI,KAAQ,GAAIb,eAAkB,CAE1Ea,EAAQnG,EAAO0jB,cAAevd,EAE9B,KACC,KAAYuT,EAAJ7X,EAAOA,IACdD,EAAOzC,KAAM0C,OAGU,IAAlBD,EAAKyC,WACTrE,EAAO6qB,UAAW/H,EAAQlhB,GAAM,IAChCA,EAAKqN,UAAY9I,EAInBvE,GAAO,EAGN,MAAQoJ,KAGNpJ,GACJzC,KAAK+U,QAAQkX,OAAQjlB,IAEpB,KAAMA,EAAOpE,UAAUhB,SAG3B0qB,YAAa,WACZ,GAAIpI,KAGJ,OAAOiH,IAAUnrB,KAAM4C,UAAW,SAAUH,GAC3C,GAAIsM,GAAS/O,KAAK8F,UAEbjF,GAAO2F,QAASxG,KAAMkkB,GAAY,IACtCrjB,EAAO6qB,UAAW/H,EAAQ3jB,OACrB+O,GACJA,EAAOwd,aAAc9pB,EAAMzC,QAK3BkkB,MAILrjB,EAAOyB,MACNkqB,SAAU,SACVC,UAAW,UACXN,aAAc,SACdO,YAAa,QACbC,WAAY,eACV,SAAUppB,EAAMukB,GAClBjnB,EAAOG,GAAIuC,GAAS,SAAUzC,GAO7B,IANA,GAAIoB,GACHC,KACAyqB,EAAS/rB,EAAQC,GACjBiC,EAAO6pB,EAAOhrB,OAAS,EACvBc,EAAI,EAEQK,GAALL,EAAWA,IAClBR,EAAQQ,IAAMK,EAAO/C,KAAOA,KAAK2D,OAAO,GACxC9C,EAAQ+rB,EAAQlqB,IAAOolB,GAAY5lB,GAInC7B,EAAKsC,MAAOR,EAAKD,EAAMH,MAGxB,OAAO/B,MAAKiC,UAAWE,KAKzB,IAAI0qB,IACHC,IAICC,KAAM,QACNC,KAAM,QAUR,SAASC,IAAe1pB,EAAMyL,GAC7B,GAAIvM,GAAO5B,EAAQmO,EAAItJ,cAAenC,IAASipB,SAAUxd,EAAIoZ,MAE5D8E,EAAUrsB,EAAOkhB,IAAKtf,EAAM,GAAK,UAMlC,OAFAA,GAAKupB,SAEEkB,EAOR,QAASC,IAAgBjnB,GACxB,GAAI8I,GAAMpP,EACTstB,EAAUJ,GAAa5mB,EA2BxB,OAzBMgnB,KACLA,EAAUD,GAAe/mB,EAAU8I,GAGlB,SAAZke,GAAuBA,IAG3BL,IAAWA,IAAUhsB,EAAQ,mDAC3B2rB,SAAUxd,EAAIJ,iBAGhBI,EAAM6d,GAAQ,GAAIzR,gBAGlBpM,EAAIoe,QACJpe,EAAIqe,QAEJH,EAAUD,GAAe/mB,EAAU8I,GACnC6d,GAAOb,UAIRc,GAAa5mB,GAAagnB,GAGpBA,EAER,GAAII,IAAU,UAEVC,GAAY,GAAIzjB,QAAQ,KAAO2X,EAAO,kBAAmB,KAEzD+L,GAAY,SAAU/qB,GAKxB,GAAIgrB,GAAOhrB,EAAK8J,cAAc0C,WAM9B,OAJMwe,IAASA,EAAKC,SACnBD,EAAO1tB,GAGD0tB,EAAKE,iBAAkBlrB,IAG5BmrB,GAAO,SAAUnrB,EAAMa,EAASf,EAAU6E,GAC7C,GAAIjF,GAAKoB,EACRsqB,IAGD,KAAMtqB,IAAQD,GACbuqB,EAAKtqB,GAASd,EAAKigB,MAAOnf,GAC1Bd,EAAKigB,MAAOnf,GAASD,EAASC,EAG/BpB,GAAMI,EAASI,MAAOF,EAAM2E,MAG5B,KAAM7D,IAAQD,GACbb,EAAKigB,MAAOnf,GAASsqB,EAAKtqB,EAG3B,OAAOpB,IAIJyM,GAAkBhP,EAASgP,iBAI/B,WACC,GAAIkf,GAAkBC,EAAsBC,EAAqBC,EAChEC,EAAYtuB,EAAS8F,cAAe,OACpCmI,EAAMjO,EAAS8F,cAAe,MAG/B,IAAMmI,EAAI6U,MAAV,CAMA7U,EAAI6U,MAAMyL,eAAiB,cAC3BtgB,EAAI6W,WAAW,GAAOhC,MAAMyL,eAAiB,GAC7CxtB,EAAQytB,gBAA+C,gBAA7BvgB,EAAI6U,MAAMyL,eAEpCD,EAAUxL,MAAM2L,QAAU,4FAE1BH,EAAUroB,YAAagI,EAIvB,SAASygB,KACRzgB,EAAI6U,MAAM2L,QAIT,qKAIDxgB,EAAIiC,UAAY,GAChBlB,GAAgB/I,YAAaqoB,EAE7B,IAAIK,GAAWxuB,EAAO4tB,iBAAkB9f,EACxCigB,GAAoC,OAAjBS,EAASrf,IAC5B+e,EAAgD,QAAxBM,EAASC,WACjCT,EAA0C,QAAnBQ,EAASE,MAIhC5gB,EAAI6U,MAAMgM,YAAc,MACxBV,EAA+C,QAAzBO,EAASG,YAE/B9f,GAAgB7I,YAAamoB,GAG9BrtB,EAAOwC,OAAQ1C,GACdguB,cAAe,WAMd,MADAL,KACOR,GAERc,kBAAmB,WAIlB,MAH6B,OAAxBb,GACJO,IAEMP,GAERc,iBAAkB,WAQjB,MAH6B,OAAxBd,GACJO,IAEMN,GAERc,mBAAoB,WAMnB,MAH6B,OAAxBf,GACJO,IAEML,GAERc,oBAAqB,WAOpB,GAAI5sB,GACH6sB,EAAYnhB,EAAIhI,YAAajG,EAAS8F,cAAe,OAkBtD,OAfAspB,GAAUtM,MAAM2L,QAAUxgB,EAAI6U,MAAM2L,QAInC,kGAEDW,EAAUtM,MAAMgM,YAAcM,EAAUtM,MAAM+L,MAAQ,IACtD5gB,EAAI6U,MAAM+L,MAAQ,MAClB7f,GAAgB/I,YAAaqoB,GAE7B/rB,GAAO6C,WAAYjF,EAAO4tB,iBAAkBqB,GAAYN,aAExD9f,GAAgB7I,YAAamoB,GAC7BrgB,EAAI9H,YAAaipB,GAEV7sB,QAMV,SAAS8sB,IAAQxsB,EAAMc,EAAM2rB,GAC5B,GAAIT,GAAOU,EAAUC,EAAUjtB,EAC9BugB,EAAQjgB,EAAKigB,KAuCd,OArCAwM,GAAWA,GAAY1B,GAAW/qB,GAClCN,EAAM+sB,EAAWA,EAASG,iBAAkB9rB,IAAU2rB,EAAU3rB,GAASU,OAK1D,KAAR9B,GAAsB8B,SAAR9B,GAAwBtB,EAAO4H,SAAUhG,EAAK8J,cAAe9J,KACjFN,EAAMtB,EAAO6hB,MAAOjgB,EAAMc,IAKtB2rB,IAOEvuB,EAAQkuB,oBAAsBtB,GAAUzgB,KAAM3K,IAASmrB,GAAQxgB,KAAMvJ,KAG1EkrB,EAAQ/L,EAAM+L,MACdU,EAAWzM,EAAMyM,SACjBC,EAAW1M,EAAM0M,SAGjB1M,EAAMyM,SAAWzM,EAAM0M,SAAW1M,EAAM+L,MAAQtsB,EAChDA,EAAM+sB,EAAST,MAGf/L,EAAM+L,MAAQA,EACd/L,EAAMyM,SAAWA,EACjBzM,EAAM0M,SAAWA,GAIJnrB,SAAR9B,EAINA,EAAM,GACNA,EAIF,QAASmtB,IAAcC,EAAaC,GAGnC,OACCztB,IAAK,WACJ,MAAKwtB,gBAIGvvB,MAAK+B,KAKJ/B,KAAK+B,IAAMytB,GAAS7sB,MAAO3C,KAAM4C,aAM7C,GAKC6sB,IAAe,4BAEfC,IAAYC,SAAU,WAAYC,WAAY,SAAU1C,QAAS,SACjE2C,IACCC,cAAe,IACfC,WAAY,OAGbC,IAAgB,SAAU,IAAK,MAAO,MACtCC,GAAarwB,EAAS8F,cAAe,OAAQgd,KAG9C,SAASwN,IAAgB3sB,GAGxB,GAAKA,IAAQ0sB,IACZ,MAAO1sB,EAIR,IAAI4sB,GAAU5sB,EAAM,GAAI/B,cAAgB+B,EAAKpD,MAAO,GACnDuC,EAAIstB,GAAYpuB,MAEjB,OAAQc,IAEP,GADAa,EAAOysB,GAAattB,GAAMytB,EACrB5sB,IAAQ0sB,IACZ,MAAO1sB,GAKV,QAAS6sB,IAAmB3tB,EAAMuE,EAAOqpB,GAIxC,GAAIxpB,GAAU8a,EAAQnV,KAAMxF,EAC5B,OAAOH,GAGN1C,KAAKmsB,IAAK,EAAGzpB,EAAS,IAAQwpB,GAAY,KAAUxpB,EAAS,IAAO,MACpEG,EAGF,QAASupB,IAAsB9tB,EAAMc,EAAMitB,EAAOC,EAAaC,GAW9D,IAVA,GAAIhuB,GAAI8tB,KAAYC,EAAc,SAAW,WAG5C,EAGS,UAATltB,EAAmB,EAAI,EAEvB2N,EAAM,EAEK,EAAJxO,EAAOA,GAAK,EAGJ,WAAV8tB,IACJtf,GAAOrQ,EAAOkhB,IAAKtf,EAAM+tB,EAAQ5O,EAAWlf,IAAK,EAAMguB,IAGnDD,GAGW,YAAVD,IACJtf,GAAOrQ,EAAOkhB,IAAKtf,EAAM,UAAYmf,EAAWlf,IAAK,EAAMguB,IAI7C,WAAVF,IACJtf,GAAOrQ,EAAOkhB,IAAKtf,EAAM,SAAWmf,EAAWlf,GAAM,SAAS,EAAMguB,MAKrExf,GAAOrQ,EAAOkhB,IAAKtf,EAAM,UAAYmf,EAAWlf,IAAK,EAAMguB,GAG5C,YAAVF,IACJtf,GAAOrQ,EAAOkhB,IAAKtf,EAAM,SAAWmf,EAAWlf,GAAM,SAAS,EAAMguB,IAKvE,OAAOxf,GAGR,QAASyf,IAAkBluB,EAAMc,EAAMitB,GAGtC,GAAII,IAAmB,EACtB1f,EAAe,UAAT3N,EAAmBd,EAAKouB,YAAcpuB,EAAKquB,aACjDJ,EAASlD,GAAW/qB,GACpBguB,EAAiE,eAAnD5vB,EAAOkhB,IAAKtf,EAAM,aAAa,EAAOiuB,EAKrD,IAAY,GAAPxf,GAAmB,MAAPA,EAAc,CAS9B,GANAA,EAAM+d,GAAQxsB,EAAMc,EAAMmtB,IACf,EAANxf,GAAkB,MAAPA,KACfA,EAAMzO,EAAKigB,MAAOnf,IAIdgqB,GAAUzgB,KAAMoE,GACpB,MAAOA,EAKR0f,GAAmBH,IAChB9vB,EAAQiuB,qBAAuB1d,IAAQzO,EAAKigB,MAAOnf,IAGtD2N,EAAMlM,WAAYkM,IAAS,EAI5B,MAASA,GACRqf,GACC9tB,EACAc,EACAitB,IAAWC,EAAc,SAAW,WACpCG,EACAF,GAEE,KAGL,QAASK,IAAU/f,EAAUggB,GAM5B,IALA,GAAI9D,GAASzqB,EAAMwuB,EAClBjT,KACAtD,EAAQ,EACR9Y,EAASoP,EAASpP,OAEHA,EAAR8Y,EAAgBA,IACvBjY,EAAOuO,EAAU0J,GACXjY,EAAKigB,QAIX1E,EAAQtD,GAAU4F,EAASve,IAAKU,EAAM,cACtCyqB,EAAUzqB,EAAKigB,MAAMwK,QAChB8D,GAIEhT,EAAQtD,IAAuB,SAAZwS,IACxBzqB,EAAKigB,MAAMwK,QAAU,IAMM,KAAvBzqB,EAAKigB,MAAMwK,SAAkBrL,EAAUpf,KAC3Cub,EAAQtD,GAAU4F,EAASpB,OAC1Bzc,EACA,aACA0qB,GAAgB1qB,EAAKyD,cAIvB+qB,EAASpP,EAAUpf,GAEF,SAAZyqB,GAAuB+D,GAC3B3Q,EAASN,IACRvd,EACA,aACAwuB,EAAS/D,EAAUrsB,EAAOkhB,IAAKtf,EAAM,aAQzC,KAAMiY,EAAQ,EAAW9Y,EAAR8Y,EAAgBA,IAChCjY,EAAOuO,EAAU0J,GACXjY,EAAKigB,QAGLsO,GAA+B,SAAvBvuB,EAAKigB,MAAMwK,SAA6C,KAAvBzqB,EAAKigB,MAAMwK,UACzDzqB,EAAKigB,MAAMwK,QAAU8D,EAAOhT,EAAQtD,IAAW,GAAK,QAItD,OAAO1J,GAGRnQ,EAAOwC,QAIN6tB,UACCC,SACCpvB,IAAK,SAAUU,EAAMysB,GACpB,GAAKA,EAAW,CAGf,GAAI/sB,GAAM8sB,GAAQxsB,EAAM,UACxB,OAAe,KAARN,EAAa,IAAMA,MAO9BqgB,WACC4O,yBAA2B,EAC3BC,aAAe,EACfC,aAAe,EACfC,UAAY,EACZC,YAAc,EACdzB,YAAc,EACd0B,YAAc,EACdN,SAAW,EACXO,OAAS,EACTC,SAAW,EACXC,QAAU,EACVC,QAAU,EACVC,MAAQ,GAKTC,UACCC,QAAS,YAIVtP,MAAO,SAAUjgB,EAAMc,EAAMyD,EAAOwpB,GAGnC,GAAM/tB,GAA0B,IAAlBA,EAAKyC,UAAoC,IAAlBzC,EAAKyC,UAAmBzC,EAAKigB,MAAlE,CAKA,GAAIvgB,GAAKwC,EAAMuc,EACd+Q,EAAWpxB,EAAOmF,UAAWzC,GAC7Bmf,EAAQjgB,EAAKigB,KASd,OAPAnf,GAAO1C,EAAOkxB,SAAUE,KACrBpxB,EAAOkxB,SAAUE,GAAa/B,GAAgB+B,IAAcA,GAG/D/Q,EAAQrgB,EAAOqwB,SAAU3tB,IAAU1C,EAAOqwB,SAAUe,GAGrChuB,SAAV+C,EAqCCka,GAAS,OAASA,IACwBjd,UAA5C9B,EAAM+e,EAAMnf,IAAKU,GAAM,EAAO+tB,IAEzBruB,EAIDugB,EAAOnf,IA3CdoB,QAAcqC,GAGA,WAATrC,IAAuBxC,EAAMwf,EAAQnV,KAAMxF,KAAa7E,EAAK,KACjE6E,EAAQgb,EAAWvf,EAAMc,EAAMpB,GAG/BwC,EAAO,UAIM,MAATqC,GAAiBA,IAAUA,IAKlB,WAATrC,IACJqC,GAAS7E,GAAOA,EAAK,KAAStB,EAAO2hB,UAAWyP,GAAa,GAAK,OAK7DtxB,EAAQytB,iBAA6B,KAAVpnB,GAAiD,IAAjCzD,EAAKjD,QAAS,gBAC9DoiB,EAAOnf,GAAS,WAIX2d,GAAY,OAASA,IACsBjd,UAA9C+C,EAAQka,EAAMlB,IAAKvd,EAAMuE,EAAOwpB,MAElC9N,EAAOnf,GAASyD,IAnBjB,UAoCF+a,IAAK,SAAUtf,EAAMc,EAAMitB,EAAOE,GACjC,GAAIxf,GAAKlP,EAAKkf,EACb+Q,EAAWpxB,EAAOmF,UAAWzC,EAyB9B,OAtBAA,GAAO1C,EAAOkxB,SAAUE,KACrBpxB,EAAOkxB,SAAUE,GAAa/B,GAAgB+B,IAAcA,GAG/D/Q,EAAQrgB,EAAOqwB,SAAU3tB,IAAU1C,EAAOqwB,SAAUe,GAG/C/Q,GAAS,OAASA,KACtBhQ,EAAMgQ,EAAMnf,IAAKU,GAAM,EAAM+tB,IAIjBvsB,SAARiN,IACJA,EAAM+d,GAAQxsB,EAAMc,EAAMmtB,IAId,WAARxf,GAAoB3N,IAAQssB,MAChC3e,EAAM2e,GAAoBtsB,IAIZ,KAAVitB,GAAgBA,GACpBxuB,EAAMgD,WAAYkM,GACXsf,KAAU,GAAQ0B,SAAUlwB,GAAQA,GAAO,EAAIkP,GAEhDA,KAITrQ,EAAOyB,MAAQ,SAAU,SAAW,SAAUI,EAAGa,GAChD1C,EAAOqwB,SAAU3tB,IAChBxB,IAAK,SAAUU,EAAMysB,EAAUsB,GAC9B,MAAKtB,GAIGO,GAAa3iB,KAAMjM,EAAOkhB,IAAKtf,EAAM,aACtB,IAArBA,EAAKouB,YACJjD,GAAMnrB,EAAMitB,GAAS,WACpB,MAAOiB,IAAkBluB,EAAMc,EAAMitB,KAEtCG,GAAkBluB,EAAMc,EAAMitB,GATjC,QAaDxQ,IAAK,SAAUvd,EAAMuE,EAAOwpB,GAC3B,GAAI3pB,GACH6pB,EAASF,GAAShD,GAAW/qB,GAC7B4tB,EAAWG,GAASD,GACnB9tB,EACAc,EACAitB,EACmD,eAAnD3vB,EAAOkhB,IAAKtf,EAAM,aAAa,EAAOiuB,GACtCA,EAWF,OAPKL,KAAcxpB,EAAU8a,EAAQnV,KAAMxF,KACb,QAA3BH,EAAS,IAAO,QAElBpE,EAAKigB,MAAOnf,GAASyD,EACrBA,EAAQnG,EAAOkhB,IAAKtf,EAAMc,IAGpB6sB,GAAmB3tB,EAAMuE,EAAOqpB,OAK1CxvB,EAAOqwB,SAAS1C,WAAac,GAAc3uB,EAAQmuB,mBAClD,SAAUrsB,EAAMysB,GACf,MAAKA,IACKlqB,WAAYiqB,GAAQxsB,EAAM,gBAClCA,EAAK0vB,wBAAwBC,KAC5BxE,GAAMnrB,GAAQ+rB,WAAY,GAAK,WAC9B,MAAO/rB,GAAK0vB,wBAAwBC,QAElC,KANN,SAYFvxB,EAAOqwB,SAASxC,YAAcY,GAAc3uB,EAAQouB,oBACnD,SAAUtsB,EAAMysB,GACf,MAAKA,GACGtB,GAAMnrB,GAAQyqB,QAAW,gBAC/B+B,IAAUxsB,EAAM,gBAFlB,SAQF5B,EAAOyB,MACN+vB,OAAQ,GACRC,QAAS,GACTC,OAAQ,SACN,SAAUC,EAAQC,GACpB5xB,EAAOqwB,SAAUsB,EAASC,IACzBC,OAAQ,SAAU1rB,GAOjB,IANA,GAAItE,GAAI,EACPiwB,KAGAC,EAAyB,gBAAV5rB,GAAqBA,EAAMS,MAAO,MAAUT,GAEhD,EAAJtE,EAAOA,IACdiwB,EAAUH,EAAS5Q,EAAWlf,GAAM+vB,GACnCG,EAAOlwB,IAAOkwB,EAAOlwB,EAAI,IAAOkwB,EAAO,EAGzC,OAAOD,KAIHrF,GAAQxgB,KAAM0lB,KACnB3xB,EAAOqwB,SAAUsB,EAASC,GAASzS,IAAMoQ,MAI3CvvB,EAAOG,GAAGqC,QACT0e,IAAK,SAAUxe,EAAMyD,GACpB,MAAOkY,GAAQlf,KAAM,SAAUyC,EAAMc,EAAMyD,GAC1C,GAAI0pB,GAAQ1tB,EACXR,KACAE,EAAI,CAEL,IAAK7B,EAAOmD,QAAST,GAAS,CAI7B,IAHAmtB,EAASlD,GAAW/qB,GACpBO,EAAMO,EAAK3B,OAECoB,EAAJN,EAASA,IAChBF,EAAKe,EAAMb,IAAQ7B,EAAOkhB,IAAKtf,EAAMc,EAAMb,IAAK,EAAOguB,EAGxD,OAAOluB,GAGR,MAAiByB,UAAV+C,EACNnG,EAAO6hB,MAAOjgB,EAAMc,EAAMyD,GAC1BnG,EAAOkhB,IAAKtf,EAAMc,IACjBA,EAAMyD,EAAOpE,UAAUhB,OAAS,IAEpCovB,KAAM,WACL,MAAOD,IAAU/wB,MAAM,IAExB6yB,KAAM,WACL,MAAO9B,IAAU/wB,OAElB8yB,OAAQ,SAAUnW,GACjB,MAAsB,iBAAVA,GACJA,EAAQ3c,KAAKgxB,OAAShxB,KAAK6yB,OAG5B7yB,KAAKsC,KAAM,WACZuf,EAAU7hB,MACda,EAAQb,MAAOgxB,OAEfnwB,EAAQb,MAAO6yB,WAOnB,SAASE,IAAOtwB,EAAMa,EAAS4c,EAAMhd,EAAK8vB,GACzC,MAAO,IAAID,IAAMtxB,UAAUR,KAAMwB,EAAMa,EAAS4c,EAAMhd,EAAK8vB,GAE5DnyB,EAAOkyB,MAAQA,GAEfA,GAAMtxB,WACLE,YAAaoxB,GACb9xB,KAAM,SAAUwB,EAAMa,EAAS4c,EAAMhd,EAAK8vB,EAAQzQ,GACjDviB,KAAKyC,KAAOA,EACZzC,KAAKkgB,KAAOA,EACZlgB,KAAKgzB,OAASA,GAAUnyB,EAAOmyB,OAAO5P,SACtCpjB,KAAKsD,QAAUA,EACftD,KAAKmT,MAAQnT,KAAKqH,IAAMrH,KAAKmO,MAC7BnO,KAAKkD,IAAMA,EACXlD,KAAKuiB,KAAOA,IAAU1hB,EAAO2hB,UAAWtC,GAAS,GAAK,OAEvD/R,IAAK,WACJ,GAAI+S,GAAQ6R,GAAME,UAAWjzB,KAAKkgB,KAElC,OAAOgB,IAASA,EAAMnf,IACrBmf,EAAMnf,IAAK/B,MACX+yB,GAAME,UAAU7P,SAASrhB,IAAK/B,OAEhCkzB,IAAK,SAAUC,GACd,GAAIC,GACHlS,EAAQ6R,GAAME,UAAWjzB,KAAKkgB,KAoB/B,OAlBKlgB,MAAKsD,QAAQ+vB,SACjBrzB,KAAKya,IAAM2Y,EAAQvyB,EAAOmyB,OAAQhzB,KAAKgzB,QACtCG,EAASnzB,KAAKsD,QAAQ+vB,SAAWF,EAAS,EAAG,EAAGnzB,KAAKsD,QAAQ+vB,UAG9DrzB,KAAKya,IAAM2Y,EAAQD,EAEpBnzB,KAAKqH,KAAQrH,KAAKkD,IAAMlD,KAAKmT,OAAUigB,EAAQpzB,KAAKmT,MAE/CnT,KAAKsD,QAAQgwB,MACjBtzB,KAAKsD,QAAQgwB,KAAKxxB,KAAM9B,KAAKyC,KAAMzC,KAAKqH,IAAKrH,MAGzCkhB,GAASA,EAAMlB,IACnBkB,EAAMlB,IAAKhgB,MAEX+yB,GAAME,UAAU7P,SAASpD,IAAKhgB,MAExBA,OAIT+yB,GAAMtxB,UAAUR,KAAKQ,UAAYsxB,GAAMtxB,UAEvCsxB,GAAME,WACL7P,UACCrhB,IAAK,SAAUmgB,GACd,GAAIxP,EAIJ,OAA6B,KAAxBwP,EAAMzf,KAAKyC,UACa,MAA5Bgd,EAAMzf,KAAMyf,EAAMhC,OAAoD,MAAlCgC,EAAMzf,KAAKigB,MAAOR,EAAMhC,MACrDgC,EAAMzf,KAAMyf,EAAMhC,OAO1BxN,EAAS7R,EAAOkhB,IAAKG,EAAMzf,KAAMyf,EAAMhC,KAAM,IAGrCxN,GAAqB,SAAXA,EAAwBA,EAAJ,IAEvCsN,IAAK,SAAUkC,GAKTrhB,EAAO0yB,GAAGD,KAAMpR,EAAMhC,MAC1Brf,EAAO0yB,GAAGD,KAAMpR,EAAMhC,MAAQgC,GACK,IAAxBA,EAAMzf,KAAKyC,UACiC,MAArDgd,EAAMzf,KAAKigB,MAAO7hB,EAAOkxB,SAAU7P,EAAMhC,SAC1Crf,EAAOqwB,SAAUhP,EAAMhC,MAGxBgC,EAAMzf,KAAMyf,EAAMhC,MAASgC,EAAM7a,IAFjCxG,EAAO6hB,MAAOR,EAAMzf,KAAMyf,EAAMhC,KAAMgC,EAAM7a,IAAM6a,EAAMK,SAU5DwQ,GAAME,UAAUtK,UAAYoK,GAAME,UAAU1K,YAC3CvI,IAAK,SAAUkC,GACTA,EAAMzf,KAAKyC,UAAYgd,EAAMzf,KAAKqD,aACtCoc,EAAMzf,KAAMyf,EAAMhC,MAASgC,EAAM7a,OAKpCxG,EAAOmyB,QACNQ,OAAQ,SAAUC,GACjB,MAAOA,IAERC,MAAO,SAAUD,GAChB,MAAO,GAAMtvB,KAAKwvB,IAAKF,EAAItvB,KAAKyvB,IAAO,GAExCxQ,SAAU,SAGXviB,EAAO0yB,GAAKR,GAAMtxB,UAAUR,KAG5BJ,EAAO0yB,GAAGD,OAKV,IACCO,IAAOC,GACPC,GAAW,yBACXC,GAAO,aAGR,SAASC,MAIR,MAHAl0B,GAAOkf,WAAY,WAClB4U,GAAQ5vB,SAEA4vB,GAAQhzB,EAAOwG,MAIzB,QAAS6sB,IAAOvvB,EAAMwvB,GACrB,GAAIpM,GACHrlB,EAAI,EACJqL,GAAUqmB,OAAQzvB,EAKnB,KADAwvB,EAAeA,EAAe,EAAI,EACtB,EAAJzxB,EAAQA,GAAK,EAAIyxB,EACxBpM,EAAQnG,EAAWlf,GACnBqL,EAAO,SAAWga,GAAUha,EAAO,UAAYga,GAAUpjB,CAO1D,OAJKwvB,KACJpmB,EAAMojB,QAAUpjB,EAAM0gB,MAAQ9pB,GAGxBoJ,EAGR,QAASsmB,IAAartB,EAAOkZ,EAAMoU,GAKlC,IAJA,GAAIpS,GACHkJ,GAAemJ,GAAUC,SAAUtU,QAAe9f,OAAQm0B,GAAUC,SAAU,MAC9E9Z,EAAQ,EACR9Y,EAASwpB,EAAWxpB,OACLA,EAAR8Y,EAAgBA,IACvB,GAAOwH,EAAQkJ,EAAY1Q,GAAQ5Y,KAAMwyB,EAAWpU,EAAMlZ,GAGzD,MAAOkb,GAKV,QAASuS,IAAkBhyB,EAAMklB,EAAO+M,GAEvC,GAAIxU,GAAMlZ,EAAO8rB,EAAQ5Q,EAAOhB,EAAOyT,EAASzH,EAAS0H,EACxDC,EAAO70B,KACPgqB,KACAtH,EAAQjgB,EAAKigB,MACbuO,EAASxuB,EAAKyC,UAAY2c,EAAUpf,GACpCqyB,EAAWxU,EAASve,IAAKU,EAAM,SAG1BiyB,GAAK3Y,QACVmF,EAAQrgB,EAAOsgB,YAAa1e,EAAM,MACX,MAAlBye,EAAM6T,WACV7T,EAAM6T,SAAW,EACjBJ,EAAUzT,EAAMnM,MAAMkH,KACtBiF,EAAMnM,MAAMkH,KAAO,WACZiF,EAAM6T,UACXJ,MAIHzT,EAAM6T,WAENF,EAAKhY,OAAQ,WAGZgY,EAAKhY,OAAQ,WACZqE,EAAM6T,WACAl0B,EAAOkb,MAAOtZ,EAAM,MAAOb,QAChCsf,EAAMnM,MAAMkH,YAOO,IAAlBxZ,EAAKyC,WAAoB,UAAYyiB,IAAS,SAAWA,MAM7D+M,EAAKM,UAAatS,EAAMsS,SAAUtS,EAAMuS,UAAWvS,EAAMwS,WAIzDhI,EAAUrsB,EAAOkhB,IAAKtf,EAAM,WAG5BmyB,EAA2B,SAAZ1H,EACd5M,EAASve,IAAKU,EAAM,eAAkB0qB,GAAgB1qB,EAAKyD,UAAagnB,EAEnD,WAAjB0H,GAA6D,SAAhC/zB,EAAOkhB,IAAKtf,EAAM,WACnDigB,EAAMwK,QAAU,iBAIbwH,EAAKM,WACTtS,EAAMsS,SAAW,SACjBH,EAAKhY,OAAQ,WACZ6F,EAAMsS,SAAWN,EAAKM,SAAU,GAChCtS,EAAMuS,UAAYP,EAAKM,SAAU,GACjCtS,EAAMwS,UAAYR,EAAKM,SAAU,KAKnC,KAAM9U,IAAQyH,GAEb,GADA3gB,EAAQ2gB,EAAOzH,GACV6T,GAASvnB,KAAMxF,GAAU,CAG7B,SAFO2gB,GAAOzH,GACd4S,EAASA,GAAoB,WAAV9rB,EACdA,KAAYiqB,EAAS,OAAS,QAAW,CAI7C,GAAe,SAAVjqB,IAAoB8tB,GAAiC7wB,SAArB6wB,EAAU5U,GAG9C,QAFA+Q,IAAS,EAKXjH,EAAM9J,GAAS4U,GAAYA,EAAU5U,IAAUrf,EAAO6hB,MAAOjgB,EAAMyd,OAInEgN,GAAUjpB,MAIZ,IAAMpD,EAAOsE,cAAe6kB,GAyCuD,YAAzD,SAAZkD,EAAqBC,GAAgB1qB,EAAKyD,UAAagnB,KACpExK,EAAMwK,QAAUA,OA1CoB,CAC/B4H,EACC,UAAYA,KAChB7D,EAAS6D,EAAS7D,QAGnB6D,EAAWxU,EAASpB,OAAQzc,EAAM,aAI9BqwB,IACJgC,EAAS7D,QAAUA,GAEfA,EACJpwB,EAAQ4B,GAAOuuB,OAEf6D,EAAKjsB,KAAM,WACV/H,EAAQ4B,GAAOowB,SAGjBgC,EAAKjsB,KAAM,WACV,GAAIsX,EAEJI,GAASlE,OAAQ3Z,EAAM,SACvB,KAAMyd,IAAQ8J,GACbnpB,EAAO6hB,MAAOjgB,EAAMyd,EAAM8J,EAAM9J,KAGlC,KAAMA,IAAQ8J,GACb9H,EAAQmS,GAAapD,EAAS6D,EAAU5U,GAAS,EAAGA,EAAM2U,GAElD3U,IAAQ4U,KACfA,EAAU5U,GAASgC,EAAM/O,MACpB8d,IACJ/O,EAAMhf,IAAMgf,EAAM/O,MAClB+O,EAAM/O,MAAiB,UAAT+M,GAA6B,WAATA,EAAoB,EAAI,KAW/D,QAASiV,IAAYxN,EAAOyN,GAC3B,GAAI1a,GAAOnX,EAAMyvB,EAAQhsB,EAAOka,CAGhC,KAAMxG,IAASiN,GAed,GAdApkB,EAAO1C,EAAOmF,UAAW0U,GACzBsY,EAASoC,EAAe7xB,GACxByD,EAAQ2gB,EAAOjN,GACV7Z,EAAOmD,QAASgD,KACpBgsB,EAAShsB,EAAO,GAChBA,EAAQ2gB,EAAOjN,GAAU1T,EAAO,IAG5B0T,IAAUnX,IACdokB,EAAOpkB,GAASyD,QACT2gB,GAAOjN,IAGfwG,EAAQrgB,EAAOqwB,SAAU3tB,GACpB2d,GAAS,UAAYA,GAAQ,CACjCla,EAAQka,EAAMwR,OAAQ1rB,SACf2gB,GAAOpkB,EAId,KAAMmX,IAAS1T,GACN0T,IAASiN,KAChBA,EAAOjN,GAAU1T,EAAO0T,GACxB0a,EAAe1a,GAAUsY,OAI3BoC,GAAe7xB,GAASyvB,EAK3B,QAASuB,IAAW9xB,EAAM4yB,EAAY/xB,GACrC,GAAIoP,GACH4iB,EACA5a,EAAQ,EACR9Y,EAAS2yB,GAAUgB,WAAW3zB,OAC9Bkb,EAAWjc,EAAO2b,WAAWK,OAAQ,iBAG7B2Y,GAAK/yB,OAEb+yB,EAAO,WACN,GAAKF,EACJ,OAAO,CAYR,KAVA,GAAIG,GAAc5B,IAASI,KAC1BnW,EAAY3Z,KAAKmsB,IAAK,EAAGgE,EAAUoB,UAAYpB,EAAUjB,SAAWoC,GAIpEpe,EAAOyG,EAAYwW,EAAUjB,UAAY,EACzCF,EAAU,EAAI9b,EACdqD,EAAQ,EACR9Y,EAAS0yB,EAAUqB,OAAO/zB,OAEXA,EAAR8Y,EAAiBA,IACxB4Z,EAAUqB,OAAQjb,GAAQwY,IAAKC,EAKhC,OAFArW,GAASoB,WAAYzb,GAAQ6xB,EAAWnB,EAASrV,IAElC,EAAVqV,GAAevxB,EACZkc,GAEPhB,EAASqB,YAAa1b,GAAQ6xB,KACvB,IAGTA,EAAYxX,EAASF,SACpBna,KAAMA,EACNklB,MAAO9mB,EAAOwC,UAAYgyB,GAC1BX,KAAM7zB,EAAOwC,QAAQ,GACpB+xB,iBACApC,OAAQnyB,EAAOmyB,OAAO5P,UACpB9f,GACHsyB,mBAAoBP,EACpBQ,gBAAiBvyB,EACjBoyB,UAAW7B,IAASI,KACpBZ,SAAU/vB,EAAQ+vB,SAClBsC,UACAtB,YAAa,SAAUnU,EAAMhd,GAC5B,GAAIgf,GAAQrhB,EAAOkyB,MAAOtwB,EAAM6xB,EAAUI,KAAMxU,EAAMhd,EACpDoxB,EAAUI,KAAKU,cAAelV,IAAUoU,EAAUI,KAAK1B,OAEzD,OADAsB,GAAUqB,OAAOt1B,KAAM6hB,GAChBA,GAERd,KAAM,SAAU0U,GACf,GAAIpb,GAAQ,EAIX9Y,EAASk0B,EAAUxB,EAAUqB,OAAO/zB,OAAS,CAC9C,IAAK0zB,EACJ,MAAOt1B,KAGR,KADAs1B,GAAU,EACM1zB,EAAR8Y,EAAiBA,IACxB4Z,EAAUqB,OAAQjb,GAAQwY,IAAK,EAUhC,OANK4C,IACJhZ,EAASoB,WAAYzb,GAAQ6xB,EAAW,EAAG,IAC3CxX,EAASqB,YAAa1b,GAAQ6xB,EAAWwB,KAEzChZ,EAASiZ,WAAYtzB,GAAQ6xB,EAAWwB,IAElC91B,QAGT2nB,EAAQ2M,EAAU3M,KAInB,KAFAwN,GAAYxN,EAAO2M,EAAUI,KAAKU,eAElBxzB,EAAR8Y,EAAiBA,IAExB,GADAhI,EAAS6hB,GAAUgB,WAAY7a,GAAQ5Y,KAAMwyB,EAAW7xB,EAAMklB,EAAO2M,EAAUI,MAM9E,MAJK7zB,GAAOiD,WAAY4O,EAAO0O,QAC9BvgB,EAAOsgB,YAAamT,EAAU7xB,KAAM6xB,EAAUI,KAAK3Y,OAAQqF,KAC1DvgB,EAAOqG,MAAOwL,EAAO0O,KAAM1O,IAEtBA,CAmBT,OAfA7R,GAAO2B,IAAKmlB,EAAO0M,GAAaC,GAE3BzzB,EAAOiD,WAAYwwB,EAAUI,KAAKvhB,QACtCmhB,EAAUI,KAAKvhB,MAAMrR,KAAMW,EAAM6xB,GAGlCzzB,EAAO0yB,GAAGyC,MACTn1B,EAAOwC,OAAQmyB,GACd/yB,KAAMA,EACNoyB,KAAMP,EACNvY,MAAOuY,EAAUI,KAAK3Y,SAKjBuY,EAAUjX,SAAUiX,EAAUI,KAAKrX,UACxCzU,KAAM0rB,EAAUI,KAAK9rB,KAAM0rB,EAAUI,KAAKuB,UAC1ClZ,KAAMuX,EAAUI,KAAK3X,MACrBF,OAAQyX,EAAUI,KAAK7X,QAG1Bhc,EAAO0zB,UAAY1zB,EAAOwC,OAAQkxB,IACjCC,UACC0B,KAAO,SAAUhW,EAAMlZ,GACtB,GAAIkb,GAAQliB,KAAKq0B,YAAanU,EAAMlZ,EAEpC,OADAgb,GAAWE,EAAMzf,KAAMyd,EAAMyB,EAAQnV,KAAMxF,GAASkb,GAC7CA,KAITiU,QAAS,SAAUxO,EAAOplB,GACpB1B,EAAOiD,WAAY6jB,IACvBplB,EAAWolB,EACXA,GAAU,MAEVA,EAAQA,EAAMxb,MAAOmP,EAOtB,KAJA,GAAI4E,GACHxF,EAAQ,EACR9Y,EAAS+lB,EAAM/lB,OAEAA,EAAR8Y,EAAiBA,IACxBwF,EAAOyH,EAAOjN,GACd6Z,GAAUC,SAAUtU,GAASqU,GAAUC,SAAUtU,OACjDqU,GAAUC,SAAUtU,GAAOpP,QAASvO,IAItCgzB,YAAcd,IAEd2B,UAAW,SAAU7zB,EAAU2pB,GACzBA,EACJqI,GAAUgB,WAAWzkB,QAASvO,GAE9BgyB,GAAUgB,WAAWl1B,KAAMkC,MAK9B1B,EAAOw1B,MAAQ,SAAUA,EAAOrD,EAAQhyB,GACvC,GAAIs1B,GAAMD,GAA0B,gBAAVA,GAAqBx1B,EAAOwC,UAAYgzB,IACjEJ,SAAUj1B,IAAOA,GAAMgyB,GACtBnyB,EAAOiD,WAAYuyB,IAAWA,EAC/BhD,SAAUgD,EACVrD,OAAQhyB,GAAMgyB,GAAUA,IAAWnyB,EAAOiD,WAAYkvB,IAAYA,EAyBnE,OAtBAsD,GAAIjD,SAAWxyB,EAAO0yB,GAAG3U,IAAM,EAA4B,gBAAjB0X,GAAIjD,SAC7CiD,EAAIjD,SAAWiD,EAAIjD,WAAYxyB,GAAO0yB,GAAGgD,OACxC11B,EAAO0yB,GAAGgD,OAAQD,EAAIjD,UAAaxyB,EAAO0yB,GAAGgD,OAAOnT,SAGpC,MAAbkT,EAAIva,OAAiBua,EAAIva,SAAU,IACvCua,EAAIva,MAAQ,MAIbua,EAAIzI,IAAMyI,EAAIL,SAEdK,EAAIL,SAAW,WACTp1B,EAAOiD,WAAYwyB,EAAIzI,MAC3ByI,EAAIzI,IAAI/rB,KAAM9B,MAGVs2B,EAAIva,OACRlb,EAAOmgB,QAAShhB,KAAMs2B,EAAIva,QAIrBua,GAGRz1B,EAAOG,GAAGqC,QACTmzB,OAAQ,SAAUH,EAAOI,EAAIzD,EAAQzwB,GAGpC,MAAOvC,MAAK0P,OAAQmS,GAAWE,IAAK,UAAW,GAAIiP,OAGjD9tB,MAAMwzB,SAAWvF,QAASsF,GAAMJ,EAAOrD,EAAQzwB,IAElDm0B,QAAS,SAAUxW,EAAMmW,EAAOrD,EAAQzwB,GACvC,GAAIwS,GAAQlU,EAAOsE,cAAe+a,GACjCyW,EAAS91B,EAAOw1B,MAAOA,EAAOrD,EAAQzwB,GACtCq0B,EAAc,WAGb,GAAI/B,GAAON,GAAWv0B,KAAMa,EAAOwC,UAAY6c,GAAQyW,IAGlD5hB,GAASuL,EAASve,IAAK/B,KAAM,YACjC60B,EAAKzT,MAAM,GAKd,OAFCwV,GAAYC,OAASD,EAEf7hB,GAAS4hB,EAAO5a,SAAU,EAChC/b,KAAKsC,KAAMs0B,GACX52B,KAAK+b,MAAO4a,EAAO5a,MAAO6a,IAE5BxV,KAAM,SAAUzc,EAAM2c,EAAYwU,GACjC,GAAIgB,GAAY,SAAU5V,GACzB,GAAIE,GAAOF,EAAME,WACVF,GAAME,KACbA,EAAM0U,GAYP,OATqB,gBAATnxB,KACXmxB,EAAUxU,EACVA,EAAa3c,EACbA,EAAOV,QAEHqd,GAAc3c,KAAS,GAC3B3E,KAAK+b,MAAOpX,GAAQ,SAGd3E,KAAKsC,KAAM,WACjB,GAAI0e,IAAU,EACbtG,EAAgB,MAAR/V,GAAgBA,EAAO,aAC/BoyB,EAASl2B,EAAOk2B,OAChB9W,EAAOK,EAASve,IAAK/B,KAEtB,IAAK0a,EACCuF,EAAMvF,IAAWuF,EAAMvF,GAAQ0G,MACnC0V,EAAW7W,EAAMvF,QAGlB,KAAMA,IAASuF,GACTA,EAAMvF,IAAWuF,EAAMvF,GAAQ0G,MAAQ4S,GAAKlnB,KAAM4N,IACtDoc,EAAW7W,EAAMvF,GAKpB,KAAMA,EAAQqc,EAAOn1B,OAAQ8Y,KACvBqc,EAAQrc,GAAQjY,OAASzC,MACnB,MAAR2E,GAAgBoyB,EAAQrc,GAAQqB,QAAUpX,IAE5CoyB,EAAQrc,GAAQma,KAAKzT,KAAM0U,GAC3B9U,GAAU,EACV+V,EAAO3zB,OAAQsX,EAAO,KAOnBsG,GAAY8U,GAChBj1B,EAAOmgB,QAAShhB,KAAM2E,MAIzBkyB,OAAQ,SAAUlyB,GAIjB,MAHKA,MAAS,IACbA,EAAOA,GAAQ,MAET3E,KAAKsC,KAAM,WACjB,GAAIoY,GACHuF,EAAOK,EAASve,IAAK/B,MACrB+b,EAAQkE,EAAMtb,EAAO,SACrBuc,EAAQjB,EAAMtb,EAAO,cACrBoyB,EAASl2B,EAAOk2B,OAChBn1B,EAASma,EAAQA,EAAMna,OAAS,CAajC,KAVAqe,EAAK4W,QAAS,EAGdh2B,EAAOkb,MAAO/b,KAAM2E,MAEfuc,GAASA,EAAME,MACnBF,EAAME,KAAKtf,KAAM9B,MAAM,GAIlB0a,EAAQqc,EAAOn1B,OAAQ8Y,KACvBqc,EAAQrc,GAAQjY,OAASzC,MAAQ+2B,EAAQrc,GAAQqB,QAAUpX,IAC/DoyB,EAAQrc,GAAQma,KAAKzT,MAAM,GAC3B2V,EAAO3zB,OAAQsX,EAAO,GAKxB,KAAMA,EAAQ,EAAW9Y,EAAR8Y,EAAgBA,IAC3BqB,EAAOrB,IAAWqB,EAAOrB,GAAQmc,QACrC9a,EAAOrB,GAAQmc,OAAO/0B,KAAM9B,YAKvBigB,GAAK4W,YAKfh2B,EAAOyB,MAAQ,SAAU,OAAQ,QAAU,SAAUI,EAAGa,GACvD,GAAIyzB,GAAQn2B,EAAOG,GAAIuC,EACvB1C,GAAOG,GAAIuC,GAAS,SAAU8yB,EAAOrD,EAAQzwB,GAC5C,MAAgB,OAAT8zB,GAAkC,iBAAVA,GAC9BW,EAAMr0B,MAAO3C,KAAM4C,WACnB5C,KAAK02B,QAASxC,GAAO3wB,GAAM,GAAQ8yB,EAAOrD,EAAQzwB,MAKrD1B,EAAOyB,MACN20B,UAAW/C,GAAO,QAClBgD,QAAShD,GAAO,QAChBiD,YAAajD,GAAO,UACpBkD,QAAUjG,QAAS,QACnBkG,SAAWlG,QAAS,QACpBmG,YAAcnG,QAAS,WACrB,SAAU5tB,EAAMokB,GAClB9mB,EAAOG,GAAIuC,GAAS,SAAU8yB,EAAOrD,EAAQzwB,GAC5C,MAAOvC,MAAK02B,QAAS/O,EAAO0O,EAAOrD,EAAQzwB,MAI7C1B,EAAOk2B,UACPl2B,EAAO0yB,GAAGiC,KAAO,WAChB,GAAIQ,GACHtzB,EAAI,EACJq0B,EAASl2B,EAAOk2B,MAIjB,KAFAlD,GAAQhzB,EAAOwG,MAEP3E,EAAIq0B,EAAOn1B,OAAQc,IAC1BszB,EAAQe,EAAQr0B,GAGVszB,KAAWe,EAAQr0B,KAAQszB,GAChCe,EAAO3zB,OAAQV,IAAK,EAIhBq0B,GAAOn1B,QACZf,EAAO0yB,GAAGnS,OAEXyS,GAAQ5vB,QAGTpD,EAAO0yB,GAAGyC,MAAQ,SAAUA,GAC3Bn1B,EAAOk2B,OAAO12B,KAAM21B,GACfA,IACJn1B,EAAO0yB,GAAGpgB,QAEVtS,EAAOk2B,OAAO1tB,OAIhBxI,EAAO0yB,GAAGgE,SAAW,GACrB12B,EAAO0yB,GAAGpgB,MAAQ,WACX2gB,KACLA,GAAU/zB,EAAOy3B,YAAa32B,EAAO0yB,GAAGiC,KAAM30B,EAAO0yB,GAAGgE,YAI1D12B,EAAO0yB,GAAGnS,KAAO,WAChBrhB,EAAO03B,cAAe3D,IAEtBA,GAAU,MAGXjzB,EAAO0yB,GAAGgD,QACTmB,KAAM,IACNC,KAAM,IAGNvU,SAAU,KAMXviB,EAAOG,GAAG42B,MAAQ,SAAUC,EAAMlzB,GAIjC,MAHAkzB,GAAOh3B,EAAO0yB,GAAK1yB,EAAO0yB,GAAGgD,OAAQsB,IAAUA,EAAOA,EACtDlzB,EAAOA,GAAQ,KAER3E,KAAK+b,MAAOpX,EAAM,SAAUyV,EAAM8G,GACxC,GAAI4W,GAAU/3B,EAAOkf,WAAY7E,EAAMyd,EACvC3W,GAAME,KAAO,WACZrhB,EAAOg4B,aAAcD,OAMxB,WACC,GAAI/nB,GAAQnQ,EAAS8F,cAAe,SACnCsC,EAASpI,EAAS8F,cAAe,UACjC4wB,EAAMtuB,EAAOnC,YAAajG,EAAS8F,cAAe,UAEnDqK,GAAMpL,KAAO,WAIbhE,EAAQq3B,QAA0B,KAAhBjoB,EAAM/I,MAIxBrG,EAAQs3B,YAAc3B,EAAIzhB,SAI1B7M,EAAO2M,UAAW,EAClBhU,EAAQu3B,aAAe5B,EAAI3hB,SAI3B5E,EAAQnQ,EAAS8F,cAAe,SAChCqK,EAAM/I,MAAQ,IACd+I,EAAMpL,KAAO,QACbhE,EAAQw3B,WAA6B,MAAhBpoB,EAAM/I,QAI5B,IAAIoxB,IACHnqB,GAAapN,EAAOkQ,KAAK9C,UAE1BpN,GAAOG,GAAGqC,QACT4N,KAAM,SAAU1N,EAAMyD,GACrB,MAAOkY,GAAQlf,KAAMa,EAAOoQ,KAAM1N,EAAMyD,EAAOpE,UAAUhB,OAAS,IAGnEy2B,WAAY,SAAU90B,GACrB,MAAOvD,MAAKsC,KAAM,WACjBzB,EAAOw3B,WAAYr4B,KAAMuD,QAK5B1C,EAAOwC,QACN4N,KAAM,SAAUxO,EAAMc,EAAMyD,GAC3B,GAAI7E,GAAK+e,EACRoX,EAAQ71B,EAAKyC,QAGd,IAAe,IAAVozB,GAAyB,IAAVA,GAAyB,IAAVA,EAKnC,MAAkC,mBAAtB71B,GAAKsK,aACTlM,EAAOqf,KAAMzd,EAAMc,EAAMyD,IAKlB,IAAVsxB,GAAgBz3B,EAAOoY,SAAUxW,KACrCc,EAAOA,EAAK4C,cACZ+a,EAAQrgB,EAAO03B,UAAWh1B,KACvB1C,EAAOkQ,KAAK5E,MAAMxB,KAAKmC,KAAMvJ,GAAS60B,GAAWn0B,SAGtCA,SAAV+C,EACW,OAAVA,MACJnG,GAAOw3B,WAAY51B,EAAMc,GAIrB2d,GAAS,OAASA,IACuBjd,UAA3C9B,EAAM+e,EAAMlB,IAAKvd,EAAMuE,EAAOzD,IACzBpB,GAGRM,EAAKuK,aAAczJ,EAAMyD,EAAQ,IAC1BA,GAGHka,GAAS,OAASA,IAA+C,QAApC/e,EAAM+e,EAAMnf,IAAKU,EAAMc,IACjDpB,GAGRA,EAAMtB,EAAO4O,KAAKwB,KAAMxO,EAAMc,GAGhB,MAAPpB,EAAc8B,OAAY9B,KAGlCo2B,WACC5zB,MACCqb,IAAK,SAAUvd,EAAMuE,GACpB,IAAMrG,EAAQw3B,YAAwB,UAAVnxB,GAC3BnG,EAAOqF,SAAUzD,EAAM,SAAY,CACnC,GAAIyO,GAAMzO,EAAKuE,KAKf,OAJAvE,GAAKuK,aAAc,OAAQhG,GACtBkK,IACJzO,EAAKuE,MAAQkK,GAEPlK,MAMXqxB,WAAY,SAAU51B,EAAMuE,GAC3B,GAAIzD,GAAMi1B,EACT91B,EAAI,EACJ+1B,EAAYzxB,GAASA,EAAMmF,MAAOmP,EAEnC,IAAKmd,GAA+B,IAAlBh2B,EAAKyC,SACtB,MAAU3B,EAAOk1B,EAAW/1B,KAC3B81B,EAAW33B,EAAO63B,QAASn1B,IAAUA,EAGhC1C,EAAOkQ,KAAK5E,MAAMxB,KAAKmC,KAAMvJ,KAGjCd,EAAM+1B,IAAa,GAGpB/1B,EAAK6K,gBAAiB/J,MAO1B60B,IACCpY,IAAK,SAAUvd,EAAMuE,EAAOzD,GAQ3B,MAPKyD,MAAU,EAGdnG,EAAOw3B,WAAY51B,EAAMc,GAEzBd,EAAKuK,aAAczJ,EAAMA,GAEnBA,IAGT1C,EAAOyB,KAAMzB,EAAOkQ,KAAK5E,MAAMxB,KAAK+W,OAAOvV,MAAO,QAAU,SAAUzJ,EAAGa,GACxE,GAAIo1B,GAAS1qB,GAAY1K,IAAU1C,EAAO4O,KAAKwB,IAE/ChD,IAAY1K,GAAS,SAAUd,EAAMc,EAAMsE,GAC1C,GAAI1F,GAAK+jB,CAWT,OAVMre,KAGLqe,EAASjY,GAAY1K,GACrB0K,GAAY1K,GAASpB,EACrBA,EAAqC,MAA/Bw2B,EAAQl2B,EAAMc,EAAMsE,GACzBtE,EAAK4C,cACL,KACD8H,GAAY1K,GAAS2iB,GAEf/jB,IAOT,IAAIy2B,IAAa,sCAChBC,GAAa,eAEdh4B,GAAOG,GAAGqC,QACT6c,KAAM,SAAU3c,EAAMyD,GACrB,MAAOkY,GAAQlf,KAAMa,EAAOqf,KAAM3c,EAAMyD,EAAOpE,UAAUhB,OAAS,IAGnEk3B,WAAY,SAAUv1B,GACrB,MAAOvD,MAAKsC,KAAM,iBACVtC,MAAMa,EAAO63B,QAASn1B,IAAUA,QAK1C1C,EAAOwC,QACN6c,KAAM,SAAUzd,EAAMc,EAAMyD,GAC3B,GAAI7E,GAAK+e,EACRoX,EAAQ71B,EAAKyC,QAGd,IAAe,IAAVozB,GAAyB,IAAVA,GAAyB,IAAVA,EAWnC,MAPe,KAAVA,GAAgBz3B,EAAOoY,SAAUxW,KAGrCc,EAAO1C,EAAO63B,QAASn1B,IAAUA,EACjC2d,EAAQrgB,EAAOoyB,UAAW1vB;AAGZU,SAAV+C,EACCka,GAAS,OAASA,IACuBjd,UAA3C9B,EAAM+e,EAAMlB,IAAKvd,EAAMuE,EAAOzD,IACzBpB,EAGCM,EAAMc,GAASyD,EAGpBka,GAAS,OAASA,IAA+C,QAApC/e,EAAM+e,EAAMnf,IAAKU,EAAMc,IACjDpB,EAGDM,EAAMc,IAGd0vB,WACCxe,UACC1S,IAAK,SAAUU,GAMd,GAAIs2B,GAAWl4B,EAAO4O,KAAKwB,KAAMxO,EAAM,WAEvC,OAAOs2B,GACNC,SAAUD,EAAU,IACpBH,GAAW9rB,KAAMrK,EAAKyD,WACrB2yB,GAAW/rB,KAAMrK,EAAKyD,WAAczD,EAAK+R,KACxC,EACA,MAKNkkB,SACCO,MAAO,UACPC,QAAS,eAULv4B,EAAQs3B,cACbp3B,EAAOoyB,UAAUpe,UAChB9S,IAAK,SAAUU,GACd,GAAIsM,GAAStM,EAAKqD,UAIlB,OAHKiJ,IAAUA,EAAOjJ,YACrBiJ,EAAOjJ,WAAWgP,cAEZ,MAERkL,IAAK,SAAUvd,GACd,GAAIsM,GAAStM,EAAKqD,UACbiJ,KACJA,EAAO+F,cAEF/F,EAAOjJ,YACXiJ,EAAOjJ,WAAWgP,kBAOvBjU,EAAOyB,MACN,WACA,WACA,YACA,cACA,cACA,UACA,UACA,SACA,cACA,mBACE,WACFzB,EAAO63B,QAAS14B,KAAKmG,eAAkBnG,MAMxC,IAAIm5B,IAAS,aAEb,SAASC,IAAU32B,GAClB,MAAOA,GAAKsK,cAAgBtK,EAAKsK,aAAc,UAAa,GAG7DlM,EAAOG,GAAGqC,QACTg2B,SAAU,SAAUryB,GACnB,GAAIsyB,GAAS72B,EAAM0L,EAAKorB,EAAUC,EAAOv2B,EAAGw2B,EAC3C/2B,EAAI,CAEL,IAAK7B,EAAOiD,WAAYkD,GACvB,MAAOhH,MAAKsC,KAAM,SAAUW,GAC3BpC,EAAQb,MAAOq5B,SAAUryB,EAAMlF,KAAM9B,KAAMiD,EAAGm2B,GAAUp5B,SAI1D,IAAsB,gBAAVgH,IAAsBA,EAAQ,CACzCsyB,EAAUtyB,EAAMmF,MAAOmP,MAEvB,OAAU7Y,EAAOzC,KAAM0C,KAKtB,GAJA62B,EAAWH,GAAU32B,GACrB0L,EAAwB,IAAlB1L,EAAKyC,WACR,IAAMq0B,EAAW,KAAMl1B,QAAS80B,GAAQ,KAEhC,CACVl2B,EAAI,CACJ,OAAUu2B,EAAQF,EAASr2B,KACrBkL,EAAI7N,QAAS,IAAMk5B,EAAQ,KAAQ,IACvCrrB,GAAOqrB,EAAQ,IAKjBC,GAAa54B,EAAO4E,KAAM0I,GACrBorB,IAAaE,GACjBh3B,EAAKuK,aAAc,QAASysB,IAMhC,MAAOz5B,OAGR05B,YAAa,SAAU1yB,GACtB,GAAIsyB,GAAS72B,EAAM0L,EAAKorB,EAAUC,EAAOv2B,EAAGw2B,EAC3C/2B,EAAI,CAEL,IAAK7B,EAAOiD,WAAYkD,GACvB,MAAOhH,MAAKsC,KAAM,SAAUW,GAC3BpC,EAAQb,MAAO05B,YAAa1yB,EAAMlF,KAAM9B,KAAMiD,EAAGm2B,GAAUp5B,SAI7D,KAAM4C,UAAUhB,OACf,MAAO5B,MAAKiR,KAAM,QAAS,GAG5B,IAAsB,gBAAVjK,IAAsBA,EAAQ,CACzCsyB,EAAUtyB,EAAMmF,MAAOmP,MAEvB,OAAU7Y,EAAOzC,KAAM0C,KAOtB,GANA62B,EAAWH,GAAU32B,GAGrB0L,EAAwB,IAAlB1L,EAAKyC,WACR,IAAMq0B,EAAW,KAAMl1B,QAAS80B,GAAQ,KAEhC,CACVl2B,EAAI,CACJ,OAAUu2B,EAAQF,EAASr2B,KAG1B,MAAQkL,EAAI7N,QAAS,IAAMk5B,EAAQ,KAAQ,GAC1CrrB,EAAMA,EAAI9J,QAAS,IAAMm1B,EAAQ,IAAK,IAKxCC,GAAa54B,EAAO4E,KAAM0I,GACrBorB,IAAaE,GACjBh3B,EAAKuK,aAAc,QAASysB,IAMhC,MAAOz5B,OAGR25B,YAAa,SAAU3yB,EAAO4yB,GAC7B,GAAIj1B,SAAcqC,EAElB,OAAyB,iBAAb4yB,IAAmC,WAATj1B,EAC9Bi1B,EAAW55B,KAAKq5B,SAAUryB,GAAUhH,KAAK05B,YAAa1yB,GAGzDnG,EAAOiD,WAAYkD,GAChBhH,KAAKsC,KAAM,SAAUI,GAC3B7B,EAAQb,MAAO25B,YACd3yB,EAAMlF,KAAM9B,KAAM0C,EAAG02B,GAAUp5B,MAAQ45B,GACvCA,KAKI55B,KAAKsC,KAAM,WACjB,GAAI+M,GAAW3M,EAAGkX,EAAMigB,CAExB,IAAc,WAATl1B,EAAoB,CAGxBjC,EAAI,EACJkX,EAAO/Y,EAAQb,MACf65B,EAAa7yB,EAAMmF,MAAOmP,MAE1B,OAAUjM,EAAYwqB,EAAYn3B,KAG5BkX,EAAKkgB,SAAUzqB,GACnBuK,EAAK8f,YAAarqB,GAElBuK,EAAKyf,SAAUhqB,OAKIpL,UAAV+C,GAAgC,YAATrC,IAClC0K,EAAY+pB,GAAUp5B,MACjBqP,GAGJiR,EAASN,IAAKhgB,KAAM,gBAAiBqP,GAOjCrP,KAAKgN,cACThN,KAAKgN,aAAc,QAClBqC,GAAarI,KAAU,EACvB,GACAsZ,EAASve,IAAK/B,KAAM,kBAAqB,QAO9C85B,SAAU,SAAUh5B,GACnB,GAAIuO,GAAW5M,EACdC,EAAI,CAEL2M,GAAY,IAAMvO,EAAW,GAC7B,OAAU2B,EAAOzC,KAAM0C,KACtB,GAAuB,IAAlBD,EAAKyC,WACP,IAAMk0B,GAAU32B,GAAS,KAAM4B,QAAS80B,GAAQ,KAChD74B,QAAS+O,GAAc,GAEzB,OAAO,CAIT,QAAO,IAOT,IAAI0qB,IAAU,MACbC,GAAU,kBAEXn5B,GAAOG,GAAGqC,QACT6N,IAAK,SAAUlK,GACd,GAAIka,GAAO/e,EAAK2B,EACfrB,EAAOzC,KAAM,EAEd,EAAA,GAAM4C,UAAUhB,OA4BhB,MAFAkC,GAAajD,EAAOiD,WAAYkD,GAEzBhH,KAAKsC,KAAM,SAAUI,GAC3B,GAAIwO,EAEmB,KAAlBlR,KAAKkF,WAKTgM,EADIpN,EACEkD,EAAMlF,KAAM9B,KAAM0C,EAAG7B,EAAQb,MAAOkR,OAEpClK,EAIK,MAAPkK,EACJA,EAAM,GAEoB,gBAARA,GAClBA,GAAO,GAEIrQ,EAAOmD,QAASkN,KAC3BA,EAAMrQ,EAAO2B,IAAK0O,EAAK,SAAUlK,GAChC,MAAgB,OAATA,EAAgB,GAAKA,EAAQ,MAItCka,EAAQrgB,EAAOo5B,SAAUj6B,KAAK2E,OAAU9D,EAAOo5B,SAAUj6B,KAAKkG,SAASC,eAGjE+a,GAAY,OAASA,IAA+Cjd,SAApCid,EAAMlB,IAAKhgB,KAAMkR,EAAK,WAC3DlR,KAAKgH,MAAQkK,KAzDd,IAAKzO,EAIJ,MAHAye,GAAQrgB,EAAOo5B,SAAUx3B,EAAKkC,OAC7B9D,EAAOo5B,SAAUx3B,EAAKyD,SAASC,eAE3B+a,GACJ,OAASA,IACgCjd,UAAvC9B,EAAM+e,EAAMnf,IAAKU,EAAM,UAElBN,GAGRA,EAAMM,EAAKuE,MAEW,gBAAR7E,GAGbA,EAAIkC,QAAS01B,GAAS,IAGf,MAAP53B,EAAc,GAAKA,OA4CxBtB,EAAOwC,QACN42B,UACClX,QACChhB,IAAK,SAAUU,GAEd,GAAIyO,GAAMrQ,EAAO4O,KAAKwB,KAAMxO,EAAM,QAClC,OAAc,OAAPyO,EACNA,EAMArQ,EAAO4E,KAAM5E,EAAO8E,KAAMlD,IAAS4B,QAAS21B,GAAS,OAGxDhyB,QACCjG,IAAK,SAAUU,GAYd,IAXA,GAAIuE,GAAO+b,EACVzf,EAAUb,EAAKa,QACfoX,EAAQjY,EAAKqS,cACbuQ,EAAoB,eAAd5iB,EAAKkC,MAAiC,EAAR+V,EACpCsD,EAASqH,EAAM,QACfiL,EAAMjL,EAAM3K,EAAQ,EAAIpX,EAAQ1B,OAChCc,EAAY,EAARgY,EACH4V,EACAjL,EAAM3K,EAAQ,EAGJ4V,EAAJ5tB,EAASA,IAIhB,GAHAqgB,EAASzf,EAASZ,IAGXqgB,EAAOlO,UAAYnS,IAAMgY,KAG5B/Z,EAAQu3B,aACRnV,EAAOpO,SAAiD,OAAtCoO,EAAOhW,aAAc,gBACtCgW,EAAOjd,WAAW6O,WACnB9T,EAAOqF,SAAU6c,EAAOjd,WAAY,aAAiB,CAMxD,GAHAkB,EAAQnG,EAAQkiB,GAAS7R,MAGpBmU,EACJ,MAAOre,EAIRgX,GAAO3d,KAAM2G,GAIf,MAAOgX,IAGRgC,IAAK,SAAUvd,EAAMuE,GACpB,GAAIkzB,GAAWnX,EACdzf,EAAUb,EAAKa,QACf0a,EAASnd,EAAOwF,UAAWW,GAC3BtE,EAAIY,EAAQ1B,MAEb,OAAQc,IACPqgB,EAASzf,EAASZ,IACbqgB,EAAOlO,SACXhU,EAAO2F,QAAS3F,EAAOo5B,SAASlX,OAAOhhB,IAAKghB,GAAU/E,GAAW,MAEjEkc,GAAY,EAQd,OAHMA,KACLz3B,EAAKqS,cAAgB,IAEfkJ,OAOXnd,EAAOyB,MAAQ,QAAS,YAAc,WACrCzB,EAAOo5B,SAAUj6B,OAChBggB,IAAK,SAAUvd,EAAMuE,GACpB,MAAKnG,GAAOmD,QAASgD,GACXvE,EAAKmS,QAAU/T,EAAO2F,QAAS3F,EAAQ4B,GAAOyO,MAAOlK,GAAU,GADzE,SAKIrG,EAAQq3B,UACbn3B,EAAOo5B,SAAUj6B,MAAO+B,IAAM,SAAUU,GACvC,MAAwC,QAAjCA,EAAKsK,aAAc,SAAqB,KAAOtK,EAAKuE,SAW9D,IAAImzB,IAAc,iCAElBt5B,GAAOwC,OAAQxC,EAAO0kB,OAErB2D,QAAS,SAAU3D,EAAOtF,EAAMxd,EAAM23B,GAErC,GAAI13B,GAAGyL,EAAKhH,EAAKkzB,EAAYC,EAAQpU,EAAQL,EAC5C0U,GAAc93B,GAAQ7C,GACtB+E,EAAOlE,EAAOqB,KAAMyjB,EAAO,QAAWA,EAAM5gB,KAAO4gB,EACnDQ,EAAatlB,EAAOqB,KAAMyjB,EAAO,aAAgBA,EAAMgB,UAAU9e,MAAO,OAKzE,IAHA0G,EAAMhH,EAAM1E,EAAOA,GAAQ7C,EAGJ,IAAlB6C,EAAKyC,UAAoC,IAAlBzC,EAAKyC,WAK5Bi1B,GAAYrtB,KAAMnI,EAAO9D,EAAO0kB,MAAMY,aAItCxhB,EAAKrE,QAAS,KAAQ,KAG1BylB,EAAaphB,EAAK8C,MAAO,KACzB9C,EAAOohB,EAAWrY,QAClBqY,EAAW5iB,QAEZm3B,EAAS31B,EAAKrE,QAAS,KAAQ,GAAK,KAAOqE,EAG3C4gB,EAAQA,EAAO1kB,EAAOqD,SACrBqhB,EACA,GAAI1kB,GAAOkoB,MAAOpkB,EAAuB,gBAAV4gB,IAAsBA,GAGtDA,EAAMiV,UAAYJ,EAAe,EAAI,EACrC7U,EAAMgB,UAAYR,EAAW7Y,KAAM,KACnCqY,EAAM8B,WAAa9B,EAAMgB,UACxB,GAAIzc,QAAQ,UAAYic,EAAW7Y,KAAM,iBAAoB,WAC7D,KAGDqY,EAAM7S,OAASzO,OACTshB,EAAM3hB,SACX2hB,EAAM3hB,OAASnB,GAIhBwd,EAAe,MAARA,GACJsF,GACF1kB,EAAOwF,UAAW4Z,GAAQsF,IAG3BM,EAAUhlB,EAAO0kB,MAAMM,QAASlhB,OAC1By1B,IAAgBvU,EAAQqD,SAAWrD,EAAQqD,QAAQvmB,MAAOF,EAAMwd,MAAW,GAAjF,CAMA,IAAMma,IAAiBvU,EAAQoD,WAAapoB,EAAOgE,SAAUpC,GAAS,CAMrE,IAJA43B,EAAaxU,EAAQQ,cAAgB1hB,EAC/Bw1B,GAAYrtB,KAAMutB,EAAa11B,KACpCwJ,EAAMA,EAAIrI,YAEHqI,EAAKA,EAAMA,EAAIrI,WACtBy0B,EAAUl6B,KAAM8N,GAChBhH,EAAMgH,CAIFhH,MAAU1E,EAAK8J,eAAiB3M,IACpC26B,EAAUl6B,KAAM8G,EAAI8H,aAAe9H,EAAIszB,cAAgB16B,GAKzD2C,EAAI,CACJ,QAAUyL,EAAMosB,EAAW73B,QAAY6iB,EAAM2B,uBAE5C3B,EAAM5gB,KAAOjC,EAAI,EAChB23B,EACAxU,EAAQS,UAAY3hB,EAGrBuhB,GAAW5F,EAASve,IAAKoM,EAAK,eAAoBoX,EAAM5gB,OACvD2b,EAASve,IAAKoM,EAAK,UACf+X,GACJA,EAAOvjB,MAAOwL,EAAK8R,GAIpBiG,EAASoU,GAAUnsB,EAAKmsB,GACnBpU,GAAUA,EAAOvjB,OAAS4c,EAAYpR,KAC1CoX,EAAM7S,OAASwT,EAAOvjB,MAAOwL,EAAK8R,GAC7BsF,EAAM7S,UAAW,GACrB6S,EAAM+B,iBAoCT,OAhCA/B,GAAM5gB,KAAOA,EAGPy1B,GAAiB7U,EAAMgE,sBAEpB1D,EAAQzC,UACfyC,EAAQzC,SAASzgB,MAAO43B,EAAUlxB,MAAO4W,MAAW,IACpDV,EAAY9c,IAIP63B,GAAUz5B,EAAOiD,WAAYrB,EAAMkC,MAAa9D,EAAOgE,SAAUpC,KAGrE0E,EAAM1E,EAAM63B,GAEPnzB,IACJ1E,EAAM63B,GAAW,MAIlBz5B,EAAO0kB,MAAMY,UAAYxhB,EACzBlC,EAAMkC,KACN9D,EAAO0kB,MAAMY,UAAYliB,OAEpBkD,IACJ1E,EAAM63B,GAAWnzB,IAMdoe,EAAM7S,SAKdgoB,SAAU,SAAU/1B,EAAMlC,EAAM8iB,GAC/B,GAAI1Z,GAAIhL,EAAOwC,OACd,GAAIxC,GAAOkoB,MACXxD,GAEC5gB,KAAMA,EACN+kB,aAAa,GAIf7oB,GAAO0kB,MAAM2D,QAASrd,EAAG,KAAMpJ,MAKjC5B,EAAOG,GAAGqC,QAET6lB,QAAS,SAAUvkB,EAAMsb,GACxB,MAAOjgB,MAAKsC,KAAM,WACjBzB,EAAO0kB,MAAM2D,QAASvkB,EAAMsb,EAAMjgB,SAGpC2e,eAAgB,SAAUha,EAAMsb,GAC/B,GAAIxd,GAAOzC,KAAM,EACjB,OAAKyC,GACG5B,EAAO0kB,MAAM2D,QAASvkB,EAAMsb,EAAMxd,GAAM,GADhD,UAOF5B,EAAOyB,KAAM,0MAEsDmF,MAAO,KACzE,SAAU/E,EAAGa,GAGb1C,EAAOG,GAAIuC,GAAS,SAAU0c,EAAMjf,GACnC,MAAO4B,WAAUhB,OAAS,EACzB5B,KAAKmlB,GAAI5hB,EAAM,KAAM0c,EAAMjf,GAC3BhB,KAAKkpB,QAAS3lB,MAIjB1C,EAAOG,GAAGqC,QACTs3B,MAAO,SAAUC,EAAQC,GACxB,MAAO76B,MAAK4pB,WAAYgR,GAAS/Q,WAAYgR,GAASD,MAOxDj6B,EAAQm6B,QAAU,aAAe/6B,GAW3BY,EAAQm6B,SACbj6B,EAAOyB,MAAQ+R,MAAO,UAAW8U,KAAM,YAAc,SAAUa,EAAMlD,GAGpE,GAAI9Y,GAAU,SAAUuX,GACvB1kB,EAAO0kB,MAAMmV,SAAU5T,EAAKvB,EAAM3hB,OAAQ/C,EAAO0kB,MAAMuB,IAAKvB,IAG7D1kB,GAAO0kB,MAAMM,QAASiB,IACrBL,MAAO,WACN,GAAIzX,GAAMhP,KAAKuM,eAAiBvM,KAC/B+6B,EAAWza,EAASpB,OAAQlQ,EAAK8X,EAE5BiU,IACL/rB,EAAIG,iBAAkB6a,EAAMhc,GAAS,GAEtCsS,EAASpB,OAAQlQ,EAAK8X,GAAOiU,GAAY,GAAM,IAEhDnU,SAAU,WACT,GAAI5X,GAAMhP,KAAKuM,eAAiBvM,KAC/B+6B,EAAWza,EAASpB,OAAQlQ,EAAK8X,GAAQ,CAEpCiU,GAKLza,EAASpB,OAAQlQ,EAAK8X,EAAKiU,IAJ3B/rB,EAAI8P,oBAAqBkL,EAAMhc,GAAS,GACxCsS,EAASlE,OAAQpN,EAAK8X,OAS3B,IAAI3S,IAAWpU,EAAOoU,SAElB6mB,GAAQn6B,EAAOwG,MAEf4zB,GAAS,IAMbp6B,GAAO8f,UAAY,SAAUV,GAC5B,MAAOib,MAAKC,MAAOlb,EAAO,KAK3Bpf,EAAOu6B,SAAW,SAAUnb,GAC3B,GAAIlN,EACJ,KAAMkN,GAAwB,gBAATA,GACpB,MAAO,KAIR,KACClN,GAAM,GAAMhT,GAAOs7B,WAAcC,gBAAiBrb,EAAM,YACvD,MAAQpU,GACTkH,EAAM9O,OAMP,MAHM8O,KAAOA,EAAIpG,qBAAsB,eAAgB/K,QACtDf,EAAO0D,MAAO,gBAAkB0b,GAE1BlN,EAIR,IACCwoB,IAAQ,OACRC,GAAM,gBACNC,GAAW,6BAGXC,GAAiB,4DACjBC,GAAa,iBACbC,GAAY,QAWZrG,MAOAsG,MAGAC,GAAW,KAAK17B,OAAQ,KAGxB27B,GAAen8B,EAAS8F,cAAe,IACvCq2B,IAAavnB,KAAOL,GAASK,IAG9B,SAASwnB,IAA6BC,GAGrC,MAAO,UAAUC,EAAoBzf,GAED,gBAAvByf,KACXzf,EAAOyf,EACPA,EAAqB,IAGtB,IAAIC,GACHz5B,EAAI,EACJ05B,EAAYF,EAAmB/1B,cAAcgG,MAAOmP,MAErD,IAAKza,EAAOiD,WAAY2Y,GAGvB,MAAU0f,EAAWC,EAAW15B,KAGR,MAAlBy5B,EAAU,IACdA,EAAWA,EAASh8B,MAAO,IAAO,KAChC87B,EAAWE,GAAaF,EAAWE,QAAmBrrB,QAAS2L,KAI/Dwf,EAAWE,GAAaF,EAAWE,QAAmB97B,KAAMoc,IAQnE,QAAS4f,IAA+BJ,EAAW34B,EAASuyB,EAAiByG,GAE5E,GAAIC,MACHC,EAAqBP,IAAcJ,EAEpC,SAASY,GAASN,GACjB,GAAItnB,EAcJ,OAbA0nB,GAAWJ,IAAa,EACxBt7B,EAAOyB,KAAM25B,EAAWE,OAAkB,SAAU9wB,EAAGqxB,GACtD,GAAIC,GAAsBD,EAAoBp5B,EAASuyB,EAAiByG,EACxE,OAAoC,gBAAxBK,IACVH,GAAqBD,EAAWI,GAKtBH,IACD3nB,EAAW8nB,GADf,QAHNr5B,EAAQ84B,UAAUtrB,QAAS6rB,GAC3BF,EAASE,IACF,KAKF9nB,EAGR,MAAO4nB,GAASn5B,EAAQ84B,UAAW,MAAUG,EAAW,MAASE,EAAS,KAM3E,QAASG,IAAYh5B,EAAQJ,GAC5B,GAAIyB,GAAKpB,EACRg5B,EAAch8B,EAAOi8B,aAAaD,eAEnC,KAAM53B,IAAOzB,GACQS,SAAfT,EAAKyB,MACP43B,EAAa53B,GAAQrB,EAAWC,IAAUA,OAAiBoB,GAAQzB,EAAKyB,GAO5E,OAJKpB,IACJhD,EAAOwC,QAAQ,EAAMO,EAAQC,GAGvBD,EAOR,QAASm5B,IAAqBC,EAAGV,EAAOW,GAEvC,GAAIC,GAAIv4B,EAAMw4B,EAAeC,EAC5BjjB,EAAW6iB,EAAE7iB,SACbiiB,EAAYY,EAAEZ,SAGf,OAA2B,MAAnBA,EAAW,GAClBA,EAAU1uB,QACEzJ,SAAPi5B,IACJA,EAAKF,EAAEK,UAAYf,EAAMgB,kBAAmB,gBAK9C,IAAKJ,EACJ,IAAMv4B,IAAQwV,GACb,GAAKA,EAAUxV,IAAUwV,EAAUxV,GAAOmI,KAAMowB,GAAO,CACtDd,EAAUtrB,QAASnM,EACnB,OAMH,GAAKy3B,EAAW,IAAOa,GACtBE,EAAgBf,EAAW,OACrB,CAGN,IAAMz3B,IAAQs4B,GAAY,CACzB,IAAMb,EAAW,IAAOY,EAAEO,WAAY54B,EAAO,IAAMy3B,EAAW,IAAQ,CACrEe,EAAgBx4B,CAChB,OAEKy4B,IACLA,EAAgBz4B,GAKlBw4B,EAAgBA,GAAiBC,EAMlC,MAAKD,IACCA,IAAkBf,EAAW,IACjCA,EAAUtrB,QAASqsB,GAEbF,EAAWE,IAJnB,OAWD,QAASK,IAAaR,EAAGS,EAAUnB,EAAOoB,GACzC,GAAIC,GAAOC,EAASC,EAAM12B,EAAKkT,EAC9BkjB,KAGAnB,EAAYY,EAAEZ,UAAUj8B,OAGzB,IAAKi8B,EAAW,GACf,IAAMyB,IAAQb,GAAEO,WACfA,EAAYM,EAAK13B,eAAkB62B,EAAEO,WAAYM,EAInDD,GAAUxB,EAAU1uB,OAGpB,OAAQkwB,EAcP,GAZKZ,EAAEc,eAAgBF,KACtBtB,EAAOU,EAAEc,eAAgBF,IAAcH,IAIlCpjB,GAAQqjB,GAAaV,EAAEe,aAC5BN,EAAWT,EAAEe,WAAYN,EAAUT,EAAEb,WAGtC9hB,EAAOujB,EACPA,EAAUxB,EAAU1uB,QAKnB,GAAiB,MAAZkwB,EAEJA,EAAUvjB,MAGJ,IAAc,MAATA,GAAgBA,IAASujB,EAAU,CAM9C,GAHAC,EAAON,EAAYljB,EAAO,IAAMujB,IAAaL,EAAY,KAAOK,IAG1DC,EACL,IAAMF,IAASJ,GAId,GADAp2B,EAAMw2B,EAAMl2B,MAAO,KACdN,EAAK,KAAQy2B,IAGjBC,EAAON,EAAYljB,EAAO,IAAMlT,EAAK,KACpCo2B,EAAY,KAAOp2B,EAAK,KACb,CAGN02B,KAAS,EACbA,EAAON,EAAYI,GAGRJ,EAAYI,MAAY,IACnCC,EAAUz2B,EAAK,GACfi1B,EAAUtrB,QAAS3J,EAAK,IAEzB,OAOJ,GAAK02B,KAAS,EAGb,GAAKA,GAAQb,EAAAA,UACZS,EAAWI,EAAMJ,OAEjB,KACCA,EAAWI,EAAMJ,GAChB,MAAQ5xB,GACT,OACC8Q,MAAO,cACPpY,MAAOs5B,EAAOhyB,EAAI,sBAAwBwO,EAAO,OAASujB,IASjE,OAASjhB,MAAO,UAAWsD,KAAMwd,GAGlC58B,EAAOwC,QAGN26B,OAAQ,EAGRC,gBACAC,QAEApB,cACCqB,IAAKhqB,GAASK,KACd7P,KAAM,MACNy5B,QAAS1C,GAAe5uB,KAAMqH,GAASkqB,UACvC7+B,QAAQ,EACR8+B,aAAa,EACbC,OAAO,EACPC,YAAa,mDAabC,SACCvI,IAAK4F,GACLn2B,KAAM,aACN4lB,KAAM,YACNxY,IAAK,4BACL2rB,KAAM,qCAGPvkB,UACCpH,IAAK,UACLwY,KAAM,SACNmT,KAAM,YAGPZ,gBACC/qB,IAAK,cACLpN,KAAM,eACN+4B,KAAM,gBAKPnB,YAGCoB,SAAUlzB,OAGVmzB,aAAa,EAGbC,YAAah+B,EAAO8f,UAGpBme,WAAYj+B,EAAOu6B,UAOpByB,aACCsB,KAAK,EACLp9B,SAAS,IAOXg+B,UAAW,SAAUn7B,EAAQo7B,GAC5B,MAAOA,GAGNpC,GAAYA,GAAYh5B,EAAQ/C,EAAOi8B,cAAgBkC,GAGvDpC,GAAY/7B,EAAOi8B,aAAcl5B,IAGnCq7B,cAAejD,GAA6BzG,IAC5C2J,cAAelD,GAA6BH,IAG5CsD,KAAM,SAAUhB,EAAK76B,GAGA,gBAAR66B,KACX76B,EAAU66B,EACVA,EAAMl6B,QAIPX,EAAUA,KAEV,IAAI87B,GAGHC,EAGAC,EACAC,EAGAC,EAGAC,EAGAC,EAGAh9B,EAGAs6B,EAAIn8B,EAAOk+B,aAAez7B,GAG1Bq8B,EAAkB3C,EAAEj8B,SAAWi8B,EAG/B4C,EAAqB5C,EAAEj8B,UACpB4+B,EAAgBz6B,UAAYy6B,EAAgBj+B,QAC7Cb,EAAQ8+B,GACR9+B,EAAO0kB,MAGTzI,EAAWjc,EAAO2b,WAClBqjB,EAAmBh/B,EAAO6a,UAAW,eAGrCokB,EAAa9C,EAAE8C,eAGfC,KACAC,KAGArjB,EAAQ,EAGRsjB,EAAW,WAGX3D,GACCvd,WAAY,EAGZue,kBAAmB,SAAUr4B,GAC5B,GAAIkH,EACJ,IAAe,IAAVwQ,EAAc,CAClB,IAAM4iB,EAAkB,CACvBA,IACA,OAAUpzB,EAAQsvB,GAASjvB,KAAM8yB,GAChCC,EAAiBpzB,EAAO,GAAIhG,eAAkBgG,EAAO,GAGvDA,EAAQozB,EAAiBt6B,EAAIkB,eAE9B,MAAgB,OAATgG,EAAgB,KAAOA,GAI/B+zB,sBAAuB,WACtB,MAAiB,KAAVvjB,EAAc2iB,EAAwB,MAI9Ca,iBAAkB,SAAU58B,EAAMyD,GACjC,GAAIo5B,GAAQ78B,EAAK4C,aAKjB,OAJMwW,KACLpZ,EAAOy8B,EAAqBI,GAAUJ,EAAqBI,IAAW78B,EACtEw8B,EAAgBx8B,GAASyD,GAEnBhH,MAIRqgC,iBAAkB,SAAU17B,GAI3B,MAHMgY,KACLqgB,EAAEK,SAAW14B,GAEP3E,MAIR8/B,WAAY,SAAUt9B,GACrB,GAAI6C,EACJ,IAAK7C,EACJ,GAAa,EAARma,EACJ,IAAMtX,IAAQ7C,GAGbs9B,EAAYz6B,IAAWy6B,EAAYz6B,GAAQ7C,EAAK6C,QAKjDi3B,GAAMzf,OAAQra,EAAK85B,EAAMgE,QAG3B,OAAOtgC,OAIRugC,MAAO,SAAUC,GAChB,GAAIC,GAAYD,GAAcP,CAK9B,OAJKb,IACJA,EAAUmB,MAAOE,GAElB73B,EAAM,EAAG63B,GACFzgC,MAuBV,IAlBA8c,EAASF,QAAS0f,GAAQrG,SAAW4J,EAAiBjlB,IACtD0hB,EAAMoE,QAAUpE,EAAM1zB,KACtB0zB,EAAM/3B,MAAQ+3B,EAAMvf,KAMpBigB,EAAEmB,MAAUA,GAAOnB,EAAEmB,KAAOhqB,GAASK,MAAS,IAAKnQ,QAASk3B,GAAO,IACjEl3B,QAASu3B,GAAWznB,GAASkqB,SAAW,MAG1CrB,EAAEr4B,KAAOrB,EAAQq9B,QAAUr9B,EAAQqB,MAAQq4B,EAAE2D,QAAU3D,EAAEr4B,KAGzDq4B,EAAEZ,UAAYv7B,EAAO4E,KAAMu3B,EAAEb,UAAY,KAAMh2B,cAAcgG,MAAOmP,KAAiB,IAG/D,MAAjB0hB,EAAE4D,YAAsB,CAC5BnB,EAAY7/B,EAAS8F,cAAe,IAIpC,KACC+5B,EAAUjrB,KAAOwoB,EAAEmB,IAInBsB,EAAUjrB,KAAOirB,EAAUjrB,KAC3BwoB,EAAE4D,YAAc7E,GAAasC,SAAW,KAAOtC,GAAa8E,MAC3DpB,EAAUpB,SAAW,KAAOoB,EAAUoB,KACtC,MAAQh1B,GAITmxB,EAAE4D,aAAc,GAalB,GARK5D,EAAE/c,MAAQ+c,EAAEsB,aAAiC,gBAAXtB,GAAE/c,OACxC+c,EAAE/c,KAAOpf,EAAOigC,MAAO9D,EAAE/c,KAAM+c,EAAE+D,cAIlC1E,GAA+B9G,GAAYyH,EAAG15B,EAASg5B,GAGxC,IAAV3f,EACJ,MAAO2f,EAKRoD,GAAc7+B,EAAO0kB,OAASyX,EAAEx9B,OAG3BkgC,GAAmC,IAApB7+B,EAAOm9B,UAC1Bn9B,EAAO0kB,MAAM2D,QAAS,aAIvB8T,EAAEr4B,KAAOq4B,EAAEr4B,KAAKnD,cAGhBw7B,EAAEgE,YAAcrF,GAAW7uB,KAAMkwB,EAAEr4B,MAInC06B,EAAWrC,EAAEmB,IAGPnB,EAAEgE,aAGFhE,EAAE/c,OACNof,EAAarC,EAAEmB,MAASlD,GAAOnuB,KAAMuyB,GAAa,IAAM,KAAQrC,EAAE/c,WAG3D+c,GAAE/c,MAIL+c,EAAExvB,SAAU,IAChBwvB,EAAEmB,IAAM3C,GAAI1uB,KAAMuyB,GAGjBA,EAASh7B,QAASm3B,GAAK,OAASR,MAGhCqE,GAAapE,GAAOnuB,KAAMuyB,GAAa,IAAM,KAAQ,KAAOrE,OAK1DgC,EAAEiE,aACDpgC,EAAOo9B,aAAcoB,IACzB/C,EAAM6D,iBAAkB,oBAAqBt/B,EAAOo9B,aAAcoB,IAE9Dx+B,EAAOq9B,KAAMmB,IACjB/C,EAAM6D,iBAAkB,gBAAiBt/B,EAAOq9B,KAAMmB,MAKnDrC,EAAE/c,MAAQ+c,EAAEgE,YAAchE,EAAEwB,eAAgB,GAASl7B,EAAQk7B,cACjElC,EAAM6D,iBAAkB,eAAgBnD,EAAEwB,aAI3ClC,EAAM6D,iBACL,SACAnD,EAAEZ,UAAW,IAAOY,EAAEyB,QAASzB,EAAEZ,UAAW,IAC3CY,EAAEyB,QAASzB,EAAEZ,UAAW,KACA,MAArBY,EAAEZ,UAAW,GAAc,KAAON,GAAW,WAAa,IAC7DkB,EAAEyB,QAAS,KAIb,KAAM/7B,IAAKs6B,GAAEkE,QACZ5E,EAAM6D,iBAAkBz9B,EAAGs6B,EAAEkE,QAASx+B,GAIvC,IAAKs6B,EAAEmE,aACJnE,EAAEmE,WAAWr/B,KAAM69B,EAAiBrD,EAAOU,MAAQ,GAAmB,IAAVrgB,GAG9D,MAAO2f,GAAMiE,OAIdN,GAAW,OAGX,KAAMv9B,KAAOg+B,QAAS,EAAGn8B,MAAO,EAAG0xB,SAAU,GAC5CqG,EAAO55B,GAAKs6B,EAAGt6B,GAOhB,IAHA08B,EAAY/C,GAA+BR,GAAYmB,EAAG15B,EAASg5B,GAK5D,CASN,GARAA,EAAMvd,WAAa,EAGd2gB,GACJE,EAAmB1W,QAAS,YAAcoT,EAAOU,IAInC,IAAVrgB,EACJ,MAAO2f,EAIHU,GAAEuB,OAASvB,EAAElF,QAAU,IAC3B0H,EAAez/B,EAAOkf,WAAY,WACjCqd,EAAMiE,MAAO,YACXvD,EAAElF,SAGN,KACCnb,EAAQ,EACRyiB,EAAUgC,KAAMrB,EAAgBn3B,GAC/B,MAAQiD,GAGT,KAAa,EAAR8Q,GAKJ,KAAM9Q,EAJNjD,GAAM,GAAIiD,QA5BZjD,GAAM,GAAI,eAsCX,SAASA,GAAM03B,EAAQe,EAAkBpE,EAAWiE,GACnD,GAAIxD,GAAWgD,EAASn8B,EAAOk5B,EAAU6D,EACxCd,EAAaa,CAGC,KAAV1kB,IAKLA,EAAQ,EAGH6iB,GACJz/B,EAAOg4B,aAAcyH,GAKtBJ,EAAYn7B,OAGZq7B,EAAwB4B,GAAW,GAGnC5E,EAAMvd,WAAauhB,EAAS,EAAI,EAAI,EAGpC5C,EAAY4C,GAAU,KAAgB,IAATA,GAA2B,MAAXA,EAGxCrD,IACJQ,EAAWV,GAAqBC,EAAGV,EAAOW,IAI3CQ,EAAWD,GAAaR,EAAGS,EAAUnB,EAAOoB,GAGvCA,GAGCV,EAAEiE,aACNK,EAAWhF,EAAMgB,kBAAmB,iBAC/BgE,IACJzgC,EAAOo9B,aAAcoB,GAAaiC,GAEnCA,EAAWhF,EAAMgB,kBAAmB,QAC/BgE,IACJzgC,EAAOq9B,KAAMmB,GAAaiC,IAKZ,MAAXhB,GAA6B,SAAXtD,EAAEr4B,KACxB67B,EAAa,YAGS,MAAXF,EACXE,EAAa,eAIbA,EAAa/C,EAAS9gB,MACtB+jB,EAAUjD,EAASxd,KACnB1b,EAAQk5B,EAASl5B,MACjBm5B,GAAan5B,KAKdA,EAAQi8B,GACHF,GAAWE,IACfA,EAAa,QACC,EAATF,IACJA,EAAS,KAMZhE,EAAMgE,OAASA,EACfhE,EAAMkE,YAAea,GAAoBb,GAAe,GAGnD9C,EACJ5gB,EAASqB,YAAawhB,GAAmBe,EAASF,EAAYlE,IAE9Dxf,EAASiZ,WAAY4J,GAAmBrD,EAAOkE,EAAYj8B,IAI5D+3B,EAAMwD,WAAYA,GAClBA,EAAa77B,OAERy7B,GACJE,EAAmB1W,QAASwU,EAAY,cAAgB,aACrDpB,EAAOU,EAAGU,EAAYgD,EAAUn8B,IAIpCs7B,EAAiBtjB,SAAUojB,GAAmBrD,EAAOkE,IAEhDd,IACJE,EAAmB1W,QAAS,gBAAkBoT,EAAOU,MAG3Cn8B,EAAOm9B,QAChBn9B,EAAO0kB,MAAM2D,QAAS,cAKzB,MAAOoT,IAGRiF,QAAS,SAAUpD,EAAKle,EAAM1d,GAC7B,MAAO1B,GAAOkB,IAAKo8B,EAAKle,EAAM1d,EAAU,SAGzCi/B,UAAW,SAAUrD,EAAK57B,GACzB,MAAO1B,GAAOkB,IAAKo8B,EAAKl6B,OAAW1B,EAAU,aAI/C1B,EAAOyB,MAAQ,MAAO,QAAU,SAAUI,EAAGi+B,GAC5C9/B,EAAQ8/B,GAAW,SAAUxC,EAAKle,EAAM1d,EAAUoC,GAUjD,MAPK9D,GAAOiD,WAAYmc,KACvBtb,EAAOA,GAAQpC,EACfA,EAAW0d,EACXA,EAAOhc,QAIDpD,EAAOs+B,KAAMt+B,EAAOwC,QAC1B86B,IAAKA,EACLx5B,KAAMg8B,EACNxE,SAAUx3B,EACVsb,KAAMA,EACNygB,QAASn+B,GACP1B,EAAOkD,cAAeo6B,IAASA,OAKpCt9B,EAAO2qB,SAAW,SAAU2S,GAC3B,MAAOt9B,GAAOs+B,MACbhB,IAAKA,EAGLx5B,KAAM,MACNw3B,SAAU,SACVoC,OAAO,EACP/+B,QAAQ,EACRiiC,UAAU,KAKZ5gC,EAAOG,GAAGqC,QACTq+B,QAAS,SAAUnW,GAClB,GAAIpH,EAEJ,OAAKtjB,GAAOiD,WAAYynB,GAChBvrB,KAAKsC,KAAM,SAAUI,GAC3B7B,EAAQb,MAAO0hC,QAASnW,EAAKzpB,KAAM9B,KAAM0C,OAItC1C,KAAM,KAGVmkB,EAAOtjB,EAAQ0qB,EAAMvrB,KAAM,GAAIuM,eAAgBzJ,GAAI,GAAIa,OAAO,GAEzD3D,KAAM,GAAI8F,YACdqe,EAAKgI,aAAcnsB,KAAM,IAG1BmkB,EAAK3hB,IAAK,WACT,GAAIC,GAAOzC,IAEX,OAAQyC,EAAKk/B,kBACZl/B,EAAOA,EAAKk/B,iBAGb,OAAOl/B,KACJwpB,OAAQjsB,OAGNA,OAGR4hC,UAAW,SAAUrW,GACpB,MAAK1qB,GAAOiD,WAAYynB,GAChBvrB,KAAKsC,KAAM,SAAUI,GAC3B7B,EAAQb,MAAO4hC,UAAWrW,EAAKzpB,KAAM9B,KAAM0C,MAItC1C,KAAKsC,KAAM,WACjB,GAAIsX,GAAO/Y,EAAQb,MAClBma,EAAWP,EAAKO,UAEZA,GAASvY,OACbuY,EAASunB,QAASnW,GAGlB3R,EAAKqS,OAAQV,MAKhBpH,KAAM,SAAUoH,GACf,GAAIznB,GAAajD,EAAOiD,WAAYynB,EAEpC,OAAOvrB,MAAKsC,KAAM,SAAUI,GAC3B7B,EAAQb,MAAO0hC,QAAS59B,EAAaynB,EAAKzpB,KAAM9B,KAAM0C,GAAM6oB,MAI9DsW,OAAQ,WACP,MAAO7hC,MAAK+O,SAASzM,KAAM,WACpBzB,EAAOqF,SAAUlG,KAAM,SAC5Ba,EAAQb,MAAOssB,YAAatsB,KAAK4L,cAE/B1I,SAKNrC,EAAOkQ,KAAK8E,QAAQob,OAAS,SAAUxuB,GACtC,OAAQ5B,EAAOkQ,KAAK8E,QAAQisB,QAASr/B,IAEtC5B,EAAOkQ,KAAK8E,QAAQisB,QAAU,SAAUr/B,GAMvC,MAAOA,GAAKouB,YAAc,GAAKpuB,EAAKquB,aAAe,GAAKruB,EAAKs/B,iBAAiBngC,OAAS,EAMxF,IAAIogC,IAAM,OACTC,GAAW,QACXC,GAAQ,SACRC,GAAkB,wCAClBC,GAAe,oCAEhB,SAASC,IAAa7P,EAAQ9tB,EAAKq8B,EAAanmB,GAC/C,GAAIrX,EAEJ,IAAK1C,EAAOmD,QAASU,GAGpB7D,EAAOyB,KAAMoC,EAAK,SAAUhC,EAAG4/B,GACzBvB,GAAekB,GAASn1B,KAAM0lB,GAGlC5X,EAAK4X,EAAQ8P,GAKbD,GACC7P,EAAS,KAAqB,gBAAN8P,IAAuB,MAALA,EAAY5/B,EAAI,IAAO,IACjE4/B,EACAvB,EACAnmB,SAKG,IAAMmmB,GAAsC,WAAvBlgC,EAAO8D,KAAMD,GAUxCkW,EAAK4X,EAAQ9tB,OAPb,KAAMnB,IAAQmB,GACb29B,GAAa7P,EAAS,IAAMjvB,EAAO,IAAKmB,EAAKnB,GAAQw9B,EAAanmB,GAYrE/Z,EAAOigC,MAAQ,SAAU53B,EAAG63B,GAC3B,GAAIvO,GACHwK,KACApiB,EAAM,SAAU3V,EAAK+B,GAGpBA,EAAQnG,EAAOiD,WAAYkD,GAAUA,IAAqB,MAATA,EAAgB,GAAKA,EACtEg2B,EAAGA,EAAEp7B,QAAW2gC,mBAAoBt9B,GAAQ,IAAMs9B,mBAAoBv7B,GASxE,IALqB/C,SAAhB88B,IACJA,EAAclgC,EAAOi8B,cAAgBj8B,EAAOi8B,aAAaiE,aAIrDlgC,EAAOmD,QAASkF,IAASA,EAAExH,SAAWb,EAAOkD,cAAemF,GAGhErI,EAAOyB,KAAM4G,EAAG,WACf0R,EAAK5a,KAAKuD,KAAMvD,KAAKgH,aAOtB,KAAMwrB,IAAUtpB,GACfm5B,GAAa7P,EAAQtpB,EAAGspB,GAAUuO,EAAanmB,EAKjD,OAAOoiB,GAAE9vB,KAAM,KAAM7I,QAAS29B,GAAK,MAGpCnhC,EAAOG,GAAGqC,QACTm/B,UAAW,WACV,MAAO3hC,GAAOigC,MAAO9gC,KAAKyiC,mBAE3BA,eAAgB,WACf,MAAOziC,MAAKwC,IAAK,WAGhB,GAAIwO,GAAWnQ,EAAOqf,KAAMlgB,KAAM,WAClC,OAAOgR,GAAWnQ,EAAOwF,UAAW2K,GAAahR,OAEjD0P,OAAQ,WACR,GAAI/K,GAAO3E,KAAK2E,IAGhB,OAAO3E,MAAKuD,OAAS1C,EAAQb,MAAOoZ,GAAI,cACvCgpB,GAAat1B,KAAM9M,KAAKkG,YAAei8B,GAAgBr1B,KAAMnI,KAC3D3E,KAAK4U,UAAY+N,EAAe7V,KAAMnI,MAEzCnC,IAAK,SAAUE,EAAGD,GAClB,GAAIyO,GAAMrQ,EAAQb,MAAOkR,KAEzB,OAAc,OAAPA,EACN,KACArQ,EAAOmD,QAASkN,GACfrQ,EAAO2B,IAAK0O,EAAK,SAAUA,GAC1B,OAAS3N,KAAMd,EAAKc,KAAMyD,MAAOkK,EAAI7M,QAAS69B,GAAO,YAEpD3+B,KAAMd,EAAKc,KAAMyD,MAAOkK,EAAI7M,QAAS69B,GAAO,WAC7CngC,SAKNlB,EAAOi8B,aAAa4F,IAAM,WACzB,IACC,MAAO,IAAI3iC,GAAO4iC,eACjB,MAAQ92B,KAGX,IAAI+2B,KAGFC,EAAG,IAIHC,KAAM,KAEPC,GAAeliC,EAAOi8B,aAAa4F,KAEpC/hC,GAAQqiC,OAASD,IAAkB,mBAAqBA,IACxDpiC,EAAQw+B,KAAO4D,KAAiBA,GAEhCliC,EAAOq+B,cAAe,SAAU57B,GAC/B,GAAIf,GAAU0gC,CAGd,OAAKtiC,GAAQqiC,MAAQD,KAAiBz/B,EAAQs9B,aAE5CQ,KAAM,SAAUF,EAASjL,GACxB,GAAIvzB,GACHggC,EAAMp/B,EAAQo/B,KAWf,IATAA,EAAIQ,KACH5/B,EAAQqB,KACRrB,EAAQ66B,IACR76B,EAAQi7B,MACRj7B,EAAQ6/B,SACR7/B,EAAQmS,UAIJnS,EAAQ8/B,UACZ,IAAM1gC,IAAKY,GAAQ8/B,UAClBV,EAAKhgC,GAAMY,EAAQ8/B,UAAW1gC,EAK3BY,GAAQ+5B,UAAYqF,EAAIrC,kBAC5BqC,EAAIrC,iBAAkB/8B,EAAQ+5B,UAQzB/5B,EAAQs9B,aAAgBM,EAAS,sBACtCA,EAAS,oBAAuB,iBAIjC,KAAMx+B,IAAKw+B,GACVwB,EAAIvC,iBAAkBz9B,EAAGw+B,EAASx+B,GAInCH,GAAW,SAAUoC,GACpB,MAAO,YACDpC,IACJA,EAAW0gC,EAAgBP,EAAIW,OAC9BX,EAAIY,QAAUZ,EAAIa,QAAUb,EAAIc,mBAAqB,KAExC,UAAT7+B,EACJ+9B,EAAInC,QACgB,UAAT57B,EAKgB,gBAAf+9B,GAAIpC,OACfrK,EAAU,EAAG,SAEbA,EAGCyM,EAAIpC,OACJoC,EAAIlC,YAINvK,EACC2M,GAAkBF,EAAIpC,SAAYoC,EAAIpC,OACtCoC,EAAIlC,WAK+B,UAAjCkC,EAAIe,cAAgB,SACM,gBAArBf,GAAIgB,cACRC,OAAQjB,EAAIjF,WACZ93B,KAAM+8B,EAAIgB,cACbhB,EAAIxC,4BAQTwC,EAAIW,OAAS9gC,IACb0gC,EAAgBP,EAAIY,QAAU/gC,EAAU,SAKnB0B,SAAhBy+B,EAAIa,QACRb,EAAIa,QAAUN,EAEdP,EAAIc,mBAAqB,WAGA,IAAnBd,EAAI3jB,YAMRhf,EAAOkf,WAAY,WACb1c,GACJ0gC,OAQL1gC,EAAWA,EAAU,QAErB,KAGCmgC,EAAItB,KAAM99B,EAAQ09B,YAAc19B,EAAQ2c,MAAQ,MAC/C,MAAQpU,GAGT,GAAKtJ,EACJ,KAAMsJ,KAKT00B,MAAO,WACDh+B,GACJA,MAjIJ,SA4ID1B,EAAOk+B,WACNN,SACCn5B,OAAQ,6FAGT6U,UACC7U,OAAQ,2BAETi4B,YACCqG,cAAe,SAAUj+B,GAExB,MADA9E,GAAOuE,WAAYO,GACZA,MAMV9E,EAAOo+B,cAAe,SAAU,SAAUjC,GACxB/4B,SAAZ+4B,EAAExvB,QACNwvB,EAAExvB,OAAQ,GAENwvB,EAAE4D,cACN5D,EAAEr4B,KAAO,SAKX9D,EAAOq+B,cAAe,SAAU,SAAUlC,GAGzC,GAAKA,EAAE4D,YAAc,CACpB,GAAIt7B,GAAQ/C,CACZ,QACC6+B,KAAM,SAAU/1B,EAAG4qB,GAClB3wB,EAASzE,EAAQ,YAAaqf,MAC7B2jB,QAAS7G,EAAE8G,cACXtgC,IAAKw5B,EAAEmB,MACJhZ,GACH,aACA5iB,EAAW,SAAUwhC,GACpBz+B,EAAO8W,SACP7Z,EAAW,KACNwhC,GACJ9N,EAAuB,UAAb8N,EAAIp/B,KAAmB,IAAM,IAAKo/B,EAAIp/B,QAMnD/E,EAASgG,KAAKC,YAAaP,EAAQ,KAEpCi7B,MAAO,WACDh+B,GACJA,QAUL,IAAIyhC,OACHC,GAAS,mBAGVpjC,GAAOk+B,WACNmF,MAAO,WACPC,cAAe,WACd,GAAI5hC,GAAWyhC,GAAa36B,OAAWxI,EAAOqD,QAAU,IAAQ82B,IAEhE,OADAh7B,MAAMuC,IAAa,EACZA,KAKT1B,EAAOo+B,cAAe,aAAc,SAAUjC,EAAGoH,EAAkB9H,GAElE,GAAI+H,GAAcC,EAAaC,EAC9BC,EAAWxH,EAAEkH,SAAU,IAAWD,GAAOn3B,KAAMkwB,EAAEmB,KAChD,MACkB,gBAAXnB,GAAE/c,MAE6C,KADnD+c,EAAEwB,aAAe,IACjBl+B,QAAS,sCACX2jC,GAAOn3B,KAAMkwB,EAAE/c,OAAU,OAI5B,OAAKukB,IAAiC,UAArBxH,EAAEZ,UAAW,IAG7BiI,EAAerH,EAAEmH,cAAgBtjC,EAAOiD,WAAYk5B,EAAEmH,eACrDnH,EAAEmH,gBACFnH,EAAEmH,cAGEK,EACJxH,EAAGwH,GAAaxH,EAAGwH,GAAWngC,QAAS4/B,GAAQ,KAAOI,GAC3CrH,EAAEkH,SAAU,IACvBlH,EAAEmB,MAASlD,GAAOnuB,KAAMkwB,EAAEmB,KAAQ,IAAM,KAAQnB,EAAEkH,MAAQ,IAAMG,GAIjErH,EAAEO,WAAY,eAAkB,WAI/B,MAHMgH,IACL1jC,EAAO0D,MAAO8/B,EAAe,mBAEvBE,EAAmB,IAI3BvH,EAAEZ,UAAW,GAAM,OAGnBkI,EAAcvkC,EAAQskC,GACtBtkC,EAAQskC,GAAiB,WACxBE,EAAoB3hC,WAIrB05B,EAAMzf,OAAQ,WAGQ5Y,SAAhBqgC,EACJzjC,EAAQd,GAAS+4B,WAAYuL,GAI7BtkC,EAAQskC,GAAiBC,EAIrBtH,EAAGqH,KAGPrH,EAAEmH,cAAgBC,EAAiBD,cAGnCH,GAAa3jC,KAAMgkC,IAIfE,GAAqB1jC,EAAOiD,WAAYwgC,IAC5CA,EAAaC,EAAmB,IAGjCA,EAAoBD,EAAcrgC,SAI5B,UA9DR,SAyEDpD,EAAOiZ,UAAY,SAAUmG,EAAMlf,EAAS0jC,GAC3C,IAAMxkB,GAAwB,gBAATA,GACpB,MAAO,KAEgB,kBAAZlf,KACX0jC,EAAc1jC,EACdA,GAAU,GAEXA,EAAUA,GAAWnB,CAErB,IAAI8kC,GAASlrB,EAAWhN,KAAMyT,GAC7B+D,GAAWygB,KAGZ,OAAKC,IACK3jC,EAAQ2E,cAAeg/B,EAAQ,MAGzCA,EAAS3gB,IAAiB9D,GAAQlf,EAASijB,GAEtCA,GAAWA,EAAQpiB,QACvBf,EAAQmjB,GAAU5H,SAGZvb,EAAOuB,SAAWsiC,EAAO94B,aAKjC,IAAI+4B,IAAQ9jC,EAAOG,GAAGgoB,IAKtBnoB,GAAOG,GAAGgoB,KAAO,SAAUmV,EAAKyG,EAAQriC,GACvC,GAAoB,gBAAR47B,IAAoBwG,GAC/B,MAAOA,IAAMhiC,MAAO3C,KAAM4C,UAG3B,IAAI9B,GAAU6D,EAAM84B,EACnB7jB,EAAO5Z,KACP4e,EAAMuf,EAAI79B,QAAS,IAsDpB,OApDKse,GAAM,KACV9d,EAAWD,EAAO4E,KAAM04B,EAAIh+B,MAAOye,IACnCuf,EAAMA,EAAIh+B,MAAO,EAAGye,IAIhB/d,EAAOiD,WAAY8gC,IAGvBriC,EAAWqiC,EACXA,EAAS3gC,QAGE2gC,GAA4B,gBAAXA,KAC5BjgC,EAAO,QAIHiV,EAAKhY,OAAS,GAClBf,EAAOs+B,MACNhB,IAAKA,EAKLx5B,KAAMA,GAAQ,MACdw3B,SAAU,OACVlc,KAAM2kB,IACHh8B,KAAM,SAAU86B,GAGnBjG,EAAW76B,UAEXgX,EAAK2R,KAAMzqB,EAIVD,EAAQ,SAAUorB,OAAQprB,EAAOiZ,UAAW4pB,IAAiBj0B,KAAM3O,GAGnE4iC,KAKE7mB,OAAQta,GAAY,SAAU+5B,EAAOgE,GACxC1mB,EAAKtX,KAAM,WACVC,EAASI,MAAO3C,KAAMy9B,IAAcnB,EAAMoH,aAAcpD,EAAQhE,QAK5Dt8B,MAORa,EAAOyB,MACN,YACA,WACA,eACA,YACA,cACA,YACE,SAAUI,EAAGiC,GACf9D,EAAOG,GAAI2D,GAAS,SAAU3D,GAC7B,MAAOhB,MAAKmlB,GAAIxgB,EAAM3D,MAOxBH,EAAOkQ,KAAK8E,QAAQgvB,SAAW,SAAUpiC,GACxC,MAAO5B,GAAO6F,KAAM7F,EAAOk2B,OAAQ,SAAU/1B,GAC5C,MAAOyB,KAASzB,EAAGyB,OAChBb,OASL,SAASkjC,IAAWriC,GACnB,MAAO5B,GAAOgE,SAAUpC,GAASA,EAAyB,IAAlBA,EAAKyC,UAAkBzC,EAAKwM,YAGrEpO,EAAOkkC,QACNC,UAAW,SAAUviC,EAAMa,EAASZ,GACnC,GAAIuiC,GAAaC,EAASC,EAAWC,EAAQC,EAAWC,EAAYC,EACnE5V,EAAW9uB,EAAOkhB,IAAKtf,EAAM,YAC7B+iC,EAAU3kC,EAAQ4B,GAClBklB,IAGiB,YAAbgI,IACJltB,EAAKigB,MAAMiN,SAAW,YAGvB0V,EAAYG,EAAQT,SACpBI,EAAYtkC,EAAOkhB,IAAKtf,EAAM,OAC9B6iC,EAAazkC,EAAOkhB,IAAKtf,EAAM,QAC/B8iC,GAAmC,aAAb5V,GAAwC,UAAbA,KAC9CwV,EAAYG,GAAahlC,QAAS,QAAW,GAI3CilC,GACJN,EAAcO,EAAQ7V,WACtByV,EAASH,EAAY/1B,IACrBg2B,EAAUD,EAAY7S,OAGtBgT,EAASpgC,WAAYmgC,IAAe,EACpCD,EAAUlgC,WAAYsgC,IAAgB,GAGlCzkC,EAAOiD,WAAYR,KAGvBA,EAAUA,EAAQxB,KAAMW,EAAMC,EAAG7B,EAAOwC,UAAYgiC,KAGjC,MAAf/hC,EAAQ4L,MACZyY,EAAMzY,IAAQ5L,EAAQ4L,IAAMm2B,EAAUn2B,IAAQk2B,GAE1B,MAAhB9hC,EAAQ8uB,OACZzK,EAAMyK,KAAS9uB,EAAQ8uB,KAAOiT,EAAUjT,KAAS8S,GAG7C,SAAW5hC,GACfA,EAAQmiC,MAAM3jC,KAAMW,EAAMklB,GAG1B6d,EAAQzjB,IAAK4F,KAKhB9mB,EAAOG,GAAGqC,QACT0hC,OAAQ,SAAUzhC,GACjB,GAAKV,UAAUhB,OACd,MAAmBqC,UAAZX,EACNtD,KACAA,KAAKsC,KAAM,SAAUI,GACpB7B,EAAOkkC,OAAOC,UAAWhlC,KAAMsD,EAASZ,IAI3C,IAAI2F,GAASq9B,EACZjjC,EAAOzC,KAAM,GACb2lC,GAAQz2B,IAAK,EAAGkjB,KAAM,GACtBpjB,EAAMvM,GAAQA,EAAK8J,aAEpB,IAAMyC,EAON,MAHA3G,GAAU2G,EAAIJ,gBAGR/N,EAAO4H,SAAUJ,EAAS5F,IAIhCkjC,EAAMljC,EAAK0vB,wBACXuT,EAAMZ,GAAW91B,IAEhBE,IAAKy2B,EAAIz2B,IAAMw2B,EAAIE,YAAcv9B,EAAQugB,UACzCwJ,KAAMuT,EAAIvT,KAAOsT,EAAIG,YAAcx9B,EAAQmgB,aAPpCmd,GAWThW,SAAU,WACT,GAAM3vB,KAAM,GAAZ,CAIA,GAAI8lC,GAAcf,EACjBtiC,EAAOzC,KAAM,GACb+lC,GAAiB72B,IAAK,EAAGkjB,KAAM,EA0BhC,OAtBwC,UAAnCvxB,EAAOkhB,IAAKtf,EAAM,YAGtBsiC,EAAStiC,EAAK0vB,yBAKd2T,EAAe9lC,KAAK8lC,eAGpBf,EAAS/kC,KAAK+kC,SACRlkC,EAAOqF,SAAU4/B,EAAc,GAAK,UACzCC,EAAeD,EAAaf,UAI7BgB,EAAa72B,KAAOrO,EAAOkhB,IAAK+jB,EAAc,GAAK,kBAAkB,GACrEC,EAAa3T,MAAQvxB,EAAOkhB,IAAK+jB,EAAc,GAAK,mBAAmB,KAKvE52B,IAAK61B,EAAO71B,IAAM62B,EAAa72B,IAAMrO,EAAOkhB,IAAKtf,EAAM,aAAa,GACpE2vB,KAAM2S,EAAO3S,KAAO2T,EAAa3T,KAAOvxB,EAAOkhB,IAAKtf,EAAM,cAAc,MAc1EqjC,aAAc,WACb,MAAO9lC,MAAKwC,IAAK,WAChB,GAAIsjC,GAAe9lC,KAAK8lC,YAExB,OAAQA,GAA2D,WAA3CjlC,EAAOkhB,IAAK+jB,EAAc,YACjDA,EAAeA,EAAaA,YAG7B,OAAOA,IAAgBl3B,QAM1B/N,EAAOyB,MAAQimB,WAAY,cAAeI,UAAW,eAAiB,SAAUgY,EAAQzgB,GACvF,GAAIhR,GAAM,gBAAkBgR,CAE5Brf,GAAOG,GAAI2/B,GAAW,SAAUzvB,GAC/B,MAAOgO,GAAQlf,KAAM,SAAUyC,EAAMk+B,EAAQzvB,GAC5C,GAAIw0B,GAAMZ,GAAWriC,EAErB,OAAawB,UAARiN,EACGw0B,EAAMA,EAAKxlB,GAASzd,EAAMk+B,QAG7B+E,EACJA,EAAIM,SACF92B,EAAYw2B,EAAIG,YAAV30B,EACPhC,EAAMgC,EAAMw0B,EAAIE,aAIjBnjC,EAAMk+B,GAAWzvB,IAEhByvB,EAAQzvB,EAAKtO,UAAUhB,WAU5Bf,EAAOyB,MAAQ,MAAO,QAAU,SAAUI,EAAGwd,GAC5Crf,EAAOqwB,SAAUhR,GAASoP,GAAc3uB,EAAQguB,cAC/C,SAAUlsB,EAAMysB,GACf,MAAKA,IACJA,EAAWD,GAAQxsB,EAAMyd,GAGlBqN,GAAUzgB,KAAMoiB,GACtBruB,EAAQ4B,GAAOktB,WAAYzP,GAAS,KACpCgP,GANF,WAcHruB,EAAOyB,MAAQ2jC,OAAQ,SAAUC,MAAO,SAAW,SAAU3iC,EAAMoB,GAClE9D,EAAOyB,MAAQgwB,QAAS,QAAU/uB,EAAMknB,QAAS9lB,EAAMwhC,GAAI,QAAU5iC,GACpE,SAAU6iC,EAAcC,GAGxBxlC,EAAOG,GAAIqlC,GAAa,SAAUhU,EAAQrrB,GACzC,GAAImY,GAAYvc,UAAUhB,SAAYwkC,GAAkC,iBAAX/T,IAC5D7B,EAAQ4V,IAAkB/T,KAAW,GAAQrrB,KAAU,EAAO,SAAW,SAE1E,OAAOkY,GAAQlf,KAAM,SAAUyC,EAAMkC,EAAMqC,GAC1C,GAAIgI,EAEJ,OAAKnO,GAAOgE,SAAUpC,GAKdA,EAAK7C,SAASgP,gBAAiB,SAAWrL,GAI3B,IAAlBd,EAAKyC,UACT8J,EAAMvM,EAAKmM,gBAIJzK,KAAKmsB,IACX7tB,EAAK2lB,KAAM,SAAW7kB,GAAQyL,EAAK,SAAWzL,GAC9Cd,EAAK2lB,KAAM,SAAW7kB,GAAQyL,EAAK,SAAWzL,GAC9CyL,EAAK,SAAWzL,KAIDU,SAAV+C,EAGNnG,EAAOkhB,IAAKtf,EAAMkC,EAAM6rB,GAGxB3vB,EAAO6hB,MAAOjgB,EAAMkC,EAAMqC,EAAOwpB,IAChC7rB,EAAMwa,EAAYkT,EAASpuB,OAAWkb,EAAW,WAMvDte,EAAOG,GAAGqC,QAETijC,KAAM,SAAUlhB,EAAOnF,EAAMjf,GAC5B,MAAOhB,MAAKmlB,GAAIC,EAAO,KAAMnF,EAAMjf,IAEpCulC,OAAQ,SAAUnhB,EAAOpkB,GACxB,MAAOhB,MAAK4e,IAAKwG,EAAO,KAAMpkB,IAG/BwlC,SAAU,SAAU1lC,EAAUskB,EAAOnF,EAAMjf,GAC1C,MAAOhB,MAAKmlB,GAAIC,EAAOtkB,EAAUmf,EAAMjf,IAExCylC,WAAY,SAAU3lC,EAAUskB,EAAOpkB,GAGtC,MAA4B,KAArB4B,UAAUhB,OAChB5B,KAAK4e,IAAK9d,EAAU,MACpBd,KAAK4e,IAAKwG,EAAOtkB,GAAY,KAAME,IAErC0lC,KAAM,WACL,MAAO1mC,MAAK4B,UAIdf,EAAOG,GAAG2lC,QAAU9lC,EAAOG,GAAG6Z,QAkBP,kBAAX+rB,SAAyBA,OAAOC,KAC3CD,OAAQ,YAAc,WACrB,MAAO/lC,IAMT,IAGCimC,IAAU/mC,EAAOc,OAGjBkmC,GAAKhnC,EAAOinC,CAqBb,OAnBAnmC,GAAOomC,WAAa,SAAUpjC,GAS7B,MARK9D,GAAOinC,IAAMnmC,IACjBd,EAAOinC,EAAID,IAGPljC,GAAQ9D,EAAOc,SAAWA,IAC9Bd,EAAOc,OAASimC,IAGVjmC,GAMFZ,IACLF,EAAOc,OAASd,EAAOinC,EAAInmC,GAGrBA","file":"jquery.min.js"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/LICENSE.txt b/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/LICENSE.txt
deleted file mode 100644
index dd7ce940..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/LICENSE.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-Copyright jQuery Foundation and other contributors, https://jquery.org/
-
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/jquery/sizzle
-
-The following license applies to all parts of this software except as
-documented below:
-
-====
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-====
-
-All files located in the node_modules and external directories are
-externally maintained libraries used by this software which have their
-own licenses; we recommend you read them, as their terms may differ from
-the terms above.
diff --git a/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.js b/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.js
deleted file mode 100644
index 9b1e5ba6..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.js
+++ /dev/null
@@ -1,2143 +0,0 @@
-/*!
- * Sizzle CSS Selector Engine v2.2.1
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2015-10-17
- */
-(function( window ) {
-
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + 1 * new Date(),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // General-purpose constants
- MAX_NEGATIVE = 1 << 31,
-
- // Instance methods
- hasOwn = ({}).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- push_native = arr.push,
- push = arr.push,
- slice = arr.slice,
- // Use a stripped-down indexOf as it's faster than native
- // http://jsperf.com/thor-indexof-vs-for/5
- indexOf = function( list, elem ) {
- var i = 0,
- len = list.length;
- for ( ; i < len; i++ ) {
- if ( list[i] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
-
- // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
- identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
- // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
- "*\\]",
-
- pseudos = ":(" + identifier + ")(?:\\((" +
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rwhitespace = new RegExp( whitespace + "+", "g" ),
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
-
- rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + identifier + ")" ),
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
- "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
- "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
- whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
- rescape = /'|\\/g,
-
- // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
- funescape = function( _, escaped, escapedWhitespace ) {
- var high = "0x" + escaped - 0x10000;
- // NaN means non-codepoint
- // Support: Firefox<24
- // Workaround erroneous numeric interpretation of +"0x"
- return high !== high || escapedWhitespace ?
- escaped :
- high < 0 ?
- // BMP codepoint
- String.fromCharCode( high + 0x10000 ) :
- // Supplemental Plane codepoint (surrogate pair)
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- },
-
- // Used for iframes
- // See setDocument()
- // Removing the function wrapper causes a "Permission Denied"
- // error in IE
- unloadHandler = function() {
- setDocument();
- };
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- (arr = slice.call( preferredDoc.childNodes )),
- preferredDoc.childNodes
- );
- // Support: Android<4.0
- // Detect silently failing push.apply
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- push_native.apply( target, slice.call(els) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
- // Can't trust NodeList.length
- while ( (target[j++] = els[i++]) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var m, i, elem, nid, nidselect, match, groups, newSelector,
- newContext = context && context.ownerDocument,
-
- // nodeType defaults to 9, since context defaults to document
- nodeType = context ? context.nodeType : 9;
-
- results = results || [];
-
- // Return early from calls with invalid selector or context
- if ( typeof selector !== "string" || !selector ||
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
- return results;
- }
-
- // Try to shortcut find operations (as opposed to filters) in HTML documents
- if ( !seed ) {
-
- if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
- setDocument( context );
- }
- context = context || document;
-
- if ( documentIsHTML ) {
-
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
- // (excepting DocumentFragment context, where the methods don't exist)
- if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
-
- // ID selector
- if ( (m = match[1]) ) {
-
- // Document context
- if ( nodeType === 9 ) {
- if ( (elem = context.getElementById( m )) ) {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
-
- // Element context
- } else {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( newContext && (elem = newContext.getElementById( m )) &&
- contains( context, elem ) &&
- elem.id === m ) {
-
- results.push( elem );
- return results;
- }
- }
-
- // Type selector
- } else if ( match[2] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Class selector
- } else if ( (m = match[3]) && support.getElementsByClassName &&
- context.getElementsByClassName ) {
-
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // Take advantage of querySelectorAll
- if ( support.qsa &&
- !compilerCache[ selector + " " ] &&
- (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
-
- if ( nodeType !== 1 ) {
- newContext = context;
- newSelector = selector;
-
- // qSA looks outside Element context, which is not what we want
- // Thanks to Andrew Dupont for this workaround technique
- // Support: IE <=8
- // Exclude object elements
- } else if ( context.nodeName.toLowerCase() !== "object" ) {
-
- // Capture the context ID, setting it first if necessary
- if ( (nid = context.getAttribute( "id" )) ) {
- nid = nid.replace( rescape, "\\$&" );
- } else {
- context.setAttribute( "id", (nid = expando) );
- }
-
- // Prefix every selector in the list
- groups = tokenize( selector );
- i = groups.length;
- nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
- while ( i-- ) {
- groups[i] = nidselect + " " + toSelector( groups[i] );
- }
- newSelector = groups.join( "," );
-
- // Expand context for sibling selectors
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
- context;
- }
-
- if ( newSelector ) {
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch ( qsaError ) {
- } finally {
- if ( nid === expando ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return (cache[ key + " " ] = value);
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created div and expects a boolean result
- */
-function assert( fn ) {
- var div = document.createElement("div");
-
- try {
- return !!fn( div );
- } catch (e) {
- return false;
- } finally {
- // Remove from its parent by default
- if ( div.parentNode ) {
- div.parentNode.removeChild( div );
- }
- // release memory in IE
- div = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split("|"),
- i = arr.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[i] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- ( ~b.sourceIndex || MAX_NEGATIVE ) -
- ( ~a.sourceIndex || MAX_NEGATIVE );
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( (cur = cur.nextSibling) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction(function( argument ) {
- argument = +argument;
- return markFunction(function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ (j = matchIndexes[i]) ] ) {
- seed[j] = !(matches[j] = seed[j]);
- }
- }
- });
- });
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && (elem.ownerDocument || elem).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare, parent,
- doc = node ? node.ownerDocument || node : preferredDoc;
-
- // Return early if doc is invalid or already selected
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Update global variables
- document = doc;
- docElem = document.documentElement;
- documentIsHTML = !isXML( document );
-
- // Support: IE 9-11, Edge
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
- if ( (parent = document.defaultView) && parent.top !== parent ) {
- // Support: IE 11
- if ( parent.addEventListener ) {
- parent.addEventListener( "unload", unloadHandler, false );
-
- // Support: IE 9 - 10 only
- } else if ( parent.attachEvent ) {
- parent.attachEvent( "onunload", unloadHandler );
- }
- }
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties
- // (excepting IE8 booleans)
- support.attributes = assert(function( div ) {
- div.className = "i";
- return !div.getAttribute("className");
- });
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert(function( div ) {
- div.appendChild( document.createComment("") );
- return !div.getElementsByTagName("*").length;
- });
-
- // Support: IE<9
- support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert(function( div ) {
- docElem.appendChild( div ).id = expando;
- return !document.getElementsByName || !document.getElementsByName( expando ).length;
- });
-
- // ID find and filter
- if ( support.getById ) {
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var m = context.getElementById( id );
- return m ? [ m ] : [];
- }
- };
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute("id") === attrId;
- };
- };
- } else {
- // Support: IE6/7
- // getElementById is not reliable as a find shortcut
- delete Expr.find["ID"];
-
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== "undefined" &&
- elem.getAttributeNode("id");
- return node && node.value === attrId;
- };
- };
- }
-
- // Tag
- Expr.find["TAG"] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( tag );
-
- // DocumentFragment nodes don't have gEBTN
- } else if ( support.qsa ) {
- return context.querySelectorAll( tag );
- }
- } :
-
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
- // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( (elem = results[i++]) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See http://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert(function( div ) {
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // http://bugs.jquery.com/ticket/12359
- docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
- "<select id='" + expando + "-\r\\' msallowcapture=''>" +
- "<option selected=''></option></select>";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( div.querySelectorAll("[msallowcapture^='']").length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !div.querySelectorAll("[selected]").length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
- if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
- rbuggyQSA.push("~=");
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":checked").length ) {
- rbuggyQSA.push(":checked");
- }
-
- // Support: Safari 8+, iOS 8+
- // https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibing-combinator selector` fails
- if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
- rbuggyQSA.push(".#.+[+~]");
- }
- });
-
- assert(function( div ) {
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = document.createElement("input");
- input.setAttribute( "type", "hidden" );
- div.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( div.querySelectorAll("[name=d]").length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":enabled").length ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Opera 10-11 does not throw on post-comma invalid pseudos
- div.querySelectorAll("*,:x");
- rbuggyQSA.push(",.*:");
- });
- }
-
- if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector) )) ) {
-
- assert(function( div ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( div, "div" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( div, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- });
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully self-exclusive
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ));
- } :
- function( a, b ) {
- if ( b ) {
- while ( (b = b.parentNode) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
- return -1;
- }
- if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
- return a === document ? -1 :
- b === document ? 1 :
- aup ? -1 :
- bup ? 1 :
- sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( (cur = cur.parentNode) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( (cur = cur.parentNode) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[i] === bp[i] ) {
- i++;
- }
-
- return i ?
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[i], bp[i] ) :
-
- // Otherwise nodes in our document sort first
- ap[i] === preferredDoc ? -1 :
- bp[i] === preferredDoc ? 1 :
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- // Make sure that attribute selectors are quoted
- expr = expr.replace( rattributeQuotes, "='$1']" );
-
- if ( support.matchesSelector && documentIsHTML &&
- !compilerCache[ expr + " " ] &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch (e) {}
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
- // Set document vars if needed
- if ( ( context.ownerDocument || context ) !== document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- (val = elem.getAttributeNode(name)) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( (elem = results[i++]) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
- // If no nodeType, this is expected to be an array
- while ( (node = elem[i++]) ) {
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[1] = match[1].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
-
- if ( match[2] === "~=" ) {
- match[3] = " " + match[3] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[1] = match[1].toLowerCase();
-
- if ( match[1].slice( 0, 3 ) === "nth" ) {
- // nth-* requires argument
- if ( !match[3] ) {
- Sizzle.error( match[0] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
- match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[3] ) {
- Sizzle.error( match[0] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[6] && match[2];
-
- if ( matchExpr["CHILD"].test( match[0] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[3] ) {
- match[2] = match[4] || match[5] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
- // Get excess from tokenize (recursively)
- (excess = tokenize( unquoted, true )) &&
- // advance to the next closing parenthesis
- (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
- // excess is a negative index
- match[0] = match[0].slice( 0, excess );
- match[2] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() { return true; } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
- classCache( className, function( elem ) {
- return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
- });
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- };
- },
-
- "CHILD": function( type, what, argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, context, xml ) {
- var cache, uniqueCache, outerCache, node, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType,
- diff = false;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( (node = node[ dir ]) ) {
- if ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) {
-
- return false;
- }
- }
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
-
- // Seek `elem` from a previously-cached index
-
- // ...in a gzip-friendly way
- node = parent;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex && cache[ 2 ];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( (node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- } else {
- // Use previously-cached element index if available
- if ( useCache ) {
- // ...in a gzip-friendly way
- node = elem;
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex;
- }
-
- // xml :nth-child(...)
- // or :nth-last-child(...) or :nth(-last)?-of-type(...)
- if ( diff === false ) {
- // Use the same loop as above to seek `elem` from the start
- while ( (node = ++nodeIndex && node && node[ dir ] ||
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- if ( ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) &&
- ++diff ) {
-
- // Cache the index of each encountered element
- if ( useCache ) {
- outerCache = node[ expando ] || (node[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- (outerCache[ node.uniqueID ] = {});
-
- uniqueCache[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction(function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf( seed, matched[i] );
- seed[ idx ] = !( matches[ idx ] = matched[i] );
- }
- }) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
- // Potentially complex pseudos
- "not": markFunction(function( selector ) {
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction(function( seed, matches, context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( (elem = unmatched[i]) ) {
- seed[i] = !(matches[i] = elem);
- }
- }
- }) :
- function( elem, context, xml ) {
- input[0] = elem;
- matcher( input, null, xml, results );
- // Don't keep the element (issue #299)
- input[0] = null;
- return !results.pop();
- };
- }),
-
- "has": markFunction(function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- }),
-
- "contains": markFunction(function( text ) {
- text = text.replace( runescape, funescape );
- return function( elem ) {
- return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
- };
- }),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
- // lang value must be a valid identifier
- if ( !ridentifier.test(lang || "") ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( (elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
- return false;
- };
- }),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
- },
-
- // Boolean properties
- "enabled": function( elem ) {
- return elem.disabled === false;
- },
-
- "disabled": function( elem ) {
- return elem.disabled === true;
- },
-
- "checked": function( elem ) {
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
- },
-
- "selected": function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos["empty"]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo(function() {
- return [ 0 ];
- }),
-
- "last": createPositionalPseudo(function( matchIndexes, length ) {
- return [ length - 1 ];
- }),
-
- "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- }),
-
- "even": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "odd": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- })
- }
-};
-
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || (match = rcomma.exec( soFar )) ) {
- if ( match ) {
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[0].length ) || soFar;
- }
- groups.push( (tokens = []) );
- }
-
- matched = false;
-
- // Combinators
- if ( (match = rcombinators.exec( soFar )) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- // Cast descendant combinators to space
- type: match[0].replace( rtrim, " " )
- });
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
- (match = preFilters[ type ]( match ))) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- type: type,
- matches: match
- });
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[i].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- checkNonElements = base && dir === "parentNode",
- doneName = done++;
-
- return combinator.first ?
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, uniqueCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
- if ( xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || (elem[ expando ] = {});
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
-
- if ( (oldCache = uniqueCache[ dir ]) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return (newCache[ 2 ] = oldCache[ 2 ]);
- } else {
- // Reuse newcache so results back-propagate to previous elements
- uniqueCache[ dir ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
- return true;
- }
- }
- }
- }
- }
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[i]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[0];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[i], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( (elem = unmatched[i]) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction(function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( (elem = temp[i]) ) {
- matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) ) {
- // Restore matcherIn since elem is not yet a final match
- temp.push( (matcherIn[i] = elem) );
- }
- }
- postFinder( null, (matcherOut = []), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) &&
- (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
-
- seed[temp] = !(results[temp] = elem);
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- });
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[0].type ],
- implicitRelative = leadingRelative || Expr.relative[" "],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- (checkContext = context).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
- // Avoid hanging onto element (issue #299)
- checkContext = null;
- return ret;
- } ];
-
- for ( ; i < len; i++ ) {
- if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
- matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
- } else {
- matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[j].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
- ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
- len = elems.length;
-
- if ( outermost ) {
- outermostContext = context === document || context || outermost;
- }
-
- // Add elements passing elementMatchers directly to results
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
- for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
- if ( !context && elem.ownerDocument !== document ) {
- setDocument( elem );
- xml = !documentIsHTML;
- }
- while ( (matcher = elementMatchers[j++]) ) {
- if ( matcher( elem, context || document, xml) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
- // They will have gone through all possible matchers
- if ( (elem = !matcher && elem) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // `i` is now the count of elements visited above, and adding it to `matchedCount`
- // makes the latter nonnegative.
- matchedCount += i;
-
- // Apply set filters to unmatched elements
- // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
- // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
- // no element matchers and no seed.
- // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
- // case, which will result in a "00" `matchedCount` that differs from `i` but is also
- // numerically zero.
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( (matcher = setMatchers[j++]) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !(unmatched[i] || setMatched[i]) ) {
- setMatched[i] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[i] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( (selector = compiled.selector || selector) );
-
- results = results || [];
-
- // Try to minimize operations if there is only one selector in the list and no seed
- // (the latter of which guarantees us context)
- if ( match.length === 1 ) {
-
- // Reduce context if the leading compound selector is an ID
- tokens = match[0] = match[0].slice( 0 );
- if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
- support.getById && context.nodeType === 9 && documentIsHTML &&
- Expr.relative[ tokens[1].type ] ) {
-
- context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[i];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ (type = token.type) ] ) {
- break;
- }
- if ( (find = Expr.find[ type ]) ) {
- // Search, expanding context for leading sibling combinators
- if ( (seed = find(
- token.matches[0].replace( runescape, funescape ),
- rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
- )) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert(function( div1 ) {
- // Should return 1, but returns 4 (following)
- return div1.compareDocumentPosition( document.createElement("div") ) & 1;
-});
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert(function( div ) {
- div.innerHTML = "<a href='#'></a>";
- return div.firstChild.getAttribute("href") === "#" ;
-}) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- });
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert(function( div ) {
- div.innerHTML = "<input/>";
- div.firstChild.setAttribute( "value", "" );
- return div.firstChild.getAttribute( "value" ) === "";
-}) ) {
- addHandle( "value", function( elem, name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- });
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert(function( div ) {
- return div.getAttribute("disabled") == null;
-}) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- (val = elem.getAttributeNode( name )) && val.specified ?
- val.value :
- null;
- }
- });
-}
-
-// EXPOSE
-if ( typeof define === "function" && define.amd ) {
- define(function() { return Sizzle; });
-// Sizzle requires that there be a global window in Common-JS like environments
-} else if ( typeof module !== "undefined" && module.exports ) {
- module.exports = Sizzle;
-} else {
- window.Sizzle = Sizzle;
-}
-// EXPOSE
-
-})( window );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.min.js b/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.min.js
deleted file mode 100644
index 8558975d..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.min.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/*! Sizzle v2.2.1 | (c) jQuery Foundation, Inc. | jquery.org/license */
-!function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=R.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),"function"==typeof define&&define.amd?define(function(){return fa}):"undefined"!=typeof module&&module.exports?module.exports=fa:a.Sizzle=fa}(window);
-//# sourceMappingURL=sizzle.min.map \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.min.map b/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.min.map
deleted file mode 100644
index 5438e0e7..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/external/sizzle/dist/sizzle.min.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"sizzle.min.js","sources":["sizzle.js"],"names":["window","i","support","Expr","getText","isXML","tokenize","compile","select","outermostContext","sortInput","hasDuplicate","setDocument","document","docElem","documentIsHTML","rbuggyQSA","rbuggyMatches","matches","contains","expando","Date","preferredDoc","dirruns","done","classCache","createCache","tokenCache","compilerCache","sortOrder","a","b","MAX_NEGATIVE","hasOwn","hasOwnProperty","arr","pop","push_native","push","slice","indexOf","list","elem","len","length","booleans","whitespace","identifier","attributes","pseudos","rwhitespace","RegExp","rtrim","rcomma","rcombinators","rattributeQuotes","rpseudo","ridentifier","matchExpr","ID","CLASS","TAG","ATTR","PSEUDO","CHILD","bool","needsContext","rinputs","rheader","rnative","rquickExpr","rsibling","rescape","runescape","funescape","_","escaped","escapedWhitespace","high","String","fromCharCode","unloadHandler","apply","call","childNodes","nodeType","e","target","els","j","Sizzle","selector","context","results","seed","m","nid","nidselect","match","groups","newSelector","newContext","ownerDocument","exec","getElementById","id","getElementsByTagName","getElementsByClassName","qsa","test","nodeName","toLowerCase","getAttribute","replace","setAttribute","toSelector","join","testContext","parentNode","querySelectorAll","qsaError","removeAttribute","keys","cache","key","value","cacheLength","shift","markFunction","fn","assert","div","createElement","removeChild","addHandle","attrs","handler","split","attrHandle","siblingCheck","cur","diff","sourceIndex","nextSibling","createInputPseudo","type","name","createButtonPseudo","createPositionalPseudo","argument","matchIndexes","documentElement","node","hasCompare","parent","doc","defaultView","top","addEventListener","attachEvent","className","appendChild","createComment","getById","getElementsByName","find","filter","attrId","getAttributeNode","tag","tmp","innerHTML","input","matchesSelector","webkitMatchesSelector","mozMatchesSelector","oMatchesSelector","msMatchesSelector","disconnectedMatch","compareDocumentPosition","adown","bup","compare","sortDetached","aup","ap","bp","unshift","expr","elements","ret","attr","val","undefined","specified","error","msg","Error","uniqueSort","duplicates","detectDuplicates","sortStable","sort","splice","textContent","firstChild","nodeValue","selectors","createPseudo","relative",">","dir","first"," ","+","~","preFilter","excess","unquoted","nodeNameSelector","pattern","operator","check","result","what","last","simple","forward","ofType","xml","uniqueCache","outerCache","nodeIndex","start","useCache","lastChild","uniqueID","pseudo","args","setFilters","idx","matched","not","matcher","unmatched","has","text","innerText","lang","elemLang","hash","location","root","focus","activeElement","hasFocus","href","tabIndex","enabled","disabled","checked","selected","selectedIndex","empty","header","button","eq","even","odd","lt","gt","radio","checkbox","file","password","image","submit","reset","prototype","filters","parseOnly","tokens","soFar","preFilters","cached","addCombinator","combinator","base","checkNonElements","doneName","oldCache","newCache","elementMatcher","matchers","multipleContexts","contexts","condense","map","newUnmatched","mapped","setMatcher","postFilter","postFinder","postSelector","temp","preMap","postMap","preexisting","elems","matcherIn","matcherOut","matcherFromTokens","checkContext","leadingRelative","implicitRelative","matchContext","matchAnyContext","concat","matcherFromGroupMatchers","elementMatchers","setMatchers","bySet","byElement","superMatcher","outermost","matchedCount","setMatched","contextBackup","dirrunsUnique","Math","random","token","compiled","div1","defaultValue","define","amd","module","exports"],"mappings":";CAUA,SAAWA,GAEX,GAAIC,GACHC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAGAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAGAC,EAAU,SAAW,EAAI,GAAIC,MAC7BC,EAAetB,EAAOa,SACtBU,EAAU,EACVC,EAAO,EACPC,EAAaC,KACbC,EAAaD,KACbE,EAAgBF,KAChBG,EAAY,SAAUC,EAAGC,GAIxB,MAHKD,KAAMC,IACVpB,GAAe,GAET,GAIRqB,EAAe,GAAK,GAGpBC,KAAcC,eACdC,KACAC,EAAMD,EAAIC,IACVC,EAAcF,EAAIG,KAClBA,EAAOH,EAAIG,KACXC,EAAQJ,EAAII,MAGZC,EAAU,SAAUC,EAAMC,GAGzB,IAFA,GAAIzC,GAAI,EACP0C,EAAMF,EAAKG,OACAD,EAAJ1C,EAASA,IAChB,GAAKwC,EAAKxC,KAAOyC,EAChB,MAAOzC,EAGT,OAAO,IAGR4C,EAAW,6HAKXC,EAAa,sBAGbC,EAAa,mCAGbC,EAAa,MAAQF,EAAa,KAAOC,EAAa,OAASD,EAE9D,gBAAkBA,EAElB,2DAA6DC,EAAa,OAASD,EACnF,OAEDG,EAAU,KAAOF,EAAa,wFAKAC,EAAa,eAM3CE,EAAc,GAAIC,QAAQL,EAAa,IAAK,KAC5CM,EAAQ,GAAID,QAAQ,IAAML,EAAa,8BAAgCA,EAAa,KAAM,KAE1FO,EAAS,GAAIF,QAAQ,IAAML,EAAa,KAAOA,EAAa,KAC5DQ,EAAe,GAAIH,QAAQ,IAAML,EAAa,WAAaA,EAAa,IAAMA,EAAa,KAE3FS,EAAmB,GAAIJ,QAAQ,IAAML,EAAa,iBAAmBA,EAAa,OAAQ,KAE1FU,EAAU,GAAIL,QAAQF,GACtBQ,EAAc,GAAIN,QAAQ,IAAMJ,EAAa,KAE7CW,GACCC,GAAM,GAAIR,QAAQ,MAAQJ,EAAa,KACvCa,MAAS,GAAIT,QAAQ,QAAUJ,EAAa,KAC5Cc,IAAO,GAAIV,QAAQ,KAAOJ,EAAa,SACvCe,KAAQ,GAAIX,QAAQ,IAAMH,GAC1Be,OAAU,GAAIZ,QAAQ,IAAMF,GAC5Be,MAAS,GAAIb,QAAQ,yDAA2DL,EAC/E,+BAAiCA,EAAa,cAAgBA,EAC9D,aAAeA,EAAa,SAAU,KACvCmB,KAAQ,GAAId,QAAQ,OAASN,EAAW,KAAM,KAG9CqB,aAAgB,GAAIf,QAAQ,IAAML,EAAa,mDAC9CA,EAAa,mBAAqBA,EAAa,mBAAoB,MAGrEqB,EAAU,sCACVC,EAAU,SAEVC,EAAU,yBAGVC,EAAa,mCAEbC,EAAW,OACXC,GAAU,QAGVC,GAAY,GAAItB,QAAQ,qBAAuBL,EAAa,MAAQA,EAAa,OAAQ,MACzF4B,GAAY,SAAUC,EAAGC,EAASC,GACjC,GAAIC,GAAO,KAAOF,EAAU,KAI5B,OAAOE,KAASA,GAAQD,EACvBD,EACO,EAAPE,EAECC,OAAOC,aAAcF,EAAO,OAE5BC,OAAOC,aAAcF,GAAQ,GAAK,MAAe,KAAPA,EAAe,QAO5DG,GAAgB,WACfrE,IAIF,KACC0B,EAAK4C,MACH/C,EAAMI,EAAM4C,KAAM7D,EAAa8D,YAChC9D,EAAa8D,YAIdjD,EAAKb,EAAa8D,WAAWxC,QAASyC,SACrC,MAAQC,IACThD,GAAS4C,MAAO/C,EAAIS,OAGnB,SAAU2C,EAAQC,GACjBnD,EAAY6C,MAAOK,EAAQhD,EAAM4C,KAAKK,KAKvC,SAAUD,EAAQC,GACjB,GAAIC,GAAIF,EAAO3C,OACd3C,EAAI,CAEL,OAASsF,EAAOE,KAAOD,EAAIvF,MAC3BsF,EAAO3C,OAAS6C,EAAI,IAKvB,QAASC,IAAQC,EAAUC,EAASC,EAASC,GAC5C,GAAIC,GAAG9F,EAAGyC,EAAMsD,EAAKC,EAAWC,EAAOC,EAAQC,EAC9CC,EAAaT,GAAWA,EAAQU,cAGhCjB,EAAWO,EAAUA,EAAQP,SAAW,CAKzC,IAHAQ,EAAUA,MAGe,gBAAbF,KAA0BA,GACxB,IAAbN,GAA+B,IAAbA,GAA+B,KAAbA,EAEpC,MAAOQ,EAIR,KAAMC,KAEEF,EAAUA,EAAQU,eAAiBV,EAAUtE,KAAmBT,GACtED,EAAagF,GAEdA,EAAUA,GAAW/E,EAEhBE,GAAiB,CAIrB,GAAkB,KAAbsE,IAAoBa,EAAQ5B,EAAWiC,KAAMZ,IAGjD,GAAMI,EAAIG,EAAM,IAGf,GAAkB,IAAbb,EAAiB,CACrB,KAAM3C,EAAOkD,EAAQY,eAAgBT,IAUpC,MAAOF,EALP,IAAKnD,EAAK+D,KAAOV,EAEhB,MADAF,GAAQvD,KAAMI,GACPmD,MAYT,IAAKQ,IAAe3D,EAAO2D,EAAWG,eAAgBT,KACrD5E,EAAUyE,EAASlD,IACnBA,EAAK+D,KAAOV,EAGZ,MADAF,GAAQvD,KAAMI,GACPmD,MAKH,CAAA,GAAKK,EAAM,GAEjB,MADA5D,GAAK4C,MAAOW,EAASD,EAAQc,qBAAsBf,IAC5CE,CAGD,KAAME,EAAIG,EAAM,KAAOhG,EAAQyG,wBACrCf,EAAQe,uBAGR,MADArE,GAAK4C,MAAOW,EAASD,EAAQe,uBAAwBZ,IAC9CF,EAKT,GAAK3F,EAAQ0G,MACXhF,EAAe+D,EAAW,QACzB3E,IAAcA,EAAU6F,KAAMlB,IAAc,CAE9C,GAAkB,IAAbN,EACJgB,EAAaT,EACbQ,EAAcT,MAMR,IAAwC,WAAnCC,EAAQkB,SAASC,cAA6B,EAGnDf,EAAMJ,EAAQoB,aAAc,OACjChB,EAAMA,EAAIiB,QAASzC,GAAS,QAE5BoB,EAAQsB,aAAc,KAAOlB,EAAM5E,GAIpC+E,EAAS7F,EAAUqF,GACnB1F,EAAIkG,EAAOvD,OACXqD,EAAYxC,EAAYoD,KAAMb,GAAQ,IAAMA,EAAM,QAAUA,EAAM,IAClE,OAAQ/F,IACPkG,EAAOlG,GAAKgG,EAAY,IAAMkB,GAAYhB,EAAOlG,GAElDmG,GAAcD,EAAOiB,KAAM,KAG3Bf,EAAa9B,EAASsC,KAAMlB,IAAc0B,GAAazB,EAAQ0B,aAC9D1B,EAGF,GAAKQ,EACJ,IAIC,MAHA9D,GAAK4C,MAAOW,EACXQ,EAAWkB,iBAAkBnB,IAEvBP,EACN,MAAQ2B,IACR,QACIxB,IAAQ5E,GACZwE,EAAQ6B,gBAAiB,QAS/B,MAAOjH,GAAQmF,EAASsB,QAAS7D,EAAO,MAAQwC,EAASC,EAASC,GASnE,QAASpE,MACR,GAAIgG,KAEJ,SAASC,GAAOC,EAAKC,GAMpB,MAJKH,GAAKpF,KAAMsF,EAAM,KAAQzH,EAAK2H,mBAE3BH,GAAOD,EAAKK,SAEZJ,EAAOC,EAAM,KAAQC,EAE9B,MAAOF,GAOR,QAASK,IAAcC,GAEtB,MADAA,GAAI7G,IAAY,EACT6G,EAOR,QAASC,IAAQD,GAChB,GAAIE,GAAMtH,EAASuH,cAAc,MAEjC,KACC,QAASH,EAAIE,GACZ,MAAO7C,GACR,OAAO,EACN,QAEI6C,EAAIb,YACRa,EAAIb,WAAWe,YAAaF,GAG7BA,EAAM,MASR,QAASG,IAAWC,EAAOC,GAC1B,GAAIrG,GAAMoG,EAAME,MAAM,KACrBxI,EAAIkC,EAAIS,MAET,OAAQ3C,IACPE,EAAKuI,WAAYvG,EAAIlC,IAAOuI,EAU9B,QAASG,IAAc7G,EAAGC,GACzB,GAAI6G,GAAM7G,GAAKD,EACd+G,EAAOD,GAAsB,IAAf9G,EAAEuD,UAAiC,IAAftD,EAAEsD,YAChCtD,EAAE+G,aAAe9G,KACjBF,EAAEgH,aAAe9G,EAGtB,IAAK6G,EACJ,MAAOA,EAIR,IAAKD,EACJ,MAASA,EAAMA,EAAIG,YAClB,GAAKH,IAAQ7G,EACZ,MAAO,EAKV,OAAOD,GAAI,EAAI,GAOhB,QAASkH,IAAmBC,GAC3B,MAAO,UAAUvG,GAChB,GAAIwG,GAAOxG,EAAKoE,SAASC,aACzB,OAAgB,UAATmC,GAAoBxG,EAAKuG,OAASA,GAQ3C,QAASE,IAAoBF,GAC5B,MAAO,UAAUvG,GAChB,GAAIwG,GAAOxG,EAAKoE,SAASC,aACzB,QAAiB,UAATmC,GAA6B,WAATA,IAAsBxG,EAAKuG,OAASA,GAQlE,QAASG,IAAwBnB,GAChC,MAAOD,IAAa,SAAUqB,GAE7B,MADAA,IAAYA,EACLrB,GAAa,SAAUlC,EAAM5E,GACnC,GAAIuE,GACH6D,EAAerB,KAAQnC,EAAKlD,OAAQyG,GACpCpJ,EAAIqJ,EAAa1G,MAGlB,OAAQ3C,IACF6F,EAAOL,EAAI6D,EAAarJ,MAC5B6F,EAAKL,KAAOvE,EAAQuE,GAAKK,EAAKL,SAYnC,QAAS4B,IAAazB,GACrB,MAAOA,IAAmD,mBAAjCA,GAAQc,sBAAwCd,EAI1E1F,EAAUwF,GAAOxF,WAOjBG,EAAQqF,GAAOrF,MAAQ,SAAUqC,GAGhC,GAAI6G,GAAkB7G,IAASA,EAAK4D,eAAiB5D,GAAM6G,eAC3D,OAAOA,GAA+C,SAA7BA,EAAgBzC,UAAsB,GAQhElG,EAAc8E,GAAO9E,YAAc,SAAU4I,GAC5C,GAAIC,GAAYC,EACfC,EAAMH,EAAOA,EAAKlD,eAAiBkD,EAAOlI,CAG3C,OAAKqI,KAAQ9I,GAA6B,IAAjB8I,EAAItE,UAAmBsE,EAAIJ,iBAKpD1I,EAAW8I,EACX7I,EAAUD,EAAS0I,gBACnBxI,GAAkBV,EAAOQ,IAInB6I,EAAS7I,EAAS+I,cAAgBF,EAAOG,MAAQH,IAEjDA,EAAOI,iBACXJ,EAAOI,iBAAkB,SAAU7E,IAAe,GAGvCyE,EAAOK,aAClBL,EAAOK,YAAa,WAAY9E,KAUlC/E,EAAQ8C,WAAakF,GAAO,SAAUC,GAErC,MADAA,GAAI6B,UAAY,KACR7B,EAAInB,aAAa,eAO1B9G,EAAQwG,qBAAuBwB,GAAO,SAAUC,GAE/C,MADAA,GAAI8B,YAAapJ,EAASqJ,cAAc,MAChC/B,EAAIzB,qBAAqB,KAAK9D,SAIvC1C,EAAQyG,uBAAyBtC,EAAQwC,KAAMhG,EAAS8F,wBAMxDzG,EAAQiK,QAAUjC,GAAO,SAAUC,GAElC,MADArH,GAAQmJ,YAAa9B,GAAM1B,GAAKrF,GACxBP,EAASuJ,oBAAsBvJ,EAASuJ,kBAAmBhJ,GAAUwB,SAIzE1C,EAAQiK,SACZhK,EAAKkK,KAAS,GAAI,SAAU5D,EAAIb,GAC/B,GAAuC,mBAA3BA,GAAQY,gBAAkCzF,EAAiB,CACtE,GAAIgF,GAAIH,EAAQY,eAAgBC,EAChC,OAAOV,IAAMA,QAGf5F,EAAKmK,OAAW,GAAI,SAAU7D,GAC7B,GAAI8D,GAAS9D,EAAGQ,QAASxC,GAAWC,GACpC,OAAO,UAAUhC,GAChB,MAAOA,GAAKsE,aAAa,QAAUuD,YAM9BpK,GAAKkK,KAAS,GAErBlK,EAAKmK,OAAW,GAAK,SAAU7D,GAC9B,GAAI8D,GAAS9D,EAAGQ,QAASxC,GAAWC,GACpC,OAAO,UAAUhC,GAChB,GAAI8G,GAAwC,mBAA1B9G,GAAK8H,kBACtB9H,EAAK8H,iBAAiB,KACvB,OAAOhB,IAAQA,EAAK3B,QAAU0C,KAMjCpK,EAAKkK,KAAU,IAAInK,EAAQwG,qBAC1B,SAAU+D,EAAK7E,GACd,MAA6C,mBAAjCA,GAAQc,qBACZd,EAAQc,qBAAsB+D,GAG1BvK,EAAQ0G,IACZhB,EAAQ2B,iBAAkBkD,GAD3B,QAKR,SAAUA,EAAK7E,GACd,GAAIlD,GACHgI,KACAzK,EAAI,EAEJ4F,EAAUD,EAAQc,qBAAsB+D,EAGzC,IAAa,MAARA,EAAc,CAClB,MAAS/H,EAAOmD,EAAQ5F,KACA,IAAlByC,EAAK2C,UACTqF,EAAIpI,KAAMI,EAIZ,OAAOgI,GAER,MAAO7E,IAIT1F,EAAKkK,KAAY,MAAInK,EAAQyG,wBAA0B,SAAUqD,EAAWpE,GAC3E,MAA+C,mBAAnCA,GAAQe,wBAA0C5F,EACtD6E,EAAQe,uBAAwBqD,GADxC,QAWD/I,KAOAD,MAEMd,EAAQ0G,IAAMvC,EAAQwC,KAAMhG,EAAS0G,qBAG1CW,GAAO,SAAUC,GAMhBrH,EAAQmJ,YAAa9B,GAAMwC,UAAY,UAAYvJ,EAAU,qBAC3CA,EAAU,kEAOvB+G,EAAIZ,iBAAiB,wBAAwB3E,QACjD5B,EAAUsB,KAAM,SAAWQ,EAAa,gBAKnCqF,EAAIZ,iBAAiB,cAAc3E,QACxC5B,EAAUsB,KAAM,MAAQQ,EAAa,aAAeD,EAAW,KAI1DsF,EAAIZ,iBAAkB,QAAUnG,EAAU,MAAOwB,QACtD5B,EAAUsB,KAAK,MAMV6F,EAAIZ,iBAAiB,YAAY3E,QACtC5B,EAAUsB,KAAK,YAMV6F,EAAIZ,iBAAkB,KAAOnG,EAAU,MAAOwB,QACnD5B,EAAUsB,KAAK,cAIjB4F,GAAO,SAAUC,GAGhB,GAAIyC,GAAQ/J,EAASuH,cAAc,QACnCwC,GAAM1D,aAAc,OAAQ,UAC5BiB,EAAI8B,YAAaW,GAAQ1D,aAAc,OAAQ,KAI1CiB,EAAIZ,iBAAiB,YAAY3E,QACrC5B,EAAUsB,KAAM,OAASQ,EAAa,eAKjCqF,EAAIZ,iBAAiB,YAAY3E,QACtC5B,EAAUsB,KAAM,WAAY,aAI7B6F,EAAIZ,iBAAiB,QACrBvG,EAAUsB,KAAK,YAIXpC,EAAQ2K,gBAAkBxG,EAAQwC,KAAO3F,EAAUJ,EAAQI,SAChEJ,EAAQgK,uBACRhK,EAAQiK,oBACRjK,EAAQkK,kBACRlK,EAAQmK,qBAER/C,GAAO,SAAUC,GAGhBjI,EAAQgL,kBAAoBhK,EAAQiE,KAAMgD,EAAK,OAI/CjH,EAAQiE,KAAMgD,EAAK,aACnBlH,EAAcqB,KAAM,KAAMW,KAI5BjC,EAAYA,EAAU4B,QAAU,GAAIO,QAAQnC,EAAUoG,KAAK,MAC3DnG,EAAgBA,EAAc2B,QAAU,GAAIO,QAAQlC,EAAcmG,KAAK,MAIvEqC,EAAapF,EAAQwC,KAAM/F,EAAQqK,yBAKnChK,EAAWsI,GAAcpF,EAAQwC,KAAM/F,EAAQK,UAC9C,SAAUW,EAAGC,GACZ,GAAIqJ,GAAuB,IAAftJ,EAAEuD,SAAiBvD,EAAEyH,gBAAkBzH,EAClDuJ,EAAMtJ,GAAKA,EAAEuF,UACd,OAAOxF,KAAMuJ,MAAWA,GAAwB,IAAjBA,EAAIhG,YAClC+F,EAAMjK,SACLiK,EAAMjK,SAAUkK,GAChBvJ,EAAEqJ,yBAA8D,GAAnCrJ,EAAEqJ,wBAAyBE,MAG3D,SAAUvJ,EAAGC,GACZ,GAAKA,EACJ,MAASA,EAAIA,EAAEuF,WACd,GAAKvF,IAAMD,EACV,OAAO,CAIV,QAAO,GAOTD,EAAY4H,EACZ,SAAU3H,EAAGC,GAGZ,GAAKD,IAAMC,EAEV,MADApB,IAAe,EACR,CAIR,IAAI2K,IAAWxJ,EAAEqJ,yBAA2BpJ,EAAEoJ,uBAC9C,OAAKG,GACGA,GAIRA,GAAYxJ,EAAEwE,eAAiBxE,MAAUC,EAAEuE,eAAiBvE,GAC3DD,EAAEqJ,wBAAyBpJ,GAG3B,EAGc,EAAVuJ,IACFpL,EAAQqL,cAAgBxJ,EAAEoJ,wBAAyBrJ,KAAQwJ,EAGxDxJ,IAAMjB,GAAYiB,EAAEwE,gBAAkBhF,GAAgBH,EAASG,EAAcQ,GAC1E,GAEHC,IAAMlB,GAAYkB,EAAEuE,gBAAkBhF,GAAgBH,EAASG,EAAcS,GAC1E,EAIDrB,EACJ8B,EAAS9B,EAAWoB,GAAMU,EAAS9B,EAAWqB,GAChD,EAGe,EAAVuJ,EAAc,GAAK,IAE3B,SAAUxJ,EAAGC,GAEZ,GAAKD,IAAMC,EAEV,MADApB,IAAe,EACR,CAGR,IAAIiI,GACH3I,EAAI,EACJuL,EAAM1J,EAAEwF,WACR+D,EAAMtJ,EAAEuF,WACRmE,GAAO3J,GACP4J,GAAO3J,EAGR,KAAMyJ,IAAQH,EACb,MAAOvJ,KAAMjB,EAAW,GACvBkB,IAAMlB,EAAW,EACjB2K,EAAM,GACNH,EAAM,EACN3K,EACE8B,EAAS9B,EAAWoB,GAAMU,EAAS9B,EAAWqB,GAChD,CAGK,IAAKyJ,IAAQH,EACnB,MAAO1C,IAAc7G,EAAGC,EAIzB6G,GAAM9G,CACN,OAAS8G,EAAMA,EAAItB,WAClBmE,EAAGE,QAAS/C,EAEbA,GAAM7G,CACN,OAAS6G,EAAMA,EAAItB,WAClBoE,EAAGC,QAAS/C,EAIb,OAAQ6C,EAAGxL,KAAOyL,EAAGzL,GACpBA,GAGD,OAAOA,GAEN0I,GAAc8C,EAAGxL,GAAIyL,EAAGzL,IAGxBwL,EAAGxL,KAAOqB,EAAe,GACzBoK,EAAGzL,KAAOqB,EAAe,EACzB,GAGKT,GArWCA,GAwWT6E,GAAOxE,QAAU,SAAU0K,EAAMC,GAChC,MAAOnG,IAAQkG,EAAM,KAAM,KAAMC,IAGlCnG,GAAOmF,gBAAkB,SAAUnI,EAAMkJ,GASxC,IAPOlJ,EAAK4D,eAAiB5D,KAAW7B,GACvCD,EAAa8B,GAIdkJ,EAAOA,EAAK3E,QAAS1D,EAAkB,UAElCrD,EAAQ2K,iBAAmB9J,IAC9Ba,EAAegK,EAAO,QACpB3K,IAAkBA,EAAc4F,KAAM+E,OACtC5K,IAAkBA,EAAU6F,KAAM+E,IAErC,IACC,GAAIE,GAAM5K,EAAQiE,KAAMzC,EAAMkJ,EAG9B,IAAKE,GAAO5L,EAAQgL,mBAGlBxI,EAAK7B,UAAuC,KAA3B6B,EAAK7B,SAASwE,SAChC,MAAOyG,GAEP,MAAOxG,IAGV,MAAOI,IAAQkG,EAAM/K,EAAU,MAAQ6B,IAASE,OAAS,GAG1D8C,GAAOvE,SAAW,SAAUyE,EAASlD,GAKpC,OAHOkD,EAAQU,eAAiBV,KAAc/E,GAC7CD,EAAagF,GAEPzE,EAAUyE,EAASlD,IAG3BgD,GAAOqG,KAAO,SAAUrJ,EAAMwG,IAEtBxG,EAAK4D,eAAiB5D,KAAW7B,GACvCD,EAAa8B,EAGd,IAAIuF,GAAK9H,EAAKuI,WAAYQ,EAAKnC,eAE9BiF,EAAM/D,GAAMhG,EAAOkD,KAAMhF,EAAKuI,WAAYQ,EAAKnC,eAC9CkB,EAAIvF,EAAMwG,GAAOnI,GACjBkL,MAEF,OAAeA,UAARD,EACNA,EACA9L,EAAQ8C,aAAejC,EACtB2B,EAAKsE,aAAckC,IAClB8C,EAAMtJ,EAAK8H,iBAAiBtB,KAAU8C,EAAIE,UAC1CF,EAAInE,MACJ,MAGJnC,GAAOyG,MAAQ,SAAUC,GACxB,KAAM,IAAIC,OAAO,0CAA4CD,IAO9D1G,GAAO4G,WAAa,SAAUzG,GAC7B,GAAInD,GACH6J,KACA9G,EAAI,EACJxF,EAAI,CAOL,IAJAU,GAAgBT,EAAQsM,iBACxB9L,GAAaR,EAAQuM,YAAc5G,EAAQtD,MAAO,GAClDsD,EAAQ6G,KAAM7K,GAETlB,EAAe,CACnB,MAAS+B,EAAOmD,EAAQ5F,KAClByC,IAASmD,EAAS5F,KACtBwF,EAAI8G,EAAWjK,KAAMrC,GAGvB,OAAQwF,IACPI,EAAQ8G,OAAQJ,EAAY9G,GAAK,GAQnC,MAFA/E,GAAY,KAELmF,GAORzF,EAAUsF,GAAOtF,QAAU,SAAUsC,GACpC,GAAI8G,GACHsC,EAAM,GACN7L,EAAI,EACJoF,EAAW3C,EAAK2C,QAEjB,IAAMA,GAMC,GAAkB,IAAbA,GAA+B,IAAbA,GAA+B,KAAbA,EAAkB,CAGjE,GAAiC,gBAArB3C,GAAKkK,YAChB,MAAOlK,GAAKkK,WAGZ,KAAMlK,EAAOA,EAAKmK,WAAYnK,EAAMA,EAAOA,EAAKqG,YAC/C+C,GAAO1L,EAASsC,OAGZ,IAAkB,IAAb2C,GAA+B,IAAbA,EAC7B,MAAO3C,GAAKoK,cAhBZ,OAAStD,EAAO9G,EAAKzC,KAEpB6L,GAAO1L,EAASoJ,EAkBlB,OAAOsC,IAGR3L,EAAOuF,GAAOqH,WAGbjF,YAAa,GAEbkF,aAAchF,GAEd9B,MAAOxC,EAEPgF,cAEA2B,QAEA4C,UACCC,KAAOC,IAAK,aAAcC,OAAO,GACjCC,KAAOF,IAAK,cACZG,KAAOH,IAAK,kBAAmBC,OAAO,GACtCG,KAAOJ,IAAK,oBAGbK,WACC1J,KAAQ,SAAUoC,GAUjB,MATAA,GAAM,GAAKA,EAAM,GAAGe,QAASxC,GAAWC,IAGxCwB,EAAM,IAAOA,EAAM,IAAMA,EAAM,IAAMA,EAAM,IAAM,IAAKe,QAASxC,GAAWC,IAExD,OAAbwB,EAAM,KACVA,EAAM,GAAK,IAAMA,EAAM,GAAK,KAGtBA,EAAM3D,MAAO,EAAG,IAGxByB,MAAS,SAAUkC,GA6BlB,MAlBAA,GAAM,GAAKA,EAAM,GAAGa,cAEY,QAA3Bb,EAAM,GAAG3D,MAAO,EAAG,IAEjB2D,EAAM,IACXR,GAAOyG,MAAOjG,EAAM,IAKrBA,EAAM,KAAQA,EAAM,GAAKA,EAAM,IAAMA,EAAM,IAAM,GAAK,GAAmB,SAAbA,EAAM,IAA8B,QAAbA,EAAM,KACzFA,EAAM,KAAUA,EAAM,GAAKA,EAAM,IAAqB,QAAbA,EAAM,KAGpCA,EAAM,IACjBR,GAAOyG,MAAOjG,EAAM,IAGdA,GAGRnC,OAAU,SAAUmC,GACnB,GAAIuH,GACHC,GAAYxH,EAAM,IAAMA,EAAM,EAE/B,OAAKxC,GAAiB,MAAEmD,KAAMX,EAAM,IAC5B,MAIHA,EAAM,GACVA,EAAM,GAAKA,EAAM,IAAMA,EAAM,IAAM,GAGxBwH,GAAYlK,EAAQqD,KAAM6G,KAEpCD,EAASnN,EAAUoN,GAAU,MAE7BD,EAASC,EAASlL,QAAS,IAAKkL,EAAS9K,OAAS6K,GAAWC,EAAS9K,UAGvEsD,EAAM,GAAKA,EAAM,GAAG3D,MAAO,EAAGkL,GAC9BvH,EAAM,GAAKwH,EAASnL,MAAO,EAAGkL,IAIxBvH,EAAM3D,MAAO,EAAG,MAIzB+H,QAECzG,IAAO,SAAU8J,GAChB,GAAI7G,GAAW6G,EAAiB1G,QAASxC,GAAWC,IAAYqC,aAChE,OAA4B,MAArB4G,EACN,WAAa,OAAO,GACpB,SAAUjL,GACT,MAAOA,GAAKoE,UAAYpE,EAAKoE,SAASC,gBAAkBD,IAI3DlD,MAAS,SAAUoG,GAClB,GAAI4D,GAAUnM,EAAYuI,EAAY,IAEtC,OAAO4D,KACLA,EAAU,GAAIzK,QAAQ,MAAQL,EAAa,IAAMkH,EAAY,IAAMlH,EAAa,SACjFrB,EAAYuI,EAAW,SAAUtH,GAChC,MAAOkL,GAAQ/G,KAAgC,gBAAnBnE,GAAKsH,WAA0BtH,EAAKsH,WAA0C,mBAAtBtH,GAAKsE,cAAgCtE,EAAKsE,aAAa,UAAY,OAI1JlD,KAAQ,SAAUoF,EAAM2E,EAAUC,GACjC,MAAO,UAAUpL,GAChB,GAAIqL,GAASrI,GAAOqG,KAAMrJ,EAAMwG,EAEhC,OAAe,OAAV6E,EACgB,OAAbF,EAEFA,GAINE,GAAU,GAEU,MAAbF,EAAmBE,IAAWD,EACvB,OAAbD,EAAoBE,IAAWD,EAClB,OAAbD,EAAoBC,GAAqC,IAA5BC,EAAOvL,QAASsL,GAChC,OAAbD,EAAoBC,GAASC,EAAOvL,QAASsL,GAAU,GAC1C,OAAbD,EAAoBC,GAASC,EAAOxL,OAAQuL,EAAMlL,UAAakL,EAClD,OAAbD,GAAsB,IAAME,EAAO9G,QAAS/D,EAAa,KAAQ,KAAMV,QAASsL,GAAU,GAC7E,OAAbD,EAAoBE,IAAWD,GAASC,EAAOxL,MAAO,EAAGuL,EAAMlL,OAAS,KAAQkL,EAAQ,KACxF,IAZO,IAgBV9J,MAAS,SAAUiF,EAAM+E,EAAM3E,EAAU+D,EAAOa,GAC/C,GAAIC,GAAgC,QAAvBjF,EAAK1G,MAAO,EAAG,GAC3B4L,EAA+B,SAArBlF,EAAK1G,MAAO,IACtB6L,EAAkB,YAATJ,CAEV,OAAiB,KAAVZ,GAAwB,IAATa,EAGrB,SAAUvL,GACT,QAASA,EAAK4E,YAGf,SAAU5E,EAAMkD,EAASyI,GACxB,GAAI1G,GAAO2G,EAAaC,EAAY/E,EAAMgF,EAAWC,EACpDtB,EAAMe,IAAWC,EAAU,cAAgB,kBAC3CzE,EAAShH,EAAK4E,WACd4B,EAAOkF,GAAU1L,EAAKoE,SAASC,cAC/B2H,GAAYL,IAAQD,EACpBvF,GAAO,CAER,IAAKa,EAAS,CAGb,GAAKwE,EAAS,CACb,MAAQf,EAAM,CACb3D,EAAO9G,CACP,OAAS8G,EAAOA,EAAM2D,GACrB,GAAKiB,EACJ5E,EAAK1C,SAASC,gBAAkBmC,EACd,IAAlBM,EAAKnE,SAEL,OAAO,CAIToJ,GAAQtB,EAAe,SAATlE,IAAoBwF,GAAS,cAE5C,OAAO,EAMR,GAHAA,GAAUN,EAAUzE,EAAOmD,WAAanD,EAAOiF,WAG1CR,GAAWO,EAAW,CAK1BlF,EAAOE,EACP6E,EAAa/E,EAAMpI,KAAcoI,EAAMpI,OAIvCkN,EAAcC,EAAY/E,EAAKoF,YAC7BL,EAAY/E,EAAKoF,cAEnBjH,EAAQ2G,EAAarF,OACrBuF,EAAY7G,EAAO,KAAQpG,GAAWoG,EAAO,GAC7CkB,EAAO2F,GAAa7G,EAAO,GAC3B6B,EAAOgF,GAAa9E,EAAOtE,WAAYoJ,EAEvC,OAAShF,IAASgF,GAAahF,GAAQA,EAAM2D,KAG3CtE,EAAO2F,EAAY,IAAMC,EAAMrM,MAGhC,GAAuB,IAAlBoH,EAAKnE,YAAoBwD,GAAQW,IAAS9G,EAAO,CACrD4L,EAAarF,IAAW1H,EAASiN,EAAW3F,EAC5C,YAuBF,IAjBK6F,IAEJlF,EAAO9G,EACP6L,EAAa/E,EAAMpI,KAAcoI,EAAMpI,OAIvCkN,EAAcC,EAAY/E,EAAKoF,YAC7BL,EAAY/E,EAAKoF,cAEnBjH,EAAQ2G,EAAarF,OACrBuF,EAAY7G,EAAO,KAAQpG,GAAWoG,EAAO,GAC7CkB,EAAO2F,GAKH3F,KAAS,EAEb,MAASW,IAASgF,GAAahF,GAAQA,EAAM2D,KAC3CtE,EAAO2F,EAAY,IAAMC,EAAMrM,MAEhC,IAAOgM,EACN5E,EAAK1C,SAASC,gBAAkBmC,EACd,IAAlBM,EAAKnE,aACHwD,IAGG6F,IACJH,EAAa/E,EAAMpI,KAAcoI,EAAMpI,OAIvCkN,EAAcC,EAAY/E,EAAKoF,YAC7BL,EAAY/E,EAAKoF,cAEnBN,EAAarF,IAAW1H,EAASsH,IAG7BW,IAAS9G,GACb,KASL,OADAmG,IAAQoF,EACDpF,IAASuE,GAAWvE,EAAOuE,IAAU,GAAKvE,EAAOuE,GAAS,KAKrErJ,OAAU,SAAU8K,EAAQxF,GAK3B,GAAIyF,GACH7G,EAAK9H,EAAK8C,QAAS4L,IAAY1O,EAAK4O,WAAYF,EAAO9H,gBACtDrB,GAAOyG,MAAO,uBAAyB0C,EAKzC,OAAK5G,GAAI7G,GACD6G,EAAIoB,GAIPpB,EAAGrF,OAAS,GAChBkM,GAASD,EAAQA,EAAQ,GAAIxF,GACtBlJ,EAAK4O,WAAW7M,eAAgB2M,EAAO9H,eAC7CiB,GAAa,SAAUlC,EAAM5E,GAC5B,GAAI8N,GACHC,EAAUhH,EAAInC,EAAMuD,GACpBpJ,EAAIgP,EAAQrM,MACb,OAAQ3C,IACP+O,EAAMxM,EAASsD,EAAMmJ,EAAQhP,IAC7B6F,EAAMkJ,KAAW9N,EAAS8N,GAAQC,EAAQhP,MAG5C,SAAUyC,GACT,MAAOuF,GAAIvF,EAAM,EAAGoM,KAIhB7G,IAIThF,SAECiM,IAAOlH,GAAa,SAAUrC,GAI7B,GAAIiF,MACH/E,KACAsJ,EAAU5O,EAASoF,EAASsB,QAAS7D,EAAO,MAE7C,OAAO+L,GAAS/N,GACf4G,GAAa,SAAUlC,EAAM5E,EAAS0E,EAASyI,GAC9C,GAAI3L,GACH0M,EAAYD,EAASrJ,EAAM,KAAMuI,MACjCpO,EAAI6F,EAAKlD,MAGV,OAAQ3C,KACDyC,EAAO0M,EAAUnP,MACtB6F,EAAK7F,KAAOiB,EAAQjB,GAAKyC,MAI5B,SAAUA,EAAMkD,EAASyI,GAKxB,MAJAzD,GAAM,GAAKlI,EACXyM,EAASvE,EAAO,KAAMyD,EAAKxI,GAE3B+E,EAAM,GAAK,MACH/E,EAAQzD,SAInBiN,IAAOrH,GAAa,SAAUrC,GAC7B,MAAO,UAAUjD,GAChB,MAAOgD,IAAQC,EAAUjD,GAAOE,OAAS,KAI3CzB,SAAY6G,GAAa,SAAUsH,GAElC,MADAA,GAAOA,EAAKrI,QAASxC,GAAWC,IACzB,SAAUhC,GAChB,OAASA,EAAKkK,aAAelK,EAAK6M,WAAanP,EAASsC,IAASF,QAAS8M,GAAS,MAWrFE,KAAQxH,GAAc,SAAUwH,GAM/B,MAJM/L,GAAYoD,KAAK2I,GAAQ,KAC9B9J,GAAOyG,MAAO,qBAAuBqD,GAEtCA,EAAOA,EAAKvI,QAASxC,GAAWC,IAAYqC,cACrC,SAAUrE,GAChB,GAAI+M,EACJ,GACC,IAAMA,EAAW1O,EAChB2B,EAAK8M,KACL9M,EAAKsE,aAAa,aAAetE,EAAKsE,aAAa,QAGnD,MADAyI,GAAWA,EAAS1I,cACb0I,IAAaD,GAA2C,IAAnCC,EAASjN,QAASgN,EAAO,YAE5C9M,EAAOA,EAAK4E,aAAiC,IAAlB5E,EAAK2C,SAC3C,QAAO,KAKTE,OAAU,SAAU7C,GACnB,GAAIgN,GAAO1P,EAAO2P,UAAY3P,EAAO2P,SAASD,IAC9C,OAAOA,IAAQA,EAAKnN,MAAO,KAAQG,EAAK+D,IAGzCmJ,KAAQ,SAAUlN,GACjB,MAAOA,KAAS5B,GAGjB+O,MAAS,SAAUnN,GAClB,MAAOA,KAAS7B,EAASiP,iBAAmBjP,EAASkP,UAAYlP,EAASkP,gBAAkBrN,EAAKuG,MAAQvG,EAAKsN,OAAStN,EAAKuN,WAI7HC,QAAW,SAAUxN,GACpB,MAAOA,GAAKyN,YAAa,GAG1BA,SAAY,SAAUzN,GACrB,MAAOA,GAAKyN,YAAa,GAG1BC,QAAW,SAAU1N,GAGpB,GAAIoE,GAAWpE,EAAKoE,SAASC,aAC7B,OAAqB,UAAbD,KAA0BpE,EAAK0N,SAA0B,WAAbtJ,KAA2BpE,EAAK2N,UAGrFA,SAAY,SAAU3N,GAOrB,MAJKA,GAAK4E,YACT5E,EAAK4E,WAAWgJ,cAGV5N,EAAK2N,YAAa,GAI1BE,MAAS,SAAU7N,GAKlB,IAAMA,EAAOA,EAAKmK,WAAYnK,EAAMA,EAAOA,EAAKqG,YAC/C,GAAKrG,EAAK2C,SAAW,EACpB,OAAO,CAGT,QAAO,GAGRqE,OAAU,SAAUhH,GACnB,OAAQvC,EAAK8C,QAAe,MAAGP,IAIhC8N,OAAU,SAAU9N,GACnB,MAAO0B,GAAQyC,KAAMnE,EAAKoE,WAG3B8D,MAAS,SAAUlI,GAClB,MAAOyB,GAAQ0C,KAAMnE,EAAKoE,WAG3B2J,OAAU,SAAU/N,GACnB,GAAIwG,GAAOxG,EAAKoE,SAASC,aACzB,OAAgB,UAATmC,GAAkC,WAAdxG,EAAKuG,MAA8B,WAATC,GAGtDoG,KAAQ,SAAU5M,GACjB,GAAIqJ,EACJ,OAAuC,UAAhCrJ,EAAKoE,SAASC,eACN,SAAdrE,EAAKuG,OAImC,OAArC8C,EAAOrJ,EAAKsE,aAAa,UAA2C,SAAvB+E,EAAKhF,gBAIvDqG,MAAShE,GAAuB,WAC/B,OAAS,KAGV6E,KAAQ7E,GAAuB,SAAUE,EAAc1G,GACtD,OAASA,EAAS,KAGnB8N,GAAMtH,GAAuB,SAAUE,EAAc1G,EAAQyG,GAC5D,OAAoB,EAAXA,EAAeA,EAAWzG,EAASyG,KAG7CsH,KAAQvH,GAAuB,SAAUE,EAAc1G,GAEtD,IADA,GAAI3C,GAAI,EACI2C,EAAJ3C,EAAYA,GAAK,EACxBqJ,EAAahH,KAAMrC,EAEpB,OAAOqJ,KAGRsH,IAAOxH,GAAuB,SAAUE,EAAc1G,GAErD,IADA,GAAI3C,GAAI,EACI2C,EAAJ3C,EAAYA,GAAK,EACxBqJ,EAAahH,KAAMrC,EAEpB,OAAOqJ,KAGRuH,GAAMzH,GAAuB,SAAUE,EAAc1G,EAAQyG,GAE5D,IADA,GAAIpJ,GAAe,EAAXoJ,EAAeA,EAAWzG,EAASyG,IACjCpJ,GAAK,GACdqJ,EAAahH,KAAMrC,EAEpB,OAAOqJ,KAGRwH,GAAM1H,GAAuB,SAAUE,EAAc1G,EAAQyG,GAE5D,IADA,GAAIpJ,GAAe,EAAXoJ,EAAeA,EAAWzG,EAASyG,IACjCpJ,EAAI2C,GACb0G,EAAahH,KAAMrC,EAEpB,OAAOqJ,OAKVnJ,EAAK8C,QAAa,IAAI9C,EAAK8C,QAAY,EAGvC,KAAMhD,KAAO8Q,OAAO,EAAMC,UAAU,EAAMC,MAAM,EAAMC,UAAU,EAAMC,OAAO,GAC5EhR,EAAK8C,QAAShD,GAAM+I,GAAmB/I,EAExC,KAAMA,KAAOmR,QAAQ,EAAMC,OAAO,GACjClR,EAAK8C,QAAShD,GAAMkJ,GAAoBlJ,EAIzC,SAAS8O,OACTA,GAAWuC,UAAYnR,EAAKoR,QAAUpR,EAAK8C,QAC3C9C,EAAK4O,WAAa,GAAIA,IAEtBzO,EAAWoF,GAAOpF,SAAW,SAAUqF,EAAU6L,GAChD,GAAIvC,GAAS/I,EAAOuL,EAAQxI,EAC3ByI,EAAOvL,EAAQwL,EACfC,EAASjQ,EAAYgE,EAAW,IAEjC,IAAKiM,EACJ,MAAOJ,GAAY,EAAII,EAAOrP,MAAO,EAGtCmP,GAAQ/L,EACRQ,KACAwL,EAAaxR,EAAKqN,SAElB,OAAQkE,EAAQ,GAGTzC,IAAY/I,EAAQ7C,EAAOkD,KAAMmL,OACjCxL,IAEJwL,EAAQA,EAAMnP,MAAO2D,EAAM,GAAGtD,SAAY8O,GAE3CvL,EAAO7D,KAAOmP,OAGfxC,GAAU,GAGJ/I,EAAQ5C,EAAaiD,KAAMmL,MAChCzC,EAAU/I,EAAM6B,QAChB0J,EAAOnP,MACNuF,MAAOoH,EAEPhG,KAAM/C,EAAM,GAAGe,QAAS7D,EAAO,OAEhCsO,EAAQA,EAAMnP,MAAO0M,EAAQrM,QAI9B,KAAMqG,IAAQ9I,GAAKmK,SACZpE,EAAQxC,EAAWuF,GAAO1C,KAAMmL,KAAcC,EAAY1I,MAC9D/C,EAAQyL,EAAY1I,GAAQ/C,MAC7B+I,EAAU/I,EAAM6B,QAChB0J,EAAOnP,MACNuF,MAAOoH,EACPhG,KAAMA,EACN/H,QAASgF,IAEVwL,EAAQA,EAAMnP,MAAO0M,EAAQrM,QAI/B,KAAMqM,EACL,MAOF,MAAOuC,GACNE,EAAM9O,OACN8O,EACChM,GAAOyG,MAAOxG,GAEdhE,EAAYgE,EAAUQ,GAAS5D,MAAO,GAGzC,SAAS4E,IAAYsK,GAIpB,IAHA,GAAIxR,GAAI,EACP0C,EAAM8O,EAAO7O,OACb+C,EAAW,GACAhD,EAAJ1C,EAASA,IAChB0F,GAAY8L,EAAOxR,GAAG4H,KAEvB,OAAOlC,GAGR,QAASkM,IAAe1C,EAAS2C,EAAYC,GAC5C,GAAI5E,GAAM2E,EAAW3E,IACpB6E,EAAmBD,GAAgB,eAAR5E,EAC3B8E,EAAWzQ,GAEZ,OAAOsQ,GAAW1E,MAEjB,SAAU1K,EAAMkD,EAASyI,GACxB,MAAS3L,EAAOA,EAAMyK,GACrB,GAAuB,IAAlBzK,EAAK2C,UAAkB2M,EAC3B,MAAO7C,GAASzM,EAAMkD,EAASyI,IAMlC,SAAU3L,EAAMkD,EAASyI,GACxB,GAAI6D,GAAU5D,EAAaC,EAC1B4D,GAAa5Q,EAAS0Q,EAGvB,IAAK5D,GACJ,MAAS3L,EAAOA,EAAMyK,GACrB,IAAuB,IAAlBzK,EAAK2C,UAAkB2M,IACtB7C,EAASzM,EAAMkD,EAASyI,GAC5B,OAAO,MAKV,OAAS3L,EAAOA,EAAMyK,GACrB,GAAuB,IAAlBzK,EAAK2C,UAAkB2M,EAAmB,CAO9C,GANAzD,EAAa7L,EAAMtB,KAAcsB,EAAMtB,OAIvCkN,EAAcC,EAAY7L,EAAKkM,YAAeL,EAAY7L,EAAKkM,eAEzDsD,EAAW5D,EAAanB,KAC7B+E,EAAU,KAAQ3Q,GAAW2Q,EAAU,KAAQD,EAG/C,MAAQE,GAAU,GAAMD,EAAU,EAMlC,IAHA5D,EAAanB,GAAQgF,EAGfA,EAAU,GAAMhD,EAASzM,EAAMkD,EAASyI,GAC7C,OAAO,IASf,QAAS+D,IAAgBC,GACxB,MAAOA,GAASzP,OAAS,EACxB,SAAUF,EAAMkD,EAASyI,GACxB,GAAIpO,GAAIoS,EAASzP,MACjB,OAAQ3C,IACP,IAAMoS,EAASpS,GAAIyC,EAAMkD,EAASyI,GACjC,OAAO,CAGT,QAAO,GAERgE,EAAS,GAGX,QAASC,IAAkB3M,EAAU4M,EAAU1M,GAG9C,IAFA,GAAI5F,GAAI,EACP0C,EAAM4P,EAAS3P,OACJD,EAAJ1C,EAASA,IAChByF,GAAQC,EAAU4M,EAAStS,GAAI4F,EAEhC,OAAOA,GAGR,QAAS2M,IAAUpD,EAAWqD,EAAKnI,EAAQ1E,EAASyI,GAOnD,IANA,GAAI3L,GACHgQ,KACAzS,EAAI,EACJ0C,EAAMyM,EAAUxM,OAChB+P,EAAgB,MAAPF,EAEE9P,EAAJ1C,EAASA,KACVyC,EAAO0M,EAAUnP,OAChBqK,GAAUA,EAAQ5H,EAAMkD,EAASyI,MACtCqE,EAAapQ,KAAMI,GACdiQ,GACJF,EAAInQ,KAAMrC,GAMd,OAAOyS,GAGR,QAASE,IAAYpF,EAAW7H,EAAUwJ,EAAS0D,EAAYC,EAAYC,GAO1E,MANKF,KAAeA,EAAYzR,KAC/ByR,EAAaD,GAAYC,IAErBC,IAAeA,EAAY1R,KAC/B0R,EAAaF,GAAYE,EAAYC,IAE/B/K,GAAa,SAAUlC,EAAMD,EAASD,EAASyI,GACrD,GAAI2E,GAAM/S,EAAGyC,EACZuQ,KACAC,KACAC,EAActN,EAAQjD,OAGtBwQ,EAAQtN,GAAQwM,GAAkB3M,GAAY,IAAKC,EAAQP,UAAaO,GAAYA,MAGpFyN,GAAY7F,IAAe1H,GAASH,EAEnCyN,EADAZ,GAAUY,EAAOH,EAAQzF,EAAW5H,EAASyI,GAG9CiF,EAAanE,EAEZ2D,IAAgBhN,EAAO0H,EAAY2F,GAAeN,MAMjDhN,EACDwN,CAQF,IALKlE,GACJA,EAASkE,EAAWC,EAAY1N,EAASyI,GAIrCwE,EAAa,CACjBG,EAAOR,GAAUc,EAAYJ,GAC7BL,EAAYG,KAAUpN,EAASyI,GAG/BpO,EAAI+S,EAAKpQ,MACT,OAAQ3C,KACDyC,EAAOsQ,EAAK/S,MACjBqT,EAAYJ,EAAQjT,MAASoT,EAAWH,EAAQjT,IAAOyC,IAK1D,GAAKoD,GACJ,GAAKgN,GAActF,EAAY,CAC9B,GAAKsF,EAAa,CAEjBE,KACA/S,EAAIqT,EAAW1Q,MACf,OAAQ3C,KACDyC,EAAO4Q,EAAWrT,KAEvB+S,EAAK1Q,KAAO+Q,EAAUpT,GAAKyC,EAG7BoQ,GAAY,KAAOQ,KAAkBN,EAAM3E,GAI5CpO,EAAIqT,EAAW1Q,MACf,OAAQ3C,KACDyC,EAAO4Q,EAAWrT,MACtB+S,EAAOF,EAAatQ,EAASsD,EAAMpD,GAASuQ,EAAOhT,IAAM,KAE1D6F,EAAKkN,KAAUnN,EAAQmN,GAAQtQ,SAOlC4Q,GAAad,GACZc,IAAezN,EACdyN,EAAW3G,OAAQwG,EAAaG,EAAW1Q,QAC3C0Q,GAEGR,EACJA,EAAY,KAAMjN,EAASyN,EAAYjF,GAEvC/L,EAAK4C,MAAOW,EAASyN,KAMzB,QAASC,IAAmB9B,GAwB3B,IAvBA,GAAI+B,GAAcrE,EAAS1J,EAC1B9C,EAAM8O,EAAO7O,OACb6Q,EAAkBtT,EAAK8M,SAAUwE,EAAO,GAAGxI,MAC3CyK,EAAmBD,GAAmBtT,EAAK8M,SAAS,KACpDhN,EAAIwT,EAAkB,EAAI,EAG1BE,EAAe9B,GAAe,SAAUnP,GACvC,MAAOA,KAAS8Q,GACdE,GAAkB,GACrBE,EAAkB/B,GAAe,SAAUnP,GAC1C,MAAOF,GAASgR,EAAc9Q,GAAS,IACrCgR,GAAkB,GACrBrB,GAAa,SAAU3P,EAAMkD,EAASyI,GACrC,GAAIvC,IAAS2H,IAAqBpF,GAAOzI,IAAYnF,MACnD+S,EAAe5N,GAASP,SACxBsO,EAAcjR,EAAMkD,EAASyI,GAC7BuF,EAAiBlR,EAAMkD,EAASyI,GAGlC,OADAmF,GAAe,KACR1H,IAGGnJ,EAAJ1C,EAASA,IAChB,GAAMkP,EAAUhP,EAAK8M,SAAUwE,EAAOxR,GAAGgJ,MACxCoJ,GAAaR,GAAcO,GAAgBC,GAAYlD,QACjD,CAIN,GAHAA,EAAUhP,EAAKmK,OAAQmH,EAAOxR,GAAGgJ,MAAO/D,MAAO,KAAMuM,EAAOxR,GAAGiB,SAG1DiO,EAAS/N,GAAY,CAGzB,IADAqE,IAAMxF,EACM0C,EAAJ8C,EAASA,IAChB,GAAKtF,EAAK8M,SAAUwE,EAAOhM,GAAGwD,MAC7B,KAGF,OAAO2J,IACN3S,EAAI,GAAKmS,GAAgBC,GACzBpS,EAAI,GAAKkH,GAERsK,EAAOlP,MAAO,EAAGtC,EAAI,GAAI4T,QAAShM,MAAgC,MAAzB4J,EAAQxR,EAAI,GAAIgJ,KAAe,IAAM,MAC7EhC,QAAS7D,EAAO,MAClB+L,EACI1J,EAAJxF,GAASsT,GAAmB9B,EAAOlP,MAAOtC,EAAGwF,IACzC9C,EAAJ8C,GAAW8N,GAAoB9B,EAASA,EAAOlP,MAAOkD,IAClD9C,EAAJ8C,GAAW0B,GAAYsK,IAGzBY,EAAS/P,KAAM6M,GAIjB,MAAOiD,IAAgBC,GAGxB,QAASyB,IAA0BC,EAAiBC,GACnD,GAAIC,GAAQD,EAAYpR,OAAS,EAChCsR,EAAYH,EAAgBnR,OAAS,EACrCuR,EAAe,SAAUrO,EAAMF,EAASyI,EAAKxI,EAASuO,GACrD,GAAI1R,GAAM+C,EAAG0J,EACZkF,EAAe,EACfpU,EAAI,IACJmP,EAAYtJ,MACZwO,KACAC,EAAgB9T,EAEhB2S,EAAQtN,GAAQoO,GAAa/T,EAAKkK,KAAU,IAAG,IAAK+J,GAEpDI,EAAiBjT,GAA4B,MAAjBgT,EAAwB,EAAIE,KAAKC,UAAY,GACzE/R,EAAMyQ,EAAMxQ,MASb,KAPKwR,IACJ3T,EAAmBmF,IAAY/E,GAAY+E,GAAWwO,GAM/CnU,IAAM0C,GAA4B,OAApBD,EAAO0Q,EAAMnT,IAAaA,IAAM,CACrD,GAAKiU,GAAaxR,EAAO,CACxB+C,EAAI,EACEG,GAAWlD,EAAK4D,gBAAkBzF,IACvCD,EAAa8B,GACb2L,GAAOtN,EAER,OAASoO,EAAU4E,EAAgBtO,KAClC,GAAK0J,EAASzM,EAAMkD,GAAW/E,EAAUwN,GAAO,CAC/CxI,EAAQvD,KAAMI,EACd,OAGG0R,IACJ7S,EAAUiT,GAKPP,KAEEvR,GAAQyM,GAAWzM,IACxB2R,IAIIvO,GACJsJ,EAAU9M,KAAMI,IAgBnB,GATA2R,GAAgBpU,EASXgU,GAAShU,IAAMoU,EAAe,CAClC5O,EAAI,CACJ,OAAS0J,EAAU6E,EAAYvO,KAC9B0J,EAASC,EAAWkF,EAAY1O,EAASyI,EAG1C,IAAKvI,EAAO,CAEX,GAAKuO,EAAe,EACnB,MAAQpU,IACAmP,EAAUnP,IAAMqU,EAAWrU,KACjCqU,EAAWrU,GAAKmC,EAAI+C,KAAMU,GAM7ByO,GAAa9B,GAAU8B,GAIxBhS,EAAK4C,MAAOW,EAASyO,GAGhBF,IAActO,GAAQwO,EAAW1R,OAAS,GAC5CyR,EAAeL,EAAYpR,OAAW,GAExC8C,GAAO4G,WAAYzG,GAUrB,MALKuO,KACJ7S,EAAUiT,EACV/T,EAAmB8T,GAGbnF,EAGT,OAAO6E,GACNjM,GAAcmM,GACdA,EAGF5T,EAAUmF,GAAOnF,QAAU,SAAUoF,EAAUO,GAC9C,GAAIjG,GACH+T,KACAD,KACAnC,EAAShQ,EAAe+D,EAAW,IAEpC,KAAMiM,EAAS,CAER1L,IACLA,EAAQ5F,EAAUqF,IAEnB1F,EAAIiG,EAAMtD,MACV,OAAQ3C,IACP2R,EAAS2B,GAAmBrN,EAAMjG,IAC7B2R,EAAQxQ,GACZ4S,EAAY1R,KAAMsP,GAElBmC,EAAgBzR,KAAMsP,EAKxBA,GAAShQ,EAAe+D,EAAUmO,GAA0BC,EAAiBC,IAG7EpC,EAAOjM,SAAWA,EAEnB,MAAOiM,IAYRpR,EAASkF,GAAOlF,OAAS,SAAUmF,EAAUC,EAASC,EAASC,GAC9D,GAAI7F,GAAGwR,EAAQkD,EAAO1L,EAAMoB,EAC3BuK,EAA+B,kBAAbjP,IAA2BA,EAC7CO,GAASJ,GAAQxF,EAAWqF,EAAWiP,EAASjP,UAAYA,EAM7D,IAJAE,EAAUA,MAIY,IAAjBK,EAAMtD,OAAe,CAIzB,GADA6O,EAASvL,EAAM,GAAKA,EAAM,GAAG3D,MAAO,GAC/BkP,EAAO7O,OAAS,GAAkC,QAA5B+R,EAAQlD,EAAO,IAAIxI,MAC5C/I,EAAQiK,SAAgC,IAArBvE,EAAQP,UAAkBtE,GAC7CZ,EAAK8M,SAAUwE,EAAO,GAAGxI,MAAS,CAGnC,GADArD,GAAYzF,EAAKkK,KAAS,GAAGsK,EAAMzT,QAAQ,GAAG+F,QAAQxC,GAAWC,IAAYkB,QAAkB,IACzFA,EACL,MAAOC,EAGI+O,KACXhP,EAAUA,EAAQ0B,YAGnB3B,EAAWA,EAASpD,MAAOkP,EAAO1J,QAAQF,MAAMjF,QAIjD3C,EAAIyD,EAAwB,aAAEmD,KAAMlB,GAAa,EAAI8L,EAAO7O,MAC5D,OAAQ3C,IAAM,CAIb,GAHA0U,EAAQlD,EAAOxR,GAGVE,EAAK8M,SAAWhE,EAAO0L,EAAM1L,MACjC,KAED,KAAMoB,EAAOlK,EAAKkK,KAAMpB,MAEjBnD,EAAOuE,EACZsK,EAAMzT,QAAQ,GAAG+F,QAASxC,GAAWC,IACrCH,EAASsC,KAAM4K,EAAO,GAAGxI,OAAU5B,GAAazB,EAAQ0B,aAAgB1B,IACpE,CAKJ,GAFA6L,EAAO9E,OAAQ1M,EAAG,GAClB0F,EAAWG,EAAKlD,QAAUuE,GAAYsK,IAChC9L,EAEL,MADArD,GAAK4C,MAAOW,EAASC,GACdD,CAGR,SAeJ,OAPE+O,GAAYrU,EAASoF,EAAUO,IAChCJ,EACAF,GACC7E,EACD8E,GACCD,GAAWrB,EAASsC,KAAMlB,IAAc0B,GAAazB,EAAQ0B,aAAgB1B,GAExEC,GAMR3F,EAAQuM,WAAarL,EAAQqH,MAAM,IAAIiE,KAAM7K,GAAYuF,KAAK,MAAQhG,EAItElB,EAAQsM,mBAAqB7L,EAG7BC,IAIAV,EAAQqL,aAAerD,GAAO,SAAU2M,GAEvC,MAAuE,GAAhEA,EAAK1J,wBAAyBtK,EAASuH,cAAc,UAMvDF,GAAO,SAAUC,GAEtB,MADAA,GAAIwC,UAAY,mBAC+B,MAAxCxC,EAAI0E,WAAW7F,aAAa,WAEnCsB,GAAW,yBAA0B,SAAU5F,EAAMwG,EAAM7I,GAC1D,MAAMA,GAAN,OACQqC,EAAKsE,aAAckC,EAA6B,SAAvBA,EAAKnC,cAA2B,EAAI,KAOjE7G,EAAQ8C,YAAekF,GAAO,SAAUC,GAG7C,MAFAA,GAAIwC,UAAY,WAChBxC,EAAI0E,WAAW3F,aAAc,QAAS,IACY,KAA3CiB,EAAI0E,WAAW7F,aAAc,YAEpCsB,GAAW,QAAS,SAAU5F,EAAMwG,EAAM7I,GACzC,MAAMA,IAAyC,UAAhCqC,EAAKoE,SAASC,cAA7B,OACQrE,EAAKoS,eAOT5M,GAAO,SAAUC,GACtB,MAAuC,OAAhCA,EAAInB,aAAa,eAExBsB,GAAWzF,EAAU,SAAUH,EAAMwG,EAAM7I,GAC1C,GAAI2L,EACJ,OAAM3L,GAAN,OACQqC,EAAMwG,MAAW,EAAOA,EAAKnC,eACjCiF,EAAMtJ,EAAK8H,iBAAkBtB,KAAW8C,EAAIE,UAC7CF,EAAInE,MACL,OAMmB,kBAAXkN,SAAyBA,OAAOC,IAC3CD,OAAO,WAAa,MAAOrP,MAEE,mBAAXuP,SAA0BA,OAAOC,QACnDD,OAAOC,QAAUxP,GAEjB1F,EAAO0F,OAASA,IAIb1F"} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/.jshintrc b/ecomp-portal-FE/client/bower_components/jquery/src/.jshintrc
deleted file mode 100644
index ea3549d5..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/.jshintrc
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "boss": true,
- "curly": true,
- "eqeqeq": true,
- "eqnull": true,
- "expr": true,
- "immed": true,
- "noarg": true,
- "quotmark": "double",
- "undef": true,
- "unused": true,
-
- "sub": true,
-
- // Support: IE < 10, Android < 4.1
- // The above browsers are failing a lot of tests in the ES5
- // test suite at http://test262.ecmascript.org.
- "es3": true,
-
- "globals": {
- "window": true,
- "JSON": false,
-
- "jQuery": true,
- "define": true,
- "module": true,
- "noGlobal": true
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax.js
deleted file mode 100644
index ba322483..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax.js
+++ /dev/null
@@ -1,845 +0,0 @@
-define( [
- "./core",
- "./var/document",
- "./var/rnotwhite",
- "./ajax/var/location",
- "./ajax/var/nonce",
- "./ajax/var/rquery",
-
- "./core/init",
- "./ajax/parseJSON",
- "./ajax/parseXML",
- "./event/trigger",
- "./deferred"
-], function( jQuery, document, rnotwhite, location, nonce, rquery ) {
-
-var
- rhash = /#.*$/,
- rts = /([?&])_=[^&]*/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
-
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = "*/".concat( "*" ),
-
- // Anchor tag for parsing the document origin
- originAnchor = document.createElement( "a" );
- originAnchor.href = location.href;
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- var dataType,
- i = 0,
- dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
-
- if ( jQuery.isFunction( func ) ) {
-
- // For each dataType in the dataTypeExpression
- while ( ( dataType = dataTypes[ i++ ] ) ) {
-
- // Prepend if requested
- if ( dataType[ 0 ] === "+" ) {
- dataType = dataType.slice( 1 ) || "*";
- ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
-
- // Otherwise append
- } else {
- ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
- }
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
- var inspected = {},
- seekingTransport = ( structure === transports );
-
- function inspect( dataType ) {
- var selected;
- inspected[ dataType ] = true;
- jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
- var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
- if ( typeof dataTypeOrTransport === "string" &&
- !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
-
- options.dataTypes.unshift( dataTypeOrTransport );
- inspect( dataTypeOrTransport );
- return false;
- } else if ( seekingTransport ) {
- return !( selected = dataTypeOrTransport );
- }
- } );
- return selected;
- }
-
- return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var key, deep,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-
- return target;
-}
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var ct, type, finalDataType, firstDataType,
- contents = s.contents,
- dataTypes = s.dataTypes;
-
- // Remove auto dataType and get content-type in the process
- while ( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
-
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
-
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
- var conv2, current, conv, tmp, prev,
- converters = {},
-
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice();
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- current = dataTypes.shift();
-
- // Convert to each sequential dataType
- while ( current ) {
-
- if ( s.responseFields[ current ] ) {
- jqXHR[ s.responseFields[ current ] ] = response;
- }
-
- // Apply the dataFilter if provided
- if ( !prev && isSuccess && s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- prev = current;
- current = dataTypes.shift();
-
- if ( current ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current === "*" ) {
-
- current = prev;
-
- // Convert response if prev dataType is non-auto and differs from current
- } else if ( prev !== "*" && prev !== current ) {
-
- // Seek a direct converter
- conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
- // If none found, seek a pair
- if ( !conv ) {
- for ( conv2 in converters ) {
-
- // If conv2 outputs current
- tmp = conv2.split( " " );
- if ( tmp[ 1 ] === current ) {
-
- // If prev can be converted to accepted input
- conv = converters[ prev + " " + tmp[ 0 ] ] ||
- converters[ "* " + tmp[ 0 ] ];
- if ( conv ) {
-
- // Condense equivalence converters
- if ( conv === true ) {
- conv = converters[ conv2 ];
-
- // Otherwise, insert the intermediate dataType
- } else if ( converters[ conv2 ] !== true ) {
- current = tmp[ 0 ];
- dataTypes.unshift( tmp[ 1 ] );
- }
- break;
- }
- }
- }
- }
-
- // Apply converter (if not an equivalence)
- if ( conv !== true ) {
-
- // Unless errors are allowed to bubble, catch and return them
- if ( conv && s.throws ) {
- response = conv( response );
- } else {
- try {
- response = conv( response );
- } catch ( e ) {
- return {
- state: "parsererror",
- error: conv ? e : "No conversion from " + prev + " to " + current
- };
- }
- }
- }
- }
- }
- }
-
- return { state: "success", data: response };
-}
-
-jQuery.extend( {
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajaxSettings: {
- url: location.href,
- type: "GET",
- isLocal: rlocalProtocol.test( location.protocol ),
- global: true,
- processData: true,
- async: true,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- throws: false,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- "*": allTypes,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
-
- contents: {
- xml: /\bxml\b/,
- html: /\bhtml/,
- json: /\bjson\b/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- url: true,
- context: true
- }
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- return settings ?
-
- // Building a settings object
- ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
- // Extending ajaxSettings
- ajaxExtend( jQuery.ajaxSettings, target );
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var transport,
-
- // URL without anti-cache param
- cacheURL,
-
- // Response headers
- responseHeadersString,
- responseHeaders,
-
- // timeout handle
- timeoutTimer,
-
- // Url cleanup var
- urlAnchor,
-
- // To know if global events are to be dispatched
- fireGlobals,
-
- // Loop variable
- i,
-
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
-
- // Callbacks context
- callbackContext = s.context || s,
-
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context &&
- ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
-
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks( "once memory" ),
-
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
-
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
-
- // The jqXHR state
- state = 0,
-
- // Default abort message
- strAbort = "canceled",
-
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
- responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- var lname = name.toLowerCase();
- if ( !state ) {
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( state < 2 ) {
- for ( code in map ) {
-
- // Lazy-add the new callback in a way that preserves old ones
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- } else {
-
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR ).complete = completeDeferred.add;
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (prefilters might expect it)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || location.href ) + "" ).replace( rhash, "" )
- .replace( rprotocol, location.protocol + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
-
- // A cross-domain request is in order when the origin doesn't match the current origin.
- if ( s.crossDomain == null ) {
- urlAnchor = document.createElement( "a" );
-
- // Support: IE8-11+
- // IE throws exception if url is malformed, e.g. http://example.com:80x/
- try {
- urlAnchor.href = s.url;
-
- // Support: IE8-11+
- // Anchor's host property isn't correctly set when s.url is relative
- urlAnchor.href = urlAnchor.href;
- s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
- urlAnchor.protocol + "//" + urlAnchor.host;
- } catch ( e ) {
-
- // If there is an error parsing the URL, assume it is crossDomain,
- // it can be rejected by the transport if it is invalid
- s.crossDomain = true;
- }
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
- fireGlobals = jQuery.event && s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger( "ajaxStart" );
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- cacheURL = s.url;
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
-
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
- s.url = rts.test( cacheURL ) ?
-
- // If there is already a '_' parameter, set its value
- cacheURL.replace( rts, "$1_=" + nonce++ ) :
-
- // Otherwise add one to the end
- cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
- }
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
- s.accepts[ s.dataTypes[ 0 ] ] +
- ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend &&
- ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // Aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
-
- // If request was aborted inside ajaxSend, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = window.setTimeout( function() {
- jqXHR.abort( "timeout" );
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch ( e ) {
-
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
-
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- window.clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Determine if successful
- isSuccess = status >= 200 && status < 300 || status === 304;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // Convert no matter what (that way responseXXX fields are always set)
- response = ajaxConvert( s, response, jqXHR, isSuccess );
-
- // If successful, handle type chaining
- if ( isSuccess ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader( "Last-Modified" );
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader( "etag" );
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // if no content
- if ( status === 204 || s.type === "HEAD" ) {
- statusText = "nocontent";
-
- // if not modified
- } else if ( status === 304 ) {
- statusText = "notmodified";
-
- // If we have data, let's convert it
- } else {
- statusText = response.state;
- success = response.data;
- error = response.error;
- isSuccess = !error;
- }
- } else {
-
- // Extract error from statusText and normalize for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger( "ajaxStop" );
- }
- }
- }
-
- return jqXHR;
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- }
-} );
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
-
- // Shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- // The url can be an options object (which then must have .url)
- return jQuery.ajax( jQuery.extend( {
- url: url,
- type: method,
- dataType: type,
- data: data,
- success: callback
- }, jQuery.isPlainObject( url ) && url ) );
- };
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/jsonp.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/jsonp.js
deleted file mode 100644
index 666e5d1e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/jsonp.js
+++ /dev/null
@@ -1,100 +0,0 @@
-define( [
- "../core",
- "./var/nonce",
- "./var/rquery",
- "../ajax"
-], function( jQuery, nonce, rquery ) {
-
-var oldCallbacks = [],
- rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup( {
- jsonp: "callback",
- jsonpCallback: function() {
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
- this[ callback ] = true;
- return callback;
- }
-} );
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var callbackName, overwritten, responseContainer,
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
- "url" :
- typeof s.data === "string" &&
- ( s.contentType || "" )
- .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
- rjsonp.test( s.data ) && "data"
- );
-
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
- // Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
- s.jsonpCallback() :
- s.jsonpCallback;
-
- // Insert callback into url or form data
- if ( jsonProp ) {
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
- } else if ( s.jsonp !== false ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
- }
-
- // Use data converter to retrieve json after script execution
- s.converters[ "script json" ] = function() {
- if ( !responseContainer ) {
- jQuery.error( callbackName + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // Force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Install callback
- overwritten = window[ callbackName ];
- window[ callbackName ] = function() {
- responseContainer = arguments;
- };
-
- // Clean-up function (fires after converters)
- jqXHR.always( function() {
-
- // If previous value didn't exist - remove it
- if ( overwritten === undefined ) {
- jQuery( window ).removeProp( callbackName );
-
- // Otherwise restore preexisting value
- } else {
- window[ callbackName ] = overwritten;
- }
-
- // Save back as free
- if ( s[ callbackName ] ) {
-
- // Make sure that re-using the options doesn't screw things around
- s.jsonpCallback = originalSettings.jsonpCallback;
-
- // Save the callback name for future use
- oldCallbacks.push( callbackName );
- }
-
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
- overwritten( responseContainer[ 0 ] );
- }
-
- responseContainer = overwritten = undefined;
- } );
-
- // Delegate to script
- return "script";
- }
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/load.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/load.js
deleted file mode 100644
index 5ec3fa25..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/load.js
+++ /dev/null
@@ -1,83 +0,0 @@
-define( [
- "../core",
- "../core/parseHTML",
- "../ajax",
- "../traversing",
- "../manipulation",
- "../selector",
-
- // Optional event/alias dependency
- "../event/alias"
-], function( jQuery ) {
-
-// Keep a copy of the old load method
-var _load = jQuery.fn.load;
-
-/**
- * Load a url into a page
- */
-jQuery.fn.load = function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
- }
-
- var selector, type, response,
- self = this,
- off = url.indexOf( " " );
-
- if ( off > -1 ) {
- selector = jQuery.trim( url.slice( off ) );
- url = url.slice( 0, off );
- }
-
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
-
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( params && typeof params === "object" ) {
- type = "POST";
- }
-
- // If we have elements to modify, make the request
- if ( self.length > 0 ) {
- jQuery.ajax( {
- url: url,
-
- // If "type" variable is undefined, then "GET" method will be used.
- // Make value of this field explicit since
- // user can override it through ajaxSetup method
- type: type || "GET",
- dataType: "html",
- data: params
- } ).done( function( responseText ) {
-
- // Save response for use in complete callback
- response = arguments;
-
- self.html( selector ?
-
- // If a selector was specified, locate the right elements in a dummy div
- // Exclude scripts to avoid IE 'Permission Denied' errors
- jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- // If the request succeeds, this function gets "data", "status", "jqXHR"
- // but they are ignored because response was set above.
- // If it fails, this function gets "jqXHR", "status", "error"
- } ).always( callback && function( jqXHR, status ) {
- self.each( function() {
- callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
- } );
- } );
- }
-
- return this;
-};
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/parseJSON.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/parseJSON.js
deleted file mode 100644
index 11918b06..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/parseJSON.js
+++ /dev/null
@@ -1,13 +0,0 @@
-define( [
- "../core"
-], function( jQuery ) {
-
-// Support: Android 2.3
-// Workaround failure to string-cast null input
-jQuery.parseJSON = function( data ) {
- return JSON.parse( data + "" );
-};
-
-return jQuery.parseJSON;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/parseXML.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/parseXML.js
deleted file mode 100644
index 6599aaf5..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/parseXML.js
+++ /dev/null
@@ -1,27 +0,0 @@
-define( [
- "../core"
-], function( jQuery ) {
-
-// Cross-browser xml parsing
-jQuery.parseXML = function( data ) {
- var xml;
- if ( !data || typeof data !== "string" ) {
- return null;
- }
-
- // Support: IE9
- try {
- xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
- } catch ( e ) {
- xml = undefined;
- }
-
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
-};
-
-return jQuery.parseXML;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/script.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/script.js
deleted file mode 100644
index 945bea9d..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/script.js
+++ /dev/null
@@ -1,68 +0,0 @@
-define( [
- "../core",
- "../var/document",
- "../ajax"
-], function( jQuery, document ) {
-
-// Install script dataType
-jQuery.ajaxSetup( {
- accepts: {
- script: "text/javascript, application/javascript, " +
- "application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /\b(?:java|ecma)script\b/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-} );
-
-// Handle cache's special case and crossDomain
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- }
-} );
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function( s ) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
- var script, callback;
- return {
- send: function( _, complete ) {
- script = jQuery( "<script>" ).prop( {
- charset: s.scriptCharset,
- src: s.url
- } ).on(
- "load error",
- callback = function( evt ) {
- script.remove();
- callback = null;
- if ( evt ) {
- complete( evt.type === "error" ? 404 : 200, evt.type );
- }
- }
- );
-
- // Use native DOM manipulation to avoid our domManip AJAX trickery
- document.head.appendChild( script[ 0 ] );
- },
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/location.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/location.js
deleted file mode 100644
index ff9578e9..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/location.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return window.location;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/nonce.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/nonce.js
deleted file mode 100644
index 83fd557c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/nonce.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "../../core"
-], function( jQuery ) {
- return jQuery.now();
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/rquery.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/rquery.js
deleted file mode 100644
index 0502146c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/var/rquery.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return ( /\?/ );
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/xhr.js b/ecomp-portal-FE/client/bower_components/jquery/src/ajax/xhr.js
deleted file mode 100644
index db670ff1..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/ajax/xhr.js
+++ /dev/null
@@ -1,167 +0,0 @@
-define( [
- "../core",
- "../var/support",
- "../ajax"
-], function( jQuery, support ) {
-
-jQuery.ajaxSettings.xhr = function() {
- try {
- return new window.XMLHttpRequest();
- } catch ( e ) {}
-};
-
-var xhrSuccessStatus = {
-
- // File protocol always yields status code 0, assume 200
- 0: 200,
-
- // Support: IE9
- // #1450: sometimes IE returns 1223 when it should be 204
- 1223: 204
- },
- xhrSupported = jQuery.ajaxSettings.xhr();
-
-support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-support.ajax = xhrSupported = !!xhrSupported;
-
-jQuery.ajaxTransport( function( options ) {
- var callback, errorCallback;
-
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( support.cors || xhrSupported && !options.crossDomain ) {
- return {
- send: function( headers, complete ) {
- var i,
- xhr = options.xhr();
-
- xhr.open(
- options.type,
- options.url,
- options.async,
- options.username,
- options.password
- );
-
- // Apply custom fields if provided
- if ( options.xhrFields ) {
- for ( i in options.xhrFields ) {
- xhr[ i ] = options.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( options.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( options.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
- }
-
- // Set headers
- for ( i in headers ) {
- xhr.setRequestHeader( i, headers[ i ] );
- }
-
- // Callback
- callback = function( type ) {
- return function() {
- if ( callback ) {
- callback = errorCallback = xhr.onload =
- xhr.onerror = xhr.onabort = xhr.onreadystatechange = null;
-
- if ( type === "abort" ) {
- xhr.abort();
- } else if ( type === "error" ) {
-
- // Support: IE9
- // On a manual native abort, IE9 throws
- // errors on any property access that is not readyState
- if ( typeof xhr.status !== "number" ) {
- complete( 0, "error" );
- } else {
- complete(
-
- // File: protocol always yields status 0; see #8605, #14207
- xhr.status,
- xhr.statusText
- );
- }
- } else {
- complete(
- xhrSuccessStatus[ xhr.status ] || xhr.status,
- xhr.statusText,
-
- // Support: IE9 only
- // IE9 has no XHR2 but throws on binary (trac-11426)
- // For XHR2 non-text, let the caller handle it (gh-2498)
- ( xhr.responseType || "text" ) !== "text" ||
- typeof xhr.responseText !== "string" ?
- { binary: xhr.response } :
- { text: xhr.responseText },
- xhr.getAllResponseHeaders()
- );
- }
- }
- };
- };
-
- // Listen to events
- xhr.onload = callback();
- errorCallback = xhr.onerror = callback( "error" );
-
- // Support: IE9
- // Use onreadystatechange to replace onabort
- // to handle uncaught aborts
- if ( xhr.onabort !== undefined ) {
- xhr.onabort = errorCallback;
- } else {
- xhr.onreadystatechange = function() {
-
- // Check readyState before timeout as it changes
- if ( xhr.readyState === 4 ) {
-
- // Allow onerror to be called first,
- // but that will not handle a native abort
- // Also, save errorCallback to a variable
- // as xhr.onerror cannot be accessed
- window.setTimeout( function() {
- if ( callback ) {
- errorCallback();
- }
- } );
- }
- };
- }
-
- // Create the abort callback
- callback = callback( "abort" );
-
- try {
-
- // Do send the request (this may raise an exception)
- xhr.send( options.hasContent && options.data || null );
- } catch ( e ) {
-
- // #14683: Only rethrow if this hasn't been notified as an error yet
- if ( callback ) {
- throw e;
- }
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback();
- }
- }
- };
- }
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/attributes.js b/ecomp-portal-FE/client/bower_components/jquery/src/attributes.js
deleted file mode 100644
index 691e0c03..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/attributes.js
+++ /dev/null
@@ -1,11 +0,0 @@
-define( [
- "./core",
- "./attributes/attr",
- "./attributes/prop",
- "./attributes/classes",
- "./attributes/val"
-], function( jQuery ) {
-
-// Return jQuery for attributes-only inclusion
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/attr.js b/ecomp-portal-FE/client/bower_components/jquery/src/attributes/attr.js
deleted file mode 100644
index f8880832..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/attr.js
+++ /dev/null
@@ -1,142 +0,0 @@
-define( [
- "../core",
- "../core/access",
- "./support",
- "../var/rnotwhite",
- "../selector"
-], function( jQuery, access, support, rnotwhite ) {
-
-var boolHook,
- attrHandle = jQuery.expr.attrHandle;
-
-jQuery.fn.extend( {
- attr: function( name, value ) {
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each( function() {
- jQuery.removeAttr( this, name );
- } );
- }
-} );
-
-jQuery.extend( {
- attr: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set attributes on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === "undefined" ) {
- return jQuery.prop( elem, name, value );
- }
-
- // All attributes are lowercase
- // Grab necessary hook if one is defined
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
- name = name.toLowerCase();
- hooks = jQuery.attrHooks[ name ] ||
- ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
- }
-
- if ( value !== undefined ) {
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
- return;
- }
-
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- elem.setAttribute( name, value + "" );
- return value;
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- ret = jQuery.find.attr( elem, name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret == null ? undefined : ret;
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- if ( !support.radioValue && value === "radio" &&
- jQuery.nodeName( elem, "input" ) ) {
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- }
- },
-
- removeAttr: function( elem, value ) {
- var name, propName,
- i = 0,
- attrNames = value && value.match( rnotwhite );
-
- if ( attrNames && elem.nodeType === 1 ) {
- while ( ( name = attrNames[ i++ ] ) ) {
- propName = jQuery.propFix[ name ] || name;
-
- // Boolean attributes get special treatment (#10870)
- if ( jQuery.expr.match.bool.test( name ) ) {
-
- // Set corresponding property to false
- elem[ propName ] = false;
- }
-
- elem.removeAttribute( name );
- }
- }
- }
-} );
-
-// Hooks for boolean attributes
-boolHook = {
- set: function( elem, value, name ) {
- if ( value === false ) {
-
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else {
- elem.setAttribute( name, name );
- }
- return name;
- }
-};
-jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
- var getter = attrHandle[ name ] || jQuery.find.attr;
-
- attrHandle[ name ] = function( elem, name, isXML ) {
- var ret, handle;
- if ( !isXML ) {
-
- // Avoid an infinite loop by temporarily removing this function from the getter
- handle = attrHandle[ name ];
- attrHandle[ name ] = ret;
- ret = getter( elem, name, isXML ) != null ?
- name.toLowerCase() :
- null;
- attrHandle[ name ] = handle;
- }
- return ret;
- };
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/classes.js b/ecomp-portal-FE/client/bower_components/jquery/src/attributes/classes.js
deleted file mode 100644
index 7933873c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/classes.js
+++ /dev/null
@@ -1,177 +0,0 @@
-define( [
- "../core",
- "../var/rnotwhite",
- "../data/var/dataPriv",
- "../core/init"
-], function( jQuery, rnotwhite, dataPriv ) {
-
-var rclass = /[\t\r\n\f]/g;
-
-function getClass( elem ) {
- return elem.getAttribute && elem.getAttribute( "class" ) || "";
-}
-
-jQuery.fn.extend( {
- addClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
- cur += clazz + " ";
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classes, elem, cur, curValue, clazz, j, finalValue,
- i = 0;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( j ) {
- jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
- } );
- }
-
- if ( !arguments.length ) {
- return this.attr( "class", "" );
- }
-
- if ( typeof value === "string" && value ) {
- classes = value.match( rnotwhite ) || [];
-
- while ( ( elem = this[ i++ ] ) ) {
- curValue = getClass( elem );
-
- // This expression is here for better compressibility (see addClass)
- cur = elem.nodeType === 1 &&
- ( " " + curValue + " " ).replace( rclass, " " );
-
- if ( cur ) {
- j = 0;
- while ( ( clazz = classes[ j++ ] ) ) {
-
- // Remove *all* instances
- while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
- cur = cur.replace( " " + clazz + " ", " " );
- }
- }
-
- // Only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( curValue !== finalValue ) {
- elem.setAttribute( "class", finalValue );
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value;
-
- if ( typeof stateVal === "boolean" && type === "string" ) {
- return stateVal ? this.addClass( value ) : this.removeClass( value );
- }
-
- if ( jQuery.isFunction( value ) ) {
- return this.each( function( i ) {
- jQuery( this ).toggleClass(
- value.call( this, i, getClass( this ), stateVal ),
- stateVal
- );
- } );
- }
-
- return this.each( function() {
- var className, i, self, classNames;
-
- if ( type === "string" ) {
-
- // Toggle individual class names
- i = 0;
- self = jQuery( this );
- classNames = value.match( rnotwhite ) || [];
-
- while ( ( className = classNames[ i++ ] ) ) {
-
- // Check each className given, space separated list
- if ( self.hasClass( className ) ) {
- self.removeClass( className );
- } else {
- self.addClass( className );
- }
- }
-
- // Toggle whole class name
- } else if ( value === undefined || type === "boolean" ) {
- className = getClass( this );
- if ( className ) {
-
- // Store className if set
- dataPriv.set( this, "__className__", className );
- }
-
- // If the element has a class name or if we're passed `false`,
- // then remove the whole classname (if there was one, the above saved it).
- // Otherwise bring back whatever was previously saved (if anything),
- // falling back to the empty string if nothing was stored.
- if ( this.setAttribute ) {
- this.setAttribute( "class",
- className || value === false ?
- "" :
- dataPriv.get( this, "__className__" ) || ""
- );
- }
- }
- } );
- },
-
- hasClass: function( selector ) {
- var className, elem,
- i = 0;
-
- className = " " + selector + " ";
- while ( ( elem = this[ i++ ] ) ) {
- if ( elem.nodeType === 1 &&
- ( " " + getClass( elem ) + " " ).replace( rclass, " " )
- .indexOf( className ) > -1
- ) {
- return true;
- }
- }
-
- return false;
- }
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/prop.js b/ecomp-portal-FE/client/bower_components/jquery/src/attributes/prop.js
deleted file mode 100644
index e127bb08..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/prop.js
+++ /dev/null
@@ -1,125 +0,0 @@
-define( [
- "../core",
- "../core/access",
- "./support",
- "../selector"
-], function( jQuery, access, support ) {
-
-var rfocusable = /^(?:input|select|textarea|button)$/i,
- rclickable = /^(?:a|area)$/i;
-
-jQuery.fn.extend( {
- prop: function( name, value ) {
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- return this.each( function() {
- delete this[ jQuery.propFix[ name ] || name ];
- } );
- }
-} );
-
-jQuery.extend( {
- prop: function( elem, name, value ) {
- var ret, hooks,
- nType = elem.nodeType;
-
- // Don't get/set properties on text, comment and attribute nodes
- if ( nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
-
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks &&
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
- return ret;
- }
-
- return ( elem[ name ] = value );
- }
-
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
- return ret;
- }
-
- return elem[ name ];
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
-
- // elem.tabIndex doesn't always return the
- // correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- // Use proper attribute retrieval(#12072)
- var tabindex = jQuery.find.attr( elem, "tabindex" );
-
- return tabindex ?
- parseInt( tabindex, 10 ) :
- rfocusable.test( elem.nodeName ) ||
- rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- -1;
- }
- }
- },
-
- propFix: {
- "for": "htmlFor",
- "class": "className"
- }
-} );
-
-// Support: IE <=11 only
-// Accessing the selectedIndex property
-// forces the browser to respect setting selected
-// on the option
-// The getter ensures a default option is selected
-// when in an optgroup
-if ( !support.optSelected ) {
- jQuery.propHooks.selected = {
- get: function( elem ) {
- var parent = elem.parentNode;
- if ( parent && parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- return null;
- },
- set: function( elem ) {
- var parent = elem.parentNode;
- if ( parent ) {
- parent.selectedIndex;
-
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- }
- };
-}
-
-jQuery.each( [
- "tabIndex",
- "readOnly",
- "maxLength",
- "cellSpacing",
- "cellPadding",
- "rowSpan",
- "colSpan",
- "useMap",
- "frameBorder",
- "contentEditable"
-], function() {
- jQuery.propFix[ this.toLowerCase() ] = this;
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/support.js b/ecomp-portal-FE/client/bower_components/jquery/src/attributes/support.js
deleted file mode 100644
index e8d02b5c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/support.js
+++ /dev/null
@@ -1,36 +0,0 @@
-define( [
- "../var/document",
- "../var/support"
-], function( document, support ) {
-
-( function() {
- var input = document.createElement( "input" ),
- select = document.createElement( "select" ),
- opt = select.appendChild( document.createElement( "option" ) );
-
- input.type = "checkbox";
-
- // Support: iOS<=5.1, Android<=4.2+
- // Default value for a checkbox should be "on"
- support.checkOn = input.value !== "";
-
- // Support: IE<=11+
- // Must access selectedIndex to make default options select
- support.optSelected = opt.selected;
-
- // Support: Android<=2.3
- // Options inside disabled selects are incorrectly marked as disabled
- select.disabled = true;
- support.optDisabled = !opt.disabled;
-
- // Support: IE<=11+
- // An input loses its value after becoming a radio
- input = document.createElement( "input" );
- input.value = "t";
- input.type = "radio";
- support.radioValue = input.value === "t";
-} )();
-
-return support;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/val.js b/ecomp-portal-FE/client/bower_components/jquery/src/attributes/val.js
deleted file mode 100644
index 1fa91713..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/attributes/val.js
+++ /dev/null
@@ -1,177 +0,0 @@
-define( [
- "../core",
- "./support",
- "../core/init"
-], function( jQuery, support ) {
-
-var rreturn = /\r/g,
- rspaces = /[\x20\t\r\n\f]+/g;
-
-jQuery.fn.extend( {
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[ 0 ];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] ||
- jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks &&
- "get" in hooks &&
- ( ret = hooks.get( elem, "value" ) ) !== undefined
- ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
-
- // Handle most common string cases
- ret.replace( rreturn, "" ) :
-
- // Handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each( function( i ) {
- var val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, jQuery( this ).val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
-
- } else if ( typeof val === "number" ) {
- val += "";
-
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map( val, function( value ) {
- return value == null ? "" : value + "";
- } );
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- } );
- }
-} );
-
-jQuery.extend( {
- valHooks: {
- option: {
- get: function( elem ) {
-
- var val = jQuery.find.attr( elem, "value" );
- return val != null ?
- val :
-
- // Support: IE10-11+
- // option.text throws exceptions (#14686, #14858)
- // Strip and collapse whitespace
- // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
- jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
- }
- },
- select: {
- get: function( elem ) {
- var value, option,
- options = elem.options,
- index = elem.selectedIndex,
- one = elem.type === "select-one" || index < 0,
- values = one ? null : [],
- max = one ? index + 1 : options.length,
- i = index < 0 ?
- max :
- one ? index : 0;
-
- // Loop through all the selected options
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // IE8-9 doesn't update selected after form reset (#2551)
- if ( ( option.selected || i === index ) &&
-
- // Don't return options that are disabled or in a disabled optgroup
- ( support.optDisabled ?
- !option.disabled : option.getAttribute( "disabled" ) === null ) &&
- ( !option.parentNode.disabled ||
- !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var optionSet, option,
- options = elem.options,
- values = jQuery.makeArray( value ),
- i = options.length;
-
- while ( i-- ) {
- option = options[ i ];
- if ( option.selected =
- jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
- ) {
- optionSet = true;
- }
- }
-
- // Force browsers to behave consistently when non-matching value is set
- if ( !optionSet ) {
- elem.selectedIndex = -1;
- }
- return values;
- }
- }
- }
-} );
-
-// Radios and checkboxes getter/setter
-jQuery.each( [ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
- }
- }
- };
- if ( !support.checkOn ) {
- jQuery.valHooks[ this ].get = function( elem ) {
- return elem.getAttribute( "value" ) === null ? "on" : elem.value;
- };
- }
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/callbacks.js b/ecomp-portal-FE/client/bower_components/jquery/src/callbacks.js
deleted file mode 100644
index df7c7cf0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/callbacks.js
+++ /dev/null
@@ -1,232 +0,0 @@
-define( [
- "./core",
- "./var/rnotwhite"
-], function( jQuery, rnotwhite ) {
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
- var object = {};
- jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- } );
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- createOptions( options ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
-
- // Last fire value for non-forgettable lists
- memory,
-
- // Flag to know if list was already fired
- fired,
-
- // Flag to prevent firing
- locked,
-
- // Actual callback list
- list = [],
-
- // Queue of execution data for repeatable lists
- queue = [],
-
- // Index of currently firing callback (modified by add/remove as needed)
- firingIndex = -1,
-
- // Fire callbacks
- fire = function() {
-
- // Enforce single-firing
- locked = options.once;
-
- // Execute callbacks for all pending executions,
- // respecting firingIndex overrides and runtime changes
- fired = firing = true;
- for ( ; queue.length; firingIndex = -1 ) {
- memory = queue.shift();
- while ( ++firingIndex < list.length ) {
-
- // Run callback and check for early termination
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
- options.stopOnFalse ) {
-
- // Jump to end and forget the data so .add doesn't re-fire
- firingIndex = list.length;
- memory = false;
- }
- }
- }
-
- // Forget the data if we're done with it
- if ( !options.memory ) {
- memory = false;
- }
-
- firing = false;
-
- // Clean up if we're done firing for good
- if ( locked ) {
-
- // Keep an empty list if we have data for future add calls
- if ( memory ) {
- list = [];
-
- // Otherwise, this object is spent
- } else {
- list = "";
- }
- }
- },
-
- // Actual Callbacks object
- self = {
-
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
-
- // If we have memory from a past run, we should fire after adding
- if ( memory && !firing ) {
- firingIndex = list.length - 1;
- queue.push( memory );
- }
-
- ( function add( args ) {
- jQuery.each( args, function( _, arg ) {
- if ( jQuery.isFunction( arg ) ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
-
- // Inspect recursively
- add( arg );
- }
- } );
- } )( arguments );
-
- if ( memory && !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Remove a callback from the list
- remove: function() {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
-
- // Handle firing indexes
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- } );
- return this;
- },
-
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ?
- jQuery.inArray( fn, list ) > -1 :
- list.length > 0;
- },
-
- // Remove all callbacks from the list
- empty: function() {
- if ( list ) {
- list = [];
- }
- return this;
- },
-
- // Disable .fire and .add
- // Abort any current/pending executions
- // Clear all callbacks and values
- disable: function() {
- locked = queue = [];
- list = memory = "";
- return this;
- },
- disabled: function() {
- return !list;
- },
-
- // Disable .fire
- // Also disable .add unless we have memory (since it would have no effect)
- // Abort any pending executions
- lock: function() {
- locked = queue = [];
- if ( !memory ) {
- list = memory = "";
- }
- return this;
- },
- locked: function() {
- return !!locked;
- },
-
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( !locked ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- queue.push( args );
- if ( !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
-
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/core.js b/ecomp-portal-FE/client/bower_components/jquery/src/core.js
deleted file mode 100644
index 713c1a3c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/core.js
+++ /dev/null
@@ -1,494 +0,0 @@
-define( [
- "./var/arr",
- "./var/document",
- "./var/slice",
- "./var/concat",
- "./var/push",
- "./var/indexOf",
- "./var/class2type",
- "./var/toString",
- "./var/hasOwn",
- "./var/support"
-], function( arr, document, slice, concat, push, indexOf, class2type, toString, hasOwn, support ) {
-
-var
- version = "@VERSION",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
-
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- },
-
- // Support: Android<4.1
- // Make sure we trim BOM and NBSP
- rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
-
- // Matches dashed string for camelizing
- rmsPrefix = /^-ms-/,
- rdashAlpha = /-([\da-z])/gi,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn = jQuery.prototype = {
-
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // Start with an empty selector
- selector: "",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num != null ?
-
- // Return just the one element from the set
- ( num < 0 ? this[ num + this.length ] : this[ num ] ) :
-
- // Return all the elements in a clean array
- slice.call( this );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
- ret.context = this.context;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- each: function( callback ) {
- return jQuery.each( this, callback );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map( this, function( elem, i ) {
- return callback.call( elem, i, elem );
- } ) );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor();
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: arr.sort,
- splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[ 0 ] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // Skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
- target = {};
- }
-
- // Extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
-
- // Only deal with non-null/undefined values
- if ( ( options = arguments[ i ] ) != null ) {
-
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
-
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray( src ) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject( src ) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend( {
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- isFunction: function( obj ) {
- return jQuery.type( obj ) === "function";
- },
-
- isArray: Array.isArray,
-
- isWindow: function( obj ) {
- return obj != null && obj === obj.window;
- },
-
- isNumeric: function( obj ) {
-
- // parseFloat NaNs numeric-cast false positives (null|true|false|"")
- // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
- // subtraction forces infinities to NaN
- // adding 1 corrects loss of precision from parseFloat (#15100)
- var realStringObj = obj && obj.toString();
- return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0;
- },
-
- isPlainObject: function( obj ) {
- var key;
-
- // Not plain objects:
- // - Any object or value whose internal [[Class]] property is not "[object Object]"
- // - DOM nodes
- // - window
- if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call( obj, "constructor" ) &&
- !hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) {
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- isEmptyObject: function( obj ) {
- var name;
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- type: function( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
-
- // Support: Android<4.0, iOS<6 (functionish RegExp)
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
- },
-
- // Evaluates a script in a global context
- globalEval: function( code ) {
- var script,
- indirect = eval;
-
- code = jQuery.trim( code );
-
- if ( code ) {
-
- // If the code includes a valid, prologue position
- // strict mode pragma, execute code by injecting a
- // script tag into the document.
- if ( code.indexOf( "use strict" ) === 1 ) {
- script = document.createElement( "script" );
- script.text = code;
- document.head.appendChild( script ).parentNode.removeChild( script );
- } else {
-
- // Otherwise, avoid the DOM node creation, insertion
- // and removal by using an indirect global eval
-
- indirect( code );
- }
- }
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Support: IE9-11+
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
- },
-
- each: function( obj, callback ) {
- var length, i = 0;
-
- if ( isArrayLike( obj ) ) {
- length = obj.length;
- for ( ; i < length; i++ ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- }
-
- return obj;
- },
-
- // Support: Android<4.1
- trim: function( text ) {
- return text == null ?
- "" :
- ( text + "" ).replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArrayLike( Object( arr ) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- return arr == null ? -1 : indexOf.call( arr, elem, i );
- },
-
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- for ( ; j < len; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var length, value,
- i = 0,
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArrayLike( elems ) ) {
- length = elems.length;
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- var tmp, args, proxy;
-
- if ( typeof context === "string" ) {
- tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- args = slice.call( arguments, 2 );
- proxy = function() {
- return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
- return proxy;
- },
-
- now: Date.now,
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-} );
-
-// JSHint would error on this code due to the Symbol not being defined in ES5.
-// Defining this global in .jshintrc would create a danger of using the global
-// unguarded in another place, it seems safer to just disable JSHint for these
-// three lines.
-/* jshint ignore: start */
-if ( typeof Symbol === "function" ) {
- jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-/* jshint ignore: end */
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( i, name ) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
- // Support: iOS 8.2 (not reproducible in simulator)
- // `in` check used to prevent JIT error (gh-2145)
- // hasOwn isn't used here due to false negatives
- // regarding Nodelist length in IE
- var length = !!obj && "length" in obj && obj.length,
- type = jQuery.type( obj );
-
- if ( type === "function" || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/core/access.js b/ecomp-portal-FE/client/bower_components/jquery/src/core/access.js
deleted file mode 100644
index 19f79efa..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/core/access.js
+++ /dev/null
@@ -1,65 +0,0 @@
-define( [
- "../core"
-], function( jQuery ) {
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- len = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( jQuery.type( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !jQuery.isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
-
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < len; i++ ) {
- fn(
- elems[ i ], key, raw ?
- value :
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
- );
- }
- }
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- len ? fn( elems[ 0 ], key ) : emptyGet;
-};
-
-return access;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/core/init.js b/ecomp-portal-FE/client/bower_components/jquery/src/core/init.js
deleted file mode 100644
index c2b6c94d..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/core/init.js
+++ /dev/null
@@ -1,134 +0,0 @@
-// Initialize a jQuery object
-define( [
- "../core",
- "../var/document",
- "./var/rsingleTag",
- "../traversing/findFilter"
-], function( jQuery, document, rsingleTag ) {
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // A simple way to check for HTML strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
-
- init = jQuery.fn.init = function( selector, context, root ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Method init() accepts an alternate rootjQuery
- // so migrate can support jQuery.sub (gh-2101)
- root = root || rootjQuery;
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector[ 0 ] === "<" &&
- selector[ selector.length - 1 ] === ">" &&
- selector.length >= 3 ) {
-
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && ( match[ 1 ] || !context ) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[ 1 ] ) {
- context = context instanceof jQuery ? context[ 0 ] : context;
-
- // Option to run scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[ 1 ],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
-
- // Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[ 2 ] );
-
- // Support: Blackberry 4.6
- // gEBID returns nodes no longer in the document (#6963)
- if ( elem && elem.parentNode ) {
-
- // Inject the element directly into the jQuery object
- this.length = 1;
- this[ 0 ] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || root ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this.context = this[ 0 ] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return root.ready !== undefined ?
- root.ready( selector ) :
-
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- if ( selector.selector !== undefined ) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-return init;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/core/parseHTML.js b/ecomp-portal-FE/client/bower_components/jquery/src/core/parseHTML.js
deleted file mode 100644
index 3524abd6..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/core/parseHTML.js
+++ /dev/null
@@ -1,41 +0,0 @@
-define( [
- "../core",
- "../var/document",
- "./var/rsingleTag",
- "../manipulation/buildFragment"
-], function( jQuery, document, rsingleTag, buildFragment ) {
-
-// Argument "data" should be string of html
-// context (optional): If specified, the fragment will be created in this context,
-// defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-jQuery.parseHTML = function( data, context, keepScripts ) {
- if ( !data || typeof data !== "string" ) {
- return null;
- }
- if ( typeof context === "boolean" ) {
- keepScripts = context;
- context = false;
- }
- context = context || document;
-
- var parsed = rsingleTag.exec( data ),
- scripts = !keepScripts && [];
-
- // Single tag
- if ( parsed ) {
- return [ context.createElement( parsed[ 1 ] ) ];
- }
-
- parsed = buildFragment( [ data ], context, scripts );
-
- if ( scripts && scripts.length ) {
- jQuery( scripts ).remove();
- }
-
- return jQuery.merge( [], parsed.childNodes );
-};
-
-return jQuery.parseHTML;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/core/ready.js b/ecomp-portal-FE/client/bower_components/jquery/src/core/ready.js
deleted file mode 100644
index 7d93e676..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/core/ready.js
+++ /dev/null
@@ -1,103 +0,0 @@
-define( [
- "../core",
- "../var/document",
- "../core/init",
- "../deferred"
-], function( jQuery, document ) {
-
-// The deferred used on DOM ready
-var readyList;
-
-jQuery.fn.ready = function( fn ) {
-
- // Add the callback
- jQuery.ready.promise().done( fn );
-
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.triggerHandler ) {
- jQuery( document ).triggerHandler( "ready" );
- jQuery( document ).off( "ready" );
- }
- }
-} );
-
-/**
- * The ready event handler and self cleanup method
- */
-function completed() {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
- jQuery.ready();
-}
-
-jQuery.ready.promise = function( obj ) {
- if ( !readyList ) {
-
- readyList = jQuery.Deferred();
-
- // Catch cases where $(document).ready() is called
- // after the browser event has already occurred.
- // Support: IE9-10 only
- // Older IE sometimes signals "interactive" too soon
- if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
- } else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
- }
- }
- return readyList.promise( obj );
-};
-
-// Kick off the DOM ready check even if the user does not
-jQuery.ready.promise();
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/core/var/rsingleTag.js b/ecomp-portal-FE/client/bower_components/jquery/src/core/var/rsingleTag.js
deleted file mode 100644
index 1a55ee39..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/core/var/rsingleTag.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( function() {
-
- // Match a standalone tag
- return ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css.js b/ecomp-portal-FE/client/bower_components/jquery/src/css.js
deleted file mode 100644
index bd131399..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css.js
+++ /dev/null
@@ -1,502 +0,0 @@
-define( [
- "./core",
- "./var/pnum",
- "./core/access",
- "./css/var/rmargin",
- "./var/document",
- "./var/rcssNum",
- "./css/var/rnumnonpx",
- "./css/var/cssExpand",
- "./css/var/isHidden",
- "./css/var/getStyles",
- "./css/var/swap",
- "./css/curCSS",
- "./css/adjustCSS",
- "./css/defaultDisplay",
- "./css/addGetHookIf",
- "./css/support",
- "./data/var/dataPriv",
-
- "./core/init",
- "./core/ready",
- "./selector" // contains
-], function( jQuery, pnum, access, rmargin, document, rcssNum, rnumnonpx, cssExpand, isHidden,
- getStyles, swap, curCSS, adjustCSS, defaultDisplay, addGetHookIf, support, dataPriv ) {
-
-var
-
- // Swappable if display is none or starts with table
- // except "table", "table-cell", or "table-caption"
- // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssNormalTransform = {
- letterSpacing: "0",
- fontWeight: "400"
- },
-
- cssPrefixes = [ "Webkit", "O", "Moz", "ms" ],
- emptyStyle = document.createElement( "div" ).style;
-
-// Return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( name ) {
-
- // Shortcut for names that are not vendor prefixed
- if ( name in emptyStyle ) {
- return name;
- }
-
- // Check for vendor prefixed names
- var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
- i = cssPrefixes.length;
-
- while ( i-- ) {
- name = cssPrefixes[ i ] + capName;
- if ( name in emptyStyle ) {
- return name;
- }
- }
-}
-
-function setPositiveNumber( elem, value, subtract ) {
-
- // Any relative (+/-) values have already been
- // normalized at this point
- var matches = rcssNum.exec( value );
- return matches ?
-
- // Guard against undefined "subtract", e.g., when used as in cssHooks
- Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
- value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
-
- // If we already have the right measurement, avoid augmentation
- 4 :
-
- // Otherwise initialize for horizontal or vertical properties
- name === "width" ? 1 : 0,
-
- val = 0;
-
- for ( ; i < 4; i += 2 ) {
-
- // Both box models exclude margin, so add it if we want it
- if ( extra === "margin" ) {
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
- }
-
- if ( isBorderBox ) {
-
- // border-box includes padding, so remove it if we want content
- if ( extra === "content" ) {
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
- }
-
- // At this point, extra isn't border nor margin, so remove border
- if ( extra !== "margin" ) {
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- } else {
-
- // At this point, extra isn't content, so add padding
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
- // At this point, extra isn't content nor padding, so add border
- if ( extra !== "padding" ) {
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- }
- }
-
- return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property, which is equivalent to the border-box value
- var valueIsBorderBox = true,
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
- styles = getStyles( elem ),
- isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
- // Some non-html elements return undefined for offsetWidth, so check for null/undefined
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
- if ( val <= 0 || val == null ) {
-
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name, styles );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test( val ) ) {
- return val;
- }
-
- // Check for style in case a browser which returns unreliable values
- // for getComputedStyle silently falls back to the reliable elem.style
- valueIsBorderBox = isBorderBox &&
- ( support.boxSizingReliable() || val === elem.style[ name ] );
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
- }
-
- // Use the active box-sizing model to add/subtract irrelevant styles
- return ( val +
- augmentWidthOrHeight(
- elem,
- name,
- extra || ( isBorderBox ? "border" : "content" ),
- valueIsBorderBox,
- styles
- )
- ) + "px";
-}
-
-function showHide( elements, show ) {
- var display, elem, hidden,
- values = [],
- index = 0,
- length = elements.length;
-
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- values[ index ] = dataPriv.get( elem, "olddisplay" );
- display = elem.style.display;
- if ( show ) {
-
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !values[ index ] && display === "none" ) {
- elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( elem.style.display === "" && isHidden( elem ) ) {
- values[ index ] = dataPriv.access(
- elem,
- "olddisplay",
- defaultDisplay( elem.nodeName )
- );
- }
- } else {
- hidden = isHidden( elem );
-
- if ( display !== "none" || !hidden ) {
- dataPriv.set(
- elem,
- "olddisplay",
- hidden ? display : jQuery.css( elem, "display" )
- );
- }
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( index = 0; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
- if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
- elem.style.display = show ? values[ index ] || "" : "none";
- }
- }
-
- return elements;
-}
-
-jQuery.extend( {
-
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
-
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
- }
- }
- }
- },
-
- // Don't automatically add "px" to these possibly-unitless properties
- cssNumber: {
- "animationIterationCount": true,
- "columnCount": true,
- "fillOpacity": true,
- "flexGrow": true,
- "flexShrink": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "order": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- "float": "cssFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
-
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, hooks,
- origName = jQuery.camelCase( name ),
- style = elem.style;
-
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Gets hook for the prefixed version, then unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // Convert "+=" or "-=" to relative numbers (#7345)
- if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
- value = adjustCSS( elem, name, ret );
-
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that null and NaN values aren't set (#7116)
- if ( value == null || value !== value ) {
- return;
- }
-
- // If a number was passed in, add the unit (except for certain CSS properties)
- if ( type === "number" ) {
- value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
- }
-
- // Support: IE9-11+
- // background-* props affect original clone's values
- if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
- style[ name ] = "inherit";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !( "set" in hooks ) ||
- ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
-
- style[ name ] = value;
- }
-
- } else {
-
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks &&
- ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
-
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra, styles ) {
- var val, num, hooks,
- origName = jQuery.camelCase( name );
-
- // Make sure that we're working with the right name
- name = jQuery.cssProps[ origName ] ||
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
-
- // Try prefixed name followed by the unprefixed name
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks ) {
- val = hooks.get( elem, true, extra );
- }
-
- // Otherwise, if a way to get the computed value exists, use that
- if ( val === undefined ) {
- val = curCSS( elem, name, styles );
- }
-
- // Convert "normal" to computed value
- if ( val === "normal" && name in cssNormalTransform ) {
- val = cssNormalTransform[ name ];
- }
-
- // Make numeric if forced or a qualifier was provided and val looks numeric
- if ( extra === "" || extra ) {
- num = parseFloat( val );
- return extra === true || isFinite( num ) ? num || 0 : val;
- }
- return val;
- }
-} );
-
-jQuery.each( [ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
-
- // Certain elements can have dimension info if we invisibly show them
- // but it must have a current display style that would benefit
- return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
- elem.offsetWidth === 0 ?
- swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- } ) :
- getWidthOrHeight( elem, name, extra );
- }
- },
-
- set: function( elem, value, extra ) {
- var matches,
- styles = extra && getStyles( elem ),
- subtract = extra && augmentWidthOrHeight(
- elem,
- name,
- extra,
- jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
- styles
- );
-
- // Convert to pixels if value adjustment is needed
- if ( subtract && ( matches = rcssNum.exec( value ) ) &&
- ( matches[ 3 ] || "px" ) !== "px" ) {
-
- elem.style[ name ] = value;
- value = jQuery.css( elem, name );
- }
-
- return setPositiveNumber( elem, value, subtract );
- }
- };
-} );
-
-jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
- function( elem, computed ) {
- if ( computed ) {
- return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
- elem.getBoundingClientRect().left -
- swap( elem, { marginLeft: 0 }, function() {
- return elem.getBoundingClientRect().left;
- } )
- ) + "px";
- }
- }
-);
-
-// Support: Android 2.3
-jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
- function( elem, computed ) {
- if ( computed ) {
- return swap( elem, { "display": "inline-block" },
- curCSS, [ elem, "marginRight" ] );
- }
- }
-);
-
-// These hooks are used by animate to expand properties
-jQuery.each( {
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i = 0,
- expanded = {},
-
- // Assumes a single number if not a string
- parts = typeof value === "string" ? value.split( " " ) : [ value ];
-
- for ( ; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-
- if ( !rmargin.test( prefix ) ) {
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
- }
-} );
-
-jQuery.fn.extend( {
- css: function( name, value ) {
- return access( this, function( elem, name, value ) {
- var styles, len,
- map = {},
- i = 0;
-
- if ( jQuery.isArray( name ) ) {
- styles = getStyles( elem );
- len = name.length;
-
- for ( ; i < len; i++ ) {
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
- }
-
- return map;
- }
-
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
- },
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each( function() {
- if ( isHidden( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- } );
- }
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/addGetHookIf.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/addGetHookIf.js
deleted file mode 100644
index 9cd21f68..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/addGetHookIf.js
+++ /dev/null
@@ -1,24 +0,0 @@
-define( function() {
-
-function addGetHookIf( conditionFn, hookFn ) {
-
- // Define the hook, we'll check on the first run if it's really needed.
- return {
- get: function() {
- if ( conditionFn() ) {
-
- // Hook not needed (or it's not possible to use it due
- // to missing dependency), remove it.
- delete this.get;
- return;
- }
-
- // Hook needed; redefine it so that the support test is not executed again.
- return ( this.get = hookFn ).apply( this, arguments );
- }
- };
-}
-
-return addGetHookIf;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/adjustCSS.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/adjustCSS.js
deleted file mode 100644
index 48fcfec0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/adjustCSS.js
+++ /dev/null
@@ -1,65 +0,0 @@
-define( [
- "../core",
- "../var/rcssNum"
-], function( jQuery, rcssNum ) {
-
-function adjustCSS( elem, prop, valueParts, tween ) {
- var adjusted,
- scale = 1,
- maxIterations = 20,
- currentValue = tween ?
- function() { return tween.cur(); } :
- function() { return jQuery.css( elem, prop, "" ); },
- initial = currentValue(),
- unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
- rcssNum.exec( jQuery.css( elem, prop ) );
-
- if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
- // Trust units reported by jQuery.css
- unit = unit || initialInUnit[ 3 ];
-
- // Make sure we update the tween properties later on
- valueParts = valueParts || [];
-
- // Iteratively approximate from a nonzero starting point
- initialInUnit = +initial || 1;
-
- do {
-
- // If previous iteration zeroed out, double until we get *something*.
- // Use string for doubling so we don't accidentally see scale as unchanged below
- scale = scale || ".5";
-
- // Adjust and apply
- initialInUnit = initialInUnit / scale;
- jQuery.style( elem, prop, initialInUnit + unit );
-
- // Update scale, tolerating zero or NaN from tween.cur()
- // Break the loop if scale is unchanged or perfect, or if we've just had enough.
- } while (
- scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
- );
- }
-
- if ( valueParts ) {
- initialInUnit = +initialInUnit || +initial || 0;
-
- // Apply relative offset (+=/-=) if specified
- adjusted = valueParts[ 1 ] ?
- initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
- +valueParts[ 2 ];
- if ( tween ) {
- tween.unit = unit;
- tween.start = initialInUnit;
- tween.end = adjusted;
- }
- }
- return adjusted;
-}
-
-return adjustCSS;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/curCSS.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/curCSS.js
deleted file mode 100644
index 084f8c7b..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/curCSS.js
+++ /dev/null
@@ -1,60 +0,0 @@
-define( [
- "../core",
- "./var/rnumnonpx",
- "./var/rmargin",
- "./var/getStyles",
- "./support",
- "../selector" // Get jQuery.contains
-], function( jQuery, rnumnonpx, rmargin, getStyles, support ) {
-
-function curCSS( elem, name, computed ) {
- var width, minWidth, maxWidth, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
- ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
-
- // Support: Opera 12.1x only
- // Fall back to style even without computed
- // computed is undefined for elems on document fragments
- if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) {
- ret = jQuery.style( elem, name );
- }
-
- // Support: IE9
- // getPropertyValue is only needed for .css('filter') (#12537)
- if ( computed ) {
-
- // A tribute to the "awesome hack by Dean Edwards"
- // Android Browser returns percentage for some values,
- // but width seems to be reliably pixels.
- // This is against the CSSOM draft spec:
- // http://dev.w3.org/csswg/cssom/#resolved-values
- if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
- // Remember the original values
- width = style.width;
- minWidth = style.minWidth;
- maxWidth = style.maxWidth;
-
- // Put in the new values to get a computed value out
- style.minWidth = style.maxWidth = style.width = ret;
- ret = computed.width;
-
- // Revert the changed values
- style.width = width;
- style.minWidth = minWidth;
- style.maxWidth = maxWidth;
- }
- }
-
- return ret !== undefined ?
-
- // Support: IE9-11+
- // IE returns zIndex value as an integer.
- ret + "" :
- ret;
-}
-
-return curCSS;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/defaultDisplay.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/defaultDisplay.js
deleted file mode 100644
index b1fb5774..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/defaultDisplay.js
+++ /dev/null
@@ -1,72 +0,0 @@
-define( [
- "../core",
- "../var/document",
- "../manipulation" // appendTo
-], function( jQuery, document ) {
-
-var iframe,
- elemdisplay = {
-
- // Support: Firefox
- // We have to pre-define these values for FF (#10227)
- HTML: "block",
- BODY: "block"
- };
-
-/**
- * Retrieve the actual display of a element
- * @param {String} name nodeName of the element
- * @param {Object} doc Document object
- */
-
-// Called only from within defaultDisplay
-function actualDisplay( name, doc ) {
- var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
-
- display = jQuery.css( elem[ 0 ], "display" );
-
- // We don't have any data stored on the element,
- // so use "detach" method as fast way to get rid of the element
- elem.detach();
-
- return display;
-}
-
-/**
- * Try to determine the default display value of an element
- * @param {String} nodeName
- */
-function defaultDisplay( nodeName ) {
- var doc = document,
- display = elemdisplay[ nodeName ];
-
- if ( !display ) {
- display = actualDisplay( nodeName, doc );
-
- // If the simple way fails, read from inside an iframe
- if ( display === "none" || !display ) {
-
- // Use the already-created iframe if possible
- iframe = ( iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" ) )
- .appendTo( doc.documentElement );
-
- // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
- doc = iframe[ 0 ].contentDocument;
-
- // Support: IE
- doc.write();
- doc.close();
-
- display = actualDisplay( nodeName, doc );
- iframe.detach();
- }
-
- // Store the correct default display
- elemdisplay[ nodeName ] = display;
- }
-
- return display;
-}
-
-return defaultDisplay;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/hiddenVisibleSelectors.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/hiddenVisibleSelectors.js
deleted file mode 100644
index cf0955d3..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/hiddenVisibleSelectors.js
+++ /dev/null
@@ -1,18 +0,0 @@
-define( [
- "../core",
- "../selector"
-], function( jQuery ) {
-
-jQuery.expr.filters.hidden = function( elem ) {
- return !jQuery.expr.filters.visible( elem );
-};
-jQuery.expr.filters.visible = function( elem ) {
-
- // Support: Opera <= 12.12
- // Opera reports offsetWidths and offsetHeights less than zero on some elements
- // Use OR instead of AND as the element is not visible if either is true
- // See tickets #10406 and #13132
- return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;
-};
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/showHide.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/showHide.js
deleted file mode 100644
index 35e15bde..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/showHide.js
+++ /dev/null
@@ -1,48 +0,0 @@
-define( [
- "../data/var/dataPriv"
-], function( dataPriv ) {
-
-function showHide( elements, show ) {
- var display, elem,
- values = [],
- index = 0,
- length = elements.length;
-
- // Determine new display value for elements that need to change
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- display = elem.style.display;
- if ( show ) {
- if ( display === "none" ) {
-
- // Restore a pre-hide() value if we have one
- values[ index ] = dataPriv.get( elem, "display" ) || "";
- }
- } else {
- if ( display !== "none" ) {
- values[ index ] = "none";
-
- // Remember the value we're replacing
- dataPriv.set( elem, "display", display );
- }
- }
- }
-
- // Set the display of the elements in a second loop
- // to avoid the constant reflow
- for ( index = 0; index < length; index++ ) {
- if ( values[ index ] != null ) {
- elements[ index ].style.display = values[ index ];
- }
- }
-
- return elements;
-}
-
-return showHide;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/support.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/support.js
deleted file mode 100644
index 7e6e5133..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/support.js
+++ /dev/null
@@ -1,121 +0,0 @@
-define( [
- "../core",
- "../var/document",
- "../var/documentElement",
- "../var/support"
-], function( jQuery, document, documentElement, support ) {
-
-( function() {
- var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
- container = document.createElement( "div" ),
- div = document.createElement( "div" );
-
- // Finish early in limited (non-browser) environments
- if ( !div.style ) {
- return;
- }
-
- // Support: IE9-11+
- // Style of cloned element affects source element cloned (#8908)
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
- "padding:0;margin-top:1px;position:absolute";
- container.appendChild( div );
-
- // Executing both pixelPosition & boxSizingReliable tests require only one layout
- // so they're executed at the same time to save the second computation.
- function computeStyleTests() {
- div.style.cssText =
-
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;" +
- "position:relative;display:block;" +
- "margin:auto;border:1px;padding:1px;" +
- "top:1%;width:50%";
- div.innerHTML = "";
- documentElement.appendChild( container );
-
- var divStyle = window.getComputedStyle( div );
- pixelPositionVal = divStyle.top !== "1%";
- reliableMarginLeftVal = divStyle.marginLeft === "2px";
- boxSizingReliableVal = divStyle.width === "4px";
-
- // Support: Android 4.0 - 4.3 only
- // Some styles come back with percentage values, even though they shouldn't
- div.style.marginRight = "50%";
- pixelMarginRightVal = divStyle.marginRight === "4px";
-
- documentElement.removeChild( container );
- }
-
- jQuery.extend( support, {
- pixelPosition: function() {
-
- // This test is executed only once but we still do memoizing
- // since we can use the boxSizingReliable pre-computing.
- // No need to check if the test was already performed, though.
- computeStyleTests();
- return pixelPositionVal;
- },
- boxSizingReliable: function() {
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return boxSizingReliableVal;
- },
- pixelMarginRight: function() {
-
- // Support: Android 4.0-4.3
- // We're checking for boxSizingReliableVal here instead of pixelMarginRightVal
- // since that compresses better and they're computed together anyway.
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return pixelMarginRightVal;
- },
- reliableMarginLeft: function() {
-
- // Support: IE <=8 only, Android 4.0 - 4.3 only, Firefox <=3 - 37
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return reliableMarginLeftVal;
- },
- reliableMarginRight: function() {
-
- // Support: Android 2.3
- // Check if div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container. (#3333)
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- // This support function is only executed once so no memoizing is needed.
- var ret,
- marginDiv = div.appendChild( document.createElement( "div" ) );
-
- // Reset CSS: box-sizing; display; margin; border; padding
- marginDiv.style.cssText = div.style.cssText =
-
- // Support: Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:content-box;box-sizing:content-box;" +
- "display:block;margin:0;border:0;padding:0";
- marginDiv.style.marginRight = marginDiv.style.width = "0";
- div.style.width = "1px";
- documentElement.appendChild( container );
-
- ret = !parseFloat( window.getComputedStyle( marginDiv ).marginRight );
-
- documentElement.removeChild( container );
- div.removeChild( marginDiv );
-
- return ret;
- }
- } );
-} )();
-
-return support;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/cssExpand.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/cssExpand.js
deleted file mode 100644
index 9f8194dc..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/cssExpand.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return [ "Top", "Right", "Bottom", "Left" ];
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js
deleted file mode 100644
index 02a4b819..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js
+++ /dev/null
@@ -1,15 +0,0 @@
-define( function() {
- return function( elem ) {
-
- // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
- // IE throws on elements created in popups
- // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
- var view = elem.ownerDocument.defaultView;
-
- if ( !view || !view.opener ) {
- view = window;
- }
-
- return view.getComputedStyle( elem );
- };
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/isHidden.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/isHidden.js
deleted file mode 100644
index 7997efff..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/isHidden.js
+++ /dev/null
@@ -1,16 +0,0 @@
-define( [
- "../../core",
- "../../selector"
-
- // css is assumed
-], function( jQuery ) {
-
- return function( elem, el ) {
-
- // isHidden might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
- return jQuery.css( elem, "display" ) === "none" ||
- !jQuery.contains( elem.ownerDocument, elem );
- };
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/rmargin.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/rmargin.js
deleted file mode 100644
index 9be22124..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/rmargin.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return ( /^margin/ );
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/rnumnonpx.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/rnumnonpx.js
deleted file mode 100644
index ed13f0b9..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/rnumnonpx.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "../../var/pnum"
-], function( pnum ) {
- return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/swap.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/swap.js
deleted file mode 100644
index b6d3b679..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/swap.js
+++ /dev/null
@@ -1,24 +0,0 @@
-define( function() {
-
-// A method for quickly swapping in/out CSS properties to get correct calculations.
-return function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
-};
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/data.js b/ecomp-portal-FE/client/bower_components/jquery/src/data.js
deleted file mode 100644
index b626fda4..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/data.js
+++ /dev/null
@@ -1,187 +0,0 @@
-define( [
- "./core",
- "./core/access",
- "./data/var/dataPriv",
- "./data/var/dataUser"
-], function( jQuery, access, dataPriv, dataUser ) {
-
-// Implementation Summary
-//
-// 1. Enforce API surface and semantic compatibility with 1.9.x branch
-// 2. Improve the module's maintainability by reducing the storage
-// paths to a single mechanism.
-// 3. Use the same single mechanism to support "private" and "user" data.
-// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-// 5. Avoid exposing implementation details on user objects (eg. expando properties)
-// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /[A-Z]/g;
-
-function dataAttr( elem, key, data ) {
- var name;
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
-
- // Only convert to a number if it doesn't change the string
- +data + "" === data ? +data :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch ( e ) {}
-
- // Make sure we set the data so it isn't changed later
- dataUser.set( elem, key, data );
- } else {
- data = undefined;
- }
- }
- return data;
-}
-
-jQuery.extend( {
- hasData: function( elem ) {
- return dataUser.hasData( elem ) || dataPriv.hasData( elem );
- },
-
- data: function( elem, name, data ) {
- return dataUser.access( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- dataUser.remove( elem, name );
- },
-
- // TODO: Now that all calls to _data and _removeData have been replaced
- // with direct calls to dataPriv methods, these can be deprecated.
- _data: function( elem, name, data ) {
- return dataPriv.access( elem, name, data );
- },
-
- _removeData: function( elem, name ) {
- dataPriv.remove( elem, name );
- }
-} );
-
-jQuery.fn.extend( {
- data: function( key, value ) {
- var i, name, data,
- elem = this[ 0 ],
- attrs = elem && elem.attributes;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = dataUser.get( elem );
-
- if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE11+
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.slice( 5 ) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- dataPriv.set( elem, "hasDataAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each( function() {
- dataUser.set( this, key );
- } );
- }
-
- return access( this, function( value ) {
- var data, camelKey;
-
- // The calling jQuery object (element matches) is not empty
- // (and therefore has an element appears at this[ 0 ]) and the
- // `value` parameter was not undefined. An empty jQuery object
- // will result in `undefined` for elem = this[ 0 ] which will
- // throw an exception if an attempt to read a data cache is made.
- if ( elem && value === undefined ) {
-
- // Attempt to get data from the cache
- // with the key as-is
- data = dataUser.get( elem, key ) ||
-
- // Try to find dashed key if it exists (gh-2779)
- // This is for 2.2.x only
- dataUser.get( elem, key.replace( rmultiDash, "-$&" ).toLowerCase() );
-
- if ( data !== undefined ) {
- return data;
- }
-
- camelKey = jQuery.camelCase( key );
-
- // Attempt to get data from the cache
- // with the key camelized
- data = dataUser.get( elem, camelKey );
- if ( data !== undefined ) {
- return data;
- }
-
- // Attempt to "discover" the data in
- // HTML5 custom data-* attrs
- data = dataAttr( elem, camelKey, undefined );
- if ( data !== undefined ) {
- return data;
- }
-
- // We tried really hard, but the data doesn't exist.
- return;
- }
-
- // Set the data...
- camelKey = jQuery.camelCase( key );
- this.each( function() {
-
- // First, attempt to store a copy or reference of any
- // data that might've been store with a camelCased key.
- var data = dataUser.get( this, camelKey );
-
- // For HTML5 data-* attribute interop, we have to
- // store property names with dashes in a camelCase form.
- // This might not apply to all properties...*
- dataUser.set( this, camelKey, value );
-
- // *... In the case of properties that might _actually_
- // have dashes, we need to also store a copy of that
- // unchanged property.
- if ( key.indexOf( "-" ) > -1 && data !== undefined ) {
- dataUser.set( this, key, value );
- }
- } );
- }, null, value, arguments.length > 1, null, true );
- },
-
- removeData: function( key ) {
- return this.each( function() {
- dataUser.remove( this, key );
- } );
- }
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/data/Data.js b/ecomp-portal-FE/client/bower_components/jquery/src/data/Data.js
deleted file mode 100644
index 0e29c1fc..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/data/Data.js
+++ /dev/null
@@ -1,200 +0,0 @@
-define( [
- "../core",
- "../var/rnotwhite",
- "./var/acceptData"
-], function( jQuery, rnotwhite, acceptData ) {
-
-function Data() {
- this.expando = jQuery.expando + Data.uid++;
-}
-
-Data.uid = 1;
-
-Data.prototype = {
-
- register: function( owner, initial ) {
- var value = initial || {};
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable, non-writable property
- // configurability must be true to allow the property to be
- // deleted with the delete operator
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- writable: true,
- configurable: true
- } );
- }
- return owner[ this.expando ];
- },
- cache: function( owner ) {
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( !acceptData( owner ) ) {
- return {};
- }
-
- // Check if the owner object already has a cache
- var value = owner[ this.expando ];
-
- // If not, create one
- if ( !value ) {
- value = {};
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( acceptData( owner ) ) {
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable property
- // configurable must be true to allow the property to be
- // deleted when data is removed
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- configurable: true
- } );
- }
- }
- }
-
- return value;
- },
- set: function( owner, data, value ) {
- var prop,
- cache = this.cache( owner );
-
- // Handle: [ owner, key, value ] args
- if ( typeof data === "string" ) {
- cache[ data ] = value;
-
- // Handle: [ owner, { properties } ] args
- } else {
-
- // Copy the properties one-by-one to the cache object
- for ( prop in data ) {
- cache[ prop ] = data[ prop ];
- }
- }
- return cache;
- },
- get: function( owner, key ) {
- return key === undefined ?
- this.cache( owner ) :
- owner[ this.expando ] && owner[ this.expando ][ key ];
- },
- access: function( owner, key, value ) {
- var stored;
-
- // In cases where either:
- //
- // 1. No key was specified
- // 2. A string key was specified, but no value provided
- //
- // Take the "read" path and allow the get method to determine
- // which value to return, respectively either:
- //
- // 1. The entire cache object
- // 2. The data stored at the key
- //
- if ( key === undefined ||
- ( ( key && typeof key === "string" ) && value === undefined ) ) {
-
- stored = this.get( owner, key );
-
- return stored !== undefined ?
- stored : this.get( owner, jQuery.camelCase( key ) );
- }
-
- // When the key is not a string, or both a key and value
- // are specified, set or extend (existing objects) with either:
- //
- // 1. An object of properties
- // 2. A key and value
- //
- this.set( owner, key, value );
-
- // Since the "set" path can have two possible entry points
- // return the expected data based on which path was taken[*]
- return value !== undefined ? value : key;
- },
- remove: function( owner, key ) {
- var i, name, camel,
- cache = owner[ this.expando ];
-
- if ( cache === undefined ) {
- return;
- }
-
- if ( key === undefined ) {
- this.register( owner );
-
- } else {
-
- // Support array or space separated string of keys
- if ( jQuery.isArray( key ) ) {
-
- // If "name" is an array of keys...
- // When data is initially created, via ("key", "val") signature,
- // keys will be converted to camelCase.
- // Since there is no way to tell _how_ a key was added, remove
- // both plain key and camelCase key. #12786
- // This will only penalize the array argument path.
- name = key.concat( key.map( jQuery.camelCase ) );
- } else {
- camel = jQuery.camelCase( key );
-
- // Try the string as a key before any manipulation
- if ( key in cache ) {
- name = [ key, camel ];
- } else {
-
- // If a key with the spaces exists, use it.
- // Otherwise, create an array by matching non-whitespace
- name = camel;
- name = name in cache ?
- [ name ] : ( name.match( rnotwhite ) || [] );
- }
- }
-
- i = name.length;
-
- while ( i-- ) {
- delete cache[ name[ i ] ];
- }
- }
-
- // Remove the expando if there's no more data
- if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
- // Support: Chrome <= 35-45+
- // Webkit & Blink performance suffers when deleting properties
- // from DOM nodes, so set to undefined instead
- // https://code.google.com/p/chromium/issues/detail?id=378607
- if ( owner.nodeType ) {
- owner[ this.expando ] = undefined;
- } else {
- delete owner[ this.expando ];
- }
- }
- },
- hasData: function( owner ) {
- var cache = owner[ this.expando ];
- return cache !== undefined && !jQuery.isEmptyObject( cache );
- }
-};
-
-return Data;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/data/var/acceptData.js b/ecomp-portal-FE/client/bower_components/jquery/src/data/var/acceptData.js
deleted file mode 100644
index 6e15af12..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/data/var/acceptData.js
+++ /dev/null
@@ -1,18 +0,0 @@
-define( function() {
-
-/**
- * Determines whether an object can have data
- */
-return function( owner ) {
-
- // Accepts only:
- // - Node
- // - Node.ELEMENT_NODE
- // - Node.DOCUMENT_NODE
- // - Object
- // - Any
- /* jshint -W018 */
- return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-};
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/data/var/dataPriv.js b/ecomp-portal-FE/client/bower_components/jquery/src/data/var/dataPriv.js
deleted file mode 100644
index 9a1343ce..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/data/var/dataPriv.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "../Data"
-], function( Data ) {
- return new Data();
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/data/var/dataUser.js b/ecomp-portal-FE/client/bower_components/jquery/src/data/var/dataUser.js
deleted file mode 100644
index 9a1343ce..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/data/var/dataUser.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "../Data"
-], function( Data ) {
- return new Data();
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/deferred.js b/ecomp-portal-FE/client/bower_components/jquery/src/deferred.js
deleted file mode 100644
index d2cd6080..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/deferred.js
+++ /dev/null
@@ -1,158 +0,0 @@
-define( [
- "./core",
- "./var/slice",
- "./callbacks"
-], function( jQuery, slice ) {
-
-jQuery.extend( {
-
- Deferred: function( func ) {
- var tuples = [
-
- // action, add listener, listener list, final state
- [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],
- [ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ],
- [ "notify", "progress", jQuery.Callbacks( "memory" ) ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- then: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
- return jQuery.Deferred( function( newDefer ) {
- jQuery.each( tuples, function( i, tuple ) {
- var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
-
- // deferred[ done | fail | progress ] for forwarding actions to newDefer
- deferred[ tuple[ 1 ] ]( function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise()
- .progress( newDefer.notify )
- .done( newDefer.resolve )
- .fail( newDefer.reject );
- } else {
- newDefer[ tuple[ 0 ] + "With" ](
- this === promise ? newDefer.promise() : this,
- fn ? [ returned ] : arguments
- );
- }
- } );
- } );
- fns = null;
- } ).promise();
- },
-
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Keep pipe for back-compat
- promise.pipe = promise.then;
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 3 ];
-
- // promise[ done | fail | progress ] = list.add
- promise[ tuple[ 1 ] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add( function() {
-
- // state = [ resolved | rejected ]
- state = stateString;
-
- // [ reject_list | resolve_list ].disable; progress_list.lock
- }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
- }
-
- // deferred[ resolve | reject | notify ]
- deferred[ tuple[ 0 ] ] = function() {
- deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments );
- return this;
- };
- deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
- } );
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( subordinate /* , ..., subordinateN */ ) {
- var i = 0,
- resolveValues = slice.call( arguments ),
- length = resolveValues.length,
-
- // the count of uncompleted subordinates
- remaining = length !== 1 ||
- ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
-
- // the master Deferred.
- // If resolveValues consist of only a single Deferred, just use that.
- deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
-
- // Update function for both resolve and progress values
- updateFunc = function( i, contexts, values ) {
- return function( value ) {
- contexts[ i ] = this;
- values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( values === progressValues ) {
- deferred.notifyWith( contexts, values );
- } else if ( !( --remaining ) ) {
- deferred.resolveWith( contexts, values );
- }
- };
- },
-
- progressValues, progressContexts, resolveContexts;
-
- // Add listeners to Deferred subordinates; treat others as resolved
- if ( length > 1 ) {
- progressValues = new Array( length );
- progressContexts = new Array( length );
- resolveContexts = new Array( length );
- for ( ; i < length; i++ ) {
- if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
- resolveValues[ i ].promise()
- .progress( updateFunc( i, progressContexts, progressValues ) )
- .done( updateFunc( i, resolveContexts, resolveValues ) )
- .fail( deferred.reject );
- } else {
- --remaining;
- }
- }
- }
-
- // If we're not waiting on anything, resolve the master
- if ( !remaining ) {
- deferred.resolveWith( resolveContexts, resolveValues );
- }
-
- return deferred.promise();
- }
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/deprecated.js b/ecomp-portal-FE/client/bower_components/jquery/src/deprecated.js
deleted file mode 100644
index c8298900..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/deprecated.js
+++ /dev/null
@@ -1,32 +0,0 @@
-define( [
- "./core"
-], function( jQuery ) {
-
-jQuery.fn.extend( {
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
-
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ?
- this.off( selector, "**" ) :
- this.off( types, selector || "**", fn );
- },
- size: function() {
- return this.length;
- }
-} );
-
-jQuery.fn.andSelf = jQuery.fn.addBack;
-
-} );
-
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/dimensions.js b/ecomp-portal-FE/client/bower_components/jquery/src/dimensions.js
deleted file mode 100644
index 30b55fbc..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/dimensions.js
+++ /dev/null
@@ -1,54 +0,0 @@
-define( [
- "./core",
- "./core/access",
- "./css"
-], function( jQuery, access ) {
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
- function( defaultExtra, funcName ) {
-
- // Margin is only for outerHeight, outerWidth
- jQuery.fn[ funcName ] = function( margin, value ) {
- var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
- extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
- return access( this, function( elem, type, value ) {
- var doc;
-
- if ( jQuery.isWindow( elem ) ) {
-
- // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
- // isn't a whole lot we can do. See pull request at this URL for discussion:
- // https://github.com/jquery/jquery/pull/764
- return elem.document.documentElement[ "client" + name ];
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- doc = elem.documentElement;
-
- // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
- // whichever is greatest
- return Math.max(
- elem.body[ "scroll" + name ], doc[ "scroll" + name ],
- elem.body[ "offset" + name ], doc[ "offset" + name ],
- doc[ "client" + name ]
- );
- }
-
- return value === undefined ?
-
- // Get width or height on the element, requesting but not forcing parseFloat
- jQuery.css( elem, type, extra ) :
-
- // Set width or height on the element
- jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable, null );
- };
- } );
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/effects.js b/ecomp-portal-FE/client/bower_components/jquery/src/effects.js
deleted file mode 100644
index 178fa42f..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/effects.js
+++ /dev/null
@@ -1,629 +0,0 @@
-define( [
- "./core",
- "./var/document",
- "./var/rcssNum",
- "./css/var/cssExpand",
- "./var/rnotwhite",
- "./css/var/isHidden",
- "./css/adjustCSS",
- "./css/defaultDisplay",
- "./data/var/dataPriv",
-
- "./core/init",
- "./effects/Tween",
- "./queue",
- "./css",
- "./deferred",
- "./traversing"
-], function( jQuery, document, rcssNum, cssExpand, rnotwhite,
- isHidden, adjustCSS, defaultDisplay, dataPriv ) {
-
-var
- fxNow, timerId,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rrun = /queueHooks$/;
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- window.setTimeout( function() {
- fxNow = undefined;
- } );
- return ( fxNow = jQuery.now() );
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
- var which,
- i = 0,
- attrs = { height: type };
-
- // If we include width, step value is 1 to do all cssExpand values,
- // otherwise step value is 2 to skip over Left and Right
- includeWidth = includeWidth ? 1 : 0;
- for ( ; i < 4 ; i += 2 - includeWidth ) {
- which = cssExpand[ i ];
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
- }
-
- if ( includeWidth ) {
- attrs.opacity = attrs.width = type;
- }
-
- return attrs;
-}
-
-function createTween( value, prop, animation ) {
- var tween,
- collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
- index = 0,
- length = collection.length;
- for ( ; index < length; index++ ) {
- if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
-
- // We're done with this property
- return tween;
- }
- }
-}
-
-function defaultPrefilter( elem, props, opts ) {
- /* jshint validthis: true */
- var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
- anim = this,
- orig = {},
- style = elem.style,
- hidden = elem.nodeType && isHidden( elem ),
- dataShow = dataPriv.get( elem, "fxshow" );
-
- // Handle queue: false promises
- if ( !opts.queue ) {
- hooks = jQuery._queueHooks( elem, "fx" );
- if ( hooks.unqueued == null ) {
- hooks.unqueued = 0;
- oldfire = hooks.empty.fire;
- hooks.empty.fire = function() {
- if ( !hooks.unqueued ) {
- oldfire();
- }
- };
- }
- hooks.unqueued++;
-
- anim.always( function() {
-
- // Ensure the complete handler is called before this completes
- anim.always( function() {
- hooks.unqueued--;
- if ( !jQuery.queue( elem, "fx" ).length ) {
- hooks.empty.fire();
- }
- } );
- } );
- }
-
- // Height/width overflow pass
- if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
-
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE9-10 do not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height animated
- display = jQuery.css( elem, "display" );
-
- // Test default display if display is currently "none"
- checkDisplay = display === "none" ?
- dataPriv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
-
- if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
- style.display = "inline-block";
- }
- }
-
- if ( opts.overflow ) {
- style.overflow = "hidden";
- anim.always( function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- } );
- }
-
- // show/hide pass
- for ( prop in props ) {
- value = props[ prop ];
- if ( rfxtypes.exec( value ) ) {
- delete props[ prop ];
- toggle = toggle || value === "toggle";
- if ( value === ( hidden ? "hide" : "show" ) ) {
-
- // If there is dataShow left over from a stopped hide or show
- // and we are going to proceed with show, we should pretend to be hidden
- if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
- hidden = true;
- } else {
- continue;
- }
- }
- orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
-
- // Any non-fx value stops us from restoring the original display value
- } else {
- display = undefined;
- }
- }
-
- if ( !jQuery.isEmptyObject( orig ) ) {
- if ( dataShow ) {
- if ( "hidden" in dataShow ) {
- hidden = dataShow.hidden;
- }
- } else {
- dataShow = dataPriv.access( elem, "fxshow", {} );
- }
-
- // Store state if its toggle - enables .stop().toggle() to "reverse"
- if ( toggle ) {
- dataShow.hidden = !hidden;
- }
- if ( hidden ) {
- jQuery( elem ).show();
- } else {
- anim.done( function() {
- jQuery( elem ).hide();
- } );
- }
- anim.done( function() {
- var prop;
-
- dataPriv.remove( elem, "fxshow" );
- for ( prop in orig ) {
- jQuery.style( elem, prop, orig[ prop ] );
- }
- } );
- for ( prop in orig ) {
- tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
-
- if ( !( prop in dataShow ) ) {
- dataShow[ prop ] = tween.start;
- if ( hidden ) {
- tween.end = tween.start;
- tween.start = prop === "width" || prop === "height" ? 1 : 0;
- }
- }
- }
-
- // If this is a noop like .hide().hide(), restore an overwritten display value
- } else if ( ( display === "none" ? defaultDisplay( elem.nodeName ) : display ) === "inline" ) {
- style.display = display;
- }
-}
-
-function propFilter( props, specialEasing ) {
- var index, name, easing, value, hooks;
-
- // camelCase, specialEasing and expand cssHook pass
- for ( index in props ) {
- name = jQuery.camelCase( index );
- easing = specialEasing[ name ];
- value = props[ index ];
- if ( jQuery.isArray( value ) ) {
- easing = value[ 1 ];
- value = props[ index ] = value[ 0 ];
- }
-
- if ( index !== name ) {
- props[ name ] = value;
- delete props[ index ];
- }
-
- hooks = jQuery.cssHooks[ name ];
- if ( hooks && "expand" in hooks ) {
- value = hooks.expand( value );
- delete props[ name ];
-
- // Not quite $.extend, this won't overwrite existing keys.
- // Reusing 'index' because we have the correct "name"
- for ( index in value ) {
- if ( !( index in props ) ) {
- props[ index ] = value[ index ];
- specialEasing[ index ] = easing;
- }
- }
- } else {
- specialEasing[ name ] = easing;
- }
- }
-}
-
-function Animation( elem, properties, options ) {
- var result,
- stopped,
- index = 0,
- length = Animation.prefilters.length,
- deferred = jQuery.Deferred().always( function() {
-
- // Don't match elem in the :animated selector
- delete tick.elem;
- } ),
- tick = function() {
- if ( stopped ) {
- return false;
- }
- var currentTime = fxNow || createFxNow(),
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
-
- // Support: Android 2.3
- // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
- temp = remaining / animation.duration || 0,
- percent = 1 - temp,
- index = 0,
- length = animation.tweens.length;
-
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( percent );
- }
-
- deferred.notifyWith( elem, [ animation, percent, remaining ] );
-
- if ( percent < 1 && length ) {
- return remaining;
- } else {
- deferred.resolveWith( elem, [ animation ] );
- return false;
- }
- },
- animation = deferred.promise( {
- elem: elem,
- props: jQuery.extend( {}, properties ),
- opts: jQuery.extend( true, {
- specialEasing: {},
- easing: jQuery.easing._default
- }, options ),
- originalProperties: properties,
- originalOptions: options,
- startTime: fxNow || createFxNow(),
- duration: options.duration,
- tweens: [],
- createTween: function( prop, end ) {
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
- animation.tweens.push( tween );
- return tween;
- },
- stop: function( gotoEnd ) {
- var index = 0,
-
- // If we are going to the end, we want to run all the tweens
- // otherwise we skip this part
- length = gotoEnd ? animation.tweens.length : 0;
- if ( stopped ) {
- return this;
- }
- stopped = true;
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( 1 );
- }
-
- // Resolve when we played the last frame; otherwise, reject
- if ( gotoEnd ) {
- deferred.notifyWith( elem, [ animation, 1, 0 ] );
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
- } else {
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
- }
- return this;
- }
- } ),
- props = animation.props;
-
- propFilter( props, animation.opts.specialEasing );
-
- for ( ; index < length ; index++ ) {
- result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
- if ( result ) {
- if ( jQuery.isFunction( result.stop ) ) {
- jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
- jQuery.proxy( result.stop, result );
- }
- return result;
- }
- }
-
- jQuery.map( props, createTween, animation );
-
- if ( jQuery.isFunction( animation.opts.start ) ) {
- animation.opts.start.call( elem, animation );
- }
-
- jQuery.fx.timer(
- jQuery.extend( tick, {
- elem: elem,
- anim: animation,
- queue: animation.opts.queue
- } )
- );
-
- // attach callbacks from options
- return animation.progress( animation.opts.progress )
- .done( animation.opts.done, animation.opts.complete )
- .fail( animation.opts.fail )
- .always( animation.opts.always );
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
- tweeners: {
- "*": [ function( prop, value ) {
- var tween = this.createTween( prop, value );
- adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
- return tween;
- } ]
- },
-
- tweener: function( props, callback ) {
- if ( jQuery.isFunction( props ) ) {
- callback = props;
- props = [ "*" ];
- } else {
- props = props.match( rnotwhite );
- }
-
- var prop,
- index = 0,
- length = props.length;
-
- for ( ; index < length ; index++ ) {
- prop = props[ index ];
- Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
- Animation.tweeners[ prop ].unshift( callback );
- }
- },
-
- prefilters: [ defaultPrefilter ],
-
- prefilter: function( callback, prepend ) {
- if ( prepend ) {
- Animation.prefilters.unshift( callback );
- } else {
- Animation.prefilters.push( callback );
- }
- }
-} );
-
-jQuery.speed = function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ?
- opt.duration : opt.duration in jQuery.fx.speeds ?
- jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
- // Normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function() {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- }
- };
-
- return opt;
-};
-
-jQuery.fn.extend( {
- fadeTo: function( speed, to, easing, callback ) {
-
- // Show any hidden elements after setting opacity to 0
- return this.filter( isHidden ).css( "opacity", 0 ).show()
-
- // Animate to the value specified
- .end().animate( { opacity: to }, speed, easing, callback );
- },
- animate: function( prop, speed, easing, callback ) {
- var empty = jQuery.isEmptyObject( prop ),
- optall = jQuery.speed( speed, easing, callback ),
- doAnimation = function() {
-
- // Operate on a copy of prop so per-property easing won't be lost
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
- // Empty animations, or finishing resolves immediately
- if ( empty || dataPriv.get( this, "finish" ) ) {
- anim.stop( true );
- }
- };
- doAnimation.finish = doAnimation;
-
- return empty || optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
- stop: function( type, clearQueue, gotoEnd ) {
- var stopQueue = function( hooks ) {
- var stop = hooks.stop;
- delete hooks.stop;
- stop( gotoEnd );
- };
-
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each( function() {
- var dequeue = true,
- index = type != null && type + "queueHooks",
- timers = jQuery.timers,
- data = dataPriv.get( this );
-
- if ( index ) {
- if ( data[ index ] && data[ index ].stop ) {
- stopQueue( data[ index ] );
- }
- } else {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
- stopQueue( data[ index ] );
- }
- }
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this &&
- ( type == null || timers[ index ].queue === type ) ) {
-
- timers[ index ].anim.stop( gotoEnd );
- dequeue = false;
- timers.splice( index, 1 );
- }
- }
-
- // Start the next in the queue if the last step wasn't forced.
- // Timers currently will call their complete callbacks, which
- // will dequeue but only if they were gotoEnd.
- if ( dequeue || !gotoEnd ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- finish: function( type ) {
- if ( type !== false ) {
- type = type || "fx";
- }
- return this.each( function() {
- var index,
- data = dataPriv.get( this ),
- queue = data[ type + "queue" ],
- hooks = data[ type + "queueHooks" ],
- timers = jQuery.timers,
- length = queue ? queue.length : 0;
-
- // Enable finishing flag on private data
- data.finish = true;
-
- // Empty the queue first
- jQuery.queue( this, type, [] );
-
- if ( hooks && hooks.stop ) {
- hooks.stop.call( this, true );
- }
-
- // Look for any active animations, and finish them
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
- timers[ index ].anim.stop( true );
- timers.splice( index, 1 );
- }
- }
-
- // Look for any animations in the old queue and finish them
- for ( index = 0; index < length; index++ ) {
- if ( queue[ index ] && queue[ index ].finish ) {
- queue[ index ].finish.call( this );
- }
- }
-
- // Turn off finishing flag
- delete data.finish;
- } );
- }
-} );
-
-jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
- var cssFn = jQuery.fn[ name ];
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return speed == null || typeof speed === "boolean" ?
- cssFn.apply( this, arguments ) :
- this.animate( genFx( name, true ), speed, easing, callback );
- };
-} );
-
-// Generate shortcuts for custom animations
-jQuery.each( {
- slideDown: genFx( "show" ),
- slideUp: genFx( "hide" ),
- slideToggle: genFx( "toggle" ),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-} );
-
-jQuery.timers = [];
-jQuery.fx.tick = function() {
- var timer,
- i = 0,
- timers = jQuery.timers;
-
- fxNow = jQuery.now();
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
-
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
- jQuery.timers.push( timer );
- if ( timer() ) {
- jQuery.fx.start();
- } else {
- jQuery.timers.pop();
- }
-};
-
-jQuery.fx.interval = 13;
-jQuery.fx.start = function() {
- if ( !timerId ) {
- timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
- }
-};
-
-jQuery.fx.stop = function() {
- window.clearInterval( timerId );
-
- timerId = null;
-};
-
-jQuery.fx.speeds = {
- slow: 600,
- fast: 200,
-
- // Default speed
- _default: 400
-};
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/effects/Tween.js b/ecomp-portal-FE/client/bower_components/jquery/src/effects/Tween.js
deleted file mode 100644
index d26ddd91..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/effects/Tween.js
+++ /dev/null
@@ -1,121 +0,0 @@
-define( [
- "../core",
- "../css"
-], function( jQuery ) {
-
-function Tween( elem, options, prop, end, easing ) {
- return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
- constructor: Tween,
- init: function( elem, options, prop, end, easing, unit ) {
- this.elem = elem;
- this.prop = prop;
- this.easing = easing || jQuery.easing._default;
- this.options = options;
- this.start = this.now = this.cur();
- this.end = end;
- this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
- },
- cur: function() {
- var hooks = Tween.propHooks[ this.prop ];
-
- return hooks && hooks.get ?
- hooks.get( this ) :
- Tween.propHooks._default.get( this );
- },
- run: function( percent ) {
- var eased,
- hooks = Tween.propHooks[ this.prop ];
-
- if ( this.options.duration ) {
- this.pos = eased = jQuery.easing[ this.easing ](
- percent, this.options.duration * percent, 0, 1, this.options.duration
- );
- } else {
- this.pos = eased = percent;
- }
- this.now = ( this.end - this.start ) * eased + this.start;
-
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- if ( hooks && hooks.set ) {
- hooks.set( this );
- } else {
- Tween.propHooks._default.set( this );
- }
- return this;
- }
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
- _default: {
- get: function( tween ) {
- var result;
-
- // Use a property on the element directly when it is not a DOM element,
- // or when there is no matching style property that exists.
- if ( tween.elem.nodeType !== 1 ||
- tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
- return tween.elem[ tween.prop ];
- }
-
- // Passing an empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails.
- // Simple values such as "10px" are parsed to Float;
- // complex values such as "rotate(1rad)" are returned as-is.
- result = jQuery.css( tween.elem, tween.prop, "" );
-
- // Empty strings, null, undefined and "auto" are converted to 0.
- return !result || result === "auto" ? 0 : result;
- },
- set: function( tween ) {
-
- // Use step hook for back compat.
- // Use cssHook if its there.
- // Use .style if available and use plain properties where available.
- if ( jQuery.fx.step[ tween.prop ] ) {
- jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.nodeType === 1 &&
- ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
- jQuery.cssHooks[ tween.prop ] ) ) {
- jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
- } else {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
- }
-};
-
-// Support: IE9
-// Panic based approach to setting things on disconnected nodes
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
- set: function( tween ) {
- if ( tween.elem.nodeType && tween.elem.parentNode ) {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
-};
-
-jQuery.easing = {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return 0.5 - Math.cos( p * Math.PI ) / 2;
- },
- _default: "swing"
-};
-
-jQuery.fx = Tween.prototype.init;
-
-// Back Compat <1.8 extension point
-jQuery.fx.step = {};
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/effects/animatedSelector.js b/ecomp-portal-FE/client/bower_components/jquery/src/effects/animatedSelector.js
deleted file mode 100644
index d84c9c70..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/effects/animatedSelector.js
+++ /dev/null
@@ -1,13 +0,0 @@
-define( [
- "../core",
- "../selector",
- "../effects"
-], function( jQuery ) {
-
-jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep( jQuery.timers, function( fn ) {
- return elem === fn.elem;
- } ).length;
-};
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/event.js b/ecomp-portal-FE/client/bower_components/jquery/src/event.js
deleted file mode 100644
index 9ebbe2f7..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/event.js
+++ /dev/null
@@ -1,711 +0,0 @@
-define( [
- "./core",
- "./var/document",
- "./var/rnotwhite",
- "./var/slice",
- "./data/var/dataPriv",
-
- "./core/init",
- "./selector"
-], function( jQuery, document, rnotwhite, slice, dataPriv ) {
-
-var
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-// Support: IE9
-// See #13393 for more info
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
-
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
-
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- on( elem, type, selector, data, types[ type ], one );
- }
- return elem;
- }
-
- if ( data == null && fn == null ) {
-
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
-
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
-
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return elem;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
-
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
-
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return elem.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- } );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
-
- var handleObjIn, eventHandle, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.get( elem );
-
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- if ( !elemData ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !( events = elemData.events ) ) {
- events = elemData.events = {};
- }
- if ( !( eventHandle = elemData.handle ) ) {
- eventHandle = elemData.handle = function( e ) {
-
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
- jQuery.event.dispatch.apply( elem, arguments ) : undefined;
- };
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend( {
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join( "." )
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !( handlers = events[ type ] ) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener if the special events handler returns false
- if ( !special.setup ||
- special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var j, origCount, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
- if ( !elemData || !( events = elemData.events ) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[ 2 ] &&
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector ||
- selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown ||
- special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove data and the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- dataPriv.remove( elem, "handle events" );
- }
- },
-
- dispatch: function( event ) {
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( event );
-
- var i, j, ret, matched, handleObj,
- handlerQueue = [],
- args = slice.call( arguments ),
- handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[ 0 ] = event;
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( ( handleObj = matched.handlers[ j++ ] ) &&
- !event.isImmediatePropagationStopped() ) {
-
- // Triggered event must either 1) have no namespace, or 2) have namespace(s)
- // a subset or equal to those in the bound event (both can have no namespace).
- if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
- handleObj.handler ).apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( ( event.result = ret ) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, matches, sel, handleObj,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Support (at least): Chrome, IE9
- // Find delegate handlers
- // Black-hole SVG <use> instance trees (#13180)
- //
- // Support: Firefox<=42+
- // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
- if ( delegateCount && cur.nodeType &&
- ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
-
- for ( ; cur !== this; cur = cur.parentNode || this ) {
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) {
- matches = [];
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matches[ sel ] === undefined ) {
- matches[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) > -1 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matches[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push( { elem: cur, handlers: matches } );
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( delegateCount < handlers.length ) {
- handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );
- }
-
- return handlerQueue;
- },
-
- // Includes some event props shared by KeyEvent and MouseEvent
- props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
- "metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
-
- fixHooks: {},
-
- keyHooks: {
- props: "char charCode key keyCode".split( " " ),
- filter: function( event, original ) {
-
- // Add which for key events
- if ( event.which == null ) {
- event.which = original.charCode != null ? original.charCode : original.keyCode;
- }
-
- return event;
- }
- },
-
- mouseHooks: {
- props: ( "button buttons clientX clientY offsetX offsetY pageX pageY " +
- "screenX screenY toElement" ).split( " " ),
- filter: function( event, original ) {
- var eventDoc, doc, body,
- button = original.button;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && original.clientX != null ) {
- eventDoc = event.target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
-
- event.pageX = original.clientX +
- ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) -
- ( doc && doc.clientLeft || body && body.clientLeft || 0 );
- event.pageY = original.clientY +
- ( doc && doc.scrollTop || body && body.scrollTop || 0 ) -
- ( doc && doc.clientTop || body && body.clientTop || 0 );
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && button !== undefined ) {
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event;
- }
- },
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // Create a writable copy of the event object and normalize some properties
- var i, prop, copy,
- type = event.type,
- originalEvent = event,
- fixHook = this.fixHooks[ type ];
-
- if ( !fixHook ) {
- this.fixHooks[ type ] = fixHook =
- rmouseEvent.test( type ) ? this.mouseHooks :
- rkeyEvent.test( type ) ? this.keyHooks :
- {};
- }
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
- event = new jQuery.Event( originalEvent );
-
- i = copy.length;
- while ( i-- ) {
- prop = copy[ i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Support: Cordova 2.5 (WebKit) (#13255)
- // All events should have a target; Cordova deviceready doesn't
- if ( !event.target ) {
- event.target = document;
- }
-
- // Support: Safari 6.0+, Chrome<28
- // Target should not be a text node (#504, #13143)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
- },
-
- special: {
- load: {
-
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- focus: {
-
- // Fire native event if possible so blur/focus sequence is correct
- trigger: function() {
- if ( this !== safeActiveElement() && this.focus ) {
- this.focus();
- return false;
- }
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if ( this === safeActiveElement() && this.blur ) {
- this.blur();
- return false;
- }
- },
- delegateType: "focusout"
- },
- click: {
-
- // For checkbox, fire native event so checked state will be right
- trigger: function() {
- if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
- this.click();
- return false;
- }
- },
-
- // For cross-browser consistency, don't fire native .click() on links
- _default: function( event ) {
- return jQuery.nodeName( event.target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- }
-};
-
-jQuery.removeEvent = function( elem, type, handle ) {
-
- // This "if" is needed for plain objects
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle );
- }
-};
-
-jQuery.Event = function( src, props ) {
-
- // Allow instantiation without the 'new' keyword
- if ( !( this instanceof jQuery.Event ) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
-
- // Support: Android<4.0
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- constructor: jQuery.Event,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
- isSimulated: false,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.preventDefault();
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopPropagation();
- }
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://code.google.com/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mouseenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-} );
-
-jQuery.fn.extend( {
- on: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn );
- },
- one: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
-
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ?
- handleObj.origType + "." + handleObj.namespace :
- handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
-
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
-
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each( function() {
- jQuery.event.remove( this, types, fn, selector );
- } );
- }
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/event/ajax.js b/ecomp-portal-FE/client/bower_components/jquery/src/event/ajax.js
deleted file mode 100644
index 98e194bf..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/event/ajax.js
+++ /dev/null
@@ -1,20 +0,0 @@
-define( [
- "../core",
- "../event"
-], function( jQuery ) {
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [
- "ajaxStart",
- "ajaxStop",
- "ajaxComplete",
- "ajaxError",
- "ajaxSuccess",
- "ajaxSend"
-], function( i, type ) {
- jQuery.fn[ type ] = function( fn ) {
- return this.on( type, fn );
- };
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/event/alias.js b/ecomp-portal-FE/client/bower_components/jquery/src/event/alias.js
deleted file mode 100644
index 161c8935..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/event/alias.js
+++ /dev/null
@@ -1,27 +0,0 @@
-define( [
- "../core",
-
- "../event",
- "./trigger"
-], function( jQuery ) {
-
-jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
- function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-} );
-
-jQuery.fn.extend( {
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- }
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/event/focusin.js b/ecomp-portal-FE/client/bower_components/jquery/src/event/focusin.js
deleted file mode 100644
index ae7f831a..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/event/focusin.js
+++ /dev/null
@@ -1,53 +0,0 @@
-define( [
- "../core",
- "../data/var/dataPriv",
- "./support",
-
- "../event",
- "./trigger"
-], function( jQuery, dataPriv, support ) {
-
-// Support: Firefox
-// Firefox doesn't have focus(in | out) events
-// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
-//
-// Support: Chrome, Safari
-// focus(in | out) events fire after focus & blur events,
-// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
-// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857
-if ( !support.focusin ) {
- jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler on the document while someone wants focusin/focusout
- var handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix );
-
- if ( !attaches ) {
- doc.addEventListener( orig, handler, true );
- }
- dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
- },
- teardown: function() {
- var doc = this.ownerDocument || this,
- attaches = dataPriv.access( doc, fix ) - 1;
-
- if ( !attaches ) {
- doc.removeEventListener( orig, handler, true );
- dataPriv.remove( doc, fix );
-
- } else {
- dataPriv.access( doc, fix, attaches );
- }
- }
- };
- } );
-}
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/event/support.js b/ecomp-portal-FE/client/bower_components/jquery/src/event/support.js
deleted file mode 100644
index 1c4d416e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/event/support.js
+++ /dev/null
@@ -1,9 +0,0 @@
-define( [
- "../var/support"
-], function( support ) {
-
-support.focusin = "onfocusin" in window;
-
-return support;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/event/trigger.js b/ecomp-portal-FE/client/bower_components/jquery/src/event/trigger.js
deleted file mode 100644
index 75b9dd28..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/event/trigger.js
+++ /dev/null
@@ -1,183 +0,0 @@
-define( [
- "../core",
- "../var/document",
- "../data/var/dataPriv",
- "../data/var/acceptData",
- "../var/hasOwn",
-
- "../event"
-], function( jQuery, document, dataPriv, acceptData, hasOwn ) {
-
-var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
-
-jQuery.extend( jQuery.event, {
-
- trigger: function( event, data, elem, onlyHandlers ) {
-
- var i, cur, tmp, bubbleType, ontype, handle, special,
- eventPath = [ elem || document ],
- type = hasOwn.call( event, "type" ) ? event.type : event,
- namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
-
- cur = tmp = elem = elem || document;
-
- // Don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf( "." ) > -1 ) {
-
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split( "." );
- type = namespaces.shift();
- namespaces.sort();
- }
- ontype = type.indexOf( ":" ) < 0 && "on" + type;
-
- // Caller can pass in a jQuery.Event object, Object, or just an event type string
- event = event[ jQuery.expando ] ?
- event :
- new jQuery.Event( type, typeof event === "object" && event );
-
- // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
- event.isTrigger = onlyHandlers ? 2 : 3;
- event.namespace = namespaces.join( "." );
- event.rnamespace = event.namespace ?
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
- null;
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data == null ?
- [ event ] :
- jQuery.makeArray( data, [ event ] );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- if ( !rfocusMorph.test( bubbleType + type ) ) {
- cur = cur.parentNode;
- }
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push( cur );
- tmp = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( tmp === ( elem.ownerDocument || document ) ) {
- eventPath.push( tmp.defaultView || tmp.parentWindow || window );
- }
- }
-
- // Fire handlers on the event path
- i = 0;
- while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
-
- event.type = i > 1 ?
- bubbleType :
- special.bindType || type;
-
- // jQuery handler
- handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
- dataPriv.get( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
-
- // Native handler
- handle = ontype && cur[ ontype ];
- if ( handle && handle.apply && acceptData( cur ) ) {
- event.result = handle.apply( cur, data );
- if ( event.result === false ) {
- event.preventDefault();
- }
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( ( !special._default ||
- special._default.apply( eventPath.pop(), data ) === false ) &&
- acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name name as the event.
- // Don't do default actions on window, that's where global variables be (#6170)
- if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- tmp = elem[ ontype ];
-
- if ( tmp ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- elem[ type ]();
- jQuery.event.triggered = undefined;
-
- if ( tmp ) {
- elem[ ontype ] = tmp;
- }
- }
- }
- }
-
- return event.result;
- },
-
- // Piggyback on a donor event to simulate a different one
- // Used only for `focus(in | out)` events
- simulate: function( type, elem, event ) {
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- {
- type: type,
- isSimulated: true
- }
- );
-
- jQuery.event.trigger( e, null, elem );
- }
-
-} );
-
-jQuery.fn.extend( {
-
- trigger: function( type, data ) {
- return this.each( function() {
- jQuery.event.trigger( type, data, this );
- } );
- },
- triggerHandler: function( type, data ) {
- var elem = this[ 0 ];
- if ( elem ) {
- return jQuery.event.trigger( type, data, elem, true );
- }
- }
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/exports/amd.js b/ecomp-portal-FE/client/bower_components/jquery/src/exports/amd.js
deleted file mode 100644
index add6eb9b..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/exports/amd.js
+++ /dev/null
@@ -1,24 +0,0 @@
-define( [
- "../core"
-], function( jQuery ) {
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-if ( typeof define === "function" && define.amd ) {
- define( "jquery", [], function() {
- return jQuery;
- } );
-}
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/exports/global.js b/ecomp-portal-FE/client/bower_components/jquery/src/exports/global.js
deleted file mode 100644
index be9cbfb3..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/exports/global.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$;
-
-jQuery.noConflict = function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
-};
-
-// Expose jQuery and $ identifiers, even in AMD
-// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-if ( !noGlobal ) {
- window.jQuery = window.$ = jQuery;
-}
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/intro.js b/ecomp-portal-FE/client/bower_components/jquery/src/intro.js
deleted file mode 100644
index aab47c2d..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/intro.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/*!
- * jQuery JavaScript Library v@VERSION
- * http://jquery.com/
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: @DATE
- */
-
-(function( global, factory ) {
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Support: Firefox 18+
-// Can't be in strict mode, several libs including ASP.NET trace
-// the stack via arguments.caller.callee and Firefox dies if
-// you try to trace through "use strict" call chains. (#13335)
-//"use strict";
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/jquery.js b/ecomp-portal-FE/client/bower_components/jquery/src/jquery.js
deleted file mode 100644
index 2faa9c3c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/jquery.js
+++ /dev/null
@@ -1,37 +0,0 @@
-define( [
- "./core",
- "./selector",
- "./traversing",
- "./callbacks",
- "./deferred",
- "./core/ready",
- "./data",
- "./queue",
- "./queue/delay",
- "./attributes",
- "./event",
- "./event/alias",
- "./event/focusin",
- "./manipulation",
- "./manipulation/_evalUrl",
- "./wrap",
- "./css",
- "./css/hiddenVisibleSelectors",
- "./serialize",
- "./ajax",
- "./ajax/xhr",
- "./ajax/script",
- "./ajax/jsonp",
- "./ajax/load",
- "./event/ajax",
- "./effects",
- "./effects/animatedSelector",
- "./offset",
- "./dimensions",
- "./deprecated",
- "./exports/amd"
-], function( jQuery ) {
-
-return ( window.jQuery = window.$ = jQuery );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation.js
deleted file mode 100644
index afd5091d..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation.js
+++ /dev/null
@@ -1,481 +0,0 @@
-define( [
- "./core",
- "./var/concat",
- "./var/push",
- "./core/access",
- "./manipulation/var/rcheckableType",
- "./manipulation/var/rtagName",
- "./manipulation/var/rscriptType",
- "./manipulation/wrapMap",
- "./manipulation/getAll",
- "./manipulation/setGlobalEval",
- "./manipulation/buildFragment",
- "./manipulation/support",
-
- "./data/var/dataPriv",
- "./data/var/dataUser",
- "./data/var/acceptData",
-
- "./core/init",
- "./traversing",
- "./selector",
- "./event"
-], function( jQuery, concat, push, access,
- rcheckableType, rtagName, rscriptType,
- wrapMap, getAll, setGlobalEval, buildFragment, support,
- dataPriv, dataUser, acceptData ) {
-
-var
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
-
- // Support: IE 10-11, Edge 10240+
- // In IE/Edge using regex groups here causes severe slowdowns.
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
- rnoInnerhtml = /<script|<style|<link/i,
-
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptTypeMasked = /^true\/(.*)/,
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
-
-// Manipulating tables requires a tbody
-function manipulationTarget( elem, content ) {
- return jQuery.nodeName( elem, "table" ) &&
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
-
- elem.getElementsByTagName( "tbody" )[ 0 ] ||
- elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
- elem;
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
- elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
- return elem;
-}
-function restoreScript( elem ) {
- var match = rscriptTypeMasked.exec( elem.type );
-
- if ( match ) {
- elem.type = match[ 1 ];
- } else {
- elem.removeAttribute( "type" );
- }
-
- return elem;
-}
-
-function cloneCopyEvent( src, dest ) {
- var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
-
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- // 1. Copy private data: events, handlers, etc.
- if ( dataPriv.hasData( src ) ) {
- pdataOld = dataPriv.access( src );
- pdataCur = dataPriv.set( dest, pdataOld );
- events = pdataOld.events;
-
- if ( events ) {
- delete pdataCur.handle;
- pdataCur.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
- }
-
- // 2. Copy user data
- if ( dataUser.hasData( src ) ) {
- udataOld = dataUser.access( src );
- udataCur = jQuery.extend( {}, udataOld );
-
- dataUser.set( dest, udataCur );
- }
-}
-
-// Fix IE bugs, see support tests
-function fixInput( src, dest ) {
- var nodeName = dest.nodeName.toLowerCase();
-
- // Fails to persist the checked state of a cloned checkbox or radio button.
- if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
- dest.checked = src.checked;
-
- // Fails to return the selected option to the default selected state when cloning options
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-}
-
-function domManip( collection, args, callback, ignored ) {
-
- // Flatten any nested arrays
- args = concat.apply( [], args );
-
- var fragment, first, scripts, hasScripts, node, doc,
- i = 0,
- l = collection.length,
- iNoClone = l - 1,
- value = args[ 0 ],
- isFunction = jQuery.isFunction( value );
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( isFunction ||
- ( l > 1 && typeof value === "string" &&
- !support.checkClone && rchecked.test( value ) ) ) {
- return collection.each( function( index ) {
- var self = collection.eq( index );
- if ( isFunction ) {
- args[ 0 ] = value.call( this, index, self.html() );
- }
- domManip( self, args, callback, ignored );
- } );
- }
-
- if ( l ) {
- fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
- first = fragment.firstChild;
-
- if ( fragment.childNodes.length === 1 ) {
- fragment = first;
- }
-
- // Require either new content or an interest in ignored elements to invoke the callback
- if ( first || ignored ) {
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
- hasScripts = scripts.length;
-
- // Use the original fragment for the last item
- // instead of the first because it can end up
- // being emptied incorrectly in certain situations (#8070).
- for ( ; i < l; i++ ) {
- node = fragment;
-
- if ( i !== iNoClone ) {
- node = jQuery.clone( node, true, true );
-
- // Keep references to cloned scripts for later restoration
- if ( hasScripts ) {
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( scripts, getAll( node, "script" ) );
- }
- }
-
- callback.call( collection[ i ], node, i );
- }
-
- if ( hasScripts ) {
- doc = scripts[ scripts.length - 1 ].ownerDocument;
-
- // Reenable scripts
- jQuery.map( scripts, restoreScript );
-
- // Evaluate executable scripts on first document insertion
- for ( i = 0; i < hasScripts; i++ ) {
- node = scripts[ i ];
- if ( rscriptType.test( node.type || "" ) &&
- !dataPriv.access( node, "globalEval" ) &&
- jQuery.contains( doc, node ) ) {
-
- if ( node.src ) {
-
- // Optional AJAX dependency, but won't run scripts if not present
- if ( jQuery._evalUrl ) {
- jQuery._evalUrl( node.src );
- }
- } else {
- jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
- }
- }
- }
- }
- }
- }
-
- return collection;
-}
-
-function remove( elem, selector, keepData ) {
- var node,
- nodes = selector ? jQuery.filter( selector, elem ) : elem,
- i = 0;
-
- for ( ; ( node = nodes[ i ] ) != null; i++ ) {
- if ( !keepData && node.nodeType === 1 ) {
- jQuery.cleanData( getAll( node ) );
- }
-
- if ( node.parentNode ) {
- if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
- setGlobalEval( getAll( node, "script" ) );
- }
- node.parentNode.removeChild( node );
- }
- }
-
- return elem;
-}
-
-jQuery.extend( {
- htmlPrefilter: function( html ) {
- return html.replace( rxhtmlTag, "<$1></$2>" );
- },
-
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var i, l, srcElements, destElements,
- clone = elem.cloneNode( true ),
- inPage = jQuery.contains( elem.ownerDocument, elem );
-
- // Fix IE cloning issues
- if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
- !jQuery.isXMLDoc( elem ) ) {
-
- // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
- destElements = getAll( clone );
- srcElements = getAll( elem );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- fixInput( srcElements[ i ], destElements[ i ] );
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- if ( deepDataAndEvents ) {
- srcElements = srcElements || getAll( elem );
- destElements = destElements || getAll( clone );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- cloneCopyEvent( srcElements[ i ], destElements[ i ] );
- }
- } else {
- cloneCopyEvent( elem, clone );
- }
- }
-
- // Preserve script evaluation history
- destElements = getAll( clone, "script" );
- if ( destElements.length > 0 ) {
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
- }
-
- // Return the cloned set
- return clone;
- },
-
- cleanData: function( elems ) {
- var data, elem, type,
- special = jQuery.event.special,
- i = 0;
-
- for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
- if ( acceptData( elem ) ) {
- if ( ( data = elem[ dataPriv.expando ] ) ) {
- if ( data.events ) {
- for ( type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
-
- // Support: Chrome <= 35-45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataPriv.expando ] = undefined;
- }
- if ( elem[ dataUser.expando ] ) {
-
- // Support: Chrome <= 35-45+
- // Assign undefined instead of using delete, see Data#remove
- elem[ dataUser.expando ] = undefined;
- }
- }
- }
- }
-} );
-
-jQuery.fn.extend( {
-
- // Keep domManip exposed until 3.0 (gh-2225)
- domManip: domManip,
-
- detach: function( selector ) {
- return remove( this, selector, true );
- },
-
- remove: function( selector ) {
- return remove( this, selector );
- },
-
- text: function( value ) {
- return access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().each( function() {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- this.textContent = value;
- }
- } );
- }, null, value, arguments.length );
- },
-
- append: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.appendChild( elem );
- }
- } );
- },
-
- prepend: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.insertBefore( elem, target.firstChild );
- }
- } );
- },
-
- before: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this );
- }
- } );
- },
-
- after: function() {
- return domManip( this, arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- }
- } );
- },
-
- empty: function() {
- var elem,
- i = 0;
-
- for ( ; ( elem = this[ i ] ) != null; i++ ) {
- if ( elem.nodeType === 1 ) {
-
- // Prevent memory leaks
- jQuery.cleanData( getAll( elem, false ) );
-
- // Remove any remaining nodes
- elem.textContent = "";
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function() {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- } );
- },
-
- html: function( value ) {
- return access( this, function( value ) {
- var elem = this[ 0 ] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined && elem.nodeType === 1 ) {
- return elem.innerHTML;
- }
-
- // See if we can take a shortcut and just use innerHTML
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
- value = jQuery.htmlPrefilter( value );
-
- try {
- for ( ; i < l; i++ ) {
- elem = this[ i ] || {};
-
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch ( e ) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function() {
- var ignored = [];
-
- // Make the changes, replacing each non-ignored context element with the new content
- return domManip( this, arguments, function( elem ) {
- var parent = this.parentNode;
-
- if ( jQuery.inArray( this, ignored ) < 0 ) {
- jQuery.cleanData( getAll( this ) );
- if ( parent ) {
- parent.replaceChild( elem, this );
- }
- }
-
- // Force callback invocation
- }, ignored );
- }
-} );
-
-jQuery.each( {
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var elems,
- ret = [],
- insert = jQuery( selector ),
- last = insert.length - 1,
- i = 0;
-
- for ( ; i <= last; i++ ) {
- elems = i === last ? this : this.clone( true );
- jQuery( insert[ i ] )[ original ]( elems );
-
- // Support: QtWebKit
- // .get() because push.apply(_, arraylike) throws
- push.apply( ret, elems.get() );
- }
-
- return this.pushStack( ret );
- };
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/_evalUrl.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/_evalUrl.js
deleted file mode 100644
index 85ca2c62..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/_evalUrl.js
+++ /dev/null
@@ -1,20 +0,0 @@
-define( [
- "../ajax"
-], function( jQuery ) {
-
-jQuery._evalUrl = function( url ) {
- return jQuery.ajax( {
- url: url,
-
- // Make this explicit, since user can override this through ajaxSetup (#11264)
- type: "GET",
- dataType: "script",
- async: false,
- global: false,
- "throws": true
- } );
-};
-
-return jQuery._evalUrl;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/buildFragment.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/buildFragment.js
deleted file mode 100644
index cfdd1c0e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/buildFragment.js
+++ /dev/null
@@ -1,102 +0,0 @@
-define( [
- "../core",
- "./var/rtagName",
- "./var/rscriptType",
- "./wrapMap",
- "./getAll",
- "./setGlobalEval"
-], function( jQuery, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
-
-var rhtml = /<|&#?\w+;/;
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
- var elem, tmp, tag, wrap, contains, j,
- fragment = context.createDocumentFragment(),
- nodes = [],
- i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( jQuery.type( elem ) === "object" ) {
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Support: Android<4.1, PhantomJS<2
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, tmp.childNodes );
-
- // Remember the top-level container
- tmp = fragment.firstChild;
-
- // Ensure the created nodes are orphaned (#12392)
- tmp.textContent = "";
- }
- }
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
-
- i = 0;
- while ( ( elem = nodes[ i++ ] ) ) {
-
- // Skip elements already in the context collection (trac-4087)
- if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
- if ( ignored ) {
- ignored.push( elem );
- }
- continue;
- }
-
- contains = jQuery.contains( elem.ownerDocument, elem );
-
- // Append to fragment
- tmp = getAll( fragment.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( contains ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( ( elem = tmp[ j++ ] ) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- return fragment;
-}
-
-return buildFragment;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/getAll.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/getAll.js
deleted file mode 100644
index cc913f29..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/getAll.js
+++ /dev/null
@@ -1,21 +0,0 @@
-define( [
- "../core"
-], function( jQuery ) {
-
-function getAll( context, tag ) {
-
- // Support: IE9-11+
- // Use typeof to avoid zero-argument method invocation on host objects (#15151)
- var ret = typeof context.getElementsByTagName !== "undefined" ?
- context.getElementsByTagName( tag || "*" ) :
- typeof context.querySelectorAll !== "undefined" ?
- context.querySelectorAll( tag || "*" ) :
- [];
-
- return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
- jQuery.merge( [ context ], ret ) :
- ret;
-}
-
-return getAll;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/setGlobalEval.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/setGlobalEval.js
deleted file mode 100644
index 8ca69a03..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/setGlobalEval.js
+++ /dev/null
@@ -1,20 +0,0 @@
-define( [
- "../data/var/dataPriv"
-], function( dataPriv ) {
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- dataPriv.set(
- elems[ i ],
- "globalEval",
- !refElements || dataPriv.get( refElements[ i ], "globalEval" )
- );
- }
-}
-
-return setGlobalEval;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/support.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/support.js
deleted file mode 100644
index cd4081eb..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/support.js
+++ /dev/null
@@ -1,33 +0,0 @@
-define( [
- "../var/document",
- "../var/support"
-], function( document, support ) {
-
-( function() {
- var fragment = document.createDocumentFragment(),
- div = fragment.appendChild( document.createElement( "div" ) ),
- input = document.createElement( "input" );
-
- // Support: Android 4.0-4.3, Safari<=5.1
- // Check state lost if the name is set (#11217)
- // Support: Windows Web Apps (WWA)
- // `name` and `type` must use .setAttribute for WWA (#14901)
- input.setAttribute( "type", "radio" );
- input.setAttribute( "checked", "checked" );
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
-
- // Support: Safari<=5.1, Android<4.2
- // Older WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE<=11+
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- div.innerHTML = "<textarea>x</textarea>";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-} )();
-
-return support;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rcheckableType.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rcheckableType.js
deleted file mode 100644
index 4c95394a..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rcheckableType.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return ( /^(?:checkbox|radio)$/i );
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rscriptType.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rscriptType.js
deleted file mode 100644
index 0c77c8a5..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rscriptType.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return ( /^$|\/(?:java|ecma)script/i );
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rtagName.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rtagName.js
deleted file mode 100644
index 9e542694..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/var/rtagName.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return ( /<([\w:-]+)/ );
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/wrapMap.js b/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/wrapMap.js
deleted file mode 100644
index fdb430a0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/manipulation/wrapMap.js
+++ /dev/null
@@ -1,27 +0,0 @@
-define( function() {
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
-
- // Support: IE9
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
-
- // XHTML parsers do not magically insert elements in the
- // same way that tag soup parsers do. So we cannot shorten
- // this by omitting <tbody> or other required elements.
- thead: [ 1, "<table>", "</table>" ],
- col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
- _default: [ 0, "", "" ]
-};
-
-// Support: IE9
-wrapMap.optgroup = wrapMap.option;
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-return wrapMap;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/offset.js b/ecomp-portal-FE/client/bower_components/jquery/src/offset.js
deleted file mode 100644
index 08a4543e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/offset.js
+++ /dev/null
@@ -1,218 +0,0 @@
-define( [
- "./core",
- "./core/access",
- "./var/document",
- "./var/documentElement",
- "./css/var/rnumnonpx",
- "./css/curCSS",
- "./css/addGetHookIf",
- "./css/support",
-
- "./core/init",
- "./css",
- "./selector" // contains
-], function( jQuery, access, document, documentElement, rnumnonpx, curCSS, addGetHookIf, support ) {
-
-/**
- * Gets a window from an element
- */
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
-}
-
-jQuery.offset = {
- setOffset: function( elem, options, i ) {
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
- position = jQuery.css( elem, "position" ),
- curElem = jQuery( elem ),
- props = {};
-
- // Set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- curOffset = curElem.offset();
- curCSSTop = jQuery.css( elem, "top" );
- curCSSLeft = jQuery.css( elem, "left" );
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
- ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
-
- // Need to be able to calculate position if either
- // top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
-
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
-
- // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
- options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
-
- } else {
- curElem.css( props );
- }
- }
-};
-
-jQuery.fn.extend( {
- offset: function( options ) {
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each( function( i ) {
- jQuery.offset.setOffset( this, options, i );
- } );
- }
-
- var docElem, win,
- elem = this[ 0 ],
- box = { top: 0, left: 0 },
- doc = elem && elem.ownerDocument;
-
- if ( !doc ) {
- return;
- }
-
- docElem = doc.documentElement;
-
- // Make sure it's not a disconnected DOM node
- if ( !jQuery.contains( docElem, elem ) ) {
- return box;
- }
-
- box = elem.getBoundingClientRect();
- win = getWindow( doc );
- return {
- top: box.top + win.pageYOffset - docElem.clientTop,
- left: box.left + win.pageXOffset - docElem.clientLeft
- };
- },
-
- position: function() {
- if ( !this[ 0 ] ) {
- return;
- }
-
- var offsetParent, offset,
- elem = this[ 0 ],
- parentOffset = { top: 0, left: 0 };
-
- // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
- // because it is its only offset parent
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
-
- // Assume getBoundingClientRect is there when computed position is fixed
- offset = elem.getBoundingClientRect();
-
- } else {
-
- // Get *real* offsetParent
- offsetParent = this.offsetParent();
-
- // Get correct offsets
- offset = this.offset();
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
- parentOffset = offsetParent.offset();
- }
-
- // Add offsetParent borders
- parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
- parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
- }
-
- // Subtract parent offsets and element margins
- return {
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
- };
- },
-
- // This method will return documentElement in the following cases:
- // 1) For the element inside the iframe without offsetParent, this method will return
- // documentElement of the parent window
- // 2) For the hidden or detached element
- // 3) For body or html element, i.e. in case of the html node - it will return itself
- //
- // but those exceptions were never presented as a real life use-cases
- // and might be considered as more preferable results.
- //
- // This logic, however, is not guaranteed and can change at any point in the future
- offsetParent: function() {
- return this.map( function() {
- var offsetParent = this.offsetParent;
-
- while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
- offsetParent = offsetParent.offsetParent;
- }
-
- return offsetParent || documentElement;
- } );
- }
-} );
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
- var top = "pageYOffset" === prop;
-
- jQuery.fn[ method ] = function( val ) {
- return access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? win[ prop ] : elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : win.pageXOffset,
- top ? val : win.pageYOffset
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length );
- };
-} );
-
-// Support: Safari<7-8+, Chrome<37-44+
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// Blink bug: https://code.google.com/p/chromium/issues/detail?id=229280
-// getComputedStyle returns percent when specified for top/left/bottom/right;
-// rather than make the css module depend on the offset module, just check for it here
-jQuery.each( [ "top", "left" ], function( i, prop ) {
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
- function( elem, computed ) {
- if ( computed ) {
- computed = curCSS( elem, prop );
-
- // If curCSS returns percentage, fallback to offset
- return rnumnonpx.test( computed ) ?
- jQuery( elem ).position()[ prop ] + "px" :
- computed;
- }
- }
- );
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/outro.js b/ecomp-portal-FE/client/bower_components/jquery/src/outro.js
deleted file mode 100644
index d792ffb5..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/outro.js
+++ /dev/null
@@ -1,2 +0,0 @@
-return jQuery;
-}));
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/queue.js b/ecomp-portal-FE/client/bower_components/jquery/src/queue.js
deleted file mode 100644
index 813c41cd..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/queue.js
+++ /dev/null
@@ -1,143 +0,0 @@
-define( [
- "./core",
- "./data/var/dataPriv",
- "./deferred",
- "./callbacks"
-], function( jQuery, dataPriv ) {
-
-jQuery.extend( {
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = dataPriv.get( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || jQuery.isArray( data ) ) {
- queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // Clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // Not public - generate a queueHooks object, or return the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
- empty: jQuery.Callbacks( "once memory" ).add( function() {
- dataPriv.remove( elem, [ type + "queue", key ] );
- } )
- } );
- }
-} );
-
-jQuery.fn.extend( {
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[ 0 ], type );
- }
-
- return data === undefined ?
- this :
- this.each( function() {
- var queue = jQuery.queue( this, type, data );
-
- // Ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- dequeue: function( type ) {
- return this.each( function() {
- jQuery.dequeue( this, type );
- } );
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
-
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/queue/delay.js b/ecomp-portal-FE/client/bower_components/jquery/src/queue/delay.js
deleted file mode 100644
index 8d5844d6..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/queue/delay.js
+++ /dev/null
@@ -1,22 +0,0 @@
-define( [
- "../core",
- "../queue",
- "../effects" // Delay is optional because of this dependency
-], function( jQuery ) {
-
-// Based off of the plugin by Clint Helfers, with permission.
-// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
-jQuery.fn.delay = function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = window.setTimeout( next, time );
- hooks.stop = function() {
- window.clearTimeout( timeout );
- };
- } );
-};
-
-return jQuery.fn.delay;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/selector-native.js b/ecomp-portal-FE/client/bower_components/jquery/src/selector-native.js
deleted file mode 100644
index ee814834..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/selector-native.js
+++ /dev/null
@@ -1,211 +0,0 @@
-define( [
- "./core",
- "./var/document",
- "./var/documentElement",
- "./var/hasOwn",
- "./var/indexOf"
-], function( jQuery, document, documentElement, hasOwn, indexOf ) {
-
-/*
- * Optional (non-Sizzle) selector module for custom builds.
- *
- * Note that this DOES NOT SUPPORT many documented jQuery
- * features in exchange for its smaller size:
- *
- * Attribute not equal selector
- * Positional selectors (:first; :eq(n); :odd; etc.)
- * Type selectors (:input; :checkbox; :button; etc.)
- * State-based selectors (:animated; :visible; :hidden; etc.)
- * :has(selector)
- * :not(complex selector)
- * custom selectors via Sizzle extensions
- * Leading combinators (e.g., $collection.find("> *"))
- * Reliable functionality on XML fragments
- * Requiring all parts of a selector to match elements under context
- * (e.g., $div.find("div > *") now matches children of $div)
- * Matching against non-elements
- * Reliable sorting of disconnected nodes
- * querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
- *
- * If any of these are unacceptable tradeoffs, either use Sizzle or
- * customize this stub for the project's specific needs.
- */
-
-var hasDuplicate, sortInput,
- sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
- matches = documentElement.matches ||
- documentElement.webkitMatchesSelector ||
- documentElement.mozMatchesSelector ||
- documentElement.oMatchesSelector ||
- documentElement.msMatchesSelector;
-
-function sortOrder( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === document || a.ownerDocument === document &&
- jQuery.contains( document, a ) ) {
- return -1;
- }
- if ( b === document || b.ownerDocument === document &&
- jQuery.contains( document, b ) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
-}
-
-function uniqueSort( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- hasDuplicate = false;
- sortInput = !sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( ( elem = results[ i++ ] ) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-}
-
-jQuery.extend( {
- find: function( selector, context, results, seed ) {
- var elem, nodeType,
- i = 0;
-
- results = results || [];
- context = context || document;
-
- // Same basic safeguard as Sizzle
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- // Early return if context is not an element or document
- if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 ) {
- return [];
- }
-
- if ( seed ) {
- while ( ( elem = seed[ i++ ] ) ) {
- if ( jQuery.find.matchesSelector( elem, selector ) ) {
- results.push( elem );
- }
- }
- } else {
- jQuery.merge( results, context.querySelectorAll( selector ) );
- }
-
- return results;
- },
- uniqueSort: uniqueSort,
- unique: uniqueSort,
- text: function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
-
- // If no nodeType, this is expected to be an array
- while ( ( node = elem[ i++ ] ) ) {
-
- // Do not traverse comment nodes
- ret += jQuery.text( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
-
- // Use textContent for elements
- return elem.textContent;
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
-
- // Do not include comment or processing instruction nodes
-
- return ret;
- },
- contains: function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && adown.contains( bup ) );
- },
- isXMLDoc: function( elem ) {
-
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && ( elem.ownerDocument || elem ).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
- },
- expr: {
- attrHandle: {},
- match: {
- bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
- "|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
- needsContext: /^[\x20\t\r\n\f]*[>+~]/
- }
- }
-} );
-
-jQuery.extend( jQuery.find, {
- matches: function( expr, elements ) {
- return jQuery.find( expr, null, null, elements );
- },
- matchesSelector: function( elem, expr ) {
- return matches.call( elem, expr );
- },
- attr: function( elem, name ) {
- var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
-
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, jQuery.isXMLDoc( elem ) ) :
- undefined;
- return value !== undefined ? value : elem.getAttribute( name );
- }
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/selector-sizzle.js b/ecomp-portal-FE/client/bower_components/jquery/src/selector-sizzle.js
deleted file mode 100644
index 9728a1f5..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/selector-sizzle.js
+++ /dev/null
@@ -1,14 +0,0 @@
-define( [
- "./core",
- "../external/sizzle/dist/sizzle"
-], function( jQuery, Sizzle ) {
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/selector.js b/ecomp-portal-FE/client/bower_components/jquery/src/selector.js
deleted file mode 100644
index e13f585a..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/selector.js
+++ /dev/null
@@ -1 +0,0 @@
-define( [ "./selector-sizzle" ], function() {} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/serialize.js b/ecomp-portal-FE/client/bower_components/jquery/src/serialize.js
deleted file mode 100644
index 94698fc2..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/serialize.js
+++ /dev/null
@@ -1,125 +0,0 @@
-define( [
- "./core",
- "./manipulation/var/rcheckableType",
- "./core/init",
- "./traversing", // filter
- "./attributes/prop"
-], function( jQuery, rcheckableType ) {
-
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-function buildParams( prefix, obj, traditional, add ) {
- var name;
-
- if ( jQuery.isArray( obj ) ) {
-
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
-
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
-
- // Item is non-scalar (array or object), encode its numeric index.
- buildParams(
- prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
- v,
- traditional,
- add
- );
- }
- } );
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
-
- // Serialize object item.
- for ( name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
-
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-jQuery.param = function( a, traditional ) {
- var prefix,
- s = [],
- add = function( key, value ) {
-
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- } );
-
- } else {
-
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" ).replace( r20, "+" );
-};
-
-jQuery.fn.extend( {
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
- serializeArray: function() {
- return this.map( function() {
-
- // Can add propHook for "elements" to filter or add form elements
- var elements = jQuery.prop( this, "elements" );
- return elements ? jQuery.makeArray( elements ) : this;
- } )
- .filter( function() {
- var type = this.type;
-
- // Use .is( ":disabled" ) so that fieldset[disabled] works
- return this.name && !jQuery( this ).is( ":disabled" ) &&
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !rcheckableType.test( type ) );
- } )
- .map( function( i, elem ) {
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val ) {
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- } ).get();
- }
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/traversing.js b/ecomp-portal-FE/client/bower_components/jquery/src/traversing.js
deleted file mode 100644
index 0d4c1c4c..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/traversing.js
+++ /dev/null
@@ -1,175 +0,0 @@
-define( [
- "./core",
- "./var/indexOf",
- "./traversing/var/dir",
- "./traversing/var/siblings",
- "./traversing/var/rneedsContext",
- "./core/init",
- "./traversing/findFilter",
- "./selector"
-], function( jQuery, indexOf, dir, siblings, rneedsContext ) {
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
- // Methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend( {
- has: function( target ) {
- var targets = jQuery( target, this ),
- l = targets.length;
-
- return this.filter( function() {
- var i = 0;
- for ( ; i < l; i++ ) {
- if ( jQuery.contains( this, targets[ i ] ) ) {
- return true;
- }
- }
- } );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
- jQuery( selectors, context || this.context ) :
- 0;
-
- for ( ; i < l; i++ ) {
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
- // Always skip document fragments
- if ( cur.nodeType < 11 && ( pos ?
- pos.index( cur ) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
- },
-
- // Determine the position of an element within the set
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // Index in selector
- if ( typeof elem === "string" ) {
- return indexOf.call( jQuery( elem ), this[ 0 ] );
- }
-
- // Locate the position of the desired element
- return indexOf.call( this,
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem
- );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.uniqueSort(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter( selector )
- );
- }
-} );
-
-function sibling( cur, dir ) {
- while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
- return cur;
-}
-
-jQuery.each( {
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return siblings( elem.firstChild );
- },
- contents: function( elem ) {
- return elem.contentDocument || jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var matched = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- matched = jQuery.filter( selector, matched );
- }
-
- if ( this.length > 1 ) {
-
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- jQuery.uniqueSort( matched );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- matched.reverse();
- }
- }
-
- return this.pushStack( matched );
- };
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/traversing/findFilter.js b/ecomp-portal-FE/client/bower_components/jquery/src/traversing/findFilter.js
deleted file mode 100644
index 7d4b2cab..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/traversing/findFilter.js
+++ /dev/null
@@ -1,100 +0,0 @@
-define( [
- "../core",
- "../var/indexOf",
- "./var/rneedsContext",
- "../selector"
-], function( jQuery, indexOf, rneedsContext ) {
-
-var risSimple = /^.[^:#\[\.,]*$/;
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- /* jshint -W018 */
- return !!qualifier.call( elem, i, elem ) !== not;
- } );
-
- }
-
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- } );
-
- }
-
- if ( typeof qualifier === "string" ) {
- if ( risSimple.test( qualifier ) ) {
- return jQuery.filter( qualifier, elements, not );
- }
-
- qualifier = jQuery.filter( qualifier, elements );
- }
-
- return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
- } );
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 && elem.nodeType === 1 ?
- jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
- jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- } ) );
-};
-
-jQuery.fn.extend( {
- find: function( selector ) {
- var i,
- len = this.length,
- ret = [],
- self = this;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- } ) );
- }
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- // Needed because $( selector, context ) becomes $( context ).find( selector )
- ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
- ret.selector = this.selector ? this.selector + " " + selector : selector;
- return ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow( this, selector || [], false ) );
- },
- not: function( selector ) {
- return this.pushStack( winnow( this, selector || [], true ) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-} );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/dir.js b/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/dir.js
deleted file mode 100644
index b98fdca0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/dir.js
+++ /dev/null
@@ -1,20 +0,0 @@
-define( [
- "../../core"
-], function( jQuery ) {
-
-return function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
-};
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/rneedsContext.js b/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/rneedsContext.js
deleted file mode 100644
index f57fd9de..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/rneedsContext.js
+++ /dev/null
@@ -1,6 +0,0 @@
-define( [
- "../../core",
- "../../selector"
-], function( jQuery ) {
- return jQuery.expr.match.needsContext;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/siblings.js b/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/siblings.js
deleted file mode 100644
index 8a8880bf..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/traversing/var/siblings.js
+++ /dev/null
@@ -1,15 +0,0 @@
-define( function() {
-
-return function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
-};
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/arr.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/arr.js
deleted file mode 100644
index 3fd36400..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/arr.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return [];
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/class2type.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/class2type.js
deleted file mode 100644
index 3a6932e1..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/class2type.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( function() {
-
- // [[Class]] -> type pairs
- return {};
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/concat.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/concat.js
deleted file mode 100644
index 9787bead..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/concat.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "./arr"
-], function( arr ) {
- return arr.concat;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/document.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/document.js
deleted file mode 100644
index bb942848..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/document.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return window.document;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/documentElement.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/documentElement.js
deleted file mode 100644
index e0c0aea6..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/documentElement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "./document"
-], function( document ) {
- return document.documentElement;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/hasOwn.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/hasOwn.js
deleted file mode 100644
index 92f323e0..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/hasOwn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "./class2type"
-], function( class2type ) {
- return class2type.hasOwnProperty;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/indexOf.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/indexOf.js
deleted file mode 100644
index 5283841b..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/indexOf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "./arr"
-], function( arr ) {
- return arr.indexOf;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/pnum.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/pnum.js
deleted file mode 100644
index 7fd9f667..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/pnum.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/push.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/push.js
deleted file mode 100644
index bca1a58e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/push.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "./arr"
-], function( arr ) {
- return arr.push;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/rcssNum.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/rcssNum.js
deleted file mode 100644
index 408f5e26..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/rcssNum.js
+++ /dev/null
@@ -1,7 +0,0 @@
-define( [
- "../var/pnum"
-], function( pnum ) {
-
-return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/rnotwhite.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/rnotwhite.js
deleted file mode 100644
index 6067728e..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/rnotwhite.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define( function() {
- return ( /\S+/g );
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/slice.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/slice.js
deleted file mode 100644
index d8206d30..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/slice.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "./arr"
-], function( arr ) {
- return arr.slice;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/support.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/support.js
deleted file mode 100644
index 3db9b67b..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/support.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( function() {
-
- // All support tests are defined in their respective modules.
- return {};
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/var/toString.js b/ecomp-portal-FE/client/bower_components/jquery/src/var/toString.js
deleted file mode 100644
index 80ac7f13..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/var/toString.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define( [
- "./class2type"
-], function( class2type ) {
- return class2type.toString;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/wrap.js b/ecomp-portal-FE/client/bower_components/jquery/src/wrap.js
deleted file mode 100644
index 4d2c3b20..00000000
--- a/ecomp-portal-FE/client/bower_components/jquery/src/wrap.js
+++ /dev/null
@@ -1,79 +0,0 @@
-define( [
- "./core",
- "./core/init",
- "./manipulation", // clone
- "./traversing" // parent, contents
-], function( jQuery ) {
-
-jQuery.fn.extend( {
- wrapAll: function( html ) {
- var wrap;
-
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapAll( html.call( this, i ) );
- } );
- }
-
- if ( this[ 0 ] ) {
-
- // The elements to wrap the target around
- wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
- if ( this[ 0 ].parentNode ) {
- wrap.insertBefore( this[ 0 ] );
- }
-
- wrap.map( function() {
- var elem = this;
-
- while ( elem.firstElementChild ) {
- elem = elem.firstElementChild;
- }
-
- return elem;
- } ).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each( function( i ) {
- jQuery( this ).wrapInner( html.call( this, i ) );
- } );
- }
-
- return this.each( function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- } );
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each( function( i ) {
- jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
- } );
- },
-
- unwrap: function() {
- return this.parent().each( function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- } ).end();
- }
-} );
-
-return jQuery;
-} );
diff --git a/ecomp-portal-FE/client/bower_components/json3/.bower.json b/ecomp-portal-FE/client/bower_components/json3/.bower.json
deleted file mode 100644
index d06caeeb..00000000
--- a/ecomp-portal-FE/client/bower_components/json3/.bower.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "name": "json3",
- "version": "3.3.2",
- "main": "lib/json3.js",
- "repository": {
- "type": "git",
- "url": "git://github.com/bestiejs/json3.git"
- },
- "ignore": [
- ".*",
- "**/.*",
- "build.js",
- "index.html",
- "index.js",
- "component.json",
- "package.json",
- "benchmark",
- "page",
- "test",
- "vendor",
- "tests"
- ],
- "homepage": "https://github.com/bestiejs/json3",
- "description": "A modern JSON implementation compatible with nearly all JavaScript platforms",
- "keywords": [
- "json",
- "spec",
- "ecma",
- "es5",
- "lexer",
- "parser",
- "stringify"
- ],
- "authors": [
- "Kit Cambridge <github@kitcambridge.be>"
- ],
- "license": "MIT",
- "_release": "3.3.2",
- "_resolution": {
- "type": "version",
- "tag": "v3.3.2",
- "commit": "dec5c2a5dc723ff867caa32a81ed93ab814f7426"
- },
- "_source": "https://github.com/bestiejs/json3.git",
- "_target": "~3.3.1",
- "_originalSource": "json3"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/json3/CHANGELOG.md b/ecomp-portal-FE/client/bower_components/json3/CHANGELOG.md
deleted file mode 100644
index e93fa399..00000000
--- a/ecomp-portal-FE/client/bower_components/json3/CHANGELOG.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# JSON3 Changelog
-
-## 3.1.0
-
- * Switched to `bestiejs` organisation
- * Added support for a list of properties as the `filter` argument for `JSON.stringify`
- * Fixed Firefox 4 and 4.0.1 allowing non-standard extensions to `JSON.parse`
-
-## 3.0.0
-
- * Renamed `JSON3` to `JSON`
- * Removed `JSON3.Version`
- * Added minified version of library
- * Created a [GitHub Project Page](http://bestiejs.github.io/json3)
- * Preserved alphanumeric order when iterating over shadowed properties on objects
-
-## 0.8.5
-
- * Avoided relying on native functions `Math.abs`, and `isFinite`, and native constructors `String`, `Number`, `Object`, and `Array`
- * Fixed AMD export logic
-
-## 0.8.0
-
- * Renamed `Prim` to `JSON3`
- * Added `JSON3.Version`
- * Added support for AMD lodaers as the `"json"` module
- * Added feature tests for native `JSON` implementations
- * Added string coercion for the `source` argument in `JSON3.parse`
- * Fixed the date serialization routine in `JSON3.stringify`
-
-## 0.5.0
-
- * Fixed `Prim.stringify`'s handling of the `width` argument
- * Added Microsoft's ES5 Conformance Tests to the test suite
-
-## 0.2.0
-
- * Added `Prim.stringify` for serializing values
- * Renamed `Prim.Escapes` to `Prim.Unescapes`
- * Disallowed unescaped tab characters in strings passed to `Prim.parse`
-
-## 0.1.0
-
- * Initial release of Prim
diff --git a/ecomp-portal-FE/client/bower_components/json3/CONTRIBUTING.md b/ecomp-portal-FE/client/bower_components/json3/CONTRIBUTING.md
deleted file mode 100644
index b0cb8579..00000000
--- a/ecomp-portal-FE/client/bower_components/json3/CONTRIBUTING.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Contributing to JSON3
-
-If you'd like to contribute to JSON3, please review our [contributing guidelines](http://bestiejs.github.io/json3/#section_5). Thanks!
diff --git a/ecomp-portal-FE/client/bower_components/json3/LICENSE b/ecomp-portal-FE/client/bower_components/json3/LICENSE
deleted file mode 100644
index c0de33a8..00000000
--- a/ecomp-portal-FE/client/bower_components/json3/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2012-2014 Kit Cambridge.
-http://kitcambridge.be/
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE. \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/json3/README.md b/ecomp-portal-FE/client/bower_components/json3/README.md
deleted file mode 100644
index 9aa7935d..00000000
--- a/ecomp-portal-FE/client/bower_components/json3/README.md
+++ /dev/null
@@ -1,152 +0,0 @@
-# JSON 3 #
-
-![JSON 3 Logo](http://bestiejs.github.io/json3/page/logo.png)
-
-[![Build Status](https://secure.travis-ci.org/bestiejs/json3.png?branch=gh-pages)](http://travis-ci.org/bestiejs/json3)
-
-**JSON 3** is a modern JSON implementation compatible with a variety of JavaScript platforms, including Internet Explorer 6, Opera 7, Safari 2, and Netscape 6. The current version is **3.3.2**.
-
-- [Development Version](http://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.js) *(43 KB; uncompressed with comments)*
-- [Production Version](http://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js) *(3.5 KB; compressed and `gzip`-ped)*
-
-Special thanks to [cdnjs](http://cdnjs.com/libraries/json3/) and [jsDelivr](http://www.jsdelivr.com/#!json3) for hosting CDN copies of JSON 3.
-
-[JSON](http://json.org/) is a language-independent data interchange format based on a loose subset of the JavaScript grammar. Originally popularized by [Douglas Crockford](http://www.crockford.com/), the format was standardized in the [fifth edition](http://es5.github.com/) of the ECMAScript specification. The 5.1 edition, ratified in June 2011, incorporates several modifications to the grammar pertaining to the serialization of dates.
-
-JSON 3 exposes two functions: `stringify()` for [serializing](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON/stringify) a JavaScript value to JSON, and `parse()` for [producing](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON/parse) a JavaScript value from a JSON source string. It is a **drop-in replacement** for [JSON 2](http://json.org/js). The functions behave exactly as described in the ECMAScript spec, **except** for the date serialization discrepancy noted below.
-
-The JSON 3 parser does **not** use `eval` or regular expressions. This provides security and performance benefits in obsolete and mobile environments, where the margin is particularly significant. The complete [benchmark suite](http://jsperf.com/json3) is available on [jsPerf](http://jsperf.com/).
-
-The project is [hosted on GitHub](http://git.io/json3), along with the [unit tests](http://bestiejs.github.io/json3/test/test_browser.html). It is part of the [BestieJS](https://github.com/bestiejs) family, a collection of best-in-class JavaScript libraries that promote cross-platform support, specification precedents, unit testing, and plenty of documentation.
-
-# Changes from JSON 2 #
-
-JSON 3...
-
-* Correctly serializes primitive wrapper objects.
-* Throws a `TypeError` when serializing cyclic structures (JSON 2 recurses until the call stack overflows).
-* Utilizes **feature tests** to detect broken or incomplete *native* JSON implementations (JSON 2 only checks for the presence of the native functions). The tests are only executed once at runtime, so there is no additional performance cost when parsing or serializing values.
-
-**As of v3.2.3**, JSON 3 is compatible with [Prototype](http://prototypejs.org) 1.6.1 and older.
-
-In contrast to JSON 2, JSON 3 **does not**...
-
-* Add `toJSON()` methods to the `Boolean`, `Number`, and `String` prototypes. These are not part of any standard, and are made redundant by the design of the `stringify()` implementation.
-* Add `toJSON()` or `toISOString()` methods to `Date.prototype`. See the note about date serialization below.
-
-## Date Serialization
-
-**JSON 3 deviates from the specification in one important way**: it does not define `Date#toISOString()` or `Date#toJSON()`. This preserves CommonJS compatibility and avoids polluting native prototypes. Instead, date serialization is performed internally by the `stringify()` implementation: if a date object does not define a custom `toJSON()` method, it is serialized as a [simplified ISO 8601 date-time string](http://es5.github.com/#x15.9.1.15).
-
-**Several native `Date#toJSON()` implementations produce date time strings that do *not* conform to the grammar outlined in the spec**. For instance, all versions of Safari 4, as well as JSON 2, fail to serialize extended years correctly. Furthermore, JSON 2 and older implementations omit the milliseconds from the date-time string (optional in ES 5, but required in 5.1). Finally, in all versions of Safari 4 and 5, serializing an invalid date will produce the string `"Invalid Date"`, rather than `null`. Because these environments exhibit other serialization bugs, however, JSON 3 will override the native `stringify()` implementation.
-
-Portions of the date serialization code are adapted from the [`date-shim`](https://github.com/Yaffle/date-shim) project.
-
-# Usage #
-
-## Web Browsers
-
- <script src="//cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script>
- <script>
- JSON.stringify({"Hello": 123});
- // => '{"Hello":123}'
- JSON.parse("[[1, 2, 3], 1, 2, 3, 4]", function (key, value) {
- if (typeof value == "number") {
- value = value % 2 ? "Odd" : "Even";
- }
- return value;
- });
- // => [["Odd", "Even", "Odd"], "Odd", "Even", "Odd", "Even"]
- </script>
-
-**When used in a web browser**, JSON 3 exposes an additional `JSON3` object containing the `noConflict()` and `runInContext()` functions, as well as aliases to the `stringify()` and `parse()` functions.
-
-### `noConflict` and `runInContext`
-
-* `JSON3.noConflict()` restores the original value of the global `JSON` object and returns a reference to the `JSON3` object.
-* `JSON3.runInContext([context, exports])` initializes JSON 3 using the given `context` object (e.g., `window`, `global`, etc.), or the global object if omitted. If an `exports` object is specified, the `stringify()`, `parse()`, and `runInContext()` functions will be attached to it instead of a new object.
-
-### Asynchronous Module Loaders
-
-JSON 3 is defined as an [anonymous module](https://github.com/amdjs/amdjs-api/wiki/AMD#define-function-) for compatibility with [RequireJS](http://requirejs.org/), [`curl.js`](https://github.com/cujojs/curl), and other asynchronous module loaders.
-
- <script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.js"></script>
- <script>
- require({
- "paths": {
- "json3": "./path/to/json3"
- }
- }, ["json3"], function (JSON) {
- JSON.parse("[1, 2, 3]");
- // => [1, 2, 3]
- });
- </script>
-
-To avoid issues with third-party scripts, **JSON 3 is exported to the global scope even when used with a module loader**. If this behavior is undesired, `JSON3.noConflict()` can be used to restore the global `JSON` object to its original value.
-
-## CommonJS Environments
-
- var JSON3 = require("./path/to/json3");
- JSON3.parse("[1, 2, 3]");
- // => [1, 2, 3]
-
-## JavaScript Engines
-
- load("path/to/json3.js");
- JSON.stringify({"Hello": 123, "Good-bye": 456}, ["Hello"], "\t");
- // => '{\n\t"Hello": 123\n}'
-
-# Compatibility #
-
-JSON 3 has been **tested** with the following web browsers, CommonJS environments, and JavaScript engines.
-
-## Web Browsers
-
-- Windows [Internet Explorer](http://www.microsoft.com/windows/internet-explorer), version 6.0 and higher
-- Mozilla [Firefox](http://www.mozilla.com/firefox), version 1.0 and higher
-- Apple [Safari](http://www.apple.com/safari), version 2.0 and higher
-- [Opera](http://www.opera.com) 7.02 and higher
-- [Mozilla](http://sillydog.org/narchive/gecko.php) 1.0, [Netscape](http://sillydog.org/narchive/) 6.2.3, and [SeaMonkey](http://www.seamonkey-project.org/) 1.0 and higher
-
-## CommonJS Environments
-
-- [Node](http://nodejs.org/) 0.2.6 and higher
-- [RingoJS](http://ringojs.org/) 0.4 and higher
-- [Narwhal](http://narwhaljs.org/) 0.3.2 and higher
-
-## JavaScript Engines
-
-- Mozilla [Rhino](http://www.mozilla.org/rhino) 1.5R5 and higher
-- WebKit [JSC](https://trac.webkit.org/wiki/JSC)
-- Google [V8](http://code.google.com/p/v8)
-
-## Known Incompatibilities
-
-* Attempting to serialize the `arguments` object may produce inconsistent results across environments due to specification version differences. As a workaround, please convert the `arguments` object to an array first: `JSON.stringify([].slice.call(arguments, 0))`.
-
-## Required Native Methods
-
-JSON 3 assumes that the following methods exist and function as described in the ECMAScript specification:
-
-- The `Number`, `String`, `Array`, `Object`, `Date`, `SyntaxError`, and `TypeError` constructors.
-- `String.fromCharCode`
-- `Object#toString`
-- `Function#call`
-- `Math.floor`
-- `Number#toString`
-- `Date#valueOf`
-- `String.prototype`: `indexOf`, `charCodeAt`, `charAt`, `slice`.
-- `Array.prototype`: `push`, `pop`, `join`.
-
-# Contribute #
-
-Check out a working copy of the JSON 3 source code with [Git](http://git-scm.com/):
-
- $ git clone git://github.com/bestiejs/json3.git
- $ cd json3
-
-If you'd like to contribute a feature or bug fix, you can [fork](http://help.github.com/fork-a-repo/) JSON 3, commit your changes, and [send a pull request](http://help.github.com/send-pull-requests/). Please make sure to update the unit tests in the `test` directory as well.
-
-Alternatively, you can use the [GitHub issue tracker](https://github.com/bestiejs/json3/issues) to submit bug reports, feature requests, and questions, or send tweets to [@kitcambridge](http://twitter.com/kitcambridge).
-
-JSON 3 is released under the [MIT License](http://kit.mit-license.org/).
diff --git a/ecomp-portal-FE/client/bower_components/json3/bower.json b/ecomp-portal-FE/client/bower_components/json3/bower.json
deleted file mode 100644
index 7215dada..00000000
--- a/ecomp-portal-FE/client/bower_components/json3/bower.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "json3",
- "version": "3.3.2",
- "main": "lib/json3.js",
- "repository": {
- "type": "git",
- "url": "git://github.com/bestiejs/json3.git"
- },
- "ignore": [
- ".*",
- "**/.*",
- "build.js",
- "index.html",
- "index.js",
- "component.json",
- "package.json",
- "benchmark",
- "page",
- "test",
- "vendor",
- "tests"
- ],
- "homepage": "https://github.com/bestiejs/json3",
- "description": "A modern JSON implementation compatible with nearly all JavaScript platforms",
- "keywords": [
- "json",
- "spec",
- "ecma",
- "es5",
- "lexer",
- "parser",
- "stringify"
- ],
- "authors": [
- "Kit Cambridge <github@kitcambridge.be>"
- ],
- "license": "MIT"
-}
diff --git a/ecomp-portal-FE/client/bower_components/json3/lib/json3.js b/ecomp-portal-FE/client/bower_components/json3/lib/json3.js
deleted file mode 100644
index 4817c9e7..00000000
--- a/ecomp-portal-FE/client/bower_components/json3/lib/json3.js
+++ /dev/null
@@ -1,902 +0,0 @@
-/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
-;(function () {
- // Detect the `define` function exposed by asynchronous module loaders. The
- // strict `define` check is necessary for compatibility with `r.js`.
- var isLoader = typeof define === "function" && define.amd;
-
- // A set of types used to distinguish objects from primitives.
- var objectTypes = {
- "function": true,
- "object": true
- };
-
- // Detect the `exports` object exposed by CommonJS implementations.
- var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
-
- // Use the `global` object exposed by Node (including Browserify via
- // `insert-module-globals`), Narwhal, and Ringo as the default context,
- // and the `window` object in browsers. Rhino exports a `global` function
- // instead.
- var root = objectTypes[typeof window] && window || this,
- freeGlobal = freeExports && objectTypes[typeof module] && module && !module.nodeType && typeof global == "object" && global;
-
- if (freeGlobal && (freeGlobal["global"] === freeGlobal || freeGlobal["window"] === freeGlobal || freeGlobal["self"] === freeGlobal)) {
- root = freeGlobal;
- }
-
- // Public: Initializes JSON 3 using the given `context` object, attaching the
- // `stringify` and `parse` functions to the specified `exports` object.
- function runInContext(context, exports) {
- context || (context = root["Object"]());
- exports || (exports = root["Object"]());
-
- // Native constructor aliases.
- var Number = context["Number"] || root["Number"],
- String = context["String"] || root["String"],
- Object = context["Object"] || root["Object"],
- Date = context["Date"] || root["Date"],
- SyntaxError = context["SyntaxError"] || root["SyntaxError"],
- TypeError = context["TypeError"] || root["TypeError"],
- Math = context["Math"] || root["Math"],
- nativeJSON = context["JSON"] || root["JSON"];
-
- // Delegate to the native `stringify` and `parse` implementations.
- if (typeof nativeJSON == "object" && nativeJSON) {
- exports.stringify = nativeJSON.stringify;
- exports.parse = nativeJSON.parse;
- }
-
- // Convenience aliases.
- var objectProto = Object.prototype,
- getClass = objectProto.toString,
- isProperty, forEach, undef;
-
- // Test the `Date#getUTC*` methods. Based on work by @Yaffle.
- var isExtended = new Date(-3509827334573292);
- try {
- // The `getUTCFullYear`, `Month`, and `Date` methods return nonsensical
- // results for certain dates in Opera >= 10.53.
- isExtended = isExtended.getUTCFullYear() == -109252 && isExtended.getUTCMonth() === 0 && isExtended.getUTCDate() === 1 &&
- // Safari < 2.0.2 stores the internal millisecond time value correctly,
- // but clips the values returned by the date methods to the range of
- // signed 32-bit integers ([-2 ** 31, 2 ** 31 - 1]).
- isExtended.getUTCHours() == 10 && isExtended.getUTCMinutes() == 37 && isExtended.getUTCSeconds() == 6 && isExtended.getUTCMilliseconds() == 708;
- } catch (exception) {}
-
- // Internal: Determines whether the native `JSON.stringify` and `parse`
- // implementations are spec-compliant. Based on work by Ken Snyder.
- function has(name) {
- if (has[name] !== undef) {
- // Return cached feature test result.
- return has[name];
- }
- var isSupported;
- if (name == "bug-string-char-index") {
- // IE <= 7 doesn't support accessing string characters using square
- // bracket notation. IE 8 only supports this for primitives.
- isSupported = "a"[0] != "a";
- } else if (name == "json") {
- // Indicates whether both `JSON.stringify` and `JSON.parse` are
- // supported.
- isSupported = has("json-stringify") && has("json-parse");
- } else {
- var value, serialized = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
- // Test `JSON.stringify`.
- if (name == "json-stringify") {
- var stringify = exports.stringify, stringifySupported = typeof stringify == "function" && isExtended;
- if (stringifySupported) {
- // A test function object with a custom `toJSON` method.
- (value = function () {
- return 1;
- }).toJSON = value;
- try {
- stringifySupported =
- // Firefox 3.1b1 and b2 serialize string, number, and boolean
- // primitives as object literals.
- stringify(0) === "0" &&
- // FF 3.1b1, b2, and JSON 2 serialize wrapped primitives as object
- // literals.
- stringify(new Number()) === "0" &&
- stringify(new String()) == '""' &&
- // FF 3.1b1, 2 throw an error if the value is `null`, `undefined`, or
- // does not define a canonical JSON representation (this applies to
- // objects with `toJSON` properties as well, *unless* they are nested
- // within an object or array).
- stringify(getClass) === undef &&
- // IE 8 serializes `undefined` as `"undefined"`. Safari <= 5.1.7 and
- // FF 3.1b3 pass this test.
- stringify(undef) === undef &&
- // Safari <= 5.1.7 and FF 3.1b3 throw `Error`s and `TypeError`s,
- // respectively, if the value is omitted entirely.
- stringify() === undef &&
- // FF 3.1b1, 2 throw an error if the given value is not a number,
- // string, array, object, Boolean, or `null` literal. This applies to
- // objects with custom `toJSON` methods as well, unless they are nested
- // inside object or array literals. YUI 3.0.0b1 ignores custom `toJSON`
- // methods entirely.
- stringify(value) === "1" &&
- stringify([value]) == "[1]" &&
- // Prototype <= 1.6.1 serializes `[undefined]` as `"[]"` instead of
- // `"[null]"`.
- stringify([undef]) == "[null]" &&
- // YUI 3.0.0b1 fails to serialize `null` literals.
- stringify(null) == "null" &&
- // FF 3.1b1, 2 halts serialization if an array contains a function:
- // `[1, true, getClass, 1]` serializes as "[1,true,],". FF 3.1b3
- // elides non-JSON values from objects and arrays, unless they
- // define custom `toJSON` methods.
- stringify([undef, getClass, null]) == "[null,null,null]" &&
- // Simple serialization test. FF 3.1b1 uses Unicode escape sequences
- // where character escape codes are expected (e.g., `\b` => `\u0008`).
- stringify({ "a": [value, true, false, null, "\x00\b\n\f\r\t"] }) == serialized &&
- // FF 3.1b1 and b2 ignore the `filter` and `width` arguments.
- stringify(null, value) === "1" &&
- stringify([1, 2], null, 1) == "[\n 1,\n 2\n]" &&
- // JSON 2, Prototype <= 1.7, and older WebKit builds incorrectly
- // serialize extended years.
- stringify(new Date(-8.64e15)) == '"-271821-04-20T00:00:00.000Z"' &&
- // The milliseconds are optional in ES 5, but required in 5.1.
- stringify(new Date(8.64e15)) == '"+275760-09-13T00:00:00.000Z"' &&
- // Firefox <= 11.0 incorrectly serializes years prior to 0 as negative
- // four-digit years instead of six-digit years. Credits: @Yaffle.
- stringify(new Date(-621987552e5)) == '"-000001-01-01T00:00:00.000Z"' &&
- // Safari <= 5.1.5 and Opera >= 10.53 incorrectly serialize millisecond
- // values less than 1000. Credits: @Yaffle.
- stringify(new Date(-1)) == '"1969-12-31T23:59:59.999Z"';
- } catch (exception) {
- stringifySupported = false;
- }
- }
- isSupported = stringifySupported;
- }
- // Test `JSON.parse`.
- if (name == "json-parse") {
- var parse = exports.parse;
- if (typeof parse == "function") {
- try {
- // FF 3.1b1, b2 will throw an exception if a bare literal is provided.
- // Conforming implementations should also coerce the initial argument to
- // a string prior to parsing.
- if (parse("0") === 0 && !parse(false)) {
- // Simple parsing test.
- value = parse(serialized);
- var parseSupported = value["a"].length == 5 && value["a"][0] === 1;
- if (parseSupported) {
- try {
- // Safari <= 5.1.2 and FF 3.1b1 allow unescaped tabs in strings.
- parseSupported = !parse('"\t"');
- } catch (exception) {}
- if (parseSupported) {
- try {
- // FF 4.0 and 4.0.1 allow leading `+` signs and leading
- // decimal points. FF 4.0, 4.0.1, and IE 9-10 also allow
- // certain octal literals.
- parseSupported = parse("01") !== 1;
- } catch (exception) {}
- }
- if (parseSupported) {
- try {
- // FF 4.0, 4.0.1, and Rhino 1.7R3-R4 allow trailing decimal
- // points. These environments, along with FF 3.1b1 and 2,
- // also allow trailing commas in JSON objects and arrays.
- parseSupported = parse("1.") !== 1;
- } catch (exception) {}
- }
- }
- }
- } catch (exception) {
- parseSupported = false;
- }
- }
- isSupported = parseSupported;
- }
- }
- return has[name] = !!isSupported;
- }
-
- if (!has("json")) {
- // Common `[[Class]]` name aliases.
- var functionClass = "[object Function]",
- dateClass = "[object Date]",
- numberClass = "[object Number]",
- stringClass = "[object String]",
- arrayClass = "[object Array]",
- booleanClass = "[object Boolean]";
-
- // Detect incomplete support for accessing string characters by index.
- var charIndexBuggy = has("bug-string-char-index");
-
- // Define additional utility methods if the `Date` methods are buggy.
- if (!isExtended) {
- var floor = Math.floor;
- // A mapping between the months of the year and the number of days between
- // January 1st and the first of the respective month.
- var Months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
- // Internal: Calculates the number of days between the Unix epoch and the
- // first day of the given month.
- var getDay = function (year, month) {
- return Months[month] + 365 * (year - 1970) + floor((year - 1969 + (month = +(month > 1))) / 4) - floor((year - 1901 + month) / 100) + floor((year - 1601 + month) / 400);
- };
- }
-
- // Internal: Determines if a property is a direct property of the given
- // object. Delegates to the native `Object#hasOwnProperty` method.
- if (!(isProperty = objectProto.hasOwnProperty)) {
- isProperty = function (property) {
- var members = {}, constructor;
- if ((members.__proto__ = null, members.__proto__ = {
- // The *proto* property cannot be set multiple times in recent
- // versions of Firefox and SeaMonkey.
- "toString": 1
- }, members).toString != getClass) {
- // Safari <= 2.0.3 doesn't implement `Object#hasOwnProperty`, but
- // supports the mutable *proto* property.
- isProperty = function (property) {
- // Capture and break the object's prototype chain (see section 8.6.2
- // of the ES 5.1 spec). The parenthesized expression prevents an
- // unsafe transformation by the Closure Compiler.
- var original = this.__proto__, result = property in (this.__proto__ = null, this);
- // Restore the original prototype chain.
- this.__proto__ = original;
- return result;
- };
- } else {
- // Capture a reference to the top-level `Object` constructor.
- constructor = members.constructor;
- // Use the `constructor` property to simulate `Object#hasOwnProperty` in
- // other environments.
- isProperty = function (property) {
- var parent = (this.constructor || constructor).prototype;
- return property in this && !(property in parent && this[property] === parent[property]);
- };
- }
- members = null;
- return isProperty.call(this, property);
- };
- }
-
- // Internal: Normalizes the `for...in` iteration algorithm across
- // environments. Each enumerated key is yielded to a `callback` function.
- forEach = function (object, callback) {
- var size = 0, Properties, members, property;
-
- // Tests for bugs in the current environment's `for...in` algorithm. The
- // `valueOf` property inherits the non-enumerable flag from
- // `Object.prototype` in older versions of IE, Netscape, and Mozilla.
- (Properties = function () {
- this.valueOf = 0;
- }).prototype.valueOf = 0;
-
- // Iterate over a new instance of the `Properties` class.
- members = new Properties();
- for (property in members) {
- // Ignore all properties inherited from `Object.prototype`.
- if (isProperty.call(members, property)) {
- size++;
- }
- }
- Properties = members = null;
-
- // Normalize the iteration algorithm.
- if (!size) {
- // A list of non-enumerable properties inherited from `Object.prototype`.
- members = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"];
- // IE <= 8, Mozilla 1.0, and Netscape 6.2 ignore shadowed non-enumerable
- // properties.
- forEach = function (object, callback) {
- var isFunction = getClass.call(object) == functionClass, property, length;
- var hasProperty = !isFunction && typeof object.constructor != "function" && objectTypes[typeof object.hasOwnProperty] && object.hasOwnProperty || isProperty;
- for (property in object) {
- // Gecko <= 1.0 enumerates the `prototype` property of functions under
- // certain conditions; IE does not.
- if (!(isFunction && property == "prototype") && hasProperty.call(object, property)) {
- callback(property);
- }
- }
- // Manually invoke the callback for each non-enumerable property.
- for (length = members.length; property = members[--length]; hasProperty.call(object, property) && callback(property));
- };
- } else if (size == 2) {
- // Safari <= 2.0.4 enumerates shadowed properties twice.
- forEach = function (object, callback) {
- // Create a set of iterated properties.
- var members = {}, isFunction = getClass.call(object) == functionClass, property;
- for (property in object) {
- // Store each property name to prevent double enumeration. The
- // `prototype` property of functions is not enumerated due to cross-
- // environment inconsistencies.
- if (!(isFunction && property == "prototype") && !isProperty.call(members, property) && (members[property] = 1) && isProperty.call(object, property)) {
- callback(property);
- }
- }
- };
- } else {
- // No bugs detected; use the standard `for...in` algorithm.
- forEach = function (object, callback) {
- var isFunction = getClass.call(object) == functionClass, property, isConstructor;
- for (property in object) {
- if (!(isFunction && property == "prototype") && isProperty.call(object, property) && !(isConstructor = property === "constructor")) {
- callback(property);
- }
- }
- // Manually invoke the callback for the `constructor` property due to
- // cross-environment inconsistencies.
- if (isConstructor || isProperty.call(object, (property = "constructor"))) {
- callback(property);
- }
- };
- }
- return forEach(object, callback);
- };
-
- // Public: Serializes a JavaScript `value` as a JSON string. The optional
- // `filter` argument may specify either a function that alters how object and
- // array members are serialized, or an array of strings and numbers that
- // indicates which properties should be serialized. The optional `width`
- // argument may be either a string or number that specifies the indentation
- // level of the output.
- if (!has("json-stringify")) {
- // Internal: A map of control characters and their escaped equivalents.
- var Escapes = {
- 92: "\\\\",
- 34: '\\"',
- 8: "\\b",
- 12: "\\f",
- 10: "\\n",
- 13: "\\r",
- 9: "\\t"
- };
-
- // Internal: Converts `value` into a zero-padded string such that its
- // length is at least equal to `width`. The `width` must be <= 6.
- var leadingZeroes = "000000";
- var toPaddedString = function (width, value) {
- // The `|| 0` expression is necessary to work around a bug in
- // Opera <= 7.54u2 where `0 == -0`, but `String(-0) !== "0"`.
- return (leadingZeroes + (value || 0)).slice(-width);
- };
-
- // Internal: Double-quotes a string `value`, replacing all ASCII control
- // characters (characters with code unit values between 0 and 31) with
- // their escaped equivalents. This is an implementation of the
- // `Quote(value)` operation defined in ES 5.1 section 15.12.3.
- var unicodePrefix = "\\u00";
- var quote = function (value) {
- var result = '"', index = 0, length = value.length, useCharIndex = !charIndexBuggy || length > 10;
- var symbols = useCharIndex && (charIndexBuggy ? value.split("") : value);
- for (; index < length; index++) {
- var charCode = value.charCodeAt(index);
- // If the character is a control character, append its Unicode or
- // shorthand escape sequence; otherwise, append the character as-is.
- switch (charCode) {
- case 8: case 9: case 10: case 12: case 13: case 34: case 92:
- result += Escapes[charCode];
- break;
- default:
- if (charCode < 32) {
- result += unicodePrefix + toPaddedString(2, charCode.toString(16));
- break;
- }
- result += useCharIndex ? symbols[index] : value.charAt(index);
- }
- }
- return result + '"';
- };
-
- // Internal: Recursively serializes an object. Implements the
- // `Str(key, holder)`, `JO(value)`, and `JA(value)` operations.
- var serialize = function (property, object, callback, properties, whitespace, indentation, stack) {
- var value, className, year, month, date, time, hours, minutes, seconds, milliseconds, results, element, index, length, prefix, result;
- try {
- // Necessary for host object support.
- value = object[property];
- } catch (exception) {}
- if (typeof value == "object" && value) {
- className = getClass.call(value);
- if (className == dateClass && !isProperty.call(value, "toJSON")) {
- if (value > -1 / 0 && value < 1 / 0) {
- // Dates are serialized according to the `Date#toJSON` method
- // specified in ES 5.1 section 15.9.5.44. See section 15.9.1.15
- // for the ISO 8601 date time string format.
- if (getDay) {
- // Manually compute the year, month, date, hours, minutes,
- // seconds, and milliseconds if the `getUTC*` methods are
- // buggy. Adapted from @Yaffle's `date-shim` project.
- date = floor(value / 864e5);
- for (year = floor(date / 365.2425) + 1970 - 1; getDay(year + 1, 0) <= date; year++);
- for (month = floor((date - getDay(year, 0)) / 30.42); getDay(year, month + 1) <= date; month++);
- date = 1 + date - getDay(year, month);
- // The `time` value specifies the time within the day (see ES
- // 5.1 section 15.9.1.2). The formula `(A % B + B) % B` is used
- // to compute `A modulo B`, as the `%` operator does not
- // correspond to the `modulo` operation for negative numbers.
- time = (value % 864e5 + 864e5) % 864e5;
- // The hours, minutes, seconds, and milliseconds are obtained by
- // decomposing the time within the day. See section 15.9.1.10.
- hours = floor(time / 36e5) % 24;
- minutes = floor(time / 6e4) % 60;
- seconds = floor(time / 1e3) % 60;
- milliseconds = time % 1e3;
- } else {
- year = value.getUTCFullYear();
- month = value.getUTCMonth();
- date = value.getUTCDate();
- hours = value.getUTCHours();
- minutes = value.getUTCMinutes();
- seconds = value.getUTCSeconds();
- milliseconds = value.getUTCMilliseconds();
- }
- // Serialize extended years correctly.
- value = (year <= 0 || year >= 1e4 ? (year < 0 ? "-" : "+") + toPaddedString(6, year < 0 ? -year : year) : toPaddedString(4, year)) +
- "-" + toPaddedString(2, month + 1) + "-" + toPaddedString(2, date) +
- // Months, dates, hours, minutes, and seconds should have two
- // digits; milliseconds should have three.
- "T" + toPaddedString(2, hours) + ":" + toPaddedString(2, minutes) + ":" + toPaddedString(2, seconds) +
- // Milliseconds are optional in ES 5.0, but required in 5.1.
- "." + toPaddedString(3, milliseconds) + "Z";
- } else {
- value = null;
- }
- } else if (typeof value.toJSON == "function" && ((className != numberClass && className != stringClass && className != arrayClass) || isProperty.call(value, "toJSON"))) {
- // Prototype <= 1.6.1 adds non-standard `toJSON` methods to the
- // `Number`, `String`, `Date`, and `Array` prototypes. JSON 3
- // ignores all `toJSON` methods on these objects unless they are
- // defined directly on an instance.
- value = value.toJSON(property);
- }
- }
- if (callback) {
- // If a replacement function was provided, call it to obtain the value
- // for serialization.
- value = callback.call(object, property, value);
- }
- if (value === null) {
- return "null";
- }
- className = getClass.call(value);
- if (className == booleanClass) {
- // Booleans are represented literally.
- return "" + value;
- } else if (className == numberClass) {
- // JSON numbers must be finite. `Infinity` and `NaN` are serialized as
- // `"null"`.
- return value > -1 / 0 && value < 1 / 0 ? "" + value : "null";
- } else if (className == stringClass) {
- // Strings are double-quoted and escaped.
- return quote("" + value);
- }
- // Recursively serialize objects and arrays.
- if (typeof value == "object") {
- // Check for cyclic structures. This is a linear search; performance
- // is inversely proportional to the number of unique nested objects.
- for (length = stack.length; length--;) {
- if (stack[length] === value) {
- // Cyclic structures cannot be serialized by `JSON.stringify`.
- throw TypeError();
- }
- }
- // Add the object to the stack of traversed objects.
- stack.push(value);
- results = [];
- // Save the current indentation level and indent one additional level.
- prefix = indentation;
- indentation += whitespace;
- if (className == arrayClass) {
- // Recursively serialize array elements.
- for (index = 0, length = value.length; index < length; index++) {
- element = serialize(index, value, callback, properties, whitespace, indentation, stack);
- results.push(element === undef ? "null" : element);
- }
- result = results.length ? (whitespace ? "[\n" + indentation + results.join(",\n" + indentation) + "\n" + prefix + "]" : ("[" + results.join(",") + "]")) : "[]";
- } else {
- // Recursively serialize object members. Members are selected from
- // either a user-specified list of property names, or the object
- // itself.
- forEach(properties || value, function (property) {
- var element = serialize(property, value, callback, properties, whitespace, indentation, stack);
- if (element !== undef) {
- // According to ES 5.1 section 15.12.3: "If `gap` {whitespace}
- // is not the empty string, let `member` {quote(property) + ":"}
- // be the concatenation of `member` and the `space` character."
- // The "`space` character" refers to the literal space
- // character, not the `space` {width} argument provided to
- // `JSON.stringify`.
- results.push(quote(property) + ":" + (whitespace ? " " : "") + element);
- }
- });
- result = results.length ? (whitespace ? "{\n" + indentation + results.join(",\n" + indentation) + "\n" + prefix + "}" : ("{" + results.join(",") + "}")) : "{}";
- }
- // Remove the object from the traversed object stack.
- stack.pop();
- return result;
- }
- };
-
- // Public: `JSON.stringify`. See ES 5.1 section 15.12.3.
- exports.stringify = function (source, filter, width) {
- var whitespace, callback, properties, className;
- if (objectTypes[typeof filter] && filter) {
- if ((className = getClass.call(filter)) == functionClass) {
- callback = filter;
- } else if (className == arrayClass) {
- // Convert the property names array into a makeshift set.
- properties = {};
- for (var index = 0, length = filter.length, value; index < length; value = filter[index++], ((className = getClass.call(value)), className == stringClass || className == numberClass) && (properties[value] = 1));
- }
- }
- if (width) {
- if ((className = getClass.call(width)) == numberClass) {
- // Convert the `width` to an integer and create a string containing
- // `width` number of space characters.
- if ((width -= width % 1) > 0) {
- for (whitespace = "", width > 10 && (width = 10); whitespace.length < width; whitespace += " ");
- }
- } else if (className == stringClass) {
- whitespace = width.length <= 10 ? width : width.slice(0, 10);
- }
- }
- // Opera <= 7.54u2 discards the values associated with empty string keys
- // (`""`) only if they are used directly within an object member list
- // (e.g., `!("" in { "": 1})`).
- return serialize("", (value = {}, value[""] = source, value), callback, properties, whitespace, "", []);
- };
- }
-
- // Public: Parses a JSON source string.
- if (!has("json-parse")) {
- var fromCharCode = String.fromCharCode;
-
- // Internal: A map of escaped control characters and their unescaped
- // equivalents.
- var Unescapes = {
- 92: "\\",
- 34: '"',
- 47: "/",
- 98: "\b",
- 116: "\t",
- 110: "\n",
- 102: "\f",
- 114: "\r"
- };
-
- // Internal: Stores the parser state.
- var Index, Source;
-
- // Internal: Resets the parser state and throws a `SyntaxError`.
- var abort = function () {
- Index = Source = null;
- throw SyntaxError();
- };
-
- // Internal: Returns the next token, or `"$"` if the parser has reached
- // the end of the source string. A token may be a string, number, `null`
- // literal, or Boolean literal.
- var lex = function () {
- var source = Source, length = source.length, value, begin, position, isSigned, charCode;
- while (Index < length) {
- charCode = source.charCodeAt(Index);
- switch (charCode) {
- case 9: case 10: case 13: case 32:
- // Skip whitespace tokens, including tabs, carriage returns, line
- // feeds, and space characters.
- Index++;
- break;
- case 123: case 125: case 91: case 93: case 58: case 44:
- // Parse a punctuator token (`{`, `}`, `[`, `]`, `:`, or `,`) at
- // the current position.
- value = charIndexBuggy ? source.charAt(Index) : source[Index];
- Index++;
- return value;
- case 34:
- // `"` delimits a JSON string; advance to the next character and
- // begin parsing the string. String tokens are prefixed with the
- // sentinel `@` character to distinguish them from punctuators and
- // end-of-string tokens.
- for (value = "@", Index++; Index < length;) {
- charCode = source.charCodeAt(Index);
- if (charCode < 32) {
- // Unescaped ASCII control characters (those with a code unit
- // less than the space character) are not permitted.
- abort();
- } else if (charCode == 92) {
- // A reverse solidus (`\`) marks the beginning of an escaped
- // control character (including `"`, `\`, and `/`) or Unicode
- // escape sequence.
- charCode = source.charCodeAt(++Index);
- switch (charCode) {
- case 92: case 34: case 47: case 98: case 116: case 110: case 102: case 114:
- // Revive escaped control characters.
- value += Unescapes[charCode];
- Index++;
- break;
- case 117:
- // `\u` marks the beginning of a Unicode escape sequence.
- // Advance to the first character and validate the
- // four-digit code point.
- begin = ++Index;
- for (position = Index + 4; Index < position; Index++) {
- charCode = source.charCodeAt(Index);
- // A valid sequence comprises four hexdigits (case-
- // insensitive) that form a single hexadecimal value.
- if (!(charCode >= 48 && charCode <= 57 || charCode >= 97 && charCode <= 102 || charCode >= 65 && charCode <= 70)) {
- // Invalid Unicode escape sequence.
- abort();
- }
- }
- // Revive the escaped character.
- value += fromCharCode("0x" + source.slice(begin, Index));
- break;
- default:
- // Invalid escape sequence.
- abort();
- }
- } else {
- if (charCode == 34) {
- // An unescaped double-quote character marks the end of the
- // string.
- break;
- }
- charCode = source.charCodeAt(Index);
- begin = Index;
- // Optimize for the common case where a string is valid.
- while (charCode >= 32 && charCode != 92 && charCode != 34) {
- charCode = source.charCodeAt(++Index);
- }
- // Append the string as-is.
- value += source.slice(begin, Index);
- }
- }
- if (source.charCodeAt(Index) == 34) {
- // Advance to the next character and return the revived string.
- Index++;
- return value;
- }
- // Unterminated string.
- abort();
- default:
- // Parse numbers and literals.
- begin = Index;
- // Advance past the negative sign, if one is specified.
- if (charCode == 45) {
- isSigned = true;
- charCode = source.charCodeAt(++Index);
- }
- // Parse an integer or floating-point value.
- if (charCode >= 48 && charCode <= 57) {
- // Leading zeroes are interpreted as octal literals.
- if (charCode == 48 && ((charCode = source.charCodeAt(Index + 1)), charCode >= 48 && charCode <= 57)) {
- // Illegal octal literal.
- abort();
- }
- isSigned = false;
- // Parse the integer component.
- for (; Index < length && ((charCode = source.charCodeAt(Index)), charCode >= 48 && charCode <= 57); Index++);
- // Floats cannot contain a leading decimal point; however, this
- // case is already accounted for by the parser.
- if (source.charCodeAt(Index) == 46) {
- position = ++Index;
- // Parse the decimal component.
- for (; position < length && ((charCode = source.charCodeAt(position)), charCode >= 48 && charCode <= 57); position++);
- if (position == Index) {
- // Illegal trailing decimal.
- abort();
- }
- Index = position;
- }
- // Parse exponents. The `e` denoting the exponent is
- // case-insensitive.
- charCode = source.charCodeAt(Index);
- if (charCode == 101 || charCode == 69) {
- charCode = source.charCodeAt(++Index);
- // Skip past the sign following the exponent, if one is
- // specified.
- if (charCode == 43 || charCode == 45) {
- Index++;
- }
- // Parse the exponential component.
- for (position = Index; position < length && ((charCode = source.charCodeAt(position)), charCode >= 48 && charCode <= 57); position++);
- if (position == Index) {
- // Illegal empty exponent.
- abort();
- }
- Index = position;
- }
- // Coerce the parsed value to a JavaScript number.
- return +source.slice(begin, Index);
- }
- // A negative sign may only precede numbers.
- if (isSigned) {
- abort();
- }
- // `true`, `false`, and `null` literals.
- if (source.slice(Index, Index + 4) == "true") {
- Index += 4;
- return true;
- } else if (source.slice(Index, Index + 5) == "false") {
- Index += 5;
- return false;
- } else if (source.slice(Index, Index + 4) == "null") {
- Index += 4;
- return null;
- }
- // Unrecognized token.
- abort();
- }
- }
- // Return the sentinel `$` character if the parser has reached the end
- // of the source string.
- return "$";
- };
-
- // Internal: Parses a JSON `value` token.
- var get = function (value) {
- var results, hasMembers;
- if (value == "$") {
- // Unexpected end of input.
- abort();
- }
- if (typeof value == "string") {
- if ((charIndexBuggy ? value.charAt(0) : value[0]) == "@") {
- // Remove the sentinel `@` character.
- return value.slice(1);
- }
- // Parse object and array literals.
- if (value == "[") {
- // Parses a JSON array, returning a new JavaScript array.
- results = [];
- for (;; hasMembers || (hasMembers = true)) {
- value = lex();
- // A closing square bracket marks the end of the array literal.
- if (value == "]") {
- break;
- }
- // If the array literal contains elements, the current token
- // should be a comma separating the previous element from the
- // next.
- if (hasMembers) {
- if (value == ",") {
- value = lex();
- if (value == "]") {
- // Unexpected trailing `,` in array literal.
- abort();
- }
- } else {
- // A `,` must separate each array element.
- abort();
- }
- }
- // Elisions and leading commas are not permitted.
- if (value == ",") {
- abort();
- }
- results.push(get(value));
- }
- return results;
- } else if (value == "{") {
- // Parses a JSON object, returning a new JavaScript object.
- results = {};
- for (;; hasMembers || (hasMembers = true)) {
- value = lex();
- // A closing curly brace marks the end of the object literal.
- if (value == "}") {
- break;
- }
- // If the object literal contains members, the current token
- // should be a comma separator.
- if (hasMembers) {
- if (value == ",") {
- value = lex();
- if (value == "}") {
- // Unexpected trailing `,` in object literal.
- abort();
- }
- } else {
- // A `,` must separate each object member.
- abort();
- }
- }
- // Leading commas are not permitted, object property names must be
- // double-quoted strings, and a `:` must separate each property
- // name and value.
- if (value == "," || typeof value != "string" || (charIndexBuggy ? value.charAt(0) : value[0]) != "@" || lex() != ":") {
- abort();
- }
- results[value.slice(1)] = get(lex());
- }
- return results;
- }
- // Unexpected token encountered.
- abort();
- }
- return value;
- };
-
- // Internal: Updates a traversed object member.
- var update = function (source, property, callback) {
- var element = walk(source, property, callback);
- if (element === undef) {
- delete source[property];
- } else {
- source[property] = element;
- }
- };
-
- // Internal: Recursively traverses a parsed JSON object, invoking the
- // `callback` function for each value. This is an implementation of the
- // `Walk(holder, name)` operation defined in ES 5.1 section 15.12.2.
- var walk = function (source, property, callback) {
- var value = source[property], length;
- if (typeof value == "object" && value) {
- // `forEach` can't be used to traverse an array in Opera <= 8.54
- // because its `Object#hasOwnProperty` implementation returns `false`
- // for array indices (e.g., `![1, 2, 3].hasOwnProperty("0")`).
- if (getClass.call(value) == arrayClass) {
- for (length = value.length; length--;) {
- update(value, length, callback);
- }
- } else {
- forEach(value, function (property) {
- update(value, property, callback);
- });
- }
- }
- return callback.call(source, property, value);
- };
-
- // Public: `JSON.parse`. See ES 5.1 section 15.12.2.
- exports.parse = function (source, callback) {
- var result, value;
- Index = 0;
- Source = "" + source;
- result = get(lex());
- // If a JSON string contains multiple tokens, it is invalid.
- if (lex() != "$") {
- abort();
- }
- // Reset the parser state.
- Index = Source = null;
- return callback && getClass.call(callback) == functionClass ? walk((value = {}, value[""] = result, value), "", callback) : result;
- };
- }
- }
-
- exports["runInContext"] = runInContext;
- return exports;
- }
-
- if (freeExports && !isLoader) {
- // Export for CommonJS environments.
- runInContext(root, freeExports);
- } else {
- // Export for web browsers and JavaScript engines.
- var nativeJSON = root.JSON,
- previousJSON = root["JSON3"],
- isRestored = false;
-
- var JSON3 = runInContext(root, (root["JSON3"] = {
- // Public: Restores the original value of the global `JSON` object and
- // returns a reference to the `JSON3` object.
- "noConflict": function () {
- if (!isRestored) {
- isRestored = true;
- root.JSON = nativeJSON;
- root["JSON3"] = previousJSON;
- nativeJSON = previousJSON = null;
- }
- return JSON3;
- }
- }));
-
- root.JSON = {
- "parse": JSON3.parse,
- "stringify": JSON3.stringify
- };
- }
-
- // Export for asynchronous module loaders.
- if (isLoader) {
- define(function () {
- return JSON3;
- });
- }
-}).call(this);
diff --git a/ecomp-portal-FE/client/bower_components/json3/lib/json3.min.js b/ecomp-portal-FE/client/bower_components/json3/lib/json3.min.js
deleted file mode 100644
index 5f896fa0..00000000
--- a/ecomp-portal-FE/client/bower_components/json3/lib/json3.min.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
-(function(){function N(p,r){function q(a){if(q[a]!==w)return q[a];var c;if("bug-string-char-index"==a)c="a"!="a"[0];else if("json"==a)c=q("json-stringify")&&q("json-parse");else{var e;if("json-stringify"==a){c=r.stringify;var b="function"==typeof c&&s;if(b){(e=function(){return 1}).toJSON=e;try{b="0"===c(0)&&"0"===c(new t)&&'""'==c(new A)&&c(u)===w&&c(w)===w&&c()===w&&"1"===c(e)&&"[1]"==c([e])&&"[null]"==c([w])&&"null"==c(null)&&"[null,null,null]"==c([w,u,null])&&'{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'==
-c({a:[e,!0,!1,null,"\x00\b\n\f\r\t"]})&&"1"===c(null,e)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new C(-864E13))&&'"+275760-09-13T00:00:00.000Z"'==c(new C(864E13))&&'"-000001-01-01T00:00:00.000Z"'==c(new C(-621987552E5))&&'"1969-12-31T23:59:59.999Z"'==c(new C(-1))}catch(f){b=!1}}c=b}if("json-parse"==a){c=r.parse;if("function"==typeof c)try{if(0===c("0")&&!c(!1)){e=c('{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}');var n=5==e.a.length&&1===e.a[0];if(n){try{n=!c('"\t"')}catch(d){}if(n)try{n=
-1!==c("01")}catch(g){}if(n)try{n=1!==c("1.")}catch(m){}}}}catch(X){n=!1}c=n}}return q[a]=!!c}p||(p=k.Object());r||(r=k.Object());var t=p.Number||k.Number,A=p.String||k.String,H=p.Object||k.Object,C=p.Date||k.Date,G=p.SyntaxError||k.SyntaxError,K=p.TypeError||k.TypeError,L=p.Math||k.Math,I=p.JSON||k.JSON;"object"==typeof I&&I&&(r.stringify=I.stringify,r.parse=I.parse);var H=H.prototype,u=H.toString,v,B,w,s=new C(-0xc782b5b800cec);try{s=-109252==s.getUTCFullYear()&&0===s.getUTCMonth()&&1===s.getUTCDate()&&
-10==s.getUTCHours()&&37==s.getUTCMinutes()&&6==s.getUTCSeconds()&&708==s.getUTCMilliseconds()}catch(Q){}if(!q("json")){var D=q("bug-string-char-index");if(!s)var x=L.floor,M=[0,31,59,90,120,151,181,212,243,273,304,334],E=function(a,c){return M[c]+365*(a-1970)+x((a-1969+(c=+(1<c)))/4)-x((a-1901+c)/100)+x((a-1601+c)/400)};(v=H.hasOwnProperty)||(v=function(a){var c={},e;(c.__proto__=null,c.__proto__={toString:1},c).toString!=u?v=function(a){var c=this.__proto__;a=a in(this.__proto__=null,this);this.__proto__=
-c;return a}:(e=c.constructor,v=function(a){var c=(this.constructor||e).prototype;return a in this&&!(a in c&&this[a]===c[a])});c=null;return v.call(this,a)});B=function(a,c){var e=0,b,f,n;(b=function(){this.valueOf=0}).prototype.valueOf=0;f=new b;for(n in f)v.call(f,n)&&e++;b=f=null;e?B=2==e?function(a,c){var e={},b="[object Function]"==u.call(a),f;for(f in a)b&&"prototype"==f||v.call(e,f)||!(e[f]=1)||!v.call(a,f)||c(f)}:function(a,c){var e="[object Function]"==u.call(a),b,f;for(b in a)e&&"prototype"==
-b||!v.call(a,b)||(f="constructor"===b)||c(b);(f||v.call(a,b="constructor"))&&c(b)}:(f="valueOf toString toLocaleString propertyIsEnumerable isPrototypeOf hasOwnProperty constructor".split(" "),B=function(a,c){var e="[object Function]"==u.call(a),b,h=!e&&"function"!=typeof a.constructor&&F[typeof a.hasOwnProperty]&&a.hasOwnProperty||v;for(b in a)e&&"prototype"==b||!h.call(a,b)||c(b);for(e=f.length;b=f[--e];h.call(a,b)&&c(b));});return B(a,c)};if(!q("json-stringify")){var U={92:"\\\\",34:'\\"',8:"\\b",
-12:"\\f",10:"\\n",13:"\\r",9:"\\t"},y=function(a,c){return("000000"+(c||0)).slice(-a)},R=function(a){for(var c='"',b=0,h=a.length,f=!D||10<h,n=f&&(D?a.split(""):a);b<h;b++){var d=a.charCodeAt(b);switch(d){case 8:case 9:case 10:case 12:case 13:case 34:case 92:c+=U[d];break;default:if(32>d){c+="\\u00"+y(2,d.toString(16));break}c+=f?n[b]:a.charAt(b)}}return c+'"'},O=function(a,c,b,h,f,n,d){var g,m,k,l,p,r,s,t,q;try{g=c[a]}catch(z){}if("object"==typeof g&&g)if(m=u.call(g),"[object Date]"!=m||v.call(g,
-"toJSON"))"function"==typeof g.toJSON&&("[object Number]"!=m&&"[object String]"!=m&&"[object Array]"!=m||v.call(g,"toJSON"))&&(g=g.toJSON(a));else if(g>-1/0&&g<1/0){if(E){l=x(g/864E5);for(m=x(l/365.2425)+1970-1;E(m+1,0)<=l;m++);for(k=x((l-E(m,0))/30.42);E(m,k+1)<=l;k++);l=1+l-E(m,k);p=(g%864E5+864E5)%864E5;r=x(p/36E5)%24;s=x(p/6E4)%60;t=x(p/1E3)%60;p%=1E3}else m=g.getUTCFullYear(),k=g.getUTCMonth(),l=g.getUTCDate(),r=g.getUTCHours(),s=g.getUTCMinutes(),t=g.getUTCSeconds(),p=g.getUTCMilliseconds();
-g=(0>=m||1E4<=m?(0>m?"-":"+")+y(6,0>m?-m:m):y(4,m))+"-"+y(2,k+1)+"-"+y(2,l)+"T"+y(2,r)+":"+y(2,s)+":"+y(2,t)+"."+y(3,p)+"Z"}else g=null;b&&(g=b.call(c,a,g));if(null===g)return"null";m=u.call(g);if("[object Boolean]"==m)return""+g;if("[object Number]"==m)return g>-1/0&&g<1/0?""+g:"null";if("[object String]"==m)return R(""+g);if("object"==typeof g){for(a=d.length;a--;)if(d[a]===g)throw K();d.push(g);q=[];c=n;n+=f;if("[object Array]"==m){k=0;for(a=g.length;k<a;k++)m=O(k,g,b,h,f,n,d),q.push(m===w?"null":
-m);a=q.length?f?"[\n"+n+q.join(",\n"+n)+"\n"+c+"]":"["+q.join(",")+"]":"[]"}else B(h||g,function(a){var c=O(a,g,b,h,f,n,d);c!==w&&q.push(R(a)+":"+(f?" ":"")+c)}),a=q.length?f?"{\n"+n+q.join(",\n"+n)+"\n"+c+"}":"{"+q.join(",")+"}":"{}";d.pop();return a}};r.stringify=function(a,c,b){var h,f,n,d;if(F[typeof c]&&c)if("[object Function]"==(d=u.call(c)))f=c;else if("[object Array]"==d){n={};for(var g=0,k=c.length,l;g<k;l=c[g++],(d=u.call(l),"[object String]"==d||"[object Number]"==d)&&(n[l]=1));}if(b)if("[object Number]"==
-(d=u.call(b))){if(0<(b-=b%1))for(h="",10<b&&(b=10);h.length<b;h+=" ");}else"[object String]"==d&&(h=10>=b.length?b:b.slice(0,10));return O("",(l={},l[""]=a,l),f,n,h,"",[])}}if(!q("json-parse")){var V=A.fromCharCode,W={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},b,J,l=function(){b=J=null;throw G();},z=function(){for(var a=J,c=a.length,e,h,f,k,d;b<c;)switch(d=a.charCodeAt(b),d){case 9:case 10:case 13:case 32:b++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=
-D?a.charAt(b):a[b],b++,e;case 34:e="@";for(b++;b<c;)if(d=a.charCodeAt(b),32>d)l();else if(92==d)switch(d=a.charCodeAt(++b),d){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=W[d];b++;break;case 117:h=++b;for(f=b+4;b<f;b++)d=a.charCodeAt(b),48<=d&&57>=d||97<=d&&102>=d||65<=d&&70>=d||l();e+=V("0x"+a.slice(h,b));break;default:l()}else{if(34==d)break;d=a.charCodeAt(b);for(h=b;32<=d&&92!=d&&34!=d;)d=a.charCodeAt(++b);e+=a.slice(h,b)}if(34==a.charCodeAt(b))return b++,e;l();default:h=
-b;45==d&&(k=!0,d=a.charCodeAt(++b));if(48<=d&&57>=d){for(48==d&&(d=a.charCodeAt(b+1),48<=d&&57>=d)&&l();b<c&&(d=a.charCodeAt(b),48<=d&&57>=d);b++);if(46==a.charCodeAt(b)){for(f=++b;f<c&&(d=a.charCodeAt(f),48<=d&&57>=d);f++);f==b&&l();b=f}d=a.charCodeAt(b);if(101==d||69==d){d=a.charCodeAt(++b);43!=d&&45!=d||b++;for(f=b;f<c&&(d=a.charCodeAt(f),48<=d&&57>=d);f++);f==b&&l();b=f}return+a.slice(h,b)}k&&l();if("true"==a.slice(b,b+4))return b+=4,!0;if("false"==a.slice(b,b+5))return b+=5,!1;if("null"==a.slice(b,
-b+4))return b+=4,null;l()}return"$"},P=function(a){var c,b;"$"==a&&l();if("string"==typeof a){if("@"==(D?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(c=[];;b||(b=!0)){a=z();if("]"==a)break;b&&(","==a?(a=z(),"]"==a&&l()):l());","==a&&l();c.push(P(a))}return c}if("{"==a){for(c={};;b||(b=!0)){a=z();if("}"==a)break;b&&(","==a?(a=z(),"}"==a&&l()):l());","!=a&&"string"==typeof a&&"@"==(D?a.charAt(0):a[0])&&":"==z()||l();c[a.slice(1)]=P(z())}return c}l()}return a},T=function(a,b,e){e=S(a,b,e);e===
-w?delete a[b]:a[b]=e},S=function(a,b,e){var h=a[b],f;if("object"==typeof h&&h)if("[object Array]"==u.call(h))for(f=h.length;f--;)T(h,f,e);else B(h,function(a){T(h,a,e)});return e.call(a,b,h)};r.parse=function(a,c){var e,h;b=0;J=""+a;e=P(z());"$"!=z()&&l();b=J=null;return c&&"[object Function]"==u.call(c)?S((h={},h[""]=e,h),"",c):e}}}r.runInContext=N;return r}var K=typeof define==="function"&&define.amd,F={"function":!0,object:!0},G=F[typeof exports]&&exports&&!exports.nodeType&&exports,k=F[typeof window]&&
-window||this,t=G&&F[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;!t||t.global!==t&&t.window!==t&&t.self!==t||(k=t);if(G&&!K)N(k,G);else{var L=k.JSON,Q=k.JSON3,M=!1,A=N(k,k.JSON3={noConflict:function(){M||(M=!0,k.JSON=L,k.JSON3=Q,L=Q=null);return A}});k.JSON={parse:A.parse,stringify:A.stringify}}K&&define(function(){return A})}).call(this);
diff --git a/ecomp-portal-FE/client/bower_components/lodash/.bower.json b/ecomp-portal-FE/client/bower_components/lodash/.bower.json
deleted file mode 100644
index 0050f5a5..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/.bower.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "lodash",
- "homepage": "https://github.com/lodash/lodash",
- "version": "4.13.1",
- "_release": "4.13.1",
- "_resolution": {
- "type": "version",
- "tag": "4.13.1",
- "commit": "c53b88c37ffbd0f2c3a0a098db6b2556bdcdf52f"
- },
- "_source": "https://github.com/lodash/lodash.git",
- "_target": "~4.13.1",
- "_originalSource": "lodash"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/.editorconfig b/ecomp-portal-FE/client/bower_components/lodash/.editorconfig
deleted file mode 100644
index b889a368..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/.editorconfig
+++ /dev/null
@@ -1,12 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-charset = utf-8
-end_of_line = lf
-indent_size = 2
-indent_style = space
-insert_final_newline = true
-trim_trailing_whitespace = true
diff --git a/ecomp-portal-FE/client/bower_components/lodash/.gitattributes b/ecomp-portal-FE/client/bower_components/lodash/.gitattributes
deleted file mode 100644
index 176a458f..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-* text=auto
diff --git a/ecomp-portal-FE/client/bower_components/lodash/.github/CONTRIBUTING.md b/ecomp-portal-FE/client/bower_components/lodash/.github/CONTRIBUTING.md
deleted file mode 100644
index e12c9cdc..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/.github/CONTRIBUTING.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# Contributing to Lodash
-
-Contributions are always welcome. Before contributing please read the
-[code of conduct](https://jquery.org/conduct/) &
-[search the issue tracker](https://github.com/lodash/lodash/issues); your issue
-may have already been discussed or fixed in `master`. To contribute,
-[fork](https://help.github.com/articles/fork-a-repo/) Lodash, commit your changes,
-& [send a pull request](https://help.github.com/articles/using-pull-requests/).
-
-## Feature Requests
-
-Feature requests should be submitted in the
-[issue tracker](https://github.com/lodash/lodash/issues), with a description of
-the expected behavior & use case, where they’ll remain closed until sufficient interest,
-[e.g. :+1: reactions](https://help.github.com/articles/about-discussions-in-issues-and-pull-requests/),
-has been shown by the community. Before submitting a request, please search for
-similar ones in the
-[closed issues](https://github.com/lodash/lodash/issues?q=is%3Aissue+is%3Aclosed+label%3Aenhancement).
-
-## Pull Requests
-
-For additions or bug fixes you should only need to modify `lodash.js`. Include
-updated unit tests in the `test` directory as part of your pull request. Don’t
-worry about regenerating the `dist/` or `doc/` files.
-
-Before running the unit tests you’ll need to install, `npm i`,
-[development dependencies](https://docs.npmjs.com/files/package.json#devdependencies).
-Run unit tests from the command-line via `npm test`, or open `test/index.html` &
-`test/fp.html` in a web browser. The [Backbone](http://backbonejs.org/) &
-[Underscore](http://underscorejs.org/) test suites are included as well.
-
-## Contributor License Agreement
-
-Lodash is a member of the [jQuery Foundation](https://jquery.org/).
-As such, we request that all contributors sign the jQuery Foundation
-[contributor license agreement (CLA)](https://contribute.jquery.org/CLA/).
-
-For more information about CLAs, please check out Alex Russell’s excellent post,
-[“Why Do I Need to Sign This?â€](https://infrequently.org/2008/06/why-do-i-need-to-sign-this/).
-
-## Coding Guidelines
-
-In addition to the following guidelines, please follow the conventions already
-established in the code.
-
-- **Spacing**:<br>
- Use two spaces for indentation. No tabs.
-
-- **Naming**:<br>
- Keep variable & method names concise & descriptive.<br>
- Variable names `index`, `array`, & `iteratee` are preferable to
- `i`, `arr`, & `fn`.
-
-- **Quotes**:<br>
- Single-quoted strings are preferred to double-quoted strings; however,
- please use a double-quoted string if the value contains a single-quote
- character to avoid unnecessary escaping.
-
-- **Comments**:<br>
- Please use single-line comments to annotate significant additions, &
- [JSDoc-style](http://www.2ality.com/2011/08/jsdoc-intro.html) comments for
- functions.
-
-Guidelines are enforced using [JSCS](https://www.npmjs.com/package/jscs):
-```bash
-$ npm run style
-```
-
-## Tips
-
-You can opt-in to a pre-push git hook by adding an `.opt-in` file to the root of
-the project containing:
-```txt
-pre-push
-```
-
-With that, when you `git push`, the pre-push git hook will trigger and execute
-`npm run validate`.
diff --git a/ecomp-portal-FE/client/bower_components/lodash/.gitignore b/ecomp-portal-FE/client/bower_components/lodash/.gitignore
deleted file mode 100644
index 6eb2db87..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-.DS_Store
-*.custom.*
-*.log
-*.map
-lodash.compat.min.js
-coverage
-node_modules
-.opt-in
-.opt-out
diff --git a/ecomp-portal-FE/client/bower_components/lodash/.jscsrc b/ecomp-portal-FE/client/bower_components/lodash/.jscsrc
deleted file mode 100644
index 5f44ab84..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/.jscsrc
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "maxErrors": "2000",
- "maximumLineLength": {
- "value": 180,
- "allExcept": ["comments", "functionSignature", "regex"]
- },
- "requireCurlyBraces": [
- "if",
- "else",
- "for",
- "while",
- "do",
- "try",
- "catch"
- ],
- "requireOperatorBeforeLineBreak": [
- "=",
- "+",
- "-",
- "/",
- "*",
- "==",
- "===",
- "!=",
- "!==",
- ">",
- ">=",
- "<",
- "<="
- ],
- "requireSpaceAfterKeywords": [
- "if",
- "else",
- "for",
- "while",
- "do",
- "switch",
- "return",
- "try",
- "catch"
- ],
- "requireSpaceBeforeBinaryOperators": [
- "=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
- "&=", "|=", "^=", "+=",
-
- "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
- "|", "^", "&&", "||", "===", "==", ">=",
- "<=", "<", ">", "!=", "!=="
- ],
- "requireSpacesInFunctionExpression": {
- "beforeOpeningCurlyBrace": true
- },
- "requireCamelCaseOrUpperCaseIdentifiers": true,
- "requireDotNotation": { "allExcept": ["keywords"] },
- "requireEarlyReturn": true,
- "requireLineFeedAtFileEnd": true,
- "requireSemicolons": true,
- "requireSpaceAfterBinaryOperators": true,
- "requireSpacesInConditionalExpression": true,
- "requireSpaceBeforeObjectValues": true,
- "requireSpaceBeforeBlockStatements": true,
- "requireSpacesInForStatement": true,
-
- "validateIndentation": 2,
- "validateParameterSeparator": ", ",
- "validateQuoteMarks": { "mark": "'", "escape": true },
-
- "disallowSpacesInAnonymousFunctionExpression": {
- "beforeOpeningRoundBrace": true
- },
- "disallowSpacesInFunctionDeclaration": {
- "beforeOpeningRoundBrace": true
- },
- "disallowSpacesInFunctionExpression": {
- "beforeOpeningRoundBrace": true
- },
- "disallowKeywords": ["with"],
- "disallowMixedSpacesAndTabs": true,
- "disallowMultipleLineBreaks": true,
- "disallowNewlineBeforeBlockStatements": true,
- "disallowSpaceAfterObjectKeys": true,
- "disallowSpaceAfterPrefixUnaryOperators": true,
- "disallowSpacesInCallExpression": true,
- "disallowSpacesInsideArrayBrackets": true,
- "disallowSpacesInsideParentheses": true,
- "disallowTrailingWhitespace": true,
- "disallowUnusedVariables": true,
-
- "jsDoc": {
- "checkRedundantAccess": true,
- "checkTypes": true,
- "requireNewlineAfterDescription": true,
- "requireParamDescription": true,
- "requireParamTypes": true,
- "requireReturnTypes": true
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/lodash/.markdown-doctest-setup.js b/ecomp-portal-FE/client/bower_components/lodash/.markdown-doctest-setup.js
deleted file mode 100644
index 4c9a2223..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/.markdown-doctest-setup.js
+++ /dev/null
@@ -1,48 +0,0 @@
-'use strict';
-
-delete global['__core-js_shared__'];
-
-var _ = require('./lodash.js');
-
-function mockQuery() {
- return {
- 'on': function(eventName, callback) {
- callback();
- }
- };
-}
-
-mockQuery.each = _.each;
-
-module.exports = {
- 'babel': false,
- 'globals': {
- '_': _,
-
- // Example mocks.
- 'asyncSave': _.noop,
- 'addContactToList': _.noop,
- 'batchLog': _.noop,
- 'calculateLayout': _.noop,
- 'createApplication': _.noop,
- 'data': { 'user': 'mock'},
- 'mainText': '',
- 'renewToken': _.noop,
- 'sendMail': _.noop,
- 'updatePosition': _.noop,
-
- // DOM mocks.
- 'document': { 'body': { 'childNodes': [], 'nodeName': 'BODY' } },
- 'element': {},
- 'EventSource': _.noop,
- 'jQuery': mockQuery,
- 'window': {},
-
- // Node.js mocks.
- 'Buffer': Buffer,
- 'fs': { 'writeFileSync': _.noop },
- 'path': require('path'),
- 'process': process,
- 'setImmediate': setImmediate
- }
-};
diff --git a/ecomp-portal-FE/client/bower_components/lodash/.travis.yml b/ecomp-portal-FE/client/bower_components/lodash/.travis.yml
deleted file mode 100644
index 476e2e20..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/.travis.yml
+++ /dev/null
@@ -1,86 +0,0 @@
-language: node_js
-sudo: false
-node_js:
- - "6"
-env:
- global:
- - BIN="node" ISTANBUL=false OPTION=""
- - SAUCE_LABS=false SAUCE_USERNAME="lodash"
- - secure: "tg1JFsIFnxzLaTboFPOnm+aJCuMm5+JdhLlESlqg9x3fwro++7KCnwHKLNovhchaPe4otC43ZMB/nfWhDnDm11dKbm/V6HlTkED+dadTsaLxVDg6J+7yK41QhokBPJOxLV78iDaNaAQVYEirAgZ0yn8kFubxmNKV+bpCGQNc9yU="
- matrix:
- -
- - BIN="phantomjs"
- - ISTANBUL=true
- - SAUCE_LABS=true
-matrix:
- include:
- - node_js: "0.10"
- env:
- - node_js: "0.12"
- env:
- - node_js: "4"
- env:
- - node_js: "5"
- env:
-git:
- depth: 10
-branches:
- only:
- - master
-notifications:
- webhooks:
- urls:
- - https://webhooks.gitter.im/e/4aab6358b0e9aed0b628
- on_success: change
- on_failure: always
-before_install:
- - "nvm use $TRAVIS_NODE_VERSION"
- - "npm set loglevel error"
- - "npm set progress false"
- - "npm i -g npm@\"^2.0.0\""
- - |
- PATTERN[0]="|\s*if\s*\(isHostObject\b[\s\S]+?\}(?=\n)|"
- PATTERN[1]="|\s*if\s*\(enumerate\b[\s\S]+?\};\s*\}|"
- PATTERN[2]="|\s*while\s*\([^)]+\)\s*\{\s*iteratee\(index\);\s*\}|"
- PATTERN[3]="|\s*else\s*\{\s*assocSet\(data\b[\s\S]+?\}|"
- PATTERN[4]="|\bcase\s+(?:dataView|promise|set|map|weakMap)CtorString:.+|g"
- PATTERN[5]="|\bindex,\s*iterable\)\s*===\s*false\)[^}]+?(break;)|"
- PATTERN[6]="|\s*if\s*\(\!lodashFunc\)\s*\{\s*return;\s*\}|"
- PATTERN[7]="|\s*define\([\s\S]+?\);|"
- PATTERN[8]="|\s*root\._\s*=\s*_;|"
-
- if [ $ISTANBUL == true ]; then
- set -e
- for PTRN in ${PATTERN[@]}; do
- node ./test/remove.js "$PTRN" ./lodash.js
- done
- fi
- - "git clone --depth=10 --branch=master git://github.com/lodash/lodash-cli ./node_modules/lodash-cli"
- - "mkdir -p ./node_modules/lodash-cli/node_modules/lodash && cd $_ && cp ../../../../lodash.js ./lodash.js && cp ../../../../package.json ./package.json"
- - "cd ../../ && npm i && cd ../../"
-script:
-
-# Detect code coverage.
- - "[ $ISTANBUL == false ] || istanbul cover -x \"**/vendor/**\" --report lcovonly ./test/test.js -- ./lodash.js"
- - "[ $ISTANBUL == false ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || (cat ./coverage/lcov.info | coveralls) || true"
- - "[ $ISTANBUL == false ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || (cat ./coverage/coverage.json | codecov) || true"
-
-# Test in Node.js and PhantomJS.
- - "[ $ISTANBUL == true ] || node ./node_modules/lodash-cli/bin/lodash -o ./dist/lodash.js"
- - "[ $ISTANBUL == true ] || (node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./ && node ./node_modules/lodash-cli/bin/lodash -d -o ./lodash.js)"
- - "[ $ISTANBUL == true ] || [ $SAUCE_LABS == true ] || cd ./test"
- - "[ $ISTANBUL == true ] || [ $SAUCE_LABS == true ] || $BIN $OPTION ./test.js ../lodash.js"
- - "[ $ISTANBUL == true ] || [ $SAUCE_LABS == true ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || $BIN $OPTION ./test.js ../dist/lodash.min.js"
-
-# Test in Sauce Labs.
- - "[ $SAUCE_LABS == false ] || node ./node_modules/lodash-cli/bin/lodash core -o ./dist/lodash.core.js"
- - "[ $SAUCE_LABS == false ] || npm run build"
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\" runner=\"test/index.html?build=../dist/lodash.js&noglobals=true\" tags=\"development\""
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\" runner=\"test/index.html?build=../dist/lodash.min.js&noglobals=true\" tags=\"production\""
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash-fp tests\" runner=\"test/fp.html?noglobals=true\" tags=\"development\""
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=../dist/lodash.js\" tags=\"development,underscore\""
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=../dist/lodash.min.js\" tags=\"production,underscore\""
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.js\" tags=\"development,backbone\""
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.min.js\" tags=\"production,backbone\""
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.core.js\" tags=\"development,backbone\""
- - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.core.min.js\" tags=\"production,backbone\""
diff --git a/ecomp-portal-FE/client/bower_components/lodash/LICENSE b/ecomp-portal-FE/client/bower_components/lodash/LICENSE
deleted file mode 100644
index e0c69d56..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/LICENSE
+++ /dev/null
@@ -1,47 +0,0 @@
-Copyright jQuery Foundation and other contributors <https://jquery.org/>
-
-Based on Underscore.js, copyright Jeremy Ashkenas,
-DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
-
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/lodash/lodash
-
-The following license applies to all parts of this software except as
-documented below:
-
-====
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-====
-
-Copyright and related rights for sample code are waived via CC0. Sample
-code is defined as all source code displayed within the prose of the
-documentation.
-
-CC0: http://creativecommons.org/publicdomain/zero/1.0/
-
-====
-
-Files located in the node_modules and vendor directories are externally
-maintained libraries used by this software which have their own
-licenses; we recommend you read them, as their terms may differ from the
-terms above.
diff --git a/ecomp-portal-FE/client/bower_components/lodash/README.md b/ecomp-portal-FE/client/bower_components/lodash/README.md
deleted file mode 100644
index 096c31d9..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/README.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# lodash v4.13.1
-
-[Site](https://lodash.com/) |
-[Docs](https://lodash.com/docs) |
-[FP Guide](https://github.com/lodash/lodash/wiki/FP-Guide) |
-[Contributing](https://github.com/lodash/lodash/blob/4.13.1/.github/CONTRIBUTING.md) |
-[Wiki](https://github.com/lodash/lodash/wiki "Changelog, Roadmap, etc.") |
-[Code of Conduct](https://jquery.org/conduct/) |
-[Twitter](https://twitter.com/bestiejs) |
-[Chat](https://gitter.im/lodash/lodash)
-
-The [Lodash](https://lodash.com/) library exported as a [UMD](https://github.com/umdjs/umd) module.
-
-Generated using [lodash-cli](https://www.npmjs.com/package/lodash-cli):
-```bash
-$ npm run build
-$ lodash -o ./dist/lodash.js
-$ lodash core -o ./dist/lodash.core.js
-```
-
-## Download
-
-Lodash is released under the [MIT license](https://raw.githubusercontent.com/lodash/lodash/4.13.1/LICENSE) & supports [modern environments](#support).<br>
-Review the [build differences](https://github.com/lodash/lodash/wiki/build-differences) & pick one that’s right for you.
-
- * [Core build](https://raw.githubusercontent.com/lodash/lodash/4.13.1/dist/lodash.core.js) ([~4 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.13.1/dist/lodash.core.min.js))
- * [Full build](https://raw.githubusercontent.com/lodash/lodash/4.13.1/dist/lodash.js) ([~22 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.13.1/dist/lodash.min.js))
- * [CDN copies](https://www.jsdelivr.com/projects/lodash)
-
-## Why Lodash?
-
-Lodash makes JavaScript easier by taking the hassle out of working with arrays,<br>
-numbers, objects, strings, etc. Lodash’s modular methods are great for:
-
-* Iterating arrays, objects, & strings
-* Manipulating & testing values
-* Creating composite functions
-
-## Module Formats
-
-Lodash is available in a [variety of builds](https://lodash.com/custom-builds) & module formats.
-
- * [lodash](https://www.npmjs.com/package/lodash) & [per method packages](https://www.npmjs.com/browse/keyword/lodash-modularized)
- * [lodash-amd](https://www.npmjs.com/package/lodash-amd)
- * [lodash-es](https://www.npmjs.com/package/lodash-es) & [babel-plugin-lodash](https://www.npmjs.com/package/babel-plugin-lodash)
- * [lodash/fp](https://github.com/lodash/lodash/tree/4.13.1-npm/fp)
diff --git a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.core.js b/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.core.js
deleted file mode 100644
index 9b6092dd..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.core.js
+++ /dev/null
@@ -1,3830 +0,0 @@
-/**
- * @license
- * lodash (Custom Build) <https://lodash.com/>
- * Build: `lodash core -o ./dist/lodash.core.js`
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
-;(function() {
-
- /** Used as a safe reference for `undefined` in pre-ES5 environments. */
- var undefined;
-
- /** Used as the semantic version number. */
- var VERSION = '4.13.1';
-
- /** Used as the `TypeError` message for "Functions" methods. */
- var FUNC_ERROR_TEXT = 'Expected a function';
-
- /** Used to compose bitmasks for wrapper metadata. */
- var BIND_FLAG = 1,
- PARTIAL_FLAG = 32;
-
- /** Used to compose bitmasks for comparison styles. */
- var UNORDERED_COMPARE_FLAG = 1,
- PARTIAL_COMPARE_FLAG = 2;
-
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0,
- MAX_SAFE_INTEGER = 9007199254740991;
-
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- regexpTag = '[object RegExp]',
- stringTag = '[object String]';
-
- /** Used to match HTML entities and HTML characters. */
- var reUnescapedHtml = /[&<>"'`]/g,
- reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
-
- /** Used to map characters to HTML entities. */
- var htmlEscapes = {
- '&': '&amp;',
- '<': '&lt;',
- '>': '&gt;',
- '"': '&quot;',
- "'": '&#39;',
- '`': '&#96;'
- };
-
- /** Detect free variable `exports`. */
- var freeExports = typeof exports == 'object' && exports;
-
- /** Detect free variable `module`. */
- var freeModule = freeExports && typeof module == 'object' && module;
-
- /** Detect free variable `global` from Node.js. */
- var freeGlobal = checkGlobal(typeof global == 'object' && global);
-
- /** Detect free variable `self`. */
- var freeSelf = checkGlobal(typeof self == 'object' && self);
-
- /** Detect `this` as the global object. */
- var thisGlobal = checkGlobal(typeof this == 'object' && this);
-
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || thisGlobal || Function('return this')();
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Appends the elements of `values` to `array`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
- */
- function arrayPush(array, values) {
- array.push.apply(array, values);
- return array;
- }
-
- /**
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {Function} predicate The function invoked per iteration.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (predicate(array[index], index, array)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.reduce` and `_.reduceRight`, without support
- * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of
- * `collection` as the initial value.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the accumulated value.
- */
- function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
- eachFunc(collection, function(value, index, collection) {
- accumulator = initAccum
- ? (initAccum = false, value)
- : iteratee(accumulator, value, index, collection);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.values` and `_.valuesIn` which creates an
- * array of `object` property values corresponding to the property names
- * of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the array of property values.
- */
- function baseValues(object, props) {
- return baseMap(props, function(key) {
- return object[key];
- });
- }
-
- /**
- * Checks if `value` is a global object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {null|Object} Returns `value` if it's a global object, else `null`.
- */
- function checkGlobal(value) {
- return (value && value.Object === Object) ? value : null;
- }
-
- /**
- * Used by `_.escape` to convert characters to HTML entities.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
- function escapeHtmlChar(chr) {
- return htmlEscapes[chr];
- }
-
- /**
- * Checks if `value` is a host object in IE < 9.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
- */
- function isHostObject() {
- return false;
- }
-
- /*--------------------------------------------------------------------------*/
-
- /** Used for built-in method references. */
- var arrayProto = Array.prototype,
- objectProto = Object.prototype;
-
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
-
- /** Used to generate unique IDs. */
- var idCounter = 0;
-
- /**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
- * of values.
- */
- var objectToString = objectProto.toString;
-
- /** Used to restore the original `_` reference in `_.noConflict`. */
- var oldDash = root._;
-
- /** Built-in value references. */
- var objectCreate = Object.create,
- propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeIsFinite = root.isFinite,
- nativeKeys = Object.keys,
- nativeMax = Math.max;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` object which wraps `value` to enable implicit method
- * chain sequences. Methods that operate on and return arrays, collections,
- * and functions can be chained together. Methods that retrieve a single value
- * or may return a primitive value will automatically end the chain sequence
- * and return the unwrapped value. Otherwise, the value must be unwrapped
- * with `_#value`.
- *
- * Explicit chain sequences, which must be unwrapped with `_#value`, may be
- * enabled using `_.chain`.
- *
- * The execution of chained methods is lazy, that is, it's deferred until
- * `_#value` is implicitly or explicitly called.
- *
- * Lazy evaluation allows several methods to support shortcut fusion.
- * Shortcut fusion is an optimization to merge iteratee calls; this avoids
- * the creation of intermediate arrays and can greatly reduce the number of
- * iteratee executions. Sections of a chain sequence qualify for shortcut
- * fusion if the section is applied to an array of at least `200` elements
- * and any iteratees accept only one argument. The heuristic for whether a
- * section qualifies for shortcut fusion is subject to change.
- *
- * Chaining is supported in custom builds as long as the `_#value` method is
- * directly or indirectly included in the build.
- *
- * In addition to lodash methods, wrappers have `Array` and `String` methods.
- *
- * The wrapper `Array` methods are:
- * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
- *
- * The wrapper `String` methods are:
- * `replace` and `split`
- *
- * The wrapper methods that support shortcut fusion are:
- * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
- * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
- * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
- *
- * The chainable wrapper methods are:
- * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
- * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
- * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
- * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
- * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
- * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
- * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
- * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
- * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
- * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
- * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
- * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
- * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
- * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
- * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
- * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
- * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
- * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
- * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
- * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
- * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
- * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
- * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
- * `zipObject`, `zipObjectDeep`, and `zipWith`
- *
- * The wrapper methods that are **not** chainable by default are:
- * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
- * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `divide`, `each`,
- * `eachRight`, `endsWith`, `eq`, `escape`, `escapeRegExp`, `every`, `find`,
- * `findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `first`,
- * `floor`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`,
- * `forOwnRight`, `get`, `gt`, `gte`, `has`, `hasIn`, `head`, `identity`,
- * `includes`, `indexOf`, `inRange`, `invoke`, `isArguments`, `isArray`,
- * `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`,
- * `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isEqualWith`,
- * `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMap`,
- * `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
- * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
- * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
- * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
- * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
- * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
- * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
- * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
- * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
- * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
- * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
- * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
- * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
- * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
- * `upperFirst`, `value`, and `words`
- *
- * @name _
- * @constructor
- * @category Seq
- * @param {*} value The value to wrap in a `lodash` instance.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2, 3]);
- *
- * // Returns an unwrapped value.
- * wrapped.reduce(_.add);
- * // => 6
- *
- * // Returns a wrapped value.
- * var squares = wrapped.map(square);
- *
- * _.isArray(squares);
- * // => false
- *
- * _.isArray(squares.value());
- * // => true
- */
- function lodash(value) {
- return value instanceof LodashWrapper
- ? value
- : new LodashWrapper(value);
- }
-
- /**
- * The base constructor for creating `lodash` wrapper objects.
- *
- * @private
- * @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable explicit method chain sequences.
- */
- function LodashWrapper(value, chainAll) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__chain__ = !!chainAll;
- }
-
- LodashWrapper.prototype = baseCreate(lodash.prototype);
- LodashWrapper.prototype.constructor = LodashWrapper;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Used by `_.defaults` to customize its `_.assignIn` use.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to assign.
- * @param {Object} object The parent object of `objValue`.
- * @returns {*} Returns the value to assign.
- */
- function assignInDefaults(objValue, srcValue, key, object) {
- if (objValue === undefined ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- return srcValue;
- }
- return objValue;
- }
-
- /**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- object[key] = value;
- }
- }
-
- /**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} prototype The object to inherit from.
- * @returns {Object} Returns the new object.
- */
- function baseCreate(proto) {
- return isObject(proto) ? objectCreate(proto) : {};
- }
-
- /**
- * The base implementation of `_.delay` and `_.defer` which accepts an array
- * of `func` arguments.
- *
- * @private
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {Object} args The arguments to provide to `func`.
- * @returns {number} Returns the timer id.
- */
- function baseDelay(func, wait, args) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return setTimeout(function() { func.apply(undefined, args); }, wait);
- }
-
- /**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEach = createBaseEach(baseForOwn);
-
- /**
- * The base implementation of `_.every` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`
- */
- function baseEvery(collection, predicate) {
- var result = true;
- baseEach(collection, function(value, index, collection) {
- result = !!predicate(value, index, collection);
- return result;
- });
- return result;
- }
-
- /**
- * The base implementation of methods like `_.max` and `_.min` which accepts a
- * `comparator` to determine the extremum value.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The iteratee invoked per iteration.
- * @param {Function} comparator The comparator used to compare values.
- * @returns {*} Returns the extremum value.
- */
- function baseExtremum(array, iteratee, comparator) {
- var index = -1,
- length = array.length;
-
- while (++index < length) {
- var value = array[index],
- current = iteratee(value);
-
- if (current != null && (computed === undefined
- ? (current === current && !false)
- : comparator(current, computed)
- )) {
- var computed = current,
- result = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.filter` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function baseFilter(collection, predicate) {
- var result = [];
- baseEach(collection, function(value, index, collection) {
- if (predicate(value, index, collection)) {
- result.push(value);
- }
- });
- return result;
- }
-
- /**
- * The base implementation of `_.flatten` with support for restricting flattening.
- *
- * @private
- * @param {Array} array The array to flatten.
- * @param {number} depth The maximum recursion depth.
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
- * @param {Array} [result=[]] The initial result value.
- * @returns {Array} Returns the new flattened array.
- */
- function baseFlatten(array, depth, predicate, isStrict, result) {
- var index = -1,
- length = array.length;
-
- predicate || (predicate = isFlattenable);
- result || (result = []);
-
- while (++index < length) {
- var value = array[index];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- // Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, depth - 1, predicate, isStrict, result);
- } else {
- arrayPush(result, value);
- }
- } else if (!isStrict) {
- result[result.length] = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseFor = createBaseFor();
-
- /**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
- }
-
- /**
- * The base implementation of `_.functions` which creates an array of
- * `object` function property names filtered from `props`.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Array} props The property names to filter.
- * @returns {Array} Returns the function names.
- */
- function baseFunctions(object, props) {
- return baseFilter(props, function(key) {
- return isFunction(object[key]);
- });
- }
-
- /**
- * The base implementation of `_.gt` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- */
- function baseGt(value, other) {
- return value > other;
- }
-
- /**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {boolean} [bitmask] The bitmask of comparison flags.
- * The bitmask may be composed of the following flags:
- * 1 - Unordered comparison
- * 2 - Partial comparison
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
- function baseIsEqual(value, other, customizer, bitmask, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
- }
-
- /**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = arrayTag,
- othTag = arrayTag;
-
- if (!objIsArr) {
- objTag = objectToString.call(object);
- objTag = objTag == argsTag ? objectTag : objTag;
- }
- if (!othIsArr) {
- othTag = objectToString.call(other);
- othTag = othTag == argsTag ? objectTag : othTag;
- }
- var objIsObj = objTag == objectTag && !isHostObject(object),
- othIsObj = othTag == objectTag && !isHostObject(other),
- isSameTag = objTag == othTag;
-
- stack || (stack = []);
- var stacked = find(stack, function(entry) {
- return entry[0] === object;
- });
- if (stacked && stacked[1]) {
- return stacked[1] == other;
- }
- stack.push([object, other]);
- if (isSameTag && !objIsObj) {
- var result = (objIsArr)
- ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
- : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
- stack.pop();
- return result;
- }
- if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
-
- var result = equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
- stack.pop();
- return result;
- }
- }
- if (!isSameTag) {
- return false;
- }
- var result = equalObjects(object, other, equalFunc, customizer, bitmask, stack);
- stack.pop();
- return result;
- }
-
- /**
- * The base implementation of `_.iteratee`.
- *
- * @private
- * @param {*} [value=_.identity] The value to convert to an iteratee.
- * @returns {Function} Returns the iteratee.
- */
- function baseIteratee(func) {
- if (typeof func == 'function') {
- return func;
- }
- if (func == null) {
- return identity;
- }
- return (typeof func == 'object' ? baseMatches : baseProperty)(func);
- }
-
- /**
- * The base implementation of `_.keys` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeys(object) {
- return nativeKeys(Object(object));
- }
-
- /**
- * The base implementation of `_.keysIn` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeysIn(object) {
- object = object == null ? object : Object(object);
-
- var result = [];
- for (var key in object) {
- result.push(key);
- }
- return result;
- }
-
- /**
- * The base implementation of `_.lt` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- */
- function baseLt(value, other) {
- return value < other;
- }
-
- /**
- * The base implementation of `_.map` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function baseMap(collection, iteratee) {
- var index = -1,
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value, key, collection) {
- result[++index] = iteratee(value, key, collection);
- });
- return result;
- }
-
- /**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatches(source) {
- var props = keys(source);
- return function(object) {
- var length = props.length;
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (length--) {
- var key = props[length];
- if (!(key in object &&
- baseIsEqual(source[key], object[key], undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG)
- )) {
- return false;
- }
- }
- return true;
- };
- }
-
- /**
- * The base implementation of `_.pick` without support for individual
- * property identifiers.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} props The property identifiers to pick.
- * @returns {Object} Returns the new object.
- */
- function basePick(object, props) {
- object = Object(object);
- return reduce(props, function(result, key) {
- if (key in object) {
- result[key] = object[key];
- }
- return result;
- }, {});
- }
-
- /**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
- }
-
- /**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
-
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
-
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
- }
-
- /**
- * Copies the values of `source` to `array`.
- *
- * @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
- */
- function copyArray(source) {
- return baseSlice(source, 0, source.length);
- }
-
- /**
- * The base implementation of `_.some` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function baseSome(collection, predicate) {
- var result;
-
- baseEach(collection, function(value, index, collection) {
- result = predicate(value, index, collection);
- return !result;
- });
- return !!result;
- }
-
- /**
- * The base implementation of `wrapperValue` which returns the result of
- * performing a sequence of actions on the unwrapped `value`, where each
- * successive action is supplied the return value of the previous.
- *
- * @private
- * @param {*} value The unwrapped value.
- * @param {Array} actions Actions to perform to resolve the unwrapped value.
- * @returns {*} Returns the resolved value.
- */
- function baseWrapperValue(value, actions) {
- var result = value;
- return reduce(actions, function(result, action) {
- return action.func.apply(action.thisArg, arrayPush([result], action.args));
- }, result);
- }
-
- /**
- * Compares values to sort them in ascending order.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {number} Returns the sort order indicator for `value`.
- */
- function compareAscending(value, other) {
- if (value !== other) {
- var valIsDefined = value !== undefined,
- valIsNull = value === null,
- valIsReflexive = value === value,
- valIsSymbol = false;
-
- var othIsDefined = other !== undefined,
- othIsNull = other === null,
- othIsReflexive = other === other,
- othIsSymbol = false;
-
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
- (valIsNull && othIsDefined && othIsReflexive) ||
- (!valIsDefined && othIsReflexive) ||
- !valIsReflexive) {
- return 1;
- }
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
- (othIsNull && valIsDefined && valIsReflexive) ||
- (!othIsDefined && valIsReflexive) ||
- !othIsReflexive) {
- return -1;
- }
- }
- return 0;
- }
-
- /**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property identifiers to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
- function copyObject(source, props, object, customizer) {
- object || (object = {});
-
- var index = -1,
- length = props.length;
-
- while (++index < length) {
- var key = props[index];
-
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : source[key];
-
- assignValue(object, key, newValue);
- }
- return object;
- }
-
- /**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
- function createAssigner(assigner) {
- return rest(function(object, sources) {
- var index = -1,
- length = sources.length,
- customizer = length > 1 ? sources[length - 1] : undefined;
-
- customizer = (assigner.length > 3 && typeof customizer == 'function')
- ? (length--, customizer)
- : undefined;
-
- object = Object(object);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object, source, index, customizer);
- }
- }
- return object;
- });
- }
-
- /**
- * Creates a `baseEach` or `baseEachRight` function.
- *
- * @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
-
- /**
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
-
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
- }
-
- /**
- * Creates a function that produces an instance of `Ctor` regardless of
- * whether it was invoked as part of a `new` expression or by `call` or `apply`.
- *
- * @private
- * @param {Function} Ctor The constructor to wrap.
- * @returns {Function} Returns the new wrapped function.
- */
- function createCtorWrapper(Ctor) {
- return function() {
- // Use a `switch` statement to work with class constructors. See
- // http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
- // for more details.
- var args = arguments;
- var thisBinding = baseCreate(Ctor.prototype),
- result = Ctor.apply(thisBinding, args);
-
- // Mimic the constructor's `return` behavior.
- // See https://es5.github.io/#x13.2.2 for more details.
- return isObject(result) ? result : thisBinding;
- };
- }
-
- /**
- * Creates a `_.find` or `_.findLast` function.
- *
- * @private
- * @param {Function} findIndexFunc The function to find the collection index.
- * @returns {Function} Returns the new find function.
- */
- function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- predicate = baseIteratee(predicate, 3);
- if (!isArrayLike(collection)) {
- var props = keys(collection);
- }
- var index = findIndexFunc(props || collection, function(value, key) {
- if (props) {
- key = value;
- value = iterable[key];
- }
- return predicate(value, key, iterable);
- }, fromIndex);
- return index > -1 ? collection[props ? props[index] : index] : undefined;
- };
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with the `this` binding
- * of `thisArg` and `partials` prepended to the arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to
- * the new function.
- * @returns {Function} Returns the new wrapped function.
- */
- function createPartialWrapper(func, bitmask, thisArg, partials) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var isBind = bitmask & BIND_FLAG,
- Ctor = createCtorWrapper(func);
-
- function wrapper() {
- var argsIndex = -1,
- argsLength = arguments.length,
- leftIndex = -1,
- leftLength = partials.length,
- args = Array(leftLength + argsLength),
- fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-
- while (++leftIndex < leftLength) {
- args[leftIndex] = partials[leftIndex];
- }
- while (argsLength--) {
- args[leftIndex++] = arguments[++argsIndex];
- }
- return fn.apply(isBind ? thisArg : this, args);
- }
- return wrapper;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for arrays with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Array} array The array to compare.
- * @param {Array} other The other array to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `array` and `other` objects.
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
- */
- function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
- arrLength = array.length,
- othLength = other.length;
-
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- var index = -1,
- result = true,
- seen = (bitmask & UNORDERED_COMPARE_FLAG) ? [] : undefined;
-
- // Ignore non-index properties.
- while (++index < arrLength) {
- var arrValue = array[index],
- othValue = other[index];
-
- var compared;
- if (compared !== undefined) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
- // Recursively compare arrays (susceptible to call stack limits).
- if (seen) {
- if (!baseSome(other, function(othValue, othIndex) {
- if (!indexOf(seen, othIndex) &&
- (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
- return seen.push(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(
- arrValue === othValue ||
- equalFunc(arrValue, othValue, customizer, bitmask, stack)
- )) {
- result = false;
- break;
- }
- }
- return result;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
- switch (tag) {
-
- case boolTag:
- case dateTag:
- // Coerce dates and booleans to numbers, dates to milliseconds and
- // booleans to `1` or `0` treating invalid dates coerced to `NaN` as
- // not equal.
- return +object == +other;
-
- case errorTag:
- return object.name == other.name && object.message == other.message;
-
- case numberTag:
- // Treat `NaN` vs. `NaN` as equal.
- return (object != +object) ? other != +other : object == +other;
-
- case regexpTag:
- case stringTag:
- // Coerce regexes to strings and treat strings, primitives and objects,
- // as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
- // for more details.
- return object == (other + '');
-
- }
- return false;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
- objProps = keys(object),
- objLength = objProps.length,
- othProps = keys(other),
- othLength = othProps.length;
-
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
- return false;
- }
- }
- var result = true;
-
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
-
- var compared;
- // Recursively compare objects (susceptible to call stack limits).
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
-
- // Non `Object` object instances with different constructors are not equal.
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- return result;
- }
-
- /**
- * Gets the "length" property value of `object`.
- *
- * **Note:** This function is used to avoid a
- * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
- * Safari on at least iOS 8.1-8.3 ARM64.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {*} Returns the "length" value.
- */
- var getLength = baseProperty('length');
-
- /**
- * Checks if `value` is a flattenable `arguments` object or array.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
- function isFlattenable(value) {
- return isArray(value) || isArguments(value);
- }
-
- /**
- * Converts `value` to a string key if it's not a string or symbol.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {string|symbol} Returns the key.
- */
- var toKey = String;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an array with all falsey values removed. The values `false`, `null`,
- * `0`, `""`, `undefined`, and `NaN` are falsey.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to compact.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.compact([0, 1, false, 2, '', 3]);
- * // => [1, 2, 3]
- */
- function compact(array) {
- return baseFilter(array, Boolean);
- }
-
- /**
- * Creates a new array concatenating `array` with any additional arrays
- * and/or values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to concatenate.
- * @param {...*} [values] The values to concatenate.
- * @returns {Array} Returns the new concatenated array.
- * @example
- *
- * var array = [1];
- * var other = _.concat(array, 2, [3], [[4]]);
- *
- * console.log(other);
- * // => [1, 2, 3, [4]]
- *
- * console.log(array);
- * // => [1]
- */
- function concat() {
- var length = arguments.length,
- args = Array(length ? length - 1 : 0),
- array = arguments[0],
- index = length;
-
- while (index--) {
- args[index - 1] = arguments[index];
- }
- return length
- ? arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1))
- : [];
- }
-
- /**
- * This method is like `_.find` except that it returns the index of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.findIndex(users, function(o) { return o.user == 'barney'; });
- * // => 0
- *
- * // The `_.matches` iteratee shorthand.
- * _.findIndex(users, { 'user': 'fred', 'active': false });
- * // => 1
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findIndex(users, ['active', false]);
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.findIndex(users, 'active');
- * // => 2
- */
- function findIndex(array, predicate, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseFindIndex(array, baseIteratee(predicate, 3), index);
- }
-
- /**
- * Flattens `array` a single level deep.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flatten([1, [2, [3, [4]], 5]]);
- * // => [1, 2, [3, [4]], 5]
- */
- function flatten(array) {
- var length = array ? array.length : 0;
- return length ? baseFlatten(array, 1) : [];
- }
-
- /**
- * Recursively flattens `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flattenDeep([1, [2, [3, [4]], 5]]);
- * // => [1, 2, 3, 4, 5]
- */
- function flattenDeep(array) {
- var length = array ? array.length : 0;
- return length ? baseFlatten(array, INFINITY) : [];
- }
-
- /**
- * Gets the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias first
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the first element of `array`.
- * @example
- *
- * _.head([1, 2, 3]);
- * // => 1
- *
- * _.head([]);
- * // => undefined
- */
- function head(array) {
- return (array && array.length) ? array[0] : undefined;
- }
-
- /**
- * Gets the index at which the first occurrence of `value` is found in `array`
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the
- * offset from the end of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.indexOf([1, 2, 1, 2], 2);
- * // => 1
- *
- * // Search from the `fromIndex`.
- * _.indexOf([1, 2, 1, 2], 2, 2);
- * // => 3
- */
- function indexOf(array, value, fromIndex) {
- var length = array ? array.length : 0;
- if (typeof fromIndex == 'number') {
- fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex;
- } else {
- fromIndex = 0;
- }
- var index = (fromIndex || 0) - 1,
- isReflexive = value === value;
-
- while (++index < length) {
- var other = array[index];
- if ((isReflexive ? other === value : other !== other)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * Gets the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the last element of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- */
- function last(array) {
- var length = array ? array.length : 0;
- return length ? array[length - 1] : undefined;
- }
-
- /**
- * Creates a slice of `array` from `start` up to, but not including, `end`.
- *
- * **Note:** This method is used instead of
- * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
- * returned.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function slice(array, start, end) {
- var length = array ? array.length : 0;
- start = start == null ? 0 : +start;
- end = end === undefined ? length : +end;
- return length ? baseSlice(array, start, end) : [];
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` wrapper instance that wraps `value` with explicit method
- * chain sequences enabled. The result of such sequences must be unwrapped
- * with `_#value`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Seq
- * @param {*} value The value to wrap.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'pebbles', 'age': 1 }
- * ];
- *
- * var youngest = _
- * .chain(users)
- * .sortBy('age')
- * .map(function(o) {
- * return o.user + ' is ' + o.age;
- * })
- * .head()
- * .value();
- * // => 'pebbles is 1'
- */
- function chain(value) {
- var result = lodash(value);
- result.__chain__ = true;
- return result;
- }
-
- /**
- * This method invokes `interceptor` and returns `value`. The interceptor
- * is invoked with one argument; (value). The purpose of this method is to
- * "tap into" a method chain sequence in order to modify intermediate results.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns `value`.
- * @example
- *
- * _([1, 2, 3])
- * .tap(function(array) {
- * // Mutate input array.
- * array.pop();
- * })
- * .reverse()
- * .value();
- * // => [2, 1]
- */
- function tap(value, interceptor) {
- interceptor(value);
- return value;
- }
-
- /**
- * This method is like `_.tap` except that it returns the result of `interceptor`.
- * The purpose of this method is to "pass thru" values replacing intermediate
- * results in a method chain sequence.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns the result of `interceptor`.
- * @example
- *
- * _(' abc ')
- * .chain()
- * .trim()
- * .thru(function(value) {
- * return [value];
- * })
- * .value();
- * // => ['abc']
- */
- function thru(value, interceptor) {
- return interceptor(value);
- }
-
- /**
- * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
- *
- * @name chain
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * // A sequence without explicit chaining.
- * _(users).head();
- * // => { 'user': 'barney', 'age': 36 }
- *
- * // A sequence with explicit chaining.
- * _(users)
- * .chain()
- * .head()
- * .pick('user')
- * .value();
- * // => { 'user': 'barney' }
- */
- function wrapperChain() {
- return chain(this);
- }
-
- /**
- * Executes the chain sequence to resolve the unwrapped value.
- *
- * @name value
- * @memberOf _
- * @since 0.1.0
- * @alias toJSON, valueOf
- * @category Seq
- * @returns {*} Returns the resolved unwrapped value.
- * @example
- *
- * _([1, 2, 3]).value();
- * // => [1, 2, 3]
- */
- function wrapperValue() {
- return baseWrapperValue(this.__wrapped__, this.__actions__);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Checks if `predicate` returns truthy for **all** elements of `collection`.
- * Iteration is stopped once `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- * @example
- *
- * _.every([true, 1, null, 'yes'], Boolean);
- * // => false
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.every(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.every(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.every(users, 'active');
- * // => false
- */
- function every(collection, predicate, guard) {
- predicate = guard ? undefined : predicate;
- return baseEvery(collection, baseIteratee(predicate));
- }
-
- /**
- * Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.reject
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, { 'age': 36, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.filter(users, 'active');
- * // => objects for ['barney']
- */
- function filter(collection, predicate) {
- return baseFilter(collection, baseIteratee(predicate));
- }
-
- /**
- * Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false },
- * { 'user': 'pebbles', 'age': 1, 'active': true }
- * ];
- *
- * _.find(users, function(o) { return o.age < 40; });
- * // => object for 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.find(users, { 'age': 1, 'active': true });
- * // => object for 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.find(users, ['active', false]);
- * // => object for 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.find(users, 'active');
- * // => object for 'barney'
- */
- var find = createFind(findIndex);
-
- /**
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
- * The iteratee is invoked with three arguments: (value, index|key, collection).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * **Note:** As with other "Collections" methods, objects with a "length"
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
- * or `_.forOwn` for object iteration.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias each
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEachRight
- * @example
- *
- * _([1, 2]).forEach(function(value) {
- * console.log(value);
- * });
- * // => Logs `1` then `2`.
- *
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
- function forEach(collection, iteratee) {
- return baseEach(collection, baseIteratee(iteratee));
- }
-
- /**
- * Creates an array of values by running each element in `collection` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
- *
- * The guarded methods are:
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * _.map([4, 8], square);
- * // => [16, 64]
- *
- * _.map({ 'a': 4, 'b': 8 }, square);
- * // => [16, 64] (iteration order is not guaranteed)
- *
- * var users = [
- * { 'user': 'barney' },
- * { 'user': 'fred' }
- * ];
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, 'user');
- * // => ['barney', 'fred']
- */
- function map(collection, iteratee) {
- return baseMap(collection, baseIteratee(iteratee));
- }
-
- /**
- * Reduces `collection` to a value which is the accumulated result of running
- * each element in `collection` thru `iteratee`, where each successive
- * invocation is supplied the return value of the previous. If `accumulator`
- * is not given, the first element of `collection` is used as the initial
- * value. The iteratee is invoked with four arguments:
- * (accumulator, value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.reduce`, `_.reduceRight`, and `_.transform`.
- *
- * The guarded methods are:
- * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
- * and `sortBy`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduceRight
- * @example
- *
- * _.reduce([1, 2], function(sum, n) {
- * return sum + n;
- * }, 0);
- * // => 3
- *
- * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * return result;
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
- */
- function reduce(collection, iteratee, accumulator) {
- return baseReduce(collection, baseIteratee(iteratee), accumulator, arguments.length < 3, baseEach);
- }
-
- /**
- * Gets the size of `collection` by returning its length for array-like
- * values or the number of own enumerable string keyed properties for objects.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @returns {number} Returns the collection size.
- * @example
- *
- * _.size([1, 2, 3]);
- * // => 3
- *
- * _.size({ 'a': 1, 'b': 2 });
- * // => 2
- *
- * _.size('pebbles');
- * // => 7
- */
- function size(collection) {
- if (collection == null) {
- return 0;
- }
- collection = isArrayLike(collection) ? collection : keys(collection);
- return collection.length;
- }
-
- /**
- * Checks if `predicate` returns truthy for **any** element of `collection`.
- * Iteration is stopped once `predicate` returns truthy. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- * @example
- *
- * _.some([null, 0, 'yes', false], Boolean);
- * // => true
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.some(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.some(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.some(users, 'active');
- * // => true
- */
- function some(collection, predicate, guard) {
- predicate = guard ? undefined : predicate;
- return baseSome(collection, baseIteratee(predicate));
- }
-
- /**
- * Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection thru each iteratee. This method
- * performs a stable sort, that is, it preserves the original sort order of
- * equal elements. The iteratees are invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [iteratees=[_.identity]] The iteratees to sort by.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 34 }
- * ];
- *
- * _.sortBy(users, function(o) { return o.user; });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- *
- * _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
- *
- * _.sortBy(users, 'user', function(o) {
- * return Math.floor(o.age / 10);
- * });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- */
- function sortBy(collection, iteratee) {
- var index = 0;
- iteratee = baseIteratee(iteratee);
-
- return baseMap(baseMap(collection, function(value, key, collection) {
- return { 'value': value, 'index': index++, 'criteria': iteratee(value, key, collection) };
- }).sort(function(object, other) {
- return compareAscending(object.criteria, other.criteria) || (object.index - other.index);
- }), baseProperty('value'));
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a function that invokes `func`, with the `this` binding and arguments
- * of the created function, while it's called less than `n` times. Subsequent
- * calls to the created function return the result of the last `func` invocation.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {number} n The number of calls at which `func` is no longer invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * jQuery(element).on('click', _.before(5, addContactToList));
- * // => allows adding up to 4 contacts to the list
- */
- function before(n, func) {
- var result;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n > 0) {
- result = func.apply(this, arguments);
- }
- if (n <= 1) {
- func = undefined;
- }
- return result;
- };
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and `partials` prepended to the arguments it receives.
- *
- * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for partially applied arguments.
- *
- * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
- * property of bound functions.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to bind.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * var greet = function(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * };
- *
- * var object = { 'user': 'fred' };
- *
- * var bound = _.bind(greet, object, 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bind(greet, object, _, '!');
- * bound('hi');
- * // => 'hi fred!'
- */
- var bind = rest(function(func, thisArg, partials) {
- return createPartialWrapper(func, BIND_FLAG | PARTIAL_FLAG, thisArg, partials);
- });
-
- /**
- * Defers invoking the `func` until the current call stack has cleared. Any
- * additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to defer.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.defer(function(text) {
- * console.log(text);
- * }, 'deferred');
- * // => Logs 'deferred' after one or more milliseconds.
- */
- var defer = rest(function(func, args) {
- return baseDelay(func, 1, args);
- });
-
- /**
- * Invokes `func` after `wait` milliseconds. Any additional arguments are
- * provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.delay(function(text) {
- * console.log(text);
- * }, 1000, 'later');
- * // => Logs 'later' after one second.
- */
- var delay = rest(function(func, wait, args) {
- return baseDelay(func, toNumber(wait) || 0, args);
- });
-
- /**
- * Creates a function that negates the result of the predicate `func`. The
- * `func` predicate is invoked with the `this` binding and arguments of the
- * created function.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} predicate The predicate to negate.
- * @returns {Function} Returns the new negated function.
- * @example
- *
- * function isEven(n) {
- * return n % 2 == 0;
- * }
- *
- * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
- * // => [1, 3, 5]
- */
- function negate(predicate) {
- if (typeof predicate != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return function() {
- return !predicate.apply(this, arguments);
- };
- }
-
- /**
- * Creates a function that is restricted to invoking `func` once. Repeat calls
- * to the function return the value of the first invocation. The `func` is
- * invoked with the `this` binding and arguments of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var initialize = _.once(createApplication);
- * initialize();
- * initialize();
- * // `initialize` invokes `createApplication` once
- */
- function once(func) {
- return before(2, func);
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of the
- * created function and arguments from `start` and beyond provided as
- * an array.
- *
- * **Note:** This method is based on the
- * [rest parameter](https://mdn.io/rest_parameters).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.rest(function(what, names) {
- * return what + ' ' + _.initial(names).join(', ') +
- * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
- * });
- *
- * say('hello', 'fred', 'barney', 'pebbles');
- * // => 'hello fred, barney, & pebbles'
- */
- function rest(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = nativeMax(start === undefined ? (func.length - 1) : toInteger(start), 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
-
- while (++index < length) {
- array[index] = args[start + index];
- }
- var otherArgs = Array(start + 1);
- index = -1;
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = array;
- return func.apply(this, otherArgs);
- };
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a shallow clone of `value`.
- *
- * **Note:** This method is loosely based on the
- * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
- * and supports cloning arrays, array buffers, booleans, date objects, maps,
- * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
- * arrays. The own enumerable properties of `arguments` objects are cloned
- * as plain objects. An empty object is returned for uncloneable values such
- * as error objects, functions, DOM nodes, and WeakMaps.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to clone.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeep
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var shallow = _.clone(objects);
- * console.log(shallow[0] === objects[0]);
- * // => true
- */
- function clone(value) {
- if (!isObject(value)) {
- return value;
- }
- return isArray(value) ? copyArray(value) : copyObject(value, keys(value));
- }
-
- /**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
- function eq(value, other) {
- return value === other || (value !== value && other !== other);
- }
-
- /**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
- function isArguments(value) {
- // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.
- return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
- (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
- }
-
- /**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @type {Function}
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
- var isArray = Array.isArray;
-
- /**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
- function isArrayLike(value) {
- return value != null && isLength(getLength(value)) && !isFunction(value);
- }
-
- /**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object,
- * else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
- function isArrayLikeObject(value) {
- return isObjectLike(value) && isArrayLike(value);
- }
-
- /**
- * Checks if `value` is classified as a boolean primitive or object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isBoolean(false);
- * // => true
- *
- * _.isBoolean(null);
- * // => false
- */
- function isBoolean(value) {
- return value === true || value === false ||
- (isObjectLike(value) && objectToString.call(value) == boolTag);
- }
-
- /**
- * Checks if `value` is classified as a `Date` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isDate(new Date);
- * // => true
- *
- * _.isDate('Mon April 23 2012');
- * // => false
- */
- function isDate(value) {
- return isObjectLike(value) && objectToString.call(value) == dateTag;
- }
-
- /**
- * Checks if `value` is an empty object, collection, map, or set.
- *
- * Objects are considered empty if they have no own enumerable string keyed
- * properties.
- *
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
- * jQuery-like collections are considered empty if they have a `length` of `0`.
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
- * @example
- *
- * _.isEmpty(null);
- * // => true
- *
- * _.isEmpty(true);
- * // => true
- *
- * _.isEmpty(1);
- * // => true
- *
- * _.isEmpty([1, 2, 3]);
- * // => false
- *
- * _.isEmpty({ 'a': 1 });
- * // => false
- */
- function isEmpty(value) {
- if (isArrayLike(value) &&
- (isArray(value) || isString(value) ||
- isFunction(value.splice) || isArguments(value))) {
- return !value.length;
- }
- return !keys(value).length;
- }
-
- /**
- * Performs a deep comparison between two values to determine if they are
- * equivalent.
- *
- * **Note:** This method supports comparing arrays, array buffers, booleans,
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
- * by their own, not inherited, enumerable properties. Functions and DOM
- * nodes are **not** supported.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent,
- * else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.isEqual(object, other);
- * // => true
- *
- * object === other;
- * // => false
- */
- function isEqual(value, other) {
- return baseIsEqual(value, other);
- }
-
- /**
- * Checks if `value` is a finite primitive number.
- *
- * **Note:** This method is based on
- * [`Number.isFinite`](https://mdn.io/Number/isFinite).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number,
- * else `false`.
- * @example
- *
- * _.isFinite(3);
- * // => true
- *
- * _.isFinite(Number.MIN_VALUE);
- * // => true
- *
- * _.isFinite(Infinity);
- * // => false
- *
- * _.isFinite('3');
- * // => false
- */
- function isFinite(value) {
- return typeof value == 'number' && nativeIsFinite(value);
- }
-
- /**
- * Checks if `value` is classified as a `Function` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isFunction(_);
- * // => true
- *
- * _.isFunction(/abc/);
- * // => false
- */
- function isFunction(value) {
- // The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 8 which returns 'object' for typed array and weak map constructors,
- // and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
- var tag = isObject(value) ? objectToString.call(value) : '';
- return tag == funcTag || tag == genTag;
- }
-
- /**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This function is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length,
- * else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
- function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
- }
-
- /**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
- function isObject(value) {
- var type = typeof value;
- return !!value && (type == 'object' || type == 'function');
- }
-
- /**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
- function isObjectLike(value) {
- return !!value && typeof value == 'object';
- }
-
- /**
- * Checks if `value` is `NaN`.
- *
- * **Note:** This method is based on
- * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
- * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
- * `undefined` and other non-number values.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- * @example
- *
- * _.isNaN(NaN);
- * // => true
- *
- * _.isNaN(new Number(NaN));
- * // => true
- *
- * isNaN(undefined);
- * // => true
- *
- * _.isNaN(undefined);
- * // => false
- */
- function isNaN(value) {
- // An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some
- // ActiveX objects in IE.
- return isNumber(value) && value != +value;
- }
-
- /**
- * Checks if `value` is `null`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
- * @example
- *
- * _.isNull(null);
- * // => true
- *
- * _.isNull(void 0);
- * // => false
- */
- function isNull(value) {
- return value === null;
- }
-
- /**
- * Checks if `value` is classified as a `Number` primitive or object.
- *
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
- * classified as numbers, use the `_.isFinite` method.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isNumber(3);
- * // => true
- *
- * _.isNumber(Number.MIN_VALUE);
- * // => true
- *
- * _.isNumber(Infinity);
- * // => true
- *
- * _.isNumber('3');
- * // => false
- */
- function isNumber(value) {
- return typeof value == 'number' ||
- (isObjectLike(value) && objectToString.call(value) == numberTag);
- }
-
- /**
- * Checks if `value` is classified as a `RegExp` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isRegExp(/abc/);
- * // => true
- *
- * _.isRegExp('/abc/');
- * // => false
- */
- function isRegExp(value) {
- return isObject(value) && objectToString.call(value) == regexpTag;
- }
-
- /**
- * Checks if `value` is classified as a `String` primitive or object.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isString('abc');
- * // => true
- *
- * _.isString(1);
- * // => false
- */
- function isString(value) {
- return typeof value == 'string' ||
- (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag);
- }
-
- /**
- * Checks if `value` is `undefined`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
- * @example
- *
- * _.isUndefined(void 0);
- * // => true
- *
- * _.isUndefined(null);
- * // => false
- */
- function isUndefined(value) {
- return value === undefined;
- }
-
- /**
- * Converts `value` to an array.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Array} Returns the converted array.
- * @example
- *
- * _.toArray({ 'a': 1, 'b': 2 });
- * // => [1, 2]
- *
- * _.toArray('abc');
- * // => ['a', 'b', 'c']
- *
- * _.toArray(1);
- * // => []
- *
- * _.toArray(null);
- * // => []
- */
- function toArray(value) {
- if (!isArrayLike(value)) {
- return values(value);
- }
- return value.length ? copyArray(value) : [];
- }
-
- /**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
- var toInteger = Number;
-
- /**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3.2);
- * // => 3.2
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3.2');
- * // => 3.2
- */
- var toNumber = Number;
-
- /**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- function toString(value) {
- if (typeof value == 'string') {
- return value;
- }
- return value == null ? '' : (value + '');
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Assigns own enumerable string keyed properties of source objects to the
- * destination object. Source objects are applied from left to right.
- * Subsequent sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object` and is loosely based on
- * [`Object.assign`](https://mdn.io/Object/assign).
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assignIn
- * @example
- *
- * function Foo() {
- * this.c = 3;
- * }
- *
- * function Bar() {
- * this.e = 5;
- * }
- *
- * Foo.prototype.d = 4;
- * Bar.prototype.f = 6;
- *
- * _.assign({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'c': 3, 'e': 5 }
- */
- var assign = createAssigner(function(object, source) {
- copyObject(source, keys(source), object);
- });
-
- /**
- * This method is like `_.assign` except that it iterates over own and
- * inherited source properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extend
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assign
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * function Bar() {
- * this.d = 4;
- * }
- *
- * Foo.prototype.c = 3;
- * Bar.prototype.e = 5;
- *
- * _.assignIn({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
- */
- var assignIn = createAssigner(function(object, source) {
- copyObject(source, keysIn(source), object);
- });
-
- /**
- * This method is like `_.assignIn` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extendWith
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignInWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keysIn(source), object, customizer);
- });
-
- /**
- * Creates an object that inherits from the `prototype` object. If a
- * `properties` object is given, its own enumerable string keyed properties
- * are assigned to the created object.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Object
- * @param {Object} prototype The object to inherit from.
- * @param {Object} [properties] The properties to assign to the object.
- * @returns {Object} Returns the new object.
- * @example
- *
- * function Shape() {
- * this.x = 0;
- * this.y = 0;
- * }
- *
- * function Circle() {
- * Shape.call(this);
- * }
- *
- * Circle.prototype = _.create(Shape.prototype, {
- * 'constructor': Circle
- * });
- *
- * var circle = new Circle;
- * circle instanceof Circle;
- * // => true
- *
- * circle instanceof Shape;
- * // => true
- */
- function create(prototype, properties) {
- var result = baseCreate(prototype);
- return properties ? assign(result, properties) : result;
- }
-
- /**
- * Assigns own and inherited enumerable string keyed properties of source
- * objects to the destination object for all destination properties that
- * resolve to `undefined`. Source objects are applied from left to right.
- * Once a property is set, additional values of the same property are ignored.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaultsDeep
- * @example
- *
- * _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
- * // => { 'user': 'barney', 'age': 36 }
- */
- var defaults = rest(function(args) {
- args.push(undefined, assignInDefaults);
- return assignInWith.apply(undefined, args);
- });
-
- /**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': 2 } };
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b');
- * // => true
- *
- * _.has(object, ['a', 'b']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
- function has(object, path) {
- return object != null && hasOwnProperty.call(object, path);
- }
-
- /**
- * Creates an array of the own enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects. See the
- * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
- * for more details.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keys(new Foo);
- * // => ['a', 'b'] (iteration order is not guaranteed)
- *
- * _.keys('hi');
- * // => ['0', '1']
- */
- var keys = baseKeys;
-
- /**
- * Creates an array of the own and inherited enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keysIn(new Foo);
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
- */
- var keysIn = baseKeysIn;
-
- /**
- * Creates an object composed of the picked `object` properties.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property identifiers to pick.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pick(object, ['a', 'c']);
- * // => { 'a': 1, 'c': 3 }
- */
- var pick = rest(function(object, props) {
- return object == null ? {} : basePick(object, baseMap(baseFlatten(props, 1), toKey));
- });
-
- /**
- * This method is like `_.get` except that if the resolved value is a
- * function it's invoked with the `this` binding of its parent object and
- * its result is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to resolve.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
- *
- * _.result(object, 'a[0].b.c1');
- * // => 3
- *
- * _.result(object, 'a[0].b.c2');
- * // => 4
- *
- * _.result(object, 'a[0].b.c3', 'default');
- * // => 'default'
- *
- * _.result(object, 'a[0].b.c3', _.constant('default'));
- * // => 'default'
- */
- function result(object, path, defaultValue) {
- var value = object == null ? undefined : object[path];
- if (value === undefined) {
- value = defaultValue;
- }
- return isFunction(value) ? value.call(object) : value;
- }
-
- /**
- * Creates an array of the own enumerable string keyed property values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.values(new Foo);
- * // => [1, 2] (iteration order is not guaranteed)
- *
- * _.values('hi');
- * // => ['h', 'i']
- */
- function values(object) {
- return object ? baseValues(object, keys(object)) : [];
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to
- * their corresponding HTML entities.
- *
- * **Note:** No other characters are escaped. To escape additional
- * characters use a third-party library like [_he_](https://mths.be/he).
- *
- * Though the ">" character is escaped for symmetry, characters like
- * ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value. See
- * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
- * (under "semi-related fun fact") for more details.
- *
- * Backticks are escaped because in IE < 9, they can break out of
- * attribute values or HTML comments. See [#59](https://html5sec.org/#59),
- * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
- * [#133](https://html5sec.org/#133) of the
- * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
- *
- * When working with HTML you should always
- * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
- * XSS vectors.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escape('fred, barney, & pebbles');
- * // => 'fred, barney, &amp; pebbles'
- */
- function escape(string) {
- string = toString(string);
- return (string && reHasUnescapedHtml.test(string))
- ? string.replace(reUnescapedHtml, escapeHtmlChar)
- : string;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * This method returns the first argument given to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'user': 'fred' };
- *
- * console.log(_.identity(object) === object);
- * // => true
- */
- function identity(value) {
- return value;
- }
-
- /**
- * Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name, the created function returns the
- * property value for a given element. If `func` is an array or object, the
- * created function returns `true` for elements that contain the equivalent
- * source properties, otherwise it returns `false`.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Util
- * @param {*} [func=_.identity] The value to convert to a callback.
- * @returns {Function} Returns the callback.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
- * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, _.iteratee(['user', 'fred']));
- * // => [{ 'user': 'fred', 'age': 40 }]
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, _.iteratee('user'));
- * // => ['barney', 'fred']
- *
- * // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
- * return !_.isRegExp(func) ? iteratee(func) : function(string) {
- * return func.test(string);
- * };
- * });
- *
- * _.filter(['abc', 'def'], /ef/);
- * // => ['def']
- */
- var iteratee = baseIteratee;
-
- /**
- * Creates a function that performs a partial deep comparison between a given
- * object and `source`, returning `true` if the given object has equivalent
- * property values, else `false`. The created function is equivalent to
- * `_.isMatch` with a `source` partially applied.
- *
- * **Note:** This method supports comparing the same values as `_.isEqual`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, _.matches({ 'age': 40, 'active': false }));
- * // => [{ 'user': 'fred', 'age': 40, 'active': false }]
- */
- function matches(source) {
- return baseMatches(assign({}, source));
- }
-
- /**
- * Adds all own enumerable string keyed function properties of a source
- * object to the destination object. If `object` is a function, then methods
- * are added to its prototype as well.
- *
- * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
- * avoid conflicts caused by modifying the original.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Function|Object} [object=lodash] The destination object.
- * @param {Object} source The object of functions to add.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
- * @returns {Function|Object} Returns `object`.
- * @example
- *
- * function vowels(string) {
- * return _.filter(string, function(v) {
- * return /[aeiou]/i.test(v);
- * });
- * }
- *
- * _.mixin({ 'vowels': vowels });
- * _.vowels('fred');
- * // => ['e']
- *
- * _('fred').vowels().value();
- * // => ['e']
- *
- * _.mixin({ 'vowels': vowels }, { 'chain': false });
- * _('fred').vowels();
- * // => ['e']
- */
- function mixin(object, source, options) {
- var props = keys(source),
- methodNames = baseFunctions(source, props);
-
- if (options == null &&
- !(isObject(source) && (methodNames.length || !props.length))) {
- options = source;
- source = object;
- object = this;
- methodNames = baseFunctions(source, keys(source));
- }
- var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
- isFunc = isFunction(object);
-
- baseEach(methodNames, function(methodName) {
- var func = source[methodName];
- object[methodName] = func;
- if (isFunc) {
- object.prototype[methodName] = function() {
- var chainAll = this.__chain__;
- if (chain || chainAll) {
- var result = object(this.__wrapped__),
- actions = result.__actions__ = copyArray(this.__actions__);
-
- actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
- result.__chain__ = chainAll;
- return result;
- }
- return func.apply(object, arrayPush([this.value()], arguments));
- };
- }
- });
-
- return object;
- }
-
- /**
- * Reverts the `_` variable to its previous value and returns a reference to
- * the `lodash` function.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @returns {Function} Returns the `lodash` function.
- * @example
- *
- * var lodash = _.noConflict();
- */
- function noConflict() {
- if (root._ === this) {
- root._ = oldDash;
- }
- return this;
- }
-
- /**
- * A method that returns `undefined`.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Util
- * @example
- *
- * _.times(2, _.noop);
- * // => [undefined, undefined]
- */
- function noop() {
- // No operation performed.
- }
-
- /**
- * Generates a unique ID. If `prefix` is given, the ID is appended to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {string} [prefix=''] The value to prefix the ID with.
- * @returns {string} Returns the unique ID.
- * @example
- *
- * _.uniqueId('contact_');
- * // => 'contact_104'
- *
- * _.uniqueId();
- * // => '105'
- */
- function uniqueId(prefix) {
- var id = ++idCounter;
- return toString(prefix) + id;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Computes the maximum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * _.max([4, 2, 8, 6]);
- * // => 8
- *
- * _.max([]);
- * // => undefined
- */
- function max(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseGt)
- : undefined;
- }
-
- /**
- * Computes the minimum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * _.min([4, 2, 8, 6]);
- * // => 2
- *
- * _.min([]);
- * // => undefined
- */
- function min(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseLt)
- : undefined;
- }
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return wrapped values in chain sequences.
- lodash.assignIn = assignIn;
- lodash.before = before;
- lodash.bind = bind;
- lodash.chain = chain;
- lodash.compact = compact;
- lodash.concat = concat;
- lodash.create = create;
- lodash.defaults = defaults;
- lodash.defer = defer;
- lodash.delay = delay;
- lodash.filter = filter;
- lodash.flatten = flatten;
- lodash.flattenDeep = flattenDeep;
- lodash.iteratee = iteratee;
- lodash.keys = keys;
- lodash.map = map;
- lodash.matches = matches;
- lodash.mixin = mixin;
- lodash.negate = negate;
- lodash.once = once;
- lodash.pick = pick;
- lodash.slice = slice;
- lodash.sortBy = sortBy;
- lodash.tap = tap;
- lodash.thru = thru;
- lodash.toArray = toArray;
- lodash.values = values;
-
- // Add aliases.
- lodash.extend = assignIn;
-
- // Add methods to `lodash.prototype`.
- mixin(lodash, lodash);
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return unwrapped values in chain sequences.
- lodash.clone = clone;
- lodash.escape = escape;
- lodash.every = every;
- lodash.find = find;
- lodash.forEach = forEach;
- lodash.has = has;
- lodash.head = head;
- lodash.identity = identity;
- lodash.indexOf = indexOf;
- lodash.isArguments = isArguments;
- lodash.isArray = isArray;
- lodash.isBoolean = isBoolean;
- lodash.isDate = isDate;
- lodash.isEmpty = isEmpty;
- lodash.isEqual = isEqual;
- lodash.isFinite = isFinite;
- lodash.isFunction = isFunction;
- lodash.isNaN = isNaN;
- lodash.isNull = isNull;
- lodash.isNumber = isNumber;
- lodash.isObject = isObject;
- lodash.isRegExp = isRegExp;
- lodash.isString = isString;
- lodash.isUndefined = isUndefined;
- lodash.last = last;
- lodash.max = max;
- lodash.min = min;
- lodash.noConflict = noConflict;
- lodash.noop = noop;
- lodash.reduce = reduce;
- lodash.result = result;
- lodash.size = size;
- lodash.some = some;
- lodash.uniqueId = uniqueId;
-
- // Add aliases.
- lodash.each = forEach;
- lodash.first = head;
-
- mixin(lodash, (function() {
- var source = {};
- baseForOwn(lodash, function(func, methodName) {
- if (!hasOwnProperty.call(lodash.prototype, methodName)) {
- source[methodName] = func;
- }
- });
- return source;
- }()), { 'chain': false });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * The semantic version number.
- *
- * @static
- * @memberOf _
- * @type {string}
- */
- lodash.VERSION = VERSION;
-
- // Add `Array` methods to `lodash.prototype`.
- baseEach(['pop', 'join', 'replace', 'reverse', 'split', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
- var func = (/^(?:replace|split)$/.test(methodName) ? String.prototype : arrayProto)[methodName],
- chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
- retUnwrapped = /^(?:pop|join|replace|shift)$/.test(methodName);
-
- lodash.prototype[methodName] = function() {
- var args = arguments;
- if (retUnwrapped && !this.__chain__) {
- var value = this.value();
- return func.apply(isArray(value) ? value : [], args);
- }
- return this[chainName](function(value) {
- return func.apply(isArray(value) ? value : [], args);
- });
- };
- });
-
- // Add chain sequence methods to the `lodash` wrapper.
- lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
-
- /*--------------------------------------------------------------------------*/
-
- // Expose Lodash on the free variable `window` or `self` when available so it's
- // globally accessible, even when bundled with Browserify, Webpack, etc. This
- // also prevents errors in cases where Lodash is loaded by a script tag in the
- // presence of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch
- // for more details. Use `_.noConflict` to remove Lodash from the global object.
- (freeSelf || {})._ = lodash;
-
- // Some AMD build optimizers like r.js check for condition patterns like the following:
- if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
- // Define as an anonymous module so, through path mapping, it can be
- // referenced as the "underscore" module.
- define(function() {
- return lodash;
- });
- }
- // Check for `exports` after `define` in case a build optimizer adds an `exports` object.
- else if (freeModule) {
- // Export for Node.js.
- (freeModule.exports = lodash)._ = lodash;
- // Export for CommonJS support.
- freeExports._ = lodash;
- }
- else {
- // Export to the global object.
- root._ = lodash;
- }
-}.call(this));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.core.min.js b/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.core.min.js
deleted file mode 100644
index 96f15c21..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.core.min.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * @license
- * lodash (Custom Build) /license | Underscore.js 1.8.3 underscorejs.org/LICENSE
- * Build: `lodash core -o ./dist/lodash.core.js`
- */
-;(function(){function n(n){n=null==n?n:Object(n);var t,r=[];for(t in n)r.push(t);return r}function t(n){return mn(Object(n))}function r(n,t){return n.push.apply(n,t),n}function e(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function u(n,t){return x(t,function(t){return n[t]})}function o(n){return n&&n.Object===Object?n:null}function i(n){return cn[n]}function c(n){return n instanceof f?n:new f(n)}function f(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function a(n,t,r,e){
-var u;return(u=n===rn)||(u=hn[r],u=(n===u||n!==n&&u!==u)&&!vn.call(e,r)),u?t:n}function l(n){return L(n)?_n(n):{}}function p(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");return setTimeout(function(){n.apply(rn,r)},t)}function s(n,t){var r=true;return xn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function h(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===rn?i===i:r(i,c)))var c=i,f=o}return f}function v(n,t){var r=[];return xn(n,function(n,e,u){t(n,e,u)&&r.push(n);
-}),r}function y(n,t,e,u,o){var i=-1,c=n.length;for(e||(e=z),o||(o=[]);++i<c;){var f=n[i];t>0&&e(f)?t>1?y(f,t-1,e,u,o):r(o,f):u||(o[o.length]=f)}return o}function b(n,r){return n&&En(n,r,t)}function g(n,t){return v(t,function(t){return K(n[t])})}function _(n,t){return n>t}function j(n,t,r,e,u){return n===t?true:null==n||null==t||!L(n)&&!Q(t)?n!==n&&t!==t:d(n,t,j,r,e,u)}function d(n,t,r,e,u,o){var i=Tn(n),c=Tn(t),f="[object Array]",a="[object Array]";i||(f=bn.call(n),f="[object Arguments]"==f?"[object Object]":f),
-c||(a=bn.call(t),a="[object Arguments]"==a?"[object Object]":a);var l="[object Object]"==f&&true,c="[object Object]"==a&&true,a=f==a;o||(o=[]);var p=kn(o,function(t){return t[0]===n});return p&&p[1]?p[1]==t:(o.push([n,t]),a&&!l?(r=i?I(n,t,r,e,u,o):q(n,t,f),o.pop(),r):2&u||(i=l&&vn.call(n,"__wrapped__"),f=c&&vn.call(t,"__wrapped__"),!i&&!f)?a?(r=$(n,t,r,e,u,o),o.pop(),r):false:(i=i?n.value():n,t=f?t.value():t,r=r(i,t,e,u,o),o.pop(),r))}function m(n){return typeof n=="function"?n:null==n?nn:(typeof n=="object"?E:w)(n);
-}function O(n,t){return t>n}function x(n,t){var r=-1,e=H(n)?Array(n.length):[];return xn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function E(n){var r=t(n);return function(t){var e=r.length;if(null==t)return!e;for(t=Object(t);e--;){var u=r[e];if(!(u in t&&j(n[u],t[u],rn,3)))return false}return true}}function A(n,t){return n=Object(n),M(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function w(n){return function(t){return null==t?rn:t[n]}}function k(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,
-0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function N(n){return k(n,0,n.length)}function S(n,t){var r;return xn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function F(n,t){return M(t,function(n,t){return t.func.apply(t.thisArg,r([n],t.args))},n)}function T(n,t,r,e){r||(r={});for(var u=-1,o=t.length;++u<o;){var i=t[u],c=e?e(r[i],n[i],i,r,n):n[i],f=r,a=f[i];vn.call(f,i)&&(a===c||a!==a&&c!==c)&&(c!==rn||i in f)||(f[i]=c)}return r}function B(n){return U(function(t,r){var e=-1,u=r.length,o=u>1?r[u-1]:rn,o=n.length>3&&typeof o=="function"?(u--,
-o):rn;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function R(n){return function(){var t=arguments,r=l(n.prototype),t=n.apply(r,t);return L(t)?t:r}}function D(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i),l=this&&this!==pn&&this instanceof e?u:n;++c<f;)a[c]=r[c];for(;i--;)a[c++]=arguments[++o];return l.apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");var u=R(n);return e}function I(n,t,r,e,u,o){var i=n.length,c=t.length;
-if(i!=c&&!(2&u&&c>i))return false;for(var c=-1,f=true,a=1&u?[]:rn;++c<i;){var l=n[c],p=t[c];if(void 0!==rn){f=false;break}if(a){if(!S(t,function(n,t){return G(a,t)||l!==n&&!r(l,n,e,u,o)?void 0:a.push(t)})){f=false;break}}else if(l!==p&&!r(l,p,e,u,o)){f=false;break}}return f}function q(n,t,r){switch(r){case"[object Boolean]":case"[object Date]":return+n==+t;case"[object Error]":return n.name==t.name&&n.message==t.message;case"[object Number]":return n!=+n?t!=+t:n==+t;case"[object RegExp]":case"[object String]":return n==t+"";
-}return false}function $(n,r,e,u,o,i){var c=2&o,f=t(n),a=f.length,l=t(r).length;if(a!=l&&!c)return false;for(var p=a;p--;){var s=f[p];if(!(c?s in r:vn.call(r,s)))return false}for(l=true;++p<a;){var s=f[p],h=n[s],v=r[s];if(void 0!==rn||h!==v&&!e(h,v,u,o,i)){l=false;break}c||(c="constructor"==s)}return l&&!c&&(e=n.constructor,u=r.constructor,e!=u&&"constructor"in n&&"constructor"in r&&!(typeof e=="function"&&e instanceof e&&typeof u=="function"&&u instanceof u)&&(l=false)),l}function z(n){return Tn(n)||V(n)}function C(n){
-return n&&n.length?n[0]:rn}function G(n,t,r){var e=n?n.length:0;r=typeof r=="number"?0>r?On(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function J(n,t){return xn(n,m(t))}function M(n,t,r){return e(n,m(t),r,3>arguments.length,xn)}function P(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=Bn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=rn),r}}function U(n){var t;if(typeof n!="function")throw new TypeError("Expected a function");
-return t=On(t===rn?n.length-1:Bn(t),0),function(){for(var r=arguments,e=-1,u=On(r.length-t,0),o=Array(u);++e<u;)o[e]=r[t+e];for(u=Array(t+1),e=-1;++e<t;)u[e]=r[e];return u[t]=o,n.apply(this,u)}}function V(n){return Q(n)&&H(n)&&vn.call(n,"callee")&&(!jn.call(n,"callee")||"[object Arguments]"==bn.call(n))}function H(n){var t;return(t=null!=n)&&(t=An(n),t=typeof t=="number"&&t>-1&&0==t%1&&9007199254740991>=t),t&&!K(n)}function K(n){return n=L(n)?bn.call(n):"","[object Function]"==n||"[object GeneratorFunction]"==n;
-}function L(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function Q(n){return!!n&&typeof n=="object"}function W(n){return typeof n=="number"||Q(n)&&"[object Number]"==bn.call(n)}function X(n){return typeof n=="string"||!Tn(n)&&Q(n)&&"[object String]"==bn.call(n)}function Y(n){return typeof n=="string"?n:null==n?"":n+""}function Z(n){return n?u(n,t(n)):[]}function nn(n){return n}function tn(n,e,u){var o=t(e),i=g(e,o);null!=u||L(e)&&(i.length||!o.length)||(u=e,e=n,n=this,i=g(e,t(e)));var c=!(L(u)&&"chain"in u&&!u.chain),f=K(n);
-return xn(i,function(t){var u=e[t];n[t]=u,f&&(n.prototype[t]=function(){var t=this.__chain__;if(c||t){var e=n(this.__wrapped__);return(e.__actions__=N(this.__actions__)).push({func:u,args:arguments,thisArg:n}),e.__chain__=t,e}return u.apply(n,r([this.value()],arguments))})}),n}var rn,en=1/0,un=/[&<>"'`]/g,on=RegExp(un.source),cn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},fn=typeof exports=="object"&&exports,an=fn&&typeof module=="object"&&module,ln=o(typeof self=="object"&&self),pn=o(typeof global=="object"&&global)||ln||o(typeof this=="object"&&this)||Function("return this")(),sn=Array.prototype,hn=Object.prototype,vn=hn.hasOwnProperty,yn=0,bn=hn.toString,gn=pn._,_n=Object.create,jn=hn.propertyIsEnumerable,dn=pn.isFinite,mn=Object.keys,On=Math.max;
-f.prototype=l(c.prototype),f.prototype.constructor=f;var xn=function(n,t){return function(r,e){if(null==r)return r;if(!H(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}(b),En=function(n){return function(t,r,e){var u=-1,o=Object(t);e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),An=w("length"),wn=String,kn=function(n){return function(r,e,u){var o=Object(r);if(e=m(e),!H(r))var i=t(r);return u=n(i||r,function(n,t){
-return i&&(t=n,n=o[t]),e(n,t,o)},u),u>-1?r[i?i[u]:u]:rn}}(function(n,t,r){var e=n?n.length:0;if(!e)return-1;r=null==r?0:Bn(r),0>r&&(r=On(e+r,0));n:{for(t=m(t),e=n.length,r+=-1;++r<e;)if(t(n[r],r,n)){n=r;break n}n=-1}return n}),Nn=U(function(n,t,r){return D(n,t,r)}),Sn=U(function(n,t){return p(n,1,t)}),Fn=U(function(n,t,r){return p(n,Rn(t)||0,r)}),Tn=Array.isArray,Bn=Number,Rn=Number,Dn=B(function(n,r){T(r,t(r),n)}),In=B(function(t,r){T(r,n(r),t)}),qn=B(function(t,r,e,u){T(r,n(r),t,u)}),$n=U(function(n){
-return n.push(rn,a),qn.apply(rn,n)}),zn=U(function(n,t){return null==n?{}:A(n,x(y(t,1),wn))});c.assignIn=In,c.before=P,c.bind=Nn,c.chain=function(n){return n=c(n),n.__chain__=true,n},c.compact=function(n){return v(n,Boolean)},c.concat=function(){for(var n=arguments.length,t=Array(n?n-1:0),e=arguments[0],u=n;u--;)t[u-1]=arguments[u];return n?r(Tn(e)?N(e):[e],y(t,1)):[]},c.create=function(n,t){var r=l(n);return t?Dn(r,t):r},c.defaults=$n,c.defer=Sn,c.delay=Fn,c.filter=function(n,t){return v(n,m(t))},
-c.flatten=function(n){return n&&n.length?y(n,1):[]},c.flattenDeep=function(n){return n&&n.length?y(n,en):[]},c.iteratee=m,c.keys=t,c.map=function(n,t){return x(n,m(t))},c.matches=function(n){return E(Dn({},n))},c.mixin=tn,c.negate=function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){return!n.apply(this,arguments)}},c.once=function(n){return P(2,n)},c.pick=zn,c.slice=function(n,t,r){var e=n?n.length:0;return r=r===rn?e:+r,e?k(n,null==t?0:+t,r):[]},c.sortBy=function(n,t){
-var r=0;return t=m(t),x(x(n,function(n,e,u){return{value:n,index:r++,criteria:t(n,e,u)}}).sort(function(n,t){var r;n:{r=n.criteria;var e=t.criteria;if(r!==e){var u=r!==rn,o=null===r,i=r===r,c=e!==rn,f=null===e,a=e===e;if(!f&&r>e||o&&c&&a||!u&&a||!i){r=1;break n}if(!o&&e>r||f&&u&&i||!c&&i||!a){r=-1;break n}}r=0}return r||n.index-t.index}),w("value"))},c.tap=function(n,t){return t(n),n},c.thru=function(n,t){return t(n)},c.toArray=function(n){return H(n)?n.length?N(n):[]:Z(n)},c.values=Z,c.extend=In,
-tn(c,c),c.clone=function(n){return L(n)?Tn(n)?N(n):T(n,t(n)):n},c.escape=function(n){return(n=Y(n))&&on.test(n)?n.replace(un,i):n},c.every=function(n,t,r){return t=r?rn:t,s(n,m(t))},c.find=kn,c.forEach=J,c.has=function(n,t){return null!=n&&vn.call(n,t)},c.head=C,c.identity=nn,c.indexOf=G,c.isArguments=V,c.isArray=Tn,c.isBoolean=function(n){return true===n||false===n||Q(n)&&"[object Boolean]"==bn.call(n)},c.isDate=function(n){return Q(n)&&"[object Date]"==bn.call(n)},c.isEmpty=function(n){return H(n)&&(Tn(n)||X(n)||K(n.splice)||V(n))?!n.length:!t(n).length;
-},c.isEqual=function(n,t){return j(n,t)},c.isFinite=function(n){return typeof n=="number"&&dn(n)},c.isFunction=K,c.isNaN=function(n){return W(n)&&n!=+n},c.isNull=function(n){return null===n},c.isNumber=W,c.isObject=L,c.isRegExp=function(n){return L(n)&&"[object RegExp]"==bn.call(n)},c.isString=X,c.isUndefined=function(n){return n===rn},c.last=function(n){var t=n?n.length:0;return t?n[t-1]:rn},c.max=function(n){return n&&n.length?h(n,nn,_):rn},c.min=function(n){return n&&n.length?h(n,nn,O):rn},c.noConflict=function(){
-return pn._===this&&(pn._=gn),this},c.noop=function(){},c.reduce=M,c.result=function(n,t,r){return t=null==n?rn:n[t],t===rn&&(t=r),K(t)?t.call(n):t},c.size=function(n){return null==n?0:(n=H(n)?n:t(n),n.length)},c.some=function(n,t,r){return t=r?rn:t,S(n,m(t))},c.uniqueId=function(n){var t=++yn;return Y(n)+t},c.each=J,c.first=C,tn(c,function(){var n={};return b(c,function(t,r){vn.call(c.prototype,r)||(n[r]=t)}),n}(),{chain:false}),c.VERSION="4.13.1",xn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){
-var t=(/^(?:replace|split)$/.test(n)?String.prototype:sn)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);c.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Tn(u)?u:[],n)}return this[r](function(r){return t.apply(Tn(r)?r:[],n)})}}),c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=function(){return F(this.__wrapped__,this.__actions__)},(ln||{})._=c,typeof define=="function"&&typeof define.amd=="object"&&define.amd? define(function(){
-return c}):an?((an.exports=c)._=c,fn._=c):pn._=c}).call(this); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.fp.js b/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.fp.js
deleted file mode 100644
index 1dcc9005..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.fp.js
+++ /dev/null
@@ -1,879 +0,0 @@
-(function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory();
- else if(typeof define === 'function' && define.amd)
- define([], factory);
- else if(typeof exports === 'object')
- exports["fp"] = factory();
- else
- root["fp"] = factory();
-})(this, function() {
-return /******/ (function(modules) { // webpackBootstrap
-/******/ // The module cache
-/******/ var installedModules = {};
-
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-
-/******/ // Check if module is in cache
-/******/ if(installedModules[moduleId])
-/******/ return installedModules[moduleId].exports;
-
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = installedModules[moduleId] = {
-/******/ exports: {},
-/******/ id: moduleId,
-/******/ loaded: false
-/******/ };
-
-/******/ // Execute the module function
-/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-
-/******/ // Flag the module as loaded
-/******/ module.loaded = true;
-
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
-
-
-/******/ // expose the modules object (__webpack_modules__)
-/******/ __webpack_require__.m = modules;
-
-/******/ // expose the module cache
-/******/ __webpack_require__.c = installedModules;
-
-/******/ // __webpack_public_path__
-/******/ __webpack_require__.p = "";
-
-/******/ // Load entry module and return exports
-/******/ return __webpack_require__(0);
-/******/ })
-/************************************************************************/
-/******/ ([
-/* 0 */
-/***/ function(module, exports, __webpack_require__) {
-
- var baseConvert = __webpack_require__(1);
-
- /**
- * Converts `lodash` to an immutable auto-curried iteratee-first data-last
- * version with conversion `options` applied.
- *
- * @param {Function} lodash The lodash function to convert.
- * @param {Object} [options] The options object. See `baseConvert` for more details.
- * @returns {Function} Returns the converted `lodash`.
- */
- function browserConvert(lodash, options) {
- return baseConvert(lodash, lodash, options);
- }
-
- if (typeof _ == 'function') {
- _ = browserConvert(_.runInContext());
- }
- module.exports = browserConvert;
-
-
-/***/ },
-/* 1 */
-/***/ function(module, exports, __webpack_require__) {
-
- var mapping = __webpack_require__(2),
- mutateMap = mapping.mutate,
- fallbackHolder = __webpack_require__(3);
-
- /**
- * Creates a function, with an arity of `n`, that invokes `func` with the
- * arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} n The arity of the new function.
- * @returns {Function} Returns the new function.
- */
- function baseArity(func, n) {
- return n == 2
- ? function(a, b) { return func.apply(undefined, arguments); }
- : function(a) { return func.apply(undefined, arguments); };
- }
-
- /**
- * Creates a function that invokes `func`, with up to `n` arguments, ignoring
- * any additional arguments.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @param {number} n The arity cap.
- * @returns {Function} Returns the new function.
- */
- function baseAry(func, n) {
- return n == 2
- ? function(a, b) { return func(a, b); }
- : function(a) { return func(a); };
- }
-
- /**
- * Creates a clone of `array`.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the cloned array.
- */
- function cloneArray(array) {
- var length = array ? array.length : 0,
- result = Array(length);
-
- while (length--) {
- result[length] = array[length];
- }
- return result;
- }
-
- /**
- * Creates a function that clones a given object using the assignment `func`.
- *
- * @private
- * @param {Function} func The assignment function.
- * @returns {Function} Returns the new cloner function.
- */
- function createCloner(func) {
- return function(object) {
- return func({}, object);
- };
- }
-
- /**
- * Creates a function that wraps `func` and uses `cloner` to clone the first
- * argument it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {Function} cloner The function to clone arguments.
- * @returns {Function} Returns the new immutable function.
- */
- function immutWrap(func, cloner) {
- return function() {
- var length = arguments.length;
- if (!length) {
- return result;
- }
- var args = Array(length);
- while (length--) {
- args[length] = arguments[length];
- }
- var result = args[0] = cloner.apply(undefined, args);
- func.apply(undefined, args);
- return result;
- };
- }
-
- /**
- * The base implementation of `convert` which accepts a `util` object of methods
- * required to perform conversions.
- *
- * @param {Object} util The util object.
- * @param {string} name The name of the function to convert.
- * @param {Function} func The function to convert.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.cap=true] Specify capping iteratee arguments.
- * @param {boolean} [options.curry=true] Specify currying.
- * @param {boolean} [options.fixed=true] Specify fixed arity.
- * @param {boolean} [options.immutable=true] Specify immutable operations.
- * @param {boolean} [options.rearg=true] Specify rearranging arguments.
- * @returns {Function|Object} Returns the converted function or object.
- */
- function baseConvert(util, name, func, options) {
- var setPlaceholder,
- isLib = typeof name == 'function',
- isObj = name === Object(name);
-
- if (isObj) {
- options = func;
- func = name;
- name = undefined;
- }
- if (func == null) {
- throw new TypeError;
- }
- options || (options = {});
-
- var config = {
- 'cap': 'cap' in options ? options.cap : true,
- 'curry': 'curry' in options ? options.curry : true,
- 'fixed': 'fixed' in options ? options.fixed : true,
- 'immutable': 'immutable' in options ? options.immutable : true,
- 'rearg': 'rearg' in options ? options.rearg : true
- };
-
- var forceCurry = ('curry' in options) && options.curry,
- forceFixed = ('fixed' in options) && options.fixed,
- forceRearg = ('rearg' in options) && options.rearg,
- placeholder = isLib ? func : fallbackHolder,
- pristine = isLib ? func.runInContext() : undefined;
-
- var helpers = isLib ? func : {
- 'ary': util.ary,
- 'assign': util.assign,
- 'clone': util.clone,
- 'curry': util.curry,
- 'forEach': util.forEach,
- 'isArray': util.isArray,
- 'isFunction': util.isFunction,
- 'iteratee': util.iteratee,
- 'keys': util.keys,
- 'rearg': util.rearg,
- 'spread': util.spread,
- 'toPath': util.toPath
- };
-
- var ary = helpers.ary,
- assign = helpers.assign,
- clone = helpers.clone,
- curry = helpers.curry,
- each = helpers.forEach,
- isArray = helpers.isArray,
- isFunction = helpers.isFunction,
- keys = helpers.keys,
- rearg = helpers.rearg,
- spread = helpers.spread,
- toPath = helpers.toPath;
-
- var aryMethodKeys = keys(mapping.aryMethod);
-
- var wrappers = {
- 'castArray': function(castArray) {
- return function() {
- var value = arguments[0];
- return isArray(value)
- ? castArray(cloneArray(value))
- : castArray.apply(undefined, arguments);
- };
- },
- 'iteratee': function(iteratee) {
- return function() {
- var func = arguments[0],
- arity = arguments[1],
- result = iteratee(func, arity),
- length = result.length;
-
- if (config.cap && typeof arity == 'number') {
- arity = arity > 2 ? (arity - 2) : 1;
- return (length && length <= arity) ? result : baseAry(result, arity);
- }
- return result;
- };
- },
- 'mixin': function(mixin) {
- return function(source) {
- var func = this;
- if (!isFunction(func)) {
- return mixin(func, Object(source));
- }
- var pairs = [];
- each(keys(source), function(key) {
- if (isFunction(source[key])) {
- pairs.push([key, func.prototype[key]]);
- }
- });
-
- mixin(func, Object(source));
-
- each(pairs, function(pair) {
- var value = pair[1];
- if (isFunction(value)) {
- func.prototype[pair[0]] = value;
- } else {
- delete func.prototype[pair[0]];
- }
- });
- return func;
- };
- },
- 'runInContext': function(runInContext) {
- return function(context) {
- return baseConvert(util, runInContext(context), options);
- };
- }
- };
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Creates a clone of `object` by `path`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {Array|string} path The path to clone by.
- * @returns {Object} Returns the cloned object.
- */
- function cloneByPath(object, path) {
- path = toPath(path);
-
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- result = clone(Object(object)),
- nested = result;
-
- while (nested != null && ++index < length) {
- var key = path[index],
- value = nested[key];
-
- if (value != null) {
- nested[path[index]] = clone(index == lastIndex ? value : Object(value));
- }
- nested = nested[key];
- }
- return result;
- }
-
- /**
- * Converts `lodash` to an immutable auto-curried iteratee-first data-last
- * version with conversion `options` applied.
- *
- * @param {Object} [options] The options object. See `baseConvert` for more details.
- * @returns {Function} Returns the converted `lodash`.
- */
- function convertLib(options) {
- return _.runInContext.convert(options)(undefined);
- }
-
- /**
- * Create a converter function for `func` of `name`.
- *
- * @param {string} name The name of the function to convert.
- * @param {Function} func The function to convert.
- * @returns {Function} Returns the new converter function.
- */
- function createConverter(name, func) {
- var oldOptions = options;
- return function(options) {
- var newUtil = isLib ? pristine : helpers,
- newFunc = isLib ? pristine[name] : func,
- newOptions = assign(assign({}, oldOptions), options);
-
- return baseConvert(newUtil, name, newFunc, newOptions);
- };
- }
-
- /**
- * Creates a function that wraps `func` to invoke its iteratee, with up to `n`
- * arguments, ignoring any additional arguments.
- *
- * @private
- * @param {Function} func The function to cap iteratee arguments for.
- * @param {number} n The arity cap.
- * @returns {Function} Returns the new function.
- */
- function iterateeAry(func, n) {
- return overArg(func, function(func) {
- return typeof func == 'function' ? baseAry(func, n) : func;
- });
- }
-
- /**
- * Creates a function that wraps `func` to invoke its iteratee with arguments
- * arranged according to the specified `indexes` where the argument value at
- * the first index is provided as the first argument, the argument value at
- * the second index is provided as the second argument, and so on.
- *
- * @private
- * @param {Function} func The function to rearrange iteratee arguments for.
- * @param {number[]} indexes The arranged argument indexes.
- * @returns {Function} Returns the new function.
- */
- function iterateeRearg(func, indexes) {
- return overArg(func, function(func) {
- var n = indexes.length;
- return baseArity(rearg(baseAry(func, n), indexes), n);
- });
- }
-
- /**
- * Creates a function that invokes `func` with its first argument passed
- * thru `transform`.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {...Function} transform The functions to transform the first argument.
- * @returns {Function} Returns the new function.
- */
- function overArg(func, transform) {
- return function() {
- var length = arguments.length;
- if (!length) {
- return func();
- }
- var args = Array(length);
- while (length--) {
- args[length] = arguments[length];
- }
- var index = config.rearg ? 0 : (length - 1);
- args[index] = transform(args[index]);
- return func.apply(undefined, args);
- };
- }
-
- /**
- * Creates a function that wraps `func` and applys the conversions
- * rules by `name`.
- *
- * @private
- * @param {string} name The name of the function to wrap.
- * @param {Function} func The function to wrap.
- * @returns {Function} Returns the converted function.
- */
- function wrap(name, func) {
- name = mapping.aliasToReal[name] || name;
-
- var result,
- wrapped = func,
- wrapper = wrappers[name];
-
- if (wrapper) {
- wrapped = wrapper(func);
- }
- else if (config.immutable) {
- if (mutateMap.array[name]) {
- wrapped = immutWrap(func, cloneArray);
- }
- else if (mutateMap.object[name]) {
- wrapped = immutWrap(func, createCloner(func));
- }
- else if (mutateMap.set[name]) {
- wrapped = immutWrap(func, cloneByPath);
- }
- }
- each(aryMethodKeys, function(aryKey) {
- each(mapping.aryMethod[aryKey], function(otherName) {
- if (name == otherName) {
- var aryN = !isLib && mapping.iterateeAry[name],
- reargIndexes = mapping.iterateeRearg[name],
- spreadStart = mapping.methodSpread[name];
-
- result = wrapped;
- if (config.fixed && (forceFixed || !mapping.skipFixed[name])) {
- result = spreadStart === undefined
- ? ary(result, aryKey)
- : spread(result, spreadStart);
- }
- if (config.rearg && aryKey > 1 && (forceRearg || !mapping.skipRearg[name])) {
- result = rearg(result, mapping.methodRearg[name] || mapping.aryRearg[aryKey]);
- }
- if (config.cap) {
- if (reargIndexes) {
- result = iterateeRearg(result, reargIndexes);
- } else if (aryN) {
- result = iterateeAry(result, aryN);
- }
- }
- if (forceCurry || (config.curry && aryKey > 1)) {
- forceCurry && console.log(forceCurry, name);
- result = curry(result, aryKey);
- }
- return false;
- }
- });
- return !result;
- });
-
- result || (result = wrapped);
- if (result == func) {
- result = forceCurry ? curry(result, 1) : function() {
- return func.apply(this, arguments);
- };
- }
- result.convert = createConverter(name, func);
- if (mapping.placeholder[name]) {
- setPlaceholder = true;
- result.placeholder = func.placeholder = placeholder;
- }
- return result;
- }
-
- /*--------------------------------------------------------------------------*/
-
- if (!isObj) {
- return wrap(name, func);
- }
- var _ = func;
-
- // Convert methods by ary cap.
- var pairs = [];
- each(aryMethodKeys, function(aryKey) {
- each(mapping.aryMethod[aryKey], function(key) {
- var func = _[mapping.remap[key] || key];
- if (func) {
- pairs.push([key, wrap(key, func)]);
- }
- });
- });
-
- // Convert remaining methods.
- each(keys(_), function(key) {
- var func = _[key];
- if (typeof func == 'function') {
- var length = pairs.length;
- while (length--) {
- if (pairs[length][0] == key) {
- return;
- }
- }
- func.convert = createConverter(key, func);
- pairs.push([key, func]);
- }
- });
-
- // Assign to `_` leaving `_.prototype` unchanged to allow chaining.
- each(pairs, function(pair) {
- _[pair[0]] = pair[1];
- });
-
- _.convert = convertLib;
- if (setPlaceholder) {
- _.placeholder = placeholder;
- }
- // Assign aliases.
- each(keys(_), function(key) {
- each(mapping.realToAlias[key] || [], function(alias) {
- _[alias] = _[key];
- });
- });
-
- return _;
- }
-
- module.exports = baseConvert;
-
-
-/***/ },
-/* 2 */
-/***/ function(module, exports) {
-
- /** Used to map aliases to their real names. */
- exports.aliasToReal = {
-
- // Lodash aliases.
- 'each': 'forEach',
- 'eachRight': 'forEachRight',
- 'entries': 'toPairs',
- 'entriesIn': 'toPairsIn',
- 'extend': 'assignIn',
- 'extendWith': 'assignInWith',
- 'first': 'head',
-
- // Ramda aliases.
- '__': 'placeholder',
- 'all': 'every',
- 'allPass': 'overEvery',
- 'always': 'constant',
- 'any': 'some',
- 'anyPass': 'overSome',
- 'apply': 'spread',
- 'assoc': 'set',
- 'assocPath': 'set',
- 'complement': 'negate',
- 'compose': 'flowRight',
- 'contains': 'includes',
- 'dissoc': 'unset',
- 'dissocPath': 'unset',
- 'equals': 'isEqual',
- 'identical': 'eq',
- 'init': 'initial',
- 'invertObj': 'invert',
- 'juxt': 'over',
- 'omitAll': 'omit',
- 'nAry': 'ary',
- 'path': 'get',
- 'pathEq': 'matchesProperty',
- 'pathOr': 'getOr',
- 'paths': 'at',
- 'pickAll': 'pick',
- 'pipe': 'flow',
- 'pluck': 'map',
- 'prop': 'get',
- 'propEq': 'matchesProperty',
- 'propOr': 'getOr',
- 'props': 'at',
- 'unapply': 'rest',
- 'unnest': 'flatten',
- 'useWith': 'overArgs',
- 'whereEq': 'filter',
- 'zipObj': 'zipObject'
- };
-
- /** Used to map ary to method names. */
- exports.aryMethod = {
- '1': [
- 'attempt', 'castArray', 'ceil', 'create', 'curry', 'curryRight', 'floor',
- 'flow', 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method',
- 'methodOf', 'mixin', 'over', 'overEvery', 'overSome', 'rest', 'reverse',
- 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
- 'uniqueId', 'words'
- ],
- '2': [
- 'add', 'after', 'ary', 'assign', 'assignIn', 'at', 'before', 'bind', 'bindAll',
- 'bindKey', 'chunk', 'cloneDeepWith', 'cloneWith', 'concat', 'countBy', 'curryN',
- 'curryRightN', 'debounce', 'defaults', 'defaultsDeep', 'delay', 'difference',
- 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith',
- 'eq', 'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast',
- 'findLastIndex', 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth',
- 'forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight',
- 'get', 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf',
- 'intersection', 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch',
- 'join', 'keyBy', 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues',
- 'matchesProperty', 'maxBy', 'meanBy', 'merge', 'minBy', 'multiply', 'nth',
- 'omit', 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt',
- 'partial', 'partialRight', 'partition', 'pick', 'pickBy', 'pull', 'pullAll',
- 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
- 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
- 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
- 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
- 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
- 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
- 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
- 'zipObjectDeep'
- ],
- '3': [
- 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
- 'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
- 'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
- 'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
- 'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
- 'padCharsStart', 'pullAllBy', 'pullAllWith', 'reduce', 'reduceRight', 'replace',
- 'set', 'slice', 'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy',
- 'unionWith', 'update', 'xorBy', 'xorWith', 'zipWith'
- ],
- '4': [
- 'fill', 'setWith', 'updateWith'
- ]
- };
-
- /** Used to map ary to rearg configs. */
- exports.aryRearg = {
- '2': [1, 0],
- '3': [2, 0, 1],
- '4': [3, 2, 0, 1]
- };
-
- /** Used to map method names to their iteratee ary. */
- exports.iterateeAry = {
- 'dropRightWhile': 1,
- 'dropWhile': 1,
- 'every': 1,
- 'filter': 1,
- 'find': 1,
- 'findFrom': 1,
- 'findIndex': 1,
- 'findIndexFrom': 1,
- 'findKey': 1,
- 'findLast': 1,
- 'findLastFrom': 1,
- 'findLastIndex': 1,
- 'findLastIndexFrom': 1,
- 'findLastKey': 1,
- 'flatMap': 1,
- 'flatMapDeep': 1,
- 'flatMapDepth': 1,
- 'forEach': 1,
- 'forEachRight': 1,
- 'forIn': 1,
- 'forInRight': 1,
- 'forOwn': 1,
- 'forOwnRight': 1,
- 'map': 1,
- 'mapKeys': 1,
- 'mapValues': 1,
- 'partition': 1,
- 'reduce': 2,
- 'reduceRight': 2,
- 'reject': 1,
- 'remove': 1,
- 'some': 1,
- 'takeRightWhile': 1,
- 'takeWhile': 1,
- 'times': 1,
- 'transform': 2
- };
-
- /** Used to map method names to iteratee rearg configs. */
- exports.iterateeRearg = {
- 'mapKeys': [1]
- };
-
- /** Used to map method names to rearg configs. */
- exports.methodRearg = {
- 'assignInWith': [1, 2, 0],
- 'assignWith': [1, 2, 0],
- 'differenceBy': [1, 2, 0],
- 'differenceWith': [1, 2, 0],
- 'getOr': [2, 1, 0],
- 'intersectionBy': [1, 2, 0],
- 'intersectionWith': [1, 2, 0],
- 'isEqualWith': [1, 2, 0],
- 'isMatchWith': [2, 1, 0],
- 'mergeWith': [1, 2, 0],
- 'padChars': [2, 1, 0],
- 'padCharsEnd': [2, 1, 0],
- 'padCharsStart': [2, 1, 0],
- 'pullAllBy': [2, 1, 0],
- 'pullAllWith': [2, 1, 0],
- 'setWith': [3, 1, 2, 0],
- 'sortedIndexBy': [2, 1, 0],
- 'sortedLastIndexBy': [2, 1, 0],
- 'unionBy': [1, 2, 0],
- 'unionWith': [1, 2, 0],
- 'updateWith': [3, 1, 2, 0],
- 'xorBy': [1, 2, 0],
- 'xorWith': [1, 2, 0],
- 'zipWith': [1, 2, 0]
- };
-
- /** Used to map method names to spread configs. */
- exports.methodSpread = {
- 'invokeArgs': 2,
- 'invokeArgsMap': 2,
- 'partial': 1,
- 'partialRight': 1,
- 'without': 1
- };
-
- /** Used to identify methods which mutate arrays or objects. */
- exports.mutate = {
- 'array': {
- 'fill': true,
- 'pull': true,
- 'pullAll': true,
- 'pullAllBy': true,
- 'pullAllWith': true,
- 'pullAt': true,
- 'remove': true,
- 'reverse': true
- },
- 'object': {
- 'assign': true,
- 'assignIn': true,
- 'assignInWith': true,
- 'assignWith': true,
- 'defaults': true,
- 'defaultsDeep': true,
- 'merge': true,
- 'mergeWith': true
- },
- 'set': {
- 'set': true,
- 'setWith': true,
- 'unset': true,
- 'update': true,
- 'updateWith': true
- }
- };
-
- /** Used to track methods with placeholder support */
- exports.placeholder = {
- 'bind': true,
- 'bindKey': true,
- 'curry': true,
- 'curryRight': true,
- 'partial': true,
- 'partialRight': true
- };
-
- /** Used to map real names to their aliases. */
- exports.realToAlias = (function() {
- var hasOwnProperty = Object.prototype.hasOwnProperty,
- object = exports.aliasToReal,
- result = {};
-
- for (var key in object) {
- var value = object[key];
- if (hasOwnProperty.call(result, value)) {
- result[value].push(key);
- } else {
- result[value] = [key];
- }
- }
- return result;
- }());
-
- /** Used to map method names to other names. */
- exports.remap = {
- 'curryN': 'curry',
- 'curryRightN': 'curryRight',
- 'findFrom': 'find',
- 'findIndexFrom': 'findIndex',
- 'findLastFrom': 'findLast',
- 'findLastIndexFrom': 'findLastIndex',
- 'getOr': 'get',
- 'includesFrom': 'includes',
- 'indexOfFrom': 'indexOf',
- 'invokeArgs': 'invoke',
- 'invokeArgsMap': 'invokeMap',
- 'lastIndexOfFrom': 'lastIndexOf',
- 'padChars': 'pad',
- 'padCharsEnd': 'padEnd',
- 'padCharsStart': 'padStart',
- 'restFrom': 'rest',
- 'spreadFrom': 'spread',
- 'trimChars': 'trim',
- 'trimCharsEnd': 'trimEnd',
- 'trimCharsStart': 'trimStart'
- };
-
- /** Used to track methods that skip fixing their arity. */
- exports.skipFixed = {
- 'castArray': true,
- 'flow': true,
- 'flowRight': true,
- 'iteratee': true,
- 'mixin': true,
- 'runInContext': true
- };
-
- /** Used to track methods that skip rearranging arguments. */
- exports.skipRearg = {
- 'add': true,
- 'assign': true,
- 'assignIn': true,
- 'bind': true,
- 'bindKey': true,
- 'concat': true,
- 'difference': true,
- 'divide': true,
- 'eq': true,
- 'gt': true,
- 'gte': true,
- 'isEqual': true,
- 'lt': true,
- 'lte': true,
- 'matchesProperty': true,
- 'merge': true,
- 'multiply': true,
- 'overArgs': true,
- 'partial': true,
- 'partialRight': true,
- 'random': true,
- 'range': true,
- 'rangeRight': true,
- 'subtract': true,
- 'zip': true,
- 'zipObject': true
- };
-
-
-/***/ },
-/* 3 */
-/***/ function(module, exports) {
-
- /**
- * The default argument placeholder value for methods.
- *
- * @type {Object}
- */
- module.exports = {};
-
-
-/***/ }
-/******/ ])
-});
-; \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.fp.min.js b/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.fp.min.js
deleted file mode 100644
index 59affc31..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.fp.min.js
+++ /dev/null
@@ -1,17 +0,0 @@
-!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fp=e():t.fp=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){function n(t,e){return i(t,t,e)}var i=r(1);"function"==typeof _&&(_=n(_.runInContext())),
-t.exports=n},function(t,e,r){function n(t,e){return 2==e?function(e,r){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}function i(t,e){return 2==e?function(e,r){return t(e,r)}:function(e){return t(e)}}function a(t){for(var e=t?t.length:0,r=Array(e);e--;)r[e]=t[e];return r}function o(t){return function(e){return t({},e)}}function s(t,e){return function(){var r=arguments.length;if(!r)return i;for(var n=Array(r);r--;)n[r]=arguments[r];var i=n[0]=e.apply(void 0,n);return t.apply(void 0,n),
-i}}function u(t,e,r,c){function f(t,e){e=D(e);for(var r=-1,n=e.length,i=n-1,a=w(Object(t)),o=a;null!=o&&++r<n;){var s=e[r],u=o[s];null!=u&&(o[e[r]]=w(r==i?u:Object(u))),o=o[s]}return a}function h(t){return N.runInContext.convert(t)(void 0)}function y(t,e){var r=c;return function(n){var i=I?E:F,a=I?E[t]:e,o=C(C({},r),n);return u(i,t,a,o)}}function m(t,e){return v(t,function(t){return"function"==typeof t?i(t,e):t})}function g(t,e){return v(t,function(t){var r=e.length;return n(z(i(t,r),e),r)})}function v(t,e){
-return function(){var r=arguments.length;if(!r)return t();for(var n=Array(r);r--;)n[r]=arguments[r];var i=A.rearg?0:r-1;return n[i]=e(n[i]),t.apply(void 0,n)}}function x(t,e){t=p.aliasToReal[t]||t;var r,n=e,i=_[t];return i?n=i(e):A.immutable&&(d.array[t]?n=s(e,a):d.object[t]?n=s(e,o(e)):d.set[t]&&(n=s(e,f))),M(T,function(e){return M(p.aryMethod[e],function(i){if(t==i){var a=!I&&p.iterateeAry[t],o=p.iterateeRearg[t],s=p.methodSpread[t];return r=n,!A.fixed||!b&&p.skipFixed[t]||(r=void 0===s?j(r,e):K(r,s)),
-A.rearg&&e>1&&(k||!p.skipRearg[t])&&(r=z(r,p.methodRearg[t]||p.aryRearg[e])),A.cap&&(o?r=g(r,o):a&&(r=m(r,a))),(O||A.curry&&e>1)&&(O&&console.log(O,t),r=L(r,e)),!1}}),!r}),r||(r=n),r==e&&(r=O?L(r,1):function(){return e.apply(this,arguments)}),r.convert=y(t,e),p.placeholder[t]&&(W=!0,r.placeholder=e.placeholder=B),r}var W,I="function"==typeof e,R=e===Object(e);if(R&&(c=r,r=e,e=void 0),null==r)throw new TypeError;c||(c={});var A={cap:"cap"in c?c.cap:!0,curry:"curry"in c?c.curry:!0,fixed:"fixed"in c?c.fixed:!0,
-immutable:"immutable"in c?c.immutable:!0,rearg:"rearg"in c?c.rearg:!0},O="curry"in c&&c.curry,b="fixed"in c&&c.fixed,k="rearg"in c&&c.rearg,B=I?r:l,E=I?r.runInContext():void 0,F=I?r:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isFunction:t.isFunction,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,spread:t.spread,toPath:t.toPath},j=F.ary,C=F.assign,w=F.clone,L=F.curry,M=F.forEach,q=F.isArray,P=F.isFunction,S=F.keys,z=F.rearg,K=F.spread,D=F.toPath,T=S(p.aryMethod),_={
-castArray:function(t){return function(){var e=arguments[0];return q(e)?t(a(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[0],r=arguments[1],n=t(e,r),a=n.length;return A.cap&&"number"==typeof r?(r=r>2?r-2:1,a&&r>=a?n:i(n,r)):n}},mixin:function(t){return function(e){var r=this;if(!P(r))return t(r,Object(e));var n=[];return M(S(e),function(t){P(e[t])&&n.push([t,r.prototype[t]])}),t(r,Object(e)),M(n,function(t){var e=t[1];P(e)?r.prototype[t[0]]=e:delete r.prototype[t[0]];
-}),r}},runInContext:function(e){return function(r){return u(t,e(r),c)}}};if(!R)return x(e,r);var N=r,V=[];return M(T,function(t){M(p.aryMethod[t],function(t){var e=N[p.remap[t]||t];e&&V.push([t,x(t,e)])})}),M(S(N),function(t){var e=N[t];if("function"==typeof e){for(var r=V.length;r--;)if(V[r][0]==t)return;e.convert=y(t,e),V.push([t,e])}}),M(V,function(t){N[t[0]]=t[1]}),N.convert=h,W&&(N.placeholder=B),M(S(N),function(t){M(p.realToAlias[t]||[],function(e){N[e]=N[t]})}),N}var p=r(2),d=p.mutate,l=r(3);
-t.exports=u},function(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendWith:"assignInWith",first:"head",__:"placeholder",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",equals:"isEqual",identical:"eq",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",
-nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",unapply:"rest",unnest:"flatten",useWith:"overArgs",whereEq:"filter",zipObj:"zipObject"},e.aryMethod={1:["attempt","castArray","ceil","create","curry","curryRight","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","methodOf","mixin","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words"],
-2:["add","after","ary","assign","assignIn","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],
-3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],
-4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,
-transform:2},e.iterateeRearg={mapKeys:[1]},e.methodRearg={assignInWith:[1,2,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],
-zipWith:[1,2,0]},e.methodSpread={invokeArgs:2,invokeArgsMap:2,partial:1,partialRight:1,without:1},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignIn:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsDeep:!0,merge:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.placeholder={bind:!0,bindKey:!0,curry:!0,curryRight:!0,partial:!0,partialRight:!0},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};
-for(var i in r){var a=r[i];t.call(n,a)?n[a].push(i):n[a]=[i]}return n}(),e.remap={curryN:"curry",curryRightN:"curryRight",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart"
-},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0}},function(t,e){t.exports={}}])}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.js b/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.js
deleted file mode 100644
index 5b5c703b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.js
+++ /dev/null
@@ -1,16404 +0,0 @@
-/**
- * @license
- * lodash <https://lodash.com/>
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
-;(function() {
-
- /** Used as a safe reference for `undefined` in pre-ES5 environments. */
- var undefined;
-
- /** Used as the semantic version number. */
- var VERSION = '4.13.1';
-
- /** Used as the size to enable large array optimizations. */
- var LARGE_ARRAY_SIZE = 200;
-
- /** Used as the `TypeError` message for "Functions" methods. */
- var FUNC_ERROR_TEXT = 'Expected a function';
-
- /** Used to stand-in for `undefined` hash values. */
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
- /** Used as the internal argument placeholder. */
- var PLACEHOLDER = '__lodash_placeholder__';
-
- /** Used to compose bitmasks for wrapper metadata. */
- var BIND_FLAG = 1,
- BIND_KEY_FLAG = 2,
- CURRY_BOUND_FLAG = 4,
- CURRY_FLAG = 8,
- CURRY_RIGHT_FLAG = 16,
- PARTIAL_FLAG = 32,
- PARTIAL_RIGHT_FLAG = 64,
- ARY_FLAG = 128,
- REARG_FLAG = 256,
- FLIP_FLAG = 512;
-
- /** Used to compose bitmasks for comparison styles. */
- var UNORDERED_COMPARE_FLAG = 1,
- PARTIAL_COMPARE_FLAG = 2;
-
- /** Used as default options for `_.truncate`. */
- var DEFAULT_TRUNC_LENGTH = 30,
- DEFAULT_TRUNC_OMISSION = '...';
-
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
- var HOT_COUNT = 150,
- HOT_SPAN = 16;
-
- /** Used to indicate the type of lazy iteratees. */
- var LAZY_FILTER_FLAG = 1,
- LAZY_MAP_FLAG = 2,
- LAZY_WHILE_FLAG = 3;
-
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0,
- MAX_SAFE_INTEGER = 9007199254740991,
- MAX_INTEGER = 1.7976931348623157e+308,
- NAN = 0 / 0;
-
- /** Used as references for the maximum length and index of an array. */
- var MAX_ARRAY_LENGTH = 4294967295,
- MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
- HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
-
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- promiseTag = '[object Promise]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]',
- weakMapTag = '[object WeakMap]',
- weakSetTag = '[object WeakSet]';
-
- var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
-
- /** Used to match empty string literals in compiled template source. */
- var reEmptyStringLeading = /\b__p \+= '';/g,
- reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
- reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
-
- /** Used to match HTML entities and HTML characters. */
- var reEscapedHtml = /&(?:amp|lt|gt|quot|#39|#96);/g,
- reUnescapedHtml = /[&<>"'`]/g,
- reHasEscapedHtml = RegExp(reEscapedHtml.source),
- reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
-
- /** Used to match template delimiters. */
- var reEscape = /<%-([\s\S]+?)%>/g,
- reEvaluate = /<%([\s\S]+?)%>/g,
- reInterpolate = /<%=([\s\S]+?)%>/g;
-
- /** Used to match property names within property paths. */
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/,
- rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g;
-
- /**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
- */
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
- reHasRegExpChar = RegExp(reRegExpChar.source);
-
- /** Used to match leading and trailing whitespace. */
- var reTrim = /^\s+|\s+$/g,
- reTrimStart = /^\s+/,
- reTrimEnd = /\s+$/;
-
- /** Used to match non-compound words composed of alphanumeric characters. */
- var reBasicWord = /[a-zA-Z0-9]+/g;
-
- /** Used to match backslashes in property paths. */
- var reEscapeChar = /\\(\\)?/g;
-
- /**
- * Used to match
- * [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components).
- */
- var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
-
- /** Used to match `RegExp` flags from their coerced string values. */
- var reFlags = /\w*$/;
-
- /** Used to detect hexadecimal string values. */
- var reHasHexPrefix = /^0x/i;
-
- /** Used to detect bad signed hexadecimal string values. */
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
-
- /** Used to detect binary string values. */
- var reIsBinary = /^0b[01]+$/i;
-
- /** Used to detect host constructors (Safari). */
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
-
- /** Used to detect octal string values. */
- var reIsOctal = /^0o[0-7]+$/i;
-
- /** Used to detect unsigned integer values. */
- var reIsUint = /^(?:0|[1-9]\d*)$/;
-
- /** Used to match latin-1 supplementary letters (excluding mathematical operators). */
- var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g;
-
- /** Used to ensure capturing order of template delimiters. */
- var reNoMatch = /($^)/;
-
- /** Used to match unescaped characters in compiled string literals. */
- var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
-
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
- rsComboSymbolsRange = '\\u20d0-\\u20f0',
- rsDingbatRange = '\\u2700-\\u27bf',
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- rsPunctuationRange = '\\u2000-\\u206f',
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- rsVarRange = '\\ufe0e\\ufe0f',
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
-
- /** Used to compose unicode capture groups. */
- var rsApos = "['\u2019]",
- rsAstral = '[' + rsAstralRange + ']',
- rsBreak = '[' + rsBreakRange + ']',
- rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
- rsDigits = '\\d+',
- rsDingbat = '[' + rsDingbatRange + ']',
- rsLower = '[' + rsLowerRange + ']',
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsUpper = '[' + rsUpperRange + ']',
- rsZWJ = '\\u200d';
-
- /** Used to compose unicode regexes. */
- var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
- rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
- rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
- rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
- reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
- /** Used to match apostrophes. */
- var reApos = RegExp(rsApos, 'g');
-
- /**
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
- */
- var reComboMark = RegExp(rsCombo, 'g');
-
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
- var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
- /** Used to match complex or compound words. */
- var reComplexWord = RegExp([
- rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
- rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
- rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
- rsUpper + '+' + rsOptUpperContr,
- rsDigits,
- rsEmoji
- ].join('|'), 'g');
-
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
- var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
-
- /** Used to detect strings that need a more robust regexp to match words. */
- var reHasComplexWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
-
- /** Used to assign default `context` object properties. */
- var contextProps = [
- 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
- 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
- 'Promise', 'Reflect', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError',
- 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
- '_', 'isFinite', 'parseInt', 'setTimeout'
- ];
-
- /** Used to make template sourceURLs easier to identify. */
- var templateCounter = -1;
-
- /** Used to identify `toStringTag` values of typed arrays. */
- var typedArrayTags = {};
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
- typedArrayTags[uint32Tag] = true;
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
- typedArrayTags[weakMapTag] = false;
-
- /** Used to identify `toStringTag` values supported by `_.clone`. */
- var cloneableTags = {};
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
- cloneableTags[boolTag] = cloneableTags[dateTag] =
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
- cloneableTags[numberTag] = cloneableTags[objectTag] =
- cloneableTags[regexpTag] = cloneableTags[setTag] =
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
- cloneableTags[errorTag] = cloneableTags[funcTag] =
- cloneableTags[weakMapTag] = false;
-
- /** Used to map latin-1 supplementary letters to basic latin letters. */
- var deburredLetters = {
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
- '\xc7': 'C', '\xe7': 'c',
- '\xd0': 'D', '\xf0': 'd',
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
- '\xcC': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
- '\xeC': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
- '\xd1': 'N', '\xf1': 'n',
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
- '\xc6': 'Ae', '\xe6': 'ae',
- '\xde': 'Th', '\xfe': 'th',
- '\xdf': 'ss'
- };
-
- /** Used to map characters to HTML entities. */
- var htmlEscapes = {
- '&': '&amp;',
- '<': '&lt;',
- '>': '&gt;',
- '"': '&quot;',
- "'": '&#39;',
- '`': '&#96;'
- };
-
- /** Used to map HTML entities to characters. */
- var htmlUnescapes = {
- '&amp;': '&',
- '&lt;': '<',
- '&gt;': '>',
- '&quot;': '"',
- '&#39;': "'",
- '&#96;': '`'
- };
-
- /** Used to escape characters for inclusion in compiled string literals. */
- var stringEscapes = {
- '\\': '\\',
- "'": "'",
- '\n': 'n',
- '\r': 'r',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- };
-
- /** Built-in method references without a dependency on `root`. */
- var freeParseFloat = parseFloat,
- freeParseInt = parseInt;
-
- /** Detect free variable `exports`. */
- var freeExports = typeof exports == 'object' && exports;
-
- /** Detect free variable `module`. */
- var freeModule = freeExports && typeof module == 'object' && module;
-
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = freeModule && freeModule.exports === freeExports;
-
- /** Detect free variable `global` from Node.js. */
- var freeGlobal = checkGlobal(typeof global == 'object' && global);
-
- /** Detect free variable `self`. */
- var freeSelf = checkGlobal(typeof self == 'object' && self);
-
- /** Detect `this` as the global object. */
- var thisGlobal = checkGlobal(typeof this == 'object' && this);
-
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || thisGlobal || Function('return this')();
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Adds the key-value `pair` to `map`.
- *
- * @private
- * @param {Object} map The map to modify.
- * @param {Array} pair The key-value pair to add.
- * @returns {Object} Returns `map`.
- */
- function addMapEntry(map, pair) {
- // Don't return `Map#set` because it doesn't return the map instance in IE 11.
- map.set(pair[0], pair[1]);
- return map;
- }
-
- /**
- * Adds `value` to `set`.
- *
- * @private
- * @param {Object} set The set to modify.
- * @param {*} value The value to add.
- * @returns {Object} Returns `set`.
- */
- function addSetEntry(set, value) {
- set.add(value);
- return set;
- }
-
- /**
- * A faster alternative to `Function#apply`, this function invokes `func`
- * with the `this` binding of `thisArg` and the arguments of `args`.
- *
- * @private
- * @param {Function} func The function to invoke.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} args The arguments to invoke `func` with.
- * @returns {*} Returns the result of `func`.
- */
- function apply(func, thisArg, args) {
- var length = args.length;
- switch (length) {
- case 0: return func.call(thisArg);
- case 1: return func.call(thisArg, args[0]);
- case 2: return func.call(thisArg, args[0], args[1]);
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
- }
- return func.apply(thisArg, args);
- }
-
- /**
- * A specialized version of `baseAggregator` for arrays.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
- function arrayAggregator(array, setter, iteratee, accumulator) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- var value = array[index];
- setter(accumulator, value, iteratee(value), array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.forEach` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
- function arrayEach(array, iteratee) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (iteratee(array[index], index, array) === false) {
- break;
- }
- }
- return array;
- }
-
- /**
- * A specialized version of `_.forEachRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
- function arrayEachRight(array, iteratee) {
- var length = array ? array.length : 0;
-
- while (length--) {
- if (iteratee(array[length], length, array) === false) {
- break;
- }
- }
- return array;
- }
-
- /**
- * A specialized version of `_.every` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- */
- function arrayEvery(array, predicate) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (!predicate(array[index], index, array)) {
- return false;
- }
- }
- return true;
- }
-
- /**
- * A specialized version of `_.filter` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function arrayFilter(array, predicate) {
- var index = -1,
- length = array ? array.length : 0,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result[resIndex++] = value;
- }
- }
- return result;
- }
-
- /**
- * A specialized version of `_.includes` for arrays without support for
- * specifying an index to search from.
- *
- * @private
- * @param {Array} [array] The array to search.
- * @param {*} target The value to search for.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
- function arrayIncludes(array, value) {
- var length = array ? array.length : 0;
- return !!length && baseIndexOf(array, value, 0) > -1;
- }
-
- /**
- * This function is like `arrayIncludes` except that it accepts a comparator.
- *
- * @private
- * @param {Array} [array] The array to search.
- * @param {*} target The value to search for.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
- function arrayIncludesWith(array, value, comparator) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (comparator(value, array[index])) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function arrayMap(array, iteratee) {
- var index = -1,
- length = array ? array.length : 0,
- result = Array(length);
-
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
- }
- return result;
- }
-
- /**
- * Appends the elements of `values` to `array`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
- */
- function arrayPush(array, values) {
- var index = -1,
- length = values.length,
- offset = array.length;
-
- while (++index < length) {
- array[offset + index] = values[index];
- }
- return array;
- }
-
- /**
- * A specialized version of `_.reduce` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as
- * the initial value.
- * @returns {*} Returns the accumulated value.
- */
- function arrayReduce(array, iteratee, accumulator, initAccum) {
- var index = -1,
- length = array ? array.length : 0;
-
- if (initAccum && length) {
- accumulator = array[++index];
- }
- while (++index < length) {
- accumulator = iteratee(accumulator, array[index], index, array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.reduceRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the last element of `array` as
- * the initial value.
- * @returns {*} Returns the accumulated value.
- */
- function arrayReduceRight(array, iteratee, accumulator, initAccum) {
- var length = array ? array.length : 0;
- if (initAccum && length) {
- accumulator = array[--length];
- }
- while (length--) {
- accumulator = iteratee(accumulator, array[length], length, array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.some` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function arraySome(array, predicate) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (predicate(array[index], index, array)) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * The base implementation of methods like `_.findKey` and `_.findLastKey`,
- * without support for iteratee shorthands, which iterates over `collection`
- * using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to search.
- * @param {Function} predicate The function invoked per iteration.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the found element or its key, else `undefined`.
- */
- function baseFindKey(collection, predicate, eachFunc) {
- var result;
- eachFunc(collection, function(value, key, collection) {
- if (predicate(value, key, collection)) {
- result = key;
- return false;
- }
- });
- return result;
- }
-
- /**
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {Function} predicate The function invoked per iteration.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (predicate(array[index], index, array)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseIndexOf(array, value, fromIndex) {
- if (value !== value) {
- return indexOfNaN(array, fromIndex);
- }
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (array[index] === value) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * This function is like `baseIndexOf` except that it accepts a comparator.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseIndexOfWith(array, value, fromIndex, comparator) {
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (comparator(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.mean` and `_.meanBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the mean.
- */
- function baseMean(array, iteratee) {
- var length = array ? array.length : 0;
- return length ? (baseSum(array, iteratee) / length) : NAN;
- }
-
- /**
- * The base implementation of `_.reduce` and `_.reduceRight`, without support
- * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of
- * `collection` as the initial value.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the accumulated value.
- */
- function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
- eachFunc(collection, function(value, index, collection) {
- accumulator = initAccum
- ? (initAccum = false, value)
- : iteratee(accumulator, value, index, collection);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.sortBy` which uses `comparer` to define the
- * sort order of `array` and replaces criteria objects with their corresponding
- * values.
- *
- * @private
- * @param {Array} array The array to sort.
- * @param {Function} comparer The function to define sort order.
- * @returns {Array} Returns `array`.
- */
- function baseSortBy(array, comparer) {
- var length = array.length;
-
- array.sort(comparer);
- while (length--) {
- array[length] = array[length].value;
- }
- return array;
- }
-
- /**
- * The base implementation of `_.sum` and `_.sumBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the sum.
- */
- function baseSum(array, iteratee) {
- var result,
- index = -1,
- length = array.length;
-
- while (++index < length) {
- var current = iteratee(array[index]);
- if (current !== undefined) {
- result = result === undefined ? current : (result + current);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.times` without support for iteratee shorthands
- * or max array length checks.
- *
- * @private
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- */
- function baseTimes(n, iteratee) {
- var index = -1,
- result = Array(n);
-
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
- }
-
- /**
- * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
- * of key-value pairs for `object` corresponding to the property names of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the key-value pairs.
- */
- function baseToPairs(object, props) {
- return arrayMap(props, function(key) {
- return [key, object[key]];
- });
- }
-
- /**
- * The base implementation of `_.unary` without support for storing wrapper metadata.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- */
- function baseUnary(func) {
- return function(value) {
- return func(value);
- };
- }
-
- /**
- * The base implementation of `_.values` and `_.valuesIn` which creates an
- * array of `object` property values corresponding to the property names
- * of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the array of property values.
- */
- function baseValues(object, props) {
- return arrayMap(props, function(key) {
- return object[key];
- });
- }
-
- /**
- * Checks if a cache value for `key` exists.
- *
- * @private
- * @param {Object} cache The cache to query.
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function cacheHas(cache, key) {
- return cache.has(key);
- }
-
- /**
- * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
- * that is not found in the character symbols.
- *
- * @private
- * @param {Array} strSymbols The string symbols to inspect.
- * @param {Array} chrSymbols The character symbols to find.
- * @returns {number} Returns the index of the first unmatched string symbol.
- */
- function charsStartIndex(strSymbols, chrSymbols) {
- var index = -1,
- length = strSymbols.length;
-
- while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
- return index;
- }
-
- /**
- * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
- * that is not found in the character symbols.
- *
- * @private
- * @param {Array} strSymbols The string symbols to inspect.
- * @param {Array} chrSymbols The character symbols to find.
- * @returns {number} Returns the index of the last unmatched string symbol.
- */
- function charsEndIndex(strSymbols, chrSymbols) {
- var index = strSymbols.length;
-
- while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
- return index;
- }
-
- /**
- * Checks if `value` is a global object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {null|Object} Returns `value` if it's a global object, else `null`.
- */
- function checkGlobal(value) {
- return (value && value.Object === Object) ? value : null;
- }
-
- /**
- * Gets the number of `placeholder` occurrences in `array`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} placeholder The placeholder to search for.
- * @returns {number} Returns the placeholder count.
- */
- function countHolders(array, placeholder) {
- var length = array.length,
- result = 0;
-
- while (length--) {
- if (array[length] === placeholder) {
- result++;
- }
- }
- return result;
- }
-
- /**
- * Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters.
- *
- * @private
- * @param {string} letter The matched letter to deburr.
- * @returns {string} Returns the deburred letter.
- */
- function deburrLetter(letter) {
- return deburredLetters[letter];
- }
-
- /**
- * Used by `_.escape` to convert characters to HTML entities.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
- function escapeHtmlChar(chr) {
- return htmlEscapes[chr];
- }
-
- /**
- * Used by `_.template` to escape characters for inclusion in compiled string literals.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
- function escapeStringChar(chr) {
- return '\\' + stringEscapes[chr];
- }
-
- /**
- * Gets the value at `key` of `object`.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
- function getValue(object, key) {
- return object == null ? undefined : object[key];
- }
-
- /**
- * Gets the index at which the first occurrence of `NaN` is found in `array`.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched `NaN`, else `-1`.
- */
- function indexOfNaN(array, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- var other = array[index];
- if (other !== other) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * Checks if `value` is a host object in IE < 9.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
- */
- function isHostObject(value) {
- // Many host objects are `Object` objects that can coerce to strings
- // despite having improperly defined `toString` methods.
- var result = false;
- if (value != null && typeof value.toString != 'function') {
- try {
- result = !!(value + '');
- } catch (e) {}
- }
- return result;
- }
-
- /**
- * Converts `iterator` to an array.
- *
- * @private
- * @param {Object} iterator The iterator to convert.
- * @returns {Array} Returns the converted array.
- */
- function iteratorToArray(iterator) {
- var data,
- result = [];
-
- while (!(data = iterator.next()).done) {
- result.push(data.value);
- }
- return result;
- }
-
- /**
- * Converts `map` to its key-value pairs.
- *
- * @private
- * @param {Object} map The map to convert.
- * @returns {Array} Returns the key-value pairs.
- */
- function mapToArray(map) {
- var index = -1,
- result = Array(map.size);
-
- map.forEach(function(value, key) {
- result[++index] = [key, value];
- });
- return result;
- }
-
- /**
- * Replaces all `placeholder` elements in `array` with an internal placeholder
- * and returns an array of their indexes.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {*} placeholder The placeholder to replace.
- * @returns {Array} Returns the new array of placeholder indexes.
- */
- function replaceHolders(array, placeholder) {
- var index = -1,
- length = array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (value === placeholder || value === PLACEHOLDER) {
- array[index] = PLACEHOLDER;
- result[resIndex++] = index;
- }
- }
- return result;
- }
-
- /**
- * Converts `set` to an array of its values.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the values.
- */
- function setToArray(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = value;
- });
- return result;
- }
-
- /**
- * Converts `set` to its value-value pairs.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the value-value pairs.
- */
- function setToPairs(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = [value, value];
- });
- return result;
- }
-
- /**
- * Gets the number of symbols in `string`.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {number} Returns the string size.
- */
- function stringSize(string) {
- if (!(string && reHasComplexSymbol.test(string))) {
- return string.length;
- }
- var result = reComplexSymbol.lastIndex = 0;
- while (reComplexSymbol.test(string)) {
- result++;
- }
- return result;
- }
-
- /**
- * Converts `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function stringToArray(string) {
- return string.match(reComplexSymbol);
- }
-
- /**
- * Used by `_.unescape` to convert HTML entities to characters.
- *
- * @private
- * @param {string} chr The matched character to unescape.
- * @returns {string} Returns the unescaped character.
- */
- function unescapeHtmlChar(chr) {
- return htmlUnescapes[chr];
- }
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Create a new pristine `lodash` function using the `context` object.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Util
- * @param {Object} [context=root] The context object.
- * @returns {Function} Returns a new `lodash` function.
- * @example
- *
- * _.mixin({ 'foo': _.constant('foo') });
- *
- * var lodash = _.runInContext();
- * lodash.mixin({ 'bar': lodash.constant('bar') });
- *
- * _.isFunction(_.foo);
- * // => true
- * _.isFunction(_.bar);
- * // => false
- *
- * lodash.isFunction(lodash.foo);
- * // => false
- * lodash.isFunction(lodash.bar);
- * // => true
- *
- * // Use `context` to stub `Date#getTime` use in `_.now`.
- * var stubbed = _.runInContext({
- * 'Date': function() {
- * return { 'getTime': stubGetTime };
- * }
- * });
- *
- * // Create a suped-up `defer` in Node.js.
- * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
- */
- function runInContext(context) {
- context = context ? _.defaults({}, context, _.pick(root, contextProps)) : root;
-
- /** Built-in constructor references. */
- var Date = context.Date,
- Error = context.Error,
- Math = context.Math,
- RegExp = context.RegExp,
- TypeError = context.TypeError;
-
- /** Used for built-in method references. */
- var arrayProto = context.Array.prototype,
- objectProto = context.Object.prototype,
- stringProto = context.String.prototype;
-
- /** Used to detect overreaching core-js shims. */
- var coreJsData = context['__core-js_shared__'];
-
- /** Used to detect methods masquerading as native. */
- var maskSrcKey = (function() {
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
- return uid ? ('Symbol(src)_1.' + uid) : '';
- }());
-
- /** Used to resolve the decompiled source of functions. */
- var funcToString = context.Function.prototype.toString;
-
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
-
- /** Used to generate unique IDs. */
- var idCounter = 0;
-
- /** Used to infer the `Object` constructor. */
- var objectCtorString = funcToString.call(Object);
-
- /**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
- * of values.
- */
- var objectToString = objectProto.toString;
-
- /** Used to restore the original `_` reference in `_.noConflict`. */
- var oldDash = root._;
-
- /** Used to detect if a method is native. */
- var reIsNative = RegExp('^' +
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
- );
-
- /** Built-in value references. */
- var Buffer = moduleExports ? context.Buffer : undefined,
- Reflect = context.Reflect,
- Symbol = context.Symbol,
- Uint8Array = context.Uint8Array,
- enumerate = Reflect ? Reflect.enumerate : undefined,
- getOwnPropertySymbols = Object.getOwnPropertySymbols,
- iteratorSymbol = typeof (iteratorSymbol = Symbol && Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined,
- objectCreate = Object.create,
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
- splice = arrayProto.splice;
-
- /** Built-in method references that are mockable. */
- var setTimeout = function(func, wait) { return context.setTimeout.call(root, func, wait); };
-
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeCeil = Math.ceil,
- nativeFloor = Math.floor,
- nativeGetPrototype = Object.getPrototypeOf,
- nativeIsFinite = context.isFinite,
- nativeJoin = arrayProto.join,
- nativeKeys = Object.keys,
- nativeMax = Math.max,
- nativeMin = Math.min,
- nativeParseInt = context.parseInt,
- nativeRandom = Math.random,
- nativeReplace = stringProto.replace,
- nativeReverse = arrayProto.reverse,
- nativeSplit = stringProto.split;
-
- /* Built-in method references that are verified to be native. */
- var DataView = getNative(context, 'DataView'),
- Map = getNative(context, 'Map'),
- Promise = getNative(context, 'Promise'),
- Set = getNative(context, 'Set'),
- WeakMap = getNative(context, 'WeakMap'),
- nativeCreate = getNative(Object, 'create');
-
- /** Used to store function metadata. */
- var metaMap = WeakMap && new WeakMap;
-
- /** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
- var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
-
- /** Used to lookup unminified function names. */
- var realNames = {};
-
- /** Used to detect maps, sets, and weakmaps. */
- var dataViewCtorString = toSource(DataView),
- mapCtorString = toSource(Map),
- promiseCtorString = toSource(Promise),
- setCtorString = toSource(Set),
- weakMapCtorString = toSource(WeakMap);
-
- /** Used to convert symbols to primitives and strings. */
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` object which wraps `value` to enable implicit method
- * chain sequences. Methods that operate on and return arrays, collections,
- * and functions can be chained together. Methods that retrieve a single value
- * or may return a primitive value will automatically end the chain sequence
- * and return the unwrapped value. Otherwise, the value must be unwrapped
- * with `_#value`.
- *
- * Explicit chain sequences, which must be unwrapped with `_#value`, may be
- * enabled using `_.chain`.
- *
- * The execution of chained methods is lazy, that is, it's deferred until
- * `_#value` is implicitly or explicitly called.
- *
- * Lazy evaluation allows several methods to support shortcut fusion.
- * Shortcut fusion is an optimization to merge iteratee calls; this avoids
- * the creation of intermediate arrays and can greatly reduce the number of
- * iteratee executions. Sections of a chain sequence qualify for shortcut
- * fusion if the section is applied to an array of at least `200` elements
- * and any iteratees accept only one argument. The heuristic for whether a
- * section qualifies for shortcut fusion is subject to change.
- *
- * Chaining is supported in custom builds as long as the `_#value` method is
- * directly or indirectly included in the build.
- *
- * In addition to lodash methods, wrappers have `Array` and `String` methods.
- *
- * The wrapper `Array` methods are:
- * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
- *
- * The wrapper `String` methods are:
- * `replace` and `split`
- *
- * The wrapper methods that support shortcut fusion are:
- * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
- * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
- * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
- *
- * The chainable wrapper methods are:
- * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
- * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
- * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
- * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
- * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
- * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
- * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
- * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
- * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
- * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
- * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
- * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
- * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
- * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
- * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
- * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
- * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
- * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
- * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
- * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
- * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
- * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
- * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
- * `zipObject`, `zipObjectDeep`, and `zipWith`
- *
- * The wrapper methods that are **not** chainable by default are:
- * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
- * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `divide`, `each`,
- * `eachRight`, `endsWith`, `eq`, `escape`, `escapeRegExp`, `every`, `find`,
- * `findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `first`,
- * `floor`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`,
- * `forOwnRight`, `get`, `gt`, `gte`, `has`, `hasIn`, `head`, `identity`,
- * `includes`, `indexOf`, `inRange`, `invoke`, `isArguments`, `isArray`,
- * `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`,
- * `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isEqualWith`,
- * `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMap`,
- * `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
- * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
- * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
- * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
- * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
- * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
- * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
- * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
- * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
- * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
- * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
- * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
- * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
- * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
- * `upperFirst`, `value`, and `words`
- *
- * @name _
- * @constructor
- * @category Seq
- * @param {*} value The value to wrap in a `lodash` instance.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2, 3]);
- *
- * // Returns an unwrapped value.
- * wrapped.reduce(_.add);
- * // => 6
- *
- * // Returns a wrapped value.
- * var squares = wrapped.map(square);
- *
- * _.isArray(squares);
- * // => false
- *
- * _.isArray(squares.value());
- * // => true
- */
- function lodash(value) {
- if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
- if (value instanceof LodashWrapper) {
- return value;
- }
- if (hasOwnProperty.call(value, '__wrapped__')) {
- return wrapperClone(value);
- }
- }
- return new LodashWrapper(value);
- }
-
- /**
- * The function whose prototype chain sequence wrappers inherit from.
- *
- * @private
- */
- function baseLodash() {
- // No operation performed.
- }
-
- /**
- * The base constructor for creating `lodash` wrapper objects.
- *
- * @private
- * @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable explicit method chain sequences.
- */
- function LodashWrapper(value, chainAll) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__chain__ = !!chainAll;
- this.__index__ = 0;
- this.__values__ = undefined;
- }
-
- /**
- * By default, the template delimiters used by lodash are like those in
- * embedded Ruby (ERB). Change the following template settings to use
- * alternative delimiters.
- *
- * @static
- * @memberOf _
- * @type {Object}
- */
- lodash.templateSettings = {
-
- /**
- * Used to detect `data` property values to be HTML-escaped.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'escape': reEscape,
-
- /**
- * Used to detect code to be evaluated.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'evaluate': reEvaluate,
-
- /**
- * Used to detect `data` property values to inject.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'interpolate': reInterpolate,
-
- /**
- * Used to reference the data object in the template text.
- *
- * @memberOf _.templateSettings
- * @type {string}
- */
- 'variable': '',
-
- /**
- * Used to import variables into the compiled template.
- *
- * @memberOf _.templateSettings
- * @type {Object}
- */
- 'imports': {
-
- /**
- * A reference to the `lodash` function.
- *
- * @memberOf _.templateSettings.imports
- * @type {Function}
- */
- '_': lodash
- }
- };
-
- // Ensure wrappers are instances of `baseLodash`.
- lodash.prototype = baseLodash.prototype;
- lodash.prototype.constructor = lodash;
-
- LodashWrapper.prototype = baseCreate(baseLodash.prototype);
- LodashWrapper.prototype.constructor = LodashWrapper;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
- *
- * @private
- * @constructor
- * @param {*} value The value to wrap.
- */
- function LazyWrapper(value) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__dir__ = 1;
- this.__filtered__ = false;
- this.__iteratees__ = [];
- this.__takeCount__ = MAX_ARRAY_LENGTH;
- this.__views__ = [];
- }
-
- /**
- * Creates a clone of the lazy wrapper object.
- *
- * @private
- * @name clone
- * @memberOf LazyWrapper
- * @returns {Object} Returns the cloned `LazyWrapper` object.
- */
- function lazyClone() {
- var result = new LazyWrapper(this.__wrapped__);
- result.__actions__ = copyArray(this.__actions__);
- result.__dir__ = this.__dir__;
- result.__filtered__ = this.__filtered__;
- result.__iteratees__ = copyArray(this.__iteratees__);
- result.__takeCount__ = this.__takeCount__;
- result.__views__ = copyArray(this.__views__);
- return result;
- }
-
- /**
- * Reverses the direction of lazy iteration.
- *
- * @private
- * @name reverse
- * @memberOf LazyWrapper
- * @returns {Object} Returns the new reversed `LazyWrapper` object.
- */
- function lazyReverse() {
- if (this.__filtered__) {
- var result = new LazyWrapper(this);
- result.__dir__ = -1;
- result.__filtered__ = true;
- } else {
- result = this.clone();
- result.__dir__ *= -1;
- }
- return result;
- }
-
- /**
- * Extracts the unwrapped value from its lazy wrapper.
- *
- * @private
- * @name value
- * @memberOf LazyWrapper
- * @returns {*} Returns the unwrapped value.
- */
- function lazyValue() {
- var array = this.__wrapped__.value(),
- dir = this.__dir__,
- isArr = isArray(array),
- isRight = dir < 0,
- arrLength = isArr ? array.length : 0,
- view = getView(0, arrLength, this.__views__),
- start = view.start,
- end = view.end,
- length = end - start,
- index = isRight ? end : (start - 1),
- iteratees = this.__iteratees__,
- iterLength = iteratees.length,
- resIndex = 0,
- takeCount = nativeMin(length, this.__takeCount__);
-
- if (!isArr || arrLength < LARGE_ARRAY_SIZE ||
- (arrLength == length && takeCount == length)) {
- return baseWrapperValue(array, this.__actions__);
- }
- var result = [];
-
- outer:
- while (length-- && resIndex < takeCount) {
- index += dir;
-
- var iterIndex = -1,
- value = array[index];
-
- while (++iterIndex < iterLength) {
- var data = iteratees[iterIndex],
- iteratee = data.iteratee,
- type = data.type,
- computed = iteratee(value);
-
- if (type == LAZY_MAP_FLAG) {
- value = computed;
- } else if (!computed) {
- if (type == LAZY_FILTER_FLAG) {
- continue outer;
- } else {
- break outer;
- }
- }
- }
- result[resIndex++] = value;
- }
- return result;
- }
-
- // Ensure `LazyWrapper` is an instance of `baseLodash`.
- LazyWrapper.prototype = baseCreate(baseLodash.prototype);
- LazyWrapper.prototype.constructor = LazyWrapper;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a hash object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function Hash(entries) {
- var index = -1,
- length = entries ? entries.length : 0;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the hash.
- *
- * @private
- * @name clear
- * @memberOf Hash
- */
- function hashClear() {
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
- }
-
- /**
- * Removes `key` and its value from the hash.
- *
- * @private
- * @name delete
- * @memberOf Hash
- * @param {Object} hash The hash to modify.
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function hashDelete(key) {
- return this.has(key) && delete this.__data__[key];
- }
-
- /**
- * Gets the hash value for `key`.
- *
- * @private
- * @name get
- * @memberOf Hash
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function hashGet(key) {
- var data = this.__data__;
- if (nativeCreate) {
- var result = data[key];
- return result === HASH_UNDEFINED ? undefined : result;
- }
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
- }
-
- /**
- * Checks if a hash value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Hash
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function hashHas(key) {
- var data = this.__data__;
- return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
- }
-
- /**
- * Sets the hash `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Hash
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the hash instance.
- */
- function hashSet(key, value) {
- var data = this.__data__;
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
- return this;
- }
-
- // Add methods to `Hash`.
- Hash.prototype.clear = hashClear;
- Hash.prototype['delete'] = hashDelete;
- Hash.prototype.get = hashGet;
- Hash.prototype.has = hashHas;
- Hash.prototype.set = hashSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an list cache object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function ListCache(entries) {
- var index = -1,
- length = entries ? entries.length : 0;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the list cache.
- *
- * @private
- * @name clear
- * @memberOf ListCache
- */
- function listCacheClear() {
- this.__data__ = [];
- }
-
- /**
- * Removes `key` and its value from the list cache.
- *
- * @private
- * @name delete
- * @memberOf ListCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function listCacheDelete(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- if (index < 0) {
- return false;
- }
- var lastIndex = data.length - 1;
- if (index == lastIndex) {
- data.pop();
- } else {
- splice.call(data, index, 1);
- }
- return true;
- }
-
- /**
- * Gets the list cache value for `key`.
- *
- * @private
- * @name get
- * @memberOf ListCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function listCacheGet(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- return index < 0 ? undefined : data[index][1];
- }
-
- /**
- * Checks if a list cache value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf ListCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function listCacheHas(key) {
- return assocIndexOf(this.__data__, key) > -1;
- }
-
- /**
- * Sets the list cache `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf ListCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the list cache instance.
- */
- function listCacheSet(key, value) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- if (index < 0) {
- data.push([key, value]);
- } else {
- data[index][1] = value;
- }
- return this;
- }
-
- // Add methods to `ListCache`.
- ListCache.prototype.clear = listCacheClear;
- ListCache.prototype['delete'] = listCacheDelete;
- ListCache.prototype.get = listCacheGet;
- ListCache.prototype.has = listCacheHas;
- ListCache.prototype.set = listCacheSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a map cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function MapCache(entries) {
- var index = -1,
- length = entries ? entries.length : 0;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the map.
- *
- * @private
- * @name clear
- * @memberOf MapCache
- */
- function mapCacheClear() {
- this.__data__ = {
- 'hash': new Hash,
- 'map': new (Map || ListCache),
- 'string': new Hash
- };
- }
-
- /**
- * Removes `key` and its value from the map.
- *
- * @private
- * @name delete
- * @memberOf MapCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function mapCacheDelete(key) {
- return getMapData(this, key)['delete'](key);
- }
-
- /**
- * Gets the map value for `key`.
- *
- * @private
- * @name get
- * @memberOf MapCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function mapCacheGet(key) {
- return getMapData(this, key).get(key);
- }
-
- /**
- * Checks if a map value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf MapCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function mapCacheHas(key) {
- return getMapData(this, key).has(key);
- }
-
- /**
- * Sets the map `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf MapCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the map cache instance.
- */
- function mapCacheSet(key, value) {
- getMapData(this, key).set(key, value);
- return this;
- }
-
- // Add methods to `MapCache`.
- MapCache.prototype.clear = mapCacheClear;
- MapCache.prototype['delete'] = mapCacheDelete;
- MapCache.prototype.get = mapCacheGet;
- MapCache.prototype.has = mapCacheHas;
- MapCache.prototype.set = mapCacheSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- *
- * Creates an array cache object to store unique values.
- *
- * @private
- * @constructor
- * @param {Array} [values] The values to cache.
- */
- function SetCache(values) {
- var index = -1,
- length = values ? values.length : 0;
-
- this.__data__ = new MapCache;
- while (++index < length) {
- this.add(values[index]);
- }
- }
-
- /**
- * Adds `value` to the array cache.
- *
- * @private
- * @name add
- * @memberOf SetCache
- * @alias push
- * @param {*} value The value to cache.
- * @returns {Object} Returns the cache instance.
- */
- function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED);
- return this;
- }
-
- /**
- * Checks if `value` is in the array cache.
- *
- * @private
- * @name has
- * @memberOf SetCache
- * @param {*} value The value to search for.
- * @returns {number} Returns `true` if `value` is found, else `false`.
- */
- function setCacheHas(value) {
- return this.__data__.has(value);
- }
-
- // Add methods to `SetCache`.
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
- SetCache.prototype.has = setCacheHas;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a stack cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function Stack(entries) {
- this.__data__ = new ListCache(entries);
- }
-
- /**
- * Removes all key-value entries from the stack.
- *
- * @private
- * @name clear
- * @memberOf Stack
- */
- function stackClear() {
- this.__data__ = new ListCache;
- }
-
- /**
- * Removes `key` and its value from the stack.
- *
- * @private
- * @name delete
- * @memberOf Stack
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function stackDelete(key) {
- return this.__data__['delete'](key);
- }
-
- /**
- * Gets the stack value for `key`.
- *
- * @private
- * @name get
- * @memberOf Stack
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function stackGet(key) {
- return this.__data__.get(key);
- }
-
- /**
- * Checks if a stack value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Stack
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function stackHas(key) {
- return this.__data__.has(key);
- }
-
- /**
- * Sets the stack `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Stack
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the stack cache instance.
- */
- function stackSet(key, value) {
- var cache = this.__data__;
- if (cache instanceof ListCache && cache.__data__.length == LARGE_ARRAY_SIZE) {
- cache = this.__data__ = new MapCache(cache.__data__);
- }
- cache.set(key, value);
- return this;
- }
-
- // Add methods to `Stack`.
- Stack.prototype.clear = stackClear;
- Stack.prototype['delete'] = stackDelete;
- Stack.prototype.get = stackGet;
- Stack.prototype.has = stackHas;
- Stack.prototype.set = stackSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Used by `_.defaults` to customize its `_.assignIn` use.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to assign.
- * @param {Object} object The parent object of `objValue`.
- * @returns {*} Returns the value to assign.
- */
- function assignInDefaults(objValue, srcValue, key, object) {
- if (objValue === undefined ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- return srcValue;
- }
- return objValue;
- }
-
- /**
- * This function is like `assignValue` except that it doesn't assign
- * `undefined` values.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignMergeValue(object, key, value) {
- if ((value !== undefined && !eq(object[key], value)) ||
- (typeof key == 'number' && value === undefined && !(key in object))) {
- object[key] = value;
- }
- }
-
- /**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- object[key] = value;
- }
- }
-
- /**
- * Gets the index at which the `key` is found in `array` of key-value pairs.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function assocIndexOf(array, key) {
- var length = array.length;
- while (length--) {
- if (eq(array[length][0], key)) {
- return length;
- }
- }
- return -1;
- }
-
- /**
- * Aggregates elements of `collection` on `accumulator` with keys transformed
- * by `iteratee` and values set by `setter`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
- function baseAggregator(collection, setter, iteratee, accumulator) {
- baseEach(collection, function(value, key, collection) {
- setter(accumulator, value, iteratee(value), collection);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.assign` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
- function baseAssign(object, source) {
- return object && copyObject(source, keys(source), object);
- }
-
- /**
- * The base implementation of `_.at` without support for individual paths.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {string[]} paths The property paths of elements to pick.
- * @returns {Array} Returns the picked elements.
- */
- function baseAt(object, paths) {
- var index = -1,
- isNil = object == null,
- length = paths.length,
- result = Array(length);
-
- while (++index < length) {
- result[index] = isNil ? undefined : get(object, paths[index]);
- }
- return result;
- }
-
- /**
- * The base implementation of `_.clamp` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- */
- function baseClamp(number, lower, upper) {
- if (number === number) {
- if (upper !== undefined) {
- number = number <= upper ? number : upper;
- }
- if (lower !== undefined) {
- number = number >= lower ? number : lower;
- }
- }
- return number;
- }
-
- /**
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
- * traversed objects.
- *
- * @private
- * @param {*} value The value to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @param {boolean} [isFull] Specify a clone including symbols.
- * @param {Function} [customizer] The function to customize cloning.
- * @param {string} [key] The key of `value`.
- * @param {Object} [object] The parent object of `value`.
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
- * @returns {*} Returns the cloned value.
- */
- function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
- var result;
- if (customizer) {
- result = object ? customizer(value, key, object, stack) : customizer(value);
- }
- if (result !== undefined) {
- return result;
- }
- if (!isObject(value)) {
- return value;
- }
- var isArr = isArray(value);
- if (isArr) {
- result = initCloneArray(value);
- if (!isDeep) {
- return copyArray(value, result);
- }
- } else {
- var tag = getTag(value),
- isFunc = tag == funcTag || tag == genTag;
-
- if (isBuffer(value)) {
- return cloneBuffer(value, isDeep);
- }
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
- if (isHostObject(value)) {
- return object ? value : {};
- }
- result = initCloneObject(isFunc ? {} : value);
- if (!isDeep) {
- return copySymbols(value, baseAssign(result, value));
- }
- } else {
- if (!cloneableTags[tag]) {
- return object ? value : {};
- }
- result = initCloneByTag(value, tag, baseClone, isDeep);
- }
- }
- // Check for circular references and return its corresponding clone.
- stack || (stack = new Stack);
- var stacked = stack.get(value);
- if (stacked) {
- return stacked;
- }
- stack.set(value, result);
-
- if (!isArr) {
- var props = isFull ? getAllKeys(value) : keys(value);
- }
- // Recursively populate clone (susceptible to call stack limits).
- arrayEach(props || value, function(subValue, key) {
- if (props) {
- key = subValue;
- subValue = value[key];
- }
- assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
- });
- return result;
- }
-
- /**
- * The base implementation of `_.conforms` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- */
- function baseConforms(source) {
- var props = keys(source),
- length = props.length;
-
- return function(object) {
- if (object == null) {
- return !length;
- }
- var index = length;
- while (index--) {
- var key = props[index],
- predicate = source[key],
- value = object[key];
-
- if ((value === undefined &&
- !(key in Object(object))) || !predicate(value)) {
- return false;
- }
- }
- return true;
- };
- }
-
- /**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} prototype The object to inherit from.
- * @returns {Object} Returns the new object.
- */
- function baseCreate(proto) {
- return isObject(proto) ? objectCreate(proto) : {};
- }
-
- /**
- * The base implementation of `_.delay` and `_.defer` which accepts an array
- * of `func` arguments.
- *
- * @private
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {Object} args The arguments to provide to `func`.
- * @returns {number} Returns the timer id.
- */
- function baseDelay(func, wait, args) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return setTimeout(function() { func.apply(undefined, args); }, wait);
- }
-
- /**
- * The base implementation of methods like `_.difference` without support
- * for excluding multiple arrays or iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Array} values The values to exclude.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- */
- function baseDifference(array, values, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- isCommon = true,
- length = array.length,
- result = [],
- valuesLength = values.length;
-
- if (!length) {
- return result;
- }
- if (iteratee) {
- values = arrayMap(values, baseUnary(iteratee));
- }
- if (comparator) {
- includes = arrayIncludesWith;
- isCommon = false;
- }
- else if (values.length >= LARGE_ARRAY_SIZE) {
- includes = cacheHas;
- isCommon = false;
- values = new SetCache(values);
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var valuesIndex = valuesLength;
- while (valuesIndex--) {
- if (values[valuesIndex] === computed) {
- continue outer;
- }
- }
- result.push(value);
- }
- else if (!includes(values, computed, comparator)) {
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEach = createBaseEach(baseForOwn);
-
- /**
- * The base implementation of `_.forEachRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEachRight = createBaseEach(baseForOwnRight, true);
-
- /**
- * The base implementation of `_.every` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`
- */
- function baseEvery(collection, predicate) {
- var result = true;
- baseEach(collection, function(value, index, collection) {
- result = !!predicate(value, index, collection);
- return result;
- });
- return result;
- }
-
- /**
- * The base implementation of methods like `_.max` and `_.min` which accepts a
- * `comparator` to determine the extremum value.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The iteratee invoked per iteration.
- * @param {Function} comparator The comparator used to compare values.
- * @returns {*} Returns the extremum value.
- */
- function baseExtremum(array, iteratee, comparator) {
- var index = -1,
- length = array.length;
-
- while (++index < length) {
- var value = array[index],
- current = iteratee(value);
-
- if (current != null && (computed === undefined
- ? (current === current && !isSymbol(current))
- : comparator(current, computed)
- )) {
- var computed = current,
- result = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.fill` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- */
- function baseFill(array, value, start, end) {
- var length = array.length;
-
- start = toInteger(start);
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = (end === undefined || end > length) ? length : toInteger(end);
- if (end < 0) {
- end += length;
- }
- end = start > end ? 0 : toLength(end);
- while (start < end) {
- array[start++] = value;
- }
- return array;
- }
-
- /**
- * The base implementation of `_.filter` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function baseFilter(collection, predicate) {
- var result = [];
- baseEach(collection, function(value, index, collection) {
- if (predicate(value, index, collection)) {
- result.push(value);
- }
- });
- return result;
- }
-
- /**
- * The base implementation of `_.flatten` with support for restricting flattening.
- *
- * @private
- * @param {Array} array The array to flatten.
- * @param {number} depth The maximum recursion depth.
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
- * @param {Array} [result=[]] The initial result value.
- * @returns {Array} Returns the new flattened array.
- */
- function baseFlatten(array, depth, predicate, isStrict, result) {
- var index = -1,
- length = array.length;
-
- predicate || (predicate = isFlattenable);
- result || (result = []);
-
- while (++index < length) {
- var value = array[index];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- // Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, depth - 1, predicate, isStrict, result);
- } else {
- arrayPush(result, value);
- }
- } else if (!isStrict) {
- result[result.length] = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseFor = createBaseFor();
-
- /**
- * This function is like `baseFor` except that it iterates over properties
- * in the opposite order.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseForRight = createBaseFor(true);
-
- /**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
- }
-
- /**
- * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwnRight(object, iteratee) {
- return object && baseForRight(object, iteratee, keys);
- }
-
- /**
- * The base implementation of `_.functions` which creates an array of
- * `object` function property names filtered from `props`.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Array} props The property names to filter.
- * @returns {Array} Returns the function names.
- */
- function baseFunctions(object, props) {
- return arrayFilter(props, function(key) {
- return isFunction(object[key]);
- });
- }
-
- /**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
- function baseGet(object, path) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var index = 0,
- length = path.length;
-
- while (object != null && index < length) {
- object = object[toKey(path[index++])];
- }
- return (index && index == length) ? object : undefined;
- }
-
- /**
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
- var result = keysFunc(object);
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
- }
-
- /**
- * The base implementation of `_.gt` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- */
- function baseGt(value, other) {
- return value > other;
- }
-
- /**
- * The base implementation of `_.has` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
- function baseHas(object, key) {
- // Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
- // that are composed entirely of index properties, return `false` for
- // `hasOwnProperty` checks of them.
- return object != null &&
- (hasOwnProperty.call(object, key) ||
- (typeof object == 'object' && key in object && getPrototype(object) === null));
- }
-
- /**
- * The base implementation of `_.hasIn` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
- function baseHasIn(object, key) {
- return object != null && key in Object(object);
- }
-
- /**
- * The base implementation of `_.inRange` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {number} number The number to check.
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- */
- function baseInRange(number, start, end) {
- return number >= nativeMin(start, end) && number < nativeMax(start, end);
- }
-
- /**
- * The base implementation of methods like `_.intersection`, without support
- * for iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of shared values.
- */
- function baseIntersection(arrays, iteratee, comparator) {
- var includes = comparator ? arrayIncludesWith : arrayIncludes,
- length = arrays[0].length,
- othLength = arrays.length,
- othIndex = othLength,
- caches = Array(othLength),
- maxLength = Infinity,
- result = [];
-
- while (othIndex--) {
- var array = arrays[othIndex];
- if (othIndex && iteratee) {
- array = arrayMap(array, baseUnary(iteratee));
- }
- maxLength = nativeMin(array.length, maxLength);
- caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
- ? new SetCache(othIndex && array)
- : undefined;
- }
- array = arrays[0];
-
- var index = -1,
- seen = caches[0];
-
- outer:
- while (++index < length && result.length < maxLength) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (!(seen
- ? cacheHas(seen, computed)
- : includes(result, computed, comparator)
- )) {
- othIndex = othLength;
- while (--othIndex) {
- var cache = caches[othIndex];
- if (!(cache
- ? cacheHas(cache, computed)
- : includes(arrays[othIndex], computed, comparator))
- ) {
- continue outer;
- }
- }
- if (seen) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.invert` and `_.invertBy` which inverts
- * `object` with values transformed by `iteratee` and set by `setter`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform values.
- * @param {Object} accumulator The initial inverted object.
- * @returns {Function} Returns `accumulator`.
- */
- function baseInverter(object, setter, iteratee, accumulator) {
- baseForOwn(object, function(value, key, object) {
- setter(accumulator, iteratee(value), key, object);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.invoke` without support for individual
- * method arguments.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {Array} args The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- */
- function baseInvoke(object, path, args) {
- if (!isKey(path, object)) {
- path = castPath(path);
- object = parent(object, path);
- path = last(path);
- }
- var func = object == null ? object : object[toKey(path)];
- return func == null ? undefined : apply(func, object, args);
- }
-
- /**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {boolean} [bitmask] The bitmask of comparison flags.
- * The bitmask may be composed of the following flags:
- * 1 - Unordered comparison
- * 2 - Partial comparison
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
- function baseIsEqual(value, other, customizer, bitmask, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
- }
-
- /**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = arrayTag,
- othTag = arrayTag;
-
- if (!objIsArr) {
- objTag = getTag(object);
- objTag = objTag == argsTag ? objectTag : objTag;
- }
- if (!othIsArr) {
- othTag = getTag(other);
- othTag = othTag == argsTag ? objectTag : othTag;
- }
- var objIsObj = objTag == objectTag && !isHostObject(object),
- othIsObj = othTag == objectTag && !isHostObject(other),
- isSameTag = objTag == othTag;
-
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack);
- return (objIsArr || isTypedArray(object))
- ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
- : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
- }
- if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
-
- stack || (stack = new Stack);
- return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack);
- return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
- }
-
- /**
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Array} matchData The property names, values, and compare flags to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- */
- function baseIsMatch(object, source, matchData, customizer) {
- var index = matchData.length,
- length = index,
- noCustomizer = !customizer;
-
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (index--) {
- var data = matchData[index];
- if ((noCustomizer && data[2])
- ? data[1] !== object[data[0]]
- : !(data[0] in object)
- ) {
- return false;
- }
- }
- while (++index < length) {
- data = matchData[index];
- var key = data[0],
- objValue = object[key],
- srcValue = data[1];
-
- if (noCustomizer && data[2]) {
- if (objValue === undefined && !(key in object)) {
- return false;
- }
- } else {
- var stack = new Stack;
- if (customizer) {
- var result = customizer(objValue, srcValue, key, object, source, stack);
- }
- if (!(result === undefined
- ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)
- : result
- )) {
- return false;
- }
- }
- }
- return true;
- }
-
- /**
- * The base implementation of `_.isNative` without bad shim checks.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- */
- function baseIsNative(value) {
- if (!isObject(value) || isMasked(value)) {
- return false;
- }
- var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
- return pattern.test(toSource(value));
- }
-
- /**
- * The base implementation of `_.iteratee`.
- *
- * @private
- * @param {*} [value=_.identity] The value to convert to an iteratee.
- * @returns {Function} Returns the iteratee.
- */
- function baseIteratee(value) {
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
- if (typeof value == 'function') {
- return value;
- }
- if (value == null) {
- return identity;
- }
- if (typeof value == 'object') {
- return isArray(value)
- ? baseMatchesProperty(value[0], value[1])
- : baseMatches(value);
- }
- return property(value);
- }
-
- /**
- * The base implementation of `_.keys` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeys(object) {
- return nativeKeys(Object(object));
- }
-
- /**
- * The base implementation of `_.keysIn` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeysIn(object) {
- object = object == null ? object : Object(object);
-
- var result = [];
- for (var key in object) {
- result.push(key);
- }
- return result;
- }
-
- // Fallback for IE < 9 with es6-shim.
- if (enumerate && !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf')) {
- baseKeysIn = function(object) {
- return iteratorToArray(enumerate(object));
- };
- }
-
- /**
- * The base implementation of `_.lt` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- */
- function baseLt(value, other) {
- return value < other;
- }
-
- /**
- * The base implementation of `_.map` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function baseMap(collection, iteratee) {
- var index = -1,
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value, key, collection) {
- result[++index] = iteratee(value, key, collection);
- });
- return result;
- }
-
- /**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatches(source) {
- var matchData = getMatchData(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
- }
- return function(object) {
- return object === source || baseIsMatch(object, source, matchData);
- };
- }
-
- /**
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
- *
- * @private
- * @param {string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatchesProperty(path, srcValue) {
- if (isKey(path) && isStrictComparable(srcValue)) {
- return matchesStrictComparable(toKey(path), srcValue);
- }
- return function(object) {
- var objValue = get(object, path);
- return (objValue === undefined && objValue === srcValue)
- ? hasIn(object, path)
- : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
- };
- }
-
- /**
- * The base implementation of `_.merge` without support for multiple sources.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} [customizer] The function to customize merged values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
- function baseMerge(object, source, srcIndex, customizer, stack) {
- if (object === source) {
- return;
- }
- if (!(isArray(source) || isTypedArray(source))) {
- var props = keysIn(source);
- }
- arrayEach(props || source, function(srcValue, key) {
- if (props) {
- key = srcValue;
- srcValue = source[key];
- }
- if (isObject(srcValue)) {
- stack || (stack = new Stack);
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
- }
- else {
- var newValue = customizer
- ? customizer(object[key], srcValue, (key + ''), object, source, stack)
- : undefined;
-
- if (newValue === undefined) {
- newValue = srcValue;
- }
- assignMergeValue(object, key, newValue);
- }
- });
- }
-
- /**
- * A specialized version of `baseMerge` for arrays and objects which performs
- * deep merges and tracks traversed objects enabling objects with circular
- * references to be merged.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {string} key The key of the value to merge.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} mergeFunc The function to merge values.
- * @param {Function} [customizer] The function to customize assigned values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
- var objValue = object[key],
- srcValue = source[key],
- stacked = stack.get(srcValue);
-
- if (stacked) {
- assignMergeValue(object, key, stacked);
- return;
- }
- var newValue = customizer
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
- : undefined;
-
- var isCommon = newValue === undefined;
-
- if (isCommon) {
- newValue = srcValue;
- if (isArray(srcValue) || isTypedArray(srcValue)) {
- if (isArray(objValue)) {
- newValue = objValue;
- }
- else if (isArrayLikeObject(objValue)) {
- newValue = copyArray(objValue);
- }
- else {
- isCommon = false;
- newValue = baseClone(srcValue, true);
- }
- }
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
- if (isArguments(objValue)) {
- newValue = toPlainObject(objValue);
- }
- else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
- isCommon = false;
- newValue = baseClone(srcValue, true);
- }
- else {
- newValue = objValue;
- }
- }
- else {
- isCommon = false;
- }
- }
- stack.set(srcValue, newValue);
-
- if (isCommon) {
- // Recursively merge objects and arrays (susceptible to call stack limits).
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
- }
- stack['delete'](srcValue);
- assignMergeValue(object, key, newValue);
- }
-
- /**
- * The base implementation of `_.nth` which doesn't coerce `n` to an integer.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {number} n The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- */
- function baseNth(array, n) {
- var length = array.length;
- if (!length) {
- return;
- }
- n += n < 0 ? length : 0;
- return isIndex(n, length) ? array[n] : undefined;
- }
-
- /**
- * The base implementation of `_.orderBy` without param guards.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
- * @param {string[]} orders The sort orders of `iteratees`.
- * @returns {Array} Returns the new sorted array.
- */
- function baseOrderBy(collection, iteratees, orders) {
- var index = -1;
- iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
-
- var result = baseMap(collection, function(value, key, collection) {
- var criteria = arrayMap(iteratees, function(iteratee) {
- return iteratee(value);
- });
- return { 'criteria': criteria, 'index': ++index, 'value': value };
- });
-
- return baseSortBy(result, function(object, other) {
- return compareMultiple(object, other, orders);
- });
- }
-
- /**
- * The base implementation of `_.pick` without support for individual
- * property identifiers.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} props The property identifiers to pick.
- * @returns {Object} Returns the new object.
- */
- function basePick(object, props) {
- object = Object(object);
- return arrayReduce(props, function(result, key) {
- if (key in object) {
- result[key] = object[key];
- }
- return result;
- }, {});
- }
-
- /**
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The source object.
- * @param {Function} predicate The function invoked per property.
- * @returns {Object} Returns the new object.
- */
- function basePickBy(object, predicate) {
- var index = -1,
- props = getAllKeysIn(object),
- length = props.length,
- result = {};
-
- while (++index < length) {
- var key = props[index],
- value = object[key];
-
- if (predicate(value, key)) {
- result[key] = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
- }
-
- /**
- * A specialized version of `baseProperty` which supports deep paths.
- *
- * @private
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function basePropertyDeep(path) {
- return function(object) {
- return baseGet(object, path);
- };
- }
-
- /**
- * The base implementation of `_.pullAllBy` without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- */
- function basePullAll(array, values, iteratee, comparator) {
- var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
- index = -1,
- length = values.length,
- seen = array;
-
- if (array === values) {
- values = copyArray(values);
- }
- if (iteratee) {
- seen = arrayMap(array, baseUnary(iteratee));
- }
- while (++index < length) {
- var fromIndex = 0,
- value = values[index],
- computed = iteratee ? iteratee(value) : value;
-
- while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
- if (seen !== array) {
- splice.call(seen, fromIndex, 1);
- }
- splice.call(array, fromIndex, 1);
- }
- }
- return array;
- }
-
- /**
- * The base implementation of `_.pullAt` without support for individual
- * indexes or capturing the removed elements.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {number[]} indexes The indexes of elements to remove.
- * @returns {Array} Returns `array`.
- */
- function basePullAt(array, indexes) {
- var length = array ? indexes.length : 0,
- lastIndex = length - 1;
-
- while (length--) {
- var index = indexes[length];
- if (length == lastIndex || index !== previous) {
- var previous = index;
- if (isIndex(index)) {
- splice.call(array, index, 1);
- }
- else if (!isKey(index, array)) {
- var path = castPath(index),
- object = parent(array, path);
-
- if (object != null) {
- delete object[toKey(last(path))];
- }
- }
- else {
- delete array[toKey(index)];
- }
- }
- }
- return array;
- }
-
- /**
- * The base implementation of `_.random` without support for returning
- * floating-point numbers.
- *
- * @private
- * @param {number} lower The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the random number.
- */
- function baseRandom(lower, upper) {
- return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
- }
-
- /**
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
- * coerce arguments to numbers.
- *
- * @private
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @param {number} step The value to increment or decrement by.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the range of numbers.
- */
- function baseRange(start, end, step, fromRight) {
- var index = -1,
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
- result = Array(length);
-
- while (length--) {
- result[fromRight ? length : ++index] = start;
- start += step;
- }
- return result;
- }
-
- /**
- * The base implementation of `_.repeat` which doesn't coerce arguments.
- *
- * @private
- * @param {string} string The string to repeat.
- * @param {number} n The number of times to repeat the string.
- * @returns {string} Returns the repeated string.
- */
- function baseRepeat(string, n) {
- var result = '';
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
- return result;
- }
- // Leverage the exponentiation by squaring algorithm for a faster repeat.
- // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
- do {
- if (n % 2) {
- result += string;
- }
- n = nativeFloor(n / 2);
- if (n) {
- string += string;
- }
- } while (n);
-
- return result;
- }
-
- /**
- * The base implementation of `_.set`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
- function baseSet(object, path, value, customizer) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- nested = object;
-
- while (nested != null && ++index < length) {
- var key = toKey(path[index]);
- if (isObject(nested)) {
- var newValue = value;
- if (index != lastIndex) {
- var objValue = nested[key];
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
- if (newValue === undefined) {
- newValue = objValue == null
- ? (isIndex(path[index + 1]) ? [] : {})
- : objValue;
- }
- }
- assignValue(nested, key, newValue);
- }
- nested = nested[key];
- }
- return object;
- }
-
- /**
- * The base implementation of `setData` without support for hot loop detection.
- *
- * @private
- * @param {Function} func The function to associate metadata with.
- * @param {*} data The metadata.
- * @returns {Function} Returns `func`.
- */
- var baseSetData = !metaMap ? identity : function(func, data) {
- metaMap.set(func, data);
- return func;
- };
-
- /**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
-
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
-
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
- }
-
- /**
- * The base implementation of `_.some` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function baseSome(collection, predicate) {
- var result;
-
- baseEach(collection, function(value, index, collection) {
- result = predicate(value, index, collection);
- return !result;
- });
- return !!result;
- }
-
- /**
- * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
- * performs a binary search of `array` to determine the index at which `value`
- * should be inserted into `array` in order to maintain its sort order.
- *
- * @private
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- */
- function baseSortedIndex(array, value, retHighest) {
- var low = 0,
- high = array ? array.length : low;
-
- if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
- while (low < high) {
- var mid = (low + high) >>> 1,
- computed = array[mid];
-
- if (computed !== null && !isSymbol(computed) &&
- (retHighest ? (computed <= value) : (computed < value))) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return high;
- }
- return baseSortedIndexBy(array, value, identity, retHighest);
- }
-
- /**
- * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
- * which invokes `iteratee` for `value` and each element of `array` to compute
- * their sort ranking. The iteratee is invoked with one argument; (value).
- *
- * @private
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function} iteratee The iteratee invoked per element.
- * @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- */
- function baseSortedIndexBy(array, value, iteratee, retHighest) {
- value = iteratee(value);
-
- var low = 0,
- high = array ? array.length : 0,
- valIsNaN = value !== value,
- valIsNull = value === null,
- valIsSymbol = isSymbol(value),
- valIsUndefined = value === undefined;
-
- while (low < high) {
- var mid = nativeFloor((low + high) / 2),
- computed = iteratee(array[mid]),
- othIsDefined = computed !== undefined,
- othIsNull = computed === null,
- othIsReflexive = computed === computed,
- othIsSymbol = isSymbol(computed);
-
- if (valIsNaN) {
- var setLow = retHighest || othIsReflexive;
- } else if (valIsUndefined) {
- setLow = othIsReflexive && (retHighest || othIsDefined);
- } else if (valIsNull) {
- setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
- } else if (valIsSymbol) {
- setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
- } else if (othIsNull || othIsSymbol) {
- setLow = false;
- } else {
- setLow = retHighest ? (computed <= value) : (computed < value);
- }
- if (setLow) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return nativeMin(high, MAX_ARRAY_INDEX);
- }
-
- /**
- * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
- function baseSortedUniq(array, iteratee) {
- var index = -1,
- length = array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- if (!index || !eq(computed, seen)) {
- var seen = computed;
- result[resIndex++] = value === 0 ? 0 : value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.toNumber` which doesn't ensure correct
- * conversions of binary, hexadecimal, or octal string values.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- */
- function baseToNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- return +value;
- }
-
- /**
- * The base implementation of `_.toString` which doesn't convert nullish
- * values to empty strings.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- */
- function baseToString(value) {
- // Exit early for strings to avoid a performance hit in some environments.
- if (typeof value == 'string') {
- return value;
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
-
- /**
- * The base implementation of `_.uniqBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
- function baseUniq(array, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- length = array.length,
- isCommon = true,
- result = [],
- seen = result;
-
- if (comparator) {
- isCommon = false;
- includes = arrayIncludesWith;
- }
- else if (length >= LARGE_ARRAY_SIZE) {
- var set = iteratee ? null : createSet(array);
- if (set) {
- return setToArray(set);
- }
- isCommon = false;
- includes = cacheHas;
- seen = new SetCache;
- }
- else {
- seen = iteratee ? [] : result;
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var seenIndex = seen.length;
- while (seenIndex--) {
- if (seen[seenIndex] === computed) {
- continue outer;
- }
- }
- if (iteratee) {
- seen.push(computed);
- }
- result.push(value);
- }
- else if (!includes(seen, computed, comparator)) {
- if (seen !== result) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.unset`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- */
- function baseUnset(object, path) {
- path = isKey(path, object) ? [path] : castPath(path);
- object = parent(object, path);
-
- var key = toKey(last(path));
- return !(object != null && baseHas(object, key)) || delete object[key];
- }
-
- /**
- * The base implementation of `_.update`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to update.
- * @param {Function} updater The function to produce the updated value.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
- function baseUpdate(object, path, updater, customizer) {
- return baseSet(object, path, updater(baseGet(object, path)), customizer);
- }
-
- /**
- * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
- * without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {Function} predicate The function invoked per iteration.
- * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseWhile(array, predicate, isDrop, fromRight) {
- var length = array.length,
- index = fromRight ? length : -1;
-
- while ((fromRight ? index-- : ++index < length) &&
- predicate(array[index], index, array)) {}
-
- return isDrop
- ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
- : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
- }
-
- /**
- * The base implementation of `wrapperValue` which returns the result of
- * performing a sequence of actions on the unwrapped `value`, where each
- * successive action is supplied the return value of the previous.
- *
- * @private
- * @param {*} value The unwrapped value.
- * @param {Array} actions Actions to perform to resolve the unwrapped value.
- * @returns {*} Returns the resolved value.
- */
- function baseWrapperValue(value, actions) {
- var result = value;
- if (result instanceof LazyWrapper) {
- result = result.value();
- }
- return arrayReduce(actions, function(result, action) {
- return action.func.apply(action.thisArg, arrayPush([result], action.args));
- }, result);
- }
-
- /**
- * The base implementation of methods like `_.xor`, without support for
- * iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of values.
- */
- function baseXor(arrays, iteratee, comparator) {
- var index = -1,
- length = arrays.length;
-
- while (++index < length) {
- var result = result
- ? arrayPush(
- baseDifference(result, arrays[index], iteratee, comparator),
- baseDifference(arrays[index], result, iteratee, comparator)
- )
- : arrays[index];
- }
- return (result && result.length) ? baseUniq(result, iteratee, comparator) : [];
- }
-
- /**
- * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
- *
- * @private
- * @param {Array} props The property identifiers.
- * @param {Array} values The property values.
- * @param {Function} assignFunc The function to assign values.
- * @returns {Object} Returns the new object.
- */
- function baseZipObject(props, values, assignFunc) {
- var index = -1,
- length = props.length,
- valsLength = values.length,
- result = {};
-
- while (++index < length) {
- var value = index < valsLength ? values[index] : undefined;
- assignFunc(result, props[index], value);
- }
- return result;
- }
-
- /**
- * Casts `value` to an empty array if it's not an array like object.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array|Object} Returns the cast array-like object.
- */
- function castArrayLikeObject(value) {
- return isArrayLikeObject(value) ? value : [];
- }
-
- /**
- * Casts `value` to `identity` if it's not a function.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Function} Returns cast function.
- */
- function castFunction(value) {
- return typeof value == 'function' ? value : identity;
- }
-
- /**
- * Casts `value` to a path array if it's not one.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast property path array.
- */
- function castPath(value) {
- return isArray(value) ? value : stringToPath(value);
- }
-
- /**
- * Casts `array` to a slice if it's needed.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {number} start The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the cast slice.
- */
- function castSlice(array, start, end) {
- var length = array.length;
- end = end === undefined ? length : end;
- return (!start && end >= length) ? array : baseSlice(array, start, end);
- }
-
- /**
- * Creates a clone of `buffer`.
- *
- * @private
- * @param {Buffer} buffer The buffer to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Buffer} Returns the cloned buffer.
- */
- function cloneBuffer(buffer, isDeep) {
- if (isDeep) {
- return buffer.slice();
- }
- var result = new buffer.constructor(buffer.length);
- buffer.copy(result);
- return result;
- }
-
- /**
- * Creates a clone of `arrayBuffer`.
- *
- * @private
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
- * @returns {ArrayBuffer} Returns the cloned array buffer.
- */
- function cloneArrayBuffer(arrayBuffer) {
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
- return result;
- }
-
- /**
- * Creates a clone of `dataView`.
- *
- * @private
- * @param {Object} dataView The data view to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned data view.
- */
- function cloneDataView(dataView, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
- }
-
- /**
- * Creates a clone of `map`.
- *
- * @private
- * @param {Object} map The map to clone.
- * @param {Function} cloneFunc The function to clone values.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned map.
- */
- function cloneMap(map, isDeep, cloneFunc) {
- var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
- return arrayReduce(array, addMapEntry, new map.constructor);
- }
-
- /**
- * Creates a clone of `regexp`.
- *
- * @private
- * @param {Object} regexp The regexp to clone.
- * @returns {Object} Returns the cloned regexp.
- */
- function cloneRegExp(regexp) {
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
- result.lastIndex = regexp.lastIndex;
- return result;
- }
-
- /**
- * Creates a clone of `set`.
- *
- * @private
- * @param {Object} set The set to clone.
- * @param {Function} cloneFunc The function to clone values.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned set.
- */
- function cloneSet(set, isDeep, cloneFunc) {
- var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
- return arrayReduce(array, addSetEntry, new set.constructor);
- }
-
- /**
- * Creates a clone of the `symbol` object.
- *
- * @private
- * @param {Object} symbol The symbol object to clone.
- * @returns {Object} Returns the cloned symbol object.
- */
- function cloneSymbol(symbol) {
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
- }
-
- /**
- * Creates a clone of `typedArray`.
- *
- * @private
- * @param {Object} typedArray The typed array to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned typed array.
- */
- function cloneTypedArray(typedArray, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
- }
-
- /**
- * Compares values to sort them in ascending order.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {number} Returns the sort order indicator for `value`.
- */
- function compareAscending(value, other) {
- if (value !== other) {
- var valIsDefined = value !== undefined,
- valIsNull = value === null,
- valIsReflexive = value === value,
- valIsSymbol = isSymbol(value);
-
- var othIsDefined = other !== undefined,
- othIsNull = other === null,
- othIsReflexive = other === other,
- othIsSymbol = isSymbol(other);
-
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
- (valIsNull && othIsDefined && othIsReflexive) ||
- (!valIsDefined && othIsReflexive) ||
- !valIsReflexive) {
- return 1;
- }
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
- (othIsNull && valIsDefined && valIsReflexive) ||
- (!othIsDefined && valIsReflexive) ||
- !othIsReflexive) {
- return -1;
- }
- }
- return 0;
- }
-
- /**
- * Used by `_.orderBy` to compare multiple properties of a value to another
- * and stable sort them.
- *
- * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
- * specify an order of "desc" for descending or "asc" for ascending sort order
- * of corresponding values.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {boolean[]|string[]} orders The order to sort by for each property.
- * @returns {number} Returns the sort order indicator for `object`.
- */
- function compareMultiple(object, other, orders) {
- var index = -1,
- objCriteria = object.criteria,
- othCriteria = other.criteria,
- length = objCriteria.length,
- ordersLength = orders.length;
-
- while (++index < length) {
- var result = compareAscending(objCriteria[index], othCriteria[index]);
- if (result) {
- if (index >= ordersLength) {
- return result;
- }
- var order = orders[index];
- return result * (order == 'desc' ? -1 : 1);
- }
- }
- // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
- // that causes it, under certain circumstances, to provide the same value for
- // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
- // for more details.
- //
- // This also ensures a stable sort in V8 and other engines.
- // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
- return object.index - other.index;
- }
-
- /**
- * Creates an array that is the composition of partially applied arguments,
- * placeholders, and provided arguments into a single array of arguments.
- *
- * @private
- * @param {Array} args The provided arguments.
- * @param {Array} partials The arguments to prepend to those provided.
- * @param {Array} holders The `partials` placeholder indexes.
- * @params {boolean} [isCurried] Specify composing for a curried function.
- * @returns {Array} Returns the new array of composed arguments.
- */
- function composeArgs(args, partials, holders, isCurried) {
- var argsIndex = -1,
- argsLength = args.length,
- holdersLength = holders.length,
- leftIndex = -1,
- leftLength = partials.length,
- rangeLength = nativeMax(argsLength - holdersLength, 0),
- result = Array(leftLength + rangeLength),
- isUncurried = !isCurried;
-
- while (++leftIndex < leftLength) {
- result[leftIndex] = partials[leftIndex];
- }
- while (++argsIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result[holders[argsIndex]] = args[argsIndex];
- }
- }
- while (rangeLength--) {
- result[leftIndex++] = args[argsIndex++];
- }
- return result;
- }
-
- /**
- * This function is like `composeArgs` except that the arguments composition
- * is tailored for `_.partialRight`.
- *
- * @private
- * @param {Array} args The provided arguments.
- * @param {Array} partials The arguments to append to those provided.
- * @param {Array} holders The `partials` placeholder indexes.
- * @params {boolean} [isCurried] Specify composing for a curried function.
- * @returns {Array} Returns the new array of composed arguments.
- */
- function composeArgsRight(args, partials, holders, isCurried) {
- var argsIndex = -1,
- argsLength = args.length,
- holdersIndex = -1,
- holdersLength = holders.length,
- rightIndex = -1,
- rightLength = partials.length,
- rangeLength = nativeMax(argsLength - holdersLength, 0),
- result = Array(rangeLength + rightLength),
- isUncurried = !isCurried;
-
- while (++argsIndex < rangeLength) {
- result[argsIndex] = args[argsIndex];
- }
- var offset = argsIndex;
- while (++rightIndex < rightLength) {
- result[offset + rightIndex] = partials[rightIndex];
- }
- while (++holdersIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result[offset + holders[holdersIndex]] = args[argsIndex++];
- }
- }
- return result;
- }
-
- /**
- * Copies the values of `source` to `array`.
- *
- * @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
- */
- function copyArray(source, array) {
- var index = -1,
- length = source.length;
-
- array || (array = Array(length));
- while (++index < length) {
- array[index] = source[index];
- }
- return array;
- }
-
- /**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property identifiers to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
- function copyObject(source, props, object, customizer) {
- object || (object = {});
-
- var index = -1,
- length = props.length;
-
- while (++index < length) {
- var key = props[index];
-
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : source[key];
-
- assignValue(object, key, newValue);
- }
- return object;
- }
-
- /**
- * Copies own symbol properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
- function copySymbols(source, object) {
- return copyObject(source, getSymbols(source), object);
- }
-
- /**
- * Creates a function like `_.groupBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} [initializer] The accumulator object initializer.
- * @returns {Function} Returns the new aggregator function.
- */
- function createAggregator(setter, initializer) {
- return function(collection, iteratee) {
- var func = isArray(collection) ? arrayAggregator : baseAggregator,
- accumulator = initializer ? initializer() : {};
-
- return func(collection, setter, getIteratee(iteratee), accumulator);
- };
- }
-
- /**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
- function createAssigner(assigner) {
- return rest(function(object, sources) {
- var index = -1,
- length = sources.length,
- customizer = length > 1 ? sources[length - 1] : undefined,
- guard = length > 2 ? sources[2] : undefined;
-
- customizer = (assigner.length > 3 && typeof customizer == 'function')
- ? (length--, customizer)
- : undefined;
-
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- customizer = length < 3 ? undefined : customizer;
- length = 1;
- }
- object = Object(object);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object, source, index, customizer);
- }
- }
- return object;
- });
- }
-
- /**
- * Creates a `baseEach` or `baseEachRight` function.
- *
- * @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
-
- /**
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
-
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with the optional `this`
- * binding of `thisArg`.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createBaseWrapper(func, bitmask, thisArg) {
- var isBind = bitmask & BIND_FLAG,
- Ctor = createCtorWrapper(func);
-
- function wrapper() {
- var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
- return fn.apply(isBind ? thisArg : this, arguments);
- }
- return wrapper;
- }
-
- /**
- * Creates a function like `_.lowerFirst`.
- *
- * @private
- * @param {string} methodName The name of the `String` case method to use.
- * @returns {Function} Returns the new case function.
- */
- function createCaseFirst(methodName) {
- return function(string) {
- string = toString(string);
-
- var strSymbols = reHasComplexSymbol.test(string)
- ? stringToArray(string)
- : undefined;
-
- var chr = strSymbols
- ? strSymbols[0]
- : string.charAt(0);
-
- var trailing = strSymbols
- ? castSlice(strSymbols, 1).join('')
- : string.slice(1);
-
- return chr[methodName]() + trailing;
- };
- }
-
- /**
- * Creates a function like `_.camelCase`.
- *
- * @private
- * @param {Function} callback The function to combine each word.
- * @returns {Function} Returns the new compounder function.
- */
- function createCompounder(callback) {
- return function(string) {
- return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
- };
- }
-
- /**
- * Creates a function that produces an instance of `Ctor` regardless of
- * whether it was invoked as part of a `new` expression or by `call` or `apply`.
- *
- * @private
- * @param {Function} Ctor The constructor to wrap.
- * @returns {Function} Returns the new wrapped function.
- */
- function createCtorWrapper(Ctor) {
- return function() {
- // Use a `switch` statement to work with class constructors. See
- // http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
- // for more details.
- var args = arguments;
- switch (args.length) {
- case 0: return new Ctor;
- case 1: return new Ctor(args[0]);
- case 2: return new Ctor(args[0], args[1]);
- case 3: return new Ctor(args[0], args[1], args[2]);
- case 4: return new Ctor(args[0], args[1], args[2], args[3]);
- case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
- case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
- case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
- }
- var thisBinding = baseCreate(Ctor.prototype),
- result = Ctor.apply(thisBinding, args);
-
- // Mimic the constructor's `return` behavior.
- // See https://es5.github.io/#x13.2.2 for more details.
- return isObject(result) ? result : thisBinding;
- };
- }
-
- /**
- * Creates a function that wraps `func` to enable currying.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {number} arity The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createCurryWrapper(func, bitmask, arity) {
- var Ctor = createCtorWrapper(func);
-
- function wrapper() {
- var length = arguments.length,
- args = Array(length),
- index = length,
- placeholder = getHolder(wrapper);
-
- while (index--) {
- args[index] = arguments[index];
- }
- var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
- ? []
- : replaceHolders(args, placeholder);
-
- length -= holders.length;
- if (length < arity) {
- return createRecurryWrapper(
- func, bitmask, createHybridWrapper, wrapper.placeholder, undefined,
- args, holders, undefined, undefined, arity - length);
- }
- var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
- return apply(fn, this, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a `_.find` or `_.findLast` function.
- *
- * @private
- * @param {Function} findIndexFunc The function to find the collection index.
- * @returns {Function} Returns the new find function.
- */
- function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- predicate = getIteratee(predicate, 3);
- if (!isArrayLike(collection)) {
- var props = keys(collection);
- }
- var index = findIndexFunc(props || collection, function(value, key) {
- if (props) {
- key = value;
- value = iterable[key];
- }
- return predicate(value, key, iterable);
- }, fromIndex);
- return index > -1 ? collection[props ? props[index] : index] : undefined;
- };
- }
-
- /**
- * Creates a `_.flow` or `_.flowRight` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new flow function.
- */
- function createFlow(fromRight) {
- return rest(function(funcs) {
- funcs = baseFlatten(funcs, 1);
-
- var length = funcs.length,
- index = length,
- prereq = LodashWrapper.prototype.thru;
-
- if (fromRight) {
- funcs.reverse();
- }
- while (index--) {
- var func = funcs[index];
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
- var wrapper = new LodashWrapper([], true);
- }
- }
- index = wrapper ? index : length;
- while (++index < length) {
- func = funcs[index];
-
- var funcName = getFuncName(func),
- data = funcName == 'wrapper' ? getData(func) : undefined;
-
- if (data && isLaziable(data[0]) &&
- data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) &&
- !data[4].length && data[9] == 1
- ) {
- wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
- } else {
- wrapper = (func.length == 1 && isLaziable(func))
- ? wrapper[funcName]()
- : wrapper.thru(func);
- }
- }
- return function() {
- var args = arguments,
- value = args[0];
-
- if (wrapper && args.length == 1 &&
- isArray(value) && value.length >= LARGE_ARRAY_SIZE) {
- return wrapper.plant(value).value();
- }
- var index = 0,
- result = length ? funcs[index].apply(this, args) : value;
-
- while (++index < length) {
- result = funcs[index].call(this, result);
- }
- return result;
- };
- });
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with optional `this`
- * binding of `thisArg`, partial application, and currying.
- *
- * @private
- * @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to
- * the new function.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [partialsRight] The arguments to append to those provided
- * to the new function.
- * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
- var isAry = bitmask & ARY_FLAG,
- isBind = bitmask & BIND_FLAG,
- isBindKey = bitmask & BIND_KEY_FLAG,
- isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG),
- isFlip = bitmask & FLIP_FLAG,
- Ctor = isBindKey ? undefined : createCtorWrapper(func);
-
- function wrapper() {
- var length = arguments.length,
- args = Array(length),
- index = length;
-
- while (index--) {
- args[index] = arguments[index];
- }
- if (isCurried) {
- var placeholder = getHolder(wrapper),
- holdersCount = countHolders(args, placeholder);
- }
- if (partials) {
- args = composeArgs(args, partials, holders, isCurried);
- }
- if (partialsRight) {
- args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
- }
- length -= holdersCount;
- if (isCurried && length < arity) {
- var newHolders = replaceHolders(args, placeholder);
- return createRecurryWrapper(
- func, bitmask, createHybridWrapper, wrapper.placeholder, thisArg,
- args, newHolders, argPos, ary, arity - length
- );
- }
- var thisBinding = isBind ? thisArg : this,
- fn = isBindKey ? thisBinding[func] : func;
-
- length = args.length;
- if (argPos) {
- args = reorder(args, argPos);
- } else if (isFlip && length > 1) {
- args.reverse();
- }
- if (isAry && ary < length) {
- args.length = ary;
- }
- if (this && this !== root && this instanceof wrapper) {
- fn = Ctor || createCtorWrapper(fn);
- }
- return fn.apply(thisBinding, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a function like `_.invertBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} toIteratee The function to resolve iteratees.
- * @returns {Function} Returns the new inverter function.
- */
- function createInverter(setter, toIteratee) {
- return function(object, iteratee) {
- return baseInverter(object, setter, toIteratee(iteratee), {});
- };
- }
-
- /**
- * Creates a function that performs a mathematical operation on two values.
- *
- * @private
- * @param {Function} operator The function to perform the operation.
- * @returns {Function} Returns the new mathematical operation function.
- */
- function createMathOperation(operator) {
- return function(value, other) {
- var result;
- if (value === undefined && other === undefined) {
- return 0;
- }
- if (value !== undefined) {
- result = value;
- }
- if (other !== undefined) {
- if (result === undefined) {
- return other;
- }
- if (typeof value == 'string' || typeof other == 'string') {
- value = baseToString(value);
- other = baseToString(other);
- } else {
- value = baseToNumber(value);
- other = baseToNumber(other);
- }
- result = operator(value, other);
- }
- return result;
- };
- }
-
- /**
- * Creates a function like `_.over`.
- *
- * @private
- * @param {Function} arrayFunc The function to iterate over iteratees.
- * @returns {Function} Returns the new over function.
- */
- function createOver(arrayFunc) {
- return rest(function(iteratees) {
- iteratees = (iteratees.length == 1 && isArray(iteratees[0]))
- ? arrayMap(iteratees[0], baseUnary(getIteratee()))
- : arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseUnary(getIteratee()));
-
- return rest(function(args) {
- var thisArg = this;
- return arrayFunc(iteratees, function(iteratee) {
- return apply(iteratee, thisArg, args);
- });
- });
- });
- }
-
- /**
- * Creates the padding for `string` based on `length`. The `chars` string
- * is truncated if the number of characters exceeds `length`.
- *
- * @private
- * @param {number} length The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padding for `string`.
- */
- function createPadding(length, chars) {
- chars = chars === undefined ? ' ' : baseToString(chars);
-
- var charsLength = chars.length;
- if (charsLength < 2) {
- return charsLength ? baseRepeat(chars, length) : chars;
- }
- var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
- return reHasComplexSymbol.test(chars)
- ? castSlice(stringToArray(result), 0, length).join('')
- : result.slice(0, length);
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with the `this` binding
- * of `thisArg` and `partials` prepended to the arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to
- * the new function.
- * @returns {Function} Returns the new wrapped function.
- */
- function createPartialWrapper(func, bitmask, thisArg, partials) {
- var isBind = bitmask & BIND_FLAG,
- Ctor = createCtorWrapper(func);
-
- function wrapper() {
- var argsIndex = -1,
- argsLength = arguments.length,
- leftIndex = -1,
- leftLength = partials.length,
- args = Array(leftLength + argsLength),
- fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-
- while (++leftIndex < leftLength) {
- args[leftIndex] = partials[leftIndex];
- }
- while (argsLength--) {
- args[leftIndex++] = arguments[++argsIndex];
- }
- return apply(fn, isBind ? thisArg : this, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a `_.range` or `_.rangeRight` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new range function.
- */
- function createRange(fromRight) {
- return function(start, end, step) {
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
- end = step = undefined;
- }
- // Ensure the sign of `-0` is preserved.
- start = toNumber(start);
- start = start === start ? start : 0;
- if (end === undefined) {
- end = start;
- start = 0;
- } else {
- end = toNumber(end) || 0;
- }
- step = step === undefined ? (start < end ? 1 : -1) : (toNumber(step) || 0);
- return baseRange(start, end, step, fromRight);
- };
- }
-
- /**
- * Creates a function that performs a relational operation on two values.
- *
- * @private
- * @param {Function} operator The function to perform the operation.
- * @returns {Function} Returns the new relational operation function.
- */
- function createRelationalOperation(operator) {
- return function(value, other) {
- if (!(typeof value == 'string' && typeof other == 'string')) {
- value = toNumber(value);
- other = toNumber(other);
- }
- return operator(value, other);
- };
- }
-
- /**
- * Creates a function that wraps `func` to continue currying.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {Function} wrapFunc The function to create the `func` wrapper.
- * @param {*} placeholder The placeholder value.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to
- * the new function.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createRecurryWrapper(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
- var isCurry = bitmask & CURRY_FLAG,
- newHolders = isCurry ? holders : undefined,
- newHoldersRight = isCurry ? undefined : holders,
- newPartials = isCurry ? partials : undefined,
- newPartialsRight = isCurry ? undefined : partials;
-
- bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG);
- bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG);
-
- if (!(bitmask & CURRY_BOUND_FLAG)) {
- bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
- }
- var newData = [
- func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
- newHoldersRight, argPos, ary, arity
- ];
-
- var result = wrapFunc.apply(undefined, newData);
- if (isLaziable(func)) {
- setData(result, newData);
- }
- result.placeholder = placeholder;
- return result;
- }
-
- /**
- * Creates a function like `_.round`.
- *
- * @private
- * @param {string} methodName The name of the `Math` method to use when rounding.
- * @returns {Function} Returns the new round function.
- */
- function createRound(methodName) {
- var func = Math[methodName];
- return function(number, precision) {
- number = toNumber(number);
- precision = nativeMin(toInteger(precision), 292);
- if (precision) {
- // Shift with exponential notation to avoid floating-point issues.
- // See [MDN](https://mdn.io/round#Examples) for more details.
- var pair = (toString(number) + 'e').split('e'),
- value = func(pair[0] + 'e' + (+pair[1] + precision));
-
- pair = (toString(value) + 'e').split('e');
- return +(pair[0] + 'e' + (+pair[1] - precision));
- }
- return func(number);
- };
- }
-
- /**
- * Creates a set of `values`.
- *
- * @private
- * @param {Array} values The values to add to the set.
- * @returns {Object} Returns the new set.
- */
- var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
- return new Set(values);
- };
-
- /**
- * Creates a `_.toPairs` or `_.toPairsIn` function.
- *
- * @private
- * @param {Function} keysFunc The function to get the keys of a given object.
- * @returns {Function} Returns the new pairs function.
- */
- function createToPairs(keysFunc) {
- return function(object) {
- var tag = getTag(object);
- if (tag == mapTag) {
- return mapToArray(object);
- }
- if (tag == setTag) {
- return setToPairs(object);
- }
- return baseToPairs(object, keysFunc(object));
- };
- }
-
- /**
- * Creates a function that either curries or invokes `func` with optional
- * `this` binding and partially applied arguments.
- *
- * @private
- * @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask of wrapper flags.
- * The bitmask may be composed of the following flags:
- * 1 - `_.bind`
- * 2 - `_.bindKey`
- * 4 - `_.curry` or `_.curryRight` of a bound function
- * 8 - `_.curry`
- * 16 - `_.curryRight`
- * 32 - `_.partial`
- * 64 - `_.partialRight`
- * 128 - `_.rearg`
- * 256 - `_.ary`
- * 512 - `_.flip`
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to be partially applied.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
- var isBindKey = bitmask & BIND_KEY_FLAG;
- if (!isBindKey && typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var length = partials ? partials.length : 0;
- if (!length) {
- bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG);
- partials = holders = undefined;
- }
- ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
- arity = arity === undefined ? arity : toInteger(arity);
- length -= holders ? holders.length : 0;
-
- if (bitmask & PARTIAL_RIGHT_FLAG) {
- var partialsRight = partials,
- holdersRight = holders;
-
- partials = holders = undefined;
- }
- var data = isBindKey ? undefined : getData(func);
-
- var newData = [
- func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
- argPos, ary, arity
- ];
-
- if (data) {
- mergeData(newData, data);
- }
- func = newData[0];
- bitmask = newData[1];
- thisArg = newData[2];
- partials = newData[3];
- holders = newData[4];
- arity = newData[9] = newData[9] == null
- ? (isBindKey ? 0 : func.length)
- : nativeMax(newData[9] - length, 0);
-
- if (!arity && bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG)) {
- bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG);
- }
- if (!bitmask || bitmask == BIND_FLAG) {
- var result = createBaseWrapper(func, bitmask, thisArg);
- } else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) {
- result = createCurryWrapper(func, bitmask, arity);
- } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) {
- result = createPartialWrapper(func, bitmask, thisArg, partials);
- } else {
- result = createHybridWrapper.apply(undefined, newData);
- }
- var setter = data ? baseSetData : setData;
- return setter(result, newData);
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for arrays with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Array} array The array to compare.
- * @param {Array} other The other array to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `array` and `other` objects.
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
- */
- function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
- arrLength = array.length,
- othLength = other.length;
-
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(array);
- if (stacked) {
- return stacked == other;
- }
- var index = -1,
- result = true,
- seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined;
-
- stack.set(array, other);
-
- // Ignore non-index properties.
- while (++index < arrLength) {
- var arrValue = array[index],
- othValue = other[index];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, arrValue, index, other, array, stack)
- : customizer(arrValue, othValue, index, array, other, stack);
- }
- if (compared !== undefined) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
- // Recursively compare arrays (susceptible to call stack limits).
- if (seen) {
- if (!arraySome(other, function(othValue, othIndex) {
- if (!seen.has(othIndex) &&
- (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
- return seen.add(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(
- arrValue === othValue ||
- equalFunc(arrValue, othValue, customizer, bitmask, stack)
- )) {
- result = false;
- break;
- }
- }
- stack['delete'](array);
- return result;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
- switch (tag) {
- case dataViewTag:
- if ((object.byteLength != other.byteLength) ||
- (object.byteOffset != other.byteOffset)) {
- return false;
- }
- object = object.buffer;
- other = other.buffer;
-
- case arrayBufferTag:
- if ((object.byteLength != other.byteLength) ||
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
- return false;
- }
- return true;
-
- case boolTag:
- case dateTag:
- // Coerce dates and booleans to numbers, dates to milliseconds and
- // booleans to `1` or `0` treating invalid dates coerced to `NaN` as
- // not equal.
- return +object == +other;
-
- case errorTag:
- return object.name == other.name && object.message == other.message;
-
- case numberTag:
- // Treat `NaN` vs. `NaN` as equal.
- return (object != +object) ? other != +other : object == +other;
-
- case regexpTag:
- case stringTag:
- // Coerce regexes to strings and treat strings, primitives and objects,
- // as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
- // for more details.
- return object == (other + '');
-
- case mapTag:
- var convert = mapToArray;
-
- case setTag:
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
- convert || (convert = setToArray);
-
- if (object.size != other.size && !isPartial) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= UNORDERED_COMPARE_FLAG;
- stack.set(object, other);
-
- // Recursively compare objects (susceptible to call stack limits).
- return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
-
- case symbolTag:
- if (symbolValueOf) {
- return symbolValueOf.call(object) == symbolValueOf.call(other);
- }
- }
- return false;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
- objProps = keys(object),
- objLength = objProps.length,
- othProps = keys(other),
- othLength = othProps.length;
-
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : baseHas(other, key))) {
- return false;
- }
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- var result = true;
- stack.set(object, other);
-
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, objValue, key, other, object, stack)
- : customizer(objValue, othValue, key, object, other, stack);
- }
- // Recursively compare objects (susceptible to call stack limits).
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
-
- // Non `Object` object instances with different constructors are not equal.
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- stack['delete'](object);
- return result;
- }
-
- /**
- * Creates an array of own enumerable property names and symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function getAllKeys(object) {
- return baseGetAllKeys(object, keys, getSymbols);
- }
-
- /**
- * Creates an array of own and inherited enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function getAllKeysIn(object) {
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
- }
-
- /**
- * Gets metadata for `func`.
- *
- * @private
- * @param {Function} func The function to query.
- * @returns {*} Returns the metadata for `func`.
- */
- var getData = !metaMap ? noop : function(func) {
- return metaMap.get(func);
- };
-
- /**
- * Gets the name of `func`.
- *
- * @private
- * @param {Function} func The function to query.
- * @returns {string} Returns the function name.
- */
- function getFuncName(func) {
- var result = (func.name + ''),
- array = realNames[result],
- length = hasOwnProperty.call(realNames, result) ? array.length : 0;
-
- while (length--) {
- var data = array[length],
- otherFunc = data.func;
- if (otherFunc == null || otherFunc == func) {
- return data.name;
- }
- }
- return result;
- }
-
- /**
- * Gets the argument placeholder value for `func`.
- *
- * @private
- * @param {Function} func The function to inspect.
- * @returns {*} Returns the placeholder value.
- */
- function getHolder(func) {
- var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
- return object.placeholder;
- }
-
- /**
- * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
- * this function returns the custom method, otherwise it returns `baseIteratee`.
- * If arguments are provided, the chosen function is invoked with them and
- * its result is returned.
- *
- * @private
- * @param {*} [value] The value to convert to an iteratee.
- * @param {number} [arity] The arity of the created iteratee.
- * @returns {Function} Returns the chosen function or its result.
- */
- function getIteratee() {
- var result = lodash.iteratee || iteratee;
- result = result === iteratee ? baseIteratee : result;
- return arguments.length ? result(arguments[0], arguments[1]) : result;
- }
-
- /**
- * Gets the "length" property value of `object`.
- *
- * **Note:** This function is used to avoid a
- * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
- * Safari on at least iOS 8.1-8.3 ARM64.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {*} Returns the "length" value.
- */
- var getLength = baseProperty('length');
-
- /**
- * Gets the data for `map`.
- *
- * @private
- * @param {Object} map The map to query.
- * @param {string} key The reference key.
- * @returns {*} Returns the map data.
- */
- function getMapData(map, key) {
- var data = map.__data__;
- return isKeyable(key)
- ? data[typeof key == 'string' ? 'string' : 'hash']
- : data.map;
- }
-
- /**
- * Gets the property names, values, and compare flags of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the match data of `object`.
- */
- function getMatchData(object) {
- var result = keys(object),
- length = result.length;
-
- while (length--) {
- var key = result[length],
- value = object[key];
-
- result[length] = [key, value, isStrictComparable(value)];
- }
- return result;
- }
-
- /**
- * Gets the native function at `key` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the method to get.
- * @returns {*} Returns the function if it's native, else `undefined`.
- */
- function getNative(object, key) {
- var value = getValue(object, key);
- return baseIsNative(value) ? value : undefined;
- }
-
- /**
- * Gets the `[[Prototype]]` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {null|Object} Returns the `[[Prototype]]`.
- */
- function getPrototype(value) {
- return nativeGetPrototype(Object(value));
- }
-
- /**
- * Creates an array of the own enumerable symbol properties of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
- function getSymbols(object) {
- // Coerce `object` to an object to avoid non-object errors in V8.
- // See https://bugs.chromium.org/p/v8/issues/detail?id=3443 for more details.
- return getOwnPropertySymbols(Object(object));
- }
-
- // Fallback for IE < 11.
- if (!getOwnPropertySymbols) {
- getSymbols = stubArray;
- }
-
- /**
- * Creates an array of the own and inherited enumerable symbol properties
- * of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
- var getSymbolsIn = !getOwnPropertySymbols ? getSymbols : function(object) {
- var result = [];
- while (object) {
- arrayPush(result, getSymbols(object));
- object = getPrototype(object);
- }
- return result;
- };
-
- /**
- * Gets the `toStringTag` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
- function getTag(value) {
- return objectToString.call(value);
- }
-
- // Fallback for data views, maps, sets, and weak maps in IE 11,
- // for data views in Edge, and promises in Node.js.
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
- (Map && getTag(new Map) != mapTag) ||
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
- (Set && getTag(new Set) != setTag) ||
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
- getTag = function(value) {
- var result = objectToString.call(value),
- Ctor = result == objectTag ? value.constructor : undefined,
- ctorString = Ctor ? toSource(Ctor) : undefined;
-
- if (ctorString) {
- switch (ctorString) {
- case dataViewCtorString: return dataViewTag;
- case mapCtorString: return mapTag;
- case promiseCtorString: return promiseTag;
- case setCtorString: return setTag;
- case weakMapCtorString: return weakMapTag;
- }
- }
- return result;
- };
- }
-
- /**
- * Gets the view, applying any `transforms` to the `start` and `end` positions.
- *
- * @private
- * @param {number} start The start of the view.
- * @param {number} end The end of the view.
- * @param {Array} transforms The transformations to apply to the view.
- * @returns {Object} Returns an object containing the `start` and `end`
- * positions of the view.
- */
- function getView(start, end, transforms) {
- var index = -1,
- length = transforms.length;
-
- while (++index < length) {
- var data = transforms[index],
- size = data.size;
-
- switch (data.type) {
- case 'drop': start += size; break;
- case 'dropRight': end -= size; break;
- case 'take': end = nativeMin(end, start + size); break;
- case 'takeRight': start = nativeMax(start, end - size); break;
- }
- }
- return { 'start': start, 'end': end };
- }
-
- /**
- * Checks if `path` exists on `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @param {Function} hasFunc The function to check properties.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- */
- function hasPath(object, path, hasFunc) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var result,
- index = -1,
- length = path.length;
-
- while (++index < length) {
- var key = toKey(path[index]);
- if (!(result = object != null && hasFunc(object, key))) {
- break;
- }
- object = object[key];
- }
- if (result) {
- return result;
- }
- var length = object ? object.length : 0;
- return !!length && isLength(length) && isIndex(key, length) &&
- (isArray(object) || isString(object) || isArguments(object));
- }
-
- /**
- * Initializes an array clone.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the initialized clone.
- */
- function initCloneArray(array) {
- var length = array.length,
- result = array.constructor(length);
-
- // Add properties assigned by `RegExp#exec`.
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
- result.index = array.index;
- result.input = array.input;
- }
- return result;
- }
-
- /**
- * Initializes an object clone.
- *
- * @private
- * @param {Object} object The object to clone.
- * @returns {Object} Returns the initialized clone.
- */
- function initCloneObject(object) {
- return (typeof object.constructor == 'function' && !isPrototype(object))
- ? baseCreate(getPrototype(object))
- : {};
- }
-
- /**
- * Initializes an object clone based on its `toStringTag`.
- *
- * **Note:** This function only supports cloning values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {string} tag The `toStringTag` of the object to clone.
- * @param {Function} cloneFunc The function to clone values.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the initialized clone.
- */
- function initCloneByTag(object, tag, cloneFunc, isDeep) {
- var Ctor = object.constructor;
- switch (tag) {
- case arrayBufferTag:
- return cloneArrayBuffer(object);
-
- case boolTag:
- case dateTag:
- return new Ctor(+object);
-
- case dataViewTag:
- return cloneDataView(object, isDeep);
-
- case float32Tag: case float64Tag:
- case int8Tag: case int16Tag: case int32Tag:
- case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
- return cloneTypedArray(object, isDeep);
-
- case mapTag:
- return cloneMap(object, isDeep, cloneFunc);
-
- case numberTag:
- case stringTag:
- return new Ctor(object);
-
- case regexpTag:
- return cloneRegExp(object);
-
- case setTag:
- return cloneSet(object, isDeep, cloneFunc);
-
- case symbolTag:
- return cloneSymbol(object);
- }
- }
-
- /**
- * Creates an array of index keys for `object` values of arrays,
- * `arguments` objects, and strings, otherwise `null` is returned.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array|null} Returns index keys, else `null`.
- */
- function indexKeys(object) {
- var length = object ? object.length : undefined;
- if (isLength(length) &&
- (isArray(object) || isString(object) || isArguments(object))) {
- return baseTimes(length, String);
- }
- return null;
- }
-
- /**
- * Checks if `value` is a flattenable `arguments` object or array.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
- function isFlattenable(value) {
- return isArray(value) || isArguments(value);
- }
-
- /**
- * Checks if `value` is a flattenable array and not a `_.matchesProperty`
- * iteratee shorthand.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
- function isFlattenableIteratee(value) {
- return isArray(value) && !(value.length == 2 && !isFunction(value[0]));
- }
-
- /**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
- function isIndex(value, length) {
- length = length == null ? MAX_SAFE_INTEGER : length;
- return !!length &&
- (typeof value == 'number' || reIsUint.test(value)) &&
- (value > -1 && value % 1 == 0 && value < length);
- }
-
- /**
- * Checks if the given arguments are from an iteratee call.
- *
- * @private
- * @param {*} value The potential iteratee value argument.
- * @param {*} index The potential iteratee index or key argument.
- * @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
- * else `false`.
- */
- function isIterateeCall(value, index, object) {
- if (!isObject(object)) {
- return false;
- }
- var type = typeof index;
- if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)
- ) {
- return eq(object[index], value);
- }
- return false;
- }
-
- /**
- * Checks if `value` is a property name and not a property path.
- *
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
- */
- function isKey(value, object) {
- if (isArray(value)) {
- return false;
- }
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
- }
-
- /**
- * Checks if `value` is suitable for use as unique object key.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
- */
- function isKeyable(value) {
- var type = typeof value;
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
- ? (value !== '__proto__')
- : (value === null);
- }
-
- /**
- * Checks if `func` has a lazy counterpart.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
- * else `false`.
- */
- function isLaziable(func) {
- var funcName = getFuncName(func),
- other = lodash[funcName];
-
- if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
- return false;
- }
- if (func === other) {
- return true;
- }
- var data = getData(other);
- return !!data && func === data[0];
- }
-
- /**
- * Checks if `func` has its source masked.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
- */
- function isMasked(func) {
- return !!maskSrcKey && (maskSrcKey in func);
- }
-
- /**
- * Checks if `func` is capable of being masked.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
- */
- var isMaskable = coreJsData ? isFunction : stubFalse;
-
- /**
- * Checks if `value` is likely a prototype object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
- */
- function isPrototype(value) {
- var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
- return value === proto;
- }
-
- /**
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` if suitable for strict
- * equality comparisons, else `false`.
- */
- function isStrictComparable(value) {
- return value === value && !isObject(value);
- }
-
- /**
- * A specialized version of `matchesProperty` for source values suitable
- * for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function matchesStrictComparable(key, srcValue) {
- return function(object) {
- if (object == null) {
- return false;
- }
- return object[key] === srcValue &&
- (srcValue !== undefined || (key in Object(object)));
- };
- }
-
- /**
- * Merges the function metadata of `source` into `data`.
- *
- * Merging metadata reduces the number of wrappers used to invoke a function.
- * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
- * may be applied regardless of execution order. Methods like `_.ary` and
- * `_.rearg` modify function arguments, making the order in which they are
- * executed important, preventing the merging of metadata. However, we make
- * an exception for a safe combined case where curried functions have `_.ary`
- * and or `_.rearg` applied.
- *
- * @private
- * @param {Array} data The destination metadata.
- * @param {Array} source The source metadata.
- * @returns {Array} Returns `data`.
- */
- function mergeData(data, source) {
- var bitmask = data[1],
- srcBitmask = source[1],
- newBitmask = bitmask | srcBitmask,
- isCommon = newBitmask < (BIND_FLAG | BIND_KEY_FLAG | ARY_FLAG);
-
- var isCombo =
- ((srcBitmask == ARY_FLAG) && (bitmask == CURRY_FLAG)) ||
- ((srcBitmask == ARY_FLAG) && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) ||
- ((srcBitmask == (ARY_FLAG | REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG));
-
- // Exit early if metadata can't be merged.
- if (!(isCommon || isCombo)) {
- return data;
- }
- // Use source `thisArg` if available.
- if (srcBitmask & BIND_FLAG) {
- data[2] = source[2];
- // Set when currying a bound function.
- newBitmask |= bitmask & BIND_FLAG ? 0 : CURRY_BOUND_FLAG;
- }
- // Compose partial arguments.
- var value = source[3];
- if (value) {
- var partials = data[3];
- data[3] = partials ? composeArgs(partials, value, source[4]) : value;
- data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
- }
- // Compose partial right arguments.
- value = source[5];
- if (value) {
- partials = data[5];
- data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
- data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
- }
- // Use source `argPos` if available.
- value = source[7];
- if (value) {
- data[7] = value;
- }
- // Use source `ary` if it's smaller.
- if (srcBitmask & ARY_FLAG) {
- data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
- }
- // Use source `arity` if one is not provided.
- if (data[9] == null) {
- data[9] = source[9];
- }
- // Use source `func` and merge bitmasks.
- data[0] = source[0];
- data[1] = newBitmask;
-
- return data;
- }
-
- /**
- * Used by `_.defaultsDeep` to customize its `_.merge` use.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to merge.
- * @param {Object} object The parent object of `objValue`.
- * @param {Object} source The parent object of `srcValue`.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- * @returns {*} Returns the value to assign.
- */
- function mergeDefaults(objValue, srcValue, key, object, source, stack) {
- if (isObject(objValue) && isObject(srcValue)) {
- baseMerge(objValue, srcValue, undefined, mergeDefaults, stack.set(srcValue, objValue));
- }
- return objValue;
- }
-
- /**
- * Gets the parent value at `path` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} path The path to get the parent value of.
- * @returns {*} Returns the parent value.
- */
- function parent(object, path) {
- return path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
- }
-
- /**
- * Reorder `array` according to the specified indexes where the element at
- * the first index is assigned as the first element, the element at
- * the second index is assigned as the second element, and so on.
- *
- * @private
- * @param {Array} array The array to reorder.
- * @param {Array} indexes The arranged array indexes.
- * @returns {Array} Returns `array`.
- */
- function reorder(array, indexes) {
- var arrLength = array.length,
- length = nativeMin(indexes.length, arrLength),
- oldArray = copyArray(array);
-
- while (length--) {
- var index = indexes[length];
- array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
- }
- return array;
- }
-
- /**
- * Sets metadata for `func`.
- *
- * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
- * period of time, it will trip its breaker and transition to an identity
- * function to avoid garbage collection pauses in V8. See
- * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
- * for more details.
- *
- * @private
- * @param {Function} func The function to associate metadata with.
- * @param {*} data The metadata.
- * @returns {Function} Returns `func`.
- */
- var setData = (function() {
- var count = 0,
- lastCalled = 0;
-
- return function(key, value) {
- var stamp = now(),
- remaining = HOT_SPAN - (stamp - lastCalled);
-
- lastCalled = stamp;
- if (remaining > 0) {
- if (++count >= HOT_COUNT) {
- return key;
- }
- } else {
- count = 0;
- }
- return baseSetData(key, value);
- };
- }());
-
- /**
- * Converts `string` to a property path array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
- */
- var stringToPath = memoize(function(string) {
- var result = [];
- toString(string).replace(rePropName, function(match, number, quote, string) {
- result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
- });
-
- /**
- * Converts `value` to a string key if it's not a string or symbol.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {string|symbol} Returns the key.
- */
- function toKey(value) {
- if (typeof value == 'string' || isSymbol(value)) {
- return value;
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
-
- /**
- * Converts `func` to its source code.
- *
- * @private
- * @param {Function} func The function to process.
- * @returns {string} Returns the source code.
- */
- function toSource(func) {
- if (func != null) {
- try {
- return funcToString.call(func);
- } catch (e) {}
- try {
- return (func + '');
- } catch (e) {}
- }
- return '';
- }
-
- /**
- * Creates a clone of `wrapper`.
- *
- * @private
- * @param {Object} wrapper The wrapper to clone.
- * @returns {Object} Returns the cloned wrapper.
- */
- function wrapperClone(wrapper) {
- if (wrapper instanceof LazyWrapper) {
- return wrapper.clone();
- }
- var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
- result.__actions__ = copyArray(wrapper.__actions__);
- result.__index__ = wrapper.__index__;
- result.__values__ = wrapper.__values__;
- return result;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an array of elements split into groups the length of `size`.
- * If `array` can't be split evenly, the final chunk will be the remaining
- * elements.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to process.
- * @param {number} [size=1] The length of each chunk
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the new array of chunks.
- * @example
- *
- * _.chunk(['a', 'b', 'c', 'd'], 2);
- * // => [['a', 'b'], ['c', 'd']]
- *
- * _.chunk(['a', 'b', 'c', 'd'], 3);
- * // => [['a', 'b', 'c'], ['d']]
- */
- function chunk(array, size, guard) {
- if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
- size = 1;
- } else {
- size = nativeMax(toInteger(size), 0);
- }
- var length = array ? array.length : 0;
- if (!length || size < 1) {
- return [];
- }
- var index = 0,
- resIndex = 0,
- result = Array(nativeCeil(length / size));
-
- while (index < length) {
- result[resIndex++] = baseSlice(array, index, (index += size));
- }
- return result;
- }
-
- /**
- * Creates an array with all falsey values removed. The values `false`, `null`,
- * `0`, `""`, `undefined`, and `NaN` are falsey.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to compact.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.compact([0, 1, false, 2, '', 3]);
- * // => [1, 2, 3]
- */
- function compact(array) {
- var index = -1,
- length = array ? array.length : 0,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (value) {
- result[resIndex++] = value;
- }
- }
- return result;
- }
-
- /**
- * Creates a new array concatenating `array` with any additional arrays
- * and/or values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to concatenate.
- * @param {...*} [values] The values to concatenate.
- * @returns {Array} Returns the new concatenated array.
- * @example
- *
- * var array = [1];
- * var other = _.concat(array, 2, [3], [[4]]);
- *
- * console.log(other);
- * // => [1, 2, 3, [4]]
- *
- * console.log(array);
- * // => [1]
- */
- function concat() {
- var length = arguments.length,
- args = Array(length ? length - 1 : 0),
- array = arguments[0],
- index = length;
-
- while (index--) {
- args[index - 1] = arguments[index];
- }
- return length
- ? arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1))
- : [];
- }
-
- /**
- * Creates an array of unique `array` values not included in the other given
- * arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. The order of result values is determined by the
- * order they occur in the first array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.without, _.xor
- * @example
- *
- * _.difference([2, 1], [2, 3]);
- * // => [1]
- */
- var difference = rest(function(array, values) {
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
- : [];
- });
-
- /**
- * This method is like `_.difference` except that it accepts `iteratee` which
- * is invoked for each element of `array` and `values` to generate the criterion
- * by which they're compared. Result values are chosen from the first array.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
- var differenceBy = rest(function(array, values) {
- var iteratee = last(values);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee))
- : [];
- });
-
- /**
- * This method is like `_.difference` except that it accepts `comparator`
- * which is invoked to compare elements of `array` to `values`. Result values
- * are chosen from the first array. The comparator is invoked with two arguments:
- * (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- *
- * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }]
- */
- var differenceWith = rest(function(array, values) {
- var comparator = last(values);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
- : [];
- });
-
- /**
- * Creates a slice of `array` with `n` elements dropped from the beginning.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.drop([1, 2, 3]);
- * // => [2, 3]
- *
- * _.drop([1, 2, 3], 2);
- * // => [3]
- *
- * _.drop([1, 2, 3], 5);
- * // => []
- *
- * _.drop([1, 2, 3], 0);
- * // => [1, 2, 3]
- */
- function drop(array, n, guard) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- return baseSlice(array, n < 0 ? 0 : n, length);
- }
-
- /**
- * Creates a slice of `array` with `n` elements dropped from the end.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.dropRight([1, 2, 3]);
- * // => [1, 2]
- *
- * _.dropRight([1, 2, 3], 2);
- * // => [1]
- *
- * _.dropRight([1, 2, 3], 5);
- * // => []
- *
- * _.dropRight([1, 2, 3], 0);
- * // => [1, 2, 3]
- */
- function dropRight(array, n, guard) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- n = length - n;
- return baseSlice(array, 0, n < 0 ? 0 : n);
- }
-
- /**
- * Creates a slice of `array` excluding elements dropped from the end.
- * Elements are dropped until `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.dropRightWhile(users, function(o) { return !o.active; });
- * // => objects for ['barney']
- *
- * // The `_.matches` iteratee shorthand.
- * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
- * // => objects for ['barney', 'fred']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.dropRightWhile(users, ['active', false]);
- * // => objects for ['barney']
- *
- * // The `_.property` iteratee shorthand.
- * _.dropRightWhile(users, 'active');
- * // => objects for ['barney', 'fred', 'pebbles']
- */
- function dropRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), true, true)
- : [];
- }
-
- /**
- * Creates a slice of `array` excluding elements dropped from the beginning.
- * Elements are dropped until `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.dropWhile(users, function(o) { return !o.active; });
- * // => objects for ['pebbles']
- *
- * // The `_.matches` iteratee shorthand.
- * _.dropWhile(users, { 'user': 'barney', 'active': false });
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.dropWhile(users, ['active', false]);
- * // => objects for ['pebbles']
- *
- * // The `_.property` iteratee shorthand.
- * _.dropWhile(users, 'active');
- * // => objects for ['barney', 'fred', 'pebbles']
- */
- function dropWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), true)
- : [];
- }
-
- /**
- * Fills elements of `array` with `value` from `start` up to, but not
- * including, `end`.
- *
- * **Note:** This method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Array
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.fill(array, 'a');
- * console.log(array);
- * // => ['a', 'a', 'a']
- *
- * _.fill(Array(3), 2);
- * // => [2, 2, 2]
- *
- * _.fill([4, 6, 8, 10], '*', 1, 3);
- * // => [4, '*', '*', 10]
- */
- function fill(array, value, start, end) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
- start = 0;
- end = length;
- }
- return baseFill(array, value, start, end);
- }
-
- /**
- * This method is like `_.find` except that it returns the index of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.findIndex(users, function(o) { return o.user == 'barney'; });
- * // => 0
- *
- * // The `_.matches` iteratee shorthand.
- * _.findIndex(users, { 'user': 'fred', 'active': false });
- * // => 1
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findIndex(users, ['active', false]);
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.findIndex(users, 'active');
- * // => 2
- */
- function findIndex(array, predicate, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseFindIndex(array, getIteratee(predicate, 3), index);
- }
-
- /**
- * This method is like `_.findIndex` except that it iterates over elements
- * of `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=array.length-1] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
- * // => 2
- *
- * // The `_.matches` iteratee shorthand.
- * _.findLastIndex(users, { 'user': 'barney', 'active': true });
- * // => 0
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findLastIndex(users, ['active', false]);
- * // => 2
- *
- * // The `_.property` iteratee shorthand.
- * _.findLastIndex(users, 'active');
- * // => 0
- */
- function findLastIndex(array, predicate, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = length - 1;
- if (fromIndex !== undefined) {
- index = toInteger(fromIndex);
- index = fromIndex < 0
- ? nativeMax(length + index, 0)
- : nativeMin(index, length - 1);
- }
- return baseFindIndex(array, getIteratee(predicate, 3), index, true);
- }
-
- /**
- * Flattens `array` a single level deep.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flatten([1, [2, [3, [4]], 5]]);
- * // => [1, 2, [3, [4]], 5]
- */
- function flatten(array) {
- var length = array ? array.length : 0;
- return length ? baseFlatten(array, 1) : [];
- }
-
- /**
- * Recursively flattens `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flattenDeep([1, [2, [3, [4]], 5]]);
- * // => [1, 2, 3, 4, 5]
- */
- function flattenDeep(array) {
- var length = array ? array.length : 0;
- return length ? baseFlatten(array, INFINITY) : [];
- }
-
- /**
- * Recursively flatten `array` up to `depth` times.
- *
- * @static
- * @memberOf _
- * @since 4.4.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @param {number} [depth=1] The maximum recursion depth.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * var array = [1, [2, [3, [4]], 5]];
- *
- * _.flattenDepth(array, 1);
- * // => [1, 2, [3, [4]], 5]
- *
- * _.flattenDepth(array, 2);
- * // => [1, 2, 3, [4], 5]
- */
- function flattenDepth(array, depth) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(array, depth);
- }
-
- /**
- * The inverse of `_.toPairs`; this method returns an object composed
- * from key-value `pairs`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} pairs The key-value pairs.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.fromPairs([['fred', 30], ['barney', 40]]);
- * // => { 'fred': 30, 'barney': 40 }
- */
- function fromPairs(pairs) {
- var index = -1,
- length = pairs ? pairs.length : 0,
- result = {};
-
- while (++index < length) {
- var pair = pairs[index];
- result[pair[0]] = pair[1];
- }
- return result;
- }
-
- /**
- * Gets the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias first
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the first element of `array`.
- * @example
- *
- * _.head([1, 2, 3]);
- * // => 1
- *
- * _.head([]);
- * // => undefined
- */
- function head(array) {
- return (array && array.length) ? array[0] : undefined;
- }
-
- /**
- * Gets the index at which the first occurrence of `value` is found in `array`
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the
- * offset from the end of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.indexOf([1, 2, 1, 2], 2);
- * // => 1
- *
- * // Search from the `fromIndex`.
- * _.indexOf([1, 2, 1, 2], 2, 2);
- * // => 3
- */
- function indexOf(array, value, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseIndexOf(array, value, index);
- }
-
- /**
- * Gets all but the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.initial([1, 2, 3]);
- * // => [1, 2]
- */
- function initial(array) {
- return dropRight(array, 1);
- }
-
- /**
- * Creates an array of unique values that are included in all given arrays
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. The order of result values is determined by the
- * order they occur in the first array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * _.intersection([2, 1], [2, 3]);
- * // => [2]
- */
- var intersection = rest(function(arrays) {
- var mapped = arrayMap(arrays, castArrayLikeObject);
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped)
- : [];
- });
-
- /**
- * This method is like `_.intersection` except that it accepts `iteratee`
- * which is invoked for each element of each `arrays` to generate the criterion
- * by which they're compared. Result values are chosen from the first array.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [2.1]
- *
- * // The `_.property` iteratee shorthand.
- * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }]
- */
- var intersectionBy = rest(function(arrays) {
- var iteratee = last(arrays),
- mapped = arrayMap(arrays, castArrayLikeObject);
-
- if (iteratee === last(mapped)) {
- iteratee = undefined;
- } else {
- mapped.pop();
- }
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped, getIteratee(iteratee))
- : [];
- });
-
- /**
- * This method is like `_.intersection` except that it accepts `comparator`
- * which is invoked to compare elements of `arrays`. Result values are chosen
- * from the first array. The comparator is invoked with two arguments:
- * (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.intersectionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }]
- */
- var intersectionWith = rest(function(arrays) {
- var comparator = last(arrays),
- mapped = arrayMap(arrays, castArrayLikeObject);
-
- if (comparator === last(mapped)) {
- comparator = undefined;
- } else {
- mapped.pop();
- }
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped, undefined, comparator)
- : [];
- });
-
- /**
- * Converts all elements in `array` into a string separated by `separator`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to convert.
- * @param {string} [separator=','] The element separator.
- * @returns {string} Returns the joined string.
- * @example
- *
- * _.join(['a', 'b', 'c'], '~');
- * // => 'a~b~c'
- */
- function join(array, separator) {
- return array ? nativeJoin.call(array, separator) : '';
- }
-
- /**
- * Gets the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the last element of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- */
- function last(array) {
- var length = array ? array.length : 0;
- return length ? array[length - 1] : undefined;
- }
-
- /**
- * This method is like `_.indexOf` except that it iterates over elements of
- * `array` from right to left.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=array.length-1] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.lastIndexOf([1, 2, 1, 2], 2);
- * // => 3
- *
- * // Search from the `fromIndex`.
- * _.lastIndexOf([1, 2, 1, 2], 2, 2);
- * // => 1
- */
- function lastIndexOf(array, value, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = length;
- if (fromIndex !== undefined) {
- index = toInteger(fromIndex);
- index = (
- index < 0
- ? nativeMax(length + index, 0)
- : nativeMin(index, length - 1)
- ) + 1;
- }
- if (value !== value) {
- return indexOfNaN(array, index - 1, true);
- }
- while (index--) {
- if (array[index] === value) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * Gets the element at index `n` of `array`. If `n` is negative, the nth
- * element from the end is returned.
- *
- * @static
- * @memberOf _
- * @since 4.11.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=0] The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'd'];
- *
- * _.nth(array, 1);
- * // => 'b'
- *
- * _.nth(array, -2);
- * // => 'c';
- */
- function nth(array, n) {
- return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
- }
-
- /**
- * Removes all given values from `array` using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
- * to remove elements from an array by predicate.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {...*} [values] The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
- *
- * _.pull(array, 'a', 'c');
- * console.log(array);
- * // => ['b', 'b']
- */
- var pull = rest(pullAll);
-
- /**
- * This method is like `_.pull` except that it accepts an array of values to remove.
- *
- * **Note:** Unlike `_.difference`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
- *
- * _.pullAll(array, ['a', 'c']);
- * console.log(array);
- * // => ['b', 'b']
- */
- function pullAll(array, values) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values)
- : array;
- }
-
- /**
- * This method is like `_.pullAll` except that it accepts `iteratee` which is
- * invoked for each element of `array` and `values` to generate the criterion
- * by which they're compared. The iteratee is invoked with one argument: (value).
- *
- * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
- *
- * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
- * console.log(array);
- * // => [{ 'x': 2 }]
- */
- function pullAllBy(array, values, iteratee) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values, getIteratee(iteratee))
- : array;
- }
-
- /**
- * This method is like `_.pullAll` except that it accepts `comparator` which
- * is invoked to compare elements of `array` to `values`. The comparator is
- * invoked with two arguments: (arrVal, othVal).
- *
- * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
- *
- * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
- * console.log(array);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
- */
- function pullAllWith(array, values, comparator) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values, undefined, comparator)
- : array;
- }
-
- /**
- * Removes elements from `array` corresponding to `indexes` and returns an
- * array of removed elements.
- *
- * **Note:** Unlike `_.at`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {...(number|number[])} [indexes] The indexes of elements to remove.
- * @returns {Array} Returns the new array of removed elements.
- * @example
- *
- * var array = ['a', 'b', 'c', 'd'];
- * var pulled = _.pullAt(array, [1, 3]);
- *
- * console.log(array);
- * // => ['a', 'c']
- *
- * console.log(pulled);
- * // => ['b', 'd']
- */
- var pullAt = rest(function(array, indexes) {
- indexes = baseFlatten(indexes, 1);
-
- var length = array ? array.length : 0,
- result = baseAt(array, indexes);
-
- basePullAt(array, arrayMap(indexes, function(index) {
- return isIndex(index, length) ? +index : index;
- }).sort(compareAscending));
-
- return result;
- });
-
- /**
- * Removes all elements from `array` that `predicate` returns truthy for
- * and returns an array of the removed elements. The predicate is invoked
- * with three arguments: (value, index, array).
- *
- * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
- * to pull elements from an array by value.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new array of removed elements.
- * @example
- *
- * var array = [1, 2, 3, 4];
- * var evens = _.remove(array, function(n) {
- * return n % 2 == 0;
- * });
- *
- * console.log(array);
- * // => [1, 3]
- *
- * console.log(evens);
- * // => [2, 4]
- */
- function remove(array, predicate) {
- var result = [];
- if (!(array && array.length)) {
- return result;
- }
- var index = -1,
- indexes = [],
- length = array.length;
-
- predicate = getIteratee(predicate, 3);
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result.push(value);
- indexes.push(index);
- }
- }
- basePullAt(array, indexes);
- return result;
- }
-
- /**
- * Reverses `array` so that the first element becomes the last, the second
- * element becomes the second to last, and so on.
- *
- * **Note:** This method mutates `array` and is based on
- * [`Array#reverse`](https://mdn.io/Array/reverse).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.reverse(array);
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
- function reverse(array) {
- return array ? nativeReverse.call(array) : array;
- }
-
- /**
- * Creates a slice of `array` from `start` up to, but not including, `end`.
- *
- * **Note:** This method is used instead of
- * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
- * returned.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function slice(array, start, end) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
- start = 0;
- end = length;
- }
- else {
- start = start == null ? 0 : toInteger(start);
- end = end === undefined ? length : toInteger(end);
- }
- return baseSlice(array, start, end);
- }
-
- /**
- * Uses a binary search to determine the lowest index at which `value`
- * should be inserted into `array` in order to maintain its sort order.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * _.sortedIndex([30, 50], 40);
- * // => 1
- */
- function sortedIndex(array, value) {
- return baseSortedIndex(array, value);
- }
-
- /**
- * This method is like `_.sortedIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * var objects = [{ 'x': 4 }, { 'x': 5 }];
- *
- * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
- * // => 0
- */
- function sortedIndexBy(array, value, iteratee) {
- return baseSortedIndexBy(array, value, getIteratee(iteratee));
- }
-
- /**
- * This method is like `_.indexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
- * // => 1
- */
- function sortedIndexOf(array, value) {
- var length = array ? array.length : 0;
- if (length) {
- var index = baseSortedIndex(array, value);
- if (index < length && eq(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * This method is like `_.sortedIndex` except that it returns the highest
- * index at which `value` should be inserted into `array` in order to
- * maintain its sort order.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
- * // => 4
- */
- function sortedLastIndex(array, value) {
- return baseSortedIndex(array, value, true);
- }
-
- /**
- * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * var objects = [{ 'x': 4 }, { 'x': 5 }];
- *
- * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
- * // => 1
- *
- * // The `_.property` iteratee shorthand.
- * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
- * // => 1
- */
- function sortedLastIndexBy(array, value, iteratee) {
- return baseSortedIndexBy(array, value, getIteratee(iteratee), true);
- }
-
- /**
- * This method is like `_.lastIndexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
- * // => 3
- */
- function sortedLastIndexOf(array, value) {
- var length = array ? array.length : 0;
- if (length) {
- var index = baseSortedIndex(array, value, true) - 1;
- if (eq(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * This method is like `_.uniq` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniq([1, 1, 2]);
- * // => [1, 2]
- */
- function sortedUniq(array) {
- return (array && array.length)
- ? baseSortedUniq(array)
- : [];
- }
-
- /**
- * This method is like `_.uniqBy` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
- * // => [1.1, 2.3]
- */
- function sortedUniqBy(array, iteratee) {
- return (array && array.length)
- ? baseSortedUniq(array, getIteratee(iteratee))
- : [];
- }
-
- /**
- * Gets all but the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.tail([1, 2, 3]);
- * // => [2, 3]
- */
- function tail(array) {
- return drop(array, 1);
- }
-
- /**
- * Creates a slice of `array` with `n` elements taken from the beginning.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.take([1, 2, 3]);
- * // => [1]
- *
- * _.take([1, 2, 3], 2);
- * // => [1, 2]
- *
- * _.take([1, 2, 3], 5);
- * // => [1, 2, 3]
- *
- * _.take([1, 2, 3], 0);
- * // => []
- */
- function take(array, n, guard) {
- if (!(array && array.length)) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- return baseSlice(array, 0, n < 0 ? 0 : n);
- }
-
- /**
- * Creates a slice of `array` with `n` elements taken from the end.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.takeRight([1, 2, 3]);
- * // => [3]
- *
- * _.takeRight([1, 2, 3], 2);
- * // => [2, 3]
- *
- * _.takeRight([1, 2, 3], 5);
- * // => [1, 2, 3]
- *
- * _.takeRight([1, 2, 3], 0);
- * // => []
- */
- function takeRight(array, n, guard) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- n = length - n;
- return baseSlice(array, n < 0 ? 0 : n, length);
- }
-
- /**
- * Creates a slice of `array` with elements taken from the end. Elements are
- * taken until `predicate` returns falsey. The predicate is invoked with
- * three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.takeRightWhile(users, function(o) { return !o.active; });
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.matches` iteratee shorthand.
- * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
- * // => objects for ['pebbles']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.takeRightWhile(users, ['active', false]);
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.property` iteratee shorthand.
- * _.takeRightWhile(users, 'active');
- * // => []
- */
- function takeRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), false, true)
- : [];
- }
-
- /**
- * Creates a slice of `array` with elements taken from the beginning. Elements
- * are taken until `predicate` returns falsey. The predicate is invoked with
- * three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false},
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.takeWhile(users, function(o) { return !o.active; });
- * // => objects for ['barney', 'fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.takeWhile(users, { 'user': 'barney', 'active': false });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.takeWhile(users, ['active', false]);
- * // => objects for ['barney', 'fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.takeWhile(users, 'active');
- * // => []
- */
- function takeWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3))
- : [];
- }
-
- /**
- * Creates an array of unique values, in order, from all given arrays using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * _.union([2], [1, 2]);
- * // => [2, 1]
- */
- var union = rest(function(arrays) {
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
- });
-
- /**
- * This method is like `_.union` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by
- * which uniqueness is computed. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * _.unionBy([2.1], [1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
- var unionBy = rest(function(arrays) {
- var iteratee = last(arrays);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee));
- });
-
- /**
- * This method is like `_.union` except that it accepts `comparator` which
- * is invoked to compare elements of `arrays`. The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.unionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
- var unionWith = rest(function(arrays) {
- var comparator = last(arrays);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
- });
-
- /**
- * Creates a duplicate-free version of an array, using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons, in which only the first occurrence of each
- * element is kept.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniq([2, 1, 2]);
- * // => [2, 1]
- */
- function uniq(array) {
- return (array && array.length)
- ? baseUniq(array)
- : [];
- }
-
- /**
- * This method is like `_.uniq` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * uniqueness is computed. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
- function uniqBy(array, iteratee) {
- return (array && array.length)
- ? baseUniq(array, getIteratee(iteratee))
- : [];
- }
-
- /**
- * This method is like `_.uniq` except that it accepts `comparator` which
- * is invoked to compare elements of `array`. The comparator is invoked with
- * two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.uniqWith(objects, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
- */
- function uniqWith(array, comparator) {
- return (array && array.length)
- ? baseUniq(array, undefined, comparator)
- : [];
- }
-
- /**
- * This method is like `_.zip` except that it accepts an array of grouped
- * elements and creates an array regrouping the elements to their pre-zip
- * configuration.
- *
- * @static
- * @memberOf _
- * @since 1.2.0
- * @category Array
- * @param {Array} array The array of grouped elements to process.
- * @returns {Array} Returns the new array of regrouped elements.
- * @example
- *
- * var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]);
- * // => [['fred', 30, true], ['barney', 40, false]]
- *
- * _.unzip(zipped);
- * // => [['fred', 'barney'], [30, 40], [true, false]]
- */
- function unzip(array) {
- if (!(array && array.length)) {
- return [];
- }
- var length = 0;
- array = arrayFilter(array, function(group) {
- if (isArrayLikeObject(group)) {
- length = nativeMax(group.length, length);
- return true;
- }
- });
- return baseTimes(length, function(index) {
- return arrayMap(array, baseProperty(index));
- });
- }
-
- /**
- * This method is like `_.unzip` except that it accepts `iteratee` to specify
- * how regrouped values should be combined. The iteratee is invoked with the
- * elements of each group: (...group).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Array
- * @param {Array} array The array of grouped elements to process.
- * @param {Function} [iteratee=_.identity] The function to combine
- * regrouped values.
- * @returns {Array} Returns the new array of regrouped elements.
- * @example
- *
- * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
- * // => [[1, 10, 100], [2, 20, 200]]
- *
- * _.unzipWith(zipped, _.add);
- * // => [3, 30, 300]
- */
- function unzipWith(array, iteratee) {
- if (!(array && array.length)) {
- return [];
- }
- var result = unzip(array);
- if (iteratee == null) {
- return result;
- }
- return arrayMap(result, function(group) {
- return apply(iteratee, undefined, group);
- });
- }
-
- /**
- * Creates an array excluding all given values using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...*} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.difference, _.xor
- * @example
- *
- * _.without([2, 1, 2, 3], 1, 2);
- * // => [3]
- */
- var without = rest(function(array, values) {
- return isArrayLikeObject(array)
- ? baseDifference(array, values)
- : [];
- });
-
- /**
- * Creates an array of unique values that is the
- * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
- * of the given arrays. The order of result values is determined by the order
- * they occur in the arrays.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.difference, _.without
- * @example
- *
- * _.xor([2, 1], [2, 3]);
- * // => [1, 3]
- */
- var xor = rest(function(arrays) {
- return baseXor(arrayFilter(arrays, isArrayLikeObject));
- });
-
- /**
- * This method is like `_.xor` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by
- * which by which they're compared. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [1.2, 3.4]
- *
- * // The `_.property` iteratee shorthand.
- * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
- var xorBy = rest(function(arrays) {
- var iteratee = last(arrays);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee));
- });
-
- /**
- * This method is like `_.xor` except that it accepts `comparator` which is
- * invoked to compare elements of `arrays`. The comparator is invoked with
- * two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.xorWith(objects, others, _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
- var xorWith = rest(function(arrays) {
- var comparator = last(arrays);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
- return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
- });
-
- /**
- * Creates an array of grouped elements, the first of which contains the
- * first elements of the given arrays, the second of which contains the
- * second elements of the given arrays, and so on.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to process.
- * @returns {Array} Returns the new array of grouped elements.
- * @example
- *
- * _.zip(['fred', 'barney'], [30, 40], [true, false]);
- * // => [['fred', 30, true], ['barney', 40, false]]
- */
- var zip = rest(unzip);
-
- /**
- * This method is like `_.fromPairs` except that it accepts two arrays,
- * one of property identifiers and one of corresponding values.
- *
- * @static
- * @memberOf _
- * @since 0.4.0
- * @category Array
- * @param {Array} [props=[]] The property identifiers.
- * @param {Array} [values=[]] The property values.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.zipObject(['a', 'b'], [1, 2]);
- * // => { 'a': 1, 'b': 2 }
- */
- function zipObject(props, values) {
- return baseZipObject(props || [], values || [], assignValue);
- }
-
- /**
- * This method is like `_.zipObject` except that it supports property paths.
- *
- * @static
- * @memberOf _
- * @since 4.1.0
- * @category Array
- * @param {Array} [props=[]] The property identifiers.
- * @param {Array} [values=[]] The property values.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
- * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
- */
- function zipObjectDeep(props, values) {
- return baseZipObject(props || [], values || [], baseSet);
- }
-
- /**
- * This method is like `_.zip` except that it accepts `iteratee` to specify
- * how grouped values should be combined. The iteratee is invoked with the
- * elements of each group: (...group).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Array
- * @param {...Array} [arrays] The arrays to process.
- * @param {Function} [iteratee=_.identity] The function to combine grouped values.
- * @returns {Array} Returns the new array of grouped elements.
- * @example
- *
- * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
- * return a + b + c;
- * });
- * // => [111, 222]
- */
- var zipWith = rest(function(arrays) {
- var length = arrays.length,
- iteratee = length > 1 ? arrays[length - 1] : undefined;
-
- iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
- return unzipWith(arrays, iteratee);
- });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` wrapper instance that wraps `value` with explicit method
- * chain sequences enabled. The result of such sequences must be unwrapped
- * with `_#value`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Seq
- * @param {*} value The value to wrap.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'pebbles', 'age': 1 }
- * ];
- *
- * var youngest = _
- * .chain(users)
- * .sortBy('age')
- * .map(function(o) {
- * return o.user + ' is ' + o.age;
- * })
- * .head()
- * .value();
- * // => 'pebbles is 1'
- */
- function chain(value) {
- var result = lodash(value);
- result.__chain__ = true;
- return result;
- }
-
- /**
- * This method invokes `interceptor` and returns `value`. The interceptor
- * is invoked with one argument; (value). The purpose of this method is to
- * "tap into" a method chain sequence in order to modify intermediate results.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns `value`.
- * @example
- *
- * _([1, 2, 3])
- * .tap(function(array) {
- * // Mutate input array.
- * array.pop();
- * })
- * .reverse()
- * .value();
- * // => [2, 1]
- */
- function tap(value, interceptor) {
- interceptor(value);
- return value;
- }
-
- /**
- * This method is like `_.tap` except that it returns the result of `interceptor`.
- * The purpose of this method is to "pass thru" values replacing intermediate
- * results in a method chain sequence.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns the result of `interceptor`.
- * @example
- *
- * _(' abc ')
- * .chain()
- * .trim()
- * .thru(function(value) {
- * return [value];
- * })
- * .value();
- * // => ['abc']
- */
- function thru(value, interceptor) {
- return interceptor(value);
- }
-
- /**
- * This method is the wrapper version of `_.at`.
- *
- * @name at
- * @memberOf _
- * @since 1.0.0
- * @category Seq
- * @param {...(string|string[])} [paths] The property paths of elements to pick.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
- *
- * _(object).at(['a[0].b.c', 'a[1]']).value();
- * // => [3, 4]
- */
- var wrapperAt = rest(function(paths) {
- paths = baseFlatten(paths, 1);
- var length = paths.length,
- start = length ? paths[0] : 0,
- value = this.__wrapped__,
- interceptor = function(object) { return baseAt(object, paths); };
-
- if (length > 1 || this.__actions__.length ||
- !(value instanceof LazyWrapper) || !isIndex(start)) {
- return this.thru(interceptor);
- }
- value = value.slice(start, +start + (length ? 1 : 0));
- value.__actions__.push({
- 'func': thru,
- 'args': [interceptor],
- 'thisArg': undefined
- });
- return new LodashWrapper(value, this.__chain__).thru(function(array) {
- if (length && !array.length) {
- array.push(undefined);
- }
- return array;
- });
- });
-
- /**
- * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
- *
- * @name chain
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * // A sequence without explicit chaining.
- * _(users).head();
- * // => { 'user': 'barney', 'age': 36 }
- *
- * // A sequence with explicit chaining.
- * _(users)
- * .chain()
- * .head()
- * .pick('user')
- * .value();
- * // => { 'user': 'barney' }
- */
- function wrapperChain() {
- return chain(this);
- }
-
- /**
- * Executes the chain sequence and returns the wrapped result.
- *
- * @name commit
- * @memberOf _
- * @since 3.2.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var array = [1, 2];
- * var wrapped = _(array).push(3);
- *
- * console.log(array);
- * // => [1, 2]
- *
- * wrapped = wrapped.commit();
- * console.log(array);
- * // => [1, 2, 3]
- *
- * wrapped.last();
- * // => 3
- *
- * console.log(array);
- * // => [1, 2, 3]
- */
- function wrapperCommit() {
- return new LodashWrapper(this.value(), this.__chain__);
- }
-
- /**
- * Gets the next value on a wrapped object following the
- * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
- *
- * @name next
- * @memberOf _
- * @since 4.0.0
- * @category Seq
- * @returns {Object} Returns the next iterator value.
- * @example
- *
- * var wrapped = _([1, 2]);
- *
- * wrapped.next();
- * // => { 'done': false, 'value': 1 }
- *
- * wrapped.next();
- * // => { 'done': false, 'value': 2 }
- *
- * wrapped.next();
- * // => { 'done': true, 'value': undefined }
- */
- function wrapperNext() {
- if (this.__values__ === undefined) {
- this.__values__ = toArray(this.value());
- }
- var done = this.__index__ >= this.__values__.length,
- value = done ? undefined : this.__values__[this.__index__++];
-
- return { 'done': done, 'value': value };
- }
-
- /**
- * Enables the wrapper to be iterable.
- *
- * @name Symbol.iterator
- * @memberOf _
- * @since 4.0.0
- * @category Seq
- * @returns {Object} Returns the wrapper object.
- * @example
- *
- * var wrapped = _([1, 2]);
- *
- * wrapped[Symbol.iterator]() === wrapped;
- * // => true
- *
- * Array.from(wrapped);
- * // => [1, 2]
- */
- function wrapperToIterator() {
- return this;
- }
-
- /**
- * Creates a clone of the chain sequence planting `value` as the wrapped value.
- *
- * @name plant
- * @memberOf _
- * @since 3.2.0
- * @category Seq
- * @param {*} value The value to plant.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2]).map(square);
- * var other = wrapped.plant([3, 4]);
- *
- * other.value();
- * // => [9, 16]
- *
- * wrapped.value();
- * // => [1, 4]
- */
- function wrapperPlant(value) {
- var result,
- parent = this;
-
- while (parent instanceof baseLodash) {
- var clone = wrapperClone(parent);
- clone.__index__ = 0;
- clone.__values__ = undefined;
- if (result) {
- previous.__wrapped__ = clone;
- } else {
- result = clone;
- }
- var previous = clone;
- parent = parent.__wrapped__;
- }
- previous.__wrapped__ = value;
- return result;
- }
-
- /**
- * This method is the wrapper version of `_.reverse`.
- *
- * **Note:** This method mutates the wrapped array.
- *
- * @name reverse
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _(array).reverse().value()
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
- function wrapperReverse() {
- var value = this.__wrapped__;
- if (value instanceof LazyWrapper) {
- var wrapped = value;
- if (this.__actions__.length) {
- wrapped = new LazyWrapper(this);
- }
- wrapped = wrapped.reverse();
- wrapped.__actions__.push({
- 'func': thru,
- 'args': [reverse],
- 'thisArg': undefined
- });
- return new LodashWrapper(wrapped, this.__chain__);
- }
- return this.thru(reverse);
- }
-
- /**
- * Executes the chain sequence to resolve the unwrapped value.
- *
- * @name value
- * @memberOf _
- * @since 0.1.0
- * @alias toJSON, valueOf
- * @category Seq
- * @returns {*} Returns the resolved unwrapped value.
- * @example
- *
- * _([1, 2, 3]).value();
- * // => [1, 2, 3]
- */
- function wrapperValue() {
- return baseWrapperValue(this.__wrapped__, this.__actions__);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The corresponding value of
- * each key is the number of times the key was returned by `iteratee`. The
- * iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * _.countBy([6.1, 4.2, 6.3], Math.floor);
- * // => { '4': 1, '6': 2 }
- *
- * // The `_.property` iteratee shorthand.
- * _.countBy(['one', 'two', 'three'], 'length');
- * // => { '3': 2, '5': 1 }
- */
- var countBy = createAggregator(function(result, value, key) {
- hasOwnProperty.call(result, key) ? ++result[key] : (result[key] = 1);
- });
-
- /**
- * Checks if `predicate` returns truthy for **all** elements of `collection`.
- * Iteration is stopped once `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- * @example
- *
- * _.every([true, 1, null, 'yes'], Boolean);
- * // => false
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.every(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.every(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.every(users, 'active');
- * // => false
- */
- function every(collection, predicate, guard) {
- var func = isArray(collection) ? arrayEvery : baseEvery;
- if (guard && isIterateeCall(collection, predicate, guard)) {
- predicate = undefined;
- }
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.reject
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, { 'age': 36, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.filter(users, 'active');
- * // => objects for ['barney']
- */
- function filter(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false },
- * { 'user': 'pebbles', 'age': 1, 'active': true }
- * ];
- *
- * _.find(users, function(o) { return o.age < 40; });
- * // => object for 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.find(users, { 'age': 1, 'active': true });
- * // => object for 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.find(users, ['active', false]);
- * // => object for 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.find(users, 'active');
- * // => object for 'barney'
- */
- var find = createFind(findIndex);
-
- /**
- * This method is like `_.find` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=collection.length-1] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * _.findLast([1, 2, 3, 4], function(n) {
- * return n % 2 == 1;
- * });
- * // => 3
- */
- var findLast = createFind(findLastIndex);
-
- /**
- * Creates a flattened array of values by running each element in `collection`
- * thru `iteratee` and flattening the mapped results. The iteratee is invoked
- * with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [n, n];
- * }
- *
- * _.flatMap([1, 2], duplicate);
- * // => [1, 1, 2, 2]
- */
- function flatMap(collection, iteratee) {
- return baseFlatten(map(collection, iteratee), 1);
- }
-
- /**
- * This method is like `_.flatMap` except that it recursively flattens the
- * mapped results.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [[[n, n]]];
- * }
- *
- * _.flatMapDeep([1, 2], duplicate);
- * // => [1, 1, 2, 2]
- */
- function flatMapDeep(collection, iteratee) {
- return baseFlatten(map(collection, iteratee), INFINITY);
- }
-
- /**
- * This method is like `_.flatMap` except that it recursively flattens the
- * mapped results up to `depth` times.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @param {number} [depth=1] The maximum recursion depth.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [[[n, n]]];
- * }
- *
- * _.flatMapDepth([1, 2], duplicate, 2);
- * // => [[1, 1], [2, 2]]
- */
- function flatMapDepth(collection, iteratee, depth) {
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(map(collection, iteratee), depth);
- }
-
- /**
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
- * The iteratee is invoked with three arguments: (value, index|key, collection).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * **Note:** As with other "Collections" methods, objects with a "length"
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
- * or `_.forOwn` for object iteration.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias each
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEachRight
- * @example
- *
- * _([1, 2]).forEach(function(value) {
- * console.log(value);
- * });
- * // => Logs `1` then `2`.
- *
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
- function forEach(collection, iteratee) {
- var func = isArray(collection) ? arrayEach : baseEach;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.forEach` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @alias eachRight
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEach
- * @example
- *
- * _.forEachRight([1, 2], function(value) {
- * console.log(value);
- * });
- * // => Logs `2` then `1`.
- */
- function forEachRight(collection, iteratee) {
- var func = isArray(collection) ? arrayEachRight : baseEachRight;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The order of grouped values
- * is determined by the order they occur in `collection`. The corresponding
- * value of each key is an array of elements responsible for generating the
- * key. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * _.groupBy([6.1, 4.2, 6.3], Math.floor);
- * // => { '4': [4.2], '6': [6.1, 6.3] }
- *
- * // The `_.property` iteratee shorthand.
- * _.groupBy(['one', 'two', 'three'], 'length');
- * // => { '3': ['one', 'two'], '5': ['three'] }
- */
- var groupBy = createAggregator(function(result, value, key) {
- if (hasOwnProperty.call(result, key)) {
- result[key].push(value);
- } else {
- result[key] = [value];
- }
- });
-
- /**
- * Checks if `value` is in `collection`. If `collection` is a string, it's
- * checked for a substring of `value`, otherwise
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * is used for equality comparisons. If `fromIndex` is negative, it's used as
- * the offset from the end of `collection`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object|string} collection The collection to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
- * @returns {boolean} Returns `true` if `value` is found, else `false`.
- * @example
- *
- * _.includes([1, 2, 3], 1);
- * // => true
- *
- * _.includes([1, 2, 3], 1, 2);
- * // => false
- *
- * _.includes({ 'user': 'fred', 'age': 40 }, 'fred');
- * // => true
- *
- * _.includes('pebbles', 'eb');
- * // => true
- */
- function includes(collection, value, fromIndex, guard) {
- collection = isArrayLike(collection) ? collection : values(collection);
- fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
-
- var length = collection.length;
- if (fromIndex < 0) {
- fromIndex = nativeMax(length + fromIndex, 0);
- }
- return isString(collection)
- ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
- : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
- }
-
- /**
- * Invokes the method at `path` of each element in `collection`, returning
- * an array of the results of each invoked method. Any additional arguments
- * are provided to each invoked method. If `methodName` is a function, it's
- * invoked for and `this` bound to, each element in `collection`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|string} path The path of the method to invoke or
- * the function invoked per iteration.
- * @param {...*} [args] The arguments to invoke each method with.
- * @returns {Array} Returns the array of results.
- * @example
- *
- * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
- * // => [[1, 5, 7], [1, 2, 3]]
- *
- * _.invokeMap([123, 456], String.prototype.split, '');
- * // => [['1', '2', '3'], ['4', '5', '6']]
- */
- var invokeMap = rest(function(collection, path, args) {
- var index = -1,
- isFunc = typeof path == 'function',
- isProp = isKey(path),
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value) {
- var func = isFunc ? path : ((isProp && value != null) ? value[path] : undefined);
- result[++index] = func ? apply(func, value, args) : baseInvoke(value, path, args);
- });
- return result;
- });
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The corresponding value of
- * each key is the last element responsible for generating the key. The
- * iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * var array = [
- * { 'dir': 'left', 'code': 97 },
- * { 'dir': 'right', 'code': 100 }
- * ];
- *
- * _.keyBy(array, function(o) {
- * return String.fromCharCode(o.code);
- * });
- * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
- *
- * _.keyBy(array, 'dir');
- * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
- */
- var keyBy = createAggregator(function(result, value, key) {
- result[key] = value;
- });
-
- /**
- * Creates an array of values by running each element in `collection` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
- *
- * The guarded methods are:
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * _.map([4, 8], square);
- * // => [16, 64]
- *
- * _.map({ 'a': 4, 'b': 8 }, square);
- * // => [16, 64] (iteration order is not guaranteed)
- *
- * var users = [
- * { 'user': 'barney' },
- * { 'user': 'fred' }
- * ];
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, 'user');
- * // => ['barney', 'fred']
- */
- function map(collection, iteratee) {
- var func = isArray(collection) ? arrayMap : baseMap;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.sortBy` except that it allows specifying the sort
- * orders of the iteratees to sort by. If `orders` is unspecified, all values
- * are sorted in ascending order. Otherwise, specify an order of "desc" for
- * descending or "asc" for ascending sort order of corresponding values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
- * The iteratees to sort by.
- * @param {string[]} [orders] The sort orders of `iteratees`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 34 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 36 }
- * ];
- *
- * // Sort by `user` in ascending order and by `age` in descending order.
- * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- */
- function orderBy(collection, iteratees, orders, guard) {
- if (collection == null) {
- return [];
- }
- if (!isArray(iteratees)) {
- iteratees = iteratees == null ? [] : [iteratees];
- }
- orders = guard ? undefined : orders;
- if (!isArray(orders)) {
- orders = orders == null ? [] : [orders];
- }
- return baseOrderBy(collection, iteratees, orders);
- }
-
- /**
- * Creates an array of elements split into two groups, the first of which
- * contains elements `predicate` returns truthy for, the second of which
- * contains elements `predicate` returns falsey for. The predicate is
- * invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the array of grouped elements.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true },
- * { 'user': 'pebbles', 'age': 1, 'active': false }
- * ];
- *
- * _.partition(users, function(o) { return o.active; });
- * // => objects for [['fred'], ['barney', 'pebbles']]
- *
- * // The `_.matches` iteratee shorthand.
- * _.partition(users, { 'age': 1, 'active': false });
- * // => objects for [['pebbles'], ['barney', 'fred']]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.partition(users, ['active', false]);
- * // => objects for [['barney', 'pebbles'], ['fred']]
- *
- * // The `_.property` iteratee shorthand.
- * _.partition(users, 'active');
- * // => objects for [['fred'], ['barney', 'pebbles']]
- */
- var partition = createAggregator(function(result, value, key) {
- result[key ? 0 : 1].push(value);
- }, function() { return [[], []]; });
-
- /**
- * Reduces `collection` to a value which is the accumulated result of running
- * each element in `collection` thru `iteratee`, where each successive
- * invocation is supplied the return value of the previous. If `accumulator`
- * is not given, the first element of `collection` is used as the initial
- * value. The iteratee is invoked with four arguments:
- * (accumulator, value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.reduce`, `_.reduceRight`, and `_.transform`.
- *
- * The guarded methods are:
- * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
- * and `sortBy`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduceRight
- * @example
- *
- * _.reduce([1, 2], function(sum, n) {
- * return sum + n;
- * }, 0);
- * // => 3
- *
- * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * return result;
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
- */
- function reduce(collection, iteratee, accumulator) {
- var func = isArray(collection) ? arrayReduce : baseReduce,
- initAccum = arguments.length < 3;
-
- return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
- }
-
- /**
- * This method is like `_.reduce` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduce
- * @example
- *
- * var array = [[0, 1], [2, 3], [4, 5]];
- *
- * _.reduceRight(array, function(flattened, other) {
- * return flattened.concat(other);
- * }, []);
- * // => [4, 5, 2, 3, 0, 1]
- */
- function reduceRight(collection, iteratee, accumulator) {
- var func = isArray(collection) ? arrayReduceRight : baseReduce,
- initAccum = arguments.length < 3;
-
- return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
- }
-
- /**
- * The opposite of `_.filter`; this method returns the elements of `collection`
- * that `predicate` does **not** return truthy for.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.filter
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true }
- * ];
- *
- * _.reject(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.reject(users, { 'age': 40, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.reject(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.reject(users, 'active');
- * // => objects for ['barney']
- */
- function reject(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- predicate = getIteratee(predicate, 3);
- return func(collection, function(value, index, collection) {
- return !predicate(value, index, collection);
- });
- }
-
- /**
- * Gets a random element from `collection`.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to sample.
- * @returns {*} Returns the random element.
- * @example
- *
- * _.sample([1, 2, 3, 4]);
- * // => 2
- */
- function sample(collection) {
- var array = isArrayLike(collection) ? collection : values(collection),
- length = array.length;
-
- return length > 0 ? array[baseRandom(0, length - 1)] : undefined;
- }
-
- /**
- * Gets `n` random elements at unique keys from `collection` up to the
- * size of `collection`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to sample.
- * @param {number} [n=1] The number of elements to sample.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the random elements.
- * @example
- *
- * _.sampleSize([1, 2, 3], 2);
- * // => [3, 1]
- *
- * _.sampleSize([1, 2, 3], 4);
- * // => [2, 3, 1]
- */
- function sampleSize(collection, n, guard) {
- var index = -1,
- result = toArray(collection),
- length = result.length,
- lastIndex = length - 1;
-
- if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
- n = 1;
- } else {
- n = baseClamp(toInteger(n), 0, length);
- }
- while (++index < n) {
- var rand = baseRandom(index, lastIndex),
- value = result[rand];
-
- result[rand] = result[index];
- result[index] = value;
- }
- result.length = n;
- return result;
- }
-
- /**
- * Creates an array of shuffled values, using a version of the
- * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to shuffle.
- * @returns {Array} Returns the new shuffled array.
- * @example
- *
- * _.shuffle([1, 2, 3, 4]);
- * // => [4, 1, 3, 2]
- */
- function shuffle(collection) {
- return sampleSize(collection, MAX_ARRAY_LENGTH);
- }
-
- /**
- * Gets the size of `collection` by returning its length for array-like
- * values or the number of own enumerable string keyed properties for objects.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @returns {number} Returns the collection size.
- * @example
- *
- * _.size([1, 2, 3]);
- * // => 3
- *
- * _.size({ 'a': 1, 'b': 2 });
- * // => 2
- *
- * _.size('pebbles');
- * // => 7
- */
- function size(collection) {
- if (collection == null) {
- return 0;
- }
- if (isArrayLike(collection)) {
- var result = collection.length;
- return (result && isString(collection)) ? stringSize(collection) : result;
- }
- if (isObjectLike(collection)) {
- var tag = getTag(collection);
- if (tag == mapTag || tag == setTag) {
- return collection.size;
- }
- }
- return keys(collection).length;
- }
-
- /**
- * Checks if `predicate` returns truthy for **any** element of `collection`.
- * Iteration is stopped once `predicate` returns truthy. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- * @example
- *
- * _.some([null, 0, 'yes', false], Boolean);
- * // => true
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.some(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.some(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.some(users, 'active');
- * // => true
- */
- function some(collection, predicate, guard) {
- var func = isArray(collection) ? arraySome : baseSome;
- if (guard && isIterateeCall(collection, predicate, guard)) {
- predicate = undefined;
- }
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection thru each iteratee. This method
- * performs a stable sort, that is, it preserves the original sort order of
- * equal elements. The iteratees are invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [iteratees=[_.identity]] The iteratees to sort by.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 34 }
- * ];
- *
- * _.sortBy(users, function(o) { return o.user; });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- *
- * _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
- *
- * _.sortBy(users, 'user', function(o) {
- * return Math.floor(o.age / 10);
- * });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- */
- var sortBy = rest(function(collection, iteratees) {
- if (collection == null) {
- return [];
- }
- var length = iteratees.length;
- if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
- iteratees = [];
- } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
- iteratees = [iteratees[0]];
- }
- iteratees = (iteratees.length == 1 && isArray(iteratees[0]))
- ? iteratees[0]
- : baseFlatten(iteratees, 1, isFlattenableIteratee);
-
- return baseOrderBy(collection, iteratees, []);
- });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Gets the timestamp of the number of milliseconds that have elapsed since
- * the Unix epoch (1 January 1970 00:00:00 UTC).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Date
- * @returns {number} Returns the timestamp.
- * @example
- *
- * _.defer(function(stamp) {
- * console.log(_.now() - stamp);
- * }, _.now());
- * // => Logs the number of milliseconds it took for the deferred invocation.
- */
- function now() {
- return Date.now();
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * The opposite of `_.before`; this method creates a function that invokes
- * `func` once it's called `n` or more times.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {number} n The number of calls before `func` is invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var saves = ['profile', 'settings'];
- *
- * var done = _.after(saves.length, function() {
- * console.log('done saving!');
- * });
- *
- * _.forEach(saves, function(type) {
- * asyncSave({ 'type': type, 'complete': done });
- * });
- * // => Logs 'done saving!' after the two async saves have completed.
- */
- function after(n, func) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n < 1) {
- return func.apply(this, arguments);
- }
- };
- }
-
- /**
- * Creates a function that invokes `func`, with up to `n` arguments,
- * ignoring any additional arguments.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @param {number} [n=func.length] The arity cap.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new capped function.
- * @example
- *
- * _.map(['6', '8', '10'], _.ary(parseInt, 1));
- * // => [6, 8, 10]
- */
- function ary(func, n, guard) {
- n = guard ? undefined : n;
- n = (func && n == null) ? func.length : n;
- return createWrapper(func, ARY_FLAG, undefined, undefined, undefined, undefined, n);
- }
-
- /**
- * Creates a function that invokes `func`, with the `this` binding and arguments
- * of the created function, while it's called less than `n` times. Subsequent
- * calls to the created function return the result of the last `func` invocation.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {number} n The number of calls at which `func` is no longer invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * jQuery(element).on('click', _.before(5, addContactToList));
- * // => allows adding up to 4 contacts to the list
- */
- function before(n, func) {
- var result;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n > 0) {
- result = func.apply(this, arguments);
- }
- if (n <= 1) {
- func = undefined;
- }
- return result;
- };
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and `partials` prepended to the arguments it receives.
- *
- * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for partially applied arguments.
- *
- * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
- * property of bound functions.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to bind.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * var greet = function(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * };
- *
- * var object = { 'user': 'fred' };
- *
- * var bound = _.bind(greet, object, 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bind(greet, object, _, '!');
- * bound('hi');
- * // => 'hi fred!'
- */
- var bind = rest(function(func, thisArg, partials) {
- var bitmask = BIND_FLAG;
- if (partials.length) {
- var holders = replaceHolders(partials, getHolder(bind));
- bitmask |= PARTIAL_FLAG;
- }
- return createWrapper(func, bitmask, thisArg, partials, holders);
- });
-
- /**
- * Creates a function that invokes the method at `object[key]` with `partials`
- * prepended to the arguments it receives.
- *
- * This method differs from `_.bind` by allowing bound functions to reference
- * methods that may be redefined or don't yet exist. See
- * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
- * for more details.
- *
- * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Function
- * @param {Object} object The object to invoke the method on.
- * @param {string} key The key of the method.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * var object = {
- * 'user': 'fred',
- * 'greet': function(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * }
- * };
- *
- * var bound = _.bindKey(object, 'greet', 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * object.greet = function(greeting, punctuation) {
- * return greeting + 'ya ' + this.user + punctuation;
- * };
- *
- * bound('!');
- * // => 'hiya fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bindKey(object, 'greet', _, '!');
- * bound('hi');
- * // => 'hiya fred!'
- */
- var bindKey = rest(function(object, key, partials) {
- var bitmask = BIND_FLAG | BIND_KEY_FLAG;
- if (partials.length) {
- var holders = replaceHolders(partials, getHolder(bindKey));
- bitmask |= PARTIAL_FLAG;
- }
- return createWrapper(key, bitmask, object, partials, holders);
- });
-
- /**
- * Creates a function that accepts arguments of `func` and either invokes
- * `func` returning its result, if at least `arity` number of arguments have
- * been provided, or returns a function that accepts the remaining `func`
- * arguments, and so on. The arity of `func` may be specified if `func.length`
- * is not sufficient.
- *
- * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for provided arguments.
- *
- * **Note:** This method doesn't set the "length" property of curried functions.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Function
- * @param {Function} func The function to curry.
- * @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new curried function.
- * @example
- *
- * var abc = function(a, b, c) {
- * return [a, b, c];
- * };
- *
- * var curried = _.curry(abc);
- *
- * curried(1)(2)(3);
- * // => [1, 2, 3]
- *
- * curried(1, 2)(3);
- * // => [1, 2, 3]
- *
- * curried(1, 2, 3);
- * // => [1, 2, 3]
- *
- * // Curried with placeholders.
- * curried(1)(_, 3)(2);
- * // => [1, 2, 3]
- */
- function curry(func, arity, guard) {
- arity = guard ? undefined : arity;
- var result = createWrapper(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = curry.placeholder;
- return result;
- }
-
- /**
- * This method is like `_.curry` except that arguments are applied to `func`
- * in the manner of `_.partialRight` instead of `_.partial`.
- *
- * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for provided arguments.
- *
- * **Note:** This method doesn't set the "length" property of curried functions.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to curry.
- * @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new curried function.
- * @example
- *
- * var abc = function(a, b, c) {
- * return [a, b, c];
- * };
- *
- * var curried = _.curryRight(abc);
- *
- * curried(3)(2)(1);
- * // => [1, 2, 3]
- *
- * curried(2, 3)(1);
- * // => [1, 2, 3]
- *
- * curried(1, 2, 3);
- * // => [1, 2, 3]
- *
- * // Curried with placeholders.
- * curried(3)(1, _)(2);
- * // => [1, 2, 3]
- */
- function curryRight(func, arity, guard) {
- arity = guard ? undefined : arity;
- var result = createWrapper(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = curryRight.placeholder;
- return result;
- }
-
- /**
- * Creates a debounced function that delays invoking `func` until after `wait`
- * milliseconds have elapsed since the last time the debounced function was
- * invoked. The debounced function comes with a `cancel` method to cancel
- * delayed `func` invocations and a `flush` method to immediately invoke them.
- * Provide an options object to indicate whether `func` should be invoked on
- * the leading and/or trailing edge of the `wait` timeout. The `func` is invoked
- * with the last arguments provided to the debounced function. Subsequent calls
- * to the debounced function return the result of the last `func` invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
- * on the trailing edge of the timeout only if the debounced function is
- * invoked more than once during the `wait` timeout.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.debounce` and `_.throttle`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to debounce.
- * @param {number} [wait=0] The number of milliseconds to delay.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=false]
- * Specify invoking on the leading edge of the timeout.
- * @param {number} [options.maxWait]
- * The maximum time `func` is allowed to be delayed before it's invoked.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new debounced function.
- * @example
- *
- * // Avoid costly calculations while the window size is in flux.
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
- *
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
- * 'leading': true,
- * 'trailing': false
- * }));
- *
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
- * var source = new EventSource('/stream');
- * jQuery(source).on('message', debounced);
- *
- * // Cancel the trailing debounced invocation.
- * jQuery(window).on('popstate', debounced.cancel);
- */
- function debounce(func, wait, options) {
- var lastArgs,
- lastThis,
- maxWait,
- result,
- timerId,
- lastCallTime,
- lastInvokeTime = 0,
- leading = false,
- maxing = false,
- trailing = true;
-
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- wait = toNumber(wait) || 0;
- if (isObject(options)) {
- leading = !!options.leading;
- maxing = 'maxWait' in options;
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
-
- function invokeFunc(time) {
- var args = lastArgs,
- thisArg = lastThis;
-
- lastArgs = lastThis = undefined;
- lastInvokeTime = time;
- result = func.apply(thisArg, args);
- return result;
- }
-
- function leadingEdge(time) {
- // Reset any `maxWait` timer.
- lastInvokeTime = time;
- // Start the timer for the trailing edge.
- timerId = setTimeout(timerExpired, wait);
- // Invoke the leading edge.
- return leading ? invokeFunc(time) : result;
- }
-
- function remainingWait(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime,
- result = wait - timeSinceLastCall;
-
- return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
- }
-
- function shouldInvoke(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime;
-
- // Either this is the first call, activity has stopped and we're at the
- // trailing edge, the system time has gone backwards and we're treating
- // it as the trailing edge, or we've hit the `maxWait` limit.
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
- }
-
- function timerExpired() {
- var time = now();
- if (shouldInvoke(time)) {
- return trailingEdge(time);
- }
- // Restart the timer.
- timerId = setTimeout(timerExpired, remainingWait(time));
- }
-
- function trailingEdge(time) {
- timerId = undefined;
-
- // Only invoke if we have `lastArgs` which means `func` has been
- // debounced at least once.
- if (trailing && lastArgs) {
- return invokeFunc(time);
- }
- lastArgs = lastThis = undefined;
- return result;
- }
-
- function cancel() {
- lastInvokeTime = 0;
- lastArgs = lastCallTime = lastThis = timerId = undefined;
- }
-
- function flush() {
- return timerId === undefined ? result : trailingEdge(now());
- }
-
- function debounced() {
- var time = now(),
- isInvoking = shouldInvoke(time);
-
- lastArgs = arguments;
- lastThis = this;
- lastCallTime = time;
-
- if (isInvoking) {
- if (timerId === undefined) {
- return leadingEdge(lastCallTime);
- }
- if (maxing) {
- // Handle invocations in a tight loop.
- timerId = setTimeout(timerExpired, wait);
- return invokeFunc(lastCallTime);
- }
- }
- if (timerId === undefined) {
- timerId = setTimeout(timerExpired, wait);
- }
- return result;
- }
- debounced.cancel = cancel;
- debounced.flush = flush;
- return debounced;
- }
-
- /**
- * Defers invoking the `func` until the current call stack has cleared. Any
- * additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to defer.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.defer(function(text) {
- * console.log(text);
- * }, 'deferred');
- * // => Logs 'deferred' after one or more milliseconds.
- */
- var defer = rest(function(func, args) {
- return baseDelay(func, 1, args);
- });
-
- /**
- * Invokes `func` after `wait` milliseconds. Any additional arguments are
- * provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.delay(function(text) {
- * console.log(text);
- * }, 1000, 'later');
- * // => Logs 'later' after one second.
- */
- var delay = rest(function(func, wait, args) {
- return baseDelay(func, toNumber(wait) || 0, args);
- });
-
- /**
- * Creates a function that invokes `func` with arguments reversed.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to flip arguments for.
- * @returns {Function} Returns the new flipped function.
- * @example
- *
- * var flipped = _.flip(function() {
- * return _.toArray(arguments);
- * });
- *
- * flipped('a', 'b', 'c', 'd');
- * // => ['d', 'c', 'b', 'a']
- */
- function flip(func) {
- return createWrapper(func, FLIP_FLAG);
- }
-
- /**
- * Creates a function that memoizes the result of `func`. If `resolver` is
- * provided, it determines the cache key for storing the result based on the
- * arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is used as the map cache key. The `func`
- * is invoked with the `this` binding of the memoized function.
- *
- * **Note:** The cache is exposed as the `cache` property on the memoized
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the
- * [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `delete`, `get`, `has`, and `set`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to have its output memoized.
- * @param {Function} [resolver] The function to resolve the cache key.
- * @returns {Function} Returns the new memoized function.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- * var other = { 'c': 3, 'd': 4 };
- *
- * var values = _.memoize(_.values);
- * values(object);
- * // => [1, 2]
- *
- * values(other);
- * // => [3, 4]
- *
- * object.a = 2;
- * values(object);
- * // => [1, 2]
- *
- * // Modify the result cache.
- * values.cache.set(object, ['a', 'b']);
- * values(object);
- * // => ['a', 'b']
- *
- * // Replace `_.memoize.Cache`.
- * _.memoize.Cache = WeakMap;
- */
- function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
-
- if (cache.has(key)) {
- return cache.get(key);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result);
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
- }
-
- // Assign cache to `_.memoize`.
- memoize.Cache = MapCache;
-
- /**
- * Creates a function that negates the result of the predicate `func`. The
- * `func` predicate is invoked with the `this` binding and arguments of the
- * created function.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} predicate The predicate to negate.
- * @returns {Function} Returns the new negated function.
- * @example
- *
- * function isEven(n) {
- * return n % 2 == 0;
- * }
- *
- * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
- * // => [1, 3, 5]
- */
- function negate(predicate) {
- if (typeof predicate != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return function() {
- return !predicate.apply(this, arguments);
- };
- }
-
- /**
- * Creates a function that is restricted to invoking `func` once. Repeat calls
- * to the function return the value of the first invocation. The `func` is
- * invoked with the `this` binding and arguments of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var initialize = _.once(createApplication);
- * initialize();
- * initialize();
- * // `initialize` invokes `createApplication` once
- */
- function once(func) {
- return before(2, func);
- }
-
- /**
- * Creates a function that invokes `func` with arguments transformed by
- * corresponding `transforms`.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Function
- * @param {Function} func The function to wrap.
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [transforms[_.identity]] The functions to transform.
- * @returns {Function} Returns the new function.
- * @example
- *
- * function doubled(n) {
- * return n * 2;
- * }
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var func = _.overArgs(function(x, y) {
- * return [x, y];
- * }, [square, doubled]);
- *
- * func(9, 3);
- * // => [81, 6]
- *
- * func(10, 5);
- * // => [100, 10]
- */
- var overArgs = rest(function(func, transforms) {
- transforms = (transforms.length == 1 && isArray(transforms[0]))
- ? arrayMap(transforms[0], baseUnary(getIteratee()))
- : arrayMap(baseFlatten(transforms, 1, isFlattenableIteratee), baseUnary(getIteratee()));
-
- var funcsLength = transforms.length;
- return rest(function(args) {
- var index = -1,
- length = nativeMin(args.length, funcsLength);
-
- while (++index < length) {
- args[index] = transforms[index].call(this, args[index]);
- }
- return apply(func, this, args);
- });
- });
-
- /**
- * Creates a function that invokes `func` with `partials` prepended to the
- * arguments it receives. This method is like `_.bind` except it does **not**
- * alter the `this` binding.
- *
- * The `_.partial.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * **Note:** This method doesn't set the "length" property of partially
- * applied functions.
- *
- * @static
- * @memberOf _
- * @since 0.2.0
- * @category Function
- * @param {Function} func The function to partially apply arguments to.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new partially applied function.
- * @example
- *
- * var greet = function(greeting, name) {
- * return greeting + ' ' + name;
- * };
- *
- * var sayHelloTo = _.partial(greet, 'hello');
- * sayHelloTo('fred');
- * // => 'hello fred'
- *
- * // Partially applied with placeholders.
- * var greetFred = _.partial(greet, _, 'fred');
- * greetFred('hi');
- * // => 'hi fred'
- */
- var partial = rest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partial));
- return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders);
- });
-
- /**
- * This method is like `_.partial` except that partially applied arguments
- * are appended to the arguments it receives.
- *
- * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * **Note:** This method doesn't set the "length" property of partially
- * applied functions.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Function
- * @param {Function} func The function to partially apply arguments to.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new partially applied function.
- * @example
- *
- * var greet = function(greeting, name) {
- * return greeting + ' ' + name;
- * };
- *
- * var greetFred = _.partialRight(greet, 'fred');
- * greetFred('hi');
- * // => 'hi fred'
- *
- * // Partially applied with placeholders.
- * var sayHelloTo = _.partialRight(greet, 'hello', _);
- * sayHelloTo('fred');
- * // => 'hello fred'
- */
- var partialRight = rest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partialRight));
- return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders);
- });
-
- /**
- * Creates a function that invokes `func` with arguments arranged according
- * to the specified `indexes` where the argument value at the first index is
- * provided as the first argument, the argument value at the second index is
- * provided as the second argument, and so on.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to rearrange arguments for.
- * @param {...(number|number[])} indexes The arranged argument indexes.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var rearged = _.rearg(function(a, b, c) {
- * return [a, b, c];
- * }, [2, 0, 1]);
- *
- * rearged('b', 'c', 'a')
- * // => ['a', 'b', 'c']
- */
- var rearg = rest(function(func, indexes) {
- return createWrapper(func, REARG_FLAG, undefined, undefined, undefined, baseFlatten(indexes, 1));
- });
-
- /**
- * Creates a function that invokes `func` with the `this` binding of the
- * created function and arguments from `start` and beyond provided as
- * an array.
- *
- * **Note:** This method is based on the
- * [rest parameter](https://mdn.io/rest_parameters).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.rest(function(what, names) {
- * return what + ' ' + _.initial(names).join(', ') +
- * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
- * });
- *
- * say('hello', 'fred', 'barney', 'pebbles');
- * // => 'hello fred, barney, & pebbles'
- */
- function rest(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = nativeMax(start === undefined ? (func.length - 1) : toInteger(start), 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
-
- while (++index < length) {
- array[index] = args[start + index];
- }
- switch (start) {
- case 0: return func.call(this, array);
- case 1: return func.call(this, args[0], array);
- case 2: return func.call(this, args[0], args[1], array);
- }
- var otherArgs = Array(start + 1);
- index = -1;
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = array;
- return apply(func, this, otherArgs);
- };
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of the
- * create function and an array of arguments much like
- * [`Function#apply`](http://www.ecma-international.org/ecma-262/6.0/#sec-function.prototype.apply).
- *
- * **Note:** This method is based on the
- * [spread operator](https://mdn.io/spread_operator).
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Function
- * @param {Function} func The function to spread arguments over.
- * @param {number} [start=0] The start position of the spread.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.spread(function(who, what) {
- * return who + ' says ' + what;
- * });
- *
- * say(['fred', 'hello']);
- * // => 'fred says hello'
- *
- * var numbers = Promise.all([
- * Promise.resolve(40),
- * Promise.resolve(36)
- * ]);
- *
- * numbers.then(_.spread(function(x, y) {
- * return x + y;
- * }));
- * // => a Promise of 76
- */
- function spread(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = start === undefined ? 0 : nativeMax(toInteger(start), 0);
- return rest(function(args) {
- var array = args[start],
- otherArgs = castSlice(args, 0, start);
-
- if (array) {
- arrayPush(otherArgs, array);
- }
- return apply(func, this, otherArgs);
- });
- }
-
- /**
- * Creates a throttled function that only invokes `func` at most once per
- * every `wait` milliseconds. The throttled function comes with a `cancel`
- * method to cancel delayed `func` invocations and a `flush` method to
- * immediately invoke them. Provide an options object to indicate whether
- * `func` should be invoked on the leading and/or trailing edge of the `wait`
- * timeout. The `func` is invoked with the last arguments provided to the
- * throttled function. Subsequent calls to the throttled function return the
- * result of the last `func` invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the throttled function
- * is invoked more than once during the `wait` timeout.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.throttle` and `_.debounce`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to throttle.
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=true]
- * Specify invoking on the leading edge of the timeout.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new throttled function.
- * @example
- *
- * // Avoid excessively updating the position while scrolling.
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
- *
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
- * jQuery(element).on('click', throttled);
- *
- * // Cancel the trailing throttled invocation.
- * jQuery(window).on('popstate', throttled.cancel);
- */
- function throttle(func, wait, options) {
- var leading = true,
- trailing = true;
-
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (isObject(options)) {
- leading = 'leading' in options ? !!options.leading : leading;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
- return debounce(func, wait, {
- 'leading': leading,
- 'maxWait': wait,
- 'trailing': trailing
- });
- }
-
- /**
- * Creates a function that accepts up to one argument, ignoring any
- * additional arguments.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- * @example
- *
- * _.map(['6', '8', '10'], _.unary(parseInt));
- * // => [6, 8, 10]
- */
- function unary(func) {
- return ary(func, 1);
- }
-
- /**
- * Creates a function that provides `value` to the wrapper function as its
- * first argument. Any additional arguments provided to the function are
- * appended to those provided to the wrapper function. The wrapper is invoked
- * with the `this` binding of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {*} value The value to wrap.
- * @param {Function} [wrapper=identity] The wrapper function.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var p = _.wrap(_.escape, function(func, text) {
- * return '<p>' + func(text) + '</p>';
- * });
- *
- * p('fred, barney, & pebbles');
- * // => '<p>fred, barney, &amp; pebbles</p>'
- */
- function wrap(value, wrapper) {
- wrapper = wrapper == null ? identity : wrapper;
- return partial(wrapper, value);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Casts `value` as an array if it's not one.
- *
- * @static
- * @memberOf _
- * @since 4.4.0
- * @category Lang
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast array.
- * @example
- *
- * _.castArray(1);
- * // => [1]
- *
- * _.castArray({ 'a': 1 });
- * // => [{ 'a': 1 }]
- *
- * _.castArray('abc');
- * // => ['abc']
- *
- * _.castArray(null);
- * // => [null]
- *
- * _.castArray(undefined);
- * // => [undefined]
- *
- * _.castArray();
- * // => []
- *
- * var array = [1, 2, 3];
- * console.log(_.castArray(array) === array);
- * // => true
- */
- function castArray() {
- if (!arguments.length) {
- return [];
- }
- var value = arguments[0];
- return isArray(value) ? value : [value];
- }
-
- /**
- * Creates a shallow clone of `value`.
- *
- * **Note:** This method is loosely based on the
- * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
- * and supports cloning arrays, array buffers, booleans, date objects, maps,
- * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
- * arrays. The own enumerable properties of `arguments` objects are cloned
- * as plain objects. An empty object is returned for uncloneable values such
- * as error objects, functions, DOM nodes, and WeakMaps.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to clone.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeep
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var shallow = _.clone(objects);
- * console.log(shallow[0] === objects[0]);
- * // => true
- */
- function clone(value) {
- return baseClone(value, false, true);
- }
-
- /**
- * This method is like `_.clone` except that it accepts `customizer` which
- * is invoked to produce the cloned value. If `customizer` returns `undefined`,
- * cloning is handled by the method instead. The `customizer` is invoked with
- * up to four arguments; (value [, index|key, object, stack]).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeepWith
- * @example
- *
- * function customizer(value) {
- * if (_.isElement(value)) {
- * return value.cloneNode(false);
- * }
- * }
- *
- * var el = _.cloneWith(document.body, customizer);
- *
- * console.log(el === document.body);
- * // => false
- * console.log(el.nodeName);
- * // => 'BODY'
- * console.log(el.childNodes.length);
- * // => 0
- */
- function cloneWith(value, customizer) {
- return baseClone(value, false, true, customizer);
- }
-
- /**
- * This method is like `_.clone` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @returns {*} Returns the deep cloned value.
- * @see _.clone
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var deep = _.cloneDeep(objects);
- * console.log(deep[0] === objects[0]);
- * // => false
- */
- function cloneDeep(value) {
- return baseClone(value, true, true);
- }
-
- /**
- * This method is like `_.cloneWith` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @returns {*} Returns the deep cloned value.
- * @see _.cloneWith
- * @example
- *
- * function customizer(value) {
- * if (_.isElement(value)) {
- * return value.cloneNode(true);
- * }
- * }
- *
- * var el = _.cloneDeepWith(document.body, customizer);
- *
- * console.log(el === document.body);
- * // => false
- * console.log(el.nodeName);
- * // => 'BODY'
- * console.log(el.childNodes.length);
- * // => 20
- */
- function cloneDeepWith(value, customizer) {
- return baseClone(value, true, true, customizer);
- }
-
- /**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
- function eq(value, other) {
- return value === other || (value !== value && other !== other);
- }
-
- /**
- * Checks if `value` is greater than `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- * @see _.lt
- * @example
- *
- * _.gt(3, 1);
- * // => true
- *
- * _.gt(3, 3);
- * // => false
- *
- * _.gt(1, 3);
- * // => false
- */
- var gt = createRelationalOperation(baseGt);
-
- /**
- * Checks if `value` is greater than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than or equal to
- * `other`, else `false`.
- * @see _.lte
- * @example
- *
- * _.gte(3, 1);
- * // => true
- *
- * _.gte(3, 3);
- * // => true
- *
- * _.gte(1, 3);
- * // => false
- */
- var gte = createRelationalOperation(function(value, other) {
- return value >= other;
- });
-
- /**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
- function isArguments(value) {
- // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.
- return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
- (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
- }
-
- /**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @type {Function}
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
- var isArray = Array.isArray;
-
- /**
- * Checks if `value` is classified as an `ArrayBuffer` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isArrayBuffer(new ArrayBuffer(2));
- * // => true
- *
- * _.isArrayBuffer(new Array(2));
- * // => false
- */
- function isArrayBuffer(value) {
- return isObjectLike(value) && objectToString.call(value) == arrayBufferTag;
- }
-
- /**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
- function isArrayLike(value) {
- return value != null && isLength(getLength(value)) && !isFunction(value);
- }
-
- /**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object,
- * else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
- function isArrayLikeObject(value) {
- return isObjectLike(value) && isArrayLike(value);
- }
-
- /**
- * Checks if `value` is classified as a boolean primitive or object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isBoolean(false);
- * // => true
- *
- * _.isBoolean(null);
- * // => false
- */
- function isBoolean(value) {
- return value === true || value === false ||
- (isObjectLike(value) && objectToString.call(value) == boolTag);
- }
-
- /**
- * Checks if `value` is a buffer.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
- * @example
- *
- * _.isBuffer(new Buffer(2));
- * // => true
- *
- * _.isBuffer(new Uint8Array(2));
- * // => false
- */
- var isBuffer = !Buffer ? stubFalse : function(value) {
- return value instanceof Buffer;
- };
-
- /**
- * Checks if `value` is classified as a `Date` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isDate(new Date);
- * // => true
- *
- * _.isDate('Mon April 23 2012');
- * // => false
- */
- function isDate(value) {
- return isObjectLike(value) && objectToString.call(value) == dateTag;
- }
-
- /**
- * Checks if `value` is likely a DOM element.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a DOM element,
- * else `false`.
- * @example
- *
- * _.isElement(document.body);
- * // => true
- *
- * _.isElement('<body>');
- * // => false
- */
- function isElement(value) {
- return !!value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value);
- }
-
- /**
- * Checks if `value` is an empty object, collection, map, or set.
- *
- * Objects are considered empty if they have no own enumerable string keyed
- * properties.
- *
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
- * jQuery-like collections are considered empty if they have a `length` of `0`.
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
- * @example
- *
- * _.isEmpty(null);
- * // => true
- *
- * _.isEmpty(true);
- * // => true
- *
- * _.isEmpty(1);
- * // => true
- *
- * _.isEmpty([1, 2, 3]);
- * // => false
- *
- * _.isEmpty({ 'a': 1 });
- * // => false
- */
- function isEmpty(value) {
- if (isArrayLike(value) &&
- (isArray(value) || isString(value) || isFunction(value.splice) ||
- isArguments(value) || isBuffer(value))) {
- return !value.length;
- }
- if (isObjectLike(value)) {
- var tag = getTag(value);
- if (tag == mapTag || tag == setTag) {
- return !value.size;
- }
- }
- for (var key in value) {
- if (hasOwnProperty.call(value, key)) {
- return false;
- }
- }
- return !(nonEnumShadows && keys(value).length);
- }
-
- /**
- * Performs a deep comparison between two values to determine if they are
- * equivalent.
- *
- * **Note:** This method supports comparing arrays, array buffers, booleans,
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
- * by their own, not inherited, enumerable properties. Functions and DOM
- * nodes are **not** supported.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent,
- * else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.isEqual(object, other);
- * // => true
- *
- * object === other;
- * // => false
- */
- function isEqual(value, other) {
- return baseIsEqual(value, other);
- }
-
- /**
- * This method is like `_.isEqual` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined`, comparisons
- * are handled by the method instead. The `customizer` is invoked with up to
- * six arguments: (objValue, othValue [, index|key, object, other, stack]).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if the values are equivalent,
- * else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, othValue) {
- * if (isGreeting(objValue) && isGreeting(othValue)) {
- * return true;
- * }
- * }
- *
- * var array = ['hello', 'goodbye'];
- * var other = ['hi', 'goodbye'];
- *
- * _.isEqualWith(array, other, customizer);
- * // => true
- */
- function isEqualWith(value, other, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- var result = customizer ? customizer(value, other) : undefined;
- return result === undefined ? baseIsEqual(value, other, customizer) : !!result;
- }
-
- /**
- * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
- * `SyntaxError`, `TypeError`, or `URIError` object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an error object,
- * else `false`.
- * @example
- *
- * _.isError(new Error);
- * // => true
- *
- * _.isError(Error);
- * // => false
- */
- function isError(value) {
- if (!isObjectLike(value)) {
- return false;
- }
- return (objectToString.call(value) == errorTag) ||
- (typeof value.message == 'string' && typeof value.name == 'string');
- }
-
- /**
- * Checks if `value` is a finite primitive number.
- *
- * **Note:** This method is based on
- * [`Number.isFinite`](https://mdn.io/Number/isFinite).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number,
- * else `false`.
- * @example
- *
- * _.isFinite(3);
- * // => true
- *
- * _.isFinite(Number.MIN_VALUE);
- * // => true
- *
- * _.isFinite(Infinity);
- * // => false
- *
- * _.isFinite('3');
- * // => false
- */
- function isFinite(value) {
- return typeof value == 'number' && nativeIsFinite(value);
- }
-
- /**
- * Checks if `value` is classified as a `Function` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isFunction(_);
- * // => true
- *
- * _.isFunction(/abc/);
- * // => false
- */
- function isFunction(value) {
- // The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 8 which returns 'object' for typed array and weak map constructors,
- // and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
- var tag = isObject(value) ? objectToString.call(value) : '';
- return tag == funcTag || tag == genTag;
- }
-
- /**
- * Checks if `value` is an integer.
- *
- * **Note:** This method is based on
- * [`Number.isInteger`](https://mdn.io/Number/isInteger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
- * @example
- *
- * _.isInteger(3);
- * // => true
- *
- * _.isInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isInteger(Infinity);
- * // => false
- *
- * _.isInteger('3');
- * // => false
- */
- function isInteger(value) {
- return typeof value == 'number' && value == toInteger(value);
- }
-
- /**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This function is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length,
- * else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
- function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
- }
-
- /**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
- function isObject(value) {
- var type = typeof value;
- return !!value && (type == 'object' || type == 'function');
- }
-
- /**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
- function isObjectLike(value) {
- return !!value && typeof value == 'object';
- }
-
- /**
- * Checks if `value` is classified as a `Map` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isMap(new Map);
- * // => true
- *
- * _.isMap(new WeakMap);
- * // => false
- */
- function isMap(value) {
- return isObjectLike(value) && getTag(value) == mapTag;
- }
-
- /**
- * Performs a partial deep comparison between `object` and `source` to
- * determine if `object` contains equivalent property values. This method is
- * equivalent to a `_.matches` function when `source` is partially applied.
- *
- * **Note:** This method supports comparing the same values as `_.isEqual`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * var object = { 'user': 'fred', 'age': 40 };
- *
- * _.isMatch(object, { 'age': 40 });
- * // => true
- *
- * _.isMatch(object, { 'age': 36 });
- * // => false
- */
- function isMatch(object, source) {
- return object === source || baseIsMatch(object, source, getMatchData(source));
- }
-
- /**
- * This method is like `_.isMatch` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined`, comparisons
- * are handled by the method instead. The `customizer` is invoked with five
- * arguments: (objValue, srcValue, index|key, object, source).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, srcValue) {
- * if (isGreeting(objValue) && isGreeting(srcValue)) {
- * return true;
- * }
- * }
- *
- * var object = { 'greeting': 'hello' };
- * var source = { 'greeting': 'hi' };
- *
- * _.isMatchWith(object, source, customizer);
- * // => true
- */
- function isMatchWith(object, source, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return baseIsMatch(object, source, getMatchData(source), customizer);
- }
-
- /**
- * Checks if `value` is `NaN`.
- *
- * **Note:** This method is based on
- * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
- * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
- * `undefined` and other non-number values.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- * @example
- *
- * _.isNaN(NaN);
- * // => true
- *
- * _.isNaN(new Number(NaN));
- * // => true
- *
- * isNaN(undefined);
- * // => true
- *
- * _.isNaN(undefined);
- * // => false
- */
- function isNaN(value) {
- // An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some
- // ActiveX objects in IE.
- return isNumber(value) && value != +value;
- }
-
- /**
- * Checks if `value` is a pristine native function.
- *
- * **Note:** This method can't reliably detect native functions in the
- * presence of the `core-js` package because `core-js` circumvents this kind
- * of detection. Despite multiple requests, the `core-js` maintainer has made
- * it clear: any attempt to fix the detection will be obstructed. As a result,
- * we're left with little choice but to throw an error. Unfortunately, this
- * also affects packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
- * which rely on `core-js`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- * @example
- *
- * _.isNative(Array.prototype.push);
- * // => true
- *
- * _.isNative(_);
- * // => false
- */
- function isNative(value) {
- if (isMaskable(value)) {
- throw new Error('This method is not supported with `core-js`. Try https://github.com/es-shims.');
- }
- return baseIsNative(value);
- }
-
- /**
- * Checks if `value` is `null`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
- * @example
- *
- * _.isNull(null);
- * // => true
- *
- * _.isNull(void 0);
- * // => false
- */
- function isNull(value) {
- return value === null;
- }
-
- /**
- * Checks if `value` is `null` or `undefined`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
- * @example
- *
- * _.isNil(null);
- * // => true
- *
- * _.isNil(void 0);
- * // => true
- *
- * _.isNil(NaN);
- * // => false
- */
- function isNil(value) {
- return value == null;
- }
-
- /**
- * Checks if `value` is classified as a `Number` primitive or object.
- *
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
- * classified as numbers, use the `_.isFinite` method.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isNumber(3);
- * // => true
- *
- * _.isNumber(Number.MIN_VALUE);
- * // => true
- *
- * _.isNumber(Infinity);
- * // => true
- *
- * _.isNumber('3');
- * // => false
- */
- function isNumber(value) {
- return typeof value == 'number' ||
- (isObjectLike(value) && objectToString.call(value) == numberTag);
- }
-
- /**
- * Checks if `value` is a plain object, that is, an object created by the
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
- *
- * @static
- * @memberOf _
- * @since 0.8.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object,
- * else `false`.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * _.isPlainObject(new Foo);
- * // => false
- *
- * _.isPlainObject([1, 2, 3]);
- * // => false
- *
- * _.isPlainObject({ 'x': 0, 'y': 0 });
- * // => true
- *
- * _.isPlainObject(Object.create(null));
- * // => true
- */
- function isPlainObject(value) {
- if (!isObjectLike(value) ||
- objectToString.call(value) != objectTag || isHostObject(value)) {
- return false;
- }
- var proto = getPrototype(value);
- if (proto === null) {
- return true;
- }
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
- return (typeof Ctor == 'function' &&
- Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
- }
-
- /**
- * Checks if `value` is classified as a `RegExp` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isRegExp(/abc/);
- * // => true
- *
- * _.isRegExp('/abc/');
- * // => false
- */
- function isRegExp(value) {
- return isObject(value) && objectToString.call(value) == regexpTag;
- }
-
- /**
- * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
- * double precision number which isn't the result of a rounded unsafe integer.
- *
- * **Note:** This method is based on
- * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a safe integer,
- * else `false`.
- * @example
- *
- * _.isSafeInteger(3);
- * // => true
- *
- * _.isSafeInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isSafeInteger(Infinity);
- * // => false
- *
- * _.isSafeInteger('3');
- * // => false
- */
- function isSafeInteger(value) {
- return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
- }
-
- /**
- * Checks if `value` is classified as a `Set` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isSet(new Set);
- * // => true
- *
- * _.isSet(new WeakSet);
- * // => false
- */
- function isSet(value) {
- return isObjectLike(value) && getTag(value) == setTag;
- }
-
- /**
- * Checks if `value` is classified as a `String` primitive or object.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isString('abc');
- * // => true
- *
- * _.isString(1);
- * // => false
- */
- function isString(value) {
- return typeof value == 'string' ||
- (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag);
- }
-
- /**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isSymbol(Symbol.iterator);
- * // => true
- *
- * _.isSymbol('abc');
- * // => false
- */
- function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
- }
-
- /**
- * Checks if `value` is classified as a typed array.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isTypedArray(new Uint8Array);
- * // => true
- *
- * _.isTypedArray([]);
- * // => false
- */
- function isTypedArray(value) {
- return isObjectLike(value) &&
- isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
- }
-
- /**
- * Checks if `value` is `undefined`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
- * @example
- *
- * _.isUndefined(void 0);
- * // => true
- *
- * _.isUndefined(null);
- * // => false
- */
- function isUndefined(value) {
- return value === undefined;
- }
-
- /**
- * Checks if `value` is classified as a `WeakMap` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isWeakMap(new WeakMap);
- * // => true
- *
- * _.isWeakMap(new Map);
- * // => false
- */
- function isWeakMap(value) {
- return isObjectLike(value) && getTag(value) == weakMapTag;
- }
-
- /**
- * Checks if `value` is classified as a `WeakSet` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isWeakSet(new WeakSet);
- * // => true
- *
- * _.isWeakSet(new Set);
- * // => false
- */
- function isWeakSet(value) {
- return isObjectLike(value) && objectToString.call(value) == weakSetTag;
- }
-
- /**
- * Checks if `value` is less than `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- * @see _.gt
- * @example
- *
- * _.lt(1, 3);
- * // => true
- *
- * _.lt(3, 3);
- * // => false
- *
- * _.lt(3, 1);
- * // => false
- */
- var lt = createRelationalOperation(baseLt);
-
- /**
- * Checks if `value` is less than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than or equal to
- * `other`, else `false`.
- * @see _.gte
- * @example
- *
- * _.lte(1, 3);
- * // => true
- *
- * _.lte(3, 3);
- * // => true
- *
- * _.lte(3, 1);
- * // => false
- */
- var lte = createRelationalOperation(function(value, other) {
- return value <= other;
- });
-
- /**
- * Converts `value` to an array.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Array} Returns the converted array.
- * @example
- *
- * _.toArray({ 'a': 1, 'b': 2 });
- * // => [1, 2]
- *
- * _.toArray('abc');
- * // => ['a', 'b', 'c']
- *
- * _.toArray(1);
- * // => []
- *
- * _.toArray(null);
- * // => []
- */
- function toArray(value) {
- if (!value) {
- return [];
- }
- if (isArrayLike(value)) {
- return isString(value) ? stringToArray(value) : copyArray(value);
- }
- if (iteratorSymbol && value[iteratorSymbol]) {
- return iteratorToArray(value[iteratorSymbol]());
- }
- var tag = getTag(value),
- func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
-
- return func(value);
- }
-
- /**
- * Converts `value` to a finite number.
- *
- * @static
- * @memberOf _
- * @since 4.12.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted number.
- * @example
- *
- * _.toFinite(3.2);
- * // => 3.2
- *
- * _.toFinite(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toFinite(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toFinite('3.2');
- * // => 3.2
- */
- function toFinite(value) {
- if (!value) {
- return value === 0 ? value : 0;
- }
- value = toNumber(value);
- if (value === INFINITY || value === -INFINITY) {
- var sign = (value < 0 ? -1 : 1);
- return sign * MAX_INTEGER;
- }
- return value === value ? value : 0;
- }
-
- /**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
- function toInteger(value) {
- var result = toFinite(value),
- remainder = result % 1;
-
- return result === result ? (remainder ? result - remainder : result) : 0;
- }
-
- /**
- * Converts `value` to an integer suitable for use as the length of an
- * array-like object.
- *
- * **Note:** This method is based on
- * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toLength(3.2);
- * // => 3
- *
- * _.toLength(Number.MIN_VALUE);
- * // => 0
- *
- * _.toLength(Infinity);
- * // => 4294967295
- *
- * _.toLength('3.2');
- * // => 3
- */
- function toLength(value) {
- return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
- }
-
- /**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3.2);
- * // => 3.2
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3.2');
- * // => 3.2
- */
- function toNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- if (isObject(value)) {
- var other = isFunction(value.valueOf) ? value.valueOf() : value;
- value = isObject(other) ? (other + '') : other;
- }
- if (typeof value != 'string') {
- return value === 0 ? value : +value;
- }
- value = value.replace(reTrim, '');
- var isBinary = reIsBinary.test(value);
- return (isBinary || reIsOctal.test(value))
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
- : (reIsBadHex.test(value) ? NAN : +value);
- }
-
- /**
- * Converts `value` to a plain object flattening inherited enumerable string
- * keyed properties of `value` to own properties of the plain object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Object} Returns the converted plain object.
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.assign({ 'a': 1 }, new Foo);
- * // => { 'a': 1, 'b': 2 }
- *
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
- * // => { 'a': 1, 'b': 2, 'c': 3 }
- */
- function toPlainObject(value) {
- return copyObject(value, keysIn(value));
- }
-
- /**
- * Converts `value` to a safe integer. A safe integer can be compared and
- * represented correctly.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toSafeInteger(3.2);
- * // => 3
- *
- * _.toSafeInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toSafeInteger(Infinity);
- * // => 9007199254740991
- *
- * _.toSafeInteger('3.2');
- * // => 3
- */
- function toSafeInteger(value) {
- return baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);
- }
-
- /**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- function toString(value) {
- return value == null ? '' : baseToString(value);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Assigns own enumerable string keyed properties of source objects to the
- * destination object. Source objects are applied from left to right.
- * Subsequent sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object` and is loosely based on
- * [`Object.assign`](https://mdn.io/Object/assign).
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assignIn
- * @example
- *
- * function Foo() {
- * this.c = 3;
- * }
- *
- * function Bar() {
- * this.e = 5;
- * }
- *
- * Foo.prototype.d = 4;
- * Bar.prototype.f = 6;
- *
- * _.assign({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'c': 3, 'e': 5 }
- */
- var assign = createAssigner(function(object, source) {
- if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {
- copyObject(source, keys(source), object);
- return;
- }
- for (var key in source) {
- if (hasOwnProperty.call(source, key)) {
- assignValue(object, key, source[key]);
- }
- }
- });
-
- /**
- * This method is like `_.assign` except that it iterates over own and
- * inherited source properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extend
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assign
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * function Bar() {
- * this.d = 4;
- * }
- *
- * Foo.prototype.c = 3;
- * Bar.prototype.e = 5;
- *
- * _.assignIn({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
- */
- var assignIn = createAssigner(function(object, source) {
- if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {
- copyObject(source, keysIn(source), object);
- return;
- }
- for (var key in source) {
- assignValue(object, key, source[key]);
- }
- });
-
- /**
- * This method is like `_.assignIn` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extendWith
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignInWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keysIn(source), object, customizer);
- });
-
- /**
- * This method is like `_.assign` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignInWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keys(source), object, customizer);
- });
-
- /**
- * Creates an array of values corresponding to `paths` of `object`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {...(string|string[])} [paths] The property paths of elements to pick.
- * @returns {Array} Returns the picked values.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
- *
- * _.at(object, ['a[0].b.c', 'a[1]']);
- * // => [3, 4]
- */
- var at = rest(function(object, paths) {
- return baseAt(object, baseFlatten(paths, 1));
- });
-
- /**
- * Creates an object that inherits from the `prototype` object. If a
- * `properties` object is given, its own enumerable string keyed properties
- * are assigned to the created object.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Object
- * @param {Object} prototype The object to inherit from.
- * @param {Object} [properties] The properties to assign to the object.
- * @returns {Object} Returns the new object.
- * @example
- *
- * function Shape() {
- * this.x = 0;
- * this.y = 0;
- * }
- *
- * function Circle() {
- * Shape.call(this);
- * }
- *
- * Circle.prototype = _.create(Shape.prototype, {
- * 'constructor': Circle
- * });
- *
- * var circle = new Circle;
- * circle instanceof Circle;
- * // => true
- *
- * circle instanceof Shape;
- * // => true
- */
- function create(prototype, properties) {
- var result = baseCreate(prototype);
- return properties ? baseAssign(result, properties) : result;
- }
-
- /**
- * Assigns own and inherited enumerable string keyed properties of source
- * objects to the destination object for all destination properties that
- * resolve to `undefined`. Source objects are applied from left to right.
- * Once a property is set, additional values of the same property are ignored.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaultsDeep
- * @example
- *
- * _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
- * // => { 'user': 'barney', 'age': 36 }
- */
- var defaults = rest(function(args) {
- args.push(undefined, assignInDefaults);
- return apply(assignInWith, undefined, args);
- });
-
- /**
- * This method is like `_.defaults` except that it recursively assigns
- * default properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaults
- * @example
- *
- * _.defaultsDeep({ 'user': { 'name': 'barney' } }, { 'user': { 'name': 'fred', 'age': 36 } });
- * // => { 'user': { 'name': 'barney', 'age': 36 } }
- *
- */
- var defaultsDeep = rest(function(args) {
- args.push(undefined, mergeDefaults);
- return apply(mergeWith, undefined, args);
- });
-
- /**
- * This method is like `_.find` except that it returns the key of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Object
- * @param {Object} object The object to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element,
- * else `undefined`.
- * @example
- *
- * var users = {
- * 'barney': { 'age': 36, 'active': true },
- * 'fred': { 'age': 40, 'active': false },
- * 'pebbles': { 'age': 1, 'active': true }
- * };
- *
- * _.findKey(users, function(o) { return o.age < 40; });
- * // => 'barney' (iteration order is not guaranteed)
- *
- * // The `_.matches` iteratee shorthand.
- * _.findKey(users, { 'age': 1, 'active': true });
- * // => 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findKey(users, ['active', false]);
- * // => 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.findKey(users, 'active');
- * // => 'barney'
- */
- function findKey(object, predicate) {
- return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
- }
-
- /**
- * This method is like `_.findKey` except that it iterates over elements of
- * a collection in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element,
- * else `undefined`.
- * @example
- *
- * var users = {
- * 'barney': { 'age': 36, 'active': true },
- * 'fred': { 'age': 40, 'active': false },
- * 'pebbles': { 'age': 1, 'active': true }
- * };
- *
- * _.findLastKey(users, function(o) { return o.age < 40; });
- * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.findLastKey(users, { 'age': 36, 'active': true });
- * // => 'barney'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findLastKey(users, ['active', false]);
- * // => 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.findLastKey(users, 'active');
- * // => 'pebbles'
- */
- function findLastKey(object, predicate) {
- return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
- }
-
- /**
- * Iterates over own and inherited enumerable string keyed properties of an
- * object and invokes `iteratee` for each property. The iteratee is invoked
- * with three arguments: (value, key, object). Iteratee functions may exit
- * iteration early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 0.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forInRight
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forIn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
- */
- function forIn(object, iteratee) {
- return object == null
- ? object
- : baseFor(object, getIteratee(iteratee, 3), keysIn);
- }
-
- /**
- * This method is like `_.forIn` except that it iterates over properties of
- * `object` in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forIn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forInRight(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
- */
- function forInRight(object, iteratee) {
- return object == null
- ? object
- : baseForRight(object, getIteratee(iteratee, 3), keysIn);
- }
-
- /**
- * Iterates over own enumerable string keyed properties of an object and
- * invokes `iteratee` for each property. The iteratee is invoked with three
- * arguments: (value, key, object). Iteratee functions may exit iteration
- * early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 0.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forOwnRight
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
- function forOwn(object, iteratee) {
- return object && baseForOwn(object, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.forOwn` except that it iterates over properties of
- * `object` in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forOwn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwnRight(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
- */
- function forOwnRight(object, iteratee) {
- return object && baseForOwnRight(object, getIteratee(iteratee, 3));
- }
-
- /**
- * Creates an array of function property names from own enumerable properties
- * of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the function names.
- * @see _.functionsIn
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functions(new Foo);
- * // => ['a', 'b']
- */
- function functions(object) {
- return object == null ? [] : baseFunctions(object, keys(object));
- }
-
- /**
- * Creates an array of function property names from own and inherited
- * enumerable properties of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the function names.
- * @see _.functions
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functionsIn(new Foo);
- * // => ['a', 'b', 'c']
- */
- function functionsIn(object) {
- return object == null ? [] : baseFunctions(object, keysIn(object));
- }
-
- /**
- * Gets the value at `path` of `object`. If the resolved value is
- * `undefined`, the `defaultValue` is used in its place.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.get(object, 'a[0].b.c');
- * // => 3
- *
- * _.get(object, ['a', '0', 'b', 'c']);
- * // => 3
- *
- * _.get(object, 'a.b.c', 'default');
- * // => 'default'
- */
- function get(object, path, defaultValue) {
- var result = object == null ? undefined : baseGet(object, path);
- return result === undefined ? defaultValue : result;
- }
-
- /**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': 2 } };
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b');
- * // => true
- *
- * _.has(object, ['a', 'b']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
- function has(object, path) {
- return object != null && hasPath(object, path, baseHas);
- }
-
- /**
- * Checks if `path` is a direct or inherited property of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.hasIn(object, 'a');
- * // => true
- *
- * _.hasIn(object, 'a.b');
- * // => true
- *
- * _.hasIn(object, ['a', 'b']);
- * // => true
- *
- * _.hasIn(object, 'b');
- * // => false
- */
- function hasIn(object, path) {
- return object != null && hasPath(object, path, baseHasIn);
- }
-
- /**
- * Creates an object composed of the inverted keys and values of `object`.
- * If `object` contains duplicate values, subsequent values overwrite
- * property assignments of previous values.
- *
- * @static
- * @memberOf _
- * @since 0.7.0
- * @category Object
- * @param {Object} object The object to invert.
- * @returns {Object} Returns the new inverted object.
- * @example
- *
- * var object = { 'a': 1, 'b': 2, 'c': 1 };
- *
- * _.invert(object);
- * // => { '1': 'c', '2': 'b' }
- */
- var invert = createInverter(function(result, value, key) {
- result[value] = key;
- }, constant(identity));
-
- /**
- * This method is like `_.invert` except that the inverted object is generated
- * from the results of running each element of `object` thru `iteratee`. The
- * corresponding inverted value of each inverted key is an array of keys
- * responsible for generating the inverted value. The iteratee is invoked
- * with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.1.0
- * @category Object
- * @param {Object} object The object to invert.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Object} Returns the new inverted object.
- * @example
- *
- * var object = { 'a': 1, 'b': 2, 'c': 1 };
- *
- * _.invertBy(object);
- * // => { '1': ['a', 'c'], '2': ['b'] }
- *
- * _.invertBy(object, function(value) {
- * return 'group' + value;
- * });
- * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
- */
- var invertBy = createInverter(function(result, value, key) {
- if (hasOwnProperty.call(result, value)) {
- result[value].push(key);
- } else {
- result[value] = [key];
- }
- }, getIteratee);
-
- /**
- * Invokes the method at `path` of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
- *
- * _.invoke(object, 'a[0].b.c.slice', 1, 3);
- * // => [2, 3]
- */
- var invoke = rest(baseInvoke);
-
- /**
- * Creates an array of the own enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects. See the
- * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
- * for more details.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keys(new Foo);
- * // => ['a', 'b'] (iteration order is not guaranteed)
- *
- * _.keys('hi');
- * // => ['0', '1']
- */
- function keys(object) {
- var isProto = isPrototype(object);
- if (!(isProto || isArrayLike(object))) {
- return baseKeys(object);
- }
- var indexes = indexKeys(object),
- skipIndexes = !!indexes,
- result = indexes || [],
- length = result.length;
-
- for (var key in object) {
- if (baseHas(object, key) &&
- !(skipIndexes && (key == 'length' || isIndex(key, length))) &&
- !(isProto && key == 'constructor')) {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * Creates an array of the own and inherited enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keysIn(new Foo);
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
- */
- function keysIn(object) {
- var index = -1,
- isProto = isPrototype(object),
- props = baseKeysIn(object),
- propsLength = props.length,
- indexes = indexKeys(object),
- skipIndexes = !!indexes,
- result = indexes || [],
- length = result.length;
-
- while (++index < propsLength) {
- var key = props[index];
- if (!(skipIndexes && (key == 'length' || isIndex(key, length))) &&
- !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * The opposite of `_.mapValues`; this method creates an object with the
- * same values as `object` and keys generated by running each own enumerable
- * string keyed property of `object` thru `iteratee`. The iteratee is invoked
- * with three arguments: (value, key, object).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Object} Returns the new mapped object.
- * @see _.mapValues
- * @example
- *
- * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
- * return key + value;
- * });
- * // => { 'a1': 1, 'b2': 2 }
- */
- function mapKeys(object, iteratee) {
- var result = {};
- iteratee = getIteratee(iteratee, 3);
-
- baseForOwn(object, function(value, key, object) {
- result[iteratee(value, key, object)] = value;
- });
- return result;
- }
-
- /**
- * Creates an object with the same keys as `object` and values generated
- * by running each own enumerable string keyed property of `object` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, key, object).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Object} Returns the new mapped object.
- * @see _.mapKeys
- * @example
- *
- * var users = {
- * 'fred': { 'user': 'fred', 'age': 40 },
- * 'pebbles': { 'user': 'pebbles', 'age': 1 }
- * };
- *
- * _.mapValues(users, function(o) { return o.age; });
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
- *
- * // The `_.property` iteratee shorthand.
- * _.mapValues(users, 'age');
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
- */
- function mapValues(object, iteratee) {
- var result = {};
- iteratee = getIteratee(iteratee, 3);
-
- baseForOwn(object, function(value, key, object) {
- result[key] = iteratee(value, key, object);
- });
- return result;
- }
-
- /**
- * This method is like `_.assign` except that it recursively merges own and
- * inherited enumerable string keyed properties of source objects into the
- * destination object. Source properties that resolve to `undefined` are
- * skipped if a destination value exists. Array and plain object properties
- * are merged recursively. Other objects and value types are overridden by
- * assignment. Source objects are applied from left to right. Subsequent
- * sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var users = {
- * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
- * };
- *
- * var ages = {
- * 'data': [{ 'age': 36 }, { 'age': 40 }]
- * };
- *
- * _.merge(users, ages);
- * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
- */
- var merge = createAssigner(function(object, source, srcIndex) {
- baseMerge(object, source, srcIndex);
- });
-
- /**
- * This method is like `_.merge` except that it accepts `customizer` which
- * is invoked to produce the merged values of the destination and source
- * properties. If `customizer` returns `undefined`, merging is handled by the
- * method instead. The `customizer` is invoked with seven arguments:
- * (objValue, srcValue, key, object, source, stack).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} customizer The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function customizer(objValue, srcValue) {
- * if (_.isArray(objValue)) {
- * return objValue.concat(srcValue);
- * }
- * }
- *
- * var object = {
- * 'fruits': ['apple'],
- * 'vegetables': ['beet']
- * };
- *
- * var other = {
- * 'fruits': ['banana'],
- * 'vegetables': ['carrot']
- * };
- *
- * _.mergeWith(object, other, customizer);
- * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
- */
- var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
- baseMerge(object, source, srcIndex, customizer);
- });
-
- /**
- * The opposite of `_.pick`; this method creates an object composed of the
- * own and inherited enumerable string keyed properties of `object` that are
- * not omitted.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property identifiers to omit.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omit(object, ['a', 'c']);
- * // => { 'b': '2' }
- */
- var omit = rest(function(object, props) {
- if (object == null) {
- return {};
- }
- props = arrayMap(baseFlatten(props, 1), toKey);
- return basePick(object, baseDifference(getAllKeysIn(object), props));
- });
-
- /**
- * The opposite of `_.pickBy`; this method creates an object composed of
- * the own and inherited enumerable string keyed properties of `object` that
- * `predicate` doesn't return truthy for. The predicate is invoked with two
- * arguments: (value, key).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The source object.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omitBy(object, _.isNumber);
- * // => { 'b': '2' }
- */
- function omitBy(object, predicate) {
- predicate = getIteratee(predicate);
- return basePickBy(object, function(value, key) {
- return !predicate(value, key);
- });
- }
-
- /**
- * Creates an object composed of the picked `object` properties.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property identifiers to pick.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pick(object, ['a', 'c']);
- * // => { 'a': 1, 'c': 3 }
- */
- var pick = rest(function(object, props) {
- return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
- });
-
- /**
- * Creates an object composed of the `object` properties `predicate` returns
- * truthy for. The predicate is invoked with two arguments: (value, key).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The source object.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pickBy(object, _.isNumber);
- * // => { 'a': 1, 'c': 3 }
- */
- function pickBy(object, predicate) {
- return object == null ? {} : basePickBy(object, getIteratee(predicate));
- }
-
- /**
- * This method is like `_.get` except that if the resolved value is a
- * function it's invoked with the `this` binding of its parent object and
- * its result is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to resolve.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
- *
- * _.result(object, 'a[0].b.c1');
- * // => 3
- *
- * _.result(object, 'a[0].b.c2');
- * // => 4
- *
- * _.result(object, 'a[0].b.c3', 'default');
- * // => 'default'
- *
- * _.result(object, 'a[0].b.c3', _.constant('default'));
- * // => 'default'
- */
- function result(object, path, defaultValue) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var index = -1,
- length = path.length;
-
- // Ensure the loop is entered when path is empty.
- if (!length) {
- object = undefined;
- length = 1;
- }
- while (++index < length) {
- var value = object == null ? undefined : object[toKey(path[index])];
- if (value === undefined) {
- index = length;
- value = defaultValue;
- }
- object = isFunction(value) ? value.call(object) : value;
- }
- return object;
- }
-
- /**
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
- * it's created. Arrays are created for missing index properties while objects
- * are created for all other missing properties. Use `_.setWith` to customize
- * `path` creation.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.set(object, 'a[0].b.c', 4);
- * console.log(object.a[0].b.c);
- * // => 4
- *
- * _.set(object, ['x', '0', 'y', 'z'], 5);
- * console.log(object.x[0].y.z);
- * // => 5
- */
- function set(object, path, value) {
- return object == null ? object : baseSet(object, path, value);
- }
-
- /**
- * This method is like `_.set` except that it accepts `customizer` which is
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
- * path creation is handled by the method instead. The `customizer` is invoked
- * with three arguments: (nsValue, key, nsObject).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {};
- *
- * _.setWith(object, '[0][1]', 'a', Object);
- * // => { '0': { '1': 'a' } }
- */
- function setWith(object, path, value, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return object == null ? object : baseSet(object, path, value, customizer);
- }
-
- /**
- * Creates an array of own enumerable string keyed-value pairs for `object`
- * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
- * entries are returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias entries
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the key-value pairs.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.toPairs(new Foo);
- * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
- */
- var toPairs = createToPairs(keys);
-
- /**
- * Creates an array of own and inherited enumerable string keyed-value pairs
- * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
- * or set, its entries are returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias entriesIn
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the key-value pairs.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.toPairsIn(new Foo);
- * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
- */
- var toPairsIn = createToPairs(keysIn);
-
- /**
- * An alternative to `_.reduce`; this method transforms `object` to a new
- * `accumulator` object which is the result of running each of its own
- * enumerable string keyed properties thru `iteratee`, with each invocation
- * potentially mutating the `accumulator` object. If `accumulator` is not
- * provided, a new object with the same `[[Prototype]]` will be used. The
- * iteratee is invoked with four arguments: (accumulator, value, key, object).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The custom accumulator value.
- * @returns {*} Returns the accumulated value.
- * @example
- *
- * _.transform([2, 3, 4], function(result, n) {
- * result.push(n *= n);
- * return n % 2 == 0;
- * }, []);
- * // => [4, 9]
- *
- * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] }
- */
- function transform(object, iteratee, accumulator) {
- var isArr = isArray(object) || isTypedArray(object);
- iteratee = getIteratee(iteratee, 4);
-
- if (accumulator == null) {
- if (isArr || isObject(object)) {
- var Ctor = object.constructor;
- if (isArr) {
- accumulator = isArray(object) ? new Ctor : [];
- } else {
- accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
- }
- } else {
- accumulator = {};
- }
- }
- (isArr ? arrayEach : baseForOwn)(object, function(value, index, object) {
- return iteratee(accumulator, value, index, object);
- });
- return accumulator;
- }
-
- /**
- * Removes the property at `path` of `object`.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 7 } }] };
- * _.unset(object, 'a[0].b.c');
- * // => true
- *
- * console.log(object);
- * // => { 'a': [{ 'b': {} }] };
- *
- * _.unset(object, ['a', '0', 'b', 'c']);
- * // => true
- *
- * console.log(object);
- * // => { 'a': [{ 'b': {} }] };
- */
- function unset(object, path) {
- return object == null ? true : baseUnset(object, path);
- }
-
- /**
- * This method is like `_.set` except that accepts `updater` to produce the
- * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
- * is invoked with one argument: (value).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {Function} updater The function to produce the updated value.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.update(object, 'a[0].b.c', function(n) { return n * n; });
- * console.log(object.a[0].b.c);
- * // => 9
- *
- * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
- * console.log(object.x[0].y.z);
- * // => 0
- */
- function update(object, path, updater) {
- return object == null ? object : baseUpdate(object, path, castFunction(updater));
- }
-
- /**
- * This method is like `_.update` except that it accepts `customizer` which is
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
- * path creation is handled by the method instead. The `customizer` is invoked
- * with three arguments: (nsValue, key, nsObject).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {Function} updater The function to produce the updated value.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {};
- *
- * _.updateWith(object, '[0][1]', _.constant('a'), Object);
- * // => { '0': { '1': 'a' } }
- */
- function updateWith(object, path, updater, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
- }
-
- /**
- * Creates an array of the own enumerable string keyed property values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.values(new Foo);
- * // => [1, 2] (iteration order is not guaranteed)
- *
- * _.values('hi');
- * // => ['h', 'i']
- */
- function values(object) {
- return object ? baseValues(object, keys(object)) : [];
- }
-
- /**
- * Creates an array of the own and inherited enumerable string keyed property
- * values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.valuesIn(new Foo);
- * // => [1, 2, 3] (iteration order is not guaranteed)
- */
- function valuesIn(object) {
- return object == null ? [] : baseValues(object, keysIn(object));
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Clamps `number` within the inclusive `lower` and `upper` bounds.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Number
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- * @example
- *
- * _.clamp(-10, -5, 5);
- * // => -5
- *
- * _.clamp(10, -5, 5);
- * // => 5
- */
- function clamp(number, lower, upper) {
- if (upper === undefined) {
- upper = lower;
- lower = undefined;
- }
- if (upper !== undefined) {
- upper = toNumber(upper);
- upper = upper === upper ? upper : 0;
- }
- if (lower !== undefined) {
- lower = toNumber(lower);
- lower = lower === lower ? lower : 0;
- }
- return baseClamp(toNumber(number), lower, upper);
- }
-
- /**
- * Checks if `n` is between `start` and up to, but not including, `end`. If
- * `end` is not specified, it's set to `start` with `start` then set to `0`.
- * If `start` is greater than `end` the params are swapped to support
- * negative ranges.
- *
- * @static
- * @memberOf _
- * @since 3.3.0
- * @category Number
- * @param {number} number The number to check.
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- * @see _.range, _.rangeRight
- * @example
- *
- * _.inRange(3, 2, 4);
- * // => true
- *
- * _.inRange(4, 8);
- * // => true
- *
- * _.inRange(4, 2);
- * // => false
- *
- * _.inRange(2, 2);
- * // => false
- *
- * _.inRange(1.2, 2);
- * // => true
- *
- * _.inRange(5.2, 4);
- * // => false
- *
- * _.inRange(-3, -2, -6);
- * // => true
- */
- function inRange(number, start, end) {
- start = toNumber(start) || 0;
- if (end === undefined) {
- end = start;
- start = 0;
- } else {
- end = toNumber(end) || 0;
- }
- number = toNumber(number);
- return baseInRange(number, start, end);
- }
-
- /**
- * Produces a random number between the inclusive `lower` and `upper` bounds.
- * If only one argument is provided a number between `0` and the given number
- * is returned. If `floating` is `true`, or either `lower` or `upper` are
- * floats, a floating-point number is returned instead of an integer.
- *
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
- * floating-point values which can produce unexpected results.
- *
- * @static
- * @memberOf _
- * @since 0.7.0
- * @category Number
- * @param {number} [lower=0] The lower bound.
- * @param {number} [upper=1] The upper bound.
- * @param {boolean} [floating] Specify returning a floating-point number.
- * @returns {number} Returns the random number.
- * @example
- *
- * _.random(0, 5);
- * // => an integer between 0 and 5
- *
- * _.random(5);
- * // => also an integer between 0 and 5
- *
- * _.random(5, true);
- * // => a floating-point number between 0 and 5
- *
- * _.random(1.2, 5.2);
- * // => a floating-point number between 1.2 and 5.2
- */
- function random(lower, upper, floating) {
- if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
- upper = floating = undefined;
- }
- if (floating === undefined) {
- if (typeof upper == 'boolean') {
- floating = upper;
- upper = undefined;
- }
- else if (typeof lower == 'boolean') {
- floating = lower;
- lower = undefined;
- }
- }
- if (lower === undefined && upper === undefined) {
- lower = 0;
- upper = 1;
- }
- else {
- lower = toNumber(lower) || 0;
- if (upper === undefined) {
- upper = lower;
- lower = 0;
- } else {
- upper = toNumber(upper) || 0;
- }
- }
- if (lower > upper) {
- var temp = lower;
- lower = upper;
- upper = temp;
- }
- if (floating || lower % 1 || upper % 1) {
- var rand = nativeRandom();
- return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
- }
- return baseRandom(lower, upper);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the camel cased string.
- * @example
- *
- * _.camelCase('Foo Bar');
- * // => 'fooBar'
- *
- * _.camelCase('--foo-bar--');
- * // => 'fooBar'
- *
- * _.camelCase('__FOO_BAR__');
- * // => 'fooBar'
- */
- var camelCase = createCompounder(function(result, word, index) {
- word = word.toLowerCase();
- return result + (index ? capitalize(word) : word);
- });
-
- /**
- * Converts the first character of `string` to upper case and the remaining
- * to lower case.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to capitalize.
- * @returns {string} Returns the capitalized string.
- * @example
- *
- * _.capitalize('FRED');
- * // => 'Fred'
- */
- function capitalize(string) {
- return upperFirst(toString(string).toLowerCase());
- }
-
- /**
- * Deburrs `string` by converting
- * [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
- * to basic latin letters and removing
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to deburr.
- * @returns {string} Returns the deburred string.
- * @example
- *
- * _.deburr('déjà vu');
- * // => 'deja vu'
- */
- function deburr(string) {
- string = toString(string);
- return string && string.replace(reLatin1, deburrLetter).replace(reComboMark, '');
- }
-
- /**
- * Checks if `string` ends with the given target string.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to search.
- * @param {string} [target] The string to search for.
- * @param {number} [position=string.length] The position to search up to.
- * @returns {boolean} Returns `true` if `string` ends with `target`,
- * else `false`.
- * @example
- *
- * _.endsWith('abc', 'c');
- * // => true
- *
- * _.endsWith('abc', 'b');
- * // => false
- *
- * _.endsWith('abc', 'b', 2);
- * // => true
- */
- function endsWith(string, target, position) {
- string = toString(string);
- target = baseToString(target);
-
- var length = string.length;
- position = position === undefined
- ? length
- : baseClamp(toInteger(position), 0, length);
-
- position -= target.length;
- return position >= 0 && string.indexOf(target, position) == position;
- }
-
- /**
- * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to
- * their corresponding HTML entities.
- *
- * **Note:** No other characters are escaped. To escape additional
- * characters use a third-party library like [_he_](https://mths.be/he).
- *
- * Though the ">" character is escaped for symmetry, characters like
- * ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value. See
- * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
- * (under "semi-related fun fact") for more details.
- *
- * Backticks are escaped because in IE < 9, they can break out of
- * attribute values or HTML comments. See [#59](https://html5sec.org/#59),
- * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
- * [#133](https://html5sec.org/#133) of the
- * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
- *
- * When working with HTML you should always
- * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
- * XSS vectors.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escape('fred, barney, & pebbles');
- * // => 'fred, barney, &amp; pebbles'
- */
- function escape(string) {
- string = toString(string);
- return (string && reHasUnescapedHtml.test(string))
- ? string.replace(reUnescapedHtml, escapeHtmlChar)
- : string;
- }
-
- /**
- * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
- * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escapeRegExp('[lodash](https://lodash.com/)');
- * // => '\[lodash\]\(https://lodash\.com/\)'
- */
- function escapeRegExp(string) {
- string = toString(string);
- return (string && reHasRegExpChar.test(string))
- ? string.replace(reRegExpChar, '\\$&')
- : string;
- }
-
- /**
- * Converts `string` to
- * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the kebab cased string.
- * @example
- *
- * _.kebabCase('Foo Bar');
- * // => 'foo-bar'
- *
- * _.kebabCase('fooBar');
- * // => 'foo-bar'
- *
- * _.kebabCase('__FOO_BAR__');
- * // => 'foo-bar'
- */
- var kebabCase = createCompounder(function(result, word, index) {
- return result + (index ? '-' : '') + word.toLowerCase();
- });
-
- /**
- * Converts `string`, as space separated words, to lower case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the lower cased string.
- * @example
- *
- * _.lowerCase('--Foo-Bar--');
- * // => 'foo bar'
- *
- * _.lowerCase('fooBar');
- * // => 'foo bar'
- *
- * _.lowerCase('__FOO_BAR__');
- * // => 'foo bar'
- */
- var lowerCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + word.toLowerCase();
- });
-
- /**
- * Converts the first character of `string` to lower case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.lowerFirst('Fred');
- * // => 'fred'
- *
- * _.lowerFirst('FRED');
- * // => 'fRED'
- */
- var lowerFirst = createCaseFirst('toLowerCase');
-
- /**
- * Pads `string` on the left and right sides if it's shorter than `length`.
- * Padding characters are truncated if they can't be evenly divided by `length`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.pad('abc', 8);
- * // => ' abc '
- *
- * _.pad('abc', 8, '_-');
- * // => '_-abc_-_'
- *
- * _.pad('abc', 3);
- * // => 'abc'
- */
- function pad(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- if (!length || strLength >= length) {
- return string;
- }
- var mid = (length - strLength) / 2;
- return (
- createPadding(nativeFloor(mid), chars) +
- string +
- createPadding(nativeCeil(mid), chars)
- );
- }
-
- /**
- * Pads `string` on the right side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padEnd('abc', 6);
- * // => 'abc '
- *
- * _.padEnd('abc', 6, '_-');
- * // => 'abc_-_'
- *
- * _.padEnd('abc', 3);
- * // => 'abc'
- */
- function padEnd(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (string + createPadding(length - strLength, chars))
- : string;
- }
-
- /**
- * Pads `string` on the left side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padStart('abc', 6);
- * // => ' abc'
- *
- * _.padStart('abc', 6, '_-');
- * // => '_-_abc'
- *
- * _.padStart('abc', 3);
- * // => 'abc'
- */
- function padStart(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (createPadding(length - strLength, chars) + string)
- : string;
- }
-
- /**
- * Converts `string` to an integer of the specified radix. If `radix` is
- * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
- * hexadecimal, in which case a `radix` of `16` is used.
- *
- * **Note:** This method aligns with the
- * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category String
- * @param {string} string The string to convert.
- * @param {number} [radix=10] The radix to interpret `value` by.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.parseInt('08');
- * // => 8
- *
- * _.map(['6', '08', '10'], _.parseInt);
- * // => [6, 8, 10]
- */
- function parseInt(string, radix, guard) {
- // Chrome fails to trim leading <BOM> whitespace characters.
- // See https://bugs.chromium.org/p/v8/issues/detail?id=3109 for more details.
- if (guard || radix == null) {
- radix = 0;
- } else if (radix) {
- radix = +radix;
- }
- string = toString(string).replace(reTrim, '');
- return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10));
- }
-
- /**
- * Repeats the given string `n` times.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to repeat.
- * @param {number} [n=1] The number of times to repeat the string.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the repeated string.
- * @example
- *
- * _.repeat('*', 3);
- * // => '***'
- *
- * _.repeat('abc', 2);
- * // => 'abcabc'
- *
- * _.repeat('abc', 0);
- * // => ''
- */
- function repeat(string, n, guard) {
- if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
- n = 1;
- } else {
- n = toInteger(n);
- }
- return baseRepeat(toString(string), n);
- }
-
- /**
- * Replaces matches for `pattern` in `string` with `replacement`.
- *
- * **Note:** This method is based on
- * [`String#replace`](https://mdn.io/String/replace).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to modify.
- * @param {RegExp|string} pattern The pattern to replace.
- * @param {Function|string} replacement The match replacement.
- * @returns {string} Returns the modified string.
- * @example
- *
- * _.replace('Hi Fred', 'Fred', 'Barney');
- * // => 'Hi Barney'
- */
- function replace() {
- var args = arguments,
- string = toString(args[0]);
-
- return args.length < 3 ? string : nativeReplace.call(string, args[1], args[2]);
- }
-
- /**
- * Converts `string` to
- * [snake case](https://en.wikipedia.org/wiki/Snake_case).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the snake cased string.
- * @example
- *
- * _.snakeCase('Foo Bar');
- * // => 'foo_bar'
- *
- * _.snakeCase('fooBar');
- * // => 'foo_bar'
- *
- * _.snakeCase('--FOO-BAR--');
- * // => 'foo_bar'
- */
- var snakeCase = createCompounder(function(result, word, index) {
- return result + (index ? '_' : '') + word.toLowerCase();
- });
-
- /**
- * Splits `string` by `separator`.
- *
- * **Note:** This method is based on
- * [`String#split`](https://mdn.io/String/split).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to split.
- * @param {RegExp|string} separator The separator pattern to split by.
- * @param {number} [limit] The length to truncate results to.
- * @returns {Array} Returns the string segments.
- * @example
- *
- * _.split('a-b-c', '-', 2);
- * // => ['a', 'b']
- */
- function split(string, separator, limit) {
- if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
- separator = limit = undefined;
- }
- limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
- if (!limit) {
- return [];
- }
- string = toString(string);
- if (string && (
- typeof separator == 'string' ||
- (separator != null && !isRegExp(separator))
- )) {
- separator = baseToString(separator);
- if (separator == '' && reHasComplexSymbol.test(string)) {
- return castSlice(stringToArray(string), 0, limit);
- }
- }
- return nativeSplit.call(string, separator, limit);
- }
-
- /**
- * Converts `string` to
- * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
- *
- * @static
- * @memberOf _
- * @since 3.1.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the start cased string.
- * @example
- *
- * _.startCase('--foo-bar--');
- * // => 'Foo Bar'
- *
- * _.startCase('fooBar');
- * // => 'Foo Bar'
- *
- * _.startCase('__FOO_BAR__');
- * // => 'FOO BAR'
- */
- var startCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + upperFirst(word);
- });
-
- /**
- * Checks if `string` starts with the given target string.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to search.
- * @param {string} [target] The string to search for.
- * @param {number} [position=0] The position to search from.
- * @returns {boolean} Returns `true` if `string` starts with `target`,
- * else `false`.
- * @example
- *
- * _.startsWith('abc', 'a');
- * // => true
- *
- * _.startsWith('abc', 'b');
- * // => false
- *
- * _.startsWith('abc', 'b', 1);
- * // => true
- */
- function startsWith(string, target, position) {
- string = toString(string);
- position = baseClamp(toInteger(position), 0, string.length);
- return string.lastIndexOf(baseToString(target), position) == position;
- }
-
- /**
- * Creates a compiled template function that can interpolate data properties
- * in "interpolate" delimiters, HTML-escape interpolated data properties in
- * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
- * properties may be accessed as free variables in the template. If a setting
- * object is given, it takes precedence over `_.templateSettings` values.
- *
- * **Note:** In the development build `_.template` utilizes
- * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
- * for easier debugging.
- *
- * For more information on precompiling templates see
- * [lodash's custom builds documentation](https://lodash.com/custom-builds).
- *
- * For more information on Chrome extension sandboxes see
- * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The template string.
- * @param {Object} [options={}] The options object.
- * @param {RegExp} [options.escape=_.templateSettings.escape]
- * The HTML "escape" delimiter.
- * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
- * The "evaluate" delimiter.
- * @param {Object} [options.imports=_.templateSettings.imports]
- * An object to import into the template as free variables.
- * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
- * The "interpolate" delimiter.
- * @param {string} [options.sourceURL='lodash.templateSources[n]']
- * The sourceURL of the compiled template.
- * @param {string} [options.variable='obj']
- * The data object variable name.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the compiled template function.
- * @example
- *
- * // Use the "interpolate" delimiter to create a compiled template.
- * var compiled = _.template('hello <%= user %>!');
- * compiled({ 'user': 'fred' });
- * // => 'hello fred!'
- *
- * // Use the HTML "escape" delimiter to escape data property values.
- * var compiled = _.template('<b><%- value %></b>');
- * compiled({ 'value': '<script>' });
- * // => '<b>&lt;script&gt;</b>'
- *
- * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
- * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
- * compiled({ 'users': ['fred', 'barney'] });
- * // => '<li>fred</li><li>barney</li>'
- *
- * // Use the internal `print` function in "evaluate" delimiters.
- * var compiled = _.template('<% print("hello " + user); %>!');
- * compiled({ 'user': 'barney' });
- * // => 'hello barney!'
- *
- * // Use the ES delimiter as an alternative to the default "interpolate" delimiter.
- * var compiled = _.template('hello ${ user }!');
- * compiled({ 'user': 'pebbles' });
- * // => 'hello pebbles!'
- *
- * // Use backslashes to treat delimiters as plain text.
- * var compiled = _.template('<%= "\\<%- value %\\>" %>');
- * compiled({ 'value': 'ignored' });
- * // => '<%- value %>'
- *
- * // Use the `imports` option to import `jQuery` as `jq`.
- * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
- * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
- * compiled({ 'users': ['fred', 'barney'] });
- * // => '<li>fred</li><li>barney</li>'
- *
- * // Use the `sourceURL` option to specify a custom sourceURL for the template.
- * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
- * compiled(data);
- * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
- *
- * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
- * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
- * compiled.source;
- * // => function(data) {
- * // var __t, __p = '';
- * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
- * // return __p;
- * // }
- *
- * // Use custom template delimiters.
- * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
- * var compiled = _.template('hello {{ user }}!');
- * compiled({ 'user': 'mustache' });
- * // => 'hello mustache!'
- *
- * // Use the `source` property to inline compiled templates for meaningful
- * // line numbers in error messages and stack traces.
- * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
- * var JST = {\
- * "main": ' + _.template(mainText).source + '\
- * };\
- * ');
- */
- function template(string, options, guard) {
- // Based on John Resig's `tmpl` implementation
- // (http://ejohn.org/blog/javascript-micro-templating/)
- // and Laura Doktorova's doT.js (https://github.com/olado/doT).
- var settings = lodash.templateSettings;
-
- if (guard && isIterateeCall(string, options, guard)) {
- options = undefined;
- }
- string = toString(string);
- options = assignInWith({}, options, settings, assignInDefaults);
-
- var imports = assignInWith({}, options.imports, settings.imports, assignInDefaults),
- importsKeys = keys(imports),
- importsValues = baseValues(imports, importsKeys);
-
- var isEscaping,
- isEvaluating,
- index = 0,
- interpolate = options.interpolate || reNoMatch,
- source = "__p += '";
-
- // Compile the regexp to match each delimiter.
- var reDelimiters = RegExp(
- (options.escape || reNoMatch).source + '|' +
- interpolate.source + '|' +
- (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
- (options.evaluate || reNoMatch).source + '|$'
- , 'g');
-
- // Use a sourceURL for easier debugging.
- var sourceURL = '//# sourceURL=' +
- ('sourceURL' in options
- ? options.sourceURL
- : ('lodash.templateSources[' + (++templateCounter) + ']')
- ) + '\n';
-
- string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
- interpolateValue || (interpolateValue = esTemplateValue);
-
- // Escape characters that can't be included in string literals.
- source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
-
- // Replace delimiters with snippets.
- if (escapeValue) {
- isEscaping = true;
- source += "' +\n__e(" + escapeValue + ") +\n'";
- }
- if (evaluateValue) {
- isEvaluating = true;
- source += "';\n" + evaluateValue + ";\n__p += '";
- }
- if (interpolateValue) {
- source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
- }
- index = offset + match.length;
-
- // The JS engine embedded in Adobe products needs `match` returned in
- // order to produce the correct `offset` value.
- return match;
- });
-
- source += "';\n";
-
- // If `variable` is not specified wrap a with-statement around the generated
- // code to add the data object to the top of the scope chain.
- var variable = options.variable;
- if (!variable) {
- source = 'with (obj) {\n' + source + '\n}\n';
- }
- // Cleanup code by stripping empty strings.
- source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
- .replace(reEmptyStringMiddle, '$1')
- .replace(reEmptyStringTrailing, '$1;');
-
- // Frame code as the function body.
- source = 'function(' + (variable || 'obj') + ') {\n' +
- (variable
- ? ''
- : 'obj || (obj = {});\n'
- ) +
- "var __t, __p = ''" +
- (isEscaping
- ? ', __e = _.escape'
- : ''
- ) +
- (isEvaluating
- ? ', __j = Array.prototype.join;\n' +
- "function print() { __p += __j.call(arguments, '') }\n"
- : ';\n'
- ) +
- source +
- 'return __p\n}';
-
- var result = attempt(function() {
- return Function(importsKeys, sourceURL + 'return ' + source)
- .apply(undefined, importsValues);
- });
-
- // Provide the compiled function's source by its `toString` method or
- // the `source` property as a convenience for inlining compiled templates.
- result.source = source;
- if (isError(result)) {
- throw result;
- }
- return result;
- }
-
- /**
- * Converts `string`, as a whole, to lower case just like
- * [String#toLowerCase](https://mdn.io/toLowerCase).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the lower cased string.
- * @example
- *
- * _.toLower('--Foo-Bar--');
- * // => '--foo-bar--'
- *
- * _.toLower('fooBar');
- * // => 'foobar'
- *
- * _.toLower('__FOO_BAR__');
- * // => '__foo_bar__'
- */
- function toLower(value) {
- return toString(value).toLowerCase();
- }
-
- /**
- * Converts `string`, as a whole, to upper case just like
- * [String#toUpperCase](https://mdn.io/toUpperCase).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the upper cased string.
- * @example
- *
- * _.toUpper('--foo-bar--');
- * // => '--FOO-BAR--'
- *
- * _.toUpper('fooBar');
- * // => 'FOOBAR'
- *
- * _.toUpper('__foo_bar__');
- * // => '__FOO_BAR__'
- */
- function toUpper(value) {
- return toString(value).toUpperCase();
- }
-
- /**
- * Removes leading and trailing whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trim(' abc ');
- * // => 'abc'
- *
- * _.trim('-_-abc-_-', '_-');
- * // => 'abc'
- *
- * _.map([' foo ', ' bar '], _.trim);
- * // => ['foo', 'bar']
- */
- function trim(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrim, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- chrSymbols = stringToArray(chars),
- start = charsStartIndex(strSymbols, chrSymbols),
- end = charsEndIndex(strSymbols, chrSymbols) + 1;
-
- return castSlice(strSymbols, start, end).join('');
- }
-
- /**
- * Removes trailing whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trimEnd(' abc ');
- * // => ' abc'
- *
- * _.trimEnd('-_-abc-_-', '_-');
- * // => '-_-abc'
- */
- function trimEnd(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrimEnd, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
-
- return castSlice(strSymbols, 0, end).join('');
- }
-
- /**
- * Removes leading whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trimStart(' abc ');
- * // => 'abc '
- *
- * _.trimStart('-_-abc-_-', '_-');
- * // => 'abc-_-'
- */
- function trimStart(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrimStart, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- start = charsStartIndex(strSymbols, stringToArray(chars));
-
- return castSlice(strSymbols, start).join('');
- }
-
- /**
- * Truncates `string` if it's longer than the given maximum string length.
- * The last characters of the truncated string are replaced with the omission
- * string which defaults to "...".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to truncate.
- * @param {Object} [options={}] The options object.
- * @param {number} [options.length=30] The maximum string length.
- * @param {string} [options.omission='...'] The string to indicate text is omitted.
- * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
- * @returns {string} Returns the truncated string.
- * @example
- *
- * _.truncate('hi-diddly-ho there, neighborino');
- * // => 'hi-diddly-ho there, neighbo...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'length': 24,
- * 'separator': ' '
- * });
- * // => 'hi-diddly-ho there,...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'length': 24,
- * 'separator': /,? +/
- * });
- * // => 'hi-diddly-ho there...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'omission': ' [...]'
- * });
- * // => 'hi-diddly-ho there, neig [...]'
- */
- function truncate(string, options) {
- var length = DEFAULT_TRUNC_LENGTH,
- omission = DEFAULT_TRUNC_OMISSION;
-
- if (isObject(options)) {
- var separator = 'separator' in options ? options.separator : separator;
- length = 'length' in options ? toInteger(options.length) : length;
- omission = 'omission' in options ? baseToString(options.omission) : omission;
- }
- string = toString(string);
-
- var strLength = string.length;
- if (reHasComplexSymbol.test(string)) {
- var strSymbols = stringToArray(string);
- strLength = strSymbols.length;
- }
- if (length >= strLength) {
- return string;
- }
- var end = length - stringSize(omission);
- if (end < 1) {
- return omission;
- }
- var result = strSymbols
- ? castSlice(strSymbols, 0, end).join('')
- : string.slice(0, end);
-
- if (separator === undefined) {
- return result + omission;
- }
- if (strSymbols) {
- end += (result.length - end);
- }
- if (isRegExp(separator)) {
- if (string.slice(end).search(separator)) {
- var match,
- substring = result;
-
- if (!separator.global) {
- separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
- }
- separator.lastIndex = 0;
- while ((match = separator.exec(substring))) {
- var newEnd = match.index;
- }
- result = result.slice(0, newEnd === undefined ? end : newEnd);
- }
- } else if (string.indexOf(baseToString(separator), end) != end) {
- var index = result.lastIndexOf(separator);
- if (index > -1) {
- result = result.slice(0, index);
- }
- }
- return result + omission;
- }
-
- /**
- * The inverse of `_.escape`; this method converts the HTML entities
- * `&amp;`, `&lt;`, `&gt;`, `&quot;`, `&#39;`, and `&#96;` in `string` to
- * their corresponding characters.
- *
- * **Note:** No other HTML entities are unescaped. To unescape additional
- * HTML entities use a third-party library like [_he_](https://mths.be/he).
- *
- * @static
- * @memberOf _
- * @since 0.6.0
- * @category String
- * @param {string} [string=''] The string to unescape.
- * @returns {string} Returns the unescaped string.
- * @example
- *
- * _.unescape('fred, barney, &amp; pebbles');
- * // => 'fred, barney, & pebbles'
- */
- function unescape(string) {
- string = toString(string);
- return (string && reHasEscapedHtml.test(string))
- ? string.replace(reEscapedHtml, unescapeHtmlChar)
- : string;
- }
-
- /**
- * Converts `string`, as space separated words, to upper case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the upper cased string.
- * @example
- *
- * _.upperCase('--foo-bar');
- * // => 'FOO BAR'
- *
- * _.upperCase('fooBar');
- * // => 'FOO BAR'
- *
- * _.upperCase('__foo_bar__');
- * // => 'FOO BAR'
- */
- var upperCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + word.toUpperCase();
- });
-
- /**
- * Converts the first character of `string` to upper case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.upperFirst('fred');
- * // => 'Fred'
- *
- * _.upperFirst('FRED');
- * // => 'FRED'
- */
- var upperFirst = createCaseFirst('toUpperCase');
-
- /**
- * Splits `string` into an array of its words.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to inspect.
- * @param {RegExp|string} [pattern] The pattern to match words.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the words of `string`.
- * @example
- *
- * _.words('fred, barney, & pebbles');
- * // => ['fred', 'barney', 'pebbles']
- *
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
- * // => ['fred', 'barney', '&', 'pebbles']
- */
- function words(string, pattern, guard) {
- string = toString(string);
- pattern = guard ? undefined : pattern;
-
- if (pattern === undefined) {
- pattern = reHasComplexWord.test(string) ? reComplexWord : reBasicWord;
- }
- return string.match(pattern) || [];
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Attempts to invoke `func`, returning either the result or the caught error
- * object. Any additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Function} func The function to attempt.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {*} Returns the `func` result or error object.
- * @example
- *
- * // Avoid throwing errors for invalid selectors.
- * var elements = _.attempt(function(selector) {
- * return document.querySelectorAll(selector);
- * }, '>_>');
- *
- * if (_.isError(elements)) {
- * elements = [];
- * }
- */
- var attempt = rest(function(func, args) {
- try {
- return apply(func, undefined, args);
- } catch (e) {
- return isError(e) ? e : new Error(e);
- }
- });
-
- /**
- * Binds methods of an object to the object itself, overwriting the existing
- * method.
- *
- * **Note:** This method doesn't set the "length" property of bound functions.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Object} object The object to bind and assign the bound methods to.
- * @param {...(string|string[])} methodNames The object method names to bind.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var view = {
- * 'label': 'docs',
- * 'onClick': function() {
- * console.log('clicked ' + this.label);
- * }
- * };
- *
- * _.bindAll(view, ['onClick']);
- * jQuery(element).on('click', view.onClick);
- * // => Logs 'clicked docs' when clicked.
- */
- var bindAll = rest(function(object, methodNames) {
- arrayEach(baseFlatten(methodNames, 1), function(key) {
- key = toKey(key);
- object[key] = bind(object[key], object);
- });
- return object;
- });
-
- /**
- * Creates a function that iterates over `pairs` and invokes the corresponding
- * function of the first predicate to return truthy. The predicate-function
- * pairs are invoked with the `this` binding and arguments of the created
- * function.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {Array} pairs The predicate-function pairs.
- * @returns {Function} Returns the new composite function.
- * @example
- *
- * var func = _.cond([
- * [_.matches({ 'a': 1 }), _.constant('matches A')],
- * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
- * [_.constant(true), _.constant('no match')]
- * ]);
- *
- * func({ 'a': 1, 'b': 2 });
- * // => 'matches A'
- *
- * func({ 'a': 0, 'b': 1 });
- * // => 'matches B'
- *
- * func({ 'a': '1', 'b': '2' });
- * // => 'no match'
- */
- function cond(pairs) {
- var length = pairs ? pairs.length : 0,
- toIteratee = getIteratee();
-
- pairs = !length ? [] : arrayMap(pairs, function(pair) {
- if (typeof pair[1] != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return [toIteratee(pair[0]), pair[1]];
- });
-
- return rest(function(args) {
- var index = -1;
- while (++index < length) {
- var pair = pairs[index];
- if (apply(pair[0], this, args)) {
- return apply(pair[1], this, args);
- }
- }
- });
- }
-
- /**
- * Creates a function that invokes the predicate properties of `source` with
- * the corresponding property values of a given object, returning `true` if
- * all predicates return truthy, else `false`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * _.filter(users, _.conforms({ 'age': function(n) { return n > 38; } }));
- * // => [{ 'user': 'fred', 'age': 40 }]
- */
- function conforms(source) {
- return baseConforms(baseClone(source, true));
- }
-
- /**
- * Creates a function that returns `value`.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {*} value The value to return from the new function.
- * @returns {Function} Returns the new constant function.
- * @example
- *
- * var objects = _.times(2, _.constant({ 'a': 1 }));
- *
- * console.log(objects);
- * // => [{ 'a': 1 }, { 'a': 1 }]
- *
- * console.log(objects[0] === objects[1]);
- * // => true
- */
- function constant(value) {
- return function() {
- return value;
- };
- }
-
- /**
- * Creates a function that returns the result of invoking the given functions
- * with the `this` binding of the created function, where each successive
- * invocation is supplied the return value of the previous.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {...(Function|Function[])} [funcs] Functions to invoke.
- * @returns {Function} Returns the new composite function.
- * @see _.flowRight
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var addSquare = _.flow([_.add, square]);
- * addSquare(1, 2);
- * // => 9
- */
- var flow = createFlow();
-
- /**
- * This method is like `_.flow` except that it creates a function that
- * invokes the given functions from right to left.
- *
- * @static
- * @since 3.0.0
- * @memberOf _
- * @category Util
- * @param {...(Function|Function[])} [funcs] Functions to invoke.
- * @returns {Function} Returns the new composite function.
- * @see _.flow
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var addSquare = _.flowRight([square, _.add]);
- * addSquare(1, 2);
- * // => 9
- */
- var flowRight = createFlow(true);
-
- /**
- * This method returns the first argument given to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'user': 'fred' };
- *
- * console.log(_.identity(object) === object);
- * // => true
- */
- function identity(value) {
- return value;
- }
-
- /**
- * Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name, the created function returns the
- * property value for a given element. If `func` is an array or object, the
- * created function returns `true` for elements that contain the equivalent
- * source properties, otherwise it returns `false`.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Util
- * @param {*} [func=_.identity] The value to convert to a callback.
- * @returns {Function} Returns the callback.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
- * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, _.iteratee(['user', 'fred']));
- * // => [{ 'user': 'fred', 'age': 40 }]
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, _.iteratee('user'));
- * // => ['barney', 'fred']
- *
- * // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
- * return !_.isRegExp(func) ? iteratee(func) : function(string) {
- * return func.test(string);
- * };
- * });
- *
- * _.filter(['abc', 'def'], /ef/);
- * // => ['def']
- */
- function iteratee(func) {
- return baseIteratee(typeof func == 'function' ? func : baseClone(func, true));
- }
-
- /**
- * Creates a function that performs a partial deep comparison between a given
- * object and `source`, returning `true` if the given object has equivalent
- * property values, else `false`. The created function is equivalent to
- * `_.isMatch` with a `source` partially applied.
- *
- * **Note:** This method supports comparing the same values as `_.isEqual`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, _.matches({ 'age': 40, 'active': false }));
- * // => [{ 'user': 'fred', 'age': 40, 'active': false }]
- */
- function matches(source) {
- return baseMatches(baseClone(source, true));
- }
-
- /**
- * Creates a function that performs a partial deep comparison between the
- * value at `path` of a given object to `srcValue`, returning `true` if the
- * object value is equivalent, else `false`.
- *
- * **Note:** This method supports comparing the same values as `_.isEqual`.
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var users = [
- * { 'user': 'barney' },
- * { 'user': 'fred' }
- * ];
- *
- * _.find(users, _.matchesProperty('user', 'fred'));
- * // => { 'user': 'fred' }
- */
- function matchesProperty(path, srcValue) {
- return baseMatchesProperty(path, baseClone(srcValue, true));
- }
-
- /**
- * Creates a function that invokes the method at `path` of a given object.
- * Any additional arguments are provided to the invoked method.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Util
- * @param {Array|string} path The path of the method to invoke.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {Function} Returns the new invoker function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': _.constant(2) } },
- * { 'a': { 'b': _.constant(1) } }
- * ];
- *
- * _.map(objects, _.method('a.b'));
- * // => [2, 1]
- *
- * _.map(objects, _.method(['a', 'b']));
- * // => [2, 1]
- */
- var method = rest(function(path, args) {
- return function(object) {
- return baseInvoke(object, path, args);
- };
- });
-
- /**
- * The opposite of `_.method`; this method creates a function that invokes
- * the method at a given path of `object`. Any additional arguments are
- * provided to the invoked method.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Util
- * @param {Object} object The object to query.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {Function} Returns the new invoker function.
- * @example
- *
- * var array = _.times(3, _.constant),
- * object = { 'a': array, 'b': array, 'c': array };
- *
- * _.map(['a[2]', 'c[0]'], _.methodOf(object));
- * // => [2, 0]
- *
- * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
- * // => [2, 0]
- */
- var methodOf = rest(function(object, args) {
- return function(path) {
- return baseInvoke(object, path, args);
- };
- });
-
- /**
- * Adds all own enumerable string keyed function properties of a source
- * object to the destination object. If `object` is a function, then methods
- * are added to its prototype as well.
- *
- * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
- * avoid conflicts caused by modifying the original.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Function|Object} [object=lodash] The destination object.
- * @param {Object} source The object of functions to add.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
- * @returns {Function|Object} Returns `object`.
- * @example
- *
- * function vowels(string) {
- * return _.filter(string, function(v) {
- * return /[aeiou]/i.test(v);
- * });
- * }
- *
- * _.mixin({ 'vowels': vowels });
- * _.vowels('fred');
- * // => ['e']
- *
- * _('fred').vowels().value();
- * // => ['e']
- *
- * _.mixin({ 'vowels': vowels }, { 'chain': false });
- * _('fred').vowels();
- * // => ['e']
- */
- function mixin(object, source, options) {
- var props = keys(source),
- methodNames = baseFunctions(source, props);
-
- if (options == null &&
- !(isObject(source) && (methodNames.length || !props.length))) {
- options = source;
- source = object;
- object = this;
- methodNames = baseFunctions(source, keys(source));
- }
- var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
- isFunc = isFunction(object);
-
- arrayEach(methodNames, function(methodName) {
- var func = source[methodName];
- object[methodName] = func;
- if (isFunc) {
- object.prototype[methodName] = function() {
- var chainAll = this.__chain__;
- if (chain || chainAll) {
- var result = object(this.__wrapped__),
- actions = result.__actions__ = copyArray(this.__actions__);
-
- actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
- result.__chain__ = chainAll;
- return result;
- }
- return func.apply(object, arrayPush([this.value()], arguments));
- };
- }
- });
-
- return object;
- }
-
- /**
- * Reverts the `_` variable to its previous value and returns a reference to
- * the `lodash` function.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @returns {Function} Returns the `lodash` function.
- * @example
- *
- * var lodash = _.noConflict();
- */
- function noConflict() {
- if (root._ === this) {
- root._ = oldDash;
- }
- return this;
- }
-
- /**
- * A method that returns `undefined`.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Util
- * @example
- *
- * _.times(2, _.noop);
- * // => [undefined, undefined]
- */
- function noop() {
- // No operation performed.
- }
-
- /**
- * Creates a function that gets the argument at index `n`. If `n` is negative,
- * the nth argument from the end is returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {number} [n=0] The index of the argument to return.
- * @returns {Function} Returns the new pass-thru function.
- * @example
- *
- * var func = _.nthArg(1);
- * func('a', 'b', 'c', 'd');
- * // => 'b'
- *
- * var func = _.nthArg(-2);
- * func('a', 'b', 'c', 'd');
- * // => 'c'
- */
- function nthArg(n) {
- n = toInteger(n);
- return rest(function(args) {
- return baseNth(args, n);
- });
- }
-
- /**
- * Creates a function that invokes `iteratees` with the arguments it receives
- * and returns their results.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [iteratees=[_.identity]] The iteratees to invoke.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.over([Math.max, Math.min]);
- *
- * func(1, 2, 3, 4);
- * // => [4, 1]
- */
- var over = createOver(arrayMap);
-
- /**
- * Creates a function that checks if **all** of the `predicates` return
- * truthy when invoked with the arguments it receives.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [predicates=[_.identity]] The predicates to check.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.overEvery([Boolean, isFinite]);
- *
- * func('1');
- * // => true
- *
- * func(null);
- * // => false
- *
- * func(NaN);
- * // => false
- */
- var overEvery = createOver(arrayEvery);
-
- /**
- * Creates a function that checks if **any** of the `predicates` return
- * truthy when invoked with the arguments it receives.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [predicates=[_.identity]] The predicates to check.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.overSome([Boolean, isFinite]);
- *
- * func('1');
- * // => true
- *
- * func(null);
- * // => true
- *
- * func(NaN);
- * // => false
- */
- var overSome = createOver(arraySome);
-
- /**
- * Creates a function that returns the value at `path` of a given object.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': 2 } },
- * { 'a': { 'b': 1 } }
- * ];
- *
- * _.map(objects, _.property('a.b'));
- * // => [2, 1]
- *
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
- * // => [1, 2]
- */
- function property(path) {
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
- }
-
- /**
- * The opposite of `_.property`; this method creates a function that returns
- * the value at a given path of `object`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} object The object to query.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var array = [0, 1, 2],
- * object = { 'a': array, 'b': array, 'c': array };
- *
- * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
- * // => [2, 0]
- *
- * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
- * // => [2, 0]
- */
- function propertyOf(object) {
- return function(path) {
- return object == null ? undefined : baseGet(object, path);
- };
- }
-
- /**
- * Creates an array of numbers (positive and/or negative) progressing from
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
- * `start` is specified without an `end` or `step`. If `end` is not specified,
- * it's set to `start` with `start` then set to `0`.
- *
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
- * floating-point values which can produce unexpected results.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the range of numbers.
- * @see _.inRange, _.rangeRight
- * @example
- *
- * _.range(4);
- * // => [0, 1, 2, 3]
- *
- * _.range(-4);
- * // => [0, -1, -2, -3]
- *
- * _.range(1, 5);
- * // => [1, 2, 3, 4]
- *
- * _.range(0, 20, 5);
- * // => [0, 5, 10, 15]
- *
- * _.range(0, -4, -1);
- * // => [0, -1, -2, -3]
- *
- * _.range(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.range(0);
- * // => []
- */
- var range = createRange();
-
- /**
- * This method is like `_.range` except that it populates values in
- * descending order.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the range of numbers.
- * @see _.inRange, _.range
- * @example
- *
- * _.rangeRight(4);
- * // => [3, 2, 1, 0]
- *
- * _.rangeRight(-4);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 5);
- * // => [4, 3, 2, 1]
- *
- * _.rangeRight(0, 20, 5);
- * // => [15, 10, 5, 0]
- *
- * _.rangeRight(0, -4, -1);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.rangeRight(0);
- * // => []
- */
- var rangeRight = createRange(true);
-
- /**
- * A method that returns a new empty array.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Array} Returns the new empty array.
- * @example
- *
- * var arrays = _.times(2, _.stubArray);
- *
- * console.log(arrays);
- * // => [[], []]
- *
- * console.log(arrays[0] === arrays[1]);
- * // => false
- */
- function stubArray() {
- return [];
- }
-
- /**
- * A method that returns `false`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `false`.
- * @example
- *
- * _.times(2, _.stubFalse);
- * // => [false, false]
- */
- function stubFalse() {
- return false;
- }
-
- /**
- * A method that returns a new empty object.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Object} Returns the new empty object.
- * @example
- *
- * var objects = _.times(2, _.stubObject);
- *
- * console.log(objects);
- * // => [{}, {}]
- *
- * console.log(objects[0] === objects[1]);
- * // => false
- */
- function stubObject() {
- return {};
- }
-
- /**
- * A method that returns an empty string.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {string} Returns the empty string.
- * @example
- *
- * _.times(2, _.stubString);
- * // => ['', '']
- */
- function stubString() {
- return '';
- }
-
- /**
- * A method that returns `true`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `true`.
- * @example
- *
- * _.times(2, _.stubTrue);
- * // => [true, true]
- */
- function stubTrue() {
- return true;
- }
-
- /**
- * Invokes the iteratee `n` times, returning an array of the results of
- * each invocation. The iteratee is invoked with one argument; (index).
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- * @example
- *
- * _.times(3, String);
- * // => ['0', '1', '2']
- *
- * _.times(4, _.constant(0));
- * // => [0, 0, 0, 0]
- */
- function times(n, iteratee) {
- n = toInteger(n);
- if (n < 1 || n > MAX_SAFE_INTEGER) {
- return [];
- }
- var index = MAX_ARRAY_LENGTH,
- length = nativeMin(n, MAX_ARRAY_LENGTH);
-
- iteratee = getIteratee(iteratee);
- n -= MAX_ARRAY_LENGTH;
-
- var result = baseTimes(length, iteratee);
- while (++index < n) {
- iteratee(index);
- }
- return result;
- }
-
- /**
- * Converts `value` to a property path array.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {*} value The value to convert.
- * @returns {Array} Returns the new property path array.
- * @example
- *
- * _.toPath('a.b.c');
- * // => ['a', 'b', 'c']
- *
- * _.toPath('a[0].b.c');
- * // => ['a', '0', 'b', 'c']
- */
- function toPath(value) {
- if (isArray(value)) {
- return arrayMap(value, toKey);
- }
- return isSymbol(value) ? [value] : copyArray(stringToPath(value));
- }
-
- /**
- * Generates a unique ID. If `prefix` is given, the ID is appended to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {string} [prefix=''] The value to prefix the ID with.
- * @returns {string} Returns the unique ID.
- * @example
- *
- * _.uniqueId('contact_');
- * // => 'contact_104'
- *
- * _.uniqueId();
- * // => '105'
- */
- function uniqueId(prefix) {
- var id = ++idCounter;
- return toString(prefix) + id;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Adds two numbers.
- *
- * @static
- * @memberOf _
- * @since 3.4.0
- * @category Math
- * @param {number} augend The first number in an addition.
- * @param {number} addend The second number in an addition.
- * @returns {number} Returns the total.
- * @example
- *
- * _.add(6, 4);
- * // => 10
- */
- var add = createMathOperation(function(augend, addend) {
- return augend + addend;
- });
-
- /**
- * Computes `number` rounded up to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round up.
- * @param {number} [precision=0] The precision to round up to.
- * @returns {number} Returns the rounded up number.
- * @example
- *
- * _.ceil(4.006);
- * // => 5
- *
- * _.ceil(6.004, 2);
- * // => 6.01
- *
- * _.ceil(6040, -2);
- * // => 6100
- */
- var ceil = createRound('ceil');
-
- /**
- * Divide two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {number} dividend The first number in a division.
- * @param {number} divisor The second number in a division.
- * @returns {number} Returns the quotient.
- * @example
- *
- * _.divide(6, 4);
- * // => 1.5
- */
- var divide = createMathOperation(function(dividend, divisor) {
- return dividend / divisor;
- });
-
- /**
- * Computes `number` rounded down to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round down.
- * @param {number} [precision=0] The precision to round down to.
- * @returns {number} Returns the rounded down number.
- * @example
- *
- * _.floor(4.006);
- * // => 4
- *
- * _.floor(0.046, 2);
- * // => 0.04
- *
- * _.floor(4060, -2);
- * // => 4000
- */
- var floor = createRound('floor');
-
- /**
- * Computes the maximum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * _.max([4, 2, 8, 6]);
- * // => 8
- *
- * _.max([]);
- * // => undefined
- */
- function max(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseGt)
- : undefined;
- }
-
- /**
- * This method is like `_.max` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.maxBy(objects, function(o) { return o.n; });
- * // => { 'n': 2 }
- *
- * // The `_.property` iteratee shorthand.
- * _.maxBy(objects, 'n');
- * // => { 'n': 2 }
- */
- function maxBy(array, iteratee) {
- return (array && array.length)
- ? baseExtremum(array, getIteratee(iteratee), baseGt)
- : undefined;
- }
-
- /**
- * Computes the mean of the values in `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the mean.
- * @example
- *
- * _.mean([4, 2, 8, 6]);
- * // => 5
- */
- function mean(array) {
- return baseMean(array, identity);
- }
-
- /**
- * This method is like `_.mean` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be averaged.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {number} Returns the mean.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.meanBy(objects, function(o) { return o.n; });
- * // => 5
- *
- * // The `_.property` iteratee shorthand.
- * _.meanBy(objects, 'n');
- * // => 5
- */
- function meanBy(array, iteratee) {
- return baseMean(array, getIteratee(iteratee));
- }
-
- /**
- * Computes the minimum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * _.min([4, 2, 8, 6]);
- * // => 2
- *
- * _.min([]);
- * // => undefined
- */
- function min(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseLt)
- : undefined;
- }
-
- /**
- * This method is like `_.min` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.minBy(objects, function(o) { return o.n; });
- * // => { 'n': 1 }
- *
- * // The `_.property` iteratee shorthand.
- * _.minBy(objects, 'n');
- * // => { 'n': 1 }
- */
- function minBy(array, iteratee) {
- return (array && array.length)
- ? baseExtremum(array, getIteratee(iteratee), baseLt)
- : undefined;
- }
-
- /**
- * Multiply two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {number} multiplier The first number in a multiplication.
- * @param {number} multiplicand The second number in a multiplication.
- * @returns {number} Returns the product.
- * @example
- *
- * _.multiply(6, 4);
- * // => 24
- */
- var multiply = createMathOperation(function(multiplier, multiplicand) {
- return multiplier * multiplicand;
- });
-
- /**
- * Computes `number` rounded to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round.
- * @param {number} [precision=0] The precision to round to.
- * @returns {number} Returns the rounded number.
- * @example
- *
- * _.round(4.006);
- * // => 4
- *
- * _.round(4.006, 2);
- * // => 4.01
- *
- * _.round(4060, -2);
- * // => 4100
- */
- var round = createRound('round');
-
- /**
- * Subtract two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {number} minuend The first number in a subtraction.
- * @param {number} subtrahend The second number in a subtraction.
- * @returns {number} Returns the difference.
- * @example
- *
- * _.subtract(6, 4);
- * // => 2
- */
- var subtract = createMathOperation(function(minuend, subtrahend) {
- return minuend - subtrahend;
- });
-
- /**
- * Computes the sum of the values in `array`.
- *
- * @static
- * @memberOf _
- * @since 3.4.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the sum.
- * @example
- *
- * _.sum([4, 2, 8, 6]);
- * // => 20
- */
- function sum(array) {
- return (array && array.length)
- ? baseSum(array, identity)
- : 0;
- }
-
- /**
- * This method is like `_.sum` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be summed.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {number} Returns the sum.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.sumBy(objects, function(o) { return o.n; });
- * // => 20
- *
- * // The `_.property` iteratee shorthand.
- * _.sumBy(objects, 'n');
- * // => 20
- */
- function sumBy(array, iteratee) {
- return (array && array.length)
- ? baseSum(array, getIteratee(iteratee))
- : 0;
- }
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return wrapped values in chain sequences.
- lodash.after = after;
- lodash.ary = ary;
- lodash.assign = assign;
- lodash.assignIn = assignIn;
- lodash.assignInWith = assignInWith;
- lodash.assignWith = assignWith;
- lodash.at = at;
- lodash.before = before;
- lodash.bind = bind;
- lodash.bindAll = bindAll;
- lodash.bindKey = bindKey;
- lodash.castArray = castArray;
- lodash.chain = chain;
- lodash.chunk = chunk;
- lodash.compact = compact;
- lodash.concat = concat;
- lodash.cond = cond;
- lodash.conforms = conforms;
- lodash.constant = constant;
- lodash.countBy = countBy;
- lodash.create = create;
- lodash.curry = curry;
- lodash.curryRight = curryRight;
- lodash.debounce = debounce;
- lodash.defaults = defaults;
- lodash.defaultsDeep = defaultsDeep;
- lodash.defer = defer;
- lodash.delay = delay;
- lodash.difference = difference;
- lodash.differenceBy = differenceBy;
- lodash.differenceWith = differenceWith;
- lodash.drop = drop;
- lodash.dropRight = dropRight;
- lodash.dropRightWhile = dropRightWhile;
- lodash.dropWhile = dropWhile;
- lodash.fill = fill;
- lodash.filter = filter;
- lodash.flatMap = flatMap;
- lodash.flatMapDeep = flatMapDeep;
- lodash.flatMapDepth = flatMapDepth;
- lodash.flatten = flatten;
- lodash.flattenDeep = flattenDeep;
- lodash.flattenDepth = flattenDepth;
- lodash.flip = flip;
- lodash.flow = flow;
- lodash.flowRight = flowRight;
- lodash.fromPairs = fromPairs;
- lodash.functions = functions;
- lodash.functionsIn = functionsIn;
- lodash.groupBy = groupBy;
- lodash.initial = initial;
- lodash.intersection = intersection;
- lodash.intersectionBy = intersectionBy;
- lodash.intersectionWith = intersectionWith;
- lodash.invert = invert;
- lodash.invertBy = invertBy;
- lodash.invokeMap = invokeMap;
- lodash.iteratee = iteratee;
- lodash.keyBy = keyBy;
- lodash.keys = keys;
- lodash.keysIn = keysIn;
- lodash.map = map;
- lodash.mapKeys = mapKeys;
- lodash.mapValues = mapValues;
- lodash.matches = matches;
- lodash.matchesProperty = matchesProperty;
- lodash.memoize = memoize;
- lodash.merge = merge;
- lodash.mergeWith = mergeWith;
- lodash.method = method;
- lodash.methodOf = methodOf;
- lodash.mixin = mixin;
- lodash.negate = negate;
- lodash.nthArg = nthArg;
- lodash.omit = omit;
- lodash.omitBy = omitBy;
- lodash.once = once;
- lodash.orderBy = orderBy;
- lodash.over = over;
- lodash.overArgs = overArgs;
- lodash.overEvery = overEvery;
- lodash.overSome = overSome;
- lodash.partial = partial;
- lodash.partialRight = partialRight;
- lodash.partition = partition;
- lodash.pick = pick;
- lodash.pickBy = pickBy;
- lodash.property = property;
- lodash.propertyOf = propertyOf;
- lodash.pull = pull;
- lodash.pullAll = pullAll;
- lodash.pullAllBy = pullAllBy;
- lodash.pullAllWith = pullAllWith;
- lodash.pullAt = pullAt;
- lodash.range = range;
- lodash.rangeRight = rangeRight;
- lodash.rearg = rearg;
- lodash.reject = reject;
- lodash.remove = remove;
- lodash.rest = rest;
- lodash.reverse = reverse;
- lodash.sampleSize = sampleSize;
- lodash.set = set;
- lodash.setWith = setWith;
- lodash.shuffle = shuffle;
- lodash.slice = slice;
- lodash.sortBy = sortBy;
- lodash.sortedUniq = sortedUniq;
- lodash.sortedUniqBy = sortedUniqBy;
- lodash.split = split;
- lodash.spread = spread;
- lodash.tail = tail;
- lodash.take = take;
- lodash.takeRight = takeRight;
- lodash.takeRightWhile = takeRightWhile;
- lodash.takeWhile = takeWhile;
- lodash.tap = tap;
- lodash.throttle = throttle;
- lodash.thru = thru;
- lodash.toArray = toArray;
- lodash.toPairs = toPairs;
- lodash.toPairsIn = toPairsIn;
- lodash.toPath = toPath;
- lodash.toPlainObject = toPlainObject;
- lodash.transform = transform;
- lodash.unary = unary;
- lodash.union = union;
- lodash.unionBy = unionBy;
- lodash.unionWith = unionWith;
- lodash.uniq = uniq;
- lodash.uniqBy = uniqBy;
- lodash.uniqWith = uniqWith;
- lodash.unset = unset;
- lodash.unzip = unzip;
- lodash.unzipWith = unzipWith;
- lodash.update = update;
- lodash.updateWith = updateWith;
- lodash.values = values;
- lodash.valuesIn = valuesIn;
- lodash.without = without;
- lodash.words = words;
- lodash.wrap = wrap;
- lodash.xor = xor;
- lodash.xorBy = xorBy;
- lodash.xorWith = xorWith;
- lodash.zip = zip;
- lodash.zipObject = zipObject;
- lodash.zipObjectDeep = zipObjectDeep;
- lodash.zipWith = zipWith;
-
- // Add aliases.
- lodash.entries = toPairs;
- lodash.entriesIn = toPairsIn;
- lodash.extend = assignIn;
- lodash.extendWith = assignInWith;
-
- // Add methods to `lodash.prototype`.
- mixin(lodash, lodash);
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return unwrapped values in chain sequences.
- lodash.add = add;
- lodash.attempt = attempt;
- lodash.camelCase = camelCase;
- lodash.capitalize = capitalize;
- lodash.ceil = ceil;
- lodash.clamp = clamp;
- lodash.clone = clone;
- lodash.cloneDeep = cloneDeep;
- lodash.cloneDeepWith = cloneDeepWith;
- lodash.cloneWith = cloneWith;
- lodash.deburr = deburr;
- lodash.divide = divide;
- lodash.endsWith = endsWith;
- lodash.eq = eq;
- lodash.escape = escape;
- lodash.escapeRegExp = escapeRegExp;
- lodash.every = every;
- lodash.find = find;
- lodash.findIndex = findIndex;
- lodash.findKey = findKey;
- lodash.findLast = findLast;
- lodash.findLastIndex = findLastIndex;
- lodash.findLastKey = findLastKey;
- lodash.floor = floor;
- lodash.forEach = forEach;
- lodash.forEachRight = forEachRight;
- lodash.forIn = forIn;
- lodash.forInRight = forInRight;
- lodash.forOwn = forOwn;
- lodash.forOwnRight = forOwnRight;
- lodash.get = get;
- lodash.gt = gt;
- lodash.gte = gte;
- lodash.has = has;
- lodash.hasIn = hasIn;
- lodash.head = head;
- lodash.identity = identity;
- lodash.includes = includes;
- lodash.indexOf = indexOf;
- lodash.inRange = inRange;
- lodash.invoke = invoke;
- lodash.isArguments = isArguments;
- lodash.isArray = isArray;
- lodash.isArrayBuffer = isArrayBuffer;
- lodash.isArrayLike = isArrayLike;
- lodash.isArrayLikeObject = isArrayLikeObject;
- lodash.isBoolean = isBoolean;
- lodash.isBuffer = isBuffer;
- lodash.isDate = isDate;
- lodash.isElement = isElement;
- lodash.isEmpty = isEmpty;
- lodash.isEqual = isEqual;
- lodash.isEqualWith = isEqualWith;
- lodash.isError = isError;
- lodash.isFinite = isFinite;
- lodash.isFunction = isFunction;
- lodash.isInteger = isInteger;
- lodash.isLength = isLength;
- lodash.isMap = isMap;
- lodash.isMatch = isMatch;
- lodash.isMatchWith = isMatchWith;
- lodash.isNaN = isNaN;
- lodash.isNative = isNative;
- lodash.isNil = isNil;
- lodash.isNull = isNull;
- lodash.isNumber = isNumber;
- lodash.isObject = isObject;
- lodash.isObjectLike = isObjectLike;
- lodash.isPlainObject = isPlainObject;
- lodash.isRegExp = isRegExp;
- lodash.isSafeInteger = isSafeInteger;
- lodash.isSet = isSet;
- lodash.isString = isString;
- lodash.isSymbol = isSymbol;
- lodash.isTypedArray = isTypedArray;
- lodash.isUndefined = isUndefined;
- lodash.isWeakMap = isWeakMap;
- lodash.isWeakSet = isWeakSet;
- lodash.join = join;
- lodash.kebabCase = kebabCase;
- lodash.last = last;
- lodash.lastIndexOf = lastIndexOf;
- lodash.lowerCase = lowerCase;
- lodash.lowerFirst = lowerFirst;
- lodash.lt = lt;
- lodash.lte = lte;
- lodash.max = max;
- lodash.maxBy = maxBy;
- lodash.mean = mean;
- lodash.meanBy = meanBy;
- lodash.min = min;
- lodash.minBy = minBy;
- lodash.stubArray = stubArray;
- lodash.stubFalse = stubFalse;
- lodash.stubObject = stubObject;
- lodash.stubString = stubString;
- lodash.stubTrue = stubTrue;
- lodash.multiply = multiply;
- lodash.nth = nth;
- lodash.noConflict = noConflict;
- lodash.noop = noop;
- lodash.now = now;
- lodash.pad = pad;
- lodash.padEnd = padEnd;
- lodash.padStart = padStart;
- lodash.parseInt = parseInt;
- lodash.random = random;
- lodash.reduce = reduce;
- lodash.reduceRight = reduceRight;
- lodash.repeat = repeat;
- lodash.replace = replace;
- lodash.result = result;
- lodash.round = round;
- lodash.runInContext = runInContext;
- lodash.sample = sample;
- lodash.size = size;
- lodash.snakeCase = snakeCase;
- lodash.some = some;
- lodash.sortedIndex = sortedIndex;
- lodash.sortedIndexBy = sortedIndexBy;
- lodash.sortedIndexOf = sortedIndexOf;
- lodash.sortedLastIndex = sortedLastIndex;
- lodash.sortedLastIndexBy = sortedLastIndexBy;
- lodash.sortedLastIndexOf = sortedLastIndexOf;
- lodash.startCase = startCase;
- lodash.startsWith = startsWith;
- lodash.subtract = subtract;
- lodash.sum = sum;
- lodash.sumBy = sumBy;
- lodash.template = template;
- lodash.times = times;
- lodash.toFinite = toFinite;
- lodash.toInteger = toInteger;
- lodash.toLength = toLength;
- lodash.toLower = toLower;
- lodash.toNumber = toNumber;
- lodash.toSafeInteger = toSafeInteger;
- lodash.toString = toString;
- lodash.toUpper = toUpper;
- lodash.trim = trim;
- lodash.trimEnd = trimEnd;
- lodash.trimStart = trimStart;
- lodash.truncate = truncate;
- lodash.unescape = unescape;
- lodash.uniqueId = uniqueId;
- lodash.upperCase = upperCase;
- lodash.upperFirst = upperFirst;
-
- // Add aliases.
- lodash.each = forEach;
- lodash.eachRight = forEachRight;
- lodash.first = head;
-
- mixin(lodash, (function() {
- var source = {};
- baseForOwn(lodash, function(func, methodName) {
- if (!hasOwnProperty.call(lodash.prototype, methodName)) {
- source[methodName] = func;
- }
- });
- return source;
- }()), { 'chain': false });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * The semantic version number.
- *
- * @static
- * @memberOf _
- * @type {string}
- */
- lodash.VERSION = VERSION;
-
- // Assign default placeholders.
- arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
- lodash[methodName].placeholder = lodash;
- });
-
- // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
- arrayEach(['drop', 'take'], function(methodName, index) {
- LazyWrapper.prototype[methodName] = function(n) {
- var filtered = this.__filtered__;
- if (filtered && !index) {
- return new LazyWrapper(this);
- }
- n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
-
- var result = this.clone();
- if (filtered) {
- result.__takeCount__ = nativeMin(n, result.__takeCount__);
- } else {
- result.__views__.push({
- 'size': nativeMin(n, MAX_ARRAY_LENGTH),
- 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
- });
- }
- return result;
- };
-
- LazyWrapper.prototype[methodName + 'Right'] = function(n) {
- return this.reverse()[methodName](n).reverse();
- };
- });
-
- // Add `LazyWrapper` methods that accept an `iteratee` value.
- arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
- var type = index + 1,
- isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
-
- LazyWrapper.prototype[methodName] = function(iteratee) {
- var result = this.clone();
- result.__iteratees__.push({
- 'iteratee': getIteratee(iteratee, 3),
- 'type': type
- });
- result.__filtered__ = result.__filtered__ || isFilter;
- return result;
- };
- });
-
- // Add `LazyWrapper` methods for `_.head` and `_.last`.
- arrayEach(['head', 'last'], function(methodName, index) {
- var takeName = 'take' + (index ? 'Right' : '');
-
- LazyWrapper.prototype[methodName] = function() {
- return this[takeName](1).value()[0];
- };
- });
-
- // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
- arrayEach(['initial', 'tail'], function(methodName, index) {
- var dropName = 'drop' + (index ? '' : 'Right');
-
- LazyWrapper.prototype[methodName] = function() {
- return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
- };
- });
-
- LazyWrapper.prototype.compact = function() {
- return this.filter(identity);
- };
-
- LazyWrapper.prototype.find = function(predicate) {
- return this.filter(predicate).head();
- };
-
- LazyWrapper.prototype.findLast = function(predicate) {
- return this.reverse().find(predicate);
- };
-
- LazyWrapper.prototype.invokeMap = rest(function(path, args) {
- if (typeof path == 'function') {
- return new LazyWrapper(this);
- }
- return this.map(function(value) {
- return baseInvoke(value, path, args);
- });
- });
-
- LazyWrapper.prototype.reject = function(predicate) {
- predicate = getIteratee(predicate, 3);
- return this.filter(function(value) {
- return !predicate(value);
- });
- };
-
- LazyWrapper.prototype.slice = function(start, end) {
- start = toInteger(start);
-
- var result = this;
- if (result.__filtered__ && (start > 0 || end < 0)) {
- return new LazyWrapper(result);
- }
- if (start < 0) {
- result = result.takeRight(-start);
- } else if (start) {
- result = result.drop(start);
- }
- if (end !== undefined) {
- end = toInteger(end);
- result = end < 0 ? result.dropRight(-end) : result.take(end - start);
- }
- return result;
- };
-
- LazyWrapper.prototype.takeRightWhile = function(predicate) {
- return this.reverse().takeWhile(predicate).reverse();
- };
-
- LazyWrapper.prototype.toArray = function() {
- return this.take(MAX_ARRAY_LENGTH);
- };
-
- // Add `LazyWrapper` methods to `lodash.prototype`.
- baseForOwn(LazyWrapper.prototype, function(func, methodName) {
- var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
- isTaker = /^(?:head|last)$/.test(methodName),
- lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
- retUnwrapped = isTaker || /^find/.test(methodName);
-
- if (!lodashFunc) {
- return;
- }
- lodash.prototype[methodName] = function() {
- var value = this.__wrapped__,
- args = isTaker ? [1] : arguments,
- isLazy = value instanceof LazyWrapper,
- iteratee = args[0],
- useLazy = isLazy || isArray(value);
-
- var interceptor = function(value) {
- var result = lodashFunc.apply(lodash, arrayPush([value], args));
- return (isTaker && chainAll) ? result[0] : result;
- };
-
- if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
- // Avoid lazy use if the iteratee has a "length" value other than `1`.
- isLazy = useLazy = false;
- }
- var chainAll = this.__chain__,
- isHybrid = !!this.__actions__.length,
- isUnwrapped = retUnwrapped && !chainAll,
- onlyLazy = isLazy && !isHybrid;
-
- if (!retUnwrapped && useLazy) {
- value = onlyLazy ? value : new LazyWrapper(this);
- var result = func.apply(value, args);
- result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
- return new LodashWrapper(result, chainAll);
- }
- if (isUnwrapped && onlyLazy) {
- return func.apply(this, args);
- }
- result = this.thru(interceptor);
- return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
- };
- });
-
- // Add `Array` methods to `lodash.prototype`.
- arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
- var func = arrayProto[methodName],
- chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
- retUnwrapped = /^(?:pop|shift)$/.test(methodName);
-
- lodash.prototype[methodName] = function() {
- var args = arguments;
- if (retUnwrapped && !this.__chain__) {
- var value = this.value();
- return func.apply(isArray(value) ? value : [], args);
- }
- return this[chainName](function(value) {
- return func.apply(isArray(value) ? value : [], args);
- });
- };
- });
-
- // Map minified method names to their real names.
- baseForOwn(LazyWrapper.prototype, function(func, methodName) {
- var lodashFunc = lodash[methodName];
- if (lodashFunc) {
- var key = (lodashFunc.name + ''),
- names = realNames[key] || (realNames[key] = []);
-
- names.push({ 'name': methodName, 'func': lodashFunc });
- }
- });
-
- realNames[createHybridWrapper(undefined, BIND_KEY_FLAG).name] = [{
- 'name': 'wrapper',
- 'func': undefined
- }];
-
- // Add methods to `LazyWrapper`.
- LazyWrapper.prototype.clone = lazyClone;
- LazyWrapper.prototype.reverse = lazyReverse;
- LazyWrapper.prototype.value = lazyValue;
-
- // Add chain sequence methods to the `lodash` wrapper.
- lodash.prototype.at = wrapperAt;
- lodash.prototype.chain = wrapperChain;
- lodash.prototype.commit = wrapperCommit;
- lodash.prototype.next = wrapperNext;
- lodash.prototype.plant = wrapperPlant;
- lodash.prototype.reverse = wrapperReverse;
- lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
-
- if (iteratorSymbol) {
- lodash.prototype[iteratorSymbol] = wrapperToIterator;
- }
- return lodash;
- }
-
- /*--------------------------------------------------------------------------*/
-
- // Export lodash.
- var _ = runInContext();
-
- // Expose Lodash on the free variable `window` or `self` when available so it's
- // globally accessible, even when bundled with Browserify, Webpack, etc. This
- // also prevents errors in cases where Lodash is loaded by a script tag in the
- // presence of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch
- // for more details. Use `_.noConflict` to remove Lodash from the global object.
- (freeSelf || {})._ = _;
-
- // Some AMD build optimizers like r.js check for condition patterns like the following:
- if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
- // Define as an anonymous module so, through path mapping, it can be
- // referenced as the "underscore" module.
- define(function() {
- return _;
- });
- }
- // Check for `exports` after `define` in case a build optimizer adds an `exports` object.
- else if (freeModule) {
- // Export for Node.js.
- (freeModule.exports = _)._ = _;
- // Export for CommonJS support.
- freeExports._ = _;
- }
- else {
- // Export to the global object.
- root._ = _;
- }
-}.call(this));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.min.js b/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.min.js
deleted file mode 100644
index 018b6a76..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/dist/lodash.min.js
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * @license
- * lodash lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
- */
-;(function(){function t(t,n){return t.set(n[0],n[1]),t}function n(t,n){return t.add(n),t}function r(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function e(t,n,r,e){for(var u=-1,o=t?t.length:0;++u<o;){var i=t[u];n(e,i,r(i),t)}return e}function u(t,n){for(var r=-1,e=t?t.length:0;++r<e&&false!==n(t[r],r,t););return t}function o(t,n){for(var r=t?t.length:0;r--&&false!==n(t[r],r,t););
-return t}function i(t,n){for(var r=-1,e=t?t.length:0;++r<e;)if(!n(t[r],r,t))return false;return true}function f(t,n){for(var r=-1,e=t?t.length:0,u=0,o=[];++r<e;){var i=t[r];n(i,r,t)&&(o[u++]=i)}return o}function c(t,n){return!(!t||!t.length)&&-1<d(t,n,0)}function a(t,n,r){for(var e=-1,u=t?t.length:0;++e<u;)if(r(n,t[e]))return true;return false}function l(t,n){for(var r=-1,e=t?t.length:0,u=Array(e);++r<e;)u[r]=n(t[r],r,t);return u}function s(t,n){for(var r=-1,e=n.length,u=t.length;++r<e;)t[u+r]=n[r];return t}function h(t,n,r,e){
-var u=-1,o=t?t.length:0;for(e&&o&&(r=t[++u]);++u<o;)r=n(r,t[u],u,t);return r}function p(t,n,r,e){var u=t?t.length:0;for(e&&u&&(r=t[--u]);u--;)r=n(r,t[u],u,t);return r}function _(t,n){for(var r=-1,e=t?t.length:0;++r<e;)if(n(t[r],r,t))return true;return false}function v(t,n,r){var e;return r(t,function(t,r,u){return n(t,r,u)?(e=r,false):void 0}),e}function g(t,n,r,e){var u=t.length;for(r+=e?1:-1;e?r--:++r<u;)if(n(t[r],r,t))return r;return-1}function d(t,n,r){if(n!==n)return M(t,r);--r;for(var e=t.length;++r<e;)if(t[r]===n)return r;
-return-1}function y(t,n,r,e){--r;for(var u=t.length;++r<u;)if(e(t[r],n))return r;return-1}function b(t,n){var r=t?t.length:0;return r?w(t,n)/r:V}function x(t,n,r,e,u){return u(t,function(t,u,o){r=e?(e=false,t):n(r,t,u,o)}),r}function j(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].c;return t}function w(t,n){for(var r,e=-1,u=t.length;++e<u;){var o=n(t[e]);o!==T&&(r=r===T?o:r+o)}return r}function m(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}function A(t,n){return l(n,function(n){return[n,t[n]];
-})}function O(t){return function(n){return t(n)}}function k(t,n){return l(n,function(n){return t[n]})}function E(t,n){return t.has(n)}function S(t,n){for(var r=-1,e=t.length;++r<e&&-1<d(n,t[r],0););return r}function I(t,n){for(var r=t.length;r--&&-1<d(n,t[r],0););return r}function R(t){return t&&t.Object===Object?t:null}function W(t){return zt[t]}function B(t){return Ut[t]}function L(t){return"\\"+Dt[t]}function M(t,n,r){var e=t.length;for(n+=r?1:-1;r?n--:++n<e;){var u=t[n];if(u!==u)return n}return-1;
-}function C(t){var n=false;if(null!=t&&typeof t.toString!="function")try{n=!!(t+"")}catch(r){}return n}function z(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}function U(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function $(t,n){for(var r=-1,e=t.length,u=0,o=[];++r<e;){var i=t[r];i!==n&&"__lodash_placeholder__"!==i||(t[r]="__lodash_placeholder__",o[u++]=r)}return o}function D(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t}),r}function F(t){
-var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=[t,t]}),r}function N(t){if(!t||!Wt.test(t))return t.length;for(var n=It.lastIndex=0;It.test(t);)n++;return n}function P(t){return $t[t]}function Z(R){function At(t,n){return R.setTimeout.call(Kt,t,n)}function Ot(t){if(Te(t)&&!yi(t)&&!(t instanceof Ut)){if(t instanceof zt)return t;if(Wu.call(t,"__wrapped__"))return ae(t)}return new zt(t)}function kt(){}function zt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,
-this.__values__=T}function Ut(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function $t(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function Dt(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function Pt(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function Zt(t){var n=-1,r=t?t.length:0;
-for(this.__data__=new Pt;++n<r;)this.add(t[n])}function qt(t){this.__data__=new Dt(t)}function Vt(t,n,r,e){return t===T||Ce(t,ku[r])&&!Wu.call(e,r)?n:t}function Jt(t,n,r){(r===T||Ce(t[n],r))&&(typeof n!="number"||r!==T||n in t)||(t[n]=r)}function Yt(t,n,r){var e=t[n];Wu.call(t,n)&&Ce(e,r)&&(r!==T||n in t)||(t[n]=r)}function Ht(t,n){for(var r=t.length;r--;)if(Ce(t[r][0],n))return r;return-1}function Qt(t,n,r,e){return Ao(t,function(t,u,o){n(e,t,r(t),o)}),e}function Xt(t,n){return t&&sr(n,iu(n),t)}
-function tn(t,n){for(var r=-1,e=null==t,u=n.length,o=Array(u);++r<u;)o[r]=e?T:uu(t,n[r]);return o}function nn(t,n,r){return t===t&&(r!==T&&(t=r>=t?t:r),n!==T&&(t=t>=n?t:n)),t}function rn(t,n,r,e,o,i,f){var c;if(e&&(c=i?e(t,o,i,f):e(t)),c!==T)return c;if(!Ze(t))return t;if(o=yi(t)){if(c=Kr(t),!n)return lr(t,c)}else{var a=qr(t),l="[object Function]"==a||"[object GeneratorFunction]"==a;if(bi(t))return or(t,n);if("[object Object]"==a||"[object Arguments]"==a||l&&!i){if(C(t))return i?t:{};if(c=Gr(l?{}:t),
-!n)return hr(t,Xt(c,t))}else{if(!Ct[a])return i?t:{};c=Jr(t,a,rn,n)}}if(f||(f=new qt),i=f.get(t))return i;if(f.set(t,c),!o)var s=r?gn(t,iu,Tr):iu(t);return u(s||t,function(u,o){s&&(o=u,u=t[o]),Yt(c,o,rn(u,n,r,e,o,t,f))}),c}function en(t){var n=iu(t),r=n.length;return function(e){if(null==e)return!r;for(var u=r;u--;){var o=n[u],i=t[o],f=e[o];if(f===T&&!(o in Object(e))||!i(f))return false}return true}}function un(t){return Ze(t)?Tu(t):{}}function on(t,n,r){if(typeof t!="function")throw new Au("Expected a function");
-return At(function(){t.apply(T,r)},n)}function fn(t,n,r,e){var u=-1,o=c,i=true,f=t.length,s=[],h=n.length;if(!f)return s;r&&(n=l(n,O(r))),e?(o=a,i=false):n.length>=200&&(o=E,i=false,n=new Zt(n));t:for(;++u<f;){var p=t[u],_=r?r(p):p,p=e||0!==p?p:0;if(i&&_===_){for(var v=h;v--;)if(n[v]===_)continue t;s.push(p)}else o(n,_,e)||s.push(p)}return s}function cn(t,n){var r=true;return Ao(t,function(t,e,u){return r=!!n(t,e,u)}),r}function an(t,n,r){for(var e=-1,u=t.length;++e<u;){var o=t[e],i=n(o);if(null!=i&&(f===T?i===i&&!Je(i):r(i,f)))var f=i,c=o;
-}return c}function ln(t,n){var r=[];return Ao(t,function(t,e,u){n(t,e,u)&&r.push(t)}),r}function sn(t,n,r,e,u){var o=-1,i=t.length;for(r||(r=Hr),u||(u=[]);++o<i;){var f=t[o];n>0&&r(f)?n>1?sn(f,n-1,r,e,u):s(u,f):e||(u[u.length]=f)}return u}function hn(t,n){return t&&ko(t,n,iu)}function pn(t,n){return t&&Eo(t,n,iu)}function _n(t,n){return f(n,function(n){return Fe(t[n])})}function vn(t,n){n=ne(n,t)?[n]:er(n);for(var r=0,e=n.length;null!=t&&e>r;)t=t[fe(n[r++])];return r&&r==e?t:T}function gn(t,n,r){
-return n=n(t),yi(t)?n:s(n,r(t))}function dn(t,n){return t>n}function yn(t,n){return null!=t&&(Wu.call(t,n)||typeof t=="object"&&n in t&&null===Ju(Object(t)))}function bn(t,n){return null!=t&&n in Object(t)}function xn(t,n,r){for(var e=r?a:c,u=t[0].length,o=t.length,i=o,f=Array(o),s=1/0,h=[];i--;){var p=t[i];i&&n&&(p=l(p,O(n))),s=to(p.length,s),f[i]=!r&&(n||u>=120&&p.length>=120)?new Zt(i&&p):T}var p=t[0],_=-1,v=f[0];t:for(;++_<u&&s>h.length;){var g=p[_],d=n?n(g):g,g=r||0!==g?g:0;if(v?!E(v,d):!e(h,d,r)){
-for(i=o;--i;){var y=f[i];if(y?!E(y,d):!e(t[i],d,r))continue t}v&&v.push(d),h.push(g)}}return h}function jn(t,n,r){var e={};return hn(t,function(t,u,o){n(e,r(t),u,o)}),e}function wn(t,n,e){return ne(n,t)||(n=er(n),t=ie(t,n),n=ve(n)),n=null==t?t:t[fe(n)],null==n?T:r(n,t,e)}function mn(t,n,r,e,u){if(t===n)n=true;else if(null==t||null==n||!Ze(t)&&!Te(n))n=t!==t&&n!==n;else t:{var o=yi(t),i=yi(n),f="[object Array]",c="[object Array]";o||(f=qr(t),f="[object Arguments]"==f?"[object Object]":f),i||(c=qr(n),
-c="[object Arguments]"==c?"[object Object]":c);var a="[object Object]"==f&&!C(t),i="[object Object]"==c&&!C(n);if((c=f==c)&&!a)u||(u=new qt),n=o||Ye(t)?zr(t,n,mn,r,e,u):Ur(t,n,f,mn,r,e,u);else{if(!(2&e)&&(o=a&&Wu.call(t,"__wrapped__"),f=i&&Wu.call(n,"__wrapped__"),o||f)){t=o?t.value():t,n=f?n.value():n,u||(u=new qt),n=mn(t,n,r,e,u);break t}if(c)n:if(u||(u=new qt),o=2&e,f=iu(t),i=f.length,c=iu(n).length,i==c||o){for(a=i;a--;){var l=f[a];if(!(o?l in n:yn(n,l))){n=false;break n}}if(c=u.get(t))n=c==n;else{
-c=true,u.set(t,n);for(var s=o;++a<i;){var l=f[a],h=t[l],p=n[l];if(r)var _=o?r(p,h,l,n,t,u):r(h,p,l,t,n,u);if(_===T?h!==p&&!mn(h,p,r,e,u):!_){c=false;break}s||(s="constructor"==l)}c&&!s&&(r=t.constructor,e=n.constructor,r!=e&&"constructor"in t&&"constructor"in n&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(c=false)),u["delete"](t),n=c}}else n=false;else n=false}}return n}function An(t,n,r,e){var u=r.length,o=u,i=!e;if(null==t)return!o;for(t=Object(t);u--;){var f=r[u];if(i&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return false;
-}for(;++u<o;){var f=r[u],c=f[0],a=t[c],l=f[1];if(i&&f[2]){if(a===T&&!(c in t))return false}else{if(f=new qt,e)var s=e(a,l,c,t,n,f);if(s===T?!mn(l,a,e,3,f):!s)return false}}return true}function On(t){return!Ze(t)||Iu&&Iu in t?false:(Fe(t)||C(t)?zu:yt).test(ce(t))}function kn(t){return typeof t=="function"?t:null==t?pu:typeof t=="object"?yi(t)?Wn(t[0],t[1]):Rn(t):du(t)}function En(t){t=null==t?t:Object(t);var n,r=[];for(n in t)r.push(n);return r}function Sn(t,n){return n>t}function In(t,n){var r=-1,e=Ue(t)?Array(t.length):[];
-return Ao(t,function(t,u,o){e[++r]=n(t,u,o)}),e}function Rn(t){var n=Pr(t);return 1==n.length&&n[0][2]?ue(n[0][0],n[0][1]):function(r){return r===t||An(r,t,n)}}function Wn(t,n){return ne(t)&&n===n&&!Ze(n)?ue(fe(t),n):function(r){var e=uu(r,t);return e===T&&e===n?ou(r,t):mn(n,e,T,3)}}function Bn(t,n,r,e,o){if(t!==n){if(!yi(n)&&!Ye(n))var i=fu(n);u(i||n,function(u,f){if(i&&(f=u,u=n[f]),Ze(u)){o||(o=new qt);var c=f,a=o,l=t[c],s=n[c],h=a.get(s);if(h)Jt(t,c,h);else{var h=e?e(l,s,c+"",t,n,a):T,p=h===T;p&&(h=s,
-yi(s)||Ye(s)?yi(l)?h=l:$e(l)?h=lr(l):(p=false,h=rn(s,true)):Ve(s)||ze(s)?ze(l)?h=ru(l):!Ze(l)||r&&Fe(l)?(p=false,h=rn(s,true)):h=l:p=false),a.set(s,h),p&&Bn(h,s,r,e,a),a["delete"](s),Jt(t,c,h)}}else c=e?e(t[f],u,f+"",t,n,o):T,c===T&&(c=u),Jt(t,f,c)})}}function Ln(t,n){var r=t.length;return r?(n+=0>n?r:0,Xr(n,r)?t[n]:T):void 0}function Mn(t,n,r){var e=-1;return n=l(n.length?n:[pu],O(Fr())),t=In(t,function(t){return{a:l(n,function(n){return n(t)}),b:++e,c:t}}),j(t,function(t,n){var e;t:{e=-1;for(var u=t.a,o=n.a,i=u.length,f=r.length;++e<i;){
-var c=fr(u[e],o[e]);if(c){e=e>=f?c:c*("desc"==r[e]?-1:1);break t}}e=t.b-n.b}return e})}function Cn(t,n){return t=Object(t),h(n,function(n,r){return r in t&&(n[r]=t[r]),n},{})}function zn(t,n){for(var r=-1,e=gn(t,fu,Bo),u=e.length,o={};++r<u;){var i=e[r],f=t[i];n(f,i)&&(o[i]=f)}return o}function Un(t){return function(n){return null==n?T:n[t]}}function $n(t){return function(n){return vn(n,t)}}function Dn(t,n,r,e){var u=e?y:d,o=-1,i=n.length,f=t;for(t===n&&(n=lr(n)),r&&(f=l(t,O(r)));++o<i;)for(var c=0,a=n[o],a=r?r(a):a;-1<(c=u(f,a,c,e));)f!==t&&Vu.call(f,c,1),
-Vu.call(t,c,1);return t}function Fn(t,n){for(var r=t?n.length:0,e=r-1;r--;){var u=n[r];if(r==e||u!==o){var o=u;if(Xr(u))Vu.call(t,u,1);else if(ne(u,t))delete t[fe(u)];else{var u=er(u),i=ie(t,u);null!=i&&delete i[fe(ve(u))]}}}}function Nn(t,n){return t+Gu(ro()*(n-t+1))}function Pn(t,n){var r="";if(!t||1>n||n>9007199254740991)return r;do n%2&&(r+=t),(n=Gu(n/2))&&(t+=t);while(n);return r}function Zn(t,n,r,e){n=ne(n,t)?[n]:er(n);for(var u=-1,o=n.length,i=o-1,f=t;null!=f&&++u<o;){var c=fe(n[u]);if(Ze(f)){
-var a=r;if(u!=i){var l=f[c],a=e?e(l,c,f):T;a===T&&(a=null==l?Xr(n[u+1])?[]:{}:l)}Yt(f,c,a)}f=f[c]}return t}function Tn(t,n,r){var e=-1,u=t.length;for(0>n&&(n=-n>u?0:u+n),r=r>u?u:r,0>r&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0,r=Array(u);++e<u;)r[e]=t[e+n];return r}function qn(t,n){var r;return Ao(t,function(t,e,u){return r=n(t,e,u),!r}),!!r}function Vn(t,n,r){var e=0,u=t?t.length:e;if(typeof n=="number"&&n===n&&2147483647>=u){for(;u>e;){var o=e+u>>>1,i=t[o];null!==i&&!Je(i)&&(r?n>=i:n>i)?e=o+1:u=o}return u}
-return Kn(t,n,pu,r)}function Kn(t,n,r,e){n=r(n);for(var u=0,o=t?t.length:0,i=n!==n,f=null===n,c=Je(n),a=n===T;o>u;){var l=Gu((u+o)/2),s=r(t[l]),h=s!==T,p=null===s,_=s===s,v=Je(s);(i?e||_:a?_&&(e||h):f?_&&h&&(e||!p):c?_&&h&&!p&&(e||!v):p||v?0:e?n>=s:n>s)?u=l+1:o=l}return to(o,4294967294)}function Gn(t,n){for(var r=-1,e=t.length,u=0,o=[];++r<e;){var i=t[r],f=n?n(i):i;if(!r||!Ce(f,c)){var c=f;o[u++]=0===i?0:i}}return o}function Jn(t){return typeof t=="number"?t:Je(t)?V:+t}function Yn(t){if(typeof t=="string")return t;
-if(Je(t))return mo?mo.call(t):"";var n=t+"";return"0"==n&&1/t==-q?"-0":n}function Hn(t,n,r){var e=-1,u=c,o=t.length,i=true,f=[],l=f;if(r)i=false,u=a;else if(o>=200){if(u=n?null:Io(t))return D(u);i=false,u=E,l=new Zt}else l=n?[]:f;t:for(;++e<o;){var s=t[e],h=n?n(s):s,s=r||0!==s?s:0;if(i&&h===h){for(var p=l.length;p--;)if(l[p]===h)continue t;n&&l.push(h),f.push(s)}else u(l,h,r)||(l!==f&&l.push(h),f.push(s))}return f}function Qn(t,n,r,e){for(var u=t.length,o=e?u:-1;(e?o--:++o<u)&&n(t[o],o,t););return r?Tn(t,e?0:o,e?o+1:u):Tn(t,e?o+1:0,e?u:o);
-}function Xn(t,n){var r=t;return r instanceof Ut&&(r=r.value()),h(n,function(t,n){return n.func.apply(n.thisArg,s([t],n.args))},r)}function tr(t,n,r){for(var e=-1,u=t.length;++e<u;)var o=o?s(fn(o,t[e],n,r),fn(t[e],o,n,r)):t[e];return o&&o.length?Hn(o,n,r):[]}function nr(t,n,r){for(var e=-1,u=t.length,o=n.length,i={};++e<u;)r(i,t[e],o>e?n[e]:T);return i}function rr(t){return $e(t)?t:[]}function er(t){return yi(t)?t:Co(t)}function ur(t,n,r){var e=t.length;return r=r===T?e:r,!n&&r>=e?t:Tn(t,n,r)}function or(t,n){
-if(n)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function ir(t){var n=new t.constructor(t.byteLength);return new Fu(n).set(new Fu(t)),n}function fr(t,n){if(t!==n){var r=t!==T,e=null===t,u=t===t,o=Je(t),i=n!==T,f=null===n,c=n===n,a=Je(n);if(!f&&!a&&!o&&t>n||o&&i&&c&&!f&&!a||e&&i&&c||!r&&c||!u)return 1;if(!e&&!o&&!a&&n>t||a&&r&&u&&!e&&!o||f&&r&&u||!i&&u||!c)return-1}return 0}function cr(t,n,r,e){var u=-1,o=t.length,i=r.length,f=-1,c=n.length,a=Xu(o-i,0),l=Array(c+a);for(e=!e;++f<c;)l[f]=n[f];
-for(;++u<i;)(e||o>u)&&(l[r[u]]=t[u]);for(;a--;)l[f++]=t[u++];return l}function ar(t,n,r,e){var u=-1,o=t.length,i=-1,f=r.length,c=-1,a=n.length,l=Xu(o-f,0),s=Array(l+a);for(e=!e;++u<l;)s[u]=t[u];for(l=u;++c<a;)s[l+c]=n[c];for(;++i<f;)(e||o>u)&&(s[l+r[i]]=t[u++]);return s}function lr(t,n){var r=-1,e=t.length;for(n||(n=Array(e));++r<e;)n[r]=t[r];return n}function sr(t,n,r,e){r||(r={});for(var u=-1,o=n.length;++u<o;){var i=n[u],f=e?e(r[i],t[i],i,r,t):t[i];Yt(r,i,f)}return r}function hr(t,n){return sr(t,Tr(t),n);
-}function pr(t,n){return function(r,u){var o=yi(r)?e:Qt,i=n?n():{};return o(r,t,Fr(u),i)}}function _r(t){return Me(function(n,r){var e=-1,u=r.length,o=u>1?r[u-1]:T,i=u>2?r[2]:T,o=t.length>3&&typeof o=="function"?(u--,o):T;for(i&&te(r[0],r[1],i)&&(o=3>u?T:o,u=1),n=Object(n);++e<u;)(i=r[e])&&t(n,i,e,o);return n})}function vr(t,n){return function(r,e){if(null==r)return r;if(!Ue(r))return t(r,e);for(var u=r.length,o=n?u:-1,i=Object(r);(n?o--:++o<u)&&false!==e(i[o],o,i););return r}}function gr(t){return function(n,r,e){
-var u=-1,o=Object(n);e=e(n);for(var i=e.length;i--;){var f=e[t?i:++u];if(false===r(o[f],f,o))break}return n}}function dr(t,n,r){function e(){return(this&&this!==Kt&&this instanceof e?o:t).apply(u?r:this,arguments)}var u=1&n,o=xr(t);return e}function yr(t){return function(n){n=eu(n);var r=Wt.test(n)?n.match(It):T,e=r?r[0]:n.charAt(0);return n=r?ur(r,1).join(""):n.slice(1),e[t]()+n}}function br(t){return function(n){return h(su(lu(n).replace(Et,"")),t,"")}}function xr(t){return function(){var n=arguments;
-switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var r=un(t.prototype),n=t.apply(r,n);return Ze(n)?n:r}}function jr(t,n,e){function u(){for(var i=arguments.length,f=Array(i),c=i,a=Dr(u);c--;)f[c]=arguments[c];return c=3>i&&f[0]!==a&&f[i-1]!==a?[]:$(f,a),
-i-=c.length,e>i?Br(t,n,Ar,u.placeholder,T,f,c,T,T,e-i):r(this&&this!==Kt&&this instanceof u?o:t,this,f)}var o=xr(t);return u}function wr(t){return function(n,r,e){var u=Object(n);if(r=Fr(r,3),!Ue(n))var o=iu(n);return e=t(o||n,function(t,n){return o&&(n=t,t=u[n]),r(t,n,u)},e),e>-1?n[o?o[e]:e]:T}}function mr(t){return Me(function(n){n=sn(n,1);var r=n.length,e=r,u=zt.prototype.thru;for(t&&n.reverse();e--;){var o=n[e];if(typeof o!="function")throw new Au("Expected a function");if(u&&!i&&"wrapper"==$r(o))var i=new zt([],true);
-}for(e=i?e:r;++e<r;)var o=n[e],u=$r(o),f="wrapper"==u?Ro(o):T,i=f&&re(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?i[$r(f[0])].apply(i,f[3]):1==o.length&&re(o)?i[u]():i.thru(o);return function(){var t=arguments,e=t[0];if(i&&1==t.length&&yi(e)&&e.length>=200)return i.plant(e).value();for(var u=0,t=r?n[u].apply(this,t):e;++u<r;)t=n[u].call(this,t);return t}})}function Ar(t,n,r,e,u,o,i,f,c,a){function l(){for(var d=arguments.length,y=Array(d),b=d;b--;)y[b]=arguments[b];if(_){var x,j=Dr(l),b=y.length;for(x=0;b--;)y[b]===j&&x++;
-}if(e&&(y=cr(y,e,u,_)),o&&(y=ar(y,o,i,_)),d-=x,_&&a>d)return j=$(y,j),Br(t,n,Ar,l.placeholder,r,y,j,f,c,a-d);if(j=h?r:this,b=p?j[t]:t,d=y.length,f){x=y.length;for(var w=to(f.length,x),m=lr(y);w--;){var A=f[w];y[w]=Xr(A,x)?m[A]:T}}else v&&d>1&&y.reverse();return s&&d>c&&(y.length=c),this&&this!==Kt&&this instanceof l&&(b=g||xr(b)),b.apply(j,y)}var s=128&n,h=1&n,p=2&n,_=24&n,v=512&n,g=p?T:xr(t);return l}function Or(t,n){return function(r,e){return jn(r,t,n(e))}}function kr(t){return function(n,r){var e;
-if(n===T&&r===T)return 0;if(n!==T&&(e=n),r!==T){if(e===T)return r;typeof n=="string"||typeof r=="string"?(n=Yn(n),r=Yn(r)):(n=Jn(n),r=Jn(r)),e=t(n,r)}return e}}function Er(t){return Me(function(n){return n=1==n.length&&yi(n[0])?l(n[0],O(Fr())):l(sn(n,1,Qr),O(Fr())),Me(function(e){var u=this;return t(n,function(t){return r(t,u,e)})})})}function Sr(t,n){n=n===T?" ":Yn(n);var r=n.length;return 2>r?r?Pn(n,t):n:(r=Pn(n,Ku(t/N(n))),Wt.test(n)?ur(r.match(It),0,t).join(""):r.slice(0,t))}function Ir(t,n,e,u){
-function o(){for(var n=-1,c=arguments.length,a=-1,l=u.length,s=Array(l+c),h=this&&this!==Kt&&this instanceof o?f:t;++a<l;)s[a]=u[a];for(;c--;)s[a++]=arguments[++n];return r(h,i?e:this,s)}var i=1&n,f=xr(t);return o}function Rr(t){return function(n,r,e){e&&typeof e!="number"&&te(n,r,e)&&(r=e=T),n=nu(n),n=n===n?n:0,r===T?(r=n,n=0):r=nu(r)||0,e=e===T?r>n?1:-1:nu(e)||0;var u=-1;r=Xu(Ku((r-n)/(e||1)),0);for(var o=Array(r);r--;)o[t?r:++u]=n,n+=e;return o}}function Wr(t){return function(n,r){return typeof n=="string"&&typeof r=="string"||(n=nu(n),
-r=nu(r)),t(n,r)}}function Br(t,n,r,e,u,o,i,f,c,a){var l=8&n,s=l?i:T;i=l?T:i;var h=l?o:T;return o=l?T:o,n=(n|(l?32:64))&~(l?64:32),4&n||(n&=-4),n=[t,n,u,h,s,o,i,f,c,a],r=r.apply(T,n),re(t)&&Mo(r,n),r.placeholder=e,r}function Lr(t){var n=wu[t];return function(t,r){if(t=nu(t),r=to(Xe(r),292)){var e=(eu(t)+"e").split("e"),e=n(e[0]+"e"+(+e[1]+r)),e=(eu(e)+"e").split("e");return+(e[0]+"e"+(+e[1]-r))}return n(t)}}function Mr(t){return function(n){var r=qr(n);return"[object Map]"==r?U(n):"[object Set]"==r?F(n):A(n,t(n));
-}}function Cr(t,n,r,e,u,o,i,f){var c=2&n;if(!c&&typeof t!="function")throw new Au("Expected a function");var a=e?e.length:0;if(a||(n&=-97,e=u=T),i=i===T?i:Xu(Xe(i),0),f=f===T?f:Xe(f),a-=u?u.length:0,64&n){var l=e,s=u;e=u=T}var h=c?T:Ro(t);return o=[t,n,r,e,u,l,s,o,i,f],h&&(r=o[1],t=h[1],n=r|t,e=128==t&&8==r||128==t&&256==r&&h[8]>=o[7].length||384==t&&h[8]>=h[7].length&&8==r,131>n||e)&&(1&t&&(o[2]=h[2],n|=1&r?0:4),(r=h[3])&&(e=o[3],o[3]=e?cr(e,r,h[4]):r,o[4]=e?$(o[3],"__lodash_placeholder__"):h[4]),
-(r=h[5])&&(e=o[5],o[5]=e?ar(e,r,h[6]):r,o[6]=e?$(o[5],"__lodash_placeholder__"):h[6]),(r=h[7])&&(o[7]=r),128&t&&(o[8]=null==o[8]?h[8]:to(o[8],h[8])),null==o[9]&&(o[9]=h[9]),o[0]=h[0],o[1]=n),t=o[0],n=o[1],r=o[2],e=o[3],u=o[4],f=o[9]=null==o[9]?c?0:t.length:Xu(o[9]-a,0),!f&&24&n&&(n&=-25),(h?So:Mo)(n&&1!=n?8==n||16==n?jr(t,n,f):32!=n&&33!=n||u.length?Ar.apply(T,o):Ir(t,n,r,e):dr(t,n,r),o)}function zr(t,n,r,e,u,o){var i=2&u,f=t.length,c=n.length;if(f!=c&&!(i&&c>f))return false;if(c=o.get(t))return c==n;
-var c=-1,a=true,l=1&u?new Zt:T;for(o.set(t,n);++c<f;){var s=t[c],h=n[c];if(e)var p=i?e(h,s,c,n,t,o):e(s,h,c,t,n,o);if(p!==T){if(p)continue;a=false;break}if(l){if(!_(n,function(t,n){return l.has(n)||s!==t&&!r(s,t,e,u,o)?void 0:l.add(n)})){a=false;break}}else if(s!==h&&!r(s,h,e,u,o)){a=false;break}}return o["delete"](t),a}function Ur(t,n,r,e,u,o,i){switch(r){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)break;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":if(t.byteLength!=n.byteLength||!e(new Fu(t),new Fu(n)))break;
-return true;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object Number]":return t!=+t?n!=+n:t==+n;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var f=U;case"[object Set]":if(f||(f=D),t.size!=n.size&&!(2&o))break;return(r=i.get(t))?r==n:(o|=1,i.set(t,n),zr(f(t),f(n),e,u,o,i));case"[object Symbol]":if(wo)return wo.call(t)==wo.call(n)}return false}function $r(t){for(var n=t.name+"",r=_o[n],e=Wu.call(_o,n)?r.length:0;e--;){
-var u=r[e],o=u.func;if(null==o||o==t)return u.name}return n}function Dr(t){return(Wu.call(Ot,"placeholder")?Ot:t).placeholder}function Fr(){var t=Ot.iteratee||_u,t=t===_u?kn:t;return arguments.length?t(arguments[0],arguments[1]):t}function Nr(t,n){var r=t.__data__,e=typeof n;return("string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?r[typeof n=="string"?"string":"hash"]:r.map}function Pr(t){for(var n=iu(t),r=n.length;r--;){var e=n[r],u=t[e];n[r]=[e,u,u===u&&!Ze(u)]}return n;
-}function Zr(t,n){var r=null==t?T:t[n];return On(r)?r:T}function Tr(t){return Pu(Object(t))}function qr(t){return Mu.call(t)}function Vr(t,n,r){n=ne(n,t)?[n]:er(n);for(var e,u=-1,o=n.length;++u<o;){var i=fe(n[u]);if(!(e=null!=t&&r(t,i)))break;t=t[i]}return e?e:(o=t?t.length:0,!!o&&Pe(o)&&Xr(i,o)&&(yi(t)||Ge(t)||ze(t)))}function Kr(t){var n=t.length,r=t.constructor(n);return n&&"string"==typeof t[0]&&Wu.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Gr(t){return typeof t.constructor!="function"||ee(t)?{}:un(Ju(Object(t)));
-}function Jr(r,e,u,o){var i=r.constructor;switch(e){case"[object ArrayBuffer]":return ir(r);case"[object Boolean]":case"[object Date]":return new i(+r);case"[object DataView]":return e=o?ir(r.buffer):r.buffer,new r.constructor(e,r.byteOffset,r.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":
-return e=o?ir(r.buffer):r.buffer,new r.constructor(e,r.byteOffset,r.length);case"[object Map]":return e=o?u(U(r),true):U(r),h(e,t,new r.constructor);case"[object Number]":case"[object String]":return new i(r);case"[object RegExp]":return e=new r.constructor(r.source,_t.exec(r)),e.lastIndex=r.lastIndex,e;case"[object Set]":return e=o?u(D(r),true):D(r),h(e,n,new r.constructor);case"[object Symbol]":return wo?Object(wo.call(r)):{}}}function Yr(t){var n=t?t.length:T;return Pe(n)&&(yi(t)||Ge(t)||ze(t))?m(n,String):null;
-}function Hr(t){return yi(t)||ze(t)}function Qr(t){return yi(t)&&!(2==t.length&&!Fe(t[0]))}function Xr(t,n){return n=null==n?9007199254740991:n,!!n&&(typeof t=="number"||xt.test(t))&&t>-1&&0==t%1&&n>t}function te(t,n,r){if(!Ze(r))return false;var e=typeof n;return("number"==e?Ue(r)&&Xr(n,r.length):"string"==e&&n in r)?Ce(r[n],t):false}function ne(t,n){if(yi(t))return false;var r=typeof t;return"number"==r||"symbol"==r||"boolean"==r||null==t||Je(t)?true:ut.test(t)||!et.test(t)||null!=n&&t in Object(n)}function re(t){
-var n=$r(t),r=Ot[n];return typeof r=="function"&&n in Ut.prototype?t===r?true:(n=Ro(r),!!n&&t===n[0]):false}function ee(t){var n=t&&t.constructor;return t===(typeof n=="function"&&n.prototype||ku)}function ue(t,n){return function(r){return null==r?false:r[t]===n&&(n!==T||t in Object(r))}}function oe(t,n,r,e,u,o){return Ze(t)&&Ze(n)&&Bn(t,n,T,oe,o.set(n,t)),t}function ie(t,n){return 1==n.length?t:vn(t,Tn(n,0,-1))}function fe(t){if(typeof t=="string"||Je(t))return t;var n=t+"";return"0"==n&&1/t==-q?"-0":n}function ce(t){
-if(null!=t){try{return Ru.call(t)}catch(n){}return t+""}return""}function ae(t){if(t instanceof Ut)return t.clone();var n=new zt(t.__wrapped__,t.__chain__);return n.__actions__=lr(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function le(t,n,r){var e=t?t.length:0;return e?(n=r||n===T?1:Xe(n),Tn(t,0>n?0:n,e)):[]}function se(t,n,r){var e=t?t.length:0;return e?(n=r||n===T?1:Xe(n),n=e-n,Tn(t,0,0>n?0:n)):[]}function he(t,n,r){var e=t?t.length:0;return e?(r=null==r?0:Xe(r),0>r&&(r=Xu(e+r,0)),
-g(t,Fr(n,3),r)):-1}function pe(t,n,r){var e=t?t.length:0;if(!e)return-1;var u=e-1;return r!==T&&(u=Xe(r),u=0>r?Xu(e+u,0):to(u,e-1)),g(t,Fr(n,3),u,true)}function _e(t){return t&&t.length?t[0]:T}function ve(t){var n=t?t.length:0;return n?t[n-1]:T}function ge(t,n){return t&&t.length&&n&&n.length?Dn(t,n):t}function de(t){return t?uo.call(t):t}function ye(t){if(!t||!t.length)return[];var n=0;return t=f(t,function(t){return $e(t)?(n=Xu(t.length,n),true):void 0}),m(n,function(n){return l(t,Un(n))})}function be(t,n){
-if(!t||!t.length)return[];var e=ye(t);return null==n?e:l(e,function(t){return r(n,T,t)})}function xe(t){return t=Ot(t),t.__chain__=true,t}function je(t,n){return n(t)}function we(){return this}function me(t,n){return(yi(t)?u:Ao)(t,Fr(n,3))}function Ae(t,n){return(yi(t)?o:Oo)(t,Fr(n,3))}function Oe(t,n){return(yi(t)?l:In)(t,Fr(n,3))}function ke(t,n,r){var e=-1,u=He(t),o=u.length,i=o-1;for(n=(r?te(t,n,r):n===T)?1:nn(Xe(n),0,o);++e<n;)t=Nn(e,i),r=u[t],u[t]=u[e],u[e]=r;return u.length=n,u}function Ee(){
-return xu.now()}function Se(t,n,r){return n=r?T:n,n=t&&null==n?t.length:n,Cr(t,128,T,T,T,T,n)}function Ie(t,n){var r;if(typeof n!="function")throw new Au("Expected a function");return t=Xe(t),function(){return 0<--t&&(r=n.apply(this,arguments)),1>=t&&(n=T),r}}function Re(t,n,r){return n=r?T:n,t=Cr(t,8,T,T,T,T,T,n),t.placeholder=Re.placeholder,t}function We(t,n,r){return n=r?T:n,t=Cr(t,16,T,T,T,T,T,n),t.placeholder=We.placeholder,t}function Be(t,n,r){function e(n){var r=c,e=a;return c=a=T,_=n,s=t.apply(e,r);
-}function u(t){var r=t-p;return t-=_,p===T||r>=n||0>r||g&&t>=l}function o(){var t=Ee();if(u(t))return i(t);var r;r=t-_,t=n-(t-p),r=g?to(t,l-r):t,h=At(o,r)}function i(t){return h=T,d&&c?e(t):(c=a=T,s)}function f(){var t=Ee(),r=u(t);if(c=arguments,a=this,p=t,r){if(h===T)return _=t=p,h=At(o,n),v?e(t):s;if(g)return h=At(o,n),e(p)}return h===T&&(h=At(o,n)),s}var c,a,l,s,h,p,_=0,v=false,g=false,d=true;if(typeof t!="function")throw new Au("Expected a function");return n=nu(n)||0,Ze(r)&&(v=!!r.leading,l=(g="maxWait"in r)?Xu(nu(r.maxWait)||0,n):l,
-d="trailing"in r?!!r.trailing:d),f.cancel=function(){_=0,c=p=a=h=T},f.flush=function(){return h===T?s:i(Ee())},f}function Le(t,n){function r(){var e=arguments,u=n?n.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=t.apply(this,e),r.cache=o.set(u,e),e)}if(typeof t!="function"||n&&typeof n!="function")throw new Au("Expected a function");return r.cache=new(Le.Cache||Pt),r}function Me(t,n){if(typeof t!="function")throw new Au("Expected a function");return n=Xu(n===T?t.length-1:Xe(n),0),function(){
-for(var e=arguments,u=-1,o=Xu(e.length-n,0),i=Array(o);++u<o;)i[u]=e[n+u];switch(n){case 0:return t.call(this,i);case 1:return t.call(this,e[0],i);case 2:return t.call(this,e[0],e[1],i)}for(o=Array(n+1),u=-1;++u<n;)o[u]=e[u];return o[n]=i,r(t,this,o)}}function Ce(t,n){return t===n||t!==t&&n!==n}function ze(t){return $e(t)&&Wu.call(t,"callee")&&(!qu.call(t,"callee")||"[object Arguments]"==Mu.call(t))}function Ue(t){return null!=t&&Pe(Wo(t))&&!Fe(t)}function $e(t){return Te(t)&&Ue(t)}function De(t){
-return Te(t)?"[object Error]"==Mu.call(t)||typeof t.message=="string"&&typeof t.name=="string":false}function Fe(t){return t=Ze(t)?Mu.call(t):"","[object Function]"==t||"[object GeneratorFunction]"==t}function Ne(t){return typeof t=="number"&&t==Xe(t)}function Pe(t){return typeof t=="number"&&t>-1&&0==t%1&&9007199254740991>=t}function Ze(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function Te(t){return!!t&&typeof t=="object"}function qe(t){return typeof t=="number"||Te(t)&&"[object Number]"==Mu.call(t);
-}function Ve(t){return!Te(t)||"[object Object]"!=Mu.call(t)||C(t)?false:(t=Ju(Object(t)),null===t?true:(t=Wu.call(t,"constructor")&&t.constructor,typeof t=="function"&&t instanceof t&&Ru.call(t)==Lu))}function Ke(t){return Ze(t)&&"[object RegExp]"==Mu.call(t)}function Ge(t){return typeof t=="string"||!yi(t)&&Te(t)&&"[object String]"==Mu.call(t)}function Je(t){return typeof t=="symbol"||Te(t)&&"[object Symbol]"==Mu.call(t)}function Ye(t){return Te(t)&&Pe(t.length)&&!!Mt[Mu.call(t)]}function He(t){if(!t)return[];
-if(Ue(t))return Ge(t)?t.match(It):lr(t);if(Zu&&t[Zu])return z(t[Zu]());var n=qr(t);return("[object Map]"==n?U:"[object Set]"==n?D:cu)(t)}function Qe(t){return t?(t=nu(t),t===q||t===-q?1.7976931348623157e308*(0>t?-1:1):t===t?t:0):0===t?t:0}function Xe(t){t=Qe(t);var n=t%1;return t===t?n?t-n:t:0}function tu(t){return t?nn(Xe(t),0,4294967295):0}function nu(t){if(typeof t=="number")return t;if(Je(t))return V;if(Ze(t)&&(t=Fe(t.valueOf)?t.valueOf():t,t=Ze(t)?t+"":t),typeof t!="string")return 0===t?t:+t;
-t=t.replace(ct,"");var n=dt.test(t);return n||bt.test(t)?Nt(t.slice(2),n?2:8):gt.test(t)?V:+t}function ru(t){return sr(t,fu(t))}function eu(t){return null==t?"":Yn(t)}function uu(t,n,r){return t=null==t?T:vn(t,n),t===T?r:t}function ou(t,n){return null!=t&&Vr(t,n,bn)}function iu(t){var n=ee(t);if(!n&&!Ue(t))return Qu(Object(t));var r,e=Yr(t),u=!!e,e=e||[],o=e.length;for(r in t)!yn(t,r)||u&&("length"==r||Xr(r,o))||n&&"constructor"==r||e.push(r);return e}function fu(t){for(var n=-1,r=ee(t),e=En(t),u=e.length,o=Yr(t),i=!!o,o=o||[],f=o.length;++n<u;){
-var c=e[n];i&&("length"==c||Xr(c,f))||"constructor"==c&&(r||!Wu.call(t,c))||o.push(c)}return o}function cu(t){return t?k(t,iu(t)):[]}function au(t){return qi(eu(t).toLowerCase())}function lu(t){return(t=eu(t))&&t.replace(jt,W).replace(St,"")}function su(t,n,r){return t=eu(t),n=r?T:n,n===T&&(n=Bt.test(t)?Rt:st),t.match(n)||[]}function hu(t){return function(){return t}}function pu(t){return t}function _u(t){return kn(typeof t=="function"?t:rn(t,true))}function vu(t,n,r){var e=iu(n),o=_n(n,e);null!=r||Ze(n)&&(o.length||!e.length)||(r=n,
-n=t,t=this,o=_n(n,iu(n)));var i=!(Ze(r)&&"chain"in r&&!r.chain),f=Fe(t);return u(o,function(r){var e=n[r];t[r]=e,f&&(t.prototype[r]=function(){var n=this.__chain__;if(i||n){var r=t(this.__wrapped__);return(r.__actions__=lr(this.__actions__)).push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,s([this.value()],arguments))})}),t}function gu(){}function du(t){return ne(t)?Un(fe(t)):$n(t)}function yu(){return[]}function bu(){return false}R=R?Gt.defaults({},R,Gt.pick(Kt,Lt)):Kt;var xu=R.Date,ju=R.Error,wu=R.Math,mu=R.RegExp,Au=R.TypeError,Ou=R.Array.prototype,ku=R.Object.prototype,Eu=R.String.prototype,Su=R["__core-js_shared__"],Iu=function(){
-var t=/[^.]+$/.exec(Su&&Su.keys&&Su.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ru=R.Function.prototype.toString,Wu=ku.hasOwnProperty,Bu=0,Lu=Ru.call(Object),Mu=ku.toString,Cu=Kt._,zu=mu("^"+Ru.call(Wu).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uu=Tt?R.Buffer:T,$u=R.Reflect,Du=R.Symbol,Fu=R.Uint8Array,Nu=$u?$u.f:T,Pu=Object.getOwnPropertySymbols,Zu=typeof(Zu=Du&&Du.iterator)=="symbol"?Zu:T,Tu=Object.create,qu=ku.propertyIsEnumerable,Vu=Ou.splice,Ku=wu.ceil,Gu=wu.floor,Ju=Object.getPrototypeOf,Yu=R.isFinite,Hu=Ou.join,Qu=Object.keys,Xu=wu.max,to=wu.min,no=R.parseInt,ro=wu.random,eo=Eu.replace,uo=Ou.reverse,oo=Eu.split,io=Zr(R,"DataView"),fo=Zr(R,"Map"),co=Zr(R,"Promise"),ao=Zr(R,"Set"),lo=Zr(R,"WeakMap"),so=Zr(Object,"create"),ho=lo&&new lo,po=!qu.call({
-valueOf:1},"valueOf"),_o={},vo=ce(io),go=ce(fo),yo=ce(co),bo=ce(ao),xo=ce(lo),jo=Du?Du.prototype:T,wo=jo?jo.valueOf:T,mo=jo?jo.toString:T;Ot.templateSettings={escape:tt,evaluate:nt,interpolate:rt,variable:"",imports:{_:Ot}},Ot.prototype=kt.prototype,Ot.prototype.constructor=Ot,zt.prototype=un(kt.prototype),zt.prototype.constructor=zt,Ut.prototype=un(kt.prototype),Ut.prototype.constructor=Ut,$t.prototype.clear=function(){this.__data__=so?so(null):{}},$t.prototype["delete"]=function(t){return this.has(t)&&delete this.__data__[t];
-},$t.prototype.get=function(t){var n=this.__data__;return so?(t=n[t],"__lodash_hash_undefined__"===t?T:t):Wu.call(n,t)?n[t]:T},$t.prototype.has=function(t){var n=this.__data__;return so?n[t]!==T:Wu.call(n,t)},$t.prototype.set=function(t,n){return this.__data__[t]=so&&n===T?"__lodash_hash_undefined__":n,this},Dt.prototype.clear=function(){this.__data__=[]},Dt.prototype["delete"]=function(t){var n=this.__data__;return t=Ht(n,t),0>t?false:(t==n.length-1?n.pop():Vu.call(n,t,1),true)},Dt.prototype.get=function(t){
-var n=this.__data__;return t=Ht(n,t),0>t?T:n[t][1]},Dt.prototype.has=function(t){return-1<Ht(this.__data__,t)},Dt.prototype.set=function(t,n){var r=this.__data__,e=Ht(r,t);return 0>e?r.push([t,n]):r[e][1]=n,this},Pt.prototype.clear=function(){this.__data__={hash:new $t,map:new(fo||Dt),string:new $t}},Pt.prototype["delete"]=function(t){return Nr(this,t)["delete"](t)},Pt.prototype.get=function(t){return Nr(this,t).get(t)},Pt.prototype.has=function(t){return Nr(this,t).has(t)},Pt.prototype.set=function(t,n){
-return Nr(this,t).set(t,n),this},Zt.prototype.add=Zt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Zt.prototype.has=function(t){return this.__data__.has(t)},qt.prototype.clear=function(){this.__data__=new Dt},qt.prototype["delete"]=function(t){return this.__data__["delete"](t)},qt.prototype.get=function(t){return this.__data__.get(t)},qt.prototype.has=function(t){return this.__data__.has(t)},qt.prototype.set=function(t,n){var r=this.__data__;return r instanceof Dt&&200==r.__data__.length&&(r=this.__data__=new Pt(r.__data__)),
-r.set(t,n),this};var Ao=vr(hn),Oo=vr(pn,true),ko=gr(),Eo=gr(true);Nu&&!qu.call({valueOf:1},"valueOf")&&(En=function(t){return z(Nu(t))});var So=ho?function(t,n){return ho.set(t,n),t}:pu,Io=ao&&1/D(new ao([,-0]))[1]==q?function(t){return new ao(t)}:gu,Ro=ho?function(t){return ho.get(t)}:gu,Wo=Un("length");Pu||(Tr=yu);var Bo=Pu?function(t){for(var n=[];t;)s(n,Tr(t)),t=Ju(Object(t));return n}:Tr;(io&&"[object DataView]"!=qr(new io(new ArrayBuffer(1)))||fo&&"[object Map]"!=qr(new fo)||co&&"[object Promise]"!=qr(co.resolve())||ao&&"[object Set]"!=qr(new ao)||lo&&"[object WeakMap]"!=qr(new lo))&&(qr=function(t){
-var n=Mu.call(t);if(t=(t="[object Object]"==n?t.constructor:T)?ce(t):T)switch(t){case vo:return"[object DataView]";case go:return"[object Map]";case yo:return"[object Promise]";case bo:return"[object Set]";case xo:return"[object WeakMap]"}return n});var Lo=Su?Fe:bu,Mo=function(){var t=0,n=0;return function(r,e){var u=Ee(),o=16-(u-n);if(n=u,o>0){if(150<=++t)return r}else t=0;return So(r,e)}}(),Co=Le(function(t){var n=[];return eu(t).replace(ot,function(t,r,e,u){n.push(e?u.replace(ht,"$1"):r||t)}),
-n}),zo=Me(function(t,n){return $e(t)?fn(t,sn(n,1,$e,true)):[]}),Uo=Me(function(t,n){var r=ve(n);return $e(r)&&(r=T),$e(t)?fn(t,sn(n,1,$e,true),Fr(r)):[]}),$o=Me(function(t,n){var r=ve(n);return $e(r)&&(r=T),$e(t)?fn(t,sn(n,1,$e,true),T,r):[]}),Do=Me(function(t){var n=l(t,rr);return n.length&&n[0]===t[0]?xn(n):[]}),Fo=Me(function(t){var n=ve(t),r=l(t,rr);return n===ve(r)?n=T:r.pop(),r.length&&r[0]===t[0]?xn(r,Fr(n)):[]}),No=Me(function(t){var n=ve(t),r=l(t,rr);return n===ve(r)?n=T:r.pop(),r.length&&r[0]===t[0]?xn(r,T,n):[];
-}),Po=Me(ge),Zo=Me(function(t,n){n=sn(n,1);var r=t?t.length:0,e=tn(t,n);return Fn(t,l(n,function(t){return Xr(t,r)?+t:t}).sort(fr)),e}),To=Me(function(t){return Hn(sn(t,1,$e,true))}),qo=Me(function(t){var n=ve(t);return $e(n)&&(n=T),Hn(sn(t,1,$e,true),Fr(n))}),Vo=Me(function(t){var n=ve(t);return $e(n)&&(n=T),Hn(sn(t,1,$e,true),T,n)}),Ko=Me(function(t,n){return $e(t)?fn(t,n):[]}),Go=Me(function(t){return tr(f(t,$e))}),Jo=Me(function(t){var n=ve(t);return $e(n)&&(n=T),tr(f(t,$e),Fr(n))}),Yo=Me(function(t){
-var n=ve(t);return $e(n)&&(n=T),tr(f(t,$e),T,n)}),Ho=Me(ye),Qo=Me(function(t){var n=t.length,n=n>1?t[n-1]:T,n=typeof n=="function"?(t.pop(),n):T;return be(t,n)}),Xo=Me(function(t){function n(n){return tn(n,t)}t=sn(t,1);var r=t.length,e=r?t[0]:0,u=this.__wrapped__;return!(r>1||this.__actions__.length)&&u instanceof Ut&&Xr(e)?(u=u.slice(e,+e+(r?1:0)),u.__actions__.push({func:je,args:[n],thisArg:T}),new zt(u,this.__chain__).thru(function(t){return r&&!t.length&&t.push(T),t})):this.thru(n)}),ti=pr(function(t,n,r){
-Wu.call(t,r)?++t[r]:t[r]=1}),ni=wr(he),ri=wr(pe),ei=pr(function(t,n,r){Wu.call(t,r)?t[r].push(n):t[r]=[n]}),ui=Me(function(t,n,e){var u=-1,o=typeof n=="function",i=ne(n),f=Ue(t)?Array(t.length):[];return Ao(t,function(t){var c=o?n:i&&null!=t?t[n]:T;f[++u]=c?r(c,t,e):wn(t,n,e)}),f}),oi=pr(function(t,n,r){t[r]=n}),ii=pr(function(t,n,r){t[r?0:1].push(n)},function(){return[[],[]]}),fi=Me(function(t,n){if(null==t)return[];var r=n.length;return r>1&&te(t,n[0],n[1])?n=[]:r>2&&te(n[0],n[1],n[2])&&(n=[n[0]]),
-n=1==n.length&&yi(n[0])?n[0]:sn(n,1,Qr),Mn(t,n,[])}),ci=Me(function(t,n,r){var e=1;if(r.length)var u=$(r,Dr(ci)),e=32|e;return Cr(t,e,n,r,u)}),ai=Me(function(t,n,r){var e=3;if(r.length)var u=$(r,Dr(ai)),e=32|e;return Cr(n,e,t,r,u)}),li=Me(function(t,n){return on(t,1,n)}),si=Me(function(t,n,r){return on(t,nu(n)||0,r)});Le.Cache=Pt;var hi=Me(function(t,n){n=1==n.length&&yi(n[0])?l(n[0],O(Fr())):l(sn(n,1,Qr),O(Fr()));var e=n.length;return Me(function(u){for(var o=-1,i=to(u.length,e);++o<i;)u[o]=n[o].call(this,u[o]);
-return r(t,this,u)})}),pi=Me(function(t,n){var r=$(n,Dr(pi));return Cr(t,32,T,n,r)}),_i=Me(function(t,n){var r=$(n,Dr(_i));return Cr(t,64,T,n,r)}),vi=Me(function(t,n){return Cr(t,256,T,T,T,sn(n,1))}),gi=Wr(dn),di=Wr(function(t,n){return t>=n}),yi=Array.isArray,bi=Uu?function(t){return t instanceof Uu}:bu,xi=Wr(Sn),ji=Wr(function(t,n){return n>=t}),wi=_r(function(t,n){if(po||ee(n)||Ue(n))sr(n,iu(n),t);else for(var r in n)Wu.call(n,r)&&Yt(t,r,n[r])}),mi=_r(function(t,n){if(po||ee(n)||Ue(n))sr(n,fu(n),t);else for(var r in n)Yt(t,r,n[r]);
-}),Ai=_r(function(t,n,r,e){sr(n,fu(n),t,e)}),Oi=_r(function(t,n,r,e){sr(n,iu(n),t,e)}),ki=Me(function(t,n){return tn(t,sn(n,1))}),Ei=Me(function(t){return t.push(T,Vt),r(Ai,T,t)}),Si=Me(function(t){return t.push(T,oe),r(Li,T,t)}),Ii=Or(function(t,n,r){t[n]=r},hu(pu)),Ri=Or(function(t,n,r){Wu.call(t,n)?t[n].push(r):t[n]=[r]},Fr),Wi=Me(wn),Bi=_r(function(t,n,r){Bn(t,n,r)}),Li=_r(function(t,n,r,e){Bn(t,n,r,e)}),Mi=Me(function(t,n){return null==t?{}:(n=l(sn(n,1),fe),Cn(t,fn(gn(t,fu,Bo),n)))}),Ci=Me(function(t,n){
-return null==t?{}:Cn(t,l(sn(n,1),fe))}),zi=Mr(iu),Ui=Mr(fu),$i=br(function(t,n,r){return n=n.toLowerCase(),t+(r?au(n):n)}),Di=br(function(t,n,r){return t+(r?"-":"")+n.toLowerCase()}),Fi=br(function(t,n,r){return t+(r?" ":"")+n.toLowerCase()}),Ni=yr("toLowerCase"),Pi=br(function(t,n,r){return t+(r?"_":"")+n.toLowerCase()}),Zi=br(function(t,n,r){return t+(r?" ":"")+qi(n)}),Ti=br(function(t,n,r){return t+(r?" ":"")+n.toUpperCase()}),qi=yr("toUpperCase"),Vi=Me(function(t,n){try{return r(t,T,n)}catch(e){
-return De(e)?e:new ju(e)}}),Ki=Me(function(t,n){return u(sn(n,1),function(n){n=fe(n),t[n]=ci(t[n],t)}),t}),Gi=mr(),Ji=mr(true),Yi=Me(function(t,n){return function(r){return wn(r,t,n)}}),Hi=Me(function(t,n){return function(r){return wn(t,r,n)}}),Qi=Er(l),Xi=Er(i),tf=Er(_),nf=Rr(),rf=Rr(true),ef=kr(function(t,n){return t+n}),uf=Lr("ceil"),of=kr(function(t,n){return t/n}),ff=Lr("floor"),cf=kr(function(t,n){return t*n}),af=Lr("round"),lf=kr(function(t,n){return t-n});return Ot.after=function(t,n){if(typeof n!="function")throw new Au("Expected a function");
-return t=Xe(t),function(){return 1>--t?n.apply(this,arguments):void 0}},Ot.ary=Se,Ot.assign=wi,Ot.assignIn=mi,Ot.assignInWith=Ai,Ot.assignWith=Oi,Ot.at=ki,Ot.before=Ie,Ot.bind=ci,Ot.bindAll=Ki,Ot.bindKey=ai,Ot.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return yi(t)?t:[t]},Ot.chain=xe,Ot.chunk=function(t,n,r){if(n=(r?te(t,n,r):n===T)?1:Xu(Xe(n),0),r=t?t.length:0,!r||1>n)return[];for(var e=0,u=0,o=Array(Ku(r/n));r>e;)o[u++]=Tn(t,e,e+=n);return o},Ot.compact=function(t){for(var n=-1,r=t?t.length:0,e=0,u=[];++n<r;){
-var o=t[n];o&&(u[e++]=o)}return u},Ot.concat=function(){for(var t=arguments.length,n=Array(t?t-1:0),r=arguments[0],e=t;e--;)n[e-1]=arguments[e];return t?s(yi(r)?lr(r):[r],sn(n,1)):[]},Ot.cond=function(t){var n=t?t.length:0,e=Fr();return t=n?l(t,function(t){if("function"!=typeof t[1])throw new Au("Expected a function");return[e(t[0]),t[1]]}):[],Me(function(e){for(var u=-1;++u<n;){var o=t[u];if(r(o[0],this,e))return r(o[1],this,e)}})},Ot.conforms=function(t){return en(rn(t,true))},Ot.constant=hu,Ot.countBy=ti,
-Ot.create=function(t,n){var r=un(t);return n?Xt(r,n):r},Ot.curry=Re,Ot.curryRight=We,Ot.debounce=Be,Ot.defaults=Ei,Ot.defaultsDeep=Si,Ot.defer=li,Ot.delay=si,Ot.difference=zo,Ot.differenceBy=Uo,Ot.differenceWith=$o,Ot.drop=le,Ot.dropRight=se,Ot.dropRightWhile=function(t,n){return t&&t.length?Qn(t,Fr(n,3),true,true):[]},Ot.dropWhile=function(t,n){return t&&t.length?Qn(t,Fr(n,3),true):[]},Ot.fill=function(t,n,r,e){var u=t?t.length:0;if(!u)return[];for(r&&typeof r!="number"&&te(t,n,r)&&(r=0,e=u),u=t.length,
-r=Xe(r),0>r&&(r=-r>u?0:u+r),e=e===T||e>u?u:Xe(e),0>e&&(e+=u),e=r>e?0:tu(e);e>r;)t[r++]=n;return t},Ot.filter=function(t,n){return(yi(t)?f:ln)(t,Fr(n,3))},Ot.flatMap=function(t,n){return sn(Oe(t,n),1)},Ot.flatMapDeep=function(t,n){return sn(Oe(t,n),q)},Ot.flatMapDepth=function(t,n,r){return r=r===T?1:Xe(r),sn(Oe(t,n),r)},Ot.flatten=function(t){return t&&t.length?sn(t,1):[]},Ot.flattenDeep=function(t){return t&&t.length?sn(t,q):[]},Ot.flattenDepth=function(t,n){return t&&t.length?(n=n===T?1:Xe(n),sn(t,n)):[];
-},Ot.flip=function(t){return Cr(t,512)},Ot.flow=Gi,Ot.flowRight=Ji,Ot.fromPairs=function(t){for(var n=-1,r=t?t.length:0,e={};++n<r;){var u=t[n];e[u[0]]=u[1]}return e},Ot.functions=function(t){return null==t?[]:_n(t,iu(t))},Ot.functionsIn=function(t){return null==t?[]:_n(t,fu(t))},Ot.groupBy=ei,Ot.initial=function(t){return se(t,1)},Ot.intersection=Do,Ot.intersectionBy=Fo,Ot.intersectionWith=No,Ot.invert=Ii,Ot.invertBy=Ri,Ot.invokeMap=ui,Ot.iteratee=_u,Ot.keyBy=oi,Ot.keys=iu,Ot.keysIn=fu,Ot.map=Oe,
-Ot.mapKeys=function(t,n){var r={};return n=Fr(n,3),hn(t,function(t,e,u){r[n(t,e,u)]=t}),r},Ot.mapValues=function(t,n){var r={};return n=Fr(n,3),hn(t,function(t,e,u){r[e]=n(t,e,u)}),r},Ot.matches=function(t){return Rn(rn(t,true))},Ot.matchesProperty=function(t,n){return Wn(t,rn(n,true))},Ot.memoize=Le,Ot.merge=Bi,Ot.mergeWith=Li,Ot.method=Yi,Ot.methodOf=Hi,Ot.mixin=vu,Ot.negate=function(t){if(typeof t!="function")throw new Au("Expected a function");return function(){return!t.apply(this,arguments)}},Ot.nthArg=function(t){
-return t=Xe(t),Me(function(n){return Ln(n,t)})},Ot.omit=Mi,Ot.omitBy=function(t,n){return n=Fr(n),zn(t,function(t,r){return!n(t,r)})},Ot.once=function(t){return Ie(2,t)},Ot.orderBy=function(t,n,r,e){return null==t?[]:(yi(n)||(n=null==n?[]:[n]),r=e?T:r,yi(r)||(r=null==r?[]:[r]),Mn(t,n,r))},Ot.over=Qi,Ot.overArgs=hi,Ot.overEvery=Xi,Ot.overSome=tf,Ot.partial=pi,Ot.partialRight=_i,Ot.partition=ii,Ot.pick=Ci,Ot.pickBy=function(t,n){return null==t?{}:zn(t,Fr(n))},Ot.property=du,Ot.propertyOf=function(t){
-return function(n){return null==t?T:vn(t,n)}},Ot.pull=Po,Ot.pullAll=ge,Ot.pullAllBy=function(t,n,r){return t&&t.length&&n&&n.length?Dn(t,n,Fr(r)):t},Ot.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?Dn(t,n,T,r):t},Ot.pullAt=Zo,Ot.range=nf,Ot.rangeRight=rf,Ot.rearg=vi,Ot.reject=function(t,n){var r=yi(t)?f:ln;return n=Fr(n,3),r(t,function(t,r,e){return!n(t,r,e)})},Ot.remove=function(t,n){var r=[];if(!t||!t.length)return r;var e=-1,u=[],o=t.length;for(n=Fr(n,3);++e<o;){var i=t[e];n(i,e,t)&&(r.push(i),
-u.push(e))}return Fn(t,u),r},Ot.rest=Me,Ot.reverse=de,Ot.sampleSize=ke,Ot.set=function(t,n,r){return null==t?t:Zn(t,n,r)},Ot.setWith=function(t,n,r,e){return e=typeof e=="function"?e:T,null==t?t:Zn(t,n,r,e)},Ot.shuffle=function(t){return ke(t,4294967295)},Ot.slice=function(t,n,r){var e=t?t.length:0;return e?(r&&typeof r!="number"&&te(t,n,r)?(n=0,r=e):(n=null==n?0:Xe(n),r=r===T?e:Xe(r)),Tn(t,n,r)):[]},Ot.sortBy=fi,Ot.sortedUniq=function(t){return t&&t.length?Gn(t):[]},Ot.sortedUniqBy=function(t,n){
-return t&&t.length?Gn(t,Fr(n)):[]},Ot.split=function(t,n,r){return r&&typeof r!="number"&&te(t,n,r)&&(n=r=T),r=r===T?4294967295:r>>>0,r?(t=eu(t))&&(typeof n=="string"||null!=n&&!Ke(n))&&(n=Yn(n),""==n&&Wt.test(t))?ur(t.match(It),0,r):oo.call(t,n,r):[]},Ot.spread=function(t,n){if(typeof t!="function")throw new Au("Expected a function");return n=n===T?0:Xu(Xe(n),0),Me(function(e){var u=e[n];return e=ur(e,0,n),u&&s(e,u),r(t,this,e)})},Ot.tail=function(t){return le(t,1)},Ot.take=function(t,n,r){return t&&t.length?(n=r||n===T?1:Xe(n),
-Tn(t,0,0>n?0:n)):[]},Ot.takeRight=function(t,n,r){var e=t?t.length:0;return e?(n=r||n===T?1:Xe(n),n=e-n,Tn(t,0>n?0:n,e)):[]},Ot.takeRightWhile=function(t,n){return t&&t.length?Qn(t,Fr(n,3),false,true):[]},Ot.takeWhile=function(t,n){return t&&t.length?Qn(t,Fr(n,3)):[]},Ot.tap=function(t,n){return n(t),t},Ot.throttle=function(t,n,r){var e=true,u=true;if(typeof t!="function")throw new Au("Expected a function");return Ze(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Be(t,n,{leading:e,maxWait:n,
-trailing:u})},Ot.thru=je,Ot.toArray=He,Ot.toPairs=zi,Ot.toPairsIn=Ui,Ot.toPath=function(t){return yi(t)?l(t,fe):Je(t)?[t]:lr(Co(t))},Ot.toPlainObject=ru,Ot.transform=function(t,n,r){var e=yi(t)||Ye(t);if(n=Fr(n,4),null==r)if(e||Ze(t)){var o=t.constructor;r=e?yi(t)?new o:[]:Fe(o)?un(Ju(Object(t))):{}}else r={};return(e?u:hn)(t,function(t,e,u){return n(r,t,e,u)}),r},Ot.unary=function(t){return Se(t,1)},Ot.union=To,Ot.unionBy=qo,Ot.unionWith=Vo,Ot.uniq=function(t){return t&&t.length?Hn(t):[]},Ot.uniqBy=function(t,n){
-return t&&t.length?Hn(t,Fr(n)):[]},Ot.uniqWith=function(t,n){return t&&t.length?Hn(t,T,n):[]},Ot.unset=function(t,n){var r;if(null==t)r=true;else{r=t;var e=n,e=ne(e,r)?[e]:er(e);r=ie(r,e),e=fe(ve(e)),r=!(null!=r&&yn(r,e))||delete r[e]}return r},Ot.unzip=ye,Ot.unzipWith=be,Ot.update=function(t,n,r){return null==t?t:Zn(t,n,(typeof r=="function"?r:pu)(vn(t,n)),void 0)},Ot.updateWith=function(t,n,r,e){return e=typeof e=="function"?e:T,null!=t&&(t=Zn(t,n,(typeof r=="function"?r:pu)(vn(t,n)),e)),t},Ot.values=cu,
-Ot.valuesIn=function(t){return null==t?[]:k(t,fu(t))},Ot.without=Ko,Ot.words=su,Ot.wrap=function(t,n){return n=null==n?pu:n,pi(n,t)},Ot.xor=Go,Ot.xorBy=Jo,Ot.xorWith=Yo,Ot.zip=Ho,Ot.zipObject=function(t,n){return nr(t||[],n||[],Yt)},Ot.zipObjectDeep=function(t,n){return nr(t||[],n||[],Zn)},Ot.zipWith=Qo,Ot.entries=zi,Ot.entriesIn=Ui,Ot.extend=mi,Ot.extendWith=Ai,vu(Ot,Ot),Ot.add=ef,Ot.attempt=Vi,Ot.camelCase=$i,Ot.capitalize=au,Ot.ceil=uf,Ot.clamp=function(t,n,r){return r===T&&(r=n,n=T),r!==T&&(r=nu(r),
-r=r===r?r:0),n!==T&&(n=nu(n),n=n===n?n:0),nn(nu(t),n,r)},Ot.clone=function(t){return rn(t,false,true)},Ot.cloneDeep=function(t){return rn(t,true,true)},Ot.cloneDeepWith=function(t,n){return rn(t,true,true,n)},Ot.cloneWith=function(t,n){return rn(t,false,true,n)},Ot.deburr=lu,Ot.divide=of,Ot.endsWith=function(t,n,r){t=eu(t),n=Yn(n);var e=t.length;return r=r===T?e:nn(Xe(r),0,e),r-=n.length,r>=0&&t.indexOf(n,r)==r},Ot.eq=Ce,Ot.escape=function(t){return(t=eu(t))&&X.test(t)?t.replace(H,B):t},Ot.escapeRegExp=function(t){
-return(t=eu(t))&&ft.test(t)?t.replace(it,"\\$&"):t},Ot.every=function(t,n,r){var e=yi(t)?i:cn;return r&&te(t,n,r)&&(n=T),e(t,Fr(n,3))},Ot.find=ni,Ot.findIndex=he,Ot.findKey=function(t,n){return v(t,Fr(n,3),hn)},Ot.findLast=ri,Ot.findLastIndex=pe,Ot.findLastKey=function(t,n){return v(t,Fr(n,3),pn)},Ot.floor=ff,Ot.forEach=me,Ot.forEachRight=Ae,Ot.forIn=function(t,n){return null==t?t:ko(t,Fr(n,3),fu)},Ot.forInRight=function(t,n){return null==t?t:Eo(t,Fr(n,3),fu)},Ot.forOwn=function(t,n){return t&&hn(t,Fr(n,3));
-},Ot.forOwnRight=function(t,n){return t&&pn(t,Fr(n,3))},Ot.get=uu,Ot.gt=gi,Ot.gte=di,Ot.has=function(t,n){return null!=t&&Vr(t,n,yn)},Ot.hasIn=ou,Ot.head=_e,Ot.identity=pu,Ot.includes=function(t,n,r,e){return t=Ue(t)?t:cu(t),r=r&&!e?Xe(r):0,e=t.length,0>r&&(r=Xu(e+r,0)),Ge(t)?e>=r&&-1<t.indexOf(n,r):!!e&&-1<d(t,n,r)},Ot.indexOf=function(t,n,r){var e=t?t.length:0;return e?(r=null==r?0:Xe(r),0>r&&(r=Xu(e+r,0)),d(t,n,r)):-1},Ot.inRange=function(t,n,r){return n=nu(n)||0,r===T?(r=n,n=0):r=nu(r)||0,t=nu(t),
-t>=to(n,r)&&t<Xu(n,r)},Ot.invoke=Wi,Ot.isArguments=ze,Ot.isArray=yi,Ot.isArrayBuffer=function(t){return Te(t)&&"[object ArrayBuffer]"==Mu.call(t)},Ot.isArrayLike=Ue,Ot.isArrayLikeObject=$e,Ot.isBoolean=function(t){return true===t||false===t||Te(t)&&"[object Boolean]"==Mu.call(t)},Ot.isBuffer=bi,Ot.isDate=function(t){return Te(t)&&"[object Date]"==Mu.call(t)},Ot.isElement=function(t){return!!t&&1===t.nodeType&&Te(t)&&!Ve(t)},Ot.isEmpty=function(t){if(Ue(t)&&(yi(t)||Ge(t)||Fe(t.splice)||ze(t)||bi(t)))return!t.length;
-if(Te(t)){var n=qr(t);if("[object Map]"==n||"[object Set]"==n)return!t.size}for(var r in t)if(Wu.call(t,r))return false;return!(po&&iu(t).length)},Ot.isEqual=function(t,n){return mn(t,n)},Ot.isEqualWith=function(t,n,r){var e=(r=typeof r=="function"?r:T)?r(t,n):T;return e===T?mn(t,n,r):!!e},Ot.isError=De,Ot.isFinite=function(t){return typeof t=="number"&&Yu(t)},Ot.isFunction=Fe,Ot.isInteger=Ne,Ot.isLength=Pe,Ot.isMap=function(t){return Te(t)&&"[object Map]"==qr(t)},Ot.isMatch=function(t,n){return t===n||An(t,n,Pr(n));
-},Ot.isMatchWith=function(t,n,r){return r=typeof r=="function"?r:T,An(t,n,Pr(n),r)},Ot.isNaN=function(t){return qe(t)&&t!=+t},Ot.isNative=function(t){if(Lo(t))throw new ju("This method is not supported with `core-js`. Try https://github.com/es-shims.");return On(t)},Ot.isNil=function(t){return null==t},Ot.isNull=function(t){return null===t},Ot.isNumber=qe,Ot.isObject=Ze,Ot.isObjectLike=Te,Ot.isPlainObject=Ve,Ot.isRegExp=Ke,Ot.isSafeInteger=function(t){return Ne(t)&&t>=-9007199254740991&&9007199254740991>=t;
-},Ot.isSet=function(t){return Te(t)&&"[object Set]"==qr(t)},Ot.isString=Ge,Ot.isSymbol=Je,Ot.isTypedArray=Ye,Ot.isUndefined=function(t){return t===T},Ot.isWeakMap=function(t){return Te(t)&&"[object WeakMap]"==qr(t)},Ot.isWeakSet=function(t){return Te(t)&&"[object WeakSet]"==Mu.call(t)},Ot.join=function(t,n){return t?Hu.call(t,n):""},Ot.kebabCase=Di,Ot.last=ve,Ot.lastIndexOf=function(t,n,r){var e=t?t.length:0;if(!e)return-1;var u=e;if(r!==T&&(u=Xe(r),u=(0>u?Xu(e+u,0):to(u,e-1))+1),n!==n)return M(t,u-1,true);
-for(;u--;)if(t[u]===n)return u;return-1},Ot.lowerCase=Fi,Ot.lowerFirst=Ni,Ot.lt=xi,Ot.lte=ji,Ot.max=function(t){return t&&t.length?an(t,pu,dn):T},Ot.maxBy=function(t,n){return t&&t.length?an(t,Fr(n),dn):T},Ot.mean=function(t){return b(t,pu)},Ot.meanBy=function(t,n){return b(t,Fr(n))},Ot.min=function(t){return t&&t.length?an(t,pu,Sn):T},Ot.minBy=function(t,n){return t&&t.length?an(t,Fr(n),Sn):T},Ot.stubArray=yu,Ot.stubFalse=bu,Ot.stubObject=function(){return{}},Ot.stubString=function(){return""},Ot.stubTrue=function(){
-return true},Ot.multiply=cf,Ot.nth=function(t,n){return t&&t.length?Ln(t,Xe(n)):T},Ot.noConflict=function(){return Kt._===this&&(Kt._=Cu),this},Ot.noop=gu,Ot.now=Ee,Ot.pad=function(t,n,r){t=eu(t);var e=(n=Xe(n))?N(t):0;return!n||e>=n?t:(n=(n-e)/2,Sr(Gu(n),r)+t+Sr(Ku(n),r))},Ot.padEnd=function(t,n,r){t=eu(t);var e=(n=Xe(n))?N(t):0;return n&&n>e?t+Sr(n-e,r):t},Ot.padStart=function(t,n,r){t=eu(t);var e=(n=Xe(n))?N(t):0;return n&&n>e?Sr(n-e,r)+t:t},Ot.parseInt=function(t,n,r){return r||null==n?n=0:n&&(n=+n),
-t=eu(t).replace(ct,""),no(t,n||(vt.test(t)?16:10))},Ot.random=function(t,n,r){if(r&&typeof r!="boolean"&&te(t,n,r)&&(n=r=T),r===T&&(typeof n=="boolean"?(r=n,n=T):typeof t=="boolean"&&(r=t,t=T)),t===T&&n===T?(t=0,n=1):(t=nu(t)||0,n===T?(n=t,t=0):n=nu(n)||0),t>n){var e=t;t=n,n=e}return r||t%1||n%1?(r=ro(),to(t+r*(n-t+Ft("1e-"+((r+"").length-1))),n)):Nn(t,n)},Ot.reduce=function(t,n,r){var e=yi(t)?h:x,u=3>arguments.length;return e(t,Fr(n,4),r,u,Ao)},Ot.reduceRight=function(t,n,r){var e=yi(t)?p:x,u=3>arguments.length;
-return e(t,Fr(n,4),r,u,Oo)},Ot.repeat=function(t,n,r){return n=(r?te(t,n,r):n===T)?1:Xe(n),Pn(eu(t),n)},Ot.replace=function(){var t=arguments,n=eu(t[0]);return 3>t.length?n:eo.call(n,t[1],t[2])},Ot.result=function(t,n,r){n=ne(n,t)?[n]:er(n);var e=-1,u=n.length;for(u||(t=T,u=1);++e<u;){var o=null==t?T:t[fe(n[e])];o===T&&(e=u,o=r),t=Fe(o)?o.call(t):o}return t},Ot.round=af,Ot.runInContext=Z,Ot.sample=function(t){t=Ue(t)?t:cu(t);var n=t.length;return n>0?t[Nn(0,n-1)]:T},Ot.size=function(t){if(null==t)return 0;
-if(Ue(t)){var n=t.length;return n&&Ge(t)?N(t):n}return Te(t)&&(n=qr(t),"[object Map]"==n||"[object Set]"==n)?t.size:iu(t).length},Ot.snakeCase=Pi,Ot.some=function(t,n,r){var e=yi(t)?_:qn;return r&&te(t,n,r)&&(n=T),e(t,Fr(n,3))},Ot.sortedIndex=function(t,n){return Vn(t,n)},Ot.sortedIndexBy=function(t,n,r){return Kn(t,n,Fr(r))},Ot.sortedIndexOf=function(t,n){var r=t?t.length:0;if(r){var e=Vn(t,n);if(r>e&&Ce(t[e],n))return e}return-1},Ot.sortedLastIndex=function(t,n){return Vn(t,n,true)},Ot.sortedLastIndexBy=function(t,n,r){
-return Kn(t,n,Fr(r),true)},Ot.sortedLastIndexOf=function(t,n){if(t&&t.length){var r=Vn(t,n,true)-1;if(Ce(t[r],n))return r}return-1},Ot.startCase=Zi,Ot.startsWith=function(t,n,r){return t=eu(t),r=nn(Xe(r),0,t.length),t.lastIndexOf(Yn(n),r)==r},Ot.subtract=lf,Ot.sum=function(t){return t&&t.length?w(t,pu):0},Ot.sumBy=function(t,n){return t&&t.length?w(t,Fr(n)):0},Ot.template=function(t,n,r){var e=Ot.templateSettings;r&&te(t,n,r)&&(n=T),t=eu(t),n=Ai({},n,e,Vt),r=Ai({},n.imports,e.imports,Vt);var u,o,i=iu(r),f=k(r,i),c=0;
-r=n.interpolate||wt;var a="__p+='";r=mu((n.escape||wt).source+"|"+r.source+"|"+(r===rt?pt:wt).source+"|"+(n.evaluate||wt).source+"|$","g");var l="sourceURL"in n?"//# sourceURL="+n.sourceURL+"\n":"";if(t.replace(r,function(n,r,e,i,f,l){return e||(e=i),a+=t.slice(c,l).replace(mt,L),r&&(u=true,a+="'+__e("+r+")+'"),f&&(o=true,a+="';"+f+";\n__p+='"),e&&(a+="'+((__t=("+e+"))==null?'':__t)+'"),c=l+n.length,n}),a+="';",(n=n.variable)||(a="with(obj){"+a+"}"),a=(o?a.replace(K,""):a).replace(G,"$1").replace(J,"$1;"),
-a="function("+(n||"obj")+"){"+(n?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+a+"return __p}",n=Vi(function(){return Function(i,l+"return "+a).apply(T,f)}),n.source=a,De(n))throw n;return n},Ot.times=function(t,n){if(t=Xe(t),1>t||t>9007199254740991)return[];var r=4294967295,e=to(t,4294967295);for(n=Fr(n),t-=4294967295,e=m(e,n);++r<t;)n(r);return e},Ot.toFinite=Qe,Ot.toInteger=Xe,Ot.toLength=tu,Ot.toLower=function(t){
-return eu(t).toLowerCase()},Ot.toNumber=nu,Ot.toSafeInteger=function(t){return nn(Xe(t),-9007199254740991,9007199254740991)},Ot.toString=eu,Ot.toUpper=function(t){return eu(t).toUpperCase()},Ot.trim=function(t,n,r){return(t=eu(t))&&(r||n===T)?t.replace(ct,""):t&&(n=Yn(n))?(t=t.match(It),n=n.match(It),ur(t,S(t,n),I(t,n)+1).join("")):t},Ot.trimEnd=function(t,n,r){return(t=eu(t))&&(r||n===T)?t.replace(lt,""):t&&(n=Yn(n))?(t=t.match(It),n=I(t,n.match(It))+1,ur(t,0,n).join("")):t},Ot.trimStart=function(t,n,r){
-return(t=eu(t))&&(r||n===T)?t.replace(at,""):t&&(n=Yn(n))?(t=t.match(It),n=S(t,n.match(It)),ur(t,n).join("")):t},Ot.truncate=function(t,n){var r=30,e="...";if(Ze(n))var u="separator"in n?n.separator:u,r="length"in n?Xe(n.length):r,e="omission"in n?Yn(n.omission):e;t=eu(t);var o=t.length;if(Wt.test(t))var i=t.match(It),o=i.length;if(r>=o)return t;if(o=r-N(e),1>o)return e;if(r=i?ur(i,0,o).join(""):t.slice(0,o),u===T)return r+e;if(i&&(o+=r.length-o),Ke(u)){if(t.slice(o).search(u)){var f=r;for(u.global||(u=mu(u.source,eu(_t.exec(u))+"g")),
-u.lastIndex=0;i=u.exec(f);)var c=i.index;r=r.slice(0,c===T?o:c)}}else t.indexOf(Yn(u),o)!=o&&(u=r.lastIndexOf(u),u>-1&&(r=r.slice(0,u)));return r+e},Ot.unescape=function(t){return(t=eu(t))&&Q.test(t)?t.replace(Y,P):t},Ot.uniqueId=function(t){var n=++Bu;return eu(t)+n},Ot.upperCase=Ti,Ot.upperFirst=qi,Ot.each=me,Ot.eachRight=Ae,Ot.first=_e,vu(Ot,function(){var t={};return hn(Ot,function(n,r){Wu.call(Ot.prototype,r)||(t[r]=n)}),t}(),{chain:false}),Ot.VERSION="4.13.1",u("bind bindKey curry curryRight partial partialRight".split(" "),function(t){
-Ot[t].placeholder=Ot}),u(["drop","take"],function(t,n){Ut.prototype[t]=function(r){var e=this.__filtered__;if(e&&!n)return new Ut(this);r=r===T?1:Xu(Xe(r),0);var u=this.clone();return e?u.__takeCount__=to(r,u.__takeCount__):u.__views__.push({size:to(r,4294967295),type:t+(0>u.__dir__?"Right":"")}),u},Ut.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),u(["filter","map","takeWhile"],function(t,n){var r=n+1,e=1==r||3==r;Ut.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({
-iteratee:Fr(t,3),type:r}),n.__filtered__=n.__filtered__||e,n}}),u(["head","last"],function(t,n){var r="take"+(n?"Right":"");Ut.prototype[t]=function(){return this[r](1).value()[0]}}),u(["initial","tail"],function(t,n){var r="drop"+(n?"":"Right");Ut.prototype[t]=function(){return this.__filtered__?new Ut(this):this[r](1)}}),Ut.prototype.compact=function(){return this.filter(pu)},Ut.prototype.find=function(t){return this.filter(t).head()},Ut.prototype.findLast=function(t){return this.reverse().find(t);
-},Ut.prototype.invokeMap=Me(function(t,n){return typeof t=="function"?new Ut(this):this.map(function(r){return wn(r,t,n)})}),Ut.prototype.reject=function(t){return t=Fr(t,3),this.filter(function(n){return!t(n)})},Ut.prototype.slice=function(t,n){t=Xe(t);var r=this;return r.__filtered__&&(t>0||0>n)?new Ut(r):(0>t?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==T&&(n=Xe(n),r=0>n?r.dropRight(-n):r.take(n-t)),r)},Ut.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ut.prototype.toArray=function(){
-return this.take(4294967295)},hn(Ut.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),u=Ot[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);u&&(Ot.prototype[n]=function(){function n(t){return t=u.apply(Ot,s([t],f)),e&&h?t[0]:t}var i=this.__wrapped__,f=e?[1]:arguments,c=i instanceof Ut,a=f[0],l=c||yi(i);l&&r&&typeof a=="function"&&1!=a.length&&(c=l=false);var h=this.__chain__,p=!!this.__actions__.length,a=o&&!h,c=c&&!p;return!o&&l?(i=c?i:new Ut(this),
-i=t.apply(i,f),i.__actions__.push({func:je,args:[n],thisArg:T}),new zt(i,h)):a&&c?t.apply(this,f):(i=this.thru(n),a?e?i.value()[0]:i.value():i)})}),u("pop push shift sort splice unshift".split(" "),function(t){var n=Ou[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Ot.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var u=this.value();return n.apply(yi(u)?u:[],t)}return this[r](function(r){return n.apply(yi(r)?r:[],t)})}}),hn(Ut.prototype,function(t,n){
-var r=Ot[n];if(r){var e=r.name+"";(_o[e]||(_o[e]=[])).push({name:n,func:r})}}),_o[Ar(T,2).name]=[{name:"wrapper",func:T}],Ut.prototype.clone=function(){var t=new Ut(this.__wrapped__);return t.__actions__=lr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=lr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=lr(this.__views__),t},Ut.prototype.reverse=function(){if(this.__filtered__){var t=new Ut(this);t.__dir__=-1,t.__filtered__=true}else t=this.clone(),
-t.__dir__*=-1;return t},Ut.prototype.value=function(){var t,n=this.__wrapped__.value(),r=this.__dir__,e=yi(n),u=0>r,o=e?n.length:0;t=o;for(var i=this.__views__,f=0,c=-1,a=i.length;++c<a;){var l=i[c],s=l.size;switch(l.type){case"drop":f+=s;break;case"dropRight":t-=s;break;case"take":t=to(t,f+s);break;case"takeRight":f=Xu(f,t-s)}}if(t={start:f,end:t},i=t.start,f=t.end,t=f-i,u=u?f:i-1,i=this.__iteratees__,f=i.length,c=0,a=to(t,this.__takeCount__),!e||200>o||o==t&&a==t)return Xn(n,this.__actions__);e=[];
-t:for(;t--&&a>c;){for(u+=r,o=-1,l=n[u];++o<f;){var h=i[o],s=h.type,h=(0,h.iteratee)(l);if(2==s)l=h;else if(!h){if(1==s)continue t;break t}}e[c++]=l}return e},Ot.prototype.at=Xo,Ot.prototype.chain=function(){return xe(this)},Ot.prototype.commit=function(){return new zt(this.value(),this.__chain__)},Ot.prototype.next=function(){this.__values__===T&&(this.__values__=He(this.value()));var t=this.__index__>=this.__values__.length,n=t?T:this.__values__[this.__index__++];return{done:t,value:n}},Ot.prototype.plant=function(t){
-for(var n,r=this;r instanceof kt;){var e=ae(r);e.__index__=0,e.__values__=T,n?u.__wrapped__=e:n=e;var u=e,r=r.__wrapped__}return u.__wrapped__=t,n},Ot.prototype.reverse=function(){var t=this.__wrapped__;return t instanceof Ut?(this.__actions__.length&&(t=new Ut(this)),t=t.reverse(),t.__actions__.push({func:je,args:[de],thisArg:T}),new zt(t,this.__chain__)):this.thru(de)},Ot.prototype.toJSON=Ot.prototype.valueOf=Ot.prototype.value=function(){return Xn(this.__wrapped__,this.__actions__)},Zu&&(Ot.prototype[Zu]=we),
-Ot}var T,q=1/0,V=NaN,K=/\b__p\+='';/g,G=/\b(__p\+=)''\+/g,J=/(__e\(.*?\)|\b__t\))\+'';/g,Y=/&(?:amp|lt|gt|quot|#39|#96);/g,H=/[&<>"'`]/g,Q=RegExp(Y.source),X=RegExp(H.source),tt=/<%-([\s\S]+?)%>/g,nt=/<%([\s\S]+?)%>/g,rt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ft=RegExp(it.source),ct=/^\s+|\s+$/g,at=/^\s+/,lt=/\s+$/,st=/[a-zA-Z0-9]+/g,ht=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_t=/\w*$/,vt=/^0x/i,gt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,bt=/^0o[0-7]+$/i,xt=/^(?:0|[1-9]\d*)$/,jt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,wt=/($^)/,mt=/['\n\r\u2028\u2029\\]/g,At="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?)*",Ot="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+At,kt="(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]?|[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])",Et=RegExp("['\u2019]","g"),St=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]","g"),It=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+kt+At,"g"),Rt=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d+",Ot].join("|"),"g"),Wt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Bt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lt="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise Reflect RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ isFinite parseInt setTimeout".split(" "),Mt={};
-Mt["[object Float32Array]"]=Mt["[object Float64Array]"]=Mt["[object Int8Array]"]=Mt["[object Int16Array]"]=Mt["[object Int32Array]"]=Mt["[object Uint8Array]"]=Mt["[object Uint8ClampedArray]"]=Mt["[object Uint16Array]"]=Mt["[object Uint32Array]"]=true,Mt["[object Arguments]"]=Mt["[object Array]"]=Mt["[object ArrayBuffer]"]=Mt["[object Boolean]"]=Mt["[object DataView]"]=Mt["[object Date]"]=Mt["[object Error]"]=Mt["[object Function]"]=Mt["[object Map]"]=Mt["[object Number]"]=Mt["[object Object]"]=Mt["[object RegExp]"]=Mt["[object Set]"]=Mt["[object String]"]=Mt["[object WeakMap]"]=false;
-var Ct={};Ct["[object Arguments]"]=Ct["[object Array]"]=Ct["[object ArrayBuffer]"]=Ct["[object DataView]"]=Ct["[object Boolean]"]=Ct["[object Date]"]=Ct["[object Float32Array]"]=Ct["[object Float64Array]"]=Ct["[object Int8Array]"]=Ct["[object Int16Array]"]=Ct["[object Int32Array]"]=Ct["[object Map]"]=Ct["[object Number]"]=Ct["[object Object]"]=Ct["[object RegExp]"]=Ct["[object Set]"]=Ct["[object String]"]=Ct["[object Symbol]"]=Ct["[object Uint8Array]"]=Ct["[object Uint8ClampedArray]"]=Ct["[object Uint16Array]"]=Ct["[object Uint32Array]"]=true,
-Ct["[object Error]"]=Ct["[object Function]"]=Ct["[object WeakMap]"]=false;var zt={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O",
-"\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss"},Ut={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},$t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ft=parseFloat,Nt=parseInt,Pt=typeof exports=="object"&&exports,Zt=Pt&&typeof module=="object"&&module,Tt=Zt&&Zt.exports===Pt,qt=R(typeof self=="object"&&self),Vt=R(typeof this=="object"&&this),Kt=R(typeof global=="object"&&global)||qt||Vt||Function("return this")(),Gt=Z();
-(qt||{})._=Gt,typeof define=="function"&&typeof define.amd=="object"&&define.amd? define(function(){return Gt}):Zt?((Zt.exports=Gt)._=Gt,Pt._=Gt):Kt._=Gt}).call(this); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/dist/mapping.fp.js b/ecomp-portal-FE/client/bower_components/lodash/dist/mapping.fp.js
deleted file mode 100644
index abf71920..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/dist/mapping.fp.js
+++ /dev/null
@@ -1,371 +0,0 @@
-(function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory();
- else if(typeof define === 'function' && define.amd)
- define([], factory);
- else if(typeof exports === 'object')
- exports["mapping"] = factory();
- else
- root["mapping"] = factory();
-})(this, function() {
-return /******/ (function(modules) { // webpackBootstrap
-/******/ // The module cache
-/******/ var installedModules = {};
-
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-
-/******/ // Check if module is in cache
-/******/ if(installedModules[moduleId])
-/******/ return installedModules[moduleId].exports;
-
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = installedModules[moduleId] = {
-/******/ exports: {},
-/******/ id: moduleId,
-/******/ loaded: false
-/******/ };
-
-/******/ // Execute the module function
-/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-
-/******/ // Flag the module as loaded
-/******/ module.loaded = true;
-
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
-
-
-/******/ // expose the modules object (__webpack_modules__)
-/******/ __webpack_require__.m = modules;
-
-/******/ // expose the module cache
-/******/ __webpack_require__.c = installedModules;
-
-/******/ // __webpack_public_path__
-/******/ __webpack_require__.p = "";
-
-/******/ // Load entry module and return exports
-/******/ return __webpack_require__(0);
-/******/ })
-/************************************************************************/
-/******/ ([
-/* 0 */
-/***/ function(module, exports) {
-
- /** Used to map aliases to their real names. */
- exports.aliasToReal = {
-
- // Lodash aliases.
- 'each': 'forEach',
- 'eachRight': 'forEachRight',
- 'entries': 'toPairs',
- 'entriesIn': 'toPairsIn',
- 'extend': 'assignIn',
- 'extendWith': 'assignInWith',
- 'first': 'head',
-
- // Ramda aliases.
- '__': 'placeholder',
- 'all': 'every',
- 'allPass': 'overEvery',
- 'always': 'constant',
- 'any': 'some',
- 'anyPass': 'overSome',
- 'apply': 'spread',
- 'assoc': 'set',
- 'assocPath': 'set',
- 'complement': 'negate',
- 'compose': 'flowRight',
- 'contains': 'includes',
- 'dissoc': 'unset',
- 'dissocPath': 'unset',
- 'equals': 'isEqual',
- 'identical': 'eq',
- 'init': 'initial',
- 'invertObj': 'invert',
- 'juxt': 'over',
- 'omitAll': 'omit',
- 'nAry': 'ary',
- 'path': 'get',
- 'pathEq': 'matchesProperty',
- 'pathOr': 'getOr',
- 'paths': 'at',
- 'pickAll': 'pick',
- 'pipe': 'flow',
- 'pluck': 'map',
- 'prop': 'get',
- 'propEq': 'matchesProperty',
- 'propOr': 'getOr',
- 'props': 'at',
- 'unapply': 'rest',
- 'unnest': 'flatten',
- 'useWith': 'overArgs',
- 'whereEq': 'filter',
- 'zipObj': 'zipObject'
- };
-
- /** Used to map ary to method names. */
- exports.aryMethod = {
- '1': [
- 'attempt', 'castArray', 'ceil', 'create', 'curry', 'curryRight', 'floor',
- 'flow', 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method',
- 'methodOf', 'mixin', 'over', 'overEvery', 'overSome', 'rest', 'reverse',
- 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
- 'uniqueId', 'words'
- ],
- '2': [
- 'add', 'after', 'ary', 'assign', 'assignIn', 'at', 'before', 'bind', 'bindAll',
- 'bindKey', 'chunk', 'cloneDeepWith', 'cloneWith', 'concat', 'countBy', 'curryN',
- 'curryRightN', 'debounce', 'defaults', 'defaultsDeep', 'delay', 'difference',
- 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith',
- 'eq', 'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast',
- 'findLastIndex', 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth',
- 'forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight',
- 'get', 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf',
- 'intersection', 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch',
- 'join', 'keyBy', 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues',
- 'matchesProperty', 'maxBy', 'meanBy', 'merge', 'minBy', 'multiply', 'nth',
- 'omit', 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt',
- 'partial', 'partialRight', 'partition', 'pick', 'pickBy', 'pull', 'pullAll',
- 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
- 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
- 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
- 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
- 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
- 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
- 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
- 'zipObjectDeep'
- ],
- '3': [
- 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
- 'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
- 'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
- 'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
- 'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
- 'padCharsStart', 'pullAllBy', 'pullAllWith', 'reduce', 'reduceRight', 'replace',
- 'set', 'slice', 'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy',
- 'unionWith', 'update', 'xorBy', 'xorWith', 'zipWith'
- ],
- '4': [
- 'fill', 'setWith', 'updateWith'
- ]
- };
-
- /** Used to map ary to rearg configs. */
- exports.aryRearg = {
- '2': [1, 0],
- '3': [2, 0, 1],
- '4': [3, 2, 0, 1]
- };
-
- /** Used to map method names to their iteratee ary. */
- exports.iterateeAry = {
- 'dropRightWhile': 1,
- 'dropWhile': 1,
- 'every': 1,
- 'filter': 1,
- 'find': 1,
- 'findFrom': 1,
- 'findIndex': 1,
- 'findIndexFrom': 1,
- 'findKey': 1,
- 'findLast': 1,
- 'findLastFrom': 1,
- 'findLastIndex': 1,
- 'findLastIndexFrom': 1,
- 'findLastKey': 1,
- 'flatMap': 1,
- 'flatMapDeep': 1,
- 'flatMapDepth': 1,
- 'forEach': 1,
- 'forEachRight': 1,
- 'forIn': 1,
- 'forInRight': 1,
- 'forOwn': 1,
- 'forOwnRight': 1,
- 'map': 1,
- 'mapKeys': 1,
- 'mapValues': 1,
- 'partition': 1,
- 'reduce': 2,
- 'reduceRight': 2,
- 'reject': 1,
- 'remove': 1,
- 'some': 1,
- 'takeRightWhile': 1,
- 'takeWhile': 1,
- 'times': 1,
- 'transform': 2
- };
-
- /** Used to map method names to iteratee rearg configs. */
- exports.iterateeRearg = {
- 'mapKeys': [1]
- };
-
- /** Used to map method names to rearg configs. */
- exports.methodRearg = {
- 'assignInWith': [1, 2, 0],
- 'assignWith': [1, 2, 0],
- 'differenceBy': [1, 2, 0],
- 'differenceWith': [1, 2, 0],
- 'getOr': [2, 1, 0],
- 'intersectionBy': [1, 2, 0],
- 'intersectionWith': [1, 2, 0],
- 'isEqualWith': [1, 2, 0],
- 'isMatchWith': [2, 1, 0],
- 'mergeWith': [1, 2, 0],
- 'padChars': [2, 1, 0],
- 'padCharsEnd': [2, 1, 0],
- 'padCharsStart': [2, 1, 0],
- 'pullAllBy': [2, 1, 0],
- 'pullAllWith': [2, 1, 0],
- 'setWith': [3, 1, 2, 0],
- 'sortedIndexBy': [2, 1, 0],
- 'sortedLastIndexBy': [2, 1, 0],
- 'unionBy': [1, 2, 0],
- 'unionWith': [1, 2, 0],
- 'updateWith': [3, 1, 2, 0],
- 'xorBy': [1, 2, 0],
- 'xorWith': [1, 2, 0],
- 'zipWith': [1, 2, 0]
- };
-
- /** Used to map method names to spread configs. */
- exports.methodSpread = {
- 'invokeArgs': 2,
- 'invokeArgsMap': 2,
- 'partial': 1,
- 'partialRight': 1,
- 'without': 1
- };
-
- /** Used to identify methods which mutate arrays or objects. */
- exports.mutate = {
- 'array': {
- 'fill': true,
- 'pull': true,
- 'pullAll': true,
- 'pullAllBy': true,
- 'pullAllWith': true,
- 'pullAt': true,
- 'remove': true,
- 'reverse': true
- },
- 'object': {
- 'assign': true,
- 'assignIn': true,
- 'assignInWith': true,
- 'assignWith': true,
- 'defaults': true,
- 'defaultsDeep': true,
- 'merge': true,
- 'mergeWith': true
- },
- 'set': {
- 'set': true,
- 'setWith': true,
- 'unset': true,
- 'update': true,
- 'updateWith': true
- }
- };
-
- /** Used to track methods with placeholder support */
- exports.placeholder = {
- 'bind': true,
- 'bindKey': true,
- 'curry': true,
- 'curryRight': true,
- 'partial': true,
- 'partialRight': true
- };
-
- /** Used to map real names to their aliases. */
- exports.realToAlias = (function() {
- var hasOwnProperty = Object.prototype.hasOwnProperty,
- object = exports.aliasToReal,
- result = {};
-
- for (var key in object) {
- var value = object[key];
- if (hasOwnProperty.call(result, value)) {
- result[value].push(key);
- } else {
- result[value] = [key];
- }
- }
- return result;
- }());
-
- /** Used to map method names to other names. */
- exports.remap = {
- 'curryN': 'curry',
- 'curryRightN': 'curryRight',
- 'findFrom': 'find',
- 'findIndexFrom': 'findIndex',
- 'findLastFrom': 'findLast',
- 'findLastIndexFrom': 'findLastIndex',
- 'getOr': 'get',
- 'includesFrom': 'includes',
- 'indexOfFrom': 'indexOf',
- 'invokeArgs': 'invoke',
- 'invokeArgsMap': 'invokeMap',
- 'lastIndexOfFrom': 'lastIndexOf',
- 'padChars': 'pad',
- 'padCharsEnd': 'padEnd',
- 'padCharsStart': 'padStart',
- 'restFrom': 'rest',
- 'spreadFrom': 'spread',
- 'trimChars': 'trim',
- 'trimCharsEnd': 'trimEnd',
- 'trimCharsStart': 'trimStart'
- };
-
- /** Used to track methods that skip fixing their arity. */
- exports.skipFixed = {
- 'castArray': true,
- 'flow': true,
- 'flowRight': true,
- 'iteratee': true,
- 'mixin': true,
- 'runInContext': true
- };
-
- /** Used to track methods that skip rearranging arguments. */
- exports.skipRearg = {
- 'add': true,
- 'assign': true,
- 'assignIn': true,
- 'bind': true,
- 'bindKey': true,
- 'concat': true,
- 'difference': true,
- 'divide': true,
- 'eq': true,
- 'gt': true,
- 'gte': true,
- 'isEqual': true,
- 'lt': true,
- 'lte': true,
- 'matchesProperty': true,
- 'merge': true,
- 'multiply': true,
- 'overArgs': true,
- 'partial': true,
- 'partialRight': true,
- 'random': true,
- 'range': true,
- 'rangeRight': true,
- 'subtract': true,
- 'zip': true,
- 'zipObject': true
- };
-
-
-/***/ }
-/******/ ])
-});
-; \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/doc/README.md b/ecomp-portal-FE/client/bower_components/lodash/doc/README.md
deleted file mode 100644
index 7f201043..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/doc/README.md
+++ /dev/null
@@ -1,10897 +0,0 @@
-# <a href="https://lodash.com/">lodash</a> <span>v4.13.1</span>
-
-<!-- div class="toc-container" -->
-
-<!-- div -->
-
-## `Array`
-* <a href="#_chunkarray-size1">`_.chunk`</a>
-* <a href="#_compactarray">`_.compact`</a>
-* <a href="#_concatarray-values">`_.concat`</a>
-* <a href="#_differencearray-values">`_.difference`</a>
-* <a href="#_differencebyarray-values-iteratee_identity">`_.differenceBy`</a>
-* <a href="#_differencewitharray-values-comparator">`_.differenceWith`</a>
-* <a href="#_droparray-n1">`_.drop`</a>
-* <a href="#_droprightarray-n1">`_.dropRight`</a>
-* <a href="#_droprightwhilearray-predicate_identity">`_.dropRightWhile`</a>
-* <a href="#_dropwhilearray-predicate_identity">`_.dropWhile`</a>
-* <a href="#_fillarray-value-start0-endarraylength">`_.fill`</a>
-* <a href="#_findindexarray-predicate_identity-fromindex0">`_.findIndex`</a>
-* <a href="#_findlastindexarray-predicate_identity-fromindexarraylength-1">`_.findLastIndex`</a>
-* <a href="#_headarray" class="alias">`_.first` -> `head`</a>
-* <a href="#_flattenarray">`_.flatten`</a>
-* <a href="#_flattendeeparray">`_.flattenDeep`</a>
-* <a href="#_flattendeptharray-depth1">`_.flattenDepth`</a>
-* <a href="#_frompairspairs">`_.fromPairs`</a>
-* <a href="#_headarray">`_.head`</a>
-* <a href="#_indexofarray-value-fromindex0">`_.indexOf`</a>
-* <a href="#_initialarray">`_.initial`</a>
-* <a href="#_intersectionarrays">`_.intersection`</a>
-* <a href="#_intersectionbyarrays-iteratee_identity">`_.intersectionBy`</a>
-* <a href="#_intersectionwitharrays-comparator">`_.intersectionWith`</a>
-* <a href="#_joinarray-separator-">`_.join`</a>
-* <a href="#_lastarray">`_.last`</a>
-* <a href="#_lastindexofarray-value-fromindexarraylength-1">`_.lastIndexOf`</a>
-* <a href="#_ntharray-n0">`_.nth`</a>
-* <a href="#_pullarray-values">`_.pull`</a>
-* <a href="#_pullallarray-values">`_.pullAll`</a>
-* <a href="#_pullallbyarray-values-iteratee_identity">`_.pullAllBy`</a>
-* <a href="#_pullallwitharray-values-comparator">`_.pullAllWith`</a>
-* <a href="#_pullatarray-indexes">`_.pullAt`</a>
-* <a href="#_removearray-predicate_identity">`_.remove`</a>
-* <a href="#_reversearray">`_.reverse`</a>
-* <a href="#_slicearray-start0-endarraylength">`_.slice`</a>
-* <a href="#_sortedindexarray-value">`_.sortedIndex`</a>
-* <a href="#_sortedindexbyarray-value-iteratee_identity">`_.sortedIndexBy`</a>
-* <a href="#_sortedindexofarray-value">`_.sortedIndexOf`</a>
-* <a href="#_sortedlastindexarray-value">`_.sortedLastIndex`</a>
-* <a href="#_sortedlastindexbyarray-value-iteratee_identity">`_.sortedLastIndexBy`</a>
-* <a href="#_sortedlastindexofarray-value">`_.sortedLastIndexOf`</a>
-* <a href="#_sorteduniqarray">`_.sortedUniq`</a>
-* <a href="#_sorteduniqbyarray-iteratee">`_.sortedUniqBy`</a>
-* <a href="#_tailarray">`_.tail`</a>
-* <a href="#_takearray-n1">`_.take`</a>
-* <a href="#_takerightarray-n1">`_.takeRight`</a>
-* <a href="#_takerightwhilearray-predicate_identity">`_.takeRightWhile`</a>
-* <a href="#_takewhilearray-predicate_identity">`_.takeWhile`</a>
-* <a href="#_unionarrays">`_.union`</a>
-* <a href="#_unionbyarrays-iteratee_identity">`_.unionBy`</a>
-* <a href="#_unionwitharrays-comparator">`_.unionWith`</a>
-* <a href="#_uniqarray">`_.uniq`</a>
-* <a href="#_uniqbyarray-iteratee_identity">`_.uniqBy`</a>
-* <a href="#_uniqwitharray-comparator">`_.uniqWith`</a>
-* <a href="#_unziparray">`_.unzip`</a>
-* <a href="#_unzipwitharray-iteratee_identity">`_.unzipWith`</a>
-* <a href="#_withoutarray-values">`_.without`</a>
-* <a href="#_xorarrays">`_.xor`</a>
-* <a href="#_xorbyarrays-iteratee_identity">`_.xorBy`</a>
-* <a href="#_xorwitharrays-comparator">`_.xorWith`</a>
-* <a href="#_ziparrays">`_.zip`</a>
-* <a href="#_zipobjectprops-values">`_.zipObject`</a>
-* <a href="#_zipobjectdeepprops-values">`_.zipObjectDeep`</a>
-* <a href="#_zipwitharrays-iteratee_identity">`_.zipWith`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Collection`
-* <a href="#_countbycollection-iteratee_identity">`_.countBy`</a>
-* <a href="#_foreachcollection-iteratee_identity" class="alias">`_.each` -> `forEach`</a>
-* <a href="#_foreachrightcollection-iteratee_identity" class="alias">`_.eachRight` -> `forEachRight`</a>
-* <a href="#_everycollection-predicate_identity">`_.every`</a>
-* <a href="#_filtercollection-predicate_identity">`_.filter`</a>
-* <a href="#_findcollection-predicate_identity-fromindex0">`_.find`</a>
-* <a href="#_findlastcollection-predicate_identity-fromindexcollectionlength-1">`_.findLast`</a>
-* <a href="#_flatmapcollection-iteratee_identity">`_.flatMap`</a>
-* <a href="#_flatmapdeepcollection-iteratee_identity">`_.flatMapDeep`</a>
-* <a href="#_flatmapdepthcollection-iteratee_identity-depth1">`_.flatMapDepth`</a>
-* <a href="#_foreachcollection-iteratee_identity">`_.forEach`</a>
-* <a href="#_foreachrightcollection-iteratee_identity">`_.forEachRight`</a>
-* <a href="#_groupbycollection-iteratee_identity">`_.groupBy`</a>
-* <a href="#_includescollection-value-fromindex0">`_.includes`</a>
-* <a href="#_invokemapcollection-path-args">`_.invokeMap`</a>
-* <a href="#_keybycollection-iteratee_identity">`_.keyBy`</a>
-* <a href="#_mapcollection-iteratee_identity">`_.map`</a>
-* <a href="#_orderbycollection-iteratees_identity-orders">`_.orderBy`</a>
-* <a href="#_partitioncollection-predicate_identity">`_.partition`</a>
-* <a href="#_reducecollection-iteratee_identity-accumulator">`_.reduce`</a>
-* <a href="#_reducerightcollection-iteratee_identity-accumulator">`_.reduceRight`</a>
-* <a href="#_rejectcollection-predicate_identity">`_.reject`</a>
-* <a href="#_samplecollection">`_.sample`</a>
-* <a href="#_samplesizecollection-n1">`_.sampleSize`</a>
-* <a href="#_shufflecollection">`_.shuffle`</a>
-* <a href="#_sizecollection">`_.size`</a>
-* <a href="#_somecollection-predicate_identity">`_.some`</a>
-* <a href="#_sortbycollection-iteratees_identity">`_.sortBy`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Date`
-* <a href="#_now">`_.now`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Function`
-* <a href="#_aftern-func">`_.after`</a>
-* <a href="#_aryfunc-nfunclength">`_.ary`</a>
-* <a href="#_beforen-func">`_.before`</a>
-* <a href="#_bindfunc-thisarg-partials">`_.bind`</a>
-* <a href="#_bindkeyobject-key-partials">`_.bindKey`</a>
-* <a href="#_curryfunc-arityfunclength">`_.curry`</a>
-* <a href="#_curryrightfunc-arityfunclength">`_.curryRight`</a>
-* <a href="#_debouncefunc-wait0-options-optionsleadingfalse-optionsmaxwait-optionstrailingtrue">`_.debounce`</a>
-* <a href="#_deferfunc-args">`_.defer`</a>
-* <a href="#_delayfunc-wait-args">`_.delay`</a>
-* <a href="#_flipfunc">`_.flip`</a>
-* <a href="#_memoizefunc-resolver">`_.memoize`</a>
-* <a href="#_negatepredicate">`_.negate`</a>
-* <a href="#_oncefunc">`_.once`</a>
-* <a href="#_overargsfunc">`_.overArgs`</a>
-* <a href="#_partialfunc-partials">`_.partial`</a>
-* <a href="#_partialrightfunc-partials">`_.partialRight`</a>
-* <a href="#_reargfunc-indexes">`_.rearg`</a>
-* <a href="#_restfunc-startfunclength-1">`_.rest`</a>
-* <a href="#_spreadfunc-start0">`_.spread`</a>
-* <a href="#_throttlefunc-wait0-options-optionsleadingtrue-optionstrailingtrue">`_.throttle`</a>
-* <a href="#_unaryfunc">`_.unary`</a>
-* <a href="#_wrapvalue-wrapperidentity">`_.wrap`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Lang`
-* <a href="#_castarrayvalue">`_.castArray`</a>
-* <a href="#_clonevalue">`_.clone`</a>
-* <a href="#_clonedeepvalue">`_.cloneDeep`</a>
-* <a href="#_clonedeepwithvalue-customizer">`_.cloneDeepWith`</a>
-* <a href="#_clonewithvalue-customizer">`_.cloneWith`</a>
-* <a href="#_eqvalue-other">`_.eq`</a>
-* <a href="#_gtvalue-other">`_.gt`</a>
-* <a href="#_gtevalue-other">`_.gte`</a>
-* <a href="#_isargumentsvalue">`_.isArguments`</a>
-* <a href="#_isarrayvalue">`_.isArray`</a>
-* <a href="#_isarraybuffervalue">`_.isArrayBuffer`</a>
-* <a href="#_isarraylikevalue">`_.isArrayLike`</a>
-* <a href="#_isarraylikeobjectvalue">`_.isArrayLikeObject`</a>
-* <a href="#_isbooleanvalue">`_.isBoolean`</a>
-* <a href="#_isbuffervalue">`_.isBuffer`</a>
-* <a href="#_isdatevalue">`_.isDate`</a>
-* <a href="#_iselementvalue">`_.isElement`</a>
-* <a href="#_isemptyvalue">`_.isEmpty`</a>
-* <a href="#_isequalvalue-other">`_.isEqual`</a>
-* <a href="#_isequalwithvalue-other-customizer">`_.isEqualWith`</a>
-* <a href="#_iserrorvalue">`_.isError`</a>
-* <a href="#_isfinitevalue">`_.isFinite`</a>
-* <a href="#_isfunctionvalue">`_.isFunction`</a>
-* <a href="#_isintegervalue">`_.isInteger`</a>
-* <a href="#_islengthvalue">`_.isLength`</a>
-* <a href="#_ismapvalue">`_.isMap`</a>
-* <a href="#_ismatchobject-source">`_.isMatch`</a>
-* <a href="#_ismatchwithobject-source-customizer">`_.isMatchWith`</a>
-* <a href="#_isnanvalue">`_.isNaN`</a>
-* <a href="#_isnativevalue">`_.isNative`</a>
-* <a href="#_isnilvalue">`_.isNil`</a>
-* <a href="#_isnullvalue">`_.isNull`</a>
-* <a href="#_isnumbervalue">`_.isNumber`</a>
-* <a href="#_isobjectvalue">`_.isObject`</a>
-* <a href="#_isobjectlikevalue">`_.isObjectLike`</a>
-* <a href="#_isplainobjectvalue">`_.isPlainObject`</a>
-* <a href="#_isregexpvalue">`_.isRegExp`</a>
-* <a href="#_issafeintegervalue">`_.isSafeInteger`</a>
-* <a href="#_issetvalue">`_.isSet`</a>
-* <a href="#_isstringvalue">`_.isString`</a>
-* <a href="#_issymbolvalue">`_.isSymbol`</a>
-* <a href="#_istypedarrayvalue">`_.isTypedArray`</a>
-* <a href="#_isundefinedvalue">`_.isUndefined`</a>
-* <a href="#_isweakmapvalue">`_.isWeakMap`</a>
-* <a href="#_isweaksetvalue">`_.isWeakSet`</a>
-* <a href="#_ltvalue-other">`_.lt`</a>
-* <a href="#_ltevalue-other">`_.lte`</a>
-* <a href="#_toarrayvalue">`_.toArray`</a>
-* <a href="#_tofinitevalue">`_.toFinite`</a>
-* <a href="#_tointegervalue">`_.toInteger`</a>
-* <a href="#_tolengthvalue">`_.toLength`</a>
-* <a href="#_tonumbervalue">`_.toNumber`</a>
-* <a href="#_toplainobjectvalue">`_.toPlainObject`</a>
-* <a href="#_tosafeintegervalue">`_.toSafeInteger`</a>
-* <a href="#_tostringvalue">`_.toString`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Math`
-* <a href="#_addaugend-addend">`_.add`</a>
-* <a href="#_ceilnumber-precision0">`_.ceil`</a>
-* <a href="#_dividedividend-divisor">`_.divide`</a>
-* <a href="#_floornumber-precision0">`_.floor`</a>
-* <a href="#_maxarray">`_.max`</a>
-* <a href="#_maxbyarray-iteratee_identity">`_.maxBy`</a>
-* <a href="#_meanarray">`_.mean`</a>
-* <a href="#_meanbyarray-iteratee_identity">`_.meanBy`</a>
-* <a href="#_minarray">`_.min`</a>
-* <a href="#_minbyarray-iteratee_identity">`_.minBy`</a>
-* <a href="#_multiplymultiplier-multiplicand">`_.multiply`</a>
-* <a href="#_roundnumber-precision0">`_.round`</a>
-* <a href="#_subtractminuend-subtrahend">`_.subtract`</a>
-* <a href="#_sumarray">`_.sum`</a>
-* <a href="#_sumbyarray-iteratee_identity">`_.sumBy`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Number`
-* <a href="#_clampnumber-lower-upper">`_.clamp`</a>
-* <a href="#_inrangenumber-start0-end">`_.inRange`</a>
-* <a href="#_randomlower0-upper1-floating">`_.random`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Object`
-* <a href="#_assignobject-sources">`_.assign`</a>
-* <a href="#_assigninobject-sources">`_.assignIn`</a>
-* <a href="#_assigninwithobject-sources-customizer">`_.assignInWith`</a>
-* <a href="#_assignwithobject-sources-customizer">`_.assignWith`</a>
-* <a href="#_atobject-paths">`_.at`</a>
-* <a href="#_createprototype-properties">`_.create`</a>
-* <a href="#_defaultsobject-sources">`_.defaults`</a>
-* <a href="#_defaultsdeepobject-sources">`_.defaultsDeep`</a>
-* <a href="#_topairsobject" class="alias">`_.entries` -> `toPairs`</a>
-* <a href="#_topairsinobject" class="alias">`_.entriesIn` -> `toPairsIn`</a>
-* <a href="#_assigninobject-sources" class="alias">`_.extend` -> `assignIn`</a>
-* <a href="#_assigninwithobject-sources-customizer" class="alias">`_.extendWith` -> `assignInWith`</a>
-* <a href="#_findkeyobject-predicate_identity">`_.findKey`</a>
-* <a href="#_findlastkeyobject-predicate_identity">`_.findLastKey`</a>
-* <a href="#_forinobject-iteratee_identity">`_.forIn`</a>
-* <a href="#_forinrightobject-iteratee_identity">`_.forInRight`</a>
-* <a href="#_forownobject-iteratee_identity">`_.forOwn`</a>
-* <a href="#_forownrightobject-iteratee_identity">`_.forOwnRight`</a>
-* <a href="#_functionsobject">`_.functions`</a>
-* <a href="#_functionsinobject">`_.functionsIn`</a>
-* <a href="#_getobject-path-defaultvalue">`_.get`</a>
-* <a href="#_hasobject-path">`_.has`</a>
-* <a href="#_hasinobject-path">`_.hasIn`</a>
-* <a href="#_invertobject">`_.invert`</a>
-* <a href="#_invertbyobject-iteratee_identity">`_.invertBy`</a>
-* <a href="#_invokeobject-path-args">`_.invoke`</a>
-* <a href="#_keysobject">`_.keys`</a>
-* <a href="#_keysinobject">`_.keysIn`</a>
-* <a href="#_mapkeysobject-iteratee_identity">`_.mapKeys`</a>
-* <a href="#_mapvaluesobject-iteratee_identity">`_.mapValues`</a>
-* <a href="#_mergeobject-sources">`_.merge`</a>
-* <a href="#_mergewithobject-sources-customizer">`_.mergeWith`</a>
-* <a href="#_omitobject-props">`_.omit`</a>
-* <a href="#_omitbyobject-predicate_identity">`_.omitBy`</a>
-* <a href="#_pickobject-props">`_.pick`</a>
-* <a href="#_pickbyobject-predicate_identity">`_.pickBy`</a>
-* <a href="#_resultobject-path-defaultvalue">`_.result`</a>
-* <a href="#_setobject-path-value">`_.set`</a>
-* <a href="#_setwithobject-path-value-customizer">`_.setWith`</a>
-* <a href="#_topairsobject">`_.toPairs`</a>
-* <a href="#_topairsinobject">`_.toPairsIn`</a>
-* <a href="#_transformobject-iteratee_identity-accumulator">`_.transform`</a>
-* <a href="#_unsetobject-path">`_.unset`</a>
-* <a href="#_updateobject-path-updater">`_.update`</a>
-* <a href="#_updatewithobject-path-updater-customizer">`_.updateWith`</a>
-* <a href="#_valuesobject">`_.values`</a>
-* <a href="#_valuesinobject">`_.valuesIn`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Seq`
-* <a href="#_value">`_`</a>
-* <a href="#_chainvalue">`_.chain`</a>
-* <a href="#_tapvalue-interceptor">`_.tap`</a>
-* <a href="#_thruvalue-interceptor">`_.thru`</a>
-* <a href="#_prototypesymboliterator">`_.prototype[Symbol.iterator]`</a>
-* <a href="#_prototypeatpaths">`_.prototype.at`</a>
-* <a href="#_prototypechain">`_.prototype.chain`</a>
-* <a href="#_prototypecommit">`_.prototype.commit`</a>
-* <a href="#_prototypenext">`_.prototype.next`</a>
-* <a href="#_prototypeplantvalue">`_.prototype.plant`</a>
-* <a href="#_prototypereverse">`_.prototype.reverse`</a>
-* <a href="#_prototypevalue" class="alias">`_.prototype.toJSON` -> `value`</a>
-* <a href="#_prototypevalue">`_.prototype.value`</a>
-* <a href="#_prototypevalue" class="alias">`_.prototype.valueOf` -> `value`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `String`
-* <a href="#_camelcasestring">`_.camelCase`</a>
-* <a href="#_capitalizestring">`_.capitalize`</a>
-* <a href="#_deburrstring">`_.deburr`</a>
-* <a href="#_endswithstring-target-positionstringlength">`_.endsWith`</a>
-* <a href="#_escapestring">`_.escape`</a>
-* <a href="#_escaperegexpstring">`_.escapeRegExp`</a>
-* <a href="#_kebabcasestring">`_.kebabCase`</a>
-* <a href="#_lowercasestring">`_.lowerCase`</a>
-* <a href="#_lowerfirststring">`_.lowerFirst`</a>
-* <a href="#_padstring-length0-chars">`_.pad`</a>
-* <a href="#_padendstring-length0-chars">`_.padEnd`</a>
-* <a href="#_padstartstring-length0-chars">`_.padStart`</a>
-* <a href="#_parseintstring-radix10">`_.parseInt`</a>
-* <a href="#_repeatstring-n1">`_.repeat`</a>
-* <a href="#_replacestring-pattern-replacement">`_.replace`</a>
-* <a href="#_snakecasestring">`_.snakeCase`</a>
-* <a href="#_splitstring-separator-limit">`_.split`</a>
-* <a href="#_startcasestring">`_.startCase`</a>
-* <a href="#_startswithstring-target-position0">`_.startsWith`</a>
-* <a href="#_templatestring-options-optionsescape_templatesettingsescape-optionsevaluate_templatesettingsevaluate-optionsimports_templatesettingsimports-optionsinterpolate_templatesettingsinterpolate-optionssourceurllodashtemplatesourcesn-optionsvariableobj">`_.template`</a>
-* <a href="#_tolowerstring">`_.toLower`</a>
-* <a href="#_toupperstring">`_.toUpper`</a>
-* <a href="#_trimstring-charswhitespace">`_.trim`</a>
-* <a href="#_trimendstring-charswhitespace">`_.trimEnd`</a>
-* <a href="#_trimstartstring-charswhitespace">`_.trimStart`</a>
-* <a href="#_truncatestring-options-optionslength30-optionsomission-optionsseparator">`_.truncate`</a>
-* <a href="#_unescapestring">`_.unescape`</a>
-* <a href="#_uppercasestring">`_.upperCase`</a>
-* <a href="#_upperfirststring">`_.upperFirst`</a>
-* <a href="#_wordsstring-pattern">`_.words`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Util`
-* <a href="#_attemptfunc-args">`_.attempt`</a>
-* <a href="#_bindallobject-methodnames">`_.bindAll`</a>
-* <a href="#_condpairs">`_.cond`</a>
-* <a href="#_conformssource">`_.conforms`</a>
-* <a href="#_constantvalue">`_.constant`</a>
-* <a href="#_flowfuncs">`_.flow`</a>
-* <a href="#_flowrightfuncs">`_.flowRight`</a>
-* <a href="#_identityvalue">`_.identity`</a>
-* <a href="#_iterateefunc_identity">`_.iteratee`</a>
-* <a href="#_matchessource">`_.matches`</a>
-* <a href="#_matchespropertypath-srcvalue">`_.matchesProperty`</a>
-* <a href="#_methodpath-args">`_.method`</a>
-* <a href="#_methodofobject-args">`_.methodOf`</a>
-* <a href="#_mixinobjectlodash-source-options-optionschaintrue">`_.mixin`</a>
-* <a href="#_noconflict">`_.noConflict`</a>
-* <a href="#_noop">`_.noop`</a>
-* <a href="#_nthargn0">`_.nthArg`</a>
-* <a href="#_overiteratees_identity">`_.over`</a>
-* <a href="#_overeverypredicates_identity">`_.overEvery`</a>
-* <a href="#_oversomepredicates_identity">`_.overSome`</a>
-* <a href="#_propertypath">`_.property`</a>
-* <a href="#_propertyofobject">`_.propertyOf`</a>
-* <a href="#_rangestart0-end-step1">`_.range`</a>
-* <a href="#_rangerightstart0-end-step1">`_.rangeRight`</a>
-* <a href="#_runincontextcontextroot">`_.runInContext`</a>
-* <a href="#_stubarray">`_.stubArray`</a>
-* <a href="#_stubfalse">`_.stubFalse`</a>
-* <a href="#_stubobject">`_.stubObject`</a>
-* <a href="#_stubstring">`_.stubString`</a>
-* <a href="#_stubtrue">`_.stubTrue`</a>
-* <a href="#_timesn-iteratee_identity">`_.times`</a>
-* <a href="#_topathvalue">`_.toPath`</a>
-* <a href="#_uniqueidprefix">`_.uniqueId`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Properties`
-* <a href="#_version">`_.VERSION`</a>
-* <a href="#_templatesettings">`_.templateSettings`</a>
-* <a href="#_templatesettingsescape">`_.templateSettings.escape`</a>
-* <a href="#_templatesettingsevaluate">`_.templateSettings.evaluate`</a>
-* <a href="#_templatesettingsimports">`_.templateSettings.imports`</a>
-* <a href="#_templatesettingsinterpolate">`_.templateSettings.interpolate`</a>
-* <a href="#_templatesettingsvariable">`_.templateSettings.variable`</a>
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Methods`
-* <a href="#_templatesettingsimports_">`_.templateSettings.imports._`</a>
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div class="doc-container" -->
-
-<!-- div -->
-
-## `“Array†Methods`
-
-<!-- div -->
-
-### <a id="_chunkarray-size1"></a>`_.chunk(array, [size=1])`
-<a href="#_chunkarray-size1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6118 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.chunk "See the npm package")
-
-Creates an array of elements split into groups the length of `size`.
-If `array` can't be split evenly, the final chunk will be the remaining
-elements.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to process.
-2. `[size=1]` *(number)*: The length of each chunk
-
-#### Returns
-*(Array)*: Returns the new array of chunks.
-
-#### Example
-```js
-_.chunk(['a', 'b', 'c', 'd'], 2);
-// => [['a', 'b'], ['c', 'd']]
-
-_.chunk(['a', 'b', 'c', 'd'], 3);
-// => [['a', 'b', 'c'], ['d']]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_compactarray"></a>`_.compact(array)`
-<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6153 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.compact "See the npm package")
-
-Creates an array with all falsey values removed. The values `false`, `null`,
-`0`, `""`, `undefined`, and `NaN` are falsey.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to compact.
-
-#### Returns
-*(Array)*: Returns the new array of filtered values.
-
-#### Example
-```js
-_.compact([0, 1, false, 2, '', 3]);
-// => [1, 2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_concatarray-values"></a>`_.concat(array, [values])`
-<a href="#_concatarray-values">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6190 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.concat "See the npm package")
-
-Creates a new array concatenating `array` with any additional arrays
-and/or values.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to concatenate.
-2. `[values]` *(...&#42;)*: The values to concatenate.
-
-#### Returns
-*(Array)*: Returns the new concatenated array.
-
-#### Example
-```js
-var array = [1];
-var other = _.concat(array, 2, [3], [[4]]);
-
-console.log(other);
-// => [1, 2, 3, [4]]
-
-console.log(array);
-// => [1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_differencearray-values"></a>`_.difference(array, [values])`
-<a href="#_differencearray-values">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6223 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.difference "See the npm package")
-
-Creates an array of unique `array` values not included in the other given
-arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-for equality comparisons. The order of result values is determined by the
-order they occur in the first array.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-2. `[values]` *(...Array)*: The values to exclude.
-
-#### Returns
-*(Array)*: Returns the new array of filtered values.
-
-#### Example
-```js
-_.difference([2, 1], [2, 3]);
-// => [1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_differencebyarray-values-iteratee_identity"></a>`_.differenceBy(array, [values], [iteratee=_.identity])`
-<a href="#_differencebyarray-values-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6253 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.differenceby "See the npm package")
-
-This method is like `_.difference` except that it accepts `iteratee` which
-is invoked for each element of `array` and `values` to generate the criterion
-by which they're compared. Result values are chosen from the first array.
-The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-2. `[values]` *(...Array)*: The values to exclude.
-3. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(Array)*: Returns the new array of filtered values.
-
-#### Example
-```js
-_.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
-// => [1.2]
-
-// The `_.property` iteratee shorthand.
-_.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
-// => [{ 'x': 2 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_differencewitharray-values-comparator"></a>`_.differenceWith(array, [values], [comparator])`
-<a href="#_differencewitharray-values-comparator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6284 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.differencewith "See the npm package")
-
-This method is like `_.difference` except that it accepts `comparator`
-which is invoked to compare elements of `array` to `values`. Result values
-are chosen from the first array. The comparator is invoked with two arguments:<br>
-*(arrVal, othVal)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-2. `[values]` *(...Array)*: The values to exclude.
-3. `[comparator]` *(Function)*: The comparator invoked per element.
-
-#### Returns
-*(Array)*: Returns the new array of filtered values.
-
-#### Example
-```js
-var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
-
-_.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
-// => [{ 'x': 2, 'y': 1 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_droparray-n1"></a>`_.drop(array, [n=1])`
-<a href="#_droparray-n1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6319 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.drop "See the npm package")
-
-Creates a slice of `array` with `n` elements dropped from the beginning.
-
-#### Since
-0.5.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[n=1]` *(number)*: The number of elements to drop.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-_.drop([1, 2, 3]);
-// => [2, 3]
-
-_.drop([1, 2, 3], 2);
-// => [3]
-
-_.drop([1, 2, 3], 5);
-// => []
-
-_.drop([1, 2, 3], 0);
-// => [1, 2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_droprightarray-n1"></a>`_.dropRight(array, [n=1])`
-<a href="#_droprightarray-n1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6353 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.dropright "See the npm package")
-
-Creates a slice of `array` with `n` elements dropped from the end.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[n=1]` *(number)*: The number of elements to drop.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-_.dropRight([1, 2, 3]);
-// => [1, 2]
-
-_.dropRight([1, 2, 3], 2);
-// => [1]
-
-_.dropRight([1, 2, 3], 5);
-// => []
-
-_.dropRight([1, 2, 3], 0);
-// => [1, 2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_droprightwhilearray-predicate_identity"></a>`_.dropRightWhile(array, [predicate=_.identity])`
-<a href="#_droprightwhilearray-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6399 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.droprightwhile "See the npm package")
-
-Creates a slice of `array` excluding elements dropped from the end.
-Elements are dropped until `predicate` returns falsey. The predicate is
-invoked with three arguments: *(value, index, array)*.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'active': true },
- { 'user': 'fred', 'active': false },
- { 'user': 'pebbles', 'active': false }
-];
-
-_.dropRightWhile(users, function(o) { return !o.active; });
-// => objects for ['barney']
-
-// The `_.matches` iteratee shorthand.
-_.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
-// => objects for ['barney', 'fred']
-
-// The `_.matchesProperty` iteratee shorthand.
-_.dropRightWhile(users, ['active', false]);
-// => objects for ['barney']
-
-// The `_.property` iteratee shorthand.
-_.dropRightWhile(users, 'active');
-// => objects for ['barney', 'fred', 'pebbles']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_dropwhilearray-predicate_identity"></a>`_.dropWhile(array, [predicate=_.identity])`
-<a href="#_dropwhilearray-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6441 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.dropwhile "See the npm package")
-
-Creates a slice of `array` excluding elements dropped from the beginning.
-Elements are dropped until `predicate` returns falsey. The predicate is
-invoked with three arguments: *(value, index, array)*.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'active': false },
- { 'user': 'fred', 'active': false },
- { 'user': 'pebbles', 'active': true }
-];
-
-_.dropWhile(users, function(o) { return !o.active; });
-// => objects for ['pebbles']
-
-// The `_.matches` iteratee shorthand.
-_.dropWhile(users, { 'user': 'barney', 'active': false });
-// => objects for ['fred', 'pebbles']
-
-// The `_.matchesProperty` iteratee shorthand.
-_.dropWhile(users, ['active', false]);
-// => objects for ['pebbles']
-
-// The `_.property` iteratee shorthand.
-_.dropWhile(users, 'active');
-// => objects for ['barney', 'fred', 'pebbles']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_fillarray-value-start0-endarraylength"></a>`_.fill(array, value, [start=0], [end=array.length])`
-<a href="#_fillarray-value-start0-endarraylength">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6476 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.fill "See the npm package")
-
-Fills elements of `array` with `value` from `start` up to, but not
-including, `end`.
-<br>
-<br>
-**Note:** This method mutates `array`.
-
-#### Since
-3.2.0
-#### Arguments
-1. `array` *(Array)*: The array to fill.
-2. `value` *(&#42;)*: The value to fill `array` with.
-3. `[start=0]` *(number)*: The start position.
-4. `[end=array.length]` *(number)*: The end position.
-
-#### Returns
-*(Array)*: Returns `array`.
-
-#### Example
-```js
-var array = [1, 2, 3];
-
-_.fill(array, 'a');
-console.log(array);
-// => ['a', 'a', 'a']
-
-_.fill(Array(3), 2);
-// => [2, 2, 2]
-
-_.fill([4, 6, 8, 10], '*', 1, 3);
-// => [4, '*', '*', 10]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_findindexarray-predicate_identity-fromindex0"></a>`_.findIndex(array, [predicate=_.identity], [fromIndex=0])`
-<a href="#_findindexarray-predicate_identity-fromindex0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6524 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.findindex "See the npm package")
-
-This method is like `_.find` except that it returns the index of the first
-element `predicate` returns truthy for instead of the element itself.
-
-#### Since
-1.1.0
-#### Arguments
-1. `array` *(Array)*: The array to search.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-3. `[fromIndex=0]` *(number)*: The index to search from.
-
-#### Returns
-*(number)*: Returns the index of the found element, else `-1`.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'active': false },
- { 'user': 'fred', 'active': false },
- { 'user': 'pebbles', 'active': true }
-];
-
-_.findIndex(users, function(o) { return o.user == 'barney'; });
-// => 0
-
-// The `_.matches` iteratee shorthand.
-_.findIndex(users, { 'user': 'fred', 'active': false });
-// => 1
-
-// The `_.matchesProperty` iteratee shorthand.
-_.findIndex(users, ['active', false]);
-// => 0
-
-// The `_.property` iteratee shorthand.
-_.findIndex(users, 'active');
-// => 2
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_findlastindexarray-predicate_identity-fromindexarraylength-1"></a>`_.findLastIndex(array, [predicate=_.identity], [fromIndex=array.length-1])`
-<a href="#_findlastindexarray-predicate_identity-fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6572 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.findlastindex "See the npm package")
-
-This method is like `_.findIndex` except that it iterates over elements
-of `collection` from right to left.
-
-#### Since
-2.0.0
-#### Arguments
-1. `array` *(Array)*: The array to search.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-3. `[fromIndex=array.length-1]` *(number)*: The index to search from.
-
-#### Returns
-*(number)*: Returns the index of the found element, else `-1`.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'active': true },
- { 'user': 'fred', 'active': false },
- { 'user': 'pebbles', 'active': false }
-];
-
-_.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
-// => 2
-
-// The `_.matches` iteratee shorthand.
-_.findLastIndex(users, { 'user': 'barney', 'active': true });
-// => 0
-
-// The `_.matchesProperty` iteratee shorthand.
-_.findLastIndex(users, ['active', false]);
-// => 2
-
-// The `_.property` iteratee shorthand.
-_.findLastIndex(users, 'active');
-// => 0
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flattenarray"></a>`_.flatten(array)`
-<a href="#_flattenarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6601 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flatten "See the npm package")
-
-Flattens `array` a single level deep.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to flatten.
-
-#### Returns
-*(Array)*: Returns the new flattened array.
-
-#### Example
-```js
-_.flatten([1, [2, [3, [4]], 5]]);
-// => [1, 2, [3, [4]], 5]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flattendeeparray"></a>`_.flattenDeep(array)`
-<a href="#_flattendeeparray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6620 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flattendeep "See the npm package")
-
-Recursively flattens `array`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to flatten.
-
-#### Returns
-*(Array)*: Returns the new flattened array.
-
-#### Example
-```js
-_.flattenDeep([1, [2, [3, [4]], 5]]);
-// => [1, 2, 3, 4, 5]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flattendeptharray-depth1"></a>`_.flattenDepth(array, [depth=1])`
-<a href="#_flattendeptharray-depth1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6645 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flattendepth "See the npm package")
-
-Recursively flatten `array` up to `depth` times.
-
-#### Since
-4.4.0
-#### Arguments
-1. `array` *(Array)*: The array to flatten.
-2. `[depth=1]` *(number)*: The maximum recursion depth.
-
-#### Returns
-*(Array)*: Returns the new flattened array.
-
-#### Example
-```js
-var array = [1, [2, [3, [4]], 5]];
-
-_.flattenDepth(array, 1);
-// => [1, 2, [3, [4]], 5]
-
-_.flattenDepth(array, 2);
-// => [1, 2, 3, [4], 5]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_frompairspairs"></a>`_.fromPairs(pairs)`
-<a href="#_frompairspairs">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6669 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.frompairs "See the npm package")
-
-The inverse of `_.toPairs`; this method returns an object composed
-from key-value `pairs`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `pairs` *(Array)*: The key-value pairs.
-
-#### Returns
-*(Object)*: Returns the new object.
-
-#### Example
-```js
-_.fromPairs([['fred', 30], ['barney', 40]]);
-// => { 'fred': 30, 'barney': 40 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_headarray"></a>`_.head(array)`
-<a href="#_headarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6699 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.head "See the npm package")
-
-Gets the first element of `array`.
-
-#### Since
-0.1.0
-#### Aliases
-*_.first*
-
-#### Arguments
-1. `array` *(Array)*: The array to query.
-
-#### Returns
-*(&#42;)*: Returns the first element of `array`.
-
-#### Example
-```js
-_.head([1, 2, 3]);
-// => 1
-
-_.head([]);
-// => undefined
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_indexofarray-value-fromindex0"></a>`_.indexOf(array, value, [fromIndex=0])`
-<a href="#_indexofarray-value-fromindex0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6726 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.indexof "See the npm package")
-
-Gets the index at which the first occurrence of `value` is found in `array`
-using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-for equality comparisons. If `fromIndex` is negative, it's used as the
-offset from the end of `array`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to search.
-2. `value` *(&#42;)*: The value to search for.
-3. `[fromIndex=0]` *(number)*: The index to search from.
-
-#### Returns
-*(number)*: Returns the index of the matched value, else `-1`.
-
-#### Example
-```js
-_.indexOf([1, 2, 1, 2], 2);
-// => 1
-
-// Search from the `fromIndex`.
-_.indexOf([1, 2, 1, 2], 2, 2);
-// => 3
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_initialarray"></a>`_.initial(array)`
-<a href="#_initialarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6752 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.initial "See the npm package")
-
-Gets all but the last element of `array`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-_.initial([1, 2, 3]);
-// => [1, 2]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_intersectionarrays"></a>`_.intersection([arrays])`
-<a href="#_intersectionarrays">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6773 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.intersection "See the npm package")
-
-Creates an array of unique values that are included in all given arrays
-using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-for equality comparisons. The order of result values is determined by the
-order they occur in the first array.
-
-#### Since
-0.1.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-
-#### Returns
-*(Array)*: Returns the new array of intersecting values.
-
-#### Example
-```js
-_.intersection([2, 1], [2, 3]);
-// => [2]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_intersectionbyarrays-iteratee_identity"></a>`_.intersectionBy([arrays], [iteratee=_.identity])`
-<a href="#_intersectionbyarrays-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6803 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.intersectionby "See the npm package")
-
-This method is like `_.intersection` except that it accepts `iteratee`
-which is invoked for each element of each `arrays` to generate the criterion
-by which they're compared. Result values are chosen from the first array.
-The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(Array)*: Returns the new array of intersecting values.
-
-#### Example
-```js
-_.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
-// => [2.1]
-
-// The `_.property` iteratee shorthand.
-_.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
-// => [{ 'x': 1 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_intersectionwitharrays-comparator"></a>`_.intersectionWith([arrays], [comparator])`
-<a href="#_intersectionwitharrays-comparator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6838 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.intersectionwith "See the npm package")
-
-This method is like `_.intersection` except that it accepts `comparator`
-which is invoked to compare elements of `arrays`. Result values are chosen
-from the first array. The comparator is invoked with two arguments:<br>
-*(arrVal, othVal)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-2. `[comparator]` *(Function)*: The comparator invoked per element.
-
-#### Returns
-*(Array)*: Returns the new array of intersecting values.
-
-#### Example
-```js
-var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
-var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
-
-_.intersectionWith(objects, others, _.isEqual);
-// => [{ 'x': 1, 'y': 2 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_joinarray-separator-"></a>`_.join(array, [separator=','])`
-<a href="#_joinarray-separator-">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6867 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.join "See the npm package")
-
-Converts all elements in `array` into a string separated by `separator`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to convert.
-2. `[separator=',']` *(string)*: The element separator.
-
-#### Returns
-*(string)*: Returns the joined string.
-
-#### Example
-```js
-_.join(['a', 'b', 'c'], '~');
-// => 'a~b~c'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_lastarray"></a>`_.last(array)`
-<a href="#_lastarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6885 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.last "See the npm package")
-
-Gets the last element of `array`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-
-#### Returns
-*(&#42;)*: Returns the last element of `array`.
-
-#### Example
-```js
-_.last([1, 2, 3]);
-// => 3
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_lastindexofarray-value-fromindexarraylength-1"></a>`_.lastIndexOf(array, value, [fromIndex=array.length-1])`
-<a href="#_lastindexofarray-value-fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6911 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.lastindexof "See the npm package")
-
-This method is like `_.indexOf` except that it iterates over elements of
-`array` from right to left.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to search.
-2. `value` *(&#42;)*: The value to search for.
-3. `[fromIndex=array.length-1]` *(number)*: The index to search from.
-
-#### Returns
-*(number)*: Returns the index of the matched value, else `-1`.
-
-#### Example
-```js
-_.lastIndexOf([1, 2, 1, 2], 2);
-// => 3
-
-// Search from the `fromIndex`.
-_.lastIndexOf([1, 2, 1, 2], 2, 2);
-// => 1
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_ntharray-n0"></a>`_.nth(array, [n=0])`
-<a href="#_ntharray-n0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6957 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.nth "See the npm package")
-
-Gets the element at index `n` of `array`. If `n` is negative, the nth
-element from the end is returned.
-
-#### Since
-4.11.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[n=0]` *(number)*: The index of the element to return.
-
-#### Returns
-*(&#42;)*: Returns the nth element of `array`.
-
-#### Example
-```js
-var array = ['a', 'b', 'c', 'd'];
-
-_.nth(array, 1);
-// => 'b'
-
-_.nth(array, -2);
-// => 'c';
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_pullarray-values"></a>`_.pull(array, [values])`
-<a href="#_pullarray-values">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L6984 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.pull "See the npm package")
-
-Removes all given values from `array` using
-[`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-for equality comparisons.
-<br>
-<br>
-**Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
-to remove elements from an array by predicate.
-
-#### Since
-2.0.0
-#### Arguments
-1. `array` *(Array)*: The array to modify.
-2. `[values]` *(...&#42;)*: The values to remove.
-
-#### Returns
-*(Array)*: Returns `array`.
-
-#### Example
-```js
-var array = ['a', 'b', 'c', 'a', 'b', 'c'];
-
-_.pull(array, 'a', 'c');
-console.log(array);
-// => ['b', 'b']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_pullallarray-values"></a>`_.pullAll(array, values)`
-<a href="#_pullallarray-values">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7006 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.pullall "See the npm package")
-
-This method is like `_.pull` except that it accepts an array of values to remove.
-<br>
-<br>
-**Note:** Unlike `_.difference`, this method mutates `array`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to modify.
-2. `values` *(Array)*: The values to remove.
-
-#### Returns
-*(Array)*: Returns `array`.
-
-#### Example
-```js
-var array = ['a', 'b', 'c', 'a', 'b', 'c'];
-
-_.pullAll(array, ['a', 'c']);
-console.log(array);
-// => ['b', 'b']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_pullallbyarray-values-iteratee_identity"></a>`_.pullAllBy(array, values, [iteratee=_.identity])`
-<a href="#_pullallbyarray-values-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7036 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.pullallby "See the npm package")
-
-This method is like `_.pullAll` except that it accepts `iteratee` which is
-invoked for each element of `array` and `values` to generate the criterion
-by which they're compared. The iteratee is invoked with one argument: *(value)*.
-<br>
-<br>
-**Note:** Unlike `_.differenceBy`, this method mutates `array`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to modify.
-2. `values` *(Array)*: The values to remove.
-3. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(Array)*: Returns `array`.
-
-#### Example
-```js
-var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
-
-_.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
-console.log(array);
-// => [{ 'x': 2 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_pullallwitharray-values-comparator"></a>`_.pullAllWith(array, values, [comparator])`
-<a href="#_pullallwitharray-values-comparator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7065 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.pullallwith "See the npm package")
-
-This method is like `_.pullAll` except that it accepts `comparator` which
-is invoked to compare elements of `array` to `values`. The comparator is
-invoked with two arguments: *(arrVal, othVal)*.
-<br>
-<br>
-**Note:** Unlike `_.differenceWith`, this method mutates `array`.
-
-#### Since
-4.6.0
-#### Arguments
-1. `array` *(Array)*: The array to modify.
-2. `values` *(Array)*: The values to remove.
-3. `[comparator]` *(Function)*: The comparator invoked per element.
-
-#### Returns
-*(Array)*: Returns `array`.
-
-#### Example
-```js
-var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
-
-_.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
-console.log(array);
-// => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_pullatarray-indexes"></a>`_.pullAt(array, [indexes])`
-<a href="#_pullatarray-indexes">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7095 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.pullat "See the npm package")
-
-Removes elements from `array` corresponding to `indexes` and returns an
-array of removed elements.
-<br>
-<br>
-**Note:** Unlike `_.at`, this method mutates `array`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to modify.
-2. `[indexes]` *(...(number|number&#91;&#93;))*: The indexes of elements to remove.
-
-#### Returns
-*(Array)*: Returns the new array of removed elements.
-
-#### Example
-```js
-var array = ['a', 'b', 'c', 'd'];
-var pulled = _.pullAt(array, [1, 3]);
-
-console.log(array);
-// => ['a', 'c']
-
-console.log(pulled);
-// => ['b', 'd']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_removearray-predicate_identity"></a>`_.remove(array, [predicate=_.identity])`
-<a href="#_removearray-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7137 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.remove "See the npm package")
-
-Removes all elements from `array` that `predicate` returns truthy for
-and returns an array of the removed elements. The predicate is invoked
-with three arguments: *(value, index, array)*.
-<br>
-<br>
-**Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
-to pull elements from an array by value.
-
-#### Since
-2.0.0
-#### Arguments
-1. `array` *(Array)*: The array to modify.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the new array of removed elements.
-
-#### Example
-```js
-var array = [1, 2, 3, 4];
-var evens = _.remove(array, function(n) {
- return n % 2 == 0;
-});
-
-console.log(array);
-// => [1, 3]
-
-console.log(evens);
-// => [2, 4]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_reversearray"></a>`_.reverse(array)`
-<a href="#_reversearray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7181 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.reverse "See the npm package")
-
-Reverses `array` so that the first element becomes the last, the second
-element becomes the second to last, and so on.
-<br>
-<br>
-**Note:** This method mutates `array` and is based on
-[`Array#reverse`](https://mdn.io/Array/reverse).
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to modify.
-
-#### Returns
-*(Array)*: Returns `array`.
-
-#### Example
-```js
-var array = [1, 2, 3];
-
-_.reverse(array);
-// => [3, 2, 1]
-
-console.log(array);
-// => [3, 2, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_slicearray-start0-endarraylength"></a>`_.slice(array, [start=0], [end=array.length])`
-<a href="#_slicearray-start0-endarraylength">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7201 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.slice "See the npm package")
-
-Creates a slice of `array` from `start` up to, but not including, `end`.
-<br>
-<br>
-**Note:** This method is used instead of
-[`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
-returned.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to slice.
-2. `[start=0]` *(number)*: The start position.
-3. `[end=array.length]` *(number)*: The end position.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sortedindexarray-value"></a>`_.sortedIndex(array, value)`
-<a href="#_sortedindexarray-value">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7234 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sortedindex "See the npm package")
-
-Uses a binary search to determine the lowest index at which `value`
-should be inserted into `array` in order to maintain its sort order.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The sorted array to inspect.
-2. `value` *(&#42;)*: The value to evaluate.
-
-#### Returns
-*(number)*: Returns the index at which `value` should be inserted into `array`.
-
-#### Example
-```js
-_.sortedIndex([30, 50], 40);
-// => 1
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sortedindexbyarray-value-iteratee_identity"></a>`_.sortedIndexBy(array, value, [iteratee=_.identity])`
-<a href="#_sortedindexbyarray-value-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7264 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sortedindexby "See the npm package")
-
-This method is like `_.sortedIndex` except that it accepts `iteratee`
-which is invoked for `value` and each element of `array` to compute their
-sort ranking. The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The sorted array to inspect.
-2. `value` *(&#42;)*: The value to evaluate.
-3. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(number)*: Returns the index at which `value` should be inserted into `array`.
-
-#### Example
-```js
-var objects = [{ 'x': 4 }, { 'x': 5 }];
-
-_.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
-// => 0
-
-// The `_.property` iteratee shorthand.
-_.sortedIndexBy(objects, { 'x': 4 }, 'x');
-// => 0
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sortedindexofarray-value"></a>`_.sortedIndexOf(array, value)`
-<a href="#_sortedindexofarray-value">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7284 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sortedindexof "See the npm package")
-
-This method is like `_.indexOf` except that it performs a binary
-search on a sorted `array`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to search.
-2. `value` *(&#42;)*: The value to search for.
-
-#### Returns
-*(number)*: Returns the index of the matched value, else `-1`.
-
-#### Example
-```js
-_.sortedIndexOf([4, 5, 5, 5, 6], 5);
-// => 1
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sortedlastindexarray-value"></a>`_.sortedLastIndex(array, value)`
-<a href="#_sortedlastindexarray-value">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7313 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sortedlastindex "See the npm package")
-
-This method is like `_.sortedIndex` except that it returns the highest
-index at which `value` should be inserted into `array` in order to
-maintain its sort order.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The sorted array to inspect.
-2. `value` *(&#42;)*: The value to evaluate.
-
-#### Returns
-*(number)*: Returns the index at which `value` should be inserted into `array`.
-
-#### Example
-```js
-_.sortedLastIndex([4, 5, 5, 5, 6], 5);
-// => 4
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sortedlastindexbyarray-value-iteratee_identity"></a>`_.sortedLastIndexBy(array, value, [iteratee=_.identity])`
-<a href="#_sortedlastindexbyarray-value-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7343 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sortedlastindexby "See the npm package")
-
-This method is like `_.sortedLastIndex` except that it accepts `iteratee`
-which is invoked for `value` and each element of `array` to compute their
-sort ranking. The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The sorted array to inspect.
-2. `value` *(&#42;)*: The value to evaluate.
-3. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(number)*: Returns the index at which `value` should be inserted into `array`.
-
-#### Example
-```js
-var objects = [{ 'x': 4 }, { 'x': 5 }];
-
-_.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
-// => 1
-
-// The `_.property` iteratee shorthand.
-_.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
-// => 1
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sortedlastindexofarray-value"></a>`_.sortedLastIndexOf(array, value)`
-<a href="#_sortedlastindexofarray-value">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7363 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sortedlastindexof "See the npm package")
-
-This method is like `_.lastIndexOf` except that it performs a binary
-search on a sorted `array`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to search.
-2. `value` *(&#42;)*: The value to search for.
-
-#### Returns
-*(number)*: Returns the index of the matched value, else `-1`.
-
-#### Example
-```js
-_.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
-// => 3
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sorteduniqarray"></a>`_.sortedUniq(array)`
-<a href="#_sorteduniqarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7389 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sorteduniq "See the npm package")
-
-This method is like `_.uniq` except that it's designed and optimized
-for sorted arrays.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-
-#### Returns
-*(Array)*: Returns the new duplicate free array.
-
-#### Example
-```js
-_.sortedUniq([1, 1, 2]);
-// => [1, 2]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sorteduniqbyarray-iteratee"></a>`_.sortedUniqBy(array, [iteratee])`
-<a href="#_sorteduniqbyarray-iteratee">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7411 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sorteduniqby "See the npm package")
-
-This method is like `_.uniqBy` except that it's designed and optimized
-for sorted arrays.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-2. `[iteratee]` *(Function)*: The iteratee invoked per element.
-
-#### Returns
-*(Array)*: Returns the new duplicate free array.
-
-#### Example
-```js
-_.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
-// => [1.1, 2.3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tailarray"></a>`_.tail(array)`
-<a href="#_tailarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7431 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.tail "See the npm package")
-
-Gets all but the first element of `array`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-_.tail([1, 2, 3]);
-// => [2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_takearray-n1"></a>`_.take(array, [n=1])`
-<a href="#_takearray-n1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7460 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.take "See the npm package")
-
-Creates a slice of `array` with `n` elements taken from the beginning.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[n=1]` *(number)*: The number of elements to take.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-_.take([1, 2, 3]);
-// => [1]
-
-_.take([1, 2, 3], 2);
-// => [1, 2]
-
-_.take([1, 2, 3], 5);
-// => [1, 2, 3]
-
-_.take([1, 2, 3], 0);
-// => []
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_takerightarray-n1"></a>`_.takeRight(array, [n=1])`
-<a href="#_takerightarray-n1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7493 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.takeright "See the npm package")
-
-Creates a slice of `array` with `n` elements taken from the end.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[n=1]` *(number)*: The number of elements to take.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-_.takeRight([1, 2, 3]);
-// => [3]
-
-_.takeRight([1, 2, 3], 2);
-// => [2, 3]
-
-_.takeRight([1, 2, 3], 5);
-// => [1, 2, 3]
-
-_.takeRight([1, 2, 3], 0);
-// => []
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_takerightwhilearray-predicate_identity"></a>`_.takeRightWhile(array, [predicate=_.identity])`
-<a href="#_takerightwhilearray-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7539 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.takerightwhile "See the npm package")
-
-Creates a slice of `array` with elements taken from the end. Elements are
-taken until `predicate` returns falsey. The predicate is invoked with
-three arguments: *(value, index, array)*.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'active': true },
- { 'user': 'fred', 'active': false },
- { 'user': 'pebbles', 'active': false }
-];
-
-_.takeRightWhile(users, function(o) { return !o.active; });
-// => objects for ['fred', 'pebbles']
-
-// The `_.matches` iteratee shorthand.
-_.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
-// => objects for ['pebbles']
-
-// The `_.matchesProperty` iteratee shorthand.
-_.takeRightWhile(users, ['active', false]);
-// => objects for ['fred', 'pebbles']
-
-// The `_.property` iteratee shorthand.
-_.takeRightWhile(users, 'active');
-// => []
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_takewhilearray-predicate_identity"></a>`_.takeWhile(array, [predicate=_.identity])`
-<a href="#_takewhilearray-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7581 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.takewhile "See the npm package")
-
-Creates a slice of `array` with elements taken from the beginning. Elements
-are taken until `predicate` returns falsey. The predicate is invoked with
-three arguments: *(value, index, array)*.
-
-#### Since
-3.0.0
-#### Arguments
-1. `array` *(Array)*: The array to query.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the slice of `array`.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'active': false },
- { 'user': 'fred', 'active': false},
- { 'user': 'pebbles', 'active': true }
-];
-
-_.takeWhile(users, function(o) { return !o.active; });
-// => objects for ['barney', 'fred']
-
-// The `_.matches` iteratee shorthand.
-_.takeWhile(users, { 'user': 'barney', 'active': false });
-// => objects for ['barney']
-
-// The `_.matchesProperty` iteratee shorthand.
-_.takeWhile(users, ['active', false]);
-// => objects for ['barney', 'fred']
-
-// The `_.property` iteratee shorthand.
-_.takeWhile(users, 'active');
-// => []
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_unionarrays"></a>`_.union([arrays])`
-<a href="#_unionarrays">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7603 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.union "See the npm package")
-
-Creates an array of unique values, in order, from all given arrays using
-[`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-for equality comparisons.
-
-#### Since
-0.1.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-
-#### Returns
-*(Array)*: Returns the new array of combined values.
-
-#### Example
-```js
-_.union([2], [1, 2]);
-// => [2, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_unionbyarrays-iteratee_identity"></a>`_.unionBy([arrays], [iteratee=_.identity])`
-<a href="#_unionbyarrays-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7630 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.unionby "See the npm package")
-
-This method is like `_.union` except that it accepts `iteratee` which is
-invoked for each element of each `arrays` to generate the criterion by
-which uniqueness is computed. The iteratee is invoked with one argument:<br>
-*(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(Array)*: Returns the new array of combined values.
-
-#### Example
-```js
-_.unionBy([2.1], [1.2, 2.3], Math.floor);
-// => [2.1, 1.2]
-
-// The `_.property` iteratee shorthand.
-_.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
-// => [{ 'x': 1 }, { 'x': 2 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_unionwitharrays-comparator"></a>`_.unionWith([arrays], [comparator])`
-<a href="#_unionwitharrays-comparator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7658 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.unionwith "See the npm package")
-
-This method is like `_.union` except that it accepts `comparator` which
-is invoked to compare elements of `arrays`. The comparator is invoked
-with two arguments: *(arrVal, othVal)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-2. `[comparator]` *(Function)*: The comparator invoked per element.
-
-#### Returns
-*(Array)*: Returns the new array of combined values.
-
-#### Example
-```js
-var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
-var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
-
-_.unionWith(objects, others, _.isEqual);
-// => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_uniqarray"></a>`_.uniq(array)`
-<a href="#_uniqarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7683 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.uniq "See the npm package")
-
-Creates a duplicate-free version of an array, using
-[`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-for equality comparisons, in which only the first occurrence of each
-element is kept.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-
-#### Returns
-*(Array)*: Returns the new duplicate free array.
-
-#### Example
-```js
-_.uniq([2, 1, 2]);
-// => [2, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_uniqbyarray-iteratee_identity"></a>`_.uniqBy(array, [iteratee=_.identity])`
-<a href="#_uniqbyarray-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7711 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.uniqby "See the npm package")
-
-This method is like `_.uniq` except that it accepts `iteratee` which is
-invoked for each element in `array` to generate the criterion by which
-uniqueness is computed. The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(Array)*: Returns the new duplicate free array.
-
-#### Example
-```js
-_.uniqBy([2.1, 1.2, 2.3], Math.floor);
-// => [2.1, 1.2]
-
-// The `_.property` iteratee shorthand.
-_.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
-// => [{ 'x': 1 }, { 'x': 2 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_uniqwitharray-comparator"></a>`_.uniqWith(array, [comparator])`
-<a href="#_uniqwitharray-comparator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7736 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.uniqwith "See the npm package")
-
-This method is like `_.uniq` except that it accepts `comparator` which
-is invoked to compare elements of `array`. The comparator is invoked with
-two arguments: *(arrVal, othVal)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-2. `[comparator]` *(Function)*: The comparator invoked per element.
-
-#### Returns
-*(Array)*: Returns the new duplicate free array.
-
-#### Example
-```js
-var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
-
-_.uniqWith(objects, _.isEqual);
-// => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_unziparray"></a>`_.unzip(array)`
-<a href="#_unziparray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7761 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.unzip "See the npm package")
-
-This method is like `_.zip` except that it accepts an array of grouped
-elements and creates an array regrouping the elements to their pre-zip
-configuration.
-
-#### Since
-1.2.0
-#### Arguments
-1. `array` *(Array)*: The array of grouped elements to process.
-
-#### Returns
-*(Array)*: Returns the new array of regrouped elements.
-
-#### Example
-```js
-var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]);
-// => [['fred', 30, true], ['barney', 40, false]]
-
-_.unzip(zipped);
-// => [['fred', 'barney'], [30, 40], [true, false]]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_unzipwitharray-iteratee_identity"></a>`_.unzipWith(array, [iteratee=_.identity])`
-<a href="#_unzipwitharray-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7798 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.unzipwith "See the npm package")
-
-This method is like `_.unzip` except that it accepts `iteratee` to specify
-how regrouped values should be combined. The iteratee is invoked with the
-elements of each group: *(...group)*.
-
-#### Since
-3.8.0
-#### Arguments
-1. `array` *(Array)*: The array of grouped elements to process.
-2. `[iteratee=_.identity]` *(Function)*: The function to combine regrouped values.
-
-#### Returns
-*(Array)*: Returns the new array of regrouped elements.
-
-#### Example
-```js
-var zipped = _.zip([1, 2], [10, 20], [100, 200]);
-// => [[1, 10, 100], [2, 20, 200]]
-
-_.unzipWith(zipped, _.add);
-// => [3, 30, 300]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_withoutarray-values"></a>`_.without(array, [values])`
-<a href="#_withoutarray-values">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7829 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.without "See the npm package")
-
-Creates an array excluding all given values using
-[`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-for equality comparisons.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to inspect.
-2. `[values]` *(...&#42;)*: The values to exclude.
-
-#### Returns
-*(Array)*: Returns the new array of filtered values.
-
-#### Example
-```js
-_.without([2, 1, 2, 3], 1, 2);
-// => [3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_xorarrays"></a>`_.xor([arrays])`
-<a href="#_xorarrays">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7853 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.xor "See the npm package")
-
-Creates an array of unique values that is the
-[symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
-of the given arrays. The order of result values is determined by the order
-they occur in the arrays.
-
-#### Since
-2.4.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-
-#### Returns
-*(Array)*: Returns the new array of filtered values.
-
-#### Example
-```js
-_.xor([2, 1], [2, 3]);
-// => [1, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_xorbyarrays-iteratee_identity"></a>`_.xorBy([arrays], [iteratee=_.identity])`
-<a href="#_xorbyarrays-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7880 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.xorby "See the npm package")
-
-This method is like `_.xor` except that it accepts `iteratee` which is
-invoked for each element of each `arrays` to generate the criterion by
-which by which they're compared. The iteratee is invoked with one argument:<br>
-*(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(Array)*: Returns the new array of filtered values.
-
-#### Example
-```js
-_.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
-// => [1.2, 3.4]
-
-// The `_.property` iteratee shorthand.
-_.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
-// => [{ 'x': 2 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_xorwitharrays-comparator"></a>`_.xorWith([arrays], [comparator])`
-<a href="#_xorwitharrays-comparator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7908 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.xorwith "See the npm package")
-
-This method is like `_.xor` except that it accepts `comparator` which is
-invoked to compare elements of `arrays`. The comparator is invoked with
-two arguments: *(arrVal, othVal)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to inspect.
-2. `[comparator]` *(Function)*: The comparator invoked per element.
-
-#### Returns
-*(Array)*: Returns the new array of filtered values.
-
-#### Example
-```js
-var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
-var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
-
-_.xorWith(objects, others, _.isEqual);
-// => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_ziparrays"></a>`_.zip([arrays])`
-<a href="#_ziparrays">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7932 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.zip "See the npm package")
-
-Creates an array of grouped elements, the first of which contains the
-first elements of the given arrays, the second of which contains the
-second elements of the given arrays, and so on.
-
-#### Since
-0.1.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to process.
-
-#### Returns
-*(Array)*: Returns the new array of grouped elements.
-
-#### Example
-```js
-_.zip(['fred', 'barney'], [30, 40], [true, false]);
-// => [['fred', 30, true], ['barney', 40, false]]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_zipobjectprops-values"></a>`_.zipObject([props=[]], [values=[]])`
-<a href="#_zipobjectprops-values">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7950 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.zipobject "See the npm package")
-
-This method is like `_.fromPairs` except that it accepts two arrays,
-one of property identifiers and one of corresponding values.
-
-#### Since
-0.4.0
-#### Arguments
-1. `[props=[]]` *(Array)*: The property identifiers.
-2. `[values=[]]` *(Array)*: The property values.
-
-#### Returns
-*(Object)*: Returns the new object.
-
-#### Example
-```js
-_.zipObject(['a', 'b'], [1, 2]);
-// => { 'a': 1, 'b': 2 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_zipobjectdeepprops-values"></a>`_.zipObjectDeep([props=[]], [values=[]])`
-<a href="#_zipobjectdeepprops-values">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7969 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.zipobjectdeep "See the npm package")
-
-This method is like `_.zipObject` except that it supports property paths.
-
-#### Since
-4.1.0
-#### Arguments
-1. `[props=[]]` *(Array)*: The property identifiers.
-2. `[values=[]]` *(Array)*: The property values.
-
-#### Returns
-*(Object)*: Returns the new object.
-
-#### Example
-```js
-_.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
-// => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_zipwitharrays-iteratee_identity"></a>`_.zipWith([arrays], [iteratee=_.identity])`
-<a href="#_zipwitharrays-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L7992 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.zipwith "See the npm package")
-
-This method is like `_.zip` except that it accepts `iteratee` to specify
-how grouped values should be combined. The iteratee is invoked with the
-elements of each group: *(...group)*.
-
-#### Since
-3.8.0
-#### Arguments
-1. `[arrays]` *(...Array)*: The arrays to process.
-2. `[iteratee=_.identity]` *(Function)*: The function to combine grouped values.
-
-#### Returns
-*(Array)*: Returns the new array of grouped elements.
-
-#### Example
-```js
-_.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
- return a + b + c;
-});
-// => [111, 222]
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Collection†Methods`
-
-<!-- div -->
-
-### <a id="_countbycollection-iteratee_identity"></a>`_.countBy(collection, [iteratee=_.identity])`
-<a href="#_countbycollection-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8373 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.countby "See the npm package")
-
-Creates an object composed of keys generated from the results of running
-each element of `collection` thru `iteratee`. The corresponding value of
-each key is the number of times the key was returned by `iteratee`. The
-iteratee is invoked with one argument: *(value)*.
-
-#### Since
-0.5.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee to transform keys.
-
-#### Returns
-*(Object)*: Returns the composed aggregate object.
-
-#### Example
-```js
-_.countBy([6.1, 4.2, 6.3], Math.floor);
-// => { '4': 1, '6': 2 }
-
-// The `_.property` iteratee shorthand.
-_.countBy(['one', 'two', 'three'], 'length');
-// => { '3': 2, '5': 1 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_everycollection-predicate_identity"></a>`_.every(collection, [predicate=_.identity])`
-<a href="#_everycollection-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8414 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.every "See the npm package")
-
-Checks if `predicate` returns truthy for **all** elements of `collection`.
-Iteration is stopped once `predicate` returns falsey. The predicate is
-invoked with three arguments: *(value, index|key, collection)*.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(boolean)*: Returns `true` if all elements pass the predicate check, else `false`.
-
-#### Example
-```js
-_.every([true, 1, null, 'yes'], Boolean);
-// => false
-
-var users = [
- { 'user': 'barney', 'age': 36, 'active': false },
- { 'user': 'fred', 'age': 40, 'active': false }
-];
-
-// The `_.matches` iteratee shorthand.
-_.every(users, { 'user': 'barney', 'active': false });
-// => false
-
-// The `_.matchesProperty` iteratee shorthand.
-_.every(users, ['active', false]);
-// => true
-
-// The `_.property` iteratee shorthand.
-_.every(users, 'active');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_filtercollection-predicate_identity"></a>`_.filter(collection, [predicate=_.identity])`
-<a href="#_filtercollection-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8458 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.filter "See the npm package")
-
-Iterates over elements of `collection`, returning an array of all elements
-`predicate` returns truthy for. The predicate is invoked with three
-arguments: *(value, index|key, collection)*.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the new filtered array.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36, 'active': true },
- { 'user': 'fred', 'age': 40, 'active': false }
-];
-
-_.filter(users, function(o) { return !o.active; });
-// => objects for ['fred']
-
-// The `_.matches` iteratee shorthand.
-_.filter(users, { 'age': 36, 'active': true });
-// => objects for ['barney']
-
-// The `_.matchesProperty` iteratee shorthand.
-_.filter(users, ['active', false]);
-// => objects for ['fred']
-
-// The `_.property` iteratee shorthand.
-_.filter(users, 'active');
-// => objects for ['barney']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_findcollection-predicate_identity-fromindex0"></a>`_.find(collection, [predicate=_.identity], [fromIndex=0])`
-<a href="#_findcollection-predicate_identity-fromindex0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8500 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.find "See the npm package")
-
-Iterates over elements of `collection`, returning the first element
-`predicate` returns truthy for. The predicate is invoked with three
-arguments: *(value, index|key, collection)*.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to search.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-3. `[fromIndex=0]` *(number)*: The index to search from.
-
-#### Returns
-*(&#42;)*: Returns the matched element, else `undefined`.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36, 'active': true },
- { 'user': 'fred', 'age': 40, 'active': false },
- { 'user': 'pebbles', 'age': 1, 'active': true }
-];
-
-_.find(users, function(o) { return o.age < 40; });
-// => object for 'barney'
-
-// The `_.matches` iteratee shorthand.
-_.find(users, { 'age': 1, 'active': true });
-// => object for 'pebbles'
-
-// The `_.matchesProperty` iteratee shorthand.
-_.find(users, ['active', false]);
-// => object for 'fred'
-
-// The `_.property` iteratee shorthand.
-_.find(users, 'active');
-// => object for 'barney'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_findlastcollection-predicate_identity-fromindexcollectionlength-1"></a>`_.findLast(collection, [predicate=_.identity], [fromIndex=collection.length-1])`
-<a href="#_findlastcollection-predicate_identity-fromindexcollectionlength-1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8522 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.findlast "See the npm package")
-
-This method is like `_.find` except that it iterates over elements of
-`collection` from right to left.
-
-#### Since
-2.0.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to search.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-3. `[fromIndex=collection.length-1]` *(number)*: The index to search from.
-
-#### Returns
-*(&#42;)*: Returns the matched element, else `undefined`.
-
-#### Example
-```js
-_.findLast([1, 2, 3, 4], function(n) {
- return n % 2 == 1;
-});
-// => 3
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flatmapcollection-iteratee_identity"></a>`_.flatMap(collection, [iteratee=_.identity])`
-<a href="#_flatmapcollection-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8546 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flatmap "See the npm package")
-
-Creates a flattened array of values by running each element in `collection`
-thru `iteratee` and flattening the mapped results. The iteratee is invoked
-with three arguments: *(value, index|key, collection)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the new flattened array.
-
-#### Example
-```js
-function duplicate(n) {
- return [n, n];
-}
-
-_.flatMap([1, 2], duplicate);
-// => [1, 1, 2, 2]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flatmapdeepcollection-iteratee_identity"></a>`_.flatMapDeep(collection, [iteratee=_.identity])`
-<a href="#_flatmapdeepcollection-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8571 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flatmapdeep "See the npm package")
-
-This method is like `_.flatMap` except that it recursively flattens the
-mapped results.
-
-#### Since
-4.7.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the new flattened array.
-
-#### Example
-```js
-function duplicate(n) {
- return [[[n, n]]];
-}
-
-_.flatMapDeep([1, 2], duplicate);
-// => [1, 1, 2, 2]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flatmapdepthcollection-iteratee_identity-depth1"></a>`_.flatMapDepth(collection, [iteratee=_.identity], [depth=1])`
-<a href="#_flatmapdepthcollection-iteratee_identity-depth1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8597 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flatmapdepth "See the npm package")
-
-This method is like `_.flatMap` except that it recursively flattens the
-mapped results up to `depth` times.
-
-#### Since
-4.7.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-3. `[depth=1]` *(number)*: The maximum recursion depth.
-
-#### Returns
-*(Array)*: Returns the new flattened array.
-
-#### Example
-```js
-function duplicate(n) {
- return [[[n, n]]];
-}
-
-_.flatMapDepth([1, 2], duplicate, 2);
-// => [[1, 1], [2, 2]]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_foreachcollection-iteratee_identity"></a>`_.forEach(collection, [iteratee=_.identity])`
-<a href="#_foreachcollection-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8632 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.foreach "See the npm package")
-
-Iterates over elements of `collection` and invokes `iteratee` for each element.
-The iteratee is invoked with three arguments: *(value, index|key, collection)*.
-Iteratee functions may exit iteration early by explicitly returning `false`.
-<br>
-<br>
-**Note:** As with other "Collections" methods, objects with a "length"
-property are iterated like arrays. To avoid this behavior use `_.forIn`
-or `_.forOwn` for object iteration.
-
-#### Since
-0.1.0
-#### Aliases
-*_.each*
-
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-
-#### Returns
-*(&#42;)*: Returns `collection`.
-
-#### Example
-```js
-_([1, 2]).forEach(function(value) {
- console.log(value);
-});
-// => Logs `1` then `2`.
-
-_.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
- console.log(key);
-});
-// => Logs 'a' then 'b' (iteration order is not guaranteed).
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_foreachrightcollection-iteratee_identity"></a>`_.forEachRight(collection, [iteratee=_.identity])`
-<a href="#_foreachrightcollection-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8657 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.foreachright "See the npm package")
-
-This method is like `_.forEach` except that it iterates over elements of
-`collection` from right to left.
-
-#### Since
-2.0.0
-#### Aliases
-*_.eachRight*
-
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-
-#### Returns
-*(&#42;)*: Returns `collection`.
-
-#### Example
-```js
-_.forEachRight([1, 2], function(value) {
- console.log(value);
-});
-// => Logs `2` then `1`.
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_groupbycollection-iteratee_identity"></a>`_.groupBy(collection, [iteratee=_.identity])`
-<a href="#_groupbycollection-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8686 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.groupby "See the npm package")
-
-Creates an object composed of keys generated from the results of running
-each element of `collection` thru `iteratee`. The order of grouped values
-is determined by the order they occur in `collection`. The corresponding
-value of each key is an array of elements responsible for generating the
-key. The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee to transform keys.
-
-#### Returns
-*(Object)*: Returns the composed aggregate object.
-
-#### Example
-```js
-_.groupBy([6.1, 4.2, 6.3], Math.floor);
-// => { '4': [4.2], '6': [6.1, 6.3] }
-
-// The `_.property` iteratee shorthand.
-_.groupBy(['one', 'two', 'three'], 'length');
-// => { '3': ['one', 'two'], '5': ['three'] }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_includescollection-value-fromindex0"></a>`_.includes(collection, value, [fromIndex=0])`
-<a href="#_includescollection-value-fromindex0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8724 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.includes "See the npm package")
-
-Checks if `value` is in `collection`. If `collection` is a string, it's
-checked for a substring of `value`, otherwise
-[`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-is used for equality comparisons. If `fromIndex` is negative, it's used as
-the offset from the end of `collection`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object|string)*: The collection to search.
-2. `value` *(&#42;)*: The value to search for.
-3. `[fromIndex=0]` *(number)*: The index to search from.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is found, else `false`.
-
-#### Example
-```js
-_.includes([1, 2, 3], 1);
-// => true
-
-_.includes([1, 2, 3], 1, 2);
-// => false
-
-_.includes({ 'user': 'fred', 'age': 40 }, 'fred');
-// => true
-
-_.includes('pebbles', 'eb');
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_invokemapcollection-path-args"></a>`_.invokeMap(collection, path, [args])`
-<a href="#_invokemapcollection-path-args">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8760 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.invokemap "See the npm package")
-
-Invokes the method at `path` of each element in `collection`, returning
-an array of the results of each invoked method. Any additional arguments
-are provided to each invoked method. If `methodName` is a function, it's
-invoked for and `this` bound to, each element in `collection`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `path` *(Array|Function|string)*: The path of the method to invoke or the function invoked per iteration.
-3. `[args]` *(...&#42;)*: The arguments to invoke each method with.
-
-#### Returns
-*(Array)*: Returns the array of results.
-
-#### Example
-```js
-_.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
-// => [[1, 5, 7], [1, 2, 3]]
-
-_.invokeMap([123, 456], String.prototype.split, '');
-// => [['1', '2', '3'], ['4', '5', '6']]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_keybycollection-iteratee_identity"></a>`_.keyBy(collection, [iteratee=_.identity])`
-<a href="#_keybycollection-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8802 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.keyby "See the npm package")
-
-Creates an object composed of keys generated from the results of running
-each element of `collection` thru `iteratee`. The corresponding value of
-each key is the last element responsible for generating the key. The
-iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee to transform keys.
-
-#### Returns
-*(Object)*: Returns the composed aggregate object.
-
-#### Example
-```js
-var array = [
- { 'dir': 'left', 'code': 97 },
- { 'dir': 'right', 'code': 100 }
-];
-
-_.keyBy(array, function(o) {
- return String.fromCharCode(o.code);
-});
-// => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
-
-_.keyBy(array, 'dir');
-// => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_mapcollection-iteratee_identity"></a>`_.map(collection, [iteratee=_.identity])`
-<a href="#_mapcollection-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8849 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.map "See the npm package")
-
-Creates an array of values by running each element in `collection` thru
-`iteratee`. The iteratee is invoked with three arguments:<br>
-*(value, index|key, collection)*.
-<br>
-<br>
-Many lodash methods are guarded to work as iteratees for methods like
-`_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
-<br>
-<br>
-The guarded methods are:<br>
-`ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
-`fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
-`sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
-`template`, `trim`, `trimEnd`, `trimStart`, and `words`
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the new mapped array.
-
-#### Example
-```js
-function square(n) {
- return n * n;
-}
-
-_.map([4, 8], square);
-// => [16, 64]
-
-_.map({ 'a': 4, 'b': 8 }, square);
-// => [16, 64] (iteration order is not guaranteed)
-
-var users = [
- { 'user': 'barney' },
- { 'user': 'fred' }
-];
-
-// The `_.property` iteratee shorthand.
-_.map(users, 'user');
-// => ['barney', 'fred']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_orderbycollection-iteratees_identity-orders"></a>`_.orderBy(collection, [iteratees=[_.identity]], [orders])`
-<a href="#_orderbycollection-iteratees_identity-orders">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8883 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.orderby "See the npm package")
-
-This method is like `_.sortBy` except that it allows specifying the sort
-orders of the iteratees to sort by. If `orders` is unspecified, all values
-are sorted in ascending order. Otherwise, specify an order of "desc" for
-descending or "asc" for ascending sort order of corresponding values.
-
-#### Since
-4.0.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratees=[_.identity]]` *(Array&#91;&#93;|Function&#91;&#93;|Object&#91;&#93;|string&#91;&#93;)*: The iteratees to sort by.
-3. `[orders]` *(string&#91;&#93;)*: The sort orders of `iteratees`.
-
-#### Returns
-*(Array)*: Returns the new sorted array.
-
-#### Example
-```js
-var users = [
- { 'user': 'fred', 'age': 48 },
- { 'user': 'barney', 'age': 34 },
- { 'user': 'fred', 'age': 40 },
- { 'user': 'barney', 'age': 36 }
-];
-
-// Sort by `user` in ascending order and by `age` in descending order.
-_.orderBy(users, ['user', 'age'], ['asc', 'desc']);
-// => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_partitioncollection-predicate_identity"></a>`_.partition(collection, [predicate=_.identity])`
-<a href="#_partitioncollection-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8934 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.partition "See the npm package")
-
-Creates an array of elements split into two groups, the first of which
-contains elements `predicate` returns truthy for, the second of which
-contains elements `predicate` returns falsey for. The predicate is
-invoked with one argument: *(value)*.
-
-#### Since
-3.0.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the array of grouped elements.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36, 'active': false },
- { 'user': 'fred', 'age': 40, 'active': true },
- { 'user': 'pebbles', 'age': 1, 'active': false }
-];
-
-_.partition(users, function(o) { return o.active; });
-// => objects for [['fred'], ['barney', 'pebbles']]
-
-// The `_.matches` iteratee shorthand.
-_.partition(users, { 'age': 1, 'active': false });
-// => objects for [['pebbles'], ['barney', 'fred']]
-
-// The `_.matchesProperty` iteratee shorthand.
-_.partition(users, ['active', false]);
-// => objects for [['barney', 'pebbles'], ['fred']]
-
-// The `_.property` iteratee shorthand.
-_.partition(users, 'active');
-// => objects for [['fred'], ['barney', 'pebbles']]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_reducecollection-iteratee_identity-accumulator"></a>`_.reduce(collection, [iteratee=_.identity], [accumulator])`
-<a href="#_reducecollection-iteratee_identity-accumulator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8975 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.reduce "See the npm package")
-
-Reduces `collection` to a value which is the accumulated result of running
-each element in `collection` thru `iteratee`, where each successive
-invocation is supplied the return value of the previous. If `accumulator`
-is not given, the first element of `collection` is used as the initial
-value. The iteratee is invoked with four arguments:<br>
-*(accumulator, value, index|key, collection)*.
-<br>
-<br>
-Many lodash methods are guarded to work as iteratees for methods like
-`_.reduce`, `_.reduceRight`, and `_.transform`.
-<br>
-<br>
-The guarded methods are:<br>
-`assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
-and `sortBy`
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-3. `[accumulator]` *(&#42;)*: The initial value.
-
-#### Returns
-*(&#42;)*: Returns the accumulated value.
-
-#### Example
-```js
-_.reduce([1, 2], function(sum, n) {
- return sum + n;
-}, 0);
-// => 3
-
-_.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- (result[value] || (result[value] = [])).push(key);
- return result;
-}, {});
-// => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_reducerightcollection-iteratee_identity-accumulator"></a>`_.reduceRight(collection, [iteratee=_.identity], [accumulator])`
-<a href="#_reducerightcollection-iteratee_identity-accumulator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9004 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.reduceright "See the npm package")
-
-This method is like `_.reduce` except that it iterates over elements of
-`collection` from right to left.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-3. `[accumulator]` *(&#42;)*: The initial value.
-
-#### Returns
-*(&#42;)*: Returns the accumulated value.
-
-#### Example
-```js
-var array = [[0, 1], [2, 3], [4, 5]];
-
-_.reduceRight(array, function(flattened, other) {
- return flattened.concat(other);
-}, []);
-// => [4, 5, 2, 3, 0, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_rejectcollection-predicate_identity"></a>`_.reject(collection, [predicate=_.identity])`
-<a href="#_rejectcollection-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9046 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.reject "See the npm package")
-
-The opposite of `_.filter`; this method returns the elements of `collection`
-that `predicate` does **not** return truthy for.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the new filtered array.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36, 'active': false },
- { 'user': 'fred', 'age': 40, 'active': true }
-];
-
-_.reject(users, function(o) { return !o.active; });
-// => objects for ['fred']
-
-// The `_.matches` iteratee shorthand.
-_.reject(users, { 'age': 40, 'active': true });
-// => objects for ['barney']
-
-// The `_.matchesProperty` iteratee shorthand.
-_.reject(users, ['active', false]);
-// => objects for ['fred']
-
-// The `_.property` iteratee shorthand.
-_.reject(users, 'active');
-// => objects for ['barney']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_samplecollection"></a>`_.sample(collection)`
-<a href="#_samplecollection">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9068 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sample "See the npm package")
-
-Gets a random element from `collection`.
-
-#### Since
-2.0.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to sample.
-
-#### Returns
-*(&#42;)*: Returns the random element.
-
-#### Example
-```js
-_.sample([1, 2, 3, 4]);
-// => 2
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_samplesizecollection-n1"></a>`_.sampleSize(collection, [n=1])`
-<a href="#_samplesizecollection-n1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9095 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.samplesize "See the npm package")
-
-Gets `n` random elements at unique keys from `collection` up to the
-size of `collection`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to sample.
-2. `[n=1]` *(number)*: The number of elements to sample.
-
-#### Returns
-*(Array)*: Returns the random elements.
-
-#### Example
-```js
-_.sampleSize([1, 2, 3], 2);
-// => [3, 1]
-
-_.sampleSize([1, 2, 3], 4);
-// => [2, 3, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_shufflecollection"></a>`_.shuffle(collection)`
-<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9132 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.shuffle "See the npm package")
-
-Creates an array of shuffled values, using a version of the
-[Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to shuffle.
-
-#### Returns
-*(Array)*: Returns the new shuffled array.
-
-#### Example
-```js
-_.shuffle([1, 2, 3, 4]);
-// => [4, 1, 3, 2]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sizecollection"></a>`_.size(collection)`
-<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9157 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.size "See the npm package")
-
-Gets the size of `collection` by returning its length for array-like
-values or the number of own enumerable string keyed properties for objects.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to inspect.
-
-#### Returns
-*(number)*: Returns the collection size.
-
-#### Example
-```js
-_.size([1, 2, 3]);
-// => 3
-
-_.size({ 'a': 1, 'b': 2 });
-// => 2
-
-_.size('pebbles');
-// => 7
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_somecollection-predicate_identity"></a>`_.some(collection, [predicate=_.identity])`
-<a href="#_somecollection-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9211 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.some "See the npm package")
-
-Checks if `predicate` returns truthy for **any** element of `collection`.
-Iteration is stopped once `predicate` returns truthy. The predicate is
-invoked with three arguments: *(value, index|key, collection)*.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(boolean)*: Returns `true` if any element passes the predicate check, else `false`.
-
-#### Example
-```js
-_.some([null, 0, 'yes', false], Boolean);
-// => true
-
-var users = [
- { 'user': 'barney', 'active': true },
- { 'user': 'fred', 'active': false }
-];
-
-// The `_.matches` iteratee shorthand.
-_.some(users, { 'user': 'barney', 'active': false });
-// => false
-
-// The `_.matchesProperty` iteratee shorthand.
-_.some(users, ['active', false]);
-// => true
-
-// The `_.property` iteratee shorthand.
-_.some(users, 'active');
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sortbycollection-iteratees_identity"></a>`_.sortBy(collection, [iteratees=[_.identity]])`
-<a href="#_sortbycollection-iteratees_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9253 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sortby "See the npm package")
-
-Creates an array of elements, sorted in ascending order by the results of
-running each element in a collection thru each iteratee. This method
-performs a stable sort, that is, it preserves the original sort order of
-equal elements. The iteratees are invoked with one argument: *(value)*.
-
-#### Since
-0.1.0
-#### Arguments
-1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratees=[_.identity]]` *(...(Array|Array&#91;&#93;|Function|Function&#91;&#93;|Object|Object&#91;&#93;|string|string&#91;&#93;))*: The iteratees to sort by.
-
-#### Returns
-*(Array)*: Returns the new sorted array.
-
-#### Example
-```js
-var users = [
- { 'user': 'fred', 'age': 48 },
- { 'user': 'barney', 'age': 36 },
- { 'user': 'fred', 'age': 40 },
- { 'user': 'barney', 'age': 34 }
-];
-
-_.sortBy(users, function(o) { return o.user; });
-// => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
-
-_.sortBy(users, ['user', 'age']);
-// => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
-
-_.sortBy(users, 'user', function(o) {
- return Math.floor(o.age / 10);
-});
-// => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Date†Methods`
-
-<!-- div -->
-
-### <a id="_now"></a>`_.now()`
-<a href="#_now">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9288 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.now "See the npm package")
-
-Gets the timestamp of the number of milliseconds that have elapsed since
-the Unix epoch *(1 January `1970 00`:00:00 UTC)*.
-
-#### Since
-2.4.0
-#### Returns
-*(number)*: Returns the timestamp.
-
-#### Example
-```js
-_.defer(function(stamp) {
- console.log(_.now() - stamp);
-}, _.now());
-// => Logs the number of milliseconds it took for the deferred invocation.
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Function†Methods`
-
-<!-- div -->
-
-### <a id="_aftern-func"></a>`_.after(n, func)`
-<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9318 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.after "See the npm package")
-
-The opposite of `_.before`; this method creates a function that invokes
-`func` once it's called `n` or more times.
-
-#### Since
-0.1.0
-#### Arguments
-1. `n` *(number)*: The number of calls before `func` is invoked.
-2. `func` *(Function)*: The function to restrict.
-
-#### Returns
-*(Function)*: Returns the new restricted function.
-
-#### Example
-```js
-var saves = ['profile', 'settings'];
-
-var done = _.after(saves.length, function() {
- console.log('done saving!');
-});
-
-_.forEach(saves, function(type) {
- asyncSave({ 'type': type, 'complete': done });
-});
-// => Logs 'done saving!' after the two async saves have completed.
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_aryfunc-nfunclength"></a>`_.ary(func, [n=func.length])`
-<a href="#_aryfunc-nfunclength">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9347 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.ary "See the npm package")
-
-Creates a function that invokes `func`, with up to `n` arguments,
-ignoring any additional arguments.
-
-#### Since
-3.0.0
-#### Arguments
-1. `func` *(Function)*: The function to cap arguments for.
-2. `[n=func.length]` *(number)*: The arity cap.
-
-#### Returns
-*(Function)*: Returns the new capped function.
-
-#### Example
-```js
-_.map(['6', '8', '10'], _.ary(parseInt, 1));
-// => [6, 8, 10]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_beforen-func"></a>`_.before(n, func)`
-<a href="#_beforen-func">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9370 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.before "See the npm package")
-
-Creates a function that invokes `func`, with the `this` binding and arguments
-of the created function, while it's called less than `n` times. Subsequent
-calls to the created function return the result of the last `func` invocation.
-
-#### Since
-3.0.0
-#### Arguments
-1. `n` *(number)*: The number of calls at which `func` is no longer invoked.
-2. `func` *(Function)*: The function to restrict.
-
-#### Returns
-*(Function)*: Returns the new restricted function.
-
-#### Example
-```js
-jQuery(element).on('click', _.before(5, addContactToList));
-// => allows adding up to 4 contacts to the list
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_bindfunc-thisarg-partials"></a>`_.bind(func, thisArg, [partials])`
-<a href="#_bindfunc-thisarg-partials">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9422 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.bind "See the npm package")
-
-Creates a function that invokes `func` with the `this` binding of `thisArg`
-and `partials` prepended to the arguments it receives.
-<br>
-<br>
-The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
-may be used as a placeholder for partially applied arguments.
-<br>
-<br>
-**Note:** Unlike native `Function#bind`, this method doesn't set the "length"
-property of bound functions.
-
-#### Since
-0.1.0
-#### Arguments
-1. `func` *(Function)*: The function to bind.
-2. `thisArg` *(&#42;)*: The `this` binding of `func`.
-3. `[partials]` *(...&#42;)*: The arguments to be partially applied.
-
-#### Returns
-*(Function)*: Returns the new bound function.
-
-#### Example
-```js
-var greet = function(greeting, punctuation) {
- return greeting + ' ' + this.user + punctuation;
-};
-
-var object = { 'user': 'fred' };
-
-var bound = _.bind(greet, object, 'hi');
-bound('!');
-// => 'hi fred!'
-
-// Bound with placeholders.
-var bound = _.bind(greet, object, _, '!');
-bound('hi');
-// => 'hi fred!'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_bindkeyobject-key-partials"></a>`_.bindKey(object, key, [partials])`
-<a href="#_bindkeyobject-key-partials">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9476 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.bindkey "See the npm package")
-
-Creates a function that invokes the method at `object[key]` with `partials`
-prepended to the arguments it receives.
-<br>
-<br>
-This method differs from `_.bind` by allowing bound functions to reference
-methods that may be redefined or don't yet exist. See
-[Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
-for more details.
-<br>
-<br>
-The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
-builds, may be used as a placeholder for partially applied arguments.
-
-#### Since
-0.10.0
-#### Arguments
-1. `object` *(Object)*: The object to invoke the method on.
-2. `key` *(string)*: The key of the method.
-3. `[partials]` *(...&#42;)*: The arguments to be partially applied.
-
-#### Returns
-*(Function)*: Returns the new bound function.
-
-#### Example
-```js
-var object = {
- 'user': 'fred',
- 'greet': function(greeting, punctuation) {
- return greeting + ' ' + this.user + punctuation;
- }
-};
-
-var bound = _.bindKey(object, 'greet', 'hi');
-bound('!');
-// => 'hi fred!'
-
-object.greet = function(greeting, punctuation) {
- return greeting + 'ya ' + this.user + punctuation;
-};
-
-bound('!');
-// => 'hiya fred!'
-
-// Bound with placeholders.
-var bound = _.bindKey(object, 'greet', _, '!');
-bound('hi');
-// => 'hiya fred!'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_curryfunc-arityfunclength"></a>`_.curry(func, [arity=func.length])`
-<a href="#_curryfunc-arityfunclength">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9526 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.curry "See the npm package")
-
-Creates a function that accepts arguments of `func` and either invokes
-`func` returning its result, if at least `arity` number of arguments have
-been provided, or returns a function that accepts the remaining `func`
-arguments, and so on. The arity of `func` may be specified if `func.length`
-is not sufficient.
-<br>
-<br>
-The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
-may be used as a placeholder for provided arguments.
-<br>
-<br>
-**Note:** This method doesn't set the "length" property of curried functions.
-
-#### Since
-2.0.0
-#### Arguments
-1. `func` *(Function)*: The function to curry.
-2. `[arity=func.length]` *(number)*: The arity of `func`.
-
-#### Returns
-*(Function)*: Returns the new curried function.
-
-#### Example
-```js
-var abc = function(a, b, c) {
- return [a, b, c];
-};
-
-var curried = _.curry(abc);
-
-curried(1)(2)(3);
-// => [1, 2, 3]
-
-curried(1, 2)(3);
-// => [1, 2, 3]
-
-curried(1, 2, 3);
-// => [1, 2, 3]
-
-// Curried with placeholders.
-curried(1)(_, 3)(2);
-// => [1, 2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_curryrightfunc-arityfunclength"></a>`_.curryRight(func, [arity=func.length])`
-<a href="#_curryrightfunc-arityfunclength">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9571 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.curryright "See the npm package")
-
-This method is like `_.curry` except that arguments are applied to `func`
-in the manner of `_.partialRight` instead of `_.partial`.
-<br>
-<br>
-The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
-builds, may be used as a placeholder for provided arguments.
-<br>
-<br>
-**Note:** This method doesn't set the "length" property of curried functions.
-
-#### Since
-3.0.0
-#### Arguments
-1. `func` *(Function)*: The function to curry.
-2. `[arity=func.length]` *(number)*: The arity of `func`.
-
-#### Returns
-*(Function)*: Returns the new curried function.
-
-#### Example
-```js
-var abc = function(a, b, c) {
- return [a, b, c];
-};
-
-var curried = _.curryRight(abc);
-
-curried(3)(2)(1);
-// => [1, 2, 3]
-
-curried(2, 3)(1);
-// => [1, 2, 3]
-
-curried(1, 2, 3);
-// => [1, 2, 3]
-
-// Curried with placeholders.
-curried(3)(1, _)(2);
-// => [1, 2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_debouncefunc-wait0-options-optionsleadingfalse-optionsmaxwait-optionstrailingtrue"></a>`_.debounce(func, [wait=0], [options={}], [options.leading=false], [options.maxWait], [options.trailing=true])`
-<a href="#_debouncefunc-wait0-options-optionsleadingfalse-optionsmaxwait-optionstrailingtrue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9628 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.debounce "See the npm package")
-
-Creates a debounced function that delays invoking `func` until after `wait`
-milliseconds have elapsed since the last time the debounced function was
-invoked. The debounced function comes with a `cancel` method to cancel
-delayed `func` invocations and a `flush` method to immediately invoke them.
-Provide an options object to indicate whether `func` should be invoked on
-the leading and/or trailing edge of the `wait` timeout. The `func` is invoked
-with the last arguments provided to the debounced function. Subsequent calls
-to the debounced function return the result of the last `func` invocation.
-<br>
-<br>
-**Note:** If `leading` and `trailing` options are `true`, `func` is invoked
-on the trailing edge of the timeout only if the debounced function is
-invoked more than once during the `wait` timeout.
-<br>
-<br>
-See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
-for details over the differences between `_.debounce` and `_.throttle`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `func` *(Function)*: The function to debounce.
-2. `[wait=0]` *(number)*: The number of milliseconds to delay.
-3. `[options={}]` *(Object)*: The options object.
-4. `[options.leading=false]` *(boolean)*: Specify invoking on the leading edge of the timeout.
-5. `[options.maxWait]` *(number)*: The maximum time `func` is allowed to be delayed before it's invoked.
-6. `[options.trailing=true]` *(boolean)*: Specify invoking on the trailing edge of the timeout.
-
-#### Returns
-*(Function)*: Returns the new debounced function.
-
-#### Example
-```js
-// Avoid costly calculations while the window size is in flux.
-jQuery(window).on('resize', _.debounce(calculateLayout, 150));
-
-// Invoke `sendMail` when clicked, debouncing subsequent calls.
-jQuery(element).on('click', _.debounce(sendMail, 300, {
- 'leading': true,
- 'trailing': false
-}));
-
-// Ensure `batchLog` is invoked once after 1 second of debounced calls.
-var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
-var source = new EventSource('/stream');
-jQuery(source).on('message', debounced);
-
-// Cancel the trailing debounced invocation.
-jQuery(window).on('popstate', debounced.cancel);
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_deferfunc-args"></a>`_.defer(func, [args])`
-<a href="#_deferfunc-args">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9765 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.defer "See the npm package")
-
-Defers invoking the `func` until the current call stack has cleared. Any
-additional arguments are provided to `func` when it's invoked.
-
-#### Since
-0.1.0
-#### Arguments
-1. `func` *(Function)*: The function to defer.
-2. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
-
-#### Returns
-*(number)*: Returns the timer id.
-
-#### Example
-```js
-_.defer(function(text) {
- console.log(text);
-}, 'deferred');
-// => Logs 'deferred' after one or more milliseconds.
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_delayfunc-wait-args"></a>`_.delay(func, wait, [args])`
-<a href="#_delayfunc-wait-args">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9788 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.delay "See the npm package")
-
-Invokes `func` after `wait` milliseconds. Any additional arguments are
-provided to `func` when it's invoked.
-
-#### Since
-0.1.0
-#### Arguments
-1. `func` *(Function)*: The function to delay.
-2. `wait` *(number)*: The number of milliseconds to delay invocation.
-3. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
-
-#### Returns
-*(number)*: Returns the timer id.
-
-#### Example
-```js
-_.delay(function(text) {
- console.log(text);
-}, 1000, 'later');
-// => Logs 'later' after one second.
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flipfunc"></a>`_.flip(func)`
-<a href="#_flipfunc">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9810 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flip "See the npm package")
-
-Creates a function that invokes `func` with arguments reversed.
-
-#### Since
-4.0.0
-#### Arguments
-1. `func` *(Function)*: The function to flip arguments for.
-
-#### Returns
-*(Function)*: Returns the new flipped function.
-
-#### Example
-```js
-var flipped = _.flip(function() {
- return _.toArray(arguments);
-});
-
-flipped('a', 'b', 'c', 'd');
-// => ['d', 'c', 'b', 'a']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_memoizefunc-resolver"></a>`_.memoize(func, [resolver])`
-<a href="#_memoizefunc-resolver">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9858 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.memoize "See the npm package")
-
-Creates a function that memoizes the result of `func`. If `resolver` is
-provided, it determines the cache key for storing the result based on the
-arguments provided to the memoized function. By default, the first argument
-provided to the memoized function is used as the map cache key. The `func`
-is invoked with the `this` binding of the memoized function.
-<br>
-<br>
-**Note:** The cache is exposed as the `cache` property on the memoized
-function. Its creation may be customized by replacing the `_.memoize.Cache`
-constructor with one whose instances implement the
-[`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)
-method interface of `delete`, `get`, `has`, and `set`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `func` *(Function)*: The function to have its output memoized.
-2. `[resolver]` *(Function)*: The function to resolve the cache key.
-
-#### Returns
-*(Function)*: Returns the new memoized function.
-
-#### Example
-```js
-var object = { 'a': 1, 'b': 2 };
-var other = { 'c': 3, 'd': 4 };
-
-var values = _.memoize(_.values);
-values(object);
-// => [1, 2]
-
-values(other);
-// => [3, 4]
-
-object.a = 2;
-values(object);
-// => [1, 2]
-
-// Modify the result cache.
-values.cache.set(object, ['a', 'b']);
-values(object);
-// => ['a', 'b']
-
-// Replace `_.memoize.Cache`.
-_.memoize.Cache = WeakMap;
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_negatepredicate"></a>`_.negate(predicate)`
-<a href="#_negatepredicate">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9901 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.negate "See the npm package")
-
-Creates a function that negates the result of the predicate `func`. The
-`func` predicate is invoked with the `this` binding and arguments of the
-created function.
-
-#### Since
-3.0.0
-#### Arguments
-1. `predicate` *(Function)*: The predicate to negate.
-
-#### Returns
-*(Function)*: Returns the new negated function.
-
-#### Example
-```js
-function isEven(n) {
- return n % 2 == 0;
-}
-
-_.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
-// => [1, 3, 5]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_oncefunc"></a>`_.once(func)`
-<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9928 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.once "See the npm package")
-
-Creates a function that is restricted to invoking `func` once. Repeat calls
-to the function return the value of the first invocation. The `func` is
-invoked with the `this` binding and arguments of the created function.
-
-#### Since
-0.1.0
-#### Arguments
-1. `func` *(Function)*: The function to restrict.
-
-#### Returns
-*(Function)*: Returns the new restricted function.
-
-#### Example
-```js
-var initialize = _.once(createApplication);
-initialize();
-initialize();
-// `initialize` invokes `createApplication` once
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_overargsfunc"></a>`_.overArgs(func)`
-<a href="#_overargsfunc">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L9964 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.overargs "See the npm package")
-
-Creates a function that invokes `func` with arguments transformed by
-corresponding `transforms`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `func` *(Function)*: The function to wrap.
-
-#### Returns
-*(Function)*: Returns the new function.
-
-#### Example
-```js
-function doubled(n) {
- return n * 2;
-}
-
-function square(n) {
- return n * n;
-}
-
-var func = _.overArgs(function(x, y) {
- return [x, y];
-}, [square, doubled]);
-
-func(9, 3);
-// => [81, 6]
-
-func(10, 5);
-// => [100, 10]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_partialfunc-partials"></a>`_.partial(func, [partials])`
-<a href="#_partialfunc-partials">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10014 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.partial "See the npm package")
-
-Creates a function that invokes `func` with `partials` prepended to the
-arguments it receives. This method is like `_.bind` except it does **not**
-alter the `this` binding.
-<br>
-<br>
-The `_.partial.placeholder` value, which defaults to `_` in monolithic
-builds, may be used as a placeholder for partially applied arguments.
-<br>
-<br>
-**Note:** This method doesn't set the "length" property of partially
-applied functions.
-
-#### Since
-0.2.0
-#### Arguments
-1. `func` *(Function)*: The function to partially apply arguments to.
-2. `[partials]` *(...&#42;)*: The arguments to be partially applied.
-
-#### Returns
-*(Function)*: Returns the new partially applied function.
-
-#### Example
-```js
-var greet = function(greeting, name) {
- return greeting + ' ' + name;
-};
-
-var sayHelloTo = _.partial(greet, 'hello');
-sayHelloTo('fred');
-// => 'hello fred'
-
-// Partially applied with placeholders.
-var greetFred = _.partial(greet, _, 'fred');
-greetFred('hi');
-// => 'hi fred'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_partialrightfunc-partials"></a>`_.partialRight(func, [partials])`
-<a href="#_partialrightfunc-partials">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10051 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.partialright "See the npm package")
-
-This method is like `_.partial` except that partially applied arguments
-are appended to the arguments it receives.
-<br>
-<br>
-The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
-builds, may be used as a placeholder for partially applied arguments.
-<br>
-<br>
-**Note:** This method doesn't set the "length" property of partially
-applied functions.
-
-#### Since
-1.0.0
-#### Arguments
-1. `func` *(Function)*: The function to partially apply arguments to.
-2. `[partials]` *(...&#42;)*: The arguments to be partially applied.
-
-#### Returns
-*(Function)*: Returns the new partially applied function.
-
-#### Example
-```js
-var greet = function(greeting, name) {
- return greeting + ' ' + name;
-};
-
-var greetFred = _.partialRight(greet, 'fred');
-greetFred('hi');
-// => 'hi fred'
-
-// Partially applied with placeholders.
-var sayHelloTo = _.partialRight(greet, 'hello', _);
-sayHelloTo('fred');
-// => 'hello fred'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_reargfunc-indexes"></a>`_.rearg(func, indexes)`
-<a href="#_reargfunc-indexes">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10078 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.rearg "See the npm package")
-
-Creates a function that invokes `func` with arguments arranged according
-to the specified `indexes` where the argument value at the first index is
-provided as the first argument, the argument value at the second index is
-provided as the second argument, and so on.
-
-#### Since
-3.0.0
-#### Arguments
-1. `func` *(Function)*: The function to rearrange arguments for.
-2. `indexes` *(...(number|number&#91;&#93;))*: The arranged argument indexes.
-
-#### Returns
-*(Function)*: Returns the new function.
-
-#### Example
-```js
-var rearged = _.rearg(function(a, b, c) {
- return [a, b, c];
-}, [2, 0, 1]);
-
-rearged('b', 'c', 'a')
-// => ['a', 'b', 'c']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_restfunc-startfunclength-1"></a>`_.rest(func, [start=func.length-1])`
-<a href="#_restfunc-startfunclength-1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10107 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.rest "See the npm package")
-
-Creates a function that invokes `func` with the `this` binding of the
-created function and arguments from `start` and beyond provided as
-an array.
-<br>
-<br>
-**Note:** This method is based on the
-[rest parameter](https://mdn.io/rest_parameters).
-
-#### Since
-4.0.0
-#### Arguments
-1. `func` *(Function)*: The function to apply a rest parameter to.
-2. `[start=func.length-1]` *(number)*: The start position of the rest parameter.
-
-#### Returns
-*(Function)*: Returns the new function.
-
-#### Example
-```js
-var say = _.rest(function(what, names) {
- return what + ' ' + _.initial(names).join(', ') +
- (_.size(names) > 1 ? ', & ' : '') + _.last(names);
-});
-
-say('hello', 'fred', 'barney', 'pebbles');
-// => 'hello fred, barney, & pebbles'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_spreadfunc-start0"></a>`_.spread(func, [start=0])`
-<a href="#_spreadfunc-start0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10170 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.spread "See the npm package")
-
-Creates a function that invokes `func` with the `this` binding of the
-create function and an array of arguments much like
-[`Function#apply`](http://www.ecma-international.org/ecma-262/6.0/#sec-function.prototype.apply).
-<br>
-<br>
-**Note:** This method is based on the
-[spread operator](https://mdn.io/spread_operator).
-
-#### Since
-3.2.0
-#### Arguments
-1. `func` *(Function)*: The function to spread arguments over.
-2. `[start=0]` *(number)*: The start position of the spread.
-
-#### Returns
-*(Function)*: Returns the new function.
-
-#### Example
-```js
-var say = _.spread(function(who, what) {
- return who + ' says ' + what;
-});
-
-say(['fred', 'hello']);
-// => 'fred says hello'
-
-var numbers = Promise.all([
- Promise.resolve(40),
- Promise.resolve(36)
-]);
-
-numbers.then(_.spread(function(x, y) {
- return x + y;
-}));
-// => a Promise of 76
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_throttlefunc-wait0-options-optionsleadingtrue-optionstrailingtrue"></a>`_.throttle(func, [wait=0], [options={}], [options.leading=true], [options.trailing=true])`
-<a href="#_throttlefunc-wait0-options-optionsleadingtrue-optionstrailingtrue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10227 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.throttle "See the npm package")
-
-Creates a throttled function that only invokes `func` at most once per
-every `wait` milliseconds. The throttled function comes with a `cancel`
-method to cancel delayed `func` invocations and a `flush` method to
-immediately invoke them. Provide an options object to indicate whether
-`func` should be invoked on the leading and/or trailing edge of the `wait`
-timeout. The `func` is invoked with the last arguments provided to the
-throttled function. Subsequent calls to the throttled function return the
-result of the last `func` invocation.
-<br>
-<br>
-**Note:** If `leading` and `trailing` options are `true`, `func` is
-invoked on the trailing edge of the timeout only if the throttled function
-is invoked more than once during the `wait` timeout.
-<br>
-<br>
-See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
-for details over the differences between `_.throttle` and `_.debounce`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `func` *(Function)*: The function to throttle.
-2. `[wait=0]` *(number)*: The number of milliseconds to throttle invocations to.
-3. `[options={}]` *(Object)*: The options object.
-4. `[options.leading=true]` *(boolean)*: Specify invoking on the leading edge of the timeout.
-5. `[options.trailing=true]` *(boolean)*: Specify invoking on the trailing edge of the timeout.
-
-#### Returns
-*(Function)*: Returns the new throttled function.
-
-#### Example
-```js
-// Avoid excessively updating the position while scrolling.
-jQuery(window).on('scroll', _.throttle(updatePosition, 100));
-
-// Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
-var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
-jQuery(element).on('click', throttled);
-
-// Cancel the trailing throttled invocation.
-jQuery(window).on('popstate', throttled.cancel);
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_unaryfunc"></a>`_.unary(func)`
-<a href="#_unaryfunc">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10260 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.unary "See the npm package")
-
-Creates a function that accepts up to one argument, ignoring any
-additional arguments.
-
-#### Since
-4.0.0
-#### Arguments
-1. `func` *(Function)*: The function to cap arguments for.
-
-#### Returns
-*(Function)*: Returns the new capped function.
-
-#### Example
-```js
-_.map(['6', '8', '10'], _.unary(parseInt));
-// => [6, 8, 10]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_wrapvalue-wrapperidentity"></a>`_.wrap(value, [wrapper=identity])`
-<a href="#_wrapvalue-wrapperidentity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10286 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.wrap "See the npm package")
-
-Creates a function that provides `value` to the wrapper function as its
-first argument. Any additional arguments provided to the function are
-appended to those provided to the wrapper function. The wrapper is invoked
-with the `this` binding of the created function.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to wrap.
-2. `[wrapper=identity]` *(Function)*: The wrapper function.
-
-#### Returns
-*(Function)*: Returns the new function.
-
-#### Example
-```js
-var p = _.wrap(_.escape, function(func, text) {
- return '<p>' + func(text) + '</p>';
-});
-
-p('fred, barney, & pebbles');
-// => '<p>fred, barney, &amp; pebbles</p>'
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Lang†Methods`
-
-<!-- div -->
-
-### <a id="_castarrayvalue"></a>`_.castArray(value)`
-<a href="#_castarrayvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10326 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.castarray "See the npm package")
-
-Casts `value` as an array if it's not one.
-
-#### Since
-4.4.0
-#### Arguments
-1. `value` *(&#42;)*: The value to inspect.
-
-#### Returns
-*(Array)*: Returns the cast array.
-
-#### Example
-```js
-_.castArray(1);
-// => [1]
-
-_.castArray({ 'a': 1 });
-// => [{ 'a': 1 }]
-
-_.castArray('abc');
-// => ['abc']
-
-_.castArray(null);
-// => [null]
-
-_.castArray(undefined);
-// => [undefined]
-
-_.castArray();
-// => []
-
-var array = [1, 2, 3];
-console.log(_.castArray(array) === array);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_clonevalue"></a>`_.clone(value)`
-<a href="#_clonevalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10360 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.clone "See the npm package")
-
-Creates a shallow clone of `value`.
-<br>
-<br>
-**Note:** This method is loosely based on the
-[structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
-and supports cloning arrays, array buffers, booleans, date objects, maps,
-numbers, `Object` objects, regexes, sets, strings, symbols, and typed
-arrays. The own enumerable properties of `arguments` objects are cloned
-as plain objects. An empty object is returned for uncloneable values such
-as error objects, functions, DOM nodes, and WeakMaps.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to clone.
-
-#### Returns
-*(&#42;)*: Returns the cloned value.
-
-#### Example
-```js
-var objects = [{ 'a': 1 }, { 'b': 2 }];
-
-var shallow = _.clone(objects);
-console.log(shallow[0] === objects[0]);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_clonedeepvalue"></a>`_.cloneDeep(value)`
-<a href="#_clonedeepvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10417 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.clonedeep "See the npm package")
-
-This method is like `_.clone` except that it recursively clones `value`.
-
-#### Since
-1.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to recursively clone.
-
-#### Returns
-*(&#42;)*: Returns the deep cloned value.
-
-#### Example
-```js
-var objects = [{ 'a': 1 }, { 'b': 2 }];
-
-var deep = _.cloneDeep(objects);
-console.log(deep[0] === objects[0]);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_clonedeepwithvalue-customizer"></a>`_.cloneDeepWith(value, [customizer])`
-<a href="#_clonedeepwithvalue-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10449 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.clonedeepwith "See the npm package")
-
-This method is like `_.cloneWith` except that it recursively clones `value`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to recursively clone.
-2. `[customizer]` *(Function)*: The function to customize cloning.
-
-#### Returns
-*(&#42;)*: Returns the deep cloned value.
-
-#### Example
-```js
-function customizer(value) {
- if (_.isElement(value)) {
- return value.cloneNode(true);
- }
-}
-
-var el = _.cloneDeepWith(document.body, customizer);
-
-console.log(el === document.body);
-// => false
-console.log(el.nodeName);
-// => 'BODY'
-console.log(el.childNodes.length);
-// => 20
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_clonewithvalue-customizer"></a>`_.cloneWith(value, [customizer])`
-<a href="#_clonewithvalue-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10395 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.clonewith "See the npm package")
-
-This method is like `_.clone` except that it accepts `customizer` which
-is invoked to produce the cloned value. If `customizer` returns `undefined`,
-cloning is handled by the method instead. The `customizer` is invoked with
-up to four arguments; *(value [, index|key, object, stack])*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to clone.
-2. `[customizer]` *(Function)*: The function to customize cloning.
-
-#### Returns
-*(&#42;)*: Returns the cloned value.
-
-#### Example
-```js
-function customizer(value) {
- if (_.isElement(value)) {
- return value.cloneNode(false);
- }
-}
-
-var el = _.cloneWith(document.body, customizer);
-
-console.log(el === document.body);
-// => false
-console.log(el.nodeName);
-// => 'BODY'
-console.log(el.childNodes.length);
-// => 0
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_eqvalue-other"></a>`_.eq(value, other)`
-<a href="#_eqvalue-other">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10485 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.eq "See the npm package")
-
-Performs a
-[`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
-comparison between two values to determine if they are equivalent.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to compare.
-2. `other` *(&#42;)*: The other value to compare.
-
-#### Returns
-*(boolean)*: Returns `true` if the values are equivalent, else `false`.
-
-#### Example
-```js
-var object = { 'user': 'fred' };
-var other = { 'user': 'fred' };
-
-_.eq(object, object);
-// => true
-
-_.eq(object, other);
-// => false
-
-_.eq('a', 'a');
-// => true
-
-_.eq('a', Object('a'));
-// => false
-
-_.eq(NaN, NaN);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_gtvalue-other"></a>`_.gt(value, other)`
-<a href="#_gtvalue-other">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10512 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.gt "See the npm package")
-
-Checks if `value` is greater than `other`.
-
-#### Since
-3.9.0
-#### Arguments
-1. `value` *(&#42;)*: The value to compare.
-2. `other` *(&#42;)*: The other value to compare.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is greater than `other`, else `false`.
-
-#### Example
-```js
-_.gt(3, 1);
-// => true
-
-_.gt(3, 3);
-// => false
-
-_.gt(1, 3);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_gtevalue-other"></a>`_.gte(value, other)`
-<a href="#_gtevalue-other">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10537 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.gte "See the npm package")
-
-Checks if `value` is greater than or equal to `other`.
-
-#### Since
-3.9.0
-#### Arguments
-1. `value` *(&#42;)*: The value to compare.
-2. `other` *(&#42;)*: The other value to compare.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is greater than or equal to `other`, else `false`.
-
-#### Example
-```js
-_.gte(3, 1);
-// => true
-
-_.gte(3, 3);
-// => true
-
-_.gte(1, 3);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isargumentsvalue"></a>`_.isArguments(value)`
-<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10559 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isarguments "See the npm package")
-
-Checks if `value` is likely an `arguments` object.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isArguments(function() { return arguments; }());
-// => true
-
-_.isArguments([1, 2, 3]);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isarrayvalue"></a>`_.isArray(value)`
-<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10590 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isarray "See the npm package")
-
-Checks if `value` is classified as an `Array` object.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isArray([1, 2, 3]);
-// => true
-
-_.isArray(document.body.children);
-// => false
-
-_.isArray('abc');
-// => false
-
-_.isArray(_.noop);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isarraybuffervalue"></a>`_.isArrayBuffer(value)`
-<a href="#_isarraybuffervalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10610 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isarraybuffer "See the npm package")
-
-Checks if `value` is classified as an `ArrayBuffer` object.
-
-#### Since
-4.3.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isArrayBuffer(new ArrayBuffer(2));
-// => true
-
-_.isArrayBuffer(new Array(2));
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isarraylikevalue"></a>`_.isArrayLike(value)`
-<a href="#_isarraylikevalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10639 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isarraylike "See the npm package")
-
-Checks if `value` is array-like. A value is considered array-like if it's
-not a function and has a `value.length` that's an integer greater than or
-equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is array-like, else `false`.
-
-#### Example
-```js
-_.isArrayLike([1, 2, 3]);
-// => true
-
-_.isArrayLike(document.body.children);
-// => true
-
-_.isArrayLike('abc');
-// => true
-
-_.isArrayLike(_.noop);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isarraylikeobjectvalue"></a>`_.isArrayLikeObject(value)`
-<a href="#_isarraylikeobjectvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10668 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isarraylikeobject "See the npm package")
-
-This method is like `_.isArrayLike` except that it also checks if `value`
-is an object.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is an array-like object, else `false`.
-
-#### Example
-```js
-_.isArrayLikeObject([1, 2, 3]);
-// => true
-
-_.isArrayLikeObject(document.body.children);
-// => true
-
-_.isArrayLikeObject('abc');
-// => false
-
-_.isArrayLikeObject(_.noop);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isbooleanvalue"></a>`_.isBoolean(value)`
-<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10690 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isboolean "See the npm package")
-
-Checks if `value` is classified as a boolean primitive or object.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isBoolean(false);
-// => true
-
-_.isBoolean(null);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isbuffervalue"></a>`_.isBuffer(value)`
-<a href="#_isbuffervalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10712 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isbuffer "See the npm package")
-
-Checks if `value` is a buffer.
-
-#### Since
-4.3.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is a buffer, else `false`.
-
-#### Example
-```js
-_.isBuffer(new Buffer(2));
-// => true
-
-_.isBuffer(new Uint8Array(2));
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isdatevalue"></a>`_.isDate(value)`
-<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10734 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isdate "See the npm package")
-
-Checks if `value` is classified as a `Date` object.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isDate(new Date);
-// => true
-
-_.isDate('Mon April 23 2012');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_iselementvalue"></a>`_.isElement(value)`
-<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10756 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.iselement "See the npm package")
-
-Checks if `value` is likely a DOM element.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is a DOM element, else `false`.
-
-#### Example
-```js
-_.isElement(document.body);
-// => true
-
-_.isElement('<body>');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isemptyvalue"></a>`_.isEmpty(value)`
-<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10793 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isempty "See the npm package")
-
-Checks if `value` is an empty object, collection, map, or set.
-<br>
-<br>
-Objects are considered empty if they have no own enumerable string keyed
-properties.
-<br>
-<br>
-Array-like values such as `arguments` objects, arrays, buffers, strings, or
-jQuery-like collections are considered empty if they have a `length` of `0`.
-Similarly, maps and sets are considered empty if they have a `size` of `0`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is empty, else `false`.
-
-#### Example
-```js
-_.isEmpty(null);
-// => true
-
-_.isEmpty(true);
-// => true
-
-_.isEmpty(1);
-// => true
-
-_.isEmpty([1, 2, 3]);
-// => false
-
-_.isEmpty({ 'a': 1 });
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isequalvalue-other"></a>`_.isEqual(value, other)`
-<a href="#_isequalvalue-other">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10842 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isequal "See the npm package")
-
-Performs a deep comparison between two values to determine if they are
-equivalent.
-<br>
-<br>
-**Note:** This method supports comparing arrays, array buffers, booleans,
-date objects, error objects, maps, numbers, `Object` objects, regexes,
-sets, strings, symbols, and typed arrays. `Object` objects are compared
-by their own, not inherited, enumerable properties. Functions and DOM
-nodes are **not** supported.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to compare.
-2. `other` *(&#42;)*: The other value to compare.
-
-#### Returns
-*(boolean)*: Returns `true` if the values are equivalent, else `false`.
-
-#### Example
-```js
-var object = { 'user': 'fred' };
-var other = { 'user': 'fred' };
-
-_.isEqual(object, other);
-// => true
-
-object === other;
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isequalwithvalue-other-customizer"></a>`_.isEqualWith(value, other, [customizer])`
-<a href="#_isequalwithvalue-other-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10879 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isequalwith "See the npm package")
-
-This method is like `_.isEqual` except that it accepts `customizer` which
-is invoked to compare values. If `customizer` returns `undefined`, comparisons
-are handled by the method instead. The `customizer` is invoked with up to
-six arguments: *(objValue, othValue [, index|key, object, other, stack])*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to compare.
-2. `other` *(&#42;)*: The other value to compare.
-3. `[customizer]` *(Function)*: The function to customize comparisons.
-
-#### Returns
-*(boolean)*: Returns `true` if the values are equivalent, else `false`.
-
-#### Example
-```js
-function isGreeting(value) {
- return /^h(?:i|ello)$/.test(value);
-}
-
-function customizer(objValue, othValue) {
- if (isGreeting(objValue) && isGreeting(othValue)) {
- return true;
- }
-}
-
-var array = ['hello', 'goodbye'];
-var other = ['hi', 'goodbye'];
-
-_.isEqualWith(array, other, customizer);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_iserrorvalue"></a>`_.isError(value)`
-<a href="#_iserrorvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10904 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.iserror "See the npm package")
-
-Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
-`SyntaxError`, `TypeError`, or `URIError` object.
-
-#### Since
-3.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is an error object, else `false`.
-
-#### Example
-```js
-_.isError(new Error);
-// => true
-
-_.isError(Error);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isfinitevalue"></a>`_.isFinite(value)`
-<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10939 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isfinite "See the npm package")
-
-Checks if `value` is a finite primitive number.
-<br>
-<br>
-**Note:** This method is based on
-[`Number.isFinite`](https://mdn.io/Number/isFinite).
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is a finite number, else `false`.
-
-#### Example
-```js
-_.isFinite(3);
-// => true
-
-_.isFinite(Number.MIN_VALUE);
-// => true
-
-_.isFinite(Infinity);
-// => false
-
-_.isFinite('3');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isfunctionvalue"></a>`_.isFunction(value)`
-<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10961 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isfunction "See the npm package")
-
-Checks if `value` is classified as a `Function` object.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isFunction(_);
-// => true
-
-_.isFunction(/abc/);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isintegervalue"></a>`_.isInteger(value)`
-<a href="#_isintegervalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L10995 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isinteger "See the npm package")
-
-Checks if `value` is an integer.
-<br>
-<br>
-**Note:** This method is based on
-[`Number.isInteger`](https://mdn.io/Number/isInteger).
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is an integer, else `false`.
-
-#### Example
-```js
-_.isInteger(3);
-// => true
-
-_.isInteger(Number.MIN_VALUE);
-// => false
-
-_.isInteger(Infinity);
-// => false
-
-_.isInteger('3');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_islengthvalue"></a>`_.isLength(value)`
-<a href="#_islengthvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11026 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.islength "See the npm package")
-
-Checks if `value` is a valid array-like length.
-<br>
-<br>
-**Note:** This function is loosely based on
-[`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is a valid length, else `false`.
-
-#### Example
-```js
-_.isLength(3);
-// => true
-
-_.isLength(Number.MIN_VALUE);
-// => false
-
-_.isLength(Infinity);
-// => false
-
-_.isLength('3');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_ismapvalue"></a>`_.isMap(value)`
-<a href="#_ismapvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11107 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.ismap "See the npm package")
-
-Checks if `value` is classified as a `Map` object.
-
-#### Since
-4.3.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isMap(new Map);
-// => true
-
-_.isMap(new WeakMap);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_ismatchobject-source"></a>`_.isMatch(object, source)`
-<a href="#_ismatchobject-source">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11135 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.ismatch "See the npm package")
-
-Performs a partial deep comparison between `object` and `source` to
-determine if `object` contains equivalent property values. This method is
-equivalent to a `_.matches` function when `source` is partially applied.
-<br>
-<br>
-**Note:** This method supports comparing the same values as `_.isEqual`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `object` *(Object)*: The object to inspect.
-2. `source` *(Object)*: The object of property values to match.
-
-#### Returns
-*(boolean)*: Returns `true` if `object` is a match, else `false`.
-
-#### Example
-```js
-var object = { 'user': 'fred', 'age': 40 };
-
-_.isMatch(object, { 'age': 40 });
-// => true
-
-_.isMatch(object, { 'age': 36 });
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_ismatchwithobject-source-customizer"></a>`_.isMatchWith(object, source, [customizer])`
-<a href="#_ismatchwithobject-source-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11171 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.ismatchwith "See the npm package")
-
-This method is like `_.isMatch` except that it accepts `customizer` which
-is invoked to compare values. If `customizer` returns `undefined`, comparisons
-are handled by the method instead. The `customizer` is invoked with five
-arguments: *(objValue, srcValue, index|key, object, source)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The object to inspect.
-2. `source` *(Object)*: The object of property values to match.
-3. `[customizer]` *(Function)*: The function to customize comparisons.
-
-#### Returns
-*(boolean)*: Returns `true` if `object` is a match, else `false`.
-
-#### Example
-```js
-function isGreeting(value) {
- return /^h(?:i|ello)$/.test(value);
-}
-
-function customizer(objValue, srcValue) {
- if (isGreeting(objValue) && isGreeting(srcValue)) {
- return true;
- }
-}
-
-var object = { 'greeting': 'hello' };
-var source = { 'greeting': 'hi' };
-
-_.isMatchWith(object, source, customizer);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isnanvalue"></a>`_.isNaN(value)`
-<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11204 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isnan "See the npm package")
-
-Checks if `value` is `NaN`.
-<br>
-<br>
-**Note:** This method is based on
-[`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
-global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
-`undefined` and other non-number values.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is `NaN`, else `false`.
-
-#### Example
-```js
-_.isNaN(NaN);
-// => true
-
-_.isNaN(new Number(NaN));
-// => true
-
-isNaN(undefined);
-// => true
-
-_.isNaN(undefined);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isnativevalue"></a>`_.isNative(value)`
-<a href="#_isnativevalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11237 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isnative "See the npm package")
-
-Checks if `value` is a pristine native function.
-<br>
-<br>
-**Note:** This method can't reliably detect native functions in the
-presence of the `core-js` package because `core-js` circumvents this kind
-of detection. Despite multiple requests, the `core-js` maintainer has made
-it clear: any attempt to fix the detection will be obstructed. As a result,
-we're left with little choice but to throw an error. Unfortunately, this
-also affects packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
-which rely on `core-js`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is a native function, else `false`.
-
-#### Example
-```js
-_.isNative(Array.prototype.push);
-// => true
-
-_.isNative(_);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isnilvalue"></a>`_.isNil(value)`
-<a href="#_isnilvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11285 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isnil "See the npm package")
-
-Checks if `value` is `null` or `undefined`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is nullish, else `false`.
-
-#### Example
-```js
-_.isNil(null);
-// => true
-
-_.isNil(void 0);
-// => true
-
-_.isNil(NaN);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isnullvalue"></a>`_.isNull(value)`
-<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11261 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isnull "See the npm package")
-
-Checks if `value` is `null`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is `null`, else `false`.
-
-#### Example
-```js
-_.isNull(null);
-// => true
-
-_.isNull(void 0);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isnumbervalue"></a>`_.isNumber(value)`
-<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11316 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isnumber "See the npm package")
-
-Checks if `value` is classified as a `Number` primitive or object.
-<br>
-<br>
-**Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
-classified as numbers, use the `_.isFinite` method.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isNumber(3);
-// => true
-
-_.isNumber(Number.MIN_VALUE);
-// => true
-
-_.isNumber(Infinity);
-// => true
-
-_.isNumber('3');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isobjectvalue"></a>`_.isObject(value)`
-<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11056 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isobject "See the npm package")
-
-Checks if `value` is the
-[language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
-of `Object`. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is an object, else `false`.
-
-#### Example
-```js
-_.isObject({});
-// => true
-
-_.isObject([1, 2, 3]);
-// => true
-
-_.isObject(_.noop);
-// => true
-
-_.isObject(null);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isobjectlikevalue"></a>`_.isObjectLike(value)`
-<a href="#_isobjectlikevalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11085 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isobjectlike "See the npm package")
-
-Checks if `value` is object-like. A value is object-like if it's not `null`
-and has a `typeof` result of "object".
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is object-like, else `false`.
-
-#### Example
-```js
-_.isObjectLike({});
-// => true
-
-_.isObjectLike([1, 2, 3]);
-// => true
-
-_.isObjectLike(_.noop);
-// => false
-
-_.isObjectLike(null);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isplainobjectvalue"></a>`_.isPlainObject(value)`
-<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11350 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isplainobject "See the npm package")
-
-Checks if `value` is a plain object, that is, an object created by the
-`Object` constructor or one with a `[[Prototype]]` of `null`.
-
-#### Since
-0.8.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is a plain object, else `false`.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
-}
-
-_.isPlainObject(new Foo);
-// => false
-
-_.isPlainObject([1, 2, 3]);
-// => false
-
-_.isPlainObject({ 'x': 0, 'y': 0 });
-// => true
-
-_.isPlainObject(Object.create(null));
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isregexpvalue"></a>`_.isRegExp(value)`
-<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11382 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isregexp "See the npm package")
-
-Checks if `value` is classified as a `RegExp` object.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isRegExp(/abc/);
-// => true
-
-_.isRegExp('/abc/');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_issafeintegervalue"></a>`_.isSafeInteger(value)`
-<a href="#_issafeintegervalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11414 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.issafeinteger "See the npm package")
-
-Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
-double precision number which isn't the result of a rounded unsafe integer.
-<br>
-<br>
-**Note:** This method is based on
-[`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is a safe integer, else `false`.
-
-#### Example
-```js
-_.isSafeInteger(3);
-// => true
-
-_.isSafeInteger(Number.MIN_VALUE);
-// => false
-
-_.isSafeInteger(Infinity);
-// => false
-
-_.isSafeInteger('3');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_issetvalue"></a>`_.isSet(value)`
-<a href="#_issetvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11436 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isset "See the npm package")
-
-Checks if `value` is classified as a `Set` object.
-
-#### Since
-4.3.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isSet(new Set);
-// => true
-
-_.isSet(new WeakSet);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isstringvalue"></a>`_.isString(value)`
-<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11458 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isstring "See the npm package")
-
-Checks if `value` is classified as a `String` primitive or object.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isString('abc');
-// => true
-
-_.isString(1);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_issymbolvalue"></a>`_.isSymbol(value)`
-<a href="#_issymbolvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11481 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.issymbol "See the npm package")
-
-Checks if `value` is classified as a `Symbol` primitive or object.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isSymbol(Symbol.iterator);
-// => true
-
-_.isSymbol('abc');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_istypedarrayvalue"></a>`_.isTypedArray(value)`
-<a href="#_istypedarrayvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11504 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.istypedarray "See the npm package")
-
-Checks if `value` is classified as a typed array.
-
-#### Since
-3.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isTypedArray(new Uint8Array);
-// => true
-
-_.isTypedArray([]);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isundefinedvalue"></a>`_.isUndefined(value)`
-<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11526 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isundefined "See the npm package")
-
-Checks if `value` is `undefined`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is `undefined`, else `false`.
-
-#### Example
-```js
-_.isUndefined(void 0);
-// => true
-
-_.isUndefined(null);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isweakmapvalue"></a>`_.isWeakMap(value)`
-<a href="#_isweakmapvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11548 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isweakmap "See the npm package")
-
-Checks if `value` is classified as a `WeakMap` object.
-
-#### Since
-4.3.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isWeakMap(new WeakMap);
-// => true
-
-_.isWeakMap(new Map);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_isweaksetvalue"></a>`_.isWeakSet(value)`
-<a href="#_isweaksetvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11570 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.isweakset "See the npm package")
-
-Checks if `value` is classified as a `WeakSet` object.
-
-#### Since
-4.3.0
-#### Arguments
-1. `value` *(&#42;)*: The value to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is correctly classified, else `false`.
-
-#### Example
-```js
-_.isWeakSet(new WeakSet);
-// => true
-
-_.isWeakSet(new Set);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_ltvalue-other"></a>`_.lt(value, other)`
-<a href="#_ltvalue-other">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11597 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.lt "See the npm package")
-
-Checks if `value` is less than `other`.
-
-#### Since
-3.9.0
-#### Arguments
-1. `value` *(&#42;)*: The value to compare.
-2. `other` *(&#42;)*: The other value to compare.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is less than `other`, else `false`.
-
-#### Example
-```js
-_.lt(1, 3);
-// => true
-
-_.lt(3, 3);
-// => false
-
-_.lt(3, 1);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_ltevalue-other"></a>`_.lte(value, other)`
-<a href="#_ltevalue-other">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11622 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.lte "See the npm package")
-
-Checks if `value` is less than or equal to `other`.
-
-#### Since
-3.9.0
-#### Arguments
-1. `value` *(&#42;)*: The value to compare.
-2. `other` *(&#42;)*: The other value to compare.
-
-#### Returns
-*(boolean)*: Returns `true` if `value` is less than or equal to `other`, else `false`.
-
-#### Example
-```js
-_.lte(1, 3);
-// => true
-
-_.lte(3, 3);
-// => true
-
-_.lte(3, 1);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_toarrayvalue"></a>`_.toArray(value)`
-<a href="#_toarrayvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11649 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.toarray "See the npm package")
-
-Converts `value` to an array.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to convert.
-
-#### Returns
-*(Array)*: Returns the converted array.
-
-#### Example
-```js
-_.toArray({ 'a': 1, 'b': 2 });
-// => [1, 2]
-
-_.toArray('abc');
-// => ['a', 'b', 'c']
-
-_.toArray(1);
-// => []
-
-_.toArray(null);
-// => []
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tofinitevalue"></a>`_.toFinite(value)`
-<a href="#_tofinitevalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11688 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.tofinite "See the npm package")
-
-Converts `value` to a finite number.
-
-#### Since
-4.12.0
-#### Arguments
-1. `value` *(&#42;)*: The value to convert.
-
-#### Returns
-*(number)*: Returns the converted number.
-
-#### Example
-```js
-_.toFinite(3.2);
-// => 3.2
-
-_.toFinite(Number.MIN_VALUE);
-// => 5e-324
-
-_.toFinite(Infinity);
-// => 1.7976931348623157e+308
-
-_.toFinite('3.2');
-// => 3.2
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tointegervalue"></a>`_.toInteger(value)`
-<a href="#_tointegervalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11726 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.tointeger "See the npm package")
-
-Converts `value` to an integer.
-<br>
-<br>
-**Note:** This method is loosely based on
-[`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to convert.
-
-#### Returns
-*(number)*: Returns the converted integer.
-
-#### Example
-```js
-_.toInteger(3.2);
-// => 3
-
-_.toInteger(Number.MIN_VALUE);
-// => 0
-
-_.toInteger(Infinity);
-// => 1.7976931348623157e+308
-
-_.toInteger('3.2');
-// => 3
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tolengthvalue"></a>`_.toLength(value)`
-<a href="#_tolengthvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11760 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.tolength "See the npm package")
-
-Converts `value` to an integer suitable for use as the length of an
-array-like object.
-<br>
-<br>
-**Note:** This method is based on
-[`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to convert.
-
-#### Returns
-*(number)*: Returns the converted integer.
-
-#### Example
-```js
-_.toLength(3.2);
-// => 3
-
-_.toLength(Number.MIN_VALUE);
-// => 0
-
-_.toLength(Infinity);
-// => 4294967295
-
-_.toLength('3.2');
-// => 3
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tonumbervalue"></a>`_.toNumber(value)`
-<a href="#_tonumbervalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11787 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.tonumber "See the npm package")
-
-Converts `value` to a number.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to process.
-
-#### Returns
-*(number)*: Returns the number.
-
-#### Example
-```js
-_.toNumber(3.2);
-// => 3.2
-
-_.toNumber(Number.MIN_VALUE);
-// => 5e-324
-
-_.toNumber(Infinity);
-// => Infinity
-
-_.toNumber('3.2');
-// => 3.2
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_toplainobjectvalue"></a>`_.toPlainObject(value)`
-<a href="#_toplainobjectvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11832 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.toplainobject "See the npm package")
-
-Converts `value` to a plain object flattening inherited enumerable string
-keyed properties of `value` to own properties of the plain object.
-
-#### Since
-3.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to convert.
-
-#### Returns
-*(Object)*: Returns the converted plain object.
-
-#### Example
-```js
-function Foo() {
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.assign({ 'a': 1 }, new Foo);
-// => { 'a': 1, 'b': 2 }
-
-_.assign({ 'a': 1 }, _.toPlainObject(new Foo));
-// => { 'a': 1, 'b': 2, 'c': 3 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tosafeintegervalue"></a>`_.toSafeInteger(value)`
-<a href="#_tosafeintegervalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11860 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.tosafeinteger "See the npm package")
-
-Converts `value` to a safe integer. A safe integer can be compared and
-represented correctly.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to convert.
-
-#### Returns
-*(number)*: Returns the converted integer.
-
-#### Example
-```js
-_.toSafeInteger(3.2);
-// => 3
-
-_.toSafeInteger(Number.MIN_VALUE);
-// => 0
-
-_.toSafeInteger(Infinity);
-// => 9007199254740991
-
-_.toSafeInteger('3.2');
-// => 3
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tostringvalue"></a>`_.toString(value)`
-<a href="#_tostringvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11885 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.tostring "See the npm package")
-
-Converts `value` to a string. An empty string is returned for `null`
-and `undefined` values. The sign of `-0` is preserved.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to process.
-
-#### Returns
-*(string)*: Returns the string.
-
-#### Example
-```js
-_.toString(null);
-// => ''
-
-_.toString(-0);
-// => '-0'
-
-_.toString([1, 2, 3]);
-// => '1,2,3'
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Math†Methods`
-
-<!-- div -->
-
-### <a id="_addaugend-addend"></a>`_.add(augend, addend)`
-<a href="#_addaugend-addend">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15481 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.add "See the npm package")
-
-Adds two numbers.
-
-#### Since
-3.4.0
-#### Arguments
-1. `augend` *(number)*: The first number in an addition.
-2. `addend` *(number)*: The second number in an addition.
-
-#### Returns
-*(number)*: Returns the total.
-
-#### Example
-```js
-_.add(6, 4);
-// => 10
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_ceilnumber-precision0"></a>`_.ceil(number, [precision=0])`
-<a href="#_ceilnumber-precision0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15506 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.ceil "See the npm package")
-
-Computes `number` rounded up to `precision`.
-
-#### Since
-3.10.0
-#### Arguments
-1. `number` *(number)*: The number to round up.
-2. `[precision=0]` *(number)*: The precision to round up to.
-
-#### Returns
-*(number)*: Returns the rounded up number.
-
-#### Example
-```js
-_.ceil(4.006);
-// => 5
-
-_.ceil(6.004, 2);
-// => 6.01
-
-_.ceil(6040, -2);
-// => 6100
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_dividedividend-divisor"></a>`_.divide(dividend, divisor)`
-<a href="#_dividedividend-divisor">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15523 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.divide "See the npm package")
-
-Divide two numbers.
-
-#### Since
-4.7.0
-#### Arguments
-1. `dividend` *(number)*: The first number in a division.
-2. `divisor` *(number)*: The second number in a division.
-
-#### Returns
-*(number)*: Returns the quotient.
-
-#### Example
-```js
-_.divide(6, 4);
-// => 1.5
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_floornumber-precision0"></a>`_.floor(number, [precision=0])`
-<a href="#_floornumber-precision0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15548 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.floor "See the npm package")
-
-Computes `number` rounded down to `precision`.
-
-#### Since
-3.10.0
-#### Arguments
-1. `number` *(number)*: The number to round down.
-2. `[precision=0]` *(number)*: The precision to round down to.
-
-#### Returns
-*(number)*: Returns the rounded down number.
-
-#### Example
-```js
-_.floor(4.006);
-// => 4
-
-_.floor(0.046, 2);
-// => 0.04
-
-_.floor(4060, -2);
-// => 4000
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_maxarray"></a>`_.max(array)`
-<a href="#_maxarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15568 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.max "See the npm package")
-
-Computes the maximum value of `array`. If `array` is empty or falsey,
-`undefined` is returned.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to iterate over.
-
-#### Returns
-*(&#42;)*: Returns the maximum value.
-
-#### Example
-```js
-_.max([4, 2, 8, 6]);
-// => 8
-
-_.max([]);
-// => undefined
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_maxbyarray-iteratee_identity"></a>`_.maxBy(array, [iteratee=_.identity])`
-<a href="#_maxbyarray-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15598 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.maxby "See the npm package")
-
-This method is like `_.max` except that it accepts `iteratee` which is
-invoked for each element in `array` to generate the criterion by which
-the value is ranked. The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(&#42;)*: Returns the maximum value.
-
-#### Example
-```js
-var objects = [{ 'n': 1 }, { 'n': 2 }];
-
-_.maxBy(objects, function(o) { return o.n; });
-// => { 'n': 2 }
-
-// The `_.property` iteratee shorthand.
-_.maxBy(objects, 'n');
-// => { 'n': 2 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_meanarray"></a>`_.mean(array)`
-<a href="#_meanarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15618 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.mean "See the npm package")
-
-Computes the mean of the values in `array`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to iterate over.
-
-#### Returns
-*(number)*: Returns the mean.
-
-#### Example
-```js
-_.mean([4, 2, 8, 6]);
-// => 5
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_meanbyarray-iteratee_identity"></a>`_.meanBy(array, [iteratee=_.identity])`
-<a href="#_meanbyarray-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15646 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.meanby "See the npm package")
-
-This method is like `_.mean` except that it accepts `iteratee` which is
-invoked for each element in `array` to generate the value to be averaged.
-The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.7.0
-#### Arguments
-1. `array` *(Array)*: The array to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(number)*: Returns the mean.
-
-#### Example
-```js
-var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
-
-_.meanBy(objects, function(o) { return o.n; });
-// => 5
-
-// The `_.property` iteratee shorthand.
-_.meanBy(objects, 'n');
-// => 5
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_minarray"></a>`_.min(array)`
-<a href="#_minarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15668 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.min "See the npm package")
-
-Computes the minimum value of `array`. If `array` is empty or falsey,
-`undefined` is returned.
-
-#### Since
-0.1.0
-#### Arguments
-1. `array` *(Array)*: The array to iterate over.
-
-#### Returns
-*(&#42;)*: Returns the minimum value.
-
-#### Example
-```js
-_.min([4, 2, 8, 6]);
-// => 2
-
-_.min([]);
-// => undefined
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_minbyarray-iteratee_identity"></a>`_.minBy(array, [iteratee=_.identity])`
-<a href="#_minbyarray-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15698 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.minby "See the npm package")
-
-This method is like `_.min` except that it accepts `iteratee` which is
-invoked for each element in `array` to generate the criterion by which
-the value is ranked. The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(&#42;)*: Returns the minimum value.
-
-#### Example
-```js
-var objects = [{ 'n': 1 }, { 'n': 2 }];
-
-_.minBy(objects, function(o) { return o.n; });
-// => { 'n': 1 }
-
-// The `_.property` iteratee shorthand.
-_.minBy(objects, 'n');
-// => { 'n': 1 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_multiplymultiplier-multiplicand"></a>`_.multiply(multiplier, multiplicand)`
-<a href="#_multiplymultiplier-multiplicand">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15719 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.multiply "See the npm package")
-
-Multiply two numbers.
-
-#### Since
-4.7.0
-#### Arguments
-1. `multiplier` *(number)*: The first number in a multiplication.
-2. `multiplicand` *(number)*: The second number in a multiplication.
-
-#### Returns
-*(number)*: Returns the product.
-
-#### Example
-```js
-_.multiply(6, 4);
-// => 24
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_roundnumber-precision0"></a>`_.round(number, [precision=0])`
-<a href="#_roundnumber-precision0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15744 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.round "See the npm package")
-
-Computes `number` rounded to `precision`.
-
-#### Since
-3.10.0
-#### Arguments
-1. `number` *(number)*: The number to round.
-2. `[precision=0]` *(number)*: The precision to round to.
-
-#### Returns
-*(number)*: Returns the rounded number.
-
-#### Example
-```js
-_.round(4.006);
-// => 4
-
-_.round(4.006, 2);
-// => 4.01
-
-_.round(4060, -2);
-// => 4100
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_subtractminuend-subtrahend"></a>`_.subtract(minuend, subtrahend)`
-<a href="#_subtractminuend-subtrahend">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15761 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.subtract "See the npm package")
-
-Subtract two numbers.
-
-#### Since
-4.0.0
-#### Arguments
-1. `minuend` *(number)*: The first number in a subtraction.
-2. `subtrahend` *(number)*: The second number in a subtraction.
-
-#### Returns
-*(number)*: Returns the difference.
-
-#### Example
-```js
-_.subtract(6, 4);
-// => 2
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sumarray"></a>`_.sum(array)`
-<a href="#_sumarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15779 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sum "See the npm package")
-
-Computes the sum of the values in `array`.
-
-#### Since
-3.4.0
-#### Arguments
-1. `array` *(Array)*: The array to iterate over.
-
-#### Returns
-*(number)*: Returns the sum.
-
-#### Example
-```js
-_.sum([4, 2, 8, 6]);
-// => 20
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_sumbyarray-iteratee_identity"></a>`_.sumBy(array, [iteratee=_.identity])`
-<a href="#_sumbyarray-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15809 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.sumby "See the npm package")
-
-This method is like `_.sum` except that it accepts `iteratee` which is
-invoked for each element in `array` to generate the value to be summed.
-The iteratee is invoked with one argument: *(value)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `array` *(Array)*: The array to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(number)*: Returns the sum.
-
-#### Example
-```js
-var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
-
-_.sumBy(objects, function(o) { return o.n; });
-// => 20
-
-// The `_.property` iteratee shorthand.
-_.sumBy(objects, 'n');
-// => 20
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Number†Methods`
-
-<!-- div -->
-
-### <a id="_clampnumber-lower-upper"></a>`_.clamp(number, [lower], upper)`
-<a href="#_clampnumber-lower-upper">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13306 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.clamp "See the npm package")
-
-Clamps `number` within the inclusive `lower` and `upper` bounds.
-
-#### Since
-4.0.0
-#### Arguments
-1. `number` *(number)*: The number to clamp.
-2. `[lower]` *(number)*: The lower bound.
-3. `upper` *(number)*: The upper bound.
-
-#### Returns
-*(number)*: Returns the clamped number.
-
-#### Example
-```js
-_.clamp(-10, -5, 5);
-// => -5
-
-_.clamp(10, -5, 5);
-// => 5
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_inrangenumber-start0-end"></a>`_.inRange(number, [start=0], end)`
-<a href="#_inrangenumber-start0-end">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13360 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.inrange "See the npm package")
-
-Checks if `n` is between `start` and up to, but not including, `end`. If
-`end` is not specified, it's set to `start` with `start` then set to `0`.
-If `start` is greater than `end` the params are swapped to support
-negative ranges.
-
-#### Since
-3.3.0
-#### Arguments
-1. `number` *(number)*: The number to check.
-2. `[start=0]` *(number)*: The start of the range.
-3. `end` *(number)*: The end of the range.
-
-#### Returns
-*(boolean)*: Returns `true` if `number` is in the range, else `false`.
-
-#### Example
-```js
-_.inRange(3, 2, 4);
-// => true
-
-_.inRange(4, 8);
-// => true
-
-_.inRange(4, 2);
-// => false
-
-_.inRange(2, 2);
-// => false
-
-_.inRange(1.2, 2);
-// => true
-
-_.inRange(5.2, 4);
-// => false
-
-_.inRange(-3, -2, -6);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_randomlower0-upper1-floating"></a>`_.random([lower=0], [upper=1], [floating])`
-<a href="#_randomlower0-upper1-floating">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13403 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.random "See the npm package")
-
-Produces a random number between the inclusive `lower` and `upper` bounds.
-If only one argument is provided a number between `0` and the given number
-is returned. If `floating` is `true`, or either `lower` or `upper` are
-floats, a floating-point number is returned instead of an integer.
-<br>
-<br>
-**Note:** JavaScript follows the IEEE-754 standard for resolving
-floating-point values which can produce unexpected results.
-
-#### Since
-0.7.0
-#### Arguments
-1. `[lower=0]` *(number)*: The lower bound.
-2. `[upper=1]` *(number)*: The upper bound.
-3. `[floating]` *(boolean)*: Specify returning a floating-point number.
-
-#### Returns
-*(number)*: Returns the random number.
-
-#### Example
-```js
-_.random(0, 5);
-// => an integer between 0 and 5
-
-_.random(5);
-// => also an integer between 0 and 5
-
-_.random(5, true);
-// => a floating-point number between 0 and 5
-
-_.random(1.2, 5.2);
-// => a floating-point number between 1.2 and 5.2
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Object†Methods`
-
-<!-- div -->
-
-### <a id="_assignobject-sources"></a>`_.assign(object, [sources])`
-<a href="#_assignobject-sources">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11923 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.assign "See the npm package")
-
-Assigns own enumerable string keyed properties of source objects to the
-destination object. Source objects are applied from left to right.
-Subsequent sources overwrite property assignments of previous sources.
-<br>
-<br>
-**Note:** This method mutates `object` and is loosely based on
-[`Object.assign`](https://mdn.io/Object/assign).
-
-#### Since
-0.10.0
-#### Arguments
-1. `object` *(Object)*: The destination object.
-2. `[sources]` *(...Object)*: The source objects.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function Foo() {
- this.c = 3;
-}
-
-function Bar() {
- this.e = 5;
-}
-
-Foo.prototype.d = 4;
-Bar.prototype.f = 6;
-
-_.assign({ 'a': 1 }, new Foo, new Bar);
-// => { 'a': 1, 'c': 3, 'e': 5 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_assigninobject-sources"></a>`_.assignIn(object, [sources])`
-<a href="#_assigninobject-sources">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L11966 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.assignin "See the npm package")
-
-This method is like `_.assign` except that it iterates over own and
-inherited source properties.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-4.0.0
-#### Aliases
-*_.extend*
-
-#### Arguments
-1. `object` *(Object)*: The destination object.
-2. `[sources]` *(...Object)*: The source objects.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function Foo() {
- this.b = 2;
-}
-
-function Bar() {
- this.d = 4;
-}
-
-Foo.prototype.c = 3;
-Bar.prototype.e = 5;
-
-_.assignIn({ 'a': 1 }, new Foo, new Bar);
-// => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_assigninwithobject-sources-customizer"></a>`_.assignInWith(object, sources, [customizer])`
-<a href="#_assigninwithobject-sources-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12005 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.assigninwith "See the npm package")
-
-This method is like `_.assignIn` except that it accepts `customizer`
-which is invoked to produce the assigned values. If `customizer` returns
-`undefined`, assignment is handled by the method instead. The `customizer`
-is invoked with five arguments: *(objValue, srcValue, key, object, source)*.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-4.0.0
-#### Aliases
-*_.extendWith*
-
-#### Arguments
-1. `object` *(Object)*: The destination object.
-2. `sources` *(...Object)*: The source objects.
-3. `[customizer]` *(Function)*: The function to customize assigned values.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function customizer(objValue, srcValue) {
- return _.isUndefined(objValue) ? srcValue : objValue;
-}
-
-var defaults = _.partialRight(_.assignInWith, customizer);
-
-defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
-// => { 'a': 1, 'b': 2 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_assignwithobject-sources-customizer"></a>`_.assignWith(object, sources, [customizer])`
-<a href="#_assignwithobject-sources-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12037 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.assignwith "See the npm package")
-
-This method is like `_.assign` except that it accepts `customizer`
-which is invoked to produce the assigned values. If `customizer` returns
-`undefined`, assignment is handled by the method instead. The `customizer`
-is invoked with five arguments: *(objValue, srcValue, key, object, source)*.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The destination object.
-2. `sources` *(...Object)*: The source objects.
-3. `[customizer]` *(Function)*: The function to customize assigned values.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function customizer(objValue, srcValue) {
- return _.isUndefined(objValue) ? srcValue : objValue;
-}
-
-var defaults = _.partialRight(_.assignWith, customizer);
-
-defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
-// => { 'a': 1, 'b': 2 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_atobject-paths"></a>`_.at(object, [paths])`
-<a href="#_atobject-paths">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12058 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.at "See the npm package")
-
-Creates an array of values corresponding to `paths` of `object`.
-
-#### Since
-1.0.0
-#### Arguments
-1. `object` *(Object)*: The object to iterate over.
-2. `[paths]` *(...(string|string&#91;&#93;))*: The property paths of elements to pick.
-
-#### Returns
-*(Array)*: Returns the picked values.
-
-#### Example
-```js
-var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
-
-_.at(object, ['a[0].b.c', 'a[1]']);
-// => [3, 4]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_createprototype-properties"></a>`_.create(prototype, [properties])`
-<a href="#_createprototype-properties">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12096 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.create "See the npm package")
-
-Creates an object that inherits from the `prototype` object. If a
-`properties` object is given, its own enumerable string keyed properties
-are assigned to the created object.
-
-#### Since
-2.3.0
-#### Arguments
-1. `prototype` *(Object)*: The object to inherit from.
-2. `[properties]` *(Object)*: The properties to assign to the object.
-
-#### Returns
-*(Object)*: Returns the new object.
-
-#### Example
-```js
-function Shape() {
- this.x = 0;
- this.y = 0;
-}
-
-function Circle() {
- Shape.call(this);
-}
-
-Circle.prototype = _.create(Shape.prototype, {
- 'constructor': Circle
-});
-
-var circle = new Circle;
-circle instanceof Circle;
-// => true
-
-circle instanceof Shape;
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_defaultsobject-sources"></a>`_.defaults(object, [sources])`
-<a href="#_defaultsobject-sources">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12122 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.defaults "See the npm package")
-
-Assigns own and inherited enumerable string keyed properties of source
-objects to the destination object for all destination properties that
-resolve to `undefined`. Source objects are applied from left to right.
-Once a property is set, additional values of the same property are ignored.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The destination object.
-2. `[sources]` *(...Object)*: The source objects.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-_.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
-// => { 'user': 'barney', 'age': 36 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_defaultsdeepobject-sources"></a>`_.defaultsDeep(object, [sources])`
-<a href="#_defaultsdeepobject-sources">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12147 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.defaultsdeep "See the npm package")
-
-This method is like `_.defaults` except that it recursively assigns
-default properties.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-3.10.0
-#### Arguments
-1. `object` *(Object)*: The destination object.
-2. `[sources]` *(...Object)*: The source objects.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-_.defaultsDeep({ 'user': { 'name': 'barney' } }, { 'user': { 'name': 'fred', 'age': 36 } });
-// => { 'user': { 'name': 'barney', 'age': 36 } }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_findkeyobject-predicate_identity"></a>`_.findKey(object, [predicate=_.identity])`
-<a href="#_findkeyobject-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12188 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.findkey "See the npm package")
-
-This method is like `_.find` except that it returns the key of the first
-element `predicate` returns truthy for instead of the element itself.
-
-#### Since
-1.1.0
-#### Arguments
-1. `object` *(Object)*: The object to search.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(&#42;)*: Returns the key of the matched element, else `undefined`.
-
-#### Example
-```js
-var users = {
- 'barney': { 'age': 36, 'active': true },
- 'fred': { 'age': 40, 'active': false },
- 'pebbles': { 'age': 1, 'active': true }
-};
-
-_.findKey(users, function(o) { return o.age < 40; });
-// => 'barney' (iteration order is not guaranteed)
-
-// The `_.matches` iteratee shorthand.
-_.findKey(users, { 'age': 1, 'active': true });
-// => 'pebbles'
-
-// The `_.matchesProperty` iteratee shorthand.
-_.findKey(users, ['active', false]);
-// => 'fred'
-
-// The `_.property` iteratee shorthand.
-_.findKey(users, 'active');
-// => 'barney'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_findlastkeyobject-predicate_identity"></a>`_.findLastKey(object, [predicate=_.identity])`
-<a href="#_findlastkeyobject-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12228 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.findlastkey "See the npm package")
-
-This method is like `_.findKey` except that it iterates over elements of
-a collection in the opposite order.
-
-#### Since
-2.0.0
-#### Arguments
-1. `object` *(Object)*: The object to search.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(&#42;)*: Returns the key of the matched element, else `undefined`.
-
-#### Example
-```js
-var users = {
- 'barney': { 'age': 36, 'active': true },
- 'fred': { 'age': 40, 'active': false },
- 'pebbles': { 'age': 1, 'active': true }
-};
-
-_.findLastKey(users, function(o) { return o.age < 40; });
-// => returns 'pebbles' assuming `_.findKey` returns 'barney'
-
-// The `_.matches` iteratee shorthand.
-_.findLastKey(users, { 'age': 36, 'active': true });
-// => 'barney'
-
-// The `_.matchesProperty` iteratee shorthand.
-_.findLastKey(users, ['active', false]);
-// => 'fred'
-
-// The `_.property` iteratee shorthand.
-_.findLastKey(users, 'active');
-// => 'pebbles'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_forinobject-iteratee_identity"></a>`_.forIn(object, [iteratee=_.identity])`
-<a href="#_forinobject-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12260 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.forin "See the npm package")
-
-Iterates over own and inherited enumerable string keyed properties of an
-object and invokes `iteratee` for each property. The iteratee is invoked
-with three arguments: *(value, key, object)*. Iteratee functions may exit
-iteration early by explicitly returning `false`.
-
-#### Since
-0.3.0
-#### Arguments
-1. `object` *(Object)*: The object to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.forIn(new Foo, function(value, key) {
- console.log(key);
-});
-// => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_forinrightobject-iteratee_identity"></a>`_.forInRight(object, [iteratee=_.identity])`
-<a href="#_forinrightobject-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12292 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.forinright "See the npm package")
-
-This method is like `_.forIn` except that it iterates over properties of
-`object` in the opposite order.
-
-#### Since
-2.0.0
-#### Arguments
-1. `object` *(Object)*: The object to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.forInRight(new Foo, function(value, key) {
- console.log(key);
-});
-// => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_forownobject-iteratee_identity"></a>`_.forOwn(object, [iteratee=_.identity])`
-<a href="#_forownobject-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12326 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.forown "See the npm package")
-
-Iterates over own enumerable string keyed properties of an object and
-invokes `iteratee` for each property. The iteratee is invoked with three
-arguments: *(value, key, object)*. Iteratee functions may exit iteration
-early by explicitly returning `false`.
-
-#### Since
-0.3.0
-#### Arguments
-1. `object` *(Object)*: The object to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.forOwn(new Foo, function(value, key) {
- console.log(key);
-});
-// => Logs 'a' then 'b' (iteration order is not guaranteed).
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_forownrightobject-iteratee_identity"></a>`_.forOwnRight(object, [iteratee=_.identity])`
-<a href="#_forownrightobject-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12356 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.forownright "See the npm package")
-
-This method is like `_.forOwn` except that it iterates over properties of
-`object` in the opposite order.
-
-#### Since
-2.0.0
-#### Arguments
-1. `object` *(Object)*: The object to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.forOwnRight(new Foo, function(value, key) {
- console.log(key);
-});
-// => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_functionsobject"></a>`_.functions(object)`
-<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12383 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.functions "See the npm package")
-
-Creates an array of function property names from own enumerable properties
-of `object`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The object to inspect.
-
-#### Returns
-*(Array)*: Returns the function names.
-
-#### Example
-```js
-function Foo() {
- this.a = _.constant('a');
- this.b = _.constant('b');
-}
-
-Foo.prototype.c = _.constant('c');
-
-_.functions(new Foo);
-// => ['a', 'b']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_functionsinobject"></a>`_.functionsIn(object)`
-<a href="#_functionsinobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12410 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.functionsin "See the npm package")
-
-Creates an array of function property names from own and inherited
-enumerable properties of `object`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The object to inspect.
-
-#### Returns
-*(Array)*: Returns the function names.
-
-#### Example
-```js
-function Foo() {
- this.a = _.constant('a');
- this.b = _.constant('b');
-}
-
-Foo.prototype.c = _.constant('c');
-
-_.functionsIn(new Foo);
-// => ['a', 'b', 'c']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_getobject-path-defaultvalue"></a>`_.get(object, path, [defaultValue])`
-<a href="#_getobject-path-defaultvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12439 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.get "See the npm package")
-
-Gets the value at `path` of `object`. If the resolved value is
-`undefined`, the `defaultValue` is used in its place.
-
-#### Since
-3.7.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-2. `path` *(Array|string)*: The path of the property to get.
-3. `[defaultValue]` *(&#42;)*: The value returned for `undefined` resolved values.
-
-#### Returns
-*(&#42;)*: Returns the resolved value.
-
-#### Example
-```js
-var object = { 'a': [{ 'b': { 'c': 3 } }] };
-
-_.get(object, 'a[0].b.c');
-// => 3
-
-_.get(object, ['a', '0', 'b', 'c']);
-// => 3
-
-_.get(object, 'a.b.c', 'default');
-// => 'default'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_hasobject-path"></a>`_.has(object, path)`
-<a href="#_hasobject-path">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12471 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.has "See the npm package")
-
-Checks if `path` is a direct property of `object`.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-2. `path` *(Array|string)*: The path to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `path` exists, else `false`.
-
-#### Example
-```js
-var object = { 'a': { 'b': 2 } };
-var other = _.create({ 'a': _.create({ 'b': 2 }) });
-
-_.has(object, 'a');
-// => true
-
-_.has(object, 'a.b');
-// => true
-
-_.has(object, ['a', 'b']);
-// => true
-
-_.has(other, 'a');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_hasinobject-path"></a>`_.hasIn(object, path)`
-<a href="#_hasinobject-path">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12501 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.hasin "See the npm package")
-
-Checks if `path` is a direct or inherited property of `object`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-2. `path` *(Array|string)*: The path to check.
-
-#### Returns
-*(boolean)*: Returns `true` if `path` exists, else `false`.
-
-#### Example
-```js
-var object = _.create({ 'a': _.create({ 'b': 2 }) });
-
-_.hasIn(object, 'a');
-// => true
-
-_.hasIn(object, 'a.b');
-// => true
-
-_.hasIn(object, ['a', 'b']);
-// => true
-
-_.hasIn(object, 'b');
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_invertobject"></a>`_.invert(object)`
-<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12523 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.invert "See the npm package")
-
-Creates an object composed of the inverted keys and values of `object`.
-If `object` contains duplicate values, subsequent values overwrite
-property assignments of previous values.
-
-#### Since
-0.7.0
-#### Arguments
-1. `object` *(Object)*: The object to invert.
-
-#### Returns
-*(Object)*: Returns the new inverted object.
-
-#### Example
-```js
-var object = { 'a': 1, 'b': 2, 'c': 1 };
-
-_.invert(object);
-// => { '1': 'c', '2': 'b' }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_invertbyobject-iteratee_identity"></a>`_.invertBy(object, [iteratee=_.identity])`
-<a href="#_invertbyobject-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12554 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.invertby "See the npm package")
-
-This method is like `_.invert` except that the inverted object is generated
-from the results of running each element of `object` thru `iteratee`. The
-corresponding inverted value of each inverted key is an array of keys
-responsible for generating the inverted value. The iteratee is invoked
-with one argument: *(value)*.
-
-#### Since
-4.1.0
-#### Arguments
-1. `object` *(Object)*: The object to invert.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The iteratee invoked per element.
-
-#### Returns
-*(Object)*: Returns the new inverted object.
-
-#### Example
-```js
-var object = { 'a': 1, 'b': 2, 'c': 1 };
-
-_.invertBy(object);
-// => { '1': ['a', 'c'], '2': ['b'] }
-
-_.invertBy(object, function(value) {
- return 'group' + value;
-});
-// => { 'group1': ['a', 'c'], 'group2': ['b'] }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_invokeobject-path-args"></a>`_.invoke(object, path, [args])`
-<a href="#_invokeobject-path-args">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12580 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.invoke "See the npm package")
-
-Invokes the method at `path` of `object`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-2. `path` *(Array|string)*: The path of the method to invoke.
-3. `[args]` *(...&#42;)*: The arguments to invoke the method with.
-
-#### Returns
-*(&#42;)*: Returns the result of the invoked method.
-
-#### Example
-```js
-var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
-
-_.invoke(object, 'a[0].b.c.slice', 1, 3);
-// => [2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_keysobject"></a>`_.keys(object)`
-<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12610 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.keys "See the npm package")
-
-Creates an array of the own enumerable property names of `object`.
-<br>
-<br>
-**Note:** Non-object values are coerced to objects. See the
-[ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
-for more details.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-
-#### Returns
-*(Array)*: Returns the array of property names.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.keys(new Foo);
-// => ['a', 'b'] (iteration order is not guaranteed)
-
-_.keys('hi');
-// => ['0', '1']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_keysinobject"></a>`_.keysIn(object)`
-<a href="#_keysinobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12653 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.keysin "See the npm package")
-
-Creates an array of the own and inherited enumerable property names of `object`.
-<br>
-<br>
-**Note:** Non-object values are coerced to objects.
-
-#### Since
-3.0.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-
-#### Returns
-*(Array)*: Returns the array of property names.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.keysIn(new Foo);
-// => ['a', 'b', 'c'] (iteration order is not guaranteed)
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_mapkeysobject-iteratee_identity"></a>`_.mapKeys(object, [iteratee=_.identity])`
-<a href="#_mapkeysobject-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12695 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.mapkeys "See the npm package")
-
-The opposite of `_.mapValues`; this method creates an object with the
-same values as `object` and keys generated by running each own enumerable
-string keyed property of `object` thru `iteratee`. The iteratee is invoked
-with three arguments: *(value, key, object)*.
-
-#### Since
-3.8.0
-#### Arguments
-1. `object` *(Object)*: The object to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Object)*: Returns the new mapped object.
-
-#### Example
-```js
-_.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
- return key + value;
-});
-// => { 'a1': 1, 'b2': 2 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_mapvaluesobject-iteratee_identity"></a>`_.mapValues(object, [iteratee=_.identity])`
-<a href="#_mapvaluesobject-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12734 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.mapvalues "See the npm package")
-
-Creates an object with the same keys as `object` and values generated
-by running each own enumerable string keyed property of `object` thru
-`iteratee`. The iteratee is invoked with three arguments:<br>
-*(value, key, object)*.
-
-#### Since
-2.4.0
-#### Arguments
-1. `object` *(Object)*: The object to iterate over.
-2. `[iteratee=_.identity]` *(Array|Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Object)*: Returns the new mapped object.
-
-#### Example
-```js
-var users = {
- 'fred': { 'user': 'fred', 'age': 40 },
- 'pebbles': { 'user': 'pebbles', 'age': 1 }
-};
-
-_.mapValues(users, function(o) { return o.age; });
-// => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
-
-// The `_.property` iteratee shorthand.
-_.mapValues(users, 'age');
-// => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_mergeobject-sources"></a>`_.merge(object, [sources])`
-<a href="#_mergeobject-sources">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12775 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.merge "See the npm package")
-
-This method is like `_.assign` except that it recursively merges own and
-inherited enumerable string keyed properties of source objects into the
-destination object. Source properties that resolve to `undefined` are
-skipped if a destination value exists. Array and plain object properties
-are merged recursively. Other objects and value types are overridden by
-assignment. Source objects are applied from left to right. Subsequent
-sources overwrite property assignments of previous sources.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-0.5.0
-#### Arguments
-1. `object` *(Object)*: The destination object.
-2. `[sources]` *(...Object)*: The source objects.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-var users = {
- 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
-};
-
-var ages = {
- 'data': [{ 'age': 36 }, { 'age': 40 }]
-};
-
-_.merge(users, ages);
-// => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_mergewithobject-sources-customizer"></a>`_.mergeWith(object, sources, customizer)`
-<a href="#_mergewithobject-sources-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12817 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.mergewith "See the npm package")
-
-This method is like `_.merge` except that it accepts `customizer` which
-is invoked to produce the merged values of the destination and source
-properties. If `customizer` returns `undefined`, merging is handled by the
-method instead. The `customizer` is invoked with seven arguments:<br>
-*(objValue, srcValue, key, object, source, stack)*.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The destination object.
-2. `sources` *(...Object)*: The source objects.
-3. `customizer` *(Function)*: The function to customize assigned values.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-function customizer(objValue, srcValue) {
- if (_.isArray(objValue)) {
- return objValue.concat(srcValue);
- }
-}
-
-var object = {
- 'fruits': ['apple'],
- 'vegetables': ['beet']
-};
-
-var other = {
- 'fruits': ['banana'],
- 'vegetables': ['carrot']
-};
-
-_.mergeWith(object, other, customizer);
-// => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_omitobject-props"></a>`_.omit(object, [props])`
-<a href="#_omitobject-props">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12840 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.omit "See the npm package")
-
-The opposite of `_.pick`; this method creates an object composed of the
-own and inherited enumerable string keyed properties of `object` that are
-not omitted.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The source object.
-2. `[props]` *(...(string|string&#91;&#93;))*: The property identifiers to omit.
-
-#### Returns
-*(Object)*: Returns the new object.
-
-#### Example
-```js
-var object = { 'a': 1, 'b': '2', 'c': 3 };
-
-_.omit(object, ['a', 'c']);
-// => { 'b': '2' }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_omitbyobject-predicate_identity"></a>`_.omitBy(object, [predicate=_.identity])`
-<a href="#_omitbyobject-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12869 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.omitby "See the npm package")
-
-The opposite of `_.pickBy`; this method creates an object composed of
-the own and inherited enumerable string keyed properties of `object` that
-`predicate` doesn't return truthy for. The predicate is invoked with two
-arguments: *(value, key)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The source object.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per property.
-
-#### Returns
-*(Object)*: Returns the new object.
-
-#### Example
-```js
-var object = { 'a': 1, 'b': '2', 'c': 3 };
-
-_.omitBy(object, _.isNumber);
-// => { 'b': '2' }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_pickobject-props"></a>`_.pick(object, [props])`
-<a href="#_pickobject-props">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12893 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.pick "See the npm package")
-
-Creates an object composed of the picked `object` properties.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The source object.
-2. `[props]` *(...(string|string&#91;&#93;))*: The property identifiers to pick.
-
-#### Returns
-*(Object)*: Returns the new object.
-
-#### Example
-```js
-var object = { 'a': 1, 'b': '2', 'c': 3 };
-
-_.pick(object, ['a', 'c']);
-// => { 'a': 1, 'c': 3 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_pickbyobject-predicate_identity"></a>`_.pickBy(object, [predicate=_.identity])`
-<a href="#_pickbyobject-predicate_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12916 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.pickby "See the npm package")
-
-Creates an object composed of the `object` properties `predicate` returns
-truthy for. The predicate is invoked with two arguments: *(value, key)*.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The source object.
-2. `[predicate=_.identity]` *(Array|Function|Object|string)*: The function invoked per property.
-
-#### Returns
-*(Object)*: Returns the new object.
-
-#### Example
-```js
-var object = { 'a': 1, 'b': '2', 'c': 3 };
-
-_.pickBy(object, _.isNumber);
-// => { 'a': 1, 'c': 3 }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_resultobject-path-defaultvalue"></a>`_.result(object, path, [defaultValue])`
-<a href="#_resultobject-path-defaultvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12949 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.result "See the npm package")
-
-This method is like `_.get` except that if the resolved value is a
-function it's invoked with the `this` binding of its parent object and
-its result is returned.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-2. `path` *(Array|string)*: The path of the property to resolve.
-3. `[defaultValue]` *(&#42;)*: The value returned for `undefined` resolved values.
-
-#### Returns
-*(&#42;)*: Returns the resolved value.
-
-#### Example
-```js
-var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
-
-_.result(object, 'a[0].b.c1');
-// => 3
-
-_.result(object, 'a[0].b.c2');
-// => 4
-
-_.result(object, 'a[0].b.c3', 'default');
-// => 'default'
-
-_.result(object, 'a[0].b.c3', _.constant('default'));
-// => 'default'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_setobject-path-value"></a>`_.set(object, path, value)`
-<a href="#_setobject-path-value">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L12999 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.set "See the npm package")
-
-Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
-it's created. Arrays are created for missing index properties while objects
-are created for all other missing properties. Use `_.setWith` to customize
-`path` creation.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-3.7.0
-#### Arguments
-1. `object` *(Object)*: The object to modify.
-2. `path` *(Array|string)*: The path of the property to set.
-3. `value` *(&#42;)*: The value to set.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-var object = { 'a': [{ 'b': { 'c': 3 } }] };
-
-_.set(object, 'a[0].b.c', 4);
-console.log(object.a[0].b.c);
-// => 4
-
-_.set(object, ['x', '0', 'y', 'z'], 5);
-console.log(object.x[0].y.z);
-// => 5
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_setwithobject-path-value-customizer"></a>`_.setWith(object, path, value, [customizer])`
-<a href="#_setwithobject-path-value-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13027 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.setwith "See the npm package")
-
-This method is like `_.set` except that it accepts `customizer` which is
-invoked to produce the objects of `path`. If `customizer` returns `undefined`
-path creation is handled by the method instead. The `customizer` is invoked
-with three arguments: *(nsValue, key, nsObject)*.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The object to modify.
-2. `path` *(Array|string)*: The path of the property to set.
-3. `value` *(&#42;)*: The value to set.
-4. `[customizer]` *(Function)*: The function to customize assigned values.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-var object = {};
-
-_.setWith(object, '[0][1]', 'a', Object);
-// => { '0': { '1': 'a' } }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_topairsobject"></a>`_.toPairs(object)`
-<a href="#_topairsobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13056 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.topairs "See the npm package")
-
-Creates an array of own enumerable string keyed-value pairs for `object`
-which can be consumed by `_.fromPairs`. If `object` is a map or set, its
-entries are returned.
-
-#### Since
-4.0.0
-#### Aliases
-*_.entries*
-
-#### Arguments
-1. `object` *(Object)*: The object to query.
-
-#### Returns
-*(Array)*: Returns the key-value pairs.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.toPairs(new Foo);
-// => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_topairsinobject"></a>`_.toPairsIn(object)`
-<a href="#_topairsinobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13082 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.topairsin "See the npm package")
-
-Creates an array of own and inherited enumerable string keyed-value pairs
-for `object` which can be consumed by `_.fromPairs`. If `object` is a map
-or set, its entries are returned.
-
-#### Since
-4.0.0
-#### Aliases
-*_.entriesIn*
-
-#### Arguments
-1. `object` *(Object)*: The object to query.
-
-#### Returns
-*(Array)*: Returns the key-value pairs.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.toPairsIn(new Foo);
-// => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_transformobject-iteratee_identity-accumulator"></a>`_.transform(object, [iteratee=_.identity], [accumulator])`
-<a href="#_transformobject-iteratee_identity-accumulator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13114 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.transform "See the npm package")
-
-An alternative to `_.reduce`; this method transforms `object` to a new
-`accumulator` object which is the result of running each of its own
-enumerable string keyed properties thru `iteratee`, with each invocation
-potentially mutating the `accumulator` object. If `accumulator` is not
-provided, a new object with the same `[[Prototype]]` will be used. The
-iteratee is invoked with four arguments: *(accumulator, value, key, object)*.
-Iteratee functions may exit iteration early by explicitly returning `false`.
-
-#### Since
-1.3.0
-#### Arguments
-1. `object` *(Object)*: The object to iterate over.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-3. `[accumulator]` *(&#42;)*: The custom accumulator value.
-
-#### Returns
-*(&#42;)*: Returns the accumulated value.
-
-#### Example
-```js
-_.transform([2, 3, 4], function(result, n) {
- result.push(n *= n);
- return n % 2 == 0;
-}, []);
-// => [4, 9]
-
-_.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- (result[value] || (result[value] = [])).push(key);
-}, {});
-// => { '1': ['a', 'c'], '2': ['b'] }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_unsetobject-path"></a>`_.unset(object, path)`
-<a href="#_unsetobject-path">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13163 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.unset "See the npm package")
-
-Removes the property at `path` of `object`.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `object` *(Object)*: The object to modify.
-2. `path` *(Array|string)*: The path of the property to unset.
-
-#### Returns
-*(boolean)*: Returns `true` if the property is deleted, else `false`.
-
-#### Example
-```js
-var object = { 'a': [{ 'b': { 'c': 7 } }] };
-_.unset(object, 'a[0].b.c');
-// => true
-
-console.log(object);
-// => { 'a': [{ 'b': {} }] };
-
-_.unset(object, ['a', '0', 'b', 'c']);
-// => true
-
-console.log(object);
-// => { 'a': [{ 'b': {} }] };
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_updateobject-path-updater"></a>`_.update(object, path, updater)`
-<a href="#_updateobject-path-updater">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13194 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.update "See the npm package")
-
-This method is like `_.set` except that accepts `updater` to produce the
-value to set. Use `_.updateWith` to customize `path` creation. The `updater`
-is invoked with one argument: *(value)*.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-4.6.0
-#### Arguments
-1. `object` *(Object)*: The object to modify.
-2. `path` *(Array|string)*: The path of the property to set.
-3. `updater` *(Function)*: The function to produce the updated value.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-var object = { 'a': [{ 'b': { 'c': 3 } }] };
-
-_.update(object, 'a[0].b.c', function(n) { return n * n; });
-console.log(object.a[0].b.c);
-// => 9
-
-_.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
-console.log(object.x[0].y.z);
-// => 0
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_updatewithobject-path-updater-customizer"></a>`_.updateWith(object, path, updater, [customizer])`
-<a href="#_updatewithobject-path-updater-customizer">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13222 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.updatewith "See the npm package")
-
-This method is like `_.update` except that it accepts `customizer` which is
-invoked to produce the objects of `path`. If `customizer` returns `undefined`
-path creation is handled by the method instead. The `customizer` is invoked
-with three arguments: *(nsValue, key, nsObject)*.
-<br>
-<br>
-**Note:** This method mutates `object`.
-
-#### Since
-4.6.0
-#### Arguments
-1. `object` *(Object)*: The object to modify.
-2. `path` *(Array|string)*: The path of the property to set.
-3. `updater` *(Function)*: The function to produce the updated value.
-4. `[customizer]` *(Function)*: The function to customize assigned values.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-var object = {};
-
-_.updateWith(object, '[0][1]', _.constant('a'), Object);
-// => { '0': { '1': 'a' } }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_valuesobject"></a>`_.values(object)`
-<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13253 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.values "See the npm package")
-
-Creates an array of the own enumerable string keyed property values of `object`.
-<br>
-<br>
-**Note:** Non-object values are coerced to objects.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-
-#### Returns
-*(Array)*: Returns the array of property values.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.values(new Foo);
-// => [1, 2] (iteration order is not guaranteed)
-
-_.values('hi');
-// => ['h', 'i']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_valuesinobject"></a>`_.valuesIn(object)`
-<a href="#_valuesinobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13281 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.valuesin "See the npm package")
-
-Creates an array of the own and inherited enumerable string keyed property
-values of `object`.
-<br>
-<br>
-**Note:** Non-object values are coerced to objects.
-
-#### Since
-3.0.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-
-#### Returns
-*(Array)*: Returns the array of property values.
-
-#### Example
-```js
-function Foo() {
- this.a = 1;
- this.b = 2;
-}
-
-Foo.prototype.c = 3;
-
-_.valuesIn(new Foo);
-// => [1, 2, 3] (iteration order is not guaranteed)
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Seq†Methods`
-
-<!-- div -->
-
-### <a id="_value"></a>`_(value)`
-<a href="#_value">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1464 "View in source") [&#x24C9;][1]
-
-Creates a `lodash` object which wraps `value` to enable implicit method
-chain sequences. Methods that operate on and return arrays, collections,
-and functions can be chained together. Methods that retrieve a single value
-or may return a primitive value will automatically end the chain sequence
-and return the unwrapped value. Otherwise, the value must be unwrapped
-with `_#value`.
-<br>
-<br>
-Explicit chain sequences, which must be unwrapped with `_#value`, may be
-enabled using `_.chain`.
-<br>
-<br>
-The execution of chained methods is lazy, that is, it's deferred until
-`_#value` is implicitly or explicitly called.
-<br>
-<br>
-Lazy evaluation allows several methods to support shortcut fusion.
-Shortcut fusion is an optimization to merge iteratee calls; this avoids
-the creation of intermediate arrays and can greatly reduce the number of
-iteratee executions. Sections of a chain sequence qualify for shortcut
-fusion if the section is applied to an array of at least `200` elements
-and any iteratees accept only one argument. The heuristic for whether a
-section qualifies for shortcut fusion is subject to change.
-<br>
-<br>
-Chaining is supported in custom builds as long as the `_#value` method is
-directly or indirectly included in the build.
-<br>
-<br>
-In addition to lodash methods, wrappers have `Array` and `String` methods.
-<br>
-<br>
-The wrapper `Array` methods are:<br>
-`concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
-<br>
-<br>
-The wrapper `String` methods are:<br>
-`replace` and `split`
-<br>
-<br>
-The wrapper methods that support shortcut fusion are:<br>
-`at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
-`findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
-`tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
-<br>
-<br>
-The chainable wrapper methods are:<br>
-`after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
-`before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
-`commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
-`curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
-`difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
-`dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
-`flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
-`flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
-`functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
-`intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
-`keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
-`memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
-`nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
-`overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
-`pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
-`pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
-`remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
-`slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
-`takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
-`toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
-`union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
-`unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
-`valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
-`zipObject`, `zipObjectDeep`, and `zipWith`
-<br>
-<br>
-The wrapper methods that are **not** chainable by default are:<br>
-`add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
-`cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `divide`, `each`,
-`eachRight`, `endsWith`, `eq`, `escape`, `escapeRegExp`, `every`, `find`,
-`findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `first`,
-`floor`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`,
-`forOwnRight`, `get`, `gt`, `gte`, `has`, `hasIn`, `head`, `identity`,
-`includes`, `indexOf`, `inRange`, `invoke`, `isArguments`, `isArray`,
-`isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`,
-`isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isEqualWith`,
-`isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMap`,
-`isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
-`isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
-`isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
-`isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
-`lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
-`min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
-`padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
-`repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
-`snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
-`sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
-`stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
-`template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
-`toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
-`trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
-`upperFirst`, `value`, and `words`
-
-#### Arguments
-1. `value` *(&#42;)*: The value to wrap in a `lodash` instance.
-
-#### Returns
-*(Object)*: Returns the new `lodash` wrapper instance.
-
-#### Example
-```js
-function square(n) {
- return n * n;
-}
-
-var wrapped = _([1, 2, 3]);
-
-// Returns an unwrapped value.
-wrapped.reduce(_.add);
-// => 6
-
-// Returns a wrapped value.
-var squares = wrapped.map(square);
-
-_.isArray(squares);
-// => false
-
-_.isArray(squares.value());
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_chainvalue"></a>`_.chain(value)`
-<a href="#_chainvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8031 "View in source") [&#x24C9;][1]
-
-Creates a `lodash` wrapper instance that wraps `value` with explicit method
-chain sequences enabled. The result of such sequences must be unwrapped
-with `_#value`.
-
-#### Since
-1.3.0
-#### Arguments
-1. `value` *(&#42;)*: The value to wrap.
-
-#### Returns
-*(Object)*: Returns the new `lodash` wrapper instance.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36 },
- { 'user': 'fred', 'age': 40 },
- { 'user': 'pebbles', 'age': 1 }
-];
-
-var youngest = _
- .chain(users)
- .sortBy('age')
- .map(function(o) {
- return o.user + ' is ' + o.age;
- })
- .head()
- .value();
-// => 'pebbles is 1'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
-<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8060 "View in source") [&#x24C9;][1]
-
-This method invokes `interceptor` and returns `value`. The interceptor
-is invoked with one argument; *(value)*. The purpose of this method is to
-"tap into" a method chain sequence in order to modify intermediate results.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: The value to provide to `interceptor`.
-2. `interceptor` *(Function)*: The function to invoke.
-
-#### Returns
-*(&#42;)*: Returns `value`.
-
-#### Example
-```js
-_([1, 2, 3])
- .tap(function(array) {
- // Mutate input array.
- array.pop();
- })
- .reverse()
- .value();
-// => [2, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_thruvalue-interceptor"></a>`_.thru(value, interceptor)`
-<a href="#_thruvalue-interceptor">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8088 "View in source") [&#x24C9;][1]
-
-This method is like `_.tap` except that it returns the result of `interceptor`.
-The purpose of this method is to "pass thru" values replacing intermediate
-results in a method chain sequence.
-
-#### Since
-3.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to provide to `interceptor`.
-2. `interceptor` *(Function)*: The function to invoke.
-
-#### Returns
-*(&#42;)*: Returns the result of `interceptor`.
-
-#### Example
-```js
-_(' abc ')
- .chain()
- .trim()
- .thru(function(value) {
- return [value];
- })
- .value();
-// => ['abc']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_prototypesymboliterator"></a>`_.prototype[Symbol.iterator]()`
-<a href="#_prototypesymboliterator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8244 "View in source") [&#x24C9;][1]
-
-Enables the wrapper to be iterable.
-
-#### Since
-4.0.0
-#### Returns
-*(Object)*: Returns the wrapper object.
-
-#### Example
-```js
-var wrapped = _([1, 2]);
-
-wrapped[Symbol.iterator]() === wrapped;
-// => true
-
-Array.from(wrapped);
-// => [1, 2]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_prototypeatpaths"></a>`_.prototype.at([paths])`
-<a href="#_prototypeatpaths">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8108 "View in source") [&#x24C9;][1]
-
-This method is the wrapper version of `_.at`.
-
-#### Since
-1.0.0
-#### Arguments
-1. `[paths]` *(...(string|string&#91;&#93;))*: The property paths of elements to pick.
-
-#### Returns
-*(Object)*: Returns the new `lodash` wrapper instance.
-
-#### Example
-```js
-var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
-
-_(object).at(['a[0].b.c', 'a[1]']).value();
-// => [3, 4]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_prototypechain"></a>`_.prototype.chain()`
-<a href="#_prototypechain">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8160 "View in source") [&#x24C9;][1]
-
-Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
-
-#### Since
-0.1.0
-#### Returns
-*(Object)*: Returns the new `lodash` wrapper instance.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36 },
- { 'user': 'fred', 'age': 40 }
-];
-
-// A sequence without explicit chaining.
-_(users).head();
-// => { 'user': 'barney', 'age': 36 }
-
-// A sequence with explicit chaining.
-_(users)
- .chain()
- .head()
- .pick('user')
- .value();
-// => { 'user': 'barney' }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_prototypecommit"></a>`_.prototype.commit()`
-<a href="#_prototypecommit">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8190 "View in source") [&#x24C9;][1]
-
-Executes the chain sequence and returns the wrapped result.
-
-#### Since
-3.2.0
-#### Returns
-*(Object)*: Returns the new `lodash` wrapper instance.
-
-#### Example
-```js
-var array = [1, 2];
-var wrapped = _(array).push(3);
-
-console.log(array);
-// => [1, 2]
-
-wrapped = wrapped.commit();
-console.log(array);
-// => [1, 2, 3]
-
-wrapped.last();
-// => 3
-
-console.log(array);
-// => [1, 2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_prototypenext"></a>`_.prototype.next()`
-<a href="#_prototypenext">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8216 "View in source") [&#x24C9;][1]
-
-Gets the next value on a wrapped object following the
-[iterator protocol](https://mdn.io/iteration_protocols#iterator).
-
-#### Since
-4.0.0
-#### Returns
-*(Object)*: Returns the next iterator value.
-
-#### Example
-```js
-var wrapped = _([1, 2]);
-
-wrapped.next();
-// => { 'done': false, 'value': 1 }
-
-wrapped.next();
-// => { 'done': false, 'value': 2 }
-
-wrapped.next();
-// => { 'done': true, 'value': undefined }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_prototypeplantvalue"></a>`_.prototype.plant(value)`
-<a href="#_prototypeplantvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8272 "View in source") [&#x24C9;][1]
-
-Creates a clone of the chain sequence planting `value` as the wrapped value.
-
-#### Since
-3.2.0
-#### Arguments
-1. `value` *(&#42;)*: The value to plant.
-
-#### Returns
-*(Object)*: Returns the new `lodash` wrapper instance.
-
-#### Example
-```js
-function square(n) {
- return n * n;
-}
-
-var wrapped = _([1, 2]).map(square);
-var other = wrapped.plant([3, 4]);
-
-other.value();
-// => [9, 16]
-
-wrapped.value();
-// => [1, 4]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_prototypereverse"></a>`_.prototype.reverse()`
-<a href="#_prototypereverse">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8312 "View in source") [&#x24C9;][1]
-
-This method is the wrapper version of `_.reverse`.
-<br>
-<br>
-**Note:** This method mutates the wrapped array.
-
-#### Since
-0.1.0
-#### Returns
-*(Object)*: Returns the new `lodash` wrapper instance.
-
-#### Example
-```js
-var array = [1, 2, 3];
-
-_(array).reverse().value()
-// => [3, 2, 1]
-
-console.log(array);
-// => [3, 2, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_prototypevalue"></a>`_.prototype.value()`
-<a href="#_prototypevalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L8344 "View in source") [&#x24C9;][1]
-
-Executes the chain sequence to resolve the unwrapped value.
-
-#### Since
-0.1.0
-#### Aliases
-*_.prototype.toJSON, _.prototype.valueOf*
-
-#### Returns
-*(&#42;)*: Returns the resolved unwrapped value.
-
-#### Example
-```js
-_([1, 2, 3]).value();
-// => [1, 2, 3]
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“String†Methods`
-
-<!-- div -->
-
-### <a id="_camelcasestring"></a>`_.camelCase([string=''])`
-<a href="#_camelcasestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13464 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.camelcase "See the npm package")
-
-Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the camel cased string.
-
-#### Example
-```js
-_.camelCase('Foo Bar');
-// => 'fooBar'
-
-_.camelCase('--foo-bar--');
-// => 'fooBar'
-
-_.camelCase('__FOO_BAR__');
-// => 'fooBar'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_capitalizestring"></a>`_.capitalize([string=''])`
-<a href="#_capitalizestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13484 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.capitalize "See the npm package")
-
-Converts the first character of `string` to upper case and the remaining
-to lower case.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to capitalize.
-
-#### Returns
-*(string)*: Returns the capitalized string.
-
-#### Example
-```js
-_.capitalize('FRED');
-// => 'Fred'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_deburrstring"></a>`_.deburr([string=''])`
-<a href="#_deburrstring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13505 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.deburr "See the npm package")
-
-Deburrs `string` by converting
-[latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
-to basic latin letters and removing
-[combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to deburr.
-
-#### Returns
-*(string)*: Returns the deburred string.
-
-#### Example
-```js
-_.deburr('déjà vu');
-// => 'deja vu'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_endswithstring-target-positionstringlength"></a>`_.endsWith([string=''], [target], [position=string.length])`
-<a href="#_endswithstring-target-positionstringlength">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13533 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.endswith "See the npm package")
-
-Checks if `string` ends with the given target string.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to search.
-2. `[target]` *(string)*: The string to search for.
-3. `[position=string.length]` *(number)*: The position to search up to.
-
-#### Returns
-*(boolean)*: Returns `true` if `string` ends with `target`, else `false`.
-
-#### Example
-```js
-_.endsWith('abc', 'c');
-// => true
-
-_.endsWith('abc', 'b');
-// => false
-
-_.endsWith('abc', 'b', 2);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_escapestring"></a>`_.escape([string=''])`
-<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13580 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.escape "See the npm package")
-
-Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to
-their corresponding HTML entities.
-<br>
-<br>
-**Note:** No other characters are escaped. To escape additional
-characters use a third-party library like [_he_](https://mths.be/he).
-<br>
-<br>
-Though the ">" character is escaped for symmetry, characters like
-">" and "/" don't need escaping in HTML and have no special meaning
-unless they're part of a tag or unquoted attribute value. See
-[Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
-*(under "semi-related fun fact")* for more details.
-<br>
-<br>
-Backticks are escaped because in IE < `9`, they can break out of
-attribute values or HTML comments. See [#59](https://html5sec.org/#59),
-[#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
-[#133](https://html5sec.org/#133) of the
-[HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
-<br>
-<br>
-When working with HTML you should always
-[quote attribute values](http://wonko.com/post/html-escaping) to reduce
-XSS vectors.
-
-#### Since
-0.1.0
-#### Arguments
-1. `[string='']` *(string)*: The string to escape.
-
-#### Returns
-*(string)*: Returns the escaped string.
-
-#### Example
-```js
-_.escape('fred, barney, & pebbles');
-// => 'fred, barney, &amp; pebbles'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_escaperegexpstring"></a>`_.escapeRegExp([string=''])`
-<a href="#_escaperegexpstring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13602 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.escaperegexp "See the npm package")
-
-Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
-"?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to escape.
-
-#### Returns
-*(string)*: Returns the escaped string.
-
-#### Example
-```js
-_.escapeRegExp('[lodash](https://lodash.com/)');
-// => '\[lodash\]\(https://lodash\.com/\)'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_kebabcasestring"></a>`_.kebabCase([string=''])`
-<a href="#_kebabcasestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13630 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.kebabcase "See the npm package")
-
-Converts `string` to
-[kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the kebab cased string.
-
-#### Example
-```js
-_.kebabCase('Foo Bar');
-// => 'foo-bar'
-
-_.kebabCase('fooBar');
-// => 'foo-bar'
-
-_.kebabCase('__FOO_BAR__');
-// => 'foo-bar'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_lowercasestring"></a>`_.lowerCase([string=''])`
-<a href="#_lowercasestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13654 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.lowercase "See the npm package")
-
-Converts `string`, as space separated words, to lower case.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the lower cased string.
-
-#### Example
-```js
-_.lowerCase('--Foo-Bar--');
-// => 'foo bar'
-
-_.lowerCase('fooBar');
-// => 'foo bar'
-
-_.lowerCase('__FOO_BAR__');
-// => 'foo bar'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_lowerfirststring"></a>`_.lowerFirst([string=''])`
-<a href="#_lowerfirststring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13675 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.lowerfirst "See the npm package")
-
-Converts the first character of `string` to lower case.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the converted string.
-
-#### Example
-```js
-_.lowerFirst('Fred');
-// => 'fred'
-
-_.lowerFirst('FRED');
-// => 'fRED'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_padstring-length0-chars"></a>`_.pad([string=''], [length=0], [chars=' '])`
-<a href="#_padstring-length0-chars">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13700 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.pad "See the npm package")
-
-Pads `string` on the left and right sides if it's shorter than `length`.
-Padding characters are truncated if they can't be evenly divided by `length`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to pad.
-2. `[length=0]` *(number)*: The padding length.
-3. `[chars=' ']` *(string)*: The string used as padding.
-
-#### Returns
-*(string)*: Returns the padded string.
-
-#### Example
-```js
-_.pad('abc', 8);
-// => ' abc '
-
-_.pad('abc', 8, '_-');
-// => '_-abc_-_'
-
-_.pad('abc', 3);
-// => 'abc'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_padendstring-length0-chars"></a>`_.padEnd([string=''], [length=0], [chars=' '])`
-<a href="#_padendstring-length0-chars">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13739 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.padend "See the npm package")
-
-Pads `string` on the right side if it's shorter than `length`. Padding
-characters are truncated if they exceed `length`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to pad.
-2. `[length=0]` *(number)*: The padding length.
-3. `[chars=' ']` *(string)*: The string used as padding.
-
-#### Returns
-*(string)*: Returns the padded string.
-
-#### Example
-```js
-_.padEnd('abc', 6);
-// => 'abc '
-
-_.padEnd('abc', 6, '_-');
-// => 'abc_-_'
-
-_.padEnd('abc', 3);
-// => 'abc'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_padstartstring-length0-chars"></a>`_.padStart([string=''], [length=0], [chars=' '])`
-<a href="#_padstartstring-length0-chars">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13772 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.padstart "See the npm package")
-
-Pads `string` on the left side if it's shorter than `length`. Padding
-characters are truncated if they exceed `length`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to pad.
-2. `[length=0]` *(number)*: The padding length.
-3. `[chars=' ']` *(string)*: The string used as padding.
-
-#### Returns
-*(string)*: Returns the padded string.
-
-#### Example
-```js
-_.padStart('abc', 6);
-// => ' abc'
-
-_.padStart('abc', 6, '_-');
-// => '_-_abc'
-
-_.padStart('abc', 3);
-// => 'abc'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_parseintstring-radix10"></a>`_.parseInt(string, [radix=10])`
-<a href="#_parseintstring-radix10">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13806 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.parseint "See the npm package")
-
-Converts `string` to an integer of the specified radix. If `radix` is
-`undefined` or `0`, a `radix` of `10` is used unless `value` is a
-hexadecimal, in which case a `radix` of `16` is used.
-<br>
-<br>
-**Note:** This method aligns with the
-[ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
-
-#### Since
-1.1.0
-#### Arguments
-1. `string` *(string)*: The string to convert.
-2. `[radix=10]` *(number)*: The radix to interpret `value` by.
-
-#### Returns
-*(number)*: Returns the converted integer.
-
-#### Example
-```js
-_.parseInt('08');
-// => 8
-
-_.map(['6', '08', '10'], _.parseInt);
-// => [6, 8, 10]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_repeatstring-n1"></a>`_.repeat([string=''], [n=1])`
-<a href="#_repeatstring-n1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13840 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.repeat "See the npm package")
-
-Repeats the given string `n` times.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to repeat.
-2. `[n=1]` *(number)*: The number of times to repeat the string.
-
-#### Returns
-*(string)*: Returns the repeated string.
-
-#### Example
-```js
-_.repeat('*', 3);
-// => '***'
-
-_.repeat('abc', 2);
-// => 'abcabc'
-
-_.repeat('abc', 0);
-// => ''
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_replacestring-pattern-replacement"></a>`_.replace([string=''], pattern, replacement)`
-<a href="#_replacestring-pattern-replacement">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13868 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.replace "See the npm package")
-
-Replaces matches for `pattern` in `string` with `replacement`.
-<br>
-<br>
-**Note:** This method is based on
-[`String#replace`](https://mdn.io/String/replace).
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to modify.
-2. `pattern` *(RegExp|string)*: The pattern to replace.
-3. `replacement` *(Function|string)*: The match replacement.
-
-#### Returns
-*(string)*: Returns the modified string.
-
-#### Example
-```js
-_.replace('Hi Fred', 'Fred', 'Barney');
-// => 'Hi Barney'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_snakecasestring"></a>`_.snakeCase([string=''])`
-<a href="#_snakecasestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13896 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.snakecase "See the npm package")
-
-Converts `string` to
-[snake case](https://en.wikipedia.org/wiki/Snake_case).
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the snake cased string.
-
-#### Example
-```js
-_.snakeCase('Foo Bar');
-// => 'foo_bar'
-
-_.snakeCase('fooBar');
-// => 'foo_bar'
-
-_.snakeCase('--FOO-BAR--');
-// => 'foo_bar'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_splitstring-separator-limit"></a>`_.split([string=''], separator, [limit])`
-<a href="#_splitstring-separator-limit">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13919 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.split "See the npm package")
-
-Splits `string` by `separator`.
-<br>
-<br>
-**Note:** This method is based on
-[`String#split`](https://mdn.io/String/split).
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to split.
-2. `separator` *(RegExp|string)*: The separator pattern to split by.
-3. `[limit]` *(number)*: The length to truncate results to.
-
-#### Returns
-*(Array)*: Returns the string segments.
-
-#### Example
-```js
-_.split('a-b-c', '-', 2);
-// => ['a', 'b']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_startcasestring"></a>`_.startCase([string=''])`
-<a href="#_startcasestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13961 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.startcase "See the npm package")
-
-Converts `string` to
-[start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
-
-#### Since
-3.1.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the start cased string.
-
-#### Example
-```js
-_.startCase('--foo-bar--');
-// => 'Foo Bar'
-
-_.startCase('fooBar');
-// => 'Foo Bar'
-
-_.startCase('__FOO_BAR__');
-// => 'FOO BAR'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_startswithstring-target-position0"></a>`_.startsWith([string=''], [target], [position=0])`
-<a href="#_startswithstring-target-position0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L13988 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.startswith "See the npm package")
-
-Checks if `string` starts with the given target string.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to search.
-2. `[target]` *(string)*: The string to search for.
-3. `[position=0]` *(number)*: The position to search from.
-
-#### Returns
-*(boolean)*: Returns `true` if `string` starts with `target`, else `false`.
-
-#### Example
-```js
-_.startsWith('abc', 'a');
-// => true
-
-_.startsWith('abc', 'b');
-// => false
-
-_.startsWith('abc', 'b', 1);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_templatestring-options-optionsescape_templatesettingsescape-optionsevaluate_templatesettingsevaluate-optionsimports_templatesettingsimports-optionsinterpolate_templatesettingsinterpolate-optionssourceurllodashtemplatesourcesn-optionsvariableobj"></a>`_.template([string=''], [options={}], [options.escape=_.templateSettings.escape], [options.evaluate=_.templateSettings.evaluate], [options.imports=_.templateSettings.imports], [options.interpolate=_.templateSettings.interpolate], [options.sourceURL='lodash.templateSources[n]'], [options.variable='obj'])`
-<a href="#_templatestring-options-optionsescape_templatesettingsescape-optionsevaluate_templatesettingsevaluate-optionsimports_templatesettingsimports-optionsinterpolate_templatesettingsinterpolate-optionssourceurllodashtemplatesourcesn-optionsvariableobj">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14097 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.template "See the npm package")
-
-Creates a compiled template function that can interpolate data properties
-in "interpolate" delimiters, HTML-escape interpolated data properties in
-"escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
-properties may be accessed as free variables in the template. If a setting
-object is given, it takes precedence over `_.templateSettings` values.
-<br>
-<br>
-**Note:** In the development build `_.template` utilizes
-[sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
-for easier debugging.
-<br>
-<br>
-For more information on precompiling templates see
-[lodash's custom builds documentation](https://lodash.com/custom-builds).
-<br>
-<br>
-For more information on Chrome extension sandboxes see
-[Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
-
-#### Since
-0.1.0
-#### Arguments
-1. `[string='']` *(string)*: The template string.
-2. `[options={}]` *(Object)*: The options object.
-3. `[options.escape=_.templateSettings.escape]` *(RegExp)*: The HTML "escape" delimiter.
-4. `[options.evaluate=_.templateSettings.evaluate]` *(RegExp)*: The "evaluate" delimiter.
-5. `[options.imports=_.templateSettings.imports]` *(Object)*: An object to import into the template as free variables.
-6. `[options.interpolate=_.templateSettings.interpolate]` *(RegExp)*: The "interpolate" delimiter.
-7. `[options.sourceURL='lodash.templateSources[n]']` *(string)*: The sourceURL of the compiled template.
-8. `[options.variable='obj']` *(string)*: The data object variable name.
-
-#### Returns
-*(Function)*: Returns the compiled template function.
-
-#### Example
-```js
-// Use the "interpolate" delimiter to create a compiled template.
-var compiled = _.template('hello <%= user %>!');
-compiled({ 'user': 'fred' });
-// => 'hello fred!'
-
-// Use the HTML "escape" delimiter to escape data property values.
-var compiled = _.template('<b><%- value %></b>');
-compiled({ 'value': '<script>' });
-// => '<b>&lt;script&gt;</b>'
-
-// Use the "evaluate" delimiter to execute JavaScript and generate HTML.
-var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
-compiled({ 'users': ['fred', 'barney'] });
-// => '<li>fred</li><li>barney</li>'
-
-// Use the internal `print` function in "evaluate" delimiters.
-var compiled = _.template('<% print("hello " + user); %>!');
-compiled({ 'user': 'barney' });
-// => 'hello barney!'
-
-// Use the ES delimiter as an alternative to the default "interpolate" delimiter.
-var compiled = _.template('hello ${ user }!');
-compiled({ 'user': 'pebbles' });
-// => 'hello pebbles!'
-
-// Use backslashes to treat delimiters as plain text.
-var compiled = _.template('<%= "\\<%- value %\\>" %>');
-compiled({ 'value': 'ignored' });
-// => '<%- value %>'
-
-// Use the `imports` option to import `jQuery` as `jq`.
-var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
-var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
-compiled({ 'users': ['fred', 'barney'] });
-// => '<li>fred</li><li>barney</li>'
-
-// Use the `sourceURL` option to specify a custom sourceURL for the template.
-var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
-compiled(data);
-// => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
-
-// Use the `variable` option to ensure a with-statement isn't used in the compiled template.
-var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
-compiled.source;
-// => function(data) {
-// var __t, __p = '';
-// __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
-// return __p;
-// }
-
-// Use custom template delimiters.
-_.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
-var compiled = _.template('hello {{ user }}!');
-compiled({ 'user': 'mustache' });
-// => 'hello mustache!'
-
-// Use the `source` property to inline compiled templates for meaningful
-// line numbers in error messages and stack traces.
-fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
- var JST = {\
- "main": ' + _.template(mainText).source + '\
- };\
-');
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_tolowerstring"></a>`_.toLower([string=''])`
-<a href="#_tolowerstring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14226 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.tolower "See the npm package")
-
-Converts `string`, as a whole, to lower case just like
-[String#toLowerCase](https://mdn.io/toLowerCase).
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the lower cased string.
-
-#### Example
-```js
-_.toLower('--Foo-Bar--');
-// => '--foo-bar--'
-
-_.toLower('fooBar');
-// => 'foobar'
-
-_.toLower('__FOO_BAR__');
-// => '__foo_bar__'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_toupperstring"></a>`_.toUpper([string=''])`
-<a href="#_toupperstring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14251 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.toupper "See the npm package")
-
-Converts `string`, as a whole, to upper case just like
-[String#toUpperCase](https://mdn.io/toUpperCase).
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the upper cased string.
-
-#### Example
-```js
-_.toUpper('--foo-bar--');
-// => '--FOO-BAR--'
-
-_.toUpper('fooBar');
-// => 'FOOBAR'
-
-_.toUpper('__foo_bar__');
-// => '__FOO_BAR__'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_trimstring-charswhitespace"></a>`_.trim([string=''], [chars=whitespace])`
-<a href="#_trimstring-charswhitespace">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14277 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.trim "See the npm package")
-
-Removes leading and trailing whitespace or specified characters from `string`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to trim.
-2. `[chars=whitespace]` *(string)*: The characters to trim.
-
-#### Returns
-*(string)*: Returns the trimmed string.
-
-#### Example
-```js
-_.trim(' abc ');
-// => 'abc'
-
-_.trim('-_-abc-_-', '_-');
-// => 'abc'
-
-_.map([' foo ', ' bar '], _.trim);
-// => ['foo', 'bar']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_trimendstring-charswhitespace"></a>`_.trimEnd([string=''], [chars=whitespace])`
-<a href="#_trimendstring-charswhitespace">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14312 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.trimend "See the npm package")
-
-Removes trailing whitespace or specified characters from `string`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to trim.
-2. `[chars=whitespace]` *(string)*: The characters to trim.
-
-#### Returns
-*(string)*: Returns the trimmed string.
-
-#### Example
-```js
-_.trimEnd(' abc ');
-// => ' abc'
-
-_.trimEnd('-_-abc-_-', '_-');
-// => '-_-abc'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_trimstartstring-charswhitespace"></a>`_.trimStart([string=''], [chars=whitespace])`
-<a href="#_trimstartstring-charswhitespace">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14345 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.trimstart "See the npm package")
-
-Removes leading whitespace or specified characters from `string`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to trim.
-2. `[chars=whitespace]` *(string)*: The characters to trim.
-
-#### Returns
-*(string)*: Returns the trimmed string.
-
-#### Example
-```js
-_.trimStart(' abc ');
-// => 'abc '
-
-_.trimStart('-_-abc-_-', '_-');
-// => 'abc-_-'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_truncatestring-options-optionslength30-optionsomission-optionsseparator"></a>`_.truncate([string=''], [options={}], [options.length=30], [options.omission='...'], [options.separator])`
-<a href="#_truncatestring-options-optionslength30-optionsomission-optionsseparator">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14396 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.truncate "See the npm package")
-
-Truncates `string` if it's longer than the given maximum string length.
-The last characters of the truncated string are replaced with the omission
-string which defaults to "...".
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to truncate.
-2. `[options={}]` *(Object)*: The options object.
-3. `[options.length=30]` *(number)*: The maximum string length.
-4. `[options.omission='...']` *(string)*: The string to indicate text is omitted.
-5. `[options.separator]` *(RegExp|string)*: The separator pattern to truncate to.
-
-#### Returns
-*(string)*: Returns the truncated string.
-
-#### Example
-```js
-_.truncate('hi-diddly-ho there, neighborino');
-// => 'hi-diddly-ho there, neighbo...'
-
-_.truncate('hi-diddly-ho there, neighborino', {
- 'length': 24,
- 'separator': ' '
-});
-// => 'hi-diddly-ho there,...'
-
-_.truncate('hi-diddly-ho there, neighborino', {
- 'length': 24,
- 'separator': /,? +/
-});
-// => 'hi-diddly-ho there...'
-
-_.truncate('hi-diddly-ho there, neighborino', {
- 'omission': ' [...]'
-});
-// => 'hi-diddly-ho there, neig [...]'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_unescapestring"></a>`_.unescape([string=''])`
-<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14471 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.unescape "See the npm package")
-
-The inverse of `_.escape`; this method converts the HTML entities
-`&amp;`, `&lt;`, `&gt;`, `&quot;`, `&#39;`, and `&#96;` in `string` to
-their corresponding characters.
-<br>
-<br>
-**Note:** No other HTML entities are unescaped. To unescape additional
-HTML entities use a third-party library like [_he_](https://mths.be/he).
-
-#### Since
-0.6.0
-#### Arguments
-1. `[string='']` *(string)*: The string to unescape.
-
-#### Returns
-*(string)*: Returns the unescaped string.
-
-#### Example
-```js
-_.unescape('fred, barney, &amp; pebbles');
-// => 'fred, barney, & pebbles'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_uppercasestring"></a>`_.upperCase([string=''])`
-<a href="#_uppercasestring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14498 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.uppercase "See the npm package")
-
-Converts `string`, as space separated words, to upper case.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the upper cased string.
-
-#### Example
-```js
-_.upperCase('--foo-bar');
-// => 'FOO BAR'
-
-_.upperCase('fooBar');
-// => 'FOO BAR'
-
-_.upperCase('__foo_bar__');
-// => 'FOO BAR'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_upperfirststring"></a>`_.upperFirst([string=''])`
-<a href="#_upperfirststring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14519 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.upperfirst "See the npm package")
-
-Converts the first character of `string` to upper case.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to convert.
-
-#### Returns
-*(string)*: Returns the converted string.
-
-#### Example
-```js
-_.upperFirst('fred');
-// => 'Fred'
-
-_.upperFirst('FRED');
-// => 'FRED'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_wordsstring-pattern"></a>`_.words([string=''], [pattern])`
-<a href="#_wordsstring-pattern">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14540 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.words "See the npm package")
-
-Splits `string` into an array of its words.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[string='']` *(string)*: The string to inspect.
-2. `[pattern]` *(RegExp|string)*: The pattern to match words.
-
-#### Returns
-*(Array)*: Returns the words of `string`.
-
-#### Example
-```js
-_.words('fred, barney, & pebbles');
-// => ['fred', 'barney', 'pebbles']
-
-_.words('fred, barney, & pebbles', /[^, ]+/g);
-// => ['fred', 'barney', '&', 'pebbles']
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `“Util†Methods`
-
-<!-- div -->
-
-### <a id="_attemptfunc-args"></a>`_.attempt(func, [args])`
-<a href="#_attemptfunc-args">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14574 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.attempt "See the npm package")
-
-Attempts to invoke `func`, returning either the result or the caught error
-object. Any additional arguments are provided to `func` when it's invoked.
-
-#### Since
-3.0.0
-#### Arguments
-1. `func` *(Function)*: The function to attempt.
-2. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
-
-#### Returns
-*(&#42;)*: Returns the `func` result or error object.
-
-#### Example
-```js
-// Avoid throwing errors for invalid selectors.
-var elements = _.attempt(function(selector) {
- return document.querySelectorAll(selector);
-}, '>_>');
-
-if (_.isError(elements)) {
- elements = [];
-}
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_bindallobject-methodnames"></a>`_.bindAll(object, methodNames)`
-<a href="#_bindallobject-methodnames">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14608 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.bindall "See the npm package")
-
-Binds methods of an object to the object itself, overwriting the existing
-method.
-<br>
-<br>
-**Note:** This method doesn't set the "length" property of bound functions.
-
-#### Since
-0.1.0
-#### Arguments
-1. `object` *(Object)*: The object to bind and assign the bound methods to.
-2. `methodNames` *(...(string|string&#91;&#93;))*: The object method names to bind.
-
-#### Returns
-*(Object)*: Returns `object`.
-
-#### Example
-```js
-var view = {
- 'label': 'docs',
- 'onClick': function() {
- console.log('clicked ' + this.label);
- }
-};
-
-_.bindAll(view, ['onClick']);
-jQuery(element).on('click', view.onClick);
-// => Logs 'clicked docs' when clicked.
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_condpairs"></a>`_.cond(pairs)`
-<a href="#_condpairs">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14645 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.cond "See the npm package")
-
-Creates a function that iterates over `pairs` and invokes the corresponding
-function of the first predicate to return truthy. The predicate-function
-pairs are invoked with the `this` binding and arguments of the created
-function.
-
-#### Since
-4.0.0
-#### Arguments
-1. `pairs` *(Array)*: The predicate-function pairs.
-
-#### Returns
-*(Function)*: Returns the new composite function.
-
-#### Example
-```js
-var func = _.cond([
- [_.matches({ 'a': 1 }), _.constant('matches A')],
- [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
- [_.constant(true), _.constant('no match')]
-]);
-
-func({ 'a': 1, 'b': 2 });
-// => 'matches A'
-
-func({ 'a': 0, 'b': 1 });
-// => 'matches B'
-
-func({ 'a': '1', 'b': '2' });
-// => 'no match'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_conformssource"></a>`_.conforms(source)`
-<a href="#_conformssource">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14688 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.conforms "See the npm package")
-
-Creates a function that invokes the predicate properties of `source` with
-the corresponding property values of a given object, returning `true` if
-all predicates return truthy, else `false`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `source` *(Object)*: The object of property predicates to conform to.
-
-#### Returns
-*(Function)*: Returns the new spec function.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36 },
- { 'user': 'fred', 'age': 40 }
-];
-
-_.filter(users, _.conforms({ 'age': function(n) { return n > 38; } }));
-// => [{ 'user': 'fred', 'age': 40 }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_constantvalue"></a>`_.constant(value)`
-<a href="#_constantvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14711 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.constant "See the npm package")
-
-Creates a function that returns `value`.
-
-#### Since
-2.4.0
-#### Arguments
-1. `value` *(&#42;)*: The value to return from the new function.
-
-#### Returns
-*(Function)*: Returns the new constant function.
-
-#### Example
-```js
-var objects = _.times(2, _.constant({ 'a': 1 }));
-
-console.log(objects);
-// => [{ 'a': 1 }, { 'a': 1 }]
-
-console.log(objects[0] === objects[1]);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flowfuncs"></a>`_.flow([funcs])`
-<a href="#_flowfuncs">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14739 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flow "See the npm package")
-
-Creates a function that returns the result of invoking the given functions
-with the `this` binding of the created function, where each successive
-invocation is supplied the return value of the previous.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[funcs]` *(...(Function|Function&#91;&#93;))*: Functions to invoke.
-
-#### Returns
-*(Function)*: Returns the new composite function.
-
-#### Example
-```js
-function square(n) {
- return n * n;
-}
-
-var addSquare = _.flow([_.add, square]);
-addSquare(1, 2);
-// => 9
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_flowrightfuncs"></a>`_.flowRight([funcs])`
-<a href="#_flowrightfuncs">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14762 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.flowright "See the npm package")
-
-This method is like `_.flow` except that it creates a function that
-invokes the given functions from right to left.
-
-#### Since
-3.0.0
-#### Arguments
-1. `[funcs]` *(...(Function|Function&#91;&#93;))*: Functions to invoke.
-
-#### Returns
-*(Function)*: Returns the new composite function.
-
-#### Example
-```js
-function square(n) {
- return n * n;
-}
-
-var addSquare = _.flowRight([square, _.add]);
-addSquare(1, 2);
-// => 9
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_identityvalue"></a>`_.identity(value)`
-<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14780 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.identity "See the npm package")
-
-This method returns the first argument given to it.
-
-#### Since
-0.1.0
-#### Arguments
-1. `value` *(&#42;)*: Any value.
-
-#### Returns
-*(&#42;)*: Returns `value`.
-
-#### Example
-```js
-var object = { 'user': 'fred' };
-
-console.log(_.identity(object) === object);
-// => true
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_iterateefunc_identity"></a>`_.iteratee([func=_.identity])`
-<a href="#_iterateefunc_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14826 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.iteratee "See the npm package")
-
-Creates a function that invokes `func` with the arguments of the created
-function. If `func` is a property name, the created function returns the
-property value for a given element. If `func` is an array or object, the
-created function returns `true` for elements that contain the equivalent
-source properties, otherwise it returns `false`.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[func=_.identity]` *(&#42;)*: The value to convert to a callback.
-
-#### Returns
-*(Function)*: Returns the callback.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36, 'active': true },
- { 'user': 'fred', 'age': 40, 'active': false }
-];
-
-// The `_.matches` iteratee shorthand.
-_.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
-// => [{ 'user': 'barney', 'age': 36, 'active': true }]
-
-// The `_.matchesProperty` iteratee shorthand.
-_.filter(users, _.iteratee(['user', 'fred']));
-// => [{ 'user': 'fred', 'age': 40 }]
-
-// The `_.property` iteratee shorthand.
-_.map(users, _.iteratee('user'));
-// => ['barney', 'fred']
-
-// Create custom iteratee shorthands.
-_.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
- return !_.isRegExp(func) ? iteratee(func) : function(string) {
- return func.test(string);
- };
-});
-
-_.filter(['abc', 'def'], /ef/);
-// => ['def']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_matchessource"></a>`_.matches(source)`
-<a href="#_matchessource">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14854 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.matches "See the npm package")
-
-Creates a function that performs a partial deep comparison between a given
-object and `source`, returning `true` if the given object has equivalent
-property values, else `false`. The created function is equivalent to
-`_.isMatch` with a `source` partially applied.
-<br>
-<br>
-**Note:** This method supports comparing the same values as `_.isEqual`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `source` *(Object)*: The object of property values to match.
-
-#### Returns
-*(Function)*: Returns the new spec function.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney', 'age': 36, 'active': true },
- { 'user': 'fred', 'age': 40, 'active': false }
-];
-
-_.filter(users, _.matches({ 'age': 40, 'active': false }));
-// => [{ 'user': 'fred', 'age': 40, 'active': false }]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_matchespropertypath-srcvalue"></a>`_.matchesProperty(path, srcValue)`
-<a href="#_matchespropertypath-srcvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14882 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.matchesproperty "See the npm package")
-
-Creates a function that performs a partial deep comparison between the
-value at `path` of a given object to `srcValue`, returning `true` if the
-object value is equivalent, else `false`.
-<br>
-<br>
-**Note:** This method supports comparing the same values as `_.isEqual`.
-
-#### Since
-3.2.0
-#### Arguments
-1. `path` *(Array|string)*: The path of the property to get.
-2. `srcValue` *(&#42;)*: The value to match.
-
-#### Returns
-*(Function)*: Returns the new spec function.
-
-#### Example
-```js
-var users = [
- { 'user': 'barney' },
- { 'user': 'fred' }
-];
-
-_.find(users, _.matchesProperty('user', 'fred'));
-// => { 'user': 'fred' }
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_methodpath-args"></a>`_.method(path, [args])`
-<a href="#_methodpath-args">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14910 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.method "See the npm package")
-
-Creates a function that invokes the method at `path` of a given object.
-Any additional arguments are provided to the invoked method.
-
-#### Since
-3.7.0
-#### Arguments
-1. `path` *(Array|string)*: The path of the method to invoke.
-2. `[args]` *(...&#42;)*: The arguments to invoke the method with.
-
-#### Returns
-*(Function)*: Returns the new invoker function.
-
-#### Example
-```js
-var objects = [
- { 'a': { 'b': _.constant(2) } },
- { 'a': { 'b': _.constant(1) } }
-];
-
-_.map(objects, _.method('a.b'));
-// => [2, 1]
-
-_.map(objects, _.method(['a', 'b']));
-// => [2, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_methodofobject-args"></a>`_.methodOf(object, [args])`
-<a href="#_methodofobject-args">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14939 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.methodof "See the npm package")
-
-The opposite of `_.method`; this method creates a function that invokes
-the method at a given path of `object`. Any additional arguments are
-provided to the invoked method.
-
-#### Since
-3.7.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-2. `[args]` *(...&#42;)*: The arguments to invoke the method with.
-
-#### Returns
-*(Function)*: Returns the new invoker function.
-
-#### Example
-```js
-var array = _.times(3, _.constant),
- object = { 'a': array, 'b': array, 'c': array };
-
-_.map(['a[2]', 'c[0]'], _.methodOf(object));
-// => [2, 0]
-
-_.map([['a', '2'], ['c', '0']], _.methodOf(object));
-// => [2, 0]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_mixinobjectlodash-source-options-optionschaintrue"></a>`_.mixin([object=lodash], source, [options={}], [options.chain=true])`
-<a href="#_mixinobjectlodash-source-options-optionschaintrue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L14981 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.mixin "See the npm package")
-
-Adds all own enumerable string keyed function properties of a source
-object to the destination object. If `object` is a function, then methods
-are added to its prototype as well.
-<br>
-<br>
-**Note:** Use `_.runInContext` to create a pristine `lodash` function to
-avoid conflicts caused by modifying the original.
-
-#### Since
-0.1.0
-#### Arguments
-1. `[object=lodash]` *(Function|Object)*: The destination object.
-2. `source` *(Object)*: The object of functions to add.
-3. `[options={}]` *(Object)*: The options object.
-4. `[options.chain=true]` *(boolean)*: Specify whether mixins are chainable.
-
-#### Returns
-*(&#42;)*: Returns `object`.
-
-#### Example
-```js
-function vowels(string) {
- return _.filter(string, function(v) {
- return /[aeiou]/i.test(v);
- });
-}
-
-_.mixin({ 'vowels': vowels });
-_.vowels('fred');
-// => ['e']
-
-_('fred').vowels().value();
-// => ['e']
-
-_.mixin({ 'vowels': vowels }, { 'chain': false });
-_('fred').vowels();
-// => ['e']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_noconflict"></a>`_.noConflict()`
-<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15030 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.noconflict "See the npm package")
-
-Reverts the `_` variable to its previous value and returns a reference to
-the `lodash` function.
-
-#### Since
-0.1.0
-#### Returns
-*(Function)*: Returns the `lodash` function.
-
-#### Example
-```js
-var lodash = _.noConflict();
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_noop"></a>`_.noop()`
-<a href="#_noop">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15049 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.noop "See the npm package")
-
-A method that returns `undefined`.
-
-#### Since
-2.3.0
-#### Example
-```js
-_.times(2, _.noop);
-// => [undefined, undefined]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_nthargn0"></a>`_.nthArg([n=0])`
-<a href="#_nthargn0">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15073 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.ntharg "See the npm package")
-
-Creates a function that gets the argument at index `n`. If `n` is negative,
-the nth argument from the end is returned.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[n=0]` *(number)*: The index of the argument to return.
-
-#### Returns
-*(Function)*: Returns the new pass-thru function.
-
-#### Example
-```js
-var func = _.nthArg(1);
-func('a', 'b', 'c', 'd');
-// => 'b'
-
-var func = _.nthArg(-2);
-func('a', 'b', 'c', 'd');
-// => 'c'
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_overiteratees_identity"></a>`_.over([iteratees=[_.identity]])`
-<a href="#_overiteratees_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15098 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.over "See the npm package")
-
-Creates a function that invokes `iteratees` with the arguments it receives
-and returns their results.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[iteratees=[_.identity]]` *(...(Array|Array&#91;&#93;|Function|Function&#91;&#93;|Object|Object&#91;&#93;|string|string&#91;&#93;))*: The iteratees to invoke.
-
-#### Returns
-*(Function)*: Returns the new function.
-
-#### Example
-```js
-var func = _.over([Math.max, Math.min]);
-
-func(1, 2, 3, 4);
-// => [4, 1]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_overeverypredicates_identity"></a>`_.overEvery([predicates=[_.identity]])`
-<a href="#_overeverypredicates_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15124 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.overevery "See the npm package")
-
-Creates a function that checks if **all** of the `predicates` return
-truthy when invoked with the arguments it receives.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[predicates=[_.identity]]` *(...(Array|Array&#91;&#93;|Function|Function&#91;&#93;|Object|Object&#91;&#93;|string|string&#91;&#93;))*: The predicates to check.
-
-#### Returns
-*(Function)*: Returns the new function.
-
-#### Example
-```js
-var func = _.overEvery([Boolean, isFinite]);
-
-func('1');
-// => true
-
-func(null);
-// => false
-
-func(NaN);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_oversomepredicates_identity"></a>`_.overSome([predicates=[_.identity]])`
-<a href="#_oversomepredicates_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15150 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.oversome "See the npm package")
-
-Creates a function that checks if **any** of the `predicates` return
-truthy when invoked with the arguments it receives.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[predicates=[_.identity]]` *(...(Array|Array&#91;&#93;|Function|Function&#91;&#93;|Object|Object&#91;&#93;|string|string&#91;&#93;))*: The predicates to check.
-
-#### Returns
-*(Function)*: Returns the new function.
-
-#### Example
-```js
-var func = _.overSome([Boolean, isFinite]);
-
-func('1');
-// => true
-
-func(null);
-// => true
-
-func(NaN);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_propertypath"></a>`_.property(path)`
-<a href="#_propertypath">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15174 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.property "See the npm package")
-
-Creates a function that returns the value at `path` of a given object.
-
-#### Since
-2.4.0
-#### Arguments
-1. `path` *(Array|string)*: The path of the property to get.
-
-#### Returns
-*(Function)*: Returns the new accessor function.
-
-#### Example
-```js
-var objects = [
- { 'a': { 'b': 2 } },
- { 'a': { 'b': 1 } }
-];
-
-_.map(objects, _.property('a.b'));
-// => [2, 1]
-
-_.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
-// => [1, 2]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_propertyofobject"></a>`_.propertyOf(object)`
-<a href="#_propertyofobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15199 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.propertyof "See the npm package")
-
-The opposite of `_.property`; this method creates a function that returns
-the value at a given path of `object`.
-
-#### Since
-3.0.0
-#### Arguments
-1. `object` *(Object)*: The object to query.
-
-#### Returns
-*(Function)*: Returns the new accessor function.
-
-#### Example
-```js
-var array = [0, 1, 2],
- object = { 'a': array, 'b': array, 'c': array };
-
-_.map(['a[2]', 'c[0]'], _.propertyOf(object));
-// => [2, 0]
-
-_.map([['a', '2'], ['c', '0']], _.propertyOf(object));
-// => [2, 0]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_rangestart0-end-step1"></a>`_.range([start=0], end, [step=1])`
-<a href="#_rangestart0-end-step1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15246 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.range "See the npm package")
-
-Creates an array of numbers *(positive and/or negative)* progressing from
-`start` up to, but not including, `end`. A step of `-1` is used if a negative
-`start` is specified without an `end` or `step`. If `end` is not specified,
-it's set to `start` with `start` then set to `0`.
-<br>
-<br>
-**Note:** JavaScript follows the IEEE-754 standard for resolving
-floating-point values which can produce unexpected results.
-
-#### Since
-0.1.0
-#### Arguments
-1. `[start=0]` *(number)*: The start of the range.
-2. `end` *(number)*: The end of the range.
-3. `[step=1]` *(number)*: The value to increment or decrement by.
-
-#### Returns
-*(Array)*: Returns the range of numbers.
-
-#### Example
-```js
-_.range(4);
-// => [0, 1, 2, 3]
-
-_.range(-4);
-// => [0, -1, -2, -3]
-
-_.range(1, 5);
-// => [1, 2, 3, 4]
-
-_.range(0, 20, 5);
-// => [0, 5, 10, 15]
-
-_.range(0, -4, -1);
-// => [0, -1, -2, -3]
-
-_.range(1, 4, 0);
-// => [1, 1, 1]
-
-_.range(0);
-// => []
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_rangerightstart0-end-step1"></a>`_.rangeRight([start=0], end, [step=1])`
-<a href="#_rangerightstart0-end-step1">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15284 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.rangeright "See the npm package")
-
-This method is like `_.range` except that it populates values in
-descending order.
-
-#### Since
-4.0.0
-#### Arguments
-1. `[start=0]` *(number)*: The start of the range.
-2. `end` *(number)*: The end of the range.
-3. `[step=1]` *(number)*: The value to increment or decrement by.
-
-#### Returns
-*(Array)*: Returns the range of numbers.
-
-#### Example
-```js
-_.rangeRight(4);
-// => [3, 2, 1, 0]
-
-_.rangeRight(-4);
-// => [-3, -2, -1, 0]
-
-_.rangeRight(1, 5);
-// => [4, 3, 2, 1]
-
-_.rangeRight(0, 20, 5);
-// => [15, 10, 5, 0]
-
-_.rangeRight(0, -4, -1);
-// => [-3, -2, -1, 0]
-
-_.rangeRight(1, 4, 0);
-// => [1, 1, 1]
-
-_.rangeRight(0);
-// => []
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_runincontextcontextroot"></a>`_.runInContext([context=root])`
-<a href="#_runincontextcontextroot">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1234 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.runincontext "See the npm package")
-
-Create a new pristine `lodash` function using the `context` object.
-
-#### Since
-1.1.0
-#### Arguments
-1. `[context=root]` *(Object)*: The context object.
-
-#### Returns
-*(Function)*: Returns a new `lodash` function.
-
-#### Example
-```js
-_.mixin({ 'foo': _.constant('foo') });
-
-var lodash = _.runInContext();
-lodash.mixin({ 'bar': lodash.constant('bar') });
-
-_.isFunction(_.foo);
-// => true
-_.isFunction(_.bar);
-// => false
-
-lodash.isFunction(lodash.foo);
-// => false
-lodash.isFunction(lodash.bar);
-// => true
-
-// Use `context` to stub `Date#getTime` use in `_.now`.
-var stubbed = _.runInContext({
- 'Date': function() {
- return { 'getTime': stubGetTime };
- }
-});
-
-// Create a suped-up `defer` in Node.js.
-var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_stubarray"></a>`_.stubArray()`
-<a href="#_stubarray">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15304 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.stubarray "See the npm package")
-
-A method that returns a new empty array.
-
-#### Since
-4.13.0
-#### Returns
-*(Array)*: Returns the new empty array.
-
-#### Example
-```js
-var arrays = _.times(2, _.stubArray);
-
-console.log(arrays);
-// => [[], []]
-
-console.log(arrays[0] === arrays[1]);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_stubfalse"></a>`_.stubFalse()`
-<a href="#_stubfalse">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15321 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.stubfalse "See the npm package")
-
-A method that returns `false`.
-
-#### Since
-4.13.0
-#### Returns
-*(boolean)*: Returns `false`.
-
-#### Example
-```js
-_.times(2, _.stubFalse);
-// => [false, false]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_stubobject"></a>`_.stubObject()`
-<a href="#_stubobject">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15343 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.stubobject "See the npm package")
-
-A method that returns a new empty object.
-
-#### Since
-4.13.0
-#### Returns
-*(Object)*: Returns the new empty object.
-
-#### Example
-```js
-var objects = _.times(2, _.stubObject);
-
-console.log(objects);
-// => [{}, {}]
-
-console.log(objects[0] === objects[1]);
-// => false
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_stubstring"></a>`_.stubString()`
-<a href="#_stubstring">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15360 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.stubstring "See the npm package")
-
-A method that returns an empty string.
-
-#### Since
-4.13.0
-#### Returns
-*(string)*: Returns the empty string.
-
-#### Example
-```js
-_.times(2, _.stubString);
-// => ['', '']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_stubtrue"></a>`_.stubTrue()`
-<a href="#_stubtrue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15377 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.stubtrue "See the npm package")
-
-A method that returns `true`.
-
-#### Since
-4.13.0
-#### Returns
-*(boolean)*: Returns `true`.
-
-#### Example
-```js
-_.times(2, _.stubTrue);
-// => [true, true]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_timesn-iteratee_identity"></a>`_.times(n, [iteratee=_.identity])`
-<a href="#_timesn-iteratee_identity">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15400 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.times "See the npm package")
-
-Invokes the iteratee `n` times, returning an array of the results of
-each invocation. The iteratee is invoked with one argument; *(index)*.
-
-#### Since
-0.1.0
-#### Arguments
-1. `n` *(number)*: The number of times to invoke `iteratee`.
-2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
-
-#### Returns
-*(Array)*: Returns the array of results.
-
-#### Example
-```js
-_.times(3, String);
-// => ['0', '1', '2']
-
- _.times(4, _.constant(0));
-// => [0, 0, 0, 0]
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_topathvalue"></a>`_.toPath(value)`
-<a href="#_topathvalue">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15435 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.topath "See the npm package")
-
-Converts `value` to a property path array.
-
-#### Since
-4.0.0
-#### Arguments
-1. `value` *(&#42;)*: The value to convert.
-
-#### Returns
-*(Array)*: Returns the new property path array.
-
-#### Example
-```js
-_.toPath('a.b.c');
-// => ['a', 'b', 'c']
-
-_.toPath('a[0].b.c');
-// => ['a', '0', 'b', 'c']
-```
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix=''])`
-<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L15459 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.uniqueid "See the npm package")
-
-Generates a unique ID. If `prefix` is given, the ID is appended to it.
-
-#### Since
-0.1.0
-#### Arguments
-1. `[prefix='']` *(string)*: The value to prefix the ID with.
-
-#### Returns
-*(string)*: Returns the unique ID.
-
-#### Example
-```js
-_.uniqueId('contact_');
-// => 'contact_104'
-
-_.uniqueId();
-// => '105'
-```
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Properties`
-
-<!-- div -->
-
-### <a id="_version"></a>`_.VERSION`
-<a href="#_version">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L16152 "View in source") [&#x24C9;][1]
-
-(string): The semantic version number.
-
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_templatesettings"></a>`_.templateSettings`
-<a href="#_templatesettings">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1509 "View in source") [&#x24C9;][1] [&#x24C3;](https://www.npmjs.com/package/lodash.templatesettings "See the npm package")
-
-(Object): By default, the template delimiters used by lodash are like those in
-embedded Ruby *(ERB)*. Change the following template settings to use
-alternative delimiters.
-
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_templatesettingsescape"></a>`_.templateSettings.escape`
-<a href="#_templatesettingsescape">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1517 "View in source") [&#x24C9;][1]
-
-(RegExp): Used to detect `data` property values to be HTML-escaped.
-
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_templatesettingsevaluate"></a>`_.templateSettings.evaluate`
-<a href="#_templatesettingsevaluate">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1525 "View in source") [&#x24C9;][1]
-
-(RegExp): Used to detect code to be evaluated.
-
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_templatesettingsimports"></a>`_.templateSettings.imports`
-<a href="#_templatesettingsimports">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1549 "View in source") [&#x24C9;][1]
-
-(Object): Used to import variables into the compiled template.
-
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_templatesettingsinterpolate"></a>`_.templateSettings.interpolate`
-<a href="#_templatesettingsinterpolate">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1533 "View in source") [&#x24C9;][1]
-
-(RegExp): Used to detect `data` property values to inject.
-
-* * *
-
-<!-- /div -->
-
-<!-- div -->
-
-### <a id="_templatesettingsvariable"></a>`_.templateSettings.variable`
-<a href="#_templatesettingsvariable">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1541 "View in source") [&#x24C9;][1]
-
-(string): Used to reference the data object in the template text.
-
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- div -->
-
-## `Methods`
-
-<!-- div -->
-
-### <a id="_templatesettingsimports_"></a>`_.templateSettings.imports._`
-<a href="#_templatesettingsimports_">#</a> [&#x24C8;](https://github.com/lodash/lodash/blob/4.13.1/lodash.js#L1557 "View in source") [&#x24C9;][1]
-
-A reference to the `lodash` function.
-
-* * *
-
-<!-- /div -->
-
-<!-- /div -->
-
-<!-- /div -->
-
- [1]: #array "Jump back to the TOC."
diff --git a/ecomp-portal-FE/client/bower_components/lodash/fp/_baseConvert.js b/ecomp-portal-FE/client/bower_components/lodash/fp/_baseConvert.js
deleted file mode 100644
index e177cdd0..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/fp/_baseConvert.js
+++ /dev/null
@@ -1,466 +0,0 @@
-var mapping = require('./_mapping'),
- mutateMap = mapping.mutate,
- fallbackHolder = require('./placeholder');
-
-/**
- * Creates a function, with an arity of `n`, that invokes `func` with the
- * arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} n The arity of the new function.
- * @returns {Function} Returns the new function.
- */
-function baseArity(func, n) {
- return n == 2
- ? function(a, b) { return func.apply(undefined, arguments); }
- : function(a) { return func.apply(undefined, arguments); };
-}
-
-/**
- * Creates a function that invokes `func`, with up to `n` arguments, ignoring
- * any additional arguments.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @param {number} n The arity cap.
- * @returns {Function} Returns the new function.
- */
-function baseAry(func, n) {
- return n == 2
- ? function(a, b) { return func(a, b); }
- : function(a) { return func(a); };
-}
-
-/**
- * Creates a clone of `array`.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the cloned array.
- */
-function cloneArray(array) {
- var length = array ? array.length : 0,
- result = Array(length);
-
- while (length--) {
- result[length] = array[length];
- }
- return result;
-}
-
-/**
- * Creates a function that clones a given object using the assignment `func`.
- *
- * @private
- * @param {Function} func The assignment function.
- * @returns {Function} Returns the new cloner function.
- */
-function createCloner(func) {
- return function(object) {
- return func({}, object);
- };
-}
-
-/**
- * Creates a function that wraps `func` and uses `cloner` to clone the first
- * argument it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {Function} cloner The function to clone arguments.
- * @returns {Function} Returns the new immutable function.
- */
-function immutWrap(func, cloner) {
- return function() {
- var length = arguments.length;
- if (!length) {
- return result;
- }
- var args = Array(length);
- while (length--) {
- args[length] = arguments[length];
- }
- var result = args[0] = cloner.apply(undefined, args);
- func.apply(undefined, args);
- return result;
- };
-}
-
-/**
- * The base implementation of `convert` which accepts a `util` object of methods
- * required to perform conversions.
- *
- * @param {Object} util The util object.
- * @param {string} name The name of the function to convert.
- * @param {Function} func The function to convert.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.cap=true] Specify capping iteratee arguments.
- * @param {boolean} [options.curry=true] Specify currying.
- * @param {boolean} [options.fixed=true] Specify fixed arity.
- * @param {boolean} [options.immutable=true] Specify immutable operations.
- * @param {boolean} [options.rearg=true] Specify rearranging arguments.
- * @returns {Function|Object} Returns the converted function or object.
- */
-function baseConvert(util, name, func, options) {
- var setPlaceholder,
- isLib = typeof name == 'function',
- isObj = name === Object(name);
-
- if (isObj) {
- options = func;
- func = name;
- name = undefined;
- }
- if (func == null) {
- throw new TypeError;
- }
- options || (options = {});
-
- var config = {
- 'cap': 'cap' in options ? options.cap : true,
- 'curry': 'curry' in options ? options.curry : true,
- 'fixed': 'fixed' in options ? options.fixed : true,
- 'immutable': 'immutable' in options ? options.immutable : true,
- 'rearg': 'rearg' in options ? options.rearg : true
- };
-
- var forceCurry = ('curry' in options) && options.curry,
- forceFixed = ('fixed' in options) && options.fixed,
- forceRearg = ('rearg' in options) && options.rearg,
- placeholder = isLib ? func : fallbackHolder,
- pristine = isLib ? func.runInContext() : undefined;
-
- var helpers = isLib ? func : {
- 'ary': util.ary,
- 'assign': util.assign,
- 'clone': util.clone,
- 'curry': util.curry,
- 'forEach': util.forEach,
- 'isArray': util.isArray,
- 'isFunction': util.isFunction,
- 'iteratee': util.iteratee,
- 'keys': util.keys,
- 'rearg': util.rearg,
- 'spread': util.spread,
- 'toPath': util.toPath
- };
-
- var ary = helpers.ary,
- assign = helpers.assign,
- clone = helpers.clone,
- curry = helpers.curry,
- each = helpers.forEach,
- isArray = helpers.isArray,
- isFunction = helpers.isFunction,
- keys = helpers.keys,
- rearg = helpers.rearg,
- spread = helpers.spread,
- toPath = helpers.toPath;
-
- var aryMethodKeys = keys(mapping.aryMethod);
-
- var wrappers = {
- 'castArray': function(castArray) {
- return function() {
- var value = arguments[0];
- return isArray(value)
- ? castArray(cloneArray(value))
- : castArray.apply(undefined, arguments);
- };
- },
- 'iteratee': function(iteratee) {
- return function() {
- var func = arguments[0],
- arity = arguments[1],
- result = iteratee(func, arity),
- length = result.length;
-
- if (config.cap && typeof arity == 'number') {
- arity = arity > 2 ? (arity - 2) : 1;
- return (length && length <= arity) ? result : baseAry(result, arity);
- }
- return result;
- };
- },
- 'mixin': function(mixin) {
- return function(source) {
- var func = this;
- if (!isFunction(func)) {
- return mixin(func, Object(source));
- }
- var pairs = [];
- each(keys(source), function(key) {
- if (isFunction(source[key])) {
- pairs.push([key, func.prototype[key]]);
- }
- });
-
- mixin(func, Object(source));
-
- each(pairs, function(pair) {
- var value = pair[1];
- if (isFunction(value)) {
- func.prototype[pair[0]] = value;
- } else {
- delete func.prototype[pair[0]];
- }
- });
- return func;
- };
- },
- 'runInContext': function(runInContext) {
- return function(context) {
- return baseConvert(util, runInContext(context), options);
- };
- }
- };
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Creates a clone of `object` by `path`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {Array|string} path The path to clone by.
- * @returns {Object} Returns the cloned object.
- */
- function cloneByPath(object, path) {
- path = toPath(path);
-
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- result = clone(Object(object)),
- nested = result;
-
- while (nested != null && ++index < length) {
- var key = path[index],
- value = nested[key];
-
- if (value != null) {
- nested[path[index]] = clone(index == lastIndex ? value : Object(value));
- }
- nested = nested[key];
- }
- return result;
- }
-
- /**
- * Converts `lodash` to an immutable auto-curried iteratee-first data-last
- * version with conversion `options` applied.
- *
- * @param {Object} [options] The options object. See `baseConvert` for more details.
- * @returns {Function} Returns the converted `lodash`.
- */
- function convertLib(options) {
- return _.runInContext.convert(options)(undefined);
- }
-
- /**
- * Create a converter function for `func` of `name`.
- *
- * @param {string} name The name of the function to convert.
- * @param {Function} func The function to convert.
- * @returns {Function} Returns the new converter function.
- */
- function createConverter(name, func) {
- var oldOptions = options;
- return function(options) {
- var newUtil = isLib ? pristine : helpers,
- newFunc = isLib ? pristine[name] : func,
- newOptions = assign(assign({}, oldOptions), options);
-
- return baseConvert(newUtil, name, newFunc, newOptions);
- };
- }
-
- /**
- * Creates a function that wraps `func` to invoke its iteratee, with up to `n`
- * arguments, ignoring any additional arguments.
- *
- * @private
- * @param {Function} func The function to cap iteratee arguments for.
- * @param {number} n The arity cap.
- * @returns {Function} Returns the new function.
- */
- function iterateeAry(func, n) {
- return overArg(func, function(func) {
- return typeof func == 'function' ? baseAry(func, n) : func;
- });
- }
-
- /**
- * Creates a function that wraps `func` to invoke its iteratee with arguments
- * arranged according to the specified `indexes` where the argument value at
- * the first index is provided as the first argument, the argument value at
- * the second index is provided as the second argument, and so on.
- *
- * @private
- * @param {Function} func The function to rearrange iteratee arguments for.
- * @param {number[]} indexes The arranged argument indexes.
- * @returns {Function} Returns the new function.
- */
- function iterateeRearg(func, indexes) {
- return overArg(func, function(func) {
- var n = indexes.length;
- return baseArity(rearg(baseAry(func, n), indexes), n);
- });
- }
-
- /**
- * Creates a function that invokes `func` with its first argument passed
- * thru `transform`.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {...Function} transform The functions to transform the first argument.
- * @returns {Function} Returns the new function.
- */
- function overArg(func, transform) {
- return function() {
- var length = arguments.length;
- if (!length) {
- return func();
- }
- var args = Array(length);
- while (length--) {
- args[length] = arguments[length];
- }
- var index = config.rearg ? 0 : (length - 1);
- args[index] = transform(args[index]);
- return func.apply(undefined, args);
- };
- }
-
- /**
- * Creates a function that wraps `func` and applys the conversions
- * rules by `name`.
- *
- * @private
- * @param {string} name The name of the function to wrap.
- * @param {Function} func The function to wrap.
- * @returns {Function} Returns the converted function.
- */
- function wrap(name, func) {
- name = mapping.aliasToReal[name] || name;
-
- var result,
- wrapped = func,
- wrapper = wrappers[name];
-
- if (wrapper) {
- wrapped = wrapper(func);
- }
- else if (config.immutable) {
- if (mutateMap.array[name]) {
- wrapped = immutWrap(func, cloneArray);
- }
- else if (mutateMap.object[name]) {
- wrapped = immutWrap(func, createCloner(func));
- }
- else if (mutateMap.set[name]) {
- wrapped = immutWrap(func, cloneByPath);
- }
- }
- each(aryMethodKeys, function(aryKey) {
- each(mapping.aryMethod[aryKey], function(otherName) {
- if (name == otherName) {
- var aryN = !isLib && mapping.iterateeAry[name],
- reargIndexes = mapping.iterateeRearg[name],
- spreadStart = mapping.methodSpread[name];
-
- result = wrapped;
- if (config.fixed && (forceFixed || !mapping.skipFixed[name])) {
- result = spreadStart === undefined
- ? ary(result, aryKey)
- : spread(result, spreadStart);
- }
- if (config.rearg && aryKey > 1 && (forceRearg || !mapping.skipRearg[name])) {
- result = rearg(result, mapping.methodRearg[name] || mapping.aryRearg[aryKey]);
- }
- if (config.cap) {
- if (reargIndexes) {
- result = iterateeRearg(result, reargIndexes);
- } else if (aryN) {
- result = iterateeAry(result, aryN);
- }
- }
- if (forceCurry || (config.curry && aryKey > 1)) {
- forceCurry && console.log(forceCurry, name);
- result = curry(result, aryKey);
- }
- return false;
- }
- });
- return !result;
- });
-
- result || (result = wrapped);
- if (result == func) {
- result = forceCurry ? curry(result, 1) : function() {
- return func.apply(this, arguments);
- };
- }
- result.convert = createConverter(name, func);
- if (mapping.placeholder[name]) {
- setPlaceholder = true;
- result.placeholder = func.placeholder = placeholder;
- }
- return result;
- }
-
- /*--------------------------------------------------------------------------*/
-
- if (!isObj) {
- return wrap(name, func);
- }
- var _ = func;
-
- // Convert methods by ary cap.
- var pairs = [];
- each(aryMethodKeys, function(aryKey) {
- each(mapping.aryMethod[aryKey], function(key) {
- var func = _[mapping.remap[key] || key];
- if (func) {
- pairs.push([key, wrap(key, func)]);
- }
- });
- });
-
- // Convert remaining methods.
- each(keys(_), function(key) {
- var func = _[key];
- if (typeof func == 'function') {
- var length = pairs.length;
- while (length--) {
- if (pairs[length][0] == key) {
- return;
- }
- }
- func.convert = createConverter(key, func);
- pairs.push([key, func]);
- }
- });
-
- // Assign to `_` leaving `_.prototype` unchanged to allow chaining.
- each(pairs, function(pair) {
- _[pair[0]] = pair[1];
- });
-
- _.convert = convertLib;
- if (setPlaceholder) {
- _.placeholder = placeholder;
- }
- // Assign aliases.
- each(keys(_), function(key) {
- each(mapping.realToAlias[key] || [], function(alias) {
- _[alias] = _[key];
- });
- });
-
- return _;
-}
-
-module.exports = baseConvert;
diff --git a/ecomp-portal-FE/client/bower_components/lodash/fp/_convertBrowser.js b/ecomp-portal-FE/client/bower_components/lodash/fp/_convertBrowser.js
deleted file mode 100644
index 1874a542..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/fp/_convertBrowser.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseConvert = require('./_baseConvert');
-
-/**
- * Converts `lodash` to an immutable auto-curried iteratee-first data-last
- * version with conversion `options` applied.
- *
- * @param {Function} lodash The lodash function to convert.
- * @param {Object} [options] The options object. See `baseConvert` for more details.
- * @returns {Function} Returns the converted `lodash`.
- */
-function browserConvert(lodash, options) {
- return baseConvert(lodash, lodash, options);
-}
-
-if (typeof _ == 'function') {
- _ = browserConvert(_.runInContext());
-}
-module.exports = browserConvert;
diff --git a/ecomp-portal-FE/client/bower_components/lodash/fp/_mapping.js b/ecomp-portal-FE/client/bower_components/lodash/fp/_mapping.js
deleted file mode 100644
index a30c5dee..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/fp/_mapping.js
+++ /dev/null
@@ -1,309 +0,0 @@
-/** Used to map aliases to their real names. */
-exports.aliasToReal = {
-
- // Lodash aliases.
- 'each': 'forEach',
- 'eachRight': 'forEachRight',
- 'entries': 'toPairs',
- 'entriesIn': 'toPairsIn',
- 'extend': 'assignIn',
- 'extendWith': 'assignInWith',
- 'first': 'head',
-
- // Ramda aliases.
- '__': 'placeholder',
- 'all': 'every',
- 'allPass': 'overEvery',
- 'always': 'constant',
- 'any': 'some',
- 'anyPass': 'overSome',
- 'apply': 'spread',
- 'assoc': 'set',
- 'assocPath': 'set',
- 'complement': 'negate',
- 'compose': 'flowRight',
- 'contains': 'includes',
- 'dissoc': 'unset',
- 'dissocPath': 'unset',
- 'equals': 'isEqual',
- 'identical': 'eq',
- 'init': 'initial',
- 'invertObj': 'invert',
- 'juxt': 'over',
- 'omitAll': 'omit',
- 'nAry': 'ary',
- 'path': 'get',
- 'pathEq': 'matchesProperty',
- 'pathOr': 'getOr',
- 'paths': 'at',
- 'pickAll': 'pick',
- 'pipe': 'flow',
- 'pluck': 'map',
- 'prop': 'get',
- 'propEq': 'matchesProperty',
- 'propOr': 'getOr',
- 'props': 'at',
- 'unapply': 'rest',
- 'unnest': 'flatten',
- 'useWith': 'overArgs',
- 'whereEq': 'filter',
- 'zipObj': 'zipObject'
-};
-
-/** Used to map ary to method names. */
-exports.aryMethod = {
- '1': [
- 'attempt', 'castArray', 'ceil', 'create', 'curry', 'curryRight', 'floor',
- 'flow', 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method',
- 'methodOf', 'mixin', 'over', 'overEvery', 'overSome', 'rest', 'reverse',
- 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
- 'uniqueId', 'words'
- ],
- '2': [
- 'add', 'after', 'ary', 'assign', 'assignIn', 'at', 'before', 'bind', 'bindAll',
- 'bindKey', 'chunk', 'cloneDeepWith', 'cloneWith', 'concat', 'countBy', 'curryN',
- 'curryRightN', 'debounce', 'defaults', 'defaultsDeep', 'delay', 'difference',
- 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith',
- 'eq', 'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast',
- 'findLastIndex', 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth',
- 'forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight',
- 'get', 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf',
- 'intersection', 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch',
- 'join', 'keyBy', 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues',
- 'matchesProperty', 'maxBy', 'meanBy', 'merge', 'minBy', 'multiply', 'nth',
- 'omit', 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt',
- 'partial', 'partialRight', 'partition', 'pick', 'pickBy', 'pull', 'pullAll',
- 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
- 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
- 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
- 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
- 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
- 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
- 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
- 'zipObjectDeep'
- ],
- '3': [
- 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
- 'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
- 'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
- 'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
- 'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
- 'padCharsStart', 'pullAllBy', 'pullAllWith', 'reduce', 'reduceRight', 'replace',
- 'set', 'slice', 'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy',
- 'unionWith', 'update', 'xorBy', 'xorWith', 'zipWith'
- ],
- '4': [
- 'fill', 'setWith', 'updateWith'
- ]
-};
-
-/** Used to map ary to rearg configs. */
-exports.aryRearg = {
- '2': [1, 0],
- '3': [2, 0, 1],
- '4': [3, 2, 0, 1]
-};
-
-/** Used to map method names to their iteratee ary. */
-exports.iterateeAry = {
- 'dropRightWhile': 1,
- 'dropWhile': 1,
- 'every': 1,
- 'filter': 1,
- 'find': 1,
- 'findFrom': 1,
- 'findIndex': 1,
- 'findIndexFrom': 1,
- 'findKey': 1,
- 'findLast': 1,
- 'findLastFrom': 1,
- 'findLastIndex': 1,
- 'findLastIndexFrom': 1,
- 'findLastKey': 1,
- 'flatMap': 1,
- 'flatMapDeep': 1,
- 'flatMapDepth': 1,
- 'forEach': 1,
- 'forEachRight': 1,
- 'forIn': 1,
- 'forInRight': 1,
- 'forOwn': 1,
- 'forOwnRight': 1,
- 'map': 1,
- 'mapKeys': 1,
- 'mapValues': 1,
- 'partition': 1,
- 'reduce': 2,
- 'reduceRight': 2,
- 'reject': 1,
- 'remove': 1,
- 'some': 1,
- 'takeRightWhile': 1,
- 'takeWhile': 1,
- 'times': 1,
- 'transform': 2
-};
-
-/** Used to map method names to iteratee rearg configs. */
-exports.iterateeRearg = {
- 'mapKeys': [1]
-};
-
-/** Used to map method names to rearg configs. */
-exports.methodRearg = {
- 'assignInWith': [1, 2, 0],
- 'assignWith': [1, 2, 0],
- 'differenceBy': [1, 2, 0],
- 'differenceWith': [1, 2, 0],
- 'getOr': [2, 1, 0],
- 'intersectionBy': [1, 2, 0],
- 'intersectionWith': [1, 2, 0],
- 'isEqualWith': [1, 2, 0],
- 'isMatchWith': [2, 1, 0],
- 'mergeWith': [1, 2, 0],
- 'padChars': [2, 1, 0],
- 'padCharsEnd': [2, 1, 0],
- 'padCharsStart': [2, 1, 0],
- 'pullAllBy': [2, 1, 0],
- 'pullAllWith': [2, 1, 0],
- 'setWith': [3, 1, 2, 0],
- 'sortedIndexBy': [2, 1, 0],
- 'sortedLastIndexBy': [2, 1, 0],
- 'unionBy': [1, 2, 0],
- 'unionWith': [1, 2, 0],
- 'updateWith': [3, 1, 2, 0],
- 'xorBy': [1, 2, 0],
- 'xorWith': [1, 2, 0],
- 'zipWith': [1, 2, 0]
-};
-
-/** Used to map method names to spread configs. */
-exports.methodSpread = {
- 'invokeArgs': 2,
- 'invokeArgsMap': 2,
- 'partial': 1,
- 'partialRight': 1,
- 'without': 1
-};
-
-/** Used to identify methods which mutate arrays or objects. */
-exports.mutate = {
- 'array': {
- 'fill': true,
- 'pull': true,
- 'pullAll': true,
- 'pullAllBy': true,
- 'pullAllWith': true,
- 'pullAt': true,
- 'remove': true,
- 'reverse': true
- },
- 'object': {
- 'assign': true,
- 'assignIn': true,
- 'assignInWith': true,
- 'assignWith': true,
- 'defaults': true,
- 'defaultsDeep': true,
- 'merge': true,
- 'mergeWith': true
- },
- 'set': {
- 'set': true,
- 'setWith': true,
- 'unset': true,
- 'update': true,
- 'updateWith': true
- }
-};
-
-/** Used to track methods with placeholder support */
-exports.placeholder = {
- 'bind': true,
- 'bindKey': true,
- 'curry': true,
- 'curryRight': true,
- 'partial': true,
- 'partialRight': true
-};
-
-/** Used to map real names to their aliases. */
-exports.realToAlias = (function() {
- var hasOwnProperty = Object.prototype.hasOwnProperty,
- object = exports.aliasToReal,
- result = {};
-
- for (var key in object) {
- var value = object[key];
- if (hasOwnProperty.call(result, value)) {
- result[value].push(key);
- } else {
- result[value] = [key];
- }
- }
- return result;
-}());
-
-/** Used to map method names to other names. */
-exports.remap = {
- 'curryN': 'curry',
- 'curryRightN': 'curryRight',
- 'findFrom': 'find',
- 'findIndexFrom': 'findIndex',
- 'findLastFrom': 'findLast',
- 'findLastIndexFrom': 'findLastIndex',
- 'getOr': 'get',
- 'includesFrom': 'includes',
- 'indexOfFrom': 'indexOf',
- 'invokeArgs': 'invoke',
- 'invokeArgsMap': 'invokeMap',
- 'lastIndexOfFrom': 'lastIndexOf',
- 'padChars': 'pad',
- 'padCharsEnd': 'padEnd',
- 'padCharsStart': 'padStart',
- 'restFrom': 'rest',
- 'spreadFrom': 'spread',
- 'trimChars': 'trim',
- 'trimCharsEnd': 'trimEnd',
- 'trimCharsStart': 'trimStart'
-};
-
-/** Used to track methods that skip fixing their arity. */
-exports.skipFixed = {
- 'castArray': true,
- 'flow': true,
- 'flowRight': true,
- 'iteratee': true,
- 'mixin': true,
- 'runInContext': true
-};
-
-/** Used to track methods that skip rearranging arguments. */
-exports.skipRearg = {
- 'add': true,
- 'assign': true,
- 'assignIn': true,
- 'bind': true,
- 'bindKey': true,
- 'concat': true,
- 'difference': true,
- 'divide': true,
- 'eq': true,
- 'gt': true,
- 'gte': true,
- 'isEqual': true,
- 'lt': true,
- 'lte': true,
- 'matchesProperty': true,
- 'merge': true,
- 'multiply': true,
- 'overArgs': true,
- 'partial': true,
- 'partialRight': true,
- 'random': true,
- 'range': true,
- 'rangeRight': true,
- 'subtract': true,
- 'zip': true,
- 'zipObject': true
-};
diff --git a/ecomp-portal-FE/client/bower_components/lodash/fp/placeholder.js b/ecomp-portal-FE/client/bower_components/lodash/fp/placeholder.js
deleted file mode 100644
index 1ce17393..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/fp/placeholder.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * The default argument placeholder value for methods.
- *
- * @type {Object}
- */
-module.exports = {};
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/file.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/file.js
deleted file mode 100644
index 9f9016fb..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/file.js
+++ /dev/null
@@ -1,71 +0,0 @@
-'use strict';
-
-var _ = require('lodash'),
- fs = require('fs-extra'),
- glob = require('glob'),
- path = require('path');
-
-var minify = require('../common/minify.js');
-
-/*----------------------------------------------------------------------------*/
-
-/**
- * Creates a [fs.copy](https://github.com/jprichardson/node-fs-extra#copy)
- * function with `srcPath` and `destPath` partially applied.
- *
- * @memberOf file
- * @param {string} srcPath The path of the file to copy.
- * @param {string} destPath The path to copy the file to.
- * @returns {Function} Returns the partially applied function.
- */
-function copy(srcPath, destPath) {
- return _.partial(fs.copy, srcPath, destPath);
-}
-
-/**
- * Creates an object of compiled template and base name pairs that match `pattern`.
- *
- * @memberOf file
- * @param {string} pattern The glob pattern to be match.
- * @returns {Object} Returns the object of compiled templates.
- */
-function globTemplate(pattern) {
- return _.transform(glob.sync(pattern), function(result, filePath) {
- var key = path.basename(filePath, path.extname(filePath));
- result[key] = _.template(fs.readFileSync(filePath, 'utf8'));
- }, {});
-}
-
-/**
- * Creates a `minify` function with `srcPath` and `destPath` partially applied.
- *
- * @memberOf file
- * @param {string} srcPath The path of the file to minify.
- * @param {string} destPath The path to write the file to.
- * @returns {Function} Returns the partially applied function.
- */
-function min(srcPath, destPath) {
- return _.partial(minify, srcPath, destPath);
-}
-
-/**
- * Creates a [fs.writeFile](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback)
- * function with `filePath` and `data` partially applied.
- *
- * @memberOf file
- * @param {string} destPath The path to write the file to.
- * @param {string} data The data to write to the file.
- * @returns {Function} Returns the partially applied function.
- */
-function write(destPath, data) {
- return _.partial(fs.writeFile, destPath, data);
-}
-
-/*----------------------------------------------------------------------------*/
-
-module.exports = {
- 'copy': copy,
- 'globTemplate': globTemplate,
- 'min': min,
- 'write': write
-};
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/mapping.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/mapping.js
deleted file mode 100644
index 332f5afd..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/mapping.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var _mapping = require('../../fp/_mapping'),
- util = require('./util'),
- Hash = util.Hash;
-
-/*----------------------------------------------------------------------------*/
-
-module.exports = new Hash(_mapping);
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/minify.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/minify.js
deleted file mode 100644
index 7a0082d3..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/minify.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-
-var _ = require('lodash'),
- fs = require('fs-extra'),
- uglify = require('uglify-js');
-
-var uglifyOptions = require('./uglify.options');
-
-/*----------------------------------------------------------------------------*/
-
-/**
- * Asynchronously minifies the file at `srcPath`, writes it to `destPath`, and
- * invokes `callback` upon completion. The callback is invoked with one argument:
- * (error).
- *
- * If unspecified, `destPath` is `srcPath` with an extension of `.min.js`. For
- * example, a `srcPath` of `path/to/foo.js` would have a `destPath` of `path/to/foo.min.js`.
- *
- * @param {string} srcPath The path of the file to minify.
- * @param {string} [destPath] The path to write the file to.
- * @param {Function} callback The function invoked upon completion.
- * @param {Object} [option] The UglifyJS options object.
- */
-function minify(srcPath, destPath, callback, options) {
- if (_.isFunction(destPath)) {
- if (_.isObject(callback)) {
- options = callback;
- }
- callback = destPath;
- destPath = undefined;
- }
- if (!destPath) {
- destPath = srcPath.replace(/(?=\.js$)/, '.min');
- }
- var output = uglify.minify(srcPath, _.defaults(options || {}, uglifyOptions));
- fs.writeFile(destPath, output.code, 'utf-8', callback);
-}
-
-module.exports = minify;
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/uglify.options.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/uglify.options.js
deleted file mode 100644
index af0ff436..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/uglify.options.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-/**
- * The UglifyJS options object for
- * [compress](https://github.com/mishoo/UglifyJS2#compressor-options),
- * [mangle](https://github.com/mishoo/UglifyJS2#mangler-options), and
- * [output](https://github.com/mishoo/UglifyJS2#beautifier-options) options.
- */
-module.exports = {
- 'compress': {
- 'pure_getters': true,
- 'unsafe': true,
- 'warnings': false
- },
- 'mangle': {
- 'except': ['define']
- },
- 'output': {
- 'ascii_only': true,
- 'comments': /^!|@cc_on|@license|@preserve/i,
- 'max_line_len': 500
- }
-};
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/util.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/util.js
deleted file mode 100644
index 64451862..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/util.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-
-var _ = require('lodash');
-
-/*----------------------------------------------------------------------------*/
-
-/**
- * Creates a hash object. If a `properties` object is provided, its own
- * enumerable properties are assigned to the created object.
- *
- * @memberOf util
- * @param {Object} [properties] The properties to assign to the object.
- * @returns {Object} Returns the new hash object.
- */
-function Hash(properties) {
- return _.transform(properties, function(result, value, key) {
- result[key] = (_.isPlainObject(value) && !(value instanceof Hash))
- ? new Hash(value)
- : value;
- }, this);
-}
-
-Hash.prototype = Object.create(null);
-
-module.exports = {
- 'Hash': Hash
-};
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-dist.js b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-dist.js
deleted file mode 100644
index bad62d2e..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-dist.js
+++ /dev/null
@@ -1,55 +0,0 @@
-'use strict';
-
-var _ = require('lodash'),
- async = require('async'),
- path = require('path'),
- webpack = require('webpack');
-
-var file = require('../common/file');
-
-var basePath = path.join(__dirname, '..', '..'),
- distPath = path.join(basePath, 'dist'),
- fpPath = path.join(basePath, 'fp'),
- filename = 'lodash.fp.js';
-
-var fpConfig = {
- 'entry': path.join(fpPath, '_convertBrowser.js'),
- 'output': {
- 'path': distPath,
- 'filename': filename,
- 'library': 'fp',
- 'libraryTarget': 'umd'
- },
- 'plugins': [
- new webpack.optimize.OccurenceOrderPlugin,
- new webpack.optimize.DedupePlugin
- ]
-};
-
-var mappingConfig = {
- 'entry': path.join(fpPath, '_mapping.js'),
- 'output': {
- 'path': distPath,
- 'filename': 'mapping.fp.js',
- 'library': 'mapping',
- 'libraryTarget': 'umd'
- }
-};
-
-/*----------------------------------------------------------------------------*/
-
-function onComplete(error) {
- if (error) {
- throw error;
- }
-}
-
-function build() {
- async.series([
- _.partial(webpack, mappingConfig),
- _.partial(webpack, fpConfig),
- file.min(path.join(distPath, filename))
- ], onComplete);
-}
-
-build();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-doc.js b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-doc.js
deleted file mode 100644
index 02800bcf..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-doc.js
+++ /dev/null
@@ -1,65 +0,0 @@
-'use strict';
-
-var _ = require('lodash'),
- fs = require('fs-extra'),
- path = require('path');
-
-var file = require('../common/file'),
- mapping = require('../common/mapping');
-
-var templatePath = path.join(__dirname, 'template/doc'),
- template = file.globTemplate(path.join(templatePath, '*.jst'));
-
-var argNames = ['a', 'b', 'c', 'd'];
-
-var templateData = {
- 'mapping': mapping,
- 'toArgOrder': toArgOrder,
- 'toFuncList': toFuncList
-};
-
-function toArgOrder(array) {
- var reordered = [];
- _.each(array, function(newIndex, index) {
- reordered[newIndex] = argNames[index];
- });
- return '`(' + reordered.join(', ') + ')`';
-}
-
-function toFuncList(array) {
- var chunks = _.chunk(array.slice().sort(), 5),
- lastChunk = _.last(chunks),
- last = lastChunk ? lastChunk.pop() : undefined;
-
- chunks = _.reject(chunks, _.isEmpty);
- lastChunk = _.last(chunks);
-
- var result = '`' + _.map(chunks, function(chunk) {
- return chunk.join('`, `') + '`';
- }).join(',\n`');
-
- if (last == null) {
- return result;
- }
- if (_.size(chunks) > 1 || _.size(lastChunk) > 1) {
- result += ',';
- }
- result += ' &';
- result += _.size(lastChunk) < 5 ? ' ' : '\n';
- return result + '`' + last + '`';
-}
-
-/*----------------------------------------------------------------------------*/
-
-function onComplete(error) {
- if (error) {
- throw error;
- }
-}
-
-function build(target) {
- target = path.resolve(target);
- fs.writeFile(target, template.wiki(templateData), onComplete);
-}
-
-build(_.last(process.argv));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-modules.js b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-modules.js
deleted file mode 100644
index 43902e01..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-modules.js
+++ /dev/null
@@ -1,120 +0,0 @@
-'use strict';
-
-var _ = require('lodash'),
- async = require('async'),
- glob = require('glob'),
- path = require('path');
-
-var file = require('../common/file'),
- mapping = require('../common/mapping');
-
-var templatePath = path.join(__dirname, 'template/modules'),
- template = file.globTemplate(path.join(templatePath, '*.jst'));
-
-var aryMethods = _.union(
- mapping.aryMethod[1],
- mapping.aryMethod[2],
- mapping.aryMethod[3],
- mapping.aryMethod[4]
-);
-
-var categories = [
- 'array',
- 'collection',
- 'date',
- 'function',
- 'lang',
- 'math',
- 'number',
- 'object',
- 'seq',
- 'string',
- 'util'
-];
-
-var ignored = [
- '_*.js',
- 'core.js',
- 'core.min.js',
- 'fp.js',
- 'index.js',
- 'lodash.js',
- 'lodash.min.js'
-];
-
-function isAlias(funcName) {
- return _.has(mapping.aliasToReal, funcName);
-}
-
-function isCategory(funcName) {
- return _.includes(categories, funcName);
-}
-
-function isThru(funcName) {
- return !_.includes(aryMethods, funcName);
-}
-
-function getTemplate(moduleName) {
- var data = {
- 'name': _.result(mapping.aliasToReal, moduleName, moduleName),
- 'mapping': mapping
- };
-
- if (isAlias(moduleName)) {
- return template.alias(data);
- }
- if (isCategory(moduleName)) {
- return template.category(data);
- }
- if (isThru(moduleName)) {
- return template.thru(data);
- }
- return template.module(data);
-}
-
-/*----------------------------------------------------------------------------*/
-
-function onComplete(error) {
- if (error) {
- throw error;
- }
-}
-
-function build(target) {
- target = path.resolve(target);
-
- var fpPath = path.join(target, 'fp');
-
- // Glob existing lodash module paths.
- var modulePaths = glob.sync(path.join(target, '*.js'), {
- 'nodir': true,
- 'ignore': ignored.map(function(filename) {
- return path.join(target, filename);
- })
- });
-
- // Add FP alias and remapped module paths.
- _.each([mapping.aliasToReal, mapping.remap], function(data) {
- _.forOwn(data, function(realName, alias) {
- var modulePath = path.join(target, alias + '.js');
- if (!_.includes(modulePaths, modulePath)) {
- modulePaths.push(modulePath);
- }
- });
- });
-
- var actions = modulePaths.map(function(modulePath) {
- var moduleName = path.basename(modulePath, '.js');
- return file.write(path.join(fpPath, moduleName + '.js'), getTemplate(moduleName));
- });
-
- actions.unshift(file.copy(path.join(__dirname, '../../fp'), fpPath));
- actions.push(file.write(path.join(fpPath, '_falseOptions.js'), template._falseOptions()));
- actions.push(file.write(path.join(fpPath, '_util.js'), template._util()));
- actions.push(file.write(path.join(target, 'fp.js'), template.fp()));
- actions.push(file.write(path.join(fpPath, 'convert.js'), template.convert()));
-
- async.series(actions, onComplete);
-}
-
-build(_.last(process.argv));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/doc/wiki.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/doc/wiki.jst
deleted file mode 100644
index 7a429ab1..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/doc/wiki.jst
+++ /dev/null
@@ -1,227 +0,0 @@
-## lodash/fp
-
-The `lodash/fp` module promotes a more
-[functional programming](https://en.wikipedia.org/wiki/Functional_programming)
-(FP) friendly style by exporting an instance of `lodash` with its methods wrapped
-to produce immutable auto-curried iteratee-first data-last methods.
-
-## Installation
-
-In a browser:
-```html
-<script src='path/to/lodash.js'></script>
-<script src='path/to/lodash.fp.js'></script>
-<script>
-// Loading `lodash.fp.js` converts `_` to its fp variant.
-_.defaults({ 'a': 2, 'b': 2 })({ 'a': 1 });
-// → { 'a: 1, 'b': 2 }
-
-// Use `noConflict` to restore the pre-fp variant.
-var fp = _.noConflict();
-
-_.defaults({ 'a': 1 }, { 'a': 2, 'b': 2 });
-// → { 'a: 1, 'b': 2 }
-fp.defaults({ 'a': 2, 'b': 2 })({ 'a': 1 });
-// → { 'a: 1, 'b': 2 }
-</script>
-```
-
-In Node.js:
-```js
-// Load the fp build.
-var fp = require('lodash/fp');
-
-// Load a method category.
-var object = require('lodash/fp/object');
-
-// Load a single method for smaller builds with browserify/rollup/webpack.
-var extend = require('lodash/fp/extend');
-```
-
-## Mapping
-
-Immutable auto-curried iteratee-first data-last methods sound great, but what
-does that really mean for each method? Below is a breakdown of the mapping used
-to convert each method.
-
-#### Capped Iteratee Arguments
-
-Iteratee arguments are capped to avoid gotchas with variadic iteratees.
-```js
-// The `lodash/map` iteratee receives three arguments:
-// (value, index|key, collection)
-_.map(['6', '8', '10'], parseInt);
-// → [6, NaN, 2]
-
-// The `lodash/fp/map` iteratee is capped at one argument:
-// (value)
-fp.map(parseInt)(['6', '8', '10']);
-// → [6, 8, 10]
-```
-
-Methods that cap iteratees to one argument:<br>
-<%= toFuncList(_.keys(_.pickBy(mapping.iterateeAry, _.partial(_.eq, _, 1)))) %>
-
-Methods that cap iteratees to two arguments:<br>
-<%= toFuncList(_.keys(_.pickBy(mapping.iterateeAry, _.partial(_.eq, _, 2)))) %>
-
-The iteratee of `mapKeys` is invoked with one argument: (key)
-
-#### Fixed Arity
-
-Methods have fixed arities to support auto-currying.
-```js
-// `lodash/padStart` accepts an optional `chars` param.
-_.padStart('a', 3, '-')
-// → '--a'
-
-// `lodash/fp/padStart` does not.
-fp.padStart(3)('a');
-// → ' a'
-fp.padCharsStart('-')(3)('a');
-// → '--a'
-```
-
-Methods with a fixed arity of one:<br>
-<%= toFuncList(_.difference(mapping.aryMethod[1], _.keys(mapping.skipFixed))) %>
-
-Methods with a fixed arity of two:<br>
-<%= toFuncList(_.difference(mapping.aryMethod[2], _.keys(mapping.skipFixed))) %>
-
-Methods with a fixed arity of three:<br>
-<%= toFuncList(_.difference(mapping.aryMethod[3], _.keys(mapping.skipFixed))) %>
-
-Methods with a fixed arity of four:<br>
-<%= toFuncList(_.difference(mapping.aryMethod[4], _.keys(mapping.skipFixed))) %>
-
-#### Rearranged Arguments
-
-Method arguments are rearranged to make composition easier.
-```js
-// `lodash/filter` is data-first iteratee-last:
-// (collection, iteratee)
-var compact = _.partial(_.filter, _, Boolean);
-compact(['a', null, 'c']);
-// → ['a', 'c']
-
-// `lodash/fp/filter` is iteratee-first data-last:
-// (iteratee, collection)
-var compact = fp.filter(Boolean);
-compact(['a', null, 'c']);
-// → ['a', 'c']
-```
-
-##### Most methods follow these rules
-
-A fixed arity of two has an argument order of:<br>
-<%= toArgOrder(mapping.aryRearg[2]) %>
-
-A fixed arity of three has an argument order of:<br>
-<%= toArgOrder(mapping.aryRearg[3]) %>
-
-A fixed arity of four has an argument order of:<br>
-<%= toArgOrder(mapping.aryRearg[4]) %>
-
-##### Exceptions to the rules
-
-Methods that accept an array of arguments as their second parameter:<br>
-<%= toFuncList(_.keys(mapping.methodSpread)) %>
-
-Methods with unchanged argument orders:<br>
-<%= toFuncList(_.keys(mapping.skipRearg)) %>
-
-Methods with custom argument orders:<br>
-<%= _.map(_.keys(mapping.methodRearg), function(methodName) {
- var orders = mapping.methodRearg[methodName];
- return ' * `_.' + methodName + '` has an order of ' + toArgOrder(orders);
-}).join('\n') %>
-
-#### New Methods
-
-Not all variadic methods have corresponding new method variants. Feel free to
-[request](https://github.com/lodash/lodash/blob/master/.github/CONTRIBUTING.md#feature-requests)
-any additions.
-
-Methods created to accommodate Lodash’s variadic methods:<br>
-<%= toFuncList(_.keys(mapping.remap)) %>
-
-#### Aliases
-
-There are <%= _.size(mapping.aliasToReal) %> method aliases:<br>
-<%= _.map(_.keys(mapping.aliasToReal).sort(), function(alias) {
- var realName = mapping.aliasToReal[alias];
- return ' * `_.' + alias + '` is an alias of `_.' + realName + '`';
-}).join('\n') %>
-
-## Placeholders
-
-The placeholder argument, which defaults to `_`, may be used to fill in method
-arguments in a different order. Placeholders are filled by the first available
-arguments of the curried returned function.
-```js
-// The equivalent of `2 > 5`.
-_.gt(2)(5);
-// → false
-
-// The equivalent of `_.gt(5, 2)` or `5 > 2`.
-_.gt(_, 2)(5);
-// → true
-```
-
-## Chaining
-
-The `lodash/fp` module **does not** convert chain sequence methods. See
-[Izaak Schroeder’s article](https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba)
-on using functional composition as an alternative to method chaining.
-
-## Convert
-
-Although `lodash/fp` & its method modules come pre-converted, there are times
-when you may want to customize the conversion. That’s when the `convert` method
-comes in handy.
-```js
-// Every option is `true` by default.
-var _fp = fp.convert({
- // Specify capping iteratee arguments.
- 'cap': true,
- // Specify currying.
- 'curry': true,
- // Specify fixed arity.
- 'fixed': true,
- // Specify immutable operations.
- 'immutable': true,
- // Specify rearranging arguments.
- 'rearg': true
-});
-
-// The `convert` method is available on each method too.
-var mapValuesWithKey = fp.mapValues.convert({ 'cap': false });
-
-// Here’s an example of disabling iteratee argument caps to access the `key` param.
-mapValuesWithKey(function(value, key) {
- return key == 'a' ? -1 : value;
-})({ 'a': 1, 'b': 1 });
-// => { 'a': -1, 'b': 1 }
-```
-
-Manual conversions are also possible with the `convert` module.
-```js
-var convert = require('lodash/fp/convert');
-
-// Convert by name.
-var assign = convert('assign', require('lodash.assign'));
-
-// Convert by object.
-var fp = convert({
- 'assign': require('lodash.assign'),
- 'chunk': require('lodash.chunk')
-});
-
-// Convert by `lodash` instance.
-var fp = convert(lodash.runInContext());
-```
-
-## Tooling
-
-Use [eslint-plugin-lodash-fp](https://www.npmjs.com/package/eslint-plugin-lodash-fp)
-to help use `lodash/fp` more efficiently.
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_falseOptions.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_falseOptions.jst
deleted file mode 100644
index 773235e3..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_falseOptions.jst
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = {
- 'cap': false,
- 'curry': false,
- 'fixed': false,
- 'immutable': false,
- 'rearg': false
-};
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_util.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_util.jst
deleted file mode 100644
index d450396f..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_util.jst
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = {
- 'ary': require('../ary'),
- 'assign': require('../_baseAssign'),
- 'clone': require('../clone'),
- 'curry': require('../curry'),
- 'forEach': require('../_arrayEach'),
- 'isArray': require('../isArray'),
- 'isFunction': require('../isFunction'),
- 'iteratee': require('../iteratee'),
- 'keys': require('../_baseKeys'),
- 'rearg': require('../rearg'),
- 'spread': require('../spread'),
- 'toPath': require('../toPath')
-};
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/alias.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/alias.jst
deleted file mode 100644
index 6d72710a..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/alias.jst
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./<%= name %>');
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/category.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/category.jst
deleted file mode 100644
index 62c2db8a..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/category.jst
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../<%= name %>'));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/convert.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/convert.jst
deleted file mode 100644
index 4795dc42..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/convert.jst
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseConvert = require('./_baseConvert'),
- util = require('./_util');
-
-/**
- * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last
- * version with conversion `options` applied. If `name` is an object its methods
- * will be converted.
- *
- * @param {string} name The name of the function to wrap.
- * @param {Function} [func] The function to wrap.
- * @param {Object} [options] The options object. See `baseConvert` for more details.
- * @returns {Function|Object} Returns the converted function or object.
- */
-function convert(name, func, options) {
- return baseConvert(util, name, func, options);
-}
-
-module.exports = convert;
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/fp.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/fp.jst
deleted file mode 100644
index e372dbbd..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/fp.jst
+++ /dev/null
@@ -1,2 +0,0 @@
-var _ = require('./lodash.min').runInContext();
-module.exports = require('./fp/_baseConvert')(_, _);
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/module.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/module.jst
deleted file mode 100644
index 289bd2b6..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/module.jst
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('<%= name %>', require('../<%= _.result(mapping.remap, name, name) %>'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/thru.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/thru.jst
deleted file mode 100644
index 5bc1a7b0..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/thru.jst
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('<%= name %>', require('../<%= _.result(mapping.remap, name, name) %>'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js b/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js
deleted file mode 100644
index 14b3fd3c..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js
+++ /dev/null
@@ -1,30 +0,0 @@
-'use strict';
-
-var async = require('async'),
- path = require('path');
-
-var file = require('../common/file');
-
-var basePath = path.join(__dirname, '..', '..'),
- distPath = path.join(basePath, 'dist'),
- filename = 'lodash.js';
-
-var baseLodash = path.join(basePath, filename),
- distLodash = path.join(distPath, filename);
-
-/*----------------------------------------------------------------------------*/
-
-function onComplete(error) {
- if (error) {
- throw error;
- }
-}
-
-function build() {
- async.series([
- file.copy(baseLodash, distLodash),
- file.min(distLodash)
- ], onComplete);
-}
-
-build();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-doc.js b/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-doc.js
deleted file mode 100644
index 6c5f22b5..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-doc.js
+++ /dev/null
@@ -1,55 +0,0 @@
-'use strict';
-
-var _ = require('lodash'),
- docdown = require('docdown'),
- fs = require('fs-extra'),
- path = require('path');
-
-var basePath = path.join(__dirname, '..', '..'),
- docPath = path.join(basePath, 'doc'),
- readmePath = path.join(docPath, 'README.md');
-
-var pkg = require('../../package.json'),
- version = pkg.version;
-
-var config = {
- 'base': {
- 'entryLinks': [
- '<% if (name == "templateSettings" || !/^(?:methods|properties|seq)$/i.test(category)) {' +
- 'print("[&#x24C3;](https://www.npmjs.com/package/lodash." + name.toLowerCase() + " \\"See the npm package\\")")' +
- '} %>'
- ],
- 'path': path.join(basePath, 'lodash.js'),
- 'title': '<a href="https://lodash.com/">lodash</a> <span>v' + version + '</span>',
- 'toc': 'categories',
- 'url': 'https://github.com/lodash/lodash/blob/' + version + '/lodash.js'
- },
- 'github': {
- 'hash': 'github'
- },
- 'site': {
- 'tocLink': '#docs'
- }
-};
-
-function postprocess(string) {
- // Wrap symbol property identifiers in brackets.
- return string.replace(/\.(Symbol\.(?:[a-z]+[A-Z]?)+)/g, '[$1]');
-}
-
-/*----------------------------------------------------------------------------*/
-
-function onComplete(error) {
- if (error) {
- throw error;
- }
-}
-
-function build(type) {
- var options = _.defaults({}, config.base, config[type]),
- markdown = docdown(options);
-
- fs.writeFile(readmePath, postprocess(markdown), onComplete);
-}
-
-build(_.last(process.argv));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-modules.js b/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-modules.js
deleted file mode 100644
index 5d89e0dc..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-modules.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-
-var _ = require('lodash'),
- async = require('async'),
- path = require('path');
-
-var file = require('../common/file');
-
-var basePath = path.join(__dirname, '..', '..'),
- distPath = path.join(basePath, 'dist');
-
-var filePairs = [
- [path.join(distPath, 'lodash.core.js'), 'core.js'],
- [path.join(distPath, 'lodash.core.min.js'), 'core.min.js'],
- [path.join(distPath, 'lodash.min.js'), 'lodash.min.js']
-];
-
-/*----------------------------------------------------------------------------*/
-
-function onComplete(error) {
- if (error) {
- throw error;
- }
-}
-
-function build(target) {
- var actions = _.map(filePairs, function(pair) {
- return file.copy(pair[0], path.join(target, pair[1]));
- });
-
- async.series(actions, onComplete);
-}
-
-build(_.last(process.argv));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lodash.js b/ecomp-portal-FE/client/bower_components/lodash/lodash.js
deleted file mode 100644
index 5b5c703b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/lodash.js
+++ /dev/null
@@ -1,16404 +0,0 @@
-/**
- * @license
- * lodash <https://lodash.com/>
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
-;(function() {
-
- /** Used as a safe reference for `undefined` in pre-ES5 environments. */
- var undefined;
-
- /** Used as the semantic version number. */
- var VERSION = '4.13.1';
-
- /** Used as the size to enable large array optimizations. */
- var LARGE_ARRAY_SIZE = 200;
-
- /** Used as the `TypeError` message for "Functions" methods. */
- var FUNC_ERROR_TEXT = 'Expected a function';
-
- /** Used to stand-in for `undefined` hash values. */
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
- /** Used as the internal argument placeholder. */
- var PLACEHOLDER = '__lodash_placeholder__';
-
- /** Used to compose bitmasks for wrapper metadata. */
- var BIND_FLAG = 1,
- BIND_KEY_FLAG = 2,
- CURRY_BOUND_FLAG = 4,
- CURRY_FLAG = 8,
- CURRY_RIGHT_FLAG = 16,
- PARTIAL_FLAG = 32,
- PARTIAL_RIGHT_FLAG = 64,
- ARY_FLAG = 128,
- REARG_FLAG = 256,
- FLIP_FLAG = 512;
-
- /** Used to compose bitmasks for comparison styles. */
- var UNORDERED_COMPARE_FLAG = 1,
- PARTIAL_COMPARE_FLAG = 2;
-
- /** Used as default options for `_.truncate`. */
- var DEFAULT_TRUNC_LENGTH = 30,
- DEFAULT_TRUNC_OMISSION = '...';
-
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
- var HOT_COUNT = 150,
- HOT_SPAN = 16;
-
- /** Used to indicate the type of lazy iteratees. */
- var LAZY_FILTER_FLAG = 1,
- LAZY_MAP_FLAG = 2,
- LAZY_WHILE_FLAG = 3;
-
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0,
- MAX_SAFE_INTEGER = 9007199254740991,
- MAX_INTEGER = 1.7976931348623157e+308,
- NAN = 0 / 0;
-
- /** Used as references for the maximum length and index of an array. */
- var MAX_ARRAY_LENGTH = 4294967295,
- MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
- HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
-
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- promiseTag = '[object Promise]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]',
- weakMapTag = '[object WeakMap]',
- weakSetTag = '[object WeakSet]';
-
- var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
-
- /** Used to match empty string literals in compiled template source. */
- var reEmptyStringLeading = /\b__p \+= '';/g,
- reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
- reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
-
- /** Used to match HTML entities and HTML characters. */
- var reEscapedHtml = /&(?:amp|lt|gt|quot|#39|#96);/g,
- reUnescapedHtml = /[&<>"'`]/g,
- reHasEscapedHtml = RegExp(reEscapedHtml.source),
- reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
-
- /** Used to match template delimiters. */
- var reEscape = /<%-([\s\S]+?)%>/g,
- reEvaluate = /<%([\s\S]+?)%>/g,
- reInterpolate = /<%=([\s\S]+?)%>/g;
-
- /** Used to match property names within property paths. */
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/,
- rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g;
-
- /**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
- */
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
- reHasRegExpChar = RegExp(reRegExpChar.source);
-
- /** Used to match leading and trailing whitespace. */
- var reTrim = /^\s+|\s+$/g,
- reTrimStart = /^\s+/,
- reTrimEnd = /\s+$/;
-
- /** Used to match non-compound words composed of alphanumeric characters. */
- var reBasicWord = /[a-zA-Z0-9]+/g;
-
- /** Used to match backslashes in property paths. */
- var reEscapeChar = /\\(\\)?/g;
-
- /**
- * Used to match
- * [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components).
- */
- var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
-
- /** Used to match `RegExp` flags from their coerced string values. */
- var reFlags = /\w*$/;
-
- /** Used to detect hexadecimal string values. */
- var reHasHexPrefix = /^0x/i;
-
- /** Used to detect bad signed hexadecimal string values. */
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
-
- /** Used to detect binary string values. */
- var reIsBinary = /^0b[01]+$/i;
-
- /** Used to detect host constructors (Safari). */
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
-
- /** Used to detect octal string values. */
- var reIsOctal = /^0o[0-7]+$/i;
-
- /** Used to detect unsigned integer values. */
- var reIsUint = /^(?:0|[1-9]\d*)$/;
-
- /** Used to match latin-1 supplementary letters (excluding mathematical operators). */
- var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g;
-
- /** Used to ensure capturing order of template delimiters. */
- var reNoMatch = /($^)/;
-
- /** Used to match unescaped characters in compiled string literals. */
- var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
-
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
- rsComboSymbolsRange = '\\u20d0-\\u20f0',
- rsDingbatRange = '\\u2700-\\u27bf',
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- rsPunctuationRange = '\\u2000-\\u206f',
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- rsVarRange = '\\ufe0e\\ufe0f',
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
-
- /** Used to compose unicode capture groups. */
- var rsApos = "['\u2019]",
- rsAstral = '[' + rsAstralRange + ']',
- rsBreak = '[' + rsBreakRange + ']',
- rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
- rsDigits = '\\d+',
- rsDingbat = '[' + rsDingbatRange + ']',
- rsLower = '[' + rsLowerRange + ']',
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsUpper = '[' + rsUpperRange + ']',
- rsZWJ = '\\u200d';
-
- /** Used to compose unicode regexes. */
- var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
- rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
- rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
- rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
- reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
- /** Used to match apostrophes. */
- var reApos = RegExp(rsApos, 'g');
-
- /**
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
- */
- var reComboMark = RegExp(rsCombo, 'g');
-
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
- var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
- /** Used to match complex or compound words. */
- var reComplexWord = RegExp([
- rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
- rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
- rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
- rsUpper + '+' + rsOptUpperContr,
- rsDigits,
- rsEmoji
- ].join('|'), 'g');
-
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
- var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
-
- /** Used to detect strings that need a more robust regexp to match words. */
- var reHasComplexWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
-
- /** Used to assign default `context` object properties. */
- var contextProps = [
- 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
- 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
- 'Promise', 'Reflect', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError',
- 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
- '_', 'isFinite', 'parseInt', 'setTimeout'
- ];
-
- /** Used to make template sourceURLs easier to identify. */
- var templateCounter = -1;
-
- /** Used to identify `toStringTag` values of typed arrays. */
- var typedArrayTags = {};
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
- typedArrayTags[uint32Tag] = true;
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
- typedArrayTags[weakMapTag] = false;
-
- /** Used to identify `toStringTag` values supported by `_.clone`. */
- var cloneableTags = {};
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
- cloneableTags[boolTag] = cloneableTags[dateTag] =
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
- cloneableTags[numberTag] = cloneableTags[objectTag] =
- cloneableTags[regexpTag] = cloneableTags[setTag] =
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
- cloneableTags[errorTag] = cloneableTags[funcTag] =
- cloneableTags[weakMapTag] = false;
-
- /** Used to map latin-1 supplementary letters to basic latin letters. */
- var deburredLetters = {
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
- '\xc7': 'C', '\xe7': 'c',
- '\xd0': 'D', '\xf0': 'd',
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
- '\xcC': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
- '\xeC': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
- '\xd1': 'N', '\xf1': 'n',
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
- '\xc6': 'Ae', '\xe6': 'ae',
- '\xde': 'Th', '\xfe': 'th',
- '\xdf': 'ss'
- };
-
- /** Used to map characters to HTML entities. */
- var htmlEscapes = {
- '&': '&amp;',
- '<': '&lt;',
- '>': '&gt;',
- '"': '&quot;',
- "'": '&#39;',
- '`': '&#96;'
- };
-
- /** Used to map HTML entities to characters. */
- var htmlUnescapes = {
- '&amp;': '&',
- '&lt;': '<',
- '&gt;': '>',
- '&quot;': '"',
- '&#39;': "'",
- '&#96;': '`'
- };
-
- /** Used to escape characters for inclusion in compiled string literals. */
- var stringEscapes = {
- '\\': '\\',
- "'": "'",
- '\n': 'n',
- '\r': 'r',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- };
-
- /** Built-in method references without a dependency on `root`. */
- var freeParseFloat = parseFloat,
- freeParseInt = parseInt;
-
- /** Detect free variable `exports`. */
- var freeExports = typeof exports == 'object' && exports;
-
- /** Detect free variable `module`. */
- var freeModule = freeExports && typeof module == 'object' && module;
-
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = freeModule && freeModule.exports === freeExports;
-
- /** Detect free variable `global` from Node.js. */
- var freeGlobal = checkGlobal(typeof global == 'object' && global);
-
- /** Detect free variable `self`. */
- var freeSelf = checkGlobal(typeof self == 'object' && self);
-
- /** Detect `this` as the global object. */
- var thisGlobal = checkGlobal(typeof this == 'object' && this);
-
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || thisGlobal || Function('return this')();
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Adds the key-value `pair` to `map`.
- *
- * @private
- * @param {Object} map The map to modify.
- * @param {Array} pair The key-value pair to add.
- * @returns {Object} Returns `map`.
- */
- function addMapEntry(map, pair) {
- // Don't return `Map#set` because it doesn't return the map instance in IE 11.
- map.set(pair[0], pair[1]);
- return map;
- }
-
- /**
- * Adds `value` to `set`.
- *
- * @private
- * @param {Object} set The set to modify.
- * @param {*} value The value to add.
- * @returns {Object} Returns `set`.
- */
- function addSetEntry(set, value) {
- set.add(value);
- return set;
- }
-
- /**
- * A faster alternative to `Function#apply`, this function invokes `func`
- * with the `this` binding of `thisArg` and the arguments of `args`.
- *
- * @private
- * @param {Function} func The function to invoke.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} args The arguments to invoke `func` with.
- * @returns {*} Returns the result of `func`.
- */
- function apply(func, thisArg, args) {
- var length = args.length;
- switch (length) {
- case 0: return func.call(thisArg);
- case 1: return func.call(thisArg, args[0]);
- case 2: return func.call(thisArg, args[0], args[1]);
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
- }
- return func.apply(thisArg, args);
- }
-
- /**
- * A specialized version of `baseAggregator` for arrays.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
- function arrayAggregator(array, setter, iteratee, accumulator) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- var value = array[index];
- setter(accumulator, value, iteratee(value), array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.forEach` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
- function arrayEach(array, iteratee) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (iteratee(array[index], index, array) === false) {
- break;
- }
- }
- return array;
- }
-
- /**
- * A specialized version of `_.forEachRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
- function arrayEachRight(array, iteratee) {
- var length = array ? array.length : 0;
-
- while (length--) {
- if (iteratee(array[length], length, array) === false) {
- break;
- }
- }
- return array;
- }
-
- /**
- * A specialized version of `_.every` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- */
- function arrayEvery(array, predicate) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (!predicate(array[index], index, array)) {
- return false;
- }
- }
- return true;
- }
-
- /**
- * A specialized version of `_.filter` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function arrayFilter(array, predicate) {
- var index = -1,
- length = array ? array.length : 0,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result[resIndex++] = value;
- }
- }
- return result;
- }
-
- /**
- * A specialized version of `_.includes` for arrays without support for
- * specifying an index to search from.
- *
- * @private
- * @param {Array} [array] The array to search.
- * @param {*} target The value to search for.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
- function arrayIncludes(array, value) {
- var length = array ? array.length : 0;
- return !!length && baseIndexOf(array, value, 0) > -1;
- }
-
- /**
- * This function is like `arrayIncludes` except that it accepts a comparator.
- *
- * @private
- * @param {Array} [array] The array to search.
- * @param {*} target The value to search for.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
- function arrayIncludesWith(array, value, comparator) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (comparator(value, array[index])) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function arrayMap(array, iteratee) {
- var index = -1,
- length = array ? array.length : 0,
- result = Array(length);
-
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
- }
- return result;
- }
-
- /**
- * Appends the elements of `values` to `array`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
- */
- function arrayPush(array, values) {
- var index = -1,
- length = values.length,
- offset = array.length;
-
- while (++index < length) {
- array[offset + index] = values[index];
- }
- return array;
- }
-
- /**
- * A specialized version of `_.reduce` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as
- * the initial value.
- * @returns {*} Returns the accumulated value.
- */
- function arrayReduce(array, iteratee, accumulator, initAccum) {
- var index = -1,
- length = array ? array.length : 0;
-
- if (initAccum && length) {
- accumulator = array[++index];
- }
- while (++index < length) {
- accumulator = iteratee(accumulator, array[index], index, array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.reduceRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the last element of `array` as
- * the initial value.
- * @returns {*} Returns the accumulated value.
- */
- function arrayReduceRight(array, iteratee, accumulator, initAccum) {
- var length = array ? array.length : 0;
- if (initAccum && length) {
- accumulator = array[--length];
- }
- while (length--) {
- accumulator = iteratee(accumulator, array[length], length, array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.some` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function arraySome(array, predicate) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (predicate(array[index], index, array)) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * The base implementation of methods like `_.findKey` and `_.findLastKey`,
- * without support for iteratee shorthands, which iterates over `collection`
- * using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to search.
- * @param {Function} predicate The function invoked per iteration.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the found element or its key, else `undefined`.
- */
- function baseFindKey(collection, predicate, eachFunc) {
- var result;
- eachFunc(collection, function(value, key, collection) {
- if (predicate(value, key, collection)) {
- result = key;
- return false;
- }
- });
- return result;
- }
-
- /**
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {Function} predicate The function invoked per iteration.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (predicate(array[index], index, array)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseIndexOf(array, value, fromIndex) {
- if (value !== value) {
- return indexOfNaN(array, fromIndex);
- }
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (array[index] === value) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * This function is like `baseIndexOf` except that it accepts a comparator.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseIndexOfWith(array, value, fromIndex, comparator) {
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (comparator(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.mean` and `_.meanBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the mean.
- */
- function baseMean(array, iteratee) {
- var length = array ? array.length : 0;
- return length ? (baseSum(array, iteratee) / length) : NAN;
- }
-
- /**
- * The base implementation of `_.reduce` and `_.reduceRight`, without support
- * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of
- * `collection` as the initial value.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the accumulated value.
- */
- function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
- eachFunc(collection, function(value, index, collection) {
- accumulator = initAccum
- ? (initAccum = false, value)
- : iteratee(accumulator, value, index, collection);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.sortBy` which uses `comparer` to define the
- * sort order of `array` and replaces criteria objects with their corresponding
- * values.
- *
- * @private
- * @param {Array} array The array to sort.
- * @param {Function} comparer The function to define sort order.
- * @returns {Array} Returns `array`.
- */
- function baseSortBy(array, comparer) {
- var length = array.length;
-
- array.sort(comparer);
- while (length--) {
- array[length] = array[length].value;
- }
- return array;
- }
-
- /**
- * The base implementation of `_.sum` and `_.sumBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the sum.
- */
- function baseSum(array, iteratee) {
- var result,
- index = -1,
- length = array.length;
-
- while (++index < length) {
- var current = iteratee(array[index]);
- if (current !== undefined) {
- result = result === undefined ? current : (result + current);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.times` without support for iteratee shorthands
- * or max array length checks.
- *
- * @private
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- */
- function baseTimes(n, iteratee) {
- var index = -1,
- result = Array(n);
-
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
- }
-
- /**
- * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
- * of key-value pairs for `object` corresponding to the property names of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the key-value pairs.
- */
- function baseToPairs(object, props) {
- return arrayMap(props, function(key) {
- return [key, object[key]];
- });
- }
-
- /**
- * The base implementation of `_.unary` without support for storing wrapper metadata.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- */
- function baseUnary(func) {
- return function(value) {
- return func(value);
- };
- }
-
- /**
- * The base implementation of `_.values` and `_.valuesIn` which creates an
- * array of `object` property values corresponding to the property names
- * of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the array of property values.
- */
- function baseValues(object, props) {
- return arrayMap(props, function(key) {
- return object[key];
- });
- }
-
- /**
- * Checks if a cache value for `key` exists.
- *
- * @private
- * @param {Object} cache The cache to query.
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function cacheHas(cache, key) {
- return cache.has(key);
- }
-
- /**
- * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
- * that is not found in the character symbols.
- *
- * @private
- * @param {Array} strSymbols The string symbols to inspect.
- * @param {Array} chrSymbols The character symbols to find.
- * @returns {number} Returns the index of the first unmatched string symbol.
- */
- function charsStartIndex(strSymbols, chrSymbols) {
- var index = -1,
- length = strSymbols.length;
-
- while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
- return index;
- }
-
- /**
- * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
- * that is not found in the character symbols.
- *
- * @private
- * @param {Array} strSymbols The string symbols to inspect.
- * @param {Array} chrSymbols The character symbols to find.
- * @returns {number} Returns the index of the last unmatched string symbol.
- */
- function charsEndIndex(strSymbols, chrSymbols) {
- var index = strSymbols.length;
-
- while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
- return index;
- }
-
- /**
- * Checks if `value` is a global object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {null|Object} Returns `value` if it's a global object, else `null`.
- */
- function checkGlobal(value) {
- return (value && value.Object === Object) ? value : null;
- }
-
- /**
- * Gets the number of `placeholder` occurrences in `array`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} placeholder The placeholder to search for.
- * @returns {number} Returns the placeholder count.
- */
- function countHolders(array, placeholder) {
- var length = array.length,
- result = 0;
-
- while (length--) {
- if (array[length] === placeholder) {
- result++;
- }
- }
- return result;
- }
-
- /**
- * Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters.
- *
- * @private
- * @param {string} letter The matched letter to deburr.
- * @returns {string} Returns the deburred letter.
- */
- function deburrLetter(letter) {
- return deburredLetters[letter];
- }
-
- /**
- * Used by `_.escape` to convert characters to HTML entities.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
- function escapeHtmlChar(chr) {
- return htmlEscapes[chr];
- }
-
- /**
- * Used by `_.template` to escape characters for inclusion in compiled string literals.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
- function escapeStringChar(chr) {
- return '\\' + stringEscapes[chr];
- }
-
- /**
- * Gets the value at `key` of `object`.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
- function getValue(object, key) {
- return object == null ? undefined : object[key];
- }
-
- /**
- * Gets the index at which the first occurrence of `NaN` is found in `array`.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched `NaN`, else `-1`.
- */
- function indexOfNaN(array, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- var other = array[index];
- if (other !== other) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * Checks if `value` is a host object in IE < 9.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
- */
- function isHostObject(value) {
- // Many host objects are `Object` objects that can coerce to strings
- // despite having improperly defined `toString` methods.
- var result = false;
- if (value != null && typeof value.toString != 'function') {
- try {
- result = !!(value + '');
- } catch (e) {}
- }
- return result;
- }
-
- /**
- * Converts `iterator` to an array.
- *
- * @private
- * @param {Object} iterator The iterator to convert.
- * @returns {Array} Returns the converted array.
- */
- function iteratorToArray(iterator) {
- var data,
- result = [];
-
- while (!(data = iterator.next()).done) {
- result.push(data.value);
- }
- return result;
- }
-
- /**
- * Converts `map` to its key-value pairs.
- *
- * @private
- * @param {Object} map The map to convert.
- * @returns {Array} Returns the key-value pairs.
- */
- function mapToArray(map) {
- var index = -1,
- result = Array(map.size);
-
- map.forEach(function(value, key) {
- result[++index] = [key, value];
- });
- return result;
- }
-
- /**
- * Replaces all `placeholder` elements in `array` with an internal placeholder
- * and returns an array of their indexes.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {*} placeholder The placeholder to replace.
- * @returns {Array} Returns the new array of placeholder indexes.
- */
- function replaceHolders(array, placeholder) {
- var index = -1,
- length = array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (value === placeholder || value === PLACEHOLDER) {
- array[index] = PLACEHOLDER;
- result[resIndex++] = index;
- }
- }
- return result;
- }
-
- /**
- * Converts `set` to an array of its values.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the values.
- */
- function setToArray(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = value;
- });
- return result;
- }
-
- /**
- * Converts `set` to its value-value pairs.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the value-value pairs.
- */
- function setToPairs(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = [value, value];
- });
- return result;
- }
-
- /**
- * Gets the number of symbols in `string`.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {number} Returns the string size.
- */
- function stringSize(string) {
- if (!(string && reHasComplexSymbol.test(string))) {
- return string.length;
- }
- var result = reComplexSymbol.lastIndex = 0;
- while (reComplexSymbol.test(string)) {
- result++;
- }
- return result;
- }
-
- /**
- * Converts `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function stringToArray(string) {
- return string.match(reComplexSymbol);
- }
-
- /**
- * Used by `_.unescape` to convert HTML entities to characters.
- *
- * @private
- * @param {string} chr The matched character to unescape.
- * @returns {string} Returns the unescaped character.
- */
- function unescapeHtmlChar(chr) {
- return htmlUnescapes[chr];
- }
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Create a new pristine `lodash` function using the `context` object.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Util
- * @param {Object} [context=root] The context object.
- * @returns {Function} Returns a new `lodash` function.
- * @example
- *
- * _.mixin({ 'foo': _.constant('foo') });
- *
- * var lodash = _.runInContext();
- * lodash.mixin({ 'bar': lodash.constant('bar') });
- *
- * _.isFunction(_.foo);
- * // => true
- * _.isFunction(_.bar);
- * // => false
- *
- * lodash.isFunction(lodash.foo);
- * // => false
- * lodash.isFunction(lodash.bar);
- * // => true
- *
- * // Use `context` to stub `Date#getTime` use in `_.now`.
- * var stubbed = _.runInContext({
- * 'Date': function() {
- * return { 'getTime': stubGetTime };
- * }
- * });
- *
- * // Create a suped-up `defer` in Node.js.
- * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
- */
- function runInContext(context) {
- context = context ? _.defaults({}, context, _.pick(root, contextProps)) : root;
-
- /** Built-in constructor references. */
- var Date = context.Date,
- Error = context.Error,
- Math = context.Math,
- RegExp = context.RegExp,
- TypeError = context.TypeError;
-
- /** Used for built-in method references. */
- var arrayProto = context.Array.prototype,
- objectProto = context.Object.prototype,
- stringProto = context.String.prototype;
-
- /** Used to detect overreaching core-js shims. */
- var coreJsData = context['__core-js_shared__'];
-
- /** Used to detect methods masquerading as native. */
- var maskSrcKey = (function() {
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
- return uid ? ('Symbol(src)_1.' + uid) : '';
- }());
-
- /** Used to resolve the decompiled source of functions. */
- var funcToString = context.Function.prototype.toString;
-
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
-
- /** Used to generate unique IDs. */
- var idCounter = 0;
-
- /** Used to infer the `Object` constructor. */
- var objectCtorString = funcToString.call(Object);
-
- /**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
- * of values.
- */
- var objectToString = objectProto.toString;
-
- /** Used to restore the original `_` reference in `_.noConflict`. */
- var oldDash = root._;
-
- /** Used to detect if a method is native. */
- var reIsNative = RegExp('^' +
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
- );
-
- /** Built-in value references. */
- var Buffer = moduleExports ? context.Buffer : undefined,
- Reflect = context.Reflect,
- Symbol = context.Symbol,
- Uint8Array = context.Uint8Array,
- enumerate = Reflect ? Reflect.enumerate : undefined,
- getOwnPropertySymbols = Object.getOwnPropertySymbols,
- iteratorSymbol = typeof (iteratorSymbol = Symbol && Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined,
- objectCreate = Object.create,
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
- splice = arrayProto.splice;
-
- /** Built-in method references that are mockable. */
- var setTimeout = function(func, wait) { return context.setTimeout.call(root, func, wait); };
-
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeCeil = Math.ceil,
- nativeFloor = Math.floor,
- nativeGetPrototype = Object.getPrototypeOf,
- nativeIsFinite = context.isFinite,
- nativeJoin = arrayProto.join,
- nativeKeys = Object.keys,
- nativeMax = Math.max,
- nativeMin = Math.min,
- nativeParseInt = context.parseInt,
- nativeRandom = Math.random,
- nativeReplace = stringProto.replace,
- nativeReverse = arrayProto.reverse,
- nativeSplit = stringProto.split;
-
- /* Built-in method references that are verified to be native. */
- var DataView = getNative(context, 'DataView'),
- Map = getNative(context, 'Map'),
- Promise = getNative(context, 'Promise'),
- Set = getNative(context, 'Set'),
- WeakMap = getNative(context, 'WeakMap'),
- nativeCreate = getNative(Object, 'create');
-
- /** Used to store function metadata. */
- var metaMap = WeakMap && new WeakMap;
-
- /** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
- var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
-
- /** Used to lookup unminified function names. */
- var realNames = {};
-
- /** Used to detect maps, sets, and weakmaps. */
- var dataViewCtorString = toSource(DataView),
- mapCtorString = toSource(Map),
- promiseCtorString = toSource(Promise),
- setCtorString = toSource(Set),
- weakMapCtorString = toSource(WeakMap);
-
- /** Used to convert symbols to primitives and strings. */
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` object which wraps `value` to enable implicit method
- * chain sequences. Methods that operate on and return arrays, collections,
- * and functions can be chained together. Methods that retrieve a single value
- * or may return a primitive value will automatically end the chain sequence
- * and return the unwrapped value. Otherwise, the value must be unwrapped
- * with `_#value`.
- *
- * Explicit chain sequences, which must be unwrapped with `_#value`, may be
- * enabled using `_.chain`.
- *
- * The execution of chained methods is lazy, that is, it's deferred until
- * `_#value` is implicitly or explicitly called.
- *
- * Lazy evaluation allows several methods to support shortcut fusion.
- * Shortcut fusion is an optimization to merge iteratee calls; this avoids
- * the creation of intermediate arrays and can greatly reduce the number of
- * iteratee executions. Sections of a chain sequence qualify for shortcut
- * fusion if the section is applied to an array of at least `200` elements
- * and any iteratees accept only one argument. The heuristic for whether a
- * section qualifies for shortcut fusion is subject to change.
- *
- * Chaining is supported in custom builds as long as the `_#value` method is
- * directly or indirectly included in the build.
- *
- * In addition to lodash methods, wrappers have `Array` and `String` methods.
- *
- * The wrapper `Array` methods are:
- * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
- *
- * The wrapper `String` methods are:
- * `replace` and `split`
- *
- * The wrapper methods that support shortcut fusion are:
- * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
- * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
- * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
- *
- * The chainable wrapper methods are:
- * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
- * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
- * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
- * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
- * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
- * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
- * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
- * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
- * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
- * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
- * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
- * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
- * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
- * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
- * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
- * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
- * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
- * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
- * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
- * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
- * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
- * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
- * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
- * `zipObject`, `zipObjectDeep`, and `zipWith`
- *
- * The wrapper methods that are **not** chainable by default are:
- * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
- * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `divide`, `each`,
- * `eachRight`, `endsWith`, `eq`, `escape`, `escapeRegExp`, `every`, `find`,
- * `findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `first`,
- * `floor`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`,
- * `forOwnRight`, `get`, `gt`, `gte`, `has`, `hasIn`, `head`, `identity`,
- * `includes`, `indexOf`, `inRange`, `invoke`, `isArguments`, `isArray`,
- * `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`,
- * `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isEqualWith`,
- * `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMap`,
- * `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
- * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
- * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
- * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
- * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
- * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
- * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
- * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
- * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
- * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
- * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
- * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
- * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
- * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
- * `upperFirst`, `value`, and `words`
- *
- * @name _
- * @constructor
- * @category Seq
- * @param {*} value The value to wrap in a `lodash` instance.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2, 3]);
- *
- * // Returns an unwrapped value.
- * wrapped.reduce(_.add);
- * // => 6
- *
- * // Returns a wrapped value.
- * var squares = wrapped.map(square);
- *
- * _.isArray(squares);
- * // => false
- *
- * _.isArray(squares.value());
- * // => true
- */
- function lodash(value) {
- if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
- if (value instanceof LodashWrapper) {
- return value;
- }
- if (hasOwnProperty.call(value, '__wrapped__')) {
- return wrapperClone(value);
- }
- }
- return new LodashWrapper(value);
- }
-
- /**
- * The function whose prototype chain sequence wrappers inherit from.
- *
- * @private
- */
- function baseLodash() {
- // No operation performed.
- }
-
- /**
- * The base constructor for creating `lodash` wrapper objects.
- *
- * @private
- * @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable explicit method chain sequences.
- */
- function LodashWrapper(value, chainAll) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__chain__ = !!chainAll;
- this.__index__ = 0;
- this.__values__ = undefined;
- }
-
- /**
- * By default, the template delimiters used by lodash are like those in
- * embedded Ruby (ERB). Change the following template settings to use
- * alternative delimiters.
- *
- * @static
- * @memberOf _
- * @type {Object}
- */
- lodash.templateSettings = {
-
- /**
- * Used to detect `data` property values to be HTML-escaped.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'escape': reEscape,
-
- /**
- * Used to detect code to be evaluated.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'evaluate': reEvaluate,
-
- /**
- * Used to detect `data` property values to inject.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'interpolate': reInterpolate,
-
- /**
- * Used to reference the data object in the template text.
- *
- * @memberOf _.templateSettings
- * @type {string}
- */
- 'variable': '',
-
- /**
- * Used to import variables into the compiled template.
- *
- * @memberOf _.templateSettings
- * @type {Object}
- */
- 'imports': {
-
- /**
- * A reference to the `lodash` function.
- *
- * @memberOf _.templateSettings.imports
- * @type {Function}
- */
- '_': lodash
- }
- };
-
- // Ensure wrappers are instances of `baseLodash`.
- lodash.prototype = baseLodash.prototype;
- lodash.prototype.constructor = lodash;
-
- LodashWrapper.prototype = baseCreate(baseLodash.prototype);
- LodashWrapper.prototype.constructor = LodashWrapper;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
- *
- * @private
- * @constructor
- * @param {*} value The value to wrap.
- */
- function LazyWrapper(value) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__dir__ = 1;
- this.__filtered__ = false;
- this.__iteratees__ = [];
- this.__takeCount__ = MAX_ARRAY_LENGTH;
- this.__views__ = [];
- }
-
- /**
- * Creates a clone of the lazy wrapper object.
- *
- * @private
- * @name clone
- * @memberOf LazyWrapper
- * @returns {Object} Returns the cloned `LazyWrapper` object.
- */
- function lazyClone() {
- var result = new LazyWrapper(this.__wrapped__);
- result.__actions__ = copyArray(this.__actions__);
- result.__dir__ = this.__dir__;
- result.__filtered__ = this.__filtered__;
- result.__iteratees__ = copyArray(this.__iteratees__);
- result.__takeCount__ = this.__takeCount__;
- result.__views__ = copyArray(this.__views__);
- return result;
- }
-
- /**
- * Reverses the direction of lazy iteration.
- *
- * @private
- * @name reverse
- * @memberOf LazyWrapper
- * @returns {Object} Returns the new reversed `LazyWrapper` object.
- */
- function lazyReverse() {
- if (this.__filtered__) {
- var result = new LazyWrapper(this);
- result.__dir__ = -1;
- result.__filtered__ = true;
- } else {
- result = this.clone();
- result.__dir__ *= -1;
- }
- return result;
- }
-
- /**
- * Extracts the unwrapped value from its lazy wrapper.
- *
- * @private
- * @name value
- * @memberOf LazyWrapper
- * @returns {*} Returns the unwrapped value.
- */
- function lazyValue() {
- var array = this.__wrapped__.value(),
- dir = this.__dir__,
- isArr = isArray(array),
- isRight = dir < 0,
- arrLength = isArr ? array.length : 0,
- view = getView(0, arrLength, this.__views__),
- start = view.start,
- end = view.end,
- length = end - start,
- index = isRight ? end : (start - 1),
- iteratees = this.__iteratees__,
- iterLength = iteratees.length,
- resIndex = 0,
- takeCount = nativeMin(length, this.__takeCount__);
-
- if (!isArr || arrLength < LARGE_ARRAY_SIZE ||
- (arrLength == length && takeCount == length)) {
- return baseWrapperValue(array, this.__actions__);
- }
- var result = [];
-
- outer:
- while (length-- && resIndex < takeCount) {
- index += dir;
-
- var iterIndex = -1,
- value = array[index];
-
- while (++iterIndex < iterLength) {
- var data = iteratees[iterIndex],
- iteratee = data.iteratee,
- type = data.type,
- computed = iteratee(value);
-
- if (type == LAZY_MAP_FLAG) {
- value = computed;
- } else if (!computed) {
- if (type == LAZY_FILTER_FLAG) {
- continue outer;
- } else {
- break outer;
- }
- }
- }
- result[resIndex++] = value;
- }
- return result;
- }
-
- // Ensure `LazyWrapper` is an instance of `baseLodash`.
- LazyWrapper.prototype = baseCreate(baseLodash.prototype);
- LazyWrapper.prototype.constructor = LazyWrapper;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a hash object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function Hash(entries) {
- var index = -1,
- length = entries ? entries.length : 0;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the hash.
- *
- * @private
- * @name clear
- * @memberOf Hash
- */
- function hashClear() {
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
- }
-
- /**
- * Removes `key` and its value from the hash.
- *
- * @private
- * @name delete
- * @memberOf Hash
- * @param {Object} hash The hash to modify.
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function hashDelete(key) {
- return this.has(key) && delete this.__data__[key];
- }
-
- /**
- * Gets the hash value for `key`.
- *
- * @private
- * @name get
- * @memberOf Hash
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function hashGet(key) {
- var data = this.__data__;
- if (nativeCreate) {
- var result = data[key];
- return result === HASH_UNDEFINED ? undefined : result;
- }
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
- }
-
- /**
- * Checks if a hash value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Hash
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function hashHas(key) {
- var data = this.__data__;
- return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
- }
-
- /**
- * Sets the hash `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Hash
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the hash instance.
- */
- function hashSet(key, value) {
- var data = this.__data__;
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
- return this;
- }
-
- // Add methods to `Hash`.
- Hash.prototype.clear = hashClear;
- Hash.prototype['delete'] = hashDelete;
- Hash.prototype.get = hashGet;
- Hash.prototype.has = hashHas;
- Hash.prototype.set = hashSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an list cache object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function ListCache(entries) {
- var index = -1,
- length = entries ? entries.length : 0;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the list cache.
- *
- * @private
- * @name clear
- * @memberOf ListCache
- */
- function listCacheClear() {
- this.__data__ = [];
- }
-
- /**
- * Removes `key` and its value from the list cache.
- *
- * @private
- * @name delete
- * @memberOf ListCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function listCacheDelete(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- if (index < 0) {
- return false;
- }
- var lastIndex = data.length - 1;
- if (index == lastIndex) {
- data.pop();
- } else {
- splice.call(data, index, 1);
- }
- return true;
- }
-
- /**
- * Gets the list cache value for `key`.
- *
- * @private
- * @name get
- * @memberOf ListCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function listCacheGet(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- return index < 0 ? undefined : data[index][1];
- }
-
- /**
- * Checks if a list cache value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf ListCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function listCacheHas(key) {
- return assocIndexOf(this.__data__, key) > -1;
- }
-
- /**
- * Sets the list cache `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf ListCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the list cache instance.
- */
- function listCacheSet(key, value) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- if (index < 0) {
- data.push([key, value]);
- } else {
- data[index][1] = value;
- }
- return this;
- }
-
- // Add methods to `ListCache`.
- ListCache.prototype.clear = listCacheClear;
- ListCache.prototype['delete'] = listCacheDelete;
- ListCache.prototype.get = listCacheGet;
- ListCache.prototype.has = listCacheHas;
- ListCache.prototype.set = listCacheSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a map cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function MapCache(entries) {
- var index = -1,
- length = entries ? entries.length : 0;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the map.
- *
- * @private
- * @name clear
- * @memberOf MapCache
- */
- function mapCacheClear() {
- this.__data__ = {
- 'hash': new Hash,
- 'map': new (Map || ListCache),
- 'string': new Hash
- };
- }
-
- /**
- * Removes `key` and its value from the map.
- *
- * @private
- * @name delete
- * @memberOf MapCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function mapCacheDelete(key) {
- return getMapData(this, key)['delete'](key);
- }
-
- /**
- * Gets the map value for `key`.
- *
- * @private
- * @name get
- * @memberOf MapCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function mapCacheGet(key) {
- return getMapData(this, key).get(key);
- }
-
- /**
- * Checks if a map value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf MapCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function mapCacheHas(key) {
- return getMapData(this, key).has(key);
- }
-
- /**
- * Sets the map `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf MapCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the map cache instance.
- */
- function mapCacheSet(key, value) {
- getMapData(this, key).set(key, value);
- return this;
- }
-
- // Add methods to `MapCache`.
- MapCache.prototype.clear = mapCacheClear;
- MapCache.prototype['delete'] = mapCacheDelete;
- MapCache.prototype.get = mapCacheGet;
- MapCache.prototype.has = mapCacheHas;
- MapCache.prototype.set = mapCacheSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- *
- * Creates an array cache object to store unique values.
- *
- * @private
- * @constructor
- * @param {Array} [values] The values to cache.
- */
- function SetCache(values) {
- var index = -1,
- length = values ? values.length : 0;
-
- this.__data__ = new MapCache;
- while (++index < length) {
- this.add(values[index]);
- }
- }
-
- /**
- * Adds `value` to the array cache.
- *
- * @private
- * @name add
- * @memberOf SetCache
- * @alias push
- * @param {*} value The value to cache.
- * @returns {Object} Returns the cache instance.
- */
- function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED);
- return this;
- }
-
- /**
- * Checks if `value` is in the array cache.
- *
- * @private
- * @name has
- * @memberOf SetCache
- * @param {*} value The value to search for.
- * @returns {number} Returns `true` if `value` is found, else `false`.
- */
- function setCacheHas(value) {
- return this.__data__.has(value);
- }
-
- // Add methods to `SetCache`.
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
- SetCache.prototype.has = setCacheHas;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a stack cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function Stack(entries) {
- this.__data__ = new ListCache(entries);
- }
-
- /**
- * Removes all key-value entries from the stack.
- *
- * @private
- * @name clear
- * @memberOf Stack
- */
- function stackClear() {
- this.__data__ = new ListCache;
- }
-
- /**
- * Removes `key` and its value from the stack.
- *
- * @private
- * @name delete
- * @memberOf Stack
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function stackDelete(key) {
- return this.__data__['delete'](key);
- }
-
- /**
- * Gets the stack value for `key`.
- *
- * @private
- * @name get
- * @memberOf Stack
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function stackGet(key) {
- return this.__data__.get(key);
- }
-
- /**
- * Checks if a stack value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Stack
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function stackHas(key) {
- return this.__data__.has(key);
- }
-
- /**
- * Sets the stack `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Stack
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the stack cache instance.
- */
- function stackSet(key, value) {
- var cache = this.__data__;
- if (cache instanceof ListCache && cache.__data__.length == LARGE_ARRAY_SIZE) {
- cache = this.__data__ = new MapCache(cache.__data__);
- }
- cache.set(key, value);
- return this;
- }
-
- // Add methods to `Stack`.
- Stack.prototype.clear = stackClear;
- Stack.prototype['delete'] = stackDelete;
- Stack.prototype.get = stackGet;
- Stack.prototype.has = stackHas;
- Stack.prototype.set = stackSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Used by `_.defaults` to customize its `_.assignIn` use.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to assign.
- * @param {Object} object The parent object of `objValue`.
- * @returns {*} Returns the value to assign.
- */
- function assignInDefaults(objValue, srcValue, key, object) {
- if (objValue === undefined ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- return srcValue;
- }
- return objValue;
- }
-
- /**
- * This function is like `assignValue` except that it doesn't assign
- * `undefined` values.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignMergeValue(object, key, value) {
- if ((value !== undefined && !eq(object[key], value)) ||
- (typeof key == 'number' && value === undefined && !(key in object))) {
- object[key] = value;
- }
- }
-
- /**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- object[key] = value;
- }
- }
-
- /**
- * Gets the index at which the `key` is found in `array` of key-value pairs.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function assocIndexOf(array, key) {
- var length = array.length;
- while (length--) {
- if (eq(array[length][0], key)) {
- return length;
- }
- }
- return -1;
- }
-
- /**
- * Aggregates elements of `collection` on `accumulator` with keys transformed
- * by `iteratee` and values set by `setter`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
- function baseAggregator(collection, setter, iteratee, accumulator) {
- baseEach(collection, function(value, key, collection) {
- setter(accumulator, value, iteratee(value), collection);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.assign` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
- function baseAssign(object, source) {
- return object && copyObject(source, keys(source), object);
- }
-
- /**
- * The base implementation of `_.at` without support for individual paths.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {string[]} paths The property paths of elements to pick.
- * @returns {Array} Returns the picked elements.
- */
- function baseAt(object, paths) {
- var index = -1,
- isNil = object == null,
- length = paths.length,
- result = Array(length);
-
- while (++index < length) {
- result[index] = isNil ? undefined : get(object, paths[index]);
- }
- return result;
- }
-
- /**
- * The base implementation of `_.clamp` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- */
- function baseClamp(number, lower, upper) {
- if (number === number) {
- if (upper !== undefined) {
- number = number <= upper ? number : upper;
- }
- if (lower !== undefined) {
- number = number >= lower ? number : lower;
- }
- }
- return number;
- }
-
- /**
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
- * traversed objects.
- *
- * @private
- * @param {*} value The value to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @param {boolean} [isFull] Specify a clone including symbols.
- * @param {Function} [customizer] The function to customize cloning.
- * @param {string} [key] The key of `value`.
- * @param {Object} [object] The parent object of `value`.
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
- * @returns {*} Returns the cloned value.
- */
- function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
- var result;
- if (customizer) {
- result = object ? customizer(value, key, object, stack) : customizer(value);
- }
- if (result !== undefined) {
- return result;
- }
- if (!isObject(value)) {
- return value;
- }
- var isArr = isArray(value);
- if (isArr) {
- result = initCloneArray(value);
- if (!isDeep) {
- return copyArray(value, result);
- }
- } else {
- var tag = getTag(value),
- isFunc = tag == funcTag || tag == genTag;
-
- if (isBuffer(value)) {
- return cloneBuffer(value, isDeep);
- }
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
- if (isHostObject(value)) {
- return object ? value : {};
- }
- result = initCloneObject(isFunc ? {} : value);
- if (!isDeep) {
- return copySymbols(value, baseAssign(result, value));
- }
- } else {
- if (!cloneableTags[tag]) {
- return object ? value : {};
- }
- result = initCloneByTag(value, tag, baseClone, isDeep);
- }
- }
- // Check for circular references and return its corresponding clone.
- stack || (stack = new Stack);
- var stacked = stack.get(value);
- if (stacked) {
- return stacked;
- }
- stack.set(value, result);
-
- if (!isArr) {
- var props = isFull ? getAllKeys(value) : keys(value);
- }
- // Recursively populate clone (susceptible to call stack limits).
- arrayEach(props || value, function(subValue, key) {
- if (props) {
- key = subValue;
- subValue = value[key];
- }
- assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
- });
- return result;
- }
-
- /**
- * The base implementation of `_.conforms` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- */
- function baseConforms(source) {
- var props = keys(source),
- length = props.length;
-
- return function(object) {
- if (object == null) {
- return !length;
- }
- var index = length;
- while (index--) {
- var key = props[index],
- predicate = source[key],
- value = object[key];
-
- if ((value === undefined &&
- !(key in Object(object))) || !predicate(value)) {
- return false;
- }
- }
- return true;
- };
- }
-
- /**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} prototype The object to inherit from.
- * @returns {Object} Returns the new object.
- */
- function baseCreate(proto) {
- return isObject(proto) ? objectCreate(proto) : {};
- }
-
- /**
- * The base implementation of `_.delay` and `_.defer` which accepts an array
- * of `func` arguments.
- *
- * @private
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {Object} args The arguments to provide to `func`.
- * @returns {number} Returns the timer id.
- */
- function baseDelay(func, wait, args) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return setTimeout(function() { func.apply(undefined, args); }, wait);
- }
-
- /**
- * The base implementation of methods like `_.difference` without support
- * for excluding multiple arrays or iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Array} values The values to exclude.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- */
- function baseDifference(array, values, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- isCommon = true,
- length = array.length,
- result = [],
- valuesLength = values.length;
-
- if (!length) {
- return result;
- }
- if (iteratee) {
- values = arrayMap(values, baseUnary(iteratee));
- }
- if (comparator) {
- includes = arrayIncludesWith;
- isCommon = false;
- }
- else if (values.length >= LARGE_ARRAY_SIZE) {
- includes = cacheHas;
- isCommon = false;
- values = new SetCache(values);
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var valuesIndex = valuesLength;
- while (valuesIndex--) {
- if (values[valuesIndex] === computed) {
- continue outer;
- }
- }
- result.push(value);
- }
- else if (!includes(values, computed, comparator)) {
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEach = createBaseEach(baseForOwn);
-
- /**
- * The base implementation of `_.forEachRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEachRight = createBaseEach(baseForOwnRight, true);
-
- /**
- * The base implementation of `_.every` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`
- */
- function baseEvery(collection, predicate) {
- var result = true;
- baseEach(collection, function(value, index, collection) {
- result = !!predicate(value, index, collection);
- return result;
- });
- return result;
- }
-
- /**
- * The base implementation of methods like `_.max` and `_.min` which accepts a
- * `comparator` to determine the extremum value.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The iteratee invoked per iteration.
- * @param {Function} comparator The comparator used to compare values.
- * @returns {*} Returns the extremum value.
- */
- function baseExtremum(array, iteratee, comparator) {
- var index = -1,
- length = array.length;
-
- while (++index < length) {
- var value = array[index],
- current = iteratee(value);
-
- if (current != null && (computed === undefined
- ? (current === current && !isSymbol(current))
- : comparator(current, computed)
- )) {
- var computed = current,
- result = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.fill` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- */
- function baseFill(array, value, start, end) {
- var length = array.length;
-
- start = toInteger(start);
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = (end === undefined || end > length) ? length : toInteger(end);
- if (end < 0) {
- end += length;
- }
- end = start > end ? 0 : toLength(end);
- while (start < end) {
- array[start++] = value;
- }
- return array;
- }
-
- /**
- * The base implementation of `_.filter` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function baseFilter(collection, predicate) {
- var result = [];
- baseEach(collection, function(value, index, collection) {
- if (predicate(value, index, collection)) {
- result.push(value);
- }
- });
- return result;
- }
-
- /**
- * The base implementation of `_.flatten` with support for restricting flattening.
- *
- * @private
- * @param {Array} array The array to flatten.
- * @param {number} depth The maximum recursion depth.
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
- * @param {Array} [result=[]] The initial result value.
- * @returns {Array} Returns the new flattened array.
- */
- function baseFlatten(array, depth, predicate, isStrict, result) {
- var index = -1,
- length = array.length;
-
- predicate || (predicate = isFlattenable);
- result || (result = []);
-
- while (++index < length) {
- var value = array[index];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- // Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, depth - 1, predicate, isStrict, result);
- } else {
- arrayPush(result, value);
- }
- } else if (!isStrict) {
- result[result.length] = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseFor = createBaseFor();
-
- /**
- * This function is like `baseFor` except that it iterates over properties
- * in the opposite order.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseForRight = createBaseFor(true);
-
- /**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
- }
-
- /**
- * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwnRight(object, iteratee) {
- return object && baseForRight(object, iteratee, keys);
- }
-
- /**
- * The base implementation of `_.functions` which creates an array of
- * `object` function property names filtered from `props`.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Array} props The property names to filter.
- * @returns {Array} Returns the function names.
- */
- function baseFunctions(object, props) {
- return arrayFilter(props, function(key) {
- return isFunction(object[key]);
- });
- }
-
- /**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
- function baseGet(object, path) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var index = 0,
- length = path.length;
-
- while (object != null && index < length) {
- object = object[toKey(path[index++])];
- }
- return (index && index == length) ? object : undefined;
- }
-
- /**
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
- var result = keysFunc(object);
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
- }
-
- /**
- * The base implementation of `_.gt` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- */
- function baseGt(value, other) {
- return value > other;
- }
-
- /**
- * The base implementation of `_.has` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
- function baseHas(object, key) {
- // Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
- // that are composed entirely of index properties, return `false` for
- // `hasOwnProperty` checks of them.
- return object != null &&
- (hasOwnProperty.call(object, key) ||
- (typeof object == 'object' && key in object && getPrototype(object) === null));
- }
-
- /**
- * The base implementation of `_.hasIn` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
- function baseHasIn(object, key) {
- return object != null && key in Object(object);
- }
-
- /**
- * The base implementation of `_.inRange` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {number} number The number to check.
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- */
- function baseInRange(number, start, end) {
- return number >= nativeMin(start, end) && number < nativeMax(start, end);
- }
-
- /**
- * The base implementation of methods like `_.intersection`, without support
- * for iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of shared values.
- */
- function baseIntersection(arrays, iteratee, comparator) {
- var includes = comparator ? arrayIncludesWith : arrayIncludes,
- length = arrays[0].length,
- othLength = arrays.length,
- othIndex = othLength,
- caches = Array(othLength),
- maxLength = Infinity,
- result = [];
-
- while (othIndex--) {
- var array = arrays[othIndex];
- if (othIndex && iteratee) {
- array = arrayMap(array, baseUnary(iteratee));
- }
- maxLength = nativeMin(array.length, maxLength);
- caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
- ? new SetCache(othIndex && array)
- : undefined;
- }
- array = arrays[0];
-
- var index = -1,
- seen = caches[0];
-
- outer:
- while (++index < length && result.length < maxLength) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (!(seen
- ? cacheHas(seen, computed)
- : includes(result, computed, comparator)
- )) {
- othIndex = othLength;
- while (--othIndex) {
- var cache = caches[othIndex];
- if (!(cache
- ? cacheHas(cache, computed)
- : includes(arrays[othIndex], computed, comparator))
- ) {
- continue outer;
- }
- }
- if (seen) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.invert` and `_.invertBy` which inverts
- * `object` with values transformed by `iteratee` and set by `setter`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform values.
- * @param {Object} accumulator The initial inverted object.
- * @returns {Function} Returns `accumulator`.
- */
- function baseInverter(object, setter, iteratee, accumulator) {
- baseForOwn(object, function(value, key, object) {
- setter(accumulator, iteratee(value), key, object);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.invoke` without support for individual
- * method arguments.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {Array} args The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- */
- function baseInvoke(object, path, args) {
- if (!isKey(path, object)) {
- path = castPath(path);
- object = parent(object, path);
- path = last(path);
- }
- var func = object == null ? object : object[toKey(path)];
- return func == null ? undefined : apply(func, object, args);
- }
-
- /**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {boolean} [bitmask] The bitmask of comparison flags.
- * The bitmask may be composed of the following flags:
- * 1 - Unordered comparison
- * 2 - Partial comparison
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
- function baseIsEqual(value, other, customizer, bitmask, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
- }
-
- /**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = arrayTag,
- othTag = arrayTag;
-
- if (!objIsArr) {
- objTag = getTag(object);
- objTag = objTag == argsTag ? objectTag : objTag;
- }
- if (!othIsArr) {
- othTag = getTag(other);
- othTag = othTag == argsTag ? objectTag : othTag;
- }
- var objIsObj = objTag == objectTag && !isHostObject(object),
- othIsObj = othTag == objectTag && !isHostObject(other),
- isSameTag = objTag == othTag;
-
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack);
- return (objIsArr || isTypedArray(object))
- ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
- : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
- }
- if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
-
- stack || (stack = new Stack);
- return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack);
- return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
- }
-
- /**
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Array} matchData The property names, values, and compare flags to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- */
- function baseIsMatch(object, source, matchData, customizer) {
- var index = matchData.length,
- length = index,
- noCustomizer = !customizer;
-
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (index--) {
- var data = matchData[index];
- if ((noCustomizer && data[2])
- ? data[1] !== object[data[0]]
- : !(data[0] in object)
- ) {
- return false;
- }
- }
- while (++index < length) {
- data = matchData[index];
- var key = data[0],
- objValue = object[key],
- srcValue = data[1];
-
- if (noCustomizer && data[2]) {
- if (objValue === undefined && !(key in object)) {
- return false;
- }
- } else {
- var stack = new Stack;
- if (customizer) {
- var result = customizer(objValue, srcValue, key, object, source, stack);
- }
- if (!(result === undefined
- ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)
- : result
- )) {
- return false;
- }
- }
- }
- return true;
- }
-
- /**
- * The base implementation of `_.isNative` without bad shim checks.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- */
- function baseIsNative(value) {
- if (!isObject(value) || isMasked(value)) {
- return false;
- }
- var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
- return pattern.test(toSource(value));
- }
-
- /**
- * The base implementation of `_.iteratee`.
- *
- * @private
- * @param {*} [value=_.identity] The value to convert to an iteratee.
- * @returns {Function} Returns the iteratee.
- */
- function baseIteratee(value) {
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
- if (typeof value == 'function') {
- return value;
- }
- if (value == null) {
- return identity;
- }
- if (typeof value == 'object') {
- return isArray(value)
- ? baseMatchesProperty(value[0], value[1])
- : baseMatches(value);
- }
- return property(value);
- }
-
- /**
- * The base implementation of `_.keys` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeys(object) {
- return nativeKeys(Object(object));
- }
-
- /**
- * The base implementation of `_.keysIn` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeysIn(object) {
- object = object == null ? object : Object(object);
-
- var result = [];
- for (var key in object) {
- result.push(key);
- }
- return result;
- }
-
- // Fallback for IE < 9 with es6-shim.
- if (enumerate && !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf')) {
- baseKeysIn = function(object) {
- return iteratorToArray(enumerate(object));
- };
- }
-
- /**
- * The base implementation of `_.lt` which doesn't coerce arguments to numbers.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- */
- function baseLt(value, other) {
- return value < other;
- }
-
- /**
- * The base implementation of `_.map` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function baseMap(collection, iteratee) {
- var index = -1,
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value, key, collection) {
- result[++index] = iteratee(value, key, collection);
- });
- return result;
- }
-
- /**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatches(source) {
- var matchData = getMatchData(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
- }
- return function(object) {
- return object === source || baseIsMatch(object, source, matchData);
- };
- }
-
- /**
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
- *
- * @private
- * @param {string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatchesProperty(path, srcValue) {
- if (isKey(path) && isStrictComparable(srcValue)) {
- return matchesStrictComparable(toKey(path), srcValue);
- }
- return function(object) {
- var objValue = get(object, path);
- return (objValue === undefined && objValue === srcValue)
- ? hasIn(object, path)
- : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
- };
- }
-
- /**
- * The base implementation of `_.merge` without support for multiple sources.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} [customizer] The function to customize merged values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
- function baseMerge(object, source, srcIndex, customizer, stack) {
- if (object === source) {
- return;
- }
- if (!(isArray(source) || isTypedArray(source))) {
- var props = keysIn(source);
- }
- arrayEach(props || source, function(srcValue, key) {
- if (props) {
- key = srcValue;
- srcValue = source[key];
- }
- if (isObject(srcValue)) {
- stack || (stack = new Stack);
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
- }
- else {
- var newValue = customizer
- ? customizer(object[key], srcValue, (key + ''), object, source, stack)
- : undefined;
-
- if (newValue === undefined) {
- newValue = srcValue;
- }
- assignMergeValue(object, key, newValue);
- }
- });
- }
-
- /**
- * A specialized version of `baseMerge` for arrays and objects which performs
- * deep merges and tracks traversed objects enabling objects with circular
- * references to be merged.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {string} key The key of the value to merge.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} mergeFunc The function to merge values.
- * @param {Function} [customizer] The function to customize assigned values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
- var objValue = object[key],
- srcValue = source[key],
- stacked = stack.get(srcValue);
-
- if (stacked) {
- assignMergeValue(object, key, stacked);
- return;
- }
- var newValue = customizer
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
- : undefined;
-
- var isCommon = newValue === undefined;
-
- if (isCommon) {
- newValue = srcValue;
- if (isArray(srcValue) || isTypedArray(srcValue)) {
- if (isArray(objValue)) {
- newValue = objValue;
- }
- else if (isArrayLikeObject(objValue)) {
- newValue = copyArray(objValue);
- }
- else {
- isCommon = false;
- newValue = baseClone(srcValue, true);
- }
- }
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
- if (isArguments(objValue)) {
- newValue = toPlainObject(objValue);
- }
- else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
- isCommon = false;
- newValue = baseClone(srcValue, true);
- }
- else {
- newValue = objValue;
- }
- }
- else {
- isCommon = false;
- }
- }
- stack.set(srcValue, newValue);
-
- if (isCommon) {
- // Recursively merge objects and arrays (susceptible to call stack limits).
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
- }
- stack['delete'](srcValue);
- assignMergeValue(object, key, newValue);
- }
-
- /**
- * The base implementation of `_.nth` which doesn't coerce `n` to an integer.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {number} n The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- */
- function baseNth(array, n) {
- var length = array.length;
- if (!length) {
- return;
- }
- n += n < 0 ? length : 0;
- return isIndex(n, length) ? array[n] : undefined;
- }
-
- /**
- * The base implementation of `_.orderBy` without param guards.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
- * @param {string[]} orders The sort orders of `iteratees`.
- * @returns {Array} Returns the new sorted array.
- */
- function baseOrderBy(collection, iteratees, orders) {
- var index = -1;
- iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
-
- var result = baseMap(collection, function(value, key, collection) {
- var criteria = arrayMap(iteratees, function(iteratee) {
- return iteratee(value);
- });
- return { 'criteria': criteria, 'index': ++index, 'value': value };
- });
-
- return baseSortBy(result, function(object, other) {
- return compareMultiple(object, other, orders);
- });
- }
-
- /**
- * The base implementation of `_.pick` without support for individual
- * property identifiers.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} props The property identifiers to pick.
- * @returns {Object} Returns the new object.
- */
- function basePick(object, props) {
- object = Object(object);
- return arrayReduce(props, function(result, key) {
- if (key in object) {
- result[key] = object[key];
- }
- return result;
- }, {});
- }
-
- /**
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The source object.
- * @param {Function} predicate The function invoked per property.
- * @returns {Object} Returns the new object.
- */
- function basePickBy(object, predicate) {
- var index = -1,
- props = getAllKeysIn(object),
- length = props.length,
- result = {};
-
- while (++index < length) {
- var key = props[index],
- value = object[key];
-
- if (predicate(value, key)) {
- result[key] = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
- }
-
- /**
- * A specialized version of `baseProperty` which supports deep paths.
- *
- * @private
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function basePropertyDeep(path) {
- return function(object) {
- return baseGet(object, path);
- };
- }
-
- /**
- * The base implementation of `_.pullAllBy` without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- */
- function basePullAll(array, values, iteratee, comparator) {
- var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
- index = -1,
- length = values.length,
- seen = array;
-
- if (array === values) {
- values = copyArray(values);
- }
- if (iteratee) {
- seen = arrayMap(array, baseUnary(iteratee));
- }
- while (++index < length) {
- var fromIndex = 0,
- value = values[index],
- computed = iteratee ? iteratee(value) : value;
-
- while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
- if (seen !== array) {
- splice.call(seen, fromIndex, 1);
- }
- splice.call(array, fromIndex, 1);
- }
- }
- return array;
- }
-
- /**
- * The base implementation of `_.pullAt` without support for individual
- * indexes or capturing the removed elements.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {number[]} indexes The indexes of elements to remove.
- * @returns {Array} Returns `array`.
- */
- function basePullAt(array, indexes) {
- var length = array ? indexes.length : 0,
- lastIndex = length - 1;
-
- while (length--) {
- var index = indexes[length];
- if (length == lastIndex || index !== previous) {
- var previous = index;
- if (isIndex(index)) {
- splice.call(array, index, 1);
- }
- else if (!isKey(index, array)) {
- var path = castPath(index),
- object = parent(array, path);
-
- if (object != null) {
- delete object[toKey(last(path))];
- }
- }
- else {
- delete array[toKey(index)];
- }
- }
- }
- return array;
- }
-
- /**
- * The base implementation of `_.random` without support for returning
- * floating-point numbers.
- *
- * @private
- * @param {number} lower The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the random number.
- */
- function baseRandom(lower, upper) {
- return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
- }
-
- /**
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
- * coerce arguments to numbers.
- *
- * @private
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @param {number} step The value to increment or decrement by.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the range of numbers.
- */
- function baseRange(start, end, step, fromRight) {
- var index = -1,
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
- result = Array(length);
-
- while (length--) {
- result[fromRight ? length : ++index] = start;
- start += step;
- }
- return result;
- }
-
- /**
- * The base implementation of `_.repeat` which doesn't coerce arguments.
- *
- * @private
- * @param {string} string The string to repeat.
- * @param {number} n The number of times to repeat the string.
- * @returns {string} Returns the repeated string.
- */
- function baseRepeat(string, n) {
- var result = '';
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
- return result;
- }
- // Leverage the exponentiation by squaring algorithm for a faster repeat.
- // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
- do {
- if (n % 2) {
- result += string;
- }
- n = nativeFloor(n / 2);
- if (n) {
- string += string;
- }
- } while (n);
-
- return result;
- }
-
- /**
- * The base implementation of `_.set`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
- function baseSet(object, path, value, customizer) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- nested = object;
-
- while (nested != null && ++index < length) {
- var key = toKey(path[index]);
- if (isObject(nested)) {
- var newValue = value;
- if (index != lastIndex) {
- var objValue = nested[key];
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
- if (newValue === undefined) {
- newValue = objValue == null
- ? (isIndex(path[index + 1]) ? [] : {})
- : objValue;
- }
- }
- assignValue(nested, key, newValue);
- }
- nested = nested[key];
- }
- return object;
- }
-
- /**
- * The base implementation of `setData` without support for hot loop detection.
- *
- * @private
- * @param {Function} func The function to associate metadata with.
- * @param {*} data The metadata.
- * @returns {Function} Returns `func`.
- */
- var baseSetData = !metaMap ? identity : function(func, data) {
- metaMap.set(func, data);
- return func;
- };
-
- /**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
-
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
-
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
- }
-
- /**
- * The base implementation of `_.some` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function baseSome(collection, predicate) {
- var result;
-
- baseEach(collection, function(value, index, collection) {
- result = predicate(value, index, collection);
- return !result;
- });
- return !!result;
- }
-
- /**
- * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
- * performs a binary search of `array` to determine the index at which `value`
- * should be inserted into `array` in order to maintain its sort order.
- *
- * @private
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- */
- function baseSortedIndex(array, value, retHighest) {
- var low = 0,
- high = array ? array.length : low;
-
- if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
- while (low < high) {
- var mid = (low + high) >>> 1,
- computed = array[mid];
-
- if (computed !== null && !isSymbol(computed) &&
- (retHighest ? (computed <= value) : (computed < value))) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return high;
- }
- return baseSortedIndexBy(array, value, identity, retHighest);
- }
-
- /**
- * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
- * which invokes `iteratee` for `value` and each element of `array` to compute
- * their sort ranking. The iteratee is invoked with one argument; (value).
- *
- * @private
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function} iteratee The iteratee invoked per element.
- * @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- */
- function baseSortedIndexBy(array, value, iteratee, retHighest) {
- value = iteratee(value);
-
- var low = 0,
- high = array ? array.length : 0,
- valIsNaN = value !== value,
- valIsNull = value === null,
- valIsSymbol = isSymbol(value),
- valIsUndefined = value === undefined;
-
- while (low < high) {
- var mid = nativeFloor((low + high) / 2),
- computed = iteratee(array[mid]),
- othIsDefined = computed !== undefined,
- othIsNull = computed === null,
- othIsReflexive = computed === computed,
- othIsSymbol = isSymbol(computed);
-
- if (valIsNaN) {
- var setLow = retHighest || othIsReflexive;
- } else if (valIsUndefined) {
- setLow = othIsReflexive && (retHighest || othIsDefined);
- } else if (valIsNull) {
- setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
- } else if (valIsSymbol) {
- setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
- } else if (othIsNull || othIsSymbol) {
- setLow = false;
- } else {
- setLow = retHighest ? (computed <= value) : (computed < value);
- }
- if (setLow) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return nativeMin(high, MAX_ARRAY_INDEX);
- }
-
- /**
- * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
- function baseSortedUniq(array, iteratee) {
- var index = -1,
- length = array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- if (!index || !eq(computed, seen)) {
- var seen = computed;
- result[resIndex++] = value === 0 ? 0 : value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.toNumber` which doesn't ensure correct
- * conversions of binary, hexadecimal, or octal string values.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- */
- function baseToNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- return +value;
- }
-
- /**
- * The base implementation of `_.toString` which doesn't convert nullish
- * values to empty strings.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- */
- function baseToString(value) {
- // Exit early for strings to avoid a performance hit in some environments.
- if (typeof value == 'string') {
- return value;
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
-
- /**
- * The base implementation of `_.uniqBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
- function baseUniq(array, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- length = array.length,
- isCommon = true,
- result = [],
- seen = result;
-
- if (comparator) {
- isCommon = false;
- includes = arrayIncludesWith;
- }
- else if (length >= LARGE_ARRAY_SIZE) {
- var set = iteratee ? null : createSet(array);
- if (set) {
- return setToArray(set);
- }
- isCommon = false;
- includes = cacheHas;
- seen = new SetCache;
- }
- else {
- seen = iteratee ? [] : result;
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var seenIndex = seen.length;
- while (seenIndex--) {
- if (seen[seenIndex] === computed) {
- continue outer;
- }
- }
- if (iteratee) {
- seen.push(computed);
- }
- result.push(value);
- }
- else if (!includes(seen, computed, comparator)) {
- if (seen !== result) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.unset`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- */
- function baseUnset(object, path) {
- path = isKey(path, object) ? [path] : castPath(path);
- object = parent(object, path);
-
- var key = toKey(last(path));
- return !(object != null && baseHas(object, key)) || delete object[key];
- }
-
- /**
- * The base implementation of `_.update`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to update.
- * @param {Function} updater The function to produce the updated value.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
- function baseUpdate(object, path, updater, customizer) {
- return baseSet(object, path, updater(baseGet(object, path)), customizer);
- }
-
- /**
- * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
- * without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {Function} predicate The function invoked per iteration.
- * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseWhile(array, predicate, isDrop, fromRight) {
- var length = array.length,
- index = fromRight ? length : -1;
-
- while ((fromRight ? index-- : ++index < length) &&
- predicate(array[index], index, array)) {}
-
- return isDrop
- ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
- : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
- }
-
- /**
- * The base implementation of `wrapperValue` which returns the result of
- * performing a sequence of actions on the unwrapped `value`, where each
- * successive action is supplied the return value of the previous.
- *
- * @private
- * @param {*} value The unwrapped value.
- * @param {Array} actions Actions to perform to resolve the unwrapped value.
- * @returns {*} Returns the resolved value.
- */
- function baseWrapperValue(value, actions) {
- var result = value;
- if (result instanceof LazyWrapper) {
- result = result.value();
- }
- return arrayReduce(actions, function(result, action) {
- return action.func.apply(action.thisArg, arrayPush([result], action.args));
- }, result);
- }
-
- /**
- * The base implementation of methods like `_.xor`, without support for
- * iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of values.
- */
- function baseXor(arrays, iteratee, comparator) {
- var index = -1,
- length = arrays.length;
-
- while (++index < length) {
- var result = result
- ? arrayPush(
- baseDifference(result, arrays[index], iteratee, comparator),
- baseDifference(arrays[index], result, iteratee, comparator)
- )
- : arrays[index];
- }
- return (result && result.length) ? baseUniq(result, iteratee, comparator) : [];
- }
-
- /**
- * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
- *
- * @private
- * @param {Array} props The property identifiers.
- * @param {Array} values The property values.
- * @param {Function} assignFunc The function to assign values.
- * @returns {Object} Returns the new object.
- */
- function baseZipObject(props, values, assignFunc) {
- var index = -1,
- length = props.length,
- valsLength = values.length,
- result = {};
-
- while (++index < length) {
- var value = index < valsLength ? values[index] : undefined;
- assignFunc(result, props[index], value);
- }
- return result;
- }
-
- /**
- * Casts `value` to an empty array if it's not an array like object.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array|Object} Returns the cast array-like object.
- */
- function castArrayLikeObject(value) {
- return isArrayLikeObject(value) ? value : [];
- }
-
- /**
- * Casts `value` to `identity` if it's not a function.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Function} Returns cast function.
- */
- function castFunction(value) {
- return typeof value == 'function' ? value : identity;
- }
-
- /**
- * Casts `value` to a path array if it's not one.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast property path array.
- */
- function castPath(value) {
- return isArray(value) ? value : stringToPath(value);
- }
-
- /**
- * Casts `array` to a slice if it's needed.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {number} start The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the cast slice.
- */
- function castSlice(array, start, end) {
- var length = array.length;
- end = end === undefined ? length : end;
- return (!start && end >= length) ? array : baseSlice(array, start, end);
- }
-
- /**
- * Creates a clone of `buffer`.
- *
- * @private
- * @param {Buffer} buffer The buffer to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Buffer} Returns the cloned buffer.
- */
- function cloneBuffer(buffer, isDeep) {
- if (isDeep) {
- return buffer.slice();
- }
- var result = new buffer.constructor(buffer.length);
- buffer.copy(result);
- return result;
- }
-
- /**
- * Creates a clone of `arrayBuffer`.
- *
- * @private
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
- * @returns {ArrayBuffer} Returns the cloned array buffer.
- */
- function cloneArrayBuffer(arrayBuffer) {
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
- return result;
- }
-
- /**
- * Creates a clone of `dataView`.
- *
- * @private
- * @param {Object} dataView The data view to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned data view.
- */
- function cloneDataView(dataView, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
- }
-
- /**
- * Creates a clone of `map`.
- *
- * @private
- * @param {Object} map The map to clone.
- * @param {Function} cloneFunc The function to clone values.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned map.
- */
- function cloneMap(map, isDeep, cloneFunc) {
- var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
- return arrayReduce(array, addMapEntry, new map.constructor);
- }
-
- /**
- * Creates a clone of `regexp`.
- *
- * @private
- * @param {Object} regexp The regexp to clone.
- * @returns {Object} Returns the cloned regexp.
- */
- function cloneRegExp(regexp) {
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
- result.lastIndex = regexp.lastIndex;
- return result;
- }
-
- /**
- * Creates a clone of `set`.
- *
- * @private
- * @param {Object} set The set to clone.
- * @param {Function} cloneFunc The function to clone values.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned set.
- */
- function cloneSet(set, isDeep, cloneFunc) {
- var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
- return arrayReduce(array, addSetEntry, new set.constructor);
- }
-
- /**
- * Creates a clone of the `symbol` object.
- *
- * @private
- * @param {Object} symbol The symbol object to clone.
- * @returns {Object} Returns the cloned symbol object.
- */
- function cloneSymbol(symbol) {
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
- }
-
- /**
- * Creates a clone of `typedArray`.
- *
- * @private
- * @param {Object} typedArray The typed array to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned typed array.
- */
- function cloneTypedArray(typedArray, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
- }
-
- /**
- * Compares values to sort them in ascending order.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {number} Returns the sort order indicator for `value`.
- */
- function compareAscending(value, other) {
- if (value !== other) {
- var valIsDefined = value !== undefined,
- valIsNull = value === null,
- valIsReflexive = value === value,
- valIsSymbol = isSymbol(value);
-
- var othIsDefined = other !== undefined,
- othIsNull = other === null,
- othIsReflexive = other === other,
- othIsSymbol = isSymbol(other);
-
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
- (valIsNull && othIsDefined && othIsReflexive) ||
- (!valIsDefined && othIsReflexive) ||
- !valIsReflexive) {
- return 1;
- }
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
- (othIsNull && valIsDefined && valIsReflexive) ||
- (!othIsDefined && valIsReflexive) ||
- !othIsReflexive) {
- return -1;
- }
- }
- return 0;
- }
-
- /**
- * Used by `_.orderBy` to compare multiple properties of a value to another
- * and stable sort them.
- *
- * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
- * specify an order of "desc" for descending or "asc" for ascending sort order
- * of corresponding values.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {boolean[]|string[]} orders The order to sort by for each property.
- * @returns {number} Returns the sort order indicator for `object`.
- */
- function compareMultiple(object, other, orders) {
- var index = -1,
- objCriteria = object.criteria,
- othCriteria = other.criteria,
- length = objCriteria.length,
- ordersLength = orders.length;
-
- while (++index < length) {
- var result = compareAscending(objCriteria[index], othCriteria[index]);
- if (result) {
- if (index >= ordersLength) {
- return result;
- }
- var order = orders[index];
- return result * (order == 'desc' ? -1 : 1);
- }
- }
- // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
- // that causes it, under certain circumstances, to provide the same value for
- // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
- // for more details.
- //
- // This also ensures a stable sort in V8 and other engines.
- // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
- return object.index - other.index;
- }
-
- /**
- * Creates an array that is the composition of partially applied arguments,
- * placeholders, and provided arguments into a single array of arguments.
- *
- * @private
- * @param {Array} args The provided arguments.
- * @param {Array} partials The arguments to prepend to those provided.
- * @param {Array} holders The `partials` placeholder indexes.
- * @params {boolean} [isCurried] Specify composing for a curried function.
- * @returns {Array} Returns the new array of composed arguments.
- */
- function composeArgs(args, partials, holders, isCurried) {
- var argsIndex = -1,
- argsLength = args.length,
- holdersLength = holders.length,
- leftIndex = -1,
- leftLength = partials.length,
- rangeLength = nativeMax(argsLength - holdersLength, 0),
- result = Array(leftLength + rangeLength),
- isUncurried = !isCurried;
-
- while (++leftIndex < leftLength) {
- result[leftIndex] = partials[leftIndex];
- }
- while (++argsIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result[holders[argsIndex]] = args[argsIndex];
- }
- }
- while (rangeLength--) {
- result[leftIndex++] = args[argsIndex++];
- }
- return result;
- }
-
- /**
- * This function is like `composeArgs` except that the arguments composition
- * is tailored for `_.partialRight`.
- *
- * @private
- * @param {Array} args The provided arguments.
- * @param {Array} partials The arguments to append to those provided.
- * @param {Array} holders The `partials` placeholder indexes.
- * @params {boolean} [isCurried] Specify composing for a curried function.
- * @returns {Array} Returns the new array of composed arguments.
- */
- function composeArgsRight(args, partials, holders, isCurried) {
- var argsIndex = -1,
- argsLength = args.length,
- holdersIndex = -1,
- holdersLength = holders.length,
- rightIndex = -1,
- rightLength = partials.length,
- rangeLength = nativeMax(argsLength - holdersLength, 0),
- result = Array(rangeLength + rightLength),
- isUncurried = !isCurried;
-
- while (++argsIndex < rangeLength) {
- result[argsIndex] = args[argsIndex];
- }
- var offset = argsIndex;
- while (++rightIndex < rightLength) {
- result[offset + rightIndex] = partials[rightIndex];
- }
- while (++holdersIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result[offset + holders[holdersIndex]] = args[argsIndex++];
- }
- }
- return result;
- }
-
- /**
- * Copies the values of `source` to `array`.
- *
- * @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
- */
- function copyArray(source, array) {
- var index = -1,
- length = source.length;
-
- array || (array = Array(length));
- while (++index < length) {
- array[index] = source[index];
- }
- return array;
- }
-
- /**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property identifiers to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
- function copyObject(source, props, object, customizer) {
- object || (object = {});
-
- var index = -1,
- length = props.length;
-
- while (++index < length) {
- var key = props[index];
-
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : source[key];
-
- assignValue(object, key, newValue);
- }
- return object;
- }
-
- /**
- * Copies own symbol properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
- function copySymbols(source, object) {
- return copyObject(source, getSymbols(source), object);
- }
-
- /**
- * Creates a function like `_.groupBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} [initializer] The accumulator object initializer.
- * @returns {Function} Returns the new aggregator function.
- */
- function createAggregator(setter, initializer) {
- return function(collection, iteratee) {
- var func = isArray(collection) ? arrayAggregator : baseAggregator,
- accumulator = initializer ? initializer() : {};
-
- return func(collection, setter, getIteratee(iteratee), accumulator);
- };
- }
-
- /**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
- function createAssigner(assigner) {
- return rest(function(object, sources) {
- var index = -1,
- length = sources.length,
- customizer = length > 1 ? sources[length - 1] : undefined,
- guard = length > 2 ? sources[2] : undefined;
-
- customizer = (assigner.length > 3 && typeof customizer == 'function')
- ? (length--, customizer)
- : undefined;
-
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- customizer = length < 3 ? undefined : customizer;
- length = 1;
- }
- object = Object(object);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object, source, index, customizer);
- }
- }
- return object;
- });
- }
-
- /**
- * Creates a `baseEach` or `baseEachRight` function.
- *
- * @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
-
- /**
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
-
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with the optional `this`
- * binding of `thisArg`.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createBaseWrapper(func, bitmask, thisArg) {
- var isBind = bitmask & BIND_FLAG,
- Ctor = createCtorWrapper(func);
-
- function wrapper() {
- var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
- return fn.apply(isBind ? thisArg : this, arguments);
- }
- return wrapper;
- }
-
- /**
- * Creates a function like `_.lowerFirst`.
- *
- * @private
- * @param {string} methodName The name of the `String` case method to use.
- * @returns {Function} Returns the new case function.
- */
- function createCaseFirst(methodName) {
- return function(string) {
- string = toString(string);
-
- var strSymbols = reHasComplexSymbol.test(string)
- ? stringToArray(string)
- : undefined;
-
- var chr = strSymbols
- ? strSymbols[0]
- : string.charAt(0);
-
- var trailing = strSymbols
- ? castSlice(strSymbols, 1).join('')
- : string.slice(1);
-
- return chr[methodName]() + trailing;
- };
- }
-
- /**
- * Creates a function like `_.camelCase`.
- *
- * @private
- * @param {Function} callback The function to combine each word.
- * @returns {Function} Returns the new compounder function.
- */
- function createCompounder(callback) {
- return function(string) {
- return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
- };
- }
-
- /**
- * Creates a function that produces an instance of `Ctor` regardless of
- * whether it was invoked as part of a `new` expression or by `call` or `apply`.
- *
- * @private
- * @param {Function} Ctor The constructor to wrap.
- * @returns {Function} Returns the new wrapped function.
- */
- function createCtorWrapper(Ctor) {
- return function() {
- // Use a `switch` statement to work with class constructors. See
- // http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
- // for more details.
- var args = arguments;
- switch (args.length) {
- case 0: return new Ctor;
- case 1: return new Ctor(args[0]);
- case 2: return new Ctor(args[0], args[1]);
- case 3: return new Ctor(args[0], args[1], args[2]);
- case 4: return new Ctor(args[0], args[1], args[2], args[3]);
- case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
- case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
- case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
- }
- var thisBinding = baseCreate(Ctor.prototype),
- result = Ctor.apply(thisBinding, args);
-
- // Mimic the constructor's `return` behavior.
- // See https://es5.github.io/#x13.2.2 for more details.
- return isObject(result) ? result : thisBinding;
- };
- }
-
- /**
- * Creates a function that wraps `func` to enable currying.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {number} arity The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createCurryWrapper(func, bitmask, arity) {
- var Ctor = createCtorWrapper(func);
-
- function wrapper() {
- var length = arguments.length,
- args = Array(length),
- index = length,
- placeholder = getHolder(wrapper);
-
- while (index--) {
- args[index] = arguments[index];
- }
- var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
- ? []
- : replaceHolders(args, placeholder);
-
- length -= holders.length;
- if (length < arity) {
- return createRecurryWrapper(
- func, bitmask, createHybridWrapper, wrapper.placeholder, undefined,
- args, holders, undefined, undefined, arity - length);
- }
- var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
- return apply(fn, this, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a `_.find` or `_.findLast` function.
- *
- * @private
- * @param {Function} findIndexFunc The function to find the collection index.
- * @returns {Function} Returns the new find function.
- */
- function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- predicate = getIteratee(predicate, 3);
- if (!isArrayLike(collection)) {
- var props = keys(collection);
- }
- var index = findIndexFunc(props || collection, function(value, key) {
- if (props) {
- key = value;
- value = iterable[key];
- }
- return predicate(value, key, iterable);
- }, fromIndex);
- return index > -1 ? collection[props ? props[index] : index] : undefined;
- };
- }
-
- /**
- * Creates a `_.flow` or `_.flowRight` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new flow function.
- */
- function createFlow(fromRight) {
- return rest(function(funcs) {
- funcs = baseFlatten(funcs, 1);
-
- var length = funcs.length,
- index = length,
- prereq = LodashWrapper.prototype.thru;
-
- if (fromRight) {
- funcs.reverse();
- }
- while (index--) {
- var func = funcs[index];
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
- var wrapper = new LodashWrapper([], true);
- }
- }
- index = wrapper ? index : length;
- while (++index < length) {
- func = funcs[index];
-
- var funcName = getFuncName(func),
- data = funcName == 'wrapper' ? getData(func) : undefined;
-
- if (data && isLaziable(data[0]) &&
- data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) &&
- !data[4].length && data[9] == 1
- ) {
- wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
- } else {
- wrapper = (func.length == 1 && isLaziable(func))
- ? wrapper[funcName]()
- : wrapper.thru(func);
- }
- }
- return function() {
- var args = arguments,
- value = args[0];
-
- if (wrapper && args.length == 1 &&
- isArray(value) && value.length >= LARGE_ARRAY_SIZE) {
- return wrapper.plant(value).value();
- }
- var index = 0,
- result = length ? funcs[index].apply(this, args) : value;
-
- while (++index < length) {
- result = funcs[index].call(this, result);
- }
- return result;
- };
- });
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with optional `this`
- * binding of `thisArg`, partial application, and currying.
- *
- * @private
- * @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to
- * the new function.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [partialsRight] The arguments to append to those provided
- * to the new function.
- * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
- var isAry = bitmask & ARY_FLAG,
- isBind = bitmask & BIND_FLAG,
- isBindKey = bitmask & BIND_KEY_FLAG,
- isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG),
- isFlip = bitmask & FLIP_FLAG,
- Ctor = isBindKey ? undefined : createCtorWrapper(func);
-
- function wrapper() {
- var length = arguments.length,
- args = Array(length),
- index = length;
-
- while (index--) {
- args[index] = arguments[index];
- }
- if (isCurried) {
- var placeholder = getHolder(wrapper),
- holdersCount = countHolders(args, placeholder);
- }
- if (partials) {
- args = composeArgs(args, partials, holders, isCurried);
- }
- if (partialsRight) {
- args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
- }
- length -= holdersCount;
- if (isCurried && length < arity) {
- var newHolders = replaceHolders(args, placeholder);
- return createRecurryWrapper(
- func, bitmask, createHybridWrapper, wrapper.placeholder, thisArg,
- args, newHolders, argPos, ary, arity - length
- );
- }
- var thisBinding = isBind ? thisArg : this,
- fn = isBindKey ? thisBinding[func] : func;
-
- length = args.length;
- if (argPos) {
- args = reorder(args, argPos);
- } else if (isFlip && length > 1) {
- args.reverse();
- }
- if (isAry && ary < length) {
- args.length = ary;
- }
- if (this && this !== root && this instanceof wrapper) {
- fn = Ctor || createCtorWrapper(fn);
- }
- return fn.apply(thisBinding, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a function like `_.invertBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} toIteratee The function to resolve iteratees.
- * @returns {Function} Returns the new inverter function.
- */
- function createInverter(setter, toIteratee) {
- return function(object, iteratee) {
- return baseInverter(object, setter, toIteratee(iteratee), {});
- };
- }
-
- /**
- * Creates a function that performs a mathematical operation on two values.
- *
- * @private
- * @param {Function} operator The function to perform the operation.
- * @returns {Function} Returns the new mathematical operation function.
- */
- function createMathOperation(operator) {
- return function(value, other) {
- var result;
- if (value === undefined && other === undefined) {
- return 0;
- }
- if (value !== undefined) {
- result = value;
- }
- if (other !== undefined) {
- if (result === undefined) {
- return other;
- }
- if (typeof value == 'string' || typeof other == 'string') {
- value = baseToString(value);
- other = baseToString(other);
- } else {
- value = baseToNumber(value);
- other = baseToNumber(other);
- }
- result = operator(value, other);
- }
- return result;
- };
- }
-
- /**
- * Creates a function like `_.over`.
- *
- * @private
- * @param {Function} arrayFunc The function to iterate over iteratees.
- * @returns {Function} Returns the new over function.
- */
- function createOver(arrayFunc) {
- return rest(function(iteratees) {
- iteratees = (iteratees.length == 1 && isArray(iteratees[0]))
- ? arrayMap(iteratees[0], baseUnary(getIteratee()))
- : arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseUnary(getIteratee()));
-
- return rest(function(args) {
- var thisArg = this;
- return arrayFunc(iteratees, function(iteratee) {
- return apply(iteratee, thisArg, args);
- });
- });
- });
- }
-
- /**
- * Creates the padding for `string` based on `length`. The `chars` string
- * is truncated if the number of characters exceeds `length`.
- *
- * @private
- * @param {number} length The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padding for `string`.
- */
- function createPadding(length, chars) {
- chars = chars === undefined ? ' ' : baseToString(chars);
-
- var charsLength = chars.length;
- if (charsLength < 2) {
- return charsLength ? baseRepeat(chars, length) : chars;
- }
- var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
- return reHasComplexSymbol.test(chars)
- ? castSlice(stringToArray(result), 0, length).join('')
- : result.slice(0, length);
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with the `this` binding
- * of `thisArg` and `partials` prepended to the arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to
- * the new function.
- * @returns {Function} Returns the new wrapped function.
- */
- function createPartialWrapper(func, bitmask, thisArg, partials) {
- var isBind = bitmask & BIND_FLAG,
- Ctor = createCtorWrapper(func);
-
- function wrapper() {
- var argsIndex = -1,
- argsLength = arguments.length,
- leftIndex = -1,
- leftLength = partials.length,
- args = Array(leftLength + argsLength),
- fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-
- while (++leftIndex < leftLength) {
- args[leftIndex] = partials[leftIndex];
- }
- while (argsLength--) {
- args[leftIndex++] = arguments[++argsIndex];
- }
- return apply(fn, isBind ? thisArg : this, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a `_.range` or `_.rangeRight` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new range function.
- */
- function createRange(fromRight) {
- return function(start, end, step) {
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
- end = step = undefined;
- }
- // Ensure the sign of `-0` is preserved.
- start = toNumber(start);
- start = start === start ? start : 0;
- if (end === undefined) {
- end = start;
- start = 0;
- } else {
- end = toNumber(end) || 0;
- }
- step = step === undefined ? (start < end ? 1 : -1) : (toNumber(step) || 0);
- return baseRange(start, end, step, fromRight);
- };
- }
-
- /**
- * Creates a function that performs a relational operation on two values.
- *
- * @private
- * @param {Function} operator The function to perform the operation.
- * @returns {Function} Returns the new relational operation function.
- */
- function createRelationalOperation(operator) {
- return function(value, other) {
- if (!(typeof value == 'string' && typeof other == 'string')) {
- value = toNumber(value);
- other = toNumber(other);
- }
- return operator(value, other);
- };
- }
-
- /**
- * Creates a function that wraps `func` to continue currying.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
- * for more details.
- * @param {Function} wrapFunc The function to create the `func` wrapper.
- * @param {*} placeholder The placeholder value.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to
- * the new function.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createRecurryWrapper(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
- var isCurry = bitmask & CURRY_FLAG,
- newHolders = isCurry ? holders : undefined,
- newHoldersRight = isCurry ? undefined : holders,
- newPartials = isCurry ? partials : undefined,
- newPartialsRight = isCurry ? undefined : partials;
-
- bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG);
- bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG);
-
- if (!(bitmask & CURRY_BOUND_FLAG)) {
- bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
- }
- var newData = [
- func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
- newHoldersRight, argPos, ary, arity
- ];
-
- var result = wrapFunc.apply(undefined, newData);
- if (isLaziable(func)) {
- setData(result, newData);
- }
- result.placeholder = placeholder;
- return result;
- }
-
- /**
- * Creates a function like `_.round`.
- *
- * @private
- * @param {string} methodName The name of the `Math` method to use when rounding.
- * @returns {Function} Returns the new round function.
- */
- function createRound(methodName) {
- var func = Math[methodName];
- return function(number, precision) {
- number = toNumber(number);
- precision = nativeMin(toInteger(precision), 292);
- if (precision) {
- // Shift with exponential notation to avoid floating-point issues.
- // See [MDN](https://mdn.io/round#Examples) for more details.
- var pair = (toString(number) + 'e').split('e'),
- value = func(pair[0] + 'e' + (+pair[1] + precision));
-
- pair = (toString(value) + 'e').split('e');
- return +(pair[0] + 'e' + (+pair[1] - precision));
- }
- return func(number);
- };
- }
-
- /**
- * Creates a set of `values`.
- *
- * @private
- * @param {Array} values The values to add to the set.
- * @returns {Object} Returns the new set.
- */
- var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
- return new Set(values);
- };
-
- /**
- * Creates a `_.toPairs` or `_.toPairsIn` function.
- *
- * @private
- * @param {Function} keysFunc The function to get the keys of a given object.
- * @returns {Function} Returns the new pairs function.
- */
- function createToPairs(keysFunc) {
- return function(object) {
- var tag = getTag(object);
- if (tag == mapTag) {
- return mapToArray(object);
- }
- if (tag == setTag) {
- return setToPairs(object);
- }
- return baseToPairs(object, keysFunc(object));
- };
- }
-
- /**
- * Creates a function that either curries or invokes `func` with optional
- * `this` binding and partially applied arguments.
- *
- * @private
- * @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask of wrapper flags.
- * The bitmask may be composed of the following flags:
- * 1 - `_.bind`
- * 2 - `_.bindKey`
- * 4 - `_.curry` or `_.curryRight` of a bound function
- * 8 - `_.curry`
- * 16 - `_.curryRight`
- * 32 - `_.partial`
- * 64 - `_.partialRight`
- * 128 - `_.rearg`
- * 256 - `_.ary`
- * 512 - `_.flip`
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to be partially applied.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
- var isBindKey = bitmask & BIND_KEY_FLAG;
- if (!isBindKey && typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var length = partials ? partials.length : 0;
- if (!length) {
- bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG);
- partials = holders = undefined;
- }
- ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
- arity = arity === undefined ? arity : toInteger(arity);
- length -= holders ? holders.length : 0;
-
- if (bitmask & PARTIAL_RIGHT_FLAG) {
- var partialsRight = partials,
- holdersRight = holders;
-
- partials = holders = undefined;
- }
- var data = isBindKey ? undefined : getData(func);
-
- var newData = [
- func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
- argPos, ary, arity
- ];
-
- if (data) {
- mergeData(newData, data);
- }
- func = newData[0];
- bitmask = newData[1];
- thisArg = newData[2];
- partials = newData[3];
- holders = newData[4];
- arity = newData[9] = newData[9] == null
- ? (isBindKey ? 0 : func.length)
- : nativeMax(newData[9] - length, 0);
-
- if (!arity && bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG)) {
- bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG);
- }
- if (!bitmask || bitmask == BIND_FLAG) {
- var result = createBaseWrapper(func, bitmask, thisArg);
- } else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) {
- result = createCurryWrapper(func, bitmask, arity);
- } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) {
- result = createPartialWrapper(func, bitmask, thisArg, partials);
- } else {
- result = createHybridWrapper.apply(undefined, newData);
- }
- var setter = data ? baseSetData : setData;
- return setter(result, newData);
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for arrays with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Array} array The array to compare.
- * @param {Array} other The other array to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `array` and `other` objects.
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
- */
- function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
- arrLength = array.length,
- othLength = other.length;
-
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(array);
- if (stacked) {
- return stacked == other;
- }
- var index = -1,
- result = true,
- seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined;
-
- stack.set(array, other);
-
- // Ignore non-index properties.
- while (++index < arrLength) {
- var arrValue = array[index],
- othValue = other[index];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, arrValue, index, other, array, stack)
- : customizer(arrValue, othValue, index, array, other, stack);
- }
- if (compared !== undefined) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
- // Recursively compare arrays (susceptible to call stack limits).
- if (seen) {
- if (!arraySome(other, function(othValue, othIndex) {
- if (!seen.has(othIndex) &&
- (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
- return seen.add(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(
- arrValue === othValue ||
- equalFunc(arrValue, othValue, customizer, bitmask, stack)
- )) {
- result = false;
- break;
- }
- }
- stack['delete'](array);
- return result;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
- switch (tag) {
- case dataViewTag:
- if ((object.byteLength != other.byteLength) ||
- (object.byteOffset != other.byteOffset)) {
- return false;
- }
- object = object.buffer;
- other = other.buffer;
-
- case arrayBufferTag:
- if ((object.byteLength != other.byteLength) ||
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
- return false;
- }
- return true;
-
- case boolTag:
- case dateTag:
- // Coerce dates and booleans to numbers, dates to milliseconds and
- // booleans to `1` or `0` treating invalid dates coerced to `NaN` as
- // not equal.
- return +object == +other;
-
- case errorTag:
- return object.name == other.name && object.message == other.message;
-
- case numberTag:
- // Treat `NaN` vs. `NaN` as equal.
- return (object != +object) ? other != +other : object == +other;
-
- case regexpTag:
- case stringTag:
- // Coerce regexes to strings and treat strings, primitives and objects,
- // as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
- // for more details.
- return object == (other + '');
-
- case mapTag:
- var convert = mapToArray;
-
- case setTag:
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
- convert || (convert = setToArray);
-
- if (object.size != other.size && !isPartial) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= UNORDERED_COMPARE_FLAG;
- stack.set(object, other);
-
- // Recursively compare objects (susceptible to call stack limits).
- return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
-
- case symbolTag:
- if (symbolValueOf) {
- return symbolValueOf.call(object) == symbolValueOf.call(other);
- }
- }
- return false;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} customizer The function to customize comparisons.
- * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
- * for more details.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
- objProps = keys(object),
- objLength = objProps.length,
- othProps = keys(other),
- othLength = othProps.length;
-
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : baseHas(other, key))) {
- return false;
- }
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- var result = true;
- stack.set(object, other);
-
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, objValue, key, other, object, stack)
- : customizer(objValue, othValue, key, object, other, stack);
- }
- // Recursively compare objects (susceptible to call stack limits).
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
-
- // Non `Object` object instances with different constructors are not equal.
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- stack['delete'](object);
- return result;
- }
-
- /**
- * Creates an array of own enumerable property names and symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function getAllKeys(object) {
- return baseGetAllKeys(object, keys, getSymbols);
- }
-
- /**
- * Creates an array of own and inherited enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function getAllKeysIn(object) {
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
- }
-
- /**
- * Gets metadata for `func`.
- *
- * @private
- * @param {Function} func The function to query.
- * @returns {*} Returns the metadata for `func`.
- */
- var getData = !metaMap ? noop : function(func) {
- return metaMap.get(func);
- };
-
- /**
- * Gets the name of `func`.
- *
- * @private
- * @param {Function} func The function to query.
- * @returns {string} Returns the function name.
- */
- function getFuncName(func) {
- var result = (func.name + ''),
- array = realNames[result],
- length = hasOwnProperty.call(realNames, result) ? array.length : 0;
-
- while (length--) {
- var data = array[length],
- otherFunc = data.func;
- if (otherFunc == null || otherFunc == func) {
- return data.name;
- }
- }
- return result;
- }
-
- /**
- * Gets the argument placeholder value for `func`.
- *
- * @private
- * @param {Function} func The function to inspect.
- * @returns {*} Returns the placeholder value.
- */
- function getHolder(func) {
- var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
- return object.placeholder;
- }
-
- /**
- * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
- * this function returns the custom method, otherwise it returns `baseIteratee`.
- * If arguments are provided, the chosen function is invoked with them and
- * its result is returned.
- *
- * @private
- * @param {*} [value] The value to convert to an iteratee.
- * @param {number} [arity] The arity of the created iteratee.
- * @returns {Function} Returns the chosen function or its result.
- */
- function getIteratee() {
- var result = lodash.iteratee || iteratee;
- result = result === iteratee ? baseIteratee : result;
- return arguments.length ? result(arguments[0], arguments[1]) : result;
- }
-
- /**
- * Gets the "length" property value of `object`.
- *
- * **Note:** This function is used to avoid a
- * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
- * Safari on at least iOS 8.1-8.3 ARM64.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {*} Returns the "length" value.
- */
- var getLength = baseProperty('length');
-
- /**
- * Gets the data for `map`.
- *
- * @private
- * @param {Object} map The map to query.
- * @param {string} key The reference key.
- * @returns {*} Returns the map data.
- */
- function getMapData(map, key) {
- var data = map.__data__;
- return isKeyable(key)
- ? data[typeof key == 'string' ? 'string' : 'hash']
- : data.map;
- }
-
- /**
- * Gets the property names, values, and compare flags of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the match data of `object`.
- */
- function getMatchData(object) {
- var result = keys(object),
- length = result.length;
-
- while (length--) {
- var key = result[length],
- value = object[key];
-
- result[length] = [key, value, isStrictComparable(value)];
- }
- return result;
- }
-
- /**
- * Gets the native function at `key` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the method to get.
- * @returns {*} Returns the function if it's native, else `undefined`.
- */
- function getNative(object, key) {
- var value = getValue(object, key);
- return baseIsNative(value) ? value : undefined;
- }
-
- /**
- * Gets the `[[Prototype]]` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {null|Object} Returns the `[[Prototype]]`.
- */
- function getPrototype(value) {
- return nativeGetPrototype(Object(value));
- }
-
- /**
- * Creates an array of the own enumerable symbol properties of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
- function getSymbols(object) {
- // Coerce `object` to an object to avoid non-object errors in V8.
- // See https://bugs.chromium.org/p/v8/issues/detail?id=3443 for more details.
- return getOwnPropertySymbols(Object(object));
- }
-
- // Fallback for IE < 11.
- if (!getOwnPropertySymbols) {
- getSymbols = stubArray;
- }
-
- /**
- * Creates an array of the own and inherited enumerable symbol properties
- * of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
- var getSymbolsIn = !getOwnPropertySymbols ? getSymbols : function(object) {
- var result = [];
- while (object) {
- arrayPush(result, getSymbols(object));
- object = getPrototype(object);
- }
- return result;
- };
-
- /**
- * Gets the `toStringTag` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
- function getTag(value) {
- return objectToString.call(value);
- }
-
- // Fallback for data views, maps, sets, and weak maps in IE 11,
- // for data views in Edge, and promises in Node.js.
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
- (Map && getTag(new Map) != mapTag) ||
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
- (Set && getTag(new Set) != setTag) ||
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
- getTag = function(value) {
- var result = objectToString.call(value),
- Ctor = result == objectTag ? value.constructor : undefined,
- ctorString = Ctor ? toSource(Ctor) : undefined;
-
- if (ctorString) {
- switch (ctorString) {
- case dataViewCtorString: return dataViewTag;
- case mapCtorString: return mapTag;
- case promiseCtorString: return promiseTag;
- case setCtorString: return setTag;
- case weakMapCtorString: return weakMapTag;
- }
- }
- return result;
- };
- }
-
- /**
- * Gets the view, applying any `transforms` to the `start` and `end` positions.
- *
- * @private
- * @param {number} start The start of the view.
- * @param {number} end The end of the view.
- * @param {Array} transforms The transformations to apply to the view.
- * @returns {Object} Returns an object containing the `start` and `end`
- * positions of the view.
- */
- function getView(start, end, transforms) {
- var index = -1,
- length = transforms.length;
-
- while (++index < length) {
- var data = transforms[index],
- size = data.size;
-
- switch (data.type) {
- case 'drop': start += size; break;
- case 'dropRight': end -= size; break;
- case 'take': end = nativeMin(end, start + size); break;
- case 'takeRight': start = nativeMax(start, end - size); break;
- }
- }
- return { 'start': start, 'end': end };
- }
-
- /**
- * Checks if `path` exists on `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @param {Function} hasFunc The function to check properties.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- */
- function hasPath(object, path, hasFunc) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var result,
- index = -1,
- length = path.length;
-
- while (++index < length) {
- var key = toKey(path[index]);
- if (!(result = object != null && hasFunc(object, key))) {
- break;
- }
- object = object[key];
- }
- if (result) {
- return result;
- }
- var length = object ? object.length : 0;
- return !!length && isLength(length) && isIndex(key, length) &&
- (isArray(object) || isString(object) || isArguments(object));
- }
-
- /**
- * Initializes an array clone.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the initialized clone.
- */
- function initCloneArray(array) {
- var length = array.length,
- result = array.constructor(length);
-
- // Add properties assigned by `RegExp#exec`.
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
- result.index = array.index;
- result.input = array.input;
- }
- return result;
- }
-
- /**
- * Initializes an object clone.
- *
- * @private
- * @param {Object} object The object to clone.
- * @returns {Object} Returns the initialized clone.
- */
- function initCloneObject(object) {
- return (typeof object.constructor == 'function' && !isPrototype(object))
- ? baseCreate(getPrototype(object))
- : {};
- }
-
- /**
- * Initializes an object clone based on its `toStringTag`.
- *
- * **Note:** This function only supports cloning values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {string} tag The `toStringTag` of the object to clone.
- * @param {Function} cloneFunc The function to clone values.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the initialized clone.
- */
- function initCloneByTag(object, tag, cloneFunc, isDeep) {
- var Ctor = object.constructor;
- switch (tag) {
- case arrayBufferTag:
- return cloneArrayBuffer(object);
-
- case boolTag:
- case dateTag:
- return new Ctor(+object);
-
- case dataViewTag:
- return cloneDataView(object, isDeep);
-
- case float32Tag: case float64Tag:
- case int8Tag: case int16Tag: case int32Tag:
- case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
- return cloneTypedArray(object, isDeep);
-
- case mapTag:
- return cloneMap(object, isDeep, cloneFunc);
-
- case numberTag:
- case stringTag:
- return new Ctor(object);
-
- case regexpTag:
- return cloneRegExp(object);
-
- case setTag:
- return cloneSet(object, isDeep, cloneFunc);
-
- case symbolTag:
- return cloneSymbol(object);
- }
- }
-
- /**
- * Creates an array of index keys for `object` values of arrays,
- * `arguments` objects, and strings, otherwise `null` is returned.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array|null} Returns index keys, else `null`.
- */
- function indexKeys(object) {
- var length = object ? object.length : undefined;
- if (isLength(length) &&
- (isArray(object) || isString(object) || isArguments(object))) {
- return baseTimes(length, String);
- }
- return null;
- }
-
- /**
- * Checks if `value` is a flattenable `arguments` object or array.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
- function isFlattenable(value) {
- return isArray(value) || isArguments(value);
- }
-
- /**
- * Checks if `value` is a flattenable array and not a `_.matchesProperty`
- * iteratee shorthand.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
- function isFlattenableIteratee(value) {
- return isArray(value) && !(value.length == 2 && !isFunction(value[0]));
- }
-
- /**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
- function isIndex(value, length) {
- length = length == null ? MAX_SAFE_INTEGER : length;
- return !!length &&
- (typeof value == 'number' || reIsUint.test(value)) &&
- (value > -1 && value % 1 == 0 && value < length);
- }
-
- /**
- * Checks if the given arguments are from an iteratee call.
- *
- * @private
- * @param {*} value The potential iteratee value argument.
- * @param {*} index The potential iteratee index or key argument.
- * @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
- * else `false`.
- */
- function isIterateeCall(value, index, object) {
- if (!isObject(object)) {
- return false;
- }
- var type = typeof index;
- if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)
- ) {
- return eq(object[index], value);
- }
- return false;
- }
-
- /**
- * Checks if `value` is a property name and not a property path.
- *
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
- */
- function isKey(value, object) {
- if (isArray(value)) {
- return false;
- }
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
- }
-
- /**
- * Checks if `value` is suitable for use as unique object key.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
- */
- function isKeyable(value) {
- var type = typeof value;
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
- ? (value !== '__proto__')
- : (value === null);
- }
-
- /**
- * Checks if `func` has a lazy counterpart.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
- * else `false`.
- */
- function isLaziable(func) {
- var funcName = getFuncName(func),
- other = lodash[funcName];
-
- if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
- return false;
- }
- if (func === other) {
- return true;
- }
- var data = getData(other);
- return !!data && func === data[0];
- }
-
- /**
- * Checks if `func` has its source masked.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
- */
- function isMasked(func) {
- return !!maskSrcKey && (maskSrcKey in func);
- }
-
- /**
- * Checks if `func` is capable of being masked.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
- */
- var isMaskable = coreJsData ? isFunction : stubFalse;
-
- /**
- * Checks if `value` is likely a prototype object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
- */
- function isPrototype(value) {
- var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
- return value === proto;
- }
-
- /**
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` if suitable for strict
- * equality comparisons, else `false`.
- */
- function isStrictComparable(value) {
- return value === value && !isObject(value);
- }
-
- /**
- * A specialized version of `matchesProperty` for source values suitable
- * for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function matchesStrictComparable(key, srcValue) {
- return function(object) {
- if (object == null) {
- return false;
- }
- return object[key] === srcValue &&
- (srcValue !== undefined || (key in Object(object)));
- };
- }
-
- /**
- * Merges the function metadata of `source` into `data`.
- *
- * Merging metadata reduces the number of wrappers used to invoke a function.
- * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
- * may be applied regardless of execution order. Methods like `_.ary` and
- * `_.rearg` modify function arguments, making the order in which they are
- * executed important, preventing the merging of metadata. However, we make
- * an exception for a safe combined case where curried functions have `_.ary`
- * and or `_.rearg` applied.
- *
- * @private
- * @param {Array} data The destination metadata.
- * @param {Array} source The source metadata.
- * @returns {Array} Returns `data`.
- */
- function mergeData(data, source) {
- var bitmask = data[1],
- srcBitmask = source[1],
- newBitmask = bitmask | srcBitmask,
- isCommon = newBitmask < (BIND_FLAG | BIND_KEY_FLAG | ARY_FLAG);
-
- var isCombo =
- ((srcBitmask == ARY_FLAG) && (bitmask == CURRY_FLAG)) ||
- ((srcBitmask == ARY_FLAG) && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) ||
- ((srcBitmask == (ARY_FLAG | REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG));
-
- // Exit early if metadata can't be merged.
- if (!(isCommon || isCombo)) {
- return data;
- }
- // Use source `thisArg` if available.
- if (srcBitmask & BIND_FLAG) {
- data[2] = source[2];
- // Set when currying a bound function.
- newBitmask |= bitmask & BIND_FLAG ? 0 : CURRY_BOUND_FLAG;
- }
- // Compose partial arguments.
- var value = source[3];
- if (value) {
- var partials = data[3];
- data[3] = partials ? composeArgs(partials, value, source[4]) : value;
- data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
- }
- // Compose partial right arguments.
- value = source[5];
- if (value) {
- partials = data[5];
- data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
- data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
- }
- // Use source `argPos` if available.
- value = source[7];
- if (value) {
- data[7] = value;
- }
- // Use source `ary` if it's smaller.
- if (srcBitmask & ARY_FLAG) {
- data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
- }
- // Use source `arity` if one is not provided.
- if (data[9] == null) {
- data[9] = source[9];
- }
- // Use source `func` and merge bitmasks.
- data[0] = source[0];
- data[1] = newBitmask;
-
- return data;
- }
-
- /**
- * Used by `_.defaultsDeep` to customize its `_.merge` use.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to merge.
- * @param {Object} object The parent object of `objValue`.
- * @param {Object} source The parent object of `srcValue`.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- * @returns {*} Returns the value to assign.
- */
- function mergeDefaults(objValue, srcValue, key, object, source, stack) {
- if (isObject(objValue) && isObject(srcValue)) {
- baseMerge(objValue, srcValue, undefined, mergeDefaults, stack.set(srcValue, objValue));
- }
- return objValue;
- }
-
- /**
- * Gets the parent value at `path` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} path The path to get the parent value of.
- * @returns {*} Returns the parent value.
- */
- function parent(object, path) {
- return path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
- }
-
- /**
- * Reorder `array` according to the specified indexes where the element at
- * the first index is assigned as the first element, the element at
- * the second index is assigned as the second element, and so on.
- *
- * @private
- * @param {Array} array The array to reorder.
- * @param {Array} indexes The arranged array indexes.
- * @returns {Array} Returns `array`.
- */
- function reorder(array, indexes) {
- var arrLength = array.length,
- length = nativeMin(indexes.length, arrLength),
- oldArray = copyArray(array);
-
- while (length--) {
- var index = indexes[length];
- array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
- }
- return array;
- }
-
- /**
- * Sets metadata for `func`.
- *
- * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
- * period of time, it will trip its breaker and transition to an identity
- * function to avoid garbage collection pauses in V8. See
- * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
- * for more details.
- *
- * @private
- * @param {Function} func The function to associate metadata with.
- * @param {*} data The metadata.
- * @returns {Function} Returns `func`.
- */
- var setData = (function() {
- var count = 0,
- lastCalled = 0;
-
- return function(key, value) {
- var stamp = now(),
- remaining = HOT_SPAN - (stamp - lastCalled);
-
- lastCalled = stamp;
- if (remaining > 0) {
- if (++count >= HOT_COUNT) {
- return key;
- }
- } else {
- count = 0;
- }
- return baseSetData(key, value);
- };
- }());
-
- /**
- * Converts `string` to a property path array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
- */
- var stringToPath = memoize(function(string) {
- var result = [];
- toString(string).replace(rePropName, function(match, number, quote, string) {
- result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
- });
-
- /**
- * Converts `value` to a string key if it's not a string or symbol.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {string|symbol} Returns the key.
- */
- function toKey(value) {
- if (typeof value == 'string' || isSymbol(value)) {
- return value;
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
-
- /**
- * Converts `func` to its source code.
- *
- * @private
- * @param {Function} func The function to process.
- * @returns {string} Returns the source code.
- */
- function toSource(func) {
- if (func != null) {
- try {
- return funcToString.call(func);
- } catch (e) {}
- try {
- return (func + '');
- } catch (e) {}
- }
- return '';
- }
-
- /**
- * Creates a clone of `wrapper`.
- *
- * @private
- * @param {Object} wrapper The wrapper to clone.
- * @returns {Object} Returns the cloned wrapper.
- */
- function wrapperClone(wrapper) {
- if (wrapper instanceof LazyWrapper) {
- return wrapper.clone();
- }
- var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
- result.__actions__ = copyArray(wrapper.__actions__);
- result.__index__ = wrapper.__index__;
- result.__values__ = wrapper.__values__;
- return result;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an array of elements split into groups the length of `size`.
- * If `array` can't be split evenly, the final chunk will be the remaining
- * elements.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to process.
- * @param {number} [size=1] The length of each chunk
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the new array of chunks.
- * @example
- *
- * _.chunk(['a', 'b', 'c', 'd'], 2);
- * // => [['a', 'b'], ['c', 'd']]
- *
- * _.chunk(['a', 'b', 'c', 'd'], 3);
- * // => [['a', 'b', 'c'], ['d']]
- */
- function chunk(array, size, guard) {
- if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
- size = 1;
- } else {
- size = nativeMax(toInteger(size), 0);
- }
- var length = array ? array.length : 0;
- if (!length || size < 1) {
- return [];
- }
- var index = 0,
- resIndex = 0,
- result = Array(nativeCeil(length / size));
-
- while (index < length) {
- result[resIndex++] = baseSlice(array, index, (index += size));
- }
- return result;
- }
-
- /**
- * Creates an array with all falsey values removed. The values `false`, `null`,
- * `0`, `""`, `undefined`, and `NaN` are falsey.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to compact.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.compact([0, 1, false, 2, '', 3]);
- * // => [1, 2, 3]
- */
- function compact(array) {
- var index = -1,
- length = array ? array.length : 0,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (value) {
- result[resIndex++] = value;
- }
- }
- return result;
- }
-
- /**
- * Creates a new array concatenating `array` with any additional arrays
- * and/or values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to concatenate.
- * @param {...*} [values] The values to concatenate.
- * @returns {Array} Returns the new concatenated array.
- * @example
- *
- * var array = [1];
- * var other = _.concat(array, 2, [3], [[4]]);
- *
- * console.log(other);
- * // => [1, 2, 3, [4]]
- *
- * console.log(array);
- * // => [1]
- */
- function concat() {
- var length = arguments.length,
- args = Array(length ? length - 1 : 0),
- array = arguments[0],
- index = length;
-
- while (index--) {
- args[index - 1] = arguments[index];
- }
- return length
- ? arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1))
- : [];
- }
-
- /**
- * Creates an array of unique `array` values not included in the other given
- * arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. The order of result values is determined by the
- * order they occur in the first array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.without, _.xor
- * @example
- *
- * _.difference([2, 1], [2, 3]);
- * // => [1]
- */
- var difference = rest(function(array, values) {
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
- : [];
- });
-
- /**
- * This method is like `_.difference` except that it accepts `iteratee` which
- * is invoked for each element of `array` and `values` to generate the criterion
- * by which they're compared. Result values are chosen from the first array.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
- var differenceBy = rest(function(array, values) {
- var iteratee = last(values);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee))
- : [];
- });
-
- /**
- * This method is like `_.difference` except that it accepts `comparator`
- * which is invoked to compare elements of `array` to `values`. Result values
- * are chosen from the first array. The comparator is invoked with two arguments:
- * (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- *
- * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }]
- */
- var differenceWith = rest(function(array, values) {
- var comparator = last(values);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
- : [];
- });
-
- /**
- * Creates a slice of `array` with `n` elements dropped from the beginning.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.drop([1, 2, 3]);
- * // => [2, 3]
- *
- * _.drop([1, 2, 3], 2);
- * // => [3]
- *
- * _.drop([1, 2, 3], 5);
- * // => []
- *
- * _.drop([1, 2, 3], 0);
- * // => [1, 2, 3]
- */
- function drop(array, n, guard) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- return baseSlice(array, n < 0 ? 0 : n, length);
- }
-
- /**
- * Creates a slice of `array` with `n` elements dropped from the end.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.dropRight([1, 2, 3]);
- * // => [1, 2]
- *
- * _.dropRight([1, 2, 3], 2);
- * // => [1]
- *
- * _.dropRight([1, 2, 3], 5);
- * // => []
- *
- * _.dropRight([1, 2, 3], 0);
- * // => [1, 2, 3]
- */
- function dropRight(array, n, guard) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- n = length - n;
- return baseSlice(array, 0, n < 0 ? 0 : n);
- }
-
- /**
- * Creates a slice of `array` excluding elements dropped from the end.
- * Elements are dropped until `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.dropRightWhile(users, function(o) { return !o.active; });
- * // => objects for ['barney']
- *
- * // The `_.matches` iteratee shorthand.
- * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
- * // => objects for ['barney', 'fred']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.dropRightWhile(users, ['active', false]);
- * // => objects for ['barney']
- *
- * // The `_.property` iteratee shorthand.
- * _.dropRightWhile(users, 'active');
- * // => objects for ['barney', 'fred', 'pebbles']
- */
- function dropRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), true, true)
- : [];
- }
-
- /**
- * Creates a slice of `array` excluding elements dropped from the beginning.
- * Elements are dropped until `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.dropWhile(users, function(o) { return !o.active; });
- * // => objects for ['pebbles']
- *
- * // The `_.matches` iteratee shorthand.
- * _.dropWhile(users, { 'user': 'barney', 'active': false });
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.dropWhile(users, ['active', false]);
- * // => objects for ['pebbles']
- *
- * // The `_.property` iteratee shorthand.
- * _.dropWhile(users, 'active');
- * // => objects for ['barney', 'fred', 'pebbles']
- */
- function dropWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), true)
- : [];
- }
-
- /**
- * Fills elements of `array` with `value` from `start` up to, but not
- * including, `end`.
- *
- * **Note:** This method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Array
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.fill(array, 'a');
- * console.log(array);
- * // => ['a', 'a', 'a']
- *
- * _.fill(Array(3), 2);
- * // => [2, 2, 2]
- *
- * _.fill([4, 6, 8, 10], '*', 1, 3);
- * // => [4, '*', '*', 10]
- */
- function fill(array, value, start, end) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
- start = 0;
- end = length;
- }
- return baseFill(array, value, start, end);
- }
-
- /**
- * This method is like `_.find` except that it returns the index of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.findIndex(users, function(o) { return o.user == 'barney'; });
- * // => 0
- *
- * // The `_.matches` iteratee shorthand.
- * _.findIndex(users, { 'user': 'fred', 'active': false });
- * // => 1
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findIndex(users, ['active', false]);
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.findIndex(users, 'active');
- * // => 2
- */
- function findIndex(array, predicate, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseFindIndex(array, getIteratee(predicate, 3), index);
- }
-
- /**
- * This method is like `_.findIndex` except that it iterates over elements
- * of `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=array.length-1] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
- * // => 2
- *
- * // The `_.matches` iteratee shorthand.
- * _.findLastIndex(users, { 'user': 'barney', 'active': true });
- * // => 0
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findLastIndex(users, ['active', false]);
- * // => 2
- *
- * // The `_.property` iteratee shorthand.
- * _.findLastIndex(users, 'active');
- * // => 0
- */
- function findLastIndex(array, predicate, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = length - 1;
- if (fromIndex !== undefined) {
- index = toInteger(fromIndex);
- index = fromIndex < 0
- ? nativeMax(length + index, 0)
- : nativeMin(index, length - 1);
- }
- return baseFindIndex(array, getIteratee(predicate, 3), index, true);
- }
-
- /**
- * Flattens `array` a single level deep.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flatten([1, [2, [3, [4]], 5]]);
- * // => [1, 2, [3, [4]], 5]
- */
- function flatten(array) {
- var length = array ? array.length : 0;
- return length ? baseFlatten(array, 1) : [];
- }
-
- /**
- * Recursively flattens `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flattenDeep([1, [2, [3, [4]], 5]]);
- * // => [1, 2, 3, 4, 5]
- */
- function flattenDeep(array) {
- var length = array ? array.length : 0;
- return length ? baseFlatten(array, INFINITY) : [];
- }
-
- /**
- * Recursively flatten `array` up to `depth` times.
- *
- * @static
- * @memberOf _
- * @since 4.4.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @param {number} [depth=1] The maximum recursion depth.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * var array = [1, [2, [3, [4]], 5]];
- *
- * _.flattenDepth(array, 1);
- * // => [1, 2, [3, [4]], 5]
- *
- * _.flattenDepth(array, 2);
- * // => [1, 2, 3, [4], 5]
- */
- function flattenDepth(array, depth) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(array, depth);
- }
-
- /**
- * The inverse of `_.toPairs`; this method returns an object composed
- * from key-value `pairs`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} pairs The key-value pairs.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.fromPairs([['fred', 30], ['barney', 40]]);
- * // => { 'fred': 30, 'barney': 40 }
- */
- function fromPairs(pairs) {
- var index = -1,
- length = pairs ? pairs.length : 0,
- result = {};
-
- while (++index < length) {
- var pair = pairs[index];
- result[pair[0]] = pair[1];
- }
- return result;
- }
-
- /**
- * Gets the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias first
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the first element of `array`.
- * @example
- *
- * _.head([1, 2, 3]);
- * // => 1
- *
- * _.head([]);
- * // => undefined
- */
- function head(array) {
- return (array && array.length) ? array[0] : undefined;
- }
-
- /**
- * Gets the index at which the first occurrence of `value` is found in `array`
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the
- * offset from the end of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.indexOf([1, 2, 1, 2], 2);
- * // => 1
- *
- * // Search from the `fromIndex`.
- * _.indexOf([1, 2, 1, 2], 2, 2);
- * // => 3
- */
- function indexOf(array, value, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseIndexOf(array, value, index);
- }
-
- /**
- * Gets all but the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.initial([1, 2, 3]);
- * // => [1, 2]
- */
- function initial(array) {
- return dropRight(array, 1);
- }
-
- /**
- * Creates an array of unique values that are included in all given arrays
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. The order of result values is determined by the
- * order they occur in the first array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * _.intersection([2, 1], [2, 3]);
- * // => [2]
- */
- var intersection = rest(function(arrays) {
- var mapped = arrayMap(arrays, castArrayLikeObject);
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped)
- : [];
- });
-
- /**
- * This method is like `_.intersection` except that it accepts `iteratee`
- * which is invoked for each element of each `arrays` to generate the criterion
- * by which they're compared. Result values are chosen from the first array.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [2.1]
- *
- * // The `_.property` iteratee shorthand.
- * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }]
- */
- var intersectionBy = rest(function(arrays) {
- var iteratee = last(arrays),
- mapped = arrayMap(arrays, castArrayLikeObject);
-
- if (iteratee === last(mapped)) {
- iteratee = undefined;
- } else {
- mapped.pop();
- }
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped, getIteratee(iteratee))
- : [];
- });
-
- /**
- * This method is like `_.intersection` except that it accepts `comparator`
- * which is invoked to compare elements of `arrays`. Result values are chosen
- * from the first array. The comparator is invoked with two arguments:
- * (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.intersectionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }]
- */
- var intersectionWith = rest(function(arrays) {
- var comparator = last(arrays),
- mapped = arrayMap(arrays, castArrayLikeObject);
-
- if (comparator === last(mapped)) {
- comparator = undefined;
- } else {
- mapped.pop();
- }
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped, undefined, comparator)
- : [];
- });
-
- /**
- * Converts all elements in `array` into a string separated by `separator`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to convert.
- * @param {string} [separator=','] The element separator.
- * @returns {string} Returns the joined string.
- * @example
- *
- * _.join(['a', 'b', 'c'], '~');
- * // => 'a~b~c'
- */
- function join(array, separator) {
- return array ? nativeJoin.call(array, separator) : '';
- }
-
- /**
- * Gets the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the last element of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- */
- function last(array) {
- var length = array ? array.length : 0;
- return length ? array[length - 1] : undefined;
- }
-
- /**
- * This method is like `_.indexOf` except that it iterates over elements of
- * `array` from right to left.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=array.length-1] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.lastIndexOf([1, 2, 1, 2], 2);
- * // => 3
- *
- * // Search from the `fromIndex`.
- * _.lastIndexOf([1, 2, 1, 2], 2, 2);
- * // => 1
- */
- function lastIndexOf(array, value, fromIndex) {
- var length = array ? array.length : 0;
- if (!length) {
- return -1;
- }
- var index = length;
- if (fromIndex !== undefined) {
- index = toInteger(fromIndex);
- index = (
- index < 0
- ? nativeMax(length + index, 0)
- : nativeMin(index, length - 1)
- ) + 1;
- }
- if (value !== value) {
- return indexOfNaN(array, index - 1, true);
- }
- while (index--) {
- if (array[index] === value) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * Gets the element at index `n` of `array`. If `n` is negative, the nth
- * element from the end is returned.
- *
- * @static
- * @memberOf _
- * @since 4.11.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=0] The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'd'];
- *
- * _.nth(array, 1);
- * // => 'b'
- *
- * _.nth(array, -2);
- * // => 'c';
- */
- function nth(array, n) {
- return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
- }
-
- /**
- * Removes all given values from `array` using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
- * to remove elements from an array by predicate.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {...*} [values] The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
- *
- * _.pull(array, 'a', 'c');
- * console.log(array);
- * // => ['b', 'b']
- */
- var pull = rest(pullAll);
-
- /**
- * This method is like `_.pull` except that it accepts an array of values to remove.
- *
- * **Note:** Unlike `_.difference`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
- *
- * _.pullAll(array, ['a', 'c']);
- * console.log(array);
- * // => ['b', 'b']
- */
- function pullAll(array, values) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values)
- : array;
- }
-
- /**
- * This method is like `_.pullAll` except that it accepts `iteratee` which is
- * invoked for each element of `array` and `values` to generate the criterion
- * by which they're compared. The iteratee is invoked with one argument: (value).
- *
- * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
- *
- * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
- * console.log(array);
- * // => [{ 'x': 2 }]
- */
- function pullAllBy(array, values, iteratee) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values, getIteratee(iteratee))
- : array;
- }
-
- /**
- * This method is like `_.pullAll` except that it accepts `comparator` which
- * is invoked to compare elements of `array` to `values`. The comparator is
- * invoked with two arguments: (arrVal, othVal).
- *
- * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
- *
- * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
- * console.log(array);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
- */
- function pullAllWith(array, values, comparator) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values, undefined, comparator)
- : array;
- }
-
- /**
- * Removes elements from `array` corresponding to `indexes` and returns an
- * array of removed elements.
- *
- * **Note:** Unlike `_.at`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {...(number|number[])} [indexes] The indexes of elements to remove.
- * @returns {Array} Returns the new array of removed elements.
- * @example
- *
- * var array = ['a', 'b', 'c', 'd'];
- * var pulled = _.pullAt(array, [1, 3]);
- *
- * console.log(array);
- * // => ['a', 'c']
- *
- * console.log(pulled);
- * // => ['b', 'd']
- */
- var pullAt = rest(function(array, indexes) {
- indexes = baseFlatten(indexes, 1);
-
- var length = array ? array.length : 0,
- result = baseAt(array, indexes);
-
- basePullAt(array, arrayMap(indexes, function(index) {
- return isIndex(index, length) ? +index : index;
- }).sort(compareAscending));
-
- return result;
- });
-
- /**
- * Removes all elements from `array` that `predicate` returns truthy for
- * and returns an array of the removed elements. The predicate is invoked
- * with three arguments: (value, index, array).
- *
- * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
- * to pull elements from an array by value.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new array of removed elements.
- * @example
- *
- * var array = [1, 2, 3, 4];
- * var evens = _.remove(array, function(n) {
- * return n % 2 == 0;
- * });
- *
- * console.log(array);
- * // => [1, 3]
- *
- * console.log(evens);
- * // => [2, 4]
- */
- function remove(array, predicate) {
- var result = [];
- if (!(array && array.length)) {
- return result;
- }
- var index = -1,
- indexes = [],
- length = array.length;
-
- predicate = getIteratee(predicate, 3);
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result.push(value);
- indexes.push(index);
- }
- }
- basePullAt(array, indexes);
- return result;
- }
-
- /**
- * Reverses `array` so that the first element becomes the last, the second
- * element becomes the second to last, and so on.
- *
- * **Note:** This method mutates `array` and is based on
- * [`Array#reverse`](https://mdn.io/Array/reverse).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.reverse(array);
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
- function reverse(array) {
- return array ? nativeReverse.call(array) : array;
- }
-
- /**
- * Creates a slice of `array` from `start` up to, but not including, `end`.
- *
- * **Note:** This method is used instead of
- * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
- * returned.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function slice(array, start, end) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
- start = 0;
- end = length;
- }
- else {
- start = start == null ? 0 : toInteger(start);
- end = end === undefined ? length : toInteger(end);
- }
- return baseSlice(array, start, end);
- }
-
- /**
- * Uses a binary search to determine the lowest index at which `value`
- * should be inserted into `array` in order to maintain its sort order.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * _.sortedIndex([30, 50], 40);
- * // => 1
- */
- function sortedIndex(array, value) {
- return baseSortedIndex(array, value);
- }
-
- /**
- * This method is like `_.sortedIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * var objects = [{ 'x': 4 }, { 'x': 5 }];
- *
- * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
- * // => 0
- */
- function sortedIndexBy(array, value, iteratee) {
- return baseSortedIndexBy(array, value, getIteratee(iteratee));
- }
-
- /**
- * This method is like `_.indexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
- * // => 1
- */
- function sortedIndexOf(array, value) {
- var length = array ? array.length : 0;
- if (length) {
- var index = baseSortedIndex(array, value);
- if (index < length && eq(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * This method is like `_.sortedIndex` except that it returns the highest
- * index at which `value` should be inserted into `array` in order to
- * maintain its sort order.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
- * // => 4
- */
- function sortedLastIndex(array, value) {
- return baseSortedIndex(array, value, true);
- }
-
- /**
- * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * var objects = [{ 'x': 4 }, { 'x': 5 }];
- *
- * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
- * // => 1
- *
- * // The `_.property` iteratee shorthand.
- * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
- * // => 1
- */
- function sortedLastIndexBy(array, value, iteratee) {
- return baseSortedIndexBy(array, value, getIteratee(iteratee), true);
- }
-
- /**
- * This method is like `_.lastIndexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to search.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
- * // => 3
- */
- function sortedLastIndexOf(array, value) {
- var length = array ? array.length : 0;
- if (length) {
- var index = baseSortedIndex(array, value, true) - 1;
- if (eq(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * This method is like `_.uniq` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniq([1, 1, 2]);
- * // => [1, 2]
- */
- function sortedUniq(array) {
- return (array && array.length)
- ? baseSortedUniq(array)
- : [];
- }
-
- /**
- * This method is like `_.uniqBy` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
- * // => [1.1, 2.3]
- */
- function sortedUniqBy(array, iteratee) {
- return (array && array.length)
- ? baseSortedUniq(array, getIteratee(iteratee))
- : [];
- }
-
- /**
- * Gets all but the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.tail([1, 2, 3]);
- * // => [2, 3]
- */
- function tail(array) {
- return drop(array, 1);
- }
-
- /**
- * Creates a slice of `array` with `n` elements taken from the beginning.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.take([1, 2, 3]);
- * // => [1]
- *
- * _.take([1, 2, 3], 2);
- * // => [1, 2]
- *
- * _.take([1, 2, 3], 5);
- * // => [1, 2, 3]
- *
- * _.take([1, 2, 3], 0);
- * // => []
- */
- function take(array, n, guard) {
- if (!(array && array.length)) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- return baseSlice(array, 0, n < 0 ? 0 : n);
- }
-
- /**
- * Creates a slice of `array` with `n` elements taken from the end.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.takeRight([1, 2, 3]);
- * // => [3]
- *
- * _.takeRight([1, 2, 3], 2);
- * // => [2, 3]
- *
- * _.takeRight([1, 2, 3], 5);
- * // => [1, 2, 3]
- *
- * _.takeRight([1, 2, 3], 0);
- * // => []
- */
- function takeRight(array, n, guard) {
- var length = array ? array.length : 0;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- n = length - n;
- return baseSlice(array, n < 0 ? 0 : n, length);
- }
-
- /**
- * Creates a slice of `array` with elements taken from the end. Elements are
- * taken until `predicate` returns falsey. The predicate is invoked with
- * three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.takeRightWhile(users, function(o) { return !o.active; });
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.matches` iteratee shorthand.
- * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
- * // => objects for ['pebbles']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.takeRightWhile(users, ['active', false]);
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.property` iteratee shorthand.
- * _.takeRightWhile(users, 'active');
- * // => []
- */
- function takeRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), false, true)
- : [];
- }
-
- /**
- * Creates a slice of `array` with elements taken from the beginning. Elements
- * are taken until `predicate` returns falsey. The predicate is invoked with
- * three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false},
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.takeWhile(users, function(o) { return !o.active; });
- * // => objects for ['barney', 'fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.takeWhile(users, { 'user': 'barney', 'active': false });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.takeWhile(users, ['active', false]);
- * // => objects for ['barney', 'fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.takeWhile(users, 'active');
- * // => []
- */
- function takeWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3))
- : [];
- }
-
- /**
- * Creates an array of unique values, in order, from all given arrays using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * _.union([2], [1, 2]);
- * // => [2, 1]
- */
- var union = rest(function(arrays) {
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
- });
-
- /**
- * This method is like `_.union` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by
- * which uniqueness is computed. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * _.unionBy([2.1], [1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
- var unionBy = rest(function(arrays) {
- var iteratee = last(arrays);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee));
- });
-
- /**
- * This method is like `_.union` except that it accepts `comparator` which
- * is invoked to compare elements of `arrays`. The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.unionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
- var unionWith = rest(function(arrays) {
- var comparator = last(arrays);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
- });
-
- /**
- * Creates a duplicate-free version of an array, using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons, in which only the first occurrence of each
- * element is kept.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniq([2, 1, 2]);
- * // => [2, 1]
- */
- function uniq(array) {
- return (array && array.length)
- ? baseUniq(array)
- : [];
- }
-
- /**
- * This method is like `_.uniq` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * uniqueness is computed. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
- function uniqBy(array, iteratee) {
- return (array && array.length)
- ? baseUniq(array, getIteratee(iteratee))
- : [];
- }
-
- /**
- * This method is like `_.uniq` except that it accepts `comparator` which
- * is invoked to compare elements of `array`. The comparator is invoked with
- * two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.uniqWith(objects, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
- */
- function uniqWith(array, comparator) {
- return (array && array.length)
- ? baseUniq(array, undefined, comparator)
- : [];
- }
-
- /**
- * This method is like `_.zip` except that it accepts an array of grouped
- * elements and creates an array regrouping the elements to their pre-zip
- * configuration.
- *
- * @static
- * @memberOf _
- * @since 1.2.0
- * @category Array
- * @param {Array} array The array of grouped elements to process.
- * @returns {Array} Returns the new array of regrouped elements.
- * @example
- *
- * var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]);
- * // => [['fred', 30, true], ['barney', 40, false]]
- *
- * _.unzip(zipped);
- * // => [['fred', 'barney'], [30, 40], [true, false]]
- */
- function unzip(array) {
- if (!(array && array.length)) {
- return [];
- }
- var length = 0;
- array = arrayFilter(array, function(group) {
- if (isArrayLikeObject(group)) {
- length = nativeMax(group.length, length);
- return true;
- }
- });
- return baseTimes(length, function(index) {
- return arrayMap(array, baseProperty(index));
- });
- }
-
- /**
- * This method is like `_.unzip` except that it accepts `iteratee` to specify
- * how regrouped values should be combined. The iteratee is invoked with the
- * elements of each group: (...group).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Array
- * @param {Array} array The array of grouped elements to process.
- * @param {Function} [iteratee=_.identity] The function to combine
- * regrouped values.
- * @returns {Array} Returns the new array of regrouped elements.
- * @example
- *
- * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
- * // => [[1, 10, 100], [2, 20, 200]]
- *
- * _.unzipWith(zipped, _.add);
- * // => [3, 30, 300]
- */
- function unzipWith(array, iteratee) {
- if (!(array && array.length)) {
- return [];
- }
- var result = unzip(array);
- if (iteratee == null) {
- return result;
- }
- return arrayMap(result, function(group) {
- return apply(iteratee, undefined, group);
- });
- }
-
- /**
- * Creates an array excluding all given values using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...*} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.difference, _.xor
- * @example
- *
- * _.without([2, 1, 2, 3], 1, 2);
- * // => [3]
- */
- var without = rest(function(array, values) {
- return isArrayLikeObject(array)
- ? baseDifference(array, values)
- : [];
- });
-
- /**
- * Creates an array of unique values that is the
- * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
- * of the given arrays. The order of result values is determined by the order
- * they occur in the arrays.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.difference, _.without
- * @example
- *
- * _.xor([2, 1], [2, 3]);
- * // => [1, 3]
- */
- var xor = rest(function(arrays) {
- return baseXor(arrayFilter(arrays, isArrayLikeObject));
- });
-
- /**
- * This method is like `_.xor` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by
- * which by which they're compared. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [1.2, 3.4]
- *
- * // The `_.property` iteratee shorthand.
- * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
- var xorBy = rest(function(arrays) {
- var iteratee = last(arrays);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee));
- });
-
- /**
- * This method is like `_.xor` except that it accepts `comparator` which is
- * invoked to compare elements of `arrays`. The comparator is invoked with
- * two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.xorWith(objects, others, _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
- var xorWith = rest(function(arrays) {
- var comparator = last(arrays);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
- return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
- });
-
- /**
- * Creates an array of grouped elements, the first of which contains the
- * first elements of the given arrays, the second of which contains the
- * second elements of the given arrays, and so on.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to process.
- * @returns {Array} Returns the new array of grouped elements.
- * @example
- *
- * _.zip(['fred', 'barney'], [30, 40], [true, false]);
- * // => [['fred', 30, true], ['barney', 40, false]]
- */
- var zip = rest(unzip);
-
- /**
- * This method is like `_.fromPairs` except that it accepts two arrays,
- * one of property identifiers and one of corresponding values.
- *
- * @static
- * @memberOf _
- * @since 0.4.0
- * @category Array
- * @param {Array} [props=[]] The property identifiers.
- * @param {Array} [values=[]] The property values.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.zipObject(['a', 'b'], [1, 2]);
- * // => { 'a': 1, 'b': 2 }
- */
- function zipObject(props, values) {
- return baseZipObject(props || [], values || [], assignValue);
- }
-
- /**
- * This method is like `_.zipObject` except that it supports property paths.
- *
- * @static
- * @memberOf _
- * @since 4.1.0
- * @category Array
- * @param {Array} [props=[]] The property identifiers.
- * @param {Array} [values=[]] The property values.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
- * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
- */
- function zipObjectDeep(props, values) {
- return baseZipObject(props || [], values || [], baseSet);
- }
-
- /**
- * This method is like `_.zip` except that it accepts `iteratee` to specify
- * how grouped values should be combined. The iteratee is invoked with the
- * elements of each group: (...group).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Array
- * @param {...Array} [arrays] The arrays to process.
- * @param {Function} [iteratee=_.identity] The function to combine grouped values.
- * @returns {Array} Returns the new array of grouped elements.
- * @example
- *
- * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
- * return a + b + c;
- * });
- * // => [111, 222]
- */
- var zipWith = rest(function(arrays) {
- var length = arrays.length,
- iteratee = length > 1 ? arrays[length - 1] : undefined;
-
- iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
- return unzipWith(arrays, iteratee);
- });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` wrapper instance that wraps `value` with explicit method
- * chain sequences enabled. The result of such sequences must be unwrapped
- * with `_#value`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Seq
- * @param {*} value The value to wrap.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'pebbles', 'age': 1 }
- * ];
- *
- * var youngest = _
- * .chain(users)
- * .sortBy('age')
- * .map(function(o) {
- * return o.user + ' is ' + o.age;
- * })
- * .head()
- * .value();
- * // => 'pebbles is 1'
- */
- function chain(value) {
- var result = lodash(value);
- result.__chain__ = true;
- return result;
- }
-
- /**
- * This method invokes `interceptor` and returns `value`. The interceptor
- * is invoked with one argument; (value). The purpose of this method is to
- * "tap into" a method chain sequence in order to modify intermediate results.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns `value`.
- * @example
- *
- * _([1, 2, 3])
- * .tap(function(array) {
- * // Mutate input array.
- * array.pop();
- * })
- * .reverse()
- * .value();
- * // => [2, 1]
- */
- function tap(value, interceptor) {
- interceptor(value);
- return value;
- }
-
- /**
- * This method is like `_.tap` except that it returns the result of `interceptor`.
- * The purpose of this method is to "pass thru" values replacing intermediate
- * results in a method chain sequence.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns the result of `interceptor`.
- * @example
- *
- * _(' abc ')
- * .chain()
- * .trim()
- * .thru(function(value) {
- * return [value];
- * })
- * .value();
- * // => ['abc']
- */
- function thru(value, interceptor) {
- return interceptor(value);
- }
-
- /**
- * This method is the wrapper version of `_.at`.
- *
- * @name at
- * @memberOf _
- * @since 1.0.0
- * @category Seq
- * @param {...(string|string[])} [paths] The property paths of elements to pick.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
- *
- * _(object).at(['a[0].b.c', 'a[1]']).value();
- * // => [3, 4]
- */
- var wrapperAt = rest(function(paths) {
- paths = baseFlatten(paths, 1);
- var length = paths.length,
- start = length ? paths[0] : 0,
- value = this.__wrapped__,
- interceptor = function(object) { return baseAt(object, paths); };
-
- if (length > 1 || this.__actions__.length ||
- !(value instanceof LazyWrapper) || !isIndex(start)) {
- return this.thru(interceptor);
- }
- value = value.slice(start, +start + (length ? 1 : 0));
- value.__actions__.push({
- 'func': thru,
- 'args': [interceptor],
- 'thisArg': undefined
- });
- return new LodashWrapper(value, this.__chain__).thru(function(array) {
- if (length && !array.length) {
- array.push(undefined);
- }
- return array;
- });
- });
-
- /**
- * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
- *
- * @name chain
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * // A sequence without explicit chaining.
- * _(users).head();
- * // => { 'user': 'barney', 'age': 36 }
- *
- * // A sequence with explicit chaining.
- * _(users)
- * .chain()
- * .head()
- * .pick('user')
- * .value();
- * // => { 'user': 'barney' }
- */
- function wrapperChain() {
- return chain(this);
- }
-
- /**
- * Executes the chain sequence and returns the wrapped result.
- *
- * @name commit
- * @memberOf _
- * @since 3.2.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var array = [1, 2];
- * var wrapped = _(array).push(3);
- *
- * console.log(array);
- * // => [1, 2]
- *
- * wrapped = wrapped.commit();
- * console.log(array);
- * // => [1, 2, 3]
- *
- * wrapped.last();
- * // => 3
- *
- * console.log(array);
- * // => [1, 2, 3]
- */
- function wrapperCommit() {
- return new LodashWrapper(this.value(), this.__chain__);
- }
-
- /**
- * Gets the next value on a wrapped object following the
- * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
- *
- * @name next
- * @memberOf _
- * @since 4.0.0
- * @category Seq
- * @returns {Object} Returns the next iterator value.
- * @example
- *
- * var wrapped = _([1, 2]);
- *
- * wrapped.next();
- * // => { 'done': false, 'value': 1 }
- *
- * wrapped.next();
- * // => { 'done': false, 'value': 2 }
- *
- * wrapped.next();
- * // => { 'done': true, 'value': undefined }
- */
- function wrapperNext() {
- if (this.__values__ === undefined) {
- this.__values__ = toArray(this.value());
- }
- var done = this.__index__ >= this.__values__.length,
- value = done ? undefined : this.__values__[this.__index__++];
-
- return { 'done': done, 'value': value };
- }
-
- /**
- * Enables the wrapper to be iterable.
- *
- * @name Symbol.iterator
- * @memberOf _
- * @since 4.0.0
- * @category Seq
- * @returns {Object} Returns the wrapper object.
- * @example
- *
- * var wrapped = _([1, 2]);
- *
- * wrapped[Symbol.iterator]() === wrapped;
- * // => true
- *
- * Array.from(wrapped);
- * // => [1, 2]
- */
- function wrapperToIterator() {
- return this;
- }
-
- /**
- * Creates a clone of the chain sequence planting `value` as the wrapped value.
- *
- * @name plant
- * @memberOf _
- * @since 3.2.0
- * @category Seq
- * @param {*} value The value to plant.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2]).map(square);
- * var other = wrapped.plant([3, 4]);
- *
- * other.value();
- * // => [9, 16]
- *
- * wrapped.value();
- * // => [1, 4]
- */
- function wrapperPlant(value) {
- var result,
- parent = this;
-
- while (parent instanceof baseLodash) {
- var clone = wrapperClone(parent);
- clone.__index__ = 0;
- clone.__values__ = undefined;
- if (result) {
- previous.__wrapped__ = clone;
- } else {
- result = clone;
- }
- var previous = clone;
- parent = parent.__wrapped__;
- }
- previous.__wrapped__ = value;
- return result;
- }
-
- /**
- * This method is the wrapper version of `_.reverse`.
- *
- * **Note:** This method mutates the wrapped array.
- *
- * @name reverse
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _(array).reverse().value()
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
- function wrapperReverse() {
- var value = this.__wrapped__;
- if (value instanceof LazyWrapper) {
- var wrapped = value;
- if (this.__actions__.length) {
- wrapped = new LazyWrapper(this);
- }
- wrapped = wrapped.reverse();
- wrapped.__actions__.push({
- 'func': thru,
- 'args': [reverse],
- 'thisArg': undefined
- });
- return new LodashWrapper(wrapped, this.__chain__);
- }
- return this.thru(reverse);
- }
-
- /**
- * Executes the chain sequence to resolve the unwrapped value.
- *
- * @name value
- * @memberOf _
- * @since 0.1.0
- * @alias toJSON, valueOf
- * @category Seq
- * @returns {*} Returns the resolved unwrapped value.
- * @example
- *
- * _([1, 2, 3]).value();
- * // => [1, 2, 3]
- */
- function wrapperValue() {
- return baseWrapperValue(this.__wrapped__, this.__actions__);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The corresponding value of
- * each key is the number of times the key was returned by `iteratee`. The
- * iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * _.countBy([6.1, 4.2, 6.3], Math.floor);
- * // => { '4': 1, '6': 2 }
- *
- * // The `_.property` iteratee shorthand.
- * _.countBy(['one', 'two', 'three'], 'length');
- * // => { '3': 2, '5': 1 }
- */
- var countBy = createAggregator(function(result, value, key) {
- hasOwnProperty.call(result, key) ? ++result[key] : (result[key] = 1);
- });
-
- /**
- * Checks if `predicate` returns truthy for **all** elements of `collection`.
- * Iteration is stopped once `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- * @example
- *
- * _.every([true, 1, null, 'yes'], Boolean);
- * // => false
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.every(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.every(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.every(users, 'active');
- * // => false
- */
- function every(collection, predicate, guard) {
- var func = isArray(collection) ? arrayEvery : baseEvery;
- if (guard && isIterateeCall(collection, predicate, guard)) {
- predicate = undefined;
- }
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.reject
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, { 'age': 36, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.filter(users, 'active');
- * // => objects for ['barney']
- */
- function filter(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false },
- * { 'user': 'pebbles', 'age': 1, 'active': true }
- * ];
- *
- * _.find(users, function(o) { return o.age < 40; });
- * // => object for 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.find(users, { 'age': 1, 'active': true });
- * // => object for 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.find(users, ['active', false]);
- * // => object for 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.find(users, 'active');
- * // => object for 'barney'
- */
- var find = createFind(findIndex);
-
- /**
- * This method is like `_.find` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param {number} [fromIndex=collection.length-1] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * _.findLast([1, 2, 3, 4], function(n) {
- * return n % 2 == 1;
- * });
- * // => 3
- */
- var findLast = createFind(findLastIndex);
-
- /**
- * Creates a flattened array of values by running each element in `collection`
- * thru `iteratee` and flattening the mapped results. The iteratee is invoked
- * with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [n, n];
- * }
- *
- * _.flatMap([1, 2], duplicate);
- * // => [1, 1, 2, 2]
- */
- function flatMap(collection, iteratee) {
- return baseFlatten(map(collection, iteratee), 1);
- }
-
- /**
- * This method is like `_.flatMap` except that it recursively flattens the
- * mapped results.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [[[n, n]]];
- * }
- *
- * _.flatMapDeep([1, 2], duplicate);
- * // => [1, 1, 2, 2]
- */
- function flatMapDeep(collection, iteratee) {
- return baseFlatten(map(collection, iteratee), INFINITY);
- }
-
- /**
- * This method is like `_.flatMap` except that it recursively flattens the
- * mapped results up to `depth` times.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @param {number} [depth=1] The maximum recursion depth.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [[[n, n]]];
- * }
- *
- * _.flatMapDepth([1, 2], duplicate, 2);
- * // => [[1, 1], [2, 2]]
- */
- function flatMapDepth(collection, iteratee, depth) {
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(map(collection, iteratee), depth);
- }
-
- /**
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
- * The iteratee is invoked with three arguments: (value, index|key, collection).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * **Note:** As with other "Collections" methods, objects with a "length"
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
- * or `_.forOwn` for object iteration.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias each
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEachRight
- * @example
- *
- * _([1, 2]).forEach(function(value) {
- * console.log(value);
- * });
- * // => Logs `1` then `2`.
- *
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
- function forEach(collection, iteratee) {
- var func = isArray(collection) ? arrayEach : baseEach;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.forEach` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @alias eachRight
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEach
- * @example
- *
- * _.forEachRight([1, 2], function(value) {
- * console.log(value);
- * });
- * // => Logs `2` then `1`.
- */
- function forEachRight(collection, iteratee) {
- var func = isArray(collection) ? arrayEachRight : baseEachRight;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The order of grouped values
- * is determined by the order they occur in `collection`. The corresponding
- * value of each key is an array of elements responsible for generating the
- * key. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * _.groupBy([6.1, 4.2, 6.3], Math.floor);
- * // => { '4': [4.2], '6': [6.1, 6.3] }
- *
- * // The `_.property` iteratee shorthand.
- * _.groupBy(['one', 'two', 'three'], 'length');
- * // => { '3': ['one', 'two'], '5': ['three'] }
- */
- var groupBy = createAggregator(function(result, value, key) {
- if (hasOwnProperty.call(result, key)) {
- result[key].push(value);
- } else {
- result[key] = [value];
- }
- });
-
- /**
- * Checks if `value` is in `collection`. If `collection` is a string, it's
- * checked for a substring of `value`, otherwise
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * is used for equality comparisons. If `fromIndex` is negative, it's used as
- * the offset from the end of `collection`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object|string} collection The collection to search.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
- * @returns {boolean} Returns `true` if `value` is found, else `false`.
- * @example
- *
- * _.includes([1, 2, 3], 1);
- * // => true
- *
- * _.includes([1, 2, 3], 1, 2);
- * // => false
- *
- * _.includes({ 'user': 'fred', 'age': 40 }, 'fred');
- * // => true
- *
- * _.includes('pebbles', 'eb');
- * // => true
- */
- function includes(collection, value, fromIndex, guard) {
- collection = isArrayLike(collection) ? collection : values(collection);
- fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
-
- var length = collection.length;
- if (fromIndex < 0) {
- fromIndex = nativeMax(length + fromIndex, 0);
- }
- return isString(collection)
- ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
- : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
- }
-
- /**
- * Invokes the method at `path` of each element in `collection`, returning
- * an array of the results of each invoked method. Any additional arguments
- * are provided to each invoked method. If `methodName` is a function, it's
- * invoked for and `this` bound to, each element in `collection`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|string} path The path of the method to invoke or
- * the function invoked per iteration.
- * @param {...*} [args] The arguments to invoke each method with.
- * @returns {Array} Returns the array of results.
- * @example
- *
- * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
- * // => [[1, 5, 7], [1, 2, 3]]
- *
- * _.invokeMap([123, 456], String.prototype.split, '');
- * // => [['1', '2', '3'], ['4', '5', '6']]
- */
- var invokeMap = rest(function(collection, path, args) {
- var index = -1,
- isFunc = typeof path == 'function',
- isProp = isKey(path),
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value) {
- var func = isFunc ? path : ((isProp && value != null) ? value[path] : undefined);
- result[++index] = func ? apply(func, value, args) : baseInvoke(value, path, args);
- });
- return result;
- });
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The corresponding value of
- * each key is the last element responsible for generating the key. The
- * iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * var array = [
- * { 'dir': 'left', 'code': 97 },
- * { 'dir': 'right', 'code': 100 }
- * ];
- *
- * _.keyBy(array, function(o) {
- * return String.fromCharCode(o.code);
- * });
- * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
- *
- * _.keyBy(array, 'dir');
- * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
- */
- var keyBy = createAggregator(function(result, value, key) {
- result[key] = value;
- });
-
- /**
- * Creates an array of values by running each element in `collection` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
- *
- * The guarded methods are:
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * _.map([4, 8], square);
- * // => [16, 64]
- *
- * _.map({ 'a': 4, 'b': 8 }, square);
- * // => [16, 64] (iteration order is not guaranteed)
- *
- * var users = [
- * { 'user': 'barney' },
- * { 'user': 'fred' }
- * ];
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, 'user');
- * // => ['barney', 'fred']
- */
- function map(collection, iteratee) {
- var func = isArray(collection) ? arrayMap : baseMap;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.sortBy` except that it allows specifying the sort
- * orders of the iteratees to sort by. If `orders` is unspecified, all values
- * are sorted in ascending order. Otherwise, specify an order of "desc" for
- * descending or "asc" for ascending sort order of corresponding values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
- * The iteratees to sort by.
- * @param {string[]} [orders] The sort orders of `iteratees`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 34 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 36 }
- * ];
- *
- * // Sort by `user` in ascending order and by `age` in descending order.
- * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- */
- function orderBy(collection, iteratees, orders, guard) {
- if (collection == null) {
- return [];
- }
- if (!isArray(iteratees)) {
- iteratees = iteratees == null ? [] : [iteratees];
- }
- orders = guard ? undefined : orders;
- if (!isArray(orders)) {
- orders = orders == null ? [] : [orders];
- }
- return baseOrderBy(collection, iteratees, orders);
- }
-
- /**
- * Creates an array of elements split into two groups, the first of which
- * contains elements `predicate` returns truthy for, the second of which
- * contains elements `predicate` returns falsey for. The predicate is
- * invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the array of grouped elements.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true },
- * { 'user': 'pebbles', 'age': 1, 'active': false }
- * ];
- *
- * _.partition(users, function(o) { return o.active; });
- * // => objects for [['fred'], ['barney', 'pebbles']]
- *
- * // The `_.matches` iteratee shorthand.
- * _.partition(users, { 'age': 1, 'active': false });
- * // => objects for [['pebbles'], ['barney', 'fred']]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.partition(users, ['active', false]);
- * // => objects for [['barney', 'pebbles'], ['fred']]
- *
- * // The `_.property` iteratee shorthand.
- * _.partition(users, 'active');
- * // => objects for [['fred'], ['barney', 'pebbles']]
- */
- var partition = createAggregator(function(result, value, key) {
- result[key ? 0 : 1].push(value);
- }, function() { return [[], []]; });
-
- /**
- * Reduces `collection` to a value which is the accumulated result of running
- * each element in `collection` thru `iteratee`, where each successive
- * invocation is supplied the return value of the previous. If `accumulator`
- * is not given, the first element of `collection` is used as the initial
- * value. The iteratee is invoked with four arguments:
- * (accumulator, value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.reduce`, `_.reduceRight`, and `_.transform`.
- *
- * The guarded methods are:
- * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
- * and `sortBy`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduceRight
- * @example
- *
- * _.reduce([1, 2], function(sum, n) {
- * return sum + n;
- * }, 0);
- * // => 3
- *
- * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * return result;
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
- */
- function reduce(collection, iteratee, accumulator) {
- var func = isArray(collection) ? arrayReduce : baseReduce,
- initAccum = arguments.length < 3;
-
- return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
- }
-
- /**
- * This method is like `_.reduce` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduce
- * @example
- *
- * var array = [[0, 1], [2, 3], [4, 5]];
- *
- * _.reduceRight(array, function(flattened, other) {
- * return flattened.concat(other);
- * }, []);
- * // => [4, 5, 2, 3, 0, 1]
- */
- function reduceRight(collection, iteratee, accumulator) {
- var func = isArray(collection) ? arrayReduceRight : baseReduce,
- initAccum = arguments.length < 3;
-
- return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
- }
-
- /**
- * The opposite of `_.filter`; this method returns the elements of `collection`
- * that `predicate` does **not** return truthy for.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.filter
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true }
- * ];
- *
- * _.reject(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.reject(users, { 'age': 40, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.reject(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.reject(users, 'active');
- * // => objects for ['barney']
- */
- function reject(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- predicate = getIteratee(predicate, 3);
- return func(collection, function(value, index, collection) {
- return !predicate(value, index, collection);
- });
- }
-
- /**
- * Gets a random element from `collection`.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to sample.
- * @returns {*} Returns the random element.
- * @example
- *
- * _.sample([1, 2, 3, 4]);
- * // => 2
- */
- function sample(collection) {
- var array = isArrayLike(collection) ? collection : values(collection),
- length = array.length;
-
- return length > 0 ? array[baseRandom(0, length - 1)] : undefined;
- }
-
- /**
- * Gets `n` random elements at unique keys from `collection` up to the
- * size of `collection`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to sample.
- * @param {number} [n=1] The number of elements to sample.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the random elements.
- * @example
- *
- * _.sampleSize([1, 2, 3], 2);
- * // => [3, 1]
- *
- * _.sampleSize([1, 2, 3], 4);
- * // => [2, 3, 1]
- */
- function sampleSize(collection, n, guard) {
- var index = -1,
- result = toArray(collection),
- length = result.length,
- lastIndex = length - 1;
-
- if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
- n = 1;
- } else {
- n = baseClamp(toInteger(n), 0, length);
- }
- while (++index < n) {
- var rand = baseRandom(index, lastIndex),
- value = result[rand];
-
- result[rand] = result[index];
- result[index] = value;
- }
- result.length = n;
- return result;
- }
-
- /**
- * Creates an array of shuffled values, using a version of the
- * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to shuffle.
- * @returns {Array} Returns the new shuffled array.
- * @example
- *
- * _.shuffle([1, 2, 3, 4]);
- * // => [4, 1, 3, 2]
- */
- function shuffle(collection) {
- return sampleSize(collection, MAX_ARRAY_LENGTH);
- }
-
- /**
- * Gets the size of `collection` by returning its length for array-like
- * values or the number of own enumerable string keyed properties for objects.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @returns {number} Returns the collection size.
- * @example
- *
- * _.size([1, 2, 3]);
- * // => 3
- *
- * _.size({ 'a': 1, 'b': 2 });
- * // => 2
- *
- * _.size('pebbles');
- * // => 7
- */
- function size(collection) {
- if (collection == null) {
- return 0;
- }
- if (isArrayLike(collection)) {
- var result = collection.length;
- return (result && isString(collection)) ? stringSize(collection) : result;
- }
- if (isObjectLike(collection)) {
- var tag = getTag(collection);
- if (tag == mapTag || tag == setTag) {
- return collection.size;
- }
- }
- return keys(collection).length;
- }
-
- /**
- * Checks if `predicate` returns truthy for **any** element of `collection`.
- * Iteration is stopped once `predicate` returns truthy. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- * @example
- *
- * _.some([null, 0, 'yes', false], Boolean);
- * // => true
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.some(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.some(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.some(users, 'active');
- * // => true
- */
- function some(collection, predicate, guard) {
- var func = isArray(collection) ? arraySome : baseSome;
- if (guard && isIterateeCall(collection, predicate, guard)) {
- predicate = undefined;
- }
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection thru each iteratee. This method
- * performs a stable sort, that is, it preserves the original sort order of
- * equal elements. The iteratees are invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [iteratees=[_.identity]] The iteratees to sort by.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 34 }
- * ];
- *
- * _.sortBy(users, function(o) { return o.user; });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- *
- * _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
- *
- * _.sortBy(users, 'user', function(o) {
- * return Math.floor(o.age / 10);
- * });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- */
- var sortBy = rest(function(collection, iteratees) {
- if (collection == null) {
- return [];
- }
- var length = iteratees.length;
- if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
- iteratees = [];
- } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
- iteratees = [iteratees[0]];
- }
- iteratees = (iteratees.length == 1 && isArray(iteratees[0]))
- ? iteratees[0]
- : baseFlatten(iteratees, 1, isFlattenableIteratee);
-
- return baseOrderBy(collection, iteratees, []);
- });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Gets the timestamp of the number of milliseconds that have elapsed since
- * the Unix epoch (1 January 1970 00:00:00 UTC).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Date
- * @returns {number} Returns the timestamp.
- * @example
- *
- * _.defer(function(stamp) {
- * console.log(_.now() - stamp);
- * }, _.now());
- * // => Logs the number of milliseconds it took for the deferred invocation.
- */
- function now() {
- return Date.now();
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * The opposite of `_.before`; this method creates a function that invokes
- * `func` once it's called `n` or more times.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {number} n The number of calls before `func` is invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var saves = ['profile', 'settings'];
- *
- * var done = _.after(saves.length, function() {
- * console.log('done saving!');
- * });
- *
- * _.forEach(saves, function(type) {
- * asyncSave({ 'type': type, 'complete': done });
- * });
- * // => Logs 'done saving!' after the two async saves have completed.
- */
- function after(n, func) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n < 1) {
- return func.apply(this, arguments);
- }
- };
- }
-
- /**
- * Creates a function that invokes `func`, with up to `n` arguments,
- * ignoring any additional arguments.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @param {number} [n=func.length] The arity cap.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new capped function.
- * @example
- *
- * _.map(['6', '8', '10'], _.ary(parseInt, 1));
- * // => [6, 8, 10]
- */
- function ary(func, n, guard) {
- n = guard ? undefined : n;
- n = (func && n == null) ? func.length : n;
- return createWrapper(func, ARY_FLAG, undefined, undefined, undefined, undefined, n);
- }
-
- /**
- * Creates a function that invokes `func`, with the `this` binding and arguments
- * of the created function, while it's called less than `n` times. Subsequent
- * calls to the created function return the result of the last `func` invocation.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {number} n The number of calls at which `func` is no longer invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * jQuery(element).on('click', _.before(5, addContactToList));
- * // => allows adding up to 4 contacts to the list
- */
- function before(n, func) {
- var result;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n > 0) {
- result = func.apply(this, arguments);
- }
- if (n <= 1) {
- func = undefined;
- }
- return result;
- };
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and `partials` prepended to the arguments it receives.
- *
- * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for partially applied arguments.
- *
- * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
- * property of bound functions.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to bind.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * var greet = function(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * };
- *
- * var object = { 'user': 'fred' };
- *
- * var bound = _.bind(greet, object, 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bind(greet, object, _, '!');
- * bound('hi');
- * // => 'hi fred!'
- */
- var bind = rest(function(func, thisArg, partials) {
- var bitmask = BIND_FLAG;
- if (partials.length) {
- var holders = replaceHolders(partials, getHolder(bind));
- bitmask |= PARTIAL_FLAG;
- }
- return createWrapper(func, bitmask, thisArg, partials, holders);
- });
-
- /**
- * Creates a function that invokes the method at `object[key]` with `partials`
- * prepended to the arguments it receives.
- *
- * This method differs from `_.bind` by allowing bound functions to reference
- * methods that may be redefined or don't yet exist. See
- * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
- * for more details.
- *
- * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Function
- * @param {Object} object The object to invoke the method on.
- * @param {string} key The key of the method.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * var object = {
- * 'user': 'fred',
- * 'greet': function(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * }
- * };
- *
- * var bound = _.bindKey(object, 'greet', 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * object.greet = function(greeting, punctuation) {
- * return greeting + 'ya ' + this.user + punctuation;
- * };
- *
- * bound('!');
- * // => 'hiya fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bindKey(object, 'greet', _, '!');
- * bound('hi');
- * // => 'hiya fred!'
- */
- var bindKey = rest(function(object, key, partials) {
- var bitmask = BIND_FLAG | BIND_KEY_FLAG;
- if (partials.length) {
- var holders = replaceHolders(partials, getHolder(bindKey));
- bitmask |= PARTIAL_FLAG;
- }
- return createWrapper(key, bitmask, object, partials, holders);
- });
-
- /**
- * Creates a function that accepts arguments of `func` and either invokes
- * `func` returning its result, if at least `arity` number of arguments have
- * been provided, or returns a function that accepts the remaining `func`
- * arguments, and so on. The arity of `func` may be specified if `func.length`
- * is not sufficient.
- *
- * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for provided arguments.
- *
- * **Note:** This method doesn't set the "length" property of curried functions.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Function
- * @param {Function} func The function to curry.
- * @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new curried function.
- * @example
- *
- * var abc = function(a, b, c) {
- * return [a, b, c];
- * };
- *
- * var curried = _.curry(abc);
- *
- * curried(1)(2)(3);
- * // => [1, 2, 3]
- *
- * curried(1, 2)(3);
- * // => [1, 2, 3]
- *
- * curried(1, 2, 3);
- * // => [1, 2, 3]
- *
- * // Curried with placeholders.
- * curried(1)(_, 3)(2);
- * // => [1, 2, 3]
- */
- function curry(func, arity, guard) {
- arity = guard ? undefined : arity;
- var result = createWrapper(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = curry.placeholder;
- return result;
- }
-
- /**
- * This method is like `_.curry` except that arguments are applied to `func`
- * in the manner of `_.partialRight` instead of `_.partial`.
- *
- * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for provided arguments.
- *
- * **Note:** This method doesn't set the "length" property of curried functions.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to curry.
- * @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new curried function.
- * @example
- *
- * var abc = function(a, b, c) {
- * return [a, b, c];
- * };
- *
- * var curried = _.curryRight(abc);
- *
- * curried(3)(2)(1);
- * // => [1, 2, 3]
- *
- * curried(2, 3)(1);
- * // => [1, 2, 3]
- *
- * curried(1, 2, 3);
- * // => [1, 2, 3]
- *
- * // Curried with placeholders.
- * curried(3)(1, _)(2);
- * // => [1, 2, 3]
- */
- function curryRight(func, arity, guard) {
- arity = guard ? undefined : arity;
- var result = createWrapper(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = curryRight.placeholder;
- return result;
- }
-
- /**
- * Creates a debounced function that delays invoking `func` until after `wait`
- * milliseconds have elapsed since the last time the debounced function was
- * invoked. The debounced function comes with a `cancel` method to cancel
- * delayed `func` invocations and a `flush` method to immediately invoke them.
- * Provide an options object to indicate whether `func` should be invoked on
- * the leading and/or trailing edge of the `wait` timeout. The `func` is invoked
- * with the last arguments provided to the debounced function. Subsequent calls
- * to the debounced function return the result of the last `func` invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
- * on the trailing edge of the timeout only if the debounced function is
- * invoked more than once during the `wait` timeout.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.debounce` and `_.throttle`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to debounce.
- * @param {number} [wait=0] The number of milliseconds to delay.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=false]
- * Specify invoking on the leading edge of the timeout.
- * @param {number} [options.maxWait]
- * The maximum time `func` is allowed to be delayed before it's invoked.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new debounced function.
- * @example
- *
- * // Avoid costly calculations while the window size is in flux.
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
- *
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
- * 'leading': true,
- * 'trailing': false
- * }));
- *
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
- * var source = new EventSource('/stream');
- * jQuery(source).on('message', debounced);
- *
- * // Cancel the trailing debounced invocation.
- * jQuery(window).on('popstate', debounced.cancel);
- */
- function debounce(func, wait, options) {
- var lastArgs,
- lastThis,
- maxWait,
- result,
- timerId,
- lastCallTime,
- lastInvokeTime = 0,
- leading = false,
- maxing = false,
- trailing = true;
-
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- wait = toNumber(wait) || 0;
- if (isObject(options)) {
- leading = !!options.leading;
- maxing = 'maxWait' in options;
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
-
- function invokeFunc(time) {
- var args = lastArgs,
- thisArg = lastThis;
-
- lastArgs = lastThis = undefined;
- lastInvokeTime = time;
- result = func.apply(thisArg, args);
- return result;
- }
-
- function leadingEdge(time) {
- // Reset any `maxWait` timer.
- lastInvokeTime = time;
- // Start the timer for the trailing edge.
- timerId = setTimeout(timerExpired, wait);
- // Invoke the leading edge.
- return leading ? invokeFunc(time) : result;
- }
-
- function remainingWait(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime,
- result = wait - timeSinceLastCall;
-
- return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
- }
-
- function shouldInvoke(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime;
-
- // Either this is the first call, activity has stopped and we're at the
- // trailing edge, the system time has gone backwards and we're treating
- // it as the trailing edge, or we've hit the `maxWait` limit.
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
- }
-
- function timerExpired() {
- var time = now();
- if (shouldInvoke(time)) {
- return trailingEdge(time);
- }
- // Restart the timer.
- timerId = setTimeout(timerExpired, remainingWait(time));
- }
-
- function trailingEdge(time) {
- timerId = undefined;
-
- // Only invoke if we have `lastArgs` which means `func` has been
- // debounced at least once.
- if (trailing && lastArgs) {
- return invokeFunc(time);
- }
- lastArgs = lastThis = undefined;
- return result;
- }
-
- function cancel() {
- lastInvokeTime = 0;
- lastArgs = lastCallTime = lastThis = timerId = undefined;
- }
-
- function flush() {
- return timerId === undefined ? result : trailingEdge(now());
- }
-
- function debounced() {
- var time = now(),
- isInvoking = shouldInvoke(time);
-
- lastArgs = arguments;
- lastThis = this;
- lastCallTime = time;
-
- if (isInvoking) {
- if (timerId === undefined) {
- return leadingEdge(lastCallTime);
- }
- if (maxing) {
- // Handle invocations in a tight loop.
- timerId = setTimeout(timerExpired, wait);
- return invokeFunc(lastCallTime);
- }
- }
- if (timerId === undefined) {
- timerId = setTimeout(timerExpired, wait);
- }
- return result;
- }
- debounced.cancel = cancel;
- debounced.flush = flush;
- return debounced;
- }
-
- /**
- * Defers invoking the `func` until the current call stack has cleared. Any
- * additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to defer.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.defer(function(text) {
- * console.log(text);
- * }, 'deferred');
- * // => Logs 'deferred' after one or more milliseconds.
- */
- var defer = rest(function(func, args) {
- return baseDelay(func, 1, args);
- });
-
- /**
- * Invokes `func` after `wait` milliseconds. Any additional arguments are
- * provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.delay(function(text) {
- * console.log(text);
- * }, 1000, 'later');
- * // => Logs 'later' after one second.
- */
- var delay = rest(function(func, wait, args) {
- return baseDelay(func, toNumber(wait) || 0, args);
- });
-
- /**
- * Creates a function that invokes `func` with arguments reversed.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to flip arguments for.
- * @returns {Function} Returns the new flipped function.
- * @example
- *
- * var flipped = _.flip(function() {
- * return _.toArray(arguments);
- * });
- *
- * flipped('a', 'b', 'c', 'd');
- * // => ['d', 'c', 'b', 'a']
- */
- function flip(func) {
- return createWrapper(func, FLIP_FLAG);
- }
-
- /**
- * Creates a function that memoizes the result of `func`. If `resolver` is
- * provided, it determines the cache key for storing the result based on the
- * arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is used as the map cache key. The `func`
- * is invoked with the `this` binding of the memoized function.
- *
- * **Note:** The cache is exposed as the `cache` property on the memoized
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the
- * [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `delete`, `get`, `has`, and `set`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to have its output memoized.
- * @param {Function} [resolver] The function to resolve the cache key.
- * @returns {Function} Returns the new memoized function.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- * var other = { 'c': 3, 'd': 4 };
- *
- * var values = _.memoize(_.values);
- * values(object);
- * // => [1, 2]
- *
- * values(other);
- * // => [3, 4]
- *
- * object.a = 2;
- * values(object);
- * // => [1, 2]
- *
- * // Modify the result cache.
- * values.cache.set(object, ['a', 'b']);
- * values(object);
- * // => ['a', 'b']
- *
- * // Replace `_.memoize.Cache`.
- * _.memoize.Cache = WeakMap;
- */
- function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
-
- if (cache.has(key)) {
- return cache.get(key);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result);
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
- }
-
- // Assign cache to `_.memoize`.
- memoize.Cache = MapCache;
-
- /**
- * Creates a function that negates the result of the predicate `func`. The
- * `func` predicate is invoked with the `this` binding and arguments of the
- * created function.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} predicate The predicate to negate.
- * @returns {Function} Returns the new negated function.
- * @example
- *
- * function isEven(n) {
- * return n % 2 == 0;
- * }
- *
- * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
- * // => [1, 3, 5]
- */
- function negate(predicate) {
- if (typeof predicate != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return function() {
- return !predicate.apply(this, arguments);
- };
- }
-
- /**
- * Creates a function that is restricted to invoking `func` once. Repeat calls
- * to the function return the value of the first invocation. The `func` is
- * invoked with the `this` binding and arguments of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var initialize = _.once(createApplication);
- * initialize();
- * initialize();
- * // `initialize` invokes `createApplication` once
- */
- function once(func) {
- return before(2, func);
- }
-
- /**
- * Creates a function that invokes `func` with arguments transformed by
- * corresponding `transforms`.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Function
- * @param {Function} func The function to wrap.
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [transforms[_.identity]] The functions to transform.
- * @returns {Function} Returns the new function.
- * @example
- *
- * function doubled(n) {
- * return n * 2;
- * }
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var func = _.overArgs(function(x, y) {
- * return [x, y];
- * }, [square, doubled]);
- *
- * func(9, 3);
- * // => [81, 6]
- *
- * func(10, 5);
- * // => [100, 10]
- */
- var overArgs = rest(function(func, transforms) {
- transforms = (transforms.length == 1 && isArray(transforms[0]))
- ? arrayMap(transforms[0], baseUnary(getIteratee()))
- : arrayMap(baseFlatten(transforms, 1, isFlattenableIteratee), baseUnary(getIteratee()));
-
- var funcsLength = transforms.length;
- return rest(function(args) {
- var index = -1,
- length = nativeMin(args.length, funcsLength);
-
- while (++index < length) {
- args[index] = transforms[index].call(this, args[index]);
- }
- return apply(func, this, args);
- });
- });
-
- /**
- * Creates a function that invokes `func` with `partials` prepended to the
- * arguments it receives. This method is like `_.bind` except it does **not**
- * alter the `this` binding.
- *
- * The `_.partial.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * **Note:** This method doesn't set the "length" property of partially
- * applied functions.
- *
- * @static
- * @memberOf _
- * @since 0.2.0
- * @category Function
- * @param {Function} func The function to partially apply arguments to.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new partially applied function.
- * @example
- *
- * var greet = function(greeting, name) {
- * return greeting + ' ' + name;
- * };
- *
- * var sayHelloTo = _.partial(greet, 'hello');
- * sayHelloTo('fred');
- * // => 'hello fred'
- *
- * // Partially applied with placeholders.
- * var greetFred = _.partial(greet, _, 'fred');
- * greetFred('hi');
- * // => 'hi fred'
- */
- var partial = rest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partial));
- return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders);
- });
-
- /**
- * This method is like `_.partial` except that partially applied arguments
- * are appended to the arguments it receives.
- *
- * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * **Note:** This method doesn't set the "length" property of partially
- * applied functions.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Function
- * @param {Function} func The function to partially apply arguments to.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new partially applied function.
- * @example
- *
- * var greet = function(greeting, name) {
- * return greeting + ' ' + name;
- * };
- *
- * var greetFred = _.partialRight(greet, 'fred');
- * greetFred('hi');
- * // => 'hi fred'
- *
- * // Partially applied with placeholders.
- * var sayHelloTo = _.partialRight(greet, 'hello', _);
- * sayHelloTo('fred');
- * // => 'hello fred'
- */
- var partialRight = rest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partialRight));
- return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders);
- });
-
- /**
- * Creates a function that invokes `func` with arguments arranged according
- * to the specified `indexes` where the argument value at the first index is
- * provided as the first argument, the argument value at the second index is
- * provided as the second argument, and so on.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to rearrange arguments for.
- * @param {...(number|number[])} indexes The arranged argument indexes.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var rearged = _.rearg(function(a, b, c) {
- * return [a, b, c];
- * }, [2, 0, 1]);
- *
- * rearged('b', 'c', 'a')
- * // => ['a', 'b', 'c']
- */
- var rearg = rest(function(func, indexes) {
- return createWrapper(func, REARG_FLAG, undefined, undefined, undefined, baseFlatten(indexes, 1));
- });
-
- /**
- * Creates a function that invokes `func` with the `this` binding of the
- * created function and arguments from `start` and beyond provided as
- * an array.
- *
- * **Note:** This method is based on the
- * [rest parameter](https://mdn.io/rest_parameters).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.rest(function(what, names) {
- * return what + ' ' + _.initial(names).join(', ') +
- * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
- * });
- *
- * say('hello', 'fred', 'barney', 'pebbles');
- * // => 'hello fred, barney, & pebbles'
- */
- function rest(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = nativeMax(start === undefined ? (func.length - 1) : toInteger(start), 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
-
- while (++index < length) {
- array[index] = args[start + index];
- }
- switch (start) {
- case 0: return func.call(this, array);
- case 1: return func.call(this, args[0], array);
- case 2: return func.call(this, args[0], args[1], array);
- }
- var otherArgs = Array(start + 1);
- index = -1;
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = array;
- return apply(func, this, otherArgs);
- };
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of the
- * create function and an array of arguments much like
- * [`Function#apply`](http://www.ecma-international.org/ecma-262/6.0/#sec-function.prototype.apply).
- *
- * **Note:** This method is based on the
- * [spread operator](https://mdn.io/spread_operator).
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Function
- * @param {Function} func The function to spread arguments over.
- * @param {number} [start=0] The start position of the spread.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.spread(function(who, what) {
- * return who + ' says ' + what;
- * });
- *
- * say(['fred', 'hello']);
- * // => 'fred says hello'
- *
- * var numbers = Promise.all([
- * Promise.resolve(40),
- * Promise.resolve(36)
- * ]);
- *
- * numbers.then(_.spread(function(x, y) {
- * return x + y;
- * }));
- * // => a Promise of 76
- */
- function spread(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = start === undefined ? 0 : nativeMax(toInteger(start), 0);
- return rest(function(args) {
- var array = args[start],
- otherArgs = castSlice(args, 0, start);
-
- if (array) {
- arrayPush(otherArgs, array);
- }
- return apply(func, this, otherArgs);
- });
- }
-
- /**
- * Creates a throttled function that only invokes `func` at most once per
- * every `wait` milliseconds. The throttled function comes with a `cancel`
- * method to cancel delayed `func` invocations and a `flush` method to
- * immediately invoke them. Provide an options object to indicate whether
- * `func` should be invoked on the leading and/or trailing edge of the `wait`
- * timeout. The `func` is invoked with the last arguments provided to the
- * throttled function. Subsequent calls to the throttled function return the
- * result of the last `func` invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the throttled function
- * is invoked more than once during the `wait` timeout.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.throttle` and `_.debounce`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to throttle.
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=true]
- * Specify invoking on the leading edge of the timeout.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new throttled function.
- * @example
- *
- * // Avoid excessively updating the position while scrolling.
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
- *
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
- * jQuery(element).on('click', throttled);
- *
- * // Cancel the trailing throttled invocation.
- * jQuery(window).on('popstate', throttled.cancel);
- */
- function throttle(func, wait, options) {
- var leading = true,
- trailing = true;
-
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (isObject(options)) {
- leading = 'leading' in options ? !!options.leading : leading;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
- return debounce(func, wait, {
- 'leading': leading,
- 'maxWait': wait,
- 'trailing': trailing
- });
- }
-
- /**
- * Creates a function that accepts up to one argument, ignoring any
- * additional arguments.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- * @example
- *
- * _.map(['6', '8', '10'], _.unary(parseInt));
- * // => [6, 8, 10]
- */
- function unary(func) {
- return ary(func, 1);
- }
-
- /**
- * Creates a function that provides `value` to the wrapper function as its
- * first argument. Any additional arguments provided to the function are
- * appended to those provided to the wrapper function. The wrapper is invoked
- * with the `this` binding of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {*} value The value to wrap.
- * @param {Function} [wrapper=identity] The wrapper function.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var p = _.wrap(_.escape, function(func, text) {
- * return '<p>' + func(text) + '</p>';
- * });
- *
- * p('fred, barney, & pebbles');
- * // => '<p>fred, barney, &amp; pebbles</p>'
- */
- function wrap(value, wrapper) {
- wrapper = wrapper == null ? identity : wrapper;
- return partial(wrapper, value);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Casts `value` as an array if it's not one.
- *
- * @static
- * @memberOf _
- * @since 4.4.0
- * @category Lang
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast array.
- * @example
- *
- * _.castArray(1);
- * // => [1]
- *
- * _.castArray({ 'a': 1 });
- * // => [{ 'a': 1 }]
- *
- * _.castArray('abc');
- * // => ['abc']
- *
- * _.castArray(null);
- * // => [null]
- *
- * _.castArray(undefined);
- * // => [undefined]
- *
- * _.castArray();
- * // => []
- *
- * var array = [1, 2, 3];
- * console.log(_.castArray(array) === array);
- * // => true
- */
- function castArray() {
- if (!arguments.length) {
- return [];
- }
- var value = arguments[0];
- return isArray(value) ? value : [value];
- }
-
- /**
- * Creates a shallow clone of `value`.
- *
- * **Note:** This method is loosely based on the
- * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
- * and supports cloning arrays, array buffers, booleans, date objects, maps,
- * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
- * arrays. The own enumerable properties of `arguments` objects are cloned
- * as plain objects. An empty object is returned for uncloneable values such
- * as error objects, functions, DOM nodes, and WeakMaps.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to clone.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeep
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var shallow = _.clone(objects);
- * console.log(shallow[0] === objects[0]);
- * // => true
- */
- function clone(value) {
- return baseClone(value, false, true);
- }
-
- /**
- * This method is like `_.clone` except that it accepts `customizer` which
- * is invoked to produce the cloned value. If `customizer` returns `undefined`,
- * cloning is handled by the method instead. The `customizer` is invoked with
- * up to four arguments; (value [, index|key, object, stack]).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeepWith
- * @example
- *
- * function customizer(value) {
- * if (_.isElement(value)) {
- * return value.cloneNode(false);
- * }
- * }
- *
- * var el = _.cloneWith(document.body, customizer);
- *
- * console.log(el === document.body);
- * // => false
- * console.log(el.nodeName);
- * // => 'BODY'
- * console.log(el.childNodes.length);
- * // => 0
- */
- function cloneWith(value, customizer) {
- return baseClone(value, false, true, customizer);
- }
-
- /**
- * This method is like `_.clone` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @returns {*} Returns the deep cloned value.
- * @see _.clone
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var deep = _.cloneDeep(objects);
- * console.log(deep[0] === objects[0]);
- * // => false
- */
- function cloneDeep(value) {
- return baseClone(value, true, true);
- }
-
- /**
- * This method is like `_.cloneWith` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @returns {*} Returns the deep cloned value.
- * @see _.cloneWith
- * @example
- *
- * function customizer(value) {
- * if (_.isElement(value)) {
- * return value.cloneNode(true);
- * }
- * }
- *
- * var el = _.cloneDeepWith(document.body, customizer);
- *
- * console.log(el === document.body);
- * // => false
- * console.log(el.nodeName);
- * // => 'BODY'
- * console.log(el.childNodes.length);
- * // => 20
- */
- function cloneDeepWith(value, customizer) {
- return baseClone(value, true, true, customizer);
- }
-
- /**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
- function eq(value, other) {
- return value === other || (value !== value && other !== other);
- }
-
- /**
- * Checks if `value` is greater than `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- * @see _.lt
- * @example
- *
- * _.gt(3, 1);
- * // => true
- *
- * _.gt(3, 3);
- * // => false
- *
- * _.gt(1, 3);
- * // => false
- */
- var gt = createRelationalOperation(baseGt);
-
- /**
- * Checks if `value` is greater than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than or equal to
- * `other`, else `false`.
- * @see _.lte
- * @example
- *
- * _.gte(3, 1);
- * // => true
- *
- * _.gte(3, 3);
- * // => true
- *
- * _.gte(1, 3);
- * // => false
- */
- var gte = createRelationalOperation(function(value, other) {
- return value >= other;
- });
-
- /**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
- function isArguments(value) {
- // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.
- return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
- (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
- }
-
- /**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @type {Function}
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
- var isArray = Array.isArray;
-
- /**
- * Checks if `value` is classified as an `ArrayBuffer` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isArrayBuffer(new ArrayBuffer(2));
- * // => true
- *
- * _.isArrayBuffer(new Array(2));
- * // => false
- */
- function isArrayBuffer(value) {
- return isObjectLike(value) && objectToString.call(value) == arrayBufferTag;
- }
-
- /**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
- function isArrayLike(value) {
- return value != null && isLength(getLength(value)) && !isFunction(value);
- }
-
- /**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object,
- * else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
- function isArrayLikeObject(value) {
- return isObjectLike(value) && isArrayLike(value);
- }
-
- /**
- * Checks if `value` is classified as a boolean primitive or object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isBoolean(false);
- * // => true
- *
- * _.isBoolean(null);
- * // => false
- */
- function isBoolean(value) {
- return value === true || value === false ||
- (isObjectLike(value) && objectToString.call(value) == boolTag);
- }
-
- /**
- * Checks if `value` is a buffer.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
- * @example
- *
- * _.isBuffer(new Buffer(2));
- * // => true
- *
- * _.isBuffer(new Uint8Array(2));
- * // => false
- */
- var isBuffer = !Buffer ? stubFalse : function(value) {
- return value instanceof Buffer;
- };
-
- /**
- * Checks if `value` is classified as a `Date` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isDate(new Date);
- * // => true
- *
- * _.isDate('Mon April 23 2012');
- * // => false
- */
- function isDate(value) {
- return isObjectLike(value) && objectToString.call(value) == dateTag;
- }
-
- /**
- * Checks if `value` is likely a DOM element.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a DOM element,
- * else `false`.
- * @example
- *
- * _.isElement(document.body);
- * // => true
- *
- * _.isElement('<body>');
- * // => false
- */
- function isElement(value) {
- return !!value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value);
- }
-
- /**
- * Checks if `value` is an empty object, collection, map, or set.
- *
- * Objects are considered empty if they have no own enumerable string keyed
- * properties.
- *
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
- * jQuery-like collections are considered empty if they have a `length` of `0`.
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
- * @example
- *
- * _.isEmpty(null);
- * // => true
- *
- * _.isEmpty(true);
- * // => true
- *
- * _.isEmpty(1);
- * // => true
- *
- * _.isEmpty([1, 2, 3]);
- * // => false
- *
- * _.isEmpty({ 'a': 1 });
- * // => false
- */
- function isEmpty(value) {
- if (isArrayLike(value) &&
- (isArray(value) || isString(value) || isFunction(value.splice) ||
- isArguments(value) || isBuffer(value))) {
- return !value.length;
- }
- if (isObjectLike(value)) {
- var tag = getTag(value);
- if (tag == mapTag || tag == setTag) {
- return !value.size;
- }
- }
- for (var key in value) {
- if (hasOwnProperty.call(value, key)) {
- return false;
- }
- }
- return !(nonEnumShadows && keys(value).length);
- }
-
- /**
- * Performs a deep comparison between two values to determine if they are
- * equivalent.
- *
- * **Note:** This method supports comparing arrays, array buffers, booleans,
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
- * by their own, not inherited, enumerable properties. Functions and DOM
- * nodes are **not** supported.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent,
- * else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.isEqual(object, other);
- * // => true
- *
- * object === other;
- * // => false
- */
- function isEqual(value, other) {
- return baseIsEqual(value, other);
- }
-
- /**
- * This method is like `_.isEqual` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined`, comparisons
- * are handled by the method instead. The `customizer` is invoked with up to
- * six arguments: (objValue, othValue [, index|key, object, other, stack]).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if the values are equivalent,
- * else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, othValue) {
- * if (isGreeting(objValue) && isGreeting(othValue)) {
- * return true;
- * }
- * }
- *
- * var array = ['hello', 'goodbye'];
- * var other = ['hi', 'goodbye'];
- *
- * _.isEqualWith(array, other, customizer);
- * // => true
- */
- function isEqualWith(value, other, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- var result = customizer ? customizer(value, other) : undefined;
- return result === undefined ? baseIsEqual(value, other, customizer) : !!result;
- }
-
- /**
- * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
- * `SyntaxError`, `TypeError`, or `URIError` object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an error object,
- * else `false`.
- * @example
- *
- * _.isError(new Error);
- * // => true
- *
- * _.isError(Error);
- * // => false
- */
- function isError(value) {
- if (!isObjectLike(value)) {
- return false;
- }
- return (objectToString.call(value) == errorTag) ||
- (typeof value.message == 'string' && typeof value.name == 'string');
- }
-
- /**
- * Checks if `value` is a finite primitive number.
- *
- * **Note:** This method is based on
- * [`Number.isFinite`](https://mdn.io/Number/isFinite).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number,
- * else `false`.
- * @example
- *
- * _.isFinite(3);
- * // => true
- *
- * _.isFinite(Number.MIN_VALUE);
- * // => true
- *
- * _.isFinite(Infinity);
- * // => false
- *
- * _.isFinite('3');
- * // => false
- */
- function isFinite(value) {
- return typeof value == 'number' && nativeIsFinite(value);
- }
-
- /**
- * Checks if `value` is classified as a `Function` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isFunction(_);
- * // => true
- *
- * _.isFunction(/abc/);
- * // => false
- */
- function isFunction(value) {
- // The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 8 which returns 'object' for typed array and weak map constructors,
- // and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
- var tag = isObject(value) ? objectToString.call(value) : '';
- return tag == funcTag || tag == genTag;
- }
-
- /**
- * Checks if `value` is an integer.
- *
- * **Note:** This method is based on
- * [`Number.isInteger`](https://mdn.io/Number/isInteger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
- * @example
- *
- * _.isInteger(3);
- * // => true
- *
- * _.isInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isInteger(Infinity);
- * // => false
- *
- * _.isInteger('3');
- * // => false
- */
- function isInteger(value) {
- return typeof value == 'number' && value == toInteger(value);
- }
-
- /**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This function is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length,
- * else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
- function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
- }
-
- /**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
- function isObject(value) {
- var type = typeof value;
- return !!value && (type == 'object' || type == 'function');
- }
-
- /**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
- function isObjectLike(value) {
- return !!value && typeof value == 'object';
- }
-
- /**
- * Checks if `value` is classified as a `Map` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isMap(new Map);
- * // => true
- *
- * _.isMap(new WeakMap);
- * // => false
- */
- function isMap(value) {
- return isObjectLike(value) && getTag(value) == mapTag;
- }
-
- /**
- * Performs a partial deep comparison between `object` and `source` to
- * determine if `object` contains equivalent property values. This method is
- * equivalent to a `_.matches` function when `source` is partially applied.
- *
- * **Note:** This method supports comparing the same values as `_.isEqual`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * var object = { 'user': 'fred', 'age': 40 };
- *
- * _.isMatch(object, { 'age': 40 });
- * // => true
- *
- * _.isMatch(object, { 'age': 36 });
- * // => false
- */
- function isMatch(object, source) {
- return object === source || baseIsMatch(object, source, getMatchData(source));
- }
-
- /**
- * This method is like `_.isMatch` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined`, comparisons
- * are handled by the method instead. The `customizer` is invoked with five
- * arguments: (objValue, srcValue, index|key, object, source).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, srcValue) {
- * if (isGreeting(objValue) && isGreeting(srcValue)) {
- * return true;
- * }
- * }
- *
- * var object = { 'greeting': 'hello' };
- * var source = { 'greeting': 'hi' };
- *
- * _.isMatchWith(object, source, customizer);
- * // => true
- */
- function isMatchWith(object, source, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return baseIsMatch(object, source, getMatchData(source), customizer);
- }
-
- /**
- * Checks if `value` is `NaN`.
- *
- * **Note:** This method is based on
- * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
- * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
- * `undefined` and other non-number values.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- * @example
- *
- * _.isNaN(NaN);
- * // => true
- *
- * _.isNaN(new Number(NaN));
- * // => true
- *
- * isNaN(undefined);
- * // => true
- *
- * _.isNaN(undefined);
- * // => false
- */
- function isNaN(value) {
- // An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some
- // ActiveX objects in IE.
- return isNumber(value) && value != +value;
- }
-
- /**
- * Checks if `value` is a pristine native function.
- *
- * **Note:** This method can't reliably detect native functions in the
- * presence of the `core-js` package because `core-js` circumvents this kind
- * of detection. Despite multiple requests, the `core-js` maintainer has made
- * it clear: any attempt to fix the detection will be obstructed. As a result,
- * we're left with little choice but to throw an error. Unfortunately, this
- * also affects packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
- * which rely on `core-js`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- * @example
- *
- * _.isNative(Array.prototype.push);
- * // => true
- *
- * _.isNative(_);
- * // => false
- */
- function isNative(value) {
- if (isMaskable(value)) {
- throw new Error('This method is not supported with `core-js`. Try https://github.com/es-shims.');
- }
- return baseIsNative(value);
- }
-
- /**
- * Checks if `value` is `null`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
- * @example
- *
- * _.isNull(null);
- * // => true
- *
- * _.isNull(void 0);
- * // => false
- */
- function isNull(value) {
- return value === null;
- }
-
- /**
- * Checks if `value` is `null` or `undefined`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
- * @example
- *
- * _.isNil(null);
- * // => true
- *
- * _.isNil(void 0);
- * // => true
- *
- * _.isNil(NaN);
- * // => false
- */
- function isNil(value) {
- return value == null;
- }
-
- /**
- * Checks if `value` is classified as a `Number` primitive or object.
- *
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
- * classified as numbers, use the `_.isFinite` method.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isNumber(3);
- * // => true
- *
- * _.isNumber(Number.MIN_VALUE);
- * // => true
- *
- * _.isNumber(Infinity);
- * // => true
- *
- * _.isNumber('3');
- * // => false
- */
- function isNumber(value) {
- return typeof value == 'number' ||
- (isObjectLike(value) && objectToString.call(value) == numberTag);
- }
-
- /**
- * Checks if `value` is a plain object, that is, an object created by the
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
- *
- * @static
- * @memberOf _
- * @since 0.8.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object,
- * else `false`.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * _.isPlainObject(new Foo);
- * // => false
- *
- * _.isPlainObject([1, 2, 3]);
- * // => false
- *
- * _.isPlainObject({ 'x': 0, 'y': 0 });
- * // => true
- *
- * _.isPlainObject(Object.create(null));
- * // => true
- */
- function isPlainObject(value) {
- if (!isObjectLike(value) ||
- objectToString.call(value) != objectTag || isHostObject(value)) {
- return false;
- }
- var proto = getPrototype(value);
- if (proto === null) {
- return true;
- }
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
- return (typeof Ctor == 'function' &&
- Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
- }
-
- /**
- * Checks if `value` is classified as a `RegExp` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isRegExp(/abc/);
- * // => true
- *
- * _.isRegExp('/abc/');
- * // => false
- */
- function isRegExp(value) {
- return isObject(value) && objectToString.call(value) == regexpTag;
- }
-
- /**
- * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
- * double precision number which isn't the result of a rounded unsafe integer.
- *
- * **Note:** This method is based on
- * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a safe integer,
- * else `false`.
- * @example
- *
- * _.isSafeInteger(3);
- * // => true
- *
- * _.isSafeInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isSafeInteger(Infinity);
- * // => false
- *
- * _.isSafeInteger('3');
- * // => false
- */
- function isSafeInteger(value) {
- return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
- }
-
- /**
- * Checks if `value` is classified as a `Set` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isSet(new Set);
- * // => true
- *
- * _.isSet(new WeakSet);
- * // => false
- */
- function isSet(value) {
- return isObjectLike(value) && getTag(value) == setTag;
- }
-
- /**
- * Checks if `value` is classified as a `String` primitive or object.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isString('abc');
- * // => true
- *
- * _.isString(1);
- * // => false
- */
- function isString(value) {
- return typeof value == 'string' ||
- (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag);
- }
-
- /**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isSymbol(Symbol.iterator);
- * // => true
- *
- * _.isSymbol('abc');
- * // => false
- */
- function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
- }
-
- /**
- * Checks if `value` is classified as a typed array.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isTypedArray(new Uint8Array);
- * // => true
- *
- * _.isTypedArray([]);
- * // => false
- */
- function isTypedArray(value) {
- return isObjectLike(value) &&
- isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
- }
-
- /**
- * Checks if `value` is `undefined`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
- * @example
- *
- * _.isUndefined(void 0);
- * // => true
- *
- * _.isUndefined(null);
- * // => false
- */
- function isUndefined(value) {
- return value === undefined;
- }
-
- /**
- * Checks if `value` is classified as a `WeakMap` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isWeakMap(new WeakMap);
- * // => true
- *
- * _.isWeakMap(new Map);
- * // => false
- */
- function isWeakMap(value) {
- return isObjectLike(value) && getTag(value) == weakMapTag;
- }
-
- /**
- * Checks if `value` is classified as a `WeakSet` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
- * @example
- *
- * _.isWeakSet(new WeakSet);
- * // => true
- *
- * _.isWeakSet(new Set);
- * // => false
- */
- function isWeakSet(value) {
- return isObjectLike(value) && objectToString.call(value) == weakSetTag;
- }
-
- /**
- * Checks if `value` is less than `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- * @see _.gt
- * @example
- *
- * _.lt(1, 3);
- * // => true
- *
- * _.lt(3, 3);
- * // => false
- *
- * _.lt(3, 1);
- * // => false
- */
- var lt = createRelationalOperation(baseLt);
-
- /**
- * Checks if `value` is less than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than or equal to
- * `other`, else `false`.
- * @see _.gte
- * @example
- *
- * _.lte(1, 3);
- * // => true
- *
- * _.lte(3, 3);
- * // => true
- *
- * _.lte(3, 1);
- * // => false
- */
- var lte = createRelationalOperation(function(value, other) {
- return value <= other;
- });
-
- /**
- * Converts `value` to an array.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Array} Returns the converted array.
- * @example
- *
- * _.toArray({ 'a': 1, 'b': 2 });
- * // => [1, 2]
- *
- * _.toArray('abc');
- * // => ['a', 'b', 'c']
- *
- * _.toArray(1);
- * // => []
- *
- * _.toArray(null);
- * // => []
- */
- function toArray(value) {
- if (!value) {
- return [];
- }
- if (isArrayLike(value)) {
- return isString(value) ? stringToArray(value) : copyArray(value);
- }
- if (iteratorSymbol && value[iteratorSymbol]) {
- return iteratorToArray(value[iteratorSymbol]());
- }
- var tag = getTag(value),
- func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
-
- return func(value);
- }
-
- /**
- * Converts `value` to a finite number.
- *
- * @static
- * @memberOf _
- * @since 4.12.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted number.
- * @example
- *
- * _.toFinite(3.2);
- * // => 3.2
- *
- * _.toFinite(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toFinite(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toFinite('3.2');
- * // => 3.2
- */
- function toFinite(value) {
- if (!value) {
- return value === 0 ? value : 0;
- }
- value = toNumber(value);
- if (value === INFINITY || value === -INFINITY) {
- var sign = (value < 0 ? -1 : 1);
- return sign * MAX_INTEGER;
- }
- return value === value ? value : 0;
- }
-
- /**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
- function toInteger(value) {
- var result = toFinite(value),
- remainder = result % 1;
-
- return result === result ? (remainder ? result - remainder : result) : 0;
- }
-
- /**
- * Converts `value` to an integer suitable for use as the length of an
- * array-like object.
- *
- * **Note:** This method is based on
- * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toLength(3.2);
- * // => 3
- *
- * _.toLength(Number.MIN_VALUE);
- * // => 0
- *
- * _.toLength(Infinity);
- * // => 4294967295
- *
- * _.toLength('3.2');
- * // => 3
- */
- function toLength(value) {
- return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
- }
-
- /**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3.2);
- * // => 3.2
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3.2');
- * // => 3.2
- */
- function toNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- if (isObject(value)) {
- var other = isFunction(value.valueOf) ? value.valueOf() : value;
- value = isObject(other) ? (other + '') : other;
- }
- if (typeof value != 'string') {
- return value === 0 ? value : +value;
- }
- value = value.replace(reTrim, '');
- var isBinary = reIsBinary.test(value);
- return (isBinary || reIsOctal.test(value))
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
- : (reIsBadHex.test(value) ? NAN : +value);
- }
-
- /**
- * Converts `value` to a plain object flattening inherited enumerable string
- * keyed properties of `value` to own properties of the plain object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Object} Returns the converted plain object.
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.assign({ 'a': 1 }, new Foo);
- * // => { 'a': 1, 'b': 2 }
- *
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
- * // => { 'a': 1, 'b': 2, 'c': 3 }
- */
- function toPlainObject(value) {
- return copyObject(value, keysIn(value));
- }
-
- /**
- * Converts `value` to a safe integer. A safe integer can be compared and
- * represented correctly.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toSafeInteger(3.2);
- * // => 3
- *
- * _.toSafeInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toSafeInteger(Infinity);
- * // => 9007199254740991
- *
- * _.toSafeInteger('3.2');
- * // => 3
- */
- function toSafeInteger(value) {
- return baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);
- }
-
- /**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- function toString(value) {
- return value == null ? '' : baseToString(value);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Assigns own enumerable string keyed properties of source objects to the
- * destination object. Source objects are applied from left to right.
- * Subsequent sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object` and is loosely based on
- * [`Object.assign`](https://mdn.io/Object/assign).
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assignIn
- * @example
- *
- * function Foo() {
- * this.c = 3;
- * }
- *
- * function Bar() {
- * this.e = 5;
- * }
- *
- * Foo.prototype.d = 4;
- * Bar.prototype.f = 6;
- *
- * _.assign({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'c': 3, 'e': 5 }
- */
- var assign = createAssigner(function(object, source) {
- if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {
- copyObject(source, keys(source), object);
- return;
- }
- for (var key in source) {
- if (hasOwnProperty.call(source, key)) {
- assignValue(object, key, source[key]);
- }
- }
- });
-
- /**
- * This method is like `_.assign` except that it iterates over own and
- * inherited source properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extend
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assign
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * function Bar() {
- * this.d = 4;
- * }
- *
- * Foo.prototype.c = 3;
- * Bar.prototype.e = 5;
- *
- * _.assignIn({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
- */
- var assignIn = createAssigner(function(object, source) {
- if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {
- copyObject(source, keysIn(source), object);
- return;
- }
- for (var key in source) {
- assignValue(object, key, source[key]);
- }
- });
-
- /**
- * This method is like `_.assignIn` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extendWith
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignInWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keysIn(source), object, customizer);
- });
-
- /**
- * This method is like `_.assign` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignInWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keys(source), object, customizer);
- });
-
- /**
- * Creates an array of values corresponding to `paths` of `object`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {...(string|string[])} [paths] The property paths of elements to pick.
- * @returns {Array} Returns the picked values.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
- *
- * _.at(object, ['a[0].b.c', 'a[1]']);
- * // => [3, 4]
- */
- var at = rest(function(object, paths) {
- return baseAt(object, baseFlatten(paths, 1));
- });
-
- /**
- * Creates an object that inherits from the `prototype` object. If a
- * `properties` object is given, its own enumerable string keyed properties
- * are assigned to the created object.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Object
- * @param {Object} prototype The object to inherit from.
- * @param {Object} [properties] The properties to assign to the object.
- * @returns {Object} Returns the new object.
- * @example
- *
- * function Shape() {
- * this.x = 0;
- * this.y = 0;
- * }
- *
- * function Circle() {
- * Shape.call(this);
- * }
- *
- * Circle.prototype = _.create(Shape.prototype, {
- * 'constructor': Circle
- * });
- *
- * var circle = new Circle;
- * circle instanceof Circle;
- * // => true
- *
- * circle instanceof Shape;
- * // => true
- */
- function create(prototype, properties) {
- var result = baseCreate(prototype);
- return properties ? baseAssign(result, properties) : result;
- }
-
- /**
- * Assigns own and inherited enumerable string keyed properties of source
- * objects to the destination object for all destination properties that
- * resolve to `undefined`. Source objects are applied from left to right.
- * Once a property is set, additional values of the same property are ignored.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaultsDeep
- * @example
- *
- * _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
- * // => { 'user': 'barney', 'age': 36 }
- */
- var defaults = rest(function(args) {
- args.push(undefined, assignInDefaults);
- return apply(assignInWith, undefined, args);
- });
-
- /**
- * This method is like `_.defaults` except that it recursively assigns
- * default properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaults
- * @example
- *
- * _.defaultsDeep({ 'user': { 'name': 'barney' } }, { 'user': { 'name': 'fred', 'age': 36 } });
- * // => { 'user': { 'name': 'barney', 'age': 36 } }
- *
- */
- var defaultsDeep = rest(function(args) {
- args.push(undefined, mergeDefaults);
- return apply(mergeWith, undefined, args);
- });
-
- /**
- * This method is like `_.find` except that it returns the key of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Object
- * @param {Object} object The object to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element,
- * else `undefined`.
- * @example
- *
- * var users = {
- * 'barney': { 'age': 36, 'active': true },
- * 'fred': { 'age': 40, 'active': false },
- * 'pebbles': { 'age': 1, 'active': true }
- * };
- *
- * _.findKey(users, function(o) { return o.age < 40; });
- * // => 'barney' (iteration order is not guaranteed)
- *
- * // The `_.matches` iteratee shorthand.
- * _.findKey(users, { 'age': 1, 'active': true });
- * // => 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findKey(users, ['active', false]);
- * // => 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.findKey(users, 'active');
- * // => 'barney'
- */
- function findKey(object, predicate) {
- return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
- }
-
- /**
- * This method is like `_.findKey` except that it iterates over elements of
- * a collection in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to search.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element,
- * else `undefined`.
- * @example
- *
- * var users = {
- * 'barney': { 'age': 36, 'active': true },
- * 'fred': { 'age': 40, 'active': false },
- * 'pebbles': { 'age': 1, 'active': true }
- * };
- *
- * _.findLastKey(users, function(o) { return o.age < 40; });
- * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.findLastKey(users, { 'age': 36, 'active': true });
- * // => 'barney'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findLastKey(users, ['active', false]);
- * // => 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.findLastKey(users, 'active');
- * // => 'pebbles'
- */
- function findLastKey(object, predicate) {
- return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
- }
-
- /**
- * Iterates over own and inherited enumerable string keyed properties of an
- * object and invokes `iteratee` for each property. The iteratee is invoked
- * with three arguments: (value, key, object). Iteratee functions may exit
- * iteration early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 0.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forInRight
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forIn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
- */
- function forIn(object, iteratee) {
- return object == null
- ? object
- : baseFor(object, getIteratee(iteratee, 3), keysIn);
- }
-
- /**
- * This method is like `_.forIn` except that it iterates over properties of
- * `object` in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forIn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forInRight(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
- */
- function forInRight(object, iteratee) {
- return object == null
- ? object
- : baseForRight(object, getIteratee(iteratee, 3), keysIn);
- }
-
- /**
- * Iterates over own enumerable string keyed properties of an object and
- * invokes `iteratee` for each property. The iteratee is invoked with three
- * arguments: (value, key, object). Iteratee functions may exit iteration
- * early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 0.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forOwnRight
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
- function forOwn(object, iteratee) {
- return object && baseForOwn(object, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.forOwn` except that it iterates over properties of
- * `object` in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forOwn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwnRight(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
- */
- function forOwnRight(object, iteratee) {
- return object && baseForOwnRight(object, getIteratee(iteratee, 3));
- }
-
- /**
- * Creates an array of function property names from own enumerable properties
- * of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the function names.
- * @see _.functionsIn
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functions(new Foo);
- * // => ['a', 'b']
- */
- function functions(object) {
- return object == null ? [] : baseFunctions(object, keys(object));
- }
-
- /**
- * Creates an array of function property names from own and inherited
- * enumerable properties of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the function names.
- * @see _.functions
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functionsIn(new Foo);
- * // => ['a', 'b', 'c']
- */
- function functionsIn(object) {
- return object == null ? [] : baseFunctions(object, keysIn(object));
- }
-
- /**
- * Gets the value at `path` of `object`. If the resolved value is
- * `undefined`, the `defaultValue` is used in its place.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.get(object, 'a[0].b.c');
- * // => 3
- *
- * _.get(object, ['a', '0', 'b', 'c']);
- * // => 3
- *
- * _.get(object, 'a.b.c', 'default');
- * // => 'default'
- */
- function get(object, path, defaultValue) {
- var result = object == null ? undefined : baseGet(object, path);
- return result === undefined ? defaultValue : result;
- }
-
- /**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': 2 } };
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b');
- * // => true
- *
- * _.has(object, ['a', 'b']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
- function has(object, path) {
- return object != null && hasPath(object, path, baseHas);
- }
-
- /**
- * Checks if `path` is a direct or inherited property of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.hasIn(object, 'a');
- * // => true
- *
- * _.hasIn(object, 'a.b');
- * // => true
- *
- * _.hasIn(object, ['a', 'b']);
- * // => true
- *
- * _.hasIn(object, 'b');
- * // => false
- */
- function hasIn(object, path) {
- return object != null && hasPath(object, path, baseHasIn);
- }
-
- /**
- * Creates an object composed of the inverted keys and values of `object`.
- * If `object` contains duplicate values, subsequent values overwrite
- * property assignments of previous values.
- *
- * @static
- * @memberOf _
- * @since 0.7.0
- * @category Object
- * @param {Object} object The object to invert.
- * @returns {Object} Returns the new inverted object.
- * @example
- *
- * var object = { 'a': 1, 'b': 2, 'c': 1 };
- *
- * _.invert(object);
- * // => { '1': 'c', '2': 'b' }
- */
- var invert = createInverter(function(result, value, key) {
- result[value] = key;
- }, constant(identity));
-
- /**
- * This method is like `_.invert` except that the inverted object is generated
- * from the results of running each element of `object` thru `iteratee`. The
- * corresponding inverted value of each inverted key is an array of keys
- * responsible for generating the inverted value. The iteratee is invoked
- * with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.1.0
- * @category Object
- * @param {Object} object The object to invert.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {Object} Returns the new inverted object.
- * @example
- *
- * var object = { 'a': 1, 'b': 2, 'c': 1 };
- *
- * _.invertBy(object);
- * // => { '1': ['a', 'c'], '2': ['b'] }
- *
- * _.invertBy(object, function(value) {
- * return 'group' + value;
- * });
- * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
- */
- var invertBy = createInverter(function(result, value, key) {
- if (hasOwnProperty.call(result, value)) {
- result[value].push(key);
- } else {
- result[value] = [key];
- }
- }, getIteratee);
-
- /**
- * Invokes the method at `path` of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
- *
- * _.invoke(object, 'a[0].b.c.slice', 1, 3);
- * // => [2, 3]
- */
- var invoke = rest(baseInvoke);
-
- /**
- * Creates an array of the own enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects. See the
- * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
- * for more details.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keys(new Foo);
- * // => ['a', 'b'] (iteration order is not guaranteed)
- *
- * _.keys('hi');
- * // => ['0', '1']
- */
- function keys(object) {
- var isProto = isPrototype(object);
- if (!(isProto || isArrayLike(object))) {
- return baseKeys(object);
- }
- var indexes = indexKeys(object),
- skipIndexes = !!indexes,
- result = indexes || [],
- length = result.length;
-
- for (var key in object) {
- if (baseHas(object, key) &&
- !(skipIndexes && (key == 'length' || isIndex(key, length))) &&
- !(isProto && key == 'constructor')) {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * Creates an array of the own and inherited enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keysIn(new Foo);
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
- */
- function keysIn(object) {
- var index = -1,
- isProto = isPrototype(object),
- props = baseKeysIn(object),
- propsLength = props.length,
- indexes = indexKeys(object),
- skipIndexes = !!indexes,
- result = indexes || [],
- length = result.length;
-
- while (++index < propsLength) {
- var key = props[index];
- if (!(skipIndexes && (key == 'length' || isIndex(key, length))) &&
- !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * The opposite of `_.mapValues`; this method creates an object with the
- * same values as `object` and keys generated by running each own enumerable
- * string keyed property of `object` thru `iteratee`. The iteratee is invoked
- * with three arguments: (value, key, object).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Object} Returns the new mapped object.
- * @see _.mapValues
- * @example
- *
- * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
- * return key + value;
- * });
- * // => { 'a1': 1, 'b2': 2 }
- */
- function mapKeys(object, iteratee) {
- var result = {};
- iteratee = getIteratee(iteratee, 3);
-
- baseForOwn(object, function(value, key, object) {
- result[iteratee(value, key, object)] = value;
- });
- return result;
- }
-
- /**
- * Creates an object with the same keys as `object` and values generated
- * by running each own enumerable string keyed property of `object` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, key, object).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The function invoked per iteration.
- * @returns {Object} Returns the new mapped object.
- * @see _.mapKeys
- * @example
- *
- * var users = {
- * 'fred': { 'user': 'fred', 'age': 40 },
- * 'pebbles': { 'user': 'pebbles', 'age': 1 }
- * };
- *
- * _.mapValues(users, function(o) { return o.age; });
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
- *
- * // The `_.property` iteratee shorthand.
- * _.mapValues(users, 'age');
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
- */
- function mapValues(object, iteratee) {
- var result = {};
- iteratee = getIteratee(iteratee, 3);
-
- baseForOwn(object, function(value, key, object) {
- result[key] = iteratee(value, key, object);
- });
- return result;
- }
-
- /**
- * This method is like `_.assign` except that it recursively merges own and
- * inherited enumerable string keyed properties of source objects into the
- * destination object. Source properties that resolve to `undefined` are
- * skipped if a destination value exists. Array and plain object properties
- * are merged recursively. Other objects and value types are overridden by
- * assignment. Source objects are applied from left to right. Subsequent
- * sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var users = {
- * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
- * };
- *
- * var ages = {
- * 'data': [{ 'age': 36 }, { 'age': 40 }]
- * };
- *
- * _.merge(users, ages);
- * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
- */
- var merge = createAssigner(function(object, source, srcIndex) {
- baseMerge(object, source, srcIndex);
- });
-
- /**
- * This method is like `_.merge` except that it accepts `customizer` which
- * is invoked to produce the merged values of the destination and source
- * properties. If `customizer` returns `undefined`, merging is handled by the
- * method instead. The `customizer` is invoked with seven arguments:
- * (objValue, srcValue, key, object, source, stack).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} customizer The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function customizer(objValue, srcValue) {
- * if (_.isArray(objValue)) {
- * return objValue.concat(srcValue);
- * }
- * }
- *
- * var object = {
- * 'fruits': ['apple'],
- * 'vegetables': ['beet']
- * };
- *
- * var other = {
- * 'fruits': ['banana'],
- * 'vegetables': ['carrot']
- * };
- *
- * _.mergeWith(object, other, customizer);
- * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
- */
- var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
- baseMerge(object, source, srcIndex, customizer);
- });
-
- /**
- * The opposite of `_.pick`; this method creates an object composed of the
- * own and inherited enumerable string keyed properties of `object` that are
- * not omitted.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property identifiers to omit.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omit(object, ['a', 'c']);
- * // => { 'b': '2' }
- */
- var omit = rest(function(object, props) {
- if (object == null) {
- return {};
- }
- props = arrayMap(baseFlatten(props, 1), toKey);
- return basePick(object, baseDifference(getAllKeysIn(object), props));
- });
-
- /**
- * The opposite of `_.pickBy`; this method creates an object composed of
- * the own and inherited enumerable string keyed properties of `object` that
- * `predicate` doesn't return truthy for. The predicate is invoked with two
- * arguments: (value, key).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The source object.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omitBy(object, _.isNumber);
- * // => { 'b': '2' }
- */
- function omitBy(object, predicate) {
- predicate = getIteratee(predicate);
- return basePickBy(object, function(value, key) {
- return !predicate(value, key);
- });
- }
-
- /**
- * Creates an object composed of the picked `object` properties.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property identifiers to pick.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pick(object, ['a', 'c']);
- * // => { 'a': 1, 'c': 3 }
- */
- var pick = rest(function(object, props) {
- return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
- });
-
- /**
- * Creates an object composed of the `object` properties `predicate` returns
- * truthy for. The predicate is invoked with two arguments: (value, key).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The source object.
- * @param {Array|Function|Object|string} [predicate=_.identity]
- * The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pickBy(object, _.isNumber);
- * // => { 'a': 1, 'c': 3 }
- */
- function pickBy(object, predicate) {
- return object == null ? {} : basePickBy(object, getIteratee(predicate));
- }
-
- /**
- * This method is like `_.get` except that if the resolved value is a
- * function it's invoked with the `this` binding of its parent object and
- * its result is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to resolve.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
- *
- * _.result(object, 'a[0].b.c1');
- * // => 3
- *
- * _.result(object, 'a[0].b.c2');
- * // => 4
- *
- * _.result(object, 'a[0].b.c3', 'default');
- * // => 'default'
- *
- * _.result(object, 'a[0].b.c3', _.constant('default'));
- * // => 'default'
- */
- function result(object, path, defaultValue) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var index = -1,
- length = path.length;
-
- // Ensure the loop is entered when path is empty.
- if (!length) {
- object = undefined;
- length = 1;
- }
- while (++index < length) {
- var value = object == null ? undefined : object[toKey(path[index])];
- if (value === undefined) {
- index = length;
- value = defaultValue;
- }
- object = isFunction(value) ? value.call(object) : value;
- }
- return object;
- }
-
- /**
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
- * it's created. Arrays are created for missing index properties while objects
- * are created for all other missing properties. Use `_.setWith` to customize
- * `path` creation.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.set(object, 'a[0].b.c', 4);
- * console.log(object.a[0].b.c);
- * // => 4
- *
- * _.set(object, ['x', '0', 'y', 'z'], 5);
- * console.log(object.x[0].y.z);
- * // => 5
- */
- function set(object, path, value) {
- return object == null ? object : baseSet(object, path, value);
- }
-
- /**
- * This method is like `_.set` except that it accepts `customizer` which is
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
- * path creation is handled by the method instead. The `customizer` is invoked
- * with three arguments: (nsValue, key, nsObject).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {};
- *
- * _.setWith(object, '[0][1]', 'a', Object);
- * // => { '0': { '1': 'a' } }
- */
- function setWith(object, path, value, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return object == null ? object : baseSet(object, path, value, customizer);
- }
-
- /**
- * Creates an array of own enumerable string keyed-value pairs for `object`
- * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
- * entries are returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias entries
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the key-value pairs.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.toPairs(new Foo);
- * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
- */
- var toPairs = createToPairs(keys);
-
- /**
- * Creates an array of own and inherited enumerable string keyed-value pairs
- * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
- * or set, its entries are returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias entriesIn
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the key-value pairs.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.toPairsIn(new Foo);
- * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
- */
- var toPairsIn = createToPairs(keysIn);
-
- /**
- * An alternative to `_.reduce`; this method transforms `object` to a new
- * `accumulator` object which is the result of running each of its own
- * enumerable string keyed properties thru `iteratee`, with each invocation
- * potentially mutating the `accumulator` object. If `accumulator` is not
- * provided, a new object with the same `[[Prototype]]` will be used. The
- * iteratee is invoked with four arguments: (accumulator, value, key, object).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The custom accumulator value.
- * @returns {*} Returns the accumulated value.
- * @example
- *
- * _.transform([2, 3, 4], function(result, n) {
- * result.push(n *= n);
- * return n % 2 == 0;
- * }, []);
- * // => [4, 9]
- *
- * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] }
- */
- function transform(object, iteratee, accumulator) {
- var isArr = isArray(object) || isTypedArray(object);
- iteratee = getIteratee(iteratee, 4);
-
- if (accumulator == null) {
- if (isArr || isObject(object)) {
- var Ctor = object.constructor;
- if (isArr) {
- accumulator = isArray(object) ? new Ctor : [];
- } else {
- accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
- }
- } else {
- accumulator = {};
- }
- }
- (isArr ? arrayEach : baseForOwn)(object, function(value, index, object) {
- return iteratee(accumulator, value, index, object);
- });
- return accumulator;
- }
-
- /**
- * Removes the property at `path` of `object`.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 7 } }] };
- * _.unset(object, 'a[0].b.c');
- * // => true
- *
- * console.log(object);
- * // => { 'a': [{ 'b': {} }] };
- *
- * _.unset(object, ['a', '0', 'b', 'c']);
- * // => true
- *
- * console.log(object);
- * // => { 'a': [{ 'b': {} }] };
- */
- function unset(object, path) {
- return object == null ? true : baseUnset(object, path);
- }
-
- /**
- * This method is like `_.set` except that accepts `updater` to produce the
- * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
- * is invoked with one argument: (value).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {Function} updater The function to produce the updated value.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.update(object, 'a[0].b.c', function(n) { return n * n; });
- * console.log(object.a[0].b.c);
- * // => 9
- *
- * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
- * console.log(object.x[0].y.z);
- * // => 0
- */
- function update(object, path, updater) {
- return object == null ? object : baseUpdate(object, path, castFunction(updater));
- }
-
- /**
- * This method is like `_.update` except that it accepts `customizer` which is
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
- * path creation is handled by the method instead. The `customizer` is invoked
- * with three arguments: (nsValue, key, nsObject).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {Function} updater The function to produce the updated value.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {};
- *
- * _.updateWith(object, '[0][1]', _.constant('a'), Object);
- * // => { '0': { '1': 'a' } }
- */
- function updateWith(object, path, updater, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
- }
-
- /**
- * Creates an array of the own enumerable string keyed property values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.values(new Foo);
- * // => [1, 2] (iteration order is not guaranteed)
- *
- * _.values('hi');
- * // => ['h', 'i']
- */
- function values(object) {
- return object ? baseValues(object, keys(object)) : [];
- }
-
- /**
- * Creates an array of the own and inherited enumerable string keyed property
- * values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.valuesIn(new Foo);
- * // => [1, 2, 3] (iteration order is not guaranteed)
- */
- function valuesIn(object) {
- return object == null ? [] : baseValues(object, keysIn(object));
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Clamps `number` within the inclusive `lower` and `upper` bounds.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Number
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- * @example
- *
- * _.clamp(-10, -5, 5);
- * // => -5
- *
- * _.clamp(10, -5, 5);
- * // => 5
- */
- function clamp(number, lower, upper) {
- if (upper === undefined) {
- upper = lower;
- lower = undefined;
- }
- if (upper !== undefined) {
- upper = toNumber(upper);
- upper = upper === upper ? upper : 0;
- }
- if (lower !== undefined) {
- lower = toNumber(lower);
- lower = lower === lower ? lower : 0;
- }
- return baseClamp(toNumber(number), lower, upper);
- }
-
- /**
- * Checks if `n` is between `start` and up to, but not including, `end`. If
- * `end` is not specified, it's set to `start` with `start` then set to `0`.
- * If `start` is greater than `end` the params are swapped to support
- * negative ranges.
- *
- * @static
- * @memberOf _
- * @since 3.3.0
- * @category Number
- * @param {number} number The number to check.
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- * @see _.range, _.rangeRight
- * @example
- *
- * _.inRange(3, 2, 4);
- * // => true
- *
- * _.inRange(4, 8);
- * // => true
- *
- * _.inRange(4, 2);
- * // => false
- *
- * _.inRange(2, 2);
- * // => false
- *
- * _.inRange(1.2, 2);
- * // => true
- *
- * _.inRange(5.2, 4);
- * // => false
- *
- * _.inRange(-3, -2, -6);
- * // => true
- */
- function inRange(number, start, end) {
- start = toNumber(start) || 0;
- if (end === undefined) {
- end = start;
- start = 0;
- } else {
- end = toNumber(end) || 0;
- }
- number = toNumber(number);
- return baseInRange(number, start, end);
- }
-
- /**
- * Produces a random number between the inclusive `lower` and `upper` bounds.
- * If only one argument is provided a number between `0` and the given number
- * is returned. If `floating` is `true`, or either `lower` or `upper` are
- * floats, a floating-point number is returned instead of an integer.
- *
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
- * floating-point values which can produce unexpected results.
- *
- * @static
- * @memberOf _
- * @since 0.7.0
- * @category Number
- * @param {number} [lower=0] The lower bound.
- * @param {number} [upper=1] The upper bound.
- * @param {boolean} [floating] Specify returning a floating-point number.
- * @returns {number} Returns the random number.
- * @example
- *
- * _.random(0, 5);
- * // => an integer between 0 and 5
- *
- * _.random(5);
- * // => also an integer between 0 and 5
- *
- * _.random(5, true);
- * // => a floating-point number between 0 and 5
- *
- * _.random(1.2, 5.2);
- * // => a floating-point number between 1.2 and 5.2
- */
- function random(lower, upper, floating) {
- if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
- upper = floating = undefined;
- }
- if (floating === undefined) {
- if (typeof upper == 'boolean') {
- floating = upper;
- upper = undefined;
- }
- else if (typeof lower == 'boolean') {
- floating = lower;
- lower = undefined;
- }
- }
- if (lower === undefined && upper === undefined) {
- lower = 0;
- upper = 1;
- }
- else {
- lower = toNumber(lower) || 0;
- if (upper === undefined) {
- upper = lower;
- lower = 0;
- } else {
- upper = toNumber(upper) || 0;
- }
- }
- if (lower > upper) {
- var temp = lower;
- lower = upper;
- upper = temp;
- }
- if (floating || lower % 1 || upper % 1) {
- var rand = nativeRandom();
- return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
- }
- return baseRandom(lower, upper);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the camel cased string.
- * @example
- *
- * _.camelCase('Foo Bar');
- * // => 'fooBar'
- *
- * _.camelCase('--foo-bar--');
- * // => 'fooBar'
- *
- * _.camelCase('__FOO_BAR__');
- * // => 'fooBar'
- */
- var camelCase = createCompounder(function(result, word, index) {
- word = word.toLowerCase();
- return result + (index ? capitalize(word) : word);
- });
-
- /**
- * Converts the first character of `string` to upper case and the remaining
- * to lower case.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to capitalize.
- * @returns {string} Returns the capitalized string.
- * @example
- *
- * _.capitalize('FRED');
- * // => 'Fred'
- */
- function capitalize(string) {
- return upperFirst(toString(string).toLowerCase());
- }
-
- /**
- * Deburrs `string` by converting
- * [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
- * to basic latin letters and removing
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to deburr.
- * @returns {string} Returns the deburred string.
- * @example
- *
- * _.deburr('déjà vu');
- * // => 'deja vu'
- */
- function deburr(string) {
- string = toString(string);
- return string && string.replace(reLatin1, deburrLetter).replace(reComboMark, '');
- }
-
- /**
- * Checks if `string` ends with the given target string.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to search.
- * @param {string} [target] The string to search for.
- * @param {number} [position=string.length] The position to search up to.
- * @returns {boolean} Returns `true` if `string` ends with `target`,
- * else `false`.
- * @example
- *
- * _.endsWith('abc', 'c');
- * // => true
- *
- * _.endsWith('abc', 'b');
- * // => false
- *
- * _.endsWith('abc', 'b', 2);
- * // => true
- */
- function endsWith(string, target, position) {
- string = toString(string);
- target = baseToString(target);
-
- var length = string.length;
- position = position === undefined
- ? length
- : baseClamp(toInteger(position), 0, length);
-
- position -= target.length;
- return position >= 0 && string.indexOf(target, position) == position;
- }
-
- /**
- * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to
- * their corresponding HTML entities.
- *
- * **Note:** No other characters are escaped. To escape additional
- * characters use a third-party library like [_he_](https://mths.be/he).
- *
- * Though the ">" character is escaped for symmetry, characters like
- * ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value. See
- * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
- * (under "semi-related fun fact") for more details.
- *
- * Backticks are escaped because in IE < 9, they can break out of
- * attribute values or HTML comments. See [#59](https://html5sec.org/#59),
- * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
- * [#133](https://html5sec.org/#133) of the
- * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
- *
- * When working with HTML you should always
- * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
- * XSS vectors.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escape('fred, barney, & pebbles');
- * // => 'fred, barney, &amp; pebbles'
- */
- function escape(string) {
- string = toString(string);
- return (string && reHasUnescapedHtml.test(string))
- ? string.replace(reUnescapedHtml, escapeHtmlChar)
- : string;
- }
-
- /**
- * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
- * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escapeRegExp('[lodash](https://lodash.com/)');
- * // => '\[lodash\]\(https://lodash\.com/\)'
- */
- function escapeRegExp(string) {
- string = toString(string);
- return (string && reHasRegExpChar.test(string))
- ? string.replace(reRegExpChar, '\\$&')
- : string;
- }
-
- /**
- * Converts `string` to
- * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the kebab cased string.
- * @example
- *
- * _.kebabCase('Foo Bar');
- * // => 'foo-bar'
- *
- * _.kebabCase('fooBar');
- * // => 'foo-bar'
- *
- * _.kebabCase('__FOO_BAR__');
- * // => 'foo-bar'
- */
- var kebabCase = createCompounder(function(result, word, index) {
- return result + (index ? '-' : '') + word.toLowerCase();
- });
-
- /**
- * Converts `string`, as space separated words, to lower case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the lower cased string.
- * @example
- *
- * _.lowerCase('--Foo-Bar--');
- * // => 'foo bar'
- *
- * _.lowerCase('fooBar');
- * // => 'foo bar'
- *
- * _.lowerCase('__FOO_BAR__');
- * // => 'foo bar'
- */
- var lowerCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + word.toLowerCase();
- });
-
- /**
- * Converts the first character of `string` to lower case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.lowerFirst('Fred');
- * // => 'fred'
- *
- * _.lowerFirst('FRED');
- * // => 'fRED'
- */
- var lowerFirst = createCaseFirst('toLowerCase');
-
- /**
- * Pads `string` on the left and right sides if it's shorter than `length`.
- * Padding characters are truncated if they can't be evenly divided by `length`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.pad('abc', 8);
- * // => ' abc '
- *
- * _.pad('abc', 8, '_-');
- * // => '_-abc_-_'
- *
- * _.pad('abc', 3);
- * // => 'abc'
- */
- function pad(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- if (!length || strLength >= length) {
- return string;
- }
- var mid = (length - strLength) / 2;
- return (
- createPadding(nativeFloor(mid), chars) +
- string +
- createPadding(nativeCeil(mid), chars)
- );
- }
-
- /**
- * Pads `string` on the right side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padEnd('abc', 6);
- * // => 'abc '
- *
- * _.padEnd('abc', 6, '_-');
- * // => 'abc_-_'
- *
- * _.padEnd('abc', 3);
- * // => 'abc'
- */
- function padEnd(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (string + createPadding(length - strLength, chars))
- : string;
- }
-
- /**
- * Pads `string` on the left side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padStart('abc', 6);
- * // => ' abc'
- *
- * _.padStart('abc', 6, '_-');
- * // => '_-_abc'
- *
- * _.padStart('abc', 3);
- * // => 'abc'
- */
- function padStart(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (createPadding(length - strLength, chars) + string)
- : string;
- }
-
- /**
- * Converts `string` to an integer of the specified radix. If `radix` is
- * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
- * hexadecimal, in which case a `radix` of `16` is used.
- *
- * **Note:** This method aligns with the
- * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category String
- * @param {string} string The string to convert.
- * @param {number} [radix=10] The radix to interpret `value` by.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.parseInt('08');
- * // => 8
- *
- * _.map(['6', '08', '10'], _.parseInt);
- * // => [6, 8, 10]
- */
- function parseInt(string, radix, guard) {
- // Chrome fails to trim leading <BOM> whitespace characters.
- // See https://bugs.chromium.org/p/v8/issues/detail?id=3109 for more details.
- if (guard || radix == null) {
- radix = 0;
- } else if (radix) {
- radix = +radix;
- }
- string = toString(string).replace(reTrim, '');
- return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10));
- }
-
- /**
- * Repeats the given string `n` times.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to repeat.
- * @param {number} [n=1] The number of times to repeat the string.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the repeated string.
- * @example
- *
- * _.repeat('*', 3);
- * // => '***'
- *
- * _.repeat('abc', 2);
- * // => 'abcabc'
- *
- * _.repeat('abc', 0);
- * // => ''
- */
- function repeat(string, n, guard) {
- if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
- n = 1;
- } else {
- n = toInteger(n);
- }
- return baseRepeat(toString(string), n);
- }
-
- /**
- * Replaces matches for `pattern` in `string` with `replacement`.
- *
- * **Note:** This method is based on
- * [`String#replace`](https://mdn.io/String/replace).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to modify.
- * @param {RegExp|string} pattern The pattern to replace.
- * @param {Function|string} replacement The match replacement.
- * @returns {string} Returns the modified string.
- * @example
- *
- * _.replace('Hi Fred', 'Fred', 'Barney');
- * // => 'Hi Barney'
- */
- function replace() {
- var args = arguments,
- string = toString(args[0]);
-
- return args.length < 3 ? string : nativeReplace.call(string, args[1], args[2]);
- }
-
- /**
- * Converts `string` to
- * [snake case](https://en.wikipedia.org/wiki/Snake_case).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the snake cased string.
- * @example
- *
- * _.snakeCase('Foo Bar');
- * // => 'foo_bar'
- *
- * _.snakeCase('fooBar');
- * // => 'foo_bar'
- *
- * _.snakeCase('--FOO-BAR--');
- * // => 'foo_bar'
- */
- var snakeCase = createCompounder(function(result, word, index) {
- return result + (index ? '_' : '') + word.toLowerCase();
- });
-
- /**
- * Splits `string` by `separator`.
- *
- * **Note:** This method is based on
- * [`String#split`](https://mdn.io/String/split).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to split.
- * @param {RegExp|string} separator The separator pattern to split by.
- * @param {number} [limit] The length to truncate results to.
- * @returns {Array} Returns the string segments.
- * @example
- *
- * _.split('a-b-c', '-', 2);
- * // => ['a', 'b']
- */
- function split(string, separator, limit) {
- if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
- separator = limit = undefined;
- }
- limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
- if (!limit) {
- return [];
- }
- string = toString(string);
- if (string && (
- typeof separator == 'string' ||
- (separator != null && !isRegExp(separator))
- )) {
- separator = baseToString(separator);
- if (separator == '' && reHasComplexSymbol.test(string)) {
- return castSlice(stringToArray(string), 0, limit);
- }
- }
- return nativeSplit.call(string, separator, limit);
- }
-
- /**
- * Converts `string` to
- * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
- *
- * @static
- * @memberOf _
- * @since 3.1.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the start cased string.
- * @example
- *
- * _.startCase('--foo-bar--');
- * // => 'Foo Bar'
- *
- * _.startCase('fooBar');
- * // => 'Foo Bar'
- *
- * _.startCase('__FOO_BAR__');
- * // => 'FOO BAR'
- */
- var startCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + upperFirst(word);
- });
-
- /**
- * Checks if `string` starts with the given target string.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to search.
- * @param {string} [target] The string to search for.
- * @param {number} [position=0] The position to search from.
- * @returns {boolean} Returns `true` if `string` starts with `target`,
- * else `false`.
- * @example
- *
- * _.startsWith('abc', 'a');
- * // => true
- *
- * _.startsWith('abc', 'b');
- * // => false
- *
- * _.startsWith('abc', 'b', 1);
- * // => true
- */
- function startsWith(string, target, position) {
- string = toString(string);
- position = baseClamp(toInteger(position), 0, string.length);
- return string.lastIndexOf(baseToString(target), position) == position;
- }
-
- /**
- * Creates a compiled template function that can interpolate data properties
- * in "interpolate" delimiters, HTML-escape interpolated data properties in
- * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
- * properties may be accessed as free variables in the template. If a setting
- * object is given, it takes precedence over `_.templateSettings` values.
- *
- * **Note:** In the development build `_.template` utilizes
- * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
- * for easier debugging.
- *
- * For more information on precompiling templates see
- * [lodash's custom builds documentation](https://lodash.com/custom-builds).
- *
- * For more information on Chrome extension sandboxes see
- * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The template string.
- * @param {Object} [options={}] The options object.
- * @param {RegExp} [options.escape=_.templateSettings.escape]
- * The HTML "escape" delimiter.
- * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
- * The "evaluate" delimiter.
- * @param {Object} [options.imports=_.templateSettings.imports]
- * An object to import into the template as free variables.
- * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
- * The "interpolate" delimiter.
- * @param {string} [options.sourceURL='lodash.templateSources[n]']
- * The sourceURL of the compiled template.
- * @param {string} [options.variable='obj']
- * The data object variable name.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the compiled template function.
- * @example
- *
- * // Use the "interpolate" delimiter to create a compiled template.
- * var compiled = _.template('hello <%= user %>!');
- * compiled({ 'user': 'fred' });
- * // => 'hello fred!'
- *
- * // Use the HTML "escape" delimiter to escape data property values.
- * var compiled = _.template('<b><%- value %></b>');
- * compiled({ 'value': '<script>' });
- * // => '<b>&lt;script&gt;</b>'
- *
- * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
- * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
- * compiled({ 'users': ['fred', 'barney'] });
- * // => '<li>fred</li><li>barney</li>'
- *
- * // Use the internal `print` function in "evaluate" delimiters.
- * var compiled = _.template('<% print("hello " + user); %>!');
- * compiled({ 'user': 'barney' });
- * // => 'hello barney!'
- *
- * // Use the ES delimiter as an alternative to the default "interpolate" delimiter.
- * var compiled = _.template('hello ${ user }!');
- * compiled({ 'user': 'pebbles' });
- * // => 'hello pebbles!'
- *
- * // Use backslashes to treat delimiters as plain text.
- * var compiled = _.template('<%= "\\<%- value %\\>" %>');
- * compiled({ 'value': 'ignored' });
- * // => '<%- value %>'
- *
- * // Use the `imports` option to import `jQuery` as `jq`.
- * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
- * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
- * compiled({ 'users': ['fred', 'barney'] });
- * // => '<li>fred</li><li>barney</li>'
- *
- * // Use the `sourceURL` option to specify a custom sourceURL for the template.
- * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
- * compiled(data);
- * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
- *
- * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
- * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
- * compiled.source;
- * // => function(data) {
- * // var __t, __p = '';
- * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
- * // return __p;
- * // }
- *
- * // Use custom template delimiters.
- * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
- * var compiled = _.template('hello {{ user }}!');
- * compiled({ 'user': 'mustache' });
- * // => 'hello mustache!'
- *
- * // Use the `source` property to inline compiled templates for meaningful
- * // line numbers in error messages and stack traces.
- * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
- * var JST = {\
- * "main": ' + _.template(mainText).source + '\
- * };\
- * ');
- */
- function template(string, options, guard) {
- // Based on John Resig's `tmpl` implementation
- // (http://ejohn.org/blog/javascript-micro-templating/)
- // and Laura Doktorova's doT.js (https://github.com/olado/doT).
- var settings = lodash.templateSettings;
-
- if (guard && isIterateeCall(string, options, guard)) {
- options = undefined;
- }
- string = toString(string);
- options = assignInWith({}, options, settings, assignInDefaults);
-
- var imports = assignInWith({}, options.imports, settings.imports, assignInDefaults),
- importsKeys = keys(imports),
- importsValues = baseValues(imports, importsKeys);
-
- var isEscaping,
- isEvaluating,
- index = 0,
- interpolate = options.interpolate || reNoMatch,
- source = "__p += '";
-
- // Compile the regexp to match each delimiter.
- var reDelimiters = RegExp(
- (options.escape || reNoMatch).source + '|' +
- interpolate.source + '|' +
- (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
- (options.evaluate || reNoMatch).source + '|$'
- , 'g');
-
- // Use a sourceURL for easier debugging.
- var sourceURL = '//# sourceURL=' +
- ('sourceURL' in options
- ? options.sourceURL
- : ('lodash.templateSources[' + (++templateCounter) + ']')
- ) + '\n';
-
- string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
- interpolateValue || (interpolateValue = esTemplateValue);
-
- // Escape characters that can't be included in string literals.
- source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
-
- // Replace delimiters with snippets.
- if (escapeValue) {
- isEscaping = true;
- source += "' +\n__e(" + escapeValue + ") +\n'";
- }
- if (evaluateValue) {
- isEvaluating = true;
- source += "';\n" + evaluateValue + ";\n__p += '";
- }
- if (interpolateValue) {
- source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
- }
- index = offset + match.length;
-
- // The JS engine embedded in Adobe products needs `match` returned in
- // order to produce the correct `offset` value.
- return match;
- });
-
- source += "';\n";
-
- // If `variable` is not specified wrap a with-statement around the generated
- // code to add the data object to the top of the scope chain.
- var variable = options.variable;
- if (!variable) {
- source = 'with (obj) {\n' + source + '\n}\n';
- }
- // Cleanup code by stripping empty strings.
- source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
- .replace(reEmptyStringMiddle, '$1')
- .replace(reEmptyStringTrailing, '$1;');
-
- // Frame code as the function body.
- source = 'function(' + (variable || 'obj') + ') {\n' +
- (variable
- ? ''
- : 'obj || (obj = {});\n'
- ) +
- "var __t, __p = ''" +
- (isEscaping
- ? ', __e = _.escape'
- : ''
- ) +
- (isEvaluating
- ? ', __j = Array.prototype.join;\n' +
- "function print() { __p += __j.call(arguments, '') }\n"
- : ';\n'
- ) +
- source +
- 'return __p\n}';
-
- var result = attempt(function() {
- return Function(importsKeys, sourceURL + 'return ' + source)
- .apply(undefined, importsValues);
- });
-
- // Provide the compiled function's source by its `toString` method or
- // the `source` property as a convenience for inlining compiled templates.
- result.source = source;
- if (isError(result)) {
- throw result;
- }
- return result;
- }
-
- /**
- * Converts `string`, as a whole, to lower case just like
- * [String#toLowerCase](https://mdn.io/toLowerCase).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the lower cased string.
- * @example
- *
- * _.toLower('--Foo-Bar--');
- * // => '--foo-bar--'
- *
- * _.toLower('fooBar');
- * // => 'foobar'
- *
- * _.toLower('__FOO_BAR__');
- * // => '__foo_bar__'
- */
- function toLower(value) {
- return toString(value).toLowerCase();
- }
-
- /**
- * Converts `string`, as a whole, to upper case just like
- * [String#toUpperCase](https://mdn.io/toUpperCase).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the upper cased string.
- * @example
- *
- * _.toUpper('--foo-bar--');
- * // => '--FOO-BAR--'
- *
- * _.toUpper('fooBar');
- * // => 'FOOBAR'
- *
- * _.toUpper('__foo_bar__');
- * // => '__FOO_BAR__'
- */
- function toUpper(value) {
- return toString(value).toUpperCase();
- }
-
- /**
- * Removes leading and trailing whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trim(' abc ');
- * // => 'abc'
- *
- * _.trim('-_-abc-_-', '_-');
- * // => 'abc'
- *
- * _.map([' foo ', ' bar '], _.trim);
- * // => ['foo', 'bar']
- */
- function trim(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrim, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- chrSymbols = stringToArray(chars),
- start = charsStartIndex(strSymbols, chrSymbols),
- end = charsEndIndex(strSymbols, chrSymbols) + 1;
-
- return castSlice(strSymbols, start, end).join('');
- }
-
- /**
- * Removes trailing whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trimEnd(' abc ');
- * // => ' abc'
- *
- * _.trimEnd('-_-abc-_-', '_-');
- * // => '-_-abc'
- */
- function trimEnd(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrimEnd, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
-
- return castSlice(strSymbols, 0, end).join('');
- }
-
- /**
- * Removes leading whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trimStart(' abc ');
- * // => 'abc '
- *
- * _.trimStart('-_-abc-_-', '_-');
- * // => 'abc-_-'
- */
- function trimStart(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrimStart, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- start = charsStartIndex(strSymbols, stringToArray(chars));
-
- return castSlice(strSymbols, start).join('');
- }
-
- /**
- * Truncates `string` if it's longer than the given maximum string length.
- * The last characters of the truncated string are replaced with the omission
- * string which defaults to "...".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to truncate.
- * @param {Object} [options={}] The options object.
- * @param {number} [options.length=30] The maximum string length.
- * @param {string} [options.omission='...'] The string to indicate text is omitted.
- * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
- * @returns {string} Returns the truncated string.
- * @example
- *
- * _.truncate('hi-diddly-ho there, neighborino');
- * // => 'hi-diddly-ho there, neighbo...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'length': 24,
- * 'separator': ' '
- * });
- * // => 'hi-diddly-ho there,...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'length': 24,
- * 'separator': /,? +/
- * });
- * // => 'hi-diddly-ho there...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'omission': ' [...]'
- * });
- * // => 'hi-diddly-ho there, neig [...]'
- */
- function truncate(string, options) {
- var length = DEFAULT_TRUNC_LENGTH,
- omission = DEFAULT_TRUNC_OMISSION;
-
- if (isObject(options)) {
- var separator = 'separator' in options ? options.separator : separator;
- length = 'length' in options ? toInteger(options.length) : length;
- omission = 'omission' in options ? baseToString(options.omission) : omission;
- }
- string = toString(string);
-
- var strLength = string.length;
- if (reHasComplexSymbol.test(string)) {
- var strSymbols = stringToArray(string);
- strLength = strSymbols.length;
- }
- if (length >= strLength) {
- return string;
- }
- var end = length - stringSize(omission);
- if (end < 1) {
- return omission;
- }
- var result = strSymbols
- ? castSlice(strSymbols, 0, end).join('')
- : string.slice(0, end);
-
- if (separator === undefined) {
- return result + omission;
- }
- if (strSymbols) {
- end += (result.length - end);
- }
- if (isRegExp(separator)) {
- if (string.slice(end).search(separator)) {
- var match,
- substring = result;
-
- if (!separator.global) {
- separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
- }
- separator.lastIndex = 0;
- while ((match = separator.exec(substring))) {
- var newEnd = match.index;
- }
- result = result.slice(0, newEnd === undefined ? end : newEnd);
- }
- } else if (string.indexOf(baseToString(separator), end) != end) {
- var index = result.lastIndexOf(separator);
- if (index > -1) {
- result = result.slice(0, index);
- }
- }
- return result + omission;
- }
-
- /**
- * The inverse of `_.escape`; this method converts the HTML entities
- * `&amp;`, `&lt;`, `&gt;`, `&quot;`, `&#39;`, and `&#96;` in `string` to
- * their corresponding characters.
- *
- * **Note:** No other HTML entities are unescaped. To unescape additional
- * HTML entities use a third-party library like [_he_](https://mths.be/he).
- *
- * @static
- * @memberOf _
- * @since 0.6.0
- * @category String
- * @param {string} [string=''] The string to unescape.
- * @returns {string} Returns the unescaped string.
- * @example
- *
- * _.unescape('fred, barney, &amp; pebbles');
- * // => 'fred, barney, & pebbles'
- */
- function unescape(string) {
- string = toString(string);
- return (string && reHasEscapedHtml.test(string))
- ? string.replace(reEscapedHtml, unescapeHtmlChar)
- : string;
- }
-
- /**
- * Converts `string`, as space separated words, to upper case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the upper cased string.
- * @example
- *
- * _.upperCase('--foo-bar');
- * // => 'FOO BAR'
- *
- * _.upperCase('fooBar');
- * // => 'FOO BAR'
- *
- * _.upperCase('__foo_bar__');
- * // => 'FOO BAR'
- */
- var upperCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + word.toUpperCase();
- });
-
- /**
- * Converts the first character of `string` to upper case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.upperFirst('fred');
- * // => 'Fred'
- *
- * _.upperFirst('FRED');
- * // => 'FRED'
- */
- var upperFirst = createCaseFirst('toUpperCase');
-
- /**
- * Splits `string` into an array of its words.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to inspect.
- * @param {RegExp|string} [pattern] The pattern to match words.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the words of `string`.
- * @example
- *
- * _.words('fred, barney, & pebbles');
- * // => ['fred', 'barney', 'pebbles']
- *
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
- * // => ['fred', 'barney', '&', 'pebbles']
- */
- function words(string, pattern, guard) {
- string = toString(string);
- pattern = guard ? undefined : pattern;
-
- if (pattern === undefined) {
- pattern = reHasComplexWord.test(string) ? reComplexWord : reBasicWord;
- }
- return string.match(pattern) || [];
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Attempts to invoke `func`, returning either the result or the caught error
- * object. Any additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Function} func The function to attempt.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {*} Returns the `func` result or error object.
- * @example
- *
- * // Avoid throwing errors for invalid selectors.
- * var elements = _.attempt(function(selector) {
- * return document.querySelectorAll(selector);
- * }, '>_>');
- *
- * if (_.isError(elements)) {
- * elements = [];
- * }
- */
- var attempt = rest(function(func, args) {
- try {
- return apply(func, undefined, args);
- } catch (e) {
- return isError(e) ? e : new Error(e);
- }
- });
-
- /**
- * Binds methods of an object to the object itself, overwriting the existing
- * method.
- *
- * **Note:** This method doesn't set the "length" property of bound functions.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Object} object The object to bind and assign the bound methods to.
- * @param {...(string|string[])} methodNames The object method names to bind.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var view = {
- * 'label': 'docs',
- * 'onClick': function() {
- * console.log('clicked ' + this.label);
- * }
- * };
- *
- * _.bindAll(view, ['onClick']);
- * jQuery(element).on('click', view.onClick);
- * // => Logs 'clicked docs' when clicked.
- */
- var bindAll = rest(function(object, methodNames) {
- arrayEach(baseFlatten(methodNames, 1), function(key) {
- key = toKey(key);
- object[key] = bind(object[key], object);
- });
- return object;
- });
-
- /**
- * Creates a function that iterates over `pairs` and invokes the corresponding
- * function of the first predicate to return truthy. The predicate-function
- * pairs are invoked with the `this` binding and arguments of the created
- * function.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {Array} pairs The predicate-function pairs.
- * @returns {Function} Returns the new composite function.
- * @example
- *
- * var func = _.cond([
- * [_.matches({ 'a': 1 }), _.constant('matches A')],
- * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
- * [_.constant(true), _.constant('no match')]
- * ]);
- *
- * func({ 'a': 1, 'b': 2 });
- * // => 'matches A'
- *
- * func({ 'a': 0, 'b': 1 });
- * // => 'matches B'
- *
- * func({ 'a': '1', 'b': '2' });
- * // => 'no match'
- */
- function cond(pairs) {
- var length = pairs ? pairs.length : 0,
- toIteratee = getIteratee();
-
- pairs = !length ? [] : arrayMap(pairs, function(pair) {
- if (typeof pair[1] != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return [toIteratee(pair[0]), pair[1]];
- });
-
- return rest(function(args) {
- var index = -1;
- while (++index < length) {
- var pair = pairs[index];
- if (apply(pair[0], this, args)) {
- return apply(pair[1], this, args);
- }
- }
- });
- }
-
- /**
- * Creates a function that invokes the predicate properties of `source` with
- * the corresponding property values of a given object, returning `true` if
- * all predicates return truthy, else `false`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * _.filter(users, _.conforms({ 'age': function(n) { return n > 38; } }));
- * // => [{ 'user': 'fred', 'age': 40 }]
- */
- function conforms(source) {
- return baseConforms(baseClone(source, true));
- }
-
- /**
- * Creates a function that returns `value`.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {*} value The value to return from the new function.
- * @returns {Function} Returns the new constant function.
- * @example
- *
- * var objects = _.times(2, _.constant({ 'a': 1 }));
- *
- * console.log(objects);
- * // => [{ 'a': 1 }, { 'a': 1 }]
- *
- * console.log(objects[0] === objects[1]);
- * // => true
- */
- function constant(value) {
- return function() {
- return value;
- };
- }
-
- /**
- * Creates a function that returns the result of invoking the given functions
- * with the `this` binding of the created function, where each successive
- * invocation is supplied the return value of the previous.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {...(Function|Function[])} [funcs] Functions to invoke.
- * @returns {Function} Returns the new composite function.
- * @see _.flowRight
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var addSquare = _.flow([_.add, square]);
- * addSquare(1, 2);
- * // => 9
- */
- var flow = createFlow();
-
- /**
- * This method is like `_.flow` except that it creates a function that
- * invokes the given functions from right to left.
- *
- * @static
- * @since 3.0.0
- * @memberOf _
- * @category Util
- * @param {...(Function|Function[])} [funcs] Functions to invoke.
- * @returns {Function} Returns the new composite function.
- * @see _.flow
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var addSquare = _.flowRight([square, _.add]);
- * addSquare(1, 2);
- * // => 9
- */
- var flowRight = createFlow(true);
-
- /**
- * This method returns the first argument given to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'user': 'fred' };
- *
- * console.log(_.identity(object) === object);
- * // => true
- */
- function identity(value) {
- return value;
- }
-
- /**
- * Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name, the created function returns the
- * property value for a given element. If `func` is an array or object, the
- * created function returns `true` for elements that contain the equivalent
- * source properties, otherwise it returns `false`.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Util
- * @param {*} [func=_.identity] The value to convert to a callback.
- * @returns {Function} Returns the callback.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
- * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, _.iteratee(['user', 'fred']));
- * // => [{ 'user': 'fred', 'age': 40 }]
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, _.iteratee('user'));
- * // => ['barney', 'fred']
- *
- * // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
- * return !_.isRegExp(func) ? iteratee(func) : function(string) {
- * return func.test(string);
- * };
- * });
- *
- * _.filter(['abc', 'def'], /ef/);
- * // => ['def']
- */
- function iteratee(func) {
- return baseIteratee(typeof func == 'function' ? func : baseClone(func, true));
- }
-
- /**
- * Creates a function that performs a partial deep comparison between a given
- * object and `source`, returning `true` if the given object has equivalent
- * property values, else `false`. The created function is equivalent to
- * `_.isMatch` with a `source` partially applied.
- *
- * **Note:** This method supports comparing the same values as `_.isEqual`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, _.matches({ 'age': 40, 'active': false }));
- * // => [{ 'user': 'fred', 'age': 40, 'active': false }]
- */
- function matches(source) {
- return baseMatches(baseClone(source, true));
- }
-
- /**
- * Creates a function that performs a partial deep comparison between the
- * value at `path` of a given object to `srcValue`, returning `true` if the
- * object value is equivalent, else `false`.
- *
- * **Note:** This method supports comparing the same values as `_.isEqual`.
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var users = [
- * { 'user': 'barney' },
- * { 'user': 'fred' }
- * ];
- *
- * _.find(users, _.matchesProperty('user', 'fred'));
- * // => { 'user': 'fred' }
- */
- function matchesProperty(path, srcValue) {
- return baseMatchesProperty(path, baseClone(srcValue, true));
- }
-
- /**
- * Creates a function that invokes the method at `path` of a given object.
- * Any additional arguments are provided to the invoked method.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Util
- * @param {Array|string} path The path of the method to invoke.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {Function} Returns the new invoker function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': _.constant(2) } },
- * { 'a': { 'b': _.constant(1) } }
- * ];
- *
- * _.map(objects, _.method('a.b'));
- * // => [2, 1]
- *
- * _.map(objects, _.method(['a', 'b']));
- * // => [2, 1]
- */
- var method = rest(function(path, args) {
- return function(object) {
- return baseInvoke(object, path, args);
- };
- });
-
- /**
- * The opposite of `_.method`; this method creates a function that invokes
- * the method at a given path of `object`. Any additional arguments are
- * provided to the invoked method.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Util
- * @param {Object} object The object to query.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {Function} Returns the new invoker function.
- * @example
- *
- * var array = _.times(3, _.constant),
- * object = { 'a': array, 'b': array, 'c': array };
- *
- * _.map(['a[2]', 'c[0]'], _.methodOf(object));
- * // => [2, 0]
- *
- * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
- * // => [2, 0]
- */
- var methodOf = rest(function(object, args) {
- return function(path) {
- return baseInvoke(object, path, args);
- };
- });
-
- /**
- * Adds all own enumerable string keyed function properties of a source
- * object to the destination object. If `object` is a function, then methods
- * are added to its prototype as well.
- *
- * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
- * avoid conflicts caused by modifying the original.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Function|Object} [object=lodash] The destination object.
- * @param {Object} source The object of functions to add.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
- * @returns {Function|Object} Returns `object`.
- * @example
- *
- * function vowels(string) {
- * return _.filter(string, function(v) {
- * return /[aeiou]/i.test(v);
- * });
- * }
- *
- * _.mixin({ 'vowels': vowels });
- * _.vowels('fred');
- * // => ['e']
- *
- * _('fred').vowels().value();
- * // => ['e']
- *
- * _.mixin({ 'vowels': vowels }, { 'chain': false });
- * _('fred').vowels();
- * // => ['e']
- */
- function mixin(object, source, options) {
- var props = keys(source),
- methodNames = baseFunctions(source, props);
-
- if (options == null &&
- !(isObject(source) && (methodNames.length || !props.length))) {
- options = source;
- source = object;
- object = this;
- methodNames = baseFunctions(source, keys(source));
- }
- var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
- isFunc = isFunction(object);
-
- arrayEach(methodNames, function(methodName) {
- var func = source[methodName];
- object[methodName] = func;
- if (isFunc) {
- object.prototype[methodName] = function() {
- var chainAll = this.__chain__;
- if (chain || chainAll) {
- var result = object(this.__wrapped__),
- actions = result.__actions__ = copyArray(this.__actions__);
-
- actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
- result.__chain__ = chainAll;
- return result;
- }
- return func.apply(object, arrayPush([this.value()], arguments));
- };
- }
- });
-
- return object;
- }
-
- /**
- * Reverts the `_` variable to its previous value and returns a reference to
- * the `lodash` function.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @returns {Function} Returns the `lodash` function.
- * @example
- *
- * var lodash = _.noConflict();
- */
- function noConflict() {
- if (root._ === this) {
- root._ = oldDash;
- }
- return this;
- }
-
- /**
- * A method that returns `undefined`.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Util
- * @example
- *
- * _.times(2, _.noop);
- * // => [undefined, undefined]
- */
- function noop() {
- // No operation performed.
- }
-
- /**
- * Creates a function that gets the argument at index `n`. If `n` is negative,
- * the nth argument from the end is returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {number} [n=0] The index of the argument to return.
- * @returns {Function} Returns the new pass-thru function.
- * @example
- *
- * var func = _.nthArg(1);
- * func('a', 'b', 'c', 'd');
- * // => 'b'
- *
- * var func = _.nthArg(-2);
- * func('a', 'b', 'c', 'd');
- * // => 'c'
- */
- function nthArg(n) {
- n = toInteger(n);
- return rest(function(args) {
- return baseNth(args, n);
- });
- }
-
- /**
- * Creates a function that invokes `iteratees` with the arguments it receives
- * and returns their results.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [iteratees=[_.identity]] The iteratees to invoke.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.over([Math.max, Math.min]);
- *
- * func(1, 2, 3, 4);
- * // => [4, 1]
- */
- var over = createOver(arrayMap);
-
- /**
- * Creates a function that checks if **all** of the `predicates` return
- * truthy when invoked with the arguments it receives.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [predicates=[_.identity]] The predicates to check.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.overEvery([Boolean, isFinite]);
- *
- * func('1');
- * // => true
- *
- * func(null);
- * // => false
- *
- * func(NaN);
- * // => false
- */
- var overEvery = createOver(arrayEvery);
-
- /**
- * Creates a function that checks if **any** of the `predicates` return
- * truthy when invoked with the arguments it receives.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
- * [predicates=[_.identity]] The predicates to check.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.overSome([Boolean, isFinite]);
- *
- * func('1');
- * // => true
- *
- * func(null);
- * // => true
- *
- * func(NaN);
- * // => false
- */
- var overSome = createOver(arraySome);
-
- /**
- * Creates a function that returns the value at `path` of a given object.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': 2 } },
- * { 'a': { 'b': 1 } }
- * ];
- *
- * _.map(objects, _.property('a.b'));
- * // => [2, 1]
- *
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
- * // => [1, 2]
- */
- function property(path) {
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
- }
-
- /**
- * The opposite of `_.property`; this method creates a function that returns
- * the value at a given path of `object`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} object The object to query.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var array = [0, 1, 2],
- * object = { 'a': array, 'b': array, 'c': array };
- *
- * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
- * // => [2, 0]
- *
- * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
- * // => [2, 0]
- */
- function propertyOf(object) {
- return function(path) {
- return object == null ? undefined : baseGet(object, path);
- };
- }
-
- /**
- * Creates an array of numbers (positive and/or negative) progressing from
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
- * `start` is specified without an `end` or `step`. If `end` is not specified,
- * it's set to `start` with `start` then set to `0`.
- *
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
- * floating-point values which can produce unexpected results.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the range of numbers.
- * @see _.inRange, _.rangeRight
- * @example
- *
- * _.range(4);
- * // => [0, 1, 2, 3]
- *
- * _.range(-4);
- * // => [0, -1, -2, -3]
- *
- * _.range(1, 5);
- * // => [1, 2, 3, 4]
- *
- * _.range(0, 20, 5);
- * // => [0, 5, 10, 15]
- *
- * _.range(0, -4, -1);
- * // => [0, -1, -2, -3]
- *
- * _.range(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.range(0);
- * // => []
- */
- var range = createRange();
-
- /**
- * This method is like `_.range` except that it populates values in
- * descending order.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the range of numbers.
- * @see _.inRange, _.range
- * @example
- *
- * _.rangeRight(4);
- * // => [3, 2, 1, 0]
- *
- * _.rangeRight(-4);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 5);
- * // => [4, 3, 2, 1]
- *
- * _.rangeRight(0, 20, 5);
- * // => [15, 10, 5, 0]
- *
- * _.rangeRight(0, -4, -1);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.rangeRight(0);
- * // => []
- */
- var rangeRight = createRange(true);
-
- /**
- * A method that returns a new empty array.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Array} Returns the new empty array.
- * @example
- *
- * var arrays = _.times(2, _.stubArray);
- *
- * console.log(arrays);
- * // => [[], []]
- *
- * console.log(arrays[0] === arrays[1]);
- * // => false
- */
- function stubArray() {
- return [];
- }
-
- /**
- * A method that returns `false`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `false`.
- * @example
- *
- * _.times(2, _.stubFalse);
- * // => [false, false]
- */
- function stubFalse() {
- return false;
- }
-
- /**
- * A method that returns a new empty object.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Object} Returns the new empty object.
- * @example
- *
- * var objects = _.times(2, _.stubObject);
- *
- * console.log(objects);
- * // => [{}, {}]
- *
- * console.log(objects[0] === objects[1]);
- * // => false
- */
- function stubObject() {
- return {};
- }
-
- /**
- * A method that returns an empty string.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {string} Returns the empty string.
- * @example
- *
- * _.times(2, _.stubString);
- * // => ['', '']
- */
- function stubString() {
- return '';
- }
-
- /**
- * A method that returns `true`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `true`.
- * @example
- *
- * _.times(2, _.stubTrue);
- * // => [true, true]
- */
- function stubTrue() {
- return true;
- }
-
- /**
- * Invokes the iteratee `n` times, returning an array of the results of
- * each invocation. The iteratee is invoked with one argument; (index).
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- * @example
- *
- * _.times(3, String);
- * // => ['0', '1', '2']
- *
- * _.times(4, _.constant(0));
- * // => [0, 0, 0, 0]
- */
- function times(n, iteratee) {
- n = toInteger(n);
- if (n < 1 || n > MAX_SAFE_INTEGER) {
- return [];
- }
- var index = MAX_ARRAY_LENGTH,
- length = nativeMin(n, MAX_ARRAY_LENGTH);
-
- iteratee = getIteratee(iteratee);
- n -= MAX_ARRAY_LENGTH;
-
- var result = baseTimes(length, iteratee);
- while (++index < n) {
- iteratee(index);
- }
- return result;
- }
-
- /**
- * Converts `value` to a property path array.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {*} value The value to convert.
- * @returns {Array} Returns the new property path array.
- * @example
- *
- * _.toPath('a.b.c');
- * // => ['a', 'b', 'c']
- *
- * _.toPath('a[0].b.c');
- * // => ['a', '0', 'b', 'c']
- */
- function toPath(value) {
- if (isArray(value)) {
- return arrayMap(value, toKey);
- }
- return isSymbol(value) ? [value] : copyArray(stringToPath(value));
- }
-
- /**
- * Generates a unique ID. If `prefix` is given, the ID is appended to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {string} [prefix=''] The value to prefix the ID with.
- * @returns {string} Returns the unique ID.
- * @example
- *
- * _.uniqueId('contact_');
- * // => 'contact_104'
- *
- * _.uniqueId();
- * // => '105'
- */
- function uniqueId(prefix) {
- var id = ++idCounter;
- return toString(prefix) + id;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Adds two numbers.
- *
- * @static
- * @memberOf _
- * @since 3.4.0
- * @category Math
- * @param {number} augend The first number in an addition.
- * @param {number} addend The second number in an addition.
- * @returns {number} Returns the total.
- * @example
- *
- * _.add(6, 4);
- * // => 10
- */
- var add = createMathOperation(function(augend, addend) {
- return augend + addend;
- });
-
- /**
- * Computes `number` rounded up to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round up.
- * @param {number} [precision=0] The precision to round up to.
- * @returns {number} Returns the rounded up number.
- * @example
- *
- * _.ceil(4.006);
- * // => 5
- *
- * _.ceil(6.004, 2);
- * // => 6.01
- *
- * _.ceil(6040, -2);
- * // => 6100
- */
- var ceil = createRound('ceil');
-
- /**
- * Divide two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {number} dividend The first number in a division.
- * @param {number} divisor The second number in a division.
- * @returns {number} Returns the quotient.
- * @example
- *
- * _.divide(6, 4);
- * // => 1.5
- */
- var divide = createMathOperation(function(dividend, divisor) {
- return dividend / divisor;
- });
-
- /**
- * Computes `number` rounded down to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round down.
- * @param {number} [precision=0] The precision to round down to.
- * @returns {number} Returns the rounded down number.
- * @example
- *
- * _.floor(4.006);
- * // => 4
- *
- * _.floor(0.046, 2);
- * // => 0.04
- *
- * _.floor(4060, -2);
- * // => 4000
- */
- var floor = createRound('floor');
-
- /**
- * Computes the maximum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * _.max([4, 2, 8, 6]);
- * // => 8
- *
- * _.max([]);
- * // => undefined
- */
- function max(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseGt)
- : undefined;
- }
-
- /**
- * This method is like `_.max` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.maxBy(objects, function(o) { return o.n; });
- * // => { 'n': 2 }
- *
- * // The `_.property` iteratee shorthand.
- * _.maxBy(objects, 'n');
- * // => { 'n': 2 }
- */
- function maxBy(array, iteratee) {
- return (array && array.length)
- ? baseExtremum(array, getIteratee(iteratee), baseGt)
- : undefined;
- }
-
- /**
- * Computes the mean of the values in `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the mean.
- * @example
- *
- * _.mean([4, 2, 8, 6]);
- * // => 5
- */
- function mean(array) {
- return baseMean(array, identity);
- }
-
- /**
- * This method is like `_.mean` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be averaged.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {number} Returns the mean.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.meanBy(objects, function(o) { return o.n; });
- * // => 5
- *
- * // The `_.property` iteratee shorthand.
- * _.meanBy(objects, 'n');
- * // => 5
- */
- function meanBy(array, iteratee) {
- return baseMean(array, getIteratee(iteratee));
- }
-
- /**
- * Computes the minimum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * _.min([4, 2, 8, 6]);
- * // => 2
- *
- * _.min([]);
- * // => undefined
- */
- function min(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseLt)
- : undefined;
- }
-
- /**
- * This method is like `_.min` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.minBy(objects, function(o) { return o.n; });
- * // => { 'n': 1 }
- *
- * // The `_.property` iteratee shorthand.
- * _.minBy(objects, 'n');
- * // => { 'n': 1 }
- */
- function minBy(array, iteratee) {
- return (array && array.length)
- ? baseExtremum(array, getIteratee(iteratee), baseLt)
- : undefined;
- }
-
- /**
- * Multiply two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {number} multiplier The first number in a multiplication.
- * @param {number} multiplicand The second number in a multiplication.
- * @returns {number} Returns the product.
- * @example
- *
- * _.multiply(6, 4);
- * // => 24
- */
- var multiply = createMathOperation(function(multiplier, multiplicand) {
- return multiplier * multiplicand;
- });
-
- /**
- * Computes `number` rounded to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round.
- * @param {number} [precision=0] The precision to round to.
- * @returns {number} Returns the rounded number.
- * @example
- *
- * _.round(4.006);
- * // => 4
- *
- * _.round(4.006, 2);
- * // => 4.01
- *
- * _.round(4060, -2);
- * // => 4100
- */
- var round = createRound('round');
-
- /**
- * Subtract two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {number} minuend The first number in a subtraction.
- * @param {number} subtrahend The second number in a subtraction.
- * @returns {number} Returns the difference.
- * @example
- *
- * _.subtract(6, 4);
- * // => 2
- */
- var subtract = createMathOperation(function(minuend, subtrahend) {
- return minuend - subtrahend;
- });
-
- /**
- * Computes the sum of the values in `array`.
- *
- * @static
- * @memberOf _
- * @since 3.4.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the sum.
- * @example
- *
- * _.sum([4, 2, 8, 6]);
- * // => 20
- */
- function sum(array) {
- return (array && array.length)
- ? baseSum(array, identity)
- : 0;
- }
-
- /**
- * This method is like `_.sum` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be summed.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Array|Function|Object|string} [iteratee=_.identity]
- * The iteratee invoked per element.
- * @returns {number} Returns the sum.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.sumBy(objects, function(o) { return o.n; });
- * // => 20
- *
- * // The `_.property` iteratee shorthand.
- * _.sumBy(objects, 'n');
- * // => 20
- */
- function sumBy(array, iteratee) {
- return (array && array.length)
- ? baseSum(array, getIteratee(iteratee))
- : 0;
- }
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return wrapped values in chain sequences.
- lodash.after = after;
- lodash.ary = ary;
- lodash.assign = assign;
- lodash.assignIn = assignIn;
- lodash.assignInWith = assignInWith;
- lodash.assignWith = assignWith;
- lodash.at = at;
- lodash.before = before;
- lodash.bind = bind;
- lodash.bindAll = bindAll;
- lodash.bindKey = bindKey;
- lodash.castArray = castArray;
- lodash.chain = chain;
- lodash.chunk = chunk;
- lodash.compact = compact;
- lodash.concat = concat;
- lodash.cond = cond;
- lodash.conforms = conforms;
- lodash.constant = constant;
- lodash.countBy = countBy;
- lodash.create = create;
- lodash.curry = curry;
- lodash.curryRight = curryRight;
- lodash.debounce = debounce;
- lodash.defaults = defaults;
- lodash.defaultsDeep = defaultsDeep;
- lodash.defer = defer;
- lodash.delay = delay;
- lodash.difference = difference;
- lodash.differenceBy = differenceBy;
- lodash.differenceWith = differenceWith;
- lodash.drop = drop;
- lodash.dropRight = dropRight;
- lodash.dropRightWhile = dropRightWhile;
- lodash.dropWhile = dropWhile;
- lodash.fill = fill;
- lodash.filter = filter;
- lodash.flatMap = flatMap;
- lodash.flatMapDeep = flatMapDeep;
- lodash.flatMapDepth = flatMapDepth;
- lodash.flatten = flatten;
- lodash.flattenDeep = flattenDeep;
- lodash.flattenDepth = flattenDepth;
- lodash.flip = flip;
- lodash.flow = flow;
- lodash.flowRight = flowRight;
- lodash.fromPairs = fromPairs;
- lodash.functions = functions;
- lodash.functionsIn = functionsIn;
- lodash.groupBy = groupBy;
- lodash.initial = initial;
- lodash.intersection = intersection;
- lodash.intersectionBy = intersectionBy;
- lodash.intersectionWith = intersectionWith;
- lodash.invert = invert;
- lodash.invertBy = invertBy;
- lodash.invokeMap = invokeMap;
- lodash.iteratee = iteratee;
- lodash.keyBy = keyBy;
- lodash.keys = keys;
- lodash.keysIn = keysIn;
- lodash.map = map;
- lodash.mapKeys = mapKeys;
- lodash.mapValues = mapValues;
- lodash.matches = matches;
- lodash.matchesProperty = matchesProperty;
- lodash.memoize = memoize;
- lodash.merge = merge;
- lodash.mergeWith = mergeWith;
- lodash.method = method;
- lodash.methodOf = methodOf;
- lodash.mixin = mixin;
- lodash.negate = negate;
- lodash.nthArg = nthArg;
- lodash.omit = omit;
- lodash.omitBy = omitBy;
- lodash.once = once;
- lodash.orderBy = orderBy;
- lodash.over = over;
- lodash.overArgs = overArgs;
- lodash.overEvery = overEvery;
- lodash.overSome = overSome;
- lodash.partial = partial;
- lodash.partialRight = partialRight;
- lodash.partition = partition;
- lodash.pick = pick;
- lodash.pickBy = pickBy;
- lodash.property = property;
- lodash.propertyOf = propertyOf;
- lodash.pull = pull;
- lodash.pullAll = pullAll;
- lodash.pullAllBy = pullAllBy;
- lodash.pullAllWith = pullAllWith;
- lodash.pullAt = pullAt;
- lodash.range = range;
- lodash.rangeRight = rangeRight;
- lodash.rearg = rearg;
- lodash.reject = reject;
- lodash.remove = remove;
- lodash.rest = rest;
- lodash.reverse = reverse;
- lodash.sampleSize = sampleSize;
- lodash.set = set;
- lodash.setWith = setWith;
- lodash.shuffle = shuffle;
- lodash.slice = slice;
- lodash.sortBy = sortBy;
- lodash.sortedUniq = sortedUniq;
- lodash.sortedUniqBy = sortedUniqBy;
- lodash.split = split;
- lodash.spread = spread;
- lodash.tail = tail;
- lodash.take = take;
- lodash.takeRight = takeRight;
- lodash.takeRightWhile = takeRightWhile;
- lodash.takeWhile = takeWhile;
- lodash.tap = tap;
- lodash.throttle = throttle;
- lodash.thru = thru;
- lodash.toArray = toArray;
- lodash.toPairs = toPairs;
- lodash.toPairsIn = toPairsIn;
- lodash.toPath = toPath;
- lodash.toPlainObject = toPlainObject;
- lodash.transform = transform;
- lodash.unary = unary;
- lodash.union = union;
- lodash.unionBy = unionBy;
- lodash.unionWith = unionWith;
- lodash.uniq = uniq;
- lodash.uniqBy = uniqBy;
- lodash.uniqWith = uniqWith;
- lodash.unset = unset;
- lodash.unzip = unzip;
- lodash.unzipWith = unzipWith;
- lodash.update = update;
- lodash.updateWith = updateWith;
- lodash.values = values;
- lodash.valuesIn = valuesIn;
- lodash.without = without;
- lodash.words = words;
- lodash.wrap = wrap;
- lodash.xor = xor;
- lodash.xorBy = xorBy;
- lodash.xorWith = xorWith;
- lodash.zip = zip;
- lodash.zipObject = zipObject;
- lodash.zipObjectDeep = zipObjectDeep;
- lodash.zipWith = zipWith;
-
- // Add aliases.
- lodash.entries = toPairs;
- lodash.entriesIn = toPairsIn;
- lodash.extend = assignIn;
- lodash.extendWith = assignInWith;
-
- // Add methods to `lodash.prototype`.
- mixin(lodash, lodash);
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return unwrapped values in chain sequences.
- lodash.add = add;
- lodash.attempt = attempt;
- lodash.camelCase = camelCase;
- lodash.capitalize = capitalize;
- lodash.ceil = ceil;
- lodash.clamp = clamp;
- lodash.clone = clone;
- lodash.cloneDeep = cloneDeep;
- lodash.cloneDeepWith = cloneDeepWith;
- lodash.cloneWith = cloneWith;
- lodash.deburr = deburr;
- lodash.divide = divide;
- lodash.endsWith = endsWith;
- lodash.eq = eq;
- lodash.escape = escape;
- lodash.escapeRegExp = escapeRegExp;
- lodash.every = every;
- lodash.find = find;
- lodash.findIndex = findIndex;
- lodash.findKey = findKey;
- lodash.findLast = findLast;
- lodash.findLastIndex = findLastIndex;
- lodash.findLastKey = findLastKey;
- lodash.floor = floor;
- lodash.forEach = forEach;
- lodash.forEachRight = forEachRight;
- lodash.forIn = forIn;
- lodash.forInRight = forInRight;
- lodash.forOwn = forOwn;
- lodash.forOwnRight = forOwnRight;
- lodash.get = get;
- lodash.gt = gt;
- lodash.gte = gte;
- lodash.has = has;
- lodash.hasIn = hasIn;
- lodash.head = head;
- lodash.identity = identity;
- lodash.includes = includes;
- lodash.indexOf = indexOf;
- lodash.inRange = inRange;
- lodash.invoke = invoke;
- lodash.isArguments = isArguments;
- lodash.isArray = isArray;
- lodash.isArrayBuffer = isArrayBuffer;
- lodash.isArrayLike = isArrayLike;
- lodash.isArrayLikeObject = isArrayLikeObject;
- lodash.isBoolean = isBoolean;
- lodash.isBuffer = isBuffer;
- lodash.isDate = isDate;
- lodash.isElement = isElement;
- lodash.isEmpty = isEmpty;
- lodash.isEqual = isEqual;
- lodash.isEqualWith = isEqualWith;
- lodash.isError = isError;
- lodash.isFinite = isFinite;
- lodash.isFunction = isFunction;
- lodash.isInteger = isInteger;
- lodash.isLength = isLength;
- lodash.isMap = isMap;
- lodash.isMatch = isMatch;
- lodash.isMatchWith = isMatchWith;
- lodash.isNaN = isNaN;
- lodash.isNative = isNative;
- lodash.isNil = isNil;
- lodash.isNull = isNull;
- lodash.isNumber = isNumber;
- lodash.isObject = isObject;
- lodash.isObjectLike = isObjectLike;
- lodash.isPlainObject = isPlainObject;
- lodash.isRegExp = isRegExp;
- lodash.isSafeInteger = isSafeInteger;
- lodash.isSet = isSet;
- lodash.isString = isString;
- lodash.isSymbol = isSymbol;
- lodash.isTypedArray = isTypedArray;
- lodash.isUndefined = isUndefined;
- lodash.isWeakMap = isWeakMap;
- lodash.isWeakSet = isWeakSet;
- lodash.join = join;
- lodash.kebabCase = kebabCase;
- lodash.last = last;
- lodash.lastIndexOf = lastIndexOf;
- lodash.lowerCase = lowerCase;
- lodash.lowerFirst = lowerFirst;
- lodash.lt = lt;
- lodash.lte = lte;
- lodash.max = max;
- lodash.maxBy = maxBy;
- lodash.mean = mean;
- lodash.meanBy = meanBy;
- lodash.min = min;
- lodash.minBy = minBy;
- lodash.stubArray = stubArray;
- lodash.stubFalse = stubFalse;
- lodash.stubObject = stubObject;
- lodash.stubString = stubString;
- lodash.stubTrue = stubTrue;
- lodash.multiply = multiply;
- lodash.nth = nth;
- lodash.noConflict = noConflict;
- lodash.noop = noop;
- lodash.now = now;
- lodash.pad = pad;
- lodash.padEnd = padEnd;
- lodash.padStart = padStart;
- lodash.parseInt = parseInt;
- lodash.random = random;
- lodash.reduce = reduce;
- lodash.reduceRight = reduceRight;
- lodash.repeat = repeat;
- lodash.replace = replace;
- lodash.result = result;
- lodash.round = round;
- lodash.runInContext = runInContext;
- lodash.sample = sample;
- lodash.size = size;
- lodash.snakeCase = snakeCase;
- lodash.some = some;
- lodash.sortedIndex = sortedIndex;
- lodash.sortedIndexBy = sortedIndexBy;
- lodash.sortedIndexOf = sortedIndexOf;
- lodash.sortedLastIndex = sortedLastIndex;
- lodash.sortedLastIndexBy = sortedLastIndexBy;
- lodash.sortedLastIndexOf = sortedLastIndexOf;
- lodash.startCase = startCase;
- lodash.startsWith = startsWith;
- lodash.subtract = subtract;
- lodash.sum = sum;
- lodash.sumBy = sumBy;
- lodash.template = template;
- lodash.times = times;
- lodash.toFinite = toFinite;
- lodash.toInteger = toInteger;
- lodash.toLength = toLength;
- lodash.toLower = toLower;
- lodash.toNumber = toNumber;
- lodash.toSafeInteger = toSafeInteger;
- lodash.toString = toString;
- lodash.toUpper = toUpper;
- lodash.trim = trim;
- lodash.trimEnd = trimEnd;
- lodash.trimStart = trimStart;
- lodash.truncate = truncate;
- lodash.unescape = unescape;
- lodash.uniqueId = uniqueId;
- lodash.upperCase = upperCase;
- lodash.upperFirst = upperFirst;
-
- // Add aliases.
- lodash.each = forEach;
- lodash.eachRight = forEachRight;
- lodash.first = head;
-
- mixin(lodash, (function() {
- var source = {};
- baseForOwn(lodash, function(func, methodName) {
- if (!hasOwnProperty.call(lodash.prototype, methodName)) {
- source[methodName] = func;
- }
- });
- return source;
- }()), { 'chain': false });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * The semantic version number.
- *
- * @static
- * @memberOf _
- * @type {string}
- */
- lodash.VERSION = VERSION;
-
- // Assign default placeholders.
- arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
- lodash[methodName].placeholder = lodash;
- });
-
- // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
- arrayEach(['drop', 'take'], function(methodName, index) {
- LazyWrapper.prototype[methodName] = function(n) {
- var filtered = this.__filtered__;
- if (filtered && !index) {
- return new LazyWrapper(this);
- }
- n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
-
- var result = this.clone();
- if (filtered) {
- result.__takeCount__ = nativeMin(n, result.__takeCount__);
- } else {
- result.__views__.push({
- 'size': nativeMin(n, MAX_ARRAY_LENGTH),
- 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
- });
- }
- return result;
- };
-
- LazyWrapper.prototype[methodName + 'Right'] = function(n) {
- return this.reverse()[methodName](n).reverse();
- };
- });
-
- // Add `LazyWrapper` methods that accept an `iteratee` value.
- arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
- var type = index + 1,
- isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
-
- LazyWrapper.prototype[methodName] = function(iteratee) {
- var result = this.clone();
- result.__iteratees__.push({
- 'iteratee': getIteratee(iteratee, 3),
- 'type': type
- });
- result.__filtered__ = result.__filtered__ || isFilter;
- return result;
- };
- });
-
- // Add `LazyWrapper` methods for `_.head` and `_.last`.
- arrayEach(['head', 'last'], function(methodName, index) {
- var takeName = 'take' + (index ? 'Right' : '');
-
- LazyWrapper.prototype[methodName] = function() {
- return this[takeName](1).value()[0];
- };
- });
-
- // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
- arrayEach(['initial', 'tail'], function(methodName, index) {
- var dropName = 'drop' + (index ? '' : 'Right');
-
- LazyWrapper.prototype[methodName] = function() {
- return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
- };
- });
-
- LazyWrapper.prototype.compact = function() {
- return this.filter(identity);
- };
-
- LazyWrapper.prototype.find = function(predicate) {
- return this.filter(predicate).head();
- };
-
- LazyWrapper.prototype.findLast = function(predicate) {
- return this.reverse().find(predicate);
- };
-
- LazyWrapper.prototype.invokeMap = rest(function(path, args) {
- if (typeof path == 'function') {
- return new LazyWrapper(this);
- }
- return this.map(function(value) {
- return baseInvoke(value, path, args);
- });
- });
-
- LazyWrapper.prototype.reject = function(predicate) {
- predicate = getIteratee(predicate, 3);
- return this.filter(function(value) {
- return !predicate(value);
- });
- };
-
- LazyWrapper.prototype.slice = function(start, end) {
- start = toInteger(start);
-
- var result = this;
- if (result.__filtered__ && (start > 0 || end < 0)) {
- return new LazyWrapper(result);
- }
- if (start < 0) {
- result = result.takeRight(-start);
- } else if (start) {
- result = result.drop(start);
- }
- if (end !== undefined) {
- end = toInteger(end);
- result = end < 0 ? result.dropRight(-end) : result.take(end - start);
- }
- return result;
- };
-
- LazyWrapper.prototype.takeRightWhile = function(predicate) {
- return this.reverse().takeWhile(predicate).reverse();
- };
-
- LazyWrapper.prototype.toArray = function() {
- return this.take(MAX_ARRAY_LENGTH);
- };
-
- // Add `LazyWrapper` methods to `lodash.prototype`.
- baseForOwn(LazyWrapper.prototype, function(func, methodName) {
- var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
- isTaker = /^(?:head|last)$/.test(methodName),
- lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
- retUnwrapped = isTaker || /^find/.test(methodName);
-
- if (!lodashFunc) {
- return;
- }
- lodash.prototype[methodName] = function() {
- var value = this.__wrapped__,
- args = isTaker ? [1] : arguments,
- isLazy = value instanceof LazyWrapper,
- iteratee = args[0],
- useLazy = isLazy || isArray(value);
-
- var interceptor = function(value) {
- var result = lodashFunc.apply(lodash, arrayPush([value], args));
- return (isTaker && chainAll) ? result[0] : result;
- };
-
- if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
- // Avoid lazy use if the iteratee has a "length" value other than `1`.
- isLazy = useLazy = false;
- }
- var chainAll = this.__chain__,
- isHybrid = !!this.__actions__.length,
- isUnwrapped = retUnwrapped && !chainAll,
- onlyLazy = isLazy && !isHybrid;
-
- if (!retUnwrapped && useLazy) {
- value = onlyLazy ? value : new LazyWrapper(this);
- var result = func.apply(value, args);
- result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
- return new LodashWrapper(result, chainAll);
- }
- if (isUnwrapped && onlyLazy) {
- return func.apply(this, args);
- }
- result = this.thru(interceptor);
- return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
- };
- });
-
- // Add `Array` methods to `lodash.prototype`.
- arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
- var func = arrayProto[methodName],
- chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
- retUnwrapped = /^(?:pop|shift)$/.test(methodName);
-
- lodash.prototype[methodName] = function() {
- var args = arguments;
- if (retUnwrapped && !this.__chain__) {
- var value = this.value();
- return func.apply(isArray(value) ? value : [], args);
- }
- return this[chainName](function(value) {
- return func.apply(isArray(value) ? value : [], args);
- });
- };
- });
-
- // Map minified method names to their real names.
- baseForOwn(LazyWrapper.prototype, function(func, methodName) {
- var lodashFunc = lodash[methodName];
- if (lodashFunc) {
- var key = (lodashFunc.name + ''),
- names = realNames[key] || (realNames[key] = []);
-
- names.push({ 'name': methodName, 'func': lodashFunc });
- }
- });
-
- realNames[createHybridWrapper(undefined, BIND_KEY_FLAG).name] = [{
- 'name': 'wrapper',
- 'func': undefined
- }];
-
- // Add methods to `LazyWrapper`.
- LazyWrapper.prototype.clone = lazyClone;
- LazyWrapper.prototype.reverse = lazyReverse;
- LazyWrapper.prototype.value = lazyValue;
-
- // Add chain sequence methods to the `lodash` wrapper.
- lodash.prototype.at = wrapperAt;
- lodash.prototype.chain = wrapperChain;
- lodash.prototype.commit = wrapperCommit;
- lodash.prototype.next = wrapperNext;
- lodash.prototype.plant = wrapperPlant;
- lodash.prototype.reverse = wrapperReverse;
- lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
-
- if (iteratorSymbol) {
- lodash.prototype[iteratorSymbol] = wrapperToIterator;
- }
- return lodash;
- }
-
- /*--------------------------------------------------------------------------*/
-
- // Export lodash.
- var _ = runInContext();
-
- // Expose Lodash on the free variable `window` or `self` when available so it's
- // globally accessible, even when bundled with Browserify, Webpack, etc. This
- // also prevents errors in cases where Lodash is loaded by a script tag in the
- // presence of an AMD loader. See http://requirejs.org/docs/errors.html#mismatch
- // for more details. Use `_.noConflict` to remove Lodash from the global object.
- (freeSelf || {})._ = _;
-
- // Some AMD build optimizers like r.js check for condition patterns like the following:
- if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
- // Define as an anonymous module so, through path mapping, it can be
- // referenced as the "underscore" module.
- define(function() {
- return _;
- });
- }
- // Check for `exports` after `define` in case a build optimizer adds an `exports` object.
- else if (freeModule) {
- // Export for Node.js.
- (freeModule.exports = _)._ = _;
- // Export for CommonJS support.
- freeExports._ = _;
- }
- else {
- // Export to the global object.
- root._ = _;
- }
-}.call(this));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/package.json b/ecomp-portal-FE/client/bower_components/lodash/package.json
deleted file mode 100644
index 5650070b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/package.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "name": "lodash",
- "version": "4.13.1",
- "license": "MIT",
- "private": true,
- "main": "lodash.js",
- "scripts": {
- "build": "npm run build:main && npm run build:fp",
- "build:fp": "node lib/fp/build-dist.js",
- "build:fp-modules": "node lib/fp/build-modules.js",
- "build:main": "node lib/main/build-dist.js",
- "build:main-modules": "node lib/main/build-modules.js",
- "doc": "node lib/main/build-doc github && npm run test:doc",
- "doc:fp": "node lib/fp/build-doc",
- "doc:site": "node lib/main/build-doc site",
- "prepublish": "npm run build",
- "pretest": "npm run build",
- "style": "npm run style:main && npm run style:fp && npm run style:perf && npm run style:test",
- "style:fp": "jscs fp/*.js lib/**/*.js",
- "style:main": "jscs lodash.js",
- "style:perf": "jscs perf/*.js perf/**/*.js",
- "style:test": "jscs test/*.js test/**/*.js",
- "test": "npm run test:main && npm run test:fp",
- "test:doc": "markdown-doctest",
- "test:fp": "node test/test-fp",
- "test:main": "node test/test",
- "validate": "npm run style && npm run test"
- },
- "devDependencies": {
- "async": "^1.5.2",
- "benchmark": "^2.1.0",
- "chalk": "^1.1.3",
- "codecov.io": "~0.1.6",
- "coveralls": "^2.11.9",
- "curl-amd": "~0.8.12",
- "docdown": "~0.5.1",
- "dojo": "^1.11.1",
- "ecstatic": "^1.4.1",
- "fs-extra": "~0.30.0",
- "glob": "^7.0.3",
- "istanbul": "0.4.3",
- "jquery": "^2.2.4",
- "jscs": "^3.0.1",
- "lodash": "4.11.2",
- "markdown-doctest": "^0.6.0",
- "platform": "^1.3.1",
- "qunit-extras": "^2.0.0",
- "qunitjs": "~1.23.1",
- "request": "^2.69.0",
- "requirejs": "^2.2.0",
- "sauce-tunnel": "^2.4.0",
- "uglify-js": "2.6.2",
- "webpack": "^1.13.1"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/lodash/perf/asset/perf-ui.js b/ecomp-portal-FE/client/bower_components/lodash/perf/asset/perf-ui.js
deleted file mode 100644
index e3ed64b2..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/perf/asset/perf-ui.js
+++ /dev/null
@@ -1,131 +0,0 @@
-;(function(window) {
- 'use strict';
-
- /** The base path of the lodash builds. */
- var basePath = '../';
-
- /** The lodash build to load. */
- var build = (build = /build=([^&]+)/.exec(location.search)) && decodeURIComponent(build[1]);
-
- /** The other library to load. */
- var other = (other = /other=([^&]+)/.exec(location.search)) && decodeURIComponent(other[1]);
-
- /** The `ui` object. */
- var ui = {};
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Registers an event listener on an element.
- *
- * @private
- * @param {Element} element The element.
- * @param {string} eventName The name of the event.
- * @param {Function} handler The event handler.
- * @returns {Element} The element.
- */
- function addListener(element, eventName, handler) {
- if (typeof element.addEventListener != 'undefined') {
- element.addEventListener(eventName, handler, false);
- } else if (typeof element.attachEvent != 'undefined') {
- element.attachEvent('on' + eventName, handler);
- }
- }
-
- /*--------------------------------------------------------------------------*/
-
- // Initialize controls.
- addListener(window, 'load', function() {
- function eventHandler(event) {
- var buildIndex = buildList.selectedIndex,
- otherIndex = otherList.selectedIndex,
- search = location.search.replace(/^\?|&?(?:build|other)=[^&]*&?/g, '');
-
- if (event.stopPropagation) {
- event.stopPropagation();
- } else {
- event.cancelBubble = true;
- }
- location.href =
- location.href.split('?')[0] + '?' +
- (search ? search + '&' : '') +
- 'build=' + (buildIndex < 0 ? build : buildList[buildIndex].value) + '&' +
- 'other=' + (otherIndex < 0 ? other : otherList[otherIndex].value);
- }
-
- var span1 = document.createElement('span');
- span1.style.cssText = 'float:right';
- span1.innerHTML =
- '<label for="perf-build">Build: </label>' +
- '<select id="perf-build">' +
- '<option value="lodash">lodash</option>' +
- '</select>';
-
- var span2 = document.createElement('span');
- span2.style.cssText = 'float:right';
- span2.innerHTML =
- '<label for="perf-other">Other Library: </label>' +
- '<select id="perf-other">' +
- '<option value="underscore-dev">Underscore (development)</option>' +
- '<option value="underscore">Underscore (production)</option>' +
- '<option value="lodash">lodash</option>' +
- '</select>';
-
- var buildList = span1.lastChild,
- otherList = span2.lastChild,
- toolbar = document.getElementById('perf-toolbar');
-
- toolbar.appendChild(span2);
- toolbar.appendChild(span1);
-
- buildList.selectedIndex = (function() {
- switch (build) {
- case 'lodash':
- case null: return 0;
- }
- return -1;
- }());
-
- otherList.selectedIndex = (function() {
- switch (other) {
- case 'underscore-dev': return 0;
- case 'lodash': return 2;
- case 'underscore':
- case null: return 1;
- }
- return -1;
- }());
-
- addListener(buildList, 'change', eventHandler);
- addListener(otherList, 'change', eventHandler);
- });
-
- // The lodash build file path.
- ui.buildPath = (function() {
- var result;
- switch (build) {
- case null: build = 'lodash';
- case 'lodash': result = 'dist/lodash.min.js'; break;
- default: return build;
- }
- return basePath + result;
- }());
-
- // The other library file path.
- ui.otherPath = (function() {
- var result;
- switch (other) {
- case 'lodash': result = 'dist/lodash.min.js'; break;
- case 'underscore-dev': result = 'vendor/underscore/underscore.js'; break;
- case null: other = 'underscore';
- case 'underscore': result = 'vendor/underscore/underscore-min.js'; break;
- default: return other;
- }
- return basePath + result;
- }());
-
- ui.urlParams = { 'build': build, 'other': other };
-
- window.ui = ui;
-
-}(this));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/perf/index.html b/ecomp-portal-FE/client/bower_components/lodash/perf/index.html
deleted file mode 100644
index 16d41bf3..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/perf/index.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>lodash Performance Suite</title>
- <style>
- html, body {
- margin: 0;
- padding: 0;
- height: 100%;
- }
- #FirebugUI {
- top: 2em;
- }
- #perf-toolbar {
- background-color: #EEE;
- color: #5E740B;
- font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
- font-size: small;
- padding: 0.5em 0 0.5em 2em;
- overflow: hidden;
- }
- </style>
- </head>
- <body>
- <div id="perf-toolbar"></div>
- <script src="../lodash.js"></script>
- <script src="../node_modules/platform/platform.js"></script>
- <script src="../node_modules/benchmark/benchmark.js"></script>
- <script src="../vendor/firebug-lite/src/firebug-lite-debug.js"></script>
- <script src="./asset/perf-ui.js"></script>
- <script>
- document.write('<script src="' + ui.buildPath + '"><\/script>');
- </script>
- <script>
- var lodash = _.noConflict();
- </script>
- <script>
- document.write('<script src="' + ui.otherPath + '"><\/script>');
- </script>
- <script src="perf.js"></script>
- <script>
- (function() {
- var measured,
- perfNow,
- begin = new Date;
-
- function init() {
- var fbUI = document.getElementById('FirebugUI'),
- fbDoc = fbUI && (fbDoc = fbUI.contentWindow || fbUI.contentDocument).document || fbDoc,
- fbCommandLine = fbDoc && fbDoc.getElementById('fbCommandLine');
-
- if (!fbCommandLine) {
- return setTimeout(init, 15);
- }
- fbUI.style.height = (
- Math.max(document.documentElement.clientHeight, document.body.clientHeight) -
- document.getElementById('perf-toolbar').clientHeight
- ) + 'px';
-
- fbDoc.body.style.height = fbDoc.documentElement.style.height = '100%';
- setTimeout(run, 15);
- }
-
- window.onload = init;
- }());
- </script>
- </body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/lodash/perf/perf.js b/ecomp-portal-FE/client/bower_components/lodash/perf/perf.js
deleted file mode 100644
index baee142b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/perf/perf.js
+++ /dev/null
@@ -1,1977 +0,0 @@
-;(function() {
-
- /** Used to access the Firebug Lite panel (set by `run`). */
- var fbPanel;
-
- /** Used as a safe reference for `undefined` in pre ES5 environments. */
- var undefined;
-
- /** Used as a reference to the global object. */
- var root = typeof global == 'object' && global || this;
-
- /** Method and object shortcuts. */
- var phantom = root.phantom,
- amd = root.define && define.amd,
- argv = root.process && process.argv,
- document = !phantom && root.document,
- noop = function() {},
- params = root.arguments,
- system = root.system;
-
- /** Add `console.log()` support for Rhino and RingoJS. */
- var console = root.console || (root.console = { 'log': root.print });
-
- /** The file path of the lodash file to test. */
- var filePath = (function() {
- var min = 0,
- result = [];
-
- if (phantom) {
- result = params = phantom.args;
- } else if (system) {
- min = 1;
- result = params = system.args;
- } else if (argv) {
- min = 2;
- result = params = argv;
- } else if (params) {
- result = params;
- }
- var last = result[result.length - 1];
- result = (result.length > min && !/perf(?:\.js)?$/.test(last)) ? last : '../lodash.js';
-
- if (!amd) {
- try {
- result = require('fs').realpathSync(result);
- } catch (e) {}
-
- try {
- result = require.resolve(result);
- } catch (e) {}
- }
- return result;
- }());
-
- /** Used to match path separators. */
- var rePathSeparator = /[\/\\]/;
-
- /** Used to detect primitive types. */
- var rePrimitive = /^(?:boolean|number|string|undefined)$/;
-
- /** Used to match RegExp special characters. */
- var reSpecialChars = /[.*+?^=!:${}()|[\]\/\\]/g;
-
- /** The `ui` object. */
- var ui = root.ui || (root.ui = {
- 'buildPath': basename(filePath, '.js'),
- 'otherPath': 'underscore'
- });
-
- /** The lodash build basename. */
- var buildName = root.buildName = basename(ui.buildPath, '.js');
-
- /** The other library basename. */
- var otherName = root.otherName = (function() {
- var result = basename(ui.otherPath, '.js');
- return result + (result == buildName ? ' (2)' : '');
- }());
-
- /** Used to score performance. */
- var score = { 'a': [], 'b': [] };
-
- /** Used to queue benchmark suites. */
- var suites = [];
-
- /** Use a single "load" function. */
- var load = (typeof require == 'function' && !amd)
- ? require
- : noop;
-
- /** Load lodash. */
- var lodash = root.lodash || (root.lodash = (
- lodash = load(filePath) || root._,
- lodash = lodash._ || lodash,
- (lodash.runInContext ? lodash.runInContext(root) : lodash),
- lodash.noConflict()
- ));
-
- /** Load Underscore. */
- var _ = root.underscore || (root.underscore = (
- _ = load('../vendor/underscore/underscore.js') || root._,
- _._ || _
- ));
-
- /** Load Benchmark.js. */
- var Benchmark = root.Benchmark || (root.Benchmark = (
- Benchmark = load('../node_modules/benchmark/benchmark.js') || root.Benchmark,
- Benchmark = Benchmark.Benchmark || Benchmark,
- Benchmark.runInContext(lodash.extend({}, root, { '_': lodash }))
- ));
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Gets the basename of the given `filePath`. If the file `extension` is passed,
- * it will be removed from the basename.
- *
- * @private
- * @param {string} path The file path to inspect.
- * @param {string} extension The extension to remove.
- * @returns {string} Returns the basename.
- */
- function basename(filePath, extension) {
- var result = (filePath || '').split(rePathSeparator).pop();
- return (arguments.length < 2)
- ? result
- : result.replace(RegExp(extension.replace(reSpecialChars, '\\$&') + '$'), '');
- }
-
- /**
- * Computes the geometric mean (log-average) of an array of values.
- * See http://en.wikipedia.org/wiki/Geometric_mean#Relationship_with_arithmetic_mean_of_logarithms.
- *
- * @private
- * @param {Array} array The array of values.
- * @returns {number} The geometric mean.
- */
- function getGeometricMean(array) {
- return Math.pow(Math.E, lodash.reduce(array, function(sum, x) {
- return sum + Math.log(x);
- }, 0) / array.length) || 0;
- }
-
- /**
- * Gets the Hz, i.e. operations per second, of `bench` adjusted for the
- * margin of error.
- *
- * @private
- * @param {Object} bench The benchmark object.
- * @returns {number} Returns the adjusted Hz.
- */
- function getHz(bench) {
- var result = 1 / (bench.stats.mean + bench.stats.moe);
- return isFinite(result) ? result : 0;
- }
-
- /**
- * Host objects can return type values that are different from their actual
- * data type. The objects we are concerned with usually return non-primitive
- * types of "object", "function", or "unknown".
- *
- * @private
- * @param {*} object The owner of the property.
- * @param {string} property The property to check.
- * @returns {boolean} Returns `true` if the property value is a non-primitive, else `false`.
- */
- function isHostType(object, property) {
- if (object == null) {
- return false;
- }
- var type = typeof object[property];
- return !rePrimitive.test(type) && (type != 'object' || !!object[property]);
- }
-
- /**
- * Logs text to the console.
- *
- * @private
- * @param {string} text The text to log.
- */
- function log(text) {
- console.log(text + '');
- if (fbPanel) {
- // Scroll the Firebug Lite panel down.
- fbPanel.scrollTop = fbPanel.scrollHeight;
- }
- }
-
- /**
- * Runs all benchmark suites.
- *
- * @private (@public in the browser)
- */
- function run() {
- fbPanel = (fbPanel = root.document && document.getElementById('FirebugUI')) &&
- (fbPanel = (fbPanel = fbPanel.contentWindow || fbPanel.contentDocument).document || fbPanel) &&
- fbPanel.getElementById('fbPanel1');
-
- log('\nSit back and relax, this may take a while.');
- suites[0].run({ 'async': true });
- }
-
- /*--------------------------------------------------------------------------*/
-
- lodash.extend(Benchmark.Suite.options, {
- 'onStart': function() {
- log('\n' + this.name + ':');
- },
- 'onCycle': function(event) {
- log(event.target);
- },
- 'onComplete': function() {
- for (var index = 0, length = this.length; index < length; index++) {
- var bench = this[index];
- if (bench.error) {
- var errored = true;
- }
- }
- if (errored) {
- log('There was a problem, skipping...');
- }
- else {
- var formatNumber = Benchmark.formatNumber,
- fastest = this.filter('fastest'),
- fastestHz = getHz(fastest[0]),
- slowest = this.filter('slowest'),
- slowestHz = getHz(slowest[0]),
- aHz = getHz(this[0]),
- bHz = getHz(this[1]);
-
- if (fastest.length > 1) {
- log('It\'s too close to call.');
- aHz = bHz = slowestHz;
- }
- else {
- var percent = ((fastestHz / slowestHz) - 1) * 100;
-
- log(
- fastest[0].name + ' is ' +
- formatNumber(percent < 1 ? percent.toFixed(2) : Math.round(percent)) +
- '% faster.'
- );
- }
- // Add score adjusted for margin of error.
- score.a.push(aHz);
- score.b.push(bHz);
- }
- // Remove current suite from queue.
- suites.shift();
-
- if (suites.length) {
- // Run next suite.
- suites[0].run({ 'async': true });
- }
- else {
- var aMeanHz = getGeometricMean(score.a),
- bMeanHz = getGeometricMean(score.b),
- fastestMeanHz = Math.max(aMeanHz, bMeanHz),
- slowestMeanHz = Math.min(aMeanHz, bMeanHz),
- xFaster = fastestMeanHz / slowestMeanHz,
- percentFaster = formatNumber(Math.round((xFaster - 1) * 100)),
- message = 'is ' + percentFaster + '% ' + (xFaster == 1 ? '' : '(' + formatNumber(xFaster.toFixed(2)) + 'x) ') + 'faster than';
-
- // Report results.
- if (aMeanHz >= bMeanHz) {
- log('\n' + buildName + ' ' + message + ' ' + otherName + '.');
- } else {
- log('\n' + otherName + ' ' + message + ' ' + buildName + '.');
- }
- }
- }
- });
-
- /*--------------------------------------------------------------------------*/
-
- lodash.extend(Benchmark.options, {
- 'async': true,
- 'setup': '\
- var _ = global.underscore,\
- lodash = global.lodash,\
- belt = this.name == buildName ? lodash : _;\
- \
- var date = new Date,\
- limit = 50,\
- regexp = /x/,\
- object = {},\
- objects = Array(limit),\
- numbers = Array(limit),\
- fourNumbers = [5, 25, 10, 30],\
- nestedNumbers = [1, [2], [3, [[4]]]],\
- nestedObjects = [{}, [{}], [{}, [[{}]]]],\
- twoNumbers = [12, 23];\
- \
- for (var index = 0; index < limit; index++) {\
- numbers[index] = index;\
- object["key" + index] = index;\
- objects[index] = { "num": index };\
- }\
- var strNumbers = numbers + "";\
- \
- if (typeof assign != "undefined") {\
- var _assign = _.assign || _.extend,\
- lodashAssign = lodash.assign;\
- }\
- if (typeof bind != "undefined") {\
- var thisArg = { "name": "fred" };\
- \
- var func = function(greeting, punctuation) {\
- return (greeting || "hi") + " " + this.name + (punctuation || ".");\
- };\
- \
- var _boundNormal = _.bind(func, thisArg),\
- _boundMultiple = _boundNormal,\
- _boundPartial = _.bind(func, thisArg, "hi");\
- \
- var lodashBoundNormal = lodash.bind(func, thisArg),\
- lodashBoundMultiple = lodashBoundNormal,\
- lodashBoundPartial = lodash.bind(func, thisArg, "hi");\
- \
- for (index = 0; index < 10; index++) {\
- _boundMultiple = _.bind(_boundMultiple, { "name": "fred" + index });\
- lodashBoundMultiple = lodash.bind(lodashBoundMultiple, { "name": "fred" + index });\
- }\
- }\
- if (typeof bindAll != "undefined") {\
- var bindAllCount = -1,\
- bindAllObjects = Array(this.count);\
- \
- var funcNames = belt.reject(belt.functions(belt).slice(0, 40), function(funcName) {\
- return /^_/.test(funcName);\
- });\
- \
- // Potentially expensive.\n\
- for (index = 0; index < this.count; index++) {\
- bindAllObjects[index] = belt.reduce(funcNames, function(object, funcName) {\
- object[funcName] = belt[funcName];\
- return object;\
- }, {});\
- }\
- }\
- if (typeof chaining != "undefined") {\
- var even = function(v) { return v % 2 == 0; },\
- square = function(v) { return v * v; };\
- \
- var largeArray = belt.range(10000),\
- _chaining = _(largeArray).chain(),\
- lodashChaining = lodash(largeArray).chain();\
- }\
- if (typeof compact != "undefined") {\
- var uncompacted = numbers.slice();\
- uncompacted[2] = false;\
- uncompacted[6] = null;\
- uncompacted[18] = "";\
- }\
- if (typeof flowRight != "undefined") {\
- var compAddOne = function(n) { return n + 1; },\
- compAddTwo = function(n) { return n + 2; },\
- compAddThree = function(n) { return n + 3; };\
- \
- var _composed = _.flowRight && _.flowRight(compAddThree, compAddTwo, compAddOne),\
- lodashComposed = lodash.flowRight && lodash.flowRight(compAddThree, compAddTwo, compAddOne);\
- }\
- if (typeof countBy != "undefined" || typeof omit != "undefined") {\
- var wordToNumber = {\
- "one": 1,\
- "two": 2,\
- "three": 3,\
- "four": 4,\
- "five": 5,\
- "six": 6,\
- "seven": 7,\
- "eight": 8,\
- "nine": 9,\
- "ten": 10,\
- "eleven": 11,\
- "twelve": 12,\
- "thirteen": 13,\
- "fourteen": 14,\
- "fifteen": 15,\
- "sixteen": 16,\
- "seventeen": 17,\
- "eighteen": 18,\
- "nineteen": 19,\
- "twenty": 20,\
- "twenty-one": 21,\
- "twenty-two": 22,\
- "twenty-three": 23,\
- "twenty-four": 24,\
- "twenty-five": 25,\
- "twenty-six": 26,\
- "twenty-seven": 27,\
- "twenty-eight": 28,\
- "twenty-nine": 29,\
- "thirty": 30,\
- "thirty-one": 31,\
- "thirty-two": 32,\
- "thirty-three": 33,\
- "thirty-four": 34,\
- "thirty-five": 35,\
- "thirty-six": 36,\
- "thirty-seven": 37,\
- "thirty-eight": 38,\
- "thirty-nine": 39,\
- "forty": 40\
- };\
- \
- var words = belt.keys(wordToNumber).slice(0, limit);\
- }\
- if (typeof flatten != "undefined") {\
- var _flattenDeep = _.flatten([[1]])[0] !== 1,\
- lodashFlattenDeep = lodash.flatten([[1]])[0] !== 1;\
- }\
- if (typeof isEqual != "undefined") {\
- var objectOfPrimitives = {\
- "boolean": true,\
- "number": 1,\
- "string": "a"\
- };\
- \
- var objectOfObjects = {\
- "boolean": new Boolean(true),\
- "number": new Number(1),\
- "string": new String("a")\
- };\
- \
- var objectOfObjects2 = {\
- "boolean": new Boolean(true),\
- "number": new Number(1),\
- "string": new String("A")\
- };\
- \
- var object2 = {},\
- object3 = {},\
- objects2 = Array(limit),\
- objects3 = Array(limit),\
- numbers2 = Array(limit),\
- numbers3 = Array(limit),\
- nestedNumbers2 = [1, [2], [3, [[4]]]],\
- nestedNumbers3 = [1, [2], [3, [[6]]]];\
- \
- for (index = 0; index < limit; index++) {\
- object2["key" + index] = index;\
- object3["key" + index] = index;\
- objects2[index] = { "num": index };\
- objects3[index] = { "num": index };\
- numbers2[index] = index;\
- numbers3[index] = index;\
- }\
- object3["key" + (limit - 1)] = -1;\
- objects3[limit - 1].num = -1;\
- numbers3[limit - 1] = -1;\
- }\
- if (typeof matches != "undefined") {\
- var source = { "num": 9 };\
- \
- var _matcher = (_.matches || _.noop)(source),\
- lodashMatcher = (lodash.matches || lodash.noop)(source);\
- }\
- if (typeof multiArrays != "undefined") {\
- var twentyValues = belt.shuffle(belt.range(20)),\
- fortyValues = belt.shuffle(belt.range(40)),\
- hundredSortedValues = belt.range(100),\
- hundredValues = belt.shuffle(hundredSortedValues),\
- hundredValues2 = belt.shuffle(hundredValues),\
- hundredTwentyValues = belt.shuffle(belt.range(120)),\
- hundredTwentyValues2 = belt.shuffle(hundredTwentyValues),\
- twoHundredValues = belt.shuffle(belt.range(200)),\
- twoHundredValues2 = belt.shuffle(twoHundredValues);\
- }\
- if (typeof partial != "undefined") {\
- var func = function(greeting, punctuation) {\
- return greeting + " fred" + (punctuation || ".");\
- };\
- \
- var _partial = _.partial(func, "hi"),\
- lodashPartial = lodash.partial(func, "hi");\
- }\
- if (typeof template != "undefined") {\
- var tplData = {\
- "header1": "Header1",\
- "header2": "Header2",\
- "header3": "Header3",\
- "header4": "Header4",\
- "header5": "Header5",\
- "header6": "Header6",\
- "list": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]\
- };\
- \
- var tpl =\
- "<div>" +\
- "<h1 class=\'header1\'><%= header1 %></h1>" +\
- "<h2 class=\'header2\'><%= header2 %></h2>" +\
- "<h3 class=\'header3\'><%= header3 %></h3>" +\
- "<h4 class=\'header4\'><%= header4 %></h4>" +\
- "<h5 class=\'header5\'><%= header5 %></h5>" +\
- "<h6 class=\'header6\'><%= header6 %></h6>" +\
- "<ul class=\'list\'>" +\
- "<% for (var index = 0, length = list.length; index < length; index++) { %>" +\
- "<li class=\'item\'><%= list[index] %></li>" +\
- "<% } %>" +\
- "</ul>" +\
- "</div>";\
- \
- var tplVerbose =\
- "<div>" +\
- "<h1 class=\'header1\'><%= data.header1 %></h1>" +\
- "<h2 class=\'header2\'><%= data.header2 %></h2>" +\
- "<h3 class=\'header3\'><%= data.header3 %></h3>" +\
- "<h4 class=\'header4\'><%= data.header4 %></h4>" +\
- "<h5 class=\'header5\'><%= data.header5 %></h5>" +\
- "<h6 class=\'header6\'><%= data.header6 %></h6>" +\
- "<ul class=\'list\'>" +\
- "<% for (var index = 0, length = data.list.length; index < length; index++) { %>" +\
- "<li class=\'item\'><%= data.list[index] %></li>" +\
- "<% } %>" +\
- "</ul>" +\
- "</div>";\
- \
- var settingsObject = { "variable": "data" };\
- \
- var _tpl = _.template(tpl),\
- _tplVerbose = _.template(tplVerbose, null, settingsObject);\
- \
- var lodashTpl = lodash.template(tpl),\
- lodashTplVerbose = lodash.template(tplVerbose, null, settingsObject);\
- }\
- if (typeof wrap != "undefined") {\
- var add = function(a, b) {\
- return a + b;\
- };\
- \
- var average = function(func, a, b) {\
- return (func(a, b) / 2).toFixed(2);\
- };\
- \
- var _wrapped = _.wrap(add, average);\
- lodashWrapped = lodash.wrap(add, average);\
- }\
- if (typeof zip != "undefined") {\
- var unzipped = [["a", "b", "c"], [1, 2, 3], [true, false, true]];\
- }'
- });
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_(...).map(...).filter(...).take(...).value()`')
- .add(buildName, {
- 'fn': 'lodashChaining.map(square).filter(even).take(100).value()',
- 'teardown': 'function chaining(){}'
- })
- .add(otherName, {
- 'fn': '_chaining.map(square).filter(even).take(100).value()',
- 'teardown': 'function chaining(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.assign`')
- .add(buildName, {
- 'fn': 'lodashAssign({}, { "a": 1, "b": 2, "c": 3 })',
- 'teardown': 'function assign(){}'
- })
- .add(otherName, {
- 'fn': '_assign({}, { "a": 1, "b": 2, "c": 3 })',
- 'teardown': 'function assign(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.assign` with multiple sources')
- .add(buildName, {
- 'fn': 'lodashAssign({}, { "a": 1, "b": 2 }, { "c": 3, "d": 4 })',
- 'teardown': 'function assign(){}'
- })
- .add(otherName, {
- 'fn': '_assign({}, { "a": 1, "b": 2 }, { "c": 3, "d": 4 })',
- 'teardown': 'function assign(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.bind` (slow path)')
- .add(buildName, {
- 'fn': 'lodash.bind(function() { return this.name; }, { "name": "fred" })',
- 'teardown': 'function bind(){}'
- })
- .add(otherName, {
- 'fn': '_.bind(function() { return this.name; }, { "name": "fred" })',
- 'teardown': 'function bind(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('bound call with arguments')
- .add(buildName, {
- 'fn': 'lodashBoundNormal("hi", "!")',
- 'teardown': 'function bind(){}'
- })
- .add(otherName, {
- 'fn': '_boundNormal("hi", "!")',
- 'teardown': 'function bind(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('bound and partially applied call with arguments')
- .add(buildName, {
- 'fn': 'lodashBoundPartial("!")',
- 'teardown': 'function bind(){}'
- })
- .add(otherName, {
- 'fn': '_boundPartial("!")',
- 'teardown': 'function bind(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('bound multiple times')
- .add(buildName, {
- 'fn': 'lodashBoundMultiple()',
- 'teardown': 'function bind(){}'
- })
- .add(otherName, {
- 'fn': '_boundMultiple()',
- 'teardown': 'function bind(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.bindAll`')
- .add(buildName, {
- 'fn': 'lodash.bindAll(bindAllObjects[++bindAllCount], funcNames)',
- 'teardown': 'function bindAll(){}'
- })
- .add(otherName, {
- 'fn': '_.bindAll(bindAllObjects[++bindAllCount], funcNames)',
- 'teardown': 'function bindAll(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.clone` with an array')
- .add(buildName, '\
- lodash.clone(numbers)'
- )
- .add(otherName, '\
- _.clone(numbers)'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.clone` with an object')
- .add(buildName, '\
- lodash.clone(object)'
- )
- .add(otherName, '\
- _.clone(object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.compact`')
- .add(buildName, {
- 'fn': 'lodash.compact(uncompacted)',
- 'teardown': 'function compact(){}'
- })
- .add(otherName, {
- 'fn': '_.compact(uncompacted)',
- 'teardown': 'function compact(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.countBy` with `callback` iterating an array')
- .add(buildName, '\
- lodash.countBy(numbers, function(num) { return num >> 1; })'
- )
- .add(otherName, '\
- _.countBy(numbers, function(num) { return num >> 1; })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.countBy` with `property` name iterating an array')
- .add(buildName, {
- 'fn': 'lodash.countBy(words, "length")',
- 'teardown': 'function countBy(){}'
- })
- .add(otherName, {
- 'fn': '_.countBy(words, "length")',
- 'teardown': 'function countBy(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.countBy` with `callback` iterating an object')
- .add(buildName, {
- 'fn': 'lodash.countBy(wordToNumber, function(num) { return num >> 1; })',
- 'teardown': 'function countBy(){}'
- })
- .add(otherName, {
- 'fn': '_.countBy(wordToNumber, function(num) { return num >> 1; })',
- 'teardown': 'function countBy(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.defaults`')
- .add(buildName, '\
- lodash.defaults({ "key2": 2, "key6": 6, "key18": 18 }, object)'
- )
- .add(otherName, '\
- _.defaults({ "key2": 2, "key6": 6, "key18": 18 }, object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.difference`')
- .add(buildName, '\
- lodash.difference(numbers, twoNumbers, fourNumbers)'
- )
- .add(otherName, '\
- _.difference(numbers, twoNumbers, fourNumbers)'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.difference` iterating 20 and 40 elements')
- .add(buildName, {
- 'fn': 'lodash.difference(twentyValues, fortyValues)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.difference(twentyValues, fortyValues)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.difference` iterating 200 elements')
- .add(buildName, {
- 'fn': 'lodash.difference(twoHundredValues, twoHundredValues2)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.difference(twoHundredValues, twoHundredValues2)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.each` iterating an array')
- .add(buildName, '\
- var result = [];\
- lodash.each(numbers, function(num) {\
- result.push(num * 2);\
- })'
- )
- .add(otherName, '\
- var result = [];\
- _.each(numbers, function(num) {\
- result.push(num * 2);\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.each` iterating an object')
- .add(buildName, '\
- var result = [];\
- lodash.each(object, function(num) {\
- result.push(num * 2);\
- })'
- )
- .add(otherName, '\
- var result = [];\
- _.each(object, function(num) {\
- result.push(num * 2);\
- })'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.every` iterating an array')
- .add(buildName, '\
- lodash.every(numbers, function(num) {\
- return num < limit;\
- })'
- )
- .add(otherName, '\
- _.every(numbers, function(num) {\
- return num < limit;\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.every` iterating an object')
- .add(buildName, '\
- lodash.every(object, function(num) {\
- return num < limit;\
- })'
- )
- .add(otherName, '\
- _.every(object, function(num) {\
- return num < limit;\
- })'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.filter` iterating an array')
- .add(buildName, '\
- lodash.filter(numbers, function(num) {\
- return num % 2;\
- })'
- )
- .add(otherName, '\
- _.filter(numbers, function(num) {\
- return num % 2;\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.filter` iterating an object')
- .add(buildName, '\
- lodash.filter(object, function(num) {\
- return num % 2\
- })'
- )
- .add(otherName, '\
- _.filter(object, function(num) {\
- return num % 2\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.filter` with `_.matches` shorthand')
- .add(buildName, {
- 'fn': 'lodash.filter(objects, source)',
- 'teardown': 'function matches(){}'
- })
- .add(otherName, {
- 'fn': '_.filter(objects, source)',
- 'teardown': 'function matches(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.filter` with `_.matches` predicate')
- .add(buildName, {
- 'fn': 'lodash.filter(objects, lodashMatcher)',
- 'teardown': 'function matches(){}'
- })
- .add(otherName, {
- 'fn': '_.filter(objects, _matcher)',
- 'teardown': 'function matches(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.find` iterating an array')
- .add(buildName, '\
- lodash.find(numbers, function(num) {\
- return num === (limit - 1);\
- })'
- )
- .add(otherName, '\
- _.find(numbers, function(num) {\
- return num === (limit - 1);\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.find` iterating an object')
- .add(buildName, '\
- lodash.find(object, function(value, key) {\
- return /\D9$/.test(key);\
- })'
- )
- .add(otherName, '\
- _.find(object, function(value, key) {\
- return /\D9$/.test(key);\
- })'
- )
- );
-
- // Avoid Underscore induced `OutOfMemoryError` in Rhino and Ringo.
- suites.push(
- Benchmark.Suite('`_.find` with `_.matches` shorthand')
- .add(buildName, {
- 'fn': 'lodash.find(objects, source)',
- 'teardown': 'function matches(){}'
- })
- .add(otherName, {
- 'fn': '_.find(objects, source)',
- 'teardown': 'function matches(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.flatten`')
- .add(buildName, {
- 'fn': 'lodash.flatten(nestedNumbers, !lodashFlattenDeep)',
- 'teardown': 'function flatten(){}'
- })
- .add(otherName, {
- 'fn': '_.flatten(nestedNumbers, !_flattenDeep)',
- 'teardown': 'function flatten(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.flattenDeep` nested arrays of numbers')
- .add(buildName, {
- 'fn': 'lodash.flattenDeep(nestedNumbers)',
- 'teardown': 'function flatten(){}'
- })
- .add(otherName, {
- 'fn': '_.flattenDeep(nestedNumbers)',
- 'teardown': 'function flatten(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.flattenDeep` nest arrays of objects')
- .add(buildName, {
- 'fn': 'lodash.flattenDeep(nestedObjects)',
- 'teardown': 'function flatten(){}'
- })
- .add(otherName, {
- 'fn': '_.flattenDeep(nestedObjects)',
- 'teardown': 'function flatten(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.flowRight`')
- .add(buildName, {
- 'fn': 'lodash.flowRight(compAddThree, compAddTwo, compAddOne)',
- 'teardown': 'function flowRight(){}'
- })
- .add(otherName, {
- 'fn': '_.flowRight(compAddThree, compAddTwo, compAddOne)',
- 'teardown': 'function flowRight(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('composed call')
- .add(buildName, {
- 'fn': 'lodashComposed(0)',
- 'teardown': 'function flowRight(){}'
- })
- .add(otherName, {
- 'fn': '_composed(0)',
- 'teardown': 'function flowRight(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.functions`')
- .add(buildName, '\
- lodash.functions(lodash)'
- )
- .add(otherName, '\
- _.functions(lodash)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.groupBy` with `callback` iterating an array')
- .add(buildName, '\
- lodash.groupBy(numbers, function(num) { return num >> 1; })'
- )
- .add(otherName, '\
- _.groupBy(numbers, function(num) { return num >> 1; })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.groupBy` with `property` name iterating an array')
- .add(buildName, {
- 'fn': 'lodash.groupBy(words, "length")',
- 'teardown': 'function countBy(){}'
- })
- .add(otherName, {
- 'fn': '_.groupBy(words, "length")',
- 'teardown': 'function countBy(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.groupBy` with `callback` iterating an object')
- .add(buildName, {
- 'fn': 'lodash.groupBy(wordToNumber, function(num) { return num >> 1; })',
- 'teardown': 'function countBy(){}'
- })
- .add(otherName, {
- 'fn': '_.groupBy(wordToNumber, function(num) { return num >> 1; })',
- 'teardown': 'function countBy(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.includes` searching an array')
- .add(buildName, '\
- lodash.includes(numbers, limit - 1)'
- )
- .add(otherName, '\
- _.includes(numbers, limit - 1)'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.includes` searching an object')
- .add(buildName, '\
- lodash.includes(object, limit - 1)'
- )
- .add(otherName, '\
- _.includes(object, limit - 1)'
- )
- );
-
- if (lodash.includes('ab', 'ab') && _.includes('ab', 'ab')) {
- suites.push(
- Benchmark.Suite('`_.includes` searching a string')
- .add(buildName, '\
- lodash.includes(strNumbers, "," + (limit - 1))'
- )
- .add(otherName, '\
- _.includes(strNumbers, "," + (limit - 1))'
- )
- );
- }
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.indexOf`')
- .add(buildName, {
- 'fn': 'lodash.indexOf(hundredSortedValues, 99)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.indexOf(hundredSortedValues, 99)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.intersection`')
- .add(buildName, '\
- lodash.intersection(numbers, twoNumbers, fourNumbers)'
- )
- .add(otherName, '\
- _.intersection(numbers, twoNumbers, fourNumbers)'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.intersection` iterating 120 elements')
- .add(buildName, {
- 'fn': 'lodash.intersection(hundredTwentyValues, hundredTwentyValues2)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.intersection(hundredTwentyValues, hundredTwentyValues2)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.invert`')
- .add(buildName, '\
- lodash.invert(object)'
- )
- .add(otherName, '\
- _.invert(object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.invokeMap` iterating an array')
- .add(buildName, '\
- lodash.invokeMap(numbers, "toFixed")'
- )
- .add(otherName, '\
- _.invokeMap(numbers, "toFixed")'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.invokeMap` with arguments iterating an array')
- .add(buildName, '\
- lodash.invokeMap(numbers, "toFixed", 1)'
- )
- .add(otherName, '\
- _.invokeMap(numbers, "toFixed", 1)'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.invokeMap` with a function for `path` iterating an array')
- .add(buildName, '\
- lodash.invokeMap(numbers, Number.prototype.toFixed, 1)'
- )
- .add(otherName, '\
- _.invokeMap(numbers, Number.prototype.toFixed, 1)'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.invokeMap` iterating an object')
- .add(buildName, '\
- lodash.invokeMap(object, "toFixed", 1)'
- )
- .add(otherName, '\
- _.invokeMap(object, "toFixed", 1)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.isEqual` comparing primitives')
- .add(buildName, {
- 'fn': '\
- lodash.isEqual(1, "1");\
- lodash.isEqual(1, 1)',
- 'teardown': 'function isEqual(){}'
- })
- .add(otherName, {
- 'fn': '\
- _.isEqual(1, "1");\
- _.isEqual(1, 1);',
- 'teardown': 'function isEqual(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.isEqual` comparing primitives and their object counterparts (edge case)')
- .add(buildName, {
- 'fn': '\
- lodash.isEqual(objectOfPrimitives, objectOfObjects);\
- lodash.isEqual(objectOfPrimitives, objectOfObjects2)',
- 'teardown': 'function isEqual(){}'
- })
- .add(otherName, {
- 'fn': '\
- _.isEqual(objectOfPrimitives, objectOfObjects);\
- _.isEqual(objectOfPrimitives, objectOfObjects2)',
- 'teardown': 'function isEqual(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.isEqual` comparing arrays')
- .add(buildName, {
- 'fn': '\
- lodash.isEqual(numbers, numbers2);\
- lodash.isEqual(numbers2, numbers3)',
- 'teardown': 'function isEqual(){}'
- })
- .add(otherName, {
- 'fn': '\
- _.isEqual(numbers, numbers2);\
- _.isEqual(numbers2, numbers3)',
- 'teardown': 'function isEqual(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.isEqual` comparing nested arrays')
- .add(buildName, {
- 'fn': '\
- lodash.isEqual(nestedNumbers, nestedNumbers2);\
- lodash.isEqual(nestedNumbers2, nestedNumbers3)',
- 'teardown': 'function isEqual(){}'
- })
- .add(otherName, {
- 'fn': '\
- _.isEqual(nestedNumbers, nestedNumbers2);\
- _.isEqual(nestedNumbers2, nestedNumbers3)',
- 'teardown': 'function isEqual(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.isEqual` comparing arrays of objects')
- .add(buildName, {
- 'fn': '\
- lodash.isEqual(objects, objects2);\
- lodash.isEqual(objects2, objects3)',
- 'teardown': 'function isEqual(){}'
- })
- .add(otherName, {
- 'fn': '\
- _.isEqual(objects, objects2);\
- _.isEqual(objects2, objects3)',
- 'teardown': 'function isEqual(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('`_.isEqual` comparing objects')
- .add(buildName, {
- 'fn': '\
- lodash.isEqual(object, object2);\
- lodash.isEqual(object2, object3)',
- 'teardown': 'function isEqual(){}'
- })
- .add(otherName, {
- 'fn': '\
- _.isEqual(object, object2);\
- _.isEqual(object2, object3)',
- 'teardown': 'function isEqual(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.isArguments`, `_.isDate`, `_.isFunction`, `_.isNumber`, `_.isObject`, `_.isRegExp`')
- .add(buildName, '\
- lodash.isArguments(arguments);\
- lodash.isArguments(object);\
- lodash.isDate(date);\
- lodash.isDate(object);\
- lodash.isFunction(lodash);\
- lodash.isFunction(object);\
- lodash.isNumber(1);\
- lodash.isNumber(object);\
- lodash.isObject(object);\
- lodash.isObject(1);\
- lodash.isRegExp(regexp);\
- lodash.isRegExp(object)'
- )
- .add(otherName, '\
- _.isArguments(arguments);\
- _.isArguments(object);\
- _.isDate(date);\
- _.isDate(object);\
- _.isFunction(_);\
- _.isFunction(object);\
- _.isNumber(1);\
- _.isNumber(object);\
- _.isObject(object);\
- _.isObject(1);\
- _.isRegExp(regexp);\
- _.isRegExp(object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.keys` (uses native `Object.keys` if available)')
- .add(buildName, '\
- lodash.keys(object)'
- )
- .add(otherName, '\
- _.keys(object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.lastIndexOf`')
- .add(buildName, {
- 'fn': 'lodash.lastIndexOf(hundredSortedValues, 0)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.lastIndexOf(hundredSortedValues, 0)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.map` iterating an array')
- .add(buildName, '\
- lodash.map(objects, function(value) {\
- return value.num;\
- })'
- )
- .add(otherName, '\
- _.map(objects, function(value) {\
- return value.num;\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.map` iterating an object')
- .add(buildName, '\
- lodash.map(object, function(value) {\
- return value;\
- })'
- )
- .add(otherName, '\
- _.map(object, function(value) {\
- return value;\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.map` with `_.property` shorthand')
- .add(buildName, '\
- lodash.map(objects, "num")'
- )
- .add(otherName, '\
- _.map(objects, "num")'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.max`')
- .add(buildName, '\
- lodash.max(numbers)'
- )
- .add(otherName, '\
- _.max(numbers)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.min`')
- .add(buildName, '\
- lodash.min(numbers)'
- )
- .add(otherName, '\
- _.min(numbers)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.omit` iterating 20 properties, omitting 2 keys')
- .add(buildName, '\
- lodash.omit(object, "key6", "key13")'
- )
- .add(otherName, '\
- _.omit(object, "key6", "key13")'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.omit` iterating 40 properties, omitting 20 keys')
- .add(buildName, {
- 'fn': 'lodash.omit(wordToNumber, words)',
- 'teardown': 'function omit(){}'
- })
- .add(otherName, {
- 'fn': '_.omit(wordToNumber, words)',
- 'teardown': 'function omit(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.partial` (slow path)')
- .add(buildName, {
- 'fn': 'lodash.partial(function(greeting) { return greeting + " " + this.name; }, "hi")',
- 'teardown': 'function partial(){}'
- })
- .add(otherName, {
- 'fn': '_.partial(function(greeting) { return greeting + " " + this.name; }, "hi")',
- 'teardown': 'function partial(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('partially applied call with arguments')
- .add(buildName, {
- 'fn': 'lodashPartial("!")',
- 'teardown': 'function partial(){}'
- })
- .add(otherName, {
- 'fn': '_partial("!")',
- 'teardown': 'function partial(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.partition` iterating an array')
- .add(buildName, '\
- lodash.partition(numbers, function(num) {\
- return num % 2;\
- })'
- )
- .add(otherName, '\
- _.partition(numbers, function(num) {\
- return num % 2;\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.partition` iterating an object')
- .add(buildName, '\
- lodash.partition(object, function(num) {\
- return num % 2;\
- })'
- )
- .add(otherName, '\
- _.partition(object, function(num) {\
- return num % 2;\
- })'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.pick`')
- .add(buildName, '\
- lodash.pick(object, "key6", "key13")'
- )
- .add(otherName, '\
- _.pick(object, "key6", "key13")'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.reduce` iterating an array')
- .add(buildName, '\
- lodash.reduce(numbers, function(result, value, index) {\
- result[index] = value;\
- return result;\
- }, {})'
- )
- .add(otherName, '\
- _.reduce(numbers, function(result, value, index) {\
- result[index] = value;\
- return result;\
- }, {})'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.reduce` iterating an object')
- .add(buildName, '\
- lodash.reduce(object, function(result, value, key) {\
- result.push(key, value);\
- return result;\
- }, [])'
- )
- .add(otherName, '\
- _.reduce(object, function(result, value, key) {\
- result.push(key, value);\
- return result;\
- }, [])'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.reduceRight` iterating an array')
- .add(buildName, '\
- lodash.reduceRight(numbers, function(result, value, index) {\
- result[index] = value;\
- return result;\
- }, {})'
- )
- .add(otherName, '\
- _.reduceRight(numbers, function(result, value, index) {\
- result[index] = value;\
- return result;\
- }, {})'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.reduceRight` iterating an object')
- .add(buildName, '\
- lodash.reduceRight(object, function(result, value, key) {\
- result.push(key, value);\
- return result;\
- }, [])'
- )
- .add(otherName, '\
- _.reduceRight(object, function(result, value, key) {\
- result.push(key, value);\
- return result;\
- }, [])'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.reject` iterating an array')
- .add(buildName, '\
- lodash.reject(numbers, function(num) {\
- return num % 2;\
- })'
- )
- .add(otherName, '\
- _.reject(numbers, function(num) {\
- return num % 2;\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.reject` iterating an object')
- .add(buildName, '\
- lodash.reject(object, function(num) {\
- return num % 2;\
- })'
- )
- .add(otherName, '\
- _.reject(object, function(num) {\
- return num % 2;\
- })'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.sampleSize`')
- .add(buildName, '\
- lodash.sampleSize(numbers, limit / 2)'
- )
- .add(otherName, '\
- _.sampleSize(numbers, limit / 2)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.shuffle`')
- .add(buildName, '\
- lodash.shuffle(numbers)'
- )
- .add(otherName, '\
- _.shuffle(numbers)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.size` with an object')
- .add(buildName, '\
- lodash.size(object)'
- )
- .add(otherName, '\
- _.size(object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.some` iterating an array')
- .add(buildName, '\
- lodash.some(numbers, function(num) {\
- return num == (limit - 1);\
- })'
- )
- .add(otherName, '\
- _.some(numbers, function(num) {\
- return num == (limit - 1);\
- })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.some` iterating an object')
- .add(buildName, '\
- lodash.some(object, function(num) {\
- return num == (limit - 1);\
- })'
- )
- .add(otherName, '\
- _.some(object, function(num) {\
- return num == (limit - 1);\
- })'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.sortBy` with `callback`')
- .add(buildName, '\
- lodash.sortBy(numbers, function(num) { return Math.sin(num); })'
- )
- .add(otherName, '\
- _.sortBy(numbers, function(num) { return Math.sin(num); })'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.sortBy` with `property` name')
- .add(buildName, {
- 'fn': 'lodash.sortBy(words, "length")',
- 'teardown': 'function countBy(){}'
- })
- .add(otherName, {
- 'fn': '_.sortBy(words, "length")',
- 'teardown': 'function countBy(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.sortedIndex`')
- .add(buildName, '\
- lodash.sortedIndex(numbers, limit)'
- )
- .add(otherName, '\
- _.sortedIndex(numbers, limit)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.sortedIndexBy`')
- .add(buildName, {
- 'fn': '\
- lodash.sortedIndexBy(words, "twenty-five", function(value) {\
- return wordToNumber[value];\
- })',
- 'teardown': 'function countBy(){}'
- })
- .add(otherName, {
- 'fn': '\
- _.sortedIndexBy(words, "twenty-five", function(value) {\
- return wordToNumber[value];\
- })',
- 'teardown': 'function countBy(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.sortedIndexOf`')
- .add(buildName, {
- 'fn': 'lodash.sortedIndexOf(hundredSortedValues, 99)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.sortedIndexOf(hundredSortedValues, 99)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.sortedLastIndexOf`')
- .add(buildName, {
- 'fn': 'lodash.sortedLastIndexOf(hundredSortedValues, 0)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.sortedLastIndexOf(hundredSortedValues, 0)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.sum`')
- .add(buildName, '\
- lodash.sum(numbers)'
- )
- .add(otherName, '\
- _.sum(numbers)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.template` (slow path)')
- .add(buildName, {
- 'fn': 'lodash.template(tpl)(tplData)',
- 'teardown': 'function template(){}'
- })
- .add(otherName, {
- 'fn': '_.template(tpl)(tplData)',
- 'teardown': 'function template(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('compiled template')
- .add(buildName, {
- 'fn': 'lodashTpl(tplData)',
- 'teardown': 'function template(){}'
- })
- .add(otherName, {
- 'fn': '_tpl(tplData)',
- 'teardown': 'function template(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('compiled template without a with-statement')
- .add(buildName, {
- 'fn': 'lodashTplVerbose(tplData)',
- 'teardown': 'function template(){}'
- })
- .add(otherName, {
- 'fn': '_tplVerbose(tplData)',
- 'teardown': 'function template(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.times`')
- .add(buildName, '\
- var result = [];\
- lodash.times(limit, function(n) { result.push(n); })'
- )
- .add(otherName, '\
- var result = [];\
- _.times(limit, function(n) { result.push(n); })'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.toArray` with an array (edge case)')
- .add(buildName, '\
- lodash.toArray(numbers)'
- )
- .add(otherName, '\
- _.toArray(numbers)'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.toArray` with an object')
- .add(buildName, '\
- lodash.toArray(object)'
- )
- .add(otherName, '\
- _.toArray(object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.toPairs`')
- .add(buildName, '\
- lodash.toPairs(object)'
- )
- .add(otherName, '\
- _.toPairs(object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.unescape` string without html entities')
- .add(buildName, '\
- lodash.unescape("`&`, `<`, `>`, `\\"`, and `\'`")'
- )
- .add(otherName, '\
- _.unescape("`&`, `<`, `>`, `\\"`, and `\'`")'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.unescape` string with html entities')
- .add(buildName, '\
- lodash.unescape("`&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;`")'
- )
- .add(otherName, '\
- _.unescape("`&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;`")'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.union`')
- .add(buildName, '\
- lodash.union(numbers, twoNumbers, fourNumbers)'
- )
- .add(otherName, '\
- _.union(numbers, twoNumbers, fourNumbers)'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.union` iterating an array of 200 elements')
- .add(buildName, {
- 'fn': 'lodash.union(hundredValues, hundredValues2)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.union(hundredValues, hundredValues2)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.uniq`')
- .add(buildName, '\
- lodash.uniq(numbers.concat(twoNumbers, fourNumbers))'
- )
- .add(otherName, '\
- _.uniq(numbers.concat(twoNumbers, fourNumbers))'
- )
- );
-
- suites.push(
- Benchmark.Suite('`_.uniq` iterating an array of 200 elements')
- .add(buildName, {
- 'fn': 'lodash.uniq(twoHundredValues)',
- 'teardown': 'function multiArrays(){}'
- })
- .add(otherName, {
- 'fn': '_.uniq(twoHundredValues)',
- 'teardown': 'function multiArrays(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.uniqBy`')
- .add(buildName, '\
- lodash.uniqBy(numbers.concat(twoNumbers, fourNumbers), function(num) {\
- return num % 2;\
- })'
- )
- .add(otherName, '\
- _.uniqBy(numbers.concat(twoNumbers, fourNumbers), function(num) {\
- return num % 2;\
- })'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.values`')
- .add(buildName, '\
- lodash.values(object)'
- )
- .add(otherName, '\
- _.values(object)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.without`')
- .add(buildName, '\
- lodash.without(numbers, 9, 12, 14, 15)'
- )
- .add(otherName, '\
- _.without(numbers, 9, 12, 14, 15)'
- )
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.wrap` result called')
- .add(buildName, {
- 'fn': 'lodashWrapped(2, 5)',
- 'teardown': 'function wrap(){}'
- })
- .add(otherName, {
- 'fn': '_wrapped(2, 5)',
- 'teardown': 'function wrap(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- suites.push(
- Benchmark.Suite('`_.zip`')
- .add(buildName, {
- 'fn': 'lodash.zip.apply(lodash, unzipped)',
- 'teardown': 'function zip(){}'
- })
- .add(otherName, {
- 'fn': '_.zip.apply(_, unzipped)',
- 'teardown': 'function zip(){}'
- })
- );
-
- /*--------------------------------------------------------------------------*/
-
- if (Benchmark.platform + '') {
- log(Benchmark.platform);
- }
- // Expose `run` to be called later when executing in a browser.
- if (document) {
- root.run = run;
- } else {
- run();
- }
-}.call(this));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/asset/test-ui.js b/ecomp-portal-FE/client/bower_components/lodash/test/asset/test-ui.js
deleted file mode 100644
index 24f087a4..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/asset/test-ui.js
+++ /dev/null
@@ -1,170 +0,0 @@
-;(function(window) {
- 'use strict';
-
- /** The base path of the lodash builds. */
- var basePath = '../';
-
- /** The lodash build to load. */
- var build = (build = /build=([^&]+)/.exec(location.search)) && decodeURIComponent(build[1]);
-
- /** The module loader to use. */
- var loader = (loader = /loader=([^&]+)/.exec(location.search)) && decodeURIComponent(loader[1]);
-
- /** The `ui` object. */
- var ui = {};
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Registers an event listener on an element.
- *
- * @private
- * @param {Element} element The element.
- * @param {string} eventName The name of the event.
- * @param {Function} handler The event handler.
- * @returns {Element} The element.
- */
- function addListener(element, eventName, handler) {
- if (typeof element.addEventListener != 'undefined') {
- element.addEventListener(eventName, handler, false);
- } else if (typeof element.attachEvent != 'undefined') {
- element.attachEvent('on' + eventName, handler);
- }
- }
-
- /*--------------------------------------------------------------------------*/
-
- // Initialize controls.
- addListener(window, 'load', function() {
- function eventHandler(event) {
- var buildIndex = buildList.selectedIndex,
- loaderIndex = loaderList.selectedIndex,
- search = location.search.replace(/^\?|&?(?:build|loader)=[^&]*&?/g, '');
-
- if (event.stopPropagation) {
- event.stopPropagation();
- } else {
- event.cancelBubble = true;
- }
- location.href =
- location.href.split('?')[0] + '?' +
- (search ? search + '&' : '') +
- 'build=' + (buildIndex < 0 ? build : buildList[buildIndex].value) + '&' +
- 'loader=' + (loaderIndex < 0 ? loader : loaderList[loaderIndex].value);
- }
-
- function init() {
- var toolbar = document.getElementById('qunit-testrunner-toolbar');
- if (!toolbar) {
- setTimeout(init, 15);
- return;
- }
- toolbar.appendChild(span1);
- toolbar.appendChild(span2);
-
- buildList.selectedIndex = (function() {
- switch (build) {
- case 'lodash': return 1;
- case 'lodash-core-dev': return 2;
- case 'lodash-core': return 3;
- case 'lodash-dev':
- case null: return 0;
- }
- return -1;
- }());
-
- loaderList.selectedIndex = (function() {
- switch (loader) {
- case 'curl': return 1;
- case 'dojo': return 2;
- case 'requirejs': return 3;
- case 'none':
- case null: return 0;
- }
- return -1;
- }());
-
- addListener(buildList, 'change', eventHandler);
- addListener(loaderList, 'change', eventHandler);
- }
-
- var span1 = document.createElement('span');
- span1.style.cssText = 'float:right';
- span1.innerHTML =
- '<label for="qunit-build">Build: </label>' +
- '<select id="qunit-build">' +
- '<option value="lodash-dev">lodash (development)</option>' +
- '<option value="lodash">lodash (production)</option>' +
- '<option value="lodash-core-dev">lodash-core (development)</option>' +
- '<option value="lodash-core">lodash-core (production)</option>' +
- '</select>';
-
- var span2 = document.createElement('span');
- span2.style.cssText = 'float:right';
- span2.innerHTML =
- '<label for="qunit-loader">Loader: </label>' +
- '<select id="qunit-loader">' +
- '<option value="none">None</option>' +
- '<option value="curl">Curl</option>' +
- '<option value="dojo">Dojo</option>' +
- '<option value="requirejs">RequireJS</option>' +
- '</select>';
-
- var buildList = span1.lastChild,
- loaderList = span2.lastChild;
-
- setTimeout(function() {
- ui.timing.loadEventEnd = +new Date;
- }, 1);
-
- init();
- });
-
- // The lodash build file path.
- ui.buildPath = (function() {
- var result;
- switch (build) {
- case 'lodash': result = 'dist/lodash.min.js'; break;
- case 'lodash-core-dev': result = 'dist/lodash.core.js'; break;
- case 'lodash-core': result = 'dist/lodash.core.min.js'; break;
- case null: build = 'lodash-dev';
- case 'lodash-dev': result = 'lodash.js'; break;
- default: return build;
- }
- return basePath + result;
- }());
-
- // The module loader file path.
- ui.loaderPath = (function() {
- var result;
- switch (loader) {
- case 'curl': result = 'node_modules/curl-amd/dist/curl-kitchen-sink/curl.js'; break;
- case 'dojo': result = 'node_modules/dojo/dojo.js'; break;
- case 'requirejs': result = 'node_modules/requirejs/require.js'; break;
- case null: loader = 'none'; return '';
- default: return loader;
- }
- return basePath + result;
- }());
-
- // Used to indicate testing a core build.
- ui.isCore = /\bcore(\.min)?\.js\b/.test(ui.buildPath);
-
- // Used to indicate testing a foreign file.
- ui.isForeign = RegExp('^(\\w+:)?//').test(build);
-
- // Used to indicate testing a modularized build.
- ui.isModularize = /\b(?:amd|commonjs|es|node|npm|(index|main)\.js)\b/.test([location.pathname, location.search]);
-
- // Used to indicate testing in Sauce Labs' automated test cloud.
- ui.isSauceLabs = location.port == '9001';
-
- // Used to indicate that lodash is in strict mode.
- ui.isStrict = /\bes\b/.test([location.pathname, location.search]);
-
- ui.urlParams = { 'build': build, 'loader': loader };
- ui.timing = { 'loadEventEnd': 0 };
-
- window.ui = ui;
-
-}(this));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/asset/worker.js b/ecomp-portal-FE/client/bower_components/lodash/test/asset/worker.js
deleted file mode 100644
index 8ccffa87..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/asset/worker.js
+++ /dev/null
@@ -1,15 +0,0 @@
-self.console || (self.console = { 'log': function() {} });
-
-addEventListener('message', function(e) {
- if (e.data) {
- try {
- importScripts('../' + e.data);
- } catch (e) {
- var lineNumber = e.lineNumber,
- message = (lineNumber == null ? '' : (lineNumber + ': ')) + e.message;
-
- self._ = { 'VERSION': message };
- }
- postMessage(_.VERSION);
- }
-}, false);
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/backbone.html b/ecomp-portal-FE/client/bower_components/lodash/test/backbone.html
deleted file mode 100644
index dd3df9fe..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/backbone.html
+++ /dev/null
@@ -1,170 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Backbone Test Suite</title>
- <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
- </head>
- <body>
- <script>
- // Avoid reporting tests to Sauce Labs when script errors occur.
- if (location.port == '9001') {
- window.onerror = function(message) {
- if (window.QUnit) {
- QUnit.config.done.length = 0;
- }
- global_test_results = { 'message': message };
- };
- }
- </script>
- <script src="../node_modules/qunitjs/qunit/qunit.js"></script>
- <script src="../node_modules/qunit-extras/qunit-extras.js"></script>
- <script src="../vendor/json-js/json2.js"></script>
- <script src="../node_modules/platform/platform.js"></script>
- <script src="./asset/test-ui.js"></script>
- <script src="../lodash.js"></script>
- <script>
- QUnit.config.asyncRetries = 10;
- QUnit.config.hidepassed = true;
-
- var mixinPrereqs = (function() {
- var aliasToReal = {
- 'indexBy': 'keyBy',
- 'invoke': 'invokeMap'
- };
-
- var keyMap = {
- 'rest': 'tail'
- };
-
- var lodash = _.noConflict();
-
- return function(_) {
- lodash.defaultsDeep(_, { 'templateSettings': lodash.templateSettings });
- lodash.mixin(_, lodash.pick(lodash, lodash.difference([
- 'countBy',
- 'debounce',
- 'difference',
- 'find',
- 'findIndex',
- 'findLastIndex',
- 'groupBy',
- 'includes',
- 'invert',
- 'invokeMap',
- 'keyBy',
- 'omit',
- 'partition',
- 'reduceRight',
- 'reject',
- 'sample',
- 'without'
- ], lodash.functions(_))));
-
- lodash.forOwn(keyMap, function(realName, otherName) {
- _[otherName] = lodash[realName];
- _.prototype[otherName] = lodash.prototype[realName];
- });
-
- lodash.forOwn(aliasToReal, function(realName, alias) {
- _[alias] = _[realName];
- _.prototype[alias] = _.prototype[realName];
- });
- };
- }());
-
- // Load prerequisite scripts.
- document.write(ui.urlParams.loader == 'none'
- ? '<script src="' + ui.buildPath + '"><\/script>'
- : '<script data-dojo-config="async:1" src="' + ui.loaderPath + '"><\/script>'
- );
- </script>
- <script>
- if (ui.urlParams.loader == 'none') {
- mixinPrereqs(_);
- document.write([
- '<script src="../node_modules/jquery/dist/jquery.js"><\/script>',
- '<script src="../vendor/backbone/backbone.js"><\/script>',
- '<script src="../vendor/backbone/test/setup/dom-setup.js"><\/script>',
- '<script src="../vendor/backbone/test/setup/environment.js"><\/script>',
- '<script src="../vendor/backbone/test/noconflict.js"><\/script>',
- '<script src="../vendor/backbone/test/events.js"><\/script>',
- '<script src="../vendor/backbone/test/model.js"><\/script>',
- '<script src="../vendor/backbone/test/collection.js"><\/script>',
- '<script src="../vendor/backbone/test/router.js"><\/script>',
- '<script src="../vendor/backbone/test/view.js"><\/script>',
- '<script src="../vendor/backbone/test/sync.js"><\/script>'
- ].join('\n'));
- }
- </script>
- <script>
- (function() {
- if (window.curl) {
- curl.config({ 'apiName': 'require' });
- }
- if (!window.require) {
- return;
- }
- var reBasename = /[\w.-]+$/,
- basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
- modulePath = ui.buildPath.replace(/\.js$/, ''),
- locationPath = modulePath.replace(reBasename, '').replace(/^\/|\/$/g, ''),
- moduleMain = modulePath.match(reBasename)[0],
- uid = +new Date;
-
- function getConfig() {
- var result = {
- 'baseUrl': './',
- 'urlArgs': 't=' + uid++,
- 'waitSeconds': 0,
- 'paths': {
- 'backbone': '../vendor/backbone/backbone',
- 'jquery': '../node_modules/jquery/dist/jquery'
- },
- 'packages': [{
- 'name': 'test',
- 'location': '../vendor/backbone/test',
- 'config': {
- // Work around no global being exported.
- 'exports': 'QUnit',
- 'loader': 'curl/loader/legacy'
- }
- }]
- };
-
- if (ui.isModularize) {
- result.packages.push({
- 'name': 'underscore',
- 'location': locationPath,
- 'main': moduleMain
- });
- } else {
- result.paths.underscore = modulePath;
- }
- return result;
- }
-
- QUnit.config.autostart = false;
-
- require(getConfig(), ['underscore'], function(lodash) {
- mixinPrereqs(lodash);
- require(getConfig(), ['backbone'], function() {
- require(getConfig(), [
- 'test/setup/dom-setup',
- 'test/setup/environment',
- 'test/noconflict',
- 'test/events',
- 'test/model',
- 'test/collection',
- 'test/router',
- 'test/view',
- 'test/sync'
- ], function() {
- QUnit.start();
- });
- });
- });
- }());
- </script>
- </body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/fp.html b/ecomp-portal-FE/client/bower_components/lodash/test/fp.html
deleted file mode 100644
index 71229666..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/fp.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>lodash-fp Test Suite</title>
- <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
- </head>
- <body>
- <script>
- // Avoid reporting tests to Sauce Labs when script errors occur.
- if (location.port == '9001') {
- window.onerror = function(message) {
- if (window.QUnit) {
- QUnit.config.done.length = 0;
- }
- global_test_results = { 'message': message };
- };
- }
- </script>
- <script src="../lodash.js"></script>
- <script src="../dist/lodash.fp.js"></script>
- <script src="../dist/mapping.fp.js"></script>
- <script src="../node_modules/qunitjs/qunit/qunit.js"></script>
- <script src="../node_modules/qunit-extras/qunit-extras.js"></script>
- <script src="../node_modules/platform/platform.js"></script>
- <script src="./test-fp.js"></script>
- <div id="qunit"></div>
- <script>
- // Set a more readable browser name.
- window.onload = function() {
- var timeoutId = setInterval(function() {
- var ua = document.getElementById('qunit-userAgent');
- if (ua) {
- ua.innerHTML = platform;
- clearInterval(timeoutId);
- }
- }, 16);
- };
- </script>
- </body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/index.html b/ecomp-portal-FE/client/bower_components/lodash/test/index.html
deleted file mode 100644
index aee39424..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/index.html
+++ /dev/null
@@ -1,351 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>lodash Test Suite</title>
- <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
- <style>
- #exports, #module {
- display: none;
- }
- </style>
- </head>
- <body>
- <script>
- // Avoid reporting tests to Sauce Labs when script errors occur.
- if (location.port == '9001') {
- window.onerror = function(message) {
- if (window.QUnit) {
- QUnit.config.done.length = 0;
- }
- global_test_results = { 'message': message };
- };
- }
- </script>
- <script src="../node_modules/lodash/lodash.js"></script>
- <script>var lodashStable = _.noConflict();</script>
- <script src="../node_modules/qunitjs/qunit/qunit.js"></script>
- <script src="../node_modules/qunit-extras/qunit-extras.js"></script>
- <script src="../node_modules/platform/platform.js"></script>
- <script src="./asset/test-ui.js"></script>
- <div id="qunit"></div>
- <div id="exports"></div>
- <div id="module"></div>
- <script>
- function setProperty(object, key, value) {
- try {
- Object.defineProperty(object, key, {
- 'configurable': true,
- 'enumerable': false,
- 'writable': true,
- 'value': value
- });
- } catch (e) {
- object[key] = value;
- }
- return object;
- }
-
- function addBizarroMethods() {
- var funcProto = Function.prototype,
- objectProto = Object.prototype;
-
- var hasOwnProperty = objectProto.hasOwnProperty,
- fnToString = funcProto.toString,
- nativeString = fnToString.call(objectProto.toString),
- noop = function() {},
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
- reToString = /toString/g;
-
- function constant(value) {
- return function() {
- return value;
- };
- }
-
- function createToString(funcName) {
- return constant(nativeString.replace(reToString, funcName));
- }
-
- // Allow bypassing native checks.
- setProperty(funcProto, 'toString', (function() {
- function wrapper() {
- setProperty(funcProto, 'toString', fnToString);
- var result = hasOwnProperty.call(this, 'toString') ? this.toString() : fnToString.call(this);
- setProperty(funcProto, 'toString', wrapper);
- return result;
- }
- return wrapper;
- }()));
-
- // Add prototype extensions.
- funcProto._method = noop;
-
- // Set bad shims.
- setProperty(Object, '_create', Object.create);
- setProperty(Object, 'create', (function() {
- function object() {}
- return function(prototype) {
- if (prototype === Object(prototype)) {
- object.prototype = prototype;
- var result = new object;
- object.prototype = undefined;
- }
- return result || {};
- };
- }()));
-
- setProperty(Object, '_getOwnPropertySymbols', Object.getOwnPropertySymbols);
- setProperty(Object, 'getOwnPropertySymbols', undefined);
-
- setProperty(objectProto, '_propertyIsEnumerable', propertyIsEnumerable);
- setProperty(objectProto, 'propertyIsEnumerable', function(key) {
- return !(key == 'valueOf' && this && this.valueOf === 1) && _propertyIsEnumerable.call(this, key);
- });
-
- setProperty(window, '_Map', window.Map);
- if (_Map) {
- setProperty(window, 'Map', (function(Map) {
- var count = 0;
- return function() {
- if (count++) {
- return new Map;
- }
- var result = {};
- setProperty(window, 'Map', Map);
- return result;
- };
- }(_Map)));
-
- setProperty(Map, 'toString', createToString('Map'));
- }
- setProperty(window, '_Promise', window.Promise);
- setProperty(window, 'Promise', noop);
-
- setProperty(window, '_Set', window.Set);
- setProperty(window, 'Set', noop);
-
- setProperty(window, '_Symbol', window.Symbol);
- setProperty(window, 'Symbol', undefined);
-
- setProperty(window, '_WeakMap', window.WeakMap);
- setProperty(window, 'WeakMap', noop);
-
- // Fake `WinRTError`.
- setProperty(window, 'WinRTError', Error);
-
- // Fake free variable `global`.
- setProperty(window, 'exports', window);
- setProperty(window, 'global', window);
- setProperty(window, 'module', {});
- }
-
- function removeBizarroMethods() {
- var funcProto = Function.prototype,
- objectProto = Object.prototype;
-
- setProperty(objectProto, 'propertyIsEnumerable', objectProto._propertyIsEnumerable);
-
- if (Object._create) {
- Object.create = Object._create;
- } else {
- delete Object.create;
- }
- if (Object._getOwnPropertySymbols) {
- Object.getOwnPropertySymbols = Object._getOwnPropertySymbols;
- } else {
- delete Object.getOwnPropertySymbols;
- }
- if (_Map) {
- Map = _Map;
- } else {
- setProperty(window, 'Map', undefined);
- }
- if (_Promise) {
- Promise = _Promise;
- } else {
- setProperty(window, 'Promise', undefined);
- }
- if (_Set) {
- Set = _Set;
- } else {
- setProperty(window, 'Set', undefined);
- }
- if (_Symbol) {
- Symbol = _Symbol;
- }
- if (_WeakMap) {
- WeakMap = _WeakMap;
- } else {
- setProperty(window, 'WeakMap', undefined);
- }
- setProperty(window, '_Map', undefined);
- setProperty(window, '_Promise', undefined);
- setProperty(window, '_Set', undefined);
- setProperty(window, '_Symbol', undefined);
- setProperty(window, '_WeakMap', undefined);
-
- setProperty(window, 'WinRTError', undefined);
-
- setProperty(window, 'exports', document.getElementById('exports'));
- setProperty(window, 'global', undefined);
- setProperty(window, 'module', document.getElementById('module'));
-
- delete funcProto._method;
- delete Object._create;
- delete Object._getOwnPropertySymbols;
- delete objectProto._propertyIsEnumerable;
- }
-
- // Load lodash to expose it to the bad extensions/shims.
- if (!ui.isModularize) {
- addBizarroMethods();
- document.write('<script src="' + ui.buildPath + '"><\/script>');
- }
- </script>
- <script>
- // Store lodash to test for bad extensions/shims.
- if (!ui.isModularize) {
- var lodashBizarro = window._;
- window._ = undefined;
- removeBizarroMethods();
- }
- // Load test scripts.
- document.write((ui.isForeign || ui.urlParams.loader == 'none')
- ? '<script src="' + ui.buildPath + '"><\/script><script src="test.js"><\/script>'
- : '<script data-dojo-config="async:1" src="' + ui.loaderPath + '"><\/script>'
- );
- </script>
- <script>
- var lodashModule,
- shimmedModule,
- underscoreModule;
-
- (function() {
- if (window.curl) {
- curl.config({ 'apiName': 'require' });
- }
- if (ui.isForeign || !window.require) {
- return;
- }
- var reBasename = /[\w.-]+$/,
- basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
- modulePath = ui.buildPath.replace(/\.js$/, ''),
- moduleMain = modulePath.match(reBasename)[0],
- locationPath = modulePath.replace(reBasename, '').replace(/^\/|\/$/g, ''),
- shimmedLocationPath = './abc/../' + locationPath,
- underscoreLocationPath = './xyz/../' + locationPath,
- uid = +new Date;
-
- function getConfig() {
- var result = {
- 'baseUrl': './',
- 'urlArgs': 't=' + uid++,
- 'waitSeconds': 0,
- 'paths': {},
- 'packages': [{
- 'name': 'test',
- 'location': basePath + 'test',
- 'main': 'test',
- 'config': {
- // Work around no global being exported.
- 'exports': 'QUnit',
- 'loader': 'curl/loader/legacy'
- }
- }],
- 'shim': {
- 'shimmed': {
- 'exports': '_'
- }
- }
- };
-
- if (ui.isModularize) {
- result.packages.push({
- 'name': 'lodash',
- 'location': locationPath,
- 'main': moduleMain
- }, {
- 'name': 'shimmed',
- 'location': shimmedLocationPath,
- 'main': moduleMain
- }, {
- 'name': 'underscore',
- 'location': underscoreLocationPath,
- 'main': moduleMain
- });
- } else {
- result.paths.lodash = modulePath;
- result.paths.shimmed = shimmedLocationPath + '/' + moduleMain;
- result.paths.underscore = underscoreLocationPath + '/' + moduleMain;
- }
- return result;
- }
-
- function loadTests() {
- require(getConfig(), ['test'], function() {
- QUnit.start();
- });
- }
-
- function loadModulesAndTests() {
- require(getConfig(), ['lodash', 'shimmed', 'underscore'], function(lodash, shimmed, underscore) {
- lodashModule = lodash;
- lodashModule.moduleName = 'lodash';
-
- if (shimmed) {
- shimmedModule = shimmed.result(shimmed, 'noConflict') || shimmed;
- shimmedModule.moduleName = 'shimmed';
- }
- if (underscore) {
- underscoreModule = underscore.result(underscore, 'noConflict') || underscore;
- underscoreModule.moduleName = 'underscore';
- }
- window._ = lodash;
-
- if (ui.isModularize) {
- require(getConfig(), [
- 'lodash/_baseEach',
- 'lodash/_isIndex',
- 'lodash/_isIterateeCall'
- ], function(baseEach, isIndex, isIterateeCall) {
- lodash._baseEach = baseEach;
- lodash._isIndex = isIndex;
- lodash._isIterateeCall = isIterateeCall;
- loadTests();
- });
- } else {
- loadTests();
- }
- });
- }
-
- QUnit.config.autostart = false;
-
- if (window.requirejs) {
- addBizarroMethods();
- require(getConfig(), ['lodash'], function(lodash) {
- lodashBizarro = lodash.result(lodash, 'noConflict') || lodash;
- delete requirejs.s.contexts._;
-
- removeBizarroMethods();
- loadModulesAndTests();
- });
- } else {
- loadModulesAndTests();
- }
- }());
-
- // Set a more readable browser name.
- window.onload = function() {
- var timeoutId = setInterval(function() {
- var ua = document.getElementById('qunit-userAgent');
- if (ua) {
- ua.innerHTML = platform;
- clearInterval(timeoutId);
- }
- }, 16);
- };
- </script>
- </body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/remove.js b/ecomp-portal-FE/client/bower_components/lodash/test/remove.js
deleted file mode 100644
index bd5aaf92..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/remove.js
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var _ = require('../lodash'),
- fs = require('fs'),
- path = require('path');
-
-var args = (args = process.argv)
- .slice((args[0] === process.execPath || args[0] === 'node') ? 2 : 0);
-
-var filePath = path.resolve(args[1]),
- reLine = /.*/gm;
-
-var pattern = (function() {
- var result = args[0],
- delimiter = result.charAt(0),
- lastIndex = result.lastIndexOf(delimiter);
-
- return RegExp(result.slice(1, lastIndex), result.slice(lastIndex + 1));
-}());
-
-/*----------------------------------------------------------------------------*/
-
-fs.writeFileSync(filePath, fs.readFileSync(filePath, 'utf8').replace(pattern, function(match) {
- var snippet = _.slice(arguments, -3, -2)[0];
- return match.replace(snippet, snippet.replace(reLine, ''));
-}));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/saucelabs.js b/ecomp-portal-FE/client/bower_components/lodash/test/saucelabs.js
deleted file mode 100644
index f8a7554f..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/saucelabs.js
+++ /dev/null
@@ -1,914 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-/** Environment shortcut. */
-var env = process.env;
-
-if (env.TRAVIS_SECURE_ENV_VARS == 'false') {
- console.log('Skipping Sauce Labs jobs; secure environment variables are unavailable');
- process.exit(0);
-}
-
-/** Load Node.js modules. */
-var EventEmitter = require('events').EventEmitter,
- http = require('http'),
- path = require('path'),
- url = require('url'),
- util = require('util');
-
-/** Load other modules. */
-var _ = require('../lodash.js'),
- chalk = require('chalk'),
- ecstatic = require('ecstatic'),
- request = require('request'),
- SauceTunnel = require('sauce-tunnel');
-
-/** Used for Sauce Labs credentials. */
-var accessKey = env.SAUCE_ACCESS_KEY,
- username = env.SAUCE_USERNAME;
-
-/** Used as the default maximum number of times to retry a job and tunnel. */
-var maxJobRetries = 3,
- maxTunnelRetries = 3;
-
-/** Used as the static file server middleware. */
-var mount = ecstatic({
- 'cache': 'no-cache',
- 'root': process.cwd()
-});
-
-/** Used as the list of ports supported by Sauce Connect. */
-var ports = [
- 80, 443, 888, 2000, 2001, 2020, 2109, 2222, 2310, 3000, 3001, 3030, 3210,
- 3333, 4000, 4001, 4040, 4321, 4502, 4503, 4567, 5000, 5001, 5050, 5555, 5432,
- 6000, 6001, 6060, 6666, 6543, 7000, 7070, 7774, 7777, 8000, 8001, 8003, 8031,
- 8080, 8081, 8765, 8777, 8888, 9000, 9001, 9080, 9090, 9876, 9877, 9999, 49221,
- 55001
-];
-
-/** Used by `logInline` to clear previously logged messages. */
-var prevLine = '';
-
-/** Method shortcut. */
-var push = Array.prototype.push;
-
-/** Used to detect error messages. */
-var reError = /(?:\be|E)rror\b/;
-
-/** Used to detect valid job ids. */
-var reJobId = /^[a-z0-9]{32}$/;
-
-/** Used to display the wait throbber. */
-var throbberDelay = 500,
- waitCount = -1;
-
-/**
- * Used as Sauce Labs config values.
- * See the [Sauce Labs documentation](https://docs.saucelabs.com/reference/test-configuration/)
- * for more details.
- */
-var advisor = getOption('advisor', false),
- build = getOption('build', (env.TRAVIS_COMMIT || '').slice(0, 10)),
- commandTimeout = getOption('commandTimeout', 90),
- compatMode = getOption('compatMode', null),
- customData = Function('return {' + getOption('customData', '').replace(/^\{|}$/g, '') + '}')(),
- deviceOrientation = getOption('deviceOrientation', 'portrait'),
- framework = getOption('framework', 'qunit'),
- idleTimeout = getOption('idleTimeout', 60),
- jobName = getOption('name', 'unit tests'),
- maxDuration = getOption('maxDuration', 180),
- port = ports[Math.min(_.sortedIndex(ports, getOption('port', 9001)), ports.length - 1)],
- publicAccess = getOption('public', true),
- queueTimeout = getOption('queueTimeout', 240),
- recordVideo = getOption('recordVideo', true),
- recordScreenshots = getOption('recordScreenshots', false),
- runner = getOption('runner', 'test/index.html').replace(/^\W+/, ''),
- runnerUrl = getOption('runnerUrl', 'http://localhost:' + port + '/' + runner),
- statusInterval = getOption('statusInterval', 5),
- tags = getOption('tags', []),
- throttled = getOption('throttled', 10),
- tunneled = getOption('tunneled', true),
- tunnelId = getOption('tunnelId', 'tunnel_' + (env.TRAVIS_JOB_ID || 0)),
- tunnelTimeout = getOption('tunnelTimeout', 120),
- videoUploadOnPass = getOption('videoUploadOnPass', false);
-
-/** Used to convert Sauce Labs browser identifiers to their formal names. */
-var browserNameMap = {
- 'googlechrome': 'Chrome',
- 'iehta': 'Internet Explorer',
- 'ipad': 'iPad',
- 'iphone': 'iPhone',
- 'microsoftedge': 'Edge'
-};
-
-/** List of platforms to load the runner on. */
-var platforms = [
- ['Linux', 'android', '5.1'],
- ['Windows 10', 'chrome', '50'],
- ['Windows 10', 'chrome', '49'],
- ['Windows 10', 'firefox', '46'],
- ['Windows 10', 'firefox', '45'],
- ['Windows 10', 'microsoftedge', '13'],
- ['Windows 10', 'internet explorer', '11'],
- ['Windows 8', 'internet explorer', '10'],
- ['Windows 7', 'internet explorer', '9'],
- // ['OS X 10.10', 'ipad', '9.1'],
- ['OS X 10.11', 'safari', '9'],
- ['OS X 10.10', 'safari', '8']
-];
-
-/** Used to tailor the `platforms` array. */
-var isAMD = _.includes(tags, 'amd'),
- isBackbone = _.includes(tags, 'backbone'),
- isModern = _.includes(tags, 'modern');
-
-// The platforms to test IE compatibility modes.
-if (compatMode) {
- platforms = [
- ['Windows 10', 'internet explorer', '11'],
- ['Windows 8', 'internet explorer', '10'],
- ['Windows 7', 'internet explorer', '9'],
- ['Windows 7', 'internet explorer', '8']
- ];
-}
-// The platforms for AMD tests.
-if (isAMD) {
- platforms = _.filter(platforms, function(platform) {
- var browser = browserName(platform[1]),
- version = +platform[2];
-
- switch (browser) {
- case 'Android': return version >= 4.4;
- case 'Opera': return version >= 10;
- }
- return true;
- });
-}
-// The platforms for Backbone tests.
-if (isBackbone) {
- platforms = _.filter(platforms, function(platform) {
- var browser = browserName(platform[1]),
- version = +platform[2];
-
- switch (browser) {
- case 'Firefox': return version >= 4;
- case 'Internet Explorer': return version >= 7;
- case 'iPad': return version >= 5;
- case 'Opera': return version >= 12;
- }
- return true;
- });
-}
-// The platforms for modern builds.
-if (isModern) {
- platforms = _.filter(platforms, function(platform) {
- var browser = browserName(platform[1]),
- version = +platform[2];
-
- switch (browser) {
- case 'Android': return version >= 4.1;
- case 'Firefox': return version >= 10;
- case 'Internet Explorer': return version >= 9;
- case 'iPad': return version >= 6;
- case 'Opera': return version >= 12;
- case 'Safari': return version >= 6;
- }
- return true;
- });
-}
-
-/** Used as the default `Job` options object. */
-var jobOptions = {
- 'build': build,
- 'command-timeout': commandTimeout,
- 'custom-data': customData,
- 'device-orientation': deviceOrientation,
- 'framework': framework,
- 'idle-timeout': idleTimeout,
- 'max-duration': maxDuration,
- 'name': jobName,
- 'public': publicAccess,
- 'platforms': platforms,
- 'record-screenshots': recordScreenshots,
- 'record-video': recordVideo,
- 'sauce-advisor': advisor,
- 'tags': tags,
- 'url': runnerUrl,
- 'video-upload-on-pass': videoUploadOnPass
-};
-
-if (publicAccess === true) {
- jobOptions['public'] = 'public';
-}
-if (tunneled) {
- jobOptions['tunnel-identifier'] = tunnelId;
-}
-
-/*----------------------------------------------------------------------------*/
-
-/**
- * Resolves the formal browser name for a given Sauce Labs browser identifier.
- *
- * @private
- * @param {string} identifier The browser identifier.
- * @returns {string} Returns the formal browser name.
- */
-function browserName(identifier) {
- return browserNameMap[identifier] || _.startCase(identifier);
-}
-
-/**
- * Gets the value for the given option name. If no value is available the
- * `defaultValue` is returned.
- *
- * @private
- * @param {string} name The name of the option.
- * @param {*} defaultValue The default option value.
- * @returns {*} Returns the option value.
- */
-function getOption(name, defaultValue) {
- var isArr = _.isArray(defaultValue);
- return _.reduce(process.argv, function(result, value) {
- if (isArr) {
- value = optionToArray(name, value);
- return _.isEmpty(value) ? result : value;
- }
- value = optionToValue(name, value);
-
- return value == null ? result : value;
- }, defaultValue);
-}
-
-/**
- * Checks if `value` is a job ID.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a job ID, else `false`.
- */
-function isJobId(value) {
- return reJobId.test(value);
-}
-
-/**
- * Writes an inline message to standard output.
- *
- * @private
- * @param {string} [text=''] The text to log.
- */
-function logInline(text) {
- var blankLine = _.repeat(' ', _.size(prevLine));
- prevLine = text = _.truncate(text, { 'length': 40 });
- process.stdout.write(text + blankLine.slice(text.length) + '\r');
-}
-
-/**
- * Writes the wait throbber to standard output.
- *
- * @private
- */
-function logThrobber() {
- logInline('Please wait' + _.repeat('.', (++waitCount % 3) + 1));
-}
-
-/**
- * Converts a comma separated option value into an array.
- *
- * @private
- * @param {string} name The name of the option to inspect.
- * @param {string} string The options string.
- * @returns {Array} Returns the new converted array.
- */
-function optionToArray(name, string) {
- return _.compact(_.invokeMap((optionToValue(name, string) || '').split(/, */), 'trim'));
-}
-
-/**
- * Extracts the option value from an option string.
- *
- * @private
- * @param {string} name The name of the option to inspect.
- * @param {string} string The options string.
- * @returns {string|undefined} Returns the option value, else `undefined`.
- */
-function optionToValue(name, string) {
- var result = string.match(RegExp('^' + name + '(?:=([\\s\\S]+))?$'));
- if (result) {
- result = _.result(result, 1);
- result = result ? _.trim(result) : true;
- }
- if (result === 'false') {
- return false;
- }
- return result || undefined;
-}
-
-/*----------------------------------------------------------------------------*/
-
-/**
- * The `Job#remove` and `Tunnel#stop` callback used by `Jobs#restart`
- * and `Tunnel#restart` respectively.
- *
- * @private
- */
-function onGenericRestart() {
- this.restarting = false;
- this.emit('restart');
- this.start();
-}
-
-/**
- * The `request.put` and `SauceTunnel#stop` callback used by `Jobs#stop`
- * and `Tunnel#stop` respectively.
- *
- * @private
- * @param {Object} [error] The error object.
- */
-function onGenericStop(error) {
- this.running = this.stopping = false;
- this.emit('stop', error);
-}
-
-/**
- * The `request.del` callback used by `Jobs#remove`.
- *
- * @private
- */
-function onJobRemove(error, res, body) {
- this.id = this.taskId = this.url = null;
- this.removing = false;
- this.emit('remove');
-}
-
-/**
- * The `Job#remove` callback used by `Jobs#reset`.
- *
- * @private
- */
-function onJobReset() {
- this.attempts = 0;
- this.failed = this.resetting = false;
- this._pollerId = this.id = this.result = this.taskId = this.url = null;
- this.emit('reset');
-}
-
-/**
- * The `request.post` callback used by `Jobs#start`.
- *
- * @private
- * @param {Object} [error] The error object.
- * @param {Object} res The response data object.
- * @param {Object} body The response body JSON object.
- */
-function onJobStart(error, res, body) {
- this.starting = false;
-
- if (this.stopping) {
- return;
- }
- var statusCode = _.result(res, 'statusCode'),
- taskId = _.first(_.result(body, 'js tests'));
-
- if (error || !taskId || statusCode != 200) {
- if (this.attempts < this.retries) {
- this.restart();
- return;
- }
- var na = 'unavailable',
- bodyStr = _.isObject(body) ? '\n' + JSON.stringify(body) : na,
- statusStr = _.isFinite(statusCode) ? statusCode : na;
-
- logInline();
- console.error('Failed to start job; status: %s, body: %s', statusStr, bodyStr);
- if (error) {
- console.error(error);
- }
- this.failed = true;
- this.emit('complete');
- return;
- }
- this.running = true;
- this.taskId = taskId;
- this.timestamp = _.now();
- this.emit('start');
- this.status();
-}
-
-/**
- * The `request.post` callback used by `Job#status`.
- *
- * @private
- * @param {Object} [error] The error object.
- * @param {Object} res The response data object.
- * @param {Object} body The response body JSON object.
- */
-function onJobStatus(error, res, body) {
- this.checking = false;
-
- if (!this.running || this.stopping) {
- return;
- }
- var completed = _.result(body, 'completed', false),
- data = _.first(_.result(body, 'js tests')),
- elapsed = (_.now() - this.timestamp) / 1000,
- jobId = _.result(data, 'job_id', null),
- jobResult = _.result(data, 'result', null),
- jobStatus = _.result(data, 'status', ''),
- jobUrl = _.result(data, 'url', null),
- expired = (elapsed >= queueTimeout && !_.includes(jobStatus, 'in progress')),
- options = this.options,
- platform = options.platforms[0];
-
- if (_.isObject(jobResult)) {
- var message = _.result(jobResult, 'message');
- } else {
- if (typeof jobResult == 'string') {
- message = jobResult;
- }
- jobResult = null;
- }
- if (isJobId(jobId)) {
- this.id = jobId;
- this.result = jobResult;
- this.url = jobUrl;
- } else {
- completed = false;
- }
- this.emit('status', jobStatus);
-
- if (!completed && !expired) {
- this._pollerId = _.delay(_.bind(this.status, this), this.statusInterval * 1000);
- return;
- }
- var description = browserName(platform[1]) + ' ' + platform[2] + ' on ' + _.startCase(platform[0]),
- errored = !jobResult || !jobResult.passed || reError.test(message) || reError.test(jobStatus),
- failures = _.result(jobResult, 'failed'),
- label = options.name + ':',
- tunnel = this.tunnel;
-
- if (errored || failures) {
- if (errored && this.attempts < this.retries) {
- this.restart();
- return;
- }
- var details = 'See ' + jobUrl + ' for details.';
- this.failed = true;
-
- logInline();
- if (failures) {
- console.error(label + ' %s ' + chalk.red('failed') + ' %d test' + (failures > 1 ? 's' : '') + '. %s', description, failures, details);
- }
- else if (tunnel.attempts < tunnel.retries) {
- tunnel.restart();
- return;
- }
- else {
- if (typeof message == 'undefined') {
- message = 'Results are unavailable. ' + details;
- }
- console.error(label, description, chalk.red('failed') + ';', message);
- }
- }
- else {
- logInline();
- console.log(label, description, chalk.green('passed'));
- }
- this.running = false;
- this.emit('complete');
-}
-
-/**
- * The `SauceTunnel#start` callback used by `Tunnel#start`.
- *
- * @private
- * @param {boolean} success The connection success indicator.
- */
-function onTunnelStart(success) {
- this.starting = false;
-
- if (this._timeoutId) {
- clearTimeout(this._timeoutId);
- this._timeoutId = null;
- }
- if (!success) {
- if (this.attempts < this.retries) {
- this.restart();
- return;
- }
- logInline();
- console.error('Failed to open Sauce Connect tunnel');
- process.exit(2);
- }
- logInline();
- console.log('Sauce Connect tunnel opened');
-
- var jobs = this.jobs;
- push.apply(jobs.queue, jobs.all);
-
- this.running = true;
- this.emit('start');
-
- console.log('Starting jobs...');
- this.dequeue();
-}
-
-/*----------------------------------------------------------------------------*/
-
-/**
- * The Job constructor.
- *
- * @private
- * @param {Object} [properties] The properties to initialize a job with.
- */
-function Job(properties) {
- EventEmitter.call(this);
-
- this.options = {};
- _.merge(this, properties);
- _.defaults(this.options, _.cloneDeep(jobOptions));
-
- this.attempts = 0;
- this.checking = this.failed = this.removing = this.resetting = this.restarting = this.running = this.starting = this.stopping = false;
- this._pollerId = this.id = this.result = this.taskId = this.url = null;
-}
-
-util.inherits(Job, EventEmitter);
-
-/**
- * Removes the job.
- *
- * @memberOf Job
- * @param {Function} callback The function called once the job is removed.
- * @param {Object} Returns the job instance.
- */
-Job.prototype.remove = function(callback) {
- this.once('remove', _.iteratee(callback));
- if (this.removing) {
- return this;
- }
- this.removing = true;
- return this.stop(function() {
- var onRemove = _.bind(onJobRemove, this);
- if (!this.id) {
- _.defer(onRemove);
- return;
- }
- request.del(_.template('https://saucelabs.com/rest/v1/${user}/jobs/${id}')(this), {
- 'auth': { 'user': this.user, 'pass': this.pass }
- }, onRemove);
- });
-};
-
-/**
- * Resets the job.
- *
- * @memberOf Job
- * @param {Function} callback The function called once the job is reset.
- * @param {Object} Returns the job instance.
- */
-Job.prototype.reset = function(callback) {
- this.once('reset', _.iteratee(callback));
- if (this.resetting) {
- return this;
- }
- this.resetting = true;
- return this.remove(onJobReset);
-};
-
-/**
- * Restarts the job.
- *
- * @memberOf Job
- * @param {Function} callback The function called once the job is restarted.
- * @param {Object} Returns the job instance.
- */
-Job.prototype.restart = function(callback) {
- this.once('restart', _.iteratee(callback));
- if (this.restarting) {
- return this;
- }
- this.restarting = true;
-
- var options = this.options,
- platform = options.platforms[0],
- description = browserName(platform[1]) + ' ' + platform[2] + ' on ' + _.startCase(platform[0]),
- label = options.name + ':';
-
- logInline();
- console.log('%s %s restart %d of %d', label, description, ++this.attempts, this.retries);
-
- return this.remove(onGenericRestart);
-};
-
-/**
- * Starts the job.
- *
- * @memberOf Job
- * @param {Function} callback The function called once the job is started.
- * @param {Object} Returns the job instance.
- */
-Job.prototype.start = function(callback) {
- this.once('start', _.iteratee(callback));
- if (this.starting || this.running) {
- return this;
- }
- this.starting = true;
- request.post(_.template('https://saucelabs.com/rest/v1/${user}/js-tests')(this), {
- 'auth': { 'user': this.user, 'pass': this.pass },
- 'json': this.options
- }, _.bind(onJobStart, this));
-
- return this;
-};
-
-/**
- * Checks the status of a job.
- *
- * @memberOf Job
- * @param {Function} callback The function called once the status is resolved.
- * @param {Object} Returns the job instance.
- */
-Job.prototype.status = function(callback) {
- this.once('status', _.iteratee(callback));
- if (this.checking || this.removing || this.resetting || this.restarting || this.starting || this.stopping) {
- return this;
- }
- this._pollerId = null;
- this.checking = true;
- request.post(_.template('https://saucelabs.com/rest/v1/${user}/js-tests/status')(this), {
- 'auth': { 'user': this.user, 'pass': this.pass },
- 'json': { 'js tests': [this.taskId] }
- }, _.bind(onJobStatus, this));
-
- return this;
-};
-
-/**
- * Stops the job.
- *
- * @memberOf Job
- * @param {Function} callback The function called once the job is stopped.
- * @param {Object} Returns the job instance.
- */
-Job.prototype.stop = function(callback) {
- this.once('stop', _.iteratee(callback));
- if (this.stopping) {
- return this;
- }
- this.stopping = true;
- if (this._pollerId) {
- clearTimeout(this._pollerId);
- this._pollerId = null;
- this.checking = false;
- }
- var onStop = _.bind(onGenericStop, this);
- if (!this.running || !this.id) {
- _.defer(onStop);
- return this;
- }
- request.put(_.template('https://saucelabs.com/rest/v1/${user}/jobs/${id}/stop')(this), {
- 'auth': { 'user': this.user, 'pass': this.pass }
- }, onStop);
-
- return this;
-};
-
-/*----------------------------------------------------------------------------*/
-
-/**
- * The Tunnel constructor.
- *
- * @private
- * @param {Object} [properties] The properties to initialize the tunnel with.
- */
-function Tunnel(properties) {
- EventEmitter.call(this);
-
- _.merge(this, properties);
-
- var active = [],
- queue = [];
-
- var all = _.map(this.platforms, _.bind(function(platform) {
- return new Job(_.merge({
- 'user': this.user,
- 'pass': this.pass,
- 'tunnel': this,
- 'options': { 'platforms': [platform] }
- }, this.job));
- }, this));
-
- var completed = 0,
- restarted = [],
- success = true,
- total = all.length,
- tunnel = this;
-
- _.invokeMap(all, 'on', 'complete', function() {
- _.pull(active, this);
- if (success) {
- success = !this.failed;
- }
- if (++completed == total) {
- tunnel.stop(_.partial(tunnel.emit, 'complete', success));
- return;
- }
- tunnel.dequeue();
- });
-
- _.invokeMap(all, 'on', 'restart', function() {
- if (!_.includes(restarted, this)) {
- restarted.push(this);
- }
- // Restart tunnel if all active jobs have restarted.
- var threshold = Math.min(all.length, _.isFinite(throttled) ? throttled : 3);
- if (tunnel.attempts < tunnel.retries &&
- active.length >= threshold && _.isEmpty(_.difference(active, restarted))) {
- tunnel.restart();
- }
- });
-
- this.on('restart', function() {
- completed = 0;
- success = true;
- restarted.length = 0;
- });
-
- this._timeoutId = null;
- this.attempts = 0;
- this.restarting = this.running = this.starting = this.stopping = false;
- this.jobs = { 'active': active, 'all': all, 'queue': queue };
- this.connection = new SauceTunnel(this.user, this.pass, this.id, this.tunneled, ['-P', '0']);
-}
-
-util.inherits(Tunnel, EventEmitter);
-
-/**
- * Restarts the tunnel.
- *
- * @memberOf Tunnel
- * @param {Function} callback The function called once the tunnel is restarted.
- */
-Tunnel.prototype.restart = function(callback) {
- this.once('restart', _.iteratee(callback));
- if (this.restarting) {
- return this;
- }
- this.restarting = true;
-
- logInline();
- console.log('Tunnel %s: restart %d of %d', this.id, ++this.attempts, this.retries);
-
- var jobs = this.jobs,
- active = jobs.active,
- all = jobs.all;
-
- var reset = _.after(all.length, _.bind(this.stop, this, onGenericRestart)),
- stop = _.after(active.length, _.partial(_.invokeMap, all, 'reset', reset));
-
- if (_.isEmpty(active)) {
- _.defer(stop);
- }
- if (_.isEmpty(all)) {
- _.defer(reset);
- }
- _.invokeMap(active, 'stop', function() {
- _.pull(active, this);
- stop();
- });
-
- if (this._timeoutId) {
- clearTimeout(this._timeoutId);
- this._timeoutId = null;
- }
- return this;
-};
-
-/**
- * Starts the tunnel.
- *
- * @memberOf Tunnel
- * @param {Function} callback The function called once the tunnel is started.
- * @param {Object} Returns the tunnel instance.
- */
-Tunnel.prototype.start = function(callback) {
- this.once('start', _.iteratee(callback));
- if (this.starting || this.running) {
- return this;
- }
- this.starting = true;
-
- logInline();
- console.log('Opening Sauce Connect tunnel...');
-
- var onStart = _.bind(onTunnelStart, this);
- if (this.timeout) {
- this._timeoutId = _.delay(onStart, this.timeout * 1000, false);
- }
- this.connection.start(onStart);
- return this;
-};
-
-/**
- * Removes jobs from the queue and starts them.
- *
- * @memberOf Tunnel
- * @param {Object} Returns the tunnel instance.
- */
-Tunnel.prototype.dequeue = function() {
- var count = 0,
- jobs = this.jobs,
- active = jobs.active,
- queue = jobs.queue,
- throttled = this.throttled;
-
- while (queue.length && (active.length < throttled)) {
- var job = queue.shift();
- active.push(job);
- _.delay(_.bind(job.start, job), ++count * 1000);
- }
- return this;
-};
-
-/**
- * Stops the tunnel.
- *
- * @memberOf Tunnel
- * @param {Function} callback The function called once the tunnel is stopped.
- * @param {Object} Returns the tunnel instance.
- */
-Tunnel.prototype.stop = function(callback) {
- this.once('stop', _.iteratee(callback));
- if (this.stopping) {
- return this;
- }
- this.stopping = true;
-
- logInline();
- console.log('Shutting down Sauce Connect tunnel...');
-
- var jobs = this.jobs,
- active = jobs.active;
-
- var stop = _.after(active.length, _.bind(function() {
- var onStop = _.bind(onGenericStop, this);
- if (this.running) {
- this.connection.stop(onStop);
- } else {
- onStop();
- }
- }, this));
-
- jobs.queue.length = 0;
- if (_.isEmpty(active)) {
- _.defer(stop);
- }
- _.invokeMap(active, 'stop', function() {
- _.pull(active, this);
- stop();
- });
-
- if (this._timeoutId) {
- clearTimeout(this._timeoutId);
- this._timeoutId = null;
- }
- return this;
-};
-
-/*----------------------------------------------------------------------------*/
-
-// Cleanup any inline logs when exited via `ctrl+c`.
-process.on('SIGINT', function() {
- logInline();
- process.exit();
-});
-
-// Create a web server for the current working directory.
-http.createServer(function(req, res) {
- // See http://msdn.microsoft.com/en-us/library/ff955275(v=vs.85).aspx.
- if (compatMode && path.extname(url.parse(req.url).pathname) == '.html') {
- res.setHeader('X-UA-Compatible', 'IE=' + compatMode);
- }
- mount(req, res);
-}).listen(port);
-
-// Setup Sauce Connect so we can use this server from Sauce Labs.
-var tunnel = new Tunnel({
- 'user': username,
- 'pass': accessKey,
- 'id': tunnelId,
- 'job': { 'retries': maxJobRetries, 'statusInterval': statusInterval },
- 'platforms': platforms,
- 'retries': maxTunnelRetries,
- 'throttled': throttled,
- 'tunneled': tunneled,
- 'timeout': tunnelTimeout
-});
-
-tunnel.on('complete', function(success) {
- process.exit(success ? 0 : 1);
-});
-
-tunnel.start();
-
-setInterval(logThrobber, throbberDelay);
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/test-fp.js b/ecomp-portal-FE/client/bower_components/lodash/test/test-fp.js
deleted file mode 100644
index 1fd66875..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/test-fp.js
+++ /dev/null
@@ -1,2173 +0,0 @@
-;(function() {
-
- /** Used as a safe reference for `undefined` in pre-ES5 environments. */
- var undefined;
-
- /** Used as the size to cover large array optimizations. */
- var LARGE_ARRAY_SIZE = 200;
-
- /** Used as a reference to the global object. */
- var root = (typeof global == 'object' && global) || this;
-
- /** Used for native method references. */
- var arrayProto = Array.prototype;
-
- /** Method and object shortcuts. */
- var phantom = root.phantom,
- argv = root.process && process.argv,
- document = !phantom && root.document,
- slice = arrayProto.slice,
- WeakMap = root.WeakMap;
-
- /** Math helpers. */
- var add = function(x, y) { return x + y; },
- isEven = function(n) { return n % 2 == 0; },
- square = function(n) { return n * n; };
-
- // Leak to avoid sporadic `noglobals` fails on Edge in Sauce Labs.
- root.msWDfn = undefined;
-
- /*--------------------------------------------------------------------------*/
-
- /** Load QUnit and extras. */
- var QUnit = root.QUnit || require('qunit-extras');
-
- /** Load stable Lodash. */
- var _ = root._ || require('../lodash.js');
-
- var convert = (function() {
- var baseConvert = root.fp || require('../fp/_baseConvert.js');
- if (!root.fp) {
- return function(name, func, options) {
- return baseConvert(_, name, func, options);
- };
- }
- return function(name, func, options) {
- if (typeof name == 'function') {
- options = func;
- func = name;
- name = undefined;
- }
- return name === undefined
- ? baseConvert(func, options)
- : baseConvert(_.runInContext(), options)[name];
- };
- }());
-
- var allFalseOptions = {
- 'cap': false,
- 'curry': false,
- 'fixed': false,
- 'immutable': false,
- 'rearg': false
- };
-
- var fp = root.fp
- ? (fp = _.noConflict(), _ = root._, fp)
- : convert(_.runInContext());
-
- var mapping = root.mapping || require('../fp/_mapping.js');
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Skips a given number of tests with a passing result.
- *
- * @private
- * @param {Object} assert The QUnit assert object.
- * @param {number} [count=1] The number of tests to skip.
- */
- function skipAssert(assert, count) {
- count || (count = 1);
- while (count--) {
- assert.ok(true, 'test skipped');
- }
- }
-
- /*--------------------------------------------------------------------------*/
-
- if (argv) {
- console.log('Running lodash/fp tests.');
- }
-
- QUnit.module('convert module');
-
- (function() {
- QUnit.test('should work with `name` and `func`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 4],
- remove = convert('remove', _.remove),
- actual = remove(isEven)(array);
-
- assert.deepEqual(array, [1, 2, 3, 4]);
- assert.deepEqual(actual, [1, 3]);
- });
-
- QUnit.test('should work with `name`, `func`, and `options`', function(assert) {
- assert.expect(3);
-
- var array = [1, 2, 3, 4],
- remove = convert('remove', _.remove, allFalseOptions);
-
- var actual = remove(array, function(n, index) {
- return isEven(index);
- });
-
- assert.deepEqual(array, [2, 4]);
- assert.deepEqual(actual, [1, 3]);
- assert.deepEqual(remove(), []);
- });
-
- QUnit.test('should work with an object', function(assert) {
- assert.expect(2);
-
- if (!document) {
- var array = [1, 2, 3, 4],
- lodash = convert({ 'remove': _.remove }),
- actual = lodash.remove(isEven)(array);
-
- assert.deepEqual(array, [1, 2, 3, 4]);
- assert.deepEqual(actual, [1, 3]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should work with an object and `options`', function(assert) {
- assert.expect(3);
-
- if (!document) {
- var array = [1, 2, 3, 4],
- lodash = convert({ 'remove': _.remove }, allFalseOptions);
-
- var actual = lodash.remove(array, function(n, index) {
- return isEven(index);
- });
-
- assert.deepEqual(array, [2, 4]);
- assert.deepEqual(actual, [1, 3]);
- assert.deepEqual(lodash.remove(), []);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should work with lodash and `options`', function(assert) {
- assert.expect(3);
-
- var array = [1, 2, 3, 4],
- lodash = convert(_.runInContext(), allFalseOptions);
-
- var actual = lodash.remove(array, function(n, index) {
- return isEven(index);
- });
-
- assert.deepEqual(array, [2, 4]);
- assert.deepEqual(actual, [1, 3]);
- assert.deepEqual(lodash.remove(), []);
- });
-
- QUnit.test('should work with `runInContext` and `options`', function(assert) {
- assert.expect(3);
-
- var array = [1, 2, 3, 4],
- runInContext = convert('runInContext', _.runInContext, allFalseOptions),
- lodash = runInContext();
-
- var actual = lodash.remove(array, function(n, index) {
- return isEven(index);
- });
-
- assert.deepEqual(array, [2, 4]);
- assert.deepEqual(actual, [1, 3]);
- assert.deepEqual(lodash.remove(), []);
- });
-
- QUnit.test('should accept a variety of options', function(assert) {
- assert.expect(8);
-
- var array = [1, 2, 3, 4],
- value = _.clone(array),
- remove = convert('remove', _.remove, { 'cap': false }),
- actual = remove(function(n, index) { return isEven(index); })(value);
-
- assert.deepEqual(value, [1, 2, 3, 4]);
- assert.deepEqual(actual, [2, 4]);
-
- remove = convert('remove', _.remove, { 'curry': false });
- actual = remove(isEven);
-
- assert.deepEqual(actual, []);
-
- var trim = convert('trim', _.trim, { 'fixed': false });
- assert.strictEqual(trim('_-abc-_', '_-'), 'abc');
-
- value = _.clone(array);
- remove = convert('remove', _.remove, { 'immutable': false });
- actual = remove(isEven)(value);
-
- assert.deepEqual(value, [1, 3]);
- assert.deepEqual(actual, [2, 4]);
-
- value = _.clone(array);
- remove = convert('remove', _.remove, { 'rearg': false });
- actual = remove(value)(isEven);
-
- assert.deepEqual(value, [1, 2, 3, 4]);
- assert.deepEqual(actual, [1, 3]);
- });
-
- QUnit.test('should respect the `cap` option', function(assert) {
- assert.expect(1);
-
- var iteratee = convert('iteratee', _.iteratee, { 'cap': false });
-
- var func = iteratee(function(a, b, c) {
- return [a, b, c];
- }, 3);
-
- assert.deepEqual(func(1, 2, 3), [1, 2, 3]);
- });
-
- QUnit.test('should respect the `rearg` option', function(assert) {
- assert.expect(1);
-
- var add = convert('add', _.add, { 'rearg': true });
-
- assert.strictEqual(add('2')('1'), '12');
- });
-
- QUnit.test('should only add a `placeholder` property if needed', function(assert) {
- assert.expect(2);
-
- if (!document) {
- var methodNames = _.keys(mapping.placeholder),
- expected = _.map(methodNames, _.constant(true));
-
- var actual = _.map(methodNames, function(methodName) {
- var object = {};
- object[methodName] = _[methodName];
-
- var lodash = convert(object);
- return methodName in lodash;
- });
-
- assert.deepEqual(actual, expected);
-
- var lodash = convert({ 'add': _.add });
- assert.notOk('placeholder' in lodash);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('method.convert');
-
- (function() {
- QUnit.test('should exist on unconverted methods', function(assert) {
- assert.expect(2);
-
- var array = [],
- isArray = fp.isArray.convert({ 'curry': true });
-
- assert.strictEqual(fp.isArray(array), true);
- assert.strictEqual(isArray()(array), true);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('convert methods');
-
- _.each(['fp.convert', 'method.convert'], function(methodName) {
- var isFp = methodName == 'fp.convert',
- func = isFp ? fp.convert : fp.remove.convert;
-
- QUnit.test('`' + methodName + '` should work with an object', function(assert) {
- assert.expect(3);
-
- var array = [1, 2, 3, 4],
- lodash = func(allFalseOptions),
- remove = isFp ? lodash.remove : lodash;
-
- var actual = remove(array, function(n, index) {
- return isEven(index);
- });
-
- assert.deepEqual(array, [2, 4]);
- assert.deepEqual(actual, [1, 3]);
- assert.deepEqual(remove(), []);
- });
-
- QUnit.test('`' + methodName + '` should extend existing configs', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 4],
- lodash = func({ 'cap': false }),
- remove = (isFp ? lodash.remove : lodash).convert({ 'rearg': false });
-
- var actual = remove(array)(function(n, index) {
- return isEven(index);
- });
-
- assert.deepEqual(array, [1, 2, 3, 4]);
- assert.deepEqual(actual, [2, 4]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('method arity checks');
-
- (function() {
- QUnit.test('should wrap methods with an arity > `1`', function(assert) {
- assert.expect(1);
-
- var methodNames = _.filter(_.functions(fp), function(methodName) {
- return fp[methodName].length > 1;
- });
-
- assert.deepEqual(methodNames, []);
- });
-
- QUnit.test('should have >= arity of `aryMethod` designation', function(assert) {
- assert.expect(4);
-
- _.times(4, function(index) {
- var aryCap = index + 1;
-
- var methodNames = _.filter(mapping.aryMethod[aryCap], function(methodName) {
- var key = _.result(mapping.remap, methodName, methodName),
- arity = _[key].length;
-
- return arity != 0 && arity < aryCap;
- });
-
- assert.deepEqual(methodNames, [], '`aryMethod[' + aryCap + ']`');
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('method aliases');
-
- (function() {
- QUnit.test('should have correct aliases', function(assert) {
- assert.expect(1);
-
- var actual = _.transform(mapping.aliasToReal, function(result, realName, alias) {
- result.push([alias, fp[alias] === fp[realName]]);
- }, []);
-
- assert.deepEqual(_.reject(actual, 1), []);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('method ary caps');
-
- (function() {
- QUnit.test('should have a cap of 1', function(assert) {
- assert.expect(1);
-
- var funcMethods = [
- 'curry', 'iteratee', 'memoize', 'over', 'overEvery', 'overSome',
- 'method', 'methodOf', 'rest', 'runInContext'
- ];
-
- var exceptions = funcMethods.concat('mixin', 'template'),
- expected = _.map(mapping.aryMethod[1], _.constant(true));
-
- var actual = _.map(mapping.aryMethod[1], function(methodName) {
- var arg = _.includes(funcMethods, methodName) ? _.noop : 1,
- result = _.attempt(function() { return fp[methodName](arg); });
-
- if (_.includes(exceptions, methodName)
- ? typeof result == 'function'
- : typeof result != 'function'
- ) {
- return true;
- }
- console.log(methodName, result);
- return false;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should have a cap of 2', function(assert) {
- assert.expect(1);
-
- var funcMethods = [
- 'after', 'ary', 'before', 'bind', 'bindKey', 'curryN', 'debounce',
- 'delay', 'overArgs', 'partial', 'partialRight', 'rearg', 'throttle',
- 'wrap'
- ];
-
- var exceptions = _.difference(funcMethods.concat('matchesProperty'), ['cloneDeepWith', 'cloneWith', 'delay']),
- expected = _.map(mapping.aryMethod[2], _.constant(true));
-
- var actual = _.map(mapping.aryMethod[2], function(methodName) {
- var args = _.includes(funcMethods, methodName) ? [methodName == 'curryN' ? 1 : _.noop, _.noop] : [1, []],
- result = _.attempt(function() { return fp[methodName](args[0])(args[1]); });
-
- if (_.includes(exceptions, methodName)
- ? typeof result == 'function'
- : typeof result != 'function'
- ) {
- return true;
- }
- console.log(methodName, result);
- return false;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should have a cap of 3', function(assert) {
- assert.expect(1);
-
- var funcMethods = [
- 'assignWith', 'extendWith', 'isEqualWith', 'isMatchWith', 'reduce',
- 'reduceRight', 'transform', 'zipWith'
- ];
-
- var expected = _.map(mapping.aryMethod[3], _.constant(true));
-
- var actual = _.map(mapping.aryMethod[3], function(methodName) {
- var args = _.includes(funcMethods, methodName) ? [_.noop, 0, 1] : [0, 1, []],
- result = _.attempt(function() { return fp[methodName](args[0])(args[1])(args[2]); });
-
- if (typeof result != 'function') {
- return true;
- }
- console.log(methodName, result);
- return false;
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('methods that use `indexOf`');
-
- (function() {
- QUnit.test('should work with `fp.indexOf`', function(assert) {
- assert.expect(10);
-
- var array = ['a', 'b', 'c'],
- other = ['b', 'd', 'b'],
- object = { 'a': 1, 'b': 2, 'c': 2 },
- actual = fp.difference(array)(other);
-
- assert.deepEqual(actual, ['a', 'c'], 'fp.difference');
-
- actual = fp.includes('b')(array);
- assert.strictEqual(actual, true, 'fp.includes');
-
- actual = fp.intersection(other)(array);
- assert.deepEqual(actual, ['b'], 'fp.intersection');
-
- actual = fp.omit(other)(object);
- assert.deepEqual(actual, { 'a': 1, 'c': 2 }, 'fp.omit');
-
- actual = fp.union(other)(array);
- assert.deepEqual(actual, ['a', 'b', 'c', 'd'], 'fp.union');
-
- actual = fp.uniq(other);
- assert.deepEqual(actual, ['b', 'd'], 'fp.uniq');
-
- actual = fp.uniqBy(_.identity, other);
- assert.deepEqual(actual, ['b', 'd'], 'fp.uniqBy');
-
- actual = fp.without(other)(array);
- assert.deepEqual(actual, ['a', 'c'], 'fp.without');
-
- actual = fp.xor(other)(array);
- assert.deepEqual(actual, ['a', 'c', 'd'], 'fp.xor');
-
- actual = fp.pull('b')(array);
- assert.deepEqual(actual, ['a', 'c'], 'fp.pull');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('cherry-picked methods');
-
- (function() {
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(4);
-
- var args,
- array = [1, 2, 3],
- object = { 'a': 1, 'b': 2 },
- isFIFO = _.keys(object)[0] == 'a',
- map = convert('map', _.map),
- reduce = convert('reduce', _.reduce);
-
- map(function() {
- args || (args = slice.call(arguments));
- })(array);
-
- assert.deepEqual(args, [1]);
-
- args = undefined;
- map(function() {
- args || (args = slice.call(arguments));
- })(object);
-
- assert.deepEqual(args, isFIFO ? [1] : [2]);
-
- args = undefined;
- reduce(function() {
- args || (args = slice.call(arguments));
- })(0)(array);
-
- assert.deepEqual(args, [0, 1]);
-
- args = undefined;
- reduce(function() {
- args || (args = slice.call(arguments));
- })(0)(object);
-
- assert.deepEqual(args, isFIFO ? [0, 1] : [0, 2]);
- });
-
- QUnit.test('should not support shortcut fusion', function(assert) {
- assert.expect(3);
-
- var array = fp.range(0, LARGE_ARRAY_SIZE),
- filterCount = 0,
- mapCount = 0;
-
- var iteratee = function(value) {
- mapCount++;
- return value * value;
- };
-
- var predicate = function(value) {
- filterCount++;
- return isEven(value);
- };
-
- var map1 = convert('map', _.map),
- filter1 = convert('filter', _.filter),
- take1 = convert('take', _.take);
-
- var filter2 = filter1(predicate),
- map2 = map1(iteratee),
- take2 = take1(2);
-
- var combined = fp.flow(map2, filter2, fp.compact, take2);
-
- assert.deepEqual(combined(array), [4, 16]);
- assert.strictEqual(filterCount, 200, 'filterCount');
- assert.strictEqual(mapCount, 200, 'mapCount');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('iteratee shorthands');
-
- (function() {
- var objects = [{ 'a': 1, 'b': 2 }, { 'a': 3, 'b': 4 }];
-
- QUnit.test('should work with "_.matches" shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(fp.filter({ 'a': 3 })(objects), [objects[1]]);
- });
-
- QUnit.test('should work with "_.matchesProperty" shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(fp.filter(['a', 3])(objects), [objects[1]]);
- });
-
- QUnit.test('should work with "_.property" shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(fp.map('a')(objects), [1, 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('placeholder methods');
-
- (function() {
- QUnit.test('should use `fp` as the default placeholder', function(assert) {
- assert.expect(3);
-
- var actual = fp.add(fp, 'b')('a');
- assert.strictEqual(actual, 'ab');
-
- actual = fp.fill(fp, 2)(1, '*')([1, 2, 3]);
- assert.deepEqual(actual, [1, '*', 3]);
-
- actual = fp.slice(fp, 2)(1)(['a', 'b', 'c']);
- assert.deepEqual(actual, ['b']);
- });
-
- QUnit.test('should support `fp.placeholder`', function(assert) {
- assert.expect(6);
-
- _.each([[], fp.__], function(ph) {
- fp.placeholder = ph;
-
- var actual = fp.add(ph, 'b')('a');
- assert.strictEqual(actual, 'ab');
-
- actual = fp.fill(ph, 2)(1, '*')([1, 2, 3]);
- assert.deepEqual(actual, [1, '*', 3]);
-
- actual = fp.slice(ph, 2)(1)(['a', 'b', 'c']);
- assert.deepEqual(actual, ['b']);
- });
- });
-
- _.forOwn(mapping.placeholder, function(truthy, methodName) {
- var func = fp[methodName];
-
- QUnit.test('`_.' + methodName + '` should have a `placeholder` property', function(assert) {
- assert.expect(2);
-
- assert.ok(_.isObject(func.placeholder));
- assert.strictEqual(func.placeholder, fp.__);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('setter methods');
-
- (function() {
- QUnit.test('should only clone objects in `path`', function(assert) {
- assert.expect(11);
-
- var object = { 'a': { 'b': 2, 'c': 3 }, 'd': { 'e': 4 } },
- value = _.cloneDeep(object),
- actual = fp.set('a.b.c.d', 5, value);
-
- assert.ok(_.isObject(actual.a.b), 'fp.set');
- assert.ok(_.isNumber(actual.a.b), 'fp.set');
-
- assert.strictEqual(actual.a.b.c.d, 5, 'fp.set');
- assert.strictEqual(actual.d, value.d, 'fp.set');
-
- value = _.cloneDeep(object);
- actual = fp.setWith(Object)('[0][1]')('a')(value);
-
- assert.deepEqual(actual[0], { '1': 'a' }, 'fp.setWith');
-
- value = _.cloneDeep(object);
- actual = fp.unset('a.b')(value);
-
- assert.notOk('b' in actual.a, 'fp.unset');
- assert.strictEqual(actual.a.c, value.a.c, 'fp.unset');
-
- value = _.cloneDeep(object);
- actual = fp.update('a.b')(square)(value);
-
- assert.strictEqual(actual.a.b, 4, 'fp.update');
- assert.strictEqual(actual.d, value.d, 'fp.update');
-
- value = _.cloneDeep(object);
- actual = fp.updateWith(Object)('[0][1]')(_.constant('a'))(value);
-
- assert.deepEqual(actual[0], { '1': 'a' }, 'fp.updateWith');
- assert.strictEqual(actual.d, value.d, 'fp.updateWith');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.add and fp.subtract');
-
- _.each(['add', 'subtract'], function(methodName) {
- var func = fp[methodName],
- isAdd = methodName == 'add';
-
- QUnit.test('`fp.' + methodName + '` should not have `rearg` applied', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func('1')('2'), isAdd ? '12' : -1);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('assign methods');
-
- _.each(['assign', 'assignIn', 'defaults', 'defaultsDeep', 'merge'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`fp.' + methodName + '` should not mutate values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1 },
- actual = func(object)({ 'b': 2 });
-
- assert.deepEqual(object, { 'a': 1 });
- assert.deepEqual(actual, { 'a': 1, 'b': 2 });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('assignWith methods');
-
- _.each(['assignWith', 'assignInWith', 'extendWith'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`fp.' + methodName + '` should provide the correct `customizer` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- func(function() {
- args || (args = _.map(arguments, _.cloneDeep));
- })({ 'a': 1 })({ 'b': 2 });
-
- assert.deepEqual(args, [undefined, 2, 'b', { 'a': 1 }, { 'b': 2 }]);
- });
-
- QUnit.test('`fp.' + methodName + '` should not mutate values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1 };
-
- var actual = func(function(objValue, srcValue) {
- return srcValue;
- })(object)({ 'b': 2 });
-
- assert.deepEqual(object, { 'a': 1 });
- assert.deepEqual(actual, { 'a': 1, 'b': 2 });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.castArray');
-
- (function() {
- QUnit.test('should shallow clone array values', function(assert) {
- assert.expect(2);
-
- var array = [1],
- actual = fp.castArray(array);
-
- assert.deepEqual(actual, array);
- assert.notStrictEqual(actual, array);
- });
-
- QUnit.test('should not shallow clone non-array values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1 },
- actual = fp.castArray(object);
-
- assert.deepEqual(actual, [object]);
- assert.strictEqual(actual[0], object);
- });
-
- QUnit.test('should convert by name', function(assert) {
- assert.expect(4);
-
- var array = [1],
- object = { 'a': 1 },
- castArray = convert('castArray', _.castArray),
- actual = castArray(array);
-
- assert.deepEqual(actual, array);
- assert.notStrictEqual(actual, array);
-
- actual = castArray(object);
- assert.deepEqual(actual, [object]);
- assert.strictEqual(actual[0], object);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('curry methods');
-
- _.each(['curry', 'curryRight'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`_.' + methodName + '` should only accept a `func` param', function(assert) {
- assert.expect(1);
-
- assert.raises(function() { func(1, _.noop); }, TypeError);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('curryN methods');
-
- _.each(['curryN', 'curryRightN'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`_.' + methodName + '` should accept an `arity` param', function(assert) {
- assert.expect(1);
-
- var actual = func(1)(function(a, b) { return [a, b]; })('a');
- assert.deepEqual(actual, ['a', undefined]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.difference');
-
- (function() {
- QUnit.test('should return the elements of the first array not included in the second array', function(assert) {
- assert.expect(1);
-
- var actual = fp.difference([2, 1], [2, 3]);
- assert.deepEqual(actual, [1]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.differenceBy');
-
- (function() {
- QUnit.test('should have an argument order of `iteratee`, `array`, then `values`', function(assert) {
- assert.expect(1);
-
- var actual = fp.differenceBy(Math.floor, [2.1, 1.2], [2.3, 3.4]);
- assert.deepEqual(actual, [1.2]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.differenceBy(function() {
- args || (args = slice.call(arguments));
- })([2.1, 1.2], [2.3, 3.4]);
-
- assert.deepEqual(args, [2.3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.differenceWith');
-
- (function() {
- QUnit.test('should have an argument order of `comparator`, `array`, then `values`', function(assert) {
- assert.expect(1);
-
- var actual = fp.differenceWith(fp.eq)([2, 1])([2, 3]);
- assert.deepEqual(actual, [1]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.divide and fp.multiply');
-
- _.each(['divide', 'multiply'], function(methodName) {
- var func = fp[methodName],
- isDivide = methodName == 'divide';
-
- QUnit.test('`fp.' + methodName + '` should not have `rearg` applied', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func('2')('4'), isDivide ? 0.5 : 8);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.extend');
-
- (function() {
- QUnit.test('should convert by name', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.prototype = { 'b': 2 };
-
- var object = { 'a': 1 },
- extend = convert('extend', _.extend),
- value = _.clone(object),
- actual = extend(value)(new Foo);
-
- assert.deepEqual(value, object);
- assert.deepEqual(actual, { 'a': 1, 'b': 2 });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.fill');
-
- (function() {
- QUnit.test('should have an argument order of `start`, `end`, then `value`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- assert.deepEqual(fp.fill(1)(2)('*')(array), [1, '*', 3]);
- });
-
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = fp.fill(1)(2)('*')(array);
-
- assert.deepEqual(array, [1, 2, 3]);
- assert.deepEqual(actual, [1, '*', 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.findFrom methods');
-
- _.each(['findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`_.' + methodName + '` should provide the correct `predicate` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- func(function() {
- args || (args = slice.call(arguments));
- })(1)([1, 2, 3]);
-
- assert.deepEqual(args, [2]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.findFrom');
-
- (function() {
- function resolve(value) {
- return fp.flow(fp.property('a'), fp.eq(value));
- }
-
- QUnit.test('should have an argument order of `value`, `fromIndex`, then `array`', function(assert) {
- assert.expect(2);
-
- var objects = [{ 'a': 1 }, { 'a': 2 }, { 'a': 1 }, { 'a': 2 }];
-
- assert.strictEqual(fp.findFrom(resolve(1))(1)(objects), objects[2]);
- assert.strictEqual(fp.findFrom(resolve(2))(-2)(objects), objects[3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.findLastFrom');
-
- (function() {
- function resolve(value) {
- return fp.flow(fp.property('a'), fp.eq(value));
- }
-
- QUnit.test('should have an argument order of `value`, `fromIndex`, then `array`', function(assert) {
- assert.expect(2);
-
- var objects = [{ 'a': 1 }, { 'a': 2 }, { 'a': 1 }, { 'a': 2 }];
-
- assert.strictEqual(fp.findLastFrom(resolve(1))(1)(objects), objects[0]);
- assert.strictEqual(fp.findLastFrom(resolve(2))(-2)(objects), objects[1]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.findIndexFrom and fp.indexOfFrom');
-
- _.each(['findIndexFrom', 'indexOfFrom'], function(methodName) {
- var func = fp[methodName],
- resolve = methodName == 'findIndexFrom' ? fp.eq : _.identity;
-
- QUnit.test('`_.' + methodName + '` should have an argument order of `value`, `fromIndex`, then `array`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 1, 2, 3];
-
- assert.deepEqual(func(resolve(1))(2)(array), 3);
- assert.deepEqual(func(resolve(2))(-3)(array), 4);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.findLastIndexFrom and fp.lastIndexOfFrom');
-
- _.each(['findLastIndexFrom', 'lastIndexOfFrom'], function(methodName) {
- var func = fp[methodName],
- resolve = methodName == 'findLastIndexFrom' ? fp.eq : _.identity;
-
- QUnit.test('`_.' + methodName + '` should have an argument order of `value`, `fromIndex`, then `array`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 1, 2, 3];
-
- assert.deepEqual(func(resolve(2))(3)(array), 1);
- assert.deepEqual(func(resolve(3))(-3)(array), 2);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.flatMapDepth');
-
- (function() {
- QUnit.test('should have an argument order of `iteratee`, `depth`, then `collection`', function(assert) {
- assert.expect(2);
-
- function duplicate(n) {
- return [[[n, n]]];
- }
-
- var array = [1, 2],
- object = { 'a': 1, 'b': 2 },
- expected = [[1, 1], [2, 2]];
-
- assert.deepEqual(fp.flatMapDepth(duplicate)(2)(array), expected);
- assert.deepEqual(fp.flatMapDepth(duplicate)(2)(object), expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('flow methods');
-
- _.each(['flow', 'flowRight'], function(methodName) {
- var func = fp[methodName],
- isFlow = methodName == 'flow';
-
- QUnit.test('`fp.' + methodName + '` should support shortcut fusion', function(assert) {
- assert.expect(6);
-
- var filterCount,
- mapCount,
- array = fp.range(0, LARGE_ARRAY_SIZE);
-
- var iteratee = function(value) {
- mapCount++;
- return square(value);
- };
-
- var predicate = function(value) {
- filterCount++;
- return isEven(value);
- };
-
- var filter = fp.filter(predicate),
- map = fp.map(iteratee),
- take = fp.take(2);
-
- _.times(2, function(index) {
- var combined = isFlow
- ? func(map, filter, fp.compact, take)
- : func(take, fp.compact, filter, map);
-
- filterCount = mapCount = 0;
-
- if (WeakMap && WeakMap.name) {
- assert.deepEqual(combined(array), [4, 16]);
- assert.strictEqual(filterCount, 5, 'filterCount');
- assert.strictEqual(mapCount, 5, 'mapCount');
- }
- else {
- skipAssert(assert, 3);
- }
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('forEach methods');
-
- _.each(['forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`fp.' + methodName + '` should provide `value` to `iteratee`', function(assert) {
- assert.expect(2);
-
- var args;
-
- func(function() {
- args || (args = slice.call(arguments));
- })(['a']);
-
- assert.deepEqual(args, ['a']);
-
- args = undefined;
-
- func(function() {
- args || (args = slice.call(arguments));
- })({ 'a': 1 });
-
- assert.deepEqual(args, [1]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.getOr');
-
- (function() {
- QUnit.test('should accept a `defaultValue` param', function(assert) {
- assert.expect(1);
-
- var actual = fp.getOr('default')('path')({});
- assert.strictEqual(actual, 'default');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.gt and fp.gte');
-
- _.each(['gt', 'gte'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`fp.' + methodName + '` should have `rearg` applied', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(2)(1), true);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.inRange');
-
- (function() {
- QUnit.test('should have an argument order of `start`, `end`, then `value`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(fp.inRange(2)(4)(3), true);
- assert.strictEqual(fp.inRange(-2)(-6)(-3), true);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.intersectionBy');
-
- (function() {
- QUnit.test('should have an argument order of `iteratee`, `array`, then `values`', function(assert) {
- assert.expect(1);
-
- var actual = fp.intersectionBy(Math.floor, [2.1, 1.2], [2.3, 3.4]);
- assert.deepEqual(actual, [2.1]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.intersectionBy(function() {
- args || (args = slice.call(arguments));
- })([2.1, 1.2], [2.3, 3.4]);
-
- assert.deepEqual(args, [2.3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.intersectionWith');
-
- (function() {
- QUnit.test('should have an argument order of `comparator`, `array`, then `values`', function(assert) {
- assert.expect(1);
-
- var actual = fp.intersectionWith(fp.eq)([2, 1])([2, 3]);
- assert.deepEqual(actual, [2]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.invoke');
-
- (function() {
- QUnit.test('should not accept an `args` param', function(assert) {
- assert.expect(1);
-
- var actual = fp.invoke('toUpperCase')('a');
- assert.strictEqual(actual, 'A');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.invokeMap');
-
- (function() {
- QUnit.test('should not accept an `args` param', function(assert) {
- assert.expect(1);
-
- var actual = fp.invokeMap('toUpperCase')(['a', 'b']);
- assert.deepEqual(actual, ['A', 'B']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.invokeArgs');
-
- (function() {
- QUnit.test('should accept an `args` param', function(assert) {
- assert.expect(1);
-
- var actual = fp.invokeArgs('concat')(['b', 'c'])('a');
- assert.strictEqual(actual, 'abc');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.invokeArgsMap');
-
- (function() {
- QUnit.test('should accept an `args` param', function(assert) {
- assert.expect(1);
-
- var actual = fp.invokeArgsMap('concat')(['b', 'c'])(['a', 'A']);
- assert.deepEqual(actual, ['abc', 'Abc']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.isEqualWith');
-
- (function() {
- QUnit.test('should provide the correct `customizer` arguments', function(assert) {
- assert.expect(1);
-
- var args,
- iteration = 0,
- objects = [{ 'a': 1 }, { 'a': 2 }],
- stack = { '__data__': { '__data__': [objects] } },
- expected = [1, 2, 'a', objects[0], objects[1], stack];
-
- fp.isEqualWith(function() {
- if (++iteration == 2) {
- args = _.map(arguments, _.cloneDeep);
- }
- })(objects[0])(objects[1]);
-
- args[5] = _.omitBy(args[5], _.isFunction);
- args[5].__data__ = _.omitBy(args[5].__data__, _.isFunction);
-
- assert.deepEqual(args, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.isMatchWith');
-
- (function() {
- QUnit.test('should provide the correct `customizer` arguments', function(assert) {
- assert.expect(1);
-
- var args,
- objects = [{ 'a': 1 }, { 'a': 2 }],
- stack = { '__data__': { '__data__': [] } },
- expected = [2, 1, 'a', objects[1], objects[0], stack];
-
- fp.isMatchWith(function() {
- args || (args = _.map(arguments, _.cloneDeep));
- })(objects[0])(objects[1]);
-
- args[5] = _.omitBy(args[5], _.isFunction);
- args[5].__data__ = _.omitBy(args[5].__data__, _.isFunction);
-
- assert.deepEqual(args, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.iteratee');
-
- (function() {
- QUnit.test('should return a iteratee with capped params', function(assert) {
- assert.expect(1);
-
- var func = fp.iteratee(function(a, b, c) { return [a, b, c]; }, 3);
- assert.deepEqual(func(1, 2, 3), [1, undefined, undefined]);
- });
-
- QUnit.test('should convert by name', function(assert) {
- assert.expect(1);
-
- var iteratee = convert('iteratee', _.iteratee),
- func = iteratee(function(a, b, c) { return [a, b, c]; }, 3);
-
- assert.deepEqual(func(1, 2, 3), [1, undefined, undefined]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.lt and fp.lte');
-
- _.each(['lt', 'lte'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`fp.' + methodName + '` should have `rearg` applied', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(1)(2), true);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.mapKeys');
-
- (function() {
- QUnit.test('should only provide `key` to `iteratee`', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.mapKeys(function() {
- args || (args = slice.call(arguments));
- }, { 'a': 1 });
-
- assert.deepEqual(args, ['a']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.maxBy and fp.minBy');
-
- _.each(['maxBy', 'minBy'], function(methodName) {
- var array = [1, 2, 3],
- func = fp[methodName],
- isMax = methodName == 'maxBy';
-
- QUnit.test('`fp.' + methodName + '` should work with an `iteratee` argument', function(assert) {
- assert.expect(1);
-
- var actual = func(function(num) {
- return -num;
- })(array);
-
- assert.strictEqual(actual, isMax ? 1 : 3);
- });
-
- QUnit.test('`fp.' + methodName + '` should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- func(function() {
- args || (args = slice.call(arguments));
- })(array);
-
- assert.deepEqual(args, [1]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.mergeWith');
-
- (function() {
- QUnit.test('should provide the correct `customizer` arguments', function(assert) {
- assert.expect(1);
-
- var args,
- stack = { '__data__': { '__data__': [] } },
- expected = [[1], [2, 3], 'a', { 'a': [1] }, { 'a': [2, 3] }, stack];
-
- fp.mergeWith(function() {
- args || (args = _.map(arguments, _.cloneDeep));
- })({ 'a': [1] })({ 'a': [2, 3] });
-
- args[5] = _.omitBy(args[5], _.isFunction);
- args[5].__data__ = _.omitBy(args[5].__data__, _.isFunction);
-
- assert.deepEqual(args, expected);
- });
-
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2, 'c': 3 } };
- object.a.b = [1];
-
- var actual = fp.mergeWith(function(objValue, srcValue) {
- if (_.isArray(objValue)) {
- return objValue.concat(srcValue);
- }
- }, object, { 'a': { 'b': [2, 3] } });
-
- assert.deepEqual(object, { 'a': { 'b': [1], 'c': 3 } });
- assert.deepEqual(actual, { 'a': { 'b': [1, 2, 3], 'c': 3 } });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.mixin');
-
- (function() {
- var source = { 'a': _.noop };
-
- QUnit.test('should mixin static methods but not prototype methods', function(assert) {
- assert.expect(2);
-
- fp.mixin(source);
-
- assert.strictEqual(typeof fp.a, 'function');
- assert.notOk('a' in fp.prototype);
-
- delete fp.a;
- delete fp.prototype.a;
- });
-
- QUnit.test('should not assign inherited `source` methods', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.prototype.a = _.noop;
- fp.mixin(new Foo);
-
- assert.notOk('a' in fp);
- assert.notOk('a' in fp.prototype);
-
- delete fp.a;
- delete fp.prototype.a;
- });
-
- QUnit.test('should not remove existing prototype methods', function(assert) {
- assert.expect(2);
-
- var each1 = fp.each,
- each2 = fp.prototype.each;
-
- fp.mixin({ 'each': source.a });
-
- assert.strictEqual(fp.each, source.a);
- assert.strictEqual(fp.prototype.each, each2);
-
- fp.each = each1;
- fp.prototype.each = each2;
- });
-
- QUnit.test('should not export to the global when `source` is not an object', function(assert) {
- assert.expect(2);
-
- var props = _.without(_.keys(_), '_');
-
- _.times(2, function(index) {
- fp.mixin.apply(fp, index ? [1] : []);
-
- assert.ok(_.every(props, function(key) {
- return root[key] !== fp[key];
- }));
-
- _.each(props, function(key) {
- if (root[key] === fp[key]) {
- delete root[key];
- }
- });
- });
- });
-
- QUnit.test('should convert by name', function(assert) {
- assert.expect(3);
-
- var object = { 'mixin': convert('mixin', _.mixin) };
-
- function Foo() {}
- Foo.mixin = object.mixin;
- Foo.mixin(source);
-
- assert.strictEqual(typeof Foo.a, 'function');
- assert.notOk('a' in Foo.prototype);
-
- object.mixin(source);
- assert.strictEqual(typeof object.a, 'function');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.over');
-
- (function() {
- QUnit.test('should not cap iteratee args', function(assert) {
- assert.expect(2);
-
- _.each([fp.over, convert('over', _.over)], function(func) {
- var over = func([Math.max, Math.min]);
- assert.deepEqual(over(1, 2, 3, 4), [4, 1]);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.omitBy and fp.pickBy');
-
- _.each(['omitBy', 'pickBy'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`fp.' + methodName + '` should provide `value` and `key` to `iteratee`', function(assert) {
- assert.expect(1);
-
- var args;
-
- func(function() {
- args || (args = slice.call(arguments));
- })({ 'a': 1 });
-
- assert.deepEqual(args, [1, 'a']);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('padChars methods');
-
- _.each(['padChars', 'padCharsStart', 'padCharsEnd'], function(methodName) {
- var func = fp[methodName],
- isPad = methodName == 'padChars',
- isStart = methodName == 'padCharsStart';
-
- QUnit.test('`_.' + methodName + '` should truncate pad characters to fit the pad length', function(assert) {
- assert.expect(1);
-
- if (isPad) {
- assert.strictEqual(func('_-')(8)('abc'), '_-abc_-_');
- } else {
- assert.strictEqual(func('_-')(6)('abc'), isStart ? '_-_abc' : 'abc_-_');
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('partial methods');
-
- _.each(['partial', 'partialRight'], function(methodName) {
- var func = fp[methodName],
- isPartial = methodName == 'partial';
-
- QUnit.test('`_.' + methodName + '` should accept an `args` param', function(assert) {
- assert.expect(1);
-
- var expected = isPartial ? [1, 2, 3] : [0, 1, 2];
-
- var actual = func(function(a, b, c) {
- return [a, b, c];
- })([1, 2])(isPartial ? 3 : 0);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should convert by name', function(assert) {
- assert.expect(2);
-
- var expected = isPartial ? [1, 2, 3] : [0, 1, 2],
- par = convert(methodName, _[methodName]),
- ph = par.placeholder;
-
- var actual = par(function(a, b, c) {
- return [a, b, c];
- })([1, 2])(isPartial ? 3 : 0);
-
- assert.deepEqual(actual, expected);
-
- actual = par(function(a, b, c) {
- return [a, b, c];
- })([ph, 2])(isPartial ? 1 : 0, isPartial ? 3 : 1);
-
- assert.deepEqual(actual, expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.pull');
-
- (function() {
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = fp.pull(2)(array);
-
- assert.deepEqual(array, [1, 2, 3]);
- assert.deepEqual(actual, [1, 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.pullAll');
-
- (function() {
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = fp.pullAll([1, 3])(array);
-
- assert.deepEqual(array, [1, 2, 3]);
- assert.deepEqual(actual, [2]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.pullAt');
-
- (function() {
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = fp.pullAt([0, 2])(array);
-
- assert.deepEqual(array, [1, 2, 3]);
- assert.deepEqual(actual, [2]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.random');
-
- (function() {
- var array = Array(1000);
-
- QUnit.test('should support a `min` and `max` argument', function(assert) {
- assert.expect(1);
-
- var min = 5,
- max = 10;
-
- assert.ok(_.some(array, function() {
- var result = fp.random(min)(max);
- return result >= min && result <= max;
- }));
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.range');
-
- (function() {
- QUnit.test('should have an argument order of `start` then `end`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(fp.range(1)(4), [1, 2, 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('reduce methods');
-
- _.each(['reduce', 'reduceRight'], function(methodName) {
- var func = fp[methodName],
- isReduce = methodName == 'reduce';
-
- QUnit.test('`_.' + methodName + '` should provide the correct `iteratee` arguments when iterating an array', function(assert) {
- assert.expect(1);
-
- var args;
-
- func(function() {
- args || (args = slice.call(arguments));
- })(0)([1, 2, 3]);
-
- assert.deepEqual(args, isReduce ? [0, 1] : [0, 3]);
- });
-
- QUnit.test('`_.' + methodName + '` should provide the correct `iteratee` arguments when iterating an object', function(assert) {
- assert.expect(1);
-
- var args,
- object = { 'a': 1, 'b': 2 },
- isFIFO = _.keys(object)[0] == 'a';
-
- var expected = isFIFO
- ? (isReduce ? [0, 1] : [0, 2])
- : (isReduce ? [0, 2] : [0, 1]);
-
- func(function() {
- args || (args = slice.call(arguments));
- })(0)(object);
-
- assert.deepEqual(args, expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.remove');
-
- (function() {
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = fp.remove(fp.eq(2))(array);
-
- assert.deepEqual(array, [1, 2, 3]);
- assert.deepEqual(actual, [1, 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.restFrom');
-
- (function() {
- QUnit.test('should accept a `start` param', function(assert) {
- assert.expect(1);
-
- var actual = fp.restFrom(2)(function() {
- return slice.call(arguments);
- })('a', 'b', 'c', 'd');
-
- assert.deepEqual(actual, ['a', 'b', ['c', 'd']]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.reverse');
-
- (function() {
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = fp.reverse(array);
-
- assert.deepEqual(array, [1, 2, 3]);
- assert.deepEqual(actual, [3, 2, 1]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.runInContext');
-
- (function() {
- QUnit.test('should return a converted lodash instance', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(typeof fp.runInContext({}).curryN, 'function');
- });
-
- QUnit.test('should convert by name', function(assert) {
- assert.expect(1);
-
- var runInContext = convert('runInContext', _.runInContext);
- assert.strictEqual(typeof runInContext({}).curryN, 'function');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.set');
-
- (function() {
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2, 'c': 3 } },
- actual = fp.set('a.b')(3)(object);
-
- assert.deepEqual(object, { 'a': { 'b': 2, 'c': 3 } });
- assert.deepEqual(actual, { 'a': { 'b': 3, 'c': 3 } });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.setWith');
-
- (function() {
- QUnit.test('should provide the correct `customizer` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.setWith(function() {
- args || (args = _.map(arguments, _.cloneDeep));
- })('b.c')(2)({ 'a': 1 });
-
- assert.deepEqual(args, [undefined, 'b', { 'a': 1 }]);
- });
-
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2, 'c': 3 } },
- actual = fp.setWith(Object)('d.e')(4)(object);
-
- assert.deepEqual(object, { 'a': { 'b': 2, 'c': 3 } });
- assert.deepEqual(actual, { 'a': { 'b': 2, 'c': 3 }, 'd': { 'e': 4 } });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.spreadFrom');
-
- (function() {
- QUnit.test('should accept a `start` param', function(assert) {
- assert.expect(1);
-
- var actual = fp.spreadFrom(2)(function() {
- return slice.call(arguments);
- })('a', 'b', ['c', 'd']);
-
- assert.deepEqual(actual, ['a', 'b', 'c', 'd']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('trimChars methods');
-
- _.each(['trimChars', 'trimCharsStart', 'trimCharsEnd'], function(methodName, index) {
- var func = fp[methodName],
- parts = [];
-
- if (index != 2) {
- parts.push('leading');
- }
- if (index != 1) {
- parts.push('trailing');
- }
- parts = parts.join(' and ');
-
- QUnit.test('`_.' + methodName + '` should remove ' + parts + ' `chars`', function(assert) {
- assert.expect(1);
-
- var string = '-_-a-b-c-_-',
- expected = (index == 2 ? '-_-' : '') + 'a-b-c' + (index == 1 ? '-_-' : '');
-
- assert.strictEqual(func('_-')(string), expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.unionBy');
-
- (function() {
- QUnit.test('should have an argument order of `iteratee`, `array`, then `other`', function(assert) {
- assert.expect(1);
-
- var actual = fp.unionBy(Math.floor, [2.1], [1.2, 2.3]);
- assert.deepEqual(actual, [2.1, 1.2]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.unionBy(function() {
- args || (args = slice.call(arguments));
- })([2.1], [1.2, 2.3]);
-
- assert.deepEqual(args, [2.1]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.unionWith');
-
- (function() {
- QUnit.test('should have an argument order of `comparator`, `array`, then `values`', function(assert) {
- assert.expect(1);
-
- var actual = fp.unionWith(fp.eq)([2, 1])([2, 3]);
- assert.deepEqual(actual, [2, 1, 3]);
- });
-
- QUnit.test('should provide the correct `comparator` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.unionWith(function() {
- args || (args = slice.call(arguments));
- })([2, 1])([2, 3]);
-
- assert.deepEqual(args, [1, 2]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.uniqBy');
-
- (function() {
- var objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }, { 'a': 2 }, { 'a': 3 }, { 'a': 1 }];
-
- QUnit.test('should work with an `iteratee` argument', function(assert) {
- assert.expect(1);
-
- var expected = objects.slice(0, 3);
-
- var actual = fp.uniqBy(function(object) {
- return object.a;
- })(objects);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.uniqBy(function() {
- args || (args = slice.call(arguments));
- })(objects);
-
- assert.deepEqual(args, [objects[0]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.uniqWith');
-
- (function() {
- QUnit.test('should have an argument order of `comparator`, `array`, then `values`', function(assert) {
- assert.expect(1);
-
- var actual = fp.uniqWith(fp.eq)([2, 1, 2]);
- assert.deepEqual(actual, [2, 1]);
- });
-
- QUnit.test('should provide the correct `comparator` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.uniqWith(function() {
- args || (args = slice.call(arguments));
- })([2, 1, 2]);
-
- assert.deepEqual(args, [1, 2]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.update');
-
- (function() {
- QUnit.test('should not convert end of `path` to an object', function(assert) {
- assert.expect(1);
-
- var actual = fp.update('a.b')(_.identity)({ 'a': { 'b': 1 } });
- assert.strictEqual(typeof actual.a.b, 'number');
- });
-
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2, 'c': 3 } },
- actual = fp.update('a.b')(square)(object);
-
- assert.deepEqual(object, { 'a': { 'b': 2, 'c': 3 } });
- assert.deepEqual(actual, { 'a': { 'b': 4, 'c': 3 } });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.updateWith');
-
- (function() {
- QUnit.test('should provide the correct `customizer` arguments', function(assert) {
- var args;
-
- fp.updateWith(function() {
- args || (args = _.map(arguments, _.cloneDeep));
- })('b.c')(_.constant(2))({ 'a': 1 });
-
- assert.deepEqual(args, [undefined, 'b', { 'a': 1 }]);
- });
-
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2, 'c': 3 } },
- actual = fp.updateWith(Object)('d.e')(_.constant(4))(object);
-
- assert.deepEqual(object, { 'a': { 'b': 2, 'c': 3 } });
- assert.deepEqual(actual, { 'a': { 'b': 2, 'c': 3 }, 'd': { 'e': 4 } });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.unset');
-
- (function() {
- QUnit.test('should not mutate values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2, 'c': 3 } },
- actual = fp.unset('a.b')(object);
-
- assert.deepEqual(object, { 'a': { 'b': 2, 'c': 3 } });
- assert.deepEqual(actual, { 'a': { 'c': 3 } });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.xorBy');
-
- (function() {
- QUnit.test('should have an argument order of `iteratee`, `array`, then `other`', function(assert) {
- assert.expect(1);
-
- var actual = fp.xorBy(Math.floor, [2.1, 1.2], [2.3, 3.4]);
- assert.deepEqual(actual, [1.2, 3.4]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- fp.xorBy(function() {
- args || (args = slice.call(arguments));
- })([2.1, 1.2], [2.3, 3.4]);
-
- assert.deepEqual(args, [2.3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.xorWith');
-
- (function() {
- QUnit.test('should have an argument order of `comparator`, `array`, then `values`', function(assert) {
- assert.expect(1);
-
- var actual = fp.xorWith(fp.eq)([2, 1])([2, 3]);
- assert.deepEqual(actual, [1, 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('with methods');
-
- _.each(['differenceWith', 'intersectionWith', 'xorWith'], function(methodName) {
- var func = fp[methodName];
-
- QUnit.test('`fp.' + methodName + '` should provide the correct `comparator` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- func(function() {
- args || (args = slice.call(arguments));
- })([2, 1])([2, 3]);
-
- assert.deepEqual(args, [2, 2]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.zip');
-
- (function() {
- QUnit.test('should zip together two arrays', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(fp.zip([1, 2])([3, 4]), [[1, 3], [2, 4]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.zipObject');
-
- (function() {
- QUnit.test('should zip together key/value arrays into an object', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(fp.zipObject(['a', 'b'])([1, 2]), { 'a': 1, 'b': 2 });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('fp.zipWith');
-
- (function() {
- QUnit.test('should zip arrays combining grouped elements with `iteratee`', function(assert) {
- assert.expect(1);
-
- var array1 = [1, 2, 3],
- array2 = [4, 5, 6],
- actual = fp.zipWith(add)(array1)(array2);
-
- assert.deepEqual(actual, [5, 7, 9]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.config.asyncRetries = 10;
- QUnit.config.hidepassed = true;
-
- if (!document) {
- QUnit.config.noglobals = true;
- QUnit.load();
- }
-}.call(this));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/test.js b/ecomp-portal-FE/client/bower_components/lodash/test/test.js
deleted file mode 100644
index b979b622..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/test.js
+++ /dev/null
@@ -1,26729 +0,0 @@
-;(function() {
-
- /** Used as a safe reference for `undefined` in pre-ES5 environments. */
- var undefined;
-
- /** Used to detect when a function becomes hot. */
- var HOT_COUNT = 150;
-
- /** Used as the size to cover large array optimizations. */
- var LARGE_ARRAY_SIZE = 200;
-
- /** Used as the `TypeError` message for "Functions" methods. */
- var FUNC_ERROR_TEXT = 'Expected a function';
-
- /** Used as references for various `Number` constants. */
- var MAX_SAFE_INTEGER = 9007199254740991,
- MAX_INTEGER = 1.7976931348623157e+308;
-
- /** Used as references for the maximum length and index of an array. */
- var MAX_ARRAY_LENGTH = 4294967295,
- MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1;
-
- /** `Object#toString` result references. */
- var funcTag = '[object Function]',
- numberTag = '[object Number]',
- objectTag = '[object Object]';
-
- /** Used as a reference to the global object. */
- var root = (typeof global == 'object' && global) || this;
-
- /** Used to store lodash to test for bad extensions/shims. */
- var lodashBizarro = root.lodashBizarro;
-
- /** Used for native method references. */
- var arrayProto = Array.prototype,
- funcProto = Function.prototype,
- objectProto = Object.prototype,
- numberProto = Number.prototype,
- stringProto = String.prototype;
-
- /** Method and object shortcuts. */
- var phantom = root.phantom,
- process = root.process,
- amd = root.define && define.amd,
- argv = process && process.argv,
- defineProperty = Object.defineProperty,
- document = !phantom && root.document,
- body = root.document && root.document.body,
- create = Object.create,
- fnToString = funcProto.toString,
- freeze = Object.freeze,
- getSymbols = Object.getOwnPropertySymbols,
- identity = function(value) { return value; },
- JSON = root.JSON,
- noop = function() {},
- objToString = objectProto.toString,
- params = argv,
- push = arrayProto.push,
- realm = {},
- slice = arrayProto.slice;
-
- var ArrayBuffer = root.ArrayBuffer,
- Buffer = root.Buffer,
- Promise = root.Promise,
- Map = root.Map,
- Set = root.Set,
- Symbol = root.Symbol,
- Uint8Array = root.Uint8Array,
- WeakMap = root.WeakMap,
- WeakSet = root.WeakSet;
-
- var arrayBuffer = ArrayBuffer ? new ArrayBuffer(2) : undefined,
- map = Map ? new Map : undefined,
- promise = Promise ? Promise.resolve(1) : undefined,
- set = Set ? new Set : undefined,
- symbol = Symbol ? Symbol('a') : undefined,
- weakMap = WeakMap ? new WeakMap : undefined,
- weakSet = WeakSet ? new WeakSet : undefined;
-
- /** Math helpers. */
- var add = function(x, y) { return x + y; },
- doubled = function(n) { return n * 2; },
- isEven = function(n) { return n % 2 == 0; },
- square = function(n) { return n * n; };
-
- /** Stub functions. */
- var stubA = function() { return 'a'; },
- stubB = function() { return 'b'; },
- stubC = function() { return 'c'; };
-
- var stubTrue = function() { return true; },
- stubFalse = function() { return false; };
-
- var stubNaN = function() { return NaN; },
- stubNull = function() { return null; };
-
- var stubZero = function() { return 0; },
- stubOne = function() { return 1; },
- stubTwo = function() { return 2; },
- stubThree = function() { return 3; },
- stubFour = function() { return 4; };
-
- var stubArray = function() { return []; },
- stubObject = function() { return {}; },
- stubString = function() { return ''; };
-
- /** List of latin-1 supplementary letters to basic latin letters. */
- var burredLetters = [
- '\xc0', '\xc1', '\xc2', '\xc3', '\xc4', '\xc5', '\xc6', '\xc7', '\xc8', '\xc9', '\xca', '\xcb', '\xcc', '\xcd', '\xce',
- '\xcf', '\xd0', '\xd1', '\xd2', '\xd3', '\xd4', '\xd5', '\xd6', '\xd8', '\xd9', '\xda', '\xdb', '\xdc', '\xdd', '\xde',
- '\xdf', '\xe0', '\xe1', '\xe2', '\xe3', '\xe4', '\xe5', '\xe6', '\xe7', '\xe8', '\xe9', '\xea', '\xeb', '\xec', '\xed', '\xee',
- '\xef', '\xf0', '\xf1', '\xf2', '\xf3', '\xf4', '\xf5', '\xf6', '\xf8', '\xf9', '\xfa', '\xfb', '\xfc', '\xfd', '\xfe', '\xff'
- ];
-
- /** List of combining diacritical marks. */
- var comboMarks = [
- '\u0300', '\u0301', '\u0302', '\u0303', '\u0304', '\u0305', '\u0306', '\u0307', '\u0308', '\u0309', '\u030a', '\u030b', '\u030c', '\u030d', '\u030e', '\u030f',
- '\u0310', '\u0311', '\u0312', '\u0313', '\u0314', '\u0315', '\u0316', '\u0317', '\u0318', '\u0319', '\u031a', '\u031b', '\u031c', '\u031d', '\u031e', '\u031f',
- '\u0320', '\u0321', '\u0322', '\u0323', '\u0324', '\u0325', '\u0326', '\u0327', '\u0328', '\u0329', '\u032a', '\u032b', '\u032c', '\u032d', '\u032e', '\u032f',
- '\u0330', '\u0331', '\u0332', '\u0333', '\u0334', '\u0335', '\u0336', '\u0337', '\u0338', '\u0339', '\u033a', '\u033b', '\u033c', '\u033d', '\u033e', '\u033f',
- '\u0340', '\u0341', '\u0342', '\u0343', '\u0344', '\u0345', '\u0346', '\u0347', '\u0348', '\u0349', '\u034a', '\u034b', '\u034c', '\u034d', '\u034e', '\u034f',
- '\u0350', '\u0351', '\u0352', '\u0353', '\u0354', '\u0355', '\u0356', '\u0357', '\u0358', '\u0359', '\u035a', '\u035b', '\u035c', '\u035d', '\u035e', '\u035f',
- '\u0360', '\u0361', '\u0362', '\u0363', '\u0364', '\u0365', '\u0366', '\u0367', '\u0368', '\u0369', '\u036a', '\u036b', '\u036c', '\u036d', '\u036e', '\u036f',
- '\ufe20', '\ufe21', '\ufe22', '\ufe23'
- ];
-
- /** List of `burredLetters` translated to basic latin letters. */
- var deburredLetters = [
- 'A', 'A', 'A', 'A', 'A', 'A', 'Ae', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I',
- 'I', 'D', 'N', 'O', 'O', 'O', 'O', 'O', 'O', 'U', 'U', 'U', 'U', 'Y', 'Th',
- 'ss', 'a', 'a', 'a', 'a', 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i',
- 'i', 'd', 'n', 'o', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u', 'u', 'y', 'th', 'y'
- ];
-
- /** Used to provide falsey values to methods. */
- var falsey = [, null, undefined, false, 0, NaN, ''];
-
- /** Used to specify the emoji style glyph variant of characters. */
- var emojiVar = '\ufe0f';
-
- /** Used to provide empty values to methods. */
- var empties = [[], {}].concat(falsey.slice(1));
-
- /** Used to test error objects. */
- var errors = [
- new Error,
- new EvalError,
- new RangeError,
- new ReferenceError,
- new SyntaxError,
- new TypeError,
- new URIError
- ];
-
- /** List of fitzpatrick modifiers. */
- var fitzModifiers = [
- '\ud83c\udffb',
- '\ud83c\udffc',
- '\ud83c\udffd',
- '\ud83c\udffe',
- '\ud83c\udfff'
- ];
-
- /** Used to provide primitive values to methods. */
- var primitives = [null, undefined, false, true, 1, NaN, 'a'];
-
- /** Used to check whether methods support typed arrays. */
- var typedArrays = [
- 'Float32Array',
- 'Float64Array',
- 'Int8Array',
- 'Int16Array',
- 'Int32Array',
- 'Uint8Array',
- 'Uint8ClampedArray',
- 'Uint16Array',
- 'Uint32Array'
- ];
-
- /** Used to check whether methods support array views. */
- var arrayViews = typedArrays.concat('DataView');
-
- /** The file path of the lodash file to test. */
- var filePath = (function() {
- var min = 2,
- result = params || [];
-
- if (phantom) {
- min = 0;
- result = params = phantom.args || require('system').args;
- }
- var last = result[result.length - 1];
- result = (result.length > min && !/test(?:\.js)?$/.test(last)) ? last : '../lodash.js';
-
- if (!amd) {
- try {
- result = require('fs').realpathSync(result);
- } catch (e) {}
-
- try {
- result = require.resolve(result);
- } catch (e) {}
- }
- return result;
- }());
-
- /** The `ui` object. */
- var ui = root.ui || (root.ui = {
- 'buildPath': filePath,
- 'loaderPath': '',
- 'isModularize': /\b(?:amd|commonjs|es|node|npm|(index|main)\.js)\b/.test(filePath),
- 'isStrict': /\bes\b/.test(filePath) || 'default' in require(filePath),
- 'urlParams': {}
- });
-
- /** The basename of the lodash file to test. */
- var basename = /[\w.-]+$/.exec(filePath)[0];
-
- /** Used to indicate testing a modularized build. */
- var isModularize = ui.isModularize;
-
- /** Detect if testing `npm` modules. */
- var isNpm = isModularize && /\bnpm\b/.test([ui.buildPath, ui.urlParams.build]);
-
- /** Detect if running in PhantomJS. */
- var isPhantom = phantom || (typeof callPhantom == 'function');
-
- /** Detect if lodash is in strict mode. */
- var isStrict = ui.isStrict;
-
- /*--------------------------------------------------------------------------*/
-
- // Leak to avoid sporadic `noglobals` fails on Edge in Sauce Labs.
- root.msWDfn = undefined;
-
- // Assign `setTimeout` to itself to avoid being flagged as a leak.
- setProperty(root, 'setTimeout', setTimeout);
-
- // Exit early if going to run tests in a PhantomJS web page.
- if (phantom && isModularize) {
- var page = require('webpage').create();
-
- page.onCallback = function(details) {
- var coverage = details.coverage;
- if (coverage) {
- var fs = require('fs'),
- cwd = fs.workingDirectory,
- sep = fs.separator;
-
- fs.write([cwd, 'coverage', 'coverage.json'].join(sep), JSON.stringify(coverage));
- }
- phantom.exit(details.failed ? 1 : 0);
- };
-
- page.onConsoleMessage = function(message) {
- console.log(message);
- };
-
- page.onInitialized = function() {
- page.evaluate(function() {
- document.addEventListener('DOMContentLoaded', function() {
- QUnit.done(function(details) {
- details.coverage = window.__coverage__;
- callPhantom(details);
- });
- });
- });
- };
-
- page.open(filePath, function(status) {
- if (status != 'success') {
- console.log('PhantomJS failed to load page: ' + filePath);
- phantom.exit(1);
- }
- });
-
- console.log('test.js invoked with arguments: ' + JSON.stringify(slice.call(params)));
- return;
- }
-
- /*--------------------------------------------------------------------------*/
-
- /** Used to test Web Workers. */
- var Worker = !(ui.isForeign || ui.isSauceLabs || isModularize) &&
- (document && document.origin != 'null') && root.Worker;
-
- /** Used to test host objects in IE. */
- try {
- var xml = new ActiveXObject('Microsoft.XMLDOM');
- } catch (e) {}
-
- /** Poison the free variable `root` in Node.js */
- try {
- defineProperty(global.root, 'root', {
- 'configurable': false,
- 'enumerable': false,
- 'get': function() { throw new ReferenceError; }
- });
- } catch (e) {}
-
- /** Load QUnit and extras. */
- var QUnit = root.QUnit || require('qunit-extras');
-
- /** Load stable Lodash. */
- var lodashStable = root.lodashStable;
- if (!lodashStable) {
- try {
- lodashStable = interopRequire('../node_modules/lodash/lodash.js');
- } catch (e) {
- console.log('Error: The stable lodash dev dependency should be at least a version behind master branch.');
- return;
- }
- lodashStable = lodashStable.noConflict();
- }
-
- /** The `lodash` function to test. */
- var _ = root._ || (root._ = interopRequire(filePath));
-
- /** Used to test pseudo private map caches. */
- var mapCaches = (function() {
- var MapCache = _.memoize.Cache;
- var result = {
- 'Hash': new MapCache().__data__.hash.constructor,
- 'MapCache': MapCache
- };
- _.isMatchWith({ 'a': 1 }, { 'a': 1 }, function() {
- var stack = lodashStable.last(arguments);
- result.ListCache = stack.__data__.constructor;
- result.Stack = stack.constructor;
- });
- return result;
- }());
-
- /** Used to detect instrumented istanbul code coverage runs. */
- var coverage = root.__coverage__ || root[lodashStable.findKey(root, function(value, key) {
- return /^(?:\$\$cov_\d+\$\$)$/.test(key);
- })];
-
- /** Used to test generator functions. */
- var generator = lodashStable.attempt(function() {
- return Function('return function*(){}');
- });
-
- /** Used to restore the `_` reference. */
- var oldDash = root._;
-
- /**
- * Used to check for problems removing whitespace. For a whitespace reference,
- * see [V8's unit test](https://code.google.com/p/v8/source/browse/branches/bleeding_edge/test/mjsunit/whitespaces.js).
- */
- var whitespace = lodashStable.filter([
- // Basic whitespace characters.
- ' ', '\t', '\x0b', '\f', '\xa0', '\ufeff',
-
- // Line terminators.
- '\n', '\r', '\u2028', '\u2029',
-
- // Unicode category "Zs" space separators.
- '\u1680', '\u180e', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004', '\u2005',
- '\u2006', '\u2007', '\u2008', '\u2009', '\u200a', '\u202f', '\u205f', '\u3000'
- ],
- function(chr) { return /\s/.exec(chr); })
- .join('');
-
- /**
- * Creates a custom error object.
- *
- * @private
- * @constructor
- * @param {string} message The error message.
- */
- function CustomError(message) {
- this.name = 'CustomError';
- this.message = message;
- }
-
- CustomError.prototype = lodashStable.create(Error.prototype, {
- 'constructor': CustomError
- });
-
- /**
- * Removes all own enumerable string keyed properties from a given object.
- *
- * @private
- * @param {Object} object The object to empty.
- */
- function emptyObject(object) {
- lodashStable.forOwn(object, function(value, key, object) {
- delete object[key];
- });
- }
-
- /**
- * Extracts the unwrapped value from its wrapper.
- *
- * @private
- * @param {Object} wrapper The wrapper to unwrap.
- * @returns {*} Returns the unwrapped value.
- */
- function getUnwrappedValue(wrapper) {
- var index = -1,
- actions = wrapper.__actions__,
- length = actions.length,
- result = wrapper.__wrapped__;
-
- while (++index < length) {
- var args = [result],
- action = actions[index];
-
- push.apply(args, action.args);
- result = action.func.apply(action.thisArg, args);
- }
- return result;
- }
-
- /**
- * Loads the module of `id`. If the module has an `exports.default`, the
- * exported default value is returned as the resolved module.
- *
- * @private
- * @param {string} id The identifier of the module to resolve.
- * @returns {*} Returns the resolved module.
- */
- function interopRequire(id) {
- var result = require(id);
- return 'default' in result ? result['default'] : result;
- }
-
- /**
- * Sets a non-enumerable property value on `object`.
- *
- * Note: This function is used to avoid a bug in older versions of V8 where
- * overwriting non-enumerable built-ins makes them enumerable.
- * See https://code.google.com/p/v8/issues/detail?id=1623
- *
- * @private
- * @param {Object} object The object modify.
- * @param {string} key The name of the property to set.
- * @param {*} value The property value.
- */
- function setProperty(object, key, value) {
- try {
- defineProperty(object, key, {
- 'configurable': true,
- 'enumerable': false,
- 'writable': true,
- 'value': value
- });
- } catch (e) {
- object[key] = value;
- }
- return object;
- }
-
- /**
- * Skips a given number of tests with a passing result.
- *
- * @private
- * @param {Object} assert The QUnit assert object.
- * @param {number} [count=1] The number of tests to skip.
- */
- function skipAssert(assert, count) {
- count || (count = 1);
- while (count--) {
- assert.ok(true, 'test skipped');
- }
- }
-
- /*--------------------------------------------------------------------------*/
-
- // Add bizarro values.
- (function() {
- if (document || (typeof require != 'function')) {
- return;
- }
- var nativeString = fnToString.call(toString),
- reToString = /toString/g;
-
- function createToString(funcName) {
- return lodashStable.constant(nativeString.replace(reToString, funcName));
- }
-
- // Allow bypassing native checks.
- setProperty(funcProto, 'toString', function wrapper() {
- setProperty(funcProto, 'toString', fnToString);
- var result = lodashStable.has(this, 'toString') ? this.toString() : fnToString.call(this);
- setProperty(funcProto, 'toString', wrapper);
- return result;
- });
-
- // Add prototype extensions.
- funcProto._method = noop;
-
- // Set bad shims.
- setProperty(Object, 'create', (function() {
- function object() {}
- return function(prototype) {
- if (lodashStable.isObject(prototype)) {
- object.prototype = prototype;
- var result = new object;
- object.prototype = undefined;
- }
- return result || {};
- };
- }()));
-
- setProperty(Object, 'getOwnPropertySymbols', undefined);
-
- var _propertyIsEnumerable = objectProto.propertyIsEnumerable;
- setProperty(objectProto, 'propertyIsEnumerable', function(key) {
- return !(key == 'valueOf' && this && this.valueOf === 1) && _propertyIsEnumerable.call(this, key);
- });
-
- if (Buffer) {
- defineProperty(root, 'Buffer', {
- 'configurable': true,
- 'enumerable': true,
- 'get': function get() {
- var caller = get.caller,
- name = caller ? caller.name : '';
-
- if (!(name == 'runInContext' || name.length == 1 || /\b_\.isBuffer\b/.test(caller))) {
- return Buffer;
- }
- }
- });
- }
- if (Map) {
- setProperty(root, 'Map', (function() {
- var count = 0;
- return function() {
- if (count++) {
- return new Map;
- }
- setProperty(root, 'Map', Map);
- return {};
- };
- }()));
-
- setProperty(root.Map, 'toString', createToString('Map'));
- }
- setProperty(root, 'Promise', noop);
- setProperty(root, 'Set', noop);
- setProperty(root, 'Symbol', undefined);
- setProperty(root, 'WeakMap', noop);
-
- // Fake `WinRTError`.
- setProperty(root, 'WinRTError', Error);
-
- // Clear cache so lodash can be reloaded.
- emptyObject(require.cache);
-
- // Load lodash and expose it to the bad extensions/shims.
- lodashBizarro = interopRequire(filePath);
- root._ = oldDash;
-
- // Restore built-in methods.
- setProperty(Object, 'create', create);
- setProperty(objectProto, 'propertyIsEnumerable', _propertyIsEnumerable);
- setProperty(root, 'Buffer', Buffer);
-
- if (getSymbols) {
- Object.getOwnPropertySymbols = getSymbols;
- } else {
- delete Object.getOwnPropertySymbols;
- }
- if (Map) {
- setProperty(root, 'Map', Map);
- } else {
- delete root.Map;
- }
- if (Promise) {
- setProperty(root, 'Promise', Promise);
- } else {
- delete root.Promise;
- }
- if (Set) {
- setProperty(root, 'Set', Set);
- } else {
- delete root.Set;
- }
- if (Symbol) {
- setProperty(root, 'Symbol', Symbol);
- } else {
- delete root.Symbol;
- }
- if (WeakMap) {
- setProperty(root, 'WeakMap', WeakMap);
- } else {
- delete root.WeakMap;
- }
- delete root.WinRTError;
- delete funcProto._method;
- }());
-
- // Add other realm values from the `vm` module.
- lodashStable.attempt(function() {
- lodashStable.assign(realm, require('vm').runInNewContext([
- '(function() {',
- ' var noop = function() {},',
- ' root = this;',
- '',
- ' var object = {',
- " 'ArrayBuffer': root.ArrayBuffer,",
- " 'arguments': (function() { return arguments; }(1, 2, 3)),",
- " 'array': [1],",
- " 'arrayBuffer': root.ArrayBuffer ? new root.ArrayBuffer : undefined,",
- " 'boolean': Object(false),",
- " 'date': new Date,",
- " 'errors': [new Error, new EvalError, new RangeError, new ReferenceError, new SyntaxError, new TypeError, new URIError],",
- " 'function': noop,",
- " 'map': root.Map ? new root.Map : undefined,",
- " 'nan': NaN,",
- " 'null': null,",
- " 'number': Object(0),",
- " 'object': { 'a': 1 },",
- " 'promise': root.Promise ? Promise.resolve(1) : undefined,",
- " 'regexp': /x/,",
- " 'set': root.Set ? new root.Set : undefined,",
- " 'string': Object('a'),",
- " 'symbol': root.Symbol ? root.Symbol() : undefined,",
- " 'undefined': undefined,",
- " 'weakMap': root.WeakMap ? new root.WeakMap : undefined,",
- " 'weakSet': root.WeakSet ? new root.WeakSet : undefined",
- ' };',
- '',
- " ['" + arrayViews.join("', '") + "'].forEach(function(type) {",
- ' var Ctor = root[type]',
- ' object[type] = Ctor;',
- ' object[type.toLowerCase()] = Ctor ? new Ctor(new ArrayBuffer(24)) : undefined;',
- ' });',
- '',
- ' return object;',
- '}())'
- ].join('\n')));
- });
-
- // Add other realm values from an iframe.
- lodashStable.attempt(function() {
- _._realm = realm;
-
- var iframe = document.createElement('iframe');
- iframe.frameBorder = iframe.height = iframe.width = 0;
- body.appendChild(iframe);
-
- var idoc = (idoc = iframe.contentDocument || iframe.contentWindow).document || idoc;
- idoc.write([
- '<script>',
- 'var _ = parent._;',
- '',
- ' var noop = function() {},',
- ' root = this;',
- '',
- 'var object = {',
- " 'ArrayBuffer': root.ArrayBuffer,",
- " 'arguments': (function() { return arguments; }(1, 2, 3)),",
- " 'array': [1],",
- " 'arrayBuffer': root.ArrayBuffer ? new root.ArrayBuffer : undefined,",
- " 'boolean': Object(false),",
- " 'date': new Date,",
- " 'errors': [new Error, new EvalError, new RangeError, new ReferenceError, new SyntaxError, new TypeError, new URIError],",
- " 'function': noop,",
- " 'map': root.Map ? new root.Map : undefined,",
- " 'nan': NaN,",
- " 'null': null,",
- " 'number': Object(0),",
- " 'object': { 'a': 1 },",
- " 'promise': root.Promise ? Promise.resolve(1) : undefined,",
- " 'regexp': /x/,",
- " 'set': root.Set ? new root.Set : undefined,",
- " 'string': Object('a'),",
- " 'symbol': root.Symbol ? root.Symbol() : undefined,",
- " 'undefined': undefined,",
- " 'weakMap': root.WeakMap ? new root.WeakMap : undefined,",
- " 'weakSet': root.WeakSet ? new root.WeakSet : undefined",
- '};',
- '',
- "_.each(['" + arrayViews.join("', '") + "'], function(type) {",
- ' var Ctor = root[type];',
- ' object[type] = Ctor;',
- ' object[type.toLowerCase()] = Ctor ? new Ctor(new ArrayBuffer(24)) : undefined;',
- '});',
- '',
- '_.assign(_._realm, object);',
- '<\/script>'
- ].join('\n'));
-
- idoc.close();
- delete _._realm;
- });
-
- // Add a web worker.
- lodashStable.attempt(function() {
- var worker = new Worker('./asset/worker.js?t=' + (+new Date));
- worker.addEventListener('message', function(e) {
- _._VERSION = e.data || '';
- }, false);
-
- worker.postMessage(ui.buildPath);
- });
-
- // Expose internal modules for better code coverage.
- lodashStable.attempt(function() {
- var path = require('path'),
- basePath = path.dirname(filePath);
-
- if (isModularize && !(amd || isNpm)) {
- lodashStable.each([
- 'baseEach',
- 'isIndex',
- 'isIterateeCall'
- ], function(funcName) {
- _['_' + funcName] = interopRequire(path.join(basePath, '_' + funcName));
- });
- }
- });
-
- /*--------------------------------------------------------------------------*/
-
- if (params) {
- console.log('Running lodash tests.');
- console.log('test.js invoked with arguments: ' + JSON.stringify(slice.call(params)));
- }
-
- QUnit.module(basename);
-
- (function() {
- QUnit.test('should support loading ' + basename + ' as the "lodash" module', function(assert) {
- assert.expect(1);
-
- if (amd) {
- assert.strictEqual((lodashModule || {}).moduleName, 'lodash');
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should support loading ' + basename + ' with the Require.js "shim" configuration option', function(assert) {
- assert.expect(1);
-
- if (amd && lodashStable.includes(ui.loaderPath, 'requirejs')) {
- assert.strictEqual((shimmedModule || {}).moduleName, 'shimmed');
- } else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should support loading ' + basename + ' as the "underscore" module', function(assert) {
- assert.expect(1);
-
- if (amd) {
- assert.strictEqual((underscoreModule || {}).moduleName, 'underscore');
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should support loading ' + basename + ' in a web worker', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- if (Worker) {
- var limit = 30000 / QUnit.config.asyncRetries,
- start = +new Date;
-
- var attempt = function() {
- var actual = _._VERSION;
- if ((new Date - start) < limit && typeof actual != 'string') {
- setTimeout(attempt, 16);
- return;
- }
- assert.strictEqual(actual, _.VERSION);
- done();
- };
-
- attempt();
- }
- else {
- skipAssert(assert);
- done();
- }
- });
-
- QUnit.test('should not add `Function.prototype` extensions to lodash', function(assert) {
- assert.expect(1);
-
- if (lodashBizarro) {
- assert.notOk('_method' in lodashBizarro);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should avoid non-native built-ins', function(assert) {
- assert.expect(7);
-
- function message(lodashMethod, nativeMethod) {
- return '`' + lodashMethod + '` should avoid overwritten native `' + nativeMethod + '`';
- }
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var object = { 'a': 1 },
- otherObject = { 'b': 2 },
- largeArray = lodashStable.times(LARGE_ARRAY_SIZE, lodashStable.constant(object));
-
- if (lodashBizarro) {
- try {
- var actual = lodashBizarro.keysIn(new Foo).sort();
- } catch (e) {
- actual = null;
- }
- var label = message('_.keysIn', 'Object#propertyIsEnumerable');
- assert.deepEqual(actual, ['a', 'b'], label);
-
- try {
- var actual = lodashBizarro.isEmpty({});
- } catch (e) {
- actual = null;
- }
- var label = message('_.isEmpty', 'Object#propertyIsEnumerable');
- assert.strictEqual(actual, true, label);
-
- try {
- actual = [
- lodashBizarro.difference([object, otherObject], largeArray),
- lodashBizarro.intersection(largeArray, [object]),
- lodashBizarro.uniq(largeArray)
- ];
- } catch (e) {
- actual = null;
- }
- label = message('_.difference`, `_.intersection`, and `_.uniq', 'Object.create` and `Map');
- assert.deepEqual(actual, [[otherObject], [object], [object]], label);
-
- try {
- if (Symbol) {
- object[symbol] = {};
- }
- actual = [
- lodashBizarro.clone(object),
- lodashBizarro.cloneDeep(object)
- ];
- } catch (e) {
- actual = null;
- }
- label = message('_.clone` and `_.cloneDeep', 'Object.getOwnPropertySymbols');
- assert.deepEqual(actual, [object, object], label);
-
- try {
- var symObject = Object(symbol);
-
- // Avoid symbol detection in Babel's `typeof` helper.
- symObject.constructor = Object;
-
- actual = [
- Symbol ? lodashBizarro.clone(symObject) : { 'constructor': Object },
- Symbol ? lodashBizarro.isEqual(symObject, Object(symbol)) : false,
- Symbol ? lodashBizarro.toString(symObject) : ''
- ];
- } catch (e) {
- actual = null;
- }
- label = message('_.clone`, `_.isEqual`, and `_.toString', 'Symbol');
- assert.deepEqual(actual, [{ 'constructor': Object }, false, ''], label);
-
- try {
- var map = new lodashBizarro.memoize.Cache;
- actual = map.set('a', 1).get('a');
- } catch (e) {
- actual = null;
- }
- label = message('_.memoize.Cache', 'Map');
- assert.deepEqual(actual, 1, label);
-
- try {
- map = new (Map || Object);
- if (Symbol && Symbol.iterator) {
- map[Symbol.iterator] = null;
- }
- actual = lodashBizarro.toArray(map);
- } catch (e) {
- actual = null;
- }
- label = message('_.toArray', 'Map');
- assert.deepEqual(actual, [], label);
- }
- else {
- skipAssert(assert, 7);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('isIndex');
-
- (function() {
- var func = _._isIndex;
-
- QUnit.test('should return `true` for indexes', function(assert) {
- assert.expect(1);
-
- if (func) {
- var values = [[0], ['0'], ['1'], [3, 4], [MAX_SAFE_INTEGER - 1]],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(args) {
- return func.apply(undefined, args);
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for non-indexes', function(assert) {
- assert.expect(1);
-
- if (func) {
- var values = [['1abc'], ['07'], ['0001'], [-1], [3, 3], [1.1], [MAX_SAFE_INTEGER]],
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(args) {
- return func.apply(undefined, args);
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('isIterateeCall');
-
- (function() {
- var array = [1],
- func = _._isIterateeCall,
- object = { 'a': 1 };
-
- QUnit.test('should return `true` for iteratee calls', function(assert) {
- assert.expect(3);
-
- function Foo() {}
- Foo.prototype.a = 1;
-
- if (func) {
- assert.strictEqual(func(1, 0, array), true);
- assert.strictEqual(func(1, 'a', object), true);
- assert.strictEqual(func(1, 'a', new Foo), true);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should return `false` for non-iteratee calls', function(assert) {
- assert.expect(4);
-
- if (func) {
- assert.strictEqual(func(2, 0, array), false);
- assert.strictEqual(func(1, 1.1, array), false);
- assert.strictEqual(func(1, 0, { 'length': MAX_SAFE_INTEGER + 1 }), false);
- assert.strictEqual(func(1, 'b', object), false);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should work with `NaN` values', function(assert) {
- assert.expect(2);
-
- if (func) {
- assert.strictEqual(func(NaN, 0, [NaN]), true);
- assert.strictEqual(func(NaN, 'a', { 'a': NaN }), true);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should not error when `index` is an object without a `toString` method', function(assert) {
- assert.expect(1);
-
- if (func) {
- try {
- var actual = func(1, { 'toString': null }, [1]);
- } catch (e) {
- var message = e.message;
- }
- assert.strictEqual(actual, false, message || '');
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('map caches');
-
- (function() {
- var keys = [null, undefined, false, true, 1, -Infinity, NaN, {}, 'a', symbol || noop];
-
- var pairs = lodashStable.map(keys, function(key, index) {
- var lastIndex = keys.length - 1;
- return [key, keys[lastIndex - index]];
- });
-
- var largeStack = new mapCaches.Stack(pairs);
-
- lodashStable.times(LARGE_ARRAY_SIZE - pairs.length + 1, function() {
- largeStack.set({}, {});
- });
-
- var caches = {
- 'hashes': new mapCaches.Hash(pairs),
- 'list caches': new mapCaches.ListCache(pairs),
- 'map caches': new mapCaches.MapCache(pairs),
- 'stack caches': new mapCaches.Stack(pairs),
- 'large stacks': largeStack
- };
-
- lodashStable.forOwn(caches, function(cache, key) {
- QUnit.test('should implement a `Map` interface for ' + key, function(assert) {
- assert.expect(82);
-
- lodashStable.each(keys, function(key, index) {
- var value = pairs[index][1];
-
- assert.deepEqual(cache.get(key), value);
- assert.strictEqual(cache.has(key), true);
- assert.strictEqual(cache['delete'](key), true);
- assert.strictEqual(cache.has(key), false);
- assert.strictEqual(cache.get(key), undefined);
- assert.strictEqual(cache['delete'](key), false);
- assert.strictEqual(cache.set(key, value), cache);
- assert.strictEqual(cache.has(key), true);
- });
-
- assert.strictEqual(cache.clear(), undefined);
- assert.ok(lodashStable.every(keys, function(key) {
- return !cache.has(key);
- }));
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash constructor');
-
- (function() {
- var values = empties.concat(true, 1, 'a'),
- expected = lodashStable.map(values, stubTrue);
-
- QUnit.test('should create a new instance when called without the `new` operator', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = lodashStable.map(values, function(value) {
- return _(value) instanceof _;
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return the given `lodash` instances', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = lodashStable.map(values, function(value) {
- var wrapped = _(value);
- return _(wrapped) === wrapped;
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should convert foreign wrapped values to `lodash` instances', function(assert) {
- assert.expect(1);
-
- if (!isNpm && lodashBizarro) {
- var actual = lodashStable.map(values, function(value) {
- var wrapped = _(lodashBizarro(value)),
- unwrapped = wrapped.value();
-
- return wrapped instanceof _ &&
- ((unwrapped === value) || (unwrapped !== unwrapped && value !== value));
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.add');
-
- (function() {
- QUnit.test('should add two numbers', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.add(6, 4), 10);
- assert.strictEqual(_.add(-6, 4), -2);
- assert.strictEqual(_.add(-6, -4), -10);
- });
-
- QUnit.test('should not coerce arguments to numbers', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.add('6', '4'), '64');
- assert.strictEqual(_.add('x', 'y'), 'xy');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.after');
-
- (function() {
- function after(n, times) {
- var count = 0;
- lodashStable.times(times, _.after(n, function() { count++; }));
- return count;
- }
-
- QUnit.test('should create a function that invokes `func` after `n` calls', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(after(5, 5), 1, 'after(n) should invoke `func` after being called `n` times');
- assert.strictEqual(after(5, 4), 0, 'after(n) should not invoke `func` before being called `n` times');
- assert.strictEqual(after(0, 0), 0, 'after(0) should not invoke `func` immediately');
- assert.strictEqual(after(0, 1), 1, 'after(0) should invoke `func` when called once');
- });
-
- QUnit.test('should coerce `n` values of `NaN` to `0`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(after(NaN, 1), 1);
- });
-
- QUnit.test('should not set a `this` binding', function(assert) {
- assert.expect(2);
-
- var after = _.after(1, function(assert) { return ++this.count; }),
- object = { 'after': after, 'count': 0 };
-
- object.after();
- assert.strictEqual(object.after(), 2);
- assert.strictEqual(object.count, 2);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.ary');
-
- (function() {
- function fn(a, b, c) {
- return slice.call(arguments);
- }
-
- QUnit.test('should cap the number of arguments provided to `func`', function(assert) {
- assert.expect(2);
-
- var actual = lodashStable.map(['6', '8', '10'], _.ary(parseInt, 1));
- assert.deepEqual(actual, [6, 8, 10]);
-
- var capped = _.ary(fn, 2);
- assert.deepEqual(capped('a', 'b', 'c', 'd'), ['a', 'b']);
- });
-
- QUnit.test('should use `func.length` if `n` is not given', function(assert) {
- assert.expect(1);
-
- var capped = _.ary(fn);
- assert.deepEqual(capped('a', 'b', 'c', 'd'), ['a', 'b', 'c']);
- });
-
- QUnit.test('should treat a negative `n` as `0`', function(assert) {
- assert.expect(1);
-
- var capped = _.ary(fn, -1);
-
- try {
- var actual = capped('a');
- } catch (e) {}
-
- assert.deepEqual(actual, []);
- });
-
- QUnit.test('should coerce `n` to an integer', function(assert) {
- assert.expect(1);
-
- var values = ['1', 1.6, 'xyz'],
- expected = [['a'], ['a'], []];
-
- var actual = lodashStable.map(values, function(n) {
- var capped = _.ary(fn, n);
- return capped('a', 'b');
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work when given less than the capped number of arguments', function(assert) {
- assert.expect(1);
-
- var capped = _.ary(fn, 3);
- assert.deepEqual(capped('a'), ['a']);
- });
-
- QUnit.test('should use the existing `ary` if smaller', function(assert) {
- assert.expect(1);
-
- var capped = _.ary(_.ary(fn, 1), 2);
- assert.deepEqual(capped('a', 'b', 'c'), ['a']);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var funcs = lodashStable.map([fn], _.ary),
- actual = funcs[0]('a', 'b', 'c');
-
- assert.deepEqual(actual, ['a', 'b', 'c']);
- });
-
- QUnit.test('should work when combined with other methods that use metadata', function(assert) {
- assert.expect(2);
-
- var array = ['a', 'b', 'c'],
- includes = _.curry(_.rearg(_.ary(_.includes, 2), 1, 0), 2);
-
- assert.strictEqual(includes('b')(array, 2), true);
-
- if (!isNpm) {
- includes = _(_.includes).ary(2).rearg(1, 0).curry(2).value();
- assert.strictEqual(includes('b')(array, 2), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.assignIn');
-
- (function() {
- QUnit.test('should be aliased', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.extend, _.assignIn);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.assign and lodash.assignIn');
-
- lodashStable.each(['assign', 'assignIn'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should assign source properties to `object`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func({ 'a': 1 }, { 'b': 2 }), { 'a': 1, 'b': 2 });
- });
-
- QUnit.test('`_.' + methodName + '` should accept multiple sources', function(assert) {
- assert.expect(2);
-
- var expected = { 'a': 1, 'b': 2, 'c': 3 };
- assert.deepEqual(func({ 'a': 1 }, { 'b': 2 }, { 'c': 3 }), expected);
- assert.deepEqual(func({ 'a': 1 }, { 'b': 2, 'c': 2 }, { 'c': 3 }), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should overwrite destination properties', function(assert) {
- assert.expect(1);
-
- var expected = { 'a': 3, 'b': 2, 'c': 1 };
- assert.deepEqual(func({ 'a': 1, 'b': 2 }, expected), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should assign source properties with nullish values', function(assert) {
- assert.expect(1);
-
- var expected = { 'a': null, 'b': undefined, 'c': null };
- assert.deepEqual(func({ 'a': 1, 'b': 2 }, expected), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should skip assignments if values are the same', function(assert) {
- assert.expect(1);
-
- var object = {};
-
- var descriptor = {
- 'configurable': true,
- 'enumerable': true,
- 'set': function() { throw new Error; }
- };
-
- var source = {
- 'a': 1,
- 'b': undefined,
- 'c': NaN,
- 'd': undefined,
- 'constructor': Object,
- 'toString': lodashStable.constant('source')
- };
-
- defineProperty(object, 'a', lodashStable.assign({}, descriptor, {
- 'get': stubOne
- }));
-
- defineProperty(object, 'b', lodashStable.assign({}, descriptor, {
- 'get': noop
- }));
-
- defineProperty(object, 'c', lodashStable.assign({}, descriptor, {
- 'get': stubNaN
- }));
-
- defineProperty(object, 'constructor', lodashStable.assign({}, descriptor, {
- 'get': lodashStable.constant(Object)
- }));
-
- try {
- var actual = func(object, source);
- } catch (e) {}
-
- assert.deepEqual(actual, source);
- });
-
- QUnit.test('`_.' + methodName + '` should treat sparse array sources as dense', function(assert) {
- assert.expect(1);
-
- var array = [1];
- array[2] = 3;
-
- assert.deepEqual(func({}, array), { '0': 1, '1': undefined, '2': 3 });
- });
-
- QUnit.test('`_.' + methodName + '` should assign values of prototype objects', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.prototype.a = 1;
-
- assert.deepEqual(func({}, Foo.prototype), { 'a': 1 });
- });
-
- QUnit.test('`_.' + methodName + '` should coerce string sources to objects', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func({}, 'a'), { '0': 'a' });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.assignInWith');
-
- (function() {
- QUnit.test('should be aliased', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.extendWith, _.assignInWith);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.assignWith and lodash.assignInWith');
-
- lodashStable.each(['assignWith', 'assignInWith'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should work with a `customizer` callback', function(assert) {
- assert.expect(1);
-
- var actual = func({ 'a': 1, 'b': 2 }, { 'a': 3, 'c': 3 }, function(a, b) {
- return a === undefined ? b : a;
- });
-
- assert.deepEqual(actual, { 'a': 1, 'b': 2, 'c': 3 });
- });
-
- QUnit.test('`_.' + methodName + '` should work with a `customizer` that returns `undefined`', function(assert) {
- assert.expect(1);
-
- var expected = { 'a': undefined };
- assert.deepEqual(func({}, expected, noop), expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.at');
-
- (function() {
- var args = arguments,
- array = ['a', 'b', 'c'],
- object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
-
- QUnit.test('should return the elements corresponding to the specified keys', function(assert) {
- assert.expect(1);
-
- var actual = _.at(array, [0, 2]);
- assert.deepEqual(actual, ['a', 'c']);
- });
-
- QUnit.test('should return `undefined` for nonexistent keys', function(assert) {
- assert.expect(1);
-
- var actual = _.at(array, [2, 4, 0]);
- assert.deepEqual(actual, ['c', undefined, 'a']);
- });
-
- QUnit.test('should work with non-index keys on array values', function(assert) {
- assert.expect(1);
-
- var values = lodashStable.reject(empties, function(value) {
- return (value === 0) || lodashStable.isArray(value);
- }).concat(-1, 1.1);
-
- var array = lodashStable.transform(values, function(result, value) {
- result[value] = 1;
- }, []);
-
- var expected = lodashStable.map(values, stubOne),
- actual = _.at(array, values);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return an empty array when no keys are given', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(_.at(array), []);
- assert.deepEqual(_.at(array, [], []), []);
- });
-
- QUnit.test('should accept multiple key arguments', function(assert) {
- assert.expect(1);
-
- var actual = _.at(['a', 'b', 'c', 'd'], 3, 0, 2);
- assert.deepEqual(actual, ['d', 'a', 'c']);
- });
-
- QUnit.test('should work with a falsey `object` argument when keys are given', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, lodashStable.constant(Array(4)));
-
- var actual = lodashStable.map(falsey, function(object) {
- try {
- return _.at(object, 0, 1, 'pop', 'push');
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with an `arguments` object for `object`', function(assert) {
- assert.expect(1);
-
- var actual = _.at(args, [2, 0]);
- assert.deepEqual(actual, [3, 1]);
- });
-
- QUnit.test('should work with `arguments` object as secondary arguments', function(assert) {
- assert.expect(1);
-
- var actual = _.at([1, 2, 3, 4, 5], args);
- assert.deepEqual(actual, [2, 3, 4]);
- });
-
- QUnit.test('should work with an object for `object`', function(assert) {
- assert.expect(1);
-
- var actual = _.at(object, ['a[0].b.c', 'a[1]']);
- assert.deepEqual(actual, [3, 4]);
- });
-
- QUnit.test('should pluck inherited property values', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var actual = _.at(new Foo, 'b');
- assert.deepEqual(actual, [2]);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- var largeArray = lodashStable.range(LARGE_ARRAY_SIZE),
- smallArray = array;
-
- lodashStable.each([[2], ['2'], [2, 1]], function(paths) {
- lodashStable.times(2, function(index) {
- var array = index ? largeArray : smallArray,
- wrapped = _(array).map(identity).at(paths);
-
- assert.deepEqual(wrapped.value(), _.at(_.map(array, identity), paths));
- });
- });
- }
- else {
- skipAssert(assert, 6);
- }
- });
-
- QUnit.test('should support shortcut fusion', function(assert) {
- assert.expect(8);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- count = 0,
- iteratee = function(value) { count++; return square(value); },
- lastIndex = LARGE_ARRAY_SIZE - 1;
-
- lodashStable.each([lastIndex, lastIndex + '', LARGE_ARRAY_SIZE, []], function(n, index) {
- count = 0;
- var actual = _(array).map(iteratee).at(n).value(),
- expected = index < 2 ? 1 : 0;
-
- assert.strictEqual(count, expected);
-
- expected = index == 3 ? [] : [index == 2 ? undefined : square(lastIndex)];
- assert.deepEqual(actual, expected);
- });
- }
- else {
- skipAssert(assert, 8);
- }
- });
-
- QUnit.test('work with an object for `object` when chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var paths = ['a[0].b.c', 'a[1]'],
- actual = _(object).map(identity).at(paths).value();
-
- assert.deepEqual(actual, _.at(_.map(object, identity), paths));
-
- var indexObject = { '0': 1 };
- actual = _(indexObject).at(0).value();
- assert.deepEqual(actual, _.at(indexObject, 0));
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.attempt');
-
- (function() {
- QUnit.test('should return the result of `func`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.attempt(lodashStable.constant('x')), 'x');
- });
-
- QUnit.test('should provide additional arguments to `func`', function(assert) {
- assert.expect(1);
-
- var actual = _.attempt(function() { return slice.call(arguments); }, 1, 2);
- assert.deepEqual(actual, [1, 2]);
- });
-
- QUnit.test('should return the caught error', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(errors, stubTrue);
-
- var actual = lodashStable.map(errors, function(error) {
- return _.attempt(function() { throw error; }) === error;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should coerce errors to error objects', function(assert) {
- assert.expect(1);
-
- var actual = _.attempt(function() { throw 'x'; });
- assert.ok(lodashStable.isEqual(actual, Error('x')));
- });
-
- QUnit.test('should preserve custom errors', function(assert) {
- assert.expect(1);
-
- var actual = _.attempt(function() { throw new CustomError('x'); });
- assert.ok(actual instanceof CustomError);
- });
-
- QUnit.test('should work with an error object from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.errors) {
- var expected = lodashStable.map(realm.errors, stubTrue);
-
- var actual = lodashStable.map(realm.errors, function(error) {
- return _.attempt(function() { throw error; }) === error;
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.strictEqual(_(lodashStable.constant('x')).attempt(), 'x');
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(lodashStable.constant('x')).chain().attempt() instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.before');
-
- (function() {
- function before(n, times) {
- var count = 0;
- lodashStable.times(times, _.before(n, function() { count++; }));
- return count;
- }
-
- QUnit.test('should create a function that invokes `func` after `n` calls', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(before(5, 4), 4, 'before(n) should invoke `func` before being called `n` times');
- assert.strictEqual(before(5, 6), 4, 'before(n) should not invoke `func` after being called `n - 1` times');
- assert.strictEqual(before(0, 0), 0, 'before(0) should not invoke `func` immediately');
- assert.strictEqual(before(0, 1), 0, 'before(0) should not invoke `func` when called');
- });
-
- QUnit.test('should coerce `n` values of `NaN` to `0`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(before(NaN, 1), 0);
- });
-
- QUnit.test('should not set a `this` binding', function(assert) {
- assert.expect(2);
-
- var before = _.before(2, function(assert) { return ++this.count; }),
- object = { 'before': before, 'count': 0 };
-
- object.before();
- assert.strictEqual(object.before(), 1);
- assert.strictEqual(object.count, 1);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.bind');
-
- (function() {
- function fn() {
- var result = [this];
- push.apply(result, arguments);
- return result;
- }
-
- QUnit.test('should bind a function to an object', function(assert) {
- assert.expect(1);
-
- var object = {},
- bound = _.bind(fn, object);
-
- assert.deepEqual(bound('a'), [object, 'a']);
- });
-
- QUnit.test('should accept a falsey `thisArg` argument', function(assert) {
- assert.expect(1);
-
- var values = lodashStable.reject(falsey.slice(1), function(value) { return value == null; }),
- expected = lodashStable.map(values, function(value) { return [value]; });
-
- var actual = lodashStable.map(values, function(value) {
- try {
- var bound = _.bind(fn, value);
- return bound();
- } catch (e) {}
- });
-
- assert.ok(lodashStable.every(actual, function(value, index) {
- return lodashStable.isEqual(value, expected[index]);
- }));
- });
-
- QUnit.test('should bind a function to nullish values', function(assert) {
- assert.expect(6);
-
- var bound = _.bind(fn, null),
- actual = bound('a');
-
- assert.ok((actual[0] === null) || (actual[0] && actual[0].Array));
- assert.strictEqual(actual[1], 'a');
-
- lodashStable.times(2, function(index) {
- bound = index ? _.bind(fn, undefined) : _.bind(fn);
- actual = bound('b');
-
- assert.ok((actual[0] === undefined) || (actual[0] && actual[0].Array));
- assert.strictEqual(actual[1], 'b');
- });
- });
-
- QUnit.test('should partially apply arguments ', function(assert) {
- assert.expect(4);
-
- var object = {},
- bound = _.bind(fn, object, 'a');
-
- assert.deepEqual(bound(), [object, 'a']);
-
- bound = _.bind(fn, object, 'a');
- assert.deepEqual(bound('b'), [object, 'a', 'b']);
-
- bound = _.bind(fn, object, 'a', 'b');
- assert.deepEqual(bound(), [object, 'a', 'b']);
- assert.deepEqual(bound('c', 'd'), [object, 'a', 'b', 'c', 'd']);
- });
-
- QUnit.test('should support placeholders', function(assert) {
- assert.expect(4);
-
- var object = {},
- ph = _.bind.placeholder,
- bound = _.bind(fn, object, ph, 'b', ph);
-
- assert.deepEqual(bound('a', 'c'), [object, 'a', 'b', 'c']);
- assert.deepEqual(bound('a'), [object, 'a', 'b', undefined]);
- assert.deepEqual(bound('a', 'c', 'd'), [object, 'a', 'b', 'c', 'd']);
- assert.deepEqual(bound(), [object, undefined, 'b', undefined]);
- });
-
- QUnit.test('should use `_.placeholder` when set', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var _ph = _.placeholder = {},
- ph = _.bind.placeholder,
- object = {},
- bound = _.bind(fn, object, _ph, 'b', ph);
-
- assert.deepEqual(bound('a', 'c'), [object, 'a', 'b', ph, 'c']);
- delete _.placeholder;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should create a function with a `length` of `0`', function(assert) {
- assert.expect(2);
-
- var fn = function(a, b, c) {},
- bound = _.bind(fn, {});
-
- assert.strictEqual(bound.length, 0);
-
- bound = _.bind(fn, {}, 1);
- assert.strictEqual(bound.length, 0);
- });
-
- QUnit.test('should ignore binding when called with the `new` operator', function(assert) {
- assert.expect(3);
-
- function Foo() {
- return this;
- }
-
- var bound = _.bind(Foo, { 'a': 1 }),
- newBound = new bound;
-
- assert.strictEqual(bound().a, 1);
- assert.strictEqual(newBound.a, undefined);
- assert.ok(newBound instanceof Foo);
- });
-
- QUnit.test('should handle a number of arguments when called with the `new` operator', function(assert) {
- assert.expect(1);
-
- function Foo() {
- return this;
- }
-
- function Bar() {}
-
- var thisArg = { 'a': 1 },
- boundFoo = _.bind(Foo, thisArg),
- boundBar = _.bind(Bar, thisArg),
- count = 9,
- expected = lodashStable.times(count, lodashStable.constant([undefined, undefined]));
-
- var actual = lodashStable.times(count, function(index) {
- try {
- switch (index) {
- case 0: return [new boundFoo().a, new boundBar().a];
- case 1: return [new boundFoo(1).a, new boundBar(1).a];
- case 2: return [new boundFoo(1, 2).a, new boundBar(1, 2).a];
- case 3: return [new boundFoo(1, 2, 3).a, new boundBar(1, 2, 3).a];
- case 4: return [new boundFoo(1, 2, 3, 4).a, new boundBar(1, 2, 3, 4).a];
- case 5: return [new boundFoo(1, 2, 3, 4, 5).a, new boundBar(1, 2, 3, 4, 5).a];
- case 6: return [new boundFoo(1, 2, 3, 4, 5, 6).a, new boundBar(1, 2, 3, 4, 5, 6).a];
- case 7: return [new boundFoo(1, 2, 3, 4, 5, 6, 7).a, new boundBar(1, 2, 3, 4, 5, 6, 7).a];
- case 8: return [new boundFoo(1, 2, 3, 4, 5, 6, 7, 8).a, new boundBar(1, 2, 3, 4, 5, 6, 7, 8).a];
- }
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should ensure `new bound` is an instance of `func`', function(assert) {
- assert.expect(2);
-
- function Foo(value) {
- return value && object;
- }
-
- var bound = _.bind(Foo),
- object = {};
-
- assert.ok(new bound instanceof Foo);
- assert.strictEqual(new bound(true), object);
- });
-
- QUnit.test('should append array arguments to partially applied arguments', function(assert) {
- assert.expect(1);
-
- var object = {},
- bound = _.bind(fn, object, 'a');
-
- assert.deepEqual(bound(['b'], 'c'), [object, 'a', ['b'], 'c']);
- });
-
- QUnit.test('should not rebind functions', function(assert) {
- assert.expect(3);
-
- var object1 = {},
- object2 = {},
- object3 = {};
-
- var bound1 = _.bind(fn, object1),
- bound2 = _.bind(bound1, object2, 'a'),
- bound3 = _.bind(bound1, object3, 'b');
-
- assert.deepEqual(bound1(), [object1]);
- assert.deepEqual(bound2(), [object1, 'a']);
- assert.deepEqual(bound3(), [object1, 'b']);
- });
-
- QUnit.test('should not error when instantiating bound built-ins', function(assert) {
- assert.expect(2);
-
- var Ctor = _.bind(Date, null),
- expected = new Date(2012, 4, 23, 0, 0, 0, 0);
-
- try {
- var actual = new Ctor(2012, 4, 23, 0, 0, 0, 0);
- } catch (e) {}
-
- assert.deepEqual(actual, expected);
-
- Ctor = _.bind(Date, null, 2012, 4, 23);
-
- try {
- actual = new Ctor(0, 0, 0, 0);
- } catch (e) {}
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not error when calling bound class constructors with the `new` operator', function(assert) {
- assert.expect(1);
-
- var createCtor = lodashStable.attempt(Function, '"use strict";return class A{}');
-
- if (typeof createCtor == 'function') {
- var bound = _.bind(createCtor()),
- count = 8,
- expected = lodashStable.times(count, stubTrue);
-
- var actual = lodashStable.times(count, function(index) {
- try {
- switch (index) {
- case 0: return !!(new bound);
- case 1: return !!(new bound(1));
- case 2: return !!(new bound(1, 2));
- case 3: return !!(new bound(1, 2, 3));
- case 4: return !!(new bound(1, 2, 3, 4));
- case 5: return !!(new bound(1, 2, 3, 4, 5));
- case 6: return !!(new bound(1, 2, 3, 4, 5, 6));
- case 7: return !!(new bound(1, 2, 3, 4, 5, 6, 7));
- }
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var object = {},
- bound = _(fn).bind({}, 'a', 'b');
-
- assert.ok(bound instanceof _);
-
- var actual = bound.value()('c');
- assert.deepEqual(actual, [object, 'a', 'b', 'c']);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.bindAll');
-
- (function() {
- var args = arguments;
-
- var source = {
- '_n0': -2,
- '_p0': -1,
- '_a': 1,
- '_b': 2,
- '_c': 3,
- '_d': 4,
- '-0': function() { return this._n0; },
- '0': function() { return this._p0; },
- 'a': function() { return this._a; },
- 'b': function() { return this._b; },
- 'c': function() { return this._c; },
- 'd': function() { return this._d; }
- };
-
- QUnit.test('should accept individual method names', function(assert) {
- assert.expect(1);
-
- var object = lodashStable.cloneDeep(source);
- _.bindAll(object, 'a', 'b');
-
- var actual = lodashStable.map(['a', 'b', 'c'], function(key) {
- return object[key].call({});
- });
-
- assert.deepEqual(actual, [1, 2, undefined]);
- });
-
- QUnit.test('should accept arrays of method names', function(assert) {
- assert.expect(1);
-
- var object = lodashStable.cloneDeep(source);
- _.bindAll(object, ['a', 'b'], ['c']);
-
- var actual = lodashStable.map(['a', 'b', 'c', 'd'], function(key) {
- return object[key].call({});
- });
-
- assert.deepEqual(actual, [1, 2, 3, undefined]);
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var props = [-0, Object(-0), 0, Object(0)];
-
- var actual = lodashStable.map(props, function(key) {
- var object = lodashStable.cloneDeep(source);
- _.bindAll(object, key);
- return object[lodashStable.toString(key)].call({});
- });
-
- assert.deepEqual(actual, [-2, -2, -1, -1]);
- });
-
- QUnit.test('should work with an array `object` argument', function(assert) {
- assert.expect(1);
-
- var array = ['push', 'pop'];
- _.bindAll(array);
- assert.strictEqual(array.pop, arrayProto.pop);
- });
-
- QUnit.test('should work with `arguments` objects as secondary arguments', function(assert) {
- assert.expect(1);
-
- var object = lodashStable.cloneDeep(source);
- _.bindAll(object, args);
-
- var actual = lodashStable.map(args, function(key) {
- return object[key].call({});
- });
-
- assert.deepEqual(actual, [1]);
- });
- }('a'));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.bindKey');
-
- (function() {
- QUnit.test('should work when the target function is overwritten', function(assert) {
- assert.expect(2);
-
- var object = {
- 'user': 'fred',
- 'greet': function(greeting) {
- return this.user + ' says: ' + greeting;
- }
- };
-
- var bound = _.bindKey(object, 'greet', 'hi');
- assert.strictEqual(bound(), 'fred says: hi');
-
- object.greet = function(greeting) {
- return this.user + ' says: ' + greeting + '!';
- };
-
- assert.strictEqual(bound(), 'fred says: hi!');
- });
-
- QUnit.test('should support placeholders', function(assert) {
- assert.expect(4);
-
- var object = {
- 'fn': function() {
- return slice.call(arguments);
- }
- };
-
- var ph = _.bindKey.placeholder,
- bound = _.bindKey(object, 'fn', ph, 'b', ph);
-
- assert.deepEqual(bound('a', 'c'), ['a', 'b', 'c']);
- assert.deepEqual(bound('a'), ['a', 'b', undefined]);
- assert.deepEqual(bound('a', 'c', 'd'), ['a', 'b', 'c', 'd']);
- assert.deepEqual(bound(), [undefined, 'b', undefined]);
- });
-
- QUnit.test('should use `_.placeholder` when set', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var object = {
- 'fn': function() {
- return slice.call(arguments);
- }
- };
-
- var _ph = _.placeholder = {},
- ph = _.bindKey.placeholder,
- bound = _.bindKey(object, 'fn', _ph, 'b', ph);
-
- assert.deepEqual(bound('a', 'c'), ['a', 'b', ph, 'c']);
- delete _.placeholder;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should ensure `new bound` is an instance of `object[key]`', function(assert) {
- assert.expect(2);
-
- function Foo(value) {
- return value && object;
- }
-
- var object = { 'Foo': Foo },
- bound = _.bindKey(object, 'Foo');
-
- assert.ok(new bound instanceof Foo);
- assert.strictEqual(new bound(true), object);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('case methods');
-
- lodashStable.each(['camel', 'kebab', 'lower', 'snake', 'start', 'upper'], function(caseName) {
- var methodName = caseName + 'Case',
- func = _[methodName];
-
- var strings = [
- 'foo bar', 'Foo bar', 'foo Bar', 'Foo Bar',
- 'FOO BAR', 'fooBar', '--foo-bar--', '__foo_bar__'
- ];
-
- var converted = (function() {
- switch (caseName) {
- case 'camel': return 'fooBar';
- case 'kebab': return 'foo-bar';
- case 'lower': return 'foo bar';
- case 'snake': return 'foo_bar';
- case 'start': return 'Foo Bar';
- case 'upper': return 'FOO BAR';
- }
- }());
-
- QUnit.test('`_.' + methodName + '` should convert `string` to ' + caseName + ' case', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(strings, function(string) {
- var expected = (caseName == 'start' && string == 'FOO BAR') ? string : converted;
- return func(string) === expected;
- });
-
- assert.deepEqual(actual, lodashStable.map(strings, stubTrue));
- });
-
- QUnit.test('`_.' + methodName + '` should handle double-converting strings', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(strings, function(string) {
- var expected = (caseName == 'start' && string == 'FOO BAR') ? string : converted;
- return func(func(string)) === expected;
- });
-
- assert.deepEqual(actual, lodashStable.map(strings, stubTrue));
- });
-
- QUnit.test('`_.' + methodName + '` should deburr letters', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(burredLetters, function(burred, index) {
- var letter = deburredLetters[index];
- if (caseName == 'start') {
- letter = lodashStable.capitalize(letter);
- } else if (caseName == 'upper') {
- letter = letter.toUpperCase();
- } else {
- letter = letter.toLowerCase();
- }
- return func(burred) === letter;
- });
-
- assert.deepEqual(actual, lodashStable.map(burredLetters, stubTrue));
- });
-
- QUnit.test('`_.' + methodName + '` should remove contraction apostrophes', function(assert) {
- assert.expect(2);
-
- var postfixes = ['d', 'll', 'm', 're', 's', 't', 've'];
-
- lodashStable.each(["'", '\u2019'], function(apos) {
- var actual = lodashStable.map(postfixes, function(postfix) {
- return func('a b' + apos + postfix + ' c');
- });
-
- var expected = lodashStable.map(postfixes, function(postfix) {
- switch (caseName) {
- case 'camel': return 'aB' + postfix + 'C';
- case 'kebab': return 'a-b' + postfix + '-c';
- case 'lower': return 'a b' + postfix + ' c';
- case 'snake': return 'a_b' + postfix + '_c';
- case 'start': return 'A B' + postfix + ' C';
- case 'upper': return 'A B' + postfix.toUpperCase() + ' C';
- }
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should remove latin-1 mathematical operators', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(['\xd7', '\xf7'], func);
- assert.deepEqual(actual, ['', '']);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `string` to a string', function(assert) {
- assert.expect(2);
-
- var string = 'foo bar';
- assert.strictEqual(func(Object(string)), converted);
- assert.strictEqual(func({ 'toString': lodashStable.constant(string) }), converted);
- });
-
- QUnit.test('`_.' + methodName + '` should return an unwrapped value implicitly when chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.strictEqual(_('foo bar')[methodName](), converted);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_('foo bar').chain()[methodName]() instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- (function() {
- QUnit.test('should get the original value after cycling through all case methods', function(assert) {
- assert.expect(1);
-
- var funcs = [_.camelCase, _.kebabCase, _.lowerCase, _.snakeCase, _.startCase, _.lowerCase, _.camelCase];
-
- var actual = lodashStable.reduce(funcs, function(result, func) {
- return func(result);
- }, 'enable 6h format');
-
- assert.strictEqual(actual, 'enable6HFormat');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.camelCase');
-
- (function() {
- QUnit.test('should work with numbers', function(assert) {
- assert.expect(6);
-
- assert.strictEqual(_.camelCase('12 feet'), '12Feet');
- assert.strictEqual(_.camelCase('enable 6h format'), 'enable6HFormat');
- assert.strictEqual(_.camelCase('enable 24H format'), 'enable24HFormat');
- assert.strictEqual(_.camelCase('too legit 2 quit'), 'tooLegit2Quit');
- assert.strictEqual(_.camelCase('walk 500 miles'), 'walk500Miles');
- assert.strictEqual(_.camelCase('xhr2 request'), 'xhr2Request');
- });
-
- QUnit.test('should handle acronyms', function(assert) {
- assert.expect(6);
-
- lodashStable.each(['safe HTML', 'safeHTML'], function(string) {
- assert.strictEqual(_.camelCase(string), 'safeHtml');
- });
-
- lodashStable.each(['escape HTML entities', 'escapeHTMLEntities'], function(string) {
- assert.strictEqual(_.camelCase(string), 'escapeHtmlEntities');
- });
-
- lodashStable.each(['XMLHttpRequest', 'XmlHTTPRequest'], function(string) {
- assert.strictEqual(_.camelCase(string), 'xmlHttpRequest');
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.capitalize');
-
- (function() {
- QUnit.test('should capitalize the first character of a string', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.capitalize('fred'), 'Fred');
- assert.strictEqual(_.capitalize('Fred'), 'Fred');
- assert.strictEqual(_.capitalize(' fred'), ' fred');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.castArray');
-
- (function() {
- QUnit.test('should wrap non-array items in an array', function(assert) {
- assert.expect(1);
-
- var values = falsey.concat(true, 1, 'a', { 'a': 1 }),
- expected = lodashStable.map(values, function(value) { return [value]; }),
- actual = lodashStable.map(values, _.castArray);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return array values by reference', function(assert) {
- assert.expect(1);
-
- var array = [1];
- assert.strictEqual(_.castArray(array), array);
- });
-
- QUnit.test('should return an empty array when no arguments are given', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.castArray(), []);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.chain');
-
- (function() {
- QUnit.test('should return a wrapped value', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = _.chain({ 'a': 0 });
- assert.ok(actual instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return existing wrapped values', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var wrapped = _({ 'a': 0 });
- assert.strictEqual(_.chain(wrapped), wrapped);
- assert.strictEqual(wrapped.chain(), wrapped);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should enable chaining for methods that return unwrapped values', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- var array = ['c', 'b', 'a'];
-
- assert.ok(_.chain(array).head() instanceof _);
- assert.ok(_(array).chain().head() instanceof _);
-
- assert.ok(_.chain(array).isArray() instanceof _);
- assert.ok(_(array).chain().isArray() instanceof _);
-
- assert.ok(_.chain(array).sortBy().head() instanceof _);
- assert.ok(_(array).chain().sortBy().head() instanceof _);
- }
- else {
- skipAssert(assert, 6);
- }
- });
-
- QUnit.test('should chain multiple methods', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- lodashStable.times(2, function(index) {
- var array = ['one two three four', 'five six seven eight', 'nine ten eleven twelve'],
- expected = { ' ': 9, 'e': 14, 'f': 2, 'g': 1, 'h': 2, 'i': 4, 'l': 2, 'n': 6, 'o': 3, 'r': 2, 's': 2, 't': 5, 'u': 1, 'v': 4, 'w': 2, 'x': 1 },
- wrapped = index ? _(array).chain() : _.chain(array);
-
- var actual = wrapped
- .chain()
- .map(function(value) { return value.split(''); })
- .flatten()
- .reduce(function(object, chr) {
- object[chr] || (object[chr] = 0);
- object[chr]++;
- return object;
- }, {})
- .value();
-
- assert.deepEqual(actual, expected);
-
- array = [1, 2, 3, 4, 5, 6];
- wrapped = index ? _(array).chain() : _.chain(array);
- actual = wrapped
- .chain()
- .filter(function(n) { return n % 2 != 0; })
- .reject(function(n) { return n % 3 == 0; })
- .sortBy(function(n) { return -n; })
- .value();
-
- assert.deepEqual(actual, [5, 1]);
-
- array = [3, 4];
- wrapped = index ? _(array).chain() : _.chain(array);
- actual = wrapped
- .reverse()
- .concat([2, 1])
- .unshift(5)
- .tap(function(value) { value.pop(); })
- .map(square)
- .value();
-
- assert.deepEqual(actual, [25, 16, 9, 4]);
- });
- }
- else {
- skipAssert(assert, 6);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.chunk');
-
- (function() {
- var array = [0, 1, 2, 3, 4, 5];
-
- QUnit.test('should return chunked arrays', function(assert) {
- assert.expect(1);
-
- var actual = _.chunk(array, 3);
- assert.deepEqual(actual, [[0, 1, 2], [3, 4, 5]]);
- });
-
- QUnit.test('should return the last chunk as remaining elements', function(assert) {
- assert.expect(1);
-
- var actual = _.chunk(array, 4);
- assert.deepEqual(actual, [[0, 1, 2, 3], [4, 5]]);
- });
-
- QUnit.test('should treat falsey `size` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? [[0], [1], [2], [3], [4], [5]] : [];
- });
-
- var actual = lodashStable.map(falsey, function(size, index) {
- return index ? _.chunk(array, size) : _.chunk(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should ensure the minimum `size` is `0`', function(assert) {
- assert.expect(1);
-
- var values = lodashStable.reject(falsey, lodashStable.isUndefined).concat(-1, -Infinity),
- expected = lodashStable.map(values, stubArray);
-
- var actual = lodashStable.map(values, function(n) {
- return _.chunk(array, n);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should coerce `size` to an integer', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.chunk(array, array.length / 4), [[0], [1], [2], [3], [4], [5]]);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map([[1, 2], [3, 4]], _.chunk);
- assert.deepEqual(actual, [[[1], [2]], [[3], [4]]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.clamp');
-
- (function() {
- QUnit.test('should work with a `max` argument', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.clamp(5, 3), 3);
- assert.strictEqual(_.clamp(1, 3), 1);
- });
-
- QUnit.test('should clamp negative numbers', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.clamp(-10, -5, 5), -5);
- assert.strictEqual(_.clamp(-10.2, -5.5, 5.5), -5.5);
- assert.strictEqual(_.clamp(-Infinity, -5, 5), -5);
- });
-
- QUnit.test('should clamp positive numbers', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.clamp(10, -5, 5), 5);
- assert.strictEqual(_.clamp(10.6, -5.6, 5.4), 5.4);
- assert.strictEqual(_.clamp(Infinity, -5, 5), 5);
- });
-
- QUnit.test('should not alter negative numbers in range', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.clamp(-4, -5, 5), -4);
- assert.strictEqual(_.clamp(-5, -5, 5), -5);
- assert.strictEqual(_.clamp(-5.5, -5.6, 5.6), -5.5);
- });
-
- QUnit.test('should not alter positive numbers in range', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.clamp(4, -5, 5), 4);
- assert.strictEqual(_.clamp(5, -5, 5), 5);
- assert.strictEqual(_.clamp(4.5, -5.1, 5.2), 4.5);
- });
-
- QUnit.test('should not alter `0` in range', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(1 / _.clamp(0, -5, 5), Infinity);
- });
-
- QUnit.test('should clamp to `0`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(1 / _.clamp(-10, 0, 5), Infinity);
- });
-
- QUnit.test('should not alter `-0` in range', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(1 / _.clamp(-0, -5, 5), -Infinity);
- });
-
- QUnit.test('should clamp to `-0`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(1 / _.clamp(-10, -0, 5), -Infinity);
- });
-
- QUnit.test('should return `NaN` when `number` is `NaN`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.clamp(NaN, -5, 5), NaN);
- });
-
- QUnit.test('should coerce `min` and `max` of `NaN` to `0`', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(_.clamp(1, -5, NaN), 0);
- assert.deepEqual(_.clamp(-1, NaN, 5), 0);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('clone methods');
-
- (function() {
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 1;
- Foo.c = function() {};
-
- if (Map) {
- var map = new Map;
- map.set('a', 1);
- map.set('b', 2);
- }
- if (Set) {
- var set = new Set;
- set.add(1);
- set.add(2);
- }
- var objects = {
- '`arguments` objects': arguments,
- 'arrays': ['a', ''],
- 'array-like objects': { '0': 'a', '1': '', 'length': 3 },
- 'booleans': false,
- 'boolean objects': Object(false),
- 'date objects': new Date,
- 'Foo instances': new Foo,
- 'objects': { 'a': 0, 'b': 1, 'c': 2 },
- 'objects with object values': { 'a': /a/, 'b': ['B'], 'c': { 'C': 1 } },
- 'objects from another document': realm.object || {},
- 'maps': map,
- 'null values': null,
- 'numbers': 0,
- 'number objects': Object(0),
- 'regexes': /a/gim,
- 'sets': set,
- 'strings': 'a',
- 'string objects': Object('a'),
- 'undefined values': undefined
- };
-
- objects.arrays.length = 3;
-
- var uncloneable = {
- 'DOM elements': body,
- 'functions': Foo,
- 'generators': generator
- };
-
- lodashStable.each(errors, function(error) {
- uncloneable[error.name + 's'] = error;
- });
-
- QUnit.test('`_.clone` should perform a shallow clone', function(assert) {
- assert.expect(2);
-
- var array = [{ 'a': 0 }, { 'b': 1 }],
- actual = _.clone(array);
-
- assert.deepEqual(actual, array);
- assert.ok(actual !== array && actual[0] === array[0]);
- });
-
- QUnit.test('`_.cloneDeep` should deep clone objects with circular references', function(assert) {
- assert.expect(1);
-
- var object = {
- 'foo': { 'b': { 'c': { 'd': {} } } },
- 'bar': {}
- };
-
- object.foo.b.c.d = object;
- object.bar.b = object.foo.b;
-
- var actual = _.cloneDeep(object);
- assert.ok(actual.bar.b === actual.foo.b && actual === actual.foo.b.c.d && actual !== object);
- });
-
- QUnit.test('`_.cloneDeep` should deep clone objects with lots of circular references', function(assert) {
- assert.expect(2);
-
- var cyclical = {};
- lodashStable.times(LARGE_ARRAY_SIZE + 1, function(index) {
- cyclical['v' + index] = [index ? cyclical['v' + (index - 1)] : cyclical];
- });
-
- var clone = _.cloneDeep(cyclical),
- actual = clone['v' + LARGE_ARRAY_SIZE][0];
-
- assert.strictEqual(actual, clone['v' + (LARGE_ARRAY_SIZE - 1)]);
- assert.notStrictEqual(actual, cyclical['v' + (LARGE_ARRAY_SIZE - 1)]);
- });
-
- QUnit.test('`_.cloneDeepWith` should provide `stack` to `customizer`', function(assert) {
- assert.expect(1);
-
- var actual;
-
- _.cloneDeepWith({ 'a': 1 }, function() {
- actual = _.last(arguments);
- });
-
- assert.ok(isNpm
- ? actual.constructor.name == 'Stack'
- : actual instanceof mapCaches.Stack
- );
- });
-
- lodashStable.each(['clone', 'cloneDeep'], function(methodName) {
- var func = _[methodName],
- isDeep = methodName == 'cloneDeep';
-
- lodashStable.forOwn(objects, function(object, key) {
- QUnit.test('`_.' + methodName + '` should clone ' + key, function(assert) {
- assert.expect(2);
-
- var isEqual = (key == 'maps' || key == 'sets') ? _.isEqual : lodashStable.isEqual,
- actual = func(object);
-
- assert.ok(isEqual(actual, object));
-
- if (lodashStable.isObject(object)) {
- assert.notStrictEqual(actual, object);
- } else {
- assert.strictEqual(actual, object);
- }
- });
- });
-
- QUnit.test('`_.' + methodName + '` should clone array buffers', function(assert) {
- assert.expect(2);
-
- if (ArrayBuffer) {
- var actual = func(arrayBuffer);
- assert.strictEqual(actual.byteLength, arrayBuffer.byteLength);
- assert.notStrictEqual(actual, arrayBuffer);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should clone buffers', function(assert) {
- assert.expect(4);
-
- if (Buffer) {
- var buffer = new Buffer([1, 2]),
- actual = func(buffer);
-
- assert.strictEqual(actual.byteLength, buffer.byteLength);
- assert.strictEqual(actual.inspect(), buffer.inspect());
- assert.notStrictEqual(actual, buffer);
-
- buffer[0] = 2;
- assert.strictEqual(actual[0], isDeep ? 2 : 1);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should clone `index` and `input` array properties', function(assert) {
- assert.expect(2);
-
- var array = /c/.exec('abcde'),
- actual = func(array);
-
- assert.strictEqual(actual.index, 2);
- assert.strictEqual(actual.input, 'abcde');
- });
-
- QUnit.test('`_.' + methodName + '` should clone `lastIndex` regexp property', function(assert) {
- assert.expect(1);
-
- var regexp = /c/g;
- regexp.exec('abcde');
-
- assert.strictEqual(func(regexp).lastIndex, 3);
- });
-
- QUnit.test('`_.' + methodName + '` should clone expando properties', function(assert) {
- assert.expect(1);
-
- var values = lodashStable.map([false, true, 1, 'a'], function(value) {
- var object = Object(value);
- object.a = 1;
- return object;
- });
-
- var expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- return func(value).a === 1;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should clone prototype objects', function(assert) {
- assert.expect(2);
-
- var actual = func(Foo.prototype);
-
- assert.notOk(actual instanceof Foo);
- assert.deepEqual(actual, { 'b': 1 });
- });
-
- QUnit.test('`_.' + methodName + '` should set the `[[Prototype]]` of a clone', function(assert) {
- assert.expect(1);
-
- assert.ok(func(new Foo) instanceof Foo);
- });
-
- QUnit.test('`_.' + methodName + '` should set the `[[Prototype]]` of a clone even when the `constructor` is incorrect', function(assert) {
- assert.expect(1);
-
- Foo.prototype.constructor = Object;
- assert.ok(func(new Foo) instanceof Foo);
- Foo.prototype.constructor = Foo;
- });
-
- QUnit.test('`_.' + methodName + '` should ensure `value` constructor is a function before using its `[[Prototype]]`', function(assert) {
- assert.expect(1);
-
- Foo.prototype.constructor = null;
- assert.notOk(func(new Foo) instanceof Foo);
- Foo.prototype.constructor = Foo;
- });
-
- QUnit.test('`_.' + methodName + '` should clone properties that shadow those on `Object.prototype`', function(assert) {
- assert.expect(2);
-
- var object = {
- 'constructor': objectProto.constructor,
- 'hasOwnProperty': objectProto.hasOwnProperty,
- 'isPrototypeOf': objectProto.isPrototypeOf,
- 'propertyIsEnumerable': objectProto.propertyIsEnumerable,
- 'toLocaleString': objectProto.toLocaleString,
- 'toString': objectProto.toString,
- 'valueOf': objectProto.valueOf
- };
-
- var actual = func(object);
-
- assert.deepEqual(actual, object);
- assert.notStrictEqual(actual, object);
- });
-
- QUnit.test('`_.' + methodName + '` should clone symbol properties', function(assert) {
- assert.expect(3);
-
- function Foo() {
- this[symbol] = { 'c': 1 };
- }
-
- if (Symbol) {
- var symbol2 = Symbol('b');
- Foo.prototype[symbol2] = 2;
-
- var object = { 'a': { 'b': new Foo } };
- object[symbol] = { 'b': 1 };
-
- var actual = func(object);
-
- assert.deepEqual(getSymbols(actual.a.b), [symbol]);
-
- if (isDeep) {
- assert.deepEqual(actual[symbol], object[symbol]);
- assert.deepEqual(actual.a.b[symbol], object.a.b[symbol]);
- }
- else {
- assert.strictEqual(actual[symbol], object[symbol]);
- assert.strictEqual(actual.a, object.a);
- }
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should clone symbol objects', function(assert) {
- assert.expect(4);
-
- if (Symbol) {
- assert.strictEqual(func(symbol), symbol);
-
- var object = Object(symbol),
- actual = func(object);
-
- assert.strictEqual(typeof actual, 'object');
- assert.strictEqual(typeof actual.valueOf(), 'symbol');
- assert.notStrictEqual(actual, object);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should not clone symbol primitives', function(assert) {
- assert.expect(1);
-
- if (Symbol) {
- assert.strictEqual(func(symbol), symbol);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should not error on DOM elements', function(assert) {
- assert.expect(1);
-
- if (document) {
- var element = document.createElement('div');
-
- try {
- assert.deepEqual(func(element), {});
- } catch (e) {
- assert.ok(false, e.message);
- }
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should create an object from the same realm as `value`', function(assert) {
- assert.expect(1);
-
- var props = [];
-
- var objects = lodashStable.transform(_, function(result, value, key) {
- if (lodashStable.startsWith(key, '_') && lodashStable.isObject(value) &&
- !lodashStable.isArguments(value) && !lodashStable.isElement(value) &&
- !lodashStable.isFunction(value)) {
- props.push(lodashStable.capitalize(lodashStable.camelCase(key)));
- result.push(value);
- }
- }, []);
-
- var expected = lodashStable.map(objects, stubTrue);
-
- var actual = lodashStable.map(objects, function(object) {
- var Ctor = object.constructor,
- result = func(object);
-
- return result !== object && ((result instanceof Ctor) || !(new Ctor instanceof Ctor));
- });
-
- assert.deepEqual(actual, expected, props.join(', '));
- });
-
- QUnit.test('`_.' + methodName + '` should perform a ' + (isDeep ? 'deep' : 'shallow') + ' clone when used as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(2);
-
- var expected = [{ 'a': [0] }, { 'b': [1] }],
- actual = lodashStable.map(expected, func);
-
- assert.deepEqual(actual, expected);
-
- if (isDeep) {
- assert.ok(actual[0] !== expected[0] && actual[0].a !== expected[0].a && actual[1].b !== expected[1].b);
- } else {
- assert.ok(actual[0] !== expected[0] && actual[0].a === expected[0].a && actual[1].b === expected[1].b);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should return a unwrapped value when chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var object = objects.objects,
- actual = _(object)[methodName]();
-
- assert.deepEqual(actual, object);
- assert.notStrictEqual(actual, object);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- lodashStable.each(arrayViews, function(type) {
- QUnit.test('`_.' + methodName + '` should clone ' + type + ' values', function(assert) {
- assert.expect(10);
-
- var Ctor = root[type];
-
- lodashStable.times(2, function(index) {
- if (Ctor) {
- var buffer = new ArrayBuffer(24),
- view = index ? new Ctor(buffer, 8, 1) : new Ctor(buffer),
- actual = func(view);
-
- assert.deepEqual(actual, view);
- assert.notStrictEqual(actual, view);
- assert.strictEqual(actual.buffer === view.buffer, !isDeep);
- assert.strictEqual(actual.byteOffset, view.byteOffset);
- assert.strictEqual(actual.length, view.length);
- }
- else {
- skipAssert(assert, 5);
- }
- });
- });
- });
-
- lodashStable.forOwn(uncloneable, function(value, key) {
- QUnit.test('`_.' + methodName + '` should not clone ' + key, function(assert) {
- assert.expect(3);
-
- if (value) {
- var object = { 'a': value, 'b': { 'c': value } },
- actual = func(object),
- expected = (typeof value == 'function' && !!value.c) ? { 'c': Foo.c } : {};
-
- assert.deepEqual(actual, object);
- assert.notStrictEqual(actual, object);
- assert.deepEqual(func(value), expected);
- }
- else {
- skipAssert(assert, 3);
- }
- });
- });
- });
-
- lodashStable.each(['cloneWith', 'cloneDeepWith'], function(methodName) {
- var func = _[methodName],
- isDeep = methodName == 'cloneDeepWith';
-
- QUnit.test('`_.' + methodName + '` should provide the correct `customizer` arguments', function(assert) {
- assert.expect(1);
-
- var argsList = [],
- object = new Foo;
-
- func(object, function() {
- var length = arguments.length,
- args = slice.call(arguments, 0, length - (length > 1 ? 1 : 0));
-
- argsList.push(args);
- });
-
- assert.deepEqual(argsList, isDeep ? [[object], [1, 'a', object]] : [[object]]);
- });
-
- QUnit.test('`_.' + methodName + '` should handle cloning when `customizer` returns `undefined`', function(assert) {
- assert.expect(1);
-
- var actual = func({ 'a': { 'b': 'c' } }, noop);
- assert.deepEqual(actual, { 'a': { 'b': 'c' } });
- });
-
- lodashStable.forOwn(uncloneable, function(value, key) {
- QUnit.test('`_.' + methodName + '` should work with a `customizer` callback and ' + key, function(assert) {
- assert.expect(3);
-
- var customizer = function(value) {
- return lodashStable.isPlainObject(value) ? undefined : value;
- };
-
- var actual = func(value, customizer);
- assert.strictEqual(actual, value);
-
- var object = { 'a': value, 'b': { 'c': value } };
- actual = func(object, customizer);
-
- assert.deepEqual(actual, object);
- assert.notStrictEqual(actual, object);
- });
- });
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.compact');
-
- (function() {
- var largeArray = lodashStable.range(LARGE_ARRAY_SIZE).concat(null);
-
- QUnit.test('should filter falsey values', function(assert) {
- assert.expect(1);
-
- var array = ['0', '1', '2'];
- assert.deepEqual(_.compact(falsey.concat(array)), array);
- });
-
- QUnit.test('should work when in-between lazy operators', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var actual = _(falsey).thru(_.slice).compact().thru(_.slice).value();
- assert.deepEqual(actual, []);
-
- actual = _(falsey).thru(_.slice).push(true, 1).compact().push('a').value();
- assert.deepEqual(actual, [true, 1, 'a']);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = _(largeArray).slice(1).compact().reverse().take().value();
- assert.deepEqual(actual, _.take(_.compact(_.slice(largeArray, 1)).reverse()));
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should work in a lazy sequence with a custom `_.iteratee`', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var iteratee = _.iteratee,
- pass = false;
-
- _.iteratee = identity;
-
- try {
- var actual = _(largeArray).slice(1).compact().value();
- pass = lodashStable.isEqual(actual, _.compact(_.slice(largeArray, 1)));
- } catch (e) {console.log(e);}
-
- assert.ok(pass);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.concat');
-
- (function() {
- QUnit.test('should shallow clone `array`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = _.concat(array);
-
- assert.deepEqual(actual, array);
- assert.notStrictEqual(actual, array);
- });
-
- QUnit.test('should concat arrays and values', function(assert) {
- assert.expect(2);
-
- var array = [1],
- actual = _.concat(array, 2, [3], [[4]]);
-
- assert.deepEqual(actual, [1, 2, 3, [4]]);
- assert.deepEqual(array, [1]);
- });
-
- QUnit.test('should cast non-array `array` values to arrays', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined, false, true, 1, NaN, 'a'];
-
- var expected = lodashStable.map(values, function(value, index) {
- return index ? [value] : [];
- });
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.concat(value) : _.concat();
- });
-
- assert.deepEqual(actual, expected);
-
- expected = lodashStable.map(values, function(value) {
- return [value, 2, [3]];
- });
-
- actual = lodashStable.map(values, function(value) {
- return _.concat(value, [2], [[3]]);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should treat sparse arrays as dense', function(assert) {
- assert.expect(3);
-
- var expected = [],
- actual = _.concat(Array(1), Array(1));
-
- expected.push(undefined, undefined);
-
- assert.ok('0'in actual);
- assert.ok('1' in actual);
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return a new wrapped array', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var array = [1],
- wrapped = _(array).concat([2, 3]),
- actual = wrapped.value();
-
- assert.deepEqual(array, [1]);
- assert.deepEqual(actual, [1, 2, 3]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.cond');
-
- (function() {
- QUnit.test('should create a conditional function', function(assert) {
- assert.expect(3);
-
- var cond = _.cond([
- [lodashStable.matches({ 'a': 1 }), stubA],
- [lodashStable.matchesProperty('b', 1), stubB],
- [lodashStable.property('c'), stubC]
- ]);
-
- assert.strictEqual(cond({ 'a': 1, 'b': 2, 'c': 3 }), 'a');
- assert.strictEqual(cond({ 'a': 0, 'b': 1, 'c': 2 }), 'b');
- assert.strictEqual(cond({ 'a': -1, 'b': 0, 'c': 1 }), 'c');
- });
-
- QUnit.test('should provide arguments to functions', function(assert) {
- assert.expect(2);
-
- var args1,
- args2,
- expected = ['a', 'b', 'c'];
-
- var cond = _.cond([[
- function() { args1 || (args1 = slice.call(arguments)); return true; },
- function() { args2 || (args2 = slice.call(arguments)); }
- ]]);
-
- cond('a', 'b', 'c');
-
- assert.deepEqual(args1, expected);
- assert.deepEqual(args2, expected);
- });
-
- QUnit.test('should work with predicate shorthands', function(assert) {
- assert.expect(3);
-
- var cond = _.cond([
- [{ 'a': 1 }, stubA],
- [['b', 1], stubB],
- ['c', stubC]
- ]);
-
- assert.strictEqual(cond({ 'a': 1, 'b': 2, 'c': 3 }), 'a');
- assert.strictEqual(cond({ 'a': 0, 'b': 1, 'c': 2 }), 'b');
- assert.strictEqual(cond({ 'a': -1, 'b': 0, 'c': 1 }), 'c');
- });
-
- QUnit.test('should return `undefined` when no condition is met', function(assert) {
- assert.expect(1);
-
- var cond = _.cond([[stubFalse, stubA]]);
- assert.strictEqual(cond({ 'a': 1 }), undefined);
- });
-
- QUnit.test('should throw a TypeError if `pairs` is not composed of functions', function(assert) {
- assert.expect(2);
-
- lodashStable.each([false, true], function(value) {
- assert.raises(function() { _.cond([[stubTrue, value]])(); }, TypeError);
- });
- });
-
- QUnit.test('should use `this` binding of function for `pairs`', function(assert) {
- assert.expect(1);
-
- var cond = _.cond([
- [function(a) { return this[a]; }, function(a, b) { return this[b]; }]
- ]);
-
- var object = { 'cond': cond, 'a': 1, 'b': 2 };
- assert.strictEqual(object.cond('a', 'b'), 2);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.conforms');
-
- (function() {
- var objects = [
- { 'a': 1, 'b': 8 },
- { 'a': 2, 'b': 4 },
- { 'a': 3, 'b': 16 }
- ];
-
- QUnit.test('should create a function that checks if a given object conforms to `source`', function(assert) {
- assert.expect(2);
-
- var conforms = _.conforms({
- 'b': function(value) { return value > 4; }
- });
-
- var actual = lodashStable.filter(objects, conforms);
- assert.deepEqual(actual, [objects[0], objects[2]]);
-
- conforms = _.conforms({
- 'b': function(value) { return value > 8; },
- 'a': function(value) { return value > 1; }
- });
-
- actual = lodashStable.filter(objects, conforms);
- assert.deepEqual(actual, [objects[2]]);
- });
-
- QUnit.test('should not match by inherited `source` properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = function(value) {
- return value > 1;
- };
- }
- Foo.prototype.b = function(value) {
- return value > 8;
- };
-
- var conforms = _.conforms(new Foo),
- actual = lodashStable.filter(objects, conforms);
-
- assert.deepEqual(actual, [objects[1], objects[2]]);
- });
-
- QUnit.test('should not invoke `source` predicates for missing `object` properties', function(assert) {
- assert.expect(2);
-
- var count = 0;
-
- var conforms = _.conforms({
- 'a': function() { count++; return true; }
- });
-
- assert.strictEqual(conforms({}), false);
- assert.strictEqual(count, 0);
- });
-
- QUnit.test('should work with a function for `object`', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.a = 1;
-
- function Bar() {}
- Bar.a = 2;
-
- var conforms = _.conforms({
- 'a': function(value) { return value > 1; }
- });
-
- assert.strictEqual(conforms(Foo), false);
- assert.strictEqual(conforms(Bar), true);
- });
-
- QUnit.test('should work with a function for `source`', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.a = function(value) { return value > 1; };
-
- var objects = [{ 'a': 1 }, { 'a': 2 }],
- actual = lodashStable.filter(objects, _.conforms(Foo));
-
- assert.deepEqual(actual, [objects[1]]);
- });
-
- QUnit.test('should work with a non-plain `object`', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var conforms = _.conforms({
- 'b': function(value) { return value > 1; }
- });
-
- assert.strictEqual(conforms(new Foo), true);
- });
-
- QUnit.test('should return `false` when `object` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubFalse);
-
- var conforms = _.conforms({
- 'a': function(value) { return value > 1; }
- });
-
- var actual = lodashStable.map(values, function(value, index) {
- try {
- return index ? conforms(value) : conforms();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` when comparing an empty `source` to a nullish `object`', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubTrue),
- conforms = _.conforms({});
-
- var actual = lodashStable.map(values, function(value, index) {
- try {
- return index ? conforms(value) : conforms();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` when comparing an empty `source`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1 },
- expected = lodashStable.map(empties, stubTrue);
-
- var actual = lodashStable.map(empties, function(value) {
- var conforms = _.conforms(value);
- return conforms(object);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not change behavior if `source` is modified', function(assert) {
- assert.expect(2);
-
- var source = {
- 'a': function(value) { return value > 1; }
- };
-
- var object = { 'a': 2 },
- conforms = _.conforms(source);
-
- assert.strictEqual(conforms(object), true);
-
- source.a = function(value) { return value < 2; };
- assert.strictEqual(conforms(object), true);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.constant');
-
- (function() {
- QUnit.test('should create a function that returns `value`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1 },
- values = Array(2).concat(empties, true, 1, 'a'),
- constant = _.constant(object);
-
- var results = lodashStable.map(values, function(value, index) {
- if (index < 2) {
- return index ? constant.call({}) : constant();
- }
- return constant(value);
- });
-
- assert.ok(lodashStable.every(results, function(result) {
- return result === object;
- }));
- });
-
- QUnit.test('should work with falsey values', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- var constant = index ? _.constant(value) : _.constant(),
- result = constant();
-
- return (result === value) || (result !== result && value !== value);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _(true).constant();
- assert.ok(wrapped instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.countBy');
-
- (function() {
- var array = [6.1, 4.2, 6.3];
-
- QUnit.test('should transform keys by `iteratee`', function(assert) {
- assert.expect(1);
-
- var actual = _.countBy(array, Math.floor);
- assert.deepEqual(actual, { '4': 1, '6': 2 });
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var array = [4, 6, 6],
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant({ '4': 1, '6': 2 }));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.countBy(array, value) : _.countBy(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var actual = _.countBy(['one', 'two', 'three'], 'length');
- assert.deepEqual(actual, { '3': 2, '5': 1 });
- });
-
- QUnit.test('should only add values to own, not inherited, properties', function(assert) {
- assert.expect(2);
-
- var actual = _.countBy(array, function(n) {
- return Math.floor(n) > 4 ? 'hasOwnProperty' : 'constructor';
- });
-
- assert.deepEqual(actual.constructor, 1);
- assert.deepEqual(actual.hasOwnProperty, 2);
- });
-
- QUnit.test('should work with a number for `iteratee`', function(assert) {
- assert.expect(2);
-
- var array = [
- [1, 'a'],
- [2, 'a'],
- [2, 'b']
- ];
-
- assert.deepEqual(_.countBy(array, 0), { '1': 1, '2': 2 });
- assert.deepEqual(_.countBy(array, 1), { 'a': 2, 'b': 1 });
- });
-
- QUnit.test('should work with an object for `collection`', function(assert) {
- assert.expect(1);
-
- var actual = _.countBy({ 'a': 6.1, 'b': 4.2, 'c': 6.3 }, Math.floor);
- assert.deepEqual(actual, { '4': 1, '6': 2 });
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE).concat(
- lodashStable.range(Math.floor(LARGE_ARRAY_SIZE / 2), LARGE_ARRAY_SIZE),
- lodashStable.range(Math.floor(LARGE_ARRAY_SIZE / 1.5), LARGE_ARRAY_SIZE)
- );
-
- var actual = _(array).countBy().map(square).filter(isEven).take().value();
-
- assert.deepEqual(actual, _.take(_.filter(_.map(_.countBy(array), square), isEven)));
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.create');
-
- (function() {
- function Shape() {
- this.x = 0;
- this.y = 0;
- }
-
- function Circle() {
- Shape.call(this);
- }
-
- QUnit.test('should create an object that inherits from the given `prototype` object', function(assert) {
- assert.expect(3);
-
- Circle.prototype = _.create(Shape.prototype);
- Circle.prototype.constructor = Circle;
-
- var actual = new Circle;
-
- assert.ok(actual instanceof Circle);
- assert.ok(actual instanceof Shape);
- assert.notStrictEqual(Circle.prototype, Shape.prototype);
- });
-
- QUnit.test('should assign `properties` to the created object', function(assert) {
- assert.expect(3);
-
- var expected = { 'constructor': Circle, 'radius': 0 };
- Circle.prototype = _.create(Shape.prototype, expected);
-
- var actual = new Circle;
-
- assert.ok(actual instanceof Circle);
- assert.ok(actual instanceof Shape);
- assert.deepEqual(Circle.prototype, expected);
- });
-
- QUnit.test('should assign own properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- this.c = 3;
- }
- Foo.prototype.b = 2;
-
- assert.deepEqual(_.create({}, new Foo), { 'a': 1, 'c': 3 });
- });
-
- QUnit.test('should assign properties that shadow those of `prototype`', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- var object = _.create(new Foo, { 'a': 1 });
- assert.deepEqual(lodashStable.keys(object), ['a']);
- });
-
- QUnit.test('should accept a falsey `prototype` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubObject);
-
- var actual = lodashStable.map(falsey, function(prototype, index) {
- return index ? _.create(prototype) : _.create();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should ignore primitive `prototype` arguments and use an empty object instead', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(primitives, stubTrue);
-
- var actual = lodashStable.map(primitives, function(value, index) {
- return lodashStable.isPlainObject(index ? _.create(value) : _.create());
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [{ 'a': 1 }, { 'a': 1 }, { 'a': 1 }],
- expected = lodashStable.map(array, stubTrue),
- objects = lodashStable.map(array, _.create);
-
- var actual = lodashStable.map(objects, function(object) {
- return object.a === 1 && !_.keys(object).length;
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.curry');
-
- (function() {
- function fn(a, b, c, d) {
- return slice.call(arguments);
- }
-
- QUnit.test('should curry based on the number of arguments given', function(assert) {
- assert.expect(3);
-
- var curried = _.curry(fn),
- expected = [1, 2, 3, 4];
-
- assert.deepEqual(curried(1)(2)(3)(4), expected);
- assert.deepEqual(curried(1, 2)(3, 4), expected);
- assert.deepEqual(curried(1, 2, 3, 4), expected);
- });
-
- QUnit.test('should allow specifying `arity`', function(assert) {
- assert.expect(3);
-
- var curried = _.curry(fn, 3),
- expected = [1, 2, 3];
-
- assert.deepEqual(curried(1)(2, 3), expected);
- assert.deepEqual(curried(1, 2)(3), expected);
- assert.deepEqual(curried(1, 2, 3), expected);
- });
-
- QUnit.test('should coerce `arity` to an integer', function(assert) {
- assert.expect(2);
-
- var values = ['0', 0.6, 'xyz'],
- expected = lodashStable.map(values, stubArray);
-
- var actual = lodashStable.map(values, function(arity) {
- return _.curry(fn, arity)();
- });
-
- assert.deepEqual(actual, expected);
- assert.deepEqual(_.curry(fn, '2')(1)(2), [1, 2]);
- });
-
- QUnit.test('should support placeholders', function(assert) {
- assert.expect(4);
-
- var curried = _.curry(fn),
- ph = curried.placeholder;
-
- assert.deepEqual(curried(1)(ph, 3)(ph, 4)(2), [1, 2, 3, 4]);
- assert.deepEqual(curried(ph, 2)(1)(ph, 4)(3), [1, 2, 3, 4]);
- assert.deepEqual(curried(ph, ph, 3)(ph, 2)(ph, 4)(1), [1, 2, 3, 4]);
- assert.deepEqual(curried(ph, ph, ph, 4)(ph, ph, 3)(ph, 2)(1), [1, 2, 3, 4]);
- });
-
- QUnit.test('should persist placeholders', function(assert) {
- assert.expect(1);
-
- var curried = _.curry(fn),
- ph = curried.placeholder,
- actual = curried(ph, ph, ph, 'd')('a')(ph)('b')('c');
-
- assert.deepEqual(actual, ['a', 'b', 'c', 'd']);
- });
-
- QUnit.test('should use `_.placeholder` when set', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var curried = _.curry(fn),
- _ph = _.placeholder = {},
- ph = curried.placeholder;
-
- assert.deepEqual(curried(1)(_ph, 3)(ph, 4), [1, ph, 3, 4]);
- delete _.placeholder;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should provide additional arguments after reaching the target arity', function(assert) {
- assert.expect(3);
-
- var curried = _.curry(fn, 3);
- assert.deepEqual(curried(1)(2, 3, 4), [1, 2, 3, 4]);
- assert.deepEqual(curried(1, 2)(3, 4, 5), [1, 2, 3, 4, 5]);
- assert.deepEqual(curried(1, 2, 3, 4, 5, 6), [1, 2, 3, 4, 5, 6]);
- });
-
- QUnit.test('should create a function with a `length` of `0`', function(assert) {
- assert.expect(6);
-
- lodashStable.times(2, function(index) {
- var curried = index ? _.curry(fn, 4) : _.curry(fn);
- assert.strictEqual(curried.length, 0);
- assert.strictEqual(curried(1).length, 0);
- assert.strictEqual(curried(1, 2).length, 0);
- });
- });
-
- QUnit.test('should ensure `new curried` is an instance of `func`', function(assert) {
- assert.expect(2);
-
- function Foo(value) {
- return value && object;
- }
-
- var curried = _.curry(Foo),
- object = {};
-
- assert.ok(new curried(false) instanceof Foo);
- assert.strictEqual(new curried(true), object);
- });
-
- QUnit.test('should not set a `this` binding', function(assert) {
- assert.expect(9);
-
- var fn = function(a, b, c) {
- var value = this || {};
- return [value[a], value[b], value[c]];
- };
-
- var object = { 'a': 1, 'b': 2, 'c': 3 },
- expected = [1, 2, 3];
-
- assert.deepEqual(_.curry(_.bind(fn, object), 3)('a')('b')('c'), expected);
- assert.deepEqual(_.curry(_.bind(fn, object), 3)('a', 'b')('c'), expected);
- assert.deepEqual(_.curry(_.bind(fn, object), 3)('a', 'b', 'c'), expected);
-
- assert.deepEqual(_.bind(_.curry(fn), object)('a')('b')('c'), Array(3));
- assert.deepEqual(_.bind(_.curry(fn), object)('a', 'b')('c'), Array(3));
- assert.deepEqual(_.bind(_.curry(fn), object)('a', 'b', 'c'), expected);
-
- object.curried = _.curry(fn);
- assert.deepEqual(object.curried('a')('b')('c'), Array(3));
- assert.deepEqual(object.curried('a', 'b')('c'), Array(3));
- assert.deepEqual(object.curried('a', 'b', 'c'), expected);
- });
-
- QUnit.test('should work with partialed methods', function(assert) {
- assert.expect(2);
-
- var curried = _.curry(fn),
- expected = [1, 2, 3, 4];
-
- var a = _.partial(curried, 1),
- b = _.bind(a, null, 2),
- c = _.partialRight(b, 4),
- d = _.partialRight(b(3), 4);
-
- assert.deepEqual(c(3), expected);
- assert.deepEqual(d(), expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.curryRight');
-
- (function() {
- function fn(a, b, c, d) {
- return slice.call(arguments);
- }
-
- QUnit.test('should curry based on the number of arguments given', function(assert) {
- assert.expect(3);
-
- var curried = _.curryRight(fn),
- expected = [1, 2, 3, 4];
-
- assert.deepEqual(curried(4)(3)(2)(1), expected);
- assert.deepEqual(curried(3, 4)(1, 2), expected);
- assert.deepEqual(curried(1, 2, 3, 4), expected);
- });
-
- QUnit.test('should allow specifying `arity`', function(assert) {
- assert.expect(3);
-
- var curried = _.curryRight(fn, 3),
- expected = [1, 2, 3];
-
- assert.deepEqual(curried(3)(1, 2), expected);
- assert.deepEqual(curried(2, 3)(1), expected);
- assert.deepEqual(curried(1, 2, 3), expected);
- });
-
- QUnit.test('should coerce `arity` to an integer', function(assert) {
- assert.expect(2);
-
- var values = ['0', 0.6, 'xyz'],
- expected = lodashStable.map(values, stubArray);
-
- var actual = lodashStable.map(values, function(arity) {
- return _.curryRight(fn, arity)();
- });
-
- assert.deepEqual(actual, expected);
- assert.deepEqual(_.curryRight(fn, '2')(1)(2), [2, 1]);
- });
-
- QUnit.test('should support placeholders', function(assert) {
- assert.expect(4);
-
- var curried = _.curryRight(fn),
- expected = [1, 2, 3, 4],
- ph = curried.placeholder;
-
- assert.deepEqual(curried(4)(2, ph)(1, ph)(3), expected);
- assert.deepEqual(curried(3, ph)(4)(1, ph)(2), expected);
- assert.deepEqual(curried(ph, ph, 4)(ph, 3)(ph, 2)(1), expected);
- assert.deepEqual(curried(ph, ph, ph, 4)(ph, ph, 3)(ph, 2)(1), expected);
- });
-
- QUnit.test('should persist placeholders', function(assert) {
- assert.expect(1);
-
- var curried = _.curryRight(fn),
- ph = curried.placeholder,
- actual = curried('a', ph, ph, ph)('b')(ph)('c')('d');
-
- assert.deepEqual(actual, ['a', 'b', 'c', 'd']);
- });
-
- QUnit.test('should use `_.placeholder` when set', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var curried = _.curryRight(fn),
- _ph = _.placeholder = {},
- ph = curried.placeholder;
-
- assert.deepEqual(curried(4)(2, _ph)(1, ph), [1, 2, ph, 4]);
- delete _.placeholder;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should provide additional arguments after reaching the target arity', function(assert) {
- assert.expect(3);
-
- var curried = _.curryRight(fn, 3);
- assert.deepEqual(curried(4)(1, 2, 3), [1, 2, 3, 4]);
- assert.deepEqual(curried(4, 5)(1, 2, 3), [1, 2, 3, 4, 5]);
- assert.deepEqual(curried(1, 2, 3, 4, 5, 6), [1, 2, 3, 4, 5, 6]);
- });
-
- QUnit.test('should create a function with a `length` of `0`', function(assert) {
- assert.expect(6);
-
- lodashStable.times(2, function(index) {
- var curried = index ? _.curryRight(fn, 4) : _.curryRight(fn);
- assert.strictEqual(curried.length, 0);
- assert.strictEqual(curried(4).length, 0);
- assert.strictEqual(curried(3, 4).length, 0);
- });
- });
-
- QUnit.test('should ensure `new curried` is an instance of `func`', function(assert) {
- assert.expect(2);
-
- function Foo(value) {
- return value && object;
- }
-
- var curried = _.curryRight(Foo),
- object = {};
-
- assert.ok(new curried(false) instanceof Foo);
- assert.strictEqual(new curried(true), object);
- });
-
- QUnit.test('should not set a `this` binding', function(assert) {
- assert.expect(9);
-
- var fn = function(a, b, c) {
- var value = this || {};
- return [value[a], value[b], value[c]];
- };
-
- var object = { 'a': 1, 'b': 2, 'c': 3 },
- expected = [1, 2, 3];
-
- assert.deepEqual(_.curryRight(_.bind(fn, object), 3)('c')('b')('a'), expected);
- assert.deepEqual(_.curryRight(_.bind(fn, object), 3)('b', 'c')('a'), expected);
- assert.deepEqual(_.curryRight(_.bind(fn, object), 3)('a', 'b', 'c'), expected);
-
- assert.deepEqual(_.bind(_.curryRight(fn), object)('c')('b')('a'), Array(3));
- assert.deepEqual(_.bind(_.curryRight(fn), object)('b', 'c')('a'), Array(3));
- assert.deepEqual(_.bind(_.curryRight(fn), object)('a', 'b', 'c'), expected);
-
- object.curried = _.curryRight(fn);
- assert.deepEqual(object.curried('c')('b')('a'), Array(3));
- assert.deepEqual(object.curried('b', 'c')('a'), Array(3));
- assert.deepEqual(object.curried('a', 'b', 'c'), expected);
- });
-
- QUnit.test('should work with partialed methods', function(assert) {
- assert.expect(2);
-
- var curried = _.curryRight(fn),
- expected = [1, 2, 3, 4];
-
- var a = _.partialRight(curried, 4),
- b = _.partialRight(a, 3),
- c = _.bind(b, null, 1),
- d = _.partial(b(2), 1);
-
- assert.deepEqual(c(2), expected);
- assert.deepEqual(d(), expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('curry methods');
-
- lodashStable.each(['curry', 'curryRight'], function(methodName) {
- var func = _[methodName],
- fn = function(a, b) { return slice.call(arguments); },
- isCurry = methodName == 'curry';
-
- QUnit.test('`_.' + methodName + '` should not error on functions with the same name as lodash methods', function(assert) {
- assert.expect(1);
-
- function run(a, b) {
- return a + b;
- }
-
- var curried = func(run);
-
- try {
- var actual = curried(1)(2);
- } catch (e) {}
-
- assert.strictEqual(actual, 3);
- });
-
- QUnit.test('`_.' + methodName + '` should work for function names that shadow those on `Object.prototype`', function(assert) {
- assert.expect(1);
-
- var curried = _.curry(function hasOwnProperty(a, b, c) {
- return [a, b, c];
- });
-
- var expected = [1, 2, 3];
-
- assert.deepEqual(curried(1)(2)(3), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(2);
-
- var array = [fn, fn, fn],
- object = { 'a': fn, 'b': fn, 'c': fn };
-
- lodashStable.each([array, object], function(collection) {
- var curries = lodashStable.map(collection, func),
- expected = lodashStable.map(collection, lodashStable.constant(isCurry ? ['a', 'b'] : ['b', 'a']));
-
- var actual = lodashStable.map(curries, function(curried) {
- return curried('a')('b');
- });
-
- assert.deepEqual(actual, expected);
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.debounce');
-
- (function() {
- QUnit.test('should debounce a function', function(assert) {
- assert.expect(6);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var debounced = _.debounce(function(value) {
- ++callCount;
- return value;
- }, 32);
-
- var results = [debounced('a'), debounced('b'), debounced('c')];
- assert.deepEqual(results, [undefined, undefined, undefined]);
- assert.strictEqual(callCount, 0);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 1);
-
- var results = [debounced('d'), debounced('e'), debounced('f')];
- assert.deepEqual(results, ['c', 'c', 'c']);
- assert.strictEqual(callCount, 1);
- }, 128);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- done();
- }, 256);
- });
-
- QUnit.test('subsequent debounced calls return the last `func` result', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var debounced = _.debounce(identity, 32);
- debounced('a');
-
- setTimeout(function() {
- assert.notEqual(debounced('b'), 'b');
- }, 64);
-
- setTimeout(function() {
- assert.notEqual(debounced('c'), 'c');
- done();
- }, 128);
- });
-
- QUnit.test('should not immediately call `func` when `wait` is `0`', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var callCount = 0,
- debounced = _.debounce(function() { ++callCount; }, 0);
-
- debounced();
- debounced();
- assert.strictEqual(callCount, 0);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 1);
- done();
- }, 5);
- });
-
- QUnit.test('should apply default options', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var callCount = 0,
- debounced = _.debounce(function() { callCount++; }, 32, {});
-
- debounced();
- assert.strictEqual(callCount, 0);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 1);
- done();
- }, 64);
- });
-
- QUnit.test('should support a `leading` option', function(assert) {
- assert.expect(4);
-
- var done = assert.async();
-
- var callCounts = [0, 0];
-
- var withLeading = _.debounce(function() {
- callCounts[0]++;
- }, 32, { 'leading': true });
-
- var withLeadingAndTrailing = _.debounce(function() {
- callCounts[1]++;
- }, 32, { 'leading': true });
-
- withLeading();
- assert.strictEqual(callCounts[0], 1);
-
- withLeadingAndTrailing();
- withLeadingAndTrailing();
- assert.strictEqual(callCounts[1], 1);
-
- setTimeout(function() {
- assert.deepEqual(callCounts, [1, 2]);
-
- withLeading();
- assert.strictEqual(callCounts[0], 2);
-
- done();
- }, 64);
- });
-
- QUnit.test('subsequent leading debounced calls return the last `func` result', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var debounced = _.debounce(identity, 32, { 'leading': true, 'trailing': false }),
- results = [debounced('a'), debounced('b')];
-
- assert.deepEqual(results, ['a', 'a']);
-
- setTimeout(function() {
- var results = [debounced('c'), debounced('d')];
- assert.deepEqual(results, ['c', 'c']);
- done();
- }, 64);
- });
-
- QUnit.test('should support a `trailing` option', function(assert) {
- assert.expect(4);
-
- var done = assert.async();
-
- var withCount = 0,
- withoutCount = 0;
-
- var withTrailing = _.debounce(function() {
- withCount++;
- }, 32, { 'trailing': true });
-
- var withoutTrailing = _.debounce(function() {
- withoutCount++;
- }, 32, { 'trailing': false });
-
- withTrailing();
- assert.strictEqual(withCount, 0);
-
- withoutTrailing();
- assert.strictEqual(withoutCount, 0);
-
- setTimeout(function() {
- assert.strictEqual(withCount, 1);
- assert.strictEqual(withoutCount, 0);
- done();
- }, 64);
- });
-
- QUnit.test('should support a `maxWait` option', function(assert) {
- assert.expect(4);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var debounced = _.debounce(function(value) {
- ++callCount;
- return value;
- }, 32, { 'maxWait': 64 });
-
- debounced();
- debounced();
- assert.strictEqual(callCount, 0);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 1);
- debounced();
- debounced();
- assert.strictEqual(callCount, 1);
- }, 128);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- done();
- }, 256);
- });
-
- QUnit.test('should support `maxWait` in a tight loop', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var limit = (argv || isPhantom) ? 1000 : 320,
- withCount = 0,
- withoutCount = 0;
-
- var withMaxWait = _.debounce(function() {
- withCount++;
- }, 64, { 'maxWait': 128 });
-
- var withoutMaxWait = _.debounce(function() {
- withoutCount++;
- }, 96);
-
- var start = +new Date;
- while ((new Date - start) < limit) {
- withMaxWait();
- withoutMaxWait();
- }
- var actual = [Boolean(withoutCount), Boolean(withCount)];
- setTimeout(function() {
- assert.deepEqual(actual, [false, true]);
- done();
- }, 1);
- });
-
- QUnit.test('should queue a trailing call for subsequent debounced calls after `maxWait`', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var debounced = _.debounce(function() {
- ++callCount;
- }, 64, { 'maxWait': 64 });
-
- debounced();
-
- lodashStable.times(20, function(index) {
- setTimeout(debounced, 54 + index);
- });
-
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- done();
- }, 160);
- });
-
- QUnit.test('should cancel `maxDelayed` when `delayed` is invoked', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var debounced = _.debounce(function() {
- callCount++;
- }, 32, { 'maxWait': 64 });
-
- debounced();
-
- setTimeout(function() {
- debounced();
- assert.strictEqual(callCount, 1);
- }, 128);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- done();
- }, 192);
- });
-
- QUnit.test('should invoke the trailing call with the correct arguments and `this` binding', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var actual,
- callCount = 0,
- object = {};
-
- var debounced = _.debounce(function(value) {
- actual = [this];
- push.apply(actual, arguments);
- return ++callCount != 2;
- }, 32, { 'leading': true, 'maxWait': 64 });
-
- while (true) {
- if (!debounced.call(object, 'a')) {
- break;
- }
- }
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- assert.deepEqual(actual, [object, 'a']);
- done();
- }, 64);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.deburr');
-
- (function() {
- QUnit.test('should convert latin-1 supplementary letters to basic latin', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(burredLetters, _.deburr);
- assert.deepEqual(actual, deburredLetters);
- });
-
- QUnit.test('should not deburr latin-1 mathematical operators', function(assert) {
- assert.expect(1);
-
- var operators = ['\xd7', '\xf7'],
- actual = lodashStable.map(operators, _.deburr);
-
- assert.deepEqual(actual, operators);
- });
-
- QUnit.test('should deburr combining diacritical marks', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(comboMarks, lodashStable.constant('ei'));
-
- var actual = lodashStable.map(comboMarks, function(chr) {
- return _.deburr('e' + chr + 'i');
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.defaults');
-
- (function() {
- QUnit.test('should assign source properties if missing on `object`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.defaults({ 'a': 1 }, { 'a': 2, 'b': 2 }), { 'a': 1, 'b': 2 });
- });
-
- QUnit.test('should accept multiple sources', function(assert) {
- assert.expect(2);
-
- var expected = { 'a': 1, 'b': 2, 'c': 3 };
- assert.deepEqual(_.defaults({ 'a': 1, 'b': 2 }, { 'b': 3 }, { 'c': 3 }), expected);
- assert.deepEqual(_.defaults({ 'a': 1, 'b': 2 }, { 'b': 3, 'c': 3 }, { 'c': 2 }), expected);
- });
-
- QUnit.test('should not overwrite `null` values', function(assert) {
- assert.expect(1);
-
- var actual = _.defaults({ 'a': null }, { 'a': 1 });
- assert.strictEqual(actual.a, null);
- });
-
- QUnit.test('should overwrite `undefined` values', function(assert) {
- assert.expect(1);
-
- var actual = _.defaults({ 'a': undefined }, { 'a': 1 });
- assert.strictEqual(actual.a, 1);
- });
-
- QUnit.test('should assign properties that shadow those on `Object.prototype`', function(assert) {
- assert.expect(2);
-
- var object = {
- 'constructor': objectProto.constructor,
- 'hasOwnProperty': objectProto.hasOwnProperty,
- 'isPrototypeOf': objectProto.isPrototypeOf,
- 'propertyIsEnumerable': objectProto.propertyIsEnumerable,
- 'toLocaleString': objectProto.toLocaleString,
- 'toString': objectProto.toString,
- 'valueOf': objectProto.valueOf
- };
-
- var source = {
- 'constructor': 1,
- 'hasOwnProperty': 2,
- 'isPrototypeOf': 3,
- 'propertyIsEnumerable': 4,
- 'toLocaleString': 5,
- 'toString': 6,
- 'valueOf': 7
- };
-
- assert.deepEqual(_.defaults({}, source), source);
- assert.deepEqual(_.defaults({}, object, source), object);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.defaultsDeep');
-
- (function() {
- QUnit.test('should deep assign source properties if missing on `object`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': { 'b': 2 }, 'd': 4 },
- source = { 'a': { 'b': 3, 'c': 3 }, 'e': 5 },
- expected = { 'a': { 'b': 2, 'c': 3 }, 'd': 4, 'e': 5 };
-
- assert.deepEqual(_.defaultsDeep(object, source), expected);
- });
-
- QUnit.test('should accept multiple sources', function(assert) {
- assert.expect(2);
-
- var source1 = { 'a': { 'b': 3 } },
- source2 = { 'a': { 'c': 3 } },
- source3 = { 'a': { 'b': 3, 'c': 3 } },
- source4 = { 'a': { 'c': 4 } },
- expected = { 'a': { 'b': 2, 'c': 3 } };
-
- assert.deepEqual(_.defaultsDeep({ 'a': { 'b': 2 } }, source1, source2), expected);
- assert.deepEqual(_.defaultsDeep({ 'a': { 'b': 2 } }, source3, source4), expected);
- });
-
- QUnit.test('should not overwrite `null` values', function(assert) {
- assert.expect(1);
-
- var object = { 'a': { 'b': null } },
- source = { 'a': { 'b': 2 } },
- actual = _.defaultsDeep(object, source);
-
- assert.strictEqual(actual.a.b, null);
- });
-
- QUnit.test('should not overwrite regexp values', function(assert) {
- assert.expect(1);
-
- var object = { 'a': { 'b': /x/ } },
- source = { 'a': { 'b': /y/ } },
- actual = _.defaultsDeep(object, source);
-
- assert.deepEqual(actual.a.b, /x/);
- });
-
- QUnit.test('should not convert function properties to objects', function(assert) {
- assert.expect(2);
-
- var actual = _.defaultsDeep({}, { 'a': noop });
- assert.strictEqual(actual.a, noop);
-
- actual = _.defaultsDeep({}, { 'a': { 'b': noop } });
- assert.strictEqual(actual.a.b, noop);
- });
-
- QUnit.test('should overwrite `undefined` values', function(assert) {
- assert.expect(1);
-
- var object = { 'a': { 'b': undefined } },
- source = { 'a': { 'b': 2 } },
- actual = _.defaultsDeep(object, source);
-
- assert.strictEqual(actual.a.b, 2);
- });
-
- QUnit.test('should merge sources containing circular references', function(assert) {
- assert.expect(2);
-
- var object = {
- 'foo': { 'b': { 'c': { 'd': {} } } },
- 'bar': { 'a': 2 }
- };
-
- var source = {
- 'foo': { 'b': { 'c': { 'd': {} } } },
- 'bar': {}
- };
-
- object.foo.b.c.d = object;
- source.foo.b.c.d = source;
- source.bar.b = source.foo.b;
-
- var actual = _.defaultsDeep(object, source);
-
- assert.strictEqual(actual.bar.b, actual.foo.b);
- assert.strictEqual(actual.foo.b.c.d, actual.foo.b.c.d.foo.b.c.d);
- });
-
- QUnit.test('should not modify sources', function(assert) {
- assert.expect(3);
-
- var source1 = { 'a': 1, 'b': { 'c': 2 } },
- source2 = { 'b': { 'c': 3, 'd': 3 } },
- actual = _.defaultsDeep({}, source1, source2);
-
- assert.deepEqual(actual, { 'a': 1, 'b': { 'c': 2, 'd': 3 } });
- assert.deepEqual(source1, { 'a': 1, 'b': { 'c': 2 } });
- assert.deepEqual(source2, { 'b': { 'c': 3, 'd': 3 } });
- });
-
- QUnit.test('should not attempt a merge of a string into an array', function(assert) {
- assert.expect(1);
-
- var actual = _.defaultsDeep({ 'a': ['abc'] }, { 'a': 'abc' });
- assert.deepEqual(actual, { 'a': ['abc'] });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.defer');
-
- (function() {
- QUnit.test('should defer `func` execution', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var pass = false;
- _.defer(function() { pass = true; });
-
- setTimeout(function() {
- assert.ok(pass);
- done();
- }, 32);
- });
-
- QUnit.test('should provide additional arguments to `func`', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var args;
-
- _.defer(function() {
- args = slice.call(arguments);
- }, 1, 2);
-
- setTimeout(function() {
- assert.deepEqual(args, [1, 2]);
- done();
- }, 32);
- });
-
- QUnit.test('should be cancelable', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var pass = true,
- timerId = _.defer(function() { pass = false; });
-
- clearTimeout(timerId);
-
- setTimeout(function() {
- assert.ok(pass);
- done();
- }, 32);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.delay');
-
- (function() {
- QUnit.test('should delay `func` execution', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var pass = false;
- _.delay(function() { pass = true; }, 32);
-
- setTimeout(function() {
- assert.notOk(pass);
- }, 1);
-
- setTimeout(function() {
- assert.ok(pass);
- done();
- }, 64);
- });
-
- QUnit.test('should provide additional arguments to `func`', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var args;
-
- _.delay(function() {
- args = slice.call(arguments);
- }, 32, 1, 2);
-
- setTimeout(function() {
- assert.deepEqual(args, [1, 2]);
- done();
- }, 64);
- });
-
- QUnit.test('should use a default `wait` of `0`', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var pass = false;
- _.delay(function() { pass = true; });
-
- assert.notOk(pass);
-
- setTimeout(function() {
- assert.ok(pass);
- done();
- }, 0);
- });
-
- QUnit.test('should be cancelable', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var pass = true,
- timerId = _.delay(function() { pass = false; }, 32);
-
- clearTimeout(timerId);
-
- setTimeout(function() {
- assert.ok(pass);
- done();
- }, 64);
- });
-
- QUnit.test('should work with mocked `setTimeout`', function(assert) {
- assert.expect(1);
-
- if (!isPhantom) {
- var pass = false,
- setTimeout = root.setTimeout;
-
- setProperty(root, 'setTimeout', function(func) { func(); });
- _.delay(function() { pass = true; }, 32);
- setProperty(root, 'setTimeout', setTimeout);
-
- assert.ok(pass);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('difference methods');
-
- lodashStable.each(['difference', 'differenceBy', 'differenceWith'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return the difference of two arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([2, 1], [2, 3]);
- assert.deepEqual(actual, [1]);
- });
-
- QUnit.test('`_.' + methodName + '` should return the difference of multiple arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([2, 1, 2, 3], [3, 4], [3, 2]);
- assert.deepEqual(actual, [1]);
- });
-
- QUnit.test('`_.' + methodName + '` should treat `-0` as `0`', function(assert) {
- assert.expect(2);
-
- var array = [-0, 0];
-
- var actual = lodashStable.map(array, function(value) {
- return func(array, [value]);
- });
-
- assert.deepEqual(actual, [[], []]);
-
- actual = lodashStable.map(func([-0, 1], [1]), lodashStable.toString);
- assert.deepEqual(actual, ['0']);
- });
-
- QUnit.test('`_.' + methodName + '` should match `NaN`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func([1, NaN, 3], [NaN, 5, NaN]), [1, 3]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays', function(assert) {
- assert.expect(1);
-
- var array1 = lodashStable.range(LARGE_ARRAY_SIZE + 1),
- array2 = lodashStable.range(LARGE_ARRAY_SIZE),
- a = {},
- b = {},
- c = {};
-
- array1.push(a, b, c);
- array2.push(b, c, a);
-
- assert.deepEqual(func(array1, array2), [LARGE_ARRAY_SIZE]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of `-0` as `0`', function(assert) {
- assert.expect(2);
-
- var array = [-0, 0];
-
- var actual = lodashStable.map(array, function(value) {
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, lodashStable.constant(value));
- return func(array, largeArray);
- });
-
- assert.deepEqual(actual, [[], []]);
-
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, stubOne);
- actual = lodashStable.map(func([-0, 1], largeArray), lodashStable.toString);
- assert.deepEqual(actual, ['0']);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of `NaN`', function(assert) {
- assert.expect(1);
-
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, stubNaN);
- assert.deepEqual(func([1, NaN, 3], largeArray), [1, 3]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of objects', function(assert) {
- assert.expect(1);
-
- var object1 = {},
- object2 = {},
- largeArray = lodashStable.times(LARGE_ARRAY_SIZE, lodashStable.constant(object1));
-
- assert.deepEqual(func([object1, object2], largeArray), [object2]);
- });
-
- QUnit.test('`_.' + methodName + '` should ignore values that are not array-like', function(assert) {
- assert.expect(3);
-
- var array = [1, null, 3];
-
- assert.deepEqual(func(args, 3, { '0': 1 }), [1, 2, 3]);
- assert.deepEqual(func(null, array, 1), []);
- assert.deepEqual(func(array, args, null), [null]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.differenceBy');
-
- (function() {
- QUnit.test('should accept an `iteratee` argument', function(assert) {
- assert.expect(2);
-
- var actual = _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- assert.deepEqual(actual, [1.2]);
-
- actual = _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
- assert.deepEqual(actual, [{ 'x': 2 }]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.differenceBy([2.1, 1.2], [2.3, 3.4], function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [2.3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.differenceWith');
-
- (function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }],
- actual = _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], lodashStable.isEqual);
-
- assert.deepEqual(actual, [objects[1]]);
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var array = [-0, 1],
- largeArray = lodashStable.times(LARGE_ARRAY_SIZE, stubOne),
- others = [[1], largeArray],
- expected = lodashStable.map(others, lodashStable.constant(['-0']));
-
- var actual = lodashStable.map(others, function(other) {
- return lodashStable.map(_.differenceWith(array, other, lodashStable.eq), lodashStable.toString);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.divide');
-
- (function() {
- QUnit.test('should divide two numbers', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.divide(6, 4), 1.5);
- assert.strictEqual(_.divide(-6, 4), -1.5);
- assert.strictEqual(_.divide(-6, -4), 1.5);
- });
-
- QUnit.test('should coerce arguments to numbers', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.divide('6', '4'), 1.5);
- assert.deepEqual(_.divide('x', 'y'), NaN);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.drop');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should drop the first two elements', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.drop(array, 2), [3]);
- });
-
- QUnit.test('should treat falsey `n` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? [2, 3] : array;
- });
-
- var actual = lodashStable.map(falsey, function(n) {
- return _.drop(array, n);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return all elements when `n` < `1`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([0, -1, -Infinity], function(n) {
- assert.deepEqual(_.drop(array, n), array);
- });
- });
-
- QUnit.test('should return an empty array when `n` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(n) {
- assert.deepEqual(_.drop(array, n), []);
- });
- });
-
- QUnit.test('should coerce `n` to an integer', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.drop(array, 1.6), [2, 3]);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
- actual = lodashStable.map(array, _.drop);
-
- assert.deepEqual(actual, [[2, 3], [5, 6], [8, 9]]);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- var array = lodashStable.range(1, LARGE_ARRAY_SIZE + 1),
- predicate = function(value) { values.push(value); return isEven(value); },
- values = [],
- actual = _(array).drop(2).drop().value();
-
- assert.deepEqual(actual, array.slice(3));
-
- actual = _(array).filter(predicate).drop(2).drop().value();
- assert.deepEqual(values, array);
- assert.deepEqual(actual, _.drop(_.drop(_.filter(array, predicate), 2)));
-
- actual = _(array).drop(2).dropRight().drop().dropRight(2).value();
- assert.deepEqual(actual, _.dropRight(_.drop(_.dropRight(_.drop(array, 2))), 2));
-
- values = [];
-
- actual = _(array).drop().filter(predicate).drop(2).dropRight().drop().dropRight(2).value();
- assert.deepEqual(values, array.slice(1));
- assert.deepEqual(actual, _.dropRight(_.drop(_.dropRight(_.drop(_.filter(_.drop(array), predicate), 2))), 2));
- }
- else {
- skipAssert(assert, 6);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.dropRight');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should drop the last two elements', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.dropRight(array, 2), [1]);
- });
-
- QUnit.test('should treat falsey `n` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? [1, 2] : array;
- });
-
- var actual = lodashStable.map(falsey, function(n) {
- return _.dropRight(array, n);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return all elements when `n` < `1`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([0, -1, -Infinity], function(n) {
- assert.deepEqual(_.dropRight(array, n), array);
- });
- });
-
- QUnit.test('should return an empty array when `n` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(n) {
- assert.deepEqual(_.dropRight(array, n), []);
- });
- });
-
- QUnit.test('should coerce `n` to an integer', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.dropRight(array, 1.6), [1, 2]);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
- actual = lodashStable.map(array, _.dropRight);
-
- assert.deepEqual(actual, [[1, 2], [4, 5], [7, 8]]);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- var array = lodashStable.range(1, LARGE_ARRAY_SIZE + 1),
- predicate = function(value) { values.push(value); return isEven(value); },
- values = [],
- actual = _(array).dropRight(2).dropRight().value();
-
- assert.deepEqual(actual, array.slice(0, -3));
-
- actual = _(array).filter(predicate).dropRight(2).dropRight().value();
- assert.deepEqual(values, array);
- assert.deepEqual(actual, _.dropRight(_.dropRight(_.filter(array, predicate), 2)));
-
- actual = _(array).dropRight(2).drop().dropRight().drop(2).value();
- assert.deepEqual(actual, _.drop(_.dropRight(_.drop(_.dropRight(array, 2))), 2));
-
- values = [];
-
- actual = _(array).dropRight().filter(predicate).dropRight(2).drop().dropRight().drop(2).value();
- assert.deepEqual(values, array.slice(0, -1));
- assert.deepEqual(actual, _.drop(_.dropRight(_.drop(_.dropRight(_.filter(_.dropRight(array), predicate), 2))), 2));
- }
- else {
- skipAssert(assert, 6);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.dropRightWhile');
-
- (function() {
- var array = [1, 2, 3, 4];
-
- var objects = [
- { 'a': 0, 'b': 0 },
- { 'a': 1, 'b': 1 },
- { 'a': 2, 'b': 2 }
- ];
-
- QUnit.test('should drop elements while `predicate` returns truthy', function(assert) {
- assert.expect(1);
-
- var actual = _.dropRightWhile(array, function(n) {
- return n > 2;
- });
-
- assert.deepEqual(actual, [1, 2]);
- });
-
- QUnit.test('should provide the correct `predicate` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.dropRightWhile(array, function() {
- args = slice.call(arguments);
- });
-
- assert.deepEqual(args, [4, 3, array]);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.dropRightWhile(objects, { 'b': 2 }), objects.slice(0, 2));
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.dropRightWhile(objects, ['b', 2]), objects.slice(0, 2));
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.dropRightWhile(objects, 'b'), objects.slice(0, 1));
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var wrapped = _(array).dropRightWhile(function(n) {
- return n > 2;
- });
-
- assert.ok(wrapped instanceof _);
- assert.deepEqual(wrapped.value(), [1, 2]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.dropWhile');
-
- (function() {
- var array = [1, 2, 3, 4];
-
- var objects = [
- { 'a': 2, 'b': 2 },
- { 'a': 1, 'b': 1 },
- { 'a': 0, 'b': 0 }
- ];
-
- QUnit.test('should drop elements while `predicate` returns truthy', function(assert) {
- assert.expect(1);
-
- var actual = _.dropWhile(array, function(n) {
- return n < 3;
- });
-
- assert.deepEqual(actual, [3, 4]);
- });
-
- QUnit.test('should provide the correct `predicate` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.dropWhile(array, function() {
- args = slice.call(arguments);
- });
-
- assert.deepEqual(args, [1, 0, array]);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.dropWhile(objects, { 'b': 2 }), objects.slice(1));
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.dropWhile(objects, ['b', 2]), objects.slice(1));
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.dropWhile(objects, 'b'), objects.slice(2));
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(3);
-
- if (!isNpm) {
- var array = lodashStable.range(1, LARGE_ARRAY_SIZE + 3),
- predicate = function(n) { return n < 3; },
- expected = _.dropWhile(array, predicate),
- wrapped = _(array).dropWhile(predicate);
-
- assert.deepEqual(wrapped.value(), expected);
- assert.deepEqual(wrapped.reverse().value(), expected.slice().reverse());
- assert.strictEqual(wrapped.last(), _.last(expected));
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should work in a lazy sequence with `drop`', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var array = lodashStable.range(1, LARGE_ARRAY_SIZE + 3);
-
- var actual = _(array)
- .dropWhile(function(n) { return n == 1; })
- .drop()
- .dropWhile(function(n) { return n == 3; })
- .value();
-
- assert.deepEqual(actual, array.slice(3));
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.endsWith');
-
- (function() {
- var string = 'abc';
-
- QUnit.test('should return `true` if a string ends with `target`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.endsWith(string, 'c'), true);
- });
-
- QUnit.test('should return `false` if a string does not end with `target`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.endsWith(string, 'b'), false);
- });
-
- QUnit.test('should work with a `position` argument', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.endsWith(string, 'b', 2), true);
- });
-
- QUnit.test('should work with `position` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 5, MAX_SAFE_INTEGER, Infinity], function(position) {
- assert.strictEqual(_.endsWith(string, 'c', position), true);
- });
- });
-
- QUnit.test('should treat falsey `position` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(position) {
- return _.endsWith(string, position === undefined ? 'c' : '', position);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should treat a negative `position` as `0`', function(assert) {
- assert.expect(6);
-
- lodashStable.each([-1, -3, -Infinity], function(position) {
- assert.ok(lodashStable.every(string, function(chr) {
- return !_.endsWith(string, chr, position);
- }));
- assert.strictEqual(_.endsWith(string, '', position), true);
- });
- });
-
- QUnit.test('should coerce `position` to an integer', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.endsWith(string, 'ab', 2.2), true);
- });
-
- QUnit.test('should return `true` when `target` is an empty string regardless of `position`', function(assert) {
- assert.expect(1);
-
- assert.ok(lodashStable.every([-Infinity, NaN, -3, -1, 0, 1, 2, 3, 5, MAX_SAFE_INTEGER, Infinity], function(position) {
- return _.endsWith(string, '', position, true);
- }));
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.eq');
-
- (function() {
- QUnit.test('should perform a `SameValueZero` comparison of two values', function(assert) {
- assert.expect(11);
-
- assert.strictEqual(_.eq(), true);
- assert.strictEqual(_.eq(undefined), true);
- assert.strictEqual(_.eq(0, -0), true);
- assert.strictEqual(_.eq(NaN, NaN), true);
- assert.strictEqual(_.eq(1, 1), true);
-
- assert.strictEqual(_.eq(null, undefined), false);
- assert.strictEqual(_.eq(1, Object(1)), false);
- assert.strictEqual(_.eq(1, '1'), false);
- assert.strictEqual(_.eq(1, '1'), false);
-
- var object = { 'a': 1 };
- assert.strictEqual(_.eq(object, object), true);
- assert.strictEqual(_.eq(object, { 'a': 1 }), false);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.escape');
-
- (function() {
- var escaped = '&amp;&lt;&gt;&quot;&#39;&#96;\/',
- unescaped = '&<>"\'`\/';
-
- escaped += escaped;
- unescaped += unescaped;
-
- QUnit.test('should escape values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.escape(unescaped), escaped);
- });
-
- QUnit.test('should not escape the "/" character', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.escape('/'), '/');
- });
-
- QUnit.test('should handle strings with nothing to escape', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.escape('abc'), 'abc');
- });
-
- QUnit.test('should escape the same characters unescaped by `_.unescape`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.escape(_.unescape(escaped)), escaped);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.escapeRegExp');
-
- (function() {
- var escaped = '\\^\\$\\.\\*\\+\\?\\(\\)\\[\\]\\{\\}\\|\\\\',
- unescaped = '^$.*+?()[]{}|\\';
-
- QUnit.test('should escape values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.escapeRegExp(unescaped + unescaped), escaped + escaped);
- });
-
- QUnit.test('should handle strings with nothing to escape', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.escapeRegExp('abc'), 'abc');
- });
-
- QUnit.test('should return an empty string for empty values', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined, ''],
- expected = lodashStable.map(values, stubString);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.escapeRegExp(value) : _.escapeRegExp();
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.every');
-
- (function() {
- QUnit.test('should return `true` if `predicate` returns truthy for all elements', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(lodashStable.every([true, 1, 'a'], identity), true);
- });
-
- QUnit.test('should return `true` for empty collections', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(empties, stubTrue);
-
- var actual = lodashStable.map(empties, function(value) {
- try {
- return _.every(value, identity);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` as soon as `predicate` returns falsey', function(assert) {
- assert.expect(2);
-
- var count = 0;
-
- assert.strictEqual(_.every([true, null, true], function(value) {
- count++;
- return value;
- }), false);
-
- assert.strictEqual(count, 2);
- });
-
- QUnit.test('should work with collections of `undefined` values (test in IE < 9)', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.every([undefined, undefined, undefined], identity), false);
- });
-
- QUnit.test('should use `_.identity` when `predicate` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value, index) {
- var array = [0];
- return index ? _.every(array, value) : _.every(array);
- });
-
- assert.deepEqual(actual, expected);
-
- expected = lodashStable.map(values, stubTrue);
- actual = lodashStable.map(values, function(value, index) {
- var array = [1];
- return index ? _.every(array, value) : _.every(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(2);
-
- var objects = [{ 'a': 0, 'b': 1 }, { 'a': 1, 'b': 2 }];
- assert.strictEqual(_.every(objects, 'a'), false);
- assert.strictEqual(_.every(objects, 'b'), true);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(2);
-
- var objects = [{ 'a': 0, 'b': 0 }, { 'a': 0, 'b': 1 }];
- assert.strictEqual(_.every(objects, { 'a': 0 }), true);
- assert.strictEqual(_.every(objects, { 'b': 1 }), false);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map([[1]], _.every);
- assert.deepEqual(actual, [true]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('strict mode checks');
-
- lodashStable.each(['assign', 'assignIn', 'bindAll', 'defaults'], function(methodName) {
- var func = _[methodName],
- isBindAll = methodName == 'bindAll';
-
- QUnit.test('`_.' + methodName + '` should ' + (isStrict ? '' : 'not ') + 'throw strict mode errors', function(assert) {
- assert.expect(1);
-
- if (freeze) {
- var object = freeze({ 'a': undefined, 'b': function() {} }),
- pass = !isStrict;
-
- try {
- func(object, isBindAll ? 'b' : { 'a': 1 });
- } catch (e) {
- pass = !pass;
- }
- assert.ok(pass);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.fill');
-
- (function() {
- QUnit.test('should use a default `start` of `0` and a default `end` of `length`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a'), ['a', 'a', 'a']);
- });
-
- QUnit.test('should use `undefined` for `value` if not given', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = _.fill(array);
-
- assert.deepEqual(actual, Array(3));
- assert.ok(lodashStable.every(actual, function(value, index) {
- return index in actual;
- }));
- });
-
- QUnit.test('should work with a positive `start`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', 1), [1, 'a', 'a']);
- });
-
- QUnit.test('should work with a `start` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(start) {
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', start), [1, 2, 3]);
- });
- });
-
- QUnit.test('should treat falsey `start` values as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, lodashStable.constant(['a', 'a', 'a']));
-
- var actual = lodashStable.map(falsey, function(start) {
- var array = [1, 2, 3];
- return _.fill(array, 'a', start);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with a negative `start`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', -1), [1, 2, 'a']);
- });
-
- QUnit.test('should work with a negative `start` <= negative `length`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([-3, -4, -Infinity], function(start) {
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', start), ['a', 'a', 'a']);
- });
- });
-
- QUnit.test('should work with `start` >= `end`', function(assert) {
- assert.expect(2);
-
- lodashStable.each([2, 3], function(start) {
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', start, 2), [1, 2, 3]);
- });
- });
-
- QUnit.test('should work with a positive `end`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', 0, 1), ['a', 2, 3]);
- });
-
- QUnit.test('should work with a `end` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(end) {
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', 0, end), ['a', 'a', 'a']);
- });
- });
-
- QUnit.test('should treat falsey `end` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? ['a', 'a', 'a'] : [1, 2, 3];
- });
-
- var actual = lodashStable.map(falsey, function(end) {
- var array = [1, 2, 3];
- return _.fill(array, 'a', 0, end);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with a negative `end`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', 0, -1), ['a', 'a', 3]);
- });
-
- QUnit.test('should work with a negative `end` <= negative `length`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([-3, -4, -Infinity], function(end) {
- var array = [1, 2, 3];
- assert.deepEqual(_.fill(array, 'a', 0, end), [1, 2, 3]);
- });
- });
-
- QUnit.test('should coerce `start` and `end` to integers', function(assert) {
- assert.expect(1);
-
- var positions = [[0.1, 1.6], ['0', 1], [0, '1'], ['1'], [NaN, 1], [1, NaN]];
-
- var actual = lodashStable.map(positions, function(pos) {
- var array = [1, 2, 3];
- return _.fill.apply(_, [array, 'a'].concat(pos));
- });
-
- assert.deepEqual(actual, [['a', 2, 3], ['a', 2, 3], ['a', 2, 3], [1, 'a', 'a'], ['a', 2, 3], [1, 2, 3]]);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2], [3, 4]],
- actual = lodashStable.map(array, _.fill);
-
- assert.deepEqual(actual, [[0, 0], [1, 1]]);
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(3);
-
- if (!isNpm) {
- var array = [1, 2, 3],
- wrapped = _(array).fill('a'),
- actual = wrapped.value();
-
- assert.ok(wrapped instanceof _);
- assert.strictEqual(actual, array);
- assert.deepEqual(actual, ['a', 'a', 'a']);
- }
- else {
- skipAssert(assert, 3);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.filter');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should return elements `predicate` returns truthy for', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.filter(array, isEven), [2]);
- });
-
- QUnit.test('should iterate over an object with numeric keys (test in Mobile Safari 8)', function(assert) {
- assert.expect(1);
-
- // Trigger a mobile Safari 8 JIT bug.
- // See https://github.com/lodash/lodash/issues/799.
- var counter = 0,
- object = { '1': 'foo', '8': 'bar', '50': 'baz' };
-
- lodashStable.times(1000, function(assert) {
- _.filter([], stubTrue);
- });
-
- _.filter(object, function() {
- counter++;
- return true;
- });
-
- assert.strictEqual(counter, 3);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- lodashStable.each(['find', 'findLast', 'findIndex', 'findLastIndex', 'findKey', 'findLastKey'], function(methodName) {
- QUnit.module('lodash.' + methodName);
-
- var func = _[methodName];
-
- (function() {
- var objects = [
- { 'a': 0, 'b': 0 },
- { 'a': 1, 'b': 1 },
- { 'a': 2, 'b': 2 }
- ];
-
- var expected = ({
- 'find': [objects[1], undefined, objects[2]],
- 'findLast': [objects[2], undefined, objects[2]],
- 'findIndex': [1, -1, 2],
- 'findLastIndex': [2, -1, 2],
- 'findKey': ['1', undefined, '2'],
- 'findLastKey': ['2', undefined, '2']
- })[methodName];
-
- QUnit.test('`_.' + methodName + '` should return the found value', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(objects, function(object) { return object.a; }), expected[0]);
- });
-
- QUnit.test('`_.' + methodName + '` should return `' + expected[1] + '` if value is not found', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(objects, function(object) { return object.a === 3; }), expected[1]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(objects, { 'b': 2 }), expected[2]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(objects, ['b', 2]), expected[2]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(objects, 'b'), expected[0]);
- });
-
- QUnit.test('`_.' + methodName + '` should return `' + expected[1] + '` for empty collections', function(assert) {
- assert.expect(1);
-
- var emptyValues = lodashStable.endsWith(methodName, 'Index') ? lodashStable.reject(empties, lodashStable.isPlainObject) : empties,
- expecting = lodashStable.map(emptyValues, lodashStable.constant(expected[1]));
-
- var actual = lodashStable.map(emptyValues, function(value) {
- try {
- return func(value, { 'a': 3 });
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expecting);
- });
- }());
-
- (function() {
- var array = [1, 2, 3, 4];
-
- var expected = ({
- 'find': [0, 1, 2, 3],
- 'findLast': [3, 2, 1, 0],
- 'findIndex': [0, 1, 2, 3],
- 'findLastIndex': [3, 2, 1, 0]
- })[methodName];
-
- if (expected != null) {
- QUnit.test('`_.' + methodName + '` should pass the index as the second argument for `iteratee`', function(assert) {
- assert.expect(1);
-
- var actual = [];
-
- func(array, function(n, index) {
- actual.push(index);
- return false;
- });
-
- assert.deepEqual(actual, expected);
- });
- }
- }());
-
- (function() {
- var array = [1, 2, 3, 4];
-
- QUnit.test('`_.' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- var expected = ({
- 'find': 1,
- 'findLast': 4,
- 'findIndex': 0,
- 'findLastIndex': 3,
- 'findKey': '0',
- 'findLastKey': '3'
- })[methodName];
-
- if (!isNpm) {
- assert.strictEqual(_(array)[methodName](), expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(array).chain()[methodName]() instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should not execute immediately when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _(array).chain()[methodName]();
- assert.strictEqual(wrapped.__wrapped__, array);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should work in a lazy sequence', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var largeArray = lodashStable.range(1, LARGE_ARRAY_SIZE + 1),
- smallArray = array;
-
- lodashStable.times(2, function(index) {
- var array = index ? largeArray : smallArray,
- wrapped = _(array).filter(isEven);
-
- assert.strictEqual(wrapped[methodName](), func(lodashStable.filter(array, isEven)));
- });
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- (function() {
- var expected = ({
- 'find': 1,
- 'findLast': 2,
- 'findKey': 'a',
- 'findLastKey': 'b'
- })[methodName];
-
- if (expected != null) {
- QUnit.test('`_.' + methodName + '` should work with an object for `collection`', function(assert) {
- assert.expect(1);
-
- var actual = func({ 'a': 1, 'b': 2, 'c': 3 }, function(n) {
- return n < 3;
- });
-
- assert.strictEqual(actual, expected);
- });
- }
- }());
-
- (function() {
- var expected = ({
- 'find': ['a', 'b', 'c'],
- 'findLast': ['c', 'b', 'a'],
- 'findKey': ['a', 'b', 'c'],
- 'findLastKey': ['c', 'b', 'a']
- })[methodName];
-
- if (expected != null) {
- QUnit.test('`_.' + methodName + '` should pass the key as the second argument for `iteratee`', function(assert) {
- assert.expect(1);
-
- var actual = [];
-
- func({ 'a': 1, 'b': 2, 'c': 3 }, function(n, key) {
- actual.push(key);
- return false;
- });
-
- assert.deepEqual(actual, expected);
- });
- }
- }());
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.find and lodash.findLast');
-
- lodashStable.each(['find', 'findLast'], function(methodName) {
- var isFind = methodName == 'find';
-
- QUnit.test('`_.' + methodName + '` should support shortcut fusion', function(assert) {
- assert.expect(3);
-
- if (!isNpm) {
- var findCount = 0,
- mapCount = 0,
- array = lodashStable.range(1, LARGE_ARRAY_SIZE + 1),
- iteratee = function(value) { mapCount++; return square(value); },
- predicate = function(value) { findCount++; return isEven(value); },
- actual = _(array).map(iteratee)[methodName](predicate);
-
- assert.strictEqual(findCount, isFind ? 2 : 1);
- assert.strictEqual(mapCount, isFind ? 2 : 1);
- assert.strictEqual(actual, isFind ? 4 : square(LARGE_ARRAY_SIZE));
- }
- else {
- skipAssert(assert, 3);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.find and lodash.includes');
-
- lodashStable.each(['includes', 'find'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3, 4)),
- func = _[methodName],
- isIncludes = methodName == 'includes',
- resolve = methodName == 'find' ? lodashStable.curry(lodashStable.eq) : identity;
-
- lodashStable.each({
- 'an `arguments` object': args,
- 'an array': [1, 2, 3, 4]
- },
- function(collection, key) {
- var values = lodashStable.toArray(collection);
-
- QUnit.test('`_.' + methodName + '` should work with ' + key + ' and a positive `fromIndex`', function(assert) {
- assert.expect(1);
-
- var expected = [
- isIncludes || values[2],
- isIncludes ? false : undefined
- ];
-
- var actual = [
- func(collection, resolve(values[2]), 2),
- func(collection, resolve(values[1]), 2)
- ];
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with ' + key + ' and a `fromIndex` >= `length`', function(assert) {
- assert.expect(1);
-
- var indexes = [4, 6, Math.pow(2, 32), Infinity];
-
- var expected = lodashStable.map(indexes, function() {
- var result = isIncludes ? false : undefined;
- return [result, result, result];
- });
-
- var actual = lodashStable.map(indexes, function(fromIndex) {
- return [
- func(collection, resolve(1), fromIndex),
- func(collection, resolve(undefined), fromIndex),
- func(collection, resolve(''), fromIndex)
- ];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with ' + key + ' and treat falsey `fromIndex` values as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, lodashStable.constant(isIncludes || values[0]));
-
- var actual = lodashStable.map(falsey, function(fromIndex) {
- return func(collection, resolve(values[0]), fromIndex);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with ' + key + ' and coerce `fromIndex` to an integer', function(assert) {
- assert.expect(1);
-
- var expected = [
- isIncludes || values[0],
- isIncludes || values[0],
- isIncludes ? false : undefined
- ];
-
- var actual = [
- func(collection, resolve(values[0]), 0.1),
- func(collection, resolve(values[0]), NaN),
- func(collection, resolve(values[0]), '1')
- ];
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with ' + key + ' and a negative `fromIndex`', function(assert) {
- assert.expect(1);
-
- var expected = [
- isIncludes || values[2],
- isIncludes ? false : undefined
- ];
-
- var actual = [
- func(collection, resolve(values[2]), -2),
- func(collection, resolve(values[1]), -2)
- ];
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with ' + key + ' and a negative `fromIndex` <= `-length`', function(assert) {
- assert.expect(1);
-
- var indexes = [-4, -6, -Infinity],
- expected = lodashStable.map(indexes, lodashStable.constant(isIncludes || values[0]));
-
- var actual = lodashStable.map(indexes, function(fromIndex) {
- return func(collection, resolve(values[0]), fromIndex);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.findIndex and lodash.indexOf');
-
- lodashStable.each(['findIndex', 'indexOf'], function(methodName) {
- var array = [1, 2, 3, 1, 2, 3],
- func = _[methodName],
- resolve = methodName == 'findIndex' ? lodashStable.curry(lodashStable.eq) : identity;
-
- QUnit.test('`_.' + methodName + '` should return the index of the first matched value', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array, resolve(3)), 2);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a positive `fromIndex`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array, resolve(1), 2), 3);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a `fromIndex` >= `length`', function(assert) {
- assert.expect(1);
-
- var values = [6, 8, Math.pow(2, 32), Infinity],
- expected = lodashStable.map(values, lodashStable.constant([-1, -1, -1]));
-
- var actual = lodashStable.map(values, function(fromIndex) {
- return [
- func(array, resolve(undefined), fromIndex),
- func(array, resolve(1), fromIndex),
- func(array, resolve(''), fromIndex)
- ];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a negative `fromIndex`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array, resolve(2), -3), 4);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a negative `fromIndex` <= `-length`', function(assert) {
- assert.expect(1);
-
- var values = [-6, -8, -Infinity],
- expected = lodashStable.map(values, stubZero);
-
- var actual = lodashStable.map(values, function(fromIndex) {
- return func(array, resolve(1), fromIndex);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should treat falsey `fromIndex` values as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubZero);
-
- var actual = lodashStable.map(falsey, function(fromIndex) {
- return func(array, resolve(1), fromIndex);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `fromIndex` to an integer', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array, resolve(2), 1.2), 1);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.findLast');
-
- (function() {
- var args = (function() { return arguments; }(1, 2, 3, 4)),
- resolve = lodashStable.curry(lodashStable.eq);
-
- lodashStable.each({
- 'an `arguments` object': args,
- 'an array': [1, 2, 3, 4],
- },
- function(collection, key) {
- var values = lodashStable.toArray(collection);
-
- QUnit.test('should work with ' + key + ' and a positive `fromIndex`', function(assert) {
- assert.expect(1);
-
- var expected = [
- values[2],
- undefined
- ];
-
- var actual = [
- _.findLast(collection, resolve(values[2]), 2),
- _.findLast(collection, resolve(values[3]), 2)
- ];
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with ' + key + ' and a `fromIndex` >= `length`', function(assert) {
- assert.expect(1);
-
- var indexes = [4, 6, Math.pow(2, 32), Infinity];
-
- var expected = lodashStable.map(indexes, lodashStable.constant([values[0], undefined, undefined]));
-
- var actual = lodashStable.map(indexes, function(fromIndex) {
- return [
- _.findLast(collection, resolve(1), fromIndex),
- _.findLast(collection, resolve(undefined), fromIndex),
- _.findLast(collection, resolve(''), fromIndex)
- ];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with ' + key + ' and treat falsey `fromIndex` values correctly', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? values[3] : undefined;
- });
-
- var actual = lodashStable.map(falsey, function(fromIndex) {
- return _.findLast(collection, resolve(values[3]), fromIndex);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with ' + key + ' and coerce `fromIndex` to an integer', function(assert) {
- assert.expect(1);
-
- var expected = [
- values[0],
- values[0],
- undefined
- ];
-
- var actual = [
- _.findLast(collection, resolve(values[0]), 0.1),
- _.findLast(collection, resolve(values[0]), NaN),
- _.findLast(collection, resolve(values[2]), '1')
- ];
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with ' + key + ' and a negative `fromIndex`', function(assert) {
- assert.expect(1);
-
- var expected = [
- values[2],
- undefined
- ];
-
- var actual = [
- _.findLast(collection, resolve(values[2]), -2),
- _.findLast(collection, resolve(values[3]), -2)
- ];
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with ' + key + ' and a negative `fromIndex` <= `-length`', function(assert) {
- assert.expect(1);
-
- var indexes = [-4, -6, -Infinity],
- expected = lodashStable.map(indexes, lodashStable.constant(values[0]));
-
- var actual = lodashStable.map(indexes, function(fromIndex) {
- return _.findLast(collection, resolve(values[0]), fromIndex);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.flip');
-
- (function() {
- function fn() {
- return slice.call(arguments);
- }
-
- QUnit.test('should flip arguments provided to `func`', function(assert) {
- assert.expect(1);
-
- var flipped = _.flip(fn);
- assert.deepEqual(flipped('a', 'b', 'c', 'd'), ['d', 'c', 'b', 'a']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.flatMapDepth');
-
- (function() {
- var array = [1, [2, [3, [4]], 5]];
-
- QUnit.test('should use a default `depth` of `1`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.flatMapDepth(array, identity), [1, 2, [3, [4]], 5]);
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant([1, 2, [3, [4]], 5]));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.flatMapDepth(array, value) : _.flatMapDepth(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should treat a `depth` of < `1` as a shallow clone', function(assert) {
- assert.expect(2);
-
- lodashStable.each([-1, 0], function(depth) {
- assert.deepEqual(_.flatMapDepth(array, identity, depth), [1, [2, [3, [4]], 5]]);
- });
- });
-
- QUnit.test('should coerce `depth` to an integer', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.flatMapDepth(array, identity, 2.2), [1, 2, 3, [4], 5]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('flatMap methods');
-
- lodashStable.each(['flatMap', 'flatMapDeep', 'flatMapDepth'], function(methodName) {
- var func = _[methodName],
- array = [1, 2, 3, 4];
-
- function duplicate(n) {
- return [n, n];
- }
-
- QUnit.test('`_.' + methodName + '` should map values in `array` to a new flattened array', function(assert) {
- assert.expect(1);
-
- var actual = func(array, duplicate),
- expected = lodashStable.flatten(lodashStable.map(array, duplicate));
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': [1, 2] }, { 'a': [3, 4] }];
- assert.deepEqual(func(objects, 'a'), array);
- });
-
- QUnit.test('`_.' + methodName + '` should iterate over own string keyed properties of objects', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = [1, 2];
- }
- Foo.prototype.b = [3, 4];
-
- var actual = func(new Foo, identity);
- assert.deepEqual(actual, [1, 2]);
- });
-
- QUnit.test('`_.' + methodName + '` should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(2);
-
- var array = [[1, 2], [3, 4]],
- object = { 'a': [1, 2], 'b': [3, 4] },
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant([1, 2, 3, 4]));
-
- lodashStable.each([array, object], function(collection) {
- var actual = lodashStable.map(values, function(value, index) {
- return index ? func(collection, value) : func(collection);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should accept a falsey `collection` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubArray);
-
- var actual = lodashStable.map(falsey, function(collection, index) {
- try {
- return index ? func(collection) : func();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should treat number values for `collection` as empty', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func(1), []);
- });
-
- QUnit.test('`_.' + methodName + '` should work with objects with non-number length properties', function(assert) {
- assert.expect(1);
-
- var object = { 'length': [1, 2] };
- assert.deepEqual(func(object, identity), [1, 2]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.flattenDepth');
-
- (function() {
- var array = [1, [2, [3, [4]], 5]];
-
- QUnit.test('should use a default `depth` of `1`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.flattenDepth(array), [1, 2, [3, [4]], 5]);
- });
-
- QUnit.test('should treat a `depth` of < `1` as a shallow clone', function(assert) {
- assert.expect(2);
-
- lodashStable.each([-1, 0], function(depth) {
- assert.deepEqual(_.flattenDepth(array, depth), [1, [2, [3, [4]], 5]]);
- });
- });
-
- QUnit.test('should coerce `depth` to an integer', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.flattenDepth(array, 2.2), [1, 2, 3, [4], 5]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('flatten methods');
-
- (function() {
- var args = arguments,
- array = [1, [2, [3, [4]], 5]];
-
- QUnit.test('should flatten `arguments` objects', function(assert) {
- assert.expect(3);
-
- var array = [args, [args]];
-
- assert.deepEqual(_.flatten(array), [1, 2, 3, args]);
- assert.deepEqual(_.flattenDeep(array), [1, 2, 3, 1, 2, 3]);
- assert.deepEqual(_.flattenDepth(array, 2), [1, 2, 3, 1, 2, 3]);
- });
-
- QUnit.test('should treat sparse arrays as dense', function(assert) {
- assert.expect(6);
-
- var array = [[1, 2, 3], Array(3)],
- expected = [1, 2, 3];
-
- expected.push(undefined, undefined, undefined);
-
- lodashStable.each([_.flatten(array), _.flattenDeep(array), _.flattenDepth(array)], function(actual) {
- assert.deepEqual(actual, expected);
- assert.ok('4' in actual);
- });
- });
-
- QUnit.test('should work with extremely large arrays', function(assert) {
- assert.expect(3);
-
- lodashStable.times(3, function(index) {
- var expected = Array(5e5);
- try {
- var func = _.flatten;
- if (index == 1) {
- func = _.flattenDeep;
- } else if (index == 2) {
- func = _.flattenDepth;
- }
- assert.deepEqual(func([expected]), expected);
- } catch (e) {
- assert.ok(false, e.message);
- }
- });
- });
-
- QUnit.test('should work with empty arrays', function(assert) {
- assert.expect(3);
-
- var array = [[], [[]], [[], [[[]]]]];
-
- assert.deepEqual(_.flatten(array), [[], [], [[[]]]]);
- assert.deepEqual(_.flattenDeep(array), []);
- assert.deepEqual(_.flattenDepth(array, 2), [[[]]]);
- });
-
- QUnit.test('should support flattening of nested arrays', function(assert) {
- assert.expect(3);
-
- assert.deepEqual(_.flatten(array), [1, 2, [3, [4]], 5]);
- assert.deepEqual(_.flattenDeep(array), [1, 2, 3, 4, 5]);
- assert.deepEqual(_.flattenDepth(array, 2), [1, 2, 3, [4], 5]);
- });
-
- QUnit.test('should return an empty array for non array-like objects', function(assert) {
- assert.expect(3);
-
- var expected = [],
- nonArray = { 'a': 1 };
-
- assert.deepEqual(_.flatten(nonArray), expected);
- assert.deepEqual(_.flattenDeep(nonArray), expected);
- assert.deepEqual(_.flattenDepth(nonArray, 2), expected);
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- var wrapped = _(array),
- actual = wrapped.flatten();
-
- assert.ok(actual instanceof _);
- assert.deepEqual(actual.value(), [1, 2, [3, [4]], 5]);
-
- actual = wrapped.flattenDeep();
-
- assert.ok(actual instanceof _);
- assert.deepEqual(actual.value(), [1, 2, 3, 4, 5]);
-
- actual = wrapped.flattenDepth(2);
-
- assert.ok(actual instanceof _);
- assert.deepEqual(actual.value(), [1, 2, 3, [4], 5]);
- }
- else {
- skipAssert(assert, 6);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('flow methods');
-
- lodashStable.each(['flow', 'flowRight'], function(methodName) {
- var func = _[methodName],
- isFlow = methodName == 'flow';
-
- QUnit.test('`_.' + methodName + '` should supply each function with the return value of the previous', function(assert) {
- assert.expect(1);
-
- var fixed = function(n) { return n.toFixed(1); },
- combined = isFlow ? func(add, square, fixed) : func(fixed, square, add);
-
- assert.strictEqual(combined(1, 2), '9.0');
- });
-
- QUnit.test('`_.' + methodName + '` should return a new function', function(assert) {
- assert.expect(1);
-
- assert.notStrictEqual(func(noop), noop);
- });
-
- QUnit.test('`_.' + methodName + '` should return an identity function when no arguments are given', function(assert) {
- assert.expect(6);
-
- _.times(2, function(index) {
- try {
- var combined = index ? func([]) : func();
- assert.strictEqual(combined('a'), 'a');
- } catch (e) {
- assert.ok(false, e.message);
- }
- assert.strictEqual(combined.length, 0);
- assert.notStrictEqual(combined, identity);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should work with a curried function and `_.head`', function(assert) {
- assert.expect(1);
-
- var curried = _.curry(identity);
-
- var combined = isFlow
- ? func(_.head, curried)
- : func(curried, _.head);
-
- assert.strictEqual(combined([1]), 1);
- });
-
- QUnit.test('`_.' + methodName + '` should support shortcut fusion', function(assert) {
- assert.expect(6);
-
- var filterCount,
- mapCount,
- array = lodashStable.range(LARGE_ARRAY_SIZE),
- iteratee = function(value) { mapCount++; return square(value); },
- predicate = function(value) { filterCount++; return isEven(value); };
-
- lodashStable.times(2, function(index) {
- var filter1 = _.filter,
- filter2 = _.curry(_.rearg(_.ary(_.filter, 2), 1, 0), 2),
- filter3 = (_.filter = index ? filter2 : filter1, filter2(predicate));
-
- var map1 = _.map,
- map2 = _.curry(_.rearg(_.ary(_.map, 2), 1, 0), 2),
- map3 = (_.map = index ? map2 : map1, map2(iteratee));
-
- var take1 = _.take,
- take2 = _.curry(_.rearg(_.ary(_.take, 2), 1, 0), 2),
- take3 = (_.take = index ? take2 : take1, take2(2));
-
- var combined = isFlow
- ? func(map3, filter3, _.compact, take3)
- : func(take3, _.compact, filter3, map3);
-
- filterCount = mapCount = 0;
- assert.deepEqual(combined(array), [4, 16]);
-
- if (!isNpm && WeakMap && WeakMap.name) {
- assert.strictEqual(filterCount, 5, 'filterCount');
- assert.strictEqual(mapCount, 5, 'mapCount');
- }
- else {
- skipAssert(assert, 2);
- }
- _.filter = filter1;
- _.map = map1;
- _.take = take1;
- });
- });
-
- QUnit.test('`_.' + methodName + '` should work with curried functions with placeholders', function(assert) {
- assert.expect(1);
-
- var curried = _.curry(_.ary(_.map, 2), 2),
- getProp = curried(curried.placeholder, 'a'),
- objects = [{ 'a': 1 }, { 'a': 2 }, { 'a': 1 }];
-
- var combined = isFlow
- ? func(getProp, _.uniq)
- : func(_.uniq, getProp);
-
- assert.deepEqual(combined(objects), [1, 2]);
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _(noop)[methodName]();
- assert.ok(wrapped instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.forEach');
-
- (function() {
- QUnit.test('should be aliased', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.each, _.forEach);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.forEachRight');
-
- (function() {
- QUnit.test('should be aliased', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.eachRight, _.forEachRight);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('forIn methods');
-
- lodashStable.each(['forIn', 'forInRight'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` iterates over inherited string keyed properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var keys = [];
- func(new Foo, function(value, key) { keys.push(key); });
- assert.deepEqual(keys.sort(), ['a', 'b']);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('forOwn methods');
-
- lodashStable.each(['forOwn', 'forOwnRight'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should iterate over `length` properties', function(assert) {
- assert.expect(1);
-
- var object = { '0': 'zero', '1': 'one', 'length': 2 },
- props = [];
-
- func(object, function(value, prop) { props.push(prop); });
- assert.deepEqual(props.sort(), ['0', '1', 'length']);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('iteration methods');
-
- (function() {
- var methods = [
- '_baseEach',
- 'countBy',
- 'every',
- 'filter',
- 'find',
- 'findIndex',
- 'findKey',
- 'findLast',
- 'findLastIndex',
- 'findLastKey',
- 'forEach',
- 'forEachRight',
- 'forIn',
- 'forInRight',
- 'forOwn',
- 'forOwnRight',
- 'groupBy',
- 'keyBy',
- 'map',
- 'mapKeys',
- 'mapValues',
- 'maxBy',
- 'minBy',
- 'omitBy',
- 'partition',
- 'pickBy',
- 'reject',
- 'some'
- ];
-
- var arrayMethods = [
- 'findIndex',
- 'findLastIndex',
- 'maxBy',
- 'minBy'
- ];
-
- var collectionMethods = [
- '_baseEach',
- 'countBy',
- 'every',
- 'filter',
- 'find',
- 'findLast',
- 'forEach',
- 'forEachRight',
- 'groupBy',
- 'keyBy',
- 'map',
- 'partition',
- 'reduce',
- 'reduceRight',
- 'reject',
- 'some'
- ];
-
- var forInMethods = [
- 'forIn',
- 'forInRight',
- 'omitBy',
- 'pickBy'
- ];
-
- var iterationMethods = [
- '_baseEach',
- 'forEach',
- 'forEachRight',
- 'forIn',
- 'forInRight',
- 'forOwn',
- 'forOwnRight'
- ];
-
- var objectMethods = [
- 'findKey',
- 'findLastKey',
- 'forIn',
- 'forInRight',
- 'forOwn',
- 'forOwnRight',
- 'mapKeys',
- 'mapValues',
- 'omitBy',
- 'pickBy'
- ];
-
- var rightMethods = [
- 'findLast',
- 'findLastIndex',
- 'findLastKey',
- 'forEachRight',
- 'forInRight',
- 'forOwnRight'
- ];
-
- var unwrappedMethods = [
- 'each',
- 'eachRight',
- 'every',
- 'find',
- 'findIndex',
- 'findKey',
- 'findLast',
- 'findLastIndex',
- 'findLastKey',
- 'forEach',
- 'forEachRight',
- 'forIn',
- 'forInRight',
- 'forOwn',
- 'forOwnRight',
- 'max',
- 'maxBy',
- 'min',
- 'minBy',
- 'some'
- ];
-
- lodashStable.each(methods, function(methodName) {
- var array = [1, 2, 3],
- func = _[methodName],
- isBy = /(^partition|By)$/.test(methodName),
- isFind = /^find/.test(methodName),
- isOmitPick = /^(?:omit|pick)By$/.test(methodName),
- isSome = methodName == 'some';
-
- QUnit.test('`_.' + methodName + '` should provide the correct iteratee arguments', function(assert) {
- assert.expect(1);
-
- if (func) {
- var args,
- expected = [1, 0, array];
-
- func(array, function() {
- args || (args = slice.call(arguments));
- });
-
- if (lodashStable.includes(rightMethods, methodName)) {
- expected[0] = 3;
- expected[1] = 2;
- }
- if (lodashStable.includes(objectMethods, methodName)) {
- expected[1] += '';
- }
- if (isBy) {
- expected.length = isOmitPick ? 2 : 1;
- }
- assert.deepEqual(args, expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should treat sparse arrays as dense', function(assert) {
- assert.expect(1);
-
- if (func) {
- var array = [1];
- array[2] = 3;
-
- var expected = lodashStable.includes(objectMethods, methodName)
- ? [[1, '0', array], [undefined, '1', array], [3, '2', array]]
- : [[1, 0, array], [undefined, 1, array], [3, 2, array]];
-
- if (isBy) {
- expected = lodashStable.map(expected, function(args) {
- return args.slice(0, isOmitPick ? 2 : 1);
- });
- }
- else if (lodashStable.includes(objectMethods, methodName)) {
- expected = lodashStable.map(expected, function(args) {
- args[1] += '';
- return args;
- });
- }
- if (lodashStable.includes(rightMethods, methodName)) {
- expected.reverse();
- }
- var argsList = [];
- func(array, function() {
- argsList.push(slice.call(arguments));
- return !(isFind || isSome);
- });
-
- assert.deepEqual(argsList, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each(lodashStable.difference(methods, objectMethods), function(methodName) {
- var array = [1, 2, 3],
- func = _[methodName],
- isEvery = methodName == 'every';
-
- array.a = 1;
-
- QUnit.test('`_.' + methodName + '` should not iterate custom properties on arrays', function(assert) {
- assert.expect(1);
-
- if (func) {
- var keys = [];
- func(array, function(value, key) {
- keys.push(key);
- return isEvery;
- });
-
- assert.notOk(lodashStable.includes(keys, 'a'));
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each(lodashStable.difference(methods, unwrappedMethods), function(methodName) {
- var array = [1, 2, 3],
- isBaseEach = methodName == '_baseEach';
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!(isBaseEach || isNpm)) {
- var wrapped = _(array)[methodName](noop);
- assert.ok(wrapped instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each(unwrappedMethods, function(methodName) {
- var array = [1, 2, 3];
-
- QUnit.test('`_.' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = _(array)[methodName](noop);
- assert.notOk(actual instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var wrapped = _(array).chain(),
- actual = wrapped[methodName](noop);
-
- assert.ok(actual instanceof _);
- assert.notStrictEqual(actual, wrapped);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- });
-
- lodashStable.each(lodashStable.difference(methods, arrayMethods, forInMethods), function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` iterates over own string keyed properties of objects', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- if (func) {
- var values = [];
- func(new Foo, function(value) { values.push(value); });
- assert.deepEqual(values, [1]);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each(iterationMethods, function(methodName) {
- var array = [1, 2, 3],
- func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return the collection', function(assert) {
- assert.expect(1);
-
- if (func) {
- assert.strictEqual(func(array, Boolean), array);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each(collectionMethods, function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should use `isArrayLike` to determine whether a value is array-like', function(assert) {
- assert.expect(3);
-
- if (func) {
- var isIteratedAsObject = function(object) {
- var result = false;
- func(object, function() { result = true; }, 0);
- return result;
- };
-
- var values = [-1, '1', 1.1, Object(1), MAX_SAFE_INTEGER + 1],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(length) {
- return isIteratedAsObject({ 'length': length });
- });
-
- var Foo = function(a) {};
- Foo.a = 1;
-
- assert.deepEqual(actual, expected);
- assert.ok(isIteratedAsObject(Foo));
- assert.notOk(isIteratedAsObject({ 'length': 0 }));
- }
- else {
- skipAssert(assert, 3);
- }
- });
- });
-
- lodashStable.each(methods, function(methodName) {
- var func = _[methodName],
- isFind = /^find/.test(methodName),
- isSome = methodName == 'some',
- isReduce = /^reduce/.test(methodName);
-
- QUnit.test('`_.' + methodName + '` should ignore changes to `length`', function(assert) {
- assert.expect(1);
-
- if (func) {
- var count = 0,
- array = [1];
-
- func(array, function() {
- if (++count == 1) {
- array.push(2);
- }
- return !(isFind || isSome);
- }, isReduce ? array : null);
-
- assert.strictEqual(count, 1);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each(lodashStable.difference(lodashStable.union(methods, collectionMethods), arrayMethods), function(methodName) {
- var func = _[methodName],
- isFind = /^find/.test(methodName),
- isSome = methodName == 'some',
- isReduce = /^reduce/.test(methodName);
-
- QUnit.test('`_.' + methodName + '` should ignore added `object` properties', function(assert) {
- assert.expect(1);
-
- if (func) {
- var count = 0,
- object = { 'a': 1 };
-
- func(object, function() {
- if (++count == 1) {
- object.b = 2;
- }
- return !(isFind || isSome);
- }, isReduce ? object : null);
-
- assert.strictEqual(count, 1);
- }
- else {
- skipAssert(assert);
- }
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('object assignments');
-
- lodashStable.each(['assign', 'assignIn', 'defaults', 'merge'], function(methodName) {
- var func = _[methodName],
- isAssign = methodName == 'assign',
- isDefaults = methodName == 'defaults';
-
- QUnit.test('`_.' + methodName + '` should coerce primitives to objects', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(primitives, function(value) {
- var object = Object(value);
- object.a = 1;
- return object;
- });
-
- var actual = lodashStable.map(primitives, function(value) {
- return func(value, { 'a': 1 });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should assign own ' + (isAssign ? '' : 'and inherited ') + 'string keyed source properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var expected = isAssign ? { 'a': 1 } : { 'a': 1, 'b': 2 };
- assert.deepEqual(func({}, new Foo), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should not skip a trailing function source', function(assert) {
- assert.expect(1);
-
- function fn() {}
- fn.b = 2;
-
- assert.deepEqual(func({}, { 'a': 1 }, fn), { 'a': 1, 'b': 2 });
- });
-
- QUnit.test('`_.' + methodName + '` should not error on nullish sources', function(assert) {
- assert.expect(1);
-
- try {
- assert.deepEqual(func({ 'a': 1 }, undefined, { 'b': 2 }, null), { 'a': 1, 'b': 2 });
- } catch (e) {
- assert.ok(false, e.message);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should create an object when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var source = { 'a': 1 },
- values = [null, undefined],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- var object = func(value, source);
- return object !== source && lodashStable.isEqual(object, source);
- });
-
- assert.deepEqual(actual, expected);
-
- actual = lodashStable.map(values, function(value) {
- return lodashStable.isEqual(func(value), {});
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work as an iteratee for methods like `_.reduce`', function(assert) {
- assert.expect(2);
-
- var array = [{ 'a': 1 }, { 'b': 2 }, { 'c': 3 }],
- expected = { 'a': isDefaults ? 0 : 1, 'b': 2, 'c': 3 };
-
- function fn() {};
- fn.a = array[0];
- fn.b = array[1];
- fn.c = array[2];
-
- assert.deepEqual(lodashStable.reduce(array, func, { 'a': 0 }), expected);
- assert.deepEqual(lodashStable.reduce(fn, func, { 'a': 0 }), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should not return the existing wrapped value when chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _({ 'a': 1 }),
- actual = wrapped[methodName]({ 'b': 2 });
-
- assert.notStrictEqual(actual, wrapped);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each(['assign', 'assignIn', 'merge'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should not treat `object` as `source`', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.prototype.a = 1;
-
- var actual = func(new Foo, { 'b': 2 });
- assert.notOk(_.has(actual, 'a'));
- });
- });
-
- lodashStable.each(['assign', 'assignIn', 'assignInWith', 'assignWith', 'defaults', 'merge', 'mergeWith'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should not assign values that are the same as their destinations', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['a', ['a'], { 'a': 1 }, NaN], function(value) {
- var object = {},
- pass = true;
-
- defineProperty(object, 'a', {
- 'enumerable': true,
- 'configurable': true,
- 'get': lodashStable.constant(value),
- 'set': function() { pass = false; }
- });
-
- func(object, { 'a': value });
- assert.ok(pass);
- });
- });
- });
-
- lodashStable.each(['assignWith', 'assignInWith', 'mergeWith'], function(methodName) {
- var func = _[methodName],
- isMergeWith = methodName == 'mergeWith';
-
- QUnit.test('`_.' + methodName + '` should provide the correct `customizer` arguments', function(assert) {
- assert.expect(3);
-
- var args,
- object = { 'a': 1 },
- source = { 'a': 2 },
- expected = lodashStable.map([1, 2, 'a', object, source], lodashStable.cloneDeep);
-
- func(object, source, function() {
- args || (args = lodashStable.map(slice.call(arguments, 0, 5), lodashStable.cloneDeep));
- });
-
- assert.deepEqual(args, expected, 'primitive property values');
-
- args = undefined;
- object = { 'a': 1 };
- source = { 'b': 2 };
- expected = lodashStable.map([undefined, 2, 'b', object, source], lodashStable.cloneDeep);
-
- func(object, source, function() {
- args || (args = lodashStable.map(slice.call(arguments, 0, 5), lodashStable.cloneDeep));
- });
-
- assert.deepEqual(args, expected, 'missing destination property');
-
- var argsList = [],
- objectValue = [1, 2],
- sourceValue = { 'b': 2 };
-
- object = { 'a': objectValue };
- source = { 'a': sourceValue };
- expected = [lodashStable.map([objectValue, sourceValue, 'a', object, source], lodashStable.cloneDeep)];
-
- if (isMergeWith) {
- expected.push(lodashStable.map([undefined, 2, 'b', objectValue, sourceValue], lodashStable.cloneDeep));
- }
- func(object, source, function() {
- argsList.push(lodashStable.map(slice.call(arguments, 0, 5), lodashStable.cloneDeep));
- });
-
- assert.deepEqual(argsList, expected, 'object property values');
- });
-
- QUnit.test('`_.' + methodName + '` should not treat the second argument as a `customizer` callback', function(assert) {
- assert.expect(2);
-
- function callback() {}
- callback.b = 2;
-
- var actual = func({ 'a': 1 }, callback);
- assert.deepEqual(actual, { 'a': 1, 'b': 2 });
-
- actual = func({ 'a': 1 }, callback, { 'c': 3 });
- assert.deepEqual(actual, { 'a': 1, 'b': 2, 'c': 3 });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('exit early');
-
- lodashStable.each(['_baseEach', 'forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'transform'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` can exit early when iterating arrays', function(assert) {
- assert.expect(1);
-
- if (func) {
- var array = [1, 2, 3],
- values = [];
-
- func(array, function(value, other) {
- values.push(lodashStable.isArray(value) ? other : value);
- return false;
- });
-
- assert.deepEqual(values, [lodashStable.endsWith(methodName, 'Right') ? 3 : 1]);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` can exit early when iterating objects', function(assert) {
- assert.expect(1);
-
- if (func) {
- var object = { 'a': 1, 'b': 2, 'c': 3 },
- values = [];
-
- func(object, function(value, other) {
- values.push(lodashStable.isArray(value) ? other : value);
- return false;
- });
-
- assert.strictEqual(values.length, 1);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('`__proto__` property bugs');
-
- (function() {
- QUnit.test('internal data objects should work with the `__proto__` key', function(assert) {
- assert.expect(4);
-
- var stringLiteral = '__proto__',
- stringObject = Object(stringLiteral),
- expected = [stringLiteral, stringObject];
-
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, function(count) {
- return isEven(count) ? stringLiteral : stringObject;
- });
-
- assert.deepEqual(_.difference(largeArray, largeArray), []);
- assert.deepEqual(_.intersection(largeArray, largeArray), expected);
- assert.deepEqual(_.uniq(largeArray), expected);
- assert.deepEqual(_.without.apply(_, [largeArray].concat(largeArray)), []);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.fromPairs');
-
- (function() {
- QUnit.test('should accept a two dimensional array', function(assert) {
- assert.expect(1);
-
- var array = [['a', 1], ['b', 2]],
- object = { 'a': 1, 'b': 2 },
- actual = _.fromPairs(array);
-
- assert.deepEqual(actual, object);
- });
-
- QUnit.test('should accept a falsey `array` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubObject);
-
- var actual = lodashStable.map(falsey, function(array, index) {
- try {
- return index ? _.fromPairs(array) : _.fromPairs();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not support deep paths', function(assert) {
- assert.expect(1);
-
- var actual = _.fromPairs([['a.b', 1]]);
- assert.deepEqual(actual, { 'a.b': 1 });
- });
-
- QUnit.test('should support consuming the return value of `_.toPairs`', function(assert) {
- assert.expect(1);
-
- var object = { 'a.b': 1 };
- assert.deepEqual(_.fromPairs(_.toPairs(object)), object);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var array = lodashStable.times(LARGE_ARRAY_SIZE, function(index) {
- return ['key' + index, index];
- });
-
- var actual = _(array).fromPairs().map(square).filter(isEven).take().value();
-
- assert.deepEqual(actual, _.take(_.filter(_.map(_.fromPairs(array), square), isEven)));
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.functions');
-
- (function() {
- QUnit.test('should return the function names of an object', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 'a', 'b': identity, 'c': /x/, 'd': noop },
- actual = _.functions(object).sort();
-
- assert.deepEqual(actual, ['b', 'd']);
- });
-
- QUnit.test('should not include inherited functions', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = identity;
- this.b = 'b';
- }
- Foo.prototype.c = noop;
-
- assert.deepEqual(_.functions(new Foo), ['a']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.groupBy');
-
- (function() {
- var array = [6.1, 4.2, 6.3];
-
- QUnit.test('should transform keys by `iteratee`', function(assert) {
- assert.expect(1);
-
- var actual = _.groupBy(array, Math.floor);
- assert.deepEqual(actual, { '4': [4.2], '6': [6.1, 6.3] });
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var array = [6, 4, 6],
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant({ '4': [4], '6': [6, 6] }));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.groupBy(array, value) : _.groupBy(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var actual = _.groupBy(['one', 'two', 'three'], 'length');
- assert.deepEqual(actual, { '3': ['one', 'two'], '5': ['three'] });
- });
-
- QUnit.test('should only add values to own, not inherited, properties', function(assert) {
- assert.expect(2);
-
- var actual = _.groupBy(array, function(n) {
- return Math.floor(n) > 4 ? 'hasOwnProperty' : 'constructor';
- });
-
- assert.deepEqual(actual.constructor, [4.2]);
- assert.deepEqual(actual.hasOwnProperty, [6.1, 6.3]);
- });
-
- QUnit.test('should work with a number for `iteratee`', function(assert) {
- assert.expect(2);
-
- var array = [
- [1, 'a'],
- [2, 'a'],
- [2, 'b']
- ];
-
- assert.deepEqual(_.groupBy(array, 0), { '1': [[1, 'a']], '2': [[2, 'a'], [2, 'b']] });
- assert.deepEqual(_.groupBy(array, 1), { 'a': [[1, 'a'], [2, 'a']], 'b': [[2, 'b']] });
- });
-
- QUnit.test('should work with an object for `collection`', function(assert) {
- assert.expect(1);
-
- var actual = _.groupBy({ 'a': 6.1, 'b': 4.2, 'c': 6.3 }, Math.floor);
- assert.deepEqual(actual, { '4': [4.2], '6': [6.1, 6.3] });
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE).concat(
- lodashStable.range(Math.floor(LARGE_ARRAY_SIZE / 2), LARGE_ARRAY_SIZE),
- lodashStable.range(Math.floor(LARGE_ARRAY_SIZE / 1.5), LARGE_ARRAY_SIZE)
- );
-
- var iteratee = function(value) { value.push(value[0]); return value; },
- predicate = function(value) { return isEven(value[0]); },
- actual = _(array).groupBy().map(iteratee).filter(predicate).take().value();
-
- assert.deepEqual(actual, _.take(_.filter(lodashStable.map(_.groupBy(array), iteratee), predicate)));
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.gt');
-
- (function() {
- QUnit.test('should return `true` if `value` > `other`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.gt(3, 1), true);
- assert.strictEqual(_.gt('def', 'abc'), true);
- });
-
- QUnit.test('should return `false` if `value` is <= `other`', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.gt(1, 3), false);
- assert.strictEqual(_.gt(3, 3), false);
- assert.strictEqual(_.gt('abc', 'def'), false);
- assert.strictEqual(_.gt('def', 'def'), false);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.gte');
-
- (function() {
- QUnit.test('should return `true` if `value` >= `other`', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.gte(3, 1), true);
- assert.strictEqual(_.gte(3, 3), true);
- assert.strictEqual(_.gte('def', 'abc'), true);
- assert.strictEqual(_.gte('def', 'def'), true);
- });
-
- QUnit.test('should return `false` if `value` is less than `other`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.gte(1, 3), false);
- assert.strictEqual(_.gte('abc', 'def'), false);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('has methods');
-
- lodashStable.each(['has', 'hasIn'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- func = _[methodName],
- isHas = methodName == 'has';
-
- QUnit.test('`_.' + methodName + '` should check for own properties', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1 };
-
- lodashStable.each(['a', ['a']], function(path) {
- assert.strictEqual(func(object, path), true);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should not use the `hasOwnProperty` method of the object', function(assert) {
- assert.expect(1);
-
- var object = { 'hasOwnProperty': null, 'a': 1 };
- assert.strictEqual(func(object, 'a'), true);
- });
-
- QUnit.test('`_.' + methodName + '` should support deep paths', function(assert) {
- assert.expect(4);
-
- var object = { 'a': { 'b': 2 } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.strictEqual(func(object, path), true);
- });
-
- lodashStable.each(['a.a', ['a', 'a']], function(path) {
- assert.strictEqual(func(object, path), false);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `path` to a string', function(assert) {
- assert.expect(1);
-
- function fn() {}
- fn.toString = lodashStable.constant('fn');
-
- var expected = [1, 1, 2, 2, 3, 3, 4, 4],
- objects = [{ 'null': 1 }, { 'undefined': 2 }, { 'fn': 3 }, { '[object Object]': 4 }],
- values = [null, undefined, fn, {}];
-
- var actual = lodashStable.transform(objects, function(result, object, index) {
- var key = values[index];
- lodashStable.each([key, [key]], function(path) {
- var prop = _.property(key);
- result.push(prop(object));
- });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `arguments` objects', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(args, 1), true);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a non-string `path`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3];
-
- lodashStable.each([1, [1]], function(path) {
- assert.strictEqual(func(array, path), true);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var object = { '-0': 'a', '0': 'b' },
- props = [-0, Object(-0), 0, Object(0)],
- expected = lodashStable.map(props, stubTrue);
-
- var actual = lodashStable.map(props, function(key) {
- return func(object, key);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a symbol `path`', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this[symbol] = 1;
- }
-
- if (Symbol) {
- var symbol2 = Symbol('b');
- Foo.prototype[symbol2] = 2;
- var path = isHas ? symbol : symbol2;
-
- assert.strictEqual(func(new Foo, path), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should work for objects with a `[[Prototype]]` of `null`', function(assert) {
- assert.expect(1);
-
- if (create) {
- var object = create(null);
- object[1] = 'a';
- assert.strictEqual(func(object, 1), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should check for a key over a path', function(assert) {
- assert.expect(2);
-
- var object = { 'a.b': 1 };
-
- lodashStable.each(['a.b', ['a.b']], function(path) {
- assert.strictEqual(func(object, path), true);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `' + (isHas ? 'false' : 'true') + '` for inherited properties', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.prototype.a = 1;
-
- lodashStable.each(['a', ['a']], function(path) {
- assert.strictEqual(func(new Foo, path), !isHas);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `' + (isHas ? 'false' : 'true') + '` for nested inherited properties', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.prototype.a = { 'b': 1 };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.strictEqual(func(new Foo, path), !isHas);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `true` for index values within bounds for arrays, `arguments` objects, and strings', function(assert) {
- assert.expect(2);
-
- var string = Object('abc');
- delete args[0];
- delete string[0];
-
- var values = [Array(3), args, string],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- return func(value, 0);
- });
-
- assert.deepEqual(actual, expected);
-
- expected = lodashStable.map(values, lodashStable.constant([true, true]));
-
- actual = lodashStable.map(values, function(value) {
- return lodashStable.map(['a[0]', ['a', '0']], function(path) {
- return func({ 'a': value }, path);
- });
- });
-
- assert.deepEqual(actual, expected);
- args[0] = 1;
- });
-
- QUnit.test('`_.' + methodName + '` should return `false` when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [null, undefined],
- expected = lodashStable.map(values, stubFalse);
-
- lodashStable.each(['constructor', ['constructor']], function(path) {
- var actual = lodashStable.map(values, function(value) {
- return func(value, path);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `false` for deep paths when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [null, undefined],
- expected = lodashStable.map(values, stubFalse);
-
- lodashStable.each(['constructor.prototype.valueOf', ['constructor', 'prototype', 'valueOf']], function(path) {
- var actual = lodashStable.map(values, function(value) {
- return func(value, path);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `false` for nullish values of nested objects', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubFalse);
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var actual = lodashStable.map(values, function(value, index) {
- var object = index ? { 'a': value } : {};
- return func(object, path);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.head');
-
- (function() {
- var array = [1, 2, 3, 4];
-
- QUnit.test('should return the first element', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.head(array), 1);
- });
-
- QUnit.test('should return `undefined` when querying empty arrays', function(assert) {
- assert.expect(1);
-
- arrayProto[0] = 1;
- assert.strictEqual(_.head([]), undefined);
- arrayProto.length = 0;
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
- actual = lodashStable.map(array, _.head);
-
- assert.deepEqual(actual, [1, 4, 7]);
- });
-
- QUnit.test('should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.strictEqual(_(array).head(), 1);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(array).chain().head() instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should not execute immediately when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _(array).chain().head();
- assert.strictEqual(wrapped.__wrapped__, array);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var largeArray = lodashStable.range(LARGE_ARRAY_SIZE),
- smallArray = array;
-
- lodashStable.times(2, function(index) {
- var array = index ? largeArray : smallArray,
- wrapped = _(array).filter(isEven);
-
- assert.strictEqual(wrapped.head(), _.head(_.filter(array, isEven)));
- });
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should be aliased', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.first, _.head);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.identity');
-
- (function() {
- QUnit.test('should return the first argument given', function(assert) {
- assert.expect(1);
-
- var object = { 'name': 'fred' };
- assert.strictEqual(_.identity(object), object);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.includes');
-
- (function() {
- lodashStable.each({
- 'an `arguments` object': arguments,
- 'an array': [1, 2, 3, 4],
- 'an object': { 'a': 1, 'b': 2, 'c': 3, 'd': 4 },
- 'a string': '1234'
- },
- function(collection, key) {
- QUnit.test('should work with ' + key + ' and return `true` for matched values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.includes(collection, 3), true);
- });
-
- QUnit.test('should work with ' + key + ' and return `false` for unmatched values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.includes(collection, 5), false);
- });
-
- QUnit.test('should work with ' + key + ' and floor `position` values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.includes(collection, 2, 1.2), true);
- });
-
- QUnit.test('should work with ' + key + ' and return an unwrapped value implicitly when chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.strictEqual(_(collection).includes(3), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should work with ' + key + ' and return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(collection).chain().includes(3) instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each({
- 'literal': 'abc',
- 'object': Object('abc')
- },
- function(collection, key) {
- QUnit.test('should work with a string ' + key + ' for `collection`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.includes(collection, 'bc'), true);
- assert.strictEqual(_.includes(collection, 'd'), false);
- });
- });
-
- QUnit.test('should return `false` for empty collections', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(empties, stubFalse);
-
- var actual = lodashStable.map(empties, function(value) {
- try {
- return _.includes(value);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with a string and a `fromIndex` >= `length`', function(assert) {
- assert.expect(1);
-
- var string = '1234',
- length = string.length,
- indexes = [4, 6, Math.pow(2, 32), Infinity];
-
- var expected = lodashStable.map(indexes, function(index) {
- return [false, false, index == length];
- });
-
- var actual = lodashStable.map(indexes, function(fromIndex) {
- return [
- _.includes(string, 1, fromIndex),
- _.includes(string, undefined, fromIndex),
- _.includes(string, '', fromIndex)
- ];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should match `NaN`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.includes([1, NaN, 3], NaN), true);
- });
-
- QUnit.test('should match `-0` as `0`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.includes([-0], 0), true);
- assert.strictEqual(_.includes([0], -0), true);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.every`', function(assert) {
- assert.expect(1);
-
- var array1 = [1, 2, 3],
- array2 = [2, 3, 1];
-
- assert.ok(lodashStable.every(array1, lodashStable.partial(_.includes, array2)));
- });
- }(1, 2, 3, 4));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.initial');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should accept a falsey `array` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubArray);
-
- var actual = lodashStable.map(falsey, function(array, index) {
- try {
- return index ? _.initial(array) : _.initial();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should exclude last element', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.initial(array), [1, 2]);
- });
-
- QUnit.test('should return an empty when querying empty arrays', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.initial([]), []);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
- actual = lodashStable.map(array, _.initial);
-
- assert.deepEqual(actual, [[1, 2], [4, 5], [7, 8]]);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- values = [];
-
- var actual = _(array).initial().filter(function(value) {
- values.push(value);
- return false;
- })
- .value();
-
- assert.deepEqual(actual, []);
- assert.deepEqual(values, _.initial(array));
-
- values = [];
-
- actual = _(array).filter(function(value) {
- values.push(value);
- return isEven(value);
- })
- .initial()
- .value();
-
- assert.deepEqual(actual, _.initial(lodashStable.filter(array, isEven)));
- assert.deepEqual(values, array);
- }
- else {
- skipAssert(assert, 4);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.inRange');
-
- (function() {
- QUnit.test('should work with an `end` argument', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.inRange(3, 5), true);
- assert.strictEqual(_.inRange(5, 5), false);
- assert.strictEqual(_.inRange(6, 5), false);
- });
-
- QUnit.test('should work with `start` and `end` arguments', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.inRange(1, 1, 5), true);
- assert.strictEqual(_.inRange(3, 1, 5), true);
- assert.strictEqual(_.inRange(0, 1, 5), false);
- assert.strictEqual(_.inRange(5, 1, 5), false);
- });
-
- QUnit.test('should treat falsey `start` arguments as `0`', function(assert) {
- assert.expect(13);
-
- lodashStable.each(falsey, function(value, index) {
- if (index) {
- assert.strictEqual(_.inRange(0, value), false);
- assert.strictEqual(_.inRange(0, value, 1), true);
- } else {
- assert.strictEqual(_.inRange(0), false);
- }
- });
- });
-
- QUnit.test('should swap `start` and `end` when `start` > `end`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.inRange(2, 5, 1), true);
- assert.strictEqual(_.inRange(-3, -2, -6), true);
- });
-
- QUnit.test('should work with a floating point `n` value', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.inRange(0.5, 5), true);
- assert.strictEqual(_.inRange(1.2, 1, 5), true);
- assert.strictEqual(_.inRange(5.2, 5), false);
- assert.strictEqual(_.inRange(0.5, 1, 5), false);
- });
-
- QUnit.test('should coerce arguments to finite numbers', function(assert) {
- assert.expect(1);
-
- var actual = [_.inRange(0, '0', 1), _.inRange(0, '1'), _.inRange(0, 0, '1'), _.inRange(0, NaN, 1), _.inRange(-1, -1, NaN)],
- expected = lodashStable.map(actual, stubTrue);
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('intersection methods');
-
- lodashStable.each(['intersection', 'intersectionBy', 'intersectionWith'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return the intersection of two arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([2, 1], [2, 3]);
- assert.deepEqual(actual, [2]);
- });
-
- QUnit.test('`_.' + methodName + '` should return the intersection of multiple arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([2, 1, 2, 3], [3, 4], [3, 2]);
- assert.deepEqual(actual, [3]);
- });
-
- QUnit.test('`_.' + methodName + '` should return an array of unique values', function(assert) {
- assert.expect(1);
-
- var actual = func([1, 1, 3, 2, 2], [5, 2, 2, 1, 4], [2, 1, 1]);
- assert.deepEqual(actual, [1, 2]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a single array', function(assert) {
- assert.expect(1);
-
- var actual = func([1, 1, 3, 2, 2]);
- assert.deepEqual(actual, [1, 3, 2]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `arguments` objects', function(assert) {
- assert.expect(2);
-
- var array = [0, 1, null, 3],
- expected = [1, 3];
-
- assert.deepEqual(func(array, args), expected);
- assert.deepEqual(func(args, array), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should treat `-0` as `0`', function(assert) {
- assert.expect(1);
-
- var values = [-0, 0],
- expected = lodashStable.map(values, lodashStable.constant(['0']));
-
- var actual = lodashStable.map(values, function(value) {
- return lodashStable.map(func(values, [value]), lodashStable.toString);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should match `NaN`', function(assert) {
- assert.expect(1);
-
- var actual = func([1, NaN, 3], [NaN, 5, NaN]);
- assert.deepEqual(actual, [NaN]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of `-0` as `0`', function(assert) {
- assert.expect(1);
-
- var values = [-0, 0],
- expected = lodashStable.map(values, lodashStable.constant(['0']));
-
- var actual = lodashStable.map(values, function(value) {
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, lodashStable.constant(value));
- return lodashStable.map(func(values, largeArray), lodashStable.toString);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of `NaN`', function(assert) {
- assert.expect(1);
-
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, stubNaN);
- assert.deepEqual(func([1, NaN, 3], largeArray), [NaN]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of objects', function(assert) {
- assert.expect(2);
-
- var object = {},
- largeArray = lodashStable.times(LARGE_ARRAY_SIZE, lodashStable.constant(object));
-
- assert.deepEqual(func([object], largeArray), [object]);
- assert.deepEqual(func(lodashStable.range(LARGE_ARRAY_SIZE), [1]), [1]);
- });
-
- QUnit.test('`_.' + methodName + '` should treat values that are not arrays or `arguments` objects as empty', function(assert) {
- assert.expect(3);
-
- var array = [0, 1, null, 3];
- assert.deepEqual(func(array, 3, { '0': 1 }, null), []);
- assert.deepEqual(func(null, array, null, [2, 3]), []);
- assert.deepEqual(func(array, null, args, null), []);
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var wrapped = _([1, 3, 2])[methodName]([5, 2, 1, 4]);
- assert.ok(wrapped instanceof _);
- assert.deepEqual(wrapped.value(), [1, 2]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.intersectionBy');
-
- (function() {
- QUnit.test('should accept an `iteratee` argument', function(assert) {
- assert.expect(2);
-
- var actual = _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- assert.deepEqual(actual, [2.1]);
-
- actual = _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- assert.deepEqual(actual, [{ 'x': 1 }]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.intersectionBy([2.1, 1.2], [2.3, 3.4], function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [2.3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.intersectionWith');
-
- (function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }],
- others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }],
- actual = _.intersectionWith(objects, others, lodashStable.isEqual);
-
- assert.deepEqual(actual, [objects[0]]);
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var array = [-0],
- largeArray = lodashStable.times(LARGE_ARRAY_SIZE, stubZero),
- others = [[0], largeArray],
- expected = lodashStable.map(others, lodashStable.constant(['-0']));
-
- var actual = lodashStable.map(others, function(other) {
- return lodashStable.map(_.intersectionWith(array, other, lodashStable.eq), lodashStable.toString);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.invert');
-
- (function() {
- QUnit.test('should invert an object', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1, 'b': 2 },
- actual = _.invert(object);
-
- assert.deepEqual(actual, { '1': 'a', '2': 'b' });
- assert.deepEqual(_.invert(actual), { 'a': '1', 'b': '2' });
- });
-
- QUnit.test('should work with values that shadow keys on `Object.prototype`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 'hasOwnProperty', 'b': 'constructor' };
- assert.deepEqual(_.invert(object), { 'hasOwnProperty': 'a', 'constructor': 'b' });
- });
-
- QUnit.test('should work with an object that has a `length` property', function(assert) {
- assert.expect(1);
-
- var object = { '0': 'a', '1': 'b', 'length': 2 };
- assert.deepEqual(_.invert(object), { 'a': '0', 'b': '1', '2': 'length' });
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var object = { 'a': 1, 'b': 2 },
- wrapped = _(object).invert();
-
- assert.ok(wrapped instanceof _);
- assert.deepEqual(wrapped.value(), { '1': 'a', '2': 'b' });
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.invertBy');
-
- (function() {
- var object = { 'a': 1, 'b': 2, 'c': 1 };
-
- QUnit.test('should transform keys by `iteratee`', function(assert) {
- assert.expect(1);
-
- var expected = { 'group1': ['a', 'c'], 'group2': ['b'] };
-
- var actual = _.invertBy(object, function(value) {
- return 'group' + value;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant({ '1': ['a', 'c'], '2': ['b'] }));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.invertBy(object, value) : _.invertBy(object);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should only add multiple values to own, not inherited, properties', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 'hasOwnProperty', 'b': 'constructor' },
- expected = { 'hasOwnProperty': ['a'], 'constructor': ['b'] };
-
- assert.ok(lodashStable.isEqual(_.invertBy(object), expected));
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var wrapped = _(object).invertBy();
-
- assert.ok(wrapped instanceof _);
- assert.deepEqual(wrapped.value(), { '1': ['a', 'c'], '2': ['b'] });
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.invoke');
-
- (function() {
- QUnit.test('should invoke a method on `object`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': lodashStable.constant('A') },
- actual = _.invoke(object, 'a');
-
- assert.strictEqual(actual, 'A');
- });
-
- QUnit.test('should support invoking with arguments', function(assert) {
- assert.expect(1);
-
- var object = { 'a': function(a, b) { return [a, b]; } },
- actual = _.invoke(object, 'a', 1, 2);
-
- assert.deepEqual(actual, [1, 2]);
- });
-
- QUnit.test('should not error on nullish elements', function(assert) {
- assert.expect(1);
-
- var values = [null, undefined],
- expected = lodashStable.map(values, noop);
-
- var actual = lodashStable.map(values, function(value) {
- try {
- return _.invoke(value, 'a.b', 1, 2);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var object = { '-0': stubA, '0': stubB },
- props = [-0, Object(-0), 0, Object(0)];
-
- var actual = lodashStable.map(props, function(key) {
- return _.invoke(object, key);
- });
-
- assert.deepEqual(actual, ['a', 'a', 'b', 'b']);
- });
-
- QUnit.test('should support deep paths', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': function(a, b) { return [a, b]; } } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var actual = _.invoke(object, path, 1, 2);
- assert.deepEqual(actual, [1, 2]);
- });
- });
-
- QUnit.test('should invoke deep property methods with the correct `this` binding', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': function() { return this.c; }, 'c': 1 } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.deepEqual(_.invoke(object, path), 1);
- });
- });
-
- QUnit.test('should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var object = { 'a': stubOne };
- assert.strictEqual(_(object).invoke('a'), 1);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var object = { 'a': stubOne };
- assert.ok(_(object).chain().invoke('a') instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.invokeMap');
-
- (function() {
- QUnit.test('should invoke a methods on each element of `collection`', function(assert) {
- assert.expect(1);
-
- var array = ['a', 'b', 'c'],
- actual = _.invokeMap(array, 'toUpperCase');
-
- assert.deepEqual(actual, ['A', 'B', 'C']);
- });
-
- QUnit.test('should support invoking with arguments', function(assert) {
- assert.expect(1);
-
- var array = [function() { return slice.call(arguments); }],
- actual = _.invokeMap(array, 'call', null, 'a', 'b', 'c');
-
- assert.deepEqual(actual, [['a', 'b', 'c']]);
- });
-
- QUnit.test('should work with a function for `methodName`', function(assert) {
- assert.expect(1);
-
- var array = ['a', 'b', 'c'];
-
- var actual = _.invokeMap(array, function(left, right) {
- return left + this.toUpperCase() + right;
- }, '(', ')');
-
- assert.deepEqual(actual, ['(A)', '(B)', '(C)']);
- });
-
- QUnit.test('should work with an object for `collection`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1, 'b': 2, 'c': 3 },
- actual = _.invokeMap(object, 'toFixed', 1);
-
- assert.deepEqual(actual, ['1.0', '2.0', '3.0']);
- });
-
- QUnit.test('should treat number values for `collection` as empty', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.invokeMap(1), []);
- });
-
- QUnit.test('should not error on nullish elements', function(assert) {
- assert.expect(1);
-
- var array = ['a', null, undefined, 'd'];
-
- try {
- var actual = _.invokeMap(array, 'toUpperCase');
- } catch (e) {}
-
- assert.deepEqual(actual, ['A', undefined, undefined, 'D']);
- });
-
- QUnit.test('should not error on elements with missing properties', function(assert) {
- assert.expect(1);
-
- var objects = lodashStable.map([null, undefined, stubOne], function(value) {
- return { 'a': value };
- });
-
- var expected = lodashStable.map(objects, function(object) {
- return object.a ? object.a() : undefined;
- });
-
- try {
- var actual = _.invokeMap(objects, 'a');
- } catch (e) {}
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should invoke deep property methods with the correct `this` binding', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': function() { return this.c; }, 'c': 1 } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.deepEqual(_.invokeMap([object], path), [1]);
- });
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- var array = ['a', 'b', 'c'],
- wrapped = _(array),
- actual = wrapped.invokeMap('toUpperCase');
-
- assert.ok(actual instanceof _);
- assert.deepEqual(actual.valueOf(), ['A', 'B', 'C']);
-
- actual = wrapped.invokeMap(function(left, right) {
- return left + this.toUpperCase() + right;
- }, '(', ')');
-
- assert.ok(actual instanceof _);
- assert.deepEqual(actual.valueOf(), ['(A)', '(B)', '(C)']);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should support shortcut fusion', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var count = 0,
- method = function() { count++; return this.index; };
-
- var array = lodashStable.times(LARGE_ARRAY_SIZE, function(index) {
- return { 'index': index, 'method': method };
- });
-
- var actual = _(array).invokeMap('method').take(1).value();
-
- assert.strictEqual(count, 1);
- assert.deepEqual(actual, [0]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isArguments');
-
- (function() {
- var args = (function() { return arguments; }(1, 2, 3)),
- strictArgs = (function() { 'use strict'; return arguments; }(1, 2, 3));
-
- QUnit.test('should return `true` for `arguments` objects', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.isArguments(args), true);
- assert.strictEqual(_.isArguments(strictArgs), true);
- });
-
- QUnit.test('should return `false` for non `arguments` objects', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isArguments(value) : _.isArguments();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isArguments([1, 2, 3]), false);
- assert.strictEqual(_.isArguments(true), false);
- assert.strictEqual(_.isArguments(new Date), false);
- assert.strictEqual(_.isArguments(new Error), false);
- assert.strictEqual(_.isArguments(_), false);
- assert.strictEqual(_.isArguments(slice), false);
- assert.strictEqual(_.isArguments({ '0': 1, 'callee': noop, 'length': 1 }), false);
- assert.strictEqual(_.isArguments(1), false);
- assert.strictEqual(_.isArguments(/x/), false);
- assert.strictEqual(_.isArguments('a'), false);
- assert.strictEqual(_.isArguments(symbol), false);
- });
-
- QUnit.test('should work with an `arguments` object from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.arguments) {
- assert.strictEqual(_.isArguments(realm.arguments), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isArray');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for arrays', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isArray([1, 2, 3]), true);
- });
-
- QUnit.test('should return `false` for non-arrays', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isArray(value) : _.isArray();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isArray(args), false);
- assert.strictEqual(_.isArray(true), false);
- assert.strictEqual(_.isArray(new Date), false);
- assert.strictEqual(_.isArray(new Error), false);
- assert.strictEqual(_.isArray(_), false);
- assert.strictEqual(_.isArray(slice), false);
- assert.strictEqual(_.isArray({ '0': 1, 'length': 1 }), false);
- assert.strictEqual(_.isArray(1), false);
- assert.strictEqual(_.isArray(/x/), false);
- assert.strictEqual(_.isArray('a'), false);
- assert.strictEqual(_.isArray(symbol), false);
- });
-
- QUnit.test('should work with an array from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.array) {
- assert.strictEqual(_.isArray(realm.array), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isArrayBuffer');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for array buffers', function(assert) {
- assert.expect(1);
-
- if (ArrayBuffer) {
- assert.strictEqual(_.isArrayBuffer(arrayBuffer), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for non array buffers', function(assert) {
- assert.expect(13);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isArrayBuffer(value) : _.isArrayBuffer();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isArrayBuffer(args), false);
- assert.strictEqual(_.isArrayBuffer([1, 2, 3]), false);
- assert.strictEqual(_.isArrayBuffer(true), false);
- assert.strictEqual(_.isArrayBuffer(new Date), false);
- assert.strictEqual(_.isArrayBuffer(new Error), false);
- assert.strictEqual(_.isArrayBuffer(_), false);
- assert.strictEqual(_.isArrayBuffer(slice), false);
- assert.strictEqual(_.isArrayBuffer({ 'a': 1 }), false);
- assert.strictEqual(_.isArrayBuffer(1), false);
- assert.strictEqual(_.isArrayBuffer(/x/), false);
- assert.strictEqual(_.isArrayBuffer('a'), false);
- assert.strictEqual(_.isArrayBuffer(symbol), false);
- });
-
- QUnit.test('should work with array buffers from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.arrayBuffer) {
- assert.strictEqual(_.isArrayBuffer(realm.arrayBuffer), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isArrayLike');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for array-like values', function(assert) {
- assert.expect(1);
-
- var values = [args, [1, 2, 3], { '0': 1, 'length': 1 }, 'a'],
- expected = lodashStable.map(values, stubTrue),
- actual = lodashStable.map(values, _.isArrayLike);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` for non-arrays', function(assert) {
- assert.expect(11);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === '';
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isArrayLike(value) : _.isArrayLike();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isArrayLike(true), false);
- assert.strictEqual(_.isArrayLike(new Date), false);
- assert.strictEqual(_.isArrayLike(new Error), false);
- assert.strictEqual(_.isArrayLike(_), false);
- assert.strictEqual(_.isArrayLike(generator), false);
- assert.strictEqual(_.isArrayLike(slice), false);
- assert.strictEqual(_.isArrayLike({ 'a': 1 }), false);
- assert.strictEqual(_.isArrayLike(1), false);
- assert.strictEqual(_.isArrayLike(/x/), false);
- assert.strictEqual(_.isArrayLike(symbol), false);
- });
-
- QUnit.test('should work with an array from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.object) {
- var values = [realm.arguments, realm.array, realm.string],
- expected = lodashStable.map(values, stubTrue),
- actual = lodashStable.map(values, _.isArrayLike);
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isBoolean');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for booleans', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.isBoolean(true), true);
- assert.strictEqual(_.isBoolean(false), true);
- assert.strictEqual(_.isBoolean(Object(true)), true);
- assert.strictEqual(_.isBoolean(Object(false)), true);
- });
-
- QUnit.test('should return `false` for non-booleans', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === false;
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isBoolean(value) : _.isBoolean();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isBoolean(args), false);
- assert.strictEqual(_.isBoolean([1, 2, 3]), false);
- assert.strictEqual(_.isBoolean(new Date), false);
- assert.strictEqual(_.isBoolean(new Error), false);
- assert.strictEqual(_.isBoolean(_), false);
- assert.strictEqual(_.isBoolean(slice), false);
- assert.strictEqual(_.isBoolean({ 'a': 1 }), false);
- assert.strictEqual(_.isBoolean(1), false);
- assert.strictEqual(_.isBoolean(/x/), false);
- assert.strictEqual(_.isBoolean('a'), false);
- assert.strictEqual(_.isBoolean(symbol), false);
- });
-
- QUnit.test('should work with a boolean from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.boolean) {
- assert.strictEqual(_.isBoolean(realm.boolean), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isBuffer');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for buffers', function(assert) {
- assert.expect(1);
-
- if (Buffer) {
- assert.strictEqual(_.isBuffer(new Buffer(2)), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for non-buffers', function(assert) {
- assert.expect(13);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isBuffer(value) : _.isBuffer();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isBuffer(args), false);
- assert.strictEqual(_.isBuffer([1, 2, 3]), false);
- assert.strictEqual(_.isBuffer(true), false);
- assert.strictEqual(_.isBuffer(new Date), false);
- assert.strictEqual(_.isBuffer(new Error), false);
- assert.strictEqual(_.isBuffer(_), false);
- assert.strictEqual(_.isBuffer(slice), false);
- assert.strictEqual(_.isBuffer({ 'a': 1 }), false);
- assert.strictEqual(_.isBuffer(1), false);
- assert.strictEqual(_.isBuffer(/x/), false);
- assert.strictEqual(_.isBuffer('a'), false);
- assert.strictEqual(_.isBuffer(symbol), false);
- });
-
- QUnit.test('should return `false` if `Buffer` is not defined', function(assert) {
- assert.expect(1);
-
- if (!isStrict && Buffer && lodashBizarro) {
- assert.strictEqual(lodashBizarro.isBuffer(new Buffer(2)), false);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isDate');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for dates', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isDate(new Date), true);
- });
-
- QUnit.test('should return `false` for non-dates', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isDate(value) : _.isDate();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isDate(args), false);
- assert.strictEqual(_.isDate([1, 2, 3]), false);
- assert.strictEqual(_.isDate(true), false);
- assert.strictEqual(_.isDate(new Error), false);
- assert.strictEqual(_.isDate(_), false);
- assert.strictEqual(_.isDate(slice), false);
- assert.strictEqual(_.isDate({ 'a': 1 }), false);
- assert.strictEqual(_.isDate(1), false);
- assert.strictEqual(_.isDate(/x/), false);
- assert.strictEqual(_.isDate('a'), false);
- assert.strictEqual(_.isDate(symbol), false);
- });
-
- QUnit.test('should work with a date object from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.date) {
- assert.strictEqual(_.isDate(realm.date), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isElement');
-
- (function() {
- var args = arguments;
-
- function Element() {
- this.nodeType = 1;
- }
-
- QUnit.test('should return `false` for plain objects', function(assert) {
- assert.expect(7);
-
- var element = body || new Element;
-
- assert.strictEqual(_.isElement(element), true);
- assert.strictEqual(_.isElement({ 'nodeType': 1 }), false);
- assert.strictEqual(_.isElement({ 'nodeType': Object(1) }), false);
- assert.strictEqual(_.isElement({ 'nodeType': true }), false);
- assert.strictEqual(_.isElement({ 'nodeType': [1] }), false);
- assert.strictEqual(_.isElement({ 'nodeType': '1' }), false);
- assert.strictEqual(_.isElement({ 'nodeType': '001' }), false);
- });
-
- QUnit.test('should return `false` for non DOM elements', function(assert) {
- assert.expect(13);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isElement(value) : _.isElement();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isElement(args), false);
- assert.strictEqual(_.isElement([1, 2, 3]), false);
- assert.strictEqual(_.isElement(true), false);
- assert.strictEqual(_.isElement(new Date), false);
- assert.strictEqual(_.isElement(new Error), false);
- assert.strictEqual(_.isElement(_), false);
- assert.strictEqual(_.isElement(slice), false);
- assert.strictEqual(_.isElement({ 'a': 1 }), false);
- assert.strictEqual(_.isElement(1), false);
- assert.strictEqual(_.isElement(/x/), false);
- assert.strictEqual(_.isElement('a'), false);
- assert.strictEqual(_.isElement(symbol), false);
- });
-
- QUnit.test('should work with a DOM element from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.element) {
- assert.strictEqual(_.isElement(realm.element), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isEmpty');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for empty values', function(assert) {
- assert.expect(10);
-
- var expected = lodashStable.map(empties, stubTrue),
- actual = lodashStable.map(empties, _.isEmpty);
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isEmpty(true), true);
- assert.strictEqual(_.isEmpty(slice), true);
- assert.strictEqual(_.isEmpty(1), true);
- assert.strictEqual(_.isEmpty(NaN), true);
- assert.strictEqual(_.isEmpty(/x/), true);
- assert.strictEqual(_.isEmpty(symbol), true);
- assert.strictEqual(_.isEmpty(), true);
-
- if (Buffer) {
- assert.strictEqual(_.isEmpty(new Buffer(0)), true);
- assert.strictEqual(_.isEmpty(new Buffer(1)), false);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should return `false` for non-empty values', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.isEmpty([0]), false);
- assert.strictEqual(_.isEmpty({ 'a': 0 }), false);
- assert.strictEqual(_.isEmpty('a'), false);
- });
-
- QUnit.test('should work with an object that has a `length` property', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isEmpty({ 'length': 0 }), false);
- });
-
- QUnit.test('should work with `arguments` objects', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isEmpty(args), false);
- });
-
- QUnit.test('should work with jQuery/MooTools DOM query collections', function(assert) {
- assert.expect(1);
-
- function Foo(elements) {
- push.apply(this, elements);
- }
- Foo.prototype = { 'length': 0, 'splice': arrayProto.splice };
-
- assert.strictEqual(_.isEmpty(new Foo([])), true);
- });
-
- QUnit.test('should work with maps', function(assert) {
- assert.expect(4);
-
- if (Map) {
- lodashStable.each([new Map, realm.map], function(map) {
- assert.strictEqual(_.isEmpty(map), true);
- map.set('a', 1);
- assert.strictEqual(_.isEmpty(map), false);
- map.clear();
- });
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should work with sets', function(assert) {
- assert.expect(4);
-
- if (Set) {
- lodashStable.each([new Set, realm.set], function(set) {
- assert.strictEqual(_.isEmpty(set), true);
- set.add(1);
- assert.strictEqual(_.isEmpty(set), false);
- set.clear();
- });
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should not treat objects with negative lengths as array-like', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.prototype.length = -1;
-
- assert.strictEqual(_.isEmpty(new Foo), true);
- });
-
- QUnit.test('should not treat objects with lengths larger than `MAX_SAFE_INTEGER` as array-like', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.prototype.length = MAX_SAFE_INTEGER + 1;
-
- assert.strictEqual(_.isEmpty(new Foo), true);
- });
-
- QUnit.test('should not treat objects with non-number lengths as array-like', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isEmpty({ 'length': '0' }), false);
- });
-
- QUnit.test('should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.strictEqual(_({}).isEmpty(), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_({}).chain().isEmpty() instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isEqual');
-
- (function() {
- var symbol1 = Symbol ? Symbol('a') : true,
- symbol2 = Symbol ? Symbol('b') : false;
-
- QUnit.test('should compare primitives', function(assert) {
- assert.expect(1);
-
- var pairs = [
- [1, 1, true], [1, Object(1), true], [1, '1', false], [1, 2, false],
- [-0, -0, true], [0, 0, true], [0, Object(0), true], [Object(0), Object(0), true], [-0, 0, true], [0, '0', false], [0, null, false],
- [NaN, NaN, true], [NaN, Object(NaN), true], [Object(NaN), Object(NaN), true], [NaN, 'a', false], [NaN, Infinity, false],
- ['a', 'a', true], ['a', Object('a'), true], [Object('a'), Object('a'), true], ['a', 'b', false], ['a', ['a'], false],
- [true, true, true], [true, Object(true), true], [Object(true), Object(true), true], [true, 1, false], [true, 'a', false],
- [false, false, true], [false, Object(false), true], [Object(false), Object(false), true], [false, 0, false], [false, '', false],
- [symbol1, symbol1, true], [symbol1, Object(symbol1), true], [Object(symbol1), Object(symbol1), true], [symbol1, symbol2, false],
- [null, null, true], [null, undefined, false], [null, {}, false], [null, '', false],
- [undefined, undefined, true], [undefined, null, false], [undefined, '', false]
- ];
-
- var expected = lodashStable.map(pairs, function(pair) {
- return pair[2];
- });
-
- var actual = lodashStable.map(pairs, function(pair) {
- return _.isEqual(pair[0], pair[1]);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should compare arrays', function(assert) {
- assert.expect(6);
-
- var array1 = [true, null, 1, 'a', undefined],
- array2 = [true, null, 1, 'a', undefined];
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1 = [[1, 2, 3], new Date(2012, 4, 23), /x/, { 'e': 1 }];
- array2 = [[1, 2, 3], new Date(2012, 4, 23), /x/, { 'e': 1 }];
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1 = [1];
- array1[2] = 3;
-
- array2 = [1];
- array2[1] = undefined;
- array2[2] = 3;
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1 = [Object(1), false, Object('a'), /x/, new Date(2012, 4, 23), ['a', 'b', [Object('c')]], { 'a': 1 }];
- array2 = [1, Object(false), 'a', /x/, new Date(2012, 4, 23), ['a', Object('b'), ['c']], { 'a': 1 }];
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1 = [1, 2, 3];
- array2 = [3, 2, 1];
-
- assert.strictEqual(_.isEqual(array1, array2), false);
-
- array1 = [1, 2];
- array2 = [1, 2, 3];
-
- assert.strictEqual(_.isEqual(array1, array2), false);
- });
-
- QUnit.test('should treat arrays with identical values but different non-index properties as equal', function(assert) {
- assert.expect(3);
-
- var array1 = [1, 2, 3],
- array2 = [1, 2, 3];
-
- array1.every = array1.filter = array1.forEach =
- array1.indexOf = array1.lastIndexOf = array1.map =
- array1.some = array1.reduce = array1.reduceRight = null;
-
- array2.concat = array2.join = array2.pop =
- array2.reverse = array2.shift = array2.slice =
- array2.sort = array2.splice = array2.unshift = null;
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1 = [1, 2, 3];
- array1.a = 1;
-
- array2 = [1, 2, 3];
- array2.b = 1;
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1 = /c/.exec('abcde');
- array2 = ['c'];
-
- assert.strictEqual(_.isEqual(array1, array2), true);
- });
-
- QUnit.test('should compare sparse arrays', function(assert) {
- assert.expect(3);
-
- var array = Array(1);
-
- assert.strictEqual(_.isEqual(array, Array(1)), true);
- assert.strictEqual(_.isEqual(array, [undefined]), true);
- assert.strictEqual(_.isEqual(array, Array(2)), false);
- });
-
- QUnit.test('should compare plain objects', function(assert) {
- assert.expect(5);
-
- var object1 = { 'a': true, 'b': null, 'c': 1, 'd': 'a', 'e': undefined },
- object2 = { 'a': true, 'b': null, 'c': 1, 'd': 'a', 'e': undefined };
-
- assert.strictEqual(_.isEqual(object1, object2), true);
-
- object1 = { 'a': [1, 2, 3], 'b': new Date(2012, 4, 23), 'c': /x/, 'd': { 'e': 1 } };
- object2 = { 'a': [1, 2, 3], 'b': new Date(2012, 4, 23), 'c': /x/, 'd': { 'e': 1 } };
-
- assert.strictEqual(_.isEqual(object1, object2), true);
-
- object1 = { 'a': 1, 'b': 2, 'c': 3 };
- object2 = { 'a': 3, 'b': 2, 'c': 1 };
-
- assert.strictEqual(_.isEqual(object1, object2), false);
-
- object1 = { 'a': 1, 'b': 2, 'c': 3 };
- object2 = { 'd': 1, 'e': 2, 'f': 3 };
-
- assert.strictEqual(_.isEqual(object1, object2), false);
-
- object1 = { 'a': 1, 'b': 2 };
- object2 = { 'a': 1, 'b': 2, 'c': 3 };
-
- assert.strictEqual(_.isEqual(object1, object2), false);
- });
-
- QUnit.test('should compare objects regardless of key order', function(assert) {
- assert.expect(1);
-
- var object1 = { 'a': 1, 'b': 2, 'c': 3 },
- object2 = { 'c': 3, 'a': 1, 'b': 2 };
-
- assert.strictEqual(_.isEqual(object1, object2), true);
- });
-
- QUnit.test('should compare nested objects', function(assert) {
- assert.expect(1);
-
- var object1 = {
- 'a': [1, 2, 3],
- 'b': true,
- 'c': Object(1),
- 'd': 'a',
- 'e': {
- 'f': ['a', Object('b'), 'c'],
- 'g': Object(false),
- 'h': new Date(2012, 4, 23),
- 'i': noop,
- 'j': 'a'
- }
- };
-
- var object2 = {
- 'a': [1, Object(2), 3],
- 'b': Object(true),
- 'c': 1,
- 'd': Object('a'),
- 'e': {
- 'f': ['a', 'b', 'c'],
- 'g': false,
- 'h': new Date(2012, 4, 23),
- 'i': noop,
- 'j': 'a'
- }
- };
-
- assert.strictEqual(_.isEqual(object1, object2), true);
- });
-
- QUnit.test('should compare object instances', function(assert) {
- assert.expect(4);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.a = 1;
-
- function Bar() {
- this.a = 1;
- }
- Bar.prototype.a = 2;
-
- assert.strictEqual(_.isEqual(new Foo, new Foo), true);
- assert.strictEqual(_.isEqual(new Foo, new Bar), false);
- assert.strictEqual(_.isEqual({ 'a': 1 }, new Foo), false);
- assert.strictEqual(_.isEqual({ 'a': 2 }, new Bar), false);
- });
-
- QUnit.test('should compare objects with constructor properties', function(assert) {
- assert.expect(5);
-
- assert.strictEqual(_.isEqual({ 'constructor': 1 }, { 'constructor': 1 }), true);
- assert.strictEqual(_.isEqual({ 'constructor': 1 }, { 'constructor': '1' }), false);
- assert.strictEqual(_.isEqual({ 'constructor': [1] }, { 'constructor': [1] }), true);
- assert.strictEqual(_.isEqual({ 'constructor': [1] }, { 'constructor': ['1'] }), false);
- assert.strictEqual(_.isEqual({ 'constructor': Object }, {}), false);
- });
-
- QUnit.test('should compare arrays with circular references', function(assert) {
- assert.expect(4);
-
- var array1 = [],
- array2 = [];
-
- array1.push(array1);
- array2.push(array2);
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1.push('b');
- array2.push('b');
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1.push('c');
- array2.push('d');
-
- assert.strictEqual(_.isEqual(array1, array2), false);
-
- array1 = ['a', 'b', 'c'];
- array1[1] = array1;
- array2 = ['a', ['a', 'b', 'c'], 'c'];
-
- assert.strictEqual(_.isEqual(array1, array2), false);
- });
-
- QUnit.test('should compare objects with circular references', function(assert) {
- assert.expect(4);
-
- var object1 = {},
- object2 = {};
-
- object1.a = object1;
- object2.a = object2;
-
- assert.strictEqual(_.isEqual(object1, object2), true);
-
- object1.b = 0;
- object2.b = Object(0);
-
- assert.strictEqual(_.isEqual(object1, object2), true);
-
- object1.c = Object(1);
- object2.c = Object(2);
-
- assert.strictEqual(_.isEqual(object1, object2), false);
-
- object1 = { 'a': 1, 'b': 2, 'c': 3 };
- object1.b = object1;
- object2 = { 'a': 1, 'b': { 'a': 1, 'b': 2, 'c': 3 }, 'c': 3 };
-
- assert.strictEqual(_.isEqual(object1, object2), false);
- });
-
- QUnit.test('should compare objects with multiple circular references', function(assert) {
- assert.expect(3);
-
- var array1 = [{}],
- array2 = [{}];
-
- (array1[0].a = array1).push(array1);
- (array2[0].a = array2).push(array2);
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1[0].b = 0;
- array2[0].b = Object(0);
-
- assert.strictEqual(_.isEqual(array1, array2), true);
-
- array1[0].c = Object(1);
- array2[0].c = Object(2);
-
- assert.strictEqual(_.isEqual(array1, array2), false);
- });
-
- QUnit.test('should compare objects with complex circular references', function(assert) {
- assert.expect(1);
-
- var object1 = {
- 'foo': { 'b': { 'c': { 'd': {} } } },
- 'bar': { 'a': 2 }
- };
-
- var object2 = {
- 'foo': { 'b': { 'c': { 'd': {} } } },
- 'bar': { 'a': 2 }
- };
-
- object1.foo.b.c.d = object1;
- object1.bar.b = object1.foo.b;
-
- object2.foo.b.c.d = object2;
- object2.bar.b = object2.foo.b;
-
- assert.strictEqual(_.isEqual(object1, object2), true);
- });
-
- QUnit.test('should compare objects with shared property values', function(assert) {
- assert.expect(1);
-
- var object1 = {
- 'a': [1, 2]
- };
-
- var object2 = {
- 'a': [1, 2],
- 'b': [1, 2]
- };
-
- object1.b = object1.a;
-
- assert.strictEqual(_.isEqual(object1, object2), true);
- });
-
- QUnit.test('should treat objects created by `Object.create(null)` like a plain object', function(assert) {
- assert.expect(2);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.constructor = null;
-
- var object2 = { 'a': 1 };
- assert.strictEqual(_.isEqual(new Foo, object2), false);
-
- if (create) {
- var object1 = create(null);
- object1.a = 1;
- assert.strictEqual(_.isEqual(object1, object2), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for objects with custom `toString` methods', function(assert) {
- assert.expect(1);
-
- var primitive,
- object = { 'toString': function() { return primitive; } },
- values = [true, null, 1, 'a', undefined],
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value) {
- primitive = value;
- return _.isEqual(object, value);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should avoid common type coercions', function(assert) {
- assert.expect(9);
-
- assert.strictEqual(_.isEqual(true, Object(false)), false);
- assert.strictEqual(_.isEqual(Object(false), Object(0)), false);
- assert.strictEqual(_.isEqual(false, Object('')), false);
- assert.strictEqual(_.isEqual(Object(36), Object('36')), false);
- assert.strictEqual(_.isEqual(0, ''), false);
- assert.strictEqual(_.isEqual(1, true), false);
- assert.strictEqual(_.isEqual(1337756400000, new Date(2012, 4, 23)), false);
- assert.strictEqual(_.isEqual('36', 36), false);
- assert.strictEqual(_.isEqual(36, '36'), false);
- });
-
- QUnit.test('should compare `arguments` objects', function(assert) {
- assert.expect(2);
-
- var args1 = (function() { return arguments; }(1, 2, 3)),
- args2 = (function() { return arguments; }(1, 2, 3)),
- args3 = (function() { return arguments; }(1, 2));
-
- assert.strictEqual(_.isEqual(args1, args2), true);
- assert.strictEqual(_.isEqual(args1, args3), false);
- });
-
- QUnit.test('should treat `arguments` objects like `Object` objects', function(assert) {
- assert.expect(4);
-
- var args = (function() { return arguments; }(1, 2, 3)),
- object = { '0': 1, '1': 2, '2': 3 };
-
- function Foo() {}
- Foo.prototype = object;
-
- assert.strictEqual(_.isEqual(args, object), true);
- assert.strictEqual(_.isEqual(object, args), true);
-
- assert.strictEqual(_.isEqual(args, new Foo), false);
- assert.strictEqual(_.isEqual(new Foo, args), false);
- });
-
- QUnit.test('should compare array buffers', function(assert) {
- assert.expect(2);
-
- if (ArrayBuffer) {
- var buffer1 = new ArrayBuffer(4),
- buffer2 = new ArrayBuffer(8);
-
- assert.strictEqual(_.isEqual(buffer1, buffer2), false);
-
- buffer1 = new Int8Array([-1]).buffer;
- buffer2 = new Uint8Array([255]).buffer;
-
- assert.strictEqual(_.isEqual(buffer1, buffer2), true);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should compare array views', function(assert) {
- assert.expect(2);
-
- lodashStable.times(2, function(index) {
- var ns = index ? realm : root;
-
- var pairs = lodashStable.map(arrayViews, function(type, viewIndex) {
- var otherType = arrayViews[(viewIndex + 1) % arrayViews.length],
- CtorA = ns[type] || function(n) { this.n = n; },
- CtorB = ns[otherType] || function(n) { this.n = n; },
- bufferA = ns[type] ? new ns.ArrayBuffer(8) : 8,
- bufferB = ns[otherType] ? new ns.ArrayBuffer(8) : 8,
- bufferC = ns[otherType] ? new ns.ArrayBuffer(16) : 16;
-
- return [new CtorA(bufferA), new CtorA(bufferA), new CtorB(bufferB), new CtorB(bufferC)];
- });
-
- var expected = lodashStable.map(pairs, lodashStable.constant([true, false, false]));
-
- var actual = lodashStable.map(pairs, function(pair) {
- return [_.isEqual(pair[0], pair[1]), _.isEqual(pair[0], pair[2]), _.isEqual(pair[2], pair[3])];
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should compare date objects', function(assert) {
- assert.expect(4);
-
- var date = new Date(2012, 4, 23);
-
- assert.strictEqual(_.isEqual(date, new Date(2012, 4, 23)), true);
- assert.strictEqual(_.isEqual(date, new Date(2013, 3, 25)), false);
- assert.strictEqual(_.isEqual(date, { 'getTime': lodashStable.constant(+date) }), false);
- assert.strictEqual(_.isEqual(new Date('a'), new Date('a')), false);
- });
-
- QUnit.test('should compare error objects', function(assert) {
- assert.expect(1);
-
- var pairs = lodashStable.map([
- 'Error',
- 'EvalError',
- 'RangeError',
- 'ReferenceError',
- 'SyntaxError',
- 'TypeError',
- 'URIError'
- ], function(type, index, errorTypes) {
- var otherType = errorTypes[++index % errorTypes.length],
- CtorA = root[type],
- CtorB = root[otherType];
-
- return [new CtorA('a'), new CtorA('a'), new CtorB('a'), new CtorB('b')];
- });
-
- var expected = lodashStable.map(pairs, lodashStable.constant([true, false, false]));
-
- var actual = lodashStable.map(pairs, function(pair) {
- return [_.isEqual(pair[0], pair[1]), _.isEqual(pair[0], pair[2]), _.isEqual(pair[2], pair[3])];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should compare functions', function(assert) {
- assert.expect(2);
-
- function a() { return 1 + 2; }
- function b() { return 1 + 2; }
-
- assert.strictEqual(_.isEqual(a, a), true);
- assert.strictEqual(_.isEqual(a, b), false);
- });
-
- QUnit.test('should compare maps', function(assert) {
- assert.expect(8);
-
- if (Map) {
- lodashStable.each([[map, new Map], [map, realm.map]], function(maps) {
- var map1 = maps[0],
- map2 = maps[1];
-
- map1.set('a', 1);
- map2.set('b', 2);
- assert.strictEqual(_.isEqual(map1, map2), false);
-
- map1.set('b', 2);
- map2.set('a', 1);
- assert.strictEqual(_.isEqual(map1, map2), true);
-
- map1['delete']('a');
- map1.set('a', 1);
- assert.strictEqual(_.isEqual(map1, map2), true);
-
- map2['delete']('a');
- assert.strictEqual(_.isEqual(map1, map2), false);
-
- map1.clear();
- map2.clear();
- });
- }
- else {
- skipAssert(assert, 8);
- }
- });
-
- QUnit.test('should compare maps with circular references', function(assert) {
- assert.expect(2);
-
- if (Map) {
- var map1 = new Map,
- map2 = new Map;
-
- map1.set('a', map1);
- map2.set('a', map2);
- assert.strictEqual(_.isEqual(map1, map2), true);
-
- map1.set('b', 1);
- map2.set('b', 2);
- assert.strictEqual(_.isEqual(map1, map2), false);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should compare promises by reference', function(assert) {
- assert.expect(4);
-
- if (promise) {
- lodashStable.each([[promise, Promise.resolve(1)], [promise, realm.promise]], function(promises) {
- var promise1 = promises[0],
- promise2 = promises[1];
-
- assert.strictEqual(_.isEqual(promise1, promise2), false);
- assert.strictEqual(_.isEqual(promise1, promise1), true);
- });
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should compare regexes', function(assert) {
- assert.expect(5);
-
- assert.strictEqual(_.isEqual(/x/gim, /x/gim), true);
- assert.strictEqual(_.isEqual(/x/gim, /x/mgi), true);
- assert.strictEqual(_.isEqual(/x/gi, /x/g), false);
- assert.strictEqual(_.isEqual(/x/, /y/), false);
- assert.strictEqual(_.isEqual(/x/g, { 'global': true, 'ignoreCase': false, 'multiline': false, 'source': 'x' }), false);
- });
-
- QUnit.test('should compare sets', function(assert) {
- assert.expect(8);
-
- if (Set) {
- lodashStable.each([[set, new Set], [set, realm.set]], function(sets) {
- var set1 = sets[0],
- set2 = sets[1];
-
- set1.add(1);
- set2.add(2);
- assert.strictEqual(_.isEqual(set1, set2), false);
-
- set1.add(2);
- set2.add(1);
- assert.strictEqual(_.isEqual(set1, set2), true);
-
- set1['delete'](1);
- set1.add(1);
- assert.strictEqual(_.isEqual(set1, set2), true);
-
- set2['delete'](1);
- assert.strictEqual(_.isEqual(set1, set2), false);
-
- set1.clear();
- set2.clear();
- });
- }
- else {
- skipAssert(assert, 8);
- }
- });
-
- QUnit.test('should compare sets with circular references', function(assert) {
- assert.expect(2);
-
- if (Set) {
- var set1 = new Set,
- set2 = new Set;
-
- set1.add(set1);
- set2.add(set2);
- assert.strictEqual(_.isEqual(set1, set2), true);
-
- set1.add(1);
- set2.add(2);
- assert.strictEqual(_.isEqual(set1, set2), false);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should work as an iteratee for `_.every`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.every([1, 1, 1], lodashStable.partial(_.isEqual, 1));
- assert.ok(actual);
- });
-
- QUnit.test('should return `true` for like-objects from different documents', function(assert) {
- assert.expect(4);
-
- if (realm.object) {
- assert.strictEqual(_.isEqual([1], realm.array), true);
- assert.strictEqual(_.isEqual([2], realm.array), false);
- assert.strictEqual(_.isEqual({ 'a': 1 }, realm.object), true);
- assert.strictEqual(_.isEqual({ 'a': 2 }, realm.object), false);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should not error on DOM elements', function(assert) {
- assert.expect(1);
-
- if (document) {
- var element1 = document.createElement('div'),
- element2 = element1.cloneNode(true);
-
- try {
- assert.strictEqual(_.isEqual(element1, element2), false);
- } catch (e) {
- assert.ok(false, e.message);
- }
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should compare wrapped values', function(assert) {
- assert.expect(32);
-
- var stamp = +new Date;
-
- var values = [
- [[1, 2], [1, 2], [1, 2, 3]],
- [true, true, false],
- [new Date(stamp), new Date(stamp), new Date(stamp - 100)],
- [{ 'a': 1, 'b': 2 }, { 'a': 1, 'b': 2 }, { 'a': 1, 'b': 1 }],
- [1, 1, 2],
- [NaN, NaN, Infinity],
- [/x/, /x/, /x/i],
- ['a', 'a', 'A']
- ];
-
- lodashStable.each(values, function(vals) {
- if (!isNpm) {
- var wrapped1 = _(vals[0]),
- wrapped2 = _(vals[1]),
- actual = wrapped1.isEqual(wrapped2);
-
- assert.strictEqual(actual, true);
- assert.strictEqual(_.isEqual(_(actual), _(true)), true);
-
- wrapped1 = _(vals[0]);
- wrapped2 = _(vals[2]);
-
- actual = wrapped1.isEqual(wrapped2);
- assert.strictEqual(actual, false);
- assert.strictEqual(_.isEqual(_(actual), _(false)), true);
- }
- else {
- skipAssert(assert, 4);
- }
- });
- });
-
- QUnit.test('should compare wrapped and non-wrapped values', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- var object1 = _({ 'a': 1, 'b': 2 }),
- object2 = { 'a': 1, 'b': 2 };
-
- assert.strictEqual(object1.isEqual(object2), true);
- assert.strictEqual(_.isEqual(object1, object2), true);
-
- object1 = _({ 'a': 1, 'b': 2 });
- object2 = { 'a': 1, 'b': 1 };
-
- assert.strictEqual(object1.isEqual(object2), false);
- assert.strictEqual(_.isEqual(object1, object2), false);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.strictEqual(_('a').isEqual('a'), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_('a').chain().isEqual('a') instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isEqualWith');
-
- (function() {
- QUnit.test('should provide the correct `customizer` arguments', function(assert) {
- assert.expect(1);
-
- var argsList = [],
- object1 = { 'a': [1, 2], 'b': null },
- object2 = { 'a': [1, 2], 'b': null };
-
- object1.b = object2;
- object2.b = object1;
-
- var expected = [
- [object1, object2],
- [object1.a, object2.a, 'a', object1, object2],
- [object1.a[0], object2.a[0], 0, object1.a, object2.a],
- [object1.a[1], object2.a[1], 1, object1.a, object2.a],
- [object1.b, object2.b, 'b', object1.b, object2.b],
- [object1.b.a, object2.b.a, 'a', object1.b, object2.b],
- [object1.b.a[0], object2.b.a[0], 0, object1.b.a, object2.b.a],
- [object1.b.a[1], object2.b.a[1], 1, object1.b.a, object2.b.a],
- [object1.b.b, object2.b.b, 'b', object1.b.b, object2.b.b]
- ];
-
- _.isEqualWith(object1, object2, function(assert) {
- var length = arguments.length,
- args = slice.call(arguments, 0, length - (length > 2 ? 1 : 0));
-
- argsList.push(args);
- });
-
- assert.deepEqual(argsList, expected);
- });
-
- QUnit.test('should handle comparisons when `customizer` returns `undefined`', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.isEqualWith('a', 'a', noop), true);
- assert.strictEqual(_.isEqualWith(['a'], ['a'], noop), true);
- assert.strictEqual(_.isEqualWith({ '0': 'a' }, { '0': 'a' }, noop), true);
- });
-
- QUnit.test('should not handle comparisons when `customizer` returns `true`', function(assert) {
- assert.expect(3);
-
- var customizer = function(value) {
- return _.isString(value) || undefined;
- };
-
- assert.strictEqual(_.isEqualWith('a', 'b', customizer), true);
- assert.strictEqual(_.isEqualWith(['a'], ['b'], customizer), true);
- assert.strictEqual(_.isEqualWith({ '0': 'a' }, { '0': 'b' }, customizer), true);
- });
-
- QUnit.test('should not handle comparisons when `customizer` returns `false`', function(assert) {
- assert.expect(3);
-
- var customizer = function(value) {
- return _.isString(value) ? false : undefined;
- };
-
- assert.strictEqual(_.isEqualWith('a', 'a', customizer), false);
- assert.strictEqual(_.isEqualWith(['a'], ['a'], customizer), false);
- assert.strictEqual(_.isEqualWith({ '0': 'a' }, { '0': 'a' }, customizer), false);
- });
-
- QUnit.test('should return a boolean value even when `customizer` does not', function(assert) {
- assert.expect(2);
-
- var actual = _.isEqualWith('a', 'b', stubC);
- assert.strictEqual(actual, true);
-
- var values = _.without(falsey, undefined),
- expected = lodashStable.map(values, stubFalse);
-
- actual = [];
- lodashStable.each(values, function(value) {
- actual.push(_.isEqualWith('a', 'a', lodashStable.constant(value)));
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should ensure `customizer` is a function', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3],
- eq = _.partial(_.isEqualWith, array),
- actual = lodashStable.map([array, [1, 0, 3]], eq);
-
- assert.deepEqual(actual, [true, false]);
- });
-
- QUnit.test('should call `customizer` for values maps and sets', function(assert) {
- assert.expect(2);
-
- var value = { 'a': { 'b': 2 } };
-
- if (Map) {
- var map1 = new Map;
- map1.set('a', value);
-
- var map2 = new Map;
- map2.set('a', value);
- }
- if (Set) {
- var set1 = new Set;
- set1.add(value);
-
- var set2 = new Set;
- set2.add(value);
- }
- lodashStable.each([[map1, map2], [set1, set2]], function(pair, index) {
- if (pair[0]) {
- var argsList = [],
- array = lodashStable.toArray(pair[0]);
-
- var expected = [
- [pair[0], pair[1]],
- [array[0], array[0], 0, array, array],
- [array[0][0], array[0][0], 0, array[0], array[0]],
- [array[0][1], array[0][1], 1, array[0], array[0]]
- ];
-
- if (index) {
- expected.length = 2;
- }
- _.isEqualWith(pair[0], pair[1], function() {
- var length = arguments.length,
- args = slice.call(arguments, 0, length - (length > 2 ? 1 : 0));
-
- argsList.push(args);
- });
-
- assert.deepEqual(argsList, expected, index ? 'Set' : 'Map');
- }
- else {
- skipAssert(assert);
- }
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isError');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for error objects', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(errors, stubTrue);
-
- var actual = lodashStable.map(errors, function(error) {
- return _.isError(error) === true;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` for subclassed values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isError(new CustomError('x')), true);
- });
-
- QUnit.test('should return `false` for non error objects', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isError(value) : _.isError();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isError(args), false);
- assert.strictEqual(_.isError([1, 2, 3]), false);
- assert.strictEqual(_.isError(true), false);
- assert.strictEqual(_.isError(new Date), false);
- assert.strictEqual(_.isError(_), false);
- assert.strictEqual(_.isError(slice), false);
- assert.strictEqual(_.isError({ 'a': 1 }), false);
- assert.strictEqual(_.isError(1), false);
- assert.strictEqual(_.isError(/x/), false);
- assert.strictEqual(_.isError('a'), false);
- assert.strictEqual(_.isError(symbol), false);
- });
-
- QUnit.test('should work with an error object from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.errors) {
- var expected = lodashStable.map(realm.errors, stubTrue);
-
- var actual = lodashStable.map(realm.errors, function(error) {
- return _.isError(error) === true;
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isFinite');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for finite values', function(assert) {
- assert.expect(1);
-
- var values = [0, 1, 3.14, -1],
- expected = lodashStable.map(values, stubTrue),
- actual = lodashStable.map(values, _.isFinite);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` for non-finite values', function(assert) {
- assert.expect(1);
-
- var values = [NaN, Infinity, -Infinity, Object(1)],
- expected = lodashStable.map(values, stubFalse),
- actual = lodashStable.map(values, _.isFinite);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` for non-numeric values', function(assert) {
- assert.expect(10);
-
- var values = [undefined, [], true, '', ' ', '2px'],
- expected = lodashStable.map(values, stubFalse),
- actual = lodashStable.map(values, _.isFinite);
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isFinite(args), false);
- assert.strictEqual(_.isFinite([1, 2, 3]), false);
- assert.strictEqual(_.isFinite(true), false);
- assert.strictEqual(_.isFinite(new Date), false);
- assert.strictEqual(_.isFinite(new Error), false);
- assert.strictEqual(_.isFinite({ 'a': 1 }), false);
- assert.strictEqual(_.isFinite(/x/), false);
- assert.strictEqual(_.isFinite('a'), false);
- assert.strictEqual(_.isFinite(symbol), false);
- });
-
- QUnit.test('should return `false` for numeric string values', function(assert) {
- assert.expect(1);
-
- var values = ['2', '0', '08'],
- expected = lodashStable.map(values, stubFalse),
- actual = lodashStable.map(values, _.isFinite);
-
- assert.deepEqual(actual, expected);
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isFunction');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for functions', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.isFunction(_), true);
- assert.strictEqual(_.isFunction(slice), true);
- });
-
- QUnit.test('should return `true` for generator functions', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isFunction(generator), typeof generator == 'function');
- });
-
- QUnit.test('should return `true` for array view constructors', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(arrayViews, function(type) {
- return objToString.call(root[type]) == funcTag;
- });
-
- var actual = lodashStable.map(arrayViews, function(type) {
- return _.isFunction(root[type]);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` for non-functions', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isFunction(value) : _.isFunction();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isFunction(args), false);
- assert.strictEqual(_.isFunction([1, 2, 3]), false);
- assert.strictEqual(_.isFunction(true), false);
- assert.strictEqual(_.isFunction(new Date), false);
- assert.strictEqual(_.isFunction(new Error), false);
- assert.strictEqual(_.isFunction({ 'a': 1 }), false);
- assert.strictEqual(_.isFunction(1), false);
- assert.strictEqual(_.isFunction(/x/), false);
- assert.strictEqual(_.isFunction('a'), false);
- assert.strictEqual(_.isFunction(symbol), false);
-
- if (document) {
- assert.strictEqual(_.isFunction(document.getElementsByTagName('body')), false);
- } else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should work with host objects in IE 8 document mode (test in IE 11)', function(assert) {
- assert.expect(2);
-
- // Trigger a Chakra JIT bug.
- // See https://github.com/jashkenas/underscore/issues/1621.
- lodashStable.each([body, xml], function(object) {
- if (object) {
- lodashStable.times(100, _.isFunction);
- assert.strictEqual(_.isFunction(object), false);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- QUnit.test('should work with a function from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.function) {
- assert.strictEqual(_.isFunction(realm.function), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('isInteger methods');
-
- lodashStable.each(['isInteger', 'isSafeInteger'], function(methodName) {
- var args = arguments,
- func = _[methodName],
- isSafe = methodName == 'isSafeInteger';
-
- QUnit.test('`_.' + methodName + '` should return `true` for integer values', function(assert) {
- assert.expect(2);
-
- var values = [-1, 0, 1],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- return func(value);
- });
-
- assert.deepEqual(actual, expected);
- assert.strictEqual(func(MAX_INTEGER), !isSafe);
- });
-
- QUnit.test('should return `false` for non-integer number values', function(assert) {
- assert.expect(1);
-
- var values = [NaN, Infinity, -Infinity, Object(1), 3.14],
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value) {
- return func(value);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` for non-numeric values', function(assert) {
- assert.expect(10);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === 0;
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? func(value) : func();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(func(args), false);
- assert.strictEqual(func([1, 2, 3]), false);
- assert.strictEqual(func(true), false);
- assert.strictEqual(func(new Date), false);
- assert.strictEqual(func(new Error), false);
- assert.strictEqual(func({ 'a': 1 }), false);
- assert.strictEqual(func(/x/), false);
- assert.strictEqual(func('a'), false);
- assert.strictEqual(func(symbol), false);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isLength');
-
- (function() {
- QUnit.test('should return `true` for lengths', function(assert) {
- assert.expect(1);
-
- var values = [0, 3, MAX_SAFE_INTEGER],
- expected = lodashStable.map(values, stubTrue),
- actual = lodashStable.map(values, _.isLength);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` for non-lengths', function(assert) {
- assert.expect(1);
-
- var values = [-1, '1', 1.1, MAX_SAFE_INTEGER + 1],
- expected = lodashStable.map(values, stubFalse),
- actual = lodashStable.map(values, _.isLength);
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isMap');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for maps', function(assert) {
- assert.expect(1);
-
- if (Map) {
- assert.strictEqual(_.isMap(map), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for non-maps', function(assert) {
- assert.expect(14);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isMap(value) : _.isMap();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isMap(args), false);
- assert.strictEqual(_.isMap([1, 2, 3]), false);
- assert.strictEqual(_.isMap(true), false);
- assert.strictEqual(_.isMap(new Date), false);
- assert.strictEqual(_.isMap(new Error), false);
- assert.strictEqual(_.isMap(_), false);
- assert.strictEqual(_.isMap(slice), false);
- assert.strictEqual(_.isMap({ 'a': 1 }), false);
- assert.strictEqual(_.isMap(1), false);
- assert.strictEqual(_.isMap(/x/), false);
- assert.strictEqual(_.isMap('a'), false);
- assert.strictEqual(_.isMap(symbol), false);
- assert.strictEqual(_.isMap(weakMap), false);
- });
-
- QUnit.test('should work for objects with a non-function `constructor` (test in IE 11)', function(assert) {
- assert.expect(1);
-
- var values = [false, true],
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value) {
- return _.isMap({ 'constructor': value });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with maps from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.map) {
- assert.strictEqual(_.isMap(realm.map), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isMatch');
-
- (function() {
- QUnit.test('should perform a deep comparison between `object` and `source`', function(assert) {
- assert.expect(5);
-
- var object = { 'a': 1, 'b': 2, 'c': 3 };
- assert.strictEqual(_.isMatch(object, { 'a': 1 }), true);
- assert.strictEqual(_.isMatch(object, { 'b': 1 }), false);
- assert.strictEqual(_.isMatch(object, { 'a': 1, 'c': 3 }), true);
- assert.strictEqual(_.isMatch(object, { 'c': 3, 'd': 4 }), false);
-
- object = { 'a': { 'b': { 'c': 1, 'd': 2 }, 'e': 3 }, 'f': 4 };
- assert.strictEqual(_.isMatch(object, { 'a': { 'b': { 'c': 1 } } }), true);
- });
-
- QUnit.test('should match inherited string keyed `object` properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- assert.strictEqual(_.isMatch({ 'a': new Foo }, { 'a': { 'b': 2 } }), true);
- });
-
- QUnit.test('should not match by inherited `source` properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var objects = [{ 'a': 1 }, { 'a': 1, 'b': 2 }],
- source = new Foo,
- expected = lodashStable.map(objects, stubTrue);
-
- var actual = lodashStable.map(objects, function(object) {
- return _.isMatch(object, source);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should compare a variety of `source` property values', function(assert) {
- assert.expect(2);
-
- var object1 = { 'a': false, 'b': true, 'c': '3', 'd': 4, 'e': [5], 'f': { 'g': 6 } },
- object2 = { 'a': 0, 'b': 1, 'c': 3, 'd': '4', 'e': ['5'], 'f': { 'g': '6' } };
-
- assert.strictEqual(_.isMatch(object1, object1), true);
- assert.strictEqual(_.isMatch(object1, object2), false);
- });
-
- QUnit.test('should match `-0` as `0`', function(assert) {
- assert.expect(2);
-
- var object1 = { 'a': -0 },
- object2 = { 'a': 0 };
-
- assert.strictEqual(_.isMatch(object1, object2), true);
- assert.strictEqual(_.isMatch(object2, object1), true);
- });
-
- QUnit.test('should compare functions by reference', function(assert) {
- assert.expect(3);
-
- var object1 = { 'a': lodashStable.noop },
- object2 = { 'a': noop },
- object3 = { 'a': {} };
-
- assert.strictEqual(_.isMatch(object1, object1), true);
- assert.strictEqual(_.isMatch(object2, object1), false);
- assert.strictEqual(_.isMatch(object3, object1), false);
- });
-
- QUnit.test('should work with a function for `object`', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.a = { 'b': 2, 'c': 3 };
-
- assert.strictEqual(_.isMatch(Foo, { 'a': { 'b': 2 } }), true);
- });
-
- QUnit.test('should work with a function for `source`', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.a = 1;
- Foo.b = function() {};
- Foo.c = 3;
-
- var objects = [{ 'a': 1 }, { 'a': 1, 'b': Foo.b, 'c': 3 }];
-
- var actual = lodashStable.map(objects, function(object) {
- return _.isMatch(object, Foo);
- });
-
- assert.deepEqual(actual, [false, true]);
- });
-
- QUnit.test('should work with a non-plain `object`', function(assert) {
- assert.expect(1);
-
- function Foo(object) { lodashStable.assign(this, object); }
-
- var object = new Foo({ 'a': new Foo({ 'b': 2, 'c': 3 }) });
- assert.strictEqual(_.isMatch(object, { 'a': { 'b': 2 } }), true);
- });
-
- QUnit.test('should partial match arrays', function(assert) {
- assert.expect(3);
-
- var objects = [{ 'a': ['b'] }, { 'a': ['c', 'd'] }],
- source = { 'a': ['d'] },
- predicate = function(object) { return _.isMatch(object, source); },
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, [objects[1]]);
-
- source = { 'a': ['b', 'd'] };
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, []);
-
- source = { 'a': ['d', 'b'] };
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, []);
- });
-
- QUnit.test('should partial match arrays with duplicate values', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': [1, 2] }, { 'a': [2, 2] }],
- source = { 'a': [2, 2] };
-
- var actual = lodashStable.filter(objects, function(object) {
- return _.isMatch(object, source);
- });
-
- assert.deepEqual(actual, [objects[1]]);
- });
-
- QUnit.test('should partial match arrays of objects', function(assert) {
- assert.expect(1);
-
- var source = { 'a': [{ 'b': 1 }, { 'b': 4, 'c': 5 }] };
-
- var objects = [
- { 'a': [{ 'b': 1, 'c': 2 }, { 'b': 4, 'c': 5, 'd': 6 }] },
- { 'a': [{ 'b': 1, 'c': 2 }, { 'b': 4, 'c': 6, 'd': 7 }] }
- ];
-
- var actual = lodashStable.filter(objects, function(object) {
- return _.isMatch(object, source);
- });
-
- assert.deepEqual(actual, [objects[0]]);
- });
-
- QUnit.test('should partial match maps', function(assert) {
- assert.expect(3);
-
- if (Map) {
- var objects = [{ 'a': new Map }, { 'a': new Map }];
- objects[0].a.set('a', 1);
- objects[1].a.set('a', 1);
- objects[1].a.set('b', 2);
-
- var map = new Map;
- map.set('b', 2);
-
- var source = { 'a': map },
- predicate = function(object) { return _.isMatch(object, source); },
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, [objects[1]]);
-
- map['delete']('b');
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, objects);
-
- map.set('c', 3);
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should partial match sets', function(assert) {
- assert.expect(3);
-
- if (Set) {
- var objects = [{ 'a': new Set }, { 'a': new Set }];
- objects[0].a.add(1);
- objects[1].a.add(1);
- objects[1].a.add(2);
-
- var set = new Set;
- set.add(2);
-
- var source = { 'a': set },
- predicate = function(object) { return _.isMatch(object, source); },
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, [objects[1]]);
-
- set['delete'](2);
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, objects);
-
- set.add(3);
- actual = lodashStable.filter(objects, predicate);
-
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should match `undefined` values', function(assert) {
- assert.expect(3);
-
- var objects = [{ 'a': 1 }, { 'a': 1, 'b': 1 }, { 'a': 1, 'b': undefined }],
- source = { 'b': undefined },
- predicate = function(object) { return _.isMatch(object, source); },
- actual = lodashStable.map(objects, predicate),
- expected = [false, false, true];
-
- assert.deepEqual(actual, expected);
-
- source = { 'a': 1, 'b': undefined };
- actual = lodashStable.map(objects, predicate);
-
- assert.deepEqual(actual, expected);
-
- objects = [{ 'a': { 'b': 2 } }, { 'a': { 'b': 2, 'c': 3 } }, { 'a': { 'b': 2, 'c': undefined } }];
- source = { 'a': { 'c': undefined } };
- actual = lodashStable.map(objects, predicate);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should match `undefined` values on primitives', function(assert) {
- assert.expect(3);
-
- numberProto.a = 1;
- numberProto.b = undefined;
-
- try {
- assert.strictEqual(_.isMatch(1, { 'b': undefined }), true);
- } catch (e) {
- assert.ok(false, e.message);
- }
- try {
- assert.strictEqual(_.isMatch(1, { 'a': 1, 'b': undefined }), true);
- } catch (e) {
- assert.ok(false, e.message);
- }
- numberProto.a = { 'b': 1, 'c': undefined };
- try {
- assert.strictEqual(_.isMatch(1, { 'a': { 'c': undefined } }), true);
- } catch (e) {
- assert.ok(false, e.message);
- }
- delete numberProto.a;
- delete numberProto.b;
- });
-
- QUnit.test('should return `false` when `object` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [null, undefined],
- expected = lodashStable.map(values, stubFalse),
- source = { 'a': 1 };
-
- var actual = lodashStable.map(values, function(value) {
- try {
- return _.isMatch(value, source);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` when comparing an empty `source` to a nullish `object`', function(assert) {
- assert.expect(1);
-
- var values = [null, undefined],
- expected = lodashStable.map(values, stubTrue),
- source = {};
-
- var actual = lodashStable.map(values, function(value) {
- try {
- return _.isMatch(value, source);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` when comparing an empty `source`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1 },
- expected = lodashStable.map(empties, stubTrue);
-
- var actual = lodashStable.map(empties, function(value) {
- return _.isMatch(object, value);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` when comparing a `source` of empty arrays and objects', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': [1], 'b': { 'c': 1 } }, { 'a': [2, 3], 'b': { 'd': 2 } }],
- source = { 'a': [], 'b': {} };
-
- var actual = lodashStable.filter(objects, function(object) {
- return _.isMatch(object, source);
- });
-
- assert.deepEqual(actual, objects);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isMatchWith');
-
- (function() {
- QUnit.test('should provide the correct `customizer` arguments', function(assert) {
- assert.expect(1);
-
- var argsList = [],
- object1 = { 'a': [1, 2], 'b': null },
- object2 = { 'a': [1, 2], 'b': null };
-
- object1.b = object2;
- object2.b = object1;
-
- var expected = [
- [object1.a, object2.a, 'a', object1, object2],
- [object1.a[0], object2.a[0], 0, object1.a, object2.a],
- [object1.a[1], object2.a[1], 1, object1.a, object2.a],
- [object1.b, object2.b, 'b', object1, object2],
- [object1.b.a, object2.b.a, 'a', object1.b, object2.b],
- [object1.b.a[0], object2.b.a[0], 0, object1.b.a, object2.b.a],
- [object1.b.a[1], object2.b.a[1], 1, object1.b.a, object2.b.a],
- [object1.b.b, object2.b.b, 'b', object1.b, object2.b],
- [object1.b.b.a, object2.b.b.a, 'a', object1.b.b, object2.b.b],
- [object1.b.b.a[0], object2.b.b.a[0], 0, object1.b.b.a, object2.b.b.a],
- [object1.b.b.a[1], object2.b.b.a[1], 1, object1.b.b.a, object2.b.b.a],
- [object1.b.b.b, object2.b.b.b, 'b', object1.b.b, object2.b.b]
- ];
-
- _.isMatchWith(object1, object2, function(assert) {
- argsList.push(slice.call(arguments, 0, -1));
- });
-
- assert.deepEqual(argsList, expected);
- });
-
- QUnit.test('should handle comparisons when `customizer` returns `undefined`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isMatchWith({ 'a': 1 }, { 'a': 1 }, noop), true);
- });
-
- QUnit.test('should not handle comparisons when `customizer` returns `true`', function(assert) {
- assert.expect(2);
-
- var customizer = function(value) {
- return _.isString(value) || undefined;
- };
-
- assert.strictEqual(_.isMatchWith(['a'], ['b'], customizer), true);
- assert.strictEqual(_.isMatchWith({ '0': 'a' }, { '0': 'b' }, customizer), true);
- });
-
- QUnit.test('should not handle comparisons when `customizer` returns `false`', function(assert) {
- assert.expect(2);
-
- var customizer = function(value) {
- return _.isString(value) ? false : undefined;
- };
-
- assert.strictEqual(_.isMatchWith(['a'], ['a'], customizer), false);
- assert.strictEqual(_.isMatchWith({ '0': 'a' }, { '0': 'a' }, customizer), false);
- });
-
- QUnit.test('should return a boolean value even when `customizer` does not', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1 },
- actual = _.isMatchWith(object, { 'a': 1 }, stubA);
-
- assert.strictEqual(actual, true);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- actual = [];
- lodashStable.each(falsey, function(value) {
- actual.push(_.isMatchWith(object, { 'a': 2 }, lodashStable.constant(value)));
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should provide `stack` to `customizer`', function(assert) {
- assert.expect(1);
-
- var actual;
-
- _.isMatchWith({ 'a': 1 }, { 'a': 1 }, function() {
- actual = _.last(arguments);
- });
-
- assert.ok(isNpm
- ? actual.constructor.name == 'Stack'
- : actual instanceof mapCaches.Stack
- );
- });
-
- QUnit.test('should ensure `customizer` is a function', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1 },
- matches = _.partial(_.isMatchWith, object),
- actual = lodashStable.map([object, { 'a': 2 }], matches);
-
- assert.deepEqual(actual, [true, false]);
- });
-
- QUnit.test('should call `customizer` for values maps and sets', function(assert) {
- assert.expect(2);
-
- var value = { 'a': { 'b': 2 } };
-
- if (Map) {
- var map1 = new Map;
- map1.set('a', value);
-
- var map2 = new Map;
- map2.set('a', value);
- }
- if (Set) {
- var set1 = new Set;
- set1.add(value);
-
- var set2 = new Set;
- set2.add(value);
- }
- lodashStable.each([[map1, map2], [set1, set2]], function(pair, index) {
- if (pair[0]) {
- var argsList = [],
- array = lodashStable.toArray(pair[0]),
- object1 = { 'a': pair[0] },
- object2 = { 'a': pair[1] };
-
- var expected = [
- [pair[0], pair[1], 'a', object1, object2],
- [array[0], array[0], 0, array, array],
- [array[0][0], array[0][0], 0, array[0], array[0]],
- [array[0][1], array[0][1], 1, array[0], array[0]]
- ];
-
- if (index) {
- expected.length = 2;
- }
- _.isMatchWith({ 'a': pair[0] }, { 'a': pair[1] }, function() {
- argsList.push(slice.call(arguments, 0, -1));
- });
-
- assert.deepEqual(argsList, expected, index ? 'Set' : 'Map');
- }
- else {
- skipAssert(assert);
- }
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isNaN');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for NaNs', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.isNaN(NaN), true);
- assert.strictEqual(_.isNaN(Object(NaN)), true);
- });
-
- QUnit.test('should return `false` for non-NaNs', function(assert) {
- assert.expect(14);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value !== value;
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isNaN(value) : _.isNaN();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isNaN(args), false);
- assert.strictEqual(_.isNaN([1, 2, 3]), false);
- assert.strictEqual(_.isNaN(true), false);
- assert.strictEqual(_.isNaN(new Date), false);
- assert.strictEqual(_.isNaN(new Error), false);
- assert.strictEqual(_.isNaN(_), false);
- assert.strictEqual(_.isNaN(slice), false);
- assert.strictEqual(_.isNaN({ 'a': 1 }), false);
- assert.strictEqual(_.isNaN(1), false);
- assert.strictEqual(_.isNaN(Object(1)), false);
- assert.strictEqual(_.isNaN(/x/), false);
- assert.strictEqual(_.isNaN('a'), false);
- assert.strictEqual(_.isNaN(symbol), false);
- });
-
- QUnit.test('should work with `NaN` from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.object) {
- assert.strictEqual(_.isNaN(realm.nan), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isNative');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for native methods', function(assert) {
- assert.expect(1);
-
- var values = [Array, body && body.cloneNode, create, root.encodeURI, Promise, slice, Uint8Array],
- expected = lodashStable.map(values, Boolean),
- actual = lodashStable.map(values, _.isNative);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` for non-native methods', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isNative(value) : _.isNative();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isNative(args), false);
- assert.strictEqual(_.isNative([1, 2, 3]), false);
- assert.strictEqual(_.isNative(true), false);
- assert.strictEqual(_.isNative(new Date), false);
- assert.strictEqual(_.isNative(new Error), false);
- assert.strictEqual(_.isNative(_), false);
- assert.strictEqual(_.isNative({ 'a': 1 }), false);
- assert.strictEqual(_.isNative(1), false);
- assert.strictEqual(_.isNative(/x/), false);
- assert.strictEqual(_.isNative('a'), false);
- assert.strictEqual(_.isNative(symbol), false);
- });
-
- QUnit.test('should work with native functions from another realm', function(assert) {
- assert.expect(2);
-
- if (realm.element) {
- assert.strictEqual(_.isNative(realm.element.cloneNode), true);
- }
- else {
- skipAssert(assert);
- }
- if (realm.object) {
- assert.strictEqual(_.isNative(realm.object.valueOf), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should throw an error if core-js is detected', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var lodash = _.runInContext({
- '__core-js_shared__': {}
- });
-
- assert.raises(function() { lodash.isNative(noop); });
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should detect methods masquerading as native', function(assert) {
- assert.expect(2);
-
- if (_._baseEach) {
- var path = require('path'),
- basePath = path.dirname(filePath),
- uid = 'e0gvgyrad1jor',
- coreKey = '__core-js_shared__',
- fakeSrcKey = 'Symbol(src)_1.' + uid;
-
- root[coreKey] = { 'keys': { 'IE_PROTO': 'Symbol(IE_PROTO)_3.' + uid } };
- emptyObject(require.cache);
-
- var baseIsNative = interopRequire(path.join(basePath, '_baseIsNative'));
- assert.strictEqual(baseIsNative(slice), true);
-
- slice[fakeSrcKey] = slice + '';
- assert.strictEqual(baseIsNative(slice), false);
-
- delete slice[fakeSrcKey];
- delete root[coreKey];
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isNil');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for nullish values', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.isNil(null), true);
- assert.strictEqual(_.isNil(), true);
- assert.strictEqual(_.isNil(undefined), true);
- });
-
- QUnit.test('should return `false` for non-nullish values', function(assert) {
- assert.expect(13);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value == null;
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isNil(value) : _.isNil();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isNil(args), false);
- assert.strictEqual(_.isNil([1, 2, 3]), false);
- assert.strictEqual(_.isNil(true), false);
- assert.strictEqual(_.isNil(new Date), false);
- assert.strictEqual(_.isNil(new Error), false);
- assert.strictEqual(_.isNil(_), false);
- assert.strictEqual(_.isNil(slice), false);
- assert.strictEqual(_.isNil({ 'a': 1 }), false);
- assert.strictEqual(_.isNil(1), false);
- assert.strictEqual(_.isNil(/x/), false);
- assert.strictEqual(_.isNil('a'), false);
-
- if (Symbol) {
- assert.strictEqual(_.isNil(symbol), false);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should work with nils from another realm', function(assert) {
- assert.expect(2);
-
- if (realm.object) {
- assert.strictEqual(_.isNil(realm.null), true);
- assert.strictEqual(_.isNil(realm.undefined), true);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isNull');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for `null` values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isNull(null), true);
- });
-
- QUnit.test('should return `false` for non `null` values', function(assert) {
- assert.expect(13);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === null;
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isNull(value) : _.isNull();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isNull(args), false);
- assert.strictEqual(_.isNull([1, 2, 3]), false);
- assert.strictEqual(_.isNull(true), false);
- assert.strictEqual(_.isNull(new Date), false);
- assert.strictEqual(_.isNull(new Error), false);
- assert.strictEqual(_.isNull(_), false);
- assert.strictEqual(_.isNull(slice), false);
- assert.strictEqual(_.isNull({ 'a': 1 }), false);
- assert.strictEqual(_.isNull(1), false);
- assert.strictEqual(_.isNull(/x/), false);
- assert.strictEqual(_.isNull('a'), false);
- assert.strictEqual(_.isNull(symbol), false);
- });
-
- QUnit.test('should work with nulls from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.object) {
- assert.strictEqual(_.isNull(realm.null), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isNumber');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for numbers', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.isNumber(0), true);
- assert.strictEqual(_.isNumber(Object(0)), true);
- assert.strictEqual(_.isNumber(NaN), true);
- });
-
- QUnit.test('should return `false` for non-numbers', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, function(value) {
- return typeof value == 'number';
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isNumber(value) : _.isNumber();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isNumber(args), false);
- assert.strictEqual(_.isNumber([1, 2, 3]), false);
- assert.strictEqual(_.isNumber(true), false);
- assert.strictEqual(_.isNumber(new Date), false);
- assert.strictEqual(_.isNumber(new Error), false);
- assert.strictEqual(_.isNumber(_), false);
- assert.strictEqual(_.isNumber(slice), false);
- assert.strictEqual(_.isNumber({ 'a': 1 }), false);
- assert.strictEqual(_.isNumber(/x/), false);
- assert.strictEqual(_.isNumber('a'), false);
- assert.strictEqual(_.isNumber(symbol), false);
- });
-
- QUnit.test('should work with numbers from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.number) {
- assert.strictEqual(_.isNumber(realm.number), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should avoid `[xpconnect wrapped native prototype]` in Firefox', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.isNumber(+'2'), true);
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isObject');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for objects', function(assert) {
- assert.expect(13);
-
- assert.strictEqual(_.isObject(args), true);
- assert.strictEqual(_.isObject([1, 2, 3]), true);
- assert.strictEqual(_.isObject(Object(false)), true);
- assert.strictEqual(_.isObject(new Date), true);
- assert.strictEqual(_.isObject(new Error), true);
- assert.strictEqual(_.isObject(_), true);
- assert.strictEqual(_.isObject(slice), true);
- assert.strictEqual(_.isObject({ 'a': 1 }), true);
- assert.strictEqual(_.isObject(Object(0)), true);
- assert.strictEqual(_.isObject(/x/), true);
- assert.strictEqual(_.isObject(Object('a')), true);
-
- if (document) {
- assert.strictEqual(_.isObject(body), true);
- }
- else {
- skipAssert(assert);
- }
- if (Symbol) {
- assert.strictEqual(_.isObject(Object(symbol)), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for non-objects', function(assert) {
- assert.expect(1);
-
- var values = falsey.concat(true, 1, 'a', symbol),
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.isObject(value) : _.isObject();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with objects from another realm', function(assert) {
- assert.expect(8);
-
- if (realm.element) {
- assert.strictEqual(_.isObject(realm.element), true);
- }
- else {
- skipAssert(assert);
- }
- if (realm.object) {
- assert.strictEqual(_.isObject(realm.boolean), true);
- assert.strictEqual(_.isObject(realm.date), true);
- assert.strictEqual(_.isObject(realm.function), true);
- assert.strictEqual(_.isObject(realm.number), true);
- assert.strictEqual(_.isObject(realm.object), true);
- assert.strictEqual(_.isObject(realm.regexp), true);
- assert.strictEqual(_.isObject(realm.string), true);
- }
- else {
- skipAssert(assert, 7);
- }
- });
-
- QUnit.test('should avoid V8 bug #2291 (test in Chrome 19-20)', function(assert) {
- assert.expect(1);
-
- // Trigger a V8 JIT bug.
- // See https://code.google.com/p/v8/issues/detail?id=2291.
- var object = {};
-
- // First, have a comparison statement.
- object == object;
-
- // Then perform the check with `object`.
- _.isObject(object);
-
- assert.strictEqual(_.isObject('a'), false);
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isObjectLike');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for objects', function(assert) {
- assert.expect(9);
-
- assert.strictEqual(_.isObjectLike(args), true);
- assert.strictEqual(_.isObjectLike([1, 2, 3]), true);
- assert.strictEqual(_.isObjectLike(Object(false)), true);
- assert.strictEqual(_.isObjectLike(new Date), true);
- assert.strictEqual(_.isObjectLike(new Error), true);
- assert.strictEqual(_.isObjectLike({ 'a': 1 }), true);
- assert.strictEqual(_.isObjectLike(Object(0)), true);
- assert.strictEqual(_.isObjectLike(/x/), true);
- assert.strictEqual(_.isObjectLike(Object('a')), true);
- });
-
- QUnit.test('should return `false` for non-objects', function(assert) {
- assert.expect(1);
-
- var values = falsey.concat(true, _, slice, 1, 'a', symbol),
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.isObjectLike(value) : _.isObjectLike();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with objects from another realm', function(assert) {
- assert.expect(6);
-
- if (realm.object) {
- assert.strictEqual(_.isObjectLike(realm.boolean), true);
- assert.strictEqual(_.isObjectLike(realm.date), true);
- assert.strictEqual(_.isObjectLike(realm.number), true);
- assert.strictEqual(_.isObjectLike(realm.object), true);
- assert.strictEqual(_.isObjectLike(realm.regexp), true);
- assert.strictEqual(_.isObjectLike(realm.string), true);
- }
- else {
- skipAssert(assert, 6);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isPlainObject');
-
- (function() {
- var element = document && document.createElement('div');
-
- QUnit.test('should detect plain objects', function(assert) {
- assert.expect(5);
-
- function Foo(a) {
- this.a = 1;
- }
-
- assert.strictEqual(_.isPlainObject({}), true);
- assert.strictEqual(_.isPlainObject({ 'a': 1 }), true);
- assert.strictEqual(_.isPlainObject({ 'constructor': Foo }), true);
- assert.strictEqual(_.isPlainObject([1, 2, 3]), false);
- assert.strictEqual(_.isPlainObject(new Foo(1)), false);
- });
-
- QUnit.test('should return `true` for objects with a `[[Prototype]]` of `null`', function(assert) {
- assert.expect(2);
-
- if (create) {
- var object = create(null);
- assert.strictEqual(_.isPlainObject(object), true);
-
- object.constructor = objectProto.constructor;
- assert.strictEqual(_.isPlainObject(object), true);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should return `true` for plain objects with a custom `valueOf` property', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.isPlainObject({ 'valueOf': 0 }), true);
-
- if (element) {
- var valueOf = element.valueOf;
- element.valueOf = 0;
-
- assert.strictEqual(_.isPlainObject(element), false);
- element.valueOf = valueOf;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for objects with a custom `[[Prototype]]`', function(assert) {
- assert.expect(1);
-
- if (create) {
- var object = create({ 'a': 1 });
- assert.strictEqual(_.isPlainObject(object), false);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for DOM elements', function(assert) {
- assert.expect(1);
-
- if (element) {
- assert.strictEqual(_.isPlainObject(element), false);
- } else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for Object objects without a `toStringTag` of "Object"', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.isPlainObject(arguments), false);
- assert.strictEqual(_.isPlainObject(Error), false);
- assert.strictEqual(_.isPlainObject(Math), false);
- });
-
- QUnit.test('should return `false` for non-objects', function(assert) {
- assert.expect(4);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isPlainObject(value) : _.isPlainObject();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isPlainObject(true), false);
- assert.strictEqual(_.isPlainObject('a'), false);
- assert.strictEqual(_.isPlainObject(symbol), false);
- });
-
- QUnit.test('should work with objects from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.object) {
- assert.strictEqual(_.isPlainObject(realm.object), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isRegExp');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for regexes', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.isRegExp(/x/), true);
- assert.strictEqual(_.isRegExp(RegExp('x')), true);
- });
-
- QUnit.test('should return `false` for non-regexes', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isRegExp(value) : _.isRegExp();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isRegExp(args), false);
- assert.strictEqual(_.isRegExp([1, 2, 3]), false);
- assert.strictEqual(_.isRegExp(true), false);
- assert.strictEqual(_.isRegExp(new Date), false);
- assert.strictEqual(_.isRegExp(new Error), false);
- assert.strictEqual(_.isRegExp(_), false);
- assert.strictEqual(_.isRegExp(slice), false);
- assert.strictEqual(_.isRegExp({ 'a': 1 }), false);
- assert.strictEqual(_.isRegExp(1), false);
- assert.strictEqual(_.isRegExp('a'), false);
- assert.strictEqual(_.isRegExp(symbol), false);
- });
-
- QUnit.test('should work with regexes from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.regexp) {
- assert.strictEqual(_.isRegExp(realm.regexp), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isSet');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for sets', function(assert) {
- assert.expect(1);
-
- if (Set) {
- assert.strictEqual(_.isSet(set), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for non-sets', function(assert) {
- assert.expect(14);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isSet(value) : _.isSet();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isSet(args), false);
- assert.strictEqual(_.isSet([1, 2, 3]), false);
- assert.strictEqual(_.isSet(true), false);
- assert.strictEqual(_.isSet(new Date), false);
- assert.strictEqual(_.isSet(new Error), false);
- assert.strictEqual(_.isSet(_), false);
- assert.strictEqual(_.isSet(slice), false);
- assert.strictEqual(_.isSet({ 'a': 1 }), false);
- assert.strictEqual(_.isSet(1), false);
- assert.strictEqual(_.isSet(/x/), false);
- assert.strictEqual(_.isSet('a'), false);
- assert.strictEqual(_.isSet(symbol), false);
- assert.strictEqual(_.isSet(weakSet), false);
- });
-
- QUnit.test('should work for objects with a non-function `constructor` (test in IE 11)', function(assert) {
- assert.expect(1);
-
- var values = [false, true],
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value) {
- return _.isSet({ 'constructor': value });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with weak sets from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.set) {
- assert.strictEqual(_.isSet(realm.set), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isString');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for strings', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.isString('a'), true);
- assert.strictEqual(_.isString(Object('a')), true);
- });
-
- QUnit.test('should return `false` for non-strings', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === '';
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isString(value) : _.isString();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isString(args), false);
- assert.strictEqual(_.isString([1, 2, 3]), false);
- assert.strictEqual(_.isString(true), false);
- assert.strictEqual(_.isString(new Date), false);
- assert.strictEqual(_.isString(new Error), false);
- assert.strictEqual(_.isString(_), false);
- assert.strictEqual(_.isString(slice), false);
- assert.strictEqual(_.isString({ '0': 1, 'length': 1 }), false);
- assert.strictEqual(_.isString(1), false);
- assert.strictEqual(_.isString(/x/), false);
- assert.strictEqual(_.isString(symbol), false);
- });
-
- QUnit.test('should work with strings from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.string) {
- assert.strictEqual(_.isString(realm.string), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isSymbol');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for symbols', function(assert) {
- assert.expect(2);
-
- if (Symbol) {
- assert.strictEqual(_.isSymbol(symbol), true);
- assert.strictEqual(_.isSymbol(Object(symbol)), true);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should return `false` for non-symbols', function(assert) {
- assert.expect(12);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isSymbol(value) : _.isSymbol();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isSymbol(args), false);
- assert.strictEqual(_.isSymbol([1, 2, 3]), false);
- assert.strictEqual(_.isSymbol(true), false);
- assert.strictEqual(_.isSymbol(new Date), false);
- assert.strictEqual(_.isSymbol(new Error), false);
- assert.strictEqual(_.isSymbol(_), false);
- assert.strictEqual(_.isSymbol(slice), false);
- assert.strictEqual(_.isSymbol({ '0': 1, 'length': 1 }), false);
- assert.strictEqual(_.isSymbol(1), false);
- assert.strictEqual(_.isSymbol(/x/), false);
- assert.strictEqual(_.isSymbol('a'), false);
- });
-
- QUnit.test('should work with symbols from another realm', function(assert) {
- assert.expect(1);
-
- if (Symbol && realm.symbol) {
- assert.strictEqual(_.isSymbol(realm.symbol), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isTypedArray');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for typed arrays', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(typedArrays, function(type) {
- return type in root;
- });
-
- var actual = lodashStable.map(typedArrays, function(type) {
- var Ctor = root[type];
- return Ctor ? _.isTypedArray(new Ctor(new ArrayBuffer(8))) : false;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `false` for non typed arrays', function(assert) {
- assert.expect(13);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isTypedArray(value) : _.isTypedArray();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isTypedArray(args), false);
- assert.strictEqual(_.isTypedArray([1, 2, 3]), false);
- assert.strictEqual(_.isTypedArray(true), false);
- assert.strictEqual(_.isTypedArray(new Date), false);
- assert.strictEqual(_.isTypedArray(new Error), false);
- assert.strictEqual(_.isTypedArray(_), false);
- assert.strictEqual(_.isTypedArray(slice), false);
- assert.strictEqual(_.isTypedArray({ 'a': 1 }), false);
- assert.strictEqual(_.isTypedArray(1), false);
- assert.strictEqual(_.isTypedArray(/x/), false);
- assert.strictEqual(_.isTypedArray('a'), false);
- assert.strictEqual(_.isTypedArray(symbol), false);
- });
-
- QUnit.test('should work with typed arrays from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.object) {
- var props = lodashStable.invokeMap(typedArrays, 'toLowerCase');
-
- var expected = lodashStable.map(props, function(key) {
- return realm[key] !== undefined;
- });
-
- var actual = lodashStable.map(props, function(key) {
- var value = realm[key];
- return value ? _.isTypedArray(value) : false;
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isUndefined');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for `undefined` values', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.isUndefined(), true);
- assert.strictEqual(_.isUndefined(undefined), true);
- });
-
- QUnit.test('should return `false` for non `undefined` values', function(assert) {
- assert.expect(13);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined;
- });
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isUndefined(value) : _.isUndefined();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isUndefined(args), false);
- assert.strictEqual(_.isUndefined([1, 2, 3]), false);
- assert.strictEqual(_.isUndefined(true), false);
- assert.strictEqual(_.isUndefined(new Date), false);
- assert.strictEqual(_.isUndefined(new Error), false);
- assert.strictEqual(_.isUndefined(_), false);
- assert.strictEqual(_.isUndefined(slice), false);
- assert.strictEqual(_.isUndefined({ 'a': 1 }), false);
- assert.strictEqual(_.isUndefined(1), false);
- assert.strictEqual(_.isUndefined(/x/), false);
- assert.strictEqual(_.isUndefined('a'), false);
-
- if (Symbol) {
- assert.strictEqual(_.isUndefined(symbol), false);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should work with `undefined` from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.object) {
- assert.strictEqual(_.isUndefined(realm.undefined), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isWeakMap');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for weak maps', function(assert) {
- assert.expect(1);
-
- if (WeakMap) {
- assert.strictEqual(_.isWeakMap(weakMap), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for non weak maps', function(assert) {
- assert.expect(14);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isWeakMap(value) : _.isWeakMap();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isWeakMap(args), false);
- assert.strictEqual(_.isWeakMap([1, 2, 3]), false);
- assert.strictEqual(_.isWeakMap(true), false);
- assert.strictEqual(_.isWeakMap(new Date), false);
- assert.strictEqual(_.isWeakMap(new Error), false);
- assert.strictEqual(_.isWeakMap(_), false);
- assert.strictEqual(_.isWeakMap(slice), false);
- assert.strictEqual(_.isWeakMap({ 'a': 1 }), false);
- assert.strictEqual(_.isWeakMap(map), false);
- assert.strictEqual(_.isWeakMap(1), false);
- assert.strictEqual(_.isWeakMap(/x/), false);
- assert.strictEqual(_.isWeakMap('a'), false);
- assert.strictEqual(_.isWeakMap(symbol), false);
- });
-
- QUnit.test('should work for objects with a non-function `constructor` (test in IE 11)', function(assert) {
- assert.expect(1);
-
- var values = [false, true],
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value) {
- return _.isWeakMap({ 'constructor': value });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with weak maps from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.weakMap) {
- assert.strictEqual(_.isWeakMap(realm.weakMap), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.isWeakSet');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should return `true` for weak sets', function(assert) {
- assert.expect(1);
-
- if (WeakSet) {
- assert.strictEqual(_.isWeakSet(weakSet), true);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return `false` for non weak sets', function(assert) {
- assert.expect(14);
-
- var expected = lodashStable.map(falsey, stubFalse);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- return index ? _.isWeakSet(value) : _.isWeakSet();
- });
-
- assert.deepEqual(actual, expected);
-
- assert.strictEqual(_.isWeakSet(args), false);
- assert.strictEqual(_.isWeakSet([1, 2, 3]), false);
- assert.strictEqual(_.isWeakSet(true), false);
- assert.strictEqual(_.isWeakSet(new Date), false);
- assert.strictEqual(_.isWeakSet(new Error), false);
- assert.strictEqual(_.isWeakSet(_), false);
- assert.strictEqual(_.isWeakSet(slice), false);
- assert.strictEqual(_.isWeakSet({ 'a': 1 }), false);
- assert.strictEqual(_.isWeakSet(1), false);
- assert.strictEqual(_.isWeakSet(/x/), false);
- assert.strictEqual(_.isWeakSet('a'), false);
- assert.strictEqual(_.isWeakSet(set), false);
- assert.strictEqual(_.isWeakSet(symbol), false);
- });
-
- QUnit.test('should work with weak sets from another realm', function(assert) {
- assert.expect(1);
-
- if (realm.weakSet) {
- assert.strictEqual(_.isWeakSet(realm.weakSet), true);
- }
- else {
- skipAssert(assert);
- }
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('isType checks');
-
- (function() {
- QUnit.test('should return `false` for subclassed values', function(assert) {
- assert.expect(7);
-
- var funcs = [
- 'isArray', 'isBoolean', 'isDate', 'isFunction',
- 'isNumber', 'isRegExp', 'isString'
- ];
-
- lodashStable.each(funcs, function(methodName) {
- function Foo() {}
- Foo.prototype = root[methodName.slice(2)].prototype;
-
- var object = new Foo;
- if (objToString.call(object) == objectTag) {
- assert.strictEqual(_[methodName](object), false, '`_.' + methodName + '` returns `false`');
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- QUnit.test('should not error on host objects (test in IE)', function(assert) {
- assert.expect(26);
-
- var funcs = [
- 'isArguments', 'isArray', 'isArrayBuffer', 'isArrayLike', 'isBoolean',
- 'isBuffer', 'isDate', 'isElement', 'isError', 'isFinite', 'isFunction',
- 'isInteger', 'isMap', 'isNaN', 'isNil', 'isNull', 'isNumber', 'isObject',
- 'isObjectLike', 'isRegExp', 'isSet', 'isSafeInteger', 'isString',
- 'isUndefined', 'isWeakMap', 'isWeakSet'
- ];
-
- lodashStable.each(funcs, function(methodName) {
- if (xml) {
- var pass = true;
-
- try {
- _[methodName](xml);
- } catch (e) {
- pass = false;
- }
- assert.ok(pass, '`_.' + methodName + '` should not error');
- }
- else {
- skipAssert(assert);
- }
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.iteratee');
-
- (function() {
- QUnit.test('should provide arguments to `func`', function(assert) {
- assert.expect(1);
-
- var fn = function() { return slice.call(arguments); },
- iteratee = _.iteratee(fn),
- actual = iteratee('a', 'b', 'c', 'd', 'e', 'f');
-
- assert.deepEqual(actual, ['a', 'b', 'c', 'd', 'e', 'f']);
- });
-
- QUnit.test('should return `_.identity` when `func` is nullish', function(assert) {
- assert.expect(1);
-
- var object = {},
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant([!isNpm && _.identity, object]));
-
- var actual = lodashStable.map(values, function(value, index) {
- var identity = index ? _.iteratee(value) : _.iteratee();
- return [!isNpm && identity, identity(object)];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return an iteratee created by `_.matches` when `func` is an object', function(assert) {
- assert.expect(2);
-
- var matches = _.iteratee({ 'a': 1, 'b': 2 });
- assert.strictEqual(matches({ 'a': 1, 'b': 2, 'c': 3 }), true);
- assert.strictEqual(matches({ 'b': 2 }), false);
- });
-
- QUnit.test('should not change `_.matches` behavior if `source` is modified', function(assert) {
- assert.expect(9);
-
- var sources = [
- { 'a': { 'b': 2, 'c': 3 } },
- { 'a': 1, 'b': 2 },
- { 'a': 1 }
- ];
-
- lodashStable.each(sources, function(source, index) {
- var object = lodashStable.cloneDeep(source),
- matches = _.iteratee(source);
-
- assert.strictEqual(matches(object), true);
-
- if (index) {
- source.a = 2;
- source.b = 1;
- source.c = 3;
- } else {
- source.a.b = 1;
- source.a.c = 2;
- source.a.d = 3;
- }
- assert.strictEqual(matches(object), true);
- assert.strictEqual(matches(source), false);
- });
- });
-
- QUnit.test('should return an iteratee created by `_.matchesProperty` when `func` is an array', function(assert) {
- assert.expect(3);
-
- var array = ['a', undefined],
- matches = _.iteratee([0, 'a']);
-
- assert.strictEqual(matches(array), true);
-
- matches = _.iteratee(['0', 'a']);
- assert.strictEqual(matches(array), true);
-
- matches = _.iteratee([1, undefined]);
- assert.strictEqual(matches(array), true);
- });
-
- QUnit.test('should support deep paths for `_.matchesProperty` shorthands', function(assert) {
- assert.expect(1);
-
- var object = { 'a': { 'b': { 'c': 1, 'd': 2 } } },
- matches = _.iteratee(['a.b', { 'c': 1 }]);
-
- assert.strictEqual(matches(object), true);
- });
-
- QUnit.test('should not change `_.matchesProperty` behavior if `source` is modified', function(assert) {
- assert.expect(9);
-
- var sources = [
- { 'a': { 'b': 2, 'c': 3 } },
- { 'a': 1, 'b': 2 },
- { 'a': 1 }
- ];
-
- lodashStable.each(sources, function(source, index) {
- var object = { 'a': lodashStable.cloneDeep(source) },
- matches = _.iteratee(['a', source]);
-
- assert.strictEqual(matches(object), true);
-
- if (index) {
- source.a = 2;
- source.b = 1;
- source.c = 3;
- } else {
- source.a.b = 1;
- source.a.c = 2;
- source.a.d = 3;
- }
- assert.strictEqual(matches(object), true);
- assert.strictEqual(matches({ 'a': source }), false);
- });
- });
-
- QUnit.test('should return an iteratee created by `_.property` when `func` is a number or string', function(assert) {
- assert.expect(2);
-
- var array = ['a'],
- prop = _.iteratee(0);
-
- assert.strictEqual(prop(array), 'a');
-
- prop = _.iteratee('0');
- assert.strictEqual(prop(array), 'a');
- });
-
- QUnit.test('should support deep paths for `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var object = { 'a': { 'b': 2 } },
- prop = _.iteratee('a.b');
-
- assert.strictEqual(prop(object), 2);
- });
-
- QUnit.test('should work with functions created by `_.partial` and `_.partialRight`', function(assert) {
- assert.expect(2);
-
- var fn = function() {
- var result = [this.a];
- push.apply(result, arguments);
- return result;
- };
-
- var expected = [1, 2, 3],
- object = { 'a': 1 , 'iteratee': _.iteratee(_.partial(fn, 2)) };
-
- assert.deepEqual(object.iteratee(3), expected);
-
- object.iteratee = _.iteratee(_.partialRight(fn, 3));
- assert.deepEqual(object.iteratee(2), expected);
- });
-
- QUnit.test('should use internal `iteratee` if external is unavailable', function(assert) {
- assert.expect(1);
-
- var iteratee = _.iteratee;
- delete _.iteratee;
-
- assert.deepEqual(_.map([{ 'a': 1 }], 'a'), [1]);
-
- _.iteratee = iteratee;
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var fn = function() { return this instanceof Number; },
- array = [fn, fn, fn],
- iteratees = lodashStable.map(array, _.iteratee),
- expected = lodashStable.map(array, stubFalse);
-
- var actual = lodashStable.map(iteratees, function(iteratee) {
- return iteratee();
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('custom `_.iteratee` methods');
-
- (function() {
- var array = ['one', 'two', 'three'],
- getPropA = _.partial(_.property, 'a'),
- getPropB = _.partial(_.property, 'b'),
- getLength = _.partial(_.property, 'length'),
- iteratee = _.iteratee;
-
- var getSum = function() {
- return function(result, object) {
- return result + object.a;
- };
- };
-
- var objects = [
- { 'a': 0, 'b': 0 },
- { 'a': 1, 'b': 0 },
- { 'a': 1, 'b': 1 }
- ];
-
- QUnit.test('`_.countBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getLength;
- assert.deepEqual(_.countBy(array), { '3': 2, '5': 1 });
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.differenceBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.deepEqual(_.differenceBy(objects, [objects[1]]), [objects[0]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.dropRightWhile` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.dropRightWhile(objects), objects.slice(0, 2));
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.dropWhile` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.dropWhile(objects.reverse()).reverse(), objects.reverse().slice(0, 2));
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.every` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.strictEqual(_.every(objects.slice(1)), true);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.filter` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var objects = [{ 'a': 0 }, { 'a': 1 }];
-
- _.iteratee = getPropA;
- assert.deepEqual(_.filter(objects), [objects[1]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.find` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.strictEqual(_.find(objects), objects[1]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.findIndex` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.strictEqual(_.findIndex(objects), 1);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.findLast` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.strictEqual(_.findLast(objects), objects[2]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.findLastIndex` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.strictEqual(_.findLastIndex(objects), 2);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.findKey` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.strictEqual(_.findKey(objects), '2');
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.findLastKey` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.strictEqual(_.findLastKey(objects), '2');
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.groupBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getLength;
- assert.deepEqual(_.groupBy(array), { '3': ['one', 'two'], '5': ['three'] });
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.intersectionBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.deepEqual(_.intersectionBy(objects, [objects[2]]), [objects[1]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.keyBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getLength;
- assert.deepEqual(_.keyBy(array), { '3': 'two', '5': 'three' });
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.map` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.deepEqual(_.map(objects), [0, 1, 1]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.mapKeys` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.mapKeys({ 'a': { 'b': 2 } }), { '2': { 'b': 2 } });
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.mapValues` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.mapValues({ 'a': { 'b': 2 } }), { 'a': 2 });
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.maxBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.maxBy(objects), objects[2]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.meanBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.strictEqual(_.meanBy(objects), 2 / 3);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.minBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.minBy(objects), objects[0]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.partition` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var objects = [{ 'a': 1 }, { 'a': 1 }, { 'b': 2 }];
-
- _.iteratee = getPropA;
- assert.deepEqual(_.partition(objects), [objects.slice(0, 2), objects.slice(2)]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.pullAllBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.deepEqual(_.pullAllBy(objects.slice(), [{ 'a': 1, 'b': 0 }]), [objects[0]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.reduce` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getSum;
- assert.strictEqual(_.reduce(objects, undefined, 0), 2);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.reduceRight` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getSum;
- assert.strictEqual(_.reduceRight(objects, undefined, 0), 2);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.reject` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var objects = [{ 'a': 0 }, { 'a': 1 }];
-
- _.iteratee = getPropA;
- assert.deepEqual(_.reject(objects), [objects[0]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.remove` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var objects = [{ 'a': 0 }, { 'a': 1 }];
-
- _.iteratee = getPropA;
- _.remove(objects);
- assert.deepEqual(objects, [{ 'a': 0 }]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.some` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.strictEqual(_.some(objects), true);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.sortBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.deepEqual(_.sortBy(objects.slice().reverse()), [objects[0], objects[2], objects[1]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.sortedIndexBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var objects = [{ 'a': 30 }, { 'a': 50 }];
-
- _.iteratee = getPropA;
- assert.strictEqual(_.sortedIndexBy(objects, { 'a': 40 }), 1);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.sortedLastIndexBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var objects = [{ 'a': 30 }, { 'a': 50 }];
-
- _.iteratee = getPropA;
- assert.strictEqual(_.sortedLastIndexBy(objects, { 'a': 40 }), 1);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.sumBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.strictEqual(_.sumBy(objects), 1);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.takeRightWhile` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.takeRightWhile(objects), objects.slice(2));
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.takeWhile` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.takeWhile(objects.reverse()), objects.reverse().slice(2));
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.transform` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = function() {
- return function(result, object) {
- result.sum += object.a;
- };
- };
-
- assert.deepEqual(_.transform(objects, undefined, { 'sum': 0 }), { 'sum': 2 });
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.uniqBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.uniqBy(objects), [objects[0], objects[2]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.unionBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropB;
- assert.deepEqual(_.unionBy(objects.slice(0, 1), [objects[2]]), [objects[0], objects[2]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.xorBy` should use `_.iteratee` internally', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- _.iteratee = getPropA;
- assert.deepEqual(_.xorBy(objects, objects.slice(1)), [objects[0]]);
- _.iteratee = iteratee;
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.join');
-
- (function() {
- var array = ['a', 'b', 'c'];
-
- QUnit.test('should return join all array elements into a string', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.join(array, '~'), 'a~b~c');
- });
-
- QUnit.test('should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var wrapped = _(array);
- assert.strictEqual(wrapped.join('~'), 'a~b~c');
- assert.strictEqual(wrapped.value(), array);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(array).chain().join('~') instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.keyBy');
-
- (function() {
- var array = [
- { 'dir': 'left', 'code': 97 },
- { 'dir': 'right', 'code': 100 }
- ];
-
- QUnit.test('should transform keys by `iteratee`', function(assert) {
- assert.expect(1);
-
- var expected = { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } };
-
- var actual = _.keyBy(array, function(object) {
- return String.fromCharCode(object.code);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var array = [4, 6, 6],
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant({ '4': 4, '6': 6 }));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.keyBy(array, value) : _.keyBy(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var expected = { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } },
- actual = _.keyBy(array, 'dir');
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should only add values to own, not inherited, properties', function(assert) {
- assert.expect(2);
-
- var actual = _.keyBy([6.1, 4.2, 6.3], function(n) {
- return Math.floor(n) > 4 ? 'hasOwnProperty' : 'constructor';
- });
-
- assert.deepEqual(actual.constructor, 4.2);
- assert.deepEqual(actual.hasOwnProperty, 6.3);
- });
-
- QUnit.test('should work with a number for `iteratee`', function(assert) {
- assert.expect(2);
-
- var array = [
- [1, 'a'],
- [2, 'a'],
- [2, 'b']
- ];
-
- assert.deepEqual(_.keyBy(array, 0), { '1': [1, 'a'], '2': [2, 'b'] });
- assert.deepEqual(_.keyBy(array, 1), { 'a': [2, 'a'], 'b': [2, 'b'] });
- });
-
- QUnit.test('should work with an object for `collection`', function(assert) {
- assert.expect(1);
-
- var actual = _.keyBy({ 'a': 6.1, 'b': 4.2, 'c': 6.3 }, Math.floor);
- assert.deepEqual(actual, { '4': 4.2, '6': 6.3 });
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE).concat(
- lodashStable.range(Math.floor(LARGE_ARRAY_SIZE / 2), LARGE_ARRAY_SIZE),
- lodashStable.range(Math.floor(LARGE_ARRAY_SIZE / 1.5), LARGE_ARRAY_SIZE)
- );
-
- var actual = _(array).keyBy().map(square).filter(isEven).take().value();
-
- assert.deepEqual(actual, _.take(_.filter(_.map(_.keyBy(array), square), isEven)));
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('keys methods');
-
- lodashStable.each(['keys', 'keysIn'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- strictArgs = (function() { 'use strict'; return arguments; }(1, 2, 3)),
- func = _[methodName],
- isKeys = methodName == 'keys';
-
- QUnit.test('`_.' + methodName + '` should return the string keyed property names of `object`', function(assert) {
- assert.expect(1);
-
- var actual = func({ 'a': 1, 'b': 1 }).sort();
-
- assert.deepEqual(actual, ['a', 'b']);
- });
-
- QUnit.test('`_.' + methodName + '` should ' + (isKeys ? 'not ' : '') + 'include inherited string keyed properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var expected = isKeys ? ['a'] : ['a', 'b'],
- actual = func(new Foo).sort();
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce primitives to objects (test in IE 9)', function(assert) {
- assert.expect(2);
-
- var expected = lodashStable.map(primitives, function(value) {
- return typeof value == 'string' ? ['0'] : [];
- });
-
- var actual = lodashStable.map(primitives, func);
- assert.deepEqual(actual, expected);
-
- // IE 9 doesn't box numbers in for-in loops.
- numberProto.a = 1;
- assert.deepEqual(func(0), isKeys ? [] : ['a']);
- delete numberProto.a;
- });
-
- QUnit.test('`_.' + methodName + '` should treat sparse arrays as dense', function(assert) {
- assert.expect(1);
-
- var array = [1];
- array[2] = 3;
-
- var actual = func(array).sort();
-
- assert.deepEqual(actual, ['0', '1', '2']);
- });
-
- QUnit.test('`_.' + methodName + '` should not coerce nullish values to objects', function(assert) {
- assert.expect(2);
-
- objectProto.a = 1;
- lodashStable.each([null, undefined], function(value) {
- assert.deepEqual(func(value), []);
- });
- delete objectProto.a;
- });
-
- QUnit.test('`_.' + methodName + '` should return keys for custom properties on arrays', function(assert) {
- assert.expect(1);
-
- var array = [1];
- array.a = 1;
-
- var actual = func(array).sort();
-
- assert.deepEqual(actual, ['0', 'a']);
- });
-
- QUnit.test('`_.' + methodName + '` should ' + (isKeys ? 'not ' : '') + 'include inherited string keyed properties of arrays', function(assert) {
- assert.expect(1);
-
- arrayProto.a = 1;
-
- var expected = isKeys ? ['0'] : ['0', 'a'],
- actual = func([1]).sort();
-
- assert.deepEqual(actual, expected);
-
- delete arrayProto.a;
- });
-
- QUnit.test('`_.' + methodName + '` should work with `arguments` objects', function(assert) {
- assert.expect(1);
-
- var values = [args, strictArgs],
- expected = lodashStable.map(values, lodashStable.constant(['0', '1', '2']));
-
- var actual = lodashStable.map(values, function(value) {
- return func(value).sort();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should return keys for custom properties on `arguments` objects', function(assert) {
- assert.expect(1);
-
- var values = [args, strictArgs],
- expected = lodashStable.map(values, lodashStable.constant(['0', '1', '2', 'a']));
-
- var actual = lodashStable.map(values, function(value) {
- value.a = 1;
- var result = func(value).sort();
- delete value.a;
- return result;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should ' + (isKeys ? 'not ' : '') + 'include inherited string keyed properties of `arguments` objects', function(assert) {
- assert.expect(1);
-
- var values = [args, strictArgs],
- expected = lodashStable.map(values, lodashStable.constant(isKeys ? ['0', '1', '2'] : ['0', '1', '2', 'a']));
-
- var actual = lodashStable.map(values, function(value) {
- objectProto.a = 1;
- var result = func(value).sort();
- delete objectProto.a;
- return result;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with string objects', function(assert) {
- assert.expect(1);
-
- var actual = func(Object('abc')).sort();
-
- assert.deepEqual(actual, ['0', '1', '2']);
- });
-
- QUnit.test('`_.' + methodName + '` should return keys for custom properties on string objects', function(assert) {
- assert.expect(1);
-
- var object = Object('a');
- object.a = 1;
-
- var actual = func(object).sort();
-
- assert.deepEqual(actual, ['0', 'a']);
- });
-
- QUnit.test('`_.' + methodName + '` should ' + (isKeys ? 'not ' : '') + 'include inherited string keyed properties of string objects', function(assert) {
- assert.expect(1);
-
- stringProto.a = 1;
-
- var expected = isKeys ? ['0'] : ['0', 'a'],
- actual = func(Object('a')).sort();
-
- assert.deepEqual(actual, expected);
-
- delete stringProto.a;
- });
-
- QUnit.test('`_.' + methodName + '` skips the `constructor` property on prototype objects', function(assert) {
- assert.expect(3);
-
- function Foo() {}
- Foo.prototype.a = 1;
-
- var expected = ['a'];
- assert.deepEqual(func(Foo.prototype), expected);
-
- Foo.prototype = { 'constructor': Foo, 'a': 1 };
- assert.deepEqual(func(Foo.prototype), expected);
-
- var Fake = { 'prototype': {} };
- Fake.prototype.constructor = Fake;
- assert.deepEqual(func(Fake.prototype), ['constructor']);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.last');
-
- (function() {
- var array = [1, 2, 3, 4];
-
- QUnit.test('should return the last element', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.last(array), 4);
- });
-
- QUnit.test('should return `undefined` when querying empty arrays', function(assert) {
- assert.expect(1);
-
- var array = [];
- array['-1'] = 1;
-
- assert.strictEqual(_.last([]), undefined);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
- actual = lodashStable.map(array, _.last);
-
- assert.deepEqual(actual, [3, 6, 9]);
- });
-
- QUnit.test('should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.strictEqual(_(array).last(), 4);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(array).chain().last() instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should not execute immediately when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _(array).chain().last();
- assert.strictEqual(wrapped.__wrapped__, array);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var largeArray = lodashStable.range(LARGE_ARRAY_SIZE),
- smallArray = array;
-
- lodashStable.times(2, function(index) {
- var array = index ? largeArray : smallArray,
- wrapped = _(array).filter(isEven);
-
- assert.strictEqual(wrapped.last(), _.last(_.filter(array, isEven)));
- });
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.lowerCase');
-
- (function() {
- QUnit.test('should lowercase as space-separated words', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.lowerCase('--Foo-Bar--'), 'foo bar');
- assert.strictEqual(_.lowerCase('fooBar'), 'foo bar');
- assert.strictEqual(_.lowerCase('__FOO_BAR__'), 'foo bar');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.lowerFirst');
-
- (function() {
- QUnit.test('should lowercase only the first character', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.lowerFirst('fred'), 'fred');
- assert.strictEqual(_.lowerFirst('Fred'), 'fred');
- assert.strictEqual(_.lowerFirst('FRED'), 'fRED');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.lt');
-
- (function() {
- QUnit.test('should return `true` if `value` is less than `other`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.lt(1, 3), true);
- assert.strictEqual(_.lt('abc', 'def'), true);
- });
-
- QUnit.test('should return `false` if `value` >= `other`', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.lt(3, 1), false);
- assert.strictEqual(_.lt(3, 3), false);
- assert.strictEqual(_.lt('def', 'abc'), false);
- assert.strictEqual(_.lt('def', 'def'), false);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.lte');
-
- (function() {
- QUnit.test('should return `true` if `value` is <= `other`', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.lte(1, 3), true);
- assert.strictEqual(_.lte(3, 3), true);
- assert.strictEqual(_.lte('abc', 'def'), true);
- assert.strictEqual(_.lte('def', 'def'), true);
- });
-
- QUnit.test('should return `false` if `value` > `other`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.lt(3, 1), false);
- assert.strictEqual(_.lt('def', 'abc'), false);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.findLastIndex and lodash.lastIndexOf');
-
- lodashStable.each(['findLastIndex', 'lastIndexOf'], function(methodName) {
- var array = [1, 2, 3, 1, 2, 3],
- func = _[methodName],
- resolve = methodName == 'findLastIndex' ? lodashStable.curry(lodashStable.eq) : identity;
-
- QUnit.test('`_.' + methodName + '` should return the index of the last matched value', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array, resolve(3)), 5);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a positive `fromIndex`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array, resolve(1), 2), 0);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a `fromIndex` >= `length`', function(assert) {
- assert.expect(1);
-
- var values = [6, 8, Math.pow(2, 32), Infinity],
- expected = lodashStable.map(values, lodashStable.constant([-1, 3, -1]));
-
- var actual = lodashStable.map(values, function(fromIndex) {
- return [
- func(array, resolve(undefined), fromIndex),
- func(array, resolve(1), fromIndex),
- func(array, resolve(''), fromIndex)
- ];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a negative `fromIndex`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array, resolve(2), -3), 1);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a negative `fromIndex` <= `-length`', function(assert) {
- assert.expect(1);
-
- var values = [-6, -8, -Infinity],
- expected = lodashStable.map(values, stubZero);
-
- var actual = lodashStable.map(values, function(fromIndex) {
- return func(array, resolve(1), fromIndex);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should treat falsey `fromIndex` values correctly', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? 5 : -1;
- });
-
- var actual = lodashStable.map(falsey, function(fromIndex) {
- return func(array, resolve(3), fromIndex);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `fromIndex` to an integer', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array, resolve(2), 4.2), 4);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('indexOf methods');
-
- lodashStable.each(['indexOf', 'lastIndexOf', 'sortedIndexOf', 'sortedLastIndexOf'], function(methodName) {
- var func = _[methodName],
- isIndexOf = !/last/i.test(methodName),
- isSorted = /^sorted/.test(methodName);
-
- QUnit.test('`_.' + methodName + '` should accept a falsey `array` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, lodashStable.constant(-1));
-
- var actual = lodashStable.map(falsey, function(array, index) {
- try {
- return index ? func(array) : func();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should return `-1` for an unmatched value', function(assert) {
- assert.expect(5);
-
- var array = [1, 2, 3],
- empty = [];
-
- assert.strictEqual(func(array, 4), -1);
- assert.strictEqual(func(array, 4, true), -1);
- assert.strictEqual(func(array, undefined, true), -1);
-
- assert.strictEqual(func(empty, undefined), -1);
- assert.strictEqual(func(empty, undefined, true), -1);
- });
-
- QUnit.test('`_.' + methodName + '` should not match values on empty arrays', function(assert) {
- assert.expect(2);
-
- var array = [];
- array[-1] = 0;
-
- assert.strictEqual(func(array, undefined), -1);
- assert.strictEqual(func(array, 0, true), -1);
- });
-
- QUnit.test('`_.' + methodName + '` should match `NaN`', function(assert) {
- assert.expect(3);
-
- var array = isSorted
- ? [1, 2, NaN, NaN]
- : [1, NaN, 3, NaN, 5, NaN];
-
- if (isSorted) {
- assert.strictEqual(func(array, NaN, true), isIndexOf ? 2 : 3);
- skipAssert(assert, 2);
- }
- else {
- assert.strictEqual(func(array, NaN), isIndexOf ? 1 : 5);
- assert.strictEqual(func(array, NaN, 2), isIndexOf ? 3 : 1);
- assert.strictEqual(func(array, NaN, -2), isIndexOf ? 5 : 3);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should match `-0` as `0`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(func([-0], 0), 0);
- assert.strictEqual(func([0], -0), 0);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.map');
-
- (function() {
- var array = [1, 2];
-
- QUnit.test('should map values in `collection` to a new array', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1, 'b': 2 },
- expected = ['1', '2'];
-
- assert.deepEqual(_.map(array, String), expected);
- assert.deepEqual(_.map(object, String), expected);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': 'x' }, { 'a': 'y' }];
- assert.deepEqual(_.map(objects, 'a'), ['x', 'y']);
- });
-
- QUnit.test('should iterate over own string keyed properties of objects', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var actual = _.map(new Foo, identity);
- assert.deepEqual(actual, [1]);
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1, 'b': 2 },
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant([1, 2]));
-
- lodashStable.each([array, object], function(collection) {
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.map(collection, value) : _.map(collection);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should accept a falsey `collection` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubArray);
-
- var actual = lodashStable.map(falsey, function(collection, index) {
- try {
- return index ? _.map(collection) : _.map();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should treat number values for `collection` as empty', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.map(1), []);
- });
-
- QUnit.test('should treat a nodelist as an array-like object', function(assert) {
- assert.expect(1);
-
- if (document) {
- var actual = _.map(document.getElementsByTagName('body'), function(element) {
- return element.nodeName.toLowerCase();
- });
-
- assert.deepEqual(actual, ['body']);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should work with objects with non-number length properties', function(assert) {
- assert.expect(1);
-
- var value = { 'value': 'x' },
- object = { 'length': { 'value': 'x' } };
-
- assert.deepEqual(_.map(object, identity), [value]);
- });
-
- QUnit.test('should return a wrapped value when chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(array).map(noop) instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should provide the correct `predicate` arguments in a lazy sequence', function(assert) {
- assert.expect(5);
-
- if (!isNpm) {
- var args,
- array = lodashStable.range(LARGE_ARRAY_SIZE + 1),
- expected = [1, 0, _.map(array.slice(1), square)];
-
- _(array).slice(1).map(function(value, index, array) {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, [1, 0, array.slice(1)]);
-
- args = undefined;
- _(array).slice(1).map(square).map(function(value, index, array) {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, expected);
-
- args = undefined;
- _(array).slice(1).map(square).map(function(value, index) {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, expected);
-
- args = undefined;
- _(array).slice(1).map(square).map(function(value) {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, [1]);
-
- args = undefined;
- _(array).slice(1).map(square).map(function() {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, expected);
- }
- else {
- skipAssert(assert, 5);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.mapKeys');
-
- (function() {
- var array = [1, 2],
- object = { 'a': 1, 'b': 2 };
-
- QUnit.test('should map keys in `object` to a new object', function(assert) {
- assert.expect(1);
-
- var actual = _.mapKeys(object, String);
- assert.deepEqual(actual, { '1': 1, '2': 2 });
- });
-
- QUnit.test('should treat arrays like objects', function(assert) {
- assert.expect(1);
-
- var actual = _.mapKeys(array, String);
- assert.deepEqual(actual, { '1': 1, '2': 2 });
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var actual = _.mapKeys({ 'a': { 'b': 'c' } }, 'b');
- assert.deepEqual(actual, { 'c': { 'b': 'c' } });
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1, 'b': 2 },
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant({ '1': 1, '2': 2 }));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.mapKeys(object, value) : _.mapKeys(object);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.mapValues');
-
- (function() {
- var array = [1, 2],
- object = { 'a': 1, 'b': 2 };
-
- QUnit.test('should map values in `object` to a new object', function(assert) {
- assert.expect(1);
-
- var actual = _.mapValues(object, String);
- assert.deepEqual(actual, { 'a': '1', 'b': '2' });
- });
-
- QUnit.test('should treat arrays like objects', function(assert) {
- assert.expect(1);
-
- var actual = _.mapValues(array, String);
- assert.deepEqual(actual, { '0': '1', '1': '2' });
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var actual = _.mapValues({ 'a': { 'b': 2 } }, 'b');
- assert.deepEqual(actual, { 'a': 2 });
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1, 'b': 2 },
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant([true, false]));
-
- var actual = lodashStable.map(values, function(value, index) {
- var result = index ? _.mapValues(object, value) : _.mapValues(object);
- return [lodashStable.isEqual(result, object), result === object];
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.mapKeys and lodash.mapValues');
-
- lodashStable.each(['mapKeys', 'mapValues'], function(methodName) {
- var func = _[methodName],
- object = { 'a': 1, 'b': 2 };
-
- QUnit.test('`_.' + methodName + '` should iterate over own string keyed properties of objects', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 'a';
- }
- Foo.prototype.b = 'b';
-
- var actual = func(new Foo, function(value, key) { return key; });
- assert.deepEqual(actual, { 'a': 'a' });
- });
-
- QUnit.test('`_.' + methodName + '` should accept a falsey `object` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubObject);
-
- var actual = lodashStable.map(falsey, function(object, index) {
- try {
- return index ? func(object) : func();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(object)[methodName](noop) instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.matches');
-
- (function() {
- QUnit.test('should create a function that performs a deep comparison between `source` and a given object', function(assert) {
- assert.expect(6);
-
- var object = { 'a': 1, 'b': 2, 'c': 3 },
- matches = _.matches({ 'a': 1 });
-
- assert.strictEqual(matches.length, 1);
- assert.strictEqual(matches(object), true);
-
- matches = _.matches({ 'b': 1 });
- assert.strictEqual(matches(object), false);
-
- matches = _.matches({ 'a': 1, 'c': 3 });
- assert.strictEqual(matches(object), true);
-
- matches = _.matches({ 'c': 3, 'd': 4 });
- assert.strictEqual(matches(object), false);
-
- object = { 'a': { 'b': { 'c': 1, 'd': 2 }, 'e': 3 }, 'f': 4 };
- matches = _.matches({ 'a': { 'b': { 'c': 1 } } });
-
- assert.strictEqual(matches(object), true);
- });
-
- QUnit.test('should match inherited string keyed `object` properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var object = { 'a': new Foo },
- matches = _.matches({ 'a': { 'b': 2 } });
-
- assert.strictEqual(matches(object), true);
- });
-
- QUnit.test('should not match by inherited `source` properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var objects = [{ 'a': 1 }, { 'a': 1, 'b': 2 }],
- source = new Foo,
- actual = lodashStable.map(objects, _.matches(source)),
- expected = lodashStable.map(objects, stubTrue);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should compare a variety of `source` property values', function(assert) {
- assert.expect(2);
-
- var object1 = { 'a': false, 'b': true, 'c': '3', 'd': 4, 'e': [5], 'f': { 'g': 6 } },
- object2 = { 'a': 0, 'b': 1, 'c': 3, 'd': '4', 'e': ['5'], 'f': { 'g': '6' } },
- matches = _.matches(object1);
-
- assert.strictEqual(matches(object1), true);
- assert.strictEqual(matches(object2), false);
- });
-
- QUnit.test('should match `-0` as `0`', function(assert) {
- assert.expect(2);
-
- var object1 = { 'a': -0 },
- object2 = { 'a': 0 },
- matches = _.matches(object1);
-
- assert.strictEqual(matches(object2), true);
-
- matches = _.matches(object2);
- assert.strictEqual(matches(object1), true);
- });
-
- QUnit.test('should compare functions by reference', function(assert) {
- assert.expect(3);
-
- var object1 = { 'a': lodashStable.noop },
- object2 = { 'a': noop },
- object3 = { 'a': {} },
- matches = _.matches(object1);
-
- assert.strictEqual(matches(object1), true);
- assert.strictEqual(matches(object2), false);
- assert.strictEqual(matches(object3), false);
- });
-
- QUnit.test('should work with a function for `object`', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.a = { 'b': 2, 'c': 3 };
-
- var matches = _.matches({ 'a': { 'b': 2 } });
- assert.strictEqual(matches(Foo), true);
- });
-
- QUnit.test('should work with a function for `source`', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.a = 1;
- Foo.b = function() {};
- Foo.c = 3;
-
- var objects = [{ 'a': 1 }, { 'a': 1, 'b': Foo.b, 'c': 3 }],
- actual = lodashStable.map(objects, _.matches(Foo));
-
- assert.deepEqual(actual, [false, true]);
- });
-
- QUnit.test('should work with a non-plain `object`', function(assert) {
- assert.expect(1);
-
- function Foo(object) { lodashStable.assign(this, object); }
-
- var object = new Foo({ 'a': new Foo({ 'b': 2, 'c': 3 }) }),
- matches = _.matches({ 'a': { 'b': 2 } });
-
- assert.strictEqual(matches(object), true);
- });
-
- QUnit.test('should partial match arrays', function(assert) {
- assert.expect(3);
-
- var objects = [{ 'a': ['b'] }, { 'a': ['c', 'd'] }],
- actual = lodashStable.filter(objects, _.matches({ 'a': ['d'] }));
-
- assert.deepEqual(actual, [objects[1]]);
-
- actual = lodashStable.filter(objects, _.matches({ 'a': ['b', 'd'] }));
- assert.deepEqual(actual, []);
-
- actual = lodashStable.filter(objects, _.matches({ 'a': ['d', 'b'] }));
- assert.deepEqual(actual, []);
- });
-
- QUnit.test('should partial match arrays with duplicate values', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': [1, 2] }, { 'a': [2, 2] }],
- actual = lodashStable.filter(objects, _.matches({ 'a': [2, 2] }));
-
- assert.deepEqual(actual, [objects[1]]);
- });
-
- QUnit.test('should partial match arrays of objects', function(assert) {
- assert.expect(1);
-
- var objects = [
- { 'a': [{ 'b': 1, 'c': 2 }, { 'b': 4, 'c': 5, 'd': 6 }] },
- { 'a': [{ 'b': 1, 'c': 2 }, { 'b': 4, 'c': 6, 'd': 7 }] }
- ];
-
- var actual = lodashStable.filter(objects, _.matches({ 'a': [{ 'b': 1 }, { 'b': 4, 'c': 5 }] }));
- assert.deepEqual(actual, [objects[0]]);
- });
-
- QUnit.test('should partial match maps', function(assert) {
- assert.expect(3);
-
- if (Map) {
- var objects = [{ 'a': new Map }, { 'a': new Map }];
- objects[0].a.set('a', 1);
- objects[1].a.set('a', 1);
- objects[1].a.set('b', 2);
-
- var map = new Map;
- map.set('b', 2);
- var actual = lodashStable.filter(objects, _.matches({ 'a': map }));
-
- assert.deepEqual(actual, [objects[1]]);
-
- map['delete']('b');
- actual = lodashStable.filter(objects, _.matches({ 'a': map }));
-
- assert.deepEqual(actual, objects);
-
- map.set('c', 3);
- actual = lodashStable.filter(objects, _.matches({ 'a': map }));
-
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should partial match sets', function(assert) {
- assert.expect(3);
-
- if (Set) {
- var objects = [{ 'a': new Set }, { 'a': new Set }];
- objects[0].a.add(1);
- objects[1].a.add(1);
- objects[1].a.add(2);
-
- var set = new Set;
- set.add(2);
- var actual = lodashStable.filter(objects, _.matches({ 'a': set }));
-
- assert.deepEqual(actual, [objects[1]]);
-
- set['delete'](2);
- actual = lodashStable.filter(objects, _.matches({ 'a': set }));
-
- assert.deepEqual(actual, objects);
-
- set.add(3);
- actual = lodashStable.filter(objects, _.matches({ 'a': set }));
-
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should match `undefined` values', function(assert) {
- assert.expect(3);
-
- var objects = [{ 'a': 1 }, { 'a': 1, 'b': 1 }, { 'a': 1, 'b': undefined }],
- actual = lodashStable.map(objects, _.matches({ 'b': undefined })),
- expected = [false, false, true];
-
- assert.deepEqual(actual, expected);
-
- actual = lodashStable.map(objects, _.matches({ 'a': 1, 'b': undefined }));
-
- assert.deepEqual(actual, expected);
-
- objects = [{ 'a': { 'b': 2 } }, { 'a': { 'b': 2, 'c': 3 } }, { 'a': { 'b': 2, 'c': undefined } }];
- actual = lodashStable.map(objects, _.matches({ 'a': { 'c': undefined } }));
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should match `undefined` values on primitives', function(assert) {
- assert.expect(3);
-
- numberProto.a = 1;
- numberProto.b = undefined;
-
- try {
- var matches = _.matches({ 'b': undefined });
- assert.strictEqual(matches(1), true);
- } catch (e) {
- assert.ok(false, e.message);
- }
- try {
- matches = _.matches({ 'a': 1, 'b': undefined });
- assert.strictEqual(matches(1), true);
- } catch (e) {
- assert.ok(false, e.message);
- }
- numberProto.a = { 'b': 1, 'c': undefined };
- try {
- matches = _.matches({ 'a': { 'c': undefined } });
- assert.strictEqual(matches(1), true);
- } catch (e) {
- assert.ok(false, e.message);
- }
- delete numberProto.a;
- delete numberProto.b;
- });
-
- QUnit.test('should return `false` when `object` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubFalse),
- matches = _.matches({ 'a': 1 });
-
- var actual = lodashStable.map(values, function(value, index) {
- try {
- return index ? matches(value) : matches();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` when comparing an empty `source` to a nullish `object`', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubTrue),
- matches = _.matches({});
-
- var actual = lodashStable.map(values, function(value, index) {
- try {
- return index ? matches(value) : matches();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` when comparing an empty `source`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1 },
- expected = lodashStable.map(empties, stubTrue);
-
- var actual = lodashStable.map(empties, function(value) {
- var matches = _.matches(value);
- return matches(object);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` when comparing a `source` of empty arrays and objects', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': [1], 'b': { 'c': 1 } }, { 'a': [2, 3], 'b': { 'd': 2 } }],
- actual = lodashStable.filter(objects, _.matches({ 'a': [], 'b': {} }));
-
- assert.deepEqual(actual, objects);
- });
-
- QUnit.test('should not change behavior if `source` is modified', function(assert) {
- assert.expect(9);
-
- var sources = [
- { 'a': { 'b': 2, 'c': 3 } },
- { 'a': 1, 'b': 2 },
- { 'a': 1 }
- ];
-
- lodashStable.each(sources, function(source, index) {
- var object = lodashStable.cloneDeep(source),
- matches = _.matches(source);
-
- assert.strictEqual(matches(object), true);
-
- if (index) {
- source.a = 2;
- source.b = 1;
- source.c = 3;
- } else {
- source.a.b = 1;
- source.a.c = 2;
- source.a.d = 3;
- }
- assert.strictEqual(matches(object), true);
- assert.strictEqual(matches(source), false);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.matchesProperty');
-
- (function() {
- QUnit.test('should create a function that performs a deep comparison between a property value and `srcValue`', function(assert) {
- assert.expect(6);
-
- var object = { 'a': 1, 'b': 2, 'c': 3 },
- matches = _.matchesProperty('a', 1);
-
- assert.strictEqual(matches.length, 1);
- assert.strictEqual(matches(object), true);
-
- matches = _.matchesProperty('b', 3);
- assert.strictEqual(matches(object), false);
-
- matches = _.matchesProperty('a', { 'a': 1, 'c': 3 });
- assert.strictEqual(matches({ 'a': object }), true);
-
- matches = _.matchesProperty('a', { 'c': 3, 'd': 4 });
- assert.strictEqual(matches(object), false);
-
- object = { 'a': { 'b': { 'c': 1, 'd': 2 }, 'e': 3 }, 'f': 4 };
- matches = _.matchesProperty('a', { 'b': { 'c': 1 } });
-
- assert.strictEqual(matches(object), true);
- });
-
- QUnit.test('should support deep paths', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2 } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var matches = _.matchesProperty(path, 2);
- assert.strictEqual(matches(object), true);
- });
- });
-
- QUnit.test('should work with a non-string `path`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3];
-
- lodashStable.each([1, [1]], function(path) {
- var matches = _.matchesProperty(path, 2);
- assert.strictEqual(matches(array), true);
- });
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var object1 = { '-0': 'a' },
- object2 = { '0': 'b' },
- pairs = [[object1, object2], [object1, object2], [object2, object1], [object2, object1]],
- props = [-0, Object(-0), 0, Object(0)],
- values = ['a', 'a', 'b', 'b'],
- expected = lodashStable.map(props, lodashStable.constant([true, false]));
-
- var actual = lodashStable.map(props, function(key, index) {
- var matches = _.matchesProperty(key, values[index]),
- pair = pairs[index];
-
- return [matches(pair[0]), matches(pair[1])];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should coerce key to a string', function(assert) {
- assert.expect(1);
-
- function fn() {}
- fn.toString = lodashStable.constant('fn');
-
- var objects = [{ 'null': 1 }, { 'undefined': 2 }, { 'fn': 3 }, { '[object Object]': 4 }],
- values = [null, undefined, fn, {}];
-
- var expected = lodashStable.transform(values, function(result) {
- result.push(true, true);
- });
-
- var actual = lodashStable.transform(objects, function(result, object, index) {
- var key = values[index];
- lodashStable.each([key, [key]], function(path) {
- var matches = _.matchesProperty(path, object[key]);
- result.push(matches(object));
- });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should match a key over a path', function(assert) {
- assert.expect(2);
-
- var object = { 'a.b': 1, 'a': { 'b': 2 } };
-
- lodashStable.each(['a.b', ['a.b']], function(path) {
- var matches = _.matchesProperty(path, 1);
- assert.strictEqual(matches(object), true);
- });
- });
-
- QUnit.test('should return `false` if parts of `path` are missing', function(assert) {
- assert.expect(4);
-
- var object = {};
-
- lodashStable.each(['a', 'a[1].b.c', ['a'], ['a', '1', 'b', 'c']], function(path) {
- var matches = _.matchesProperty(path, 1);
- assert.strictEqual(matches(object), false);
- });
- });
-
- QUnit.test('should return `false` for deep paths when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubFalse);
-
- lodashStable.each(['constructor.prototype.valueOf', ['constructor', 'prototype', 'valueOf']], function(path) {
- var matches = _.matchesProperty(path, 1);
-
- var actual = lodashStable.map(values, function(value, index) {
- try {
- return index ? matches(value) : matches();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should match inherited string keyed `srcValue` properties', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.prototype.b = 2;
-
- var object = { 'a': new Foo };
-
- lodashStable.each(['a', ['a']], function(path) {
- var matches = _.matchesProperty(path, { 'b': 2 });
- assert.strictEqual(matches(object), true);
- });
- });
-
- QUnit.test('should not match by inherited `srcValue` properties', function(assert) {
- assert.expect(2);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var objects = [{ 'a': { 'a': 1 } }, { 'a': { 'a': 1, 'b': 2 } }],
- expected = lodashStable.map(objects, stubTrue);
-
- lodashStable.each(['a', ['a']], function(path) {
- assert.deepEqual(lodashStable.map(objects, _.matchesProperty(path, new Foo)), expected);
- });
- });
-
- QUnit.test('should compare a variety of values', function(assert) {
- assert.expect(2);
-
- var object1 = { 'a': false, 'b': true, 'c': '3', 'd': 4, 'e': [5], 'f': { 'g': 6 } },
- object2 = { 'a': 0, 'b': 1, 'c': 3, 'd': '4', 'e': ['5'], 'f': { 'g': '6' } },
- matches = _.matchesProperty('a', object1);
-
- assert.strictEqual(matches({ 'a': object1 }), true);
- assert.strictEqual(matches({ 'a': object2 }), false);
- });
-
- QUnit.test('should match `-0` as `0`', function(assert) {
- assert.expect(2);
-
- var matches = _.matchesProperty('a', -0);
- assert.strictEqual(matches({ 'a': 0 }), true);
-
- matches = _.matchesProperty('a', 0);
- assert.strictEqual(matches({ 'a': -0 }), true);
- });
-
- QUnit.test('should compare functions by reference', function(assert) {
- assert.expect(3);
-
- var object1 = { 'a': lodashStable.noop },
- object2 = { 'a': noop },
- object3 = { 'a': {} },
- matches = _.matchesProperty('a', object1);
-
- assert.strictEqual(matches({ 'a': object1 }), true);
- assert.strictEqual(matches({ 'a': object2 }), false);
- assert.strictEqual(matches({ 'a': object3 }), false);
- });
-
- QUnit.test('should work with a function for `srcValue`', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.a = 1;
- Foo.b = function() {};
- Foo.c = 3;
-
- var objects = [{ 'a': { 'a': 1 } }, { 'a': { 'a': 1, 'b': Foo.b, 'c': 3 } }],
- actual = lodashStable.map(objects, _.matchesProperty('a', Foo));
-
- assert.deepEqual(actual, [false, true]);
- });
-
- QUnit.test('should work with a non-plain `srcValue`', function(assert) {
- assert.expect(1);
-
- function Foo(object) { lodashStable.assign(this, object); }
-
- var object = new Foo({ 'a': new Foo({ 'b': 1, 'c': 2 }) }),
- matches = _.matchesProperty('a', { 'b': 1 });
-
- assert.strictEqual(matches(object), true);
- });
-
- QUnit.test('should partial match arrays', function(assert) {
- assert.expect(3);
-
- var objects = [{ 'a': ['b'] }, { 'a': ['c', 'd'] }],
- actual = lodashStable.filter(objects, _.matchesProperty('a', ['d']));
-
- assert.deepEqual(actual, [objects[1]]);
-
- actual = lodashStable.filter(objects, _.matchesProperty('a', ['b', 'd']));
- assert.deepEqual(actual, []);
-
- actual = lodashStable.filter(objects, _.matchesProperty('a', ['d', 'b']));
- assert.deepEqual(actual, []);
- });
-
- QUnit.test('should partial match arrays with duplicate values', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': [1, 2] }, { 'a': [2, 2] }],
- actual = lodashStable.filter(objects, _.matchesProperty('a', [2, 2]));
-
- assert.deepEqual(actual, [objects[1]]);
- });
-
- QUnit.test('should partial match arrays of objects', function(assert) {
- assert.expect(1);
-
- var objects = [
- { 'a': [{ 'a': 1, 'b': 2 }, { 'a': 4, 'b': 5, 'c': 6 }] },
- { 'a': [{ 'a': 1, 'b': 2 }, { 'a': 4, 'b': 6, 'c': 7 }] }
- ];
-
- var actual = lodashStable.filter(objects, _.matchesProperty('a', [{ 'a': 1 }, { 'a': 4, 'b': 5 }]));
- assert.deepEqual(actual, [objects[0]]);
- });
- QUnit.test('should partial match maps', function(assert) {
- assert.expect(3);
-
- if (Map) {
- var objects = [{ 'a': new Map }, { 'a': new Map }];
- objects[0].a.set('a', 1);
- objects[1].a.set('a', 1);
- objects[1].a.set('b', 2);
-
- var map = new Map;
- map.set('b', 2);
- var actual = lodashStable.filter(objects, _.matchesProperty('a', map));
-
- assert.deepEqual(actual, [objects[1]]);
-
- map['delete']('b');
- actual = lodashStable.filter(objects, _.matchesProperty('a', map));
-
- assert.deepEqual(actual, objects);
-
- map.set('c', 3);
- actual = lodashStable.filter(objects, _.matchesProperty('a', map));
-
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should partial match sets', function(assert) {
- assert.expect(3);
-
- if (Set) {
- var objects = [{ 'a': new Set }, { 'a': new Set }];
- objects[0].a.add(1);
- objects[1].a.add(1);
- objects[1].a.add(2);
-
- var set = new Set;
- set.add(2);
- var actual = lodashStable.filter(objects, _.matchesProperty('a', set));
-
- assert.deepEqual(actual, [objects[1]]);
-
- set['delete'](2);
- actual = lodashStable.filter(objects, _.matchesProperty('a', set));
-
- assert.deepEqual(actual, objects);
-
- set.add(3);
- actual = lodashStable.filter(objects, _.matchesProperty('a', set));
-
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should match `undefined` values', function(assert) {
- assert.expect(2);
-
- var objects = [{ 'a': 1 }, { 'a': 1, 'b': 1 }, { 'a': 1, 'b': undefined }],
- actual = lodashStable.map(objects, _.matchesProperty('b', undefined)),
- expected = [false, false, true];
-
- assert.deepEqual(actual, expected);
-
- objects = [{ 'a': { 'a': 1 } }, { 'a': { 'a': 1, 'b': 1 } }, { 'a': { 'a': 1, 'b': undefined } }];
- actual = lodashStable.map(objects, _.matchesProperty('a', { 'b': undefined }));
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should match `undefined` values of nested objects', function(assert) {
- assert.expect(4);
-
- var object = { 'a': { 'b': undefined } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var matches = _.matchesProperty(path, undefined);
- assert.strictEqual(matches(object), true);
- });
-
- lodashStable.each(['a.a', ['a', 'a']], function(path) {
- var matches = _.matchesProperty(path, undefined);
- assert.strictEqual(matches(object), false);
- });
- });
-
- QUnit.test('should match `undefined` values on primitives', function(assert) {
- assert.expect(2);
-
- numberProto.a = 1;
- numberProto.b = undefined;
-
- try {
- var matches = _.matchesProperty('b', undefined);
- assert.strictEqual(matches(1), true);
- } catch (e) {
- assert.ok(false, e.message);
- }
- numberProto.a = { 'b': 1, 'c': undefined };
- try {
- matches = _.matchesProperty('a', { 'c': undefined });
- assert.strictEqual(matches(1), true);
- } catch (e) {
- assert.ok(false, e.message);
- }
- delete numberProto.a;
- delete numberProto.b;
- });
-
- QUnit.test('should return `false` when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubFalse);
-
- lodashStable.each(['constructor', ['constructor']], function(path) {
- var matches = _.matchesProperty(path, 1);
-
- var actual = lodashStable.map(values, function(value, index) {
- try {
- return index ? matches(value) : matches();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `true` when comparing a `srcValue` of empty arrays and objects', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': [1], 'b': { 'c': 1 } }, { 'a': [2, 3], 'b': { 'd': 2 } }],
- matches = _.matchesProperty('a', { 'a': [], 'b': {} });
-
- var actual = lodashStable.filter(objects, function(object) {
- return matches({ 'a': object });
- });
-
- assert.deepEqual(actual, objects);
- });
-
- QUnit.test('should not change behavior if `srcValue` is modified', function(assert) {
- assert.expect(9);
-
- lodashStable.each([{ 'a': { 'b': 2, 'c': 3 } }, { 'a': 1, 'b': 2 }, { 'a': 1 }], function(source, index) {
- var object = lodashStable.cloneDeep(source),
- matches = _.matchesProperty('a', source);
-
- assert.strictEqual(matches({ 'a': object }), true);
-
- if (index) {
- source.a = 2;
- source.b = 1;
- source.c = 3;
- } else {
- source.a.b = 1;
- source.a.c = 2;
- source.a.d = 3;
- }
- assert.strictEqual(matches({ 'a': object }), true);
- assert.strictEqual(matches({ 'a': source }), false);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.max');
-
- (function() {
- QUnit.test('should return the largest value from a collection', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.max([1, 2, 3]), 3);
- });
-
- QUnit.test('should return `undefined` for empty collections', function(assert) {
- assert.expect(1);
-
- var values = falsey.concat([[]]),
- expected = lodashStable.map(values, noop);
-
- var actual = lodashStable.map(values, function(value, index) {
- try {
- return index ? _.max(value) : _.max();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with non-numeric collection values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.max(['a', 'b']), 'b');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.mean');
-
- (function() {
- QUnit.test('should return the mean of an array of numbers', function(assert) {
- assert.expect(1);
-
- var array = [4, 2, 8, 6];
- assert.strictEqual(_.mean(array), 5);
- });
-
- QUnit.test('should return `NaN` when passing empty `array` values', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(empties, stubNaN),
- actual = lodashStable.map(empties, _.mean);
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.meanBy');
-
- (function() {
- var objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }];
-
- QUnit.test('should work with an `iteratee` argument', function(assert) {
- assert.expect(1);
-
- var actual = _.meanBy(objects, function(object) {
- return object.a;
- });
-
- assert.deepEqual(actual, 2);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.meanBy(objects, function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [{ 'a': 2 }]);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(2);
-
- var arrays = [[2], [3], [1]];
- assert.strictEqual(_.meanBy(arrays, 0), 2);
- assert.strictEqual(_.meanBy(objects, 'a'), 2);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.memoize');
-
- (function() {
- QUnit.test('should memoize results based on the first argument given', function(assert) {
- assert.expect(2);
-
- var memoized = _.memoize(function(a, b, c) {
- return a + b + c;
- });
-
- assert.strictEqual(memoized(1, 2, 3), 6);
- assert.strictEqual(memoized(1, 3, 5), 6);
- });
-
- QUnit.test('should support a `resolver` argument', function(assert) {
- assert.expect(2);
-
- var fn = function(a, b, c) { return a + b + c; },
- memoized = _.memoize(fn, fn);
-
- assert.strictEqual(memoized(1, 2, 3), 6);
- assert.strictEqual(memoized(1, 3, 5), 9);
- });
-
- QUnit.test('should use `this` binding of function for `resolver`', function(assert) {
- assert.expect(2);
-
- var fn = function(a, b, c) { return a + this.b + this.c; },
- memoized = _.memoize(fn, fn);
-
- var object = { 'memoized': memoized, 'b': 2, 'c': 3 };
- assert.strictEqual(object.memoized(1), 6);
-
- object.b = 3;
- object.c = 5;
- assert.strictEqual(object.memoized(1), 9);
- });
-
- QUnit.test('should throw a TypeError if `resolve` is truthy and not a function', function(assert) {
- assert.expect(1);
-
- assert.raises(function() { _.memoize(noop, true); }, TypeError);
- });
-
- QUnit.test('should not error if `resolver` is falsey', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(resolver, index) {
- try {
- return _.isFunction(index ? _.memoize(noop, resolver) : _.memoize(noop));
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should check cache for own properties', function(assert) {
- assert.expect(1);
-
- var props = [
- 'constructor',
- 'hasOwnProperty',
- 'isPrototypeOf',
- 'propertyIsEnumerable',
- 'toLocaleString',
- 'toString',
- 'valueOf'
- ];
-
- var memoized = _.memoize(identity);
-
- var actual = lodashStable.map(props, function(value) {
- return memoized(value);
- });
-
- assert.deepEqual(actual, props);
- });
-
- QUnit.test('should cache the `__proto__` key', function(assert) {
- assert.expect(8);
-
- var array = [],
- key = '__proto__';
-
- lodashStable.times(2, function(index) {
- var count = 0,
- resolver = index && identity;
-
- var memoized = _.memoize(function() {
- count++;
- return array;
- }, resolver);
-
- var cache = memoized.cache;
-
- memoized(key);
- memoized(key);
-
- assert.strictEqual(count, 1);
- assert.strictEqual(cache.get(key), array);
- assert.notOk(cache.__data__ instanceof Array);
- assert.strictEqual(cache['delete'](key), true);
- });
- });
-
- QUnit.test('should allow `_.memoize.Cache` to be customized', function(assert) {
- assert.expect(4);
-
- var oldCache = _.memoize.Cache;
-
- function Cache() {
- this.__data__ = [];
- }
-
- Cache.prototype = {
- 'get': function(key) {
- var entry = _.find(this.__data__, function(entry) {
- return key === entry.key;
- });
- return entry && entry.value;
- },
- 'has': function(key) {
- return _.some(this.__data__, function(entry) {
- return key === entry.key;
- });
- },
- 'set': function(key, value) {
- this.__data__.push({ 'key': key, 'value': value });
- return this;
- }
- };
-
- _.memoize.Cache = Cache;
-
- var memoized = _.memoize(function(object) {
- return 'value:' + object.id;
- });
-
- var cache = memoized.cache,
- key1 = { 'id': 'a' },
- key2 = { 'id': 'b' };
-
- assert.strictEqual(memoized(key1), 'value:a');
- assert.strictEqual(cache.has(key1), true);
-
- assert.strictEqual(memoized(key2), 'value:b');
- assert.strictEqual(cache.has(key2), true);
-
- _.memoize.Cache = oldCache;
- });
-
- QUnit.test('should works with an immutable `_.memoize.Cache` ', function(assert) {
- assert.expect(2);
-
- var oldCache = _.memoize.Cache;
-
- function Cache() {
- this.__data__ = [];
- }
-
- Cache.prototype = {
- 'get': function(key) {
- return _.find(this.__data__, function(entry) {
- return key === entry.key;
- }).value;
- },
- 'has': function(key) {
- return _.some(this.__data__, function(entry) {
- return key === entry.key;
- });
- },
- 'set': function(key, value) {
- var result = new Cache;
- result.__data__ = this.__data__.concat({ 'key': key, 'value': value });
- return result;
- }
- };
-
- _.memoize.Cache = Cache;
-
- var memoized = _.memoize(function(object) {
- return object.id;
- });
-
- var key1 = { 'id': 'a' },
- key2 = { 'id': 'b' };
-
- memoized(key1);
- memoized(key2);
-
- var cache = memoized.cache;
- assert.strictEqual(cache.has(key1), true);
- assert.strictEqual(cache.has(key2), true);
-
- _.memoize.Cache = oldCache;
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.merge');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should merge `source` into `object`', function(assert) {
- assert.expect(1);
-
- var names = {
- 'characters': [
- { 'name': 'barney' },
- { 'name': 'fred' }
- ]
- };
-
- var ages = {
- 'characters': [
- { 'age': 36 },
- { 'age': 40 }
- ]
- };
-
- var heights = {
- 'characters': [
- { 'height': '5\'4"' },
- { 'height': '5\'5"' }
- ]
- };
-
- var expected = {
- 'characters': [
- { 'name': 'barney', 'age': 36, 'height': '5\'4"' },
- { 'name': 'fred', 'age': 40, 'height': '5\'5"' }
- ]
- };
-
- assert.deepEqual(_.merge(names, ages, heights), expected);
- });
-
- QUnit.test('should merge sources containing circular references', function(assert) {
- assert.expect(2);
-
- var object = {
- 'foo': { 'a': 1 },
- 'bar': { 'a': 2 }
- };
-
- var source = {
- 'foo': { 'b': { 'c': { 'd': {} } } },
- 'bar': {}
- };
-
- source.foo.b.c.d = source;
- source.bar.b = source.foo.b;
-
- var actual = _.merge(object, source);
-
- assert.notStrictEqual(actual.bar.b, actual.foo.b);
- assert.strictEqual(actual.foo.b.c.d, actual.foo.b.c.d.foo.b.c.d);
- });
-
- QUnit.test('should work with four arguments', function(assert) {
- assert.expect(1);
-
- var expected = { 'a': 4 },
- actual = _.merge({ 'a': 1 }, { 'a': 2 }, { 'a': 3 }, expected);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should merge onto function `object` values', function(assert) {
- assert.expect(2);
-
- function Foo() {}
-
- var source = { 'a': 1 },
- actual = _.merge(Foo, source);
-
- assert.strictEqual(actual, Foo);
- assert.strictEqual(Foo.a, 1);
- });
-
- QUnit.test('should not merge onto function values of sources', function(assert) {
- assert.expect(3);
-
- var source1 = { 'a': function() {} },
- source2 = { 'a': { 'b': 2 } },
- actual = _.merge({}, source1, source2);
-
- assert.deepEqual(actual, { 'a': { 'b': 2 } });
-
- actual = _.merge(source1, source2);
-
- assert.strictEqual(typeof actual.a, 'function');
- assert.strictEqual(actual.a.b, 2);
- });
-
- QUnit.test('should merge onto non-plain `object` values', function(assert) {
- assert.expect(2);
-
- function Foo() {}
-
- var object = new Foo,
- actual = _.merge(object, { 'a': 1 });
-
- assert.strictEqual(actual, object);
- assert.strictEqual(object.a, 1);
- });
-
- QUnit.test('should treat sparse array sources as dense', function(assert) {
- assert.expect(2);
-
- var array = [1];
- array[2] = 3;
-
- var actual = _.merge([], array),
- expected = array.slice();
-
- expected[1] = undefined;
-
- assert.ok('1' in actual);
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should merge `arguments` objects', function(assert) {
- assert.expect(7);
-
- var object1 = { 'value': args },
- object2 = { 'value': { '3': 4 } },
- expected = { '0': 1, '1': 2, '2': 3, '3': 4 },
- actual = _.merge(object1, object2);
-
- assert.notOk('3' in args);
- assert.notOk(_.isArguments(actual.value));
- assert.deepEqual(actual.value, expected);
- object1.value = args;
-
- actual = _.merge(object2, object1);
- assert.notOk(_.isArguments(actual.value));
- assert.deepEqual(actual.value, expected);
-
- expected = { '0': 1, '1': 2, '2': 3 };
-
- actual = _.merge({}, object1);
- assert.notOk(_.isArguments(actual.value));
- assert.deepEqual(actual.value, expected);
- });
-
- QUnit.test('should merge typed arrays', function(assert) {
- assert.expect(4);
-
- var array1 = [0],
- array2 = [0, 0],
- array3 = [0, 0, 0, 0],
- array4 = [0, 0, 0, 0, 0, 0, 0, 0];
-
- var arrays = [array2, array1, array4, array3, array2, array4, array4, array3, array2],
- buffer = ArrayBuffer && new ArrayBuffer(8);
-
- // Juggle for `Float64Array` shim.
- if (root.Float64Array && (new Float64Array(buffer)).length == 8) {
- arrays[1] = array4;
- }
- var expected = lodashStable.map(typedArrays, function(type, index) {
- var array = arrays[index].slice();
- array[0] = 1;
- return root[type] ? { 'value': array } : false;
- });
-
- var actual = lodashStable.map(typedArrays, function(type) {
- var Ctor = root[type];
- return Ctor ? _.merge({ 'value': new Ctor(buffer) }, { 'value': [1] }) : false;
- });
-
- assert.ok(lodashStable.isArray(actual));
- assert.deepEqual(actual, expected);
-
- expected = lodashStable.map(typedArrays, function(type, index) {
- var array = arrays[index].slice();
- array.push(1);
- return root[type] ? { 'value': array } : false;
- });
-
- actual = lodashStable.map(typedArrays, function(type, index) {
- var Ctor = root[type],
- array = lodashStable.range(arrays[index].length);
-
- array.push(1);
- return Ctor ? _.merge({ 'value': array }, { 'value': new Ctor(buffer) }) : false;
- });
-
- assert.ok(lodashStable.isArray(actual));
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should assign `null` values', function(assert) {
- assert.expect(1);
-
- var actual = _.merge({ 'a': 1 }, { 'a': null });
- assert.strictEqual(actual.a, null);
- });
-
- QUnit.test('should assign non array/typed-array/plain-object sources directly', function(assert) {
- assert.expect(1);
-
- function Foo() {}
-
- var values = [new Foo, new Boolean, new Date, Foo, new Number, new String, new RegExp],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- var object = _.merge({}, { 'value': value });
- return object.value === value;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should deep clone array/typed-array/plain-object sources', function(assert) {
- assert.expect(1);
-
- var typedArray = Uint8Array
- ? new Uint8Array(new ArrayBuffer(2))
- : { 'buffer': [0, 0] };
-
- var props = ['0', 'a', 'buffer'],
- values = [[{ 'a': 1 }], { 'a': [1] }, typedArray],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value, index) {
- var key = props[index],
- object = _.merge({}, { 'value': value }),
- newValue = object.value;
-
- return (
- newValue !== value &&
- newValue[key] !== value[key] &&
- lodashStable.isEqual(newValue, value)
- );
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not augment source objects', function(assert) {
- assert.expect(6);
-
- var source1 = { 'a': [{ 'a': 1 }] },
- source2 = { 'a': [{ 'b': 2 }] },
- actual = _.merge({}, source1, source2);
-
- assert.deepEqual(source1.a, [{ 'a': 1 }]);
- assert.deepEqual(source2.a, [{ 'b': 2 }]);
- assert.deepEqual(actual.a, [{ 'a': 1, 'b': 2 }]);
-
- var source1 = { 'a': [[1, 2, 3]] },
- source2 = { 'a': [[3, 4]] },
- actual = _.merge({}, source1, source2);
-
- assert.deepEqual(source1.a, [[1, 2, 3]]);
- assert.deepEqual(source2.a, [[3, 4]]);
- assert.deepEqual(actual.a, [[3, 4, 3]]);
- });
-
- QUnit.test('should merge plain-objects onto non plain-objects', function(assert) {
- assert.expect(4);
-
- function Foo(object) {
- lodashStable.assign(this, object);
- }
-
- var object = { 'a': 1 },
- actual = _.merge(new Foo, object);
-
- assert.ok(actual instanceof Foo);
- assert.deepEqual(actual, new Foo(object));
-
- actual = _.merge([new Foo], [object]);
- assert.ok(actual[0] instanceof Foo);
- assert.deepEqual(actual, [new Foo(object)]);
- });
-
- QUnit.test('should not assign `undefined` values', function(assert) {
- assert.expect(1);
-
- var actual = _.merge({ 'a': 1 }, { 'a': undefined, 'b': undefined });
- assert.deepEqual(actual, { 'a': 1 });
- });
-
- QUnit.test('should skip `undefined` values in array sources if a destination value exists', function(assert) {
- assert.expect(2);
-
- var array = [1];
- array[2] = 3;
-
- var actual = _.merge([4, 5, 6], array),
- expected = [1, 5, 3];
-
- assert.deepEqual(actual, expected);
-
- array = [1, , 3];
- array[1] = undefined;
-
- actual = _.merge([4, 5, 6], array);
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should skip merging when `object` and `source` are the same value', function(assert) {
- assert.expect(1);
-
- var object = {},
- pass = true;
-
- defineProperty(object, 'a', {
- 'enumerable': true,
- 'configurable': true,
- 'get': function() { pass = false; },
- 'set': function() { pass = false; }
- });
-
- _.merge(object, object);
- assert.ok(pass);
- });
-
- QUnit.test('should convert values to arrays when merging arrays of `source`', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { '1': 'y', 'b': 'z', 'length': 2 } },
- actual = _.merge(object, { 'a': ['x'] });
-
- assert.deepEqual(actual, { 'a': ['x', 'y'] });
-
- actual = _.merge({ 'a': {} }, { 'a': [] });
- assert.deepEqual(actual, { 'a': [] });
- });
-
- QUnit.test('should not convert strings to arrays when merging arrays of `source`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 'abcde' },
- actual = _.merge(object, { 'a': ['x', 'y', 'z'] });
-
- assert.deepEqual(actual, { 'a': ['x', 'y', 'z'] });
- });
-
- QUnit.test('should not error on DOM elements', function(assert) {
- assert.expect(1);
-
- var object1 = { 'el': document && document.createElement('div') },
- object2 = { 'el': document && document.createElement('div') },
- pairs = [[{}, object1], [object1, object2]],
- expected = lodashStable.map(pairs, stubTrue);
-
- var actual = lodashStable.map(pairs, function(pair) {
- try {
- return _.merge(pair[0], pair[1]).el === pair[1].el;
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.mergeWith');
-
- (function() {
- QUnit.test('should handle merging when `customizer` returns `undefined`', function(assert) {
- assert.expect(2);
-
- var actual = _.mergeWith({ 'a': { 'b': [1, 1] } }, { 'a': { 'b': [0] } }, noop);
- assert.deepEqual(actual, { 'a': { 'b': [0, 1] } });
-
- actual = _.mergeWith([], [undefined], identity);
- assert.deepEqual(actual, [undefined]);
- });
-
- QUnit.test('should clone sources when `customizer` returns `undefined`', function(assert) {
- assert.expect(1);
-
- var source1 = { 'a': { 'b': { 'c': 1 } } },
- source2 = { 'a': { 'b': { 'd': 2 } } };
-
- _.mergeWith({}, source1, source2, noop);
- assert.deepEqual(source1.a.b, { 'c': 1 });
- });
-
- QUnit.test('should defer to `customizer` for non `undefined` results', function(assert) {
- assert.expect(1);
-
- var actual = _.mergeWith({ 'a': { 'b': [0, 1] } }, { 'a': { 'b': [2] } }, function(a, b) {
- return lodashStable.isArray(a) ? a.concat(b) : undefined;
- });
-
- assert.deepEqual(actual, { 'a': { 'b': [0, 1, 2] } });
- });
-
- QUnit.test('should provide `stack` to `customizer`', function(assert) {
- assert.expect(1);
-
- var actual;
-
- _.mergeWith({}, { 'a': { 'b': 2 } }, function() {
- actual = _.last(arguments);
- });
-
- assert.ok(isNpm
- ? actual.constructor.name == 'Stack'
- : actual instanceof mapCaches.Stack
- );
- });
-
- QUnit.test('should overwrite primitives with source object clones', function(assert) {
- assert.expect(1);
-
- var actual = _.mergeWith({ 'a': 0 }, { 'a': { 'b': ['c'] } }, function(a, b) {
- return lodashStable.isArray(a) ? a.concat(b) : undefined;
- });
-
- assert.deepEqual(actual, { 'a': { 'b': ['c'] } });
- });
-
- QUnit.test('should pop the stack of sources for each sibling property', function(assert) {
- assert.expect(1);
-
- var array = ['b', 'c'],
- object = { 'a': ['a'] },
- source = { 'a': array, 'b': array };
-
- var actual = _.mergeWith(object, source, function(a, b) {
- return lodashStable.isArray(a) ? a.concat(b) : undefined;
- });
-
- assert.deepEqual(actual, { 'a': ['a', 'b', 'c'], 'b': ['b', 'c'] });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.method');
-
- (function() {
- QUnit.test('should create a function that calls a method of a given object', function(assert) {
- assert.expect(4);
-
- var object = { 'a': stubOne };
-
- lodashStable.each(['a', ['a']], function(path) {
- var method = _.method(path);
- assert.strictEqual(method.length, 1);
- assert.strictEqual(method(object), 1);
- });
- });
-
- QUnit.test('should work with deep property values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': stubTwo } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var method = _.method(path);
- assert.strictEqual(method(object), 2);
- });
- });
-
- QUnit.test('should work with a non-string `path`', function(assert) {
- assert.expect(2);
-
- var array = lodashStable.times(3, _.constant);
-
- lodashStable.each([1, [1]], function(path) {
- var method = _.method(path);
- assert.strictEqual(method(array), 1);
- });
- });
-
- QUnit.test('should coerce key to a string', function(assert) {
- assert.expect(1);
-
- function fn() {}
- fn.toString = lodashStable.constant('fn');
-
- var expected = [1, 1, 2, 2, 3, 3, 4, 4],
- objects = [{ 'null': stubOne }, { 'undefined': stubTwo }, { 'fn': stubThree }, { '[object Object]': stubFour }],
- values = [null, undefined, fn, {}];
-
- var actual = lodashStable.transform(objects, function(result, object, index) {
- var key = values[index];
- lodashStable.each([key, [key]], function(path) {
- var method = _.method(key);
- result.push(method(object));
- });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with inherited property values', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.prototype.a = stubOne;
-
- lodashStable.each(['a', ['a']], function(path) {
- var method = _.method(path);
- assert.strictEqual(method(new Foo), 1);
- });
- });
-
- QUnit.test('should use a key over a path', function(assert) {
- assert.expect(2);
-
- var object = { 'a.b': stubOne, 'a': { 'b': stubTwo } };
-
- lodashStable.each(['a.b', ['a.b']], function(path) {
- var method = _.method(path);
- assert.strictEqual(method(object), 1);
- });
- });
-
- QUnit.test('should return `undefined` when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, noop);
-
- lodashStable.each(['constructor', ['constructor']], function(path) {
- var method = _.method(path);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? method(value) : method();
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `undefined` with deep paths when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, noop);
-
- lodashStable.each(['constructor.prototype.valueOf', ['constructor', 'prototype', 'valueOf']], function(path) {
- var method = _.method(path);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? method(value) : method();
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `undefined` if parts of `path` are missing', function(assert) {
- assert.expect(4);
-
- var object = {};
-
- lodashStable.each(['a', 'a[1].b.c', ['a'], ['a', '1', 'b', 'c']], function(path) {
- var method = _.method(path);
- assert.strictEqual(method(object), undefined);
- });
- });
-
- QUnit.test('should apply partial arguments to function', function(assert) {
- assert.expect(2);
-
- var object = {
- 'fn': function() {
- return slice.call(arguments);
- }
- };
-
- lodashStable.each(['fn', ['fn']], function(path) {
- var method = _.method(path, 1, 2, 3);
- assert.deepEqual(method(object), [1, 2, 3]);
- });
- });
-
- QUnit.test('should invoke deep property methods with the correct `this` binding', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': function() { return this.c; }, 'c': 1 } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var method = _.method(path);
- assert.strictEqual(method(object), 1);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.methodOf');
-
- (function() {
- QUnit.test('should create a function that calls a method of a given key', function(assert) {
- assert.expect(4);
-
- var object = { 'a': stubOne };
-
- lodashStable.each(['a', ['a']], function(path) {
- var methodOf = _.methodOf(object);
- assert.strictEqual(methodOf.length, 1);
- assert.strictEqual(methodOf(path), 1);
- });
- });
-
- QUnit.test('should work with deep property values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': stubTwo } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var methodOf = _.methodOf(object);
- assert.strictEqual(methodOf(path), 2);
- });
- });
-
- QUnit.test('should work with a non-string `path`', function(assert) {
- assert.expect(2);
-
- var array = lodashStable.times(3, _.constant);
-
- lodashStable.each([1, [1]], function(path) {
- var methodOf = _.methodOf(array);
- assert.strictEqual(methodOf(path), 1);
- });
- });
-
- QUnit.test('should coerce key to a string', function(assert) {
- assert.expect(1);
-
- function fn() {}
- fn.toString = lodashStable.constant('fn');
-
- var expected = [1, 1, 2, 2, 3, 3, 4, 4],
- objects = [{ 'null': stubOne }, { 'undefined': stubTwo }, { 'fn': stubThree }, { '[object Object]': stubFour }],
- values = [null, undefined, fn, {}];
-
- var actual = lodashStable.transform(objects, function(result, object, index) {
- var key = values[index];
- lodashStable.each([key, [key]], function(path) {
- var methodOf = _.methodOf(object);
- result.push(methodOf(key));
- });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with inherited property values', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.prototype.a = stubOne;
-
- lodashStable.each(['a', ['a']], function(path) {
- var methodOf = _.methodOf(new Foo);
- assert.strictEqual(methodOf(path), 1);
- });
- });
-
- QUnit.test('should use a key over a path', function(assert) {
- assert.expect(2);
-
- var object = { 'a.b': stubOne, 'a': { 'b': stubTwo } };
-
- lodashStable.each(['a.b', ['a.b']], function(path) {
- var methodOf = _.methodOf(object);
- assert.strictEqual(methodOf(path), 1);
- });
- });
-
- QUnit.test('should return `undefined` when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, noop);
-
- lodashStable.each(['constructor', ['constructor']], function(path) {
- var actual = lodashStable.map(values, function(value, index) {
- var methodOf = index ? _.methodOf() : _.methodOf(value);
- return methodOf(path);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `undefined` with deep paths when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, noop);
-
- lodashStable.each(['constructor.prototype.valueOf', ['constructor', 'prototype', 'valueOf']], function(path) {
- var actual = lodashStable.map(values, function(value, index) {
- var methodOf = index ? _.methodOf() : _.methodOf(value);
- return methodOf(path);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `undefined` if parts of `path` are missing', function(assert) {
- assert.expect(4);
-
- var object = {},
- methodOf = _.methodOf(object);
-
- lodashStable.each(['a', 'a[1].b.c', ['a'], ['a', '1', 'b', 'c']], function(path) {
- assert.strictEqual(methodOf(path), undefined);
- });
- });
-
- QUnit.test('should apply partial arguments to function', function(assert) {
- assert.expect(2);
-
- var object = {
- 'fn': function() {
- return slice.call(arguments);
- }
- };
-
- var methodOf = _.methodOf(object, 1, 2, 3);
-
- lodashStable.each(['fn', ['fn']], function(path) {
- assert.deepEqual(methodOf(path), [1, 2, 3]);
- });
- });
-
- QUnit.test('should invoke deep property methods with the correct `this` binding', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': function() { return this.c; }, 'c': 1 } },
- methodOf = _.methodOf(object);
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.strictEqual(methodOf(path), 1);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.min');
-
- (function() {
- QUnit.test('should return the smallest value from a collection', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.min([1, 2, 3]), 1);
- });
-
- QUnit.test('should return `undefined` for empty collections', function(assert) {
- assert.expect(1);
-
- var values = falsey.concat([[]]),
- expected = lodashStable.map(values, noop);
-
- var actual = lodashStable.map(values, function(value, index) {
- try {
- return index ? _.min(value) : _.min();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with non-numeric collection values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.min(['a', 'b']), 'a');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('extremum methods');
-
- lodashStable.each(['max', 'maxBy', 'min', 'minBy'], function(methodName) {
- var func = _[methodName],
- isMax = /^max/.test(methodName);
-
- QUnit.test('`_.' + methodName + '` should work with Date objects', function(assert) {
- assert.expect(1);
-
- var curr = new Date,
- past = new Date(0);
-
- assert.strictEqual(func([curr, past]), isMax ? curr : past);
- });
-
- QUnit.test('`_.' + methodName + '` should work with extremely large arrays', function(assert) {
- assert.expect(1);
-
- var array = lodashStable.range(0, 5e5);
- assert.strictEqual(func(array), isMax ? 499999 : 0);
- });
-
- QUnit.test('`_.' + methodName + '` should work when chaining on an array with only one value', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = _([40])[methodName]();
- assert.strictEqual(actual, 40);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- lodashStable.each(['maxBy', 'minBy'], function(methodName) {
- var array = [1, 2, 3],
- func = _[methodName],
- isMax = methodName == 'maxBy';
-
- QUnit.test('`_.' + methodName + '` should work with an `iteratee` argument', function(assert) {
- assert.expect(1);
-
- var actual = func(array, function(n) {
- return -n;
- });
-
- assert.strictEqual(actual, isMax ? 1 : 3);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(2);
-
- var objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }],
- actual = func(objects, 'a');
-
- assert.deepEqual(actual, objects[isMax ? 1 : 2]);
-
- var arrays = [[2], [3], [1]];
- actual = func(arrays, 0);
-
- assert.deepEqual(actual, arrays[isMax ? 1 : 2]);
- });
-
- QUnit.test('`_.' + methodName + '` should work when `iteratee` returns +/-Infinity', function(assert) {
- assert.expect(1);
-
- var value = isMax ? -Infinity : Infinity,
- object = { 'a': value };
-
- var actual = func([object, { 'a': value }], function(object) {
- return object.a;
- });
-
- assert.strictEqual(actual, object);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.mixin');
-
- (function() {
- function reset(wrapper) {
- delete wrapper.a;
- delete wrapper.prototype.a;
- delete wrapper.b;
- delete wrapper.prototype.b;
- }
-
- function Wrapper(value) {
- if (!(this instanceof Wrapper)) {
- return new Wrapper(value);
- }
- if (_.has(value, '__wrapped__')) {
- var actions = slice.call(value.__actions__),
- chain = value.__chain__;
-
- value = value.__wrapped__;
- }
- this.__wrapped__ = value;
- this.__actions__ = actions || [];
- this.__chain__ = chain || false;
- }
-
- Wrapper.prototype.value = function() {
- return getUnwrappedValue(this);
- };
-
- var array = ['a'],
- source = { 'a': function(array) { return array[0]; }, 'b': 'B' };
-
- QUnit.test('should mixin `source` methods into lodash', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- _.mixin(source);
-
- assert.strictEqual(_.a(array), 'a');
- assert.strictEqual(_(array).a().value(), 'a');
- assert.notOk('b' in _);
- assert.notOk('b' in _.prototype);
-
- reset(_);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should mixin chaining methods by reference', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- _.mixin(source);
- _.a = stubB;
-
- assert.strictEqual(_.a(array), 'b');
- assert.strictEqual(_(array).a().value(), 'a');
-
- reset(_);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should use a default `object` of `this`', function(assert) {
- assert.expect(3);
-
- var object = lodashStable.create(_);
- object.mixin(source);
-
- assert.strictEqual(object.a(array), 'a');
- assert.notOk('a' in _);
- assert.notOk('a' in _.prototype);
-
- reset(_);
- });
-
- QUnit.test('should accept an `object` argument', function(assert) {
- assert.expect(1);
-
- var object = {};
- _.mixin(object, source);
- assert.strictEqual(object.a(array), 'a');
- });
-
- QUnit.test('should accept a function `object`', function(assert) {
- assert.expect(2);
-
- _.mixin(Wrapper, source);
-
- var wrapped = Wrapper(array),
- actual = wrapped.a();
-
- assert.strictEqual(actual.value(), 'a');
- assert.ok(actual instanceof Wrapper);
-
- reset(Wrapper);
- });
-
- QUnit.test('should return `object`', function(assert) {
- assert.expect(3);
-
- var object = {};
- assert.strictEqual(_.mixin(object, source), object);
- assert.strictEqual(_.mixin(Wrapper, source), Wrapper);
- assert.strictEqual(_.mixin(), _);
-
- reset(Wrapper);
- });
-
- QUnit.test('should not assign inherited `source` methods', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.prototype.a = noop;
-
- var object = {};
- assert.strictEqual(_.mixin(object, new Foo), object);
- });
-
- QUnit.test('should accept an `options` argument', function(assert) {
- assert.expect(8);
-
- function message(func, chain) {
- return (func === _ ? 'lodash' : 'given') + ' function should ' + (chain ? '' : 'not ') + 'chain';
- }
-
- lodashStable.each([_, Wrapper], function(func) {
- lodashStable.each([{ 'chain': false }, { 'chain': true }], function(options) {
- if (!isNpm) {
- if (func === _) {
- _.mixin(source, options);
- } else {
- _.mixin(func, source, options);
- }
- var wrapped = func(array),
- actual = wrapped.a();
-
- if (options.chain) {
- assert.strictEqual(actual.value(), 'a', message(func, true));
- assert.ok(actual instanceof func, message(func, true));
- } else {
- assert.strictEqual(actual, 'a', message(func, false));
- assert.notOk(actual instanceof func, message(func, false));
- }
- reset(func);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- });
- });
-
- QUnit.test('should not extend lodash when an `object` is given with an empty `options` object', function(assert) {
- assert.expect(1);
-
- _.mixin({ 'a': noop }, {});
- assert.notOk('a' in _);
- reset(_);
- });
-
- QUnit.test('should not error for non-object `options` values', function(assert) {
- assert.expect(2);
-
- var pass = true;
-
- try {
- _.mixin({}, source, 1);
- } catch (e) {
- pass = false;
- }
- assert.ok(pass);
-
- pass = true;
-
- try {
- _.mixin(source, 1);
- } catch (e) {
- pass = false;
- }
- assert.ok(pass);
-
- reset(_);
- });
-
- QUnit.test('should not return the existing wrapped value when chaining', function(assert) {
- assert.expect(2);
-
- lodashStable.each([_, Wrapper], function(func) {
- if (!isNpm) {
- if (func === _) {
- var wrapped = _(source),
- actual = wrapped.mixin();
-
- assert.strictEqual(actual.value(), _);
- }
- else {
- wrapped = _(func);
- actual = wrapped.mixin(source);
- assert.notStrictEqual(actual, wrapped);
- }
- reset(func);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- QUnit.test('should produce methods that work in a lazy sequence', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- _.mixin({ 'a': _.countBy, 'b': _.filter });
-
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- actual = _(array).a().map(square).b(isEven).take().value();
-
- assert.deepEqual(actual, _.take(_.b(_.map(_.a(array), square), isEven)));
-
- reset(_);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.multiply');
-
- (function() {
- QUnit.test('should multiply two numbers', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.multiply(6, 4), 24);
- assert.strictEqual(_.multiply(-6, 4), -24);
- assert.strictEqual(_.multiply(-6, -4), 24);
- });
-
- QUnit.test('should coerce arguments to numbers', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.multiply('6', '4'), 24);
- assert.deepEqual(_.multiply('x', 'y'), NaN);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.orderBy');
-
- (function() {
- var objects = [
- { 'a': 'x', 'b': 3 },
- { 'a': 'y', 'b': 4 },
- { 'a': 'x', 'b': 1 },
- { 'a': 'y', 'b': 2 }
- ];
-
- QUnit.test('should sort by a single property by a specified order', function(assert) {
- assert.expect(1);
-
- var actual = _.orderBy(objects, 'a', 'desc');
- assert.deepEqual(actual, [objects[1], objects[3], objects[0], objects[2]]);
- });
-
- QUnit.test('should sort by multiple properties by specified orders', function(assert) {
- assert.expect(1);
-
- var actual = _.orderBy(objects, ['a', 'b'], ['desc', 'asc']);
- assert.deepEqual(actual, [objects[3], objects[1], objects[2], objects[0]]);
- });
-
- QUnit.test('should sort by a property in ascending order when its order is not specified', function(assert) {
- assert.expect(2);
-
- var expected = [objects[2], objects[0], objects[3], objects[1]],
- actual = _.orderBy(objects, ['a', 'b']);
-
- assert.deepEqual(actual, expected);
-
- expected = lodashStable.map(falsey, lodashStable.constant([objects[3], objects[1], objects[2], objects[0]]));
-
- actual = lodashStable.map(falsey, function(order, index) {
- return _.orderBy(objects, ['a', 'b'], index ? ['desc', order] : ['desc']);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `orders` specified as string objects', function(assert) {
- assert.expect(1);
-
- var actual = _.orderBy(objects, ['a'], [Object('desc')]);
- assert.deepEqual(actual, [objects[1], objects[3], objects[0], objects[2]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.overArgs');
-
- (function() {
- function fn() {
- return slice.call(arguments);
- }
-
- QUnit.test('should transform each argument', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn, doubled, square);
- assert.deepEqual(over(5, 10), [10, 100]);
- });
-
- QUnit.test('should use `_.identity` when a predicate is nullish', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn, undefined, null);
- assert.deepEqual(over('a', 'b'), ['a', 'b']);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn, 'b', 'a');
- assert.deepEqual(over({ 'b': 2 }, { 'a': 1 }), [2, 1]);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn, { 'b': 1 }, { 'a': 1 });
- assert.deepEqual(over({ 'b': 2 }, { 'a': 1 }), [false, true]);
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn, ['b', 1], [['a', 1]]);
- assert.deepEqual(over({ 'b': 2 }, { 'a': 1 }), [false, true]);
- });
-
- QUnit.test('should differentiate between `_.property` and `_.matchesProperty` shorthands', function(assert) {
- assert.expect(2);
-
- var over = _.overArgs(fn, ['a', 1]);
- assert.deepEqual(over({ 'a': 1 }, { '1': 2 }), [1, 2]);
-
- over = _.overArgs(fn, [['a', 1]]);
- assert.deepEqual(over({ 'a': 1 }), [true]);
- });
-
- QUnit.test('should flatten `transforms`', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn, [doubled, square], String);
- assert.deepEqual(over(5, 10, 15), [10, 100, '15']);
- });
-
- QUnit.test('should not transform any argument greater than the number of transforms', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn, doubled, square);
- assert.deepEqual(over(5, 10, 18), [10, 100, 18]);
- });
-
- QUnit.test('should not transform any arguments if no transforms are given', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn);
- assert.deepEqual(over(5, 10, 18), [5, 10, 18]);
- });
-
- QUnit.test('should not pass `undefined` if there are more transforms than arguments', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(fn, doubled, identity);
- assert.deepEqual(over(5), [10]);
- });
-
- QUnit.test('should provide the correct argument to each transform', function(assert) {
- assert.expect(1);
-
- var argsList = [],
- transform = function() { argsList.push(slice.call(arguments)); },
- over = _.overArgs(noop, transform, transform, transform);
-
- over('a', 'b');
- assert.deepEqual(argsList, [['a'], ['b']]);
- });
-
- QUnit.test('should use `this` binding of function for `transforms`', function(assert) {
- assert.expect(1);
-
- var over = _.overArgs(function(x) {
- return this[x];
- }, function(x) {
- return this === x;
- });
-
- var object = { 'over': over, 'true': 1 };
- assert.strictEqual(object.over(object), 1);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.negate');
-
- (function() {
- QUnit.test('should create a function that negates the result of `func`', function(assert) {
- assert.expect(2);
-
- var negate = _.negate(isEven);
-
- assert.strictEqual(negate(1), true);
- assert.strictEqual(negate(2), false);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.noConflict');
-
- (function() {
- QUnit.test('should return the `lodash` function', function(assert) {
- assert.expect(2);
-
- if (!isModularize) {
- assert.strictEqual(_.noConflict(), oldDash);
- assert.notStrictEqual(root._, oldDash);
- root._ = oldDash;
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should restore `_` only if `lodash` is the current `_` value', function(assert) {
- assert.expect(2);
-
- if (!isModularize) {
- var object = root._ = {};
- assert.strictEqual(_.noConflict(), oldDash);
- assert.strictEqual(root._, object);
- root._ = oldDash;
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should work with a `root` of `this`', function(assert) {
- assert.expect(2);
-
- if (!coverage && !document && !isModularize && realm.object) {
- var fs = require('fs'),
- vm = require('vm'),
- expected = {},
- context = vm.createContext({ '_': expected, 'console': console }),
- source = fs.readFileSync(filePath, 'utf8');
-
- vm.runInContext(source + '\nthis.lodash = this._.noConflict()', context);
-
- assert.strictEqual(context._, expected);
- assert.ok(context.lodash);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.now');
-
- (function() {
- QUnit.test('should return the number of milliseconds that have elapsed since the Unix epoch', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var stamp = +new Date,
- actual = _.now();
-
- assert.ok(actual >= stamp);
-
- setTimeout(function() {
- assert.ok(_.now() > actual);
- done();
- }, 32);
- });
-
- QUnit.test('should work with mocked `Date.now`', function(assert) {
- assert.expect(1);
-
- var now = Date.now;
- Date.now = stubA;
-
- var actual = _.now();
- Date.now = now;
-
- assert.strictEqual(actual, 'a');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.nth');
-
- (function() {
- var array = ['a', 'b', 'c', 'd'];
-
- QUnit.test('should get the nth element of `array`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(array, function(value, index) {
- return _.nth(array, index);
- });
-
- assert.deepEqual(actual, array);
- });
-
- QUnit.test('should work with a negative `n`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(lodashStable.range(1, array.length + 1), function(n) {
- return _.nth(array, -n);
- });
-
- assert.deepEqual(actual, ['d', 'c', 'b', 'a']);
- });
-
- QUnit.test('should coerce `n` to an integer', function(assert) {
- assert.expect(2);
-
- var values = falsey,
- expected = lodashStable.map(values, stubA);
-
- var actual = lodashStable.map(values, function(n) {
- return n ? _.nth(array, n) : _.nth(array);
- });
-
- assert.deepEqual(actual, expected);
-
- values = ['1', 1.6];
- expected = lodashStable.map(values, stubB);
-
- actual = lodashStable.map(values, function(n) {
- return _.nth(array, n);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `undefined` for empty arrays', function(assert) {
- assert.expect(1);
-
- var values = [null, undefined, []],
- expected = lodashStable.map(values, noop);
-
- var actual = lodashStable.map(values, function(array) {
- return _.nth(array, 1);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `undefined` for non-indexes', function(assert) {
- assert.expect(1);
-
- var array = [1, 2],
- values = [Infinity, array.length],
- expected = lodashStable.map(values, noop);
-
- array[-1] = 3;
-
- var actual = lodashStable.map(values, function(n) {
- return _.nth(array, n);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.nthArg');
-
- (function() {
- var args = ['a', 'b', 'c', 'd'];
-
- QUnit.test('should create a function that returns its nth argument', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(args, function(value, index) {
- var func = _.nthArg(index);
- return func.apply(undefined, args);
- });
-
- assert.deepEqual(actual, args);
- });
-
- QUnit.test('should work with a negative `n`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(lodashStable.range(1, args.length + 1), function(n) {
- var func = _.nthArg(-n);
- return func.apply(undefined, args);
- });
-
- assert.deepEqual(actual, ['d', 'c', 'b', 'a']);
- });
-
- QUnit.test('should coerce `n` to an integer', function(assert) {
- assert.expect(2);
-
- var values = falsey,
- expected = lodashStable.map(values, stubA);
-
- var actual = lodashStable.map(values, function(n) {
- var func = n ? _.nthArg(n) : _.nthArg();
- return func.apply(undefined, args);
- });
-
- assert.deepEqual(actual, expected);
-
- values = ['1', 1.6];
- expected = lodashStable.map(values, stubB);
-
- actual = lodashStable.map(values, function(n) {
- var func = _.nthArg(n);
- return func.apply(undefined, args);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `undefined` for empty arrays', function(assert) {
- assert.expect(1);
-
- var func = _.nthArg(1);
- assert.strictEqual(func(), undefined);
- });
-
- QUnit.test('should return `undefined` for non-indexes', function(assert) {
- assert.expect(1);
-
- var values = [Infinity, args.length],
- expected = lodashStable.map(values, noop);
-
- var actual = lodashStable.map(values, function(n) {
- var func = _.nthArg(n);
- return func.apply(undefined, args);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.omit');
-
- (function() {
- var args = arguments,
- object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 };
-
- QUnit.test('should flatten `props`', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(_.omit(object, 'a', 'c'), { 'b': 2, 'd': 4 });
- assert.deepEqual(_.omit(object, ['a', 'd'], 'c'), { 'b': 2 });
- });
-
- QUnit.test('should work with a primitive `object` argument', function(assert) {
- assert.expect(1);
-
- stringProto.a = 1;
- stringProto.b = 2;
-
- assert.deepEqual(_.omit('', 'b'), { 'a': 1 });
-
- delete stringProto.a;
- delete stringProto.b;
- });
-
- QUnit.test('should return an empty object when `object` is nullish', function(assert) {
- assert.expect(2);
-
- objectProto.a = 1;
- lodashStable.each([null, undefined], function(value) {
- assert.deepEqual(_.omit(value, 'valueOf'), {});
- });
- delete objectProto.a;
- });
-
- QUnit.test('should work with `arguments` objects as secondary arguments', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.omit(object, args), { 'b': 2, 'd': 4 });
- });
-
- QUnit.test('should coerce property names to strings', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.omit({ '0': 'a' }, 0), {});
- });
- }('a', 'c'));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.omitBy');
-
- (function() {
- QUnit.test('should work with a predicate argument', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 };
-
- var actual = _.omitBy(object, function(n) {
- return n != 2 && n != 4;
- });
-
- assert.deepEqual(actual, { 'b': 2, 'd': 4 });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('omit methods');
-
- lodashStable.each(['omit', 'omitBy'], function(methodName) {
- var expected = { 'b': 2, 'd': 4 },
- func = _[methodName],
- object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 },
- resolve = lodashStable.nthArg(1);
-
- if (methodName == 'omitBy') {
- resolve = function(object, props) {
- props = lodashStable.castArray(props);
- return function(value) {
- return lodashStable.some(props, function(key) {
- key = lodashStable.isSymbol(key) ? key : lodashStable.toString(key);
- return object[key] === value;
- });
- };
- };
- }
- QUnit.test('`_.' + methodName + '` should create an object with omitted string keyed properties', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(func(object, resolve(object, 'a')), { 'b': 2, 'c': 3, 'd': 4 });
- assert.deepEqual(func(object, resolve(object, ['a', 'c'])), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should include inherited string keyed properties', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.prototype = object;
-
- assert.deepEqual(func(new Foo, resolve(object, ['a', 'c'])), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var object = { '-0': 'a', '0': 'b' },
- props = [-0, Object(-0), 0, Object(0)],
- expected = [{ '0': 'b' }, { '0': 'b' }, { '-0': 'a' }, { '-0': 'a' }];
-
- var actual = lodashStable.map(props, function(key) {
- return func(object, resolve(object, key));
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should include symbol properties', function(assert) {
- assert.expect(2);
-
- function Foo() {
- this.a = 0;
- this[symbol] = 1;
- }
-
- if (Symbol) {
- var symbol2 = Symbol('b');
- Foo.prototype[symbol2] = 2;
-
- var foo = new Foo,
- actual = func(foo, resolve(foo, 'a'));
-
- assert.strictEqual(actual[symbol], 1);
- assert.strictEqual(actual[symbol2], 2);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should create an object with omitted symbol properties', function(assert) {
- assert.expect(6);
-
- function Foo() {
- this.a = 0;
- this[symbol] = 1;
- }
-
- if (Symbol) {
- var symbol2 = Symbol('b');
- Foo.prototype[symbol2] = 2;
-
- var foo = new Foo,
- actual = func(foo, resolve(foo, symbol));
-
- assert.strictEqual(actual.a, 0);
- assert.strictEqual(actual[symbol], undefined);
- assert.strictEqual(actual[symbol2], 2);
-
- actual = func(foo, resolve(foo, symbol2));
-
- assert.strictEqual(actual.a, 0);
- assert.strictEqual(actual[symbol], 1);
- assert.strictEqual(actual[symbol2], undefined);
- }
- else {
- skipAssert(assert, 6);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should work with an array `object` argument', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- assert.deepEqual(func(array, resolve(array, ['0', '2'])), { '1': 2 });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.once');
-
- (function() {
- QUnit.test('should invoke `func` once', function(assert) {
- assert.expect(2);
-
- var count = 0,
- once = _.once(function() { return ++count; });
-
- once();
- assert.strictEqual(once(), 1);
- assert.strictEqual(count, 1);
- });
-
- QUnit.test('should ignore recursive calls', function(assert) {
- assert.expect(2);
-
- var count = 0;
-
- var once = _.once(function() {
- once();
- return ++count;
- });
-
- assert.strictEqual(once(), 1);
- assert.strictEqual(count, 1);
- });
-
- QUnit.test('should not throw more than once', function(assert) {
- assert.expect(2);
-
- var pass = true;
-
- var once = _.once(function() {
- throw new Error;
- });
-
- assert.raises(once);
-
- try {
- once();
- } catch (e) {
- pass = false;
- }
- assert.ok(pass);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.over');
-
- (function() {
- QUnit.test('should create a function that invokes `iteratees`', function(assert) {
- assert.expect(1);
-
- var over = _.over(Math.max, Math.min);
- assert.deepEqual(over(1, 2, 3, 4), [4, 1]);
- });
-
- QUnit.test('should use `_.identity` when a predicate is nullish', function(assert) {
- assert.expect(1);
-
- var over = _.over(undefined, null);
- assert.deepEqual(over('a', 'b', 'c'), ['a', 'a']);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var over = _.over('b', 'a');
- assert.deepEqual(over({ 'a': 1, 'b': 2 }), [2, 1]);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- var over = _.over({ 'b': 1 }, { 'a': 1 });
- assert.deepEqual(over({ 'a': 1, 'b': 2 }), [false, true]);
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(2);
-
- var over = _.over(['b', 2], [['a', 2]]);
-
- assert.deepEqual(over({ 'a': 1, 'b': 2 }), [true, false]);
- assert.deepEqual(over({ 'a': 2, 'b': 1 }), [false, true]);
- });
-
- QUnit.test('should differentiate between `_.property` and `_.matchesProperty` shorthands', function(assert) {
- assert.expect(4);
-
- var over = _.over(['a', 1]);
-
- assert.deepEqual(over({ 'a': 1, '1': 2 }), [1, 2]);
- assert.deepEqual(over({ 'a': 2, '1': 1 }), [2, 1]);
-
- over = _.over([['a', 1]]);
-
- assert.deepEqual(over({ 'a': 1 }), [true]);
- assert.deepEqual(over({ 'a': 2 }), [false]);
- });
-
- QUnit.test('should provide arguments to predicates', function(assert) {
- assert.expect(1);
-
- var over = _.over(function() {
- return slice.call(arguments);
- });
-
- assert.deepEqual(over('a', 'b', 'c'), [['a', 'b', 'c']]);
- });
-
- QUnit.test('should use `this` binding of function for `iteratees`', function(assert) {
- assert.expect(1);
-
- var over = _.over(function() { return this.b; }, function() { return this.a; }),
- object = { 'over': over, 'a': 1, 'b': 2 };
-
- assert.deepEqual(object.over(), [2, 1]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.overEvery');
-
- (function() {
- QUnit.test('should create a function that returns `true` if all predicates return truthy', function(assert) {
- assert.expect(1);
-
- var over = _.overEvery(stubTrue, stubOne, stubA);
- assert.strictEqual(over(), true);
- });
-
- QUnit.test('should return `false` as soon as a predicate returns falsey', function(assert) {
- assert.expect(2);
-
- var count = 0,
- countFalse = function() { count++; return false; },
- countTrue = function() { count++; return true; },
- over = _.overEvery(countTrue, countFalse, countTrue);
-
- assert.strictEqual(over(), false);
- assert.strictEqual(count, 2);
- });
-
- QUnit.test('should use `_.identity` when a predicate is nullish', function(assert) {
- assert.expect(2);
-
- var over = _.overEvery(undefined, null);
-
- assert.strictEqual(over(true), true);
- assert.strictEqual(over(false), false);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(2);
-
- var over = _.overEvery('b', 'a');
-
- assert.strictEqual(over({ 'a': 1, 'b': 1 }), true);
- assert.strictEqual(over({ 'a': 0, 'b': 1 }), false);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(2);
-
- var over = _.overEvery({ 'b': 2 }, { 'a': 1 });
-
- assert.strictEqual(over({ 'a': 1, 'b': 2 }), true);
- assert.strictEqual(over({ 'a': 0, 'b': 2 }), false);
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(2);
-
- var over = _.overEvery(['b', 2], [['a', 1]]);
-
- assert.strictEqual(over({ 'a': 1, 'b': 2 }), true);
- assert.strictEqual(over({ 'a': 0, 'b': 2 }), false);
- });
-
- QUnit.test('should differentiate between `_.property` and `_.matchesProperty` shorthands', function(assert) {
- assert.expect(5);
-
- var over = _.overEvery(['a', 1]);
-
- assert.strictEqual(over({ 'a': 1, '1': 1 }), true);
- assert.strictEqual(over({ 'a': 1, '1': 0 }), false);
- assert.strictEqual(over({ 'a': 0, '1': 1 }), false);
-
- over = _.overEvery([['a', 1]]);
-
- assert.strictEqual(over({ 'a': 1 }), true);
- assert.strictEqual(over({ 'a': 2 }), false);
- });
-
- QUnit.test('should flatten `predicates`', function(assert) {
- assert.expect(1);
-
- var over = _.overEvery(stubTrue, [stubFalse]);
- assert.strictEqual(over(), false);
- });
-
- QUnit.test('should provide arguments to predicates', function(assert) {
- assert.expect(1);
-
- var args;
-
- var over = _.overEvery(function() {
- args = slice.call(arguments);
- });
-
- over('a', 'b', 'c');
- assert.deepEqual(args, ['a', 'b', 'c']);
- });
-
- QUnit.test('should use `this` binding of function for `predicates`', function(assert) {
- assert.expect(2);
-
- var over = _.overEvery(function() { return this.b; }, function() { return this.a; }),
- object = { 'over': over, 'a': 1, 'b': 2 };
-
- assert.strictEqual(object.over(), true);
-
- object.a = 0;
- assert.strictEqual(object.over(), false);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.overSome');
-
- (function() {
- QUnit.test('should create a function that returns `true` if any predicates return truthy', function(assert) {
- assert.expect(2);
-
- var over = _.overSome(stubFalse, stubOne, stubString);
- assert.strictEqual(over(), true);
-
- over = _.overSome(stubNull, stubA, stubZero);
- assert.strictEqual(over(), true);
- });
-
- QUnit.test('should return `true` as soon as `predicate` returns truthy', function(assert) {
- assert.expect(2);
-
- var count = 0,
- countFalse = function() { count++; return false; },
- countTrue = function() { count++; return true; },
- over = _.overSome(countFalse, countTrue, countFalse);
-
- assert.strictEqual(over(), true);
- assert.strictEqual(count, 2);
- });
-
- QUnit.test('should return `false` if all predicates return falsey', function(assert) {
- assert.expect(2);
-
- var over = _.overSome(stubFalse, stubFalse, stubFalse);
- assert.strictEqual(over(), false);
-
- over = _.overSome(stubNull, stubZero, stubString);
- assert.strictEqual(over(), false);
- });
-
- QUnit.test('should use `_.identity` when a predicate is nullish', function(assert) {
- assert.expect(2);
-
- var over = _.overSome(undefined, null);
-
- assert.strictEqual(over(true), true);
- assert.strictEqual(over(false), false);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(2);
-
- var over = _.overSome('b', 'a');
-
- assert.strictEqual(over({ 'a': 1, 'b': 0 }), true);
- assert.strictEqual(over({ 'a': 0, 'b': 0 }), false);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(2);
-
- var over = _.overSome({ 'b': 2 }, { 'a': 1 });
-
- assert.strictEqual(over({ 'a': 0, 'b': 2 }), true);
- assert.strictEqual(over({ 'a': 0, 'b': 0 }), false);
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(2);
-
- var over = _.overSome(['a', 1], [['b', 2]]);
-
- assert.strictEqual(over({ 'a': 0, 'b': 2 }), true);
- assert.strictEqual(over({ 'a': 0, 'b': 0 }), false);
- });
-
- QUnit.test('should differentiate between `_.property` and `_.matchesProperty` shorthands', function(assert) {
- assert.expect(5);
-
- var over = _.overSome(['a', 1]);
-
- assert.strictEqual(over({ 'a': 0, '1': 0 }), false);
- assert.strictEqual(over({ 'a': 1, '1': 0 }), true);
- assert.strictEqual(over({ 'a': 0, '1': 1 }), true);
-
- over = _.overSome([['a', 1]]);
-
- assert.strictEqual(over({ 'a': 1 }), true);
- assert.strictEqual(over({ 'a': 2 }), false);
- });
-
- QUnit.test('should flatten `predicates`', function(assert) {
- assert.expect(1);
-
- var over = _.overSome(stubFalse, [stubTrue]);
- assert.strictEqual(over(), true);
- });
-
- QUnit.test('should provide arguments to predicates', function(assert) {
- assert.expect(1);
-
- var args;
-
- var over = _.overSome(function() {
- args = slice.call(arguments);
- });
-
- over('a', 'b', 'c');
- assert.deepEqual(args, ['a', 'b', 'c']);
- });
-
- QUnit.test('should use `this` binding of function for `predicates`', function(assert) {
- assert.expect(2);
-
- var over = _.overSome(function() { return this.b; }, function() { return this.a; }),
- object = { 'over': over, 'a': 1, 'b': 2 };
-
- assert.strictEqual(object.over(), true);
-
- object.a = object.b = 0;
- assert.strictEqual(object.over(), false);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.pad');
-
- (function() {
- var string = 'abc';
-
- QUnit.test('should pad a string to a given length', function(assert) {
- assert.expect(1);
-
- var values = [, undefined],
- expected = lodashStable.map(values, lodashStable.constant(' abc '));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.pad(string, 6, value) : _.pad(string, 6);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should truncate pad characters to fit the pad length', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.pad(string, 8), ' abc ');
- assert.strictEqual(_.pad(string, 8, '_-'), '_-abc_-_');
- });
-
- QUnit.test('should coerce `string` to a string', function(assert) {
- assert.expect(1);
-
- var values = [Object(string), { 'toString': lodashStable.constant(string) }],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- return _.pad(value, 6) === ' abc ';
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.padEnd');
-
- (function() {
- var string = 'abc';
-
- QUnit.test('should pad a string to a given length', function(assert) {
- assert.expect(1);
-
- var values = [, undefined],
- expected = lodashStable.map(values, lodashStable.constant('abc '));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.padEnd(string, 6, value) : _.padEnd(string, 6);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should truncate pad characters to fit the pad length', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.padEnd(string, 6, '_-'), 'abc_-_');
- });
-
- QUnit.test('should coerce `string` to a string', function(assert) {
- assert.expect(1);
-
- var values = [Object(string), { 'toString': lodashStable.constant(string) }],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- return _.padEnd(value, 6) === 'abc ';
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.padStart');
-
- (function() {
- var string = 'abc';
-
- QUnit.test('should pad a string to a given length', function(assert) {
- assert.expect(1);
-
- var values = [, undefined],
- expected = lodashStable.map(values, lodashStable.constant(' abc'));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.padStart(string, 6, value) : _.padStart(string, 6);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should truncate pad characters to fit the pad length', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.padStart(string, 6, '_-'), '_-_abc');
- });
-
- QUnit.test('should coerce `string` to a string', function(assert) {
- assert.expect(1);
-
- var values = [Object(string), { 'toString': lodashStable.constant(string) }],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- return _.padStart(value, 6) === ' abc';
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('pad methods');
-
- lodashStable.each(['pad', 'padStart', 'padEnd'], function(methodName) {
- var func = _[methodName],
- isPad = methodName == 'pad',
- isStart = methodName == 'padStart',
- string = 'abc';
-
- QUnit.test('`_.' + methodName + '` should not pad if string is >= `length`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(func(string, 2), string);
- assert.strictEqual(func(string, 3), string);
- });
-
- QUnit.test('`_.' + methodName + '` should treat negative `length` as `0`', function(assert) {
- assert.expect(2);
-
- lodashStable.each([0, -2], function(length) {
- assert.strictEqual(func(string, length), string);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `length` to a number', function(assert) {
- assert.expect(2);
-
- lodashStable.each(['', '4'], function(length) {
- var actual = length ? (isStart ? ' abc' : 'abc ') : string;
- assert.strictEqual(func(string, length), actual);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should treat nullish values as empty strings', function(assert) {
- assert.expect(6);
-
- lodashStable.each([undefined, '_-'], function(chars) {
- var expected = chars ? (isPad ? '__' : chars) : ' ';
- assert.strictEqual(func(null, 2, chars), expected);
- assert.strictEqual(func(undefined, 2, chars), expected);
- assert.strictEqual(func('', 2, chars), expected);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `string` when `chars` coerces to an empty string', function(assert) {
- assert.expect(1);
-
- var values = ['', Object('')],
- expected = lodashStable.map(values, lodashStable.constant(string));
-
- var actual = lodashStable.map(values, function(value) {
- return _.pad(string, 6, value);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.parseInt');
-
- (function() {
- QUnit.test('should accept a `radix` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.range(2, 37);
-
- var actual = lodashStable.map(expected, function(radix) {
- return _.parseInt('10', radix);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should use a radix of `10`, for non-hexadecimals, if `radix` is `undefined` or `0`', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.parseInt('10'), 10);
- assert.strictEqual(_.parseInt('10', 0), 10);
- assert.strictEqual(_.parseInt('10', 10), 10);
- assert.strictEqual(_.parseInt('10', undefined), 10);
- });
-
- QUnit.test('should use a radix of `16`, for hexadecimals, if `radix` is `undefined` or `0`', function(assert) {
- assert.expect(8);
-
- lodashStable.each(['0x20', '0X20'], function(string) {
- assert.strictEqual(_.parseInt(string), 32);
- assert.strictEqual(_.parseInt(string, 0), 32);
- assert.strictEqual(_.parseInt(string, 16), 32);
- assert.strictEqual(_.parseInt(string, undefined), 32);
- });
- });
-
- QUnit.test('should use a radix of `10` for string with leading zeros', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.parseInt('08'), 8);
- assert.strictEqual(_.parseInt('08', 10), 8);
- });
-
- QUnit.test('should parse strings with leading whitespace (test in Chrome and Firefox)', function(assert) {
- assert.expect(2);
-
- var expected = [8, 8, 10, 10, 32, 32, 32, 32];
-
- lodashStable.times(2, function(index) {
- var actual = [],
- func = (index ? (lodashBizarro || {}) : _).parseInt;
-
- if (func) {
- lodashStable.times(2, function(otherIndex) {
- var string = otherIndex ? '10' : '08';
- actual.push(
- func(whitespace + string, 10),
- func(whitespace + string)
- );
- });
-
- lodashStable.each(['0x20', '0X20'], function(string) {
- actual.push(
- func(whitespace + string),
- func(whitespace + string, 16)
- );
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- QUnit.test('should coerce `radix` to a number', function(assert) {
- assert.expect(2);
-
- var object = { 'valueOf': stubZero };
- assert.strictEqual(_.parseInt('08', object), 8);
- assert.strictEqual(_.parseInt('0x20', object), 32);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(2);
-
- var strings = lodashStable.map(['6', '08', '10'], Object),
- actual = lodashStable.map(strings, _.parseInt);
-
- assert.deepEqual(actual, [6, 8, 10]);
-
- actual = lodashStable.map('123', _.parseInt);
- assert.deepEqual(actual, [1, 2, 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('partial methods');
-
- lodashStable.each(['partial', 'partialRight'], function(methodName) {
- var func = _[methodName],
- isPartial = methodName == 'partial',
- ph = func.placeholder;
-
- QUnit.test('`_.' + methodName + '` partially applies arguments', function(assert) {
- assert.expect(1);
-
- var par = func(identity, 'a');
- assert.strictEqual(par(), 'a');
- });
-
- QUnit.test('`_.' + methodName + '` creates a function that can be invoked with additional arguments', function(assert) {
- assert.expect(1);
-
- var fn = function(a, b) { return [a, b]; },
- par = func(fn, 'a'),
- expected = isPartial ? ['a', 'b'] : ['b', 'a'];
-
- assert.deepEqual(par('b'), expected);
- });
-
- QUnit.test('`_.' + methodName + '` works when there are no partially applied arguments and the created function is invoked without additional arguments', function(assert) {
- assert.expect(1);
-
- var fn = function() { return arguments.length; },
- par = func(fn);
-
- assert.strictEqual(par(), 0);
- });
-
- QUnit.test('`_.' + methodName + '` works when there are no partially applied arguments and the created function is invoked with additional arguments', function(assert) {
- assert.expect(1);
-
- var par = func(identity);
- assert.strictEqual(par('a'), 'a');
- });
-
- QUnit.test('`_.' + methodName + '` should support placeholders', function(assert) {
- assert.expect(4);
-
- var fn = function() { return slice.call(arguments); },
- par = func(fn, ph, 'b', ph);
-
- assert.deepEqual(par('a', 'c'), ['a', 'b', 'c']);
- assert.deepEqual(par('a'), ['a', 'b', undefined]);
- assert.deepEqual(par(), [undefined, 'b', undefined]);
-
- if (isPartial) {
- assert.deepEqual(par('a', 'c', 'd'), ['a', 'b', 'c', 'd']);
- } else {
- par = func(fn, ph, 'c', ph);
- assert.deepEqual(par('a', 'b', 'd'), ['a', 'b', 'c', 'd']);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should use `_.placeholder` when set', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var _ph = _.placeholder = {},
- fn = function() { return slice.call(arguments); },
- par = func(fn, _ph, 'b', ph),
- expected = isPartial ? ['a', 'b', ph, 'c'] : ['a', 'c', 'b', ph];
-
- assert.deepEqual(par('a', 'c'), expected);
- delete _.placeholder;
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` creates a function with a `length` of `0`', function(assert) {
- assert.expect(1);
-
- var fn = function(a, b, c) {},
- par = func(fn, 'a');
-
- assert.strictEqual(par.length, 0);
- });
-
- QUnit.test('`_.' + methodName + '` should ensure `new par` is an instance of `func`', function(assert) {
- assert.expect(2);
-
- function Foo(value) {
- return value && object;
- }
-
- var object = {},
- par = func(Foo);
-
- assert.ok(new par instanceof Foo);
- assert.strictEqual(new par(true), object);
- });
-
- QUnit.test('`_.' + methodName + '` should clone metadata for created functions', function(assert) {
- assert.expect(3);
-
- function greet(greeting, name) {
- return greeting + ' ' + name;
- }
-
- var par1 = func(greet, 'hi'),
- par2 = func(par1, 'barney'),
- par3 = func(par1, 'pebbles');
-
- assert.strictEqual(par1('fred'), isPartial ? 'hi fred' : 'fred hi');
- assert.strictEqual(par2(), isPartial ? 'hi barney' : 'barney hi');
- assert.strictEqual(par3(), isPartial ? 'hi pebbles' : 'pebbles hi');
- });
-
- QUnit.test('`_.' + methodName + '` should work with curried functions', function(assert) {
- assert.expect(2);
-
- var fn = function(a, b, c) { return a + b + c; },
- curried = _.curry(func(fn, 1), 2);
-
- assert.strictEqual(curried(2, 3), 6);
- assert.strictEqual(curried(2)(3), 6);
- });
-
- QUnit.test('should work with placeholders and curried functions', function(assert) {
- assert.expect(1);
-
- var fn = function() { return slice.call(arguments); },
- curried = _.curry(fn),
- par = func(curried, ph, 'b', ph, 'd');
-
- assert.deepEqual(par('a', 'c'), ['a', 'b', 'c', 'd']);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.partialRight');
-
- (function() {
- QUnit.test('should work as a deep `_.defaults`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': { 'b': 2 } },
- source = { 'a': { 'b': 3, 'c': 3 } },
- expected = { 'a': { 'b': 2, 'c': 3 } };
-
- var defaultsDeep = _.partialRight(_.mergeWith, function deep(value, other) {
- return lodashStable.isObject(value) ? _.mergeWith(value, other, deep) : value;
- });
-
- assert.deepEqual(defaultsDeep(object, source), expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('methods using `createWrapper`');
-
- (function() {
- function fn() {
- return slice.call(arguments);
- }
-
- var ph1 = _.bind.placeholder,
- ph2 = _.bindKey.placeholder,
- ph3 = _.partial.placeholder,
- ph4 = _.partialRight.placeholder;
-
- QUnit.test('should work with combinations of partial functions', function(assert) {
- assert.expect(1);
-
- var a = _.partial(fn),
- b = _.partialRight(a, 3),
- c = _.partial(b, 1);
-
- assert.deepEqual(c(2), [1, 2, 3]);
- });
-
- QUnit.test('should work with combinations of bound and partial functions', function(assert) {
- assert.expect(3);
-
- var fn = function() {
- var result = [this.a];
- push.apply(result, arguments);
- return result;
- };
-
- var expected = [1, 2, 3, 4],
- object = { 'a': 1, 'fn': fn };
-
- var a = _.bindKey(object, 'fn'),
- b = _.partialRight(a, 4),
- c = _.partial(b, 2);
-
- assert.deepEqual(c(3), expected);
-
- a = _.bind(fn, object);
- b = _.partialRight(a, 4);
- c = _.partial(b, 2);
-
- assert.deepEqual(c(3), expected);
-
- a = _.partial(fn, 2);
- b = _.bind(a, object);
- c = _.partialRight(b, 4);
-
- assert.deepEqual(c(3), expected);
- });
-
- QUnit.test('should ensure `new combo` is an instance of `func`', function(assert) {
- assert.expect(2);
-
- function Foo(a, b, c) {
- return b === 0 && object;
- }
-
- var combo = _.partial(_.partialRight(Foo, 3), 1),
- object = {};
-
- assert.ok(new combo(2) instanceof Foo);
- assert.strictEqual(new combo(0), object);
- });
-
- QUnit.test('should work with combinations of functions with placeholders', function(assert) {
- assert.expect(3);
-
- var expected = [1, 2, 3, 4, 5, 6],
- object = { 'fn': fn };
-
- var a = _.bindKey(object, 'fn', ph2, 2),
- b = _.partialRight(a, ph4, 6),
- c = _.partial(b, 1, ph3, 4);
-
- assert.deepEqual(c(3, 5), expected);
-
- a = _.bind(fn, object, ph1, 2);
- b = _.partialRight(a, ph4, 6);
- c = _.partial(b, 1, ph3, 4);
-
- assert.deepEqual(c(3, 5), expected);
-
- a = _.partial(fn, ph3, 2);
- b = _.bind(a, object, 1, ph1, 4);
- c = _.partialRight(b, ph4, 6);
-
- assert.deepEqual(c(3, 5), expected);
- });
-
- QUnit.test('should work with combinations of functions with overlapping placeholders', function(assert) {
- assert.expect(3);
-
- var expected = [1, 2, 3, 4],
- object = { 'fn': fn };
-
- var a = _.bindKey(object, 'fn', ph2, 2),
- b = _.partialRight(a, ph4, 4),
- c = _.partial(b, ph3, 3);
-
- assert.deepEqual(c(1), expected);
-
- a = _.bind(fn, object, ph1, 2);
- b = _.partialRight(a, ph4, 4);
- c = _.partial(b, ph3, 3);
-
- assert.deepEqual(c(1), expected);
-
- a = _.partial(fn, ph3, 2);
- b = _.bind(a, object, ph1, 3);
- c = _.partialRight(b, ph4, 4);
-
- assert.deepEqual(c(1), expected);
- });
-
- QUnit.test('should work with recursively bound functions', function(assert) {
- assert.expect(1);
-
- var fn = function() {
- return this.a;
- };
-
- var a = _.bind(fn, { 'a': 1 }),
- b = _.bind(a, { 'a': 2 }),
- c = _.bind(b, { 'a': 3 });
-
- assert.strictEqual(c(), 1);
- });
-
- QUnit.test('should work when hot', function(assert) {
- assert.expect(12);
-
- lodashStable.times(2, function(index) {
- var fn = function() {
- var result = [this];
- push.apply(result, arguments);
- return result;
- };
-
- var object = {},
- bound1 = index ? _.bind(fn, object, 1) : _.bind(fn, object),
- expected = [object, 1, 2, 3];
-
- var actual = _.last(lodashStable.times(HOT_COUNT, function() {
- var bound2 = index ? _.bind(bound1, null, 2) : _.bind(bound1);
- return index ? bound2(3) : bound2(1, 2, 3);
- }));
-
- assert.deepEqual(actual, expected);
-
- actual = _.last(lodashStable.times(HOT_COUNT, function() {
- var bound1 = index ? _.bind(fn, object, 1) : _.bind(fn, object),
- bound2 = index ? _.bind(bound1, null, 2) : _.bind(bound1);
-
- return index ? bound2(3) : bound2(1, 2, 3);
- }));
-
- assert.deepEqual(actual, expected);
- });
-
- lodashStable.each(['curry', 'curryRight'], function(methodName, index) {
- var fn = function(a, b, c) { return [a, b, c]; },
- curried = _[methodName](fn),
- expected = index ? [3, 2, 1] : [1, 2, 3];
-
- var actual = _.last(lodashStable.times(HOT_COUNT, function() {
- return curried(1)(2)(3);
- }));
-
- assert.deepEqual(actual, expected);
-
- actual = _.last(lodashStable.times(HOT_COUNT, function() {
- var curried = _[methodName](fn);
- return curried(1)(2)(3);
- }));
-
- assert.deepEqual(actual, expected);
- });
-
- lodashStable.each(['partial', 'partialRight'], function(methodName, index) {
- var func = _[methodName],
- fn = function() { return slice.call(arguments); },
- par1 = func(fn, 1),
- expected = index ? [3, 2, 1] : [1, 2, 3];
-
- var actual = _.last(lodashStable.times(HOT_COUNT, function() {
- var par2 = func(par1, 2);
- return par2(3);
- }));
-
- assert.deepEqual(actual, expected);
-
- actual = _.last(lodashStable.times(HOT_COUNT, function() {
- var par1 = func(fn, 1),
- par2 = func(par1, 2);
-
- return par2(3);
- }));
-
- assert.deepEqual(actual, expected);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.partition');
-
- (function() {
- var array = [1, 0, 1];
-
- QUnit.test('should split elements into two groups by `predicate`', function(assert) {
- assert.expect(3);
-
- assert.deepEqual(_.partition([], identity), [[], []]);
- assert.deepEqual(_.partition(array, stubTrue), [array, []]);
- assert.deepEqual(_.partition(array, stubFalse), [[], array]);
- });
-
- QUnit.test('should use `_.identity` when `predicate` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant([[1, 1], [0]]));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.partition(array, value) : _.partition(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': 1 }, { 'a': 1 }, { 'b': 2 }],
- actual = _.partition(objects, 'a');
-
- assert.deepEqual(actual, [objects.slice(0, 2), objects.slice(2)]);
- });
-
- QUnit.test('should work with a number for `predicate`', function(assert) {
- assert.expect(2);
-
- var array = [
- [1, 0],
- [0, 1],
- [1, 0]
- ];
-
- assert.deepEqual(_.partition(array, 0), [[array[0], array[2]], [array[1]]]);
- assert.deepEqual(_.partition(array, 1), [[array[1]], [array[0], array[2]]]);
- });
-
- QUnit.test('should work with an object for `collection`', function(assert) {
- assert.expect(1);
-
- var actual = _.partition({ 'a': 1.1, 'b': 0.2, 'c': 1.3 }, Math.floor);
- assert.deepEqual(actual, [[1.1, 1.3], [0.2]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.pick');
-
- (function() {
- var args = arguments,
- object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 };
-
- QUnit.test('should flatten `props`', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(_.pick(object, 'a', 'c'), { 'a': 1, 'c': 3 });
- assert.deepEqual(_.pick(object, ['a', 'd'], 'c'), { 'a': 1, 'c': 3, 'd': 4 });
- });
-
- QUnit.test('should work with a primitive `object` argument', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.pick('', 'slice'), { 'slice': ''.slice });
- });
-
- QUnit.test('should return an empty object when `object` is nullish', function(assert) {
- assert.expect(2);
-
- lodashStable.each([null, undefined], function(value) {
- assert.deepEqual(_.pick(value, 'valueOf'), {});
- });
- });
-
- QUnit.test('should work with `arguments` objects as secondary arguments', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.pick(object, args), { 'a': 1, 'c': 3 });
- });
-
- QUnit.test('should coerce property names to strings', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.pick({ '0': 'a', '1': 'b' }, 0), { '0': 'a' });
- });
- }('a', 'c'));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.pickBy');
-
- (function() {
- QUnit.test('should work with a predicate argument', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 };
-
- var actual = _.pickBy(object, function(n) {
- return n == 1 || n == 3;
- });
-
- assert.deepEqual(actual, { 'a': 1, 'c': 3 });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('pick methods');
-
- lodashStable.each(['pick', 'pickBy'], function(methodName) {
- var expected = { 'a': 1, 'c': 3 },
- func = _[methodName],
- object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 },
- resolve = lodashStable.nthArg(1);
-
- if (methodName == 'pickBy') {
- resolve = function(object, props) {
- props = lodashStable.castArray(props);
- return function(value) {
- return lodashStable.some(props, function(key) {
- key = lodashStable.isSymbol(key) ? key : lodashStable.toString(key);
- return object[key] === value;
- });
- };
- };
- }
- QUnit.test('`_.' + methodName + '` should create an object of picked string keyed properties', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(func(object, resolve(object, 'a')), { 'a': 1 });
- assert.deepEqual(func(object, resolve(object, ['a', 'c'])), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should pick inherited string keyed properties', function(assert) {
- assert.expect(1);
-
- function Foo() {}
- Foo.prototype = object;
-
- var foo = new Foo;
- assert.deepEqual(func(foo, resolve(foo, ['a', 'c'])), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var object = { '-0': 'a', '0': 'b' },
- props = [-0, Object(-0), 0, Object(0)],
- expected = [{ '-0': 'a' }, { '-0': 'a' }, { '0': 'b' }, { '0': 'b' }];
-
- var actual = lodashStable.map(props, function(key) {
- return func(object, resolve(object, key));
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should pick symbol properties', function(assert) {
- assert.expect(2);
-
- function Foo() {
- this[symbol] = 1;
- }
-
- if (Symbol) {
- var symbol2 = Symbol('b');
- Foo.prototype[symbol2] = 2;
-
- var foo = new Foo,
- actual = func(foo, resolve(foo, [symbol, symbol2]));
-
- assert.strictEqual(actual[symbol], 1);
- assert.strictEqual(actual[symbol2], 2);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should work with an array `object` argument', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- assert.deepEqual(func(array, resolve(array, '1')), { '1': 2 });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.property');
-
- (function() {
- QUnit.test('should create a function that plucks a property value of a given object', function(assert) {
- assert.expect(4);
-
- var object = { 'a': 1 };
-
- lodashStable.each(['a', ['a']], function(path) {
- var prop = _.property(path);
- assert.strictEqual(prop.length, 1);
- assert.strictEqual(prop(object), 1);
- });
- });
-
- QUnit.test('should pluck deep property values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2 } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var prop = _.property(path);
- assert.strictEqual(prop(object), 2);
- });
- });
-
- QUnit.test('should pluck inherited property values', function(assert) {
- assert.expect(2);
-
- function Foo() {}
- Foo.prototype.a = 1;
-
- lodashStable.each(['a', ['a']], function(path) {
- var prop = _.property(path);
- assert.strictEqual(prop(new Foo), 1);
- });
- });
-
- QUnit.test('should work with a non-string `path`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3];
-
- lodashStable.each([1, [1]], function(path) {
- var prop = _.property(path);
- assert.strictEqual(prop(array), 2);
- });
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var object = { '-0': 'a', '0': 'b' },
- props = [-0, Object(-0), 0, Object(0)];
-
- var actual = lodashStable.map(props, function(key) {
- var prop = _.property(key);
- return prop(object);
- });
-
- assert.deepEqual(actual, ['a', 'a', 'b', 'b']);
- });
-
- QUnit.test('should coerce key to a string', function(assert) {
- assert.expect(1);
-
- function fn() {}
- fn.toString = lodashStable.constant('fn');
-
- var objects = [{ 'null': 1 }, { 'undefined': 2 }, { 'fn': 3 }, { '[object Object]': 4 }],
- values = [null, undefined, fn, {}];
-
- var actual = lodashStable.transform(objects, function(result, object, index) {
- var key = values[index];
- lodashStable.each([key, [key]], function(path) {
- var prop = _.property(key);
- result.push(prop(object));
- });
- });
-
- assert.deepEqual(actual, [1, 1, 2, 2, 3, 3, 4, 4]);
- });
-
- QUnit.test('should pluck a key over a path', function(assert) {
- assert.expect(2);
-
- var object = { 'a.b': 1, 'a': { 'b': 2 } };
-
- lodashStable.each(['a.b', ['a.b']], function(path) {
- var prop = _.property(path);
- assert.strictEqual(prop(object), 1);
- });
- });
-
- QUnit.test('should return `undefined` when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, noop);
-
- lodashStable.each(['constructor', ['constructor']], function(path) {
- var prop = _.property(path);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? prop(value) : prop();
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `undefined` with deep paths when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, noop);
-
- lodashStable.each(['constructor.prototype.valueOf', ['constructor', 'prototype', 'valueOf']], function(path) {
- var prop = _.property(path);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? prop(value) : prop();
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `undefined` if parts of `path` are missing', function(assert) {
- assert.expect(4);
-
- var object = {};
-
- lodashStable.each(['a', 'a[1].b.c', ['a'], ['a', '1', 'b', 'c']], function(path) {
- var prop = _.property(path);
- assert.strictEqual(prop(object), undefined);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.propertyOf');
-
- (function() {
- QUnit.test('should create a function that plucks a property value of a given key', function(assert) {
- assert.expect(3);
-
- var object = { 'a': 1 },
- propOf = _.propertyOf(object);
-
- assert.strictEqual(propOf.length, 1);
- lodashStable.each(['a', ['a']], function(path) {
- assert.strictEqual(propOf(path), 1);
- });
- });
-
- QUnit.test('should pluck deep property values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2 } },
- propOf = _.propertyOf(object);
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.strictEqual(propOf(path), 2);
- });
- });
-
- QUnit.test('should pluck inherited property values', function(assert) {
- assert.expect(2);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var propOf = _.propertyOf(new Foo);
-
- lodashStable.each(['b', ['b']], function(path) {
- assert.strictEqual(propOf(path), 2);
- });
- });
-
- QUnit.test('should work with a non-string `path`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- propOf = _.propertyOf(array);
-
- lodashStable.each([1, [1]], function(path) {
- assert.strictEqual(propOf(path), 2);
- });
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var object = { '-0': 'a', '0': 'b' },
- props = [-0, Object(-0), 0, Object(0)];
-
- var actual = lodashStable.map(props, function(key) {
- var propOf = _.propertyOf(object);
- return propOf(key);
- });
-
- assert.deepEqual(actual, ['a', 'a', 'b', 'b']);
- });
-
- QUnit.test('should coerce key to a string', function(assert) {
- assert.expect(1);
-
- function fn() {}
- fn.toString = lodashStable.constant('fn');
-
- var objects = [{ 'null': 1 }, { 'undefined': 2 }, { 'fn': 3 }, { '[object Object]': 4 }],
- values = [null, undefined, fn, {}];
-
- var actual = lodashStable.transform(objects, function(result, object, index) {
- var key = values[index];
- lodashStable.each([key, [key]], function(path) {
- var propOf = _.propertyOf(object);
- result.push(propOf(key));
- });
- });
-
- assert.deepEqual(actual, [1, 1, 2, 2, 3, 3, 4, 4]);
- });
-
- QUnit.test('should pluck a key over a path', function(assert) {
- assert.expect(2);
-
- var object = { 'a.b': 1, 'a': { 'b': 2 } },
- propOf = _.propertyOf(object);
-
- lodashStable.each(['a.b', ['a.b']], function(path) {
- assert.strictEqual(propOf(path), 1);
- });
- });
-
- QUnit.test('should return `undefined` when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, noop);
-
- lodashStable.each(['constructor', ['constructor']], function(path) {
- var actual = lodashStable.map(values, function(value, index) {
- var propOf = index ? _.propertyOf(value) : _.propertyOf();
- return propOf(path);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `undefined` with deep paths when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, noop);
-
- lodashStable.each(['constructor.prototype.valueOf', ['constructor', 'prototype', 'valueOf']], function(path) {
- var actual = lodashStable.map(values, function(value, index) {
- var propOf = index ? _.propertyOf(value) : _.propertyOf();
- return propOf(path);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should return `undefined` if parts of `path` are missing', function(assert) {
- assert.expect(4);
-
- var propOf = _.propertyOf({});
-
- lodashStable.each(['a', 'a[1].b.c', ['a'], ['a', '1', 'b', 'c']], function(path) {
- assert.strictEqual(propOf(path), undefined);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.pullAll');
-
- (function() {
- QUnit.test('should work with the same value for `array` and `values`', function(assert) {
- assert.expect(1);
-
- var array = [{ 'a': 1 }, { 'b': 2 }],
- actual = _.pullAll(array, array);
-
- assert.deepEqual(actual, []);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.pullAllBy');
-
- (function() {
- QUnit.test('should accept an `iteratee` argument', function(assert) {
- assert.expect(1);
-
- var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
-
- var actual = _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], function(object) {
- return object.x;
- });
-
- assert.deepEqual(actual, [{ 'x': 2 }]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args,
- array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
-
- _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [{ 'x': 1 }]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.pullAllWith');
-
- (function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'x': 1, 'y': 1 }, { 'x': 2, 'y': 2 }, { 'x': 3, 'y': 3 }],
- expected = [objects[0], objects[2]],
- actual = _.pullAllWith(objects, [{ 'x': 2, 'y': 2 }], lodashStable.isEqual);
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('pull methods');
-
- lodashStable.each(['pull', 'pullAll', 'pullAllWith'], function(methodName) {
- var func = _[methodName],
- isPull = methodName == 'pull';
-
- function pull(array, values) {
- return isPull
- ? func.apply(undefined, [array].concat(values))
- : func(array, values);
- }
-
- QUnit.test('`_.' + methodName + '` should modify and return the array', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = pull(array, [1, 3]);
-
- assert.strictEqual(actual, array);
- assert.deepEqual(array, [2]);
- });
-
- QUnit.test('`_.' + methodName + '` should preserve holes in arrays', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 4];
- delete array[1];
- delete array[3];
-
- pull(array, [1]);
- assert.notOk('0' in array);
- assert.notOk('2' in array);
- });
-
- QUnit.test('`_.' + methodName + '` should treat holes as `undefined`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- delete array[1];
-
- pull(array, [undefined]);
- assert.deepEqual(array, [1, 3]);
- });
-
- QUnit.test('`_.' + methodName + '` should match `NaN`', function(assert) {
- assert.expect(1);
-
- var array = [1, NaN, 3, NaN];
-
- pull(array, [NaN]);
- assert.deepEqual(array, [1, 3]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.pullAt');
-
- (function() {
- QUnit.test('should modify the array and return removed elements', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = _.pullAt(array, [0, 1]);
-
- assert.deepEqual(array, [3]);
- assert.deepEqual(actual, [1, 2]);
- });
-
- QUnit.test('should work with unsorted indexes', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
- actual = _.pullAt(array, [1, 3, 11, 7, 5, 9]);
-
- assert.deepEqual(array, [1, 3, 5, 7, 9, 11]);
- assert.deepEqual(actual, [2, 4, 12, 8, 6, 10]);
- });
-
- QUnit.test('should work with repeated indexes', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 4],
- actual = _.pullAt(array, [0, 2, 0, 1, 0, 2]);
-
- assert.deepEqual(array, [4]);
- assert.deepEqual(actual, [1, 3, 1, 2, 1, 3]);
- });
-
- QUnit.test('should use `undefined` for nonexistent indexes', function(assert) {
- assert.expect(2);
-
- var array = ['a', 'b', 'c'],
- actual = _.pullAt(array, [2, 4, 0]);
-
- assert.deepEqual(array, ['b']);
- assert.deepEqual(actual, ['c', undefined, 'a']);
- });
-
- QUnit.test('should flatten `indexes`', function(assert) {
- assert.expect(4);
-
- var array = ['a', 'b', 'c'];
- assert.deepEqual(_.pullAt(array, 2, 0), ['c', 'a']);
- assert.deepEqual(array, ['b']);
-
- array = ['a', 'b', 'c', 'd'];
- assert.deepEqual(_.pullAt(array, [3, 0], 2), ['d', 'a', 'c']);
- assert.deepEqual(array, ['b']);
- });
-
- QUnit.test('should return an empty array when no indexes are given', function(assert) {
- assert.expect(4);
-
- var array = ['a', 'b', 'c'],
- actual = _.pullAt(array);
-
- assert.deepEqual(array, ['a', 'b', 'c']);
- assert.deepEqual(actual, []);
-
- actual = _.pullAt(array, [], []);
-
- assert.deepEqual(array, ['a', 'b', 'c']);
- assert.deepEqual(actual, []);
- });
-
- QUnit.test('should work with non-index paths', function(assert) {
- assert.expect(2);
-
- var values = lodashStable.reject(empties, function(value) {
- return (value === 0) || lodashStable.isArray(value);
- }).concat(-1, 1.1);
-
- var array = lodashStable.transform(values, function(result, value) {
- result[value] = 1;
- }, []);
-
- var expected = lodashStable.map(values, stubOne),
- actual = _.pullAt(array, values);
-
- assert.deepEqual(actual, expected);
-
- expected = lodashStable.map(values, noop),
- actual = lodashStable.at(array, values);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var props = [-0, Object(-0), 0, Object(0)];
-
- var actual = lodashStable.map(props, function(key) {
- var array = [-1];
- array['-0'] = -2;
- return _.pullAt(array, key);
- });
-
- assert.deepEqual(actual, [[-2], [-2], [-1], [-1]]);
- });
-
- QUnit.test('should work with deep paths', function(assert) {
- assert.expect(3);
-
- var array = [];
- array.a = { 'b': 2 };
-
- var actual = _.pullAt(array, 'a.b');
-
- assert.deepEqual(actual, [2]);
- assert.deepEqual(array.a, {});
-
- try {
- actual = _.pullAt(array, 'a.b.c');
- } catch (e) {}
-
- assert.deepEqual(actual, [undefined]);
- });
-
- QUnit.test('should work with a falsey `array` argument when keys are given', function(assert) {
- assert.expect(1);
-
- var values = falsey.slice(),
- expected = lodashStable.map(values, lodashStable.constant(Array(4)));
-
- var actual = lodashStable.map(values, function(array) {
- try {
- return _.pullAt(array, 0, 1, 'pop', 'push');
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.random');
-
- (function() {
- var array = Array(1000);
-
- QUnit.test('should return `0` or `1` when no arguments are given', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.uniq(lodashStable.map(array, function() {
- return _.random();
- })).sort();
-
- assert.deepEqual(actual, [0, 1]);
- });
-
- QUnit.test('should support a `min` and `max` argument', function(assert) {
- assert.expect(1);
-
- var min = 5,
- max = 10;
-
- assert.ok(lodashStable.some(array, function() {
- var result = _.random(min, max);
- return result >= min && result <= max;
- }));
- });
-
- QUnit.test('should support not providing a `max` argument', function(assert) {
- assert.expect(1);
-
- var min = 0,
- max = 5;
-
- assert.ok(lodashStable.some(array, function() {
- var result = _.random(max);
- return result >= min && result <= max;
- }));
- });
-
- QUnit.test('should swap `min` and `max` when `min` > `max`', function(assert) {
- assert.expect(1);
-
- var min = 4,
- max = 2,
- expected = [2, 3, 4];
-
- var actual = lodashStable.uniq(lodashStable.map(array, function() {
- return _.random(min, max);
- })).sort();
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should support large integer values', function(assert) {
- assert.expect(2);
-
- var min = Math.pow(2, 31),
- max = Math.pow(2, 62);
-
- assert.ok(lodashStable.every(array, function() {
- var result = _.random(min, max);
- return result >= min && result <= max;
- }));
-
- assert.ok(lodashStable.some(array, function() {
- return _.random(MAX_INTEGER);
- }));
- });
-
- QUnit.test('should coerce arguments to finite numbers', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.random('1', '1'), 1);
- assert.strictEqual(_.random(NaN, NaN), 0);
- });
-
- QUnit.test('should support floats', function(assert) {
- assert.expect(2);
-
- var min = 1.5,
- max = 1.6,
- actual = _.random(min, max);
-
- assert.ok(actual % 1);
- assert.ok(actual >= min && actual <= max);
- });
-
- QUnit.test('should support providing a `floating` argument', function(assert) {
- assert.expect(3);
-
- var actual = _.random(true);
- assert.ok(actual % 1 && actual >= 0 && actual <= 1);
-
- actual = _.random(2, true);
- assert.ok(actual % 1 && actual >= 0 && actual <= 2);
-
- actual = _.random(2, 4, true);
- assert.ok(actual % 1 && actual >= 2 && actual <= 4);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3],
- expected = lodashStable.map(array, stubTrue),
- randoms = lodashStable.map(array, _.random);
-
- var actual = lodashStable.map(randoms, function(result, index) {
- return result >= 0 && result <= array[index] && (result % 1) == 0;
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('range methods');
-
- lodashStable.each(['range', 'rangeRight'], function(methodName) {
- var func = _[methodName],
- isRange = methodName == 'range';
-
- function resolve(range) {
- return isRange ? range : range.reverse();
- }
-
- QUnit.test('`_.' + methodName + '` should infer the sign of `step` when only `end` is given', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(func(4), resolve([0, 1, 2, 3]));
- assert.deepEqual(func(-4), resolve([0, -1, -2, -3]));
- });
-
- QUnit.test('`_.' + methodName + '` should infer the sign of `step` when only `start` and `end` are given', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(func(1, 5), resolve([1, 2, 3, 4]));
- assert.deepEqual(func(5, 1), resolve([5, 4, 3, 2]));
- });
-
- QUnit.test('`_.' + methodName + '` should work with `start`, `end`, and `step` arguments', function(assert) {
- assert.expect(3);
-
- assert.deepEqual(func(0, -4, -1), resolve([0, -1, -2, -3]));
- assert.deepEqual(func(5, 1, -1), resolve([5, 4, 3, 2]));
- assert.deepEqual(func(0, 20, 5), resolve([0, 5, 10, 15]));
- });
-
- QUnit.test('`_.' + methodName + '` should support a `step` of `0`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func(1, 4, 0), [1, 1, 1]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a `step` larger than `end`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func(1, 5, 20), [1]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a negative `step`', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(func(0, -4, -1), resolve([0, -1, -2, -3]));
- assert.deepEqual(func(21, 10, -3), resolve([21, 18, 15, 12]));
- });
-
- QUnit.test('`_.' + methodName + '` should support `start` of `-0`', function(assert) {
- assert.expect(1);
-
- var actual = func(-0, 1);
- assert.strictEqual(1 / actual[0], -Infinity);
- });
-
- QUnit.test('`_.' + methodName + '` should treat falsey `start` arguments as `0`', function(assert) {
- assert.expect(13);
-
- lodashStable.each(falsey, function(value, index) {
- if (index) {
- assert.deepEqual(func(value), []);
- assert.deepEqual(func(value, 1), [0]);
- } else {
- assert.deepEqual(func(), []);
- }
- });
- });
-
- QUnit.test('`_.' + methodName + '` should coerce arguments to finite numbers', function(assert) {
- assert.expect(1);
-
- var actual = [func('0', 1), func('1'), func(0, 1, '1'), func(NaN), func(NaN, NaN)];
- assert.deepEqual(actual, [[0], [0], [0], [], []]);
- });
-
- QUnit.test('`_.' + methodName + '` should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- object = { 'a': 1, 'b': 2, 'c': 3 },
- expected = lodashStable.map([[0], [0, 1], [0, 1, 2]], resolve);
-
- lodashStable.each([array, object], function(collection) {
- var actual = lodashStable.map(collection, func);
- assert.deepEqual(actual, expected);
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.rearg');
-
- (function() {
- function fn() {
- return slice.call(arguments);
- }
-
- QUnit.test('should reorder arguments provided to `func`', function(assert) {
- assert.expect(1);
-
- var rearged = _.rearg(fn, [2, 0, 1]);
- assert.deepEqual(rearged('b', 'c', 'a'), ['a', 'b', 'c']);
- });
-
- QUnit.test('should work with repeated indexes', function(assert) {
- assert.expect(1);
-
- var rearged = _.rearg(fn, [1, 1, 1]);
- assert.deepEqual(rearged('c', 'a', 'b'), ['a', 'a', 'a']);
- });
-
- QUnit.test('should use `undefined` for nonexistent indexes', function(assert) {
- assert.expect(1);
-
- var rearged = _.rearg(fn, [1, 4]);
- assert.deepEqual(rearged('b', 'a', 'c'), ['a', undefined, 'c']);
- });
-
- QUnit.test('should use `undefined` for non-index values', function(assert) {
- assert.expect(1);
-
- var values = lodashStable.reject(empties, function(value) {
- return (value === 0) || lodashStable.isArray(value);
- }).concat(-1, 1.1);
-
- var expected = lodashStable.map(values, lodashStable.constant([undefined, 'b', 'c']));
-
- var actual = lodashStable.map(values, function(value) {
- var rearged = _.rearg(fn, [value]);
- return rearged('a', 'b', 'c');
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not rearrange arguments when no indexes are given', function(assert) {
- assert.expect(2);
-
- var rearged = _.rearg(fn);
- assert.deepEqual(rearged('a', 'b', 'c'), ['a', 'b', 'c']);
-
- rearged = _.rearg(fn, [], []);
- assert.deepEqual(rearged('a', 'b', 'c'), ['a', 'b', 'c']);
- });
-
- QUnit.test('should accept multiple index arguments', function(assert) {
- assert.expect(1);
-
- var rearged = _.rearg(fn, 2, 0, 1);
- assert.deepEqual(rearged('b', 'c', 'a'), ['a', 'b', 'c']);
- });
-
- QUnit.test('should accept multiple arrays of indexes', function(assert) {
- assert.expect(1);
-
- var rearged = _.rearg(fn, [2], [0, 1]);
- assert.deepEqual(rearged('b', 'c', 'a'), ['a', 'b', 'c']);
- });
-
- QUnit.test('should work with fewer indexes than arguments', function(assert) {
- assert.expect(1);
-
- var rearged = _.rearg(fn, [1, 0]);
- assert.deepEqual(rearged('b', 'a', 'c'), ['a', 'b', 'c']);
- });
-
- QUnit.test('should work on functions that have been rearged', function(assert) {
- assert.expect(1);
-
- var rearged1 = _.rearg(fn, 2, 1, 0),
- rearged2 = _.rearg(rearged1, 1, 0, 2);
-
- assert.deepEqual(rearged2('b', 'c', 'a'), ['a', 'b', 'c']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.reduce');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should use the first element of a collection as the default `accumulator`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.reduce(array), 1);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments when iterating an array', function(assert) {
- assert.expect(2);
-
- var args;
-
- _.reduce(array, function() {
- args || (args = slice.call(arguments));
- }, 0);
-
- assert.deepEqual(args, [0, 1, 0, array]);
-
- args = undefined;
- _.reduce(array, function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [1, 2, 1, array]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments when iterating an object', function(assert) {
- assert.expect(2);
-
- var args,
- object = { 'a': 1, 'b': 2 },
- firstKey = _.head(_.keys(object));
-
- var expected = firstKey == 'a'
- ? [0, 1, 'a', object]
- : [0, 2, 'b', object];
-
- _.reduce(object, function() {
- args || (args = slice.call(arguments));
- }, 0);
-
- assert.deepEqual(args, expected);
-
- args = undefined;
- expected = firstKey == 'a'
- ? [1, 2, 'b', object]
- : [2, 1, 'a', object];
-
- _.reduce(object, function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.reduceRight');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should use the last element of a collection as the default `accumulator`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.reduceRight(array), 3);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments when iterating an array', function(assert) {
- assert.expect(2);
-
- var args;
-
- _.reduceRight(array, function() {
- args || (args = slice.call(arguments));
- }, 0);
-
- assert.deepEqual(args, [0, 3, 2, array]);
-
- args = undefined;
- _.reduceRight(array, function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [3, 2, 1, array]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments when iterating an object', function(assert) {
- assert.expect(2);
-
- var args,
- object = { 'a': 1, 'b': 2 },
- isFIFO = lodashStable.keys(object)[0] == 'a';
-
- var expected = isFIFO
- ? [0, 2, 'b', object]
- : [0, 1, 'a', object];
-
- _.reduceRight(object, function() {
- args || (args = slice.call(arguments));
- }, 0);
-
- assert.deepEqual(args, expected);
-
- args = undefined;
- expected = isFIFO
- ? [2, 1, 'a', object]
- : [1, 2, 'b', object];
-
- _.reduceRight(object, function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('reduce methods');
-
- lodashStable.each(['reduce', 'reduceRight'], function(methodName) {
- var func = _[methodName],
- array = [1, 2, 3],
- isReduce = methodName == 'reduce';
-
- QUnit.test('`_.' + methodName + '` should reduce a collection to a single value', function(assert) {
- assert.expect(1);
-
- var actual = func(['a', 'b', 'c'], function(accumulator, value) {
- return accumulator + value;
- }, '');
-
- assert.strictEqual(actual, isReduce ? 'abc' : 'cba');
- });
-
- QUnit.test('`_.' + methodName + '` should support empty collections without an initial `accumulator` value', function(assert) {
- assert.expect(1);
-
- var actual = [],
- expected = lodashStable.map(empties, noop);
-
- lodashStable.each(empties, function(value) {
- try {
- actual.push(func(value, noop));
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should support empty collections with an initial `accumulator` value', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(empties, lodashStable.constant('x'));
-
- var actual = lodashStable.map(empties, function(value) {
- try {
- return func(value, noop, 'x');
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should handle an initial `accumulator` value of `undefined`', function(assert) {
- assert.expect(1);
-
- var actual = func([], noop, undefined);
- assert.strictEqual(actual, undefined);
- });
-
- QUnit.test('`_.' + methodName + '` should return `undefined` for empty collections when no `accumulator` is given (test in IE > 9 and modern browsers)', function(assert) {
- assert.expect(2);
-
- var array = [],
- object = { '0': 1, 'length': 0 };
-
- if ('__proto__' in array) {
- array.__proto__ = object;
- assert.strictEqual(func(array, noop), undefined);
- }
- else {
- skipAssert(assert);
- }
- assert.strictEqual(func(object, noop), undefined);
- });
-
- QUnit.test('`_.' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.strictEqual(_(array)[methodName](add), 6);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(array).chain()[methodName](add) instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.reject');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should return elements the `predicate` returns falsey for', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.reject(array, isEven), [1, 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('filter methods');
-
- lodashStable.each(['filter', 'reject'], function(methodName) {
- var array = [1, 2, 3, 4],
- func = _[methodName],
- isFilter = methodName == 'filter',
- objects = [{ 'a': 0 }, { 'a': 1 }];
-
- QUnit.test('`_.' + methodName + '` should not modify the resulting value from within `predicate`', function(assert) {
- assert.expect(1);
-
- var actual = func([0], function(value, index, array) {
- array[index] = 1;
- return isFilter;
- });
-
- assert.deepEqual(actual, [0]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func(objects, 'a'), [objects[isFilter ? 1 : 0]]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func(objects, objects[1]), [objects[isFilter ? 1 : 0]]);
- });
-
- QUnit.test('`_.' + methodName + '` should not modify wrapped values', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var wrapped = _(array);
-
- var actual = wrapped[methodName](function(n) {
- return n < 3;
- });
-
- assert.deepEqual(actual.value(), isFilter ? [1, 2] : [3, 4]);
-
- actual = wrapped[methodName](function(n) {
- return n > 2;
- });
-
- assert.deepEqual(actual.value(), isFilter ? [3, 4] : [1, 2]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should work in a lazy sequence', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE + 1),
- predicate = function(value) { return isFilter ? isEven(value) : !isEven(value); },
- actual = _(array).slice(1).map(square)[methodName](predicate).value();
-
- assert.deepEqual(actual, _[methodName](lodashStable.map(array.slice(1), square), predicate));
-
- var object = lodashStable.zipObject(lodashStable.times(LARGE_ARRAY_SIZE, function(index) {
- return ['key' + index, index];
- }));
-
- actual = _(object).mapValues(square)[methodName](predicate).value();
- assert.deepEqual(actual, _[methodName](lodashStable.mapValues(object, square), predicate));
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should provide the correct `predicate` arguments in a lazy sequence', function(assert) {
- assert.expect(5);
-
- if (!isNpm) {
- var args,
- array = lodashStable.range(LARGE_ARRAY_SIZE + 1),
- expected = [1, 0, lodashStable.map(array.slice(1), square)];
-
- _(array).slice(1)[methodName](function(value, index, array) {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, [1, 0, array.slice(1)]);
-
- args = undefined;
- _(array).slice(1).map(square)[methodName](function(value, index, array) {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, expected);
-
- args = undefined;
- _(array).slice(1).map(square)[methodName](function(value, index) {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, expected);
-
- args = undefined;
- _(array).slice(1).map(square)[methodName](function(value) {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, [1]);
-
- args = undefined;
- _(array).slice(1).map(square)[methodName](function() {
- args || (args = slice.call(arguments));
- }).value();
-
- assert.deepEqual(args, expected);
- }
- else {
- skipAssert(assert, 5);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.remove');
-
- (function() {
- QUnit.test('should modify the array and return removed elements', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 4],
- actual = _.remove(array, isEven);
-
- assert.deepEqual(array, [1, 3]);
- assert.deepEqual(actual, [2, 4]);
- });
-
- QUnit.test('should provide the correct `predicate` arguments', function(assert) {
- assert.expect(1);
-
- var argsList = [],
- array = [1, 2, 3],
- clone = array.slice();
-
- _.remove(array, function(n, index) {
- var args = slice.call(arguments);
- args[2] = args[2].slice();
- argsList.push(args);
- return isEven(index);
- });
-
- assert.deepEqual(argsList, [[1, 0, clone], [2, 1, clone], [3, 2, clone]]);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': 0, 'b': 1 }, { 'a': 1, 'b': 2 }];
- _.remove(objects, { 'a': 1 });
- assert.deepEqual(objects, [{ 'a': 0, 'b': 1 }]);
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': 0, 'b': 1 }, { 'a': 1, 'b': 2 }];
- _.remove(objects, ['a', 1]);
- assert.deepEqual(objects, [{ 'a': 0, 'b': 1 }]);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'a': 0 }, { 'a': 1 }];
- _.remove(objects, 'a');
- assert.deepEqual(objects, [{ 'a': 0 }]);
- });
-
- QUnit.test('should preserve holes in arrays', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3, 4];
- delete array[1];
- delete array[3];
-
- _.remove(array, function(n) {
- return n === 1;
- });
-
- assert.notOk('0' in array);
- assert.notOk('2' in array);
- });
-
- QUnit.test('should treat holes as `undefined`', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
- delete array[1];
-
- _.remove(array, function(n) {
- return n == null;
- });
-
- assert.deepEqual(array, [1, 3]);
- });
-
- QUnit.test('should not mutate the array until all elements to remove are determined', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3];
-
- _.remove(array, function(n, index) {
- return isEven(index);
- });
-
- assert.deepEqual(array, [2]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.repeat');
-
- (function() {
- var string = 'abc';
-
- QUnit.test('should repeat a string `n` times', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.repeat('*', 3), '***');
- assert.strictEqual(_.repeat(string, 2), 'abcabc');
- });
-
- QUnit.test('should treat falsey `n` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? string : '';
- });
-
- var actual = lodashStable.map(falsey, function(n, index) {
- return index ? _.repeat(string, n) : _.repeat(string);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return an empty string if `n` is <= `0`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.repeat(string, 0), '');
- assert.strictEqual(_.repeat(string, -2), '');
- });
-
- QUnit.test('should coerce `n` to an integer', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.repeat(string, '2'), 'abcabc');
- assert.strictEqual(_.repeat(string, 2.6), 'abcabc');
- assert.strictEqual(_.repeat('*', { 'valueOf': stubThree }), '***');
- });
-
- QUnit.test('should coerce `string` to a string', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.repeat(Object(string), 2), 'abcabc');
- assert.strictEqual(_.repeat({ 'toString': lodashStable.constant('*') }, 3), '***');
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(['a', 'b', 'c'], _.repeat);
- assert.deepEqual(actual, ['a', 'b', 'c']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.replace');
-
- (function() {
- QUnit.test('should replace the matched pattern', function(assert) {
- assert.expect(2);
-
- var string = 'abcde';
- assert.strictEqual(_.replace(string, 'de', '123'), 'abc123');
- assert.strictEqual(_.replace(string, /[bd]/g, '-'), 'a-c-e');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.result');
-
- (function() {
- var object = { 'a': 1, 'b': stubB };
-
- QUnit.test('should invoke function values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.result(object, 'b'), 'b');
- });
-
- QUnit.test('should invoke default function values', function(assert) {
- assert.expect(1);
-
- var actual = _.result(object, 'c', object.b);
- assert.strictEqual(actual, 'b');
- });
-
- QUnit.test('should invoke nested function values', function(assert) {
- assert.expect(2);
-
- var value = { 'a': lodashStable.constant({ 'b': stubB }) };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.strictEqual(_.result(value, path), 'b');
- });
- });
-
- QUnit.test('should invoke deep property methods with the correct `this` binding', function(assert) {
- assert.expect(2);
-
- var value = { 'a': { 'b': function() { return this.c; }, 'c': 1 } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.strictEqual(_.result(value, path), 1);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.get and lodash.result');
-
- lodashStable.each(['get', 'result'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should get string keyed property values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1 };
-
- lodashStable.each(['a', ['a']], function(path) {
- assert.strictEqual(func(object, path), 1);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var object = { '-0': 'a', '0': 'b' },
- props = [-0, Object(-0), 0, Object(0)];
-
- var actual = lodashStable.map(props, function(key) {
- return func(object, key);
- });
-
- assert.deepEqual(actual, ['a', 'a', 'b', 'b']);
- });
-
- QUnit.test('`_.' + methodName + '` should get symbol keyed property values', function(assert) {
- assert.expect(1);
-
- if (Symbol) {
- var object = {};
- object[symbol] = 1;
-
- assert.strictEqual(func(object, symbol), 1);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should get deep property values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': 2 } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.strictEqual(func(object, path), 2);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should get a key over a path', function(assert) {
- assert.expect(2);
-
- var object = { 'a.b': 1, 'a': { 'b': 2 } };
-
- lodashStable.each(['a.b', ['a.b']], function(path) {
- assert.strictEqual(func(object, path), 1);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should not coerce array paths to strings', function(assert) {
- assert.expect(1);
-
- var object = { 'a,b,c': 3, 'a': { 'b': { 'c': 4 } } };
- assert.strictEqual(func(object, ['a', 'b', 'c']), 4);
- });
-
- QUnit.test('`_.' + methodName + '` should not ignore empty brackets', function(assert) {
- assert.expect(1);
-
- var object = { 'a': { '': 1 } };
- assert.strictEqual(func(object, 'a[]'), 1);
- });
-
- QUnit.test('`_.' + methodName + '` should handle empty paths', function(assert) {
- assert.expect(4);
-
- lodashStable.each([['', ''], [[], ['']]], function(pair) {
- assert.strictEqual(func({}, pair[0]), undefined);
- assert.strictEqual(func({ '': 3 }, pair[1]), 3);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should handle complex paths', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { '-1.23': { '["b"]': { 'c': { "['d']": { '\ne\n': { 'f': { 'g': 8 } } } } } } } };
-
- var paths = [
- 'a[-1.23]["[\\"b\\"]"].c[\'[\\\'d\\\']\'][\ne\n][f].g',
- ['a', '-1.23', '["b"]', 'c', "['d']", '\ne\n', 'f', 'g']
- ];
-
- lodashStable.each(paths, function(path) {
- assert.strictEqual(func(object, path), 8);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `undefined` when `object` is nullish', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['constructor', ['constructor']], function(path) {
- assert.strictEqual(func(null, path), undefined);
- assert.strictEqual(func(undefined, path), undefined);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `undefined` with deep paths when `object` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [null, undefined],
- expected = lodashStable.map(values, noop),
- paths = ['constructor.prototype.valueOf', ['constructor', 'prototype', 'valueOf']];
-
- lodashStable.each(paths, function(path) {
- var actual = lodashStable.map(values, function(value) {
- return func(value, path);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return `undefined` if parts of `path` are missing', function(assert) {
- assert.expect(2);
-
- var object = { 'a': [, null] };
-
- lodashStable.each(['a[1].b.c', ['a', '1', 'b', 'c']], function(path) {
- assert.strictEqual(func(object, path), undefined);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should be able to return `null` values', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { 'b': null } };
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- assert.strictEqual(func(object, path), null);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should follow `path` over non-plain objects', function(assert) {
- assert.expect(2);
-
- var paths = ['a.b', ['a', 'b']];
-
- lodashStable.each(paths, function(path) {
- numberProto.a = { 'b': 2 };
- assert.strictEqual(func(0, path), 2);
- delete numberProto.a;
- });
- });
-
- QUnit.test('`_.' + methodName + '` should return the default value for `undefined` values', function(assert) {
- assert.expect(1);
-
- var object = { 'a': {} },
- values = empties.concat(true, new Date, 1, /x/, 'a');
-
- var expected = lodashStable.transform(values, function(result, value) {
- result.push(value, value, value, value);
- });
-
- var actual = lodashStable.transform(values, function(result, value) {
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- result.push(
- func(object, path, value),
- func(null, path, value)
- );
- });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should return the default value when `path` is empty', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func({}, [], 'a'), 'a');
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.rest');
-
- (function() {
- function fn(a, b, c) {
- return slice.call(arguments);
- }
-
- QUnit.test('should apply a rest parameter to `func`', function(assert) {
- assert.expect(1);
-
- var rest = _.rest(fn);
- assert.deepEqual(rest(1, 2, 3, 4), [1, 2, [3, 4]]);
- });
-
- QUnit.test('should work with `start`', function(assert) {
- assert.expect(1);
-
- var rest = _.rest(fn, 1);
- assert.deepEqual(rest(1, 2, 3, 4), [1, [2, 3, 4]]);
- });
-
- QUnit.test('should treat `start` as `0` for negative or `NaN` values', function(assert) {
- assert.expect(1);
-
- var values = [-1, NaN, 'a'],
- expected = lodashStable.map(values, lodashStable.constant([[1, 2, 3, 4]]));
-
- var actual = lodashStable.map(values, function(value) {
- var rest = _.rest(fn, value);
- return rest(1, 2, 3, 4);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should coerce `start` to an integer', function(assert) {
- assert.expect(1);
-
- var rest = _.rest(fn, 1.6);
- assert.deepEqual(rest(1, 2, 3), [1, [2, 3]]);
- });
-
- QUnit.test('should use an empty array when `start` is not reached', function(assert) {
- assert.expect(1);
-
- var rest = _.rest(fn);
- assert.deepEqual(rest(1), [1, undefined, []]);
- });
-
- QUnit.test('should work on functions with more than three parameters', function(assert) {
- assert.expect(1);
-
- var rest = _.rest(function(a, b, c, d) {
- return slice.call(arguments);
- });
-
- assert.deepEqual(rest(1, 2, 3, 4, 5), [1, 2, 3, [4, 5]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.reverse');
-
- (function() {
- var largeArray = lodashStable.range(LARGE_ARRAY_SIZE).concat(null),
- smallArray = [0, 1, 2, null];
-
- QUnit.test('should reverse `array`', function(assert) {
- assert.expect(2);
-
- var array = [1, 2, 3],
- actual = _.reverse(array);
-
- assert.strictEqual(actual, array);
- assert.deepEqual(array, [3, 2, 1]);
- });
-
- QUnit.test('should return the wrapped reversed `array`', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- lodashStable.times(2, function(index) {
- var array = (index ? largeArray : smallArray).slice(),
- clone = array.slice(),
- wrapped = _(array).reverse(),
- actual = wrapped.value();
-
- assert.ok(wrapped instanceof _);
- assert.strictEqual(actual, array);
- assert.deepEqual(actual, clone.slice().reverse());
- });
- }
- else {
- skipAssert(assert, 6);
- }
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- lodashStable.times(2, function(index) {
- var array = (index ? largeArray : smallArray).slice(),
- expected = array.slice(),
- actual = _(array).slice(1).reverse().value();
-
- assert.deepEqual(actual, expected.slice(1).reverse());
- assert.deepEqual(array, expected);
- });
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should be lazy when in a lazy sequence', function(assert) {
- assert.expect(3);
-
- if (!isNpm) {
- var spy = {
- 'toString': function() {
- throw new Error('spy was revealed');
- }
- };
-
- var array = largeArray.concat(spy),
- expected = array.slice();
-
- try {
- var wrapped = _(array).slice(1).map(String).reverse(),
- actual = wrapped.last();
- } catch (e) {}
-
- assert.ok(wrapped instanceof _);
- assert.strictEqual(actual, '1');
- assert.deepEqual(array, expected);
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should work in a hybrid sequence', function(assert) {
- assert.expect(8);
-
- if (!isNpm) {
- lodashStable.times(2, function(index) {
- var clone = (index ? largeArray : smallArray).slice();
-
- lodashStable.each(['map', 'filter'], function(methodName) {
- var array = clone.slice(),
- expected = clone.slice(1, -1).reverse(),
- actual = _(array)[methodName](identity).thru(_.compact).reverse().value();
-
- assert.deepEqual(actual, expected);
-
- array = clone.slice();
- actual = _(array).thru(_.compact)[methodName](identity).pull(1).push(3).reverse().value();
-
- assert.deepEqual(actual, [3].concat(expected.slice(0, -1)));
- });
- });
- }
- else {
- skipAssert(assert, 8);
- }
- });
-
- QUnit.test('should track the `__chain__` value of a wrapper', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- lodashStable.times(2, function(index) {
- var array = (index ? largeArray : smallArray).slice(),
- expected = array.slice().reverse(),
- wrapped = _(array).chain().reverse().head();
-
- assert.ok(wrapped instanceof _);
- assert.strictEqual(wrapped.value(), _.head(expected));
- assert.deepEqual(array, expected);
- });
- }
- else {
- skipAssert(assert, 6);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('round methods');
-
- lodashStable.each(['ceil', 'floor', 'round'], function(methodName) {
- var func = _[methodName],
- isCeil = methodName == 'ceil',
- isFloor = methodName == 'floor';
-
- QUnit.test('`_.' + methodName + '` should return a rounded number without a precision', function(assert) {
- assert.expect(1);
-
- var actual = func(4.006);
- assert.strictEqual(actual, isCeil ? 5 : 4);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a precision of `0`', function(assert) {
- assert.expect(1);
-
- var actual = func(4.006, 0);
- assert.strictEqual(actual, isCeil ? 5 : 4);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a positive precision', function(assert) {
- assert.expect(2);
-
- var actual = func(4.016, 2);
- assert.strictEqual(actual, isFloor ? 4.01 : 4.02);
-
- actual = func(4.1, 2);
- assert.strictEqual(actual, 4.1);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a negative precision', function(assert) {
- assert.expect(1);
-
- var actual = func(4160, -2);
- assert.strictEqual(actual, isFloor ? 4100 : 4200);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `precision` to an integer', function(assert) {
- assert.expect(3);
-
- var actual = func(4.006, NaN);
- assert.strictEqual(actual, isCeil ? 5 : 4);
-
- var expected = isFloor ? 4.01 : 4.02;
-
- actual = func(4.016, 2.6);
- assert.strictEqual(actual, expected);
-
- actual = func(4.016, '+2');
- assert.strictEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with exponential notation and `precision`', function(assert) {
- assert.expect(3);
-
- var actual = func(5e1, 2);
- assert.deepEqual(actual, 50);
-
- actual = func('5e', 1);
- assert.deepEqual(actual, NaN);
-
- actual = func('5e1e1', 1);
- assert.deepEqual(actual, NaN);
- });
-
- QUnit.test('`_.' + methodName + '` should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var values = [[0], [-0], ['0'], ['-0'], [0, 1], [-0, 1], ['0', 1], ['-0', 1]],
- expected = [Infinity, -Infinity, Infinity, -Infinity, Infinity, -Infinity, Infinity, -Infinity];
-
- var actual = lodashStable.map(values, function(args) {
- return 1 / func.apply(undefined, args);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should not return `NaN` for large `precision` values', function(assert) {
- assert.expect(1);
-
- var results = [
- _.round(10.0000001, 1000),
- _.round(MAX_SAFE_INTEGER, 293)
- ];
-
- var expected = lodashStable.map(results, stubFalse),
- actual = lodashStable.map(results, lodashStable.isNaN);
-
- assert.deepEqual(actual, expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.runInContext');
-
- (function() {
- QUnit.test('should not require a fully populated `context` object', function(assert) {
- assert.expect(1);
-
- if (!isModularize) {
- var lodash = _.runInContext({
- 'setTimeout': function(func) { func(); }
- });
-
- var pass = false;
- lodash.delay(function() { pass = true; }, 32);
- assert.ok(pass);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should use a zeroed `_.uniqueId` counter', function(assert) {
- assert.expect(3);
-
- if (!isModularize) {
- lodashStable.times(2, _.uniqueId);
-
- var oldId = Number(_.uniqueId()),
- lodash = _.runInContext();
-
- assert.ok(_.uniqueId() > oldId);
-
- var id = lodash.uniqueId();
- assert.strictEqual(id, '1');
- assert.ok(id < oldId);
- }
- else {
- skipAssert(assert, 3);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.sample');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should return a random element', function(assert) {
- assert.expect(1);
-
- var actual = _.sample(array);
- assert.ok(lodashStable.includes(array, actual));
- });
-
- QUnit.test('should return `undefined` when sampling empty collections', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(empties, noop);
-
- var actual = lodashStable.transform(empties, function(result, value) {
- try {
- result.push(_.sample(value));
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should sample an object', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1, 'b': 2, 'c': 3 },
- actual = _.sample(object);
-
- assert.ok(lodashStable.includes(array, actual));
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.sampleSize');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should return an array of random elements', function(assert) {
- assert.expect(2);
-
- var actual = _.sampleSize(array, 2);
-
- assert.strictEqual(actual.length, 2);
- assert.deepEqual(lodashStable.difference(actual, array), []);
- });
-
- QUnit.test('should contain elements of the collection', function(assert) {
- assert.expect(1);
-
- var actual = _.sampleSize(array, array.length).sort();
-
- assert.deepEqual(actual, array);
- });
-
- QUnit.test('should treat falsey `size` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? ['a'] : [];
- });
-
- var actual = lodashStable.map(falsey, function(size, index) {
- return index ? _.sampleSize(['a'], size) : _.sampleSize(['a']);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return an empty array when `n` < `1` or `NaN`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([0, -1, -Infinity], function(n) {
- assert.deepEqual(_.sampleSize(array, n), []);
- });
- });
-
- QUnit.test('should return all elements when `n` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(n) {
- var actual = _.sampleSize(array, n).sort();
- assert.deepEqual(actual, array);
- });
- });
-
- QUnit.test('should coerce `n` to an integer', function(assert) {
- assert.expect(1);
-
- var actual = _.sampleSize(array, 1.6);
- assert.strictEqual(actual.length, 1);
- });
-
- QUnit.test('should return an empty array for empty collections', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(empties, stubArray);
-
- var actual = lodashStable.transform(empties, function(result, value) {
- try {
- result.push(_.sampleSize(value, 1));
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should sample an object', function(assert) {
- assert.expect(2);
-
- var object = { 'a': 1, 'b': 2, 'c': 3 },
- actual = _.sampleSize(object, 2);
-
- assert.strictEqual(actual.length, 2);
- assert.deepEqual(lodashStable.difference(actual, lodashStable.values(object)), []);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map([['a']], _.sampleSize);
- assert.deepEqual(actual, [['a']]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.setWith');
-
- (function() {
- QUnit.test('should work with a `customizer` callback', function(assert) {
- assert.expect(1);
-
- var actual = _.setWith({ '0': {} }, '[0][1][2]', 3, function(value) {
- return lodashStable.isObject(value) ? undefined : {};
- });
-
- assert.deepEqual(actual, { '0': { '1': { '2': 3 } } });
- });
-
- QUnit.test('should work with a `customizer` that returns `undefined`', function(assert) {
- assert.expect(1);
-
- var actual = _.setWith({}, 'a[0].b.c', 4, noop);
- assert.deepEqual(actual, { 'a': [{ 'b': { 'c': 4 } }] });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('set methods');
-
- lodashStable.each(['update', 'updateWith', 'set', 'setWith'], function(methodName) {
- var func = _[methodName],
- isUpdate = methodName == 'update' || methodName == 'updateWith';
-
- var oldValue = 1,
- value = 2,
- updater = isUpdate ? lodashStable.constant(value) : value;
-
- QUnit.test('`_.' + methodName + '` should set property values', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['a', ['a']], function(path) {
- var object = { 'a': oldValue },
- actual = func(object, path, updater);
-
- assert.strictEqual(actual, object);
- assert.strictEqual(object.a, value);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var props = [-0, Object(-0), 0, Object(0)],
- expected = lodashStable.map(props, lodashStable.constant(value));
-
- var actual = lodashStable.map(props, function(key) {
- var object = { '-0': 'a', '0': 'b' };
- func(object, key, updater);
- return object[lodashStable.toString(key)];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should unset symbol keyed property values', function(assert) {
- assert.expect(2);
-
- if (Symbol) {
- var object = {};
- object[symbol] = 1;
-
- assert.strictEqual(_.unset(object, symbol), true);
- assert.notOk(symbol in object);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should set deep property values', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var object = { 'a': { 'b': oldValue } },
- actual = func(object, path, updater);
-
- assert.strictEqual(actual, object);
- assert.strictEqual(object.a.b, value);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should set a key over a path', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['a.b', ['a.b']], function(path) {
- var object = { 'a.b': oldValue },
- actual = func(object, path, updater);
-
- assert.strictEqual(actual, object);
- assert.deepEqual(object, { 'a.b': value });
- });
- });
-
- QUnit.test('`_.' + methodName + '` should not coerce array paths to strings', function(assert) {
- assert.expect(1);
-
- var object = { 'a,b,c': 1, 'a': { 'b': { 'c': 1 } } };
-
- func(object, ['a', 'b', 'c'], updater);
- assert.strictEqual(object.a.b.c, value);
- });
-
- QUnit.test('`_.' + methodName + '` should not ignore empty brackets', function(assert) {
- assert.expect(1);
-
- var object = {};
-
- func(object, 'a[]', updater);
- assert.deepEqual(object, { 'a': { '': value } });
- });
-
- QUnit.test('`_.' + methodName + '` should handle empty paths', function(assert) {
- assert.expect(4);
-
- lodashStable.each([['', ''], [[], ['']]], function(pair, index) {
- var object = {};
-
- func(object, pair[0], updater);
- assert.deepEqual(object, index ? {} : { '': value });
-
- func(object, pair[1], updater);
- assert.deepEqual(object, { '': value });
- });
- });
-
- QUnit.test('`_.' + methodName + '` should handle complex paths', function(assert) {
- assert.expect(2);
-
- var object = { 'a': { '1.23': { '["b"]': { 'c': { "['d']": { '\ne\n': { 'f': { 'g': oldValue } } } } } } } };
-
- var paths = [
- 'a[-1.23]["[\\"b\\"]"].c[\'[\\\'d\\\']\'][\ne\n][f].g',
- ['a', '-1.23', '["b"]', 'c', "['d']", '\ne\n', 'f', 'g']
- ];
-
- lodashStable.each(paths, function(path) {
- func(object, path, updater);
- assert.strictEqual(object.a[-1.23]['["b"]'].c["['d']"]['\ne\n'].f.g, value);
- object.a[-1.23]['["b"]'].c["['d']"]['\ne\n'].f.g = oldValue;
- });
- });
-
- QUnit.test('`_.' + methodName + '` should create parts of `path` that are missing', function(assert) {
- assert.expect(6);
-
- var object = {};
-
- lodashStable.each(['a[1].b.c', ['a', '1', 'b', 'c']], function(path) {
- var actual = func(object, path, updater);
-
- assert.strictEqual(actual, object);
- assert.deepEqual(actual, { 'a': [undefined, { 'b': { 'c': value } }] });
- assert.notOk('0' in object.a);
-
- delete object.a;
- });
- });
-
- QUnit.test('`_.' + methodName + '` should not error when `object` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [null, undefined],
- expected = [[null, null], [undefined, undefined]];
-
- var actual = lodashStable.map(values, function(value) {
- try {
- return [func(value, 'a.b', updater), func(value, ['a', 'b'], updater)];
- } catch (e) {
- return e.message;
- }
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should follow `path` over non-plain objects', function(assert) {
- assert.expect(4);
-
- var object = { 'a': '' },
- paths = ['constructor.prototype.a', ['constructor', 'prototype', 'a']];
-
- lodashStable.each(paths, function(path) {
- func(0, path, updater);
- assert.strictEqual(0..a, value);
- delete numberProto.a;
- });
-
- lodashStable.each(['a.replace.b', ['a', 'replace', 'b']], function(path) {
- func(object, path, updater);
- assert.strictEqual(stringProto.replace.b, value);
- delete stringProto.replace.b;
- });
- });
-
- QUnit.test('`_.' + methodName + '` should not error on paths over primitives in strict mode', function(assert) {
- 'use strict';
-
- assert.expect(2);
-
- lodashStable.each(['a', 'a.a.a'], function(path) {
- numberProto.a = oldValue;
- try {
- func(0, path, updater);
- assert.strictEqual(0..a, oldValue);
- } catch (e) {
- assert.ok(false, e.message);
- }
- });
-
- delete numberProto.a;
- });
-
- QUnit.test('`_.' + methodName + '` should not create an array for missing non-index property names that start with numbers', function(assert) {
- assert.expect(1);
-
- var object = {};
-
- func(object, ['1a', '2b', '3c'], updater);
- assert.deepEqual(object, { '1a': { '2b': { '3c': value } } });
- });
-
- QUnit.test('`_.' + methodName + '` should not assign values that are the same as their destinations', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['a', ['a'], { 'a': 1 }, NaN], function(value) {
- var object = {},
- pass = true,
- updater = isUpdate ? lodashStable.constant(value) : value;
-
- defineProperty(object, 'a', {
- 'enumerable': true,
- 'configurable': true,
- 'get': lodashStable.constant(value),
- 'set': function() { pass = false; }
- });
-
- func(object, 'a', updater);
- assert.ok(pass);
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.shuffle');
-
- (function() {
- var array = [1, 2, 3],
- object = { 'a': 1, 'b': 2, 'c': 3 };
-
- QUnit.test('should return a new array', function(assert) {
- assert.expect(1);
-
- assert.notStrictEqual(_.shuffle(array), array);
- });
-
- QUnit.test('should contain the same elements after a collection is shuffled', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(_.shuffle(array).sort(), array);
- assert.deepEqual(_.shuffle(object).sort(), array);
- });
-
- QUnit.test('should shuffle small collections', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.times(1000, function(assert) {
- return _.shuffle([1, 2]);
- });
-
- assert.deepEqual(lodashStable.sortBy(lodashStable.uniqBy(actual, String), '0'), [[1, 2], [2, 1]]);
- });
-
- QUnit.test('should treat number values for `collection` as empty', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.shuffle(1), []);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.size');
-
- (function() {
- var args = arguments,
- array = [1, 2, 3];
-
- QUnit.test('should return the number of own enumerable string keyed properties of an object', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.size({ 'one': 1, 'two': 2, 'three': 3 }), 3);
- });
-
- QUnit.test('should return the length of an array', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.size(array), 3);
- });
-
- QUnit.test('should accept a falsey `object` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubZero);
-
- var actual = lodashStable.map(falsey, function(object, index) {
- try {
- return index ? _.size(object) : _.size();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `arguments` objects', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.size(args), 3);
- });
-
- QUnit.test('should work with jQuery/MooTools DOM query collections', function(assert) {
- assert.expect(1);
-
- function Foo(elements) {
- push.apply(this, elements);
- }
- Foo.prototype = { 'length': 0, 'splice': arrayProto.splice };
-
- assert.strictEqual(_.size(new Foo(array)), 3);
- });
-
- QUnit.test('should work with maps', function(assert) {
- assert.expect(2);
-
- if (Map) {
- lodashStable.each([new Map, realm.map], function(map) {
- map.set('a', 1);
- map.set('b', 2);
- assert.strictEqual(_.size(map), 2);
- map.clear();
- });
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should work with sets', function(assert) {
- assert.expect(2);
-
- if (Set) {
- lodashStable.each([new Set, realm.set], function(set) {
- set.add(1);
- set.add(2);
- assert.strictEqual(_.size(set), 2);
- set.clear();
- });
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should not treat objects with negative lengths as array-like', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.size({ 'length': -1 }), 1);
- });
-
- QUnit.test('should not treat objects with lengths larger than `MAX_SAFE_INTEGER` as array-like', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.size({ 'length': MAX_SAFE_INTEGER + 1 }), 1);
- });
-
- QUnit.test('should not treat objects with non-number lengths as array-like', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.size({ 'length': '0' }), 1);
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.slice');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should use a default `start` of `0` and a default `end` of `length`', function(assert) {
- assert.expect(2);
-
- var actual = _.slice(array);
- assert.deepEqual(actual, array);
- assert.notStrictEqual(actual, array);
- });
-
- QUnit.test('should work with a positive `start`', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(_.slice(array, 1), [2, 3]);
- assert.deepEqual(_.slice(array, 1, 3), [2, 3]);
- });
-
- QUnit.test('should work with a `start` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(start) {
- assert.deepEqual(_.slice(array, start), []);
- });
- });
-
- QUnit.test('should treat falsey `start` values as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, lodashStable.constant(array));
-
- var actual = lodashStable.map(falsey, function(start) {
- return _.slice(array, start);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with a negative `start`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.slice(array, -1), [3]);
- });
-
- QUnit.test('should work with a negative `start` <= negative `length`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([-3, -4, -Infinity], function(start) {
- assert.deepEqual(_.slice(array, start), array);
- });
- });
-
- QUnit.test('should work with `start` >= `end`', function(assert) {
- assert.expect(2);
-
- lodashStable.each([2, 3], function(start) {
- assert.deepEqual(_.slice(array, start, 2), []);
- });
- });
-
- QUnit.test('should work with a positive `end`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.slice(array, 0, 1), [1]);
- });
-
- QUnit.test('should work with a `end` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(end) {
- assert.deepEqual(_.slice(array, 0, end), array);
- });
- });
-
- QUnit.test('should treat falsey `end` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? array : [];
- });
-
- var actual = lodashStable.map(falsey, function(end, index) {
- return index ? _.slice(array, 0, end) : _.slice(array, 0);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with a negative `end`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.slice(array, 0, -1), [1, 2]);
- });
-
- QUnit.test('should work with a negative `end` <= negative `length`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([-3, -4, -Infinity], function(end) {
- assert.deepEqual(_.slice(array, 0, end), []);
- });
- });
-
- QUnit.test('should coerce `start` and `end` to integers', function(assert) {
- assert.expect(1);
-
- var positions = [[0.1, 1.6], ['0', 1], [0, '1'], ['1'], [NaN, 1], [1, NaN]];
-
- var actual = lodashStable.map(positions, function(pos) {
- return _.slice.apply(_, [array].concat(pos));
- });
-
- assert.deepEqual(actual, [[1], [1], [1], [2, 3], [1], []]);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(2);
-
- var array = [[1], [2, 3]],
- actual = lodashStable.map(array, _.slice);
-
- assert.deepEqual(actual, array);
- assert.notStrictEqual(actual, array);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(38);
-
- if (!isNpm) {
- var array = lodashStable.range(1, LARGE_ARRAY_SIZE + 1),
- length = array.length,
- wrapped = _(array);
-
- lodashStable.each(['map', 'filter'], function(methodName) {
- assert.deepEqual(wrapped[methodName]().slice(0, -1).value(), array.slice(0, -1));
- assert.deepEqual(wrapped[methodName]().slice(1).value(), array.slice(1));
- assert.deepEqual(wrapped[methodName]().slice(1, 3).value(), array.slice(1, 3));
- assert.deepEqual(wrapped[methodName]().slice(-1).value(), array.slice(-1));
-
- assert.deepEqual(wrapped[methodName]().slice(length).value(), array.slice(length));
- assert.deepEqual(wrapped[methodName]().slice(3, 2).value(), array.slice(3, 2));
- assert.deepEqual(wrapped[methodName]().slice(0, -length).value(), array.slice(0, -length));
- assert.deepEqual(wrapped[methodName]().slice(0, null).value(), array.slice(0, null));
-
- assert.deepEqual(wrapped[methodName]().slice(0, length).value(), array.slice(0, length));
- assert.deepEqual(wrapped[methodName]().slice(-length).value(), array.slice(-length));
- assert.deepEqual(wrapped[methodName]().slice(null).value(), array.slice(null));
-
- assert.deepEqual(wrapped[methodName]().slice(0, 1).value(), array.slice(0, 1));
- assert.deepEqual(wrapped[methodName]().slice(NaN, '1').value(), array.slice(NaN, '1'));
-
- assert.deepEqual(wrapped[methodName]().slice(0.1, 1.1).value(), array.slice(0.1, 1.1));
- assert.deepEqual(wrapped[methodName]().slice('0', 1).value(), array.slice('0', 1));
- assert.deepEqual(wrapped[methodName]().slice(0, '1').value(), array.slice(0, '1'));
- assert.deepEqual(wrapped[methodName]().slice('1').value(), array.slice('1'));
- assert.deepEqual(wrapped[methodName]().slice(NaN, 1).value(), array.slice(NaN, 1));
- assert.deepEqual(wrapped[methodName]().slice(1, NaN).value(), array.slice(1, NaN));
- });
- }
- else {
- skipAssert(assert, 38);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.some');
-
- (function() {
- QUnit.test('should return `true` if `predicate` returns truthy for any element', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.some([false, 1, ''], identity), true);
- assert.strictEqual(_.some([null, 'a', 0], identity), true);
- });
-
- QUnit.test('should return `false` for empty collections', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(empties, stubFalse);
-
- var actual = lodashStable.map(empties, function(value) {
- try {
- return _.some(value, identity);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return `true` as soon as `predicate` returns truthy', function(assert) {
- assert.expect(2);
-
- var count = 0;
-
- assert.strictEqual(_.some([null, true, null], function(value) {
- count++;
- return value;
- }), true);
-
- assert.strictEqual(count, 2);
- });
-
- QUnit.test('should return `false` if `predicate` returns falsey for all elements', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.some([false, false, false], identity), false);
- assert.strictEqual(_.some([null, 0, ''], identity), false);
- });
-
- QUnit.test('should use `_.identity` when `predicate` is nullish', function(assert) {
- assert.expect(2);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value, index) {
- var array = [0, 0];
- return index ? _.some(array, value) : _.some(array);
- });
-
- assert.deepEqual(actual, expected);
-
- expected = lodashStable.map(values, stubTrue);
- actual = lodashStable.map(values, function(value, index) {
- var array = [0, 1];
- return index ? _.some(array, value) : _.some(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(2);
-
- var objects = [{ 'a': 0, 'b': 0 }, { 'a': 0, 'b': 1 }];
- assert.strictEqual(_.some(objects, 'a'), false);
- assert.strictEqual(_.some(objects, 'b'), true);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(2);
-
- var objects = [{ 'a': 0, 'b': 0 }, { 'a': 1, 'b': 1}];
- assert.strictEqual(_.some(objects, { 'a': 0 }), true);
- assert.strictEqual(_.some(objects, { 'b': 2 }), false);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map([[1]], _.some);
- assert.deepEqual(actual, [true]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.sortBy');
-
- (function() {
- var objects = [
- { 'a': 'x', 'b': 3 },
- { 'a': 'y', 'b': 4 },
- { 'a': 'x', 'b': 1 },
- { 'a': 'y', 'b': 2 }
- ];
-
- QUnit.test('should sort in ascending order by `iteratee`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(_.sortBy(objects, function(object) {
- return object.b;
- }), 'b');
-
- assert.deepEqual(actual, [1, 2, 3, 4]);
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var array = [3, 2, 1],
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant([1, 2, 3]));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.sortBy(array, value) : _.sortBy(array);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(_.sortBy(objects.concat(undefined), 'b'), 'b');
- assert.deepEqual(actual, [1, 2, 3, 4, undefined]);
- });
-
- QUnit.test('should work with an object for `collection`', function(assert) {
- assert.expect(1);
-
- var actual = _.sortBy({ 'a': 1, 'b': 2, 'c': 3 }, Math.sin);
- assert.deepEqual(actual, [3, 1, 2]);
- });
-
- QUnit.test('should move symbol, `null`, `undefined`, and `NaN` values to the end', function(assert) {
- assert.expect(2);
-
- var symbol1 = Symbol ? Symbol('a') : null,
- symbol2 = Symbol ? Symbol('b') : null,
- array = [NaN, undefined, null, 4, symbol1, null, 1, symbol2, undefined, 3, NaN, 2],
- expected = [1, 2, 3, 4, symbol1, symbol2, null, null, undefined, undefined, NaN, NaN];
-
- assert.deepEqual(_.sortBy(array), expected);
-
- array = [NaN, undefined, symbol1, null, 'd', null, 'a', symbol2, undefined, 'c', NaN, 'b'];
- expected = ['a', 'b', 'c', 'd', symbol1, symbol2, null, null, undefined, undefined, NaN, NaN];
-
- assert.deepEqual(_.sortBy(array), expected);
- });
-
- QUnit.test('should treat number values for `collection` as empty', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.sortBy(1), []);
- });
-
- QUnit.test('should coerce arrays returned from `iteratee`', function(assert) {
- assert.expect(1);
-
- var actual = _.sortBy(objects, function(object) {
- var result = [object.a, object.b];
- result.toString = function() { return String(this[0]); };
- return result;
- });
-
- assert.deepEqual(actual, [objects[0], objects[2], objects[1], objects[3]]);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map([[2, 1, 3], [3, 2, 1]], _.sortBy);
- assert.deepEqual(actual, [[1, 2, 3], [1, 2, 3]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('sortBy methods');
-
- lodashStable.each(['orderBy', 'sortBy'], function(methodName) {
- var func = _[methodName];
-
- function Pair(a, b, c) {
- this.a = a;
- this.b = b;
- this.c = c;
- }
-
- var objects = [
- { 'a': 'x', 'b': 3 },
- { 'a': 'y', 'b': 4 },
- { 'a': 'x', 'b': 1 },
- { 'a': 'y', 'b': 2 }
- ];
-
- var stableArray = [
- new Pair(1, 1, 1), new Pair(1, 2, 1),
- new Pair(1, 1, 1), new Pair(1, 2, 1),
- new Pair(1, 3, 1), new Pair(1, 4, 1),
- new Pair(1, 5, 1), new Pair(1, 6, 1),
- new Pair(2, 1, 2), new Pair(2, 2, 2),
- new Pair(2, 3, 2), new Pair(2, 4, 2),
- new Pair(2, 5, 2), new Pair(2, 6, 2),
- new Pair(undefined, 1, 1), new Pair(undefined, 2, 1),
- new Pair(undefined, 3, 1), new Pair(undefined, 4, 1),
- new Pair(undefined, 5, 1), new Pair(undefined, 6, 1)
- ];
-
- var stableObject = lodashStable.zipObject('abcdefghijklmnopqrst'.split(''), stableArray);
-
- QUnit.test('`_.' + methodName + '` should sort multiple properties in ascending order', function(assert) {
- assert.expect(1);
-
- var actual = func(objects, ['a', 'b']);
- assert.deepEqual(actual, [objects[2], objects[0], objects[3], objects[1]]);
- });
-
- QUnit.test('`_.' + methodName + '` should support iteratees', function(assert) {
- assert.expect(1);
-
- var actual = func(objects, ['a', function(object) { return object.b; }]);
- assert.deepEqual(actual, [objects[2], objects[0], objects[3], objects[1]]);
- });
-
- QUnit.test('`_.' + methodName + '` should perform a stable sort (test in IE > 8 and V8)', function(assert) {
- assert.expect(2);
-
- lodashStable.each([stableArray, stableObject], function(value, index) {
- var actual = func(value, ['a', 'c']);
- assert.deepEqual(actual, stableArray, index ? 'object' : 'array');
- });
- });
-
- QUnit.test('`_.' + methodName + '` should not error on nullish elements', function(assert) {
- assert.expect(1);
-
- try {
- var actual = func(objects.concat(null, undefined), ['a', 'b']);
- } catch (e) {}
-
- assert.deepEqual(actual, [objects[2], objects[0], objects[3], objects[1], null, undefined]);
- });
-
- QUnit.test('`_.' + methodName + '` should work as an iteratee for methods like `_.reduce`', function(assert) {
- assert.expect(3);
-
- var objects = [
- { 'a': 'x', '0': 3 },
- { 'a': 'y', '0': 4 },
- { 'a': 'x', '0': 1 },
- { 'a': 'y', '0': 2 }
- ];
-
- var funcs = [func, lodashStable.partialRight(func, 'bogus')];
-
- lodashStable.each(['a', 0, [0]], function(props, index) {
- var expected = lodashStable.map(funcs, lodashStable.constant(
- index
- ? [objects[2], objects[3], objects[0], objects[1]]
- : [objects[0], objects[2], objects[1], objects[3]]
- ));
-
- var actual = lodashStable.map(funcs, function(func) {
- return lodashStable.reduce([props], func, objects);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('sortedIndex methods');
-
- lodashStable.each(['sortedIndex', 'sortedLastIndex'], function(methodName) {
- var func = _[methodName],
- isSortedIndex = methodName == 'sortedIndex';
-
- QUnit.test('`_.' + methodName + '` should return the insert index', function(assert) {
- assert.expect(1);
-
- var array = [30, 50],
- values = [30, 40, 50],
- expected = isSortedIndex ? [0, 1, 1] : [1, 1, 2];
-
- var actual = lodashStable.map(values, function(value) {
- return func(array, value);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with an array of strings', function(assert) {
- assert.expect(1);
-
- var array = ['a', 'c'],
- values = ['a', 'b', 'c'],
- expected = isSortedIndex ? [0, 1, 1] : [1, 1, 2];
-
- var actual = lodashStable.map(values, function(value) {
- return func(array, value);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should accept a falsey `array` argument and a `value`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, lodashStable.constant([0, 0, 0]));
-
- var actual = lodashStable.map(falsey, function(array) {
- return [func(array, 1), func(array, undefined), func(array, NaN)];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should align with `_.sortBy`', function(assert) {
- assert.expect(12);
-
- var symbol1 = Symbol ? Symbol('a') : null,
- symbol2 = Symbol ? Symbol('b') : null,
- symbol3 = Symbol ? Symbol('c') : null,
- expected = [1, '2', {}, symbol1, symbol2, null, undefined, NaN, NaN];
-
- lodashStable.each([
- [NaN, symbol1, null, 1, '2', {}, symbol2, NaN, undefined],
- ['2', null, 1, symbol1, NaN, {}, NaN, symbol2, undefined]
- ], function(array) {
- assert.deepEqual(_.sortBy(array), expected);
- assert.strictEqual(func(expected, 3), 2);
- assert.strictEqual(func(expected, symbol3), isSortedIndex ? 3 : (Symbol ? 5 : 6));
- assert.strictEqual(func(expected, null), isSortedIndex ? (Symbol ? 5 : 3) : 6);
- assert.strictEqual(func(expected, undefined), isSortedIndex ? 6 : 7);
- assert.strictEqual(func(expected, NaN), isSortedIndex ? 7 : 9);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should align with `_.sortBy` for nulls', function(assert) {
- assert.expect(3);
-
- var array = [null, null];
-
- assert.strictEqual(func(array, null), isSortedIndex ? 0 : 2);
- assert.strictEqual(func(array, 1), 0);
- assert.strictEqual(func(array, 'a'), 0);
- });
-
- QUnit.test('`_.' + methodName + '` should align with `_.sortBy` for symbols', function(assert) {
- assert.expect(3);
-
- var symbol1 = Symbol ? Symbol('a') : null,
- symbol2 = Symbol ? Symbol('b') : null,
- symbol3 = Symbol ? Symbol('c') : null,
- array = [symbol1, symbol2];
-
- assert.strictEqual(func(array, symbol3), isSortedIndex ? 0 : 2);
- assert.strictEqual(func(array, 1), 0);
- assert.strictEqual(func(array, 'a'), 0);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('sortedIndexBy methods');
-
- lodashStable.each(['sortedIndexBy', 'sortedLastIndexBy'], function(methodName) {
- var func = _[methodName],
- isSortedIndexBy = methodName == 'sortedIndexBy';
-
- QUnit.test('`_.' + methodName + '` should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- func([30, 50], 40, function(assert) {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [40]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'x': 30 }, { 'x': 50 }],
- actual = func(objects, { 'x': 40 }, 'x');
-
- assert.strictEqual(actual, 1);
- });
-
- QUnit.test('`_.' + methodName + '` should support arrays larger than `MAX_ARRAY_LENGTH / 2`', function(assert) {
- assert.expect(12);
-
- lodashStable.each([Math.ceil(MAX_ARRAY_LENGTH / 2), MAX_ARRAY_LENGTH], function(length) {
- var array = [],
- values = [MAX_ARRAY_LENGTH, NaN, undefined];
-
- array.length = length;
-
- lodashStable.each(values, function(value) {
- var steps = 0;
-
- var actual = func(array, value, function(value) {
- steps++;
- return value;
- });
-
- var expected = (isSortedIndexBy ? !lodashStable.isNaN(value) : lodashStable.isFinite(value))
- ? 0
- : Math.min(length, MAX_ARRAY_INDEX);
-
- // Avoid false fails in older Firefox.
- if (array.length == length) {
- assert.ok(steps == 32 || steps == 33);
- assert.strictEqual(actual, expected);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('sortedIndexOf methods');
-
- lodashStable.each(['sortedIndexOf', 'sortedLastIndexOf'], function(methodName) {
- var func = _[methodName],
- isSortedIndexOf = methodName == 'sortedIndexOf';
-
- QUnit.test('`_.' + methodName + '` should perform a binary search', function(assert) {
- assert.expect(1);
-
- var sorted = [4, 4, 5, 5, 6, 6];
- assert.deepEqual(func(sorted, 5), isSortedIndexOf ? 2 : 3);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.sortedUniq');
-
- (function() {
- QUnit.test('should return unique values of a sorted array', function(assert) {
- assert.expect(3);
-
- var expected = [1, 2, 3];
-
- lodashStable.each([[1, 2, 3], [1, 1, 2, 2, 3], [1, 2, 3, 3, 3, 3, 3]], function(array) {
- assert.deepEqual(_.sortedUniq(array), expected);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.split');
-
- (function() {
- QUnit.test('should split a string by `separator`', function(assert) {
- assert.expect(3);
-
- var string = 'abcde';
- assert.deepEqual(_.split(string, 'c'), ['ab', 'de']);
- assert.deepEqual(_.split(string, /[bd]/), ['a', 'c', 'e']);
- assert.deepEqual(_.split(string, '', 2), ['a', 'b']);
- });
-
- QUnit.test('should return an array containing an empty string for empty values', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined, ''],
- expected = lodashStable.map(values, lodashStable.constant(['']));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.split(value) : _.split();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var strings = ['abc', 'def', 'ghi'],
- actual = lodashStable.map(strings, _.split);
-
- assert.deepEqual(actual, [['abc'], ['def'], ['ghi']]);
- });
-
- QUnit.test('should allow mixed string and array prototype methods', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _('abc');
- assert.strictEqual(wrapped.split('b').join(','), 'a,c');
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.spread');
-
- (function() {
- function fn(a, b, c) {
- return slice.call(arguments);
- }
-
- QUnit.test('should spread arguments to `func`', function(assert) {
- assert.expect(1);
-
- var spread = _.spread(fn);
- assert.deepEqual(spread([4, 2]), [4, 2]);
- });
-
- QUnit.test('should accept a falsey `array` argument', function(assert) {
- assert.expect(1);
-
- var spread = _.spread(stubTrue),
- expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(array, index) {
- try {
- return index ? spread(array) : spread();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should provide the correct `func` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- var spread = _.spread(function() {
- args = slice.call(arguments);
- });
-
- spread([4, 2], 'ignored');
- assert.deepEqual(args, [4, 2]);
- });
-
- QUnit.test('should work with `start`', function(assert) {
- assert.expect(1);
-
- var spread = _.spread(fn, 1);
- assert.deepEqual(spread(1, [2, 3, 4]), [1, 2, 3, 4]);
- });
-
- QUnit.test('should treat `start` as `0` for negative or `NaN` values', function(assert) {
- assert.expect(1);
-
- var values = [-1, NaN, 'a'],
- expected = lodashStable.map(values, lodashStable.constant([1, 2, 3, 4]));
-
- var actual = lodashStable.map(values, function(value) {
- var spread = _.spread(fn, value);
- return spread([1, 2, 3, 4]);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should coerce `start` to an integer', function(assert) {
- assert.expect(1);
-
- var spread = _.spread(fn, 1.6);
- assert.deepEqual(spread(1, [2, 3]), [1, 2, 3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.startCase');
-
- (function() {
- QUnit.test('should uppercase only the first character of each word', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.startCase('--foo-bar--'), 'Foo Bar');
- assert.strictEqual(_.startCase('fooBar'), 'Foo Bar');
- assert.strictEqual(_.startCase('__FOO_BAR__'), 'FOO BAR');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.startsWith');
-
- (function() {
- var string = 'abc';
-
- QUnit.test('should return `true` if a string starts with `target`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.startsWith(string, 'a'), true);
- });
-
- QUnit.test('should return `false` if a string does not start with `target`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.startsWith(string, 'b'), false);
- });
-
- QUnit.test('should work with a `position` argument', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.startsWith(string, 'b', 1), true);
- });
-
- QUnit.test('should work with `position` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 5, MAX_SAFE_INTEGER, Infinity], function(position) {
- assert.strictEqual(_.startsWith(string, 'a', position), false);
- });
- });
-
- QUnit.test('should treat falsey `position` values as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(position) {
- return _.startsWith(string, 'a', position);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should treat a negative `position` as `0`', function(assert) {
- assert.expect(6);
-
- lodashStable.each([-1, -3, -Infinity], function(position) {
- assert.strictEqual(_.startsWith(string, 'a', position), true);
- assert.strictEqual(_.startsWith(string, 'b', position), false);
- });
- });
-
- QUnit.test('should coerce `position` to an integer', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.startsWith(string, 'bc', 1.2), true);
- });
-
- QUnit.test('should return `true` when `target` is an empty string regardless of `position`', function(assert) {
- assert.expect(1);
-
- assert.ok(lodashStable.every([-Infinity, NaN, -3, -1, 0, 1, 2, 3, 5, MAX_SAFE_INTEGER, Infinity], function(position) {
- return _.startsWith(string, '', position, true);
- }));
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.startsWith and lodash.endsWith');
-
- lodashStable.each(['startsWith', 'endsWith'], function(methodName) {
- var func = _[methodName],
- isStartsWith = methodName == 'startsWith';
-
- var string = 'abc',
- chr = isStartsWith ? 'a' : 'c';
-
- QUnit.test('`_.' + methodName + '` should coerce `string` to a string', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(func(Object(string), chr), true);
- assert.strictEqual(func({ 'toString': lodashStable.constant(string) }, chr), true);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `target` to a string', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(func(string, Object(chr)), true);
- assert.strictEqual(func(string, { 'toString': lodashStable.constant(chr) }), true);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `position` to a number', function(assert) {
- assert.expect(2);
-
- var position = isStartsWith ? 1 : 2;
- assert.strictEqual(func(string, 'b', Object(position)), true);
- assert.strictEqual(func(string, 'b', { 'toString': lodashStable.constant(String(position)) }), true);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('stub methods');
-
- lodashStable.each(['noop', 'stubTrue', 'stubFalse', 'stubArray', 'stubObject', 'stubString'], function(methodName) {
- var func = _[methodName];
-
- var pair = ({
- 'stubArray': [[], 'an empty array'],
- 'stubFalse': [false, '`false`'],
- 'stubObject': [{}, 'an empty object'],
- 'stubString': ['', 'an empty string'],
- 'stubTrue': [true, '`true`'],
- 'noop': [undefined, '`undefined`']
- })[methodName];
-
- var values = Array(2).concat(empties, true, 1, 'a'),
- expected = lodashStable.map(values, lodashStable.constant(pair[0]));
-
- QUnit.test('`_.' + methodName + '` should return ' + pair[1], function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(values, function(value, index) {
- if (index < 2) {
- return index ? func.call({}) : func();
- }
- return func(value);
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.subtract');
-
- (function() {
- QUnit.test('should subtract two numbers', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.subtract(6, 4), 2);
- assert.strictEqual(_.subtract(-6, 4), -10);
- assert.strictEqual(_.subtract(-6, -4), -2);
- });
-
- QUnit.test('should coerce arguments to numbers', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.subtract('6', '4'), 2);
- assert.deepEqual(_.subtract('x', 'y'), NaN);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('math operator methods');
-
- lodashStable.each(['add', 'divide', 'multiply', 'subtract'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return `0` when no arguments are given', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(), 0);
- });
-
- QUnit.test('`_.' + methodName + '` should work with only one defined argument', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(func(6), 6);
- assert.strictEqual(func(6, undefined), 6);
- assert.strictEqual(func(undefined, 4), 4);
- });
-
- QUnit.test('`_.' + methodName + '` should preserve the sign of `0`', function(assert) {
- assert.expect(2);
-
- var values = [0, '0', -0, '-0'],
- expected = [[0, Infinity], ['0', Infinity], [-0, -Infinity], ['-0', -Infinity]];
-
- lodashStable.times(2, function(index) {
- var actual = lodashStable.map(values, function(value) {
- var result = index ? func(undefined, value) : func(value);
- return [result, 1 / result];
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should convert objects to `NaN`', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(func(0, {}), NaN);
- assert.deepEqual(func({}, 0), NaN);
- });
-
- QUnit.test('`_.' + methodName + '` should convert symbols to `NaN`', function(assert) {
- assert.expect(2);
-
- if (Symbol) {
- assert.deepEqual(func(0, symbol), NaN);
- assert.deepEqual(func(symbol, 0), NaN);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = _(1)[methodName](2);
- assert.notOk(actual instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = _(1).chain()[methodName](2);
- assert.ok(actual instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.sumBy');
-
- (function() {
- var array = [6, 4, 2],
- objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }];
-
- QUnit.test('should work with an `iteratee` argument', function(assert) {
- assert.expect(1);
-
- var actual = _.sumBy(objects, function(object) {
- return object.a;
- });
-
- assert.deepEqual(actual, 6);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.sumBy(array, function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [6]);
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(2);
-
- var arrays = [[2], [3], [1]];
- assert.strictEqual(_.sumBy(arrays, 0), 6);
- assert.strictEqual(_.sumBy(objects, 'a'), 6);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('sum methods');
-
- lodashStable.each(['sum', 'sumBy'], function(methodName) {
- var array = [6, 4, 2],
- func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return the sum of an array of numbers', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(array), 12);
- });
-
- QUnit.test('`_.' + methodName + '` should return `0` when passing empty `array` values', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(empties, stubZero);
-
- var actual = lodashStable.map(empties, function(value) {
- return func(value);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should skip `undefined` values', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func([1, undefined]), 1);
- });
-
- QUnit.test('`_.' + methodName + '` should not skip `NaN` values', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func([1, NaN]), NaN);
- });
-
- QUnit.test('`_.' + methodName + '` should not coerce values to numbers', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(func(['1', '2']), '12');
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.tail');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should accept a falsey `array` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubArray);
-
- var actual = lodashStable.map(falsey, function(array, index) {
- try {
- return index ? _.tail(array) : _.tail();
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should exclude the first element', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.tail(array), [2, 3]);
- });
-
- QUnit.test('should return an empty when querying empty arrays', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.tail([]), []);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
- actual = lodashStable.map(array, _.tail);
-
- assert.deepEqual(actual, [[2, 3], [5, 6], [8, 9]]);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- values = [];
-
- var actual = _(array).tail().filter(function(value) {
- values.push(value);
- return false;
- })
- .value();
-
- assert.deepEqual(actual, []);
- assert.deepEqual(values, array.slice(1));
-
- values = [];
-
- actual = _(array).filter(function(value) {
- values.push(value);
- return isEven(value);
- })
- .tail()
- .value();
-
- assert.deepEqual(actual, _.tail(_.filter(array, isEven)));
- assert.deepEqual(values, array);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should not execute subsequent iteratees on an empty array in a lazy sequence', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- iteratee = function() { pass = false; },
- pass = true,
- actual = _(array).slice(0, 1).tail().map(iteratee).value();
-
- assert.ok(pass);
- assert.deepEqual(actual, []);
-
- pass = true;
- actual = _(array).filter().slice(0, 1).tail().map(iteratee).value();
-
- assert.ok(pass);
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 4);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.take');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should take the first two elements', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.take(array, 2), [1, 2]);
- });
-
- QUnit.test('should treat falsey `n` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? [1] : [];
- });
-
- var actual = lodashStable.map(falsey, function(n) {
- return _.take(array, n);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return an empty array when `n` < `1`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([0, -1, -Infinity], function(n) {
- assert.deepEqual(_.take(array, n), []);
- });
- });
-
- QUnit.test('should return all elements when `n` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(n) {
- assert.deepEqual(_.take(array, n), array);
- });
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
- actual = lodashStable.map(array, _.take);
-
- assert.deepEqual(actual, [[1], [4], [7]]);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- var array = lodashStable.range(1, LARGE_ARRAY_SIZE + 1),
- predicate = function(value) { values.push(value); return isEven(value); },
- values = [],
- actual = _(array).take(2).take().value();
-
- assert.deepEqual(actual, _.take(_.take(array, 2)));
-
- actual = _(array).filter(predicate).take(2).take().value();
- assert.deepEqual(values, [1, 2]);
- assert.deepEqual(actual, _.take(_.take(_.filter(array, predicate), 2)));
-
- actual = _(array).take(6).takeRight(4).take(2).takeRight().value();
- assert.deepEqual(actual, _.takeRight(_.take(_.takeRight(_.take(array, 6), 4), 2)));
-
- values = [];
-
- actual = _(array).take(array.length - 1).filter(predicate).take(6).takeRight(4).take(2).takeRight().value();
- assert.deepEqual(values, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
- assert.deepEqual(actual, _.takeRight(_.take(_.takeRight(_.take(_.filter(_.take(array, array.length - 1), predicate), 6), 4), 2)));
- }
- else {
- skipAssert(assert, 6);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.takeRight');
-
- (function() {
- var array = [1, 2, 3];
-
- QUnit.test('should take the last two elements', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.takeRight(array, 2), [2, 3]);
- });
-
- QUnit.test('should treat falsey `n` values, except `undefined`, as `0`', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, function(value) {
- return value === undefined ? [3] : [];
- });
-
- var actual = lodashStable.map(falsey, function(n) {
- return _.takeRight(array, n);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return an empty array when `n` < `1`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([0, -1, -Infinity], function(n) {
- assert.deepEqual(_.takeRight(array, n), []);
- });
- });
-
- QUnit.test('should return all elements when `n` >= `length`', function(assert) {
- assert.expect(4);
-
- lodashStable.each([3, 4, Math.pow(2, 32), Infinity], function(n) {
- assert.deepEqual(_.takeRight(array, n), array);
- });
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
- actual = lodashStable.map(array, _.takeRight);
-
- assert.deepEqual(actual, [[3], [6], [9]]);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(6);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- predicate = function(value) { values.push(value); return isEven(value); },
- values = [],
- actual = _(array).takeRight(2).takeRight().value();
-
- assert.deepEqual(actual, _.takeRight(_.takeRight(array)));
-
- actual = _(array).filter(predicate).takeRight(2).takeRight().value();
- assert.deepEqual(values, array);
- assert.deepEqual(actual, _.takeRight(_.takeRight(_.filter(array, predicate), 2)));
-
- actual = _(array).takeRight(6).take(4).takeRight(2).take().value();
- assert.deepEqual(actual, _.take(_.takeRight(_.take(_.takeRight(array, 6), 4), 2)));
-
- values = [];
-
- actual = _(array).filter(predicate).takeRight(6).take(4).takeRight(2).take().value();
- assert.deepEqual(values, array);
- assert.deepEqual(actual, _.take(_.takeRight(_.take(_.takeRight(_.filter(array, predicate), 6), 4), 2)));
- }
- else {
- skipAssert(assert, 6);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.takeRightWhile');
-
- (function() {
- var array = [1, 2, 3, 4];
-
- var objects = [
- { 'a': 0, 'b': 0 },
- { 'a': 1, 'b': 1 },
- { 'a': 2, 'b': 2 }
- ];
-
- QUnit.test('should take elements while `predicate` returns truthy', function(assert) {
- assert.expect(1);
-
- var actual = _.takeRightWhile(array, function(n) {
- return n > 2;
- });
-
- assert.deepEqual(actual, [3, 4]);
- });
-
- QUnit.test('should provide the correct `predicate` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.takeRightWhile(array, function() {
- args = slice.call(arguments);
- });
-
- assert.deepEqual(args, [4, 3, array]);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.takeRightWhile(objects, { 'b': 2 }), objects.slice(2));
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.takeRightWhile(objects, ['b', 2]), objects.slice(2));
- });
-
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.takeRightWhile(objects, 'b'), objects.slice(1));
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(3);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- predicate = function(n) { return n > 2; },
- expected = _.takeRightWhile(array, predicate),
- wrapped = _(array).takeRightWhile(predicate);
-
- assert.deepEqual(wrapped.value(), expected);
- assert.deepEqual(wrapped.reverse().value(), expected.slice().reverse());
- assert.strictEqual(wrapped.last(), _.last(expected));
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should provide the correct `predicate` arguments in a lazy sequence', function(assert) {
- assert.expect(5);
-
- if (!isNpm) {
- var args,
- array = lodashStable.range(LARGE_ARRAY_SIZE + 1),
- expected = [square(LARGE_ARRAY_SIZE), LARGE_ARRAY_SIZE - 1, lodashStable.map(array.slice(1), square)];
-
- _(array).slice(1).takeRightWhile(function(value, index, array) {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, [LARGE_ARRAY_SIZE, LARGE_ARRAY_SIZE - 1, array.slice(1)]);
-
- _(array).slice(1).map(square).takeRightWhile(function(value, index, array) {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, expected);
-
- _(array).slice(1).map(square).takeRightWhile(function(value, index) {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, expected);
-
- _(array).slice(1).map(square).takeRightWhile(function(index) {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, [square(LARGE_ARRAY_SIZE)]);
-
- _(array).slice(1).map(square).takeRightWhile(function() {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, expected);
- }
- else {
- skipAssert(assert, 5);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.takeWhile');
-
- (function() {
- var array = [1, 2, 3, 4];
-
- var objects = [
- { 'a': 2, 'b': 2 },
- { 'a': 1, 'b': 1 },
- { 'a': 0, 'b': 0 }
- ];
-
- QUnit.test('should take elements while `predicate` returns truthy', function(assert) {
- assert.expect(1);
-
- var actual = _.takeWhile(array, function(n) {
- return n < 3;
- });
-
- assert.deepEqual(actual, [1, 2]);
- });
-
- QUnit.test('should provide the correct `predicate` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.takeWhile(array, function() {
- args = slice.call(arguments);
- });
-
- assert.deepEqual(args, [1, 0, array]);
- });
-
- QUnit.test('should work with `_.matches` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.takeWhile(objects, { 'b': 2 }), objects.slice(0, 1));
- });
-
- QUnit.test('should work with `_.matchesProperty` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.takeWhile(objects, ['b', 2]), objects.slice(0, 1));
- });
- QUnit.test('should work with `_.property` shorthands', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.takeWhile(objects, 'b'), objects.slice(0, 2));
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(3);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- predicate = function(n) { return n < 3; },
- expected = _.takeWhile(array, predicate),
- wrapped = _(array).takeWhile(predicate);
-
- assert.deepEqual(wrapped.value(), expected);
- assert.deepEqual(wrapped.reverse().value(), expected.slice().reverse());
- assert.strictEqual(wrapped.last(), _.last(expected));
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should work in a lazy sequence with `take`', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE);
-
- var actual = _(array)
- .takeWhile(function(n) { return n < 4; })
- .take(2)
- .takeWhile(function(n) { return n == 0; })
- .value();
-
- assert.deepEqual(actual, [0]);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should provide the correct `predicate` arguments in a lazy sequence', function(assert) {
- assert.expect(5);
-
- if (!isNpm) {
- var args,
- array = lodashStable.range(LARGE_ARRAY_SIZE + 1),
- expected = [1, 0, lodashStable.map(array.slice(1), square)];
-
- _(array).slice(1).takeWhile(function(value, index, array) {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, [1, 0, array.slice(1)]);
-
- _(array).slice(1).map(square).takeWhile(function(value, index, array) {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, expected);
-
- _(array).slice(1).map(square).takeWhile(function(value, index) {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, expected);
-
- _(array).slice(1).map(square).takeWhile(function(value) {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, [1]);
-
- _(array).slice(1).map(square).takeWhile(function() {
- args = slice.call(arguments);
- }).value();
-
- assert.deepEqual(args, expected);
- }
- else {
- skipAssert(assert, 5);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.tap');
-
- (function() {
- QUnit.test('should intercept and return the given value', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var intercepted,
- array = [1, 2, 3];
-
- var actual = _.tap(array, function(value) {
- intercepted = value;
- });
-
- assert.strictEqual(actual, array);
- assert.strictEqual(intercepted, array);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should intercept unwrapped values and return wrapped values when chaining', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var intercepted,
- array = [1, 2, 3];
-
- var wrapped = _(array).tap(function(value) {
- intercepted = value;
- value.pop();
- });
-
- assert.ok(wrapped instanceof _);
-
- wrapped.value();
- assert.strictEqual(intercepted, array);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.template');
-
- (function() {
- QUnit.test('should escape values in "escape" delimiters', function(assert) {
- assert.expect(1);
-
- var strings = ['<p><%- value %></p>', '<p><%-value%></p>', '<p><%-\nvalue\n%></p>'],
- expected = lodashStable.map(strings, lodashStable.constant('<p>&amp;&lt;&gt;&quot;&#39;&#96;\/</p>')),
- data = { 'value': '&<>"\'`\/' };
-
- var actual = lodashStable.map(strings, function(string) {
- return _.template(string)(data);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not reference `_.escape` when "escape" delimiters are not used', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%= typeof __e %>');
- assert.strictEqual(compiled({}), 'undefined');
- });
-
- QUnit.test('should evaluate JavaScript in "evaluate" delimiters', function(assert) {
- assert.expect(1);
-
- var compiled = _.template(
- '<ul><%\
- for (var key in collection) {\
- %><li><%= collection[key] %></li><%\
- } %></ul>'
- );
-
- var data = { 'collection': { 'a': 'A', 'b': 'B' } },
- actual = compiled(data);
-
- assert.strictEqual(actual, '<ul><li>A</li><li>B</li></ul>');
- });
-
- QUnit.test('should support "evaluate" delimiters with single line comments (test production builds)', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<% // A code comment. %><% if (value) { %>yap<% } else { %>nope<% } %>'),
- data = { 'value': true };
-
- assert.strictEqual(compiled(data), 'yap');
- });
-
- QUnit.test('should support referencing variables declared in "evaluate" delimiters from other delimiters', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<% var b = a; %><%= b.value %>'),
- data = { 'a': { 'value': 1 } };
-
- assert.strictEqual(compiled(data), '1');
- });
-
- QUnit.test('should interpolate data properties in "interpolate" delimiters', function(assert) {
- assert.expect(1);
-
- var strings = ['<%= a %>BC', '<%=a%>BC', '<%=\na\n%>BC'],
- expected = lodashStable.map(strings, lodashStable.constant('ABC')),
- data = { 'a': 'A' };
-
- var actual = lodashStable.map(strings, function(string) {
- return _.template(string)(data);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should support "interpolate" delimiters with escaped values', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%= a ? "a=\\"A\\"" : "" %>'),
- data = { 'a': true };
-
- assert.strictEqual(compiled(data), 'a="A"');
- });
-
- QUnit.test('should support "interpolate" delimiters containing ternary operators', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%= value ? value : "b" %>'),
- data = { 'value': 'a' };
-
- assert.strictEqual(compiled(data), 'a');
- });
-
- QUnit.test('should support "interpolate" delimiters containing global values', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%= typeof Math.abs %>');
-
- try {
- var actual = compiled();
- } catch (e) {}
-
- assert.strictEqual(actual, 'function');
- });
-
- QUnit.test('should support complex "interpolate" delimiters', function(assert) {
- assert.expect(22);
-
- lodashStable.forOwn({
- '<%= a + b %>': '3',
- '<%= b - a %>': '1',
- '<%= a = b %>': '2',
- '<%= !a %>': 'false',
- '<%= ~a %>': '-2',
- '<%= a * b %>': '2',
- '<%= a / b %>': '0.5',
- '<%= a % b %>': '1',
- '<%= a >> b %>': '0',
- '<%= a << b %>': '4',
- '<%= a & b %>': '0',
- '<%= a ^ b %>': '3',
- '<%= a | b %>': '3',
- '<%= {}.toString.call(0) %>': numberTag,
- '<%= a.toFixed(2) %>': '1.00',
- '<%= obj["a"] %>': '1',
- '<%= delete a %>': 'true',
- '<%= "a" in obj %>': 'true',
- '<%= obj instanceof Object %>': 'true',
- '<%= new Boolean %>': 'false',
- '<%= typeof a %>': 'number',
- '<%= void a %>': ''
- },
- function(value, key) {
- var compiled = _.template(key),
- data = { 'a': 1, 'b': 2 };
-
- assert.strictEqual(compiled(data), value, key);
- });
- });
-
- QUnit.test('should support ES6 template delimiters', function(assert) {
- assert.expect(2);
-
- var data = { 'value': 2 };
- assert.strictEqual(_.template('1${value}3')(data), '123');
- assert.strictEqual(_.template('${"{" + value + "\\}"}')(data), '{2}');
- });
-
- QUnit.test('should support the "imports" option', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%= a %>', { 'imports': { 'a': 1 } });
- assert.strictEqual(compiled({}), '1');
- });
-
- QUnit.test('should support the "variable" options', function(assert) {
- assert.expect(1);
-
- var compiled = _.template(
- '<% _.each( data.a, function( value ) { %>' +
- '<%= value.valueOf() %>' +
- '<% }) %>', { 'variable': 'data' }
- );
-
- var data = { 'a': [1, 2, 3] };
-
- try {
- assert.strictEqual(compiled(data), '123');
- } catch (e) {
- assert.ok(false, e.message);
- }
- });
-
- QUnit.test('should support custom delimiters', function(assert) {
- assert.expect(2);
-
- lodashStable.times(2, function(index) {
- var settingsClone = lodashStable.clone(_.templateSettings);
-
- var settings = lodashStable.assign(index ? _.templateSettings : {}, {
- 'escape': /\{\{-([\s\S]+?)\}\}/g,
- 'evaluate': /\{\{([\s\S]+?)\}\}/g,
- 'interpolate': /\{\{=([\s\S]+?)\}\}/g
- });
-
- var expected = '<ul><li>0: a &amp; A</li><li>1: b &amp; B</li></ul>',
- compiled = _.template('<ul>{{ _.each(collection, function(value, index) {}}<li>{{= index }}: {{- value }}</li>{{}); }}</ul>', index ? null : settings),
- data = { 'collection': ['a & A', 'b & B'] };
-
- assert.strictEqual(compiled(data), expected);
- lodashStable.assign(_.templateSettings, settingsClone);
- });
- });
-
- QUnit.test('should support custom delimiters containing special characters', function(assert) {
- assert.expect(2);
-
- lodashStable.times(2, function(index) {
- var settingsClone = lodashStable.clone(_.templateSettings);
-
- var settings = lodashStable.assign(index ? _.templateSettings : {}, {
- 'escape': /<\?-([\s\S]+?)\?>/g,
- 'evaluate': /<\?([\s\S]+?)\?>/g,
- 'interpolate': /<\?=([\s\S]+?)\?>/g
- });
-
- var expected = '<ul><li>0: a &amp; A</li><li>1: b &amp; B</li></ul>',
- compiled = _.template('<ul><? _.each(collection, function(value, index) { ?><li><?= index ?>: <?- value ?></li><? }); ?></ul>', index ? null : settings),
- data = { 'collection': ['a & A', 'b & B'] };
-
- assert.strictEqual(compiled(data), expected);
- lodashStable.assign(_.templateSettings, settingsClone);
- });
- });
-
- QUnit.test('should use a `with` statement by default', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%= index %><%= collection[index] %><% _.each(collection, function(value, index) { %><%= index %><% }); %>'),
- actual = compiled({ 'index': 1, 'collection': ['a', 'b', 'c'] });
-
- assert.strictEqual(actual, '1b012');
- });
-
- QUnit.test('should use `_.templateSettings.imports._.templateSettings`', function(assert) {
- assert.expect(1);
-
- var lodash = _.templateSettings.imports._,
- settingsClone = lodashStable.clone(lodash.templateSettings);
-
- lodash.templateSettings = lodashStable.assign(lodash.templateSettings, {
- 'interpolate': /\{\{=([\s\S]+?)\}\}/g
- });
-
- var compiled = _.template('{{= a }}');
- assert.strictEqual(compiled({ 'a': 1 }), '1');
-
- if (settingsClone) {
- lodashStable.assign(lodash.templateSettings, settingsClone);
- } else {
- delete lodash.templateSettings;
- }
- });
-
- QUnit.test('should fallback to `_.templateSettings`', function(assert) {
- assert.expect(1);
-
- var lodash = _.templateSettings.imports._,
- delimiter = _.templateSettings.interpolate;
-
- _.templateSettings.imports._ = { 'escape': lodashStable.escape };
- _.templateSettings.interpolate = /\{\{=([\s\S]+?)\}\}/g;
-
- var compiled = _.template('{{= a }}');
- assert.strictEqual(compiled({ 'a': 1 }), '1');
-
- _.templateSettings.imports._ = lodash;
- _.templateSettings.interpolate = delimiter;
- });
-
- QUnit.test('should ignore `null` delimiters', function(assert) {
- assert.expect(3);
-
- var delimiter = {
- 'escape': /\{\{-([\s\S]+?)\}\}/g,
- 'evaluate': /\{\{([\s\S]+?)\}\}/g,
- 'interpolate': /\{\{=([\s\S]+?)\}\}/g
- };
-
- lodashStable.forOwn({
- 'escape': '{{- a }}',
- 'evaluate': '{{ print(a) }}',
- 'interpolate': '{{= a }}'
- },
- function(value, key) {
- var settings = { 'escape': null, 'evaluate': null, 'interpolate': null };
- settings[key] = delimiter[key];
-
- var expected = '1 <%- a %> <% print(a) %> <%= a %>',
- compiled = _.template(value + ' <%- a %> <% print(a) %> <%= a %>', settings),
- data = { 'a': 1 };
-
- assert.strictEqual(compiled(data), expected);
- });
- });
-
- QUnit.test('should work without delimiters', function(assert) {
- assert.expect(1);
-
- var expected = 'abc';
- assert.strictEqual(_.template(expected)({}), expected);
- });
-
- QUnit.test('should work with `this` references', function(assert) {
- assert.expect(2);
-
- var compiled = _.template('a<%= this.String("b") %>c');
- assert.strictEqual(compiled(), 'abc');
-
- var object = { 'b': 'B' };
- object.compiled = _.template('A<%= this.b %>C', { 'variable': 'obj' });
- assert.strictEqual(object.compiled(), 'ABC');
- });
-
- QUnit.test('should work with backslashes', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%= a %> \\b'),
- data = { 'a': 'A' };
-
- assert.strictEqual(compiled(data), 'A \\b');
- });
-
- QUnit.test('should work with escaped characters in string literals', function(assert) {
- assert.expect(2);
-
- var compiled = _.template('<% print("\'\\n\\r\\t\\u2028\\u2029\\\\") %>');
- assert.strictEqual(compiled(), "'\n\r\t\u2028\u2029\\");
-
- var data = { 'a': 'A' };
- compiled = _.template('\'\n\r\t<%= a %>\u2028\u2029\\"');
- assert.strictEqual(compiled(data), '\'\n\r\tA\u2028\u2029\\"');
- });
-
- QUnit.test('should handle \\u2028 & \\u2029 characters', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('\u2028<%= "\\u2028\\u2029" %>\u2029');
- assert.strictEqual(compiled(), '\u2028\u2028\u2029\u2029');
- });
-
- QUnit.test('should work with statements containing quotes', function(assert) {
- assert.expect(1);
-
- var compiled = _.template("<%\
- if (a == 'A' || a == \"a\") {\
- %>'a',\"A\"<%\
- } %>"
- );
-
- var data = { 'a': 'A' };
- assert.strictEqual(compiled(data), "'a',\"A\"");
- });
-
- QUnit.test('should work with templates containing newlines and comments', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%\n\
- // A code comment.\n\
- if (value) { value += 3; }\n\
- %><p><%= value %></p>'
- );
-
- assert.strictEqual(compiled({ 'value': 3 }), '<p>6</p>');
- });
-
- QUnit.test('should not error with IE conditional comments enabled (test with development build)', function(assert) {
- assert.expect(1);
-
- var compiled = _.template(''),
- pass = true;
-
- /*@cc_on @*/
- try {
- compiled();
- } catch (e) {
- pass = false;
- }
- assert.ok(pass);
- });
-
- QUnit.test('should tokenize delimiters', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<span class="icon-<%= type %>2"></span>'),
- data = { 'type': 1 };
-
- assert.strictEqual(compiled(data), '<span class="icon-12"></span>');
- });
-
- QUnit.test('should evaluate delimiters once', function(assert) {
- assert.expect(1);
-
- var actual = [],
- compiled = _.template('<%= func("a") %><%- func("b") %><% func("c") %>'),
- data = { 'func': function(value) { actual.push(value); } };
-
- compiled(data);
- assert.deepEqual(actual, ['a', 'b', 'c']);
- });
-
- QUnit.test('should match delimiters before escaping text', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<<\n a \n>>', { 'evaluate': /<<(.*?)>>/g });
- assert.strictEqual(compiled(), '<<\n a \n>>');
- });
-
- QUnit.test('should resolve nullish values to an empty string', function(assert) {
- assert.expect(3);
-
- var compiled = _.template('<%= a %><%- a %>'),
- data = { 'a': null };
-
- assert.strictEqual(compiled(data), '');
-
- data = { 'a': undefined };
- assert.strictEqual(compiled(data), '');
-
- data = { 'a': {} };
- compiled = _.template('<%= a.b %><%- a.b %>');
- assert.strictEqual(compiled(data), '');
- });
-
- QUnit.test('should return an empty string for empty values', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined, ''],
- expected = lodashStable.map(values, stubString),
- data = { 'a': 1 };
-
- var actual = lodashStable.map(values, function(value, index) {
- var compiled = index ? _.template(value) : _.template();
- return compiled(data);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should parse delimiters without newlines', function(assert) {
- assert.expect(1);
-
- var expected = '<<\nprint("<p>" + (value ? "yes" : "no") + "</p>")\n>>',
- compiled = _.template(expected, { 'evaluate': /<<(.+?)>>/g }),
- data = { 'value': true };
-
- assert.strictEqual(compiled(data), expected);
- });
-
- QUnit.test('should support recursive calls', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('<%= a %><% a = _.template(c)(obj) %><%= a %>'),
- data = { 'a': 'A', 'b': 'B', 'c': '<%= b %>' };
-
- assert.strictEqual(compiled(data), 'AB');
- });
-
- QUnit.test('should coerce `text` argument to a string', function(assert) {
- assert.expect(1);
-
- var object = { 'toString': lodashStable.constant('<%= a %>') },
- data = { 'a': 1 };
-
- assert.strictEqual(_.template(object)(data), '1');
- });
-
- QUnit.test('should not modify the `options` object', function(assert) {
- assert.expect(1);
-
- var options = {};
- _.template('', options);
- assert.deepEqual(options, {});
- });
-
- QUnit.test('should not modify `_.templateSettings` when `options` are given', function(assert) {
- assert.expect(2);
-
- var data = { 'a': 1 };
-
- assert.notOk('a' in _.templateSettings);
- _.template('', {}, data);
- assert.notOk('a' in _.templateSettings);
-
- delete _.templateSettings.a;
- });
-
- QUnit.test('should not error for non-object `data` and `options` values', function(assert) {
- assert.expect(2);
-
- var pass = true;
-
- try {
- _.template('')(1);
- } catch (e) {
- pass = false;
- }
- assert.ok(pass, '`data` value');
-
- pass = true;
-
- try {
- _.template('', 1)(1);
- } catch (e) {
- pass = false;
- }
- assert.ok(pass, '`options` value');
- });
-
- QUnit.test('should expose the source on compiled templates', function(assert) {
- assert.expect(1);
-
- var compiled = _.template('x'),
- values = [String(compiled), compiled.source],
- expected = lodashStable.map(values, stubTrue);
-
- var actual = lodashStable.map(values, function(value) {
- return lodashStable.includes(value, '__p');
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should expose the source on SyntaxErrors', function(assert) {
- assert.expect(1);
-
- try {
- _.template('<% if x %>');
- } catch (e) {
- var source = e.source;
- }
- assert.ok(lodashStable.includes(source, '__p'));
- });
-
- QUnit.test('should not include sourceURLs in the source', function(assert) {
- assert.expect(1);
-
- var options = { 'sourceURL': '/a/b/c' },
- compiled = _.template('x', options),
- values = [compiled.source, undefined];
-
- try {
- _.template('<% if x %>', options);
- } catch (e) {
- values[1] = e.source;
- }
- var expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(values, function(value) {
- return lodashStable.includes(value, 'sourceURL');
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = ['<%= a %>', '<%- b %>', '<% print(c) %>'],
- compiles = lodashStable.map(array, _.template),
- data = { 'a': 'one', 'b': '`two`', 'c': 'three' };
-
- var actual = lodashStable.map(compiles, function(compiled) {
- return compiled(data);
- });
-
- assert.deepEqual(actual, ['one', '&#96;two&#96;', 'three']);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.truncate');
-
- (function() {
- var string = 'hi-diddly-ho there, neighborino';
-
- QUnit.test('should use a default `length` of `30`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.truncate(string), 'hi-diddly-ho there, neighbo...');
- });
-
- QUnit.test('should not truncate if `string` is <= `length`', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.truncate(string, { 'length': string.length }), string);
- assert.strictEqual(_.truncate(string, { 'length': string.length + 2 }), string);
- });
-
- QUnit.test('should truncate string the given length', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.truncate(string, { 'length': 24 }), 'hi-diddly-ho there, n...');
- });
-
- QUnit.test('should support a `omission` option', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.truncate(string, { 'omission': ' [...]' }), 'hi-diddly-ho there, neig [...]');
- });
-
- QUnit.test('should coerce nullish `omission` values to strings', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.truncate(string, { 'omission': null }), 'hi-diddly-ho there, neighbnull');
- assert.strictEqual(_.truncate(string, { 'omission': undefined }), 'hi-diddly-ho there, nundefined');
- });
-
- QUnit.test('should support a `length` option', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.truncate(string, { 'length': 4 }), 'h...');
- });
-
- QUnit.test('should support a `separator` option', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.truncate(string, { 'length': 24, 'separator': ' ' }), 'hi-diddly-ho there,...');
- assert.strictEqual(_.truncate(string, { 'length': 24, 'separator': /,? +/ }), 'hi-diddly-ho there...');
- assert.strictEqual(_.truncate(string, { 'length': 24, 'separator': /,? +/g }), 'hi-diddly-ho there...');
- });
-
- QUnit.test('should treat negative `length` as `0`', function(assert) {
- assert.expect(2);
-
- lodashStable.each([0, -2], function(length) {
- assert.strictEqual(_.truncate(string, { 'length': length }), '...');
- });
- });
-
- QUnit.test('should coerce `length` to an integer', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['', NaN, 4.6, '4'], function(length, index) {
- var actual = index > 1 ? 'h...' : '...';
- assert.strictEqual(_.truncate(string, { 'length': { 'valueOf': lodashStable.constant(length) } }), actual);
- });
- });
-
- QUnit.test('should coerce `string` to a string', function(assert) {
- assert.expect(2);
-
- assert.strictEqual(_.truncate(Object(string), { 'length': 4 }), 'h...');
- assert.strictEqual(_.truncate({ 'toString': lodashStable.constant(string) }, { 'length': 5 }), 'hi...');
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map([string, string, string], _.truncate),
- truncated = 'hi-diddly-ho there, neighbo...';
-
- assert.deepEqual(actual, [truncated, truncated, truncated]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.throttle');
-
- (function() {
- QUnit.test('should throttle a function', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var callCount = 0,
- throttled = _.throttle(function() { callCount++; }, 32);
-
- throttled();
- throttled();
- throttled();
-
- var lastCount = callCount;
- assert.ok(callCount);
-
- setTimeout(function() {
- assert.ok(callCount > lastCount);
- done();
- }, 64);
- });
-
- QUnit.test('subsequent calls should return the result of the first call', function(assert) {
- assert.expect(5);
-
- var done = assert.async();
-
- var throttled = _.throttle(identity, 32),
- results = [throttled('a'), throttled('b')];
-
- assert.deepEqual(results, ['a', 'a']);
-
- setTimeout(function() {
- var results = [throttled('c'), throttled('d')];
- assert.notEqual(results[0], 'a');
- assert.notStrictEqual(results[0], undefined);
-
- assert.notEqual(results[1], 'd');
- assert.notStrictEqual(results[1], undefined);
- done();
- }, 64);
- });
-
- QUnit.test('should clear timeout when `func` is called', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- if (!isModularize) {
- var callCount = 0,
- dateCount = 0;
-
- var lodash = _.runInContext({
- 'Date': {
- 'now': function() {
- return ++dateCount == 5 ? Infinity : +new Date;
- }
- }
- });
-
- var throttled = lodash.throttle(function() { callCount++; }, 32);
-
- throttled();
- throttled();
-
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- done();
- }, 64);
- }
- else {
- skipAssert(assert);
- done();
- }
- });
-
- QUnit.test('should not trigger a trailing call when invoked once', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var callCount = 0,
- throttled = _.throttle(function() { callCount++; }, 32);
-
- throttled();
- assert.strictEqual(callCount, 1);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 1);
- done();
- }, 64);
- });
-
- lodashStable.times(2, function(index) {
- QUnit.test('should trigger a call when invoked repeatedly' + (index ? ' and `leading` is `false`' : ''), function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var callCount = 0,
- limit = (argv || isPhantom) ? 1000 : 320,
- options = index ? { 'leading': false } : {},
- throttled = _.throttle(function() { callCount++; }, 32, options);
-
- var start = +new Date;
- while ((new Date - start) < limit) {
- throttled();
- }
- var actual = callCount > 1;
- setTimeout(function() {
- assert.ok(actual);
- done();
- }, 1);
- });
- });
-
- QUnit.test('should trigger a second throttled call as soon as possible', function(assert) {
- assert.expect(3);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var throttled = _.throttle(function() {
- callCount++;
- }, 128, { 'leading': false });
-
- throttled();
-
- setTimeout(function() {
- assert.strictEqual(callCount, 1);
- throttled();
- }, 192);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 1);
- }, 254);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- done();
- }, 384);
- });
-
- QUnit.test('should apply default options', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var callCount = 0,
- throttled = _.throttle(function() { callCount++; }, 32, {});
-
- throttled();
- throttled();
- assert.strictEqual(callCount, 1);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- done();
- }, 128);
- });
-
- QUnit.test('should support a `leading` option', function(assert) {
- assert.expect(2);
-
- var withLeading = _.throttle(identity, 32, { 'leading': true });
- assert.strictEqual(withLeading('a'), 'a');
-
- var withoutLeading = _.throttle(identity, 32, { 'leading': false });
- assert.strictEqual(withoutLeading('a'), undefined);
- });
-
- QUnit.test('should support a `trailing` option', function(assert) {
- assert.expect(6);
-
- var done = assert.async();
-
- var withCount = 0,
- withoutCount = 0;
-
- var withTrailing = _.throttle(function(value) {
- withCount++;
- return value;
- }, 64, { 'trailing': true });
-
- var withoutTrailing = _.throttle(function(value) {
- withoutCount++;
- return value;
- }, 64, { 'trailing': false });
-
- assert.strictEqual(withTrailing('a'), 'a');
- assert.strictEqual(withTrailing('b'), 'a');
-
- assert.strictEqual(withoutTrailing('a'), 'a');
- assert.strictEqual(withoutTrailing('b'), 'a');
-
- setTimeout(function() {
- assert.strictEqual(withCount, 2);
- assert.strictEqual(withoutCount, 1);
- done();
- }, 256);
- });
-
- QUnit.test('should not update `lastCalled`, at the end of the timeout, when `trailing` is `false`', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var throttled = _.throttle(function() {
- callCount++;
- }, 64, { 'trailing': false });
-
- throttled();
- throttled();
-
- setTimeout(function() {
- throttled();
- throttled();
- }, 96);
-
- setTimeout(function() {
- assert.ok(callCount > 1);
- done();
- }, 192);
- });
-
- QUnit.test('should work with a system time of `0`', function(assert) {
- assert.expect(3);
-
- var done = assert.async();
-
- if (!isModularize) {
- var callCount = 0,
- dateCount = 0;
-
- var lodash = _.runInContext({
- 'Date': {
- 'now': function() {
- return ++dateCount < 4 ? 0 : +new Date;
- }
- }
- });
-
- var throttled = lodash.throttle(function(value) {
- callCount++;
- return value;
- }, 32);
-
- var results = [throttled('a'), throttled('b'), throttled('c')];
- assert.deepEqual(results, ['a', 'a', 'a']);
- assert.strictEqual(callCount, 1);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 2);
- done();
- }, 64);
- }
- else {
- skipAssert(assert, 3);
- done();
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.debounce and lodash.throttle');
-
- lodashStable.each(['debounce', 'throttle'], function(methodName) {
- var func = _[methodName],
- isDebounce = methodName == 'debounce';
-
- QUnit.test('`_.' + methodName + '` should not error for non-object `options` values', function(assert) {
- assert.expect(1);
-
- var pass = true;
-
- try {
- func(noop, 32, 1);
- } catch (e) {
- pass = false;
- }
- assert.ok(pass);
- });
-
- QUnit.test('`_.' + methodName + '` should use a default `wait` of `0`', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var callCount = 0,
- funced = func(function() { callCount++; });
-
- funced();
-
- setTimeout(function() {
- funced();
- assert.strictEqual(callCount, isDebounce ? 1 : 2);
- done();
- }, 32);
- });
-
- QUnit.test('`_.' + methodName + '` should invoke `func` with the correct `this` binding', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var actual = [],
- object = { 'funced': func(function() { actual.push(this); }, 32) },
- expected = lodashStable.times(isDebounce ? 1 : 2, lodashStable.constant(object));
-
- object.funced();
- if (!isDebounce) {
- object.funced();
- }
- setTimeout(function() {
- assert.deepEqual(actual, expected);
- done();
- }, 64);
- });
-
- QUnit.test('`_.' + methodName + '` supports recursive calls', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var actual = [],
- args = lodashStable.map(['a', 'b', 'c'], function(chr) { return [{}, chr]; }),
- expected = args.slice(),
- queue = args.slice();
-
- var funced = func(function() {
- var current = [this];
- push.apply(current, arguments);
- actual.push(current);
-
- var next = queue.shift();
- if (next) {
- funced.call(next[0], next[1]);
- }
- }, 32);
-
- var next = queue.shift();
- funced.call(next[0], next[1]);
- assert.deepEqual(actual, expected.slice(0, isDebounce ? 0 : 1));
-
- setTimeout(function() {
- assert.deepEqual(actual, expected.slice(0, actual.length));
- done();
- }, 256);
- });
-
- QUnit.test('`_.' + methodName + '` should work if the system time is set backwards', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- if (!isModularize) {
- var callCount = 0,
- dateCount = 0;
-
- var lodash = _.runInContext({
- 'Date': {
- 'now': function() {
- return ++dateCount == 4
- ? +new Date(2012, 3, 23, 23, 27, 18)
- : +new Date;
- }
- }
- });
-
- var funced = lodash[methodName](function() {
- callCount++;
- }, 32);
-
- funced();
-
- setTimeout(function() {
- funced();
- assert.strictEqual(callCount, isDebounce ? 1 : 2);
- done();
- }, 64);
- }
- else {
- skipAssert(assert);
- done();
- }
- });
-
- QUnit.test('`_.' + methodName + '` should support cancelling delayed calls', function(assert) {
- assert.expect(1);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var funced = func(function() {
- callCount++;
- }, 32, { 'leading': false });
-
- funced();
- funced.cancel();
-
- setTimeout(function() {
- assert.strictEqual(callCount, 0);
- done();
- }, 64);
- });
-
- QUnit.test('`_.' + methodName + '` should reset `lastCalled` after cancelling', function(assert) {
- assert.expect(3);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var funced = func(function() {
- return ++callCount;
- }, 32, { 'leading': true });
-
- assert.strictEqual(funced(), 1);
- funced.cancel();
-
- assert.strictEqual(funced(), 2);
- funced();
-
- setTimeout(function() {
- assert.strictEqual(callCount, 3);
- done();
- }, 64);
- });
-
- QUnit.test('`_.' + methodName + '` should support flushing delayed calls', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var callCount = 0;
-
- var funced = func(function() {
- return ++callCount;
- }, 32, { 'leading': false });
-
- funced();
- assert.strictEqual(funced.flush(), 1);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 1);
- done();
- }, 64);
- });
-
- QUnit.test('`_.' + methodName + '` should noop `cancel` and `flush` when nothing is queued', function(assert) {
- assert.expect(2);
-
- var done = assert.async();
-
- var callCount = 0,
- funced = func(function() { callCount++; }, 32);
-
- funced.cancel();
- assert.strictEqual(funced.flush(), undefined);
-
- setTimeout(function() {
- assert.strictEqual(callCount, 0);
- done();
- }, 64);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.times');
-
- (function() {
- QUnit.test('should coerce non-finite `n` values to `0`', function(assert) {
- assert.expect(3);
-
- lodashStable.each([-Infinity, NaN, Infinity], function(n) {
- assert.deepEqual(_.times(n), []);
- });
- });
-
- QUnit.test('should coerce `n` to an integer', function(assert) {
- assert.expect(1);
-
- var actual = _.times(2.6, _.indentify);
- assert.deepEqual(actual, [0, 1]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.times(1, function(assert) {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [0]);
- });
-
- QUnit.test('should use `_.identity` when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant([0, 1, 2]));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.times(3, value) : _.times(3);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return an array of the results of each `iteratee` execution', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.times(3, doubled), [0, 2, 4]);
- });
-
- QUnit.test('should return an empty array for falsey and negative `n` arguments', function(assert) {
- assert.expect(1);
-
- var values = falsey.concat(-1, -Infinity),
- expected = lodashStable.map(values, stubArray);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.times(value) : _.times();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.deepEqual(_(3).times(), [0, 1, 2]);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- assert.ok(_(3).chain().times() instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toArray');
-
- (function() {
- QUnit.test('should convert objects to arrays', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(_.toArray({ 'a': 1, 'b': 2 }), [1, 2]);
- });
-
- QUnit.test('should convert iterables to arrays', function(assert) {
- assert.expect(1);
-
- if (!isNpm && Symbol && Symbol.iterator) {
- var object = { '0': 'a', 'length': 1 };
- object[Symbol.iterator] = arrayProto[Symbol.iterator];
-
- assert.deepEqual(_.toArray(object), ['a']);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should convert maps to arrays', function(assert) {
- assert.expect(1);
-
- if (Map) {
- var map = new Map;
- map.set('a', 1);
- map.set('b', 2);
- assert.deepEqual(_.toArray(map), [['a', 1], ['b', 2]]);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should convert strings to arrays', function(assert) {
- assert.expect(3);
-
- assert.deepEqual(_.toArray(''), []);
- assert.deepEqual(_.toArray('ab'), ['a', 'b']);
- assert.deepEqual(_.toArray(Object('ab')), ['a', 'b']);
- });
-
- QUnit.test('should work in a lazy sequence', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE + 1),
- actual = _(array).slice(1).map(String).toArray().value();
-
- assert.deepEqual(actual, lodashStable.map(array.slice(1), String));
-
- var object = lodashStable.zipObject(lodashStable.times(LARGE_ARRAY_SIZE, function(index) {
- return ['key' + index, index];
- }));
-
- actual = _(object).toArray().slice(1).map(String).value();
- assert.deepEqual(actual, _.map(_.toArray(object).slice(1), String));
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toLower');
-
- (function() {
- QUnit.test('should convert whole string to lower case', function(assert) {
- assert.expect(3);
-
- assert.deepEqual(_.toLower('--Foo-Bar--'), '--foo-bar--');
- assert.deepEqual(_.toLower('fooBar'), 'foobar');
- assert.deepEqual(_.toLower('__FOO_BAR__'), '__foo_bar__');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toUpper');
-
- (function() {
- QUnit.test('should convert whole string to upper case', function(assert) {
- assert.expect(3);
-
- assert.deepEqual(_.toUpper('--Foo-Bar'), '--FOO-BAR');
- assert.deepEqual(_.toUpper('fooBar'), 'FOOBAR');
- assert.deepEqual(_.toUpper('__FOO_BAR__'), '__FOO_BAR__');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.slice and lodash.toArray');
-
- lodashStable.each(['slice', 'toArray'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- array = [1, 2, 3],
- func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return a dense array', function(assert) {
- assert.expect(3);
-
- var sparse = Array(3);
- sparse[1] = 2;
-
- var actual = func(sparse);
-
- assert.ok('0' in actual);
- assert.ok('2' in actual);
- assert.deepEqual(actual, sparse);
- });
-
- QUnit.test('`_.' + methodName + '` should treat array-like objects like arrays', function(assert) {
- assert.expect(2);
-
- var object = { '0': 'a', '1': 'b', '2': 'c', 'length': 3 };
- assert.deepEqual(func(object), ['a', 'b', 'c']);
- assert.deepEqual(func(args), array);
- });
-
- QUnit.test('`_.' + methodName + '` should return a shallow clone of arrays', function(assert) {
- assert.expect(2);
-
- var actual = func(array);
- assert.deepEqual(actual, array);
- assert.notStrictEqual(actual, array);
- });
-
- QUnit.test('`_.' + methodName + '` should work with a node list for `collection`', function(assert) {
- assert.expect(1);
-
- if (document) {
- try {
- var actual = func(document.getElementsByTagName('body'));
- } catch (e) {}
-
- assert.deepEqual(actual, [body]);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('toInteger methods');
-
- lodashStable.each(['toInteger', 'toSafeInteger'], function(methodName) {
- var func = _[methodName],
- isSafe = methodName == 'toSafeInteger';
-
- QUnit.test('`_.' + methodName + '` should convert values to integers', function(assert) {
- assert.expect(6);
-
- assert.strictEqual(func(-5.6), -5);
- assert.strictEqual(func('5.6'), 5);
- assert.strictEqual(func(), 0);
- assert.strictEqual(func(NaN), 0);
-
- var expected = isSafe ? MAX_SAFE_INTEGER : MAX_INTEGER;
- assert.strictEqual(func(Infinity), expected);
- assert.strictEqual(func(-Infinity), -expected);
- });
-
- QUnit.test('`_.' + methodName + '` should support `value` of `-0`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(1 / func(-0), -Infinity);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toLength');
-
- (function() {
- QUnit.test('should return a valid length', function(assert) {
- assert.expect(4);
-
- assert.strictEqual(_.toLength(-1), 0);
- assert.strictEqual(_.toLength('1'), 1);
- assert.strictEqual(_.toLength(1.1), 1);
- assert.strictEqual(_.toLength(MAX_INTEGER), MAX_ARRAY_LENGTH);
- });
-
- QUnit.test('should return `value` if a valid length', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.toLength(0), 0);
- assert.strictEqual(_.toLength(3), 3);
- assert.strictEqual(_.toLength(MAX_ARRAY_LENGTH), MAX_ARRAY_LENGTH);
- });
-
- QUnit.test('should convert `-0` to `0`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(1 / _.toLength(-0), Infinity);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('number coercion methods');
-
- lodashStable.each(['toFinite', 'toInteger', 'toNumber', 'toSafeInteger'], function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should preserve the sign of `0`', function(assert) {
- assert.expect(2);
-
- var values = [0, '0', -0, '-0'],
- expected = [[0, Infinity], [0, Infinity], [-0, -Infinity], [-0, -Infinity]];
-
- lodashStable.times(2, function(index) {
- var others = lodashStable.map(values, index ? Object : identity);
-
- var actual = lodashStable.map(others, function(value) {
- var result = func(value);
- return [result, 1 / result];
- });
-
- assert.deepEqual(actual, expected);
- });
- });
- });
-
- lodashStable.each(['toFinite', 'toInteger', 'toLength', 'toNumber', 'toSafeInteger'], function(methodName) {
- var func = _[methodName],
- isToFinite = methodName == 'toFinite',
- isToLength = methodName == 'toLength',
- isToNumber = methodName == 'toNumber',
- isToSafeInteger = methodName == 'toSafeInteger';
-
- function negative(string) {
- return '-' + string;
- }
-
- function pad(string) {
- return whitespace + string + whitespace;
- }
-
- function positive(string) {
- return '+' + string;
- }
-
- QUnit.test('`_.' + methodName + '` should pass thru primitive number values', function(assert) {
- assert.expect(1);
-
- var values = [0, 1, NaN];
-
- var expected = lodashStable.map(values, function(value) {
- return (!isToNumber && value !== value) ? 0 : value;
- });
-
- var actual = lodashStable.map(values, func);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should convert number primitives and objects to numbers', function(assert) {
- assert.expect(1);
-
- var values = [2, 1.2, MAX_SAFE_INTEGER, MAX_INTEGER, Infinity, NaN];
-
- var expected = lodashStable.map(values, function(value) {
- if (!isToNumber) {
- if (!isToFinite && value == 1.2) {
- value = 1;
- }
- else if (value == Infinity) {
- value = MAX_INTEGER;
- }
- else if (value !== value) {
- value = 0;
- }
- if (isToLength || isToSafeInteger) {
- value = Math.min(value, isToLength ? MAX_ARRAY_LENGTH : MAX_SAFE_INTEGER);
- }
- }
- var neg = isToLength ? 0 : -value;
- return [value, value, neg, neg];
- });
-
- var actual = lodashStable.map(values, function(value) {
- return [func(value), func(Object(value)), func(-value), func(Object(-value))];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should convert string primitives and objects to numbers', function(assert) {
- assert.expect(1);
-
- var transforms = [identity, pad, positive, negative];
-
- var values = [
- '10', '1.234567890', (MAX_SAFE_INTEGER + ''),
- '1e+308', '1e308', '1E+308', '1E308',
- '5e-324', '5E-324',
- 'Infinity', 'NaN'
- ];
-
- var expected = lodashStable.map(values, function(value) {
- var n = +value;
- if (!isToNumber) {
- if (!isToFinite && n == 1.234567890) {
- n = 1;
- }
- else if (n == Infinity) {
- n = MAX_INTEGER;
- }
- else if ((!isToFinite && n == Number.MIN_VALUE) || n !== n) {
- n = 0;
- }
- if (isToLength || isToSafeInteger) {
- n = Math.min(n, isToLength ? MAX_ARRAY_LENGTH : MAX_SAFE_INTEGER);
- }
- }
- var neg = isToLength ? 0 : -n;
- return [n, n, n, n, n, n, neg, neg];
- });
-
- var actual = lodashStable.map(values, function(value) {
- return lodashStable.flatMap(transforms, function(mod) {
- return [func(mod(value)), func(Object(mod(value)))];
- });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should convert binary/octal strings to numbers', function(assert) {
- assert.expect(1);
-
- var numbers = [42, 5349, 1715004],
- transforms = [identity, pad],
- values = ['0b101010', '0o12345', '0x1a2b3c'];
-
- var expected = lodashStable.map(numbers, function(n) {
- return lodashStable.times(8, lodashStable.constant(n));
- });
-
- var actual = lodashStable.map(values, function(value) {
- var upper = value.toUpperCase();
- return lodashStable.flatMap(transforms, function(mod) {
- return [func(mod(value)), func(Object(mod(value))), func(mod(upper)), func(Object(mod(upper)))];
- });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should convert invalid binary/octal strings to `' + (isToNumber ? 'NaN' : '0') + '`', function(assert) {
- assert.expect(1);
-
- var transforms = [identity, pad, positive, negative],
- values = ['0b', '0o', '0x', '0b1010102', '0o123458', '0x1a2b3x'];
-
- var expected = lodashStable.map(values, function(n) {
- return lodashStable.times(8, lodashStable.constant(isToNumber ? NaN : 0));
- });
-
- var actual = lodashStable.map(values, function(value) {
- return lodashStable.flatMap(transforms, function(mod) {
- return [func(mod(value)), func(Object(mod(value)))];
- });
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should convert symbols to `' + (isToNumber ? 'NaN' : '0') + '`', function(assert) {
- assert.expect(1);
-
- if (Symbol) {
- var object1 = Object(symbol),
- object2 = Object(symbol),
- values = [symbol, object1, object2],
- expected = lodashStable.map(values, lodashStable.constant(isToNumber ? NaN : 0));
-
- object2.valueOf = undefined;
- var actual = lodashStable.map(values, func);
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should convert empty values to `0` or `NaN`', function(assert) {
- assert.expect(1);
-
- var values = falsey.concat(whitespace);
-
- var expected = lodashStable.map(values, function(value) {
- return (isToNumber && value !== whitespace) ? Number(value) : 0;
- });
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? func(value) : func();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce objects to numbers', function(assert) {
- assert.expect(1);
-
- var values = [
- {},
- [],
- [1],
- [1, 2],
- { 'valueOf': '1.1' },
- { 'valueOf': '1.1', 'toString': lodashStable.constant('2.2') },
- { 'valueOf': lodashStable.constant('1.1'), 'toString': '2.2' },
- { 'valueOf': lodashStable.constant('1.1'), 'toString': lodashStable.constant('2.2') },
- { 'valueOf': lodashStable.constant('-0x1a2b3c') },
- { 'toString': lodashStable.constant('-0x1a2b3c') },
- { 'valueOf': lodashStable.constant('0o12345') },
- { 'toString': lodashStable.constant('0o12345') },
- { 'valueOf': lodashStable.constant('0b101010') },
- { 'toString': lodashStable.constant('0b101010') }
- ];
-
- var expected = [
- NaN, 0, 1, NaN,
- NaN, 2.2, 1.1, 1.1,
- NaN, NaN,
- 5349, 5349,
- 42, 42
- ];
-
- if (isToFinite) {
- expected = [
- 0, 0, 1, 0,
- 0, 2.2, 1.1, 1.1,
- 0, 0,
- 5349, 5349,
- 42, 42
- ];
- }
- else if (!isToNumber) {
- expected = [
- 0, 0, 1, 0,
- 0, 2, 1, 1,
- 0, 0,
- 5349, 5349,
- 42, 42
- ];
- }
- var actual = lodashStable.map(values, func);
-
- assert.deepEqual(actual, expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toPairs');
-
- (function() {
- QUnit.test('should be aliased', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.entries, _.toPairs);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toPairsIn');
-
- (function() {
- QUnit.test('should be aliased', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.entriesIn, _.toPairsIn);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('toPairs methods');
-
- lodashStable.each(['toPairs', 'toPairsIn'], function(methodName) {
- var func = _[methodName],
- isToPairs = methodName == 'toPairs';
-
- QUnit.test('`_.' + methodName + '` should create an array of string keyed-value pairs', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1, 'b': 2 },
- actual = lodashStable.sortBy(func(object), 0);
-
- assert.deepEqual(actual, [['a', 1], ['b', 2]]);
- });
-
- QUnit.test('`_.' + methodName + '` should ' + (isToPairs ? 'not ' : '') + 'include inherited string keyed property values', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var expected = isToPairs ? [['a', 1]] : [['a', 1], ['b', 2]],
- actual = lodashStable.sortBy(func(new Foo), 0);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should convert objects with a `length` property', function(assert) {
- assert.expect(1);
-
- var object = { '0': 'a', '1': 'b', 'length': 2 },
- actual = lodashStable.sortBy(func(object), 0);
-
- assert.deepEqual(actual, [['0', 'a'], ['1', 'b'], ['length', 2]]);
- });
-
- QUnit.test('`_.' + methodName + '` should convert maps', function(assert) {
- assert.expect(1);
-
- if (Map) {
- var map = new Map;
- map.set('a', 1);
- map.set('b', 2);
- assert.deepEqual(func(map), [['a', 1], ['b', 2]]);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should convert sets', function(assert) {
- assert.expect(1);
-
- if (Set) {
- var set = new Set;
- set.add(1);
- set.add(2);
- assert.deepEqual(func(set), [[1, 1], [2, 2]]);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should convert strings', function(assert) {
- assert.expect(2);
-
- lodashStable.each(['xo', Object('xo')], function(string) {
- var actual = lodashStable.sortBy(func(string), 0);
- assert.deepEqual(actual, [['0', 'x'], ['1', 'o']]);
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toPath');
-
- (function() {
- QUnit.test('should convert a string to a path', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(_.toPath('a.b.c'), ['a', 'b', 'c']);
- assert.deepEqual(_.toPath('a[0].b.c'), ['a', '0', 'b', 'c']);
- });
-
- QUnit.test('should coerce array elements to strings', function(assert) {
- assert.expect(4);
-
- var array = ['a', 'b', 'c'];
-
- lodashStable.each([array, lodashStable.map(array, Object)], function(value) {
- var actual = _.toPath(value);
- assert.deepEqual(actual, array);
- assert.notStrictEqual(actual, array);
- });
- });
-
- QUnit.test('should a new path array', function(assert) {
- assert.expect(1);
-
- assert.notStrictEqual(_.toPath('a.b.c'), _.toPath('a.b.c'));
- });
-
- QUnit.test('should not coerce symbols to strings', function(assert) {
- assert.expect(4);
-
- if (Symbol) {
- var object = Object(symbol);
- lodashStable.each([symbol, object, [symbol], [object]], function(value) {
- var actual = _.toPath(value);
- assert.ok(lodashStable.isSymbol(actual[0]));
- });
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should handle complex paths', function(assert) {
- assert.expect(1);
-
- var actual = _.toPath('a[-1.23]["[\\"b\\"]"].c[\'[\\\'d\\\']\'][\ne\n][f].g');
- assert.deepEqual(actual, ['a', '-1.23', '["b"]', 'c', "['d']", '\ne\n', 'f', 'g']);
- });
-
- QUnit.test('should not ignore consecutive brackets and dots', function(assert) {
- assert.expect(4);
-
- var expected = ['a', ''];
- assert.deepEqual(_.toPath('a.'), expected);
- assert.deepEqual(_.toPath('a[]'), expected);
-
- expected = ['a', '', 'b'];
- assert.deepEqual(_.toPath('a..b'), expected);
- assert.deepEqual(_.toPath('a[][]b'), expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toPlainObject');
-
- (function() {
- var args = arguments;
-
- QUnit.test('should flatten inherited string keyed properties', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.b = 2;
- }
- Foo.prototype.c = 3;
-
- var actual = lodashStable.assign({ 'a': 1 }, _.toPlainObject(new Foo));
- assert.deepEqual(actual, { 'a': 1, 'b': 2, 'c': 3 });
- });
-
- QUnit.test('should convert `arguments` objects to plain objects', function(assert) {
- assert.expect(1);
-
- var actual = _.toPlainObject(args),
- expected = { '0': 1, '1': 2, '2': 3 };
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should convert arrays to plain objects', function(assert) {
- assert.expect(1);
-
- var actual = _.toPlainObject(['a', 'b', 'c']),
- expected = { '0': 'a', '1': 'b', '2': 'c' };
-
- assert.deepEqual(actual, expected);
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.toString');
-
- (function() {
- QUnit.test('should treat nullish values as empty strings', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubString);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.toString(value) : _.toString();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var values = [-0, Object(-0), 0, Object(0)],
- expected = ['-0', '-0', '0', '0'],
- actual = lodashStable.map(values, _.toString);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not error on symbols', function(assert) {
- assert.expect(1);
-
- if (Symbol) {
- try {
- assert.strictEqual(_.toString(symbol), 'Symbol(a)');
- } catch (e) {
- assert.ok(false, e.message);
- }
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should return the `toString` result of the wrapped value', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _([1, 2, 3]);
- assert.strictEqual(wrapped.toString(), '1,2,3');
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.transform');
-
- (function() {
- function Foo() {
- this.a = 1;
- this.b = 2;
- this.c = 3;
- }
-
- QUnit.test('should create an object with the same `[[Prototype]]` as `object` when `accumulator` is nullish', function(assert) {
- assert.expect(4);
-
- var accumulators = [, null, undefined],
- object = new Foo,
- expected = lodashStable.map(accumulators, stubTrue);
-
- var iteratee = function(result, value, key) {
- result[key] = square(value);
- };
-
- var mapper = function(accumulator, index) {
- return index ? _.transform(object, iteratee, accumulator) : _.transform(object, iteratee);
- };
-
- var results = lodashStable.map(accumulators, mapper);
-
- var actual = lodashStable.map(results, function(result) {
- return result instanceof Foo;
- });
-
- assert.deepEqual(actual, expected);
-
- expected = lodashStable.map(accumulators, lodashStable.constant({ 'a': 1, 'b': 4, 'c': 9 }));
- actual = lodashStable.map(results, lodashStable.toPlainObject);
-
- assert.deepEqual(actual, expected);
-
- object = { 'a': 1, 'b': 2, 'c': 3 };
- actual = lodashStable.map(accumulators, mapper);
-
- assert.deepEqual(actual, expected);
-
- object = [1, 2, 3];
- expected = lodashStable.map(accumulators, lodashStable.constant([1, 4, 9]));
- actual = lodashStable.map(accumulators, mapper);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should create regular arrays from typed arrays', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(typedArrays, stubTrue);
-
- var actual = lodashStable.map(typedArrays, function(type) {
- var Ctor = root[type],
- array = Ctor ? new Ctor(new ArrayBuffer(24)) : [];
-
- return lodashStable.isArray(_.transform(array, noop));
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should support an `accumulator` value', function(assert) {
- assert.expect(6);
-
- var values = [new Foo, [1, 2, 3], { 'a': 1, 'b': 2, 'c': 3 }],
- expected = lodashStable.map(values, lodashStable.constant([1, 4, 9]));
-
- var actual = lodashStable.map(values, function(value) {
- return _.transform(value, function(result, value) {
- result.push(square(value));
- }, []);
- });
-
- assert.deepEqual(actual, expected);
-
- var object = { 'a': 1, 'b': 4, 'c': 9 },
- expected = [object, { '0': 1, '1': 4, '2': 9 }, object];
-
- actual = lodashStable.map(values, function(value) {
- return _.transform(value, function(result, value, key) {
- result[key] = square(value);
- }, {});
- });
-
- assert.deepEqual(actual, expected);
-
- lodashStable.each([[], {}], function(accumulator) {
- var actual = lodashStable.map(values, function(value) {
- return _.transform(value, noop, accumulator);
- });
-
- assert.ok(lodashStable.every(actual, function(result) {
- return result === accumulator;
- }));
-
- assert.strictEqual(_.transform(null, null, accumulator), accumulator);
- });
- });
-
- QUnit.test('should treat sparse arrays as dense', function(assert) {
- assert.expect(1);
-
- var actual = _.transform(Array(1), function(result, value, index) {
- result[index] = String(value);
- });
-
- assert.deepEqual(actual, ['undefined']);
- });
-
- QUnit.test('should work without an `iteratee` argument', function(assert) {
- assert.expect(1);
-
- assert.ok(_.transform(new Foo) instanceof Foo);
- });
-
- QUnit.test('should ensure `object` is an object before using its `[[Prototype]]`', function(assert) {
- assert.expect(2);
-
- var Ctors = [Boolean, Boolean, Number, Number, Number, String, String],
- values = [false, true, 0, 1, NaN, '', 'a'],
- expected = lodashStable.map(values, stubObject);
-
- var results = lodashStable.map(values, function(value) {
- return _.transform(value);
- });
-
- assert.deepEqual(results, expected);
-
- expected = lodashStable.map(values, stubFalse);
-
- var actual = lodashStable.map(results, function(value, index) {
- return value instanceof Ctors[index];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should ensure `object` constructor is a function before using its `[[Prototype]]`', function(assert) {
- assert.expect(1);
-
- Foo.prototype.constructor = null;
- assert.notOk(_.transform(new Foo) instanceof Foo);
- Foo.prototype.constructor = Foo;
- });
-
- QUnit.test('should create an empty object when given a falsey `object` argument', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubObject);
-
- var actual = lodashStable.map(falsey, function(object, index) {
- return index ? _.transform(object) : _.transform();
- });
-
- assert.deepEqual(actual, expected);
- });
-
- lodashStable.each({
- 'array': [1, 2, 3],
- 'object': { 'a': 1, 'b': 2, 'c': 3 }
- },
- function(object, key) {
- QUnit.test('should provide the correct `iteratee` arguments when transforming an ' + key, function(assert) {
- assert.expect(2);
-
- var args;
-
- _.transform(object, function() {
- args || (args = slice.call(arguments));
- });
-
- var first = args[0];
- if (key == 'array') {
- assert.ok(first !== object && lodashStable.isArray(first));
- assert.deepEqual(args, [first, 1, 0, object]);
- } else {
- assert.ok(first !== object && lodashStable.isPlainObject(first));
- assert.deepEqual(args, [first, 1, 'a', object]);
- }
- });
- });
-
- QUnit.test('should create an object from the same realm as `object`', function(assert) {
- assert.expect(1);
-
- var objects = lodashStable.filter(realm, function(value) {
- return lodashStable.isObject(value) && !lodashStable.isElement(value);
- });
-
- var expected = lodashStable.map(objects, stubTrue);
-
- var actual = lodashStable.map(objects, function(object) {
- var Ctor = object.constructor,
- result = _.transform(object);
-
- if (result === object) {
- return false;
- }
- if (lodashStable.isTypedArray(object)) {
- return result instanceof Array;
- }
- return result instanceof Ctor || !(new Ctor instanceof Ctor);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('trim methods');
-
- lodashStable.each(['trim', 'trimStart', 'trimEnd'], function(methodName, index) {
- var func = _[methodName],
- parts = [];
-
- if (index != 2) {
- parts.push('leading');
- }
- if (index != 1) {
- parts.push('trailing');
- }
- parts = parts.join(' and ');
-
- QUnit.test('`_.' + methodName + '` should remove ' + parts + ' whitespace', function(assert) {
- assert.expect(1);
-
- var string = whitespace + 'a b c' + whitespace,
- expected = (index == 2 ? whitespace : '') + 'a b c' + (index == 1 ? whitespace : '');
-
- assert.strictEqual(func(string), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `string` to a string', function(assert) {
- assert.expect(1);
-
- var object = { 'toString': lodashStable.constant(whitespace + 'a b c' + whitespace) },
- expected = (index == 2 ? whitespace : '') + 'a b c' + (index == 1 ? whitespace : '');
-
- assert.strictEqual(func(object), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should remove ' + parts + ' `chars`', function(assert) {
- assert.expect(1);
-
- var string = '-_-a-b-c-_-',
- expected = (index == 2 ? '-_-' : '') + 'a-b-c' + (index == 1 ? '-_-' : '');
-
- assert.strictEqual(func(string, '_-'), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should coerce `chars` to a string', function(assert) {
- assert.expect(1);
-
- var object = { 'toString': lodashStable.constant('_-') },
- string = '-_-a-b-c-_-',
- expected = (index == 2 ? '-_-' : '') + 'a-b-c' + (index == 1 ? '-_-' : '');
-
- assert.strictEqual(func(string, object), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should return an empty string for empty values and `chars`', function(assert) {
- assert.expect(6);
-
- lodashStable.each([null, '_-'], function(chars) {
- assert.strictEqual(func(null, chars), '');
- assert.strictEqual(func(undefined, chars), '');
- assert.strictEqual(func('', chars), '');
- });
- });
-
- QUnit.test('`_.' + methodName + '` should work with `undefined` or empty string values for `chars`', function(assert) {
- assert.expect(2);
-
- var string = whitespace + 'a b c' + whitespace,
- expected = (index == 2 ? whitespace : '') + 'a b c' + (index == 1 ? whitespace : '');
-
- assert.strictEqual(func(string, undefined), expected);
- assert.strictEqual(func(string, ''), string);
- });
-
- QUnit.test('`_.' + methodName + '` should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var string = Object(whitespace + 'a b c' + whitespace),
- trimmed = (index == 2 ? whitespace : '') + 'a b c' + (index == 1 ? whitespace : ''),
- actual = lodashStable.map([string, string, string], func);
-
- assert.deepEqual(actual, [trimmed, trimmed, trimmed]);
- });
-
- QUnit.test('`_.' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var string = whitespace + 'a b c' + whitespace,
- expected = (index == 2 ? whitespace : '') + 'a b c' + (index == 1 ? whitespace : '');
-
- assert.strictEqual(_(string)[methodName](), expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var string = whitespace + 'a b c' + whitespace;
- assert.ok(_(string).chain()[methodName]() instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('uncommon symbols');
-
- (function() {
- var flag = '\ud83c\uddfa\ud83c\uddf8',
- heart = '\u2764' + emojiVar,
- hearts = '\ud83d\udc95',
- comboGlyph = '\ud83d\udc68\u200d' + heart + '\u200d\ud83d\udc8B\u200d\ud83d\udc68',
- hashKeycap = '#' + emojiVar + '\u20e3',
- leafs = '\ud83c\udf42',
- mic = '\ud83c\udf99',
- noMic = mic + '\u20e0',
- raisedHand = '\u270B' + emojiVar,
- rocket = '\ud83d\ude80',
- thumbsUp = '\ud83d\udc4d';
-
- QUnit.test('should account for astral symbols', function(assert) {
- assert.expect(34);
-
- var allHearts = _.repeat(hearts, 10),
- chars = hearts + comboGlyph,
- string = 'A ' + leafs + ', ' + comboGlyph + ', and ' + rocket,
- trimChars = comboGlyph + hearts,
- trimString = trimChars + string + trimChars;
-
- assert.strictEqual(_.camelCase(hearts + ' the ' + leafs), hearts + 'The' + leafs);
- assert.strictEqual(_.camelCase(string), 'a' + leafs + comboGlyph + 'And' + rocket);
- assert.strictEqual(_.capitalize(rocket), rocket);
-
- assert.strictEqual(_.pad(string, 16), ' ' + string + ' ');
- assert.strictEqual(_.padStart(string, 16), ' ' + string);
- assert.strictEqual(_.padEnd(string, 16), string + ' ');
-
- assert.strictEqual(_.pad(string, 16, chars), hearts + string + chars);
- assert.strictEqual(_.padStart(string, 16, chars), chars + hearts + string);
- assert.strictEqual(_.padEnd(string, 16, chars), string + chars + hearts);
-
- assert.strictEqual(_.size(string), 13);
- assert.deepEqual(_.split(string, ' '), ['A', leafs + ',', comboGlyph + ',', 'and', rocket]);
- assert.deepEqual(_.split(string, ' ', 3), ['A', leafs + ',', comboGlyph + ',']);
- assert.deepEqual(_.split(string, undefined), [string]);
- assert.deepEqual(_.split(string, undefined, -1), [string]);
- assert.deepEqual(_.split(string, undefined, 0), []);
-
- var expected = ['A', ' ', leafs, ',', ' ', comboGlyph, ',', ' ', 'a', 'n', 'd', ' ', rocket];
-
- assert.deepEqual(_.split(string, ''), expected);
- assert.deepEqual(_.split(string, '', 6), expected.slice(0, 6));
- assert.deepEqual(_.toArray(string), expected);
-
- assert.strictEqual(_.trim(trimString, chars), string);
- assert.strictEqual(_.trimStart(trimString, chars), string + trimChars);
- assert.strictEqual(_.trimEnd(trimString, chars), trimChars + string);
-
- assert.strictEqual(_.truncate(string, { 'length': 13 }), string);
- assert.strictEqual(_.truncate(string, { 'length': 6 }), 'A ' + leafs + '...');
-
- assert.deepEqual(_.words(string), ['A', leafs, comboGlyph, 'and', rocket]);
- assert.deepEqual(_.toArray(hashKeycap), [hashKeycap]);
- assert.deepEqual(_.toArray(noMic), [noMic]);
-
- lodashStable.times(2, function(index) {
- var separator = index ? RegExp(hearts) : hearts,
- options = { 'length': 4, 'separator': separator },
- actual = _.truncate(string, options);
-
- assert.strictEqual(actual, 'A...');
- assert.strictEqual(actual.length, 4);
-
- actual = _.truncate(allHearts, options);
- assert.strictEqual(actual, hearts + '...');
- assert.strictEqual(actual.length, 5);
- });
- });
-
- QUnit.test('should account for combining diacritical marks', function(assert) {
- assert.expect(1);
-
- var values = lodashStable.map(comboMarks, function(mark) {
- return 'o' + mark;
- });
-
- var expected = lodashStable.map(values, function(value) {
- return [1, [value], [value]];
- });
-
- var actual = lodashStable.map(values, function(value) {
- return [_.size(value), _.toArray(value), _.words(value)];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should account for fitzpatrick modifiers', function(assert) {
- assert.expect(1);
-
- var values = lodashStable.map(fitzModifiers, function(modifier) {
- return thumbsUp + modifier;
- });
-
- var expected = lodashStable.map(values, function(value) {
- return [1, [value], [value]];
- });
-
- var actual = lodashStable.map(values, function(value) {
- return [_.size(value), _.toArray(value), _.words(value)];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should account for regional symbols', function(assert) {
- assert.expect(6);
-
- var pair = flag.match(/\ud83c[\udde6-\uddff]/g),
- regionals = pair.join(' ');
-
- assert.strictEqual(_.size(flag), 1);
- assert.strictEqual(_.size(regionals), 3);
-
- assert.deepEqual(_.toArray(flag), [flag]);
- assert.deepEqual(_.toArray(regionals), [pair[0], ' ', pair[1]]);
-
- assert.deepEqual(_.words(flag), [flag]);
- assert.deepEqual(_.words(regionals), [pair[0], pair[1]]);
- });
-
- QUnit.test('should account for variation selectors', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.size(heart), 1);
- assert.deepEqual(_.toArray(heart), [heart]);
- assert.deepEqual(_.words(heart), [heart]);
- });
-
- QUnit.test('should account for variation selectors with fitzpatrick modifiers', function(assert) {
- assert.expect(1);
-
- var values = lodashStable.map(fitzModifiers, function(modifier) {
- return raisedHand + modifier;
- });
-
- var expected = lodashStable.map(values, function(value) {
- return [1, [value], [value]];
- });
-
- var actual = lodashStable.map(values, function(value) {
- return [_.size(value), _.toArray(value), _.words(value)];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should match lone surrogates', function(assert) {
- assert.expect(3);
-
- var pair = hearts.split(''),
- surrogates = pair[0] + ' ' + pair[1];
-
- assert.strictEqual(_.size(surrogates), 3);
- assert.deepEqual(_.toArray(surrogates), [pair[0], ' ', pair[1]]);
- assert.deepEqual(_.words(surrogates), []);
- });
-
- QUnit.test('should match side by side fitzpatrick modifiers separately ', function(assert) {
- assert.expect(1);
-
- var string = fitzModifiers[0] + fitzModifiers[0];
- assert.deepEqual(_.toArray(string), [fitzModifiers[0], fitzModifiers[0]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.unary');
-
- (function() {
- function fn() {
- return slice.call(arguments);
- }
-
- QUnit.test('should cap the number of arguments provided to `func`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(['6', '8', '10'], _.unary(parseInt));
- assert.deepEqual(actual, [6, 8, 10]);
- });
-
- QUnit.test('should work when provided less than the capped number of arguments', function(assert) {
- assert.expect(1);
-
- var capped = _.unary(fn);
- assert.deepEqual(capped(), []);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.unescape');
-
- (function() {
- var escaped = '&amp;&lt;&gt;&quot;&#39;\/',
- unescaped = '&<>"\'\/';
-
- escaped += escaped;
- unescaped += unescaped;
-
- QUnit.test('should unescape entities in order', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.unescape('&amp;lt;'), '&lt;');
- });
-
- QUnit.test('should unescape the proper entities', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.unescape(escaped), unescaped);
- });
-
- QUnit.test('should not unescape the "&#x2F;" entity', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.unescape('&#x2F;'), '&#x2F;');
- });
-
- QUnit.test('should handle strings with nothing to unescape', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.unescape('abc'), 'abc');
- });
-
- QUnit.test('should unescape the same characters escaped by `_.escape`', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(_.unescape(_.escape(unescaped)), unescaped);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('union methods');
-
- lodashStable.each(['union', 'unionBy', 'unionWith'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return the union of two arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([2], [1, 2]);
- assert.deepEqual(actual, [2, 1]);
- });
-
- QUnit.test('`_.' + methodName + '` should return the union of multiple arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([2], [1, 2], [2, 3]);
- assert.deepEqual(actual, [2, 1, 3]);
- });
-
- QUnit.test('`_.' + methodName + '` should not flatten nested arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([1, 3, 2], [1, [5]], [2, [4]]);
- assert.deepEqual(actual, [1, 3, 2, [5], [4]]);
- });
-
- QUnit.test('`_.' + methodName + '` should ignore values that are not arrays or `arguments` objects', function(assert) {
- assert.expect(3);
-
- var array = [0];
- assert.deepEqual(func(array, 3, { '0': 1 }, null), array);
- assert.deepEqual(func(null, array, null, [2, 1]), [0, 2, 1]);
- assert.deepEqual(func(array, null, args, null), [0, 1, 2, 3]);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.unionBy');
-
- (function() {
- QUnit.test('should accept an `iteratee` argument', function(assert) {
- assert.expect(2);
-
- var actual = _.unionBy([2.1], [1.2, 2.3], Math.floor);
- assert.deepEqual(actual, [2.1, 1.2]);
-
- actual = _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- assert.deepEqual(actual, [{ 'x': 1 }, { 'x': 2 }]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.unionBy([2.1], [1.2, 2.3], function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [2.1]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.unionWith');
-
- (function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }],
- others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }],
- actual = _.unionWith(objects, others, lodashStable.isEqual);
-
- assert.deepEqual(actual, [objects[0], objects[1], others[0]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('uniq methods');
-
- lodashStable.each(['uniq', 'uniqBy', 'uniqWith', 'sortedUniq', 'sortedUniqBy'], function(methodName) {
- var func = _[methodName],
- isSorted = /^sorted/.test(methodName),
- objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }, { 'a': 2 }, { 'a': 3 }, { 'a': 1 }];
-
- if (isSorted) {
- objects = _.sortBy(objects, 'a');
- }
- else {
- QUnit.test('`_.' + methodName + '` should return unique values of an unsorted array', function(assert) {
- assert.expect(1);
-
- var array = [2, 1, 2];
- assert.deepEqual(func(array), [2, 1]);
- });
- }
- QUnit.test('`_.' + methodName + '` should return unique values of a sorted array', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 2];
- assert.deepEqual(func(array), [1, 2]);
- });
-
- QUnit.test('`_.' + methodName + '` should treat object instances as unique', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func(objects), objects);
- });
-
- QUnit.test('`_.' + methodName + '` should treat `-0` as `0`', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.map(func([-0, 0]), lodashStable.toString);
- assert.deepEqual(actual, ['0']);
- });
-
- QUnit.test('`_.' + methodName + '` should match `NaN`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func([NaN, NaN]), [NaN]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays', function(assert) {
- assert.expect(1);
-
- var largeArray = [],
- expected = [0, {}, 'a'],
- count = Math.ceil(LARGE_ARRAY_SIZE / expected.length);
-
- lodashStable.each(expected, function(value) {
- lodashStable.times(count, function() {
- largeArray.push(value);
- });
- });
-
- assert.deepEqual(func(largeArray), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of `-0` as `0`', function(assert) {
- assert.expect(1);
-
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, function(index) {
- return isEven(index) ? -0 : 0;
- });
-
- var actual = lodashStable.map(func(largeArray), lodashStable.toString);
- assert.deepEqual(actual, ['0']);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of boolean, `NaN`, and nullish values', function(assert) {
- assert.expect(1);
-
- var largeArray = [],
- expected = [null, undefined, false, true, NaN],
- count = Math.ceil(LARGE_ARRAY_SIZE / expected.length);
-
- lodashStable.each(expected, function(value) {
- lodashStable.times(count, function() {
- largeArray.push(value);
- });
- });
-
- assert.deepEqual(func(largeArray), expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of symbols', function(assert) {
- assert.expect(1);
-
- if (Symbol) {
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, Symbol);
- assert.deepEqual(func(largeArray), largeArray);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should work with large arrays of well-known symbols', function(assert) {
- assert.expect(1);
-
- // See http://www.ecma-international.org/ecma-262/6.0/#sec-well-known-symbols.
- if (Symbol) {
- var expected = [
- Symbol.hasInstance, Symbol.isConcatSpreadable, Symbol.iterator,
- Symbol.match, Symbol.replace, Symbol.search, Symbol.species,
- Symbol.split, Symbol.toPrimitive, Symbol.toStringTag, Symbol.unscopables
- ];
-
- var largeArray = [],
- count = Math.ceil(LARGE_ARRAY_SIZE / expected.length);
-
- expected = lodashStable.map(expected, function(symbol) {
- return symbol || {};
- });
-
- lodashStable.each(expected, function(value) {
- lodashStable.times(count, function() {
- largeArray.push(value);
- });
- });
-
- assert.deepEqual(func(largeArray), expected);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should distinguish between numbers and numeric strings', function(assert) {
- assert.expect(1);
-
- var largeArray = [],
- expected = ['2', 2, Object('2'), Object(2)],
- count = Math.ceil(LARGE_ARRAY_SIZE / expected.length);
-
- lodashStable.each(expected, function(value) {
- lodashStable.times(count, function() {
- largeArray.push(value);
- });
- });
-
- assert.deepEqual(func(largeArray), expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.uniq');
-
- (function() {
- QUnit.test('should perform an unsorted uniq when used as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var array = [[2, 1, 2], [1, 2, 1]],
- actual = lodashStable.map(array, lodashStable.uniq);
-
- assert.deepEqual(actual, [[2, 1], [1, 2]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('uniqBy methods');
-
- lodashStable.each(['uniqBy', 'sortedUniqBy'], function(methodName) {
- var func = _[methodName],
- isSorted = methodName == 'sortedUniqBy',
- objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }, { 'a': 2 }, { 'a': 3 }, { 'a': 1 }];
-
- if (isSorted) {
- objects = _.sortBy(objects, 'a');
- }
- QUnit.test('`_.' + methodName + '` should work with an `iteratee` argument', function(assert) {
- assert.expect(1);
-
- var expected = isSorted ? [{ 'a': 1 }, { 'a': 2 }, { 'a': 3 }] : objects.slice(0, 3);
-
- var actual = func(objects, function(object) {
- return object.a;
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should work with large arrays', function(assert) {
- assert.expect(2);
-
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, function() {
- return [1, 2];
- });
-
- var actual = func(largeArray, String);
- assert.strictEqual(actual[0], largeArray[0]);
- assert.deepEqual(actual, [[1, 2]]);
- });
-
- QUnit.test('`_.' + methodName + '` should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- func(objects, function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [objects[0]]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `_.property` shorthands', function(assert) {
- assert.expect(2);
-
- var expected = isSorted ? [{ 'a': 1 }, { 'a': 2 }, { 'a': 3 }] : objects.slice(0, 3),
- actual = func(objects, 'a');
-
- assert.deepEqual(actual, expected);
-
- var arrays = [[2], [3], [1], [2], [3], [1]];
- if (isSorted) {
- arrays = lodashStable.sortBy(arrays, 0);
- }
- expected = isSorted ? [[1], [2], [3]] : arrays.slice(0, 3);
- actual = func(arrays, 0);
-
- assert.deepEqual(actual, expected);
- });
-
- lodashStable.each({
- 'an array': [0, 'a'],
- 'an object': { '0': 'a' },
- 'a number': 0,
- 'a string': '0'
- },
- function(iteratee, key) {
- QUnit.test('`_.' + methodName + '` should work with ' + key + ' for `iteratee`', function(assert) {
- assert.expect(1);
-
- var actual = func([['a'], ['a'], ['b']], iteratee);
- assert.deepEqual(actual, [['a'], ['b']]);
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.uniqWith');
-
- (function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }],
- actual = _.uniqWith(objects, lodashStable.isEqual);
-
- assert.deepEqual(actual, [objects[0], objects[1]]);
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, function(index) {
- return isEven(index) ? -0 : 0;
- });
-
- var arrays = [[-0, 0], largeArray],
- expected = lodashStable.map(arrays, lodashStable.constant(['-0']));
-
- var actual = lodashStable.map(arrays, function(array) {
- return lodashStable.map(_.uniqWith(array, lodashStable.eq), lodashStable.toString);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.uniqueId');
-
- (function() {
- QUnit.test('should generate unique ids', function(assert) {
- assert.expect(1);
-
- var actual = lodashStable.times(1000, function(assert) {
- return _.uniqueId();
- });
-
- assert.strictEqual(lodashStable.uniq(actual).length, actual.length);
- });
-
- QUnit.test('should return a string value when not providing a prefix argument', function(assert) {
- assert.expect(1);
-
- assert.strictEqual(typeof _.uniqueId(), 'string');
- });
-
- QUnit.test('should coerce the prefix argument to a string', function(assert) {
- assert.expect(1);
-
- var actual = [_.uniqueId(3), _.uniqueId(2), _.uniqueId(1)];
- assert.ok(/3\d+,2\d+,1\d+/.test(actual));
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.unset');
-
- (function() {
- QUnit.test('should unset property values', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['a', ['a']], function(path) {
- var object = { 'a': 1, 'c': 2 };
- assert.strictEqual(_.unset(object, path), true);
- assert.deepEqual(object, { 'c': 2 });
- });
- });
-
- QUnit.test('should preserve the sign of `0`', function(assert) {
- assert.expect(1);
-
- var props = [-0, Object(-0), 0, Object(0)],
- expected = lodashStable.map(props, lodashStable.constant([true, false]));
-
- var actual = lodashStable.map(props, function(key) {
- var object = { '-0': 'a', '0': 'b' };
- return [_.unset(object, key), lodashStable.toString(key) in object];
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should unset symbol keyed property values', function(assert) {
- assert.expect(2);
-
- if (Symbol) {
- var object = {};
- object[symbol] = 1;
-
- assert.strictEqual(_.unset(object, symbol), true);
- assert.notOk(symbol in object);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should unset deep property values', function(assert) {
- assert.expect(4);
-
- lodashStable.each(['a.b', ['a', 'b']], function(path) {
- var object = { 'a': { 'b': null } };
- assert.strictEqual(_.unset(object, path), true);
- assert.deepEqual(object, { 'a': {} });
- });
- });
-
- QUnit.test('should handle complex paths', function(assert) {
- assert.expect(4);
-
- var paths = [
- 'a[-1.23]["[\\"b\\"]"].c[\'[\\\'d\\\']\'][\ne\n][f].g',
- ['a', '-1.23', '["b"]', 'c', "['d']", '\ne\n', 'f', 'g']
- ];
-
- lodashStable.each(paths, function(path) {
- var object = { 'a': { '-1.23': { '["b"]': { 'c': { "['d']": { '\ne\n': { 'f': { 'g': 8 } } } } } } } };
- assert.strictEqual(_.unset(object, path), true);
- assert.notOk('g' in object.a[-1.23]['["b"]'].c["['d']"]['\ne\n'].f);
- });
- });
-
- QUnit.test('should return `true` for nonexistent paths', function(assert) {
- assert.expect(5);
-
- var object = { 'a': { 'b': { 'c': null } } };
-
- lodashStable.each(['z', 'a.z', 'a.b.z', 'a.b.c.z'], function(path) {
- assert.strictEqual(_.unset(object, path), true);
- });
-
- assert.deepEqual(object, { 'a': { 'b': { 'c': null } } });
- });
-
- QUnit.test('should not error when `object` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [null, undefined],
- expected = [[true, true], [true, true]];
-
- var actual = lodashStable.map(values, function(value) {
- try {
- return [_.unset(value, 'a.b'), _.unset(value, ['a', 'b'])];
- } catch (e) {
- return e.message;
- }
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should follow `path` over non-plain objects', function(assert) {
- assert.expect(8);
-
- var object = { 'a': '' },
- paths = ['constructor.prototype.a', ['constructor', 'prototype', 'a']];
-
- lodashStable.each(paths, function(path) {
- numberProto.a = 1;
-
- var actual = _.unset(0, path);
- assert.strictEqual(actual, true);
- assert.notOk('a' in numberProto);
-
- delete numberProto.a;
- });
-
- lodashStable.each(['a.replace.b', ['a', 'replace', 'b']], function(path) {
- stringProto.replace.b = 1;
-
- var actual = _.unset(object, path);
- assert.strictEqual(actual, true);
- assert.notOk('a' in stringProto.replace);
-
- delete stringProto.replace.b;
- });
- });
-
- QUnit.test('should return `false` for non-configurable properties', function(assert) {
- assert.expect(1);
-
- var object = {};
-
- if (!isStrict) {
- defineProperty(object, 'a', {
- 'configurable': false,
- 'enumerable': true,
- 'writable': true,
- 'value': 1,
- });
- assert.strictEqual(_.unset(object, 'a'), false);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.unzipWith');
-
- (function() {
- QUnit.test('should unzip arrays combining regrouped elements with `iteratee`', function(assert) {
- assert.expect(1);
-
- var array = [[1, 4], [2, 5], [3, 6]];
-
- var actual = _.unzipWith(array, function(a, b, c) {
- return a + b + c;
- });
-
- assert.deepEqual(actual, [6, 15]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.unzipWith([[1, 3, 5], [2, 4, 6]], function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [1, 2]);
- });
-
- QUnit.test('should perform a basic unzip when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var array = [[1, 3], [2, 4]],
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant(_.unzip(array)));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.unzipWith(array, value) : _.unzipWith(array);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.updateWith');
-
- (function() {
- QUnit.test('should work with a `customizer` callback', function(assert) {
- assert.expect(1);
-
- var actual = _.updateWith({ '0': {} }, '[0][1][2]', stubThree, function(value) {
- return lodashStable.isObject(value) ? undefined : {};
- });
-
- assert.deepEqual(actual, { '0': { '1': { '2': 3 } } });
- });
-
- QUnit.test('should work with a `customizer` that returns `undefined`', function(assert) {
- assert.expect(1);
-
- var actual = _.updateWith({}, 'a[0].b.c', stubFour, noop);
- assert.deepEqual(actual, { 'a': [{ 'b': { 'c': 4 } }] });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('update methods');
-
- lodashStable.each(['update', 'updateWith'], function(methodName) {
- var func = _[methodName],
- oldValue = 1;
-
- QUnit.test('`_.' + methodName + '` should invoke `updater` with the value on `path` of `object`', function(assert) {
- assert.expect(4);
-
- var object = { 'a': [{ 'b': { 'c': oldValue } }] },
- expected = oldValue + 1;
-
- lodashStable.each(['a[0].b.c', ['a', '0', 'b', 'c']], function(path) {
- func(object, path, function(n) {
- assert.strictEqual(n, oldValue);
- return ++n;
- });
-
- assert.strictEqual(object.a[0].b.c, expected);
- object.a[0].b.c = oldValue;
- });
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.upperCase');
-
- (function() {
- QUnit.test('should uppercase as space-separated words', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.upperCase('--foo-bar--'), 'FOO BAR');
- assert.strictEqual(_.upperCase('fooBar'), 'FOO BAR');
- assert.strictEqual(_.upperCase('__foo_bar__'), 'FOO BAR');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.upperFirst');
-
- (function() {
- QUnit.test('should uppercase only the first character', function(assert) {
- assert.expect(3);
-
- assert.strictEqual(_.upperFirst('fred'), 'Fred');
- assert.strictEqual(_.upperFirst('Fred'), 'Fred');
- assert.strictEqual(_.upperFirst('FRED'), 'FRED');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('values methods');
-
- lodashStable.each(['values', 'valuesIn'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- strictArgs = (function() { 'use strict'; return arguments; }(1, 2, 3)),
- func = _[methodName],
- isValues = methodName == 'values';
-
- QUnit.test('`_.' + methodName + '` should get string keyed values of `object`', function(assert) {
- assert.expect(1);
-
- var object = { 'a': 1, 'b': 2 },
- actual = func(object).sort();
-
- assert.deepEqual(actual, [1, 2]);
- });
-
- QUnit.test('`_.' + methodName + '` should work with an object that has a `length` property', function(assert) {
- assert.expect(1);
-
- var object = { '0': 'a', '1': 'b', 'length': 2 },
- actual = func(object).sort();
-
- assert.deepEqual(actual, [2, 'a', 'b']);
- });
-
- QUnit.test('`_.' + methodName + '` should ' + (isValues ? 'not ' : '') + 'include inherited string keyed property values', function(assert) {
- assert.expect(1);
-
- function Foo() {
- this.a = 1;
- }
- Foo.prototype.b = 2;
-
- var expected = isValues ? [1] : [1, 2],
- actual = func(new Foo).sort();
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should work with `arguments` objects', function(assert) {
- assert.expect(1);
-
- var values = [args, strictArgs],
- expected = lodashStable.map(values, lodashStable.constant([1, 2, 3]));
-
- var actual = lodashStable.map(values, function(value) {
- return func(value).sort();
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.without');
-
- (function() {
- QUnit.test('should return the difference of values', function(assert) {
- assert.expect(1);
-
- var actual = _.without([2, 1, 2, 3], 1, 2);
- assert.deepEqual(actual, [3]);
- });
-
- QUnit.test('should use strict equality to determine the values to reject', function(assert) {
- assert.expect(2);
-
- var object1 = { 'a': 1 },
- object2 = { 'b': 2 },
- array = [object1, object2];
-
- assert.deepEqual(_.without(array, { 'a': 1 }), array);
- assert.deepEqual(_.without(array, object1), [object2]);
- });
-
- QUnit.test('should remove all occurrences of each value from an array', function(assert) {
- assert.expect(1);
-
- var array = [1, 2, 3, 1, 2, 3];
- assert.deepEqual(_.without(array, 1, 2), [3, 3]);
- });
- }(1, 2, 3));
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.words');
-
- (function() {
- QUnit.test('should treat latin-1 supplementary letters as words', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(burredLetters, function(letter) {
- return [letter];
- });
-
- var actual = lodashStable.map(burredLetters, function(letter) {
- return _.words(letter);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not treat mathematical operators as words', function(assert) {
- assert.expect(1);
-
- var operators = ['\xac', '\xb1', '\xd7', '\xf7'],
- expected = lodashStable.map(operators, stubArray),
- actual = lodashStable.map(operators, _.words);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not treat punctuation as words', function(assert) {
- assert.expect(1);
-
- var marks = [
- '\u2012', '\u2013', '\u2014', '\u2015',
- '\u2024', '\u2025', '\u2026',
- '\u205d', '\u205e'
- ];
-
- var expected = lodashStable.map(marks, stubArray),
- actual = lodashStable.map(marks, _.words);
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should support a `pattern` argument', function(assert) {
- assert.expect(2);
-
- assert.deepEqual(_.words('abcd', /ab|cd/g), ['ab', 'cd']);
- assert.deepEqual(_.words('abcd', 'ab|cd'), ['ab']);
- });
-
- QUnit.test('should work with compound words', function(assert) {
- assert.expect(12);
-
- assert.deepEqual(_.words('12Feet'), ['12', 'Feet']);
- assert.deepEqual(_.words('aeiouAreVowels'), ['aeiou', 'Are', 'Vowels']);
- assert.deepEqual(_.words('enable 6h format'), ['enable', '6', 'h', 'format']);
- assert.deepEqual(_.words('enable 24H format'), ['enable', '24', 'H', 'format']);
- assert.deepEqual(_.words('isISO8601'), ['is', 'ISO', '8601']);
- assert.deepEqual(_.words('LETTERSAeiouAreVowels'), ['LETTERS', 'Aeiou', 'Are', 'Vowels']);
- assert.deepEqual(_.words('tooLegit2Quit'), ['too', 'Legit', '2', 'Quit']);
- assert.deepEqual(_.words('walk500Miles'), ['walk', '500', 'Miles']);
- assert.deepEqual(_.words('xhr2Request'), ['xhr', '2', 'Request']);
- assert.deepEqual(_.words('XMLHttp'), ['XML', 'Http']);
- assert.deepEqual(_.words('XmlHTTP'), ['Xml', 'HTTP']);
- assert.deepEqual(_.words('XmlHttp'), ['Xml', 'Http']);
- });
-
- QUnit.test('should work with compound words containing diacritical marks', function(assert) {
- assert.expect(3);
-
- assert.deepEqual(_.words('LETTERSÆiouAreVowels'), ['LETTERS', 'Æiou', 'Are', 'Vowels']);
- assert.deepEqual(_.words('æiouAreVowels'), ['æiou', 'Are', 'Vowels']);
- assert.deepEqual(_.words('æiou2Consonants'), ['æiou', '2', 'Consonants']);
- });
-
- QUnit.test('should work with contractions', function(assert) {
- assert.expect(2);
-
- var postfixes = ['d', 'll', 'm', 're', 's', 't', 've'];
-
- lodashStable.each(["'", '\u2019'], function(apos) {
- var actual = lodashStable.map(postfixes, function(postfix) {
- return _.words('a b' + apos + postfix + ' c');
- });
-
- var expected = lodashStable.map(postfixes, function(postfix) {
- return ['a', 'b' + apos + postfix, 'c'];
- });
-
- assert.deepEqual(actual, expected);
- });
- });
-
- QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
- assert.expect(1);
-
- var strings = lodashStable.map(['a', 'b', 'c'], Object),
- actual = lodashStable.map(strings, _.words);
-
- assert.deepEqual(actual, [['a'], ['b'], ['c']]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.wrap');
-
- (function() {
- QUnit.test('should create a wrapped function', function(assert) {
- assert.expect(1);
-
- var p = _.wrap(_.escape, function(func, text) {
- return '<p>' + func(text) + '</p>';
- });
-
- assert.strictEqual(p('fred, barney, & pebbles'), '<p>fred, barney, &amp; pebbles</p>');
- });
-
- QUnit.test('should provide the correct `wrapper` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- var wrapped = _.wrap(noop, function() {
- args || (args = slice.call(arguments));
- });
-
- wrapped(1, 2, 3);
- assert.deepEqual(args, [noop, 1, 2, 3]);
- });
-
- QUnit.test('should use `_.identity` when `wrapper` is nullish', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined],
- expected = lodashStable.map(values, stubA);
-
- var actual = lodashStable.map(values, function(value, index) {
- var wrapped = index ? _.wrap('a', value) : _.wrap('a');
- return wrapped('b', 'c');
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('should not set a `this` binding', function(assert) {
- assert.expect(1);
-
- var p = _.wrap(_.escape, function(func) {
- return '<p>' + func(this.text) + '</p>';
- });
-
- var object = { 'p': p, 'text': 'fred, barney, & pebbles' };
- assert.strictEqual(object.p(), '<p>fred, barney, &amp; pebbles</p>');
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('xor methods');
-
- lodashStable.each(['xor', 'xorBy', 'xorWith'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return the symmetric difference of two arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([2, 1], [2, 3]);
- assert.deepEqual(actual, [1, 3]);
- });
-
- QUnit.test('`_.' + methodName + '` should return the symmetric difference of multiple arrays', function(assert) {
- assert.expect(1);
-
- var actual = func([2, 1], [2, 3], [3, 4]);
- assert.deepEqual(actual, [1, 4]);
- });
-
- QUnit.test('`_.' + methodName + '` should return an array of unique values', function(assert) {
- assert.expect(2);
-
- var actual = func([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]);
- assert.deepEqual(actual, [1, 4, 5]);
-
- actual = func([1, 1]);
- assert.deepEqual(actual, [1]);
- });
-
- QUnit.test('`_.' + methodName + '` should return a new array when a single array is given', function(assert) {
- assert.expect(1);
-
- var array = [1];
- assert.notStrictEqual(func(array), array);
- });
-
- QUnit.test('`_.' + methodName + '` should ignore individual secondary arguments', function(assert) {
- assert.expect(1);
-
- var array = [0];
- assert.deepEqual(func(array, 3, null, { '0': 1 }), array);
- });
-
- QUnit.test('`_.' + methodName + '` should ignore values that are not arrays or `arguments` objects', function(assert) {
- assert.expect(3);
-
- var array = [1, 2];
- assert.deepEqual(func(array, 3, { '0': 1 }, null), array);
- assert.deepEqual(func(null, array, null, [2, 3]), [1, 3]);
- assert.deepEqual(func(array, null, args, null), [3]);
- });
-
- QUnit.test('`_.' + methodName + '` should return a wrapped value when chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _([1, 2, 3])[methodName]([5, 2, 1, 4]);
- assert.ok(wrapped instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_.' + methodName + '` should work when in a lazy sequence before `head` or `last`', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE + 1),
- wrapped = _(array).slice(1)[methodName]([LARGE_ARRAY_SIZE, LARGE_ARRAY_SIZE + 1]);
-
- var actual = lodashStable.map(['head', 'last'], function(methodName) {
- return wrapped[methodName]();
- });
-
- assert.deepEqual(actual, [1, LARGE_ARRAY_SIZE + 1]);
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.xorBy');
-
- (function() {
- QUnit.test('should accept an `iteratee` argument', function(assert) {
- assert.expect(2);
-
- var actual = _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- assert.deepEqual(actual, [1.2, 3.4]);
-
- actual = _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- assert.deepEqual(actual, [{ 'x': 2 }]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.xorBy([2.1, 1.2], [2.3, 3.4], function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [2.3]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.xorWith');
-
- (function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
- assert.expect(1);
-
- var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }],
- others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }],
- actual = _.xorWith(objects, others, lodashStable.isEqual);
-
- assert.deepEqual(actual, [objects[1], others[0]]);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('zipObject methods');
-
- lodashStable.each(['zipObject', 'zipObjectDeep'], function(methodName) {
- var func = _[methodName],
- object = { 'barney': 36, 'fred': 40 },
- isDeep = methodName == 'zipObjectDeep';
-
- QUnit.test('`_.' + methodName + '` should zip together key/value arrays into an object', function(assert) {
- assert.expect(1);
-
- var actual = func(['barney', 'fred'], [36, 40]);
- assert.deepEqual(actual, object);
- });
-
- QUnit.test('`_.' + methodName + '` should ignore extra `values`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func(['a'], [1, 2]), { 'a': 1 });
- });
-
- QUnit.test('`_.' + methodName + '` should assign `undefined` values for extra `keys`', function(assert) {
- assert.expect(1);
-
- assert.deepEqual(func(['a', 'b'], [1]), { 'a': 1, 'b': undefined });
- });
-
- QUnit.test('`_.' + methodName + '` should ' + (isDeep ? '' : 'not ') + 'support deep paths', function(assert) {
- assert.expect(2);
-
- lodashStable.each(['a.b.c', ['a', 'b', 'c']], function(path, index) {
- var expected = isDeep ? ({ 'a': { 'b': { 'c': 1 } } }) : (index ? { 'a,b,c': 1 } : { 'a.b.c': 1 });
- assert.deepEqual(func([path], [1]), expected);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should work in a lazy sequence', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var values = lodashStable.range(LARGE_ARRAY_SIZE),
- props = lodashStable.map(values, function(value) { return 'key' + value; }),
- actual = _(props)[methodName](values).map(square).filter(isEven).take().value();
-
- assert.deepEqual(actual, _.take(_.filter(_.map(func(props, values), square), isEven)));
- }
- else {
- skipAssert(assert);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.zipWith');
-
- (function() {
- QUnit.test('should zip arrays combining grouped elements with `iteratee`', function(assert) {
- assert.expect(2);
-
- var array1 = [1, 2, 3],
- array2 = [4, 5, 6],
- array3 = [7, 8, 9];
-
- var actual = _.zipWith(array1, array2, array3, function(a, b, c) {
- return a + b + c;
- });
-
- assert.deepEqual(actual, [12, 15, 18]);
-
- var actual = _.zipWith(array1, [], function(a, b) {
- return a + (b || 0);
- });
-
- assert.deepEqual(actual, [1, 2, 3]);
- });
-
- QUnit.test('should provide the correct `iteratee` arguments', function(assert) {
- assert.expect(1);
-
- var args;
-
- _.zipWith([1, 2], [3, 4], [5, 6], function() {
- args || (args = slice.call(arguments));
- });
-
- assert.deepEqual(args, [1, 3, 5]);
- });
-
- QUnit.test('should perform a basic zip when `iteratee` is nullish', function(assert) {
- assert.expect(1);
-
- var array1 = [1, 2],
- array2 = [3, 4],
- values = [, null, undefined],
- expected = lodashStable.map(values, lodashStable.constant(_.zip(array1, array2)));
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? _.zipWith(array1, array2, value) : _.zipWith(array1, array2);
- });
-
- assert.deepEqual(actual, expected);
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash.unzip and lodash.zip');
-
- lodashStable.each(['unzip', 'zip'], function(methodName, index) {
- var func = _[methodName];
- func = lodashStable.bind(index ? func.apply : func.call, func, null);
-
- var object = {
- 'an empty array': [
- [],
- []
- ],
- '0-tuples': [
- [[], []],
- []
- ],
- '2-tuples': [
- [['barney', 'fred'], [36, 40]],
- [['barney', 36], ['fred', 40]]
- ],
- '3-tuples': [
- [['barney', 'fred'], [36, 40], [false, true]],
- [['barney', 36, false], ['fred', 40, true]]
- ]
- };
-
- lodashStable.forOwn(object, function(pair, key) {
- QUnit.test('`_.' + methodName + '` should work with ' + key, function(assert) {
- assert.expect(2);
-
- var actual = func(pair[0]);
- assert.deepEqual(actual, pair[1]);
- assert.deepEqual(func(actual), actual.length ? pair[0] : []);
- });
- });
-
- QUnit.test('`_.' + methodName + '` should work with tuples of different lengths', function(assert) {
- assert.expect(4);
-
- var pair = [
- [['barney', 36], ['fred', 40, false]],
- [['barney', 'fred'], [36, 40], [undefined, false]]
- ];
-
- var actual = func(pair[0]);
- assert.ok('0' in actual[2]);
- assert.deepEqual(actual, pair[1]);
-
- actual = func(actual);
- assert.ok('2' in actual[0]);
- assert.deepEqual(actual, [['barney', 36, undefined], ['fred', 40, false]]);
- });
-
- QUnit.test('`_.' + methodName + '` should treat falsey values as empty arrays', function(assert) {
- assert.expect(1);
-
- var expected = lodashStable.map(falsey, stubArray);
-
- var actual = lodashStable.map(falsey, function(value) {
- return func([value, value, value]);
- });
-
- assert.deepEqual(actual, expected);
- });
-
- QUnit.test('`_.' + methodName + '` should ignore values that are not arrays or `arguments` objects', function(assert) {
- assert.expect(1);
-
- var array = [[1, 2], [3, 4], null, undefined, { '0': 1 }];
- assert.deepEqual(func(array), [[1, 3], [2, 4]]);
- });
-
- QUnit.test('`_.' + methodName + '` should support consuming its return value', function(assert) {
- assert.expect(1);
-
- var expected = [['barney', 'fred'], [36, 40]];
- assert.deepEqual(func(func(func(func(expected)))), expected);
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).commit');
-
- (function() {
- QUnit.test('should execute the chained sequence and returns the wrapped result', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- var array = [1],
- wrapped = _(array).push(2).push(3);
-
- assert.deepEqual(array, [1]);
-
- var otherWrapper = wrapped.commit();
- assert.ok(otherWrapper instanceof _);
- assert.deepEqual(otherWrapper.value(), [1, 2, 3]);
- assert.deepEqual(wrapped.value(), [1, 2, 3, 2, 3]);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should track the `__chain__` value of a wrapper', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var wrapped = _([1]).chain().commit().head();
- assert.ok(wrapped instanceof _);
- assert.strictEqual(wrapped.value(), 1);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).next');
-
- lodashStable.each([false, true], function(implict) {
- function chain(value) {
- return implict ? _(value) : _.chain(value);
- }
-
- var chainType = 'in an ' + (implict ? 'implict' : 'explict') + ' chain';
-
- QUnit.test('should follow the iterator protocol ' + chainType, function(assert) {
- assert.expect(3);
-
- if (!isNpm) {
- var wrapped = chain([1, 2]);
-
- assert.deepEqual(wrapped.next(), { 'done': false, 'value': 1 });
- assert.deepEqual(wrapped.next(), { 'done': false, 'value': 2 });
- assert.deepEqual(wrapped.next(), { 'done': true, 'value': undefined });
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should act as an iterable ' + chainType, function(assert) {
- assert.expect(2);
-
- if (!isNpm && Symbol && Symbol.iterator) {
- var array = [1, 2],
- wrapped = chain(array);
-
- assert.strictEqual(wrapped[Symbol.iterator](), wrapped);
- assert.deepEqual(lodashStable.toArray(wrapped), array);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should use `_.toArray` to generate the iterable result ' + chainType, function(assert) {
- assert.expect(3);
-
- if (!isNpm && Array.from) {
- var hearts = '\ud83d\udc95',
- values = [[1], { 'a': 1 }, hearts];
-
- lodashStable.each(values, function(value) {
- var wrapped = chain(value);
- assert.deepEqual(Array.from(wrapped), _.toArray(value));
- });
- }
- else {
- skipAssert(assert, 3);
- }
- });
-
- QUnit.test('should reset the iterator correctly ' + chainType, function(assert) {
- assert.expect(4);
-
- if (!isNpm && Symbol && Symbol.iterator) {
- var array = [1, 2],
- wrapped = chain(array);
-
- assert.deepEqual(lodashStable.toArray(wrapped), array);
- assert.deepEqual(lodashStable.toArray(wrapped), [], 'produces an empty array for exhausted iterator');
-
- var other = wrapped.filter();
- assert.deepEqual(lodashStable.toArray(other), array, 'reset for new chain segments');
- assert.deepEqual(lodashStable.toArray(wrapped), [], 'iterator is still exhausted');
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should work in a lazy sequence ' + chainType, function(assert) {
- assert.expect(3);
-
- if (!isNpm && Symbol && Symbol.iterator) {
- var array = lodashStable.range(LARGE_ARRAY_SIZE),
- predicate = function(value) { values.push(value); return isEven(value); },
- values = [],
- wrapped = chain(array);
-
- assert.deepEqual(lodashStable.toArray(wrapped), array);
-
- wrapped = wrapped.filter(predicate);
- assert.deepEqual(lodashStable.toArray(wrapped), _.filter(array, isEven), 'reset for new lazy chain segments');
- assert.deepEqual(values, array, 'memoizes iterator values');
- }
- else {
- skipAssert(assert, 3);
- }
- });
- });
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).plant');
-
- (function() {
- QUnit.test('should clone the chained sequence planting `value` as the wrapped value', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var array1 = [5, null, 3, null, 1],
- array2 = [10, null, 8, null, 6],
- wrapped1 = _(array1).thru(_.compact).map(square).takeRight(2).sort(),
- wrapped2 = wrapped1.plant(array2);
-
- assert.deepEqual(wrapped2.value(), [36, 64]);
- assert.deepEqual(wrapped1.value(), [1, 9]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should clone `chainAll` settings', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var array1 = [2, 4],
- array2 = [6, 8],
- wrapped1 = _(array1).chain().map(square),
- wrapped2 = wrapped1.plant(array2);
-
- assert.deepEqual(wrapped2.head().value(), 36);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should reset iterator data on cloned sequences', function(assert) {
- assert.expect(3);
-
- if (!isNpm && Symbol && Symbol.iterator) {
- var array1 = [2, 4],
- array2 = [6, 8],
- wrapped1 = _(array1).map(square);
-
- assert.deepEqual(lodashStable.toArray(wrapped1), [4, 16]);
- assert.deepEqual(lodashStable.toArray(wrapped1), []);
-
- var wrapped2 = wrapped1.plant(array2);
- assert.deepEqual(lodashStable.toArray(wrapped2), [36, 64]);
- }
- else {
- skipAssert(assert, 3);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).pop');
-
- (function() {
- QUnit.test('should remove elements from the end of `array`', function(assert) {
- assert.expect(5);
-
- if (!isNpm) {
- var array = [1, 2],
- wrapped = _(array);
-
- assert.strictEqual(wrapped.pop(), 2);
- assert.deepEqual(wrapped.value(), [1]);
- assert.strictEqual(wrapped.pop(), 1);
-
- var actual = wrapped.value();
- assert.strictEqual(actual, array);
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 5);
- }
- });
-
- QUnit.test('should accept falsey arguments', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- try {
- var result = index ? _(value).pop() : _().pop();
- return result === undefined;
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).push');
-
- (function() {
- QUnit.test('should append elements to `array`', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var array = [1],
- wrapped = _(array).push(2, 3),
- actual = wrapped.value();
-
- assert.strictEqual(actual, array);
- assert.deepEqual(actual, [1, 2, 3]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should accept falsey arguments', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- try {
- var result = index ? _(value).push(1).value() : _().push(1).value();
- return lodashStable.eq(result, value);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).shift');
-
- (function() {
- QUnit.test('should remove elements from the front of `array`', function(assert) {
- assert.expect(5);
-
- if (!isNpm) {
- var array = [1, 2],
- wrapped = _(array);
-
- assert.strictEqual(wrapped.shift(), 1);
- assert.deepEqual(wrapped.value(), [2]);
- assert.strictEqual(wrapped.shift(), 2);
-
- var actual = wrapped.value();
- assert.strictEqual(actual, array);
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 5);
- }
- });
-
- QUnit.test('should accept falsey arguments', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- try {
- var result = index ? _(value).shift() : _().shift();
- return result === undefined;
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).sort');
-
- (function() {
- QUnit.test('should return the wrapped sorted `array`', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var array = [3, 1, 2],
- wrapped = _(array).sort(),
- actual = wrapped.value();
-
- assert.strictEqual(actual, array);
- assert.deepEqual(actual, [1, 2, 3]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should accept falsey arguments', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- try {
- var result = index ? _(value).sort().value() : _().sort().value();
- return lodashStable.eq(result, value);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).splice');
-
- (function() {
- QUnit.test('should support removing and inserting elements', function(assert) {
- assert.expect(5);
-
- if (!isNpm) {
- var array = [1, 2],
- wrapped = _(array);
-
- assert.deepEqual(wrapped.splice(1, 1, 3).value(), [2]);
- assert.deepEqual(wrapped.value(), [1, 3]);
- assert.deepEqual(wrapped.splice(0, 2).value(), [1, 3]);
-
- var actual = wrapped.value();
- assert.strictEqual(actual, array);
- assert.deepEqual(actual, []);
- }
- else {
- skipAssert(assert, 5);
- }
- });
-
- QUnit.test('should accept falsey arguments', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- try {
- var result = index ? _(value).splice(0, 1).value() : _().splice(0, 1).value();
- return lodashStable.isEqual(result, []);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).unshift');
-
- (function() {
- QUnit.test('should prepend elements to `array`', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var array = [3],
- wrapped = _(array).unshift(1, 2),
- actual = wrapped.value();
-
- assert.strictEqual(actual, array);
- assert.deepEqual(actual, [1, 2, 3]);
- }
- else {
- skipAssert(assert, 2);
- }
- });
-
- QUnit.test('should accept falsey arguments', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var expected = lodashStable.map(falsey, stubTrue);
-
- var actual = lodashStable.map(falsey, function(value, index) {
- try {
- var result = index ? _(value).unshift(1).value() : _().unshift(1).value();
- return lodashStable.eq(result, value);
- } catch (e) {}
- });
-
- assert.deepEqual(actual, expected);
- }
- else {
- skipAssert(assert);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...).value');
-
- (function() {
- QUnit.test('should execute the chained sequence and extract the unwrapped value', function(assert) {
- assert.expect(4);
-
- if (!isNpm) {
- var array = [1],
- wrapped = _(array).push(2).push(3);
-
- assert.deepEqual(array, [1]);
- assert.deepEqual(wrapped.value(), [1, 2, 3]);
- assert.deepEqual(wrapped.value(), [1, 2, 3, 2, 3]);
- assert.deepEqual(array, [1, 2, 3, 2, 3]);
- }
- else {
- skipAssert(assert, 4);
- }
- });
-
- QUnit.test('should return the `valueOf` result of the wrapped value', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var wrapped = _(123);
- assert.strictEqual(Number(wrapped), 123);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should stringify the wrapped value when used by `JSON.stringify`', function(assert) {
- assert.expect(1);
-
- if (!isNpm && JSON) {
- var wrapped = _([1, 2, 3]);
- assert.strictEqual(JSON.stringify(wrapped), '[1,2,3]');
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('should be aliased', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var expected = _.prototype.value;
- assert.strictEqual(_.prototype.toJSON, expected);
- assert.strictEqual(_.prototype.valueOf, expected);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...) methods that return the wrapped modified array');
-
- (function() {
- var funcs = [
- 'push',
- 'reverse',
- 'sort',
- 'unshift'
- ];
-
- lodashStable.each(funcs, function(methodName) {
- QUnit.test('`_(...).' + methodName + '` should return a new wrapper', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var array = [1, 2, 3],
- wrapped = _(array),
- actual = wrapped[methodName]();
-
- assert.ok(actual instanceof _);
- assert.notStrictEqual(actual, wrapped);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...) methods that return new wrapped values');
-
- (function() {
- var funcs = [
- 'castArray',
- 'concat',
- 'difference',
- 'differenceBy',
- 'differenceWith',
- 'intersection',
- 'intersectionBy',
- 'intersectionWith',
- 'pull',
- 'pullAll',
- 'pullAt',
- 'sampleSize',
- 'shuffle',
- 'slice',
- 'splice',
- 'split',
- 'toArray',
- 'union',
- 'unionBy',
- 'unionWith',
- 'uniq',
- 'uniqBy',
- 'uniqWith',
- 'words',
- 'xor',
- 'xorBy',
- 'xorWith'
- ];
-
- lodashStable.each(funcs, function(methodName) {
- QUnit.test('`_(...).' + methodName + '` should return a new wrapped value', function(assert) {
- assert.expect(2);
-
- if (!isNpm) {
- var value = methodName == 'split' ? 'abc' : [1, 2, 3],
- wrapped = _(value),
- actual = wrapped[methodName]();
-
- assert.ok(actual instanceof _);
- assert.notStrictEqual(actual, wrapped);
- }
- else {
- skipAssert(assert, 2);
- }
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash(...) methods that return unwrapped values');
-
- (function() {
- var funcs = [
- 'add',
- 'camelCase',
- 'capitalize',
- 'ceil',
- 'clone',
- 'deburr',
- 'divide',
- 'endsWith',
- 'escape',
- 'escapeRegExp',
- 'every',
- 'find',
- 'floor',
- 'has',
- 'hasIn',
- 'head',
- 'includes',
- 'isArguments',
- 'isArray',
- 'isArrayBuffer',
- 'isArrayLike',
- 'isBoolean',
- 'isBuffer',
- 'isDate',
- 'isElement',
- 'isEmpty',
- 'isEqual',
- 'isError',
- 'isFinite',
- 'isFunction',
- 'isInteger',
- 'isMap',
- 'isNaN',
- 'isNative',
- 'isNil',
- 'isNull',
- 'isNumber',
- 'isObject',
- 'isObjectLike',
- 'isPlainObject',
- 'isRegExp',
- 'isSafeInteger',
- 'isSet',
- 'isString',
- 'isUndefined',
- 'isWeakMap',
- 'isWeakSet',
- 'join',
- 'kebabCase',
- 'last',
- 'lowerCase',
- 'lowerFirst',
- 'max',
- 'maxBy',
- 'min',
- 'minBy',
- 'multiply',
- 'nth',
- 'pad',
- 'padEnd',
- 'padStart',
- 'parseInt',
- 'pop',
- 'random',
- 'reduce',
- 'reduceRight',
- 'repeat',
- 'replace',
- 'round',
- 'sample',
- 'shift',
- 'size',
- 'snakeCase',
- 'some',
- 'startCase',
- 'startsWith',
- 'subtract',
- 'sum',
- 'toFinite',
- 'toInteger',
- 'toLower',
- 'toNumber',
- 'toSafeInteger',
- 'toString',
- 'toUpper',
- 'trim',
- 'trimEnd',
- 'trimStart',
- 'truncate',
- 'unescape',
- 'upperCase',
- 'upperFirst'
- ];
-
- lodashStable.each(funcs, function(methodName) {
- QUnit.test('`_(...).' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = _()[methodName]();
- assert.notOk(actual instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
-
- QUnit.test('`_(...).' + methodName + '` should return a wrapped value when explicitly chaining', function(assert) {
- assert.expect(1);
-
- if (!isNpm) {
- var actual = _().chain()[methodName]();
- assert.ok(actual instanceof _);
- }
- else {
- skipAssert(assert);
- }
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('"Arrays" category methods');
-
- (function() {
- var args = (function() { return arguments; }(1, null, [3], null, 5)),
- sortedArgs = (function() { return arguments; }(1, [3], 5, null, null)),
- array = [1, 2, 3, 4, 5, 6];
-
- QUnit.test('should work with `arguments` objects', function(assert) {
- assert.expect(30);
-
- function message(methodName) {
- return '`_.' + methodName + '` should work with `arguments` objects';
- }
-
- assert.deepEqual(_.difference(args, [null]), [1, [3], 5], message('difference'));
- assert.deepEqual(_.difference(array, args), [2, 3, 4, 6], '_.difference should work with `arguments` objects as secondary arguments');
-
- assert.deepEqual(_.union(args, [null, 6]), [1, null, [3], 5, 6], message('union'));
- assert.deepEqual(_.union(array, args), array.concat([null, [3]]), '_.union should work with `arguments` objects as secondary arguments');
-
- assert.deepEqual(_.compact(args), [1, [3], 5], message('compact'));
- assert.deepEqual(_.drop(args, 3), [null, 5], message('drop'));
- assert.deepEqual(_.dropRight(args, 3), [1, null], message('dropRight'));
- assert.deepEqual(_.dropRightWhile(args,identity), [1, null, [3], null], message('dropRightWhile'));
- assert.deepEqual(_.dropWhile(args,identity), [null, [3], null, 5], message('dropWhile'));
- assert.deepEqual(_.findIndex(args, identity), 0, message('findIndex'));
- assert.deepEqual(_.findLastIndex(args, identity), 4, message('findLastIndex'));
- assert.deepEqual(_.flatten(args), [1, null, 3, null, 5], message('flatten'));
- assert.deepEqual(_.head(args), 1, message('head'));
- assert.deepEqual(_.indexOf(args, 5), 4, message('indexOf'));
- assert.deepEqual(_.initial(args), [1, null, [3], null], message('initial'));
- assert.deepEqual(_.intersection(args, [1]), [1], message('intersection'));
- assert.deepEqual(_.last(args), 5, message('last'));
- assert.deepEqual(_.lastIndexOf(args, 1), 0, message('lastIndexOf'));
- assert.deepEqual(_.sortedIndex(sortedArgs, 6), 3, message('sortedIndex'));
- assert.deepEqual(_.sortedIndexOf(sortedArgs, 5), 2, message('sortedIndexOf'));
- assert.deepEqual(_.sortedLastIndex(sortedArgs, 5), 3, message('sortedLastIndex'));
- assert.deepEqual(_.sortedLastIndexOf(sortedArgs, 1), 0, message('sortedLastIndexOf'));
- assert.deepEqual(_.tail(args, 4), [null, [3], null, 5], message('tail'));
- assert.deepEqual(_.take(args, 2), [1, null], message('take'));
- assert.deepEqual(_.takeRight(args, 1), [5], message('takeRight'));
- assert.deepEqual(_.takeRightWhile(args, identity), [5], message('takeRightWhile'));
- assert.deepEqual(_.takeWhile(args, identity), [1], message('takeWhile'));
- assert.deepEqual(_.uniq(args), [1, null, [3], 5], message('uniq'));
- assert.deepEqual(_.without(args, null), [1, [3], 5], message('without'));
- assert.deepEqual(_.zip(args, args), [[1, 1], [null, null], [[3], [3]], [null, null], [5, 5]], message('zip'));
- });
-
- QUnit.test('should accept falsey primary arguments', function(assert) {
- assert.expect(4);
-
- function message(methodName) {
- return '`_.' + methodName + '` should accept falsey primary arguments';
- }
-
- assert.deepEqual(_.difference(null, array), [], message('difference'));
- assert.deepEqual(_.intersection(null, array), [], message('intersection'));
- assert.deepEqual(_.union(null, array), array, message('union'));
- assert.deepEqual(_.xor(null, array), array, message('xor'));
- });
-
- QUnit.test('should accept falsey secondary arguments', function(assert) {
- assert.expect(3);
-
- function message(methodName) {
- return '`_.' + methodName + '` should accept falsey secondary arguments';
- }
-
- assert.deepEqual(_.difference(array, null), array, message('difference'));
- assert.deepEqual(_.intersection(array, null), [], message('intersection'));
- assert.deepEqual(_.union(array, null), array, message('union'));
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('"Strings" category methods');
-
- (function() {
- var stringMethods = [
- 'camelCase',
- 'capitalize',
- 'escape',
- 'kebabCase',
- 'lowerCase',
- 'lowerFirst',
- 'pad',
- 'padEnd',
- 'padStart',
- 'repeat',
- 'snakeCase',
- 'toLower',
- 'toUpper',
- 'trim',
- 'trimEnd',
- 'trimStart',
- 'truncate',
- 'unescape',
- 'upperCase',
- 'upperFirst'
- ];
-
- lodashStable.each(stringMethods, function(methodName) {
- var func = _[methodName];
-
- QUnit.test('`_.' + methodName + '` should return an empty string for empty values', function(assert) {
- assert.expect(1);
-
- var values = [, null, undefined, ''],
- expected = lodashStable.map(values, stubString);
-
- var actual = lodashStable.map(values, function(value, index) {
- return index ? func(value) : func();
- });
-
- assert.deepEqual(actual, expected);
- });
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.module('lodash methods');
-
- (function() {
- var allMethods = lodashStable.reject(_.functions(_).sort(), function(methodName) {
- return lodashStable.startsWith(methodName, '_');
- });
-
- var checkFuncs = [
- 'after',
- 'ary',
- 'before',
- 'bind',
- 'curry',
- 'curryRight',
- 'debounce',
- 'defer',
- 'delay',
- 'flip',
- 'flow',
- 'flowRight',
- 'memoize',
- 'negate',
- 'once',
- 'partial',
- 'partialRight',
- 'rearg',
- 'rest',
- 'spread',
- 'throttle',
- 'unary'
- ];
-
- var noBinding = [
- 'flip',
- 'memoize',
- 'negate',
- 'once',
- 'overArgs',
- 'partial',
- 'partialRight',
- 'rearg',
- 'rest',
- 'spread'
- ];
-
- var rejectFalsey = [
- 'tap',
- 'thru'
- ].concat(checkFuncs);
-
- var returnArrays = [
- 'at',
- 'chunk',
- 'compact',
- 'difference',
- 'drop',
- 'filter',
- 'flatten',
- 'functions',
- 'initial',
- 'intersection',
- 'invokeMap',
- 'keys',
- 'map',
- 'orderBy',
- 'pull',
- 'pullAll',
- 'pullAt',
- 'range',
- 'rangeRight',
- 'reject',
- 'remove',
- 'shuffle',
- 'sortBy',
- 'tail',
- 'take',
- 'times',
- 'toArray',
- 'toPairs',
- 'toPairsIn',
- 'union',
- 'uniq',
- 'values',
- 'without',
- 'xor',
- 'zip'
- ];
-
- var acceptFalsey = lodashStable.difference(allMethods, rejectFalsey);
-
- QUnit.test('should accept falsey arguments', function(assert) {
- assert.expect(314);
-
- var arrays = lodashStable.map(falsey, stubArray);
-
- lodashStable.each(acceptFalsey, function(methodName) {
- var expected = arrays,
- func = _[methodName],
- pass = true;
-
- var actual = lodashStable.map(falsey, function(value, index) {
- try {
- return index ? func(value) : func();
- } catch (e) {
- pass = false;
- }
- });
-
- if (methodName == 'noConflict') {
- root._ = oldDash;
- }
- else if (methodName == 'pull' || methodName == 'pullAll') {
- expected = falsey;
- }
- if (lodashStable.includes(returnArrays, methodName) && methodName != 'sample') {
- assert.deepEqual(actual, expected, '_.' + methodName + ' returns an array');
- }
- assert.ok(pass, '`_.' + methodName + '` accepts falsey arguments');
- });
-
- // Skip tests for missing methods of modularized builds.
- lodashStable.each(['chain', 'noConflict', 'runInContext'], function(methodName) {
- if (!_[methodName]) {
- skipAssert(assert);
- }
- });
- });
-
- QUnit.test('should return an array', function(assert) {
- assert.expect(70);
-
- var array = [1, 2, 3];
-
- lodashStable.each(returnArrays, function(methodName) {
- var actual,
- func = _[methodName];
-
- switch (methodName) {
- case 'invokeMap':
- actual = func(array, 'toFixed');
- break;
- case 'sample':
- actual = func(array, 1);
- break;
- default:
- actual = func(array);
- }
- assert.ok(lodashStable.isArray(actual), '_.' + methodName + ' returns an array');
-
- var isPull = methodName == 'pull' || methodName == 'pullAll';
- assert.strictEqual(actual === array, isPull, '_.' + methodName + ' should ' + (isPull ? '' : 'not ') + 'return the given array');
- });
- });
-
- QUnit.test('should throw an error for falsey arguments', function(assert) {
- assert.expect(24);
-
- lodashStable.each(rejectFalsey, function(methodName) {
- var expected = lodashStable.map(falsey, stubTrue),
- func = _[methodName];
-
- var actual = lodashStable.map(falsey, function(value, index) {
- var pass = !index && /^(?:backflow|compose|cond|flow(Right)?|over(?:Every|Some)?)$/.test(methodName);
-
- try {
- index ? func(value) : func();
- } catch (e) {
- pass = !pass && (e instanceof TypeError) &&
- (!lodashStable.includes(checkFuncs, methodName) || (e.message == FUNC_ERROR_TEXT));
- }
- return pass;
- });
-
- assert.deepEqual(actual, expected, '`_.' + methodName + '` rejects falsey arguments');
- });
- });
-
- QUnit.test('should not set a `this` binding', function(assert) {
- assert.expect(30);
-
- lodashStable.each(noBinding, function(methodName) {
- var fn = function() { return this.a; },
- func = _[methodName],
- isNegate = methodName == 'negate',
- object = { 'a': 1 },
- expected = isNegate ? false : 1;
-
- var wrapper = func(_.bind(fn, object));
- assert.strictEqual(wrapper(), expected, '`_.' + methodName + '` can consume a bound function');
-
- wrapper = _.bind(func(fn), object);
- assert.strictEqual(wrapper(), expected, '`_.' + methodName + '` can be bound');
-
- object.wrapper = func(fn);
- assert.strictEqual(object.wrapper(), expected, '`_.' + methodName + '` uses the `this` of its parent object');
- });
- });
-
- QUnit.test('should not contain minified method names (test production builds)', function(assert) {
- assert.expect(1);
-
- var shortNames = ['_', 'at', 'eq', 'gt', 'lt'];
- assert.ok(lodashStable.every(_.functions(_), function(methodName) {
- return methodName.length > 2 || lodashStable.includes(shortNames, methodName);
- }));
- });
- }());
-
- /*--------------------------------------------------------------------------*/
-
- QUnit.config.asyncRetries = 10;
- QUnit.config.hidepassed = true;
-
- if (!document) {
- QUnit.config.noglobals = true;
- QUnit.load();
- }
-}.call(this));
diff --git a/ecomp-portal-FE/client/bower_components/lodash/test/underscore.html b/ecomp-portal-FE/client/bower_components/lodash/test/underscore.html
deleted file mode 100644
index a3e56e81..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/test/underscore.html
+++ /dev/null
@@ -1,484 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Underscore Test Suite</title>
- <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
- </head>
- <body>
- <div id="qunit"></div>
- <script>
- // Avoid reporting tests to Sauce Labs when script errors occur.
- if (location.port == '9001') {
- window.onerror = function(message) {
- if (window.QUnit) {
- QUnit.config.done.length = 0;
- }
- global_test_results = { 'message': message };
- };
- }
- </script>
- <script src="../node_modules/qunitjs/qunit/qunit.js"></script>
- <script src="../node_modules/qunit-extras/qunit-extras.js"></script>
- <script src="../node_modules/jquery/dist/jquery.js"></script>
- <script src="../node_modules/platform/platform.js"></script>
- <script src="./asset/test-ui.js"></script>
- <script src="../lodash.js"></script>
- <script>
- QUnit.config.asyncRetries = 10;
- QUnit.config.hidepassed = true;
- QUnit.config.excused = {
- 'Arrays': {
- 'chunk': [
- 'defaults to empty array (chunk size 0)'
- ],
- 'difference': [
- 'can perform an OO-style difference'
- ],
- 'drop': [
- 'is an alias for rest'
- ],
- 'first': [
- 'returns an empty array when n <= 0 (0 case)',
- 'returns an empty array when n <= 0 (negative case)',
- 'can fetch the first n elements',
- 'returns the whole array if n > length'
- ],
- 'findIndex': [
- 'called with context'
- ],
- 'findLastIndex': [
- 'called with context'
- ],
- 'flatten': [
- 'supports empty arrays',
- 'can flatten nested arrays',
- 'works on an arguments object',
- 'can handle very deep arrays'
- ],
- 'head': [
- 'is an alias for first'
- ],
- 'indexOf': [
- "sorted indexOf doesn't uses binary search",
- '0'
- ],
- 'initial': [
- 'returns all but the last n elements',
- 'returns an empty array when n > length',
- 'works on an arguments object'
- ],
- 'intersection': [
- 'can perform an OO-style intersection'
- ],
- 'last': [
- 'returns an empty array when n <= 0 (0 case)',
- 'returns an empty array when n <= 0 (negative case)',
- 'can fetch the last n elements',
- 'returns the whole array if n > length'
- ],
- 'lastIndexOf': [
- 'should treat falsey `fromIndex` values, except `0` and `NaN`, as `array.length`',
- 'should treat non-number `fromIndex` values as `array.length`',
- '[0,-1,-1]'
- ],
- 'object': [
- 'an array of pairs zipped together into an object',
- 'an object converted to pairs and back to an object'
- ],
- 'range': [
- 'range with two arguments a &amp; b, b&lt;a generates an empty array'
- ],
- 'rest': [
- 'returns the whole array when index is 0',
- 'returns elements starting at the given index',
- 'works on an arguments object'
- ],
- 'sortedIndex': [
- '2',
- '3'
- ],
- 'tail': [
- 'is an alias for rest'
- ],
- 'take': [
- 'is an alias for first'
- ],
- 'uniq': [
- 'uses the result of `iterator` for uniqueness comparisons (unsorted case)',
- '`sorted` argument defaults to false when omitted',
- 'when `iterator` is a string, uses that key for comparisons (unsorted case)',
- 'uses the result of `iterator` for uniqueness comparisons (sorted case)',
- 'when `iterator` is a string, uses that key for comparisons (sorted case)',
- 'can use falsey pluck like iterator'
- ],
- 'union': [
- 'can perform an OO-style union'
- ]
- },
- 'Chaining': {
- 'pop': true,
- 'shift': true,
- 'splice': true,
- 'reverse/concat/unshift/pop/map': [
- 'can chain together array functions.'
- ]
- },
- 'Collections': {
- 'lookupIterator with contexts': true,
- 'Iterating objects with sketchy length properties': true,
- 'Resistant to collection length and properties changing while iterating': true,
- 'countBy': [
- 'true'
- ],
- 'each': [
- 'context object property accessed'
- ],
- 'every': [
- 'Can be called with object',
- 'Died on test #15',
- 'context works'
- ],
- 'filter': [
- 'given context',
- '[{"a":1,"b":2},{"a":1,"b":3},{"a":1,"b":4}]',
- '[{"a":1,"b":2},{"a":2,"b":2}]',
- 'Empty object accepts all items',
- 'OO-filter'
- ],
- 'find': [
- '{"a":1,"b":4}',
- 'undefined when not found',
- 'undefined when searching empty list',
- 'works on objects',
- 'undefined',
- 'called with context'
- ],
- 'findWhere': [
- 'checks properties given function'
- ],
- 'groupBy': [
- 'true'
- ],
- 'includes': [
- "doesn't delegate to binary search"
- ],
- 'invoke': [
- 'handles null & undefined'
- ],
- 'map': [
- 'tripled numbers with context',
- 'OO-style doubled numbers'
- ],
- 'max': [
- 'can handle null/undefined',
- 'can perform a computation-based max',
- 'Maximum value of an empty object',
- 'Maximum value of an empty array',
- 'Maximum value of a non-numeric collection',
- 'Finds correct max in array starting with num and containing a NaN',
- 'Finds correct max in array starting with NaN',
- 'Respects iterator return value of -Infinity',
- 'String keys use property iterator',
- 'Iterator context',
- 'Lookup falsy iterator'
- ],
- 'min': [
- 'can handle null/undefined',
- 'can perform a computation-based min',
- 'Minimum value of an empty object',
- 'Minimum value of an empty array',
- 'Minimum value of a non-numeric collection',
- 'Finds correct min in array starting with NaN',
- 'Respects iterator return value of Infinity',
- 'String keys use property iterator',
- 'Iterator context',
- 'Lookup falsy iterator'
- ],
- 'partition': [
- 'can reference the array index',
- 'Died on test #8',
- 'partition takes a context argument',
- 'function(a){[code]}'
- ],
- 'pluck': [
- '[1]'
- ],
- 'reduce': [
- 'can reduce with a context object'
- ],
- 'reject': [
- 'Returns empty list given empty array'
- ],
- 'sample': [
- 'behaves correctly on negative n',
- 'Died on test #3'
- ],
- 'some': [
- 'Can be called with object',
- 'Died on test #17',
- 'context works'
- ],
- 'where': [
- 'checks properties given function'
- ],
- 'Can use various collection methods on NodeLists': [
- '<span id="id2"></span>',
- '<span id="id1"></span>'
- ]
- },
- 'Functions': {
- 'debounce asap': true,
- 'debounce asap cancel': true,
- 'debounce after system time is set backwards': true,
- 'debounce asap recursively': true,
- 'throttle repeatedly with results': true,
- 'more throttle does not trigger leading call when leading is set to false': true,
- 'throttle does not trigger trailing call when trailing is set to false': true,
- 'before': [
- 'stores a memo to the last value',
- 'provides context'
- ],
- 'bind': [
- 'Died on test #2'
- ],
- 'bindAll': [
- 'throws an error for bindAll with no functions named'
- ],
- 'memoize': [
- '{"bar":"BAR","foo":"FOO"}',
- 'Died on test #8'
- ],
- 'partial':[
- 'can partially apply with placeholders',
- 'accepts more arguments than the number of placeholders',
- 'accepts fewer arguments than the number of placeholders',
- 'unfilled placeholders are undefined',
- 'keeps prototype',
- 'allows the placeholder to be swapped out'
- ]
- },
- 'Objects': {
- '#1929 Typed Array constructors are functions': true,
- 'allKeys': [
- 'is not fooled by sparse arrays; see issue #95',
- 'is not fooled by sparse arrays with additional properties',
- '[]'
- ],
- 'defaults': [
- 'defaults skips nulls',
- 'defaults skips undefined'
- ],
- 'extend': [
- 'extending null results in null',
- 'extending undefined results in undefined'
- ],
- 'extendOwn': [
- 'extending non-objects results in returning the non-object value',
- 'extending undefined results in undefined'
- ],
- 'functions': [
- 'also looks up functions on the prototype'
- ],
- 'isEqual': [
- '`0` is not equal to `-0`',
- 'Commutative equality is implemented for `0` and `-0`',
- '`new Number(0)` and `-0` are not equal',
- 'Commutative equality is implemented for `new Number(0)` and `-0`',
- 'false'
- ],
- 'isFinite': [
- 'Numeric strings are numbers',
- 'Number instances can be finite'
- ],
- 'isMatch': [
- 'doesnt falsey match constructor on undefined/null'
- ],
- 'isSet': [
- 'Died on test #9'
- ],
- 'findKey': [
- 'called with context'
- ],
- 'keys': [
- 'is not fooled by sparse arrays; see issue #95',
- '[]'
- ],
- 'mapObject': [
- 'keep context',
- 'called with context',
- 'mapValue identity'
- ],
- 'matcher': [
- 'null matches null',
- 'treats primitives as empty'
- ],
- 'omit': [
- 'can accept a predicate',
- 'function is given context'
- ],
- 'pick': [
- 'can accept a predicate and context',
- 'function is given context'
- ]
- },
- 'Utility': {
- 'noConflict (node vm)': true,
- 'now': [
- 'Produces the correct time in milliseconds'
- ],
- 'times': [
- 'works as a wrapper'
- ]
- }
- };
-
- var mixinPrereqs = (function() {
- var aliasToReal = {
- 'all': 'every',
- 'allKeys': 'keysIn',
- 'any': 'some',
- 'collect': 'map',
- 'compose': 'flowRight',
- 'contains': 'includes',
- 'detect': 'find',
- 'extendOwn': 'assign',
- 'findWhere': 'find',
- 'foldl': 'reduce',
- 'foldr': 'reduceRight',
- 'include': 'includes',
- 'indexBy': 'keyBy',
- 'inject': 'reduce',
- 'invoke': 'invokeMap',
- 'mapObject': 'mapValues',
- 'matcher': 'matches',
- 'methods': 'functions',
- 'object': 'zipObject',
- 'pairs': 'toPairs',
- 'pluck': 'map',
- 'restParam': 'restArgs',
- 'select': 'filter',
- 'unique': 'uniq',
- 'where': 'filter'
- };
-
- var keyMap = {
- 'rest': 'tail',
- 'restArgs': 'rest'
- };
-
- var lodash = _.noConflict();
-
- return function(_) {
- lodash.defaultsDeep(_, { 'templateSettings': lodash.templateSettings });
- lodash.mixin(_, lodash.pick(lodash, lodash.difference(lodash.functions(lodash), lodash.functions(_))));
-
- lodash.forOwn(keyMap, function(realName, otherName) {
- _[otherName] = lodash[realName];
- _.prototype[otherName] = lodash.prototype[realName];
- });
-
- lodash.forOwn(aliasToReal, function(realName, alias) {
- _[alias] = _[realName];
- _.prototype[alias] = _.prototype[realName];
- });
- };
- }());
-
- // Only excuse in Sauce Labs.
- if (!ui.isSauceLabs) {
- delete QUnit.config.excused.Functions['throttle does not trigger trailing call when trailing is set to false'];
- delete QUnit.config.excused.Utility.now;
- }
- // Load prerequisite scripts.
- document.write(ui.urlParams.loader == 'none'
- ? '<script src="' + ui.buildPath + '"><\/script>'
- : '<script data-dojo-config="async:1" src="' + ui.loaderPath + '"><\/script>'
- );
- </script>
- <script>
- if (ui.urlParams.loader == 'none') {
- mixinPrereqs(_);
- document.write([
- '<script src="../vendor/underscore/test/collections.js"><\/script>',
- '<script src="../vendor/underscore/test/arrays.js"><\/script>',
- '<script src="../vendor/underscore/test/functions.js"><\/script>',
- '<script src="../vendor/underscore/test/objects.js"><\/script>',
- '<script src="../vendor/underscore/test/cross-document.js"><\/script>',
- '<script src="../vendor/underscore/test/utility.js"><\/script>',
- '<script src="../vendor/underscore/test/chaining.js"><\/script>'
- ].join('\n'));
- }
- </script>
- <script>
- (function() {
- if (window.curl) {
- curl.config({ 'apiName': 'require' });
- }
- if (!window.require) {
- return;
- }
- // Wrap to work around tests assuming Node `require` use.
- require = (function(func) {
- return function() {
- return arguments[0] === '..' ? window._ : func.apply(null, arguments);
- };
- }(require));
-
- var reBasename = /[\w.-]+$/,
- basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
- modulePath = ui.buildPath.replace(/\.js$/, ''),
- locationPath = modulePath.replace(reBasename, '').replace(/^\/|\/$/g, ''),
- moduleId = /\bunderscore\b/i.test(ui.buildPath) ? 'underscore' : 'lodash',
- moduleMain = modulePath.match(reBasename)[0],
- uid = +new Date;
-
- function getConfig() {
- var result = {
- 'baseUrl': './',
- 'urlArgs': 't=' + uid++,
- 'waitSeconds': 0,
- 'paths': {},
- 'packages': [{
- 'name': 'test',
- 'location': '../vendor/underscore/test',
- 'config': {
- // Work around no global being exported.
- 'exports': 'QUnit',
- 'loader': 'curl/loader/legacy'
- }
- }]
- };
-
- if (ui.isModularize) {
- result.packages.push({
- 'name': moduleId,
- 'location': locationPath,
- 'main': moduleMain
- });
- } else {
- result.paths[moduleId] = modulePath;
- }
- return result;
- }
-
- QUnit.config.autostart = false;
-
- require(getConfig(), [moduleId], function(lodash) {
- mixinPrereqs(lodash);
- require(getConfig(), [
- 'test/collections',
- 'test/arrays',
- 'test/functions',
- 'test/objects',
- 'test/cross-document',
- 'test/utility',
- 'test/chaining'
- ], function() {
- QUnit.start();
- });
- });
- }());
- </script>
- </body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/LICENSE b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/LICENSE
deleted file mode 100644
index 02c89b26..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2010-2016 Jeremy Ashkenas, DocumentCloud
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/backbone.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/backbone.js
deleted file mode 100644
index 55ccb22b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/backbone.js
+++ /dev/null
@@ -1,1920 +0,0 @@
-// Backbone.js 1.3.3
-
-// (c) 2010-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Backbone may be freely distributed under the MIT license.
-// For all details and documentation:
-// http://backbonejs.org
-
-(function(factory) {
-
- // Establish the root object, `window` (`self`) in the browser, or `global` on the server.
- // We use `self` instead of `window` for `WebWorker` support.
- var root = (typeof self == 'object' && self.self === self && self) ||
- (typeof global == 'object' && global.global === global && global);
-
- // Set up Backbone appropriately for the environment. Start with AMD.
- if (typeof define === 'function' && define.amd) {
- define(['underscore', 'jquery', 'exports'], function(_, $, exports) {
- // Export global even in AMD case in case this script is loaded with
- // others that may still expect a global Backbone.
- root.Backbone = factory(root, exports, _, $);
- });
-
- // Next for Node.js or CommonJS. jQuery may not be needed as a module.
- } else if (typeof exports !== 'undefined') {
- var _ = require('underscore'), $;
- try { $ = require('jquery'); } catch (e) {}
- factory(root, exports, _, $);
-
- // Finally, as a browser global.
- } else {
- root.Backbone = factory(root, {}, root._, (root.jQuery || root.Zepto || root.ender || root.$));
- }
-
-})(function(root, Backbone, _, $) {
-
- // Initial Setup
- // -------------
-
- // Save the previous value of the `Backbone` variable, so that it can be
- // restored later on, if `noConflict` is used.
- var previousBackbone = root.Backbone;
-
- // Create a local reference to a common array method we'll want to use later.
- var slice = Array.prototype.slice;
-
- // Current version of the library. Keep in sync with `package.json`.
- Backbone.VERSION = '1.3.3';
-
- // For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns
- // the `$` variable.
- Backbone.$ = $;
-
- // Runs Backbone.js in *noConflict* mode, returning the `Backbone` variable
- // to its previous owner. Returns a reference to this Backbone object.
- Backbone.noConflict = function() {
- root.Backbone = previousBackbone;
- return this;
- };
-
- // Turn on `emulateHTTP` to support legacy HTTP servers. Setting this option
- // will fake `"PATCH"`, `"PUT"` and `"DELETE"` requests via the `_method` parameter and
- // set a `X-Http-Method-Override` header.
- Backbone.emulateHTTP = false;
-
- // Turn on `emulateJSON` to support legacy servers that can't deal with direct
- // `application/json` requests ... this will encode the body as
- // `application/x-www-form-urlencoded` instead and will send the model in a
- // form param named `model`.
- Backbone.emulateJSON = false;
-
- // Proxy Backbone class methods to Underscore functions, wrapping the model's
- // `attributes` object or collection's `models` array behind the scenes.
- //
- // collection.filter(function(model) { return model.get('age') > 10 });
- // collection.each(this.addView);
- //
- // `Function#apply` can be slow so we use the method's arg count, if we know it.
- var addMethod = function(length, method, attribute) {
- switch (length) {
- case 1: return function() {
- return _[method](this[attribute]);
- };
- case 2: return function(value) {
- return _[method](this[attribute], value);
- };
- case 3: return function(iteratee, context) {
- return _[method](this[attribute], cb(iteratee, this), context);
- };
- case 4: return function(iteratee, defaultVal, context) {
- return _[method](this[attribute], cb(iteratee, this), defaultVal, context);
- };
- default: return function() {
- var args = slice.call(arguments);
- args.unshift(this[attribute]);
- return _[method].apply(_, args);
- };
- }
- };
- var addUnderscoreMethods = function(Class, methods, attribute) {
- _.each(methods, function(length, method) {
- if (_[method]) Class.prototype[method] = addMethod(length, method, attribute);
- });
- };
-
- // Support `collection.sortBy('attr')` and `collection.findWhere({id: 1})`.
- var cb = function(iteratee, instance) {
- if (_.isFunction(iteratee)) return iteratee;
- if (_.isObject(iteratee) && !instance._isModel(iteratee)) return modelMatcher(iteratee);
- if (_.isString(iteratee)) return function(model) { return model.get(iteratee); };
- return iteratee;
- };
- var modelMatcher = function(attrs) {
- var matcher = _.matches(attrs);
- return function(model) {
- return matcher(model.attributes);
- };
- };
-
- // Backbone.Events
- // ---------------
-
- // A module that can be mixed in to *any object* in order to provide it with
- // a custom event channel. You may bind a callback to an event with `on` or
- // remove with `off`; `trigger`-ing an event fires all callbacks in
- // succession.
- //
- // var object = {};
- // _.extend(object, Backbone.Events);
- // object.on('expand', function(){ alert('expanded'); });
- // object.trigger('expand');
- //
- var Events = Backbone.Events = {};
-
- // Regular expression used to split event strings.
- var eventSplitter = /\s+/;
-
- // Iterates over the standard `event, callback` (as well as the fancy multiple
- // space-separated events `"change blur", callback` and jQuery-style event
- // maps `{event: callback}`).
- var eventsApi = function(iteratee, events, name, callback, opts) {
- var i = 0, names;
- if (name && typeof name === 'object') {
- // Handle event maps.
- if (callback !== void 0 && 'context' in opts && opts.context === void 0) opts.context = callback;
- for (names = _.keys(name); i < names.length ; i++) {
- events = eventsApi(iteratee, events, names[i], name[names[i]], opts);
- }
- } else if (name && eventSplitter.test(name)) {
- // Handle space-separated event names by delegating them individually.
- for (names = name.split(eventSplitter); i < names.length; i++) {
- events = iteratee(events, names[i], callback, opts);
- }
- } else {
- // Finally, standard events.
- events = iteratee(events, name, callback, opts);
- }
- return events;
- };
-
- // Bind an event to a `callback` function. Passing `"all"` will bind
- // the callback to all events fired.
- Events.on = function(name, callback, context) {
- return internalOn(this, name, callback, context);
- };
-
- // Guard the `listening` argument from the public API.
- var internalOn = function(obj, name, callback, context, listening) {
- obj._events = eventsApi(onApi, obj._events || {}, name, callback, {
- context: context,
- ctx: obj,
- listening: listening
- });
-
- if (listening) {
- var listeners = obj._listeners || (obj._listeners = {});
- listeners[listening.id] = listening;
- }
-
- return obj;
- };
-
- // Inversion-of-control versions of `on`. Tell *this* object to listen to
- // an event in another object... keeping track of what it's listening to
- // for easier unbinding later.
- Events.listenTo = function(obj, name, callback) {
- if (!obj) return this;
- var id = obj._listenId || (obj._listenId = _.uniqueId('l'));
- var listeningTo = this._listeningTo || (this._listeningTo = {});
- var listening = listeningTo[id];
-
- // This object is not listening to any other events on `obj` yet.
- // Setup the necessary references to track the listening callbacks.
- if (!listening) {
- var thisId = this._listenId || (this._listenId = _.uniqueId('l'));
- listening = listeningTo[id] = {obj: obj, objId: id, id: thisId, listeningTo: listeningTo, count: 0};
- }
-
- // Bind callbacks on obj, and keep track of them on listening.
- internalOn(obj, name, callback, this, listening);
- return this;
- };
-
- // The reducing API that adds a callback to the `events` object.
- var onApi = function(events, name, callback, options) {
- if (callback) {
- var handlers = events[name] || (events[name] = []);
- var context = options.context, ctx = options.ctx, listening = options.listening;
- if (listening) listening.count++;
-
- handlers.push({callback: callback, context: context, ctx: context || ctx, listening: listening});
- }
- return events;
- };
-
- // Remove one or many callbacks. If `context` is null, removes all
- // callbacks with that function. If `callback` is null, removes all
- // callbacks for the event. If `name` is null, removes all bound
- // callbacks for all events.
- Events.off = function(name, callback, context) {
- if (!this._events) return this;
- this._events = eventsApi(offApi, this._events, name, callback, {
- context: context,
- listeners: this._listeners
- });
- return this;
- };
-
- // Tell this object to stop listening to either specific events ... or
- // to every object it's currently listening to.
- Events.stopListening = function(obj, name, callback) {
- var listeningTo = this._listeningTo;
- if (!listeningTo) return this;
-
- var ids = obj ? [obj._listenId] : _.keys(listeningTo);
-
- for (var i = 0; i < ids.length; i++) {
- var listening = listeningTo[ids[i]];
-
- // If listening doesn't exist, this object is not currently
- // listening to obj. Break out early.
- if (!listening) break;
-
- listening.obj.off(name, callback, this);
- }
-
- return this;
- };
-
- // The reducing API that removes a callback from the `events` object.
- var offApi = function(events, name, callback, options) {
- if (!events) return;
-
- var i = 0, listening;
- var context = options.context, listeners = options.listeners;
-
- // Delete all events listeners and "drop" events.
- if (!name && !callback && !context) {
- var ids = _.keys(listeners);
- for (; i < ids.length; i++) {
- listening = listeners[ids[i]];
- delete listeners[listening.id];
- delete listening.listeningTo[listening.objId];
- }
- return;
- }
-
- var names = name ? [name] : _.keys(events);
- for (; i < names.length; i++) {
- name = names[i];
- var handlers = events[name];
-
- // Bail out if there are no events stored.
- if (!handlers) break;
-
- // Replace events if there are any remaining. Otherwise, clean up.
- var remaining = [];
- for (var j = 0; j < handlers.length; j++) {
- var handler = handlers[j];
- if (
- callback && callback !== handler.callback &&
- callback !== handler.callback._callback ||
- context && context !== handler.context
- ) {
- remaining.push(handler);
- } else {
- listening = handler.listening;
- if (listening && --listening.count === 0) {
- delete listeners[listening.id];
- delete listening.listeningTo[listening.objId];
- }
- }
- }
-
- // Update tail event if the list has any events. Otherwise, clean up.
- if (remaining.length) {
- events[name] = remaining;
- } else {
- delete events[name];
- }
- }
- return events;
- };
-
- // Bind an event to only be triggered a single time. After the first time
- // the callback is invoked, its listener will be removed. If multiple events
- // are passed in using the space-separated syntax, the handler will fire
- // once for each event, not once for a combination of all events.
- Events.once = function(name, callback, context) {
- // Map the event into a `{event: once}` object.
- var events = eventsApi(onceMap, {}, name, callback, _.bind(this.off, this));
- if (typeof name === 'string' && context == null) callback = void 0;
- return this.on(events, callback, context);
- };
-
- // Inversion-of-control versions of `once`.
- Events.listenToOnce = function(obj, name, callback) {
- // Map the event into a `{event: once}` object.
- var events = eventsApi(onceMap, {}, name, callback, _.bind(this.stopListening, this, obj));
- return this.listenTo(obj, events);
- };
-
- // Reduces the event callbacks into a map of `{event: onceWrapper}`.
- // `offer` unbinds the `onceWrapper` after it has been called.
- var onceMap = function(map, name, callback, offer) {
- if (callback) {
- var once = map[name] = _.once(function() {
- offer(name, once);
- callback.apply(this, arguments);
- });
- once._callback = callback;
- }
- return map;
- };
-
- // Trigger one or many events, firing all bound callbacks. Callbacks are
- // passed the same arguments as `trigger` is, apart from the event name
- // (unless you're listening on `"all"`, which will cause your callback to
- // receive the true name of the event as the first argument).
- Events.trigger = function(name) {
- if (!this._events) return this;
-
- var length = Math.max(0, arguments.length - 1);
- var args = Array(length);
- for (var i = 0; i < length; i++) args[i] = arguments[i + 1];
-
- eventsApi(triggerApi, this._events, name, void 0, args);
- return this;
- };
-
- // Handles triggering the appropriate event callbacks.
- var triggerApi = function(objEvents, name, callback, args) {
- if (objEvents) {
- var events = objEvents[name];
- var allEvents = objEvents.all;
- if (events && allEvents) allEvents = allEvents.slice();
- if (events) triggerEvents(events, args);
- if (allEvents) triggerEvents(allEvents, [name].concat(args));
- }
- return objEvents;
- };
-
- // A difficult-to-believe, but optimized internal dispatch function for
- // triggering events. Tries to keep the usual cases speedy (most internal
- // Backbone events have 3 arguments).
- var triggerEvents = function(events, args) {
- var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];
- switch (args.length) {
- case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;
- case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;
- case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;
- case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;
- default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args); return;
- }
- };
-
- // Aliases for backwards compatibility.
- Events.bind = Events.on;
- Events.unbind = Events.off;
-
- // Allow the `Backbone` object to serve as a global event bus, for folks who
- // want global "pubsub" in a convenient place.
- _.extend(Backbone, Events);
-
- // Backbone.Model
- // --------------
-
- // Backbone **Models** are the basic data object in the framework --
- // frequently representing a row in a table in a database on your server.
- // A discrete chunk of data and a bunch of useful, related methods for
- // performing computations and transformations on that data.
-
- // Create a new model with the specified attributes. A client id (`cid`)
- // is automatically generated and assigned for you.
- var Model = Backbone.Model = function(attributes, options) {
- var attrs = attributes || {};
- options || (options = {});
- this.cid = _.uniqueId(this.cidPrefix);
- this.attributes = {};
- if (options.collection) this.collection = options.collection;
- if (options.parse) attrs = this.parse(attrs, options) || {};
- var defaults = _.result(this, 'defaults');
- attrs = _.defaults(_.extend({}, defaults, attrs), defaults);
- this.set(attrs, options);
- this.changed = {};
- this.initialize.apply(this, arguments);
- };
-
- // Attach all inheritable methods to the Model prototype.
- _.extend(Model.prototype, Events, {
-
- // A hash of attributes whose current and previous value differ.
- changed: null,
-
- // The value returned during the last failed validation.
- validationError: null,
-
- // The default name for the JSON `id` attribute is `"id"`. MongoDB and
- // CouchDB users may want to set this to `"_id"`.
- idAttribute: 'id',
-
- // The prefix is used to create the client id which is used to identify models locally.
- // You may want to override this if you're experiencing name clashes with model ids.
- cidPrefix: 'c',
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // Return a copy of the model's `attributes` object.
- toJSON: function(options) {
- return _.clone(this.attributes);
- },
-
- // Proxy `Backbone.sync` by default -- but override this if you need
- // custom syncing semantics for *this* particular model.
- sync: function() {
- return Backbone.sync.apply(this, arguments);
- },
-
- // Get the value of an attribute.
- get: function(attr) {
- return this.attributes[attr];
- },
-
- // Get the HTML-escaped value of an attribute.
- escape: function(attr) {
- return _.escape(this.get(attr));
- },
-
- // Returns `true` if the attribute contains a value that is not null
- // or undefined.
- has: function(attr) {
- return this.get(attr) != null;
- },
-
- // Special-cased proxy to underscore's `_.matches` method.
- matches: function(attrs) {
- return !!_.iteratee(attrs, this)(this.attributes);
- },
-
- // Set a hash of model attributes on the object, firing `"change"`. This is
- // the core primitive operation of a model, updating the data and notifying
- // anyone who needs to know about the change in state. The heart of the beast.
- set: function(key, val, options) {
- if (key == null) return this;
-
- // Handle both `"key", value` and `{key: value}` -style arguments.
- var attrs;
- if (typeof key === 'object') {
- attrs = key;
- options = val;
- } else {
- (attrs = {})[key] = val;
- }
-
- options || (options = {});
-
- // Run validation.
- if (!this._validate(attrs, options)) return false;
-
- // Extract attributes and options.
- var unset = options.unset;
- var silent = options.silent;
- var changes = [];
- var changing = this._changing;
- this._changing = true;
-
- if (!changing) {
- this._previousAttributes = _.clone(this.attributes);
- this.changed = {};
- }
-
- var current = this.attributes;
- var changed = this.changed;
- var prev = this._previousAttributes;
-
- // For each `set` attribute, update or delete the current value.
- for (var attr in attrs) {
- val = attrs[attr];
- if (!_.isEqual(current[attr], val)) changes.push(attr);
- if (!_.isEqual(prev[attr], val)) {
- changed[attr] = val;
- } else {
- delete changed[attr];
- }
- unset ? delete current[attr] : current[attr] = val;
- }
-
- // Update the `id`.
- if (this.idAttribute in attrs) this.id = this.get(this.idAttribute);
-
- // Trigger all relevant attribute changes.
- if (!silent) {
- if (changes.length) this._pending = options;
- for (var i = 0; i < changes.length; i++) {
- this.trigger('change:' + changes[i], this, current[changes[i]], options);
- }
- }
-
- // You might be wondering why there's a `while` loop here. Changes can
- // be recursively nested within `"change"` events.
- if (changing) return this;
- if (!silent) {
- while (this._pending) {
- options = this._pending;
- this._pending = false;
- this.trigger('change', this, options);
- }
- }
- this._pending = false;
- this._changing = false;
- return this;
- },
-
- // Remove an attribute from the model, firing `"change"`. `unset` is a noop
- // if the attribute doesn't exist.
- unset: function(attr, options) {
- return this.set(attr, void 0, _.extend({}, options, {unset: true}));
- },
-
- // Clear all attributes on the model, firing `"change"`.
- clear: function(options) {
- var attrs = {};
- for (var key in this.attributes) attrs[key] = void 0;
- return this.set(attrs, _.extend({}, options, {unset: true}));
- },
-
- // Determine if the model has changed since the last `"change"` event.
- // If you specify an attribute name, determine if that attribute has changed.
- hasChanged: function(attr) {
- if (attr == null) return !_.isEmpty(this.changed);
- return _.has(this.changed, attr);
- },
-
- // Return an object containing all the attributes that have changed, or
- // false if there are no changed attributes. Useful for determining what
- // parts of a view need to be updated and/or what attributes need to be
- // persisted to the server. Unset attributes will be set to undefined.
- // You can also pass an attributes object to diff against the model,
- // determining if there *would be* a change.
- changedAttributes: function(diff) {
- if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;
- var old = this._changing ? this._previousAttributes : this.attributes;
- var changed = {};
- for (var attr in diff) {
- var val = diff[attr];
- if (_.isEqual(old[attr], val)) continue;
- changed[attr] = val;
- }
- return _.size(changed) ? changed : false;
- },
-
- // Get the previous value of an attribute, recorded at the time the last
- // `"change"` event was fired.
- previous: function(attr) {
- if (attr == null || !this._previousAttributes) return null;
- return this._previousAttributes[attr];
- },
-
- // Get all of the attributes of the model at the time of the previous
- // `"change"` event.
- previousAttributes: function() {
- return _.clone(this._previousAttributes);
- },
-
- // Fetch the model from the server, merging the response with the model's
- // local attributes. Any changed attributes will trigger a "change" event.
- fetch: function(options) {
- options = _.extend({parse: true}, options);
- var model = this;
- var success = options.success;
- options.success = function(resp) {
- var serverAttrs = options.parse ? model.parse(resp, options) : resp;
- if (!model.set(serverAttrs, options)) return false;
- if (success) success.call(options.context, model, resp, options);
- model.trigger('sync', model, resp, options);
- };
- wrapError(this, options);
- return this.sync('read', this, options);
- },
-
- // Set a hash of model attributes, and sync the model to the server.
- // If the server returns an attributes hash that differs, the model's
- // state will be `set` again.
- save: function(key, val, options) {
- // Handle both `"key", value` and `{key: value}` -style arguments.
- var attrs;
- if (key == null || typeof key === 'object') {
- attrs = key;
- options = val;
- } else {
- (attrs = {})[key] = val;
- }
-
- options = _.extend({validate: true, parse: true}, options);
- var wait = options.wait;
-
- // If we're not waiting and attributes exist, save acts as
- // `set(attr).save(null, opts)` with validation. Otherwise, check if
- // the model will be valid when the attributes, if any, are set.
- if (attrs && !wait) {
- if (!this.set(attrs, options)) return false;
- } else if (!this._validate(attrs, options)) {
- return false;
- }
-
- // After a successful server-side save, the client is (optionally)
- // updated with the server-side state.
- var model = this;
- var success = options.success;
- var attributes = this.attributes;
- options.success = function(resp) {
- // Ensure attributes are restored during synchronous saves.
- model.attributes = attributes;
- var serverAttrs = options.parse ? model.parse(resp, options) : resp;
- if (wait) serverAttrs = _.extend({}, attrs, serverAttrs);
- if (serverAttrs && !model.set(serverAttrs, options)) return false;
- if (success) success.call(options.context, model, resp, options);
- model.trigger('sync', model, resp, options);
- };
- wrapError(this, options);
-
- // Set temporary attributes if `{wait: true}` to properly find new ids.
- if (attrs && wait) this.attributes = _.extend({}, attributes, attrs);
-
- var method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
- if (method === 'patch' && !options.attrs) options.attrs = attrs;
- var xhr = this.sync(method, this, options);
-
- // Restore attributes.
- this.attributes = attributes;
-
- return xhr;
- },
-
- // Destroy this model on the server if it was already persisted.
- // Optimistically removes the model from its collection, if it has one.
- // If `wait: true` is passed, waits for the server to respond before removal.
- destroy: function(options) {
- options = options ? _.clone(options) : {};
- var model = this;
- var success = options.success;
- var wait = options.wait;
-
- var destroy = function() {
- model.stopListening();
- model.trigger('destroy', model, model.collection, options);
- };
-
- options.success = function(resp) {
- if (wait) destroy();
- if (success) success.call(options.context, model, resp, options);
- if (!model.isNew()) model.trigger('sync', model, resp, options);
- };
-
- var xhr = false;
- if (this.isNew()) {
- _.defer(options.success);
- } else {
- wrapError(this, options);
- xhr = this.sync('delete', this, options);
- }
- if (!wait) destroy();
- return xhr;
- },
-
- // Default URL for the model's representation on the server -- if you're
- // using Backbone's restful methods, override this to change the endpoint
- // that will be called.
- url: function() {
- var base =
- _.result(this, 'urlRoot') ||
- _.result(this.collection, 'url') ||
- urlError();
- if (this.isNew()) return base;
- var id = this.get(this.idAttribute);
- return base.replace(/[^\/]$/, '$&/') + encodeURIComponent(id);
- },
-
- // **parse** converts a response into the hash of attributes to be `set` on
- // the model. The default implementation is just to pass the response along.
- parse: function(resp, options) {
- return resp;
- },
-
- // Create a new model with identical attributes to this one.
- clone: function() {
- return new this.constructor(this.attributes);
- },
-
- // A model is new if it has never been saved to the server, and lacks an id.
- isNew: function() {
- return !this.has(this.idAttribute);
- },
-
- // Check if the model is currently in a valid state.
- isValid: function(options) {
- return this._validate({}, _.extend({}, options, {validate: true}));
- },
-
- // Run validation against the next complete set of model attributes,
- // returning `true` if all is well. Otherwise, fire an `"invalid"` event.
- _validate: function(attrs, options) {
- if (!options.validate || !this.validate) return true;
- attrs = _.extend({}, this.attributes, attrs);
- var error = this.validationError = this.validate(attrs, options) || null;
- if (!error) return true;
- this.trigger('invalid', this, error, _.extend(options, {validationError: error}));
- return false;
- }
-
- });
-
- // Underscore methods that we want to implement on the Model, mapped to the
- // number of arguments they take.
- var modelMethods = {keys: 1, values: 1, pairs: 1, invert: 1, pick: 0,
- omit: 0, chain: 1, isEmpty: 1};
-
- // Mix in each Underscore method as a proxy to `Model#attributes`.
- addUnderscoreMethods(Model, modelMethods, 'attributes');
-
- // Backbone.Collection
- // -------------------
-
- // If models tend to represent a single row of data, a Backbone Collection is
- // more analogous to a table full of data ... or a small slice or page of that
- // table, or a collection of rows that belong together for a particular reason
- // -- all of the messages in this particular folder, all of the documents
- // belonging to this particular author, and so on. Collections maintain
- // indexes of their models, both in order, and for lookup by `id`.
-
- // Create a new **Collection**, perhaps to contain a specific type of `model`.
- // If a `comparator` is specified, the Collection will maintain
- // its models in sort order, as they're added and removed.
- var Collection = Backbone.Collection = function(models, options) {
- options || (options = {});
- if (options.model) this.model = options.model;
- if (options.comparator !== void 0) this.comparator = options.comparator;
- this._reset();
- this.initialize.apply(this, arguments);
- if (models) this.reset(models, _.extend({silent: true}, options));
- };
-
- // Default options for `Collection#set`.
- var setOptions = {add: true, remove: true, merge: true};
- var addOptions = {add: true, remove: false};
-
- // Splices `insert` into `array` at index `at`.
- var splice = function(array, insert, at) {
- at = Math.min(Math.max(at, 0), array.length);
- var tail = Array(array.length - at);
- var length = insert.length;
- var i;
- for (i = 0; i < tail.length; i++) tail[i] = array[i + at];
- for (i = 0; i < length; i++) array[i + at] = insert[i];
- for (i = 0; i < tail.length; i++) array[i + length + at] = tail[i];
- };
-
- // Define the Collection's inheritable methods.
- _.extend(Collection.prototype, Events, {
-
- // The default model for a collection is just a **Backbone.Model**.
- // This should be overridden in most cases.
- model: Model,
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // The JSON representation of a Collection is an array of the
- // models' attributes.
- toJSON: function(options) {
- return this.map(function(model) { return model.toJSON(options); });
- },
-
- // Proxy `Backbone.sync` by default.
- sync: function() {
- return Backbone.sync.apply(this, arguments);
- },
-
- // Add a model, or list of models to the set. `models` may be Backbone
- // Models or raw JavaScript objects to be converted to Models, or any
- // combination of the two.
- add: function(models, options) {
- return this.set(models, _.extend({merge: false}, options, addOptions));
- },
-
- // Remove a model, or a list of models from the set.
- remove: function(models, options) {
- options = _.extend({}, options);
- var singular = !_.isArray(models);
- models = singular ? [models] : models.slice();
- var removed = this._removeModels(models, options);
- if (!options.silent && removed.length) {
- options.changes = {added: [], merged: [], removed: removed};
- this.trigger('update', this, options);
- }
- return singular ? removed[0] : removed;
- },
-
- // Update a collection by `set`-ing a new list of models, adding new ones,
- // removing models that are no longer present, and merging models that
- // already exist in the collection, as necessary. Similar to **Model#set**,
- // the core operation for updating the data contained by the collection.
- set: function(models, options) {
- if (models == null) return;
-
- options = _.extend({}, setOptions, options);
- if (options.parse && !this._isModel(models)) {
- models = this.parse(models, options) || [];
- }
-
- var singular = !_.isArray(models);
- models = singular ? [models] : models.slice();
-
- var at = options.at;
- if (at != null) at = +at;
- if (at > this.length) at = this.length;
- if (at < 0) at += this.length + 1;
-
- var set = [];
- var toAdd = [];
- var toMerge = [];
- var toRemove = [];
- var modelMap = {};
-
- var add = options.add;
- var merge = options.merge;
- var remove = options.remove;
-
- var sort = false;
- var sortable = this.comparator && at == null && options.sort !== false;
- var sortAttr = _.isString(this.comparator) ? this.comparator : null;
-
- // Turn bare objects into model references, and prevent invalid models
- // from being added.
- var model, i;
- for (i = 0; i < models.length; i++) {
- model = models[i];
-
- // If a duplicate is found, prevent it from being added and
- // optionally merge it into the existing model.
- var existing = this.get(model);
- if (existing) {
- if (merge && model !== existing) {
- var attrs = this._isModel(model) ? model.attributes : model;
- if (options.parse) attrs = existing.parse(attrs, options);
- existing.set(attrs, options);
- toMerge.push(existing);
- if (sortable && !sort) sort = existing.hasChanged(sortAttr);
- }
- if (!modelMap[existing.cid]) {
- modelMap[existing.cid] = true;
- set.push(existing);
- }
- models[i] = existing;
-
- // If this is a new, valid model, push it to the `toAdd` list.
- } else if (add) {
- model = models[i] = this._prepareModel(model, options);
- if (model) {
- toAdd.push(model);
- this._addReference(model, options);
- modelMap[model.cid] = true;
- set.push(model);
- }
- }
- }
-
- // Remove stale models.
- if (remove) {
- for (i = 0; i < this.length; i++) {
- model = this.models[i];
- if (!modelMap[model.cid]) toRemove.push(model);
- }
- if (toRemove.length) this._removeModels(toRemove, options);
- }
-
- // See if sorting is needed, update `length` and splice in new models.
- var orderChanged = false;
- var replace = !sortable && add && remove;
- if (set.length && replace) {
- orderChanged = this.length !== set.length || _.some(this.models, function(m, index) {
- return m !== set[index];
- });
- this.models.length = 0;
- splice(this.models, set, 0);
- this.length = this.models.length;
- } else if (toAdd.length) {
- if (sortable) sort = true;
- splice(this.models, toAdd, at == null ? this.length : at);
- this.length = this.models.length;
- }
-
- // Silently sort the collection if appropriate.
- if (sort) this.sort({silent: true});
-
- // Unless silenced, it's time to fire all appropriate add/sort/update events.
- if (!options.silent) {
- for (i = 0; i < toAdd.length; i++) {
- if (at != null) options.index = at + i;
- model = toAdd[i];
- model.trigger('add', model, this, options);
- }
- if (sort || orderChanged) this.trigger('sort', this, options);
- if (toAdd.length || toRemove.length || toMerge.length) {
- options.changes = {
- added: toAdd,
- removed: toRemove,
- merged: toMerge
- };
- this.trigger('update', this, options);
- }
- }
-
- // Return the added (or merged) model (or models).
- return singular ? models[0] : models;
- },
-
- // When you have more items than you want to add or remove individually,
- // you can reset the entire set with a new list of models, without firing
- // any granular `add` or `remove` events. Fires `reset` when finished.
- // Useful for bulk operations and optimizations.
- reset: function(models, options) {
- options = options ? _.clone(options) : {};
- for (var i = 0; i < this.models.length; i++) {
- this._removeReference(this.models[i], options);
- }
- options.previousModels = this.models;
- this._reset();
- models = this.add(models, _.extend({silent: true}, options));
- if (!options.silent) this.trigger('reset', this, options);
- return models;
- },
-
- // Add a model to the end of the collection.
- push: function(model, options) {
- return this.add(model, _.extend({at: this.length}, options));
- },
-
- // Remove a model from the end of the collection.
- pop: function(options) {
- var model = this.at(this.length - 1);
- return this.remove(model, options);
- },
-
- // Add a model to the beginning of the collection.
- unshift: function(model, options) {
- return this.add(model, _.extend({at: 0}, options));
- },
-
- // Remove a model from the beginning of the collection.
- shift: function(options) {
- var model = this.at(0);
- return this.remove(model, options);
- },
-
- // Slice out a sub-array of models from the collection.
- slice: function() {
- return slice.apply(this.models, arguments);
- },
-
- // Get a model from the set by id, cid, model object with id or cid
- // properties, or an attributes object that is transformed through modelId.
- get: function(obj) {
- if (obj == null) return void 0;
- return this._byId[obj] ||
- this._byId[this.modelId(obj.attributes || obj)] ||
- obj.cid && this._byId[obj.cid];
- },
-
- // Returns `true` if the model is in the collection.
- has: function(obj) {
- return this.get(obj) != null;
- },
-
- // Get the model at the given index.
- at: function(index) {
- if (index < 0) index += this.length;
- return this.models[index];
- },
-
- // Return models with matching attributes. Useful for simple cases of
- // `filter`.
- where: function(attrs, first) {
- return this[first ? 'find' : 'filter'](attrs);
- },
-
- // Return the first model with matching attributes. Useful for simple cases
- // of `find`.
- findWhere: function(attrs) {
- return this.where(attrs, true);
- },
-
- // Force the collection to re-sort itself. You don't need to call this under
- // normal circumstances, as the set will maintain sort order as each item
- // is added.
- sort: function(options) {
- var comparator = this.comparator;
- if (!comparator) throw new Error('Cannot sort a set without a comparator');
- options || (options = {});
-
- var length = comparator.length;
- if (_.isFunction(comparator)) comparator = _.bind(comparator, this);
-
- // Run sort based on type of `comparator`.
- if (length === 1 || _.isString(comparator)) {
- this.models = this.sortBy(comparator);
- } else {
- this.models.sort(comparator);
- }
- if (!options.silent) this.trigger('sort', this, options);
- return this;
- },
-
- // Pluck an attribute from each model in the collection.
- pluck: function(attr) {
- return this.map(attr + '');
- },
-
- // Fetch the default set of models for this collection, resetting the
- // collection when they arrive. If `reset: true` is passed, the response
- // data will be passed through the `reset` method instead of `set`.
- fetch: function(options) {
- options = _.extend({parse: true}, options);
- var success = options.success;
- var collection = this;
- options.success = function(resp) {
- var method = options.reset ? 'reset' : 'set';
- collection[method](resp, options);
- if (success) success.call(options.context, collection, resp, options);
- collection.trigger('sync', collection, resp, options);
- };
- wrapError(this, options);
- return this.sync('read', this, options);
- },
-
- // Create a new instance of a model in this collection. Add the model to the
- // collection immediately, unless `wait: true` is passed, in which case we
- // wait for the server to agree.
- create: function(model, options) {
- options = options ? _.clone(options) : {};
- var wait = options.wait;
- model = this._prepareModel(model, options);
- if (!model) return false;
- if (!wait) this.add(model, options);
- var collection = this;
- var success = options.success;
- options.success = function(m, resp, callbackOpts) {
- if (wait) collection.add(m, callbackOpts);
- if (success) success.call(callbackOpts.context, m, resp, callbackOpts);
- };
- model.save(null, options);
- return model;
- },
-
- // **parse** converts a response into a list of models to be added to the
- // collection. The default implementation is just to pass it through.
- parse: function(resp, options) {
- return resp;
- },
-
- // Create a new collection with an identical list of models as this one.
- clone: function() {
- return new this.constructor(this.models, {
- model: this.model,
- comparator: this.comparator
- });
- },
-
- // Define how to uniquely identify models in the collection.
- modelId: function(attrs) {
- return attrs[this.model.prototype.idAttribute || 'id'];
- },
-
- // Private method to reset all internal state. Called when the collection
- // is first initialized or reset.
- _reset: function() {
- this.length = 0;
- this.models = [];
- this._byId = {};
- },
-
- // Prepare a hash of attributes (or other model) to be added to this
- // collection.
- _prepareModel: function(attrs, options) {
- if (this._isModel(attrs)) {
- if (!attrs.collection) attrs.collection = this;
- return attrs;
- }
- options = options ? _.clone(options) : {};
- options.collection = this;
- var model = new this.model(attrs, options);
- if (!model.validationError) return model;
- this.trigger('invalid', this, model.validationError, options);
- return false;
- },
-
- // Internal method called by both remove and set.
- _removeModels: function(models, options) {
- var removed = [];
- for (var i = 0; i < models.length; i++) {
- var model = this.get(models[i]);
- if (!model) continue;
-
- var index = this.indexOf(model);
- this.models.splice(index, 1);
- this.length--;
-
- // Remove references before triggering 'remove' event to prevent an
- // infinite loop. #3693
- delete this._byId[model.cid];
- var id = this.modelId(model.attributes);
- if (id != null) delete this._byId[id];
-
- if (!options.silent) {
- options.index = index;
- model.trigger('remove', model, this, options);
- }
-
- removed.push(model);
- this._removeReference(model, options);
- }
- return removed;
- },
-
- // Method for checking whether an object should be considered a model for
- // the purposes of adding to the collection.
- _isModel: function(model) {
- return model instanceof Model;
- },
-
- // Internal method to create a model's ties to a collection.
- _addReference: function(model, options) {
- this._byId[model.cid] = model;
- var id = this.modelId(model.attributes);
- if (id != null) this._byId[id] = model;
- model.on('all', this._onModelEvent, this);
- },
-
- // Internal method to sever a model's ties to a collection.
- _removeReference: function(model, options) {
- delete this._byId[model.cid];
- var id = this.modelId(model.attributes);
- if (id != null) delete this._byId[id];
- if (this === model.collection) delete model.collection;
- model.off('all', this._onModelEvent, this);
- },
-
- // Internal method called every time a model in the set fires an event.
- // Sets need to update their indexes when models change ids. All other
- // events simply proxy through. "add" and "remove" events that originate
- // in other collections are ignored.
- _onModelEvent: function(event, model, collection, options) {
- if (model) {
- if ((event === 'add' || event === 'remove') && collection !== this) return;
- if (event === 'destroy') this.remove(model, options);
- if (event === 'change') {
- var prevId = this.modelId(model.previousAttributes());
- var id = this.modelId(model.attributes);
- if (prevId !== id) {
- if (prevId != null) delete this._byId[prevId];
- if (id != null) this._byId[id] = model;
- }
- }
- }
- this.trigger.apply(this, arguments);
- }
-
- });
-
- // Underscore methods that we want to implement on the Collection.
- // 90% of the core usefulness of Backbone Collections is actually implemented
- // right here:
- var collectionMethods = {forEach: 3, each: 3, map: 3, collect: 3, reduce: 0,
- foldl: 0, inject: 0, reduceRight: 0, foldr: 0, find: 3, detect: 3, filter: 3,
- select: 3, reject: 3, every: 3, all: 3, some: 3, any: 3, include: 3, includes: 3,
- contains: 3, invoke: 0, max: 3, min: 3, toArray: 1, size: 1, first: 3,
- head: 3, take: 3, initial: 3, rest: 3, tail: 3, drop: 3, last: 3,
- without: 0, difference: 0, indexOf: 3, shuffle: 1, lastIndexOf: 3,
- isEmpty: 1, chain: 1, sample: 3, partition: 3, groupBy: 3, countBy: 3,
- sortBy: 3, indexBy: 3, findIndex: 3, findLastIndex: 3};
-
- // Mix in each Underscore method as a proxy to `Collection#models`.
- addUnderscoreMethods(Collection, collectionMethods, 'models');
-
- // Backbone.View
- // -------------
-
- // Backbone Views are almost more convention than they are actual code. A View
- // is simply a JavaScript object that represents a logical chunk of UI in the
- // DOM. This might be a single item, an entire list, a sidebar or panel, or
- // even the surrounding frame which wraps your whole app. Defining a chunk of
- // UI as a **View** allows you to define your DOM events declaratively, without
- // having to worry about render order ... and makes it easy for the view to
- // react to specific changes in the state of your models.
-
- // Creating a Backbone.View creates its initial element outside of the DOM,
- // if an existing element is not provided...
- var View = Backbone.View = function(options) {
- this.cid = _.uniqueId('view');
- _.extend(this, _.pick(options, viewOptions));
- this._ensureElement();
- this.initialize.apply(this, arguments);
- };
-
- // Cached regex to split keys for `delegate`.
- var delegateEventSplitter = /^(\S+)\s*(.*)$/;
-
- // List of view options to be set as properties.
- var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];
-
- // Set up all inheritable **Backbone.View** properties and methods.
- _.extend(View.prototype, Events, {
-
- // The default `tagName` of a View's element is `"div"`.
- tagName: 'div',
-
- // jQuery delegate for element lookup, scoped to DOM elements within the
- // current view. This should be preferred to global lookups where possible.
- $: function(selector) {
- return this.$el.find(selector);
- },
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // **render** is the core function that your view should override, in order
- // to populate its element (`this.el`), with the appropriate HTML. The
- // convention is for **render** to always return `this`.
- render: function() {
- return this;
- },
-
- // Remove this view by taking the element out of the DOM, and removing any
- // applicable Backbone.Events listeners.
- remove: function() {
- this._removeElement();
- this.stopListening();
- return this;
- },
-
- // Remove this view's element from the document and all event listeners
- // attached to it. Exposed for subclasses using an alternative DOM
- // manipulation API.
- _removeElement: function() {
- this.$el.remove();
- },
-
- // Change the view's element (`this.el` property) and re-delegate the
- // view's events on the new element.
- setElement: function(element) {
- this.undelegateEvents();
- this._setElement(element);
- this.delegateEvents();
- return this;
- },
-
- // Creates the `this.el` and `this.$el` references for this view using the
- // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
- // context or an element. Subclasses can override this to utilize an
- // alternative DOM manipulation API and are only required to set the
- // `this.el` property.
- _setElement: function(el) {
- this.$el = el instanceof Backbone.$ ? el : Backbone.$(el);
- this.el = this.$el[0];
- },
-
- // Set callbacks, where `this.events` is a hash of
- //
- // *{"event selector": "callback"}*
- //
- // {
- // 'mousedown .title': 'edit',
- // 'click .button': 'save',
- // 'click .open': function(e) { ... }
- // }
- //
- // pairs. Callbacks will be bound to the view, with `this` set properly.
- // Uses event delegation for efficiency.
- // Omitting the selector binds the event to `this.el`.
- delegateEvents: function(events) {
- events || (events = _.result(this, 'events'));
- if (!events) return this;
- this.undelegateEvents();
- for (var key in events) {
- var method = events[key];
- if (!_.isFunction(method)) method = this[method];
- if (!method) continue;
- var match = key.match(delegateEventSplitter);
- this.delegate(match[1], match[2], _.bind(method, this));
- }
- return this;
- },
-
- // Add a single event listener to the view's element (or a child element
- // using `selector`). This only works for delegate-able events: not `focus`,
- // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.
- delegate: function(eventName, selector, listener) {
- this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);
- return this;
- },
-
- // Clears all callbacks previously bound to the view by `delegateEvents`.
- // You usually don't need to use this, but may wish to if you have multiple
- // Backbone views attached to the same DOM element.
- undelegateEvents: function() {
- if (this.$el) this.$el.off('.delegateEvents' + this.cid);
- return this;
- },
-
- // A finer-grained `undelegateEvents` for removing a single delegated event.
- // `selector` and `listener` are both optional.
- undelegate: function(eventName, selector, listener) {
- this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);
- return this;
- },
-
- // Produces a DOM element to be assigned to your view. Exposed for
- // subclasses using an alternative DOM manipulation API.
- _createElement: function(tagName) {
- return document.createElement(tagName);
- },
-
- // Ensure that the View has a DOM element to render into.
- // If `this.el` is a string, pass it through `$()`, take the first
- // matching element, and re-assign it to `el`. Otherwise, create
- // an element from the `id`, `className` and `tagName` properties.
- _ensureElement: function() {
- if (!this.el) {
- var attrs = _.extend({}, _.result(this, 'attributes'));
- if (this.id) attrs.id = _.result(this, 'id');
- if (this.className) attrs['class'] = _.result(this, 'className');
- this.setElement(this._createElement(_.result(this, 'tagName')));
- this._setAttributes(attrs);
- } else {
- this.setElement(_.result(this, 'el'));
- }
- },
-
- // Set attributes from a hash on this view's element. Exposed for
- // subclasses using an alternative DOM manipulation API.
- _setAttributes: function(attributes) {
- this.$el.attr(attributes);
- }
-
- });
-
- // Backbone.sync
- // -------------
-
- // Override this function to change the manner in which Backbone persists
- // models to the server. You will be passed the type of request, and the
- // model in question. By default, makes a RESTful Ajax request
- // to the model's `url()`. Some possible customizations could be:
- //
- // * Use `setTimeout` to batch rapid-fire updates into a single request.
- // * Send up the models as XML instead of JSON.
- // * Persist models via WebSockets instead of Ajax.
- //
- // Turn on `Backbone.emulateHTTP` in order to send `PUT` and `DELETE` requests
- // as `POST`, with a `_method` parameter containing the true HTTP method,
- // as well as all requests with the body as `application/x-www-form-urlencoded`
- // instead of `application/json` with the model in a param named `model`.
- // Useful when interfacing with server-side languages like **PHP** that make
- // it difficult to read the body of `PUT` requests.
- Backbone.sync = function(method, model, options) {
- var type = methodMap[method];
-
- // Default options, unless specified.
- _.defaults(options || (options = {}), {
- emulateHTTP: Backbone.emulateHTTP,
- emulateJSON: Backbone.emulateJSON
- });
-
- // Default JSON-request options.
- var params = {type: type, dataType: 'json'};
-
- // Ensure that we have a URL.
- if (!options.url) {
- params.url = _.result(model, 'url') || urlError();
- }
-
- // Ensure that we have the appropriate request data.
- if (options.data == null && model && (method === 'create' || method === 'update' || method === 'patch')) {
- params.contentType = 'application/json';
- params.data = JSON.stringify(options.attrs || model.toJSON(options));
- }
-
- // For older servers, emulate JSON by encoding the request into an HTML-form.
- if (options.emulateJSON) {
- params.contentType = 'application/x-www-form-urlencoded';
- params.data = params.data ? {model: params.data} : {};
- }
-
- // For older servers, emulate HTTP by mimicking the HTTP method with `_method`
- // And an `X-HTTP-Method-Override` header.
- if (options.emulateHTTP && (type === 'PUT' || type === 'DELETE' || type === 'PATCH')) {
- params.type = 'POST';
- if (options.emulateJSON) params.data._method = type;
- var beforeSend = options.beforeSend;
- options.beforeSend = function(xhr) {
- xhr.setRequestHeader('X-HTTP-Method-Override', type);
- if (beforeSend) return beforeSend.apply(this, arguments);
- };
- }
-
- // Don't process data on a non-GET request.
- if (params.type !== 'GET' && !options.emulateJSON) {
- params.processData = false;
- }
-
- // Pass along `textStatus` and `errorThrown` from jQuery.
- var error = options.error;
- options.error = function(xhr, textStatus, errorThrown) {
- options.textStatus = textStatus;
- options.errorThrown = errorThrown;
- if (error) error.call(options.context, xhr, textStatus, errorThrown);
- };
-
- // Make the request, allowing the user to override any Ajax options.
- var xhr = options.xhr = Backbone.ajax(_.extend(params, options));
- model.trigger('request', model, xhr, options);
- return xhr;
- };
-
- // Map from CRUD to HTTP for our default `Backbone.sync` implementation.
- var methodMap = {
- 'create': 'POST',
- 'update': 'PUT',
- 'patch': 'PATCH',
- 'delete': 'DELETE',
- 'read': 'GET'
- };
-
- // Set the default implementation of `Backbone.ajax` to proxy through to `$`.
- // Override this if you'd like to use a different library.
- Backbone.ajax = function() {
- return Backbone.$.ajax.apply(Backbone.$, arguments);
- };
-
- // Backbone.Router
- // ---------------
-
- // Routers map faux-URLs to actions, and fire events when routes are
- // matched. Creating a new one sets its `routes` hash, if not set statically.
- var Router = Backbone.Router = function(options) {
- options || (options = {});
- if (options.routes) this.routes = options.routes;
- this._bindRoutes();
- this.initialize.apply(this, arguments);
- };
-
- // Cached regular expressions for matching named param parts and splatted
- // parts of route strings.
- var optionalParam = /\((.*?)\)/g;
- var namedParam = /(\(\?)?:\w+/g;
- var splatParam = /\*\w+/g;
- var escapeRegExp = /[\-{}\[\]+?.,\\\^$|#\s]/g;
-
- // Set up all inheritable **Backbone.Router** properties and methods.
- _.extend(Router.prototype, Events, {
-
- // Initialize is an empty function by default. Override it with your own
- // initialization logic.
- initialize: function(){},
-
- // Manually bind a single named route to a callback. For example:
- //
- // this.route('search/:query/p:num', 'search', function(query, num) {
- // ...
- // });
- //
- route: function(route, name, callback) {
- if (!_.isRegExp(route)) route = this._routeToRegExp(route);
- if (_.isFunction(name)) {
- callback = name;
- name = '';
- }
- if (!callback) callback = this[name];
- var router = this;
- Backbone.history.route(route, function(fragment) {
- var args = router._extractParameters(route, fragment);
- if (router.execute(callback, args, name) !== false) {
- router.trigger.apply(router, ['route:' + name].concat(args));
- router.trigger('route', name, args);
- Backbone.history.trigger('route', router, name, args);
- }
- });
- return this;
- },
-
- // Execute a route handler with the provided parameters. This is an
- // excellent place to do pre-route setup or post-route cleanup.
- execute: function(callback, args, name) {
- if (callback) callback.apply(this, args);
- },
-
- // Simple proxy to `Backbone.history` to save a fragment into the history.
- navigate: function(fragment, options) {
- Backbone.history.navigate(fragment, options);
- return this;
- },
-
- // Bind all defined routes to `Backbone.history`. We have to reverse the
- // order of the routes here to support behavior where the most general
- // routes can be defined at the bottom of the route map.
- _bindRoutes: function() {
- if (!this.routes) return;
- this.routes = _.result(this, 'routes');
- var route, routes = _.keys(this.routes);
- while ((route = routes.pop()) != null) {
- this.route(route, this.routes[route]);
- }
- },
-
- // Convert a route string into a regular expression, suitable for matching
- // against the current location hash.
- _routeToRegExp: function(route) {
- route = route.replace(escapeRegExp, '\\$&')
- .replace(optionalParam, '(?:$1)?')
- .replace(namedParam, function(match, optional) {
- return optional ? match : '([^/?]+)';
- })
- .replace(splatParam, '([^?]*?)');
- return new RegExp('^' + route + '(?:\\?([\\s\\S]*))?$');
- },
-
- // Given a route, and a URL fragment that it matches, return the array of
- // extracted decoded parameters. Empty or unmatched parameters will be
- // treated as `null` to normalize cross-browser behavior.
- _extractParameters: function(route, fragment) {
- var params = route.exec(fragment).slice(1);
- return _.map(params, function(param, i) {
- // Don't decode the search params.
- if (i === params.length - 1) return param || null;
- return param ? decodeURIComponent(param) : null;
- });
- }
-
- });
-
- // Backbone.History
- // ----------------
-
- // Handles cross-browser history management, based on either
- // [pushState](http://diveintohtml5.info/history.html) and real URLs, or
- // [onhashchange](https://developer.mozilla.org/en-US/docs/DOM/window.onhashchange)
- // and URL fragments. If the browser supports neither (old IE, natch),
- // falls back to polling.
- var History = Backbone.History = function() {
- this.handlers = [];
- this.checkUrl = _.bind(this.checkUrl, this);
-
- // Ensure that `History` can be used outside of the browser.
- if (typeof window !== 'undefined') {
- this.location = window.location;
- this.history = window.history;
- }
- };
-
- // Cached regex for stripping a leading hash/slash and trailing space.
- var routeStripper = /^[#\/]|\s+$/g;
-
- // Cached regex for stripping leading and trailing slashes.
- var rootStripper = /^\/+|\/+$/g;
-
- // Cached regex for stripping urls of hash.
- var pathStripper = /#.*$/;
-
- // Has the history handling already been started?
- History.started = false;
-
- // Set up all inheritable **Backbone.History** properties and methods.
- _.extend(History.prototype, Events, {
-
- // The default interval to poll for hash changes, if necessary, is
- // twenty times a second.
- interval: 50,
-
- // Are we at the app root?
- atRoot: function() {
- var path = this.location.pathname.replace(/[^\/]$/, '$&/');
- return path === this.root && !this.getSearch();
- },
-
- // Does the pathname match the root?
- matchRoot: function() {
- var path = this.decodeFragment(this.location.pathname);
- var rootPath = path.slice(0, this.root.length - 1) + '/';
- return rootPath === this.root;
- },
-
- // Unicode characters in `location.pathname` are percent encoded so they're
- // decoded for comparison. `%25` should not be decoded since it may be part
- // of an encoded parameter.
- decodeFragment: function(fragment) {
- return decodeURI(fragment.replace(/%25/g, '%2525'));
- },
-
- // In IE6, the hash fragment and search params are incorrect if the
- // fragment contains `?`.
- getSearch: function() {
- var match = this.location.href.replace(/#.*/, '').match(/\?.+/);
- return match ? match[0] : '';
- },
-
- // Gets the true hash value. Cannot use location.hash directly due to bug
- // in Firefox where location.hash will always be decoded.
- getHash: function(window) {
- var match = (window || this).location.href.match(/#(.*)$/);
- return match ? match[1] : '';
- },
-
- // Get the pathname and search params, without the root.
- getPath: function() {
- var path = this.decodeFragment(
- this.location.pathname + this.getSearch()
- ).slice(this.root.length - 1);
- return path.charAt(0) === '/' ? path.slice(1) : path;
- },
-
- // Get the cross-browser normalized URL fragment from the path or hash.
- getFragment: function(fragment) {
- if (fragment == null) {
- if (this._usePushState || !this._wantsHashChange) {
- fragment = this.getPath();
- } else {
- fragment = this.getHash();
- }
- }
- return fragment.replace(routeStripper, '');
- },
-
- // Start the hash change handling, returning `true` if the current URL matches
- // an existing route, and `false` otherwise.
- start: function(options) {
- if (History.started) throw new Error('Backbone.history has already been started');
- History.started = true;
-
- // Figure out the initial configuration. Do we need an iframe?
- // Is pushState desired ... is it available?
- this.options = _.extend({root: '/'}, this.options, options);
- this.root = this.options.root;
- this._wantsHashChange = this.options.hashChange !== false;
- this._hasHashChange = 'onhashchange' in window && (document.documentMode === void 0 || document.documentMode > 7);
- this._useHashChange = this._wantsHashChange && this._hasHashChange;
- this._wantsPushState = !!this.options.pushState;
- this._hasPushState = !!(this.history && this.history.pushState);
- this._usePushState = this._wantsPushState && this._hasPushState;
- this.fragment = this.getFragment();
-
- // Normalize root to always include a leading and trailing slash.
- this.root = ('/' + this.root + '/').replace(rootStripper, '/');
-
- // Transition from hashChange to pushState or vice versa if both are
- // requested.
- if (this._wantsHashChange && this._wantsPushState) {
-
- // If we've started off with a route from a `pushState`-enabled
- // browser, but we're currently in a browser that doesn't support it...
- if (!this._hasPushState && !this.atRoot()) {
- var rootPath = this.root.slice(0, -1) || '/';
- this.location.replace(rootPath + '#' + this.getPath());
- // Return immediately as browser will do redirect to new url
- return true;
-
- // Or if we've started out with a hash-based route, but we're currently
- // in a browser where it could be `pushState`-based instead...
- } else if (this._hasPushState && this.atRoot()) {
- this.navigate(this.getHash(), {replace: true});
- }
-
- }
-
- // Proxy an iframe to handle location events if the browser doesn't
- // support the `hashchange` event, HTML5 history, or the user wants
- // `hashChange` but not `pushState`.
- if (!this._hasHashChange && this._wantsHashChange && !this._usePushState) {
- this.iframe = document.createElement('iframe');
- this.iframe.src = 'javascript:0';
- this.iframe.style.display = 'none';
- this.iframe.tabIndex = -1;
- var body = document.body;
- // Using `appendChild` will throw on IE < 9 if the document is not ready.
- var iWindow = body.insertBefore(this.iframe, body.firstChild).contentWindow;
- iWindow.document.open();
- iWindow.document.close();
- iWindow.location.hash = '#' + this.fragment;
- }
-
- // Add a cross-platform `addEventListener` shim for older browsers.
- var addEventListener = window.addEventListener || function(eventName, listener) {
- return attachEvent('on' + eventName, listener);
- };
-
- // Depending on whether we're using pushState or hashes, and whether
- // 'onhashchange' is supported, determine how we check the URL state.
- if (this._usePushState) {
- addEventListener('popstate', this.checkUrl, false);
- } else if (this._useHashChange && !this.iframe) {
- addEventListener('hashchange', this.checkUrl, false);
- } else if (this._wantsHashChange) {
- this._checkUrlInterval = setInterval(this.checkUrl, this.interval);
- }
-
- if (!this.options.silent) return this.loadUrl();
- },
-
- // Disable Backbone.history, perhaps temporarily. Not useful in a real app,
- // but possibly useful for unit testing Routers.
- stop: function() {
- // Add a cross-platform `removeEventListener` shim for older browsers.
- var removeEventListener = window.removeEventListener || function(eventName, listener) {
- return detachEvent('on' + eventName, listener);
- };
-
- // Remove window listeners.
- if (this._usePushState) {
- removeEventListener('popstate', this.checkUrl, false);
- } else if (this._useHashChange && !this.iframe) {
- removeEventListener('hashchange', this.checkUrl, false);
- }
-
- // Clean up the iframe if necessary.
- if (this.iframe) {
- document.body.removeChild(this.iframe);
- this.iframe = null;
- }
-
- // Some environments will throw when clearing an undefined interval.
- if (this._checkUrlInterval) clearInterval(this._checkUrlInterval);
- History.started = false;
- },
-
- // Add a route to be tested when the fragment changes. Routes added later
- // may override previous routes.
- route: function(route, callback) {
- this.handlers.unshift({route: route, callback: callback});
- },
-
- // Checks the current URL to see if it has changed, and if it has,
- // calls `loadUrl`, normalizing across the hidden iframe.
- checkUrl: function(e) {
- var current = this.getFragment();
-
- // If the user pressed the back button, the iframe's hash will have
- // changed and we should use that for comparison.
- if (current === this.fragment && this.iframe) {
- current = this.getHash(this.iframe.contentWindow);
- }
-
- if (current === this.fragment) return false;
- if (this.iframe) this.navigate(current);
- this.loadUrl();
- },
-
- // Attempt to load the current URL fragment. If a route succeeds with a
- // match, returns `true`. If no defined routes matches the fragment,
- // returns `false`.
- loadUrl: function(fragment) {
- // If the root doesn't match, no routes can match either.
- if (!this.matchRoot()) return false;
- fragment = this.fragment = this.getFragment(fragment);
- return _.some(this.handlers, function(handler) {
- if (handler.route.test(fragment)) {
- handler.callback(fragment);
- return true;
- }
- });
- },
-
- // Save a fragment into the hash history, or replace the URL state if the
- // 'replace' option is passed. You are responsible for properly URL-encoding
- // the fragment in advance.
- //
- // The options object can contain `trigger: true` if you wish to have the
- // route callback be fired (not usually desirable), or `replace: true`, if
- // you wish to modify the current URL without adding an entry to the history.
- navigate: function(fragment, options) {
- if (!History.started) return false;
- if (!options || options === true) options = {trigger: !!options};
-
- // Normalize the fragment.
- fragment = this.getFragment(fragment || '');
-
- // Don't include a trailing slash on the root.
- var rootPath = this.root;
- if (fragment === '' || fragment.charAt(0) === '?') {
- rootPath = rootPath.slice(0, -1) || '/';
- }
- var url = rootPath + fragment;
-
- // Strip the hash and decode for matching.
- fragment = this.decodeFragment(fragment.replace(pathStripper, ''));
-
- if (this.fragment === fragment) return;
- this.fragment = fragment;
-
- // If pushState is available, we use it to set the fragment as a real URL.
- if (this._usePushState) {
- this.history[options.replace ? 'replaceState' : 'pushState']({}, document.title, url);
-
- // If hash changes haven't been explicitly disabled, update the hash
- // fragment to store history.
- } else if (this._wantsHashChange) {
- this._updateHash(this.location, fragment, options.replace);
- if (this.iframe && fragment !== this.getHash(this.iframe.contentWindow)) {
- var iWindow = this.iframe.contentWindow;
-
- // Opening and closing the iframe tricks IE7 and earlier to push a
- // history entry on hash-tag change. When replace is true, we don't
- // want this.
- if (!options.replace) {
- iWindow.document.open();
- iWindow.document.close();
- }
-
- this._updateHash(iWindow.location, fragment, options.replace);
- }
-
- // If you've told us that you explicitly don't want fallback hashchange-
- // based history, then `navigate` becomes a page refresh.
- } else {
- return this.location.assign(url);
- }
- if (options.trigger) return this.loadUrl(fragment);
- },
-
- // Update the hash location, either replacing the current entry, or adding
- // a new one to the browser history.
- _updateHash: function(location, fragment, replace) {
- if (replace) {
- var href = location.href.replace(/(javascript:|#).*$/, '');
- location.replace(href + '#' + fragment);
- } else {
- // Some browsers require that `hash` contains a leading #.
- location.hash = '#' + fragment;
- }
- }
-
- });
-
- // Create the default Backbone.history.
- Backbone.history = new History;
-
- // Helpers
- // -------
-
- // Helper function to correctly set up the prototype chain for subclasses.
- // Similar to `goog.inherits`, but uses a hash of prototype properties and
- // class properties to be extended.
- var extend = function(protoProps, staticProps) {
- var parent = this;
- var child;
-
- // The constructor function for the new subclass is either defined by you
- // (the "constructor" property in your `extend` definition), or defaulted
- // by us to simply call the parent constructor.
- if (protoProps && _.has(protoProps, 'constructor')) {
- child = protoProps.constructor;
- } else {
- child = function(){ return parent.apply(this, arguments); };
- }
-
- // Add static properties to the constructor function, if supplied.
- _.extend(child, parent, staticProps);
-
- // Set the prototype chain to inherit from `parent`, without calling
- // `parent`'s constructor function and add the prototype properties.
- child.prototype = _.create(parent.prototype, protoProps);
- child.prototype.constructor = child;
-
- // Set a convenience property in case the parent's prototype is needed
- // later.
- child.__super__ = parent.prototype;
-
- return child;
- };
-
- // Set up inheritance for the model, collection, router, view and history.
- Model.extend = Collection.extend = Router.extend = View.extend = History.extend = extend;
-
- // Throw an error when a URL is needed, and none is supplied.
- var urlError = function() {
- throw new Error('A "url" property or function must be specified');
- };
-
- // Wrap an optional error callback with a fallback error event.
- var wrapError = function(model, options) {
- var error = options.error;
- options.error = function(resp) {
- if (error) error.call(options.context, model, resp, options);
- model.trigger('error', model, resp, options);
- };
- };
-
- return Backbone;
-});
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/collection.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/collection.js
deleted file mode 100644
index dd98aca5..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/collection.js
+++ /dev/null
@@ -1,1998 +0,0 @@
-(function() {
-
- var a, b, c, d, e, col, otherCol;
-
- QUnit.module('Backbone.Collection', {
-
- beforeEach: function(assert) {
- a = new Backbone.Model({id: 3, label: 'a'});
- b = new Backbone.Model({id: 2, label: 'b'});
- c = new Backbone.Model({id: 1, label: 'c'});
- d = new Backbone.Model({id: 0, label: 'd'});
- e = null;
- col = new Backbone.Collection([a, b, c, d]);
- otherCol = new Backbone.Collection();
- }
-
- });
-
- QUnit.test('new and sort', function(assert) {
- assert.expect(6);
- var counter = 0;
- col.on('sort', function(){ counter++; });
- assert.deepEqual(col.pluck('label'), ['a', 'b', 'c', 'd']);
- col.comparator = function(m1, m2) {
- return m1.id > m2.id ? -1 : 1;
- };
- col.sort();
- assert.equal(counter, 1);
- assert.deepEqual(col.pluck('label'), ['a', 'b', 'c', 'd']);
- col.comparator = function(model) { return model.id; };
- col.sort();
- assert.equal(counter, 2);
- assert.deepEqual(col.pluck('label'), ['d', 'c', 'b', 'a']);
- assert.equal(col.length, 4);
- });
-
- QUnit.test('String comparator.', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([
- {id: 3},
- {id: 1},
- {id: 2}
- ], {comparator: 'id'});
- assert.deepEqual(collection.pluck('id'), [1, 2, 3]);
- });
-
- QUnit.test('new and parse', function(assert) {
- assert.expect(3);
- var Collection = Backbone.Collection.extend({
- parse: function(data) {
- return _.filter(data, function(datum) {
- return datum.a % 2 === 0;
- });
- }
- });
- var models = [{a: 1}, {a: 2}, {a: 3}, {a: 4}];
- var collection = new Collection(models, {parse: true});
- assert.strictEqual(collection.length, 2);
- assert.strictEqual(collection.first().get('a'), 2);
- assert.strictEqual(collection.last().get('a'), 4);
- });
-
- QUnit.test('clone preserves model and comparator', function(assert) {
- assert.expect(3);
- var Model = Backbone.Model.extend();
- var comparator = function(model){ return model.id; };
-
- var collection = new Backbone.Collection([{id: 1}], {
- model: Model,
- comparator: comparator
- }).clone();
- collection.add({id: 2});
- assert.ok(collection.at(0) instanceof Model);
- assert.ok(collection.at(1) instanceof Model);
- assert.strictEqual(collection.comparator, comparator);
- });
-
- QUnit.test('get', function(assert) {
- assert.expect(6);
- assert.equal(col.get(0), d);
- assert.equal(col.get(d.clone()), d);
- assert.equal(col.get(2), b);
- assert.equal(col.get({id: 1}), c);
- assert.equal(col.get(c.clone()), c);
- assert.equal(col.get(col.first().cid), col.first());
- });
-
- QUnit.test('get with non-default ids', function(assert) {
- assert.expect(5);
- var MongoModel = Backbone.Model.extend({idAttribute: '_id'});
- var model = new MongoModel({_id: 100});
- var collection = new Backbone.Collection([model], {model: MongoModel});
- assert.equal(collection.get(100), model);
- assert.equal(collection.get(model.cid), model);
- assert.equal(collection.get(model), model);
- assert.equal(collection.get(101), void 0);
-
- var collection2 = new Backbone.Collection();
- collection2.model = MongoModel;
- collection2.add(model.attributes);
- assert.equal(collection2.get(model.clone()), collection2.first());
- });
-
- QUnit.test('has', function(assert) {
- assert.expect(15);
- assert.ok(col.has(a));
- assert.ok(col.has(b));
- assert.ok(col.has(c));
- assert.ok(col.has(d));
- assert.ok(col.has(a.id));
- assert.ok(col.has(b.id));
- assert.ok(col.has(c.id));
- assert.ok(col.has(d.id));
- assert.ok(col.has(a.cid));
- assert.ok(col.has(b.cid));
- assert.ok(col.has(c.cid));
- assert.ok(col.has(d.cid));
- var outsider = new Backbone.Model({id: 4});
- assert.notOk(col.has(outsider));
- assert.notOk(col.has(outsider.id));
- assert.notOk(col.has(outsider.cid));
- });
-
- QUnit.test('update index when id changes', function(assert) {
- assert.expect(4);
- var collection = new Backbone.Collection();
- collection.add([
- {id: 0, name: 'one'},
- {id: 1, name: 'two'}
- ]);
- var one = collection.get(0);
- assert.equal(one.get('name'), 'one');
- collection.on('change:name', function(model) { assert.ok(this.get(model)); });
- one.set({name: 'dalmatians', id: 101});
- assert.equal(collection.get(0), null);
- assert.equal(collection.get(101).get('name'), 'dalmatians');
- });
-
- QUnit.test('at', function(assert) {
- assert.expect(2);
- assert.equal(col.at(2), c);
- assert.equal(col.at(-2), c);
- });
-
- QUnit.test('pluck', function(assert) {
- assert.expect(1);
- assert.equal(col.pluck('label').join(' '), 'a b c d');
- });
-
- QUnit.test('add', function(assert) {
- assert.expect(14);
- var added, opts, secondAdded;
- added = opts = secondAdded = null;
- e = new Backbone.Model({id: 10, label: 'e'});
- otherCol.add(e);
- otherCol.on('add', function() {
- secondAdded = true;
- });
- col.on('add', function(model, collection, options){
- added = model.get('label');
- opts = options;
- });
- col.add(e, {amazing: true});
- assert.equal(added, 'e');
- assert.equal(col.length, 5);
- assert.equal(col.last(), e);
- assert.equal(otherCol.length, 1);
- assert.equal(secondAdded, null);
- assert.ok(opts.amazing);
-
- var f = new Backbone.Model({id: 20, label: 'f'});
- var g = new Backbone.Model({id: 21, label: 'g'});
- var h = new Backbone.Model({id: 22, label: 'h'});
- var atCol = new Backbone.Collection([f, g, h]);
- assert.equal(atCol.length, 3);
- atCol.add(e, {at: 1});
- assert.equal(atCol.length, 4);
- assert.equal(atCol.at(1), e);
- assert.equal(atCol.last(), h);
-
- var coll = new Backbone.Collection(new Array(2));
- var addCount = 0;
- coll.on('add', function(){
- addCount += 1;
- });
- coll.add([undefined, f, g]);
- assert.equal(coll.length, 5);
- assert.equal(addCount, 3);
- coll.add(new Array(4));
- assert.equal(coll.length, 9);
- assert.equal(addCount, 7);
- });
-
- QUnit.test('add multiple models', function(assert) {
- assert.expect(6);
- var collection = new Backbone.Collection([{at: 0}, {at: 1}, {at: 9}]);
- collection.add([{at: 2}, {at: 3}, {at: 4}, {at: 5}, {at: 6}, {at: 7}, {at: 8}], {at: 2});
- for (var i = 0; i <= 5; i++) {
- assert.equal(collection.at(i).get('at'), i);
- }
- });
-
- QUnit.test('add; at should have preference over comparator', function(assert) {
- assert.expect(1);
- var Col = Backbone.Collection.extend({
- comparator: function(m1, m2) {
- return m1.id > m2.id ? -1 : 1;
- }
- });
-
- var collection = new Col([{id: 2}, {id: 3}]);
- collection.add(new Backbone.Model({id: 1}), {at: 1});
-
- assert.equal(collection.pluck('id').join(' '), '3 1 2');
- });
-
- QUnit.test('add; at should add to the end if the index is out of bounds', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([{id: 2}, {id: 3}]);
- collection.add(new Backbone.Model({id: 1}), {at: 5});
-
- assert.equal(collection.pluck('id').join(' '), '2 3 1');
- });
-
- QUnit.test("can't add model to collection twice", function(assert) {
- var collection = new Backbone.Collection([{id: 1}, {id: 2}, {id: 1}, {id: 2}, {id: 3}]);
- assert.equal(collection.pluck('id').join(' '), '1 2 3');
- });
-
- QUnit.test("can't add different model with same id to collection twice", function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection;
- collection.unshift({id: 101});
- collection.add({id: 101});
- assert.equal(collection.length, 1);
- });
-
- QUnit.test('merge in duplicate models with {merge: true}', function(assert) {
- assert.expect(3);
- var collection = new Backbone.Collection;
- collection.add([{id: 1, name: 'Moe'}, {id: 2, name: 'Curly'}, {id: 3, name: 'Larry'}]);
- collection.add({id: 1, name: 'Moses'});
- assert.equal(collection.first().get('name'), 'Moe');
- collection.add({id: 1, name: 'Moses'}, {merge: true});
- assert.equal(collection.first().get('name'), 'Moses');
- collection.add({id: 1, name: 'Tim'}, {merge: true, silent: true});
- assert.equal(collection.first().get('name'), 'Tim');
- });
-
- QUnit.test('add model to multiple collections', function(assert) {
- assert.expect(10);
- var counter = 0;
- var m = new Backbone.Model({id: 10, label: 'm'});
- m.on('add', function(model, collection) {
- counter++;
- assert.equal(m, model);
- if (counter > 1) {
- assert.equal(collection, col2);
- } else {
- assert.equal(collection, col1);
- }
- });
- var col1 = new Backbone.Collection([]);
- col1.on('add', function(model, collection) {
- assert.equal(m, model);
- assert.equal(col1, collection);
- });
- var col2 = new Backbone.Collection([]);
- col2.on('add', function(model, collection) {
- assert.equal(m, model);
- assert.equal(col2, collection);
- });
- col1.add(m);
- assert.equal(m.collection, col1);
- col2.add(m);
- assert.equal(m.collection, col1);
- });
-
- QUnit.test('add model with parse', function(assert) {
- assert.expect(1);
- var Model = Backbone.Model.extend({
- parse: function(obj) {
- obj.value += 1;
- return obj;
- }
- });
-
- var Col = Backbone.Collection.extend({model: Model});
- var collection = new Col;
- collection.add({value: 1}, {parse: true});
- assert.equal(collection.at(0).get('value'), 2);
- });
-
- QUnit.test('add with parse and merge', function(assert) {
- var collection = new Backbone.Collection();
- collection.parse = function(attrs) {
- return _.map(attrs, function(model) {
- if (model.model) return model.model;
- return model;
- });
- };
- collection.add({id: 1});
- collection.add({model: {id: 1, name: 'Alf'}}, {parse: true, merge: true});
- assert.equal(collection.first().get('name'), 'Alf');
- });
-
- QUnit.test('add model to collection with sort()-style comparator', function(assert) {
- assert.expect(3);
- var collection = new Backbone.Collection;
- collection.comparator = function(m1, m2) {
- return m1.get('name') < m2.get('name') ? -1 : 1;
- };
- var tom = new Backbone.Model({name: 'Tom'});
- var rob = new Backbone.Model({name: 'Rob'});
- var tim = new Backbone.Model({name: 'Tim'});
- collection.add(tom);
- collection.add(rob);
- collection.add(tim);
- assert.equal(collection.indexOf(rob), 0);
- assert.equal(collection.indexOf(tim), 1);
- assert.equal(collection.indexOf(tom), 2);
- });
-
- QUnit.test('comparator that depends on `this`', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection;
- collection.negative = function(num) {
- return -num;
- };
- collection.comparator = function(model) {
- return this.negative(model.id);
- };
- collection.add([{id: 1}, {id: 2}, {id: 3}]);
- assert.deepEqual(collection.pluck('id'), [3, 2, 1]);
- collection.comparator = function(m1, m2) {
- return this.negative(m2.id) - this.negative(m1.id);
- };
- collection.sort();
- assert.deepEqual(collection.pluck('id'), [1, 2, 3]);
- });
-
- QUnit.test('remove', function(assert) {
- assert.expect(12);
- var removed = null;
- var result = null;
- col.on('remove', function(model, collection, options) {
- removed = model.get('label');
- assert.equal(options.index, 3);
- assert.equal(collection.get(model), undefined, '#3693: model cannot be fetched from collection');
- });
- result = col.remove(d);
- assert.equal(removed, 'd');
- assert.strictEqual(result, d);
- //if we try to remove d again, it's not going to actually get removed
- result = col.remove(d);
- assert.strictEqual(result, undefined);
- assert.equal(col.length, 3);
- assert.equal(col.first(), a);
- col.off();
- result = col.remove([c, d]);
- assert.equal(result.length, 1, 'only returns removed models');
- assert.equal(result[0], c, 'only returns removed models');
- result = col.remove([c, b]);
- assert.equal(result.length, 1, 'only returns removed models');
- assert.equal(result[0], b, 'only returns removed models');
- result = col.remove([]);
- assert.deepEqual(result, [], 'returns empty array when nothing removed');
- });
-
- QUnit.test('add and remove return values', function(assert) {
- assert.expect(13);
- var Even = Backbone.Model.extend({
- validate: function(attrs) {
- if (attrs.id % 2 !== 0) return 'odd';
- }
- });
- var collection = new Backbone.Collection;
- collection.model = Even;
-
- var list = collection.add([{id: 2}, {id: 4}], {validate: true});
- assert.equal(list.length, 2);
- assert.ok(list[0] instanceof Backbone.Model);
- assert.equal(list[1], collection.last());
- assert.equal(list[1].get('id'), 4);
-
- list = collection.add([{id: 3}, {id: 6}], {validate: true});
- assert.equal(collection.length, 3);
- assert.equal(list[0], false);
- assert.equal(list[1].get('id'), 6);
-
- var result = collection.add({id: 6});
- assert.equal(result.cid, list[1].cid);
-
- result = collection.remove({id: 6});
- assert.equal(collection.length, 2);
- assert.equal(result.id, 6);
-
- list = collection.remove([{id: 2}, {id: 8}]);
- assert.equal(collection.length, 1);
- assert.equal(list[0].get('id'), 2);
- assert.equal(list[1], null);
- });
-
- QUnit.test('shift and pop', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection([{a: 'a'}, {b: 'b'}, {c: 'c'}]);
- assert.equal(collection.shift().get('a'), 'a');
- assert.equal(collection.pop().get('c'), 'c');
- });
-
- QUnit.test('slice', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection([{a: 'a'}, {b: 'b'}, {c: 'c'}]);
- var array = collection.slice(1, 3);
- assert.equal(array.length, 2);
- assert.equal(array[0].get('b'), 'b');
- });
-
- QUnit.test('events are unbound on remove', function(assert) {
- assert.expect(3);
- var counter = 0;
- var dj = new Backbone.Model();
- var emcees = new Backbone.Collection([dj]);
- emcees.on('change', function(){ counter++; });
- dj.set({name: 'Kool'});
- assert.equal(counter, 1);
- emcees.reset([]);
- assert.equal(dj.collection, undefined);
- dj.set({name: 'Shadow'});
- assert.equal(counter, 1);
- });
-
- QUnit.test('remove in multiple collections', function(assert) {
- assert.expect(7);
- var modelData = {
- id: 5,
- title: 'Othello'
- };
- var passed = false;
- var m1 = new Backbone.Model(modelData);
- var m2 = new Backbone.Model(modelData);
- m2.on('remove', function() {
- passed = true;
- });
- var col1 = new Backbone.Collection([m1]);
- var col2 = new Backbone.Collection([m2]);
- assert.notEqual(m1, m2);
- assert.ok(col1.length === 1);
- assert.ok(col2.length === 1);
- col1.remove(m1);
- assert.equal(passed, false);
- assert.ok(col1.length === 0);
- col2.remove(m1);
- assert.ok(col2.length === 0);
- assert.equal(passed, true);
- });
-
- QUnit.test('remove same model in multiple collection', function(assert) {
- assert.expect(16);
- var counter = 0;
- var m = new Backbone.Model({id: 5, title: 'Othello'});
- m.on('remove', function(model, collection) {
- counter++;
- assert.equal(m, model);
- if (counter > 1) {
- assert.equal(collection, col1);
- } else {
- assert.equal(collection, col2);
- }
- });
- var col1 = new Backbone.Collection([m]);
- col1.on('remove', function(model, collection) {
- assert.equal(m, model);
- assert.equal(col1, collection);
- });
- var col2 = new Backbone.Collection([m]);
- col2.on('remove', function(model, collection) {
- assert.equal(m, model);
- assert.equal(col2, collection);
- });
- assert.equal(col1, m.collection);
- col2.remove(m);
- assert.ok(col2.length === 0);
- assert.ok(col1.length === 1);
- assert.equal(counter, 1);
- assert.equal(col1, m.collection);
- col1.remove(m);
- assert.equal(null, m.collection);
- assert.ok(col1.length === 0);
- assert.equal(counter, 2);
- });
-
- QUnit.test('model destroy removes from all collections', function(assert) {
- assert.expect(3);
- var m = new Backbone.Model({id: 5, title: 'Othello'});
- m.sync = function(method, model, options) { options.success(); };
- var col1 = new Backbone.Collection([m]);
- var col2 = new Backbone.Collection([m]);
- m.destroy();
- assert.ok(col1.length === 0);
- assert.ok(col2.length === 0);
- assert.equal(undefined, m.collection);
- });
-
- QUnit.test('Collection: non-persisted model destroy removes from all collections', function(assert) {
- assert.expect(3);
- var m = new Backbone.Model({title: 'Othello'});
- m.sync = function(method, model, options) { throw 'should not be called'; };
- var col1 = new Backbone.Collection([m]);
- var col2 = new Backbone.Collection([m]);
- m.destroy();
- assert.ok(col1.length === 0);
- assert.ok(col2.length === 0);
- assert.equal(undefined, m.collection);
- });
-
- QUnit.test('fetch', function(assert) {
- assert.expect(4);
- var collection = new Backbone.Collection;
- collection.url = '/test';
- collection.fetch();
- assert.equal(this.syncArgs.method, 'read');
- assert.equal(this.syncArgs.model, collection);
- assert.equal(this.syncArgs.options.parse, true);
-
- collection.fetch({parse: false});
- assert.equal(this.syncArgs.options.parse, false);
- });
-
- QUnit.test('fetch with an error response triggers an error event', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection();
- collection.on('error', function() {
- assert.ok(true);
- });
- collection.sync = function(method, model, options) { options.error(); };
- collection.fetch();
- });
-
- QUnit.test('#3283 - fetch with an error response calls error with context', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection();
- var obj = {};
- var options = {
- context: obj,
- error: function() {
- assert.equal(this, obj);
- }
- };
- collection.sync = function(method, model, opts) {
- opts.error.call(opts.context);
- };
- collection.fetch(options);
- });
-
- QUnit.test('ensure fetch only parses once', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection;
- var counter = 0;
- collection.parse = function(models) {
- counter++;
- return models;
- };
- collection.url = '/test';
- collection.fetch();
- this.syncArgs.options.success([]);
- assert.equal(counter, 1);
- });
-
- QUnit.test('create', function(assert) {
- assert.expect(4);
- var collection = new Backbone.Collection;
- collection.url = '/test';
- var model = collection.create({label: 'f'}, {wait: true});
- assert.equal(this.syncArgs.method, 'create');
- assert.equal(this.syncArgs.model, model);
- assert.equal(model.get('label'), 'f');
- assert.equal(model.collection, collection);
- });
-
- QUnit.test('create with validate:true enforces validation', function(assert) {
- assert.expect(3);
- var ValidatingModel = Backbone.Model.extend({
- validate: function(attrs) {
- return 'fail';
- }
- });
- var ValidatingCollection = Backbone.Collection.extend({
- model: ValidatingModel
- });
- var collection = new ValidatingCollection();
- collection.on('invalid', function(coll, error, options) {
- assert.equal(error, 'fail');
- assert.equal(options.validationError, 'fail');
- });
- assert.equal(collection.create({'foo': 'bar'}, {validate: true}), false);
- });
-
- QUnit.test('create will pass extra options to success callback', function(assert) {
- assert.expect(1);
- var Model = Backbone.Model.extend({
- sync: function(method, model, options) {
- _.extend(options, {specialSync: true});
- return Backbone.Model.prototype.sync.call(this, method, model, options);
- }
- });
-
- var Collection = Backbone.Collection.extend({
- model: Model,
- url: '/test'
- });
-
- var collection = new Collection;
-
- var success = function(model, response, options) {
- assert.ok(options.specialSync, 'Options were passed correctly to callback');
- };
-
- collection.create({}, {success: success});
- this.ajaxSettings.success();
- });
-
- QUnit.test('create with wait:true should not call collection.parse', function(assert) {
- assert.expect(0);
- var Collection = Backbone.Collection.extend({
- url: '/test',
- parse: function() {
- assert.ok(false);
- }
- });
-
- var collection = new Collection;
-
- collection.create({}, {wait: true});
- this.ajaxSettings.success();
- });
-
- QUnit.test('a failing create returns model with errors', function(assert) {
- var ValidatingModel = Backbone.Model.extend({
- validate: function(attrs) {
- return 'fail';
- }
- });
- var ValidatingCollection = Backbone.Collection.extend({
- model: ValidatingModel
- });
- var collection = new ValidatingCollection();
- var m = collection.create({foo: 'bar'});
- assert.equal(m.validationError, 'fail');
- assert.equal(collection.length, 1);
- });
-
- QUnit.test('initialize', function(assert) {
- assert.expect(1);
- var Collection = Backbone.Collection.extend({
- initialize: function() {
- this.one = 1;
- }
- });
- var coll = new Collection;
- assert.equal(coll.one, 1);
- });
-
- QUnit.test('toJSON', function(assert) {
- assert.expect(1);
- assert.equal(JSON.stringify(col), '[{"id":3,"label":"a"},{"id":2,"label":"b"},{"id":1,"label":"c"},{"id":0,"label":"d"}]');
- });
-
- QUnit.test('where and findWhere', function(assert) {
- assert.expect(8);
- var model = new Backbone.Model({a: 1});
- var coll = new Backbone.Collection([
- model,
- {a: 1},
- {a: 1, b: 2},
- {a: 2, b: 2},
- {a: 3}
- ]);
- assert.equal(coll.where({a: 1}).length, 3);
- assert.equal(coll.where({a: 2}).length, 1);
- assert.equal(coll.where({a: 3}).length, 1);
- assert.equal(coll.where({b: 1}).length, 0);
- assert.equal(coll.where({b: 2}).length, 2);
- assert.equal(coll.where({a: 1, b: 2}).length, 1);
- assert.equal(coll.findWhere({a: 1}), model);
- assert.equal(coll.findWhere({a: 4}), void 0);
- });
-
- QUnit.test('Underscore methods', function(assert) {
- assert.expect(21);
- assert.equal(col.map(function(model){ return model.get('label'); }).join(' '), 'a b c d');
- assert.equal(col.some(function(model){ return model.id === 100; }), false);
- assert.equal(col.some(function(model){ return model.id === 0; }), true);
- assert.equal(col.reduce(function(m1, m2) {return m1.id > m2.id ? m1 : m2;}).id, 3);
- assert.equal(col.reduceRight(function(m1, m2) {return m1.id > m2.id ? m1 : m2;}).id, 3);
- assert.equal(col.indexOf(b), 1);
- assert.equal(col.size(), 4);
- assert.equal(col.rest().length, 3);
- assert.ok(!_.includes(col.rest(), a));
- assert.ok(_.includes(col.rest(), d));
- assert.ok(!col.isEmpty());
- assert.ok(!_.includes(col.without(d), d));
-
- var wrapped = col.chain();
- assert.equal(wrapped.map('id').max().value(), 3);
- assert.equal(wrapped.map('id').min().value(), 0);
- assert.deepEqual(wrapped
- .filter(function(o){ return o.id % 2 === 0; })
- .map(function(o){ return o.id * 2; })
- .value(),
- [4, 0]);
- assert.deepEqual(col.difference([c, d]), [a, b]);
- assert.ok(col.includes(col.sample()));
-
- var first = col.first();
- assert.deepEqual(col.groupBy(function(model){ return model.id; })[first.id], [first]);
- assert.deepEqual(col.countBy(function(model){ return model.id; }), {0: 1, 1: 1, 2: 1, 3: 1});
- assert.deepEqual(col.sortBy(function(model){ return model.id; })[0], col.at(3));
- assert.ok(col.indexBy('id')[first.id] === first);
- });
-
- QUnit.test('Underscore methods with object-style and property-style iteratee', function(assert) {
- assert.expect(26);
- var model = new Backbone.Model({a: 4, b: 1, e: 3});
- var coll = new Backbone.Collection([
- {a: 1, b: 1},
- {a: 2, b: 1, c: 1},
- {a: 3, b: 1},
- model
- ]);
- assert.equal(coll.find({a: 0}), undefined);
- assert.deepEqual(coll.find({a: 4}), model);
- assert.equal(coll.find('d'), undefined);
- assert.deepEqual(coll.find('e'), model);
- assert.equal(coll.filter({a: 0}), false);
- assert.deepEqual(coll.filter({a: 4}), [model]);
- assert.equal(coll.some({a: 0}), false);
- assert.equal(coll.some({a: 1}), true);
- assert.equal(coll.reject({a: 0}).length, 4);
- assert.deepEqual(coll.reject({a: 4}), _.without(coll.models, model));
- assert.equal(coll.every({a: 0}), false);
- assert.equal(coll.every({b: 1}), true);
- assert.deepEqual(coll.partition({a: 0})[0], []);
- assert.deepEqual(coll.partition({a: 0})[1], coll.models);
- assert.deepEqual(coll.partition({a: 4})[0], [model]);
- assert.deepEqual(coll.partition({a: 4})[1], _.without(coll.models, model));
- assert.deepEqual(coll.map({a: 2}), [false, true, false, false]);
- assert.deepEqual(coll.map('a'), [1, 2, 3, 4]);
- assert.deepEqual(coll.sortBy('a')[3], model);
- assert.deepEqual(coll.sortBy('e')[0], model);
- assert.deepEqual(coll.countBy({a: 4}), {'false': 3, 'true': 1});
- assert.deepEqual(coll.countBy('d'), {'undefined': 4});
- assert.equal(coll.findIndex({b: 1}), 0);
- assert.equal(coll.findIndex({b: 9}), -1);
- assert.equal(coll.findLastIndex({b: 1}), 3);
- assert.equal(coll.findLastIndex({b: 9}), -1);
- });
-
- QUnit.test('reset', function(assert) {
- assert.expect(16);
-
- var resetCount = 0;
- var models = col.models;
- col.on('reset', function() { resetCount += 1; });
- col.reset([]);
- assert.equal(resetCount, 1);
- assert.equal(col.length, 0);
- assert.equal(col.last(), null);
- col.reset(models);
- assert.equal(resetCount, 2);
- assert.equal(col.length, 4);
- assert.equal(col.last(), d);
- col.reset(_.map(models, function(m){ return m.attributes; }));
- assert.equal(resetCount, 3);
- assert.equal(col.length, 4);
- assert.ok(col.last() !== d);
- assert.ok(_.isEqual(col.last().attributes, d.attributes));
- col.reset();
- assert.equal(col.length, 0);
- assert.equal(resetCount, 4);
-
- var f = new Backbone.Model({id: 20, label: 'f'});
- col.reset([undefined, f]);
- assert.equal(col.length, 2);
- assert.equal(resetCount, 5);
-
- col.reset(new Array(4));
- assert.equal(col.length, 4);
- assert.equal(resetCount, 6);
- });
-
- QUnit.test('reset with different values', function(assert) {
- var collection = new Backbone.Collection({id: 1});
- collection.reset({id: 1, a: 1});
- assert.equal(collection.get(1).get('a'), 1);
- });
-
- QUnit.test('same references in reset', function(assert) {
- var model = new Backbone.Model({id: 1});
- var collection = new Backbone.Collection({id: 1});
- collection.reset(model);
- assert.equal(collection.get(1), model);
- });
-
- QUnit.test('reset passes caller options', function(assert) {
- assert.expect(3);
- var Model = Backbone.Model.extend({
- initialize: function(attrs, options) {
- this.modelParameter = options.modelParameter;
- }
- });
- var collection = new (Backbone.Collection.extend({model: Model}))();
- collection.reset([{astring: 'green', anumber: 1}, {astring: 'blue', anumber: 2}], {modelParameter: 'model parameter'});
- assert.equal(collection.length, 2);
- collection.each(function(model) {
- assert.equal(model.modelParameter, 'model parameter');
- });
- });
-
- QUnit.test('reset does not alter options by reference', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection([{id: 1}]);
- var origOpts = {};
- collection.on('reset', function(coll, opts){
- assert.equal(origOpts.previousModels, undefined);
- assert.equal(opts.previousModels[0].id, 1);
- });
- collection.reset([], origOpts);
- });
-
- QUnit.test('trigger custom events on models', function(assert) {
- assert.expect(1);
- var fired = null;
- a.on('custom', function() { fired = true; });
- a.trigger('custom');
- assert.equal(fired, true);
- });
-
- QUnit.test('add does not alter arguments', function(assert) {
- assert.expect(2);
- var attrs = {};
- var models = [attrs];
- new Backbone.Collection().add(models);
- assert.equal(models.length, 1);
- assert.ok(attrs === models[0]);
- });
-
- QUnit.test('#714: access `model.collection` in a brand new model.', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection;
- collection.url = '/test';
- var Model = Backbone.Model.extend({
- set: function(attrs) {
- assert.equal(attrs.prop, 'value');
- assert.equal(this.collection, collection);
- return this;
- }
- });
- collection.model = Model;
- collection.create({prop: 'value'});
- });
-
- QUnit.test('#574, remove its own reference to the .models array.', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection([
- {id: 1}, {id: 2}, {id: 3}, {id: 4}, {id: 5}, {id: 6}
- ]);
- assert.equal(collection.length, 6);
- collection.remove(collection.models);
- assert.equal(collection.length, 0);
- });
-
- QUnit.test('#861, adding models to a collection which do not pass validation, with validate:true', function(assert) {
- assert.expect(2);
- var Model = Backbone.Model.extend({
- validate: function(attrs) {
- if (attrs.id === 3) return "id can't be 3";
- }
- });
-
- var Collection = Backbone.Collection.extend({
- model: Model
- });
-
- var collection = new Collection;
- collection.on('invalid', function() { assert.ok(true); });
-
- collection.add([{id: 1}, {id: 2}, {id: 3}, {id: 4}, {id: 5}, {id: 6}], {validate: true});
- assert.deepEqual(collection.pluck('id'), [1, 2, 4, 5, 6]);
- });
-
- QUnit.test('Invalid models are discarded with validate:true.', function(assert) {
- assert.expect(5);
- var collection = new Backbone.Collection;
- collection.on('test', function() { assert.ok(true); });
- collection.model = Backbone.Model.extend({
- validate: function(attrs){ if (!attrs.valid) return 'invalid'; }
- });
- var model = new collection.model({id: 1, valid: true});
- collection.add([model, {id: 2}], {validate: true});
- model.trigger('test');
- assert.ok(collection.get(model.cid));
- assert.ok(collection.get(1));
- assert.ok(!collection.get(2));
- assert.equal(collection.length, 1);
- });
-
- QUnit.test('multiple copies of the same model', function(assert) {
- assert.expect(3);
- var collection = new Backbone.Collection();
- var model = new Backbone.Model();
- collection.add([model, model]);
- assert.equal(collection.length, 1);
- collection.add([{id: 1}, {id: 1}]);
- assert.equal(collection.length, 2);
- assert.equal(collection.last().id, 1);
- });
-
- QUnit.test('#964 - collection.get return inconsistent', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection();
- assert.ok(collection.get(null) === undefined);
- assert.ok(collection.get() === undefined);
- });
-
- QUnit.test('#1112 - passing options.model sets collection.model', function(assert) {
- assert.expect(2);
- var Model = Backbone.Model.extend({});
- var collection = new Backbone.Collection([{id: 1}], {model: Model});
- assert.ok(collection.model === Model);
- assert.ok(collection.at(0) instanceof Model);
- });
-
- QUnit.test('null and undefined are invalid ids.', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model({id: 1});
- var collection = new Backbone.Collection([model]);
- model.set({id: null});
- assert.ok(!collection.get('null'));
- model.set({id: 1});
- model.set({id: undefined});
- assert.ok(!collection.get('undefined'));
- });
-
- QUnit.test('falsy comparator', function(assert) {
- assert.expect(4);
- var Col = Backbone.Collection.extend({
- comparator: function(model){ return model.id; }
- });
- var collection = new Col();
- var colFalse = new Col(null, {comparator: false});
- var colNull = new Col(null, {comparator: null});
- var colUndefined = new Col(null, {comparator: undefined});
- assert.ok(collection.comparator);
- assert.ok(!colFalse.comparator);
- assert.ok(!colNull.comparator);
- assert.ok(colUndefined.comparator);
- });
-
- QUnit.test('#1355 - `options` is passed to success callbacks', function(assert) {
- assert.expect(2);
- var m = new Backbone.Model({x: 1});
- var collection = new Backbone.Collection();
- var opts = {
- opts: true,
- success: function(coll, resp, options) {
- assert.ok(options.opts);
- }
- };
- collection.sync = m.sync = function( method, coll, options ){
- options.success({});
- };
- collection.fetch(opts);
- collection.create(m, opts);
- });
-
- QUnit.test("#1412 - Trigger 'request' and 'sync' events.", function(assert) {
- assert.expect(4);
- var collection = new Backbone.Collection;
- collection.url = '/test';
- Backbone.ajax = function(settings){ settings.success(); };
-
- collection.on('request', function(obj, xhr, options) {
- assert.ok(obj === collection, "collection has correct 'request' event after fetching");
- });
- collection.on('sync', function(obj, response, options) {
- assert.ok(obj === collection, "collection has correct 'sync' event after fetching");
- });
- collection.fetch();
- collection.off();
-
- collection.on('request', function(obj, xhr, options) {
- assert.ok(obj === collection.get(1), "collection has correct 'request' event after one of its models save");
- });
- collection.on('sync', function(obj, response, options) {
- assert.ok(obj === collection.get(1), "collection has correct 'sync' event after one of its models save");
- });
- collection.create({id: 1});
- collection.off();
- });
-
- QUnit.test('#3283 - fetch, create calls success with context', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection;
- collection.url = '/test';
- Backbone.ajax = function(settings) {
- settings.success.call(settings.context);
- };
- var obj = {};
- var options = {
- context: obj,
- success: function() {
- assert.equal(this, obj);
- }
- };
-
- collection.fetch(options);
- collection.create({id: 1}, options);
- });
-
- QUnit.test('#1447 - create with wait adds model.', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection;
- var model = new Backbone.Model;
- model.sync = function(method, m, options){ options.success(); };
- collection.on('add', function(){ assert.ok(true); });
- collection.create(model, {wait: true});
- });
-
- QUnit.test('#1448 - add sorts collection after merge.', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([
- {id: 1, x: 1},
- {id: 2, x: 2}
- ]);
- collection.comparator = function(model){ return model.get('x'); };
- collection.add({id: 1, x: 3}, {merge: true});
- assert.deepEqual(collection.pluck('id'), [2, 1]);
- });
-
- QUnit.test('#1655 - groupBy can be used with a string argument.', function(assert) {
- assert.expect(3);
- var collection = new Backbone.Collection([{x: 1}, {x: 2}]);
- var grouped = collection.groupBy('x');
- assert.strictEqual(_.keys(grouped).length, 2);
- assert.strictEqual(grouped[1][0].get('x'), 1);
- assert.strictEqual(grouped[2][0].get('x'), 2);
- });
-
- QUnit.test('#1655 - sortBy can be used with a string argument.', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([{x: 3}, {x: 1}, {x: 2}]);
- var values = _.map(collection.sortBy('x'), function(model) {
- return model.get('x');
- });
- assert.deepEqual(values, [1, 2, 3]);
- });
-
- QUnit.test('#1604 - Removal during iteration.', function(assert) {
- assert.expect(0);
- var collection = new Backbone.Collection([{}, {}]);
- collection.on('add', function() {
- collection.at(0).destroy();
- });
- collection.add({}, {at: 0});
- });
-
- QUnit.test('#1638 - `sort` during `add` triggers correctly.', function(assert) {
- var collection = new Backbone.Collection;
- collection.comparator = function(model) { return model.get('x'); };
- var added = [];
- collection.on('add', function(model) {
- model.set({x: 3});
- collection.sort();
- added.push(model.id);
- });
- collection.add([{id: 1, x: 1}, {id: 2, x: 2}]);
- assert.deepEqual(added, [1, 2]);
- });
-
- QUnit.test('fetch parses models by default', function(assert) {
- assert.expect(1);
- var model = {};
- var Collection = Backbone.Collection.extend({
- url: 'test',
- model: Backbone.Model.extend({
- parse: function(resp) {
- assert.strictEqual(resp, model);
- }
- })
- });
- new Collection().fetch();
- this.ajaxSettings.success([model]);
- });
-
- QUnit.test("`sort` shouldn't always fire on `add`", function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([{id: 1}, {id: 2}, {id: 3}], {
- comparator: 'id'
- });
- collection.sort = function(){ assert.ok(true); };
- collection.add([]);
- collection.add({id: 1});
- collection.add([{id: 2}, {id: 3}]);
- collection.add({id: 4});
- });
-
- QUnit.test('#1407 parse option on constructor parses collection and models', function(assert) {
- assert.expect(2);
- var model = {
- namespace: [{id: 1}, {id: 2}]
- };
- var Collection = Backbone.Collection.extend({
- model: Backbone.Model.extend({
- parse: function(m) {
- m.name = 'test';
- return m;
- }
- }),
- parse: function(m) {
- return m.namespace;
- }
- });
- var collection = new Collection(model, {parse: true});
-
- assert.equal(collection.length, 2);
- assert.equal(collection.at(0).get('name'), 'test');
- });
-
- QUnit.test('#1407 parse option on reset parses collection and models', function(assert) {
- assert.expect(2);
- var model = {
- namespace: [{id: 1}, {id: 2}]
- };
- var Collection = Backbone.Collection.extend({
- model: Backbone.Model.extend({
- parse: function(m) {
- m.name = 'test';
- return m;
- }
- }),
- parse: function(m) {
- return m.namespace;
- }
- });
- var collection = new Collection();
- collection.reset(model, {parse: true});
-
- assert.equal(collection.length, 2);
- assert.equal(collection.at(0).get('name'), 'test');
- });
-
-
- QUnit.test('Reset includes previous models in triggered event.', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- var collection = new Backbone.Collection([model]);
- collection.on('reset', function(coll, options) {
- assert.deepEqual(options.previousModels, [model]);
- });
- collection.reset([]);
- });
-
- QUnit.test('set', function(assert) {
- var m1 = new Backbone.Model();
- var m2 = new Backbone.Model({id: 2});
- var m3 = new Backbone.Model();
- var collection = new Backbone.Collection([m1, m2]);
-
- // Test add/change/remove events
- collection.on('add', function(model) {
- assert.strictEqual(model, m3);
- });
- collection.on('change', function(model) {
- assert.strictEqual(model, m2);
- });
- collection.on('remove', function(model) {
- assert.strictEqual(model, m1);
- });
-
- // remove: false doesn't remove any models
- collection.set([], {remove: false});
- assert.strictEqual(collection.length, 2);
-
- // add: false doesn't add any models
- collection.set([m1, m2, m3], {add: false});
- assert.strictEqual(collection.length, 2);
-
- // merge: false doesn't change any models
- collection.set([m1, {id: 2, a: 1}], {merge: false});
- assert.strictEqual(m2.get('a'), void 0);
-
- // add: false, remove: false only merges existing models
- collection.set([m1, {id: 2, a: 0}, m3, {id: 4}], {add: false, remove: false});
- assert.strictEqual(collection.length, 2);
- assert.strictEqual(m2.get('a'), 0);
-
- // default options add/remove/merge as appropriate
- collection.set([{id: 2, a: 1}, m3]);
- assert.strictEqual(collection.length, 2);
- assert.strictEqual(m2.get('a'), 1);
-
- // Test removing models not passing an argument
- collection.off('remove').on('remove', function(model) {
- assert.ok(model === m2 || model === m3);
- });
- collection.set([]);
- assert.strictEqual(collection.length, 0);
-
- // Test null models on set doesn't clear collection
- collection.off();
- collection.set([{id: 1}]);
- collection.set();
- assert.strictEqual(collection.length, 1);
- });
-
- QUnit.test('set with only cids', function(assert) {
- assert.expect(3);
- var m1 = new Backbone.Model;
- var m2 = new Backbone.Model;
- var collection = new Backbone.Collection;
- collection.set([m1, m2]);
- assert.equal(collection.length, 2);
- collection.set([m1]);
- assert.equal(collection.length, 1);
- collection.set([m1, m1, m1, m2, m2], {remove: false});
- assert.equal(collection.length, 2);
- });
-
- QUnit.test('set with only idAttribute', function(assert) {
- assert.expect(3);
- var m1 = {_id: 1};
- var m2 = {_id: 2};
- var Col = Backbone.Collection.extend({
- model: Backbone.Model.extend({
- idAttribute: '_id'
- })
- });
- var collection = new Col;
- collection.set([m1, m2]);
- assert.equal(collection.length, 2);
- collection.set([m1]);
- assert.equal(collection.length, 1);
- collection.set([m1, m1, m1, m2, m2], {remove: false});
- assert.equal(collection.length, 2);
- });
-
- QUnit.test('set + merge with default values defined', function(assert) {
- var Model = Backbone.Model.extend({
- defaults: {
- key: 'value'
- }
- });
- var m = new Model({id: 1});
- var collection = new Backbone.Collection([m], {model: Model});
- assert.equal(collection.first().get('key'), 'value');
-
- collection.set({id: 1, key: 'other'});
- assert.equal(collection.first().get('key'), 'other');
-
- collection.set({id: 1, other: 'value'});
- assert.equal(collection.first().get('key'), 'other');
- assert.equal(collection.length, 1);
- });
-
- QUnit.test('merge without mutation', function(assert) {
- var Model = Backbone.Model.extend({
- initialize: function(attrs, options) {
- if (attrs.child) {
- this.set('child', new Model(attrs.child, options), options);
- }
- }
- });
- var Collection = Backbone.Collection.extend({model: Model});
- var data = [{id: 1, child: {id: 2}}];
- var collection = new Collection(data);
- assert.equal(collection.first().id, 1);
- collection.set(data);
- assert.equal(collection.first().id, 1);
- collection.set([{id: 2, child: {id: 2}}].concat(data));
- assert.deepEqual(collection.pluck('id'), [2, 1]);
- });
-
- QUnit.test('`set` and model level `parse`', function(assert) {
- var Model = Backbone.Model.extend({});
- var Collection = Backbone.Collection.extend({
- model: Model,
- parse: function(res) { return _.map(res.models, 'model'); }
- });
- var model = new Model({id: 1});
- var collection = new Collection(model);
- collection.set({models: [
- {model: {id: 1}},
- {model: {id: 2}}
- ]}, {parse: true});
- assert.equal(collection.first(), model);
- });
-
- QUnit.test('`set` data is only parsed once', function(assert) {
- var collection = new Backbone.Collection();
- collection.model = Backbone.Model.extend({
- parse: function(data) {
- assert.equal(data.parsed, void 0);
- data.parsed = true;
- return data;
- }
- });
- collection.set({}, {parse: true});
- });
-
- QUnit.test('`set` matches input order in the absence of a comparator', function(assert) {
- var one = new Backbone.Model({id: 1});
- var two = new Backbone.Model({id: 2});
- var three = new Backbone.Model({id: 3});
- var collection = new Backbone.Collection([one, two, three]);
- collection.set([{id: 3}, {id: 2}, {id: 1}]);
- assert.deepEqual(collection.models, [three, two, one]);
- collection.set([{id: 1}, {id: 2}]);
- assert.deepEqual(collection.models, [one, two]);
- collection.set([two, three, one]);
- assert.deepEqual(collection.models, [two, three, one]);
- collection.set([{id: 1}, {id: 2}], {remove: false});
- assert.deepEqual(collection.models, [two, three, one]);
- collection.set([{id: 1}, {id: 2}, {id: 3}], {merge: false});
- assert.deepEqual(collection.models, [one, two, three]);
- collection.set([three, two, one, {id: 4}], {add: false});
- assert.deepEqual(collection.models, [one, two, three]);
- });
-
- QUnit.test('#1894 - Push should not trigger a sort', function(assert) {
- assert.expect(0);
- var Collection = Backbone.Collection.extend({
- comparator: 'id',
- sort: function() { assert.ok(false); }
- });
- new Collection().push({id: 1});
- });
-
- QUnit.test('#2428 - push duplicate models, return the correct one', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection;
- var model1 = collection.push({id: 101});
- var model2 = collection.push({id: 101});
- assert.ok(model2.cid === model1.cid);
- });
-
- QUnit.test('`set` with non-normal id', function(assert) {
- var Collection = Backbone.Collection.extend({
- model: Backbone.Model.extend({idAttribute: '_id'})
- });
- var collection = new Collection({_id: 1});
- collection.set([{_id: 1, a: 1}], {add: false});
- assert.equal(collection.first().get('a'), 1);
- });
-
- QUnit.test('#1894 - `sort` can optionally be turned off', function(assert) {
- assert.expect(0);
- var Collection = Backbone.Collection.extend({
- comparator: 'id',
- sort: function() { assert.ok(false); }
- });
- new Collection().add({id: 1}, {sort: false});
- });
-
- QUnit.test('#1915 - `parse` data in the right order in `set`', function(assert) {
- var collection = new (Backbone.Collection.extend({
- parse: function(data) {
- assert.strictEqual(data.status, 'ok');
- return data.data;
- }
- }));
- var res = {status: 'ok', data: [{id: 1}]};
- collection.set(res, {parse: true});
- });
-
- QUnit.test('#1939 - `parse` is passed `options`', function(assert) {
- var done = assert.async();
- assert.expect(1);
- var collection = new (Backbone.Collection.extend({
- url: '/',
- parse: function(data, options) {
- assert.strictEqual(options.xhr.someHeader, 'headerValue');
- return data;
- }
- }));
- var ajax = Backbone.ajax;
- Backbone.ajax = function(params) {
- _.defer(params.success, []);
- return {someHeader: 'headerValue'};
- };
- collection.fetch({
- success: function() { done(); }
- });
- Backbone.ajax = ajax;
- });
-
- QUnit.test('fetch will pass extra options to success callback', function(assert) {
- assert.expect(1);
- var SpecialSyncCollection = Backbone.Collection.extend({
- url: '/test',
- sync: function(method, collection, options) {
- _.extend(options, {specialSync: true});
- return Backbone.Collection.prototype.sync.call(this, method, collection, options);
- }
- });
-
- var collection = new SpecialSyncCollection();
-
- var onSuccess = function(coll, resp, options) {
- assert.ok(options.specialSync, 'Options were passed correctly to callback');
- };
-
- collection.fetch({success: onSuccess});
- this.ajaxSettings.success();
- });
-
- QUnit.test('`add` only `sort`s when necessary', function(assert) {
- assert.expect(2);
- var collection = new (Backbone.Collection.extend({
- comparator: 'a'
- }))([{id: 1}, {id: 2}, {id: 3}]);
- collection.on('sort', function() { assert.ok(true); });
- collection.add({id: 4}); // do sort, new model
- collection.add({id: 1, a: 1}, {merge: true}); // do sort, comparator change
- collection.add({id: 1, b: 1}, {merge: true}); // don't sort, no comparator change
- collection.add({id: 1, a: 1}, {merge: true}); // don't sort, no comparator change
- collection.add(collection.models); // don't sort, nothing new
- collection.add(collection.models, {merge: true}); // don't sort
- });
-
- QUnit.test('`add` only `sort`s when necessary with comparator function', function(assert) {
- assert.expect(3);
- var collection = new (Backbone.Collection.extend({
- comparator: function(m1, m2) {
- return m1.get('a') > m2.get('a') ? 1 : (m1.get('a') < m2.get('a') ? -1 : 0);
- }
- }))([{id: 1}, {id: 2}, {id: 3}]);
- collection.on('sort', function() { assert.ok(true); });
- collection.add({id: 4}); // do sort, new model
- collection.add({id: 1, a: 1}, {merge: true}); // do sort, model change
- collection.add({id: 1, b: 1}, {merge: true}); // do sort, model change
- collection.add({id: 1, a: 1}, {merge: true}); // don't sort, no model change
- collection.add(collection.models); // don't sort, nothing new
- collection.add(collection.models, {merge: true}); // don't sort
- });
-
- QUnit.test('Attach options to collection.', function(assert) {
- assert.expect(2);
- var Model = Backbone.Model;
- var comparator = function(){};
-
- var collection = new Backbone.Collection([], {
- model: Model,
- comparator: comparator
- });
-
- assert.ok(collection.model === Model);
- assert.ok(collection.comparator === comparator);
- });
-
- QUnit.test('Pass falsey for `models` for empty Col with `options`', function(assert) {
- assert.expect(9);
- var opts = {a: 1, b: 2};
- _.forEach([undefined, null, false], function(falsey) {
- var Collection = Backbone.Collection.extend({
- initialize: function(models, options) {
- assert.strictEqual(models, falsey);
- assert.strictEqual(options, opts);
- }
- });
-
- var collection = new Collection(falsey, opts);
- assert.strictEqual(collection.length, 0);
- });
- });
-
- QUnit.test('`add` overrides `set` flags', function(assert) {
- var collection = new Backbone.Collection();
- collection.once('add', function(model, coll, options) {
- coll.add({id: 2}, options);
- });
- collection.set({id: 1});
- assert.equal(collection.length, 2);
- });
-
- QUnit.test('#2606 - Collection#create, success arguments', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection;
- collection.url = 'test';
- collection.create({}, {
- success: function(model, resp, options) {
- assert.strictEqual(resp, 'response');
- }
- });
- this.ajaxSettings.success('response');
- });
-
- QUnit.test('#2612 - nested `parse` works with `Collection#set`', function(assert) {
-
- var Job = Backbone.Model.extend({
- constructor: function() {
- this.items = new Items();
- Backbone.Model.apply(this, arguments);
- },
- parse: function(attrs) {
- this.items.set(attrs.items, {parse: true});
- return _.omit(attrs, 'items');
- }
- });
-
- var Item = Backbone.Model.extend({
- constructor: function() {
- this.subItems = new Backbone.Collection();
- Backbone.Model.apply(this, arguments);
- },
- parse: function(attrs) {
- this.subItems.set(attrs.subItems, {parse: true});
- return _.omit(attrs, 'subItems');
- }
- });
-
- var Items = Backbone.Collection.extend({
- model: Item
- });
-
- var data = {
- name: 'JobName',
- id: 1,
- items: [{
- id: 1,
- name: 'Sub1',
- subItems: [
- {id: 1, subName: 'One'},
- {id: 2, subName: 'Two'}
- ]
- }, {
- id: 2,
- name: 'Sub2',
- subItems: [
- {id: 3, subName: 'Three'},
- {id: 4, subName: 'Four'}
- ]
- }]
- };
-
- var newData = {
- name: 'NewJobName',
- id: 1,
- items: [{
- id: 1,
- name: 'NewSub1',
- subItems: [
- {id: 1, subName: 'NewOne'},
- {id: 2, subName: 'NewTwo'}
- ]
- }, {
- id: 2,
- name: 'NewSub2',
- subItems: [
- {id: 3, subName: 'NewThree'},
- {id: 4, subName: 'NewFour'}
- ]
- }]
- };
-
- var job = new Job(data, {parse: true});
- assert.equal(job.get('name'), 'JobName');
- assert.equal(job.items.at(0).get('name'), 'Sub1');
- assert.equal(job.items.length, 2);
- assert.equal(job.items.get(1).subItems.get(1).get('subName'), 'One');
- assert.equal(job.items.get(2).subItems.get(3).get('subName'), 'Three');
- job.set(job.parse(newData, {parse: true}));
- assert.equal(job.get('name'), 'NewJobName');
- assert.equal(job.items.at(0).get('name'), 'NewSub1');
- assert.equal(job.items.length, 2);
- assert.equal(job.items.get(1).subItems.get(1).get('subName'), 'NewOne');
- assert.equal(job.items.get(2).subItems.get(3).get('subName'), 'NewThree');
- });
-
- QUnit.test('_addReference binds all collection events & adds to the lookup hashes', function(assert) {
- assert.expect(8);
-
- var calls = {add: 0, remove: 0};
-
- var Collection = Backbone.Collection.extend({
-
- _addReference: function(model) {
- Backbone.Collection.prototype._addReference.apply(this, arguments);
- calls.add++;
- assert.equal(model, this._byId[model.id]);
- assert.equal(model, this._byId[model.cid]);
- assert.equal(model._events.all.length, 1);
- },
-
- _removeReference: function(model) {
- Backbone.Collection.prototype._removeReference.apply(this, arguments);
- calls.remove++;
- assert.equal(this._byId[model.id], void 0);
- assert.equal(this._byId[model.cid], void 0);
- assert.equal(model.collection, void 0);
- }
-
- });
-
- var collection = new Collection();
- var model = collection.add({id: 1});
- collection.remove(model);
-
- assert.equal(calls.add, 1);
- assert.equal(calls.remove, 1);
- });
-
- QUnit.test('Do not allow duplicate models to be `add`ed or `set`', function(assert) {
- var collection = new Backbone.Collection();
-
- collection.add([{id: 1}, {id: 1}]);
- assert.equal(collection.length, 1);
- assert.equal(collection.models.length, 1);
-
- collection.set([{id: 1}, {id: 1}]);
- assert.equal(collection.length, 1);
- assert.equal(collection.models.length, 1);
- });
-
- QUnit.test('#3020: #set with {add: false} should not throw.', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection;
- collection.set([{id: 1}], {add: false});
- assert.strictEqual(collection.length, 0);
- assert.strictEqual(collection.models.length, 0);
- });
-
- QUnit.test('create with wait, model instance, #3028', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection();
- var model = new Backbone.Model({id: 1});
- model.sync = function(){
- assert.equal(this.collection, collection);
- };
- collection.create(model, {wait: true});
- });
-
- QUnit.test('modelId', function(assert) {
- var Stooge = Backbone.Model.extend();
- var StoogeCollection = Backbone.Collection.extend({model: Stooge});
-
- // Default to using `Collection::model::idAttribute`.
- assert.equal(StoogeCollection.prototype.modelId({id: 1}), 1);
- Stooge.prototype.idAttribute = '_id';
- assert.equal(StoogeCollection.prototype.modelId({_id: 1}), 1);
- });
-
- QUnit.test('Polymorphic models work with "simple" constructors', function(assert) {
- var A = Backbone.Model.extend();
- var B = Backbone.Model.extend();
- var C = Backbone.Collection.extend({
- model: function(attrs) {
- return attrs.type === 'a' ? new A(attrs) : new B(attrs);
- }
- });
- var collection = new C([{id: 1, type: 'a'}, {id: 2, type: 'b'}]);
- assert.equal(collection.length, 2);
- assert.ok(collection.at(0) instanceof A);
- assert.equal(collection.at(0).id, 1);
- assert.ok(collection.at(1) instanceof B);
- assert.equal(collection.at(1).id, 2);
- });
-
- QUnit.test('Polymorphic models work with "advanced" constructors', function(assert) {
- var A = Backbone.Model.extend({idAttribute: '_id'});
- var B = Backbone.Model.extend({idAttribute: '_id'});
- var C = Backbone.Collection.extend({
- model: Backbone.Model.extend({
- constructor: function(attrs) {
- return attrs.type === 'a' ? new A(attrs) : new B(attrs);
- },
-
- idAttribute: '_id'
- })
- });
- var collection = new C([{_id: 1, type: 'a'}, {_id: 2, type: 'b'}]);
- assert.equal(collection.length, 2);
- assert.ok(collection.at(0) instanceof A);
- assert.equal(collection.at(0), collection.get(1));
- assert.ok(collection.at(1) instanceof B);
- assert.equal(collection.at(1), collection.get(2));
-
- C = Backbone.Collection.extend({
- model: function(attrs) {
- return attrs.type === 'a' ? new A(attrs) : new B(attrs);
- },
-
- modelId: function(attrs) {
- return attrs.type + '-' + attrs.id;
- }
- });
- collection = new C([{id: 1, type: 'a'}, {id: 1, type: 'b'}]);
- assert.equal(collection.length, 2);
- assert.ok(collection.at(0) instanceof A);
- assert.equal(collection.at(0), collection.get('a-1'));
- assert.ok(collection.at(1) instanceof B);
- assert.equal(collection.at(1), collection.get('b-1'));
- });
-
- QUnit.test('Collection with polymorphic models receives default id from modelId', function(assert) {
- assert.expect(6);
- // When the polymorphic models use 'id' for the idAttribute, all is fine.
- var C1 = Backbone.Collection.extend({
- model: function(attrs) {
- return new Backbone.Model(attrs);
- }
- });
- var c1 = new C1({id: 1});
- assert.equal(c1.get(1).id, 1);
- assert.equal(c1.modelId({id: 1}), 1);
-
- // If the polymorphic models define their own idAttribute,
- // the modelId method should be overridden, for the reason below.
- var M = Backbone.Model.extend({
- idAttribute: '_id'
- });
- var C2 = Backbone.Collection.extend({
- model: function(attrs) {
- return new M(attrs);
- }
- });
- var c2 = new C2({'_id': 1});
- assert.equal(c2.get(1), void 0);
- assert.equal(c2.modelId(c2.at(0).attributes), void 0);
- var m = new M({'_id': 2});
- c2.add(m);
- assert.equal(c2.get(2), void 0);
- assert.equal(c2.modelId(m.attributes), void 0);
- });
-
- QUnit.test('#3039 #3951: adding at index fires with correct at', function(assert) {
- assert.expect(4);
- var collection = new Backbone.Collection([{val: 0}, {val: 4}]);
- collection.on('add', function(model, coll, options) {
- assert.equal(model.get('val'), options.index);
- });
- collection.add([{val: 1}, {val: 2}, {val: 3}], {at: 1});
- collection.add({val: 5}, {at: 10});
- });
-
- QUnit.test('#3039: index is not sent when at is not specified', function(assert) {
- assert.expect(2);
- var collection = new Backbone.Collection([{at: 0}]);
- collection.on('add', function(model, coll, options) {
- assert.equal(undefined, options.index);
- });
- collection.add([{at: 1}, {at: 2}]);
- });
-
- QUnit.test('#3199 - Order changing should trigger a sort', function(assert) {
- assert.expect(1);
- var one = new Backbone.Model({id: 1});
- var two = new Backbone.Model({id: 2});
- var three = new Backbone.Model({id: 3});
- var collection = new Backbone.Collection([one, two, three]);
- collection.on('sort', function() {
- assert.ok(true);
- });
- collection.set([{id: 3}, {id: 2}, {id: 1}]);
- });
-
- QUnit.test('#3199 - Adding a model should trigger a sort', function(assert) {
- assert.expect(1);
- var one = new Backbone.Model({id: 1});
- var two = new Backbone.Model({id: 2});
- var three = new Backbone.Model({id: 3});
- var collection = new Backbone.Collection([one, two, three]);
- collection.on('sort', function() {
- assert.ok(true);
- });
- collection.set([{id: 1}, {id: 2}, {id: 3}, {id: 0}]);
- });
-
- QUnit.test('#3199 - Order not changing should not trigger a sort', function(assert) {
- assert.expect(0);
- var one = new Backbone.Model({id: 1});
- var two = new Backbone.Model({id: 2});
- var three = new Backbone.Model({id: 3});
- var collection = new Backbone.Collection([one, two, three]);
- collection.on('sort', function() {
- assert.ok(false);
- });
- collection.set([{id: 1}, {id: 2}, {id: 3}]);
- });
-
- QUnit.test('add supports negative indexes', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([{id: 1}]);
- collection.add([{id: 2}, {id: 3}], {at: -1});
- collection.add([{id: 2.5}], {at: -2});
- collection.add([{id: 0.5}], {at: -6});
- assert.equal(collection.pluck('id').join(','), '0.5,1,2,2.5,3');
- });
-
- QUnit.test('#set accepts options.at as a string', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([{id: 1}, {id: 2}]);
- collection.add([{id: 3}], {at: '1'});
- assert.deepEqual(collection.pluck('id'), [1, 3, 2]);
- });
-
- QUnit.test('adding multiple models triggers `update` event once', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection;
- collection.on('update', function() { assert.ok(true); });
- collection.add([{id: 1}, {id: 2}, {id: 3}]);
- });
-
- QUnit.test('removing models triggers `update` event once', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([{id: 1}, {id: 2}, {id: 3}]);
- collection.on('update', function() { assert.ok(true); });
- collection.remove([{id: 1}, {id: 2}]);
- });
-
- QUnit.test('remove does not trigger `update` when nothing removed', function(assert) {
- assert.expect(0);
- var collection = new Backbone.Collection([{id: 1}, {id: 2}]);
- collection.on('update', function() { assert.ok(false); });
- collection.remove([{id: 3}]);
- });
-
- QUnit.test('set triggers `set` event once', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([{id: 1}, {id: 2}]);
- collection.on('update', function() { assert.ok(true); });
- collection.set([{id: 1}, {id: 3}]);
- });
-
- QUnit.test('set does not trigger `update` event when nothing added nor removed', function(assert) {
- var collection = new Backbone.Collection([{id: 1}, {id: 2}]);
- collection.on('update', function(coll, options) {
- assert.equal(options.changes.added.length, 0);
- assert.equal(options.changes.removed.length, 0);
- assert.equal(options.changes.merged.length, 2);
- });
- collection.set([{id: 1}, {id: 2}]);
- });
-
- QUnit.test('#3610 - invoke collects arguments', function(assert) {
- assert.expect(3);
- var Model = Backbone.Model.extend({
- method: function(x, y, z) {
- assert.equal(x, 1);
- assert.equal(y, 2);
- assert.equal(z, 3);
- }
- });
- var Collection = Backbone.Collection.extend({
- model: Model
- });
- var collection = new Collection([{id: 1}]);
- collection.invoke('method', 1, 2, 3);
- });
-
- QUnit.test('#3662 - triggering change without model will not error', function(assert) {
- assert.expect(1);
- var collection = new Backbone.Collection([{id: 1}]);
- var model = collection.first();
- collection.on('change', function(m) {
- assert.equal(m, undefined);
- });
- model.trigger('change');
- });
-
- QUnit.test('#3871 - falsy parse result creates empty collection', function(assert) {
- var collection = new (Backbone.Collection.extend({
- parse: function(data, options) {}
- }));
- collection.set('', {parse: true});
- assert.equal(collection.length, 0);
- });
-
- QUnit.test("#3711 - remove's `update` event returns one removed model", function(assert) {
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var collection = new Backbone.Collection([model]);
- collection.on('update', function(context, options) {
- var changed = options.changes;
- assert.deepEqual(changed.added, []);
- assert.deepEqual(changed.merged, []);
- assert.strictEqual(changed.removed[0], model);
- });
- collection.remove(model);
- });
-
- QUnit.test("#3711 - remove's `update` event returns multiple removed models", function(assert) {
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var model2 = new Backbone.Model({id: 2, title: 'Second Post'});
- var collection = new Backbone.Collection([model, model2]);
- collection.on('update', function(context, options) {
- var changed = options.changes;
- assert.deepEqual(changed.added, []);
- assert.deepEqual(changed.merged, []);
- assert.ok(changed.removed.length === 2);
-
- assert.ok(_.indexOf(changed.removed, model) > -1 && _.indexOf(changed.removed, model2) > -1);
- });
- collection.remove([model, model2]);
- });
-
- QUnit.test("#3711 - set's `update` event returns one added model", function(assert) {
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var collection = new Backbone.Collection();
- collection.on('update', function(context, options) {
- var addedModels = options.changes.added;
- assert.ok(addedModels.length === 1);
- assert.strictEqual(addedModels[0], model);
- });
- collection.set(model);
- });
-
- QUnit.test("#3711 - set's `update` event returns multiple added models", function(assert) {
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var model2 = new Backbone.Model({id: 2, title: 'Second Post'});
- var collection = new Backbone.Collection();
- collection.on('update', function(context, options) {
- var addedModels = options.changes.added;
- assert.ok(addedModels.length === 2);
- assert.strictEqual(addedModels[0], model);
- assert.strictEqual(addedModels[1], model2);
- });
- collection.set([model, model2]);
- });
-
- QUnit.test("#3711 - set's `update` event returns one removed model", function(assert) {
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var model2 = new Backbone.Model({id: 2, title: 'Second Post'});
- var model3 = new Backbone.Model({id: 3, title: 'My Last Post'});
- var collection = new Backbone.Collection([model]);
- collection.on('update', function(context, options) {
- var changed = options.changes;
- assert.equal(changed.added.length, 2);
- assert.equal(changed.merged.length, 0);
- assert.ok(changed.removed.length === 1);
- assert.strictEqual(changed.removed[0], model);
- });
- collection.set([model2, model3]);
- });
-
- QUnit.test("#3711 - set's `update` event returns multiple removed models", function(assert) {
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var model2 = new Backbone.Model({id: 2, title: 'Second Post'});
- var model3 = new Backbone.Model({id: 3, title: 'My Last Post'});
- var collection = new Backbone.Collection([model, model2]);
- collection.on('update', function(context, options) {
- var removedModels = options.changes.removed;
- assert.ok(removedModels.length === 2);
- assert.strictEqual(removedModels[0], model);
- assert.strictEqual(removedModels[1], model2);
- });
- collection.set([model3]);
- });
-
- QUnit.test("#3711 - set's `update` event returns one merged model", function(assert) {
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var model2 = new Backbone.Model({id: 2, title: 'Second Post'});
- var model2Update = new Backbone.Model({id: 2, title: 'Second Post V2'});
- var collection = new Backbone.Collection([model, model2]);
- collection.on('update', function(context, options) {
- var mergedModels = options.changes.merged;
- assert.ok(mergedModels.length === 1);
- assert.strictEqual(mergedModels[0].get('title'), model2Update.get('title'));
- });
- collection.set([model2Update]);
- });
-
- QUnit.test("#3711 - set's `update` event returns multiple merged models", function(assert) {
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var modelUpdate = new Backbone.Model({id: 1, title: 'First Post V2'});
- var model2 = new Backbone.Model({id: 2, title: 'Second Post'});
- var model2Update = new Backbone.Model({id: 2, title: 'Second Post V2'});
- var collection = new Backbone.Collection([model, model2]);
- collection.on('update', function(context, options) {
- var mergedModels = options.changes.merged;
- assert.ok(mergedModels.length === 2);
- assert.strictEqual(mergedModels[0].get('title'), model2Update.get('title'));
- assert.strictEqual(mergedModels[1].get('title'), modelUpdate.get('title'));
- });
- collection.set([model2Update, modelUpdate]);
- });
-
- QUnit.test("#3711 - set's `update` event should not be triggered adding a model which already exists exactly alike", function(assert) {
- var fired = false;
- var model = new Backbone.Model({id: 1, title: 'First Post'});
- var collection = new Backbone.Collection([model]);
- collection.on('update', function(context, options) {
- fired = true;
- });
- collection.set([model]);
- assert.equal(fired, false);
- });
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/events.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/events.js
deleted file mode 100644
index 544b39a1..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/events.js
+++ /dev/null
@@ -1,706 +0,0 @@
-(function() {
-
- QUnit.module('Backbone.Events');
-
- QUnit.test('on and trigger', function(assert) {
- assert.expect(2);
- var obj = {counter: 0};
- _.extend(obj, Backbone.Events);
- obj.on('event', function() { obj.counter += 1; });
- obj.trigger('event');
- assert.equal(obj.counter, 1, 'counter should be incremented.');
- obj.trigger('event');
- obj.trigger('event');
- obj.trigger('event');
- obj.trigger('event');
- assert.equal(obj.counter, 5, 'counter should be incremented five times.');
- });
-
- QUnit.test('binding and triggering multiple events', function(assert) {
- assert.expect(4);
- var obj = {counter: 0};
- _.extend(obj, Backbone.Events);
-
- obj.on('a b c', function() { obj.counter += 1; });
-
- obj.trigger('a');
- assert.equal(obj.counter, 1);
-
- obj.trigger('a b');
- assert.equal(obj.counter, 3);
-
- obj.trigger('c');
- assert.equal(obj.counter, 4);
-
- obj.off('a c');
- obj.trigger('a b c');
- assert.equal(obj.counter, 5);
- });
-
- QUnit.test('binding and triggering with event maps', function(assert) {
- var obj = {counter: 0};
- _.extend(obj, Backbone.Events);
-
- var increment = function() {
- this.counter += 1;
- };
-
- obj.on({
- a: increment,
- b: increment,
- c: increment
- }, obj);
-
- obj.trigger('a');
- assert.equal(obj.counter, 1);
-
- obj.trigger('a b');
- assert.equal(obj.counter, 3);
-
- obj.trigger('c');
- assert.equal(obj.counter, 4);
-
- obj.off({
- a: increment,
- c: increment
- }, obj);
- obj.trigger('a b c');
- assert.equal(obj.counter, 5);
- });
-
- QUnit.test('binding and triggering multiple event names with event maps', function(assert) {
- var obj = {counter: 0};
- _.extend(obj, Backbone.Events);
-
- var increment = function() {
- this.counter += 1;
- };
-
- obj.on({
- 'a b c': increment
- });
-
- obj.trigger('a');
- assert.equal(obj.counter, 1);
-
- obj.trigger('a b');
- assert.equal(obj.counter, 3);
-
- obj.trigger('c');
- assert.equal(obj.counter, 4);
-
- obj.off({
- 'a c': increment
- });
- obj.trigger('a b c');
- assert.equal(obj.counter, 5);
- });
-
- QUnit.test('binding and trigger with event maps context', function(assert) {
- assert.expect(2);
- var obj = {counter: 0};
- var context = {};
- _.extend(obj, Backbone.Events);
-
- obj.on({
- a: function() {
- assert.strictEqual(this, context, 'defaults `context` to `callback` param');
- }
- }, context).trigger('a');
-
- obj.off().on({
- a: function() {
- assert.strictEqual(this, context, 'will not override explicit `context` param');
- }
- }, this, context).trigger('a');
- });
-
- QUnit.test('listenTo and stopListening', function(assert) {
- assert.expect(1);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- a.listenTo(b, 'all', function(){ assert.ok(true); });
- b.trigger('anything');
- a.listenTo(b, 'all', function(){ assert.ok(false); });
- a.stopListening();
- b.trigger('anything');
- });
-
- QUnit.test('listenTo and stopListening with event maps', function(assert) {
- assert.expect(4);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- var cb = function(){ assert.ok(true); };
- a.listenTo(b, {event: cb});
- b.trigger('event');
- a.listenTo(b, {event2: cb});
- b.on('event2', cb);
- a.stopListening(b, {event2: cb});
- b.trigger('event event2');
- a.stopListening();
- b.trigger('event event2');
- });
-
- QUnit.test('stopListening with omitted args', function(assert) {
- assert.expect(2);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- var cb = function() { assert.ok(true); };
- a.listenTo(b, 'event', cb);
- b.on('event', cb);
- a.listenTo(b, 'event2', cb);
- a.stopListening(null, {event: cb});
- b.trigger('event event2');
- b.off();
- a.listenTo(b, 'event event2', cb);
- a.stopListening(null, 'event');
- a.stopListening();
- b.trigger('event2');
- });
-
- QUnit.test('listenToOnce', function(assert) {
- assert.expect(2);
- // Same as the previous test, but we use once rather than having to explicitly unbind
- var obj = {counterA: 0, counterB: 0};
- _.extend(obj, Backbone.Events);
- var incrA = function(){ obj.counterA += 1; obj.trigger('event'); };
- var incrB = function(){ obj.counterB += 1; };
- obj.listenToOnce(obj, 'event', incrA);
- obj.listenToOnce(obj, 'event', incrB);
- obj.trigger('event');
- assert.equal(obj.counterA, 1, 'counterA should have only been incremented once.');
- assert.equal(obj.counterB, 1, 'counterB should have only been incremented once.');
- });
-
- QUnit.test('listenToOnce and stopListening', function(assert) {
- assert.expect(1);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- a.listenToOnce(b, 'all', function() { assert.ok(true); });
- b.trigger('anything');
- b.trigger('anything');
- a.listenToOnce(b, 'all', function() { assert.ok(false); });
- a.stopListening();
- b.trigger('anything');
- });
-
- QUnit.test('listenTo, listenToOnce and stopListening', function(assert) {
- assert.expect(1);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- a.listenToOnce(b, 'all', function() { assert.ok(true); });
- b.trigger('anything');
- b.trigger('anything');
- a.listenTo(b, 'all', function() { assert.ok(false); });
- a.stopListening();
- b.trigger('anything');
- });
-
- QUnit.test('listenTo and stopListening with event maps', function(assert) {
- assert.expect(1);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- a.listenTo(b, {change: function(){ assert.ok(true); }});
- b.trigger('change');
- a.listenTo(b, {change: function(){ assert.ok(false); }});
- a.stopListening();
- b.trigger('change');
- });
-
- QUnit.test('listenTo yourself', function(assert) {
- assert.expect(1);
- var e = _.extend({}, Backbone.Events);
- e.listenTo(e, 'foo', function(){ assert.ok(true); });
- e.trigger('foo');
- });
-
- QUnit.test('listenTo yourself cleans yourself up with stopListening', function(assert) {
- assert.expect(1);
- var e = _.extend({}, Backbone.Events);
- e.listenTo(e, 'foo', function(){ assert.ok(true); });
- e.trigger('foo');
- e.stopListening();
- e.trigger('foo');
- });
-
- QUnit.test('stopListening cleans up references', function(assert) {
- assert.expect(12);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- var fn = function() {};
- b.on('event', fn);
- a.listenTo(b, 'event', fn).stopListening();
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._events.event), 1);
- assert.equal(_.size(b._listeners), 0);
- a.listenTo(b, 'event', fn).stopListening(b);
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._events.event), 1);
- assert.equal(_.size(b._listeners), 0);
- a.listenTo(b, 'event', fn).stopListening(b, 'event');
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._events.event), 1);
- assert.equal(_.size(b._listeners), 0);
- a.listenTo(b, 'event', fn).stopListening(b, 'event', fn);
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._events.event), 1);
- assert.equal(_.size(b._listeners), 0);
- });
-
- QUnit.test('stopListening cleans up references from listenToOnce', function(assert) {
- assert.expect(12);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- var fn = function() {};
- b.on('event', fn);
- a.listenToOnce(b, 'event', fn).stopListening();
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._events.event), 1);
- assert.equal(_.size(b._listeners), 0);
- a.listenToOnce(b, 'event', fn).stopListening(b);
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._events.event), 1);
- assert.equal(_.size(b._listeners), 0);
- a.listenToOnce(b, 'event', fn).stopListening(b, 'event');
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._events.event), 1);
- assert.equal(_.size(b._listeners), 0);
- a.listenToOnce(b, 'event', fn).stopListening(b, 'event', fn);
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._events.event), 1);
- assert.equal(_.size(b._listeners), 0);
- });
-
- QUnit.test('listenTo and off cleaning up references', function(assert) {
- assert.expect(8);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- var fn = function() {};
- a.listenTo(b, 'event', fn);
- b.off();
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._listeners), 0);
- a.listenTo(b, 'event', fn);
- b.off('event');
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._listeners), 0);
- a.listenTo(b, 'event', fn);
- b.off(null, fn);
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._listeners), 0);
- a.listenTo(b, 'event', fn);
- b.off(null, null, a);
- assert.equal(_.size(a._listeningTo), 0);
- assert.equal(_.size(b._listeners), 0);
- });
-
- QUnit.test('listenTo and stopListening cleaning up references', function(assert) {
- assert.expect(2);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- a.listenTo(b, 'all', function(){ assert.ok(true); });
- b.trigger('anything');
- a.listenTo(b, 'other', function(){ assert.ok(false); });
- a.stopListening(b, 'other');
- a.stopListening(b, 'all');
- assert.equal(_.size(a._listeningTo), 0);
- });
-
- QUnit.test('listenToOnce without context cleans up references after the event has fired', function(assert) {
- assert.expect(2);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- a.listenToOnce(b, 'all', function(){ assert.ok(true); });
- b.trigger('anything');
- assert.equal(_.size(a._listeningTo), 0);
- });
-
- QUnit.test('listenToOnce with event maps cleans up references', function(assert) {
- assert.expect(2);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- a.listenToOnce(b, {
- one: function() { assert.ok(true); },
- two: function() { assert.ok(false); }
- });
- b.trigger('one');
- assert.equal(_.size(a._listeningTo), 1);
- });
-
- QUnit.test('listenToOnce with event maps binds the correct `this`', function(assert) {
- assert.expect(1);
- var a = _.extend({}, Backbone.Events);
- var b = _.extend({}, Backbone.Events);
- a.listenToOnce(b, {
- one: function() { assert.ok(this === a); },
- two: function() { assert.ok(false); }
- });
- b.trigger('one');
- });
-
- QUnit.test("listenTo with empty callback doesn't throw an error", function(assert) {
- assert.expect(1);
- var e = _.extend({}, Backbone.Events);
- e.listenTo(e, 'foo', null);
- e.trigger('foo');
- assert.ok(true);
- });
-
- QUnit.test('trigger all for each event', function(assert) {
- assert.expect(3);
- var a, b, obj = {counter: 0};
- _.extend(obj, Backbone.Events);
- obj.on('all', function(event) {
- obj.counter++;
- if (event === 'a') a = true;
- if (event === 'b') b = true;
- })
- .trigger('a b');
- assert.ok(a);
- assert.ok(b);
- assert.equal(obj.counter, 2);
- });
-
- QUnit.test('on, then unbind all functions', function(assert) {
- assert.expect(1);
- var obj = {counter: 0};
- _.extend(obj, Backbone.Events);
- var callback = function() { obj.counter += 1; };
- obj.on('event', callback);
- obj.trigger('event');
- obj.off('event');
- obj.trigger('event');
- assert.equal(obj.counter, 1, 'counter should have only been incremented once.');
- });
-
- QUnit.test('bind two callbacks, unbind only one', function(assert) {
- assert.expect(2);
- var obj = {counterA: 0, counterB: 0};
- _.extend(obj, Backbone.Events);
- var callback = function() { obj.counterA += 1; };
- obj.on('event', callback);
- obj.on('event', function() { obj.counterB += 1; });
- obj.trigger('event');
- obj.off('event', callback);
- obj.trigger('event');
- assert.equal(obj.counterA, 1, 'counterA should have only been incremented once.');
- assert.equal(obj.counterB, 2, 'counterB should have been incremented twice.');
- });
-
- QUnit.test('unbind a callback in the midst of it firing', function(assert) {
- assert.expect(1);
- var obj = {counter: 0};
- _.extend(obj, Backbone.Events);
- var callback = function() {
- obj.counter += 1;
- obj.off('event', callback);
- };
- obj.on('event', callback);
- obj.trigger('event');
- obj.trigger('event');
- obj.trigger('event');
- assert.equal(obj.counter, 1, 'the callback should have been unbound.');
- });
-
- QUnit.test('two binds that unbind themeselves', function(assert) {
- assert.expect(2);
- var obj = {counterA: 0, counterB: 0};
- _.extend(obj, Backbone.Events);
- var incrA = function(){ obj.counterA += 1; obj.off('event', incrA); };
- var incrB = function(){ obj.counterB += 1; obj.off('event', incrB); };
- obj.on('event', incrA);
- obj.on('event', incrB);
- obj.trigger('event');
- obj.trigger('event');
- obj.trigger('event');
- assert.equal(obj.counterA, 1, 'counterA should have only been incremented once.');
- assert.equal(obj.counterB, 1, 'counterB should have only been incremented once.');
- });
-
- QUnit.test('bind a callback with a default context when none supplied', function(assert) {
- assert.expect(1);
- var obj = _.extend({
- assertTrue: function() {
- assert.equal(this, obj, '`this` was bound to the callback');
- }
- }, Backbone.Events);
-
- obj.once('event', obj.assertTrue);
- obj.trigger('event');
- });
-
- QUnit.test('bind a callback with a supplied context', function(assert) {
- assert.expect(1);
- var TestClass = function() {
- return this;
- };
- TestClass.prototype.assertTrue = function() {
- assert.ok(true, '`this` was bound to the callback');
- };
-
- var obj = _.extend({}, Backbone.Events);
- obj.on('event', function() { this.assertTrue(); }, new TestClass);
- obj.trigger('event');
- });
-
- QUnit.test('nested trigger with unbind', function(assert) {
- assert.expect(1);
- var obj = {counter: 0};
- _.extend(obj, Backbone.Events);
- var incr1 = function(){ obj.counter += 1; obj.off('event', incr1); obj.trigger('event'); };
- var incr2 = function(){ obj.counter += 1; };
- obj.on('event', incr1);
- obj.on('event', incr2);
- obj.trigger('event');
- assert.equal(obj.counter, 3, 'counter should have been incremented three times');
- });
-
- QUnit.test('callback list is not altered during trigger', function(assert) {
- assert.expect(2);
- var counter = 0, obj = _.extend({}, Backbone.Events);
- var incr = function(){ counter++; };
- var incrOn = function(){ obj.on('event all', incr); };
- var incrOff = function(){ obj.off('event all', incr); };
-
- obj.on('event all', incrOn).trigger('event');
- assert.equal(counter, 0, 'on does not alter callback list');
-
- obj.off().on('event', incrOff).on('event all', incr).trigger('event');
- assert.equal(counter, 2, 'off does not alter callback list');
- });
-
- QUnit.test("#1282 - 'all' callback list is retrieved after each event.", function(assert) {
- assert.expect(1);
- var counter = 0;
- var obj = _.extend({}, Backbone.Events);
- var incr = function(){ counter++; };
- obj.on('x', function() {
- obj.on('y', incr).on('all', incr);
- })
- .trigger('x y');
- assert.strictEqual(counter, 2);
- });
-
- QUnit.test('if no callback is provided, `on` is a noop', function(assert) {
- assert.expect(0);
- _.extend({}, Backbone.Events).on('test').trigger('test');
- });
-
- QUnit.test('if callback is truthy but not a function, `on` should throw an error just like jQuery', function(assert) {
- assert.expect(1);
- var view = _.extend({}, Backbone.Events).on('test', 'noop');
- assert.raises(function() {
- view.trigger('test');
- });
- });
-
- QUnit.test('remove all events for a specific context', function(assert) {
- assert.expect(4);
- var obj = _.extend({}, Backbone.Events);
- obj.on('x y all', function() { assert.ok(true); });
- obj.on('x y all', function() { assert.ok(false); }, obj);
- obj.off(null, null, obj);
- obj.trigger('x y');
- });
-
- QUnit.test('remove all events for a specific callback', function(assert) {
- assert.expect(4);
- var obj = _.extend({}, Backbone.Events);
- var success = function() { assert.ok(true); };
- var fail = function() { assert.ok(false); };
- obj.on('x y all', success);
- obj.on('x y all', fail);
- obj.off(null, fail);
- obj.trigger('x y');
- });
-
- QUnit.test('#1310 - off does not skip consecutive events', function(assert) {
- assert.expect(0);
- var obj = _.extend({}, Backbone.Events);
- obj.on('event', function() { assert.ok(false); }, obj);
- obj.on('event', function() { assert.ok(false); }, obj);
- obj.off(null, null, obj);
- obj.trigger('event');
- });
-
- QUnit.test('once', function(assert) {
- assert.expect(2);
- // Same as the previous test, but we use once rather than having to explicitly unbind
- var obj = {counterA: 0, counterB: 0};
- _.extend(obj, Backbone.Events);
- var incrA = function(){ obj.counterA += 1; obj.trigger('event'); };
- var incrB = function(){ obj.counterB += 1; };
- obj.once('event', incrA);
- obj.once('event', incrB);
- obj.trigger('event');
- assert.equal(obj.counterA, 1, 'counterA should have only been incremented once.');
- assert.equal(obj.counterB, 1, 'counterB should have only been incremented once.');
- });
-
- QUnit.test('once variant one', function(assert) {
- assert.expect(3);
- var f = function(){ assert.ok(true); };
-
- var a = _.extend({}, Backbone.Events).once('event', f);
- var b = _.extend({}, Backbone.Events).on('event', f);
-
- a.trigger('event');
-
- b.trigger('event');
- b.trigger('event');
- });
-
- QUnit.test('once variant two', function(assert) {
- assert.expect(3);
- var f = function(){ assert.ok(true); };
- var obj = _.extend({}, Backbone.Events);
-
- obj
- .once('event', f)
- .on('event', f)
- .trigger('event')
- .trigger('event');
- });
-
- QUnit.test('once with off', function(assert) {
- assert.expect(0);
- var f = function(){ assert.ok(true); };
- var obj = _.extend({}, Backbone.Events);
-
- obj.once('event', f);
- obj.off('event', f);
- obj.trigger('event');
- });
-
- QUnit.test('once with event maps', function(assert) {
- var obj = {counter: 0};
- _.extend(obj, Backbone.Events);
-
- var increment = function() {
- this.counter += 1;
- };
-
- obj.once({
- a: increment,
- b: increment,
- c: increment
- }, obj);
-
- obj.trigger('a');
- assert.equal(obj.counter, 1);
-
- obj.trigger('a b');
- assert.equal(obj.counter, 2);
-
- obj.trigger('c');
- assert.equal(obj.counter, 3);
-
- obj.trigger('a b c');
- assert.equal(obj.counter, 3);
- });
-
- QUnit.test('bind a callback with a supplied context using once with object notation', function(assert) {
- assert.expect(1);
- var obj = {counter: 0};
- var context = {};
- _.extend(obj, Backbone.Events);
-
- obj.once({
- a: function() {
- assert.strictEqual(this, context, 'defaults `context` to `callback` param');
- }
- }, context).trigger('a');
- });
-
- QUnit.test('once with off only by context', function(assert) {
- assert.expect(0);
- var context = {};
- var obj = _.extend({}, Backbone.Events);
- obj.once('event', function(){ assert.ok(false); }, context);
- obj.off(null, null, context);
- obj.trigger('event');
- });
-
- QUnit.test('Backbone object inherits Events', function(assert) {
- assert.ok(Backbone.on === Backbone.Events.on);
- });
-
- QUnit.test('once with asynchronous events', function(assert) {
- var done = assert.async();
- assert.expect(1);
- var func = _.debounce(function() { assert.ok(true); done(); }, 50);
- var obj = _.extend({}, Backbone.Events).once('async', func);
-
- obj.trigger('async');
- obj.trigger('async');
- });
-
- QUnit.test('once with multiple events.', function(assert) {
- assert.expect(2);
- var obj = _.extend({}, Backbone.Events);
- obj.once('x y', function() { assert.ok(true); });
- obj.trigger('x y');
- });
-
- QUnit.test('Off during iteration with once.', function(assert) {
- assert.expect(2);
- var obj = _.extend({}, Backbone.Events);
- var f = function(){ this.off('event', f); };
- obj.on('event', f);
- obj.once('event', function(){});
- obj.on('event', function(){ assert.ok(true); });
-
- obj.trigger('event');
- obj.trigger('event');
- });
-
- QUnit.test('`once` on `all` should work as expected', function(assert) {
- assert.expect(1);
- Backbone.once('all', function() {
- assert.ok(true);
- Backbone.trigger('all');
- });
- Backbone.trigger('all');
- });
-
- QUnit.test('once without a callback is a noop', function(assert) {
- assert.expect(0);
- _.extend({}, Backbone.Events).once('event').trigger('event');
- });
-
- QUnit.test('listenToOnce without a callback is a noop', function(assert) {
- assert.expect(0);
- var obj = _.extend({}, Backbone.Events);
- obj.listenToOnce(obj, 'event').trigger('event');
- });
-
- QUnit.test('event functions are chainable', function(assert) {
- var obj = _.extend({}, Backbone.Events);
- var obj2 = _.extend({}, Backbone.Events);
- var fn = function() {};
- assert.equal(obj, obj.trigger('noeventssetyet'));
- assert.equal(obj, obj.off('noeventssetyet'));
- assert.equal(obj, obj.stopListening('noeventssetyet'));
- assert.equal(obj, obj.on('a', fn));
- assert.equal(obj, obj.once('c', fn));
- assert.equal(obj, obj.trigger('a'));
- assert.equal(obj, obj.listenTo(obj2, 'a', fn));
- assert.equal(obj, obj.listenToOnce(obj2, 'b', fn));
- assert.equal(obj, obj.off('a c'));
- assert.equal(obj, obj.stopListening(obj2, 'a'));
- assert.equal(obj, obj.stopListening());
- });
-
- QUnit.test('#3448 - listenToOnce with space-separated events', function(assert) {
- assert.expect(2);
- var one = _.extend({}, Backbone.Events);
- var two = _.extend({}, Backbone.Events);
- var count = 1;
- one.listenToOnce(two, 'x y', function(n) { assert.ok(n === count++); });
- two.trigger('x', 1);
- two.trigger('x', 1);
- two.trigger('y', 2);
- two.trigger('y', 2);
- });
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/model.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/model.js
deleted file mode 100644
index b73a1c79..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/model.js
+++ /dev/null
@@ -1,1418 +0,0 @@
-(function() {
-
- var ProxyModel = Backbone.Model.extend();
- var Klass = Backbone.Collection.extend({
- url: function() { return '/collection'; }
- });
- var doc, collection;
-
- QUnit.module('Backbone.Model', {
-
- beforeEach: function(assert) {
- doc = new ProxyModel({
- id: '1-the-tempest',
- title: 'The Tempest',
- author: 'Bill Shakespeare',
- length: 123
- });
- collection = new Klass();
- collection.add(doc);
- }
-
- });
-
- QUnit.test('initialize', function(assert) {
- assert.expect(3);
- var Model = Backbone.Model.extend({
- initialize: function() {
- this.one = 1;
- assert.equal(this.collection, collection);
- }
- });
- var model = new Model({}, {collection: collection});
- assert.equal(model.one, 1);
- assert.equal(model.collection, collection);
- });
-
- QUnit.test('Object.prototype properties are overridden by attributes', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model({hasOwnProperty: true});
- assert.equal(model.get('hasOwnProperty'), true);
- });
-
- QUnit.test('initialize with attributes and options', function(assert) {
- assert.expect(1);
- var Model = Backbone.Model.extend({
- initialize: function(attributes, options) {
- this.one = options.one;
- }
- });
- var model = new Model({}, {one: 1});
- assert.equal(model.one, 1);
- });
-
- QUnit.test('initialize with parsed attributes', function(assert) {
- assert.expect(1);
- var Model = Backbone.Model.extend({
- parse: function(attrs) {
- attrs.value += 1;
- return attrs;
- }
- });
- var model = new Model({value: 1}, {parse: true});
- assert.equal(model.get('value'), 2);
- });
-
- QUnit.test('parse can return null', function(assert) {
- assert.expect(1);
- var Model = Backbone.Model.extend({
- parse: function(attrs) {
- attrs.value += 1;
- return null;
- }
- });
- var model = new Model({value: 1}, {parse: true});
- assert.equal(JSON.stringify(model.toJSON()), '{}');
- });
-
- QUnit.test('url', function(assert) {
- assert.expect(3);
- doc.urlRoot = null;
- assert.equal(doc.url(), '/collection/1-the-tempest');
- doc.collection.url = '/collection/';
- assert.equal(doc.url(), '/collection/1-the-tempest');
- doc.collection = null;
- assert.raises(function() { doc.url(); });
- doc.collection = collection;
- });
-
- QUnit.test('url when using urlRoot, and uri encoding', function(assert) {
- assert.expect(2);
- var Model = Backbone.Model.extend({
- urlRoot: '/collection'
- });
- var model = new Model();
- assert.equal(model.url(), '/collection');
- model.set({id: '+1+'});
- assert.equal(model.url(), '/collection/%2B1%2B');
- });
-
- QUnit.test('url when using urlRoot as a function to determine urlRoot at runtime', function(assert) {
- assert.expect(2);
- var Model = Backbone.Model.extend({
- urlRoot: function() {
- return '/nested/' + this.get('parentId') + '/collection';
- }
- });
-
- var model = new Model({parentId: 1});
- assert.equal(model.url(), '/nested/1/collection');
- model.set({id: 2});
- assert.equal(model.url(), '/nested/1/collection/2');
- });
-
- QUnit.test('underscore methods', function(assert) {
- assert.expect(5);
- var model = new Backbone.Model({foo: 'a', bar: 'b', baz: 'c'});
- var model2 = model.clone();
- assert.deepEqual(model.keys(), ['foo', 'bar', 'baz']);
- assert.deepEqual(model.values(), ['a', 'b', 'c']);
- assert.deepEqual(model.invert(), {a: 'foo', b: 'bar', c: 'baz'});
- assert.deepEqual(model.pick('foo', 'baz'), {foo: 'a', baz: 'c'});
- assert.deepEqual(model.omit('foo', 'bar'), {baz: 'c'});
- });
-
- QUnit.test('chain', function(assert) {
- var model = new Backbone.Model({a: 0, b: 1, c: 2});
- assert.deepEqual(model.chain().pick('a', 'b', 'c').values().compact().value(), [1, 2]);
- });
-
- QUnit.test('clone', function(assert) {
- assert.expect(10);
- var a = new Backbone.Model({foo: 1, bar: 2, baz: 3});
- var b = a.clone();
- assert.equal(a.get('foo'), 1);
- assert.equal(a.get('bar'), 2);
- assert.equal(a.get('baz'), 3);
- assert.equal(b.get('foo'), a.get('foo'), 'Foo should be the same on the clone.');
- assert.equal(b.get('bar'), a.get('bar'), 'Bar should be the same on the clone.');
- assert.equal(b.get('baz'), a.get('baz'), 'Baz should be the same on the clone.');
- a.set({foo: 100});
- assert.equal(a.get('foo'), 100);
- assert.equal(b.get('foo'), 1, 'Changing a parent attribute does not change the clone.');
-
- var foo = new Backbone.Model({p: 1});
- var bar = new Backbone.Model({p: 2});
- bar.set(foo.clone().attributes, {unset: true});
- assert.equal(foo.get('p'), 1);
- assert.equal(bar.get('p'), undefined);
- });
-
- QUnit.test('isNew', function(assert) {
- assert.expect(6);
- var a = new Backbone.Model({foo: 1, bar: 2, baz: 3});
- assert.ok(a.isNew(), 'it should be new');
- a = new Backbone.Model({foo: 1, bar: 2, baz: 3, id: -5});
- assert.ok(!a.isNew(), 'any defined ID is legal, negative or positive');
- a = new Backbone.Model({foo: 1, bar: 2, baz: 3, id: 0});
- assert.ok(!a.isNew(), 'any defined ID is legal, including zero');
- assert.ok(new Backbone.Model().isNew(), 'is true when there is no id');
- assert.ok(!new Backbone.Model({id: 2}).isNew(), 'is false for a positive integer');
- assert.ok(!new Backbone.Model({id: -5}).isNew(), 'is false for a negative integer');
- });
-
- QUnit.test('get', function(assert) {
- assert.expect(2);
- assert.equal(doc.get('title'), 'The Tempest');
- assert.equal(doc.get('author'), 'Bill Shakespeare');
- });
-
- QUnit.test('escape', function(assert) {
- assert.expect(5);
- assert.equal(doc.escape('title'), 'The Tempest');
- doc.set({audience: 'Bill & Bob'});
- assert.equal(doc.escape('audience'), 'Bill &amp; Bob');
- doc.set({audience: 'Tim > Joan'});
- assert.equal(doc.escape('audience'), 'Tim &gt; Joan');
- doc.set({audience: 10101});
- assert.equal(doc.escape('audience'), '10101');
- doc.unset('audience');
- assert.equal(doc.escape('audience'), '');
- });
-
- QUnit.test('has', function(assert) {
- assert.expect(10);
- var model = new Backbone.Model();
-
- assert.strictEqual(model.has('name'), false);
-
- model.set({
- '0': 0,
- '1': 1,
- 'true': true,
- 'false': false,
- 'empty': '',
- 'name': 'name',
- 'null': null,
- 'undefined': undefined
- });
-
- assert.strictEqual(model.has('0'), true);
- assert.strictEqual(model.has('1'), true);
- assert.strictEqual(model.has('true'), true);
- assert.strictEqual(model.has('false'), true);
- assert.strictEqual(model.has('empty'), true);
- assert.strictEqual(model.has('name'), true);
-
- model.unset('name');
-
- assert.strictEqual(model.has('name'), false);
- assert.strictEqual(model.has('null'), false);
- assert.strictEqual(model.has('undefined'), false);
- });
-
- QUnit.test('matches', function(assert) {
- assert.expect(4);
- var model = new Backbone.Model();
-
- assert.strictEqual(model.matches({name: 'Jonas', cool: true}), false);
-
- model.set({name: 'Jonas', cool: true});
-
- assert.strictEqual(model.matches({name: 'Jonas'}), true);
- assert.strictEqual(model.matches({name: 'Jonas', cool: true}), true);
- assert.strictEqual(model.matches({name: 'Jonas', cool: false}), false);
- });
-
- QUnit.test('matches with predicate', function(assert) {
- var model = new Backbone.Model({a: 0});
-
- assert.strictEqual(model.matches(function(attr) {
- return attr.a > 1 && attr.b != null;
- }), false);
-
- model.set({a: 3, b: true});
-
- assert.strictEqual(model.matches(function(attr) {
- return attr.a > 1 && attr.b != null;
- }), true);
- });
-
- QUnit.test('set and unset', function(assert) {
- assert.expect(8);
- var a = new Backbone.Model({id: 'id', foo: 1, bar: 2, baz: 3});
- var changeCount = 0;
- a.on('change:foo', function() { changeCount += 1; });
- a.set({foo: 2});
- assert.equal(a.get('foo'), 2, 'Foo should have changed.');
- assert.equal(changeCount, 1, 'Change count should have incremented.');
- // set with value that is not new shouldn't fire change event
- a.set({foo: 2});
- assert.equal(a.get('foo'), 2, 'Foo should NOT have changed, still 2');
- assert.equal(changeCount, 1, 'Change count should NOT have incremented.');
-
- a.validate = function(attrs) {
- assert.equal(attrs.foo, void 0, 'validate:true passed while unsetting');
- };
- a.unset('foo', {validate: true});
- assert.equal(a.get('foo'), void 0, 'Foo should have changed');
- delete a.validate;
- assert.equal(changeCount, 2, 'Change count should have incremented for unset.');
-
- a.unset('id');
- assert.equal(a.id, undefined, 'Unsetting the id should remove the id property.');
- });
-
- QUnit.test('#2030 - set with failed validate, followed by another set triggers change', function(assert) {
- var attr = 0, main = 0, error = 0;
- var Model = Backbone.Model.extend({
- validate: function(attrs) {
- if (attrs.x > 1) {
- error++;
- return 'this is an error';
- }
- }
- });
- var model = new Model({x: 0});
- model.on('change:x', function() { attr++; });
- model.on('change', function() { main++; });
- model.set({x: 2}, {validate: true});
- model.set({x: 1}, {validate: true});
- assert.deepEqual([attr, main, error], [1, 1, 1]);
- });
-
- QUnit.test('set triggers changes in the correct order', function(assert) {
- var value = null;
- var model = new Backbone.Model;
- model.on('last', function(){ value = 'last'; });
- model.on('first', function(){ value = 'first'; });
- model.trigger('first');
- model.trigger('last');
- assert.equal(value, 'last');
- });
-
- QUnit.test('set falsy values in the correct order', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model({result: 'result'});
- model.on('change', function() {
- assert.equal(model.changed.result, void 0);
- assert.equal(model.previous('result'), false);
- });
- model.set({result: void 0}, {silent: true});
- model.set({result: null}, {silent: true});
- model.set({result: false}, {silent: true});
- model.set({result: void 0});
- });
-
- QUnit.test('nested set triggers with the correct options', function(assert) {
- var model = new Backbone.Model();
- var o1 = {};
- var o2 = {};
- var o3 = {};
- model.on('change', function(__, options) {
- switch (model.get('a')) {
- case 1:
- assert.equal(options, o1);
- return model.set('a', 2, o2);
- case 2:
- assert.equal(options, o2);
- return model.set('a', 3, o3);
- case 3:
- assert.equal(options, o3);
- }
- });
- model.set('a', 1, o1);
- });
-
- QUnit.test('multiple unsets', function(assert) {
- assert.expect(1);
- var i = 0;
- var counter = function(){ i++; };
- var model = new Backbone.Model({a: 1});
- model.on('change:a', counter);
- model.set({a: 2});
- model.unset('a');
- model.unset('a');
- assert.equal(i, 2, 'Unset does not fire an event for missing attributes.');
- });
-
- QUnit.test('unset and changedAttributes', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model({a: 1});
- model.on('change', function() {
- assert.ok('a' in model.changedAttributes(), 'changedAttributes should contain unset properties');
- });
- model.unset('a');
- });
-
- QUnit.test('using a non-default id attribute.', function(assert) {
- assert.expect(5);
- var MongoModel = Backbone.Model.extend({idAttribute: '_id'});
- var model = new MongoModel({id: 'eye-dee', _id: 25, title: 'Model'});
- assert.equal(model.get('id'), 'eye-dee');
- assert.equal(model.id, 25);
- assert.equal(model.isNew(), false);
- model.unset('_id');
- assert.equal(model.id, undefined);
- assert.equal(model.isNew(), true);
- });
-
- QUnit.test('setting an alternative cid prefix', function(assert) {
- assert.expect(4);
- var Model = Backbone.Model.extend({
- cidPrefix: 'm'
- });
- var model = new Model();
-
- assert.equal(model.cid.charAt(0), 'm');
-
- model = new Backbone.Model();
- assert.equal(model.cid.charAt(0), 'c');
-
- var Collection = Backbone.Collection.extend({
- model: Model
- });
- var col = new Collection([{id: 'c5'}, {id: 'c6'}, {id: 'c7'}]);
-
- assert.equal(col.get('c6').cid.charAt(0), 'm');
- col.set([{id: 'c6', value: 'test'}], {
- merge: true,
- add: true,
- remove: false
- });
- assert.ok(col.get('c6').has('value'));
- });
-
- QUnit.test('set an empty string', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model({name: 'Model'});
- model.set({name: ''});
- assert.equal(model.get('name'), '');
- });
-
- QUnit.test('setting an object', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model({
- custom: {foo: 1}
- });
- model.on('change', function() {
- assert.ok(1);
- });
- model.set({
- custom: {foo: 1} // no change should be fired
- });
- model.set({
- custom: {foo: 2} // change event should be fired
- });
- });
-
- QUnit.test('clear', function(assert) {
- assert.expect(3);
- var changed;
- var model = new Backbone.Model({id: 1, name: 'Model'});
- model.on('change:name', function(){ changed = true; });
- model.on('change', function() {
- var changedAttrs = model.changedAttributes();
- assert.ok('name' in changedAttrs);
- });
- model.clear();
- assert.equal(changed, true);
- assert.equal(model.get('name'), undefined);
- });
-
- QUnit.test('defaults', function(assert) {
- assert.expect(9);
- var Defaulted = Backbone.Model.extend({
- defaults: {
- one: 1,
- two: 2
- }
- });
- var model = new Defaulted({two: undefined});
- assert.equal(model.get('one'), 1);
- assert.equal(model.get('two'), 2);
- model = new Defaulted({two: 3});
- assert.equal(model.get('one'), 1);
- assert.equal(model.get('two'), 3);
- Defaulted = Backbone.Model.extend({
- defaults: function() {
- return {
- one: 3,
- two: 4
- };
- }
- });
- model = new Defaulted({two: undefined});
- assert.equal(model.get('one'), 3);
- assert.equal(model.get('two'), 4);
- Defaulted = Backbone.Model.extend({
- defaults: {hasOwnProperty: true}
- });
- model = new Defaulted();
- assert.equal(model.get('hasOwnProperty'), true);
- model = new Defaulted({hasOwnProperty: undefined});
- assert.equal(model.get('hasOwnProperty'), true);
- model = new Defaulted({hasOwnProperty: false});
- assert.equal(model.get('hasOwnProperty'), false);
- });
-
- QUnit.test('change, hasChanged, changedAttributes, previous, previousAttributes', function(assert) {
- assert.expect(9);
- var model = new Backbone.Model({name: 'Tim', age: 10});
- assert.deepEqual(model.changedAttributes(), false);
- model.on('change', function() {
- assert.ok(model.hasChanged('name'), 'name changed');
- assert.ok(!model.hasChanged('age'), 'age did not');
- assert.ok(_.isEqual(model.changedAttributes(), {name: 'Rob'}), 'changedAttributes returns the changed attrs');
- assert.equal(model.previous('name'), 'Tim');
- assert.ok(_.isEqual(model.previousAttributes(), {name: 'Tim', age: 10}), 'previousAttributes is correct');
- });
- assert.equal(model.hasChanged(), false);
- assert.equal(model.hasChanged(undefined), false);
- model.set({name: 'Rob'});
- assert.equal(model.get('name'), 'Rob');
- });
-
- QUnit.test('changedAttributes', function(assert) {
- assert.expect(3);
- var model = new Backbone.Model({a: 'a', b: 'b'});
- assert.deepEqual(model.changedAttributes(), false);
- assert.equal(model.changedAttributes({a: 'a'}), false);
- assert.equal(model.changedAttributes({a: 'b'}).a, 'b');
- });
-
- QUnit.test('change with options', function(assert) {
- assert.expect(2);
- var value;
- var model = new Backbone.Model({name: 'Rob'});
- model.on('change', function(m, options) {
- value = options.prefix + m.get('name');
- });
- model.set({name: 'Bob'}, {prefix: 'Mr. '});
- assert.equal(value, 'Mr. Bob');
- model.set({name: 'Sue'}, {prefix: 'Ms. '});
- assert.equal(value, 'Ms. Sue');
- });
-
- QUnit.test('change after initialize', function(assert) {
- assert.expect(1);
- var changed = 0;
- var attrs = {id: 1, label: 'c'};
- var obj = new Backbone.Model(attrs);
- obj.on('change', function() { changed += 1; });
- obj.set(attrs);
- assert.equal(changed, 0);
- });
-
- QUnit.test('save within change event', function(assert) {
- assert.expect(1);
- var env = this;
- var model = new Backbone.Model({firstName: 'Taylor', lastName: 'Swift'});
- model.url = '/test';
- model.on('change', function() {
- model.save();
- assert.ok(_.isEqual(env.syncArgs.model, model));
- });
- model.set({lastName: 'Hicks'});
- });
-
- QUnit.test('validate after save', function(assert) {
- assert.expect(2);
- var lastError, model = new Backbone.Model();
- model.validate = function(attrs) {
- if (attrs.admin) return "Can't change admin status.";
- };
- model.sync = function(method, m, options) {
- options.success.call(this, {admin: true});
- };
- model.on('invalid', function(m, error) {
- lastError = error;
- });
- model.save(null);
-
- assert.equal(lastError, "Can't change admin status.");
- assert.equal(model.validationError, "Can't change admin status.");
- });
-
- QUnit.test('save', function(assert) {
- assert.expect(2);
- doc.save({title: 'Henry V'});
- assert.equal(this.syncArgs.method, 'update');
- assert.ok(_.isEqual(this.syncArgs.model, doc));
- });
-
- QUnit.test('save, fetch, destroy triggers error event when an error occurs', function(assert) {
- assert.expect(3);
- var model = new Backbone.Model();
- model.on('error', function() {
- assert.ok(true);
- });
- model.sync = function(method, m, options) {
- options.error();
- };
- model.save({data: 2, id: 1});
- model.fetch();
- model.destroy();
- });
-
- QUnit.test('#3283 - save, fetch, destroy calls success with context', function(assert) {
- assert.expect(3);
- var model = new Backbone.Model();
- var obj = {};
- var options = {
- context: obj,
- success: function() {
- assert.equal(this, obj);
- }
- };
- model.sync = function(method, m, opts) {
- opts.success.call(opts.context);
- };
- model.save({data: 2, id: 1}, options);
- model.fetch(options);
- model.destroy(options);
- });
-
- QUnit.test('#3283 - save, fetch, destroy calls error with context', function(assert) {
- assert.expect(3);
- var model = new Backbone.Model();
- var obj = {};
- var options = {
- context: obj,
- error: function() {
- assert.equal(this, obj);
- }
- };
- model.sync = function(method, m, opts) {
- opts.error.call(opts.context);
- };
- model.save({data: 2, id: 1}, options);
- model.fetch(options);
- model.destroy(options);
- });
-
- QUnit.test('#3470 - save and fetch with parse false', function(assert) {
- assert.expect(2);
- var i = 0;
- var model = new Backbone.Model();
- model.parse = function() {
- assert.ok(false);
- };
- model.sync = function(method, m, options) {
- options.success({i: ++i});
- };
- model.fetch({parse: false});
- assert.equal(model.get('i'), i);
- model.save(null, {parse: false});
- assert.equal(model.get('i'), i);
- });
-
- QUnit.test('save with PATCH', function(assert) {
- doc.clear().set({id: 1, a: 1, b: 2, c: 3, d: 4});
- doc.save();
- assert.equal(this.syncArgs.method, 'update');
- assert.equal(this.syncArgs.options.attrs, undefined);
-
- doc.save({b: 2, d: 4}, {patch: true});
- assert.equal(this.syncArgs.method, 'patch');
- assert.equal(_.size(this.syncArgs.options.attrs), 2);
- assert.equal(this.syncArgs.options.attrs.d, 4);
- assert.equal(this.syncArgs.options.attrs.a, undefined);
- assert.equal(this.ajaxSettings.data, '{"b":2,"d":4}');
- });
-
- QUnit.test('save with PATCH and different attrs', function(assert) {
- doc.clear().save({b: 2, d: 4}, {patch: true, attrs: {B: 1, D: 3}});
- assert.equal(this.syncArgs.options.attrs.D, 3);
- assert.equal(this.syncArgs.options.attrs.d, undefined);
- assert.equal(this.ajaxSettings.data, '{"B":1,"D":3}');
- assert.deepEqual(doc.attributes, {b: 2, d: 4});
- });
-
- QUnit.test('save in positional style', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.sync = function(method, m, options) {
- options.success();
- };
- model.save('title', 'Twelfth Night');
- assert.equal(model.get('title'), 'Twelfth Night');
- });
-
- QUnit.test('save with non-object success response', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model();
- model.sync = function(method, m, options) {
- options.success('', options);
- options.success(null, options);
- };
- model.save({testing: 'empty'}, {
- success: function(m) {
- assert.deepEqual(m.attributes, {testing: 'empty'});
- }
- });
- });
-
- QUnit.test('save with wait and supplied id', function(assert) {
- var Model = Backbone.Model.extend({
- urlRoot: '/collection'
- });
- var model = new Model();
- model.save({id: 42}, {wait: true});
- assert.equal(this.ajaxSettings.url, '/collection/42');
- });
-
- QUnit.test('save will pass extra options to success callback', function(assert) {
- assert.expect(1);
- var SpecialSyncModel = Backbone.Model.extend({
- sync: function(method, m, options) {
- _.extend(options, {specialSync: true});
- return Backbone.Model.prototype.sync.call(this, method, m, options);
- },
- urlRoot: '/test'
- });
-
- var model = new SpecialSyncModel();
-
- var onSuccess = function(m, response, options) {
- assert.ok(options.specialSync, 'Options were passed correctly to callback');
- };
-
- model.save(null, {success: onSuccess});
- this.ajaxSettings.success();
- });
-
- QUnit.test('fetch', function(assert) {
- assert.expect(2);
- doc.fetch();
- assert.equal(this.syncArgs.method, 'read');
- assert.ok(_.isEqual(this.syncArgs.model, doc));
- });
-
- QUnit.test('fetch will pass extra options to success callback', function(assert) {
- assert.expect(1);
- var SpecialSyncModel = Backbone.Model.extend({
- sync: function(method, m, options) {
- _.extend(options, {specialSync: true});
- return Backbone.Model.prototype.sync.call(this, method, m, options);
- },
- urlRoot: '/test'
- });
-
- var model = new SpecialSyncModel();
-
- var onSuccess = function(m, response, options) {
- assert.ok(options.specialSync, 'Options were passed correctly to callback');
- };
-
- model.fetch({success: onSuccess});
- this.ajaxSettings.success();
- });
-
- QUnit.test('destroy', function(assert) {
- assert.expect(3);
- doc.destroy();
- assert.equal(this.syncArgs.method, 'delete');
- assert.ok(_.isEqual(this.syncArgs.model, doc));
-
- var newModel = new Backbone.Model;
- assert.equal(newModel.destroy(), false);
- });
-
- QUnit.test('destroy will pass extra options to success callback', function(assert) {
- assert.expect(1);
- var SpecialSyncModel = Backbone.Model.extend({
- sync: function(method, m, options) {
- _.extend(options, {specialSync: true});
- return Backbone.Model.prototype.sync.call(this, method, m, options);
- },
- urlRoot: '/test'
- });
-
- var model = new SpecialSyncModel({id: 'id'});
-
- var onSuccess = function(m, response, options) {
- assert.ok(options.specialSync, 'Options were passed correctly to callback');
- };
-
- model.destroy({success: onSuccess});
- this.ajaxSettings.success();
- });
-
- QUnit.test('non-persisted destroy', function(assert) {
- assert.expect(1);
- var a = new Backbone.Model({foo: 1, bar: 2, baz: 3});
- a.sync = function() { throw 'should not be called'; };
- a.destroy();
- assert.ok(true, 'non-persisted model should not call sync');
- });
-
- QUnit.test('validate', function(assert) {
- var lastError;
- var model = new Backbone.Model();
- model.validate = function(attrs) {
- if (attrs.admin !== this.get('admin')) return "Can't change admin status.";
- };
- model.on('invalid', function(m, error) {
- lastError = error;
- });
- var result = model.set({a: 100});
- assert.equal(result, model);
- assert.equal(model.get('a'), 100);
- assert.equal(lastError, undefined);
- result = model.set({admin: true});
- assert.equal(model.get('admin'), true);
- result = model.set({a: 200, admin: false}, {validate: true});
- assert.equal(lastError, "Can't change admin status.");
- assert.equal(result, false);
- assert.equal(model.get('a'), 100);
- });
-
- QUnit.test('validate on unset and clear', function(assert) {
- assert.expect(6);
- var error;
- var model = new Backbone.Model({name: 'One'});
- model.validate = function(attrs) {
- if (!attrs.name) {
- error = true;
- return 'No thanks.';
- }
- };
- model.set({name: 'Two'});
- assert.equal(model.get('name'), 'Two');
- assert.equal(error, undefined);
- model.unset('name', {validate: true});
- assert.equal(error, true);
- assert.equal(model.get('name'), 'Two');
- model.clear({validate: true});
- assert.equal(model.get('name'), 'Two');
- delete model.validate;
- model.clear();
- assert.equal(model.get('name'), undefined);
- });
-
- QUnit.test('validate with error callback', function(assert) {
- assert.expect(8);
- var lastError, boundError;
- var model = new Backbone.Model();
- model.validate = function(attrs) {
- if (attrs.admin) return "Can't change admin status.";
- };
- model.on('invalid', function(m, error) {
- boundError = true;
- });
- var result = model.set({a: 100}, {validate: true});
- assert.equal(result, model);
- assert.equal(model.get('a'), 100);
- assert.equal(model.validationError, null);
- assert.equal(boundError, undefined);
- result = model.set({a: 200, admin: true}, {validate: true});
- assert.equal(result, false);
- assert.equal(model.get('a'), 100);
- assert.equal(model.validationError, "Can't change admin status.");
- assert.equal(boundError, true);
- });
-
- QUnit.test('defaults always extend attrs (#459)', function(assert) {
- assert.expect(2);
- var Defaulted = Backbone.Model.extend({
- defaults: {one: 1},
- initialize: function(attrs, opts) {
- assert.equal(this.attributes.one, 1);
- }
- });
- var providedattrs = new Defaulted({});
- var emptyattrs = new Defaulted();
- });
-
- QUnit.test('Inherit class properties', function(assert) {
- assert.expect(6);
- var Parent = Backbone.Model.extend({
- instancePropSame: function() {},
- instancePropDiff: function() {}
- }, {
- classProp: function() {}
- });
- var Child = Parent.extend({
- instancePropDiff: function() {}
- });
-
- var adult = new Parent;
- var kid = new Child;
-
- assert.equal(Child.classProp, Parent.classProp);
- assert.notEqual(Child.classProp, undefined);
-
- assert.equal(kid.instancePropSame, adult.instancePropSame);
- assert.notEqual(kid.instancePropSame, undefined);
-
- assert.notEqual(Child.prototype.instancePropDiff, Parent.prototype.instancePropDiff);
- assert.notEqual(Child.prototype.instancePropDiff, undefined);
- });
-
- QUnit.test("Nested change events don't clobber previous attributes", function(assert) {
- assert.expect(4);
- new Backbone.Model()
- .on('change:state', function(m, newState) {
- assert.equal(m.previous('state'), undefined);
- assert.equal(newState, 'hello');
- // Fire a nested change event.
- m.set({other: 'whatever'});
- })
- .on('change:state', function(m, newState) {
- assert.equal(m.previous('state'), undefined);
- assert.equal(newState, 'hello');
- })
- .set({state: 'hello'});
- });
-
- QUnit.test('hasChanged/set should use same comparison', function(assert) {
- assert.expect(2);
- var changed = 0, model = new Backbone.Model({a: null});
- model.on('change', function() {
- assert.ok(this.hasChanged('a'));
- })
- .on('change:a', function() {
- changed++;
- })
- .set({a: undefined});
- assert.equal(changed, 1);
- });
-
- QUnit.test('#582, #425, change:attribute callbacks should fire after all changes have occurred', function(assert) {
- assert.expect(9);
- var model = new Backbone.Model;
-
- var assertion = function() {
- assert.equal(model.get('a'), 'a');
- assert.equal(model.get('b'), 'b');
- assert.equal(model.get('c'), 'c');
- };
-
- model.on('change:a', assertion);
- model.on('change:b', assertion);
- model.on('change:c', assertion);
-
- model.set({a: 'a', b: 'b', c: 'c'});
- });
-
- QUnit.test('#871, set with attributes property', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.set({attributes: true});
- assert.ok(model.has('attributes'));
- });
-
- QUnit.test('set value regardless of equality/change', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model({x: []});
- var a = [];
- model.set({x: a});
- assert.ok(model.get('x') === a);
- });
-
- QUnit.test('set same value does not trigger change', function(assert) {
- assert.expect(0);
- var model = new Backbone.Model({x: 1});
- model.on('change change:x', function() { assert.ok(false); });
- model.set({x: 1});
- model.set({x: 1});
- });
-
- QUnit.test('unset does not fire a change for undefined attributes', function(assert) {
- assert.expect(0);
- var model = new Backbone.Model({x: undefined});
- model.on('change:x', function(){ assert.ok(false); });
- model.unset('x');
- });
-
- QUnit.test('set: undefined values', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model({x: undefined});
- assert.ok('x' in model.attributes);
- });
-
- QUnit.test('hasChanged works outside of change events, and true within', function(assert) {
- assert.expect(6);
- var model = new Backbone.Model({x: 1});
- model.on('change:x', function() {
- assert.ok(model.hasChanged('x'));
- assert.equal(model.get('x'), 1);
- });
- model.set({x: 2}, {silent: true});
- assert.ok(model.hasChanged());
- assert.equal(model.hasChanged('x'), true);
- model.set({x: 1});
- assert.ok(model.hasChanged());
- assert.equal(model.hasChanged('x'), true);
- });
-
- QUnit.test('hasChanged gets cleared on the following set', function(assert) {
- assert.expect(4);
- var model = new Backbone.Model;
- model.set({x: 1});
- assert.ok(model.hasChanged());
- model.set({x: 1});
- assert.ok(!model.hasChanged());
- model.set({x: 2});
- assert.ok(model.hasChanged());
- model.set({});
- assert.ok(!model.hasChanged());
- });
-
- QUnit.test('save with `wait` succeeds without `validate`', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.url = '/test';
- model.save({x: 1}, {wait: true});
- assert.ok(this.syncArgs.model === model);
- });
-
- QUnit.test("save without `wait` doesn't set invalid attributes", function(assert) {
- var model = new Backbone.Model();
- model.validate = function() { return 1; };
- model.save({a: 1});
- assert.equal(model.get('a'), void 0);
- });
-
- QUnit.test("save doesn't validate twice", function(assert) {
- var model = new Backbone.Model();
- var times = 0;
- model.sync = function() {};
- model.validate = function() { ++times; };
- model.save({});
- assert.equal(times, 1);
- });
-
- QUnit.test('`hasChanged` for falsey keys', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model();
- model.set({x: true}, {silent: true});
- assert.ok(!model.hasChanged(0));
- assert.ok(!model.hasChanged(''));
- });
-
- QUnit.test('`previous` for falsey keys', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model({'0': true, '': true});
- model.set({'0': false, '': false}, {silent: true});
- assert.equal(model.previous(0), true);
- assert.equal(model.previous(''), true);
- });
-
- QUnit.test('`save` with `wait` sends correct attributes', function(assert) {
- assert.expect(5);
- var changed = 0;
- var model = new Backbone.Model({x: 1, y: 2});
- model.url = '/test';
- model.on('change:x', function() { changed++; });
- model.save({x: 3}, {wait: true});
- assert.deepEqual(JSON.parse(this.ajaxSettings.data), {x: 3, y: 2});
- assert.equal(model.get('x'), 1);
- assert.equal(changed, 0);
- this.syncArgs.options.success({});
- assert.equal(model.get('x'), 3);
- assert.equal(changed, 1);
- });
-
- QUnit.test("a failed `save` with `wait` doesn't leave attributes behind", function(assert) {
- assert.expect(1);
- var model = new Backbone.Model;
- model.url = '/test';
- model.save({x: 1}, {wait: true});
- assert.equal(model.get('x'), void 0);
- });
-
- QUnit.test('#1030 - `save` with `wait` results in correct attributes if success is called during sync', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model({x: 1, y: 2});
- model.sync = function(method, m, options) {
- options.success();
- };
- model.on('change:x', function() { assert.ok(true); });
- model.save({x: 3}, {wait: true});
- assert.equal(model.get('x'), 3);
- });
-
- QUnit.test('save with wait validates attributes', function(assert) {
- var model = new Backbone.Model();
- model.url = '/test';
- model.validate = function() { assert.ok(true); };
- model.save({x: 1}, {wait: true});
- });
-
- QUnit.test('save turns on parse flag', function(assert) {
- var Model = Backbone.Model.extend({
- sync: function(method, m, options) { assert.ok(options.parse); }
- });
- new Model().save();
- });
-
- QUnit.test("nested `set` during `'change:attr'`", function(assert) {
- assert.expect(2);
- var events = [];
- var model = new Backbone.Model();
- model.on('all', function(event) { events.push(event); });
- model.on('change', function() {
- model.set({z: true}, {silent: true});
- });
- model.on('change:x', function() {
- model.set({y: true});
- });
- model.set({x: true});
- assert.deepEqual(events, ['change:y', 'change:x', 'change']);
- events = [];
- model.set({z: true});
- assert.deepEqual(events, []);
- });
-
- QUnit.test('nested `change` only fires once', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.on('change', function() {
- assert.ok(true);
- model.set({x: true});
- });
- model.set({x: true});
- });
-
- QUnit.test("nested `set` during `'change'`", function(assert) {
- assert.expect(6);
- var count = 0;
- var model = new Backbone.Model();
- model.on('change', function() {
- switch (count++) {
- case 0:
- assert.deepEqual(this.changedAttributes(), {x: true});
- assert.equal(model.previous('x'), undefined);
- model.set({y: true});
- break;
- case 1:
- assert.deepEqual(this.changedAttributes(), {x: true, y: true});
- assert.equal(model.previous('x'), undefined);
- model.set({z: true});
- break;
- case 2:
- assert.deepEqual(this.changedAttributes(), {x: true, y: true, z: true});
- assert.equal(model.previous('y'), undefined);
- break;
- default:
- assert.ok(false);
- }
- });
- model.set({x: true});
- });
-
- QUnit.test('nested `change` with silent', function(assert) {
- assert.expect(3);
- var count = 0;
- var model = new Backbone.Model();
- model.on('change:y', function() { assert.ok(false); });
- model.on('change', function() {
- switch (count++) {
- case 0:
- assert.deepEqual(this.changedAttributes(), {x: true});
- model.set({y: true}, {silent: true});
- model.set({z: true});
- break;
- case 1:
- assert.deepEqual(this.changedAttributes(), {x: true, y: true, z: true});
- break;
- case 2:
- assert.deepEqual(this.changedAttributes(), {z: false});
- break;
- default:
- assert.ok(false);
- }
- });
- model.set({x: true});
- model.set({z: false});
- });
-
- QUnit.test('nested `change:attr` with silent', function(assert) {
- assert.expect(0);
- var model = new Backbone.Model();
- model.on('change:y', function(){ assert.ok(false); });
- model.on('change', function() {
- model.set({y: true}, {silent: true});
- model.set({z: true});
- });
- model.set({x: true});
- });
-
- QUnit.test('multiple nested changes with silent', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.on('change:x', function() {
- model.set({y: 1}, {silent: true});
- model.set({y: 2});
- });
- model.on('change:y', function(m, val) {
- assert.equal(val, 2);
- });
- model.set({x: true});
- });
-
- QUnit.test('multiple nested changes with silent', function(assert) {
- assert.expect(1);
- var changes = [];
- var model = new Backbone.Model();
- model.on('change:b', function(m, val) { changes.push(val); });
- model.on('change', function() {
- model.set({b: 1});
- });
- model.set({b: 0});
- assert.deepEqual(changes, [0, 1]);
- });
-
- QUnit.test('basic silent change semantics', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model;
- model.set({x: 1});
- model.on('change', function(){ assert.ok(true); });
- model.set({x: 2}, {silent: true});
- model.set({x: 1});
- });
-
- QUnit.test('nested set multiple times', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.on('change:b', function() {
- assert.ok(true);
- });
- model.on('change:a', function() {
- model.set({b: true});
- model.set({b: true});
- });
- model.set({a: true});
- });
-
- QUnit.test('#1122 - clear does not alter options.', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- var options = {};
- model.clear(options);
- assert.ok(!options.unset);
- });
-
- QUnit.test('#1122 - unset does not alter options.', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- var options = {};
- model.unset('x', options);
- assert.ok(!options.unset);
- });
-
- QUnit.test('#1355 - `options` is passed to success callbacks', function(assert) {
- assert.expect(3);
- var model = new Backbone.Model();
- var opts = {
- success: function( m, resp, options ) {
- assert.ok(options);
- }
- };
- model.sync = function(method, m, options) {
- options.success();
- };
- model.save({id: 1}, opts);
- model.fetch(opts);
- model.destroy(opts);
- });
-
- QUnit.test("#1412 - Trigger 'sync' event.", function(assert) {
- assert.expect(3);
- var model = new Backbone.Model({id: 1});
- model.sync = function(method, m, options) { options.success(); };
- model.on('sync', function(){ assert.ok(true); });
- model.fetch();
- model.save();
- model.destroy();
- });
-
- QUnit.test('#1365 - Destroy: New models execute success callback.', function(assert) {
- var done = assert.async();
- assert.expect(2);
- new Backbone.Model()
- .on('sync', function() { assert.ok(false); })
- .on('destroy', function(){ assert.ok(true); })
- .destroy({success: function(){
- assert.ok(true);
- done();
- }});
- });
-
- QUnit.test('#1433 - Save: An invalid model cannot be persisted.', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model;
- model.validate = function(){ return 'invalid'; };
- model.sync = function(){ assert.ok(false); };
- assert.strictEqual(model.save(), false);
- });
-
- QUnit.test("#1377 - Save without attrs triggers 'error'.", function(assert) {
- assert.expect(1);
- var Model = Backbone.Model.extend({
- url: '/test/',
- sync: function(method, m, options){ options.success(); },
- validate: function(){ return 'invalid'; }
- });
- var model = new Model({id: 1});
- model.on('invalid', function(){ assert.ok(true); });
- model.save();
- });
-
- QUnit.test('#1545 - `undefined` can be passed to a model constructor without coersion', function(assert) {
- var Model = Backbone.Model.extend({
- defaults: {one: 1},
- initialize: function(attrs, opts) {
- assert.equal(attrs, undefined);
- }
- });
- var emptyattrs = new Model();
- var undefinedattrs = new Model(undefined);
- });
-
- QUnit.test('#1478 - Model `save` does not trigger change on unchanged attributes', function(assert) {
- var done = assert.async();
- assert.expect(0);
- var Model = Backbone.Model.extend({
- sync: function(method, m, options) {
- setTimeout(function(){
- options.success();
- done();
- }, 0);
- }
- });
- new Model({x: true})
- .on('change:x', function(){ assert.ok(false); })
- .save(null, {wait: true});
- });
-
- QUnit.test('#1664 - Changing from one value, silently to another, back to original triggers a change.', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model({x: 1});
- model.on('change:x', function() { assert.ok(true); });
- model.set({x: 2}, {silent: true});
- model.set({x: 3}, {silent: true});
- model.set({x: 1});
- });
-
- QUnit.test('#1664 - multiple silent changes nested inside a change event', function(assert) {
- assert.expect(2);
- var changes = [];
- var model = new Backbone.Model();
- model.on('change', function() {
- model.set({a: 'c'}, {silent: true});
- model.set({b: 2}, {silent: true});
- model.unset('c', {silent: true});
- });
- model.on('change:a change:b change:c', function(m, val) { changes.push(val); });
- model.set({a: 'a', b: 1, c: 'item'});
- assert.deepEqual(changes, ['a', 1, 'item']);
- assert.deepEqual(model.attributes, {a: 'c', b: 2});
- });
-
- QUnit.test('#1791 - `attributes` is available for `parse`', function(assert) {
- var Model = Backbone.Model.extend({
- parse: function() { this.has('a'); } // shouldn't throw an error
- });
- var model = new Model(null, {parse: true});
- assert.expect(0);
- });
-
- QUnit.test('silent changes in last `change` event back to original triggers change', function(assert) {
- assert.expect(2);
- var changes = [];
- var model = new Backbone.Model();
- model.on('change:a change:b change:c', function(m, val) { changes.push(val); });
- model.on('change', function() {
- model.set({a: 'c'}, {silent: true});
- });
- model.set({a: 'a'});
- assert.deepEqual(changes, ['a']);
- model.set({a: 'a'});
- assert.deepEqual(changes, ['a', 'a']);
- });
-
- QUnit.test('#1943 change calculations should use _.isEqual', function(assert) {
- var model = new Backbone.Model({a: {key: 'value'}});
- model.set('a', {key: 'value'}, {silent: true});
- assert.equal(model.changedAttributes(), false);
- });
-
- QUnit.test('#1964 - final `change` event is always fired, regardless of interim changes', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.on('change:property', function() {
- model.set('property', 'bar');
- });
- model.on('change', function() {
- assert.ok(true);
- });
- model.set('property', 'foo');
- });
-
- QUnit.test('isValid', function(assert) {
- var model = new Backbone.Model({valid: true});
- model.validate = function(attrs) {
- if (!attrs.valid) return 'invalid';
- };
- assert.equal(model.isValid(), true);
- assert.equal(model.set({valid: false}, {validate: true}), false);
- assert.equal(model.isValid(), true);
- model.set({valid: false});
- assert.equal(model.isValid(), false);
- assert.ok(!model.set('valid', false, {validate: true}));
- });
-
- QUnit.test('#1179 - isValid returns true in the absence of validate.', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.validate = null;
- assert.ok(model.isValid());
- });
-
- QUnit.test('#1961 - Creating a model with {validate:true} will call validate and use the error callback', function(assert) {
- var Model = Backbone.Model.extend({
- validate: function(attrs) {
- if (attrs.id === 1) return "This shouldn't happen";
- }
- });
- var model = new Model({id: 1}, {validate: true});
- assert.equal(model.validationError, "This shouldn't happen");
- });
-
- QUnit.test('toJSON receives attrs during save(..., {wait: true})', function(assert) {
- assert.expect(1);
- var Model = Backbone.Model.extend({
- url: '/test',
- toJSON: function() {
- assert.strictEqual(this.attributes.x, 1);
- return _.clone(this.attributes);
- }
- });
- var model = new Model;
- model.save({x: 1}, {wait: true});
- });
-
- QUnit.test('#2034 - nested set with silent only triggers one change', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model();
- model.on('change', function() {
- model.set({b: true}, {silent: true});
- assert.ok(true);
- });
- model.set({a: true});
- });
-
- QUnit.test('#3778 - id will only be updated if it is set', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model({id: 1});
- model.id = 2;
- model.set({foo: 'bar'});
- assert.equal(model.id, 2);
- model.set({id: 3});
- assert.equal(model.id, 3);
- });
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js
deleted file mode 100644
index 9968f688..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/noconflict.js
+++ /dev/null
@@ -1,13 +0,0 @@
-(function() {
-
- QUnit.module('Backbone.noConflict');
-
- QUnit.test('noConflict', function(assert) {
- assert.expect(2);
- var noconflictBackbone = Backbone.noConflict();
- assert.equal(window.Backbone, undefined, 'Returned window.Backbone');
- window.Backbone = noconflictBackbone;
- assert.equal(window.Backbone, noconflictBackbone, 'Backbone is still pointing to the original Backbone');
- });
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/router.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/router.js
deleted file mode 100644
index 13110c45..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/router.js
+++ /dev/null
@@ -1,1062 +0,0 @@
-(function() {
-
- var router = null;
- var location = null;
- var lastRoute = null;
- var lastArgs = [];
-
- var onRoute = function(routerParam, route, args) {
- lastRoute = route;
- lastArgs = args;
- };
-
- var Location = function(href) {
- this.replace(href);
- };
-
- _.extend(Location.prototype, {
-
- parser: document.createElement('a'),
-
- replace: function(href) {
- this.parser.href = href;
- _.extend(this, _.pick(this.parser,
- 'href',
- 'hash',
- 'host',
- 'search',
- 'fragment',
- 'pathname',
- 'protocol'
- ));
- // In IE, anchor.pathname does not contain a leading slash though
- // window.location.pathname does.
- if (!/^\//.test(this.pathname)) this.pathname = '/' + this.pathname;
- },
-
- toString: function() {
- return this.href;
- }
-
- });
-
- QUnit.module('Backbone.Router', {
-
- setup: function() {
- location = new Location('http://example.com');
- Backbone.history = _.extend(new Backbone.History, {location: location});
- router = new Router({testing: 101});
- Backbone.history.interval = 9;
- Backbone.history.start({pushState: false});
- lastRoute = null;
- lastArgs = [];
- Backbone.history.on('route', onRoute);
- },
-
- teardown: function() {
- Backbone.history.stop();
- Backbone.history.off('route', onRoute);
- }
-
- });
-
- var ExternalObject = {
- value: 'unset',
-
- routingFunction: function(value) {
- this.value = value;
- }
- };
- ExternalObject.routingFunction = _.bind(ExternalObject.routingFunction, ExternalObject);
-
- var Router = Backbone.Router.extend({
-
- count: 0,
-
- routes: {
- 'noCallback': 'noCallback',
- 'counter': 'counter',
- 'search/:query': 'search',
- 'search/:query/p:page': 'search',
- 'charñ': 'charUTF',
- 'char%C3%B1': 'charEscaped',
- 'contacts': 'contacts',
- 'contacts/new': 'newContact',
- 'contacts/:id': 'loadContact',
- 'route-event/:arg': 'routeEvent',
- 'optional(/:item)': 'optionalItem',
- 'named/optional/(y:z)': 'namedOptional',
- 'splat/*args/end': 'splat',
- ':repo/compare/*from...*to': 'github',
- 'decode/:named/*splat': 'decode',
- '*first/complex-*part/*rest': 'complex',
- 'query/:entity': 'query',
- 'function/:value': ExternalObject.routingFunction,
- '*anything': 'anything'
- },
-
- initialize: function(options) {
- this.testing = options.testing;
- this.route('implicit', 'implicit');
- },
-
- counter: function() {
- this.count++;
- },
-
- implicit: function() {
- this.count++;
- },
-
- search: function(query, page) {
- this.query = query;
- this.page = page;
- },
-
- charUTF: function() {
- this.charType = 'UTF';
- },
-
- charEscaped: function() {
- this.charType = 'escaped';
- },
-
- contacts: function(){
- this.contact = 'index';
- },
-
- newContact: function(){
- this.contact = 'new';
- },
-
- loadContact: function(){
- this.contact = 'load';
- },
-
- optionalItem: function(arg){
- this.arg = arg !== void 0 ? arg : null;
- },
-
- splat: function(args) {
- this.args = args;
- },
-
- github: function(repo, from, to) {
- this.repo = repo;
- this.from = from;
- this.to = to;
- },
-
- complex: function(first, part, rest) {
- this.first = first;
- this.part = part;
- this.rest = rest;
- },
-
- query: function(entity, args) {
- this.entity = entity;
- this.queryArgs = args;
- },
-
- anything: function(whatever) {
- this.anything = whatever;
- },
-
- namedOptional: function(z) {
- this.z = z;
- },
-
- decode: function(named, path) {
- this.named = named;
- this.path = path;
- },
-
- routeEvent: function(arg) {
- }
-
- });
-
- QUnit.test('initialize', function(assert) {
- assert.expect(1);
- assert.equal(router.testing, 101);
- });
-
- QUnit.test('routes (simple)', function(assert) {
- assert.expect(4);
- location.replace('http://example.com#search/news');
- Backbone.history.checkUrl();
- assert.equal(router.query, 'news');
- assert.equal(router.page, void 0);
- assert.equal(lastRoute, 'search');
- assert.equal(lastArgs[0], 'news');
- });
-
- QUnit.test('routes (simple, but unicode)', function(assert) {
- assert.expect(4);
- location.replace('http://example.com#search/теÑÑ‚');
- Backbone.history.checkUrl();
- assert.equal(router.query, 'теÑÑ‚');
- assert.equal(router.page, void 0);
- assert.equal(lastRoute, 'search');
- assert.equal(lastArgs[0], 'теÑÑ‚');
- });
-
- QUnit.test('routes (two part)', function(assert) {
- assert.expect(2);
- location.replace('http://example.com#search/nyc/p10');
- Backbone.history.checkUrl();
- assert.equal(router.query, 'nyc');
- assert.equal(router.page, '10');
- });
-
- QUnit.test('routes via navigate', function(assert) {
- assert.expect(2);
- Backbone.history.navigate('search/manhattan/p20', {trigger: true});
- assert.equal(router.query, 'manhattan');
- assert.equal(router.page, '20');
- });
-
- QUnit.test('routes via navigate with params', function(assert) {
- assert.expect(1);
- Backbone.history.navigate('query/test?a=b', {trigger: true});
- assert.equal(router.queryArgs, 'a=b');
- });
-
- QUnit.test('routes via navigate for backwards-compatibility', function(assert) {
- assert.expect(2);
- Backbone.history.navigate('search/manhattan/p20', true);
- assert.equal(router.query, 'manhattan');
- assert.equal(router.page, '20');
- });
-
- QUnit.test('reports matched route via nagivate', function(assert) {
- assert.expect(1);
- assert.ok(Backbone.history.navigate('search/manhattan/p20', true));
- });
-
- QUnit.test('route precedence via navigate', function(assert){
- assert.expect(6);
- // check both 0.9.x and backwards-compatibility options
- _.each([{trigger: true}, true], function( options ){
- Backbone.history.navigate('contacts', options);
- assert.equal(router.contact, 'index');
- Backbone.history.navigate('contacts/new', options);
- assert.equal(router.contact, 'new');
- Backbone.history.navigate('contacts/foo', options);
- assert.equal(router.contact, 'load');
- });
- });
-
- QUnit.test('loadUrl is not called for identical routes.', function(assert) {
- assert.expect(0);
- Backbone.history.loadUrl = function(){ assert.ok(false); };
- location.replace('http://example.com#route');
- Backbone.history.navigate('route');
- Backbone.history.navigate('/route');
- Backbone.history.navigate('/route');
- });
-
- QUnit.test('use implicit callback if none provided', function(assert) {
- assert.expect(1);
- router.count = 0;
- router.navigate('implicit', {trigger: true});
- assert.equal(router.count, 1);
- });
-
- QUnit.test('routes via navigate with {replace: true}', function(assert) {
- assert.expect(1);
- location.replace('http://example.com#start_here');
- Backbone.history.checkUrl();
- location.replace = function(href) {
- assert.strictEqual(href, new Location('http://example.com#end_here').href);
- };
- Backbone.history.navigate('end_here', {replace: true});
- });
-
- QUnit.test('routes (splats)', function(assert) {
- assert.expect(1);
- location.replace('http://example.com#splat/long-list/of/splatted_99args/end');
- Backbone.history.checkUrl();
- assert.equal(router.args, 'long-list/of/splatted_99args');
- });
-
- QUnit.test('routes (github)', function(assert) {
- assert.expect(3);
- location.replace('http://example.com#backbone/compare/1.0...braddunbar:with/slash');
- Backbone.history.checkUrl();
- assert.equal(router.repo, 'backbone');
- assert.equal(router.from, '1.0');
- assert.equal(router.to, 'braddunbar:with/slash');
- });
-
- QUnit.test('routes (optional)', function(assert) {
- assert.expect(2);
- location.replace('http://example.com#optional');
- Backbone.history.checkUrl();
- assert.ok(!router.arg);
- location.replace('http://example.com#optional/thing');
- Backbone.history.checkUrl();
- assert.equal(router.arg, 'thing');
- });
-
- QUnit.test('routes (complex)', function(assert) {
- assert.expect(3);
- location.replace('http://example.com#one/two/three/complex-part/four/five/six/seven');
- Backbone.history.checkUrl();
- assert.equal(router.first, 'one/two/three');
- assert.equal(router.part, 'part');
- assert.equal(router.rest, 'four/five/six/seven');
- });
-
- QUnit.test('routes (query)', function(assert) {
- assert.expect(5);
- location.replace('http://example.com#query/mandel?a=b&c=d');
- Backbone.history.checkUrl();
- assert.equal(router.entity, 'mandel');
- assert.equal(router.queryArgs, 'a=b&c=d');
- assert.equal(lastRoute, 'query');
- assert.equal(lastArgs[0], 'mandel');
- assert.equal(lastArgs[1], 'a=b&c=d');
- });
-
- QUnit.test('routes (anything)', function(assert) {
- assert.expect(1);
- location.replace('http://example.com#doesnt-match-a-route');
- Backbone.history.checkUrl();
- assert.equal(router.anything, 'doesnt-match-a-route');
- });
-
- QUnit.test('routes (function)', function(assert) {
- assert.expect(3);
- router.on('route', function(name) {
- assert.ok(name === '');
- });
- assert.equal(ExternalObject.value, 'unset');
- location.replace('http://example.com#function/set');
- Backbone.history.checkUrl();
- assert.equal(ExternalObject.value, 'set');
- });
-
- QUnit.test('Decode named parameters, not splats.', function(assert) {
- assert.expect(2);
- location.replace('http://example.com#decode/a%2Fb/c%2Fd/e');
- Backbone.history.checkUrl();
- assert.strictEqual(router.named, 'a/b');
- assert.strictEqual(router.path, 'c/d/e');
- });
-
- QUnit.test("fires event when router doesn't have callback on it", function(assert) {
- assert.expect(1);
- router.on('route:noCallback', function(){ assert.ok(true); });
- location.replace('http://example.com#noCallback');
- Backbone.history.checkUrl();
- });
-
- QUnit.test('No events are triggered if #execute returns false.', function(assert) {
- assert.expect(1);
- var MyRouter = Backbone.Router.extend({
-
- routes: {
- foo: function() {
- assert.ok(true);
- }
- },
-
- execute: function(callback, args) {
- callback.apply(this, args);
- return false;
- }
-
- });
-
- var myRouter = new MyRouter;
-
- myRouter.on('route route:foo', function() {
- assert.ok(false);
- });
-
- Backbone.history.on('route', function() {
- assert.ok(false);
- });
-
- location.replace('http://example.com#foo');
- Backbone.history.checkUrl();
- });
-
- QUnit.test('#933, #908 - leading slash', function(assert) {
- assert.expect(2);
- location.replace('http://example.com/root/foo');
-
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- Backbone.history.start({root: '/root', hashChange: false, silent: true});
- assert.strictEqual(Backbone.history.getFragment(), 'foo');
-
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- Backbone.history.start({root: '/root/', hashChange: false, silent: true});
- assert.strictEqual(Backbone.history.getFragment(), 'foo');
- });
-
- QUnit.test('#967 - Route callback gets passed encoded values.', function(assert) {
- assert.expect(3);
- var route = 'has%2Fslash/complex-has%23hash/has%20space';
- Backbone.history.navigate(route, {trigger: true});
- assert.strictEqual(router.first, 'has/slash');
- assert.strictEqual(router.part, 'has#hash');
- assert.strictEqual(router.rest, 'has space');
- });
-
- QUnit.test('correctly handles URLs with % (#868)', function(assert) {
- assert.expect(3);
- location.replace('http://example.com#search/fat%3A1.5%25');
- Backbone.history.checkUrl();
- location.replace('http://example.com#search/fat');
- Backbone.history.checkUrl();
- assert.equal(router.query, 'fat');
- assert.equal(router.page, void 0);
- assert.equal(lastRoute, 'search');
- });
-
- QUnit.test('#2666 - Hashes with UTF8 in them.', function(assert) {
- assert.expect(2);
- Backbone.history.navigate('charñ', {trigger: true});
- assert.equal(router.charType, 'UTF');
- Backbone.history.navigate('char%C3%B1', {trigger: true});
- assert.equal(router.charType, 'UTF');
- });
-
- QUnit.test('#1185 - Use pathname when hashChange is not wanted.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/path/name#hash');
- Backbone.history = _.extend(new Backbone.History, {location: location});
- Backbone.history.start({hashChange: false});
- var fragment = Backbone.history.getFragment();
- assert.strictEqual(fragment, location.pathname.replace(/^\//, ''));
- });
-
- QUnit.test('#1206 - Strip leading slash before location.assign.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root/');
- Backbone.history = _.extend(new Backbone.History, {location: location});
- Backbone.history.start({hashChange: false, root: '/root/'});
- location.assign = function(pathname) {
- assert.strictEqual(pathname, '/root/fragment');
- };
- Backbone.history.navigate('/fragment');
- });
-
- QUnit.test('#1387 - Root fragment without trailing slash.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root');
- Backbone.history = _.extend(new Backbone.History, {location: location});
- Backbone.history.start({hashChange: false, root: '/root/', silent: true});
- assert.strictEqual(Backbone.history.getFragment(), '');
- });
-
- QUnit.test('#1366 - History does not prepend root to fragment.', function(assert) {
- assert.expect(2);
- Backbone.history.stop();
- location.replace('http://example.com/root/');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(state, title, url) {
- assert.strictEqual(url, '/root/x');
- }
- }
- });
- Backbone.history.start({
- root: '/root/',
- pushState: true,
- hashChange: false
- });
- Backbone.history.navigate('x');
- assert.strictEqual(Backbone.history.fragment, 'x');
- });
-
- QUnit.test('Normalize root.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(state, title, url) {
- assert.strictEqual(url, '/root/fragment');
- }
- }
- });
- Backbone.history.start({
- pushState: true,
- root: '/root',
- hashChange: false
- });
- Backbone.history.navigate('fragment');
- });
-
- QUnit.test('Normalize root.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root#fragment');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(state, title, url) {},
- replaceState: function(state, title, url) {
- assert.strictEqual(url, '/root/fragment');
- }
- }
- });
- Backbone.history.start({
- pushState: true,
- root: '/root'
- });
- });
-
- QUnit.test('Normalize root.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root');
- Backbone.history = _.extend(new Backbone.History, {location: location});
- Backbone.history.loadUrl = function() { assert.ok(true); };
- Backbone.history.start({
- pushState: true,
- root: '/root'
- });
- });
-
- QUnit.test('Normalize root - leading slash.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(){},
- replaceState: function(){}
- }
- });
- Backbone.history.start({root: 'root'});
- assert.strictEqual(Backbone.history.root, '/root/');
- });
-
- QUnit.test('Transition from hashChange to pushState.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root#x/y');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(){},
- replaceState: function(state, title, url){
- assert.strictEqual(url, '/root/x/y');
- }
- }
- });
- Backbone.history.start({
- root: 'root',
- pushState: true
- });
- });
-
- QUnit.test('#1619: Router: Normalize empty root', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(){},
- replaceState: function(){}
- }
- });
- Backbone.history.start({root: ''});
- assert.strictEqual(Backbone.history.root, '/');
- });
-
- QUnit.test('#1619: Router: nagivate with empty root', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(state, title, url) {
- assert.strictEqual(url, '/fragment');
- }
- }
- });
- Backbone.history.start({
- pushState: true,
- root: '',
- hashChange: false
- });
- Backbone.history.navigate('fragment');
- });
-
- QUnit.test('Transition from pushState to hashChange.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root/x/y?a=b');
- location.replace = function(url) {
- assert.strictEqual(url, '/root#x/y?a=b');
- };
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: null,
- replaceState: null
- }
- });
- Backbone.history.start({
- root: 'root',
- pushState: true
- });
- });
-
- QUnit.test('#1695 - hashChange to pushState with search.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root#x/y?a=b');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(){},
- replaceState: function(state, title, url){
- assert.strictEqual(url, '/root/x/y?a=b');
- }
- }
- });
- Backbone.history.start({
- root: 'root',
- pushState: true
- });
- });
-
- QUnit.test('#1746 - Router allows empty route.', function(assert) {
- assert.expect(1);
- var MyRouter = Backbone.Router.extend({
- routes: {'': 'empty'},
- empty: function(){},
- route: function(route){
- assert.strictEqual(route, '');
- }
- });
- new MyRouter;
- });
-
- QUnit.test('#1794 - Trailing space in fragments.', function(assert) {
- assert.expect(1);
- var history = new Backbone.History;
- assert.strictEqual(history.getFragment('fragment '), 'fragment');
- });
-
- QUnit.test('#1820 - Leading slash and trailing space.', 1, function(assert) {
- var history = new Backbone.History;
- assert.strictEqual(history.getFragment('/fragment '), 'fragment');
- });
-
- QUnit.test('#1980 - Optional parameters.', function(assert) {
- assert.expect(2);
- location.replace('http://example.com#named/optional/y');
- Backbone.history.checkUrl();
- assert.strictEqual(router.z, undefined);
- location.replace('http://example.com#named/optional/y123');
- Backbone.history.checkUrl();
- assert.strictEqual(router.z, '123');
- });
-
- QUnit.test("#2062 - Trigger 'route' event on router instance.", function(assert) {
- assert.expect(2);
- router.on('route', function(name, args) {
- assert.strictEqual(name, 'routeEvent');
- assert.deepEqual(args, ['x', null]);
- });
- location.replace('http://example.com#route-event/x');
- Backbone.history.checkUrl();
- });
-
- QUnit.test('#2255 - Extend routes by making routes a function.', function(assert) {
- assert.expect(1);
- var RouterBase = Backbone.Router.extend({
- routes: function() {
- return {
- home: 'root',
- index: 'index.html'
- };
- }
- });
-
- var RouterExtended = RouterBase.extend({
- routes: function() {
- var _super = RouterExtended.__super__.routes;
- return _.extend(_super(), {show: 'show', search: 'search'});
- }
- });
-
- var myRouter = new RouterExtended();
- assert.deepEqual({home: 'root', index: 'index.html', show: 'show', search: 'search'}, myRouter.routes);
- });
-
- QUnit.test('#2538 - hashChange to pushState only if both requested.', function(assert) {
- assert.expect(0);
- Backbone.history.stop();
- location.replace('http://example.com/root?a=b#x/y');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(){},
- replaceState: function(){ assert.ok(false); }
- }
- });
- Backbone.history.start({
- root: 'root',
- pushState: true,
- hashChange: false
- });
- });
-
- QUnit.test('No hash fallback.', function(assert) {
- assert.expect(0);
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(){},
- replaceState: function(){}
- }
- });
-
- var MyRouter = Backbone.Router.extend({
- routes: {
- hash: function() { assert.ok(false); }
- }
- });
- var myRouter = new MyRouter;
-
- location.replace('http://example.com/');
- Backbone.history.start({
- pushState: true,
- hashChange: false
- });
- location.replace('http://example.com/nomatch#hash');
- Backbone.history.checkUrl();
- });
-
- QUnit.test('#2656 - No trailing slash on root.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(state, title, url){
- assert.strictEqual(url, '/root');
- }
- }
- });
- location.replace('http://example.com/root/path');
- Backbone.history.start({pushState: true, hashChange: false, root: 'root'});
- Backbone.history.navigate('');
- });
-
- QUnit.test('#2656 - No trailing slash on root.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(state, title, url) {
- assert.strictEqual(url, '/');
- }
- }
- });
- location.replace('http://example.com/path');
- Backbone.history.start({pushState: true, hashChange: false});
- Backbone.history.navigate('');
- });
-
- QUnit.test('#2656 - No trailing slash on root.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(state, title, url){
- assert.strictEqual(url, '/root?x=1');
- }
- }
- });
- location.replace('http://example.com/root/path');
- Backbone.history.start({pushState: true, hashChange: false, root: 'root'});
- Backbone.history.navigate('?x=1');
- });
-
- QUnit.test('#2765 - Fragment matching sans query/hash.', function(assert) {
- assert.expect(2);
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(state, title, url) {
- assert.strictEqual(url, '/path?query#hash');
- }
- }
- });
-
- var MyRouter = Backbone.Router.extend({
- routes: {
- path: function() { assert.ok(true); }
- }
- });
- var myRouter = new MyRouter;
-
- location.replace('http://example.com/');
- Backbone.history.start({pushState: true, hashChange: false});
- Backbone.history.navigate('path?query#hash', true);
- });
-
- QUnit.test('Do not decode the search params.', function(assert) {
- assert.expect(1);
- var MyRouter = Backbone.Router.extend({
- routes: {
- path: function(params){
- assert.strictEqual(params, 'x=y%3Fz');
- }
- }
- });
- var myRouter = new MyRouter;
- Backbone.history.navigate('path?x=y%3Fz', true);
- });
-
- QUnit.test('Navigate to a hash url.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- Backbone.history.start({pushState: true});
- var MyRouter = Backbone.Router.extend({
- routes: {
- path: function(params) {
- assert.strictEqual(params, 'x=y');
- }
- }
- });
- var myRouter = new MyRouter;
- location.replace('http://example.com/path?x=y#hash');
- Backbone.history.checkUrl();
- });
-
- QUnit.test('#navigate to a hash url.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- Backbone.history.start({pushState: true});
- var MyRouter = Backbone.Router.extend({
- routes: {
- path: function(params) {
- assert.strictEqual(params, 'x=y');
- }
- }
- });
- var myRouter = new MyRouter;
- Backbone.history.navigate('path?x=y#hash', true);
- });
-
- QUnit.test('unicode pathname', function(assert) {
- assert.expect(1);
- location.replace('http://example.com/myyjä');
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {
- myyjä: function() {
- assert.ok(true);
- }
- }
- });
- new MyRouter;
- Backbone.history.start({pushState: true});
- });
-
- QUnit.test('unicode pathname with % in a parameter', function(assert) {
- assert.expect(1);
- location.replace('http://example.com/myyjä/foo%20%25%3F%2f%40%25%20bar');
- location.pathname = '/myyj%C3%A4/foo%20%25%3F%2f%40%25%20bar';
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {
- 'myyjä/:query': function(query) {
- assert.strictEqual(query, 'foo %?/@% bar');
- }
- }
- });
- new MyRouter;
- Backbone.history.start({pushState: true});
- });
-
- QUnit.test('newline in route', function(assert) {
- assert.expect(1);
- location.replace('http://example.com/stuff%0Anonsense?param=foo%0Abar');
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {
- 'stuff\nnonsense': function() {
- assert.ok(true);
- }
- }
- });
- new MyRouter;
- Backbone.history.start({pushState: true});
- });
-
- QUnit.test('Router#execute receives callback, args, name.', function(assert) {
- assert.expect(3);
- location.replace('http://example.com#foo/123/bar?x=y');
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {'foo/:id/bar': 'foo'},
- foo: function(){},
- execute: function(callback, args, name) {
- assert.strictEqual(callback, this.foo);
- assert.deepEqual(args, ['123', 'x=y']);
- assert.strictEqual(name, 'foo');
- }
- });
- var myRouter = new MyRouter;
- Backbone.history.start();
- });
-
- QUnit.test('pushState to hashChange with only search params.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com?a=b');
- location.replace = function(url) {
- assert.strictEqual(url, '/#?a=b');
- };
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: null
- });
- Backbone.history.start({pushState: true});
- });
-
- QUnit.test('#3123 - History#navigate decodes before comparison.', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/shop/search?keyword=short%20dress');
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: function(){ assert.ok(false); },
- replaceState: function(){ assert.ok(false); }
- }
- });
- Backbone.history.start({pushState: true});
- Backbone.history.navigate('shop/search?keyword=short%20dress', true);
- assert.strictEqual(Backbone.history.fragment, 'shop/search?keyword=short dress');
- });
-
- QUnit.test('#3175 - Urls in the params', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com#login?a=value&backUrl=https%3A%2F%2Fwww.msn.com%2Fidp%2Fidpdemo%3Fspid%3Dspdemo%26target%3Db');
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var myRouter = new Backbone.Router;
- myRouter.route('login', function(params) {
- assert.strictEqual(params, 'a=value&backUrl=https%3A%2F%2Fwww.msn.com%2Fidp%2Fidpdemo%3Fspid%3Dspdemo%26target%3Db');
- });
- Backbone.history.start();
- });
-
- QUnit.test('#3358 - pushState to hashChange transition with search params', function(assert) {
- assert.expect(1);
- Backbone.history.stop();
- location.replace('http://example.com/root?foo=bar');
- location.replace = function(url) {
- assert.strictEqual(url, '/root#?foo=bar');
- };
- Backbone.history = _.extend(new Backbone.History, {
- location: location,
- history: {
- pushState: undefined,
- replaceState: undefined
- }
- });
- Backbone.history.start({root: '/root', pushState: true});
- });
-
- QUnit.test("Paths that don't match the root should not match no root", function(assert) {
- assert.expect(0);
- location.replace('http://example.com/foo');
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {
- foo: function(){
- assert.ok(false, 'should not match unless root matches');
- }
- }
- });
- var myRouter = new MyRouter;
- Backbone.history.start({root: 'root', pushState: true});
- });
-
- QUnit.test("Paths that don't match the root should not match roots of the same length", function(assert) {
- assert.expect(0);
- location.replace('http://example.com/xxxx/foo');
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {
- foo: function(){
- assert.ok(false, 'should not match unless root matches');
- }
- }
- });
- var myRouter = new MyRouter;
- Backbone.history.start({root: 'root', pushState: true});
- });
-
- QUnit.test('roots with regex characters', function(assert) {
- assert.expect(1);
- location.replace('http://example.com/x+y.z/foo');
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {foo: function(){ assert.ok(true); }}
- });
- var myRouter = new MyRouter;
- Backbone.history.start({root: 'x+y.z', pushState: true});
- });
-
- QUnit.test('roots with unicode characters', function(assert) {
- assert.expect(1);
- location.replace('http://example.com/®ooτ/foo');
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {foo: function(){ assert.ok(true); }}
- });
- var myRouter = new MyRouter;
- Backbone.history.start({root: '®ooτ', pushState: true});
- });
-
- QUnit.test('roots without slash', function(assert) {
- assert.expect(1);
- location.replace('http://example.com/®ooτ');
- Backbone.history.stop();
- Backbone.history = _.extend(new Backbone.History, {location: location});
- var MyRouter = Backbone.Router.extend({
- routes: {'': function(){ assert.ok(true); }}
- });
- var myRouter = new MyRouter;
- Backbone.history.start({root: '®ooτ', pushState: true});
- });
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/dom-setup.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/dom-setup.js
deleted file mode 100644
index f2242282..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/dom-setup.js
+++ /dev/null
@@ -1,4 +0,0 @@
-$('body').append(
- '<div id="qunit"></div>' +
- '<div id="qunit-fixture"></div>'
-);
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/environment.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/environment.js
deleted file mode 100644
index c2441ac7..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/setup/environment.js
+++ /dev/null
@@ -1,45 +0,0 @@
-(function() {
-
- var sync = Backbone.sync;
- var ajax = Backbone.ajax;
- var emulateHTTP = Backbone.emulateHTTP;
- var emulateJSON = Backbone.emulateJSON;
- var history = window.history;
- var pushState = history.pushState;
- var replaceState = history.replaceState;
-
- QUnit.config.noglobals = true;
-
- QUnit.testStart(function() {
- var env = QUnit.config.current.testEnvironment;
-
- // We never want to actually call these during tests.
- history.pushState = history.replaceState = function(){};
-
- // Capture ajax settings for comparison.
- Backbone.ajax = function(settings) {
- env.ajaxSettings = settings;
- };
-
- // Capture the arguments to Backbone.sync for comparison.
- Backbone.sync = function(method, model, options) {
- env.syncArgs = {
- method: method,
- model: model,
- options: options
- };
- sync.apply(this, arguments);
- };
-
- });
-
- QUnit.testDone(function() {
- Backbone.sync = sync;
- Backbone.ajax = ajax;
- Backbone.emulateHTTP = emulateHTTP;
- Backbone.emulateJSON = emulateJSON;
- history.pushState = pushState;
- history.replaceState = replaceState;
- });
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/sync.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/sync.js
deleted file mode 100644
index 8813f158..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/sync.js
+++ /dev/null
@@ -1,239 +0,0 @@
-(function() {
-
- var Library = Backbone.Collection.extend({
- url: function() { return '/library'; }
- });
- var library;
-
- var attrs = {
- title: 'The Tempest',
- author: 'Bill Shakespeare',
- length: 123
- };
-
- QUnit.module('Backbone.sync', {
-
- beforeEach: function(assert) {
- library = new Library;
- library.create(attrs, {wait: false});
- },
-
- afterEach: function(assert) {
- Backbone.emulateHTTP = false;
- }
-
- });
-
- QUnit.test('read', function(assert) {
- assert.expect(4);
- library.fetch();
- assert.equal(this.ajaxSettings.url, '/library');
- assert.equal(this.ajaxSettings.type, 'GET');
- assert.equal(this.ajaxSettings.dataType, 'json');
- assert.ok(_.isEmpty(this.ajaxSettings.data));
- });
-
- QUnit.test('passing data', function(assert) {
- assert.expect(3);
- library.fetch({data: {a: 'a', one: 1}});
- assert.equal(this.ajaxSettings.url, '/library');
- assert.equal(this.ajaxSettings.data.a, 'a');
- assert.equal(this.ajaxSettings.data.one, 1);
- });
-
- QUnit.test('create', function(assert) {
- assert.expect(6);
- assert.equal(this.ajaxSettings.url, '/library');
- assert.equal(this.ajaxSettings.type, 'POST');
- assert.equal(this.ajaxSettings.dataType, 'json');
- var data = JSON.parse(this.ajaxSettings.data);
- assert.equal(data.title, 'The Tempest');
- assert.equal(data.author, 'Bill Shakespeare');
- assert.equal(data.length, 123);
- });
-
- QUnit.test('update', function(assert) {
- assert.expect(7);
- library.first().save({id: '1-the-tempest', author: 'William Shakespeare'});
- assert.equal(this.ajaxSettings.url, '/library/1-the-tempest');
- assert.equal(this.ajaxSettings.type, 'PUT');
- assert.equal(this.ajaxSettings.dataType, 'json');
- var data = JSON.parse(this.ajaxSettings.data);
- assert.equal(data.id, '1-the-tempest');
- assert.equal(data.title, 'The Tempest');
- assert.equal(data.author, 'William Shakespeare');
- assert.equal(data.length, 123);
- });
-
- QUnit.test('update with emulateHTTP and emulateJSON', function(assert) {
- assert.expect(7);
- library.first().save({id: '2-the-tempest', author: 'Tim Shakespeare'}, {
- emulateHTTP: true,
- emulateJSON: true
- });
- assert.equal(this.ajaxSettings.url, '/library/2-the-tempest');
- assert.equal(this.ajaxSettings.type, 'POST');
- assert.equal(this.ajaxSettings.dataType, 'json');
- assert.equal(this.ajaxSettings.data._method, 'PUT');
- var data = JSON.parse(this.ajaxSettings.data.model);
- assert.equal(data.id, '2-the-tempest');
- assert.equal(data.author, 'Tim Shakespeare');
- assert.equal(data.length, 123);
- });
-
- QUnit.test('update with just emulateHTTP', function(assert) {
- assert.expect(6);
- library.first().save({id: '2-the-tempest', author: 'Tim Shakespeare'}, {
- emulateHTTP: true
- });
- assert.equal(this.ajaxSettings.url, '/library/2-the-tempest');
- assert.equal(this.ajaxSettings.type, 'POST');
- assert.equal(this.ajaxSettings.contentType, 'application/json');
- var data = JSON.parse(this.ajaxSettings.data);
- assert.equal(data.id, '2-the-tempest');
- assert.equal(data.author, 'Tim Shakespeare');
- assert.equal(data.length, 123);
- });
-
- QUnit.test('update with just emulateJSON', function(assert) {
- assert.expect(6);
- library.first().save({id: '2-the-tempest', author: 'Tim Shakespeare'}, {
- emulateJSON: true
- });
- assert.equal(this.ajaxSettings.url, '/library/2-the-tempest');
- assert.equal(this.ajaxSettings.type, 'PUT');
- assert.equal(this.ajaxSettings.contentType, 'application/x-www-form-urlencoded');
- var data = JSON.parse(this.ajaxSettings.data.model);
- assert.equal(data.id, '2-the-tempest');
- assert.equal(data.author, 'Tim Shakespeare');
- assert.equal(data.length, 123);
- });
-
- QUnit.test('read model', function(assert) {
- assert.expect(3);
- library.first().save({id: '2-the-tempest', author: 'Tim Shakespeare'});
- library.first().fetch();
- assert.equal(this.ajaxSettings.url, '/library/2-the-tempest');
- assert.equal(this.ajaxSettings.type, 'GET');
- assert.ok(_.isEmpty(this.ajaxSettings.data));
- });
-
- QUnit.test('destroy', function(assert) {
- assert.expect(3);
- library.first().save({id: '2-the-tempest', author: 'Tim Shakespeare'});
- library.first().destroy({wait: true});
- assert.equal(this.ajaxSettings.url, '/library/2-the-tempest');
- assert.equal(this.ajaxSettings.type, 'DELETE');
- assert.equal(this.ajaxSettings.data, null);
- });
-
- QUnit.test('destroy with emulateHTTP', function(assert) {
- assert.expect(3);
- library.first().save({id: '2-the-tempest', author: 'Tim Shakespeare'});
- library.first().destroy({
- emulateHTTP: true,
- emulateJSON: true
- });
- assert.equal(this.ajaxSettings.url, '/library/2-the-tempest');
- assert.equal(this.ajaxSettings.type, 'POST');
- assert.equal(JSON.stringify(this.ajaxSettings.data), '{"_method":"DELETE"}');
- });
-
- QUnit.test('urlError', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model();
- assert.raises(function() {
- model.fetch();
- });
- model.fetch({url: '/one/two'});
- assert.equal(this.ajaxSettings.url, '/one/two');
- });
-
- QUnit.test('#1052 - `options` is optional.', function(assert) {
- assert.expect(0);
- var model = new Backbone.Model();
- model.url = '/test';
- Backbone.sync('create', model);
- });
-
- QUnit.test('Backbone.ajax', function(assert) {
- assert.expect(1);
- Backbone.ajax = function(settings){
- assert.strictEqual(settings.url, '/test');
- };
- var model = new Backbone.Model();
- model.url = '/test';
- Backbone.sync('create', model);
- });
-
- QUnit.test('Call provided error callback on error.', function(assert) {
- assert.expect(1);
- var model = new Backbone.Model;
- model.url = '/test';
- Backbone.sync('read', model, {
- error: function() { assert.ok(true); }
- });
- this.ajaxSettings.error();
- });
-
- QUnit.test('Use Backbone.emulateHTTP as default.', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model;
- model.url = '/test';
-
- Backbone.emulateHTTP = true;
- model.sync('create', model);
- assert.strictEqual(this.ajaxSettings.emulateHTTP, true);
-
- Backbone.emulateHTTP = false;
- model.sync('create', model);
- assert.strictEqual(this.ajaxSettings.emulateHTTP, false);
- });
-
- QUnit.test('Use Backbone.emulateJSON as default.', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model;
- model.url = '/test';
-
- Backbone.emulateJSON = true;
- model.sync('create', model);
- assert.strictEqual(this.ajaxSettings.emulateJSON, true);
-
- Backbone.emulateJSON = false;
- model.sync('create', model);
- assert.strictEqual(this.ajaxSettings.emulateJSON, false);
- });
-
- QUnit.test('#1756 - Call user provided beforeSend function.', function(assert) {
- assert.expect(4);
- Backbone.emulateHTTP = true;
- var model = new Backbone.Model;
- model.url = '/test';
- var xhr = {
- setRequestHeader: function(header, value) {
- assert.strictEqual(header, 'X-HTTP-Method-Override');
- assert.strictEqual(value, 'DELETE');
- }
- };
- model.sync('delete', model, {
- beforeSend: function(_xhr) {
- assert.ok(_xhr === xhr);
- return false;
- }
- });
- assert.strictEqual(this.ajaxSettings.beforeSend(xhr), false);
- });
-
- QUnit.test('#2928 - Pass along `textStatus` and `errorThrown`.', function(assert) {
- assert.expect(2);
- var model = new Backbone.Model;
- model.url = '/test';
- model.on('error', function(m, xhr, options) {
- assert.strictEqual(options.textStatus, 'textStatus');
- assert.strictEqual(options.errorThrown, 'errorThrown');
- });
- model.fetch();
- this.ajaxSettings.error({}, 'textStatus', 'errorThrown');
- });
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/view.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/view.js
deleted file mode 100644
index faf3445b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/backbone/test/view.js
+++ /dev/null
@@ -1,495 +0,0 @@
-(function() {
-
- var view;
-
- QUnit.module('Backbone.View', {
-
- beforeEach: function(assert) {
- $('#qunit-fixture').append(
- '<div id="testElement"><h1>Test</h1></div>'
- );
-
- view = new Backbone.View({
- id: 'test-view',
- className: 'test-view',
- other: 'non-special-option'
- });
- },
-
- afterEach: function() {
- $('#testElement').remove();
- $('#test-view').remove();
- }
-
- });
-
- QUnit.test('constructor', function(assert) {
- assert.expect(3);
- assert.equal(view.el.id, 'test-view');
- assert.equal(view.el.className, 'test-view');
- assert.equal(view.el.other, void 0);
- });
-
- QUnit.test('$', function(assert) {
- assert.expect(2);
- var myView = new Backbone.View;
- myView.setElement('<p><a><b>test</b></a></p>');
- var result = myView.$('a b');
-
- assert.strictEqual(result[0].innerHTML, 'test');
- assert.ok(result.length === +result.length);
- });
-
- QUnit.test('$el', function(assert) {
- assert.expect(3);
- var myView = new Backbone.View;
- myView.setElement('<p><a><b>test</b></a></p>');
- assert.strictEqual(myView.el.nodeType, 1);
-
- assert.ok(myView.$el instanceof Backbone.$);
- assert.strictEqual(myView.$el[0], myView.el);
- });
-
- QUnit.test('initialize', function(assert) {
- assert.expect(1);
- var View = Backbone.View.extend({
- initialize: function() {
- this.one = 1;
- }
- });
-
- assert.strictEqual(new View().one, 1);
- });
-
- QUnit.test('render', function(assert) {
- assert.expect(1);
- var myView = new Backbone.View;
- assert.equal(myView.render(), myView, '#render returns the view instance');
- });
-
- QUnit.test('delegateEvents', function(assert) {
- assert.expect(6);
- var counter1 = 0, counter2 = 0;
-
- var myView = new Backbone.View({el: '#testElement'});
- myView.increment = function(){ counter1++; };
- myView.$el.on('click', function(){ counter2++; });
-
- var events = {'click h1': 'increment'};
-
- myView.delegateEvents(events);
- myView.$('h1').trigger('click');
- assert.equal(counter1, 1);
- assert.equal(counter2, 1);
-
- myView.$('h1').trigger('click');
- assert.equal(counter1, 2);
- assert.equal(counter2, 2);
-
- myView.delegateEvents(events);
- myView.$('h1').trigger('click');
- assert.equal(counter1, 3);
- assert.equal(counter2, 3);
- });
-
- QUnit.test('delegate', function(assert) {
- assert.expect(3);
- var myView = new Backbone.View({el: '#testElement'});
- myView.delegate('click', 'h1', function() {
- assert.ok(true);
- });
- myView.delegate('click', function() {
- assert.ok(true);
- });
- myView.$('h1').trigger('click');
-
- assert.equal(myView.delegate(), myView, '#delegate returns the view instance');
- });
-
- QUnit.test('delegateEvents allows functions for callbacks', function(assert) {
- assert.expect(3);
- var myView = new Backbone.View({el: '<p></p>'});
- myView.counter = 0;
-
- var events = {
- click: function() {
- this.counter++;
- }
- };
-
- myView.delegateEvents(events);
- myView.$el.trigger('click');
- assert.equal(myView.counter, 1);
-
- myView.$el.trigger('click');
- assert.equal(myView.counter, 2);
-
- myView.delegateEvents(events);
- myView.$el.trigger('click');
- assert.equal(myView.counter, 3);
- });
-
-
- QUnit.test('delegateEvents ignore undefined methods', function(assert) {
- assert.expect(0);
- var myView = new Backbone.View({el: '<p></p>'});
- myView.delegateEvents({'click': 'undefinedMethod'});
- myView.$el.trigger('click');
- });
-
- QUnit.test('undelegateEvents', function(assert) {
- assert.expect(7);
- var counter1 = 0, counter2 = 0;
-
- var myView = new Backbone.View({el: '#testElement'});
- myView.increment = function(){ counter1++; };
- myView.$el.on('click', function(){ counter2++; });
-
- var events = {'click h1': 'increment'};
-
- myView.delegateEvents(events);
- myView.$('h1').trigger('click');
- assert.equal(counter1, 1);
- assert.equal(counter2, 1);
-
- myView.undelegateEvents();
- myView.$('h1').trigger('click');
- assert.equal(counter1, 1);
- assert.equal(counter2, 2);
-
- myView.delegateEvents(events);
- myView.$('h1').trigger('click');
- assert.equal(counter1, 2);
- assert.equal(counter2, 3);
-
- assert.equal(myView.undelegateEvents(), myView, '#undelegateEvents returns the view instance');
- });
-
- QUnit.test('undelegate', function(assert) {
- assert.expect(1);
- var myView = new Backbone.View({el: '#testElement'});
- myView.delegate('click', function() { assert.ok(false); });
- myView.delegate('click', 'h1', function() { assert.ok(false); });
-
- myView.undelegate('click');
-
- myView.$('h1').trigger('click');
- myView.$el.trigger('click');
-
- assert.equal(myView.undelegate(), myView, '#undelegate returns the view instance');
- });
-
- QUnit.test('undelegate with passed handler', function(assert) {
- assert.expect(1);
- var myView = new Backbone.View({el: '#testElement'});
- var listener = function() { assert.ok(false); };
- myView.delegate('click', listener);
- myView.delegate('click', function() { assert.ok(true); });
- myView.undelegate('click', listener);
- myView.$el.trigger('click');
- });
-
- QUnit.test('undelegate with selector', function(assert) {
- assert.expect(2);
- var myView = new Backbone.View({el: '#testElement'});
- myView.delegate('click', function() { assert.ok(true); });
- myView.delegate('click', 'h1', function() { assert.ok(false); });
- myView.undelegate('click', 'h1');
- myView.$('h1').trigger('click');
- myView.$el.trigger('click');
- });
-
- QUnit.test('undelegate with handler and selector', function(assert) {
- assert.expect(2);
- var myView = new Backbone.View({el: '#testElement'});
- myView.delegate('click', function() { assert.ok(true); });
- var handler = function(){ assert.ok(false); };
- myView.delegate('click', 'h1', handler);
- myView.undelegate('click', 'h1', handler);
- myView.$('h1').trigger('click');
- myView.$el.trigger('click');
- });
-
- QUnit.test('tagName can be provided as a string', function(assert) {
- assert.expect(1);
- var View = Backbone.View.extend({
- tagName: 'span'
- });
-
- assert.equal(new View().el.tagName, 'SPAN');
- });
-
- QUnit.test('tagName can be provided as a function', function(assert) {
- assert.expect(1);
- var View = Backbone.View.extend({
- tagName: function() {
- return 'p';
- }
- });
-
- assert.ok(new View().$el.is('p'));
- });
-
- QUnit.test('_ensureElement with DOM node el', function(assert) {
- assert.expect(1);
- var View = Backbone.View.extend({
- el: document.body
- });
-
- assert.equal(new View().el, document.body);
- });
-
- QUnit.test('_ensureElement with string el', function(assert) {
- assert.expect(3);
- var View = Backbone.View.extend({
- el: 'body'
- });
- assert.strictEqual(new View().el, document.body);
-
- View = Backbone.View.extend({
- el: '#testElement > h1'
- });
- assert.strictEqual(new View().el, $('#testElement > h1').get(0));
-
- View = Backbone.View.extend({
- el: '#nonexistent'
- });
- assert.ok(!new View().el);
- });
-
- QUnit.test('with className and id functions', function(assert) {
- assert.expect(2);
- var View = Backbone.View.extend({
- className: function() {
- return 'className';
- },
- id: function() {
- return 'id';
- }
- });
-
- assert.strictEqual(new View().el.className, 'className');
- assert.strictEqual(new View().el.id, 'id');
- });
-
- QUnit.test('with attributes', function(assert) {
- assert.expect(2);
- var View = Backbone.View.extend({
- attributes: {
- 'id': 'id',
- 'class': 'class'
- }
- });
-
- assert.strictEqual(new View().el.className, 'class');
- assert.strictEqual(new View().el.id, 'id');
- });
-
- QUnit.test('with attributes as a function', function(assert) {
- assert.expect(1);
- var View = Backbone.View.extend({
- attributes: function() {
- return {'class': 'dynamic'};
- }
- });
-
- assert.strictEqual(new View().el.className, 'dynamic');
- });
-
- QUnit.test('should default to className/id properties', function(assert) {
- assert.expect(4);
- var View = Backbone.View.extend({
- className: 'backboneClass',
- id: 'backboneId',
- attributes: {
- 'class': 'attributeClass',
- 'id': 'attributeId'
- }
- });
-
- var myView = new View;
- assert.strictEqual(myView.el.className, 'backboneClass');
- assert.strictEqual(myView.el.id, 'backboneId');
- assert.strictEqual(myView.$el.attr('class'), 'backboneClass');
- assert.strictEqual(myView.$el.attr('id'), 'backboneId');
- });
-
- QUnit.test('multiple views per element', function(assert) {
- assert.expect(3);
- var count = 0;
- var $el = $('<p></p>');
-
- var View = Backbone.View.extend({
- el: $el,
- events: {
- click: function() {
- count++;
- }
- }
- });
-
- var view1 = new View;
- $el.trigger('click');
- assert.equal(1, count);
-
- var view2 = new View;
- $el.trigger('click');
- assert.equal(3, count);
-
- view1.delegateEvents();
- $el.trigger('click');
- assert.equal(5, count);
- });
-
- QUnit.test('custom events', function(assert) {
- assert.expect(2);
- var View = Backbone.View.extend({
- el: $('body'),
- events: {
- fake$event: function() { assert.ok(true); }
- }
- });
-
- var myView = new View;
- $('body').trigger('fake$event').trigger('fake$event');
-
- $('body').off('fake$event');
- $('body').trigger('fake$event');
- });
-
- QUnit.test('#1048 - setElement uses provided object.', function(assert) {
- assert.expect(2);
- var $el = $('body');
-
- var myView = new Backbone.View({el: $el});
- assert.ok(myView.$el === $el);
-
- myView.setElement($el = $($el));
- assert.ok(myView.$el === $el);
- });
-
- QUnit.test('#986 - Undelegate before changing element.', function(assert) {
- assert.expect(1);
- var button1 = $('<button></button>');
- var button2 = $('<button></button>');
-
- var View = Backbone.View.extend({
- events: {
- click: function(e) {
- assert.ok(myView.el === e.target);
- }
- }
- });
-
- var myView = new View({el: button1});
- myView.setElement(button2);
-
- button1.trigger('click');
- button2.trigger('click');
- });
-
- QUnit.test('#1172 - Clone attributes object', function(assert) {
- assert.expect(2);
- var View = Backbone.View.extend({
- attributes: {foo: 'bar'}
- });
-
- var view1 = new View({id: 'foo'});
- assert.strictEqual(view1.el.id, 'foo');
-
- var view2 = new View();
- assert.ok(!view2.el.id);
- });
-
- QUnit.test('views stopListening', function(assert) {
- assert.expect(0);
- var View = Backbone.View.extend({
- initialize: function() {
- this.listenTo(this.model, 'all x', function(){ assert.ok(false); });
- this.listenTo(this.collection, 'all x', function(){ assert.ok(false); });
- }
- });
-
- var myView = new View({
- model: new Backbone.Model,
- collection: new Backbone.Collection
- });
-
- myView.stopListening();
- myView.model.trigger('x');
- myView.collection.trigger('x');
- });
-
- QUnit.test('Provide function for el.', function(assert) {
- assert.expect(2);
- var View = Backbone.View.extend({
- el: function() {
- return '<p><a></a></p>';
- }
- });
-
- var myView = new View;
- assert.ok(myView.$el.is('p'));
- assert.ok(myView.$el.has('a'));
- });
-
- QUnit.test('events passed in options', function(assert) {
- assert.expect(1);
- var counter = 0;
-
- var View = Backbone.View.extend({
- el: '#testElement',
- increment: function() {
- counter++;
- }
- });
-
- var myView = new View({
- events: {
- 'click h1': 'increment'
- }
- });
-
- myView.$('h1').trigger('click').trigger('click');
- assert.equal(counter, 2);
- });
-
- QUnit.test('remove', function(assert) {
- assert.expect(2);
- var myView = new Backbone.View;
- document.body.appendChild(view.el);
-
- myView.delegate('click', function() { assert.ok(false); });
- myView.listenTo(myView, 'all x', function() { assert.ok(false); });
-
- assert.equal(myView.remove(), myView, '#remove returns the view instance');
- myView.$el.trigger('click');
- myView.trigger('x');
-
- // In IE8 and below, parentNode still exists but is not document.body.
- assert.notEqual(myView.el.parentNode, document.body);
- });
-
- QUnit.test('setElement', function(assert) {
- assert.expect(3);
- var myView = new Backbone.View({
- events: {
- click: function() { assert.ok(false); }
- }
- });
- myView.events = {
- click: function() { assert.ok(true); }
- };
- var oldEl = myView.el;
- var $oldEl = myView.$el;
-
- myView.setElement(document.createElement('div'));
-
- $oldEl.click();
- myView.$el.click();
-
- assert.notEqual(oldEl, myView.el);
- assert.notEqual($oldEl, myView.$el);
- });
-
-})();
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/license.txt b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/license.txt
deleted file mode 100644
index ba43b751..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/license.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-Software License Agreement (BSD License)
-
-Copyright (c) 2007, Parakey Inc.
-All rights reserved.
-
-Redistribution and use of this software in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above
- copyright notice, this list of conditions and the
- following disclaimer.
-
-* Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the
- following disclaimer in the documentation and/or other
- materials provided with the distribution.
-
-* Neither the name of Parakey Inc. nor the names of its
- contributors may be used to endorse or promote products
- derived from this software without specific prior
- written permission of Parakey Inc.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
-OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/blank.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/blank.gif
deleted file mode 100644
index 6865c960..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/blank.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/buttonBg.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/buttonBg.png
deleted file mode 100644
index f367b427..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/buttonBg.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/buttonBgHover.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/buttonBgHover.png
deleted file mode 100644
index cd37a0d5..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/buttonBgHover.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/debugger.css b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/debugger.css
deleted file mode 100644
index ba55c7ea..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/debugger.css
+++ /dev/null
@@ -1,331 +0,0 @@
-/* See license.txt for terms of usage */
-
-.panelNode-script {
- overflow: hidden;
- font-family: monospace;
-}
-
-/************************************************************************************************/
-
-.scriptTooltip {
- position: fixed;
- z-index: 2147483647;
- padding: 2px 3px;
- border: 1px solid #CBE087;
- background: LightYellow;
- font-family: monospace;
- color: #000000;
-}
-
-/************************************************************************************************/
-
-.sourceBox {
- /* TODO: xxxpedro problem with sourceBox and scrolling elements */
- /*overflow: scroll; /* see issue 1479 */
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
-}
-
-.sourceRow {
- white-space: nowrap;
- -moz-user-select: text;
-}
-
-.sourceRow.hovered {
- background-color: #EEEEEE;
-}
-
-/************************************************************************************************/
-
-.sourceLine {
- -moz-user-select: none;
- margin-right: 10px;
- border-right: 1px solid #CCCCCC;
- padding: 0px 4px 0 20px;
- background: #EEEEEE no-repeat 2px 0px;
- color: #888888;
- white-space: pre;
- font-family: monospace; /* see issue 2953 */
-}
-
-.noteInToolTip { /* below sourceLine, so it overrides it */
- background-color: #FFD472;
-}
-
-.useA11y .sourceBox .sourceViewport:focus .sourceLine {
- background-color: #FFFFC0;
- color: navy;
- border-right: 1px solid black;
-}
-
-.useA11y .sourceBox .sourceViewport:focus {
- outline: none;
-}
-
-.a11y1emSize {
- width: 1em;
- height: 1em;
- position: absolute;
-}
-
-.useA11y .panelStatusLabel:focus {
- outline-offset: -2px !important;
- }
-
-.sourceBox > .sourceRow > .sourceLine {
- cursor: pointer;
-}
-
-.sourceLine:hover {
- text-decoration: none;
-}
-
-.sourceRowText {
- white-space: pre;
-}
-
-.sourceRow[exe_line="true"] {
- outline: 1px solid #D9D9B6;
- margin-right: 1px;
- background-color: lightgoldenrodyellow;
-}
-
-.sourceRow[executable="true"] > .sourceLine {
- content: "-";
- color: #4AA02C; /* Spring Green */
- font-weight: bold;
-}
-
-.sourceRow[exe_line="true"] > .sourceLine {
- background-image: url(chrome://firebug/skin/exe.png);
- color: #000000;
-}
-
-.sourceRow[breakpoint="true"] > .sourceLine {
- background-image: url(chrome://firebug/skin/breakpoint.png);
-}
-
-.sourceRow[breakpoint="true"][condition="true"] > .sourceLine {
- background-image: url(chrome://firebug/skin/breakpointCondition.png);
-}
-
-.sourceRow[breakpoint="true"][disabledBreakpoint="true"] > .sourceLine {
- background-image: url(chrome://firebug/skin/breakpointDisabled.png);
-}
-
-.sourceRow[breakpoint="true"][exe_line="true"] > .sourceLine {
- background-image: url(chrome://firebug/skin/breakpointExe.png);
-}
-
-.sourceRow[breakpoint="true"][exe_line="true"][disabledBreakpoint="true"] > .sourceLine {
- background-image: url(chrome://firebug/skin/breakpointDisabledExe.png);
-}
-
-.sourceLine.editing {
- background-image: url(chrome://firebug/skin/breakpoint.png);
-}
-
-/************************************************************************************************/
-
-.conditionEditor {
- z-index: 2147483647;
- position: absolute;
- margin-top: 0;
- left: 2px;
- width: 90%;
-}
-
-.conditionEditorInner {
- position: relative;
- top: -26px;
- height: 0;
-}
-
-.conditionCaption {
- margin-bottom: 2px;
- font-family: Lucida Grande, sans-serif;
- font-weight: bold;
- font-size: 11px;
- color: #226679;
-}
-
-.conditionInput {
- width: 100%;
- border: 1px solid #0096C0;
- font-family: monospace;
- font-size: inherit;
-}
-
-.conditionEditorInner1 {
- padding-left: 37px;
- background: url(condBorders.png) repeat-y;
-}
-
-.conditionEditorInner2 {
- padding-right: 25px;
- background: url(condBorders.png) repeat-y 100% 0;
-}
-
-.conditionEditorTop1 {
- background: url(condCorners.png) no-repeat 100% 0;
- margin-left: 37px;
- height: 35px;
-}
-
-.conditionEditorTop2 {
- position: relative;
- left: -37px;
- width: 37px;
- height: 35px;
- background: url(condCorners.png) no-repeat;
-}
-
-.conditionEditorBottom1 {
- background: url(condCorners.png) no-repeat 100% 100%;
- margin-left: 37px;
- height: 33px;
-}
-
-.conditionEditorBottom2 {
- position: relative; left: -37px;
- width: 37px;
- height: 33px;
- background: url(condCorners.png) no-repeat 0 100%;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.upsideDown {
- margin-top: 2px;
-}
-
-.upsideDown .conditionEditorInner {
- top: -8px;
-}
-
-.upsideDown .conditionEditorInner1 {
- padding-left: 33px;
- background: url(condBordersUps.png) repeat-y;
-}
-
-.upsideDown .conditionEditorInner2 {
- padding-right: 25px;
- background: url(condBordersUps.png) repeat-y 100% 0;
-}
-
-.upsideDown .conditionEditorTop1 {
- background: url(condCornersUps.png) no-repeat 100% 0;
- margin-left: 33px;
- height: 25px;
-}
-
-.upsideDown .conditionEditorTop2 {
- position: relative;
- left: -33px;
- width: 33px;
- height: 25px;
- background: url(condCornersUps.png) no-repeat;
-}
-
-.upsideDown .conditionEditorBottom1 {
- background: url(condCornersUps.png) no-repeat 100% 100%;
- margin-left: 33px;
- height: 43px;
-}
-
-.upsideDown .conditionEditorBottom2 {
- position: relative;
- left: -33px;
- width: 33px;
- height: 43px;
- background: url(condCornersUps.png) no-repeat 0 100%;
-}
-
-/************************************************************************************************/
-
-.breakpointsGroupListBox {
- overflow: hidden;
-}
-
-.breakpointBlockHead {
- position: relative;
- padding-top: 4px;
-}
-
-.breakpointBlockHead > .checkbox {
- margin-right: 4px;
-}
-
-.breakpointBlockHead > .objectLink-sourceLink {
- top: 4px;
- right: 20px;
- background-color: #FFFFFF; /* issue 3308 */
-}
-
-.breakpointBlockHead > .closeButton {
- position: absolute;
- top: 2px;
- right: 2px;
-}
-
-.breakpointCheckbox {
- margin-top: 0;
- vertical-align: top;
-}
-
-.breakpointName {
- margin-left: 4px;
- font-weight: bold;
-}
-
-.breakpointRow[aria-checked="false"] > .breakpointBlockHead > *,
-.breakpointRow[aria-checked="false"] > .breakpointCode {
- opacity: 0.5;
-}
-
-.breakpointRow[aria-checked="false"] .breakpointCheckbox,
-.breakpointRow[aria-checked="false"] .objectLink-sourceLink,
-.breakpointRow[aria-checked="false"] .closeButton,
-.breakpointRow[aria-checked="false"] .breakpointMutationType {
- opacity: 1.0 !important;
-}
-
-.breakpointCode {
- overflow: hidden;
- white-space: nowrap;
- padding-left: 24px;
- padding-bottom: 2px;
- border-bottom: 1px solid #D7D7D7;
- font-family: monospace;
- color: DarkGreen;
-}
-
-.breakpointCondition {
- white-space: nowrap;
- padding-left: 24px;
- padding-bottom: 2px;
- border-bottom: 1px solid #D7D7D7;
- font-family: monospace;
- color: Gray;
-}
-
-.breakpointBlock-breakpoints > .groupHeader {
- display: none;
-}
-
-.breakpointBlock-monitors > .breakpointCode {
- padding: 0;
-}
-
-.breakpointBlock-errorBreakpoints .breakpointCheckbox,
-.breakpointBlock-monitors .breakpointCheckbox {
- display: none;
-}
-
-.breakpointHeader {
- margin: 0 !important;
- border-top: none !important;
-}
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/detach.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/detach.png
deleted file mode 100644
index 0ddb9a17..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/detach.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/detachHover.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/detachHover.png
deleted file mode 100644
index e4192729..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/detachHover.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disable.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disable.gif
deleted file mode 100644
index dd9eb0e3..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disable.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disable.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disable.png
deleted file mode 100644
index c28bcdf2..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disable.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disableHover.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disableHover.gif
deleted file mode 100644
index 70565a83..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disableHover.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disableHover.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disableHover.png
deleted file mode 100644
index 26fe3754..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/disableHover.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/down.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/down.png
deleted file mode 100644
index acbbd30c..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/down.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/downActive.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/downActive.png
deleted file mode 100644
index f4312b2f..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/downActive.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/downHover.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/downHover.png
deleted file mode 100644
index 8144e637..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/downHover.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon-sm.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon-sm.png
deleted file mode 100644
index 0c377e30..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon-sm.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon.gif
deleted file mode 100644
index 8ee8116a..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon.png
deleted file mode 100644
index 2d75261b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/errorIcon.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug-1.3a2.css b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug-1.3a2.css
deleted file mode 100644
index 42f9faf5..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug-1.3a2.css
+++ /dev/null
@@ -1,817 +0,0 @@
-.fbBtnPressed {
- background: #ECEBE3;
- padding: 3px 6px 2px 7px !important;
- margin: 1px 0 0 1px;
- _margin: 1px -1px 0 1px;
- border: 1px solid #ACA899 !important;
- border-color: #ACA899 #ECEBE3 #ECEBE3 #ACA899 !important;
-}
-
-.fbToolbarButtons {
- display: none;
-}
-
-#fbStatusBarBox {
- display: none;
-}
-
-/************************************************************************************************
- Error Popup
-*************************************************************************************************/
-#fbErrorPopup {
- position: absolute;
- right: 0;
- bottom: 0;
- height: 19px;
- width: 75px;
- background: url(sprite.png) #f1f2ee 0 0;
- z-index: 999;
-}
-
-#fbErrorPopupContent {
- position: absolute;
- right: 0;
- top: 1px;
- height: 18px;
- width: 75px;
- _width: 74px;
- border-left: 1px solid #aca899;
-}
-
-#fbErrorIndicator {
- position: absolute;
- top: 2px;
- right: 5px;
-}
-
-
-
-
-
-
-
-
-
-
-.fbBtnInspectActive {
- background: #aaa;
- color: #fff !important;
-}
-
-/************************************************************************************************
- General
-*************************************************************************************************/
-html, body {
- margin: 0;
- padding: 0;
- overflow: hidden;
-}
-
-body {
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-size: 11px;
- background: #fff;
-}
-
-.clear {
- clear: both;
-}
-
-/************************************************************************************************
- Mini Chrome
-*************************************************************************************************/
-#fbMiniChrome {
- display: none;
- right: 0;
- height: 27px;
- background: url(sprite.png) #f1f2ee 0 0;
- margin-left: 1px;
-}
-
-#fbMiniContent {
- display: block;
- position: relative;
- left: -1px;
- right: 0;
- top: 1px;
- height: 25px;
- border-left: 1px solid #aca899;
-}
-
-#fbToolbarSearch {
- float: right;
- border: 1px solid #ccc;
- margin: 0 5px 0 0;
- background: #fff url(search.png) no-repeat 4px 2px;
- padding-left: 20px;
- font-size: 11px;
-}
-
-#fbToolbarErrors {
- float: right;
- margin: 1px 4px 0 0;
- font-size: 11px;
-}
-
-#fbLeftToolbarErrors {
- float: left;
- margin: 7px 0px 0 5px;
- font-size: 11px;
-}
-
-.fbErrors {
- padding-left: 20px;
- height: 14px;
- background: url(errorIcon.png) no-repeat;
- color: #f00;
- font-weight: bold;
-}
-
-#fbMiniErrors {
- display: inline;
- display: none;
- float: right;
- margin: 5px 2px 0 5px;
-}
-
-#fbMiniIcon {
- float: right;
- margin: 3px 4px 0;
- height: 20px;
- width: 20px;
- float: right;
- background: url(sprite.png) 0 -135px;
- cursor: pointer;
-}
-
-
-/************************************************************************************************
- Master Layout
-*************************************************************************************************/
-#fbChrome {
- position: fixed;
- overflow: hidden;
- height: 100%;
- width: 100%;
- border-collapse: collapse;
- background: #fff;
-}
-
-#fbTop {
- height: 49px;
-}
-
-#fbToolbar {
- position: absolute;
- z-index: 5;
- width: 100%;
- top: 0;
- background: url(sprite.png) #f1f2ee 0 0;
- height: 27px;
- font-size: 11px;
- overflow: hidden;
-}
-
-#fbPanelBarBox {
- top: 27px;
- position: absolute;
- z-index: 8;
- width: 100%;
- background: url(sprite.png) #dbd9c9 0 -27px;
- height: 22px;
-}
-
-#fbContent {
- height: 100%;
- vertical-align: top;
-}
-
-#fbBottom {
- height: 18px;
- background: #fff;
-}
-
-/************************************************************************************************
- Sub-Layout
-*************************************************************************************************/
-
-/* fbToolbar
-*************************************************************************************************/
-#fbToolbarIcon {
- float: left;
- padding: 4px 5px 0;
-}
-
-#fbToolbarIcon a {
- display: block;
- height: 20px;
- width: 20px;
- background: url(sprite.png) 0 -135px;
- text-decoration: none;
- cursor: default;
-}
-
-#fbToolbarButtons {
- float: left;
- padding: 4px 2px 0 5px;
-}
-
-#fbToolbarButtons a {
- text-decoration: none;
- display: block;
- float: left;
- color: #000;
- padding: 4px 8px 4px;
- cursor: default;
-}
-
-#fbToolbarButtons a:hover {
- color: #333;
- padding: 3px 7px 3px;
- border: 1px solid #fff;
- border-bottom: 1px solid #bbb;
- border-right: 1px solid #bbb;
-}
-
-#fbStatusBarBox {
- position: relative;
- top: 5px;
- line-height: 19px;
- cursor: default;
-}
-
-.fbToolbarSeparator{
- overflow: hidden;
- border: 1px solid;
- border-color: transparent #fff transparent #777;
- _border-color: #eee #fff #eee #777;
- height: 7px;
- margin: 10px 6px 0 0;
- float: left;
-}
-
-.fbStatusBar span {
- color: #808080;
- padding: 0 4px 0 0;
-}
-
-.fbStatusBar span a {
- text-decoration: none;
- color: black;
-}
-
-.fbStatusBar span a:hover {
- color: blue;
- cursor: pointer;
-}
-
-
-#fbWindowButtons {
- position: absolute;
- white-space: nowrap;
- right: 0;
- top: 0;
- height: 17px;
- _width: 50px;
- padding: 5px 0 5px 5px;
- z-index: 6;
- background: url(sprite.png) #f1f2ee 0 0;
-}
-
-/* fbPanelBarBox
-*************************************************************************************************/
-
-#fbPanelBar1 {
- width: 255px; /* fixed width to avoid tabs breaking line */
- z-index: 8;
- left: 0;
- white-space: nowrap;
- background: url(sprite.png) #dbd9c9 0 -27px;
- position: absolute;
- left: 4px;
-}
-
-#fbPanelBar2Box {
- background: url(sprite.png) #dbd9c9 0 -27px;
- position: absolute;
- height: 22px;
- width: 300px; /* fixed width to avoid tabs breaking line */
- z-index: 9;
- right: 0;
-}
-
-#fbPanelBar2 {
- position: absolute;
- width: 290px; /* fixed width to avoid tabs breaking line */
- height: 22px;
- padding-left: 10px;
-}
-
-/* body
-*************************************************************************************************/
-.fbPanel {
- display: none;
-}
-
-#fbPanelBox1, #fbPanelBox2 {
- max-height: inherit;
- height: 100%;
- font-size: 11px;
-}
-
-#fbPanelBox2 {
- background: #fff;
-}
-
-#fbPanelBox2 {
- width: 300px;
- background: #fff;
-}
-
-#fbPanel2 {
- padding-left: 6px;
- background: #fff;
-}
-
-.hide {
- overflow: hidden !important;
- position: fixed !important;
- display: none !important;
- visibility: hidden !important;
-}
-
-/* fbBottom
-*************************************************************************************************/
-
-#fbCommand {
- height: 18px;
-}
-
-#fbCommandBox {
- position: absolute;
- width: 100%;
- height: 18px;
- bottom: 0;
- overflow: hidden;
- z-index: 9;
- background: #fff;
- border: 0;
- border-top: 1px solid #ccc;
-}
-
-#fbCommandIcon {
- position: absolute;
- color: #00f;
- top: 2px;
- left: 7px;
- display: inline;
- font: 11px Monaco, monospace;
- z-index: 10;
-}
-
-#fbCommandLine {
- position: absolute;
- width: 100%;
- top: 0;
- left: 0;
- border: 0;
- margin: 0;
- padding: 2px 0 2px 32px;
- font: 11px Monaco, monospace;
- z-index: 9;
-}
-
-div.fbFitHeight {
- overflow: auto;
- _position: absolute;
-}
-
-
-/************************************************************************************************
- Layout Controls
-*************************************************************************************************/
-
-/* fbToolbar buttons
-*************************************************************************************************/
-#fbWindowButtons a {
- font-size: 1px;
- width: 16px;
- height: 16px;
- display: block;
- float: right;
- margin-right: 4px;
- text-decoration: none;
- cursor: default;
-}
-
-#fbWindow_btClose {
- background: url(sprite.png) 0 -119px;
-}
-
-#fbWindow_btClose:hover {
- background: url(sprite.png) -16px -119px;
-}
-
-#fbWindow_btDetach {
- background: url(sprite.png) -32px -119px;
-}
-
-#fbWindow_btDetach:hover {
- background: url(sprite.png) -48px -119px;
-}
-
-/* fbPanelBarBox tabs
-*************************************************************************************************/
-.fbTab {
- text-decoration: none;
- display: none;
- float: left;
- width: auto;
- float: left;
- cursor: default;
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-size: 11px;
- font-weight: bold;
- height: 22px;
- color: #565656;
-}
-
-.fbPanelBar span {
- display: block;
- float: left;
-}
-
-.fbPanelBar .fbTabL,.fbPanelBar .fbTabR {
- height: 22px;
- width: 8px;
-}
-
-.fbPanelBar .fbTabText {
- padding: 4px 1px 0;
-}
-
-a.fbTab:hover {
- background: url(sprite.png) 0 -73px;
-}
-
-a.fbTab:hover .fbTabL {
- background: url(sprite.png) -16px -96px;
-}
-
-a.fbTab:hover .fbTabR {
- background: url(sprite.png) -24px -96px;
-}
-
-.fbSelectedTab {
- background: url(sprite.png) #f1f2ee 0 -50px !important;
- color: #000;
-}
-
-.fbSelectedTab .fbTabL {
- background: url(sprite.png) 0 -96px !important;
-}
-
-.fbSelectedTab .fbTabR {
- background: url(sprite.png) -8px -96px !important;
-}
-
-/* splitters
-*************************************************************************************************/
-#fbHSplitter {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 5px;
- overflow: hidden;
- cursor: n-resize !important;
- background: url(pixel_transparent.gif);
- z-index: 9;
-}
-
-#fbHSplitter.fbOnMovingHSplitter {
- height: 100%;
- z-index: 100;
-}
-
-.fbVSplitter {
- background: #ece9d8;
- color: #000;
- border: 1px solid #716f64;
- border-width: 0 1px;
- border-left-color: #aca899;
- width: 4px;
- cursor: e-resize;
- overflow: hidden;
- right: 294px;
- text-decoration: none;
- z-index: 9;
- position: absolute;
- height: 100%;
- top: 27px;
- _width: 6px;
-}
-
-/************************************************************************************************/
-div.lineNo {
- font: 11px Monaco, monospace;
- float: left;
- display: inline;
- position: relative;
- margin: 0;
- padding: 0 5px 0 20px;
- background: #eee;
- color: #888;
- border-right: 1px solid #ccc;
- text-align: right;
-}
-
-pre.nodeCode {
- font: 11px Monaco, monospace;
- margin: 0;
- padding-left: 10px;
- overflow: hidden;
- /*
- _width: 100%;
- /**/
-}
-
-/************************************************************************************************/
-.nodeControl {
- margin-top: 3px;
- margin-left: -14px;
- float: left;
- width: 9px;
- height: 9px;
- overflow: hidden;
- cursor: default;
- background: url(tree_open.gif);
- _float: none;
- _display: inline;
- _position: absolute;
-}
-
-div.nodeMaximized {
- background: url(tree_close.gif);
-}
-
-div.objectBox-element {
- padding: 1px 3px;
-}
-.objectBox-selector{
- cursor: default;
-}
-
-.selectedElement{
- background: highlight;
- /* background: url(roundCorner.svg); Opera */
- color: #fff !important;
-}
-.selectedElement span{
- color: #fff !important;
-}
-
-/* Webkit CSS Hack - bug in "highlight" named color */
-@media screen and (-webkit-min-device-pixel-ratio:0) {
- .selectedElement{
- background: #316AC5;
- color: #fff !important;
- }
-}
-
-/************************************************************************************************/
-/************************************************************************************************/
-.logRow * {
- font-size: 11px;
-}
-
-.logRow {
- position: relative;
- border-bottom: 1px solid #D7D7D7;
- padding: 2px 4px 1px 6px;
- background-color: #FFFFFF;
-}
-
-.logRow-command {
- font-family: Monaco, monospace;
- color: blue;
-}
-
-.objectBox-string,
-.objectBox-text,
-.objectBox-number,
-.objectBox-function,
-.objectLink-element,
-.objectLink-textNode,
-.objectLink-function,
-.objectBox-stackTrace,
-.objectLink-profile {
- font-family: Monaco, monospace;
-}
-
-.objectBox-null {
- padding: 0 2px;
- border: 1px solid #666666;
- background-color: #888888;
- color: #FFFFFF;
-}
-
-.objectBox-string {
- color: red;
- white-space: pre;
-}
-
-.objectBox-number {
- color: #000088;
-}
-
-.objectBox-function {
- color: DarkGreen;
-}
-
-.objectBox-object {
- color: DarkGreen;
- font-weight: bold;
- font-family: Lucida Grande, sans-serif;
-}
-
-.objectBox-array {
- color: #000;
-}
-
-/************************************************************************************************/
-.logRow-info,.logRow-error,.logRow-warning {
- background: #fff no-repeat 2px 2px;
- padding-left: 20px;
- padding-bottom: 3px;
-}
-
-.logRow-info {
- background-image: url(infoIcon.png);
-}
-
-.logRow-warning {
- background-color: cyan;
- background-image: url(warningIcon.png);
-}
-
-.logRow-error {
- background-color: LightYellow;
- background-image: url(errorIcon.png);
- color: #f00;
-}
-
-.errorMessage {
- vertical-align: top;
- color: #f00;
-}
-
-.objectBox-sourceLink {
- position: absolute;
- right: 4px;
- top: 2px;
- padding-left: 8px;
- font-family: Lucida Grande, sans-serif;
- font-weight: bold;
- color: #0000FF;
-}
-
-/************************************************************************************************/
-.logRow-group {
- background: #EEEEEE;
- border-bottom: none;
-}
-
-.logGroup {
- background: #EEEEEE;
-}
-
-.logGroupBox {
- margin-left: 24px;
- border-top: 1px solid #D7D7D7;
- border-left: 1px solid #D7D7D7;
-}
-
-/************************************************************************************************/
-.selectorTag,.selectorId,.selectorClass {
- font-family: Monaco, monospace;
- font-weight: normal;
-}
-
-.selectorTag {
- color: #0000FF;
-}
-
-.selectorId {
- color: DarkBlue;
-}
-
-.selectorClass {
- color: red;
-}
-
-/************************************************************************************************/
-.objectBox-element {
- font-family: Monaco, monospace;
- color: #000088;
-}
-
-.nodeChildren {
- padding-left: 26px;
-}
-
-.nodeTag {
- color: blue;
- cursor: pointer;
-}
-
-.nodeValue {
- color: #FF0000;
- font-weight: normal;
-}
-
-.nodeText,.nodeComment {
- margin: 0 2px;
- vertical-align: top;
-}
-
-.nodeText {
- color: #333333;
- font-family: Monaco, monospace;
-}
-
-.nodeComment {
- color: DarkGreen;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.nodeHidden, .nodeHidden * {
- color: #888888;
-}
-
-.nodeHidden .nodeTag {
- color: #5F82D9;
-}
-
-.nodeHidden .nodeValue {
- color: #D86060;
-}
-
-.selectedElement .nodeHidden, .selectedElement .nodeHidden * {
- color: SkyBlue !important;
-}
-
-
-/************************************************************************************************/
-.log-object {
- /*
- _position: relative;
- _height: 100%;
- /**/
-}
-
-.property {
- position: relative;
- clear: both;
- height: 15px;
-}
-
-.propertyNameCell {
- vertical-align: top;
- float: left;
- width: 28%;
- position: absolute;
- left: 0;
- z-index: 0;
-}
-
-.propertyValueCell {
- float: right;
- width: 68%;
- background: #fff;
- position: absolute;
- padding-left: 5px;
- display: table-cell;
- right: 0;
- z-index: 1;
- /*
- _position: relative;
- /**/
-}
-
-.propertyName {
- font-weight: bold;
-}
-
-.FirebugPopup {
- height: 100% !important;
-}
-
-.FirebugPopup #fbWindowButtons {
- display: none !important;
-}
-
-.FirebugPopup #fbHSplitter {
- display: none !important;
-}
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.IE6.css b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.IE6.css
deleted file mode 100644
index 13a41d28..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.IE6.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/************************************************************************************************/
-#fbToolbarSearch {
- background-image: url(search.gif) !important;
-}
-/************************************************************************************************/
-.fbErrors {
- background-image: url(errorIcon.gif) !important;
-}
-/************************************************************************************************/
-.logRow-info {
- background-image: url(infoIcon.gif) !important;
-}
-
-.logRow-warning {
- background-image: url(warningIcon.gif) !important;
-}
-
-.logRow-error {
- background-image: url(errorIcon.gif) !important;
-}
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.css b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.css
deleted file mode 100644
index a1465ec5..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.css
+++ /dev/null
@@ -1,3147 +0,0 @@
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/* Loose */
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*
-.netInfoResponseHeadersTitle, netInfoResponseHeadersBody {
- display: none;
-}
-/**/
-
-.obscured {
- left: -999999px !important;
-}
-
-/* IE6 need a separated rule, otherwise it will not recognize it */
-.collapsed {
- display: none;
-}
-
-[collapsed="true"] {
- display: none;
-}
-
-#fbCSS {
- padding: 0 !important;
-}
-
-.cssPropDisable {
- float: left;
- display: block;
- width: 2em;
- cursor: default;
-}
-
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/* panelBase */
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-
-/************************************************************************************************/
-
-.infoTip {
- z-index: 2147483647;
- position: fixed;
- padding: 2px 3px;
- border: 1px solid #CBE087;
- background: LightYellow;
- font-family: Monaco, monospace;
- color: #000000;
- display: none;
- white-space: nowrap;
- pointer-events: none;
-}
-
-.infoTip[active="true"] {
- display: block;
-}
-
-.infoTipLoading {
- width: 16px;
- height: 16px;
- background: url(chrome://firebug/skin/loading_16.gif) no-repeat;
-}
-
-.infoTipImageBox {
- font-size: 11px;
- min-width: 100px;
- text-align: center;
-}
-
-.infoTipCaption {
- font-size: 11px;
- font: Monaco, monospace;
-}
-
-.infoTipLoading > .infoTipImage,
-.infoTipLoading > .infoTipCaption {
- display: none;
-}
-
-/************************************************************************************************/
-
-h1.groupHeader {
- padding: 2px 4px;
- margin: 0 0 4px 0;
- border-top: 1px solid #CCCCCC;
- border-bottom: 1px solid #CCCCCC;
- background: #eee url(group.gif) repeat-x;
- font-size: 11px;
- font-weight: bold;
- _position: relative;
-}
-
-/************************************************************************************************/
-
-.inlineEditor,
-.fixedWidthEditor {
- z-index: 2147483647;
- position: absolute;
- display: none;
-}
-
-.inlineEditor {
- margin-left: -6px;
- margin-top: -3px;
- /*
- _margin-left: -7px;
- _margin-top: -5px;
- /**/
-}
-
-.textEditorInner,
-.fixedWidthEditor {
- margin: 0 0 0 0 !important;
- padding: 0;
- border: none !important;
- font: inherit;
- text-decoration: inherit;
- background-color: #FFFFFF;
-}
-
-.fixedWidthEditor {
- border-top: 1px solid #888888 !important;
- border-bottom: 1px solid #888888 !important;
-}
-
-.textEditorInner {
- position: relative;
- top: -7px;
- left: -5px;
-
- outline: none;
- resize: none;
-
- /*
- _border: 1px solid #999 !important;
- _padding: 1px !important;
- _filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color="#55404040");
- /**/
-}
-
-.textEditorInner1 {
- padding-left: 11px;
- background: url(textEditorBorders.png) repeat-y;
- _background: url(textEditorBorders.gif) repeat-y;
- _overflow: hidden;
-}
-
-.textEditorInner2 {
- position: relative;
- padding-right: 2px;
- background: url(textEditorBorders.png) repeat-y 100% 0;
- _background: url(textEditorBorders.gif) repeat-y 100% 0;
- _position: fixed;
-}
-
-.textEditorTop1 {
- background: url(textEditorCorners.png) no-repeat 100% 0;
- margin-left: 11px;
- height: 10px;
- _background: url(textEditorCorners.gif) no-repeat 100% 0;
- _overflow: hidden;
-}
-
-.textEditorTop2 {
- position: relative;
- left: -11px;
- width: 11px;
- height: 10px;
- background: url(textEditorCorners.png) no-repeat;
- _background: url(textEditorCorners.gif) no-repeat;
-}
-
-.textEditorBottom1 {
- position: relative;
- background: url(textEditorCorners.png) no-repeat 100% 100%;
- margin-left: 11px;
- height: 12px;
- _background: url(textEditorCorners.gif) no-repeat 100% 100%;
-}
-
-.textEditorBottom2 {
- position: relative;
- left: -11px;
- width: 11px;
- height: 12px;
- background: url(textEditorCorners.png) no-repeat 0 100%;
- _background: url(textEditorCorners.gif) no-repeat 0 100%;
-}
-
-
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/* CSS */
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-
-/* See license.txt for terms of usage */
-
-.panelNode-css {
- overflow-x: hidden;
-}
-
-.cssSheet > .insertBefore {
- height: 1.5em;
-}
-
-.cssRule {
- position: relative;
- margin: 0;
- padding: 1em 0 0 6px;
- font-family: Monaco, monospace;
- color: #000000;
-}
-
-.cssRule:first-child {
- padding-top: 6px;
-}
-
-.cssElementRuleContainer {
- position: relative;
-}
-
-.cssHead {
- padding-right: 150px;
-}
-
-.cssProp {
- /*padding-left: 2em;*/
-}
-
-.cssPropName {
- color: DarkGreen;
-}
-
-.cssPropValue {
- margin-left: 8px;
- color: DarkBlue;
-}
-
-.cssOverridden span {
- text-decoration: line-through;
-}
-
-.cssInheritedRule {
-}
-
-.cssInheritLabel {
- margin-right: 0.5em;
- font-weight: bold;
-}
-
-.cssRule .objectLink-sourceLink {
- top: 0;
-}
-
-.cssProp.editGroup:hover {
- background: url(disable.png) no-repeat 2px 1px;
- _background: url(disable.gif) no-repeat 2px 1px;
-}
-
-.cssProp.editGroup.editing {
- background: none;
-}
-
-.cssProp.disabledStyle {
- background: url(disableHover.png) no-repeat 2px 1px;
- _background: url(disableHover.gif) no-repeat 2px 1px;
- opacity: 1;
- color: #CCCCCC;
-}
-
-.disabledStyle .cssPropName,
-.disabledStyle .cssPropValue {
- color: #CCCCCC;
-}
-
-.cssPropValue.editing + .cssSemi,
-.inlineExpander + .cssSemi {
- display: none;
-}
-
-.cssPropValue.editing {
- white-space: nowrap;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.stylePropName {
- font-weight: bold;
- padding: 0 4px 4px 4px;
- width: 50%;
-}
-
-.stylePropValue {
- width: 50%;
-}
-/*
-.useA11y .a11yCSSView .focusRow:focus {
- outline: none;
- background-color: transparent
- }
-
- .useA11y .a11yCSSView .focusRow:focus .cssSelector,
- .useA11y .a11yCSSView .focusRow:focus .cssPropName,
- .useA11y .a11yCSSView .focusRow:focus .cssPropValue,
- .useA11y .a11yCSSView .computedStyleRow:focus,
- .useA11y .a11yCSSView .groupHeader:focus {
- outline: 2px solid #FF9933;
- outline-offset: -2px;
- background-color: #FFFFD6;
- }
-
- .useA11y .a11yCSSView .groupHeader:focus {
- outline-offset: -2px;
- }
-/**/
-
-
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/* Net */
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-
-/* See license.txt for terms of usage */
-
-.panelNode-net {
- overflow-x: hidden;
-}
-
-.netTable {
- width: 100%;
-}
-
-/************************************************************************************************/
-
-.hideCategory-undefined .category-undefined,
-.hideCategory-html .category-html,
-.hideCategory-css .category-css,
-.hideCategory-js .category-js,
-.hideCategory-image .category-image,
-.hideCategory-xhr .category-xhr,
-.hideCategory-flash .category-flash,
-.hideCategory-txt .category-txt,
-.hideCategory-bin .category-bin {
- display: none;
-}
-
-/************************************************************************************************/
-
-.netHeadRow {
- background: url(chrome://firebug/skin/group.gif) repeat-x #FFFFFF;
-}
-
-.netHeadCol {
- border-bottom: 1px solid #CCCCCC;
- padding: 2px 4px 2px 18px;
- font-weight: bold;
-}
-
-.netHeadLabel {
- white-space: nowrap;
- overflow: hidden;
-}
-
-/************************************************************************************************/
-/* Header for Net panel table */
-
-.netHeaderRow {
- height: 16px;
-}
-
-.netHeaderCell {
- cursor: pointer;
- -moz-user-select: none;
- border-bottom: 1px solid #9C9C9C;
- padding: 0 !important;
- font-weight: bold;
- background: #BBBBBB url(chrome://firebug/skin/tableHeader.gif) repeat-x;
- white-space: nowrap;
-}
-
-.netHeaderRow > .netHeaderCell:first-child > .netHeaderCellBox {
- padding: 2px 14px 2px 18px;
-}
-
-.netHeaderCellBox {
- padding: 2px 14px 2px 10px;
- border-left: 1px solid #D9D9D9;
- border-right: 1px solid #9C9C9C;
-}
-
-.netHeaderCell:hover:active {
- background: #959595 url(chrome://firebug/skin/tableHeaderActive.gif) repeat-x;
-}
-
-.netHeaderSorted {
- background: #7D93B2 url(chrome://firebug/skin/tableHeaderSorted.gif) repeat-x;
-}
-
-.netHeaderSorted > .netHeaderCellBox {
- border-right-color: #6B7C93;
- background: url(chrome://firebug/skin/arrowDown.png) no-repeat right;
-}
-
-.netHeaderSorted.sortedAscending > .netHeaderCellBox {
- background-image: url(chrome://firebug/skin/arrowUp.png);
-}
-
-.netHeaderSorted:hover:active {
- background: #536B90 url(chrome://firebug/skin/tableHeaderSortedActive.gif) repeat-x;
-}
-
-/************************************************************************************************/
-/* Breakpoints */
-
-.panelNode-net .netRowHeader {
- display: block;
-}
-
-.netRowHeader {
- cursor: pointer;
- display: none;
- height: 15px;
- margin-right: 0 !important;
-}
-
-/* Display brekpoint disc */
-.netRow .netRowHeader {
- background-position: 5px 1px;
-}
-
-.netRow[breakpoint="true"] .netRowHeader {
- background-image: url(chrome://firebug/skin/breakpoint.png);
-}
-
-.netRow[breakpoint="true"][disabledBreakpoint="true"] .netRowHeader {
- background-image: url(chrome://firebug/skin/breakpointDisabled.png);
-}
-
-.netRow.category-xhr:hover .netRowHeader {
- background-color: #F6F6F6;
-}
-
-#netBreakpointBar {
- max-width: 38px;
-}
-
-#netHrefCol > .netHeaderCellBox {
- border-left: 0px;
-}
-
-.netRow .netRowHeader {
- width: 3px;
-}
-
-.netInfoRow .netRowHeader {
- display: table-cell;
-}
-
-/************************************************************************************************/
-/* Column visibility */
-
-.netTable[hiddenCols~=netHrefCol] TD[id="netHrefCol"],
-.netTable[hiddenCols~=netHrefCol] TD.netHrefCol,
-.netTable[hiddenCols~=netStatusCol] TD[id="netStatusCol"],
-.netTable[hiddenCols~=netStatusCol] TD.netStatusCol,
-.netTable[hiddenCols~=netDomainCol] TD[id="netDomainCol"],
-.netTable[hiddenCols~=netDomainCol] TD.netDomainCol,
-.netTable[hiddenCols~=netSizeCol] TD[id="netSizeCol"],
-.netTable[hiddenCols~=netSizeCol] TD.netSizeCol,
-.netTable[hiddenCols~=netTimeCol] TD[id="netTimeCol"],
-.netTable[hiddenCols~=netTimeCol] TD.netTimeCol {
- display: none;
-}
-
-/************************************************************************************************/
-
-.netRow {
- background: LightYellow;
-}
-
-.netRow.loaded {
- background: #FFFFFF;
-}
-
-.netRow.loaded:hover {
- background: #EFEFEF;
-}
-
-.netCol {
- padding: 0;
- vertical-align: top;
- border-bottom: 1px solid #EFEFEF;
- white-space: nowrap;
- height: 17px;
-}
-
-.netLabel {
- width: 100%;
-}
-
-.netStatusCol {
- padding-left: 10px;
- color: rgb(128, 128, 128);
-}
-
-.responseError > .netStatusCol {
- color: red;
-}
-
-.netDomainCol {
- padding-left: 5px;
-}
-
-.netSizeCol {
- text-align: right;
- padding-right: 10px;
-}
-
-.netHrefLabel {
- -moz-box-sizing: padding-box;
- overflow: hidden;
- z-index: 10;
- position: absolute;
- padding-left: 18px;
- padding-top: 1px;
- max-width: 15%;
- font-weight: bold;
-}
-
-.netFullHrefLabel {
- display: none;
- -moz-user-select: none;
- padding-right: 10px;
- padding-bottom: 3px;
- max-width: 100%;
- background: #FFFFFF;
- z-index: 200;
-}
-
-.netHrefCol:hover > .netFullHrefLabel {
- display: block;
-}
-
-.netRow.loaded:hover .netCol > .netFullHrefLabel {
- background-color: #EFEFEF;
-}
-
-.useA11y .a11yShowFullLabel {
- display: block;
- background-image: none !important;
- border: 1px solid #CBE087;
- background-color: LightYellow;
- font-family: Monaco, monospace;
- color: #000000;
- font-size: 10px;
- z-index: 2147483647;
-}
-
-.netSizeLabel {
- padding-left: 6px;
-}
-
-.netStatusLabel,
-.netDomainLabel,
-.netSizeLabel,
-.netBar {
- padding: 1px 0 2px 0 !important;
-}
-
-.responseError {
- color: red;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.hasHeaders .netHrefLabel:hover {
- cursor: pointer;
- color: blue;
- text-decoration: underline;
-}
-
-/************************************************************************************************/
-
-.netLoadingIcon {
- position: absolute;
- border: 0;
- margin-left: 14px;
- width: 16px;
- height: 16px;
- background: transparent no-repeat 0 0;
- background-image: url(chrome://firebug/skin/loading_16.gif);
- display:inline-block;
-}
-
-.loaded .netLoadingIcon {
- display: none;
-}
-
-/************************************************************************************************/
-
-.netBar, .netSummaryBar {
- position: relative;
- border-right: 50px solid transparent;
-}
-
-.netResolvingBar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- background: #FFFFFF url(chrome://firebug/skin/netBarResolving.gif) repeat-x;
- z-index:60;
-}
-
-.netConnectingBar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- background: #FFFFFF url(chrome://firebug/skin/netBarConnecting.gif) repeat-x;
- z-index:50;
-}
-
-.netBlockingBar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- background: #FFFFFF url(chrome://firebug/skin/netBarWaiting.gif) repeat-x;
- z-index:40;
-}
-
-.netSendingBar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- background: #FFFFFF url(chrome://firebug/skin/netBarSending.gif) repeat-x;
- z-index:30;
-}
-
-.netWaitingBar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- background: #FFFFFF url(chrome://firebug/skin/netBarResponded.gif) repeat-x;
- z-index:20;
- min-width: 1px;
-}
-
-.netReceivingBar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- background: #38D63B url(chrome://firebug/skin/netBarLoading.gif) repeat-x;
- z-index:10;
-}
-
-.netWindowLoadBar,
-.netContentLoadBar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 1px;
- background-color: red;
- z-index: 70;
- opacity: 0.5;
- display: none;
- margin-bottom:-1px;
-}
-
-.netContentLoadBar {
- background-color: Blue;
-}
-
-.netTimeLabel {
- -moz-box-sizing: padding-box;
- position: absolute;
- top: 1px;
- left: 100%;
- padding-left: 6px;
- color: #444444;
- min-width: 16px;
-}
-
-/*
- * Timing info tip is reusing net timeline styles to display the same
- * colors for individual request phases. Notice that the info tip must
- * respect also loaded and fromCache styles that also modify the
- * actual color. These are used both on the same element in case
- * of the tooltip.
- */
-.loaded .netReceivingBar,
-.loaded.netReceivingBar {
- background: #B6B6B6 url(chrome://firebug/skin/netBarLoaded.gif) repeat-x;
- border-color: #B6B6B6;
-}
-
-.fromCache .netReceivingBar,
-.fromCache.netReceivingBar {
- background: #D6D6D6 url(chrome://firebug/skin/netBarCached.gif) repeat-x;
- border-color: #D6D6D6;
-}
-
-.netSummaryRow .netTimeLabel,
-.loaded .netTimeLabel {
- background: transparent;
-}
-
-/************************************************************************************************/
-/* Time Info tip */
-
-.timeInfoTip {
- width: 150px;
- height: 40px
-}
-
-.timeInfoTipBar,
-.timeInfoTipEventBar {
- position: relative;
- display: block;
- margin: 0;
- opacity: 1;
- height: 15px;
- width: 4px;
-}
-
-.timeInfoTipEventBar {
- width: 1px !important;
-}
-
-.timeInfoTipCell.startTime {
- padding-right: 8px;
-}
-
-.timeInfoTipCell.elapsedTime {
- text-align: right;
- padding-right: 8px;
-}
-
-/************************************************************************************************/
-/* Size Info tip */
-
-.sizeInfoLabelCol {
- font-weight: bold;
- padding-right: 10px;
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-size: 11px;
-}
-
-.sizeInfoSizeCol {
- font-weight: bold;
-}
-
-.sizeInfoDetailCol {
- color: gray;
- text-align: right;
-}
-
-.sizeInfoDescCol {
- font-style: italic;
-}
-
-/************************************************************************************************/
-/* Summary */
-
-.netSummaryRow .netReceivingBar {
- background: #BBBBBB;
- border: none;
-}
-
-.netSummaryLabel {
- color: #222222;
-}
-
-.netSummaryRow {
- background: #BBBBBB !important;
- font-weight: bold;
-}
-
-.netSummaryRow .netBar {
- border-right-color: #BBBBBB;
-}
-
-.netSummaryRow > .netCol {
- border-top: 1px solid #999999;
- border-bottom: 2px solid;
- -moz-border-bottom-colors: #EFEFEF #999999;
- padding-top: 1px;
- padding-bottom: 2px;
-}
-
-.netSummaryRow > .netHrefCol:hover {
- background: transparent !important;
-}
-
-.netCountLabel {
- padding-left: 18px;
-}
-
-.netTotalSizeCol {
- text-align: right;
- padding-right: 10px;
-}
-
-.netTotalTimeCol {
- text-align: right;
-}
-
-.netCacheSizeLabel {
- position: absolute;
- z-index: 1000;
- left: 0;
- top: 0;
-}
-
-/************************************************************************************************/
-
-.netLimitRow {
- background: rgb(255, 255, 225) !important;
- font-weight:normal;
- color: black;
- font-weight:normal;
-}
-
-.netLimitLabel {
- padding-left: 18px;
-}
-
-.netLimitRow > .netCol {
- border-bottom: 2px solid;
- -moz-border-bottom-colors: #EFEFEF #999999;
- vertical-align: middle !important;
- padding-top: 2px;
- padding-bottom: 2px;
-}
-
-.netLimitButton {
- font-size: 11px;
- padding-top: 1px;
- padding-bottom: 1px;
-}
-
-/************************************************************************************************/
-
-.netInfoCol {
- border-top: 1px solid #EEEEEE;
- background: url(chrome://firebug/skin/group.gif) repeat-x #FFFFFF;
-}
-
-.netInfoBody {
- margin: 10px 0 4px 10px;
-}
-
-.netInfoTabs {
- position: relative;
- padding-left: 17px;
-}
-
-.netInfoTab {
- position: relative;
- top: -3px;
- margin-top: 10px;
- padding: 4px 6px;
- border: 1px solid transparent;
- border-bottom: none;
- _border: none;
- font-weight: bold;
- color: #565656;
- cursor: pointer;
-}
-
-/*.netInfoTab:hover {
- cursor: pointer;
-}*/
-
-/* replaced by .netInfoTabSelected for IE6 support
-.netInfoTab[selected="true"] {
- cursor: default !important;
- border: 1px solid #D7D7D7 !important;
- border-bottom: none !important;
- -moz-border-radius: 4px 4px 0 0;
- background-color: #FFFFFF;
-}
-/**/
-.netInfoTabSelected {
- cursor: default !important;
- border: 1px solid #D7D7D7 !important;
- border-bottom: none !important;
- -moz-border-radius: 4px 4px 0 0;
- -webkit-border-radius: 4px 4px 0 0;
- border-radius: 4px 4px 0 0;
- background-color: #FFFFFF;
-}
-
-.logRow-netInfo.error .netInfoTitle {
- color: red;
-}
-
-.logRow-netInfo.loading .netInfoResponseText {
- font-style: italic;
- color: #888888;
-}
-
-.loading .netInfoResponseHeadersTitle {
- display: none;
-}
-
-.netInfoResponseSizeLimit {
- font-family: Lucida Grande, Tahoma, sans-serif;
- padding-top: 10px;
- font-size: 11px;
-}
-
-.netInfoText {
- display: none;
- margin: 0;
- border: 1px solid #D7D7D7;
- border-right: none;
- padding: 8px;
- background-color: #FFFFFF;
- font-family: Monaco, monospace;
- white-space: pre-wrap;
- /*overflow-x: auto; HTML is damaged in case of big (2-3MB) responses */
-}
-
-/* replaced by .netInfoTextSelected for IE6 support
-.netInfoText[selected="true"] {
- display: block;
-}
-/**/
-.netInfoTextSelected {
- display: block;
-}
-
-.netInfoParamName {
- padding-right: 10px;
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-weight: bold;
- vertical-align: top;
- text-align: right;
- white-space: nowrap;
-}
-
-.netInfoPostText .netInfoParamName {
- width: 1px; /* Google Chrome need this otherwise the first column of
- the post variables table will be larger than expected */
-}
-
-.netInfoParamValue {
- width: 100%;
-}
-
-.netInfoHeadersText,
-.netInfoPostText,
-.netInfoPutText {
- padding-top: 0;
-}
-
-.netInfoHeadersGroup,
-.netInfoPostParams,
-.netInfoPostSource {
- margin-bottom: 4px;
- border-bottom: 1px solid #D7D7D7;
- padding-top: 8px;
- padding-bottom: 2px;
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-weight: bold;
- color: #565656;
-}
-
-.netInfoPostParamsTable,
-.netInfoPostPartsTable,
-.netInfoPostJSONTable,
-.netInfoPostXMLTable,
-.netInfoPostSourceTable {
- margin-bottom: 10px;
- width: 100%;
-}
-
-.netInfoPostContentType {
- color: #bdbdbd;
- padding-left: 50px;
- font-weight: normal;
-}
-
-.netInfoHtmlPreview {
- border: 0;
- width: 100%;
- height:100%;
-}
-
-/************************************************************************************************/
-/* Request & Response Headers */
-
-.netHeadersViewSource {
- color: #bdbdbd;
- margin-left: 200px;
- font-weight: normal;
-}
-
-.netHeadersViewSource:hover {
- color: blue;
- cursor: pointer;
-}
-
-/************************************************************************************************/
-
-.netActivationRow,
-.netPageSeparatorRow {
- background: rgb(229, 229, 229) !important;
- font-weight: normal;
- color: black;
-}
-
-.netActivationLabel {
- background: url(chrome://firebug/skin/infoIcon.png) no-repeat 3px 2px;
- padding-left: 22px;
-}
-
-/************************************************************************************************/
-
-.netPageSeparatorRow {
- height: 5px !important;
-}
-
-.netPageSeparatorLabel {
- padding-left: 22px;
- height: 5px !important;
-}
-
-.netPageRow {
- background-color: rgb(255, 255, 255);
-}
-
-.netPageRow:hover {
- background: #EFEFEF;
-}
-
-.netPageLabel {
- padding: 1px 0 2px 18px !important;
- font-weight: bold;
-}
-
-/************************************************************************************************/
-
-.netActivationRow > .netCol {
- border-bottom: 2px solid;
- -moz-border-bottom-colors: #EFEFEF #999999;
- padding-top: 2px;
- padding-bottom: 3px;
-}
-/*
-.useA11y .panelNode-net .a11yFocus:focus,
-.useA11y .panelNode-net .focusRow:focus {
- outline-offset: -2px;
- background-color: #FFFFD6 !important;
-}
-
-.useA11y .panelNode-net .netHeaderCell:focus,
-.useA11y .panelNode-net :focus .netHeaderCell,
-.useA11y .panelNode-net :focus .netReceivingBar,
-.useA11y .netSummaryRow :focus .netBar,
-.useA11y .netSummaryRow:focus .netBar {
- background-color: #FFFFD6;
- background-image: none;
- border-color: #FFFFD6;
-}
-/**/
-
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/* Windows */
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-
-
-/************************************************************************************************/
-/* Twisties */
-
-.twisty,
-.logRow-errorMessage > .hasTwisty > .errorTitle,
-.logRow-log > .objectBox-array.hasTwisty,
-.logRow-spy .spyHead .spyTitle,
-.logGroup > .logRow,
-.memberRow.hasChildren > .memberLabelCell > .memberLabel,
-.hasHeaders .netHrefLabel,
-.netPageRow > .netCol > .netPageTitle {
- background-image: url(tree_open.gif);
- background-repeat: no-repeat;
- background-position: 2px 2px;
- min-height: 12px;
-}
-
-.logRow-errorMessage > .hasTwisty.opened > .errorTitle,
-.logRow-log > .objectBox-array.hasTwisty.opened,
-.logRow-spy.opened .spyHead .spyTitle,
-.logGroup.opened > .logRow,
-.memberRow.hasChildren.opened > .memberLabelCell > .memberLabel,
-.nodeBox.highlightOpen > .nodeLabel > .twisty,
-.nodeBox.open > .nodeLabel > .twisty,
-.netRow.opened > .netCol > .netHrefLabel,
-.netPageRow.opened > .netCol > .netPageTitle {
- background-image: url(tree_close.gif);
-}
-
-.twisty {
- background-position: 4px 4px;
-}
-
-
-
-/************************************************************************************************/
-/* Twisties IE6 */
-
-/* IE6 has problems with > operator, and multiple classes */
-
-* html .logRow-spy .spyHead .spyTitle,
-* html .logGroup .logGroupLabel,
-* html .hasChildren .memberLabelCell .memberLabel,
-* html .hasHeaders .netHrefLabel {
- background-image: url(tree_open.gif);
- background-repeat: no-repeat;
- background-position: 2px 2px;
-}
-
-* html .opened .spyHead .spyTitle,
-* html .opened .logGroupLabel,
-* html .opened .memberLabelCell .memberLabel {
- background-image: url(tree_close.gif);
- background-repeat: no-repeat;
- background-position: 2px 2px;
-}
-
-
-
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/* Console */
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-
-
-/* See license.txt for terms of usage */
-
-.panelNode-console {
- overflow-x: hidden;
-}
-
-.objectLink {
- text-decoration: none;
-}
-
-.objectLink:hover {
- cursor: pointer;
- text-decoration: underline;
-}
-
-.logRow {
- position: relative;
- margin: 0;
- border-bottom: 1px solid #D7D7D7;
- padding: 2px 4px 1px 6px;
- background-color: #FFFFFF;
- overflow: hidden !important; /* IE need this to avoid disappearing bug with collapsed logs */
-}
-
-.useA11y .logRow:focus {
- border-bottom: 1px solid #000000 !important;
- outline: none !important;
- background-color: #FFFFAD !important;
-}
-
-.useA11y .logRow:focus a.objectLink-sourceLink {
- background-color: #FFFFAD;
-}
-
-.useA11y .a11yFocus:focus, .useA11y .objectBox:focus {
- outline: 2px solid #FF9933;
- background-color: #FFFFAD;
-}
-
-.useA11y .objectBox-null:focus, .useA11y .objectBox-undefined:focus{
- background-color: #888888 !important;
-}
-
-.useA11y .logGroup.opened > .logRow {
- border-bottom: 1px solid #ffffff;
-}
-
-.logGroup {
- background: url(group.gif) repeat-x #FFFFFF;
- padding: 0 !important;
- border: none !important;
-}
-
-.logGroupBody {
- display: none;
- margin-left: 16px;
- border-left: 1px solid #D7D7D7;
- border-top: 1px solid #D7D7D7;
- background: #FFFFFF;
-}
-
-.logGroup > .logRow {
- background-color: transparent !important;
- font-weight: bold;
-}
-
-.logGroup.opened > .logRow {
- border-bottom: none;
-}
-
-.logGroup.opened > .logGroupBody {
- display: block;
-}
-
-/*****************************************************************************************/
-
-.logRow-command > .objectBox-text {
- font-family: Monaco, monospace;
- color: #0000FF;
- white-space: pre-wrap;
-}
-
-.logRow-info,
-.logRow-warn,
-.logRow-error,
-.logRow-assert,
-.logRow-warningMessage,
-.logRow-errorMessage {
- padding-left: 22px;
- background-repeat: no-repeat;
- background-position: 4px 2px;
-}
-
-.logRow-assert,
-.logRow-warningMessage,
-.logRow-errorMessage {
- padding-top: 0;
- padding-bottom: 0;
-}
-
-.logRow-info,
-.logRow-info .objectLink-sourceLink {
- background-color: #FFFFFF;
-}
-
-.logRow-warn,
-.logRow-warningMessage,
-.logRow-warn .objectLink-sourceLink,
-.logRow-warningMessage .objectLink-sourceLink {
- background-color: cyan;
-}
-
-.logRow-error,
-.logRow-assert,
-.logRow-errorMessage,
-.logRow-error .objectLink-sourceLink,
-.logRow-errorMessage .objectLink-sourceLink {
- background-color: LightYellow;
-}
-
-.logRow-error,
-.logRow-assert,
-.logRow-errorMessage {
- color: #FF0000;
-}
-
-.logRow-info {
- /*background-image: url(chrome://firebug/skin/infoIcon.png);*/
-}
-
-.logRow-warn,
-.logRow-warningMessage {
- /*background-image: url(chrome://firebug/skin/warningIcon.png);*/
-}
-
-.logRow-error,
-.logRow-assert,
-.logRow-errorMessage {
- /*background-image: url(chrome://firebug/skin/errorIcon.png);*/
-}
-
-/*****************************************************************************************/
-
-.objectBox-string,
-.objectBox-text,
-.objectBox-number,
-.objectLink-element,
-.objectLink-textNode,
-.objectLink-function,
-.objectBox-stackTrace,
-.objectLink-profile {
- font-family: Monaco, monospace;
-}
-
-.objectBox-string,
-.objectBox-text,
-.objectLink-textNode {
- white-space: pre-wrap;
-}
-
-.objectBox-number,
-.objectLink-styleRule,
-.objectLink-element,
-.objectLink-textNode {
- color: #000088;
-}
-
-.objectBox-string {
- color: #FF0000;
-}
-
-.objectLink-function,
-.objectBox-stackTrace,
-.objectLink-profile {
- color: DarkGreen;
-}
-
-.objectBox-null,
-.objectBox-undefined {
- padding: 0 2px;
- border: 1px solid #666666;
- background-color: #888888;
- color: #FFFFFF;
-}
-
-.objectBox-exception {
- padding: 0 2px 0 18px;
- /*background: url(chrome://firebug/skin/errorIcon-sm.png) no-repeat 0 0;*/
- color: red;
-}
-
-.objectLink-sourceLink {
- position: absolute;
- right: 4px;
- top: 2px;
- padding-left: 8px;
- font-family: Lucida Grande, sans-serif;
- font-weight: bold;
- color: #0000FF;
-}
-
-/************************************************************************************************/
-
-.errorTitle {
- margin-top: 0px;
- margin-bottom: 1px;
- padding-top: 2px;
- padding-bottom: 2px;
-}
-
-.errorTrace {
- margin-left: 17px;
-}
-
-.errorSourceBox {
- margin: 2px 0;
-}
-
-.errorSource-none {
- display: none;
-}
-
-.errorSource-syntax > .errorBreak {
- visibility: hidden;
-}
-
-.errorSource {
- cursor: pointer;
- font-family: Monaco, monospace;
- color: DarkGreen;
-}
-
-.errorSource:hover {
- text-decoration: underline;
-}
-
-.errorBreak {
- cursor: pointer;
- display: none;
- margin: 0 6px 0 0;
- width: 13px;
- height: 14px;
- vertical-align: bottom;
- /*background: url(chrome://firebug/skin/breakpoint.png) no-repeat;*/
- opacity: 0.1;
-}
-
-.hasBreakSwitch .errorBreak {
- display: inline;
-}
-
-.breakForError .errorBreak {
- opacity: 1;
-}
-
-.assertDescription {
- margin: 0;
-}
-
-/************************************************************************************************/
-
-.logRow-profile > .logRow > .objectBox-text {
- font-family: Lucida Grande, Tahoma, sans-serif;
- color: #000000;
-}
-
-.logRow-profile > .logRow > .objectBox-text:last-child {
- color: #555555;
- font-style: italic;
-}
-
-.logRow-profile.opened > .logRow {
- padding-bottom: 4px;
-}
-
-.profilerRunning > .logRow {
- /*background: transparent url(chrome://firebug/skin/loading_16.gif) no-repeat 2px 0 !important;*/
- padding-left: 22px !important;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.profileSizer {
- width:100%;
- overflow-x:auto;
- overflow-y: scroll;
-}
-
-.profileTable {
- border-bottom: 1px solid #D7D7D7;
- padding: 0 0 4px 0;
-}
-
-.profileTable tr[odd="1"] {
- background-color: #F5F5F5;
- vertical-align:middle;
-}
-
-.profileTable a {
- vertical-align:middle;
-}
-
-.profileTable td {
- padding: 1px 4px 0 4px;
-}
-
-.headerCell {
- cursor: pointer;
- -moz-user-select: none;
- border-bottom: 1px solid #9C9C9C;
- padding: 0 !important;
- font-weight: bold;
- /*background: #BBBBBB url(chrome://firebug/skin/tableHeader.gif) repeat-x;*/
-}
-
-.headerCellBox {
- padding: 2px 4px;
- border-left: 1px solid #D9D9D9;
- border-right: 1px solid #9C9C9C;
-}
-
-.headerCell:hover:active {
- /*background: #959595 url(chrome://firebug/skin/tableHeaderActive.gif) repeat-x;*/
-}
-
-.headerSorted {
- /*background: #7D93B2 url(chrome://firebug/skin/tableHeaderSorted.gif) repeat-x;*/
-}
-
-.headerSorted > .headerCellBox {
- border-right-color: #6B7C93;
- /*background: url(chrome://firebug/skin/arrowDown.png) no-repeat right;*/
-}
-
-.headerSorted.sortedAscending > .headerCellBox {
- /*background-image: url(chrome://firebug/skin/arrowUp.png);*/
-}
-
-.headerSorted:hover:active {
- /*background: #536B90 url(chrome://firebug/skin/tableHeaderSortedActive.gif) repeat-x;*/
-}
-
-.linkCell {
- text-align: right;
-}
-
-.linkCell > .objectLink-sourceLink {
- position: static;
-}
-
-/*****************************************************************************************/
-
-.logRow-stackTrace {
- padding-top: 0;
- background: #f8f8f8;
-}
-
-.logRow-stackTrace > .objectBox-stackFrame {
- position: relative;
- padding-top: 2px;
-}
-
-/************************************************************************************************/
-
-.objectLink-object {
- font-family: Lucida Grande, sans-serif;
- font-weight: bold;
- color: DarkGreen;
- white-space: pre-wrap;
-}
-
-/* xxxpedro reps object representation .................................... */
-.objectProp-object {
- color: DarkGreen;
-}
-
-.objectProps {
- color: #000;
- font-weight: normal;
-}
-
-.objectPropName {
- /*font-style: italic;*/
- color: #777;
-}
-
-/*
-.objectProps .objectProp-string,
-.objectProps .objectProp-number,
-.objectProps .objectProp-object
-{
- font-style: italic;
-}
-/**/
-
-.objectProps .objectProp-string
-{
- /*font-family: Monaco, monospace;*/
- color: #f55;
-}
-.objectProps .objectProp-number
-{
- /*font-family: Monaco, monospace;*/
- color: #55a;
-}
-.objectProps .objectProp-object
-{
- /*font-family: Lucida Grande,sans-serif;*/
- color: #585;
-}
-/* xxxpedro reps object representation .................................... */
-
-/************************************************************************************************/
-
-.selectorTag,
-.selectorId,
-.selectorClass {
- font-family: Monaco, monospace;
- font-weight: normal;
-}
-
-.selectorTag {
- color: #0000FF;
-}
-
-.selectorId {
- color: DarkBlue;
-}
-
-.selectorClass {
- color: red;
-}
-
-.selectorHidden > .selectorTag {
- color: #5F82D9;
-}
-
-.selectorHidden > .selectorId {
- color: #888888;
-}
-
-.selectorHidden > .selectorClass {
- color: #D86060;
-}
-
-.selectorValue {
- font-family: Lucida Grande, sans-serif;
- font-style: italic;
- color: #555555;
-}
-
-/*****************************************************************************************/
-
-.panelNode.searching .logRow {
- display: none;
-}
-
-.logRow.matched {
- display: block !important;
-}
-
-.logRow.matching {
- position: absolute;
- left: -1000px;
- top: -1000px;
- max-width: 0;
- max-height: 0;
- overflow: hidden;
-}
-
-/*****************************************************************************************/
-
-.objectLeftBrace,
-.objectRightBrace,
-.objectEqual,
-.objectComma,
-.arrayLeftBracket,
-.arrayRightBracket,
-.arrayComma {
- font-family: Monaco, monospace;
-}
-
-.objectLeftBrace,
-.objectRightBrace,
-.arrayLeftBracket,
-.arrayRightBracket {
- font-weight: bold;
-}
-
-.objectLeftBrace,
-.arrayLeftBracket {
- margin-right: 4px;
-}
-
-.objectRightBrace,
-.arrayRightBracket {
- margin-left: 4px;
-}
-
-/*****************************************************************************************/
-
-.logRow-dir {
- padding: 0;
-}
-
-/************************************************************************************************/
-
-/*
-.logRow-errorMessage > .hasTwisty > .errorTitle,
-.logRow-spy .spyHead .spyTitle,
-.logGroup > .logRow
-*/
-.logRow-errorMessage .hasTwisty .errorTitle,
-.logRow-spy .spyHead .spyTitle,
-.logGroup .logRow {
- cursor: pointer;
- padding-left: 18px;
- background-repeat: no-repeat;
- background-position: 3px 3px;
-}
-
-.logRow-errorMessage > .hasTwisty > .errorTitle {
- background-position: 2px 3px;
-}
-
-.logRow-errorMessage > .hasTwisty > .errorTitle:hover,
-.logRow-spy .spyHead .spyTitle:hover,
-.logGroup > .logRow:hover {
- text-decoration: underline;
-}
-
-/*****************************************************************************************/
-
-.logRow-spy {
- padding: 0 !important;
-}
-
-.logRow-spy,
-.logRow-spy .objectLink-sourceLink {
- background: url(group.gif) repeat-x #FFFFFF;
- padding-right: 4px;
- right: 0;
-}
-
-.logRow-spy.opened {
- padding-bottom: 4px;
- border-bottom: none;
-}
-
-.spyTitle {
- color: #000000;
- font-weight: bold;
- -moz-box-sizing: padding-box;
- overflow: hidden;
- z-index: 100;
- padding-left: 18px;
-}
-
-.spyCol {
- padding: 0;
- white-space: nowrap;
- height: 16px;
-}
-
-.spyTitleCol:hover > .objectLink-sourceLink,
-.spyTitleCol:hover > .spyTime,
-.spyTitleCol:hover > .spyStatus,
-.spyTitleCol:hover > .spyTitle {
- display: none;
-}
-
-.spyFullTitle {
- display: none;
- -moz-user-select: none;
- max-width: 100%;
- background-color: Transparent;
-}
-
-.spyTitleCol:hover > .spyFullTitle {
- display: block;
-}
-
-.spyStatus {
- padding-left: 10px;
- color: rgb(128, 128, 128);
-}
-
-.spyTime {
- margin-left:4px;
- margin-right:4px;
- color: rgb(128, 128, 128);
-}
-
-.spyIcon {
- margin-right: 4px;
- margin-left: 4px;
- width: 16px;
- height: 16px;
- vertical-align: middle;
- background: transparent no-repeat 0 0;
- display: none;
-}
-
-.loading .spyHead .spyRow .spyIcon {
- background-image: url(loading_16.gif);
- display: block;
-}
-
-.logRow-spy.loaded:not(.error) .spyHead .spyRow .spyIcon {
- width: 0;
- margin: 0;
-}
-
-.logRow-spy.error .spyHead .spyRow .spyIcon {
- background-image: url(errorIcon-sm.png);
- display: block;
- background-position: 2px 2px;
-}
-
-.logRow-spy .spyHead .netInfoBody {
- display: none;
-}
-
-.logRow-spy.opened .spyHead .netInfoBody {
- margin-top: 10px;
- display: block;
-}
-
-.logRow-spy.error .spyTitle,
-.logRow-spy.error .spyStatus,
-.logRow-spy.error .spyTime {
- color: red;
-}
-
-.logRow-spy.loading .spyResponseText {
- font-style: italic;
- color: #888888;
-}
-
-/************************************************************************************************/
-
-.caption {
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-weight: bold;
- color: #444444;
-}
-
-.warning {
- padding: 10px;
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-weight: bold;
- color: #888888;
-}
-
-
-
-
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/* DOM */
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-
-
-/* See license.txt for terms of usage */
-
-.panelNode-dom {
- overflow-x: hidden !important;
-}
-
-.domTable {
- font-size: 1em;
- width: 100%;
- table-layout: fixed;
- background: #fff;
-}
-
-.domTableIE {
- width: auto;
-}
-
-.memberLabelCell {
- padding: 2px 0 2px 0;
- vertical-align: top;
-}
-
-.memberValueCell {
- padding: 1px 0 1px 5px;
- display: block;
- overflow: hidden;
-}
-
-.memberLabel {
- display: block;
- cursor: default;
- -moz-user-select: none;
- overflow: hidden;
- /*position: absolute;*/
- padding-left: 18px;
- /*max-width: 30%;*/
- /*white-space: nowrap;*/
- background-color: #FFFFFF;
- text-decoration: none;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.memberRow.hasChildren .memberLabelCell .memberLabel:hover {
- cursor: pointer;
- color: blue;
- text-decoration: underline;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.userLabel {
- color: #000000;
- font-weight: bold;
-}
-
-.userClassLabel {
- color: #E90000;
- font-weight: bold;
-}
-
-.userFunctionLabel {
- color: #025E2A;
- font-weight: bold;
-}
-
-.domLabel {
- color: #000000;
-}
-
-.domFunctionLabel {
- color: #025E2A;
-}
-
-.ordinalLabel {
- color: SlateBlue;
- font-weight: bold;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-.scopesRow {
- padding: 2px 18px;
- background-color: LightYellow;
- border-bottom: 5px solid #BEBEBE;
- color: #666666;
-}
-.scopesLabel {
- background-color: LightYellow;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.watchEditCell {
- padding: 2px 18px;
- background-color: LightYellow;
- border-bottom: 1px solid #BEBEBE;
- color: #666666;
-}
-
-.editor-watchNewRow,
-.editor-memberRow {
- font-family: Monaco, monospace !important;
-}
-
-.editor-memberRow {
- padding: 1px 0 !important;
-}
-
-.editor-watchRow {
- padding-bottom: 0 !important;
-}
-
-.watchRow > .memberLabelCell {
- font-family: Monaco, monospace;
- padding-top: 1px;
- padding-bottom: 1px;
-}
-
-.watchRow > .memberLabelCell > .memberLabel {
- background-color: transparent;
-}
-
-.watchRow > .memberValueCell {
- padding-top: 2px;
- padding-bottom: 2px;
-}
-
-.watchRow > .memberLabelCell,
-.watchRow > .memberValueCell {
- background-color: #F5F5F5;
- border-bottom: 1px solid #BEBEBE;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.watchToolbox {
- z-index: 2147483647;
- position: absolute;
- right: 0;
- padding: 1px 2px;
-}
-
-
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/*************************************************************************************************/
-/* FROM ORIGINAL FIREBUG */
-
-
-
-
-/************************************************************************************************
- CSS Not organized
-*************************************************************************************************/
-#fbConsole {
- overflow-x: hidden !important;
-}
-
-#fbCSS {
- font: 1em Monaco, monospace;
- padding: 0 7px;
-}
-
-#fbstylesheetButtons select, #fbScriptButtons select {
- font: 11px Lucida Grande, Tahoma, sans-serif;
- margin-top: 1px;
- padding-left: 3px;
- background: #fafafa;
- border: 1px inset #fff;
- width: 220px;
- outline: none;
-}
-
-.Selector { margin-top:10px }
-.CSSItem {margin-left: 4% }
-.CSSText { padding-left:20px; }
-.CSSProperty { color:#005500; }
-.CSSValue { padding-left:5px; color:#000088; }
-
-
-/************************************************************************************************
- Not organized
-*************************************************************************************************/
-
-#fbHTMLStatusBar {
- display: inline;
-}
-
-.fbToolbarButtons {
- display: none;
-}
-
-.fbStatusSeparator{
- display: block;
- float: left;
- padding-top: 4px;
-}
-
-#fbStatusBarBox {
- display: none;
-}
-
-#fbToolbarContent {
- display: block;
- position: absolute;
- _position: absolute;
- top: 0;
- padding-top: 4px;
- height: 23px;
- clip: rect(0, 2048px, 27px, 0);
-}
-
-.fbTabMenuTarget {
- display: none !important;
- float: left;
- width: 10px;
- height: 10px;
- margin-top: 6px;
- background: url(tabMenuTarget.png);
-}
-
-.fbTabMenuTarget:hover {
- background: url(tabMenuTargetHover.png);
-}
-
-.fbShadow {
- float: left;
- background: url(shadowAlpha.png) no-repeat bottom right !important;
- background: url(shadow2.gif) no-repeat bottom right;
- margin: 10px 0 0 10px !important;
- margin: 10px 0 0 5px;
-}
-
-.fbShadowContent {
- display: block;
- position: relative;
- background-color: #fff;
- border: 1px solid #a9a9a9;
- top: -6px;
- left: -6px;
-}
-
-.fbMenu {
- display: none;
- position: absolute;
- font-size: 11px;
- line-height: 13px;
- z-index: 2147483647;
-}
-
-.fbMenuContent {
- padding: 2px;
-}
-
-.fbMenuSeparator {
- display: block;
- position: relative;
- padding: 1px 18px 0;
- text-decoration: none;
- color: #000;
- cursor: default;
- background: #ACA899;
- margin: 4px 0;
-}
-
-.fbMenuOption
-{
- display: block;
- position: relative;
- padding: 2px 18px;
- text-decoration: none;
- color: #000;
- cursor: default;
-}
-
-.fbMenuOption:hover
-{
- color: #fff;
- background: #316AC5;
-}
-
-.fbMenuGroup {
- background: transparent url(tabMenuPin.png) no-repeat right 0;
-}
-
-.fbMenuGroup:hover {
- background: #316AC5 url(tabMenuPin.png) no-repeat right -17px;
-}
-
-.fbMenuGroupSelected {
- color: #fff;
- background: #316AC5 url(tabMenuPin.png) no-repeat right -17px;
-}
-
-.fbMenuChecked {
- background: transparent url(tabMenuCheckbox.png) no-repeat 4px 0;
-}
-
-.fbMenuChecked:hover {
- background: #316AC5 url(tabMenuCheckbox.png) no-repeat 4px -17px;
-}
-
-.fbMenuRadioSelected {
- background: transparent url(tabMenuRadio.png) no-repeat 4px 0;
-}
-
-.fbMenuRadioSelected:hover {
- background: #316AC5 url(tabMenuRadio.png) no-repeat 4px -17px;
-}
-
-.fbMenuShortcut {
- padding-right: 85px;
-}
-
-.fbMenuShortcutKey {
- position: absolute;
- right: 0;
- top: 2px;
- width: 77px;
-}
-
-#fbFirebugMenu {
- top: 22px;
- left: 0;
-}
-
-.fbMenuDisabled {
- color: #ACA899 !important;
-}
-
-#fbFirebugSettingsMenu {
- left: 245px;
- top: 99px;
-}
-
-#fbConsoleMenu {
- top: 42px;
- left: 48px;
-}
-
-.fbIconButton {
- display: block;
-}
-
-.fbIconButton {
- display: block;
-}
-
-.fbIconButton {
- display: block;
- float: left;
- height: 20px;
- width: 20px;
- color: #000;
- margin-right: 2px;
- text-decoration: none;
- cursor: default;
-}
-
-.fbIconButton:hover {
- position: relative;
- top: -1px;
- left: -1px;
- margin-right: 0;
- _margin-right: 1px;
- color: #333;
- border: 1px solid #fff;
- border-bottom: 1px solid #bbb;
- border-right: 1px solid #bbb;
-}
-
-.fbIconPressed {
- position: relative;
- margin-right: 0;
- _margin-right: 1px;
- top: 0 !important;
- left: 0 !important;
- height: 19px;
- color: #333 !important;
- border: 1px solid #bbb !important;
- border-bottom: 1px solid #cfcfcf !important;
- border-right: 1px solid #ddd !important;
-}
-
-
-
-/************************************************************************************************
- Error Popup
-*************************************************************************************************/
-#fbErrorPopup {
- position: absolute;
- right: 0;
- bottom: 0;
- height: 19px;
- width: 75px;
- background: url(sprite.png) #f1f2ee 0 0;
- z-index: 999;
-}
-
-#fbErrorPopupContent {
- position: absolute;
- right: 0;
- top: 1px;
- height: 18px;
- width: 75px;
- _width: 74px;
- border-left: 1px solid #aca899;
-}
-
-#fbErrorIndicator {
- position: absolute;
- top: 2px;
- right: 5px;
-}
-
-
-
-
-
-
-
-
-
-
-.fbBtnInspectActive {
- background: #aaa;
- color: #fff !important;
-}
-
-/************************************************************************************************
- General
-*************************************************************************************************/
-.fbBody {
- margin: 0;
- padding: 0;
- overflow: hidden;
-
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-size: 11px;
- background: #fff;
-}
-
-.clear {
- clear: both;
-}
-
-/************************************************************************************************
- Mini Chrome
-*************************************************************************************************/
-#fbMiniChrome {
- display: none;
- right: 0;
- height: 27px;
- background: url(sprite.png) #f1f2ee 0 0;
- margin-left: 1px;
-}
-
-#fbMiniContent {
- display: block;
- position: relative;
- left: -1px;
- right: 0;
- top: 1px;
- height: 25px;
- border-left: 1px solid #aca899;
-}
-
-#fbToolbarSearch {
- float: right;
- border: 1px solid #ccc;
- margin: 0 5px 0 0;
- background: #fff url(search.png) no-repeat 4px 2px !important;
- background: #fff url(search.gif) no-repeat 4px 2px;
- padding-left: 20px;
- font-size: 11px;
-}
-
-#fbToolbarErrors {
- float: right;
- margin: 1px 4px 0 0;
- font-size: 11px;
-}
-
-#fbLeftToolbarErrors {
- float: left;
- margin: 7px 0px 0 5px;
- font-size: 11px;
-}
-
-.fbErrors {
- padding-left: 20px;
- height: 14px;
- background: url(errorIcon.png) no-repeat !important;
- background: url(errorIcon.gif) no-repeat;
- color: #f00;
- font-weight: bold;
-}
-
-#fbMiniErrors {
- display: inline;
- display: none;
- float: right;
- margin: 5px 2px 0 5px;
-}
-
-#fbMiniIcon {
- float: right;
- margin: 3px 4px 0;
- height: 20px;
- width: 20px;
- float: right;
- background: url(sprite.png) 0 -135px;
- cursor: pointer;
-}
-
-
-/************************************************************************************************
- Master Layout
-*************************************************************************************************/
-#fbChrome {
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-size: 11px;
- position: absolute;
- _position: static;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- border-collapse: collapse;
- border-spacing: 0;
- background: #fff;
- overflow: hidden;
-}
-
-#fbChrome > tbody > tr > td {
- padding: 0;
-}
-
-#fbTop {
- height: 49px;
-}
-
-#fbToolbar {
- background: url(sprite.png) #f1f2ee 0 0;
- height: 27px;
- font-size: 11px;
- line-height: 13px;
-}
-
-#fbPanelBarBox {
- background: url(sprite.png) #dbd9c9 0 -27px;
- height: 22px;
-}
-
-#fbContent {
- height: 100%;
- vertical-align: top;
-}
-
-#fbBottom {
- height: 18px;
- background: #fff;
-}
-
-/************************************************************************************************
- Sub-Layout
-*************************************************************************************************/
-
-/* fbToolbar
-*************************************************************************************************/
-#fbToolbarIcon {
- float: left;
- padding: 0 5px 0;
-}
-
-#fbToolbarIcon a {
- background: url(sprite.png) 0 -135px;
-}
-
-#fbToolbarButtons {
- padding: 0 2px 0 5px;
-}
-
-#fbToolbarButtons {
- padding: 0 2px 0 5px;
-}
-/*
-#fbStatusBarBox a {
- text-decoration: none;
- display: block;
- float: left;
- color: #000;
- padding: 4px 5px;
- margin: 0 0 0 1px;
- cursor: default;
-}
-
-#fbStatusBarBox a:hover {
- color: #333;
- padding: 3px 4px;
- border: 1px solid #fff;
- border-bottom: 1px solid #bbb;
- border-right: 1px solid #bbb;
-}
-/**/
-
-.fbButton {
- text-decoration: none;
- display: block;
- float: left;
- color: #000;
- padding: 4px 6px 4px 7px;
- cursor: default;
-}
-
-.fbButton:hover {
- color: #333;
- background: #f5f5ef url(buttonBg.png);
- padding: 3px 5px 3px 6px;
- border: 1px solid #fff;
- border-bottom: 1px solid #bbb;
- border-right: 1px solid #bbb;
-}
-
-.fbBtnPressed {
- background: #e3e3db url(buttonBgHover.png) !important;
- padding: 3px 4px 2px 6px !important;
- margin: 1px 0 0 1px !important;
- border: 1px solid #ACA899 !important;
- border-color: #ACA899 #ECEBE3 #ECEBE3 #ACA899 !important;
-}
-
-#fbStatusBarBox {
- top: 4px;
- cursor: default;
-}
-
-.fbToolbarSeparator {
- overflow: hidden;
- border: 1px solid;
- border-color: transparent #fff transparent #777;
- _border-color: #eee #fff #eee #777;
- height: 7px;
- margin: 6px 3px;
- float: left;
-}
-
-.fbBtnSelected {
- font-weight: bold;
-}
-
-.fbStatusBar {
- color: #aca899;
-}
-
-.fbStatusBar a {
- text-decoration: none;
- color: black;
-}
-
-.fbStatusBar a:hover {
- color: blue;
- cursor: pointer;
-}
-
-
-#fbWindowButtons {
- position: absolute;
- white-space: nowrap;
- right: 0;
- top: 0;
- height: 17px;
- width: 48px;
- padding: 5px;
- z-index: 6;
- background: url(sprite.png) #f1f2ee 0 0;
-}
-
-/* fbPanelBarBox
-*************************************************************************************************/
-
-#fbPanelBar1 {
- width: 1024px; /* fixed width to avoid tabs breaking line */
- z-index: 8;
- left: 0;
- white-space: nowrap;
- background: url(sprite.png) #dbd9c9 0 -27px;
- position: absolute;
- left: 4px;
-}
-
-#fbPanelBar2Box {
- background: url(sprite.png) #dbd9c9 0 -27px;
- position: absolute;
- height: 22px;
- width: 300px; /* fixed width to avoid tabs breaking line */
- z-index: 9;
- right: 0;
-}
-
-#fbPanelBar2 {
- position: absolute;
- width: 290px; /* fixed width to avoid tabs breaking line */
- height: 22px;
- padding-left: 4px;
-}
-
-/* body
-*************************************************************************************************/
-.fbPanel {
- display: none;
-}
-
-#fbPanelBox1, #fbPanelBox2 {
- max-height: inherit;
- height: 100%;
- font-size: 1em;
-}
-
-#fbPanelBox2 {
- background: #fff;
-}
-
-#fbPanelBox2 {
- width: 300px;
- background: #fff;
-}
-
-#fbPanel2 {
- margin-left: 6px;
- background: #fff;
-}
-
-#fbLargeCommandLine {
- display: none;
- position: absolute;
- z-index: 9;
- top: 27px;
- right: 0;
- width: 294px;
- height: 201px;
- border-width: 0;
- margin: 0;
- padding: 2px 0 0 2px;
- resize: none;
- outline: none;
- font-size: 11px;
- overflow: auto;
- border-top: 1px solid #B9B7AF;
- _right: -1px;
- _border-left: 1px solid #fff;
-}
-
-#fbLargeCommandButtons {
- display: none;
- background: #ECE9D8;
- bottom: 0;
- right: 0;
- width: 294px;
- height: 21px;
- padding-top: 1px;
- position: fixed;
- border-top: 1px solid #ACA899;
- z-index: 9;
-}
-
-#fbSmallCommandLineIcon {
- background: url(down.png) no-repeat;
- position: absolute;
- right: 2px;
- bottom: 3px;
-
- z-index: 99;
-}
-
-#fbSmallCommandLineIcon:hover {
- background: url(downHover.png) no-repeat;
-}
-
-.hide {
- overflow: hidden !important;
- position: fixed !important;
- display: none !important;
- visibility: hidden !important;
-}
-
-/* fbBottom
-*************************************************************************************************/
-
-#fbCommand {
- height: 18px;
-}
-
-#fbCommandBox {
- position: fixed;
- _position: absolute;
- width: 100%;
- height: 18px;
- bottom: 0;
- overflow: hidden;
- z-index: 9;
- background: #fff;
- border: 0;
- border-top: 1px solid #ccc;
-}
-
-#fbCommandIcon {
- position: absolute;
- color: #00f;
- top: 2px;
- left: 6px;
- display: inline;
- font: 11px Monaco, monospace;
- z-index: 10;
-}
-
-#fbCommandLine {
- position: absolute;
- width: 100%;
- top: 0;
- left: 0;
- border: 0;
- margin: 0;
- padding: 2px 0 2px 32px;
- font: 11px Monaco, monospace;
- z-index: 9;
- outline: none;
-}
-
-#fbLargeCommandLineIcon {
- background: url(up.png) no-repeat;
- position: absolute;
- right: 1px;
- bottom: 1px;
- z-index: 10;
-}
-
-#fbLargeCommandLineIcon:hover {
- background: url(upHover.png) no-repeat;
-}
-
-div.fbFitHeight {
- overflow: auto;
- position: relative;
-}
-
-
-/************************************************************************************************
- Layout Controls
-*************************************************************************************************/
-
-/* fbToolbar buttons
-*************************************************************************************************/
-.fbSmallButton {
- overflow: hidden;
- width: 16px;
- height: 16px;
- display: block;
- text-decoration: none;
- cursor: default;
-}
-
-#fbWindowButtons .fbSmallButton {
- float: right;
-}
-
-#fbWindow_btClose {
- background: url(min.png);
-}
-
-#fbWindow_btClose:hover {
- background: url(minHover.png);
-}
-
-#fbWindow_btDetach {
- background: url(detach.png);
-}
-
-#fbWindow_btDetach:hover {
- background: url(detachHover.png);
-}
-
-#fbWindow_btDeactivate {
- background: url(off.png);
-}
-
-#fbWindow_btDeactivate:hover {
- background: url(offHover.png);
-}
-
-
-/* fbPanelBarBox tabs
-*************************************************************************************************/
-.fbTab {
- text-decoration: none;
- display: none;
- float: left;
- width: auto;
- float: left;
- cursor: default;
- font-family: Lucida Grande, Tahoma, sans-serif;
- font-size: 11px;
- line-height: 13px;
- font-weight: bold;
- height: 22px;
- color: #565656;
-}
-
-.fbPanelBar span {
- /*display: block; TODO: safe to remove this? */
- float: left;
-}
-
-.fbPanelBar .fbTabL,.fbPanelBar .fbTabR {
- height: 22px;
- width: 8px;
-}
-
-.fbPanelBar .fbTabText {
- padding: 4px 1px 0;
-}
-
-a.fbTab:hover {
- background: url(sprite.png) 0 -73px;
-}
-
-a.fbTab:hover .fbTabL {
- background: url(sprite.png) -16px -96px;
-}
-
-a.fbTab:hover .fbTabR {
- background: url(sprite.png) -24px -96px;
-}
-
-.fbSelectedTab {
- background: url(sprite.png) #f1f2ee 0 -50px !important;
- color: #000;
-}
-
-.fbSelectedTab .fbTabL {
- background: url(sprite.png) 0 -96px !important;
-}
-
-.fbSelectedTab .fbTabR {
- background: url(sprite.png) -8px -96px !important;
-}
-
-/* splitters
-*************************************************************************************************/
-#fbHSplitter {
- position: fixed;
- _position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 5px;
- overflow: hidden;
- cursor: n-resize !important;
- background: url(pixel_transparent.gif);
- z-index: 9;
-}
-
-#fbHSplitter.fbOnMovingHSplitter {
- height: 100%;
- z-index: 100;
-}
-
-.fbVSplitter {
- background: #ece9d8;
- color: #000;
- border: 1px solid #716f64;
- border-width: 0 1px;
- border-left-color: #aca899;
- width: 4px;
- cursor: e-resize;
- overflow: hidden;
- right: 294px;
- text-decoration: none;
- z-index: 10;
- position: absolute;
- height: 100%;
- top: 27px;
-}
-
-/************************************************************************************************/
-div.lineNo {
- font: 1em/1.4545em Monaco, monospace;
- position: relative;
- float: left;
- top: 0;
- left: 0;
- margin: 0 5px 0 0;
- padding: 0 5px 0 10px;
- background: #eee;
- color: #888;
- border-right: 1px solid #ccc;
- text-align: right;
-}
-
-.sourceBox {
- position: absolute;
-}
-
-.sourceCode {
- font: 1em Monaco, monospace;
- overflow: hidden;
- white-space: pre;
- display: inline;
-}
-
-/************************************************************************************************/
-.nodeControl {
- margin-top: 3px;
- margin-left: -14px;
- float: left;
- width: 9px;
- height: 9px;
- overflow: hidden;
- cursor: default;
- background: url(tree_open.gif);
- _float: none;
- _display: inline;
- _position: absolute;
-}
-
-div.nodeMaximized {
- background: url(tree_close.gif);
-}
-
-div.objectBox-element {
- padding: 1px 3px;
-}
-.objectBox-selector{
- cursor: default;
-}
-
-.selectedElement{
- background: highlight;
- /* background: url(roundCorner.svg); Opera */
- color: #fff !important;
-}
-.selectedElement span{
- color: #fff !important;
-}
-
-/* IE6 need this hack */
-* html .selectedElement {
- position: relative;
-}
-
-/* Webkit CSS Hack - bug in "highlight" named color */
-@media screen and (-webkit-min-device-pixel-ratio:0) {
- .selectedElement{
- background: #316AC5;
- color: #fff !important;
- }
-}
-
-/************************************************************************************************/
-/************************************************************************************************/
-.logRow * {
- font-size: 1em;
-}
-
-/* TODO: remove this? */
-/* TODO: xxxpedro - IE need this in windowless mode (cnn.com) check if the issue is related to
-position. if so, override it at chrome.js initialization when creating the div */
-.logRow {
- position: relative;
- border-bottom: 1px solid #D7D7D7;
- padding: 2px 4px 1px 6px;
- zbackground-color: #FFFFFF;
-}
-/**/
-
-.logRow-command {
- font-family: Monaco, monospace;
- color: blue;
-}
-
-.objectBox-string,
-.objectBox-text,
-.objectBox-number,
-.objectBox-function,
-.objectLink-element,
-.objectLink-textNode,
-.objectLink-function,
-.objectBox-stackTrace,
-.objectLink-profile {
- font-family: Monaco, monospace;
-}
-
-.objectBox-null {
- padding: 0 2px;
- border: 1px solid #666666;
- background-color: #888888;
- color: #FFFFFF;
-}
-
-.objectBox-string {
- color: red;
-
- /* TODO: xxxpedro make long strings break line */
- /*white-space: pre; */
-}
-
-.objectBox-number {
- color: #000088;
-}
-
-.objectBox-function {
- color: DarkGreen;
-}
-
-.objectBox-object {
- color: DarkGreen;
- font-weight: bold;
- font-family: Lucida Grande, sans-serif;
-}
-
-.objectBox-array {
- color: #000;
-}
-
-/************************************************************************************************/
-.logRow-info,.logRow-error,.logRow-warn {
- background: #fff no-repeat 2px 2px;
- padding-left: 20px;
- padding-bottom: 3px;
-}
-
-.logRow-info {
- background-image: url(infoIcon.png) !important;
- background-image: url(infoIcon.gif);
-}
-
-.logRow-warn {
- background-color: cyan;
- background-image: url(warningIcon.png) !important;
- background-image: url(warningIcon.gif);
-}
-
-.logRow-error {
- background-color: LightYellow;
- background-image: url(errorIcon.png) !important;
- background-image: url(errorIcon.gif);
- color: #f00;
-}
-
-.errorMessage {
- vertical-align: top;
- color: #f00;
-}
-
-.objectBox-sourceLink {
- position: absolute;
- right: 4px;
- top: 2px;
- padding-left: 8px;
- font-family: Lucida Grande, sans-serif;
- font-weight: bold;
- color: #0000FF;
-}
-
-/************************************************************************************************/
-/*
-//TODO: remove this when console2 is finished
-*/
-/*
-.logRow-group {
- background: #EEEEEE;
- border-bottom: none;
-}
-
-.logGroup {
- background: #EEEEEE;
-}
-
-.logGroupBox {
- margin-left: 24px;
- border-top: 1px solid #D7D7D7;
- border-left: 1px solid #D7D7D7;
-}/**/
-
-/************************************************************************************************/
-.selectorTag,.selectorId,.selectorClass {
- font-family: Monaco, monospace;
- font-weight: normal;
-}
-
-.selectorTag {
- color: #0000FF;
-}
-
-.selectorId {
- color: DarkBlue;
-}
-
-.selectorClass {
- color: red;
-}
-
-/************************************************************************************************/
-.objectBox-element {
- font-family: Monaco, monospace;
- color: #000088;
-}
-
-.nodeChildren {
- padding-left: 26px;
-}
-
-.nodeTag {
- color: blue;
- cursor: pointer;
-}
-
-.nodeValue {
- color: #FF0000;
- font-weight: normal;
-}
-
-.nodeText,.nodeComment {
- margin: 0 2px;
- vertical-align: top;
-}
-
-.nodeText {
- color: #333333;
- font-family: Monaco, monospace;
-}
-
-.nodeComment {
- color: DarkGreen;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.nodeHidden, .nodeHidden * {
- color: #888888;
-}
-
-.nodeHidden .nodeTag {
- color: #5F82D9;
-}
-
-.nodeHidden .nodeValue {
- color: #D86060;
-}
-
-.selectedElement .nodeHidden, .selectedElement .nodeHidden * {
- color: SkyBlue !important;
-}
-
-
-/************************************************************************************************/
-.log-object {
- /*
- _position: relative;
- _height: 100%;
- /**/
-}
-
-.property {
- position: relative;
- clear: both;
- height: 15px;
-}
-
-.propertyNameCell {
- vertical-align: top;
- float: left;
- width: 28%;
- position: absolute;
- left: 0;
- z-index: 0;
-}
-
-.propertyValueCell {
- float: right;
- width: 68%;
- background: #fff;
- position: absolute;
- padding-left: 5px;
- display: table-cell;
- right: 0;
- z-index: 1;
- /*
- _position: relative;
- /**/
-}
-
-.propertyName {
- font-weight: bold;
-}
-
-.FirebugPopup {
- height: 100% !important;
-}
-
-.FirebugPopup #fbWindowButtons {
- display: none !important;
-}
-
-.FirebugPopup #fbHSplitter {
- display: none !important;
-}
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.html b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.html
deleted file mode 100644
index aa078099..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.html
+++ /dev/null
@@ -1,215 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd">
-<html>
-<head>
-<meta http-equiv="content-type" content="text/html; charset=utf-8">
-<title>Firebug Lite</title>
-<!-- An empty script to avoid FOUC when loading the stylesheet -->
-<script type="text/javascript"></script>
-<style type="text/css" media="screen">@import "firebug.css";</style>
-<style>html,body{margin:0;padding:0;overflow:hidden;}</style>
-</head>
-<body class="fbBody">
-<table id="fbChrome" cellpadding="0" cellspacing="0" border="0">
- <tbody>
- <tr>
- <!-- Interface - Top Area -->
- <td id="fbTop" colspan="2">
-
- <!--
- <div>
- --><!-- <span id="fbToolbarErrors" class="fbErrors">2 errors</span> --><!--
- <input type="text" id="fbToolbarSearch" />
- </div>
- -->
-
- <!-- Window Buttons -->
- <div id="fbWindowButtons">
- <a id="fbWindow_btDeactivate" class="fbSmallButton fbHover" title="Deactivate Firebug for this web page">&nbsp;</a>
- <a id="fbWindow_btDetach" class="fbSmallButton fbHover" title="Open Firebug in popup window">&nbsp;</a>
- <a id="fbWindow_btClose" class="fbSmallButton fbHover" title="Minimize Firebug">&nbsp;</a>
- </div>
-
- <!-- Toolbar buttons and Status Bar -->
- <div id="fbToolbar">
- <div id="fbToolbarContent">
-
- <!-- Firebug Button -->
- <span id="fbToolbarIcon">
- <a id="fbFirebugButton" class="fbIconButton" class="fbHover" target="_blank">&nbsp;</a>
- </span>
-
- <!--
- <span id="fbLeftToolbarErrors" class="fbErrors">2 errors</span>
- -->
-
- <!-- Toolbar Buttons -->
- <span id="fbToolbarButtons">
- <!-- Fixed Toolbar Buttons -->
- <span id="fbFixedButtons">
- <a id="fbChrome_btInspect" class="fbButton fbHover" title="Click an element in the page to inspect">Inspect</a>
- </span>
-
- <!-- Console Panel Toolbar Buttons -->
- <span id="fbConsoleButtons" class="fbToolbarButtons">
- <a id="fbConsole_btClear" class="fbButton fbHover" title="Clear the console">Clear</a>
- </span>
-
- <!-- HTML Panel Toolbar Buttons -->
- <!--
- <span id="fbHTMLButtons" class="fbToolbarButtons">
- <a id="fbHTML_btEdit" class="fbHover" title="Edit this HTML">Edit</a>
- </span>
- -->
- </span>
-
- <!-- Status Bar -->
- <span id="fbStatusBarBox">
- <span class="fbToolbarSeparator"></span>
- <!-- HTML Panel Status Bar -->
- <!--
- <span id="fbHTMLStatusBar" class="fbStatusBar fbToolbarButtons">
- </span>
- -->
- </span>
-
- </div>
-
- </div>
-
- <!-- PanelBars -->
- <div id="fbPanelBarBox">
-
- <!-- Main PanelBar -->
- <div id="fbPanelBar1" class="fbPanelBar">
- <a id="fbConsoleTab" class="fbTab fbHover">
- <span class="fbTabL"></span>
- <span class="fbTabText">Console</span>
- <span class="fbTabMenuTarget"></span>
- <span class="fbTabR"></span>
- </a>
- <a id="fbHTMLTab" class="fbTab fbHover">
- <span class="fbTabL"></span>
- <span class="fbTabText">HTML</span>
- <span class="fbTabR"></span>
- </a>
- <a class="fbTab fbHover">
- <span class="fbTabL"></span>
- <span class="fbTabText">CSS</span>
- <span class="fbTabR"></span>
- </a>
- <a class="fbTab fbHover">
- <span class="fbTabL"></span>
- <span class="fbTabText">Script</span>
- <span class="fbTabR"></span>
- </a>
- <a class="fbTab fbHover">
- <span class="fbTabL"></span>
- <span class="fbTabText">DOM</span>
- <span class="fbTabR"></span>
- </a>
- </div>
-
- <!-- Side PanelBars -->
- <div id="fbPanelBar2Box" class="hide">
- <div id="fbPanelBar2" class="fbPanelBar">
- <!--
- <a class="fbTab fbHover">
- <span class="fbTabL"></span>
- <span class="fbTabText">Style</span>
- <span class="fbTabR"></span>
- </a>
- <a class="fbTab fbHover">
- <span class="fbTabL"></span>
- <span class="fbTabText">Layout</span>
- <span class="fbTabR"></span>
- </a>
- <a class="fbTab fbHover">
- <span class="fbTabL"></span>
- <span class="fbTabText">DOM</span>
- <span class="fbTabR"></span>
- </a>
- -->
- </div>
- </div>
-
- </div>
-
- <!-- Horizontal Splitter -->
- <div id="fbHSplitter">&nbsp;</div>
-
- </td>
- </tr>
-
- <!-- Interface - Main Area -->
- <tr id="fbContent">
-
- <!-- Panels -->
- <td id="fbPanelBox1">
- <div id="fbPanel1" class="fbFitHeight">
- <div id="fbConsole" class="fbPanel"></div>
- <div id="fbHTML" class="fbPanel"></div>
- </div>
- </td>
-
- <!-- Side Panel Box -->
- <td id="fbPanelBox2" class="hide">
-
- <!-- VerticalSplitter -->
- <div id="fbVSplitter" class="fbVSplitter">&nbsp;</div>
-
- <!-- Side Panels -->
- <div id="fbPanel2" class="fbFitHeight">
-
- <!-- HTML Side Panels -->
- <div id="fbHTML_Style" class="fbPanel"></div>
- <div id="fbHTML_Layout" class="fbPanel"></div>
- <div id="fbHTML_DOM" class="fbPanel"></div>
-
- </div>
-
- <!-- Large Command Line -->
- <textarea id="fbLargeCommandLine" class="fbFitHeight"></textarea>
-
- <!-- Large Command Line Buttons -->
- <div id="fbLargeCommandButtons">
- <a id="fbCommand_btRun" class="fbButton fbHover">Run</a>
- <a id="fbCommand_btClear" class="fbButton fbHover">Clear</a>
-
- <a id="fbSmallCommandLineIcon" class="fbSmallButton fbHover"></a>
- </div>
-
- </td>
-
- </tr>
-
- <!-- Interface - Bottom Area -->
- <tr id="fbBottom" class="hide">
-
- <!-- Command Line -->
- <td id="fbCommand" colspan="2">
- <div id="fbCommandBox">
- <div id="fbCommandIcon">&gt;&gt;&gt;</div>
- <input id="fbCommandLine" name="fbCommandLine" type="text" />
- <a id="fbLargeCommandLineIcon" class="fbSmallButton fbHover"></a>
- </div>
- </td>
-
- </tr>
-
- </tbody>
-</table>
-<span id="fbMiniChrome">
- <span id="fbMiniContent">
- <span id="fbMiniIcon" title="Open Firebug Lite"></span>
- <span id="fbMiniErrors" class="fbErrors"><!-- 2 errors --></span>
- </span>
-</span>
-<!--
-<div id="fbErrorPopup">
- <div id="fbErrorPopupContent">
- <div id="fbErrorIndicator" class="fbErrors">2 errors</div>
- </div>
-</div>
- -->
-</body>
-</html> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.png
deleted file mode 100644
index e10affeb..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/firebug.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/group.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/group.gif
deleted file mode 100644
index 8db97c21..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/group.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/html.css b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/html.css
deleted file mode 100644
index 5b7c5f4b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/html.css
+++ /dev/null
@@ -1,272 +0,0 @@
-/* See license.txt for terms of usage */
-
-.panelNode-html {
- -moz-box-sizing: padding-box;
- padding: 4px 0 0 2px;
-}
-
-.nodeBox {
- position: relative;
- font-family: Monaco, monospace;
- padding-left: 13px;
- -moz-user-select: -moz-none;
-}
-.nodeBox.search-selection {
- -moz-user-select: text;
-}
-.twisty {
- position: absolute;
- left: 0px;
- top: 0px;
- width: 14px;
- height: 14px;
-}
-
-.nodeChildBox {
- margin-left: 12px;
- display: none;
-}
-
-.nodeLabel,
-.nodeCloseLabel {
- margin: -2px 2px 0 2px;
- border: 2px solid transparent;
- -moz-border-radius: 3px;
- padding: 0 2px;
- color: #000088;
-}
-
-.nodeCloseLabel {
- display: none;
-}
-
-.nodeTag {
- cursor: pointer;
- color: blue;
-}
-
-.nodeValue {
- color: #FF0000;
- font-weight: normal;
-}
-
-.nodeText,
-.nodeComment {
- margin: 0 2px;
- vertical-align: top;
-}
-
-.nodeText {
- color: #333333;
-}
-
-.nodeWhiteSpace {
- border: 1px solid LightGray;
- white-space: pre; /* otherwise the border will be collapsed around zero pixels */
- margin-left: 1px;
- color: gray;
-}
-
-
-.nodeWhiteSpace_Space {
- border: 1px solid #ddd;
-}
-
-.nodeTextEntity {
- border: 1px solid gray;
- white-space: pre; /* otherwise the border will be collapsed around zero pixels */
- margin-left: 1px;
-}
-
-.nodeComment {
- color: DarkGreen;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.nodeBox.highlightOpen > .nodeLabel {
- background-color: #EEEEEE;
-}
-
-.nodeBox.highlightOpen > .nodeCloseLabel,
-.nodeBox.highlightOpen > .nodeChildBox,
-.nodeBox.open > .nodeCloseLabel,
-.nodeBox.open > .nodeChildBox {
- display: block;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.nodeBox.selected > .nodeLabel > .nodeLabelBox,
-.nodeBox.selected > .nodeLabel {
- border-color: Highlight;
- background-color: Highlight;
- color: HighlightText !important;
-}
-
-.nodeBox.selected > .nodeLabel > .nodeLabelBox,
-.nodeBox.selected > .nodeLabel > .nodeLabelBox > .nodeTag,
-.nodeBox.selected > .nodeLabel > .nodeLabelBox > .nodeAttr > .nodeValue,
-.nodeBox.selected > .nodeLabel > .nodeLabelBox > .nodeText {
- color: inherit !important;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.nodeBox.highlighted > .nodeLabel {
- border-color: Highlight !important;
- background-color: cyan !important;
- color: #000000 !important;
-}
-
-.nodeBox.highlighted > .nodeLabel > .nodeLabelBox,
-.nodeBox.highlighted > .nodeLabel > .nodeLabelBox > .nodeTag,
-.nodeBox.highlighted > .nodeLabel > .nodeLabelBox > .nodeAttr > .nodeValue,
-.nodeBox.highlighted > .nodeLabel > .nodeLabelBox > .nodeText {
- color: #000000 !important;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.nodeBox.nodeHidden .nodeLabel > .nodeLabelBox,
-.nodeBox.nodeHidden .nodeCloseLabel,
-.nodeBox.nodeHidden .nodeLabel > .nodeLabelBox > .nodeText,
-.nodeBox.nodeHidden .nodeText {
- color: #888888;
-}
-
-.nodeBox.nodeHidden .nodeLabel > .nodeLabelBox > .nodeTag,
-.nodeBox.nodeHidden .nodeCloseLabel > .nodeCloseLabelBox > .nodeTag {
- color: #5F82D9;
-}
-
-.nodeBox.nodeHidden .nodeLabel > .nodeLabelBox > .nodeAttr > .nodeValue {
- color: #D86060;
-}
-
-.nodeBox.nodeHidden.selected > .nodeLabel > .nodeLabelBox,
-.nodeBox.nodeHidden.selected > .nodeLabel > .nodeLabelBox > .nodeTag,
-.nodeBox.nodeHidden.selected > .nodeLabel > .nodeLabelBox > .nodeAttr > .nodeValue,
-.nodeBox.nodeHidden.selected > .nodeLabel > .nodeLabelBox > .nodeText {
- color: SkyBlue !important;
-}
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
-.nodeBox.mutated > .nodeLabel,
-.nodeAttr.mutated,
-.nodeValue.mutated,
-.nodeText.mutated,
-.nodeBox.mutated > .nodeText {
- background-color: #EFFF79;
- color: #FF0000 !important;
-}
-
-.nodeBox.selected.mutated > .nodeLabel,
-.nodeBox.selected.mutated > .nodeLabel > .nodeLabelBox,
-.nodeBox.selected > .nodeLabel > .nodeLabelBox > .nodeAttr.mutated > .nodeValue,
-.nodeBox.selected > .nodeLabel > .nodeLabelBox > .nodeAttr > .nodeValue.mutated,
-.nodeBox.selected > .nodeLabel > .nodeLabelBox > .nodeText.mutated {
- background-color: #EFFF79;
- border-color: #EFFF79;
- color: #FF0000 !important;
-}
-
-/************************************************************************************************/
-
-.logRow-dirxml {
- padding-left: 0;
-}
-
-.soloElement > .nodeBox {
- padding-left: 0;
-}
-
-.useA11y .nodeLabel.focused {
- outline: 2px solid #FF9933;
- -moz-outline-radius: 3px;
- outline-offset: -2px;
-}
-
-.useA11y .nodeLabelBox:focus {
- outline: none;
-}
-
-/************************************************************************************************/
-
-.breakpointCode .twisty {
- display: none;
-}
-
-.breakpointCode .nodeBox.containerNodeBox,
-.breakpointCode .nodeLabel {
- padding-left: 0px;
- margin-left: 0px;
- font-family: Monaco, monospace !important;
-}
-
-.breakpointCode .nodeTag,
-.breakpointCode .nodeAttr,
-.breakpointCode .nodeText,
-.breakpointCode .nodeValue,
-.breakpointCode .nodeLabel {
- color: DarkGreen !important;
-}
-
-.breakpointMutationType {
- position: absolute;
- top: 4px;
- right: 20px;
- color: gray;
-}
-
-
-
-
-
-
-/************************************************************************************************/
-/************************************************************************************************/
-/************************************************************************************************/
-/************************************************************************************************/
-/************************************************************************************************/
-/************************************************************************************************/
-/************************************************************************************************/
-/************************************************************************************************/
-/************************************************************************************************/
-/************************************************************************************************/
-
-
-
-/************************************************************************************************/
-/* Twisties */
-
-.twisty,
-.logRow-errorMessage > .hasTwisty > .errorTitle,
-.logRow-log > .objectBox-array.hasTwisty,
-.logRow-spy .spyHead .spyTitle,
-.logGroup > .logRow,
-.memberRow.hasChildren > .memberLabelCell > .memberLabel,
-.hasHeaders .netHrefLabel,
-.netPageRow > .netCol > .netPageTitle {
- background-image: url(twistyClosed.png);
- background-repeat: no-repeat;
- background-position: 2px 2px;
- min-height: 12px;
-}
-
-.logRow-errorMessage > .hasTwisty.opened > .errorTitle,
-.logRow-log > .objectBox-array.hasTwisty.opened,
-.logRow-spy.opened .spyHead .spyTitle,
-.logGroup.opened > .logRow,
-.memberRow.hasChildren.opened > .memberLabelCell > .memberLabel,
-.nodeBox.highlightOpen > .nodeLabel > .twisty,
-.nodeBox.open > .nodeLabel > .twisty,
-.netRow.opened > .netCol > .netHrefLabel,
-.netPageRow.opened > .netCol > .netPageTitle {
- background-image: url(twistyOpen.png);
-}
-
-.twisty {
- background-position: 4px 4px;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/infoIcon.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/infoIcon.gif
deleted file mode 100644
index 0618e208..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/infoIcon.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/infoIcon.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/infoIcon.png
deleted file mode 100644
index da1e5334..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/infoIcon.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/loading_16.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/loading_16.gif
deleted file mode 100644
index 085ccaec..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/loading_16.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/min.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/min.png
deleted file mode 100644
index 1034d66f..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/min.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/minHover.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/minHover.png
deleted file mode 100644
index b0d1e1af..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/minHover.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/off.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/off.png
deleted file mode 100644
index b70b1d24..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/off.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/offHover.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/offHover.png
deleted file mode 100644
index f3670f19..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/offHover.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/pixel_transparent.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/pixel_transparent.gif
deleted file mode 100644
index 6865c960..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/pixel_transparent.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/roundCorner.svg b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/roundCorner.svg
deleted file mode 100644
index 2dfa7280..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/roundCorner.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg xmlns="http://www.w3.org/2000/svg">
- <rect fill="white" x="0" y="0" width="100%" height="100%" />
- <rect fill="highlight" x="0" y="0" width="100%" height="100%" rx="2px"/>
-</svg>
-
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/search.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/search.gif
deleted file mode 100644
index 2a620987..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/search.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/search.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/search.png
deleted file mode 100644
index fba33b8a..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/search.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadow.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadow.gif
deleted file mode 100644
index af7f537e..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadow.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadow2.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadow2.gif
deleted file mode 100644
index 099cbf35..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadow2.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadowAlpha.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadowAlpha.png
deleted file mode 100644
index a2561df9..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/shadowAlpha.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/sprite.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/sprite.png
deleted file mode 100644
index 33d2c4d4..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/sprite.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverLeft.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverLeft.png
deleted file mode 100644
index 0fb24d0c..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverLeft.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverMid.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverMid.png
deleted file mode 100644
index fbccab54..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverMid.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverRight.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverRight.png
deleted file mode 100644
index 3db0f361..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabHoverRight.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabLeft.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabLeft.png
deleted file mode 100644
index a6cc9e94..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabLeft.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuCheckbox.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuCheckbox.png
deleted file mode 100644
index 4726e622..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuCheckbox.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuPin.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuPin.png
deleted file mode 100644
index eb4b11ef..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuPin.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuRadio.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuRadio.png
deleted file mode 100644
index 55b982d7..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuRadio.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuTarget.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuTarget.png
deleted file mode 100644
index 957bd9f2..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuTarget.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuTargetHover.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuTargetHover.png
deleted file mode 100644
index 200a3708..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMenuTargetHover.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMid.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMid.png
deleted file mode 100644
index 68986c3b..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabMid.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabRight.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabRight.png
deleted file mode 100644
index 50113079..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tabRight.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorBorders.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorBorders.gif
deleted file mode 100644
index 0ee54978..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorBorders.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorBorders.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorBorders.png
deleted file mode 100644
index 21682c3d..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorBorders.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorCorners.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorCorners.gif
deleted file mode 100644
index 04f84215..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorCorners.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorCorners.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorCorners.png
deleted file mode 100644
index a0f839dc..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/textEditorCorners.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/titlebarMid.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/titlebarMid.png
deleted file mode 100644
index 10998ae7..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/titlebarMid.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/toolbarMid.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/toolbarMid.png
deleted file mode 100644
index aa21dee6..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/toolbarMid.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tree_close.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tree_close.gif
deleted file mode 100644
index e26728ab..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tree_close.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tree_open.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tree_open.gif
deleted file mode 100644
index edf662f3..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/tree_open.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/twistyClosed.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/twistyClosed.png
deleted file mode 100644
index f80319b0..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/twistyClosed.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/twistyOpen.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/twistyOpen.png
deleted file mode 100644
index 86801243..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/twistyOpen.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/up.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/up.png
deleted file mode 100644
index 2174d03a..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/up.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/upActive.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/upActive.png
deleted file mode 100644
index 236cf676..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/upActive.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/upHover.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/upHover.png
deleted file mode 100644
index cd813170..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/upHover.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/warningIcon.gif b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/warningIcon.gif
deleted file mode 100644
index 84972788..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/warningIcon.gif
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/warningIcon.png b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/warningIcon.png
deleted file mode 100644
index de51084e..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/skin/xp/warningIcon.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/src/firebug-lite-debug.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/src/firebug-lite-debug.js
deleted file mode 100644
index 40b1ae70..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/firebug-lite/src/firebug-lite-debug.js
+++ /dev/null
@@ -1,31176 +0,0 @@
-(function(){
-
-/*!*************************************************************
- *
- * Firebug Lite 1.4.0
- *
- * Copyright (c) 2007, Parakey Inc.
- * Released under BSD license.
- * More information: http://getfirebug.com/firebuglite
- *
- **************************************************************/
-
-/*!
- * CSS selectors powered by:
- *
- * Sizzle CSS Selector Engine - v1.0
- * Copyright 2009, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-
-/** @namespace describe lib */
-
-// FIXME: xxxpedro if we use "var FBL = {}" the FBL won't appear in the DOM Panel in IE
-var FBL = {};
-
-( /** @scope s_lib @this FBL */ function() {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Constants
-
-var productionDir = "http://getfirebug.com/releases/lite/";
-var bookmarkletVersion = 4;
-
-// ************************************************************************************************
-
-var reNotWhitespace = /[^\s]/;
-var reSplitFile = /:\/{1,3}(.*?)\/([^\/]*?)\/?($|\?.*)/;
-
-// Globals
-this.reJavascript = /\s*javascript:\s*(.*)/;
-this.reChrome = /chrome:\/\/([^\/]*)\//;
-this.reFile = /file:\/\/([^\/]*)\//;
-
-
-// ************************************************************************************************
-// properties
-
-var userAgent = navigator.userAgent.toLowerCase();
-this.isFirefox = /firefox/.test(userAgent);
-this.isOpera = /opera/.test(userAgent);
-this.isSafari = /webkit/.test(userAgent);
-this.isIE = /msie/.test(userAgent) && !/opera/.test(userAgent);
-this.isIE6 = /msie 6/i.test(navigator.appVersion);
-this.browserVersion = (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1];
-this.isIElt8 = this.isIE && (this.browserVersion-0 < 8);
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-this.NS = null;
-this.pixelsPerInch = null;
-
-
-// ************************************************************************************************
-// Namespaces
-
-var namespaces = [];
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-this.ns = function(fn)
-{
- var ns = {};
- namespaces.push(fn, ns);
- return ns;
-};
-
-var FBTrace = null;
-
-this.initialize = function()
-{
- // Firebug Lite is already running in persistent mode so we just quit
- if (window.firebug && firebug.firebuglite || window.console && console.firebuglite)
- return;
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // initialize environment
-
- // point the FBTrace object to the local variable
- if (FBL.FBTrace)
- FBTrace = FBL.FBTrace;
- else
- FBTrace = FBL.FBTrace = {};
-
- // check if the actual window is a persisted chrome context
- var isChromeContext = window.Firebug && typeof window.Firebug.SharedEnv == "object";
-
- // chrome context of the persistent application
- if (isChromeContext)
- {
- // TODO: xxxpedro persist - make a better synchronization
- sharedEnv = window.Firebug.SharedEnv;
- delete window.Firebug.SharedEnv;
-
- FBL.Env = sharedEnv;
- FBL.Env.isChromeContext = true;
- FBTrace.messageQueue = FBL.Env.traceMessageQueue;
- }
- // non-persistent application
- else
- {
- FBL.NS = document.documentElement.namespaceURI;
- FBL.Env.browser = window;
- FBL.Env.destroy = destroyEnvironment;
-
- if (document.documentElement.getAttribute("debug") == "true")
- FBL.Env.Options.startOpened = true;
-
- // find the URL location of the loaded application
- findLocation();
-
- // TODO: get preferences here...
- // The problem is that we don't have the Firebug object yet, so we can't use
- // Firebug.loadPrefs. We're using the Store module directly instead.
- var prefs = FBL.Store.get("FirebugLite") || {};
- FBL.Env.DefaultOptions = FBL.Env.Options;
- FBL.Env.Options = FBL.extend(FBL.Env.Options, prefs.options || {});
-
- if (FBL.isFirefox &&
- typeof FBL.Env.browser.console == "object" &&
- FBL.Env.browser.console.firebug &&
- FBL.Env.Options.disableWhenFirebugActive)
- return;
- }
-
- // exposes the FBL to the global namespace when in debug mode
- if (FBL.Env.isDebugMode)
- {
- FBL.Env.browser.FBL = FBL;
- }
-
- // check browser compatibilities
- this.isQuiksMode = FBL.Env.browser.document.compatMode == "BackCompat";
- this.isIEQuiksMode = this.isIE && this.isQuiksMode;
- this.isIEStantandMode = this.isIE && !this.isQuiksMode;
-
- this.noFixedPosition = this.isIE6 || this.isIEQuiksMode;
-
- // after creating/synchronizing the environment, initialize the FBTrace module
- if (FBL.Env.Options.enableTrace) FBTrace.initialize();
-
- if (FBTrace.DBG_INITIALIZE && isChromeContext) FBTrace.sysout("FBL.initialize - persistent application", "initialize chrome context");
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // initialize namespaces
-
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("FBL.initialize", namespaces.length/2+" namespaces BEGIN");
-
- for (var i = 0; i < namespaces.length; i += 2)
- {
- var fn = namespaces[i];
- var ns = namespaces[i+1];
- fn.apply(ns);
- }
-
- if (FBTrace.DBG_INITIALIZE) {
- FBTrace.sysout("FBL.initialize", namespaces.length/2+" namespaces END");
- FBTrace.sysout("FBL waitForDocument", "waiting document load");
- }
-
- FBL.Ajax.initialize();
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // finish environment initialization
- FBL.Firebug.loadPrefs();
-
- if (FBL.Env.Options.enablePersistent)
- {
- // TODO: xxxpedro persist - make a better synchronization
- if (isChromeContext)
- {
- FBL.FirebugChrome.clone(FBL.Env.FirebugChrome);
- }
- else
- {
- FBL.Env.FirebugChrome = FBL.FirebugChrome;
- FBL.Env.traceMessageQueue = FBTrace.messageQueue;
- }
- }
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // wait document load
-
- waitForDocument();
-};
-
-var waitForDocument = function waitForDocument()
-{
- // document.body not available in XML+XSL documents in Firefox
- var doc = FBL.Env.browser.document;
- var body = doc.getElementsByTagName("body")[0];
-
- if (body)
- {
- calculatePixelsPerInch(doc, body);
- onDocumentLoad();
- }
- else
- setTimeout(waitForDocument, 50);
-};
-
-var onDocumentLoad = function onDocumentLoad()
-{
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("FBL onDocumentLoad", "document loaded");
-
- // fix IE6 problem with cache of background images, causing a lot of flickering
- if (FBL.isIE6)
- fixIE6BackgroundImageCache();
-
- // chrome context of the persistent application
- if (FBL.Env.Options.enablePersistent && FBL.Env.isChromeContext)
- {
- // finally, start the application in the chrome context
- FBL.Firebug.initialize();
-
- // if is not development mode, remove the shared environment cache object
- // used to synchronize the both persistent contexts
- if (!FBL.Env.isDevelopmentMode)
- {
- sharedEnv.destroy();
- sharedEnv = null;
- }
- }
- // non-persistent application
- else
- {
- FBL.FirebugChrome.create();
- }
-};
-
-// ************************************************************************************************
-// Env
-
-var sharedEnv;
-
-this.Env =
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Env Options (will be transported to Firebug options)
- Options:
- {
- saveCookies: true,
-
- saveWindowPosition: false,
- saveCommandLineHistory: false,
-
- startOpened: false,
- startInNewWindow: false,
- showIconWhenHidden: true,
-
- overrideConsole: true,
- ignoreFirebugElements: true,
- disableWhenFirebugActive: true,
-
- disableXHRListener: false,
- disableResourceFetching: false,
-
- enableTrace: false,
- enablePersistent: false
-
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Library location
- Location:
- {
- sourceDir: null,
- baseDir: null,
- skinDir: null,
- skin: null,
- app: null
- },
-
- skin: "xp",
- useLocalSkin: false,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Env states
- isDevelopmentMode: false,
- isDebugMode: false,
- isChromeContext: false,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Env references
- browser: null,
- chrome: null
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var destroyEnvironment = function destroyEnvironment()
-{
- setTimeout(function()
- {
- FBL = null;
- }, 100);
-};
-
-// ************************************************************************************************
-// Library location
-
-var findLocation = function findLocation()
-{
- var reFirebugFile = /(firebug-lite(?:-\w+)?(?:\.js|\.jgz))(?:#(.+))?$/;
- var reGetFirebugSite = /(?:http|https):\/\/getfirebug.com\//;
- var isGetFirebugSite;
-
- var rePath = /^(.*\/)/;
- var reProtocol = /^\w+:\/\//;
- var path = null;
- var doc = document;
-
- // Firebug Lite 1.3.0 bookmarklet identification
- var script = doc.getElementById("FirebugLite");
-
- var scriptSrc;
- var hasSrcAttribute = true;
-
- // If the script was loaded via bookmarklet, we already have the script tag
- if (script)
- {
- scriptSrc = script.src;
- file = reFirebugFile.exec(scriptSrc);
-
- var version = script.getAttribute("FirebugLite");
- var number = version ? parseInt(version) : 0;
-
- if (!version || !number || number < bookmarkletVersion)
- {
- FBL.Env.bookmarkletOutdated = true;
- }
- }
- // otherwise we must search for the correct script tag
- else
- {
- for(var i=0, s=doc.getElementsByTagName("script"), si; si=s[i]; i++)
- {
- var file = null;
- if ( si.nodeName.toLowerCase() == "script" )
- {
- if (file = reFirebugFile.exec(si.getAttribute("firebugSrc")))
- {
- scriptSrc = si.getAttribute("firebugSrc");
- hasSrcAttribute = false;
- }
- else if (file = reFirebugFile.exec(si.src))
- {
- scriptSrc = si.src;
- }
- else
- continue;
-
- script = si;
- break;
- }
- }
- }
-
- // mark the script tag to be ignored by Firebug Lite
- if (script)
- script.firebugIgnore = true;
-
- if (file)
- {
- var fileName = file[1];
- var fileOptions = file[2];
-
- // absolute path
- if (reProtocol.test(scriptSrc)) {
- path = rePath.exec(scriptSrc)[1];
-
- }
- // relative path
- else
- {
- var r = rePath.exec(scriptSrc);
- var src = r ? r[1] : scriptSrc;
- var backDir = /^((?:\.\.\/)+)(.*)/.exec(src);
- var reLastDir = /^(.*\/)[^\/]+\/$/;
- path = rePath.exec(location.href)[1];
-
- // "../some/path"
- if (backDir)
- {
- var j = backDir[1].length/3;
- var p;
- while (j-- > 0)
- path = reLastDir.exec(path)[1];
-
- path += backDir[2];
- }
-
- else if(src.indexOf("/") != -1)
- {
- // "./some/path"
- if(/^\.\/./.test(src))
- {
- path += src.substring(2);
- }
- // "/some/path"
- else if(/^\/./.test(src))
- {
- var domain = /^(\w+:\/\/[^\/]+)/.exec(path);
- path = domain[1] + src;
- }
- // "some/path"
- else
- {
- path += src;
- }
- }
- }
- }
-
- FBL.Env.isChromeExtension = script && script.getAttribute("extension") == "Chrome";
- if (FBL.Env.isChromeExtension)
- {
- path = productionDir;
- FBL.Env.bookmarkletOutdated = false;
- script = {innerHTML: "{showIconWhenHidden:false}"};
- }
-
- isGetFirebugSite = reGetFirebugSite.test(path);
-
- if (isGetFirebugSite && path.indexOf("/releases/lite/") == -1)
- {
- // See Issue 4587 - If we are loading the script from getfirebug.com shortcut, like
- // https://getfirebug.com/firebug-lite.js, then we must manually add the full path,
- // otherwise the Env.Location will hold the wrong path, which will in turn lead to
- // undesirable effects like the problem in Issue 4587
- path += "releases/lite/" + (fileName == "firebug-lite-beta.js" ? "beta/" : "latest/");
- }
-
- var m = path && path.match(/([^\/]+)\/$/) || null;
-
- if (path && m)
- {
- var Env = FBL.Env;
-
- // Always use the local skin when running in the same domain
- // See Issue 3554: Firebug Lite should use local images when loaded locally
- Env.useLocalSkin = path.indexOf(location.protocol + "//" + location.host + "/") == 0 &&
- // but we cannot use the locan skin when loaded from getfirebug.com, otherwise
- // the bookmarklet won't work when visiting getfirebug.com
- !isGetFirebugSite;
-
- // detecting development and debug modes via file name
- if (fileName == "firebug-lite-dev.js")
- {
- Env.isDevelopmentMode = true;
- Env.isDebugMode = true;
- }
- else if (fileName == "firebug-lite-debug.js")
- {
- Env.isDebugMode = true;
- }
-
- // process the <html debug="true">
- if (Env.browser.document.documentElement.getAttribute("debug") == "true")
- {
- Env.Options.startOpened = true;
- }
-
- // process the Script URL Options
- if (fileOptions)
- {
- var options = fileOptions.split(",");
-
- for (var i = 0, length = options.length; i < length; i++)
- {
- var option = options[i];
- var name, value;
-
- if (option.indexOf("=") != -1)
- {
- var parts = option.split("=");
- name = parts[0];
- value = eval(unescape(parts[1]));
- }
- else
- {
- name = option;
- value = true;
- }
-
- if (name == "debug")
- {
- Env.isDebugMode = !!value;
- }
- else if (name in Env.Options)
- {
- Env.Options[name] = value;
- }
- else
- {
- Env[name] = value;
- }
- }
- }
-
- // process the Script JSON Options
- if (hasSrcAttribute)
- {
- var innerOptions = FBL.trim(script.innerHTML);
- if (innerOptions)
- {
- var innerOptionsObject = eval("(" + innerOptions + ")");
-
- for (var name in innerOptionsObject)
- {
- var value = innerOptionsObject[name];
-
- if (name == "debug")
- {
- Env.isDebugMode = !!value;
- }
- else if (name in Env.Options)
- {
- Env.Options[name] = value;
- }
- else
- {
- Env[name] = value;
- }
- }
- }
- }
-
- if (!Env.Options.saveCookies)
- FBL.Store.remove("FirebugLite");
-
- // process the Debug Mode
- if (Env.isDebugMode)
- {
- Env.Options.startOpened = true;
- Env.Options.enableTrace = true;
- Env.Options.disableWhenFirebugActive = false;
- }
-
- var loc = Env.Location;
- var isProductionRelease = path.indexOf(productionDir) != -1;
-
- loc.sourceDir = path;
- loc.baseDir = path.substr(0, path.length - m[1].length - 1);
- loc.skinDir = (isProductionRelease ? path : loc.baseDir) + "skin/" + Env.skin + "/";
- loc.skin = loc.skinDir + "firebug.html";
- loc.app = path + fileName;
- }
- else
- {
- throw new Error("Firebug Error: Library path not found");
- }
-};
-
-// ************************************************************************************************
-// Basics
-
-this.bind = function() // fn, thisObject, args => thisObject.fn(args, arguments);
-{
- var args = cloneArray(arguments), fn = args.shift(), object = args.shift();
- return function() { return fn.apply(object, arrayInsert(cloneArray(args), 0, arguments)); };
-};
-
-this.bindFixed = function() // fn, thisObject, args => thisObject.fn(args);
-{
- var args = cloneArray(arguments), fn = args.shift(), object = args.shift();
- return function() { return fn.apply(object, args); };
-};
-
-this.extend = function(l, r)
-{
- var newOb = {};
- for (var n in l)
- newOb[n] = l[n];
- for (var n in r)
- newOb[n] = r[n];
- return newOb;
-};
-
-this.descend = function(prototypeParent, childProperties)
-{
- function protoSetter() {};
- protoSetter.prototype = prototypeParent;
- var newOb = new protoSetter();
- for (var n in childProperties)
- newOb[n] = childProperties[n];
- return newOb;
-};
-
-this.append = function(l, r)
-{
- for (var n in r)
- l[n] = r[n];
-
- return l;
-};
-
-this.keys = function(map) // At least sometimes the keys will be on user-level window objects
-{
- var keys = [];
- try
- {
- for (var name in map) // enumeration is safe
- keys.push(name); // name is string, safe
- }
- catch (exc)
- {
- // Sometimes we get exceptions trying to iterate properties
- }
-
- return keys; // return is safe
-};
-
-this.values = function(map)
-{
- var values = [];
- try
- {
- for (var name in map)
- {
- try
- {
- values.push(map[name]);
- }
- catch (exc)
- {
- // Sometimes we get exceptions trying to access properties
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("lib.values FAILED ", exc);
- }
-
- }
- }
- catch (exc)
- {
- // Sometimes we get exceptions trying to iterate properties
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("lib.values FAILED ", exc);
- }
-
- return values;
-};
-
-this.remove = function(list, item)
-{
- for (var i = 0; i < list.length; ++i)
- {
- if (list[i] == item)
- {
- list.splice(i, 1);
- break;
- }
- }
-};
-
-this.sliceArray = function(array, index)
-{
- var slice = [];
- for (var i = index; i < array.length; ++i)
- slice.push(array[i]);
-
- return slice;
-};
-
-function cloneArray(array, fn)
-{
- var newArray = [];
-
- if (fn)
- for (var i = 0; i < array.length; ++i)
- newArray.push(fn(array[i]));
- else
- for (var i = 0; i < array.length; ++i)
- newArray.push(array[i]);
-
- return newArray;
-}
-
-function extendArray(array, array2)
-{
- var newArray = [];
- newArray.push.apply(newArray, array);
- newArray.push.apply(newArray, array2);
- return newArray;
-}
-
-this.extendArray = extendArray;
-this.cloneArray = cloneArray;
-
-function arrayInsert(array, index, other)
-{
- for (var i = 0; i < other.length; ++i)
- array.splice(i+index, 0, other[i]);
-
- return array;
-}
-
-// ************************************************************************************************
-
-this.createStyleSheet = function(doc, url)
-{
- //TODO: xxxpedro
- //var style = doc.createElementNS("http://www.w3.org/1999/xhtml", "style");
- var style = this.createElement("link");
- style.setAttribute("charset","utf-8");
- style.firebugIgnore = true;
- style.setAttribute("rel", "stylesheet");
- style.setAttribute("type", "text/css");
- style.setAttribute("href", url);
-
- //TODO: xxxpedro
- //style.innerHTML = this.getResource(url);
- return style;
-};
-
-this.addStyleSheet = function(doc, style)
-{
- var heads = doc.getElementsByTagName("head");
- if (heads.length)
- heads[0].appendChild(style);
- else
- doc.documentElement.appendChild(style);
-};
-
-this.appendStylesheet = function(doc, uri)
-{
- // Make sure the stylesheet is not appended twice.
- if (this.$(uri, doc))
- return;
-
- var styleSheet = this.createStyleSheet(doc, uri);
- styleSheet.setAttribute("id", uri);
- this.addStyleSheet(doc, styleSheet);
-};
-
-this.addScript = function(doc, id, src)
-{
- var element = doc.createElementNS("http://www.w3.org/1999/xhtml", "html:script");
- element.setAttribute("type", "text/javascript");
- element.setAttribute("id", id);
- if (!FBTrace.DBG_CONSOLE)
- FBL.unwrapObject(element).firebugIgnore = true;
-
- element.innerHTML = src;
- if (doc.documentElement)
- doc.documentElement.appendChild(element);
- else
- {
- // See issue 1079, the svg test case gives this error
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("lib.addScript doc has no documentElement:", doc);
- }
- return element;
-};
-
-
-// ************************************************************************************************
-
-this.getStyle = this.isIE ?
- function(el, name)
- {
- return el.currentStyle[name] || el.style[name] || undefined;
- }
- :
- function(el, name)
- {
- return el.ownerDocument.defaultView.getComputedStyle(el,null)[name]
- || el.style[name] || undefined;
- };
-
-
-// ************************************************************************************************
-// Whitespace and Entity conversions
-
-var entityConversionLists = this.entityConversionLists = {
- normal : {
- whitespace : {
- '\t' : '\u200c\u2192',
- '\n' : '\u200c\u00b6',
- '\r' : '\u200c\u00ac',
- ' ' : '\u200c\u00b7'
- }
- },
- reverse : {
- whitespace : {
- '&Tab;' : '\t',
- '&NewLine;' : '\n',
- '\u200c\u2192' : '\t',
- '\u200c\u00b6' : '\n',
- '\u200c\u00ac' : '\r',
- '\u200c\u00b7' : ' '
- }
- }
-};
-
-var normal = entityConversionLists.normal,
- reverse = entityConversionLists.reverse;
-
-function addEntityMapToList(ccode, entity)
-{
- var lists = Array.prototype.slice.call(arguments, 2),
- len = lists.length,
- ch = String.fromCharCode(ccode);
- for (var i = 0; i < len; i++)
- {
- var list = lists[i];
- normal[list]=normal[list] || {};
- normal[list][ch] = '&' + entity + ';';
- reverse[list]=reverse[list] || {};
- reverse[list]['&' + entity + ';'] = ch;
- }
-};
-
-var e = addEntityMapToList,
- white = 'whitespace',
- text = 'text',
- attr = 'attributes',
- css = 'css',
- editor = 'editor';
-
-e(0x0022, 'quot', attr, css);
-e(0x0026, 'amp', attr, text, css);
-e(0x0027, 'apos', css);
-e(0x003c, 'lt', attr, text, css);
-e(0x003e, 'gt', attr, text, css);
-e(0xa9, 'copy', text, editor);
-e(0xae, 'reg', text, editor);
-e(0x2122, 'trade', text, editor);
-
-// See http://en.wikipedia.org/wiki/Dash
-e(0x2012, '#8210', attr, text, editor); // figure dash
-e(0x2013, 'ndash', attr, text, editor); // en dash
-e(0x2014, 'mdash', attr, text, editor); // em dash
-e(0x2015, '#8213', attr, text, editor); // horizontal bar
-
-e(0x00a0, 'nbsp', attr, text, white, editor);
-e(0x2002, 'ensp', attr, text, white, editor);
-e(0x2003, 'emsp', attr, text, white, editor);
-e(0x2009, 'thinsp', attr, text, white, editor);
-e(0x200c, 'zwnj', attr, text, white, editor);
-e(0x200d, 'zwj', attr, text, white, editor);
-e(0x200e, 'lrm', attr, text, white, editor);
-e(0x200f, 'rlm', attr, text, white, editor);
-e(0x200b, '#8203', attr, text, white, editor); // zero-width space (ZWSP)
-
-//************************************************************************************************
-// Entity escaping
-
-var entityConversionRegexes = {
- normal : {},
- reverse : {}
- };
-
-var escapeEntitiesRegEx = {
- normal : function(list)
- {
- var chars = [];
- for ( var ch in list)
- {
- chars.push(ch);
- }
- return new RegExp('([' + chars.join('') + '])', 'gm');
- },
- reverse : function(list)
- {
- var chars = [];
- for ( var ch in list)
- {
- chars.push(ch);
- }
- return new RegExp('(' + chars.join('|') + ')', 'gm');
- }
-};
-
-function getEscapeRegexp(direction, lists)
-{
- var name = '', re;
- var groups = [].concat(lists);
- for (i = 0; i < groups.length; i++)
- {
- name += groups[i].group;
- }
- re = entityConversionRegexes[direction][name];
- if (!re)
- {
- var list = {};
- if (groups.length > 1)
- {
- for ( var i = 0; i < groups.length; i++)
- {
- var aList = entityConversionLists[direction][groups[i].group];
- for ( var item in aList)
- list[item] = aList[item];
- }
- } else if (groups.length==1)
- {
- list = entityConversionLists[direction][groups[0].group]; // faster for special case
- } else {
- list = {}; // perhaps should print out an error here?
- }
- re = entityConversionRegexes[direction][name] = escapeEntitiesRegEx[direction](list);
- }
- return re;
-};
-
-function createSimpleEscape(name, direction)
-{
- return function(value)
- {
- var list = entityConversionLists[direction][name];
- return String(value).replace(
- getEscapeRegexp(direction, {
- group : name,
- list : list
- }),
- function(ch)
- {
- return list[ch];
- }
- );
- };
-};
-
-function escapeGroupsForEntities(str, lists)
-{
- lists = [].concat(lists);
- var re = getEscapeRegexp('normal', lists),
- split = String(str).split(re),
- len = split.length,
- results = [],
- cur, r, i, ri = 0, l, list, last = '';
- if (!len)
- return [ {
- str : String(str),
- group : '',
- name : ''
- } ];
- for (i = 0; i < len; i++)
- {
- cur = split[i];
- if (cur == '')
- continue;
- for (l = 0; l < lists.length; l++)
- {
- list = lists[l];
- r = entityConversionLists.normal[list.group][cur];
- // if (cur == ' ' && list.group == 'whitespace' && last == ' ') // only show for runs of more than one space
- // r = ' ';
- if (r)
- {
- results[ri] = {
- 'str' : r,
- 'class' : list['class'],
- 'extra' : list.extra[cur] ? list['class']
- + list.extra[cur] : ''
- };
- break;
- }
- }
- // last=cur;
- if (!r)
- results[ri] = {
- 'str' : cur,
- 'class' : '',
- 'extra' : ''
- };
- ri++;
- }
- return results;
-};
-
-this.escapeGroupsForEntities = escapeGroupsForEntities;
-
-
-function unescapeEntities(str, lists)
-{
- var re = getEscapeRegexp('reverse', lists),
- split = String(str).split(re),
- len = split.length,
- results = [],
- cur, r, i, ri = 0, l, list;
- if (!len)
- return str;
- lists = [].concat(lists);
- for (i = 0; i < len; i++)
- {
- cur = split[i];
- if (cur == '')
- continue;
- for (l = 0; l < lists.length; l++)
- {
- list = lists[l];
- r = entityConversionLists.reverse[list.group][cur];
- if (r)
- {
- results[ri] = r;
- break;
- }
- }
- if (!r)
- results[ri] = cur;
- ri++;
- }
- return results.join('') || '';
-};
-
-
-// ************************************************************************************************
-// String escaping
-
-var escapeForTextNode = this.escapeForTextNode = createSimpleEscape('text', 'normal');
-var escapeForHtmlEditor = this.escapeForHtmlEditor = createSimpleEscape('editor', 'normal');
-var escapeForElementAttribute = this.escapeForElementAttribute = createSimpleEscape('attributes', 'normal');
-var escapeForCss = this.escapeForCss = createSimpleEscape('css', 'normal');
-
-// deprecated compatibility functions
-//this.deprecateEscapeHTML = createSimpleEscape('text', 'normal');
-//this.deprecatedUnescapeHTML = createSimpleEscape('text', 'reverse');
-//this.escapeHTML = deprecated("use appropriate escapeFor... function", this.deprecateEscapeHTML);
-//this.unescapeHTML = deprecated("use appropriate unescapeFor... function", this.deprecatedUnescapeHTML);
-
-var escapeForSourceLine = this.escapeForSourceLine = createSimpleEscape('text', 'normal');
-
-var unescapeWhitespace = createSimpleEscape('whitespace', 'reverse');
-
-this.unescapeForTextNode = function(str)
-{
- if (Firebug.showTextNodesWithWhitespace)
- str = unescapeWhitespace(str);
- if (!Firebug.showTextNodesWithEntities)
- str = escapeForElementAttribute(str);
- return str;
-};
-
-this.escapeNewLines = function(value)
-{
- return value.replace(/\r/g, "\\r").replace(/\n/g, "\\n");
-};
-
-this.stripNewLines = function(value)
-{
- return typeof(value) == "string" ? value.replace(/[\r\n]/g, " ") : value;
-};
-
-this.escapeJS = function(value)
-{
- return value.replace(/\r/g, "\\r").replace(/\n/g, "\\n").replace('"', '\\"', "g");
-};
-
-function escapeHTMLAttribute(value)
-{
- function replaceChars(ch)
- {
- switch (ch)
- {
- case "&":
- return "&amp;";
- case "'":
- return apos;
- case '"':
- return quot;
- }
- return "?";
- };
- var apos = "&#39;", quot = "&quot;", around = '"';
- if( value.indexOf('"') == -1 ) {
- quot = '"';
- apos = "'";
- } else if( value.indexOf("'") == -1 ) {
- quot = '"';
- around = "'";
- }
- return around + (String(value).replace(/[&'"]/g, replaceChars)) + around;
-}
-
-
-function escapeHTML(value)
-{
- function replaceChars(ch)
- {
- switch (ch)
- {
- case "<":
- return "&lt;";
- case ">":
- return "&gt;";
- case "&":
- return "&amp;";
- case "'":
- return "&#39;";
- case '"':
- return "&quot;";
- }
- return "?";
- };
- return String(value).replace(/[<>&"']/g, replaceChars);
-}
-
-this.escapeHTML = escapeHTML;
-
-this.cropString = function(text, limit)
-{
- text = text + "";
-
- if (!limit)
- var halfLimit = 50;
- else
- var halfLimit = limit / 2;
-
- if (text.length > limit)
- return this.escapeNewLines(text.substr(0, halfLimit) + "..." + text.substr(text.length-halfLimit));
- else
- return this.escapeNewLines(text);
-};
-
-this.isWhitespace = function(text)
-{
- return !reNotWhitespace.exec(text);
-};
-
-this.splitLines = function(text)
-{
- var reSplitLines2 = /.*(:?\r\n|\n|\r)?/mg;
- var lines;
- if (text.match)
- {
- lines = text.match(reSplitLines2);
- }
- else
- {
- var str = text+"";
- lines = str.match(reSplitLines2);
- }
- lines.pop();
- return lines;
-};
-
-
-// ************************************************************************************************
-
-this.safeToString = function(ob)
-{
- if (this.isIE)
- {
- try
- {
- // FIXME: xxxpedro this is failing in IE for the global "external" object
- return ob + "";
- }
- catch(E)
- {
- FBTrace.sysout("Lib.safeToString() failed for ", ob);
- return "";
- }
- }
-
- try
- {
- if (ob && "toString" in ob && typeof ob.toString == "function")
- return ob.toString();
- }
- catch (exc)
- {
- // xxxpedro it is not safe to use ob+""?
- return ob + "";
- ///return "[an object with no toString() function]";
- }
-};
-
-// ************************************************************************************************
-
-this.hasProperties = function(ob)
-{
- try
- {
- for (var name in ob)
- return true;
- } catch (exc) {}
- return false;
-};
-
-// ************************************************************************************************
-// String Util
-
-var reTrim = /^\s+|\s+$/g;
-this.trim = function(s)
-{
- return s.replace(reTrim, "");
-};
-
-
-// ************************************************************************************************
-// Empty
-
-this.emptyFn = function(){};
-
-
-
-// ************************************************************************************************
-// Visibility
-
-this.isVisible = function(elt)
-{
- /*
- if (elt instanceof XULElement)
- {
- //FBTrace.sysout("isVisible elt.offsetWidth: "+elt.offsetWidth+" offsetHeight:"+ elt.offsetHeight+" localName:"+ elt.localName+" nameSpace:"+elt.nameSpaceURI+"\n");
- return (!elt.hidden && !elt.collapsed);
- }
- /**/
-
- return this.getStyle(elt, "visibility") != "hidden" &&
- ( elt.offsetWidth > 0 || elt.offsetHeight > 0
- || elt.tagName in invisibleTags
- || elt.namespaceURI == "http://www.w3.org/2000/svg"
- || elt.namespaceURI == "http://www.w3.org/1998/Math/MathML" );
-};
-
-this.collapse = function(elt, collapsed)
-{
- // IE6 doesn't support the [collapsed] CSS selector. IE7 does support the selector,
- // but it is causing a bug (the element disappears when you set the "collapsed"
- // attribute, but it doesn't appear when you remove the attribute. So, for those
- // cases, we need to use the class attribute.
- if (this.isIElt8)
- {
- if (collapsed)
- this.setClass(elt, "collapsed");
- else
- this.removeClass(elt, "collapsed");
- }
- else
- elt.setAttribute("collapsed", collapsed ? "true" : "false");
-};
-
-this.obscure = function(elt, obscured)
-{
- if (obscured)
- this.setClass(elt, "obscured");
- else
- this.removeClass(elt, "obscured");
-};
-
-this.hide = function(elt, hidden)
-{
- elt.style.visibility = hidden ? "hidden" : "visible";
-};
-
-this.clearNode = function(node)
-{
- var nodeName = " " + node.nodeName.toLowerCase() + " ";
- var ignoreTags = " table tbody thead tfoot th tr td ";
-
- // IE can't use innerHTML of table elements
- if (this.isIE && ignoreTags.indexOf(nodeName) != -1)
- this.eraseNode(node);
- else
- node.innerHTML = "";
-};
-
-this.eraseNode = function(node)
-{
- while (node.lastChild)
- node.removeChild(node.lastChild);
-};
-
-// ************************************************************************************************
-// Window iteration
-
-this.iterateWindows = function(win, handler)
-{
- if (!win || !win.document)
- return;
-
- handler(win);
-
- if (win == top || !win.frames) return; // XXXjjb hack for chromeBug
-
- for (var i = 0; i < win.frames.length; ++i)
- {
- var subWin = win.frames[i];
- if (subWin != win)
- this.iterateWindows(subWin, handler);
- }
-};
-
-this.getRootWindow = function(win)
-{
- for (; win; win = win.parent)
- {
- if (!win.parent || win == win.parent || !this.instanceOf(win.parent, "Window"))
- return win;
- }
- return null;
-};
-
-// ************************************************************************************************
-// Graphics
-
-this.getClientOffset = function(elt)
-{
- var addOffset = function addOffset(elt, coords, view)
- {
- var p = elt.offsetParent;
-
- ///var style = isIE ? elt.currentStyle : view.getComputedStyle(elt, "");
- var chrome = Firebug.chrome;
-
- if (elt.offsetLeft)
- ///coords.x += elt.offsetLeft + parseInt(style.borderLeftWidth);
- coords.x += elt.offsetLeft + chrome.getMeasurementInPixels(elt, "borderLeft");
- if (elt.offsetTop)
- ///coords.y += elt.offsetTop + parseInt(style.borderTopWidth);
- coords.y += elt.offsetTop + chrome.getMeasurementInPixels(elt, "borderTop");
-
- if (p)
- {
- if (p.nodeType == 1)
- addOffset(p, coords, view);
- }
- else
- {
- var otherView = isIE ? elt.ownerDocument.parentWindow : elt.ownerDocument.defaultView;
- // IE will fail when reading the frameElement property of a popup window.
- // We don't need it anyway once it is outside the (popup) viewport, so we're
- // ignoring the frameElement check when the window is a popup
- if (!otherView.opener && otherView.frameElement)
- addOffset(otherView.frameElement, coords, otherView);
- }
- };
-
- var isIE = this.isIE;
- var coords = {x: 0, y: 0};
- if (elt)
- {
- var view = isIE ? elt.ownerDocument.parentWindow : elt.ownerDocument.defaultView;
- addOffset(elt, coords, view);
- }
-
- return coords;
-};
-
-this.getViewOffset = function(elt, singleFrame)
-{
- function addOffset(elt, coords, view)
- {
- var p = elt.offsetParent;
- coords.x += elt.offsetLeft - (p ? p.scrollLeft : 0);
- coords.y += elt.offsetTop - (p ? p.scrollTop : 0);
-
- if (p)
- {
- if (p.nodeType == 1)
- {
- var parentStyle = view.getComputedStyle(p, "");
- if (parentStyle.position != "static")
- {
- coords.x += parseInt(parentStyle.borderLeftWidth);
- coords.y += parseInt(parentStyle.borderTopWidth);
-
- if (p.localName == "TABLE")
- {
- coords.x += parseInt(parentStyle.paddingLeft);
- coords.y += parseInt(parentStyle.paddingTop);
- }
- else if (p.localName == "BODY")
- {
- var style = view.getComputedStyle(elt, "");
- coords.x += parseInt(style.marginLeft);
- coords.y += parseInt(style.marginTop);
- }
- }
- else if (p.localName == "BODY")
- {
- coords.x += parseInt(parentStyle.borderLeftWidth);
- coords.y += parseInt(parentStyle.borderTopWidth);
- }
-
- var parent = elt.parentNode;
- while (p != parent)
- {
- coords.x -= parent.scrollLeft;
- coords.y -= parent.scrollTop;
- parent = parent.parentNode;
- }
- addOffset(p, coords, view);
- }
- }
- else
- {
- if (elt.localName == "BODY")
- {
- var style = view.getComputedStyle(elt, "");
- coords.x += parseInt(style.borderLeftWidth);
- coords.y += parseInt(style.borderTopWidth);
-
- var htmlStyle = view.getComputedStyle(elt.parentNode, "");
- coords.x -= parseInt(htmlStyle.paddingLeft);
- coords.y -= parseInt(htmlStyle.paddingTop);
- }
-
- if (elt.scrollLeft)
- coords.x += elt.scrollLeft;
- if (elt.scrollTop)
- coords.y += elt.scrollTop;
-
- var win = elt.ownerDocument.defaultView;
- if (win && (!singleFrame && win.frameElement))
- addOffset(win.frameElement, coords, win);
- }
-
- }
-
- var coords = {x: 0, y: 0};
- if (elt)
- addOffset(elt, coords, elt.ownerDocument.defaultView);
-
- return coords;
-};
-
-this.getLTRBWH = function(elt)
-{
- var bcrect,
- dims = {"left": 0, "top": 0, "right": 0, "bottom": 0, "width": 0, "height": 0};
-
- if (elt)
- {
- bcrect = elt.getBoundingClientRect();
- dims.left = bcrect.left;
- dims.top = bcrect.top;
- dims.right = bcrect.right;
- dims.bottom = bcrect.bottom;
-
- if(bcrect.width)
- {
- dims.width = bcrect.width;
- dims.height = bcrect.height;
- }
- else
- {
- dims.width = dims.right - dims.left;
- dims.height = dims.bottom - dims.top;
- }
- }
- return dims;
-};
-
-this.applyBodyOffsets = function(elt, clientRect)
-{
- var od = elt.ownerDocument;
- if (!od.body)
- return clientRect;
-
- var style = od.defaultView.getComputedStyle(od.body, null);
-
- var pos = style.getPropertyValue('position');
- if(pos === 'absolute' || pos === 'relative')
- {
- var borderLeft = parseInt(style.getPropertyValue('border-left-width').replace('px', ''),10) || 0;
- var borderTop = parseInt(style.getPropertyValue('border-top-width').replace('px', ''),10) || 0;
- var paddingLeft = parseInt(style.getPropertyValue('padding-left').replace('px', ''),10) || 0;
- var paddingTop = parseInt(style.getPropertyValue('padding-top').replace('px', ''),10) || 0;
- var marginLeft = parseInt(style.getPropertyValue('margin-left').replace('px', ''),10) || 0;
- var marginTop = parseInt(style.getPropertyValue('margin-top').replace('px', ''),10) || 0;
-
- var offsetX = borderLeft + paddingLeft + marginLeft;
- var offsetY = borderTop + paddingTop + marginTop;
-
- clientRect.left -= offsetX;
- clientRect.top -= offsetY;
- clientRect.right -= offsetX;
- clientRect.bottom -= offsetY;
- }
-
- return clientRect;
-};
-
-this.getOffsetSize = function(elt)
-{
- return {width: elt.offsetWidth, height: elt.offsetHeight};
-};
-
-this.getOverflowParent = function(element)
-{
- for (var scrollParent = element.parentNode; scrollParent; scrollParent = scrollParent.offsetParent)
- {
- if (scrollParent.scrollHeight > scrollParent.offsetHeight)
- return scrollParent;
- }
-};
-
-this.isScrolledToBottom = function(element)
-{
- var onBottom = (element.scrollTop + element.offsetHeight) == element.scrollHeight;
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("isScrolledToBottom offsetHeight: "+element.offsetHeight +" onBottom:"+onBottom);
- return onBottom;
-};
-
-this.scrollToBottom = function(element)
-{
- element.scrollTop = element.scrollHeight;
-
- if (FBTrace.DBG_CONSOLE)
- {
- FBTrace.sysout("scrollToBottom reset scrollTop "+element.scrollTop+" = "+element.scrollHeight);
- if (element.scrollHeight == element.offsetHeight)
- FBTrace.sysout("scrollToBottom attempt to scroll non-scrollable element "+element, element);
- }
-
- return (element.scrollTop == element.scrollHeight);
-};
-
-this.move = function(element, x, y)
-{
- element.style.left = x + "px";
- element.style.top = y + "px";
-};
-
-this.resize = function(element, w, h)
-{
- element.style.width = w + "px";
- element.style.height = h + "px";
-};
-
-this.linesIntoCenterView = function(element, scrollBox) // {before: int, after: int}
-{
- if (!scrollBox)
- scrollBox = this.getOverflowParent(element);
-
- if (!scrollBox)
- return;
-
- var offset = this.getClientOffset(element);
-
- var topSpace = offset.y - scrollBox.scrollTop;
- var bottomSpace = (scrollBox.scrollTop + scrollBox.clientHeight)
- - (offset.y + element.offsetHeight);
-
- if (topSpace < 0 || bottomSpace < 0)
- {
- var split = (scrollBox.clientHeight/2);
- var centerY = offset.y - split;
- scrollBox.scrollTop = centerY;
- topSpace = split;
- bottomSpace = split - element.offsetHeight;
- }
-
- return {before: Math.round((topSpace/element.offsetHeight) + 0.5),
- after: Math.round((bottomSpace/element.offsetHeight) + 0.5) };
-};
-
-this.scrollIntoCenterView = function(element, scrollBox, notX, notY)
-{
- if (!element)
- return;
-
- if (!scrollBox)
- scrollBox = this.getOverflowParent(element);
-
- if (!scrollBox)
- return;
-
- var offset = this.getClientOffset(element);
-
- if (!notY)
- {
- var topSpace = offset.y - scrollBox.scrollTop;
- var bottomSpace = (scrollBox.scrollTop + scrollBox.clientHeight)
- - (offset.y + element.offsetHeight);
-
- if (topSpace < 0 || bottomSpace < 0)
- {
- var centerY = offset.y - (scrollBox.clientHeight/2);
- scrollBox.scrollTop = centerY;
- }
- }
-
- if (!notX)
- {
- var leftSpace = offset.x - scrollBox.scrollLeft;
- var rightSpace = (scrollBox.scrollLeft + scrollBox.clientWidth)
- - (offset.x + element.clientWidth);
-
- if (leftSpace < 0 || rightSpace < 0)
- {
- var centerX = offset.x - (scrollBox.clientWidth/2);
- scrollBox.scrollLeft = centerX;
- }
- }
- if (FBTrace.DBG_SOURCEFILES)
- FBTrace.sysout("lib.scrollIntoCenterView ","Element:"+element.innerHTML);
-};
-
-
-// ************************************************************************************************
-// CSS
-
-var cssKeywordMap = null;
-var cssPropNames = null;
-var cssColorNames = null;
-var imageRules = null;
-
-this.getCSSKeywordsByProperty = function(propName)
-{
- if (!cssKeywordMap)
- {
- cssKeywordMap = {};
-
- for (var name in this.cssInfo)
- {
- var list = [];
-
- var types = this.cssInfo[name];
- for (var i = 0; i < types.length; ++i)
- {
- var keywords = this.cssKeywords[types[i]];
- if (keywords)
- list.push.apply(list, keywords);
- }
-
- cssKeywordMap[name] = list;
- }
- }
-
- return propName in cssKeywordMap ? cssKeywordMap[propName] : [];
-};
-
-this.getCSSPropertyNames = function()
-{
- if (!cssPropNames)
- {
- cssPropNames = [];
-
- for (var name in this.cssInfo)
- cssPropNames.push(name);
- }
-
- return cssPropNames;
-};
-
-this.isColorKeyword = function(keyword)
-{
- if (keyword == "transparent")
- return false;
-
- if (!cssColorNames)
- {
- cssColorNames = [];
-
- var colors = this.cssKeywords["color"];
- for (var i = 0; i < colors.length; ++i)
- cssColorNames.push(colors[i].toLowerCase());
-
- var systemColors = this.cssKeywords["systemColor"];
- for (var i = 0; i < systemColors.length; ++i)
- cssColorNames.push(systemColors[i].toLowerCase());
- }
-
- return cssColorNames.indexOf ? // Array.indexOf is not available in IE
- cssColorNames.indexOf(keyword.toLowerCase()) != -1 :
- (" " + cssColorNames.join(" ") + " ").indexOf(" " + keyword.toLowerCase() + " ") != -1;
-};
-
-this.isImageRule = function(rule)
-{
- if (!imageRules)
- {
- imageRules = [];
-
- for (var i in this.cssInfo)
- {
- var r = i.toLowerCase();
- var suffix = "image";
- if (r.match(suffix + "$") == suffix || r == "background")
- imageRules.push(r);
- }
- }
-
- return imageRules.indexOf ? // Array.indexOf is not available in IE
- imageRules.indexOf(rule.toLowerCase()) != -1 :
- (" " + imageRules.join(" ") + " ").indexOf(" " + rule.toLowerCase() + " ") != -1;
-};
-
-this.copyTextStyles = function(fromNode, toNode, style)
-{
- var view = this.isIE ?
- fromNode.ownerDocument.parentWindow :
- fromNode.ownerDocument.defaultView;
-
- if (view)
- {
- if (!style)
- style = this.isIE ? fromNode.currentStyle : view.getComputedStyle(fromNode, "");
-
- toNode.style.fontFamily = style.fontFamily;
-
- // TODO: xxxpedro need to create a FBL.getComputedStyle() because IE
- // returns wrong computed styles for inherited properties (like font-*)
- //
- // Also would be good to create a FBL.getStyle()
- toNode.style.fontSize = style.fontSize;
- toNode.style.fontWeight = style.fontWeight;
- toNode.style.fontStyle = style.fontStyle;
-
- return style;
- }
-};
-
-this.copyBoxStyles = function(fromNode, toNode, style)
-{
- var view = this.isIE ?
- fromNode.ownerDocument.parentWindow :
- fromNode.ownerDocument.defaultView;
-
- if (view)
- {
- if (!style)
- style = this.isIE ? fromNode.currentStyle : view.getComputedStyle(fromNode, "");
-
- toNode.style.marginTop = style.marginTop;
- toNode.style.marginRight = style.marginRight;
- toNode.style.marginBottom = style.marginBottom;
- toNode.style.marginLeft = style.marginLeft;
- toNode.style.borderTopWidth = style.borderTopWidth;
- toNode.style.borderRightWidth = style.borderRightWidth;
- toNode.style.borderBottomWidth = style.borderBottomWidth;
- toNode.style.borderLeftWidth = style.borderLeftWidth;
-
- return style;
- }
-};
-
-this.readBoxStyles = function(style)
-{
- var styleNames = {
- "margin-top": "marginTop", "margin-right": "marginRight",
- "margin-left": "marginLeft", "margin-bottom": "marginBottom",
- "border-top-width": "borderTop", "border-right-width": "borderRight",
- "border-left-width": "borderLeft", "border-bottom-width": "borderBottom",
- "padding-top": "paddingTop", "padding-right": "paddingRight",
- "padding-left": "paddingLeft", "padding-bottom": "paddingBottom",
- "z-index": "zIndex"
- };
-
- var styles = {};
- for (var styleName in styleNames)
- styles[styleNames[styleName]] = parseInt(style.getPropertyCSSValue(styleName).cssText) || 0;
- if (FBTrace.DBG_INSPECT)
- FBTrace.sysout("readBoxStyles ", styles);
- return styles;
-};
-
-this.getBoxFromStyles = function(style, element)
-{
- var args = this.readBoxStyles(style);
- args.width = element.offsetWidth
- - (args.paddingLeft+args.paddingRight+args.borderLeft+args.borderRight);
- args.height = element.offsetHeight
- - (args.paddingTop+args.paddingBottom+args.borderTop+args.borderBottom);
- return args;
-};
-
-this.getElementCSSSelector = function(element)
-{
- var label = element.localName.toLowerCase();
- if (element.id)
- label += "#" + element.id;
- if (element.hasAttribute("class"))
- label += "." + element.getAttribute("class").split(" ")[0];
-
- return label;
-};
-
-this.getURLForStyleSheet= function(styleSheet)
-{
- //http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet. For inline style sheets, the value of this attribute is null.
- return (styleSheet.href ? styleSheet.href : styleSheet.ownerNode.ownerDocument.URL);
-};
-
-this.getDocumentForStyleSheet = function(styleSheet)
-{
- while (styleSheet.parentStyleSheet && !styleSheet.ownerNode)
- {
- styleSheet = styleSheet.parentStyleSheet;
- }
- if (styleSheet.ownerNode)
- return styleSheet.ownerNode.ownerDocument;
-};
-
-/**
- * Retrieves the instance number for a given style sheet. The instance number
- * is sheet's index within the set of all other sheets whose URL is the same.
- */
-this.getInstanceForStyleSheet = function(styleSheet, ownerDocument)
-{
- // System URLs are always unique (or at least we are making this assumption)
- if (FBL.isSystemStyleSheet(styleSheet))
- return 0;
-
- // ownerDocument is an optional hint for performance
- if (FBTrace.DBG_CSS) FBTrace.sysout("getInstanceForStyleSheet: " + styleSheet.href + " " + styleSheet.media.mediaText + " " + (styleSheet.ownerNode && FBL.getElementXPath(styleSheet.ownerNode)), ownerDocument);
- ownerDocument = ownerDocument || FBL.getDocumentForStyleSheet(styleSheet);
-
- var ret = 0,
- styleSheets = ownerDocument.styleSheets,
- href = styleSheet.href;
- for (var i = 0; i < styleSheets.length; i++)
- {
- var curSheet = styleSheets[i];
- if (FBTrace.DBG_CSS) FBTrace.sysout("getInstanceForStyleSheet: compare href " + i + " " + curSheet.href + " " + curSheet.media.mediaText + " " + (curSheet.ownerNode && FBL.getElementXPath(curSheet.ownerNode)));
- if (curSheet == styleSheet)
- break;
- if (curSheet.href == href)
- ret++;
- }
- return ret;
-};
-
-// ************************************************************************************************
-// HTML and XML Serialization
-
-
-var getElementType = this.getElementType = function(node)
-{
- if (isElementXUL(node))
- return 'xul';
- else if (isElementSVG(node))
- return 'svg';
- else if (isElementMathML(node))
- return 'mathml';
- else if (isElementXHTML(node))
- return 'xhtml';
- else if (isElementHTML(node))
- return 'html';
-};
-
-var getElementSimpleType = this.getElementSimpleType = function(node)
-{
- if (isElementSVG(node))
- return 'svg';
- else if (isElementMathML(node))
- return 'mathml';
- else
- return 'html';
-};
-
-var isElementHTML = this.isElementHTML = function(node)
-{
- return node.nodeName == node.nodeName.toUpperCase();
-};
-
-var isElementXHTML = this.isElementXHTML = function(node)
-{
- return node.nodeName == node.nodeName.toLowerCase();
-};
-
-var isElementMathML = this.isElementMathML = function(node)
-{
- return node.namespaceURI == 'http://www.w3.org/1998/Math/MathML';
-};
-
-var isElementSVG = this.isElementSVG = function(node)
-{
- return node.namespaceURI == 'http://www.w3.org/2000/svg';
-};
-
-var isElementXUL = this.isElementXUL = function(node)
-{
- return node instanceof XULElement;
-};
-
-this.isSelfClosing = function(element)
-{
- if (isElementSVG(element) || isElementMathML(element))
- return true;
- var tag = element.localName.toLowerCase();
- return (this.selfClosingTags.hasOwnProperty(tag));
-};
-
-this.getElementHTML = function(element)
-{
- var self=this;
- function toHTML(elt)
- {
- if (elt.nodeType == Node.ELEMENT_NODE)
- {
- if (unwrapObject(elt).firebugIgnore)
- return;
-
- html.push('<', elt.nodeName.toLowerCase());
-
- for (var i = 0; i < elt.attributes.length; ++i)
- {
- var attr = elt.attributes[i];
-
- // Hide attributes set by Firebug
- if (attr.localName.indexOf("firebug-") == 0)
- continue;
-
- // MathML
- if (attr.localName.indexOf("-moz-math") == 0)
- {
- // just hide for now
- continue;
- }
-
- html.push(' ', attr.nodeName, '="', escapeForElementAttribute(attr.nodeValue),'"');
- }
-
- if (elt.firstChild)
- {
- html.push('>');
-
- var pureText=true;
- for (var child = element.firstChild; child; child = child.nextSibling)
- pureText=pureText && (child.nodeType == Node.TEXT_NODE);
-
- if (pureText)
- html.push(escapeForHtmlEditor(elt.textContent));
- else {
- for (var child = elt.firstChild; child; child = child.nextSibling)
- toHTML(child);
- }
-
- html.push('</', elt.nodeName.toLowerCase(), '>');
- }
- else if (isElementSVG(elt) || isElementMathML(elt))
- {
- html.push('/>');
- }
- else if (self.isSelfClosing(elt))
- {
- html.push((isElementXHTML(elt))?'/>':'>');
- }
- else
- {
- html.push('></', elt.nodeName.toLowerCase(), '>');
- }
- }
- else if (elt.nodeType == Node.TEXT_NODE)
- html.push(escapeForTextNode(elt.textContent));
- else if (elt.nodeType == Node.CDATA_SECTION_NODE)
- html.push('<![CDATA[', elt.nodeValue, ']]>');
- else if (elt.nodeType == Node.COMMENT_NODE)
- html.push('<!--', elt.nodeValue, '-->');
- }
-
- var html = [];
- toHTML(element);
- return html.join("");
-};
-
-this.getElementXML = function(element)
-{
- function toXML(elt)
- {
- if (elt.nodeType == Node.ELEMENT_NODE)
- {
- if (unwrapObject(elt).firebugIgnore)
- return;
-
- xml.push('<', elt.nodeName.toLowerCase());
-
- for (var i = 0; i < elt.attributes.length; ++i)
- {
- var attr = elt.attributes[i];
-
- // Hide attributes set by Firebug
- if (attr.localName.indexOf("firebug-") == 0)
- continue;
-
- // MathML
- if (attr.localName.indexOf("-moz-math") == 0)
- {
- // just hide for now
- continue;
- }
-
- xml.push(' ', attr.nodeName, '="', escapeForElementAttribute(attr.nodeValue),'"');
- }
-
- if (elt.firstChild)
- {
- xml.push('>');
-
- for (var child = elt.firstChild; child; child = child.nextSibling)
- toXML(child);
-
- xml.push('</', elt.nodeName.toLowerCase(), '>');
- }
- else
- xml.push('/>');
- }
- else if (elt.nodeType == Node.TEXT_NODE)
- xml.push(elt.nodeValue);
- else if (elt.nodeType == Node.CDATA_SECTION_NODE)
- xml.push('<![CDATA[', elt.nodeValue, ']]>');
- else if (elt.nodeType == Node.COMMENT_NODE)
- xml.push('<!--', elt.nodeValue, '-->');
- }
-
- var xml = [];
- toXML(element);
- return xml.join("");
-};
-
-
-// ************************************************************************************************
-// CSS classes
-
-this.hasClass = function(node, name) // className, className, ...
-{
- // TODO: xxxpedro when lib.hasClass is called with more than 2 arguments?
- // this function can be optimized a lot if assumed 2 arguments only,
- // which seems to be what happens 99% of the time
- if (arguments.length == 2)
- return (' '+node.className+' ').indexOf(' '+name+' ') != -1;
-
- if (!node || node.nodeType != 1)
- return false;
- else
- {
- for (var i=1; i<arguments.length; ++i)
- {
- var name = arguments[i];
- var re = new RegExp("(^|\\s)"+name+"($|\\s)");
- if (!re.exec(node.className))
- return false;
- }
-
- return true;
- }
-};
-
-this.old_hasClass = function(node, name) // className, className, ...
-{
- if (!node || node.nodeType != 1)
- return false;
- else
- {
- for (var i=1; i<arguments.length; ++i)
- {
- var name = arguments[i];
- var re = new RegExp("(^|\\s)"+name+"($|\\s)");
- if (!re.exec(node.className))
- return false;
- }
-
- return true;
- }
-};
-
-this.setClass = function(node, name)
-{
- if (node && (' '+node.className+' ').indexOf(' '+name+' ') == -1)
- ///if (node && !this.hasClass(node, name))
- node.className += " " + name;
-};
-
-this.getClassValue = function(node, name)
-{
- var re = new RegExp(name+"-([^ ]+)");
- var m = re.exec(node.className);
- return m ? m[1] : "";
-};
-
-this.removeClass = function(node, name)
-{
- if (node && node.className)
- {
- var index = node.className.indexOf(name);
- if (index >= 0)
- {
- var size = name.length;
- node.className = node.className.substr(0,index-1) + node.className.substr(index+size);
- }
- }
-};
-
-this.toggleClass = function(elt, name)
-{
- if ((' '+elt.className+' ').indexOf(' '+name+' ') != -1)
- ///if (this.hasClass(elt, name))
- this.removeClass(elt, name);
- else
- this.setClass(elt, name);
-};
-
-this.setClassTimed = function(elt, name, context, timeout)
-{
- if (!timeout)
- timeout = 1300;
-
- if (elt.__setClassTimeout)
- context.clearTimeout(elt.__setClassTimeout);
- else
- this.setClass(elt, name);
-
- elt.__setClassTimeout = context.setTimeout(function()
- {
- delete elt.__setClassTimeout;
-
- FBL.removeClass(elt, name);
- }, timeout);
-};
-
-this.cancelClassTimed = function(elt, name, context)
-{
- if (elt.__setClassTimeout)
- {
- FBL.removeClass(elt, name);
- context.clearTimeout(elt.__setClassTimeout);
- delete elt.__setClassTimeout;
- }
-};
-
-
-// ************************************************************************************************
-// DOM queries
-
-this.$ = function(id, doc)
-{
- if (doc)
- return doc.getElementById(id);
- else
- {
- return FBL.Firebug.chrome.document.getElementById(id);
- }
-};
-
-this.$$ = function(selector, doc)
-{
- if (doc || !FBL.Firebug.chrome)
- return FBL.Firebug.Selector(selector, doc);
- else
- {
- return FBL.Firebug.Selector(selector, FBL.Firebug.chrome.document);
- }
-};
-
-this.getChildByClass = function(node) // ,classname, classname, classname...
-{
- for (var i = 1; i < arguments.length; ++i)
- {
- var className = arguments[i];
- var child = node.firstChild;
- node = null;
- for (; child; child = child.nextSibling)
- {
- if (this.hasClass(child, className))
- {
- node = child;
- break;
- }
- }
- }
-
- return node;
-};
-
-this.getAncestorByClass = function(node, className)
-{
- for (var parent = node; parent; parent = parent.parentNode)
- {
- if (this.hasClass(parent, className))
- return parent;
- }
-
- return null;
-};
-
-
-this.getElementsByClass = function(node, className)
-{
- var result = [];
-
- for (var child = node.firstChild; child; child = child.nextSibling)
- {
- if (this.hasClass(child, className))
- result.push(child);
- }
-
- return result;
-};
-
-this.getElementByClass = function(node, className) // className, className, ...
-{
- var args = cloneArray(arguments); args.splice(0, 1);
- for (var child = node.firstChild; child; child = child.nextSibling)
- {
- var args1 = cloneArray(args); args1.unshift(child);
- if (FBL.hasClass.apply(null, args1))
- return child;
- else
- {
- var found = FBL.getElementByClass.apply(null, args1);
- if (found)
- return found;
- }
- }
-
- return null;
-};
-
-this.isAncestor = function(node, potentialAncestor)
-{
- for (var parent = node; parent; parent = parent.parentNode)
- {
- if (parent == potentialAncestor)
- return true;
- }
-
- return false;
-};
-
-this.getNextElement = function(node)
-{
- while (node && node.nodeType != 1)
- node = node.nextSibling;
-
- return node;
-};
-
-this.getPreviousElement = function(node)
-{
- while (node && node.nodeType != 1)
- node = node.previousSibling;
-
- return node;
-};
-
-this.getBody = function(doc)
-{
- if (doc.body)
- return doc.body;
-
- var body = doc.getElementsByTagName("body")[0];
- if (body)
- return body;
-
- return doc.firstChild; // For non-HTML docs
-};
-
-this.findNextDown = function(node, criteria)
-{
- if (!node)
- return null;
-
- for (var child = node.firstChild; child; child = child.nextSibling)
- {
- if (criteria(child))
- return child;
-
- var next = this.findNextDown(child, criteria);
- if (next)
- return next;
- }
-};
-
-this.findPreviousUp = function(node, criteria)
-{
- if (!node)
- return null;
-
- for (var child = node.lastChild; child; child = child.previousSibling)
- {
- var next = this.findPreviousUp(child, criteria);
- if (next)
- return next;
-
- if (criteria(child))
- return child;
- }
-};
-
-this.findNext = function(node, criteria, upOnly, maxRoot)
-{
- if (!node)
- return null;
-
- if (!upOnly)
- {
- var next = this.findNextDown(node, criteria);
- if (next)
- return next;
- }
-
- for (var sib = node.nextSibling; sib; sib = sib.nextSibling)
- {
- if (criteria(sib))
- return sib;
-
- var next = this.findNextDown(sib, criteria);
- if (next)
- return next;
- }
-
- if (node.parentNode && node.parentNode != maxRoot)
- return this.findNext(node.parentNode, criteria, true);
-};
-
-this.findPrevious = function(node, criteria, downOnly, maxRoot)
-{
- if (!node)
- return null;
-
- for (var sib = node.previousSibling; sib; sib = sib.previousSibling)
- {
- var prev = this.findPreviousUp(sib, criteria);
- if (prev)
- return prev;
-
- if (criteria(sib))
- return sib;
- }
-
- if (!downOnly)
- {
- var next = this.findPreviousUp(node, criteria);
- if (next)
- return next;
- }
-
- if (node.parentNode && node.parentNode != maxRoot)
- {
- if (criteria(node.parentNode))
- return node.parentNode;
-
- return this.findPrevious(node.parentNode, criteria, true);
- }
-};
-
-this.getNextByClass = function(root, state)
-{
- var iter = function iter(node) { return node.nodeType == 1 && FBL.hasClass(node, state); };
- return this.findNext(root, iter);
-};
-
-this.getPreviousByClass = function(root, state)
-{
- var iter = function iter(node) { return node.nodeType == 1 && FBL.hasClass(node, state); };
- return this.findPrevious(root, iter);
-};
-
-this.isElement = function(o)
-{
- try {
- return o && this.instanceOf(o, "Element");
- }
- catch (ex) {
- return false;
- }
-};
-
-
-// ************************************************************************************************
-// DOM Modification
-
-// TODO: xxxpedro use doc fragments in Context API
-var appendFragment = null;
-
-this.appendInnerHTML = function(element, html, referenceElement)
-{
- // if undefined, we must convert it to null otherwise it will throw an error in IE
- // when executing element.insertBefore(firstChild, referenceElement)
- referenceElement = referenceElement || null;
-
- var doc = element.ownerDocument;
-
- // doc.createRange not available in IE
- if (doc.createRange)
- {
- var range = doc.createRange(); // a helper object
- range.selectNodeContents(element); // the environment to interpret the html
-
- var fragment = range.createContextualFragment(html); // parse
- var firstChild = fragment.firstChild;
- element.insertBefore(fragment, referenceElement);
- }
- else
- {
- if (!appendFragment || appendFragment.ownerDocument != doc)
- appendFragment = doc.createDocumentFragment();
-
- var div = doc.createElement("div");
- div.innerHTML = html;
-
- var firstChild = div.firstChild;
- while (div.firstChild)
- appendFragment.appendChild(div.firstChild);
-
- element.insertBefore(appendFragment, referenceElement);
-
- div = null;
- }
-
- return firstChild;
-};
-
-
-// ************************************************************************************************
-// DOM creation
-
-this.createElement = function(tagName, properties)
-{
- properties = properties || {};
- var doc = properties.document || FBL.Firebug.chrome.document;
-
- var element = doc.createElement(tagName);
-
- for(var name in properties)
- {
- if (name != "document")
- {
- element[name] = properties[name];
- }
- }
-
- return element;
-};
-
-this.createGlobalElement = function(tagName, properties)
-{
- properties = properties || {};
- var doc = FBL.Env.browser.document;
-
- var element = this.NS && doc.createElementNS ?
- doc.createElementNS(FBL.NS, tagName) :
- doc.createElement(tagName);
-
- for(var name in properties)
- {
- var propname = name;
- if (FBL.isIE && name == "class") propname = "className";
-
- if (name != "document")
- {
- element.setAttribute(propname, properties[name]);
- }
- }
-
- return element;
-};
-
-//************************************************************************************************
-
-this.safeGetWindowLocation = function(window)
-{
- try
- {
- if (window)
- {
- if (window.closed)
- return "(window.closed)";
- if ("location" in window)
- return window.location+"";
- else
- return "(no window.location)";
- }
- else
- return "(no context.window)";
- }
- catch(exc)
- {
- if (FBTrace.DBG_WINDOWS || FBTrace.DBG_ERRORS)
- FBTrace.sysout("TabContext.getWindowLocation failed "+exc, exc);
- FBTrace.sysout("TabContext.getWindowLocation failed window:", window);
- return "(getWindowLocation: "+exc+")";
- }
-};
-
-// ************************************************************************************************
-// Events
-
-this.isLeftClick = function(event)
-{
- return (this.isIE && event.type != "click" && event.type != "dblclick" ?
- event.button == 1 : // IE "click" and "dblclick" button model
- event.button == 0) && // others
- this.noKeyModifiers(event);
-};
-
-this.isMiddleClick = function(event)
-{
- return (this.isIE && event.type != "click" && event.type != "dblclick" ?
- event.button == 4 : // IE "click" and "dblclick" button model
- event.button == 1) &&
- this.noKeyModifiers(event);
-};
-
-this.isRightClick = function(event)
-{
- return (this.isIE && event.type != "click" && event.type != "dblclick" ?
- event.button == 2 : // IE "click" and "dblclick" button model
- event.button == 2) &&
- this.noKeyModifiers(event);
-};
-
-this.noKeyModifiers = function(event)
-{
- return !event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey;
-};
-
-this.isControlClick = function(event)
-{
- return (this.isIE && event.type != "click" && event.type != "dblclick" ?
- event.button == 1 : // IE "click" and "dblclick" button model
- event.button == 0) &&
- this.isControl(event);
-};
-
-this.isShiftClick = function(event)
-{
- return (this.isIE && event.type != "click" && event.type != "dblclick" ?
- event.button == 1 : // IE "click" and "dblclick" button model
- event.button == 0) &&
- this.isShift(event);
-};
-
-this.isControl = function(event)
-{
- return (event.metaKey || event.ctrlKey) && !event.shiftKey && !event.altKey;
-};
-
-this.isAlt = function(event)
-{
- return event.altKey && !event.ctrlKey && !event.shiftKey && !event.metaKey;
-};
-
-this.isAltClick = function(event)
-{
- return (this.isIE && event.type != "click" && event.type != "dblclick" ?
- event.button == 1 : // IE "click" and "dblclick" button model
- event.button == 0) &&
- this.isAlt(event);
-};
-
-this.isControlShift = function(event)
-{
- return (event.metaKey || event.ctrlKey) && event.shiftKey && !event.altKey;
-};
-
-this.isShift = function(event)
-{
- return event.shiftKey && !event.metaKey && !event.ctrlKey && !event.altKey;
-};
-
-this.addEvent = function(object, name, handler, useCapture)
-{
- if (object.addEventListener)
- object.addEventListener(name, handler, useCapture);
- else
- object.attachEvent("on"+name, handler);
-};
-
-this.removeEvent = function(object, name, handler, useCapture)
-{
- try
- {
- if (object.removeEventListener)
- object.removeEventListener(name, handler, useCapture);
- else
- object.detachEvent("on"+name, handler);
- }
- catch(e)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("FBL.removeEvent error: ", object, name);
- }
-};
-
-this.cancelEvent = function(e, preventDefault)
-{
- if (!e) return;
-
- if (preventDefault)
- {
- if (e.preventDefault)
- e.preventDefault();
- else
- e.returnValue = false;
- }
-
- if (e.stopPropagation)
- e.stopPropagation();
- else
- e.cancelBubble = true;
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-this.addGlobalEvent = function(name, handler)
-{
- var doc = this.Firebug.browser.document;
- var frames = this.Firebug.browser.window.frames;
-
- this.addEvent(doc, name, handler);
-
- if (this.Firebug.chrome.type == "popup")
- this.addEvent(this.Firebug.chrome.document, name, handler);
-
- for (var i = 0, frame; frame = frames[i]; i++)
- {
- try
- {
- this.addEvent(frame.document, name, handler);
- }
- catch(E)
- {
- // Avoid acess denied
- }
- }
-};
-
-this.removeGlobalEvent = function(name, handler)
-{
- var doc = this.Firebug.browser.document;
- var frames = this.Firebug.browser.window.frames;
-
- this.removeEvent(doc, name, handler);
-
- if (this.Firebug.chrome.type == "popup")
- this.removeEvent(this.Firebug.chrome.document, name, handler);
-
- for (var i = 0, frame; frame = frames[i]; i++)
- {
- try
- {
- this.removeEvent(frame.document, name, handler);
- }
- catch(E)
- {
- // Avoid acess denied
- }
- }
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-this.dispatch = function(listeners, name, args)
-{
- if (!listeners) return;
-
- try
- {/**/
- if (typeof listeners.length != "undefined")
- {
- if (FBTrace.DBG_DISPATCH) FBTrace.sysout("FBL.dispatch", name+" to "+listeners.length+" listeners");
-
- for (var i = 0; i < listeners.length; ++i)
- {
- var listener = listeners[i];
- if ( listener[name] )
- listener[name].apply(listener, args);
- }
- }
- else
- {
- if (FBTrace.DBG_DISPATCH) FBTrace.sysout("FBL.dispatch", name+" to listeners of an object");
-
- for (var prop in listeners)
- {
- var listener = listeners[prop];
- if ( listener[name] )
- listener[name].apply(listener, args);
- }
- }
- }
- catch (exc)
- {
- if (FBTrace.DBG_ERRORS)
- {
- FBTrace.sysout(" Exception in lib.dispatch "+ name, exc);
- //FBTrace.dumpProperties(" Exception in lib.dispatch listener", listener);
- }
- }
- /**/
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var disableTextSelectionHandler = function(event)
-{
- FBL.cancelEvent(event, true);
-
- return false;
-};
-
-this.disableTextSelection = function(e)
-{
- if (typeof e.onselectstart != "undefined") // IE
- this.addEvent(e, "selectstart", disableTextSelectionHandler);
-
- else // others
- {
- e.style.cssText = "user-select: none; -khtml-user-select: none; -moz-user-select: none;";
-
- // canceling the event in FF will prevent the menu popups to close when clicking over
- // text-disabled elements
- if (!this.isFirefox)
- this.addEvent(e, "mousedown", disableTextSelectionHandler);
- }
-
- e.style.cursor = "default";
-};
-
-this.restoreTextSelection = function(e)
-{
- if (typeof e.onselectstart != "undefined") // IE
- this.removeEvent(e, "selectstart", disableTextSelectionHandler);
-
- else // others
- {
- e.style.cssText = "cursor: default;";
-
- // canceling the event in FF will prevent the menu popups to close when clicking over
- // text-disabled elements
- if (!this.isFirefox)
- this.removeEvent(e, "mousedown", disableTextSelectionHandler);
- }
-};
-
-// ************************************************************************************************
-// DOM Events
-
-var eventTypes =
-{
- composition: [
- "composition",
- "compositionstart",
- "compositionend" ],
- contextmenu: [
- "contextmenu" ],
- drag: [
- "dragenter",
- "dragover",
- "dragexit",
- "dragdrop",
- "draggesture" ],
- focus: [
- "focus",
- "blur" ],
- form: [
- "submit",
- "reset",
- "change",
- "select",
- "input" ],
- key: [
- "keydown",
- "keyup",
- "keypress" ],
- load: [
- "load",
- "beforeunload",
- "unload",
- "abort",
- "error" ],
- mouse: [
- "mousedown",
- "mouseup",
- "click",
- "dblclick",
- "mouseover",
- "mouseout",
- "mousemove" ],
- mutation: [
- "DOMSubtreeModified",
- "DOMNodeInserted",
- "DOMNodeRemoved",
- "DOMNodeRemovedFromDocument",
- "DOMNodeInsertedIntoDocument",
- "DOMAttrModified",
- "DOMCharacterDataModified" ],
- paint: [
- "paint",
- "resize",
- "scroll" ],
- scroll: [
- "overflow",
- "underflow",
- "overflowchanged" ],
- text: [
- "text" ],
- ui: [
- "DOMActivate",
- "DOMFocusIn",
- "DOMFocusOut" ],
- xul: [
- "popupshowing",
- "popupshown",
- "popuphiding",
- "popuphidden",
- "close",
- "command",
- "broadcast",
- "commandupdate" ]
-};
-
-this.getEventFamily = function(eventType)
-{
- if (!this.families)
- {
- this.families = {};
-
- for (var family in eventTypes)
- {
- var types = eventTypes[family];
- for (var i = 0; i < types.length; ++i)
- this.families[types[i]] = family;
- }
- }
-
- return this.families[eventType];
-};
-
-
-// ************************************************************************************************
-// URLs
-
-this.getFileName = function(url)
-{
- var split = this.splitURLBase(url);
- return split.name;
-};
-
-this.splitURLBase = function(url)
-{
- if (this.isDataURL(url))
- return this.splitDataURL(url);
- return this.splitURLTrue(url);
-};
-
-this.splitDataURL = function(url)
-{
- var mark = url.indexOf(':', 3);
- if (mark != 4)
- return false; // the first 5 chars must be 'data:'
-
- var point = url.indexOf(',', mark+1);
- if (point < mark)
- return false; // syntax error
-
- var props = { encodedContent: url.substr(point+1) };
-
- var metadataBuffer = url.substr(mark+1, point);
- var metadata = metadataBuffer.split(';');
- for (var i = 0; i < metadata.length; i++)
- {
- var nv = metadata[i].split('=');
- if (nv.length == 2)
- props[nv[0]] = nv[1];
- }
-
- // Additional Firebug-specific properties
- if (props.hasOwnProperty('fileName'))
- {
- var caller_URL = decodeURIComponent(props['fileName']);
- var caller_split = this.splitURLTrue(caller_URL);
-
- if (props.hasOwnProperty('baseLineNumber')) // this means it's probably an eval()
- {
- props['path'] = caller_split.path;
- props['line'] = props['baseLineNumber'];
- var hint = decodeURIComponent(props['encodedContent'].substr(0,200)).replace(/\s*$/, "");
- props['name'] = 'eval->'+hint;
- }
- else
- {
- props['name'] = caller_split.name;
- props['path'] = caller_split.path;
- }
- }
- else
- {
- if (!props.hasOwnProperty('path'))
- props['path'] = "data:";
- if (!props.hasOwnProperty('name'))
- props['name'] = decodeURIComponent(props['encodedContent'].substr(0,200)).replace(/\s*$/, "");
- }
-
- return props;
-};
-
-this.splitURLTrue = function(url)
-{
- var m = reSplitFile.exec(url);
- if (!m)
- return {name: url, path: url};
- else if (!m[2])
- return {path: m[1], name: m[1]};
- else
- return {path: m[1], name: m[2]+m[3]};
-};
-
-this.getFileExtension = function(url)
-{
- if (!url)
- return null;
-
- // Remove query string from the URL if any.
- var queryString = url.indexOf("?");
- if (queryString != -1)
- url = url.substr(0, queryString);
-
- // Now get the file extension.
- var lastDot = url.lastIndexOf(".");
- return url.substr(lastDot+1);
-};
-
-this.isSystemURL = function(url)
-{
- if (!url) return true;
- if (url.length == 0) return true;
- if (url[0] == 'h') return false;
- if (url.substr(0, 9) == "resource:")
- return true;
- else if (url.substr(0, 16) == "chrome://firebug")
- return true;
- else if (url == "XPCSafeJSObjectWrapper.cpp")
- return true;
- else if (url.substr(0, 6) == "about:")
- return true;
- else if (url.indexOf("firebug-service.js") != -1)
- return true;
- else
- return false;
-};
-
-this.isSystemPage = function(win)
-{
- try
- {
- var doc = win.document;
- if (!doc)
- return false;
-
- // Detect pages for pretty printed XML
- if ((doc.styleSheets.length && doc.styleSheets[0].href
- == "chrome://global/content/xml/XMLPrettyPrint.css")
- || (doc.styleSheets.length > 1 && doc.styleSheets[1].href
- == "chrome://browser/skin/feeds/subscribe.css"))
- return true;
-
- return FBL.isSystemURL(win.location.href);
- }
- catch (exc)
- {
- // Sometimes documents just aren't ready to be manipulated here, but don't let that
- // gum up the works
- ERROR("tabWatcher.isSystemPage document not ready:"+ exc);
- return false;
- }
-};
-
-this.isSystemStyleSheet = function(sheet)
-{
- var href = sheet && sheet.href;
- return href && FBL.isSystemURL(href);
-};
-
-this.getURIHost = function(uri)
-{
- try
- {
- if (uri)
- return uri.host;
- else
- return "";
- }
- catch (exc)
- {
- return "";
- }
-};
-
-this.isLocalURL = function(url)
-{
- if (url.substr(0, 5) == "file:")
- return true;
- else if (url.substr(0, 8) == "wyciwyg:")
- return true;
- else
- return false;
-};
-
-this.isDataURL = function(url)
-{
- return (url && url.substr(0,5) == "data:");
-};
-
-this.getLocalPath = function(url)
-{
- if (this.isLocalURL(url))
- {
- var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Ci.nsIFileProtocolHandler);
- var file = fileHandler.getFileFromURLSpec(url);
- return file.path;
- }
-};
-
-this.getURLFromLocalFile = function(file)
-{
- var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Ci.nsIFileProtocolHandler);
- var URL = fileHandler.getURLSpecFromFile(file);
- return URL;
-};
-
-this.getDataURLForContent = function(content, url)
-{
- // data:text/javascript;fileName=x%2Cy.js;baseLineNumber=10,<the-url-encoded-data>
- var uri = "data:text/html;";
- uri += "fileName="+encodeURIComponent(url)+ ",";
- uri += encodeURIComponent(content);
- return uri;
-},
-
-this.getDomain = function(url)
-{
- var m = /[^:]+:\/{1,3}([^\/]+)/.exec(url);
- return m ? m[1] : "";
-};
-
-this.getURLPath = function(url)
-{
- var m = /[^:]+:\/{1,3}[^\/]+(\/.*?)$/.exec(url);
- return m ? m[1] : "";
-};
-
-this.getPrettyDomain = function(url)
-{
- var m = /[^:]+:\/{1,3}(www\.)?([^\/]+)/.exec(url);
- return m ? m[2] : "";
-};
-
-this.absoluteURL = function(url, baseURL)
-{
- return this.absoluteURLWithDots(url, baseURL).replace("/./", "/", "g");
-};
-
-this.absoluteURLWithDots = function(url, baseURL)
-{
- if (url[0] == "?")
- return baseURL + url;
-
- var reURL = /(([^:]+:)\/{1,2}[^\/]*)(.*?)$/;
- var m = reURL.exec(url);
- if (m)
- return url;
-
- var m = reURL.exec(baseURL);
- if (!m)
- return "";
-
- var head = m[1];
- var tail = m[3];
- if (url.substr(0, 2) == "//")
- return m[2] + url;
- else if (url[0] == "/")
- {
- return head + url;
- }
- else if (tail[tail.length-1] == "/")
- return baseURL + url;
- else
- {
- var parts = tail.split("/");
- return head + parts.slice(0, parts.length-1).join("/") + "/" + url;
- }
-};
-
-this.normalizeURL = function(url) // this gets called a lot, any performance improvement welcome
-{
- if (!url)
- return "";
- // Replace one or more characters that are not forward-slash followed by /.., by space.
- if (url.length < 255) // guard against monsters.
- {
- // Replace one or more characters that are not forward-slash followed by /.., by space.
- url = url.replace(/[^\/]+\/\.\.\//, "", "g");
- // Issue 1496, avoid #
- url = url.replace(/#.*/,"");
- // For some reason, JSDS reports file URLs like "file:/" instead of "file:///", so they
- // don't match up with the URLs we get back from the DOM
- url = url.replace(/file:\/([^\/])/g, "file:///$1");
- if (url.indexOf('chrome:')==0)
- {
- var m = reChromeCase.exec(url); // 1 is package name, 2 is path
- if (m)
- {
- url = "chrome://"+m[1].toLowerCase()+"/"+m[2];
- }
- }
- }
- return url;
-};
-
-this.denormalizeURL = function(url)
-{
- return url.replace(/file:\/\/\//g, "file:/");
-};
-
-this.parseURLParams = function(url)
-{
- var q = url ? url.indexOf("?") : -1;
- if (q == -1)
- return [];
-
- var search = url.substr(q+1);
- var h = search.lastIndexOf("#");
- if (h != -1)
- search = search.substr(0, h);
-
- if (!search)
- return [];
-
- return this.parseURLEncodedText(search);
-};
-
-this.parseURLEncodedText = function(text)
-{
- var maxValueLength = 25000;
-
- var params = [];
-
- // Unescape '+' characters that are used to encode a space.
- // See section 2.2.in RFC 3986: http://www.ietf.org/rfc/rfc3986.txt
- text = text.replace(/\+/g, " ");
-
- var args = text.split("&");
- for (var i = 0; i < args.length; ++i)
- {
- try {
- var parts = args[i].split("=");
- if (parts.length == 2)
- {
- if (parts[1].length > maxValueLength)
- parts[1] = this.$STR("LargeData");
-
- params.push({name: decodeURIComponent(parts[0]), value: decodeURIComponent(parts[1])});
- }
- else
- params.push({name: decodeURIComponent(parts[0]), value: ""});
- }
- catch (e)
- {
- if (FBTrace.DBG_ERRORS)
- {
- FBTrace.sysout("parseURLEncodedText EXCEPTION ", e);
- FBTrace.sysout("parseURLEncodedText EXCEPTION URI", args[i]);
- }
- }
- }
-
- params.sort(function(a, b) { return a.name <= b.name ? -1 : 1; });
-
- return params;
-};
-
-// TODO: xxxpedro lib. why loops in domplate are requiring array in parameters
-// as in response/request headers and get/post parameters in Net module?
-this.parseURLParamsArray = function(url)
-{
- var q = url ? url.indexOf("?") : -1;
- if (q == -1)
- return [];
-
- var search = url.substr(q+1);
- var h = search.lastIndexOf("#");
- if (h != -1)
- search = search.substr(0, h);
-
- if (!search)
- return [];
-
- return this.parseURLEncodedTextArray(search);
-};
-
-this.parseURLEncodedTextArray = function(text)
-{
- var maxValueLength = 25000;
-
- var params = [];
-
- // Unescape '+' characters that are used to encode a space.
- // See section 2.2.in RFC 3986: http://www.ietf.org/rfc/rfc3986.txt
- text = text.replace(/\+/g, " ");
-
- var args = text.split("&");
- for (var i = 0; i < args.length; ++i)
- {
- try {
- var parts = args[i].split("=");
- if (parts.length == 2)
- {
- if (parts[1].length > maxValueLength)
- parts[1] = this.$STR("LargeData");
-
- params.push({name: decodeURIComponent(parts[0]), value: [decodeURIComponent(parts[1])]});
- }
- else
- params.push({name: decodeURIComponent(parts[0]), value: [""]});
- }
- catch (e)
- {
- if (FBTrace.DBG_ERRORS)
- {
- FBTrace.sysout("parseURLEncodedText EXCEPTION ", e);
- FBTrace.sysout("parseURLEncodedText EXCEPTION URI", args[i]);
- }
- }
- }
-
- params.sort(function(a, b) { return a.name <= b.name ? -1 : 1; });
-
- return params;
-};
-
-this.reEncodeURL = function(file, text)
-{
- var lines = text.split("\n");
- var params = this.parseURLEncodedText(lines[lines.length-1]);
-
- var args = [];
- for (var i = 0; i < params.length; ++i)
- args.push(encodeURIComponent(params[i].name)+"="+encodeURIComponent(params[i].value));
-
- var url = file.href;
- url += (url.indexOf("?") == -1 ? "?" : "&") + args.join("&");
-
- return url;
-};
-
-this.getResource = function(aURL)
-{
- try
- {
- var channel=ioService.newChannel(aURL,null,null);
- var input=channel.open();
- return FBL.readFromStream(input);
- }
- catch (e)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("lib.getResource FAILS for "+aURL, e);
- }
-};
-
-this.parseJSONString = function(jsonString, originURL)
-{
- // See if this is a Prototype style *-secure request.
- var regex = new RegExp(/^\/\*-secure-([\s\S]*)\*\/\s*$/);
- var matches = regex.exec(jsonString);
-
- if (matches)
- {
- jsonString = matches[1];
-
- if (jsonString[0] == "\\" && jsonString[1] == "n")
- jsonString = jsonString.substr(2);
-
- if (jsonString[jsonString.length-2] == "\\" && jsonString[jsonString.length-1] == "n")
- jsonString = jsonString.substr(0, jsonString.length-2);
- }
-
- if (jsonString.indexOf("&&&START&&&"))
- {
- regex = new RegExp(/&&&START&&& (.+) &&&END&&&/);
- matches = regex.exec(jsonString);
- if (matches)
- jsonString = matches[1];
- }
-
- // throw on the extra parentheses
- jsonString = "(" + jsonString + ")";
-
- ///var s = Components.utils.Sandbox(originURL);
- var jsonObject = null;
-
- try
- {
- ///jsonObject = Components.utils.evalInSandbox(jsonString, s);
-
- //jsonObject = Firebug.context.eval(jsonString);
- jsonObject = Firebug.context.evaluate(jsonString, null, null, function(){return null;});
- }
- catch(e)
- {
- /***
- if (e.message.indexOf("is not defined"))
- {
- var parts = e.message.split(" ");
- s[parts[0]] = function(str){ return str; };
- try {
- jsonObject = Components.utils.evalInSandbox(jsonString, s);
- } catch(ex) {
- if (FBTrace.DBG_ERRORS || FBTrace.DBG_JSONVIEWER)
- FBTrace.sysout("jsonviewer.parseJSON EXCEPTION", e);
- return null;
- }
- }
- else
- {/**/
- if (FBTrace.DBG_ERRORS || FBTrace.DBG_JSONVIEWER)
- FBTrace.sysout("jsonviewer.parseJSON EXCEPTION", e);
- return null;
- ///}
- }
-
- return jsonObject;
-};
-
-// ************************************************************************************************
-
-this.objectToString = function(object)
-{
- try
- {
- return object+"";
- }
- catch (exc)
- {
- return null;
- }
-};
-
-// ************************************************************************************************
-// Input Caret Position
-
-this.setSelectionRange = function(input, start, length)
-{
- if (input.createTextRange)
- {
- var range = input.createTextRange();
- range.moveStart("character", start);
- range.moveEnd("character", length - input.value.length);
- range.select();
- }
- else if (input.setSelectionRange)
- {
- input.setSelectionRange(start, length);
- input.focus();
- }
-};
-
-// ************************************************************************************************
-// Input Selection Start / Caret Position
-
-this.getInputSelectionStart = function(input)
-{
- if (document.selection)
- {
- var range = input.ownerDocument.selection.createRange();
- var text = range.text;
-
- //console.log("range", range.text);
-
- // if there is a selection, find the start position
- if (text)
- {
- return input.value.indexOf(text);
- }
- // if there is no selection, find the caret position
- else
- {
- range.moveStart("character", -input.value.length);
-
- return range.text.length;
- }
- }
- else if (typeof input.selectionStart != "undefined")
- return input.selectionStart;
-
- return 0;
-};
-
-// ************************************************************************************************
-// Opera Tab Fix
-
-function onOperaTabBlur(e)
-{
- if (this.lastKey == 9)
- this.focus();
-};
-
-function onOperaTabKeyDown(e)
-{
- this.lastKey = e.keyCode;
-};
-
-function onOperaTabFocus(e)
-{
- this.lastKey = null;
-};
-
-this.fixOperaTabKey = function(el)
-{
- el.onfocus = onOperaTabFocus;
- el.onblur = onOperaTabBlur;
- el.onkeydown = onOperaTabKeyDown;
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-this.Property = function(object, name)
-{
- this.object = object;
- this.name = name;
-
- this.getObject = function()
- {
- return object[name];
- };
-};
-
-this.ErrorCopy = function(message)
-{
- this.message = message;
-};
-
-function EventCopy(event)
-{
- // Because event objects are destroyed arbitrarily by Gecko, we must make a copy of them to
- // represent them long term in the inspector.
- for (var name in event)
- {
- try {
- this[name] = event[name];
- } catch (exc) { }
- }
-}
-
-this.EventCopy = EventCopy;
-
-
-// ************************************************************************************************
-// Type Checking
-
-var toString = Object.prototype.toString;
-var reFunction = /^\s*function(\s+[\w_$][\w\d_$]*)?\s*\(/;
-
-this.isArray = function(object) {
- return toString.call(object) === '[object Array]';
-};
-
-this.isFunction = function(object) {
- if (!object) return false;
-
- try
- {
- // FIXME: xxxpedro this is failing in IE for the global "external" object
- return toString.call(object) === "[object Function]" ||
- this.isIE && typeof object != "string" && reFunction.test(""+object);
- }
- catch (E)
- {
- FBTrace.sysout("Lib.isFunction() failed for ", object);
- return false;
- }
-};
-
-
-// ************************************************************************************************
-// Instance Checking
-
-this.instanceOf = function(object, className)
-{
- if (!object || typeof object != "object")
- return false;
-
- // Try to use the native instanceof operator. We can only use it when we know
- // exactly the window where the object is located at
- if (object.ownerDocument)
- {
- // find the correct window of the object
- var win = object.ownerDocument.defaultView || object.ownerDocument.parentWindow;
-
- // if the class is accessible in the window, uses the native instanceof operator
- // if the instanceof evaluates to "true" we can assume it is a instance, but if it
- // evaluates to "false" we must continue with the duck type detection below because
- // the native object may be extended, thus breaking the instanceof result
- // See Issue 3524: Firebug Lite Style Panel doesn't work if the native Element is extended
- if (className in win && object instanceof win[className])
- return true;
- }
- // If the object doesn't have the ownerDocument property, we'll try to look at
- // the current context's window
- else
- {
- // TODO: xxxpedro context
- // Since we're not using yet a Firebug.context, we'll just use the top window
- // (browser) as a reference
- var win = Firebug.browser.window;
- if (className in win)
- return object instanceof win[className];
- }
-
- // get the duck type model from the cache
- var cache = instanceCheckMap[className];
- if (!cache)
- return false;
-
- // starts the hacky duck type detection
- for(var n in cache)
- {
- var obj = cache[n];
- var type = typeof obj;
- obj = type == "object" ? obj : [obj];
-
- for(var name in obj)
- {
- // avoid problems with extended native objects
- // See Issue 3524: Firebug Lite Style Panel doesn't work if the native Element is extended
- if (!obj.hasOwnProperty(name))
- continue;
-
- var value = obj[name];
-
- if( n == "property" && !(value in object) ||
- n == "method" && !this.isFunction(object[value]) ||
- n == "value" && (""+object[name]).toLowerCase() != (""+value).toLowerCase() )
- return false;
- }
- }
-
- return true;
-};
-
-var instanceCheckMap =
-{
- // DuckTypeCheck:
- // {
- // property: ["window", "document"],
- // method: "setTimeout",
- // value: {nodeType: 1}
- // },
-
- Window:
- {
- property: ["window", "document"],
- method: "setTimeout"
- },
-
- Document:
- {
- property: ["body", "cookie"],
- method: "getElementById"
- },
-
- Node:
- {
- property: "ownerDocument",
- method: "appendChild"
- },
-
- Element:
- {
- property: "tagName",
- value: {nodeType: 1}
- },
-
- Location:
- {
- property: ["hostname", "protocol"],
- method: "assign"
- },
-
- HTMLImageElement:
- {
- property: "useMap",
- value:
- {
- nodeType: 1,
- tagName: "img"
- }
- },
-
- HTMLAnchorElement:
- {
- property: "hreflang",
- value:
- {
- nodeType: 1,
- tagName: "a"
- }
- },
-
- HTMLInputElement:
- {
- property: "form",
- value:
- {
- nodeType: 1,
- tagName: "input"
- }
- },
-
- HTMLButtonElement:
- {
- // ?
- },
-
- HTMLFormElement:
- {
- method: "submit",
- value:
- {
- nodeType: 1,
- tagName: "form"
- }
- },
-
- HTMLBodyElement:
- {
-
- },
-
- HTMLHtmlElement:
- {
-
- },
-
- CSSStyleRule:
- {
- property: ["selectorText", "style"]
- }
-
-};
-
-
-// ************************************************************************************************
-// DOM Constants
-
-/*
-
-Problems:
-
- - IE does not have window.Node, window.Element, etc
- - for (var name in Node.prototype) return nothing on FF
-
-*/
-
-
-var domMemberMap2 = {};
-
-var domMemberMap2Sandbox = null;
-
-var getDomMemberMap2 = function(name)
-{
- if (!domMemberMap2Sandbox)
- {
- var doc = Firebug.chrome.document;
- var frame = doc.createElement("iframe");
-
- frame.id = "FirebugSandbox";
- frame.style.display = "none";
- frame.src = "about:blank";
-
- doc.body.appendChild(frame);
-
- domMemberMap2Sandbox = frame.window || frame.contentWindow;
- }
-
- var props = [];
-
- //var object = domMemberMap2Sandbox[name];
- //object = object.prototype || object;
-
- var object = null;
-
- if (name == "Window")
- object = domMemberMap2Sandbox.window;
-
- else if (name == "Document")
- object = domMemberMap2Sandbox.document;
-
- else if (name == "HTMLScriptElement")
- object = domMemberMap2Sandbox.document.createElement("script");
-
- else if (name == "HTMLAnchorElement")
- object = domMemberMap2Sandbox.document.createElement("a");
-
- else if (name.indexOf("Element") != -1)
- {
- object = domMemberMap2Sandbox.document.createElement("div");
- }
-
- if (object)
- {
- //object = object.prototype || object;
-
- //props = 'addEventListener,document,location,navigator,window'.split(',');
-
- for (var n in object)
- props.push(n);
- }
- /**/
-
- return props;
- return extendArray(props, domMemberMap[name]);
-};
-
-// xxxpedro experimental get DOM members
-this.getDOMMembers = function(object)
-{
- if (!domMemberCache)
- {
- FBL.domMemberCache = domMemberCache = {};
-
- for (var name in domMemberMap)
- {
- var builtins = getDomMemberMap2(name);
- var cache = domMemberCache[name] = {};
-
- /*
- if (name.indexOf("Element") != -1)
- {
- this.append(cache, this.getDOMMembers("Node"));
- this.append(cache, this.getDOMMembers("Element"));
- }
- /**/
-
- for (var i = 0; i < builtins.length; ++i)
- cache[builtins[i]] = i;
- }
- }
-
- try
- {
- if (this.instanceOf(object, "Window"))
- { return domMemberCache.Window; }
- else if (this.instanceOf(object, "Document") || this.instanceOf(object, "XMLDocument"))
- { return domMemberCache.Document; }
- else if (this.instanceOf(object, "Location"))
- { return domMemberCache.Location; }
- else if (this.instanceOf(object, "HTMLImageElement"))
- { return domMemberCache.HTMLImageElement; }
- else if (this.instanceOf(object, "HTMLAnchorElement"))
- { return domMemberCache.HTMLAnchorElement; }
- else if (this.instanceOf(object, "HTMLInputElement"))
- { return domMemberCache.HTMLInputElement; }
- else if (this.instanceOf(object, "HTMLButtonElement"))
- { return domMemberCache.HTMLButtonElement; }
- else if (this.instanceOf(object, "HTMLFormElement"))
- { return domMemberCache.HTMLFormElement; }
- else if (this.instanceOf(object, "HTMLBodyElement"))
- { return domMemberCache.HTMLBodyElement; }
- else if (this.instanceOf(object, "HTMLHtmlElement"))
- { return domMemberCache.HTMLHtmlElement; }
- else if (this.instanceOf(object, "HTMLScriptElement"))
- { return domMemberCache.HTMLScriptElement; }
- else if (this.instanceOf(object, "HTMLTableElement"))
- { return domMemberCache.HTMLTableElement; }
- else if (this.instanceOf(object, "HTMLTableRowElement"))
- { return domMemberCache.HTMLTableRowElement; }
- else if (this.instanceOf(object, "HTMLTableCellElement"))
- { return domMemberCache.HTMLTableCellElement; }
- else if (this.instanceOf(object, "HTMLIFrameElement"))
- { return domMemberCache.HTMLIFrameElement; }
- else if (this.instanceOf(object, "SVGSVGElement"))
- { return domMemberCache.SVGSVGElement; }
- else if (this.instanceOf(object, "SVGElement"))
- { return domMemberCache.SVGElement; }
- else if (this.instanceOf(object, "Element"))
- { return domMemberCache.Element; }
- else if (this.instanceOf(object, "Text") || this.instanceOf(object, "CDATASection"))
- { return domMemberCache.Text; }
- else if (this.instanceOf(object, "Attr"))
- { return domMemberCache.Attr; }
- else if (this.instanceOf(object, "Node"))
- { return domMemberCache.Node; }
- else if (this.instanceOf(object, "Event") || this.instanceOf(object, "EventCopy"))
- { return domMemberCache.Event; }
- else
- return {};
- }
- catch(E)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("lib.getDOMMembers FAILED ", E);
-
- return {};
- }
-};
-
-
-/*
-this.getDOMMembers = function(object)
-{
- if (!domMemberCache)
- {
- domMemberCache = {};
-
- for (var name in domMemberMap)
- {
- var builtins = domMemberMap[name];
- var cache = domMemberCache[name] = {};
-
- for (var i = 0; i < builtins.length; ++i)
- cache[builtins[i]] = i;
- }
- }
-
- try
- {
- if (this.instanceOf(object, "Window"))
- { return domMemberCache.Window; }
- else if (object instanceof Document || object instanceof XMLDocument)
- { return domMemberCache.Document; }
- else if (object instanceof Location)
- { return domMemberCache.Location; }
- else if (object instanceof HTMLImageElement)
- { return domMemberCache.HTMLImageElement; }
- else if (object instanceof HTMLAnchorElement)
- { return domMemberCache.HTMLAnchorElement; }
- else if (object instanceof HTMLInputElement)
- { return domMemberCache.HTMLInputElement; }
- else if (object instanceof HTMLButtonElement)
- { return domMemberCache.HTMLButtonElement; }
- else if (object instanceof HTMLFormElement)
- { return domMemberCache.HTMLFormElement; }
- else if (object instanceof HTMLBodyElement)
- { return domMemberCache.HTMLBodyElement; }
- else if (object instanceof HTMLHtmlElement)
- { return domMemberCache.HTMLHtmlElement; }
- else if (object instanceof HTMLScriptElement)
- { return domMemberCache.HTMLScriptElement; }
- else if (object instanceof HTMLTableElement)
- { return domMemberCache.HTMLTableElement; }
- else if (object instanceof HTMLTableRowElement)
- { return domMemberCache.HTMLTableRowElement; }
- else if (object instanceof HTMLTableCellElement)
- { return domMemberCache.HTMLTableCellElement; }
- else if (object instanceof HTMLIFrameElement)
- { return domMemberCache.HTMLIFrameElement; }
- else if (object instanceof SVGSVGElement)
- { return domMemberCache.SVGSVGElement; }
- else if (object instanceof SVGElement)
- { return domMemberCache.SVGElement; }
- else if (object instanceof Element)
- { return domMemberCache.Element; }
- else if (object instanceof Text || object instanceof CDATASection)
- { return domMemberCache.Text; }
- else if (object instanceof Attr)
- { return domMemberCache.Attr; }
- else if (object instanceof Node)
- { return domMemberCache.Node; }
- else if (object instanceof Event || object instanceof EventCopy)
- { return domMemberCache.Event; }
- else
- return {};
- }
- catch(E)
- {
- return {};
- }
-};
-/**/
-
-this.isDOMMember = function(object, propName)
-{
- var members = this.getDOMMembers(object);
- return members && propName in members;
-};
-
-var domMemberCache = null;
-var domMemberMap = {};
-
-domMemberMap.Window =
-[
- "document",
- "frameElement",
-
- "innerWidth",
- "innerHeight",
- "outerWidth",
- "outerHeight",
- "screenX",
- "screenY",
- "pageXOffset",
- "pageYOffset",
- "scrollX",
- "scrollY",
- "scrollMaxX",
- "scrollMaxY",
-
- "status",
- "defaultStatus",
-
- "parent",
- "opener",
- "top",
- "window",
- "content",
- "self",
-
- "location",
- "history",
- "frames",
- "navigator",
- "screen",
- "menubar",
- "toolbar",
- "locationbar",
- "personalbar",
- "statusbar",
- "directories",
- "scrollbars",
- "fullScreen",
- "netscape",
- "java",
- "console",
- "Components",
- "controllers",
- "closed",
- "crypto",
- "pkcs11",
-
- "name",
- "property",
- "length",
-
- "sessionStorage",
- "globalStorage",
-
- "setTimeout",
- "setInterval",
- "clearTimeout",
- "clearInterval",
- "addEventListener",
- "removeEventListener",
- "dispatchEvent",
- "getComputedStyle",
- "captureEvents",
- "releaseEvents",
- "routeEvent",
- "enableExternalCapture",
- "disableExternalCapture",
- "moveTo",
- "moveBy",
- "resizeTo",
- "resizeBy",
- "scroll",
- "scrollTo",
- "scrollBy",
- "scrollByLines",
- "scrollByPages",
- "sizeToContent",
- "setResizable",
- "getSelection",
- "open",
- "openDialog",
- "close",
- "alert",
- "confirm",
- "prompt",
- "dump",
- "focus",
- "blur",
- "find",
- "back",
- "forward",
- "home",
- "stop",
- "print",
- "atob",
- "btoa",
- "updateCommands",
- "XPCNativeWrapper",
- "GeckoActiveXObject",
- "applicationCache" // FF3
-];
-
-domMemberMap.Location =
-[
- "href",
- "protocol",
- "host",
- "hostname",
- "port",
- "pathname",
- "search",
- "hash",
-
- "assign",
- "reload",
- "replace"
-];
-
-domMemberMap.Node =
-[
- "id",
- "className",
-
- "nodeType",
- "tagName",
- "nodeName",
- "localName",
- "prefix",
- "namespaceURI",
- "nodeValue",
-
- "ownerDocument",
- "parentNode",
- "offsetParent",
- "nextSibling",
- "previousSibling",
- "firstChild",
- "lastChild",
- "childNodes",
- "attributes",
-
- "dir",
- "baseURI",
- "textContent",
- "innerHTML",
-
- "addEventListener",
- "removeEventListener",
- "dispatchEvent",
- "cloneNode",
- "appendChild",
- "insertBefore",
- "replaceChild",
- "removeChild",
- "compareDocumentPosition",
- "hasAttributes",
- "hasChildNodes",
- "lookupNamespaceURI",
- "lookupPrefix",
- "normalize",
- "isDefaultNamespace",
- "isEqualNode",
- "isSameNode",
- "isSupported",
- "getFeature",
- "getUserData",
- "setUserData"
-];
-
-domMemberMap.Document = extendArray(domMemberMap.Node,
-[
- "documentElement",
- "body",
- "title",
- "location",
- "referrer",
- "cookie",
- "contentType",
- "lastModified",
- "characterSet",
- "inputEncoding",
- "xmlEncoding",
- "xmlStandalone",
- "xmlVersion",
- "strictErrorChecking",
- "documentURI",
- "URL",
-
- "defaultView",
- "doctype",
- "implementation",
- "styleSheets",
- "images",
- "links",
- "forms",
- "anchors",
- "embeds",
- "plugins",
- "applets",
-
- "width",
- "height",
-
- "designMode",
- "compatMode",
- "async",
- "preferredStylesheetSet",
-
- "alinkColor",
- "linkColor",
- "vlinkColor",
- "bgColor",
- "fgColor",
- "domain",
-
- "addEventListener",
- "removeEventListener",
- "dispatchEvent",
- "captureEvents",
- "releaseEvents",
- "routeEvent",
- "clear",
- "open",
- "close",
- "execCommand",
- "execCommandShowHelp",
- "getElementsByName",
- "getSelection",
- "queryCommandEnabled",
- "queryCommandIndeterm",
- "queryCommandState",
- "queryCommandSupported",
- "queryCommandText",
- "queryCommandValue",
- "write",
- "writeln",
- "adoptNode",
- "appendChild",
- "removeChild",
- "renameNode",
- "cloneNode",
- "compareDocumentPosition",
- "createAttribute",
- "createAttributeNS",
- "createCDATASection",
- "createComment",
- "createDocumentFragment",
- "createElement",
- "createElementNS",
- "createEntityReference",
- "createEvent",
- "createExpression",
- "createNSResolver",
- "createNodeIterator",
- "createProcessingInstruction",
- "createRange",
- "createTextNode",
- "createTreeWalker",
- "domConfig",
- "evaluate",
- "evaluateFIXptr",
- "evaluateXPointer",
- "getAnonymousElementByAttribute",
- "getAnonymousNodes",
- "addBinding",
- "removeBinding",
- "getBindingParent",
- "getBoxObjectFor",
- "setBoxObjectFor",
- "getElementById",
- "getElementsByTagName",
- "getElementsByTagNameNS",
- "hasAttributes",
- "hasChildNodes",
- "importNode",
- "insertBefore",
- "isDefaultNamespace",
- "isEqualNode",
- "isSameNode",
- "isSupported",
- "load",
- "loadBindingDocument",
- "lookupNamespaceURI",
- "lookupPrefix",
- "normalize",
- "normalizeDocument",
- "getFeature",
- "getUserData",
- "setUserData"
-]);
-
-domMemberMap.Element = extendArray(domMemberMap.Node,
-[
- "clientWidth",
- "clientHeight",
- "offsetLeft",
- "offsetTop",
- "offsetWidth",
- "offsetHeight",
- "scrollLeft",
- "scrollTop",
- "scrollWidth",
- "scrollHeight",
-
- "style",
-
- "tabIndex",
- "title",
- "lang",
- "align",
- "spellcheck",
-
- "addEventListener",
- "removeEventListener",
- "dispatchEvent",
- "focus",
- "blur",
- "cloneNode",
- "appendChild",
- "insertBefore",
- "replaceChild",
- "removeChild",
- "compareDocumentPosition",
- "getElementsByTagName",
- "getElementsByTagNameNS",
- "getAttribute",
- "getAttributeNS",
- "getAttributeNode",
- "getAttributeNodeNS",
- "setAttribute",
- "setAttributeNS",
- "setAttributeNode",
- "setAttributeNodeNS",
- "removeAttribute",
- "removeAttributeNS",
- "removeAttributeNode",
- "hasAttribute",
- "hasAttributeNS",
- "hasAttributes",
- "hasChildNodes",
- "lookupNamespaceURI",
- "lookupPrefix",
- "normalize",
- "isDefaultNamespace",
- "isEqualNode",
- "isSameNode",
- "isSupported",
- "getFeature",
- "getUserData",
- "setUserData"
-]);
-
-domMemberMap.SVGElement = extendArray(domMemberMap.Element,
-[
- "x",
- "y",
- "width",
- "height",
- "rx",
- "ry",
- "transform",
- "href",
-
- "ownerSVGElement",
- "viewportElement",
- "farthestViewportElement",
- "nearestViewportElement",
-
- "getBBox",
- "getCTM",
- "getScreenCTM",
- "getTransformToElement",
- "getPresentationAttribute",
- "preserveAspectRatio"
-]);
-
-domMemberMap.SVGSVGElement = extendArray(domMemberMap.Element,
-[
- "x",
- "y",
- "width",
- "height",
- "rx",
- "ry",
- "transform",
-
- "viewBox",
- "viewport",
- "currentView",
- "useCurrentView",
- "pixelUnitToMillimeterX",
- "pixelUnitToMillimeterY",
- "screenPixelToMillimeterX",
- "screenPixelToMillimeterY",
- "currentScale",
- "currentTranslate",
- "zoomAndPan",
-
- "ownerSVGElement",
- "viewportElement",
- "farthestViewportElement",
- "nearestViewportElement",
- "contentScriptType",
- "contentStyleType",
-
- "getBBox",
- "getCTM",
- "getScreenCTM",
- "getTransformToElement",
- "getEnclosureList",
- "getIntersectionList",
- "getViewboxToViewportTransform",
- "getPresentationAttribute",
- "getElementById",
- "checkEnclosure",
- "checkIntersection",
- "createSVGAngle",
- "createSVGLength",
- "createSVGMatrix",
- "createSVGNumber",
- "createSVGPoint",
- "createSVGRect",
- "createSVGString",
- "createSVGTransform",
- "createSVGTransformFromMatrix",
- "deSelectAll",
- "preserveAspectRatio",
- "forceRedraw",
- "suspendRedraw",
- "unsuspendRedraw",
- "unsuspendRedrawAll",
- "getCurrentTime",
- "setCurrentTime",
- "animationsPaused",
- "pauseAnimations",
- "unpauseAnimations"
-]);
-
-domMemberMap.HTMLImageElement = extendArray(domMemberMap.Element,
-[
- "src",
- "naturalWidth",
- "naturalHeight",
- "width",
- "height",
- "x",
- "y",
- "name",
- "alt",
- "longDesc",
- "lowsrc",
- "border",
- "complete",
- "hspace",
- "vspace",
- "isMap",
- "useMap"
-]);
-
-domMemberMap.HTMLAnchorElement = extendArray(domMemberMap.Element,
-[
- "name",
- "target",
- "accessKey",
- "href",
- "protocol",
- "host",
- "hostname",
- "port",
- "pathname",
- "search",
- "hash",
- "hreflang",
- "coords",
- "shape",
- "text",
- "type",
- "rel",
- "rev",
- "charset"
-]);
-
-domMemberMap.HTMLIFrameElement = extendArray(domMemberMap.Element,
-[
- "contentDocument",
- "contentWindow",
- "frameBorder",
- "height",
- "longDesc",
- "marginHeight",
- "marginWidth",
- "name",
- "scrolling",
- "src",
- "width"
-]);
-
-domMemberMap.HTMLTableElement = extendArray(domMemberMap.Element,
-[
- "bgColor",
- "border",
- "caption",
- "cellPadding",
- "cellSpacing",
- "frame",
- "rows",
- "rules",
- "summary",
- "tBodies",
- "tFoot",
- "tHead",
- "width",
-
- "createCaption",
- "createTFoot",
- "createTHead",
- "deleteCaption",
- "deleteRow",
- "deleteTFoot",
- "deleteTHead",
- "insertRow"
-]);
-
-domMemberMap.HTMLTableRowElement = extendArray(domMemberMap.Element,
-[
- "bgColor",
- "cells",
- "ch",
- "chOff",
- "rowIndex",
- "sectionRowIndex",
- "vAlign",
-
- "deleteCell",
- "insertCell"
-]);
-
-domMemberMap.HTMLTableCellElement = extendArray(domMemberMap.Element,
-[
- "abbr",
- "axis",
- "bgColor",
- "cellIndex",
- "ch",
- "chOff",
- "colSpan",
- "headers",
- "height",
- "noWrap",
- "rowSpan",
- "scope",
- "vAlign",
- "width"
-
-]);
-
-domMemberMap.HTMLScriptElement = extendArray(domMemberMap.Element,
-[
- "src"
-]);
-
-domMemberMap.HTMLButtonElement = extendArray(domMemberMap.Element,
-[
- "accessKey",
- "disabled",
- "form",
- "name",
- "type",
- "value",
-
- "click"
-]);
-
-domMemberMap.HTMLInputElement = extendArray(domMemberMap.Element,
-[
- "type",
- "value",
- "checked",
- "accept",
- "accessKey",
- "alt",
- "controllers",
- "defaultChecked",
- "defaultValue",
- "disabled",
- "form",
- "maxLength",
- "name",
- "readOnly",
- "selectionEnd",
- "selectionStart",
- "size",
- "src",
- "textLength",
- "useMap",
-
- "click",
- "select",
- "setSelectionRange"
-]);
-
-domMemberMap.HTMLFormElement = extendArray(domMemberMap.Element,
-[
- "acceptCharset",
- "action",
- "author",
- "elements",
- "encoding",
- "enctype",
- "entry_id",
- "length",
- "method",
- "name",
- "post",
- "target",
- "text",
- "url",
-
- "reset",
- "submit"
-]);
-
-domMemberMap.HTMLBodyElement = extendArray(domMemberMap.Element,
-[
- "aLink",
- "background",
- "bgColor",
- "link",
- "text",
- "vLink"
-]);
-
-domMemberMap.HTMLHtmlElement = extendArray(domMemberMap.Element,
-[
- "version"
-]);
-
-domMemberMap.Text = extendArray(domMemberMap.Node,
-[
- "data",
- "length",
-
- "appendData",
- "deleteData",
- "insertData",
- "replaceData",
- "splitText",
- "substringData"
-]);
-
-domMemberMap.Attr = extendArray(domMemberMap.Node,
-[
- "name",
- "value",
- "specified",
- "ownerElement"
-]);
-
-domMemberMap.Event =
-[
- "type",
- "target",
- "currentTarget",
- "originalTarget",
- "explicitOriginalTarget",
- "relatedTarget",
- "rangeParent",
- "rangeOffset",
- "view",
-
- "keyCode",
- "charCode",
- "screenX",
- "screenY",
- "clientX",
- "clientY",
- "layerX",
- "layerY",
- "pageX",
- "pageY",
-
- "detail",
- "button",
- "which",
- "ctrlKey",
- "shiftKey",
- "altKey",
- "metaKey",
-
- "eventPhase",
- "timeStamp",
- "bubbles",
- "cancelable",
- "cancelBubble",
-
- "isTrusted",
- "isChar",
-
- "getPreventDefault",
- "initEvent",
- "initMouseEvent",
- "initKeyEvent",
- "initUIEvent",
- "preventBubble",
- "preventCapture",
- "preventDefault",
- "stopPropagation"
-];
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-this.domConstantMap =
-{
- "ELEMENT_NODE": 1,
- "ATTRIBUTE_NODE": 1,
- "TEXT_NODE": 1,
- "CDATA_SECTION_NODE": 1,
- "ENTITY_REFERENCE_NODE": 1,
- "ENTITY_NODE": 1,
- "PROCESSING_INSTRUCTION_NODE": 1,
- "COMMENT_NODE": 1,
- "DOCUMENT_NODE": 1,
- "DOCUMENT_TYPE_NODE": 1,
- "DOCUMENT_FRAGMENT_NODE": 1,
- "NOTATION_NODE": 1,
-
- "DOCUMENT_POSITION_DISCONNECTED": 1,
- "DOCUMENT_POSITION_PRECEDING": 1,
- "DOCUMENT_POSITION_FOLLOWING": 1,
- "DOCUMENT_POSITION_CONTAINS": 1,
- "DOCUMENT_POSITION_CONTAINED_BY": 1,
- "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC": 1,
-
- "UNKNOWN_RULE": 1,
- "STYLE_RULE": 1,
- "CHARSET_RULE": 1,
- "IMPORT_RULE": 1,
- "MEDIA_RULE": 1,
- "FONT_FACE_RULE": 1,
- "PAGE_RULE": 1,
-
- "CAPTURING_PHASE": 1,
- "AT_TARGET": 1,
- "BUBBLING_PHASE": 1,
-
- "SCROLL_PAGE_UP": 1,
- "SCROLL_PAGE_DOWN": 1,
-
- "MOUSEUP": 1,
- "MOUSEDOWN": 1,
- "MOUSEOVER": 1,
- "MOUSEOUT": 1,
- "MOUSEMOVE": 1,
- "MOUSEDRAG": 1,
- "CLICK": 1,
- "DBLCLICK": 1,
- "KEYDOWN": 1,
- "KEYUP": 1,
- "KEYPRESS": 1,
- "DRAGDROP": 1,
- "FOCUS": 1,
- "BLUR": 1,
- "SELECT": 1,
- "CHANGE": 1,
- "RESET": 1,
- "SUBMIT": 1,
- "SCROLL": 1,
- "LOAD": 1,
- "UNLOAD": 1,
- "XFER_DONE": 1,
- "ABORT": 1,
- "ERROR": 1,
- "LOCATE": 1,
- "MOVE": 1,
- "RESIZE": 1,
- "FORWARD": 1,
- "HELP": 1,
- "BACK": 1,
- "TEXT": 1,
-
- "ALT_MASK": 1,
- "CONTROL_MASK": 1,
- "SHIFT_MASK": 1,
- "META_MASK": 1,
-
- "DOM_VK_TAB": 1,
- "DOM_VK_PAGE_UP": 1,
- "DOM_VK_PAGE_DOWN": 1,
- "DOM_VK_UP": 1,
- "DOM_VK_DOWN": 1,
- "DOM_VK_LEFT": 1,
- "DOM_VK_RIGHT": 1,
- "DOM_VK_CANCEL": 1,
- "DOM_VK_HELP": 1,
- "DOM_VK_BACK_SPACE": 1,
- "DOM_VK_CLEAR": 1,
- "DOM_VK_RETURN": 1,
- "DOM_VK_ENTER": 1,
- "DOM_VK_SHIFT": 1,
- "DOM_VK_CONTROL": 1,
- "DOM_VK_ALT": 1,
- "DOM_VK_PAUSE": 1,
- "DOM_VK_CAPS_LOCK": 1,
- "DOM_VK_ESCAPE": 1,
- "DOM_VK_SPACE": 1,
- "DOM_VK_END": 1,
- "DOM_VK_HOME": 1,
- "DOM_VK_PRINTSCREEN": 1,
- "DOM_VK_INSERT": 1,
- "DOM_VK_DELETE": 1,
- "DOM_VK_0": 1,
- "DOM_VK_1": 1,
- "DOM_VK_2": 1,
- "DOM_VK_3": 1,
- "DOM_VK_4": 1,
- "DOM_VK_5": 1,
- "DOM_VK_6": 1,
- "DOM_VK_7": 1,
- "DOM_VK_8": 1,
- "DOM_VK_9": 1,
- "DOM_VK_SEMICOLON": 1,
- "DOM_VK_EQUALS": 1,
- "DOM_VK_A": 1,
- "DOM_VK_B": 1,
- "DOM_VK_C": 1,
- "DOM_VK_D": 1,
- "DOM_VK_E": 1,
- "DOM_VK_F": 1,
- "DOM_VK_G": 1,
- "DOM_VK_H": 1,
- "DOM_VK_I": 1,
- "DOM_VK_J": 1,
- "DOM_VK_K": 1,
- "DOM_VK_L": 1,
- "DOM_VK_M": 1,
- "DOM_VK_N": 1,
- "DOM_VK_O": 1,
- "DOM_VK_P": 1,
- "DOM_VK_Q": 1,
- "DOM_VK_R": 1,
- "DOM_VK_S": 1,
- "DOM_VK_T": 1,
- "DOM_VK_U": 1,
- "DOM_VK_V": 1,
- "DOM_VK_W": 1,
- "DOM_VK_X": 1,
- "DOM_VK_Y": 1,
- "DOM_VK_Z": 1,
- "DOM_VK_CONTEXT_MENU": 1,
- "DOM_VK_NUMPAD0": 1,
- "DOM_VK_NUMPAD1": 1,
- "DOM_VK_NUMPAD2": 1,
- "DOM_VK_NUMPAD3": 1,
- "DOM_VK_NUMPAD4": 1,
- "DOM_VK_NUMPAD5": 1,
- "DOM_VK_NUMPAD6": 1,
- "DOM_VK_NUMPAD7": 1,
- "DOM_VK_NUMPAD8": 1,
- "DOM_VK_NUMPAD9": 1,
- "DOM_VK_MULTIPLY": 1,
- "DOM_VK_ADD": 1,
- "DOM_VK_SEPARATOR": 1,
- "DOM_VK_SUBTRACT": 1,
- "DOM_VK_DECIMAL": 1,
- "DOM_VK_DIVIDE": 1,
- "DOM_VK_F1": 1,
- "DOM_VK_F2": 1,
- "DOM_VK_F3": 1,
- "DOM_VK_F4": 1,
- "DOM_VK_F5": 1,
- "DOM_VK_F6": 1,
- "DOM_VK_F7": 1,
- "DOM_VK_F8": 1,
- "DOM_VK_F9": 1,
- "DOM_VK_F10": 1,
- "DOM_VK_F11": 1,
- "DOM_VK_F12": 1,
- "DOM_VK_F13": 1,
- "DOM_VK_F14": 1,
- "DOM_VK_F15": 1,
- "DOM_VK_F16": 1,
- "DOM_VK_F17": 1,
- "DOM_VK_F18": 1,
- "DOM_VK_F19": 1,
- "DOM_VK_F20": 1,
- "DOM_VK_F21": 1,
- "DOM_VK_F22": 1,
- "DOM_VK_F23": 1,
- "DOM_VK_F24": 1,
- "DOM_VK_NUM_LOCK": 1,
- "DOM_VK_SCROLL_LOCK": 1,
- "DOM_VK_COMMA": 1,
- "DOM_VK_PERIOD": 1,
- "DOM_VK_SLASH": 1,
- "DOM_VK_BACK_QUOTE": 1,
- "DOM_VK_OPEN_BRACKET": 1,
- "DOM_VK_BACK_SLASH": 1,
- "DOM_VK_CLOSE_BRACKET": 1,
- "DOM_VK_QUOTE": 1,
- "DOM_VK_META": 1,
-
- "SVG_ZOOMANDPAN_DISABLE": 1,
- "SVG_ZOOMANDPAN_MAGNIFY": 1,
- "SVG_ZOOMANDPAN_UNKNOWN": 1
-};
-
-this.cssInfo =
-{
- "background": ["bgRepeat", "bgAttachment", "bgPosition", "color", "systemColor", "none"],
- "background-attachment": ["bgAttachment"],
- "background-color": ["color", "systemColor"],
- "background-image": ["none"],
- "background-position": ["bgPosition"],
- "background-repeat": ["bgRepeat"],
-
- "border": ["borderStyle", "thickness", "color", "systemColor", "none"],
- "border-top": ["borderStyle", "borderCollapse", "color", "systemColor", "none"],
- "border-right": ["borderStyle", "borderCollapse", "color", "systemColor", "none"],
- "border-bottom": ["borderStyle", "borderCollapse", "color", "systemColor", "none"],
- "border-left": ["borderStyle", "borderCollapse", "color", "systemColor", "none"],
- "border-collapse": ["borderCollapse"],
- "border-color": ["color", "systemColor"],
- "border-top-color": ["color", "systemColor"],
- "border-right-color": ["color", "systemColor"],
- "border-bottom-color": ["color", "systemColor"],
- "border-left-color": ["color", "systemColor"],
- "border-spacing": [],
- "border-style": ["borderStyle"],
- "border-top-style": ["borderStyle"],
- "border-right-style": ["borderStyle"],
- "border-bottom-style": ["borderStyle"],
- "border-left-style": ["borderStyle"],
- "border-width": ["thickness"],
- "border-top-width": ["thickness"],
- "border-right-width": ["thickness"],
- "border-bottom-width": ["thickness"],
- "border-left-width": ["thickness"],
-
- "bottom": ["auto"],
- "caption-side": ["captionSide"],
- "clear": ["clear", "none"],
- "clip": ["auto"],
- "color": ["color", "systemColor"],
- "content": ["content"],
- "counter-increment": ["none"],
- "counter-reset": ["none"],
- "cursor": ["cursor", "none"],
- "direction": ["direction"],
- "display": ["display", "none"],
- "empty-cells": [],
- "float": ["float", "none"],
- "font": ["fontStyle", "fontVariant", "fontWeight", "fontFamily"],
-
- "font-family": ["fontFamily"],
- "font-size": ["fontSize"],
- "font-size-adjust": [],
- "font-stretch": [],
- "font-style": ["fontStyle"],
- "font-variant": ["fontVariant"],
- "font-weight": ["fontWeight"],
-
- "height": ["auto"],
- "left": ["auto"],
- "letter-spacing": [],
- "line-height": [],
-
- "list-style": ["listStyleType", "listStylePosition", "none"],
- "list-style-image": ["none"],
- "list-style-position": ["listStylePosition"],
- "list-style-type": ["listStyleType", "none"],
-
- "margin": [],
- "margin-top": [],
- "margin-right": [],
- "margin-bottom": [],
- "margin-left": [],
-
- "marker-offset": ["auto"],
- "min-height": ["none"],
- "max-height": ["none"],
- "min-width": ["none"],
- "max-width": ["none"],
-
- "outline": ["borderStyle", "color", "systemColor", "none"],
- "outline-color": ["color", "systemColor"],
- "outline-style": ["borderStyle"],
- "outline-width": [],
-
- "overflow": ["overflow", "auto"],
- "overflow-x": ["overflow", "auto"],
- "overflow-y": ["overflow", "auto"],
-
- "padding": [],
- "padding-top": [],
- "padding-right": [],
- "padding-bottom": [],
- "padding-left": [],
-
- "position": ["position"],
- "quotes": ["none"],
- "right": ["auto"],
- "table-layout": ["tableLayout", "auto"],
- "text-align": ["textAlign"],
- "text-decoration": ["textDecoration", "none"],
- "text-indent": [],
- "text-shadow": [],
- "text-transform": ["textTransform", "none"],
- "top": ["auto"],
- "unicode-bidi": [],
- "vertical-align": ["verticalAlign"],
- "white-space": ["whiteSpace"],
- "width": ["auto"],
- "word-spacing": [],
- "z-index": [],
-
- "-moz-appearance": ["mozAppearance"],
- "-moz-border-radius": [],
- "-moz-border-radius-bottomleft": [],
- "-moz-border-radius-bottomright": [],
- "-moz-border-radius-topleft": [],
- "-moz-border-radius-topright": [],
- "-moz-border-top-colors": ["color", "systemColor"],
- "-moz-border-right-colors": ["color", "systemColor"],
- "-moz-border-bottom-colors": ["color", "systemColor"],
- "-moz-border-left-colors": ["color", "systemColor"],
- "-moz-box-align": ["mozBoxAlign"],
- "-moz-box-direction": ["mozBoxDirection"],
- "-moz-box-flex": [],
- "-moz-box-ordinal-group": [],
- "-moz-box-orient": ["mozBoxOrient"],
- "-moz-box-pack": ["mozBoxPack"],
- "-moz-box-sizing": ["mozBoxSizing"],
- "-moz-opacity": [],
- "-moz-user-focus": ["userFocus", "none"],
- "-moz-user-input": ["userInput"],
- "-moz-user-modify": [],
- "-moz-user-select": ["userSelect", "none"],
- "-moz-background-clip": [],
- "-moz-background-inline-policy": [],
- "-moz-background-origin": [],
- "-moz-binding": [],
- "-moz-column-count": [],
- "-moz-column-gap": [],
- "-moz-column-width": [],
- "-moz-image-region": []
-};
-
-this.inheritedStyleNames =
-{
- "border-collapse": 1,
- "border-spacing": 1,
- "border-style": 1,
- "caption-side": 1,
- "color": 1,
- "cursor": 1,
- "direction": 1,
- "empty-cells": 1,
- "font": 1,
- "font-family": 1,
- "font-size-adjust": 1,
- "font-size": 1,
- "font-style": 1,
- "font-variant": 1,
- "font-weight": 1,
- "letter-spacing": 1,
- "line-height": 1,
- "list-style": 1,
- "list-style-image": 1,
- "list-style-position": 1,
- "list-style-type": 1,
- "quotes": 1,
- "text-align": 1,
- "text-decoration": 1,
- "text-indent": 1,
- "text-shadow": 1,
- "text-transform": 1,
- "white-space": 1,
- "word-spacing": 1
-};
-
-this.cssKeywords =
-{
- "appearance":
- [
- "button",
- "button-small",
- "checkbox",
- "checkbox-container",
- "checkbox-small",
- "dialog",
- "listbox",
- "menuitem",
- "menulist",
- "menulist-button",
- "menulist-textfield",
- "menupopup",
- "progressbar",
- "radio",
- "radio-container",
- "radio-small",
- "resizer",
- "scrollbar",
- "scrollbarbutton-down",
- "scrollbarbutton-left",
- "scrollbarbutton-right",
- "scrollbarbutton-up",
- "scrollbartrack-horizontal",
- "scrollbartrack-vertical",
- "separator",
- "statusbar",
- "tab",
- "tab-left-edge",
- "tabpanels",
- "textfield",
- "toolbar",
- "toolbarbutton",
- "toolbox",
- "tooltip",
- "treeheadercell",
- "treeheadersortarrow",
- "treeitem",
- "treetwisty",
- "treetwistyopen",
- "treeview",
- "window"
- ],
-
- "systemColor":
- [
- "ActiveBorder",
- "ActiveCaption",
- "AppWorkspace",
- "Background",
- "ButtonFace",
- "ButtonHighlight",
- "ButtonShadow",
- "ButtonText",
- "CaptionText",
- "GrayText",
- "Highlight",
- "HighlightText",
- "InactiveBorder",
- "InactiveCaption",
- "InactiveCaptionText",
- "InfoBackground",
- "InfoText",
- "Menu",
- "MenuText",
- "Scrollbar",
- "ThreeDDarkShadow",
- "ThreeDFace",
- "ThreeDHighlight",
- "ThreeDLightShadow",
- "ThreeDShadow",
- "Window",
- "WindowFrame",
- "WindowText",
- "-moz-field",
- "-moz-fieldtext",
- "-moz-workspace",
- "-moz-visitedhyperlinktext",
- "-moz-use-text-color"
- ],
-
- "color":
- [
- "AliceBlue",
- "AntiqueWhite",
- "Aqua",
- "Aquamarine",
- "Azure",
- "Beige",
- "Bisque",
- "Black",
- "BlanchedAlmond",
- "Blue",
- "BlueViolet",
- "Brown",
- "BurlyWood",
- "CadetBlue",
- "Chartreuse",
- "Chocolate",
- "Coral",
- "CornflowerBlue",
- "Cornsilk",
- "Crimson",
- "Cyan",
- "DarkBlue",
- "DarkCyan",
- "DarkGoldenRod",
- "DarkGray",
- "DarkGreen",
- "DarkKhaki",
- "DarkMagenta",
- "DarkOliveGreen",
- "DarkOrange",
- "DarkOrchid",
- "DarkRed",
- "DarkSalmon",
- "DarkSeaGreen",
- "DarkSlateBlue",
- "DarkSlateGray",
- "DarkTurquoise",
- "DarkViolet",
- "DeepPink",
- "DarkSkyBlue",
- "DimGray",
- "DodgerBlue",
- "Feldspar",
- "FireBrick",
- "FloralWhite",
- "ForestGreen",
- "Fuchsia",
- "Gainsboro",
- "GhostWhite",
- "Gold",
- "GoldenRod",
- "Gray",
- "Green",
- "GreenYellow",
- "HoneyDew",
- "HotPink",
- "IndianRed",
- "Indigo",
- "Ivory",
- "Khaki",
- "Lavender",
- "LavenderBlush",
- "LawnGreen",
- "LemonChiffon",
- "LightBlue",
- "LightCoral",
- "LightCyan",
- "LightGoldenRodYellow",
- "LightGrey",
- "LightGreen",
- "LightPink",
- "LightSalmon",
- "LightSeaGreen",
- "LightSkyBlue",
- "LightSlateBlue",
- "LightSlateGray",
- "LightSteelBlue",
- "LightYellow",
- "Lime",
- "LimeGreen",
- "Linen",
- "Magenta",
- "Maroon",
- "MediumAquaMarine",
- "MediumBlue",
- "MediumOrchid",
- "MediumPurple",
- "MediumSeaGreen",
- "MediumSlateBlue",
- "MediumSpringGreen",
- "MediumTurquoise",
- "MediumVioletRed",
- "MidnightBlue",
- "MintCream",
- "MistyRose",
- "Moccasin",
- "NavajoWhite",
- "Navy",
- "OldLace",
- "Olive",
- "OliveDrab",
- "Orange",
- "OrangeRed",
- "Orchid",
- "PaleGoldenRod",
- "PaleGreen",
- "PaleTurquoise",
- "PaleVioletRed",
- "PapayaWhip",
- "PeachPuff",
- "Peru",
- "Pink",
- "Plum",
- "PowderBlue",
- "Purple",
- "Red",
- "RosyBrown",
- "RoyalBlue",
- "SaddleBrown",
- "Salmon",
- "SandyBrown",
- "SeaGreen",
- "SeaShell",
- "Sienna",
- "Silver",
- "SkyBlue",
- "SlateBlue",
- "SlateGray",
- "Snow",
- "SpringGreen",
- "SteelBlue",
- "Tan",
- "Teal",
- "Thistle",
- "Tomato",
- "Turquoise",
- "Violet",
- "VioletRed",
- "Wheat",
- "White",
- "WhiteSmoke",
- "Yellow",
- "YellowGreen",
- "transparent",
- "invert"
- ],
-
- "auto":
- [
- "auto"
- ],
-
- "none":
- [
- "none"
- ],
-
- "captionSide":
- [
- "top",
- "bottom",
- "left",
- "right"
- ],
-
- "clear":
- [
- "left",
- "right",
- "both"
- ],
-
- "cursor":
- [
- "auto",
- "cell",
- "context-menu",
- "crosshair",
- "default",
- "help",
- "pointer",
- "progress",
- "move",
- "e-resize",
- "all-scroll",
- "ne-resize",
- "nw-resize",
- "n-resize",
- "se-resize",
- "sw-resize",
- "s-resize",
- "w-resize",
- "ew-resize",
- "ns-resize",
- "nesw-resize",
- "nwse-resize",
- "col-resize",
- "row-resize",
- "text",
- "vertical-text",
- "wait",
- "alias",
- "copy",
- "move",
- "no-drop",
- "not-allowed",
- "-moz-alias",
- "-moz-cell",
- "-moz-copy",
- "-moz-grab",
- "-moz-grabbing",
- "-moz-contextmenu",
- "-moz-zoom-in",
- "-moz-zoom-out",
- "-moz-spinning"
- ],
-
- "direction":
- [
- "ltr",
- "rtl"
- ],
-
- "bgAttachment":
- [
- "scroll",
- "fixed"
- ],
-
- "bgPosition":
- [
- "top",
- "center",
- "bottom",
- "left",
- "right"
- ],
-
- "bgRepeat":
- [
- "repeat",
- "repeat-x",
- "repeat-y",
- "no-repeat"
- ],
-
- "borderStyle":
- [
- "hidden",
- "dotted",
- "dashed",
- "solid",
- "double",
- "groove",
- "ridge",
- "inset",
- "outset",
- "-moz-bg-inset",
- "-moz-bg-outset",
- "-moz-bg-solid"
- ],
-
- "borderCollapse":
- [
- "collapse",
- "separate"
- ],
-
- "overflow":
- [
- "visible",
- "hidden",
- "scroll",
- "-moz-scrollbars-horizontal",
- "-moz-scrollbars-none",
- "-moz-scrollbars-vertical"
- ],
-
- "listStyleType":
- [
- "disc",
- "circle",
- "square",
- "decimal",
- "decimal-leading-zero",
- "lower-roman",
- "upper-roman",
- "lower-greek",
- "lower-alpha",
- "lower-latin",
- "upper-alpha",
- "upper-latin",
- "hebrew",
- "armenian",
- "georgian",
- "cjk-ideographic",
- "hiragana",
- "katakana",
- "hiragana-iroha",
- "katakana-iroha",
- "inherit"
- ],
-
- "listStylePosition":
- [
- "inside",
- "outside"
- ],
-
- "content":
- [
- "open-quote",
- "close-quote",
- "no-open-quote",
- "no-close-quote",
- "inherit"
- ],
-
- "fontStyle":
- [
- "normal",
- "italic",
- "oblique",
- "inherit"
- ],
-
- "fontVariant":
- [
- "normal",
- "small-caps",
- "inherit"
- ],
-
- "fontWeight":
- [
- "normal",
- "bold",
- "bolder",
- "lighter",
- "inherit"
- ],
-
- "fontSize":
- [
- "xx-small",
- "x-small",
- "small",
- "medium",
- "large",
- "x-large",
- "xx-large",
- "smaller",
- "larger"
- ],
-
- "fontFamily":
- [
- "Arial",
- "Comic Sans MS",
- "Georgia",
- "Tahoma",
- "Verdana",
- "Times New Roman",
- "Trebuchet MS",
- "Lucida Grande",
- "Helvetica",
- "serif",
- "sans-serif",
- "cursive",
- "fantasy",
- "monospace",
- "caption",
- "icon",
- "menu",
- "message-box",
- "small-caption",
- "status-bar",
- "inherit"
- ],
-
- "display":
- [
- "block",
- "inline",
- "inline-block",
- "list-item",
- "marker",
- "run-in",
- "compact",
- "table",
- "inline-table",
- "table-row-group",
- "table-column",
- "table-column-group",
- "table-header-group",
- "table-footer-group",
- "table-row",
- "table-cell",
- "table-caption",
- "-moz-box",
- "-moz-compact",
- "-moz-deck",
- "-moz-grid",
- "-moz-grid-group",
- "-moz-grid-line",
- "-moz-groupbox",
- "-moz-inline-block",
- "-moz-inline-box",
- "-moz-inline-grid",
- "-moz-inline-stack",
- "-moz-inline-table",
- "-moz-marker",
- "-moz-popup",
- "-moz-runin",
- "-moz-stack"
- ],
-
- "position":
- [
- "static",
- "relative",
- "absolute",
- "fixed",
- "inherit"
- ],
-
- "float":
- [
- "left",
- "right"
- ],
-
- "textAlign":
- [
- "left",
- "right",
- "center",
- "justify"
- ],
-
- "tableLayout":
- [
- "fixed"
- ],
-
- "textDecoration":
- [
- "underline",
- "overline",
- "line-through",
- "blink"
- ],
-
- "textTransform":
- [
- "capitalize",
- "lowercase",
- "uppercase",
- "inherit"
- ],
-
- "unicodeBidi":
- [
- "normal",
- "embed",
- "bidi-override"
- ],
-
- "whiteSpace":
- [
- "normal",
- "pre",
- "nowrap"
- ],
-
- "verticalAlign":
- [
- "baseline",
- "sub",
- "super",
- "top",
- "text-top",
- "middle",
- "bottom",
- "text-bottom",
- "inherit"
- ],
-
- "thickness":
- [
- "thin",
- "medium",
- "thick"
- ],
-
- "userFocus":
- [
- "ignore",
- "normal"
- ],
-
- "userInput":
- [
- "disabled",
- "enabled"
- ],
-
- "userSelect":
- [
- "normal"
- ],
-
- "mozBoxSizing":
- [
- "content-box",
- "padding-box",
- "border-box"
- ],
-
- "mozBoxAlign":
- [
- "start",
- "center",
- "end",
- "baseline",
- "stretch"
- ],
-
- "mozBoxDirection":
- [
- "normal",
- "reverse"
- ],
-
- "mozBoxOrient":
- [
- "horizontal",
- "vertical"
- ],
-
- "mozBoxPack":
- [
- "start",
- "center",
- "end"
- ]
-};
-
-this.nonEditableTags =
-{
- "HTML": 1,
- "HEAD": 1,
- "html": 1,
- "head": 1
-};
-
-this.innerEditableTags =
-{
- "BODY": 1,
- "body": 1
-};
-
-this.selfClosingTags =
-{ // End tags for void elements are forbidden http://wiki.whatwg.org/wiki/HTML_vs._XHTML
- "meta": 1,
- "link": 1,
- "area": 1,
- "base": 1,
- "col": 1,
- "input": 1,
- "img": 1,
- "br": 1,
- "hr": 1,
- "param":1,
- "embed":1
-};
-
-var invisibleTags = this.invisibleTags =
-{
- "HTML": 1,
- "HEAD": 1,
- "TITLE": 1,
- "META": 1,
- "LINK": 1,
- "STYLE": 1,
- "SCRIPT": 1,
- "NOSCRIPT": 1,
- "BR": 1,
- "PARAM": 1,
- "COL": 1,
-
- "html": 1,
- "head": 1,
- "title": 1,
- "meta": 1,
- "link": 1,
- "style": 1,
- "script": 1,
- "noscript": 1,
- "br": 1,
- "param": 1,
- "col": 1
- /*
- "window": 1,
- "browser": 1,
- "frame": 1,
- "tabbrowser": 1,
- "WINDOW": 1,
- "BROWSER": 1,
- "FRAME": 1,
- "TABBROWSER": 1,
- */
-};
-
-
-if (typeof KeyEvent == "undefined") {
- this.KeyEvent = {
- DOM_VK_CANCEL: 3,
- DOM_VK_HELP: 6,
- DOM_VK_BACK_SPACE: 8,
- DOM_VK_TAB: 9,
- DOM_VK_CLEAR: 12,
- DOM_VK_RETURN: 13,
- DOM_VK_ENTER: 14,
- DOM_VK_SHIFT: 16,
- DOM_VK_CONTROL: 17,
- DOM_VK_ALT: 18,
- DOM_VK_PAUSE: 19,
- DOM_VK_CAPS_LOCK: 20,
- DOM_VK_ESCAPE: 27,
- DOM_VK_SPACE: 32,
- DOM_VK_PAGE_UP: 33,
- DOM_VK_PAGE_DOWN: 34,
- DOM_VK_END: 35,
- DOM_VK_HOME: 36,
- DOM_VK_LEFT: 37,
- DOM_VK_UP: 38,
- DOM_VK_RIGHT: 39,
- DOM_VK_DOWN: 40,
- DOM_VK_PRINTSCREEN: 44,
- DOM_VK_INSERT: 45,
- DOM_VK_DELETE: 46,
- DOM_VK_0: 48,
- DOM_VK_1: 49,
- DOM_VK_2: 50,
- DOM_VK_3: 51,
- DOM_VK_4: 52,
- DOM_VK_5: 53,
- DOM_VK_6: 54,
- DOM_VK_7: 55,
- DOM_VK_8: 56,
- DOM_VK_9: 57,
- DOM_VK_SEMICOLON: 59,
- DOM_VK_EQUALS: 61,
- DOM_VK_A: 65,
- DOM_VK_B: 66,
- DOM_VK_C: 67,
- DOM_VK_D: 68,
- DOM_VK_E: 69,
- DOM_VK_F: 70,
- DOM_VK_G: 71,
- DOM_VK_H: 72,
- DOM_VK_I: 73,
- DOM_VK_J: 74,
- DOM_VK_K: 75,
- DOM_VK_L: 76,
- DOM_VK_M: 77,
- DOM_VK_N: 78,
- DOM_VK_O: 79,
- DOM_VK_P: 80,
- DOM_VK_Q: 81,
- DOM_VK_R: 82,
- DOM_VK_S: 83,
- DOM_VK_T: 84,
- DOM_VK_U: 85,
- DOM_VK_V: 86,
- DOM_VK_W: 87,
- DOM_VK_X: 88,
- DOM_VK_Y: 89,
- DOM_VK_Z: 90,
- DOM_VK_CONTEXT_MENU: 93,
- DOM_VK_NUMPAD0: 96,
- DOM_VK_NUMPAD1: 97,
- DOM_VK_NUMPAD2: 98,
- DOM_VK_NUMPAD3: 99,
- DOM_VK_NUMPAD4: 100,
- DOM_VK_NUMPAD5: 101,
- DOM_VK_NUMPAD6: 102,
- DOM_VK_NUMPAD7: 103,
- DOM_VK_NUMPAD8: 104,
- DOM_VK_NUMPAD9: 105,
- DOM_VK_MULTIPLY: 106,
- DOM_VK_ADD: 107,
- DOM_VK_SEPARATOR: 108,
- DOM_VK_SUBTRACT: 109,
- DOM_VK_DECIMAL: 110,
- DOM_VK_DIVIDE: 111,
- DOM_VK_F1: 112,
- DOM_VK_F2: 113,
- DOM_VK_F3: 114,
- DOM_VK_F4: 115,
- DOM_VK_F5: 116,
- DOM_VK_F6: 117,
- DOM_VK_F7: 118,
- DOM_VK_F8: 119,
- DOM_VK_F9: 120,
- DOM_VK_F10: 121,
- DOM_VK_F11: 122,
- DOM_VK_F12: 123,
- DOM_VK_F13: 124,
- DOM_VK_F14: 125,
- DOM_VK_F15: 126,
- DOM_VK_F16: 127,
- DOM_VK_F17: 128,
- DOM_VK_F18: 129,
- DOM_VK_F19: 130,
- DOM_VK_F20: 131,
- DOM_VK_F21: 132,
- DOM_VK_F22: 133,
- DOM_VK_F23: 134,
- DOM_VK_F24: 135,
- DOM_VK_NUM_LOCK: 144,
- DOM_VK_SCROLL_LOCK: 145,
- DOM_VK_COMMA: 188,
- DOM_VK_PERIOD: 190,
- DOM_VK_SLASH: 191,
- DOM_VK_BACK_QUOTE: 192,
- DOM_VK_OPEN_BRACKET: 219,
- DOM_VK_BACK_SLASH: 220,
- DOM_VK_CLOSE_BRACKET: 221,
- DOM_VK_QUOTE: 222,
- DOM_VK_META: 224
- };
-}
-
-
-// ************************************************************************************************
-// Ajax
-
-/**
- * @namespace
- */
-this.Ajax =
-{
-
- requests: [],
- transport: null,
- states: ["Uninitialized","Loading","Loaded","Interactive","Complete"],
-
- initialize: function()
- {
- this.transport = FBL.getNativeXHRObject();
- },
-
- getXHRObject: function()
- {
- var xhrObj = false;
- try
- {
- xhrObj = new XMLHttpRequest();
- }
- catch(e)
- {
- var progid = [
- "MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0",
- "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"
- ];
-
- for ( var i=0; i < progid.length; ++i ) {
- try
- {
- xhrObj = new ActiveXObject(progid[i]);
- }
- catch(e)
- {
- continue;
- }
- break;
- }
- }
- finally
- {
- return xhrObj;
- }
- },
-
-
- /**
- * Create a AJAX request.
- *
- * @name request
- * @param {Object} options request options
- * @param {String} options.url URL to be requested
- * @param {String} options.type Request type ("get" ou "post"). Default is "get".
- * @param {Boolean} options.async Asynchronous flag. Default is "true".
- * @param {String} options.dataType Data type ("text", "html", "xml" or "json"). Default is "text".
- * @param {String} options.contentType Content-type of the data being sent. Default is "application/x-www-form-urlencoded".
- * @param {Function} options.onLoading onLoading callback
- * @param {Function} options.onLoaded onLoaded callback
- * @param {Function} options.onInteractive onInteractive callback
- * @param {Function} options.onComplete onComplete callback
- * @param {Function} options.onUpdate onUpdate callback
- * @param {Function} options.onSuccess onSuccess callback
- * @param {Function} options.onFailure onFailure callback
- */
- request: function(options)
- {
- // process options
- var o = FBL.extend(
- {
- // default values
- type: "get",
- async: true,
- dataType: "text",
- contentType: "application/x-www-form-urlencoded"
- },
- options || {}
- );
-
- this.requests.push(o);
-
- var s = this.getState();
- if (s == "Uninitialized" || s == "Complete" || s == "Loaded")
- this.sendRequest();
- },
-
- serialize: function(data)
- {
- var r = [""], rl = 0;
- if (data) {
- if (typeof data == "string") r[rl++] = data;
-
- else if (data.innerHTML && data.elements) {
- for (var i=0,el,l=(el=data.elements).length; i < l; i++)
- if (el[i].name) {
- r[rl++] = encodeURIComponent(el[i].name);
- r[rl++] = "=";
- r[rl++] = encodeURIComponent(el[i].value);
- r[rl++] = "&";
- }
-
- } else
- for(var param in data) {
- r[rl++] = encodeURIComponent(param);
- r[rl++] = "=";
- r[rl++] = encodeURIComponent(data[param]);
- r[rl++] = "&";
- }
- }
- return r.join("").replace(/&$/, "");
- },
-
- sendRequest: function()
- {
- var t = FBL.Ajax.transport, r = FBL.Ajax.requests.shift(), data;
-
- // open XHR object
- t.open(r.type, r.url, r.async);
-
- //setRequestHeaders();
-
- // indicates that it is a XHR request to the server
- t.setRequestHeader("X-Requested-With", "XMLHttpRequest");
-
- // if data is being sent, sets the appropriate content-type
- if (data = FBL.Ajax.serialize(r.data))
- t.setRequestHeader("Content-Type", r.contentType);
-
- /** @ignore */
- // onreadystatechange handler
- t.onreadystatechange = function()
- {
- FBL.Ajax.onStateChange(r);
- };
-
- // send the request
- t.send(data);
- },
-
- /**
- * Handles the state change
- */
- onStateChange: function(options)
- {
- var fn, o = options, t = this.transport;
- var state = this.getState(t);
-
- if (fn = o["on" + state]) fn(this.getResponse(o), o);
-
- if (state == "Complete")
- {
- var success = t.status == 200, response = this.getResponse(o);
-
- if (fn = o["onUpdate"])
- fn(response, o);
-
- if (fn = o["on" + (success ? "Success" : "Failure")])
- fn(response, o);
-
- t.onreadystatechange = FBL.emptyFn;
-
- if (this.requests.length > 0)
- setTimeout(this.sendRequest, 10);
- }
- },
-
- /**
- * gets the appropriate response value according the type
- */
- getResponse: function(options)
- {
- var t = this.transport, type = options.dataType;
-
- if (t.status != 200) return t.statusText;
- else if (type == "text") return t.responseText;
- else if (type == "html") return t.responseText;
- else if (type == "xml") return t.responseXML;
- else if (type == "json") return eval("(" + t.responseText + ")");
- },
-
- /**
- * returns the current state of the XHR object
- */
- getState: function()
- {
- return this.states[this.transport.readyState];
- }
-
-};
-
-
-// ************************************************************************************************
-// Cookie, from http://www.quirksmode.org/js/cookies.html
-
-this.createCookie = function(name,value,days)
-{
- if ('cookie' in document)
- {
- if (days)
- {
- var date = new Date();
- date.setTime(date.getTime()+(days*24*60*60*1000));
- var expires = "; expires="+date.toGMTString();
- }
- else
- var expires = "";
-
- document.cookie = name+"="+value+expires+"; path=/";
- }
-};
-
-this.readCookie = function (name)
-{
- if ('cookie' in document)
- {
- var nameEQ = name + "=";
- var ca = document.cookie.split(';');
-
- for(var i=0; i < ca.length; i++)
- {
- var c = ca[i];
- while (c.charAt(0)==' ') c = c.substring(1,c.length);
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
- }
- }
-
- return null;
-};
-
-this.removeCookie = function(name)
-{
- this.createCookie(name, "", -1);
-};
-
-
-// ************************************************************************************************
-// http://www.mister-pixel.com/#Content__state=is_that_simple
-var fixIE6BackgroundImageCache = function(doc)
-{
- doc = doc || document;
- try
- {
- doc.execCommand("BackgroundImageCache", false, true);
- }
- catch(E)
- {
-
- }
-};
-
-// ************************************************************************************************
-// calculatePixelsPerInch
-
-var resetStyle = "margin:0; padding:0; border:0; position:absolute; overflow:hidden; display:block;";
-
-var calculatePixelsPerInch = function calculatePixelsPerInch(doc, body)
-{
- var inch = FBL.createGlobalElement("div");
- inch.style.cssText = resetStyle + "width:1in; height:1in; position:absolute; top:-1234px; left:-1234px;";
- body.appendChild(inch);
-
- FBL.pixelsPerInch = {
- x: inch.offsetWidth,
- y: inch.offsetHeight
- };
-
- body.removeChild(inch);
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-this.SourceLink = function(url, line, type, object, instance)
-{
- this.href = url;
- this.instance = instance;
- this.line = line;
- this.type = type;
- this.object = object;
-};
-
-this.SourceLink.prototype =
-{
- toString: function()
- {
- return this.href;
- },
- toJSON: function() // until 3.1...
- {
- return "{\"href\":\""+this.href+"\", "+
- (this.line?("\"line\":"+this.line+","):"")+
- (this.type?(" \"type\":\""+this.type+"\","):"")+
- "}";
- }
-
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-this.SourceText = function(lines, owner)
-{
- this.lines = lines;
- this.owner = owner;
-};
-
-this.SourceText.getLineAsHTML = function(lineNo)
-{
- return escapeForSourceLine(this.lines[lineNo-1]);
-};
-
-
-// ************************************************************************************************
-}).apply(FBL);
-
-/* See license.txt for terms of usage */
-
-FBL.ns( /** @scope s_i18n */ function() { with (FBL) {
-// ************************************************************************************************
-
-// TODO: xxxpedro localization
-var oSTR =
-{
- "NoMembersWarning": "There are no properties to show for this object.",
-
- "EmptyStyleSheet": "There are no rules in this stylesheet.",
- "EmptyElementCSS": "This element has no style rules.",
- "AccessRestricted": "Access to restricted URI denied.",
-
- "net.label.Parameters": "Parameters",
- "net.label.Source": "Source",
- "URLParameters": "Params",
-
- "EditStyle": "Edit Element Style...",
- "NewRule": "New Rule...",
-
- "NewProp": "New Property...",
- "EditProp": 'Edit "%s"',
- "DeleteProp": 'Delete "%s"',
- "DisableProp": 'Disable "%s"'
-};
-
-// ************************************************************************************************
-
-FBL.$STR = function(name)
-{
- return oSTR.hasOwnProperty(name) ? oSTR[name] : name;
-};
-
-FBL.$STRF = function(name, args)
-{
- if (!oSTR.hasOwnProperty(name)) return name;
-
- var format = oSTR[name];
- var objIndex = 0;
-
- var parts = parseFormat(format);
- var trialIndex = objIndex;
- var objects = args;
-
- for (var i= 0; i < parts.length; i++)
- {
- var part = parts[i];
- if (part && typeof(part) == "object")
- {
- if (++trialIndex > objects.length) // then too few parameters for format, assume unformatted.
- {
- format = "";
- objIndex = -1;
- parts.length = 0;
- break;
- }
- }
-
- }
-
- var result = [];
- for (var i = 0; i < parts.length; ++i)
- {
- var part = parts[i];
- if (part && typeof(part) == "object")
- {
- result.push(""+args.shift());
- }
- else
- result.push(part);
- }
-
- return result.join("");
-};
-
-// ************************************************************************************************
-
-var parseFormat = function parseFormat(format)
-{
- var parts = [];
- if (format.length <= 0)
- return parts;
-
- var reg = /((^%|.%)(\d+)?(\.)([a-zA-Z]))|((^%|.%)([a-zA-Z]))/;
- for (var m = reg.exec(format); m; m = reg.exec(format))
- {
- if (m[0].substr(0, 2) == "%%")
- {
- parts.push(format.substr(0, m.index));
- parts.push(m[0].substr(1));
- }
- else
- {
- var type = m[8] ? m[8] : m[5];
- var precision = m[3] ? parseInt(m[3]) : (m[4] == "." ? -1 : 0);
-
- var rep = null;
- switch (type)
- {
- case "s":
- rep = FirebugReps.Text;
- break;
- case "f":
- case "i":
- case "d":
- rep = FirebugReps.Number;
- break;
- case "o":
- rep = null;
- break;
- }
-
- parts.push(format.substr(0, m[0][0] == "%" ? m.index : m.index+1));
- parts.push({rep: rep, precision: precision, type: ("%" + type)});
- }
-
- format = format.substr(m.index+m[0].length);
- }
-
- parts.push(format);
- return parts;
-};
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns( /** @scope s_firebug */ function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Globals
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// Internals
-
-var modules = [];
-var panelTypes = [];
-var panelTypeMap = {};
-var reps = [];
-
-var parentPanelMap = {};
-
-
-// ************************************************************************************************
-// Firebug
-
-/**
- * @namespace describe Firebug
- * @exports FBL.Firebug as Firebug
- */
-FBL.Firebug =
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- version: "Firebug Lite 1.4.0",
- revision: "$Revision$",
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- modules: modules,
- panelTypes: panelTypes,
- panelTypeMap: panelTypeMap,
- reps: reps,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Initialization
-
- initialize: function()
- {
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Firebug.initialize", "initializing application");
-
- Firebug.browser = new Context(Env.browser);
- Firebug.context = Firebug.browser;
-
- Firebug.loadPrefs();
- Firebug.context.persistedState.isOpen = false;
-
- // Document must be cached before chrome initialization
- cacheDocument();
-
- if (Firebug.Inspector && Firebug.Inspector.create)
- Firebug.Inspector.create();
-
- if (FBL.CssAnalyzer && FBL.CssAnalyzer.processAllStyleSheets)
- FBL.CssAnalyzer.processAllStyleSheets(Firebug.browser.document);
-
- FirebugChrome.initialize();
-
- dispatch(modules, "initialize", []);
-
- if (Firebug.disableResourceFetching)
- Firebug.Console.logFormatted(["Some Firebug Lite features are not working because " +
- "resource fetching is disabled. To enabled it set the Firebug Lite option " +
- "\"disableResourceFetching\" to \"false\". More info at " +
- "http://getfirebug.com/firebuglite#Options"],
- Firebug.context, "warn");
-
- if (Env.onLoad)
- {
- var onLoad = Env.onLoad;
- delete Env.onLoad;
-
- setTimeout(onLoad, 200);
- }
- },
-
- shutdown: function()
- {
- if (Firebug.saveCookies)
- Firebug.savePrefs();
-
- if (Firebug.Inspector)
- Firebug.Inspector.destroy();
-
- dispatch(modules, "shutdown", []);
-
- var chromeMap = FirebugChrome.chromeMap;
-
- for (var name in chromeMap)
- {
- if (chromeMap.hasOwnProperty(name))
- {
- try
- {
- chromeMap[name].destroy();
- }
- catch(E)
- {
- if (FBTrace.DBG_ERRORS) FBTrace.sysout("chrome.destroy() failed to: " + name);
- }
- }
- }
-
- Firebug.Lite.Cache.Element.clear();
- Firebug.Lite.Cache.StyleSheet.clear();
-
- Firebug.browser = null;
- Firebug.context = null;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Registration
-
- registerModule: function()
- {
- modules.push.apply(modules, arguments);
-
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Firebug.registerModule");
- },
-
- registerPanel: function()
- {
- panelTypes.push.apply(panelTypes, arguments);
-
- for (var i = 0, panelType; panelType = arguments[i]; ++i)
- {
- panelTypeMap[panelType.prototype.name] = arguments[i];
-
- if (panelType.prototype.parentPanel)
- parentPanelMap[panelType.prototype.parentPanel] = 1;
- }
-
- if (FBTrace.DBG_INITIALIZE)
- for (var i = 0; i < arguments.length; ++i)
- FBTrace.sysout("Firebug.registerPanel", arguments[i].prototype.name);
- },
-
- registerRep: function()
- {
- reps.push.apply(reps, arguments);
- },
-
- unregisterRep: function()
- {
- for (var i = 0; i < arguments.length; ++i)
- remove(reps, arguments[i]);
- },
-
- setDefaultReps: function(funcRep, rep)
- {
- FBL.defaultRep = rep;
- FBL.defaultFuncRep = funcRep;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Reps
-
- getRep: function(object)
- {
- var type = typeof object;
- if (isIE && isFunction(object))
- type = "function";
-
- for (var i = 0; i < reps.length; ++i)
- {
- var rep = reps[i];
- try
- {
- if (rep.supportsObject(object, type))
- {
- if (FBTrace.DBG_DOM)
- FBTrace.sysout("getRep type: "+type+" object: "+object, rep);
- return rep;
- }
- }
- catch (exc)
- {
- if (FBTrace.DBG_ERRORS)
- {
- FBTrace.sysout("firebug.getRep FAILS: ", exc.message || exc);
- FBTrace.sysout("firebug.getRep reps["+i+"/"+reps.length+"]: Rep="+reps[i].className);
- // TODO: xxxpedro add trace to FBTrace logs like in Firebug
- //firebug.trace();
- }
- }
- }
-
- return (type == 'function') ? defaultFuncRep : defaultRep;
- },
-
- getRepObject: function(node)
- {
- var target = null;
- for (var child = node; child; child = child.parentNode)
- {
- if (hasClass(child, "repTarget"))
- target = child;
-
- if (child.repObject)
- {
- if (!target && hasClass(child, "repIgnore"))
- break;
- else
- return child.repObject;
- }
- }
- },
-
- getRepNode: function(node)
- {
- for (var child = node; child; child = child.parentNode)
- {
- if (child.repObject)
- return child;
- }
- },
-
- getElementByRepObject: function(element, object)
- {
- for (var child = element.firstChild; child; child = child.nextSibling)
- {
- if (child.repObject == object)
- return child;
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Preferences
-
- getPref: function(name)
- {
- return Firebug[name];
- },
-
- setPref: function(name, value)
- {
- Firebug[name] = value;
-
- Firebug.savePrefs();
- },
-
- setPrefs: function(prefs)
- {
- for (var name in prefs)
- {
- if (prefs.hasOwnProperty(name))
- Firebug[name] = prefs[name];
- }
-
- Firebug.savePrefs();
- },
-
- restorePrefs: function()
- {
- var Options = Env.DefaultOptions;
-
- for (var name in Options)
- {
- Firebug[name] = Options[name];
- }
- },
-
- loadPrefs: function()
- {
- this.restorePrefs();
-
- var prefs = Store.get("FirebugLite") || {};
- var options = prefs.options;
- var persistedState = prefs.persistedState || FBL.defaultPersistedState;
-
- for (var name in options)
- {
- if (options.hasOwnProperty(name))
- Firebug[name] = options[name];
- }
-
- if (Firebug.context && persistedState)
- Firebug.context.persistedState = persistedState;
- },
-
- savePrefs: function()
- {
- var prefs = {
- options: {}
- };
-
- var EnvOptions = Env.Options;
- var options = prefs.options;
- for (var name in EnvOptions)
- {
- if (EnvOptions.hasOwnProperty(name))
- {
- options[name] = Firebug[name];
- }
- }
-
- var persistedState = Firebug.context.persistedState;
- if (!persistedState)
- {
- persistedState = Firebug.context.persistedState = FBL.defaultPersistedState;
- }
-
- prefs.persistedState = persistedState;
-
- Store.set("FirebugLite", prefs);
- },
-
- erasePrefs: function()
- {
- Store.remove("FirebugLite");
- this.restorePrefs();
- }
-};
-
-Firebug.restorePrefs();
-
-// xxxpedro should we remove this?
-window.Firebug = FBL.Firebug;
-
-if (!Env.Options.enablePersistent ||
- Env.Options.enablePersistent && Env.isChromeContext ||
- Env.isDebugMode)
- Env.browser.window.Firebug = FBL.Firebug;
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// Other methods
-
-FBL.cacheDocument = function cacheDocument()
-{
- var ElementCache = Firebug.Lite.Cache.Element;
- var els = Firebug.browser.document.getElementsByTagName("*");
- for (var i=0, l=els.length, el; i<l; i++)
- {
- el = els[i];
- ElementCache(el);
- }
-};
-
-// ************************************************************************************************
-
-/**
- * @class
- *
- * Support for listeners registration. This object also extended by Firebug.Module so,
- * all modules supports listening automatically. Notice that array of listeners
- * is created for each intance of a module within initialize method. Thus all derived
- * module classes must ensure that Firebug.Module.initialize method is called for the
- * super class.
- */
-Firebug.Listener = function()
-{
- // The array is created when the first listeners is added.
- // It can't be created here since derived objects would share
- // the same array.
- this.fbListeners = null;
-};
-
-Firebug.Listener.prototype =
-{
- addListener: function(listener)
- {
- if (!this.fbListeners)
- this.fbListeners = []; // delay the creation until the objects are created so 'this' causes new array for each module
-
- this.fbListeners.push(listener);
- },
-
- removeListener: function(listener)
- {
- remove(this.fbListeners, listener); // if this.fbListeners is null, remove is being called with no add
- }
-};
-
-// ************************************************************************************************
-
-
-// ************************************************************************************************
-// Module
-
-/**
- * @module Base class for all modules. Every derived module object must be registered using
- * <code>Firebug.registerModule</code> method. There is always one instance of a module object
- * per browser window.
- * @extends Firebug.Listener
- */
-Firebug.Module = extend(new Firebug.Listener(),
-/** @extend Firebug.Module */
-{
- /**
- * Called when the window is opened.
- */
- initialize: function()
- {
- },
-
- /**
- * Called when the window is closed.
- */
- shutdown: function()
- {
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- /**
- * Called when a new context is created but before the page is loaded.
- */
- initContext: function(context)
- {
- },
-
- /**
- * Called after a context is detached to a separate window;
- */
- reattachContext: function(browser, context)
- {
- },
-
- /**
- * Called when a context is destroyed. Module may store info on persistedState for reloaded pages.
- */
- destroyContext: function(context, persistedState)
- {
- },
-
- // Called when a FF tab is create or activated (user changes FF tab)
- // Called after context is created or with context == null (to abort?)
- showContext: function(browser, context)
- {
- },
-
- /**
- * Called after a context's page gets DOMContentLoaded
- */
- loadedContext: function(context)
- {
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- showPanel: function(browser, panel)
- {
- },
-
- showSidePanel: function(browser, panel)
- {
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- updateOption: function(name, value)
- {
- },
-
- getObjectByURL: function(context, url)
- {
- }
-});
-
-// ************************************************************************************************
-// Panel
-
-/**
- * @panel Base class for all panels. Every derived panel must define a constructor and
- * register with "Firebug.registerPanel" method. An instance of the panel
- * object is created by the framework for each browser tab where Firebug is activated.
- */
-Firebug.Panel =
-{
- name: "HelloWorld",
- title: "Hello World!",
-
- parentPanel: null,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- options: {
- hasCommandLine: false,
- hasStatusBar: false,
- hasToolButtons: false,
-
- // Pre-rendered panels are those included in the skin file (firebug.html)
- isPreRendered: false,
- innerHTMLSync: false
-
- /*
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // To be used by external extensions
- panelHTML: "",
- panelCSS: "",
-
- toolButtonsHTML: ""
- /**/
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- tabNode: null,
- panelNode: null,
- sidePanelNode: null,
- statusBarNode: null,
- toolButtonsNode: null,
-
- panelBarNode: null,
-
- sidePanelBarBoxNode: null,
- sidePanelBarNode: null,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- sidePanelBar: null,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- searchable: false,
- editable: true,
- order: 2147483647,
- statusSeparator: "<",
-
- create: function(context, doc)
- {
- this.hasSidePanel = parentPanelMap.hasOwnProperty(this.name);
-
- this.panelBarNode = $("fbPanelBar1");
- this.sidePanelBarBoxNode = $("fbPanelBar2");
-
- if (this.hasSidePanel)
- {
- this.sidePanelBar = extend({}, PanelBar);
- this.sidePanelBar.create(this);
- }
-
- var options = this.options = extend(Firebug.Panel.options, this.options);
- var panelId = "fb" + this.name;
-
- if (options.isPreRendered)
- {
- this.panelNode = $(panelId);
-
- this.tabNode = $(panelId + "Tab");
- this.tabNode.style.display = "block";
-
- if (options.hasToolButtons)
- {
- this.toolButtonsNode = $(panelId + "Buttons");
- }
-
- if (options.hasStatusBar)
- {
- this.statusBarBox = $("fbStatusBarBox");
- this.statusBarNode = $(panelId + "StatusBar");
- }
- }
- else
- {
- var containerSufix = this.parentPanel ? "2" : "1";
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Create Panel
- var panelNode = this.panelNode = createElement("div", {
- id: panelId,
- className: "fbPanel"
- });
-
- $("fbPanel" + containerSufix).appendChild(panelNode);
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Create Panel Tab
- var tabHTML = '<span class="fbTabL"></span><span class="fbTabText">' +
- this.title + '</span><span class="fbTabR"></span>';
-
- var tabNode = this.tabNode = createElement("a", {
- id: panelId + "Tab",
- className: "fbTab fbHover",
- innerHTML: tabHTML
- });
-
- if (isIE6)
- {
- tabNode.href = "javascript:void(0)";
- }
-
- var panelBarNode = this.parentPanel ?
- Firebug.chrome.getPanel(this.parentPanel).sidePanelBarNode :
- this.panelBarNode;
-
- panelBarNode.appendChild(tabNode);
- tabNode.style.display = "block";
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // create ToolButtons
- if (options.hasToolButtons)
- {
- this.toolButtonsNode = createElement("span", {
- id: panelId + "Buttons",
- className: "fbToolbarButtons"
- });
-
- $("fbToolbarButtons").appendChild(this.toolButtonsNode);
- }
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // create StatusBar
- if (options.hasStatusBar)
- {
- this.statusBarBox = $("fbStatusBarBox");
-
- this.statusBarNode = createElement("span", {
- id: panelId + "StatusBar",
- className: "fbToolbarButtons fbStatusBar"
- });
-
- this.statusBarBox.appendChild(this.statusBarNode);
- }
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // create SidePanel
- }
-
- this.containerNode = this.panelNode.parentNode;
-
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Firebug.Panel.create", this.name);
-
- // xxxpedro contextMenu
- this.onContextMenu = bind(this.onContextMenu, this);
-
- /*
- this.context = context;
- this.document = doc;
-
- this.panelNode = doc.createElement("div");
- this.panelNode.ownerPanel = this;
-
- setClass(this.panelNode, "panelNode panelNode-"+this.name+" contextUID="+context.uid);
- doc.body.appendChild(this.panelNode);
-
- if (FBTrace.DBG_INITIALIZE)
- FBTrace.sysout("firebug.initialize panelNode for "+this.name+"\n");
-
- this.initializeNode(this.panelNode);
- /**/
- },
-
- destroy: function(state) // Panel may store info on state
- {
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Firebug.Panel.destroy", this.name);
-
- if (this.hasSidePanel)
- {
- this.sidePanelBar.destroy();
- this.sidePanelBar = null;
- }
-
- this.options = null;
- this.name = null;
- this.parentPanel = null;
-
- this.tabNode = null;
- this.panelNode = null;
- this.containerNode = null;
-
- this.toolButtonsNode = null;
- this.statusBarBox = null;
- this.statusBarNode = null;
-
- //if (this.panelNode)
- // delete this.panelNode.ownerPanel;
-
- //this.destroyNode();
- },
-
- initialize: function()
- {
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Firebug.Panel.initialize", this.name);
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- if (this.hasSidePanel)
- {
- this.sidePanelBar.initialize();
- }
-
- var options = this.options = extend(Firebug.Panel.options, this.options);
- var panelId = "fb" + this.name;
-
- this.panelNode = $(panelId);
-
- this.tabNode = $(panelId + "Tab");
- this.tabNode.style.display = "block";
-
- if (options.hasStatusBar)
- {
- this.statusBarBox = $("fbStatusBarBox");
- this.statusBarNode = $(panelId + "StatusBar");
- }
-
- if (options.hasToolButtons)
- {
- this.toolButtonsNode = $(panelId + "Buttons");
- }
-
- this.containerNode = this.panelNode.parentNode;
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // restore persistent state
- this.containerNode.scrollTop = this.lastScrollTop;
-
- // xxxpedro contextMenu
- addEvent(this.containerNode, "contextmenu", this.onContextMenu);
-
-
- /// TODO: xxxpedro infoTip Hack
- Firebug.chrome.currentPanel =
- Firebug.chrome.selectedPanel && Firebug.chrome.selectedPanel.sidePanelBar ?
- Firebug.chrome.selectedPanel.sidePanelBar.selectedPanel :
- Firebug.chrome.selectedPanel;
-
- Firebug.showInfoTips = true;
- if (Firebug.InfoTip)
- Firebug.InfoTip.initializeBrowser(Firebug.chrome);
- },
-
- shutdown: function()
- {
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Firebug.Panel.shutdown", this.name);
-
- /// TODO: xxxpedro infoTip Hack
- if (Firebug.InfoTip)
- Firebug.InfoTip.uninitializeBrowser(Firebug.chrome);
-
- if (Firebug.chrome.largeCommandLineVisible)
- Firebug.chrome.hideLargeCommandLine();
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- if (this.hasSidePanel)
- {
- // TODO: xxxpedro firebug1.3a6
- // new PanelBar mechanism will need to call shutdown to hide the panels (so it
- // doesn't appears in other panel's sidePanelBar. Therefore, we need to implement
- // a "remember selected panel" feature in the sidePanelBar
- //this.sidePanelBar.shutdown();
- }
-
- // store persistent state
- this.lastScrollTop = this.containerNode.scrollTop;
-
- // xxxpedro contextMenu
- removeEvent(this.containerNode, "contextmenu", this.onContextMenu);
- },
-
- detach: function(oldChrome, newChrome)
- {
- if (oldChrome && oldChrome.selectedPanel && oldChrome.selectedPanel.name == this.name)
- this.lastScrollTop = oldChrome.selectedPanel.containerNode.scrollTop;
- },
-
- reattach: function(doc)
- {
- if (this.options.innerHTMLSync)
- this.synchronizeUI();
- },
-
- synchronizeUI: function()
- {
- this.containerNode.scrollTop = this.lastScrollTop || 0;
- },
-
- show: function(state)
- {
- var options = this.options;
-
- if (options.hasStatusBar)
- {
- this.statusBarBox.style.display = "inline";
- this.statusBarNode.style.display = "inline";
- }
-
- if (options.hasToolButtons)
- {
- this.toolButtonsNode.style.display = "inline";
- }
-
- this.panelNode.style.display = "block";
-
- this.visible = true;
-
- if (!this.parentPanel)
- Firebug.chrome.layout(this);
- },
-
- hide: function(state)
- {
- var options = this.options;
-
- if (options.hasStatusBar)
- {
- this.statusBarBox.style.display = "none";
- this.statusBarNode.style.display = "none";
- }
-
- if (options.hasToolButtons)
- {
- this.toolButtonsNode.style.display = "none";
- }
-
- this.panelNode.style.display = "none";
-
- this.visible = false;
- },
-
- watchWindow: function(win)
- {
- },
-
- unwatchWindow: function(win)
- {
- },
-
- updateOption: function(name, value)
- {
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- /**
- * Toolbar helpers
- */
- showToolbarButtons: function(buttonsId, show)
- {
- try
- {
- if (!this.context.browser) // XXXjjb this is bug. Somehow the panel context is not FirebugContext.
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("firebug.Panel showToolbarButtons this.context has no browser, this:", this);
-
- return;
- }
- var buttons = this.context.browser.chrome.$(buttonsId);
- if (buttons)
- collapse(buttons, show ? "false" : "true");
- }
- catch (exc)
- {
- if (FBTrace.DBG_ERRORS)
- {
- FBTrace.dumpProperties("firebug.Panel showToolbarButtons FAILS", exc);
- if (!this.context.browser)FBTrace.dumpStack("firebug.Panel showToolbarButtons no browser");
- }
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- /**
- * Returns a number indicating the view's ability to inspect the object.
- *
- * Zero means not supported, and higher numbers indicate specificity.
- */
- supportsObject: function(object)
- {
- return 0;
- },
-
- hasObject: function(object) // beyond type testing, is this object selectable?
- {
- return false;
- },
-
- select: function(object, forceUpdate)
- {
- if (!object)
- object = this.getDefaultSelection(this.context);
-
- if(FBTrace.DBG_PANELS)
- FBTrace.sysout("firebug.select "+this.name+" forceUpdate: "+forceUpdate+" "+object+((object==this.selection)?"==":"!=")+this.selection);
-
- if (forceUpdate || object != this.selection)
- {
- this.selection = object;
- this.updateSelection(object);
-
- // TODO: xxxpedro
- // XXXjoe This is kind of cheating, but, feh.
- //Firebug.chrome.onPanelSelect(object, this);
- //if (uiListeners.length > 0)
- // dispatch(uiListeners, "onPanelSelect", [object, this]); // TODO: make Firebug.chrome a uiListener
- }
- },
-
- updateSelection: function(object)
- {
- },
-
- markChange: function(skipSelf)
- {
- if (this.dependents)
- {
- if (skipSelf)
- {
- for (var i = 0; i < this.dependents.length; ++i)
- {
- var panelName = this.dependents[i];
- if (panelName != this.name)
- this.context.invalidatePanels(panelName);
- }
- }
- else
- this.context.invalidatePanels.apply(this.context, this.dependents);
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- startInspecting: function()
- {
- },
-
- stopInspecting: function(object, cancelled)
- {
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- search: function(text, reverse)
- {
- },
-
- /**
- * Retrieves the search options that this modules supports.
- * This is used by the search UI to present the proper options.
- */
- getSearchOptionsMenuItems: function()
- {
- return [
- Firebug.Search.searchOptionMenu("search.Case Sensitive", "searchCaseSensitive")
- ];
- },
-
- /**
- * Navigates to the next document whose match parameter returns true.
- */
- navigateToNextDocument: function(match, reverse)
- {
- // This is an approximation of the UI that is displayed by the location
- // selector. This should be close enough, although it may be better
- // to simply generate the sorted list within the module, rather than
- // sorting within the UI.
- var self = this;
- function compare(a, b) {
- var locA = self.getObjectDescription(a);
- var locB = self.getObjectDescription(b);
- if(locA.path > locB.path)
- return 1;
- if(locA.path < locB.path)
- return -1;
- if(locA.name > locB.name)
- return 1;
- if(locA.name < locB.name)
- return -1;
- return 0;
- }
- var allLocs = this.getLocationList().sort(compare);
- for (var curPos = 0; curPos < allLocs.length && allLocs[curPos] != this.location; curPos++);
-
- function transformIndex(index) {
- if (reverse) {
- // For the reverse case we need to implement wrap around.
- var intermediate = curPos - index - 1;
- return (intermediate < 0 ? allLocs.length : 0) + intermediate;
- } else {
- return (curPos + index + 1) % allLocs.length;
- }
- };
-
- for (var next = 0; next < allLocs.length - 1; next++)
- {
- var object = allLocs[transformIndex(next)];
-
- if (match(object))
- {
- this.navigate(object);
- return object;
- }
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- // Called when "Options" clicked. Return array of
- // {label: 'name', nol10n: true, type: "checkbox", checked: <value>, command:function to set <value>}
- getOptionsMenuItems: function()
- {
- return null;
- },
-
- /*
- * Called by chrome.onContextMenu to build the context menu when this panel has focus.
- * See also FirebugRep for a similar function also called by onContextMenu
- * Extensions may monkey patch and chain off this call
- * @param object: the 'realObject', a model value, eg a DOM property
- * @param target: the HTML element clicked on.
- * @return an array of menu items.
- */
- getContextMenuItems: function(object, target)
- {
- return [];
- },
-
- getBreakOnMenuItems: function()
- {
- return [];
- },
-
- getEditor: function(target, value)
- {
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- getDefaultSelection: function()
- {
- return null;
- },
-
- browseObject: function(object)
- {
- },
-
- getPopupObject: function(target)
- {
- return Firebug.getRepObject(target);
- },
-
- getTooltipObject: function(target)
- {
- return Firebug.getRepObject(target);
- },
-
- showInfoTip: function(infoTip, x, y)
- {
-
- },
-
- getObjectPath: function(object)
- {
- return null;
- },
-
- // An array of objects that can be passed to getObjectLocation.
- // The list of things a panel can show, eg sourceFiles.
- // Only shown if panel.location defined and supportsObject true
- getLocationList: function()
- {
- return null;
- },
-
- getDefaultLocation: function()
- {
- return null;
- },
-
- getObjectLocation: function(object)
- {
- return "";
- },
-
- // Text for the location list menu eg script panel source file list
- // return.path: group/category label, return.name: item label
- getObjectDescription: function(object)
- {
- var url = this.getObjectLocation(object);
- return FBL.splitURLBase(url);
- },
-
- /*
- * UI signal that a tab needs attention, eg Script panel is currently stopped on a breakpoint
- * @param: show boolean, true turns on.
- */
- highlight: function(show)
- {
- var tab = this.getTab();
- if (!tab)
- return;
-
- if (show)
- tab.setAttribute("highlight", "true");
- else
- tab.removeAttribute("highlight");
- },
-
- getTab: function()
- {
- var chrome = Firebug.chrome;
-
- var tab = chrome.$("fbPanelBar2").getTab(this.name);
- if (!tab)
- tab = chrome.$("fbPanelBar1").getTab(this.name);
- return tab;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Support for Break On Next
-
- /**
- * Called by the framework when the user clicks on the Break On Next button.
- * @param {Boolean} armed Set to true if the Break On Next feature is
- * to be armed for action and set to false if the Break On Next should be disarmed.
- * If 'armed' is true, then the next call to shouldBreakOnNext should be |true|.
- */
- breakOnNext: function(armed)
- {
- },
-
- /**
- * Called when a panel is selected/displayed. The method should return true
- * if the Break On Next feature is currently armed for this panel.
- */
- shouldBreakOnNext: function()
- {
- return false;
- },
-
- /**
- * Returns labels for Break On Next tooltip (one for enabled and one for disabled state).
- * @param {Boolean} enabled Set to true if the Break On Next feature is
- * currently activated for this panel.
- */
- getBreakOnNextTooltip: function(enabled)
- {
- return null;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- // xxxpedro contextMenu
- onContextMenu: function(event)
- {
- if (!this.getContextMenuItems)
- return;
-
- cancelEvent(event, true);
-
- var target = event.target || event.srcElement;
-
- var menu = this.getContextMenuItems(this.selection, target);
- if (!menu)
- return;
-
- var contextMenu = new Menu(
- {
- id: "fbPanelContextMenu",
-
- items: menu
- });
-
- contextMenu.show(event.clientX, event.clientY);
-
- return true;
-
- /*
- // TODO: xxxpedro move code to somewhere. code to get cross-browser
- // window to screen coordinates
- var box = Firebug.browser.getElementPosition(Firebug.chrome.node);
-
- var screenY = 0;
-
- // Firefox
- if (typeof window.mozInnerScreenY != "undefined")
- {
- screenY = window.mozInnerScreenY;
- }
- // Chrome
- else if (typeof window.innerHeight != "undefined")
- {
- screenY = window.outerHeight - window.innerHeight;
- }
- // IE
- else if (typeof window.screenTop != "undefined")
- {
- screenY = window.screenTop;
- }
-
- contextMenu.show(event.screenX-box.left, event.screenY-screenY-box.top);
- /**/
- }
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-/**
- * MeasureBox
- * To get pixels size.width and size.height:
- * <ul><li> this.startMeasuring(view); </li>
- * <li> var size = this.measureText(lineNoCharsSpacer); </li>
- * <li> this.stopMeasuring(); </li>
- * </ul>
- *
- * @namespace
- */
-Firebug.MeasureBox =
-{
- startMeasuring: function(target)
- {
- if (!this.measureBox)
- {
- this.measureBox = target.ownerDocument.createElement("span");
- this.measureBox.className = "measureBox";
- }
-
- copyTextStyles(target, this.measureBox);
- target.ownerDocument.body.appendChild(this.measureBox);
- },
-
- getMeasuringElement: function()
- {
- return this.measureBox;
- },
-
- measureText: function(value)
- {
- this.measureBox.innerHTML = value ? escapeForSourceLine(value) : "m";
- return {width: this.measureBox.offsetWidth, height: this.measureBox.offsetHeight-1};
- },
-
- measureInputText: function(value)
- {
- value = value ? escapeForTextNode(value) : "m";
- if (!Firebug.showTextNodesWithWhitespace)
- value = value.replace(/\t/g,'mmmmmm').replace(/\ /g,'m');
- this.measureBox.innerHTML = value;
- return {width: this.measureBox.offsetWidth, height: this.measureBox.offsetHeight-1};
- },
-
- getBox: function(target)
- {
- var style = this.measureBox.ownerDocument.defaultView.getComputedStyle(this.measureBox, "");
- var box = getBoxFromStyles(style, this.measureBox);
- return box;
- },
-
- stopMeasuring: function()
- {
- this.measureBox.parentNode.removeChild(this.measureBox);
- }
-};
-
-
-// ************************************************************************************************
-if (FBL.domplate) Firebug.Rep = domplate(
-{
- className: "",
- inspectable: true,
-
- supportsObject: function(object, type)
- {
- return false;
- },
-
- inspectObject: function(object, context)
- {
- Firebug.chrome.select(object);
- },
-
- browseObject: function(object, context)
- {
- },
-
- persistObject: function(object, context)
- {
- },
-
- getRealObject: function(object, context)
- {
- return object;
- },
-
- getTitle: function(object)
- {
- var label = safeToString(object);
-
- var re = /\[object (.*?)\]/;
- var m = re.exec(label);
-
- ///return m ? m[1] : label;
-
- // if the label is in the "[object TYPE]" format return its type
- if (m)
- {
- return m[1];
- }
- // if it is IE we need to handle some special cases
- else if (
- // safeToString() fails to recognize some objects in IE
- isIE &&
- // safeToString() returns "[object]" for some objects like window.Image
- (label == "[object]" ||
- // safeToString() returns undefined for some objects like window.clientInformation
- typeof object == "object" && typeof label == "undefined")
- )
- {
- return "Object";
- }
- else
- {
- return label;
- }
- },
-
- getTooltip: function(object)
- {
- return null;
- },
-
- getContextMenuItems: function(object, target, context)
- {
- return [];
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Convenience for domplates
-
- STR: function(name)
- {
- return $STR(name);
- },
-
- cropString: function(text)
- {
- return cropString(text);
- },
-
- cropMultipleLines: function(text, limit)
- {
- return cropMultipleLines(text, limit);
- },
-
- toLowerCase: function(text)
- {
- return text ? text.toLowerCase() : text;
- },
-
- plural: function(n)
- {
- return n == 1 ? "" : "s";
- }
-});
-
-// ************************************************************************************************
-
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns( /** @scope s_gui */ function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Controller
-
-/**@namespace*/
-FBL.Controller = {
-
- controllers: null,
- controllerContext: null,
-
- initialize: function(context)
- {
- this.controllers = [];
- this.controllerContext = context || Firebug.chrome;
- },
-
- shutdown: function()
- {
- this.removeControllers();
-
- //this.controllers = null;
- //this.controllerContext = null;
- },
-
- addController: function()
- {
- for (var i=0, arg; arg=arguments[i]; i++)
- {
- // If the first argument is a string, make a selector query
- // within the controller node context
- if (typeof arg[0] == "string")
- {
- arg[0] = $$(arg[0], this.controllerContext);
- }
-
- // bind the handler to the proper context
- var handler = arg[2];
- arg[2] = bind(handler, this);
- // save the original handler as an extra-argument, so we can
- // look for it later, when removing a particular controller
- arg[3] = handler;
-
- this.controllers.push(arg);
- addEvent.apply(this, arg);
- }
- },
-
- removeController: function()
- {
- for (var i=0, arg; arg=arguments[i]; i++)
- {
- for (var j=0, c; c=this.controllers[j]; j++)
- {
- if (arg[0] == c[0] && arg[1] == c[1] && arg[2] == c[3])
- removeEvent.apply(this, c);
- }
- }
- },
-
- removeControllers: function()
- {
- for (var i=0, c; c=this.controllers[i]; i++)
- {
- removeEvent.apply(this, c);
- }
- }
-};
-
-
-// ************************************************************************************************
-// PanelBar
-
-/**@namespace*/
-FBL.PanelBar =
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- panelMap: null,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- selectedPanel: null,
- parentPanelName: null,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- create: function(ownerPanel)
- {
- this.panelMap = {};
- this.ownerPanel = ownerPanel;
-
- if (ownerPanel)
- {
- ownerPanel.sidePanelBarNode = createElement("span");
- ownerPanel.sidePanelBarNode.style.display = "none";
- ownerPanel.sidePanelBarBoxNode.appendChild(ownerPanel.sidePanelBarNode);
- }
-
- var panels = Firebug.panelTypes;
- for (var i=0, p; p=panels[i]; i++)
- {
- if ( // normal Panel of the Chrome's PanelBar
- !ownerPanel && !p.prototype.parentPanel ||
- // Child Panel of the current Panel's SidePanelBar
- ownerPanel && p.prototype.parentPanel &&
- ownerPanel.name == p.prototype.parentPanel)
- {
- this.addPanel(p.prototype.name);
- }
- }
- },
-
- destroy: function()
- {
- PanelBar.shutdown.call(this);
-
- for (var name in this.panelMap)
- {
- this.removePanel(name);
-
- var panel = this.panelMap[name];
- panel.destroy();
-
- this.panelMap[name] = null;
- delete this.panelMap[name];
- }
-
- this.panelMap = null;
- this.ownerPanel = null;
- },
-
- initialize: function()
- {
- if (this.ownerPanel)
- this.ownerPanel.sidePanelBarNode.style.display = "inline";
-
- for(var name in this.panelMap)
- {
- (function(self, name){
-
- // tab click handler
- var onTabClick = function onTabClick()
- {
- self.selectPanel(name);
- return false;
- };
-
- Firebug.chrome.addController([self.panelMap[name].tabNode, "mousedown", onTabClick]);
-
- })(this, name);
- }
- },
-
- shutdown: function()
- {
- var selectedPanel = this.selectedPanel;
-
- if (selectedPanel)
- {
- removeClass(selectedPanel.tabNode, "fbSelectedTab");
- selectedPanel.hide();
- selectedPanel.shutdown();
- }
-
- if (this.ownerPanel)
- this.ownerPanel.sidePanelBarNode.style.display = "none";
-
- this.selectedPanel = null;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- addPanel: function(panelName, parentPanel)
- {
- var PanelType = Firebug.panelTypeMap[panelName];
- var panel = this.panelMap[panelName] = new PanelType();
-
- panel.create();
- },
-
- removePanel: function(panelName)
- {
- var panel = this.panelMap[panelName];
- if (panel.hasOwnProperty(panelName))
- panel.destroy();
- },
-
- selectPanel: function(panelName)
- {
- var selectedPanel = this.selectedPanel;
- var panel = this.panelMap[panelName];
-
- if (panel && selectedPanel != panel)
- {
- if (selectedPanel)
- {
- removeClass(selectedPanel.tabNode, "fbSelectedTab");
- selectedPanel.shutdown();
- selectedPanel.hide();
- }
-
- if (!panel.parentPanel)
- Firebug.context.persistedState.selectedPanelName = panelName;
-
- this.selectedPanel = panel;
-
- setClass(panel.tabNode, "fbSelectedTab");
- panel.show();
- panel.initialize();
- }
- },
-
- getPanel: function(panelName)
- {
- var panel = this.panelMap[panelName];
-
- return panel;
- }
-
-};
-
-//************************************************************************************************
-// Button
-
-/**
- * options.element
- * options.caption
- * options.title
- *
- * options.owner
- * options.className
- * options.pressedClassName
- *
- * options.onPress
- * options.onUnpress
- * options.onClick
- *
- * @class
- * @extends FBL.Controller
- *
- */
-
-FBL.Button = function(options)
-{
- options = options || {};
-
- append(this, options);
-
- this.state = "unpressed";
- this.display = "unpressed";
-
- if (this.element)
- {
- this.container = this.element.parentNode;
- }
- else
- {
- this.shouldDestroy = true;
-
- this.container = this.owner.getPanel().toolButtonsNode;
-
- this.element = createElement("a", {
- className: this.baseClassName + " " + this.className + " fbHover",
- innerHTML: this.caption
- });
-
- if (this.title)
- this.element.title = this.title;
-
- this.container.appendChild(this.element);
- }
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-Button.prototype = extend(Controller,
-/**@extend FBL.Button.prototype*/
-{
- type: "normal",
- caption: "caption",
- title: null,
-
- className: "", // custom class
- baseClassName: "fbButton", // control class
- pressedClassName: "fbBtnPressed", // control pressed class
-
- element: null,
- container: null,
- owner: null,
-
- state: null,
- display: null,
-
- destroy: function()
- {
- this.shutdown();
-
- // only remove if it is a dynamically generated button (not pre-rendered)
- if (this.shouldDestroy)
- this.container.removeChild(this.element);
-
- this.element = null;
- this.container = null;
- this.owner = null;
- },
-
- initialize: function()
- {
- Controller.initialize.apply(this);
-
- var element = this.element;
-
- this.addController([element, "mousedown", this.handlePress]);
-
- if (this.type == "normal")
- this.addController(
- [element, "mouseup", this.handleUnpress],
- [element, "mouseout", this.handleUnpress],
- [element, "click", this.handleClick]
- );
- },
-
- shutdown: function()
- {
- Controller.shutdown.apply(this);
- },
-
- restore: function()
- {
- this.changeState("unpressed");
- },
-
- changeState: function(state)
- {
- this.state = state;
- this.changeDisplay(state);
- },
-
- changeDisplay: function(display)
- {
- if (display != this.display)
- {
- if (display == "pressed")
- {
- setClass(this.element, this.pressedClassName);
- }
- else if (display == "unpressed")
- {
- removeClass(this.element, this.pressedClassName);
- }
- this.display = display;
- }
- },
-
- handlePress: function(event)
- {
- cancelEvent(event, true);
-
- if (this.type == "normal")
- {
- this.changeDisplay("pressed");
- this.beforeClick = true;
- }
- else if (this.type == "toggle")
- {
- if (this.state == "pressed")
- {
- this.changeState("unpressed");
-
- if (this.onUnpress)
- this.onUnpress.apply(this.owner, arguments);
- }
- else
- {
- this.changeState("pressed");
-
- if (this.onPress)
- this.onPress.apply(this.owner, arguments);
- }
-
- if (this.onClick)
- this.onClick.apply(this.owner, arguments);
- }
-
- return false;
- },
-
- handleUnpress: function(event)
- {
- cancelEvent(event, true);
-
- if (this.beforeClick)
- this.changeDisplay("unpressed");
-
- return false;
- },
-
- handleClick: function(event)
- {
- cancelEvent(event, true);
-
- if (this.type == "normal")
- {
- if (this.onClick)
- this.onClick.apply(this.owner);
-
- this.changeState("unpressed");
- }
-
- this.beforeClick = false;
-
- return false;
- }
-});
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-/**
- * @class
- * @extends FBL.Button
- */
-FBL.IconButton = function()
-{
- Button.apply(this, arguments);
-};
-
-IconButton.prototype = extend(Button.prototype,
-/**@extend FBL.IconButton.prototype*/
-{
- baseClassName: "fbIconButton",
- pressedClassName: "fbIconPressed"
-});
-
-
-//************************************************************************************************
-// Menu
-
-var menuItemProps = {"class": "$item.className", type: "$item.type", value: "$item.value",
- _command: "$item.command"};
-
-if (isIE6)
- menuItemProps.href = "javascript:void(0)";
-
-// Allow GUI to be loaded even when Domplate module is not installed.
-if (FBL.domplate)
-var MenuPlate = domplate(Firebug.Rep,
-{
- tag:
- DIV({"class": "fbMenu fbShadow"},
- DIV({"class": "fbMenuContent fbShadowContent"},
- FOR("item", "$object.items|memberIterator",
- TAG("$item.tag", {item: "$item"})
- )
- )
- ),
-
- itemTag:
- A(menuItemProps,
- "$item.label"
- ),
-
- checkBoxTag:
- A(extend(menuItemProps, {checked : "$item.checked"}),
-
- "$item.label"
- ),
-
- radioButtonTag:
- A(extend(menuItemProps, {selected : "$item.selected"}),
-
- "$item.label"
- ),
-
- groupTag:
- A(extend(menuItemProps, {child: "$item.child"}),
- "$item.label"
- ),
-
- shortcutTag:
- A(menuItemProps,
- "$item.label",
- SPAN({"class": "fbMenuShortcutKey"},
- "$item.key"
- )
- ),
-
- separatorTag:
- SPAN({"class": "fbMenuSeparator"}),
-
- memberIterator: function(items)
- {
- var result = [];
-
- for (var i=0, length=items.length; i<length; i++)
- {
- var item = items[i];
-
- // separator representation
- if (typeof item == "string" && item.indexOf("-") == 0)
- {
- result.push({tag: this.separatorTag});
- continue;
- }
-
- item = extend(item, {});
-
- item.type = item.type || "";
- item.value = item.value || "";
-
- var type = item.type;
-
- // default item representation
- item.tag = this.itemTag;
-
- var className = item.className || "";
-
- className += "fbMenuOption fbHover ";
-
- // specific representations
- if (type == "checkbox")
- {
- className += "fbMenuCheckBox ";
- item.tag = this.checkBoxTag;
- }
- else if (type == "radiobutton")
- {
- className += "fbMenuRadioButton ";
- item.tag = this.radioButtonTag;
- }
- else if (type == "group")
- {
- className += "fbMenuGroup ";
- item.tag = this.groupTag;
- }
- else if (type == "shortcut")
- {
- className += "fbMenuShortcut ";
- item.tag = this.shortcutTag;
- }
-
- if (item.checked)
- className += "fbMenuChecked ";
- else if (item.selected)
- className += "fbMenuRadioSelected ";
-
- if (item.disabled)
- className += "fbMenuDisabled ";
-
- item.className = className;
-
- item.label = $STR(item.label);
-
- result.push(item);
- }
-
- return result;
- }
-});
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-/**
- * options
- * options.element
- * options.id
- * options.items
- *
- * item.label
- * item.className
- * item.type
- * item.value
- * item.disabled
- * item.checked
- * item.selected
- * item.command
- * item.child
- *
- *
- * @class
- * @extends FBL.Controller
- *
- */
-FBL.Menu = function(options)
-{
- // if element is not pre-rendered, we must render it now
- if (!options.element)
- {
- if (options.getItems)
- options.items = options.getItems();
-
- options.element = MenuPlate.tag.append(
- {object: options},
- getElementByClass(Firebug.chrome.document, "fbBody"),
- MenuPlate
- );
- }
-
- // extend itself with the provided options
- append(this, options);
-
- if (typeof this.element == "string")
- {
- this.id = this.element;
- this.element = $(this.id);
- }
- else if (this.id)
- {
- this.element.id = this.id;
- }
-
- this.element.firebugIgnore = true;
- this.elementStyle = this.element.style;
-
- this.isVisible = false;
-
- this.handleMouseDown = bind(this.handleMouseDown, this);
- this.handleMouseOver = bind(this.handleMouseOver, this);
- this.handleMouseOut = bind(this.handleMouseOut, this);
-
- this.handleWindowMouseDown = bind(this.handleWindowMouseDown, this);
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var menuMap = {};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-Menu.prototype = extend(Controller,
-/**@extend FBL.Menu.prototype*/
-{
- destroy: function()
- {
- //if (this.element) console.log("destroy", this.element.id);
-
- this.hide();
-
- // if it is a childMenu, remove its reference from the parentMenu
- if (this.parentMenu)
- this.parentMenu.childMenu = null;
-
- // remove the element from the document
- this.element.parentNode.removeChild(this.element);
-
- // clear references
- this.element = null;
- this.elementStyle = null;
- this.parentMenu = null;
- this.parentTarget = null;
- },
-
- initialize: function()
- {
- Controller.initialize.call(this);
-
- this.addController(
- [this.element, "mousedown", this.handleMouseDown],
- [this.element, "mouseover", this.handleMouseOver]
- );
- },
-
- shutdown: function()
- {
- Controller.shutdown.call(this);
- },
-
- show: function(x, y)
- {
- this.initialize();
-
- if (this.isVisible) return;
-
- //console.log("show", this.element.id);
-
- x = x || 0;
- y = y || 0;
-
- if (this.parentMenu)
- {
- var oldChildMenu = this.parentMenu.childMenu;
- if (oldChildMenu && oldChildMenu != this)
- {
- oldChildMenu.destroy();
- }
-
- this.parentMenu.childMenu = this;
- }
- else
- addEvent(Firebug.chrome.document, "mousedown", this.handleWindowMouseDown);
-
- this.elementStyle.display = "block";
- this.elementStyle.visibility = "hidden";
-
- var size = Firebug.chrome.getSize();
-
- x = Math.min(x, size.width - this.element.clientWidth - 10);
- x = Math.max(x, 0);
-
- y = Math.min(y, size.height - this.element.clientHeight - 10);
- y = Math.max(y, 0);
-
- this.elementStyle.left = x + "px";
- this.elementStyle.top = y + "px";
-
- this.elementStyle.visibility = "visible";
-
- this.isVisible = true;
-
- if (isFunction(this.onShow))
- this.onShow.apply(this, arguments);
- },
-
- hide: function()
- {
- this.clearHideTimeout();
- this.clearShowChildTimeout();
-
- if (!this.isVisible) return;
-
- //console.log("hide", this.element.id);
-
- this.elementStyle.display = "none";
-
- if(this.childMenu)
- {
- this.childMenu.destroy();
- this.childMenu = null;
- }
-
- if(this.parentTarget)
- removeClass(this.parentTarget, "fbMenuGroupSelected");
-
- this.isVisible = false;
-
- this.shutdown();
-
- if (isFunction(this.onHide))
- this.onHide.apply(this, arguments);
- },
-
- showChildMenu: function(target)
- {
- var id = target.getAttribute("child");
-
- var parent = this;
- var target = target;
-
- this.showChildTimeout = Firebug.chrome.window.setTimeout(function(){
-
- //if (!parent.isVisible) return;
-
- var box = Firebug.chrome.getElementBox(target);
-
- var childMenuObject = menuMap.hasOwnProperty(id) ?
- menuMap[id] : {element: $(id)};
-
- var childMenu = new Menu(extend(childMenuObject,
- {
- parentMenu: parent,
- parentTarget: target
- }));
-
- var offsetLeft = isIE6 ? -1 : -6; // IE6 problem with fixed position
- childMenu.show(box.left + box.width + offsetLeft, box.top -6);
- setClass(target, "fbMenuGroupSelected");
-
- },350);
- },
-
- clearHideTimeout: function()
- {
- if (this.hideTimeout)
- {
- Firebug.chrome.window.clearTimeout(this.hideTimeout);
- delete this.hideTimeout;
- }
- },
-
- clearShowChildTimeout: function()
- {
- if(this.showChildTimeout)
- {
- Firebug.chrome.window.clearTimeout(this.showChildTimeout);
- this.showChildTimeout = null;
- }
- },
-
- handleMouseDown: function(event)
- {
- cancelEvent(event, true);
-
- var topParent = this;
- while (topParent.parentMenu)
- topParent = topParent.parentMenu;
-
- var target = event.target || event.srcElement;
-
- target = getAncestorByClass(target, "fbMenuOption");
-
- if(!target || hasClass(target, "fbMenuGroup"))
- return false;
-
- if (target && !hasClass(target, "fbMenuDisabled"))
- {
- var type = target.getAttribute("type");
-
- if (type == "checkbox")
- {
- var checked = target.getAttribute("checked");
- var value = target.getAttribute("value");
- var wasChecked = hasClass(target, "fbMenuChecked");
-
- if (wasChecked)
- {
- removeClass(target, "fbMenuChecked");
- target.setAttribute("checked", "");
- }
- else
- {
- setClass(target, "fbMenuChecked");
- target.setAttribute("checked", "true");
- }
-
- if (isFunction(this.onCheck))
- this.onCheck.call(this, target, value, !wasChecked);
- }
-
- if (type == "radiobutton")
- {
- var selectedRadios = getElementsByClass(target.parentNode, "fbMenuRadioSelected");
-
- var group = target.getAttribute("group");
-
- for (var i = 0, length = selectedRadios.length; i < length; i++)
- {
- radio = selectedRadios[i];
-
- if (radio.getAttribute("group") == group)
- {
- removeClass(radio, "fbMenuRadioSelected");
- radio.setAttribute("selected", "");
- }
- }
-
- setClass(target, "fbMenuRadioSelected");
- target.setAttribute("selected", "true");
- }
-
- var handler = null;
-
- // target.command can be a function or a string.
- var cmd = target.command;
-
- // If it is a function it will be used as the handler
- if (isFunction(cmd))
- handler = cmd;
- // If it is a string it the property of the current menu object
- // will be used as the handler
- else if (typeof cmd == "string")
- handler = this[cmd];
-
- var closeMenu = true;
-
- if (handler)
- closeMenu = handler.call(this, target) !== false;
-
- if (closeMenu)
- topParent.hide();
- }
-
- return false;
- },
-
- handleWindowMouseDown: function(event)
- {
- //console.log("handleWindowMouseDown");
-
- var target = event.target || event.srcElement;
-
- target = getAncestorByClass(target, "fbMenu");
-
- if (!target)
- {
- removeEvent(Firebug.chrome.document, "mousedown", this.handleWindowMouseDown);
- this.hide();
- }
- },
-
- handleMouseOver: function(event)
- {
- //console.log("handleMouseOver", this.element.id);
-
- this.clearHideTimeout();
- this.clearShowChildTimeout();
-
- var target = event.target || event.srcElement;
-
- target = getAncestorByClass(target, "fbMenuOption");
-
- if(!target)
- return;
-
- var childMenu = this.childMenu;
- if(childMenu)
- {
- removeClass(childMenu.parentTarget, "fbMenuGroupSelected");
-
- if (childMenu.parentTarget != target && childMenu.isVisible)
- {
- childMenu.clearHideTimeout();
- childMenu.hideTimeout = Firebug.chrome.window.setTimeout(function(){
- childMenu.destroy();
- },300);
- }
- }
-
- if(hasClass(target, "fbMenuGroup"))
- {
- this.showChildMenu(target);
- }
- }
-});
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-append(Menu,
-/**@extend FBL.Menu*/
-{
- register: function(object)
- {
- menuMap[object.id] = object;
- },
-
- check: function(element)
- {
- setClass(element, "fbMenuChecked");
- element.setAttribute("checked", "true");
- },
-
- uncheck: function(element)
- {
- removeClass(element, "fbMenuChecked");
- element.setAttribute("checked", "");
- },
-
- disable: function(element)
- {
- setClass(element, "fbMenuDisabled");
- },
-
- enable: function(element)
- {
- removeClass(element, "fbMenuDisabled");
- }
-});
-
-
-//************************************************************************************************
-// Status Bar
-
-/**@class*/
-function StatusBar(){};
-
-StatusBar.prototype = extend(Controller, {
-
-});
-
-// ************************************************************************************************
-
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns( /**@scope s_context*/ function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Globals
-
-var refreshDelay = 300;
-
-// Opera and some versions of webkit returns the wrong value of document.elementFromPoint()
-// function, without taking into account the scroll position. Safari 4 (webkit/531.21.8)
-// still have this issue. Google Chrome 4 (webkit/532.5) does not. So, we're assuming this
-// issue was fixed in the 532 version
-var shouldFixElementFromPoint = isOpera || isSafari && browserVersion < "532";
-
-var evalError = "___firebug_evaluation_error___";
-var pixelsPerInch;
-
-var resetStyle = "margin:0; padding:0; border:0; position:absolute; overflow:hidden; display:block;";
-var offscreenStyle = resetStyle + "top:-1234px; left:-1234px;";
-
-
-// ************************************************************************************************
-// Context
-
-/** @class */
-FBL.Context = function(win)
-{
- this.window = win.window;
- this.document = win.document;
-
- this.browser = Env.browser;
-
- // Some windows in IE, like iframe, doesn't have the eval() method
- if (isIE && !this.window.eval)
- {
- // But after executing the following line the method magically appears!
- this.window.execScript("null");
- // Just to make sure the "magic" really happened
- if (!this.window.eval)
- throw new Error("Firebug Error: eval() method not found in this window");
- }
-
- // Create a new "black-box" eval() method that runs in the global namespace
- // of the context window, without exposing the local variables declared
- // by the function that calls it
- this.eval = this.window.eval("new Function('" +
- "try{ return window.eval.apply(window,arguments) }catch(E){ E."+evalError+"=true; return E }" +
- "')");
-};
-
-FBL.Context.prototype =
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // partial-port of Firebug tabContext.js
-
- browser: null,
- loaded: true,
-
- setTimeout: function(fn, delay)
- {
- var win = this.window;
-
- if (win.setTimeout == this.setTimeout)
- throw new Error("setTimeout recursion");
-
- var timeout = win.setTimeout.apply ? // IE doesn't have apply method on setTimeout
- win.setTimeout.apply(win, arguments) :
- win.setTimeout(fn, delay);
-
- if (!this.timeouts)
- this.timeouts = {};
-
- this.timeouts[timeout] = 1;
-
- return timeout;
- },
-
- clearTimeout: function(timeout)
- {
- clearTimeout(timeout);
-
- if (this.timeouts)
- delete this.timeouts[timeout];
- },
-
- setInterval: function(fn, delay)
- {
- var win = this.window;
-
- var timeout = win.setInterval.apply ? // IE doesn't have apply method on setTimeout
- win.setInterval.apply(win, arguments) :
- win.setInterval(fn, delay);
-
- if (!this.intervals)
- this.intervals = {};
-
- this.intervals[timeout] = 1;
-
- return timeout;
- },
-
- clearInterval: function(timeout)
- {
- clearInterval(timeout);
-
- if (this.intervals)
- delete this.intervals[timeout];
- },
-
- invalidatePanels: function()
- {
- if (!this.invalidPanels)
- this.invalidPanels = {};
-
- for (var i = 0; i < arguments.length; ++i)
- {
- var panelName = arguments[i];
-
- // avoid error. need to create a better getPanel() function as explained below
- if (!Firebug.chrome || !Firebug.chrome.selectedPanel)
- return;
-
- //var panel = this.getPanel(panelName, true);
- //TODO: xxxpedro context how to get all panels using a single function?
- // the current workaround to make the invalidation works is invalidating
- // only sidePanels. There's also a problem with panel name (LowerCase in Firebug Lite)
- var panel = Firebug.chrome.selectedPanel.sidePanelBar ?
- Firebug.chrome.selectedPanel.sidePanelBar.getPanel(panelName, true) :
- null;
-
- if (panel && !panel.noRefresh)
- this.invalidPanels[panelName] = 1;
- }
-
- if (this.refreshTimeout)
- {
- this.clearTimeout(this.refreshTimeout);
- delete this.refreshTimeout;
- }
-
- this.refreshTimeout = this.setTimeout(bindFixed(function()
- {
- var invalids = [];
-
- for (var panelName in this.invalidPanels)
- {
- //var panel = this.getPanel(panelName, true);
- //TODO: xxxpedro context how to get all panels using a single function?
- // the current workaround to make the invalidation works is invalidating
- // only sidePanels. There's also a problem with panel name (LowerCase in Firebug Lite)
- var panel = Firebug.chrome.selectedPanel.sidePanelBar ?
- Firebug.chrome.selectedPanel.sidePanelBar.getPanel(panelName, true) :
- null;
-
- if (panel)
- {
- if (panel.visible && !panel.editing)
- panel.refresh();
- else
- panel.needsRefresh = true;
-
- // If the panel is being edited, we'll keep trying to
- // refresh it until editing is done
- if (panel.editing)
- invalids.push(panelName);
- }
- }
-
- delete this.invalidPanels;
- delete this.refreshTimeout;
-
- // Keep looping until every tab is valid
- if (invalids.length)
- this.invalidatePanels.apply(this, invalids);
- }, this), refreshDelay);
- },
-
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Evalutation Method
-
- /**
- * Evaluates an expression in the current context window.
- *
- * @param {String} expr expression to be evaluated
- *
- * @param {String} context string indicating the global location
- * of the object that will be used as the
- * context. The context is referred in
- * the expression as the "this" keyword.
- * If no context is informed, the "window"
- * context is used.
- *
- * @param {String} api string indicating the global location
- * of the object that will be used as the
- * api of the evaluation.
- *
- * @param {Function} errorHandler(message) error handler to be called
- * if the evaluation fails.
- */
- evaluate: function(expr, context, api, errorHandler)
- {
- // the default context is the "window" object. It can be any string that represents
- // a global accessible element as: "my.namespaced.object"
- context = context || "window";
-
- var isObjectLiteral = trim(expr).indexOf("{") == 0,
- cmd,
- result;
-
- // if the context is the "window" object, we don't need a closure
- if (context == "window")
- {
- // If it is an object literal, then wrap the expression with parenthesis so we can
- // capture the return value
- if (isObjectLiteral)
- {
- cmd = api ?
- "with("+api+"){ ("+expr+") }" :
- "(" + expr + ")";
- }
- else
- {
- cmd = api ?
- "with("+api+"){ "+expr+" }" :
- expr;
- }
- }
- else
- {
- cmd = api ?
- // with API and context, no return value
- "(function(arguments){ with(" + api + "){ " +
- expr +
- " } }).call(" + context + ",undefined)"
- :
- // with context only, no return value
- "(function(arguments){ " +
- expr +
- " }).call(" + context + ",undefined)";
- }
-
- result = this.eval(cmd);
-
- if (result && result[evalError])
- {
- var msg = result.name ? (result.name + ": ") : "";
- msg += result.message || result;
-
- if (errorHandler)
- result = errorHandler(msg);
- else
- result = msg;
- }
-
- return result;
- },
-
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Window Methods
-
- getWindowSize: function()
- {
- var width=0, height=0, el;
-
- if (typeof this.window.innerWidth == "number")
- {
- width = this.window.innerWidth;
- height = this.window.innerHeight;
- }
- else if ((el=this.document.documentElement) && (el.clientHeight || el.clientWidth))
- {
- width = el.clientWidth;
- height = el.clientHeight;
- }
- else if ((el=this.document.body) && (el.clientHeight || el.clientWidth))
- {
- width = el.clientWidth;
- height = el.clientHeight;
- }
-
- return {width: width, height: height};
- },
-
- getWindowScrollSize: function()
- {
- var width=0, height=0, el;
-
- // first try the document.documentElement scroll size
- if (!isIEQuiksMode && (el=this.document.documentElement) &&
- (el.scrollHeight || el.scrollWidth))
- {
- width = el.scrollWidth;
- height = el.scrollHeight;
- }
-
- // then we need to check if document.body has a bigger scroll size value
- // because sometimes depending on the browser and the page, the document.body
- // scroll size returns a smaller (and wrong) measure
- if ((el=this.document.body) && (el.scrollHeight || el.scrollWidth) &&
- (el.scrollWidth > width || el.scrollHeight > height))
- {
- width = el.scrollWidth;
- height = el.scrollHeight;
- }
-
- return {width: width, height: height};
- },
-
- getWindowScrollPosition: function()
- {
- var top=0, left=0, el;
-
- if(typeof this.window.pageYOffset == "number")
- {
- top = this.window.pageYOffset;
- left = this.window.pageXOffset;
- }
- else if((el=this.document.body) && (el.scrollTop || el.scrollLeft))
- {
- top = el.scrollTop;
- left = el.scrollLeft;
- }
- else if((el=this.document.documentElement) && (el.scrollTop || el.scrollLeft))
- {
- top = el.scrollTop;
- left = el.scrollLeft;
- }
-
- return {top:top, left:left};
- },
-
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Element Methods
-
- getElementFromPoint: function(x, y)
- {
- if (shouldFixElementFromPoint)
- {
- var scroll = this.getWindowScrollPosition();
- return this.document.elementFromPoint(x + scroll.left, y + scroll.top);
- }
- else
- return this.document.elementFromPoint(x, y);
- },
-
- getElementPosition: function(el)
- {
- var left = 0;
- var top = 0;
-
- do
- {
- left += el.offsetLeft;
- top += el.offsetTop;
- }
- while (el = el.offsetParent);
-
- return {left:left, top:top};
- },
-
- getElementBox: function(el)
- {
- var result = {};
-
- if (el.getBoundingClientRect)
- {
- var rect = el.getBoundingClientRect();
-
- // fix IE problem with offset when not in fullscreen mode
- var offset = isIE ? this.document.body.clientTop || this.document.documentElement.clientTop: 0;
-
- var scroll = this.getWindowScrollPosition();
-
- result.top = Math.round(rect.top - offset + scroll.top);
- result.left = Math.round(rect.left - offset + scroll.left);
- result.height = Math.round(rect.bottom - rect.top);
- result.width = Math.round(rect.right - rect.left);
- }
- else
- {
- var position = this.getElementPosition(el);
-
- result.top = position.top;
- result.left = position.left;
- result.height = el.offsetHeight;
- result.width = el.offsetWidth;
- }
-
- return result;
- },
-
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Measurement Methods
-
- getMeasurement: function(el, name)
- {
- var result = {value: 0, unit: "px"};
-
- var cssValue = this.getStyle(el, name);
-
- if (!cssValue) return result;
- if (cssValue.toLowerCase() == "auto") return result;
-
- var reMeasure = /(\d+\.?\d*)(.*)/;
- var m = cssValue.match(reMeasure);
-
- if (m)
- {
- result.value = m[1]-0;
- result.unit = m[2].toLowerCase();
- }
-
- return result;
- },
-
- getMeasurementInPixels: function(el, name)
- {
- if (!el) return null;
-
- var m = this.getMeasurement(el, name);
- var value = m.value;
- var unit = m.unit;
-
- if (unit == "px")
- return value;
-
- else if (unit == "pt")
- return this.pointsToPixels(name, value);
-
- else if (unit == "em")
- return this.emToPixels(el, value);
-
- else if (unit == "%")
- return this.percentToPixels(el, value);
-
- else if (unit == "ex")
- return this.exToPixels(el, value);
-
- // TODO: add other units. Maybe create a better general way
- // to calculate measurements in different units.
- },
-
- getMeasurementBox1: function(el, name)
- {
- var sufixes = ["Top", "Left", "Bottom", "Right"];
- var result = [];
-
- for(var i=0, sufix; sufix=sufixes[i]; i++)
- result[i] = Math.round(this.getMeasurementInPixels(el, name + sufix));
-
- return {top:result[0], left:result[1], bottom:result[2], right:result[3]};
- },
-
- getMeasurementBox: function(el, name)
- {
- var result = [];
- var sufixes = name == "border" ?
- ["TopWidth", "LeftWidth", "BottomWidth", "RightWidth"] :
- ["Top", "Left", "Bottom", "Right"];
-
- if (isIE)
- {
- var propName, cssValue;
- var autoMargin = null;
-
- for(var i=0, sufix; sufix=sufixes[i]; i++)
- {
- propName = name + sufix;
-
- cssValue = el.currentStyle[propName] || el.style[propName];
-
- if (cssValue == "auto")
- {
- if (!autoMargin)
- autoMargin = this.getCSSAutoMarginBox(el);
-
- result[i] = autoMargin[sufix.toLowerCase()];
- }
- else
- result[i] = this.getMeasurementInPixels(el, propName);
-
- }
-
- }
- else
- {
- for(var i=0, sufix; sufix=sufixes[i]; i++)
- result[i] = this.getMeasurementInPixels(el, name + sufix);
- }
-
- return {top:result[0], left:result[1], bottom:result[2], right:result[3]};
- },
-
- getCSSAutoMarginBox: function(el)
- {
- if (isIE && " meta title input script link a ".indexOf(" "+el.nodeName.toLowerCase()+" ") != -1)
- return {top:0, left:0, bottom:0, right:0};
- /**/
-
- if (isIE && " h1 h2 h3 h4 h5 h6 h7 ul p ".indexOf(" "+el.nodeName.toLowerCase()+" ") == -1)
- return {top:0, left:0, bottom:0, right:0};
- /**/
-
- var offsetTop = 0;
- if (false && isIEStantandMode)
- {
- var scrollSize = Firebug.browser.getWindowScrollSize();
- offsetTop = scrollSize.height;
- }
-
- var box = this.document.createElement("div");
- //box.style.cssText = "margin:0; padding:1px; border: 0; position:static; overflow:hidden; visibility: hidden;";
- box.style.cssText = "margin:0; padding:1px; border: 0; visibility: hidden;";
-
- var clone = el.cloneNode(false);
- var text = this.document.createTextNode("&nbsp;");
- clone.appendChild(text);
-
- box.appendChild(clone);
-
- this.document.body.appendChild(box);
-
- var marginTop = clone.offsetTop - box.offsetTop - 1;
- var marginBottom = box.offsetHeight - clone.offsetHeight - 2 - marginTop;
-
- var marginLeft = clone.offsetLeft - box.offsetLeft - 1;
- var marginRight = box.offsetWidth - clone.offsetWidth - 2 - marginLeft;
-
- this.document.body.removeChild(box);
-
- return {top:marginTop+offsetTop, left:marginLeft, bottom:marginBottom-offsetTop, right:marginRight};
- },
-
- getFontSizeInPixels: function(el)
- {
- var size = this.getMeasurement(el, "fontSize");
-
- if (size.unit == "px") return size.value;
-
- // get font size, the dirty way
- var computeDirtyFontSize = function(el, calibration)
- {
- var div = this.document.createElement("div");
- var divStyle = offscreenStyle;
-
- if (calibration)
- divStyle += " font-size:"+calibration+"px;";
-
- div.style.cssText = divStyle;
- div.innerHTML = "A";
- el.appendChild(div);
-
- var value = div.offsetHeight;
- el.removeChild(div);
- return value;
- };
-
- /*
- var calibrationBase = 200;
- var calibrationValue = computeDirtyFontSize(el, calibrationBase);
- var rate = calibrationBase / calibrationValue;
- /**/
-
- // the "dirty technique" fails in some environments, so we're using a static value
- // based in some tests.
- var rate = 200 / 225;
-
- var value = computeDirtyFontSize(el);
-
- return value * rate;
- },
-
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Unit Funtions
-
- pointsToPixels: function(name, value, returnFloat)
- {
- var axis = /Top$|Bottom$/.test(name) ? "y" : "x";
-
- var result = value * pixelsPerInch[axis] / 72;
-
- return returnFloat ? result : Math.round(result);
- },
-
- emToPixels: function(el, value)
- {
- if (!el) return null;
-
- var fontSize = this.getFontSizeInPixels(el);
-
- return Math.round(value * fontSize);
- },
-
- exToPixels: function(el, value)
- {
- if (!el) return null;
-
- // get ex value, the dirty way
- var div = this.document.createElement("div");
- div.style.cssText = offscreenStyle + "width:"+value + "ex;";
-
- el.appendChild(div);
- var value = div.offsetWidth;
- el.removeChild(div);
-
- return value;
- },
-
- percentToPixels: function(el, value)
- {
- if (!el) return null;
-
- // get % value, the dirty way
- var div = this.document.createElement("div");
- div.style.cssText = offscreenStyle + "width:"+value + "%;";
-
- el.appendChild(div);
- var value = div.offsetWidth;
- el.removeChild(div);
-
- return value;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- getStyle: isIE ? function(el, name)
- {
- return el.currentStyle[name] || el.style[name] || undefined;
- }
- : function(el, name)
- {
- return this.document.defaultView.getComputedStyle(el,null)[name]
- || el.style[name] || undefined;
- }
-
-};
-
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns( /**@scope ns-chrome*/ function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Globals
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// Window Options
-
-var WindowDefaultOptions =
- {
- type: "frame",
- id: "FirebugUI"
- //height: 350 // obsolete
- },
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// Instantiated objects
-
- commandLine,
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// Interface Elements Cache
-
- fbTop,
- fbContent,
- fbContentStyle,
- fbBottom,
- fbBtnInspect,
-
- fbToolbar,
-
- fbPanelBox1,
- fbPanelBox1Style,
- fbPanelBox2,
- fbPanelBox2Style,
- fbPanelBar2Box,
- fbPanelBar2BoxStyle,
-
- fbHSplitter,
- fbVSplitter,
- fbVSplitterStyle,
-
- fbPanel1,
- fbPanel1Style,
- fbPanel2,
- fbPanel2Style,
-
- fbConsole,
- fbConsoleStyle,
- fbHTML,
-
- fbCommandLine,
- fbLargeCommandLine,
- fbLargeCommandButtons,
-
-//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// Cached size values
-
- topHeight,
- topPartialHeight,
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- chromeRedrawSkipRate = isIE ? 75 : isOpera ? 80 : 75,
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- lastSelectedPanelName,
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- focusCommandLineState = 0,
- lastFocusedPanelName,
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- lastHSplitterMouseMove = 0,
- onHSplitterMouseMoveBuffer = null,
- onHSplitterMouseMoveTimer = null,
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- lastVSplitterMouseMove = 0;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-
-// ************************************************************************************************
-// FirebugChrome
-
-FBL.defaultPersistedState =
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- isOpen: false,
- height: 300,
- sidePanelWidth: 350,
-
- selectedPanelName: "Console",
- selectedHTMLElementId: null,
-
- htmlSelectionStack: []
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-};
-
-/**@namespace*/
-FBL.FirebugChrome =
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- //isOpen: false,
- //height: 300,
- //sidePanelWidth: 350,
-
- //selectedPanelName: "Console",
- //selectedHTMLElementId: null,
-
- chromeMap: {},
-
- htmlSelectionStack: [],
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- create: function()
- {
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("FirebugChrome.create", "creating chrome window");
-
- createChromeWindow();
- },
-
- initialize: function()
- {
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("FirebugChrome.initialize", "initializing chrome window");
-
- if (Env.chrome.type == "frame" || Env.chrome.type == "div")
- ChromeMini.create(Env.chrome);
-
- var chrome = Firebug.chrome = new Chrome(Env.chrome);
- FirebugChrome.chromeMap[chrome.type] = chrome;
-
- addGlobalEvent("keydown", onGlobalKeyDown);
-
- if (Env.Options.enablePersistent && chrome.type == "popup")
- {
- // TODO: xxxpedro persist - revise chrome synchronization when in persistent mode
- var frame = FirebugChrome.chromeMap.frame;
- if (frame)
- frame.close();
-
- //chrome.reattach(frame, chrome);
- //TODO: xxxpedro persist synchronize?
- chrome.initialize();
- }
- },
-
- clone: function(FBChrome)
- {
- for (var name in FBChrome)
- {
- var prop = FBChrome[name];
- if (FBChrome.hasOwnProperty(name) && !isFunction(prop))
- {
- this[name] = prop;
- }
- }
- }
-};
-
-
-
-// ************************************************************************************************
-// Chrome Window Creation
-
-var createChromeWindow = function(options)
-{
- options = extend(WindowDefaultOptions, options || {});
-
- //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Locals
-
- var browserWin = Env.browser.window;
- var browserContext = new Context(browserWin);
- var prefs = Store.get("FirebugLite");
- var persistedState = prefs && prefs.persistedState || defaultPersistedState;
-
- var chrome = {},
-
- context = options.context || Env.browser,
-
- type = chrome.type = Env.Options.enablePersistent ?
- "popup" :
- options.type,
-
- isChromeFrame = type == "frame",
-
- useLocalSkin = Env.useLocalSkin,
-
- url = useLocalSkin ?
- Env.Location.skin :
- "about:blank",
-
- // document.body not available in XML+XSL documents in Firefox
- body = context.document.getElementsByTagName("body")[0],
-
- formatNode = function(node)
- {
- if (!Env.isDebugMode)
- {
- node.firebugIgnore = true;
- }
-
- var browserWinSize = browserContext.getWindowSize();
- var height = persistedState.height || 300;
-
- height = Math.min(browserWinSize.height, height);
- height = Math.max(200, height);
-
- node.style.border = "0";
- node.style.visibility = "hidden";
- node.style.zIndex = "2147483647"; // MAX z-index = 2147483647
- node.style.position = noFixedPosition ? "absolute" : "fixed";
- node.style.width = "100%"; // "102%"; IE auto margin bug
- node.style.left = "0";
- node.style.bottom = noFixedPosition ? "-1px" : "0";
- node.style.height = height + "px";
-
- // avoid flickering during chrome rendering
- //if (isFirefox)
- // node.style.display = "none";
- },
-
- createChromeDiv = function()
- {
- //Firebug.Console.warn("Firebug Lite GUI is working in 'windowless mode'. It may behave slower and receive interferences from the page in which it is installed.");
-
- var node = chrome.node = createGlobalElement("div"),
- style = createGlobalElement("style"),
-
- css = FirebugChrome.Skin.CSS
- /*
- .replace(/;/g, " !important;")
- .replace(/!important\s!important/g, "!important")
- .replace(/display\s*:\s*(\w+)\s*!important;/g, "display:$1;")*/,
-
- // reset some styles to minimize interference from the main page's style
- rules = ".fbBody *{margin:0;padding:0;font-size:11px;line-height:13px;color:inherit;}" +
- // load the chrome styles
- css +
- // adjust some remaining styles
- ".fbBody #fbHSplitter{position:absolute !important;} .fbBody #fbHTML span{line-height:14px;} .fbBody .lineNo div{line-height:inherit !important;}";
- /*
- if (isIE)
- {
- // IE7 CSS bug (FbChrome table bigger than its parent div)
- rules += ".fbBody table.fbChrome{position: static !important;}";
- }/**/
-
- style.type = "text/css";
-
- if (style.styleSheet)
- style.styleSheet.cssText = rules;
- else
- style.appendChild(context.document.createTextNode(rules));
-
- document.getElementsByTagName("head")[0].appendChild(style);
-
- node.className = "fbBody";
- node.style.overflow = "hidden";
- node.innerHTML = getChromeDivTemplate();
-
- if (isIE)
- {
- // IE7 CSS bug (FbChrome table bigger than its parent div)
- setTimeout(function(){
- node.firstChild.style.height = "1px";
- node.firstChild.style.position = "static";
- },0);
- /**/
- }
-
- formatNode(node);
-
- body.appendChild(node);
-
- chrome.window = window;
- chrome.document = document;
- onChromeLoad(chrome);
- };
-
- //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- try
- {
- //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // create the Chrome as a "div" (windowless mode)
- if (type == "div")
- {
- createChromeDiv();
- return;
- }
-
- //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // cretate the Chrome as an "iframe"
- else if (isChromeFrame)
- {
- // Create the Chrome Frame
- var node = chrome.node = createGlobalElement("iframe");
- node.setAttribute("src", url);
- node.setAttribute("frameBorder", "0");
-
- formatNode(node);
-
- body.appendChild(node);
-
- // must set the id after appending to the document, otherwise will cause an
- // strange error in IE, making the iframe load the page in which the bookmarklet
- // was created (like getfirebug.com), before loading the injected UI HTML,
- // generating an "Access Denied" error.
- node.id = options.id;
- }
-
- //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // create the Chrome as a "popup"
- else
- {
- var height = persistedState.popupHeight || 300;
- var browserWinSize = browserContext.getWindowSize();
-
- var browserWinLeft = typeof browserWin.screenX == "number" ?
- browserWin.screenX : browserWin.screenLeft;
-
- var popupLeft = typeof persistedState.popupLeft == "number" ?
- persistedState.popupLeft : browserWinLeft;
-
- var browserWinTop = typeof browserWin.screenY == "number" ?
- browserWin.screenY : browserWin.screenTop;
-
- var popupTop = typeof persistedState.popupTop == "number" ?
- persistedState.popupTop :
- Math.max(
- 0,
- Math.min(
- browserWinTop + browserWinSize.height - height,
- // Google Chrome bug
- screen.availHeight - height - 61
- )
- );
-
- var popupWidth = typeof persistedState.popupWidth == "number" ?
- persistedState.popupWidth :
- Math.max(
- 0,
- Math.min(
- browserWinSize.width,
- // Opera opens popup in a new tab if it's too big!
- screen.availWidth-10
- )
- );
-
- var popupHeight = typeof persistedState.popupHeight == "number" ?
- persistedState.popupHeight : 300;
-
- var options = [
- "true,top=", popupTop,
- ",left=", popupLeft,
- ",height=", popupHeight,
- ",width=", popupWidth,
- ",resizable"
- ].join(""),
-
- node = chrome.node = context.window.open(
- url,
- "popup",
- options
- );
-
- if (node)
- {
- try
- {
- node.focus();
- }
- catch(E)
- {
- alert("Firebug Error: Firebug popup was blocked.");
- return;
- }
- }
- else
- {
- alert("Firebug Error: Firebug popup was blocked.");
- return;
- }
- }
-
- //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Inject the interface HTML if it is not using the local skin
-
- if (!useLocalSkin)
- {
- var tpl = getChromeTemplate(!isChromeFrame),
- doc = isChromeFrame ? node.contentWindow.document : node.document;
-
- doc.write(tpl);
- doc.close();
- }
-
- //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Wait the Window to be loaded
-
- var win,
-
- waitDelay = useLocalSkin ? isChromeFrame ? 200 : 300 : 100,
-
- waitForWindow = function()
- {
- if ( // Frame loaded... OR
- isChromeFrame && (win=node.contentWindow) &&
- node.contentWindow.document.getElementById("fbCommandLine") ||
-
- // Popup loaded
- !isChromeFrame && (win=node.window) && node.document &&
- node.document.getElementById("fbCommandLine") )
- {
- chrome.window = win.window;
- chrome.document = win.document;
-
- // Prevent getting the wrong chrome height in FF when opening a popup
- setTimeout(function(){
- onChromeLoad(chrome);
- }, useLocalSkin ? 200 : 0);
- }
- else
- setTimeout(waitForWindow, waitDelay);
- };
-
- waitForWindow();
- }
- catch(e)
- {
- var msg = e.message || e;
-
- if (/access/i.test(msg))
- {
- // Firebug Lite could not create a window for its Graphical User Interface due to
- // a access restriction. This happens in some pages, when loading via bookmarklet.
- // In such cases, the only way is to load the GUI in a "windowless mode".
-
- if (isChromeFrame)
- body.removeChild(node);
- else if(type == "popup")
- node.close();
-
- // Load the GUI in a "windowless mode"
- createChromeDiv();
- }
- else
- {
- alert("Firebug Error: Firebug GUI could not be created.");
- }
- }
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var onChromeLoad = function onChromeLoad(chrome)
-{
- Env.chrome = chrome;
-
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Chrome onChromeLoad", "chrome window loaded");
-
- if (Env.Options.enablePersistent)
- {
- // TODO: xxxpedro persist - make better chrome synchronization when in persistent mode
- Env.FirebugChrome = FirebugChrome;
-
- chrome.window.Firebug = chrome.window.Firebug || {};
- chrome.window.Firebug.SharedEnv = Env;
-
- if (Env.isDevelopmentMode)
- {
- Env.browser.window.FBDev.loadChromeApplication(chrome);
- }
- else
- {
- var doc = chrome.document;
- var script = doc.createElement("script");
- script.src = Env.Location.app + "#remote,persist";
- doc.getElementsByTagName("head")[0].appendChild(script);
- }
- }
- else
- {
- if (chrome.type == "frame" || chrome.type == "div")
- {
- // initialize the chrome application
- setTimeout(function(){
- FBL.Firebug.initialize();
- },0);
- }
- else if (chrome.type == "popup")
- {
- var oldChrome = FirebugChrome.chromeMap.frame;
-
- var newChrome = new Chrome(chrome);
-
- // TODO: xxxpedro sync detach reattach attach
- dispatch(newChrome.panelMap, "detach", [oldChrome, newChrome]);
-
- newChrome.reattach(oldChrome, newChrome);
- }
- }
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var getChromeDivTemplate = function()
-{
- return FirebugChrome.Skin.HTML;
-};
-
-var getChromeTemplate = function(isPopup)
-{
- var tpl = FirebugChrome.Skin;
- var r = [], i = -1;
-
- r[++i] = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd">';
- r[++i] = '<html><head><title>';
- r[++i] = Firebug.version;
-
- /*
- r[++i] = '</title><link href="';
- r[++i] = Env.Location.skinDir + 'firebug.css';
- r[++i] = '" rel="stylesheet" type="text/css" />';
- /**/
-
- r[++i] = '</title><style>html,body{margin:0;padding:0;overflow:hidden;}';
- r[++i] = tpl.CSS;
- r[++i] = '</style>';
- /**/
-
- r[++i] = '</head><body class="fbBody' + (isPopup ? ' FirebugPopup' : '') + '">';
- r[++i] = tpl.HTML;
- r[++i] = '</body></html>';
-
- return r.join("");
-};
-
-
-// ************************************************************************************************
-// Chrome Class
-
-/**@class*/
-var Chrome = function Chrome(chrome)
-{
- var type = chrome.type;
- var Base = type == "frame" || type == "div" ? ChromeFrameBase : ChromePopupBase;
-
- append(this, Base); // inherit from base class (ChromeFrameBase or ChromePopupBase)
- append(this, chrome); // inherit chrome window properties
- append(this, new Context(chrome.window)); // inherit from Context class
-
- FirebugChrome.chromeMap[type] = this;
- Firebug.chrome = this;
- Env.chrome = chrome.window;
-
- this.commandLineVisible = false;
- this.sidePanelVisible = false;
-
- this.create();
-
- return this;
-};
-
-// ************************************************************************************************
-// ChromeBase
-
-/**
- * @namespace
- * @extends FBL.Controller
- * @extends FBL.PanelBar
- **/
-var ChromeBase = {};
-append(ChromeBase, Controller);
-append(ChromeBase, PanelBar);
-append(ChromeBase,
-/**@extend ns-chrome-ChromeBase*/
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // inherited properties
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // inherited from createChrome function
-
- node: null,
- type: null,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // inherited from Context.prototype
-
- document: null,
- window: null,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // value properties
-
- sidePanelVisible: false,
- commandLineVisible: false,
- largeCommandLineVisible: false,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // object properties
-
- inspectButton: null,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- create: function()
- {
- PanelBar.create.call(this);
-
- if (Firebug.Inspector)
- this.inspectButton = new Button({
- type: "toggle",
- element: $("fbChrome_btInspect"),
- owner: Firebug.Inspector,
-
- onPress: Firebug.Inspector.startInspecting,
- onUnpress: Firebug.Inspector.stopInspecting
- });
- },
-
- destroy: function()
- {
- if(Firebug.Inspector)
- this.inspectButton.destroy();
-
- PanelBar.destroy.call(this);
-
- this.shutdown();
- },
-
- testMenu: function()
- {
- var firebugMenu = new Menu(
- {
- id: "fbFirebugMenu",
-
- items:
- [
- {
- label: "Open Firebug",
- type: "shortcut",
- key: isFirefox ? "Shift+F12" : "F12",
- checked: true,
- command: "toggleChrome"
- },
- {
- label: "Open Firebug in New Window",
- type: "shortcut",
- key: isFirefox ? "Ctrl+Shift+F12" : "Ctrl+F12",
- command: "openPopup"
- },
- {
- label: "Inspect Element",
- type: "shortcut",
- key: "Ctrl+Shift+C",
- command: "toggleInspect"
- },
- {
- label: "Command Line",
- type: "shortcut",
- key: "Ctrl+Shift+L",
- command: "focusCommandLine"
- },
- "-",
- {
- label: "Options",
- type: "group",
- child: "fbFirebugOptionsMenu"
- },
- "-",
- {
- label: "Firebug Lite Website...",
- command: "visitWebsite"
- },
- {
- label: "Discussion Group...",
- command: "visitDiscussionGroup"
- },
- {
- label: "Issue Tracker...",
- command: "visitIssueTracker"
- }
- ],
-
- onHide: function()
- {
- iconButton.restore();
- },
-
- toggleChrome: function()
- {
- Firebug.chrome.toggle();
- },
-
- openPopup: function()
- {
- Firebug.chrome.toggle(true, true);
- },
-
- toggleInspect: function()
- {
- Firebug.Inspector.toggleInspect();
- },
-
- focusCommandLine: function()
- {
- Firebug.chrome.focusCommandLine();
- },
-
- visitWebsite: function()
- {
- this.visit("http://getfirebug.com/lite.html");
- },
-
- visitDiscussionGroup: function()
- {
- this.visit("http://groups.google.com/group/firebug");
- },
-
- visitIssueTracker: function()
- {
- this.visit("http://code.google.com/p/fbug/issues/list");
- },
-
- visit: function(url)
- {
- window.open(url);
- }
-
- });
-
- /**@private*/
- var firebugOptionsMenu =
- {
- id: "fbFirebugOptionsMenu",
-
- getItems: function()
- {
- var cookiesDisabled = !Firebug.saveCookies;
-
- return [
- {
- label: "Start Opened",
- type: "checkbox",
- value: "startOpened",
- checked: Firebug.startOpened,
- disabled: cookiesDisabled
- },
- {
- label: "Start in New Window",
- type: "checkbox",
- value: "startInNewWindow",
- checked: Firebug.startInNewWindow,
- disabled: cookiesDisabled
- },
- {
- label: "Show Icon When Hidden",
- type: "checkbox",
- value: "showIconWhenHidden",
- checked: Firebug.showIconWhenHidden,
- disabled: cookiesDisabled
- },
- {
- label: "Override Console Object",
- type: "checkbox",
- value: "overrideConsole",
- checked: Firebug.overrideConsole,
- disabled: cookiesDisabled
- },
- {
- label: "Ignore Firebug Elements",
- type: "checkbox",
- value: "ignoreFirebugElements",
- checked: Firebug.ignoreFirebugElements,
- disabled: cookiesDisabled
- },
- {
- label: "Disable When Firebug Active",
- type: "checkbox",
- value: "disableWhenFirebugActive",
- checked: Firebug.disableWhenFirebugActive,
- disabled: cookiesDisabled
- },
- {
- label: "Disable XHR Listener",
- type: "checkbox",
- value: "disableXHRListener",
- checked: Firebug.disableXHRListener,
- disabled: cookiesDisabled
- },
- {
- label: "Disable Resource Fetching",
- type: "checkbox",
- value: "disableResourceFetching",
- checked: Firebug.disableResourceFetching,
- disabled: cookiesDisabled
- },
- {
- label: "Enable Trace Mode",
- type: "checkbox",
- value: "enableTrace",
- checked: Firebug.enableTrace,
- disabled: cookiesDisabled
- },
- {
- label: "Enable Persistent Mode (experimental)",
- type: "checkbox",
- value: "enablePersistent",
- checked: Firebug.enablePersistent,
- disabled: cookiesDisabled
- },
- "-",
- {
- label: "Reset All Firebug Options",
- command: "restorePrefs",
- disabled: cookiesDisabled
- }
- ];
- },
-
- onCheck: function(target, value, checked)
- {
- Firebug.setPref(value, checked);
- },
-
- restorePrefs: function(target)
- {
- Firebug.erasePrefs();
-
- if (target)
- this.updateMenu(target);
- },
-
- updateMenu: function(target)
- {
- var options = getElementsByClass(target.parentNode, "fbMenuOption");
-
- var firstOption = options[0];
- var enabled = Firebug.saveCookies;
- if (enabled)
- Menu.check(firstOption);
- else
- Menu.uncheck(firstOption);
-
- if (enabled)
- Menu.check(options[0]);
- else
- Menu.uncheck(options[0]);
-
- for (var i = 1, length = options.length; i < length; i++)
- {
- var option = options[i];
-
- var value = option.getAttribute("value");
- var pref = Firebug[value];
-
- if (pref)
- Menu.check(option);
- else
- Menu.uncheck(option);
-
- if (enabled)
- Menu.enable(option);
- else
- Menu.disable(option);
- }
- }
- };
-
- Menu.register(firebugOptionsMenu);
-
- var menu = firebugMenu;
-
- var testMenuClick = function(event)
- {
- //console.log("testMenuClick");
- cancelEvent(event, true);
-
- var target = event.target || event.srcElement;
-
- if (menu.isVisible)
- menu.hide();
- else
- {
- var offsetLeft = isIE6 ? 1 : -4, // IE6 problem with fixed position
-
- chrome = Firebug.chrome,
-
- box = chrome.getElementBox(target),
-
- offset = chrome.type == "div" ?
- chrome.getElementPosition(chrome.node) :
- {top: 0, left: 0};
-
- menu.show(
- box.left + offsetLeft - offset.left,
- box.top + box.height -5 - offset.top
- );
- }
-
- return false;
- };
-
- var iconButton = new IconButton({
- type: "toggle",
- element: $("fbFirebugButton"),
-
- onClick: testMenuClick
- });
-
- iconButton.initialize();
-
- //addEvent($("fbToolbarIcon"), "click", testMenuClick);
- },
-
- initialize: function()
- {
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- if (Env.bookmarkletOutdated)
- Firebug.Console.logFormatted([
- "A new bookmarklet version is available. " +
- "Please visit http://getfirebug.com/firebuglite#Install and update it."
- ], Firebug.context, "warn");
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- if (Firebug.Console)
- Firebug.Console.flush();
-
- if (Firebug.Trace)
- FBTrace.flush(Firebug.Trace);
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Firebug.chrome.initialize", "initializing chrome application");
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // initialize inherited classes
- Controller.initialize.call(this);
- PanelBar.initialize.call(this);
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // create the interface elements cache
-
- fbTop = $("fbTop");
- fbContent = $("fbContent");
- fbContentStyle = fbContent.style;
- fbBottom = $("fbBottom");
- fbBtnInspect = $("fbBtnInspect");
-
- fbToolbar = $("fbToolbar");
-
- fbPanelBox1 = $("fbPanelBox1");
- fbPanelBox1Style = fbPanelBox1.style;
- fbPanelBox2 = $("fbPanelBox2");
- fbPanelBox2Style = fbPanelBox2.style;
- fbPanelBar2Box = $("fbPanelBar2Box");
- fbPanelBar2BoxStyle = fbPanelBar2Box.style;
-
- fbHSplitter = $("fbHSplitter");
- fbVSplitter = $("fbVSplitter");
- fbVSplitterStyle = fbVSplitter.style;
-
- fbPanel1 = $("fbPanel1");
- fbPanel1Style = fbPanel1.style;
- fbPanel2 = $("fbPanel2");
- fbPanel2Style = fbPanel2.style;
-
- fbConsole = $("fbConsole");
- fbConsoleStyle = fbConsole.style;
- fbHTML = $("fbHTML");
-
- fbCommandLine = $("fbCommandLine");
- fbLargeCommandLine = $("fbLargeCommandLine");
- fbLargeCommandButtons = $("fbLargeCommandButtons");
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // static values cache
- topHeight = fbTop.offsetHeight;
- topPartialHeight = fbToolbar.offsetHeight;
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- disableTextSelection($("fbToolbar"));
- disableTextSelection($("fbPanelBarBox"));
- disableTextSelection($("fbPanelBar1"));
- disableTextSelection($("fbPanelBar2"));
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Add the "javascript:void(0)" href attributes used to make the hover effect in IE6
- if (isIE6 && Firebug.Selector)
- {
- // TODO: xxxpedro change to getElementsByClass
- var as = $$(".fbHover");
- for (var i=0, a; a=as[i]; i++)
- {
- a.setAttribute("href", "javascript:void(0)");
- }
- }
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // initialize all panels
- /*
- var panelMap = Firebug.panelTypes;
- for (var i=0, p; p=panelMap[i]; i++)
- {
- if (!p.parentPanel)
- {
- this.addPanel(p.prototype.name);
- }
- }
- /**/
-
- // ************************************************************************************************
- // ************************************************************************************************
- // ************************************************************************************************
- // ************************************************************************************************
-
- if(Firebug.Inspector)
- this.inspectButton.initialize();
-
- // ************************************************************************************************
- // ************************************************************************************************
- // ************************************************************************************************
- // ************************************************************************************************
-
- this.addController(
- [$("fbLargeCommandLineIcon"), "click", this.showLargeCommandLine]
- );
-
- // ************************************************************************************************
-
- // Select the first registered panel
- // TODO: BUG IE7
- var self = this;
- setTimeout(function(){
- self.selectPanel(Firebug.context.persistedState.selectedPanelName);
-
- if (Firebug.context.persistedState.selectedPanelName == "Console" && Firebug.CommandLine)
- Firebug.chrome.focusCommandLine();
- },0);
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- //this.draw();
-
-
-
-
-
-
-
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- var onPanelMouseDown = function onPanelMouseDown(event)
- {
- //console.log("onPanelMouseDown", event.target || event.srcElement, event);
-
- var target = event.target || event.srcElement;
-
- if (FBL.isLeftClick(event))
- {
- var editable = FBL.getAncestorByClass(target, "editable");
-
- // if an editable element has been clicked then start editing
- if (editable)
- {
- Firebug.Editor.startEditing(editable);
- FBL.cancelEvent(event);
- }
- // if any other element has been clicked then stop editing
- else
- {
- if (!hasClass(target, "textEditorInner"))
- Firebug.Editor.stopEditing();
- }
- }
- else if (FBL.isMiddleClick(event) && Firebug.getRepNode(target))
- {
- // Prevent auto-scroll when middle-clicking a rep object
- FBL.cancelEvent(event);
- }
- };
-
- Firebug.getElementPanel = function(element)
- {
- var panelNode = getAncestorByClass(element, "fbPanel");
- var id = panelNode.id.substr(2);
-
- var panel = Firebug.chrome.panelMap[id];
-
- if (!panel)
- {
- if (Firebug.chrome.selectedPanel.sidePanelBar)
- panel = Firebug.chrome.selectedPanel.sidePanelBar.panelMap[id];
- }
-
- return panel;
- };
-
-
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- // TODO: xxxpedro port to Firebug
-
- // Improved window key code event listener. Only one "keydown" event will be attached
- // to the window, and the onKeyCodeListen() function will delegate which listeners
- // should be called according to the event.keyCode fired.
- var onKeyCodeListenersMap = [];
- var onKeyCodeListen = function(event)
- {
- for (var keyCode in onKeyCodeListenersMap)
- {
- var listeners = onKeyCodeListenersMap[keyCode];
-
- for (var i = 0, listener; listener = listeners[i]; i++)
- {
- var filter = listener.filter || FBL.noKeyModifiers;
-
- if (event.keyCode == keyCode && (!filter || filter(event)))
- {
- listener.listener();
- FBL.cancelEvent(event, true);
- return false;
- }
- }
- }
- };
-
- addEvent(Firebug.chrome.document, "keydown", onKeyCodeListen);
-
- /**
- * @name keyCodeListen
- * @memberOf FBL.FirebugChrome
- */
- Firebug.chrome.keyCodeListen = function(key, filter, listener, capture)
- {
- var keyCode = KeyEvent["DOM_VK_"+key];
-
- if (!onKeyCodeListenersMap[keyCode])
- onKeyCodeListenersMap[keyCode] = [];
-
- onKeyCodeListenersMap[keyCode].push({
- filter: filter,
- listener: listener
- });
-
- return keyCode;
- };
-
- /**
- * @name keyIgnore
- * @memberOf FBL.FirebugChrome
- */
- Firebug.chrome.keyIgnore = function(keyCode)
- {
- onKeyCodeListenersMap[keyCode] = null;
- delete onKeyCodeListenersMap[keyCode];
- };
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- /**/
- // move to shutdown
- //removeEvent(Firebug.chrome.document, "keydown", listener[0]);
-
-
- /*
- Firebug.chrome.keyCodeListen = function(key, filter, listener, capture)
- {
- if (!filter)
- filter = FBL.noKeyModifiers;
-
- var keyCode = KeyEvent["DOM_VK_"+key];
-
- var fn = function fn(event)
- {
- if (event.keyCode == keyCode && (!filter || filter(event)))
- {
- listener();
- FBL.cancelEvent(event, true);
- return false;
- }
- }
-
- addEvent(Firebug.chrome.document, "keydown", fn);
-
- return [fn, capture];
- };
-
- Firebug.chrome.keyIgnore = function(listener)
- {
- removeEvent(Firebug.chrome.document, "keydown", listener[0]);
- };
- /**/
-
-
- this.addController(
- [fbPanel1, "mousedown", onPanelMouseDown],
- [fbPanel2, "mousedown", onPanelMouseDown]
- );
-/**/
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-
- // menus can be used without domplate
- if (FBL.domplate)
- this.testMenu();
- /**/
-
- //test XHR
- /*
- setTimeout(function(){
-
- FBL.Ajax.request({url: "../content/firebug/boot.js"});
- FBL.Ajax.request({url: "../content/firebug/boot.js.invalid"});
-
- },1000);
- /**/
- },
-
- shutdown: function()
- {
- // ************************************************************************************************
- // ************************************************************************************************
- // ************************************************************************************************
- // ************************************************************************************************
-
- if(Firebug.Inspector)
- this.inspectButton.shutdown();
-
- // ************************************************************************************************
- // ************************************************************************************************
- // ************************************************************************************************
- // ************************************************************************************************
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- // remove disableTextSelection event handlers
- restoreTextSelection($("fbToolbar"));
- restoreTextSelection($("fbPanelBarBox"));
- restoreTextSelection($("fbPanelBar1"));
- restoreTextSelection($("fbPanelBar2"));
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // shutdown inherited classes
- Controller.shutdown.call(this);
- PanelBar.shutdown.call(this);
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Remove the interface elements cache (this must happen after calling
- // the shutdown method of all dependent components to avoid errors)
-
- fbTop = null;
- fbContent = null;
- fbContentStyle = null;
- fbBottom = null;
- fbBtnInspect = null;
-
- fbToolbar = null;
-
- fbPanelBox1 = null;
- fbPanelBox1Style = null;
- fbPanelBox2 = null;
- fbPanelBox2Style = null;
- fbPanelBar2Box = null;
- fbPanelBar2BoxStyle = null;
-
- fbHSplitter = null;
- fbVSplitter = null;
- fbVSplitterStyle = null;
-
- fbPanel1 = null;
- fbPanel1Style = null;
- fbPanel2 = null;
-
- fbConsole = null;
- fbConsoleStyle = null;
- fbHTML = null;
-
- fbCommandLine = null;
- fbLargeCommandLine = null;
- fbLargeCommandButtons = null;
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // static values cache
-
- topHeight = null;
- topPartialHeight = null;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- toggle: function(forceOpen, popup)
- {
- if(popup)
- {
- this.detach();
- }
- else
- {
- if (isOpera && Firebug.chrome.type == "popup" && Firebug.chrome.node.closed)
- {
- var frame = FirebugChrome.chromeMap.frame;
- frame.reattach();
-
- FirebugChrome.chromeMap.popup = null;
-
- frame.open();
-
- return;
- }
-
- // If the context is a popup, ignores the toggle process
- if (Firebug.chrome.type == "popup") return;
-
- var shouldOpen = forceOpen || !Firebug.context.persistedState.isOpen;
-
- if(shouldOpen)
- this.open();
- else
- this.close();
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- detach: function()
- {
- if(!FirebugChrome.chromeMap.popup)
- {
- this.close();
- createChromeWindow({type: "popup"});
- }
- },
-
- reattach: function(oldChrome, newChrome)
- {
- Firebug.browser.window.Firebug = Firebug;
-
- // chrome synchronization
- var newPanelMap = newChrome.panelMap;
- var oldPanelMap = oldChrome.panelMap;
-
- var panel;
- for(var name in newPanelMap)
- {
- // TODO: xxxpedro innerHTML
- panel = newPanelMap[name];
- if (panel.options.innerHTMLSync)
- panel.panelNode.innerHTML = oldPanelMap[name].panelNode.innerHTML;
- }
-
- Firebug.chrome = newChrome;
-
- // TODO: xxxpedro sync detach reattach attach
- //dispatch(Firebug.chrome.panelMap, "detach", [oldChrome, newChrome]);
-
- if (newChrome.type == "popup")
- {
- newChrome.initialize();
- //dispatch(Firebug.modules, "initialize", []);
- }
- else
- {
- // TODO: xxxpedro only needed in persistent
- // should use FirebugChrome.clone, but popup FBChrome
- // isn't acessible
- Firebug.context.persistedState.selectedPanelName = oldChrome.selectedPanel.name;
- }
-
- dispatch(newPanelMap, "reattach", [oldChrome, newChrome]);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- draw: function()
- {
- var size = this.getSize();
-
- // Height related values
- var commandLineHeight = Firebug.chrome.commandLineVisible ? fbCommandLine.offsetHeight : 0,
-
- y = Math.max(size.height /* chrome height */, topHeight),
-
- heightValue = Math.max(y - topHeight - commandLineHeight /* fixed height */, 0),
-
- height = heightValue + "px",
-
- // Width related values
- sideWidthValue = Firebug.chrome.sidePanelVisible ? Firebug.context.persistedState.sidePanelWidth : 0,
-
- width = Math.max(size.width /* chrome width */ - sideWidthValue, 0) + "px";
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Height related rendering
- fbPanelBox1Style.height = height;
- fbPanel1Style.height = height;
-
- if (isIE || isOpera)
- {
- // Fix IE and Opera problems with auto resizing the verticall splitter
- fbVSplitterStyle.height = Math.max(y - topPartialHeight - commandLineHeight, 0) + "px";
- }
- //xxxpedro FF2 only?
- /*
- else if (isFirefox)
- {
- // Fix Firefox problem with table rows with 100% height (fit height)
- fbContentStyle.maxHeight = Math.max(y - fixedHeight, 0)+ "px";
- }/**/
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Width related rendering
- fbPanelBox1Style.width = width;
- fbPanel1Style.width = width;
-
- // SidePanel rendering
- if (Firebug.chrome.sidePanelVisible)
- {
- sideWidthValue = Math.max(sideWidthValue - 6, 0);
-
- var sideWidth = sideWidthValue + "px";
-
- fbPanelBox2Style.width = sideWidth;
-
- fbVSplitterStyle.right = sideWidth;
-
- if (Firebug.chrome.largeCommandLineVisible)
- {
- fbLargeCommandLine = $("fbLargeCommandLine");
-
- fbLargeCommandLine.style.height = heightValue - 4 + "px";
- fbLargeCommandLine.style.width = sideWidthValue - 2 + "px";
-
- fbLargeCommandButtons = $("fbLargeCommandButtons");
- fbLargeCommandButtons.style.width = sideWidth;
- }
- else
- {
- fbPanel2Style.height = height;
- fbPanel2Style.width = sideWidth;
-
- fbPanelBar2BoxStyle.width = sideWidth;
- }
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- getSize: function()
- {
- return this.type == "div" ?
- {
- height: this.node.offsetHeight,
- width: this.node.offsetWidth
- }
- :
- this.getWindowSize();
- },
-
- resize: function()
- {
- var self = this;
-
- // avoid partial resize when maximizing window
- setTimeout(function(){
- self.draw();
-
- if (noFixedPosition && (self.type == "frame" || self.type == "div"))
- self.fixIEPosition();
- }, 0);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- layout: function(panel)
- {
- if (FBTrace.DBG_CHROME) FBTrace.sysout("Chrome.layout", "");
-
- var options = panel.options;
-
- changeCommandLineVisibility(options.hasCommandLine);
- changeSidePanelVisibility(panel.hasSidePanel);
-
- Firebug.chrome.draw();
- },
-
- showLargeCommandLine: function(hideToggleIcon)
- {
- var chrome = Firebug.chrome;
-
- if (!chrome.largeCommandLineVisible)
- {
- chrome.largeCommandLineVisible = true;
-
- if (chrome.selectedPanel.options.hasCommandLine)
- {
- if (Firebug.CommandLine)
- Firebug.CommandLine.blur();
-
- changeCommandLineVisibility(false);
- }
-
- changeSidePanelVisibility(true);
-
- fbLargeCommandLine.style.display = "block";
- fbLargeCommandButtons.style.display = "block";
-
- fbPanel2Style.display = "none";
- fbPanelBar2BoxStyle.display = "none";
-
- chrome.draw();
-
- fbLargeCommandLine.focus();
-
- if (Firebug.CommandLine)
- Firebug.CommandLine.setMultiLine(true);
- }
- },
-
- hideLargeCommandLine: function()
- {
- if (Firebug.chrome.largeCommandLineVisible)
- {
- Firebug.chrome.largeCommandLineVisible = false;
-
- if (Firebug.CommandLine)
- Firebug.CommandLine.setMultiLine(false);
-
- fbLargeCommandLine.blur();
-
- fbPanel2Style.display = "block";
- fbPanelBar2BoxStyle.display = "block";
-
- fbLargeCommandLine.style.display = "none";
- fbLargeCommandButtons.style.display = "none";
-
- changeSidePanelVisibility(false);
-
- if (Firebug.chrome.selectedPanel.options.hasCommandLine)
- changeCommandLineVisibility(true);
-
- Firebug.chrome.draw();
-
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- focusCommandLine: function()
- {
- var selectedPanelName = this.selectedPanel.name, panelToSelect;
-
- if (focusCommandLineState == 0 || selectedPanelName != "Console")
- {
- focusCommandLineState = 0;
- lastFocusedPanelName = selectedPanelName;
-
- panelToSelect = "Console";
- }
- if (focusCommandLineState == 1)
- {
- panelToSelect = lastFocusedPanelName;
- }
-
- this.selectPanel(panelToSelect);
-
- try
- {
- if (Firebug.CommandLine)
- {
- if (panelToSelect == "Console")
- Firebug.CommandLine.focus();
- else
- Firebug.CommandLine.blur();
- }
- }
- catch(e)
- {
- //TODO: xxxpedro trace error
- }
-
- focusCommandLineState = ++focusCommandLineState % 2;
- }
-
-});
-
-// ************************************************************************************************
-// ChromeFrameBase
-
-/**
- * @namespace
- * @extends ns-chrome-ChromeBase
- */
-var ChromeFrameBase = extend(ChromeBase,
-/**@extend ns-chrome-ChromeFrameBase*/
-{
- create: function()
- {
- ChromeBase.create.call(this);
-
- // restore display for the anti-flicker trick
- if (isFirefox)
- this.node.style.display = "block";
-
- if (Env.Options.startInNewWindow)
- {
- this.close();
- this.toggle(true, true);
- return;
- }
-
- if (Env.Options.startOpened)
- this.open();
- else
- this.close();
- },
-
- destroy: function()
- {
- var size = Firebug.chrome.getWindowSize();
-
- Firebug.context.persistedState.height = size.height;
-
- if (Firebug.saveCookies)
- Firebug.savePrefs();
-
- removeGlobalEvent("keydown", onGlobalKeyDown);
-
- ChromeBase.destroy.call(this);
-
- this.document = null;
- delete this.document;
-
- this.window = null;
- delete this.window;
-
- this.node.parentNode.removeChild(this.node);
- this.node = null;
- delete this.node;
- },
-
- initialize: function()
- {
- //FBTrace.sysout("Frame", "initialize();")
- ChromeBase.initialize.call(this);
-
- this.addController(
- [Firebug.browser.window, "resize", this.resize],
- [$("fbWindow_btClose"), "click", this.close],
- [$("fbWindow_btDetach"), "click", this.detach],
- [$("fbWindow_btDeactivate"), "click", this.deactivate]
- );
-
- if (!Env.Options.enablePersistent)
- this.addController([Firebug.browser.window, "unload", Firebug.shutdown]);
-
- if (noFixedPosition)
- {
- this.addController(
- [Firebug.browser.window, "scroll", this.fixIEPosition]
- );
- }
-
- fbVSplitter.onmousedown = onVSplitterMouseDown;
- fbHSplitter.onmousedown = onHSplitterMouseDown;
-
- this.isInitialized = true;
- },
-
- shutdown: function()
- {
- fbVSplitter.onmousedown = null;
- fbHSplitter.onmousedown = null;
-
- ChromeBase.shutdown.apply(this);
-
- this.isInitialized = false;
- },
-
- reattach: function()
- {
- var frame = FirebugChrome.chromeMap.frame;
-
- ChromeBase.reattach(FirebugChrome.chromeMap.popup, this);
- },
-
- open: function()
- {
- if (!Firebug.context.persistedState.isOpen)
- {
- Firebug.context.persistedState.isOpen = true;
-
- if (Env.isChromeExtension)
- localStorage.setItem("Firebug", "1,1");
-
- var node = this.node;
-
- node.style.visibility = "hidden"; // Avoid flickering
-
- if (Firebug.showIconWhenHidden)
- {
- if (ChromeMini.isInitialized)
- {
- ChromeMini.shutdown();
- }
-
- }
- else
- node.style.display = "block";
-
- var main = $("fbChrome");
-
- // IE6 throws an error when setting this property! why?
- //main.style.display = "table";
- main.style.display = "";
-
- var self = this;
- /// TODO: xxxpedro FOUC
- node.style.visibility = "visible";
- setTimeout(function(){
- ///node.style.visibility = "visible";
-
- //dispatch(Firebug.modules, "initialize", []);
- self.initialize();
-
- if (noFixedPosition)
- self.fixIEPosition();
-
- self.draw();
-
- }, 10);
- }
- },
-
- close: function()
- {
- if (Firebug.context.persistedState.isOpen)
- {
- if (this.isInitialized)
- {
- //dispatch(Firebug.modules, "shutdown", []);
- this.shutdown();
- }
-
- Firebug.context.persistedState.isOpen = false;
-
- if (Env.isChromeExtension)
- localStorage.setItem("Firebug", "1,0");
-
- var node = this.node;
-
- if (Firebug.showIconWhenHidden)
- {
- node.style.visibility = "hidden"; // Avoid flickering
-
- // TODO: xxxpedro - persist IE fixed?
- var main = $("fbChrome", FirebugChrome.chromeMap.frame.document);
- main.style.display = "none";
-
- ChromeMini.initialize();
-
- node.style.visibility = "visible";
- }
- else
- node.style.display = "none";
- }
- },
-
- deactivate: function()
- {
- // if it is running as a Chrome extension, dispatch a message to the extension signaling
- // that Firebug should be deactivated for the current tab
- if (Env.isChromeExtension)
- {
- localStorage.removeItem("Firebug");
- Firebug.GoogleChrome.dispatch("FB_deactivate");
-
- // xxxpedro problem here regarding Chrome extension. We can't deactivate the whole
- // app, otherwise it won't be able to be reactivated without reloading the page.
- // but we need to stop listening global keys, otherwise the key activation won't work.
- Firebug.chrome.close();
- }
- else
- {
- Firebug.shutdown();
- }
- },
-
- fixIEPosition: function()
- {
- // fix IE problem with offset when not in fullscreen mode
- var doc = this.document;
- var offset = isIE ? doc.body.clientTop || doc.documentElement.clientTop: 0;
-
- var size = Firebug.browser.getWindowSize();
- var scroll = Firebug.browser.getWindowScrollPosition();
- var maxHeight = size.height;
- var height = this.node.offsetHeight;
-
- var bodyStyle = doc.body.currentStyle;
-
- this.node.style.top = maxHeight - height + scroll.top + "px";
-
- if ((this.type == "frame" || this.type == "div") &&
- (bodyStyle.marginLeft || bodyStyle.marginRight))
- {
- this.node.style.width = size.width + "px";
- }
-
- if (fbVSplitterStyle)
- fbVSplitterStyle.right = Firebug.context.persistedState.sidePanelWidth + "px";
-
- this.draw();
- }
-
-});
-
-
-// ************************************************************************************************
-// ChromeMini
-
-/**
- * @namespace
- * @extends FBL.Controller
- */
-var ChromeMini = extend(Controller,
-/**@extend ns-chrome-ChromeMini*/
-{
- create: function(chrome)
- {
- append(this, chrome);
- this.type = "mini";
- },
-
- initialize: function()
- {
- Controller.initialize.apply(this);
-
- var doc = FirebugChrome.chromeMap.frame.document;
-
- var mini = $("fbMiniChrome", doc);
- mini.style.display = "block";
-
- var miniIcon = $("fbMiniIcon", doc);
- var width = miniIcon.offsetWidth + 10;
- miniIcon.title = "Open " + Firebug.version;
-
- var errors = $("fbMiniErrors", doc);
- if (errors.offsetWidth)
- width += errors.offsetWidth + 10;
-
- var node = this.node;
- node.style.height = "27px";
- node.style.width = width + "px";
- node.style.left = "";
- node.style.right = 0;
-
- if (this.node.nodeName.toLowerCase() == "iframe")
- {
- node.setAttribute("allowTransparency", "true");
- this.document.body.style.backgroundColor = "transparent";
- }
- else
- node.style.background = "transparent";
-
- if (noFixedPosition)
- this.fixIEPosition();
-
- this.addController(
- [$("fbMiniIcon", doc), "click", onMiniIconClick]
- );
-
- if (noFixedPosition)
- {
- this.addController(
- [Firebug.browser.window, "scroll", this.fixIEPosition]
- );
- }
-
- this.isInitialized = true;
- },
-
- shutdown: function()
- {
- var node = this.node;
- node.style.height = Firebug.context.persistedState.height + "px";
- node.style.width = "100%";
- node.style.left = 0;
- node.style.right = "";
-
- if (this.node.nodeName.toLowerCase() == "iframe")
- {
- node.setAttribute("allowTransparency", "false");
- this.document.body.style.backgroundColor = "#fff";
- }
- else
- node.style.background = "#fff";
-
- if (noFixedPosition)
- this.fixIEPosition();
-
- var doc = FirebugChrome.chromeMap.frame.document;
-
- var mini = $("fbMiniChrome", doc);
- mini.style.display = "none";
-
- Controller.shutdown.apply(this);
-
- this.isInitialized = false;
- },
-
- draw: function()
- {
-
- },
-
- fixIEPosition: ChromeFrameBase.fixIEPosition
-
-});
-
-
-// ************************************************************************************************
-// ChromePopupBase
-
-/**
- * @namespace
- * @extends ns-chrome-ChromeBase
- */
-var ChromePopupBase = extend(ChromeBase,
-/**@extend ns-chrome-ChromePopupBase*/
-{
-
- initialize: function()
- {
- setClass(this.document.body, "FirebugPopup");
-
- ChromeBase.initialize.call(this);
-
- this.addController(
- [Firebug.chrome.window, "resize", this.resize],
- [Firebug.chrome.window, "unload", this.destroy]
- //[Firebug.chrome.window, "beforeunload", this.destroy]
- );
-
- if (Env.Options.enablePersistent)
- {
- this.persist = bind(this.persist, this);
- addEvent(Firebug.browser.window, "unload", this.persist);
- }
- else
- this.addController(
- [Firebug.browser.window, "unload", this.close]
- );
-
- fbVSplitter.onmousedown = onVSplitterMouseDown;
- },
-
- destroy: function()
- {
- var chromeWin = Firebug.chrome.window;
- var left = chromeWin.screenX || chromeWin.screenLeft;
- var top = chromeWin.screenY || chromeWin.screenTop;
- var size = Firebug.chrome.getWindowSize();
-
- Firebug.context.persistedState.popupTop = top;
- Firebug.context.persistedState.popupLeft = left;
- Firebug.context.persistedState.popupWidth = size.width;
- Firebug.context.persistedState.popupHeight = size.height;
-
- if (Firebug.saveCookies)
- Firebug.savePrefs();
-
- // TODO: xxxpedro sync detach reattach attach
- var frame = FirebugChrome.chromeMap.frame;
-
- if(frame)
- {
- dispatch(frame.panelMap, "detach", [this, frame]);
-
- frame.reattach(this, frame);
- }
-
- if (Env.Options.enablePersistent)
- {
- removeEvent(Firebug.browser.window, "unload", this.persist);
- }
-
- ChromeBase.destroy.apply(this);
-
- FirebugChrome.chromeMap.popup = null;
-
- this.node.close();
- },
-
- persist: function()
- {
- persistTimeStart = new Date().getTime();
-
- removeEvent(Firebug.browser.window, "unload", this.persist);
-
- Firebug.Inspector.destroy();
- Firebug.browser.window.FirebugOldBrowser = true;
-
- var persistTimeStart = new Date().getTime();
-
- var waitMainWindow = function()
- {
- var doc, head;
-
- try
- {
- if (window.opener && !window.opener.FirebugOldBrowser && (doc = window.opener.document)/* &&
- doc.documentElement && (head = doc.documentElement.firstChild)*/)
- {
-
- try
- {
- // exposes the FBL to the global namespace when in debug mode
- if (Env.isDebugMode)
- {
- window.FBL = FBL;
- }
-
- window.Firebug = Firebug;
- window.opener.Firebug = Firebug;
-
- Env.browser = window.opener;
- Firebug.browser = Firebug.context = new Context(Env.browser);
- Firebug.loadPrefs();
-
- registerConsole();
-
- // the delay time should be calculated right after registering the
- // console, once right after the console registration, call log messages
- // will be properly handled
- var persistDelay = new Date().getTime() - persistTimeStart;
-
- var chrome = Firebug.chrome;
- addEvent(Firebug.browser.window, "unload", chrome.persist);
-
- FBL.cacheDocument();
- Firebug.Inspector.create();
-
- Firebug.Console.logFormatted(
- ["Firebug could not capture console calls during " +
- persistDelay + "ms"],
- Firebug.context,
- "info"
- );
-
- setTimeout(function(){
- var htmlPanel = chrome.getPanel("HTML");
- htmlPanel.createUI();
- },50);
-
- }
- catch(pE)
- {
- alert("persist error: " + (pE.message || pE));
- }
-
- }
- else
- {
- window.setTimeout(waitMainWindow, 0);
- }
-
- } catch (E) {
- window.close();
- }
- };
-
- waitMainWindow();
- },
-
- close: function()
- {
- this.destroy();
- }
-
-});
-
-
-//************************************************************************************************
-// UI helpers
-
-var changeCommandLineVisibility = function changeCommandLineVisibility(visibility)
-{
- var last = Firebug.chrome.commandLineVisible;
- var visible = Firebug.chrome.commandLineVisible =
- typeof visibility == "boolean" ? visibility : !Firebug.chrome.commandLineVisible;
-
- if (visible != last)
- {
- if (visible)
- {
- fbBottom.className = "";
-
- if (Firebug.CommandLine)
- Firebug.CommandLine.activate();
- }
- else
- {
- if (Firebug.CommandLine)
- Firebug.CommandLine.deactivate();
-
- fbBottom.className = "hide";
- }
- }
-};
-
-var changeSidePanelVisibility = function changeSidePanelVisibility(visibility)
-{
- var last = Firebug.chrome.sidePanelVisible;
- Firebug.chrome.sidePanelVisible =
- typeof visibility == "boolean" ? visibility : !Firebug.chrome.sidePanelVisible;
-
- if (Firebug.chrome.sidePanelVisible != last)
- {
- fbPanelBox2.className = Firebug.chrome.sidePanelVisible ? "" : "hide";
- fbPanelBar2Box.className = Firebug.chrome.sidePanelVisible ? "" : "hide";
- }
-};
-
-
-// ************************************************************************************************
-// F12 Handler
-
-var onGlobalKeyDown = function onGlobalKeyDown(event)
-{
- var keyCode = event.keyCode;
- var shiftKey = event.shiftKey;
- var ctrlKey = event.ctrlKey;
-
- if (keyCode == 123 /* F12 */ && (!isFirefox && !shiftKey || shiftKey && isFirefox))
- {
- Firebug.chrome.toggle(false, ctrlKey);
- cancelEvent(event, true);
-
- // TODO: xxxpedro replace with a better solution. we're doing this
- // to allow reactivating with the F12 key after being deactivated
- if (Env.isChromeExtension)
- {
- Firebug.GoogleChrome.dispatch("FB_enableIcon");
- }
- }
- else if (keyCode == 67 /* C */ && ctrlKey && shiftKey)
- {
- Firebug.Inspector.toggleInspect();
- cancelEvent(event, true);
- }
- else if (keyCode == 76 /* L */ && ctrlKey && shiftKey)
- {
- Firebug.chrome.focusCommandLine();
- cancelEvent(event, true);
- }
-};
-
-var onMiniIconClick = function onMiniIconClick(event)
-{
- Firebug.chrome.toggle(false, event.ctrlKey);
- cancelEvent(event, true);
-};
-
-
-// ************************************************************************************************
-// Horizontal Splitter Handling
-
-var onHSplitterMouseDown = function onHSplitterMouseDown(event)
-{
- addGlobalEvent("mousemove", onHSplitterMouseMove);
- addGlobalEvent("mouseup", onHSplitterMouseUp);
-
- if (isIE)
- addEvent(Firebug.browser.document.documentElement, "mouseleave", onHSplitterMouseUp);
-
- fbHSplitter.className = "fbOnMovingHSplitter";
-
- return false;
-};
-
-var onHSplitterMouseMove = function onHSplitterMouseMove(event)
-{
- cancelEvent(event, true);
-
- var clientY = event.clientY;
- var win = isIE
- ? event.srcElement.ownerDocument.parentWindow
- : event.target.defaultView || event.target.ownerDocument && event.target.ownerDocument.defaultView;
-
- if (!win)
- return;
-
- if (win != win.parent)
- {
- var frameElement = win.frameElement;
- if (frameElement)
- {
- var framePos = Firebug.browser.getElementPosition(frameElement).top;
- clientY += framePos;
-
- if (frameElement.style.position != "fixed")
- clientY -= Firebug.browser.getWindowScrollPosition().top;
- }
- }
-
- if (isOpera && isQuiksMode && win.frameElement.id == "FirebugUI")
- {
- clientY = Firebug.browser.getWindowSize().height - win.frameElement.offsetHeight + clientY;
- }
-
- /*
- console.log(
- typeof win.FBL != "undefined" ? "no-Chrome" : "Chrome",
- //win.frameElement.id,
- event.target,
- clientY
- );/**/
-
- onHSplitterMouseMoveBuffer = clientY; // buffer
-
- if (new Date().getTime() - lastHSplitterMouseMove > chromeRedrawSkipRate) // frame skipping
- {
- lastHSplitterMouseMove = new Date().getTime();
- handleHSplitterMouseMove();
- }
- else
- if (!onHSplitterMouseMoveTimer)
- onHSplitterMouseMoveTimer = setTimeout(handleHSplitterMouseMove, chromeRedrawSkipRate);
-
- // improving the resizing performance by canceling the mouse event.
- // canceling events will prevent the page to receive such events, which would imply
- // in more processing being expended.
- cancelEvent(event, true);
- return false;
-};
-
-var handleHSplitterMouseMove = function()
-{
- if (onHSplitterMouseMoveTimer)
- {
- clearTimeout(onHSplitterMouseMoveTimer);
- onHSplitterMouseMoveTimer = null;
- }
-
- var clientY = onHSplitterMouseMoveBuffer;
-
- var windowSize = Firebug.browser.getWindowSize();
- var scrollSize = Firebug.browser.getWindowScrollSize();
-
- // compute chrome fixed size (top bar and command line)
- var commandLineHeight = Firebug.chrome.commandLineVisible ? fbCommandLine.offsetHeight : 0;
- var fixedHeight = topHeight + commandLineHeight;
- var chromeNode = Firebug.chrome.node;
-
- var scrollbarSize = !isIE && (scrollSize.width > windowSize.width) ? 17 : 0;
-
- //var height = !isOpera ? chromeNode.offsetTop + chromeNode.clientHeight : windowSize.height;
- var height = windowSize.height;
-
- // compute the min and max size of the chrome
- var chromeHeight = Math.max(height - clientY + 5 - scrollbarSize, fixedHeight);
- chromeHeight = Math.min(chromeHeight, windowSize.height - scrollbarSize);
-
- Firebug.context.persistedState.height = chromeHeight;
- chromeNode.style.height = chromeHeight + "px";
-
- if (noFixedPosition)
- Firebug.chrome.fixIEPosition();
-
- Firebug.chrome.draw();
-};
-
-var onHSplitterMouseUp = function onHSplitterMouseUp(event)
-{
- removeGlobalEvent("mousemove", onHSplitterMouseMove);
- removeGlobalEvent("mouseup", onHSplitterMouseUp);
-
- if (isIE)
- removeEvent(Firebug.browser.document.documentElement, "mouseleave", onHSplitterMouseUp);
-
- fbHSplitter.className = "";
-
- Firebug.chrome.draw();
-
- // avoid text selection in IE when returning to the document
- // after the mouse leaves the document during the resizing
- return false;
-};
-
-
-// ************************************************************************************************
-// Vertical Splitter Handling
-
-var onVSplitterMouseDown = function onVSplitterMouseDown(event)
-{
- addGlobalEvent("mousemove", onVSplitterMouseMove);
- addGlobalEvent("mouseup", onVSplitterMouseUp);
-
- return false;
-};
-
-var onVSplitterMouseMove = function onVSplitterMouseMove(event)
-{
- if (new Date().getTime() - lastVSplitterMouseMove > chromeRedrawSkipRate) // frame skipping
- {
- var target = event.target || event.srcElement;
- if (target && target.ownerDocument) // avoid error when cursor reaches out of the chrome
- {
- var clientX = event.clientX;
- var win = document.all
- ? event.srcElement.ownerDocument.parentWindow
- : event.target.ownerDocument.defaultView;
-
- if (win != win.parent)
- clientX += win.frameElement ? win.frameElement.offsetLeft : 0;
-
- var size = Firebug.chrome.getSize();
- var x = Math.max(size.width - clientX + 3, 6);
-
- Firebug.context.persistedState.sidePanelWidth = x;
- Firebug.chrome.draw();
- }
-
- lastVSplitterMouseMove = new Date().getTime();
- }
-
- cancelEvent(event, true);
- return false;
-};
-
-var onVSplitterMouseUp = function onVSplitterMouseUp(event)
-{
- removeGlobalEvent("mousemove", onVSplitterMouseMove);
- removeGlobalEvent("mouseup", onVSplitterMouseUp);
-
- Firebug.chrome.draw();
-};
-
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-Firebug.Lite =
-{
-};
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-Firebug.Lite.Cache =
-{
- ID: "firebug-" + new Date().getTime()
-};
-
-// ************************************************************************************************
-
-/**
- * TODO: if a cached element is cloned, the expando property will be cloned too in IE
- * which will result in a bug. Firebug Lite will think the new cloned node is the old
- * one.
- *
- * TODO: Investigate a possibility of cache validation, to be customized by each
- * kind of cache. For ElementCache it should validate if the element still is
- * inserted at the DOM.
- */
-var cacheUID = 0;
-var createCache = function()
-{
- var map = {};
- var data = {};
-
- var CID = Firebug.Lite.Cache.ID;
-
- // better detection
- var supportsDeleteExpando = !document.all;
-
- var cacheFunction = function(element)
- {
- return cacheAPI.set(element);
- };
-
- var cacheAPI =
- {
- get: function(key)
- {
- return map.hasOwnProperty(key) ?
- map[key] :
- null;
- },
-
- set: function(element)
- {
- var id = getValidatedKey(element);
-
- if (!id)
- {
- id = ++cacheUID;
- element[CID] = id;
- }
-
- if (!map.hasOwnProperty(id))
- {
- map[id] = element;
- data[id] = {};
- }
-
- return id;
- },
-
- unset: function(element)
- {
- var id = getValidatedKey(element);
-
- if (!id) return;
-
- if (supportsDeleteExpando)
- {
- delete element[CID];
- }
- else if (element.removeAttribute)
- {
- element.removeAttribute(CID);
- }
-
- delete map[id];
- delete data[id];
-
- },
-
- key: function(element)
- {
- return getValidatedKey(element);
- },
-
- has: function(element)
- {
- var id = getValidatedKey(element);
- return id && map.hasOwnProperty(id);
- },
-
- each: function(callback)
- {
- for (var key in map)
- {
- if (map.hasOwnProperty(key))
- {
- callback(key, map[key]);
- }
- }
- },
-
- data: function(element, name, value)
- {
- // set data
- if (value)
- {
- if (!name) return null;
-
- var id = cacheAPI.set(element);
-
- return data[id][name] = value;
- }
- // get data
- else
- {
- var id = cacheAPI.key(element);
-
- return data.hasOwnProperty(id) && data[id].hasOwnProperty(name) ?
- data[id][name] :
- null;
- }
- },
-
- clear: function()
- {
- for (var id in map)
- {
- var element = map[id];
- cacheAPI.unset(element);
- }
- }
- };
-
- var getValidatedKey = function(element)
- {
- var id = element[CID];
-
- // If a cached element is cloned in IE, the expando property CID will be also
- // cloned (differently than other browsers) resulting in a bug: Firebug Lite
- // will think the new cloned node is the old one. To prevent this problem we're
- // checking if the cached element matches the given element.
- if (
- !supportsDeleteExpando && // the problem happens when supportsDeleteExpando is false
- id && // the element has the expando property
- map.hasOwnProperty(id) && // there is a cached element with the same id
- map[id] != element // but it is a different element than the current one
- )
- {
- // remove the problematic property
- element.removeAttribute(CID);
-
- id = null;
- }
-
- return id;
- };
-
- FBL.append(cacheFunction, cacheAPI);
-
- return cacheFunction;
-};
-
-// ************************************************************************************************
-
-// TODO: xxxpedro : check if we need really this on FBL scope
-Firebug.Lite.Cache.StyleSheet = createCache();
-Firebug.Lite.Cache.Element = createCache();
-
-// TODO: xxxpedro
-Firebug.Lite.Cache.Event = createCache();
-
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-var sourceMap = {};
-
-// ************************************************************************************************
-Firebug.Lite.Proxy =
-{
- // jsonp callbacks
- _callbacks: {},
-
- /**
- * Load a resource, either locally (directly) or externally (via proxy) using
- * synchronous XHR calls. Loading external resources requires the proxy plugin to
- * be installed and configured (see /plugin/proxy/proxy.php).
- */
- load: function(url)
- {
- var resourceDomain = getDomain(url);
- var isLocalResource =
- // empty domain means local URL
- !resourceDomain ||
- // same domain means local too
- resourceDomain == Firebug.context.window.location.host; // TODO: xxxpedro context
-
- return isLocalResource ? fetchResource(url) : fetchProxyResource(url);
- },
-
- /**
- * Load a resource using JSONP technique.
- */
- loadJSONP: function(url, callback)
- {
- var script = createGlobalElement("script"),
- doc = Firebug.context.document,
-
- uid = "" + new Date().getTime(),
- callbackName = "callback=Firebug.Lite.Proxy._callbacks." + uid,
-
- jsonpURL = url.indexOf("?") != -1 ?
- url + "&" + callbackName :
- url + "?" + callbackName;
-
- Firebug.Lite.Proxy._callbacks[uid] = function(data)
- {
- if (callback)
- callback(data);
-
- script.parentNode.removeChild(script);
- delete Firebug.Lite.Proxy._callbacks[uid];
- };
-
- script.src = jsonpURL;
-
- if (doc.documentElement)
- doc.documentElement.appendChild(script);
- },
-
- /**
- * Load a resource using YQL (not reliable).
- */
- YQL: function(url, callback)
- {
- var yql = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22" +
- encodeURIComponent(url) + "%22&format=xml";
-
- this.loadJSONP(yql, function(data)
- {
- var source = data.results[0];
-
- // clean up YQL bogus elements
- var match = /<body>\s+<p>([\s\S]+)<\/p>\s+<\/body>$/.exec(source);
- if (match)
- source = match[1];
-
- console.log(source);
- });
- }
-};
-
-// ************************************************************************************************
-
-Firebug.Lite.Proxy.fetchResourceDisabledMessage =
- "/* Firebug Lite resource fetching is disabled.\n" +
- "To enabled it set the Firebug Lite option \"disableResourceFetching\" to \"false\".\n" +
- "More info at http://getfirebug.com/firebuglite#Options */";
-
-var fetchResource = function(url)
-{
- if (Firebug.disableResourceFetching)
- {
- var source = sourceMap[url] = Firebug.Lite.Proxy.fetchResourceDisabledMessage;
- return source;
- }
-
- if (sourceMap.hasOwnProperty(url))
- return sourceMap[url];
-
- // Getting the native XHR object so our calls won't be logged in the Console Panel
- var xhr = FBL.getNativeXHRObject();
- xhr.open("get", url, false);
- xhr.send();
-
- var source = sourceMap[url] = xhr.responseText;
- return source;
-};
-
-var fetchProxyResource = function(url)
-{
- if (sourceMap.hasOwnProperty(url))
- return sourceMap[url];
-
- var proxyURL = Env.Location.baseDir + "plugin/proxy/proxy.php?url=" + encodeURIComponent(url);
- var response = fetchResource(proxyURL);
-
- try
- {
- var data = eval("(" + response + ")");
- }
- catch(E)
- {
- return "ERROR: Firebug Lite Proxy plugin returned an invalid response.";
- }
-
- var source = data ? data.contents : "";
- return source;
-};
-
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-Firebug.Lite.Style =
-{
-};
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-Firebug.Lite.Script = function(window)
-{
- this.fileName = null;
- this.isValid = null;
- this.baseLineNumber = null;
- this.lineExtent = null;
- this.tag = null;
-
- this.functionName = null;
- this.functionSource = null;
-};
-
-Firebug.Lite.Script.prototype =
-{
- isLineExecutable: function(){},
- pcToLine: function(){},
- lineToPc: function(){},
-
- toString: function()
- {
- return "Firebug.Lite.Script";
- }
-};
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-
-Firebug.Lite.Browser = function(window)
-{
- this.contentWindow = window;
- this.contentDocument = window.document;
- this.currentURI =
- {
- spec: window.location.href
- };
-};
-
-Firebug.Lite.Browser.prototype =
-{
- toString: function()
- {
- return "Firebug.Lite.Browser";
- }
-};
-
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-/*
- http://www.JSON.org/json2.js
- 2010-03-20
-
- Public Domain.
-
- NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
-
- See http://www.JSON.org/js.html
-
-
- This code should be minified before deployment.
- See http://javascript.crockford.com/jsmin.html
-
- USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
- NOT CONTROL.
-
-
- This file creates a global JSON object containing two methods: stringify
- and parse.
-
- JSON.stringify(value, replacer, space)
- value any JavaScript value, usually an object or array.
-
- replacer an optional parameter that determines how object
- values are stringified for objects. It can be a
- function or an array of strings.
-
- space an optional parameter that specifies the indentation
- of nested structures. If it is omitted, the text will
- be packed without extra whitespace. If it is a number,
- it will specify the number of spaces to indent at each
- level. If it is a string (such as '\t' or '&nbsp;'),
- it contains the characters used to indent at each level.
-
- This method produces a JSON text from a JavaScript value.
-
- When an object value is found, if the object contains a toJSON
- method, its toJSON method will be called and the result will be
- stringified. A toJSON method does not serialize: it returns the
- value represented by the name/value pair that should be serialized,
- or undefined if nothing should be serialized. The toJSON method
- will be passed the key associated with the value, and this will be
- bound to the value
-
- For example, this would serialize Dates as ISO strings.
-
- Date.prototype.toJSON = function (key) {
- function f(n) {
- // Format integers to have at least two digits.
- return n < 10 ? '0' + n : n;
- }
-
- return this.getUTCFullYear() + '-' +
- f(this.getUTCMonth() + 1) + '-' +
- f(this.getUTCDate()) + 'T' +
- f(this.getUTCHours()) + ':' +
- f(this.getUTCMinutes()) + ':' +
- f(this.getUTCSeconds()) + 'Z';
- };
-
- You can provide an optional replacer method. It will be passed the
- key and value of each member, with this bound to the containing
- object. The value that is returned from your method will be
- serialized. If your method returns undefined, then the member will
- be excluded from the serialization.
-
- If the replacer parameter is an array of strings, then it will be
- used to select the members to be serialized. It filters the results
- such that only members with keys listed in the replacer array are
- stringified.
-
- Values that do not have JSON representations, such as undefined or
- functions, will not be serialized. Such values in objects will be
- dropped; in arrays they will be replaced with null. You can use
- a replacer function to replace those with JSON values.
- JSON.stringify(undefined) returns undefined.
-
- The optional space parameter produces a stringification of the
- value that is filled with line breaks and indentation to make it
- easier to read.
-
- If the space parameter is a non-empty string, then that string will
- be used for indentation. If the space parameter is a number, then
- the indentation will be that many spaces.
-
- Example:
-
- text = JSON.stringify(['e', {pluribus: 'unum'}]);
- // text is '["e",{"pluribus":"unum"}]'
-
-
- text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
- // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
-
- text = JSON.stringify([new Date()], function (key, value) {
- return this[key] instanceof Date ?
- 'Date(' + this[key] + ')' : value;
- });
- // text is '["Date(---current time---)"]'
-
-
- JSON.parse(text, reviver)
- This method parses a JSON text to produce an object or array.
- It can throw a SyntaxError exception.
-
- The optional reviver parameter is a function that can filter and
- transform the results. It receives each of the keys and values,
- and its return value is used instead of the original value.
- If it returns what it received, then the structure is not modified.
- If it returns undefined then the member is deleted.
-
- Example:
-
- // Parse the text. Values that look like ISO date strings will
- // be converted to Date objects.
-
- myData = JSON.parse(text, function (key, value) {
- var a;
- if (typeof value === 'string') {
- a =
-/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
- if (a) {
- return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
- +a[5], +a[6]));
- }
- }
- return value;
- });
-
- myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
- var d;
- if (typeof value === 'string' &&
- value.slice(0, 5) === 'Date(' &&
- value.slice(-1) === ')') {
- d = new Date(value.slice(5, -1));
- if (d) {
- return d;
- }
- }
- return value;
- });
-
-
- This is a reference implementation. You are free to copy, modify, or
- redistribute.
-*/
-
-/*jslint evil: true, strict: false */
-
-/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
- call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
- getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
- lastIndex, length, parse, prototype, push, replace, slice, stringify,
- test, toJSON, toString, valueOf
-*/
-
-
-// Create a JSON object only if one does not already exist. We create the
-// methods in a closure to avoid creating global variables.
-
-// ************************************************************************************************
-
-var JSON = window.JSON || {};
-
-// ************************************************************************************************
-
-(function () {
-
- function f(n) {
- // Format integers to have at least two digits.
- return n < 10 ? '0' + n : n;
- }
-
- if (typeof Date.prototype.toJSON !== 'function') {
-
- Date.prototype.toJSON = function (key) {
-
- return isFinite(this.valueOf()) ?
- this.getUTCFullYear() + '-' +
- f(this.getUTCMonth() + 1) + '-' +
- f(this.getUTCDate()) + 'T' +
- f(this.getUTCHours()) + ':' +
- f(this.getUTCMinutes()) + ':' +
- f(this.getUTCSeconds()) + 'Z' : null;
- };
-
- String.prototype.toJSON =
- Number.prototype.toJSON =
- Boolean.prototype.toJSON = function (key) {
- return this.valueOf();
- };
- }
-
- var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
- escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
- gap,
- indent,
- meta = { // table of character substitutions
- '\b': '\\b',
- '\t': '\\t',
- '\n': '\\n',
- '\f': '\\f',
- '\r': '\\r',
- '"' : '\\"',
- '\\': '\\\\'
- },
- rep;
-
-
- function quote(string) {
-
-// If the string contains no control characters, no quote characters, and no
-// backslash characters, then we can safely slap some quotes around it.
-// Otherwise we must also replace the offending characters with safe escape
-// sequences.
-
- escapable.lastIndex = 0;
- return escapable.test(string) ?
- '"' + string.replace(escapable, function (a) {
- var c = meta[a];
- return typeof c === 'string' ? c :
- '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
- }) + '"' :
- '"' + string + '"';
- }
-
-
- function str(key, holder) {
-
-// Produce a string from holder[key].
-
- var i, // The loop counter.
- k, // The member key.
- v, // The member value.
- length,
- mind = gap,
- partial,
- value = holder[key];
-
-// If the value has a toJSON method, call it to obtain a replacement value.
-
- if (value && typeof value === 'object' &&
- typeof value.toJSON === 'function') {
- value = value.toJSON(key);
- }
-
-// If we were called with a replacer function, then call the replacer to
-// obtain a replacement value.
-
- if (typeof rep === 'function') {
- value = rep.call(holder, key, value);
- }
-
-// What happens next depends on the value's type.
-
- switch (typeof value) {
- case 'string':
- return quote(value);
-
- case 'number':
-
-// JSON numbers must be finite. Encode non-finite numbers as null.
-
- return isFinite(value) ? String(value) : 'null';
-
- case 'boolean':
- case 'null':
-
-// If the value is a boolean or null, convert it to a string. Note:
-// typeof null does not produce 'null'. The case is included here in
-// the remote chance that this gets fixed someday.
-
- return String(value);
-
-// If the type is 'object', we might be dealing with an object or an array or
-// null.
-
- case 'object':
-
-// Due to a specification blunder in ECMAScript, typeof null is 'object',
-// so watch out for that case.
-
- if (!value) {
- return 'null';
- }
-
-// Make an array to hold the partial results of stringifying this object value.
-
- gap += indent;
- partial = [];
-
-// Is the value an array?
-
- if (Object.prototype.toString.apply(value) === '[object Array]') {
-
-// The value is an array. Stringify every element. Use null as a placeholder
-// for non-JSON values.
-
- length = value.length;
- for (i = 0; i < length; i += 1) {
- partial[i] = str(i, value) || 'null';
- }
-
-// Join all of the elements together, separated with commas, and wrap them in
-// brackets.
-
- v = partial.length === 0 ? '[]' :
- gap ? '[\n' + gap +
- partial.join(',\n' + gap) + '\n' +
- mind + ']' :
- '[' + partial.join(',') + ']';
- gap = mind;
- return v;
- }
-
-// If the replacer is an array, use it to select the members to be stringified.
-
- if (rep && typeof rep === 'object') {
- length = rep.length;
- for (i = 0; i < length; i += 1) {
- k = rep[i];
- if (typeof k === 'string') {
- v = str(k, value);
- if (v) {
- partial.push(quote(k) + (gap ? ': ' : ':') + v);
- }
- }
- }
- } else {
-
-// Otherwise, iterate through all of the keys in the object.
-
- for (k in value) {
- if (Object.hasOwnProperty.call(value, k)) {
- v = str(k, value);
- if (v) {
- partial.push(quote(k) + (gap ? ': ' : ':') + v);
- }
- }
- }
- }
-
-// Join all of the member texts together, separated with commas,
-// and wrap them in braces.
-
- v = partial.length === 0 ? '{}' :
- gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
- mind + '}' : '{' + partial.join(',') + '}';
- gap = mind;
- return v;
- }
- }
-
-// If the JSON object does not yet have a stringify method, give it one.
-
- if (typeof JSON.stringify !== 'function') {
- JSON.stringify = function (value, replacer, space) {
-
-// The stringify method takes a value and an optional replacer, and an optional
-// space parameter, and returns a JSON text. The replacer can be a function
-// that can replace values, or an array of strings that will select the keys.
-// A default replacer method can be provided. Use of the space parameter can
-// produce text that is more easily readable.
-
- var i;
- gap = '';
- indent = '';
-
-// If the space parameter is a number, make an indent string containing that
-// many spaces.
-
- if (typeof space === 'number') {
- for (i = 0; i < space; i += 1) {
- indent += ' ';
- }
-
-// If the space parameter is a string, it will be used as the indent string.
-
- } else if (typeof space === 'string') {
- indent = space;
- }
-
-// If there is a replacer, it must be a function or an array.
-// Otherwise, throw an error.
-
- rep = replacer;
- if (replacer && typeof replacer !== 'function' &&
- (typeof replacer !== 'object' ||
- typeof replacer.length !== 'number')) {
- throw new Error('JSON.stringify');
- }
-
-// Make a fake root object containing our value under the key of ''.
-// Return the result of stringifying the value.
-
- return str('', {'': value});
- };
- }
-
-
-// If the JSON object does not yet have a parse method, give it one.
-
- if (typeof JSON.parse !== 'function') {
- JSON.parse = function (text, reviver) {
-
-// The parse method takes a text and an optional reviver function, and returns
-// a JavaScript value if the text is a valid JSON text.
-
- var j;
-
- function walk(holder, key) {
-
-// The walk method is used to recursively walk the resulting structure so
-// that modifications can be made.
-
- var k, v, value = holder[key];
- if (value && typeof value === 'object') {
- for (k in value) {
- if (Object.hasOwnProperty.call(value, k)) {
- v = walk(value, k);
- if (v !== undefined) {
- value[k] = v;
- } else {
- delete value[k];
- }
- }
- }
- }
- return reviver.call(holder, key, value);
- }
-
-
-// Parsing happens in four stages. In the first stage, we replace certain
-// Unicode characters with escape sequences. JavaScript handles many characters
-// incorrectly, either silently deleting them, or treating them as line endings.
-
- text = String(text);
- cx.lastIndex = 0;
- if (cx.test(text)) {
- text = text.replace(cx, function (a) {
- return '\\u' +
- ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
- });
- }
-
-// In the second stage, we run the text against regular expressions that look
-// for non-JSON patterns. We are especially concerned with '()' and 'new'
-// because they can cause invocation, and '=' because it can cause mutation.
-// But just to be safe, we want to reject all unexpected forms.
-
-// We split the second stage into 4 regexp operations in order to work around
-// crippling inefficiencies in IE's and Safari's regexp engines. First we
-// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
-// replace all simple value tokens with ']' characters. Third, we delete all
-// open brackets that follow a colon or comma or that begin the text. Finally,
-// we look to see that the remaining characters are only whitespace or ']' or
-// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
-
- if (/^[\],:{}\s]*$/.
-test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').
-replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').
-replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
-
-// In the third stage we use the eval function to compile the text into a
-// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
-// in JavaScript: it can begin a block or an object literal. We wrap the text
-// in parens to eliminate the ambiguity.
-
- j = eval('(' + text + ')');
-
-// In the optional fourth stage, we recursively walk the new structure, passing
-// each name/value pair to a reviver function for possible transformation.
-
- return typeof reviver === 'function' ?
- walk({'': j}, '') : j;
- }
-
-// If the text is not JSON parseable, then a SyntaxError is thrown.
-
- throw new SyntaxError('JSON.parse');
- };
- }
-
-// ************************************************************************************************
-// registration
-
-FBL.JSON = JSON;
-
-// ************************************************************************************************
-}());
-
-/* See license.txt for terms of usage */
-
-(function(){
-// ************************************************************************************************
-
-/* Copyright (c) 2010-2011 Marcus Westin
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-var store = (function(){
- var api = {},
- win = window,
- doc = win.document,
- localStorageName = 'localStorage',
- globalStorageName = 'globalStorage',
- namespace = '__firebug__storejs__',
- storage
-
- api.disabled = false
- api.set = function(key, value) {}
- api.get = function(key) {}
- api.remove = function(key) {}
- api.clear = function() {}
- api.transact = function(key, transactionFn) {
- var val = api.get(key)
- if (typeof val == 'undefined') { val = {} }
- transactionFn(val)
- api.set(key, val)
- }
-
- api.serialize = function(value) {
- return JSON.stringify(value)
- }
- api.deserialize = function(value) {
- if (typeof value != 'string') { return undefined }
- return JSON.parse(value)
- }
-
- // Functions to encapsulate questionable FireFox 3.6.13 behavior
- // when about.config::dom.storage.enabled === false
- // See https://github.com/marcuswestin/store.js/issues#issue/13
- function isLocalStorageNameSupported() {
- try { return (localStorageName in win && win[localStorageName]) }
- catch(err) { return false }
- }
-
- function isGlobalStorageNameSupported() {
- try { return (globalStorageName in win && win[globalStorageName] && win[globalStorageName][win.location.hostname]) }
- catch(err) { return false }
- }
-
- if (isLocalStorageNameSupported()) {
- storage = win[localStorageName]
- api.set = function(key, val) { storage.setItem(key, api.serialize(val)) }
- api.get = function(key) { return api.deserialize(storage.getItem(key)) }
- api.remove = function(key) { storage.removeItem(key) }
- api.clear = function() { storage.clear() }
-
- } else if (isGlobalStorageNameSupported()) {
- storage = win[globalStorageName][win.location.hostname]
- api.set = function(key, val) { storage[key] = api.serialize(val) }
- api.get = function(key) { return api.deserialize(storage[key] && storage[key].value) }
- api.remove = function(key) { delete storage[key] }
- api.clear = function() { for (var key in storage ) { delete storage[key] } }
-
- } else if (doc.documentElement.addBehavior) {
- var storage = doc.createElement('div')
- function withIEStorage(storeFunction) {
- return function() {
- var args = Array.prototype.slice.call(arguments, 0)
- args.unshift(storage)
- // See http://msdn.microsoft.com/en-us/library/ms531081(v=VS.85).aspx
- // and http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).aspx
- // TODO: xxxpedro doc.body is not always available so we must use doc.documentElement.
- // We need to make sure this change won't affect the behavior of this library.
- doc.documentElement.appendChild(storage)
- storage.addBehavior('#default#userData')
- storage.load(localStorageName)
- var result = storeFunction.apply(api, args)
- doc.documentElement.removeChild(storage)
- return result
- }
- }
- api.set = withIEStorage(function(storage, key, val) {
- storage.setAttribute(key, api.serialize(val))
- storage.save(localStorageName)
- })
- api.get = withIEStorage(function(storage, key) {
- return api.deserialize(storage.getAttribute(key))
- })
- api.remove = withIEStorage(function(storage, key) {
- storage.removeAttribute(key)
- storage.save(localStorageName)
- })
- api.clear = withIEStorage(function(storage) {
- var attributes = storage.XMLDocument.documentElement.attributes
- storage.load(localStorageName)
- for (var i=0, attr; attr = attributes[i]; i++) {
- storage.removeAttribute(attr.name)
- }
- storage.save(localStorageName)
- })
- }
-
- try {
- api.set(namespace, namespace)
- if (api.get(namespace) != namespace) { api.disabled = true }
- api.remove(namespace)
- } catch(e) {
- api.disabled = true
- }
-
- return api
-})();
-
-if (typeof module != 'undefined') { module.exports = store }
-
-
-// ************************************************************************************************
-// registration
-
-FBL.Store = store;
-
-// ************************************************************************************************
-})();
-
-/* See license.txt for terms of usage */
-
-FBL.ns( /**@scope s_selector*/ function() { with (FBL) {
-// ************************************************************************************************
-
-/*
- * Sizzle CSS Selector Engine - v1.0
- * Copyright 2009, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- done = 0,
- toString = Object.prototype.toString,
- hasDuplicate = false,
- baseHasDuplicate = true;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-// Thus far that includes Google Chrome.
-[0, 0].sort(function(){
- baseHasDuplicate = false;
- return 0;
-});
-
-/**
- * @name Firebug.Selector
- * @namespace
- */
-
-/**
- * @exports Sizzle as Firebug.Selector
- */
-var Sizzle = function(selector, context, results, seed) {
- results = results || [];
- var origContext = context = context || document;
-
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
- return [];
- }
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- var parts = [], m, set, checkSet, check, mode, extra, prune = true, contextXML = isXML(context),
- soFar = selector;
-
- // Reset the position of the chunker regexp (start from head)
- while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) {
- soFar = m[3];
-
- parts.push( m[1] );
-
- if ( m[2] ) {
- extra = m[3];
- break;
- }
- }
-
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
- set = posProcess( parts[0] + parts[1], context );
- } else {
- set = Expr.relative[ parts[0] ] ?
- [ context ] :
- Sizzle( parts.shift(), context );
-
- while ( parts.length ) {
- selector = parts.shift();
-
- if ( Expr.relative[ selector ] )
- selector += parts.shift();
-
- set = posProcess( selector, set );
- }
- }
- } else {
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
- var ret = Sizzle.find( parts.shift(), context, contextXML );
- context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0];
- }
-
- if ( context ) {
- var ret = seed ?
- { expr: parts.pop(), set: makeArray(seed) } :
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
- set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set;
-
- if ( parts.length > 0 ) {
- checkSet = makeArray(set);
- } else {
- prune = false;
- }
-
- while ( parts.length ) {
- var cur = parts.pop(), pop = cur;
-
- if ( !Expr.relative[ cur ] ) {
- cur = "";
- } else {
- pop = parts.pop();
- }
-
- if ( pop == null ) {
- pop = context;
- }
-
- Expr.relative[ cur ]( checkSet, pop, contextXML );
- }
- } else {
- checkSet = parts = [];
- }
- }
-
- if ( !checkSet ) {
- checkSet = set;
- }
-
- if ( !checkSet ) {
- throw "Syntax error, unrecognized expression: " + (cur || selector);
- }
-
- if ( toString.call(checkSet) === "[object Array]" ) {
- if ( !prune ) {
- results.push.apply( results, checkSet );
- } else if ( context && context.nodeType === 1 ) {
- for ( var i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
- results.push( set[i] );
- }
- }
- } else {
- for ( var i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
- results.push( set[i] );
- }
- }
- }
- } else {
- makeArray( checkSet, results );
- }
-
- if ( extra ) {
- Sizzle( extra, origContext, results, seed );
- Sizzle.uniqueSort( results );
- }
-
- return results;
-};
-
-Sizzle.uniqueSort = function(results){
- if ( sortOrder ) {
- hasDuplicate = baseHasDuplicate;
- results.sort(sortOrder);
-
- if ( hasDuplicate ) {
- for ( var i = 1; i < results.length; i++ ) {
- if ( results[i] === results[i-1] ) {
- results.splice(i--, 1);
- }
- }
- }
- }
-
- return results;
-};
-
-Sizzle.matches = function(expr, set){
- return Sizzle(expr, null, null, set);
-};
-
-Sizzle.find = function(expr, context, isXML){
- var set, match;
-
- if ( !expr ) {
- return [];
- }
-
- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
- var type = Expr.order[i], match;
-
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
- var left = match[1];
- match.splice(1,1);
-
- if ( left.substr( left.length - 1 ) !== "\\" ) {
- match[1] = (match[1] || "").replace(/\\/g, "");
- set = Expr.find[ type ]( match, context, isXML );
- if ( set != null ) {
- expr = expr.replace( Expr.match[ type ], "" );
- break;
- }
- }
- }
- }
-
- if ( !set ) {
- set = context.getElementsByTagName("*");
- }
-
- return {set: set, expr: expr};
-};
-
-Sizzle.filter = function(expr, set, inplace, not){
- var old = expr, result = [], curLoop = set, match, anyFound,
- isXMLFilter = set && set[0] && isXML(set[0]);
-
- while ( expr && set.length ) {
- for ( var type in Expr.filter ) {
- if ( (match = Expr.match[ type ].exec( expr )) != null ) {
- var filter = Expr.filter[ type ], found, item;
- anyFound = false;
-
- if ( curLoop == result ) {
- result = [];
- }
-
- if ( Expr.preFilter[ type ] ) {
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
- if ( !match ) {
- anyFound = found = true;
- } else if ( match === true ) {
- continue;
- }
- }
-
- if ( match ) {
- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
- if ( item ) {
- found = filter( item, match, i, curLoop );
- var pass = not ^ !!found;
-
- if ( inplace && found != null ) {
- if ( pass ) {
- anyFound = true;
- } else {
- curLoop[i] = false;
- }
- } else if ( pass ) {
- result.push( item );
- anyFound = true;
- }
- }
- }
- }
-
- if ( found !== undefined ) {
- if ( !inplace ) {
- curLoop = result;
- }
-
- expr = expr.replace( Expr.match[ type ], "" );
-
- if ( !anyFound ) {
- return [];
- }
-
- break;
- }
- }
- }
-
- // Improper expression
- if ( expr == old ) {
- if ( anyFound == null ) {
- throw "Syntax error, unrecognized expression: " + expr;
- } else {
- break;
- }
- }
-
- old = expr;
- }
-
- return curLoop;
-};
-
-/**#@+ @ignore */
-var Expr = Sizzle.selectors = {
- order: [ "ID", "NAME", "TAG" ],
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
- },
- leftMatch: {},
- attrMap: {
- "class": "className",
- "for": "htmlFor"
- },
- attrHandle: {
- href: function(elem){
- return elem.getAttribute("href");
- }
- },
- relative: {
- "+": function(checkSet, part, isXML){
- var isPartStr = typeof part === "string",
- isTag = isPartStr && !/\W/.test(part),
- isPartStrNotTag = isPartStr && !isTag;
-
- if ( isTag && !isXML ) {
- part = part.toUpperCase();
- }
-
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
- if ( (elem = checkSet[i]) ) {
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ?
- elem || false :
- elem === part;
- }
- }
-
- if ( isPartStrNotTag ) {
- Sizzle.filter( part, checkSet, true );
- }
- },
- ">": function(checkSet, part, isXML){
- var isPartStr = typeof part === "string";
-
- if ( isPartStr && !/\W/.test(part) ) {
- part = isXML ? part : part.toUpperCase();
-
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- var parent = elem.parentNode;
- checkSet[i] = parent.nodeName === part ? parent : false;
- }
- }
- } else {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- checkSet[i] = isPartStr ?
- elem.parentNode :
- elem.parentNode === part;
- }
- }
-
- if ( isPartStr ) {
- Sizzle.filter( part, checkSet, true );
- }
- }
- },
- "": function(checkSet, part, isXML){
- var doneName = done++, checkFn = dirCheck;
-
- if ( !/\W/.test(part) ) {
- var nodeCheck = part = isXML ? part : part.toUpperCase();
- checkFn = dirNodeCheck;
- }
-
- checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
- },
- "~": function(checkSet, part, isXML){
- var doneName = done++, checkFn = dirCheck;
-
- if ( typeof part === "string" && !/\W/.test(part) ) {
- var nodeCheck = part = isXML ? part : part.toUpperCase();
- checkFn = dirNodeCheck;
- }
-
- checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
- }
- },
- find: {
- ID: function(match, context, isXML){
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- return m ? [m] : [];
- }
- },
- NAME: function(match, context, isXML){
- if ( typeof context.getElementsByName !== "undefined" ) {
- var ret = [], results = context.getElementsByName(match[1]);
-
- for ( var i = 0, l = results.length; i < l; i++ ) {
- if ( results[i].getAttribute("name") === match[1] ) {
- ret.push( results[i] );
- }
- }
-
- return ret.length === 0 ? null : ret;
- }
- },
- TAG: function(match, context){
- return context.getElementsByTagName(match[1]);
- }
- },
- preFilter: {
- CLASS: function(match, curLoop, inplace, result, not, isXML){
- match = " " + match[1].replace(/\\/g, "") + " ";
-
- if ( isXML ) {
- return match;
- }
-
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
- if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0) ) {
- if ( !inplace )
- result.push( elem );
- } else if ( inplace ) {
- curLoop[i] = false;
- }
- }
- }
-
- return false;
- },
- ID: function(match){
- return match[1].replace(/\\/g, "");
- },
- TAG: function(match, curLoop){
- for ( var i = 0; curLoop[i] === false; i++ ){}
- return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
- },
- CHILD: function(match){
- if ( match[1] == "nth" ) {
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
- match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
- // calculate the numbers (first)n+(last) including if they are negative
- match[2] = (test[1] + (test[2] || 1)) - 0;
- match[3] = test[3] - 0;
- }
-
- // TODO: Move to normal caching system
- match[0] = done++;
-
- return match;
- },
- ATTR: function(match, curLoop, inplace, result, not, isXML){
- var name = match[1].replace(/\\/g, "");
-
- if ( !isXML && Expr.attrMap[name] ) {
- match[1] = Expr.attrMap[name];
- }
-
- if ( match[2] === "~=" ) {
- match[4] = " " + match[4] + " ";
- }
-
- return match;
- },
- PSEUDO: function(match, curLoop, inplace, result, not){
- if ( match[1] === "not" ) {
- // If we're dealing with a complex expression, or a simple one
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
- match[3] = Sizzle(match[3], null, null, curLoop);
- } else {
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
- if ( !inplace ) {
- result.push.apply( result, ret );
- }
- return false;
- }
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
- return true;
- }
-
- return match;
- },
- POS: function(match){
- match.unshift( true );
- return match;
- }
- },
- filters: {
- enabled: function(elem){
- return elem.disabled === false && elem.type !== "hidden";
- },
- disabled: function(elem){
- return elem.disabled === true;
- },
- checked: function(elem){
- return elem.checked === true;
- },
- selected: function(elem){
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- elem.parentNode.selectedIndex;
- return elem.selected === true;
- },
- parent: function(elem){
- return !!elem.firstChild;
- },
- empty: function(elem){
- return !elem.firstChild;
- },
- has: function(elem, i, match){
- return !!Sizzle( match[3], elem ).length;
- },
- header: function(elem){
- return /h\d/i.test( elem.nodeName );
- },
- text: function(elem){
- return "text" === elem.type;
- },
- radio: function(elem){
- return "radio" === elem.type;
- },
- checkbox: function(elem){
- return "checkbox" === elem.type;
- },
- file: function(elem){
- return "file" === elem.type;
- },
- password: function(elem){
- return "password" === elem.type;
- },
- submit: function(elem){
- return "submit" === elem.type;
- },
- image: function(elem){
- return "image" === elem.type;
- },
- reset: function(elem){
- return "reset" === elem.type;
- },
- button: function(elem){
- return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
- },
- input: function(elem){
- return /input|select|textarea|button/i.test(elem.nodeName);
- }
- },
- setFilters: {
- first: function(elem, i){
- return i === 0;
- },
- last: function(elem, i, match, array){
- return i === array.length - 1;
- },
- even: function(elem, i){
- return i % 2 === 0;
- },
- odd: function(elem, i){
- return i % 2 === 1;
- },
- lt: function(elem, i, match){
- return i < match[3] - 0;
- },
- gt: function(elem, i, match){
- return i > match[3] - 0;
- },
- nth: function(elem, i, match){
- return match[3] - 0 == i;
- },
- eq: function(elem, i, match){
- return match[3] - 0 == i;
- }
- },
- filter: {
- PSEUDO: function(elem, match, i, array){
- var name = match[1], filter = Expr.filters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- } else if ( name === "contains" ) {
- return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
- } else if ( name === "not" ) {
- var not = match[3];
-
- for ( var i = 0, l = not.length; i < l; i++ ) {
- if ( not[i] === elem ) {
- return false;
- }
- }
-
- return true;
- }
- },
- CHILD: function(elem, match){
- var type = match[1], node = elem;
- switch (type) {
- case 'only':
- case 'first':
- while ( (node = node.previousSibling) ) {
- if ( node.nodeType === 1 ) return false;
- }
- if ( type == 'first') return true;
- node = elem;
- case 'last':
- while ( (node = node.nextSibling) ) {
- if ( node.nodeType === 1 ) return false;
- }
- return true;
- case 'nth':
- var first = match[2], last = match[3];
-
- if ( first == 1 && last == 0 ) {
- return true;
- }
-
- var doneName = match[0],
- parent = elem.parentNode;
-
- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
- var count = 0;
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
- if ( node.nodeType === 1 ) {
- node.nodeIndex = ++count;
- }
- }
- parent.sizcache = doneName;
- }
-
- var diff = elem.nodeIndex - last;
- if ( first == 0 ) {
- return diff == 0;
- } else {
- return ( diff % first == 0 && diff / first >= 0 );
- }
- }
- },
- ID: function(elem, match){
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
- },
- TAG: function(elem, match){
- return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
- },
- CLASS: function(elem, match){
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
- .indexOf( match ) > -1;
- },
- ATTR: function(elem, match){
- var name = match[1],
- result = Expr.attrHandle[ name ] ?
- Expr.attrHandle[ name ]( elem ) :
- elem[ name ] != null ?
- elem[ name ] :
- elem.getAttribute( name ),
- value = result + "",
- type = match[2],
- check = match[4];
-
- return result == null ?
- type === "!=" :
- type === "=" ?
- value === check :
- type === "*=" ?
- value.indexOf(check) >= 0 :
- type === "~=" ?
- (" " + value + " ").indexOf(check) >= 0 :
- !check ?
- value && result !== false :
- type === "!=" ?
- value != check :
- type === "^=" ?
- value.indexOf(check) === 0 :
- type === "$=" ?
- value.substr(value.length - check.length) === check :
- type === "|=" ?
- value === check || value.substr(0, check.length + 1) === check + "-" :
- false;
- },
- POS: function(elem, match, i, array){
- var name = match[2], filter = Expr.setFilters[ name ];
-
- if ( filter ) {
- return filter( elem, i, match, array );
- }
- }
- }
-};
-
-var origPOS = Expr.match.POS;
-
-for ( var type in Expr.match ) {
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source );
-}
-
-var makeArray = function(array, results) {
- array = Array.prototype.slice.call( array, 0 );
-
- if ( results ) {
- results.push.apply( results, array );
- return results;
- }
-
- return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-try {
- Array.prototype.slice.call( document.documentElement.childNodes, 0 );
-
-// Provide a fallback method if it does not work
-} catch(e){
- makeArray = function(array, results) {
- var ret = results || [];
-
- if ( toString.call(array) === "[object Array]" ) {
- Array.prototype.push.apply( ret, array );
- } else {
- if ( typeof array.length === "number" ) {
- for ( var i = 0, l = array.length; i < l; i++ ) {
- ret.push( array[i] );
- }
- } else {
- for ( var i = 0; array[i]; i++ ) {
- ret.push( array[i] );
- }
- }
- }
-
- return ret;
- };
-}
-
-var sortOrder;
-
-if ( document.documentElement.compareDocumentPosition ) {
- sortOrder = function( a, b ) {
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return 0;
- }
-
- var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-} else if ( "sourceIndex" in document.documentElement ) {
- sortOrder = function( a, b ) {
- if ( !a.sourceIndex || !b.sourceIndex ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return 0;
- }
-
- var ret = a.sourceIndex - b.sourceIndex;
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-} else if ( document.createRange ) {
- sortOrder = function( a, b ) {
- if ( !a.ownerDocument || !b.ownerDocument ) {
- if ( a == b ) {
- hasDuplicate = true;
- }
- return 0;
- }
-
- var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
- aRange.setStart(a, 0);
- aRange.setEnd(a, 0);
- bRange.setStart(b, 0);
- bRange.setEnd(b, 0);
- var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-}
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
- // We're going to inject a fake input element with a specified name
- var form = document.createElement("div"),
- id = "script" + (new Date).getTime();
- form.innerHTML = "<a name='" + id + "'/>";
-
- // Inject it into the root element, check its status, and remove it quickly
- var root = document.documentElement;
- root.insertBefore( form, root.firstChild );
-
- // The workaround has to do additional checks after a getElementById
- // Which slows things down for other browsers (hence the branching)
- if ( !!document.getElementById( id ) ) {
- Expr.find.ID = function(match, context, isXML){
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
- }
- };
-
- Expr.filter.ID = function(elem, match){
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
- return elem.nodeType === 1 && node && node.nodeValue === match;
- };
- }
-
- root.removeChild( form );
- root = form = null; // release memory in IE
-})();
-
-(function(){
- // Check to see if the browser returns only elements
- // when doing getElementsByTagName("*")
-
- // Create a fake element
- var div = document.createElement("div");
- div.appendChild( document.createComment("") );
-
- // Make sure no comments are found
- if ( div.getElementsByTagName("*").length > 0 ) {
- Expr.find.TAG = function(match, context){
- var results = context.getElementsByTagName(match[1]);
-
- // Filter out possible comments
- if ( match[1] === "*" ) {
- var tmp = [];
-
- for ( var i = 0; results[i]; i++ ) {
- if ( results[i].nodeType === 1 ) {
- tmp.push( results[i] );
- }
- }
-
- results = tmp;
- }
-
- return results;
- };
- }
-
- // Check to see if an attribute returns normalized href attributes
- div.innerHTML = "<a href='#'></a>";
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
- div.firstChild.getAttribute("href") !== "#" ) {
- Expr.attrHandle.href = function(elem){
- return elem.getAttribute("href", 2);
- };
- }
-
- div = null; // release memory in IE
-})();
-
-if ( document.querySelectorAll ) (function(){
- var oldSizzle = Sizzle, div = document.createElement("div");
- div.innerHTML = "<p class='TEST'></p>";
-
- // Safari can't handle uppercase or unicode characters when
- // in quirks mode.
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
- return;
- }
-
- Sizzle = function(query, context, extra, seed){
- context = context || document;
-
- // Only use querySelectorAll on non-XML documents
- // (ID selectors don't work in non-HTML documents)
- if ( !seed && context.nodeType === 9 && !isXML(context) ) {
- try {
- return makeArray( context.querySelectorAll(query), extra );
- } catch(e){}
- }
-
- return oldSizzle(query, context, extra, seed);
- };
-
- for ( var prop in oldSizzle ) {
- Sizzle[ prop ] = oldSizzle[ prop ];
- }
-
- div = null; // release memory in IE
-})();
-
-if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
- var div = document.createElement("div");
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
- // Opera can't find a second classname (in 9.6)
- if ( div.getElementsByClassName("e").length === 0 )
- return;
-
- // Safari caches class attributes, doesn't catch changes (in 3.2)
- div.lastChild.className = "e";
-
- if ( div.getElementsByClassName("e").length === 1 )
- return;
-
- Expr.order.splice(1, 0, "CLASS");
- Expr.find.CLASS = function(match, context, isXML) {
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
- return context.getElementsByClassName(match[1]);
- }
- };
-
- div = null; // release memory in IE
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- var sibDir = dir == "previousSibling" && !isXML;
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- if ( sibDir && elem.nodeType === 1 ){
- elem.sizcache = doneName;
- elem.sizset = i;
- }
- elem = elem[dir];
- var match = false;
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 && !isXML ){
- elem.sizcache = doneName;
- elem.sizset = i;
- }
-
- if ( elem.nodeName === cur ) {
- match = elem;
- break;
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- var sibDir = dir == "previousSibling" && !isXML;
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- if ( sibDir && elem.nodeType === 1 ) {
- elem.sizcache = doneName;
- elem.sizset = i;
- }
- elem = elem[dir];
- var match = false;
-
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
-
- if ( elem.nodeType === 1 ) {
- if ( !isXML ) {
- elem.sizcache = doneName;
- elem.sizset = i;
- }
- if ( typeof cur !== "string" ) {
- if ( elem === cur ) {
- match = true;
- break;
- }
-
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
- match = elem;
- break;
- }
- }
-
- elem = elem[dir];
- }
-
- checkSet[i] = match;
- }
- }
-}
-
-var contains = document.compareDocumentPosition ? function(a, b){
- return a.compareDocumentPosition(b) & 16;
-} : function(a, b){
- return a !== b && (a.contains ? a.contains(b) : true);
-};
-
-var isXML = function(elem){
- return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
- !!elem.ownerDocument && elem.ownerDocument.documentElement.nodeName !== "HTML";
-};
-
-var posProcess = function(selector, context){
- var tmpSet = [], later = "", match,
- root = context.nodeType ? [context] : context;
-
- // Position selectors must be done after the filter
- // And so must :not(positional) so we move all PSEUDOs to the end
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
- later += match[0];
- selector = selector.replace( Expr.match.PSEUDO, "" );
- }
-
- selector = Expr.relative[selector] ? selector + "*" : selector;
-
- for ( var i = 0, l = root.length; i < l; i++ ) {
- Sizzle( selector, root[i], tmpSet );
- }
-
- return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-
-Firebug.Selector = Sizzle;
-
-/**#@-*/
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Inspector Module
-
-var ElementCache = Firebug.Lite.Cache.Element;
-
-var inspectorTS, inspectorTimer, isInspecting;
-
-Firebug.Inspector =
-{
- create: function()
- {
- offlineFragment = Env.browser.document.createDocumentFragment();
-
- createBoxModelInspector();
- createOutlineInspector();
- },
-
- destroy: function()
- {
- destroyBoxModelInspector();
- destroyOutlineInspector();
-
- offlineFragment = null;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Inspect functions
-
- toggleInspect: function()
- {
- if (isInspecting)
- {
- this.stopInspecting();
- }
- else
- {
- Firebug.chrome.inspectButton.changeState("pressed");
- this.startInspecting();
- }
- },
-
- startInspecting: function()
- {
- isInspecting = true;
-
- Firebug.chrome.selectPanel("HTML");
-
- createInspectorFrame();
-
- var size = Firebug.browser.getWindowScrollSize();
-
- fbInspectFrame.style.width = size.width + "px";
- fbInspectFrame.style.height = size.height + "px";
-
- //addEvent(Firebug.browser.document.documentElement, "mousemove", Firebug.Inspector.onInspectingBody);
-
- addEvent(fbInspectFrame, "mousemove", Firebug.Inspector.onInspecting);
- addEvent(fbInspectFrame, "mousedown", Firebug.Inspector.onInspectingClick);
- },
-
- stopInspecting: function()
- {
- isInspecting = false;
-
- if (outlineVisible) this.hideOutline();
- removeEvent(fbInspectFrame, "mousemove", Firebug.Inspector.onInspecting);
- removeEvent(fbInspectFrame, "mousedown", Firebug.Inspector.onInspectingClick);
-
- destroyInspectorFrame();
-
- Firebug.chrome.inspectButton.restore();
-
- if (Firebug.chrome.type == "popup")
- Firebug.chrome.node.focus();
- },
-
- onInspectingClick: function(e)
- {
- fbInspectFrame.style.display = "none";
- var targ = Firebug.browser.getElementFromPoint(e.clientX, e.clientY);
- fbInspectFrame.style.display = "block";
-
- // Avoid inspecting the outline, and the FirebugUI
- var id = targ.id;
- if (id && /^fbOutline\w$/.test(id)) return;
- if (id == "FirebugUI") return;
-
- // Avoid looking at text nodes in Opera
- while (targ.nodeType != 1) targ = targ.parentNode;
-
- //Firebug.Console.log(targ);
- Firebug.Inspector.stopInspecting();
- },
-
- onInspecting: function(e)
- {
- if (new Date().getTime() - lastInspecting > 30)
- {
- fbInspectFrame.style.display = "none";
- var targ = Firebug.browser.getElementFromPoint(e.clientX, e.clientY);
- fbInspectFrame.style.display = "block";
-
- // Avoid inspecting the outline, and the FirebugUI
- var id = targ.id;
- if (id && /^fbOutline\w$/.test(id)) return;
- if (id == "FirebugUI") return;
-
- // Avoid looking at text nodes in Opera
- while (targ.nodeType != 1) targ = targ.parentNode;
-
- if (targ.nodeName.toLowerCase() == "body") return;
-
- //Firebug.Console.log(e.clientX, e.clientY, targ);
- Firebug.Inspector.drawOutline(targ);
-
- if (ElementCache(targ))
- {
- var target = ""+ElementCache.key(targ);
- var lazySelect = function()
- {
- inspectorTS = new Date().getTime();
-
- if (Firebug.HTML)
- Firebug.HTML.selectTreeNode(""+ElementCache.key(targ));
- };
-
- if (inspectorTimer)
- {
- clearTimeout(inspectorTimer);
- inspectorTimer = null;
- }
-
- if (new Date().getTime() - inspectorTS > 200)
- setTimeout(lazySelect, 0);
- else
- inspectorTimer = setTimeout(lazySelect, 300);
- }
-
- lastInspecting = new Date().getTime();
- }
- },
-
- // TODO: xxxpedro remove this?
- onInspectingBody: function(e)
- {
- if (new Date().getTime() - lastInspecting > 30)
- {
- var targ = e.target;
-
- // Avoid inspecting the outline, and the FirebugUI
- var id = targ.id;
- if (id && /^fbOutline\w$/.test(id)) return;
- if (id == "FirebugUI") return;
-
- // Avoid looking at text nodes in Opera
- while (targ.nodeType != 1) targ = targ.parentNode;
-
- if (targ.nodeName.toLowerCase() == "body") return;
-
- //Firebug.Console.log(e.clientX, e.clientY, targ);
- Firebug.Inspector.drawOutline(targ);
-
- if (ElementCache.has(targ))
- FBL.Firebug.HTML.selectTreeNode(""+ElementCache.key(targ));
-
- lastInspecting = new Date().getTime();
- }
- },
-
- /**
- *
- * llttttttrr
- * llttttttrr
- * ll rr
- * ll rr
- * llbbbbbbrr
- * llbbbbbbrr
- */
- drawOutline: function(el)
- {
- var border = 2;
- var scrollbarSize = 17;
-
- var windowSize = Firebug.browser.getWindowSize();
- var scrollSize = Firebug.browser.getWindowScrollSize();
- var scrollPosition = Firebug.browser.getWindowScrollPosition();
-
- var box = Firebug.browser.getElementBox(el);
-
- var top = box.top;
- var left = box.left;
- var height = box.height;
- var width = box.width;
-
- var freeHorizontalSpace = scrollPosition.left + windowSize.width - left - width -
- (!isIE && scrollSize.height > windowSize.height ? // is *vertical* scrollbar visible
- scrollbarSize : 0);
-
- var freeVerticalSpace = scrollPosition.top + windowSize.height - top - height -
- (!isIE && scrollSize.width > windowSize.width ? // is *horizontal* scrollbar visible
- scrollbarSize : 0);
-
- var numVerticalBorders = freeVerticalSpace > 0 ? 2 : 1;
-
- var o = outlineElements;
- var style;
-
- style = o.fbOutlineT.style;
- style.top = top-border + "px";
- style.left = left + "px";
- style.height = border + "px"; // TODO: on initialize()
- style.width = width + "px";
-
- style = o.fbOutlineL.style;
- style.top = top-border + "px";
- style.left = left-border + "px";
- style.height = height+ numVerticalBorders*border + "px";
- style.width = border + "px"; // TODO: on initialize()
-
- style = o.fbOutlineB.style;
- if (freeVerticalSpace > 0)
- {
- style.top = top+height + "px";
- style.left = left + "px";
- style.width = width + "px";
- //style.height = border + "px"; // TODO: on initialize() or worst case?
- }
- else
- {
- style.top = -2*border + "px";
- style.left = -2*border + "px";
- style.width = border + "px";
- //style.height = border + "px";
- }
-
- style = o.fbOutlineR.style;
- if (freeHorizontalSpace > 0)
- {
- style.top = top-border + "px";
- style.left = left+width + "px";
- style.height = height + numVerticalBorders*border + "px";
- style.width = (freeHorizontalSpace < border ? freeHorizontalSpace : border) + "px";
- }
- else
- {
- style.top = -2*border + "px";
- style.left = -2*border + "px";
- style.height = border + "px";
- style.width = border + "px";
- }
-
- if (!outlineVisible) this.showOutline();
- },
-
- hideOutline: function()
- {
- if (!outlineVisible) return;
-
- for (var name in outline)
- offlineFragment.appendChild(outlineElements[name]);
-
- outlineVisible = false;
- },
-
- showOutline: function()
- {
- if (outlineVisible) return;
-
- if (boxModelVisible) this.hideBoxModel();
-
- for (var name in outline)
- Firebug.browser.document.getElementsByTagName("body")[0].appendChild(outlineElements[name]);
-
- outlineVisible = true;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Box Model
-
- drawBoxModel: function(el)
- {
- // avoid error when the element is not attached a document
- if (!el || !el.parentNode)
- return;
-
- var box = Firebug.browser.getElementBox(el);
-
- var windowSize = Firebug.browser.getWindowSize();
- var scrollPosition = Firebug.browser.getWindowScrollPosition();
-
- // element may be occluded by the chrome, when in frame mode
- var offsetHeight = Firebug.chrome.type == "frame" ? Firebug.context.persistedState.height : 0;
-
- // if element box is not inside the viewport, don't draw the box model
- if (box.top > scrollPosition.top + windowSize.height - offsetHeight ||
- box.left > scrollPosition.left + windowSize.width ||
- scrollPosition.top > box.top + box.height ||
- scrollPosition.left > box.left + box.width )
- return;
-
- var top = box.top;
- var left = box.left;
- var height = box.height;
- var width = box.width;
-
- var margin = Firebug.browser.getMeasurementBox(el, "margin");
- var padding = Firebug.browser.getMeasurementBox(el, "padding");
- var border = Firebug.browser.getMeasurementBox(el, "border");
-
- boxModelStyle.top = top - margin.top + "px";
- boxModelStyle.left = left - margin.left + "px";
- boxModelStyle.height = height + margin.top + margin.bottom + "px";
- boxModelStyle.width = width + margin.left + margin.right + "px";
-
- boxBorderStyle.top = margin.top + "px";
- boxBorderStyle.left = margin.left + "px";
- boxBorderStyle.height = height + "px";
- boxBorderStyle.width = width + "px";
-
- boxPaddingStyle.top = margin.top + border.top + "px";
- boxPaddingStyle.left = margin.left + border.left + "px";
- boxPaddingStyle.height = height - border.top - border.bottom + "px";
- boxPaddingStyle.width = width - border.left - border.right + "px";
-
- boxContentStyle.top = margin.top + border.top + padding.top + "px";
- boxContentStyle.left = margin.left + border.left + padding.left + "px";
- boxContentStyle.height = height - border.top - padding.top - padding.bottom - border.bottom + "px";
- boxContentStyle.width = width - border.left - padding.left - padding.right - border.right + "px";
-
- if (!boxModelVisible) this.showBoxModel();
- },
-
- hideBoxModel: function()
- {
- if (!boxModelVisible) return;
-
- offlineFragment.appendChild(boxModel);
- boxModelVisible = false;
- },
-
- showBoxModel: function()
- {
- if (boxModelVisible) return;
-
- if (outlineVisible) this.hideOutline();
-
- Firebug.browser.document.getElementsByTagName("body")[0].appendChild(boxModel);
- boxModelVisible = true;
- }
-
-};
-
-// ************************************************************************************************
-// Inspector Internals
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// Shared variables
-
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// Internal variables
-
-var offlineFragment = null;
-
-var boxModelVisible = false;
-
-var boxModel, boxModelStyle,
- boxMargin, boxMarginStyle,
- boxBorder, boxBorderStyle,
- boxPadding, boxPaddingStyle,
- boxContent, boxContentStyle;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var resetStyle = "margin:0; padding:0; border:0; position:absolute; overflow:hidden; display:block;";
-var offscreenStyle = resetStyle + "top:-1234px; left:-1234px;";
-
-var inspectStyle = resetStyle + "z-index: 2147483500;";
-var inspectFrameStyle = resetStyle + "z-index: 2147483550; top:0; left:0; background:url(" +
- Env.Location.skinDir + "pixel_transparent.gif);";
-
-//if (Env.Options.enableTrace) inspectFrameStyle = resetStyle + "z-index: 2147483550; top: 0; left: 0; background: #ff0; opacity: 0.05; _filter: alpha(opacity=5);";
-
-var inspectModelOpacity = isIE ? "filter:alpha(opacity=80);" : "opacity:0.8;";
-var inspectModelStyle = inspectStyle + inspectModelOpacity;
-var inspectMarginStyle = inspectStyle + "background: #EDFF64; height:100%; width:100%;";
-var inspectBorderStyle = inspectStyle + "background: #666;";
-var inspectPaddingStyle = inspectStyle + "background: SlateBlue;";
-var inspectContentStyle = inspectStyle + "background: SkyBlue;";
-
-
-var outlineStyle = {
- fbHorizontalLine: "background: #3875D7;height: 2px;",
- fbVerticalLine: "background: #3875D7;width: 2px;"
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var lastInspecting = 0;
-var fbInspectFrame = null;
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var outlineVisible = false;
-var outlineElements = {};
-var outline = {
- "fbOutlineT": "fbHorizontalLine",
- "fbOutlineL": "fbVerticalLine",
- "fbOutlineB": "fbHorizontalLine",
- "fbOutlineR": "fbVerticalLine"
-};
-
-
-var getInspectingTarget = function()
-{
-
-};
-
-// ************************************************************************************************
-// Section
-
-var createInspectorFrame = function createInspectorFrame()
-{
- fbInspectFrame = createGlobalElement("div");
- fbInspectFrame.id = "fbInspectFrame";
- fbInspectFrame.firebugIgnore = true;
- fbInspectFrame.style.cssText = inspectFrameStyle;
- Firebug.browser.document.getElementsByTagName("body")[0].appendChild(fbInspectFrame);
-};
-
-var destroyInspectorFrame = function destroyInspectorFrame()
-{
- if (fbInspectFrame)
- {
- Firebug.browser.document.getElementsByTagName("body")[0].removeChild(fbInspectFrame);
- fbInspectFrame = null;
- }
-};
-
-var createOutlineInspector = function createOutlineInspector()
-{
- for (var name in outline)
- {
- var el = outlineElements[name] = createGlobalElement("div");
- el.id = name;
- el.firebugIgnore = true;
- el.style.cssText = inspectStyle + outlineStyle[outline[name]];
- offlineFragment.appendChild(el);
- }
-};
-
-var destroyOutlineInspector = function destroyOutlineInspector()
-{
- for (var name in outline)
- {
- var el = outlineElements[name];
- el.parentNode.removeChild(el);
- }
-};
-
-var createBoxModelInspector = function createBoxModelInspector()
-{
- boxModel = createGlobalElement("div");
- boxModel.id = "fbBoxModel";
- boxModel.firebugIgnore = true;
- boxModelStyle = boxModel.style;
- boxModelStyle.cssText = inspectModelStyle;
-
- boxMargin = createGlobalElement("div");
- boxMargin.id = "fbBoxMargin";
- boxMarginStyle = boxMargin.style;
- boxMarginStyle.cssText = inspectMarginStyle;
- boxModel.appendChild(boxMargin);
-
- boxBorder = createGlobalElement("div");
- boxBorder.id = "fbBoxBorder";
- boxBorderStyle = boxBorder.style;
- boxBorderStyle.cssText = inspectBorderStyle;
- boxModel.appendChild(boxBorder);
-
- boxPadding = createGlobalElement("div");
- boxPadding.id = "fbBoxPadding";
- boxPaddingStyle = boxPadding.style;
- boxPaddingStyle.cssText = inspectPaddingStyle;
- boxModel.appendChild(boxPadding);
-
- boxContent = createGlobalElement("div");
- boxContent.id = "fbBoxContent";
- boxContentStyle = boxContent.style;
- boxContentStyle.cssText = inspectContentStyle;
- boxModel.appendChild(boxContent);
-
- offlineFragment.appendChild(boxModel);
-};
-
-var destroyBoxModelInspector = function destroyBoxModelInspector()
-{
- boxModel.parentNode.removeChild(boxModel);
-};
-
-// ************************************************************************************************
-// Section
-
-
-
-
-// ************************************************************************************************
-}});
-
-// Problems in IE
-// FIXED - eval return
-// FIXED - addEventListener problem in IE
-// FIXED doc.createRange?
-//
-// class reserved word
-// test all honza examples in IE6 and IE7
-
-
-/* See license.txt for terms of usage */
-
-( /** @scope s_domplate */ function() {
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-/** @class */
-FBL.DomplateTag = function DomplateTag(tagName)
-{
- this.tagName = tagName;
-};
-
-/**
- * @class
- * @extends FBL.DomplateTag
- */
-FBL.DomplateEmbed = function DomplateEmbed()
-{
-};
-
-/**
- * @class
- * @extends FBL.DomplateTag
- */
-FBL.DomplateLoop = function DomplateLoop()
-{
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var DomplateTag = FBL.DomplateTag;
-var DomplateEmbed = FBL.DomplateEmbed;
-var DomplateLoop = FBL.DomplateLoop;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var womb = null;
-
-FBL.domplate = function()
-{
- var lastSubject;
- for (var i = 0; i < arguments.length; ++i)
- lastSubject = lastSubject ? copyObject(lastSubject, arguments[i]) : arguments[i];
-
- for (var name in lastSubject)
- {
- var val = lastSubject[name];
- if (isTag(val))
- val.tag.subject = lastSubject;
- }
-
- return lastSubject;
-};
-
-var domplate = FBL.domplate;
-
-FBL.domplate.context = function(context, fn)
-{
- var lastContext = domplate.lastContext;
- domplate.topContext = context;
- fn.apply(context);
- domplate.topContext = lastContext;
-};
-
-FBL.TAG = function()
-{
- var embed = new DomplateEmbed();
- return embed.merge(arguments);
-};
-
-FBL.FOR = function()
-{
- var loop = new DomplateLoop();
- return loop.merge(arguments);
-};
-
-FBL.DomplateTag.prototype =
-{
- merge: function(args, oldTag)
- {
- if (oldTag)
- this.tagName = oldTag.tagName;
-
- this.context = oldTag ? oldTag.context : null;
- this.subject = oldTag ? oldTag.subject : null;
- this.attrs = oldTag ? copyObject(oldTag.attrs) : {};
- this.classes = oldTag ? copyObject(oldTag.classes) : {};
- this.props = oldTag ? copyObject(oldTag.props) : null;
- this.listeners = oldTag ? copyArray(oldTag.listeners) : null;
- this.children = oldTag ? copyArray(oldTag.children) : [];
- this.vars = oldTag ? copyArray(oldTag.vars) : [];
-
- var attrs = args.length ? args[0] : null;
- var hasAttrs = typeof(attrs) == "object" && !isTag(attrs);
-
- this.children = [];
-
- if (domplate.topContext)
- this.context = domplate.topContext;
-
- if (args.length)
- parseChildren(args, hasAttrs ? 1 : 0, this.vars, this.children);
-
- if (hasAttrs)
- this.parseAttrs(attrs);
-
- return creator(this, DomplateTag);
- },
-
- parseAttrs: function(args)
- {
- for (var name in args)
- {
- var val = parseValue(args[name]);
- readPartNames(val, this.vars);
-
- if (name.indexOf("on") == 0)
- {
- var eventName = name.substr(2);
- if (!this.listeners)
- this.listeners = [];
- this.listeners.push(eventName, val);
- }
- else if (name.indexOf("_") == 0)
- {
- var propName = name.substr(1);
- if (!this.props)
- this.props = {};
- this.props[propName] = val;
- }
- else if (name.indexOf("$") == 0)
- {
- var className = name.substr(1);
- if (!this.classes)
- this.classes = {};
- this.classes[className] = val;
- }
- else
- {
- if (name == "class" && this.attrs.hasOwnProperty(name) )
- this.attrs[name] += " " + val;
- else
- this.attrs[name] = val;
- }
- }
- },
-
- compile: function()
- {
- if (this.renderMarkup)
- return;
-
- this.compileMarkup();
- this.compileDOM();
-
- //if (FBTrace.DBG_DOM) FBTrace.sysout("domplate renderMarkup: ", this.renderMarkup);
- //if (FBTrace.DBG_DOM) FBTrace.sysout("domplate renderDOM:", this.renderDOM);
- //if (FBTrace.DBG_DOM) FBTrace.sysout("domplate domArgs:", this.domArgs);
- },
-
- compileMarkup: function()
- {
- this.markupArgs = [];
- var topBlock = [], topOuts = [], blocks = [], info = {args: this.markupArgs, argIndex: 0};
-
- this.generateMarkup(topBlock, topOuts, blocks, info);
- this.addCode(topBlock, topOuts, blocks);
-
- var fnBlock = ['r=(function (__code__, __context__, __in__, __out__'];
- for (var i = 0; i < info.argIndex; ++i)
- fnBlock.push(', s', i);
- fnBlock.push(') {');
-
- if (this.subject)
- fnBlock.push('with (this) {');
- if (this.context)
- fnBlock.push('with (__context__) {');
- fnBlock.push('with (__in__) {');
-
- fnBlock.push.apply(fnBlock, blocks);
-
- if (this.subject)
- fnBlock.push('}');
- if (this.context)
- fnBlock.push('}');
-
- fnBlock.push('}})');
-
- function __link__(tag, code, outputs, args)
- {
- if (!tag || !tag.tag)
- return;
-
- tag.tag.compile();
-
- var tagOutputs = [];
- var markupArgs = [code, tag.tag.context, args, tagOutputs];
- markupArgs.push.apply(markupArgs, tag.tag.markupArgs);
- tag.tag.renderMarkup.apply(tag.tag.subject, markupArgs);
-
- outputs.push(tag);
- outputs.push(tagOutputs);
- }
-
- function __escape__(value)
- {
- function replaceChars(ch)
- {
- switch (ch)
- {
- case "<":
- return "&lt;";
- case ">":
- return "&gt;";
- case "&":
- return "&amp;";
- case "'":
- return "&#39;";
- case '"':
- return "&quot;";
- }
- return "?";
- };
- return String(value).replace(/[<>&"']/g, replaceChars);
- }
-
- function __loop__(iter, outputs, fn)
- {
- var iterOuts = [];
- outputs.push(iterOuts);
-
- if (iter instanceof Array)
- iter = new ArrayIterator(iter);
-
- try
- {
- while (1)
- {
- var value = iter.next();
- var itemOuts = [0,0];
- iterOuts.push(itemOuts);
- fn.apply(this, [value, itemOuts]);
- }
- }
- catch (exc)
- {
- if (exc != StopIteration)
- throw exc;
- }
- }
-
- var js = fnBlock.join("");
- var r = null;
- eval(js);
- this.renderMarkup = r;
- },
-
- getVarNames: function(args)
- {
- if (this.vars)
- args.push.apply(args, this.vars);
-
- for (var i = 0; i < this.children.length; ++i)
- {
- var child = this.children[i];
- if (isTag(child))
- child.tag.getVarNames(args);
- else if (child instanceof Parts)
- {
- for (var i = 0; i < child.parts.length; ++i)
- {
- if (child.parts[i] instanceof Variable)
- {
- var name = child.parts[i].name;
- var names = name.split(".");
- args.push(names[0]);
- }
- }
- }
- }
- },
-
- generateMarkup: function(topBlock, topOuts, blocks, info)
- {
- topBlock.push(',"<', this.tagName, '"');
-
- for (var name in this.attrs)
- {
- if (name != "class")
- {
- var val = this.attrs[name];
- topBlock.push(', " ', name, '=\\""');
- addParts(val, ',', topBlock, info, true);
- topBlock.push(', "\\""');
- }
- }
-
- if (this.listeners)
- {
- for (var i = 0; i < this.listeners.length; i += 2)
- readPartNames(this.listeners[i+1], topOuts);
- }
-
- if (this.props)
- {
- for (var name in this.props)
- readPartNames(this.props[name], topOuts);
- }
-
- if ( this.attrs.hasOwnProperty("class") || this.classes)
- {
- topBlock.push(', " class=\\""');
- if (this.attrs.hasOwnProperty("class"))
- addParts(this.attrs["class"], ',', topBlock, info, true);
- topBlock.push(', " "');
- for (var name in this.classes)
- {
- topBlock.push(', (');
- addParts(this.classes[name], '', topBlock, info);
- topBlock.push(' ? "', name, '" + " " : "")');
- }
- topBlock.push(', "\\""');
- }
- topBlock.push(',">"');
-
- this.generateChildMarkup(topBlock, topOuts, blocks, info);
- topBlock.push(',"</', this.tagName, '>"');
- },
-
- generateChildMarkup: function(topBlock, topOuts, blocks, info)
- {
- for (var i = 0; i < this.children.length; ++i)
- {
- var child = this.children[i];
- if (isTag(child))
- child.tag.generateMarkup(topBlock, topOuts, blocks, info);
- else
- addParts(child, ',', topBlock, info, true);
- }
- },
-
- addCode: function(topBlock, topOuts, blocks)
- {
- if (topBlock.length)
- blocks.push('__code__.push(""', topBlock.join(""), ');');
- if (topOuts.length)
- blocks.push('__out__.push(', topOuts.join(","), ');');
- topBlock.splice(0, topBlock.length);
- topOuts.splice(0, topOuts.length);
- },
-
- addLocals: function(blocks)
- {
- var varNames = [];
- this.getVarNames(varNames);
-
- var map = {};
- for (var i = 0; i < varNames.length; ++i)
- {
- var name = varNames[i];
- if ( map.hasOwnProperty(name) )
- continue;
-
- map[name] = 1;
- var names = name.split(".");
- blocks.push('var ', names[0] + ' = ' + '__in__.' + names[0] + ';');
- }
- },
-
- compileDOM: function()
- {
- var path = [];
- var blocks = [];
- this.domArgs = [];
- path.embedIndex = 0;
- path.loopIndex = 0;
- path.staticIndex = 0;
- path.renderIndex = 0;
- var nodeCount = this.generateDOM(path, blocks, this.domArgs);
-
- var fnBlock = ['r=(function (root, context, o'];
-
- for (var i = 0; i < path.staticIndex; ++i)
- fnBlock.push(', ', 's'+i);
-
- for (var i = 0; i < path.renderIndex; ++i)
- fnBlock.push(', ', 'd'+i);
-
- fnBlock.push(') {');
- for (var i = 0; i < path.loopIndex; ++i)
- fnBlock.push('var l', i, ' = 0;');
- for (var i = 0; i < path.embedIndex; ++i)
- fnBlock.push('var e', i, ' = 0;');
-
- if (this.subject)
- fnBlock.push('with (this) {');
- if (this.context)
- fnBlock.push('with (context) {');
-
- fnBlock.push(blocks.join(""));
-
- if (this.subject)
- fnBlock.push('}');
- if (this.context)
- fnBlock.push('}');
-
- fnBlock.push('return ', nodeCount, ';');
- fnBlock.push('})');
-
- function __bind__(object, fn)
- {
- return function(event) { return fn.apply(object, [event]); };
- }
-
- function __link__(node, tag, args)
- {
- if (!tag || !tag.tag)
- return;
-
- tag.tag.compile();
-
- var domArgs = [node, tag.tag.context, 0];
- domArgs.push.apply(domArgs, tag.tag.domArgs);
- domArgs.push.apply(domArgs, args);
- //if (FBTrace.DBG_DOM) FBTrace.dumpProperties("domplate__link__ domArgs:", domArgs);
- return tag.tag.renderDOM.apply(tag.tag.subject, domArgs);
- }
-
- var self = this;
- function __loop__(iter, fn)
- {
- var nodeCount = 0;
- for (var i = 0; i < iter.length; ++i)
- {
- iter[i][0] = i;
- iter[i][1] = nodeCount;
- nodeCount += fn.apply(this, iter[i]);
- //if (FBTrace.DBG_DOM) FBTrace.sysout("nodeCount", nodeCount);
- }
- return nodeCount;
- }
-
- function __path__(parent, offset)
- {
- //if (FBTrace.DBG_DOM) FBTrace.sysout("domplate __path__ offset: "+ offset+"\n");
- var root = parent;
-
- for (var i = 2; i < arguments.length; ++i)
- {
- var index = arguments[i];
- if (i == 3)
- index += offset;
-
- if (index == -1)
- parent = parent.parentNode;
- else
- parent = parent.childNodes[index];
- }
-
- //if (FBTrace.DBG_DOM) FBTrace.sysout("domplate: "+arguments[2]+", root: "+ root+", parent: "+ parent+"\n");
- return parent;
- }
-
- var js = fnBlock.join("");
- //if (FBTrace.DBG_DOM) FBTrace.sysout(js.replace(/(\;|\{)/g, "$1\n"));
- var r = null;
- eval(js);
- this.renderDOM = r;
- },
-
- generateDOM: function(path, blocks, args)
- {
- if (this.listeners || this.props)
- this.generateNodePath(path, blocks);
-
- if (this.listeners)
- {
- for (var i = 0; i < this.listeners.length; i += 2)
- {
- var val = this.listeners[i+1];
- var arg = generateArg(val, path, args);
- //blocks.push('node.addEventListener("', this.listeners[i], '", __bind__(this, ', arg, '), false);');
- blocks.push('addEvent(node, "', this.listeners[i], '", __bind__(this, ', arg, '), false);');
- }
- }
-
- if (this.props)
- {
- for (var name in this.props)
- {
- var val = this.props[name];
- var arg = generateArg(val, path, args);
- blocks.push('node.', name, ' = ', arg, ';');
- }
- }
-
- this.generateChildDOM(path, blocks, args);
- return 1;
- },
-
- generateNodePath: function(path, blocks)
- {
- blocks.push("var node = __path__(root, o");
- for (var i = 0; i < path.length; ++i)
- blocks.push(",", path[i]);
- blocks.push(");");
- },
-
- generateChildDOM: function(path, blocks, args)
- {
- path.push(0);
- for (var i = 0; i < this.children.length; ++i)
- {
- var child = this.children[i];
- if (isTag(child))
- path[path.length-1] += '+' + child.tag.generateDOM(path, blocks, args);
- else
- path[path.length-1] += '+1';
- }
- path.pop();
- }
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-FBL.DomplateEmbed.prototype = copyObject(FBL.DomplateTag.prototype,
-/** @lends FBL.DomplateEmbed.prototype */
-{
- merge: function(args, oldTag)
- {
- this.value = oldTag ? oldTag.value : parseValue(args[0]);
- this.attrs = oldTag ? oldTag.attrs : {};
- this.vars = oldTag ? copyArray(oldTag.vars) : [];
-
- var attrs = args[1];
- for (var name in attrs)
- {
- var val = parseValue(attrs[name]);
- this.attrs[name] = val;
- readPartNames(val, this.vars);
- }
-
- return creator(this, DomplateEmbed);
- },
-
- getVarNames: function(names)
- {
- if (this.value instanceof Parts)
- names.push(this.value.parts[0].name);
-
- if (this.vars)
- names.push.apply(names, this.vars);
- },
-
- generateMarkup: function(topBlock, topOuts, blocks, info)
- {
- this.addCode(topBlock, topOuts, blocks);
-
- blocks.push('__link__(');
- addParts(this.value, '', blocks, info);
- blocks.push(', __code__, __out__, {');
-
- var lastName = null;
- for (var name in this.attrs)
- {
- if (lastName)
- blocks.push(',');
- lastName = name;
-
- var val = this.attrs[name];
- blocks.push('"', name, '":');
- addParts(val, '', blocks, info);
- }
-
- blocks.push('});');
- //this.generateChildMarkup(topBlock, topOuts, blocks, info);
- },
-
- generateDOM: function(path, blocks, args)
- {
- var embedName = 'e'+path.embedIndex++;
-
- this.generateNodePath(path, blocks);
-
- var valueName = 'd' + path.renderIndex++;
- var argsName = 'd' + path.renderIndex++;
- blocks.push(embedName + ' = __link__(node, ', valueName, ', ', argsName, ');');
-
- return embedName;
- }
-});
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-FBL.DomplateLoop.prototype = copyObject(FBL.DomplateTag.prototype,
-/** @lends FBL.DomplateLoop.prototype */
-{
- merge: function(args, oldTag)
- {
- this.varName = oldTag ? oldTag.varName : args[0];
- this.iter = oldTag ? oldTag.iter : parseValue(args[1]);
- this.vars = [];
-
- this.children = oldTag ? copyArray(oldTag.children) : [];
-
- var offset = Math.min(args.length, 2);
- parseChildren(args, offset, this.vars, this.children);
-
- return creator(this, DomplateLoop);
- },
-
- getVarNames: function(names)
- {
- if (this.iter instanceof Parts)
- names.push(this.iter.parts[0].name);
-
- DomplateTag.prototype.getVarNames.apply(this, [names]);
- },
-
- generateMarkup: function(topBlock, topOuts, blocks, info)
- {
- this.addCode(topBlock, topOuts, blocks);
-
- var iterName;
- if (this.iter instanceof Parts)
- {
- var part = this.iter.parts[0];
- iterName = part.name;
-
- if (part.format)
- {
- for (var i = 0; i < part.format.length; ++i)
- iterName = part.format[i] + "(" + iterName + ")";
- }
- }
- else
- iterName = this.iter;
-
- blocks.push('__loop__.apply(this, [', iterName, ', __out__, function(', this.varName, ', __out__) {');
- this.generateChildMarkup(topBlock, topOuts, blocks, info);
- this.addCode(topBlock, topOuts, blocks);
- blocks.push('}]);');
- },
-
- generateDOM: function(path, blocks, args)
- {
- var iterName = 'd'+path.renderIndex++;
- var counterName = 'i'+path.loopIndex;
- var loopName = 'l'+path.loopIndex++;
-
- if (!path.length)
- path.push(-1, 0);
-
- var preIndex = path.renderIndex;
- path.renderIndex = 0;
-
- var nodeCount = 0;
-
- var subBlocks = [];
- var basePath = path[path.length-1];
- for (var i = 0; i < this.children.length; ++i)
- {
- path[path.length-1] = basePath+'+'+loopName+'+'+nodeCount;
-
- var child = this.children[i];
- if (isTag(child))
- nodeCount += '+' + child.tag.generateDOM(path, subBlocks, args);
- else
- nodeCount += '+1';
- }
-
- path[path.length-1] = basePath+'+'+loopName;
-
- blocks.push(loopName,' = __loop__.apply(this, [', iterName, ', function(', counterName,',',loopName);
- for (var i = 0; i < path.renderIndex; ++i)
- blocks.push(',d'+i);
- blocks.push(') {');
- blocks.push(subBlocks.join(""));
- blocks.push('return ', nodeCount, ';');
- blocks.push('}]);');
-
- path.renderIndex = preIndex;
-
- return loopName;
- }
-});
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-/** @class */
-function Variable(name, format)
-{
- this.name = name;
- this.format = format;
-}
-
-/** @class */
-function Parts(parts)
-{
- this.parts = parts;
-}
-
-// ************************************************************************************************
-
-function parseParts(str)
-{
- var re = /\$([_A-Za-z][_A-Za-z0-9.|]*)/g;
- var index = 0;
- var parts = [];
-
- var m;
- while (m = re.exec(str))
- {
- var pre = str.substr(index, (re.lastIndex-m[0].length)-index);
- if (pre)
- parts.push(pre);
-
- var expr = m[1].split("|");
- parts.push(new Variable(expr[0], expr.slice(1)));
- index = re.lastIndex;
- }
-
- if (!index)
- return str;
-
- var post = str.substr(index);
- if (post)
- parts.push(post);
-
- return new Parts(parts);
-}
-
-function parseValue(val)
-{
- return typeof(val) == 'string' ? parseParts(val) : val;
-}
-
-function parseChildren(args, offset, vars, children)
-{
- for (var i = offset; i < args.length; ++i)
- {
- var val = parseValue(args[i]);
- children.push(val);
- readPartNames(val, vars);
- }
-}
-
-function readPartNames(val, vars)
-{
- if (val instanceof Parts)
- {
- for (var i = 0; i < val.parts.length; ++i)
- {
- var part = val.parts[i];
- if (part instanceof Variable)
- vars.push(part.name);
- }
- }
-}
-
-function generateArg(val, path, args)
-{
- if (val instanceof Parts)
- {
- var vals = [];
- for (var i = 0; i < val.parts.length; ++i)
- {
- var part = val.parts[i];
- if (part instanceof Variable)
- {
- var varName = 'd'+path.renderIndex++;
- if (part.format)
- {
- for (var j = 0; j < part.format.length; ++j)
- varName = part.format[j] + '(' + varName + ')';
- }
-
- vals.push(varName);
- }
- else
- vals.push('"'+part.replace(/"/g, '\\"')+'"');
- }
-
- return vals.join('+');
- }
- else
- {
- args.push(val);
- return 's' + path.staticIndex++;
- }
-}
-
-function addParts(val, delim, block, info, escapeIt)
-{
- var vals = [];
- if (val instanceof Parts)
- {
- for (var i = 0; i < val.parts.length; ++i)
- {
- var part = val.parts[i];
- if (part instanceof Variable)
- {
- var partName = part.name;
- if (part.format)
- {
- for (var j = 0; j < part.format.length; ++j)
- partName = part.format[j] + "(" + partName + ")";
- }
-
- if (escapeIt)
- vals.push("__escape__(" + partName + ")");
- else
- vals.push(partName);
- }
- else
- vals.push('"'+ part + '"');
- }
- }
- else if (isTag(val))
- {
- info.args.push(val);
- vals.push('s'+info.argIndex++);
- }
- else
- vals.push('"'+ val + '"');
-
- var parts = vals.join(delim);
- if (parts)
- block.push(delim, parts);
-}
-
-function isTag(obj)
-{
- return (typeof(obj) == "function" || obj instanceof Function) && !!obj.tag;
-}
-
-function creator(tag, cons)
-{
- var fn = new Function(
- "var tag = arguments.callee.tag;" +
- "var cons = arguments.callee.cons;" +
- "var newTag = new cons();" +
- "return newTag.merge(arguments, tag);");
-
- fn.tag = tag;
- fn.cons = cons;
- extend(fn, Renderer);
-
- return fn;
-}
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-function copyArray(oldArray)
-{
- var ary = [];
- if (oldArray)
- for (var i = 0; i < oldArray.length; ++i)
- ary.push(oldArray[i]);
- return ary;
-}
-
-function copyObject(l, r)
-{
- var m = {};
- extend(m, l);
- extend(m, r);
- return m;
-}
-
-function extend(l, r)
-{
- for (var n in r)
- l[n] = r[n];
-}
-
-function addEvent(object, name, handler)
-{
- if (document.all)
- object.attachEvent("on"+name, handler);
- else
- object.addEventListener(name, handler, false);
-}
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-/** @class */
-function ArrayIterator(array)
-{
- var index = -1;
-
- this.next = function()
- {
- if (++index >= array.length)
- throw StopIteration;
-
- return array[index];
- };
-}
-
-/** @class */
-function StopIteration() {}
-
-FBL.$break = function()
-{
- throw StopIteration;
-};
-
-// ************************************************************************************************
-
-/** @namespace */
-var Renderer =
-{
- renderHTML: function(args, outputs, self)
- {
- var code = [];
- var markupArgs = [code, this.tag.context, args, outputs];
- markupArgs.push.apply(markupArgs, this.tag.markupArgs);
- this.tag.renderMarkup.apply(self ? self : this.tag.subject, markupArgs);
- return code.join("");
- },
-
- insertRows: function(args, before, self)
- {
- this.tag.compile();
-
- var outputs = [];
- var html = this.renderHTML(args, outputs, self);
-
- var doc = before.ownerDocument;
- var div = doc.createElement("div");
- div.innerHTML = "<table><tbody>"+html+"</tbody></table>";
-
- var tbody = div.firstChild.firstChild;
- var parent = before.tagName == "TR" ? before.parentNode : before;
- var after = before.tagName == "TR" ? before.nextSibling : null;
-
- var firstRow = tbody.firstChild, lastRow;
- while (tbody.firstChild)
- {
- lastRow = tbody.firstChild;
- if (after)
- parent.insertBefore(lastRow, after);
- else
- parent.appendChild(lastRow);
- }
-
- var offset = 0;
- if (before.tagName == "TR")
- {
- var node = firstRow.parentNode.firstChild;
- for (; node && node != firstRow; node = node.nextSibling)
- ++offset;
- }
-
- var domArgs = [firstRow, this.tag.context, offset];
- domArgs.push.apply(domArgs, this.tag.domArgs);
- domArgs.push.apply(domArgs, outputs);
-
- this.tag.renderDOM.apply(self ? self : this.tag.subject, domArgs);
- return [firstRow, lastRow];
- },
-
- insertBefore: function(args, before, self)
- {
- return this.insertNode(args, before.ownerDocument, before, false, self);
- },
-
- insertAfter: function(args, after, self)
- {
- return this.insertNode(args, after.ownerDocument, after, true, self);
- },
-
- insertNode: function(args, doc, element, isAfter, self)
- {
- if (!args)
- args = {};
-
- this.tag.compile();
-
- var outputs = [];
- var html = this.renderHTML(args, outputs, self);
-
- //if (FBTrace.DBG_DOM)
- // FBTrace.sysout("domplate.insertNode html: "+html+"\n");
-
- var doc = element.ownerDocument;
- if (!womb || womb.ownerDocument != doc)
- womb = doc.createElement("div");
-
- womb.innerHTML = html;
-
- var root = womb.firstChild;
- if (isAfter)
- {
- while (womb.firstChild)
- if (element.nextSibling)
- element.parentNode.insertBefore(womb.firstChild, element.nextSibling);
- else
- element.parentNode.appendChild(womb.firstChild);
- }
- else
- {
- while (womb.lastChild)
- element.parentNode.insertBefore(womb.lastChild, element);
- }
-
- var domArgs = [root, this.tag.context, 0];
- domArgs.push.apply(domArgs, this.tag.domArgs);
- domArgs.push.apply(domArgs, outputs);
-
- //if (FBTrace.DBG_DOM)
- // FBTrace.sysout("domplate.insertNode domArgs:", domArgs);
- this.tag.renderDOM.apply(self ? self : this.tag.subject, domArgs);
-
- return root;
- },
- /**/
-
- /*
- insertAfter: function(args, before, self)
- {
- this.tag.compile();
-
- var outputs = [];
- var html = this.renderHTML(args, outputs, self);
-
- var doc = before.ownerDocument;
- if (!womb || womb.ownerDocument != doc)
- womb = doc.createElement("div");
-
- womb.innerHTML = html;
-
- var root = womb.firstChild;
- while (womb.firstChild)
- if (before.nextSibling)
- before.parentNode.insertBefore(womb.firstChild, before.nextSibling);
- else
- before.parentNode.appendChild(womb.firstChild);
-
- var domArgs = [root, this.tag.context, 0];
- domArgs.push.apply(domArgs, this.tag.domArgs);
- domArgs.push.apply(domArgs, outputs);
-
- this.tag.renderDOM.apply(self ? self : (this.tag.subject ? this.tag.subject : null),
- domArgs);
-
- return root;
- },
- /**/
-
- replace: function(args, parent, self)
- {
- this.tag.compile();
-
- var outputs = [];
- var html = this.renderHTML(args, outputs, self);
-
- var root;
- if (parent.nodeType == 1)
- {
- parent.innerHTML = html;
- root = parent.firstChild;
- }
- else
- {
- if (!parent || parent.nodeType != 9)
- parent = document;
-
- if (!womb || womb.ownerDocument != parent)
- womb = parent.createElement("div");
- womb.innerHTML = html;
-
- root = womb.firstChild;
- //womb.removeChild(root);
- }
-
- var domArgs = [root, this.tag.context, 0];
- domArgs.push.apply(domArgs, this.tag.domArgs);
- domArgs.push.apply(domArgs, outputs);
- this.tag.renderDOM.apply(self ? self : this.tag.subject, domArgs);
-
- return root;
- },
-
- append: function(args, parent, self)
- {
- this.tag.compile();
-
- var outputs = [];
- var html = this.renderHTML(args, outputs, self);
- //if (FBTrace.DBG_DOM) FBTrace.sysout("domplate.append html: "+html+"\n");
-
- if (!womb || womb.ownerDocument != parent.ownerDocument)
- womb = parent.ownerDocument.createElement("div");
- womb.innerHTML = html;
-
- // TODO: xxxpedro domplate port to Firebug
- var root = womb.firstChild;
- while (womb.firstChild)
- parent.appendChild(womb.firstChild);
-
- // clearing element reference to avoid reference error in IE8 when switching contexts
- womb = null;
-
- var domArgs = [root, this.tag.context, 0];
- domArgs.push.apply(domArgs, this.tag.domArgs);
- domArgs.push.apply(domArgs, outputs);
-
- //if (FBTrace.DBG_DOM) FBTrace.dumpProperties("domplate append domArgs:", domArgs);
- this.tag.renderDOM.apply(self ? self : this.tag.subject, domArgs);
-
- return root;
- }
-};
-
-// ************************************************************************************************
-
-function defineTags()
-{
- for (var i = 0; i < arguments.length; ++i)
- {
- var tagName = arguments[i];
- var fn = new Function("var newTag = new arguments.callee.DomplateTag('"+tagName+"'); return newTag.merge(arguments);");
- fn.DomplateTag = DomplateTag;
-
- var fnName = tagName.toUpperCase();
- FBL[fnName] = fn;
- }
-}
-
-defineTags(
- "a", "button", "br", "canvas", "code", "col", "colgroup", "div", "fieldset", "form", "h1", "h2", "h3", "hr",
- "img", "input", "label", "legend", "li", "ol", "optgroup", "option", "p", "pre", "select",
- "span", "strong", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "tr", "tt", "ul", "iframe"
-);
-
-})();
-
-
-/* See license.txt for terms of usage */
-
-var FirebugReps = FBL.ns(function() { with (FBL) {
-
-
-// ************************************************************************************************
-// Common Tags
-
-var OBJECTBOX = this.OBJECTBOX =
- SPAN({"class": "objectBox objectBox-$className"});
-
-var OBJECTBLOCK = this.OBJECTBLOCK =
- DIV({"class": "objectBox objectBox-$className"});
-
-var OBJECTLINK = this.OBJECTLINK = isIE6 ? // IE6 object link representation
- A({
- "class": "objectLink objectLink-$className a11yFocus",
- href: "javascript:void(0)",
- // workaround to show XPath (a better approach would use the tooltip on mouseover,
- // so the XPath information would be calculated dynamically, but we need to create
- // a tooltip class/wrapper around Menu or InfoTip)
- title: "$object|FBL.getElementXPath",
- _repObject: "$object"
- })
- : // Other browsers
- A({
- "class": "objectLink objectLink-$className a11yFocus",
- // workaround to show XPath (a better approach would use the tooltip on mouseover,
- // so the XPath information would be calculated dynamically, but we need to create
- // a tooltip class/wrapper around Menu or InfoTip)
- title: "$object|FBL.getElementXPath",
- _repObject: "$object"
- });
-
-
-// ************************************************************************************************
-
-this.Undefined = domplate(Firebug.Rep,
-{
- tag: OBJECTBOX("undefined"),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "undefined",
-
- supportsObject: function(object, type)
- {
- return type == "undefined";
- }
-});
-
-// ************************************************************************************************
-
-this.Null = domplate(Firebug.Rep,
-{
- tag: OBJECTBOX("null"),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "null",
-
- supportsObject: function(object, type)
- {
- return object == null;
- }
-});
-
-// ************************************************************************************************
-
-this.Nada = domplate(Firebug.Rep,
-{
- tag: SPAN(""),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "nada"
-});
-
-// ************************************************************************************************
-
-this.Number = domplate(Firebug.Rep,
-{
- tag: OBJECTBOX("$object"),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "number",
-
- supportsObject: function(object, type)
- {
- return type == "boolean" || type == "number";
- }
-});
-
-// ************************************************************************************************
-
-this.String = domplate(Firebug.Rep,
-{
- tag: OBJECTBOX("&quot;$object&quot;"),
-
- shortTag: OBJECTBOX("&quot;$object|cropString&quot;"),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "string",
-
- supportsObject: function(object, type)
- {
- return type == "string";
- }
-});
-
-// ************************************************************************************************
-
-this.Text = domplate(Firebug.Rep,
-{
- tag: OBJECTBOX("$object"),
-
- shortTag: OBJECTBOX("$object|cropString"),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "text"
-});
-
-// ************************************************************************************************
-
-this.Caption = domplate(Firebug.Rep,
-{
- tag: SPAN({"class": "caption"}, "$object")
-});
-
-// ************************************************************************************************
-
-this.Warning = domplate(Firebug.Rep,
-{
- tag: DIV({"class": "warning focusRow", role : 'listitem'}, "$object|STR")
-});
-
-// ************************************************************************************************
-
-this.Func = domplate(Firebug.Rep,
-{
- tag:
- OBJECTLINK("$object|summarizeFunction"),
-
- summarizeFunction: function(fn)
- {
- var fnRegex = /function ([^(]+\([^)]*\)) \{/;
- var fnText = safeToString(fn);
-
- var m = fnRegex.exec(fnText);
- return m ? m[1] : "function()";
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- copySource: function(fn)
- {
- copyToClipboard(safeToString(fn));
- },
-
- monitor: function(fn, script, monitored)
- {
- if (monitored)
- Firebug.Debugger.unmonitorScript(fn, script, "monitor");
- else
- Firebug.Debugger.monitorScript(fn, script, "monitor");
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "function",
-
- supportsObject: function(object, type)
- {
- return isFunction(object);
- },
-
- inspectObject: function(fn, context)
- {
- var sourceLink = findSourceForFunction(fn, context);
- if (sourceLink)
- Firebug.chrome.select(sourceLink);
- if (FBTrace.DBG_FUNCTION_NAME)
- FBTrace.sysout("reps.function.inspectObject selected sourceLink is ", sourceLink);
- },
-
- getTooltip: function(fn, context)
- {
- var script = findScriptForFunctionInContext(context, fn);
- if (script)
- return $STRF("Line", [normalizeURL(script.fileName), script.baseLineNumber]);
- else
- if (fn.toString)
- return fn.toString();
- },
-
- getTitle: function(fn, context)
- {
- var name = fn.name ? fn.name : "function";
- return name + "()";
- },
-
- getContextMenuItems: function(fn, target, context, script)
- {
- if (!script)
- script = findScriptForFunctionInContext(context, fn);
- if (!script)
- return;
-
- var scriptInfo = getSourceFileAndLineByScript(context, script);
- var monitored = scriptInfo ? fbs.isMonitored(scriptInfo.sourceFile.href, scriptInfo.lineNo) : false;
-
- var name = script ? getFunctionName(script, context) : fn.name;
- return [
- {label: "CopySource", command: bindFixed(this.copySource, this, fn) },
- "-",
- {label: $STRF("ShowCallsInConsole", [name]), nol10n: true,
- type: "checkbox", checked: monitored,
- command: bindFixed(this.monitor, this, fn, script, monitored) }
- ];
- }
-});
-
-// ************************************************************************************************
-/*
-this.jsdScript = domplate(Firebug.Rep,
-{
- copySource: function(script)
- {
- var fn = script.functionObject.getWrappedValue();
- return FirebugReps.Func.copySource(fn);
- },
-
- monitor: function(fn, script, monitored)
- {
- fn = script.functionObject.getWrappedValue();
- return FirebugReps.Func.monitor(fn, script, monitored);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "jsdScript",
- inspectable: false,
-
- supportsObject: function(object, type)
- {
- return object instanceof jsdIScript;
- },
-
- inspectObject: function(script, context)
- {
- var sourceLink = getSourceLinkForScript(script, context);
- if (sourceLink)
- Firebug.chrome.select(sourceLink);
- },
-
- getRealObject: function(script, context)
- {
- return script;
- },
-
- getTooltip: function(script)
- {
- return $STRF("jsdIScript", [script.tag]);
- },
-
- getTitle: function(script, context)
- {
- var fn = script.functionObject.getWrappedValue();
- return FirebugReps.Func.getTitle(fn, context);
- },
-
- getContextMenuItems: function(script, target, context)
- {
- var fn = script.functionObject.getWrappedValue();
-
- var scriptInfo = getSourceFileAndLineByScript(context, script);
- var monitored = scriptInfo ? fbs.isMonitored(scriptInfo.sourceFile.href, scriptInfo.lineNo) : false;
-
- var name = getFunctionName(script, context);
-
- return [
- {label: "CopySource", command: bindFixed(this.copySource, this, script) },
- "-",
- {label: $STRF("ShowCallsInConsole", [name]), nol10n: true,
- type: "checkbox", checked: monitored,
- command: bindFixed(this.monitor, this, fn, script, monitored) }
- ];
- }
-});
-/**/
-//************************************************************************************************
-
-this.Obj = domplate(Firebug.Rep,
-{
- tag:
- OBJECTLINK(
- SPAN({"class": "objectTitle"}, "$object|getTitle "),
-
- SPAN({"class": "objectProps"},
- SPAN({"class": "objectLeftBrace", role: "presentation"}, "{"),
- FOR("prop", "$object|propIterator",
- SPAN({"class": "objectPropName", role: "presentation"}, "$prop.name"),
- SPAN({"class": "objectEqual", role: "presentation"}, "$prop.equal"),
- TAG("$prop.tag", {object: "$prop.object"}),
- SPAN({"class": "objectComma", role: "presentation"}, "$prop.delim")
- ),
- SPAN({"class": "objectRightBrace"}, "}")
- )
- ),
-
- propNumberTag:
- SPAN({"class": "objectProp-number"}, "$object"),
-
- propStringTag:
- SPAN({"class": "objectProp-string"}, "&quot;$object&quot;"),
-
- propObjectTag:
- SPAN({"class": "objectProp-object"}, "$object"),
-
- propIterator: function (object)
- {
- ///Firebug.ObjectShortIteratorMax;
- var maxLength = 55; // default max length for long representation
-
- if (!object)
- return [];
-
- var props = [];
- var length = 0;
-
- var numProperties = 0;
- var numPropertiesShown = 0;
- var maxLengthReached = false;
-
- var lib = this;
-
- var propRepsMap =
- {
- "boolean": this.propNumberTag,
- "number": this.propNumberTag,
- "string": this.propStringTag,
- "object": this.propObjectTag
- };
-
- try
- {
- var title = Firebug.Rep.getTitle(object);
- length += title.length;
-
- for (var name in object)
- {
- var value;
- try
- {
- value = object[name];
- }
- catch (exc)
- {
- continue;
- }
-
- var type = typeof(value);
- if (type == "boolean" ||
- type == "number" ||
- (type == "string" && value) ||
- (type == "object" && value && value.toString))
- {
- var tag = propRepsMap[type];
-
- var value = (type == "object") ?
- Firebug.getRep(value).getTitle(value) :
- value + "";
-
- length += name.length + value.length + 4;
-
- if (length <= maxLength)
- {
- props.push({
- tag: tag,
- name: name,
- object: value,
- equal: "=",
- delim: ", "
- });
-
- numPropertiesShown++;
- }
- else
- maxLengthReached = true;
-
- }
-
- numProperties++;
-
- if (maxLengthReached && numProperties > numPropertiesShown)
- break;
- }
-
- if (numProperties > numPropertiesShown)
- {
- props.push({
- object: "...", //xxxHonza localization
- tag: FirebugReps.Caption.tag,
- name: "",
- equal:"",
- delim:""
- });
- }
- else if (props.length > 0)
- {
- props[props.length-1].delim = '';
- }
- }
- catch (exc)
- {
- // Sometimes we get exceptions when trying to read from certain objects, like
- // StorageList, but don't let that gum up the works
- // XXXjjb also History.previous fails because object is a web-page object which does not have
- // permission to read the history
- }
- return props;
- },
-
- fb_1_6_propIterator: function (object, max)
- {
- max = max || 3;
- if (!object)
- return [];
-
- var props = [];
- var len = 0, count = 0;
-
- try
- {
- for (var name in object)
- {
- var value;
- try
- {
- value = object[name];
- }
- catch (exc)
- {
- continue;
- }
-
- var t = typeof(value);
- if (t == "boolean" || t == "number" || (t == "string" && value)
- || (t == "object" && value && value.toString))
- {
- var rep = Firebug.getRep(value);
- var tag = rep.shortTag || rep.tag;
- if (t == "object")
- {
- value = rep.getTitle(value);
- tag = rep.titleTag;
- }
- count++;
- if (count <= max)
- props.push({tag: tag, name: name, object: value, equal: "=", delim: ", "});
- else
- break;
- }
- }
- if (count > max)
- {
- props[Math.max(1,max-1)] = {
- object: "more...", //xxxHonza localization
- tag: FirebugReps.Caption.tag,
- name: "",
- equal:"",
- delim:""
- };
- }
- else if (props.length > 0)
- {
- props[props.length-1].delim = '';
- }
- }
- catch (exc)
- {
- // Sometimes we get exceptions when trying to read from certain objects, like
- // StorageList, but don't let that gum up the works
- // XXXjjb also History.previous fails because object is a web-page object which does not have
- // permission to read the history
- }
- return props;
- },
-
- /*
- propIterator: function (object)
- {
- if (!object)
- return [];
-
- var props = [];
- var len = 0;
-
- try
- {
- for (var name in object)
- {
- var val;
- try
- {
- val = object[name];
- }
- catch (exc)
- {
- continue;
- }
-
- var t = typeof val;
- if (t == "boolean" || t == "number" || (t == "string" && val)
- || (t == "object" && !isFunction(val) && val && val.toString))
- {
- var title = (t == "object")
- ? Firebug.getRep(val).getTitle(val)
- : val+"";
-
- len += name.length + title.length + 1;
- if (len < 50)
- props.push({name: name, value: title});
- else
- break;
- }
- }
- }
- catch (exc)
- {
- // Sometimes we get exceptions when trying to read from certain objects, like
- // StorageList, but don't let that gum up the works
- // XXXjjb also History.previous fails because object is a web-page object which does not have
- // permission to read the history
- }
-
- return props;
- },
- /**/
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "object",
-
- supportsObject: function(object, type)
- {
- return true;
- }
-});
-
-
-// ************************************************************************************************
-
-this.Arr = domplate(Firebug.Rep,
-{
- tag:
- OBJECTBOX({_repObject: "$object"},
- SPAN({"class": "arrayLeftBracket", role : "presentation"}, "["),
- FOR("item", "$object|arrayIterator",
- TAG("$item.tag", {object: "$item.object"}),
- SPAN({"class": "arrayComma", role : "presentation"}, "$item.delim")
- ),
- SPAN({"class": "arrayRightBracket", role : "presentation"}, "]")
- ),
-
- shortTag:
- OBJECTBOX({_repObject: "$object"},
- SPAN({"class": "arrayLeftBracket", role : "presentation"}, "["),
- FOR("item", "$object|shortArrayIterator",
- TAG("$item.tag", {object: "$item.object"}),
- SPAN({"class": "arrayComma", role : "presentation"}, "$item.delim")
- ),
- // TODO: xxxpedro - confirm this on Firebug
- //FOR("prop", "$object|shortPropIterator",
- // " $prop.name=",
- // SPAN({"class": "objectPropValue"}, "$prop.value|cropString")
- //),
- SPAN({"class": "arrayRightBracket"}, "]")
- ),
-
- arrayIterator: function(array)
- {
- var items = [];
- for (var i = 0; i < array.length; ++i)
- {
- var value = array[i];
- var rep = Firebug.getRep(value);
- var tag = rep.shortTag ? rep.shortTag : rep.tag;
- var delim = (i == array.length-1 ? "" : ", ");
-
- items.push({object: value, tag: tag, delim: delim});
- }
-
- return items;
- },
-
- shortArrayIterator: function(array)
- {
- var items = [];
- for (var i = 0; i < array.length && i < 3; ++i)
- {
- var value = array[i];
- var rep = Firebug.getRep(value);
- var tag = rep.shortTag ? rep.shortTag : rep.tag;
- var delim = (i == array.length-1 ? "" : ", ");
-
- items.push({object: value, tag: tag, delim: delim});
- }
-
- if (array.length > 3)
- items.push({object: (array.length-3) + " more...", tag: FirebugReps.Caption.tag, delim: ""});
-
- return items;
- },
-
- shortPropIterator: this.Obj.propIterator,
-
- getItemIndex: function(child)
- {
- var arrayIndex = 0;
- for (child = child.previousSibling; child; child = child.previousSibling)
- {
- if (child.repObject)
- ++arrayIndex;
- }
- return arrayIndex;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "array",
-
- supportsObject: function(object)
- {
- return this.isArray(object);
- },
-
- // http://code.google.com/p/fbug/issues/detail?id=874
- // BEGIN Yahoo BSD Source (modified here) YAHOO.lang.isArray, YUI 2.2.2 June 2007
- isArray: function(obj) {
- try {
- if (!obj)
- return false;
- else if (isIE && !isFunction(obj) && typeof obj == "object" && isFinite(obj.length) && obj.nodeType != 8)
- return true;
- else if (isFinite(obj.length) && isFunction(obj.splice))
- return true;
- else if (isFinite(obj.length) && isFunction(obj.callee)) // arguments
- return true;
- else if (instanceOf(obj, "HTMLCollection"))
- return true;
- else if (instanceOf(obj, "NodeList"))
- return true;
- else
- return false;
- }
- catch(exc)
- {
- if (FBTrace.DBG_ERRORS)
- {
- FBTrace.sysout("isArray FAILS:", exc); /* Something weird: without the try/catch, OOM, with no exception?? */
- FBTrace.sysout("isArray Fails on obj", obj);
- }
- }
-
- return false;
- },
- // END Yahoo BSD SOURCE See license below.
-
- getTitle: function(object, context)
- {
- return "[" + object.length + "]";
- }
-});
-
-// ************************************************************************************************
-
-this.Property = domplate(Firebug.Rep,
-{
- supportsObject: function(object)
- {
- return object instanceof Property;
- },
-
- getRealObject: function(prop, context)
- {
- return prop.object[prop.name];
- },
-
- getTitle: function(prop, context)
- {
- return prop.name;
- }
-});
-
-// ************************************************************************************************
-
-this.NetFile = domplate(this.Obj,
-{
- supportsObject: function(object)
- {
- return object instanceof Firebug.NetFile;
- },
-
- browseObject: function(file, context)
- {
- openNewTab(file.href);
- return true;
- },
-
- getRealObject: function(file, context)
- {
- return null;
- }
-});
-
-// ************************************************************************************************
-
-this.Except = domplate(Firebug.Rep,
-{
- tag:
- OBJECTBOX({_repObject: "$object"}, "$object.message"),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "exception",
-
- supportsObject: function(object)
- {
- return object instanceof ErrorCopy;
- }
-});
-
-
-// ************************************************************************************************
-
-this.Element = domplate(Firebug.Rep,
-{
- tag:
- OBJECTLINK(
- "&lt;",
- SPAN({"class": "nodeTag"}, "$object.nodeName|toLowerCase"),
- FOR("attr", "$object|attrIterator",
- "&nbsp;$attr.nodeName=&quot;", SPAN({"class": "nodeValue"}, "$attr.nodeValue"), "&quot;"
- ),
- "&gt;"
- ),
-
- shortTag:
- OBJECTLINK(
- SPAN({"class": "$object|getVisible"},
- SPAN({"class": "selectorTag"}, "$object|getSelectorTag"),
- SPAN({"class": "selectorId"}, "$object|getSelectorId"),
- SPAN({"class": "selectorClass"}, "$object|getSelectorClass"),
- SPAN({"class": "selectorValue"}, "$object|getValue")
- )
- ),
-
- getVisible: function(elt)
- {
- return isVisible(elt) ? "" : "selectorHidden";
- },
-
- getSelectorTag: function(elt)
- {
- return elt.nodeName.toLowerCase();
- },
-
- getSelectorId: function(elt)
- {
- return elt.id ? "#" + elt.id : "";
- },
-
- getSelectorClass: function(elt)
- {
- return elt.className ? "." + elt.className.split(" ")[0] : "";
- },
-
- getValue: function(elt)
- {
- // TODO: xxxpedro
- return "";
- var value;
- if (elt instanceof HTMLImageElement)
- value = getFileName(elt.src);
- else if (elt instanceof HTMLAnchorElement)
- value = getFileName(elt.href);
- else if (elt instanceof HTMLInputElement)
- value = elt.value;
- else if (elt instanceof HTMLFormElement)
- value = getFileName(elt.action);
- else if (elt instanceof HTMLScriptElement)
- value = getFileName(elt.src);
-
- return value ? " " + cropString(value, 20) : "";
- },
-
- attrIterator: function(elt)
- {
- var attrs = [];
- var idAttr, classAttr;
- if (elt.attributes)
- {
- for (var i = 0; i < elt.attributes.length; ++i)
- {
- var attr = elt.attributes[i];
-
- // we must check if the attribute is specified otherwise IE will show them
- if (!attr.specified || attr.nodeName && attr.nodeName.indexOf("firebug-") != -1)
- continue;
- else if (attr.nodeName == "id")
- idAttr = attr;
- else if (attr.nodeName == "class")
- classAttr = attr;
- else if (attr.nodeName == "style")
- attrs.push({
- nodeName: attr.nodeName,
- nodeValue: attr.nodeValue ||
- // IE won't recognize the attr.nodeValue of <style> nodes ...
- // and will return CSS property names in upper case, so we need to convert them
- elt.style.cssText.replace(/([^\s]+)\s*:/g,
- function(m,g){return g.toLowerCase()+":"})
- });
- else
- attrs.push(attr);
- }
- }
- if (classAttr)
- attrs.splice(0, 0, classAttr);
- if (idAttr)
- attrs.splice(0, 0, idAttr);
-
- return attrs;
- },
-
- shortAttrIterator: function(elt)
- {
- var attrs = [];
- if (elt.attributes)
- {
- for (var i = 0; i < elt.attributes.length; ++i)
- {
- var attr = elt.attributes[i];
- if (attr.nodeName == "id" || attr.nodeName == "class")
- attrs.push(attr);
- }
- }
-
- return attrs;
- },
-
- getHidden: function(elt)
- {
- return isVisible(elt) ? "" : "nodeHidden";
- },
-
- getXPath: function(elt)
- {
- return getElementTreeXPath(elt);
- },
-
- // TODO: xxxpedro remove this?
- getNodeText: function(element)
- {
- var text = element.textContent;
- if (Firebug.showFullTextNodes)
- return text;
- else
- return cropString(text, 50);
- },
- /**/
-
- getNodeTextGroups: function(element)
- {
- var text = element.textContent;
- if (!Firebug.showFullTextNodes)
- {
- text=cropString(text,50);
- }
-
- var escapeGroups=[];
-
- if (Firebug.showTextNodesWithWhitespace)
- escapeGroups.push({
- 'group': 'whitespace',
- 'class': 'nodeWhiteSpace',
- 'extra': {
- '\t': '_Tab',
- '\n': '_Para',
- ' ' : '_Space'
- }
- });
- if (Firebug.showTextNodesWithEntities)
- escapeGroups.push({
- 'group':'text',
- 'class':'nodeTextEntity',
- 'extra':{}
- });
-
- if (escapeGroups.length)
- return escapeGroupsForEntities(text, escapeGroups);
- else
- return [{str:text,'class':'',extra:''}];
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- copyHTML: function(elt)
- {
- var html = getElementXML(elt);
- copyToClipboard(html);
- },
-
- copyInnerHTML: function(elt)
- {
- copyToClipboard(elt.innerHTML);
- },
-
- copyXPath: function(elt)
- {
- var xpath = getElementXPath(elt);
- copyToClipboard(xpath);
- },
-
- persistor: function(context, xpath)
- {
- var elts = xpath
- ? getElementsByXPath(context.window.document, xpath)
- : null;
-
- return elts && elts.length ? elts[0] : null;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "element",
-
- supportsObject: function(object)
- {
- //return object instanceof Element || object.nodeType == 1 && typeof object.nodeName == "string";
- return instanceOf(object, "Element");
- },
-
- browseObject: function(elt, context)
- {
- var tag = elt.nodeName.toLowerCase();
- if (tag == "script")
- openNewTab(elt.src);
- else if (tag == "link")
- openNewTab(elt.href);
- else if (tag == "a")
- openNewTab(elt.href);
- else if (tag == "img")
- openNewTab(elt.src);
-
- return true;
- },
-
- persistObject: function(elt, context)
- {
- var xpath = getElementXPath(elt);
-
- return bind(this.persistor, top, xpath);
- },
-
- getTitle: function(element, context)
- {
- return getElementCSSSelector(element);
- },
-
- getTooltip: function(elt)
- {
- return this.getXPath(elt);
- },
-
- getContextMenuItems: function(elt, target, context)
- {
- var monitored = areEventsMonitored(elt, null, context);
-
- return [
- {label: "CopyHTML", command: bindFixed(this.copyHTML, this, elt) },
- {label: "CopyInnerHTML", command: bindFixed(this.copyInnerHTML, this, elt) },
- {label: "CopyXPath", command: bindFixed(this.copyXPath, this, elt) },
- "-",
- {label: "ShowEventsInConsole", type: "checkbox", checked: monitored,
- command: bindFixed(toggleMonitorEvents, FBL, elt, null, monitored, context) },
- "-",
- {label: "ScrollIntoView", command: bindFixed(elt.scrollIntoView, elt) }
- ];
- }
-});
-
-// ************************************************************************************************
-
-this.TextNode = domplate(Firebug.Rep,
-{
- tag:
- OBJECTLINK(
- "&lt;",
- SPAN({"class": "nodeTag"}, "TextNode"),
- "&nbsp;textContent=&quot;", SPAN({"class": "nodeValue"}, "$object.textContent|cropString"), "&quot;",
- "&gt;"
- ),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "textNode",
-
- supportsObject: function(object)
- {
- return object instanceof Text;
- }
-});
-
-// ************************************************************************************************
-
-this.Document = domplate(Firebug.Rep,
-{
- tag:
- OBJECTLINK("Document ", SPAN({"class": "objectPropValue"}, "$object|getLocation")),
-
- getLocation: function(doc)
- {
- return doc.location ? getFileName(doc.location.href) : "";
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "object",
-
- supportsObject: function(object)
- {
- //return object instanceof Document || object instanceof XMLDocument;
- return instanceOf(object, "Document");
- },
-
- browseObject: function(doc, context)
- {
- openNewTab(doc.location.href);
- return true;
- },
-
- persistObject: function(doc, context)
- {
- return this.persistor;
- },
-
- persistor: function(context)
- {
- return context.window.document;
- },
-
- getTitle: function(win, context)
- {
- return "document";
- },
-
- getTooltip: function(doc)
- {
- return doc.location.href;
- }
-});
-
-// ************************************************************************************************
-
-this.StyleSheet = domplate(Firebug.Rep,
-{
- tag:
- OBJECTLINK("StyleSheet ", SPAN({"class": "objectPropValue"}, "$object|getLocation")),
-
- getLocation: function(styleSheet)
- {
- return getFileName(styleSheet.href);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- copyURL: function(styleSheet)
- {
- copyToClipboard(styleSheet.href);
- },
-
- openInTab: function(styleSheet)
- {
- openNewTab(styleSheet.href);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "object",
-
- supportsObject: function(object)
- {
- //return object instanceof CSSStyleSheet;
- return instanceOf(object, "CSSStyleSheet");
- },
-
- browseObject: function(styleSheet, context)
- {
- openNewTab(styleSheet.href);
- return true;
- },
-
- persistObject: function(styleSheet, context)
- {
- return bind(this.persistor, top, styleSheet.href);
- },
-
- getTooltip: function(styleSheet)
- {
- return styleSheet.href;
- },
-
- getContextMenuItems: function(styleSheet, target, context)
- {
- return [
- {label: "CopyLocation", command: bindFixed(this.copyURL, this, styleSheet) },
- "-",
- {label: "OpenInTab", command: bindFixed(this.openInTab, this, styleSheet) }
- ];
- },
-
- persistor: function(context, href)
- {
- return getStyleSheetByHref(href, context);
- }
-});
-
-// ************************************************************************************************
-
-this.Window = domplate(Firebug.Rep,
-{
- tag:
- OBJECTLINK("Window ", SPAN({"class": "objectPropValue"}, "$object|getLocation")),
-
- getLocation: function(win)
- {
- try
- {
- return (win && win.location && !win.closed) ? getFileName(win.location.href) : "";
- }
- catch (exc)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("reps.Window window closed?");
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "object",
-
- supportsObject: function(object)
- {
- return instanceOf(object, "Window");
- },
-
- browseObject: function(win, context)
- {
- openNewTab(win.location.href);
- return true;
- },
-
- persistObject: function(win, context)
- {
- return this.persistor;
- },
-
- persistor: function(context)
- {
- return context.window;
- },
-
- getTitle: function(win, context)
- {
- return "window";
- },
-
- getTooltip: function(win)
- {
- if (win && !win.closed)
- return win.location.href;
- }
-});
-
-// ************************************************************************************************
-
-this.Event = domplate(Firebug.Rep,
-{
- tag: TAG("$copyEventTag", {object: "$object|copyEvent"}),
-
- copyEventTag:
- OBJECTLINK("$object|summarizeEvent"),
-
- summarizeEvent: function(event)
- {
- var info = [event.type, ' '];
-
- var eventFamily = getEventFamily(event.type);
- if (eventFamily == "mouse")
- info.push("clientX=", event.clientX, ", clientY=", event.clientY);
- else if (eventFamily == "key")
- info.push("charCode=", event.charCode, ", keyCode=", event.keyCode);
-
- return info.join("");
- },
-
- copyEvent: function(event)
- {
- return new EventCopy(event);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "object",
-
- supportsObject: function(object)
- {
- //return object instanceof Event || object instanceof EventCopy;
- return instanceOf(object, "Event") || instanceOf(object, "EventCopy");
- },
-
- getTitle: function(event, context)
- {
- return "Event " + event.type;
- }
-});
-
-// ************************************************************************************************
-
-this.SourceLink = domplate(Firebug.Rep,
-{
- tag:
- OBJECTLINK({$collapsed: "$object|hideSourceLink"}, "$object|getSourceLinkTitle"),
-
- hideSourceLink: function(sourceLink)
- {
- return sourceLink ? sourceLink.href.indexOf("XPCSafeJSObjectWrapper") != -1 : true;
- },
-
- getSourceLinkTitle: function(sourceLink)
- {
- if (!sourceLink)
- return "";
-
- try
- {
- var fileName = getFileName(sourceLink.href);
- fileName = decodeURIComponent(fileName);
- fileName = cropString(fileName, 17);
- }
- catch(exc)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("reps.getSourceLinkTitle decodeURIComponent fails for \'"+fileName+"\': "+exc, exc);
- }
-
- return typeof sourceLink.line == "number" ?
- fileName + " (line " + sourceLink.line + ")" :
- fileName;
-
- // TODO: xxxpedro
- //return $STRF("Line", [fileName, sourceLink.line]);
- },
-
- copyLink: function(sourceLink)
- {
- copyToClipboard(sourceLink.href);
- },
-
- openInTab: function(sourceLink)
- {
- openNewTab(sourceLink.href);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "sourceLink",
-
- supportsObject: function(object)
- {
- return object instanceof SourceLink;
- },
-
- getTooltip: function(sourceLink)
- {
- return decodeURI(sourceLink.href);
- },
-
- inspectObject: function(sourceLink, context)
- {
- if (sourceLink.type == "js")
- {
- var scriptFile = getSourceFileByHref(sourceLink.href, context);
- if (scriptFile)
- return Firebug.chrome.select(sourceLink);
- }
- else if (sourceLink.type == "css")
- {
- // If an object is defined, treat it as the highest priority for
- // inspect actions
- if (sourceLink.object) {
- Firebug.chrome.select(sourceLink.object);
- return;
- }
-
- var stylesheet = getStyleSheetByHref(sourceLink.href, context);
- if (stylesheet)
- {
- var ownerNode = stylesheet.ownerNode;
- if (ownerNode)
- {
- Firebug.chrome.select(sourceLink, "html");
- return;
- }
-
- var panel = context.getPanel("stylesheet");
- if (panel && panel.getRuleByLine(stylesheet, sourceLink.line))
- return Firebug.chrome.select(sourceLink);
- }
- }
-
- // Fallback is to just open the view-source window on the file
- viewSource(sourceLink.href, sourceLink.line);
- },
-
- browseObject: function(sourceLink, context)
- {
- openNewTab(sourceLink.href);
- return true;
- },
-
- getContextMenuItems: function(sourceLink, target, context)
- {
- return [
- {label: "CopyLocation", command: bindFixed(this.copyLink, this, sourceLink) },
- "-",
- {label: "OpenInTab", command: bindFixed(this.openInTab, this, sourceLink) }
- ];
- }
-});
-
-// ************************************************************************************************
-
-this.SourceFile = domplate(this.SourceLink,
-{
- tag:
- OBJECTLINK({$collapsed: "$object|hideSourceLink"}, "$object|getSourceLinkTitle"),
-
- persistor: function(context, href)
- {
- return getSourceFileByHref(href, context);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "sourceFile",
-
- supportsObject: function(object)
- {
- return object instanceof SourceFile;
- },
-
- persistObject: function(sourceFile)
- {
- return bind(this.persistor, top, sourceFile.href);
- },
-
- browseObject: function(sourceLink, context)
- {
- },
-
- getTooltip: function(sourceFile)
- {
- return sourceFile.href;
- }
-});
-
-// ************************************************************************************************
-
-this.StackFrame = domplate(Firebug.Rep, // XXXjjb Since the repObject is fn the stack does not have correct line numbers
-{
- tag:
- OBJECTBLOCK(
- A({"class": "objectLink objectLink-function focusRow a11yFocus", _repObject: "$object.fn"}, "$object|getCallName"),
- " ( ",
- FOR("arg", "$object|argIterator",
- TAG("$arg.tag", {object: "$arg.value"}),
- SPAN({"class": "arrayComma"}, "$arg.delim")
- ),
- " )",
- SPAN({"class": "objectLink-sourceLink objectLink"}, "$object|getSourceLinkTitle")
- ),
-
- getCallName: function(frame)
- {
- //TODO: xxxpedro reps StackFrame
- return frame.name || "anonymous";
-
- //return getFunctionName(frame.script, frame.context);
- },
-
- getSourceLinkTitle: function(frame)
- {
- //TODO: xxxpedro reps StackFrame
- var fileName = cropString(getFileName(frame.href), 20);
- return fileName + (frame.lineNo ? " (line " + frame.lineNo + ")" : "");
-
- var fileName = cropString(getFileName(frame.href), 17);
- return $STRF("Line", [fileName, frame.lineNo]);
- },
-
- argIterator: function(frame)
- {
- if (!frame.args)
- return [];
-
- var items = [];
-
- for (var i = 0; i < frame.args.length; ++i)
- {
- var arg = frame.args[i];
-
- if (!arg)
- break;
-
- var rep = Firebug.getRep(arg.value);
- var tag = rep.shortTag ? rep.shortTag : rep.tag;
-
- var delim = (i == frame.args.length-1 ? "" : ", ");
-
- items.push({name: arg.name, value: arg.value, tag: tag, delim: delim});
- }
-
- return items;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "stackFrame",
-
- supportsObject: function(object)
- {
- return object instanceof StackFrame;
- },
-
- inspectObject: function(stackFrame, context)
- {
- var sourceLink = new SourceLink(stackFrame.href, stackFrame.lineNo, "js");
- Firebug.chrome.select(sourceLink);
- },
-
- getTooltip: function(stackFrame, context)
- {
- return $STRF("Line", [stackFrame.href, stackFrame.lineNo]);
- }
-
-});
-
-// ************************************************************************************************
-
-this.StackTrace = domplate(Firebug.Rep,
-{
- tag:
- FOR("frame", "$object.frames focusRow",
- TAG(this.StackFrame.tag, {object: "$frame"})
- ),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "stackTrace",
-
- supportsObject: function(object)
- {
- return object instanceof StackTrace;
- }
-});
-
-// ************************************************************************************************
-
-this.jsdStackFrame = domplate(Firebug.Rep,
-{
- inspectable: false,
-
- supportsObject: function(object)
- {
- return (object instanceof jsdIStackFrame) && (object.isValid);
- },
-
- getTitle: function(frame, context)
- {
- if (!frame.isValid) return "(invalid frame)"; // XXXjjb avoid frame.script == null
- return getFunctionName(frame.script, context);
- },
-
- getTooltip: function(frame, context)
- {
- if (!frame.isValid) return "(invalid frame)"; // XXXjjb avoid frame.script == null
- var sourceInfo = FBL.getSourceFileAndLineByScript(context, frame.script, frame);
- if (sourceInfo)
- return $STRF("Line", [sourceInfo.sourceFile.href, sourceInfo.lineNo]);
- else
- return $STRF("Line", [frame.script.fileName, frame.line]);
- },
-
- getContextMenuItems: function(frame, target, context)
- {
- var fn = frame.script.functionObject.getWrappedValue();
- return FirebugReps.Func.getContextMenuItems(fn, target, context, frame.script);
- }
-});
-
-// ************************************************************************************************
-
-this.ErrorMessage = domplate(Firebug.Rep,
-{
- tag:
- OBJECTBOX({
- $hasTwisty: "$object|hasStackTrace",
- $hasBreakSwitch: "$object|hasBreakSwitch",
- $breakForError: "$object|hasErrorBreak",
- _repObject: "$object",
- _stackTrace: "$object|getLastErrorStackTrace",
- onclick: "$onToggleError"},
-
- DIV({"class": "errorTitle a11yFocus", role : 'checkbox', 'aria-checked' : 'false'},
- "$object.message|getMessage"
- ),
- DIV({"class": "errorTrace"}),
- DIV({"class": "errorSourceBox errorSource-$object|getSourceType"},
- IMG({"class": "errorBreak a11yFocus", src:"blank.gif", role : 'checkbox', 'aria-checked':'false', title: "Break on this error"}),
- A({"class": "errorSource a11yFocus"}, "$object|getLine")
- ),
- TAG(this.SourceLink.tag, {object: "$object|getSourceLink"})
- ),
-
- getLastErrorStackTrace: function(error)
- {
- return error.trace;
- },
-
- hasStackTrace: function(error)
- {
- var url = error.href.toString();
- var fromCommandLine = (url.indexOf("XPCSafeJSObjectWrapper") != -1);
- return !fromCommandLine && error.trace;
- },
-
- hasBreakSwitch: function(error)
- {
- return error.href && error.lineNo > 0;
- },
-
- hasErrorBreak: function(error)
- {
- return fbs.hasErrorBreakpoint(error.href, error.lineNo);
- },
-
- getMessage: function(message)
- {
- var re = /\[Exception... "(.*?)" nsresult:/;
- var m = re.exec(message);
- return m ? m[1] : message;
- },
-
- getLine: function(error)
- {
- if (error.category == "js")
- {
- if (error.source)
- return cropString(error.source, 80);
- else if (error.href && error.href.indexOf("XPCSafeJSObjectWrapper") == -1)
- return cropString(error.getSourceLine(), 80);
- }
- },
-
- getSourceLink: function(error)
- {
- var ext = error.category == "css" ? "css" : "js";
- return error.lineNo ? new SourceLink(error.href, error.lineNo, ext) : null;
- },
-
- getSourceType: function(error)
- {
- // Errors occurring inside of HTML event handlers look like "foo.html (line 1)"
- // so let's try to skip those
- if (error.source)
- return "syntax";
- else if (error.lineNo == 1 && getFileExtension(error.href) != "js")
- return "none";
- else if (error.category == "css")
- return "none";
- else if (!error.href || !error.lineNo)
- return "none";
- else
- return "exec";
- },
-
- onToggleError: function(event)
- {
- var target = event.currentTarget;
- if (hasClass(event.target, "errorBreak"))
- {
- this.breakOnThisError(target.repObject);
- }
- else if (hasClass(event.target, "errorSource"))
- {
- var panel = Firebug.getElementPanel(event.target);
- this.inspectObject(target.repObject, panel.context);
- }
- else if (hasClass(event.target, "errorTitle"))
- {
- var traceBox = target.childNodes[1];
- toggleClass(target, "opened");
- event.target.setAttribute('aria-checked', hasClass(target, "opened"));
- if (hasClass(target, "opened"))
- {
- if (target.stackTrace)
- var node = FirebugReps.StackTrace.tag.append({object: target.stackTrace}, traceBox);
- if (Firebug.A11yModel.enabled)
- {
- var panel = Firebug.getElementPanel(event.target);
- dispatch([Firebug.A11yModel], "onLogRowContentCreated", [panel , traceBox]);
- }
- }
- else
- clearNode(traceBox);
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- copyError: function(error)
- {
- var message = [
- this.getMessage(error.message),
- error.href,
- "Line " + error.lineNo
- ];
- copyToClipboard(message.join("\n"));
- },
-
- breakOnThisError: function(error)
- {
- if (this.hasErrorBreak(error))
- Firebug.Debugger.clearErrorBreakpoint(error.href, error.lineNo);
- else
- Firebug.Debugger.setErrorBreakpoint(error.href, error.lineNo);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "errorMessage",
- inspectable: false,
-
- supportsObject: function(object)
- {
- return object instanceof ErrorMessage;
- },
-
- inspectObject: function(error, context)
- {
- var sourceLink = this.getSourceLink(error);
- FirebugReps.SourceLink.inspectObject(sourceLink, context);
- },
-
- getContextMenuItems: function(error, target, context)
- {
- var breakOnThisError = this.hasErrorBreak(error);
-
- var items = [
- {label: "CopyError", command: bindFixed(this.copyError, this, error) }
- ];
-
- if (error.category == "css")
- {
- items.push(
- "-",
- {label: "BreakOnThisError", type: "checkbox", checked: breakOnThisError,
- command: bindFixed(this.breakOnThisError, this, error) },
-
- optionMenu("BreakOnAllErrors", "breakOnErrors")
- );
- }
-
- return items;
- }
-});
-
-// ************************************************************************************************
-
-this.Assert = domplate(Firebug.Rep,
-{
- tag:
- DIV(
- DIV({"class": "errorTitle"}),
- DIV({"class": "assertDescription"})
- ),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "assert",
-
- inspectObject: function(error, context)
- {
- var sourceLink = this.getSourceLink(error);
- Firebug.chrome.select(sourceLink);
- },
-
- getContextMenuItems: function(error, target, context)
- {
- var breakOnThisError = this.hasErrorBreak(error);
-
- return [
- {label: "CopyError", command: bindFixed(this.copyError, this, error) },
- "-",
- {label: "BreakOnThisError", type: "checkbox", checked: breakOnThisError,
- command: bindFixed(this.breakOnThisError, this, error) },
- {label: "BreakOnAllErrors", type: "checkbox", checked: Firebug.breakOnErrors,
- command: bindFixed(this.breakOnAllErrors, this, error) }
- ];
- }
-});
-
-// ************************************************************************************************
-
-this.SourceText = domplate(Firebug.Rep,
-{
- tag:
- DIV(
- FOR("line", "$object|lineIterator",
- DIV({"class": "sourceRow", role : "presentation"},
- SPAN({"class": "sourceLine", role : "presentation"}, "$line.lineNo"),
- SPAN({"class": "sourceRowText", role : "presentation"}, "$line.text")
- )
- )
- ),
-
- lineIterator: function(sourceText)
- {
- var maxLineNoChars = (sourceText.lines.length + "").length;
- var list = [];
-
- for (var i = 0; i < sourceText.lines.length; ++i)
- {
- // Make sure all line numbers are the same width (with a fixed-width font)
- var lineNo = (i+1) + "";
- while (lineNo.length < maxLineNoChars)
- lineNo = " " + lineNo;
-
- list.push({lineNo: lineNo, text: sourceText.lines[i]});
- }
-
- return list;
- },
-
- getHTML: function(sourceText)
- {
- return getSourceLineRange(sourceText, 1, sourceText.lines.length);
- }
-});
-
-//************************************************************************************************
-this.nsIDOMHistory = domplate(Firebug.Rep,
-{
- tag:OBJECTBOX({onclick: "$showHistory"},
- OBJECTLINK("$object|summarizeHistory")
- ),
-
- className: "nsIDOMHistory",
-
- summarizeHistory: function(history)
- {
- try
- {
- var items = history.length;
- return items + " history entries";
- }
- catch(exc)
- {
- return "object does not support history (nsIDOMHistory)";
- }
- },
-
- showHistory: function(history)
- {
- try
- {
- var items = history.length; // if this throws, then unsupported
- Firebug.chrome.select(history);
- }
- catch (exc)
- {
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- supportsObject: function(object, type)
- {
- return (object instanceof Ci.nsIDOMHistory);
- }
-});
-
-// ************************************************************************************************
-this.ApplicationCache = domplate(Firebug.Rep,
-{
- tag:OBJECTBOX({onclick: "$showApplicationCache"},
- OBJECTLINK("$object|summarizeCache")
- ),
-
- summarizeCache: function(applicationCache)
- {
- try
- {
- return applicationCache.length + " items in offline cache";
- }
- catch(exc)
- {
- return "https://bugzilla.mozilla.org/show_bug.cgi?id=422264";
- }
- },
-
- showApplicationCache: function(event)
- {
- openNewTab("https://bugzilla.mozilla.org/show_bug.cgi?id=422264");
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "applicationCache",
-
- supportsObject: function(object, type)
- {
- if (Ci.nsIDOMOfflineResourceList)
- return (object instanceof Ci.nsIDOMOfflineResourceList);
- }
-
-});
-
-this.Storage = domplate(Firebug.Rep,
-{
- tag: OBJECTBOX({onclick: "$show"}, OBJECTLINK("$object|summarize")),
-
- summarize: function(storage)
- {
- return storage.length +" items in Storage";
- },
- show: function(storage)
- {
- openNewTab("http://dev.w3.org/html5/webstorage/#storage-0");
- },
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- className: "Storage",
-
- supportsObject: function(object, type)
- {
- return (object instanceof Storage);
- }
-
-});
-
-// ************************************************************************************************
-Firebug.registerRep(
- //this.nsIDOMHistory, // make this early to avoid exceptions
- this.Undefined,
- this.Null,
- this.Number,
- this.String,
- this.Window,
- //this.ApplicationCache, // must come before Arr (array) else exceptions.
- //this.ErrorMessage,
- this.Element,
- //this.TextNode,
- this.Document,
- this.StyleSheet,
- this.Event,
- //this.SourceLink,
- //this.SourceFile,
- //this.StackTrace,
- //this.StackFrame,
- //this.jsdStackFrame,
- //this.jsdScript,
- //this.NetFile,
- this.Property,
- this.Except,
- this.Arr
-);
-
-Firebug.setDefaultReps(this.Func, this.Obj);
-
-}});
-
-// ************************************************************************************************
-/*
- * The following is http://developer.yahoo.com/yui/license.txt and applies to only code labeled "Yahoo BSD Source"
- * in only this file reps.js. John J. Barton June 2007.
- *
-Software License Agreement (BSD License)
-
-Copyright (c) 2006, Yahoo! Inc.
-All rights reserved.
-
-Redistribution and use of this software in source and binary forms, with or without modification, are
-permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above
- copyright notice, this list of conditions and the
- following disclaimer.
-
-* Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the
- following disclaimer in the documentation and/or other
- materials provided with the distribution.
-
-* Neither the name of Yahoo! Inc. nor the names of its
- contributors may be used to endorse or promote products
- derived from this software without specific prior
- written permission of Yahoo! Inc.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * /
- */
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-
-// ************************************************************************************************
-// Constants
-
-var saveTimeout = 400;
-var pageAmount = 10;
-
-// ************************************************************************************************
-// Globals
-
-var currentTarget = null;
-var currentGroup = null;
-var currentPanel = null;
-var currentEditor = null;
-
-var defaultEditor = null;
-
-var originalClassName = null;
-
-var originalValue = null;
-var defaultValue = null;
-var previousValue = null;
-
-var invalidEditor = false;
-var ignoreNextInput = false;
-
-// ************************************************************************************************
-
-Firebug.Editor = extend(Firebug.Module,
-{
- supportsStopEvent: true,
-
- dispatchName: "editor",
- tabCharacter: " ",
-
- startEditing: function(target, value, editor)
- {
- this.stopEditing();
-
- if (hasClass(target, "insertBefore") || hasClass(target, "insertAfter"))
- return;
-
- var panel = Firebug.getElementPanel(target);
- if (!panel.editable)
- return;
-
- if (FBTrace.DBG_EDITOR)
- FBTrace.sysout("editor.startEditing " + value, target);
-
- defaultValue = target.getAttribute("defaultValue");
- if (value == undefined)
- {
- var textContent = isIE ? "innerText" : "textContent";
- value = target[textContent];
- if (value == defaultValue)
- value = "";
- }
-
- originalValue = previousValue = value;
-
- invalidEditor = false;
- currentTarget = target;
- currentPanel = panel;
- currentGroup = getAncestorByClass(target, "editGroup");
-
- currentPanel.editing = true;
-
- var panelEditor = currentPanel.getEditor(target, value);
- currentEditor = editor ? editor : panelEditor;
- if (!currentEditor)
- currentEditor = getDefaultEditor(currentPanel);
-
- var inlineParent = getInlineParent(target);
- var targetSize = getOffsetSize(inlineParent);
-
- setClass(panel.panelNode, "editing");
- setClass(target, "editing");
- if (currentGroup)
- setClass(currentGroup, "editing");
-
- currentEditor.show(target, currentPanel, value, targetSize);
- //dispatch(this.fbListeners, "onBeginEditing", [currentPanel, currentEditor, target, value]);
- currentEditor.beginEditing(target, value);
- if (FBTrace.DBG_EDITOR)
- FBTrace.sysout("Editor start panel "+currentPanel.name);
- this.attachListeners(currentEditor, panel.context);
- },
-
- stopEditing: function(cancel)
- {
- if (!currentTarget)
- return;
-
- if (FBTrace.DBG_EDITOR)
- FBTrace.sysout("editor.stopEditing cancel:" + cancel+" saveTimeout: "+this.saveTimeout);
-
- clearTimeout(this.saveTimeout);
- delete this.saveTimeout;
-
- this.detachListeners(currentEditor, currentPanel.context);
-
- removeClass(currentPanel.panelNode, "editing");
- removeClass(currentTarget, "editing");
- if (currentGroup)
- removeClass(currentGroup, "editing");
-
- var value = currentEditor.getValue();
- if (value == defaultValue)
- value = "";
-
- var removeGroup = currentEditor.endEditing(currentTarget, value, cancel);
-
- try
- {
- if (cancel)
- {
- //dispatch([Firebug.A11yModel], 'onInlineEditorClose', [currentPanel, currentTarget, removeGroup && !originalValue]);
- if (value != originalValue)
- this.saveEditAndNotifyListeners(currentTarget, originalValue, previousValue);
-
- if (removeGroup && !originalValue && currentGroup)
- currentGroup.parentNode.removeChild(currentGroup);
- }
- else if (!value)
- {
- this.saveEditAndNotifyListeners(currentTarget, null, previousValue);
-
- if (removeGroup && currentGroup)
- currentGroup.parentNode.removeChild(currentGroup);
- }
- else
- this.save(value);
- }
- catch (exc)
- {
- //throw exc.message;
- //ERROR(exc);
- }
-
- currentEditor.hide();
- currentPanel.editing = false;
-
- //dispatch(this.fbListeners, "onStopEdit", [currentPanel, currentEditor, currentTarget]);
- //if (FBTrace.DBG_EDITOR)
- // FBTrace.sysout("Editor stop panel "+currentPanel.name);
-
- currentTarget = null;
- currentGroup = null;
- currentPanel = null;
- currentEditor = null;
- originalValue = null;
- invalidEditor = false;
-
- return value;
- },
-
- cancelEditing: function()
- {
- return this.stopEditing(true);
- },
-
- update: function(saveNow)
- {
- if (this.saveTimeout)
- clearTimeout(this.saveTimeout);
-
- invalidEditor = true;
-
- currentEditor.layout();
-
- if (saveNow)
- this.save();
- else
- {
- var context = currentPanel.context;
- this.saveTimeout = context.setTimeout(bindFixed(this.save, this), saveTimeout);
- if (FBTrace.DBG_EDITOR)
- FBTrace.sysout("editor.update saveTimeout: "+this.saveTimeout);
- }
- },
-
- save: function(value)
- {
- if (!invalidEditor)
- return;
-
- if (value == undefined)
- value = currentEditor.getValue();
- if (FBTrace.DBG_EDITOR)
- FBTrace.sysout("editor.save saveTimeout: "+this.saveTimeout+" currentPanel: "+(currentPanel?currentPanel.name:"null"));
- try
- {
- this.saveEditAndNotifyListeners(currentTarget, value, previousValue);
-
- previousValue = value;
- invalidEditor = false;
- }
- catch (exc)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("editor.save FAILS "+exc, exc);
- }
- },
-
- saveEditAndNotifyListeners: function(currentTarget, value, previousValue)
- {
- currentEditor.saveEdit(currentTarget, value, previousValue);
- //dispatch(this.fbListeners, "onSaveEdit", [currentPanel, currentEditor, currentTarget, value, previousValue]);
- },
-
- setEditTarget: function(element)
- {
- if (!element)
- {
- dispatch([Firebug.A11yModel], 'onInlineEditorClose', [currentPanel, currentTarget, true]);
- this.stopEditing();
- }
- else if (hasClass(element, "insertBefore"))
- this.insertRow(element, "before");
- else if (hasClass(element, "insertAfter"))
- this.insertRow(element, "after");
- else
- this.startEditing(element);
- },
-
- tabNextEditor: function()
- {
- if (!currentTarget)
- return;
-
- var value = currentEditor.getValue();
- var nextEditable = currentTarget;
- do
- {
- nextEditable = !value && currentGroup
- ? getNextOutsider(nextEditable, currentGroup)
- : getNextByClass(nextEditable, "editable");
- }
- while (nextEditable && !nextEditable.offsetHeight);
-
- this.setEditTarget(nextEditable);
- },
-
- tabPreviousEditor: function()
- {
- if (!currentTarget)
- return;
-
- var value = currentEditor.getValue();
- var prevEditable = currentTarget;
- do
- {
- prevEditable = !value && currentGroup
- ? getPreviousOutsider(prevEditable, currentGroup)
- : getPreviousByClass(prevEditable, "editable");
- }
- while (prevEditable && !prevEditable.offsetHeight);
-
- this.setEditTarget(prevEditable);
- },
-
- insertRow: function(relative, insertWhere)
- {
- var group =
- relative || getAncestorByClass(currentTarget, "editGroup") || currentTarget;
- var value = this.stopEditing();
-
- currentPanel = Firebug.getElementPanel(group);
-
- currentEditor = currentPanel.getEditor(group, value);
- if (!currentEditor)
- currentEditor = getDefaultEditor(currentPanel);
-
- currentGroup = currentEditor.insertNewRow(group, insertWhere);
- if (!currentGroup)
- return;
-
- var editable = hasClass(currentGroup, "editable")
- ? currentGroup
- : getNextByClass(currentGroup, "editable");
-
- if (editable)
- this.setEditTarget(editable);
- },
-
- insertRowForObject: function(relative)
- {
- var container = getAncestorByClass(relative, "insertInto");
- if (container)
- {
- relative = getChildByClass(container, "insertBefore");
- if (relative)
- this.insertRow(relative, "before");
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- attachListeners: function(editor, context)
- {
- var win = isIE ?
- currentTarget.ownerDocument.parentWindow :
- currentTarget.ownerDocument.defaultView;
-
- addEvent(win, "resize", this.onResize);
- addEvent(win, "blur", this.onBlur);
-
- var chrome = Firebug.chrome;
-
- this.listeners = [
- chrome.keyCodeListen("ESCAPE", null, bind(this.cancelEditing, this))
- ];
-
- if (editor.arrowCompletion)
- {
- this.listeners.push(
- chrome.keyCodeListen("UP", null, bindFixed(editor.completeValue, editor, -1)),
- chrome.keyCodeListen("DOWN", null, bindFixed(editor.completeValue, editor, 1)),
- chrome.keyCodeListen("PAGE_UP", null, bindFixed(editor.completeValue, editor, -pageAmount)),
- chrome.keyCodeListen("PAGE_DOWN", null, bindFixed(editor.completeValue, editor, pageAmount))
- );
- }
-
- if (currentEditor.tabNavigation)
- {
- this.listeners.push(
- chrome.keyCodeListen("RETURN", null, bind(this.tabNextEditor, this)),
- chrome.keyCodeListen("RETURN", isControl, bind(this.insertRow, this, null, "after")),
- chrome.keyCodeListen("TAB", null, bind(this.tabNextEditor, this)),
- chrome.keyCodeListen("TAB", isShift, bind(this.tabPreviousEditor, this))
- );
- }
- else if (currentEditor.multiLine)
- {
- this.listeners.push(
- chrome.keyCodeListen("TAB", null, insertTab)
- );
- }
- else
- {
- this.listeners.push(
- chrome.keyCodeListen("RETURN", null, bindFixed(this.stopEditing, this))
- );
-
- if (currentEditor.tabCompletion)
- {
- this.listeners.push(
- chrome.keyCodeListen("TAB", null, bind(editor.completeValue, editor, 1)),
- chrome.keyCodeListen("TAB", isShift, bind(editor.completeValue, editor, -1))
- );
- }
- }
- },
-
- detachListeners: function(editor, context)
- {
- if (!this.listeners)
- return;
-
- var win = isIE ?
- currentTarget.ownerDocument.parentWindow :
- currentTarget.ownerDocument.defaultView;
-
- removeEvent(win, "resize", this.onResize);
- removeEvent(win, "blur", this.onBlur);
-
- var chrome = Firebug.chrome;
- if (chrome)
- {
- for (var i = 0; i < this.listeners.length; ++i)
- chrome.keyIgnore(this.listeners[i]);
- }
-
- delete this.listeners;
- },
-
- onResize: function(event)
- {
- currentEditor.layout(true);
- },
-
- onBlur: function(event)
- {
- if (currentEditor.enterOnBlur && isAncestor(event.target, currentEditor.box))
- this.stopEditing();
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Module
-
- initialize: function()
- {
- Firebug.Module.initialize.apply(this, arguments);
-
- this.onResize = bindFixed(this.onResize, this);
- this.onBlur = bind(this.onBlur, this);
- },
-
- disable: function()
- {
- this.stopEditing();
- },
-
- showContext: function(browser, context)
- {
- this.stopEditing();
- },
-
- showPanel: function(browser, panel)
- {
- this.stopEditing();
- }
-});
-
-// ************************************************************************************************
-// BaseEditor
-
-Firebug.BaseEditor = extend(Firebug.MeasureBox,
-{
- getValue: function()
- {
- },
-
- setValue: function(value)
- {
- },
-
- show: function(target, panel, value, textSize, targetSize)
- {
- },
-
- hide: function()
- {
- },
-
- layout: function(forceAll)
- {
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Support for context menus within inline editors.
-
- getContextMenuItems: function(target)
- {
- var items = [];
- items.push({label: "Cut", commandID: "cmd_cut"});
- items.push({label: "Copy", commandID: "cmd_copy"});
- items.push({label: "Paste", commandID: "cmd_paste"});
- return items;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Editor Module listeners will get "onBeginEditing" just before this call
-
- beginEditing: function(target, value)
- {
- },
-
- // Editor Module listeners will get "onSaveEdit" just after this call
- saveEdit: function(target, value, previousValue)
- {
- },
-
- endEditing: function(target, value, cancel)
- {
- // Remove empty groups by default
- return true;
- },
-
- insertNewRow: function(target, insertWhere)
- {
- }
-});
-
-// ************************************************************************************************
-// InlineEditor
-
-// basic inline editor attributes
-var inlineEditorAttributes = {
- "class": "textEditorInner",
-
- type: "text",
- spellcheck: "false",
-
- onkeypress: "$onKeyPress",
-
- onoverflow: "$onOverflow",
- oncontextmenu: "$onContextMenu"
-};
-
-// IE does not support the oninput event, so we're using the onkeydown to signalize
-// the relevant keyboard events, and the onpropertychange to actually handle the
-// input event, which should happen after the onkeydown event is fired and after the
-// value of the input is updated, but before the onkeyup and before the input (with the
-// new value) is rendered
-if (isIE)
-{
- inlineEditorAttributes.onpropertychange = "$onInput";
- inlineEditorAttributes.onkeydown = "$onKeyDown";
-}
-// for other browsers we use the oninput event
-else
-{
- inlineEditorAttributes.oninput = "$onInput";
-}
-
-Firebug.InlineEditor = function(doc)
-{
- this.initializeInline(doc);
-};
-
-Firebug.InlineEditor.prototype = domplate(Firebug.BaseEditor,
-{
- enterOnBlur: true,
- outerMargin: 8,
- shadowExpand: 7,
-
- tag:
- DIV({"class": "inlineEditor"},
- DIV({"class": "textEditorTop1"},
- DIV({"class": "textEditorTop2"})
- ),
- DIV({"class": "textEditorInner1"},
- DIV({"class": "textEditorInner2"},
- INPUT(
- inlineEditorAttributes
- )
- )
- ),
- DIV({"class": "textEditorBottom1"},
- DIV({"class": "textEditorBottom2"})
- )
- ),
-
- inputTag :
- INPUT({"class": "textEditorInner", type: "text",
- /*oninput: "$onInput",*/ onkeypress: "$onKeyPress", onoverflow: "$onOverflow"}
- ),
-
- expanderTag:
- IMG({"class": "inlineExpander", src: "blank.gif"}),
-
- initialize: function()
- {
- this.fixedWidth = false;
- this.completeAsYouType = true;
- this.tabNavigation = true;
- this.multiLine = false;
- this.tabCompletion = false;
- this.arrowCompletion = true;
- this.noWrap = true;
- this.numeric = false;
- },
-
- destroy: function()
- {
- this.destroyInput();
- },
-
- initializeInline: function(doc)
- {
- if (FBTrace.DBG_EDITOR)
- FBTrace.sysout("Firebug.InlineEditor initializeInline()");
-
- //this.box = this.tag.replace({}, doc, this);
- this.box = this.tag.append({}, doc.body, this);
-
- //this.input = this.box.childNodes[1].firstChild.firstChild; // XXXjjb childNode[1] required
- this.input = this.box.getElementsByTagName("input")[0];
-
- if (isIElt8)
- {
- this.input.style.top = "-8px";
- }
-
- this.expander = this.expanderTag.replace({}, doc, this);
- this.initialize();
- },
-
- destroyInput: function()
- {
- // XXXjoe Need to remove input/keypress handlers to avoid leaks
- },
-
- getValue: function()
- {
- return this.input.value;
- },
-
- setValue: function(value)
- {
- // It's only a one-line editor, so new lines shouldn't be allowed
- return this.input.value = stripNewLines(value);
- },
-
- show: function(target, panel, value, targetSize)
- {
- //dispatch([Firebug.A11yModel], "onInlineEditorShow", [panel, this]);
- this.target = target;
- this.panel = panel;
-
- this.targetSize = targetSize;
-
- // TODO: xxxpedro editor
- //this.targetOffset = getClientOffset(target);
-
- // Some browsers (IE, Google Chrome and Safari) will have problem trying to get the
- // offset values of invisible elements, or empty elements. So, in order to get the
- // correct values, we temporary inject a character in the innerHTML of the empty element,
- // then we get the offset values, and next, we restore the original innerHTML value.
- var innerHTML = target.innerHTML;
- var isEmptyElement = !innerHTML;
- if (isEmptyElement)
- target.innerHTML = ".";
-
- // Get the position of the target element (that is about to be edited)
- this.targetOffset =
- {
- x: target.offsetLeft,
- y: target.offsetTop
- };
-
- // Restore the original innerHTML value of the empty element
- if (isEmptyElement)
- target.innerHTML = innerHTML;
-
- this.originalClassName = this.box.className;
-
- var classNames = target.className.split(" ");
- for (var i = 0; i < classNames.length; ++i)
- setClass(this.box, "editor-" + classNames[i]);
-
- // Make the editor match the target's font style
- copyTextStyles(target, this.box);
-
- this.setValue(value);
-
- if (this.fixedWidth)
- this.updateLayout(true);
- else
- {
- this.startMeasuring(target);
- this.textSize = this.measureInputText(value);
-
- // Correct the height of the box to make the funky CSS drop-shadow line up
- var parent = this.input.parentNode;
- if (hasClass(parent, "textEditorInner2"))
- {
- var yDiff = this.textSize.height - this.shadowExpand;
-
- // IE6 height offset
- if (isIE6)
- yDiff -= 2;
-
- parent.style.height = yDiff + "px";
- parent.parentNode.style.height = yDiff + "px";
- }
-
- this.updateLayout(true);
- }
-
- this.getAutoCompleter().reset();
-
- if (isIElt8)
- panel.panelNode.appendChild(this.box);
- else
- target.offsetParent.appendChild(this.box);
-
- //console.log(target);
- //this.input.select(); // it's called bellow, with setTimeout
-
- if (isIE)
- {
- // reset input style
- this.input.style.fontFamily = "Monospace";
- this.input.style.fontSize = "11px";
- }
-
- // Insert the "expander" to cover the target element with white space
- if (!this.fixedWidth)
- {
- copyBoxStyles(target, this.expander);
-
- target.parentNode.replaceChild(this.expander, target);
- collapse(target, true);
- this.expander.parentNode.insertBefore(target, this.expander);
- }
-
- //TODO: xxxpedro
- //scrollIntoCenterView(this.box, null, true);
-
- // Display the editor after change its size and position to avoid flickering
- this.box.style.display = "block";
-
- // we need to call input.focus() and input.select() with a timeout,
- // otherwise it won't work on all browsers due to timing issues
- var self = this;
- setTimeout(function(){
- self.input.focus();
- self.input.select();
- },0);
- },
-
- hide: function()
- {
- this.box.className = this.originalClassName;
-
- if (!this.fixedWidth)
- {
- this.stopMeasuring();
-
- collapse(this.target, false);
-
- if (this.expander.parentNode)
- this.expander.parentNode.removeChild(this.expander);
- }
-
- if (this.box.parentNode)
- {
- ///setSelectionRange(this.input, 0, 0);
- this.input.blur();
-
- this.box.parentNode.removeChild(this.box);
- }
-
- delete this.target;
- delete this.panel;
- },
-
- layout: function(forceAll)
- {
- if (!this.fixedWidth)
- this.textSize = this.measureInputText(this.input.value);
-
- if (forceAll)
- this.targetOffset = getClientOffset(this.expander);
-
- this.updateLayout(false, forceAll);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- beginEditing: function(target, value)
- {
- },
-
- saveEdit: function(target, value, previousValue)
- {
- },
-
- endEditing: function(target, value, cancel)
- {
- // Remove empty groups by default
- return true;
- },
-
- insertNewRow: function(target, insertWhere)
- {
- },
-
- advanceToNext: function(target, charCode)
- {
- return false;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- getAutoCompleteRange: function(value, offset)
- {
- },
-
- getAutoCompleteList: function(preExpr, expr, postExpr)
- {
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- getAutoCompleter: function()
- {
- if (!this.autoCompleter)
- {
- this.autoCompleter = new Firebug.AutoCompleter(null,
- bind(this.getAutoCompleteRange, this), bind(this.getAutoCompleteList, this),
- true, false);
- }
-
- return this.autoCompleter;
- },
-
- completeValue: function(amt)
- {
- //console.log("completeValue");
-
- var selectRangeCallback = this.getAutoCompleter().complete(currentPanel.context, this.input, true, amt < 0);
-
- if (selectRangeCallback)
- {
- Firebug.Editor.update(true);
-
- // We need to select the editor text after calling update in Safari/Chrome,
- // otherwise the text won't be selected
- if (isSafari)
- setTimeout(selectRangeCallback,0);
- else
- selectRangeCallback();
- }
- else
- this.incrementValue(amt);
- },
-
- incrementValue: function(amt)
- {
- var value = this.input.value;
-
- // TODO: xxxpedro editor
- if (isIE)
- var start = getInputSelectionStart(this.input), end = start;
- else
- var start = this.input.selectionStart, end = this.input.selectionEnd;
-
- //debugger;
- var range = this.getAutoCompleteRange(value, start);
- if (!range || range.type != "int")
- range = {start: 0, end: value.length-1};
-
- var expr = value.substr(range.start, range.end-range.start+1);
- preExpr = value.substr(0, range.start);
- postExpr = value.substr(range.end+1);
-
- // See if the value is an integer, and if so increment it
- var intValue = parseInt(expr);
- if (!!intValue || intValue == 0)
- {
- var m = /\d+/.exec(expr);
- var digitPost = expr.substr(m.index+m[0].length);
-
- var completion = intValue-amt;
- this.input.value = preExpr + completion + digitPost + postExpr;
-
- setSelectionRange(this.input, start, end);
-
- Firebug.Editor.update(true);
-
- return true;
- }
- else
- return false;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- onKeyPress: function(event)
- {
- //console.log("onKeyPress", event);
- if (event.keyCode == 27 && !this.completeAsYouType)
- {
- var reverted = this.getAutoCompleter().revert(this.input);
- if (reverted)
- cancelEvent(event);
- }
- else if (event.charCode && this.advanceToNext(this.target, event.charCode))
- {
- Firebug.Editor.tabNextEditor();
- cancelEvent(event);
- }
- else
- {
- if (this.numeric && event.charCode && (event.charCode < 48 || event.charCode > 57)
- && event.charCode != 45 && event.charCode != 46)
- FBL.cancelEvent(event);
- else
- {
- // If the user backspaces, don't autocomplete after the upcoming input event
- this.ignoreNextInput = event.keyCode == 8;
- }
- }
- },
-
- onOverflow: function()
- {
- this.updateLayout(false, false, 3);
- },
-
- onKeyDown: function(event)
- {
- //console.log("onKeyDown", event.keyCode);
- if (event.keyCode > 46 || event.keyCode == 32 || event.keyCode == 8)
- {
- this.keyDownPressed = true;
- }
- },
-
- onInput: function(event)
- {
- //debugger;
-
- // skip not relevant onpropertychange calls on IE
- if (isIE)
- {
- if (event.propertyName != "value" || !isVisible(this.input) || !this.keyDownPressed)
- return;
-
- this.keyDownPressed = false;
- }
-
- //console.log("onInput", event);
- //console.trace();
-
- var selectRangeCallback;
-
- if (this.ignoreNextInput)
- {
- this.ignoreNextInput = false;
- this.getAutoCompleter().reset();
- }
- else if (this.completeAsYouType)
- selectRangeCallback = this.getAutoCompleter().complete(currentPanel.context, this.input, false);
- else
- this.getAutoCompleter().reset();
-
- Firebug.Editor.update();
-
- if (selectRangeCallback)
- {
- // We need to select the editor text after calling update in Safari/Chrome,
- // otherwise the text won't be selected
- if (isSafari)
- setTimeout(selectRangeCallback,0);
- else
- selectRangeCallback();
- }
- },
-
- onContextMenu: function(event)
- {
- cancelEvent(event);
-
- var popup = $("fbInlineEditorPopup");
- FBL.eraseNode(popup);
-
- var target = event.target || event.srcElement;
- var menu = this.getContextMenuItems(target);
- if (menu)
- {
- for (var i = 0; i < menu.length; ++i)
- FBL.createMenuItem(popup, menu[i]);
- }
-
- if (!popup.firstChild)
- return false;
-
- popup.openPopupAtScreen(event.screenX, event.screenY, true);
- return true;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- updateLayout: function(initial, forceAll, extraWidth)
- {
- if (this.fixedWidth)
- {
- this.box.style.left = (this.targetOffset.x) + "px";
- this.box.style.top = (this.targetOffset.y) + "px";
-
- var w = this.target.offsetWidth;
- var h = this.target.offsetHeight;
- this.input.style.width = w + "px";
- this.input.style.height = (h-3) + "px";
- }
- else
- {
- if (initial || forceAll)
- {
- this.box.style.left = this.targetOffset.x + "px";
- this.box.style.top = this.targetOffset.y + "px";
- }
-
- var approxTextWidth = this.textSize.width;
- var maxWidth = (currentPanel.panelNode.scrollWidth - this.targetOffset.x)
- - this.outerMargin;
-
- var wrapped = initial
- ? this.noWrap && this.targetSize.height > this.textSize.height+3
- : this.noWrap && approxTextWidth > maxWidth;
-
- if (wrapped)
- {
- var style = isIE ?
- this.target.currentStyle :
- this.target.ownerDocument.defaultView.getComputedStyle(this.target, "");
-
- targetMargin = parseInt(style.marginLeft) + parseInt(style.marginRight);
-
- // Make the width fit the remaining x-space from the offset to the far right
- approxTextWidth = maxWidth - targetMargin;
-
- this.input.style.width = "100%";
- this.box.style.width = approxTextWidth + "px";
- }
- else
- {
- // Make the input one character wider than the text value so that
- // typing does not ever cause the textbox to scroll
- var charWidth = this.measureInputText('m').width;
-
- // Sometimes we need to make the editor a little wider, specifically when
- // an overflow happens, otherwise it will scroll off some text on the left
- if (extraWidth)
- charWidth *= extraWidth;
-
- var inputWidth = approxTextWidth + charWidth;
-
- if (initial)
- {
- if (isIE)
- {
- // TODO: xxxpedro
- var xDiff = 13;
- this.box.style.width = (inputWidth + xDiff) + "px";
- }
- else
- this.box.style.width = "auto";
- }
- else
- {
- // TODO: xxxpedro
- var xDiff = isIE ? 13: this.box.scrollWidth - this.input.offsetWidth;
- this.box.style.width = (inputWidth + xDiff) + "px";
- }
-
- this.input.style.width = inputWidth + "px";
- }
-
- this.expander.style.width = approxTextWidth + "px";
- this.expander.style.height = Math.max(this.textSize.height-3,0) + "px";
- }
-
- if (forceAll)
- scrollIntoCenterView(this.box, null, true);
- }
-});
-
-// ************************************************************************************************
-// Autocompletion
-
-Firebug.AutoCompleter = function(getExprOffset, getRange, evaluator, selectMode, caseSensitive)
-{
- var candidates = null;
- var originalValue = null;
- var originalOffset = -1;
- var lastExpr = null;
- var lastOffset = -1;
- var exprOffset = 0;
- var lastIndex = 0;
- var preParsed = null;
- var preExpr = null;
- var postExpr = null;
-
- this.revert = function(textBox)
- {
- if (originalOffset != -1)
- {
- textBox.value = originalValue;
-
- setSelectionRange(textBox, originalOffset, originalOffset);
-
- this.reset();
- return true;
- }
- else
- {
- this.reset();
- return false;
- }
- };
-
- this.reset = function()
- {
- candidates = null;
- originalValue = null;
- originalOffset = -1;
- lastExpr = null;
- lastOffset = 0;
- exprOffset = 0;
- };
-
- this.complete = function(context, textBox, cycle, reverse)
- {
- //console.log("complete", context, textBox, cycle, reverse);
- // TODO: xxxpedro important port to firebug (variable leak)
- //var value = lastValue = textBox.value;
- var value = textBox.value;
-
- //var offset = textBox.selectionStart;
- var offset = getInputSelectionStart(textBox);
-
- // The result of selectionStart() in Safari/Chrome is 1 unit less than the result
- // in Firefox. Therefore, we need to manually adjust the value here.
- if (isSafari && !cycle && offset >= 0) offset++;
-
- if (!selectMode && originalOffset != -1)
- offset = originalOffset;
-
- if (!candidates || !cycle || offset != lastOffset)
- {
- originalOffset = offset;
- originalValue = value;
-
- // Find the part of the string that will be parsed
- var parseStart = getExprOffset ? getExprOffset(value, offset, context) : 0;
- preParsed = value.substr(0, parseStart);
- var parsed = value.substr(parseStart);
-
- // Find the part of the string that is being completed
- var range = getRange ? getRange(parsed, offset-parseStart, context) : null;
- if (!range)
- range = {start: 0, end: parsed.length-1 };
-
- var expr = parsed.substr(range.start, range.end-range.start+1);
- preExpr = parsed.substr(0, range.start);
- postExpr = parsed.substr(range.end+1);
- exprOffset = parseStart + range.start;
-
- if (!cycle)
- {
- if (!expr)
- return;
- else if (lastExpr && lastExpr.indexOf(expr) != 0)
- {
- candidates = null;
- }
- else if (lastExpr && lastExpr.length >= expr.length)
- {
- candidates = null;
- lastExpr = expr;
- return;
- }
- }
-
- lastExpr = expr;
- lastOffset = offset;
-
- var searchExpr;
-
- // Check if the cursor is at the very right edge of the expression, or
- // somewhere in the middle of it
- if (expr && offset != parseStart+range.end+1)
- {
- if (cycle)
- {
- // We are in the middle of the expression, but we can
- // complete by cycling to the next item in the values
- // list after the expression
- offset = range.start;
- searchExpr = expr;
- expr = "";
- }
- else
- {
- // We can't complete unless we are at the ridge edge
- return;
- }
- }
-
- var values = evaluator(preExpr, expr, postExpr, context);
- if (!values)
- return;
-
- if (expr)
- {
- // Filter the list of values to those which begin with expr. We
- // will then go on to complete the first value in the resulting list
- candidates = [];
-
- if (caseSensitive)
- {
- for (var i = 0; i < values.length; ++i)
- {
- var name = values[i];
- if (name.indexOf && name.indexOf(expr) == 0)
- candidates.push(name);
- }
- }
- else
- {
- var lowerExpr = caseSensitive ? expr : expr.toLowerCase();
- for (var i = 0; i < values.length; ++i)
- {
- var name = values[i];
- if (name.indexOf && name.toLowerCase().indexOf(lowerExpr) == 0)
- candidates.push(name);
- }
- }
-
- lastIndex = reverse ? candidates.length-1 : 0;
- }
- else if (searchExpr)
- {
- var searchIndex = -1;
-
- // Find the first instance of searchExpr in the values list. We
- // will then complete the string that is found
- if (caseSensitive)
- {
- searchIndex = values.indexOf(expr);
- }
- else
- {
- var lowerExpr = searchExpr.toLowerCase();
- for (var i = 0; i < values.length; ++i)
- {
- var name = values[i];
- if (name && name.toLowerCase().indexOf(lowerExpr) == 0)
- {
- searchIndex = i;
- break;
- }
- }
- }
-
- // Nothing found, so there's nothing to complete to
- if (searchIndex == -1)
- return this.reset();
-
- expr = searchExpr;
- candidates = cloneArray(values);
- lastIndex = searchIndex;
- }
- else
- {
- expr = "";
- candidates = [];
- for (var i = 0; i < values.length; ++i)
- {
- if (values[i].substr)
- candidates.push(values[i]);
- }
- lastIndex = -1;
- }
- }
-
- if (cycle)
- {
- expr = lastExpr;
- lastIndex += reverse ? -1 : 1;
- }
-
- if (!candidates.length)
- return;
-
- if (lastIndex >= candidates.length)
- lastIndex = 0;
- else if (lastIndex < 0)
- lastIndex = candidates.length-1;
-
- var completion = candidates[lastIndex];
- var preCompletion = expr.substr(0, offset-exprOffset);
- var postCompletion = completion.substr(offset-exprOffset);
-
- textBox.value = preParsed + preExpr + preCompletion + postCompletion + postExpr;
- var offsetEnd = preParsed.length + preExpr.length + completion.length;
-
- // TODO: xxxpedro remove the following commented code, if the lib.setSelectionRange()
- // is working well.
- /*
- if (textBox.setSelectionRange)
- {
- // we must select the range with a timeout, otherwise the text won't
- // be properly selected (because after this function executes, the editor's
- // input will be resized to fit the whole text)
- setTimeout(function(){
- if (selectMode)
- textBox.setSelectionRange(offset, offsetEnd);
- else
- textBox.setSelectionRange(offsetEnd, offsetEnd);
- },0);
- }
- /**/
-
- // we must select the range with a timeout, otherwise the text won't
- // be properly selected (because after this function executes, the editor's
- // input will be resized to fit the whole text)
- /*
- setTimeout(function(){
- if (selectMode)
- setSelectionRange(textBox, offset, offsetEnd);
- else
- setSelectionRange(textBox, offsetEnd, offsetEnd);
- },0);
-
- return true;
- /**/
-
- // The editor text should be selected only after calling the editor.update()
- // in Safari/Chrome, otherwise the text won't be selected. So, we're returning
- // a function to be called later (in the proper time for all browsers).
- //
- // TODO: xxxpedro see if we can move the editor.update() calls to here, and avoid
- // returning a closure. the complete() function seems to be called only twice in
- // editor.js. See if this function is called anywhere else (like css.js for example).
- return function(){
- //console.log("autocomplete ", textBox, offset, offsetEnd);
-
- if (selectMode)
- setSelectionRange(textBox, offset, offsetEnd);
- else
- setSelectionRange(textBox, offsetEnd, offsetEnd);
- };
- /**/
- };
-};
-
-// ************************************************************************************************
-// Local Helpers
-
-var getDefaultEditor = function getDefaultEditor(panel)
-{
- if (!defaultEditor)
- {
- var doc = panel.document;
- defaultEditor = new Firebug.InlineEditor(doc);
- }
-
- return defaultEditor;
-}
-
-/**
- * An outsider is the first element matching the stepper element that
- * is not an child of group. Elements tagged with insertBefore or insertAfter
- * classes are also excluded from these results unless they are the sibling
- * of group, relative to group's parent editGroup. This allows for the proper insertion
- * rows when groups are nested.
- */
-var getOutsider = function getOutsider(element, group, stepper)
-{
- var parentGroup = getAncestorByClass(group.parentNode, "editGroup");
- var next;
- do
- {
- next = stepper(next || element);
- }
- while (isAncestor(next, group) || isGroupInsert(next, parentGroup));
-
- return next;
-}
-
-var isGroupInsert = function isGroupInsert(next, group)
-{
- return (!group || isAncestor(next, group))
- && (hasClass(next, "insertBefore") || hasClass(next, "insertAfter"));
-}
-
-var getNextOutsider = function getNextOutsider(element, group)
-{
- return getOutsider(element, group, bind(getNextByClass, FBL, "editable"));
-}
-
-var getPreviousOutsider = function getPreviousOutsider(element, group)
-{
- return getOutsider(element, group, bind(getPreviousByClass, FBL, "editable"));
-}
-
-var getInlineParent = function getInlineParent(element)
-{
- var lastInline = element;
- for (; element; element = element.parentNode)
- {
- //var s = element.ownerDocument.defaultView.getComputedStyle(element, "");
- var s = isIE ?
- element.currentStyle :
- element.ownerDocument.defaultView.getComputedStyle(element, "");
-
- if (s.display != "inline")
- return lastInline;
- else
- lastInline = element;
- }
- return null;
-}
-
-var insertTab = function insertTab()
-{
- insertTextIntoElement(currentEditor.input, Firebug.Editor.tabCharacter);
-}
-
-// ************************************************************************************************
-
-Firebug.registerModule(Firebug.Editor);
-
-// ************************************************************************************************
-
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-if (Env.Options.disableXHRListener)
- return;
-
-// ************************************************************************************************
-// XHRSpy
-
-var XHRSpy = function()
-{
- this.requestHeaders = [];
- this.responseHeaders = [];
-};
-
-XHRSpy.prototype =
-{
- method: null,
- url: null,
- async: null,
-
- xhrRequest: null,
-
- href: null,
-
- loaded: false,
-
- logRow: null,
-
- responseText: null,
-
- requestHeaders: null,
- responseHeaders: null,
-
- sourceLink: null, // {href:"file.html", line: 22}
-
- getURL: function()
- {
- return this.href;
- }
-};
-
-// ************************************************************************************************
-// XMLHttpRequestWrapper
-
-var XMLHttpRequestWrapper = function(activeXObject)
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // XMLHttpRequestWrapper internal variables
-
- var xhrRequest = typeof activeXObject != "undefined" ?
- activeXObject :
- new _XMLHttpRequest(),
-
- spy = new XHRSpy(),
-
- self = this,
-
- reqType,
- reqUrl,
- reqStartTS;
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // XMLHttpRequestWrapper internal methods
-
- var updateSelfPropertiesIgnore = {
- abort: 1,
- channel: 1,
- getAllResponseHeaders: 1,
- getInterface: 1,
- getResponseHeader: 1,
- mozBackgroundRequest: 1,
- multipart: 1,
- onreadystatechange: 1,
- open: 1,
- send: 1,
- setRequestHeader: 1
- };
-
- var updateSelfProperties = function()
- {
- if (supportsXHRIterator)
- {
- for (var propName in xhrRequest)
- {
- if (propName in updateSelfPropertiesIgnore)
- continue;
-
- try
- {
- var propValue = xhrRequest[propName];
-
- if (propValue && !isFunction(propValue))
- self[propName] = propValue;
- }
- catch(E)
- {
- //console.log(propName, E.message);
- }
- }
- }
- else
- {
- // will fail to read these xhrRequest properties if the request is not completed
- if (xhrRequest.readyState == 4)
- {
- self.status = xhrRequest.status;
- self.statusText = xhrRequest.statusText;
- self.responseText = xhrRequest.responseText;
- self.responseXML = xhrRequest.responseXML;
- }
- }
- };
-
- var updateXHRPropertiesIgnore = {
- channel: 1,
- onreadystatechange: 1,
- readyState: 1,
- responseBody: 1,
- responseText: 1,
- responseXML: 1,
- status: 1,
- statusText: 1,
- upload: 1
- };
-
- var updateXHRProperties = function()
- {
- for (var propName in self)
- {
- if (propName in updateXHRPropertiesIgnore)
- continue;
-
- try
- {
- var propValue = self[propName];
-
- if (propValue && !xhrRequest[propName])
- {
- xhrRequest[propName] = propValue;
- }
- }
- catch(E)
- {
- //console.log(propName, E.message);
- }
- }
- };
-
- var logXHR = function()
- {
- var row = Firebug.Console.log(spy, null, "spy", Firebug.Spy.XHR);
-
- if (row)
- {
- setClass(row, "loading");
- spy.logRow = row;
- }
- };
-
- var finishXHR = function()
- {
- var duration = new Date().getTime() - reqStartTS;
- var success = xhrRequest.status == 200;
-
- var responseHeadersText = xhrRequest.getAllResponseHeaders();
- var responses = responseHeadersText ? responseHeadersText.split(/[\n\r]/) : [];
- var reHeader = /^(\S+):\s*(.*)/;
-
- for (var i=0, l=responses.length; i<l; i++)
- {
- var text = responses[i];
- var match = text.match(reHeader);
-
- if (match)
- {
- var name = match[1];
- var value = match[2];
-
- // update the spy mimeType property so we can detect when to show
- // custom response viewers (such as HTML, XML or JSON viewer)
- if (name == "Content-Type")
- spy.mimeType = value;
-
- /*
- if (name == "Last Modified")
- {
- if (!spy.cacheEntry)
- spy.cacheEntry = [];
-
- spy.cacheEntry.push({
- name: [name],
- value: [value]
- });
- }
- /**/
-
- spy.responseHeaders.push({
- name: [name],
- value: [value]
- });
- }
- }
-
- with({
- row: spy.logRow,
- status: xhrRequest.status == 0 ?
- // if xhrRequest.status == 0 then accessing xhrRequest.statusText
- // will cause an error, so we must handle this case (Issue 3504)
- "" : xhrRequest.status + " " + xhrRequest.statusText,
- time: duration,
- success: success
- })
- {
- setTimeout(function(){
-
- spy.responseText = xhrRequest.responseText;
-
- // update row information to avoid "ethernal spinning gif" bug in IE
- row = row || spy.logRow;
-
- // if chrome document is not loaded, there will be no row yet, so just ignore
- if (!row) return;
-
- // update the XHR representation data
- handleRequestStatus(success, status, time);
-
- },200);
- }
-
- spy.loaded = true;
- /*
- // commented because they are being updated by the updateSelfProperties() function
- self.status = xhrRequest.status;
- self.statusText = xhrRequest.statusText;
- self.responseText = xhrRequest.responseText;
- self.responseXML = xhrRequest.responseXML;
- /**/
- updateSelfProperties();
- };
-
- var handleStateChange = function()
- {
- //Firebug.Console.log(["onreadystatechange", xhrRequest.readyState, xhrRequest.readyState == 4 && xhrRequest.status]);
-
- self.readyState = xhrRequest.readyState;
-
- if (xhrRequest.readyState == 4)
- {
- finishXHR();
-
- xhrRequest.onreadystatechange = function(){};
- }
-
- //Firebug.Console.log(spy.url + ": " + xhrRequest.readyState);
-
- self.onreadystatechange();
- };
-
- // update the XHR representation data
- var handleRequestStatus = function(success, status, time)
- {
- var row = spy.logRow;
- FBL.removeClass(row, "loading");
-
- if (!success)
- FBL.setClass(row, "error");
-
- var item = FBL.$$(".spyStatus", row)[0];
- item.innerHTML = status;
-
- if (time)
- {
- var item = FBL.$$(".spyTime", row)[0];
- item.innerHTML = time + "ms";
- }
- };
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // XMLHttpRequestWrapper public properties and handlers
-
- this.readyState = 0;
-
- this.onreadystatechange = function(){};
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // XMLHttpRequestWrapper public methods
-
- this.open = function(method, url, async, user, password)
- {
- //Firebug.Console.log("xhrRequest open");
-
- updateSelfProperties();
-
- if (spy.loaded)
- spy = new XHRSpy();
-
- spy.method = method;
- spy.url = url;
- spy.async = async;
- spy.href = url;
- spy.xhrRequest = xhrRequest;
- spy.urlParams = parseURLParamsArray(url);
-
- try
- {
- // xhrRequest.open.apply may not be available in IE
- if (supportsApply)
- xhrRequest.open.apply(xhrRequest, arguments);
- else
- xhrRequest.open(method, url, async, user, password);
- }
- catch(e)
- {
- }
-
- xhrRequest.onreadystatechange = handleStateChange;
-
- };
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- this.send = function(data)
- {
- //Firebug.Console.log("xhrRequest send");
- spy.data = data;
-
- reqStartTS = new Date().getTime();
-
- updateXHRProperties();
-
- try
- {
- xhrRequest.send(data);
- }
- catch(e)
- {
- // TODO: xxxpedro XHR throws or not?
- //throw e;
- }
- finally
- {
- logXHR();
-
- if (!spy.async)
- {
- self.readyState = xhrRequest.readyState;
-
- // sometimes an error happens when calling finishXHR()
- // Issue 3422: Firebug Lite breaks Google Instant Search
- try
- {
- finishXHR();
- }
- catch(E)
- {
- }
- }
- }
- };
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- this.setRequestHeader = function(header, value)
- {
- spy.requestHeaders.push({name: [header], value: [value]});
- return xhrRequest.setRequestHeader(header, value);
- };
-
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- this.abort = function()
- {
- xhrRequest.abort();
- updateSelfProperties();
- handleRequestStatus(false, "Aborted");
- };
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- this.getResponseHeader = function(header)
- {
- return xhrRequest.getResponseHeader(header);
- };
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- this.getAllResponseHeaders = function()
- {
- return xhrRequest.getAllResponseHeaders();
- };
-
- /**/
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Clone XHR object
-
- // xhrRequest.open.apply not available in IE and will throw an error in
- // IE6 by simply reading xhrRequest.open so we must sniff it
- var supportsApply = !isIE6 &&
- xhrRequest &&
- xhrRequest.open &&
- typeof xhrRequest.open.apply != "undefined";
-
- var numberOfXHRProperties = 0;
- for (var propName in xhrRequest)
- {
- numberOfXHRProperties++;
-
- if (propName in updateSelfPropertiesIgnore)
- continue;
-
- try
- {
- var propValue = xhrRequest[propName];
-
- if (isFunction(propValue))
- {
- if (typeof self[propName] == "undefined")
- {
- this[propName] = (function(name, xhr){
-
- return supportsApply ?
- // if the browser supports apply
- function()
- {
- return xhr[name].apply(xhr, arguments);
- }
- :
- function(a,b,c,d,e)
- {
- return xhr[name](a,b,c,d,e);
- };
-
- })(propName, xhrRequest);
- }
- }
- else
- this[propName] = propValue;
- }
- catch(E)
- {
- //console.log(propName, E.message);
- }
- }
-
- // IE6 does not support for (var prop in XHR)
- var supportsXHRIterator = numberOfXHRProperties > 0;
-
- /**/
-
- return this;
-};
-
-// ************************************************************************************************
-// ActiveXObject Wrapper (IE6 only)
-
-var _ActiveXObject;
-var isIE6 = /msie 6/i.test(navigator.appVersion);
-
-if (isIE6)
-{
- _ActiveXObject = window.ActiveXObject;
-
- var xhrObjects = " MSXML2.XMLHTTP.5.0 MSXML2.XMLHTTP.4.0 MSXML2.XMLHTTP.3.0 MSXML2.XMLHTTP Microsoft.XMLHTTP ";
-
- window.ActiveXObject = function(name)
- {
- var error = null;
-
- try
- {
- var activeXObject = new _ActiveXObject(name);
- }
- catch(e)
- {
- error = e;
- }
- finally
- {
- if (!error)
- {
- if (xhrObjects.indexOf(" " + name + " ") != -1)
- return new XMLHttpRequestWrapper(activeXObject);
- else
- return activeXObject;
- }
- else
- throw error.message;
- }
- };
-}
-
-// ************************************************************************************************
-
-// Register the XMLHttpRequestWrapper for non-IE6 browsers
-if (!isIE6)
-{
- var _XMLHttpRequest = XMLHttpRequest;
- window.XMLHttpRequest = function()
- {
- return new XMLHttpRequestWrapper();
- };
-}
-
-//************************************************************************************************
-
-FBL.getNativeXHRObject = function()
-{
- var xhrObj = false;
- try
- {
- xhrObj = new _XMLHttpRequest();
- }
- catch(e)
- {
- var progid = [
- "MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0",
- "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"
- ];
-
- for ( var i=0; i < progid.length; ++i ) {
- try
- {
- xhrObj = new _ActiveXObject(progid[i]);
- }
- catch(e)
- {
- continue;
- }
- break;
- }
- }
- finally
- {
- return xhrObj;
- }
-};
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var reIgnore = /about:|javascript:|resource:|chrome:|jar:/;
-var layoutInterval = 300;
-var indentWidth = 18;
-
-var cacheSession = null;
-var contexts = new Array();
-var panelName = "net";
-var maxQueueRequests = 500;
-//var panelBar1 = $("fbPanelBar1"); // chrome not available at startup
-var activeRequests = [];
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var mimeExtensionMap =
-{
- "txt": "text/plain",
- "html": "text/html",
- "htm": "text/html",
- "xhtml": "text/html",
- "xml": "text/xml",
- "css": "text/css",
- "js": "application/x-javascript",
- "jss": "application/x-javascript",
- "jpg": "image/jpg",
- "jpeg": "image/jpeg",
- "gif": "image/gif",
- "png": "image/png",
- "bmp": "image/bmp",
- "swf": "application/x-shockwave-flash",
- "flv": "video/x-flv"
-};
-
-var fileCategories =
-{
- "undefined": 1,
- "html": 1,
- "css": 1,
- "js": 1,
- "xhr": 1,
- "image": 1,
- "flash": 1,
- "txt": 1,
- "bin": 1
-};
-
-var textFileCategories =
-{
- "txt": 1,
- "html": 1,
- "xhr": 1,
- "css": 1,
- "js": 1
-};
-
-var binaryFileCategories =
-{
- "bin": 1,
- "flash": 1
-};
-
-var mimeCategoryMap =
-{
- "text/plain": "txt",
- "application/octet-stream": "bin",
- "text/html": "html",
- "text/xml": "html",
- "text/css": "css",
- "application/x-javascript": "js",
- "text/javascript": "js",
- "application/javascript" : "js",
- "image/jpeg": "image",
- "image/jpg": "image",
- "image/gif": "image",
- "image/png": "image",
- "image/bmp": "image",
- "application/x-shockwave-flash": "flash",
- "video/x-flv": "flash"
-};
-
-var binaryCategoryMap =
-{
- "image": 1,
- "flash" : 1
-};
-
-// ************************************************************************************************
-
-/**
- * @module Represents a module object for the Net panel. This object is derived
- * from <code>Firebug.ActivableModule</code> in order to support activation (enable/disable).
- * This allows to avoid (performance) expensive features if the functionality is not necessary
- * for the user.
- */
-Firebug.NetMonitor = extend(Firebug.ActivableModule,
-{
- dispatchName: "netMonitor",
-
- clear: function(context)
- {
- // The user pressed a Clear button so, remove content of the panel...
- var panel = context.getPanel(panelName, true);
- if (panel)
- panel.clear();
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Module
-
- initialize: function()
- {
- return;
-
- this.panelName = panelName;
-
- Firebug.ActivableModule.initialize.apply(this, arguments);
-
- if (Firebug.TraceModule)
- Firebug.TraceModule.addListener(this.TraceListener);
-
- // HTTP observer must be registered now (and not in monitorContext, since if a
- // page is opened in a new tab the top document request would be missed otherwise.
- NetHttpObserver.registerObserver();
- NetHttpActivityObserver.registerObserver();
-
- Firebug.Debugger.addListener(this.DebuggerListener);
- },
-
- shutdown: function()
- {
- return;
-
- prefs.removeObserver(Firebug.prefDomain, this, false);
- if (Firebug.TraceModule)
- Firebug.TraceModule.removeListener(this.TraceListener);
-
- NetHttpObserver.unregisterObserver();
- NetHttpActivityObserver.unregisterObserver();
-
- Firebug.Debugger.removeListener(this.DebuggerListener);
- }
-});
-
-
-/**
- * @domplate Represents a template that is used to reneder detailed info about a request.
- * This template is rendered when a request is expanded.
- */
-Firebug.NetMonitor.NetInfoBody = domplate(Firebug.Rep, new Firebug.Listener(),
-{
- tag:
- DIV({"class": "netInfoBody", _repObject: "$file"},
- TAG("$infoTabs", {file: "$file"}),
- TAG("$infoBodies", {file: "$file"})
- ),
-
- infoTabs:
- DIV({"class": "netInfoTabs focusRow subFocusRow", "role": "tablist"},
- A({"class": "netInfoParamsTab netInfoTab a11yFocus", onclick: "$onClickTab", "role": "tab",
- view: "Params",
- $collapsed: "$file|hideParams"},
- $STR("URLParameters")
- ),
- A({"class": "netInfoHeadersTab netInfoTab a11yFocus", onclick: "$onClickTab", "role": "tab",
- view: "Headers"},
- $STR("Headers")
- ),
- A({"class": "netInfoPostTab netInfoTab a11yFocus", onclick: "$onClickTab", "role": "tab",
- view: "Post",
- $collapsed: "$file|hidePost"},
- $STR("Post")
- ),
- A({"class": "netInfoPutTab netInfoTab a11yFocus", onclick: "$onClickTab", "role": "tab",
- view: "Put",
- $collapsed: "$file|hidePut"},
- $STR("Put")
- ),
- A({"class": "netInfoResponseTab netInfoTab a11yFocus", onclick: "$onClickTab", "role": "tab",
- view: "Response",
- $collapsed: "$file|hideResponse"},
- $STR("Response")
- ),
- A({"class": "netInfoCacheTab netInfoTab a11yFocus", onclick: "$onClickTab", "role": "tab",
- view: "Cache",
- $collapsed: "$file|hideCache"},
- $STR("Cache")
- ),
- A({"class": "netInfoHtmlTab netInfoTab a11yFocus", onclick: "$onClickTab", "role": "tab",
- view: "Html",
- $collapsed: "$file|hideHtml"},
- $STR("HTML")
- )
- ),
-
- infoBodies:
- DIV({"class": "netInfoBodies outerFocusRow"},
- TABLE({"class": "netInfoParamsText netInfoText netInfoParamsTable", "role": "tabpanel",
- cellpadding: 0, cellspacing: 0}, TBODY()),
- DIV({"class": "netInfoHeadersText netInfoText", "role": "tabpanel"}),
- DIV({"class": "netInfoPostText netInfoText", "role": "tabpanel"}),
- DIV({"class": "netInfoPutText netInfoText", "role": "tabpanel"}),
- PRE({"class": "netInfoResponseText netInfoText", "role": "tabpanel"}),
- DIV({"class": "netInfoCacheText netInfoText", "role": "tabpanel"},
- TABLE({"class": "netInfoCacheTable", cellpadding: 0, cellspacing: 0, "role": "presentation"},
- TBODY({"role": "list", "aria-label": $STR("Cache")})
- )
- ),
- DIV({"class": "netInfoHtmlText netInfoText", "role": "tabpanel"},
- IFRAME({"class": "netInfoHtmlPreview", "role": "document"})
- )
- ),
-
- headerDataTag:
- FOR("param", "$headers",
- TR({"role": "listitem"},
- TD({"class": "netInfoParamName", "role": "presentation"},
- TAG("$param|getNameTag", {param: "$param"})
- ),
- TD({"class": "netInfoParamValue", "role": "list", "aria-label": "$param.name"},
- FOR("line", "$param|getParamValueIterator",
- CODE({"class": "focusRow subFocusRow", "role": "listitem"}, "$line")
- )
- )
- )
- ),
-
- customTab:
- A({"class": "netInfo$tabId\\Tab netInfoTab", onclick: "$onClickTab", view: "$tabId", "role": "tab"},
- "$tabTitle"
- ),
-
- customBody:
- DIV({"class": "netInfo$tabId\\Text netInfoText", "role": "tabpanel"}),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- nameTag:
- SPAN("$param|getParamName"),
-
- nameWithTooltipTag:
- SPAN({title: "$param.name"}, "$param|getParamName"),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- getNameTag: function(param)
- {
- return (this.getParamName(param) == param.name) ? this.nameTag : this.nameWithTooltipTag;
- },
-
- getParamName: function(param)
- {
- var limit = 25;
- var name = param.name;
- if (name.length > limit)
- name = name.substr(0, limit) + "...";
- return name;
- },
-
- getParamTitle: function(param)
- {
- var limit = 25;
- var name = param.name;
- if (name.length > limit)
- return name;
- return "";
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- hideParams: function(file)
- {
- return !file.urlParams || !file.urlParams.length;
- },
-
- hidePost: function(file)
- {
- return file.method.toUpperCase() != "POST";
- },
-
- hidePut: function(file)
- {
- return file.method.toUpperCase() != "PUT";
- },
-
- hideResponse: function(file)
- {
- return false;
- //return file.category in binaryFileCategories;
- },
-
- hideCache: function(file)
- {
- return true;
- //xxxHonza: I don't see any reason why not to display the cache also info for images.
- return !file.cacheEntry; // || file.category=="image";
- },
-
- hideHtml: function(file)
- {
- return (file.mimeType != "text/html") && (file.mimeType != "application/xhtml+xml");
- },
-
- onClickTab: function(event)
- {
- this.selectTab(event.currentTarget || event.srcElement);
- },
-
- getParamValueIterator: function(param)
- {
- // TODO: xxxpedro console2
- return param.value;
-
- // This value is inserted into CODE element and so, make sure the HTML isn't escaped (1210).
- // This is why the second parameter is true.
- // The CODE (with style white-space:pre) element preserves whitespaces so they are
- // displayed the same, as they come from the server (1194).
- // In case of a long header values of post parameters the value must be wrapped (2105).
- return wrapText(param.value, true);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- appendTab: function(netInfoBox, tabId, tabTitle)
- {
- // Create new tab and body.
- var args = {tabId: tabId, tabTitle: tabTitle};
- ///this.customTab.append(args, netInfoBox.getElementsByClassName("netInfoTabs").item(0));
- ///this.customBody.append(args, netInfoBox.getElementsByClassName("netInfoBodies").item(0));
- this.customTab.append(args, $$(".netInfoTabs", netInfoBox)[0]);
- this.customBody.append(args, $$(".netInfoBodies", netInfoBox)[0]);
- },
-
- selectTabByName: function(netInfoBox, tabName)
- {
- var tab = getChildByClass(netInfoBox, "netInfoTabs", "netInfo"+tabName+"Tab");
- if (tab)
- this.selectTab(tab);
- },
-
- selectTab: function(tab)
- {
- var view = tab.getAttribute("view");
-
- var netInfoBox = getAncestorByClass(tab, "netInfoBody");
-
- var selectedTab = netInfoBox.selectedTab;
-
- if (selectedTab)
- {
- //netInfoBox.selectedText.removeAttribute("selected");
- removeClass(netInfoBox.selectedText, "netInfoTextSelected");
-
- removeClass(selectedTab, "netInfoTabSelected");
- //selectedTab.removeAttribute("selected");
- selectedTab.setAttribute("aria-selected", "false");
- }
-
- var textBodyName = "netInfo" + view + "Text";
-
- selectedTab = netInfoBox.selectedTab = tab;
-
- netInfoBox.selectedText = $$("."+textBodyName, netInfoBox)[0];
- //netInfoBox.selectedText = netInfoBox.getElementsByClassName(textBodyName).item(0);
-
- //netInfoBox.selectedText.setAttribute("selected", "true");
- setClass(netInfoBox.selectedText, "netInfoTextSelected");
-
- setClass(selectedTab, "netInfoTabSelected");
- selectedTab.setAttribute("selected", "true");
- selectedTab.setAttribute("aria-selected", "true");
-
- var file = Firebug.getRepObject(netInfoBox);
-
- //var context = Firebug.getElementPanel(netInfoBox).context;
- var context = Firebug.chrome;
-
- this.updateInfo(netInfoBox, file, context);
- },
-
- updateInfo: function(netInfoBox, file, context)
- {
- if (FBTrace.DBG_NET)
- FBTrace.sysout("net.updateInfo; file", file);
-
- if (!netInfoBox)
- {
- if (FBTrace.DBG_NET || FBTrace.DBG_ERRORS)
- FBTrace.sysout("net.updateInfo; ERROR netInfo == null " + file.href, file);
- return;
- }
-
- var tab = netInfoBox.selectedTab;
-
- if (hasClass(tab, "netInfoParamsTab"))
- {
- if (file.urlParams && !netInfoBox.urlParamsPresented)
- {
- netInfoBox.urlParamsPresented = true;
- this.insertHeaderRows(netInfoBox, file.urlParams, "Params");
- }
- }
-
- else if (hasClass(tab, "netInfoHeadersTab"))
- {
- var headersText = $$(".netInfoHeadersText", netInfoBox)[0];
- //var headersText = netInfoBox.getElementsByClassName("netInfoHeadersText").item(0);
-
- if (file.responseHeaders && !netInfoBox.responseHeadersPresented)
- {
- netInfoBox.responseHeadersPresented = true;
- NetInfoHeaders.renderHeaders(headersText, file.responseHeaders, "ResponseHeaders");
- }
-
- if (file.requestHeaders && !netInfoBox.requestHeadersPresented)
- {
- netInfoBox.requestHeadersPresented = true;
- NetInfoHeaders.renderHeaders(headersText, file.requestHeaders, "RequestHeaders");
- }
- }
-
- else if (hasClass(tab, "netInfoPostTab"))
- {
- if (!netInfoBox.postPresented)
- {
- netInfoBox.postPresented = true;
- //var postText = netInfoBox.getElementsByClassName("netInfoPostText").item(0);
- var postText = $$(".netInfoPostText", netInfoBox)[0];
- NetInfoPostData.render(context, postText, file);
- }
- }
-
- else if (hasClass(tab, "netInfoPutTab"))
- {
- if (!netInfoBox.putPresented)
- {
- netInfoBox.putPresented = true;
- //var putText = netInfoBox.getElementsByClassName("netInfoPutText").item(0);
- var putText = $$(".netInfoPutText", netInfoBox)[0];
- NetInfoPostData.render(context, putText, file);
- }
- }
-
- else if (hasClass(tab, "netInfoResponseTab") && file.loaded && !netInfoBox.responsePresented)
- {
- ///var responseTextBox = netInfoBox.getElementsByClassName("netInfoResponseText").item(0);
- var responseTextBox = $$(".netInfoResponseText", netInfoBox)[0];
- if (file.category == "image")
- {
- netInfoBox.responsePresented = true;
-
- var responseImage = netInfoBox.ownerDocument.createElement("img");
- responseImage.src = file.href;
-
- clearNode(responseTextBox);
- responseTextBox.appendChild(responseImage, responseTextBox);
- }
- else ///if (!(binaryCategoryMap.hasOwnProperty(file.category)))
- {
- this.setResponseText(file, netInfoBox, responseTextBox, context);
- }
- }
-
- else if (hasClass(tab, "netInfoCacheTab") && file.loaded && !netInfoBox.cachePresented)
- {
- var responseTextBox = netInfoBox.getElementsByClassName("netInfoCacheText").item(0);
- if (file.cacheEntry) {
- netInfoBox.cachePresented = true;
- this.insertHeaderRows(netInfoBox, file.cacheEntry, "Cache");
- }
- }
-
- else if (hasClass(tab, "netInfoHtmlTab") && file.loaded && !netInfoBox.htmlPresented)
- {
- netInfoBox.htmlPresented = true;
-
- var text = Utils.getResponseText(file, context);
-
- ///var iframe = netInfoBox.getElementsByClassName("netInfoHtmlPreview").item(0);
- var iframe = $$(".netInfoHtmlPreview", netInfoBox)[0];
-
- ///iframe.contentWindow.document.body.innerHTML = text;
-
- // TODO: xxxpedro net - remove scripts
- var reScript = /<script(.|\s)*?\/script>/gi;
-
- text = text.replace(reScript, "");
-
- iframe.contentWindow.document.write(text);
- iframe.contentWindow.document.close();
- }
-
- // Notify listeners about update so, content of custom tabs can be updated.
- dispatch(NetInfoBody.fbListeners, "updateTabBody", [netInfoBox, file, context]);
- },
-
- setResponseText: function(file, netInfoBox, responseTextBox, context)
- {
- //**********************************************
- //**********************************************
- //**********************************************
- netInfoBox.responsePresented = true;
- // line breaks somehow are different in IE
- // make this only once in the initialization? we don't have net panels and modules yet.
- if (isIE)
- responseTextBox.style.whiteSpace = "nowrap";
-
- responseTextBox[
- typeof responseTextBox.textContent != "undefined" ?
- "textContent" :
- "innerText"
- ] = file.responseText;
-
- return;
- //**********************************************
- //**********************************************
- //**********************************************
-
- // Get response text and make sure it doesn't exceed the max limit.
- var text = Utils.getResponseText(file, context);
- var limit = Firebug.netDisplayedResponseLimit + 15;
- var limitReached = text ? (text.length > limit) : false;
- if (limitReached)
- text = text.substr(0, limit) + "...";
-
- // Insert the response into the UI.
- if (text)
- insertWrappedText(text, responseTextBox);
- else
- insertWrappedText("", responseTextBox);
-
- // Append a message informing the user that the response isn't fully displayed.
- if (limitReached)
- {
- var object = {
- text: $STR("net.responseSizeLimitMessage"),
- onClickLink: function() {
- var panel = context.getPanel("net", true);
- panel.openResponseInTab(file);
- }
- };
- Firebug.NetMonitor.ResponseSizeLimit.append(object, responseTextBox);
- }
-
- netInfoBox.responsePresented = true;
-
- if (FBTrace.DBG_NET)
- FBTrace.sysout("net.setResponseText; response text updated");
- },
-
- insertHeaderRows: function(netInfoBox, headers, tableName, rowName)
- {
- if (!headers.length)
- return;
-
- var headersTable = $$(".netInfo"+tableName+"Table", netInfoBox)[0];
- //var headersTable = netInfoBox.getElementsByClassName("netInfo"+tableName+"Table").item(0);
- var tbody = getChildByClass(headersTable, "netInfo" + rowName + "Body");
- if (!tbody)
- tbody = headersTable.firstChild;
- var titleRow = getChildByClass(tbody, "netInfo" + rowName + "Title");
-
- this.headerDataTag.insertRows({headers: headers}, titleRow ? titleRow : tbody);
- removeClass(titleRow, "collapsed");
- }
-});
-
-var NetInfoBody = Firebug.NetMonitor.NetInfoBody;
-
-// ************************************************************************************************
-
-/**
- * @domplate Used within the Net panel to display raw source of request and response headers
- * as well as pretty-formatted summary of these headers.
- */
-Firebug.NetMonitor.NetInfoHeaders = domplate(Firebug.Rep, //new Firebug.Listener(),
-{
- tag:
- DIV({"class": "netInfoHeadersTable", "role": "tabpanel"},
- DIV({"class": "netInfoHeadersGroup netInfoResponseHeadersTitle"},
- SPAN($STR("ResponseHeaders")),
- SPAN({"class": "netHeadersViewSource response collapsed", onclick: "$onViewSource",
- _sourceDisplayed: false, _rowName: "ResponseHeaders"},
- $STR("net.headers.view source")
- )
- ),
- TABLE({cellpadding: 0, cellspacing: 0},
- TBODY({"class": "netInfoResponseHeadersBody", "role": "list",
- "aria-label": $STR("ResponseHeaders")})
- ),
- DIV({"class": "netInfoHeadersGroup netInfoRequestHeadersTitle"},
- SPAN($STR("RequestHeaders")),
- SPAN({"class": "netHeadersViewSource request collapsed", onclick: "$onViewSource",
- _sourceDisplayed: false, _rowName: "RequestHeaders"},
- $STR("net.headers.view source")
- )
- ),
- TABLE({cellpadding: 0, cellspacing: 0},
- TBODY({"class": "netInfoRequestHeadersBody", "role": "list",
- "aria-label": $STR("RequestHeaders")})
- )
- ),
-
- sourceTag:
- TR({"role": "presentation"},
- TD({colspan: 2, "role": "presentation"},
- PRE({"class": "source"})
- )
- ),
-
- onViewSource: function(event)
- {
- var target = event.target;
- var requestHeaders = (target.rowName == "RequestHeaders");
-
- var netInfoBox = getAncestorByClass(target, "netInfoBody");
- var file = netInfoBox.repObject;
-
- if (target.sourceDisplayed)
- {
- var headers = requestHeaders ? file.requestHeaders : file.responseHeaders;
- this.insertHeaderRows(netInfoBox, headers, target.rowName);
- target.innerHTML = $STR("net.headers.view source");
- }
- else
- {
- var source = requestHeaders ? file.requestHeadersText : file.responseHeadersText;
- this.insertSource(netInfoBox, source, target.rowName);
- target.innerHTML = $STR("net.headers.pretty print");
- }
-
- target.sourceDisplayed = !target.sourceDisplayed;
-
- cancelEvent(event);
- },
-
- insertSource: function(netInfoBox, source, rowName)
- {
- // This breaks copy to clipboard.
- //if (source)
- // source = source.replace(/\r\n/gm, "<span style='color:lightgray'>\\r\\n</span>\r\n");
-
- ///var tbody = netInfoBox.getElementsByClassName("netInfo" + rowName + "Body").item(0);
- var tbody = $$(".netInfo" + rowName + "Body", netInfoBox)[0];
- var node = this.sourceTag.replace({}, tbody);
- ///var sourceNode = node.getElementsByClassName("source").item(0);
- var sourceNode = $$(".source", node)[0];
- sourceNode.innerHTML = source;
- },
-
- insertHeaderRows: function(netInfoBox, headers, rowName)
- {
- var headersTable = $$(".netInfoHeadersTable", netInfoBox)[0];
- var tbody = $$(".netInfo" + rowName + "Body", headersTable)[0];
-
- //var headersTable = netInfoBox.getElementsByClassName("netInfoHeadersTable").item(0);
- //var tbody = headersTable.getElementsByClassName("netInfo" + rowName + "Body").item(0);
-
- clearNode(tbody);
-
- if (!headers.length)
- return;
-
- NetInfoBody.headerDataTag.insertRows({headers: headers}, tbody);
-
- var titleRow = getChildByClass(headersTable, "netInfo" + rowName + "Title");
- removeClass(titleRow, "collapsed");
- },
-
- init: function(parent)
- {
- var rootNode = this.tag.append({}, parent);
-
- var netInfoBox = getAncestorByClass(parent, "netInfoBody");
- var file = netInfoBox.repObject;
-
- var viewSource;
-
- viewSource = $$(".request", rootNode)[0];
- //viewSource = rootNode.getElementsByClassName("netHeadersViewSource request").item(0);
- if (file.requestHeadersText)
- removeClass(viewSource, "collapsed");
-
- viewSource = $$(".response", rootNode)[0];
- //viewSource = rootNode.getElementsByClassName("netHeadersViewSource response").item(0);
- if (file.responseHeadersText)
- removeClass(viewSource, "collapsed");
- },
-
- renderHeaders: function(parent, headers, rowName)
- {
- if (!parent.firstChild)
- this.init(parent);
-
- this.insertHeaderRows(parent, headers, rowName);
- }
-});
-
-var NetInfoHeaders = Firebug.NetMonitor.NetInfoHeaders;
-
-// ************************************************************************************************
-
-/**
- * @domplate Represents posted data within request info (the info, which is visible when
- * a request entry is expanded. This template renders content of the Post tab.
- */
-Firebug.NetMonitor.NetInfoPostData = domplate(Firebug.Rep, /*new Firebug.Listener(),*/
-{
- // application/x-www-form-urlencoded
- paramsTable:
- TABLE({"class": "netInfoPostParamsTable", cellpadding: 0, cellspacing: 0, "role": "presentation"},
- TBODY({"role": "list", "aria-label": $STR("net.label.Parameters")},
- TR({"class": "netInfoPostParamsTitle", "role": "presentation"},
- TD({colspan: 3, "role": "presentation"},
- DIV({"class": "netInfoPostParams"},
- $STR("net.label.Parameters"),
- SPAN({"class": "netInfoPostContentType"},
- "application/x-www-form-urlencoded"
- )
- )
- )
- )
- )
- ),
-
- // multipart/form-data
- partsTable:
- TABLE({"class": "netInfoPostPartsTable", cellpadding: 0, cellspacing: 0, "role": "presentation"},
- TBODY({"role": "list", "aria-label": $STR("net.label.Parts")},
- TR({"class": "netInfoPostPartsTitle", "role": "presentation"},
- TD({colspan: 2, "role":"presentation" },
- DIV({"class": "netInfoPostParams"},
- $STR("net.label.Parts"),
- SPAN({"class": "netInfoPostContentType"},
- "multipart/form-data"
- )
- )
- )
- )
- )
- ),
-
- // application/json
- jsonTable:
- TABLE({"class": "netInfoPostJSONTable", cellpadding: 0, cellspacing: 0, "role": "presentation"},
- ///TBODY({"role": "list", "aria-label": $STR("jsonviewer.tab.JSON")},
- TBODY({"role": "list", "aria-label": $STR("JSON")},
- TR({"class": "netInfoPostJSONTitle", "role": "presentation"},
- TD({"role": "presentation" },
- DIV({"class": "netInfoPostParams"},
- ///$STR("jsonviewer.tab.JSON")
- $STR("JSON")
- )
- )
- ),
- TR(
- TD({"class": "netInfoPostJSONBody"})
- )
- )
- ),
-
- // application/xml
- xmlTable:
- TABLE({"class": "netInfoPostXMLTable", cellpadding: 0, cellspacing: 0, "role": "presentation"},
- TBODY({"role": "list", "aria-label": $STR("xmlviewer.tab.XML")},
- TR({"class": "netInfoPostXMLTitle", "role": "presentation"},
- TD({"role": "presentation" },
- DIV({"class": "netInfoPostParams"},
- $STR("xmlviewer.tab.XML")
- )
- )
- ),
- TR(
- TD({"class": "netInfoPostXMLBody"})
- )
- )
- ),
-
- sourceTable:
- TABLE({"class": "netInfoPostSourceTable", cellpadding: 0, cellspacing: 0, "role": "presentation"},
- TBODY({"role": "list", "aria-label": $STR("net.label.Source")},
- TR({"class": "netInfoPostSourceTitle", "role": "presentation"},
- TD({colspan: 2, "role": "presentation"},
- DIV({"class": "netInfoPostSource"},
- $STR("net.label.Source")
- )
- )
- )
- )
- ),
-
- sourceBodyTag:
- TR({"role": "presentation"},
- TD({colspan: 2, "role": "presentation"},
- FOR("line", "$param|getParamValueIterator",
- CODE({"class":"focusRow subFocusRow" , "role": "listitem"},"$line")
- )
- )
- ),
-
- getParamValueIterator: function(param)
- {
- return NetInfoBody.getParamValueIterator(param);
- },
-
- render: function(context, parentNode, file)
- {
- //debugger;
- var spy = getAncestorByClass(parentNode, "spyHead");
- var spyObject = spy.repObject;
- var data = spyObject.data;
-
- ///var contentType = Utils.findHeader(file.requestHeaders, "content-type");
- var contentType = file.mimeType;
-
- ///var text = Utils.getPostText(file, context, true);
- ///if (text == undefined)
- /// return;
-
- ///if (Utils.isURLEncodedRequest(file, context))
- // fake Utils.isURLEncodedRequest identification
- if (contentType && contentType == "application/x-www-form-urlencoded" ||
- data && data.indexOf("=") != -1)
- {
- ///var lines = text.split("\n");
- ///var params = parseURLEncodedText(lines[lines.length-1]);
- var params = parseURLEncodedTextArray(data);
- if (params)
- this.insertParameters(parentNode, params);
- }
-
- ///if (Utils.isMultiPartRequest(file, context))
- ///{
- /// var data = this.parseMultiPartText(file, context);
- /// if (data)
- /// this.insertParts(parentNode, data);
- ///}
-
- // moved to the top
- ///var contentType = Utils.findHeader(file.requestHeaders, "content-type");
-
- ///if (Firebug.JSONViewerModel.isJSON(contentType))
- var jsonData = {
- responseText: data
- };
-
- if (Firebug.JSONViewerModel.isJSON(contentType, data))
- ///this.insertJSON(parentNode, file, context);
- this.insertJSON(parentNode, jsonData, context);
-
- ///if (Firebug.XMLViewerModel.isXML(contentType))
- /// this.insertXML(parentNode, file, context);
-
- ///var postText = Utils.getPostText(file, context);
- ///postText = Utils.formatPostText(postText);
- var postText = data;
- if (postText)
- this.insertSource(parentNode, postText);
- },
-
- insertParameters: function(parentNode, params)
- {
- if (!params || !params.length)
- return;
-
- var paramTable = this.paramsTable.append({object:{}}, parentNode);
- var row = $$(".netInfoPostParamsTitle", paramTable)[0];
- //var paramTable = this.paramsTable.append(null, parentNode);
- //var row = paramTable.getElementsByClassName("netInfoPostParamsTitle").item(0);
-
- var tbody = paramTable.getElementsByTagName("tbody")[0];
-
- NetInfoBody.headerDataTag.insertRows({headers: params}, row);
- },
-
- insertParts: function(parentNode, data)
- {
- if (!data.params || !data.params.length)
- return;
-
- var partsTable = this.partsTable.append({object:{}}, parentNode);
- var row = $$(".netInfoPostPartsTitle", paramTable)[0];
- //var partsTable = this.partsTable.append(null, parentNode);
- //var row = partsTable.getElementsByClassName("netInfoPostPartsTitle").item(0);
-
- NetInfoBody.headerDataTag.insertRows({headers: data.params}, row);
- },
-
- insertJSON: function(parentNode, file, context)
- {
- ///var text = Utils.getPostText(file, context);
- var text = file.responseText;
- ///var data = parseJSONString(text, "http://" + file.request.originalURI.host);
- var data = parseJSONString(text);
- if (!data)
- return;
-
- ///var jsonTable = this.jsonTable.append(null, parentNode);
- var jsonTable = this.jsonTable.append({}, parentNode);
- ///var jsonBody = jsonTable.getElementsByClassName("netInfoPostJSONBody").item(0);
- var jsonBody = $$(".netInfoPostJSONBody", jsonTable)[0];
-
- if (!this.toggles)
- this.toggles = {};
-
- Firebug.DOMPanel.DirTable.tag.replace(
- {object: data, toggles: this.toggles}, jsonBody);
- },
-
- insertXML: function(parentNode, file, context)
- {
- var text = Utils.getPostText(file, context);
-
- var jsonTable = this.xmlTable.append(null, parentNode);
- ///var jsonBody = jsonTable.getElementsByClassName("netInfoPostXMLBody").item(0);
- var jsonBody = $$(".netInfoPostXMLBody", jsonTable)[0];
-
- Firebug.XMLViewerModel.insertXML(jsonBody, text);
- },
-
- insertSource: function(parentNode, text)
- {
- var sourceTable = this.sourceTable.append({object:{}}, parentNode);
- var row = $$(".netInfoPostSourceTitle", sourceTable)[0];
- //var sourceTable = this.sourceTable.append(null, parentNode);
- //var row = sourceTable.getElementsByClassName("netInfoPostSourceTitle").item(0);
-
- var param = {value: [text]};
- this.sourceBodyTag.insertRows({param: param}, row);
- },
-
- parseMultiPartText: function(file, context)
- {
- var text = Utils.getPostText(file, context);
- if (text == undefined)
- return null;
-
- FBTrace.sysout("net.parseMultiPartText; boundary: ", text);
-
- var boundary = text.match(/\s*boundary=\s*(.*)/)[1];
-
- var divider = "\r\n\r\n";
- var bodyStart = text.indexOf(divider);
- var body = text.substr(bodyStart + divider.length);
-
- var postData = {};
- postData.mimeType = "multipart/form-data";
- postData.params = [];
-
- var parts = body.split("--" + boundary);
- for (var i=0; i<parts.length; i++)
- {
- var part = parts[i].split(divider);
- if (part.length != 2)
- continue;
-
- var m = part[0].match(/\s*name=\"(.*)\"(;|$)/);
- postData.params.push({
- name: (m && m.length > 1) ? m[1] : "",
- value: trim(part[1])
- });
- }
-
- return postData;
- }
-});
-
-var NetInfoPostData = Firebug.NetMonitor.NetInfoPostData;
-
-// ************************************************************************************************
-
-
-// TODO: xxxpedro net i18n
-var $STRP = function(a){return a;};
-
-Firebug.NetMonitor.NetLimit = domplate(Firebug.Rep,
-{
- collapsed: true,
-
- tableTag:
- DIV(
- TABLE({width: "100%", cellpadding: 0, cellspacing: 0},
- TBODY()
- )
- ),
-
- limitTag:
- TR({"class": "netRow netLimitRow", $collapsed: "$isCollapsed"},
- TD({"class": "netCol netLimitCol", colspan: 6},
- TABLE({cellpadding: 0, cellspacing: 0},
- TBODY(
- TR(
- TD(
- SPAN({"class": "netLimitLabel"},
- $STRP("plural.Limit_Exceeded", [0])
- )
- ),
- TD({style: "width:100%"}),
- TD(
- BUTTON({"class": "netLimitButton", title: "$limitPrefsTitle",
- onclick: "$onPreferences"},
- $STR("LimitPrefs")
- )
- ),
- TD("&nbsp;")
- )
- )
- )
- )
- ),
-
- isCollapsed: function()
- {
- return this.collapsed;
- },
-
- onPreferences: function(event)
- {
- openNewTab("about:config");
- },
-
- updateCounter: function(row)
- {
- removeClass(row, "collapsed");
-
- // Update info within the limit row.
- var limitLabel = row.getElementsByClassName("netLimitLabel").item(0);
- limitLabel.firstChild.nodeValue = $STRP("plural.Limit_Exceeded", [row.limitInfo.totalCount]);
- },
-
- createTable: function(parent, limitInfo)
- {
- var table = this.tableTag.replace({}, parent);
- var row = this.createRow(table.firstChild.firstChild, limitInfo);
- return [table, row];
- },
-
- createRow: function(parent, limitInfo)
- {
- var row = this.limitTag.insertRows(limitInfo, parent, this)[0];
- row.limitInfo = limitInfo;
- return row;
- },
-
- // nsIPrefObserver
- observe: function(subject, topic, data)
- {
- // We're observing preferences only.
- if (topic != "nsPref:changed")
- return;
-
- if (data.indexOf("net.logLimit") != -1)
- this.updateMaxLimit();
- },
-
- updateMaxLimit: function()
- {
- var value = Firebug.getPref(Firebug.prefDomain, "net.logLimit");
- maxQueueRequests = value ? value : maxQueueRequests;
- }
-});
-
-var NetLimit = Firebug.NetMonitor.NetLimit;
-
-// ************************************************************************************************
-
-Firebug.NetMonitor.ResponseSizeLimit = domplate(Firebug.Rep,
-{
- tag:
- DIV({"class": "netInfoResponseSizeLimit"},
- SPAN("$object.beforeLink"),
- A({"class": "objectLink", onclick: "$onClickLink"},
- "$object.linkText"
- ),
- SPAN("$object.afterLink")
- ),
-
- reLink: /^(.*)<a>(.*)<\/a>(.*$)/,
- append: function(obj, parent)
- {
- var m = obj.text.match(this.reLink);
- return this.tag.append({onClickLink: obj.onClickLink,
- object: {
- beforeLink: m[1],
- linkText: m[2],
- afterLink: m[3]
- }}, parent, this);
- }
-});
-
-// ************************************************************************************************
-// ************************************************************************************************
-
-Firebug.NetMonitor.Utils =
-{
- findHeader: function(headers, name)
- {
- if (!headers)
- return null;
-
- name = name.toLowerCase();
- for (var i = 0; i < headers.length; ++i)
- {
- var headerName = headers[i].name.toLowerCase();
- if (headerName == name)
- return headers[i].value;
- }
- },
-
- formatPostText: function(text)
- {
- if (text instanceof XMLDocument)
- return getElementXML(text.documentElement);
- else
- return text;
- },
-
- getPostText: function(file, context, noLimit)
- {
- if (!file.postText)
- {
- file.postText = readPostTextFromRequest(file.request, context);
-
- if (!file.postText && context)
- file.postText = readPostTextFromPage(file.href, context);
- }
-
- if (!file.postText)
- return file.postText;
-
- var limit = Firebug.netDisplayedPostBodyLimit;
- if (file.postText.length > limit && !noLimit)
- {
- return cropString(file.postText, limit,
- "\n\n... " + $STR("net.postDataSizeLimitMessage") + " ...\n\n");
- }
-
- return file.postText;
- },
-
- getResponseText: function(file, context)
- {
- // The response can be also empty string so, check agains "undefined".
- return (typeof(file.responseText) != "undefined")? file.responseText :
- context.sourceCache.loadText(file.href, file.method, file);
- },
-
- isURLEncodedRequest: function(file, context)
- {
- var text = Utils.getPostText(file, context);
- if (text && text.toLowerCase().indexOf("content-type: application/x-www-form-urlencoded") == 0)
- return true;
-
- // The header value doesn't have to be always exactly "application/x-www-form-urlencoded",
- // there can be even charset specified. So, use indexOf rather than just "==".
- var headerValue = Utils.findHeader(file.requestHeaders, "content-type");
- if (headerValue && headerValue.indexOf("application/x-www-form-urlencoded") == 0)
- return true;
-
- return false;
- },
-
- isMultiPartRequest: function(file, context)
- {
- var text = Utils.getPostText(file, context);
- if (text && text.toLowerCase().indexOf("content-type: multipart/form-data") == 0)
- return true;
- return false;
- },
-
- getMimeType: function(mimeType, uri)
- {
- if (!mimeType || !(mimeCategoryMap.hasOwnProperty(mimeType)))
- {
- var ext = getFileExtension(uri);
- if (!ext)
- return mimeType;
- else
- {
- var extMimeType = mimeExtensionMap[ext.toLowerCase()];
- return extMimeType ? extMimeType : mimeType;
- }
- }
- else
- return mimeType;
- },
-
- getDateFromSeconds: function(s)
- {
- var d = new Date();
- d.setTime(s*1000);
- return d;
- },
-
- getHttpHeaders: function(request, file)
- {
- try
- {
- var http = QI(request, Ci.nsIHttpChannel);
- file.status = request.responseStatus;
-
- // xxxHonza: is there any problem to do this in requestedFile method?
- file.method = http.requestMethod;
- file.urlParams = parseURLParams(file.href);
- file.mimeType = Utils.getMimeType(request.contentType, request.name);
-
- if (!file.responseHeaders && Firebug.collectHttpHeaders)
- {
- var requestHeaders = [], responseHeaders = [];
-
- http.visitRequestHeaders({
- visitHeader: function(name, value)
- {
- requestHeaders.push({name: name, value: value});
- }
- });
- http.visitResponseHeaders({
- visitHeader: function(name, value)
- {
- responseHeaders.push({name: name, value: value});
- }
- });
-
- file.requestHeaders = requestHeaders;
- file.responseHeaders = responseHeaders;
- }
- }
- catch (exc)
- {
- // An exception can be throwed e.g. when the request is aborted and
- // request.responseStatus is accessed.
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("net.getHttpHeaders FAILS " + file.href, exc);
- }
- },
-
- isXHR: function(request)
- {
- try
- {
- var callbacks = request.notificationCallbacks;
- var xhrRequest = callbacks ? callbacks.getInterface(Ci.nsIXMLHttpRequest) : null;
- if (FBTrace.DBG_NET)
- FBTrace.sysout("net.isXHR; " + (xhrRequest != null) + ", " + safeGetName(request));
-
- return (xhrRequest != null);
- }
- catch (exc)
- {
- }
-
- return false;
- },
-
- getFileCategory: function(file)
- {
- if (file.category)
- {
- if (FBTrace.DBG_NET)
- FBTrace.sysout("net.getFileCategory; current: " + file.category + " for: " + file.href, file);
- return file.category;
- }
-
- if (file.isXHR)
- {
- if (FBTrace.DBG_NET)
- FBTrace.sysout("net.getFileCategory; XHR for: " + file.href, file);
- return file.category = "xhr";
- }
-
- if (!file.mimeType)
- {
- var ext = getFileExtension(file.href);
- if (ext)
- file.mimeType = mimeExtensionMap[ext.toLowerCase()];
- }
-
- /*if (FBTrace.DBG_NET)
- FBTrace.sysout("net.getFileCategory; " + mimeCategoryMap[file.mimeType] +
- ", mimeType: " + file.mimeType + " for: " + file.href, file);*/
-
- if (!file.mimeType)
- return "";
-
- // Solve cases when charset is also specified, eg "text/html; charset=UTF-8".
- var mimeType = file.mimeType;
- if (mimeType)
- mimeType = mimeType.split(";")[0];
-
- return (file.category = mimeCategoryMap[mimeType]);
- }
-};
-
-var Utils = Firebug.NetMonitor.Utils;
-
-// ************************************************************************************************
-
-//Firebug.registerRep(Firebug.NetMonitor.NetRequestTable);
-//Firebug.registerActivableModule(Firebug.NetMonitor);
-//Firebug.registerPanel(NetPanel);
-
-Firebug.registerModule(Firebug.NetMonitor);
-//Firebug.registerRep(Firebug.NetMonitor.BreakpointRep);
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-
-// ************************************************************************************************
-// Constants
-
-//const Cc = Components.classes;
-//const Ci = Components.interfaces;
-
-// List of contexts with XHR spy attached.
-var contexts = [];
-
-// ************************************************************************************************
-// Spy Module
-
-/**
- * @module Represents a XHR Spy module. The main purpose of the XHR Spy feature is to monitor
- * XHR activity of the current page and create appropriate log into the Console panel.
- * This feature can be controlled by an option <i>Show XMLHttpRequests</i> (from within the
- * console panel).
- *
- * The module is responsible for attaching/detaching a HTTP Observers when Firebug is
- * activated/deactivated for a site.
- */
-Firebug.Spy = extend(Firebug.Module,
-/** @lends Firebug.Spy */
-{
- dispatchName: "spy",
-
- initialize: function()
- {
- if (Firebug.TraceModule)
- Firebug.TraceModule.addListener(this.TraceListener);
-
- Firebug.Module.initialize.apply(this, arguments);
- },
-
- shutdown: function()
- {
- Firebug.Module.shutdown.apply(this, arguments);
-
- if (Firebug.TraceModule)
- Firebug.TraceModule.removeListener(this.TraceListener);
- },
-
- initContext: function(context)
- {
- context.spies = [];
-
- if (Firebug.showXMLHttpRequests && Firebug.Console.isAlwaysEnabled())
- this.attachObserver(context, context.window);
-
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.initContext " + contexts.length + " ", context.getName());
- },
-
- destroyContext: function(context)
- {
- // For any spies that are in progress, remove our listeners so that they don't leak
- this.detachObserver(context, null);
-
- if (FBTrace.DBG_SPY && context.spies.length)
- FBTrace.sysout("spy.destroyContext; ERROR There are leaking Spies ("
- + context.spies.length + ") " + context.getName());
-
- delete context.spies;
-
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.destroyContext " + contexts.length + " ", context.getName());
- },
-
- watchWindow: function(context, win)
- {
- if (Firebug.showXMLHttpRequests && Firebug.Console.isAlwaysEnabled())
- this.attachObserver(context, win);
- },
-
- unwatchWindow: function(context, win)
- {
- try
- {
- // This make sure that the existing context is properly removed from "contexts" array.
- this.detachObserver(context, win);
- }
- catch (ex)
- {
- // Get exceptions here sometimes, so let's just ignore them
- // since the window is going away anyhow
- ERROR(ex);
- }
- },
-
- updateOption: function(name, value)
- {
- // XXXjjb Honza, if Console.isEnabled(context) false, then this can't be called,
- // but somehow seems not correct
- if (name == "showXMLHttpRequests")
- {
- var tach = value ? this.attachObserver : this.detachObserver;
- for (var i = 0; i < TabWatcher.contexts.length; ++i)
- {
- var context = TabWatcher.contexts[i];
- iterateWindows(context.window, function(win)
- {
- tach.apply(this, [context, win]);
- });
- }
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Attaching Spy to XHR requests.
-
- /**
- * Returns false if Spy should not be attached to XHRs executed by the specified window.
- */
- skipSpy: function(win)
- {
- if (!win)
- return true;
-
- // Don't attach spy to chrome.
- var uri = safeGetWindowLocation(win);
- if (uri && (uri.indexOf("about:") == 0 || uri.indexOf("chrome:") == 0))
- return true;
- },
-
- attachObserver: function(context, win)
- {
- if (Firebug.Spy.skipSpy(win))
- return;
-
- for (var i=0; i<contexts.length; ++i)
- {
- if ((contexts[i].context == context) && (contexts[i].win == win))
- return;
- }
-
- // Register HTTP observers only once.
- if (contexts.length == 0)
- {
- httpObserver.addObserver(SpyHttpObserver, "firebug-http-event", false);
- SpyHttpActivityObserver.registerObserver();
- }
-
- contexts.push({context: context, win: win});
-
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.attachObserver (HTTP) " + contexts.length + " ", context.getName());
- },
-
- detachObserver: function(context, win)
- {
- for (var i=0; i<contexts.length; ++i)
- {
- if (contexts[i].context == context)
- {
- if (win && (contexts[i].win != win))
- continue;
-
- contexts.splice(i, 1);
-
- // If no context is using spy, remvove the (only one) HTTP observer.
- if (contexts.length == 0)
- {
- httpObserver.removeObserver(SpyHttpObserver, "firebug-http-event");
- SpyHttpActivityObserver.unregisterObserver();
- }
-
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.detachObserver (HTTP) " + contexts.length + " ",
- context.getName());
- return;
- }
- }
- },
-
- /**
- * Return XHR object that is associated with specified request <i>nsIHttpChannel</i>.
- * Returns null if the request doesn't represent XHR.
- */
- getXHR: function(request)
- {
- // Does also query-interface for nsIHttpChannel.
- if (!(request instanceof Ci.nsIHttpChannel))
- return null;
-
- try
- {
- var callbacks = request.notificationCallbacks;
- return (callbacks ? callbacks.getInterface(Ci.nsIXMLHttpRequest) : null);
- }
- catch (exc)
- {
- if (exc.name == "NS_NOINTERFACE")
- {
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.getXHR; Request is not nsIXMLHttpRequest: " +
- safeGetRequestName(request));
- }
- }
-
- return null;
- }
-});
-
-
-
-
-
-// ************************************************************************************************
-
-/*
-function getSpyForXHR(request, xhrRequest, context, noCreate)
-{
- var spy = null;
-
- // Iterate all existing spy objects in this context and look for one that is
- // already created for this request.
- var length = context.spies.length;
- for (var i=0; i<length; i++)
- {
- spy = context.spies[i];
- if (spy.request == request)
- return spy;
- }
-
- if (noCreate)
- return null;
-
- spy = new Firebug.Spy.XMLHttpRequestSpy(request, xhrRequest, context);
- context.spies.push(spy);
-
- var name = request.URI.asciiSpec;
- var origName = request.originalURI.asciiSpec;
-
- // Attach spy only to the original request. Notice that there can be more network requests
- // made by the same XHR if redirects are involved.
- if (name == origName)
- spy.attach();
-
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.getSpyForXHR; New spy object created (" +
- (name == origName ? "new XHR" : "redirected XHR") + ") for: " + name, spy);
-
- return spy;
-}
-/**/
-
-// ************************************************************************************************
-
-/**
- * @class This class represents a Spy object that is attached to XHR. This object
- * registers various listeners into the XHR in order to monitor various events fired
- * during the request process (onLoad, onAbort, etc.)
- */
-/*
-Firebug.Spy.XMLHttpRequestSpy = function(request, xhrRequest, context)
-{
- this.request = request;
- this.xhrRequest = xhrRequest;
- this.context = context;
- this.responseText = "";
-
- // For compatibility with the Net templates.
- this.isXHR = true;
-
- // Support for activity-observer
- this.transactionStarted = false;
- this.transactionClosed = false;
-};
-/**/
-
-//Firebug.Spy.XMLHttpRequestSpy.prototype =
-/** @lends Firebug.Spy.XMLHttpRequestSpy */
-/*
-{
- attach: function()
- {
- var spy = this;
- this.onReadyStateChange = function(event) { onHTTPSpyReadyStateChange(spy, event); };
- this.onLoad = function() { onHTTPSpyLoad(spy); };
- this.onError = function() { onHTTPSpyError(spy); };
- this.onAbort = function() { onHTTPSpyAbort(spy); };
-
- // xxxHonza: #502959 is still failing on Fx 3.5
- // Use activity distributor to identify 3.6
- if (SpyHttpActivityObserver.getActivityDistributor())
- {
- this.onreadystatechange = this.xhrRequest.onreadystatechange;
- this.xhrRequest.onreadystatechange = this.onReadyStateChange;
- }
-
- this.xhrRequest.addEventListener("load", this.onLoad, false);
- this.xhrRequest.addEventListener("error", this.onError, false);
- this.xhrRequest.addEventListener("abort", this.onAbort, false);
-
- // xxxHonza: should be removed from FB 3.6
- if (!SpyHttpActivityObserver.getActivityDistributor())
- this.context.sourceCache.addListener(this);
- },
-
- detach: function()
- {
- // Bubble out if already detached.
- if (!this.onLoad)
- return;
-
- // If the activity distributor is available, let's detach it when the XHR
- // transaction is closed. Since, in case of multipart XHRs the onLoad method
- // (readyState == 4) can be called mutliple times.
- // Keep in mind:
- // 1) It can happen that that the TRANSACTION_CLOSE event comes before
- // the onLoad (if the XHR is made as part of the page load) so, detach if
- // it's already closed.
- // 2) In case of immediate cache responses, the transaction doesn't have to
- // be started at all (or the activity observer is no available in Firefox 3.5).
- // So, also detach in this case.
- if (this.transactionStarted && !this.transactionClosed)
- return;
-
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.detach; " + this.href);
-
- // Remove itself from the list of active spies.
- remove(this.context.spies, this);
-
- if (this.onreadystatechange)
- this.xhrRequest.onreadystatechange = this.onreadystatechange;
-
- try { this.xhrRequest.removeEventListener("load", this.onLoad, false); } catch (e) {}
- try { this.xhrRequest.removeEventListener("error", this.onError, false); } catch (e) {}
- try { this.xhrRequest.removeEventListener("abort", this.onAbort, false); } catch (e) {}
-
- this.onreadystatechange = null;
- this.onLoad = null;
- this.onError = null;
- this.onAbort = null;
-
- // xxxHonza: shouuld be removed from FB 1.6
- if (!SpyHttpActivityObserver.getActivityDistributor())
- this.context.sourceCache.removeListener(this);
- },
-
- getURL: function()
- {
- return this.xhrRequest.channel ? this.xhrRequest.channel.name : this.href;
- },
-
- // Cache listener
- onStopRequest: function(context, request, responseText)
- {
- if (!responseText)
- return;
-
- if (request == this.request)
- this.responseText = responseText;
- },
-};
-/**/
-// ************************************************************************************************
-/*
-function onHTTPSpyReadyStateChange(spy, event)
-{
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.onHTTPSpyReadyStateChange " + spy.xhrRequest.readyState +
- " (multipart: " + spy.xhrRequest.multipart + ")");
-
- // Remember just in case spy is detached (readyState == 4).
- var originalHandler = spy.onreadystatechange;
-
- // Force response text to be updated in the UI (in case the console entry
- // has been already expanded and the response tab selected).
- if (spy.logRow && spy.xhrRequest.readyState >= 3)
- {
- var netInfoBox = getChildByClass(spy.logRow, "spyHead", "netInfoBody");
- if (netInfoBox)
- {
- netInfoBox.htmlPresented = false;
- netInfoBox.responsePresented = false;
- }
- }
-
- // If the request is loading update the end time.
- if (spy.xhrRequest.readyState == 3)
- {
- spy.responseTime = spy.endTime - spy.sendTime;
- updateTime(spy);
- }
-
- // Request loaded. Get all the info from the request now, just in case the
- // XHR would be aborted in the original onReadyStateChange handler.
- if (spy.xhrRequest.readyState == 4)
- {
- // Cumulate response so, multipart response content is properly displayed.
- if (SpyHttpActivityObserver.getActivityDistributor())
- spy.responseText += spy.xhrRequest.responseText;
- else
- {
- // xxxHonza: remove from FB 1.6
- if (!spy.responseText)
- spy.responseText = spy.xhrRequest.responseText;
- }
-
- // The XHR is loaded now (used also by the activity observer).
- spy.loaded = true;
-
- // Update UI.
- updateHttpSpyInfo(spy);
-
- // Notify Net pane about a request beeing loaded.
- // xxxHonza: I don't think this is necessary.
- var netProgress = spy.context.netProgress;
- if (netProgress)
- netProgress.post(netProgress.stopFile, [spy.request, spy.endTime, spy.postText, spy.responseText]);
-
- // Notify registered listeners about finish of the XHR.
- dispatch(Firebug.Spy.fbListeners, "onLoad", [spy.context, spy]);
- }
-
- // Pass the event to the original page handler.
- callPageHandler(spy, event, originalHandler);
-}
-
-function onHTTPSpyLoad(spy)
-{
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.onHTTPSpyLoad: " + spy.href, spy);
-
- // Detach must be done in onLoad (not in onreadystatechange) otherwise
- // onAbort would not be handled.
- spy.detach();
-
- // xxxHonza: Still needed for Fx 3.5 (#502959)
- if (!SpyHttpActivityObserver.getActivityDistributor())
- onHTTPSpyReadyStateChange(spy, null);
-}
-
-function onHTTPSpyError(spy)
-{
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.onHTTPSpyError; " + spy.href, spy);
-
- spy.detach();
- spy.loaded = true;
-
- if (spy.logRow)
- {
- removeClass(spy.logRow, "loading");
- setClass(spy.logRow, "error");
- }
-}
-
-function onHTTPSpyAbort(spy)
-{
- if (FBTrace.DBG_SPY)
- FBTrace.sysout("spy.onHTTPSpyAbort: " + spy.href, spy);
-
- spy.detach();
- spy.loaded = true;
-
- if (spy.logRow)
- {
- removeClass(spy.logRow, "loading");
- setClass(spy.logRow, "error");
- }
-
- spy.statusText = "Aborted";
- updateLogRow(spy);
-
- // Notify Net pane about a request beeing aborted.
- // xxxHonza: the net panel shoud find out this itself.
- var netProgress = spy.context.netProgress;
- if (netProgress)
- netProgress.post(netProgress.abortFile, [spy.request, spy.endTime, spy.postText, spy.responseText]);
-}
-/**/
-
-// ************************************************************************************************
-
-/**
- * @domplate Represents a template for XHRs logged in the Console panel. The body of the
- * log (displayed when expanded) is rendered using {@link Firebug.NetMonitor.NetInfoBody}.
- */
-
-Firebug.Spy.XHR = domplate(Firebug.Rep,
-/** @lends Firebug.Spy.XHR */
-
-{
- tag:
- DIV({"class": "spyHead", _repObject: "$object"},
- TABLE({"class": "spyHeadTable focusRow outerFocusRow", cellpadding: 0, cellspacing: 0,
- "role": "listitem", "aria-expanded": "false"},
- TBODY({"role": "presentation"},
- TR({"class": "spyRow"},
- TD({"class": "spyTitleCol spyCol", onclick: "$onToggleBody"},
- DIV({"class": "spyTitle"},
- "$object|getCaption"
- ),
- DIV({"class": "spyFullTitle spyTitle"},
- "$object|getFullUri"
- )
- ),
- TD({"class": "spyCol"},
- DIV({"class": "spyStatus"}, "$object|getStatus")
- ),
- TD({"class": "spyCol"},
- SPAN({"class": "spyIcon"})
- ),
- TD({"class": "spyCol"},
- SPAN({"class": "spyTime"})
- ),
- TD({"class": "spyCol"},
- TAG(FirebugReps.SourceLink.tag, {object: "$object.sourceLink"})
- )
- )
- )
- )
- ),
-
- getCaption: function(spy)
- {
- return spy.method.toUpperCase() + " " + cropString(spy.getURL(), 100);
- },
-
- getFullUri: function(spy)
- {
- return spy.method.toUpperCase() + " " + spy.getURL();
- },
-
- getStatus: function(spy)
- {
- var text = "";
- if (spy.statusCode)
- text += spy.statusCode + " ";
-
- if (spy.statusText)
- return text += spy.statusText;
-
- return text;
- },
-
- onToggleBody: function(event)
- {
- var target = event.currentTarget || event.srcElement;
- var logRow = getAncestorByClass(target, "logRow-spy");
-
- if (isLeftClick(event))
- {
- toggleClass(logRow, "opened");
-
- var spy = getChildByClass(logRow, "spyHead").repObject;
- var spyHeadTable = getAncestorByClass(target, "spyHeadTable");
-
- if (hasClass(logRow, "opened"))
- {
- updateHttpSpyInfo(spy, logRow);
- if (spyHeadTable)
- spyHeadTable.setAttribute('aria-expanded', 'true');
- }
- else
- {
- //var netInfoBox = getChildByClass(spy.logRow, "spyHead", "netInfoBody");
- //dispatch(Firebug.NetMonitor.NetInfoBody.fbListeners, "destroyTabBody", [netInfoBox, spy]);
- //if (spyHeadTable)
- // spyHeadTable.setAttribute('aria-expanded', 'false');
- }
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- copyURL: function(spy)
- {
- copyToClipboard(spy.getURL());
- },
-
- copyParams: function(spy)
- {
- var text = spy.postText;
- if (!text)
- return;
-
- var url = reEncodeURL(spy, text, true);
- copyToClipboard(url);
- },
-
- copyResponse: function(spy)
- {
- copyToClipboard(spy.responseText);
- },
-
- openInTab: function(spy)
- {
- openNewTab(spy.getURL(), spy.postText);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- supportsObject: function(object)
- {
- // TODO: xxxpedro spy xhr
- return false;
-
- return object instanceof Firebug.Spy.XMLHttpRequestSpy;
- },
-
- browseObject: function(spy, context)
- {
- var url = spy.getURL();
- openNewTab(url);
- return true;
- },
-
- getRealObject: function(spy, context)
- {
- return spy.xhrRequest;
- },
-
- getContextMenuItems: function(spy)
- {
- var items = [
- {label: "CopyLocation", command: bindFixed(this.copyURL, this, spy) }
- ];
-
- if (spy.postText)
- {
- items.push(
- {label: "CopyLocationParameters", command: bindFixed(this.copyParams, this, spy) }
- );
- }
-
- items.push(
- {label: "CopyResponse", command: bindFixed(this.copyResponse, this, spy) },
- "-",
- {label: "OpenInTab", command: bindFixed(this.openInTab, this, spy) }
- );
-
- return items;
- }
-});
-
-// ************************************************************************************************
-
-function updateTime(spy)
-{
- var timeBox = spy.logRow.getElementsByClassName("spyTime").item(0);
- if (spy.responseTime)
- timeBox.textContent = " " + formatTime(spy.responseTime);
-}
-
-function updateLogRow(spy)
-{
- updateTime(spy);
-
- var statusBox = spy.logRow.getElementsByClassName("spyStatus").item(0);
- statusBox.textContent = Firebug.Spy.XHR.getStatus(spy);
-
- removeClass(spy.logRow, "loading");
- setClass(spy.logRow, "loaded");
-
- try
- {
- var errorRange = Math.floor(spy.xhrRequest.status/100);
- if (errorRange == 4 || errorRange == 5)
- setClass(spy.logRow, "error");
- }
- catch (exc)
- {
- }
-}
-
-var updateHttpSpyInfo = function updateHttpSpyInfo(spy, logRow)
-{
- if (!spy.logRow && logRow)
- spy.logRow = logRow;
-
- if (!spy.logRow || !hasClass(spy.logRow, "opened"))
- return;
-
- if (!spy.params)
- //spy.params = parseURLParams(spy.href+"");
- spy.params = parseURLParams(spy.href+"");
-
- if (!spy.requestHeaders)
- spy.requestHeaders = getRequestHeaders(spy);
-
- if (!spy.responseHeaders && spy.loaded)
- spy.responseHeaders = getResponseHeaders(spy);
-
- var template = Firebug.NetMonitor.NetInfoBody;
- var netInfoBox = getChildByClass(spy.logRow, "spyHead", "netInfoBody");
- if (!netInfoBox)
- {
- var head = getChildByClass(spy.logRow, "spyHead");
- netInfoBox = template.tag.append({"file": spy}, head);
- dispatch(template.fbListeners, "initTabBody", [netInfoBox, spy]);
- template.selectTabByName(netInfoBox, "Response");
- }
- else
- {
- template.updateInfo(netInfoBox, spy, spy.context);
- }
-};
-
-
-
-// ************************************************************************************************
-
-function getRequestHeaders(spy)
-{
- var headers = [];
-
- var channel = spy.xhrRequest.channel;
- if (channel instanceof Ci.nsIHttpChannel)
- {
- channel.visitRequestHeaders({
- visitHeader: function(name, value)
- {
- headers.push({name: name, value: value});
- }
- });
- }
-
- return headers;
-}
-
-function getResponseHeaders(spy)
-{
- var headers = [];
-
- try
- {
- var channel = spy.xhrRequest.channel;
- if (channel instanceof Ci.nsIHttpChannel)
- {
- channel.visitResponseHeaders({
- visitHeader: function(name, value)
- {
- headers.push({name: name, value: value});
- }
- });
- }
- }
- catch (exc)
- {
- if (FBTrace.DBG_SPY || FBTrace.DBG_ERRORS)
- FBTrace.sysout("spy.getResponseHeaders; EXCEPTION " +
- safeGetRequestName(spy.request), exc);
- }
-
- return headers;
-}
-
-// ************************************************************************************************
-// Registration
-
-Firebug.registerModule(Firebug.Spy);
-//Firebug.registerRep(Firebug.Spy.XHR);
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-
-// ************************************************************************************************
-
-// List of JSON content types.
-var contentTypes =
-{
- // TODO: create issue: jsonViewer will not try to evaluate the contents of the requested file
- // if the content-type is set to "text/plain"
- //"text/plain": 1,
- "text/javascript": 1,
- "text/x-javascript": 1,
- "text/json": 1,
- "text/x-json": 1,
- "application/json": 1,
- "application/x-json": 1,
- "application/javascript": 1,
- "application/x-javascript": 1,
- "application/json-rpc": 1
-};
-
-// ************************************************************************************************
-// Model implementation
-
-Firebug.JSONViewerModel = extend(Firebug.Module,
-{
- dispatchName: "jsonViewer",
- initialize: function()
- {
- Firebug.NetMonitor.NetInfoBody.addListener(this);
-
- // Used by Firebug.DOMPanel.DirTable domplate.
- this.toggles = {};
- },
-
- shutdown: function()
- {
- Firebug.NetMonitor.NetInfoBody.removeListener(this);
- },
-
- initTabBody: function(infoBox, file)
- {
- if (FBTrace.DBG_JSONVIEWER)
- FBTrace.sysout("jsonviewer.initTabBody", infoBox);
-
- // Let listeners to parse the JSON.
- dispatch(this.fbListeners, "onParseJSON", [file]);
-
- // The JSON is still no there, try to parse most common cases.
- if (!file.jsonObject)
- {
- ///if (this.isJSON(safeGetContentType(file.request), file.responseText))
- if (this.isJSON(file.mimeType, file.responseText))
- file.jsonObject = this.parseJSON(file);
- }
-
- // The jsonObject is created so, the JSON tab can be displayed.
- if (file.jsonObject && hasProperties(file.jsonObject))
- {
- Firebug.NetMonitor.NetInfoBody.appendTab(infoBox, "JSON",
- ///$STR("jsonviewer.tab.JSON"));
- $STR("JSON"));
-
- if (FBTrace.DBG_JSONVIEWER)
- FBTrace.sysout("jsonviewer.initTabBody; JSON object available " +
- (typeof(file.jsonObject) != "undefined"), file.jsonObject);
- }
- },
-
- isJSON: function(contentType, data)
- {
- // Workaround for JSON responses without proper content type
- // Let's consider all responses starting with "{" as JSON. In the worst
- // case there will be an exception when parsing. This means that no-JSON
- // responses (and post data) (with "{") can be parsed unnecessarily,
- // which represents a little overhead, but this happens only if the request
- // is actually expanded by the user in the UI (Net & Console panels).
-
- ///var responseText = data ? trimLeft(data) : null;
- ///if (responseText && responseText.indexOf("{") == 0)
- /// return true;
- var responseText = data ? trim(data) : null;
- if (responseText && responseText.indexOf("{") == 0)
- return true;
-
- if (!contentType)
- return false;
-
- contentType = contentType.split(";")[0];
- contentType = trim(contentType);
- return contentTypes[contentType];
- },
-
- // Update listener for TabView
- updateTabBody: function(infoBox, file, context)
- {
- var tab = infoBox.selectedTab;
- ///var tabBody = infoBox.getElementsByClassName("netInfoJSONText").item(0);
- var tabBody = $$(".netInfoJSONText", infoBox)[0];
- if (!hasClass(tab, "netInfoJSONTab") || tabBody.updated)
- return;
-
- tabBody.updated = true;
-
- if (file.jsonObject) {
- Firebug.DOMPanel.DirTable.tag.replace(
- {object: file.jsonObject, toggles: this.toggles}, tabBody);
- }
- },
-
- parseJSON: function(file)
- {
- var jsonString = new String(file.responseText);
- ///return parseJSONString(jsonString, "http://" + file.request.originalURI.host);
- return parseJSONString(jsonString);
- }
-});
-
-// ************************************************************************************************
-// Registration
-
-Firebug.registerModule(Firebug.JSONViewerModel);
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-
-// ************************************************************************************************
-// Constants
-
-// List of XML related content types.
-var xmlContentTypes =
-[
- "text/xml",
- "application/xml",
- "application/xhtml+xml",
- "application/rss+xml",
- "application/atom+xml",,
- "application/vnd.mozilla.maybe.feed",
- "application/rdf+xml",
- "application/vnd.mozilla.xul+xml"
-];
-
-// ************************************************************************************************
-// Model implementation
-
-/**
- * @module Implements viewer for XML based network responses. In order to create a new
- * tab wihin network request detail, a listener is registered into
- * <code>Firebug.NetMonitor.NetInfoBody</code> object.
- */
-Firebug.XMLViewerModel = extend(Firebug.Module,
-{
- dispatchName: "xmlViewer",
-
- initialize: function()
- {
- ///Firebug.ActivableModule.initialize.apply(this, arguments);
- Firebug.Module.initialize.apply(this, arguments);
- Firebug.NetMonitor.NetInfoBody.addListener(this);
- },
-
- shutdown: function()
- {
- ///Firebug.ActivableModule.shutdown.apply(this, arguments);
- Firebug.Module.shutdown.apply(this, arguments);
- Firebug.NetMonitor.NetInfoBody.removeListener(this);
- },
-
- /**
- * Check response's content-type and if it's a XML, create a new tab with XML preview.
- */
- initTabBody: function(infoBox, file)
- {
- if (FBTrace.DBG_XMLVIEWER)
- FBTrace.sysout("xmlviewer.initTabBody", infoBox);
-
- // If the response is XML let's display a pretty preview.
- ///if (this.isXML(safeGetContentType(file.request)))
- if (this.isXML(file.mimeType, file.responseText))
- {
- Firebug.NetMonitor.NetInfoBody.appendTab(infoBox, "XML",
- ///$STR("xmlviewer.tab.XML"));
- $STR("XML"));
-
- if (FBTrace.DBG_XMLVIEWER)
- FBTrace.sysout("xmlviewer.initTabBody; XML response available");
- }
- },
-
- isXML: function(contentType)
- {
- if (!contentType)
- return false;
-
- // Look if the response is XML based.
- for (var i=0; i<xmlContentTypes.length; i++)
- {
- if (contentType.indexOf(xmlContentTypes[i]) == 0)
- return true;
- }
-
- return false;
- },
-
- /**
- * Parse XML response and render pretty printed preview.
- */
- updateTabBody: function(infoBox, file, context)
- {
- var tab = infoBox.selectedTab;
- ///var tabBody = infoBox.getElementsByClassName("netInfoXMLText").item(0);
- var tabBody = $$(".netInfoXMLText", infoBox)[0];
- if (!hasClass(tab, "netInfoXMLTab") || tabBody.updated)
- return;
-
- tabBody.updated = true;
-
- this.insertXML(tabBody, Firebug.NetMonitor.Utils.getResponseText(file, context));
- },
-
- insertXML: function(parentNode, text)
- {
- var xmlText = text.replace(/^\s*<?.+?>\s*/, "");
-
- var div = parentNode.ownerDocument.createElement("div");
- div.innerHTML = xmlText;
-
- var root = div.getElementsByTagName("*")[0];
-
- /***
- var parser = CCIN("@mozilla.org/xmlextras/domparser;1", "nsIDOMParser");
- var doc = parser.parseFromString(text, "text/xml");
- var root = doc.documentElement;
-
- // Error handling
- var nsURI = "http://www.mozilla.org/newlayout/xml/parsererror.xml";
- if (root.namespaceURI == nsURI && root.nodeName == "parsererror")
- {
- this.ParseError.tag.replace({error: {
- message: root.firstChild.nodeValue,
- source: root.lastChild.textContent
- }}, parentNode);
- return;
- }
- /**/
-
- if (FBTrace.DBG_XMLVIEWER)
- FBTrace.sysout("xmlviewer.updateTabBody; XML response parsed", doc);
-
- // Override getHidden in these templates. The parsed XML documen is
- // hidden, but we want to display it using 'visible' styling.
- /*
- var templates = [
- Firebug.HTMLPanel.CompleteElement,
- Firebug.HTMLPanel.Element,
- Firebug.HTMLPanel.TextElement,
- Firebug.HTMLPanel.EmptyElement,
- Firebug.HTMLPanel.XEmptyElement,
- ];
-
- var originals = [];
- for (var i=0; i<templates.length; i++)
- {
- originals[i] = templates[i].getHidden;
- templates[i].getHidden = function() {
- return "";
- }
- }
- /**/
-
- // Generate XML preview.
- ///Firebug.HTMLPanel.CompleteElement.tag.replace({object: doc.documentElement}, parentNode);
-
- // TODO: xxxpedro html3
- ///Firebug.HTMLPanel.CompleteElement.tag.replace({object: root}, parentNode);
- var html = [];
- Firebug.Reps.appendNode(root, html);
- parentNode.innerHTML = html.join("");
-
-
- /*
- for (var i=0; i<originals.length; i++)
- templates[i].getHidden = originals[i];/**/
- }
-});
-
-// ************************************************************************************************
-// Domplate
-
-/**
- * @domplate Represents a template for displaying XML parser errors. Used by
- * <code>Firebug.XMLViewerModel</code>.
- */
-Firebug.XMLViewerModel.ParseError = domplate(Firebug.Rep,
-{
- tag:
- DIV({"class": "xmlInfoError"},
- DIV({"class": "xmlInfoErrorMsg"}, "$error.message"),
- PRE({"class": "xmlInfoErrorSource"}, "$error|getSource")
- ),
-
- getSource: function(error)
- {
- var parts = error.source.split("\n");
- if (parts.length != 2)
- return error.source;
-
- var limit = 50;
- var column = parts[1].length;
- if (column >= limit) {
- parts[0] = "..." + parts[0].substr(column - limit);
- parts[1] = "..." + parts[1].substr(column - limit);
- }
-
- if (parts[0].length > 80)
- parts[0] = parts[0].substr(0, 80) + "...";
-
- return parts.join("\n");
- }
-});
-
-// ************************************************************************************************
-// Registration
-
-Firebug.registerModule(Firebug.XMLViewerModel);
-
-}});
-
-
-/* See license.txt for terms of usage */
-
-// next-generation Console Panel (will override consoje.js)
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Constants
-
-/*
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const nsIPrefBranch2 = Ci.nsIPrefBranch2;
-const PrefService = Cc["@mozilla.org/preferences-service;1"];
-const prefs = PrefService.getService(nsIPrefBranch2);
-/**/
-/*
-
-// new offline message handler
-o = {x:1,y:2};
-
-r = Firebug.getRep(o);
-
-r.tag.tag.compile();
-
-outputs = [];
-html = r.tag.renderHTML({object:o}, outputs);
-
-
-// finish rendering the template (the DOM part)
-target = $("build");
-target.innerHTML = html;
-root = target.firstChild;
-
-domArgs = [root, r.tag.context, 0];
-domArgs.push.apply(domArgs, r.tag.domArgs);
-domArgs.push.apply(domArgs, outputs);
-r.tag.tag.renderDOM.apply(self ? self : r.tag.subject, domArgs);
-
-
- */
-var consoleQueue = [];
-var lastHighlightedObject;
-var FirebugContext = Env.browser;
-
-// ************************************************************************************************
-
-var maxQueueRequests = 500;
-
-// ************************************************************************************************
-
-Firebug.ConsoleBase =
-{
- log: function(object, context, className, rep, noThrottle, sourceLink)
- {
- //dispatch(this.fbListeners,"log",[context, object, className, sourceLink]);
- return this.logRow(appendObject, object, context, className, rep, sourceLink, noThrottle);
- },
-
- logFormatted: function(objects, context, className, noThrottle, sourceLink)
- {
- //dispatch(this.fbListeners,"logFormatted",[context, objects, className, sourceLink]);
- return this.logRow(appendFormatted, objects, context, className, null, sourceLink, noThrottle);
- },
-
- openGroup: function(objects, context, className, rep, noThrottle, sourceLink, noPush)
- {
- return this.logRow(appendOpenGroup, objects, context, className, rep, sourceLink, noThrottle);
- },
-
- closeGroup: function(context, noThrottle)
- {
- return this.logRow(appendCloseGroup, null, context, null, null, null, noThrottle, true);
- },
-
- logRow: function(appender, objects, context, className, rep, sourceLink, noThrottle, noRow)
- {
- // TODO: xxxpedro console console2
- noThrottle = true; // xxxpedro forced because there is no TabContext yet
-
- if (!context)
- context = FirebugContext;
-
- if (FBTrace.DBG_ERRORS && !context)
- FBTrace.sysout("Console.logRow has no context, skipping objects", objects);
-
- if (!context)
- return;
-
- if (noThrottle || !context)
- {
- var panel = this.getPanel(context);
- if (panel)
- {
- var row = panel.append(appender, objects, className, rep, sourceLink, noRow);
- var container = panel.panelNode;
-
- // TODO: xxxpedro what is this? console console2
- /*
- var template = Firebug.NetMonitor.NetLimit;
-
- while (container.childNodes.length > maxQueueRequests + 1)
- {
- clearDomplate(container.firstChild.nextSibling);
- container.removeChild(container.firstChild.nextSibling);
- panel.limit.limitInfo.totalCount++;
- template.updateCounter(panel.limit);
- }
- dispatch([Firebug.A11yModel], "onLogRowCreated", [panel , row]);
- /**/
- return row;
- }
- else
- {
- consoleQueue.push([appender, objects, context, className, rep, sourceLink, noThrottle, noRow]);
- }
- }
- else
- {
- if (!context.throttle)
- {
- //FBTrace.sysout("console.logRow has not context.throttle! ");
- return;
- }
- var args = [appender, objects, context, className, rep, sourceLink, true, noRow];
- context.throttle(this.logRow, this, args);
- }
- },
-
- appendFormatted: function(args, row, context)
- {
- if (!context)
- context = FirebugContext;
-
- var panel = this.getPanel(context);
- panel.appendFormatted(args, row);
- },
-
- clear: function(context)
- {
- if (!context)
- //context = FirebugContext;
- context = Firebug.context;
-
- /*
- if (context)
- Firebug.Errors.clear(context);
- /**/
-
- var panel = this.getPanel(context, true);
- if (panel)
- {
- panel.clear();
- }
- },
-
- // Override to direct output to your panel
- getPanel: function(context, noCreate)
- {
- //return context.getPanel("console", noCreate);
- // TODO: xxxpedro console console2
- return Firebug.chrome ? Firebug.chrome.getPanel("Console") : null;
- }
-
-};
-
-// ************************************************************************************************
-
-//TODO: xxxpedro
-//var ActivableConsole = extend(Firebug.ActivableModule, Firebug.ConsoleBase);
-var ActivableConsole = extend(Firebug.ConsoleBase,
-{
- isAlwaysEnabled: function()
- {
- return true;
- }
-});
-
-Firebug.Console = Firebug.Console = extend(ActivableConsole,
-//Firebug.Console = extend(ActivableConsole,
-{
- dispatchName: "console",
-
- error: function()
- {
- Firebug.Console.logFormatted(arguments, Firebug.browser, "error");
- },
-
- flush: function()
- {
- dispatch(this.fbListeners,"flush",[]);
-
- for (var i=0, length=consoleQueue.length; i<length; i++)
- {
- var args = consoleQueue[i];
- this.logRow.apply(this, args);
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Module
-
- showPanel: function(browser, panel)
- {
- },
-
- getFirebugConsoleElement: function(context, win)
- {
- var element = win.document.getElementById("_firebugConsole");
- if (!element)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("getFirebugConsoleElement forcing element");
- var elementForcer = "(function(){var r=null; try { r = window._getFirebugConsoleElement();}catch(exc){r=exc;} return r;})();"; // we could just add the elements here
-
- if (context.stopped)
- Firebug.Console.injector.evaluateConsoleScript(context); // todo evaluate consoleForcer on stack
- else
- var r = Firebug.CommandLine.evaluateInWebPage(elementForcer, context, win);
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("getFirebugConsoleElement forcing element result "+r, r);
-
- var element = win.document.getElementById("_firebugConsole");
- if (!element) // elementForce fails
- {
- if (FBTrace.DBG_ERRORS) FBTrace.sysout("console.getFirebugConsoleElement: no _firebugConsole in win:", win);
- Firebug.Console.logFormatted(["Firebug cannot find _firebugConsole element", r, win], context, "error", true);
- }
- }
-
- return element;
- },
-
- isReadyElsePreparing: function(context, win) // this is the only code that should call injector.attachIfNeeded
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.isReadyElsePreparing, win is " +
- (win?"an argument: ":"null, context.window: ") +
- (win?win.location:context.window.location), (win?win:context.window));
-
- if (win)
- return this.injector.attachIfNeeded(context, win);
- else
- {
- var attached = true;
- for (var i = 0; i < context.windows.length; i++)
- attached = attached && this.injector.attachIfNeeded(context, context.windows[i]);
- // already in the list above attached = attached && this.injector.attachIfNeeded(context, context.window);
- if (context.windows.indexOf(context.window) == -1)
- FBTrace.sysout("isReadyElsePreparing ***************** context.window not in context.windows");
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.isReadyElsePreparing attached to "+context.windows.length+" and returns "+attached);
- return attached;
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends ActivableModule
-
- initialize: function()
- {
- this.panelName = "console";
-
- //TODO: xxxpedro
- //Firebug.ActivableModule.initialize.apply(this, arguments);
- //Firebug.Debugger.addListener(this);
- },
-
- enable: function()
- {
- if (Firebug.Console.isAlwaysEnabled())
- this.watchForErrors();
- },
-
- disable: function()
- {
- if (Firebug.Console.isAlwaysEnabled())
- this.unwatchForErrors();
- },
-
- initContext: function(context, persistedState)
- {
- Firebug.ActivableModule.initContext.apply(this, arguments);
- context.consoleReloadWarning = true; // mark as need to warn.
- },
-
- loadedContext: function(context)
- {
- for (var url in context.sourceFileMap)
- return; // if there are any sourceFiles, then do nothing
-
- // else we saw no JS, so the reload warning it not needed.
- this.clearReloadWarning(context);
- },
-
- clearReloadWarning: function(context) // remove the warning about reloading.
- {
- if (context.consoleReloadWarning)
- {
- var panel = context.getPanel(this.panelName);
- panel.clearReloadWarning();
- delete context.consoleReloadWarning;
- }
- },
-
- togglePersist: function(context)
- {
- var panel = context.getPanel(this.panelName);
- panel.persistContent = panel.persistContent ? false : true;
- Firebug.chrome.setGlobalAttribute("cmd_togglePersistConsole", "checked", panel.persistContent);
- },
-
- showContext: function(browser, context)
- {
- Firebug.chrome.setGlobalAttribute("cmd_clearConsole", "disabled", !context);
-
- Firebug.ActivableModule.showContext.apply(this, arguments);
- },
-
- destroyContext: function(context, persistedState)
- {
- Firebug.Console.injector.detachConsole(context, context.window); // TODO iterate windows?
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- onPanelEnable: function(panelName)
- {
- if (panelName != this.panelName) // we don't care about other panels
- return;
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.onPanelEnable**************");
-
- this.watchForErrors();
- Firebug.Debugger.addDependentModule(this); // we inject the console during JS compiles so we need jsd
- },
-
- onPanelDisable: function(panelName)
- {
- if (panelName != this.panelName) // we don't care about other panels
- return;
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.onPanelDisable**************");
-
- Firebug.Debugger.removeDependentModule(this); // we inject the console during JS compiles so we need jsd
- this.unwatchForErrors();
-
- // Make sure possible errors coming from the page and displayed in the Firefox
- // status bar are removed.
- this.clear();
- },
-
- onSuspendFirebug: function()
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.onSuspendFirebug\n");
- if (Firebug.Console.isAlwaysEnabled())
- this.unwatchForErrors();
- },
-
- onResumeFirebug: function()
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.onResumeFirebug\n");
- if (Firebug.Console.isAlwaysEnabled())
- this.watchForErrors();
- },
-
- watchForErrors: function()
- {
- Firebug.Errors.checkEnabled();
- $('fbStatusIcon').setAttribute("console", "on");
- },
-
- unwatchForErrors: function()
- {
- Firebug.Errors.checkEnabled();
- $('fbStatusIcon').removeAttribute("console");
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Firebug.Debugger listener
-
- onMonitorScript: function(context, frame)
- {
- Firebug.Console.log(frame, context);
- },
-
- onFunctionCall: function(context, frame, depth, calling)
- {
- if (calling)
- Firebug.Console.openGroup([frame, "depth:"+depth], context);
- else
- Firebug.Console.closeGroup(context);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- logRow: function(appender, objects, context, className, rep, sourceLink, noThrottle, noRow)
- {
- if (!context)
- context = FirebugContext;
-
- if (FBTrace.DBG_WINDOWS && !context) FBTrace.sysout("Console.logRow: no context \n");
-
- if (this.isAlwaysEnabled())
- return Firebug.ConsoleBase.logRow.apply(this, arguments);
- }
-});
-
-Firebug.ConsoleListener =
-{
- log: function(context, object, className, sourceLink)
- {
- },
-
- logFormatted: function(context, objects, className, sourceLink)
- {
- }
-};
-
-// ************************************************************************************************
-
-Firebug.ConsolePanel = function () {} // XXjjb attach Firebug so this panel can be extended.
-
-//TODO: xxxpedro
-//Firebug.ConsolePanel.prototype = extend(Firebug.ActivablePanel,
-Firebug.ConsolePanel.prototype = extend(Firebug.Panel,
-{
- wasScrolledToBottom: false,
- messageCount: 0,
- lastLogTime: 0,
- groups: null,
- limit: null,
-
- append: function(appender, objects, className, rep, sourceLink, noRow)
- {
- var container = this.getTopContainer();
-
- if (noRow)
- {
- appender.apply(this, [objects]);
- }
- else
- {
- // xxxHonza: Don't update the this.wasScrolledToBottom flag now.
- // At the beginning (when the first log is created) the isScrolledToBottom
- // always returns true.
- //if (this.panelNode.offsetHeight)
- // this.wasScrolledToBottom = isScrolledToBottom(this.panelNode);
-
- var row = this.createRow("logRow", className);
- appender.apply(this, [objects, row, rep]);
-
- if (sourceLink)
- FirebugReps.SourceLink.tag.append({object: sourceLink}, row);
-
- container.appendChild(row);
-
- this.filterLogRow(row, this.wasScrolledToBottom);
-
- if (this.wasScrolledToBottom)
- scrollToBottom(this.panelNode);
-
- return row;
- }
- },
-
- clear: function()
- {
- if (this.panelNode)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("ConsolePanel.clear");
- clearNode(this.panelNode);
- this.insertLogLimit(this.context);
- }
- },
-
- insertLogLimit: function()
- {
- // Create limit row. This row is the first in the list of entries
- // and initially hidden. It's displayed as soon as the number of
- // entries reaches the limit.
- var row = this.createRow("limitRow");
-
- var limitInfo = {
- totalCount: 0,
- limitPrefsTitle: $STRF("LimitPrefsTitle", [Firebug.prefDomain+".console.logLimit"])
- };
-
- //TODO: xxxpedro console net limit!?
- return;
- var netLimitRep = Firebug.NetMonitor.NetLimit;
- var nodes = netLimitRep.createTable(row, limitInfo);
-
- this.limit = nodes[1];
-
- var container = this.panelNode;
- container.insertBefore(nodes[0], container.firstChild);
- },
-
- insertReloadWarning: function()
- {
- // put the message in, we will clear if the window console is injected.
- this.warningRow = this.append(appendObject, $STR("message.Reload to activate window console"), "info");
- },
-
- clearReloadWarning: function()
- {
- if (this.warningRow)
- {
- this.warningRow.parentNode.removeChild(this.warningRow);
- delete this.warningRow;
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- appendObject: function(object, row, rep)
- {
- if (!rep)
- rep = Firebug.getRep(object);
- return rep.tag.append({object: object}, row);
- },
-
- appendFormatted: function(objects, row, rep)
- {
- if (!objects || !objects.length)
- return;
-
- function logText(text, row)
- {
- var node = row.ownerDocument.createTextNode(text);
- row.appendChild(node);
- }
-
- var format = objects[0];
- var objIndex = 0;
-
- if (typeof(format) != "string")
- {
- format = "";
- objIndex = -1;
- }
- else // a string
- {
- if (objects.length === 1) // then we have only a string...
- {
- if (format.length < 1) { // ...and it has no characters.
- logText("(an empty string)", row);
- return;
- }
- }
- }
-
- var parts = parseFormat(format);
- var trialIndex = objIndex;
- for (var i= 0; i < parts.length; i++)
- {
- var part = parts[i];
- if (part && typeof(part) == "object")
- {
- if (++trialIndex > objects.length) // then too few parameters for format, assume unformatted.
- {
- format = "";
- objIndex = -1;
- parts.length = 0;
- break;
- }
- }
-
- }
- for (var i = 0; i < parts.length; ++i)
- {
- var part = parts[i];
- if (part && typeof(part) == "object")
- {
- var object = objects[++objIndex];
- if (typeof(object) != "undefined")
- this.appendObject(object, row, part.rep);
- else
- this.appendObject(part.type, row, FirebugReps.Text);
- }
- else
- FirebugReps.Text.tag.append({object: part}, row);
- }
-
- for (var i = objIndex+1; i < objects.length; ++i)
- {
- logText(" ", row);
- var object = objects[i];
- if (typeof(object) == "string")
- FirebugReps.Text.tag.append({object: object}, row);
- else
- this.appendObject(object, row);
- }
- },
-
- appendOpenGroup: function(objects, row, rep)
- {
- if (!this.groups)
- this.groups = [];
-
- setClass(row, "logGroup");
- setClass(row, "opened");
-
- var innerRow = this.createRow("logRow");
- setClass(innerRow, "logGroupLabel");
- if (rep)
- rep.tag.replace({"objects": objects}, innerRow);
- else
- this.appendFormatted(objects, innerRow, rep);
- row.appendChild(innerRow);
- //dispatch([Firebug.A11yModel], 'onLogRowCreated', [this, innerRow]);
- var groupBody = this.createRow("logGroupBody");
- row.appendChild(groupBody);
- groupBody.setAttribute('role', 'group');
- this.groups.push(groupBody);
-
- addEvent(innerRow, "mousedown", function(event)
- {
- if (isLeftClick(event))
- {
- //console.log(event.currentTarget == event.target);
-
- var target = event.target || event.srcElement;
-
- target = getAncestorByClass(target, "logGroupLabel");
-
- var groupRow = target.parentNode;
-
- if (hasClass(groupRow, "opened"))
- {
- removeClass(groupRow, "opened");
- target.setAttribute('aria-expanded', 'false');
- }
- else
- {
- setClass(groupRow, "opened");
- target.setAttribute('aria-expanded', 'true');
- }
- }
- });
- },
-
- appendCloseGroup: function(object, row, rep)
- {
- if (this.groups)
- this.groups.pop();
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // TODO: xxxpedro console2
- onMouseMove: function(event)
- {
- if (!Firebug.Inspector) return;
-
- var target = event.srcElement || event.target;
-
- var object = getAncestorByClass(target, "objectLink-element");
- object = object ? object.repObject : null;
-
- if(object && instanceOf(object, "Element") && object.nodeType == 1)
- {
- if(object != lastHighlightedObject)
- {
- Firebug.Inspector.drawBoxModel(object);
- object = lastHighlightedObject;
- }
- }
- else
- Firebug.Inspector.hideBoxModel();
-
- },
-
- onMouseDown: function(event)
- {
- var target = event.srcElement || event.target;
-
- var object = getAncestorByClass(target, "objectLink");
- var repObject = object ? object.repObject : null;
-
- if (!repObject)
- {
- return;
- }
-
- if (hasClass(object, "objectLink-object"))
- {
- Firebug.chrome.selectPanel("DOM");
- Firebug.chrome.getPanel("DOM").select(repObject, true);
- }
- else if (hasClass(object, "objectLink-element"))
- {
- Firebug.chrome.selectPanel("HTML");
- Firebug.chrome.getPanel("HTML").select(repObject, true);
- }
-
- /*
- if(object && instanceOf(object, "Element") && object.nodeType == 1)
- {
- if(object != lastHighlightedObject)
- {
- Firebug.Inspector.drawBoxModel(object);
- object = lastHighlightedObject;
- }
- }
- else
- Firebug.Inspector.hideBoxModel();
- /**/
-
- },
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Panel
-
- name: "Console",
- title: "Console",
- //searchable: true,
- //breakable: true,
- //editable: false,
-
- options:
- {
- hasCommandLine: true,
- hasToolButtons: true,
- isPreRendered: true
- },
-
- create: function()
- {
- Firebug.Panel.create.apply(this, arguments);
-
- this.context = Firebug.browser.window;
- this.document = Firebug.chrome.document;
- this.onMouseMove = bind(this.onMouseMove, this);
- this.onMouseDown = bind(this.onMouseDown, this);
-
- this.clearButton = new Button({
- element: $("fbConsole_btClear"),
- owner: Firebug.Console,
- onClick: Firebug.Console.clear
- });
- },
-
- initialize: function()
- {
- Firebug.Panel.initialize.apply(this, arguments); // loads persisted content
- //Firebug.ActivablePanel.initialize.apply(this, arguments); // loads persisted content
-
- if (!this.persistedContent && Firebug.Console.isAlwaysEnabled())
- {
- this.insertLogLimit(this.context);
-
- // Initialize log limit and listen for changes.
- this.updateMaxLimit();
-
- if (this.context.consoleReloadWarning) // we have not yet injected the console
- this.insertReloadWarning();
- }
-
- //Firebug.Console.injector.install(Firebug.browser.window);
-
- addEvent(this.panelNode, "mouseover", this.onMouseMove);
- addEvent(this.panelNode, "mousedown", this.onMouseDown);
-
- this.clearButton.initialize();
-
- //consolex.trace();
- //TODO: xxxpedro remove this
- /*
- Firebug.Console.openGroup(["asd"], null, "group", null, false);
- Firebug.Console.log("asd");
- Firebug.Console.log("asd");
- Firebug.Console.log("asd");
- /**/
-
- //TODO: xxxpedro preferences prefs
- //prefs.addObserver(Firebug.prefDomain, this, false);
- },
-
- initializeNode : function()
- {
- //dispatch([Firebug.A11yModel], 'onInitializeNode', [this]);
- if (FBTrace.DBG_CONSOLE)
- {
- this.onScroller = bind(this.onScroll, this);
- addEvent(this.panelNode, "scroll", this.onScroller);
- }
-
- this.onResizer = bind(this.onResize, this);
- this.resizeEventTarget = Firebug.chrome.$('fbContentBox');
- addEvent(this.resizeEventTarget, "resize", this.onResizer);
- },
-
- destroyNode : function()
- {
- //dispatch([Firebug.A11yModel], 'onDestroyNode', [this]);
- if (this.onScroller)
- removeEvent(this.panelNode, "scroll", this.onScroller);
-
- //removeEvent(this.resizeEventTarget, "resize", this.onResizer);
- },
-
- shutdown: function()
- {
- //TODO: xxxpedro console console2
- this.clearButton.shutdown();
-
- removeEvent(this.panelNode, "mousemove", this.onMouseMove);
- removeEvent(this.panelNode, "mousedown", this.onMouseDown);
-
- this.destroyNode();
-
- Firebug.Panel.shutdown.apply(this, arguments);
-
- //TODO: xxxpedro preferences prefs
- //prefs.removeObserver(Firebug.prefDomain, this, false);
- },
-
- ishow: function(state)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("Console.panel show; " + this.context.getName(), state);
-
- var enabled = Firebug.Console.isAlwaysEnabled();
- if (enabled)
- {
- Firebug.Console.disabledPanelPage.hide(this);
- this.showCommandLine(true);
- this.showToolbarButtons("fbConsoleButtons", true);
- Firebug.chrome.setGlobalAttribute("cmd_togglePersistConsole", "checked", this.persistContent);
-
- if (state && state.wasScrolledToBottom)
- {
- this.wasScrolledToBottom = state.wasScrolledToBottom;
- delete state.wasScrolledToBottom;
- }
-
- if (this.wasScrolledToBottom)
- scrollToBottom(this.panelNode);
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.show ------------------ wasScrolledToBottom: " +
- this.wasScrolledToBottom + ", " + this.context.getName());
- }
- else
- {
- this.hide(state);
- Firebug.Console.disabledPanelPage.show(this);
- }
- },
-
- ihide: function(state)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("Console.panel hide; " + this.context.getName(), state);
-
- this.showToolbarButtons("fbConsoleButtons", false);
- this.showCommandLine(false);
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.hide ------------------ wasScrolledToBottom: " +
- this.wasScrolledToBottom + ", " + this.context.getName());
- },
-
- destroy: function(state)
- {
- if (this.panelNode.offsetHeight)
- this.wasScrolledToBottom = isScrolledToBottom(this.panelNode);
-
- if (state)
- state.wasScrolledToBottom = this.wasScrolledToBottom;
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.destroy ------------------ wasScrolledToBottom: " +
- this.wasScrolledToBottom + ", " + this.context.getName());
- },
-
- shouldBreakOnNext: function()
- {
- // xxxHonza: shouldn't the breakOnErrors be context related?
- // xxxJJB, yes, but we can't support it because we can't yet tell
- // which window the error is on.
- return Firebug.getPref(Firebug.servicePrefDomain, "breakOnErrors");
- },
-
- getBreakOnNextTooltip: function(enabled)
- {
- return (enabled ? $STR("console.Disable Break On All Errors") :
- $STR("console.Break On All Errors"));
- },
-
- enablePanel: function(module)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.ConsolePanel.enablePanel; " + this.context.getName());
-
- Firebug.ActivablePanel.enablePanel.apply(this, arguments);
-
- this.showCommandLine(true);
-
- if (this.wasScrolledToBottom)
- scrollToBottom(this.panelNode);
- },
-
- disablePanel: function(module)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.ConsolePanel.disablePanel; " + this.context.getName());
-
- Firebug.ActivablePanel.disablePanel.apply(this, arguments);
-
- this.showCommandLine(false);
- },
-
- getOptionsMenuItems: function()
- {
- return [
- optionMenu("ShowJavaScriptErrors", "showJSErrors"),
- optionMenu("ShowJavaScriptWarnings", "showJSWarnings"),
- optionMenu("ShowCSSErrors", "showCSSErrors"),
- optionMenu("ShowXMLErrors", "showXMLErrors"),
- optionMenu("ShowXMLHttpRequests", "showXMLHttpRequests"),
- optionMenu("ShowChromeErrors", "showChromeErrors"),
- optionMenu("ShowChromeMessages", "showChromeMessages"),
- optionMenu("ShowExternalErrors", "showExternalErrors"),
- optionMenu("ShowNetworkErrors", "showNetworkErrors"),
- this.getShowStackTraceMenuItem(),
- this.getStrictOptionMenuItem(),
- "-",
- optionMenu("LargeCommandLine", "largeCommandLine")
- ];
- },
-
- getShowStackTraceMenuItem: function()
- {
- var menuItem = serviceOptionMenu("ShowStackTrace", "showStackTrace");
- if (FirebugContext && !Firebug.Debugger.isAlwaysEnabled())
- menuItem.disabled = true;
- return menuItem;
- },
-
- getStrictOptionMenuItem: function()
- {
- var strictDomain = "javascript.options";
- var strictName = "strict";
- var strictValue = prefs.getBoolPref(strictDomain+"."+strictName);
- return {label: "JavascriptOptionsStrict", type: "checkbox", checked: strictValue,
- command: bindFixed(Firebug.setPref, Firebug, strictDomain, strictName, !strictValue) };
- },
-
- getBreakOnMenuItems: function()
- {
- //xxxHonza: no BON options for now.
- /*return [
- optionMenu("console.option.Persist Break On Error", "persistBreakOnError")
- ];*/
- return [];
- },
-
- search: function(text)
- {
- if (!text)
- return;
-
- // Make previously visible nodes invisible again
- if (this.matchSet)
- {
- for (var i in this.matchSet)
- removeClass(this.matchSet[i], "matched");
- }
-
- this.matchSet = [];
-
- function findRow(node) { return getAncestorByClass(node, "logRow"); }
- var search = new TextSearch(this.panelNode, findRow);
-
- var logRow = search.find(text);
- if (!logRow)
- {
- dispatch([Firebug.A11yModel], 'onConsoleSearchMatchFound', [this, text, []]);
- return false;
- }
- for (; logRow; logRow = search.findNext())
- {
- setClass(logRow, "matched");
- this.matchSet.push(logRow);
- }
- dispatch([Firebug.A11yModel], 'onConsoleSearchMatchFound', [this, text, this.matchSet]);
- return true;
- },
-
- breakOnNext: function(breaking)
- {
- Firebug.setPref(Firebug.servicePrefDomain, "breakOnErrors", breaking);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // private
-
- createRow: function(rowName, className)
- {
- var elt = this.document.createElement("div");
- elt.className = rowName + (className ? " " + rowName + "-" + className : "");
- return elt;
- },
-
- getTopContainer: function()
- {
- if (this.groups && this.groups.length)
- return this.groups[this.groups.length-1];
- else
- return this.panelNode;
- },
-
- filterLogRow: function(logRow, scrolledToBottom)
- {
- if (this.searchText)
- {
- setClass(logRow, "matching");
- setClass(logRow, "matched");
-
- // Search after a delay because we must wait for a frame to be created for
- // the new logRow so that the finder will be able to locate it
- setTimeout(bindFixed(function()
- {
- if (this.searchFilter(this.searchText, logRow))
- this.matchSet.push(logRow);
- else
- removeClass(logRow, "matched");
-
- removeClass(logRow, "matching");
-
- if (scrolledToBottom)
- scrollToBottom(this.panelNode);
- }, this), 100);
- }
- },
-
- searchFilter: function(text, logRow)
- {
- var count = this.panelNode.childNodes.length;
- var searchRange = this.document.createRange();
- searchRange.setStart(this.panelNode, 0);
- searchRange.setEnd(this.panelNode, count);
-
- var startPt = this.document.createRange();
- startPt.setStartBefore(logRow);
-
- var endPt = this.document.createRange();
- endPt.setStartAfter(logRow);
-
- return finder.Find(text, searchRange, startPt, endPt) != null;
- },
-
- // nsIPrefObserver
- observe: function(subject, topic, data)
- {
- // We're observing preferences only.
- if (topic != "nsPref:changed")
- return;
-
- // xxxHonza check this out.
- var prefDomain = "Firebug.extension.";
- var prefName = data.substr(prefDomain.length);
- if (prefName == "console.logLimit")
- this.updateMaxLimit();
- },
-
- updateMaxLimit: function()
- {
- var value = 1000;
- //TODO: xxxpedro preferences log limit?
- //var value = Firebug.getPref(Firebug.prefDomain, "console.logLimit");
- maxQueueRequests = value ? value : maxQueueRequests;
- },
-
- showCommandLine: function(shouldShow)
- {
- //TODO: xxxpedro show command line important
- return;
-
- if (shouldShow)
- {
- collapse(Firebug.chrome.$("fbCommandBox"), false);
- Firebug.CommandLine.setMultiLine(Firebug.largeCommandLine, Firebug.chrome);
- }
- else
- {
- // Make sure that entire content of the Console panel is hidden when
- // the panel is disabled.
- Firebug.CommandLine.setMultiLine(false, Firebug.chrome, Firebug.largeCommandLine);
- collapse(Firebug.chrome.$("fbCommandBox"), true);
- }
- },
-
- onScroll: function(event)
- {
- // Update the scroll position flag if the position changes.
- this.wasScrolledToBottom = FBL.isScrolledToBottom(this.panelNode);
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.onScroll ------------------ wasScrolledToBottom: " +
- this.wasScrolledToBottom + ", wasScrolledToBottom: " +
- this.context.getName(), event);
- },
-
- onResize: function(event)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("console.onResize ------------------ wasScrolledToBottom: " +
- this.wasScrolledToBottom + ", offsetHeight: " + this.panelNode.offsetHeight +
- ", scrollTop: " + this.panelNode.scrollTop + ", scrollHeight: " +
- this.panelNode.scrollHeight + ", " + this.context.getName(), event);
-
- if (this.wasScrolledToBottom)
- scrollToBottom(this.panelNode);
- }
-});
-
-// ************************************************************************************************
-
-function parseFormat(format)
-{
- var parts = [];
- if (format.length <= 0)
- return parts;
-
- var reg = /((^%|.%)(\d+)?(\.)([a-zA-Z]))|((^%|.%)([a-zA-Z]))/;
- for (var m = reg.exec(format); m; m = reg.exec(format))
- {
- if (m[0].substr(0, 2) == "%%")
- {
- parts.push(format.substr(0, m.index));
- parts.push(m[0].substr(1));
- }
- else
- {
- var type = m[8] ? m[8] : m[5];
- var precision = m[3] ? parseInt(m[3]) : (m[4] == "." ? -1 : 0);
-
- var rep = null;
- switch (type)
- {
- case "s":
- rep = FirebugReps.Text;
- break;
- case "f":
- case "i":
- case "d":
- rep = FirebugReps.Number;
- break;
- case "o":
- rep = null;
- break;
- }
-
- parts.push(format.substr(0, m[0][0] == "%" ? m.index : m.index+1));
- parts.push({rep: rep, precision: precision, type: ("%" + type)});
- }
-
- format = format.substr(m.index+m[0].length);
- }
-
- parts.push(format);
- return parts;
-}
-
-// ************************************************************************************************
-
-var appendObject = Firebug.ConsolePanel.prototype.appendObject;
-var appendFormatted = Firebug.ConsolePanel.prototype.appendFormatted;
-var appendOpenGroup = Firebug.ConsolePanel.prototype.appendOpenGroup;
-var appendCloseGroup = Firebug.ConsolePanel.prototype.appendCloseGroup;
-
-// ************************************************************************************************
-
-//Firebug.registerActivableModule(Firebug.Console);
-Firebug.registerModule(Firebug.Console);
-Firebug.registerPanel(Firebug.ConsolePanel);
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-
-// ************************************************************************************************
-// Constants
-
-//const Cc = Components.classes;
-//const Ci = Components.interfaces;
-
-var frameCounters = {};
-var traceRecursion = 0;
-
-Firebug.Console.injector =
-{
- install: function(context)
- {
- var win = context.window;
-
- var consoleHandler = new FirebugConsoleHandler(context, win);
-
- var properties =
- [
- "log",
- "debug",
- "info",
- "warn",
- "error",
- "assert",
- "dir",
- "dirxml",
- "group",
- "groupCollapsed",
- "groupEnd",
- "time",
- "timeEnd",
- "count",
- "trace",
- "profile",
- "profileEnd",
- "clear",
- "open",
- "close"
- ];
-
- var Handler = function(name)
- {
- var c = consoleHandler;
- var f = consoleHandler[name];
- return function(){return f.apply(c,arguments);};
- };
-
- var installer = function(c)
- {
- for (var i=0, l=properties.length; i<l; i++)
- {
- var name = properties[i];
- c[name] = new Handler(name);
- c.firebuglite = Firebug.version;
- }
- };
-
- var sandbox;
-
- if (win.console)
- {
- if (Env.Options.overrideConsole)
- sandbox = new win.Function("arguments.callee.install(window.console={})");
- else
- // if there's a console object and overrideConsole is false we should just quit
- return;
- }
- else
- {
- try
- {
- // try overriding the console object
- sandbox = new win.Function("arguments.callee.install(window.console={})");
- }
- catch(E)
- {
- // if something goes wrong create the firebug object instead
- sandbox = new win.Function("arguments.callee.install(window.firebug={})");
- }
- }
-
- sandbox.install = installer;
- sandbox();
- },
-
- isAttached: function(context, win)
- {
- if (win.wrappedJSObject)
- {
- var attached = (win.wrappedJSObject._getFirebugConsoleElement ? true : false);
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("Console.isAttached:"+attached+" to win.wrappedJSObject "+safeGetWindowLocation(win.wrappedJSObject));
-
- return attached;
- }
- else
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("Console.isAttached? to win "+win.location+" fnc:"+win._getFirebugConsoleElement);
- return (win._getFirebugConsoleElement ? true : false);
- }
- },
-
- attachIfNeeded: function(context, win)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("Console.attachIfNeeded has win "+(win? ((win.wrappedJSObject?"YES":"NO")+" wrappedJSObject"):"null") );
-
- if (this.isAttached(context, win))
- return true;
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("Console.attachIfNeeded found isAttached false ");
-
- this.attachConsoleInjector(context, win);
- this.addConsoleListener(context, win);
-
- Firebug.Console.clearReloadWarning(context);
-
- var attached = this.isAttached(context, win);
- if (attached)
- dispatch(Firebug.Console.fbListeners, "onConsoleInjected", [context, win]);
-
- return attached;
- },
-
- attachConsoleInjector: function(context, win)
- {
- var consoleInjection = this.getConsoleInjectionScript(); // Do it all here.
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("attachConsoleInjector evaluating in "+win.location, consoleInjection);
-
- Firebug.CommandLine.evaluateInWebPage(consoleInjection, context, win);
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("attachConsoleInjector evaluation completed for "+win.location);
- },
-
- getConsoleInjectionScript: function() {
- if (!this.consoleInjectionScript)
- {
- var script = "";
- script += "window.__defineGetter__('console', function() {\n";
- script += " return (window._firebug ? window._firebug : window.loadFirebugConsole()); })\n\n";
-
- script += "window.loadFirebugConsole = function() {\n";
- script += "window._firebug = new _FirebugConsole();";
-
- if (FBTrace.DBG_CONSOLE)
- script += " window.dump('loadFirebugConsole '+window.location+'\\n');\n";
-
- script += " return window._firebug };\n";
-
- var theFirebugConsoleScript = getResource("chrome://firebug/content/consoleInjected.js");
- script += theFirebugConsoleScript;
-
-
- this.consoleInjectionScript = script;
- }
- return this.consoleInjectionScript;
- },
-
- forceConsoleCompilationInPage: function(context, win)
- {
- if (!win)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("no win in forceConsoleCompilationInPage!");
- return;
- }
-
- var consoleForcer = "window.loadFirebugConsole();";
-
- if (context.stopped)
- Firebug.Console.injector.evaluateConsoleScript(context); // todo evaluate consoleForcer on stack
- else
- Firebug.CommandLine.evaluateInWebPage(consoleForcer, context, win);
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("forceConsoleCompilationInPage "+win.location, consoleForcer);
- },
-
- evaluateConsoleScript: function(context)
- {
- var scriptSource = this.getConsoleInjectionScript(); // TODO XXXjjb this should be getConsoleInjectionScript
- Firebug.Debugger.evaluate(scriptSource, context);
- },
-
- addConsoleListener: function(context, win)
- {
- if (!context.activeConsoleHandlers) // then we have not been this way before
- context.activeConsoleHandlers = [];
- else
- { // we've been this way before...
- for (var i=0; i<context.activeConsoleHandlers.length; i++)
- {
- if (context.activeConsoleHandlers[i].window == win)
- {
- context.activeConsoleHandlers[i].detach();
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("consoleInjector addConsoleListener removed handler("+context.activeConsoleHandlers[i].handler_name+") from _firebugConsole in : "+win.location+"\n");
- context.activeConsoleHandlers.splice(i,1);
- }
- }
- }
-
- // We need the element to attach our event listener.
- var element = Firebug.Console.getFirebugConsoleElement(context, win);
- if (element)
- element.setAttribute("FirebugVersion", Firebug.version); // Initialize Firebug version.
- else
- return false;
-
- var handler = new FirebugConsoleHandler(context, win);
- handler.attachTo(element);
-
- context.activeConsoleHandlers.push(handler);
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("consoleInjector addConsoleListener attached handler("+handler.handler_name+") to _firebugConsole in : "+win.location+"\n");
- return true;
- },
-
- detachConsole: function(context, win)
- {
- if (win && win.document)
- {
- var element = win.document.getElementById("_firebugConsole");
- if (element)
- element.parentNode.removeChild(element);
- }
- }
-};
-
-var total_handlers = 0;
-var FirebugConsoleHandler = function FirebugConsoleHandler(context, win)
-{
- this.window = win;
-
- this.attachTo = function(element)
- {
- this.element = element;
- // When raised on our injected element, callback to Firebug and append to console
- this.boundHandler = bind(this.handleEvent, this);
- this.element.addEventListener('firebugAppendConsole', this.boundHandler, true); // capturing
- };
-
- this.detach = function()
- {
- this.element.removeEventListener('firebugAppendConsole', this.boundHandler, true);
- };
-
- this.handler_name = ++total_handlers;
- this.handleEvent = function(event)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("FirebugConsoleHandler("+this.handler_name+") "+event.target.getAttribute("methodName")+", event", event);
- if (!Firebug.CommandLine.CommandHandler.handle(event, this, win))
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("FirebugConsoleHandler", this);
-
- var methodName = event.target.getAttribute("methodName");
- Firebug.Console.log($STRF("console.MethodNotSupported", [methodName]));
- }
- };
-
- this.firebuglite = Firebug.version;
-
- this.init = function()
- {
- var consoleElement = win.document.getElementById('_firebugConsole');
- consoleElement.setAttribute("FirebugVersion", Firebug.version);
- };
-
- this.log = function()
- {
- logFormatted(arguments, "log");
- };
-
- this.debug = function()
- {
- logFormatted(arguments, "debug", true);
- };
-
- this.info = function()
- {
- logFormatted(arguments, "info", true);
- };
-
- this.warn = function()
- {
- logFormatted(arguments, "warn", true);
- };
-
- this.error = function()
- {
- //TODO: xxxpedro console error
- //if (arguments.length == 1)
- //{
- // logAssert("error", arguments); // add more info based on stack trace
- //}
- //else
- //{
- //Firebug.Errors.increaseCount(context);
- logFormatted(arguments, "error", true); // user already added info
- //}
- };
-
- this.exception = function()
- {
- logAssert("error", arguments);
- };
-
- this.assert = function(x)
- {
- if (!x)
- {
- var rest = [];
- for (var i = 1; i < arguments.length; i++)
- rest.push(arguments[i]);
- logAssert("assert", rest);
- }
- };
-
- this.dir = function(o)
- {
- Firebug.Console.log(o, context, "dir", Firebug.DOMPanel.DirTable);
- };
-
- this.dirxml = function(o)
- {
- ///if (o instanceof Window)
- if (instanceOf(o, "Window"))
- o = o.document.documentElement;
- ///else if (o instanceof Document)
- else if (instanceOf(o, "Document"))
- o = o.documentElement;
-
- Firebug.Console.log(o, context, "dirxml", Firebug.HTMLPanel.SoloElement);
- };
-
- this.group = function()
- {
- //TODO: xxxpedro;
- //var sourceLink = getStackLink();
- var sourceLink = null;
- Firebug.Console.openGroup(arguments, null, "group", null, false, sourceLink);
- };
-
- this.groupEnd = function()
- {
- Firebug.Console.closeGroup(context);
- };
-
- this.groupCollapsed = function()
- {
- var sourceLink = getStackLink();
- // noThrottle true is probably ok, openGroups will likely be short strings.
- var row = Firebug.Console.openGroup(arguments, null, "group", null, true, sourceLink);
- removeClass(row, "opened");
- };
-
- this.profile = function(title)
- {
- logFormatted(["console.profile() not supported."], "warn", true);
-
- //Firebug.Profiler.startProfiling(context, title);
- };
-
- this.profileEnd = function()
- {
- logFormatted(["console.profile() not supported."], "warn", true);
-
- //Firebug.Profiler.stopProfiling(context);
- };
-
- this.count = function(key)
- {
- // TODO: xxxpedro console2: is there a better way to find a unique ID for the coun() call?
- var frameId = "0";
- //var frameId = FBL.getStackFrameId();
- if (frameId)
- {
- if (!frameCounters)
- frameCounters = {};
-
- if (key != undefined)
- frameId += key;
-
- var frameCounter = frameCounters[frameId];
- if (!frameCounter)
- {
- var logRow = logFormatted(["0"], null, true, true);
-
- frameCounter = {logRow: logRow, count: 1};
- frameCounters[frameId] = frameCounter;
- }
- else
- ++frameCounter.count;
-
- var label = key == undefined
- ? frameCounter.count
- : key + " " + frameCounter.count;
-
- frameCounter.logRow.firstChild.firstChild.nodeValue = label;
- }
- };
-
- this.trace = function()
- {
- var getFuncName = function getFuncName (f)
- {
- if (f.getName instanceof Function)
- {
- return f.getName();
- }
- if (f.name) // in FireFox, Function objects have a name property...
- {
- return f.name;
- }
-
- var name = f.toString().match(/function\s*([_$\w\d]*)/)[1];
- return name || "anonymous";
- };
-
- var wasVisited = function(fn)
- {
- for (var i=0, l=frames.length; i<l; i++)
- {
- if (frames[i].fn == fn)
- {
- return true;
- }
- }
-
- return false;
- };
-
- traceRecursion++;
-
- if (traceRecursion > 1)
- {
- traceRecursion--;
- return;
- }
-
- var frames = [];
-
- for (var fn = arguments.callee.caller.caller; fn; fn = fn.caller)
- {
- if (wasVisited(fn)) break;
-
- var args = [];
-
- for (var i = 0, l = fn.arguments.length; i < l; ++i)
- {
- args.push({value: fn.arguments[i]});
- }
-
- frames.push({fn: fn, name: getFuncName(fn), args: args});
- }
-
-
- // ****************************************************************************************
-
- try
- {
- (0)();
- }
- catch(e)
- {
- var result = e;
-
- var stack =
- result.stack || // Firefox / Google Chrome
- result.stacktrace || // Opera
- "";
-
- stack = stack.replace(/\n\r|\r\n/g, "\n"); // normalize line breaks
- var items = stack.split(/[\n\r]/);
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Google Chrome
- if (FBL.isSafari)
- {
- //var reChromeStackItem = /^\s+at\s+([^\(]+)\s\((.*)\)$/;
- //var reChromeStackItem = /^\s+at\s+(.*)((?:http|https|ftp|file):\/\/.*)$/;
- var reChromeStackItem = /^\s+at\s+(.*)((?:http|https|ftp|file):\/\/.*)$/;
-
- var reChromeStackItemName = /\s*\($/;
- var reChromeStackItemValue = /^(.+)\:(\d+\:\d+)\)?$/;
-
- var framePos = 0;
- for (var i=4, length=items.length; i<length; i++, framePos++)
- {
- var frame = frames[framePos];
- var item = items[i];
- var match = item.match(reChromeStackItem);
-
- //Firebug.Console.log("["+ framePos +"]--------------------------");
- //Firebug.Console.log(item);
- //Firebug.Console.log("................");
-
- if (match)
- {
- var name = match[1];
- if (name)
- {
- name = name.replace(reChromeStackItemName, "");
- frame.name = name;
- }
-
- //Firebug.Console.log("name: "+name);
-
- var value = match[2].match(reChromeStackItemValue);
- if (value)
- {
- frame.href = value[1];
- frame.lineNo = value[2];
-
- //Firebug.Console.log("url: "+value[1]);
- //Firebug.Console.log("line: "+value[2]);
- }
- //else
- // Firebug.Console.log(match[2]);
-
- }
- }
- }
- /**/
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- else if (FBL.isFirefox)
- {
- // Firefox
- var reFirefoxStackItem = /^(.*)@(.*)$/;
- var reFirefoxStackItemValue = /^(.+)\:(\d+)$/;
-
- var framePos = 0;
- for (var i=2, length=items.length; i<length; i++, framePos++)
- {
- var frame = frames[framePos] || {};
- var item = items[i];
- var match = item.match(reFirefoxStackItem);
-
- if (match)
- {
- var name = match[1];
-
- //Firebug.Console.logFormatted("name: "+name);
-
- var value = match[2].match(reFirefoxStackItemValue);
- if (value)
- {
- frame.href = value[1];
- frame.lineNo = value[2];
-
- //Firebug.Console.log("href: "+ value[1]);
- //Firebug.Console.log("line: " + value[2]);
- }
- //else
- // Firebug.Console.logFormatted([match[2]]);
- }
- }
- }
- /**/
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- /*
- else if (FBL.isOpera)
- {
- // Opera
- var reOperaStackItem = /^\s\s(?:\.\.\.\s\s)?Line\s(\d+)\sof\s(.+)$/;
- var reOperaStackItemValue = /^linked\sscript\s(.+)$/;
-
- for (var i=0, length=items.length; i<length; i+=2)
- {
- var item = items[i];
-
- var match = item.match(reOperaStackItem);
-
- if (match)
- {
- //Firebug.Console.log(match[1]);
-
- var value = match[2].match(reOperaStackItemValue);
-
- if (value)
- {
- //Firebug.Console.log(value[1]);
- }
- //else
- // Firebug.Console.log(match[2]);
-
- //Firebug.Console.log("--------------------------");
- }
- }
- }
- /**/
- }
-
- //console.log(stack);
- //console.dir(frames);
- Firebug.Console.log({frames: frames}, context, "stackTrace", FirebugReps.StackTrace);
-
- traceRecursion--;
- };
-
- this.trace_ok = function()
- {
- var getFuncName = function getFuncName (f)
- {
- if (f.getName instanceof Function)
- return f.getName();
- if (f.name) // in FireFox, Function objects have a name property...
- return f.name;
-
- var name = f.toString().match(/function\s*([_$\w\d]*)/)[1];
- return name || "anonymous";
- };
-
- var wasVisited = function(fn)
- {
- for (var i=0, l=frames.length; i<l; i++)
- {
- if (frames[i].fn == fn)
- return true;
- }
-
- return false;
- };
-
- var frames = [];
-
- for (var fn = arguments.callee.caller; fn; fn = fn.caller)
- {
- if (wasVisited(fn)) break;
-
- var args = [];
-
- for (var i = 0, l = fn.arguments.length; i < l; ++i)
- {
- args.push({value: fn.arguments[i]});
- }
-
- frames.push({fn: fn, name: getFuncName(fn), args: args});
- }
-
- Firebug.Console.log({frames: frames}, context, "stackTrace", FirebugReps.StackTrace);
- };
-
- this.clear = function()
- {
- Firebug.Console.clear(context);
- };
-
- this.time = function(name, reset)
- {
- if (!name)
- return;
-
- var time = new Date().getTime();
-
- if (!this.timeCounters)
- this.timeCounters = {};
-
- var key = "KEY"+name.toString();
-
- if (!reset && this.timeCounters[key])
- return;
-
- this.timeCounters[key] = time;
- };
-
- this.timeEnd = function(name)
- {
- var time = new Date().getTime();
-
- if (!this.timeCounters)
- return;
-
- var key = "KEY"+name.toString();
-
- var timeCounter = this.timeCounters[key];
- if (timeCounter)
- {
- var diff = time - timeCounter;
- var label = name + ": " + diff + "ms";
-
- this.info(label);
-
- delete this.timeCounters[key];
- }
- return diff;
- };
-
- // These functions are over-ridden by commandLine
- this.evaluated = function(result, context)
- {
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("consoleInjector.FirebugConsoleHandler evalutated default called", result);
-
- Firebug.Console.log(result, context);
- };
- this.evaluateError = function(result, context)
- {
- Firebug.Console.log(result, context, "errorMessage");
- };
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- function logFormatted(args, className, linkToSource, noThrottle)
- {
- var sourceLink = linkToSource ? getStackLink() : null;
- return Firebug.Console.logFormatted(args, context, className, noThrottle, sourceLink);
- }
-
- function logAssert(category, args)
- {
- Firebug.Errors.increaseCount(context);
-
- if (!args || !args.length || args.length == 0)
- var msg = [FBL.$STR("Assertion")];
- else
- var msg = args[0];
-
- if (Firebug.errorStackTrace)
- {
- var trace = Firebug.errorStackTrace;
- delete Firebug.errorStackTrace;
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("logAssert trace from errorStackTrace", trace);
- }
- else if (msg.stack)
- {
- var trace = parseToStackTrace(msg.stack);
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("logAssert trace from msg.stack", trace);
- }
- else
- {
- var trace = getJSDUserStack();
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("logAssert trace from getJSDUserStack", trace);
- }
-
- var errorObject = new FBL.ErrorMessage(msg, (msg.fileName?msg.fileName:win.location), (msg.lineNumber?msg.lineNumber:0), "", category, context, trace);
-
-
- if (trace && trace.frames && trace.frames[0])
- errorObject.correctWithStackTrace(trace);
-
- errorObject.resetSource();
-
- var objects = errorObject;
- if (args.length > 1)
- {
- objects = [errorObject];
- for (var i = 1; i < args.length; i++)
- objects.push(args[i]);
- }
-
- var row = Firebug.Console.log(objects, context, "errorMessage", null, true); // noThrottle
- row.scrollIntoView();
- }
-
- function getComponentsStackDump()
- {
- // Starting with our stack, walk back to the user-level code
- var frame = Components.stack;
- var userURL = win.location.href.toString();
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("consoleInjector.getComponentsStackDump initial stack for userURL "+userURL, frame);
-
- // Drop frames until we get into user code.
- while (frame && FBL.isSystemURL(frame.filename) )
- frame = frame.caller;
-
- // Drop two more frames, the injected console function and firebugAppendConsole()
- if (frame)
- frame = frame.caller;
- if (frame)
- frame = frame.caller;
-
- if (FBTrace.DBG_CONSOLE)
- FBTrace.sysout("consoleInjector.getComponentsStackDump final stack for userURL "+userURL, frame);
-
- return frame;
- }
-
- function getStackLink()
- {
- // TODO: xxxpedro console2
- return;
- //return FBL.getFrameSourceLink(getComponentsStackDump());
- }
-
- function getJSDUserStack()
- {
- var trace = FBL.getCurrentStackTrace(context);
-
- var frames = trace ? trace.frames : null;
- if (frames && (frames.length > 0) )
- {
- var oldest = frames.length - 1; // 6 - 1 = 5
- for (var i = 0; i < frames.length; i++)
- {
- if (frames[oldest - i].href.indexOf("chrome:") == 0) break;
- var fn = frames[oldest - i].fn + "";
- if (fn && (fn.indexOf("_firebugEvalEvent") != -1) ) break; // command line
- }
- FBTrace.sysout("consoleInjector getJSDUserStack: "+frames.length+" oldest: "+oldest+" i: "+i+" i - oldest + 2: "+(i - oldest + 2), trace);
- trace.frames = trace.frames.slice(2 - i); // take the oldest frames, leave 2 behind they are injection code
-
- return trace;
- }
- else
- return "Firebug failed to get stack trace with any frames";
- }
-};
-
-// ************************************************************************************************
-// Register console namespace
-
-FBL.registerConsole = function()
-{
- var win = Env.browser.window;
- Firebug.Console.injector.install(win);
-};
-
-registerConsole();
-
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-
-// ************************************************************************************************
-// Globals
-
-var commandPrefix = ">>>";
-var reOpenBracket = /[\[\(\{]/;
-var reCloseBracket = /[\]\)\}]/;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var commandHistory = [];
-var commandPointer = -1;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var isAutoCompleting = null;
-var autoCompletePrefix = null;
-var autoCompleteExpr = null;
-var autoCompleteBuffer = null;
-var autoCompletePosition = null;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var fbCommandLine = null;
-var fbLargeCommandLine = null;
-var fbLargeCommandButtons = null;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var _completion =
-{
- window:
- [
- "console"
- ],
-
- document:
- [
- "getElementById",
- "getElementsByTagName"
- ]
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var _stack = function(command)
-{
- Firebug.context.persistedState.commandHistory.push(command);
- Firebug.context.persistedState.commandPointer =
- Firebug.context.persistedState.commandHistory.length;
-};
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-// ************************************************************************************************
-// CommandLine
-
-Firebug.CommandLine = extend(Firebug.Module,
-{
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- element: null,
- isMultiLine: false,
- isActive: false,
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- initialize: function(doc)
- {
- this.clear = bind(this.clear, this);
- this.enter = bind(this.enter, this);
-
- this.onError = bind(this.onError, this);
- this.onKeyDown = bind(this.onKeyDown, this);
- this.onMultiLineKeyDown = bind(this.onMultiLineKeyDown, this);
-
- addEvent(Firebug.browser.window, "error", this.onError);
- addEvent(Firebug.chrome.window, "error", this.onError);
- },
-
- shutdown: function(doc)
- {
- this.deactivate();
-
- removeEvent(Firebug.browser.window, "error", this.onError);
- removeEvent(Firebug.chrome.window, "error", this.onError);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- activate: function(multiLine, hideToggleIcon, onRun)
- {
- defineCommandLineAPI();
-
- Firebug.context.persistedState.commandHistory =
- Firebug.context.persistedState.commandHistory || [];
-
- Firebug.context.persistedState.commandPointer =
- Firebug.context.persistedState.commandPointer || -1;
-
- if (this.isActive)
- {
- if (this.isMultiLine == multiLine) return;
-
- this.deactivate();
- }
-
- fbCommandLine = $("fbCommandLine");
- fbLargeCommandLine = $("fbLargeCommandLine");
- fbLargeCommandButtons = $("fbLargeCommandButtons");
-
- if (multiLine)
- {
- onRun = onRun || this.enter;
-
- this.isMultiLine = true;
-
- this.element = fbLargeCommandLine;
-
- addEvent(this.element, "keydown", this.onMultiLineKeyDown);
-
- addEvent($("fbSmallCommandLineIcon"), "click", Firebug.chrome.hideLargeCommandLine);
-
- this.runButton = new Button({
- element: $("fbCommand_btRun"),
- owner: Firebug.CommandLine,
- onClick: onRun
- });
-
- this.runButton.initialize();
-
- this.clearButton = new Button({
- element: $("fbCommand_btClear"),
- owner: Firebug.CommandLine,
- onClick: this.clear
- });
-
- this.clearButton.initialize();
- }
- else
- {
- this.isMultiLine = false;
- this.element = fbCommandLine;
-
- if (!fbCommandLine)
- return;
-
- addEvent(this.element, "keydown", this.onKeyDown);
- }
-
- //Firebug.Console.log("activate", this.element);
-
- if (isOpera)
- fixOperaTabKey(this.element);
-
- if(this.lastValue)
- this.element.value = this.lastValue;
-
- this.isActive = true;
- },
-
- deactivate: function()
- {
- if (!this.isActive) return;
-
- //Firebug.Console.log("deactivate", this.element);
-
- this.isActive = false;
-
- this.lastValue = this.element.value;
-
- if (this.isMultiLine)
- {
- removeEvent(this.element, "keydown", this.onMultiLineKeyDown);
-
- removeEvent($("fbSmallCommandLineIcon"), "click", Firebug.chrome.hideLargeCommandLine);
-
- this.runButton.destroy();
- this.clearButton.destroy();
- }
- else
- {
- removeEvent(this.element, "keydown", this.onKeyDown);
- }
-
- this.element = null;
- delete this.element;
-
- fbCommandLine = null;
- fbLargeCommandLine = null;
- fbLargeCommandButtons = null;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- focus: function()
- {
- this.element.focus();
- },
-
- blur: function()
- {
- this.element.blur();
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- clear: function()
- {
- this.element.value = "";
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- evaluate: function(expr)
- {
- // TODO: need to register the API in console.firebug.commandLineAPI
- var api = "Firebug.CommandLine.API";
-
- var result = Firebug.context.evaluate(expr, "window", api, Firebug.Console.error);
-
- return result;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- enter: function()
- {
- var command = this.element.value;
-
- if (!command) return;
-
- _stack(command);
-
- Firebug.Console.log(commandPrefix + " " + stripNewLines(command),
- Firebug.browser, "command", FirebugReps.Text);
-
- var result = this.evaluate(command);
-
- Firebug.Console.log(result);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- prevCommand: function()
- {
- if (Firebug.context.persistedState.commandPointer > 0 &&
- Firebug.context.persistedState.commandHistory.length > 0)
- {
- this.element.value = Firebug.context.persistedState.commandHistory
- [--Firebug.context.persistedState.commandPointer];
- }
- },
-
- nextCommand: function()
- {
- var element = this.element;
-
- var limit = Firebug.context.persistedState.commandHistory.length -1;
- var i = Firebug.context.persistedState.commandPointer;
-
- if (i < limit)
- element.value = Firebug.context.persistedState.commandHistory
- [++Firebug.context.persistedState.commandPointer];
-
- else if (i == limit)
- {
- ++Firebug.context.persistedState.commandPointer;
- element.value = "";
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- autocomplete: function(reverse)
- {
- var element = this.element;
-
- var command = element.value;
- var offset = getExpressionOffset(command);
-
- var valBegin = offset ? command.substr(0, offset) : "";
- var val = command.substr(offset);
-
- var buffer, obj, objName, commandBegin, result, prefix;
-
- // if it is the beginning of the completion
- if(!isAutoCompleting)
- {
-
- // group1 - command begin
- // group2 - base object
- // group3 - property prefix
- var reObj = /(.*[^_$\w\d\.])?((?:[_$\w][_$\w\d]*\.)*)([_$\w][_$\w\d]*)?$/;
- var r = reObj.exec(val);
-
- // parse command
- if (r[1] || r[2] || r[3])
- {
- commandBegin = r[1] || "";
- objName = r[2] || "";
- prefix = r[3] || "";
- }
- else if (val == "")
- {
- commandBegin = objName = prefix = "";
- } else
- return;
-
- isAutoCompleting = true;
-
- // find base object
- if(objName == "")
- obj = window;
-
- else
- {
- objName = objName.replace(/\.$/, "");
-
- var n = objName.split(".");
- var target = window, o;
-
- for (var i=0, ni; ni = n[i]; i++)
- {
- if (o = target[ni])
- target = o;
-
- else
- {
- target = null;
- break;
- }
- }
- obj = target;
- }
-
- // map base object
- if(obj)
- {
- autoCompletePrefix = prefix;
- autoCompleteExpr = valBegin + commandBegin + (objName ? objName + "." : "");
- autoCompletePosition = -1;
-
- buffer = autoCompleteBuffer = isIE ?
- _completion[objName || "window"] || [] : [];
-
- for(var p in obj)
- buffer.push(p);
- }
-
- // if it is the continuation of the last completion
- } else
- buffer = autoCompleteBuffer;
-
- if (buffer)
- {
- prefix = autoCompletePrefix;
-
- var diff = reverse ? -1 : 1;
-
- for(var i=autoCompletePosition+diff, l=buffer.length, bi; i>=0 && i<l; i+=diff)
- {
- bi = buffer[i];
-
- if (bi.indexOf(prefix) == 0)
- {
- autoCompletePosition = i;
- result = bi;
- break;
- }
- }
- }
-
- if (result)
- element.value = autoCompleteExpr + result;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- setMultiLine: function(multiLine)
- {
- if (multiLine == this.isMultiLine) return;
-
- this.activate(multiLine);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- onError: function(msg, href, lineNo)
- {
- href = href || "";
-
- var lastSlash = href.lastIndexOf("/");
- var fileName = lastSlash == -1 ? href : href.substr(lastSlash+1);
- var html = [
- '<span class="errorMessage">', msg, '</span>',
- '<div class="objectBox-sourceLink">', fileName, ' (line ', lineNo, ')</div>'
- ];
-
- // TODO: xxxpedro ajust to Console2
- //Firebug.Console.writeRow(html, "error");
- },
-
- onKeyDown: function(e)
- {
- e = e || event;
-
- var code = e.keyCode;
-
- /*tab, shift, control, alt*/
- if (code != 9 && code != 16 && code != 17 && code != 18)
- {
- isAutoCompleting = false;
- }
-
- if (code == 13 /* enter */)
- {
- this.enter();
- this.clear();
- }
- else if (code == 27 /* ESC */)
- {
- setTimeout(this.clear, 0);
- }
- else if (code == 38 /* up */)
- {
- this.prevCommand();
- }
- else if (code == 40 /* down */)
- {
- this.nextCommand();
- }
- else if (code == 9 /* tab */)
- {
- this.autocomplete(e.shiftKey);
- }
- else
- return;
-
- cancelEvent(e, true);
- return false;
- },
-
- onMultiLineKeyDown: function(e)
- {
- e = e || event;
-
- var code = e.keyCode;
-
- if (code == 13 /* enter */ && e.ctrlKey)
- {
- this.enter();
- }
- }
-});
-
-Firebug.registerModule(Firebug.CommandLine);
-
-
-// ************************************************************************************************
-//
-
-function getExpressionOffset(command)
-{
- // XXXjoe This is kind of a poor-man's JavaScript parser - trying
- // to find the start of the expression that the cursor is inside.
- // Not 100% fool proof, but hey...
-
- var bracketCount = 0;
-
- var start = command.length-1;
- for (; start >= 0; --start)
- {
- var c = command[start];
- if ((c == "," || c == ";" || c == " ") && !bracketCount)
- break;
- if (reOpenBracket.test(c))
- {
- if (bracketCount)
- --bracketCount;
- else
- break;
- }
- else if (reCloseBracket.test(c))
- ++bracketCount;
- }
-
- return start + 1;
-}
-
-// ************************************************************************************************
-// CommandLine API
-
-var CommandLineAPI =
-{
- $: function(id)
- {
- return Firebug.browser.document.getElementById(id);
- },
-
- $$: function(selector, context)
- {
- context = context || Firebug.browser.document;
- return Firebug.Selector ?
- Firebug.Selector(selector, context) :
- Firebug.Console.error("Firebug.Selector module not loaded.");
- },
-
- $0: null,
-
- $1: null,
-
- dir: function(o)
- {
- Firebug.Console.log(o, Firebug.context, "dir", Firebug.DOMPanel.DirTable);
- },
-
- dirxml: function(o)
- {
- ///if (o instanceof Window)
- if (instanceOf(o, "Window"))
- o = o.document.documentElement;
- ///else if (o instanceof Document)
- else if (instanceOf(o, "Document"))
- o = o.documentElement;
-
- Firebug.Console.log(o, Firebug.context, "dirxml", Firebug.HTMLPanel.SoloElement);
- }
-};
-
-// ************************************************************************************************
-
-var defineCommandLineAPI = function defineCommandLineAPI()
-{
- Firebug.CommandLine.API = {};
- for (var m in CommandLineAPI)
- if (!Env.browser.window[m])
- Firebug.CommandLine.API[m] = CommandLineAPI[m];
-
- var stack = FirebugChrome.htmlSelectionStack;
- if (stack)
- {
- Firebug.CommandLine.API.$0 = stack[0];
- Firebug.CommandLine.API.$1 = stack[1];
- }
-};
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Globals
-
-var ElementCache = Firebug.Lite.Cache.Element;
-var cacheID = Firebug.Lite.Cache.ID;
-
-var ignoreHTMLProps =
-{
- // ignores the attributes injected by Sizzle, otherwise it will
- // be visible on IE (when enumerating element.attributes)
- sizcache: 1,
- sizset: 1
-};
-
-if (Firebug.ignoreFirebugElements)
- // ignores also the cache property injected by firebug
- ignoreHTMLProps[cacheID] = 1;
-
-
-// ************************************************************************************************
-// HTML Module
-
-Firebug.HTML = extend(Firebug.Module,
-{
- appendTreeNode: function(nodeArray, html)
- {
- var reTrim = /^\s+|\s+$/g;
-
- if (!nodeArray.length) nodeArray = [nodeArray];
-
- for (var n=0, node; node=nodeArray[n]; n++)
- {
- if (node.nodeType == 1)
- {
- if (Firebug.ignoreFirebugElements && node.firebugIgnore) continue;
-
- var uid = ElementCache(node);
- var child = node.childNodes;
- var childLength = child.length;
-
- var nodeName = node.nodeName.toLowerCase();
-
- var nodeVisible = isVisible(node);
-
- var hasSingleTextChild = childLength == 1 && node.firstChild.nodeType == 3 &&
- nodeName != "script" && nodeName != "style";
-
- var nodeControl = !hasSingleTextChild && childLength > 0 ?
- ('<div class="nodeControl"></div>') : '';
-
- // FIXME xxxpedro remove this
- //var isIE = false;
-
- if(isIE && nodeControl)
- html.push(nodeControl);
-
- if (typeof uid != 'undefined')
- html.push(
- '<div class="objectBox-element" ',
- 'id="', uid,
- '">',
- !isIE && nodeControl ? nodeControl: "",
- '<span ',
- cacheID,
- '="', uid,
- '" class="nodeBox',
- nodeVisible ? "" : " nodeHidden",
- '">&lt;<span class="nodeTag">', nodeName, '</span>'
- );
- else
- html.push(
- '<div class="objectBox-element"><span class="nodeBox',
- nodeVisible ? "" : " nodeHidden",
- '">&lt;<span class="nodeTag">',
- nodeName, '</span>'
- );
-
- for (var i = 0; i < node.attributes.length; ++i)
- {
- var attr = node.attributes[i];
- if (!attr.specified ||
- // Issue 4432: Firebug Lite: HTML is mixed-up with functions
- // The problem here is that expando properties added to DOM elements in
- // IE < 9 will behave like DOM attributes and so they'll show up when
- // looking at element.attributes list.
- isIE && (browserVersion-0<9) && typeof attr.nodeValue != "string" ||
- Firebug.ignoreFirebugElements && ignoreHTMLProps.hasOwnProperty(attr.nodeName))
- continue;
-
- var name = attr.nodeName.toLowerCase();
- var value = name == "style" ? formatStyles(node.style.cssText) : attr.nodeValue;
-
- html.push('&nbsp;<span class="nodeName">', name,
- '</span>=&quot;<span class="nodeValue">', escapeHTML(value),
- '</span>&quot;');
- }
-
- /*
- // source code nodes
- if (nodeName == 'script' || nodeName == 'style')
- {
-
- if(document.all){
- var src = node.innerHTML+'\n';
-
- }else {
- var src = '\n'+node.innerHTML+'\n';
- }
-
- var match = src.match(/\n/g);
- var num = match ? match.length : 0;
- var s = [], sl = 0;
-
- for(var c=1; c<num; c++){
- s[sl++] = '<div line="'+c+'">' + c + '</div>';
- }
-
- html.push('&gt;</div><div class="nodeGroup"><div class="nodeChildren"><div class="lineNo">',
- s.join(''),
- '</div><pre class="nodeCode">',
- escapeHTML(src),
- '</pre>',
- '</div><div class="objectBox-element">&lt;/<span class="nodeTag">',
- nodeName,
- '</span>&gt;</div>',
- '</div>'
- );
-
-
- }/**/
-
- // Just a single text node child
- if (hasSingleTextChild)
- {
- var value = child[0].nodeValue.replace(reTrim, '');
- if(value)
- {
- html.push(
- '&gt;<span class="nodeText">',
- escapeHTML(value),
- '</span>&lt;/<span class="nodeTag">',
- nodeName,
- '</span>&gt;</span></div>'
- );
- }
- else
- html.push('/&gt;</span></div>'); // blank text, print as childless node
-
- }
- else if (childLength > 0)
- {
- html.push('&gt;</span></div>');
- }
- else
- html.push('/&gt;</span></div>');
-
- }
- else if (node.nodeType == 3)
- {
- if ( node.parentNode && ( node.parentNode.nodeName.toLowerCase() == "script" ||
- node.parentNode.nodeName.toLowerCase() == "style" ) )
- {
- var value = node.nodeValue.replace(reTrim, '');
-
- if(isIE){
- var src = value+'\n';
-
- }else {
- var src = '\n'+value+'\n';
- }
-
- var match = src.match(/\n/g);
- var num = match ? match.length : 0;
- var s = [], sl = 0;
-
- for(var c=1; c<num; c++){
- s[sl++] = '<div line="'+c+'">' + c + '</div>';
- }
-
- html.push('<div class="lineNo">',
- s.join(''),
- '</div><pre class="sourceCode">',
- escapeHTML(src),
- '</pre>'
- );
-
- }
- else
- {
- var value = node.nodeValue.replace(reTrim, '');
- if (value)
- html.push('<div class="nodeText">', escapeHTML(value),'</div>');
- }
- }
- }
- },
-
- appendTreeChildren: function(treeNode)
- {
- var doc = Firebug.chrome.document;
- var uid = treeNode.id;
- var parentNode = ElementCache.get(uid);
-
- if (parentNode.childNodes.length == 0) return;
-
- var treeNext = treeNode.nextSibling;
- var treeParent = treeNode.parentNode;
-
- // FIXME xxxpedro remove this
- //var isIE = false;
- var control = isIE ? treeNode.previousSibling : treeNode.firstChild;
- control.className = 'nodeControl nodeMaximized';
-
- var html = [];
- var children = doc.createElement("div");
- children.className = "nodeChildren";
- this.appendTreeNode(parentNode.childNodes, html);
- children.innerHTML = html.join("");
-
- treeParent.insertBefore(children, treeNext);
-
- var closeElement = doc.createElement("div");
- closeElement.className = "objectBox-element";
- closeElement.innerHTML = '&lt;/<span class="nodeTag">' +
- parentNode.nodeName.toLowerCase() + '&gt;</span>';
-
- treeParent.insertBefore(closeElement, treeNext);
-
- },
-
- removeTreeChildren: function(treeNode)
- {
- var children = treeNode.nextSibling;
- var closeTag = children.nextSibling;
-
- // FIXME xxxpedro remove this
- //var isIE = false;
- var control = isIE ? treeNode.previousSibling : treeNode.firstChild;
- control.className = 'nodeControl';
-
- children.parentNode.removeChild(children);
- closeTag.parentNode.removeChild(closeTag);
- },
-
- isTreeNodeVisible: function(id)
- {
- return $(id);
- },
-
- select: function(el)
- {
- var id = el && ElementCache(el);
- if (id)
- this.selectTreeNode(id);
- },
-
- selectTreeNode: function(id)
- {
- id = ""+id;
- var node, stack = [];
- while(id && !this.isTreeNodeVisible(id))
- {
- stack.push(id);
-
- var node = ElementCache.get(id).parentNode;
-
- if (node)
- id = ElementCache(node);
- else
- break;
- }
-
- stack.push(id);
-
- while(stack.length > 0)
- {
- id = stack.pop();
- node = $(id);
-
- if (stack.length > 0 && ElementCache.get(id).childNodes.length > 0)
- this.appendTreeChildren(node);
- }
-
- selectElement(node);
-
- // TODO: xxxpedro
- if (fbPanel1)
- fbPanel1.scrollTop = Math.round(node.offsetTop - fbPanel1.clientHeight/2);
- }
-
-});
-
-Firebug.registerModule(Firebug.HTML);
-
-// ************************************************************************************************
-// HTML Panel
-
-function HTMLPanel(){};
-
-HTMLPanel.prototype = extend(Firebug.Panel,
-{
- name: "HTML",
- title: "HTML",
-
- options: {
- hasSidePanel: true,
- //hasToolButtons: true,
- isPreRendered: !Firebug.flexChromeEnabled /* FIXME xxxpedro chromenew */,
- innerHTMLSync: true
- },
-
- create: function(){
- Firebug.Panel.create.apply(this, arguments);
-
- this.panelNode.style.padding = "4px 3px 1px 15px";
- this.panelNode.style.minWidth = "500px";
-
- if (Env.Options.enablePersistent || Firebug.chrome.type != "popup")
- this.createUI();
-
- if(this.sidePanelBar && !this.sidePanelBar.selectedPanel)
- {
- this.sidePanelBar.selectPanel("css");
- }
- },
-
- destroy: function()
- {
- selectedElement = null;
- fbPanel1 = null;
-
- selectedSidePanelTS = null;
- selectedSidePanelTimer = null;
-
- Firebug.Panel.destroy.apply(this, arguments);
- },
-
- createUI: function()
- {
- var rootNode = Firebug.browser.document.documentElement;
- var html = [];
- Firebug.HTML.appendTreeNode(rootNode, html);
-
- this.panelNode.innerHTML = html.join("");
- },
-
- initialize: function()
- {
- Firebug.Panel.initialize.apply(this, arguments);
- addEvent(this.panelNode, 'click', Firebug.HTML.onTreeClick);
-
- fbPanel1 = $("fbPanel1");
-
- if(!selectedElement)
- {
- Firebug.context.persistedState.selectedHTMLElementId =
- Firebug.context.persistedState.selectedHTMLElementId &&
- ElementCache.get(Firebug.context.persistedState.selectedHTMLElementId) ?
- Firebug.context.persistedState.selectedHTMLElementId :
- ElementCache(Firebug.browser.document.body);
-
- Firebug.HTML.selectTreeNode(Firebug.context.persistedState.selectedHTMLElementId);
- }
-
- // TODO: xxxpedro
- addEvent(fbPanel1, 'mousemove', Firebug.HTML.onListMouseMove);
- addEvent($("fbContent"), 'mouseout', Firebug.HTML.onListMouseMove);
- addEvent(Firebug.chrome.node, 'mouseout', Firebug.HTML.onListMouseMove);
- },
-
- shutdown: function()
- {
- // TODO: xxxpedro
- removeEvent(fbPanel1, 'mousemove', Firebug.HTML.onListMouseMove);
- removeEvent($("fbContent"), 'mouseout', Firebug.HTML.onListMouseMove);
- removeEvent(Firebug.chrome.node, 'mouseout', Firebug.HTML.onListMouseMove);
-
- removeEvent(this.panelNode, 'click', Firebug.HTML.onTreeClick);
-
- fbPanel1 = null;
-
- Firebug.Panel.shutdown.apply(this, arguments);
- },
-
- reattach: function()
- {
- // TODO: panel reattach
- if(Firebug.context.persistedState.selectedHTMLElementId)
- Firebug.HTML.selectTreeNode(Firebug.context.persistedState.selectedHTMLElementId);
- },
-
- updateSelection: function(object)
- {
- var id = ElementCache(object);
-
- if (id)
- {
- Firebug.HTML.selectTreeNode(id);
- }
- }
-});
-
-Firebug.registerPanel(HTMLPanel);
-
-// ************************************************************************************************
-
-var formatStyles = function(styles)
-{
- return isIE ?
- // IE return CSS property names in upper case, so we need to convert them
- styles.replace(/([^\s]+)\s*:/g, function(m,g){return g.toLowerCase()+":";}) :
- // other browsers are just fine
- styles;
-};
-
-// ************************************************************************************************
-
-var selectedElement = null;
-var fbPanel1 = null;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-var selectedSidePanelTS, selectedSidePanelTimer;
-
-var selectElement= function selectElement(e)
-{
- if (e != selectedElement)
- {
- if (selectedElement)
- selectedElement.className = "objectBox-element";
-
- e.className = e.className + " selectedElement";
-
- if (FBL.isFirefox)
- e.style.MozBorderRadius = "2px";
-
- else if (FBL.isSafari)
- e.style.WebkitBorderRadius = "2px";
-
- e.style.borderRadius = "2px";
-
- selectedElement = e;
-
- Firebug.context.persistedState.selectedHTMLElementId = e.id;
-
- var target = ElementCache.get(e.id);
- var sidePanelBar = Firebug.chrome.getPanel("HTML").sidePanelBar;
- var selectedSidePanel = sidePanelBar ? sidePanelBar.selectedPanel : null;
-
- var stack = FirebugChrome.htmlSelectionStack;
-
- stack.unshift(target);
-
- if (stack.length > 2)
- stack.pop();
-
- var lazySelect = function()
- {
- selectedSidePanelTS = new Date().getTime();
-
- if (selectedSidePanel)
- selectedSidePanel.select(target, true);
- };
-
- if (selectedSidePanelTimer)
- {
- clearTimeout(selectedSidePanelTimer);
- selectedSidePanelTimer = null;
- }
-
- if (new Date().getTime() - selectedSidePanelTS > 100)
- setTimeout(lazySelect, 0);
- else
- selectedSidePanelTimer = setTimeout(lazySelect, 150);
- }
-};
-
-
-// ************************************************************************************************
-// *** TODO: REFACTOR **************************************************************************
-// ************************************************************************************************
-Firebug.HTML.onTreeClick = function (e)
-{
- e = e || event;
- var targ;
-
- if (e.target) targ = e.target;
- else if (e.srcElement) targ = e.srcElement;
- if (targ.nodeType == 3) // defeat Safari bug
- targ = targ.parentNode;
-
-
- if (targ.className.indexOf('nodeControl') != -1 || targ.className == 'nodeTag')
- {
- // FIXME xxxpedro remove this
- //var isIE = false;
-
- if(targ.className == 'nodeTag')
- {
- var control = isIE ? (targ.parentNode.previousSibling || targ) :
- (targ.parentNode.previousSibling || targ);
-
- selectElement(targ.parentNode.parentNode);
-
- if (control.className.indexOf('nodeControl') == -1)
- return;
-
- } else
- control = targ;
-
- FBL.cancelEvent(e);
-
- var treeNode = isIE ? control.nextSibling : control.parentNode;
-
- //FBL.Firebug.Console.log(treeNode);
-
- if (control.className.indexOf(' nodeMaximized') != -1) {
- FBL.Firebug.HTML.removeTreeChildren(treeNode);
- } else {
- FBL.Firebug.HTML.appendTreeChildren(treeNode);
- }
- }
- else if (targ.className == 'nodeValue' || targ.className == 'nodeName')
- {
- /*
- var input = FBL.Firebug.chrome.document.getElementById('treeInput');
-
- input.style.display = "block";
- input.style.left = targ.offsetLeft + 'px';
- input.style.top = FBL.topHeight + targ.offsetTop - FBL.fbPanel1.scrollTop + 'px';
- input.style.width = targ.offsetWidth + 6 + 'px';
- input.value = targ.textContent || targ.innerText;
- input.focus();
- /**/
- }
-};
-
-function onListMouseOut(e)
-{
- e = e || event || window;
- var targ;
-
- if (e.target) targ = e.target;
- else if (e.srcElement) targ = e.srcElement;
- if (targ.nodeType == 3) // defeat Safari bug
- targ = targ.parentNode;
-
- if (hasClass(targ, "fbPanel")) {
- FBL.Firebug.Inspector.hideBoxModel();
- hoverElement = null;
- }
-};
-
-var hoverElement = null;
-var hoverElementTS = 0;
-
-Firebug.HTML.onListMouseMove = function onListMouseMove(e)
-{
- try
- {
- e = e || event || window;
- var targ;
-
- if (e.target) targ = e.target;
- else if (e.srcElement) targ = e.srcElement;
- if (targ.nodeType == 3) // defeat Safari bug
- targ = targ.parentNode;
-
- var found = false;
- while (targ && !found) {
- if (!/\snodeBox\s|\sobjectBox-selector\s/.test(" " + targ.className + " "))
- targ = targ.parentNode;
- else
- found = true;
- }
-
- if (!targ)
- {
- FBL.Firebug.Inspector.hideBoxModel();
- hoverElement = null;
- return;
- }
-
- /*
- if (typeof targ.attributes[cacheID] == 'undefined') return;
-
- var uid = targ.attributes[cacheID];
- if (!uid) return;
- /**/
-
- if (typeof targ.attributes[cacheID] == 'undefined') return;
-
- var uid = targ.attributes[cacheID];
- if (!uid) return;
-
- var el = ElementCache.get(uid.value);
-
- var nodeName = el.nodeName.toLowerCase();
-
- if (FBL.isIE && " meta title script link ".indexOf(" "+nodeName+" ") != -1)
- return;
-
- if (!/\snodeBox\s|\sobjectBox-selector\s/.test(" " + targ.className + " ")) return;
-
- if (el.id == "FirebugUI" || " html head body br script link iframe ".indexOf(" "+nodeName+" ") != -1) {
- FBL.Firebug.Inspector.hideBoxModel();
- hoverElement = null;
- return;
- }
-
- if ((new Date().getTime() - hoverElementTS > 40) && hoverElement != el) {
- hoverElementTS = new Date().getTime();
- hoverElement = el;
- FBL.Firebug.Inspector.drawBoxModel(el);
- }
- }
- catch(E)
- {
- }
-};
-
-
-// ************************************************************************************************
-
-Firebug.Reps = {
-
- appendText: function(object, html)
- {
- html.push(escapeHTML(objectToString(object)));
- },
-
- appendNull: function(object, html)
- {
- html.push('<span class="objectBox-null">', escapeHTML(objectToString(object)), '</span>');
- },
-
- appendString: function(object, html)
- {
- html.push('<span class="objectBox-string">&quot;', escapeHTML(objectToString(object)),
- '&quot;</span>');
- },
-
- appendInteger: function(object, html)
- {
- html.push('<span class="objectBox-number">', escapeHTML(objectToString(object)), '</span>');
- },
-
- appendFloat: function(object, html)
- {
- html.push('<span class="objectBox-number">', escapeHTML(objectToString(object)), '</span>');
- },
-
- appendFunction: function(object, html)
- {
- var reName = /function ?(.*?)\(/;
- var m = reName.exec(objectToString(object));
- var name = m && m[1] ? m[1] : "function";
- html.push('<span class="objectBox-function">', escapeHTML(name), '()</span>');
- },
-
- appendObject: function(object, html)
- {
- /*
- var rep = Firebug.getRep(object);
- var outputs = [];
-
- rep.tag.tag.compile();
-
- var str = rep.tag.renderHTML({object: object}, outputs);
- html.push(str);
- /**/
-
- try
- {
- if (object == undefined)
- this.appendNull("undefined", html);
- else if (object == null)
- this.appendNull("null", html);
- else if (typeof object == "string")
- this.appendString(object, html);
- else if (typeof object == "number")
- this.appendInteger(object, html);
- else if (typeof object == "boolean")
- this.appendInteger(object, html);
- else if (typeof object == "function")
- this.appendFunction(object, html);
- else if (object.nodeType == 1)
- this.appendSelector(object, html);
- else if (typeof object == "object")
- {
- if (typeof object.length != "undefined")
- this.appendArray(object, html);
- else
- this.appendObjectFormatted(object, html);
- }
- else
- this.appendText(object, html);
- }
- catch (exc)
- {
- }
- /**/
- },
-
- appendObjectFormatted: function(object, html)
- {
- var text = objectToString(object);
- var reObject = /\[object (.*?)\]/;
-
- var m = reObject.exec(text);
- html.push('<span class="objectBox-object">', m ? m[1] : text, '</span>');
- },
-
- appendSelector: function(object, html)
- {
- var uid = ElementCache(object);
- var uidString = uid ? [cacheID, '="', uid, '"'].join("") : "";
-
- html.push('<span class="objectBox-selector"', uidString, '>');
-
- html.push('<span class="selectorTag">', escapeHTML(object.nodeName.toLowerCase()), '</span>');
- if (object.id)
- html.push('<span class="selectorId">#', escapeHTML(object.id), '</span>');
- if (object.className)
- html.push('<span class="selectorClass">.', escapeHTML(object.className), '</span>');
-
- html.push('</span>');
- },
-
- appendNode: function(node, html)
- {
- if (node.nodeType == 1)
- {
- var uid = ElementCache(node);
- var uidString = uid ? [cacheID, '="', uid, '"'].join("") : "";
-
- html.push(
- '<div class="objectBox-element"', uidString, '">',
- '<span ', cacheID, '="', uid, '" class="nodeBox">',
- '&lt;<span class="nodeTag">', node.nodeName.toLowerCase(), '</span>');
-
- for (var i = 0; i < node.attributes.length; ++i)
- {
- var attr = node.attributes[i];
- if (!attr.specified || attr.nodeName == cacheID)
- continue;
-
- var name = attr.nodeName.toLowerCase();
- var value = name == "style" ? node.style.cssText : attr.nodeValue;
-
- html.push('&nbsp;<span class="nodeName">', name,
- '</span>=&quot;<span class="nodeValue">', escapeHTML(value),
- '</span>&quot;');
- }
-
- if (node.firstChild)
- {
- html.push('&gt;</div><div class="nodeChildren">');
-
- for (var child = node.firstChild; child; child = child.nextSibling)
- this.appendNode(child, html);
-
- html.push('</div><div class="objectBox-element">&lt;/<span class="nodeTag">',
- node.nodeName.toLowerCase(), '&gt;</span></span></div>');
- }
- else
- html.push('/&gt;</span></div>');
- }
- else if (node.nodeType == 3)
- {
- var value = trim(node.nodeValue);
- if (value)
- html.push('<div class="nodeText">', escapeHTML(value),'</div>');
- }
- },
-
- appendArray: function(object, html)
- {
- html.push('<span class="objectBox-array"><b>[</b> ');
-
- for (var i = 0, l = object.length, obj; i < l; ++i)
- {
- this.appendObject(object[i], html);
-
- if (i < l-1)
- html.push(', ');
- }
-
- html.push(' <b>]</b></span>');
- }
-
-};
-
-
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-/*
-
-Hack:
-Firebug.chrome.currentPanel = Firebug.chrome.selectedPanel;
-Firebug.showInfoTips = true;
-Firebug.InfoTip.initializeBrowser(Firebug.chrome);
-
-/**/
-
-FBL.ns(function() { with (FBL) {
-
-// ************************************************************************************************
-// Constants
-
-var maxWidth = 100, maxHeight = 80;
-var infoTipMargin = 10;
-var infoTipWindowPadding = 25;
-
-// ************************************************************************************************
-
-Firebug.InfoTip = extend(Firebug.Module,
-{
- dispatchName: "infoTip",
- tags: domplate(
- {
- infoTipTag: DIV({"class": "infoTip"}),
-
- colorTag:
- DIV({style: "background: $rgbValue; width: 100px; height: 40px"}, "&nbsp;"),
-
- imgTag:
- DIV({"class": "infoTipImageBox infoTipLoading"},
- IMG({"class": "infoTipImage", src: "$urlValue", repeat: "$repeat",
- onload: "$onLoadImage"}),
- IMG({"class": "infoTipBgImage", collapsed: true, src: "blank.gif"}),
- DIV({"class": "infoTipCaption"})
- ),
-
- onLoadImage: function(event)
- {
- var img = event.currentTarget || event.srcElement;
- ///var bgImg = img.nextSibling;
- ///if (!bgImg)
- /// return; // Sometimes gets called after element is dead
-
- ///var caption = bgImg.nextSibling;
- var innerBox = img.parentNode;
-
- /// TODO: xxxpedro infoTip hack
- var caption = getElementByClass(innerBox, "infoTipCaption");
- var bgImg = getElementByClass(innerBox, "infoTipBgImage");
- if (!bgImg)
- return; // Sometimes gets called after element is dead
-
- // TODO: xxxpedro infoTip IE and timing issue
- // TODO: use offline document to avoid flickering
- if (isIE)
- removeClass(innerBox, "infoTipLoading");
-
- var updateInfoTip = function(){
-
- var w = img.naturalWidth || img.width || 10,
- h = img.naturalHeight || img.height || 10;
-
- var repeat = img.getAttribute("repeat");
-
- if (repeat == "repeat-x" || (w == 1 && h > 1))
- {
- collapse(img, true);
- collapse(bgImg, false);
- bgImg.style.background = "url(" + img.src + ") repeat-x";
- bgImg.style.width = maxWidth + "px";
- if (h > maxHeight)
- bgImg.style.height = maxHeight + "px";
- else
- bgImg.style.height = h + "px";
- }
- else if (repeat == "repeat-y" || (h == 1 && w > 1))
- {
- collapse(img, true);
- collapse(bgImg, false);
- bgImg.style.background = "url(" + img.src + ") repeat-y";
- bgImg.style.height = maxHeight + "px";
- if (w > maxWidth)
- bgImg.style.width = maxWidth + "px";
- else
- bgImg.style.width = w + "px";
- }
- else if (repeat == "repeat" || (w == 1 && h == 1))
- {
- collapse(img, true);
- collapse(bgImg, false);
- bgImg.style.background = "url(" + img.src + ") repeat";
- bgImg.style.width = maxWidth + "px";
- bgImg.style.height = maxHeight + "px";
- }
- else
- {
- if (w > maxWidth || h > maxHeight)
- {
- if (w > h)
- {
- img.style.width = maxWidth + "px";
- img.style.height = Math.round((h / w) * maxWidth) + "px";
- }
- else
- {
- img.style.width = Math.round((w / h) * maxHeight) + "px";
- img.style.height = maxHeight + "px";
- }
- }
- }
-
- //caption.innerHTML = $STRF("Dimensions", [w, h]);
- caption.innerHTML = $STRF(w + " x " + h);
-
-
- };
-
- if (isIE)
- setTimeout(updateInfoTip, 0);
- else
- {
- updateInfoTip();
- removeClass(innerBox, "infoTipLoading");
- }
-
- ///
- }
-
- /*
- /// onLoadImage original
- onLoadImage: function(event)
- {
- var img = event.currentTarget;
- var bgImg = img.nextSibling;
- if (!bgImg)
- return; // Sometimes gets called after element is dead
-
- var caption = bgImg.nextSibling;
- var innerBox = img.parentNode;
-
- var w = img.naturalWidth, h = img.naturalHeight;
- var repeat = img.getAttribute("repeat");
-
- if (repeat == "repeat-x" || (w == 1 && h > 1))
- {
- collapse(img, true);
- collapse(bgImg, false);
- bgImg.style.background = "url(" + img.src + ") repeat-x";
- bgImg.style.width = maxWidth + "px";
- if (h > maxHeight)
- bgImg.style.height = maxHeight + "px";
- else
- bgImg.style.height = h + "px";
- }
- else if (repeat == "repeat-y" || (h == 1 && w > 1))
- {
- collapse(img, true);
- collapse(bgImg, false);
- bgImg.style.background = "url(" + img.src + ") repeat-y";
- bgImg.style.height = maxHeight + "px";
- if (w > maxWidth)
- bgImg.style.width = maxWidth + "px";
- else
- bgImg.style.width = w + "px";
- }
- else if (repeat == "repeat" || (w == 1 && h == 1))
- {
- collapse(img, true);
- collapse(bgImg, false);
- bgImg.style.background = "url(" + img.src + ") repeat";
- bgImg.style.width = maxWidth + "px";
- bgImg.style.height = maxHeight + "px";
- }
- else
- {
- if (w > maxWidth || h > maxHeight)
- {
- if (w > h)
- {
- img.style.width = maxWidth + "px";
- img.style.height = Math.round((h / w) * maxWidth) + "px";
- }
- else
- {
- img.style.width = Math.round((w / h) * maxHeight) + "px";
- img.style.height = maxHeight + "px";
- }
- }
- }
-
- caption.innerHTML = $STRF("Dimensions", [w, h]);
-
- removeClass(innerBox, "infoTipLoading");
- }
- /**/
-
- }),
-
- initializeBrowser: function(browser)
- {
- browser.onInfoTipMouseOut = bind(this.onMouseOut, this, browser);
- browser.onInfoTipMouseMove = bind(this.onMouseMove, this, browser);
-
- ///var doc = browser.contentDocument;
- var doc = browser.document;
- if (!doc)
- return;
-
- ///doc.addEventListener("mouseover", browser.onInfoTipMouseMove, true);
- ///doc.addEventListener("mouseout", browser.onInfoTipMouseOut, true);
- ///doc.addEventListener("mousemove", browser.onInfoTipMouseMove, true);
- addEvent(doc, "mouseover", browser.onInfoTipMouseMove);
- addEvent(doc, "mouseout", browser.onInfoTipMouseOut);
- addEvent(doc, "mousemove", browser.onInfoTipMouseMove);
-
- return browser.infoTip = this.tags.infoTipTag.append({}, getBody(doc));
- },
-
- uninitializeBrowser: function(browser)
- {
- if (browser.infoTip)
- {
- ///var doc = browser.contentDocument;
- var doc = browser.document;
- ///doc.removeEventListener("mouseover", browser.onInfoTipMouseMove, true);
- ///doc.removeEventListener("mouseout", browser.onInfoTipMouseOut, true);
- ///doc.removeEventListener("mousemove", browser.onInfoTipMouseMove, true);
- removeEvent(doc, "mouseover", browser.onInfoTipMouseMove);
- removeEvent(doc, "mouseout", browser.onInfoTipMouseOut);
- removeEvent(doc, "mousemove", browser.onInfoTipMouseMove);
-
- browser.infoTip.parentNode.removeChild(browser.infoTip);
- delete browser.infoTip;
- delete browser.onInfoTipMouseMove;
- }
- },
-
- showInfoTip: function(infoTip, panel, target, x, y, rangeParent, rangeOffset)
- {
- if (!Firebug.showInfoTips)
- return;
-
- var scrollParent = getOverflowParent(target);
- var scrollX = x + (scrollParent ? scrollParent.scrollLeft : 0);
-
- if (panel.showInfoTip(infoTip, target, scrollX, y, rangeParent, rangeOffset))
- {
- var htmlElt = infoTip.ownerDocument.documentElement;
- var panelWidth = htmlElt.clientWidth;
- var panelHeight = htmlElt.clientHeight;
-
- if (x+infoTip.offsetWidth+infoTipMargin > panelWidth)
- {
- infoTip.style.left = Math.max(0, panelWidth-(infoTip.offsetWidth+infoTipMargin)) + "px";
- infoTip.style.right = "auto";
- }
- else
- {
- infoTip.style.left = (x+infoTipMargin) + "px";
- infoTip.style.right = "auto";
- }
-
- if (y+infoTip.offsetHeight+infoTipMargin > panelHeight)
- {
- infoTip.style.top = Math.max(0, panelHeight-(infoTip.offsetHeight+infoTipMargin)) + "px";
- infoTip.style.bottom = "auto";
- }
- else
- {
- infoTip.style.top = (y+infoTipMargin) + "px";
- infoTip.style.bottom = "auto";
- }
-
- if (FBTrace.DBG_INFOTIP)
- FBTrace.sysout("infotip.showInfoTip; top: " + infoTip.style.top +
- ", left: " + infoTip.style.left + ", bottom: " + infoTip.style.bottom +
- ", right:" + infoTip.style.right + ", offsetHeight: " + infoTip.offsetHeight +
- ", offsetWidth: " + infoTip.offsetWidth +
- ", x: " + x + ", panelWidth: " + panelWidth +
- ", y: " + y + ", panelHeight: " + panelHeight);
-
- infoTip.setAttribute("active", "true");
- }
- else
- this.hideInfoTip(infoTip);
- },
-
- hideInfoTip: function(infoTip)
- {
- if (infoTip)
- infoTip.removeAttribute("active");
- },
-
- onMouseOut: function(event, browser)
- {
- if (!event.relatedTarget)
- this.hideInfoTip(browser.infoTip);
- },
-
- onMouseMove: function(event, browser)
- {
- // Ignore if the mouse is moving over the existing info tip.
- if (getAncestorByClass(event.target, "infoTip"))
- return;
-
- if (browser.currentPanel)
- {
- var x = event.clientX, y = event.clientY, target = event.target || event.srcElement;
- this.showInfoTip(browser.infoTip, browser.currentPanel, target, x, y, event.rangeParent, event.rangeOffset);
- }
- else
- this.hideInfoTip(browser.infoTip);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- populateColorInfoTip: function(infoTip, color)
- {
- this.tags.colorTag.replace({rgbValue: color}, infoTip);
- return true;
- },
-
- populateImageInfoTip: function(infoTip, url, repeat)
- {
- if (!repeat)
- repeat = "no-repeat";
-
- this.tags.imgTag.replace({urlValue: url, repeat: repeat}, infoTip);
-
- return true;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Module
-
- disable: function()
- {
- // XXXjoe For each browser, call uninitializeBrowser
- },
-
- showPanel: function(browser, panel)
- {
- if (panel)
- {
- var infoTip = panel.panelBrowser.infoTip;
- if (!infoTip)
- infoTip = this.initializeBrowser(panel.panelBrowser);
- this.hideInfoTip(infoTip);
- }
-
- },
-
- showSidePanel: function(browser, panel)
- {
- this.showPanel(browser, panel);
- }
-});
-
-// ************************************************************************************************
-
-Firebug.registerModule(Firebug.InfoTip);
-
-// ************************************************************************************************
-
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-var CssParser = null;
-
-// ************************************************************************************************
-
-// Simple CSS stylesheet parser from:
-// https://github.com/sergeche/webkit-css
-
-/**
- * Simple CSS stylesheet parser that remembers rule's lines in file
- * @author Sergey Chikuyonok (serge.che@gmail.com)
- * @link http://chikuyonok.ru
- */
-CssParser = (function(){
- /**
- * Returns rule object
- * @param {Number} start Character index where CSS rule definition starts
- * @param {Number} body_start Character index where CSS rule's body starts
- * @param {Number} end Character index where CSS rule definition ends
- */
- function rule(start, body_start, end) {
- return {
- start: start || 0,
- body_start: body_start || 0,
- end: end || 0,
- line: -1,
- selector: null,
- parent: null,
-
- /** @type {rule[]} */
- children: [],
-
- addChild: function(start, body_start, end) {
- var r = rule(start, body_start, end);
- r.parent = this;
- this.children.push(r);
- return r;
- },
- /**
- * Returns last child element
- * @return {rule}
- */
- lastChild: function() {
- return this.children[this.children.length - 1];
- }
- };
- }
-
- /**
- * Replaces all occurances of substring defined by regexp
- * @param {String} str
- * @return {RegExp} re
- * @return {String}
- */
- function removeAll(str, re) {
- var m;
- while (m = str.match(re)) {
- str = str.substring(m[0].length);
- }
-
- return str;
- }
-
- /**
- * Trims whitespace from the beginning and the end of string
- * @param {String} str
- * @return {String}
- */
- function trim(str) {
- return str.replace(/^\s+|\s+$/g, '');
- }
-
- /**
- * Normalizes CSS rules selector
- * @param {String} selector
- */
- function normalizeSelector(selector) {
- // remove newlines
- selector = selector.replace(/[\n\r]/g, ' ');
-
- selector = trim(selector);
-
- // remove spaces after commas
- selector = selector.replace(/\s*,\s*/g, ',');
-
- return selector;
- }
-
- /**
- * Preprocesses parsed rules: adjusts char indexes, skipping whitespace and
- * newlines, saves rule selector, removes comments, etc.
- * @param {String} text CSS stylesheet
- * @param {rule} rule_node CSS rule node
- * @return {rule[]}
- */
- function preprocessRules(text, rule_node) {
- for (var i = 0, il = rule_node.children.length; i < il; i++) {
- var r = rule_node.children[i],
- rule_start = text.substring(r.start, r.body_start),
- cur_len = rule_start.length;
-
- // remove newlines for better regexp matching
- rule_start = rule_start.replace(/[\n\r]/g, ' ');
-
- // remove @import rules
-// rule_start = removeAll(rule_start, /^\s*@import\s*url\((['"])?.+?\1?\)\;?/g);
-
- // remove comments
- rule_start = removeAll(rule_start, /^\s*\/\*.*?\*\/[\s\t]*/);
-
- // remove whitespace
- rule_start = rule_start.replace(/^[\s\t]+/, '');
-
- r.start += (cur_len - rule_start.length);
- r.selector = normalizeSelector(rule_start);
- }
-
- return rule_node;
- }
-
- /**
- * Saves all lise starting indexes for faster search
- * @param {String} text CSS stylesheet
- * @return {Number[]}
- */
- function saveLineIndexes(text) {
- var result = [0],
- i = 0,
- il = text.length,
- ch, ch2;
-
- while (i < il) {
- ch = text.charAt(i);
-
- if (ch == '\n' || ch == '\r') {
- if (ch == '\r' && i < il - 1 && text.charAt(i + 1) == '\n') {
- // windows line ending: CRLF. Skip next character
- i++;
- }
-
- result.push(i + 1);
- }
-
- i++;
- }
-
- return result;
- }
-
- /**
- * Saves line number for parsed rules
- * @param {String} text CSS stylesheet
- * @param {rule} rule_node Rule node
- * @return {rule[]}
- */
- function saveLineNumbers(text, rule_node, line_indexes, startLine) {
- preprocessRules(text, rule_node);
-
- startLine = startLine || 0;
-
- // remember lines start indexes, preserving line ending characters
- if (!line_indexes)
- var line_indexes = saveLineIndexes(text);
-
- // now find each rule's line
- for (var i = 0, il = rule_node.children.length; i < il; i++) {
- var r = rule_node.children[i];
- r.line = line_indexes.length + startLine;
- for (var j = 0, jl = line_indexes.length - 1; j < jl; j++) {
- var line_ix = line_indexes[j];
- if (r.start >= line_indexes[j] && r.start < line_indexes[j + 1]) {
- r.line = j + 1 + startLine;
- break;
- }
- }
-
- saveLineNumbers(text, r, line_indexes);
- }
-
- return rule_node;
- }
-
- return {
- /**
- * Parses text as CSS stylesheet, remembring each rule position inside
- * text
- * @param {String} text CSS stylesheet to parse
- */
- read: function(text, startLine) {
- var rule_start = [],
- rule_body_start = [],
- rules = [],
- in_comment = 0,
- root = rule(),
- cur_parent = root,
- last_rule = null,
- stack = [],
- ch, ch2;
-
- stack.last = function() {
- return this[this.length - 1];
- };
-
- function hasStr(pos, substr) {
- return text.substr(pos, substr.length) == substr;
- }
-
- for (var i = 0, il = text.length; i < il; i++) {
- ch = text.charAt(i);
- ch2 = i < il - 1 ? text.charAt(i + 1) : '';
-
- if (!rule_start.length)
- rule_start.push(i);
-
- switch (ch) {
- case '@':
- if (!in_comment) {
- if (hasStr(i, '@import')) {
- var m = text.substr(i).match(/^@import\s*url\((['"])?.+?\1?\)\;?/);
- if (m) {
- cur_parent.addChild(i, i + 7, i + m[0].length);
- i += m[0].length;
- rule_start.pop();
- }
- break;
- }
- }
- case '/':
- // xxxpedro allowing comment inside comment
- if (!in_comment && ch2 == '*') { // comment start
- in_comment++;
- }
- break;
-
- case '*':
- if (ch2 == '/') { // comment end
- in_comment--;
- }
- break;
-
- case '{':
- if (!in_comment) {
- rule_body_start.push(i);
-
- cur_parent = cur_parent.addChild(rule_start.pop());
- stack.push(cur_parent);
- }
- break;
-
- case '}':
- // found the end of the rule
- if (!in_comment) {
- /** @type {rule} */
- var last_rule = stack.pop();
- rule_start.pop();
- last_rule.body_start = rule_body_start.pop();
- last_rule.end = i;
- cur_parent = last_rule.parent || root;
- }
- break;
- }
-
- }
-
- return saveLineNumbers(text, root, null, startLine);
- },
-
- normalizeSelector: normalizeSelector,
-
- /**
- * Find matched rule by selector.
- * @param {rule} rule_node Parsed rule node
- * @param {String} selector CSS selector
- * @param {String} source CSS stylesheet source code
- *
- * @return {rule[]|null} Array of matched rules, sorted by priority (most
- * recent on top)
- */
- findBySelector: function(rule_node, selector, source) {
- var selector = normalizeSelector(selector),
- result = [];
-
- if (rule_node) {
- for (var i = 0, il = rule_node.children.length; i < il; i++) {
- /** @type {rule} */
- var r = rule_node.children[i];
- if (r.selector == selector) {
- result.push(r);
- }
- }
- }
-
- if (result.length) {
- return result;
- } else {
- return null;
- }
- }
- };
-})();
-
-
-// ************************************************************************************************
-
-FBL.CssParser = CssParser;
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-
-// ************************************************************************************************
-// StyleSheet Parser
-
-var CssAnalyzer = {};
-
-// ************************************************************************************************
-// Locals
-
-var CSSRuleMap = {};
-var ElementCSSRulesMap = {};
-
-var internalStyleSheetIndex = -1;
-
-var reSelectorTag = /(^|\s)(?:\w+)/g;
-var reSelectorClass = /\.[\w\d_-]+/g;
-var reSelectorId = /#[\w\d_-]+/g;
-
-var globalCSSRuleIndex;
-
-var processAllStyleSheetsTimeout = null;
-
-var externalStyleSheetURLs = [];
-
-var ElementCache = Firebug.Lite.Cache.Element;
-var StyleSheetCache = Firebug.Lite.Cache.StyleSheet;
-
-//************************************************************************************************
-// CSS Analyzer templates
-
-CssAnalyzer.externalStyleSheetWarning = domplate(Firebug.Rep,
-{
- tag:
- DIV({"class": "warning focusRow", style: "font-weight:normal;", role: 'listitem'},
- SPAN("$object|STR"),
- A({"href": "$href", target:"_blank"}, "$link|STR")
- )
-});
-
-// ************************************************************************************************
-// CSS Analyzer methods
-
-CssAnalyzer.processAllStyleSheets = function(doc, styleSheetIterator)
-{
- try
- {
- processAllStyleSheets(doc, styleSheetIterator);
- }
- catch(e)
- {
- // TODO: FBTrace condition
- FBTrace.sysout("CssAnalyzer.processAllStyleSheets fails: ", e);
- }
-};
-
-/**
- *
- * @param element
- * @returns {String[]} Array of IDs of CSS Rules
- */
-CssAnalyzer.getElementCSSRules = function(element)
-{
- try
- {
- return getElementCSSRules(element);
- }
- catch(e)
- {
- // TODO: FBTrace condition
- FBTrace.sysout("CssAnalyzer.getElementCSSRules fails: ", e);
- }
-};
-
-CssAnalyzer.getRuleData = function(ruleId)
-{
- return CSSRuleMap[ruleId];
-};
-
-// TODO: do we need this?
-CssAnalyzer.getRuleLine = function()
-{
-};
-
-CssAnalyzer.hasExternalStyleSheet = function()
-{
- return externalStyleSheetURLs.length > 0;
-};
-
-CssAnalyzer.parseStyleSheet = function(href)
-{
- var sourceData = extractSourceData(href);
- var parsedObj = CssParser.read(sourceData.source, sourceData.startLine);
- var parsedRules = parsedObj.children;
-
- // See: Issue 4776: [Firebug lite] CSS Media Types
- //
- // Ignore all special selectors like @media and @page
- for(var i=0; i < parsedRules.length; )
- {
- if (parsedRules[i].selector.indexOf("@") != -1)
- {
- parsedRules.splice(i, 1);
- }
- else
- i++;
- }
-
- return parsedRules;
-};
-
-//************************************************************************************************
-// Internals
-//************************************************************************************************
-
-// ************************************************************************************************
-// StyleSheet processing
-
-var processAllStyleSheets = function(doc, styleSheetIterator)
-{
- styleSheetIterator = styleSheetIterator || processStyleSheet;
-
- globalCSSRuleIndex = -1;
-
- var styleSheets = doc.styleSheets;
- var importedStyleSheets = [];
-
- if (FBTrace.DBG_CSS)
- var start = new Date().getTime();
-
- for(var i=0, length=styleSheets.length; i<length; i++)
- {
- try
- {
- var styleSheet = styleSheets[i];
-
- if ("firebugIgnore" in styleSheet) continue;
-
- // we must read the length to make sure we have permission to read
- // the stylesheet's content. If an error occurs here, we cannot
- // read the stylesheet due to access restriction policy
- var rules = isIE ? styleSheet.rules : styleSheet.cssRules;
- rules.length;
- }
- catch(e)
- {
- externalStyleSheetURLs.push(styleSheet.href);
- styleSheet.restricted = true;
- var ssid = StyleSheetCache(styleSheet);
-
- /// TODO: xxxpedro external css
- //loadExternalStylesheet(doc, styleSheetIterator, styleSheet);
- }
-
- // process internal and external styleSheets
- styleSheetIterator(doc, styleSheet);
-
- var importedStyleSheet, importedRules;
-
- // process imported styleSheets in IE
- if (isIE)
- {
- var imports = styleSheet.imports;
-
- for(var j=0, importsLength=imports.length; j<importsLength; j++)
- {
- try
- {
- importedStyleSheet = imports[j];
- // we must read the length to make sure we have permission
- // to read the imported stylesheet's content.
- importedRules = importedStyleSheet.rules;
- importedRules.length;
- }
- catch(e)
- {
- externalStyleSheetURLs.push(styleSheet.href);
- importedStyleSheet.restricted = true;
- var ssid = StyleSheetCache(importedStyleSheet);
- }
-
- styleSheetIterator(doc, importedStyleSheet);
- }
- }
- // process imported styleSheets in other browsers
- else if (rules)
- {
- for(var j=0, rulesLength=rules.length; j<rulesLength; j++)
- {
- try
- {
- var rule = rules[j];
-
- importedStyleSheet = rule.styleSheet;
-
- if (importedStyleSheet)
- {
- // we must read the length to make sure we have permission
- // to read the imported stylesheet's content.
- importedRules = importedStyleSheet.cssRules;
- importedRules.length;
- }
- else
- break;
- }
- catch(e)
- {
- externalStyleSheetURLs.push(styleSheet.href);
- importedStyleSheet.restricted = true;
- var ssid = StyleSheetCache(importedStyleSheet);
- }
-
- styleSheetIterator(doc, importedStyleSheet);
- }
- }
- };
-
- if (FBTrace.DBG_CSS)
- {
- FBTrace.sysout("FBL.processAllStyleSheets", "all stylesheet rules processed in " + (new Date().getTime() - start) + "ms");
- }
-};
-
-// ************************************************************************************************
-
-var processStyleSheet = function(doc, styleSheet)
-{
- if (styleSheet.restricted)
- return;
-
- var rules = isIE ? styleSheet.rules : styleSheet.cssRules;
-
- var ssid = StyleSheetCache(styleSheet);
-
- var href = styleSheet.href;
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // CSS Parser
- var shouldParseCSS = typeof CssParser != "undefined" && !Firebug.disableResourceFetching;
- if (shouldParseCSS)
- {
- try
- {
- var parsedRules = CssAnalyzer.parseStyleSheet(href);
- }
- catch(e)
- {
- if (FBTrace.DBG_ERRORS) FBTrace.sysout("processStyleSheet FAILS", e.message || e);
- shouldParseCSS = false;
- }
- finally
- {
- var parsedRulesIndex = 0;
-
- var dontSupportGroupedRules = isIE && browserVersion < 9;
- var group = [];
- var groupItem;
- }
- }
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- for (var i=0, length=rules.length; i<length; i++)
- {
- // TODO: xxxpedro is there a better way to cache CSS Rules? The problem is that
- // we cannot add expando properties in the rule object in IE
- var rid = ssid + ":" + i;
- var rule = rules[i];
- var selector = rule.selectorText || "";
- var lineNo = null;
-
- // See: Issue 4776: [Firebug lite] CSS Media Types
- //
- // Ignore all special selectors like @media and @page
- if (!selector || selector.indexOf("@") != -1)
- continue;
-
- if (isIE)
- selector = selector.replace(reSelectorTag, function(s){return s.toLowerCase();});
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // CSS Parser
- if (shouldParseCSS)
- {
- var parsedRule = parsedRules[parsedRulesIndex];
- var parsedSelector = parsedRule.selector;
-
- if (dontSupportGroupedRules && parsedSelector.indexOf(",") != -1 && group.length == 0)
- group = parsedSelector.split(",");
-
- if (dontSupportGroupedRules && group.length > 0)
- {
- groupItem = group.shift();
-
- if (CssParser.normalizeSelector(selector) == groupItem)
- lineNo = parsedRule.line;
-
- if (group.length == 0)
- parsedRulesIndex++;
- }
- else if (CssParser.normalizeSelector(selector) == parsedRule.selector)
- {
- lineNo = parsedRule.line;
- parsedRulesIndex++;
- }
- }
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- CSSRuleMap[rid] =
- {
- styleSheetId: ssid,
- styleSheetIndex: i,
- order: ++globalCSSRuleIndex,
- specificity:
- // See: Issue 4777: [Firebug lite] Specificity of CSS Rules
- //
- // if it is a normal selector then calculate the specificity
- selector && selector.indexOf(",") == -1 ?
- getCSSRuleSpecificity(selector) :
- // See: Issue 3262: [Firebug lite] Specificity of grouped CSS Rules
- //
- // if it is a grouped selector, do not calculate the specificity
- // because the correct value will depend of the matched element.
- // The proper specificity value for grouped selectors are calculated
- // via getElementCSSRules(element)
- 0,
-
- rule: rule,
- lineNo: lineNo,
- selector: selector,
- cssText: rule.style ? rule.style.cssText : rule.cssText ? rule.cssText : ""
- };
-
- // TODO: what happens with elements added after this? Need to create a test case.
- // Maybe we should place this at getElementCSSRules() but it will make the function
- // a lot more expensive.
- //
- // Maybe add a "refresh" button?
- var elements = Firebug.Selector(selector, doc);
-
- for (var j=0, elementsLength=elements.length; j<elementsLength; j++)
- {
- var element = elements[j];
- var eid = ElementCache(element);
-
- if (!ElementCSSRulesMap[eid])
- ElementCSSRulesMap[eid] = [];
-
- ElementCSSRulesMap[eid].push(rid);
- }
-
- //console.log(selector, elements);
- }
-};
-
-// ************************************************************************************************
-// External StyleSheet Loader
-
-var loadExternalStylesheet = function(doc, styleSheetIterator, styleSheet)
-{
- var url = styleSheet.href;
- styleSheet.firebugIgnore = true;
-
- var source = Firebug.Lite.Proxy.load(url);
-
- // TODO: check for null and error responses
-
- // remove comments
- //var reMultiComment = /(\/\*([^\*]|\*(?!\/))*\*\/)/g;
- //source = source.replace(reMultiComment, "");
-
- // convert relative addresses to absolute ones
- source = source.replace(/url\(([^\)]+)\)/g, function(a,name){
-
- var hasDomain = /\w+:\/\/./.test(name);
-
- if (!hasDomain)
- {
- name = name.replace(/^(["'])(.+)\1$/, "$2");
- var first = name.charAt(0);
-
- // relative path, based on root
- if (first == "/")
- {
- // TODO: xxxpedro move to lib or Firebug.Lite.something
- // getURLRoot
- var m = /^([^:]+:\/{1,3}[^\/]+)/.exec(url);
-
- return m ?
- "url(" + m[1] + name + ")" :
- "url(" + name + ")";
- }
- // relative path, based on current location
- else
- {
- // TODO: xxxpedro move to lib or Firebug.Lite.something
- // getURLPath
- var path = url.replace(/[^\/]+\.[\w\d]+(\?.+|#.+)?$/g, "");
-
- path = path + name;
-
- var reBack = /[^\/]+\/\.\.\//;
- while(reBack.test(path))
- {
- path = path.replace(reBack, "");
- }
-
- //console.log("url(" + path + ")");
-
- return "url(" + path + ")";
- }
- }
-
- // if it is an absolute path, there is nothing to do
- return a;
- });
-
- var oldStyle = styleSheet.ownerNode;
-
- if (!oldStyle) return;
-
- if (!oldStyle.parentNode) return;
-
- var style = createGlobalElement("style");
- style.setAttribute("charset","utf-8");
- style.setAttribute("type", "text/css");
- style.innerHTML = source;
-
- //debugger;
- oldStyle.parentNode.insertBefore(style, oldStyle.nextSibling);
- oldStyle.parentNode.removeChild(oldStyle);
-
- doc.styleSheets[doc.styleSheets.length-1].externalURL = url;
-
- console.log(url, "call " + externalStyleSheetURLs.length, source);
-
- externalStyleSheetURLs.pop();
-
- if (processAllStyleSheetsTimeout)
- {
- clearTimeout(processAllStyleSheetsTimeout);
- }
-
- processAllStyleSheetsTimeout = setTimeout(function(){
- console.log("processing");
- FBL.processAllStyleSheets(doc, styleSheetIterator);
- processAllStyleSheetsTimeout = null;
- },200);
-
-};
-
-//************************************************************************************************
-// getElementCSSRules
-
-var getElementCSSRules = function(element)
-{
- var eid = ElementCache(element);
- var rules = ElementCSSRulesMap[eid];
-
- if (!rules) return;
-
- var arr = [element];
- var Selector = Firebug.Selector;
- var ruleId, rule;
-
- // for the case of grouped selectors, we need to calculate the highest
- // specificity within the selectors of the group that matches the element,
- // so we can sort the rules properly without over estimating the specificity
- // of grouped selectors
- for (var i = 0, length = rules.length; i < length; i++)
- {
- ruleId = rules[i];
- rule = CSSRuleMap[ruleId];
-
- // check if it is a grouped selector
- if (rule.selector.indexOf(",") != -1)
- {
- var selectors = rule.selector.split(",");
- var maxSpecificity = -1;
- var sel, spec, mostSpecificSelector;
-
- // loop over all selectors in the group
- for (var j, len = selectors.length; j < len; j++)
- {
- sel = selectors[j];
-
- // find if the selector matches the element
- if (Selector.matches(sel, arr).length == 1)
- {
- spec = getCSSRuleSpecificity(sel);
-
- // find the most specific selector that macthes the element
- if (spec > maxSpecificity)
- {
- maxSpecificity = spec;
- mostSpecificSelector = sel;
- }
- }
- }
-
- rule.specificity = maxSpecificity;
- }
- }
-
- rules.sort(sortElementRules);
- //rules.sort(solveRulesTied);
-
- return rules;
-};
-
-// ************************************************************************************************
-// Rule Specificity
-
-var sortElementRules = function(a, b)
-{
- var ruleA = CSSRuleMap[a];
- var ruleB = CSSRuleMap[b];
-
- var specificityA = ruleA.specificity;
- var specificityB = ruleB.specificity;
-
- if (specificityA > specificityB)
- return 1;
-
- else if (specificityA < specificityB)
- return -1;
-
- else
- return ruleA.order > ruleB.order ? 1 : -1;
-};
-
-var solveRulesTied = function(a, b)
-{
- var ruleA = CSSRuleMap[a];
- var ruleB = CSSRuleMap[b];
-
- if (ruleA.specificity == ruleB.specificity)
- return ruleA.order > ruleB.order ? 1 : -1;
-
- return null;
-};
-
-var getCSSRuleSpecificity = function(selector)
-{
- var match = selector.match(reSelectorTag);
- var tagCount = match ? match.length : 0;
-
- match = selector.match(reSelectorClass);
- var classCount = match ? match.length : 0;
-
- match = selector.match(reSelectorId);
- var idCount = match ? match.length : 0;
-
- return tagCount + 10*classCount + 100*idCount;
-};
-
-// ************************************************************************************************
-// StyleSheet data
-
-var extractSourceData = function(href)
-{
- var sourceData =
- {
- source: null,
- startLine: 0
- };
-
- if (href)
- {
- sourceData.source = Firebug.Lite.Proxy.load(href);
- }
- else
- {
- // TODO: create extractInternalSourceData(index)
- // TODO: pre process the position of the inline styles so this will happen only once
- // in case of having multiple inline styles
- var index = 0;
- var ssIndex = ++internalStyleSheetIndex;
- var reStyleTag = /\<\s*style.*\>/gi;
- var reEndStyleTag = /\<\/\s*style.*\>/gi;
-
- var source = Firebug.Lite.Proxy.load(Env.browser.location.href);
- source = source.replace(/\n\r|\r\n/g, "\n"); // normalize line breaks
-
- var startLine = 0;
-
- do
- {
- var matchStyleTag = source.match(reStyleTag);
- var i0 = source.indexOf(matchStyleTag[0]) + matchStyleTag[0].length;
-
- for (var i=0; i < i0; i++)
- {
- if (source.charAt(i) == "\n")
- startLine++;
- }
-
- source = source.substr(i0);
-
- index++;
- }
- while (index <= ssIndex);
-
- var matchEndStyleTag = source.match(reEndStyleTag);
- var i1 = source.indexOf(matchEndStyleTag[0]);
-
- var extractedSource = source.substr(0, i1);
-
- sourceData.source = extractedSource;
- sourceData.startLine = startLine;
- }
-
- return sourceData;
-};
-
-// ************************************************************************************************
-// Registration
-
-FBL.CssAnalyzer = CssAnalyzer;
-
-// ************************************************************************************************
-}});
-
-
-/* See license.txt for terms of usage */
-
-// move to FBL
-(function() {
-
-// ************************************************************************************************
-// XPath
-
-/**
- * Gets an XPath for an element which describes its hierarchical location.
- */
-this.getElementXPath = function(element)
-{
- try
- {
- if (element && element.id)
- return '//*[@id="' + element.id + '"]';
- else
- return this.getElementTreeXPath(element);
- }
- catch(E)
- {
- // xxxpedro: trying to detect the mysterious error:
- // Security error" code: "1000
- //debugger;
- }
-};
-
-this.getElementTreeXPath = function(element)
-{
- var paths = [];
-
- for (; element && element.nodeType == 1; element = element.parentNode)
- {
- var index = 0;
- var nodeName = element.nodeName;
-
- for (var sibling = element.previousSibling; sibling; sibling = sibling.previousSibling)
- {
- if (sibling.nodeType != 1) continue;
-
- if (sibling.nodeName == nodeName)
- ++index;
- }
-
- var tagName = element.nodeName.toLowerCase();
- var pathIndex = (index ? "[" + (index+1) + "]" : "");
- paths.splice(0, 0, tagName + pathIndex);
- }
-
- return paths.length ? "/" + paths.join("/") : null;
-};
-
-this.getElementsByXPath = function(doc, xpath)
-{
- var nodes = [];
-
- try {
- var result = doc.evaluate(xpath, doc, null, XPathResult.ANY_TYPE, null);
- for (var item = result.iterateNext(); item; item = result.iterateNext())
- nodes.push(item);
- }
- catch (exc)
- {
- // Invalid xpath expressions make their way here sometimes. If that happens,
- // we still want to return an empty set without an exception.
- }
-
- return nodes;
-};
-
-this.getRuleMatchingElements = function(rule, doc)
-{
- var css = rule.selectorText;
- var xpath = this.cssToXPath(css);
- return this.getElementsByXPath(doc, xpath);
-};
-
-
-}).call(FBL);
-
-
-
-
-FBL.ns(function() { with (FBL) {
-
-// ************************************************************************************************
-// ************************************************************************************************
-// ************************************************************************************************
-// ************************************************************************************************
-// ************************************************************************************************
-
-var toCamelCase = function toCamelCase(s)
-{
- return s.replace(reSelectorCase, toCamelCaseReplaceFn);
-};
-
-var toSelectorCase = function toSelectorCase(s)
-{
- return s.replace(reCamelCase, "-$1").toLowerCase();
-
-};
-
-var reCamelCase = /([A-Z])/g;
-var reSelectorCase = /\-(.)/g;
-var toCamelCaseReplaceFn = function toCamelCaseReplaceFn(m,g)
-{
- return g.toUpperCase();
-};
-
-// ************************************************************************************************
-
-var ElementCache = Firebug.Lite.Cache.Element;
-var StyleSheetCache = Firebug.Lite.Cache.StyleSheet;
-
-// ************************************************************************************************
-// ************************************************************************************************
-// ************************************************************************************************
-// ************************************************************************************************
-// ************************************************************************************************
-// ************************************************************************************************
-
-
-// ************************************************************************************************
-// Constants
-
-//const Cc = Components.classes;
-//const Ci = Components.interfaces;
-//const nsIDOMCSSStyleRule = Ci.nsIDOMCSSStyleRule;
-//const nsIInterfaceRequestor = Ci.nsIInterfaceRequestor;
-//const nsISelectionDisplay = Ci.nsISelectionDisplay;
-//const nsISelectionController = Ci.nsISelectionController;
-
-// See: http://mxr.mozilla.org/mozilla1.9.2/source/content/events/public/nsIEventStateManager.h#153
-//const STATE_ACTIVE = 0x01;
-//const STATE_FOCUS = 0x02;
-//const STATE_HOVER = 0x04;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-Firebug.SourceBoxPanel = Firebug.Panel;
-
-var reSelectorTag = /(^|\s)(?:\w+)/g;
-
-var domUtils = null;
-
-var textContent = isIE ? "innerText" : "textContent";
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var CSSDomplateBase = {
- isEditable: function(rule)
- {
- return !rule.isSystemSheet;
- },
- isSelectorEditable: function(rule)
- {
- return rule.isSelectorEditable && this.isEditable(rule);
- }
-};
-
-var CSSPropTag = domplate(CSSDomplateBase, {
- tag: DIV({"class": "cssProp focusRow", $disabledStyle: "$prop.disabled",
- $editGroup: "$rule|isEditable",
- $cssOverridden: "$prop.overridden", role : "option"},
- A({"class": "cssPropDisable"}, "&nbsp;&nbsp;"),
- SPAN({"class": "cssPropName", $editable: "$rule|isEditable"}, "$prop.name"),
- SPAN({"class": "cssColon"}, ":"),
- SPAN({"class": "cssPropValue", $editable: "$rule|isEditable"}, "$prop.value$prop.important"),
- SPAN({"class": "cssSemi"}, ";")
- )
-});
-
-var CSSRuleTag =
- TAG("$rule.tag", {rule: "$rule"});
-
-var CSSImportRuleTag = domplate({
- tag: DIV({"class": "cssRule insertInto focusRow importRule", _repObject: "$rule.rule"},
- "@import &quot;",
- A({"class": "objectLink", _repObject: "$rule.rule.styleSheet"}, "$rule.rule.href"),
- "&quot;;"
- )
-});
-
-var CSSStyleRuleTag = domplate(CSSDomplateBase, {
- tag: DIV({"class": "cssRule insertInto",
- $cssEditableRule: "$rule|isEditable",
- $editGroup: "$rule|isSelectorEditable",
- _repObject: "$rule.rule",
- "ruleId": "$rule.id", role : 'presentation'},
- DIV({"class": "cssHead focusRow", role : 'listitem'},
- SPAN({"class": "cssSelector", $editable: "$rule|isSelectorEditable"}, "$rule.selector"), " {"
- ),
- DIV({role : 'group'},
- DIV({"class": "cssPropertyListBox", role : 'listbox'},
- FOR("prop", "$rule.props",
- TAG(CSSPropTag.tag, {rule: "$rule", prop: "$prop"})
- )
- )
- ),
- DIV({"class": "editable insertBefore", role:"presentation"}, "}")
- )
-});
-
-var reSplitCSS = /(url\("?[^"\)]+?"?\))|(rgb\(.*?\))|(#[\dA-Fa-f]+)|(-?\d+(\.\d+)?(%|[a-z]{1,2})?)|([^,\s]+)|"(.*?)"/;
-
-var reURL = /url\("?([^"\)]+)?"?\)/;
-
-var reRepeat = /no-repeat|repeat-x|repeat-y|repeat/;
-
-//const sothinkInstalled = !!$("swfcatcherKey_sidebar");
-var sothinkInstalled = false;
-var styleGroups =
-{
- text: [
- "font-family",
- "font-size",
- "font-weight",
- "font-style",
- "color",
- "text-transform",
- "text-decoration",
- "letter-spacing",
- "word-spacing",
- "line-height",
- "text-align",
- "vertical-align",
- "direction",
- "column-count",
- "column-gap",
- "column-width"
- ],
-
- background: [
- "background-color",
- "background-image",
- "background-repeat",
- "background-position",
- "background-attachment",
- "opacity"
- ],
-
- box: [
- "width",
- "height",
- "top",
- "right",
- "bottom",
- "left",
- "margin-top",
- "margin-right",
- "margin-bottom",
- "margin-left",
- "padding-top",
- "padding-right",
- "padding-bottom",
- "padding-left",
- "border-top-width",
- "border-right-width",
- "border-bottom-width",
- "border-left-width",
- "border-top-color",
- "border-right-color",
- "border-bottom-color",
- "border-left-color",
- "border-top-style",
- "border-right-style",
- "border-bottom-style",
- "border-left-style",
- "-moz-border-top-radius",
- "-moz-border-right-radius",
- "-moz-border-bottom-radius",
- "-moz-border-left-radius",
- "outline-top-width",
- "outline-right-width",
- "outline-bottom-width",
- "outline-left-width",
- "outline-top-color",
- "outline-right-color",
- "outline-bottom-color",
- "outline-left-color",
- "outline-top-style",
- "outline-right-style",
- "outline-bottom-style",
- "outline-left-style"
- ],
-
- layout: [
- "position",
- "display",
- "visibility",
- "z-index",
- "overflow-x", // http://www.w3.org/TR/2002/WD-css3-box-20021024/#overflow
- "overflow-y",
- "overflow-clip",
- "white-space",
- "clip",
- "float",
- "clear",
- "-moz-box-sizing"
- ],
-
- other: [
- "cursor",
- "list-style-image",
- "list-style-position",
- "list-style-type",
- "marker-offset",
- "user-focus",
- "user-select",
- "user-modify",
- "user-input"
- ]
-};
-
-var styleGroupTitles =
-{
- text: "Text",
- background: "Background",
- box: "Box Model",
- layout: "Layout",
- other: "Other"
-};
-
-Firebug.CSSModule = extend(Firebug.Module,
-{
- freeEdit: function(styleSheet, value)
- {
- if (!styleSheet.editStyleSheet)
- {
- var ownerNode = getStyleSheetOwnerNode(styleSheet);
- styleSheet.disabled = true;
-
- var url = CCSV("@mozilla.org/network/standard-url;1", Components.interfaces.nsIURL);
- url.spec = styleSheet.href;
-
- var editStyleSheet = ownerNode.ownerDocument.createElementNS(
- "http://www.w3.org/1999/xhtml",
- "style");
- unwrapObject(editStyleSheet).firebugIgnore = true;
- editStyleSheet.setAttribute("type", "text/css");
- editStyleSheet.setAttributeNS(
- "http://www.w3.org/XML/1998/namespace",
- "base",
- url.directory);
- if (ownerNode.hasAttribute("media"))
- {
- editStyleSheet.setAttribute("media", ownerNode.getAttribute("media"));
- }
-
- // Insert the edited stylesheet directly after the old one to ensure the styles
- // cascade properly.
- ownerNode.parentNode.insertBefore(editStyleSheet, ownerNode.nextSibling);
-
- styleSheet.editStyleSheet = editStyleSheet;
- }
-
- styleSheet.editStyleSheet.innerHTML = value;
- if (FBTrace.DBG_CSS)
- FBTrace.sysout("css.saveEdit styleSheet.href:"+styleSheet.href+" got innerHTML:"+value+"\n");
-
- dispatch(this.fbListeners, "onCSSFreeEdit", [styleSheet, value]);
- },
-
- insertRule: function(styleSheet, cssText, ruleIndex)
- {
- if (FBTrace.DBG_CSS) FBTrace.sysout("Insert: " + ruleIndex + " " + cssText);
- var insertIndex = styleSheet.insertRule(cssText, ruleIndex);
-
- dispatch(this.fbListeners, "onCSSInsertRule", [styleSheet, cssText, ruleIndex]);
-
- return insertIndex;
- },
-
- deleteRule: function(styleSheet, ruleIndex)
- {
- if (FBTrace.DBG_CSS) FBTrace.sysout("deleteRule: " + ruleIndex + " " + styleSheet.cssRules.length, styleSheet.cssRules);
- dispatch(this.fbListeners, "onCSSDeleteRule", [styleSheet, ruleIndex]);
-
- styleSheet.deleteRule(ruleIndex);
- },
-
- setProperty: function(rule, propName, propValue, propPriority)
- {
- var style = rule.style || rule;
-
- // Record the original CSS text for the inline case so we can reconstruct at a later
- // point for diffing purposes
- var baseText = style.cssText;
-
- // good browsers
- if (style.getPropertyValue)
- {
- var prevValue = style.getPropertyValue(propName);
- var prevPriority = style.getPropertyPriority(propName);
-
- // XXXjoe Gecko bug workaround: Just changing priority doesn't have any effect
- // unless we remove the property first
- style.removeProperty(propName);
-
- style.setProperty(propName, propValue, propPriority);
- }
- // sad browsers
- else
- {
- // TODO: xxxpedro parse CSS rule to find property priority in IE?
- //console.log(propName, propValue);
- style[toCamelCase(propName)] = propValue;
- }
-
- if (propName) {
- dispatch(this.fbListeners, "onCSSSetProperty", [style, propName, propValue, propPriority, prevValue, prevPriority, rule, baseText]);
- }
- },
-
- removeProperty: function(rule, propName, parent)
- {
- var style = rule.style || rule;
-
- // Record the original CSS text for the inline case so we can reconstruct at a later
- // point for diffing purposes
- var baseText = style.cssText;
-
- if (style.getPropertyValue)
- {
-
- var prevValue = style.getPropertyValue(propName);
- var prevPriority = style.getPropertyPriority(propName);
-
- style.removeProperty(propName);
- }
- else
- {
- style[toCamelCase(propName)] = "";
- }
-
- if (propName) {
- dispatch(this.fbListeners, "onCSSRemoveProperty", [style, propName, prevValue, prevPriority, rule, baseText]);
- }
- }/*,
-
- cleanupSheets: function(doc, context)
- {
- // Due to the manner in which the layout engine handles multiple
- // references to the same sheet we need to kick it a little bit.
- // The injecting a simple stylesheet then removing it will force
- // Firefox to regenerate it's CSS hierarchy.
- //
- // WARN: This behavior was determined anecdotally.
- // See http://code.google.com/p/fbug/issues/detail?id=2440
- var style = doc.createElementNS("http://www.w3.org/1999/xhtml", "style");
- style.setAttribute("charset","utf-8");
- unwrapObject(style).firebugIgnore = true;
- style.setAttribute("type", "text/css");
- style.innerHTML = "#fbIgnoreStyleDO_NOT_USE {}";
- addStyleSheet(doc, style);
- style.parentNode.removeChild(style);
-
- // https://bugzilla.mozilla.org/show_bug.cgi?id=500365
- // This voodoo touches each style sheet to force some Firefox internal change to allow edits.
- var styleSheets = getAllStyleSheets(context);
- for(var i = 0; i < styleSheets.length; i++)
- {
- try
- {
- var rules = styleSheets[i].cssRules;
- if (rules.length > 0)
- var touch = rules[0];
- if (FBTrace.DBG_CSS && touch)
- FBTrace.sysout("css.show() touch "+typeof(touch)+" in "+(styleSheets[i].href?styleSheets[i].href:context.getName()));
- }
- catch(e)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("css.show: sheet.cssRules FAILS for "+(styleSheets[i]?styleSheets[i].href:"null sheet")+e, e);
- }
- }
- },
- cleanupSheetHandler: function(event, context)
- {
- var target = event.target || event.srcElement,
- tagName = (target.tagName || "").toLowerCase();
- if (tagName == "link")
- {
- this.cleanupSheets(target.ownerDocument, context);
- }
- },
- watchWindow: function(context, win)
- {
- var cleanupSheets = bind(this.cleanupSheets, this),
- cleanupSheetHandler = bind(this.cleanupSheetHandler, this, context),
- doc = win.document;
-
- //doc.addEventListener("DOMAttrModified", cleanupSheetHandler, false);
- //doc.addEventListener("DOMNodeInserted", cleanupSheetHandler, false);
- },
- loadedContext: function(context)
- {
- var self = this;
- iterateWindows(context.browser.contentWindow, function(subwin)
- {
- self.cleanupSheets(subwin.document, context);
- });
- }
- /**/
-});
-
-// ************************************************************************************************
-
-Firebug.CSSStyleSheetPanel = function() {};
-
-Firebug.CSSStyleSheetPanel.prototype = extend(Firebug.SourceBoxPanel,
-{
- template: domplate(
- {
- tag:
- DIV({"class": "cssSheet insertInto a11yCSSView"},
- FOR("rule", "$rules",
- CSSRuleTag
- ),
- DIV({"class": "cssSheet editable insertBefore"}, "")
- )
- }),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- refresh: function()
- {
- if (this.location)
- this.updateLocation(this.location);
- else if (this.selection)
- this.updateSelection(this.selection);
- },
-
- toggleEditing: function()
- {
- if (!this.stylesheetEditor)
- this.stylesheetEditor = new StyleSheetEditor(this.document);
-
- if (this.editing)
- Firebug.Editor.stopEditing();
- else
- {
- if (!this.location)
- return;
-
- var styleSheet = this.location.editStyleSheet
- ? this.location.editStyleSheet.sheet
- : this.location;
-
- var css = getStyleSheetCSS(styleSheet, this.context);
- //var topmost = getTopmostRuleLine(this.panelNode);
-
- this.stylesheetEditor.styleSheet = this.location;
- Firebug.Editor.startEditing(this.panelNode, css, this.stylesheetEditor);
- //this.stylesheetEditor.scrollToLine(topmost.line, topmost.offset);
- }
- },
-
- getStylesheetURL: function(rule)
- {
- if (this.location.href)
- return this.location.href;
- else
- return this.context.window.location.href;
- },
-
- getRuleByLine: function(styleSheet, line)
- {
- if (!domUtils)
- return null;
-
- var cssRules = styleSheet.cssRules;
- for (var i = 0; i < cssRules.length; ++i)
- {
- var rule = cssRules[i];
- if (rule instanceof CSSStyleRule)
- {
- var ruleLine = domUtils.getRuleLine(rule);
- if (ruleLine >= line)
- return rule;
- }
- }
- },
-
- highlightRule: function(rule)
- {
- var ruleElement = Firebug.getElementByRepObject(this.panelNode.firstChild, rule);
- if (ruleElement)
- {
- scrollIntoCenterView(ruleElement, this.panelNode);
- setClassTimed(ruleElement, "jumpHighlight", this.context);
- }
- },
-
- getStyleSheetRules: function(context, styleSheet)
- {
- var isSystemSheet = isSystemStyleSheet(styleSheet);
-
- function appendRules(cssRules)
- {
- for (var i = 0; i < cssRules.length; ++i)
- {
- var rule = cssRules[i];
-
- // TODO: xxxpedro opera instanceof stylesheet remove the following comments when
- // the issue with opera and style sheet Classes has been solved.
-
- //if (rule instanceof CSSStyleRule)
- if (instanceOf(rule, "CSSStyleRule"))
- {
- var props = this.getRuleProperties(context, rule);
- //var line = domUtils.getRuleLine(rule);
- var line = null;
-
- var selector = rule.selectorText;
-
- if (isIE)
- {
- selector = selector.replace(reSelectorTag,
- function(s){return s.toLowerCase();});
- }
-
- var ruleId = rule.selectorText+"/"+line;
- rules.push({tag: CSSStyleRuleTag.tag, rule: rule, id: ruleId,
- selector: selector, props: props,
- isSystemSheet: isSystemSheet,
- isSelectorEditable: true});
- }
- //else if (rule instanceof CSSImportRule)
- else if (instanceOf(rule, "CSSImportRule"))
- rules.push({tag: CSSImportRuleTag.tag, rule: rule});
- //else if (rule instanceof CSSMediaRule)
- else if (instanceOf(rule, "CSSMediaRule"))
- appendRules.apply(this, [rule.cssRules]);
- else
- {
- if (FBTrace.DBG_ERRORS || FBTrace.DBG_CSS)
- FBTrace.sysout("css getStyleSheetRules failed to classify a rule ", rule);
- }
- }
- }
-
- var rules = [];
- appendRules.apply(this, [styleSheet.cssRules || styleSheet.rules]);
- return rules;
- },
-
- parseCSSProps: function(style, inheritMode)
- {
- var props = [];
-
- if (Firebug.expandShorthandProps)
- {
- var count = style.length-1,
- index = style.length;
- while (index--)
- {
- var propName = style.item(count - index);
- this.addProperty(propName, style.getPropertyValue(propName), !!style.getPropertyPriority(propName), false, inheritMode, props);
- }
- }
- else
- {
- var lines = style.cssText.match(/(?:[^;\(]*(?:\([^\)]*?\))?[^;\(]*)*;?/g);
- var propRE = /\s*([^:\s]*)\s*:\s*(.*?)\s*(! important)?;?$/;
- var line,i=0;
- // TODO: xxxpedro port to firebug: variable leaked into global namespace
- var m;
-
- while(line=lines[i++]){
- m = propRE.exec(line);
- if(!m)
- continue;
- //var name = m[1], value = m[2], important = !!m[3];
- if (m[2])
- this.addProperty(m[1], m[2], !!m[3], false, inheritMode, props);
- };
- }
-
- return props;
- },
-
- getRuleProperties: function(context, rule, inheritMode)
- {
- var props = this.parseCSSProps(rule.style, inheritMode);
-
- // TODO: xxxpedro port to firebug: variable leaked into global namespace
- //var line = domUtils.getRuleLine(rule);
- var line;
- var ruleId = rule.selectorText+"/"+line;
- this.addOldProperties(context, ruleId, inheritMode, props);
- sortProperties(props);
-
- return props;
- },
-
- addOldProperties: function(context, ruleId, inheritMode, props)
- {
- if (context.selectorMap && context.selectorMap.hasOwnProperty(ruleId) )
- {
- var moreProps = context.selectorMap[ruleId];
- for (var i = 0; i < moreProps.length; ++i)
- {
- var prop = moreProps[i];
- this.addProperty(prop.name, prop.value, prop.important, true, inheritMode, props);
- }
- }
- },
-
- addProperty: function(name, value, important, disabled, inheritMode, props)
- {
- name = name.toLowerCase();
-
- if (inheritMode && !inheritedStyleNames[name])
- return;
-
- name = this.translateName(name, value);
- if (name)
- {
- value = stripUnits(rgbToHex(value));
- important = important ? " !important" : "";
-
- var prop = {name: name, value: value, important: important, disabled: disabled};
- props.push(prop);
- }
- },
-
- translateName: function(name, value)
- {
- // Don't show these proprietary Mozilla properties
- if ((value == "-moz-initial"
- && (name == "-moz-background-clip" || name == "-moz-background-origin"
- || name == "-moz-background-inline-policy"))
- || (value == "physical"
- && (name == "margin-left-ltr-source" || name == "margin-left-rtl-source"
- || name == "margin-right-ltr-source" || name == "margin-right-rtl-source"))
- || (value == "physical"
- && (name == "padding-left-ltr-source" || name == "padding-left-rtl-source"
- || name == "padding-right-ltr-source" || name == "padding-right-rtl-source")))
- return null;
-
- // Translate these back to the form the user probably expects
- if (name == "margin-left-value")
- return "margin-left";
- else if (name == "margin-right-value")
- return "margin-right";
- else if (name == "margin-top-value")
- return "margin-top";
- else if (name == "margin-bottom-value")
- return "margin-bottom";
- else if (name == "padding-left-value")
- return "padding-left";
- else if (name == "padding-right-value")
- return "padding-right";
- else if (name == "padding-top-value")
- return "padding-top";
- else if (name == "padding-bottom-value")
- return "padding-bottom";
- // XXXjoe What about border!
- else
- return name;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- editElementStyle: function()
- {
- ///var rulesBox = this.panelNode.getElementsByClassName("cssElementRuleContainer")[0];
- var rulesBox = $$(".cssElementRuleContainer", this.panelNode)[0];
- var styleRuleBox = rulesBox && Firebug.getElementByRepObject(rulesBox, this.selection);
- if (!styleRuleBox)
- {
- var rule = {rule: this.selection, inherited: false, selector: "element.style", props: []};
- if (!rulesBox)
- {
- // The element did not have any displayed styles. We need to create the whole tree and remove
- // the no styles message
- styleRuleBox = this.template.cascadedTag.replace({
- rules: [rule], inherited: [], inheritLabel: "Inherited from" // $STR("InheritedFrom")
- }, this.panelNode);
-
- ///styleRuleBox = styleRuleBox.getElementsByClassName("cssElementRuleContainer")[0];
- styleRuleBox = $$(".cssElementRuleContainer", styleRuleBox)[0];
- }
- else
- styleRuleBox = this.template.ruleTag.insertBefore({rule: rule}, rulesBox);
-
- ///styleRuleBox = styleRuleBox.getElementsByClassName("insertInto")[0];
- styleRuleBox = $$(".insertInto", styleRuleBox)[0];
- }
-
- Firebug.Editor.insertRowForObject(styleRuleBox);
- },
-
- insertPropertyRow: function(row)
- {
- Firebug.Editor.insertRowForObject(row);
- },
-
- insertRule: function(row)
- {
- var location = getAncestorByClass(row, "cssRule");
- if (!location)
- {
- location = getChildByClass(this.panelNode, "cssSheet");
- Firebug.Editor.insertRowForObject(location);
- }
- else
- {
- Firebug.Editor.insertRow(location, "before");
- }
- },
-
- editPropertyRow: function(row)
- {
- var propValueBox = getChildByClass(row, "cssPropValue");
- Firebug.Editor.startEditing(propValueBox);
- },
-
- deletePropertyRow: function(row)
- {
- var rule = Firebug.getRepObject(row);
- var propName = getChildByClass(row, "cssPropName")[textContent];
- Firebug.CSSModule.removeProperty(rule, propName);
-
- // Remove the property from the selector map, if it was disabled
- var ruleId = Firebug.getRepNode(row).getAttribute("ruleId");
- if ( this.context.selectorMap && this.context.selectorMap.hasOwnProperty(ruleId) )
- {
- var map = this.context.selectorMap[ruleId];
- for (var i = 0; i < map.length; ++i)
- {
- if (map[i].name == propName)
- {
- map.splice(i, 1);
- break;
- }
- }
- }
- if (this.name == "stylesheet")
- dispatch([Firebug.A11yModel], 'onInlineEditorClose', [this, row.firstChild, true]);
- row.parentNode.removeChild(row);
-
- this.markChange(this.name == "stylesheet");
- },
-
- disablePropertyRow: function(row)
- {
- toggleClass(row, "disabledStyle");
-
- var rule = Firebug.getRepObject(row);
- var propName = getChildByClass(row, "cssPropName")[textContent];
-
- if (!this.context.selectorMap)
- this.context.selectorMap = {};
-
- // XXXjoe Generate unique key for elements too
- var ruleId = Firebug.getRepNode(row).getAttribute("ruleId");
- if (!(this.context.selectorMap.hasOwnProperty(ruleId)))
- this.context.selectorMap[ruleId] = [];
-
- var map = this.context.selectorMap[ruleId];
- var propValue = getChildByClass(row, "cssPropValue")[textContent];
- var parsedValue = parsePriority(propValue);
- if (hasClass(row, "disabledStyle"))
- {
- Firebug.CSSModule.removeProperty(rule, propName);
-
- map.push({"name": propName, "value": parsedValue.value,
- "important": parsedValue.priority});
- }
- else
- {
- Firebug.CSSModule.setProperty(rule, propName, parsedValue.value, parsedValue.priority);
-
- var index = findPropByName(map, propName);
- map.splice(index, 1);
- }
-
- this.markChange(this.name == "stylesheet");
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- onMouseDown: function(event)
- {
- //console.log("onMouseDown", event.target || event.srcElement, event);
-
- // xxxpedro adjusting coordinates because the panel isn't a window yet
- var offset = event.clientX - this.panelNode.parentNode.offsetLeft;
-
- // XXjoe Hack to only allow clicking on the checkbox
- if (!isLeftClick(event) || offset > 20)
- return;
-
- var target = event.target || event.srcElement;
- if (hasClass(target, "textEditor"))
- return;
-
- var row = getAncestorByClass(target, "cssProp");
- if (row && hasClass(row, "editGroup"))
- {
- this.disablePropertyRow(row);
- cancelEvent(event);
- }
- },
-
- onDoubleClick: function(event)
- {
- //console.log("onDoubleClick", event.target || event.srcElement, event);
-
- // xxxpedro adjusting coordinates because the panel isn't a window yet
- var offset = event.clientX - this.panelNode.parentNode.offsetLeft;
-
- if (!isLeftClick(event) || offset <= 20)
- return;
-
- var target = event.target || event.srcElement;
-
- //console.log("ok", target, hasClass(target, "textEditorInner"), !isLeftClick(event), offset <= 20);
-
- // if the inline editor was clicked, don't insert a new rule
- if (hasClass(target, "textEditorInner"))
- return;
-
- var row = getAncestorByClass(target, "cssRule");
- if (row && !getAncestorByClass(target, "cssPropName")
- && !getAncestorByClass(target, "cssPropValue"))
- {
- this.insertPropertyRow(row);
- cancelEvent(event);
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Panel
-
- name: "stylesheet",
- title: "CSS",
- parentPanel: null,
- searchable: true,
- dependents: ["css", "stylesheet", "dom", "domSide", "layout"],
-
- options:
- {
- hasToolButtons: true
- },
-
- create: function()
- {
- Firebug.Panel.create.apply(this, arguments);
-
- this.onMouseDown = bind(this.onMouseDown, this);
- this.onDoubleClick = bind(this.onDoubleClick, this);
-
- if (this.name == "stylesheet")
- {
- this.onChangeSelect = bind(this.onChangeSelect, this);
-
- var doc = Firebug.browser.document;
- var selectNode = this.selectNode = createElement("select");
-
- CssAnalyzer.processAllStyleSheets(doc, function(doc, styleSheet)
- {
- var key = StyleSheetCache.key(styleSheet);
- var fileName = getFileName(styleSheet.href) || getFileName(doc.location.href);
- var option = createElement("option", {value: key});
-
- option.appendChild(Firebug.chrome.document.createTextNode(fileName));
- selectNode.appendChild(option);
- });
-
- this.toolButtonsNode.appendChild(selectNode);
- }
- /**/
- },
-
- onChangeSelect: function(event)
- {
- event = event || window.event;
- var target = event.srcElement || event.currentTarget;
- var key = target.value;
- var styleSheet = StyleSheetCache.get(key);
-
- this.updateLocation(styleSheet);
- },
-
- initialize: function()
- {
- Firebug.Panel.initialize.apply(this, arguments);
-
- //if (!domUtils)
- //{
- // try {
- // domUtils = CCSV("@mozilla.org/inspector/dom-utils;1", "inIDOMUtils");
- // } catch (exc) {
- // if (FBTrace.DBG_ERRORS)
- // FBTrace.sysout("@mozilla.org/inspector/dom-utils;1 FAILED to load: "+exc, exc);
- // }
- //}
-
- //TODO: xxxpedro
- this.context = Firebug.chrome; // TODO: xxxpedro css2
- this.document = Firebug.chrome.document; // TODO: xxxpedro css2
-
- this.initializeNode();
-
- if (this.name == "stylesheet")
- {
- var styleSheets = Firebug.browser.document.styleSheets;
-
- if (styleSheets.length > 0)
- {
- addEvent(this.selectNode, "change", this.onChangeSelect);
-
- this.updateLocation(styleSheets[0]);
- }
- }
-
- //Firebug.SourceBoxPanel.initialize.apply(this, arguments);
- },
-
- shutdown: function()
- {
- // must destroy the editor when we leave the panel to avoid problems (Issue 2981)
- Firebug.Editor.stopEditing();
-
- if (this.name == "stylesheet")
- {
- removeEvent(this.selectNode, "change", this.onChangeSelect);
- }
-
- this.destroyNode();
-
- Firebug.Panel.shutdown.apply(this, arguments);
- },
-
- destroy: function(state)
- {
- //state.scrollTop = this.panelNode.scrollTop ? this.panelNode.scrollTop : this.lastScrollTop;
-
- //persistObjects(this, state);
-
- // xxxpedro we are stopping the editor in the shutdown method already
- //Firebug.Editor.stopEditing();
- Firebug.Panel.destroy.apply(this, arguments);
- },
-
- initializeNode: function(oldPanelNode)
- {
- addEvent(this.panelNode, "mousedown", this.onMouseDown);
- addEvent(this.panelNode, "dblclick", this.onDoubleClick);
- //Firebug.SourceBoxPanel.initializeNode.apply(this, arguments);
- //dispatch([Firebug.A11yModel], 'onInitializeNode', [this, 'css']);
- },
-
- destroyNode: function()
- {
- removeEvent(this.panelNode, "mousedown", this.onMouseDown);
- removeEvent(this.panelNode, "dblclick", this.onDoubleClick);
- //Firebug.SourceBoxPanel.destroyNode.apply(this, arguments);
- //dispatch([Firebug.A11yModel], 'onDestroyNode', [this, 'css']);
- },
-
- ishow: function(state)
- {
- Firebug.Inspector.stopInspecting(true);
-
- this.showToolbarButtons("fbCSSButtons", true);
-
- if (this.context.loaded && !this.location) // wait for loadedContext to restore the panel
- {
- restoreObjects(this, state);
-
- if (!this.location)
- this.location = this.getDefaultLocation();
-
- if (state && state.scrollTop)
- this.panelNode.scrollTop = state.scrollTop;
- }
- },
-
- ihide: function()
- {
- this.showToolbarButtons("fbCSSButtons", false);
-
- this.lastScrollTop = this.panelNode.scrollTop;
- },
-
- supportsObject: function(object)
- {
- if (object instanceof CSSStyleSheet)
- return 1;
- else if (object instanceof CSSStyleRule)
- return 2;
- else if (object instanceof CSSStyleDeclaration)
- return 2;
- else if (object instanceof SourceLink && object.type == "css" && reCSS.test(object.href))
- return 2;
- else
- return 0;
- },
-
- updateLocation: function(styleSheet)
- {
- if (!styleSheet)
- return;
- if (styleSheet.editStyleSheet)
- styleSheet = styleSheet.editStyleSheet.sheet;
-
- // if it is a restricted stylesheet, show the warning message and abort the update process
- if (styleSheet.restricted)
- {
- FirebugReps.Warning.tag.replace({object: "AccessRestricted"}, this.panelNode);
-
- // TODO: xxxpedro remove when there the external resource problem is fixed
- CssAnalyzer.externalStyleSheetWarning.tag.append({
- object: "The stylesheet could not be loaded due to access restrictions. ",
- link: "more...",
- href: "http://getfirebug.com/wiki/index.php/Firebug_Lite_FAQ#I_keep_seeing_.22Access_to_restricted_URI_denied.22"
- }, this.panelNode);
-
- return;
- }
-
- var rules = this.getStyleSheetRules(this.context, styleSheet);
-
- var result;
- if (rules.length)
- // FIXME xxxpedro chromenew this is making iPad's Safari to crash
- result = this.template.tag.replace({rules: rules}, this.panelNode);
- else
- result = FirebugReps.Warning.tag.replace({object: "EmptyStyleSheet"}, this.panelNode);
-
- // TODO: xxxpedro need to fix showToolbarButtons function
- //this.showToolbarButtons("fbCSSButtons", !isSystemStyleSheet(this.location));
-
- //dispatch([Firebug.A11yModel], 'onCSSRulesAdded', [this, this.panelNode]);
- },
-
- updateSelection: function(object)
- {
- this.selection = null;
-
- if (object instanceof CSSStyleDeclaration) {
- object = object.parentRule;
- }
-
- if (object instanceof CSSStyleRule)
- {
- this.navigate(object.parentStyleSheet);
- this.highlightRule(object);
- }
- else if (object instanceof CSSStyleSheet)
- {
- this.navigate(object);
- }
- else if (object instanceof SourceLink)
- {
- try
- {
- var sourceLink = object;
-
- var sourceFile = getSourceFileByHref(sourceLink.href, this.context);
- if (sourceFile)
- {
- clearNode(this.panelNode); // replace rendered stylesheets
- this.showSourceFile(sourceFile);
-
- var lineNo = object.line;
- if (lineNo)
- this.scrollToLine(lineNo, this.jumpHighlightFactory(lineNo, this.context));
- }
- else // XXXjjb we should not be taking this path
- {
- var stylesheet = getStyleSheetByHref(sourceLink.href, this.context);
- if (stylesheet)
- this.navigate(stylesheet);
- else
- {
- if (FBTrace.DBG_CSS)
- FBTrace.sysout("css.updateSelection no sourceFile for "+sourceLink.href, sourceLink);
- }
- }
- }
- catch(exc) {
- if (FBTrace.DBG_CSS)
- FBTrace.sysout("css.upDateSelection FAILS "+exc, exc);
- }
- }
- },
-
- updateOption: function(name, value)
- {
- if (name == "expandShorthandProps")
- this.refresh();
- },
-
- getLocationList: function()
- {
- var styleSheets = getAllStyleSheets(this.context);
- return styleSheets;
- },
-
- getOptionsMenuItems: function()
- {
- return [
- {label: "Expand Shorthand Properties", type: "checkbox", checked: Firebug.expandShorthandProps,
- command: bindFixed(Firebug.togglePref, Firebug, "expandShorthandProps") },
- "-",
- {label: "Refresh", command: bind(this.refresh, this) }
- ];
- },
-
- getContextMenuItems: function(style, target)
- {
- var items = [];
-
- if (this.infoTipType == "color")
- {
- items.push(
- {label: "CopyColor",
- command: bindFixed(copyToClipboard, FBL, this.infoTipObject) }
- );
- }
- else if (this.infoTipType == "image")
- {
- items.push(
- {label: "CopyImageLocation",
- command: bindFixed(copyToClipboard, FBL, this.infoTipObject) },
- {label: "OpenImageInNewTab",
- command: bindFixed(openNewTab, FBL, this.infoTipObject) }
- );
- }
-
- ///if (this.selection instanceof Element)
- if (isElement(this.selection))
- {
- items.push(
- //"-",
- {label: "EditStyle",
- command: bindFixed(this.editElementStyle, this) }
- );
- }
- else if (!isSystemStyleSheet(this.selection))
- {
- items.push(
- //"-",
- {label: "NewRule",
- command: bindFixed(this.insertRule, this, target) }
- );
- }
-
- var cssRule = getAncestorByClass(target, "cssRule");
- if (cssRule && hasClass(cssRule, "cssEditableRule"))
- {
- items.push(
- "-",
- {label: "NewProp",
- command: bindFixed(this.insertPropertyRow, this, target) }
- );
-
- var propRow = getAncestorByClass(target, "cssProp");
- if (propRow)
- {
- var propName = getChildByClass(propRow, "cssPropName")[textContent];
- var isDisabled = hasClass(propRow, "disabledStyle");
-
- items.push(
- {label: $STRF("EditProp", [propName]), nol10n: true,
- command: bindFixed(this.editPropertyRow, this, propRow) },
- {label: $STRF("DeleteProp", [propName]), nol10n: true,
- command: bindFixed(this.deletePropertyRow, this, propRow) },
- {label: $STRF("DisableProp", [propName]), nol10n: true,
- type: "checkbox", checked: isDisabled,
- command: bindFixed(this.disablePropertyRow, this, propRow) }
- );
- }
- }
-
- items.push(
- "-",
- {label: "Refresh", command: bind(this.refresh, this) }
- );
-
- return items;
- },
-
- browseObject: function(object)
- {
- if (this.infoTipType == "image")
- {
- openNewTab(this.infoTipObject);
- return true;
- }
- },
-
- showInfoTip: function(infoTip, target, x, y)
- {
- var propValue = getAncestorByClass(target, "cssPropValue");
- if (propValue)
- {
- var offset = getClientOffset(propValue);
- var offsetX = x-offset.x;
-
- var text = propValue[textContent];
- var charWidth = propValue.offsetWidth/text.length;
- var charOffset = Math.floor(offsetX/charWidth);
-
- var cssValue = parseCSSValue(text, charOffset);
- if (cssValue)
- {
- if (cssValue.value == this.infoTipValue)
- return true;
-
- this.infoTipValue = cssValue.value;
-
- if (cssValue.type == "rgb" || (!cssValue.type && isColorKeyword(cssValue.value)))
- {
- this.infoTipType = "color";
- this.infoTipObject = cssValue.value;
-
- return Firebug.InfoTip.populateColorInfoTip(infoTip, cssValue.value);
- }
- else if (cssValue.type == "url")
- {
- ///var propNameNode = target.parentNode.getElementsByClassName("cssPropName").item(0);
- var propNameNode = getElementByClass(target.parentNode, "cssPropName");
- if (propNameNode && isImageRule(propNameNode[textContent]))
- {
- var rule = Firebug.getRepObject(target);
- var baseURL = this.getStylesheetURL(rule);
- var relURL = parseURLValue(cssValue.value);
- var absURL = isDataURL(relURL) ? relURL:absoluteURL(relURL, baseURL);
- var repeat = parseRepeatValue(text);
-
- this.infoTipType = "image";
- this.infoTipObject = absURL;
-
- return Firebug.InfoTip.populateImageInfoTip(infoTip, absURL, repeat);
- }
- }
- }
- }
-
- delete this.infoTipType;
- delete this.infoTipValue;
- delete this.infoTipObject;
- },
-
- getEditor: function(target, value)
- {
- if (target == this.panelNode
- || hasClass(target, "cssSelector") || hasClass(target, "cssRule")
- || hasClass(target, "cssSheet"))
- {
- if (!this.ruleEditor)
- this.ruleEditor = new CSSRuleEditor(this.document);
-
- return this.ruleEditor;
- }
- else
- {
- if (!this.editor)
- this.editor = new CSSEditor(this.document);
-
- return this.editor;
- }
- },
-
- getDefaultLocation: function()
- {
- try
- {
- var styleSheets = this.context.window.document.styleSheets;
- if (styleSheets.length)
- {
- var sheet = styleSheets[0];
- return (Firebug.filterSystemURLs && isSystemURL(getURLForStyleSheet(sheet))) ? null : sheet;
- }
- }
- catch (exc)
- {
- if (FBTrace.DBG_LOCATIONS)
- FBTrace.sysout("css.getDefaultLocation FAILS "+exc, exc);
- }
- },
-
- getObjectDescription: function(styleSheet)
- {
- var url = getURLForStyleSheet(styleSheet);
- var instance = getInstanceForStyleSheet(styleSheet);
-
- var baseDescription = splitURLBase(url);
- if (instance) {
- baseDescription.name = baseDescription.name + " #" + (instance + 1);
- }
- return baseDescription;
- },
-
- search: function(text, reverse)
- {
- var curDoc = this.searchCurrentDoc(!Firebug.searchGlobal, text, reverse);
- if (!curDoc && Firebug.searchGlobal)
- {
- return this.searchOtherDocs(text, reverse);
- }
- return curDoc;
- },
-
- searchOtherDocs: function(text, reverse)
- {
- var scanRE = Firebug.Search.getTestingRegex(text);
- function scanDoc(styleSheet) {
- // we don't care about reverse here as we are just looking for existence,
- // if we do have a result we will handle the reverse logic on display
- for (var i = 0; i < styleSheet.cssRules.length; i++)
- {
- if (scanRE.test(styleSheet.cssRules[i].cssText))
- {
- return true;
- }
- }
- }
-
- if (this.navigateToNextDocument(scanDoc, reverse))
- {
- return this.searchCurrentDoc(true, text, reverse);
- }
- },
-
- searchCurrentDoc: function(wrapSearch, text, reverse)
- {
- if (!text)
- {
- delete this.currentSearch;
- return false;
- }
-
- var row;
- if (this.currentSearch && text == this.currentSearch.text)
- {
- row = this.currentSearch.findNext(wrapSearch, false, reverse, Firebug.Search.isCaseSensitive(text));
- }
- else
- {
- if (this.editing)
- {
- this.currentSearch = new TextSearch(this.stylesheetEditor.box);
- row = this.currentSearch.find(text, reverse, Firebug.Search.isCaseSensitive(text));
-
- if (row)
- {
- var sel = this.document.defaultView.getSelection();
- sel.removeAllRanges();
- sel.addRange(this.currentSearch.range);
- scrollSelectionIntoView(this);
- return true;
- }
- else
- return false;
- }
- else
- {
- function findRow(node) { return node.nodeType == 1 ? node : node.parentNode; }
- this.currentSearch = new TextSearch(this.panelNode, findRow);
- row = this.currentSearch.find(text, reverse, Firebug.Search.isCaseSensitive(text));
- }
- }
-
- if (row)
- {
- this.document.defaultView.getSelection().selectAllChildren(row);
- scrollIntoCenterView(row, this.panelNode);
- dispatch([Firebug.A11yModel], 'onCSSSearchMatchFound', [this, text, row]);
- return true;
- }
- else
- {
- dispatch([Firebug.A11yModel], 'onCSSSearchMatchFound', [this, text, null]);
- return false;
- }
- },
-
- getSearchOptionsMenuItems: function()
- {
- return [
- Firebug.Search.searchOptionMenu("search.Case_Sensitive", "searchCaseSensitive"),
- Firebug.Search.searchOptionMenu("search.Multiple_Files", "searchGlobal")
- ];
- }
-});
-/**/
-// ************************************************************************************************
-
-function CSSElementPanel() {}
-
-CSSElementPanel.prototype = extend(Firebug.CSSStyleSheetPanel.prototype,
-{
- template: domplate(
- {
- cascadedTag:
- DIV({"class": "a11yCSSView", role : 'presentation'},
- DIV({role : 'list', 'aria-label' : $STR('aria.labels.style rules') },
- FOR("rule", "$rules",
- TAG("$ruleTag", {rule: "$rule"})
- )
- ),
- DIV({role : "list", 'aria-label' :$STR('aria.labels.inherited style rules')},
- FOR("section", "$inherited",
- H1({"class": "cssInheritHeader groupHeader focusRow", role : 'listitem' },
- SPAN({"class": "cssInheritLabel"}, "$inheritLabel"),
- TAG(FirebugReps.Element.shortTag, {object: "$section.element"})
- ),
- DIV({role : 'group'},
- FOR("rule", "$section.rules",
- TAG("$ruleTag", {rule: "$rule"})
- )
- )
- )
- )
- ),
-
- ruleTag:
- isIE ?
- // IE needs the sourceLink first, otherwise it will be rendered outside the panel
- DIV({"class": "cssElementRuleContainer"},
- TAG(FirebugReps.SourceLink.tag, {object: "$rule.sourceLink"}),
- TAG(CSSStyleRuleTag.tag, {rule: "$rule"})
- )
- :
- // other browsers need the sourceLink last, otherwise it will cause an extra space
- // before the rule representation
- DIV({"class": "cssElementRuleContainer"},
- TAG(CSSStyleRuleTag.tag, {rule: "$rule"}),
- TAG(FirebugReps.SourceLink.tag, {object: "$rule.sourceLink"})
- )
- }),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- updateCascadeView: function(element)
- {
- //dispatch([Firebug.A11yModel], 'onBeforeCSSRulesAdded', [this]);
- var rules = [], sections = [], usedProps = {};
- this.getInheritedRules(element, sections, usedProps);
- this.getElementRules(element, rules, usedProps);
-
- if (rules.length || sections.length)
- {
- var inheritLabel = "Inherited from"; // $STR("InheritedFrom");
- var result = this.template.cascadedTag.replace({rules: rules, inherited: sections,
- inheritLabel: inheritLabel}, this.panelNode);
- //dispatch([Firebug.A11yModel], 'onCSSRulesAdded', [this, result]);
- }
- else
- {
- var result = FirebugReps.Warning.tag.replace({object: "EmptyElementCSS"}, this.panelNode);
- //dispatch([Firebug.A11yModel], 'onCSSRulesAdded', [this, result]);
- }
-
- // TODO: xxxpedro remove when there the external resource problem is fixed
- if (CssAnalyzer.hasExternalStyleSheet())
- CssAnalyzer.externalStyleSheetWarning.tag.append({
- object: "The results here may be inaccurate because some " +
- "stylesheets could not be loaded due to access restrictions. ",
- link: "more...",
- href: "http://getfirebug.com/wiki/index.php/Firebug_Lite_FAQ#I_keep_seeing_.22This_element_has_no_style_rules.22"
- }, this.panelNode);
- },
-
- getStylesheetURL: function(rule)
- {
- // if the parentStyleSheet.href is null, CSS std says its inline style.
- // TODO: xxxpedro IE doesn't have rule.parentStyleSheet so we must fall back to the doc.location
- if (rule && rule.parentStyleSheet && rule.parentStyleSheet.href)
- return rule.parentStyleSheet.href;
- else
- return this.selection.ownerDocument.location.href;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- getInheritedRules: function(element, sections, usedProps)
- {
- var parent = element.parentNode;
- if (parent && parent.nodeType == 1)
- {
- this.getInheritedRules(parent, sections, usedProps);
-
- var rules = [];
- this.getElementRules(parent, rules, usedProps, true);
-
- if (rules.length)
- sections.splice(0, 0, {element: parent, rules: rules});
- }
- },
-
- getElementRules: function(element, rules, usedProps, inheritMode)
- {
- var inspectedRules, displayedRules = {};
-
- inspectedRules = CssAnalyzer.getElementCSSRules(element);
-
- if (inspectedRules)
- {
- for (var i = 0, length=inspectedRules.length; i < length; ++i)
- {
- var ruleId = inspectedRules[i];
- var ruleData = CssAnalyzer.getRuleData(ruleId);
- var rule = ruleData.rule;
-
- var ssid = ruleData.styleSheetId;
- var parentStyleSheet = StyleSheetCache.get(ssid);
-
- var href = parentStyleSheet.externalURL ? parentStyleSheet.externalURL : parentStyleSheet.href; // Null means inline
-
- var instance = null;
- //var instance = getInstanceForStyleSheet(rule.parentStyleSheet, element.ownerDocument);
-
- var isSystemSheet = false;
- //var isSystemSheet = isSystemStyleSheet(rule.parentStyleSheet);
-
- if (!Firebug.showUserAgentCSS && isSystemSheet) // This removes user agent rules
- continue;
-
- if (!href)
- href = element.ownerDocument.location.href; // http://code.google.com/p/fbug/issues/detail?id=452
-
- var props = this.getRuleProperties(this.context, rule, inheritMode);
- if (inheritMode && !props.length)
- continue;
-
- //
- //var line = domUtils.getRuleLine(rule);
- // TODO: xxxpedro CSS line number
- var line = ruleData.lineNo;
-
- var ruleId = rule.selectorText+"/"+line;
- var sourceLink = new SourceLink(href, line, "css", rule, instance);
-
- this.markOverridenProps(props, usedProps, inheritMode);
-
- rules.splice(0, 0, {rule: rule, id: ruleId,
- selector: ruleData.selector, sourceLink: sourceLink,
- props: props, inherited: inheritMode,
- isSystemSheet: isSystemSheet});
- }
- }
-
- if (element.style)
- this.getStyleProperties(element, rules, usedProps, inheritMode);
-
- if (FBTrace.DBG_CSS)
- FBTrace.sysout("getElementRules "+rules.length+" rules for "+getElementXPath(element), rules);
- },
- /*
- getElementRules: function(element, rules, usedProps, inheritMode)
- {
- var inspectedRules, displayedRules = {};
- try
- {
- inspectedRules = domUtils ? domUtils.getCSSStyleRules(element) : null;
- } catch (exc) {}
-
- if (inspectedRules)
- {
- for (var i = 0; i < inspectedRules.Count(); ++i)
- {
- var rule = QI(inspectedRules.GetElementAt(i), nsIDOMCSSStyleRule);
-
- var href = rule.parentStyleSheet.href; // Null means inline
-
- var instance = getInstanceForStyleSheet(rule.parentStyleSheet, element.ownerDocument);
-
- var isSystemSheet = isSystemStyleSheet(rule.parentStyleSheet);
- if (!Firebug.showUserAgentCSS && isSystemSheet) // This removes user agent rules
- continue;
- if (!href)
- href = element.ownerDocument.location.href; // http://code.google.com/p/fbug/issues/detail?id=452
-
- var props = this.getRuleProperties(this.context, rule, inheritMode);
- if (inheritMode && !props.length)
- continue;
-
- var line = domUtils.getRuleLine(rule);
- var ruleId = rule.selectorText+"/"+line;
- var sourceLink = new SourceLink(href, line, "css", rule, instance);
-
- this.markOverridenProps(props, usedProps, inheritMode);
-
- rules.splice(0, 0, {rule: rule, id: ruleId,
- selector: rule.selectorText, sourceLink: sourceLink,
- props: props, inherited: inheritMode,
- isSystemSheet: isSystemSheet});
- }
- }
-
- if (element.style)
- this.getStyleProperties(element, rules, usedProps, inheritMode);
-
- if (FBTrace.DBG_CSS)
- FBTrace.sysout("getElementRules "+rules.length+" rules for "+getElementXPath(element), rules);
- },
- /**/
- markOverridenProps: function(props, usedProps, inheritMode)
- {
- for (var i = 0; i < props.length; ++i)
- {
- var prop = props[i];
- if ( usedProps.hasOwnProperty(prop.name) )
- {
- var deadProps = usedProps[prop.name]; // all previous occurrences of this property
- for (var j = 0; j < deadProps.length; ++j)
- {
- var deadProp = deadProps[j];
- if (!deadProp.disabled && !deadProp.wasInherited && deadProp.important && !prop.important)
- prop.overridden = true; // new occurrence overridden
- else if (!prop.disabled)
- deadProp.overridden = true; // previous occurrences overridden
- }
- }
- else
- usedProps[prop.name] = [];
-
- prop.wasInherited = inheritMode ? true : false;
- usedProps[prop.name].push(prop); // all occurrences of a property seen so far, by name
- }
- },
-
- getStyleProperties: function(element, rules, usedProps, inheritMode)
- {
- var props = this.parseCSSProps(element.style, inheritMode);
- this.addOldProperties(this.context, getElementXPath(element), inheritMode, props);
-
- sortProperties(props);
- this.markOverridenProps(props, usedProps, inheritMode);
-
- if (props.length)
- rules.splice(0, 0,
- {rule: element, id: getElementXPath(element),
- selector: "element.style", props: props, inherited: inheritMode});
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Panel
-
- name: "css",
- title: "Style",
- parentPanel: "HTML",
- order: 0,
-
- initialize: function()
- {
- this.context = Firebug.chrome; // TODO: xxxpedro css2
- this.document = Firebug.chrome.document; // TODO: xxxpedro css2
-
- Firebug.CSSStyleSheetPanel.prototype.initialize.apply(this, arguments);
-
- // TODO: xxxpedro css2
- var selection = ElementCache.get(Firebug.context.persistedState.selectedHTMLElementId);
- if (selection)
- this.select(selection, true);
-
- //this.updateCascadeView(document.getElementsByTagName("h1")[0]);
- //this.updateCascadeView(document.getElementById("build"));
-
- /*
- this.onStateChange = bindFixed(this.contentStateCheck, this);
- this.onHoverChange = bindFixed(this.contentStateCheck, this, STATE_HOVER);
- this.onActiveChange = bindFixed(this.contentStateCheck, this, STATE_ACTIVE);
- /**/
- },
-
- ishow: function(state)
- {
- },
-
- watchWindow: function(win)
- {
- if (domUtils)
- {
- // Normally these would not be required, but in order to update after the state is set
- // using the options menu we need to monitor these global events as well
- var doc = win.document;
- ///addEvent(doc, "mouseover", this.onHoverChange);
- ///addEvent(doc, "mousedown", this.onActiveChange);
- }
- },
- unwatchWindow: function(win)
- {
- var doc = win.document;
- ///removeEvent(doc, "mouseover", this.onHoverChange);
- ///removeEvent(doc, "mousedown", this.onActiveChange);
-
- if (isAncestor(this.stateChangeEl, doc))
- {
- this.removeStateChangeHandlers();
- }
- },
-
- supportsObject: function(object)
- {
- return object instanceof Element ? 1 : 0;
- },
-
- updateView: function(element)
- {
- this.updateCascadeView(element);
- if (domUtils)
- {
- this.contentState = safeGetContentState(element);
- this.addStateChangeHandlers(element);
- }
- },
-
- updateSelection: function(element)
- {
- if ( !instanceOf(element , "Element") ) // html supports SourceLink
- return;
-
- if (sothinkInstalled)
- {
- FirebugReps.Warning.tag.replace({object: "SothinkWarning"}, this.panelNode);
- return;
- }
-
- /*
- if (!domUtils)
- {
- FirebugReps.Warning.tag.replace({object: "DOMInspectorWarning"}, this.panelNode);
- return;
- }
- /**/
-
- if (!element)
- return;
-
- this.updateView(element);
- },
-
- updateOption: function(name, value)
- {
- if (name == "showUserAgentCSS" || name == "expandShorthandProps")
- this.refresh();
- },
-
- getOptionsMenuItems: function()
- {
- var ret = [
- {label: "Show User Agent CSS", type: "checkbox", checked: Firebug.showUserAgentCSS,
- command: bindFixed(Firebug.togglePref, Firebug, "showUserAgentCSS") },
- {label: "Expand Shorthand Properties", type: "checkbox", checked: Firebug.expandShorthandProps,
- command: bindFixed(Firebug.togglePref, Firebug, "expandShorthandProps") }
- ];
- if (domUtils && this.selection)
- {
- var state = safeGetContentState(this.selection);
-
- ret.push("-");
- ret.push({label: ":active", type: "checkbox", checked: state & STATE_ACTIVE,
- command: bindFixed(this.updateContentState, this, STATE_ACTIVE, state & STATE_ACTIVE)});
- ret.push({label: ":hover", type: "checkbox", checked: state & STATE_HOVER,
- command: bindFixed(this.updateContentState, this, STATE_HOVER, state & STATE_HOVER)});
- }
- return ret;
- },
-
- updateContentState: function(state, remove)
- {
- domUtils.setContentState(remove ? this.selection.ownerDocument.documentElement : this.selection, state);
- this.refresh();
- },
-
- addStateChangeHandlers: function(el)
- {
- this.removeStateChangeHandlers();
-
- /*
- addEvent(el, "focus", this.onStateChange);
- addEvent(el, "blur", this.onStateChange);
- addEvent(el, "mouseup", this.onStateChange);
- addEvent(el, "mousedown", this.onStateChange);
- addEvent(el, "mouseover", this.onStateChange);
- addEvent(el, "mouseout", this.onStateChange);
- /**/
-
- this.stateChangeEl = el;
- },
-
- removeStateChangeHandlers: function()
- {
- var sel = this.stateChangeEl;
- if (sel)
- {
- /*
- removeEvent(sel, "focus", this.onStateChange);
- removeEvent(sel, "blur", this.onStateChange);
- removeEvent(sel, "mouseup", this.onStateChange);
- removeEvent(sel, "mousedown", this.onStateChange);
- removeEvent(sel, "mouseover", this.onStateChange);
- removeEvent(sel, "mouseout", this.onStateChange);
- /**/
- }
- },
-
- contentStateCheck: function(state)
- {
- if (!state || this.contentState & state)
- {
- var timeoutRunner = bindFixed(function()
- {
- var newState = safeGetContentState(this.selection);
- if (newState != this.contentState)
- {
- this.context.invalidatePanels(this.name);
- }
- }, this);
-
- // Delay exec until after the event has processed and the state has been updated
- setTimeout(timeoutRunner, 0);
- }
- }
-});
-
-function safeGetContentState(selection)
-{
- try
- {
- return domUtils.getContentState(selection);
- }
- catch (e)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("css.safeGetContentState; EXCEPTION", e);
- }
-}
-
-// ************************************************************************************************
-
-function CSSComputedElementPanel() {}
-
-CSSComputedElementPanel.prototype = extend(CSSElementPanel.prototype,
-{
- template: domplate(
- {
- computedTag:
- DIV({"class": "a11yCSSView", role : "list", "aria-label" : $STR('aria.labels.computed styles')},
- FOR("group", "$groups",
- H1({"class": "cssInheritHeader groupHeader focusRow", role : "listitem"},
- SPAN({"class": "cssInheritLabel"}, "$group.title")
- ),
- TABLE({width: "100%", role : 'group'},
- TBODY({role : 'presentation'},
- FOR("prop", "$group.props",
- TR({"class": 'focusRow computedStyleRow', role : 'listitem'},
- TD({"class": "stylePropName", role : 'presentation'}, "$prop.name"),
- TD({"class": "stylePropValue", role : 'presentation'}, "$prop.value")
- )
- )
- )
- )
- )
- )
- }),
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- updateComputedView: function(element)
- {
- var win = isIE ?
- element.ownerDocument.parentWindow :
- element.ownerDocument.defaultView;
-
- var style = isIE ?
- element.currentStyle :
- win.getComputedStyle(element, "");
-
- var groups = [];
-
- for (var groupName in styleGroups)
- {
- // TODO: xxxpedro i18n $STR
- //var title = $STR("StyleGroup-" + groupName);
- var title = styleGroupTitles[groupName];
- var group = {title: title, props: []};
- groups.push(group);
-
- var props = styleGroups[groupName];
- for (var i = 0; i < props.length; ++i)
- {
- var propName = props[i];
- var propValue = style.getPropertyValue ?
- style.getPropertyValue(propName) :
- ""+style[toCamelCase(propName)];
-
- if (propValue === undefined || propValue === null)
- continue;
-
- propValue = stripUnits(rgbToHex(propValue));
- if (propValue)
- group.props.push({name: propName, value: propValue});
- }
- }
-
- var result = this.template.computedTag.replace({groups: groups}, this.panelNode);
- //dispatch([Firebug.A11yModel], 'onCSSRulesAdded', [this, result]);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Panel
-
- name: "computed",
- title: "Computed",
- parentPanel: "HTML",
- order: 1,
-
- updateView: function(element)
- {
- this.updateComputedView(element);
- },
-
- getOptionsMenuItems: function()
- {
- return [
- {label: "Refresh", command: bind(this.refresh, this) }
- ];
- }
-});
-
-// ************************************************************************************************
-// CSSEditor
-
-function CSSEditor(doc)
-{
- this.initializeInline(doc);
-}
-
-CSSEditor.prototype = domplate(Firebug.InlineEditor.prototype,
-{
- insertNewRow: function(target, insertWhere)
- {
- var rule = Firebug.getRepObject(target);
- var emptyProp =
- {
- // TODO: xxxpedro - uses charCode(255) to force the element being rendered,
- // allowing webkit to get the correct position of the property name "span",
- // when inserting a new CSS rule?
- name: "",
- value: "",
- important: ""
- };
-
- if (insertWhere == "before")
- return CSSPropTag.tag.insertBefore({prop: emptyProp, rule: rule}, target);
- else
- return CSSPropTag.tag.insertAfter({prop: emptyProp, rule: rule}, target);
- },
-
- saveEdit: function(target, value, previousValue)
- {
- // We need to check the value first in order to avoid a problem in IE8
- // See Issue 3038: Empty (null) styles when adding CSS styles in Firebug Lite
- if (!value) return;
-
- target.innerHTML = escapeForCss(value);
-
- var row = getAncestorByClass(target, "cssProp");
- if (hasClass(row, "disabledStyle"))
- toggleClass(row, "disabledStyle");
-
- var rule = Firebug.getRepObject(target);
-
- if (hasClass(target, "cssPropName"))
- {
- if (value && previousValue != value) // name of property has changed.
- {
- var propValue = getChildByClass(row, "cssPropValue")[textContent];
- var parsedValue = parsePriority(propValue);
-
- if (propValue && propValue != "undefined") {
- if (FBTrace.DBG_CSS)
- FBTrace.sysout("CSSEditor.saveEdit : "+previousValue+"->"+value+" = "+propValue+"\n");
- if (previousValue)
- Firebug.CSSModule.removeProperty(rule, previousValue);
- Firebug.CSSModule.setProperty(rule, value, parsedValue.value, parsedValue.priority);
- }
- }
- else if (!value) // name of the property has been deleted, so remove the property.
- Firebug.CSSModule.removeProperty(rule, previousValue);
- }
- else if (getAncestorByClass(target, "cssPropValue"))
- {
- var propName = getChildByClass(row, "cssPropName")[textContent];
- var propValue = getChildByClass(row, "cssPropValue")[textContent];
-
- if (FBTrace.DBG_CSS)
- {
- FBTrace.sysout("CSSEditor.saveEdit propName=propValue: "+propName +" = "+propValue+"\n");
- // FBTrace.sysout("CSSEditor.saveEdit BEFORE style:",style);
- }
-
- if (value && value != "null")
- {
- var parsedValue = parsePriority(value);
- Firebug.CSSModule.setProperty(rule, propName, parsedValue.value, parsedValue.priority);
- }
- else if (previousValue && previousValue != "null")
- Firebug.CSSModule.removeProperty(rule, propName);
- }
-
- this.panel.markChange(this.panel.name == "stylesheet");
- },
-
- advanceToNext: function(target, charCode)
- {
- if (charCode == 58 /*":"*/ && hasClass(target, "cssPropName"))
- return true;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- getAutoCompleteRange: function(value, offset)
- {
- if (hasClass(this.target, "cssPropName"))
- return {start: 0, end: value.length-1};
- else
- return parseCSSValue(value, offset);
- },
-
- getAutoCompleteList: function(preExpr, expr, postExpr)
- {
- if (hasClass(this.target, "cssPropName"))
- {
- return getCSSPropertyNames();
- }
- else
- {
- var row = getAncestorByClass(this.target, "cssProp");
- var propName = getChildByClass(row, "cssPropName")[textContent];
- return getCSSKeywordsByProperty(propName);
- }
- }
-});
-
-//************************************************************************************************
-//CSSRuleEditor
-
-function CSSRuleEditor(doc)
-{
- this.initializeInline(doc);
- this.completeAsYouType = false;
-}
-CSSRuleEditor.uniquifier = 0;
-CSSRuleEditor.prototype = domplate(Firebug.InlineEditor.prototype,
-{
- insertNewRow: function(target, insertWhere)
- {
- var emptyRule = {
- selector: "",
- id: "",
- props: [],
- isSelectorEditable: true
- };
-
- if (insertWhere == "before")
- return CSSStyleRuleTag.tag.insertBefore({rule: emptyRule}, target);
- else
- return CSSStyleRuleTag.tag.insertAfter({rule: emptyRule}, target);
- },
-
- saveEdit: function(target, value, previousValue)
- {
- if (FBTrace.DBG_CSS)
- FBTrace.sysout("CSSRuleEditor.saveEdit: '" + value + "' '" + previousValue + "'", target);
-
- target.innerHTML = escapeForCss(value);
-
- if (value === previousValue) return;
-
- var row = getAncestorByClass(target, "cssRule");
- var styleSheet = this.panel.location;
- styleSheet = styleSheet.editStyleSheet ? styleSheet.editStyleSheet.sheet : styleSheet;
-
- var cssRules = styleSheet.cssRules;
- var rule = Firebug.getRepObject(target), oldRule = rule;
- var ruleIndex = cssRules.length;
- if (rule || Firebug.getRepObject(row.nextSibling))
- {
- var searchRule = rule || Firebug.getRepObject(row.nextSibling);
- for (ruleIndex=0; ruleIndex<cssRules.length && searchRule!=cssRules[ruleIndex]; ruleIndex++) {}
- }
-
- // Delete in all cases except for new add
- // We want to do this before the insert to ease change tracking
- if (oldRule)
- {
- Firebug.CSSModule.deleteRule(styleSheet, ruleIndex);
- }
-
- // Firefox does not follow the spec for the update selector text case.
- // When attempting to update the value, firefox will silently fail.
- // See https://bugzilla.mozilla.org/show_bug.cgi?id=37468 for the quite
- // old discussion of this bug.
- // As a result we need to recreate the style every time the selector
- // changes.
- if (value)
- {
- var cssText = [ value, "{" ];
- var props = row.getElementsByClassName("cssProp");
- for (var i = 0; i < props.length; i++) {
- var propEl = props[i];
- if (!hasClass(propEl, "disabledStyle")) {
- cssText.push(getChildByClass(propEl, "cssPropName")[textContent]);
- cssText.push(":");
- cssText.push(getChildByClass(propEl, "cssPropValue")[textContent]);
- cssText.push(";");
- }
- }
- cssText.push("}");
- cssText = cssText.join("");
-
- try
- {
- var insertLoc = Firebug.CSSModule.insertRule(styleSheet, cssText, ruleIndex);
- rule = cssRules[insertLoc];
- ruleIndex++;
- }
- catch (err)
- {
- if (FBTrace.DBG_CSS || FBTrace.DBG_ERRORS)
- FBTrace.sysout("CSS Insert Error: "+err, err);
-
- target.innerHTML = escapeForCss(previousValue);
- row.repObject = undefined;
- return;
- }
- } else {
- rule = undefined;
- }
-
- // Update the rep object
- row.repObject = rule;
- if (!oldRule)
- {
- // Who knows what the domutils will return for rule line
- // for a recently created rule. To be safe we just generate
- // a unique value as this is only used as an internal key.
- var ruleId = "new/"+value+"/"+(++CSSRuleEditor.uniquifier);
- row.setAttribute("ruleId", ruleId);
- }
-
- this.panel.markChange(this.panel.name == "stylesheet");
- }
-});
-
-// ************************************************************************************************
-// StyleSheetEditor
-
-function StyleSheetEditor(doc)
-{
- this.box = this.tag.replace({}, doc, this);
- this.input = this.box.firstChild;
-}
-
-StyleSheetEditor.prototype = domplate(Firebug.BaseEditor,
-{
- multiLine: true,
-
- tag: DIV(
- TEXTAREA({"class": "styleSheetEditor fullPanelEditor", oninput: "$onInput"})
- ),
-
- getValue: function()
- {
- return this.input.value;
- },
-
- setValue: function(value)
- {
- return this.input.value = value;
- },
-
- show: function(target, panel, value, textSize, targetSize)
- {
- this.target = target;
- this.panel = panel;
-
- this.panel.panelNode.appendChild(this.box);
-
- this.input.value = value;
- this.input.focus();
-
- var command = Firebug.chrome.$("cmd_toggleCSSEditing");
- command.setAttribute("checked", true);
- },
-
- hide: function()
- {
- var command = Firebug.chrome.$("cmd_toggleCSSEditing");
- command.setAttribute("checked", false);
-
- if (this.box.parentNode == this.panel.panelNode)
- this.panel.panelNode.removeChild(this.box);
-
- delete this.target;
- delete this.panel;
- delete this.styleSheet;
- },
-
- saveEdit: function(target, value, previousValue)
- {
- Firebug.CSSModule.freeEdit(this.styleSheet, value);
- },
-
- endEditing: function()
- {
- this.panel.refresh();
- return true;
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- onInput: function()
- {
- Firebug.Editor.update();
- },
-
- scrollToLine: function(line, offset)
- {
- this.startMeasuring(this.input);
- var lineHeight = this.measureText().height;
- this.stopMeasuring();
-
- this.input.scrollTop = (line * lineHeight) + offset;
- }
-});
-
-// ************************************************************************************************
-// Local Helpers
-
-var rgbToHex = function rgbToHex(value)
-{
- return value.replace(/\brgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)/gi, rgbToHexReplacer);
-};
-
-var rgbToHexReplacer = function(_, r, g, b) {
- return '#' + ((1 << 24) + (r << 16) + (g << 8) + (b << 0)).toString(16).substr(-6).toUpperCase();
-};
-
-var stripUnits = function stripUnits(value)
-{
- // remove units from '0px', '0em' etc. leave non-zero units in-tact.
- return value.replace(/(url\(.*?\)|[^0]\S*\s*)|0(%|em|ex|px|in|cm|mm|pt|pc)(\s|$)/gi, stripUnitsReplacer);
-};
-
-var stripUnitsReplacer = function(_, skip, remove, whitespace) {
- return skip || ('0' + whitespace);
-};
-
-function parsePriority(value)
-{
- var rePriority = /(.*?)\s*(!important)?$/;
- var m = rePriority.exec(value);
- var propValue = m ? m[1] : "";
- var priority = m && m[2] ? "important" : "";
- return {value: propValue, priority: priority};
-}
-
-function parseURLValue(value)
-{
- var m = reURL.exec(value);
- return m ? m[1] : "";
-}
-
-function parseRepeatValue(value)
-{
- var m = reRepeat.exec(value);
- return m ? m[0] : "";
-}
-
-function parseCSSValue(value, offset)
-{
- var start = 0;
- var m;
- while (1)
- {
- m = reSplitCSS.exec(value);
- if (m && m.index+m[0].length < offset)
- {
- value = value.substr(m.index+m[0].length);
- start += m.index+m[0].length;
- offset -= m.index+m[0].length;
- }
- else
- break;
- }
-
- if (m)
- {
- var type;
- if (m[1])
- type = "url";
- else if (m[2] || m[3])
- type = "rgb";
- else if (m[4])
- type = "int";
-
- return {value: m[0], start: start+m.index, end: start+m.index+(m[0].length-1), type: type};
- }
-}
-
-function findPropByName(props, name)
-{
- for (var i = 0; i < props.length; ++i)
- {
- if (props[i].name == name)
- return i;
- }
-}
-
-function sortProperties(props)
-{
- props.sort(function(a, b)
- {
- return a.name > b.name ? 1 : -1;
- });
-}
-
-function getTopmostRuleLine(panelNode)
-{
- for (var child = panelNode.firstChild; child; child = child.nextSibling)
- {
- if (child.offsetTop+child.offsetHeight > panelNode.scrollTop)
- {
- var rule = child.repObject;
- if (rule)
- return {
- line: domUtils.getRuleLine(rule),
- offset: panelNode.scrollTop-child.offsetTop
- };
- }
- }
- return 0;
-}
-
-function getStyleSheetCSS(sheet, context)
-{
- if (sheet.ownerNode instanceof HTMLStyleElement)
- return sheet.ownerNode.innerHTML;
- else
- return context.sourceCache.load(sheet.href).join("");
-}
-
-function getStyleSheetOwnerNode(sheet) {
- for (; sheet && !sheet.ownerNode; sheet = sheet.parentStyleSheet);
-
- return sheet.ownerNode;
-}
-
-function scrollSelectionIntoView(panel)
-{
- var selCon = getSelectionController(panel);
- selCon.scrollSelectionIntoView(
- nsISelectionController.SELECTION_NORMAL,
- nsISelectionController.SELECTION_FOCUS_REGION, true);
-}
-
-function getSelectionController(panel)
-{
- var browser = Firebug.chrome.getPanelBrowser(panel);
- return browser.docShell.QueryInterface(nsIInterfaceRequestor)
- .getInterface(nsISelectionDisplay)
- .QueryInterface(nsISelectionController);
-}
-
-// ************************************************************************************************
-
-Firebug.registerModule(Firebug.CSSModule);
-Firebug.registerPanel(Firebug.CSSStyleSheetPanel);
-Firebug.registerPanel(CSSElementPanel);
-Firebug.registerPanel(CSSComputedElementPanel);
-
-// ************************************************************************************************
-
-}});
-
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Script Module
-
-Firebug.Script = extend(Firebug.Module,
-{
- getPanel: function()
- {
- return Firebug.chrome ? Firebug.chrome.getPanel("Script") : null;
- },
-
- selectSourceCode: function(index)
- {
- this.getPanel().selectSourceCode(index);
- }
-});
-
-Firebug.registerModule(Firebug.Script);
-
-
-// ************************************************************************************************
-// Script Panel
-
-function ScriptPanel(){};
-
-ScriptPanel.prototype = extend(Firebug.Panel,
-{
- name: "Script",
- title: "Script",
-
- selectIndex: 0, // index of the current selectNode's option
- sourceIndex: -1, // index of the script node, based in doc.getElementsByTagName("script")
-
- options: {
- hasToolButtons: true
- },
-
- create: function()
- {
- Firebug.Panel.create.apply(this, arguments);
-
- this.onChangeSelect = bind(this.onChangeSelect, this);
-
- var doc = Firebug.browser.document;
- var scripts = doc.getElementsByTagName("script");
- var selectNode = this.selectNode = createElement("select");
-
- for(var i=0, script; script=scripts[i]; i++)
- {
- // Don't show Firebug Lite source code in the list of options
- if (Firebug.ignoreFirebugElements && script.getAttribute("firebugIgnore"))
- continue;
-
- var fileName = getFileName(script.src) || getFileName(doc.location.href);
- var option = createElement("option", {value:i});
-
- option.appendChild(Firebug.chrome.document.createTextNode(fileName));
- selectNode.appendChild(option);
- };
-
- this.toolButtonsNode.appendChild(selectNode);
- },
-
- initialize: function()
- {
- // we must render the code first, so the persistent state can be restore
- this.selectSourceCode(this.selectIndex);
-
- Firebug.Panel.initialize.apply(this, arguments);
-
- addEvent(this.selectNode, "change", this.onChangeSelect);
- },
-
- shutdown: function()
- {
- removeEvent(this.selectNode, "change", this.onChangeSelect);
-
- Firebug.Panel.shutdown.apply(this, arguments);
- },
-
- detach: function(oldChrome, newChrome)
- {
- Firebug.Panel.detach.apply(this, arguments);
-
- var oldPanel = oldChrome.getPanel("Script");
- var index = oldPanel.selectIndex;
-
- this.selectNode.selectedIndex = index;
- this.selectIndex = index;
- this.sourceIndex = -1;
- },
-
- onChangeSelect: function(event)
- {
- var select = this.selectNode;
-
- this.selectIndex = select.selectedIndex;
-
- var option = select.options[select.selectedIndex];
- if (!option)
- return;
-
- var selectedSourceIndex = parseInt(option.value);
-
- this.renderSourceCode(selectedSourceIndex);
- },
-
- selectSourceCode: function(index)
- {
- var select = this.selectNode;
- select.selectedIndex = index;
-
- var option = select.options[index];
- if (!option)
- return;
-
- var selectedSourceIndex = parseInt(option.value);
-
- this.renderSourceCode(selectedSourceIndex);
- },
-
- renderSourceCode: function(index)
- {
- if (this.sourceIndex != index)
- {
- var renderProcess = function renderProcess(src)
- {
- var html = [],
- hl = 0;
-
- src = isIE && !isExternal ?
- src+'\n' : // IE put an extra line when reading source of local resources
- '\n'+src;
-
- // find the number of lines of code
- src = src.replace(/\n\r|\r\n/g, "\n");
- var match = src.match(/[\n]/g);
- var lines=match ? match.length : 0;
-
- // render the full source code + line numbers html
- html[hl++] = '<div><div class="sourceBox" style="left:';
- html[hl++] = 35 + 7*(lines+'').length;
- html[hl++] = 'px;"><pre class="sourceCode">';
- html[hl++] = escapeHTML(src);
- html[hl++] = '</pre></div><div class="lineNo">';
-
- // render the line number divs
- for(var l=1, lines; l<=lines; l++)
- {
- html[hl++] = '<div line="';
- html[hl++] = l;
- html[hl++] = '">';
- html[hl++] = l;
- html[hl++] = '</div>';
- }
-
- html[hl++] = '</div></div>';
-
- updatePanel(html);
- };
-
- var updatePanel = function(html)
- {
- self.panelNode.innerHTML = html.join("");
-
- // IE needs this timeout, otherwise the panel won't scroll
- setTimeout(function(){
- self.synchronizeUI();
- },0);
- };
-
- var onFailure = function()
- {
- FirebugReps.Warning.tag.replace({object: "AccessRestricted"}, self.panelNode);
- };
-
- var self = this;
-
- var doc = Firebug.browser.document;
- var script = doc.getElementsByTagName("script")[index];
- var url = getScriptURL(script);
- var isExternal = url && url != doc.location.href;
-
- try
- {
- if (Firebug.disableResourceFetching)
- {
- renderProcess(Firebug.Lite.Proxy.fetchResourceDisabledMessage);
- }
- else if (isExternal)
- {
- Ajax.request({url: url, onSuccess: renderProcess, onFailure: onFailure});
- }
- else
- {
- var src = script.innerHTML;
- renderProcess(src);
- }
- }
- catch(e)
- {
- onFailure();
- }
-
- this.sourceIndex = index;
- }
- }
-});
-
-Firebug.registerPanel(ScriptPanel);
-
-
-// ************************************************************************************************
-
-
-var getScriptURL = function getScriptURL(script)
-{
- var reFile = /([^\/\?#]+)(#.+)?$/;
- var rePath = /^(.*\/)/;
- var reProtocol = /^\w+:\/\//;
- var path = null;
- var doc = Firebug.browser.document;
-
- var file = reFile.exec(script.src);
-
- if (file)
- {
- var fileName = file[1];
- var fileOptions = file[2];
-
- // absolute path
- if (reProtocol.test(script.src)) {
- path = rePath.exec(script.src)[1];
-
- }
- // relative path
- else
- {
- var r = rePath.exec(script.src);
- var src = r ? r[1] : script.src;
- var backDir = /^((?:\.\.\/)+)(.*)/.exec(src);
- var reLastDir = /^(.*\/)[^\/]+\/$/;
- path = rePath.exec(doc.location.href)[1];
-
- // "../some/path"
- if (backDir)
- {
- var j = backDir[1].length/3;
- var p;
- while (j-- > 0)
- path = reLastDir.exec(path)[1];
-
- path += backDir[2];
- }
-
- else if(src.indexOf("/") != -1)
- {
- // "./some/path"
- if(/^\.\/./.test(src))
- {
- path += src.substring(2);
- }
- // "/some/path"
- else if(/^\/./.test(src))
- {
- var domain = /^(\w+:\/\/[^\/]+)/.exec(path);
- path = domain[1] + src;
- }
- // "some/path"
- else
- {
- path += src;
- }
- }
- }
- }
-
- var m = path && path.match(/([^\/]+)\/$/) || null;
-
- if (path && m)
- {
- return path + fileName;
- }
-};
-
-var getFileName = function getFileName(path)
-{
- if (!path) return "";
-
- var match = path && path.match(/[^\/]+(\?.*)?(#.*)?$/);
-
- return match && match[0] || path;
-};
-
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var ElementCache = Firebug.Lite.Cache.Element;
-
-var insertSliceSize = 18;
-var insertInterval = 40;
-
-var ignoreVars =
-{
- "__firebug__": 1,
- "eval": 1,
-
- // We are forced to ignore Java-related variables, because
- // trying to access them causes browser freeze
- "java": 1,
- "sun": 1,
- "Packages": 1,
- "JavaArray": 1,
- "JavaMember": 1,
- "JavaObject": 1,
- "JavaClass": 1,
- "JavaPackage": 1,
- "_firebug": 1,
- "_FirebugConsole": 1,
- "_FirebugCommandLine": 1
-};
-
-if (Firebug.ignoreFirebugElements)
- ignoreVars[Firebug.Lite.Cache.ID] = 1;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-var memberPanelRep =
- isIE6 ?
- {"class": "memberLabel $member.type\\Label", href: "javacript:void(0)"}
- :
- {"class": "memberLabel $member.type\\Label"};
-
-var RowTag =
- TR({"class": "memberRow $member.open $member.type\\Row", $hasChildren: "$member.hasChildren", role : 'presentation',
- level: "$member.level"},
- TD({"class": "memberLabelCell", style: "padding-left: $member.indent\\px", role : 'presentation'},
- A(memberPanelRep,
- SPAN({}, "$member.name")
- )
- ),
- TD({"class": "memberValueCell", role : 'presentation'},
- TAG("$member.tag", {object: "$member.value"})
- )
- );
-
-var WatchRowTag =
- TR({"class": "watchNewRow", level: 0},
- TD({"class": "watchEditCell", colspan: 2},
- DIV({"class": "watchEditBox a11yFocusNoTab", role: "button", 'tabindex' : '0',
- 'aria-label' : $STR('press enter to add new watch expression')},
- $STR("NewWatch")
- )
- )
- );
-
-var SizerRow =
- TR({role : 'presentation'},
- TD({width: "30%"}),
- TD({width: "70%"})
- );
-
-var domTableClass = isIElt8 ? "domTable domTableIE" : "domTable";
-var DirTablePlate = domplate(Firebug.Rep,
-{
- tag:
- TABLE({"class": domTableClass, cellpadding: 0, cellspacing: 0, onclick: "$onClick", role :"tree"},
- TBODY({role: 'presentation'},
- SizerRow,
- FOR("member", "$object|memberIterator", RowTag)
- )
- ),
-
- watchTag:
- TABLE({"class": domTableClass, cellpadding: 0, cellspacing: 0,
- _toggles: "$toggles", _domPanel: "$domPanel", onclick: "$onClick", role : 'tree'},
- TBODY({role : 'presentation'},
- SizerRow,
- WatchRowTag
- )
- ),
-
- tableTag:
- TABLE({"class": domTableClass, cellpadding: 0, cellspacing: 0,
- _toggles: "$toggles", _domPanel: "$domPanel", onclick: "$onClick", role : 'tree'},
- TBODY({role : 'presentation'},
- SizerRow
- )
- ),
-
- rowTag:
- FOR("member", "$members", RowTag),
-
- memberIterator: function(object, level)
- {
- return getMembers(object, level);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- onClick: function(event)
- {
- if (!isLeftClick(event))
- return;
-
- var target = event.target || event.srcElement;
-
- var row = getAncestorByClass(target, "memberRow");
- var label = getAncestorByClass(target, "memberLabel");
- if (label && hasClass(row, "hasChildren"))
- {
- var row = label.parentNode.parentNode;
- this.toggleRow(row);
- }
- else
- {
- var object = Firebug.getRepObject(target);
- if (typeof(object) == "function")
- {
- Firebug.chrome.select(object, "script");
- cancelEvent(event);
- }
- else if (event.detail == 2 && !object)
- {
- var panel = row.parentNode.parentNode.domPanel;
- if (panel)
- {
- var rowValue = panel.getRowPropertyValue(row);
- if (typeof(rowValue) == "boolean")
- panel.setPropertyValue(row, !rowValue);
- else
- panel.editProperty(row);
-
- cancelEvent(event);
- }
- }
- }
-
- return false;
- },
-
- toggleRow: function(row)
- {
- var level = parseInt(row.getAttribute("level"));
- var toggles = row.parentNode.parentNode.toggles;
-
- if (hasClass(row, "opened"))
- {
- removeClass(row, "opened");
-
- if (toggles)
- {
- var path = getPath(row);
-
- // Remove the path from the toggle tree
- for (var i = 0; i < path.length; ++i)
- {
- if (i == path.length-1)
- delete toggles[path[i]];
- else
- toggles = toggles[path[i]];
- }
- }
-
- var rowTag = this.rowTag;
- var tbody = row.parentNode;
-
- setTimeout(function()
- {
- for (var firstRow = row.nextSibling; firstRow; firstRow = row.nextSibling)
- {
- if (parseInt(firstRow.getAttribute("level")) <= level)
- break;
-
- tbody.removeChild(firstRow);
- }
- }, row.insertTimeout ? row.insertTimeout : 0);
- }
- else
- {
- setClass(row, "opened");
-
- if (toggles)
- {
- var path = getPath(row);
-
- // Mark the path in the toggle tree
- for (var i = 0; i < path.length; ++i)
- {
- var name = path[i];
- if (toggles.hasOwnProperty(name))
- toggles = toggles[name];
- else
- toggles = toggles[name] = {};
- }
- }
-
- var value = row.lastChild.firstChild.repObject;
- var members = getMembers(value, level+1);
-
- var rowTag = this.rowTag;
- var lastRow = row;
-
- var delay = 0;
- //var setSize = members.length;
- //var rowCount = 1;
- while (members.length)
- {
- with({slice: members.splice(0, insertSliceSize), isLast: !members.length})
- {
- setTimeout(function()
- {
- if (lastRow.parentNode)
- {
- var result = rowTag.insertRows({members: slice}, lastRow);
- lastRow = result[1];
- //dispatch([Firebug.A11yModel], 'onMemberRowSliceAdded', [null, result, rowCount, setSize]);
- //rowCount += insertSliceSize;
- }
- if (isLast)
- row.removeAttribute("insertTimeout");
- }, delay);
- }
-
- delay += insertInterval;
- }
-
- row.insertTimeout = delay;
- }
- }
-});
-
-
-
-// ************************************************************************************************
-
-Firebug.DOMBasePanel = function() {};
-
-Firebug.DOMBasePanel.prototype = extend(Firebug.Panel,
-{
- tag: DirTablePlate.tableTag,
-
- getRealObject: function(object)
- {
- // TODO: Move this to some global location
- // TODO: Unwrapping should be centralized rather than sprinkling it around ad hoc.
- // TODO: We might be able to make this check more authoritative with QueryInterface.
- if (!object) return object;
- if (object.wrappedJSObject) return object.wrappedJSObject;
- return object;
- },
-
- rebuild: function(update, scrollTop)
- {
- //dispatch([Firebug.A11yModel], 'onBeforeDomUpdateSelection', [this]);
- var members = getMembers(this.selection);
- expandMembers(members, this.toggles, 0, 0);
-
- this.showMembers(members, update, scrollTop);
-
- //TODO: xxxpedro statusbar
- if (!this.parentPanel)
- updateStatusBar(this);
- },
-
- showMembers: function(members, update, scrollTop)
- {
- // If we are still in the midst of inserting rows, cancel all pending
- // insertions here - this is a big speedup when stepping in the debugger
- if (this.timeouts)
- {
- for (var i = 0; i < this.timeouts.length; ++i)
- this.context.clearTimeout(this.timeouts[i]);
- delete this.timeouts;
- }
-
- if (!members.length)
- return this.showEmptyMembers();
-
- var panelNode = this.panelNode;
- var priorScrollTop = scrollTop == undefined ? panelNode.scrollTop : scrollTop;
-
- // If we are asked to "update" the current view, then build the new table
- // offscreen and swap it in when it's done
- var offscreen = update && panelNode.firstChild;
- var dest = offscreen ? panelNode.ownerDocument : panelNode;
-
- var table = this.tag.replace({domPanel: this, toggles: this.toggles}, dest);
- var tbody = table.lastChild;
- var rowTag = DirTablePlate.rowTag;
-
- // Insert the first slice immediately
- //var slice = members.splice(0, insertSliceSize);
- //var result = rowTag.insertRows({members: slice}, tbody.lastChild);
-
- //var setSize = members.length;
- //var rowCount = 1;
-
- var panel = this;
- var result;
-
- //dispatch([Firebug.A11yModel], 'onMemberRowSliceAdded', [panel, result, rowCount, setSize]);
- var timeouts = [];
-
- var delay = 0;
-
- // enable to measure rendering performance
- var renderStart = new Date().getTime();
- while (members.length)
- {
- with({slice: members.splice(0, insertSliceSize), isLast: !members.length})
- {
- timeouts.push(this.context.setTimeout(function()
- {
- // TODO: xxxpedro can this be a timing error related to the
- // "iteration number" approach insted of "duration time"?
- // avoid error in IE8
- if (!tbody.lastChild) return;
-
- result = rowTag.insertRows({members: slice}, tbody.lastChild);
-
- //rowCount += insertSliceSize;
- //dispatch([Firebug.A11yModel], 'onMemberRowSliceAdded', [panel, result, rowCount, setSize]);
-
- if ((panelNode.scrollHeight+panelNode.offsetHeight) >= priorScrollTop)
- panelNode.scrollTop = priorScrollTop;
-
-
- // enable to measure rendering performance
- //if (isLast) alert(new Date().getTime() - renderStart + "ms");
-
-
- }, delay));
-
- delay += insertInterval;
- }
- }
-
- if (offscreen)
- {
- timeouts.push(this.context.setTimeout(function()
- {
- if (panelNode.firstChild)
- panelNode.replaceChild(table, panelNode.firstChild);
- else
- panelNode.appendChild(table);
-
- // Scroll back to where we were before
- panelNode.scrollTop = priorScrollTop;
- }, delay));
- }
- else
- {
- timeouts.push(this.context.setTimeout(function()
- {
- panelNode.scrollTop = scrollTop == undefined ? 0 : scrollTop;
- }, delay));
- }
- this.timeouts = timeouts;
- },
-
- /*
- // new
- showMembers: function(members, update, scrollTop)
- {
- // If we are still in the midst of inserting rows, cancel all pending
- // insertions here - this is a big speedup when stepping in the debugger
- if (this.timeouts)
- {
- for (var i = 0; i < this.timeouts.length; ++i)
- this.context.clearTimeout(this.timeouts[i]);
- delete this.timeouts;
- }
-
- if (!members.length)
- return this.showEmptyMembers();
-
- var panelNode = this.panelNode;
- var priorScrollTop = scrollTop == undefined ? panelNode.scrollTop : scrollTop;
-
- // If we are asked to "update" the current view, then build the new table
- // offscreen and swap it in when it's done
- var offscreen = update && panelNode.firstChild;
- var dest = offscreen ? panelNode.ownerDocument : panelNode;
-
- var table = this.tag.replace({domPanel: this, toggles: this.toggles}, dest);
- var tbody = table.lastChild;
- var rowTag = DirTablePlate.rowTag;
-
- // Insert the first slice immediately
- //var slice = members.splice(0, insertSliceSize);
- //var result = rowTag.insertRows({members: slice}, tbody.lastChild);
-
- //var setSize = members.length;
- //var rowCount = 1;
-
- var panel = this;
- var result;
-
- //dispatch([Firebug.A11yModel], 'onMemberRowSliceAdded', [panel, result, rowCount, setSize]);
- var timeouts = [];
-
- var delay = 0;
- var _insertSliceSize = insertSliceSize;
- var _insertInterval = insertInterval;
-
- // enable to measure rendering performance
- var renderStart = new Date().getTime();
- var lastSkip = renderStart, now;
-
- while (members.length)
- {
- with({slice: members.splice(0, _insertSliceSize), isLast: !members.length})
- {
- var _tbody = tbody;
- var _rowTag = rowTag;
- var _panelNode = panelNode;
- var _priorScrollTop = priorScrollTop;
-
- timeouts.push(this.context.setTimeout(function()
- {
- // TODO: xxxpedro can this be a timing error related to the
- // "iteration number" approach insted of "duration time"?
- // avoid error in IE8
- if (!_tbody.lastChild) return;
-
- result = _rowTag.insertRows({members: slice}, _tbody.lastChild);
-
- //rowCount += _insertSliceSize;
- //dispatch([Firebug.A11yModel], 'onMemberRowSliceAdded', [panel, result, rowCount, setSize]);
-
- if ((_panelNode.scrollHeight + _panelNode.offsetHeight) >= _priorScrollTop)
- _panelNode.scrollTop = _priorScrollTop;
-
-
- // enable to measure rendering performance
- //alert("gap: " + (new Date().getTime() - lastSkip));
- //lastSkip = new Date().getTime();
-
- //if (isLast) alert("new: " + (new Date().getTime() - renderStart) + "ms");
-
- }, delay));
-
- delay += _insertInterval;
- }
- }
-
- if (offscreen)
- {
- timeouts.push(this.context.setTimeout(function()
- {
- if (panelNode.firstChild)
- panelNode.replaceChild(table, panelNode.firstChild);
- else
- panelNode.appendChild(table);
-
- // Scroll back to where we were before
- panelNode.scrollTop = priorScrollTop;
- }, delay));
- }
- else
- {
- timeouts.push(this.context.setTimeout(function()
- {
- panelNode.scrollTop = scrollTop == undefined ? 0 : scrollTop;
- }, delay));
- }
- this.timeouts = timeouts;
- },
- /**/
-
- showEmptyMembers: function()
- {
- FirebugReps.Warning.tag.replace({object: "NoMembersWarning"}, this.panelNode);
- },
-
- findPathObject: function(object)
- {
- var pathIndex = -1;
- for (var i = 0; i < this.objectPath.length; ++i)
- {
- // IE needs === instead of == or otherwise some objects will
- // be considered equal to different objects, returning the
- // wrong index of the objectPath array
- if (this.getPathObject(i) === object)
- return i;
- }
-
- return -1;
- },
-
- getPathObject: function(index)
- {
- var object = this.objectPath[index];
-
- if (object instanceof Property)
- return object.getObject();
- else
- return object;
- },
-
- getRowObject: function(row)
- {
- var object = getRowOwnerObject(row);
- return object ? object : this.selection;
- },
-
- getRowPropertyValue: function(row)
- {
- var object = this.getRowObject(row);
- object = this.getRealObject(object);
- if (object)
- {
- var propName = getRowName(row);
-
- if (object instanceof jsdIStackFrame)
- return Firebug.Debugger.evaluate(propName, this.context);
- else
- return object[propName];
- }
- },
- /*
- copyProperty: function(row)
- {
- var value = this.getRowPropertyValue(row);
- copyToClipboard(value);
- },
-
- editProperty: function(row, editValue)
- {
- if (hasClass(row, "watchNewRow"))
- {
- if (this.context.stopped)
- Firebug.Editor.startEditing(row, "");
- else if (Firebug.Console.isAlwaysEnabled()) // not stopped in debugger, need command line
- {
- if (Firebug.CommandLine.onCommandLineFocus())
- Firebug.Editor.startEditing(row, "");
- else
- row.innerHTML = $STR("warning.Command line blocked?");
- }
- else
- row.innerHTML = $STR("warning.Console must be enabled");
- }
- else if (hasClass(row, "watchRow"))
- Firebug.Editor.startEditing(row, getRowName(row));
- else
- {
- var object = this.getRowObject(row);
- this.context.thisValue = object;
-
- if (!editValue)
- {
- var propValue = this.getRowPropertyValue(row);
-
- var type = typeof(propValue);
- if (type == "undefined" || type == "number" || type == "boolean")
- editValue = propValue;
- else if (type == "string")
- editValue = "\"" + escapeJS(propValue) + "\"";
- else if (propValue == null)
- editValue = "null";
- else if (object instanceof Window || object instanceof jsdIStackFrame)
- editValue = getRowName(row);
- else
- editValue = "this." + getRowName(row);
- }
-
-
- Firebug.Editor.startEditing(row, editValue);
- }
- },
-
- deleteProperty: function(row)
- {
- if (hasClass(row, "watchRow"))
- this.deleteWatch(row);
- else
- {
- var object = getRowOwnerObject(row);
- if (!object)
- object = this.selection;
- object = this.getRealObject(object);
-
- if (object)
- {
- var name = getRowName(row);
- try
- {
- delete object[name];
- }
- catch (exc)
- {
- return;
- }
-
- this.rebuild(true);
- this.markChange();
- }
- }
- },
-
- setPropertyValue: function(row, value) // value must be string
- {
- if(FBTrace.DBG_DOM)
- {
- FBTrace.sysout("row: "+row);
- FBTrace.sysout("value: "+value+" type "+typeof(value), value);
- }
-
- var name = getRowName(row);
- if (name == "this")
- return;
-
- var object = this.getRowObject(row);
- object = this.getRealObject(object);
- if (object && !(object instanceof jsdIStackFrame))
- {
- // unwrappedJSObject.property = unwrappedJSObject
- Firebug.CommandLine.evaluate(value, this.context, object, this.context.getGlobalScope(),
- function success(result, context)
- {
- if (FBTrace.DBG_DOM)
- FBTrace.sysout("setPropertyValue evaluate success object["+name+"]="+result+" type "+typeof(result), result);
- object[name] = result;
- },
- function failed(exc, context)
- {
- try
- {
- if (FBTrace.DBG_DOM)
- FBTrace.sysout("setPropertyValue evaluate failed with exc:"+exc+" object["+name+"]="+value+" type "+typeof(value), exc);
- // If the value doesn't parse, then just store it as a string. Some users will
- // not realize they're supposed to enter a JavaScript expression and just type
- // literal text
- object[name] = String(value); // unwrappedJSobject.property = string
- }
- catch (exc)
- {
- return;
- }
- }
- );
- }
- else if (this.context.stopped)
- {
- try
- {
- Firebug.CommandLine.evaluate(name+"="+value, this.context);
- }
- catch (exc)
- {
- try
- {
- // See catch block above...
- object[name] = String(value); // unwrappedJSobject.property = string
- }
- catch (exc)
- {
- return;
- }
- }
- }
-
- this.rebuild(true);
- this.markChange();
- },
-
- highlightRow: function(row)
- {
- if (this.highlightedRow)
- cancelClassTimed(this.highlightedRow, "jumpHighlight", this.context);
-
- this.highlightedRow = row;
-
- if (row)
- setClassTimed(row, "jumpHighlight", this.context);
- },/**/
-
- onMouseMove: function(event)
- {
- var target = event.srcElement || event.target;
-
- var object = getAncestorByClass(target, "objectLink-element");
- object = object ? object.repObject : null;
-
- if(object && instanceOf(object, "Element") && object.nodeType == 1)
- {
- if(object != lastHighlightedObject)
- {
- Firebug.Inspector.drawBoxModel(object);
- object = lastHighlightedObject;
- }
- }
- else
- Firebug.Inspector.hideBoxModel();
-
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Panel
-
- create: function()
- {
- // TODO: xxxpedro
- this.context = Firebug.browser;
-
- this.objectPath = [];
- this.propertyPath = [];
- this.viewPath = [];
- this.pathIndex = -1;
- this.toggles = {};
-
- Firebug.Panel.create.apply(this, arguments);
-
- this.panelNode.style.padding = "0 1px";
- },
-
- initialize: function(){
- Firebug.Panel.initialize.apply(this, arguments);
-
- addEvent(this.panelNode, "mousemove", this.onMouseMove);
- },
-
- shutdown: function()
- {
- removeEvent(this.panelNode, "mousemove", this.onMouseMove);
-
- Firebug.Panel.shutdown.apply(this, arguments);
- },
-
- /*
- destroy: function(state)
- {
- var view = this.viewPath[this.pathIndex];
- if (view && this.panelNode.scrollTop)
- view.scrollTop = this.panelNode.scrollTop;
-
- if (this.pathIndex)
- state.pathIndex = this.pathIndex;
- if (this.viewPath)
- state.viewPath = this.viewPath;
- if (this.propertyPath)
- state.propertyPath = this.propertyPath;
-
- if (this.propertyPath.length > 0 && !this.propertyPath[1])
- state.firstSelection = persistObject(this.getPathObject(1), this.context);
-
- Firebug.Panel.destroy.apply(this, arguments);
- },
- /**/
-
- ishow: function(state)
- {
- if (this.context.loaded && !this.selection)
- {
- if (!state)
- {
- this.select(null);
- return;
- }
- if (state.viewPath)
- this.viewPath = state.viewPath;
- if (state.propertyPath)
- this.propertyPath = state.propertyPath;
-
- var defaultObject = this.getDefaultSelection(this.context);
- var selectObject = defaultObject;
-
- if (state.firstSelection)
- {
- var restored = state.firstSelection(this.context);
- if (restored)
- {
- selectObject = restored;
- this.objectPath = [defaultObject, restored];
- }
- else
- this.objectPath = [defaultObject];
- }
- else
- this.objectPath = [defaultObject];
-
- if (this.propertyPath.length > 1)
- {
- for (var i = 1; i < this.propertyPath.length; ++i)
- {
- var name = this.propertyPath[i];
- if (!name)
- continue;
-
- var object = selectObject;
- try
- {
- selectObject = object[name];
- }
- catch (exc)
- {
- selectObject = null;
- }
-
- if (selectObject)
- {
- this.objectPath.push(new Property(object, name));
- }
- else
- {
- // If we can't access a property, just stop
- this.viewPath.splice(i);
- this.propertyPath.splice(i);
- this.objectPath.splice(i);
- selectObject = this.getPathObject(this.objectPath.length-1);
- break;
- }
- }
- }
-
- var selection = state.pathIndex <= this.objectPath.length-1
- ? this.getPathObject(state.pathIndex)
- : this.getPathObject(this.objectPath.length-1);
-
- this.select(selection);
- }
- },
- /*
- hide: function()
- {
- var view = this.viewPath[this.pathIndex];
- if (view && this.panelNode.scrollTop)
- view.scrollTop = this.panelNode.scrollTop;
- },
- /**/
-
- supportsObject: function(object)
- {
- if (object == null)
- return 1000;
-
- if (typeof(object) == "undefined")
- return 1000;
- else if (object instanceof SourceLink)
- return 0;
- else
- return 1; // just agree to support everything but not agressively.
- },
-
- refresh: function()
- {
- this.rebuild(true);
- },
-
- updateSelection: function(object)
- {
- var previousIndex = this.pathIndex;
- var previousView = previousIndex == -1 ? null : this.viewPath[previousIndex];
-
- var newPath = this.pathToAppend;
- delete this.pathToAppend;
-
- var pathIndex = this.findPathObject(object);
- if (newPath || pathIndex == -1)
- {
- this.toggles = {};
-
- if (newPath)
- {
- // Remove everything after the point where we are inserting, so we
- // essentially replace it with the new path
- if (previousView)
- {
- if (this.panelNode.scrollTop)
- previousView.scrollTop = this.panelNode.scrollTop;
-
- var start = previousIndex + 1,
- // Opera needs the length argument in splice(), otherwise
- // it will consider that only one element should be removed
- length = this.objectPath.length - start;
-
- this.objectPath.splice(start, length);
- this.propertyPath.splice(start, length);
- this.viewPath.splice(start, length);
- }
-
- var value = this.getPathObject(previousIndex);
- if (!value)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("dom.updateSelection no pathObject for "+previousIndex+"\n");
- return;
- }
-
- for (var i = 0, length = newPath.length; i < length; ++i)
- {
- var name = newPath[i];
- var object = value;
- try
- {
- value = value[name];
- }
- catch(exc)
- {
- if (FBTrace.DBG_ERRORS)
- FBTrace.sysout("dom.updateSelection FAILS at path_i="+i+" for name:"+name+"\n");
- return;
- }
-
- ++this.pathIndex;
- this.objectPath.push(new Property(object, name));
- this.propertyPath.push(name);
- this.viewPath.push({toggles: this.toggles, scrollTop: 0});
- }
- }
- else
- {
- this.toggles = {};
-
- var win = Firebug.browser.window;
- //var win = this.context.getGlobalScope();
- if (object === win)
- {
- this.pathIndex = 0;
- this.objectPath = [win];
- this.propertyPath = [null];
- this.viewPath = [{toggles: this.toggles, scrollTop: 0}];
- }
- else
- {
- this.pathIndex = 1;
- this.objectPath = [win, object];
- this.propertyPath = [null, null];
- this.viewPath = [
- {toggles: {}, scrollTop: 0},
- {toggles: this.toggles, scrollTop: 0}
- ];
- }
- }
-
- this.panelNode.scrollTop = 0;
- this.rebuild();
- }
- else
- {
- this.pathIndex = pathIndex;
-
- var view = this.viewPath[pathIndex];
- this.toggles = view.toggles;
-
- // Persist the current scroll location
- if (previousView && this.panelNode.scrollTop)
- previousView.scrollTop = this.panelNode.scrollTop;
-
- this.rebuild(false, view.scrollTop);
- }
- },
-
- getObjectPath: function(object)
- {
- return this.objectPath;
- },
-
- getDefaultSelection: function()
- {
- return Firebug.browser.window;
- //return this.context.getGlobalScope();
- }/*,
-
- updateOption: function(name, value)
- {
- const optionMap = {showUserProps: 1, showUserFuncs: 1, showDOMProps: 1,
- showDOMFuncs: 1, showDOMConstants: 1};
- if ( optionMap.hasOwnProperty(name) )
- this.rebuild(true);
- },
-
- getOptionsMenuItems: function()
- {
- return [
- optionMenu("ShowUserProps", "showUserProps"),
- optionMenu("ShowUserFuncs", "showUserFuncs"),
- optionMenu("ShowDOMProps", "showDOMProps"),
- optionMenu("ShowDOMFuncs", "showDOMFuncs"),
- optionMenu("ShowDOMConstants", "showDOMConstants"),
- "-",
- {label: "Refresh", command: bindFixed(this.rebuild, this, true) }
- ];
- },
-
- getContextMenuItems: function(object, target)
- {
- var row = getAncestorByClass(target, "memberRow");
-
- var items = [];
-
- if (row)
- {
- var rowName = getRowName(row);
- var rowObject = this.getRowObject(row);
- var rowValue = this.getRowPropertyValue(row);
-
- var isWatch = hasClass(row, "watchRow");
- var isStackFrame = rowObject instanceof jsdIStackFrame;
-
- if (typeof(rowValue) == "string" || typeof(rowValue) == "number")
- {
- // Functions already have a copy item in their context menu
- items.push(
- "-",
- {label: "CopyValue",
- command: bindFixed(this.copyProperty, this, row) }
- );
- }
-
- items.push(
- "-",
- {label: isWatch ? "EditWatch" : (isStackFrame ? "EditVariable" : "EditProperty"),
- command: bindFixed(this.editProperty, this, row) }
- );
-
- if (isWatch || (!isStackFrame && !isDOMMember(rowObject, rowName)))
- {
- items.push(
- {label: isWatch ? "DeleteWatch" : "DeleteProperty",
- command: bindFixed(this.deleteProperty, this, row) }
- );
- }
- }
-
- items.push(
- "-",
- {label: "Refresh", command: bindFixed(this.rebuild, this, true) }
- );
-
- return items;
- },
-
- getEditor: function(target, value)
- {
- if (!this.editor)
- this.editor = new DOMEditor(this.document);
-
- return this.editor;
- }/**/
-});
-
-// ************************************************************************************************
-
-// TODO: xxxpedro statusbar
-var updateStatusBar = function(panel)
-{
- var path = panel.propertyPath;
- var index = panel.pathIndex;
-
- var r = [];
-
- for (var i=0, l=path.length; i<l; i++)
- {
- r.push(i==index ? '<a class="fbHover fbButton fbBtnSelected" ' : '<a class="fbHover fbButton" ');
- r.push('pathIndex=');
- r.push(i);
-
- if(isIE6)
- r.push(' href="javascript:void(0)"');
-
- r.push('>');
- r.push(i==0 ? "window" : path[i] || "Object");
- r.push('</a>');
-
- if(i < l-1)
- r.push('<span class="fbStatusSeparator">&gt;</span>');
- }
- panel.statusBarNode.innerHTML = r.join("");
-};
-
-
-var DOMMainPanel = Firebug.DOMPanel = function () {};
-
-Firebug.DOMPanel.DirTable = DirTablePlate;
-
-DOMMainPanel.prototype = extend(Firebug.DOMBasePanel.prototype,
-{
- onClickStatusBar: function(event)
- {
- var target = event.srcElement || event.target;
- var element = getAncestorByClass(target, "fbHover");
-
- if(element)
- {
- var pathIndex = element.getAttribute("pathIndex");
-
- if(pathIndex)
- {
- this.select(this.getPathObject(pathIndex));
- }
- }
- },
-
- selectRow: function(row, target)
- {
- if (!target)
- target = row.lastChild.firstChild;
-
- if (!target || !target.repObject)
- return;
-
- this.pathToAppend = getPath(row);
-
- // If the object is inside an array, look up its index
- var valueBox = row.lastChild.firstChild;
- if (hasClass(valueBox, "objectBox-array"))
- {
- var arrayIndex = FirebugReps.Arr.getItemIndex(target);
- this.pathToAppend.push(arrayIndex);
- }
-
- // Make sure we get a fresh status path for the object, since otherwise
- // it might find the object in the existing path and not refresh it
- //Firebug.chrome.clearStatusPath();
-
- this.select(target.repObject, true);
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- onClick: function(event)
- {
- var target = event.srcElement || event.target;
- var repNode = Firebug.getRepNode(target);
- if (repNode)
- {
- var row = getAncestorByClass(target, "memberRow");
- if (row)
- {
- this.selectRow(row, repNode);
- cancelEvent(event);
- }
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Panel
-
- name: "DOM",
- title: "DOM",
- searchable: true,
- statusSeparator: ">",
-
- options: {
- hasToolButtons: true,
- hasStatusBar: true
- },
-
- create: function()
- {
- Firebug.DOMBasePanel.prototype.create.apply(this, arguments);
-
- this.onClick = bind(this.onClick, this);
-
- //TODO: xxxpedro
- this.onClickStatusBar = bind(this.onClickStatusBar, this);
-
- this.panelNode.style.padding = "0 1px";
- },
-
- initialize: function(oldPanelNode)
- {
- //this.panelNode.addEventListener("click", this.onClick, false);
- //dispatch([Firebug.A11yModel], 'onInitializeNode', [this, 'console']);
-
- Firebug.DOMBasePanel.prototype.initialize.apply(this, arguments);
-
- addEvent(this.panelNode, "click", this.onClick);
-
- // TODO: xxxpedro dom
- this.ishow();
-
- //TODO: xxxpedro
- addEvent(this.statusBarNode, "click", this.onClickStatusBar);
- },
-
- shutdown: function()
- {
- //this.panelNode.removeEventListener("click", this.onClick, false);
- //dispatch([Firebug.A11yModel], 'onDestroyNode', [this, 'console']);
-
- removeEvent(this.panelNode, "click", this.onClick);
-
- Firebug.DOMBasePanel.prototype.shutdown.apply(this, arguments);
- }/*,
-
- search: function(text, reverse)
- {
- if (!text)
- {
- delete this.currentSearch;
- this.highlightRow(null);
- return false;
- }
-
- var row;
- if (this.currentSearch && text == this.currentSearch.text)
- row = this.currentSearch.findNext(true, undefined, reverse, Firebug.searchCaseSensitive);
- else
- {
- function findRow(node) { return getAncestorByClass(node, "memberRow"); }
- this.currentSearch = new TextSearch(this.panelNode, findRow);
- row = this.currentSearch.find(text, reverse, Firebug.searchCaseSensitive);
- }
-
- if (row)
- {
- var sel = this.document.defaultView.getSelection();
- sel.removeAllRanges();
- sel.addRange(this.currentSearch.range);
-
- scrollIntoCenterView(row, this.panelNode);
-
- this.highlightRow(row);
- dispatch([Firebug.A11yModel], 'onDomSearchMatchFound', [this, text, row]);
- return true;
- }
- else
- {
- dispatch([Firebug.A11yModel], 'onDomSearchMatchFound', [this, text, null]);
- return false;
- }
- }/**/
-});
-
-Firebug.registerPanel(DOMMainPanel);
-
-
-// ************************************************************************************************
-
-
-
-// ************************************************************************************************
-// Local Helpers
-
-var getMembers = function getMembers(object, level) // we expect object to be user-level object wrapped in security blanket
-{
- if (!level)
- level = 0;
-
- var ordinals = [], userProps = [], userClasses = [], userFuncs = [],
- domProps = [], domFuncs = [], domConstants = [];
-
- try
- {
- var domMembers = getDOMMembers(object);
- //var domMembers = {}; // TODO: xxxpedro
- //var domConstantMap = {}; // TODO: xxxpedro
-
- if (object.wrappedJSObject)
- var insecureObject = object.wrappedJSObject;
- else
- var insecureObject = object;
-
- // IE function prototype is not listed in (for..in)
- if (isIE && isFunction(object))
- addMember("user", userProps, "prototype", object.prototype, level);
-
- for (var name in insecureObject) // enumeration is safe
- {
- if (ignoreVars[name] == 1) // javascript.options.strict says ignoreVars is undefined.
- continue;
-
- var val;
- try
- {
- val = insecureObject[name]; // getter is safe
- }
- catch (exc)
- {
- // Sometimes we get exceptions trying to access certain members
- if (FBTrace.DBG_ERRORS && FBTrace.DBG_DOM)
- FBTrace.sysout("dom.getMembers cannot access "+name, exc);
- }
-
- var ordinal = parseInt(name);
- if (ordinal || ordinal == 0)
- {
- addMember("ordinal", ordinals, name, val, level);
- }
- else if (isFunction(val))
- {
- if (isClassFunction(val) && !(name in domMembers))
- addMember("userClass", userClasses, name, val, level);
- else if (name in domMembers)
- addMember("domFunction", domFuncs, name, val, level, domMembers[name]);
- else
- addMember("userFunction", userFuncs, name, val, level);
- }
- else
- {
- //TODO: xxxpedro
- /*
- var getterFunction = insecureObject.__lookupGetter__(name),
- setterFunction = insecureObject.__lookupSetter__(name),
- prefix = "";
-
- if(getterFunction && !setterFunction)
- prefix = "get ";
- /**/
-
- var prefix = "";
-
- if (name in domMembers && !(name in domConstantMap))
- addMember("dom", domProps, (prefix+name), val, level, domMembers[name]);
- else if (name in domConstantMap)
- addMember("dom", domConstants, (prefix+name), val, level);
- else
- addMember("user", userProps, (prefix+name), val, level);
- }
- }
- }
- catch (exc)
- {
- // Sometimes we get exceptions just from trying to iterate the members
- // of certain objects, like StorageList, but don't let that gum up the works
- throw exc;
- if (FBTrace.DBG_ERRORS && FBTrace.DBG_DOM)
- FBTrace.sysout("dom.getMembers FAILS: ", exc);
- //throw exc;
- }
-
- function sortName(a, b) { return a.name > b.name ? 1 : -1; }
- function sortOrder(a, b) { return a.order > b.order ? 1 : -1; }
-
- var members = [];
-
- members.push.apply(members, ordinals);
-
- Firebug.showUserProps = true; // TODO: xxxpedro
- Firebug.showUserFuncs = true; // TODO: xxxpedro
- Firebug.showDOMProps = true;
- Firebug.showDOMFuncs = true;
- Firebug.showDOMConstants = true;
-
- if (Firebug.showUserProps)
- {
- userProps.sort(sortName);
- members.push.apply(members, userProps);
- }
-
- if (Firebug.showUserFuncs)
- {
- userClasses.sort(sortName);
- members.push.apply(members, userClasses);
-
- userFuncs.sort(sortName);
- members.push.apply(members, userFuncs);
- }
-
- if (Firebug.showDOMProps)
- {
- domProps.sort(sortName);
- members.push.apply(members, domProps);
- }
-
- if (Firebug.showDOMFuncs)
- {
- domFuncs.sort(sortName);
- members.push.apply(members, domFuncs);
- }
-
- if (Firebug.showDOMConstants)
- members.push.apply(members, domConstants);
-
- return members;
-};
-
-function expandMembers(members, toggles, offset, level) // recursion starts with offset=0, level=0
-{
- var expanded = 0;
- for (var i = offset; i < members.length; ++i)
- {
- var member = members[i];
- if (member.level > level)
- break;
-
- if ( toggles.hasOwnProperty(member.name) )
- {
- member.open = "opened"; // member.level <= level && member.name in toggles.
-
- var newMembers = getMembers(member.value, level+1); // sets newMembers.level to level+1
-
- var args = [i+1, 0];
- args.push.apply(args, newMembers);
- members.splice.apply(members, args);
-
- /*
- if (FBTrace.DBG_DOM)
- {
- FBTrace.sysout("expandMembers member.name", member.name);
- FBTrace.sysout("expandMembers toggles", toggles);
- FBTrace.sysout("expandMembers toggles[member.name]", toggles[member.name]);
- FBTrace.sysout("dom.expandedMembers level: "+level+" member", member);
- }
- /**/
-
- expanded += newMembers.length;
- i += newMembers.length + expandMembers(members, toggles[member.name], i+1, level+1);
- }
- }
-
- return expanded;
-}
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-
-function isClassFunction(fn)
-{
- try
- {
- for (var name in fn.prototype)
- return true;
- } catch (exc) {}
- return false;
-}
-
-// FIXME: xxxpedro This function is already defined in Lib. If we keep this definition here, it
-// will crash IE9 when not running the IE Developer Tool with JavaScript Debugging enabled!!!
-// Check if this function is in fact defined in Firebug for Firefox. If so, we should remove
-// this from here. The only difference of this function is the IE hack to show up the prototype
-// of functions, but Firebug no longer shows the prototype for simple functions.
-//var hasProperties = function hasProperties(ob)
-//{
-// try
-// {
-// for (var name in ob)
-// return true;
-// } catch (exc) {}
-//
-// // IE function prototype is not listed in (for..in)
-// if (isFunction(ob)) return true;
-//
-// return false;
-//};
-
-FBL.ErrorCopy = function(message)
-{
- this.message = message;
-};
-
-var addMember = function addMember(type, props, name, value, level, order)
-{
- var rep = Firebug.getRep(value); // do this first in case a call to instanceof reveals contents
- var tag = rep.shortTag ? rep.shortTag : rep.tag;
-
- var ErrorCopy = function(){}; //TODO: xxxpedro
-
- var valueType = typeof(value);
- var hasChildren = hasProperties(value) && !(value instanceof ErrorCopy) &&
- (isFunction(value) || (valueType == "object" && value != null)
- || (valueType == "string" && value.length > Firebug.stringCropLength));
-
- props.push({
- name: name,
- value: value,
- type: type,
- rowClass: "memberRow-"+type,
- open: "",
- order: order,
- level: level,
- indent: level*16,
- hasChildren: hasChildren,
- tag: tag
- });
-};
-
-var getWatchRowIndex = function getWatchRowIndex(row)
-{
- var index = -1;
- for (; row && hasClass(row, "watchRow"); row = row.previousSibling)
- ++index;
- return index;
-};
-
-var getRowName = function getRowName(row)
-{
- var node = row.firstChild;
- return node.textContent ? node.textContent : node.innerText;
-};
-
-var getRowValue = function getRowValue(row)
-{
- return row.lastChild.firstChild.repObject;
-};
-
-var getRowOwnerObject = function getRowOwnerObject(row)
-{
- var parentRow = getParentRow(row);
- if (parentRow)
- return getRowValue(parentRow);
-};
-
-var getParentRow = function getParentRow(row)
-{
- var level = parseInt(row.getAttribute("level"))-1;
- for (row = row.previousSibling; row; row = row.previousSibling)
- {
- if (parseInt(row.getAttribute("level")) == level)
- return row;
- }
-};
-
-var getPath = function getPath(row)
-{
- var name = getRowName(row);
- var path = [name];
-
- var level = parseInt(row.getAttribute("level"))-1;
- for (row = row.previousSibling; row; row = row.previousSibling)
- {
- if (parseInt(row.getAttribute("level")) == level)
- {
- var name = getRowName(row);
- path.splice(0, 0, name);
-
- --level;
- }
- }
-
- return path;
-};
-
-// ************************************************************************************************
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
-
-// ************************************************************************************************
-// DOM Module
-
-Firebug.DOM = extend(Firebug.Module,
-{
- getPanel: function()
- {
- return Firebug.chrome ? Firebug.chrome.getPanel("DOM") : null;
- }
-});
-
-Firebug.registerModule(Firebug.DOM);
-
-
-// ************************************************************************************************
-// DOM Panel
-
-var lastHighlightedObject;
-
-function DOMSidePanel(){};
-
-DOMSidePanel.prototype = extend(Firebug.DOMBasePanel.prototype,
-{
- selectRow: function(row, target)
- {
- if (!target)
- target = row.lastChild.firstChild;
-
- if (!target || !target.repObject)
- return;
-
- this.pathToAppend = getPath(row);
-
- // If the object is inside an array, look up its index
- var valueBox = row.lastChild.firstChild;
- if (hasClass(valueBox, "objectBox-array"))
- {
- var arrayIndex = FirebugReps.Arr.getItemIndex(target);
- this.pathToAppend.push(arrayIndex);
- }
-
- // Make sure we get a fresh status path for the object, since otherwise
- // it might find the object in the existing path and not refresh it
- //Firebug.chrome.clearStatusPath();
-
- var object = target.repObject;
-
- if (instanceOf(object, "Element"))
- {
- Firebug.HTML.selectTreeNode(ElementCache(object));
- }
- else
- {
- Firebug.chrome.selectPanel("DOM");
- Firebug.chrome.getPanel("DOM").select(object, true);
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- onClick: function(event)
- {
- /*
- var target = event.srcElement || event.target;
-
- var object = getAncestorByClass(target, "objectLink");
- object = object ? object.repObject : null;
-
- if(!object) return;
-
- if (instanceOf(object, "Element"))
- {
- Firebug.HTML.selectTreeNode(ElementCache(object));
- }
- else
- {
- Firebug.chrome.selectPanel("DOM");
- Firebug.chrome.getPanel("DOM").select(object, true);
- }
- /**/
-
-
- var target = event.srcElement || event.target;
- var repNode = Firebug.getRepNode(target);
- if (repNode)
- {
- var row = getAncestorByClass(target, "memberRow");
- if (row)
- {
- this.selectRow(row, repNode);
- cancelEvent(event);
- }
- }
- /**/
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // extends Panel
-
- name: "DOMSidePanel",
- parentPanel: "HTML",
- title: "DOM",
-
- options: {
- hasToolButtons: true
- },
-
- isInitialized: false,
-
- create: function()
- {
- Firebug.DOMBasePanel.prototype.create.apply(this, arguments);
-
- this.onClick = bind(this.onClick, this);
- },
-
- initialize: function(){
- Firebug.DOMBasePanel.prototype.initialize.apply(this, arguments);
-
- addEvent(this.panelNode, "click", this.onClick);
-
- // TODO: xxxpedro css2
- var selection = ElementCache.get(Firebug.context.persistedState.selectedHTMLElementId);
- if (selection)
- this.select(selection, true);
- },
-
- shutdown: function()
- {
- removeEvent(this.panelNode, "click", this.onClick);
-
- Firebug.DOMBasePanel.prototype.shutdown.apply(this, arguments);
- },
-
- reattach: function(oldChrome)
- {
- //this.isInitialized = oldChrome.getPanel("DOM").isInitialized;
- this.toggles = oldChrome.getPanel("DOMSidePanel").toggles;
- }
-
-});
-
-Firebug.registerPanel(DOMSidePanel);
-
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.FBTrace = {};
-
-(function() {
-// ************************************************************************************************
-
-var traceOptions = {
- DBG_TIMESTAMP: 1,
- DBG_INITIALIZE: 1,
- DBG_CHROME: 1,
- DBG_ERRORS: 1,
- DBG_DISPATCH: 1,
- DBG_CSS: 1
-};
-
-this.module = null;
-
-this.initialize = function()
-{
- if (!this.messageQueue)
- this.messageQueue = [];
-
- for (var name in traceOptions)
- this[name] = traceOptions[name];
-};
-
-// ************************************************************************************************
-// FBTrace API
-
-this.sysout = function()
-{
- return this.logFormatted(arguments, "");
-};
-
-this.dumpProperties = function(title, object)
-{
- return this.logFormatted("dumpProperties() not supported.", "warning");
-};
-
-this.dumpStack = function()
-{
- return this.logFormatted("dumpStack() not supported.", "warning");
-};
-
-this.flush = function(module)
-{
- this.module = module;
-
- var queue = this.messageQueue;
- this.messageQueue = [];
-
- for (var i = 0; i < queue.length; ++i)
- this.writeMessage(queue[i][0], queue[i][1], queue[i][2]);
-};
-
-this.getPanel = function()
-{
- return this.module ? this.module.getPanel() : null;
-};
-
-//*************************************************************************************************
-
-this.logFormatted = function(objects, className)
-{
- var html = this.DBG_TIMESTAMP ? [getTimestamp(), " | "] : [];
- var length = objects.length;
-
- for (var i = 0; i < length; ++i)
- {
- appendText(" ", html);
-
- var object = objects[i];
-
- if (i == 0)
- {
- html.push("<b>");
- appendText(object, html);
- html.push("</b>");
- }
- else
- appendText(object, html);
- }
-
- return this.logRow(html, className);
-};
-
-this.logRow = function(message, className)
-{
- var panel = this.getPanel();
-
- if (panel && panel.panelNode)
- this.writeMessage(message, className);
- else
- {
- this.messageQueue.push([message, className]);
- }
-
- return this.LOG_COMMAND;
-};
-
-this.writeMessage = function(message, className)
-{
- var container = this.getPanel().containerNode;
- var isScrolledToBottom =
- container.scrollTop + container.offsetHeight >= container.scrollHeight;
-
- this.writeRow.call(this, message, className);
-
- if (isScrolledToBottom)
- container.scrollTop = container.scrollHeight - container.offsetHeight;
-};
-
-this.appendRow = function(row)
-{
- var container = this.getPanel().panelNode;
- container.appendChild(row);
-};
-
-this.writeRow = function(message, className)
-{
- var row = this.getPanel().panelNode.ownerDocument.createElement("div");
- row.className = "logRow" + (className ? " logRow-"+className : "");
- row.innerHTML = message.join("");
- this.appendRow(row);
-};
-
-//*************************************************************************************************
-
-function appendText(object, html)
-{
- html.push(escapeHTML(objectToString(object)));
-};
-
-function getTimestamp()
-{
- var now = new Date();
- var ms = "" + (now.getMilliseconds() / 1000).toFixed(3);
- ms = ms.substr(2);
-
- return now.toLocaleTimeString() + "." + ms;
-};
-
-//*************************************************************************************************
-
-var HTMLtoEntity =
-{
- "<": "&lt;",
- ">": "&gt;",
- "&": "&amp;",
- "'": "&#39;",
- '"': "&quot;"
-};
-
-function replaceChars(ch)
-{
- return HTMLtoEntity[ch];
-};
-
-function escapeHTML(value)
-{
- return (value+"").replace(/[<>&"']/g, replaceChars);
-};
-
-//*************************************************************************************************
-
-function objectToString(object)
-{
- try
- {
- return object+"";
- }
- catch (exc)
- {
- return null;
- }
-};
-
-// ************************************************************************************************
-}).apply(FBL.FBTrace);
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// If application isn't in trace mode, the FBTrace panel won't be loaded
-if (!Env.Options.enableTrace) return;
-
-// ************************************************************************************************
-// FBTrace Module
-
-Firebug.Trace = extend(Firebug.Module,
-{
- getPanel: function()
- {
- return Firebug.chrome ? Firebug.chrome.getPanel("Trace") : null;
- },
-
- clear: function()
- {
- this.getPanel().panelNode.innerHTML = "";
- }
-});
-
-Firebug.registerModule(Firebug.Trace);
-
-
-// ************************************************************************************************
-// FBTrace Panel
-
-function TracePanel(){};
-
-TracePanel.prototype = extend(Firebug.Panel,
-{
- name: "Trace",
- title: "Trace",
-
- options: {
- hasToolButtons: true,
- innerHTMLSync: true
- },
-
- create: function(){
- Firebug.Panel.create.apply(this, arguments);
-
- this.clearButton = new Button({
- caption: "Clear",
- title: "Clear FBTrace logs",
- owner: Firebug.Trace,
- onClick: Firebug.Trace.clear
- });
- },
-
- initialize: function(){
- Firebug.Panel.initialize.apply(this, arguments);
-
- this.clearButton.initialize();
- },
-
- shutdown: function()
- {
- this.clearButton.shutdown();
-
- Firebug.Panel.shutdown.apply(this, arguments);
- }
-
-});
-
-Firebug.registerPanel(TracePanel);
-
-// ************************************************************************************************
-}});
-
-/* See license.txt for terms of usage */
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-// ************************************************************************************************
-// Globals
-
-var modules = [];
-var panelTypes = [];
-var panelTypeMap = {};
-
-var parentPanelMap = {};
-
-
-var registerModule = Firebug.registerModule;
-var registerPanel = Firebug.registerPanel;
-
-// ************************************************************************************************
-append(Firebug,
-{
- extend: function(fn)
- {
- if (Firebug.chrome && Firebug.chrome.addPanel)
- {
- var namespace = ns(fn);
- fn.call(namespace, FBL);
- }
- else
- {
- setTimeout(function(){Firebug.extend(fn);},100);
- }
- },
-
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- // Registration
-
- registerModule: function()
- {
- registerModule.apply(Firebug, arguments);
-
- modules.push.apply(modules, arguments);
-
- dispatch(modules, "initialize", []);
-
- if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("Firebug.registerModule");
- },
-
- registerPanel: function()
- {
- registerPanel.apply(Firebug, arguments);
-
- panelTypes.push.apply(panelTypes, arguments);
-
- for (var i = 0, panelType; panelType = arguments[i]; ++i)
- {
- // TODO: xxxpedro investigate why Dev Panel throws an error
- if (panelType.prototype.name == "Dev") continue;
-
- panelTypeMap[panelType.prototype.name] = arguments[i];
-
- var parentPanelName = panelType.prototype.parentPanel;
- if (parentPanelName)
- {
- parentPanelMap[parentPanelName] = 1;
- }
- else
- {
- var panelName = panelType.prototype.name;
- var chrome = Firebug.chrome;
- chrome.addPanel(panelName);
-
- // tab click handler
- var onTabClick = function onTabClick()
- {
- chrome.selectPanel(panelName);
- return false;
- };
-
- chrome.addController([chrome.panelMap[panelName].tabNode, "mousedown", onTabClick]);
- }
- }
-
- if (FBTrace.DBG_INITIALIZE)
- for (var i = 0; i < arguments.length; ++i)
- FBTrace.sysout("Firebug.registerPanel", arguments[i].prototype.name);
- }
-
-});
-
-
-
-
-// ************************************************************************************************
-}});
-
-FBL.ns(function() { with (FBL) {
-// ************************************************************************************************
-
-FirebugChrome.Skin =
-{
- CSS: '.obscured{left:-999999px !important;}.collapsed{display:none;}[collapsed="true"]{display:none;}#fbCSS{padding:0 !important;}.cssPropDisable{float:left;display:block;width:2em;cursor:default;}.infoTip{z-index:2147483647;position:fixed;padding:2px 3px;border:1px solid #CBE087;background:LightYellow;font-family:Monaco,monospace;color:#000000;display:none;white-space:nowrap;pointer-events:none;}.infoTip[active="true"]{display:block;}.infoTipLoading{width:16px;height:16px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/loading_16.gif) no-repeat;}.infoTipImageBox{font-size:11px;min-width:100px;text-align:center;}.infoTipCaption{font-size:11px;font:Monaco,monospace;}.infoTipLoading > .infoTipImage,.infoTipLoading > .infoTipCaption{display:none;}h1.groupHeader{padding:2px 4px;margin:0 0 4px 0;border-top:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC;background:#eee url(https://getfirebug.com/releases/lite/latest/skin/xp/group.gif) repeat-x;font-size:11px;font-weight:bold;_position:relative;}.inlineEditor,.fixedWidthEditor{z-index:2147483647;position:absolute;display:none;}.inlineEditor{margin-left:-6px;margin-top:-3px;}.textEditorInner,.fixedWidthEditor{margin:0 0 0 0 !important;padding:0;border:none !important;font:inherit;text-decoration:inherit;background-color:#FFFFFF;}.fixedWidthEditor{border-top:1px solid #888888 !important;border-bottom:1px solid #888888 !important;}.textEditorInner{position:relative;top:-7px;left:-5px;outline:none;resize:none;}.textEditorInner1{padding-left:11px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorBorders.png) repeat-y;_background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorBorders.gif) repeat-y;_overflow:hidden;}.textEditorInner2{position:relative;padding-right:2px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorBorders.png) repeat-y 100% 0;_background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorBorders.gif) repeat-y 100% 0;_position:fixed;}.textEditorTop1{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorCorners.png) no-repeat 100% 0;margin-left:11px;height:10px;_background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorCorners.gif) no-repeat 100% 0;_overflow:hidden;}.textEditorTop2{position:relative;left:-11px;width:11px;height:10px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorCorners.png) no-repeat;_background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorCorners.gif) no-repeat;}.textEditorBottom1{position:relative;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorCorners.png) no-repeat 100% 100%;margin-left:11px;height:12px;_background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorCorners.gif) no-repeat 100% 100%;}.textEditorBottom2{position:relative;left:-11px;width:11px;height:12px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorCorners.png) no-repeat 0 100%;_background:url(https://getfirebug.com/releases/lite/latest/skin/xp/textEditorCorners.gif) no-repeat 0 100%;}.panelNode-css{overflow-x:hidden;}.cssSheet > .insertBefore{height:1.5em;}.cssRule{position:relative;margin:0;padding:1em 0 0 6px;font-family:Monaco,monospace;color:#000000;}.cssRule:first-child{padding-top:6px;}.cssElementRuleContainer{position:relative;}.cssHead{padding-right:150px;}.cssProp{}.cssPropName{color:DarkGreen;}.cssPropValue{margin-left:8px;color:DarkBlue;}.cssOverridden span{text-decoration:line-through;}.cssInheritedRule{}.cssInheritLabel{margin-right:0.5em;font-weight:bold;}.cssRule .objectLink-sourceLink{top:0;}.cssProp.editGroup:hover{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/disable.png) no-repeat 2px 1px;_background:url(https://getfirebug.com/releases/lite/latest/skin/xp/disable.gif) no-repeat 2px 1px;}.cssProp.editGroup.editing{background:none;}.cssProp.disabledStyle{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/disableHover.png) no-repeat 2px 1px;_background:url(https://getfirebug.com/releases/lite/latest/skin/xp/disableHover.gif) no-repeat 2px 1px;opacity:1;color:#CCCCCC;}.disabledStyle .cssPropName,.disabledStyle .cssPropValue{color:#CCCCCC;}.cssPropValue.editing + .cssSemi,.inlineExpander + .cssSemi{display:none;}.cssPropValue.editing{white-space:nowrap;}.stylePropName{font-weight:bold;padding:0 4px 4px 4px;width:50%;}.stylePropValue{width:50%;}.panelNode-net{overflow-x:hidden;}.netTable{width:100%;}.hideCategory-undefined .category-undefined,.hideCategory-html .category-html,.hideCategory-css .category-css,.hideCategory-js .category-js,.hideCategory-image .category-image,.hideCategory-xhr .category-xhr,.hideCategory-flash .category-flash,.hideCategory-txt .category-txt,.hideCategory-bin .category-bin{display:none;}.netHeadRow{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/group.gif) repeat-x #FFFFFF;}.netHeadCol{border-bottom:1px solid #CCCCCC;padding:2px 4px 2px 18px;font-weight:bold;}.netHeadLabel{white-space:nowrap;overflow:hidden;}.netHeaderRow{height:16px;}.netHeaderCell{cursor:pointer;-moz-user-select:none;border-bottom:1px solid #9C9C9C;padding:0 !important;font-weight:bold;background:#BBBBBB url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/tableHeader.gif) repeat-x;white-space:nowrap;}.netHeaderRow > .netHeaderCell:first-child > .netHeaderCellBox{padding:2px 14px 2px 18px;}.netHeaderCellBox{padding:2px 14px 2px 10px;border-left:1px solid #D9D9D9;border-right:1px solid #9C9C9C;}.netHeaderCell:hover:active{background:#959595 url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/tableHeaderActive.gif) repeat-x;}.netHeaderSorted{background:#7D93B2 url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/tableHeaderSorted.gif) repeat-x;}.netHeaderSorted > .netHeaderCellBox{border-right-color:#6B7C93;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/arrowDown.png) no-repeat right;}.netHeaderSorted.sortedAscending > .netHeaderCellBox{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/arrowUp.png);}.netHeaderSorted:hover:active{background:#536B90 url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/tableHeaderSortedActive.gif) repeat-x;}.panelNode-net .netRowHeader{display:block;}.netRowHeader{cursor:pointer;display:none;height:15px;margin-right:0 !important;}.netRow .netRowHeader{background-position:5px 1px;}.netRow[breakpoint="true"] .netRowHeader{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/breakpoint.png);}.netRow[breakpoint="true"][disabledBreakpoint="true"] .netRowHeader{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/breakpointDisabled.png);}.netRow.category-xhr:hover .netRowHeader{background-color:#F6F6F6;}#netBreakpointBar{max-width:38px;}#netHrefCol > .netHeaderCellBox{border-left:0px;}.netRow .netRowHeader{width:3px;}.netInfoRow .netRowHeader{display:table-cell;}.netTable[hiddenCols~=netHrefCol] TD[id="netHrefCol"],.netTable[hiddenCols~=netHrefCol] TD.netHrefCol,.netTable[hiddenCols~=netStatusCol] TD[id="netStatusCol"],.netTable[hiddenCols~=netStatusCol] TD.netStatusCol,.netTable[hiddenCols~=netDomainCol] TD[id="netDomainCol"],.netTable[hiddenCols~=netDomainCol] TD.netDomainCol,.netTable[hiddenCols~=netSizeCol] TD[id="netSizeCol"],.netTable[hiddenCols~=netSizeCol] TD.netSizeCol,.netTable[hiddenCols~=netTimeCol] TD[id="netTimeCol"],.netTable[hiddenCols~=netTimeCol] TD.netTimeCol{display:none;}.netRow{background:LightYellow;}.netRow.loaded{background:#FFFFFF;}.netRow.loaded:hover{background:#EFEFEF;}.netCol{padding:0;vertical-align:top;border-bottom:1px solid #EFEFEF;white-space:nowrap;height:17px;}.netLabel{width:100%;}.netStatusCol{padding-left:10px;color:rgb(128,128,128);}.responseError > .netStatusCol{color:red;}.netDomainCol{padding-left:5px;}.netSizeCol{text-align:right;padding-right:10px;}.netHrefLabel{-moz-box-sizing:padding-box;overflow:hidden;z-index:10;position:absolute;padding-left:18px;padding-top:1px;max-width:15%;font-weight:bold;}.netFullHrefLabel{display:none;-moz-user-select:none;padding-right:10px;padding-bottom:3px;max-width:100%;background:#FFFFFF;z-index:200;}.netHrefCol:hover > .netFullHrefLabel{display:block;}.netRow.loaded:hover .netCol > .netFullHrefLabel{background-color:#EFEFEF;}.useA11y .a11yShowFullLabel{display:block;background-image:none !important;border:1px solid #CBE087;background-color:LightYellow;font-family:Monaco,monospace;color:#000000;font-size:10px;z-index:2147483647;}.netSizeLabel{padding-left:6px;}.netStatusLabel,.netDomainLabel,.netSizeLabel,.netBar{padding:1px 0 2px 0 !important;}.responseError{color:red;}.hasHeaders .netHrefLabel:hover{cursor:pointer;color:blue;text-decoration:underline;}.netLoadingIcon{position:absolute;border:0;margin-left:14px;width:16px;height:16px;background:transparent no-repeat 0 0;background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/loading_16.gif);display:inline-block;}.loaded .netLoadingIcon{display:none;}.netBar,.netSummaryBar{position:relative;border-right:50px solid transparent;}.netResolvingBar{position:absolute;left:0;top:0;bottom:0;background:#FFFFFF url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/netBarResolving.gif) repeat-x;z-index:60;}.netConnectingBar{position:absolute;left:0;top:0;bottom:0;background:#FFFFFF url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/netBarConnecting.gif) repeat-x;z-index:50;}.netBlockingBar{position:absolute;left:0;top:0;bottom:0;background:#FFFFFF url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/netBarWaiting.gif) repeat-x;z-index:40;}.netSendingBar{position:absolute;left:0;top:0;bottom:0;background:#FFFFFF url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/netBarSending.gif) repeat-x;z-index:30;}.netWaitingBar{position:absolute;left:0;top:0;bottom:0;background:#FFFFFF url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/netBarResponded.gif) repeat-x;z-index:20;min-width:1px;}.netReceivingBar{position:absolute;left:0;top:0;bottom:0;background:#38D63B url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/netBarLoading.gif) repeat-x;z-index:10;}.netWindowLoadBar,.netContentLoadBar{position:absolute;left:0;top:0;bottom:0;width:1px;background-color:red;z-index:70;opacity:0.5;display:none;margin-bottom:-1px;}.netContentLoadBar{background-color:Blue;}.netTimeLabel{-moz-box-sizing:padding-box;position:absolute;top:1px;left:100%;padding-left:6px;color:#444444;min-width:16px;}.loaded .netReceivingBar,.loaded.netReceivingBar{background:#B6B6B6 url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/netBarLoaded.gif) repeat-x;border-color:#B6B6B6;}.fromCache .netReceivingBar,.fromCache.netReceivingBar{background:#D6D6D6 url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/netBarCached.gif) repeat-x;border-color:#D6D6D6;}.netSummaryRow .netTimeLabel,.loaded .netTimeLabel{background:transparent;}.timeInfoTip{width:150px; height:40px}.timeInfoTipBar,.timeInfoTipEventBar{position:relative;display:block;margin:0;opacity:1;height:15px;width:4px;}.timeInfoTipEventBar{width:1px !important;}.timeInfoTipCell.startTime{padding-right:8px;}.timeInfoTipCell.elapsedTime{text-align:right;padding-right:8px;}.sizeInfoLabelCol{font-weight:bold;padding-right:10px;font-family:Lucida Grande,Tahoma,sans-serif;font-size:11px;}.sizeInfoSizeCol{font-weight:bold;}.sizeInfoDetailCol{color:gray;text-align:right;}.sizeInfoDescCol{font-style:italic;}.netSummaryRow .netReceivingBar{background:#BBBBBB;border:none;}.netSummaryLabel{color:#222222;}.netSummaryRow{background:#BBBBBB !important;font-weight:bold;}.netSummaryRow .netBar{border-right-color:#BBBBBB;}.netSummaryRow > .netCol{border-top:1px solid #999999;border-bottom:2px solid;-moz-border-bottom-colors:#EFEFEF #999999;padding-top:1px;padding-bottom:2px;}.netSummaryRow > .netHrefCol:hover{background:transparent !important;}.netCountLabel{padding-left:18px;}.netTotalSizeCol{text-align:right;padding-right:10px;}.netTotalTimeCol{text-align:right;}.netCacheSizeLabel{position:absolute;z-index:1000;left:0;top:0;}.netLimitRow{background:rgb(255,255,225) !important;font-weight:normal;color:black;font-weight:normal;}.netLimitLabel{padding-left:18px;}.netLimitRow > .netCol{border-bottom:2px solid;-moz-border-bottom-colors:#EFEFEF #999999;vertical-align:middle !important;padding-top:2px;padding-bottom:2px;}.netLimitButton{font-size:11px;padding-top:1px;padding-bottom:1px;}.netInfoCol{border-top:1px solid #EEEEEE;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/group.gif) repeat-x #FFFFFF;}.netInfoBody{margin:10px 0 4px 10px;}.netInfoTabs{position:relative;padding-left:17px;}.netInfoTab{position:relative;top:-3px;margin-top:10px;padding:4px 6px;border:1px solid transparent;border-bottom:none;_border:none;font-weight:bold;color:#565656;cursor:pointer;}.netInfoTabSelected{cursor:default !important;border:1px solid #D7D7D7 !important;border-bottom:none !important;-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;background-color:#FFFFFF;}.logRow-netInfo.error .netInfoTitle{color:red;}.logRow-netInfo.loading .netInfoResponseText{font-style:italic;color:#888888;}.loading .netInfoResponseHeadersTitle{display:none;}.netInfoResponseSizeLimit{font-family:Lucida Grande,Tahoma,sans-serif;padding-top:10px;font-size:11px;}.netInfoText{display:none;margin:0;border:1px solid #D7D7D7;border-right:none;padding:8px;background-color:#FFFFFF;font-family:Monaco,monospace;white-space:pre-wrap;}.netInfoTextSelected{display:block;}.netInfoParamName{padding-right:10px;font-family:Lucida Grande,Tahoma,sans-serif;font-weight:bold;vertical-align:top;text-align:right;white-space:nowrap;}.netInfoPostText .netInfoParamName{width:1px;}.netInfoParamValue{width:100%;}.netInfoHeadersText,.netInfoPostText,.netInfoPutText{padding-top:0;}.netInfoHeadersGroup,.netInfoPostParams,.netInfoPostSource{margin-bottom:4px;border-bottom:1px solid #D7D7D7;padding-top:8px;padding-bottom:2px;font-family:Lucida Grande,Tahoma,sans-serif;font-weight:bold;color:#565656;}.netInfoPostParamsTable,.netInfoPostPartsTable,.netInfoPostJSONTable,.netInfoPostXMLTable,.netInfoPostSourceTable{margin-bottom:10px;width:100%;}.netInfoPostContentType{color:#bdbdbd;padding-left:50px;font-weight:normal;}.netInfoHtmlPreview{border:0;width:100%;height:100%;}.netHeadersViewSource{color:#bdbdbd;margin-left:200px;font-weight:normal;}.netHeadersViewSource:hover{color:blue;cursor:pointer;}.netActivationRow,.netPageSeparatorRow{background:rgb(229,229,229) !important;font-weight:normal;color:black;}.netActivationLabel{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/chrome://firebug/skin/infoIcon.png) no-repeat 3px 2px;padding-left:22px;}.netPageSeparatorRow{height:5px !important;}.netPageSeparatorLabel{padding-left:22px;height:5px !important;}.netPageRow{background-color:rgb(255,255,255);}.netPageRow:hover{background:#EFEFEF;}.netPageLabel{padding:1px 0 2px 18px !important;font-weight:bold;}.netActivationRow > .netCol{border-bottom:2px solid;-moz-border-bottom-colors:#EFEFEF #999999;padding-top:2px;padding-bottom:3px;}.twisty,.logRow-errorMessage > .hasTwisty > .errorTitle,.logRow-log > .objectBox-array.hasTwisty,.logRow-spy .spyHead .spyTitle,.logGroup > .logRow,.memberRow.hasChildren > .memberLabelCell > .memberLabel,.hasHeaders .netHrefLabel,.netPageRow > .netCol > .netPageTitle{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/tree_open.gif);background-repeat:no-repeat;background-position:2px 2px;min-height:12px;}.logRow-errorMessage > .hasTwisty.opened > .errorTitle,.logRow-log > .objectBox-array.hasTwisty.opened,.logRow-spy.opened .spyHead .spyTitle,.logGroup.opened > .logRow,.memberRow.hasChildren.opened > .memberLabelCell > .memberLabel,.nodeBox.highlightOpen > .nodeLabel > .twisty,.nodeBox.open > .nodeLabel > .twisty,.netRow.opened > .netCol > .netHrefLabel,.netPageRow.opened > .netCol > .netPageTitle{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/tree_close.gif);}.twisty{background-position:4px 4px;}* html .logRow-spy .spyHead .spyTitle,* html .logGroup .logGroupLabel,* html .hasChildren .memberLabelCell .memberLabel,* html .hasHeaders .netHrefLabel{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/tree_open.gif);background-repeat:no-repeat;background-position:2px 2px;}* html .opened .spyHead .spyTitle,* html .opened .logGroupLabel,* html .opened .memberLabelCell .memberLabel{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/tree_close.gif);background-repeat:no-repeat;background-position:2px 2px;}.panelNode-console{overflow-x:hidden;}.objectLink{text-decoration:none;}.objectLink:hover{cursor:pointer;text-decoration:underline;}.logRow{position:relative;margin:0;border-bottom:1px solid #D7D7D7;padding:2px 4px 1px 6px;background-color:#FFFFFF;overflow:hidden !important;}.useA11y .logRow:focus{border-bottom:1px solid #000000 !important;outline:none !important;background-color:#FFFFAD !important;}.useA11y .logRow:focus a.objectLink-sourceLink{background-color:#FFFFAD;}.useA11y .a11yFocus:focus,.useA11y .objectBox:focus{outline:2px solid #FF9933;background-color:#FFFFAD;}.useA11y .objectBox-null:focus,.useA11y .objectBox-undefined:focus{background-color:#888888 !important;}.useA11y .logGroup.opened > .logRow{border-bottom:1px solid #ffffff;}.logGroup{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/group.gif) repeat-x #FFFFFF;padding:0 !important;border:none !important;}.logGroupBody{display:none;margin-left:16px;border-left:1px solid #D7D7D7;border-top:1px solid #D7D7D7;background:#FFFFFF;}.logGroup > .logRow{background-color:transparent !important;font-weight:bold;}.logGroup.opened > .logRow{border-bottom:none;}.logGroup.opened > .logGroupBody{display:block;}.logRow-command > .objectBox-text{font-family:Monaco,monospace;color:#0000FF;white-space:pre-wrap;}.logRow-info,.logRow-warn,.logRow-error,.logRow-assert,.logRow-warningMessage,.logRow-errorMessage{padding-left:22px;background-repeat:no-repeat;background-position:4px 2px;}.logRow-assert,.logRow-warningMessage,.logRow-errorMessage{padding-top:0;padding-bottom:0;}.logRow-info,.logRow-info .objectLink-sourceLink{background-color:#FFFFFF;}.logRow-warn,.logRow-warningMessage,.logRow-warn .objectLink-sourceLink,.logRow-warningMessage .objectLink-sourceLink{background-color:cyan;}.logRow-error,.logRow-assert,.logRow-errorMessage,.logRow-error .objectLink-sourceLink,.logRow-errorMessage .objectLink-sourceLink{background-color:LightYellow;}.logRow-error,.logRow-assert,.logRow-errorMessage{color:#FF0000;}.logRow-info{}.logRow-warn,.logRow-warningMessage{}.logRow-error,.logRow-assert,.logRow-errorMessage{}.objectBox-string,.objectBox-text,.objectBox-number,.objectLink-element,.objectLink-textNode,.objectLink-function,.objectBox-stackTrace,.objectLink-profile{font-family:Monaco,monospace;}.objectBox-string,.objectBox-text,.objectLink-textNode{white-space:pre-wrap;}.objectBox-number,.objectLink-styleRule,.objectLink-element,.objectLink-textNode{color:#000088;}.objectBox-string{color:#FF0000;}.objectLink-function,.objectBox-stackTrace,.objectLink-profile{color:DarkGreen;}.objectBox-null,.objectBox-undefined{padding:0 2px;border:1px solid #666666;background-color:#888888;color:#FFFFFF;}.objectBox-exception{padding:0 2px 0 18px;color:red;}.objectLink-sourceLink{position:absolute;right:4px;top:2px;padding-left:8px;font-family:Lucida Grande,sans-serif;font-weight:bold;color:#0000FF;}.errorTitle{margin-top:0px;margin-bottom:1px;padding-top:2px;padding-bottom:2px;}.errorTrace{margin-left:17px;}.errorSourceBox{margin:2px 0;}.errorSource-none{display:none;}.errorSource-syntax > .errorBreak{visibility:hidden;}.errorSource{cursor:pointer;font-family:Monaco,monospace;color:DarkGreen;}.errorSource:hover{text-decoration:underline;}.errorBreak{cursor:pointer;display:none;margin:0 6px 0 0;width:13px;height:14px;vertical-align:bottom;opacity:0.1;}.hasBreakSwitch .errorBreak{display:inline;}.breakForError .errorBreak{opacity:1;}.assertDescription{margin:0;}.logRow-profile > .logRow > .objectBox-text{font-family:Lucida Grande,Tahoma,sans-serif;color:#000000;}.logRow-profile > .logRow > .objectBox-text:last-child{color:#555555;font-style:italic;}.logRow-profile.opened > .logRow{padding-bottom:4px;}.profilerRunning > .logRow{padding-left:22px !important;}.profileSizer{width:100%;overflow-x:auto;overflow-y:scroll;}.profileTable{border-bottom:1px solid #D7D7D7;padding:0 0 4px 0;}.profileTable tr[odd="1"]{background-color:#F5F5F5;vertical-align:middle;}.profileTable a{vertical-align:middle;}.profileTable td{padding:1px 4px 0 4px;}.headerCell{cursor:pointer;-moz-user-select:none;border-bottom:1px solid #9C9C9C;padding:0 !important;font-weight:bold;}.headerCellBox{padding:2px 4px;border-left:1px solid #D9D9D9;border-right:1px solid #9C9C9C;}.headerCell:hover:active{}.headerSorted{}.headerSorted > .headerCellBox{border-right-color:#6B7C93;}.headerSorted.sortedAscending > .headerCellBox{}.headerSorted:hover:active{}.linkCell{text-align:right;}.linkCell > .objectLink-sourceLink{position:static;}.logRow-stackTrace{padding-top:0;background:#f8f8f8;}.logRow-stackTrace > .objectBox-stackFrame{position:relative;padding-top:2px;}.objectLink-object{font-family:Lucida Grande,sans-serif;font-weight:bold;color:DarkGreen;white-space:pre-wrap;}.objectProp-object{color:DarkGreen;}.objectProps{color:#000;font-weight:normal;}.objectPropName{color:#777;}.objectProps .objectProp-string{color:#f55;}.objectProps .objectProp-number{color:#55a;}.objectProps .objectProp-object{color:#585;}.selectorTag,.selectorId,.selectorClass{font-family:Monaco,monospace;font-weight:normal;}.selectorTag{color:#0000FF;}.selectorId{color:DarkBlue;}.selectorClass{color:red;}.selectorHidden > .selectorTag{color:#5F82D9;}.selectorHidden > .selectorId{color:#888888;}.selectorHidden > .selectorClass{color:#D86060;}.selectorValue{font-family:Lucida Grande,sans-serif;font-style:italic;color:#555555;}.panelNode.searching .logRow{display:none;}.logRow.matched{display:block !important;}.logRow.matching{position:absolute;left:-1000px;top:-1000px;max-width:0;max-height:0;overflow:hidden;}.objectLeftBrace,.objectRightBrace,.objectEqual,.objectComma,.arrayLeftBracket,.arrayRightBracket,.arrayComma{font-family:Monaco,monospace;}.objectLeftBrace,.objectRightBrace,.arrayLeftBracket,.arrayRightBracket{font-weight:bold;}.objectLeftBrace,.arrayLeftBracket{margin-right:4px;}.objectRightBrace,.arrayRightBracket{margin-left:4px;}.logRow-dir{padding:0;}.logRow-errorMessage .hasTwisty .errorTitle,.logRow-spy .spyHead .spyTitle,.logGroup .logRow{cursor:pointer;padding-left:18px;background-repeat:no-repeat;background-position:3px 3px;}.logRow-errorMessage > .hasTwisty > .errorTitle{background-position:2px 3px;}.logRow-errorMessage > .hasTwisty > .errorTitle:hover,.logRow-spy .spyHead .spyTitle:hover,.logGroup > .logRow:hover{text-decoration:underline;}.logRow-spy{padding:0 !important;}.logRow-spy,.logRow-spy .objectLink-sourceLink{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/group.gif) repeat-x #FFFFFF;padding-right:4px;right:0;}.logRow-spy.opened{padding-bottom:4px;border-bottom:none;}.spyTitle{color:#000000;font-weight:bold;-moz-box-sizing:padding-box;overflow:hidden;z-index:100;padding-left:18px;}.spyCol{padding:0;white-space:nowrap;height:16px;}.spyTitleCol:hover > .objectLink-sourceLink,.spyTitleCol:hover > .spyTime,.spyTitleCol:hover > .spyStatus,.spyTitleCol:hover > .spyTitle{display:none;}.spyFullTitle{display:none;-moz-user-select:none;max-width:100%;background-color:Transparent;}.spyTitleCol:hover > .spyFullTitle{display:block;}.spyStatus{padding-left:10px;color:rgb(128,128,128);}.spyTime{margin-left:4px;margin-right:4px;color:rgb(128,128,128);}.spyIcon{margin-right:4px;margin-left:4px;width:16px;height:16px;vertical-align:middle;background:transparent no-repeat 0 0;display:none;}.loading .spyHead .spyRow .spyIcon{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/loading_16.gif);display:block;}.logRow-spy.loaded:not(.error) .spyHead .spyRow .spyIcon{width:0;margin:0;}.logRow-spy.error .spyHead .spyRow .spyIcon{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/errorIcon-sm.png);display:block;background-position:2px 2px;}.logRow-spy .spyHead .netInfoBody{display:none;}.logRow-spy.opened .spyHead .netInfoBody{margin-top:10px;display:block;}.logRow-spy.error .spyTitle,.logRow-spy.error .spyStatus,.logRow-spy.error .spyTime{color:red;}.logRow-spy.loading .spyResponseText{font-style:italic;color:#888888;}.caption{font-family:Lucida Grande,Tahoma,sans-serif;font-weight:bold;color:#444444;}.warning{padding:10px;font-family:Lucida Grande,Tahoma,sans-serif;font-weight:bold;color:#888888;}.panelNode-dom{overflow-x:hidden !important;}.domTable{font-size:1em;width:100%;table-layout:fixed;background:#fff;}.domTableIE{width:auto;}.memberLabelCell{padding:2px 0 2px 0;vertical-align:top;}.memberValueCell{padding:1px 0 1px 5px;display:block;overflow:hidden;}.memberLabel{display:block;cursor:default;-moz-user-select:none;overflow:hidden;padding-left:18px;background-color:#FFFFFF;text-decoration:none;}.memberRow.hasChildren .memberLabelCell .memberLabel:hover{cursor:pointer;color:blue;text-decoration:underline;}.userLabel{color:#000000;font-weight:bold;}.userClassLabel{color:#E90000;font-weight:bold;}.userFunctionLabel{color:#025E2A;font-weight:bold;}.domLabel{color:#000000;}.domFunctionLabel{color:#025E2A;}.ordinalLabel{color:SlateBlue;font-weight:bold;}.scopesRow{padding:2px 18px;background-color:LightYellow;border-bottom:5px solid #BEBEBE;color:#666666;}.scopesLabel{background-color:LightYellow;}.watchEditCell{padding:2px 18px;background-color:LightYellow;border-bottom:1px solid #BEBEBE;color:#666666;}.editor-watchNewRow,.editor-memberRow{font-family:Monaco,monospace !important;}.editor-memberRow{padding:1px 0 !important;}.editor-watchRow{padding-bottom:0 !important;}.watchRow > .memberLabelCell{font-family:Monaco,monospace;padding-top:1px;padding-bottom:1px;}.watchRow > .memberLabelCell > .memberLabel{background-color:transparent;}.watchRow > .memberValueCell{padding-top:2px;padding-bottom:2px;}.watchRow > .memberLabelCell,.watchRow > .memberValueCell{background-color:#F5F5F5;border-bottom:1px solid #BEBEBE;}.watchToolbox{z-index:2147483647;position:absolute;right:0;padding:1px 2px;}#fbConsole{overflow-x:hidden !important;}#fbCSS{font:1em Monaco,monospace;padding:0 7px;}#fbstylesheetButtons select,#fbScriptButtons select{font:11px Lucida Grande,Tahoma,sans-serif;margin-top:1px;padding-left:3px;background:#fafafa;border:1px inset #fff;width:220px;outline:none;}.Selector{margin-top:10px}.CSSItem{margin-left:4%}.CSSText{padding-left:20px;}.CSSProperty{color:#005500;}.CSSValue{padding-left:5px; color:#000088;}#fbHTMLStatusBar{display:inline;}.fbToolbarButtons{display:none;}.fbStatusSeparator{display:block;float:left;padding-top:4px;}#fbStatusBarBox{display:none;}#fbToolbarContent{display:block;position:absolute;_position:absolute;top:0;padding-top:4px;height:23px;clip:rect(0,2048px,27px,0);}.fbTabMenuTarget{display:none !important;float:left;width:10px;height:10px;margin-top:6px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuTarget.png);}.fbTabMenuTarget:hover{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuTargetHover.png);}.fbShadow{float:left;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/shadowAlpha.png) no-repeat bottom right !important;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/shadow2.gif) no-repeat bottom right;margin:10px 0 0 10px !important;margin:10px 0 0 5px;}.fbShadowContent{display:block;position:relative;background-color:#fff;border:1px solid #a9a9a9;top:-6px;left:-6px;}.fbMenu{display:none;position:absolute;font-size:11px;line-height:13px;z-index:2147483647;}.fbMenuContent{padding:2px;}.fbMenuSeparator{display:block;position:relative;padding:1px 18px 0;text-decoration:none;color:#000;cursor:default;background:#ACA899;margin:4px 0;}.fbMenuOption{display:block;position:relative;padding:2px 18px;text-decoration:none;color:#000;cursor:default;}.fbMenuOption:hover{color:#fff;background:#316AC5;}.fbMenuGroup{background:transparent url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuPin.png) no-repeat right 0;}.fbMenuGroup:hover{background:#316AC5 url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuPin.png) no-repeat right -17px;}.fbMenuGroupSelected{color:#fff;background:#316AC5 url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuPin.png) no-repeat right -17px;}.fbMenuChecked{background:transparent url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuCheckbox.png) no-repeat 4px 0;}.fbMenuChecked:hover{background:#316AC5 url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuCheckbox.png) no-repeat 4px -17px;}.fbMenuRadioSelected{background:transparent url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuRadio.png) no-repeat 4px 0;}.fbMenuRadioSelected:hover{background:#316AC5 url(https://getfirebug.com/releases/lite/latest/skin/xp/tabMenuRadio.png) no-repeat 4px -17px;}.fbMenuShortcut{padding-right:85px;}.fbMenuShortcutKey{position:absolute;right:0;top:2px;width:77px;}#fbFirebugMenu{top:22px;left:0;}.fbMenuDisabled{color:#ACA899 !important;}#fbFirebugSettingsMenu{left:245px;top:99px;}#fbConsoleMenu{top:42px;left:48px;}.fbIconButton{display:block;}.fbIconButton{display:block;}.fbIconButton{display:block;float:left;height:20px;width:20px;color:#000;margin-right:2px;text-decoration:none;cursor:default;}.fbIconButton:hover{position:relative;top:-1px;left:-1px;margin-right:0;_margin-right:1px;color:#333;border:1px solid #fff;border-bottom:1px solid #bbb;border-right:1px solid #bbb;}.fbIconPressed{position:relative;margin-right:0;_margin-right:1px;top:0 !important;left:0 !important;height:19px;color:#333 !important;border:1px solid #bbb !important;border-bottom:1px solid #cfcfcf !important;border-right:1px solid #ddd !important;}#fbErrorPopup{position:absolute;right:0;bottom:0;height:19px;width:75px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) #f1f2ee 0 0;z-index:999;}#fbErrorPopupContent{position:absolute;right:0;top:1px;height:18px;width:75px;_width:74px;border-left:1px solid #aca899;}#fbErrorIndicator{position:absolute;top:2px;right:5px;}.fbBtnInspectActive{background:#aaa;color:#fff !important;}.fbBody{margin:0;padding:0;overflow:hidden;font-family:Lucida Grande,Tahoma,sans-serif;font-size:11px;background:#fff;}.clear{clear:both;}#fbMiniChrome{display:none;right:0;height:27px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) #f1f2ee 0 0;margin-left:1px;}#fbMiniContent{display:block;position:relative;left:-1px;right:0;top:1px;height:25px;border-left:1px solid #aca899;}#fbToolbarSearch{float:right;border:1px solid #ccc;margin:0 5px 0 0;background:#fff url(https://getfirebug.com/releases/lite/latest/skin/xp/search.png) no-repeat 4px 2px !important;background:#fff url(https://getfirebug.com/releases/lite/latest/skin/xp/search.gif) no-repeat 4px 2px;padding-left:20px;font-size:11px;}#fbToolbarErrors{float:right;margin:1px 4px 0 0;font-size:11px;}#fbLeftToolbarErrors{float:left;margin:7px 0px 0 5px;font-size:11px;}.fbErrors{padding-left:20px;height:14px;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/errorIcon.png) no-repeat !important;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/errorIcon.gif) no-repeat;color:#f00;font-weight:bold;}#fbMiniErrors{display:inline;display:none;float:right;margin:5px 2px 0 5px;}#fbMiniIcon{float:right;margin:3px 4px 0;height:20px;width:20px;float:right;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) 0 -135px;cursor:pointer;}#fbChrome{font-family:Lucida Grande,Tahoma,sans-serif;font-size:11px;position:absolute;_position:static;top:0;left:0;height:100%;width:100%;border-collapse:collapse;border-spacing:0;background:#fff;overflow:hidden;}#fbChrome > tbody > tr > td{padding:0;}#fbTop{height:49px;}#fbToolbar{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) #f1f2ee 0 0;height:27px;font-size:11px;line-height:13px;}#fbPanelBarBox{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) #dbd9c9 0 -27px;height:22px;}#fbContent{height:100%;vertical-align:top;}#fbBottom{height:18px;background:#fff;}#fbToolbarIcon{float:left;padding:0 5px 0;}#fbToolbarIcon a{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) 0 -135px;}#fbToolbarButtons{padding:0 2px 0 5px;}#fbToolbarButtons{padding:0 2px 0 5px;}.fbButton{text-decoration:none;display:block;float:left;color:#000;padding:4px 6px 4px 7px;cursor:default;}.fbButton:hover{color:#333;background:#f5f5ef url(https://getfirebug.com/releases/lite/latest/skin/xp/buttonBg.png);padding:3px 5px 3px 6px;border:1px solid #fff;border-bottom:1px solid #bbb;border-right:1px solid #bbb;}.fbBtnPressed{background:#e3e3db url(https://getfirebug.com/releases/lite/latest/skin/xp/buttonBgHover.png) !important;padding:3px 4px 2px 6px !important;margin:1px 0 0 1px !important;border:1px solid #ACA899 !important;border-color:#ACA899 #ECEBE3 #ECEBE3 #ACA899 !important;}#fbStatusBarBox{top:4px;cursor:default;}.fbToolbarSeparator{overflow:hidden;border:1px solid;border-color:transparent #fff transparent #777;_border-color:#eee #fff #eee #777;height:7px;margin:6px 3px;float:left;}.fbBtnSelected{font-weight:bold;}.fbStatusBar{color:#aca899;}.fbStatusBar a{text-decoration:none;color:black;}.fbStatusBar a:hover{color:blue;cursor:pointer;}#fbWindowButtons{position:absolute;white-space:nowrap;right:0;top:0;height:17px;width:48px;padding:5px;z-index:6;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) #f1f2ee 0 0;}#fbPanelBar1{width:1024px; z-index:8;left:0;white-space:nowrap;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) #dbd9c9 0 -27px;position:absolute;left:4px;}#fbPanelBar2Box{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) #dbd9c9 0 -27px;position:absolute;height:22px;width:300px; z-index:9;right:0;}#fbPanelBar2{position:absolute;width:290px; height:22px;padding-left:4px;}.fbPanel{display:none;}#fbPanelBox1,#fbPanelBox2{max-height:inherit;height:100%;font-size:1em;}#fbPanelBox2{background:#fff;}#fbPanelBox2{width:300px;background:#fff;}#fbPanel2{margin-left:6px;background:#fff;}#fbLargeCommandLine{display:none;position:absolute;z-index:9;top:27px;right:0;width:294px;height:201px;border-width:0;margin:0;padding:2px 0 0 2px;resize:none;outline:none;font-size:11px;overflow:auto;border-top:1px solid #B9B7AF;_right:-1px;_border-left:1px solid #fff;}#fbLargeCommandButtons{display:none;background:#ECE9D8;bottom:0;right:0;width:294px;height:21px;padding-top:1px;position:fixed;border-top:1px solid #ACA899;z-index:9;}#fbSmallCommandLineIcon{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/down.png) no-repeat;position:absolute;right:2px;bottom:3px;z-index:99;}#fbSmallCommandLineIcon:hover{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/downHover.png) no-repeat;}.hide{overflow:hidden !important;position:fixed !important;display:none !important;visibility:hidden !important;}#fbCommand{height:18px;}#fbCommandBox{position:fixed;_position:absolute;width:100%;height:18px;bottom:0;overflow:hidden;z-index:9;background:#fff;border:0;border-top:1px solid #ccc;}#fbCommandIcon{position:absolute;color:#00f;top:2px;left:6px;display:inline;font:11px Monaco,monospace;z-index:10;}#fbCommandLine{position:absolute;width:100%;top:0;left:0;border:0;margin:0;padding:2px 0 2px 32px;font:11px Monaco,monospace;z-index:9;outline:none;}#fbLargeCommandLineIcon{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/up.png) no-repeat;position:absolute;right:1px;bottom:1px;z-index:10;}#fbLargeCommandLineIcon:hover{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/upHover.png) no-repeat;}div.fbFitHeight{overflow:auto;position:relative;}.fbSmallButton{overflow:hidden;width:16px;height:16px;display:block;text-decoration:none;cursor:default;}#fbWindowButtons .fbSmallButton{float:right;}#fbWindow_btClose{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/min.png);}#fbWindow_btClose:hover{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/minHover.png);}#fbWindow_btDetach{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/detach.png);}#fbWindow_btDetach:hover{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/detachHover.png);}#fbWindow_btDeactivate{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/off.png);}#fbWindow_btDeactivate:hover{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/offHover.png);}.fbTab{text-decoration:none;display:none;float:left;width:auto;float:left;cursor:default;font-family:Lucida Grande,Tahoma,sans-serif;font-size:11px;line-height:13px;font-weight:bold;height:22px;color:#565656;}.fbPanelBar span{float:left;}.fbPanelBar .fbTabL,.fbPanelBar .fbTabR{height:22px;width:8px;}.fbPanelBar .fbTabText{padding:4px 1px 0;}a.fbTab:hover{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) 0 -73px;}a.fbTab:hover .fbTabL{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) -16px -96px;}a.fbTab:hover .fbTabR{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) -24px -96px;}.fbSelectedTab{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) #f1f2ee 0 -50px !important;color:#000;}.fbSelectedTab .fbTabL{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) 0 -96px !important;}.fbSelectedTab .fbTabR{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/sprite.png) -8px -96px !important;}#fbHSplitter{position:fixed;_position:absolute;left:0;top:0;width:100%;height:5px;overflow:hidden;cursor:n-resize !important;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/pixel_transparent.gif);z-index:9;}#fbHSplitter.fbOnMovingHSplitter{height:100%;z-index:100;}.fbVSplitter{background:#ece9d8;color:#000;border:1px solid #716f64;border-width:0 1px;border-left-color:#aca899;width:4px;cursor:e-resize;overflow:hidden;right:294px;text-decoration:none;z-index:10;position:absolute;height:100%;top:27px;}div.lineNo{font:1em/1.4545em Monaco,monospace;position:relative;float:left;top:0;left:0;margin:0 5px 0 0;padding:0 5px 0 10px;background:#eee;color:#888;border-right:1px solid #ccc;text-align:right;}.sourceBox{position:absolute;}.sourceCode{font:1em Monaco,monospace;overflow:hidden;white-space:pre;display:inline;}.nodeControl{margin-top:3px;margin-left:-14px;float:left;width:9px;height:9px;overflow:hidden;cursor:default;background:url(https://getfirebug.com/releases/lite/latest/skin/xp/tree_open.gif);_float:none;_display:inline;_position:absolute;}div.nodeMaximized{background:url(https://getfirebug.com/releases/lite/latest/skin/xp/tree_close.gif);}div.objectBox-element{padding:1px 3px;}.objectBox-selector{cursor:default;}.selectedElement{background:highlight;color:#fff !important;}.selectedElement span{color:#fff !important;}* html .selectedElement{position:relative;}@media screen and (-webkit-min-device-pixel-ratio:0){.selectedElement{background:#316AC5;color:#fff !important;}}.logRow *{font-size:1em;}.logRow{position:relative;border-bottom:1px solid #D7D7D7;padding:2px 4px 1px 6px;zbackground-color:#FFFFFF;}.logRow-command{font-family:Monaco,monospace;color:blue;}.objectBox-string,.objectBox-text,.objectBox-number,.objectBox-function,.objectLink-element,.objectLink-textNode,.objectLink-function,.objectBox-stackTrace,.objectLink-profile{font-family:Monaco,monospace;}.objectBox-null{padding:0 2px;border:1px solid #666666;background-color:#888888;color:#FFFFFF;}.objectBox-string{color:red;}.objectBox-number{color:#000088;}.objectBox-function{color:DarkGreen;}.objectBox-object{color:DarkGreen;font-weight:bold;font-family:Lucida Grande,sans-serif;}.objectBox-array{color:#000;}.logRow-info,.logRow-error,.logRow-warn{background:#fff no-repeat 2px 2px;padding-left:20px;padding-bottom:3px;}.logRow-info{background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/infoIcon.png) !important;background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/infoIcon.gif);}.logRow-warn{background-color:cyan;background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/warningIcon.png) !important;background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/warningIcon.gif);}.logRow-error{background-color:LightYellow;background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/errorIcon.png) !important;background-image:url(https://getfirebug.com/releases/lite/latest/skin/xp/errorIcon.gif);color:#f00;}.errorMessage{vertical-align:top;color:#f00;}.objectBox-sourceLink{position:absolute;right:4px;top:2px;padding-left:8px;font-family:Lucida Grande,sans-serif;font-weight:bold;color:#0000FF;}.selectorTag,.selectorId,.selectorClass{font-family:Monaco,monospace;font-weight:normal;}.selectorTag{color:#0000FF;}.selectorId{color:DarkBlue;}.selectorClass{color:red;}.objectBox-element{font-family:Monaco,monospace;color:#000088;}.nodeChildren{padding-left:26px;}.nodeTag{color:blue;cursor:pointer;}.nodeValue{color:#FF0000;font-weight:normal;}.nodeText,.nodeComment{margin:0 2px;vertical-align:top;}.nodeText{color:#333333;font-family:Monaco,monospace;}.nodeComment{color:DarkGreen;}.nodeHidden,.nodeHidden *{color:#888888;}.nodeHidden .nodeTag{color:#5F82D9;}.nodeHidden .nodeValue{color:#D86060;}.selectedElement .nodeHidden,.selectedElement .nodeHidden *{color:SkyBlue !important;}.log-object{}.property{position:relative;clear:both;height:15px;}.propertyNameCell{vertical-align:top;float:left;width:28%;position:absolute;left:0;z-index:0;}.propertyValueCell{float:right;width:68%;background:#fff;position:absolute;padding-left:5px;display:table-cell;right:0;z-index:1;}.propertyName{font-weight:bold;}.FirebugPopup{height:100% !important;}.FirebugPopup #fbWindowButtons{display:none !important;}.FirebugPopup #fbHSplitter{display:none !important;}',
- HTML: '<table id="fbChrome" cellpadding="0" cellspacing="0" border="0"><tbody><tr><td id="fbTop" colspan="2"><div id="fbWindowButtons"><a id="fbWindow_btDeactivate" class="fbSmallButton fbHover" title="Deactivate Firebug for this web page">&nbsp;</a><a id="fbWindow_btDetach" class="fbSmallButton fbHover" title="Open Firebug in popup window">&nbsp;</a><a id="fbWindow_btClose" class="fbSmallButton fbHover" title="Minimize Firebug">&nbsp;</a></div><div id="fbToolbar"><div id="fbToolbarContent"><span id="fbToolbarIcon"><a id="fbFirebugButton" class="fbIconButton" class="fbHover" target="_blank">&nbsp;</a></span><span id="fbToolbarButtons"><span id="fbFixedButtons"><a id="fbChrome_btInspect" class="fbButton fbHover" title="Click an element in the page to inspect">Inspect</a></span><span id="fbConsoleButtons" class="fbToolbarButtons"><a id="fbConsole_btClear" class="fbButton fbHover" title="Clear the console">Clear</a></span></span><span id="fbStatusBarBox"><span class="fbToolbarSeparator"></span></span></div></div><div id="fbPanelBarBox"><div id="fbPanelBar1" class="fbPanelBar"><a id="fbConsoleTab" class="fbTab fbHover"><span class="fbTabL"></span><span class="fbTabText">Console</span><span class="fbTabMenuTarget"></span><span class="fbTabR"></span></a><a id="fbHTMLTab" class="fbTab fbHover"><span class="fbTabL"></span><span class="fbTabText">HTML</span><span class="fbTabR"></span></a><a class="fbTab fbHover"><span class="fbTabL"></span><span class="fbTabText">CSS</span><span class="fbTabR"></span></a><a class="fbTab fbHover"><span class="fbTabL"></span><span class="fbTabText">Script</span><span class="fbTabR"></span></a><a class="fbTab fbHover"><span class="fbTabL"></span><span class="fbTabText">DOM</span><span class="fbTabR"></span></a></div><div id="fbPanelBar2Box" class="hide"><div id="fbPanelBar2" class="fbPanelBar"></div></div></div><div id="fbHSplitter">&nbsp;</div></td></tr><tr id="fbContent"><td id="fbPanelBox1"><div id="fbPanel1" class="fbFitHeight"><div id="fbConsole" class="fbPanel"></div><div id="fbHTML" class="fbPanel"></div></div></td><td id="fbPanelBox2" class="hide"><div id="fbVSplitter" class="fbVSplitter">&nbsp;</div><div id="fbPanel2" class="fbFitHeight"><div id="fbHTML_Style" class="fbPanel"></div><div id="fbHTML_Layout" class="fbPanel"></div><div id="fbHTML_DOM" class="fbPanel"></div></div><textarea id="fbLargeCommandLine" class="fbFitHeight"></textarea><div id="fbLargeCommandButtons"><a id="fbCommand_btRun" class="fbButton fbHover">Run</a><a id="fbCommand_btClear" class="fbButton fbHover">Clear</a><a id="fbSmallCommandLineIcon" class="fbSmallButton fbHover"></a></div></td></tr><tr id="fbBottom" class="hide"><td id="fbCommand" colspan="2"><div id="fbCommandBox"><div id="fbCommandIcon">&gt;&gt;&gt;</div><input id="fbCommandLine" name="fbCommandLine" type="text"/><a id="fbLargeCommandLineIcon" class="fbSmallButton fbHover"></a></div></td></tr></tbody></table><span id="fbMiniChrome"><span id="fbMiniContent"><span id="fbMiniIcon" title="Open Firebug Lite"></span><span id="fbMiniErrors" class="fbErrors"></span></span></span>'
-};
-
-// ************************************************************************************************
-}});
-
-// ************************************************************************************************
-FBL.initialize();
-// ************************************************************************************************
-
-})(); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/json-js/json2.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/json-js/json2.js
deleted file mode 100644
index 58384577..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/json-js/json2.js
+++ /dev/null
@@ -1,519 +0,0 @@
-/*
- json2.js
- 2015-05-03
-
- Public Domain.
-
- NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
-
- See http://www.JSON.org/js.html
-
-
- This code should be minified before deployment.
- See http://javascript.crockford.com/jsmin.html
-
- USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
- NOT CONTROL.
-
-
- This file creates a global JSON object containing two methods: stringify
- and parse. This file is provides the ES5 JSON capability to ES3 systems.
- If a project might run on IE8 or earlier, then this file should be included.
- This file does nothing on ES5 systems.
-
- JSON.stringify(value, replacer, space)
- value any JavaScript value, usually an object or array.
-
- replacer an optional parameter that determines how object
- values are stringified for objects. It can be a
- function or an array of strings.
-
- space an optional parameter that specifies the indentation
- of nested structures. If it is omitted, the text will
- be packed without extra whitespace. If it is a number,
- it will specify the number of spaces to indent at each
- level. If it is a string (such as '\t' or '&nbsp;'),
- it contains the characters used to indent at each level.
-
- This method produces a JSON text from a JavaScript value.
-
- When an object value is found, if the object contains a toJSON
- method, its toJSON method will be called and the result will be
- stringified. A toJSON method does not serialize: it returns the
- value represented by the name/value pair that should be serialized,
- or undefined if nothing should be serialized. The toJSON method
- will be passed the key associated with the value, and this will be
- bound to the value
-
- For example, this would serialize Dates as ISO strings.
-
- Date.prototype.toJSON = function (key) {
- function f(n) {
- // Format integers to have at least two digits.
- return n < 10
- ? '0' + n
- : n;
- }
-
- return this.getUTCFullYear() + '-' +
- f(this.getUTCMonth() + 1) + '-' +
- f(this.getUTCDate()) + 'T' +
- f(this.getUTCHours()) + ':' +
- f(this.getUTCMinutes()) + ':' +
- f(this.getUTCSeconds()) + 'Z';
- };
-
- You can provide an optional replacer method. It will be passed the
- key and value of each member, with this bound to the containing
- object. The value that is returned from your method will be
- serialized. If your method returns undefined, then the member will
- be excluded from the serialization.
-
- If the replacer parameter is an array of strings, then it will be
- used to select the members to be serialized. It filters the results
- such that only members with keys listed in the replacer array are
- stringified.
-
- Values that do not have JSON representations, such as undefined or
- functions, will not be serialized. Such values in objects will be
- dropped; in arrays they will be replaced with null. You can use
- a replacer function to replace those with JSON values.
- JSON.stringify(undefined) returns undefined.
-
- The optional space parameter produces a stringification of the
- value that is filled with line breaks and indentation to make it
- easier to read.
-
- If the space parameter is a non-empty string, then that string will
- be used for indentation. If the space parameter is a number, then
- the indentation will be that many spaces.
-
- Example:
-
- text = JSON.stringify(['e', {pluribus: 'unum'}]);
- // text is '["e",{"pluribus":"unum"}]'
-
-
- text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
- // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
-
- text = JSON.stringify([new Date()], function (key, value) {
- return this[key] instanceof Date
- ? 'Date(' + this[key] + ')'
- : value;
- });
- // text is '["Date(---current time---)"]'
-
-
- JSON.parse(text, reviver)
- This method parses a JSON text to produce an object or array.
- It can throw a SyntaxError exception.
-
- The optional reviver parameter is a function that can filter and
- transform the results. It receives each of the keys and values,
- and its return value is used instead of the original value.
- If it returns what it received, then the structure is not modified.
- If it returns undefined then the member is deleted.
-
- Example:
-
- // Parse the text. Values that look like ISO date strings will
- // be converted to Date objects.
-
- myData = JSON.parse(text, function (key, value) {
- var a;
- if (typeof value === 'string') {
- a =
-/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
- if (a) {
- return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
- +a[5], +a[6]));
- }
- }
- return value;
- });
-
- myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
- var d;
- if (typeof value === 'string' &&
- value.slice(0, 5) === 'Date(' &&
- value.slice(-1) === ')') {
- d = new Date(value.slice(5, -1));
- if (d) {
- return d;
- }
- }
- return value;
- });
-
-
- This is a reference implementation. You are free to copy, modify, or
- redistribute.
-*/
-
-/*jslint
- eval, for, this
-*/
-
-/*property
- JSON, apply, call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
- getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
- lastIndex, length, parse, prototype, push, replace, slice, stringify,
- test, toJSON, toString, valueOf
-*/
-
-
-// Create a JSON object only if one does not already exist. We create the
-// methods in a closure to avoid creating global variables.
-
-if (typeof JSON !== 'object') {
- JSON = {};
-}
-
-(function () {
- 'use strict';
-
- var rx_one = /^[\],:{}\s]*$/,
- rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
- rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
- rx_four = /(?:^|:|,)(?:\s*\[)+/g,
- rx_escapable = /[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
- rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
-
- function f(n) {
- // Format integers to have at least two digits.
- return n < 10
- ? '0' + n
- : n;
- }
-
- function this_value() {
- return this.valueOf();
- }
-
- if (typeof Date.prototype.toJSON !== 'function') {
-
- Date.prototype.toJSON = function () {
-
- return isFinite(this.valueOf())
- ? this.getUTCFullYear() + '-' +
- f(this.getUTCMonth() + 1) + '-' +
- f(this.getUTCDate()) + 'T' +
- f(this.getUTCHours()) + ':' +
- f(this.getUTCMinutes()) + ':' +
- f(this.getUTCSeconds()) + 'Z'
- : null;
- };
-
- Boolean.prototype.toJSON = this_value;
- Number.prototype.toJSON = this_value;
- String.prototype.toJSON = this_value;
- }
-
- var gap,
- indent,
- meta,
- rep;
-
-
- function quote(string) {
-
-// If the string contains no control characters, no quote characters, and no
-// backslash characters, then we can safely slap some quotes around it.
-// Otherwise we must also replace the offending characters with safe escape
-// sequences.
-
- rx_escapable.lastIndex = 0;
- return rx_escapable.test(string)
- ? '"' + string.replace(rx_escapable, function (a) {
- var c = meta[a];
- return typeof c === 'string'
- ? c
- : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
- }) + '"'
- : '"' + string + '"';
- }
-
-
- function str(key, holder) {
-
-// Produce a string from holder[key].
-
- var i, // The loop counter.
- k, // The member key.
- v, // The member value.
- length,
- mind = gap,
- partial,
- value = holder[key];
-
-// If the value has a toJSON method, call it to obtain a replacement value.
-
- if (value && typeof value === 'object' &&
- typeof value.toJSON === 'function') {
- value = value.toJSON(key);
- }
-
-// If we were called with a replacer function, then call the replacer to
-// obtain a replacement value.
-
- if (typeof rep === 'function') {
- value = rep.call(holder, key, value);
- }
-
-// What happens next depends on the value's type.
-
- switch (typeof value) {
- case 'string':
- return quote(value);
-
- case 'number':
-
-// JSON numbers must be finite. Encode non-finite numbers as null.
-
- return isFinite(value)
- ? String(value)
- : 'null';
-
- case 'boolean':
- case 'null':
-
-// If the value is a boolean or null, convert it to a string. Note:
-// typeof null does not produce 'null'. The case is included here in
-// the remote chance that this gets fixed someday.
-
- return String(value);
-
-// If the type is 'object', we might be dealing with an object or an array or
-// null.
-
- case 'object':
-
-// Due to a specification blunder in ECMAScript, typeof null is 'object',
-// so watch out for that case.
-
- if (!value) {
- return 'null';
- }
-
-// Make an array to hold the partial results of stringifying this object value.
-
- gap += indent;
- partial = [];
-
-// Is the value an array?
-
- if (Object.prototype.toString.apply(value) === '[object Array]') {
-
-// The value is an array. Stringify every element. Use null as a placeholder
-// for non-JSON values.
-
- length = value.length;
- for (i = 0; i < length; i += 1) {
- partial[i] = str(i, value) || 'null';
- }
-
-// Join all of the elements together, separated with commas, and wrap them in
-// brackets.
-
- v = partial.length === 0
- ? '[]'
- : gap
- ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']'
- : '[' + partial.join(',') + ']';
- gap = mind;
- return v;
- }
-
-// If the replacer is an array, use it to select the members to be stringified.
-
- if (rep && typeof rep === 'object') {
- length = rep.length;
- for (i = 0; i < length; i += 1) {
- if (typeof rep[i] === 'string') {
- k = rep[i];
- v = str(k, value);
- if (v) {
- partial.push(quote(k) + (
- gap
- ? ': '
- : ':'
- ) + v);
- }
- }
- }
- } else {
-
-// Otherwise, iterate through all of the keys in the object.
-
- for (k in value) {
- if (Object.prototype.hasOwnProperty.call(value, k)) {
- v = str(k, value);
- if (v) {
- partial.push(quote(k) + (
- gap
- ? ': '
- : ':'
- ) + v);
- }
- }
- }
- }
-
-// Join all of the member texts together, separated with commas,
-// and wrap them in braces.
-
- v = partial.length === 0
- ? '{}'
- : gap
- ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}'
- : '{' + partial.join(',') + '}';
- gap = mind;
- return v;
- }
- }
-
-// If the JSON object does not yet have a stringify method, give it one.
-
- if (typeof JSON.stringify !== 'function') {
- meta = { // table of character substitutions
- '\b': '\\b',
- '\t': '\\t',
- '\n': '\\n',
- '\f': '\\f',
- '\r': '\\r',
- '"': '\\"',
- '\\': '\\\\'
- };
- JSON.stringify = function (value, replacer, space) {
-
-// The stringify method takes a value and an optional replacer, and an optional
-// space parameter, and returns a JSON text. The replacer can be a function
-// that can replace values, or an array of strings that will select the keys.
-// A default replacer method can be provided. Use of the space parameter can
-// produce text that is more easily readable.
-
- var i;
- gap = '';
- indent = '';
-
-// If the space parameter is a number, make an indent string containing that
-// many spaces.
-
- if (typeof space === 'number') {
- for (i = 0; i < space; i += 1) {
- indent += ' ';
- }
-
-// If the space parameter is a string, it will be used as the indent string.
-
- } else if (typeof space === 'string') {
- indent = space;
- }
-
-// If there is a replacer, it must be a function or an array.
-// Otherwise, throw an error.
-
- rep = replacer;
- if (replacer && typeof replacer !== 'function' &&
- (typeof replacer !== 'object' ||
- typeof replacer.length !== 'number')) {
- throw new Error('JSON.stringify');
- }
-
-// Make a fake root object containing our value under the key of ''.
-// Return the result of stringifying the value.
-
- return str('', {'': value});
- };
- }
-
-
-// If the JSON object does not yet have a parse method, give it one.
-
- if (typeof JSON.parse !== 'function') {
- JSON.parse = function (text, reviver) {
-
-// The parse method takes a text and an optional reviver function, and returns
-// a JavaScript value if the text is a valid JSON text.
-
- var j;
-
- function walk(holder, key) {
-
-// The walk method is used to recursively walk the resulting structure so
-// that modifications can be made.
-
- var k, v, value = holder[key];
- if (value && typeof value === 'object') {
- for (k in value) {
- if (Object.prototype.hasOwnProperty.call(value, k)) {
- v = walk(value, k);
- if (v !== undefined) {
- value[k] = v;
- } else {
- delete value[k];
- }
- }
- }
- }
- return reviver.call(holder, key, value);
- }
-
-
-// Parsing happens in four stages. In the first stage, we replace certain
-// Unicode characters with escape sequences. JavaScript handles many characters
-// incorrectly, either silently deleting them, or treating them as line endings.
-
- text = String(text);
- rx_dangerous.lastIndex = 0;
- if (rx_dangerous.test(text)) {
- text = text.replace(rx_dangerous, function (a) {
- return '\\u' +
- ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
- });
- }
-
-// In the second stage, we run the text against regular expressions that look
-// for non-JSON patterns. We are especially concerned with '()' and 'new'
-// because they can cause invocation, and '=' because it can cause mutation.
-// But just to be safe, we want to reject all unexpected forms.
-
-// We split the second stage into 4 regexp operations in order to work around
-// crippling inefficiencies in IE's and Safari's regexp engines. First we
-// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
-// replace all simple value tokens with ']' characters. Third, we delete all
-// open brackets that follow a colon or comma or that begin the text. Finally,
-// we look to see that the remaining characters are only whitespace or ']' or
-// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
-
- if (
- rx_one.test(
- text
- .replace(rx_two, '@')
- .replace(rx_three, ']')
- .replace(rx_four, '')
- )
- ) {
-
-// In the third stage we use the eval function to compile the text into a
-// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
-// in JavaScript: it can begin a block or an object literal. We wrap the text
-// in parens to eliminate the ambiguity.
-
- j = eval('(' + text + ')');
-
-// In the optional fourth stage, we recursively walk the new structure, passing
-// each name/value pair to a reviver function for possible transformation.
-
- return typeof reviver === 'function'
- ? walk({'': j}, '')
- : j;
- }
-
-// If the text is not JSON parseable, then a SyntaxError is thrown.
-
- throw new SyntaxError('JSON.parse');
- };
- }
-}());
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/LICENSE b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/LICENSE
deleted file mode 100644
index 447239f3..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright (c) 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative
-Reporters & Editors
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/arrays.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/arrays.js
deleted file mode 100644
index 748edea4..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/arrays.js
+++ /dev/null
@@ -1,555 +0,0 @@
-(function() {
- var _ = typeof require == 'function' ? require('..') : window._;
-
- QUnit.module('Arrays');
-
- QUnit.test('first', function(assert) {
- assert.equal(_.first([1, 2, 3]), 1, 'can pull out the first element of an array');
- assert.equal(_([1, 2, 3]).first(), 1, 'can perform OO-style "first()"');
- assert.deepEqual(_.first([1, 2, 3], 0), [], 'returns an empty array when n <= 0 (0 case)');
- assert.deepEqual(_.first([1, 2, 3], -1), [], 'returns an empty array when n <= 0 (negative case)');
- assert.deepEqual(_.first([1, 2, 3], 2), [1, 2], 'can fetch the first n elements');
- assert.deepEqual(_.first([1, 2, 3], 5), [1, 2, 3], 'returns the whole array if n > length');
- var result = (function(){ return _.first(arguments); }(4, 3, 2, 1));
- assert.equal(result, 4, 'works on an arguments object');
- result = _.map([[1, 2, 3], [1, 2, 3]], _.first);
- assert.deepEqual(result, [1, 1], 'works well with _.map');
- assert.equal(_.first(null), void 0, 'returns undefined when called on null');
- });
-
- QUnit.test('head', function(assert) {
- assert.strictEqual(_.head, _.first, 'is an alias for first');
- });
-
- QUnit.test('take', function(assert) {
- assert.strictEqual(_.take, _.first, 'is an alias for first');
- });
-
- QUnit.test('rest', function(assert) {
- var numbers = [1, 2, 3, 4];
- assert.deepEqual(_.rest(numbers), [2, 3, 4], 'fetches all but the first element');
- assert.deepEqual(_.rest(numbers, 0), [1, 2, 3, 4], 'returns the whole array when index is 0');
- assert.deepEqual(_.rest(numbers, 2), [3, 4], 'returns elements starting at the given index');
- var result = (function(){ return _(arguments).rest(); }(1, 2, 3, 4));
- assert.deepEqual(result, [2, 3, 4], 'works on an arguments object');
- result = _.map([[1, 2, 3], [1, 2, 3]], _.rest);
- assert.deepEqual(_.flatten(result), [2, 3, 2, 3], 'works well with _.map');
- });
-
- QUnit.test('tail', function(assert) {
- assert.strictEqual(_.tail, _.rest, 'is an alias for rest');
- });
-
- QUnit.test('drop', function(assert) {
- assert.strictEqual(_.drop, _.rest, 'is an alias for rest');
- });
-
- QUnit.test('initial', function(assert) {
- assert.deepEqual(_.initial([1, 2, 3, 4, 5]), [1, 2, 3, 4], 'returns all but the last element');
- assert.deepEqual(_.initial([1, 2, 3, 4], 2), [1, 2], 'returns all but the last n elements');
- assert.deepEqual(_.initial([1, 2, 3, 4], 6), [], 'returns an empty array when n > length');
- var result = (function(){ return _(arguments).initial(); }(1, 2, 3, 4));
- assert.deepEqual(result, [1, 2, 3], 'works on an arguments object');
- result = _.map([[1, 2, 3], [1, 2, 3]], _.initial);
- assert.deepEqual(_.flatten(result), [1, 2, 1, 2], 'works well with _.map');
- });
-
- QUnit.test('last', function(assert) {
- assert.equal(_.last([1, 2, 3]), 3, 'can pull out the last element of an array');
- assert.equal(_([1, 2, 3]).last(), 3, 'can perform OO-style "last()"');
- assert.deepEqual(_.last([1, 2, 3], 0), [], 'returns an empty array when n <= 0 (0 case)');
- assert.deepEqual(_.last([1, 2, 3], -1), [], 'returns an empty array when n <= 0 (negative case)');
- assert.deepEqual(_.last([1, 2, 3], 2), [2, 3], 'can fetch the last n elements');
- assert.deepEqual(_.last([1, 2, 3], 5), [1, 2, 3], 'returns the whole array if n > length');
- var result = (function(){ return _(arguments).last(); }(1, 2, 3, 4));
- assert.equal(result, 4, 'works on an arguments object');
- result = _.map([[1, 2, 3], [1, 2, 3]], _.last);
- assert.deepEqual(result, [3, 3], 'works well with _.map');
- assert.equal(_.last(null), void 0, 'returns undefined when called on null');
- });
-
- QUnit.test('compact', function(assert) {
- assert.deepEqual(_.compact([1, false, null, 0, '', void 0, NaN, 2]), [1, 2], 'removes all falsy values');
- var result = (function(){ return _.compact(arguments); }(0, 1, false, 2, false, 3));
- assert.deepEqual(result, [1, 2, 3], 'works on an arguments object');
- result = _.map([[1, false, false], [false, false, 3]], _.compact);
- assert.deepEqual(result, [[1], [3]], 'works well with _.map');
- });
-
- QUnit.test('flatten', function(assert) {
- assert.deepEqual(_.flatten(null), [], 'supports null');
- assert.deepEqual(_.flatten(void 0), [], 'supports undefined');
-
- assert.deepEqual(_.flatten([[], [[]], []]), [], 'supports empty arrays');
- assert.deepEqual(_.flatten([[], [[]], []], true), [[]], 'can shallowly flatten empty arrays');
-
- var list = [1, [2], [3, [[[4]]]]];
- assert.deepEqual(_.flatten(list), [1, 2, 3, 4], 'can flatten nested arrays');
- assert.deepEqual(_.flatten(list, true), [1, 2, 3, [[[4]]]], 'can shallowly flatten nested arrays');
- var result = (function(){ return _.flatten(arguments); }(1, [2], [3, [[[4]]]]));
- assert.deepEqual(result, [1, 2, 3, 4], 'works on an arguments object');
- list = [[1], [2], [3], [[4]]];
- assert.deepEqual(_.flatten(list, true), [1, 2, 3, [4]], 'can shallowly flatten arrays containing only other arrays');
-
- assert.equal(_.flatten([_.range(10), _.range(10), 5, 1, 3], true).length, 23, 'can flatten medium length arrays');
- assert.equal(_.flatten([_.range(10), _.range(10), 5, 1, 3]).length, 23, 'can shallowly flatten medium length arrays');
- assert.equal(_.flatten([new Array(1000000), _.range(56000), 5, 1, 3]).length, 1056003, 'can handle massive arrays');
- assert.equal(_.flatten([new Array(1000000), _.range(56000), 5, 1, 3], true).length, 1056003, 'can handle massive arrays in shallow mode');
-
- var x = _.range(100000);
- for (var i = 0; i < 1000; i++) x = [x];
- assert.deepEqual(_.flatten(x), _.range(100000), 'can handle very deep arrays');
- assert.deepEqual(_.flatten(x, true), x[0], 'can handle very deep arrays in shallow mode');
- });
-
- QUnit.test('without', function(assert) {
- var list = [1, 2, 1, 0, 3, 1, 4];
- assert.deepEqual(_.without(list, 0, 1), [2, 3, 4], 'removes all instances of the given values');
- var result = (function(){ return _.without(arguments, 0, 1); }(1, 2, 1, 0, 3, 1, 4));
- assert.deepEqual(result, [2, 3, 4], 'works on an arguments object');
-
- list = [{one: 1}, {two: 2}];
- assert.deepEqual(_.without(list, {one: 1}), list, 'compares objects by reference (value case)');
- assert.deepEqual(_.without(list, list[0]), [{two: 2}], 'compares objects by reference (reference case)');
- });
-
- QUnit.test('sortedIndex', function(assert) {
- var numbers = [10, 20, 30, 40, 50];
- var indexFor35 = _.sortedIndex(numbers, 35);
- assert.equal(indexFor35, 3, 'finds the index at which a value should be inserted to retain order');
- var indexFor30 = _.sortedIndex(numbers, 30);
- assert.equal(indexFor30, 2, 'finds the smallest index at which a value could be inserted to retain order');
-
- var objects = [{x: 10}, {x: 20}, {x: 30}, {x: 40}];
- var iterator = function(obj){ return obj.x; };
- assert.strictEqual(_.sortedIndex(objects, {x: 25}, iterator), 2, 'uses the result of `iterator` for order comparisons');
- assert.strictEqual(_.sortedIndex(objects, {x: 35}, 'x'), 3, 'when `iterator` is a string, uses that key for order comparisons');
-
- var context = {1: 2, 2: 3, 3: 4};
- iterator = function(obj){ return this[obj]; };
- assert.strictEqual(_.sortedIndex([1, 3], 2, iterator, context), 1, 'can execute its iterator in the given context');
-
- var values = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 131071, 262143, 524287,
- 1048575, 2097151, 4194303, 8388607, 16777215, 33554431, 67108863, 134217727, 268435455, 536870911, 1073741823, 2147483647];
- var largeArray = Array(Math.pow(2, 32) - 1);
- var length = values.length;
- // Sparsely populate `array`
- while (length--) {
- largeArray[values[length]] = values[length];
- }
- assert.equal(_.sortedIndex(largeArray, 2147483648), 2147483648, 'works with large indexes');
- });
-
- QUnit.test('uniq', function(assert) {
- var list = [1, 2, 1, 3, 1, 4];
- assert.deepEqual(_.uniq(list), [1, 2, 3, 4], 'can find the unique values of an unsorted array');
- list = [1, 1, 1, 2, 2, 3];
- assert.deepEqual(_.uniq(list, true), [1, 2, 3], 'can find the unique values of a sorted array faster');
-
- list = [{name: 'Moe'}, {name: 'Curly'}, {name: 'Larry'}, {name: 'Curly'}];
- var expected = [{name: 'Moe'}, {name: 'Curly'}, {name: 'Larry'}];
- var iterator = function(stooge) { return stooge.name; };
- assert.deepEqual(_.uniq(list, false, iterator), expected, 'uses the result of `iterator` for uniqueness comparisons (unsorted case)');
- assert.deepEqual(_.uniq(list, iterator), expected, '`sorted` argument defaults to false when omitted');
- assert.deepEqual(_.uniq(list, 'name'), expected, 'when `iterator` is a string, uses that key for comparisons (unsorted case)');
-
- list = [{score: 8}, {score: 10}, {score: 10}];
- expected = [{score: 8}, {score: 10}];
- iterator = function(item) { return item.score; };
- assert.deepEqual(_.uniq(list, true, iterator), expected, 'uses the result of `iterator` for uniqueness comparisons (sorted case)');
- assert.deepEqual(_.uniq(list, true, 'score'), expected, 'when `iterator` is a string, uses that key for comparisons (sorted case)');
-
- assert.deepEqual(_.uniq([{0: 1}, {0: 1}, {0: 1}, {0: 2}], 0), [{0: 1}, {0: 2}], 'can use falsey pluck like iterator');
-
- var result = (function(){ return _.uniq(arguments); }(1, 2, 1, 3, 1, 4));
- assert.deepEqual(result, [1, 2, 3, 4], 'works on an arguments object');
-
- var a = {}, b = {}, c = {};
- assert.deepEqual(_.uniq([a, b, a, b, c]), [a, b, c], 'works on values that can be tested for equivalency but not ordered');
-
- assert.deepEqual(_.uniq(null), [], 'returns an empty array when `array` is not iterable');
-
- var context = {};
- list = [3];
- _.uniq(list, function(value, index, array) {
- assert.strictEqual(this, context, 'executes its iterator in the given context');
- assert.strictEqual(value, 3, 'passes its iterator the value');
- assert.strictEqual(index, 0, 'passes its iterator the index');
- assert.strictEqual(array, list, 'passes its iterator the entire array');
- }, context);
-
- });
-
- QUnit.test('unique', function(assert) {
- assert.strictEqual(_.unique, _.uniq, 'is an alias for uniq');
- });
-
- QUnit.test('intersection', function(assert) {
- var stooges = ['moe', 'curly', 'larry'], leaders = ['moe', 'groucho'];
- assert.deepEqual(_.intersection(stooges, leaders), ['moe'], 'can find the set intersection of two arrays');
- assert.deepEqual(_(stooges).intersection(leaders), ['moe'], 'can perform an OO-style intersection');
- var result = (function(){ return _.intersection(arguments, leaders); }('moe', 'curly', 'larry'));
- assert.deepEqual(result, ['moe'], 'works on an arguments object');
- var theSixStooges = ['moe', 'moe', 'curly', 'curly', 'larry', 'larry'];
- assert.deepEqual(_.intersection(theSixStooges, leaders), ['moe'], 'returns a duplicate-free array');
- result = _.intersection([2, 4, 3, 1], [1, 2, 3]);
- assert.deepEqual(result, [2, 3, 1], 'preserves the order of the first array');
- result = _.intersection(null, [1, 2, 3]);
- assert.deepEqual(result, [], 'returns an empty array when passed null as the first argument');
- result = _.intersection([1, 2, 3], null);
- assert.deepEqual(result, [], 'returns an empty array when passed null as an argument beyond the first');
- });
-
- QUnit.test('union', function(assert) {
- var result = _.union([1, 2, 3], [2, 30, 1], [1, 40]);
- assert.deepEqual(result, [1, 2, 3, 30, 40], 'can find the union of a list of arrays');
-
- result = _([1, 2, 3]).union([2, 30, 1], [1, 40]);
- assert.deepEqual(result, [1, 2, 3, 30, 40], 'can perform an OO-style union');
-
- result = _.union([1, 2, 3], [2, 30, 1], [1, 40, [1]]);
- assert.deepEqual(result, [1, 2, 3, 30, 40, [1]], 'can find the union of a list of nested arrays');
-
- result = _.union([10, 20], [1, 30, 10], [0, 40]);
- assert.deepEqual(result, [10, 20, 1, 30, 0, 40], 'orders values by their first encounter');
-
- result = (function(){ return _.union(arguments, [2, 30, 1], [1, 40]); }(1, 2, 3));
- assert.deepEqual(result, [1, 2, 3, 30, 40], 'works on an arguments object');
-
- assert.deepEqual(_.union([1, 2, 3], 4), [1, 2, 3], 'restricts the union to arrays only');
- });
-
- QUnit.test('difference', function(assert) {
- var result = _.difference([1, 2, 3], [2, 30, 40]);
- assert.deepEqual(result, [1, 3], 'can find the difference of two arrays');
-
- result = _([1, 2, 3]).difference([2, 30, 40]);
- assert.deepEqual(result, [1, 3], 'can perform an OO-style difference');
-
- result = _.difference([1, 2, 3, 4], [2, 30, 40], [1, 11, 111]);
- assert.deepEqual(result, [3, 4], 'can find the difference of three arrays');
-
- result = _.difference([8, 9, 3, 1], [3, 8]);
- assert.deepEqual(result, [9, 1], 'preserves the order of the first array');
-
- result = (function(){ return _.difference(arguments, [2, 30, 40]); }(1, 2, 3));
- assert.deepEqual(result, [1, 3], 'works on an arguments object');
-
- result = _.difference([1, 2, 3], 1);
- assert.deepEqual(result, [1, 2, 3], 'restrict the difference to arrays only');
- });
-
- QUnit.test('zip', function(assert) {
- var names = ['moe', 'larry', 'curly'], ages = [30, 40, 50], leaders = [true];
- assert.deepEqual(_.zip(names, ages, leaders), [
- ['moe', 30, true],
- ['larry', 40, void 0],
- ['curly', 50, void 0]
- ], 'zipped together arrays of different lengths');
-
- var stooges = _.zip(['moe', 30, 'stooge 1'], ['larry', 40, 'stooge 2'], ['curly', 50, 'stooge 3']);
- assert.deepEqual(stooges, [['moe', 'larry', 'curly'], [30, 40, 50], ['stooge 1', 'stooge 2', 'stooge 3']], 'zipped pairs');
-
- // In the case of different lengths of the tuples, undefined values
- // should be used as placeholder
- stooges = _.zip(['moe', 30], ['larry', 40], ['curly', 50, 'extra data']);
- assert.deepEqual(stooges, [['moe', 'larry', 'curly'], [30, 40, 50], [void 0, void 0, 'extra data']], 'zipped pairs with empties');
-
- var empty = _.zip([]);
- assert.deepEqual(empty, [], 'unzipped empty');
-
- assert.deepEqual(_.zip(null), [], 'handles null');
- assert.deepEqual(_.zip(), [], '_.zip() returns []');
- });
-
- QUnit.test('unzip', function(assert) {
- assert.deepEqual(_.unzip(null), [], 'handles null');
-
- assert.deepEqual(_.unzip([['a', 'b'], [1, 2]]), [['a', 1], ['b', 2]]);
-
- // complements zip
- var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]);
- assert.deepEqual(_.unzip(zipped), [['fred', 'barney'], [30, 40], [true, false]]);
-
- zipped = _.zip(['moe', 30], ['larry', 40], ['curly', 50, 'extra data']);
- assert.deepEqual(_.unzip(zipped), [['moe', 30, void 0], ['larry', 40, void 0], ['curly', 50, 'extra data']], 'Uses length of largest array');
- });
-
- QUnit.test('object', function(assert) {
- var result = _.object(['moe', 'larry', 'curly'], [30, 40, 50]);
- var shouldBe = {moe: 30, larry: 40, curly: 50};
- assert.deepEqual(result, shouldBe, 'two arrays zipped together into an object');
-
- result = _.object([['one', 1], ['two', 2], ['three', 3]]);
- shouldBe = {one: 1, two: 2, three: 3};
- assert.deepEqual(result, shouldBe, 'an array of pairs zipped together into an object');
-
- var stooges = {moe: 30, larry: 40, curly: 50};
- assert.deepEqual(_.object(_.pairs(stooges)), stooges, 'an object converted to pairs and back to an object');
-
- assert.deepEqual(_.object(null), {}, 'handles nulls');
- });
-
- QUnit.test('indexOf', function(assert) {
- var numbers = [1, 2, 3];
- assert.equal(_.indexOf(numbers, 2), 1, 'can compute indexOf');
- var result = (function(){ return _.indexOf(arguments, 2); }(1, 2, 3));
- assert.equal(result, 1, 'works on an arguments object');
-
- _.each([null, void 0, [], false], function(val) {
- var msg = 'Handles: ' + (_.isArray(val) ? '[]' : val);
- assert.equal(_.indexOf(val, 2), -1, msg);
- assert.equal(_.indexOf(val, 2, -1), -1, msg);
- assert.equal(_.indexOf(val, 2, -20), -1, msg);
- assert.equal(_.indexOf(val, 2, 15), -1, msg);
- });
-
- var num = 35;
- numbers = [10, 20, 30, 40, 50];
- var index = _.indexOf(numbers, num, true);
- assert.equal(index, -1, '35 is not in the list');
-
- numbers = [10, 20, 30, 40, 50]; num = 40;
- index = _.indexOf(numbers, num, true);
- assert.equal(index, 3, '40 is in the list');
-
- numbers = [1, 40, 40, 40, 40, 40, 40, 40, 50, 60, 70]; num = 40;
- assert.equal(_.indexOf(numbers, num, true), 1, '40 is in the list');
- assert.equal(_.indexOf(numbers, 6, true), -1, '6 isnt in the list');
- assert.equal(_.indexOf([1, 2, 5, 4, 6, 7], 5, true), -1, 'sorted indexOf doesn\'t uses binary search');
- assert.ok(_.every(['1', [], {}, null], function() {
- return _.indexOf(numbers, num, {}) === 1;
- }), 'non-nums as fromIndex make indexOf assume sorted');
-
- numbers = [1, 2, 3, 1, 2, 3, 1, 2, 3];
- index = _.indexOf(numbers, 2, 5);
- assert.equal(index, 7, 'supports the fromIndex argument');
-
- index = _.indexOf([,,, 0], void 0);
- assert.equal(index, 0, 'treats sparse arrays as if they were dense');
-
- var array = [1, 2, 3, 1, 2, 3];
- assert.strictEqual(_.indexOf(array, 1, -3), 3, 'neg `fromIndex` starts at the right index');
- assert.strictEqual(_.indexOf(array, 1, -2), -1, 'neg `fromIndex` starts at the right index');
- assert.strictEqual(_.indexOf(array, 2, -3), 4);
- _.each([-6, -8, -Infinity], function(fromIndex) {
- assert.strictEqual(_.indexOf(array, 1, fromIndex), 0);
- });
- assert.strictEqual(_.indexOf([1, 2, 3], 1, true), 0);
-
- index = _.indexOf([], void 0, true);
- assert.equal(index, -1, 'empty array with truthy `isSorted` returns -1');
- });
-
- QUnit.test('indexOf with NaN', function(assert) {
- assert.strictEqual(_.indexOf([1, 2, NaN, NaN], NaN), 2, 'Expected [1, 2, NaN] to contain NaN');
- assert.strictEqual(_.indexOf([1, 2, Infinity], NaN), -1, 'Expected [1, 2, NaN] to contain NaN');
-
- assert.strictEqual(_.indexOf([1, 2, NaN, NaN], NaN, 1), 2, 'startIndex does not affect result');
- assert.strictEqual(_.indexOf([1, 2, NaN, NaN], NaN, -2), 2, 'startIndex does not affect result');
-
- (function() {
- assert.strictEqual(_.indexOf(arguments, NaN), 2, 'Expected arguments [1, 2, NaN] to contain NaN');
- }(1, 2, NaN, NaN));
- });
-
- QUnit.test('indexOf with +- 0', function(assert) {
- _.each([-0, +0], function(val) {
- assert.strictEqual(_.indexOf([1, 2, val, val], val), 2);
- assert.strictEqual(_.indexOf([1, 2, val, val], -val), 2);
- });
- });
-
- QUnit.test('lastIndexOf', function(assert) {
- var numbers = [1, 0, 1];
- var falsey = [void 0, '', 0, false, NaN, null, void 0];
- assert.equal(_.lastIndexOf(numbers, 1), 2);
-
- numbers = [1, 0, 1, 0, 0, 1, 0, 0, 0];
- numbers.lastIndexOf = null;
- assert.equal(_.lastIndexOf(numbers, 1), 5, 'can compute lastIndexOf, even without the native function');
- assert.equal(_.lastIndexOf(numbers, 0), 8, 'lastIndexOf the other element');
- var result = (function(){ return _.lastIndexOf(arguments, 1); }(1, 0, 1, 0, 0, 1, 0, 0, 0));
- assert.equal(result, 5, 'works on an arguments object');
-
- _.each([null, void 0, [], false], function(val) {
- var msg = 'Handles: ' + (_.isArray(val) ? '[]' : val);
- assert.equal(_.lastIndexOf(val, 2), -1, msg);
- assert.equal(_.lastIndexOf(val, 2, -1), -1, msg);
- assert.equal(_.lastIndexOf(val, 2, -20), -1, msg);
- assert.equal(_.lastIndexOf(val, 2, 15), -1, msg);
- });
-
- numbers = [1, 2, 3, 1, 2, 3, 1, 2, 3];
- var index = _.lastIndexOf(numbers, 2, 2);
- assert.equal(index, 1, 'supports the fromIndex argument');
-
- var array = [1, 2, 3, 1, 2, 3];
-
- assert.strictEqual(_.lastIndexOf(array, 1, 0), 0, 'starts at the correct from idx');
- assert.strictEqual(_.lastIndexOf(array, 3), 5, 'should return the index of the last matched value');
- assert.strictEqual(_.lastIndexOf(array, 4), -1, 'should return `-1` for an unmatched value');
-
- assert.strictEqual(_.lastIndexOf(array, 1, 2), 0, 'should work with a positive `fromIndex`');
-
- _.each([6, 8, Math.pow(2, 32), Infinity], function(fromIndex) {
- assert.strictEqual(_.lastIndexOf(array, void 0, fromIndex), -1);
- assert.strictEqual(_.lastIndexOf(array, 1, fromIndex), 3);
- assert.strictEqual(_.lastIndexOf(array, '', fromIndex), -1);
- });
-
- var expected = _.map(falsey, function(value) {
- return typeof value == 'number' ? -1 : 5;
- });
-
- var actual = _.map(falsey, function(fromIndex) {
- return _.lastIndexOf(array, 3, fromIndex);
- });
-
- assert.deepEqual(actual, expected, 'should treat falsey `fromIndex` values, except `0` and `NaN`, as `array.length`');
- assert.strictEqual(_.lastIndexOf(array, 3, '1'), 5, 'should treat non-number `fromIndex` values as `array.length`');
- assert.strictEqual(_.lastIndexOf(array, 3, true), 5, 'should treat non-number `fromIndex` values as `array.length`');
-
- assert.strictEqual(_.lastIndexOf(array, 2, -3), 1, 'should work with a negative `fromIndex`');
- assert.strictEqual(_.lastIndexOf(array, 1, -3), 3, 'neg `fromIndex` starts at the right index');
-
- assert.deepEqual(_.map([-6, -8, -Infinity], function(fromIndex) {
- return _.lastIndexOf(array, 1, fromIndex);
- }), [0, -1, -1]);
- });
-
- QUnit.test('lastIndexOf with NaN', function(assert) {
- assert.strictEqual(_.lastIndexOf([1, 2, NaN, NaN], NaN), 3, 'Expected [1, 2, NaN] to contain NaN');
- assert.strictEqual(_.lastIndexOf([1, 2, Infinity], NaN), -1, 'Expected [1, 2, NaN] to contain NaN');
-
- assert.strictEqual(_.lastIndexOf([1, 2, NaN, NaN], NaN, 2), 2, 'fromIndex does not affect result');
- assert.strictEqual(_.lastIndexOf([1, 2, NaN, NaN], NaN, -2), 2, 'fromIndex does not affect result');
-
- (function() {
- assert.strictEqual(_.lastIndexOf(arguments, NaN), 3, 'Expected arguments [1, 2, NaN] to contain NaN');
- }(1, 2, NaN, NaN));
- });
-
- QUnit.test('lastIndexOf with +- 0', function(assert) {
- _.each([-0, +0], function(val) {
- assert.strictEqual(_.lastIndexOf([1, 2, val, val], val), 3);
- assert.strictEqual(_.lastIndexOf([1, 2, val, val], -val), 3);
- assert.strictEqual(_.lastIndexOf([-1, 1, 2], -val), -1);
- });
- });
-
- QUnit.test('findIndex', function(assert) {
- var objects = [
- {a: 0, b: 0},
- {a: 1, b: 1},
- {a: 2, b: 2},
- {a: 0, b: 0}
- ];
-
- assert.equal(_.findIndex(objects, function(obj) {
- return obj.a === 0;
- }), 0);
-
- assert.equal(_.findIndex(objects, function(obj) {
- return obj.b * obj.a === 4;
- }), 2);
-
- assert.equal(_.findIndex(objects, 'a'), 1, 'Uses lookupIterator');
-
- assert.equal(_.findIndex(objects, function(obj) {
- return obj.b * obj.a === 5;
- }), -1);
-
- assert.equal(_.findIndex(null, _.noop), -1);
- assert.strictEqual(_.findIndex(objects, function(a) {
- return a.foo === null;
- }), -1);
- _.findIndex([{a: 1}], function(a, key, obj) {
- assert.equal(key, 0);
- assert.deepEqual(obj, [{a: 1}]);
- assert.strictEqual(this, objects, 'called with context');
- }, objects);
-
- var sparse = [];
- sparse[20] = {a: 2, b: 2};
- assert.equal(_.findIndex(sparse, function(obj) {
- return obj && obj.b * obj.a === 4;
- }), 20, 'Works with sparse arrays');
-
- var array = [1, 2, 3, 4];
- array.match = 55;
- assert.strictEqual(_.findIndex(array, function(x) { return x === 55; }), -1, 'doesn\'t match array-likes keys');
- });
-
- QUnit.test('findLastIndex', function(assert) {
- var objects = [
- {a: 0, b: 0},
- {a: 1, b: 1},
- {a: 2, b: 2},
- {a: 0, b: 0}
- ];
-
- assert.equal(_.findLastIndex(objects, function(obj) {
- return obj.a === 0;
- }), 3);
-
- assert.equal(_.findLastIndex(objects, function(obj) {
- return obj.b * obj.a === 4;
- }), 2);
-
- assert.equal(_.findLastIndex(objects, 'a'), 2, 'Uses lookupIterator');
-
- assert.equal(_.findLastIndex(objects, function(obj) {
- return obj.b * obj.a === 5;
- }), -1);
-
- assert.equal(_.findLastIndex(null, _.noop), -1);
- assert.strictEqual(_.findLastIndex(objects, function(a) {
- return a.foo === null;
- }), -1);
- _.findLastIndex([{a: 1}], function(a, key, obj) {
- assert.equal(key, 0);
- assert.deepEqual(obj, [{a: 1}]);
- assert.strictEqual(this, objects, 'called with context');
- }, objects);
-
- var sparse = [];
- sparse[20] = {a: 2, b: 2};
- assert.equal(_.findLastIndex(sparse, function(obj) {
- return obj && obj.b * obj.a === 4;
- }), 20, 'Works with sparse arrays');
-
- var array = [1, 2, 3, 4];
- array.match = 55;
- assert.strictEqual(_.findLastIndex(array, function(x) { return x === 55; }), -1, 'doesn\'t match array-likes keys');
- });
-
- QUnit.test('range', function(assert) {
- assert.deepEqual(_.range(0), [], 'range with 0 as a first argument generates an empty array');
- assert.deepEqual(_.range(4), [0, 1, 2, 3], 'range with a single positive argument generates an array of elements 0,1,2,...,n-1');
- assert.deepEqual(_.range(5, 8), [5, 6, 7], 'range with two arguments a &amp; b, a&lt;b generates an array of elements a,a+1,a+2,...,b-2,b-1');
- assert.deepEqual(_.range(3, 10, 3), [3, 6, 9], 'range with three arguments a &amp; b &amp; c, c &lt; b-a, a &lt; b generates an array of elements a,a+c,a+2c,...,b - (multiplier of a) &lt; c');
- assert.deepEqual(_.range(3, 10, 15), [3], 'range with three arguments a &amp; b &amp; c, c &gt; b-a, a &lt; b generates an array with a single element, equal to a');
- assert.deepEqual(_.range(12, 7, -2), [12, 10, 8], 'range with three arguments a &amp; b &amp; c, a &gt; b, c &lt; 0 generates an array of elements a,a-c,a-2c and ends with the number not less than b');
- assert.deepEqual(_.range(0, -10, -1), [0, -1, -2, -3, -4, -5, -6, -7, -8, -9], 'final example in the Python docs');
- assert.strictEqual(1 / _.range(-0, 1)[0], -Infinity, 'should preserve -0');
- assert.deepEqual(_.range(8, 5), [8, 7, 6], 'negative range generates descending array');
- assert.deepEqual(_.range(-3), [0, -1, -2], 'negative range generates descending array');
- });
-
- QUnit.test('chunk', function(assert) {
- assert.deepEqual(_.chunk([], 2), [], 'chunk for empty array returns an empty array');
-
- assert.deepEqual(_.chunk([1, 2, 3], 0), [], 'chunk into parts of 0 elements returns empty array');
- assert.deepEqual(_.chunk([1, 2, 3], -1), [], 'chunk into parts of negative amount of elements returns an empty array');
- assert.deepEqual(_.chunk([1, 2, 3]), [], 'defaults to empty array (chunk size 0)');
-
- assert.deepEqual(_.chunk([1, 2, 3], 1), [[1], [2], [3]], 'chunk into parts of 1 elements returns original array');
-
- assert.deepEqual(_.chunk([1, 2, 3], 3), [[1, 2, 3]], 'chunk into parts of current array length elements returns the original array');
- assert.deepEqual(_.chunk([1, 2, 3], 5), [[1, 2, 3]], 'chunk into parts of more then current array length elements returns the original array');
-
- assert.deepEqual(_.chunk([10, 20, 30, 40, 50, 60, 70], 2), [[10, 20], [30, 40], [50, 60], [70]], 'chunk into parts of less then current array length elements');
- assert.deepEqual(_.chunk([10, 20, 30, 40, 50, 60, 70], 3), [[10, 20, 30], [40, 50, 60], [70]], 'chunk into parts of less then current array length elements');
- });
-}());
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/chaining.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/chaining.js
deleted file mode 100644
index 6ad21dcf..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/chaining.js
+++ /dev/null
@@ -1,99 +0,0 @@
-(function() {
- var _ = typeof require == 'function' ? require('..') : window._;
-
- QUnit.module('Chaining');
-
- QUnit.test('map/flatten/reduce', function(assert) {
- var lyrics = [
- 'I\'m a lumberjack and I\'m okay',
- 'I sleep all night and I work all day',
- 'He\'s a lumberjack and he\'s okay',
- 'He sleeps all night and he works all day'
- ];
- var counts = _(lyrics).chain()
- .map(function(line) { return line.split(''); })
- .flatten()
- .reduce(function(hash, l) {
- hash[l] = hash[l] || 0;
- hash[l]++;
- return hash;
- }, {})
- .value();
- assert.equal(counts.a, 16, 'counted all the letters in the song');
- assert.equal(counts.e, 10, 'counted all the letters in the song');
- });
-
- QUnit.test('select/reject/sortBy', function(assert) {
- var numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
- numbers = _(numbers).chain().select(function(n) {
- return n % 2 === 0;
- }).reject(function(n) {
- return n % 4 === 0;
- }).sortBy(function(n) {
- return -n;
- }).value();
- assert.deepEqual(numbers, [10, 6, 2], 'filtered and reversed the numbers');
- });
-
- QUnit.test('select/reject/sortBy in functional style', function(assert) {
- var numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
- numbers = _.chain(numbers).select(function(n) {
- return n % 2 === 0;
- }).reject(function(n) {
- return n % 4 === 0;
- }).sortBy(function(n) {
- return -n;
- }).value();
- assert.deepEqual(numbers, [10, 6, 2], 'filtered and reversed the numbers');
- });
-
- QUnit.test('reverse/concat/unshift/pop/map', function(assert) {
- var numbers = [1, 2, 3, 4, 5];
- numbers = _(numbers).chain()
- .reverse()
- .concat([5, 5, 5])
- .unshift(17)
- .pop()
- .map(function(n){ return n * 2; })
- .value();
- assert.deepEqual(numbers, [34, 10, 8, 6, 4, 2, 10, 10], 'can chain together array functions.');
- });
-
- QUnit.test('splice', function(assert) {
- var instance = _([1, 2, 3, 4, 5]).chain();
- assert.deepEqual(instance.splice(1, 3).value(), [1, 5]);
- assert.deepEqual(instance.splice(1, 0).value(), [1, 5]);
- assert.deepEqual(instance.splice(1, 1).value(), [1]);
- assert.deepEqual(instance.splice(0, 1).value(), [], '#397 Can create empty array');
- });
-
- QUnit.test('shift', function(assert) {
- var instance = _([1, 2, 3]).chain();
- assert.deepEqual(instance.shift().value(), [2, 3]);
- assert.deepEqual(instance.shift().value(), [3]);
- assert.deepEqual(instance.shift().value(), [], '#397 Can create empty array');
- });
-
- QUnit.test('pop', function(assert) {
- var instance = _([1, 2, 3]).chain();
- assert.deepEqual(instance.pop().value(), [1, 2]);
- assert.deepEqual(instance.pop().value(), [1]);
- assert.deepEqual(instance.pop().value(), [], '#397 Can create empty array');
- });
-
- QUnit.test('chaining works in small stages', function(assert) {
- var o = _([1, 2, 3, 4]).chain();
- assert.deepEqual(o.filter(function(i) { return i < 3; }).value(), [1, 2]);
- assert.deepEqual(o.filter(function(i) { return i > 2; }).value(), [3, 4]);
- });
-
- QUnit.test('#1562: Engine proxies for chained functions', function(assert) {
- var wrapped = _(512);
- assert.strictEqual(wrapped.toJSON(), 512);
- assert.strictEqual(wrapped.valueOf(), 512);
- assert.strictEqual(+wrapped, 512);
- assert.strictEqual(wrapped.toString(), '512');
- assert.strictEqual('' + wrapped, '512');
- });
-
-}());
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/collections.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/collections.js
deleted file mode 100644
index 182f7a21..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/collections.js
+++ /dev/null
@@ -1,896 +0,0 @@
-(function() {
- var _ = typeof require == 'function' ? require('..') : window._;
-
- QUnit.module('Collections');
-
- QUnit.test('each', function(assert) {
- _.each([1, 2, 3], function(num, i) {
- assert.equal(num, i + 1, 'each iterators provide value and iteration count');
- });
-
- var answers = [];
- _.each([1, 2, 3], function(num){ answers.push(num * this.multiplier); }, {multiplier: 5});
- assert.deepEqual(answers, [5, 10, 15], 'context object property accessed');
-
- answers = [];
- _.each([1, 2, 3], function(num){ answers.push(num); });
- assert.deepEqual(answers, [1, 2, 3], 'can iterate a simple array');
-
- answers = [];
- var obj = {one: 1, two: 2, three: 3};
- obj.constructor.prototype.four = 4;
- _.each(obj, function(value, key){ answers.push(key); });
- assert.deepEqual(answers, ['one', 'two', 'three'], 'iterating over objects works, and ignores the object prototype.');
- delete obj.constructor.prototype.four;
-
- // ensure the each function is JITed
- _(1000).times(function() { _.each([], function(){}); });
- var count = 0;
- obj = {1: 'foo', 2: 'bar', 3: 'baz'};
- _.each(obj, function(){ count++; });
- assert.equal(count, 3, 'the fun should be called only 3 times');
-
- var answer = null;
- _.each([1, 2, 3], function(num, index, arr){ if (_.include(arr, num)) answer = true; });
- assert.ok(answer, 'can reference the original collection from inside the iterator');
-
- answers = 0;
- _.each(null, function(){ ++answers; });
- assert.equal(answers, 0, 'handles a null properly');
-
- _.each(false, function(){});
-
- var a = [1, 2, 3];
- assert.strictEqual(_.each(a, function(){}), a);
- assert.strictEqual(_.each(null, function(){}), null);
- });
-
- QUnit.test('forEach', function(assert) {
- assert.strictEqual(_.forEach, _.each, 'is an alias for each');
- });
-
- QUnit.test('lookupIterator with contexts', function(assert) {
- _.each([true, false, 'yes', '', 0, 1, {}], function(context) {
- _.each([1], function() {
- assert.equal(this, context);
- }, context);
- });
- });
-
- QUnit.test('Iterating objects with sketchy length properties', function(assert) {
- var functions = [
- 'each', 'map', 'filter', 'find',
- 'some', 'every', 'max', 'min',
- 'groupBy', 'countBy', 'partition', 'indexBy'
- ];
- var reducers = ['reduce', 'reduceRight'];
-
- var tricks = [
- {length: '5'},
- {length: {valueOf: _.constant(5)}},
- {length: Math.pow(2, 53) + 1},
- {length: Math.pow(2, 53)},
- {length: null},
- {length: -2},
- {length: new Number(15)}
- ];
-
- assert.expect(tricks.length * (functions.length + reducers.length + 4));
-
- _.each(tricks, function(trick) {
- var length = trick.length;
- assert.strictEqual(_.size(trick), 1, 'size on obj with length: ' + length);
- assert.deepEqual(_.toArray(trick), [length], 'toArray on obj with length: ' + length);
- assert.deepEqual(_.shuffle(trick), [length], 'shuffle on obj with length: ' + length);
- assert.deepEqual(_.sample(trick), length, 'sample on obj with length: ' + length);
-
-
- _.each(functions, function(method) {
- _[method](trick, function(val, key) {
- assert.strictEqual(key, 'length', method + ': ran with length = ' + val);
- });
- });
-
- _.each(reducers, function(method) {
- assert.strictEqual(_[method](trick), trick.length, method);
- });
- });
- });
-
- QUnit.test('Resistant to collection length and properties changing while iterating', function(assert) {
-
- var collection = [
- 'each', 'map', 'filter', 'find',
- 'some', 'every', 'max', 'min', 'reject',
- 'groupBy', 'countBy', 'partition', 'indexBy',
- 'reduce', 'reduceRight'
- ];
- var array = [
- 'findIndex', 'findLastIndex'
- ];
- var object = [
- 'mapObject', 'findKey', 'pick', 'omit'
- ];
-
- _.each(collection.concat(array), function(method) {
- var sparseArray = [1, 2, 3];
- sparseArray.length = 100;
- var answers = 0;
- _[method](sparseArray, function(){
- ++answers;
- return method === 'every' ? true : null;
- }, {});
- assert.equal(answers, 100, method + ' enumerates [0, length)');
-
- var growingCollection = [1, 2, 3], count = 0;
- _[method](growingCollection, function() {
- if (count < 10) growingCollection.push(count++);
- return method === 'every' ? true : null;
- }, {});
- assert.equal(count, 3, method + ' is resistant to length changes');
- });
-
- _.each(collection.concat(object), function(method) {
- var changingObject = {0: 0, 1: 1}, count = 0;
- _[method](changingObject, function(val) {
- if (count < 10) changingObject[++count] = val + 1;
- return method === 'every' ? true : null;
- }, {});
-
- assert.equal(count, 2, method + ' is resistant to property changes');
- });
- });
-
- QUnit.test('map', function(assert) {
- var doubled = _.map([1, 2, 3], function(num){ return num * 2; });
- assert.deepEqual(doubled, [2, 4, 6], 'doubled numbers');
-
- var tripled = _.map([1, 2, 3], function(num){ return num * this.multiplier; }, {multiplier: 3});
- assert.deepEqual(tripled, [3, 6, 9], 'tripled numbers with context');
-
- doubled = _([1, 2, 3]).map(function(num){ return num * 2; });
- assert.deepEqual(doubled, [2, 4, 6], 'OO-style doubled numbers');
-
- var ids = _.map({length: 2, 0: {id: '1'}, 1: {id: '2'}}, function(n){
- return n.id;
- });
- assert.deepEqual(ids, ['1', '2'], 'Can use collection methods on Array-likes.');
-
- assert.deepEqual(_.map(null, _.noop), [], 'handles a null properly');
-
- assert.deepEqual(_.map([1], function() {
- return this.length;
- }, [5]), [1], 'called with context');
-
- // Passing a property name like _.pluck.
- var people = [{name: 'moe', age: 30}, {name: 'curly', age: 50}];
- assert.deepEqual(_.map(people, 'name'), ['moe', 'curly'], 'predicate string map to object properties');
- });
-
- QUnit.test('collect', function(assert) {
- assert.strictEqual(_.collect, _.map, 'is an alias for map');
- });
-
- QUnit.test('reduce', function(assert) {
- var sum = _.reduce([1, 2, 3], function(memo, num){ return memo + num; }, 0);
- assert.equal(sum, 6, 'can sum up an array');
-
- var context = {multiplier: 3};
- sum = _.reduce([1, 2, 3], function(memo, num){ return memo + num * this.multiplier; }, 0, context);
- assert.equal(sum, 18, 'can reduce with a context object');
-
- sum = _([1, 2, 3]).reduce(function(memo, num){ return memo + num; }, 0);
- assert.equal(sum, 6, 'OO-style reduce');
-
- sum = _.reduce([1, 2, 3], function(memo, num){ return memo + num; });
- assert.equal(sum, 6, 'default initial value');
-
- var prod = _.reduce([1, 2, 3, 4], function(memo, num){ return memo * num; });
- assert.equal(prod, 24, 'can reduce via multiplication');
-
- assert.ok(_.reduce(null, _.noop, 138) === 138, 'handles a null (with initial value) properly');
- assert.equal(_.reduce([], _.noop, void 0), void 0, 'undefined can be passed as a special case');
- assert.equal(_.reduce([_], _.noop), _, 'collection of length one with no initial value returns the first item');
- assert.equal(_.reduce([], _.noop), void 0, 'returns undefined when collection is empty and no initial value');
- });
-
- QUnit.test('foldl', function(assert) {
- assert.strictEqual(_.foldl, _.reduce, 'is an alias for reduce');
- });
-
- QUnit.test('inject', function(assert) {
- assert.strictEqual(_.inject, _.reduce, 'is an alias for reduce');
- });
-
- QUnit.test('reduceRight', function(assert) {
- var list = _.reduceRight(['foo', 'bar', 'baz'], function(memo, str){ return memo + str; }, '');
- assert.equal(list, 'bazbarfoo', 'can perform right folds');
-
- list = _.reduceRight(['foo', 'bar', 'baz'], function(memo, str){ return memo + str; });
- assert.equal(list, 'bazbarfoo', 'default initial value');
-
- var sum = _.reduceRight({a: 1, b: 2, c: 3}, function(memo, num){ return memo + num; });
- assert.equal(sum, 6, 'default initial value on object');
-
- assert.ok(_.reduceRight(null, _.noop, 138) === 138, 'handles a null (with initial value) properly');
- assert.equal(_.reduceRight([_], _.noop), _, 'collection of length one with no initial value returns the first item');
-
- assert.equal(_.reduceRight([], _.noop, void 0), void 0, 'undefined can be passed as a special case');
- assert.equal(_.reduceRight([], _.noop), void 0, 'returns undefined when collection is empty and no initial value');
-
- // Assert that the correct arguments are being passed.
-
- var args,
- init = {},
- object = {a: 1, b: 2},
- lastKey = _.keys(object).pop();
-
- var expected = lastKey === 'a'
- ? [init, 1, 'a', object]
- : [init, 2, 'b', object];
-
- _.reduceRight(object, function() {
- if (!args) args = _.toArray(arguments);
- }, init);
-
- assert.deepEqual(args, expected);
-
- // And again, with numeric keys.
-
- object = {2: 'a', 1: 'b'};
- lastKey = _.keys(object).pop();
- args = null;
-
- expected = lastKey === '2'
- ? [init, 'a', '2', object]
- : [init, 'b', '1', object];
-
- _.reduceRight(object, function() {
- if (!args) args = _.toArray(arguments);
- }, init);
-
- assert.deepEqual(args, expected);
- });
-
- QUnit.test('foldr', function(assert) {
- assert.strictEqual(_.foldr, _.reduceRight, 'is an alias for reduceRight');
- });
-
- QUnit.test('find', function(assert) {
- var array = [1, 2, 3, 4];
- assert.strictEqual(_.find(array, function(n) { return n > 2; }), 3, 'should return first found `value`');
- assert.strictEqual(_.find(array, function() { return false; }), void 0, 'should return `undefined` if `value` is not found');
-
- array.dontmatch = 55;
- assert.strictEqual(_.find(array, function(x) { return x === 55; }), void 0, 'iterates array-likes correctly');
-
- // Matching an object like _.findWhere.
- var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}, {a: 2, b: 4}];
- assert.deepEqual(_.find(list, {a: 1}), {a: 1, b: 2}, 'can be used as findWhere');
- assert.deepEqual(_.find(list, {b: 4}), {a: 1, b: 4});
- assert.ok(!_.find(list, {c: 1}), 'undefined when not found');
- assert.ok(!_.find([], {c: 1}), 'undefined when searching empty list');
-
- var result = _.find([1, 2, 3], function(num){ return num * 2 === 4; });
- assert.equal(result, 2, 'found the first "2" and broke the loop');
-
- var obj = {
- a: {x: 1, z: 3},
- b: {x: 2, z: 2},
- c: {x: 3, z: 4},
- d: {x: 4, z: 1}
- };
-
- assert.deepEqual(_.find(obj, {x: 2}), {x: 2, z: 2}, 'works on objects');
- assert.deepEqual(_.find(obj, {x: 2, z: 1}), void 0);
- assert.deepEqual(_.find(obj, function(x) {
- return x.x === 4;
- }), {x: 4, z: 1});
-
- _.findIndex([{a: 1}], function(a, key, o) {
- assert.equal(key, 0);
- assert.deepEqual(o, [{a: 1}]);
- assert.strictEqual(this, _, 'called with context');
- }, _);
- });
-
- QUnit.test('detect', function(assert) {
- assert.strictEqual(_.detect, _.find, 'is an alias for find');
- });
-
- QUnit.test('filter', function(assert) {
- var evenArray = [1, 2, 3, 4, 5, 6];
- var evenObject = {one: 1, two: 2, three: 3};
- var isEven = function(num){ return num % 2 === 0; };
-
- assert.deepEqual(_.filter(evenArray, isEven), [2, 4, 6]);
- assert.deepEqual(_.filter(evenObject, isEven), [2], 'can filter objects');
- assert.deepEqual(_.filter([{}, evenObject, []], 'two'), [evenObject], 'predicate string map to object properties');
-
- _.filter([1], function() {
- assert.equal(this, evenObject, 'given context');
- }, evenObject);
-
- // Can be used like _.where.
- var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}];
- assert.deepEqual(_.filter(list, {a: 1}), [{a: 1, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}]);
- assert.deepEqual(_.filter(list, {b: 2}), [{a: 1, b: 2}, {a: 2, b: 2}]);
- assert.deepEqual(_.filter(list, {}), list, 'Empty object accepts all items');
- assert.deepEqual(_(list).filter({}), list, 'OO-filter');
- });
-
- QUnit.test('select', function(assert) {
- assert.strictEqual(_.select, _.filter, 'is an alias for filter');
- });
-
- QUnit.test('reject', function(assert) {
- var odds = _.reject([1, 2, 3, 4, 5, 6], function(num){ return num % 2 === 0; });
- assert.deepEqual(odds, [1, 3, 5], 'rejected each even number');
-
- var context = 'obj';
-
- var evens = _.reject([1, 2, 3, 4, 5, 6], function(num){
- assert.equal(context, 'obj');
- return num % 2 !== 0;
- }, context);
- assert.deepEqual(evens, [2, 4, 6], 'rejected each odd number');
-
- assert.deepEqual(_.reject([odds, {one: 1, two: 2, three: 3}], 'two'), [odds], 'predicate string map to object properties');
-
- // Can be used like _.where.
- var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}];
- assert.deepEqual(_.reject(list, {a: 1}), [{a: 2, b: 2}]);
- assert.deepEqual(_.reject(list, {b: 2}), [{a: 1, b: 3}, {a: 1, b: 4}]);
- assert.deepEqual(_.reject(list, {}), [], 'Returns empty list given empty object');
- assert.deepEqual(_.reject(list, []), [], 'Returns empty list given empty array');
- });
-
- QUnit.test('every', function(assert) {
- assert.ok(_.every([], _.identity), 'the empty set');
- assert.ok(_.every([true, true, true], _.identity), 'every true values');
- assert.ok(!_.every([true, false, true], _.identity), 'one false value');
- assert.ok(_.every([0, 10, 28], function(num){ return num % 2 === 0; }), 'even numbers');
- assert.ok(!_.every([0, 11, 28], function(num){ return num % 2 === 0; }), 'an odd number');
- assert.ok(_.every([1], _.identity) === true, 'cast to boolean - true');
- assert.ok(_.every([0], _.identity) === false, 'cast to boolean - false');
- assert.ok(!_.every([void 0, void 0, void 0], _.identity), 'works with arrays of undefined');
-
- var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}];
- assert.ok(!_.every(list, {a: 1, b: 2}), 'Can be called with object');
- assert.ok(_.every(list, 'a'), 'String mapped to object property');
-
- list = [{a: 1, b: 2}, {a: 2, b: 2, c: true}];
- assert.ok(_.every(list, {b: 2}), 'Can be called with object');
- assert.ok(!_.every(list, 'c'), 'String mapped to object property');
-
- assert.ok(_.every({a: 1, b: 2, c: 3, d: 4}, _.isNumber), 'takes objects');
- assert.ok(!_.every({a: 1, b: 2, c: 3, d: 4}, _.isObject), 'takes objects');
- assert.ok(_.every(['a', 'b', 'c', 'd'], _.hasOwnProperty, {a: 1, b: 2, c: 3, d: 4}), 'context works');
- assert.ok(!_.every(['a', 'b', 'c', 'd', 'f'], _.hasOwnProperty, {a: 1, b: 2, c: 3, d: 4}), 'context works');
- });
-
- QUnit.test('all', function(assert) {
- assert.strictEqual(_.all, _.every, 'is an alias for every');
- });
-
- QUnit.test('some', function(assert) {
- assert.ok(!_.some([]), 'the empty set');
- assert.ok(!_.some([false, false, false]), 'all false values');
- assert.ok(_.some([false, false, true]), 'one true value');
- assert.ok(_.some([null, 0, 'yes', false]), 'a string');
- assert.ok(!_.some([null, 0, '', false]), 'falsy values');
- assert.ok(!_.some([1, 11, 29], function(num){ return num % 2 === 0; }), 'all odd numbers');
- assert.ok(_.some([1, 10, 29], function(num){ return num % 2 === 0; }), 'an even number');
- assert.ok(_.some([1], _.identity) === true, 'cast to boolean - true');
- assert.ok(_.some([0], _.identity) === false, 'cast to boolean - false');
- assert.ok(_.some([false, false, true]));
-
- var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}];
- assert.ok(!_.some(list, {a: 5, b: 2}), 'Can be called with object');
- assert.ok(_.some(list, 'a'), 'String mapped to object property');
-
- list = [{a: 1, b: 2}, {a: 2, b: 2, c: true}];
- assert.ok(_.some(list, {b: 2}), 'Can be called with object');
- assert.ok(!_.some(list, 'd'), 'String mapped to object property');
-
- assert.ok(_.some({a: '1', b: '2', c: '3', d: '4', e: 6}, _.isNumber), 'takes objects');
- assert.ok(!_.some({a: 1, b: 2, c: 3, d: 4}, _.isObject), 'takes objects');
- assert.ok(_.some(['a', 'b', 'c', 'd'], _.hasOwnProperty, {a: 1, b: 2, c: 3, d: 4}), 'context works');
- assert.ok(!_.some(['x', 'y', 'z'], _.hasOwnProperty, {a: 1, b: 2, c: 3, d: 4}), 'context works');
- });
-
- QUnit.test('any', function(assert) {
- assert.strictEqual(_.any, _.some, 'is an alias for some');
- });
-
- QUnit.test('includes', function(assert) {
- _.each([null, void 0, 0, 1, NaN, {}, []], function(val) {
- assert.strictEqual(_.includes(val, 'hasOwnProperty'), false);
- });
- assert.strictEqual(_.includes([1, 2, 3], 2), true, 'two is in the array');
- assert.ok(!_.includes([1, 3, 9], 2), 'two is not in the array');
-
- assert.strictEqual(_.includes([5, 4, 3, 2, 1], 5, true), true, 'doesn\'t delegate to binary search');
-
- assert.ok(_.includes({moe: 1, larry: 3, curly: 9}, 3) === true, '_.includes on objects checks their values');
- assert.ok(_([1, 2, 3]).includes(2), 'OO-style includes');
-
- var numbers = [1, 2, 3, 1, 2, 3, 1, 2, 3];
- assert.strictEqual(_.includes(numbers, 1, 1), true, 'takes a fromIndex');
- assert.strictEqual(_.includes(numbers, 1, -1), false, 'takes a fromIndex');
- assert.strictEqual(_.includes(numbers, 1, -2), false, 'takes a fromIndex');
- assert.strictEqual(_.includes(numbers, 1, -3), true, 'takes a fromIndex');
- assert.strictEqual(_.includes(numbers, 1, 6), true, 'takes a fromIndex');
- assert.strictEqual(_.includes(numbers, 1, 7), false, 'takes a fromIndex');
-
- assert.ok(_.every([1, 2, 3], _.partial(_.includes, numbers)), 'fromIndex is guarded');
- });
-
- QUnit.test('include', function(assert) {
- assert.strictEqual(_.include, _.includes, 'is an alias for includes');
- });
-
- QUnit.test('contains', function(assert) {
- assert.strictEqual(_.contains, _.includes, 'is an alias for includes');
-
- });
-
- QUnit.test('includes with NaN', function(assert) {
- assert.strictEqual(_.includes([1, 2, NaN, NaN], NaN), true, 'Expected [1, 2, NaN] to contain NaN');
- assert.strictEqual(_.includes([1, 2, Infinity], NaN), false, 'Expected [1, 2, NaN] to contain NaN');
- });
-
- QUnit.test('includes with +- 0', function(assert) {
- _.each([-0, +0], function(val) {
- assert.strictEqual(_.includes([1, 2, val, val], val), true);
- assert.strictEqual(_.includes([1, 2, val, val], -val), true);
- assert.strictEqual(_.includes([-1, 1, 2], -val), false);
- });
- });
-
-
- QUnit.test('invoke', function(assert) {
- assert.expect(5);
- var list = [[5, 1, 7], [3, 2, 1]];
- var result = _.invoke(list, 'sort');
- assert.deepEqual(result[0], [1, 5, 7], 'first array sorted');
- assert.deepEqual(result[1], [1, 2, 3], 'second array sorted');
-
- _.invoke([{
- method: function() {
- assert.deepEqual(_.toArray(arguments), [1, 2, 3], 'called with arguments');
- }
- }], 'method', 1, 2, 3);
-
- assert.deepEqual(_.invoke([{a: null}, {}, {a: _.constant(1)}], 'a'), [null, void 0, 1], 'handles null & undefined');
-
- assert.raises(function() {
- _.invoke([{a: 1}], 'a');
- }, TypeError, 'throws for non-functions');
- });
-
- QUnit.test('invoke w/ function reference', function(assert) {
- var list = [[5, 1, 7], [3, 2, 1]];
- var result = _.invoke(list, Array.prototype.sort);
- assert.deepEqual(result[0], [1, 5, 7], 'first array sorted');
- assert.deepEqual(result[1], [1, 2, 3], 'second array sorted');
-
- assert.deepEqual(_.invoke([1, 2, 3], function(a) {
- return a + this;
- }, 5), [6, 7, 8], 'receives params from invoke');
- });
-
- // Relevant when using ClojureScript
- QUnit.test('invoke when strings have a call method', function(assert) {
- String.prototype.call = function() {
- return 42;
- };
- var list = [[5, 1, 7], [3, 2, 1]];
- var s = 'foo';
- assert.equal(s.call(), 42, 'call function exists');
- var result = _.invoke(list, 'sort');
- assert.deepEqual(result[0], [1, 5, 7], 'first array sorted');
- assert.deepEqual(result[1], [1, 2, 3], 'second array sorted');
- delete String.prototype.call;
- assert.equal(s.call, void 0, 'call function removed');
- });
-
- QUnit.test('pluck', function(assert) {
- var people = [{name: 'moe', age: 30}, {name: 'curly', age: 50}];
- assert.deepEqual(_.pluck(people, 'name'), ['moe', 'curly'], 'pulls names out of objects');
- assert.deepEqual(_.pluck(people, 'address'), [void 0, void 0], 'missing properties are returned as undefined');
- //compat: most flexible handling of edge cases
- assert.deepEqual(_.pluck([{'[object Object]': 1}], {}), [1]);
- });
-
- QUnit.test('where', function(assert) {
- var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}];
- var result = _.where(list, {a: 1});
- assert.equal(result.length, 3);
- assert.equal(result[result.length - 1].b, 4);
- result = _.where(list, {b: 2});
- assert.equal(result.length, 2);
- assert.equal(result[0].a, 1);
- result = _.where(list, {});
- assert.equal(result.length, list.length);
-
- function test() {}
- test.map = _.map;
- assert.deepEqual(_.where([_, {a: 1, b: 2}, _], test), [_, _], 'checks properties given function');
- });
-
- QUnit.test('findWhere', function(assert) {
- var list = [{a: 1, b: 2}, {a: 2, b: 2}, {a: 1, b: 3}, {a: 1, b: 4}, {a: 2, b: 4}];
- var result = _.findWhere(list, {a: 1});
- assert.deepEqual(result, {a: 1, b: 2});
- result = _.findWhere(list, {b: 4});
- assert.deepEqual(result, {a: 1, b: 4});
-
- result = _.findWhere(list, {c: 1});
- assert.ok(_.isUndefined(result), 'undefined when not found');
-
- result = _.findWhere([], {c: 1});
- assert.ok(_.isUndefined(result), 'undefined when searching empty list');
-
- function test() {}
- test.map = _.map;
- assert.equal(_.findWhere([_, {a: 1, b: 2}, _], test), _, 'checks properties given function');
-
- function TestClass() {
- this.y = 5;
- this.x = 'foo';
- }
- var expect = {c: 1, x: 'foo', y: 5};
- assert.deepEqual(_.findWhere([{y: 5, b: 6}, expect], new TestClass()), expect, 'uses class instance properties');
- });
-
- QUnit.test('max', function(assert) {
- assert.equal(-Infinity, _.max(null), 'can handle null/undefined');
- assert.equal(-Infinity, _.max(void 0), 'can handle null/undefined');
- assert.equal(-Infinity, _.max(null, _.identity), 'can handle null/undefined');
-
- assert.equal(3, _.max([1, 2, 3]), 'can perform a regular Math.max');
-
- var neg = _.max([1, 2, 3], function(num){ return -num; });
- assert.equal(neg, 1, 'can perform a computation-based max');
-
- assert.equal(-Infinity, _.max({}), 'Maximum value of an empty object');
- assert.equal(-Infinity, _.max([]), 'Maximum value of an empty array');
- assert.equal(_.max({a: 'a'}), -Infinity, 'Maximum value of a non-numeric collection');
-
- assert.equal(299999, _.max(_.range(1, 300000)), 'Maximum value of a too-big array');
-
- assert.equal(3, _.max([1, 2, 3, 'test']), 'Finds correct max in array starting with num and containing a NaN');
- assert.equal(3, _.max(['test', 1, 2, 3]), 'Finds correct max in array starting with NaN');
-
- assert.equal(3, _.max([1, 2, 3, null]), 'Finds correct max in array starting with num and containing a `null`');
- assert.equal(3, _.max([null, 1, 2, 3]), 'Finds correct max in array starting with a `null`');
-
- assert.equal(3, _.max([1, 2, 3, '']), 'Finds correct max in array starting with num and containing an empty string');
- assert.equal(3, _.max(['', 1, 2, 3]), 'Finds correct max in array starting with an empty string');
-
- assert.equal(3, _.max([1, 2, 3, false]), 'Finds correct max in array starting with num and containing a false');
- assert.equal(3, _.max([false, 1, 2, 3]), 'Finds correct max in array starting with a false');
-
- assert.equal(4, _.max([0, 1, 2, 3, 4]), 'Finds correct max in array containing a zero');
- assert.equal(0, _.max([-3, -2, -1, 0]), 'Finds correct max in array containing negative numbers');
-
- assert.deepEqual([3, 6], _.map([[1, 2, 3], [4, 5, 6]], _.max), 'Finds correct max in array when mapping through multiple arrays');
-
- var a = {x: -Infinity};
- var b = {x: -Infinity};
- var iterator = function(o){ return o.x; };
- assert.equal(_.max([a, b], iterator), a, 'Respects iterator return value of -Infinity');
-
- assert.deepEqual(_.max([{a: 1}, {a: 0, b: 3}, {a: 4}, {a: 2}], 'a'), {a: 4}, 'String keys use property iterator');
-
- assert.deepEqual(_.max([0, 2], function(c){ return c * this.x; }, {x: 1}), 2, 'Iterator context');
- assert.deepEqual(_.max([[1], [2, 3], [-1, 4], [5]], 0), [5], 'Lookup falsy iterator');
- assert.deepEqual(_.max([{0: 1}, {0: 2}, {0: -1}, {a: 1}], 0), {0: 2}, 'Lookup falsy iterator');
- });
-
- QUnit.test('min', function(assert) {
- assert.equal(Infinity, _.min(null), 'can handle null/undefined');
- assert.equal(Infinity, _.min(void 0), 'can handle null/undefined');
- assert.equal(Infinity, _.min(null, _.identity), 'can handle null/undefined');
-
- assert.equal(1, _.min([1, 2, 3]), 'can perform a regular Math.min');
-
- var neg = _.min([1, 2, 3], function(num){ return -num; });
- assert.equal(neg, 3, 'can perform a computation-based min');
-
- assert.equal(Infinity, _.min({}), 'Minimum value of an empty object');
- assert.equal(Infinity, _.min([]), 'Minimum value of an empty array');
- assert.equal(_.min({a: 'a'}), Infinity, 'Minimum value of a non-numeric collection');
-
- assert.deepEqual([1, 4], _.map([[1, 2, 3], [4, 5, 6]], _.min), 'Finds correct min in array when mapping through multiple arrays');
-
- var now = new Date(9999999999);
- var then = new Date(0);
- assert.equal(_.min([now, then]), then);
-
- assert.equal(1, _.min(_.range(1, 300000)), 'Minimum value of a too-big array');
-
- assert.equal(1, _.min([1, 2, 3, 'test']), 'Finds correct min in array starting with num and containing a NaN');
- assert.equal(1, _.min(['test', 1, 2, 3]), 'Finds correct min in array starting with NaN');
-
- assert.equal(1, _.min([1, 2, 3, null]), 'Finds correct min in array starting with num and containing a `null`');
- assert.equal(1, _.min([null, 1, 2, 3]), 'Finds correct min in array starting with a `null`');
-
- assert.equal(0, _.min([0, 1, 2, 3, 4]), 'Finds correct min in array containing a zero');
- assert.equal(-3, _.min([-3, -2, -1, 0]), 'Finds correct min in array containing negative numbers');
-
- var a = {x: Infinity};
- var b = {x: Infinity};
- var iterator = function(o){ return o.x; };
- assert.equal(_.min([a, b], iterator), a, 'Respects iterator return value of Infinity');
-
- assert.deepEqual(_.min([{a: 1}, {a: 0, b: 3}, {a: 4}, {a: 2}], 'a'), {a: 0, b: 3}, 'String keys use property iterator');
-
- assert.deepEqual(_.min([0, 2], function(c){ return c * this.x; }, {x: -1}), 2, 'Iterator context');
- assert.deepEqual(_.min([[1], [2, 3], [-1, 4], [5]], 0), [-1, 4], 'Lookup falsy iterator');
- assert.deepEqual(_.min([{0: 1}, {0: 2}, {0: -1}, {a: 1}], 0), {0: -1}, 'Lookup falsy iterator');
- });
-
- QUnit.test('sortBy', function(assert) {
- var people = [{name: 'curly', age: 50}, {name: 'moe', age: 30}];
- people = _.sortBy(people, function(person){ return person.age; });
- assert.deepEqual(_.pluck(people, 'name'), ['moe', 'curly'], 'stooges sorted by age');
-
- var list = [void 0, 4, 1, void 0, 3, 2];
- assert.deepEqual(_.sortBy(list, _.identity), [1, 2, 3, 4, void 0, void 0], 'sortBy with undefined values');
-
- list = ['one', 'two', 'three', 'four', 'five'];
- var sorted = _.sortBy(list, 'length');
- assert.deepEqual(sorted, ['one', 'two', 'four', 'five', 'three'], 'sorted by length');
-
- function Pair(x, y) {
- this.x = x;
- this.y = y;
- }
-
- var stableArray = [
- new Pair(1, 1), new Pair(1, 2),
- new Pair(1, 3), new Pair(1, 4),
- new Pair(1, 5), new Pair(1, 6),
- new Pair(2, 1), new Pair(2, 2),
- new Pair(2, 3), new Pair(2, 4),
- new Pair(2, 5), new Pair(2, 6),
- new Pair(void 0, 1), new Pair(void 0, 2),
- new Pair(void 0, 3), new Pair(void 0, 4),
- new Pair(void 0, 5), new Pair(void 0, 6)
- ];
-
- var stableObject = _.object('abcdefghijklmnopqr'.split(''), stableArray);
-
- var actual = _.sortBy(stableArray, function(pair) {
- return pair.x;
- });
-
- assert.deepEqual(actual, stableArray, 'sortBy should be stable for arrays');
- assert.deepEqual(_.sortBy(stableArray, 'x'), stableArray, 'sortBy accepts property string');
-
- actual = _.sortBy(stableObject, function(pair) {
- return pair.x;
- });
-
- assert.deepEqual(actual, stableArray, 'sortBy should be stable for objects');
-
- list = ['q', 'w', 'e', 'r', 't', 'y'];
- assert.deepEqual(_.sortBy(list), ['e', 'q', 'r', 't', 'w', 'y'], 'uses _.identity if iterator is not specified');
- });
-
- QUnit.test('groupBy', function(assert) {
- var parity = _.groupBy([1, 2, 3, 4, 5, 6], function(num){ return num % 2; });
- assert.ok('0' in parity && '1' in parity, 'created a group for each value');
- assert.deepEqual(parity[0], [2, 4, 6], 'put each even number in the right group');
-
- var list = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];
- var grouped = _.groupBy(list, 'length');
- assert.deepEqual(grouped['3'], ['one', 'two', 'six', 'ten']);
- assert.deepEqual(grouped['4'], ['four', 'five', 'nine']);
- assert.deepEqual(grouped['5'], ['three', 'seven', 'eight']);
-
- var context = {};
- _.groupBy([{}], function(){ assert.ok(this === context); }, context);
-
- grouped = _.groupBy([4.2, 6.1, 6.4], function(num) {
- return Math.floor(num) > 4 ? 'hasOwnProperty' : 'constructor';
- });
- assert.equal(grouped.constructor.length, 1);
- assert.equal(grouped.hasOwnProperty.length, 2);
-
- var array = [{}];
- _.groupBy(array, function(value, index, obj){ assert.ok(obj === array); });
-
- array = [1, 2, 1, 2, 3];
- grouped = _.groupBy(array);
- assert.equal(grouped['1'].length, 2);
- assert.equal(grouped['3'].length, 1);
-
- var matrix = [
- [1, 2],
- [1, 3],
- [2, 3]
- ];
- assert.deepEqual(_.groupBy(matrix, 0), {1: [[1, 2], [1, 3]], 2: [[2, 3]]});
- assert.deepEqual(_.groupBy(matrix, 1), {2: [[1, 2]], 3: [[1, 3], [2, 3]]});
- });
-
- QUnit.test('indexBy', function(assert) {
- var parity = _.indexBy([1, 2, 3, 4, 5], function(num){ return num % 2 === 0; });
- assert.equal(parity['true'], 4);
- assert.equal(parity['false'], 5);
-
- var list = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];
- var grouped = _.indexBy(list, 'length');
- assert.equal(grouped['3'], 'ten');
- assert.equal(grouped['4'], 'nine');
- assert.equal(grouped['5'], 'eight');
-
- var array = [1, 2, 1, 2, 3];
- grouped = _.indexBy(array);
- assert.equal(grouped['1'], 1);
- assert.equal(grouped['2'], 2);
- assert.equal(grouped['3'], 3);
- });
-
- QUnit.test('countBy', function(assert) {
- var parity = _.countBy([1, 2, 3, 4, 5], function(num){ return num % 2 === 0; });
- assert.equal(parity['true'], 2);
- assert.equal(parity['false'], 3);
-
- var list = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];
- var grouped = _.countBy(list, 'length');
- assert.equal(grouped['3'], 4);
- assert.equal(grouped['4'], 3);
- assert.equal(grouped['5'], 3);
-
- var context = {};
- _.countBy([{}], function(){ assert.ok(this === context); }, context);
-
- grouped = _.countBy([4.2, 6.1, 6.4], function(num) {
- return Math.floor(num) > 4 ? 'hasOwnProperty' : 'constructor';
- });
- assert.equal(grouped.constructor, 1);
- assert.equal(grouped.hasOwnProperty, 2);
-
- var array = [{}];
- _.countBy(array, function(value, index, obj){ assert.ok(obj === array); });
-
- array = [1, 2, 1, 2, 3];
- grouped = _.countBy(array);
- assert.equal(grouped['1'], 2);
- assert.equal(grouped['3'], 1);
- });
-
- QUnit.test('shuffle', function(assert) {
- assert.deepEqual(_.shuffle([1]), [1], 'behaves correctly on size 1 arrays');
- var numbers = _.range(20);
- var shuffled = _.shuffle(numbers);
- assert.notDeepEqual(numbers, shuffled, 'does change the order'); // Chance of false negative: 1 in ~2.4*10^18
- assert.notStrictEqual(numbers, shuffled, 'original object is unmodified');
- assert.deepEqual(numbers, _.sortBy(shuffled), 'contains the same members before and after shuffle');
-
- shuffled = _.shuffle({a: 1, b: 2, c: 3, d: 4});
- assert.equal(shuffled.length, 4);
- assert.deepEqual(shuffled.sort(), [1, 2, 3, 4], 'works on objects');
- });
-
- QUnit.test('sample', function(assert) {
- assert.strictEqual(_.sample([1]), 1, 'behaves correctly when no second parameter is given');
- assert.deepEqual(_.sample([1, 2, 3], -2), [], 'behaves correctly on negative n');
- var numbers = _.range(10);
- var allSampled = _.sample(numbers, 10).sort();
- assert.deepEqual(allSampled, numbers, 'contains the same members before and after sample');
- allSampled = _.sample(numbers, 20).sort();
- assert.deepEqual(allSampled, numbers, 'also works when sampling more objects than are present');
- assert.ok(_.contains(numbers, _.sample(numbers)), 'sampling a single element returns something from the array');
- assert.strictEqual(_.sample([]), void 0, 'sampling empty array with no number returns undefined');
- assert.notStrictEqual(_.sample([], 5), [], 'sampling empty array with a number returns an empty array');
- assert.notStrictEqual(_.sample([1, 2, 3], 0), [], 'sampling an array with 0 picks returns an empty array');
- assert.deepEqual(_.sample([1, 2], -1), [], 'sampling a negative number of picks returns an empty array');
- assert.ok(_.contains([1, 2, 3], _.sample({a: 1, b: 2, c: 3})), 'sample one value from an object');
- var partialSample = _.sample(_.range(1000), 10);
- var partialSampleSorted = partialSample.sort();
- assert.notDeepEqual(partialSampleSorted, _.range(10), 'samples from the whole array, not just the beginning');
- });
-
- QUnit.test('toArray', function(assert) {
- assert.ok(!_.isArray(arguments), 'arguments object is not an array');
- assert.ok(_.isArray(_.toArray(arguments)), 'arguments object converted into array');
- var a = [1, 2, 3];
- assert.ok(_.toArray(a) !== a, 'array is cloned');
- assert.deepEqual(_.toArray(a), [1, 2, 3], 'cloned array contains same elements');
-
- var numbers = _.toArray({one: 1, two: 2, three: 3});
- assert.deepEqual(numbers, [1, 2, 3], 'object flattened into array');
-
- var hearts = '\uD83D\uDC95';
- var pair = hearts.split('');
- var expected = [pair[0], hearts, '&', hearts, pair[1]];
- assert.deepEqual(_.toArray(expected.join('')), expected, 'maintains astral characters');
- assert.deepEqual(_.toArray(''), [], 'empty string into empty array');
-
- if (typeof document != 'undefined') {
- // test in IE < 9
- var actual;
- try {
- actual = _.toArray(document.childNodes);
- } catch (e) { /* ignored */ }
- assert.deepEqual(actual, _.map(document.childNodes, _.identity), 'works on NodeList');
- }
- });
-
- QUnit.test('size', function(assert) {
- assert.equal(_.size({one: 1, two: 2, three: 3}), 3, 'can compute the size of an object');
- assert.equal(_.size([1, 2, 3]), 3, 'can compute the size of an array');
- assert.equal(_.size({length: 3, 0: 0, 1: 0, 2: 0}), 3, 'can compute the size of Array-likes');
-
- var func = function() {
- return _.size(arguments);
- };
-
- assert.equal(func(1, 2, 3, 4), 4, 'can test the size of the arguments object');
-
- assert.equal(_.size('hello'), 5, 'can compute the size of a string literal');
- assert.equal(_.size(new String('hello')), 5, 'can compute the size of string object');
-
- assert.equal(_.size(null), 0, 'handles nulls');
- assert.equal(_.size(0), 0, 'handles numbers');
- });
-
- QUnit.test('partition', function(assert) {
- var list = [0, 1, 2, 3, 4, 5];
- assert.deepEqual(_.partition(list, function(x) { return x < 4; }), [[0, 1, 2, 3], [4, 5]], 'handles bool return values');
- assert.deepEqual(_.partition(list, function(x) { return x & 1; }), [[1, 3, 5], [0, 2, 4]], 'handles 0 and 1 return values');
- assert.deepEqual(_.partition(list, function(x) { return x - 3; }), [[0, 1, 2, 4, 5], [3]], 'handles other numeric return values');
- assert.deepEqual(_.partition(list, function(x) { return x > 1 ? null : true; }), [[0, 1], [2, 3, 4, 5]], 'handles null return values');
- assert.deepEqual(_.partition(list, function(x) { if (x < 2) return true; }), [[0, 1], [2, 3, 4, 5]], 'handles undefined return values');
- assert.deepEqual(_.partition({a: 1, b: 2, c: 3}, function(x) { return x > 1; }), [[2, 3], [1]], 'handles objects');
-
- assert.deepEqual(_.partition(list, function(x, index) { return index % 2; }), [[1, 3, 5], [0, 2, 4]], 'can reference the array index');
- assert.deepEqual(_.partition(list, function(x, index, arr) { return x === arr.length - 1; }), [[5], [0, 1, 2, 3, 4]], 'can reference the collection');
-
- // Default iterator
- assert.deepEqual(_.partition([1, false, true, '']), [[1, true], [false, '']], 'Default iterator');
- assert.deepEqual(_.partition([{x: 1}, {x: 0}, {x: 1}], 'x'), [[{x: 1}, {x: 1}], [{x: 0}]], 'Takes a string');
-
- // Context
- var predicate = function(x){ return x === this.x; };
- assert.deepEqual(_.partition([1, 2, 3], predicate, {x: 2}), [[2], [1, 3]], 'partition takes a context argument');
-
- assert.deepEqual(_.partition([{a: 1}, {b: 2}, {a: 1, b: 2}], {a: 1}), [[{a: 1}, {a: 1, b: 2}], [{b: 2}]], 'predicate can be object');
-
- var object = {a: 1};
- _.partition(object, function(val, key, obj) {
- assert.equal(val, 1);
- assert.equal(key, 'a');
- assert.equal(obj, object);
- assert.equal(this, predicate);
- }, predicate);
- });
-
- if (typeof document != 'undefined') {
- QUnit.test('Can use various collection methods on NodeLists', function(assert) {
- var parent = document.createElement('div');
- parent.innerHTML = '<span id=id1></span>textnode<span id=id2></span>';
-
- var elementChildren = _.filter(parent.childNodes, _.isElement);
- assert.equal(elementChildren.length, 2);
-
- assert.deepEqual(_.map(elementChildren, 'id'), ['id1', 'id2']);
- assert.deepEqual(_.map(parent.childNodes, 'nodeType'), [1, 3, 1]);
-
- assert.ok(!_.every(parent.childNodes, _.isElement));
- assert.ok(_.some(parent.childNodes, _.isElement));
-
- function compareNode(node) {
- return _.isElement(node) ? node.id.charAt(2) : void 0;
- }
- assert.equal(_.max(parent.childNodes, compareNode), _.last(parent.childNodes));
- assert.equal(_.min(parent.childNodes, compareNode), _.first(parent.childNodes));
- });
- }
-
-}());
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/cross-document.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/cross-document.js
deleted file mode 100644
index cb68a3d9..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/cross-document.js
+++ /dev/null
@@ -1,141 +0,0 @@
-(function() {
- if (typeof document == 'undefined') return;
-
- var _ = typeof require == 'function' ? require('..') : window._;
-
- QUnit.module('Cross Document');
- /* global iObject, iElement, iArguments, iFunction, iArray, iError, iString, iNumber, iBoolean, iDate, iRegExp, iNaN, iNull, iUndefined, ActiveXObject */
-
- // Setup remote variables for iFrame tests.
- var iframe = document.createElement('iframe');
- iframe.frameBorder = iframe.height = iframe.width = 0;
- document.body.appendChild(iframe);
- var iDoc = (iDoc = iframe.contentDocument || iframe.contentWindow).document || iDoc;
- iDoc.write(
- [
- '<script>',
- 'parent.iElement = document.createElement("div");',
- 'parent.iArguments = (function(){ return arguments; })(1, 2, 3);',
- 'parent.iArray = [1, 2, 3];',
- 'parent.iString = new String("hello");',
- 'parent.iNumber = new Number(100);',
- 'parent.iFunction = (function(){});',
- 'parent.iDate = new Date();',
- 'parent.iRegExp = /hi/;',
- 'parent.iNaN = NaN;',
- 'parent.iNull = null;',
- 'parent.iBoolean = new Boolean(false);',
- 'parent.iUndefined = undefined;',
- 'parent.iObject = {};',
- 'parent.iError = new Error();',
- '</script>'
- ].join('\n')
- );
- iDoc.close();
-
- QUnit.test('isEqual', function(assert) {
-
- assert.ok(!_.isEqual(iNumber, 101));
- assert.ok(_.isEqual(iNumber, 100));
-
- // Objects from another frame.
- assert.ok(_.isEqual({}, iObject), 'Objects with equivalent members created in different documents are equal');
-
- // Array from another frame.
- assert.ok(_.isEqual([1, 2, 3], iArray), 'Arrays with equivalent elements created in different documents are equal');
- });
-
- QUnit.test('isEmpty', function(assert) {
- assert.ok(!_([iNumber]).isEmpty(), '[1] is not empty');
- assert.ok(!_.isEmpty(iArray), '[] is empty');
- assert.ok(_.isEmpty(iObject), '{} is empty');
- });
-
- QUnit.test('isElement', function(assert) {
- assert.ok(!_.isElement('div'), 'strings are not dom elements');
- assert.ok(_.isElement(document.body), 'the body tag is a DOM element');
- assert.ok(_.isElement(iElement), 'even from another frame');
- });
-
- QUnit.test('isArguments', function(assert) {
- assert.ok(_.isArguments(iArguments), 'even from another frame');
- });
-
- QUnit.test('isObject', function(assert) {
- assert.ok(_.isObject(iElement), 'even from another frame');
- assert.ok(_.isObject(iFunction), 'even from another frame');
- });
-
- QUnit.test('isArray', function(assert) {
- assert.ok(_.isArray(iArray), 'even from another frame');
- });
-
- QUnit.test('isString', function(assert) {
- assert.ok(_.isString(iString), 'even from another frame');
- });
-
- QUnit.test('isNumber', function(assert) {
- assert.ok(_.isNumber(iNumber), 'even from another frame');
- });
-
- QUnit.test('isBoolean', function(assert) {
- assert.ok(_.isBoolean(iBoolean), 'even from another frame');
- });
-
- QUnit.test('isFunction', function(assert) {
- assert.ok(_.isFunction(iFunction), 'even from another frame');
- });
-
- QUnit.test('isDate', function(assert) {
- assert.ok(_.isDate(iDate), 'even from another frame');
- });
-
- QUnit.test('isRegExp', function(assert) {
- assert.ok(_.isRegExp(iRegExp), 'even from another frame');
- });
-
- QUnit.test('isNaN', function(assert) {
- assert.ok(_.isNaN(iNaN), 'even from another frame');
- });
-
- QUnit.test('isNull', function(assert) {
- assert.ok(_.isNull(iNull), 'even from another frame');
- });
-
- QUnit.test('isUndefined', function(assert) {
- assert.ok(_.isUndefined(iUndefined), 'even from another frame');
- });
-
- QUnit.test('isError', function(assert) {
- assert.ok(_.isError(iError), 'even from another frame');
- });
-
- if (typeof ActiveXObject != 'undefined') {
- QUnit.test('IE host objects', function(assert) {
- var xml = new ActiveXObject('Msxml2.DOMDocument.3.0');
- assert.ok(!_.isNumber(xml));
- assert.ok(!_.isBoolean(xml));
- assert.ok(!_.isNaN(xml));
- assert.ok(!_.isFunction(xml));
- assert.ok(!_.isNull(xml));
- assert.ok(!_.isUndefined(xml));
- });
-
- QUnit.test('#1621 IE 11 compat mode DOM elements are not functions', function(assert) {
- var fn = function() {};
- var xml = new ActiveXObject('Msxml2.DOMDocument.3.0');
- var div = document.createElement('div');
-
- // JIT the function
- var count = 200;
- while (count--) {
- _.isFunction(fn);
- }
-
- assert.equal(_.isFunction(xml), false);
- assert.equal(_.isFunction(div), false);
- assert.equal(_.isFunction(fn), true);
- });
- }
-
-}());
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/functions.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/functions.js
deleted file mode 100644
index f696bd64..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/functions.js
+++ /dev/null
@@ -1,728 +0,0 @@
-(function() {
- var _ = typeof require == 'function' ? require('..') : window._;
-
- QUnit.module('Functions');
- QUnit.config.asyncRetries = 3;
-
- QUnit.test('bind', function(assert) {
- var context = {name: 'moe'};
- var func = function(arg) { return 'name: ' + (this.name || arg); };
- var bound = _.bind(func, context);
- assert.equal(bound(), 'name: moe', 'can bind a function to a context');
-
- bound = _(func).bind(context);
- assert.equal(bound(), 'name: moe', 'can do OO-style binding');
-
- bound = _.bind(func, null, 'curly');
- var result = bound();
- // Work around a PhantomJS bug when applying a function with null|undefined.
- assert.ok(result === 'name: curly' || result === 'name: ' + window.name, 'can bind without specifying a context');
-
- func = function(salutation, name) { return salutation + ': ' + name; };
- func = _.bind(func, this, 'hello');
- assert.equal(func('moe'), 'hello: moe', 'the function was partially applied in advance');
-
- func = _.bind(func, this, 'curly');
- assert.equal(func(), 'hello: curly', 'the function was completely applied in advance');
-
- func = function(salutation, firstname, lastname) { return salutation + ': ' + firstname + ' ' + lastname; };
- func = _.bind(func, this, 'hello', 'moe', 'curly');
- assert.equal(func(), 'hello: moe curly', 'the function was partially applied in advance and can accept multiple arguments');
-
- func = function(ctx, message) { assert.equal(this, ctx, message); };
- _.bind(func, 0, 0, 'can bind a function to `0`')();
- _.bind(func, '', '', 'can bind a function to an empty string')();
- _.bind(func, false, false, 'can bind a function to `false`')();
-
- // These tests are only meaningful when using a browser without a native bind function
- // To test this with a modern browser, set underscore's nativeBind to undefined
- var F = function() { return this; };
- var boundf = _.bind(F, {hello: 'moe curly'});
- var Boundf = boundf; // make eslint happy.
- var newBoundf = new Boundf();
- assert.equal(newBoundf.hello, void 0, 'function should not be bound to the context, to comply with ECMAScript 5');
- assert.equal(boundf().hello, 'moe curly', "When called without the new operator, it's OK to be bound to the context");
- assert.ok(newBoundf instanceof F, 'a bound instance is an instance of the original function');
-
- assert.raises(function() { _.bind('notafunction'); }, TypeError, 'throws an error when binding to a non-function');
- });
-
- QUnit.test('partial', function(assert) {
- var obj = {name: 'moe'};
- var func = function() { return this.name + ' ' + _.toArray(arguments).join(' '); };
-
- obj.func = _.partial(func, 'a', 'b');
- assert.equal(obj.func('c', 'd'), 'moe a b c d', 'can partially apply');
-
- obj.func = _.partial(func, _, 'b', _, 'd');
- assert.equal(obj.func('a', 'c'), 'moe a b c d', 'can partially apply with placeholders');
-
- func = _.partial(function() { return arguments.length; }, _, 'b', _, 'd');
- assert.equal(func('a', 'c', 'e'), 5, 'accepts more arguments than the number of placeholders');
- assert.equal(func('a'), 4, 'accepts fewer arguments than the number of placeholders');
-
- func = _.partial(function() { return typeof arguments[2]; }, _, 'b', _, 'd');
- assert.equal(func('a'), 'undefined', 'unfilled placeholders are undefined');
-
- // passes context
- function MyWidget(name, options) {
- this.name = name;
- this.options = options;
- }
- MyWidget.prototype.get = function() {
- return this.name;
- };
- var MyWidgetWithCoolOpts = _.partial(MyWidget, _, {a: 1});
- var widget = new MyWidgetWithCoolOpts('foo');
- assert.ok(widget instanceof MyWidget, 'Can partially bind a constructor');
- assert.equal(widget.get(), 'foo', 'keeps prototype');
- assert.deepEqual(widget.options, {a: 1});
-
- _.partial.placeholder = obj;
- func = _.partial(function() { return arguments.length; }, obj, 'b', obj, 'd');
- assert.equal(func('a'), 4, 'allows the placeholder to be swapped out');
-
- _.partial.placeholder = {};
- func = _.partial(function() { return arguments.length; }, obj, 'b', obj, 'd');
- assert.equal(func('a'), 5, 'swapping the placeholder preserves previously bound arguments');
-
- _.partial.placeholder = _;
- });
-
- QUnit.test('bindAll', function(assert) {
- var curly = {name: 'curly'};
- var moe = {
- name: 'moe',
- getName: function() { return 'name: ' + this.name; },
- sayHi: function() { return 'hi: ' + this.name; }
- };
- curly.getName = moe.getName;
- _.bindAll(moe, 'getName', 'sayHi');
- curly.sayHi = moe.sayHi;
- assert.equal(curly.getName(), 'name: curly', 'unbound function is bound to current object');
- assert.equal(curly.sayHi(), 'hi: moe', 'bound function is still bound to original object');
-
- curly = {name: 'curly'};
- moe = {
- name: 'moe',
- getName: function() { return 'name: ' + this.name; },
- sayHi: function() { return 'hi: ' + this.name; },
- sayLast: function() { return this.sayHi(_.last(arguments)); }
- };
-
- assert.raises(function() { _.bindAll(moe); }, Error, 'throws an error for bindAll with no functions named');
- assert.raises(function() { _.bindAll(moe, 'sayBye'); }, TypeError, 'throws an error for bindAll if the given key is undefined');
- assert.raises(function() { _.bindAll(moe, 'name'); }, TypeError, 'throws an error for bindAll if the given key is not a function');
-
- _.bindAll(moe, 'sayHi', 'sayLast');
- curly.sayHi = moe.sayHi;
- assert.equal(curly.sayHi(), 'hi: moe');
-
- var sayLast = moe.sayLast;
- assert.equal(sayLast(1, 2, 3, 4, 5, 6, 7, 'Tom'), 'hi: moe', 'createCallback works with any number of arguments');
-
- _.bindAll(moe, ['getName']);
- var getName = moe.getName;
- assert.equal(getName(), 'name: moe', 'flattens arguments into a single list');
- });
-
- QUnit.test('memoize', function(assert) {
- var fib = function(n) {
- return n < 2 ? n : fib(n - 1) + fib(n - 2);
- };
- assert.equal(fib(10), 55, 'a memoized version of fibonacci produces identical results');
- fib = _.memoize(fib); // Redefine `fib` for memoization
- assert.equal(fib(10), 55, 'a memoized version of fibonacci produces identical results');
-
- var o = function(str) {
- return str;
- };
- var fastO = _.memoize(o);
- assert.equal(o('toString'), 'toString', 'checks hasOwnProperty');
- assert.equal(fastO('toString'), 'toString', 'checks hasOwnProperty');
-
- // Expose the cache.
- var upper = _.memoize(function(s) {
- return s.toUpperCase();
- });
- assert.equal(upper('foo'), 'FOO');
- assert.equal(upper('bar'), 'BAR');
- assert.deepEqual(upper.cache, {foo: 'FOO', bar: 'BAR'});
- upper.cache = {foo: 'BAR', bar: 'FOO'};
- assert.equal(upper('foo'), 'BAR');
- assert.equal(upper('bar'), 'FOO');
-
- var hashed = _.memoize(function(key) {
- //https://github.com/jashkenas/underscore/pull/1679#discussion_r13736209
- assert.ok(/[a-z]+/.test(key), 'hasher doesn\'t change keys');
- return key;
- }, function(key) {
- return key.toUpperCase();
- });
- hashed('yep');
- assert.deepEqual(hashed.cache, {YEP: 'yep'}, 'takes a hasher');
-
- // Test that the hash function can be used to swizzle the key.
- var objCacher = _.memoize(function(value, key) {
- return {key: key, value: value};
- }, function(value, key) {
- return key;
- });
- var myObj = objCacher('a', 'alpha');
- var myObjAlias = objCacher('b', 'alpha');
- assert.notStrictEqual(myObj, void 0, 'object is created if second argument used as key');
- assert.strictEqual(myObj, myObjAlias, 'object is cached if second argument used as key');
- assert.strictEqual(myObj.value, 'a', 'object is not modified if second argument used as key');
- });
-
- QUnit.test('delay', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var delayed = false;
- _.delay(function(){ delayed = true; }, 100);
- setTimeout(function(){ assert.ok(!delayed, "didn't delay the function quite yet"); }, 50);
- setTimeout(function(){ assert.ok(delayed, 'delayed the function'); done(); }, 150);
- });
-
- QUnit.test('defer', function(assert) {
- assert.expect(1);
- var done = assert.async();
- var deferred = false;
- _.defer(function(bool){ deferred = bool; }, true);
- _.delay(function(){ assert.ok(deferred, 'deferred the function'); done(); }, 50);
- });
-
- QUnit.test('throttle', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 32);
- throttledIncr(); throttledIncr();
-
- assert.equal(counter, 1, 'incr was called immediately');
- _.delay(function(){ assert.equal(counter, 2, 'incr was throttled'); done(); }, 64);
- });
-
- QUnit.test('throttle arguments', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var value = 0;
- var update = function(val){ value = val; };
- var throttledUpdate = _.throttle(update, 32);
- throttledUpdate(1); throttledUpdate(2);
- _.delay(function(){ throttledUpdate(3); }, 64);
- assert.equal(value, 1, 'updated to latest value');
- _.delay(function(){ assert.equal(value, 3, 'updated to latest value'); done(); }, 96);
- });
-
- QUnit.test('throttle once', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ return ++counter; };
- var throttledIncr = _.throttle(incr, 32);
- var result = throttledIncr();
- _.delay(function(){
- assert.equal(result, 1, 'throttled functions return their value');
- assert.equal(counter, 1, 'incr was called once'); done();
- }, 64);
- });
-
- QUnit.test('throttle twice', function(assert) {
- assert.expect(1);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 32);
- throttledIncr(); throttledIncr();
- _.delay(function(){ assert.equal(counter, 2, 'incr was called twice'); done(); }, 64);
- });
-
- QUnit.test('more throttling', function(assert) {
- assert.expect(3);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 30);
- throttledIncr(); throttledIncr();
- assert.equal(counter, 1);
- _.delay(function(){
- assert.equal(counter, 2);
- throttledIncr();
- assert.equal(counter, 3);
- done();
- }, 85);
- });
-
- QUnit.test('throttle repeatedly with results', function(assert) {
- assert.expect(6);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ return ++counter; };
- var throttledIncr = _.throttle(incr, 100);
- var results = [];
- var saveResult = function() { results.push(throttledIncr()); };
- saveResult(); saveResult();
- _.delay(saveResult, 50);
- _.delay(saveResult, 150);
- _.delay(saveResult, 160);
- _.delay(saveResult, 230);
- _.delay(function() {
- assert.equal(results[0], 1, 'incr was called once');
- assert.equal(results[1], 1, 'incr was throttled');
- assert.equal(results[2], 1, 'incr was throttled');
- assert.equal(results[3], 2, 'incr was called twice');
- assert.equal(results[4], 2, 'incr was throttled');
- assert.equal(results[5], 3, 'incr was called trailing');
- done();
- }, 300);
- });
-
- QUnit.test('throttle triggers trailing call when invoked repeatedly', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var counter = 0;
- var limit = 48;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 32);
-
- var stamp = new Date;
- while (new Date - stamp < limit) {
- throttledIncr();
- }
- var lastCount = counter;
- assert.ok(counter > 1);
-
- _.delay(function() {
- assert.ok(counter > lastCount);
- done();
- }, 96);
- });
-
- QUnit.test('throttle does not trigger leading call when leading is set to false', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 60, {leading: false});
-
- throttledIncr(); throttledIncr();
- assert.equal(counter, 0);
-
- _.delay(function() {
- assert.equal(counter, 1);
- done();
- }, 96);
- });
-
- QUnit.test('more throttle does not trigger leading call when leading is set to false', function(assert) {
- assert.expect(3);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 100, {leading: false});
-
- throttledIncr();
- _.delay(throttledIncr, 50);
- _.delay(throttledIncr, 60);
- _.delay(throttledIncr, 200);
- assert.equal(counter, 0);
-
- _.delay(function() {
- assert.equal(counter, 1);
- }, 250);
-
- _.delay(function() {
- assert.equal(counter, 2);
- done();
- }, 350);
- });
-
- QUnit.test('one more throttle with leading: false test', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 100, {leading: false});
-
- var time = new Date;
- while (new Date - time < 350) throttledIncr();
- assert.ok(counter <= 3);
-
- _.delay(function() {
- assert.ok(counter <= 4);
- done();
- }, 200);
- });
-
- QUnit.test('throttle does not trigger trailing call when trailing is set to false', function(assert) {
- assert.expect(4);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 60, {trailing: false});
-
- throttledIncr(); throttledIncr(); throttledIncr();
- assert.equal(counter, 1);
-
- _.delay(function() {
- assert.equal(counter, 1);
-
- throttledIncr(); throttledIncr();
- assert.equal(counter, 2);
-
- _.delay(function() {
- assert.equal(counter, 2);
- done();
- }, 96);
- }, 96);
- });
-
- QUnit.test('throttle continues to function after system time is set backwards', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 100);
- var origNowFunc = _.now;
-
- throttledIncr();
- assert.equal(counter, 1);
- _.now = function() {
- return new Date(2013, 0, 1, 1, 1, 1);
- };
-
- _.delay(function() {
- throttledIncr();
- assert.equal(counter, 2);
- done();
- _.now = origNowFunc;
- }, 200);
- });
-
- QUnit.test('throttle re-entrant', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var sequence = [
- ['b1', 'b2'],
- ['c1', 'c2']
- ];
- var value = '';
- var throttledAppend;
- var append = function(arg){
- value += this + arg;
- var args = sequence.pop();
- if (args) {
- throttledAppend.call(args[0], args[1]);
- }
- };
- throttledAppend = _.throttle(append, 32);
- throttledAppend.call('a1', 'a2');
- assert.equal(value, 'a1a2');
- _.delay(function(){
- assert.equal(value, 'a1a2c1c2b1b2', 'append was throttled successfully');
- done();
- }, 100);
- });
-
- QUnit.test('throttle cancel', function(assert) {
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 32);
- throttledIncr();
- throttledIncr.cancel();
- throttledIncr();
- throttledIncr();
-
- assert.equal(counter, 2, 'incr was called immediately');
- _.delay(function(){ assert.equal(counter, 3, 'incr was throttled'); done(); }, 64);
- });
-
- QUnit.test('throttle cancel with leading: false', function(assert) {
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var throttledIncr = _.throttle(incr, 32, {leading: false});
- throttledIncr();
- throttledIncr.cancel();
-
- assert.equal(counter, 0, 'incr was throttled');
- _.delay(function(){ assert.equal(counter, 0, 'incr was throttled'); done(); }, 64);
- });
-
- QUnit.test('debounce', function(assert) {
- assert.expect(1);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var debouncedIncr = _.debounce(incr, 32);
- debouncedIncr(); debouncedIncr();
- _.delay(debouncedIncr, 16);
- _.delay(function(){ assert.equal(counter, 1, 'incr was debounced'); done(); }, 96);
- });
-
- QUnit.test('debounce cancel', function(assert) {
- assert.expect(1);
- var done = assert.async();
- var counter = 0;
- var incr = function(){ counter++; };
- var debouncedIncr = _.debounce(incr, 32);
- debouncedIncr();
- debouncedIncr.cancel();
- _.delay(function(){ assert.equal(counter, 0, 'incr was not called'); done(); }, 96);
- });
-
- QUnit.test('debounce asap', function(assert) {
- assert.expect(6);
- var done = assert.async();
- var a, b, c;
- var counter = 0;
- var incr = function(){ return ++counter; };
- var debouncedIncr = _.debounce(incr, 64, true);
- a = debouncedIncr();
- b = debouncedIncr();
- assert.equal(a, 1);
- assert.equal(b, 1);
- assert.equal(counter, 1, 'incr was called immediately');
- _.delay(debouncedIncr, 16);
- _.delay(debouncedIncr, 32);
- _.delay(debouncedIncr, 48);
- _.delay(function(){
- assert.equal(counter, 1, 'incr was debounced');
- c = debouncedIncr();
- assert.equal(c, 2);
- assert.equal(counter, 2, 'incr was called again');
- done();
- }, 128);
- });
-
- QUnit.test('debounce asap cancel', function(assert) {
- assert.expect(4);
- var done = assert.async();
- var a, b;
- var counter = 0;
- var incr = function(){ return ++counter; };
- var debouncedIncr = _.debounce(incr, 64, true);
- a = debouncedIncr();
- debouncedIncr.cancel();
- b = debouncedIncr();
- assert.equal(a, 1);
- assert.equal(b, 2);
- assert.equal(counter, 2, 'incr was called immediately');
- _.delay(debouncedIncr, 16);
- _.delay(debouncedIncr, 32);
- _.delay(debouncedIncr, 48);
- _.delay(function(){ assert.equal(counter, 2, 'incr was debounced'); done(); }, 128);
- });
-
- QUnit.test('debounce asap recursively', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var counter = 0;
- var debouncedIncr = _.debounce(function(){
- counter++;
- if (counter < 10) debouncedIncr();
- }, 32, true);
- debouncedIncr();
- assert.equal(counter, 1, 'incr was called immediately');
- _.delay(function(){ assert.equal(counter, 1, 'incr was debounced'); done(); }, 96);
- });
-
- QUnit.test('debounce after system time is set backwards', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var counter = 0;
- var origNowFunc = _.now;
- var debouncedIncr = _.debounce(function(){
- counter++;
- }, 100, true);
-
- debouncedIncr();
- assert.equal(counter, 1, 'incr was called immediately');
-
- _.now = function() {
- return new Date(2013, 0, 1, 1, 1, 1);
- };
-
- _.delay(function() {
- debouncedIncr();
- assert.equal(counter, 2, 'incr was debounced successfully');
- done();
- _.now = origNowFunc;
- }, 200);
- });
-
- QUnit.test('debounce re-entrant', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var sequence = [
- ['b1', 'b2']
- ];
- var value = '';
- var debouncedAppend;
- var append = function(arg){
- value += this + arg;
- var args = sequence.pop();
- if (args) {
- debouncedAppend.call(args[0], args[1]);
- }
- };
- debouncedAppend = _.debounce(append, 32);
- debouncedAppend.call('a1', 'a2');
- assert.equal(value, '');
- _.delay(function(){
- assert.equal(value, 'a1a2b1b2', 'append was debounced successfully');
- done();
- }, 100);
- });
-
- QUnit.test('once', function(assert) {
- var num = 0;
- var increment = _.once(function(){ return ++num; });
- increment();
- increment();
- assert.equal(num, 1);
-
- assert.equal(increment(), 1, 'stores a memo to the last value');
- });
-
- QUnit.test('Recursive onced function.', function(assert) {
- assert.expect(1);
- var f = _.once(function(){
- assert.ok(true);
- f();
- });
- f();
- });
-
- QUnit.test('wrap', function(assert) {
- var greet = function(name){ return 'hi: ' + name; };
- var backwards = _.wrap(greet, function(func, name){ return func(name) + ' ' + name.split('').reverse().join(''); });
- assert.equal(backwards('moe'), 'hi: moe eom', 'wrapped the salutation function');
-
- var inner = function(){ return 'Hello '; };
- var obj = {name: 'Moe'};
- obj.hi = _.wrap(inner, function(fn){ return fn() + this.name; });
- assert.equal(obj.hi(), 'Hello Moe');
-
- var noop = function(){};
- var wrapped = _.wrap(noop, function(){ return Array.prototype.slice.call(arguments, 0); });
- var ret = wrapped(['whats', 'your'], 'vector', 'victor');
- assert.deepEqual(ret, [noop, ['whats', 'your'], 'vector', 'victor']);
- });
-
- QUnit.test('negate', function(assert) {
- var isOdd = function(n){ return n & 1; };
- assert.equal(_.negate(isOdd)(2), true, 'should return the complement of the given function');
- assert.equal(_.negate(isOdd)(3), false, 'should return the complement of the given function');
- });
-
- QUnit.test('compose', function(assert) {
- var greet = function(name){ return 'hi: ' + name; };
- var exclaim = function(sentence){ return sentence + '!'; };
- var composed = _.compose(exclaim, greet);
- assert.equal(composed('moe'), 'hi: moe!', 'can compose a function that takes another');
-
- composed = _.compose(greet, exclaim);
- assert.equal(composed('moe'), 'hi: moe!', 'in this case, the functions are also commutative');
-
- // f(g(h(x, y, z)))
- function h(x, y, z) {
- assert.equal(arguments.length, 3, 'First function called with multiple args');
- return z * y;
- }
- function g(x) {
- assert.equal(arguments.length, 1, 'Composed function is called with 1 argument');
- return x;
- }
- function f(x) {
- assert.equal(arguments.length, 1, 'Composed function is called with 1 argument');
- return x * 2;
- }
- composed = _.compose(f, g, h);
- assert.equal(composed(1, 2, 3), 12);
- });
-
- QUnit.test('after', function(assert) {
- var testAfter = function(afterAmount, timesCalled) {
- var afterCalled = 0;
- var after = _.after(afterAmount, function() {
- afterCalled++;
- });
- while (timesCalled--) after();
- return afterCalled;
- };
-
- assert.equal(testAfter(5, 5), 1, 'after(N) should fire after being called N times');
- assert.equal(testAfter(5, 4), 0, 'after(N) should not fire unless called N times');
- assert.equal(testAfter(0, 0), 0, 'after(0) should not fire immediately');
- assert.equal(testAfter(0, 1), 1, 'after(0) should fire when first invoked');
- });
-
- QUnit.test('before', function(assert) {
- var testBefore = function(beforeAmount, timesCalled) {
- var beforeCalled = 0;
- var before = _.before(beforeAmount, function() { beforeCalled++; });
- while (timesCalled--) before();
- return beforeCalled;
- };
-
- assert.equal(testBefore(5, 5), 4, 'before(N) should not fire after being called N times');
- assert.equal(testBefore(5, 4), 4, 'before(N) should fire before being called N times');
- assert.equal(testBefore(0, 0), 0, 'before(0) should not fire immediately');
- assert.equal(testBefore(0, 1), 0, 'before(0) should not fire when first invoked');
-
- var context = {num: 0};
- var increment = _.before(3, function(){ return ++this.num; });
- _.times(10, increment, context);
- assert.equal(increment(), 2, 'stores a memo to the last value');
- assert.equal(context.num, 2, 'provides context');
- });
-
- QUnit.test('iteratee', function(assert) {
- var identity = _.iteratee();
- assert.equal(identity, _.identity, '_.iteratee is exposed as an external function.');
-
- function fn() {
- return arguments;
- }
- _.each([_.iteratee(fn), _.iteratee(fn, {})], function(cb) {
- assert.equal(cb().length, 0);
- assert.deepEqual(_.toArray(cb(1, 2, 3)), _.range(1, 4));
- assert.deepEqual(_.toArray(cb(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)), _.range(1, 11));
- });
-
- });
-
- QUnit.test('restArgs', function(assert) {
- assert.expect(10);
- _.restArgs(function(a, args) {
- assert.strictEqual(a, 1);
- assert.deepEqual(args, [2, 3], 'collects rest arguments into an array');
- })(1, 2, 3);
-
- _.restArgs(function(a, args) {
- assert.strictEqual(a, void 0);
- assert.deepEqual(args, [], 'passes empty array if there are not enough arguments');
- })();
-
- _.restArgs(function(a, b, c, args) {
- assert.strictEqual(arguments.length, 4);
- assert.deepEqual(args, [4, 5], 'works on functions with many named parameters');
- })(1, 2, 3, 4, 5);
-
- var obj = {};
- _.restArgs(function() {
- assert.strictEqual(this, obj, 'invokes function with this context');
- }).call(obj);
-
- _.restArgs(function(array, iteratee, context) {
- assert.deepEqual(array, [1, 2, 3, 4], 'startIndex can be used manually specify index of rest parameter');
- assert.strictEqual(iteratee, void 0);
- assert.strictEqual(context, void 0);
- }, 0)(1, 2, 3, 4);
- });
-
-}());
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/objects.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/objects.js
deleted file mode 100644
index fa1d9e3e..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/objects.js
+++ /dev/null
@@ -1,1102 +0,0 @@
-(function() {
- var _ = typeof require == 'function' ? require('..') : window._;
-
- QUnit.module('Objects');
-
- var testElement = typeof document === 'object' ? document.createElement('div') : void 0;
-
- QUnit.test('keys', function(assert) {
- assert.deepEqual(_.keys({one: 1, two: 2}), ['one', 'two'], 'can extract the keys from an object');
- // the test above is not safe because it relies on for-in enumeration order
- var a = []; a[1] = 0;
- assert.deepEqual(_.keys(a), ['1'], 'is not fooled by sparse arrays; see issue #95');
- assert.deepEqual(_.keys(null), []);
- assert.deepEqual(_.keys(void 0), []);
- assert.deepEqual(_.keys(1), []);
- assert.deepEqual(_.keys('a'), []);
- assert.deepEqual(_.keys(true), []);
-
- // keys that may be missed if the implementation isn't careful
- var trouble = {
- constructor: Object,
- valueOf: _.noop,
- hasOwnProperty: null,
- toString: 5,
- toLocaleString: void 0,
- propertyIsEnumerable: /a/,
- isPrototypeOf: this,
- __defineGetter__: Boolean,
- __defineSetter__: {},
- __lookupSetter__: false,
- __lookupGetter__: []
- };
- var troubleKeys = ['constructor', 'valueOf', 'hasOwnProperty', 'toString', 'toLocaleString', 'propertyIsEnumerable',
- 'isPrototypeOf', '__defineGetter__', '__defineSetter__', '__lookupSetter__', '__lookupGetter__'].sort();
- assert.deepEqual(_.keys(trouble).sort(), troubleKeys, 'matches non-enumerable properties');
- });
-
- QUnit.test('allKeys', function(assert) {
- assert.deepEqual(_.allKeys({one: 1, two: 2}), ['one', 'two'], 'can extract the allKeys from an object');
- // the test above is not safe because it relies on for-in enumeration order
- var a = []; a[1] = 0;
- assert.deepEqual(_.allKeys(a), ['1'], 'is not fooled by sparse arrays; see issue #95');
-
- a.a = a;
- assert.deepEqual(_.allKeys(a), ['1', 'a'], 'is not fooled by sparse arrays with additional properties');
-
- _.each([null, void 0, 1, 'a', true, NaN, {}, [], new Number(5), new Date(0)], function(val) {
- assert.deepEqual(_.allKeys(val), []);
- });
-
- // allKeys that may be missed if the implementation isn't careful
- var trouble = {
- constructor: Object,
- valueOf: _.noop,
- hasOwnProperty: null,
- toString: 5,
- toLocaleString: void 0,
- propertyIsEnumerable: /a/,
- isPrototypeOf: this
- };
- var troubleKeys = ['constructor', 'valueOf', 'hasOwnProperty', 'toString', 'toLocaleString', 'propertyIsEnumerable',
- 'isPrototypeOf'].sort();
- assert.deepEqual(_.allKeys(trouble).sort(), troubleKeys, 'matches non-enumerable properties');
-
- function A() {}
- A.prototype.foo = 'foo';
- var b = new A();
- b.bar = 'bar';
- assert.deepEqual(_.allKeys(b).sort(), ['bar', 'foo'], 'should include inherited keys');
-
- function y() {}
- y.x = 'z';
- assert.deepEqual(_.allKeys(y), ['x'], 'should get keys from constructor');
- });
-
- QUnit.test('values', function(assert) {
- assert.deepEqual(_.values({one: 1, two: 2}), [1, 2], 'can extract the values from an object');
- assert.deepEqual(_.values({one: 1, two: 2, length: 3}), [1, 2, 3], '... even when one of them is "length"');
- });
-
- QUnit.test('pairs', function(assert) {
- assert.deepEqual(_.pairs({one: 1, two: 2}), [['one', 1], ['two', 2]], 'can convert an object into pairs');
- assert.deepEqual(_.pairs({one: 1, two: 2, length: 3}), [['one', 1], ['two', 2], ['length', 3]], '... even when one of them is "length"');
- });
-
- QUnit.test('invert', function(assert) {
- var obj = {first: 'Moe', second: 'Larry', third: 'Curly'};
- assert.deepEqual(_.keys(_.invert(obj)), ['Moe', 'Larry', 'Curly'], 'can invert an object');
- assert.deepEqual(_.invert(_.invert(obj)), obj, 'two inverts gets you back where you started');
-
- obj = {length: 3};
- assert.equal(_.invert(obj)['3'], 'length', 'can invert an object with "length"');
- });
-
- QUnit.test('functions', function(assert) {
- var obj = {a: 'dash', b: _.map, c: /yo/, d: _.reduce};
- assert.deepEqual(['b', 'd'], _.functions(obj), 'can grab the function names of any passed-in object');
-
- var Animal = function(){};
- Animal.prototype.run = function(){};
- assert.deepEqual(_.functions(new Animal), ['run'], 'also looks up functions on the prototype');
- });
-
- QUnit.test('methods', function(assert) {
- assert.strictEqual(_.methods, _.functions, 'is an alias for functions');
- });
-
- QUnit.test('extend', function(assert) {
- var result;
- assert.equal(_.extend({}, {a: 'b'}).a, 'b', 'can extend an object with the attributes of another');
- assert.equal(_.extend({a: 'x'}, {a: 'b'}).a, 'b', 'properties in source override destination');
- assert.equal(_.extend({x: 'x'}, {a: 'b'}).x, 'x', "properties not in source don't get overriden");
- result = _.extend({x: 'x'}, {a: 'a'}, {b: 'b'});
- assert.deepEqual(result, {x: 'x', a: 'a', b: 'b'}, 'can extend from multiple source objects');
- result = _.extend({x: 'x'}, {a: 'a', x: 2}, {a: 'b'});
- assert.deepEqual(result, {x: 2, a: 'b'}, 'extending from multiple source objects last property trumps');
- result = _.extend({}, {a: void 0, b: null});
- assert.deepEqual(_.keys(result), ['a', 'b'], 'extend copies undefined values');
-
- var F = function() {};
- F.prototype = {a: 'b'};
- var subObj = new F();
- subObj.c = 'd';
- assert.deepEqual(_.extend({}, subObj), {a: 'b', c: 'd'}, 'extend copies all properties from source');
- _.extend(subObj, {});
- assert.ok(!subObj.hasOwnProperty('a'), "extend does not convert destination object's 'in' properties to 'own' properties");
-
- try {
- result = {};
- _.extend(result, null, void 0, {a: 1});
- } catch (e) { /* ignored */ }
-
- assert.equal(result.a, 1, 'should not error on `null` or `undefined` sources');
-
- assert.strictEqual(_.extend(null, {a: 1}), null, 'extending null results in null');
- assert.strictEqual(_.extend(void 0, {a: 1}), void 0, 'extending undefined results in undefined');
- });
-
- QUnit.test('extendOwn', function(assert) {
- var result;
- assert.equal(_.extendOwn({}, {a: 'b'}).a, 'b', 'can extend an object with the attributes of another');
- assert.equal(_.extendOwn({a: 'x'}, {a: 'b'}).a, 'b', 'properties in source override destination');
- assert.equal(_.extendOwn({x: 'x'}, {a: 'b'}).x, 'x', "properties not in source don't get overriden");
- result = _.extendOwn({x: 'x'}, {a: 'a'}, {b: 'b'});
- assert.deepEqual(result, {x: 'x', a: 'a', b: 'b'}, 'can extend from multiple source objects');
- result = _.extendOwn({x: 'x'}, {a: 'a', x: 2}, {a: 'b'});
- assert.deepEqual(result, {x: 2, a: 'b'}, 'extending from multiple source objects last property trumps');
- assert.deepEqual(_.extendOwn({}, {a: void 0, b: null}), {a: void 0, b: null}, 'copies undefined values');
-
- var F = function() {};
- F.prototype = {a: 'b'};
- var subObj = new F();
- subObj.c = 'd';
- assert.deepEqual(_.extendOwn({}, subObj), {c: 'd'}, 'copies own properties from source');
-
- result = {};
- assert.deepEqual(_.extendOwn(result, null, void 0, {a: 1}), {a: 1}, 'should not error on `null` or `undefined` sources');
-
- _.each(['a', 5, null, false], function(val) {
- assert.strictEqual(_.extendOwn(val, {a: 1}), val, 'extending non-objects results in returning the non-object value');
- });
-
- assert.strictEqual(_.extendOwn(void 0, {a: 1}), void 0, 'extending undefined results in undefined');
-
- result = _.extendOwn({a: 1, 0: 2, 1: '5', length: 6}, {0: 1, 1: 2, length: 2});
- assert.deepEqual(result, {a: 1, 0: 1, 1: 2, length: 2}, 'should treat array-like objects like normal objects');
- });
-
- QUnit.test('assign', function(assert) {
- assert.strictEqual(_.assign, _.extendOwn, 'is an alias for extendOwn');
- });
-
- QUnit.test('pick', function(assert) {
- var result;
- result = _.pick({a: 1, b: 2, c: 3}, 'a', 'c');
- assert.deepEqual(result, {a: 1, c: 3}, 'can restrict properties to those named');
- result = _.pick({a: 1, b: 2, c: 3}, ['b', 'c']);
- assert.deepEqual(result, {b: 2, c: 3}, 'can restrict properties to those named in an array');
- result = _.pick({a: 1, b: 2, c: 3}, ['a'], 'b');
- assert.deepEqual(result, {a: 1, b: 2}, 'can restrict properties to those named in mixed args');
- result = _.pick(['a', 'b'], 1);
- assert.deepEqual(result, {1: 'b'}, 'can pick numeric properties');
-
- _.each([null, void 0], function(val) {
- assert.deepEqual(_.pick(val, 'hasOwnProperty'), {}, 'Called with null/undefined');
- assert.deepEqual(_.pick(val, _.constant(true)), {});
- });
- assert.deepEqual(_.pick(5, 'toString', 'b'), {toString: Number.prototype.toString}, 'can iterate primitives');
-
- var data = {a: 1, b: 2, c: 3};
- var callback = function(value, key, object) {
- assert.strictEqual(key, {1: 'a', 2: 'b', 3: 'c'}[value]);
- assert.strictEqual(object, data);
- return value !== this.value;
- };
- result = _.pick(data, callback, {value: 2});
- assert.deepEqual(result, {a: 1, c: 3}, 'can accept a predicate and context');
-
- var Obj = function(){};
- Obj.prototype = {a: 1, b: 2, c: 3};
- var instance = new Obj();
- assert.deepEqual(_.pick(instance, 'a', 'c'), {a: 1, c: 3}, 'include prototype props');
-
- assert.deepEqual(_.pick(data, function(val, key) {
- return this[key] === 3 && this === instance;
- }, instance), {c: 3}, 'function is given context');
-
- assert.ok(!_.has(_.pick({}, 'foo'), 'foo'), 'does not set own property if property not in object');
- _.pick(data, function(value, key, obj) {
- assert.equal(obj, data, 'passes same object as third parameter of iteratee');
- });
- });
-
- QUnit.test('omit', function(assert) {
- var result;
- result = _.omit({a: 1, b: 2, c: 3}, 'b');
- assert.deepEqual(result, {a: 1, c: 3}, 'can omit a single named property');
- result = _.omit({a: 1, b: 2, c: 3}, 'a', 'c');
- assert.deepEqual(result, {b: 2}, 'can omit several named properties');
- result = _.omit({a: 1, b: 2, c: 3}, ['b', 'c']);
- assert.deepEqual(result, {a: 1}, 'can omit properties named in an array');
- result = _.omit(['a', 'b'], 0);
- assert.deepEqual(result, {1: 'b'}, 'can omit numeric properties');
-
- assert.deepEqual(_.omit(null, 'a', 'b'), {}, 'non objects return empty object');
- assert.deepEqual(_.omit(void 0, 'toString'), {}, 'null/undefined return empty object');
- assert.deepEqual(_.omit(5, 'toString', 'b'), {}, 'returns empty object for primitives');
-
- var data = {a: 1, b: 2, c: 3};
- var callback = function(value, key, object) {
- assert.strictEqual(key, {1: 'a', 2: 'b', 3: 'c'}[value]);
- assert.strictEqual(object, data);
- return value !== this.value;
- };
- result = _.omit(data, callback, {value: 2});
- assert.deepEqual(result, {b: 2}, 'can accept a predicate');
-
- var Obj = function(){};
- Obj.prototype = {a: 1, b: 2, c: 3};
- var instance = new Obj();
- assert.deepEqual(_.omit(instance, 'b'), {a: 1, c: 3}, 'include prototype props');
-
- assert.deepEqual(_.omit(data, function(val, key) {
- return this[key] === 3 && this === instance;
- }, instance), {a: 1, b: 2}, 'function is given context');
- });
-
- QUnit.test('defaults', function(assert) {
- var options = {zero: 0, one: 1, empty: '', nan: NaN, nothing: null};
-
- _.defaults(options, {zero: 1, one: 10, twenty: 20, nothing: 'str'});
- assert.equal(options.zero, 0, 'value exists');
- assert.equal(options.one, 1, 'value exists');
- assert.equal(options.twenty, 20, 'default applied');
- assert.equal(options.nothing, null, "null isn't overridden");
-
- _.defaults(options, {empty: 'full'}, {nan: 'nan'}, {word: 'word'}, {word: 'dog'});
- assert.equal(options.empty, '', 'value exists');
- assert.ok(_.isNaN(options.nan), "NaN isn't overridden");
- assert.equal(options.word, 'word', 'new value is added, first one wins');
-
- try {
- options = {};
- _.defaults(options, null, void 0, {a: 1});
- } catch (e) { /* ignored */ }
-
- assert.equal(options.a, 1, 'should not error on `null` or `undefined` sources');
-
- assert.deepEqual(_.defaults(null, {a: 1}), {a: 1}, 'defaults skips nulls');
- assert.deepEqual(_.defaults(void 0, {a: 1}), {a: 1}, 'defaults skips undefined');
- });
-
- QUnit.test('clone', function(assert) {
- var moe = {name: 'moe', lucky: [13, 27, 34]};
- var clone = _.clone(moe);
- assert.equal(clone.name, 'moe', 'the clone as the attributes of the original');
-
- clone.name = 'curly';
- assert.ok(clone.name === 'curly' && moe.name === 'moe', 'clones can change shallow attributes without affecting the original');
-
- clone.lucky.push(101);
- assert.equal(_.last(moe.lucky), 101, 'changes to deep attributes are shared with the original');
-
- assert.equal(_.clone(void 0), void 0, 'non objects should not be changed by clone');
- assert.equal(_.clone(1), 1, 'non objects should not be changed by clone');
- assert.equal(_.clone(null), null, 'non objects should not be changed by clone');
- });
-
- QUnit.test('create', function(assert) {
- var Parent = function() {};
- Parent.prototype = {foo: function() {}, bar: 2};
-
- _.each(['foo', null, void 0, 1], function(val) {
- assert.deepEqual(_.create(val), {}, 'should return empty object when a non-object is provided');
- });
-
- assert.ok(_.create([]) instanceof Array, 'should return new instance of array when array is provided');
-
- var Child = function() {};
- Child.prototype = _.create(Parent.prototype);
- assert.ok(new Child instanceof Parent, 'object should inherit prototype');
-
- var func = function() {};
- Child.prototype = _.create(Parent.prototype, {func: func});
- assert.strictEqual(Child.prototype.func, func, 'properties should be added to object');
-
- Child.prototype = _.create(Parent.prototype, {constructor: Child});
- assert.strictEqual(Child.prototype.constructor, Child);
-
- Child.prototype.foo = 'foo';
- var created = _.create(Child.prototype, new Child);
- assert.ok(!created.hasOwnProperty('foo'), 'should only add own properties');
- });
-
- QUnit.test('isEqual', function(assert) {
- function First() {
- this.value = 1;
- }
- First.prototype.value = 1;
- function Second() {
- this.value = 1;
- }
- Second.prototype.value = 2;
-
- // Basic equality and identity comparisons.
- assert.ok(_.isEqual(null, null), '`null` is equal to `null`');
- assert.ok(_.isEqual(), '`undefined` is equal to `undefined`');
-
- assert.ok(!_.isEqual(0, -0), '`0` is not equal to `-0`');
- assert.ok(!_.isEqual(-0, 0), 'Commutative equality is implemented for `0` and `-0`');
- assert.ok(!_.isEqual(null, void 0), '`null` is not equal to `undefined`');
- assert.ok(!_.isEqual(void 0, null), 'Commutative equality is implemented for `null` and `undefined`');
-
- // String object and primitive comparisons.
- assert.ok(_.isEqual('Curly', 'Curly'), 'Identical string primitives are equal');
- assert.ok(_.isEqual(new String('Curly'), new String('Curly')), 'String objects with identical primitive values are equal');
- assert.ok(_.isEqual(new String('Curly'), 'Curly'), 'String primitives and their corresponding object wrappers are equal');
- assert.ok(_.isEqual('Curly', new String('Curly')), 'Commutative equality is implemented for string objects and primitives');
-
- assert.ok(!_.isEqual('Curly', 'Larry'), 'String primitives with different values are not equal');
- assert.ok(!_.isEqual(new String('Curly'), new String('Larry')), 'String objects with different primitive values are not equal');
- assert.ok(!_.isEqual(new String('Curly'), {toString: function(){ return 'Curly'; }}), 'String objects and objects with a custom `toString` method are not equal');
-
- // Number object and primitive comparisons.
- assert.ok(_.isEqual(75, 75), 'Identical number primitives are equal');
- assert.ok(_.isEqual(new Number(75), new Number(75)), 'Number objects with identical primitive values are equal');
- assert.ok(_.isEqual(75, new Number(75)), 'Number primitives and their corresponding object wrappers are equal');
- assert.ok(_.isEqual(new Number(75), 75), 'Commutative equality is implemented for number objects and primitives');
- assert.ok(!_.isEqual(new Number(0), -0), '`new Number(0)` and `-0` are not equal');
- assert.ok(!_.isEqual(0, new Number(-0)), 'Commutative equality is implemented for `new Number(0)` and `-0`');
-
- assert.ok(!_.isEqual(new Number(75), new Number(63)), 'Number objects with different primitive values are not equal');
- assert.ok(!_.isEqual(new Number(63), {valueOf: function(){ return 63; }}), 'Number objects and objects with a `valueOf` method are not equal');
-
- // Comparisons involving `NaN`.
- assert.ok(_.isEqual(NaN, NaN), '`NaN` is equal to `NaN`');
- assert.ok(_.isEqual(new Number(NaN), NaN), 'Object(`NaN`) is equal to `NaN`');
- assert.ok(!_.isEqual(61, NaN), 'A number primitive is not equal to `NaN`');
- assert.ok(!_.isEqual(new Number(79), NaN), 'A number object is not equal to `NaN`');
- assert.ok(!_.isEqual(Infinity, NaN), '`Infinity` is not equal to `NaN`');
-
- // Boolean object and primitive comparisons.
- assert.ok(_.isEqual(true, true), 'Identical boolean primitives are equal');
- assert.ok(_.isEqual(new Boolean, new Boolean), 'Boolean objects with identical primitive values are equal');
- assert.ok(_.isEqual(true, new Boolean(true)), 'Boolean primitives and their corresponding object wrappers are equal');
- assert.ok(_.isEqual(new Boolean(true), true), 'Commutative equality is implemented for booleans');
- assert.ok(!_.isEqual(new Boolean(true), new Boolean), 'Boolean objects with different primitive values are not equal');
-
- // Common type coercions.
- assert.ok(!_.isEqual(new Boolean(false), true), '`new Boolean(false)` is not equal to `true`');
- assert.ok(!_.isEqual('75', 75), 'String and number primitives with like values are not equal');
- assert.ok(!_.isEqual(new Number(63), new String(63)), 'String and number objects with like values are not equal');
- assert.ok(!_.isEqual(75, '75'), 'Commutative equality is implemented for like string and number values');
- assert.ok(!_.isEqual(0, ''), 'Number and string primitives with like values are not equal');
- assert.ok(!_.isEqual(1, true), 'Number and boolean primitives with like values are not equal');
- assert.ok(!_.isEqual(new Boolean(false), new Number(0)), 'Boolean and number objects with like values are not equal');
- assert.ok(!_.isEqual(false, new String('')), 'Boolean primitives and string objects with like values are not equal');
- assert.ok(!_.isEqual(12564504e5, new Date(2009, 9, 25)), 'Dates and their corresponding numeric primitive values are not equal');
-
- // Dates.
- assert.ok(_.isEqual(new Date(2009, 9, 25), new Date(2009, 9, 25)), 'Date objects referencing identical times are equal');
- assert.ok(!_.isEqual(new Date(2009, 9, 25), new Date(2009, 11, 13)), 'Date objects referencing different times are not equal');
- assert.ok(!_.isEqual(new Date(2009, 11, 13), {
- getTime: function(){
- return 12606876e5;
- }
- }), 'Date objects and objects with a `getTime` method are not equal');
- assert.ok(!_.isEqual(new Date('Curly'), new Date('Curly')), 'Invalid dates are not equal');
-
- // Functions.
- assert.ok(!_.isEqual(First, Second), 'Different functions with identical bodies and source code representations are not equal');
-
- // RegExps.
- assert.ok(_.isEqual(/(?:)/gim, /(?:)/gim), 'RegExps with equivalent patterns and flags are equal');
- assert.ok(_.isEqual(/(?:)/gi, /(?:)/ig), 'Flag order is not significant');
- assert.ok(!_.isEqual(/(?:)/g, /(?:)/gi), 'RegExps with equivalent patterns and different flags are not equal');
- assert.ok(!_.isEqual(/Moe/gim, /Curly/gim), 'RegExps with different patterns and equivalent flags are not equal');
- assert.ok(!_.isEqual(/(?:)/gi, /(?:)/g), 'Commutative equality is implemented for RegExps');
- assert.ok(!_.isEqual(/Curly/g, {source: 'Larry', global: true, ignoreCase: false, multiline: false}), 'RegExps and RegExp-like objects are not equal');
-
- // Empty arrays, array-like objects, and object literals.
- assert.ok(_.isEqual({}, {}), 'Empty object literals are equal');
- assert.ok(_.isEqual([], []), 'Empty array literals are equal');
- assert.ok(_.isEqual([{}], [{}]), 'Empty nested arrays and objects are equal');
- assert.ok(!_.isEqual({length: 0}, []), 'Array-like objects and arrays are not equal.');
- assert.ok(!_.isEqual([], {length: 0}), 'Commutative equality is implemented for array-like objects');
-
- assert.ok(!_.isEqual({}, []), 'Object literals and array literals are not equal');
- assert.ok(!_.isEqual([], {}), 'Commutative equality is implemented for objects and arrays');
-
- // Arrays with primitive and object values.
- assert.ok(_.isEqual([1, 'Larry', true], [1, 'Larry', true]), 'Arrays containing identical primitives are equal');
- assert.ok(_.isEqual([/Moe/g, new Date(2009, 9, 25)], [/Moe/g, new Date(2009, 9, 25)]), 'Arrays containing equivalent elements are equal');
-
- // Multi-dimensional arrays.
- var a = [new Number(47), false, 'Larry', /Moe/, new Date(2009, 11, 13), ['running', 'biking', new String('programming')], {a: 47}];
- var b = [new Number(47), false, 'Larry', /Moe/, new Date(2009, 11, 13), ['running', 'biking', new String('programming')], {a: 47}];
- assert.ok(_.isEqual(a, b), 'Arrays containing nested arrays and objects are recursively compared');
-
- // Overwrite the methods defined in ES 5.1 section 15.4.4.
- a.forEach = a.map = a.filter = a.every = a.indexOf = a.lastIndexOf = a.some = a.reduce = a.reduceRight = null;
- b.join = b.pop = b.reverse = b.shift = b.slice = b.splice = b.concat = b.sort = b.unshift = null;
-
- // Array elements and properties.
- assert.ok(_.isEqual(a, b), 'Arrays containing equivalent elements and different non-numeric properties are equal');
- a.push('White Rocks');
- assert.ok(!_.isEqual(a, b), 'Arrays of different lengths are not equal');
- a.push('East Boulder');
- b.push('Gunbarrel Ranch', 'Teller Farm');
- assert.ok(!_.isEqual(a, b), 'Arrays of identical lengths containing different elements are not equal');
-
- // Sparse arrays.
- assert.ok(_.isEqual(Array(3), Array(3)), 'Sparse arrays of identical lengths are equal');
- assert.ok(!_.isEqual(Array(3), Array(6)), 'Sparse arrays of different lengths are not equal when both are empty');
-
- var sparse = [];
- sparse[1] = 5;
- assert.ok(_.isEqual(sparse, [void 0, 5]), 'Handles sparse arrays as dense');
-
- // Simple objects.
- assert.ok(_.isEqual({a: 'Curly', b: 1, c: true}, {a: 'Curly', b: 1, c: true}), 'Objects containing identical primitives are equal');
- assert.ok(_.isEqual({a: /Curly/g, b: new Date(2009, 11, 13)}, {a: /Curly/g, b: new Date(2009, 11, 13)}), 'Objects containing equivalent members are equal');
- assert.ok(!_.isEqual({a: 63, b: 75}, {a: 61, b: 55}), 'Objects of identical sizes with different values are not equal');
- assert.ok(!_.isEqual({a: 63, b: 75}, {a: 61, c: 55}), 'Objects of identical sizes with different property names are not equal');
- assert.ok(!_.isEqual({a: 1, b: 2}, {a: 1}), 'Objects of different sizes are not equal');
- assert.ok(!_.isEqual({a: 1}, {a: 1, b: 2}), 'Commutative equality is implemented for objects');
- assert.ok(!_.isEqual({x: 1, y: void 0}, {x: 1, z: 2}), 'Objects with identical keys and different values are not equivalent');
-
- // `A` contains nested objects and arrays.
- a = {
- name: new String('Moe Howard'),
- age: new Number(77),
- stooge: true,
- hobbies: ['acting'],
- film: {
- name: 'Sing a Song of Six Pants',
- release: new Date(1947, 9, 30),
- stars: [new String('Larry Fine'), 'Shemp Howard'],
- minutes: new Number(16),
- seconds: 54
- }
- };
-
- // `B` contains equivalent nested objects and arrays.
- b = {
- name: new String('Moe Howard'),
- age: new Number(77),
- stooge: true,
- hobbies: ['acting'],
- film: {
- name: 'Sing a Song of Six Pants',
- release: new Date(1947, 9, 30),
- stars: [new String('Larry Fine'), 'Shemp Howard'],
- minutes: new Number(16),
- seconds: 54
- }
- };
- assert.ok(_.isEqual(a, b), 'Objects with nested equivalent members are recursively compared');
-
- // Instances.
- assert.ok(_.isEqual(new First, new First), 'Object instances are equal');
- assert.ok(!_.isEqual(new First, new Second), 'Objects with different constructors and identical own properties are not equal');
- assert.ok(!_.isEqual({value: 1}, new First), 'Object instances and objects sharing equivalent properties are not equal');
- assert.ok(!_.isEqual({value: 2}, new Second), 'The prototype chain of objects should not be examined');
-
- // Circular Arrays.
- (a = []).push(a);
- (b = []).push(b);
- assert.ok(_.isEqual(a, b), 'Arrays containing circular references are equal');
- a.push(new String('Larry'));
- b.push(new String('Larry'));
- assert.ok(_.isEqual(a, b), 'Arrays containing circular references and equivalent properties are equal');
- a.push('Shemp');
- b.push('Curly');
- assert.ok(!_.isEqual(a, b), 'Arrays containing circular references and different properties are not equal');
-
- // More circular arrays #767.
- a = ['everything is checked but', 'this', 'is not'];
- a[1] = a;
- b = ['everything is checked but', ['this', 'array'], 'is not'];
- assert.ok(!_.isEqual(a, b), 'Comparison of circular references with non-circular references are not equal');
-
- // Circular Objects.
- a = {abc: null};
- b = {abc: null};
- a.abc = a;
- b.abc = b;
- assert.ok(_.isEqual(a, b), 'Objects containing circular references are equal');
- a.def = 75;
- b.def = 75;
- assert.ok(_.isEqual(a, b), 'Objects containing circular references and equivalent properties are equal');
- a.def = new Number(75);
- b.def = new Number(63);
- assert.ok(!_.isEqual(a, b), 'Objects containing circular references and different properties are not equal');
-
- // More circular objects #767.
- a = {everything: 'is checked', but: 'this', is: 'not'};
- a.but = a;
- b = {everything: 'is checked', but: {that: 'object'}, is: 'not'};
- assert.ok(!_.isEqual(a, b), 'Comparison of circular references with non-circular object references are not equal');
-
- // Cyclic Structures.
- a = [{abc: null}];
- b = [{abc: null}];
- (a[0].abc = a).push(a);
- (b[0].abc = b).push(b);
- assert.ok(_.isEqual(a, b), 'Cyclic structures are equal');
- a[0].def = 'Larry';
- b[0].def = 'Larry';
- assert.ok(_.isEqual(a, b), 'Cyclic structures containing equivalent properties are equal');
- a[0].def = new String('Larry');
- b[0].def = new String('Curly');
- assert.ok(!_.isEqual(a, b), 'Cyclic structures containing different properties are not equal');
-
- // Complex Circular References.
- a = {foo: {b: {foo: {c: {foo: null}}}}};
- b = {foo: {b: {foo: {c: {foo: null}}}}};
- a.foo.b.foo.c.foo = a;
- b.foo.b.foo.c.foo = b;
- assert.ok(_.isEqual(a, b), 'Cyclic structures with nested and identically-named properties are equal');
-
- // Chaining.
- assert.ok(!_.isEqual(_({x: 1, y: void 0}).chain(), _({x: 1, z: 2}).chain()), 'Chained objects containing different values are not equal');
-
- a = _({x: 1, y: 2}).chain();
- b = _({x: 1, y: 2}).chain();
- assert.equal(_.isEqual(a.isEqual(b), _(true)), true, '`isEqual` can be chained');
-
- // Objects without a `constructor` property
- if (Object.create) {
- a = Object.create(null, {x: {value: 1, enumerable: true}});
- b = {x: 1};
- assert.ok(_.isEqual(a, b), 'Handles objects without a constructor (e.g. from Object.create');
- }
-
- function Foo() { this.a = 1; }
- Foo.prototype.constructor = null;
-
- var other = {a: 1};
- assert.strictEqual(_.isEqual(new Foo, other), false, 'Objects from different constructors are not equal');
-
-
- // Tricky object cases val comparisions
- assert.equal(_.isEqual([0], [-0]), false);
- assert.equal(_.isEqual({a: 0}, {a: -0}), false);
- assert.equal(_.isEqual([NaN], [NaN]), true);
- assert.equal(_.isEqual({a: NaN}, {a: NaN}), true);
-
- if (typeof Symbol !== 'undefined') {
- var symbol = Symbol('x');
- assert.strictEqual(_.isEqual(symbol, symbol), true, 'A symbol is equal to itself');
- assert.strictEqual(_.isEqual(symbol, Object(symbol)), true, 'Even when wrapped in Object()');
- assert.strictEqual(_.isEqual(symbol, null), false, 'Different types are not equal');
- }
-
- });
-
- QUnit.test('isEmpty', function(assert) {
- assert.ok(!_([1]).isEmpty(), '[1] is not empty');
- assert.ok(_.isEmpty([]), '[] is empty');
- assert.ok(!_.isEmpty({one: 1}), '{one: 1} is not empty');
- assert.ok(_.isEmpty({}), '{} is empty');
- assert.ok(_.isEmpty(new RegExp('')), 'objects with prototype properties are empty');
- assert.ok(_.isEmpty(null), 'null is empty');
- assert.ok(_.isEmpty(), 'undefined is empty');
- assert.ok(_.isEmpty(''), 'the empty string is empty');
- assert.ok(!_.isEmpty('moe'), 'but other strings are not');
-
- var obj = {one: 1};
- delete obj.one;
- assert.ok(_.isEmpty(obj), 'deleting all the keys from an object empties it');
-
- var args = function(){ return arguments; };
- assert.ok(_.isEmpty(args()), 'empty arguments object is empty');
- assert.ok(!_.isEmpty(args('')), 'non-empty arguments object is not empty');
-
- // covers collecting non-enumerable properties in IE < 9
- var nonEnumProp = {toString: 5};
- assert.ok(!_.isEmpty(nonEnumProp), 'non-enumerable property is not empty');
- });
-
- if (typeof document === 'object') {
- QUnit.test('isElement', function(assert) {
- assert.ok(!_.isElement('div'), 'strings are not dom elements');
- assert.ok(_.isElement(testElement), 'an element is a DOM element');
- });
- }
-
- QUnit.test('isArguments', function(assert) {
- var args = (function(){ return arguments; }(1, 2, 3));
- assert.ok(!_.isArguments('string'), 'a string is not an arguments object');
- assert.ok(!_.isArguments(_.isArguments), 'a function is not an arguments object');
- assert.ok(_.isArguments(args), 'but the arguments object is an arguments object');
- assert.ok(!_.isArguments(_.toArray(args)), 'but not when it\'s converted into an array');
- assert.ok(!_.isArguments([1, 2, 3]), 'and not vanilla arrays.');
- });
-
- QUnit.test('isObject', function(assert) {
- assert.ok(_.isObject(arguments), 'the arguments object is object');
- assert.ok(_.isObject([1, 2, 3]), 'and arrays');
- if (testElement) {
- assert.ok(_.isObject(testElement), 'and DOM element');
- }
- assert.ok(_.isObject(function() {}), 'and functions');
- assert.ok(!_.isObject(null), 'but not null');
- assert.ok(!_.isObject(void 0), 'and not undefined');
- assert.ok(!_.isObject('string'), 'and not string');
- assert.ok(!_.isObject(12), 'and not number');
- assert.ok(!_.isObject(true), 'and not boolean');
- assert.ok(_.isObject(new String('string')), 'but new String()');
- });
-
- QUnit.test('isArray', function(assert) {
- assert.ok(!_.isArray(void 0), 'undefined vars are not arrays');
- assert.ok(!_.isArray(arguments), 'the arguments object is not an array');
- assert.ok(_.isArray([1, 2, 3]), 'but arrays are');
- });
-
- QUnit.test('isString', function(assert) {
- var obj = new String('I am a string object');
- if (testElement) {
- assert.ok(!_.isString(testElement), 'an element is not a string');
- }
- assert.ok(_.isString([1, 2, 3].join(', ')), 'but strings are');
- assert.strictEqual(_.isString('I am a string literal'), true, 'string literals are');
- assert.ok(_.isString(obj), 'so are String objects');
- assert.strictEqual(_.isString(1), false);
- });
-
- QUnit.test('isSymbol', function(assert) {
- assert.ok(!_.isSymbol(0), 'numbers are not symbols');
- assert.ok(!_.isSymbol(''), 'strings are not symbols');
- assert.ok(!_.isSymbol(_.isSymbol), 'functions are not symbols');
- if (typeof Symbol === 'function') {
- assert.ok(_.isSymbol(Symbol()), 'symbols are symbols');
- assert.ok(_.isSymbol(Symbol('description')), 'described symbols are symbols');
- assert.ok(_.isSymbol(Object(Symbol())), 'boxed symbols are symbols');
- }
- });
-
- QUnit.test('isNumber', function(assert) {
- assert.ok(!_.isNumber('string'), 'a string is not a number');
- assert.ok(!_.isNumber(arguments), 'the arguments object is not a number');
- assert.ok(!_.isNumber(void 0), 'undefined is not a number');
- assert.ok(_.isNumber(3 * 4 - 7 / 10), 'but numbers are');
- assert.ok(_.isNumber(NaN), 'NaN *is* a number');
- assert.ok(_.isNumber(Infinity), 'Infinity is a number');
- assert.ok(!_.isNumber('1'), 'numeric strings are not numbers');
- });
-
- QUnit.test('isBoolean', function(assert) {
- assert.ok(!_.isBoolean(2), 'a number is not a boolean');
- assert.ok(!_.isBoolean('string'), 'a string is not a boolean');
- assert.ok(!_.isBoolean('false'), 'the string "false" is not a boolean');
- assert.ok(!_.isBoolean('true'), 'the string "true" is not a boolean');
- assert.ok(!_.isBoolean(arguments), 'the arguments object is not a boolean');
- assert.ok(!_.isBoolean(void 0), 'undefined is not a boolean');
- assert.ok(!_.isBoolean(NaN), 'NaN is not a boolean');
- assert.ok(!_.isBoolean(null), 'null is not a boolean');
- assert.ok(_.isBoolean(true), 'but true is');
- assert.ok(_.isBoolean(false), 'and so is false');
- });
-
- QUnit.test('isMap', function(assert) {
- assert.ok(!_.isMap('string'), 'a string is not a map');
- assert.ok(!_.isMap(2), 'a number is not a map');
- assert.ok(!_.isMap({}), 'an object is not a map');
- assert.ok(!_.isMap(false), 'a boolean is not a map');
- assert.ok(!_.isMap(void 0), 'undefined is not a map');
- assert.ok(!_.isMap([1, 2, 3]), 'an array is not a map');
- if (typeof Set === 'function') {
- assert.ok(!_.isMap(new Set()), 'a set is not a map');
- }
- if (typeof WeakSet === 'function') {
- assert.ok(!_.isMap(new WeakSet()), 'a weakset is not a map');
- }
- if (typeof WeakMap === 'function') {
- assert.ok(!_.isMap(new WeakMap()), 'a weakmap is not a map');
- }
- if (typeof Map === 'function') {
- var keyString = 'a string';
- var obj = new Map();
- obj.set(keyString, 'value');
- assert.ok(_.isMap(obj), 'but a map is');
- }
- });
-
- QUnit.test('isWeakMap', function(assert) {
- assert.ok(!_.isWeakMap('string'), 'a string is not a weakmap');
- assert.ok(!_.isWeakMap(2), 'a number is not a weakmap');
- assert.ok(!_.isWeakMap({}), 'an object is not a weakmap');
- assert.ok(!_.isWeakMap(false), 'a boolean is not a weakmap');
- assert.ok(!_.isWeakMap(void 0), 'undefined is not a weakmap');
- assert.ok(!_.isWeakMap([1, 2, 3]), 'an array is not a weakmap');
- if (typeof Set === 'function') {
- assert.ok(!_.isWeakMap(new Set()), 'a set is not a weakmap');
- }
- if (typeof WeakSet === 'function') {
- assert.ok(!_.isWeakMap(new WeakSet()), 'a weakset is not a weakmap');
- }
- if (typeof Map === 'function') {
- assert.ok(!_.isWeakMap(new Map()), 'a map is not a weakmap');
- }
- if (typeof WeakMap === 'function') {
- var keyObj = {}, obj = new WeakMap();
- obj.set(keyObj, 'value');
- assert.ok(_.isWeakMap(obj), 'but a weakmap is');
- }
- });
-
- QUnit.test('isSet', function(assert) {
- assert.ok(!_.isSet('string'), 'a string is not a set');
- assert.ok(!_.isSet(2), 'a number is not a set');
- assert.ok(!_.isSet({}), 'an object is not a set');
- assert.ok(!_.isSet(false), 'a boolean is not a set');
- assert.ok(!_.isSet(void 0), 'undefined is not a set');
- assert.ok(!_.isSet([1, 2, 3]), 'an array is not a set');
- if (typeof Map === 'function') {
- assert.ok(!_.isSet(new Map()), 'a map is not a set');
- }
- if (typeof WeakMap === 'function') {
- assert.ok(!_.isSet(new WeakMap()), 'a weakmap is not a set');
- }
- if (typeof WeakSet === 'function') {
- assert.ok(!_.isSet(new WeakSet()), 'a weakset is not a set');
- }
- if (typeof Set === 'function') {
- var obj = new Set();
- obj.add(1).add('string').add(false).add({});
- assert.ok(_.isSet(obj), 'but a set is');
- }
- });
-
- QUnit.test('isWeakSet', function(assert) {
-
- assert.ok(!_.isWeakSet('string'), 'a string is not a weakset');
- assert.ok(!_.isWeakSet(2), 'a number is not a weakset');
- assert.ok(!_.isWeakSet({}), 'an object is not a weakset');
- assert.ok(!_.isWeakSet(false), 'a boolean is not a weakset');
- assert.ok(!_.isWeakSet(void 0), 'undefined is not a weakset');
- assert.ok(!_.isWeakSet([1, 2, 3]), 'an array is not a weakset');
- if (typeof Map === 'function') {
- assert.ok(!_.isWeakSet(new Map()), 'a map is not a weakset');
- }
- if (typeof WeakMap === 'function') {
- assert.ok(!_.isWeakSet(new WeakMap()), 'a weakmap is not a weakset');
- }
- if (typeof Set === 'function') {
- assert.ok(!_.isWeakSet(new Set()), 'a set is not a weakset');
- }
- if (typeof WeakSet === 'function') {
- var obj = new WeakSet();
- obj.add({x: 1}, {y: 'string'}).add({y: 'string'}).add({z: [1, 2, 3]});
- assert.ok(_.isWeakSet(obj), 'but a weakset is');
- }
- });
-
- QUnit.test('isFunction', function(assert) {
- assert.ok(!_.isFunction(void 0), 'undefined vars are not functions');
- assert.ok(!_.isFunction([1, 2, 3]), 'arrays are not functions');
- assert.ok(!_.isFunction('moe'), 'strings are not functions');
- assert.ok(_.isFunction(_.isFunction), 'but functions are');
- assert.ok(_.isFunction(function(){}), 'even anonymous ones');
-
- if (testElement) {
- assert.ok(!_.isFunction(testElement), 'elements are not functions');
- }
-
- var nodelist = typeof document != 'undefined' && document.childNodes;
- if (nodelist) {
- assert.ok(!_.isFunction(nodelist));
- }
- });
-
- if (typeof Int8Array !== 'undefined') {
- QUnit.test('#1929 Typed Array constructors are functions', function(assert) {
- _.chain(['Float32Array', 'Float64Array', 'Int8Array', 'Int16Array', 'Int32Array', 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array'])
- .map(_.propertyOf(typeof GLOBAL != 'undefined' ? GLOBAL : window))
- .compact()
- .each(function(TypedArray) {
- // PhantomJS reports `typeof UInt8Array == 'object'` and doesn't report toString TypeArray
- // as a function
- assert.strictEqual(_.isFunction(TypedArray), Object.prototype.toString.call(TypedArray) === '[object Function]');
- });
- });
- }
-
- QUnit.test('isDate', function(assert) {
- assert.ok(!_.isDate(100), 'numbers are not dates');
- assert.ok(!_.isDate({}), 'objects are not dates');
- assert.ok(_.isDate(new Date()), 'but dates are');
- });
-
- QUnit.test('isRegExp', function(assert) {
- assert.ok(!_.isRegExp(_.identity), 'functions are not RegExps');
- assert.ok(_.isRegExp(/identity/), 'but RegExps are');
- });
-
- QUnit.test('isFinite', function(assert) {
- assert.ok(!_.isFinite(void 0), 'undefined is not finite');
- assert.ok(!_.isFinite(null), 'null is not finite');
- assert.ok(!_.isFinite(NaN), 'NaN is not finite');
- assert.ok(!_.isFinite(Infinity), 'Infinity is not finite');
- assert.ok(!_.isFinite(-Infinity), '-Infinity is not finite');
- assert.ok(_.isFinite('12'), 'Numeric strings are numbers');
- assert.ok(!_.isFinite('1a'), 'Non numeric strings are not numbers');
- assert.ok(!_.isFinite(''), 'Empty strings are not numbers');
- var obj = new Number(5);
- assert.ok(_.isFinite(obj), 'Number instances can be finite');
- assert.ok(_.isFinite(0), '0 is finite');
- assert.ok(_.isFinite(123), 'Ints are finite');
- assert.ok(_.isFinite(-12.44), 'Floats are finite');
- if (typeof Symbol === 'function') {
- assert.ok(!_.isFinite(Symbol()), 'symbols are not numbers');
- assert.ok(!_.isFinite(Symbol('description')), 'described symbols are not numbers');
- assert.ok(!_.isFinite(Object(Symbol())), 'boxed symbols are not numbers');
- }
- });
-
- QUnit.test('isNaN', function(assert) {
- assert.ok(!_.isNaN(void 0), 'undefined is not NaN');
- assert.ok(!_.isNaN(null), 'null is not NaN');
- assert.ok(!_.isNaN(0), '0 is not NaN');
- assert.ok(!_.isNaN(new Number(0)), 'wrapped 0 is not NaN');
- assert.ok(_.isNaN(NaN), 'but NaN is');
- assert.ok(_.isNaN(new Number(NaN)), 'wrapped NaN is still NaN');
- });
-
- QUnit.test('isNull', function(assert) {
- assert.ok(!_.isNull(void 0), 'undefined is not null');
- assert.ok(!_.isNull(NaN), 'NaN is not null');
- assert.ok(_.isNull(null), 'but null is');
- });
-
- QUnit.test('isUndefined', function(assert) {
- assert.ok(!_.isUndefined(1), 'numbers are defined');
- assert.ok(!_.isUndefined(null), 'null is defined');
- assert.ok(!_.isUndefined(false), 'false is defined');
- assert.ok(!_.isUndefined(NaN), 'NaN is defined');
- assert.ok(_.isUndefined(), 'nothing is undefined');
- assert.ok(_.isUndefined(void 0), 'undefined is undefined');
- });
-
- QUnit.test('isError', function(assert) {
- assert.ok(!_.isError(1), 'numbers are not Errors');
- assert.ok(!_.isError(null), 'null is not an Error');
- assert.ok(!_.isError(Error), 'functions are not Errors');
- assert.ok(_.isError(new Error()), 'Errors are Errors');
- assert.ok(_.isError(new EvalError()), 'EvalErrors are Errors');
- assert.ok(_.isError(new RangeError()), 'RangeErrors are Errors');
- assert.ok(_.isError(new ReferenceError()), 'ReferenceErrors are Errors');
- assert.ok(_.isError(new SyntaxError()), 'SyntaxErrors are Errors');
- assert.ok(_.isError(new TypeError()), 'TypeErrors are Errors');
- assert.ok(_.isError(new URIError()), 'URIErrors are Errors');
- });
-
- QUnit.test('tap', function(assert) {
- var intercepted = null;
- var interceptor = function(obj) { intercepted = obj; };
- var returned = _.tap(1, interceptor);
- assert.equal(intercepted, 1, 'passes tapped object to interceptor');
- assert.equal(returned, 1, 'returns tapped object');
-
- returned = _([1, 2, 3]).chain().
- map(function(n){ return n * 2; }).
- max().
- tap(interceptor).
- value();
- assert.equal(returned, 6, 'can use tapped objects in a chain');
- assert.equal(intercepted, returned, 'can use tapped objects in a chain');
- });
-
- QUnit.test('has', function(assert) {
- var obj = {foo: 'bar', func: function(){}};
- assert.ok(_.has(obj, 'foo'), 'has() checks that the object has a property.');
- assert.ok(!_.has(obj, 'baz'), "has() returns false if the object doesn't have the property.");
- assert.ok(_.has(obj, 'func'), 'has() works for functions too.');
- obj.hasOwnProperty = null;
- assert.ok(_.has(obj, 'foo'), 'has() works even when the hasOwnProperty method is deleted.');
- var child = {};
- child.prototype = obj;
- assert.ok(!_.has(child, 'foo'), 'has() does not check the prototype chain for a property.');
- assert.strictEqual(_.has(null, 'foo'), false, 'has() returns false for null');
- assert.strictEqual(_.has(void 0, 'foo'), false, 'has() returns false for undefined');
- });
-
- QUnit.test('isMatch', function(assert) {
- var moe = {name: 'Moe Howard', hair: true};
- var curly = {name: 'Curly Howard', hair: false};
-
- assert.equal(_.isMatch(moe, {hair: true}), true, 'Returns a boolean');
- assert.equal(_.isMatch(curly, {hair: true}), false, 'Returns a boolean');
-
- assert.equal(_.isMatch(5, {__x__: void 0}), false, 'can match undefined props on primitives');
- assert.equal(_.isMatch({__x__: void 0}, {__x__: void 0}), true, 'can match undefined props');
-
- assert.equal(_.isMatch(null, {}), true, 'Empty spec called with null object returns true');
- assert.equal(_.isMatch(null, {a: 1}), false, 'Non-empty spec called with null object returns false');
-
- _.each([null, void 0], function(item) { assert.strictEqual(_.isMatch(item, null), true, 'null matches null'); });
- _.each([null, void 0], function(item) { assert.strictEqual(_.isMatch(item, null), true, 'null matches {}'); });
- assert.strictEqual(_.isMatch({b: 1}, {a: void 0}), false, 'handles undefined values (1683)');
-
- _.each([true, 5, NaN, null, void 0], function(item) {
- assert.strictEqual(_.isMatch({a: 1}, item), true, 'treats primitives as empty');
- });
-
- function Prototest() {}
- Prototest.prototype.x = 1;
- var specObj = new Prototest;
- assert.equal(_.isMatch({x: 2}, specObj), true, 'spec is restricted to own properties');
-
- specObj.y = 5;
- assert.equal(_.isMatch({x: 1, y: 5}, specObj), true);
- assert.equal(_.isMatch({x: 1, y: 4}, specObj), false);
-
- assert.ok(_.isMatch(specObj, {x: 1, y: 5}), 'inherited and own properties are checked on the test object');
-
- Prototest.x = 5;
- assert.ok(_.isMatch({x: 5, y: 1}, Prototest), 'spec can be a function');
-
- //null edge cases
- var oCon = {constructor: Object};
- assert.deepEqual(_.map([null, void 0, 5, {}], _.partial(_.isMatch, _, oCon)), [false, false, false, true], 'doesnt falsey match constructor on undefined/null');
- });
-
- QUnit.test('matcher', function(assert) {
- var moe = {name: 'Moe Howard', hair: true};
- var curly = {name: 'Curly Howard', hair: false};
- var stooges = [moe, curly];
-
- assert.equal(_.matcher({hair: true})(moe), true, 'Returns a boolean');
- assert.equal(_.matcher({hair: true})(curly), false, 'Returns a boolean');
-
- assert.equal(_.matcher({__x__: void 0})(5), false, 'can match undefined props on primitives');
- assert.equal(_.matcher({__x__: void 0})({__x__: void 0}), true, 'can match undefined props');
-
- assert.equal(_.matcher({})(null), true, 'Empty spec called with null object returns true');
- assert.equal(_.matcher({a: 1})(null), false, 'Non-empty spec called with null object returns false');
-
- assert.ok(_.find(stooges, _.matcher({hair: false})) === curly, 'returns a predicate that can be used by finding functions.');
- assert.ok(_.find(stooges, _.matcher(moe)) === moe, 'can be used to locate an object exists in a collection.');
- assert.deepEqual(_.filter([null, void 0], _.matcher({a: 1})), [], 'Do not throw on null values.');
-
- assert.deepEqual(_.filter([null, void 0], _.matcher(null)), [null, void 0], 'null matches null');
- assert.deepEqual(_.filter([null, void 0], _.matcher({})), [null, void 0], 'null matches {}');
- assert.deepEqual(_.filter([{b: 1}], _.matcher({a: void 0})), [], 'handles undefined values (1683)');
-
- _.each([true, 5, NaN, null, void 0], function(item) {
- assert.equal(_.matcher(item)({a: 1}), true, 'treats primitives as empty');
- });
-
- function Prototest() {}
- Prototest.prototype.x = 1;
- var specObj = new Prototest;
- var protospec = _.matcher(specObj);
- assert.equal(protospec({x: 2}), true, 'spec is restricted to own properties');
-
- specObj.y = 5;
- protospec = _.matcher(specObj);
- assert.equal(protospec({x: 1, y: 5}), true);
- assert.equal(protospec({x: 1, y: 4}), false);
-
- assert.ok(_.matcher({x: 1, y: 5})(specObj), 'inherited and own properties are checked on the test object');
-
- Prototest.x = 5;
- assert.ok(_.matcher(Prototest)({x: 5, y: 1}), 'spec can be a function');
-
- // #1729
- var o = {b: 1};
- var m = _.matcher(o);
-
- assert.equal(m({b: 1}), true);
- o.b = 2;
- o.a = 1;
- assert.equal(m({b: 1}), true, 'changing spec object doesnt change matches result');
-
-
- //null edge cases
- var oCon = _.matcher({constructor: Object});
- assert.deepEqual(_.map([null, void 0, 5, {}], oCon), [false, false, false, true], 'doesnt falsey match constructor on undefined/null');
- });
-
- QUnit.test('matches', function(assert) {
- assert.strictEqual(_.matches, _.matcher, 'is an alias for matcher');
- });
-
- QUnit.test('findKey', function(assert) {
- var objects = {
- a: {a: 0, b: 0},
- b: {a: 1, b: 1},
- c: {a: 2, b: 2}
- };
-
- assert.equal(_.findKey(objects, function(obj) {
- return obj.a === 0;
- }), 'a');
-
- assert.equal(_.findKey(objects, function(obj) {
- return obj.b * obj.a === 4;
- }), 'c');
-
- assert.equal(_.findKey(objects, 'a'), 'b', 'Uses lookupIterator');
-
- assert.equal(_.findKey(objects, function(obj) {
- return obj.b * obj.a === 5;
- }), void 0);
-
- assert.strictEqual(_.findKey([1, 2, 3, 4, 5, 6], function(obj) {
- return obj === 3;
- }), '2', 'Keys are strings');
-
- assert.strictEqual(_.findKey(objects, function(a) {
- return a.foo === null;
- }), void 0);
-
- _.findKey({a: {a: 1}}, function(a, key, obj) {
- assert.equal(key, 'a');
- assert.deepEqual(obj, {a: {a: 1}});
- assert.strictEqual(this, objects, 'called with context');
- }, objects);
-
- var array = [1, 2, 3, 4];
- array.match = 55;
- assert.strictEqual(_.findKey(array, function(x) { return x === 55; }), 'match', 'matches array-likes keys');
- });
-
-
- QUnit.test('mapObject', function(assert) {
- var obj = {a: 1, b: 2};
- var objects = {
- a: {a: 0, b: 0},
- b: {a: 1, b: 1},
- c: {a: 2, b: 2}
- };
-
- assert.deepEqual(_.mapObject(obj, function(val) {
- return val * 2;
- }), {a: 2, b: 4}, 'simple objects');
-
- assert.deepEqual(_.mapObject(objects, function(val) {
- return _.reduce(val, function(memo, v){
- return memo + v;
- }, 0);
- }), {a: 0, b: 2, c: 4}, 'nested objects');
-
- assert.deepEqual(_.mapObject(obj, function(val, key, o) {
- return o[key] * 2;
- }), {a: 2, b: 4}, 'correct keys');
-
- assert.deepEqual(_.mapObject([1, 2], function(val) {
- return val * 2;
- }), {0: 2, 1: 4}, 'check behavior for arrays');
-
- assert.deepEqual(_.mapObject(obj, function(val) {
- return val * this.multiplier;
- }, {multiplier: 3}), {a: 3, b: 6}, 'keep context');
-
- assert.deepEqual(_.mapObject({a: 1}, function() {
- return this.length;
- }, [1, 2]), {a: 2}, 'called with context');
-
- var ids = _.mapObject({length: 2, 0: {id: '1'}, 1: {id: '2'}}, function(n){
- return n.id;
- });
- assert.deepEqual(ids, {length: void 0, 0: '1', 1: '2'}, 'Check with array-like objects');
-
- // Passing a property name like _.pluck.
- var people = {a: {name: 'moe', age: 30}, b: {name: 'curly', age: 50}};
- assert.deepEqual(_.mapObject(people, 'name'), {a: 'moe', b: 'curly'}, 'predicate string map to object properties');
-
- _.each([null, void 0, 1, 'abc', [], {}, void 0], function(val){
- assert.deepEqual(_.mapObject(val, _.identity), {}, 'mapValue identity');
- });
-
- var Proto = function(){ this.a = 1; };
- Proto.prototype.b = 1;
- var protoObj = new Proto();
- assert.deepEqual(_.mapObject(protoObj, _.identity), {a: 1}, 'ignore inherited values from prototypes');
-
- });
-}());
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/utility.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/utility.js
deleted file mode 100644
index fbd54df3..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/test/utility.js
+++ /dev/null
@@ -1,420 +0,0 @@
-(function() {
- var _ = typeof require == 'function' ? require('..') : window._;
- var templateSettings;
-
- QUnit.module('Utility', {
-
- beforeEach: function() {
- templateSettings = _.clone(_.templateSettings);
- },
-
- afterEach: function() {
- _.templateSettings = templateSettings;
- }
-
- });
-
- if (typeof this == 'object') {
- QUnit.test('noConflict', function(assert) {
- var underscore = _.noConflict();
- assert.equal(underscore.identity(1), 1);
- if (typeof require != 'function') {
- assert.equal(this._, void 0, 'global underscore is removed');
- this._ = underscore;
- } else if (typeof global !== 'undefined') {
- delete global._;
- }
- });
- }
-
- if (typeof require == 'function') {
- QUnit.test('noConflict (node vm)', function(assert) {
- assert.expect(2);
- var done = assert.async();
- var fs = require('fs');
- var vm = require('vm');
- var filename = __dirname + '/../underscore.js';
- fs.readFile(filename, function(err, content){
- var sandbox = vm.createScript(
- content + 'this.underscore = this._.noConflict();',
- filename
- );
- var context = {_: 'oldvalue'};
- sandbox.runInNewContext(context);
- assert.equal(context._, 'oldvalue');
- assert.equal(context.underscore.VERSION, _.VERSION);
-
- done();
- });
- });
- }
-
- QUnit.test('#750 - Return _ instance.', function(assert) {
- assert.expect(2);
- var instance = _([]);
- assert.ok(_(instance) === instance);
- assert.ok(new _(instance) === instance);
- });
-
- QUnit.test('identity', function(assert) {
- var stooge = {name: 'moe'};
- assert.equal(_.identity(stooge), stooge, 'stooge is the same as his identity');
- });
-
- QUnit.test('constant', function(assert) {
- var stooge = {name: 'moe'};
- assert.equal(_.constant(stooge)(), stooge, 'should create a function that returns stooge');
- });
-
- QUnit.test('noop', function(assert) {
- assert.strictEqual(_.noop('curly', 'larry', 'moe'), void 0, 'should always return undefined');
- });
-
- QUnit.test('property', function(assert) {
- var stooge = {name: 'moe'};
- assert.equal(_.property('name')(stooge), 'moe', 'should return the property with the given name');
- assert.equal(_.property('name')(null), void 0, 'should return undefined for null values');
- assert.equal(_.property('name')(void 0), void 0, 'should return undefined for undefined values');
- });
-
- QUnit.test('propertyOf', function(assert) {
- var stoogeRanks = _.propertyOf({curly: 2, moe: 1, larry: 3});
- assert.equal(stoogeRanks('curly'), 2, 'should return the property with the given name');
- assert.equal(stoogeRanks(null), void 0, 'should return undefined for null values');
- assert.equal(stoogeRanks(void 0), void 0, 'should return undefined for undefined values');
-
- function MoreStooges() { this.shemp = 87; }
- MoreStooges.prototype = {curly: 2, moe: 1, larry: 3};
- var moreStoogeRanks = _.propertyOf(new MoreStooges());
- assert.equal(moreStoogeRanks('curly'), 2, 'should return properties from further up the prototype chain');
-
- var nullPropertyOf = _.propertyOf(null);
- assert.equal(nullPropertyOf('curly'), void 0, 'should return undefined when obj is null');
-
- var undefPropertyOf = _.propertyOf(void 0);
- assert.equal(undefPropertyOf('curly'), void 0, 'should return undefined when obj is undefined');
- });
-
- QUnit.test('random', function(assert) {
- var array = _.range(1000);
- var min = Math.pow(2, 31);
- var max = Math.pow(2, 62);
-
- assert.ok(_.every(array, function() {
- return _.random(min, max) >= min;
- }), 'should produce a random number greater than or equal to the minimum number');
-
- assert.ok(_.some(array, function() {
- return _.random(Number.MAX_VALUE) > 0;
- }), 'should produce a random number when passed `Number.MAX_VALUE`');
- });
-
- QUnit.test('now', function(assert) {
- var diff = _.now() - new Date().getTime();
- assert.ok(diff <= 0 && diff > -5, 'Produces the correct time in milliseconds');//within 5ms
- });
-
- QUnit.test('uniqueId', function(assert) {
- var ids = [], i = 0;
- while (i++ < 100) ids.push(_.uniqueId());
- assert.equal(_.uniq(ids).length, ids.length, 'can generate a globally-unique stream of ids');
- });
-
- QUnit.test('times', function(assert) {
- var vals = [];
- _.times(3, function(i) { vals.push(i); });
- assert.deepEqual(vals, [0, 1, 2], 'is 0 indexed');
- //
- vals = [];
- _(3).times(function(i) { vals.push(i); });
- assert.deepEqual(vals, [0, 1, 2], 'works as a wrapper');
- // collects return values
- assert.deepEqual([0, 1, 2], _.times(3, function(i) { return i; }), 'collects return values');
-
- assert.deepEqual(_.times(0, _.identity), []);
- assert.deepEqual(_.times(-1, _.identity), []);
- assert.deepEqual(_.times(parseFloat('-Infinity'), _.identity), []);
- });
-
- QUnit.test('mixin', function(assert) {
- _.mixin({
- myReverse: function(string) {
- return string.split('').reverse().join('');
- }
- });
- assert.equal(_.myReverse('panacea'), 'aecanap', 'mixed in a function to _');
- assert.equal(_('champ').myReverse(), 'pmahc', 'mixed in a function to the OOP wrapper');
- });
-
- QUnit.test('_.escape', function(assert) {
- assert.equal(_.escape(null), '');
- });
-
- QUnit.test('_.unescape', function(assert) {
- var string = 'Curly & Moe';
- assert.equal(_.unescape(null), '');
- assert.equal(_.unescape(_.escape(string)), string);
- assert.equal(_.unescape(string), string, 'don\'t unescape unnecessarily');
- });
-
- // Don't care what they escape them to just that they're escaped and can be unescaped
- QUnit.test('_.escape & unescape', function(assert) {
- // test & (&amp;) seperately obviously
- var escapeCharacters = ['<', '>', '"', '\'', '`'];
-
- _.each(escapeCharacters, function(escapeChar) {
- var s = 'a ' + escapeChar + ' string escaped';
- var e = _.escape(s);
- assert.notEqual(s, e, escapeChar + ' is escaped');
- assert.equal(s, _.unescape(e), escapeChar + ' can be unescaped');
-
- s = 'a ' + escapeChar + escapeChar + escapeChar + 'some more string' + escapeChar;
- e = _.escape(s);
-
- assert.equal(e.indexOf(escapeChar), -1, 'can escape multiple occurances of ' + escapeChar);
- assert.equal(_.unescape(e), s, 'multiple occurrences of ' + escapeChar + ' can be unescaped');
- });
-
- // handles multiple escape characters at once
- var joiner = ' other stuff ';
- var allEscaped = escapeCharacters.join(joiner);
- allEscaped += allEscaped;
- assert.ok(_.every(escapeCharacters, function(escapeChar) {
- return allEscaped.indexOf(escapeChar) !== -1;
- }), 'handles multiple characters');
- assert.ok(allEscaped.indexOf(joiner) >= 0, 'can escape multiple escape characters at the same time');
-
- // test & -> &amp;
- var str = 'some string & another string & yet another';
- var escaped = _.escape(str);
-
- assert.ok(escaped.indexOf('&') !== -1, 'handles & aka &amp;');
- assert.equal(_.unescape(str), str, 'can unescape &amp;');
- });
-
- QUnit.test('template', function(assert) {
- var basicTemplate = _.template("<%= thing %> is gettin' on my noives!");
- var result = basicTemplate({thing: 'This'});
- assert.equal(result, "This is gettin' on my noives!", 'can do basic attribute interpolation');
-
- var sansSemicolonTemplate = _.template('A <% this %> B');
- assert.equal(sansSemicolonTemplate(), 'A B');
-
- var backslashTemplate = _.template('<%= thing %> is \\ridanculous');
- assert.equal(backslashTemplate({thing: 'This'}), 'This is \\ridanculous');
-
- var escapeTemplate = _.template('<%= a ? "checked=\\"checked\\"" : "" %>');
- assert.equal(escapeTemplate({a: true}), 'checked="checked"', 'can handle slash escapes in interpolations.');
-
- var fancyTemplate = _.template('<ul><% ' +
- ' for (var key in people) { ' +
- '%><li><%= people[key] %></li><% } %></ul>');
- result = fancyTemplate({people: {moe: 'Moe', larry: 'Larry', curly: 'Curly'}});
- assert.equal(result, '<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>', 'can run arbitrary javascript in templates');
-
- var escapedCharsInJavascriptTemplate = _.template('<ul><% _.each(numbers.split("\\n"), function(item) { %><li><%= item %></li><% }) %></ul>');
- result = escapedCharsInJavascriptTemplate({numbers: 'one\ntwo\nthree\nfour'});
- assert.equal(result, '<ul><li>one</li><li>two</li><li>three</li><li>four</li></ul>', 'Can use escaped characters (e.g. \\n) in JavaScript');
-
- var namespaceCollisionTemplate = _.template('<%= pageCount %> <%= thumbnails[pageCount] %> <% _.each(thumbnails, function(p) { %><div class="thumbnail" rel="<%= p %>"></div><% }); %>');
- result = namespaceCollisionTemplate({
- pageCount: 3,
- thumbnails: {
- 1: 'p1-thumbnail.gif',
- 2: 'p2-thumbnail.gif',
- 3: 'p3-thumbnail.gif'
- }
- });
- assert.equal(result, '3 p3-thumbnail.gif <div class="thumbnail" rel="p1-thumbnail.gif"></div><div class="thumbnail" rel="p2-thumbnail.gif"></div><div class="thumbnail" rel="p3-thumbnail.gif"></div>');
-
- var noInterpolateTemplate = _.template('<div><p>Just some text. Hey, I know this is silly but it aids consistency.</p></div>');
- result = noInterpolateTemplate();
- assert.equal(result, '<div><p>Just some text. Hey, I know this is silly but it aids consistency.</p></div>');
-
- var quoteTemplate = _.template("It's its, not it's");
- assert.equal(quoteTemplate({}), "It's its, not it's");
-
- var quoteInStatementAndBody = _.template('<% ' +
- " if(foo == 'bar'){ " +
- "%>Statement quotes and 'quotes'.<% } %>");
- assert.equal(quoteInStatementAndBody({foo: 'bar'}), "Statement quotes and 'quotes'.");
-
- var withNewlinesAndTabs = _.template('This\n\t\tis: <%= x %>.\n\tok.\nend.');
- assert.equal(withNewlinesAndTabs({x: 'that'}), 'This\n\t\tis: that.\n\tok.\nend.');
-
- var template = _.template('<i><%- value %></i>');
- result = template({value: '<script>'});
- assert.equal(result, '<i>&lt;script&gt;</i>');
-
- var stooge = {
- name: 'Moe',
- template: _.template("I'm <%= this.name %>")
- };
- assert.equal(stooge.template(), "I'm Moe");
-
- template = _.template('\n ' +
- ' <%\n ' +
- ' // a comment\n ' +
- ' if (data) { data += 12345; }; %>\n ' +
- ' <li><%= data %></li>\n '
- );
- assert.equal(template({data: 12345}).replace(/\s/g, ''), '<li>24690</li>');
-
- _.templateSettings = {
- evaluate: /\{\{([\s\S]+?)\}\}/g,
- interpolate: /\{\{=([\s\S]+?)\}\}/g
- };
-
- var custom = _.template('<ul>{{ for (var key in people) { }}<li>{{= people[key] }}</li>{{ } }}</ul>');
- result = custom({people: {moe: 'Moe', larry: 'Larry', curly: 'Curly'}});
- assert.equal(result, '<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>', 'can run arbitrary javascript in templates');
-
- var customQuote = _.template("It's its, not it's");
- assert.equal(customQuote({}), "It's its, not it's");
-
- quoteInStatementAndBody = _.template("{{ if(foo == 'bar'){ }}Statement quotes and 'quotes'.{{ } }}");
- assert.equal(quoteInStatementAndBody({foo: 'bar'}), "Statement quotes and 'quotes'.");
-
- _.templateSettings = {
- evaluate: /<\?([\s\S]+?)\?>/g,
- interpolate: /<\?=([\s\S]+?)\?>/g
- };
-
- var customWithSpecialChars = _.template('<ul><? for (var key in people) { ?><li><?= people[key] ?></li><? } ?></ul>');
- result = customWithSpecialChars({people: {moe: 'Moe', larry: 'Larry', curly: 'Curly'}});
- assert.equal(result, '<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>', 'can run arbitrary javascript in templates');
-
- var customWithSpecialCharsQuote = _.template("It's its, not it's");
- assert.equal(customWithSpecialCharsQuote({}), "It's its, not it's");
-
- quoteInStatementAndBody = _.template("<? if(foo == 'bar'){ ?>Statement quotes and 'quotes'.<? } ?>");
- assert.equal(quoteInStatementAndBody({foo: 'bar'}), "Statement quotes and 'quotes'.");
-
- _.templateSettings = {
- interpolate: /\{\{(.+?)\}\}/g
- };
-
- var mustache = _.template('Hello {{planet}}!');
- assert.equal(mustache({planet: 'World'}), 'Hello World!', 'can mimic mustache.js');
-
- var templateWithNull = _.template('a null undefined {{planet}}');
- assert.equal(templateWithNull({planet: 'world'}), 'a null undefined world', 'can handle missing escape and evaluate settings');
- });
-
- QUnit.test('_.template provides the generated function source, when a SyntaxError occurs', function(assert) {
- var source;
- try {
- _.template('<b><%= if x %></b>');
- } catch (ex) {
- source = ex.source;
- }
- assert.ok(/__p/.test(source));
- });
-
- QUnit.test('_.template handles \\u2028 & \\u2029', function(assert) {
- var tmpl = _.template('<p>\u2028<%= "\\u2028\\u2029" %>\u2029</p>');
- assert.strictEqual(tmpl(), '<p>\u2028\u2028\u2029\u2029</p>');
- });
-
- QUnit.test('result calls functions and returns primitives', function(assert) {
- var obj = {w: '', x: 'x', y: function(){ return this.x; }};
- assert.strictEqual(_.result(obj, 'w'), '');
- assert.strictEqual(_.result(obj, 'x'), 'x');
- assert.strictEqual(_.result(obj, 'y'), 'x');
- assert.strictEqual(_.result(obj, 'z'), void 0);
- assert.strictEqual(_.result(null, 'x'), void 0);
- });
-
- QUnit.test('result returns a default value if object is null or undefined', function(assert) {
- assert.strictEqual(_.result(null, 'b', 'default'), 'default');
- assert.strictEqual(_.result(void 0, 'c', 'default'), 'default');
- assert.strictEqual(_.result(''.match('missing'), 1, 'default'), 'default');
- });
-
- QUnit.test('result returns a default value if property of object is missing', function(assert) {
- assert.strictEqual(_.result({d: null}, 'd', 'default'), null);
- assert.strictEqual(_.result({e: false}, 'e', 'default'), false);
- });
-
- QUnit.test('result only returns the default value if the object does not have the property or is undefined', function(assert) {
- assert.strictEqual(_.result({}, 'b', 'default'), 'default');
- assert.strictEqual(_.result({d: void 0}, 'd', 'default'), 'default');
- });
-
- QUnit.test('result does not return the default if the property of an object is found in the prototype', function(assert) {
- var Foo = function(){};
- Foo.prototype.bar = 1;
- assert.strictEqual(_.result(new Foo, 'bar', 2), 1);
- });
-
- QUnit.test('result does use the fallback when the result of invoking the property is undefined', function(assert) {
- var obj = {a: function() {}};
- assert.strictEqual(_.result(obj, 'a', 'failed'), void 0);
- });
-
- QUnit.test('result fallback can use a function', function(assert) {
- var obj = {a: [1, 2, 3]};
- assert.strictEqual(_.result(obj, 'b', _.constant(5)), 5);
- assert.strictEqual(_.result(obj, 'b', function() {
- return this.a;
- }), obj.a, 'called with context');
- });
-
- QUnit.test('_.templateSettings.variable', function(assert) {
- var s = '<%=data.x%>';
- var data = {x: 'x'};
- var tmp = _.template(s, {variable: 'data'});
- assert.strictEqual(tmp(data), 'x');
- _.templateSettings.variable = 'data';
- assert.strictEqual(_.template(s)(data), 'x');
- });
-
- QUnit.test('#547 - _.templateSettings is unchanged by custom settings.', function(assert) {
- assert.ok(!_.templateSettings.variable);
- _.template('', {}, {variable: 'x'});
- assert.ok(!_.templateSettings.variable);
- });
-
- QUnit.test('#556 - undefined template variables.', function(assert) {
- var template = _.template('<%=x%>');
- assert.strictEqual(template({x: null}), '');
- assert.strictEqual(template({x: void 0}), '');
-
- var templateEscaped = _.template('<%-x%>');
- assert.strictEqual(templateEscaped({x: null}), '');
- assert.strictEqual(templateEscaped({x: void 0}), '');
-
- var templateWithProperty = _.template('<%=x.foo%>');
- assert.strictEqual(templateWithProperty({x: {}}), '');
- assert.strictEqual(templateWithProperty({x: {}}), '');
-
- var templateWithPropertyEscaped = _.template('<%-x.foo%>');
- assert.strictEqual(templateWithPropertyEscaped({x: {}}), '');
- assert.strictEqual(templateWithPropertyEscaped({x: {}}), '');
- });
-
- QUnit.test('interpolate evaluates code only once.', function(assert) {
- assert.expect(2);
- var count = 0;
- var template = _.template('<%= f() %>');
- template({f: function(){ assert.ok(!count++); }});
-
- var countEscaped = 0;
- var templateEscaped = _.template('<%- f() %>');
- templateEscaped({f: function(){ assert.ok(!countEscaped++); }});
- });
-
- QUnit.test('#746 - _.template settings are not modified.', function(assert) {
- assert.expect(1);
- var settings = {};
- _.template('', null, settings);
- assert.deepEqual(settings, {});
- });
-
- QUnit.test('#779 - delimeters are applied to unescaped text.', function(assert) {
- assert.expect(1);
- var template = _.template('<<\nx\n>>', null, {evaluate: /<<(.*?)>>/g});
- assert.strictEqual(template(), '<<\nx\n>>');
- });
-
-}());
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/underscore-min.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/underscore-min.js
deleted file mode 100644
index f01025b7..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/underscore-min.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// Underscore.js 1.8.3
-// http://underscorejs.org
-// (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Underscore may be freely distributed under the MIT license.
-(function(){function n(n){function t(t,r,e,u,i,o){for(;i>=0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(t),i=n>0?0:u-1;i>=0&&u>i;i+=n)if(r(t[i],i,t))return i;return-1}}function r(n,t,r){return function(e,u,i){var o=0,a=O(e);if("number"==typeof i)n>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(r&&i&&a)return i=r(e,u),e[i]===u?i:-1;if(u!==u)return i=t(l.call(e,o,a),m.isNaN),i>=0?i+o:-1;for(i=n>0?o:a-1;i>=0&&a>i;i+=n)if(e[i]===u)return i;return-1}}function e(n,t){var r=I.length,e=n.constructor,u=m.isFunction(e)&&e.prototype||a,i="constructor";for(m.has(n,i)&&!m.contains(t,i)&&t.push(i);r--;)i=I[r],i in n&&n[i]!==u[i]&&!m.contains(t,i)&&t.push(i)}var u=this,i=u._,o=Array.prototype,a=Object.prototype,c=Function.prototype,f=o.push,l=o.slice,s=a.toString,p=a.hasOwnProperty,h=Array.isArray,v=Object.keys,g=c.bind,y=Object.create,d=function(){},m=function(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):u._=m,m.VERSION="1.8.3";var b=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}},x=function(n,t,r){return null==n?m.identity:m.isFunction(n)?b(n,t,r):m.isObject(n)?m.matcher(n):m.property(n)};m.iteratee=function(n,t){return x(n,t,1/0)};var _=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var u=1;e>u;u++)for(var i=arguments[u],o=n(i),a=o.length,c=0;a>c;c++){var f=o[c];t&&r[f]!==void 0||(r[f]=i[f])}return r}},j=function(n){if(!m.isObject(n))return{};if(y)return y(n);d.prototype=n;var t=new d;return d.prototype=null,t},w=function(n){return function(t){return null==t?void 0:t[n]}},A=Math.pow(2,53)-1,O=w("length"),k=function(n){var t=O(n);return"number"==typeof t&&t>=0&&A>=t};m.each=m.forEach=function(n,t,r){t=b(t,r);var e,u;if(k(n))for(e=0,u=n.length;u>e;e++)t(n[e],e,n);else{var i=m.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},m.map=m.collect=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=Array(u),o=0;u>o;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},m.reduce=m.foldl=m.inject=n(1),m.reduceRight=m.foldr=n(-1),m.find=m.detect=function(n,t,r){var e;return e=k(n)?m.findIndex(n,t,r):m.findKey(n,t,r),e!==void 0&&e!==-1?n[e]:void 0},m.filter=m.select=function(n,t,r){var e=[];return t=x(t,r),m.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e},m.reject=function(n,t,r){return m.filter(n,m.negate(x(t)),r)},m.every=m.all=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},m.some=m.any=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},m.contains=m.includes=m.include=function(n,t,r,e){return k(n)||(n=m.values(n)),("number"!=typeof r||e)&&(r=0),m.indexOf(n,t,r)>=0},m.invoke=function(n,t){var r=l.call(arguments,2),e=m.isFunction(t);return m.map(n,function(n){var u=e?t:n[t];return null==u?u:u.apply(n,r)})},m.pluck=function(n,t){return m.map(n,m.property(t))},m.where=function(n,t){return m.filter(n,m.matcher(t))},m.findWhere=function(n,t){return m.find(n,m.matcher(t))},m.max=function(n,t,r){var e,u,i=-1/0,o=-1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>i&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(u>o||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},m.min=function(n,t,r){var e,u,i=1/0,o=1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],i>e&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(o>u||1/0===u&&1/0===i)&&(i=n,o=u)});return i},m.shuffle=function(n){for(var t,r=k(n)?n:m.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=m.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},m.sample=function(n,t,r){return null==t||r?(k(n)||(n=m.values(n)),n[m.random(n.length-1)]):m.shuffle(n).slice(0,Math.max(0,t))},m.sortBy=function(n,t,r){return t=x(t,r),m.pluck(m.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=x(r,e),m.each(t,function(e,i){var o=r(e,i,t);n(u,e,o)}),u}};m.groupBy=F(function(n,t,r){m.has(n,r)?n[r].push(t):n[r]=[t]}),m.indexBy=F(function(n,t,r){n[r]=t}),m.countBy=F(function(n,t,r){m.has(n,r)?n[r]++:n[r]=1}),m.toArray=function(n){return n?m.isArray(n)?l.call(n):k(n)?m.map(n,m.identity):m.values(n):[]},m.size=function(n){return null==n?0:k(n)?n.length:m.keys(n).length},m.partition=function(n,t,r){t=x(t,r);var e=[],u=[];return m.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},m.first=m.head=m.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:m.initial(n,n.length-t)},m.initial=function(n,t,r){return l.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},m.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:m.rest(n,Math.max(0,n.length-t))},m.rest=m.tail=m.drop=function(n,t,r){return l.call(n,null==t||r?1:t)},m.compact=function(n){return m.filter(n,m.identity)};var S=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=O(n);a>o;o++){var c=n[o];if(k(c)&&(m.isArray(c)||m.isArguments(c))){t||(c=S(c,t,r));var f=0,l=c.length;for(u.length+=l;l>f;)u[i++]=c[f++]}else r||(u[i++]=c)}return u};m.flatten=function(n,t){return S(n,t,!1)},m.without=function(n){return m.difference(n,l.call(arguments,1))},m.uniq=m.unique=function(n,t,r,e){m.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=x(r,e));for(var u=[],i=[],o=0,a=O(n);a>o;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?m.contains(i,f)||(i.push(f),u.push(c)):m.contains(u,c)||u.push(c)}return u},m.union=function(){return m.uniq(S(arguments,!0,!0))},m.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=O(n);u>e;e++){var i=n[e];if(!m.contains(t,i)){for(var o=1;r>o&&m.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n,function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i},m.indexOf=r(1,m.findIndex,m.sortedIndex),m.lastIndexOf=r(-1,m.findLastIndex),m.range=function(n,t,r){null==t&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this,r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e<arguments.length;)i.push(arguments[e++]);return E(n,r,this,this,i)};return r},m.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+(t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[];if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.isFunction(t)?(u=m.allKeys(o),e=b(t,r)):(u=S(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=u.length;c>a;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},m.omit=function(n,t,r){if(m.isFunction(t))t=m.negate(t);else{var e=m.map(S(arguments,!1,!1,1),String);t=function(n,t){return!m.contains(e,t)}}return m.pick(n,t,r)},m.defaults=_(m.allKeys,!0),m.create=function(n,t){var r=j(n);return t&&m.extendOwn(r,t),r},m.clone=function(n){return m.isObject(n)?m.isArray(n)?n.slice():m.extend({},n):n},m.tap=function(n,t){return t(n),n},m.isMatch=function(n,t){var r=m.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;e>i;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof m&&(n=n._wrapped),t instanceof m&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var c=r.length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if(c=n.length,c!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=m.keys(n);if(c=l.length,m.keys(t).length!==c)return!1;for(;c--;)if(f=l[c],!m.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};m.isEqual=function(n,t){return N(n,t)},m.isEmpty=function(n){return null==n?!0:k(n)&&(m.isArray(n)||m.isString(n)||m.isArguments(n))?0===n.length:0===m.keys(n).length},m.isElement=function(n){return!(!n||1!==n.nodeType)},m.isArray=h||function(n){return"[object Array]"===s.call(n)},m.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){m["is"+n]=function(t){return s.call(t)==="[object "+n+"]"}}),m.isArguments(arguments)||(m.isArguments=function(n){return m.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(n){return"function"==typeof n||!1}),m.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},m.isNaN=function(n){return m.isNumber(n)&&n!==+n},m.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===s.call(n)},m.isNull=function(n){return null===n},m.isUndefined=function(n){return n===void 0},m.has=function(n,t){return null!=n&&p.call(n,t)},m.noConflict=function(){return u._=i,this},m.identity=function(n){return n},m.constant=function(n){return function(){return n}},m.noop=function(){},m.property=w,m.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},m.matcher=m.matches=function(n){return n=m.extendOwn({},n),function(t){return m.isMatch(t,n)}},m.times=function(n,t,r){var e=Array(Math.max(0,n));t=b(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},m.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},T=m.invert(B),R=function(n){var t=function(t){return n[t]},r="(?:"+m.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};m.escape=R(B),m.unescape=R(T),m.result=function(n,t,r){var e=null==n?void 0:n[t];return e===void 0&&(e=r),m.isFunction(e)?e.call(n):e};var q=0;m.uniqueId=function(n){var t=++q+"";return n?n+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,L=function(n){return"\\"+z[n]};m.template=function(n,t,r){!t&&r&&(t=r),t=m.defaults({},t,m.templateSettings);var e=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,o,a){return i+=n.slice(u,a).replace(D,L),u=a+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(a){throw a.source=i,a}var c=function(n){return o.call(this,n,m)},f=t.variable||"obj";return c.source="function("+f+"){\n"+i+"}",c},m.chain=function(n){var t=m(n);return t._chain=!0,t};var P=function(n,t){return n._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(t){var r=m[t]=n[t];m.prototype[t]=function(){var n=[this._wrapped];return f.apply(n,arguments),P(this,r.apply(m,n))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=o[n];m.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],P(this,r)}}),m.each(["concat","join","slice"],function(n){var t=o[n];m.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this);
-//# sourceMappingURL=underscore-min.map \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/underscore.js b/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/underscore.js
deleted file mode 100644
index bddfdc9f..00000000
--- a/ecomp-portal-FE/client/bower_components/lodash/vendor/underscore/underscore.js
+++ /dev/null
@@ -1,1620 +0,0 @@
-// Underscore.js 1.8.3
-// http://underscorejs.org
-// (c) 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
-// Underscore may be freely distributed under the MIT license.
-
-(function() {
-
- // Baseline setup
- // --------------
-
- // Establish the root object, `window` (`self`) in the browser, `global`
- // on the server, or `this` in some virtual machines. We use `self`
- // instead of `window` for `WebWorker` support.
- var root = typeof self == 'object' && self.self === self && self ||
- typeof global == 'object' && global.global === global && global ||
- this;
-
- // Save the previous value of the `_` variable.
- var previousUnderscore = root._;
-
- // Save bytes in the minified (but not gzipped) version:
- var ArrayProto = Array.prototype, ObjProto = Object.prototype;
- var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;
-
- // Create quick reference variables for speed access to core prototypes.
- var push = ArrayProto.push,
- slice = ArrayProto.slice,
- toString = ObjProto.toString,
- hasOwnProperty = ObjProto.hasOwnProperty;
-
- // All **ECMAScript 5** native function implementations that we hope to use
- // are declared here.
- var nativeIsArray = Array.isArray,
- nativeKeys = Object.keys,
- nativeCreate = Object.create;
-
- // Naked function reference for surrogate-prototype-swapping.
- var Ctor = function(){};
-
- // Create a safe reference to the Underscore object for use below.
- var _ = function(obj) {
- if (obj instanceof _) return obj;
- if (!(this instanceof _)) return new _(obj);
- this._wrapped = obj;
- };
-
- // Export the Underscore object for **Node.js**, with
- // backwards-compatibility for their old module API. If we're in
- // the browser, add `_` as a global object.
- // (`nodeType` is checked to ensure that `module`
- // and `exports` are not HTML elements.)
- if (typeof exports != 'undefined' && !exports.nodeType) {
- if (typeof module != 'undefined' && !module.nodeType && module.exports) {
- exports = module.exports = _;
- }
- exports._ = _;
- } else {
- root._ = _;
- }
-
- // Current version.
- _.VERSION = '1.8.3';
-
- // Internal function that returns an efficient (for current engines) version
- // of the passed-in callback, to be repeatedly applied in other Underscore
- // functions.
- var optimizeCb = function(func, context, argCount) {
- if (context === void 0) return func;
- switch (argCount == null ? 3 : argCount) {
- case 1: return function(value) {
- return func.call(context, value);
- };
- // The 2-parameter case has been omitted only because no current consumers
- // made use of it.
- case 3: return function(value, index, collection) {
- return func.call(context, value, index, collection);
- };
- case 4: return function(accumulator, value, index, collection) {
- return func.call(context, accumulator, value, index, collection);
- };
- }
- return function() {
- return func.apply(context, arguments);
- };
- };
-
- // An internal function to generate callbacks that can be applied to each
- // element in a collection, returning the desired result — either `identity`,
- // an arbitrary callback, a property matcher, or a property accessor.
- var cb = function(value, context, argCount) {
- if (value == null) return _.identity;
- if (_.isFunction(value)) return optimizeCb(value, context, argCount);
- if (_.isObject(value)) return _.matcher(value);
- return _.property(value);
- };
-
- // An external wrapper for the internal callback generator.
- _.iteratee = function(value, context) {
- return cb(value, context, Infinity);
- };
-
- // Similar to ES6's rest param (http://ariya.ofilabs.com/2013/03/es6-and-rest-parameter.html)
- // This accumulates the arguments passed into an array, after a given index.
- var restArgs = function(func, startIndex) {
- startIndex = startIndex == null ? func.length - 1 : +startIndex;
- return function() {
- var length = Math.max(arguments.length - startIndex, 0);
- var rest = Array(length);
- for (var index = 0; index < length; index++) {
- rest[index] = arguments[index + startIndex];
- }
- switch (startIndex) {
- case 0: return func.call(this, rest);
- case 1: return func.call(this, arguments[0], rest);
- case 2: return func.call(this, arguments[0], arguments[1], rest);
- }
- var args = Array(startIndex + 1);
- for (index = 0; index < startIndex; index++) {
- args[index] = arguments[index];
- }
- args[startIndex] = rest;
- return func.apply(this, args);
- };
- };
-
- // An internal function for creating a new object that inherits from another.
- var baseCreate = function(prototype) {
- if (!_.isObject(prototype)) return {};
- if (nativeCreate) return nativeCreate(prototype);
- Ctor.prototype = prototype;
- var result = new Ctor;
- Ctor.prototype = null;
- return result;
- };
-
- var property = function(key) {
- return function(obj) {
- return obj == null ? void 0 : obj[key];
- };
- };
-
- // Helper for collection methods to determine whether a collection
- // should be iterated as an array or as an object.
- // Related: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
- // Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094
- var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
- var getLength = property('length');
- var isArrayLike = function(collection) {
- var length = getLength(collection);
- return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;
- };
-
- // Collection Functions
- // --------------------
-
- // The cornerstone, an `each` implementation, aka `forEach`.
- // Handles raw objects in addition to array-likes. Treats all
- // sparse array-likes as if they were dense.
- _.each = _.forEach = function(obj, iteratee, context) {
- iteratee = optimizeCb(iteratee, context);
- var i, length;
- if (isArrayLike(obj)) {
- for (i = 0, length = obj.length; i < length; i++) {
- iteratee(obj[i], i, obj);
- }
- } else {
- var keys = _.keys(obj);
- for (i = 0, length = keys.length; i < length; i++) {
- iteratee(obj[keys[i]], keys[i], obj);
- }
- }
- return obj;
- };
-
- // Return the results of applying the iteratee to each element.
- _.map = _.collect = function(obj, iteratee, context) {
- iteratee = cb(iteratee, context);
- var keys = !isArrayLike(obj) && _.keys(obj),
- length = (keys || obj).length,
- results = Array(length);
- for (var index = 0; index < length; index++) {
- var currentKey = keys ? keys[index] : index;
- results[index] = iteratee(obj[currentKey], currentKey, obj);
- }
- return results;
- };
-
- // Create a reducing function iterating left or right.
- var createReduce = function(dir) {
- // Wrap code that reassigns argument variables in a separate function than
- // the one that accesses `arguments.length` to avoid a perf hit. (#1991)
- var reducer = function(obj, iteratee, memo, initial) {
- var keys = !isArrayLike(obj) && _.keys(obj),
- length = (keys || obj).length,
- index = dir > 0 ? 0 : length - 1;
- if (!initial) {
- memo = obj[keys ? keys[index] : index];
- index += dir;
- }
- for (; index >= 0 && index < length; index += dir) {
- var currentKey = keys ? keys[index] : index;
- memo = iteratee(memo, obj[currentKey], currentKey, obj);
- }
- return memo;
- };
-
- return function(obj, iteratee, memo, context) {
- var initial = arguments.length >= 3;
- return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);
- };
- };
-
- // **Reduce** builds up a single result from a list of values, aka `inject`,
- // or `foldl`.
- _.reduce = _.foldl = _.inject = createReduce(1);
-
- // The right-associative version of reduce, also known as `foldr`.
- _.reduceRight = _.foldr = createReduce(-1);
-
- // Return the first value which passes a truth test. Aliased as `detect`.
- _.find = _.detect = function(obj, predicate, context) {
- var keyFinder = isArrayLike(obj) ? _.findIndex : _.findKey;
- var key = keyFinder(obj, predicate, context);
- if (key !== void 0 && key !== -1) return obj[key];
- };
-
- // Return all the elements that pass a truth test.
- // Aliased as `select`.
- _.filter = _.select = function(obj, predicate, context) {
- var results = [];
- predicate = cb(predicate, context);
- _.each(obj, function(value, index, list) {
- if (predicate(value, index, list)) results.push(value);
- });
- return results;
- };
-
- // Return all the elements for which a truth test fails.
- _.reject = function(obj, predicate, context) {
- return _.filter(obj, _.negate(cb(predicate)), context);
- };
-
- // Determine whether all of the elements match a truth test.
- // Aliased as `all`.
- _.every = _.all = function(obj, predicate, context) {
- predicate = cb(predicate, context);
- var keys = !isArrayLike(obj) && _.keys(obj),
- length = (keys || obj).length;
- for (var index = 0; index < length; index++) {
- var currentKey = keys ? keys[index] : index;
- if (!predicate(obj[currentKey], currentKey, obj)) return false;
- }
- return true;
- };
-
- // Determine if at least one element in the object matches a truth test.
- // Aliased as `any`.
- _.some = _.any = function(obj, predicate, context) {
- predicate = cb(predicate, context);
- var keys = !isArrayLike(obj) && _.keys(obj),
- length = (keys || obj).length;
- for (var index = 0; index < length; index++) {
- var currentKey = keys ? keys[index] : index;
- if (predicate(obj[currentKey], currentKey, obj)) return true;
- }
- return false;
- };
-
- // Determine if the array or object contains a given item (using `===`).
- // Aliased as `includes` and `include`.
- _.contains = _.includes = _.include = function(obj, item, fromIndex, guard) {
- if (!isArrayLike(obj)) obj = _.values(obj);
- if (typeof fromIndex != 'number' || guard) fromIndex = 0;
- return _.indexOf(obj, item, fromIndex) >= 0;
- };
-
- // Invoke a method (with arguments) on every item in a collection.
- _.invoke = restArgs(function(obj, method, args) {
- var isFunc = _.isFunction(method);
- return _.map(obj, function(value) {
- var func = isFunc ? method : value[method];
- return func == null ? func : func.apply(value, args);
- });
- });
-
- // Convenience version of a common use case of `map`: fetching a property.
- _.pluck = function(obj, key) {
- return _.map(obj, _.property(key));
- };
-
- // Convenience version of a common use case of `filter`: selecting only objects
- // containing specific `key:value` pairs.
- _.where = function(obj, attrs) {
- return _.filter(obj, _.matcher(attrs));
- };
-
- // Convenience version of a common use case of `find`: getting the first object
- // containing specific `key:value` pairs.
- _.findWhere = function(obj, attrs) {
- return _.find(obj, _.matcher(attrs));
- };
-
- // Return the maximum element (or element-based computation).
- _.max = function(obj, iteratee, context) {
- var result = -Infinity, lastComputed = -Infinity,
- value, computed;
- if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object') && obj != null) {
- obj = isArrayLike(obj) ? obj : _.values(obj);
- for (var i = 0, length = obj.length; i < length; i++) {
- value = obj[i];
- if (value != null && value > result) {
- result = value;
- }
- }
- } else {
- iteratee = cb(iteratee, context);
- _.each(obj, function(v, index, list) {
- computed = iteratee(v, index, list);
- if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
- result = v;
- lastComputed = computed;
- }
- });
- }
- return result;
- };
-
- // Return the minimum element (or element-based computation).
- _.min = function(obj, iteratee, context) {
- var result = Infinity, lastComputed = Infinity,
- value, computed;
- if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object') && obj != null) {
- obj = isArrayLike(obj) ? obj : _.values(obj);
- for (var i = 0, length = obj.length; i < length; i++) {
- value = obj[i];
- if (value != null && value < result) {
- result = value;
- }
- }
- } else {
- iteratee = cb(iteratee, context);
- _.each(obj, function(v, index, list) {
- computed = iteratee(v, index, list);
- if (computed < lastComputed || computed === Infinity && result === Infinity) {
- result = v;
- lastComputed = computed;
- }
- });
- }
- return result;
- };
-
- // Shuffle a collection.
- _.shuffle = function(obj) {
- return _.sample(obj, Infinity);
- };
-
- // Sample **n** random values from a collection using the modern version of the
- // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
- // If **n** is not specified, returns a single random element.
- // The internal `guard` argument allows it to work with `map`.
- _.sample = function(obj, n, guard) {
- if (n == null || guard) {
- if (!isArrayLike(obj)) obj = _.values(obj);
- return obj[_.random(obj.length - 1)];
- }
- var sample = isArrayLike(obj) ? _.clone(obj) : _.values(obj);
- var length = getLength(sample);
- n = Math.max(Math.min(n, length), 0);
- var last = length - 1;
- for (var index = 0; index < n; index++) {
- var rand = _.random(index, last);
- var temp = sample[index];
- sample[index] = sample[rand];
- sample[rand] = temp;
- }
- return sample.slice(0, n);
- };
-
- // Sort the object's values by a criterion produced by an iteratee.
- _.sortBy = function(obj, iteratee, context) {
- var index = 0;
- iteratee = cb(iteratee, context);
- return _.pluck(_.map(obj, function(value, key, list) {
- return {
- value: value,
- index: index++,
- criteria: iteratee(value, key, list)
- };
- }).sort(function(left, right) {
- var a = left.criteria;
- var b = right.criteria;
- if (a !== b) {
- if (a > b || a === void 0) return 1;
- if (a < b || b === void 0) return -1;
- }
- return left.index - right.index;
- }), 'value');
- };
-
- // An internal function used for aggregate "group by" operations.
- var group = function(behavior, partition) {
- return function(obj, iteratee, context) {
- var result = partition ? [[], []] : {};
- iteratee = cb(iteratee, context);
- _.each(obj, function(value, index) {
- var key = iteratee(value, index, obj);
- behavior(result, value, key);
- });
- return result;
- };
- };
-
- // Groups the object's values by a criterion. Pass either a string attribute
- // to group by, or a function that returns the criterion.
- _.groupBy = group(function(result, value, key) {
- if (_.has(result, key)) result[key].push(value); else result[key] = [value];
- });
-
- // Indexes the object's values by a criterion, similar to `groupBy`, but for
- // when you know that your index values will be unique.
- _.indexBy = group(function(result, value, key) {
- result[key] = value;
- });
-
- // Counts instances of an object that group by a certain criterion. Pass
- // either a string attribute to count by, or a function that returns the
- // criterion.
- _.countBy = group(function(result, value, key) {
- if (_.has(result, key)) result[key]++; else result[key] = 1;
- });
-
- var reStrSymbol = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
- // Safely create a real, live array from anything iterable.
- _.toArray = function(obj) {
- if (!obj) return [];
- if (_.isArray(obj)) return slice.call(obj);
- if (_.isString(obj)) {
- // Keep surrogate pair characters together
- return obj.match(reStrSymbol);
- }
- if (isArrayLike(obj)) return _.map(obj);
- return _.values(obj);
- };
-
- // Return the number of elements in an object.
- _.size = function(obj) {
- if (obj == null) return 0;
- return isArrayLike(obj) ? obj.length : _.keys(obj).length;
- };
-
- // Split a collection into two arrays: one whose elements all satisfy the given
- // predicate, and one whose elements all do not satisfy the predicate.
- _.partition = group(function(result, value, pass) {
- result[pass ? 0 : 1].push(value);
- }, true);
-
- // Array Functions
- // ---------------
-
- // Get the first element of an array. Passing **n** will return the first N
- // values in the array. Aliased as `head` and `take`. The **guard** check
- // allows it to work with `_.map`.
- _.first = _.head = _.take = function(array, n, guard) {
- if (array == null) return void 0;
- if (n == null || guard) return array[0];
- return _.initial(array, array.length - n);
- };
-
- // Returns everything but the last entry of the array. Especially useful on
- // the arguments object. Passing **n** will return all the values in
- // the array, excluding the last N.
- _.initial = function(array, n, guard) {
- return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
- };
-
- // Get the last element of an array. Passing **n** will return the last N
- // values in the array.
- _.last = function(array, n, guard) {
- if (array == null) return void 0;
- if (n == null || guard) return array[array.length - 1];
- return _.rest(array, Math.max(0, array.length - n));
- };
-
- // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
- // Especially useful on the arguments object. Passing an **n** will return
- // the rest N values in the array.
- _.rest = _.tail = _.drop = function(array, n, guard) {
- return slice.call(array, n == null || guard ? 1 : n);
- };
-
- // Trim out all falsy values from an array.
- _.compact = function(array) {
- return _.filter(array);
- };
-
- // Internal implementation of a recursive `flatten` function.
- var flatten = function(input, shallow, strict, output) {
- output = output || [];
- var idx = output.length;
- for (var i = 0, length = getLength(input); i < length; i++) {
- var value = input[i];
- if (isArrayLike(value) && (_.isArray(value) || _.isArguments(value))) {
- // Flatten current level of array or arguments object.
- if (shallow) {
- var j = 0, len = value.length;
- while (j < len) output[idx++] = value[j++];
- } else {
- flatten(value, shallow, strict, output);
- idx = output.length;
- }
- } else if (!strict) {
- output[idx++] = value;
- }
- }
- return output;
- };
-
- // Flatten out an array, either recursively (by default), or just one level.
- _.flatten = function(array, shallow) {
- return flatten(array, shallow, false);
- };
-
- // Return a version of the array that does not contain the specified value(s).
- _.without = restArgs(function(array, otherArrays) {
- return _.difference(array, otherArrays);
- });
-
- // Produce a duplicate-free version of the array. If the array has already
- // been sorted, you have the option of using a faster algorithm.
- // Aliased as `unique`.
- _.uniq = _.unique = function(array, isSorted, iteratee, context) {
- if (!_.isBoolean(isSorted)) {
- context = iteratee;
- iteratee = isSorted;
- isSorted = false;
- }
- if (iteratee != null) iteratee = cb(iteratee, context);
- var result = [];
- var seen = [];
- for (var i = 0, length = getLength(array); i < length; i++) {
- var value = array[i],
- computed = iteratee ? iteratee(value, i, array) : value;
- if (isSorted) {
- if (!i || seen !== computed) result.push(value);
- seen = computed;
- } else if (iteratee) {
- if (!_.contains(seen, computed)) {
- seen.push(computed);
- result.push(value);
- }
- } else if (!_.contains(result, value)) {
- result.push(value);
- }
- }
- return result;
- };
-
- // Produce an array that contains the union: each distinct element from all of
- // the passed-in arrays.
- _.union = restArgs(function(arrays) {
- return _.uniq(flatten(arrays, true, true));
- });
-
- // Produce an array that contains every item shared between all the
- // passed-in arrays.
- _.intersection = function(array) {
- var result = [];
- var argsLength = arguments.length;
- for (var i = 0, length = getLength(array); i < length; i++) {
- var item = array[i];
- if (_.contains(result, item)) continue;
- var j;
- for (j = 1; j < argsLength; j++) {
- if (!_.contains(arguments[j], item)) break;
- }
- if (j === argsLength) result.push(item);
- }
- return result;
- };
-
- // Take the difference between one array and a number of other arrays.
- // Only the elements present in just the first array will remain.
- _.difference = restArgs(function(array, rest) {
- rest = flatten(rest, true, true);
- return _.filter(array, function(value){
- return !_.contains(rest, value);
- });
- });
-
- // Complement of _.zip. Unzip accepts an array of arrays and groups
- // each array's elements on shared indices.
- _.unzip = function(array) {
- var length = array && _.max(array, getLength).length || 0;
- var result = Array(length);
-
- for (var index = 0; index < length; index++) {
- result[index] = _.pluck(array, index);
- }
- return result;
- };
-
- // Zip together multiple lists into a single array -- elements that share
- // an index go together.
- _.zip = restArgs(_.unzip);
-
- // Converts lists into objects. Pass either a single array of `[key, value]`
- // pairs, or two parallel arrays of the same length -- one of keys, and one of
- // the corresponding values.
- _.object = function(list, values) {
- var result = {};
- for (var i = 0, length = getLength(list); i < length; i++) {
- if (values) {
- result[list[i]] = values[i];
- } else {
- result[list[i][0]] = list[i][1];
- }
- }
- return result;
- };
-
- // Generator function to create the findIndex and findLastIndex functions.
- var createPredicateIndexFinder = function(dir) {
- return function(array, predicate, context) {
- predicate = cb(predicate, context);
- var length = getLength(array);
- var index = dir > 0 ? 0 : length - 1;
- for (; index >= 0 && index < length; index += dir) {
- if (predicate(array[index], index, array)) return index;
- }
- return -1;
- };
- };
-
- // Returns the first index on an array-like that passes a predicate test.
- _.findIndex = createPredicateIndexFinder(1);
- _.findLastIndex = createPredicateIndexFinder(-1);
-
- // Use a comparator function to figure out the smallest index at which
- // an object should be inserted so as to maintain order. Uses binary search.
- _.sortedIndex = function(array, obj, iteratee, context) {
- iteratee = cb(iteratee, context, 1);
- var value = iteratee(obj);
- var low = 0, high = getLength(array);
- while (low < high) {
- var mid = Math.floor((low + high) / 2);
- if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
- }
- return low;
- };
-
- // Generator function to create the indexOf and lastIndexOf functions.
- var createIndexFinder = function(dir, predicateFind, sortedIndex) {
- return function(array, item, idx) {
- var i = 0, length = getLength(array);
- if (typeof idx == 'number') {
- if (dir > 0) {
- i = idx >= 0 ? idx : Math.max(idx + length, i);
- } else {
- length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;
- }
- } else if (sortedIndex && idx && length) {
- idx = sortedIndex(array, item);
- return array[idx] === item ? idx : -1;
- }
- if (item !== item) {
- idx = predicateFind(slice.call(array, i, length), _.isNaN);
- return idx >= 0 ? idx + i : -1;
- }
- for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {
- if (array[idx] === item) return idx;
- }
- return -1;
- };
- };
-
- // Return the position of the first occurrence of an item in an array,
- // or -1 if the item is not included in the array.
- // If the array is large and already in sort order, pass `true`
- // for **isSorted** to use binary search.
- _.indexOf = createIndexFinder(1, _.findIndex, _.sortedIndex);
- _.lastIndexOf = createIndexFinder(-1, _.findLastIndex);
-
- // Generate an integer Array containing an arithmetic progression. A port of
- // the native Python `range()` function. See
- // [the Python documentation](http://docs.python.org/library/functions.html#range).
- _.range = function(start, stop, step) {
- if (stop == null) {
- stop = start || 0;
- start = 0;
- }
- if (!step) {
- step = stop < start ? -1 : 1;
- }
-
- var length = Math.max(Math.ceil((stop - start) / step), 0);
- var range = Array(length);
-
- for (var idx = 0; idx < length; idx++, start += step) {
- range[idx] = start;
- }
-
- return range;
- };
-
- // Split an **array** into several arrays containing **count** or less elements
- // of initial array.
- _.chunk = function(array, count) {
- if (count == null || count < 1) return [];
-
- var result = [];
- var i = 0, length = array.length;
- while (i < length) {
- result.push(slice.call(array, i, i += count));
- }
- return result;
- };
-
- // Function (ahem) Functions
- // ------------------
-
- // Determines whether to execute a function as a constructor
- // or a normal function with the provided arguments.
- var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) {
- if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
- var self = baseCreate(sourceFunc.prototype);
- var result = sourceFunc.apply(self, args);
- if (_.isObject(result)) return result;
- return self;
- };
-
- // Create a function bound to a given object (assigning `this`, and arguments,
- // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
- // available.
- _.bind = restArgs(function(func, context, args) {
- if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
- var bound = restArgs(function(callArgs) {
- return executeBound(func, bound, context, this, args.concat(callArgs));
- });
- return bound;
- });
-
- // Partially apply a function by creating a version that has had some of its
- // arguments pre-filled, without changing its dynamic `this` context. _ acts
- // as a placeholder by default, allowing any combination of arguments to be
- // pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.
- _.partial = restArgs(function(func, boundArgs) {
- var placeholder = _.partial.placeholder;
- var bound = function() {
- var position = 0, length = boundArgs.length;
- var args = Array(length);
- for (var i = 0; i < length; i++) {
- args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];
- }
- while (position < arguments.length) args.push(arguments[position++]);
- return executeBound(func, bound, this, this, args);
- };
- return bound;
- });
-
- _.partial.placeholder = _;
-
- // Bind a number of an object's methods to that object. Remaining arguments
- // are the method names to be bound. Useful for ensuring that all callbacks
- // defined on an object belong to it.
- _.bindAll = restArgs(function(obj, keys) {
- keys = flatten(keys, false, false);
- var index = keys.length;
- if (index < 1) throw new Error('bindAll must be passed function names');
- while (index--) {
- var key = keys[index];
- obj[key] = _.bind(obj[key], obj);
- }
- });
-
- // Memoize an expensive function by storing its results.
- _.memoize = function(func, hasher) {
- var memoize = function(key) {
- var cache = memoize.cache;
- var address = '' + (hasher ? hasher.apply(this, arguments) : key);
- if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
- return cache[address];
- };
- memoize.cache = {};
- return memoize;
- };
-
- // Delays a function for the given number of milliseconds, and then calls
- // it with the arguments supplied.
- _.delay = restArgs(function(func, wait, args) {
- return setTimeout(function() {
- return func.apply(null, args);
- }, wait);
- });
-
- // Defers a function, scheduling it to run after the current call stack has
- // cleared.
- _.defer = _.partial(_.delay, _, 1);
-
- // Returns a function, that, when invoked, will only be triggered at most once
- // during a given window of time. Normally, the throttled function will run
- // as much as it can, without ever going more than once per `wait` duration;
- // but if you'd like to disable the execution on the leading edge, pass
- // `{leading: false}`. To disable execution on the trailing edge, ditto.
- _.throttle = function(func, wait, options) {
- var timeout, context, args, result;
- var previous = 0;
- if (!options) options = {};
-
- var later = function() {
- previous = options.leading === false ? 0 : _.now();
- timeout = null;
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- };
-
- var throttled = function() {
- var now = _.now();
- if (!previous && options.leading === false) previous = now;
- var remaining = wait - (now - previous);
- context = this;
- args = arguments;
- if (remaining <= 0 || remaining > wait) {
- if (timeout) {
- clearTimeout(timeout);
- timeout = null;
- }
- previous = now;
- result = func.apply(context, args);
- if (!timeout) context = args = null;
- } else if (!timeout && options.trailing !== false) {
- timeout = setTimeout(later, remaining);
- }
- return result;
- };
-
- throttled.cancel = function() {
- clearTimeout(timeout);
- previous = 0;
- timeout = context = args = null;
- };
-
- return throttled;
- };
-
- // Returns a function, that, as long as it continues to be invoked, will not
- // be triggered. The function will be called after it stops being called for
- // N milliseconds. If `immediate` is passed, trigger the function on the
- // leading edge, instead of the trailing.
- _.debounce = function(func, wait, immediate) {
- var timeout, result;
-
- var later = function(context, args) {
- timeout = null;
- if (args) result = func.apply(context, args);
- };
-
- var debounced = restArgs(function(args) {
- if (timeout) clearTimeout(timeout);
- if (immediate) {
- var callNow = !timeout;
- timeout = setTimeout(later, wait);
- if (callNow) result = func.apply(this, args);
- } else {
- timeout = _.delay(later, wait, this, args);
- }
-
- return result;
- });
-
- debounced.cancel = function() {
- clearTimeout(timeout);
- timeout = null;
- };
-
- return debounced;
- };
-
- // Returns the first function passed as an argument to the second,
- // allowing you to adjust arguments, run code before and after, and
- // conditionally execute the original function.
- _.wrap = function(func, wrapper) {
- return _.partial(wrapper, func);
- };
-
- // Returns a negated version of the passed-in predicate.
- _.negate = function(predicate) {
- return function() {
- return !predicate.apply(this, arguments);
- };
- };
-
- // Returns a function that is the composition of a list of functions, each
- // consuming the return value of the function that follows.
- _.compose = function() {
- var args = arguments;
- var start = args.length - 1;
- return function() {
- var i = start;
- var result = args[start].apply(this, arguments);
- while (i--) result = args[i].call(this, result);
- return result;
- };
- };
-
- // Returns a function that will only be executed on and after the Nth call.
- _.after = function(times, func) {
- return function() {
- if (--times < 1) {
- return func.apply(this, arguments);
- }
- };
- };
-
- // Returns a function that will only be executed up to (but not including) the Nth call.
- _.before = function(times, func) {
- var memo;
- return function() {
- if (--times > 0) {
- memo = func.apply(this, arguments);
- }
- if (times <= 1) func = null;
- return memo;
- };
- };
-
- // Returns a function that will be executed at most one time, no matter how
- // often you call it. Useful for lazy initialization.
- _.once = _.partial(_.before, 2);
-
- _.restArgs = restArgs;
-
- // Object Functions
- // ----------------
-
- // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
- var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
- var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
- 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
-
- var collectNonEnumProps = function(obj, keys) {
- var nonEnumIdx = nonEnumerableProps.length;
- var constructor = obj.constructor;
- var proto = _.isFunction(constructor) && constructor.prototype || ObjProto;
-
- // Constructor is a special case.
- var prop = 'constructor';
- if (_.has(obj, prop) && !_.contains(keys, prop)) keys.push(prop);
-
- while (nonEnumIdx--) {
- prop = nonEnumerableProps[nonEnumIdx];
- if (prop in obj && obj[prop] !== proto[prop] && !_.contains(keys, prop)) {
- keys.push(prop);
- }
- }
- };
-
- // Retrieve the names of an object's own properties.
- // Delegates to **ECMAScript 5**'s native `Object.keys`.
- _.keys = function(obj) {
- if (!_.isObject(obj)) return [];
- if (nativeKeys) return nativeKeys(obj);
- var keys = [];
- for (var key in obj) if (_.has(obj, key)) keys.push(key);
- // Ahem, IE < 9.
- if (hasEnumBug) collectNonEnumProps(obj, keys);
- return keys;
- };
-
- // Retrieve all the property names of an object.
- _.allKeys = function(obj) {
- if (!_.isObject(obj)) return [];
- var keys = [];
- for (var key in obj) keys.push(key);
- // Ahem, IE < 9.
- if (hasEnumBug) collectNonEnumProps(obj, keys);
- return keys;
- };
-
- // Retrieve the values of an object's properties.
- _.values = function(obj) {
- var keys = _.keys(obj);
- var length = keys.length;
- var values = Array(length);
- for (var i = 0; i < length; i++) {
- values[i] = obj[keys[i]];
- }
- return values;
- };
-
- // Returns the results of applying the iteratee to each element of the object.
- // In contrast to _.map it returns an object.
- _.mapObject = function(obj, iteratee, context) {
- iteratee = cb(iteratee, context);
- var keys = _.keys(obj),
- length = keys.length,
- results = {};
- for (var index = 0; index < length; index++) {
- var currentKey = keys[index];
- results[currentKey] = iteratee(obj[currentKey], currentKey, obj);
- }
- return results;
- };
-
- // Convert an object into a list of `[key, value]` pairs.
- _.pairs = function(obj) {
- var keys = _.keys(obj);
- var length = keys.length;
- var pairs = Array(length);
- for (var i = 0; i < length; i++) {
- pairs[i] = [keys[i], obj[keys[i]]];
- }
- return pairs;
- };
-
- // Invert the keys and values of an object. The values must be serializable.
- _.invert = function(obj) {
- var result = {};
- var keys = _.keys(obj);
- for (var i = 0, length = keys.length; i < length; i++) {
- result[obj[keys[i]]] = keys[i];
- }
- return result;
- };
-
- // Return a sorted list of the function names available on the object.
- // Aliased as `methods`.
- _.functions = _.methods = function(obj) {
- var names = [];
- for (var key in obj) {
- if (_.isFunction(obj[key])) names.push(key);
- }
- return names.sort();
- };
-
- // An internal function for creating assigner functions.
- var createAssigner = function(keysFunc, defaults) {
- return function(obj) {
- var length = arguments.length;
- if (defaults) obj = Object(obj);
- if (length < 2 || obj == null) return obj;
- for (var index = 1; index < length; index++) {
- var source = arguments[index],
- keys = keysFunc(source),
- l = keys.length;
- for (var i = 0; i < l; i++) {
- var key = keys[i];
- if (!defaults || obj[key] === void 0) obj[key] = source[key];
- }
- }
- return obj;
- };
- };
-
- // Extend a given object with all the properties in passed-in object(s).
- _.extend = createAssigner(_.allKeys);
-
- // Assigns a given object with all the own properties in the passed-in object(s).
- // (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
- _.extendOwn = _.assign = createAssigner(_.keys);
-
- // Returns the first key on an object that passes a predicate test.
- _.findKey = function(obj, predicate, context) {
- predicate = cb(predicate, context);
- var keys = _.keys(obj), key;
- for (var i = 0, length = keys.length; i < length; i++) {
- key = keys[i];
- if (predicate(obj[key], key, obj)) return key;
- }
- };
-
- // Internal pick helper function to determine if `obj` has key `key`.
- var keyInObj = function(value, key, obj) {
- return key in obj;
- };
-
- // Return a copy of the object only containing the whitelisted properties.
- _.pick = restArgs(function(obj, keys) {
- var result = {}, iteratee = keys[0];
- if (obj == null) return result;
- if (_.isFunction(iteratee)) {
- if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);
- keys = _.allKeys(obj);
- } else {
- iteratee = keyInObj;
- keys = flatten(keys, false, false);
- obj = Object(obj);
- }
- for (var i = 0, length = keys.length; i < length; i++) {
- var key = keys[i];
- var value = obj[key];
- if (iteratee(value, key, obj)) result[key] = value;
- }
- return result;
- });
-
- // Return a copy of the object without the blacklisted properties.
- _.omit = restArgs(function(obj, keys) {
- var iteratee = keys[0], context;
- if (_.isFunction(iteratee)) {
- iteratee = _.negate(iteratee);
- if (keys.length > 1) context = keys[1];
- } else {
- keys = _.map(flatten(keys, false, false), String);
- iteratee = function(value, key) {
- return !_.contains(keys, key);
- };
- }
- return _.pick(obj, iteratee, context);
- });
-
- // Fill in a given object with default properties.
- _.defaults = createAssigner(_.allKeys, true);
-
- // Creates an object that inherits from the given prototype object.
- // If additional properties are provided then they will be added to the
- // created object.
- _.create = function(prototype, props) {
- var result = baseCreate(prototype);
- if (props) _.extendOwn(result, props);
- return result;
- };
-
- // Create a (shallow-cloned) duplicate of an object.
- _.clone = function(obj) {
- if (!_.isObject(obj)) return obj;
- return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
- };
-
- // Invokes interceptor with the obj, and then returns obj.
- // The primary purpose of this method is to "tap into" a method chain, in
- // order to perform operations on intermediate results within the chain.
- _.tap = function(obj, interceptor) {
- interceptor(obj);
- return obj;
- };
-
- // Returns whether an object has a given set of `key:value` pairs.
- _.isMatch = function(object, attrs) {
- var keys = _.keys(attrs), length = keys.length;
- if (object == null) return !length;
- var obj = Object(object);
- for (var i = 0; i < length; i++) {
- var key = keys[i];
- if (attrs[key] !== obj[key] || !(key in obj)) return false;
- }
- return true;
- };
-
-
- // Internal recursive comparison function for `isEqual`.
- var eq, deepEq;
- eq = function(a, b, aStack, bStack) {
- // Identical objects are equal. `0 === -0`, but they aren't identical.
- // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
- if (a === b) return a !== 0 || 1 / a === 1 / b;
- // A strict comparison is necessary because `null == undefined`.
- if (a == null || b == null) return a === b;
- // `NaN`s are equivalent, but non-reflexive.
- if (a !== a) return b !== b;
- // Exhaust primitive checks
- var type = typeof a;
- if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;
- return deepEq(a, b, aStack, bStack);
- };
-
- // Internal recursive comparison function for `isEqual`.
- deepEq = function(a, b, aStack, bStack) {
- // Unwrap any wrapped objects.
- if (a instanceof _) a = a._wrapped;
- if (b instanceof _) b = b._wrapped;
- // Compare `[[Class]]` names.
- var className = toString.call(a);
- if (className !== toString.call(b)) return false;
- switch (className) {
- // Strings, numbers, regular expressions, dates, and booleans are compared by value.
- case '[object RegExp]':
- // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
- case '[object String]':
- // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
- // equivalent to `new String("5")`.
- return '' + a === '' + b;
- case '[object Number]':
- // `NaN`s are equivalent, but non-reflexive.
- // Object(NaN) is equivalent to NaN.
- if (+a !== +a) return +b !== +b;
- // An `egal` comparison is performed for other numeric values.
- return +a === 0 ? 1 / +a === 1 / b : +a === +b;
- case '[object Date]':
- case '[object Boolean]':
- // Coerce dates and booleans to numeric primitive values. Dates are compared by their
- // millisecond representations. Note that invalid dates with millisecond representations
- // of `NaN` are not equivalent.
- return +a === +b;
- case '[object Symbol]':
- return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);
- }
-
- var areArrays = className === '[object Array]';
- if (!areArrays) {
- if (typeof a != 'object' || typeof b != 'object') return false;
-
- // Objects with different constructors are not equivalent, but `Object`s or `Array`s
- // from different frames are.
- var aCtor = a.constructor, bCtor = b.constructor;
- if (aCtor !== bCtor && !(_.isFunction(aCtor) && aCtor instanceof aCtor &&
- _.isFunction(bCtor) && bCtor instanceof bCtor)
- && ('constructor' in a && 'constructor' in b)) {
- return false;
- }
- }
- // Assume equality for cyclic structures. The algorithm for detecting cyclic
- // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
-
- // Initializing stack of traversed objects.
- // It's done here since we only need them for objects and arrays comparison.
- aStack = aStack || [];
- bStack = bStack || [];
- var length = aStack.length;
- while (length--) {
- // Linear search. Performance is inversely proportional to the number of
- // unique nested structures.
- if (aStack[length] === a) return bStack[length] === b;
- }
-
- // Add the first object to the stack of traversed objects.
- aStack.push(a);
- bStack.push(b);
-
- // Recursively compare objects and arrays.
- if (areArrays) {
- // Compare array lengths to determine if a deep comparison is necessary.
- length = a.length;
- if (length !== b.length) return false;
- // Deep compare the contents, ignoring non-numeric properties.
- while (length--) {
- if (!eq(a[length], b[length], aStack, bStack)) return false;
- }
- } else {
- // Deep compare objects.
- var keys = _.keys(a), key;
- length = keys.length;
- // Ensure that both objects contain the same number of properties before comparing deep equality.
- if (_.keys(b).length !== length) return false;
- while (length--) {
- // Deep compare each member
- key = keys[length];
- if (!(_.has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
- }
- }
- // Remove the first object from the stack of traversed objects.
- aStack.pop();
- bStack.pop();
- return true;
- };
-
- // Perform a deep comparison to check if two objects are equal.
- _.isEqual = function(a, b) {
- return eq(a, b);
- };
-
- // Is a given array, string, or object empty?
- // An "empty" object has no enumerable own-properties.
- _.isEmpty = function(obj) {
- if (obj == null) return true;
- if (isArrayLike(obj) && (_.isArray(obj) || _.isString(obj) || _.isArguments(obj))) return obj.length === 0;
- return _.keys(obj).length === 0;
- };
-
- // Is a given value a DOM element?
- _.isElement = function(obj) {
- return !!(obj && obj.nodeType === 1);
- };
-
- // Is a given value an array?
- // Delegates to ECMA5's native Array.isArray
- _.isArray = nativeIsArray || function(obj) {
- return toString.call(obj) === '[object Array]';
- };
-
- // Is a given variable an object?
- _.isObject = function(obj) {
- var type = typeof obj;
- return type === 'function' || type === 'object' && !!obj;
- };
-
- // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp, isError, isMap, isWeakMap, isSet, isWeakSet.
- _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error', 'Symbol', 'Map', 'WeakMap', 'Set', 'WeakSet'], function(name) {
- _['is' + name] = function(obj) {
- return toString.call(obj) === '[object ' + name + ']';
- };
- });
-
- // Define a fallback version of the method in browsers (ahem, IE < 9), where
- // there isn't any inspectable "Arguments" type.
- if (!_.isArguments(arguments)) {
- _.isArguments = function(obj) {
- return _.has(obj, 'callee');
- };
- }
-
- // Optimize `isFunction` if appropriate. Work around some typeof bugs in old v8,
- // IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).
- var nodelist = root.document && root.document.childNodes;
- if (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {
- _.isFunction = function(obj) {
- return typeof obj == 'function' || false;
- };
- }
-
- // Is a given object a finite number?
- _.isFinite = function(obj) {
- return !_.isSymbol(obj) && isFinite(obj) && !isNaN(parseFloat(obj));
- };
-
- // Is the given value `NaN`?
- _.isNaN = function(obj) {
- return _.isNumber(obj) && isNaN(obj);
- };
-
- // Is a given value a boolean?
- _.isBoolean = function(obj) {
- return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
- };
-
- // Is a given value equal to null?
- _.isNull = function(obj) {
- return obj === null;
- };
-
- // Is a given variable undefined?
- _.isUndefined = function(obj) {
- return obj === void 0;
- };
-
- // Shortcut function for checking if an object has a given property directly
- // on itself (in other words, not on a prototype).
- _.has = function(obj, key) {
- return obj != null && hasOwnProperty.call(obj, key);
- };
-
- // Utility Functions
- // -----------------
-
- // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
- // previous owner. Returns a reference to the Underscore object.
- _.noConflict = function() {
- root._ = previousUnderscore;
- return this;
- };
-
- // Keep the identity function around for default iteratees.
- _.identity = function(value) {
- return value;
- };
-
- // Predicate-generating functions. Often useful outside of Underscore.
- _.constant = function(value) {
- return function() {
- return value;
- };
- };
-
- _.noop = function(){};
-
- _.property = property;
-
- // Generates a function for a given object that returns a given property.
- _.propertyOf = function(obj) {
- return obj == null ? function(){} : function(key) {
- return obj[key];
- };
- };
-
- // Returns a predicate for checking whether an object has a given set of
- // `key:value` pairs.
- _.matcher = _.matches = function(attrs) {
- attrs = _.extendOwn({}, attrs);
- return function(obj) {
- return _.isMatch(obj, attrs);
- };
- };
-
- // Run a function **n** times.
- _.times = function(n, iteratee, context) {
- var accum = Array(Math.max(0, n));
- iteratee = optimizeCb(iteratee, context, 1);
- for (var i = 0; i < n; i++) accum[i] = iteratee(i);
- return accum;
- };
-
- // Return a random integer between min and max (inclusive).
- _.random = function(min, max) {
- if (max == null) {
- max = min;
- min = 0;
- }
- return min + Math.floor(Math.random() * (max - min + 1));
- };
-
- // A (possibly faster) way to get the current timestamp as an integer.
- _.now = Date.now || function() {
- return new Date().getTime();
- };
-
- // List of HTML entities for escaping.
- var escapeMap = {
- '&': '&amp;',
- '<': '&lt;',
- '>': '&gt;',
- '"': '&quot;',
- "'": '&#x27;',
- '`': '&#x60;'
- };
- var unescapeMap = _.invert(escapeMap);
-
- // Functions for escaping and unescaping strings to/from HTML interpolation.
- var createEscaper = function(map) {
- var escaper = function(match) {
- return map[match];
- };
- // Regexes for identifying a key that needs to be escaped.
- var source = '(?:' + _.keys(map).join('|') + ')';
- var testRegexp = RegExp(source);
- var replaceRegexp = RegExp(source, 'g');
- return function(string) {
- string = string == null ? '' : '' + string;
- return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
- };
- };
- _.escape = createEscaper(escapeMap);
- _.unescape = createEscaper(unescapeMap);
-
- // If the value of the named `property` is a function then invoke it with the
- // `object` as context; otherwise, return it.
- _.result = function(object, prop, fallback) {
- var value = object == null ? void 0 : object[prop];
- if (value === void 0) {
- value = fallback;
- }
- return _.isFunction(value) ? value.call(object) : value;
- };
-
- // Generate a unique integer id (unique within the entire client session).
- // Useful for temporary DOM ids.
- var idCounter = 0;
- _.uniqueId = function(prefix) {
- var id = ++idCounter + '';
- return prefix ? prefix + id : id;
- };
-
- // By default, Underscore uses ERB-style template delimiters, change the
- // following template settings to use alternative delimiters.
- _.templateSettings = {
- evaluate: /<%([\s\S]+?)%>/g,
- interpolate: /<%=([\s\S]+?)%>/g,
- escape: /<%-([\s\S]+?)%>/g
- };
-
- // When customizing `templateSettings`, if you don't want to define an
- // interpolation, evaluation or escaping regex, we need one that is
- // guaranteed not to match.
- var noMatch = /(.)^/;
-
- // Certain characters need to be escaped so that they can be put into a
- // string literal.
- var escapes = {
- "'": "'",
- '\\': '\\',
- '\r': 'r',
- '\n': 'n',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- };
-
- var escapeRegExp = /\\|'|\r|\n|\u2028|\u2029/g;
-
- var escapeChar = function(match) {
- return '\\' + escapes[match];
- };
-
- // JavaScript micro-templating, similar to John Resig's implementation.
- // Underscore templating handles arbitrary delimiters, preserves whitespace,
- // and correctly escapes quotes within interpolated code.
- // NB: `oldSettings` only exists for backwards compatibility.
- _.template = function(text, settings, oldSettings) {
- if (!settings && oldSettings) settings = oldSettings;
- settings = _.defaults({}, settings, _.templateSettings);
-
- // Combine delimiters into one regular expression via alternation.
- var matcher = RegExp([
- (settings.escape || noMatch).source,
- (settings.interpolate || noMatch).source,
- (settings.evaluate || noMatch).source
- ].join('|') + '|$', 'g');
-
- // Compile the template source, escaping string literals appropriately.
- var index = 0;
- var source = "__p+='";
- text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
- source += text.slice(index, offset).replace(escapeRegExp, escapeChar);
- index = offset + match.length;
-
- if (escape) {
- source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
- } else if (interpolate) {
- source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
- } else if (evaluate) {
- source += "';\n" + evaluate + "\n__p+='";
- }
-
- // Adobe VMs need the match returned to produce the correct offset.
- return match;
- });
- source += "';\n";
-
- // If a variable is not specified, place data values in local scope.
- if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
-
- source = "var __t,__p='',__j=Array.prototype.join," +
- "print=function(){__p+=__j.call(arguments,'');};\n" +
- source + 'return __p;\n';
-
- var render;
- try {
- render = new Function(settings.variable || 'obj', '_', source);
- } catch (e) {
- e.source = source;
- throw e;
- }
-
- var template = function(data) {
- return render.call(this, data, _);
- };
-
- // Provide the compiled source as a convenience for precompilation.
- var argument = settings.variable || 'obj';
- template.source = 'function(' + argument + '){\n' + source + '}';
-
- return template;
- };
-
- // Add a "chain" function. Start chaining a wrapped Underscore object.
- _.chain = function(obj) {
- var instance = _(obj);
- instance._chain = true;
- return instance;
- };
-
- // OOP
- // ---------------
- // If Underscore is called as a function, it returns a wrapped object that
- // can be used OO-style. This wrapper holds altered versions of all the
- // underscore functions. Wrapped objects may be chained.
-
- // Helper function to continue chaining intermediate results.
- var chainResult = function(instance, obj) {
- return instance._chain ? _(obj).chain() : obj;
- };
-
- // Add your own custom functions to the Underscore object.
- _.mixin = function(obj) {
- _.each(_.functions(obj), function(name) {
- var func = _[name] = obj[name];
- _.prototype[name] = function() {
- var args = [this._wrapped];
- push.apply(args, arguments);
- return chainResult(this, func.apply(_, args));
- };
- });
- };
-
- // Add all of the Underscore functions to the wrapper object.
- _.mixin(_);
-
- // Add all mutator Array functions to the wrapper.
- _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
- var method = ArrayProto[name];
- _.prototype[name] = function() {
- var obj = this._wrapped;
- method.apply(obj, arguments);
- if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
- return chainResult(this, obj);
- };
- });
-
- // Add all accessor Array functions to the wrapper.
- _.each(['concat', 'join', 'slice'], function(name) {
- var method = ArrayProto[name];
- _.prototype[name] = function() {
- return chainResult(this, method.apply(this._wrapped, arguments));
- };
- });
-
- // Extracts the result from a wrapped and chained object.
- _.prototype.value = function() {
- return this._wrapped;
- };
-
- // Provide unwrapping proxy for some methods used in engine operations
- // such as arithmetic and JSON stringification.
- _.prototype.valueOf = _.prototype.toJSON = _.prototype.value;
-
- _.prototype.toString = function() {
- return '' + this._wrapped;
- };
-
- // AMD registration happens at the end for compatibility with AMD loaders
- // that may not enforce next-turn semantics on modules. Even though general
- // practice for AMD registration is to be anonymous, underscore registers
- // as a named module because, like jQuery, it is a base library that is
- // popular enough to be bundled in a third party lib, but not be part of
- // an AMD load request. Those cases could generate an error when an
- // anonymous define() is called outside of a loader request.
- if (typeof define == 'function' && define.amd) {
- define('underscore', [], function() {
- return _;
- });
- }
-}());
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/.bower.json b/ecomp-portal-FE/client/bower_components/ng-dialog/.bower.json
deleted file mode 100644
index 6d40abaa..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/.bower.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "name": "ng-dialog",
- "homepage": "https://github.com/likeastore/ngDialog",
- "description": "Modal dialogs and popups provider for Angular.js applications",
- "main": [
- "js/ngDialog.js",
- "css/ngDialog.css",
- "css/ngDialog-theme-default.css"
- ],
- "keywords": [
- "angular.js",
- "modals",
- "popups",
- "dialog",
- "ng",
- "provider",
- "factory",
- "directive"
- ],
- "authors": [
- "Dmitri Voronianski"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests",
- "example",
- "css/myth",
- "Gruntfile.js"
- ],
- "dependencies": {
- "angular": ">=1.5"
- },
- "devDependencies": {
- "angular-mocks": ">=1.5"
- },
- "resolutions": {
- "angular": "1.6.1"
- },
- "version": "0.6.6",
- "_release": "0.6.6",
- "_resolution": {
- "type": "version",
- "tag": "v0.6.6",
- "commit": "21f188f8be664b34a3f37207c42befa33ed68737"
- },
- "_source": "https://github.com/likeastore/ngDialog.git",
- "_target": "~0.6.1",
- "_originalSource": "ng-dialog"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/CHANGELOG.md b/ecomp-portal-FE/client/bower_components/ng-dialog/CHANGELOG.md
deleted file mode 100644
index 86dcfc57..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/CHANGELOG.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# 0.5.0
-- [x] Angular version in `package.json` is now `1.4.x` ([ISSUE-244](https://github.com/likeastore/ngDialog/issues/244))
-- [x] fixed spelling of `ariaLabelledById` and `ariaLabelledBySelector` inside README file by [@rylan](https://github.com/rylan) ([PR-242](https://github.com/likeastore/ngDialog/pull/242))
-- [x] fixed bug with $templateCache when template was already cached before calling ngDialog by [@mixer2](https://github.com/mixer2) ([PR-241](https://github.com/likeastore/ngDialog/pull/241))
-- [x] add dialog close value to the $broadcast'ed events by [@Kidlike](https://github.com/Kidlike) ([PR-252](https://github.com/likeastore/ngDialog/pull/252))
-- [x] fix for removing package version from bower.json as it's ignored by bower by [@kkirsche](https://github.com/kkirsche) ([PR-255](https://github.com/likeastore/ngDialog/pull/255))
-- [x] fix for non-working `ngDialog.close()` when no arguments are provided by [@egor-smirnov](https://github.com/egor-smirnov) ([ISSUE-243](https://github.com/likeastore/ngDialog/issues/243))
-- [x] added documentation for `controllerAs` option by [@egor-smirnov](https://github.com/egor-smirnov) ([ISSUE-248](https://github.com/likeastore/ngDialog/issues/248))
-- [x] new option `disableAnimation` that could be used for disabling animation of dialog by [@egor-smirnov](https://github.com/egor-smirnov) ([ISSUE-159](https://github.com/likeastore/ngDialog/issues/159))
-- [x] new attribute `ng-dialog-overlay` for ngDialog directive by [@egor-smirnov](https://github.com/egor-smirnov) ([ISSUE-198](https://github.com/likeastore/ngDialog/issues/198))
-- [x] new attribute `ng-dialog-bind-to-controller` for ngDialog directive by [@egor-smirnov](https://github.com/egor-smirnov) ([ISSUE-236](https://github.com/likeastore/ngDialog/issues/236))
-- [x] fix for error when `controllerAs` is used together with inline controller definition by [@andrewogburn](https://github.com/andrewogburn) ([PR-260](https://github.com/likeastore/ngDialog/pull/260), [ISSUE-259](https://github.com/likeastore/ngDialog/issues/259))
-- [x] added method `getOpenDialogs()` that returns array of all opened dialogs by [@egor-smirnov](https://github.com/egor-smirnov) ([ISSUE-240](https://github.com/likeastore/ngDialog/issues/240))
-- [x] added two new events emmited by ngDialog - `ngDialog.templateLoading` and `ngDialog.templateLoaded` by [@egor-smirnov](https://github.com/egor-smirnov) ([ISSUE-231](https://github.com/likeastore/ngDialog/issues/231))
-- [x] added `ngDialogId` field to scope of opened dialog (this field is equal to id of dialog) by [@egor-smirnov](https://github.com/egor-smirnov) ([ISSUE-274](https://github.com/likeastore/ngDialog/issues/274), [ISSUE-264](https://github.com/likeastore/ngDialog/issues/264))
-- [x] fix for odd timing issue when using the `closeByNavigation` option alongside `angular-ui-router package` by [@jdelibas](https://github.com/jdelibas) ([PR-277](https://github.com/likeastore/ngDialog/pull/277))
-- [x] fix for disabling of body scroll when dialog is opened for some cases by [@marmotz](https://github.com/marmotz) ([PR-280](https://github.com/likeastore/ngDialog/pull/280), [ISSUE-206](https://github.com/likeastore/ngDialog/issues/206))
-- [x] fix for avoiding require multiple angular when it's required already when using CommonJS by [@michaeleekk](https://github.com/michaeleekk) ([PR-284](https://github.com/likeastore/ngDialog/pull/284))
-- [x] fix for `frunt build` that was resetting html.ngdialog changes by [@davidvuong](https://github.com/davidvuong) ([PR-285](https://github.com/likeastore/ngDialog/pull/285))
-- [x] moved Angular to dev.dependencies by [@platdesign](https://github.com/platdesign) ([PR-287](https://github.com/likeastore/ngDialog/pull/287))
-- [x] fix for unboudning all keydown events when dialog is closed by [@daanoz](https://github.com/daanoz) ([PR-291](https://github.com/likeastore/ngDialog/pull/291))
-- [x] ignore elements with tabindex=-1 when tabbing by [@roaks3](https://github.com/roaks3) ([PR-292](https://github.com/likeastore/ngDialog/pull/292), [ISSUE-281](https://github.com/likeastore/ngDialog/issues/281))
-
-That was huge. Thanks everybody!
-
-# 0.4.0
-
-- [x] new `resolve` option for defining locals for ngDialog controller by [@rur](https://github.com/rur) ([PR-182](https://github.com/likeastore/ngDialog/pull/182))
-- [x] support for `controllerAs` pattern by [@andrewogburn](https://github.com/andrewogburn) and [@sprbikkel](https://github.com/sprbikkel) ([PR-205](https://github.com/likeastore/ngDialog/pull/205), [PR-224](https://github.com/likeastore/ngDialog/pull/224))
-- [x] added accessibility improvements (keyboard focus management / ARIA attribute) by [@richardszalay](https://github.com/richardszalay) ([PR-166](https://github.com/likeastore/ngDialog/pull/166))
-- [x] added `isOpen(id)` public method by [@kasimoglou](https://github.com/kasimoglou) ([PR-219](https://github.com/likeastore/ngDialog/pull/219))
-- [x] fix for `esc` should only close top dialog by [@jemise111](https://github.com/jemise111) ([PR-226](https://github.com/likeastore/ngDialog/pull/226))
-- [x] fix for flickering dialogs in Internet Explorer by [@MvHMontySCOUT](https://github.com/MvHMontySCOUT) ([PR-207](https://github.com/likeastore/ngDialog/pull/207), discussion - [ISSUE-142](https://github.com/likeastore/ngDialog/issues/142))
-- [x] fix issue when opening multiple dialogs simultaneously by [@bchelli](https://github.com/bchelli) ([PR-221](https://github.com/likeastore/ngDialog/pull/221))
-- [x] various minor bug fixes, general improvements and examples updates
-
-Thanks everybody, you're awesome! :dancer: :+1:
-
-# 0.3.12
-
-- [x] better `box-sizing` policy
-
-# 0.3.11
-
-- [x] prevent the modal from closing if preCloseCallback returns a falsy value
-
-# 0.3.10
-
-- [x] fix negative dialogs count
-
-# 0.3.9
-
-- [x] fix destroy scope with animation for multiple dialog [ISSUE-125](https://github.com/likeastore/ngDialog/issues/125)
-
-# 0.3.8
-
-- [x] Make ngDialog work with AngularJS 1.3 when `$compileProvider` debug info is disabled - `$compileProvider.debugInfoEnabled(false)`.
-
-# 0.3.7
-
-- [x] support for [UMD pattern](https://github.com/umdjs/umd)
-- [x] get rid of `module` variable in source code
-- [x] get rid of `window` dependency in favor of `$window`
-
-# 0.3.6
-
-- [x] finally (after many requests) `$scope.ngDialogData` holds reference to the objects passed instead of copying them.
-
-# 0.3.5
-
-- [x] fix for HammerJS 1.1 breaking dialog
-
-# 0.3.4
-
-- [x] add support for `overlay` option (https://github.com/likeastore/ngDialog/issues/117)
-
-# 0.3.3
-
-- [x] successful tests and support for Angular.js `1.3.x`
-
-# 0.3.2
-
-- [x] fixed an issue with Hammer.js manager
-
-# 0.3.1
-
-- [x] `ngDialog.closing` event
-- [x] `closeByNavigation` option
-- [x] `templateUrl` option
-
-# 0.3.0
-
-- [x] `.openConfirm()` method
-- [x] `.setForceBodyReload()` method
-- [x] add support for `.setDefaults()` method
-- [x] fix scroll jump bug
-- [x] fix event broadcasting to occur at the times they should
-- [x] fix for `ngDialogData` being passed after controller instantiation
-- [x] allow objects for `ngDialogData`
-- [x] `cache` option
-- [x] `preCloseCallback` option
-- [x] `appendTo` option
-- [x] `name` option
-- [x] minor code fixes and optimizations, examples improvements
-
-# 0.2.2
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/CONTRIBUTING.md b/ecomp-portal-FE/client/bower_components/ng-dialog/CONTRIBUTING.md
deleted file mode 100644
index 3c60d97e..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/CONTRIBUTING.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Testing
-
-ngDialog is in use by many people. In order to ensure quality and prevent regressions, all contributions require unit tests proving that the contribution:
-
-1. Fixes a bug
-2. Performs new functionality as expected
-3. Behaves in a predictable manner when misused (bad input given as an option for example)
-
-In addition, where a contribution is aimed at resolving a bug or implementing a feature that can only be measured in a real browser, an e2e test proving the expected behaviour should be included.
-
-# README
-
-If your PR adds new behaviour or modifies existing behaviour, the README should be updated.
-
-# Coding style
-
-> All code in any code-base should look like a single person typed it, no matter how many people contributed.
-
-This section describes the coding style guide of the repo. You might not agree with it and that's fine, but if you're going to send PRs, treat this guide as a law.
-
-##### There are not too much of rules to follow:
-
-- indent style is 4 spaces
-- always use single quotes
-- one space after `if`, `for`, `while`, etc.
-- no spaces between `(`,`)` and statement content
-- use one `var` per variable unless you don't assign any values to it (and it's short enough)
-- always `'use strict'` mode
-- always use strict comparisons: `===` and `!==`
-- use semicolons
-- don't use comma-first notation
-
-##### These tools will help your IDE to remind you with some of the rules listed above:
-
-- [EditorConfig](http://editorconfig.org)
-- [JSHint](http://jshint.com)
-- [ESLint](http://eslint.org)
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/README.md b/ecomp-portal-FE/client/bower_components/ng-dialog/README.md
deleted file mode 100644
index 7dcc67b2..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/README.md
+++ /dev/null
@@ -1,701 +0,0 @@
-<!-- ### LOOKING FOR MAINTAINER. PLEASE PING [@voronianski](https://twitter.com/voronianski)! -->
-# ngDialog
-
-[![build status](http://img.shields.io/travis/likeastore/ngDialog.svg)](https://travis-ci.org/likeastore/ngDialog)
-[![npm version](http://badge.fury.io/js/ng-dialog.svg)](http://badge.fury.io/js/ng-dialog)
-[![github tag](https://img.shields.io/github/tag/likeastore/ngDialog.svg)](https://github.com/likeastore/ngDialog/tags)
-[![Download Count](https://img.shields.io/npm/dm/ng-dialog.svg)](http://www.npmjs.com/package/ng-dialog)
-[![Code Climate](https://codeclimate.com/github/likeastore/ngDialog/badges/gpa.svg)](https://codeclimate.com/github/likeastore/ngDialog)
-
-> Modal dialogs and popups provider for [AngularJS](http://angularjs.org/) applications.
-
-ngDialog is ~10KB (minified), has minimalistic API, is highly customizable through themes and has only AngularJS as dependency.
-
-### [Demo](http://likeastore.github.io/ngDialog)
-
-## Install
-
-You can download all necessary ngDialog files manually, or install it with bower:
-
-```bash
-bower install ng-dialog
-```
-
-or npm:
-
-```bash
-npm install ng-dialog
-```
-
-## Usage
-
-You need only to include ``ngDialog.js``, ``ngDialog.css`` and ``ngDialog-theme-default.css`` (as minimal setup) to your project and then you can start using the ``ngDialog`` provider in your directives, controllers and services. For example:
-
- <link rel="stylesheet" href="lib/ng-dialog/css/ngDialog.min.css">
- <link rel="stylesheet" href="lib/ng-dialog/css/ngDialog-theme-default.min.css">
- <script src="lib/ng-dialog/js/ngDialog.min.js"></script>
-
-Define the className to be the ``ngDialog-theme-default``.
-
-For example in controllers:
-
-```javascript
-var app = angular.module('exampleApp', ['ngDialog']);
-
-app.controller('MainCtrl', function ($scope, ngDialog) {
- $scope.clickToOpen = function () {
- ngDialog.open({ template: 'popupTmpl.html', className: 'ngdialog-theme-default' });
- };
-});
-```
-
-## Collaboration
-
-Your help is appreciated! If you've found a bug or if something is not clear, please raise an issue.
-
-Ideally, if you've found an issue, you will submit a PR that meets our [contributor guidelines][contributor-guidelines].
-
-### Running Tests
-
-```bash
-git clone git@github.com:likeastore/ngDialog.git
-cd ngDialog
-npm i
-npm run test
-```
-
-## API
-
-ngDialog service provides easy to use and minimalistic API, but in the same time it's powerful enough. Here is the list of accessible methods that you can use:
-
-===
-
-### ``.open(options)``
-
-Method allows to open dialog window, creates new dialog instance on each call. It accepts ``options`` object as the only argument.
-
-#### Options:
-
-##### ``template {String}``
-
-Dialog template can be loaded through ``path`` to external html template or ``<script>`` tag with ``text/ng-template``:
-
-```html
-<script type="text/ng-template" id="templateId">
- <h1>Template heading</h1>
- <p>Content goes here</p>
-</script>
-```
-
-```javascript
-ngDialog.open({ template: 'templateId' });
-```
-
-Also it is possible to use a simple string as template together with ``plain`` option.
-
-##### Pro Tip about templates
-
-It's not always necessary to place your external html template inside ``<script>`` tag. You could put these templates into ``$templateCache`` like this:
-
-```javascript
-angular.module('dialog.templates').run(['$templateCache', function($templateCache) {
- $templateCache.put('templateId', 'template content');
-}]);
-```
-
-Then it would be possible to include the ``dialog.templates`` module into the dependencies of your main module and start using this template as ``templateId``.
-
-There is no need to do these actions manually.
-You could use one of the plugins specifically for these purposes. They are available for different build systems including most popular Gulp / Grunt:
-
-- [gulp-angular-templatecache](https://github.com/miickel/gulp-angular-templatecache)
-- [gulp-ng-html2js](https://www.npmjs.com/package/gulp-ng-html2js)
-- [grunt-html2js](https://github.com/karlgoldstein/grunt-html2js)
-- [broccoli-html2js](https://www.npmjs.com/package/broccoli-html2js)
-
-You could find more detailed examples on each of these pages.
-
-##### ``plain {Boolean}``
-
-If ``true`` allows to use plain string as template, default ``false``:
-
-```javascript
-ngDialog.open({
- template: '<p>my template</p>',
- plain: true
-});
-```
-
-##### ``controller {String} | {Array} | {Object}``
-
-Controller that will be used for the dialog window if necessary. The controller can be specified either by referring it by name or directly inline.
-
-```javascript
-ngDialog.open({
- template: 'externalTemplate.html',
- controller: 'SomeController'
-});
-```
-
-or
-
-```javascript
-ngDialog.open({
- template: 'externalTemplate.html',
- controller: ['$scope', 'otherService', function($scope, otherService) {
- // controller logic
- }]
-});
-```
-
-##### ``controllerAs {String} ``
-
-You could optionally specify `controllerAs` parameter for your controller. Then inside your template it will be possible to refer this controller by the value specified by `controllerAs`.
-
-Usage of `controllerAs` syntax is currently recommended by the AngularJS team.
-
-##### ``resolve {Object.<String, Function>}``
-
-An optional map of dependencies which should be injected into the controller.
-If any of these dependencies are promises, ngDialog will wait for them all to be resolved
-or one to be rejected before the controller is instantiated.
-
-If all the promises are resolved successfully, the values of the resolved promises are
-injected.
-
-The map object
-is:
-- `key` – `{String}`: a name of a dependency to be injected into the controller.
-- `factory` - `{String | Function}`: If `String` then it is an alias for a service.
- Otherwise if `Function`, then it is injected using `$injector.invoke` and the return
- value is treated as the dependency. If the result is a promise, it is resolved
- before its value is injected into the controller.
-
-
-```javascript
-ngDialog.open({
- controller: function Ctrl(dep) {/*...*/},
- resolve: {
- dep: function depFactory() {
- return 'dep value';
- }
- }
-});
-```
-
-##### ``scope {Object}``
-
-Scope object that will be passed to the dialog. If you use a controller with separate ``$scope`` service this object will be passed to the ``$scope.$parent`` param:
-
-```javascript
-$scope.value = true;
-
-ngDialog.open({
- template: 'externalTemplate.html',
- className: 'ngdialog-theme-plain',
- scope: $scope
-});
-```
-
-```html
-<script type="text/ng-template" id="externalTemplate.html">
-<p>External scope: <code>{{value}}</code></p>
-</script>
-```
-
-##### ``scope.closeThisDialog(value)``
-
-In addition ``.closeThisDialog(value)`` method gets injected to passed ``$scope``. This allows you to close the dialog straight from the handler in a popup element, for example:
-
-```html
-<div class="dialog-contents">
- <input type="text"/>
- <input type="button" value="OK" ng-click="checkInput() && closeThisDialog('Some value')"/>
-</div>
-```
-
-Any value passed to this function will be attached to the object which resolves on the close promise for this dialog. For dialogs opened with the ``openConfirm()`` method the value is used as the reject reason.
-
-##### ``data {String | Object | Array}``
-
-Any serializable data that you want to be stored in the controller's dialog scope. (``$scope.ngDialogData``). From version `0.3.6` `$scope.ngDialogData` keeps references to the objects instead of copying them.
-
-Additionally, you will have the dialog id available as ``$scope.ngDialogId``. If you are using ``$scope.ngDialogData``, it'll be also available under ``$scope.ngDialogData.ngDialogId``.
-
-##### ``className {String}``
-
-This option allows you to control the dialog's look, you can use built-in [themes](https://github.com/likeastore/ngDialog#themes) or create your own styled modals.
-
-This example enables one of the built-in ngDialog themes - ``ngdialog-theme-default`` (do not forget to include necessary css files):
-
-```javascript
-ngDialog.open({
- template: 'templateId',
- className: 'ngdialog-theme-default'
-});
-```
-Note: If the className is not mentioned, the dialog will not display correctly.
-
-Check [themes](https://github.com/likeastore/ngDialog#themes) block to learn more.
-
-##### ``appendClassName {String}``
-
-Unlike the `className` property, which overrides any default classes specified through the `setDefaults()` method ([see docs](https://github.com/likeastore/ngDialog#setdefaultsoptions)), `appendClassName` allows for the addition of a class on top of any defaults.
-
-For example, the following would add both the `ngdialog-theme-default` and `ngdialog-custom` classes to the dialog opened:
-
-```javascript
-ngDialogProvider.setDefaults({
- className: 'ngdialog-theme-default'
-});
-```
-```javascript
-ngDialog.open({
- template: 'template.html',
- appendClassName: 'ngdialog-custom'
-});
-```
-
-##### ``disableAnimation {Boolean}``
-
-If ``true`` then animation for the dialog will be disabled, default ``false``.
-
-##### ``overlay {Boolean}``
-
-If ``false`` it allows to hide the overlay div behind the modals, default ``true``.
-
-##### ``showClose {Boolean}``
-
-If ``false`` it allows to hide the close button on modals, default ``true``.
-
-##### ``closeByEscape {Boolean}``
-
-It allows to close modals by clicking the ``Esc`` key, default ``true``.
-
-This will close all open modals if there are several of them opened at the same time.
-
-##### ``closeByNavigation {Boolean}``
-
-It allows to close modals on state change (history.back, $state.go, etc.), default ``false``.
-Compatible with ui-router and angular-router.
-Set this value to true if you want your modal to close when you go back or change state.
-Set this value to false if you want your modal to stay open when you change state within your app.
-
-This will close all open modals if there are several of them opened at the same time.
-
-##### ``closeByDocument {Boolean}``
-
-It allows to close modals by clicking on overlay background, default ``true``. If [Hammer.js](https://github.com/EightMedia/hammer.js) is loaded, it will listen for ``tap`` instead of ``click``.
-
-##### ``appendTo {String}``
-
-Specify your element where to append dialog instance, accepts selector string (e.g. ``#yourId``, ``.yourClass``). If not specified appends dialog to ``body`` as default behavior.
-
-##### ``cache {Boolean}``
-
-Pass ``false`` to disable template caching. Useful for developing purposes, default is ``true``.
-
-##### ``name {String} | {Number}``
-
-Give a name for a dialog instance. It is useful for identifying specific dialog if there are multiple dialog boxes opened.
-
-##### ``preCloseCallback {String} | {Function}``
-
-Provide either the name of a function or a function to be called before the dialog is closed. If the callback function specified in the option returns ``false`` then the dialog will not be closed. Alternatively, if the callback function returns a promise that gets resolved the dialog will be closed.
-
-The ``preCloseCallback`` function receives as a parameter ``value`` which is the same value sent to ``.close(id, value)``.
-
-The primary use case for this feature is a dialog which contains user actions (e.g. editing data) for which you want the ability to confirm whether to discard unsaved changes upon exiting the dialog (e.g. via the escape key).
-
-This example uses an inline function with a ``window.confirm`` call in the ``preCloseCallback`` function:
-
-```javascript
-ngDialog.open({
- preCloseCallback: function(value) {
- if (confirm('Are you sure you want to close without saving your changes?')) {
- return true;
- }
- return false;
- }
-});
-```
-
-In another example, a callback function with a nested confirm ngDialog is used:
-
-```javascript
-ngDialog.open({
- preCloseCallback: function(value) {
- var nestedConfirmDialog = ngDialog.openConfirm({
- template:'\
- <p>Are you sure you want to close the parent dialog?</p>\
- <div class="ngdialog-buttons">\
- <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog(0)">No</button>\
- <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="confirm(1)">Yes</button>\
- </div>',
- plain: true
- });
-
- // NOTE: return the promise from openConfirm
- return nestedConfirmDialog;
- }
-});
-```
-
-##### ``trapFocus {Boolean}``
-
-When ``true``, ensures that the focused element remains within the dialog to conform to accessibility recommendations. Default value is ``true``
-
-##### ``preserveFocus {Boolean}``
-
-When ``true``, closing the dialog restores focus to the element that launched it. Designed to improve keyboard accessibility. Default value is ``true``
-
-##### ``ariaAuto {Boolean}``
-
-When ``true``, automatically selects appropriate values for any unspecified accessibility attributes. Default value is ``true``
-
-See [Accessibility](#Accessibility) for more information.
-
-##### ``ariaRole {String}``
-
-Specifies the value for the ``role`` attribute that should be applied to the dialog element. Default value is ``null`` (unspecified)
-
-See [Accessibility](#Accessibility) for more information.
-
-##### ``ariaLabelledById {String}``
-
-Specifies the value for the ``aria-labelledby`` attribute that should be applied to the dialog element. Default value is ``null`` (unspecified)
-
-If specified, the value is not validated against the DOM. See [Accessibility](#Accessibility) for more information.
-
-##### ``ariaLabelledBySelector {String}``
-
-Specifies the CSS selector for the element to be referenced by the ``aria-labelledby`` attribute on the dialog element. Default value is ``null`` (unspecified)
-
-If specified, the first matching element is used. See [Accessibility](#Accessibility) for more information.
-
-##### ``ariaDescribedById {String}``
-
-Specifies the value for the ``aria-describedby`` attribute that should be applied to the dialog element. Default value is ``null`` (unspecified)
-
-If specified, the value is not validated against the DOM. See [Accessibility](#Accessibility) for more information.
-
-##### ``ariaDescribedBySelector {String}``
-
-Specifies the CSS selector for the element to be referenced by the ``aria-describedby`` attribute on the dialog element. Default value is ``null`` (unspecified)
-
-If specified, the first matching element is used. See [Accessibility](#Accessibility) for more information.
-
-##### ``width {Number | String}``
-
-This option allows you to control the dialog's width. Default value is `null` (unspecified)
-
-If you provide a Number, 'px' will be appended. To use a custom metric, use a String, e.g. `'40%'`.
-
-For example, the following will add `width: 400px;` to the dialog when opened:
-
-```
-ngDialog.open({
- template: 'template.html',
- width: 400
-});
-```
-
-In another example, the following will add `width: 40%;`:
-
-```
-ngDialog.open({
- template: 'template.html',
- width: '40%'
-});
-```
-
-##### ``height {Number | String}``
-
-This option allows you to control the dialog's height. Default value is `null` (unspecified)
-
-If you provide a Number, 'px' will be appended. To use a custom metric, use a String, e.g. `'40%'`.
-
-For example, the following will add `height: 400px;` to the dialog when opened:
-
-```
-ngDialog.open({
- template: 'template.html',
- height: 400
-});
-```
-
-In another example, the following will add `height: 40%;`:
-
-```
-ngDialog.open({
- template: 'template.html',
- height: '40%'
-});
-```
-
-#### Returns:
-
-The ``open()`` method returns an object with some useful properties.
-
-##### ``id {String}``
-
-This is the ID of the dialog which was just created. It is the ID on the dialog's DOM element.
-
-##### ``close(value) {Function}``
-
-This is a function which will close the dialog which was opened by the current call to ``open()``. It takes an optional value to pass to the close promise.
-
-##### ``closePromise {Promise}``
-
-A promise which will resolve when the dialog is closed. It is resolved with an object containing: ``id`` - the ID of the closed dialog, ``value`` - the value the dialog was closed with, ``$dialog`` - the dialog element which at this point has been removed from the DOM and ``remainingDialogs`` - the number of dialogs still open.
-
-The value property will be a special string if the dialog is dismissed by one of the built in mechanisms: `'$escape'`, `'$closeButton'` or `'$document'`.
-
-This allows you do to something like this:
-
-```javascript
-var dialog = ngDialog.open({
- template: 'templateId'
-});
-
-dialog.closePromise.then(function (data) {
- console.log(data.id + ' has been dismissed.');
-});
-```
-
-===
-
-### ``.setDefaults(options)``
-
-You're able to set default settings through ``ngDialogProvider``:
-
-```javascript
-var app = angular.module('myApp', ['ngDialog']);
-app.config(['ngDialogProvider', function (ngDialogProvider) {
- ngDialogProvider.setDefaults({
- className: 'ngdialog-theme-default',
- plain: true,
- showClose: true,
- closeByDocument: true,
- closeByEscape: true
- });
-}]);
-```
-
-===
-
-### ``.openConfirm(options)``
-
-Opens a dialog that by default does not close when hitting escape or clicking outside the dialog window. The function returns a promise that is either resolved or rejected depending on the way the dialog was closed.
-
-#### Options:
-
-The options are the same as the regular [``.open()``](https://github.com/likeastore/ngDialog#options) method with an extra function added to the scope:
-
-##### ``scope.confirm()``
-
-In addition to the ``.closeThisDialog()`` method. The method ``.confirm()`` is also injected to passed ``$scope``. Use this method to close the dialog and ``resolve`` the promise that was returned when opening the modal.
-
-The function accepts a single optional parameter which is used as the value of the resolved promise.
-
-```html
-<div class="dialog-contents">
- Some message
- <button ng-click="closeThisDialog()">Cancel</button>
- <button ng-click="confirm()">Confirm</button>
-</div>
-```
-
-#### Returns:
-
-An Angular promise object that is resolved if the ``.confirm()`` function is used to close the dialog, otherwise the promise is rejected. The resolve value and the reject reason is defined by the value passed to the ``confirm()`` or ``closeThisDialog()`` call respectively.
-
-===
-
-### ``.isOpen(id)``
-
-Method accepts dialog's ``id`` and returns a ``Boolean`` value indicating whether the specified dialog is open.
-
-===
-
-### ``.close(id, value)``
-
-Method accepts dialog's ``id`` as string argument to close specific dialog window, if ``id`` is not specified it will close all currently active modals (same behavior as ``.closeAll()``). Takes an optional value to resolve the dialog promise with (or all dialog promises).
-
-===
-
-### ``.closeAll(value)``
-
-Method manages closing all active modals on the page. Takes an optional value to resolve all of the dialog promises with.
-
-===
-
-### ``.getOpenDialogs()``
-
-Method that returns array which includes the ids of opened dialogs.
-
-===
-
-### ``.setForceHtmlReload({Boolean})``
-
-Adds an additional listener on every ``$locationChangeSuccess`` event and gets update version of ``html`` into dialog. May be useful in some rare cases when you're dependant on DOM changes, defaults to ``false``. Use it in module's config as provider instance:
-
-```javascript
-var app = angular.module('exampleApp', ['ngDialog']);
-
-app.config(function (ngDialogProvider) {
- ngDialogProvider.setForceHtmlReload(true);
-});
-```
-
-===
-
-### ``.setForceBodyReload({Boolean})``
-
-Adds additional listener on every ``$locationChangeSuccess`` event and gets updated version of ``body`` into dialog. Maybe useful in some rare cases when you're dependant on DOM changes, defaults to ``false``. Use it in module's config as provider instance:
-
-```javascript
-var app = angular.module('exampleApp', ['ngDialog']);
-
-app.config(function (ngDialogProvider) {
- ngDialogProvider.setForceBodyReload(true);
-});
-```
-
-===
-
-### ``.setOpenOnePerName({Boolean})``
-Default value: false
-
-Define whether or not opening a dialog with the same name more than once simultaneously is allowed. Assigning true prevents opening a second dialog.
-
-Setting it in the ngDialogProvider:
-```javascript
-var app = angular.module('exampleApp', ['ngDialog']);
-
-app.config(function (ngDialogProvider) {
- ngDialogProvider.setOpenOnePerName(true);
-});
-```
-
-Make sure to remember to add a 'name' when opening a dialog.
-**ngDialog 'open' and 'openConfirm' functions will return `undefined` if the dialog was not opened.**
-
-## Directive
-
-By default the ngDialog module is served with the ``ngDialog`` directive which can be used as attribute for buttons, links, etc. Almost all ``.open()`` options are available through tag attributes as well, the only difference is that ``ng-template`` id or path of template file is required.
-
-Some imaginary button, for example, will look like:
-
-```html
-<button type="button"
- ng-dialog="templateId.html"
- ng-dialog-class="ngdialog-theme-flat"
- ng-dialog-controller="ModalCtrl"
- ng-dialog-close-previous>
- Open modal text
-</button>
-```
-
-You could optionally use ``ng-dialog-bind-to-controller`` to bind scope you've defined via parameter of directive to controller.
-More information about bindToController is available [here](http://blog.thoughtram.io/angularjs/2015/01/02/exploring-angular-1.3-bindToController.html).
-
-Directive contains one more additional but very useful option, it's an attribute named ``ng-dialog-close-previous``. It allows you to close previously opened dialogs automatically.
-
-## Events
-
-Everytime ngDialog is opened or closed we're broadcasting three events (dispatching events downwards to all child scopes):
-
-- ``ngDialog.opened``
-
-- ``ngDialog.closing``
-
-- ``ngDialog.closed``
-
-This allows you to register your own listeners, example:
-
-```javascript
-$rootScope.$on('ngDialog.opened', function (e, $dialog) {
- console.log('ngDialog opened: ' + $dialog.attr('id'));
-});
-```
-
-``ngDialog.closing`` is different than ``ngDialog.closed`` in that it is fired immediately when the dialog begins closing, whereas ``ngDialog.closed`` is fired after all animations are complete. Both will be fired even when animation end support is not detected.
-
-Additionally we trigger following 2 events related to loading of template for dialog:
-
-- ``ngDialog.templateLoading``
-
-- ``ngDialog.templateLoaded``
-
-In case you are loading your templates from an external location, you could use above events to show some kind of loader.
-
-Finally, we trigger the following event when adding padding to or removing padding from the body tag to compensate for scrollbar toggling:
-
-- ``ngDialog.setPadding``
-
-The ``ngDialog.setPadding`` event will communicate the pixel value being added to the body tag so you can add it to any other elements in your layout at the same time (often fixed-position elements will need this).
-
-
-## Themes
-
-Currently _ngDialog_ contains two default themes that show how easily you can create your own. Check ``example`` folder for demonstration purposes.
-
-## Accessibility
-
-ngDialog supports accessible keyboard navigation via the ``trapFocus`` and ``preserveFocus`` options.
-
-The ``role``, ``aria-labelledby`` and ``aria-describedby`` attributes are also supported, and are rendered as follows.
-
-Dialog ``role`` attribute:
-
-* ``options.ariaRole``, if specified
-* "dialog" if ``options.ariaAuto`` is ``true`` and the dialog contains any focusable elements
-* "alertdialog" is ``options.ariaAuto`` is ``true`` and the dialog does *not* contain any focusable elements
-
-Dialog ``aria-labelledby`` attribute:
-
-* ``options.ariaLabelledById``, if specified
-* If ``options.ariaLabelledBySelector`` is specified, the first matching element will be found and assigned an id (if required) and that id will be used
-* If ``options.ariaAuto`` is ``true``, the first heading element in the dialog (h1-6) will be found and processed as per ``ariaLabelledBySelector``
-
-Dialog ``aria-describedby`` attribute:
-
-* ``options.ariaDescribedById``, if specified
-* If ``options.ariaDescribedBySelector`` is specified, the first matching element will be found and assigned an id (if required) and that id will be used
-* If ``options.ariaAuto`` is ``true``, the first content element in the dialog (article,section,p) will be found and processed as per ``ariaDescribedBySelector``
-
-Dialog Content ``role`` attribute:
-
-* Always assigned a value of "document"
-
-## CDN
-
-_ngDialog_ is available for public on [cdnjs](http://cdnjs.com/libraries/ng-dialog). For example, please use following urls for version ``0.4.0``.
-
-```html
-//cdnjs.cloudflare.com/ajax/libs/ng-dialog/0.4.0/css/ngDialog.min.css
-//cdnjs.cloudflare.com/ajax/libs/ng-dialog/0.4.0/css/ngDialog-theme-default.min.css
-//cdnjs.cloudflare.com/ajax/libs/ng-dialog/0.4.0/css/ngDialog-theme-plain.min.css
-//cdnjs.cloudflare.com/ajax/libs/ng-dialog/0.4.0/js/ngDialog.min.js
-```
-
-## References
-
-_ngDialog_ default styles are heavily inspired by awesome [Hubspot/Vex](https://github.com/HubSpot/vex) jQuery modals.
-
-## License
-
-MIT Licensed
-
-Copyright (c) 2013-2015, Likeastore.com <info@likeastore.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/likeastore/ngdialog/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
-
-[contributor-guidelines]: https://github.com/likeastore/ngDialog/blob/master/CONTRIBUTING.md
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/bower.json b/ecomp-portal-FE/client/bower_components/ng-dialog/bower.json
deleted file mode 100644
index 3ffe95cb..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/bower.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "ng-dialog",
- "homepage": "https://github.com/likeastore/ngDialog",
- "description": "Modal dialogs and popups provider for Angular.js applications",
- "main": [
- "js/ngDialog.js",
- "css/ngDialog.css",
- "css/ngDialog-theme-default.css"
- ],
- "keywords": [
- "angular.js",
- "modals",
- "popups",
- "dialog",
- "ng",
- "provider",
- "factory",
- "directive"
- ],
- "authors": [
- "Dmitri Voronianski"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests",
- "example",
- "css/myth",
- "Gruntfile.js"
- ],
- "dependencies": {
- "angular": ">=1.5"
- },
- "devDependencies": {
- "angular-mocks": ">=1.5"
- },
- "resolutions": {
- "angular": "1.6.1"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-custom-width.css b/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-custom-width.css
deleted file mode 100644
index 2dd9cd24..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-custom-width.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.ngdialog.ngdialog-theme-plain.custom-width .ngdialog-content {
- width: 150px;
-}
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-default.css b/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-default.css
deleted file mode 100644
index e4da01ae..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-default.css
+++ /dev/null
@@ -1,191 +0,0 @@
-@-webkit-keyframes ngdialog-flyin {
- 0% {
- opacity: 0;
- -webkit-transform: translateY(-40px);
- transform: translateY(-40px);
- }
-
- 100% {
- opacity: 1;
- -webkit-transform: translateY(0);
- transform: translateY(0);
- }
-}
-
-@keyframes ngdialog-flyin {
- 0% {
- opacity: 0;
- -webkit-transform: translateY(-40px);
- transform: translateY(-40px);
- }
-
- 100% {
- opacity: 1;
- -webkit-transform: translateY(0);
- transform: translateY(0);
- }
-}
-
-@-webkit-keyframes ngdialog-flyout {
- 0% {
- opacity: 1;
- -webkit-transform: translateY(0);
- transform: translateY(0);
- }
-
- 100% {
- opacity: 0;
- -webkit-transform: translateY(-40px);
- transform: translateY(-40px);
- }
-}
-
-@keyframes ngdialog-flyout {
- 0% {
- opacity: 1;
- -webkit-transform: translateY(0);
- transform: translateY(0);
- }
-
- 100% {
- opacity: 0;
- -webkit-transform: translateY(-40px);
- transform: translateY(-40px);
- }
-}
-
-.ngdialog.ngdialog-theme-default {
- padding-bottom: 160px;
- padding-top: 160px;
-}
-
-.ngdialog.ngdialog-theme-default.ngdialog-closing .ngdialog-content {
- -webkit-animation: ngdialog-flyout .5s;
- animation: ngdialog-flyout .5s;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-content {
- -webkit-animation: ngdialog-flyin .5s;
- animation: ngdialog-flyin .5s;
- background: #f0f0f0;
- border-radius: 5px;
- color: #444;
- font-family: 'Helvetica',sans-serif;
- font-size: 1.1em;
- line-height: 1.5em;
- margin: 0 auto;
- max-width: 100%;
- padding: 1em;
- position: relative;
- width: 450px;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-close {
- border-radius: 5px;
- cursor: pointer;
- position: absolute;
- right: 0;
- top: 0;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-close:before {
- background: transparent;
- border-radius: 3px;
- color: #bbb;
- content: '\00D7';
- font-size: 26px;
- font-weight: 400;
- height: 30px;
- line-height: 26px;
- position: absolute;
- right: 3px;
- text-align: center;
- top: 3px;
- width: 30px;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-close:hover:before,
-.ngdialog.ngdialog-theme-default .ngdialog-close:active:before {
- color: #777;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-message {
- margin-bottom: .5em;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-input {
- margin-bottom: 1em;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-input textarea,
-.ngdialog.ngdialog-theme-default .ngdialog-input input[type="text"],
-.ngdialog.ngdialog-theme-default .ngdialog-input input[type="password"],
-.ngdialog.ngdialog-theme-default .ngdialog-input input[type="email"],
-.ngdialog.ngdialog-theme-default .ngdialog-input input[type="url"] {
- background: #fff;
- border: 0;
- border-radius: 3px;
- font-family: inherit;
- font-size: inherit;
- font-weight: inherit;
- margin: 0 0 .25em;
- min-height: 2.5em;
- padding: .25em .67em;
- width: 100%;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-input textarea:focus,
-.ngdialog.ngdialog-theme-default .ngdialog-input input[type="text"]:focus,
-.ngdialog.ngdialog-theme-default .ngdialog-input input[type="password"]:focus,
-.ngdialog.ngdialog-theme-default .ngdialog-input input[type="email"]:focus,
-.ngdialog.ngdialog-theme-default .ngdialog-input input[type="url"]:focus {
- box-shadow: inset 0 0 0 2px #8dbdf1;
- outline: none;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-buttons {
- *zoom: 1;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-buttons:after {
- content: '';
- display: table;
- clear: both;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-button {
- border: 0;
- border-radius: 3px;
- cursor: pointer;
- float: right;
- font-family: inherit;
- font-size: .8em;
- letter-spacing: .1em;
- line-height: 1em;
- margin: 0 0 0 .5em;
- padding: .75em 2em;
- text-transform: uppercase;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-button:focus {
- -webkit-animation: ngdialog-pulse 1.1s infinite;
- animation: ngdialog-pulse 1.1s infinite;
- outline: none;
-}
-
-@media (max-width: 568px) {
- .ngdialog.ngdialog-theme-default .ngdialog-button:focus {
- -webkit-animation: none;
- animation: none;
- }
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-button.ngdialog-button-primary {
- background: #3288e6;
- color: #fff;
-}
-
-.ngdialog.ngdialog-theme-default .ngdialog-button.ngdialog-button-secondary {
- background: #e0e0e0;
- color: #777;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-default.min.css b/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-default.min.css
deleted file mode 100644
index 057c311c..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-default.min.css
+++ /dev/null
@@ -1 +0,0 @@
-@-webkit-keyframes ngdialog-flyin{0%{opacity:0;-webkit-transform:translateY(-40px);transform:translateY(-40px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes ngdialog-flyin{0%{opacity:0;-webkit-transform:translateY(-40px);transform:translateY(-40px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes ngdialog-flyout{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}100%{opacity:0;-webkit-transform:translateY(-40px);transform:translateY(-40px)}}@keyframes ngdialog-flyout{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}100%{opacity:0;-webkit-transform:translateY(-40px);transform:translateY(-40px)}}.ngdialog.ngdialog-theme-default{padding-bottom:160px;padding-top:160px}.ngdialog.ngdialog-theme-default.ngdialog-closing .ngdialog-content{-webkit-animation:ngdialog-flyout .5s;animation:ngdialog-flyout .5s}.ngdialog.ngdialog-theme-default .ngdialog-content{-webkit-animation:ngdialog-flyin .5s;animation:ngdialog-flyin .5s;background:#f0f0f0;border-radius:5px;color:#444;font-family:Helvetica,sans-serif;font-size:1.1em;line-height:1.5em;margin:0 auto;max-width:100%;padding:1em;position:relative;width:450px}.ngdialog.ngdialog-theme-default .ngdialog-close{border-radius:5px;cursor:pointer;position:absolute;right:0;top:0}.ngdialog.ngdialog-theme-default .ngdialog-close:before{background:0 0;border-radius:3px;color:#bbb;content:'\00D7';font-size:26px;font-weight:400;height:30px;line-height:26px;position:absolute;right:3px;text-align:center;top:3px;width:30px}.ngdialog.ngdialog-theme-default .ngdialog-close:active:before,.ngdialog.ngdialog-theme-default .ngdialog-close:hover:before{color:#777}.ngdialog.ngdialog-theme-default .ngdialog-message{margin-bottom:.5em}.ngdialog.ngdialog-theme-default .ngdialog-input{margin-bottom:1em}.ngdialog.ngdialog-theme-default .ngdialog-input input[type=text],.ngdialog.ngdialog-theme-default .ngdialog-input input[type=password],.ngdialog.ngdialog-theme-default .ngdialog-input input[type=email],.ngdialog.ngdialog-theme-default .ngdialog-input input[type=url],.ngdialog.ngdialog-theme-default .ngdialog-input textarea{background:#fff;border:0;border-radius:3px;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0 0 .25em;min-height:2.5em;padding:.25em .67em;width:100%}.ngdialog.ngdialog-theme-default .ngdialog-input input[type=text]:focus,.ngdialog.ngdialog-theme-default .ngdialog-input input[type=password]:focus,.ngdialog.ngdialog-theme-default .ngdialog-input input[type=email]:focus,.ngdialog.ngdialog-theme-default .ngdialog-input input[type=url]:focus,.ngdialog.ngdialog-theme-default .ngdialog-input textarea:focus{box-shadow:inset 0 0 0 2px #8dbdf1;outline:0}.ngdialog.ngdialog-theme-default .ngdialog-buttons:after{content:'';display:table;clear:both}.ngdialog.ngdialog-theme-default .ngdialog-button{border:0;border-radius:3px;cursor:pointer;float:right;font-family:inherit;font-size:.8em;letter-spacing:.1em;line-height:1em;margin:0 0 0 .5em;padding:.75em 2em;text-transform:uppercase}.ngdialog.ngdialog-theme-default .ngdialog-button:focus{-webkit-animation:ngdialog-pulse 1.1s infinite;animation:ngdialog-pulse 1.1s infinite;outline:0}@media (max-width:568px){.ngdialog.ngdialog-theme-default .ngdialog-button:focus{-webkit-animation:none;animation:none}}.ngdialog.ngdialog-theme-default .ngdialog-button.ngdialog-button-primary{background:#3288e6;color:#fff}.ngdialog.ngdialog-theme-default .ngdialog-button.ngdialog-button-secondary{background:#e0e0e0;color:#777} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-plain.css b/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-plain.css
deleted file mode 100644
index a0fc38ce..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-plain.css
+++ /dev/null
@@ -1,131 +0,0 @@
-.ngdialog.ngdialog-theme-plain {
- padding-bottom: 160px;
- padding-top: 160px;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-content {
- background: #fff;
- color: #444;
- font-family: 'Helvetica Neue',sans-serif;
- font-size: 1.1em;
- line-height: 1.5em;
- margin: 0 auto;
- max-width: 100%;
- padding: 1em;
- position: relative;
- width: 450px;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-content h1,
-.ngdialog.ngdialog-theme-plain .ngdialog-content h2,
-.ngdialog.ngdialog-theme-plain .ngdialog-content h3,
-.ngdialog.ngdialog-theme-plain .ngdialog-content h4,
-.ngdialog.ngdialog-theme-plain .ngdialog-content h5,
-.ngdialog.ngdialog-theme-plain .ngdialog-content h6,
-.ngdialog.ngdialog-theme-plain .ngdialog-content p,
-.ngdialog.ngdialog-theme-plain .ngdialog-content ul,
-.ngdialog.ngdialog-theme-plain .ngdialog-content li {
- color: inherit;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-close {
- cursor: pointer;
- position: absolute;
- right: 0;
- top: 0;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-close:before {
- background: transparent;
- color: #bbb;
- content: "\00D7";
- font-size: 26px;
- font-weight: 400;
- height: 30px;
- line-height: 26px;
- position: absolute;
- right: 3px;
- text-align: center;
- top: 3px;
- width: 30px;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-close:hover:before,
-.ngdialog.ngdialog-theme-plain .ngdialog-close:active:before {
- color: #777;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-message {
- margin-bottom: .5em;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-input {
- margin-bottom: 1em;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-input textarea,
-.ngdialog.ngdialog-theme-plain .ngdialog-input input[type="text"],
-.ngdialog.ngdialog-theme-plain .ngdialog-input input[type="password"],
-.ngdialog.ngdialog-theme-plain .ngdialog-input input[type="email"],
-.ngdialog.ngdialog-theme-plain .ngdialog-input input[type="url"] {
- background: #f0f0f0;
- border: 0;
- font-family: inherit;
- font-size: inherit;
- font-weight: inherit;
- margin: 0 0 .25em;
- min-height: 2.5em;
- padding: .25em .67em;
- width: 100%;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-input textarea:focus,
-.ngdialog.ngdialog-theme-plain .ngdialog-input input[type="text"]:focus,
-.ngdialog.ngdialog-theme-plain .ngdialog-input input[type="password"]:focus,
-.ngdialog.ngdialog-theme-plain .ngdialog-input input[type="email"]:focus,
-.ngdialog.ngdialog-theme-plain .ngdialog-input input[type="url"]:focus {
- box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2);
- outline: none;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-buttons:after {
- clear: both;
- content: '';
- display: table;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-button {
- border: 0;
- cursor: pointer;
- float: right;
- font-family: inherit;
- font-size: .8em;
- letter-spacing: .1em;
- line-height: 1em;
- margin: 0 0 0 .5em;
- padding: .75em 2em;
- text-transform: uppercase;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-button:focus {
- -webkit-animation: ngdialog-pulse 1.1s infinite;
- animation: ngdialog-pulse 1.1s infinite;
- outline: none;
-}
-
-@media (max-width: 568px) {
- .ngdialog.ngdialog-theme-plain .ngdialog-button:focus {
- -webkit-animation: none;
- animation: none;
- }
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-button.ngdialog-button-primary {
- background: #3288e6;
- color: #fff;
-}
-
-.ngdialog.ngdialog-theme-plain .ngdialog-button.ngdialog-button-secondary {
- background: #e0e0e0;
- color: #777;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-plain.min.css b/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-plain.min.css
deleted file mode 100644
index 2892de15..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog-theme-plain.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.ngdialog.ngdialog-theme-plain{padding-bottom:160px;padding-top:160px}.ngdialog.ngdialog-theme-plain .ngdialog-content{background:#fff;color:#444;font-family:'Helvetica Neue',sans-serif;font-size:1.1em;line-height:1.5em;margin:0 auto;max-width:100%;padding:1em;position:relative;width:450px}.ngdialog.ngdialog-theme-plain .ngdialog-content h1,.ngdialog.ngdialog-theme-plain .ngdialog-content h2,.ngdialog.ngdialog-theme-plain .ngdialog-content h3,.ngdialog.ngdialog-theme-plain .ngdialog-content h4,.ngdialog.ngdialog-theme-plain .ngdialog-content h5,.ngdialog.ngdialog-theme-plain .ngdialog-content h6,.ngdialog.ngdialog-theme-plain .ngdialog-content li,.ngdialog.ngdialog-theme-plain .ngdialog-content p,.ngdialog.ngdialog-theme-plain .ngdialog-content ul{color:inherit}.ngdialog.ngdialog-theme-plain .ngdialog-close{cursor:pointer;position:absolute;right:0;top:0}.ngdialog.ngdialog-theme-plain .ngdialog-close:before{background:0 0;color:#bbb;content:"\00D7";font-size:26px;font-weight:400;height:30px;line-height:26px;position:absolute;right:3px;text-align:center;top:3px;width:30px}.ngdialog.ngdialog-theme-plain .ngdialog-close:active:before,.ngdialog.ngdialog-theme-plain .ngdialog-close:hover:before{color:#777}.ngdialog.ngdialog-theme-plain .ngdialog-message{margin-bottom:.5em}.ngdialog.ngdialog-theme-plain .ngdialog-input{margin-bottom:1em}.ngdialog.ngdialog-theme-plain .ngdialog-input input[type=text],.ngdialog.ngdialog-theme-plain .ngdialog-input input[type=password],.ngdialog.ngdialog-theme-plain .ngdialog-input input[type=email],.ngdialog.ngdialog-theme-plain .ngdialog-input input[type=url],.ngdialog.ngdialog-theme-plain .ngdialog-input textarea{background:#f0f0f0;border:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0 0 .25em;min-height:2.5em;padding:.25em .67em;width:100%}.ngdialog.ngdialog-theme-plain .ngdialog-input input[type=text]:focus,.ngdialog.ngdialog-theme-plain .ngdialog-input input[type=password]:focus,.ngdialog.ngdialog-theme-plain .ngdialog-input input[type=email]:focus,.ngdialog.ngdialog-theme-plain .ngdialog-input input[type=url]:focus,.ngdialog.ngdialog-theme-plain .ngdialog-input textarea:focus{box-shadow:inset 0 0 0 2px rgba(0,0,0,.2);outline:0}.ngdialog.ngdialog-theme-plain .ngdialog-buttons:after{clear:both;content:'';display:table}.ngdialog.ngdialog-theme-plain .ngdialog-button{border:0;cursor:pointer;float:right;font-family:inherit;font-size:.8em;letter-spacing:.1em;line-height:1em;margin:0 0 0 .5em;padding:.75em 2em;text-transform:uppercase}.ngdialog.ngdialog-theme-plain .ngdialog-button:focus{-webkit-animation:ngdialog-pulse 1.1s infinite;animation:ngdialog-pulse 1.1s infinite;outline:0}@media (max-width:568px){.ngdialog.ngdialog-theme-plain .ngdialog-button:focus{-webkit-animation:none;animation:none}}.ngdialog.ngdialog-theme-plain .ngdialog-button.ngdialog-button-primary{background:#3288e6;color:#fff}.ngdialog.ngdialog-theme-plain .ngdialog-button.ngdialog-button-secondary{background:#e0e0e0;color:#777} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog.css b/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog.css
deleted file mode 100644
index 0e916436..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog.css
+++ /dev/null
@@ -1,114 +0,0 @@
-@-webkit-keyframes ngdialog-fadeout {
- 0% {
- opacity: 1;
- }
-
- 100% {
- opacity: 0;
- }
-}
-
-@keyframes ngdialog-fadeout {
- 0% {
- opacity: 1;
- }
-
- 100% {
- opacity: 0;
- }
-}
-
-@-webkit-keyframes ngdialog-fadein {
- 0% {
- opacity: 0;
- }
-
- 100% {
- opacity: 1;
- }
-}
-
-@keyframes ngdialog-fadein {
- 0% {
- opacity: 0;
- }
-
- 100% {
- opacity: 1;
- }
-}
-
-.ngdialog {
- box-sizing: border-box;
-}
-
-.ngdialog *,
-.ngdialog *:before,
-.ngdialog *:after {
- box-sizing: inherit;
-}
-
-.ngdialog {
- position: fixed;
- overflow: auto;
- -webkit-overflow-scrolling: touch;
- z-index: 10000;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
-}
-
-.ngdialog.ngdialog-disabled-animation,
-.ngdialog.ngdialog-disabled-animation .ngdialog-overlay,
-.ngdialog.ngdialog-disabled-animation .ngdialog-content {
- -webkit-animation: none!important;
- animation: none!important;
-}
-
-.ngdialog-overlay {
- position: fixed;
- background: rgba(0, 0, 0, 0.4);
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- -webkit-backface-visibility: hidden;
- -webkit-animation: ngdialog-fadein 0.5s;
- animation: ngdialog-fadein 0.5s;
-}
-
-.ngdialog-no-overlay {
- pointer-events: none;
-}
-
-.ngdialog.ngdialog-closing .ngdialog-overlay {
- -webkit-backface-visibility: hidden;
- -webkit-animation: ngdialog-fadeout 0.5s;
- animation: ngdialog-fadeout 0.5s;
-}
-
-.ngdialog-content {
- background: white;
- -webkit-backface-visibility: hidden;
- -webkit-animation: ngdialog-fadein 0.5s;
- animation: ngdialog-fadein 0.5s;
- pointer-events: all;
-}
-
-.ngdialog.ngdialog-closing .ngdialog-content {
- -webkit-backface-visibility: hidden;
- -webkit-animation: ngdialog-fadeout 0.5s;
- animation: ngdialog-fadeout 0.5s;
-}
-
-.ngdialog-close:before {
- font-family: 'Helvetica', Arial, sans-serif;
- content: '\00D7';
- cursor: pointer;
-}
-
-html.ngdialog-open,
-body.ngdialog-open {
- overflow: hidden;
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog.min.css b/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog.min.css
deleted file mode 100644
index f30b684d..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/css/ngDialog.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.ngdialog,.ngdialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0}@-webkit-keyframes ngdialog-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes ngdialog-fadeout{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes ngdialog-fadein{0%{opacity:0}100%{opacity:1}}@keyframes ngdialog-fadein{0%{opacity:0}100%{opacity:1}}.ngdialog{box-sizing:border-box;overflow:auto;-webkit-overflow-scrolling:touch;z-index:10000}.ngdialog *,.ngdialog :after,.ngdialog :before{box-sizing:inherit}.ngdialog.ngdialog-disabled-animation,.ngdialog.ngdialog-disabled-animation .ngdialog-content,.ngdialog.ngdialog-disabled-animation .ngdialog-overlay{-webkit-animation:none!important;animation:none!important}.ngdialog-overlay{background:rgba(0,0,0,.4);-webkit-backface-visibility:hidden;-webkit-animation:ngdialog-fadein .5s;animation:ngdialog-fadein .5s}.ngdialog-no-overlay{pointer-events:none}.ngdialog.ngdialog-closing .ngdialog-overlay{-webkit-backface-visibility:hidden;-webkit-animation:ngdialog-fadeout .5s;animation:ngdialog-fadeout .5s}.ngdialog-content{background:#fff;-webkit-backface-visibility:hidden;-webkit-animation:ngdialog-fadein .5s;animation:ngdialog-fadein .5s;pointer-events:all}.ngdialog.ngdialog-closing .ngdialog-content{-webkit-backface-visibility:hidden;-webkit-animation:ngdialog-fadeout .5s;animation:ngdialog-fadeout .5s}.ngdialog-close:before{font-family:Helvetica,Arial,sans-serif;content:'\00D7';cursor:pointer}body.ngdialog-open,html.ngdialog-open{overflow:hidden} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/js/ngDialog.js b/ecomp-portal-FE/client/bower_components/ng-dialog/js/ngDialog.js
deleted file mode 100644
index df76d776..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/js/ngDialog.js
+++ /dev/null
@@ -1,895 +0,0 @@
-/*
- * ngDialog - easy modals and popup windows
- * http://github.com/likeastore/ngDialog
- * (c) 2013-2015 MIT License, https://likeastore.com
- */
-
-(function (root, factory) {
- if (typeof module !== 'undefined' && module.exports) {
- // CommonJS
- if (typeof angular === 'undefined') {
- factory(require('angular'));
- } else {
- factory(angular);
- }
- module.exports = 'ngDialog';
- } else if (typeof define === 'function' && define.amd) {
- // AMD
- define(['angular'], factory);
- } else {
- // Global Variables
- factory(root.angular);
- }
-}(this, function (angular) {
- 'use strict';
-
- var m = angular.module('ngDialog', []);
-
- var $el = angular.element;
- var isDef = angular.isDefined;
- var style = (document.body || document.documentElement).style;
- var animationEndSupport = isDef(style.animation) || isDef(style.WebkitAnimation) || isDef(style.MozAnimation) || isDef(style.MsAnimation) || isDef(style.OAnimation);
- var animationEndEvent = 'animationend webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend';
- var focusableElementSelector = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]';
- var disabledAnimationClass = 'ngdialog-disabled-animation';
- var forceElementsReload = { html: false, body: false };
- var scopes = {};
- var openIdStack = [];
- var keydownIsBound = false;
- var openOnePerName = false;
-
-
- m.provider('ngDialog', function () {
- var defaults = this.defaults = {
- className: 'ngdialog-theme-default',
- appendClassName: '',
- disableAnimation: false,
- plain: false,
- showClose: true,
- closeByDocument: true,
- closeByEscape: true,
- closeByNavigation: false,
- appendTo: false,
- preCloseCallback: false,
- overlay: true,
- cache: true,
- trapFocus: true,
- preserveFocus: true,
- ariaAuto: true,
- ariaRole: null,
- ariaLabelledById: null,
- ariaLabelledBySelector: null,
- ariaDescribedById: null,
- ariaDescribedBySelector: null,
- bodyClassName: 'ngdialog-open',
- width: null,
- height: null
- };
-
- this.setForceHtmlReload = function (_useIt) {
- forceElementsReload.html = _useIt || false;
- };
-
- this.setForceBodyReload = function (_useIt) {
- forceElementsReload.body = _useIt || false;
- };
-
- this.setDefaults = function (newDefaults) {
- angular.extend(defaults, newDefaults);
- };
-
- this.setOpenOnePerName = function (isOpenOne) {
- openOnePerName = isOpenOne || false;
- };
-
- var globalID = 0, dialogsCount = 0, closeByDocumentHandler, defers = {};
-
- this.$get = ['$document', '$templateCache', '$compile', '$q', '$http', '$rootScope', '$timeout', '$window', '$controller', '$injector',
- function ($document, $templateCache, $compile, $q, $http, $rootScope, $timeout, $window, $controller, $injector) {
- var $elements = [];
-
- var privateMethods = {
- onDocumentKeydown: function (event) {
- if (event.keyCode === 27) {
- publicMethods.close('$escape');
- }
- },
-
- activate: function($dialog) {
- var options = $dialog.data('$ngDialogOptions');
-
- if (options.trapFocus) {
- $dialog.on('keydown', privateMethods.onTrapFocusKeydown);
-
- // Catch rogue changes (eg. after unfocusing everything by clicking a non-focusable element)
- $elements.body.on('keydown', privateMethods.onTrapFocusKeydown);
- }
- },
-
- deactivate: function ($dialog) {
- $dialog.off('keydown', privateMethods.onTrapFocusKeydown);
- $elements.body.off('keydown', privateMethods.onTrapFocusKeydown);
- },
-
- deactivateAll: function (els) {
- angular.forEach(els,function(el) {
- var $dialog = angular.element(el);
- privateMethods.deactivate($dialog);
- });
- },
-
- setBodyPadding: function (width) {
- var originalBodyPadding = parseInt(($elements.body.css('padding-right') || 0), 10);
- $elements.body.css('padding-right', (originalBodyPadding + width) + 'px');
- $elements.body.data('ng-dialog-original-padding', originalBodyPadding);
- $rootScope.$broadcast('ngDialog.setPadding', width);
- },
-
- resetBodyPadding: function () {
- var originalBodyPadding = $elements.body.data('ng-dialog-original-padding');
- if (originalBodyPadding) {
- $elements.body.css('padding-right', originalBodyPadding + 'px');
- } else {
- $elements.body.css('padding-right', '');
- }
- $rootScope.$broadcast('ngDialog.setPadding', 0);
- },
-
- performCloseDialog: function ($dialog, value) {
- var options = $dialog.data('$ngDialogOptions');
- var id = $dialog.attr('id');
- var scope = scopes[id];
-
- if (!scope) {
- // Already closed
- return;
- }
-
- if (typeof $window.Hammer !== 'undefined') {
- var hammerTime = scope.hammerTime;
- hammerTime.off('tap', closeByDocumentHandler);
- hammerTime.destroy && hammerTime.destroy();
- delete scope.hammerTime;
- } else {
- $dialog.unbind('click');
- }
-
- if (dialogsCount === 1) {
- $elements.body.unbind('keydown', privateMethods.onDocumentKeydown);
- }
-
- if (!$dialog.hasClass('ngdialog-closing')){
- dialogsCount -= 1;
- }
-
- var previousFocus = $dialog.data('$ngDialogPreviousFocus');
- if (previousFocus && previousFocus.focus) {
- previousFocus.focus();
- }
-
- $rootScope.$broadcast('ngDialog.closing', $dialog, value);
- dialogsCount = dialogsCount < 0 ? 0 : dialogsCount;
- if (animationEndSupport && !options.disableAnimation) {
- scope.$destroy();
- $dialog.unbind(animationEndEvent).bind(animationEndEvent, function () {
- privateMethods.closeDialogElement($dialog, value);
- }).addClass('ngdialog-closing');
- } else {
- scope.$destroy();
- privateMethods.closeDialogElement($dialog, value);
- }
- if (defers[id]) {
- defers[id].resolve({
- id: id,
- value: value,
- $dialog: $dialog,
- remainingDialogs: dialogsCount
- });
- delete defers[id];
- }
- if (scopes[id]) {
- delete scopes[id];
- }
- openIdStack.splice(openIdStack.indexOf(id), 1);
- if (!openIdStack.length) {
- $elements.body.unbind('keydown', privateMethods.onDocumentKeydown);
- keydownIsBound = false;
- }
- },
-
- closeDialogElement: function($dialog, value) {
- var options = $dialog.data('$ngDialogOptions');
- $dialog.remove();
- if (dialogsCount === 0) {
- $elements.html.removeClass(options.bodyClassName);
- $elements.body.removeClass(options.bodyClassName);
- privateMethods.resetBodyPadding();
- }
- $rootScope.$broadcast('ngDialog.closed', $dialog, value);
- },
-
- closeDialog: function ($dialog, value) {
- var preCloseCallback = $dialog.data('$ngDialogPreCloseCallback');
-
- if (preCloseCallback && angular.isFunction(preCloseCallback)) {
-
- var preCloseCallbackResult = preCloseCallback.call($dialog, value);
-
- if (angular.isObject(preCloseCallbackResult)) {
- if (preCloseCallbackResult.closePromise) {
- preCloseCallbackResult.closePromise.then(function () {
- privateMethods.performCloseDialog($dialog, value);
- }, function () {
- return false;
- });
- } else {
- preCloseCallbackResult.then(function () {
- privateMethods.performCloseDialog($dialog, value);
- }, function () {
- return false;
- });
- }
- } else if (preCloseCallbackResult !== false) {
- privateMethods.performCloseDialog($dialog, value);
- } else {
- return false;
- }
- } else {
- privateMethods.performCloseDialog($dialog, value);
- }
- },
-
- onTrapFocusKeydown: function(ev) {
- var el = angular.element(ev.currentTarget);
- var $dialog;
-
- if (el.hasClass('ngdialog')) {
- $dialog = el;
- } else {
- $dialog = privateMethods.getActiveDialog();
-
- if ($dialog === null) {
- return;
- }
- }
-
- var isTab = (ev.keyCode === 9);
- var backward = (ev.shiftKey === true);
-
- if (isTab) {
- privateMethods.handleTab($dialog, ev, backward);
- }
- },
-
- handleTab: function($dialog, ev, backward) {
- var focusableElements = privateMethods.getFocusableElements($dialog);
-
- if (focusableElements.length === 0) {
- if (document.activeElement && document.activeElement.blur) {
- document.activeElement.blur();
- }
- return;
- }
-
- var currentFocus = document.activeElement;
- var focusIndex = Array.prototype.indexOf.call(focusableElements, currentFocus);
-
- var isFocusIndexUnknown = (focusIndex === -1);
- var isFirstElementFocused = (focusIndex === 0);
- var isLastElementFocused = (focusIndex === focusableElements.length - 1);
-
- var cancelEvent = false;
-
- if (backward) {
- if (isFocusIndexUnknown || isFirstElementFocused) {
- focusableElements[focusableElements.length - 1].focus();
- cancelEvent = true;
- }
- } else {
- if (isFocusIndexUnknown || isLastElementFocused) {
- focusableElements[0].focus();
- cancelEvent = true;
- }
- }
-
- if (cancelEvent) {
- ev.preventDefault();
- ev.stopPropagation();
- }
- },
-
- autoFocus: function($dialog) {
- var dialogEl = $dialog[0];
-
- // Browser's (Chrome 40, Forefix 37, IE 11) don't appear to honor autofocus on the dialog, but we should
- var autoFocusEl = dialogEl.querySelector('*[autofocus]');
- if (autoFocusEl !== null) {
- autoFocusEl.focus();
-
- if (document.activeElement === autoFocusEl) {
- return;
- }
-
- // Autofocus element might was display: none, so let's continue
- }
-
- var focusableElements = privateMethods.getFocusableElements($dialog);
-
- if (focusableElements.length > 0) {
- focusableElements[0].focus();
- return;
- }
-
- // We need to focus something for the screen readers to notice the dialog
- var contentElements = privateMethods.filterVisibleElements(dialogEl.querySelectorAll('h1,h2,h3,h4,h5,h6,p,span'));
-
- if (contentElements.length > 0) {
- var contentElement = contentElements[0];
- $el(contentElement).attr('tabindex', '-1').css('outline', '0');
- contentElement.focus();
- }
- },
-
- getFocusableElements: function ($dialog) {
- var dialogEl = $dialog[0];
-
- var rawElements = dialogEl.querySelectorAll(focusableElementSelector);
-
- // Ignore untabbable elements, ie. those with tabindex = -1
- var tabbableElements = privateMethods.filterTabbableElements(rawElements);
-
- return privateMethods.filterVisibleElements(tabbableElements);
- },
-
- filterTabbableElements: function (els) {
- var tabbableFocusableElements = [];
-
- for (var i = 0; i < els.length; i++) {
- var el = els[i];
-
- if ($el(el).attr('tabindex') !== '-1') {
- tabbableFocusableElements.push(el);
- }
- }
-
- return tabbableFocusableElements;
- },
-
- filterVisibleElements: function (els) {
- var visibleFocusableElements = [];
-
- for (var i = 0; i < els.length; i++) {
- var el = els[i];
-
- if (el.offsetWidth > 0 || el.offsetHeight > 0) {
- visibleFocusableElements.push(el);
- }
- }
-
- return visibleFocusableElements;
- },
-
- getActiveDialog: function () {
- var dialogs = document.querySelectorAll('.ngdialog');
-
- if (dialogs.length === 0) {
- return null;
- }
-
- // TODO: This might be incorrect if there are a mix of open dialogs with different 'appendTo' values
- return $el(dialogs[dialogs.length - 1]);
- },
-
- applyAriaAttributes: function ($dialog, options) {
- if (options.ariaAuto) {
- if (!options.ariaRole) {
- var detectedRole = (privateMethods.getFocusableElements($dialog).length > 0) ?
- 'dialog' :
- 'alertdialog';
-
- options.ariaRole = detectedRole;
- }
-
- if (!options.ariaLabelledBySelector) {
- options.ariaLabelledBySelector = 'h1,h2,h3,h4,h5,h6';
- }
-
- if (!options.ariaDescribedBySelector) {
- options.ariaDescribedBySelector = 'article,section,p';
- }
- }
-
- if (options.ariaRole) {
- $dialog.attr('role', options.ariaRole);
- }
-
- privateMethods.applyAriaAttribute(
- $dialog, 'aria-labelledby', options.ariaLabelledById, options.ariaLabelledBySelector);
-
- privateMethods.applyAriaAttribute(
- $dialog, 'aria-describedby', options.ariaDescribedById, options.ariaDescribedBySelector);
- },
-
- applyAriaAttribute: function($dialog, attr, id, selector) {
- if (id) {
- $dialog.attr(attr, id);
- }
-
- if (selector) {
- var dialogId = $dialog.attr('id');
-
- var firstMatch = $dialog[0].querySelector(selector);
-
- if (!firstMatch) {
- return;
- }
-
- var generatedId = dialogId + '-' + attr;
-
- $el(firstMatch).attr('id', generatedId);
-
- $dialog.attr(attr, generatedId);
-
- return generatedId;
- }
- },
-
- detectUIRouter: function() {
- //Detect if ui-router module is installed if not return false
- try {
- angular.module('ui.router');
- return true;
- } catch(err) {
- return false;
- }
- },
-
- getRouterLocationEventName: function() {
- if(privateMethods.detectUIRouter()) {
- return '$stateChangeStart';
- }
- return '$locationChangeStart';
- }
- };
-
- var publicMethods = {
- __PRIVATE__: privateMethods,
-
- /*
- * @param {Object} options:
- * - template {String} - id of ng-template, url for partial, plain string (if enabled)
- * - plain {Boolean} - enable plain string templates, default false
- * - scope {Object}
- * - controller {String}
- * - controllerAs {String}
- * - className {String} - dialog theme class
- * - appendClassName {String} - dialog theme class to be appended to defaults
- * - disableAnimation {Boolean} - set to true to disable animation
- * - showClose {Boolean} - show close button, default true
- * - closeByEscape {Boolean} - default true
- * - closeByDocument {Boolean} - default true
- * - preCloseCallback {String|Function} - user supplied function name/function called before closing dialog (if set)
- * - bodyClassName {String} - class added to body at open dialog
- * @return {Object} dialog
- */
- open: function (opts) {
- var dialogID = null;
- opts = opts || {};
- if (openOnePerName && opts.name) {
- dialogID = opts.name.toLowerCase().replace(/\s/g, '-') + '-dialog';
- if (this.isOpen(dialogID)) {
- return;
- }
- }
- var options = angular.copy(defaults);
- var localID = ++globalID;
- dialogID = dialogID || 'ngdialog' + localID;
- openIdStack.push(dialogID);
-
- // Merge opts.data with predefined via setDefaults
- if (typeof options.data !== 'undefined') {
- if (typeof opts.data === 'undefined') {
- opts.data = {};
- }
- opts.data = angular.merge(angular.copy(options.data), opts.data);
- }
-
- angular.extend(options, opts);
-
- var defer;
- defers[dialogID] = defer = $q.defer();
-
- var scope;
- scopes[dialogID] = scope = angular.isObject(options.scope) ? options.scope.$new() : $rootScope.$new();
-
- var $dialog, $dialogParent, $dialogContent;
-
- var resolve = angular.extend({}, options.resolve);
-
- angular.forEach(resolve, function (value, key) {
- resolve[key] = angular.isString(value) ? $injector.get(value) : $injector.invoke(value, null, null, key);
- });
-
- $q.all({
- template: loadTemplate(options.template || options.templateUrl),
- locals: $q.all(resolve)
- }).then(function (setup) {
- var template = setup.template,
- locals = setup.locals;
-
- if (options.showClose) {
- template += '<div class="ngdialog-close"></div>';
- }
-
- var hasOverlayClass = options.overlay ? '' : ' ngdialog-no-overlay';
- $dialog = $el('<div id="' + dialogID + '" class="ngdialog' + hasOverlayClass + '"></div>');
- $dialog.html((options.overlay ?
- '<div class="ngdialog-overlay"></div><div class="ngdialog-content" role="document">' + template + '</div>' :
- '<div class="ngdialog-content" role="document">' + template + '</div>'));
-
- $dialog.data('$ngDialogOptions', options);
-
- scope.ngDialogId = dialogID;
-
- if (options.data && angular.isString(options.data)) {
- var firstLetter = options.data.replace(/^\s*/, '')[0];
- scope.ngDialogData = (firstLetter === '{' || firstLetter === '[') ? angular.fromJson(options.data) : new String(options.data);
- scope.ngDialogData.ngDialogId = dialogID;
- } else if (options.data && angular.isObject(options.data)) {
- scope.ngDialogData = options.data;
- scope.ngDialogData.ngDialogId = dialogID;
- }
-
- if (options.className) {
- $dialog.addClass(options.className);
- }
-
- if (options.appendClassName) {
- $dialog.addClass(options.appendClassName);
- }
-
- if (options.width) {
- $dialogContent = $dialog[0].querySelector('.ngdialog-content');
- if (angular.isString(options.width)) {
- $dialogContent.style.width = options.width;
- } else {
- $dialogContent.style.width = options.width + 'px';
- }
- }
-
- if (options.height) {
- $dialogContent = $dialog[0].querySelector('.ngdialog-content');
- if (angular.isString(options.height)) {
- $dialogContent.style.height = options.height;
- } else {
- $dialogContent.style.height = options.height + 'px';
- }
- }
-
- if (options.disableAnimation) {
- $dialog.addClass(disabledAnimationClass);
- }
-
- if (options.appendTo && angular.isString(options.appendTo)) {
- $dialogParent = angular.element(document.querySelector(options.appendTo));
- } else {
- $dialogParent = $elements.body;
- }
-
- privateMethods.applyAriaAttributes($dialog, options);
-
- if (options.preCloseCallback) {
- var preCloseCallback;
-
- if (angular.isFunction(options.preCloseCallback)) {
- preCloseCallback = options.preCloseCallback;
- } else if (angular.isString(options.preCloseCallback)) {
- if (scope) {
- if (angular.isFunction(scope[options.preCloseCallback])) {
- preCloseCallback = scope[options.preCloseCallback];
- } else if (scope.$parent && angular.isFunction(scope.$parent[options.preCloseCallback])) {
- preCloseCallback = scope.$parent[options.preCloseCallback];
- } else if ($rootScope && angular.isFunction($rootScope[options.preCloseCallback])) {
- preCloseCallback = $rootScope[options.preCloseCallback];
- }
- }
- }
-
- if (preCloseCallback) {
- $dialog.data('$ngDialogPreCloseCallback', preCloseCallback);
- }
- }
-
- scope.closeThisDialog = function (value) {
- privateMethods.closeDialog($dialog, value);
- };
-
- if (options.controller && (angular.isString(options.controller) || angular.isArray(options.controller) || angular.isFunction(options.controller))) {
-
- var label;
-
- if (options.controllerAs && angular.isString(options.controllerAs)) {
- label = options.controllerAs;
- }
-
- var controllerInstance = $controller(options.controller, angular.extend(
- locals,
- {
- $scope: scope,
- $element: $dialog
- }),
- true,
- label
- );
-
- if(options.bindToController) {
- angular.extend(controllerInstance.instance, {ngDialogId: scope.ngDialogId, ngDialogData: scope.ngDialogData, closeThisDialog: scope.closeThisDialog, confirm: scope.confirm});
- }
-
- if(typeof controllerInstance === 'function'){
- $dialog.data('$ngDialogControllerController', controllerInstance());
- } else {
- $dialog.data('$ngDialogControllerController', controllerInstance);
- }
- }
-
- $timeout(function () {
- var $activeDialogs = document.querySelectorAll('.ngdialog');
- privateMethods.deactivateAll($activeDialogs);
-
- $compile($dialog)(scope);
- var widthDiffs = $window.innerWidth - $elements.body.prop('clientWidth');
- $elements.html.addClass(options.bodyClassName);
- $elements.body.addClass(options.bodyClassName);
- var scrollBarWidth = widthDiffs - ($window.innerWidth - $elements.body.prop('clientWidth'));
- if (scrollBarWidth > 0) {
- privateMethods.setBodyPadding(scrollBarWidth);
- }
- $dialogParent.append($dialog);
-
- privateMethods.activate($dialog);
-
- if (options.trapFocus) {
- privateMethods.autoFocus($dialog);
- }
-
- if (options.name) {
- $rootScope.$broadcast('ngDialog.opened', {dialog: $dialog, name: options.name});
- } else {
- $rootScope.$broadcast('ngDialog.opened', $dialog);
- }
- });
-
- if (!keydownIsBound) {
- $elements.body.bind('keydown', privateMethods.onDocumentKeydown);
- keydownIsBound = true;
- }
-
- if (options.closeByNavigation) {
- var eventName = privateMethods.getRouterLocationEventName();
- $rootScope.$on(eventName, function ($event) {
- if (privateMethods.closeDialog($dialog) === false)
- $event.preventDefault();
- });
- }
-
- if (options.preserveFocus) {
- $dialog.data('$ngDialogPreviousFocus', document.activeElement);
- }
-
- closeByDocumentHandler = function (event) {
- var isOverlay = options.closeByDocument ? $el(event.target).hasClass('ngdialog-overlay') : false;
- var isCloseBtn = $el(event.target).hasClass('ngdialog-close');
-
- if (isOverlay || isCloseBtn) {
- publicMethods.close($dialog.attr('id'), isCloseBtn ? '$closeButton' : '$document');
- }
- };
-
- if (typeof $window.Hammer !== 'undefined') {
- var hammerTime = scope.hammerTime = $window.Hammer($dialog[0]);
- hammerTime.on('tap', closeByDocumentHandler);
- } else {
- $dialog.bind('click', closeByDocumentHandler);
- }
-
- dialogsCount += 1;
-
- return publicMethods;
- });
-
- return {
- id: dialogID,
- closePromise: defer.promise,
- close: function (value) {
- privateMethods.closeDialog($dialog, value);
- }
- };
-
- function loadTemplateUrl (tmpl, config) {
- var config = config || {};
- config.headers = config.headers || {};
-
- angular.extend(config.headers, {'Accept': 'text/html'});
-
- $rootScope.$broadcast('ngDialog.templateLoading', tmpl);
- return $http.get(tmpl, config).then(function(res) {
- $rootScope.$broadcast('ngDialog.templateLoaded', tmpl);
- return res.data || '';
- });
- }
-
- function loadTemplate (tmpl) {
- if (!tmpl) {
- return 'Empty template';
- }
-
- if (angular.isString(tmpl) && options.plain) {
- return tmpl;
- }
-
- if (typeof options.cache === 'boolean' && !options.cache) {
- return loadTemplateUrl(tmpl, {cache: false});
- }
-
- return loadTemplateUrl(tmpl, {cache: $templateCache});
- }
- },
-
- /*
- * @param {Object} options:
- * - template {String} - id of ng-template, url for partial, plain string (if enabled)
- * - plain {Boolean} - enable plain string templates, default false
- * - name {String}
- * - scope {Object}
- * - controller {String}
- * - controllerAs {String}
- * - className {String} - dialog theme class
- * - appendClassName {String} - dialog theme class to be appended to defaults
- * - showClose {Boolean} - show close button, default true
- * - closeByEscape {Boolean} - default false
- * - closeByDocument {Boolean} - default false
- * - preCloseCallback {String|Function} - user supplied function name/function called before closing dialog (if set); not called on confirm
- * - bodyClassName {String} - class added to body at open dialog
- *
- * @return {Object} dialog
- */
- openConfirm: function (opts) {
- var defer = $q.defer();
- var options = angular.copy(defaults);
-
- opts = opts || {};
-
- // Merge opts.data with predefined via setDefaults
- if (typeof options.data !== 'undefined') {
- if (typeof opts.data === 'undefined') {
- opts.data = {};
- }
- opts.data = angular.merge(angular.copy(options.data), opts.data);
- }
-
- angular.extend(options, opts);
-
- options.scope = angular.isObject(options.scope) ? options.scope.$new() : $rootScope.$new();
- options.scope.confirm = function (value) {
- defer.resolve(value);
- var $dialog = $el(document.getElementById(openResult.id));
- privateMethods.performCloseDialog($dialog, value);
- };
-
- var openResult = publicMethods.open(options);
- if (openResult) {
- openResult.closePromise.then(function (data) {
- if (data) {
- return defer.reject(data.value);
- }
- return defer.reject();
- });
- return defer.promise;
- }
- },
-
- isOpen: function(id) {
- var $dialog = $el(document.getElementById(id));
- return $dialog.length > 0;
- },
-
- /*
- * @param {String} id
- * @return {Object} dialog
- */
- close: function (id, value) {
- var $dialog = $el(document.getElementById(id));
-
- if ($dialog.length) {
- privateMethods.closeDialog($dialog, value);
- } else {
- if (id === '$escape') {
- var topDialogId = openIdStack[openIdStack.length - 1];
- $dialog = $el(document.getElementById(topDialogId));
- if ($dialog.data('$ngDialogOptions').closeByEscape) {
- privateMethods.closeDialog($dialog, '$escape');
- }
- } else {
- publicMethods.closeAll(value);
- }
- }
-
- return publicMethods;
- },
-
- closeAll: function (value) {
- var $all = document.querySelectorAll('.ngdialog');
-
- // Reverse order to ensure focus restoration works as expected
- for (var i = $all.length - 1; i >= 0; i--) {
- var dialog = $all[i];
- privateMethods.closeDialog($el(dialog), value);
- }
- },
-
- getOpenDialogs: function() {
- return openIdStack;
- },
-
- getDefaults: function () {
- return defaults;
- }
- };
-
- angular.forEach(
- ['html', 'body'],
- function(elementName) {
- $elements[elementName] = $document.find(elementName);
- if (forceElementsReload[elementName]) {
- var eventName = privateMethods.getRouterLocationEventName();
- $rootScope.$on(eventName, function () {
- $elements[elementName] = $document.find(elementName);
- });
- }
- }
- );
-
- return publicMethods;
- }];
- });
-
- m.directive('ngDialog', ['ngDialog', function (ngDialog) {
- return {
- restrict: 'A',
- scope: {
- ngDialogScope: '='
- },
- link: function (scope, elem, attrs) {
- elem.on('click', function (e) {
- e.preventDefault();
-
- var ngDialogScope = angular.isDefined(scope.ngDialogScope) ? scope.ngDialogScope : 'noScope';
- angular.isDefined(attrs.ngDialogClosePrevious) && ngDialog.close(attrs.ngDialogClosePrevious);
-
- var defaults = ngDialog.getDefaults();
-
- ngDialog.open({
- template: attrs.ngDialog,
- className: attrs.ngDialogClass || defaults.className,
- appendClassName: attrs.ngDialogAppendClass,
- controller: attrs.ngDialogController,
- controllerAs: attrs.ngDialogControllerAs,
- bindToController: attrs.ngDialogBindToController,
- disableAnimation: attrs.ngDialogDisableAnimation,
- scope: ngDialogScope,
- data: attrs.ngDialogData,
- showClose: attrs.ngDialogShowClose === 'false' ? false : (attrs.ngDialogShowClose === 'true' ? true : defaults.showClose),
- closeByDocument: attrs.ngDialogCloseByDocument === 'false' ? false : (attrs.ngDialogCloseByDocument === 'true' ? true : defaults.closeByDocument),
- closeByEscape: attrs.ngDialogCloseByEscape === 'false' ? false : (attrs.ngDialogCloseByEscape === 'true' ? true : defaults.closeByEscape),
- overlay: attrs.ngDialogOverlay === 'false' ? false : (attrs.ngDialogOverlay === 'true' ? true : defaults.overlay),
- preCloseCallback: attrs.ngDialogPreCloseCallback || defaults.preCloseCallback,
- bodyClassName: attrs.ngDialogBodyClass || defaults.bodyClassName
- });
- });
- }
- };
- }]);
-
- return m;
-}));
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/js/ngDialog.min.js b/ecomp-portal-FE/client/bower_components/ng-dialog/js/ngDialog.min.js
deleted file mode 100644
index b150d678..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/js/ngDialog.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! ng-dialog - v0.6.4 (https://github.com/likeastore/ngDialog) */
-!function(a,b){"undefined"!=typeof module&&module.exports?(b("undefined"==typeof angular?require("angular"):angular),module.exports="ngDialog"):"function"==typeof define&&define.amd?define(["angular"],b):b(a.angular)}(this,function(a){"use strict";var b=a.module("ngDialog",[]),c=a.element,d=a.isDefined,e=(document.body||document.documentElement).style,f=d(e.animation)||d(e.WebkitAnimation)||d(e.MozAnimation)||d(e.MsAnimation)||d(e.OAnimation),g="animationend webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend",h="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",i="ngdialog-disabled-animation",j={html:!1,body:!1},k={},l=[],m=!1,n=!1;return b.provider("ngDialog",function(){var b=this.defaults={className:"ngdialog-theme-default",appendClassName:"",disableAnimation:!1,plain:!1,showClose:!0,closeByDocument:!0,closeByEscape:!0,closeByNavigation:!1,appendTo:!1,preCloseCallback:!1,overlay:!0,cache:!0,trapFocus:!0,preserveFocus:!0,ariaAuto:!0,ariaRole:null,ariaLabelledById:null,ariaLabelledBySelector:null,ariaDescribedById:null,ariaDescribedBySelector:null,bodyClassName:"ngdialog-open",width:null,height:null};this.setForceHtmlReload=function(a){j.html=a||!1},this.setForceBodyReload=function(a){j.body=a||!1},this.setDefaults=function(c){a.extend(b,c)},this.setOpenOnePerName=function(a){n=a||!1};var d,e=0,o=0,p={};this.$get=["$document","$templateCache","$compile","$q","$http","$rootScope","$timeout","$window","$controller","$injector",function(q,r,s,t,u,v,w,x,y,z){var A=[],B={onDocumentKeydown:function(a){27===a.keyCode&&C.close("$escape")},activate:function(a){var b=a.data("$ngDialogOptions");b.trapFocus&&(a.on("keydown",B.onTrapFocusKeydown),A.body.on("keydown",B.onTrapFocusKeydown))},deactivate:function(a){a.off("keydown",B.onTrapFocusKeydown),A.body.off("keydown",B.onTrapFocusKeydown)},deactivateAll:function(b){a.forEach(b,function(b){var c=a.element(b);B.deactivate(c)})},setBodyPadding:function(a){var b=parseInt(A.body.css("padding-right")||0,10);A.body.css("padding-right",b+a+"px"),A.body.data("ng-dialog-original-padding",b),v.$broadcast("ngDialog.setPadding",a)},resetBodyPadding:function(){var a=A.body.data("ng-dialog-original-padding");a?A.body.css("padding-right",a+"px"):A.body.css("padding-right",""),v.$broadcast("ngDialog.setPadding",0)},performCloseDialog:function(a,b){var c=a.data("$ngDialogOptions"),e=a.attr("id"),h=k[e];if(h){if("undefined"!=typeof x.Hammer){var i=h.hammerTime;i.off("tap",d),i.destroy&&i.destroy(),delete h.hammerTime}else a.unbind("click");1===o&&A.body.unbind("keydown",B.onDocumentKeydown),a.hasClass("ngdialog-closing")||(o-=1);var j=a.data("$ngDialogPreviousFocus");j&&j.focus&&j.focus(),v.$broadcast("ngDialog.closing",a,b),o=o<0?0:o,f&&!c.disableAnimation?(h.$destroy(),a.unbind(g).bind(g,function(){B.closeDialogElement(a,b)}).addClass("ngdialog-closing")):(h.$destroy(),B.closeDialogElement(a,b)),p[e]&&(p[e].resolve({id:e,value:b,$dialog:a,remainingDialogs:o}),delete p[e]),k[e]&&delete k[e],l.splice(l.indexOf(e),1),l.length||(A.body.unbind("keydown",B.onDocumentKeydown),m=!1)}},closeDialogElement:function(a,b){var c=a.data("$ngDialogOptions");a.remove(),0===o&&(A.html.removeClass(c.bodyClassName),A.body.removeClass(c.bodyClassName),B.resetBodyPadding()),v.$broadcast("ngDialog.closed",a,b)},closeDialog:function(b,c){var d=b.data("$ngDialogPreCloseCallback");if(d&&a.isFunction(d)){var e=d.call(b,c);if(a.isObject(e))e.closePromise?e.closePromise.then(function(){B.performCloseDialog(b,c)},function(){return!1}):e.then(function(){B.performCloseDialog(b,c)},function(){return!1});else{if(e===!1)return!1;B.performCloseDialog(b,c)}}else B.performCloseDialog(b,c)},onTrapFocusKeydown:function(b){var c,d=a.element(b.currentTarget);if(d.hasClass("ngdialog"))c=d;else if(c=B.getActiveDialog(),null===c)return;var e=9===b.keyCode,f=b.shiftKey===!0;e&&B.handleTab(c,b,f)},handleTab:function(a,b,c){var d=B.getFocusableElements(a);if(0===d.length)return void(document.activeElement&&document.activeElement.blur&&document.activeElement.blur());var e=document.activeElement,f=Array.prototype.indexOf.call(d,e),g=f===-1,h=0===f,i=f===d.length-1,j=!1;c?(g||h)&&(d[d.length-1].focus(),j=!0):(g||i)&&(d[0].focus(),j=!0),j&&(b.preventDefault(),b.stopPropagation())},autoFocus:function(a){var b=a[0],d=b.querySelector("*[autofocus]");if(null===d||(d.focus(),document.activeElement!==d)){var e=B.getFocusableElements(a);if(e.length>0)return void e[0].focus();var f=B.filterVisibleElements(b.querySelectorAll("h1,h2,h3,h4,h5,h6,p,span"));if(f.length>0){var g=f[0];c(g).attr("tabindex","-1").css("outline","0"),g.focus()}}},getFocusableElements:function(a){var b=a[0],c=b.querySelectorAll(h),d=B.filterTabbableElements(c);return B.filterVisibleElements(d)},filterTabbableElements:function(a){for(var b=[],d=0;d<a.length;d++){var e=a[d];"-1"!==c(e).attr("tabindex")&&b.push(e)}return b},filterVisibleElements:function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];(d.offsetWidth>0||d.offsetHeight>0)&&b.push(d)}return b},getActiveDialog:function(){var a=document.querySelectorAll(".ngdialog");return 0===a.length?null:c(a[a.length-1])},applyAriaAttributes:function(a,b){if(b.ariaAuto){if(!b.ariaRole){var c=B.getFocusableElements(a).length>0?"dialog":"alertdialog";b.ariaRole=c}b.ariaLabelledBySelector||(b.ariaLabelledBySelector="h1,h2,h3,h4,h5,h6"),b.ariaDescribedBySelector||(b.ariaDescribedBySelector="article,section,p")}b.ariaRole&&a.attr("role",b.ariaRole),B.applyAriaAttribute(a,"aria-labelledby",b.ariaLabelledById,b.ariaLabelledBySelector),B.applyAriaAttribute(a,"aria-describedby",b.ariaDescribedById,b.ariaDescribedBySelector)},applyAriaAttribute:function(a,b,d,e){if(d&&a.attr(b,d),e){var f=a.attr("id"),g=a[0].querySelector(e);if(!g)return;var h=f+"-"+b;return c(g).attr("id",h),a.attr(b,h),h}},detectUIRouter:function(){try{return a.module("ui.router"),!0}catch(b){return!1}},getRouterLocationEventName:function(){return B.detectUIRouter()?"$stateChangeStart":"$locationChangeStart"}},C={__PRIVATE__:B,open:function(f){function g(b,c){var c=c||{};return c.headers=c.headers||{},a.extend(c.headers,{Accept:"text/html"}),v.$broadcast("ngDialog.templateLoading",b),u.get(b,c).then(function(a){return v.$broadcast("ngDialog.templateLoaded",b),a.data||""})}function h(b){return b?a.isString(b)&&q.plain?b:"boolean"!=typeof q.cache||q.cache?g(b,{cache:r}):g(b,{cache:!1}):"Empty template"}var j=null;if(f=f||{},!(n&&f.name&&(j=f.name.toLowerCase().replace(/\s/g,"-")+"-dialog",this.isOpen(j)))){var q=a.copy(b),D=++e;j=j||"ngdialog"+D,l.push(j),"undefined"!=typeof q.data&&("undefined"==typeof f.data&&(f.data={}),f.data=a.merge(a.copy(q.data),f.data)),a.extend(q,f);var E;p[j]=E=t.defer();var F;k[j]=F=a.isObject(q.scope)?q.scope.$new():v.$new();var G,H,I,J=a.extend({},q.resolve);return a.forEach(J,function(b,c){J[c]=a.isString(b)?z.get(b):z.invoke(b,null,null,c)}),t.all({template:h(q.template||q.templateUrl),locals:t.all(J)}).then(function(b){var e=b.template,f=b.locals;q.showClose&&(e+='<div class="ngdialog-close"></div>');var g=q.overlay?"":" ngdialog-no-overlay";if(G=c('<div id="'+j+'" class="ngdialog'+g+'"></div>'),G.html(q.overlay?'<div class="ngdialog-overlay"></div><div class="ngdialog-content" role="document">'+e+"</div>":'<div class="ngdialog-content" role="document">'+e+"</div>"),G.data("$ngDialogOptions",q),F.ngDialogId=j,q.data&&a.isString(q.data)){var h=q.data.replace(/^\s*/,"")[0];F.ngDialogData="{"===h||"["===h?a.fromJson(q.data):new String(q.data),F.ngDialogData.ngDialogId=j}else q.data&&a.isObject(q.data)&&(F.ngDialogData=q.data,F.ngDialogData.ngDialogId=j);if(q.className&&G.addClass(q.className),q.appendClassName&&G.addClass(q.appendClassName),q.width&&(I=G[0].querySelector(".ngdialog-content"),a.isString(q.width)?I.style.width=q.width:I.style.width=q.width+"px"),q.height&&(I=G[0].querySelector(".ngdialog-content"),a.isString(q.height)?I.style.height=q.height:I.style.height=q.height+"px"),q.disableAnimation&&G.addClass(i),H=q.appendTo&&a.isString(q.appendTo)?a.element(document.querySelector(q.appendTo)):A.body,B.applyAriaAttributes(G,q),q.preCloseCallback){var k;a.isFunction(q.preCloseCallback)?k=q.preCloseCallback:a.isString(q.preCloseCallback)&&F&&(a.isFunction(F[q.preCloseCallback])?k=F[q.preCloseCallback]:F.$parent&&a.isFunction(F.$parent[q.preCloseCallback])?k=F.$parent[q.preCloseCallback]:v&&a.isFunction(v[q.preCloseCallback])&&(k=v[q.preCloseCallback])),k&&G.data("$ngDialogPreCloseCallback",k)}if(F.closeThisDialog=function(a){B.closeDialog(G,a)},q.controller&&(a.isString(q.controller)||a.isArray(q.controller)||a.isFunction(q.controller))){var l;q.controllerAs&&a.isString(q.controllerAs)&&(l=q.controllerAs);var n=y(q.controller,a.extend(f,{$scope:F,$element:G}),!0,l);q.bindToController&&a.extend(n.instance,{ngDialogId:F.ngDialogId,ngDialogData:F.ngDialogData,closeThisDialog:F.closeThisDialog,confirm:F.confirm}),"function"==typeof n?G.data("$ngDialogControllerController",n()):G.data("$ngDialogControllerController",n)}if(w(function(){var a=document.querySelectorAll(".ngdialog");B.deactivateAll(a),s(G)(F);var b=x.innerWidth-A.body.prop("clientWidth");A.html.addClass(q.bodyClassName),A.body.addClass(q.bodyClassName);var c=b-(x.innerWidth-A.body.prop("clientWidth"));c>0&&B.setBodyPadding(c),H.append(G),B.activate(G),q.trapFocus&&B.autoFocus(G),q.name?v.$broadcast("ngDialog.opened",{dialog:G,name:q.name}):v.$broadcast("ngDialog.opened",G)}),m||(A.body.bind("keydown",B.onDocumentKeydown),m=!0),q.closeByNavigation){var p=B.getRouterLocationEventName();v.$on(p,function(a){B.closeDialog(G)===!1&&a.preventDefault()})}if(q.preserveFocus&&G.data("$ngDialogPreviousFocus",document.activeElement),d=function(a){var b=!!q.closeByDocument&&c(a.target).hasClass("ngdialog-overlay"),d=c(a.target).hasClass("ngdialog-close");(b||d)&&C.close(G.attr("id"),d?"$closeButton":"$document")},"undefined"!=typeof x.Hammer){var r=F.hammerTime=x.Hammer(G[0]);r.on("tap",d)}else G.bind("click",d);return o+=1,C}),{id:j,closePromise:E.promise,close:function(a){B.closeDialog(G,a)}}}},openConfirm:function(d){var e=t.defer(),f=a.copy(b);d=d||{},"undefined"!=typeof f.data&&("undefined"==typeof d.data&&(d.data={}),d.data=a.merge(a.copy(f.data),d.data)),a.extend(f,d),f.scope=a.isObject(f.scope)?f.scope.$new():v.$new(),f.scope.confirm=function(a){e.resolve(a);var b=c(document.getElementById(g.id));B.performCloseDialog(b,a)};var g=C.open(f);if(g)return g.closePromise.then(function(a){return a?e.reject(a.value):e.reject()}),e.promise},isOpen:function(a){var b=c(document.getElementById(a));return b.length>0},close:function(a,b){var d=c(document.getElementById(a));if(d.length)B.closeDialog(d,b);else if("$escape"===a){var e=l[l.length-1];d=c(document.getElementById(e)),d.data("$ngDialogOptions").closeByEscape&&B.closeDialog(d,"$escape")}else C.closeAll(b);return C},closeAll:function(a){for(var b=document.querySelectorAll(".ngdialog"),d=b.length-1;d>=0;d--){var e=b[d];B.closeDialog(c(e),a)}},getOpenDialogs:function(){return l},getDefaults:function(){return b}};return a.forEach(["html","body"],function(a){if(A[a]=q.find(a),j[a]){var b=B.getRouterLocationEventName();v.$on(b,function(){A[a]=q.find(a)})}}),C}]}),b.directive("ngDialog",["ngDialog",function(b){return{restrict:"A",scope:{ngDialogScope:"="},link:function(c,d,e){d.on("click",function(d){d.preventDefault();var f=a.isDefined(c.ngDialogScope)?c.ngDialogScope:"noScope";a.isDefined(e.ngDialogClosePrevious)&&b.close(e.ngDialogClosePrevious);var g=b.getDefaults();b.open({template:e.ngDialog,className:e.ngDialogClass||g.className,appendClassName:e.ngDialogAppendClass,controller:e.ngDialogController,controllerAs:e.ngDialogControllerAs,bindToController:e.ngDialogBindToController,disableAnimation:e.ngDialogDisableAnimation,scope:f,data:e.ngDialogData,showClose:"false"!==e.ngDialogShowClose&&("true"===e.ngDialogShowClose||g.showClose),closeByDocument:"false"!==e.ngDialogCloseByDocument&&("true"===e.ngDialogCloseByDocument||g.closeByDocument),closeByEscape:"false"!==e.ngDialogCloseByEscape&&("true"===e.ngDialogCloseByEscape||g.closeByEscape),overlay:"false"!==e.ngDialogOverlay&&("true"===e.ngDialogOverlay||g.overlay),preCloseCallback:e.ngDialogPreCloseCallback||g.preCloseCallback,bodyClassName:e.ngDialogBodyClass||g.bodyClassName})})}}}]),b}); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/karma.conf.js b/ecomp-portal-FE/client/bower_components/ng-dialog/karma.conf.js
deleted file mode 100644
index c8776820..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/karma.conf.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var testMinified = process.argv.indexOf('--min') > -1, subject;
-
-if (testMinified) {
- subject = 'js/ngDialog.min.js';
- console.log('Testing minifed ngDialog');
-} else {
- subject = 'js/ngDialog.js';
-}
-
-module.exports = function(config) {
- config.set({
- basePath: '',
- frameworks: ['jasmine'],
- files: [
- 'bower_components/angular/angular.js',
- 'bower_components/angular-mocks/angular-mocks.js',
- 'example/inside-directive/**/*.js',
- subject,
- 'tests/unit/**/*.js'
- ],
- port: 9877,
- colors: true,
- logLevel: config.LOG_INFO,
- autoWatch: false,
- browsers: ['PhantomJS'],
- singleRun: false,
- reporters: ['dots', 'coverage'],
- preprocessors: {
- 'js/ngDialog.js': ['coverage']
- },
- plugins: [
- 'karma-phantomjs-launcher',
- 'karma-coverage',
- 'karma-jasmine'
- ],
- coverageReporter: {
- reporters: [{
- type: 'html',
- subdir: 'report-html'
- }, {
- type: 'lcov',
- subdir: 'report-lcov'
- }]
- }
- });
-};
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/package.json b/ecomp-portal-FE/client/bower_components/ng-dialog/package.json
deleted file mode 100644
index f3defcf8..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "name": "ng-dialog",
- "version": "0.6.6",
- "homepage": "https://github.com/likeastore/ngDialog",
- "description": "Modal dialogs and popups provider for Angular.js applications",
- "main": "./js/ngDialog.js",
- "style": "./css/ngDialog.css",
- "scripts": {
- "pretest": "npm install && bower install --allow-root",
- "test": "./node_modules/karma/bin/karma start --single-run --browsers PhantomJS",
- "test-min": "./node_modules/karma/bin/karma start --single-run --browsers PhantomJS --min",
- "test-watch": "./node_modules/karma/bin/karma start --auto-watch --browsers PhantomJS",
- "serve": "node server",
- "webdriver-update": "node_modules/.bin/webdriver-manager update --standalone",
- "webdriver": "node_modules/.bin/webdriver-manager start",
- "preprotractor": "npm install && bower install --allow-root",
- "protractor": "node_modules/.bin/protractor protractor.conf.js",
- "protractor-a11y": "node_modules/.bin/protractor protractor.conf.js --a11y",
- "protractor-console": "node_modules/.bin/protractor protractor.conf.js --console-error",
- "build": "grunt build"
- },
- "directories": {
- "test": "tests"
- },
- "keywords": [
- "angular.js",
- "modals",
- "popups",
- "dialog",
- "ng",
- "provider",
- "factory",
- "directive"
- ],
- "author": {
- "name": "Dmitri Voronianski",
- "email": "dmitri.voronianski@gmail.com",
- "web": "http://pixelhunter.me",
- "twitter": "voronianski"
- },
- "bugs": "https://github.com/likeastore/ngDialog/issues",
- "repository": {
- "type": "git",
- "url": "https://github.com/likeastore/ngDialog"
- },
- "readmeFilename": "README.md",
- "license": "MIT",
- "devDependencies": {
- "express": "^4.13.3",
- "grunt": "^0.4.5",
- "grunt-cli": "^0.1.13",
- "grunt-contrib-cssmin": "^0.14.0",
- "grunt-contrib-jshint": "^0.11.3",
- "grunt-contrib-uglify": "^0.9.2",
- "grunt-myth": "^1.0.1",
- "jasmine-core": "^2.3.4",
- "karma": "^1.3.0",
- "karma-coverage": "^1.1.1",
- "karma-jasmine": "^1.1.0",
- "karma-phantomjs-launcher": "^1.0.2",
- "myth": "^1.5.0",
- "phantomjs": "^2.1.7",
- "protractor": "^2.2.0"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js b/ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js
deleted file mode 100644
index 769dfae6..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/protractor.conf.js
+++ /dev/null
@@ -1,75 +0,0 @@
-var args = process.argv.slice(2);
-var plugins = [];
-
-var useA11y = args.indexOf('--a11y') > -1;
-var useConsole = args.indexOf('--console-warning') > -1 || args.indexOf('--console-error') > -1;
-
-if (useA11y) {
- plugins.push({
- path: 'node_modules/protractor/plugins/accessibility',
- chromeA11YDevTools: {
- treatWarningsAsFailures: true
- }
- });
-}
-
-if (useConsole) {
- plugins.push({
- path: 'node_modules/protractor/plugins/console',
- failOnWarning: args.indexOf('--console-warning') > -1,
- failOnError: args.indexOf('--console-error') > -1
- });
-}
-var multiCapabilities = [{
- browserName: 'firefox'
-}];
-
-// if (process.env.TRAVIS_PULL_REQUEST === 'false') {
-// multiCapabilities.push({
-// browserName: 'chrome'
-// });
-
-// if (!useA11y) {
-// multiCapabilities.push({
-// browserName: 'safari'
-// });
-// }
-
-// if (!useA11y && !useConsole) {
-// multiCapabilities.push({
-// browserName: 'internet explorer',
-// version: 10
-// });
-// multiCapabilities.push({
-// browserName: 'internet explorer',
-// version: 11
-// });
-// }
-
-// multiCapabilities.forEach(function(capability) {
-// capability['tunnel-identifier'] = process.env.TRAVIS_JOB_NUMBER;
-// capability.name = 'ngDialog Protractor ' + process.env.TRAVIS_JOB_NUMBER;
-// });
-// }
-
-var config = {
- allScriptsTimeout: 11000,
- specs: ['tests/protractor/**/*.js'],
- multiCapabilities: multiCapabilities,
- framework: 'jasmine2',
- jasmineNodeOpts: {
- defaultTimeoutInterval: 30000
- },
- plugins: plugins
-};
-
-// if (process.env.TRAVIS_PULL_REQUEST === 'false') {
-// config.sauceUser = process.env.SAUCE_USERNAME;
-// config.sauceKey = process.env.SAUCE_ACCESS_KEY;
-// }
-
-console.log('TRAVIS_PULL_REQUEST', process.env.TRAVIS_PULL_REQUEST);
-console.log('protractor config: ', config);
-console.log('multiCapabilities: ', multiCapabilities);
-
-module.exports.config = config;
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/server.js b/ecomp-portal-FE/client/bower_components/ng-dialog/server.js
deleted file mode 100644
index e2fdd1b0..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/server.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var express = require('express');
-var http = require('http');
-var app = express();
-
-app.use(express.static( __dirname ));
-
-var port = process.env.PORT || 3000;
-http.createServer(app).listen(port);
-console.log('Server running on ' + port);
diff --git a/ecomp-portal-FE/client/bower_components/ng-dialog/yarn.lock b/ecomp-portal-FE/client/bower_components/ng-dialog/yarn.lock
deleted file mode 100644
index ec57e22a..00000000
--- a/ecomp-portal-FE/client/bower_components/ng-dialog/yarn.lock
+++ /dev/null
@@ -1,3281 +0,0 @@
-# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
-# yarn lockfile v1
-
-
-abbrev@1, abbrev@1.0.x:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135"
-
-accepts@1.1.4:
- version "1.1.4"
- resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.1.4.tgz#d71c96f7d41d0feda2c38cd14e8a27c04158df4a"
- dependencies:
- mime-types "~2.0.4"
- negotiator "0.4.9"
-
-accepts@~1.3.3:
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca"
- dependencies:
- mime-types "~2.1.11"
- negotiator "0.6.1"
-
-accessibility-developer-tools@~2.6.0:
- version "2.6.0"
- resolved "https://registry.yarnpkg.com/accessibility-developer-tools/-/accessibility-developer-tools-2.6.0.tgz#fcedaff014eddc3f54c4b365931be1f715746afc"
-
-adm-zip@0.4.4:
- version "0.4.4"
- resolved "https://registry.yarnpkg.com/adm-zip/-/adm-zip-0.4.4.tgz#a61ed5ae6905c3aea58b3a657d25033091052736"
-
-after@0.8.1:
- version "0.8.1"
- resolved "https://registry.yarnpkg.com/after/-/after-0.8.1.tgz#ab5d4fb883f596816d3515f8f791c0af486dd627"
-
-agent-base@2:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-2.0.1.tgz#bd8f9e86a8eb221fffa07bd14befd55df142815e"
- dependencies:
- extend "~3.0.0"
- semver "~5.0.1"
-
-align-text@^0.1.1, align-text@^0.1.3:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
- dependencies:
- kind-of "^3.0.2"
- longest "^1.0.1"
- repeat-string "^1.5.2"
-
-amdefine@>=0.0.4:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
-
-ansi-regex@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.0.0.tgz#c5061b6e0ef8a81775e50f5d66151bf6bf371107"
-
-ansi-styles@^2.2.1:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
-
-anymatch@^1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507"
- dependencies:
- arrify "^1.0.0"
- micromatch "^2.1.5"
-
-aproba@^1.0.3:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.0.4.tgz#2713680775e7614c8ba186c065d4e2e52d1072c0"
-
-are-we-there-yet@~1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz#80e470e95a084794fe1899262c5667c6e88de1b3"
- dependencies:
- delegates "^1.0.0"
- readable-stream "^2.0.0 || ^1.1.13"
-
-argparse@^1.0.7:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86"
- dependencies:
- sprintf-js "~1.0.2"
-
-"argparse@~ 0.1.11":
- version "0.1.16"
- resolved "https://registry.yarnpkg.com/argparse/-/argparse-0.1.16.tgz#cfd01e0fbba3d6caed049fbd758d40f65196f57c"
- dependencies:
- underscore "~1.7.0"
- underscore.string "~2.4.0"
-
-arr-diff@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf"
- dependencies:
- arr-flatten "^1.0.1"
-
-arr-flatten@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b"
-
-array-find-index@^1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
-
-array-flatten@1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
-
-array-slice@^0.2.3:
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/array-slice/-/array-slice-0.2.3.tgz#dd3cfb80ed7973a75117cdac69b0b99ec86186f5"
-
-array-unique@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
-
-arraybuffer.slice@0.0.6:
- version "0.0.6"
- resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz#f33b2159f0532a3f3107a272c0ccfbd1ad2979ca"
-
-arrify@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
-
-asn1@0.1.11:
- version "0.1.11"
- resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.1.11.tgz#559be18376d08a4ec4dbe80877d27818639b2df7"
-
-asn1@~0.2.3:
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
-
-assert-plus@^0.1.5:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.1.5.tgz#ee74009413002d84cec7219c6ac811812e723160"
-
-assert-plus@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234"
-
-assert-plus@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
-
-async-each@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"
-
-async@1.x, async@^1.4.0:
- version "1.5.2"
- resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
-
-async@^2.0.1:
- version "2.1.4"
- resolved "https://registry.yarnpkg.com/async/-/async-2.1.4.tgz#2d2160c7788032e4dd6cbe2502f1f9a2c8f6cde4"
- dependencies:
- lodash "^4.14.0"
-
-async@~0.1.22:
- version "0.1.22"
- resolved "https://registry.yarnpkg.com/async/-/async-0.1.22.tgz#0fc1aaa088a0e3ef0ebe2d8831bab0dcf8845061"
-
-async@~0.2.6:
- version "0.2.10"
- resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1"
-
-async@~0.9.0:
- version "0.9.2"
- resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d"
-
-asynckit@^0.4.0:
- version "0.4.0"
- resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
-
-atob@~1.1.0:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/atob/-/atob-1.1.3.tgz#95f13629b12c3a51a5d215abdce2aa9f32f80773"
-
-autoprefixer-core@^5.2.1:
- version "5.2.1"
- resolved "https://registry.yarnpkg.com/autoprefixer-core/-/autoprefixer-core-5.2.1.tgz#e640c414ae419aae21c1ad43c8ea0f3db82a566d"
- dependencies:
- browserslist "~0.4.0"
- caniuse-db "^1.0.30000214"
- num2fraction "^1.1.0"
- postcss "~4.1.12"
-
-aws-sign2@~0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.5.0.tgz#c57103f7a17fc037f02d7c2e64b602ea223f7d63"
-
-aws-sign2@~0.6.0:
- version "0.6.0"
- resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f"
-
-aws4@^1.2.1:
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.5.0.tgz#0a29ffb79c31c9e712eeb087e8e7a64b4a56d755"
-
-backo2@1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/backo2/-/backo2-1.0.2.tgz#31ab1ac8b129363463e35b3ebb69f4dfcfba7947"
-
-balanced-match@0.1.0, balanced-match@~0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.1.0.tgz#b504bd05869b39259dd0c5efc35d843176dccc4a"
-
-balanced-match@^0.0.0:
- version "0.0.0"
- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.0.0.tgz#86efc32ae583496c1c1fbb51cd648de0363ebb03"
-
-balanced-match@^0.4.1:
- version "0.4.2"
- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838"
-
-base64-arraybuffer@0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.1.2.tgz#474df4a9f2da24e05df3158c3b1db3c3cd46a154"
-
-base64id@0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/base64id/-/base64id-0.1.0.tgz#02ce0fdeee0cef4f40080e1e73e834f0b1bfce3f"
-
-bcrypt-pbkdf@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.0.tgz#3ca76b85241c7170bf7d9703e7b9aa74630040d4"
- dependencies:
- tweetnacl "^0.14.3"
-
-benchmark@1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/benchmark/-/benchmark-1.0.0.tgz#2f1e2fa4c359f11122aa183082218e957e390c73"
-
-better-assert@~1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/better-assert/-/better-assert-1.0.2.tgz#40866b9e1b9e0b55b481894311e68faffaebc522"
- dependencies:
- callsite "1.0.0"
-
-binary-extensions@^1.0.0:
- version "1.8.0"
- resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774"
-
-bindings@1.2.x, bindings@~1.2.1:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11"
-
-bl@~0.9.0:
- version "0.9.5"
- resolved "https://registry.yarnpkg.com/bl/-/bl-0.9.5.tgz#c06b797af085ea00bc527afc8efcf11de2232054"
- dependencies:
- readable-stream "~1.0.26"
-
-bl@~1.0.0:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/bl/-/bl-1.0.3.tgz#fc5421a28fd4226036c3b3891a66a25bc64d226e"
- dependencies:
- readable-stream "~2.0.5"
-
-blob@0.0.4:
- version "0.0.4"
- resolved "https://registry.yarnpkg.com/blob/-/blob-0.0.4.tgz#bcf13052ca54463f30f9fc7e95b9a47630a94921"
-
-block-stream@*:
- version "0.0.9"
- resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a"
- dependencies:
- inherits "~2.0.0"
-
-bluebird@^2.9.30:
- version "2.11.0"
- resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1"
-
-bluebird@^3.3.0:
- version "3.4.7"
- resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.4.7.tgz#f72d760be09b7f76d08ed8fae98b289a8d05fab3"
-
-body-parser@^1.12.4:
- version "1.15.2"
- resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.15.2.tgz#d7578cf4f1d11d5f6ea804cef35dc7a7ff6dae67"
- dependencies:
- bytes "2.4.0"
- content-type "~1.0.2"
- debug "~2.2.0"
- depd "~1.1.0"
- http-errors "~1.5.0"
- iconv-lite "0.4.13"
- on-finished "~2.3.0"
- qs "6.2.0"
- raw-body "~2.1.7"
- type-is "~1.6.13"
-
-boom@2.x.x:
- version "2.10.1"
- resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f"
- dependencies:
- hoek "2.x.x"
-
-brace-expansion@^1.0.0:
- version "1.1.6"
- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9"
- dependencies:
- balanced-match "^0.4.1"
- concat-map "0.0.1"
-
-braces@^0.1.2:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/braces/-/braces-0.1.5.tgz#c085711085291d8b75fdd74eab0f8597280711e6"
- dependencies:
- expand-range "^0.1.0"
-
-braces@^1.8.2:
- version "1.8.5"
- resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7"
- dependencies:
- expand-range "^1.8.1"
- preserve "^0.2.0"
- repeat-element "^1.1.2"
-
-browserify-zlib@^0.1.4:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d"
- dependencies:
- pako "~0.2.0"
-
-browserslist@~0.4.0:
- version "0.4.0"
- resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-0.4.0.tgz#3bd4ab9199dc1b9150d4d6dba4d9d3aabbc86dd4"
- dependencies:
- caniuse-db "^1.0.30000153"
-
-buffer-shims@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51"
-
-bufferutil@1.2.x:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-1.2.1.tgz#37be5d36e1e06492221e68d474b1ac58e510cbd7"
- dependencies:
- bindings "1.2.x"
- nan "^2.0.5"
-
-builtin-modules@^1.0.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
-
-bytes@2.4.0:
- version "2.4.0"
- resolved "https://registry.yarnpkg.com/bytes/-/bytes-2.4.0.tgz#7d97196f9d5baf7f6935e25985549edd2a6c2339"
-
-callsite@1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/callsite/-/callsite-1.0.0.tgz#280398e5d664bd74038b6f0905153e6e8af1bc20"
-
-camelcase-keys@^2.0.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7"
- dependencies:
- camelcase "^2.0.0"
- map-obj "^1.0.0"
-
-camelcase@^1.0.2:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39"
-
-camelcase@^2.0.0:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f"
-
-caniuse-db@^1.0.30000153, caniuse-db@^1.0.30000214:
- version "1.0.30000604"
- resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000604.tgz#bc139270a777564d19c0aadcd832b491d093bda5"
-
-caseless@~0.10.0:
- version "0.10.0"
- resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.10.0.tgz#ed6b2719adcd1fd18f58dc081c0f1a5b43963909"
-
-caseless@~0.11.0:
- version "0.11.0"
- resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
-
-center-align@^0.1.1:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad"
- dependencies:
- align-text "^0.1.3"
- lazy-cache "^1.0.3"
-
-chalk@^1.0.0, chalk@^1.1.1:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
- dependencies:
- ansi-styles "^2.2.1"
- escape-string-regexp "^1.0.2"
- has-ansi "^2.0.0"
- strip-ansi "^3.0.0"
- supports-color "^2.0.0"
-
-chokidar@^1.4.1:
- version "1.6.1"
- resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2"
- dependencies:
- anymatch "^1.3.0"
- async-each "^1.0.0"
- glob-parent "^2.0.0"
- inherits "^2.0.1"
- is-binary-path "^1.0.0"
- is-glob "^2.0.0"
- path-is-absolute "^1.0.0"
- readdirp "^2.0.0"
- optionalDependencies:
- fsevents "^1.0.0"
-
-clean-css@~3.4.2:
- version "3.4.23"
- resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-3.4.23.tgz#604fbbca24c12feb59b02f00b84f1fb7ded6d001"
- dependencies:
- commander "2.8.x"
- source-map "0.4.x"
-
-cli@0.6.x:
- version "0.6.6"
- resolved "https://registry.yarnpkg.com/cli/-/cli-0.6.6.tgz#02ad44a380abf27adac5e6f0cdd7b043d74c53e3"
- dependencies:
- exit "0.1.2"
- glob "~ 3.2.1"
-
-cliui@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1"
- dependencies:
- center-align "^0.1.1"
- right-align "^0.1.1"
- wordwrap "0.0.2"
-
-clone-component@~0.2.2:
- version "0.2.2"
- resolved "https://registry.yarnpkg.com/clone-component/-/clone-component-0.2.2.tgz#82e56c2e92cd34e7c42b668630c620128fa926ba"
- dependencies:
- component-type "*"
-
-clone@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.2.tgz#260b7a99ebb1edfe247538175f783243cb19d149"
-
-code-point-at@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
-
-coffee-script@~1.3.3:
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/coffee-script/-/coffee-script-1.3.3.tgz#150d6b4cb522894369efed6a2101c20bc7f4a4f4"
-
-color-convert@^1.3.0:
- version "1.8.2"
- resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.8.2.tgz#be868184d7c8631766d54e7078e2672d7c7e3339"
- dependencies:
- color-name "^1.1.1"
-
-color-name@^1.0.0, color-name@^1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689"
-
-color-string@^0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/color-string/-/color-string-0.3.0.tgz#27d46fb67025c5c2fa25993bfbf579e47841b991"
- dependencies:
- color-name "^1.0.0"
-
-color@^0.11.0:
- version "0.11.4"
- resolved "https://registry.yarnpkg.com/color/-/color-0.11.4.tgz#6d7b5c74fb65e841cd48792ad1ed5e07b904d764"
- dependencies:
- clone "^1.0.2"
- color-convert "^1.3.0"
- color-string "^0.3.0"
-
-colors@^1.1.0:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
-
-colors@~0.6.2:
- version "0.6.2"
- resolved "https://registry.yarnpkg.com/colors/-/colors-0.6.2.tgz#2423fe6678ac0c5dae8852e5d0e5be08c997abcc"
-
-combine-lists@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/combine-lists/-/combine-lists-1.0.1.tgz#458c07e09e0d900fc28b70a3fec2dacd1d2cb7f6"
- dependencies:
- lodash "^4.5.0"
-
-combined-stream@^1.0.5, combined-stream@~1.0.1, combined-stream@~1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009"
- dependencies:
- delayed-stream "~1.0.0"
-
-combined-stream@~0.0.4:
- version "0.0.7"
- resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-0.0.7.tgz#0137e657baa5a7541c57ac37ac5fc07d73b4dc1f"
- dependencies:
- delayed-stream "0.0.5"
-
-commander@2.8.x:
- version "2.8.1"
- resolved "https://registry.yarnpkg.com/commander/-/commander-2.8.1.tgz#06be367febfda0c330aa1e2a072d3dc9762425d4"
- dependencies:
- graceful-readlink ">= 1.0.0"
-
-commander@^2.1.0, commander@^2.8.1, commander@^2.9.0:
- version "2.9.0"
- resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4"
- dependencies:
- graceful-readlink ">= 1.0.0"
-
-component-bind@1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/component-bind/-/component-bind-1.0.0.tgz#00c608ab7dcd93897c0009651b1d3a8e1e73bbd1"
-
-component-emitter@1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.1.2.tgz#296594f2753daa63996d2af08d15a95116c9aec3"
-
-component-emitter@1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.0.tgz#ccd113a86388d06482d03de3fc7df98526ba8efe"
-
-component-inherit@0.0.3:
- version "0.0.3"
- resolved "https://registry.yarnpkg.com/component-inherit/-/component-inherit-0.0.3.tgz#645fc4adf58b72b649d5cae65135619db26ff143"
-
-component-type@*:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/component-type/-/component-type-1.2.1.tgz#8a47901700238e4fc32269771230226f24b415a9"
-
-concat-map@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
-
-concat-stream@1.5.0, concat-stream@^1.4.1:
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.5.0.tgz#53f7d43c51c5e43f81c8fdd03321c631be68d611"
- dependencies:
- inherits "~2.0.1"
- readable-stream "~2.0.0"
- typedarray "~0.0.5"
-
-connect@^3.3.5:
- version "3.5.0"
- resolved "https://registry.yarnpkg.com/connect/-/connect-3.5.0.tgz#b357525a0b4c1f50599cd983e1d9efeea9677198"
- dependencies:
- debug "~2.2.0"
- finalhandler "0.5.0"
- parseurl "~1.3.1"
- utils-merge "1.0.0"
-
-console-browserify@1.1.x:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10"
- dependencies:
- date-now "^0.1.4"
-
-console-control-strings@^1.0.0, console-control-strings@~1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
-
-content-disposition@0.5.1:
- version "0.5.1"
- resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.1.tgz#87476c6a67c8daa87e32e87616df883ba7fb071b"
-
-content-type@~1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.2.tgz#b7d113aee7a8dd27bd21133c4dc2529df1721eed"
-
-convert-source-map@^0.3.3:
- version "0.3.5"
- resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-0.3.5.tgz#f1d802950af7dd2631a1febe0596550c86ab3190"
-
-cookie-signature@1.0.6:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
-
-cookie@0.3.1:
- version "0.3.1"
- resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb"
-
-core-js@^2.2.0:
- version "2.4.1"
- resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e"
-
-core-util-is@~1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
-
-cryptiles@2.x.x:
- version "2.0.5"
- resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
- dependencies:
- boom "2.x.x"
-
-css-color-function@^1.2.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/css-color-function/-/css-color-function-1.3.0.tgz#72c767baf978f01b8a8a94f42f17ba5d22a776fc"
- dependencies:
- balanced-match "0.1.0"
- color "^0.11.0"
- debug "~0.7.4"
- rgb "~0.1.0"
-
-css@^2.0.0:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/css/-/css-2.2.1.tgz#73a4c81de85db664d4ee674f7d47085e3b2d55dc"
- dependencies:
- inherits "^2.0.1"
- source-map "^0.1.38"
- source-map-resolve "^0.3.0"
- urix "^0.1.0"
-
-ctype@0.5.3:
- version "0.5.3"
- resolved "https://registry.yarnpkg.com/ctype/-/ctype-0.5.3.tgz#82c18c2461f74114ef16c135224ad0b9144ca12f"
-
-currently-unhandled@^0.4.1:
- version "0.4.1"
- resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"
- dependencies:
- array-find-index "^1.0.1"
-
-custom-event@~1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/custom-event/-/custom-event-1.0.1.tgz#5d02a46850adf1b4a317946a3928fccb5bfd0425"
-
-dashdash@^1.12.0:
- version "1.14.1"
- resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
- dependencies:
- assert-plus "^1.0.0"
-
-date-now@^0.1.4:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
-
-dateformat@1.0.2-1.2.3:
- version "1.0.2-1.2.3"
- resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-1.0.2-1.2.3.tgz#b0220c02de98617433b72851cf47de3df2cdbee9"
-
-dateformat@^1.0.6:
- version "1.0.12"
- resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-1.0.12.tgz#9f124b67594c937ff706932e4a642cca8dbbfee9"
- dependencies:
- get-stdin "^4.0.1"
- meow "^3.3.0"
-
-debug@0.7.4, debug@~0.7.4:
- version "0.7.4"
- resolved "https://registry.yarnpkg.com/debug/-/debug-0.7.4.tgz#06e1ea8082c2cb14e39806e22e2f6f757f92af39"
-
-debug@2, debug@2.2.0, debug@~2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da"
- dependencies:
- ms "0.7.1"
-
-decamelize@^1.0.0, decamelize@^1.1.2:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
-
-deep-extend@~0.4.0:
- version "0.4.1"
- resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253"
-
-deep-is@~0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
-
-delayed-stream@0.0.5:
- version "0.0.5"
- resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-0.0.5.tgz#d4b1f43a93e8296dfe02694f4680bc37a313c73f"
-
-delayed-stream@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
-
-delegates@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
-
-depd@~1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.0.tgz#e1bd82c6aab6ced965b97b88b17ed3e528ca18c3"
-
-destroy@~1.0.4:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"
-
-di@^0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/di/-/di-0.0.1.tgz#806649326ceaa7caa3306d75d985ea2748ba913c"
-
-dom-serialize@^2.2.0:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/dom-serialize/-/dom-serialize-2.2.1.tgz#562ae8999f44be5ea3076f5419dcd59eb43ac95b"
- dependencies:
- custom-event "~1.0.0"
- ent "~2.2.0"
- extend "^3.0.0"
- void-elements "^2.0.0"
-
-dom-serializer@0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.0.tgz#073c697546ce0780ce23be4a28e293e40bc30c82"
- dependencies:
- domelementtype "~1.1.1"
- entities "~1.1.1"
-
-domelementtype@1:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.0.tgz#b17aed82e8ab59e52dd9c19b1756e0fc187204c2"
-
-domelementtype@~1.1.1:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.1.3.tgz#bd28773e2642881aec51544924299c5cd822185b"
-
-domhandler@2.3:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.3.0.tgz#2de59a0822d5027fabff6f032c2b25a2a8abe738"
- dependencies:
- domelementtype "1"
-
-domutils@1.5:
- version "1.5.1"
- resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf"
- dependencies:
- dom-serializer "0"
- domelementtype "1"
-
-each-async@^1.0.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/each-async/-/each-async-1.1.1.tgz#dee5229bdf0ab6ba2012a395e1b869abf8813473"
- dependencies:
- onetime "^1.0.0"
- set-immediate-shim "^1.0.0"
-
-ecc-jsbn@~0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505"
- dependencies:
- jsbn "~0.1.0"
-
-ee-first@1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
-
-encodeurl@~1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.1.tgz#79e3d58655346909fe6f0f45a5de68103b294d20"
-
-engine.io-client@1.6.9:
- version "1.6.9"
- resolved "https://registry.yarnpkg.com/engine.io-client/-/engine.io-client-1.6.9.tgz#1d6ad48048a5083c95096943b29d36efdb212401"
- dependencies:
- component-emitter "1.1.2"
- component-inherit "0.0.3"
- debug "2.2.0"
- engine.io-parser "1.2.4"
- has-cors "1.1.0"
- indexof "0.0.1"
- parsejson "0.0.1"
- parseqs "0.0.2"
- parseuri "0.0.4"
- ws "1.0.1"
- xmlhttprequest-ssl "1.5.1"
- yeast "0.1.2"
-
-engine.io-parser@1.2.4:
- version "1.2.4"
- resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-1.2.4.tgz#e0897b0bf14e792d4cd2a5950553919c56948c42"
- dependencies:
- after "0.8.1"
- arraybuffer.slice "0.0.6"
- base64-arraybuffer "0.1.2"
- blob "0.0.4"
- has-binary "0.1.6"
- utf8 "2.1.0"
-
-engine.io@1.6.10:
- version "1.6.10"
- resolved "https://registry.yarnpkg.com/engine.io/-/engine.io-1.6.10.tgz#f87d84e1bd21d1a2ec7f8deef0c62054acdfb27a"
- dependencies:
- accepts "1.1.4"
- base64id "0.1.0"
- debug "2.2.0"
- engine.io-parser "1.2.4"
- ws "1.0.1"
-
-ent@~2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d"
-
-entities@1.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/entities/-/entities-1.0.0.tgz#b2987aa3821347fcde642b24fdfc9e4fb712bf26"
-
-entities@~1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0"
-
-error-ex@^1.2.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.0.tgz#e67b43f3e82c96ea3a584ffee0b9fc3325d802d9"
- dependencies:
- is-arrayish "^0.2.1"
-
-es6-promise@~2.3.0:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-2.3.0.tgz#96edb9f2fdb01995822b263dd8aadab6748181bc"
-
-es6-promise@~4.0.3:
- version "4.0.5"
- resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.0.5.tgz#7882f30adde5b240ccfa7f7d78c548330951ae42"
-
-escape-html@~1.0.3:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
-
-escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
-
-escodegen@1.8.x:
- version "1.8.1"
- resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018"
- dependencies:
- esprima "^2.7.1"
- estraverse "^1.9.1"
- esutils "^2.0.2"
- optionator "^0.8.1"
- optionalDependencies:
- source-map "~0.2.0"
-
-esprima@2.7.x, esprima@^2.6.0, esprima@^2.7.1:
- version "2.7.3"
- resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581"
-
-"esprima@~ 1.0.2":
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/esprima/-/esprima-1.0.4.tgz#9f557e08fc3b4d26ece9dd34f8fbf476b62585ad"
-
-estraverse@^1.9.1:
- version "1.9.3"
- resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44"
-
-esutils@^2.0.2:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
-
-etag@~1.7.0:
- version "1.7.0"
- resolved "https://registry.yarnpkg.com/etag/-/etag-1.7.0.tgz#03d30b5f67dd6e632d2945d30d6652731a34d5d8"
-
-eventemitter2@~0.4.13:
- version "0.4.14"
- resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-0.4.14.tgz#8f61b75cde012b2e9eb284d4545583b5643b61ab"
-
-eventemitter3@1.x.x:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508"
-
-exit@0.1.2, exit@0.1.x, exit@^0.1.2, exit@~0.1.1:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"
-
-expand-braces@^0.1.1:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/expand-braces/-/expand-braces-0.1.2.tgz#488b1d1d2451cb3d3a6b192cfc030f44c5855fea"
- dependencies:
- array-slice "^0.2.3"
- array-unique "^0.2.1"
- braces "^0.1.2"
-
-expand-brackets@^0.1.4:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"
- dependencies:
- is-posix-bracket "^0.1.0"
-
-expand-range@^0.1.0:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-0.1.1.tgz#4cb8eda0993ca56fa4f41fc42f3cbb4ccadff044"
- dependencies:
- is-number "^0.1.1"
- repeat-string "^0.2.2"
-
-expand-range@^1.8.1:
- version "1.8.2"
- resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337"
- dependencies:
- fill-range "^2.1.0"
-
-express@^4.13.3:
- version "4.14.0"
- resolved "https://registry.yarnpkg.com/express/-/express-4.14.0.tgz#c1ee3f42cdc891fb3dc650a8922d51ec847d0d66"
- dependencies:
- accepts "~1.3.3"
- array-flatten "1.1.1"
- content-disposition "0.5.1"
- content-type "~1.0.2"
- cookie "0.3.1"
- cookie-signature "1.0.6"
- debug "~2.2.0"
- depd "~1.1.0"
- encodeurl "~1.0.1"
- escape-html "~1.0.3"
- etag "~1.7.0"
- finalhandler "0.5.0"
- fresh "0.3.0"
- merge-descriptors "1.0.1"
- methods "~1.1.2"
- on-finished "~2.3.0"
- parseurl "~1.3.1"
- path-to-regexp "0.1.7"
- proxy-addr "~1.1.2"
- qs "6.2.0"
- range-parser "~1.2.0"
- send "0.14.1"
- serve-static "~1.11.1"
- type-is "~1.6.13"
- utils-merge "1.0.0"
- vary "~1.1.0"
-
-extend@3, extend@^3.0.0, extend@~3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4"
-
-extglob@^0.3.1:
- version "0.3.2"
- resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1"
- dependencies:
- is-extglob "^1.0.0"
-
-extract-zip@~1.5.0:
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.5.0.tgz#92ccf6d81ef70a9fa4c1747114ccef6d8688a6c4"
- dependencies:
- concat-stream "1.5.0"
- debug "0.7.4"
- mkdirp "0.5.0"
- yauzl "2.4.1"
-
-extsprintf@1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550"
-
-fast-levenshtein@~2.0.4:
- version "2.0.6"
- resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
-
-fd-slicer@~1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65"
- dependencies:
- pend "~1.2.0"
-
-figures@^1.0.1:
- version "1.7.0"
- resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e"
- dependencies:
- escape-string-regexp "^1.0.5"
- object-assign "^4.1.0"
-
-filename-regex@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775"
-
-fill-range@^2.1.0:
- version "2.2.3"
- resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723"
- dependencies:
- is-number "^2.1.0"
- isobject "^2.0.0"
- randomatic "^1.1.3"
- repeat-element "^1.1.2"
- repeat-string "^1.5.2"
-
-finalhandler@0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-0.5.0.tgz#e9508abece9b6dba871a6942a1d7911b91911ac7"
- dependencies:
- debug "~2.2.0"
- escape-html "~1.0.3"
- on-finished "~2.3.0"
- statuses "~1.3.0"
- unpipe "~1.0.0"
-
-find-file@~0.1.0:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/find-file/-/find-file-0.1.4.tgz#f806bb8132a8265232bf1c9ef95ba0746511d871"
-
-find-up@^1.0.0:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
- dependencies:
- path-exists "^2.0.0"
- pinkie-promise "^2.0.0"
-
-findup-sync@~0.1.0, findup-sync@~0.1.2:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.1.3.tgz#7f3e7a97b82392c653bf06589bd85190e93c3683"
- dependencies:
- glob "~3.2.9"
- lodash "~2.4.1"
-
-for-in@^0.1.5:
- version "0.1.6"
- resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8"
-
-for-own@^0.1.4:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.4.tgz#0149b41a39088c7515f51ebe1c1386d45f935072"
- dependencies:
- for-in "^0.1.5"
-
-forever-agent@~0.6.0, forever-agent@~0.6.1:
- version "0.6.1"
- resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
-
-form-data@~0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/form-data/-/form-data-0.2.0.tgz#26f8bc26da6440e299cbdcfb69035c4f77a6e466"
- dependencies:
- async "~0.9.0"
- combined-stream "~0.0.4"
- mime-types "~2.0.3"
-
-form-data@~1.0.0-rc3:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/form-data/-/form-data-1.0.1.tgz#ae315db9a4907fa065502304a66d7733475ee37c"
- dependencies:
- async "^2.0.1"
- combined-stream "^1.0.5"
- mime-types "^2.1.11"
-
-form-data@~2.1.1:
- version "2.1.2"
- resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.2.tgz#89c3534008b97eada4cbb157d58f6f5df025eae4"
- dependencies:
- asynckit "^0.4.0"
- combined-stream "^1.0.5"
- mime-types "^2.1.12"
-
-forwarded@~0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.0.tgz#19ef9874c4ae1c297bcf078fde63a09b66a84363"
-
-fresh@0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.3.0.tgz#651f838e22424e7566de161d8358caa199f83d4f"
-
-fs-extra@~0.26.4:
- version "0.26.7"
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.26.7.tgz#9ae1fdd94897798edab76d0918cf42d0c3184fa9"
- dependencies:
- graceful-fs "^4.1.2"
- jsonfile "^2.1.0"
- klaw "^1.0.0"
- path-is-absolute "^1.0.0"
- rimraf "^2.2.8"
-
-fs-extra@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
- dependencies:
- graceful-fs "^4.1.2"
- jsonfile "^2.1.0"
- klaw "^1.0.0"
-
-fs.realpath@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
-
-fsevents@^1.0.0:
- version "1.0.17"
- resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.0.17.tgz#8537f3f12272678765b4fd6528c0f1f66f8f4558"
- dependencies:
- nan "^2.3.0"
- node-pre-gyp "^0.6.29"
-
-fstream-ignore@~1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105"
- dependencies:
- fstream "^1.0.0"
- inherits "2"
- minimatch "^3.0.0"
-
-fstream@^1.0.0, fstream@^1.0.2, fstream@~1.0.10:
- version "1.0.10"
- resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.10.tgz#604e8a92fe26ffd9f6fae30399d4984e1ab22822"
- dependencies:
- graceful-fs "^4.1.2"
- inherits "~2.0.0"
- mkdirp ">=0.5 0"
- rimraf "2"
-
-gather-stream@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/gather-stream/-/gather-stream-1.0.0.tgz#b33994af457a8115700d410f317733cbe7a0904b"
-
-gauge@~2.7.1:
- version "2.7.2"
- resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.2.tgz#15cecc31b02d05345a5d6b0e171cdb3ad2307774"
- dependencies:
- aproba "^1.0.3"
- console-control-strings "^1.0.0"
- has-unicode "^2.0.0"
- object-assign "^4.1.0"
- signal-exit "^3.0.0"
- string-width "^1.0.1"
- strip-ansi "^3.0.1"
- supports-color "^0.2.0"
- wide-align "^1.1.0"
-
-generate-function@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74"
-
-generate-object-property@^1.1.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0"
- dependencies:
- is-property "^1.0.0"
-
-get-stdin@^4.0.1:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe"
-
-getobject@~0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/getobject/-/getobject-0.1.0.tgz#047a449789fa160d018f5486ed91320b6ec7885c"
-
-getpass@^0.1.1:
- version "0.1.6"
- resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6"
- dependencies:
- assert-plus "^1.0.0"
-
-glob-base@^0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
- dependencies:
- glob-parent "^2.0.0"
- is-glob "^2.0.0"
-
-glob-parent@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28"
- dependencies:
- is-glob "^2.0.0"
-
-glob@^3.2.11, "glob@~ 3.2.1", glob@~3.2, glob@~3.2.9:
- version "3.2.11"
- resolved "https://registry.yarnpkg.com/glob/-/glob-3.2.11.tgz#4a973f635b9190f715d10987d5c00fd2815ebe3d"
- dependencies:
- inherits "2"
- minimatch "0.3"
-
-glob@^5.0.15:
- version "5.0.15"
- resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1"
- dependencies:
- inflight "^1.0.4"
- inherits "2"
- minimatch "2 || 3"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
-glob@^7.0.3, glob@^7.0.5:
- version "7.1.1"
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
- dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.0.2"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
-glob@~3.1.21:
- version "3.1.21"
- resolved "https://registry.yarnpkg.com/glob/-/glob-3.1.21.tgz#d29e0a055dea5138f4d07ed40e8982e83c2066cd"
- dependencies:
- graceful-fs "~1.2.0"
- inherits "1"
- minimatch "~0.2.11"
-
-graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
- version "4.1.11"
- resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
-
-graceful-fs@~1.2.0:
- version "1.2.3"
- resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-1.2.3.tgz#15a4806a57547cb2d2dbf27f42e89a8c3451b364"
-
-"graceful-readlink@>= 1.0.0":
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
-
-grunt-cli@^0.1.13:
- version "0.1.13"
- resolved "https://registry.yarnpkg.com/grunt-cli/-/grunt-cli-0.1.13.tgz#e9ebc4047631f5012d922770c39378133cad10f4"
- dependencies:
- findup-sync "~0.1.0"
- nopt "~1.0.10"
- resolve "~0.3.1"
-
-grunt-contrib-cssmin@^0.14.0:
- version "0.14.0"
- resolved "https://registry.yarnpkg.com/grunt-contrib-cssmin/-/grunt-contrib-cssmin-0.14.0.tgz#88b0a92536969bb566281c5c61ec5062d833f3b7"
- dependencies:
- chalk "^1.0.0"
- clean-css "~3.4.2"
- maxmin "^1.1.0"
-
-grunt-contrib-jshint@^0.11.3:
- version "0.11.3"
- resolved "https://registry.yarnpkg.com/grunt-contrib-jshint/-/grunt-contrib-jshint-0.11.3.tgz#80368181dccd551186e5b8385c011cee24d640a0"
- dependencies:
- hooker "^0.2.3"
- jshint "~2.8.0"
-
-grunt-contrib-uglify@^0.9.2:
- version "0.9.2"
- resolved "https://registry.yarnpkg.com/grunt-contrib-uglify/-/grunt-contrib-uglify-0.9.2.tgz#1a61c6f212410e4abb4f7c89153717b101560260"
- dependencies:
- chalk "^1.0.0"
- lodash "^3.2.0"
- maxmin "^1.0.0"
- uglify-js "^2.4.24"
- uri-path "0.0.2"
-
-grunt-legacy-log-utils@~0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/grunt-legacy-log-utils/-/grunt-legacy-log-utils-0.1.1.tgz#c0706b9dd9064e116f36f23fe4e6b048672c0f7e"
- dependencies:
- colors "~0.6.2"
- lodash "~2.4.1"
- underscore.string "~2.3.3"
-
-grunt-legacy-log@~0.1.0:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/grunt-legacy-log/-/grunt-legacy-log-0.1.3.tgz#ec29426e803021af59029f87d2f9cd7335a05531"
- dependencies:
- colors "~0.6.2"
- grunt-legacy-log-utils "~0.1.1"
- hooker "~0.2.3"
- lodash "~2.4.1"
- underscore.string "~2.3.3"
-
-grunt-legacy-util@~0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/grunt-legacy-util/-/grunt-legacy-util-0.2.0.tgz#93324884dbf7e37a9ff7c026dff451d94a9e554b"
- dependencies:
- async "~0.1.22"
- exit "~0.1.1"
- getobject "~0.1.0"
- hooker "~0.2.3"
- lodash "~0.9.2"
- underscore.string "~2.2.1"
- which "~1.0.5"
-
-grunt-myth@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/grunt-myth/-/grunt-myth-1.1.0.tgz#f08b38b62d355aa2d9f555db8d4fea34af0ed87d"
- dependencies:
- each-async "^1.0.0"
- myth "^1.0.1"
-
-grunt@^0.4.5:
- version "0.4.5"
- resolved "https://registry.yarnpkg.com/grunt/-/grunt-0.4.5.tgz#56937cd5194324adff6d207631832a9d6ba4e7f0"
- dependencies:
- async "~0.1.22"
- coffee-script "~1.3.3"
- colors "~0.6.2"
- dateformat "1.0.2-1.2.3"
- eventemitter2 "~0.4.13"
- exit "~0.1.1"
- findup-sync "~0.1.2"
- getobject "~0.1.0"
- glob "~3.1.21"
- grunt-legacy-log "~0.1.0"
- grunt-legacy-util "~0.2.0"
- hooker "~0.2.3"
- iconv-lite "~0.2.11"
- js-yaml "~2.0.5"
- lodash "~0.9.2"
- minimatch "~0.2.12"
- nopt "~1.0.10"
- rimraf "~2.2.8"
- underscore.string "~2.2.1"
- which "~1.0.5"
-
-gzip-size@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-1.0.0.tgz#66cf8b101047227b95bace6ea1da0c177ed5c22f"
- dependencies:
- browserify-zlib "^0.1.4"
- concat-stream "^1.4.1"
-
-handlebars@^4.0.1:
- version "4.0.6"
- resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.6.tgz#2ce4484850537f9c97a8026d5399b935c4ed4ed7"
- dependencies:
- async "^1.4.0"
- optimist "^0.6.1"
- source-map "^0.4.4"
- optionalDependencies:
- uglify-js "^2.6"
-
-har-validator@^1.6.1:
- version "1.8.0"
- resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-1.8.0.tgz#d83842b0eb4c435960aeb108a067a3aa94c0eeb2"
- dependencies:
- bluebird "^2.9.30"
- chalk "^1.0.0"
- commander "^2.8.1"
- is-my-json-valid "^2.12.0"
-
-har-validator@~2.0.2, har-validator@~2.0.6:
- version "2.0.6"
- resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d"
- dependencies:
- chalk "^1.1.1"
- commander "^2.9.0"
- is-my-json-valid "^2.12.4"
- pinkie-promise "^2.0.0"
-
-has-ansi@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
- dependencies:
- ansi-regex "^2.0.0"
-
-has-binary@0.1.6:
- version "0.1.6"
- resolved "https://registry.yarnpkg.com/has-binary/-/has-binary-0.1.6.tgz#25326f39cfa4f616ad8787894e3af2cfbc7b6e10"
- dependencies:
- isarray "0.0.1"
-
-has-binary@0.1.7:
- version "0.1.7"
- resolved "https://registry.yarnpkg.com/has-binary/-/has-binary-0.1.7.tgz#68e61eb16210c9545a0a5cce06a873912fe1e68c"
- dependencies:
- isarray "0.0.1"
-
-has-cors@1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/has-cors/-/has-cors-1.1.0.tgz#5e474793f7ea9843d1bb99c23eef49ff126fff39"
-
-has-flag@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
-
-has-unicode@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
-
-hasha@^2.2.0, hasha@~2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/hasha/-/hasha-2.2.0.tgz#78d7cbfc1e6d66303fe79837365984517b2f6ee1"
- dependencies:
- is-stream "^1.0.1"
- pinkie-promise "^2.0.0"
-
-hawk@~2.3.0:
- version "2.3.1"
- resolved "https://registry.yarnpkg.com/hawk/-/hawk-2.3.1.tgz#1e731ce39447fa1d0f6d707f7bceebec0fd1ec1f"
- dependencies:
- boom "2.x.x"
- cryptiles "2.x.x"
- hoek "2.x.x"
- sntp "1.x.x"
-
-hawk@~3.1.0, hawk@~3.1.3:
- version "3.1.3"
- resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4"
- dependencies:
- boom "2.x.x"
- cryptiles "2.x.x"
- hoek "2.x.x"
- sntp "1.x.x"
-
-hoek@2.x.x:
- version "2.16.3"
- resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed"
-
-hooker@^0.2.3, hooker@~0.2.3:
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/hooker/-/hooker-0.2.3.tgz#b834f723cc4a242aa65963459df6d984c5d3d959"
-
-hosted-git-info@^2.1.4:
- version "2.1.5"
- resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.1.5.tgz#0ba81d90da2e25ab34a332e6ec77936e1598118b"
-
-html-entities@~1.1.1:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.1.3.tgz#7e3b47640f5ea69b097ae8bbbe7cb8ca941d85bd"
-
-htmlparser2@3.8.x:
- version "3.8.3"
- resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.8.3.tgz#996c28b191516a8be86501a7d79757e5c70c1068"
- dependencies:
- domelementtype "1"
- domhandler "2.3"
- domutils "1.5"
- entities "1.0"
- readable-stream "1.1"
-
-http-errors@~1.5.0:
- version "1.5.1"
- resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.5.1.tgz#788c0d2c1de2c81b9e6e8c01843b6b97eb920750"
- dependencies:
- inherits "2.0.3"
- setprototypeof "1.0.2"
- statuses ">= 1.3.1 < 2"
-
-http-proxy@^1.13.0:
- version "1.16.2"
- resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.16.2.tgz#06dff292952bf64dbe8471fa9df73066d4f37742"
- dependencies:
- eventemitter3 "1.x.x"
- requires-port "1.x.x"
-
-http-signature@~0.11.0:
- version "0.11.0"
- resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-0.11.0.tgz#1796cf67a001ad5cd6849dca0991485f09089fe6"
- dependencies:
- asn1 "0.1.11"
- assert-plus "^0.1.5"
- ctype "0.5.3"
-
-http-signature@~1.1.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf"
- dependencies:
- assert-plus "^0.2.0"
- jsprim "^1.2.2"
- sshpk "^1.7.0"
-
-https-proxy-agent@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz#35f7da6c48ce4ddbfa264891ac593ee5ff8671e6"
- dependencies:
- agent-base "2"
- debug "2"
- extend "3"
-
-iconv-lite@0.4.13:
- version "0.4.13"
- resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2"
-
-iconv-lite@~0.2.11:
- version "0.2.11"
- resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.2.11.tgz#1ce60a3a57864a292d1321ff4609ca4bb965adc8"
-
-indent-string@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80"
- dependencies:
- repeating "^2.0.0"
-
-indexof@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d"
-
-inflight@^1.0.4:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
- dependencies:
- once "^1.3.0"
- wrappy "1"
-
-inherits@1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/inherits/-/inherits-1.0.2.tgz#ca4309dadee6b54cc0b8d247e8d7c7a0975bdc9b"
-
-inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1:
- version "2.0.3"
- resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
-
-ini@~1.3.0:
- version "1.3.4"
- resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e"
-
-ipaddr.js@1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.1.1.tgz#c791d95f52b29c1247d5df80ada39b8a73647230"
-
-is-arrayish@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
-
-is-binary-path@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898"
- dependencies:
- binary-extensions "^1.0.0"
-
-is-browser@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/is-browser/-/is-browser-2.0.1.tgz#8bf0baf799a9c62fd9de5bcee4cf3397c3e7529a"
-
-is-buffer@^1.0.2:
- version "1.1.4"
- resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.4.tgz#cfc86ccd5dc5a52fa80489111c6920c457e2d98b"
-
-is-builtin-module@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
- dependencies:
- builtin-modules "^1.0.0"
-
-is-dotfile@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d"
-
-is-equal-shallow@^0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534"
- dependencies:
- is-primitive "^2.0.0"
-
-is-extendable@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
-
-is-extglob@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
-
-is-finite@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa"
- dependencies:
- number-is-nan "^1.0.0"
-
-is-fullwidth-code-point@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
- dependencies:
- number-is-nan "^1.0.0"
-
-is-glob@^2.0.0, is-glob@^2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863"
- dependencies:
- is-extglob "^1.0.0"
-
-is-my-json-valid@^2.12.0, is-my-json-valid@^2.12.4:
- version "2.15.0"
- resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz#936edda3ca3c211fd98f3b2d3e08da43f7b2915b"
- dependencies:
- generate-function "^2.0.0"
- generate-object-property "^1.1.0"
- jsonpointer "^4.0.0"
- xtend "^4.0.0"
-
-is-number@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/is-number/-/is-number-0.1.1.tgz#69a7af116963d47206ec9bd9b48a14216f1e3806"
-
-is-number@^2.0.2, is-number@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f"
- dependencies:
- kind-of "^3.0.2"
-
-is-posix-bracket@^0.1.0:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4"
-
-is-primitive@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
-
-is-property@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84"
-
-is-stream@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
-
-is-typedarray@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
-
-is-utf8@^0.2.0:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
-
-isarray@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
-
-isarray@1.0.0, isarray@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
-
-isbinaryfile@^3.0.0:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-3.0.2.tgz#4a3e974ec0cba9004d3fc6cde7209ea69368a621"
-
-isexe@^1.1.1:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/isexe/-/isexe-1.1.2.tgz#36f3e22e60750920f5e7241a476a8c6a42275ad0"
-
-isobject@^2.0.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
- dependencies:
- isarray "1.0.0"
-
-isstream@~0.1.1, isstream@~0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
-
-istanbul@^0.4.0:
- version "0.4.5"
- resolved "https://registry.yarnpkg.com/istanbul/-/istanbul-0.4.5.tgz#65c7d73d4c4da84d4f3ac310b918fb0b8033733b"
- dependencies:
- abbrev "1.0.x"
- async "1.x"
- escodegen "1.8.x"
- esprima "2.7.x"
- glob "^5.0.15"
- handlebars "^4.0.1"
- js-yaml "3.x"
- mkdirp "0.5.x"
- nopt "3.x"
- once "1.x"
- resolve "1.1.x"
- supports-color "^3.1.0"
- which "^1.1.1"
- wordwrap "^1.0.0"
-
-jasmine-core@^2.3.4:
- version "2.5.2"
- resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.5.2.tgz#6f61bd79061e27f43e6f9355e44b3c6cab6ff297"
-
-jasmine-core@~2.3.0:
- version "2.3.4"
- resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.3.4.tgz#ad772662b32d16c564ee25c863edae1d65a038f2"
-
-jasmine@2.3.2:
- version "2.3.2"
- resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-2.3.2.tgz#febf0e4b4afff63c2d09211f077da0b859f5f191"
- dependencies:
- exit "^0.1.2"
- glob "^3.2.11"
- jasmine-core "~2.3.0"
-
-jasminewd2@0.0.6:
- version "0.0.6"
- resolved "https://registry.yarnpkg.com/jasminewd2/-/jasminewd2-0.0.6.tgz#259157f06d2d149fbecb96302c80aa322a377222"
-
-jasminewd@1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/jasminewd/-/jasminewd-1.1.0.tgz#25751a6845ef2fb424c2fa39647987ae156fd433"
-
-jodid25519@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967"
- dependencies:
- jsbn "~0.1.0"
-
-js-base64@~2.1.8:
- version "2.1.9"
- resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce"
-
-js-yaml@3.x:
- version "3.7.0"
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80"
- dependencies:
- argparse "^1.0.7"
- esprima "^2.6.0"
-
-js-yaml@~2.0.5:
- version "2.0.5"
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-2.0.5.tgz#a25ae6509999e97df278c6719da11bd0687743a8"
- dependencies:
- argparse "~ 0.1.11"
- esprima "~ 1.0.2"
-
-jsbn@~0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.0.tgz#650987da0dd74f4ebf5a11377a2aa2d273e97dfd"
-
-jshint@~2.8.0:
- version "2.8.0"
- resolved "https://registry.yarnpkg.com/jshint/-/jshint-2.8.0.tgz#1d09a3bd913c4cadfa81bf18d582bd85bffe0d44"
- dependencies:
- cli "0.6.x"
- console-browserify "1.1.x"
- exit "0.1.x"
- htmlparser2 "3.8.x"
- lodash "3.7.x"
- minimatch "2.0.x"
- shelljs "0.3.x"
- strip-json-comments "1.0.x"
-
-json-schema@0.2.3:
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
-
-json-stringify-safe@~5.0.0, json-stringify-safe@~5.0.1:
- version "5.0.1"
- resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
-
-json3@3.2.6:
- version "3.2.6"
- resolved "https://registry.yarnpkg.com/json3/-/json3-3.2.6.tgz#f6efc93c06a04de9aec53053df2559bb19e2038b"
-
-json3@3.3.2:
- version "3.3.2"
- resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1"
-
-jsonfile@^2.1.0:
- version "2.4.0"
- resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8"
- optionalDependencies:
- graceful-fs "^4.1.6"
-
-jsonpointer@^4.0.0:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
-
-jsprim@^1.2.2:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.3.1.tgz#2a7256f70412a29ee3670aaca625994c4dcff252"
- dependencies:
- extsprintf "1.0.2"
- json-schema "0.2.3"
- verror "1.3.6"
-
-karma-coverage@^1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/karma-coverage/-/karma-coverage-1.1.1.tgz#5aff8b39cf6994dc22de4c84362c76001b637cf6"
- dependencies:
- dateformat "^1.0.6"
- istanbul "^0.4.0"
- lodash "^3.8.0"
- minimatch "^3.0.0"
- source-map "^0.5.1"
-
-karma-jasmine@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-1.1.0.tgz#22e4c06bf9a182e5294d1f705e3733811b810acf"
-
-karma-phantomjs-launcher@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/karma-phantomjs-launcher/-/karma-phantomjs-launcher-1.0.2.tgz#19e1041498fd75563ed86730a22c1fe579fa8fb1"
- dependencies:
- lodash "^4.0.1"
- phantomjs-prebuilt "^2.1.7"
-
-karma@^1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/karma/-/karma-1.3.0.tgz#b2b94e8f499fadd0069d54f9aef4a4d48ec5cc1f"
- dependencies:
- bluebird "^3.3.0"
- body-parser "^1.12.4"
- chokidar "^1.4.1"
- colors "^1.1.0"
- combine-lists "^1.0.0"
- connect "^3.3.5"
- core-js "^2.2.0"
- di "^0.0.1"
- dom-serialize "^2.2.0"
- expand-braces "^0.1.1"
- glob "^7.0.3"
- graceful-fs "^4.1.2"
- http-proxy "^1.13.0"
- isbinaryfile "^3.0.0"
- lodash "^3.8.0"
- log4js "^0.6.31"
- mime "^1.3.4"
- minimatch "^3.0.0"
- optimist "^0.6.1"
- qjobs "^1.1.4"
- range-parser "^1.2.0"
- rimraf "^2.3.3"
- socket.io "1.4.7"
- source-map "^0.5.3"
- tmp "0.0.28"
- useragent "^2.1.9"
-
-kew@~0.7.0:
- version "0.7.0"
- resolved "https://registry.yarnpkg.com/kew/-/kew-0.7.0.tgz#79d93d2d33363d6fdd2970b335d9141ad591d79b"
-
-kind-of@^3.0.2:
- version "3.1.0"
- resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47"
- dependencies:
- is-buffer "^1.0.2"
-
-klaw@^1.0.0:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"
- optionalDependencies:
- graceful-fs "^4.1.9"
-
-lazy-cache@^1.0.3:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
-
-levn@~0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee"
- dependencies:
- prelude-ls "~1.1.2"
- type-check "~0.3.2"
-
-load-json-file@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
- dependencies:
- graceful-fs "^4.1.2"
- parse-json "^2.2.0"
- pify "^2.0.0"
- pinkie-promise "^2.0.0"
- strip-bom "^2.0.0"
-
-lodash@3.7.x:
- version "3.7.0"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.7.0.tgz#3678bd8ab995057c07ade836ed2ef087da811d45"
-
-lodash@^3.2.0, lodash@^3.8.0:
- version "3.10.1"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
-
-lodash@^4.0.1, lodash@^4.14.0, lodash@^4.5.0:
- version "4.17.4"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
-
-lodash@~0.9.2:
- version "0.9.2"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-0.9.2.tgz#8f3499c5245d346d682e5b0d3b40767e09f1a92c"
-
-lodash@~2.4.1:
- version "2.4.2"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-2.4.2.tgz#fadd834b9683073da179b3eae6d9c0d15053f73e"
-
-log4js@^0.6.31:
- version "0.6.38"
- resolved "https://registry.yarnpkg.com/log4js/-/log4js-0.6.38.tgz#2c494116695d6fb25480943d3fc872e662a522fd"
- dependencies:
- readable-stream "~1.0.2"
- semver "~4.3.3"
-
-longest@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"
-
-loud-rejection@^1.0.0:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f"
- dependencies:
- currently-unhandled "^0.4.1"
- signal-exit "^3.0.0"
-
-lru-cache@2:
- version "2.7.3"
- resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952"
-
-lru-cache@2.2.x:
- version "2.2.4"
- resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.2.4.tgz#6c658619becf14031d0d0b594b16042ce4dc063d"
-
-map-obj@^1.0.0, map-obj@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"
-
-maxmin@^1.0.0, maxmin@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/maxmin/-/maxmin-1.1.0.tgz#71365e84a99dd8f8b3f7d5fde2f00d1e7f73be61"
- dependencies:
- chalk "^1.0.0"
- figures "^1.0.1"
- gzip-size "^1.0.0"
- pretty-bytes "^1.0.0"
-
-media-typer@0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
-
-meow@^3.1.0, meow@^3.3.0:
- version "3.7.0"
- resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb"
- dependencies:
- camelcase-keys "^2.0.0"
- decamelize "^1.1.2"
- loud-rejection "^1.0.0"
- map-obj "^1.0.1"
- minimist "^1.1.3"
- normalize-package-data "^2.3.4"
- object-assign "^4.0.1"
- read-pkg-up "^1.0.1"
- redent "^1.0.0"
- trim-newlines "^1.0.0"
-
-merge-descriptors@1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61"
-
-methods@~1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
-
-micromatch@^2.1.5:
- version "2.3.11"
- resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565"
- dependencies:
- arr-diff "^2.0.0"
- array-unique "^0.2.1"
- braces "^1.8.2"
- expand-brackets "^0.1.4"
- extglob "^0.3.1"
- filename-regex "^2.0.0"
- is-extglob "^1.0.0"
- is-glob "^2.0.1"
- kind-of "^3.0.2"
- normalize-path "^2.0.1"
- object.omit "^2.0.0"
- parse-glob "^3.0.4"
- regex-cache "^0.4.2"
-
-mime-db@~1.12.0:
- version "1.12.0"
- resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.12.0.tgz#3d0c63180f458eb10d325aaa37d7c58ae312e9d7"
-
-mime-db@~1.25.0:
- version "1.25.0"
- resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.25.0.tgz#c18dbd7c73a5dbf6f44a024dc0d165a1e7b1c392"
-
-mime-types@^2.1.11, mime-types@^2.1.12, mime-types@~2.1.11, mime-types@~2.1.13, mime-types@~2.1.7:
- version "2.1.13"
- resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.13.tgz#e07aaa9c6c6b9a7ca3012c69003ad25a39e92a88"
- dependencies:
- mime-db "~1.25.0"
-
-mime-types@~2.0.1, mime-types@~2.0.3, mime-types@~2.0.4:
- version "2.0.14"
- resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.0.14.tgz#310e159db23e077f8bb22b748dabfa4957140aa6"
- dependencies:
- mime-db "~1.12.0"
-
-mime@1.3.4, mime@^1.3.4:
- version "1.3.4"
- resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53"
-
-minijasminenode@1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/minijasminenode/-/minijasminenode-1.1.1.tgz#7f9637d66428a531c05f4f10b69a311b5dfb60e9"
-
-minimatch@0.3:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-0.3.0.tgz#275d8edaac4f1bb3326472089e7949c8394699dd"
- dependencies:
- lru-cache "2"
- sigmund "~1.0.0"
-
-"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774"
- dependencies:
- brace-expansion "^1.0.0"
-
-minimatch@2.0.x:
- version "2.0.10"
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-2.0.10.tgz#8d087c39c6b38c001b97fca7ce6d0e1e80afbac7"
- dependencies:
- brace-expansion "^1.0.0"
-
-minimatch@~0.2.11, minimatch@~0.2.12:
- version "0.2.14"
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-0.2.14.tgz#c74e780574f63c6f9a090e90efbe6ef53a6a756a"
- dependencies:
- lru-cache "2"
- sigmund "~1.0.0"
-
-minimist@0.0.8:
- version "0.0.8"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
-
-minimist@^1.1.3, minimist@^1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
-
-minimist@~0.0.1:
- version "0.0.10"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
-
-mkdirp@0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.0.tgz#1d73076a6df986cd9344e15e71fcc05a4c9abf12"
- dependencies:
- minimist "0.0.8"
-
-mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@~0.5.1:
- version "0.5.1"
- resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
- dependencies:
- minimist "0.0.8"
-
-ms@0.7.1:
- version "0.7.1"
- resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098"
-
-myth@^1.0.1, myth@^1.5.0:
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/myth/-/myth-1.5.0.tgz#6df392daa734d3df26cb7d15fbfe075353d59353"
- dependencies:
- autoprefixer-core "^5.2.1"
- clone-component "~0.2.2"
- colors "~0.6.2"
- commander "^2.1.0"
- is-browser "^2.0.0"
- node-watch "~0.3.4"
- pad-component "~0.0.1"
- postcss "^4.1.16"
- read-file-stdin "^0.2.0"
- rework "^1.0.0"
- rework-calc "^1.1.0"
- rework-color-function "^1.0.0"
- rework-custom-media "~0.1.1"
- rework-font-variant "1.0.1"
- rework-hex-alpha "^1.0.0"
- rework-import "^1.2.0"
- rework-rebeccapurple "^1.0.1"
- rework-vars "^3.0.0"
- to-slug-case "~0.1.2"
- to-space-case "~0.1.3"
- write-file-stdout "~0.0.2"
-
-nan@^2.0.5, nan@^2.3.0:
- version "2.5.0"
- resolved "https://registry.yarnpkg.com/nan/-/nan-2.5.0.tgz#aa8f1e34531d807e9e27755b234b4a6ec0c152a8"
-
-nan@~2.4.0:
- version "2.4.0"
- resolved "https://registry.yarnpkg.com/nan/-/nan-2.4.0.tgz#fb3c59d45fe4effe215f0b890f8adf6eb32d2232"
-
-negotiator@0.4.9:
- version "0.4.9"
- resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.4.9.tgz#92e46b6db53c7e421ed64a2bc94f08be7630df3f"
-
-negotiator@0.6.1:
- version "0.6.1"
- resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"
-
-node-pre-gyp@^0.6.29:
- version "0.6.32"
- resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.32.tgz#fc452b376e7319b3d255f5f34853ef6fd8fe1fd5"
- dependencies:
- mkdirp "~0.5.1"
- nopt "~3.0.6"
- npmlog "^4.0.1"
- rc "~1.1.6"
- request "^2.79.0"
- rimraf "~2.5.4"
- semver "~5.3.0"
- tar "~2.2.1"
- tar-pack "~3.3.0"
-
-node-uuid@~1.4.0, node-uuid@~1.4.7:
- version "1.4.7"
- resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.7.tgz#6da5a17668c4b3dd59623bda11cf7fa4c1f60a6f"
-
-node-watch@~0.3.4:
- version "0.3.5"
- resolved "https://registry.yarnpkg.com/node-watch/-/node-watch-0.3.5.tgz#a07f253a4f538de9d4ca522dd7f1996eeec0d97e"
-
-nopt@3.x, nopt@~3.0.6:
- version "3.0.6"
- resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
- dependencies:
- abbrev "1"
-
-nopt@~1.0.10:
- version "1.0.10"
- resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee"
- dependencies:
- abbrev "1"
-
-normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
- version "2.3.5"
- resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.5.tgz#8d924f142960e1777e7ffe170543631cc7cb02df"
- dependencies:
- hosted-git-info "^2.1.4"
- is-builtin-module "^1.0.0"
- semver "2 || 3 || 4 || 5"
- validate-npm-package-license "^3.0.1"
-
-normalize-path@^2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a"
-
-npmlog@^4.0.1:
- version "4.0.2"
- resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.0.2.tgz#d03950e0e78ce1527ba26d2a7592e9348ac3e75f"
- dependencies:
- are-we-there-yet "~1.1.2"
- console-control-strings "~1.1.0"
- gauge "~2.7.1"
- set-blocking "~2.0.0"
-
-num2fraction@^1.1.0:
- version "1.2.2"
- resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede"
-
-number-is-nan@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
-
-oauth-sign@~0.8.0, oauth-sign@~0.8.1:
- version "0.8.2"
- resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43"
-
-object-assign@^4.0.1, object-assign@^4.1.0:
- version "4.1.0"
- resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.0.tgz#7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0"
-
-object-component@0.0.3:
- version "0.0.3"
- resolved "https://registry.yarnpkg.com/object-component/-/object-component-0.0.3.tgz#f0c69aa50efc95b866c186f400a33769cb2f1291"
-
-object.omit@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"
- dependencies:
- for-own "^0.1.4"
- is-extendable "^0.1.1"
-
-on-finished@~2.3.0:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"
- dependencies:
- ee-first "1.1.1"
-
-once@1.x, once@^1.3.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
- dependencies:
- wrappy "1"
-
-once@~1.3.3:
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20"
- dependencies:
- wrappy "1"
-
-onetime@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789"
-
-optimist@^0.6.1, optimist@~0.6.0:
- version "0.6.1"
- resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
- dependencies:
- minimist "~0.0.1"
- wordwrap "~0.0.2"
-
-optionator@^0.8.1:
- version "0.8.2"
- resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64"
- dependencies:
- deep-is "~0.1.3"
- fast-levenshtein "~2.0.4"
- levn "~0.3.0"
- prelude-ls "~1.1.2"
- type-check "~0.3.2"
- wordwrap "~1.0.0"
-
-options@>=0.0.5:
- version "0.0.6"
- resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f"
-
-os-tmpdir@~1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
-
-pad-component@~0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/pad-component/-/pad-component-0.0.1.tgz#ad1f22ce1bf0fdc0d6ddd908af17f351a404b8ac"
-
-pako@~0.2.0:
- version "0.2.9"
- resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75"
-
-parse-glob@^3.0.4:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c"
- dependencies:
- glob-base "^0.3.0"
- is-dotfile "^1.0.0"
- is-extglob "^1.0.0"
- is-glob "^2.0.0"
-
-parse-import@~0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/parse-import/-/parse-import-0.1.3.tgz#fe7d4cc1938dadc1da38dc2a03dba5604203fdac"
-
-parse-json@^2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9"
- dependencies:
- error-ex "^1.2.0"
-
-parsejson@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/parsejson/-/parsejson-0.0.1.tgz#9b10c6c0d825ab589e685153826de0a3ba278bcc"
- dependencies:
- better-assert "~1.0.0"
-
-parseqs@0.0.2:
- version "0.0.2"
- resolved "https://registry.yarnpkg.com/parseqs/-/parseqs-0.0.2.tgz#9dfe70b2cddac388bde4f35b1f240fa58adbe6c7"
- dependencies:
- better-assert "~1.0.0"
-
-parseuri@0.0.4:
- version "0.0.4"
- resolved "https://registry.yarnpkg.com/parseuri/-/parseuri-0.0.4.tgz#806582a39887e1ea18dd5e2fe0e01902268e9350"
- dependencies:
- better-assert "~1.0.0"
-
-parseurl@~1.3.1:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.1.tgz#c8ab8c9223ba34888aa64a297b28853bec18da56"
-
-path-exists@^2.0.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b"
- dependencies:
- pinkie-promise "^2.0.0"
-
-path-is-absolute@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
-
-path-to-regexp@0.1.7:
- version "0.1.7"
- resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
-
-path-type@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441"
- dependencies:
- graceful-fs "^4.1.2"
- pify "^2.0.0"
- pinkie-promise "^2.0.0"
-
-pend@~1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
-
-phantomjs-prebuilt@^2.1.7:
- version "2.1.14"
- resolved "https://registry.yarnpkg.com/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.14.tgz#d53d311fcfb7d1d08ddb24014558f1188c516da0"
- dependencies:
- es6-promise "~4.0.3"
- extract-zip "~1.5.0"
- fs-extra "~1.0.0"
- hasha "~2.2.0"
- kew "~0.7.0"
- progress "~1.1.8"
- request "~2.79.0"
- request-progress "~2.0.1"
- which "~1.2.10"
-
-phantomjs@^2.1.7:
- version "2.1.7+deprecated"
- resolved "https://registry.yarnpkg.com/phantomjs/-/phantomjs-2.1.7.tgz#c6910f67935c37285b6114329fc2f27d5f3e3134"
- dependencies:
- extract-zip "~1.5.0"
- fs-extra "~0.26.4"
- hasha "^2.2.0"
- kew "~0.7.0"
- progress "~1.1.8"
- request "~2.67.0"
- request-progress "~2.0.1"
- which "~1.2.2"
-
-pify@^2.0.0:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
-
-pinkie-promise@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
- dependencies:
- pinkie "^2.0.0"
-
-pinkie@^2.0.0:
- version "2.0.4"
- resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
-
-postcss@^4.1.16, postcss@~4.1.12:
- version "4.1.16"
- resolved "https://registry.yarnpkg.com/postcss/-/postcss-4.1.16.tgz#4c449b4c8af9df3caf6d37f8e1e575d0361758dc"
- dependencies:
- es6-promise "~2.3.0"
- js-base64 "~2.1.8"
- source-map "~0.4.2"
-
-prelude-ls@~1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
-
-preserve@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
-
-pretty-bytes@^1.0.0:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-1.0.4.tgz#0a22e8210609ad35542f8c8d5d2159aff0751c84"
- dependencies:
- get-stdin "^4.0.1"
- meow "^3.1.0"
-
-process-nextick-args@~1.0.6:
- version "1.0.7"
- resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
-
-progress@~1.1.8:
- version "1.1.8"
- resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
-
-protractor@^2.2.0:
- version "2.5.1"
- resolved "https://registry.yarnpkg.com/protractor/-/protractor-2.5.1.tgz#03d6c93cd7c268f4250177d55a2fec8a198372cd"
- dependencies:
- accessibility-developer-tools "~2.6.0"
- adm-zip "0.4.4"
- glob "~3.2"
- html-entities "~1.1.1"
- jasmine "2.3.2"
- jasminewd "1.1.0"
- jasminewd2 "0.0.6"
- lodash "~2.4.1"
- minijasminenode "1.1.1"
- optimist "~0.6.0"
- q "1.0.0"
- request "~2.57.0"
- saucelabs "~1.0.1"
- selenium-webdriver "2.47.0"
- source-map-support "~0.2.6"
-
-proxy-addr@~1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.2.tgz#b4cc5f22610d9535824c123aef9d3cf73c40ba37"
- dependencies:
- forwarded "~0.1.0"
- ipaddr.js "1.1.1"
-
-punycode@^1.4.1:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
-
-q@1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/q/-/q-1.0.0.tgz#dc1f92c4587be54f7853b29dc28e6d243a88498d"
-
-qjobs@^1.1.4:
- version "1.1.5"
- resolved "https://registry.yarnpkg.com/qjobs/-/qjobs-1.1.5.tgz#659de9f2cf8dcc27a1481276f205377272382e73"
-
-qs@6.2.0:
- version "6.2.0"
- resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.0.tgz#3b7848c03c2dece69a9522b0fae8c4126d745f3b"
-
-qs@~3.1.0:
- version "3.1.0"
- resolved "https://registry.yarnpkg.com/qs/-/qs-3.1.0.tgz#d0e9ae745233a12dc43fb4f3055bba446261153c"
-
-qs@~5.2.0:
- version "5.2.1"
- resolved "https://registry.yarnpkg.com/qs/-/qs-5.2.1.tgz#801fee030e0b9450d6385adc48a4cc55b44aedfc"
-
-qs@~6.3.0:
- version "6.3.0"
- resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.0.tgz#f403b264f23bc01228c74131b407f18d5ea5d442"
-
-randomatic@^1.1.3:
- version "1.1.6"
- resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb"
- dependencies:
- is-number "^2.0.2"
- kind-of "^3.0.2"
-
-range-parser@^1.2.0, range-parser@~1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e"
-
-raw-body@~2.1.7:
- version "2.1.7"
- resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.1.7.tgz#adfeace2e4fb3098058014d08c072dcc59758774"
- dependencies:
- bytes "2.4.0"
- iconv-lite "0.4.13"
- unpipe "1.0.0"
-
-rc@~1.1.6:
- version "1.1.6"
- resolved "https://registry.yarnpkg.com/rc/-/rc-1.1.6.tgz#43651b76b6ae53b5c802f1151fa3fc3b059969c9"
- dependencies:
- deep-extend "~0.4.0"
- ini "~1.3.0"
- minimist "^1.2.0"
- strip-json-comments "~1.0.4"
-
-read-file-stdin@^0.2.0:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/read-file-stdin/-/read-file-stdin-0.2.1.tgz#25eccff3a153b6809afacb23ee15387db9e0ee61"
- dependencies:
- gather-stream "^1.0.0"
-
-read-pkg-up@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02"
- dependencies:
- find-up "^1.0.0"
- read-pkg "^1.0.0"
-
-read-pkg@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28"
- dependencies:
- load-json-file "^1.0.0"
- normalize-package-data "^2.3.2"
- path-type "^1.0.0"
-
-readable-stream@1.1:
- version "1.1.13"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.13.tgz#f6eef764f514c89e2b9e23146a75ba106756d23e"
- dependencies:
- core-util-is "~1.0.0"
- inherits "~2.0.1"
- isarray "0.0.1"
- string_decoder "~0.10.x"
-
-"readable-stream@^2.0.0 || ^1.1.13", readable-stream@~2.1.4:
- version "2.1.5"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0"
- dependencies:
- buffer-shims "^1.0.0"
- core-util-is "~1.0.0"
- inherits "~2.0.1"
- isarray "~1.0.0"
- process-nextick-args "~1.0.6"
- string_decoder "~0.10.x"
- util-deprecate "~1.0.1"
-
-readable-stream@^2.0.2, readable-stream@~2.0.0, readable-stream@~2.0.5:
- version "2.0.6"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.0.6.tgz#8f90341e68a53ccc928788dacfcd11b36eb9b78e"
- dependencies:
- core-util-is "~1.0.0"
- inherits "~2.0.1"
- isarray "~1.0.0"
- process-nextick-args "~1.0.6"
- string_decoder "~0.10.x"
- util-deprecate "~1.0.1"
-
-readable-stream@~1.0.2, readable-stream@~1.0.26:
- version "1.0.34"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c"
- dependencies:
- core-util-is "~1.0.0"
- inherits "~2.0.1"
- isarray "0.0.1"
- string_decoder "~0.10.x"
-
-readdirp@^2.0.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78"
- dependencies:
- graceful-fs "^4.1.2"
- minimatch "^3.0.2"
- readable-stream "^2.0.2"
- set-immediate-shim "^1.0.1"
-
-redent@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde"
- dependencies:
- indent-string "^2.1.0"
- strip-indent "^1.0.1"
-
-regex-cache@^0.4.2:
- version "0.4.3"
- resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145"
- dependencies:
- is-equal-shallow "^0.1.3"
- is-primitive "^2.0.0"
-
-repeat-element@^1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a"
-
-repeat-string@^0.2.2:
- version "0.2.2"
- resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-0.2.2.tgz#c7a8d3236068362059a7e4651fc6884e8b1fb4ae"
-
-repeat-string@^1.5.2:
- version "1.6.1"
- resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
-
-repeating@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda"
- dependencies:
- is-finite "^1.0.0"
-
-request-progress@~2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-2.0.1.tgz#5d36bb57961c673aa5b788dbc8141fdf23b44e08"
- dependencies:
- throttleit "^1.0.0"
-
-request@^2.79.0, request@~2.79.0:
- version "2.79.0"
- resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
- dependencies:
- aws-sign2 "~0.6.0"
- aws4 "^1.2.1"
- caseless "~0.11.0"
- combined-stream "~1.0.5"
- extend "~3.0.0"
- forever-agent "~0.6.1"
- form-data "~2.1.1"
- har-validator "~2.0.6"
- hawk "~3.1.3"
- http-signature "~1.1.0"
- is-typedarray "~1.0.0"
- isstream "~0.1.2"
- json-stringify-safe "~5.0.1"
- mime-types "~2.1.7"
- oauth-sign "~0.8.1"
- qs "~6.3.0"
- stringstream "~0.0.4"
- tough-cookie "~2.3.0"
- tunnel-agent "~0.4.1"
- uuid "^3.0.0"
-
-request@~2.57.0:
- version "2.57.0"
- resolved "https://registry.yarnpkg.com/request/-/request-2.57.0.tgz#d445105a42d009b9d724289633b449a6d723d989"
- dependencies:
- aws-sign2 "~0.5.0"
- bl "~0.9.0"
- caseless "~0.10.0"
- combined-stream "~1.0.1"
- forever-agent "~0.6.0"
- form-data "~0.2.0"
- har-validator "^1.6.1"
- hawk "~2.3.0"
- http-signature "~0.11.0"
- isstream "~0.1.1"
- json-stringify-safe "~5.0.0"
- mime-types "~2.0.1"
- node-uuid "~1.4.0"
- oauth-sign "~0.8.0"
- qs "~3.1.0"
- stringstream "~0.0.4"
- tough-cookie ">=0.12.0"
- tunnel-agent "~0.4.0"
-
-request@~2.67.0:
- version "2.67.0"
- resolved "https://registry.yarnpkg.com/request/-/request-2.67.0.tgz#8af74780e2bf11ea0ae9aa965c11f11afd272742"
- dependencies:
- aws-sign2 "~0.6.0"
- bl "~1.0.0"
- caseless "~0.11.0"
- combined-stream "~1.0.5"
- extend "~3.0.0"
- forever-agent "~0.6.1"
- form-data "~1.0.0-rc3"
- har-validator "~2.0.2"
- hawk "~3.1.0"
- http-signature "~1.1.0"
- is-typedarray "~1.0.0"
- isstream "~0.1.2"
- json-stringify-safe "~5.0.1"
- mime-types "~2.1.7"
- node-uuid "~1.4.7"
- oauth-sign "~0.8.0"
- qs "~5.2.0"
- stringstream "~0.0.4"
- tough-cookie "~2.2.0"
- tunnel-agent "~0.4.1"
-
-requires-port@1.x.x:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
-
-resolve-url@~0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
-
-resolve@1.1.x:
- version "1.1.7"
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
-
-resolve@~0.3.1:
- version "0.3.1"
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-0.3.1.tgz#34c63447c664c70598d1c9b126fc43b2a24310a4"
-
-rework-calc@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/rework-calc/-/rework-calc-1.1.0.tgz#39a148ff3fc7cc782062dbfd67ec47d1fe24718c"
- dependencies:
- balanced-match "~0.1.0"
- rework-visit "^1.0.0"
-
-rework-color-function@^1.0.0:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/rework-color-function/-/rework-color-function-1.2.1.tgz#6b06b7ef2550df2ab6ed72420f0228ca3c62321f"
- dependencies:
- balanced-match "^0.0.0"
- css-color-function "^1.2.0"
-
-rework-custom-media@~0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/rework-custom-media/-/rework-custom-media-0.1.1.tgz#b6b2b3d70bd960b819d323b075da2b6f18c27f39"
-
-rework-font-variant@1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/rework-font-variant/-/rework-font-variant-1.0.1.tgz#6ba4dca265532cbb4d5a52cb8f81775b47c55bcd"
-
-rework-hex-alpha@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/rework-hex-alpha/-/rework-hex-alpha-1.0.0.tgz#e32fef0f076908f6235a102cec9bd15adbbbf4a4"
- dependencies:
- rgb "0.0.1"
-
-rework-import@^1.2.0:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/rework-import/-/rework-import-1.2.1.tgz#c2af6068d214c9e5d929779dfdba0b431a334fef"
- dependencies:
- css "^2.0.0"
- find-file "~0.1.0"
- parse-import "~0.1.3"
-
-rework-rebeccapurple@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/rework-rebeccapurple/-/rework-rebeccapurple-1.0.1.tgz#52a8c8e5f7d301af9375369d7838c6854147d2f7"
-
-rework-vars@^3.0.0:
- version "3.1.1"
- resolved "https://registry.yarnpkg.com/rework-vars/-/rework-vars-3.1.1.tgz#eabd9efc7af43a95f21101867382d42cae8ae021"
- dependencies:
- balanced-match "~0.1.0"
- rework-visit "1.0.0"
-
-rework-visit@1.0.0, rework-visit@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/rework-visit/-/rework-visit-1.0.0.tgz#9945b2803f219e2f7aca00adb8bc9f640f842c9a"
-
-rework@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/rework/-/rework-1.0.1.tgz#30806a841342b54510aa4110850cd48534144aa7"
- dependencies:
- convert-source-map "^0.3.3"
- css "^2.0.0"
-
-rgb@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/rgb/-/rgb-0.0.1.tgz#19dfcc8d1a1443633d54972338c1d5815b556c09"
-
-rgb@~0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/rgb/-/rgb-0.1.0.tgz#be27b291e8feffeac1bd99729721bfa40fc037b5"
-
-right-align@^0.1.1:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef"
- dependencies:
- align-text "^0.1.1"
-
-rimraf@2, rimraf@^2.2.8, rimraf@^2.3.3, rimraf@~2.5.1, rimraf@~2.5.4:
- version "2.5.4"
- resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.5.4.tgz#96800093cbf1a0c86bd95b4625467535c29dfa04"
- dependencies:
- glob "^7.0.5"
-
-rimraf@~2.2.8:
- version "2.2.8"
- resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582"
-
-saucelabs@~1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/saucelabs/-/saucelabs-1.0.1.tgz#b50a100d9c5a4140748b35335a6e5d70017dadf9"
- dependencies:
- https-proxy-agent "^1.0.0"
-
-sax@0.6.x:
- version "0.6.1"
- resolved "https://registry.yarnpkg.com/sax/-/sax-0.6.1.tgz#563b19c7c1de892e09bfc4f2fc30e3c27f0952b9"
-
-selenium-webdriver@2.47.0:
- version "2.47.0"
- resolved "https://registry.yarnpkg.com/selenium-webdriver/-/selenium-webdriver-2.47.0.tgz#e29b52d2daa0f648c40f602f4d2a8e8bee351ea5"
- dependencies:
- adm-zip "0.4.4"
- rimraf "^2.2.8"
- tmp "0.0.24"
- ws "^0.8.0"
- xml2js "0.4.4"
-
-"semver@2 || 3 || 4 || 5", semver@~5.0.1:
- version "5.0.3"
- resolved "https://registry.yarnpkg.com/semver/-/semver-5.0.3.tgz#77466de589cd5d3c95f138aa78bc569a3cb5d27a"
-
-semver@~4.3.3:
- version "4.3.6"
- resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.6.tgz#300bc6e0e86374f7ba61068b5b1ecd57fc6532da"
-
-semver@~5.3.0:
- version "5.3.0"
- resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
-
-send@0.14.1:
- version "0.14.1"
- resolved "https://registry.yarnpkg.com/send/-/send-0.14.1.tgz#a954984325392f51532a7760760e459598c89f7a"
- dependencies:
- debug "~2.2.0"
- depd "~1.1.0"
- destroy "~1.0.4"
- encodeurl "~1.0.1"
- escape-html "~1.0.3"
- etag "~1.7.0"
- fresh "0.3.0"
- http-errors "~1.5.0"
- mime "1.3.4"
- ms "0.7.1"
- on-finished "~2.3.0"
- range-parser "~1.2.0"
- statuses "~1.3.0"
-
-serve-static@~1.11.1:
- version "1.11.1"
- resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.11.1.tgz#d6cce7693505f733c759de57befc1af76c0f0805"
- dependencies:
- encodeurl "~1.0.1"
- escape-html "~1.0.3"
- parseurl "~1.3.1"
- send "0.14.1"
-
-set-blocking@~2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
-
-set-immediate-shim@^1.0.0, set-immediate-shim@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61"
-
-setprototypeof@1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.2.tgz#81a552141ec104b88e89ce383103ad5c66564d08"
-
-shelljs@0.3.x:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.3.0.tgz#3596e6307a781544f591f37da618360f31db57b1"
-
-sigmund@~1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590"
-
-signal-exit@^3.0.0:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
-
-sntp@1.x.x:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198"
- dependencies:
- hoek "2.x.x"
-
-socket.io-adapter@0.4.0:
- version "0.4.0"
- resolved "https://registry.yarnpkg.com/socket.io-adapter/-/socket.io-adapter-0.4.0.tgz#fb9f82ab1aa65290bf72c3657955b930a991a24f"
- dependencies:
- debug "2.2.0"
- socket.io-parser "2.2.2"
-
-socket.io-client@1.4.6:
- version "1.4.6"
- resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-1.4.6.tgz#49b0ba537efd15b8297c84016e642e1c7c752c3d"
- dependencies:
- backo2 "1.0.2"
- component-bind "1.0.0"
- component-emitter "1.2.0"
- debug "2.2.0"
- engine.io-client "1.6.9"
- has-binary "0.1.7"
- indexof "0.0.1"
- object-component "0.0.3"
- parseuri "0.0.4"
- socket.io-parser "2.2.6"
- to-array "0.1.4"
-
-socket.io-parser@2.2.2:
- version "2.2.2"
- resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-2.2.2.tgz#3d7af6b64497e956b7d9fe775f999716027f9417"
- dependencies:
- benchmark "1.0.0"
- component-emitter "1.1.2"
- debug "0.7.4"
- isarray "0.0.1"
- json3 "3.2.6"
-
-socket.io-parser@2.2.6:
- version "2.2.6"
- resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-2.2.6.tgz#38dfd61df50dcf8ab1d9e2091322bf902ba28b99"
- dependencies:
- benchmark "1.0.0"
- component-emitter "1.1.2"
- debug "2.2.0"
- isarray "0.0.1"
- json3 "3.3.2"
-
-socket.io@1.4.7:
- version "1.4.7"
- resolved "https://registry.yarnpkg.com/socket.io/-/socket.io-1.4.7.tgz#92b7f7cb88c5797d4daee279fe8075dbe6d3fa1c"
- dependencies:
- debug "2.2.0"
- engine.io "1.6.10"
- has-binary "0.1.7"
- socket.io-adapter "0.4.0"
- socket.io-client "1.4.6"
- socket.io-parser "2.2.6"
-
-source-map-resolve@^0.3.0:
- version "0.3.1"
- resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.3.1.tgz#610f6122a445b8dd51535a2a71b783dfc1248761"
- dependencies:
- atob "~1.1.0"
- resolve-url "~0.2.1"
- source-map-url "~0.3.0"
- urix "~0.1.0"
-
-source-map-support@~0.2.6:
- version "0.2.10"
- resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.2.10.tgz#ea5a3900a1c1cb25096a0ae8cc5c2b4b10ded3dc"
- dependencies:
- source-map "0.1.32"
-
-source-map-url@~0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.3.0.tgz#7ecaf13b57bcd09da8a40c5d269db33799d4aaf9"
-
-source-map@0.1.32:
- version "0.1.32"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.32.tgz#c8b6c167797ba4740a8ea33252162ff08591b266"
- dependencies:
- amdefine ">=0.0.4"
-
-source-map@0.4.x, source-map@^0.4.4, source-map@~0.4.2:
- version "0.4.4"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b"
- dependencies:
- amdefine ">=0.0.4"
-
-source-map@^0.1.38:
- version "0.1.43"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346"
- dependencies:
- amdefine ">=0.0.4"
-
-source-map@^0.5.1, source-map@^0.5.3, source-map@~0.5.1:
- version "0.5.6"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"
-
-source-map@~0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d"
- dependencies:
- amdefine ">=0.0.4"
-
-spdx-correct@~1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40"
- dependencies:
- spdx-license-ids "^1.0.2"
-
-spdx-expression-parse@~1.0.0:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c"
-
-spdx-license-ids@^1.0.2:
- version "1.2.2"
- resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57"
-
-sprintf-js@~1.0.2:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
-
-sshpk@^1.7.0:
- version "1.10.1"
- resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.10.1.tgz#30e1a5d329244974a1af61511339d595af6638b0"
- dependencies:
- asn1 "~0.2.3"
- assert-plus "^1.0.0"
- dashdash "^1.12.0"
- getpass "^0.1.1"
- optionalDependencies:
- bcrypt-pbkdf "^1.0.0"
- ecc-jsbn "~0.1.1"
- jodid25519 "^1.0.0"
- jsbn "~0.1.0"
- tweetnacl "~0.14.0"
-
-"statuses@>= 1.3.1 < 2", statuses@~1.3.0:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e"
-
-string-width@^1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
- dependencies:
- code-point-at "^1.0.0"
- is-fullwidth-code-point "^1.0.0"
- strip-ansi "^3.0.0"
-
-string_decoder@~0.10.x:
- version "0.10.31"
- resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
-
-stringstream@~0.0.4:
- version "0.0.5"
- resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
-
-strip-ansi@^3.0.0, strip-ansi@^3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
- dependencies:
- ansi-regex "^2.0.0"
-
-strip-bom@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
- dependencies:
- is-utf8 "^0.2.0"
-
-strip-indent@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2"
- dependencies:
- get-stdin "^4.0.1"
-
-strip-json-comments@1.0.x, strip-json-comments@~1.0.4:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91"
-
-supports-color@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a"
-
-supports-color@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
-
-supports-color@^3.1.0:
- version "3.1.2"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5"
- dependencies:
- has-flag "^1.0.0"
-
-tar-pack@~3.3.0:
- version "3.3.0"
- resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.3.0.tgz#30931816418f55afc4d21775afdd6720cee45dae"
- dependencies:
- debug "~2.2.0"
- fstream "~1.0.10"
- fstream-ignore "~1.0.5"
- once "~1.3.3"
- readable-stream "~2.1.4"
- rimraf "~2.5.1"
- tar "~2.2.1"
- uid-number "~0.0.6"
-
-tar@~2.2.1:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1"
- dependencies:
- block-stream "*"
- fstream "^1.0.2"
- inherits "2"
-
-throttleit@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c"
-
-tmp@0.0.24:
- version "0.0.24"
- resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.24.tgz#d6a5e198d14a9835cc6f2d7c3d9e302428c8cf12"
-
-tmp@0.0.28:
- version "0.0.28"
- resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.28.tgz#172735b7f614ea7af39664fa84cf0de4e515d120"
- dependencies:
- os-tmpdir "~1.0.1"
-
-to-array@0.1.4:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/to-array/-/to-array-0.1.4.tgz#17e6c11f73dd4f3d74cda7a4ff3238e9ad9bf890"
-
-to-no-case@0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/to-no-case/-/to-no-case-0.1.1.tgz#cf33c70e0f28168d95e4159abf150e8c542ef9fe"
-
-to-no-case@0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/to-no-case/-/to-no-case-0.1.2.tgz#a89e7daf5d7775c3ffe36be64603e160d2a1b709"
-
-to-slug-case@~0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/to-slug-case/-/to-slug-case-0.1.2.tgz#5f4e9e96856cc31fe3bd953f673c5972a942bf58"
- dependencies:
- to-space-case "0.1.2"
-
-to-space-case@0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/to-space-case/-/to-space-case-0.1.2.tgz#9a66be3ebe53f2779f687f0262effd1fc5b6d15e"
- dependencies:
- to-no-case "0.1.1"
-
-to-space-case@~0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/to-space-case/-/to-space-case-0.1.3.tgz#b87845f0d3383f6b681515089c6bc1a11c88c2c3"
- dependencies:
- to-no-case "0.1.2"
-
-tough-cookie@>=0.12.0, tough-cookie@~2.3.0:
- version "2.3.2"
- resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a"
- dependencies:
- punycode "^1.4.1"
-
-tough-cookie@~2.2.0:
- version "2.2.2"
- resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.2.2.tgz#c83a1830f4e5ef0b93ef2a3488e724f8de016ac7"
-
-trim-newlines@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"
-
-tunnel-agent@~0.4.0, tunnel-agent@~0.4.1:
- version "0.4.3"
- resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb"
-
-tweetnacl@^0.14.3, tweetnacl@~0.14.0:
- version "0.14.5"
- resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
-
-type-check@~0.3.2:
- version "0.3.2"
- resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"
- dependencies:
- prelude-ls "~1.1.2"
-
-type-is@~1.6.13:
- version "1.6.14"
- resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.14.tgz#e219639c17ded1ca0789092dd54a03826b817cb2"
- dependencies:
- media-typer "0.3.0"
- mime-types "~2.1.13"
-
-typedarray@~0.0.5:
- version "0.0.6"
- resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
-
-uglify-js@^2.4.24, uglify-js@^2.6:
- version "2.7.5"
- resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.7.5.tgz#4612c0c7baaee2ba7c487de4904ae122079f2ca8"
- dependencies:
- async "~0.2.6"
- source-map "~0.5.1"
- uglify-to-browserify "~1.0.0"
- yargs "~3.10.0"
-
-uglify-to-browserify@~1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"
-
-uid-number@~0.0.6:
- version "0.0.6"
- resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81"
-
-ultron@1.0.x:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa"
-
-underscore.string@~2.2.1:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-2.2.1.tgz#d7c0fa2af5d5a1a67f4253daee98132e733f0f19"
-
-underscore.string@~2.3.3:
- version "2.3.3"
- resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-2.3.3.tgz#71c08bf6b428b1133f37e78fa3a21c82f7329b0d"
-
-underscore.string@~2.4.0:
- version "2.4.0"
- resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-2.4.0.tgz#8cdd8fbac4e2d2ea1e7e2e8097c42f442280f85b"
-
-underscore@~1.7.0:
- version "1.7.0"
- resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.7.0.tgz#6bbaf0877500d36be34ecaa584e0db9fef035209"
-
-unpipe@1.0.0, unpipe@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
-
-uri-path@0.0.2:
- version "0.0.2"
- resolved "https://registry.yarnpkg.com/uri-path/-/uri-path-0.0.2.tgz#803eb01f2feb17927dcce0f6187e72b75f53f554"
-
-urix@^0.1.0, urix@~0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
-
-useragent@^2.1.9:
- version "2.1.10"
- resolved "https://registry.yarnpkg.com/useragent/-/useragent-2.1.10.tgz#2456c5c2b722b47f3d8321ed257b490a3d9bb2af"
- dependencies:
- lru-cache "2.2.x"
-
-utf-8-validate@1.2.x:
- version "1.2.2"
- resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-1.2.2.tgz#8bb871a4741e085c70487ca7acdbd7d6d36029eb"
- dependencies:
- bindings "~1.2.1"
- nan "~2.4.0"
-
-utf8@2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/utf8/-/utf8-2.1.0.tgz#0cfec5c8052d44a23e3aaa908104e8075f95dfd5"
-
-util-deprecate@~1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
-
-utils-merge@1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8"
-
-uuid@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1"
-
-validate-npm-package-license@^3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc"
- dependencies:
- spdx-correct "~1.0.0"
- spdx-expression-parse "~1.0.0"
-
-vary@~1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.0.tgz#e1e5affbbd16ae768dd2674394b9ad3022653140"
-
-verror@1.3.6:
- version "1.3.6"
- resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c"
- dependencies:
- extsprintf "1.0.2"
-
-void-elements@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec"
-
-which@^1.1.1, which@~1.2.10, which@~1.2.2:
- version "1.2.12"
- resolved "https://registry.yarnpkg.com/which/-/which-1.2.12.tgz#de67b5e450269f194909ef23ece4ebe416fa1192"
- dependencies:
- isexe "^1.1.1"
-
-which@~1.0.5:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/which/-/which-1.0.9.tgz#460c1da0f810103d0321a9b633af9e575e64486f"
-
-wide-align@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad"
- dependencies:
- string-width "^1.0.1"
-
-window-size@0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"
-
-wordwrap@0.0.2:
- version "0.0.2"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
-
-wordwrap@^1.0.0, wordwrap@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
-
-wordwrap@~0.0.2:
- version "0.0.3"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
-
-wrappy@1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
-
-write-file-stdout@~0.0.2:
- version "0.0.2"
- resolved "https://registry.yarnpkg.com/write-file-stdout/-/write-file-stdout-0.0.2.tgz#c252d7c7c5b1b402897630e3453c7bfe690d9ca1"
-
-ws@1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/ws/-/ws-1.0.1.tgz#7d0b2a2e58cddd819039c29c9de65045e1b310e9"
- dependencies:
- options ">=0.0.5"
- ultron "1.0.x"
-
-ws@^0.8.0:
- version "0.8.1"
- resolved "https://registry.yarnpkg.com/ws/-/ws-0.8.1.tgz#6b65273b99193c5f067a4cf5809598f777e3b759"
- dependencies:
- options ">=0.0.5"
- ultron "1.0.x"
- optionalDependencies:
- bufferutil "1.2.x"
- utf-8-validate "1.2.x"
-
-xml2js@0.4.4:
- version "0.4.4"
- resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.4.tgz#3111010003008ae19240eba17497b57c729c555d"
- dependencies:
- sax "0.6.x"
- xmlbuilder ">=1.0.0"
-
-xmlbuilder@>=1.0.0:
- version "8.2.2"
- resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-8.2.2.tgz#69248673410b4ba42e1a6136551d2922335aa773"
-
-xmlhttprequest-ssl@1.5.1:
- version "1.5.1"
- resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.1.tgz#3b7741fea4a86675976e908d296d4445961faa67"
-
-xtend@^4.0.0:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
-
-yargs@~3.10.0:
- version "3.10.0"
- resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"
- dependencies:
- camelcase "^1.0.2"
- cliui "^2.1.0"
- decamelize "^1.0.0"
- window-size "0.1.0"
-
-yauzl@2.4.1:
- version "2.4.1"
- resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.4.1.tgz#9528f442dab1b2284e58b4379bb194e22e0c4005"
- dependencies:
- fd-slicer "~1.0.1"
-
-yeast@0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/.bower.json b/ecomp-portal-FE/client/bower_components/ui-select/.bower.json
deleted file mode 100644
index a124749c..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/.bower.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "name": "angular-ui-select",
- "homepage": "https://github.com/angular-ui/ui-select",
- "authors": [
- "AngularUI"
- ],
- "description": "AngularJS ui-select",
- "main": [
- "dist/select.js",
- "dist/select.css"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "src",
- "test",
- "gulpfile.js",
- "karma.conf.js",
- "examples"
- ],
- "dependencies": {
- "angular": ">=1.2.18"
- },
- "devDependencies": {
- "jquery": "~1.11",
- "angular-sanitize": ">=1.2.18",
- "angular-mocks": ">=1.2.18"
- },
- "version": "0.17.1",
- "_release": "0.17.1",
- "_resolution": {
- "type": "version",
- "tag": "v0.17.1",
- "commit": "66a2a5e8cae3421cf2c25cc56492e5674b7eeda3"
- },
- "_source": "https://github.com/angular-ui/ui-select.git",
- "_target": "~0.17.1",
- "_originalSource": "angular-ui-select"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/CHANGELOG.md b/ecomp-portal-FE/client/bower_components/ui-select/CHANGELOG.md
deleted file mode 100644
index dcb85b8b..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/CHANGELOG.md
+++ /dev/null
@@ -1,180 +0,0 @@
-<a name="0.17.1"></a>
-## [0.17.1](https://github.com/angular-ui/ui-select/compare/v0.17.0...v0.17.1) (2016-05-16)
-
-
-### Bug Fixes
-
-* **parserResult:** Ignore undefined parserResult when using custom tpl ([cee24e5](https://github.com/angular-ui/ui-select/commit/cee24e5)), closes [#1597](https://github.com/angular-ui/ui-select/issues/1597)
-* **select2:** hide dropdown if there are no items to show (same as #1588 for bootstrap) ([4c561ac](https://github.com/angular-ui/ui-select/commit/4c561ac))
-
-
-
-<a name="0.16.1"></a>
-## [0.16.1](https://github.com/angular-ui/ui-select/compare/v0.16.1...v0.17.0) (2016-05-11)
-
-
-### Bug Fixes
-
-* **a11y:** prevent list from being focusable ([4e9ab7e](https://github.com/angular-ui/ui-select/commit/4e9ab7e)), closes [#898](https://github.com/angular-ui/ui-select/issues/898)
-* **autocomplete:** change to type="search" ([48cf1ba](https://github.com/angular-ui/ui-select/commit/48cf1ba)), closes [#991](https://github.com/angular-ui/ui-select/issues/991)
-* **bootstrap:** hide clear button if disabled ([fe0c0c1](https://github.com/angular-ui/ui-select/commit/fe0c0c1)), closes [#1388](https://github.com/angular-ui/ui-select/issues/1388) [#980](https://github.com/angular-ui/ui-select/issues/980)
-* **bootstrap:** hide dropdown if there are no items to show ([7c8b3a0](https://github.com/angular-ui/ui-select/commit/7c8b3a0)), closes [#1588](https://github.com/angular-ui/ui-select/issues/1588)
-* **build:** fix sourcemap logic ([6d4849f](https://github.com/angular-ui/ui-select/commit/6d4849f))
-* **demo-tagging:** error in Object Tags for input "a" ([7963684](https://github.com/angular-ui/ui-select/commit/7963684))
-* **sortable:** remove classes properly ([4b1ed47](https://github.com/angular-ui/ui-select/commit/4b1ed47)), closes [#902](https://github.com/angular-ui/ui-select/issues/902)
-* **tagging:** do not remove selected items when invalid ([331f819](https://github.com/angular-ui/ui-select/commit/331f819)), closes [#1359](https://github.com/angular-ui/ui-select/issues/1359)
-* **tagging groupBy:** fix group-by to work with tagging ([80be85b](https://github.com/angular-ui/ui-select/commit/80be85b))
-* **tagging multiple:** hide tagging item if null returned ([2f14045](https://github.com/angular-ui/ui-select/commit/2f14045))
-* **uiSelectCtrl:** correcting input focus ([6444d6b](https://github.com/angular-ui/ui-select/commit/6444d6b)), closes [#1253](https://github.com/angular-ui/ui-select/issues/1253)
-* **uiSelectSingleDirective:** strictly compare matching value ([a574cd4](https://github.com/angular-ui/ui-select/commit/a574cd4)), closes [#1328](https://github.com/angular-ui/ui-select/issues/1328)
-* **uiSelectSort:** update model on sort completion ([9a40b6f](https://github.com/angular-ui/ui-select/commit/9a40b6f)), closes [#974](https://github.com/angular-ui/ui-select/issues/974) [#1036](https://github.com/angular-ui/ui-select/issues/1036)
-* ensure highlighted before selecting on tab ([06bbd31](https://github.com/angular-ui/ui-select/commit/06bbd31)), closes [#1030](https://github.com/angular-ui/ui-select/issues/1030)
-* properly gc on destruction ([95692e7](https://github.com/angular-ui/ui-select/commit/95692e7))
-* show input when search is disabled ([83132b0](https://github.com/angular-ui/ui-select/commit/83132b0)), closes [#595](https://github.com/angular-ui/ui-select/issues/595) [#453](https://github.com/angular-ui/ui-select/issues/453)
-* show select element when search is disabled ([f37bafd](https://github.com/angular-ui/ui-select/commit/f37bafd)), closes [#861](https://github.com/angular-ui/ui-select/issues/861)
-
-### Features
-
-* **perf:** debounce resize callback ([115ebf4](https://github.com/angular-ui/ui-select/commit/115ebf4))
-* **perf:** optimize width resizing ([d78ba5f](https://github.com/angular-ui/ui-select/commit/d78ba5f))
-
-### Performance Improvements
-
-* **tagging multiple:** transform tagging item only once when filtering ([2b4a9ea](https://github.com/angular-ui/ui-select/commit/2b4a9ea))
-* **uiSelectCtrl:** moving activate events out of $timeout ([926f462](https://github.com/angular-ui/ui-select/commit/926f462))
-* change test in ctrl.isActive ([d6c14d4](https://github.com/angular-ui/ui-select/commit/d6c14d4))
-
-
-
-<a name="0.16.1"></a>
-# [0.16.1](https://github.com/angular-ui/ui-select/compare/v0.16.0...v0.16.1) (2016-03-23)
-
-### Bug Fixes
-
-* **$window:** change input size on window resize ([ce24981](https://github.com/angular-ui/ui-select/commit/ce24981)), closes [#522](https://github.com/angular-ui/ui-select/issues/522)
-* **uiSelectMultipleDirective:** add $isEmpty handler ([fccc29a](https://github.com/angular-ui/ui-select/commit/fccc29a)), closes [#850](https://github.com/angular-ui/ui-select/issues/850)
-* **uiSelectMultipleDirective:** refresh choices upon selection change ([03293ff](https://github.com/angular-ui/ui-select/commit/03293ff)), closes [#1243](https://github.com/angular-ui/ui-select/issues/1243)
-
-<a name="0.16.0"></a>
-## [0.15.0](https://github.com/angular-ui/ui-select/compare/v0.15.0...v0.16.0)
-
-<a name="0.15.0"></a>
-## [0.15.0](https://github.com/angular-ui/ui-select/compare/v0.14.9...v0.15.0) (2016-03-15)
-
-### Bug Fixes
-
-* corrects out of scope variable ([d5e30fb](https://github.com/angular-ui/ui-select/commit/d5e30fb))
-
-### Features
-
-* provide a way to skip the focusser ([302e80f](https://github.com/angular-ui/ui-select/commit/302e80f)), closes [#869](https://github.com/angular-ui/ui-select/issues/869) [#401](https://github.com/angular-ui/ui-select/issues/401) [#818](https://github.com/angular-ui/ui-select/issues/818) [#603](https://github.com/angular-ui/ui-select/issues/603) [#432](https://github.com/angular-ui/ui-select/issues/432)
-
-<a name="0.14.10"></a>
-## [0.14.10](https://github.com/angular-ui/ui-select/compare/v0.14.9...v0.14.10) (2016-03-13)
-
-### Features
-
-* provide a way to skip the focusser ([302e80f](https://github.com/angular-ui/ui-select/commit/302e80f)), closes [#869](https://github.com/angular-ui/ui-select/issues/869) [#401](https://github.com/angular-ui/ui-select/issues/401) [#818](https://github.com/angular-ui/ui-select/issues/818) [#603](https://github.com/angular-ui/ui-select/issues/603) [#432](https://github.com/angular-ui/ui-select/issues/432)
-
-<a name="0.14.9"></a>
-## [0.14.9](https://github.com/angular-ui/ui-select/compare/v0.14.9...v0.14.9) (2016-03-06)
-
-<a name="0.14.8"></a>
-## [0.14.8](https://github.com/angular-ui/ui-select/compare/v0.14.7...v0.14.8) (2016-02-18)
-
-<a name="0.14.7"></a>
-## [0.14.7](https://github.com/angular-ui/ui-select/compare/v0.14.6...v0.14.7) (2016-02-18)
-
-### Bug Fixes
-
-* **IE:** selects not working on IE8 ([ee65677](https://github.com/angular-ui/ui-select/commit/ee65677)), closes [#158](https://github.com/angular-ui/ui-select/issues/158)
-
-<a name="0.14.6"></a>
-## [0.14.6](https://github.com/angular-ui/ui-select/compare/v0.14.5...v0.14.6) (2016-02-18)
-
-### Bug Fixes
-
-* **paste:** add paste support ([1ad6f60](https://github.com/angular-ui/ui-select/commit/1ad6f60)), closes [#910](https://github.com/angular-ui/ui-select/issues/910) [#704](https://github.com/angular-ui/ui-select/issues/704) [#789](https://github.com/angular-ui/ui-select/issues/789) [#848](https://github.com/angular-ui/ui-select/issues/848) [#429](https://github.com/angular-ui/ui-select/issues/429)
-* **uiSelectSort:** fix dependency not found error ([a5a6554](https://github.com/angular-ui/ui-select/commit/a5a6554))
-
-<a name="0.14.5"></a>
-## [0.14.5](https://github.com/angular-ui/ui-select/compare/v0.14.4...v0.14.5) (2016-02-18)
-
-### Bug Fixes
-
-* **uiSelectMultipleDirective:** fix track by error ([ced1cc0](https://github.com/angular-ui/ui-select/commit/ced1cc0)), closes [#1343](https://github.com/angular-ui/ui-select/issues/1343)
-
-<a name="0.14.4"></a>
-## [0.14.4](https://github.com/angular-ui/ui-select/compare/v0.14.3...v0.14.4) (2016-02-18)
-
-### Bug Fixes
-
-* Allow setting a ngClass on <ui-select> element ([6a99b08](https://github.com/angular-ui/ui-select/commit/6a99b08)), closes [#277](https://github.com/angular-ui/ui-select/issues/277)
-
-<a name="0.14.3"></a>
-## [0.14.3](https://github.com/angular-ui/ui-select/compare/v0.14.2...v0.14.3) (2016-02-18)
-
-<a name="0.14.2"></a>
-## [0.14.2](https://github.com/angular-ui/ui-select/compare/v0.14.1...v0.14.2) (2016-02-18)
-
-### Bug Fixes
-
-* make compatible with Angular 1.5 and non-cached templates ([0e85670](https://github.com/angular-ui/ui-select/commit/0e85670)), closes [#1422](https://github.com/angular-ui/ui-select/issues/1422) [#1356](https://github.com/angular-ui/ui-select/issues/1356) [#1325](https://github.com/angular-ui/ui-select/issues/1325) [#1239](https://github.com/angular-ui/ui-select/issues/1239)
-* **commonjs:** remove CSS require ([81b0f03](https://github.com/angular-ui/ui-select/commit/81b0f03))
-* **track by:** fix "track by" ([6c52e41](https://github.com/angular-ui/ui-select/commit/6c52e41)), closes [#806](https://github.com/angular-ui/ui-select/issues/806) [#665](https://github.com/angular-ui/ui-select/issues/665)
-
-<a name="0.14.1"></a>
-## [0.14.1](https://github.com/angular-ui/ui-select/compare/v0.14.0...v0.14.1) (2016-01-27)
-
-<a name="0.14.0"></a>
-# [0.14.0](https://github.com/angular-ui/ui-select/compare/v0.13.2...v0.14.0) (2016-01-25)
-
-### Features
-
-* **ngAnimate:** add support for ngAnimate ([8da8a6d](https://github.com/angular-ui/ui-select/commit/8da8a6d))
-
-<a name="0.13.3"></a>
-## 0.13.3 (2016-01-25)
-
-### Added
-
-- Add support for commonjs and npm
-
-<a name="0.13.2"></a>
-## [0.13.2](https://github.com/angular-ui/ui-select/compare/v0.13.1...v0.13.2) (2016-01-25)
-
-### Bug Fixes
-
-* **CSP:** avoid inline execution of javascript in choices template. ([fb88ec8](https://github.com/angular-ui/ui-select/commit/fb88ec8))
-
-<a name="0.13.1"></a>
-## [v0.13.1](https://github.com/angular-ui/ui-select/compare/v0.13.0...v0.13.1) (2015-09-29)
-
-### Fixed
-
-- Remove hardcoded source name when using (key,value) syntax [#1217](https://github.com/angular-ui/ui-select/pull/1217)
-- Modify regex to accept a full 'collection expression' when not using (key,value) syntax [#1216](https://github.com/angular-ui/ui-select/pull/1216)
-- Avoid to recalculate position when set 'down' [#1214](https://github.com/angular-ui/ui-select/issues/1214#issuecomment-144271352)
-
-<a name="0.13.0"></a>
-
-## [v0.13.0](https://github.com/angular-ui/ui-select/compare/v0.12.1...v0.13.0) (2015-09-29)
-
-### Added
-
-- Allow to configure default dropdown position [#1213](https://github.com/angular-ui/ui-select/pull/1213)
-- Can use object as source with (key,value) syntax [#1208](https://github.com/angular-ui/ui-select/pull/1208)
-- CHANGELOG.md file created
-
-### Changed
-
-- Do not run bower after install automatically [#982](https://github.com/angular-ui/ui-select/pull/982)
-- Avoid setting activeItem on mouseenter to improve performance [#1211](https://github.com/angular-ui/ui-select/pull/1211)
-
-### Fixed
-
-- Position dropdown UP or DOWN correctly depending on the available space [#1212](https://github.com/angular-ui/ui-select/pull/1212)
-- Scroll to selected item [#976](https://github.com/angular-ui/ui-select/issues/976)
-- Change `autocomplete='off'` to `autocomplete='false'` [#1210](https://github.com/angular-ui/ui-select/pull/1210)
-- Fix to work correctly with debugInfoEnabled(false) [#1131](https://github.com/angular-ui/ui-select/pull/1131)
-- Limit the maximum number of selections allowed in multiple mode [#1110](https://github.com/angular-ui/ui-select/pull/1110)
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/CONTRIBUTING.md b/ecomp-portal-FE/client/bower_components/ui-select/CONTRIBUTING.md
deleted file mode 100644
index 13998a9c..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/CONTRIBUTING.md
+++ /dev/null
@@ -1,161 +0,0 @@
-We are excited to have you working on the project and cordially request that you follow the Guidelines:
-
- - [Got a question or problem?](#question)
- - [You think you've found a bug?](#bug)
- - [Code Style Guidelines](#rules)
- - [Commit Message Guidelines](#commit)
-
-## <a name="question"></a> Got a question or problem?
-
- Firstly, please go over our FAQ: https://github.com/angular-ui/ui-select/wiki/FAQs
-
- Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](http://stackoverflow.com/questions/tagged/angular-ui-select) where maintainers are looking at questions tagged with `angular-ui-select`.
-
- StackOverflow is a much better place to ask questions since:
- * there are hundreds of people willing to help on StackOverflow
- * questions and answers stay available for public viewing so your question / answer might help someone else
- * SO voting system assures that the best answers are prominently visible.
-
- To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow.
-
-## <a name="bug"></a> You think you've found a bug?
-
- Oh, we are ashamed and want to fix it asap! But before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a _minimal_ reproduce scenario using http://plnkr.co/. Having a live reproduce scenario gives us wealth of important information without going back & forth to you with additional questions like:
- * version of AngularJS used
- * version of this library that you are using
- * 3rd-party libraries used, if any
- * and most importantly - a use-case that fails
-
- A minimal reproduce scenario using http://plnkr.co/ allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
-
- We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.
-
- The best part is that you don't need to create plunks from scratch - you can use one from our [demo page](http://plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview).
-
- Unfortunately we are not able to investigate / fix bugs without a minimal reproduce scenario using http://plnkr.co/, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced.
-
-## <a name="rules"></a> Coding Rules
-To ensure consistency throughout the source code, keep these rules in mind as you are working:
-
-* All features or bug fixes **must pass all tests** (run `gulp` to jshint, build and test).
-* All public API methods **must be documented** with ngdoc, an extended version of jsdoc (we added
- support for markdown and templating via @ngdoc tag). To see how we document our APIs, please check
- out the existing ngdocs and see [this wiki page][ngDocs].
-
-## <a name="commit"></a> Git Commit Guidelines
-
-We have very precise rules over how our git commit messages can be formatted for maintenance of the changelog and semvar versioning. This leads to **more
-readable messages** that are easy to follow when looking through the **project history**. But also,
-we use the git commit messages to **generate the change log**.
-
-## Development
-
-### Prepare your environment
-* Install [Node.js](http://nodejs.org/) and NPM (should come with)
-* Install global dev dependencies: `npm install -g bower gulp`
-* Install local dev dependencies: `npm install && bower install` in repository directory
-
-### Development Commands
-
-* `gulp` to jshint, build and test
-* `gulp build` to jshint and build
-* `gulp test` for one-time test with karma (also build and jshint)
-* `gulp watch` to watch src files to jshint, build and test when changed
-
-## Recommended workflow
-
-1. Make changes
-2. Run `gulp` or `gulp test` to run Karma tests and ensure they pass.
-3. Reset all `dist/*` files
-4. Commit changes using the commit message conventions below.
-5. Push
-6. Create PR
-
-### Commit Message Format
-Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
-format that includes a **type**, a **scope** and a **subject**:
-
-```
-<type>(<scope>): <subject>
-<BLANK LINE>
-<body>
-<BLANK LINE>
-<footer>
-```
-
-The **header** is mandatory and the **scope** of the header is optional.
-
-Any line of the commit message cannot be longer 100 characters! This allows the message to be easier
-to read on GitHub as well as in various git tools.
-
-### Revert
-If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
-
-### Type
-Must be one of the following:
-
-* **feat**: A new feature
-* **fix**: A bug fix
-* **docs**: Documentation only changes
-* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
- semi-colons, etc)
-* **refactor**: A code change that neither fixes a bug nor adds a feature
-* **perf**: A code change that improves performance
-* **test**: Adding missing tests
-* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
- generation
-
-### Scope
-The scope could be anything specifying place of the commit change. For example `$location`,
-`$browser`, `$compile`, `$rootScope`, `ngHref`, `ngClick`, `ngView`, etc...
-
-### Subject
-The subject contains succinct description of the change:
-
-* use the imperative, present tense: "change" not "changed" nor "changes"
-* don't capitalize first letter
-* no dot (.) at the end
-
-### Body
-Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
-The body should include the motivation for the change and contrast this with previous behavior.
-
-### Footer
-The footer should contain any information about **Breaking Changes** and is also the place to
-reference github issues that this commit **Closes**.
-
-**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
-
-#### Examples
-
-Appears under "Features" header, pencil subheader:
-
-```
-feat(pencil): add 'graphiteWidth' option
-```
-
-Appears under "Bug Fixes" header, graphite subheader, with a link to issue #GSNP-28:
-
-```
-fix(graphite): stop graphite breaking when width < 0.1
-
-Closes #123
-```
-
-Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
-
-```
-perf(pencil): remove graphiteWidth option
-
-BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reason.
-```
-
-The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
-
-```
-revert: feat(pencil): add 'graphiteWidth' option
-
-This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
-```
-
-A detailed explanation can be found in this [document][https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#].
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/LICENSE b/ecomp-portal-FE/client/bower_components/ui-select/LICENSE
deleted file mode 100644
index b62d482f..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2013-2014 AngularUI
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/README.md b/ecomp-portal-FE/client/bower_components/ui-select/README.md
deleted file mode 100644
index 71e42393..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/README.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# AngularJS ui-select [![Build Status](https://travis-ci.org/angular-ui/ui-select.svg?branch=master)](https://travis-ci.org/angular-ui/ui-select) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-ui/ui-select?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-
-AngularJS-native version of [Select2](http://ivaynberg.github.io/select2/) and [Selectize](http://brianreavis.github.io/selectize.js/). [http://angular-ui.github.io/ui-select/](http://angular-ui.github.io/ui-select/)
-
-[Getting Started](https://github.com/angular-ui/ui-select/wiki/Getting-Started)
-
-- [Examples](http://angular-ui.github.io/ui-select/#examples)
-- [Examples Source](./docs/examples)
-- [Documentation](https://github.com/angular-ui/ui-select/wiki)
-
-## Latest Changes
-
-- Check [CHANGELOG.md](/CHANGELOG.md)
-
-## Features
-
-- Search, Select, Multi-select and Tagging
-- Multiple Themes: Bootstrap, Select2 and Selectize
-- Keyboard support
-- No jQuery required (except for old browsers)
-- Small code base: 4.57KB min/gzipped vs 20KB for select2
-
-For the roadmap, check [issue #3](https://github.com/angular-ui/ui-select/issues/3) and the [Wiki page](https://github.com/angular-ui/ui-select/wiki/Roadmap).
-
-## Installation Methods
-
-### npm
-```
-$ npm install ui-select
-```
-### bower
-```
-$ bower install angular-ui-select
-```
-
-## Development
-
-### Prepare your environment
-* Install [Node.js](http://nodejs.org/) and NPM (should come with)
-* Install global dev dependencies: `npm install -g gulp`
-* Install local dev dependencies: `npm install` in repository directory
-
-### Development Commands
-
-* `gulp` to jshint, build and test
-* `gulp build` to jshint and build
-* `gulp test` for one-time test with karma (also build and jshint)
-* `gulp watch` to watch src files to jshint, build and test when changed
-* `gulp docs` build docs and examples
-
-## Contributing
-
-- Check [CONTRIBUTING.md](/CONTRIBUTING.md)
-- Run the tests
-- Try the [examples](./docs/examples)
-
-When issuing a pull request, please exclude changes from the "dist" folder to avoid merge conflicts.
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/bower.json b/ecomp-portal-FE/client/bower_components/ui-select/bower.json
deleted file mode 100644
index d7a7bafd..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/bower.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "name": "angular-ui-select",
- "homepage": "https://github.com/angular-ui/ui-select",
- "authors": [
- "AngularUI"
- ],
- "description": "AngularJS ui-select",
- "main": [
- "dist/select.js",
- "dist/select.css"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "src",
- "test",
- "gulpfile.js",
- "karma.conf.js",
- "examples"
- ],
- "dependencies": {
- "angular": ">=1.2.18"
- },
- "devDependencies": {
- "jquery": "~1.11",
- "angular-sanitize": ">=1.2.18",
- "angular-mocks": ">=1.2.18"
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/composer.json b/ecomp-portal-FE/client/bower_components/ui-select/composer.json
deleted file mode 100644
index aeee32a4..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/composer.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "components/ui-select",
- "description": "AngularJS UI Select",
- "keywords": ["angular", "angular-ui", "select", "select2", "angularjs"],
- "type": "component",
- "homepage": "https://github.com/angular-ui/ui-select",
- "license": "MIT",
- "support": {
- "issues": "https://github.com/angular-ui/ui-select/issues",
- "wiki": "https://github.com/angular-ui/ui-select/wiki",
- "source": "https://github.com/angular-ui/ui-select"
- },
- "require": {
- "robloach/component-installer": "*"
- },
- "extra": {
- "component": {
- "scripts": [
- "dist/select.js"
- ],
- "files": [
- "dist/select.js",
- "dist/select.css",
- "dist/select.min.js",
- "dist/select.min.css"
- ]
- }
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/deploy-docs.sh b/ecomp-portal-FE/client/bower_components/ui-select/deploy-docs.sh
deleted file mode 100644
index f18e63a7..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/deploy-docs.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-set -e
-
-[[ $TRAVIS_SECURE_ENV_VARS == "true" ]] || { echo "No github key avaliable, aborting publishing"; exit 0; }
-
-ID_REF="$(git rev-parse --short HEAD)"
-
-git clone "https://${GH_KEY}@${GH_REF}" ./docs-out -b ${GH_PAGES_BRANCH} --single-branch --depth=1
-
-cd docs-out
-
-# clear out everything
-git rm -rf .
-git clean -fxd
-
-# get new content
-cp ../docs-built/* . -R
-
-git add .
-
-# inside this git repo we'll pretend to be a new user
-git config user.name "Travis CI"
-git config user.email "travisci@users.noreply.github.com"
-
-# The first and only commit to this new Git repo contains all the
-# files present with the commit message "Deploy to GitHub Pages".
-git commit -m "docs(*): new deploy (angular-ui/ui-select@${ID_REF})"
-
-
-git push origin --quiet
-#> /dev/null 2>&1 \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/dist/select.css b/ecomp-portal-FE/client/bower_components/ui-select/dist/select.css
deleted file mode 100644
index cae019e5..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/dist/select.css
+++ /dev/null
@@ -1,271 +0,0 @@
-/*!
- * ui-select
- * http://github.com/angular-ui/ui-select
- * Version: 0.17.1 - 2016-05-16T19:31:33.034Z
- * License: MIT
- */
-
-
-/* Style when highlighting a search. */
-.ui-select-highlight {
- font-weight: bold;
-}
-
-.ui-select-offscreen {
- clip: rect(0 0 0 0) !important;
- width: 1px !important;
- height: 1px !important;
- border: 0 !important;
- margin: 0 !important;
- padding: 0 !important;
- overflow: hidden !important;
- position: absolute !important;
- outline: 0 !important;
- left: 0px !important;
- top: 0px !important;
-}
-
-
-.ui-select-choices-row:hover {
- background-color: #f5f5f5;
-}
-
-/* Select2 theme */
-
-/* Mark invalid Select2 */
-.ng-dirty.ng-invalid > a.select2-choice {
- border-color: #D44950;
-}
-
-.select2-result-single {
- padding-left: 0;
-}
-
-.select2-locked > .select2-search-choice-close{
- display:none;
-}
-
-.select-locked > .ui-select-match-close{
- display:none;
-}
-
-body > .select2-container.open {
- z-index: 9999; /* The z-index Select2 applies to the select2-drop */
-}
-
-/* Handle up direction Select2 */
-.ui-select-container[theme="select2"].direction-up .ui-select-match {
- border-radius: 4px; /* FIXME hardcoded value :-/ */
- border-top-left-radius: 0;
- border-top-right-radius: 0;
-}
-.ui-select-container[theme="select2"].direction-up .ui-select-dropdown {
- border-radius: 4px; /* FIXME hardcoded value :-/ */
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-
- border-top-width: 1px; /* FIXME hardcoded value :-/ */
- border-top-style: solid;
-
- box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
-
- margin-top: -4px; /* FIXME hardcoded value :-/ */
-}
-.ui-select-container[theme="select2"].direction-up .ui-select-dropdown .select2-search {
- margin-top: 4px; /* FIXME hardcoded value :-/ */
-}
-.ui-select-container[theme="select2"].direction-up.select2-dropdown-open .ui-select-match {
- border-bottom-color: #5897fb;
-}
-
-/* Selectize theme */
-
-/* Helper class to show styles when focus */
-.selectize-input.selectize-focus{
- border-color: #007FBB !important;
-}
-
-/* Fix input width for Selectize theme */
-.selectize-control > .selectize-input > input {
- width: 100%;
-}
-
-/* Fix dropdown width for Selectize theme */
-.selectize-control > .selectize-dropdown {
- width: 100%;
-}
-
-/* Mark invalid Selectize */
-.ng-dirty.ng-invalid > div.selectize-input {
- border-color: #D44950;
-}
-
-/* Handle up direction Selectize */
-.ui-select-container[theme="selectize"].direction-up .ui-select-dropdown {
- box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
-
- margin-top: -2px; /* FIXME hardcoded value :-/ */
-}
-
-/* Bootstrap theme */
-
-/* Helper class to show styles when focus */
-.btn-default-focus {
- color: #333;
- background-color: #EBEBEB;
- border-color: #ADADAD;
- text-decoration: none;
- outline: 5px auto -webkit-focus-ring-color;
- outline-offset: -2px;
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
-}
-
-.ui-select-bootstrap .ui-select-toggle {
- position: relative;
-}
-
-.ui-select-bootstrap .ui-select-toggle > .caret {
- position: absolute;
- height: 10px;
- top: 50%;
- right: 10px;
- margin-top: -2px;
-}
-
-/* Fix Bootstrap dropdown position when inside a input-group */
-.input-group > .ui-select-bootstrap.dropdown {
- /* Instead of relative */
- position: static;
-}
-
-.input-group > .ui-select-bootstrap > input.ui-select-search.form-control {
- border-radius: 4px; /* FIXME hardcoded value :-/ */
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
-}
-.input-group > .ui-select-bootstrap > input.ui-select-search.form-control.direction-up {
- border-radius: 4px !important; /* FIXME hardcoded value :-/ */
- border-top-right-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
-}
-
-.ui-select-bootstrap > .ui-select-match > .btn{
- /* Instead of center because of .btn */
- text-align: left !important;
-}
-
-.ui-select-bootstrap > .ui-select-match > .caret {
- position: absolute;
- top: 45%;
- right: 15px;
-}
-
-/* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
-.ui-select-bootstrap > .ui-select-choices ,.ui-select-bootstrap > .ui-select-no-choice {
- width: 100%;
- height: auto;
- max-height: 200px;
- overflow-x: hidden;
- margin-top: -1px;
-}
-
-body > .ui-select-bootstrap.open {
- z-index: 1000; /* Standard Bootstrap dropdown z-index */
-}
-
-.ui-select-multiple.ui-select-bootstrap {
- height: auto;
- padding: 3px 3px 0 3px;
-}
-
-.ui-select-multiple.ui-select-bootstrap input.ui-select-search {
- background-color: transparent !important; /* To prevent double background when disabled */
- border: none;
- outline: none;
- height: 1.666666em;
- margin-bottom: 3px;
-}
-
-.ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
- font-size: 1.6em;
- line-height: 0.75;
-}
-
-.ui-select-multiple.ui-select-bootstrap .ui-select-match-item {
- outline: 0;
- margin: 0 3px 3px 0;
-}
-
-.ui-select-multiple .ui-select-match-item {
- position: relative;
-}
-
-.ui-select-multiple .ui-select-match-item.dropping .ui-select-match-close {
- pointer-events: none;
-}
-
-.ui-select-multiple:hover .ui-select-match-item.dropping-before:before {
- content: "";
- position: absolute;
- top: 0;
- right: 100%;
- height: 100%;
- margin-right: 2px;
- border-left: 1px solid #428bca;
-}
-
-.ui-select-multiple:hover .ui-select-match-item.dropping-after:after {
- content: "";
- position: absolute;
- top: 0;
- left: 100%;
- height: 100%;
- margin-left: 2px;
- border-right: 1px solid #428bca;
-}
-
-.ui-select-bootstrap .ui-select-choices-row>a {
- display: block;
- padding: 3px 20px;
- clear: both;
- font-weight: 400;
- line-height: 1.42857143;
- color: #333;
- white-space: nowrap;
-}
-
-.ui-select-bootstrap .ui-select-choices-row>a:hover, .ui-select-bootstrap .ui-select-choices-row>a:focus {
- text-decoration: none;
- color: #262626;
- background-color: #f5f5f5;
-}
-
-.ui-select-bootstrap .ui-select-choices-row.active>a {
- color: #fff;
- text-decoration: none;
- outline: 0;
- background-color: #428bca;
-}
-
-.ui-select-bootstrap .ui-select-choices-row.disabled>a,
-.ui-select-bootstrap .ui-select-choices-row.active.disabled>a {
- color: #777;
- cursor: not-allowed;
- background-color: #fff;
-}
-
-/* fix hide/show angular animation */
-.ui-select-match.ng-hide-add,
-.ui-select-search.ng-hide-add {
- display: none !important;
-}
-
-/* Mark invalid Bootstrap */
-.ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
- border-color: #D44950;
-}
-
-/* Handle up direction Bootstrap */
-.ui-select-container[theme="bootstrap"].direction-up .ui-select-dropdown {
- box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
-}
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/dist/select.js b/ecomp-portal-FE/client/bower_components/ui-select/dist/select.js
deleted file mode 100644
index 8cae2096..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/dist/select.js
+++ /dev/null
@@ -1,2217 +0,0 @@
-/*!
- * ui-select
- * http://github.com/angular-ui/ui-select
- * Version: 0.17.1 - 2016-05-16T19:31:32.352Z
- * License: MIT
- */
-
-
-(function () {
-"use strict";
-var KEY = {
- TAB: 9,
- ENTER: 13,
- ESC: 27,
- SPACE: 32,
- LEFT: 37,
- UP: 38,
- RIGHT: 39,
- DOWN: 40,
- SHIFT: 16,
- CTRL: 17,
- ALT: 18,
- PAGE_UP: 33,
- PAGE_DOWN: 34,
- HOME: 36,
- END: 35,
- BACKSPACE: 8,
- DELETE: 46,
- COMMAND: 91,
-
- MAP: { 91 : "COMMAND", 8 : "BACKSPACE" , 9 : "TAB" , 13 : "ENTER" , 16 : "SHIFT" , 17 : "CTRL" , 18 : "ALT" , 19 : "PAUSEBREAK" , 20 : "CAPSLOCK" , 27 : "ESC" , 32 : "SPACE" , 33 : "PAGE_UP", 34 : "PAGE_DOWN" , 35 : "END" , 36 : "HOME" , 37 : "LEFT" , 38 : "UP" , 39 : "RIGHT" , 40 : "DOWN" , 43 : "+" , 44 : "PRINTSCREEN" , 45 : "INSERT" , 46 : "DELETE", 48 : "0" , 49 : "1" , 50 : "2" , 51 : "3" , 52 : "4" , 53 : "5" , 54 : "6" , 55 : "7" , 56 : "8" , 57 : "9" , 59 : ";", 61 : "=" , 65 : "A" , 66 : "B" , 67 : "C" , 68 : "D" , 69 : "E" , 70 : "F" , 71 : "G" , 72 : "H" , 73 : "I" , 74 : "J" , 75 : "K" , 76 : "L", 77 : "M" , 78 : "N" , 79 : "O" , 80 : "P" , 81 : "Q" , 82 : "R" , 83 : "S" , 84 : "T" , 85 : "U" , 86 : "V" , 87 : "W" , 88 : "X" , 89 : "Y" , 90 : "Z", 96 : "0" , 97 : "1" , 98 : "2" , 99 : "3" , 100 : "4" , 101 : "5" , 102 : "6" , 103 : "7" , 104 : "8" , 105 : "9", 106 : "*" , 107 : "+" , 109 : "-" , 110 : "." , 111 : "/", 112 : "F1" , 113 : "F2" , 114 : "F3" , 115 : "F4" , 116 : "F5" , 117 : "F6" , 118 : "F7" , 119 : "F8" , 120 : "F9" , 121 : "F10" , 122 : "F11" , 123 : "F12", 144 : "NUMLOCK" , 145 : "SCROLLLOCK" , 186 : ";" , 187 : "=" , 188 : "," , 189 : "-" , 190 : "." , 191 : "/" , 192 : "`" , 219 : "[" , 220 : "\\" , 221 : "]" , 222 : "'"
- },
-
- isControl: function (e) {
- var k = e.which;
- switch (k) {
- case KEY.COMMAND:
- case KEY.SHIFT:
- case KEY.CTRL:
- case KEY.ALT:
- return true;
- }
-
- if (e.metaKey || e.ctrlKey || e.altKey) return true;
-
- return false;
- },
- isFunctionKey: function (k) {
- k = k.which ? k.which : k;
- return k >= 112 && k <= 123;
- },
- isVerticalMovement: function (k){
- return ~[KEY.UP, KEY.DOWN].indexOf(k);
- },
- isHorizontalMovement: function (k){
- return ~[KEY.LEFT,KEY.RIGHT,KEY.BACKSPACE,KEY.DELETE].indexOf(k);
- },
- toSeparator: function (k) {
- var sep = {ENTER:"\n",TAB:"\t",SPACE:" "}[k];
- if (sep) return sep;
- // return undefined for special keys other than enter, tab or space.
- // no way to use them to cut strings.
- return KEY[k] ? undefined : k;
- }
- };
-
-/**
- * Add querySelectorAll() to jqLite.
- *
- * jqLite find() is limited to lookups by tag name.
- * TODO This will change with future versions of AngularJS, to be removed when this happens
- *
- * See jqLite.find - why not use querySelectorAll? https://github.com/angular/angular.js/issues/3586
- * See feat(jqLite): use querySelectorAll instead of getElementsByTagName in jqLite.find https://github.com/angular/angular.js/pull/3598
- */
-if (angular.element.prototype.querySelectorAll === undefined) {
- angular.element.prototype.querySelectorAll = function(selector) {
- return angular.element(this[0].querySelectorAll(selector));
- };
-}
-
-/**
- * Add closest() to jqLite.
- */
-if (angular.element.prototype.closest === undefined) {
- angular.element.prototype.closest = function( selector) {
- var elem = this[0];
- var matchesSelector = elem.matches || elem.webkitMatchesSelector || elem.mozMatchesSelector || elem.msMatchesSelector;
-
- while (elem) {
- if (matchesSelector.bind(elem)(selector)) {
- return elem;
- } else {
- elem = elem.parentElement;
- }
- }
- return false;
- };
-}
-
-var latestId = 0;
-
-var uis = angular.module('ui.select', [])
-
-.constant('uiSelectConfig', {
- theme: 'bootstrap',
- searchEnabled: true,
- sortable: false,
- placeholder: '', // Empty by default, like HTML tag <select>
- refreshDelay: 1000, // In milliseconds
- closeOnSelect: true,
- skipFocusser: false,
- dropdownPosition: 'auto',
- generateId: function() {
- return latestId++;
- },
- appendToBody: false
-})
-
-// See Rename minErr and make it accessible from outside https://github.com/angular/angular.js/issues/6913
-.service('uiSelectMinErr', function() {
- var minErr = angular.$$minErr('ui.select');
- return function() {
- var error = minErr.apply(this, arguments);
- var message = error.message.replace(new RegExp('\nhttp://errors.angularjs.org/.*'), '');
- return new Error(message);
- };
-})
-
-// Recreates old behavior of ng-transclude. Used internally.
-.directive('uisTranscludeAppend', function () {
- return {
- link: function (scope, element, attrs, ctrl, transclude) {
- transclude(scope, function (clone) {
- element.append(clone);
- });
- }
- };
-})
-
-/**
- * Highlights text that matches $select.search.
- *
- * Taken from AngularUI Bootstrap Typeahead
- * See https://github.com/angular-ui/bootstrap/blob/0.10.0/src/typeahead/typeahead.js#L340
- */
-.filter('highlight', function() {
- function escapeRegexp(queryToEscape) {
- return ('' + queryToEscape).replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
- }
-
- return function(matchItem, query) {
- return query && matchItem ? ('' + matchItem).replace(new RegExp(escapeRegexp(query), 'gi'), '<span class="ui-select-highlight">$&</span>') : matchItem;
- };
-})
-
-/**
- * A read-only equivalent of jQuery's offset function: http://api.jquery.com/offset/
- *
- * Taken from AngularUI Bootstrap Position:
- * See https://github.com/angular-ui/bootstrap/blob/master/src/position/position.js#L70
- */
-.factory('uisOffset',
- ['$document', '$window',
- function ($document, $window) {
-
- return function(element) {
- var boundingClientRect = element[0].getBoundingClientRect();
- return {
- width: boundingClientRect.width || element.prop('offsetWidth'),
- height: boundingClientRect.height || element.prop('offsetHeight'),
- top: boundingClientRect.top + ($window.pageYOffset || $document[0].documentElement.scrollTop),
- left: boundingClientRect.left + ($window.pageXOffset || $document[0].documentElement.scrollLeft)
- };
- };
-}]);
-
-/**
- * Debounces functions
- *
- * Taken from UI Bootstrap $$debounce source code
- * See https://github.com/angular-ui/bootstrap/blob/master/src/debounce/debounce.js
- *
- */
-uis.factory('$$uisDebounce', ['$timeout', function($timeout) {
- return function(callback, debounceTime) {
- var timeoutPromise;
-
- return function() {
- var self = this;
- var args = Array.prototype.slice.call(arguments);
- if (timeoutPromise) {
- $timeout.cancel(timeoutPromise);
- }
-
- timeoutPromise = $timeout(function() {
- callback.apply(self, args);
- }, debounceTime);
- };
- };
-}]);
-
-uis.directive('uiSelectChoices',
- ['uiSelectConfig', 'uisRepeatParser', 'uiSelectMinErr', '$compile', '$window',
- function(uiSelectConfig, RepeatParser, uiSelectMinErr, $compile, $window) {
-
- return {
- restrict: 'EA',
- require: '^uiSelect',
- replace: true,
- transclude: true,
- templateUrl: function(tElement) {
- // Needed so the uiSelect can detect the transcluded content
- tElement.addClass('ui-select-choices');
-
- // Gets theme attribute from parent (ui-select)
- var theme = tElement.parent().attr('theme') || uiSelectConfig.theme;
- return theme + '/choices.tpl.html';
- },
-
- compile: function(tElement, tAttrs) {
-
- if (!tAttrs.repeat) throw uiSelectMinErr('repeat', "Expected 'repeat' expression.");
-
- // var repeat = RepeatParser.parse(attrs.repeat);
- var groupByExp = tAttrs.groupBy;
- var groupFilterExp = tAttrs.groupFilter;
-
- if (groupByExp) {
- var groups = tElement.querySelectorAll('.ui-select-choices-group');
- if (groups.length !== 1) throw uiSelectMinErr('rows', "Expected 1 .ui-select-choices-group but got '{0}'.", groups.length);
- groups.attr('ng-repeat', RepeatParser.getGroupNgRepeatExpression());
- }
-
- var parserResult = RepeatParser.parse(tAttrs.repeat);
-
- var choices = tElement.querySelectorAll('.ui-select-choices-row');
- if (choices.length !== 1) {
- throw uiSelectMinErr('rows', "Expected 1 .ui-select-choices-row but got '{0}'.", choices.length);
- }
-
- choices.attr('ng-repeat', parserResult.repeatExpression(groupByExp))
- .attr('ng-if', '$select.open'); //Prevent unnecessary watches when dropdown is closed
-
-
- var rowsInner = tElement.querySelectorAll('.ui-select-choices-row-inner');
- if (rowsInner.length !== 1) {
- throw uiSelectMinErr('rows', "Expected 1 .ui-select-choices-row-inner but got '{0}'.", rowsInner.length);
- }
- rowsInner.attr('uis-transclude-append', ''); //Adding uisTranscludeAppend directive to row element after choices element has ngRepeat
-
- // If IE8 then need to target rowsInner to apply the ng-click attr as choices will not capture the event.
- var clickTarget = $window.document.addEventListener ? choices : rowsInner;
- clickTarget.attr('ng-click', '$select.select(' + parserResult.itemName + ',$select.skipFocusser,$event)');
-
- return function link(scope, element, attrs, $select) {
-
-
- $select.parseRepeatAttr(attrs.repeat, groupByExp, groupFilterExp); //Result ready at $select.parserResult
-
- $select.disableChoiceExpression = attrs.uiDisableChoice;
- $select.onHighlightCallback = attrs.onHighlight;
-
- $select.dropdownPosition = attrs.position ? attrs.position.toLowerCase() : uiSelectConfig.dropdownPosition;
-
- scope.$on('$destroy', function() {
- choices.remove();
- });
-
- scope.$watch('$select.search', function(newValue) {
- if(newValue && !$select.open && $select.multiple) $select.activate(false, true);
- $select.activeIndex = $select.tagging.isActivated ? -1 : 0;
- if (!attrs.minimumInputLength || $select.search.length >= attrs.minimumInputLength) {
- $select.refresh(attrs.refresh);
- } else {
- $select.items = [];
- }
- });
-
- attrs.$observe('refreshDelay', function() {
- // $eval() is needed otherwise we get a string instead of a number
- var refreshDelay = scope.$eval(attrs.refreshDelay);
- $select.refreshDelay = refreshDelay !== undefined ? refreshDelay : uiSelectConfig.refreshDelay;
- });
- };
- }
- };
-}]);
-
-/**
- * Contains ui-select "intelligence".
- *
- * The goal is to limit dependency on the DOM whenever possible and
- * put as much logic in the controller (instead of the link functions) as possible so it can be easily tested.
- */
-uis.controller('uiSelectCtrl',
- ['$scope', '$element', '$timeout', '$filter', '$$uisDebounce', 'uisRepeatParser', 'uiSelectMinErr', 'uiSelectConfig', '$parse', '$injector', '$window',
- function($scope, $element, $timeout, $filter, $$uisDebounce, RepeatParser, uiSelectMinErr, uiSelectConfig, $parse, $injector, $window) {
-
- var ctrl = this;
-
- var EMPTY_SEARCH = '';
-
- ctrl.placeholder = uiSelectConfig.placeholder;
- ctrl.searchEnabled = uiSelectConfig.searchEnabled;
- ctrl.sortable = uiSelectConfig.sortable;
- ctrl.refreshDelay = uiSelectConfig.refreshDelay;
- ctrl.paste = uiSelectConfig.paste;
-
- ctrl.removeSelected = false; //If selected item(s) should be removed from dropdown list
- ctrl.closeOnSelect = true; //Initialized inside uiSelect directive link function
- ctrl.skipFocusser = false; //Set to true to avoid returning focus to ctrl when item is selected
- ctrl.search = EMPTY_SEARCH;
-
- ctrl.activeIndex = 0; //Dropdown of choices
- ctrl.items = []; //All available choices
-
- ctrl.open = false;
- ctrl.focus = false;
- ctrl.disabled = false;
- ctrl.selected = undefined;
-
- ctrl.dropdownPosition = 'auto';
-
- ctrl.focusser = undefined; //Reference to input element used to handle focus events
- ctrl.resetSearchInput = true;
- ctrl.multiple = undefined; // Initialized inside uiSelect directive link function
- ctrl.disableChoiceExpression = undefined; // Initialized inside uiSelectChoices directive link function
- ctrl.tagging = {isActivated: false, fct: undefined};
- ctrl.taggingTokens = {isActivated: false, tokens: undefined};
- ctrl.lockChoiceExpression = undefined; // Initialized inside uiSelectMatch directive link function
- ctrl.clickTriggeredSelect = false;
- ctrl.$filter = $filter;
- ctrl.$element = $element;
-
- // Use $injector to check for $animate and store a reference to it
- ctrl.$animate = (function () {
- try {
- return $injector.get('$animate');
- } catch (err) {
- // $animate does not exist
- return null;
- }
- })();
-
- ctrl.searchInput = $element.querySelectorAll('input.ui-select-search');
- if (ctrl.searchInput.length !== 1) {
- throw uiSelectMinErr('searchInput', "Expected 1 input.ui-select-search but got '{0}'.", ctrl.searchInput.length);
- }
-
- ctrl.isEmpty = function() {
- return angular.isUndefined(ctrl.selected) || ctrl.selected === null || ctrl.selected === '' || (ctrl.multiple && ctrl.selected.length === 0);
- };
-
- function _findIndex(collection, predicate, thisArg){
- if (collection.findIndex){
- return collection.findIndex(predicate, thisArg);
- } else {
- var list = Object(collection);
- var length = list.length >>> 0;
- var value;
-
- for (var i = 0; i < length; i++) {
- value = list[i];
- if (predicate.call(thisArg, value, i, list)) {
- return i;
- }
- }
- return -1;
- }
- }
-
- // Most of the time the user does not want to empty the search input when in typeahead mode
- function _resetSearchInput() {
- if (ctrl.resetSearchInput || (ctrl.resetSearchInput === undefined && uiSelectConfig.resetSearchInput)) {
- ctrl.search = EMPTY_SEARCH;
- //reset activeIndex
- if (ctrl.selected && ctrl.items.length && !ctrl.multiple) {
- ctrl.activeIndex = _findIndex(ctrl.items, function(item){
- return angular.equals(this, item);
- }, ctrl.selected);
- }
- }
- }
-
- function _groupsFilter(groups, groupNames) {
- var i, j, result = [];
- for(i = 0; i < groupNames.length ;i++){
- for(j = 0; j < groups.length ;j++){
- if(groups[j].name == [groupNames[i]]){
- result.push(groups[j]);
- }
- }
- }
- return result;
- }
-
- // When the user clicks on ui-select, displays the dropdown list
- ctrl.activate = function(initSearchValue, avoidReset) {
- if (!ctrl.disabled && !ctrl.open) {
- if(!avoidReset) _resetSearchInput();
-
- $scope.$broadcast('uis:activate');
-
- ctrl.open = true;
-
- ctrl.activeIndex = ctrl.activeIndex >= ctrl.items.length ? 0 : ctrl.activeIndex;
-
- // ensure that the index is set to zero for tagging variants
- // that where first option is auto-selected
- if ( ctrl.activeIndex === -1 && ctrl.taggingLabel !== false ) {
- ctrl.activeIndex = 0;
- }
-
- var container = $element.querySelectorAll('.ui-select-choices-content');
- var searchInput = $element.querySelectorAll('.ui-select-search');
- if (ctrl.$animate && ctrl.$animate.enabled(container[0])) {
- var animateHandler = function(elem, phase) {
- if (phase === 'start' && ctrl.items.length === 0) {
- // Only focus input after the animation has finished
- ctrl.$animate.off('removeClass', searchInput[0], animateHandler);
- $timeout(function () {
- ctrl.focusSearchInput(initSearchValue);
- });
- } else if (phase === 'close') {
- // Only focus input after the animation has finished
- ctrl.$animate.off('enter', container[0], animateHandler);
- $timeout(function () {
- ctrl.focusSearchInput(initSearchValue);
- });
- }
- };
-
- if (ctrl.items.length > 0) {
- ctrl.$animate.on('enter', container[0], animateHandler);
- } else {
- ctrl.$animate.on('removeClass', searchInput[0], animateHandler);
- }
- } else {
- $timeout(function () {
- ctrl.focusSearchInput(initSearchValue);
- if(!ctrl.tagging.isActivated && ctrl.items.length > 1) {
- _ensureHighlightVisible();
- }
- });
- }
- }
- };
-
- ctrl.focusSearchInput = function (initSearchValue) {
- ctrl.search = initSearchValue || ctrl.search;
- ctrl.searchInput[0].focus();
- };
-
- ctrl.findGroupByName = function(name) {
- return ctrl.groups && ctrl.groups.filter(function(group) {
- return group.name === name;
- })[0];
- };
-
- ctrl.parseRepeatAttr = function(repeatAttr, groupByExp, groupFilterExp) {
- function updateGroups(items) {
- var groupFn = $scope.$eval(groupByExp);
- ctrl.groups = [];
- angular.forEach(items, function(item) {
- var groupName = angular.isFunction(groupFn) ? groupFn(item) : item[groupFn];
- var group = ctrl.findGroupByName(groupName);
- if(group) {
- group.items.push(item);
- }
- else {
- ctrl.groups.push({name: groupName, items: [item]});
- }
- });
- if(groupFilterExp){
- var groupFilterFn = $scope.$eval(groupFilterExp);
- if( angular.isFunction(groupFilterFn)){
- ctrl.groups = groupFilterFn(ctrl.groups);
- } else if(angular.isArray(groupFilterFn)){
- ctrl.groups = _groupsFilter(ctrl.groups, groupFilterFn);
- }
- }
- ctrl.items = [];
- ctrl.groups.forEach(function(group) {
- ctrl.items = ctrl.items.concat(group.items);
- });
- }
-
- function setPlainItems(items) {
- ctrl.items = items;
- }
-
- ctrl.setItemsFn = groupByExp ? updateGroups : setPlainItems;
-
- ctrl.parserResult = RepeatParser.parse(repeatAttr);
-
- ctrl.isGrouped = !!groupByExp;
- ctrl.itemProperty = ctrl.parserResult.itemName;
-
- //If collection is an Object, convert it to Array
-
- var originalSource = ctrl.parserResult.source;
-
- //When an object is used as source, we better create an array and use it as 'source'
- var createArrayFromObject = function(){
- var origSrc = originalSource($scope);
- $scope.$uisSource = Object.keys(origSrc).map(function(v){
- var result = {};
- result[ctrl.parserResult.keyName] = v;
- result.value = origSrc[v];
- return result;
- });
- };
-
- if (ctrl.parserResult.keyName){ // Check for (key,value) syntax
- createArrayFromObject();
- ctrl.parserResult.source = $parse('$uisSource' + ctrl.parserResult.filters);
- $scope.$watch(originalSource, function(newVal, oldVal){
- if (newVal !== oldVal) createArrayFromObject();
- }, true);
- }
-
- ctrl.refreshItems = function (data){
- data = data || ctrl.parserResult.source($scope);
- var selectedItems = ctrl.selected;
- //TODO should implement for single mode removeSelected
- if (ctrl.isEmpty() || (angular.isArray(selectedItems) && !selectedItems.length) || !ctrl.removeSelected) {
- ctrl.setItemsFn(data);
- }else{
- if ( data !== undefined ) {
- var filteredItems = data.filter(function(i) {
- return selectedItems.every(function(selectedItem) {
- return !angular.equals(i, selectedItem);
- });
- });
- ctrl.setItemsFn(filteredItems);
- }
- }
- if (ctrl.dropdownPosition === 'auto' || ctrl.dropdownPosition === 'up'){
- $scope.calculateDropdownPos();
- }
- };
-
- // See https://github.com/angular/angular.js/blob/v1.2.15/src/ng/directive/ngRepeat.js#L259
- $scope.$watchCollection(ctrl.parserResult.source, function(items) {
- if (items === undefined || items === null) {
- // If the user specifies undefined or null => reset the collection
- // Special case: items can be undefined if the user did not initialized the collection on the scope
- // i.e $scope.addresses = [] is missing
- ctrl.items = [];
- } else {
- if (!angular.isArray(items)) {
- throw uiSelectMinErr('items', "Expected an array but got '{0}'.", items);
- } else {
- //Remove already selected items (ex: while searching)
- //TODO Should add a test
- ctrl.refreshItems(items);
-
- //update the view value with fresh data from items, if there is a valid model value
- if(angular.isDefined(ctrl.ngModel.$modelValue)) {
- ctrl.ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters
- }
- }
- }
- });
-
- };
-
- var _refreshDelayPromise;
-
- /**
- * Typeahead mode: lets the user refresh the collection using his own function.
- *
- * See Expose $select.search for external / remote filtering https://github.com/angular-ui/ui-select/pull/31
- */
- ctrl.refresh = function(refreshAttr) {
- if (refreshAttr !== undefined) {
-
- // Debounce
- // See https://github.com/angular-ui/bootstrap/blob/0.10.0/src/typeahead/typeahead.js#L155
- // FYI AngularStrap typeahead does not have debouncing: https://github.com/mgcrea/angular-strap/blob/v2.0.0-rc.4/src/typeahead/typeahead.js#L177
- if (_refreshDelayPromise) {
- $timeout.cancel(_refreshDelayPromise);
- }
- _refreshDelayPromise = $timeout(function() {
- $scope.$eval(refreshAttr);
- }, ctrl.refreshDelay);
- }
- };
-
- ctrl.isActive = function(itemScope) {
- if ( !ctrl.open ) {
- return false;
- }
- var itemIndex = ctrl.items.indexOf(itemScope[ctrl.itemProperty]);
- var isActive = itemIndex == ctrl.activeIndex;
-
- if ( !isActive || itemIndex < 0 ) {
- return false;
- }
-
- if (isActive && !angular.isUndefined(ctrl.onHighlightCallback)) {
- itemScope.$eval(ctrl.onHighlightCallback);
- }
-
- return isActive;
- };
-
- ctrl.isDisabled = function(itemScope) {
-
- if (!ctrl.open) return;
-
- var itemIndex = ctrl.items.indexOf(itemScope[ctrl.itemProperty]);
- var isDisabled = false;
- var item;
-
- if (itemIndex >= 0 && !angular.isUndefined(ctrl.disableChoiceExpression)) {
- item = ctrl.items[itemIndex];
- isDisabled = !!(itemScope.$eval(ctrl.disableChoiceExpression)); // force the boolean value
- item._uiSelectChoiceDisabled = isDisabled; // store this for later reference
- }
-
- return isDisabled;
- };
-
-
- // When the user selects an item with ENTER or clicks the dropdown
- ctrl.select = function(item, skipFocusser, $event) {
- if (item === undefined || !item._uiSelectChoiceDisabled) {
-
- if ( ! ctrl.items && ! ctrl.search && ! ctrl.tagging.isActivated) return;
-
- if (!item || !item._uiSelectChoiceDisabled) {
- if(ctrl.tagging.isActivated) {
- // if taggingLabel is disabled, we pull from ctrl.search val
- if ( ctrl.taggingLabel === false ) {
- if ( ctrl.activeIndex < 0 ) {
- item = ctrl.tagging.fct !== undefined ? ctrl.tagging.fct(ctrl.search) : ctrl.search;
- if (!item || angular.equals( ctrl.items[0], item ) ) {
- return;
- }
- } else {
- // keyboard nav happened first, user selected from dropdown
- item = ctrl.items[ctrl.activeIndex];
- }
- } else {
- // tagging always operates at index zero, taggingLabel === false pushes
- // the ctrl.search value without having it injected
- if ( ctrl.activeIndex === 0 ) {
- // ctrl.tagging pushes items to ctrl.items, so we only have empty val
- // for `item` if it is a detected duplicate
- if ( item === undefined ) return;
-
- // create new item on the fly if we don't already have one;
- // use tagging function if we have one
- if ( ctrl.tagging.fct !== undefined && typeof item === 'string' ) {
- item = ctrl.tagging.fct(item);
- if (!item) return;
- // if item type is 'string', apply the tagging label
- } else if ( typeof item === 'string' ) {
- // trim the trailing space
- item = item.replace(ctrl.taggingLabel,'').trim();
- }
- }
- }
- // search ctrl.selected for dupes potentially caused by tagging and return early if found
- if ( ctrl.selected && angular.isArray(ctrl.selected) && ctrl.selected.filter( function (selection) { return angular.equals(selection, item); }).length > 0 ) {
- ctrl.close(skipFocusser);
- return;
- }
- }
-
- $scope.$broadcast('uis:select', item);
-
- var locals = {};
- locals[ctrl.parserResult.itemName] = item;
-
- $timeout(function(){
- ctrl.onSelectCallback($scope, {
- $item: item,
- $model: ctrl.parserResult.modelMapper($scope, locals)
- });
- });
-
- if (ctrl.closeOnSelect) {
- ctrl.close(skipFocusser);
- }
- if ($event && $event.type === 'click') {
- ctrl.clickTriggeredSelect = true;
- }
- }
- }
- };
-
- // Closes the dropdown
- ctrl.close = function(skipFocusser) {
- if (!ctrl.open) return;
- if (ctrl.ngModel && ctrl.ngModel.$setTouched) ctrl.ngModel.$setTouched();
- _resetSearchInput();
- ctrl.open = false;
-
- $scope.$broadcast('uis:close', skipFocusser);
-
- };
-
- ctrl.setFocus = function(){
- if (!ctrl.focus) ctrl.focusInput[0].focus();
- };
-
- ctrl.clear = function($event) {
- ctrl.select(undefined);
- $event.stopPropagation();
- $timeout(function() {
- ctrl.focusser[0].focus();
- }, 0, false);
- };
-
- // Toggle dropdown
- ctrl.toggle = function(e) {
- if (ctrl.open) {
- ctrl.close();
- e.preventDefault();
- e.stopPropagation();
- } else {
- ctrl.activate();
- }
- };
-
- ctrl.isLocked = function(itemScope, itemIndex) {
- var isLocked, item = ctrl.selected[itemIndex];
-
- if (item && !angular.isUndefined(ctrl.lockChoiceExpression)) {
- isLocked = !!(itemScope.$eval(ctrl.lockChoiceExpression)); // force the boolean value
- item._uiSelectChoiceLocked = isLocked; // store this for later reference
- }
-
- return isLocked;
- };
-
- var sizeWatch = null;
- var updaterScheduled = false;
- ctrl.sizeSearchInput = function() {
-
- var input = ctrl.searchInput[0],
- container = ctrl.searchInput.parent().parent()[0],
- calculateContainerWidth = function() {
- // Return the container width only if the search input is visible
- return container.clientWidth * !!input.offsetParent;
- },
- updateIfVisible = function(containerWidth) {
- if (containerWidth === 0) {
- return false;
- }
- var inputWidth = containerWidth - input.offsetLeft - 10;
- if (inputWidth < 50) inputWidth = containerWidth;
- ctrl.searchInput.css('width', inputWidth+'px');
- return true;
- };
-
- ctrl.searchInput.css('width', '10px');
- $timeout(function() { //Give tags time to render correctly
- if (sizeWatch === null && !updateIfVisible(calculateContainerWidth())) {
- sizeWatch = $scope.$watch(angular.noop, function() {
- if (!updaterScheduled) {
- updaterScheduled = true;
- $scope.$$postDigest(function() {
- updaterScheduled = false;
- if (updateIfVisible(calculateContainerWidth())) {
- sizeWatch();
- sizeWatch = null;
- }
- });
- }
- });
- }
- });
- };
-
- function _handleDropDownSelection(key) {
- var processed = true;
- switch (key) {
- case KEY.DOWN:
- if (!ctrl.open && ctrl.multiple) ctrl.activate(false, true); //In case its the search input in 'multiple' mode
- else if (ctrl.activeIndex < ctrl.items.length - 1) { ctrl.activeIndex++; }
- break;
- case KEY.UP:
- if (!ctrl.open && ctrl.multiple) ctrl.activate(false, true); //In case its the search input in 'multiple' mode
- else if (ctrl.activeIndex > 0 || (ctrl.search.length === 0 && ctrl.tagging.isActivated && ctrl.activeIndex > -1)) { ctrl.activeIndex--; }
- break;
- case KEY.TAB:
- if (!ctrl.multiple || ctrl.open) ctrl.select(ctrl.items[ctrl.activeIndex], true);
- break;
- case KEY.ENTER:
- if(ctrl.open && (ctrl.tagging.isActivated || ctrl.activeIndex >= 0)){
- ctrl.select(ctrl.items[ctrl.activeIndex], ctrl.skipFocusser); // Make sure at least one dropdown item is highlighted before adding if not in tagging mode
- } else {
- ctrl.activate(false, true); //In case its the search input in 'multiple' mode
- }
- break;
- case KEY.ESC:
- ctrl.close();
- break;
- default:
- processed = false;
- }
- return processed;
- }
-
- // Bind to keyboard shortcuts
- ctrl.searchInput.on('keydown', function(e) {
-
- var key = e.which;
-
- if (~[KEY.ENTER,KEY.ESC].indexOf(key)){
- e.preventDefault();
- e.stopPropagation();
- }
-
- // if(~[KEY.ESC,KEY.TAB].indexOf(key)){
- // //TODO: SEGURO?
- // ctrl.close();
- // }
-
- $scope.$apply(function() {
-
- var tagged = false;
-
- if (ctrl.items.length > 0 || ctrl.tagging.isActivated) {
- _handleDropDownSelection(key);
- if ( ctrl.taggingTokens.isActivated ) {
- for (var i = 0; i < ctrl.taggingTokens.tokens.length; i++) {
- if ( ctrl.taggingTokens.tokens[i] === KEY.MAP[e.keyCode] ) {
- // make sure there is a new value to push via tagging
- if ( ctrl.search.length > 0 ) {
- tagged = true;
- }
- }
- }
- if ( tagged ) {
- $timeout(function() {
- ctrl.searchInput.triggerHandler('tagged');
- var newItem = ctrl.search.replace(KEY.MAP[e.keyCode],'').trim();
- if ( ctrl.tagging.fct ) {
- newItem = ctrl.tagging.fct( newItem );
- }
- if (newItem) ctrl.select(newItem, true);
- });
- }
- }
- }
-
- });
-
- if(KEY.isVerticalMovement(key) && ctrl.items.length > 0){
- _ensureHighlightVisible();
- }
-
- if (key === KEY.ENTER || key === KEY.ESC) {
- e.preventDefault();
- e.stopPropagation();
- }
-
- });
-
- ctrl.searchInput.on('paste', function (e) {
- var data;
-
- if (window.clipboardData && window.clipboardData.getData) { // IE
- data = window.clipboardData.getData('Text');
- } else {
- data = (e.originalEvent || e).clipboardData.getData('text/plain');
- }
-
- // Prepend the current input field text to the paste buffer.
- data = ctrl.search + data;
-
- if (data && data.length > 0) {
- // If tagging try to split by tokens and add items
- if (ctrl.taggingTokens.isActivated) {
- var items = [];
- for (var i = 0; i < ctrl.taggingTokens.tokens.length; i++) { // split by first token that is contained in data
- var separator = KEY.toSeparator(ctrl.taggingTokens.tokens[i]) || ctrl.taggingTokens.tokens[i];
- if (data.indexOf(separator) > -1) {
- items = data.split(separator);
- break; // only split by one token
- }
- }
- if (items.length === 0) {
- items = [data];
- }
- if (items.length > 0) {
- var oldsearch = ctrl.search;
- angular.forEach(items, function (item) {
- var newItem = ctrl.tagging.fct ? ctrl.tagging.fct(item) : item;
- if (newItem) {
- ctrl.select(newItem, true);
- }
- });
- ctrl.search = oldsearch || EMPTY_SEARCH;
- e.preventDefault();
- e.stopPropagation();
- }
- } else if (ctrl.paste) {
- ctrl.paste(data);
- ctrl.search = EMPTY_SEARCH;
- e.preventDefault();
- e.stopPropagation();
- }
- }
- });
-
- ctrl.searchInput.on('tagged', function() {
- $timeout(function() {
- _resetSearchInput();
- });
- });
-
- // See https://github.com/ivaynberg/select2/blob/3.4.6/select2.js#L1431
- function _ensureHighlightVisible() {
- var container = $element.querySelectorAll('.ui-select-choices-content');
- var choices = container.querySelectorAll('.ui-select-choices-row');
- if (choices.length < 1) {
- throw uiSelectMinErr('choices', "Expected multiple .ui-select-choices-row but got '{0}'.", choices.length);
- }
-
- if (ctrl.activeIndex < 0) {
- return;
- }
-
- var highlighted = choices[ctrl.activeIndex];
- var posY = highlighted.offsetTop + highlighted.clientHeight - container[0].scrollTop;
- var height = container[0].offsetHeight;
-
- if (posY > height) {
- container[0].scrollTop += posY - height;
- } else if (posY < highlighted.clientHeight) {
- if (ctrl.isGrouped && ctrl.activeIndex === 0)
- container[0].scrollTop = 0; //To make group header visible when going all the way up
- else
- container[0].scrollTop -= highlighted.clientHeight - posY;
- }
- }
-
- var onResize = $$uisDebounce(function() {
- ctrl.sizeSearchInput();
- }, 50);
-
- angular.element($window).bind('resize', onResize);
-
- $scope.$on('$destroy', function() {
- ctrl.searchInput.off('keyup keydown tagged blur paste');
- angular.element($window).off('resize', onResize);
- });
-}]);
-
-uis.directive('uiSelect',
- ['$document', 'uiSelectConfig', 'uiSelectMinErr', 'uisOffset', '$compile', '$parse', '$timeout',
- function($document, uiSelectConfig, uiSelectMinErr, uisOffset, $compile, $parse, $timeout) {
-
- return {
- restrict: 'EA',
- templateUrl: function(tElement, tAttrs) {
- var theme = tAttrs.theme || uiSelectConfig.theme;
- return theme + (angular.isDefined(tAttrs.multiple) ? '/select-multiple.tpl.html' : '/select.tpl.html');
- },
- replace: true,
- transclude: true,
- require: ['uiSelect', '^ngModel'],
- scope: true,
-
- controller: 'uiSelectCtrl',
- controllerAs: '$select',
- compile: function(tElement, tAttrs) {
-
- // Allow setting ngClass on uiSelect
- var match = /{(.*)}\s*{(.*)}/.exec(tAttrs.ngClass);
- if(match) {
- var combined = '{'+ match[1] +', '+ match[2] +'}';
- tAttrs.ngClass = combined;
- tElement.attr('ng-class', combined);
- }
-
- //Multiple or Single depending if multiple attribute presence
- if (angular.isDefined(tAttrs.multiple))
- tElement.append('<ui-select-multiple/>').removeAttr('multiple');
- else
- tElement.append('<ui-select-single/>');
-
- if (tAttrs.inputId)
- tElement.querySelectorAll('input.ui-select-search')[0].id = tAttrs.inputId;
-
- return function(scope, element, attrs, ctrls, transcludeFn) {
-
- var $select = ctrls[0];
- var ngModel = ctrls[1];
-
- $select.generatedId = uiSelectConfig.generateId();
- $select.baseTitle = attrs.title || 'Select box';
- $select.focusserTitle = $select.baseTitle + ' focus';
- $select.focusserId = 'focusser-' + $select.generatedId;
-
- $select.closeOnSelect = function() {
- if (angular.isDefined(attrs.closeOnSelect)) {
- return $parse(attrs.closeOnSelect)();
- } else {
- return uiSelectConfig.closeOnSelect;
- }
- }();
-
- scope.$watch('skipFocusser', function() {
- var skipFocusser = scope.$eval(attrs.skipFocusser);
- $select.skipFocusser = skipFocusser !== undefined ? skipFocusser : uiSelectConfig.skipFocusser;
- });
-
- $select.onSelectCallback = $parse(attrs.onSelect);
- $select.onRemoveCallback = $parse(attrs.onRemove);
-
- //Limit the number of selections allowed
- $select.limit = (angular.isDefined(attrs.limit)) ? parseInt(attrs.limit, 10) : undefined;
-
- //Set reference to ngModel from uiSelectCtrl
- $select.ngModel = ngModel;
-
- $select.choiceGrouped = function(group){
- return $select.isGrouped && group && group.name;
- };
-
- if(attrs.tabindex){
- attrs.$observe('tabindex', function(value) {
- $select.focusInput.attr('tabindex', value);
- element.removeAttr('tabindex');
- });
- }
-
- scope.$watch('searchEnabled', function() {
- var searchEnabled = scope.$eval(attrs.searchEnabled);
- $select.searchEnabled = searchEnabled !== undefined ? searchEnabled : uiSelectConfig.searchEnabled;
- });
-
- scope.$watch('sortable', function() {
- var sortable = scope.$eval(attrs.sortable);
- $select.sortable = sortable !== undefined ? sortable : uiSelectConfig.sortable;
- });
-
- attrs.$observe('disabled', function() {
- // No need to use $eval() (thanks to ng-disabled) since we already get a boolean instead of a string
- $select.disabled = attrs.disabled !== undefined ? attrs.disabled : false;
- });
-
- attrs.$observe('resetSearchInput', function() {
- // $eval() is needed otherwise we get a string instead of a boolean
- var resetSearchInput = scope.$eval(attrs.resetSearchInput);
- $select.resetSearchInput = resetSearchInput !== undefined ? resetSearchInput : true;
- });
-
- attrs.$observe('paste', function() {
- $select.paste = scope.$eval(attrs.paste);
- });
-
- attrs.$observe('tagging', function() {
- if(attrs.tagging !== undefined)
- {
- // $eval() is needed otherwise we get a string instead of a boolean
- var taggingEval = scope.$eval(attrs.tagging);
- $select.tagging = {isActivated: true, fct: taggingEval !== true ? taggingEval : undefined};
- }
- else
- {
- $select.tagging = {isActivated: false, fct: undefined};
- }
- });
-
- attrs.$observe('taggingLabel', function() {
- if(attrs.tagging !== undefined )
- {
- // check eval for FALSE, in this case, we disable the labels
- // associated with tagging
- if ( attrs.taggingLabel === 'false' ) {
- $select.taggingLabel = false;
- }
- else
- {
- $select.taggingLabel = attrs.taggingLabel !== undefined ? attrs.taggingLabel : '(new)';
- }
- }
- });
-
- attrs.$observe('taggingTokens', function() {
- if (attrs.tagging !== undefined) {
- var tokens = attrs.taggingTokens !== undefined ? attrs.taggingTokens.split('|') : [',','ENTER'];
- $select.taggingTokens = {isActivated: true, tokens: tokens };
- }
- });
-
- //Automatically gets focus when loaded
- if (angular.isDefined(attrs.autofocus)){
- $timeout(function(){
- $select.setFocus();
- });
- }
-
- //Gets focus based on scope event name (e.g. focus-on='SomeEventName')
- if (angular.isDefined(attrs.focusOn)){
- scope.$on(attrs.focusOn, function() {
- $timeout(function(){
- $select.setFocus();
- });
- });
- }
-
- function onDocumentClick(e) {
- if (!$select.open) return; //Skip it if dropdown is close
-
- var contains = false;
-
- if (window.jQuery) {
- // Firefox 3.6 does not support element.contains()
- // See Node.contains https://developer.mozilla.org/en-US/docs/Web/API/Node.contains
- contains = window.jQuery.contains(element[0], e.target);
- } else {
- contains = element[0].contains(e.target);
- }
-
- if (!contains && !$select.clickTriggeredSelect) {
- var skipFocusser;
- if (!$select.skipFocusser) {
- //Will lose focus only with certain targets
- var focusableControls = ['input','button','textarea','select'];
- var targetController = angular.element(e.target).controller('uiSelect'); //To check if target is other ui-select
- skipFocusser = targetController && targetController !== $select; //To check if target is other ui-select
- if (!skipFocusser) skipFocusser = ~focusableControls.indexOf(e.target.tagName.toLowerCase()); //Check if target is input, button or textarea
- } else {
- skipFocusser = true;
- }
- $select.close(skipFocusser);
- scope.$digest();
- }
- $select.clickTriggeredSelect = false;
- }
-
- // See Click everywhere but here event http://stackoverflow.com/questions/12931369
- $document.on('click', onDocumentClick);
-
- scope.$on('$destroy', function() {
- $document.off('click', onDocumentClick);
- });
-
- // Move transcluded elements to their correct position in main template
- transcludeFn(scope, function(clone) {
- // See Transclude in AngularJS http://blog.omkarpatil.com/2012/11/transclude-in-angularjs.html
-
- // One day jqLite will be replaced by jQuery and we will be able to write:
- // var transcludedElement = clone.filter('.my-class')
- // instead of creating a hackish DOM element:
- var transcluded = angular.element('<div>').append(clone);
-
- var transcludedMatch = transcluded.querySelectorAll('.ui-select-match');
- transcludedMatch.removeAttr('ui-select-match'); //To avoid loop in case directive as attr
- transcludedMatch.removeAttr('data-ui-select-match'); // Properly handle HTML5 data-attributes
- if (transcludedMatch.length !== 1) {
- throw uiSelectMinErr('transcluded', "Expected 1 .ui-select-match but got '{0}'.", transcludedMatch.length);
- }
- element.querySelectorAll('.ui-select-match').replaceWith(transcludedMatch);
-
- var transcludedChoices = transcluded.querySelectorAll('.ui-select-choices');
- transcludedChoices.removeAttr('ui-select-choices'); //To avoid loop in case directive as attr
- transcludedChoices.removeAttr('data-ui-select-choices'); // Properly handle HTML5 data-attributes
- if (transcludedChoices.length !== 1) {
- throw uiSelectMinErr('transcluded', "Expected 1 .ui-select-choices but got '{0}'.", transcludedChoices.length);
- }
- element.querySelectorAll('.ui-select-choices').replaceWith(transcludedChoices);
-
- var transcludedNoChoice = transcluded.querySelectorAll('.ui-select-no-choice');
- transcludedNoChoice.removeAttr('ui-select-no-choice'); //To avoid loop in case directive as attr
- transcludedNoChoice.removeAttr('data-ui-select-no-choice'); // Properly handle HTML5 data-attributes
- if (transcludedNoChoice.length == 1) {
- element.querySelectorAll('.ui-select-no-choice').replaceWith(transcludedNoChoice);
- }
- });
-
- // Support for appending the select field to the body when its open
- var appendToBody = scope.$eval(attrs.appendToBody);
- if (appendToBody !== undefined ? appendToBody : uiSelectConfig.appendToBody) {
- scope.$watch('$select.open', function(isOpen) {
- if (isOpen) {
- positionDropdown();
- } else {
- resetDropdown();
- }
- });
-
- // Move the dropdown back to its original location when the scope is destroyed. Otherwise
- // it might stick around when the user routes away or the select field is otherwise removed
- scope.$on('$destroy', function() {
- resetDropdown();
- });
- }
-
- // Hold on to a reference to the .ui-select-container element for appendToBody support
- var placeholder = null,
- originalWidth = '';
-
- function positionDropdown() {
- // Remember the absolute position of the element
- var offset = uisOffset(element);
-
- // Clone the element into a placeholder element to take its original place in the DOM
- placeholder = angular.element('<div class="ui-select-placeholder"></div>');
- placeholder[0].style.width = offset.width + 'px';
- placeholder[0].style.height = offset.height + 'px';
- element.after(placeholder);
-
- // Remember the original value of the element width inline style, so it can be restored
- // when the dropdown is closed
- originalWidth = element[0].style.width;
-
- // Now move the actual dropdown element to the end of the body
- $document.find('body').append(element);
-
- element[0].style.position = 'absolute';
- element[0].style.left = offset.left + 'px';
- element[0].style.top = offset.top + 'px';
- element[0].style.width = offset.width + 'px';
- }
-
- function resetDropdown() {
- if (placeholder === null) {
- // The dropdown has not actually been display yet, so there's nothing to reset
- return;
- }
-
- // Move the dropdown element back to its original location in the DOM
- placeholder.replaceWith(element);
- placeholder = null;
-
- element[0].style.position = '';
- element[0].style.left = '';
- element[0].style.top = '';
- element[0].style.width = originalWidth;
-
- // Set focus back on to the moved element
- $select.setFocus();
- }
-
- // Hold on to a reference to the .ui-select-dropdown element for direction support.
- var dropdown = null,
- directionUpClassName = 'direction-up';
-
- // Support changing the direction of the dropdown if there isn't enough space to render it.
- scope.$watch('$select.open', function() {
-
- if ($select.dropdownPosition === 'auto' || $select.dropdownPosition === 'up'){
- scope.calculateDropdownPos();
- }
-
- });
-
- var setDropdownPosUp = function(offset, offsetDropdown){
-
- offset = offset || uisOffset(element);
- offsetDropdown = offsetDropdown || uisOffset(dropdown);
-
- dropdown[0].style.position = 'absolute';
- dropdown[0].style.top = (offsetDropdown.height * -1) + 'px';
- element.addClass(directionUpClassName);
-
- };
-
- var setDropdownPosDown = function(offset, offsetDropdown){
-
- element.removeClass(directionUpClassName);
-
- offset = offset || uisOffset(element);
- offsetDropdown = offsetDropdown || uisOffset(dropdown);
-
- dropdown[0].style.position = '';
- dropdown[0].style.top = '';
-
- };
-
- scope.calculateDropdownPos = function(){
-
- if ($select.open) {
- dropdown = angular.element(element).querySelectorAll('.ui-select-dropdown');
- if (dropdown.length === 0) {
- return;
- }
-
- // Hide the dropdown so there is no flicker until $timeout is done executing.
- dropdown[0].style.opacity = 0;
-
- // Delay positioning the dropdown until all choices have been added so its height is correct.
- $timeout(function(){
-
- if ($select.dropdownPosition === 'up'){
- //Go UP
- setDropdownPosUp();
-
- }else{ //AUTO
-
- element.removeClass(directionUpClassName);
-
- var offset = uisOffset(element);
- var offsetDropdown = uisOffset(dropdown);
-
- //https://code.google.com/p/chromium/issues/detail?id=342307#c4
- var scrollTop = $document[0].documentElement.scrollTop || $document[0].body.scrollTop; //To make it cross browser (blink, webkit, IE, Firefox).
-
- // Determine if the direction of the dropdown needs to be changed.
- if (offset.top + offset.height + offsetDropdown.height > scrollTop + $document[0].documentElement.clientHeight) {
- //Go UP
- setDropdownPosUp(offset, offsetDropdown);
- }else{
- //Go DOWN
- setDropdownPosDown(offset, offsetDropdown);
- }
-
- }
-
- // Display the dropdown once it has been positioned.
- dropdown[0].style.opacity = 1;
- });
- } else {
- if (dropdown === null || dropdown.length === 0) {
- return;
- }
-
- // Reset the position of the dropdown.
- dropdown[0].style.position = '';
- dropdown[0].style.top = '';
- element.removeClass(directionUpClassName);
- }
- };
- };
- }
- };
-}]);
-
-uis.directive('uiSelectMatch', ['uiSelectConfig', function(uiSelectConfig) {
- return {
- restrict: 'EA',
- require: '^uiSelect',
- replace: true,
- transclude: true,
- templateUrl: function(tElement) {
- // Needed so the uiSelect can detect the transcluded content
- tElement.addClass('ui-select-match');
-
- var parent = tElement.parent();
- // Gets theme attribute from parent (ui-select)
- var theme = getAttribute(parent, 'theme') || uiSelectConfig.theme;
- var multi = angular.isDefined(getAttribute(parent, 'multiple'));
-
- return theme + (multi ? '/match-multiple.tpl.html' : '/match.tpl.html');
- },
- link: function(scope, element, attrs, $select) {
- $select.lockChoiceExpression = attrs.uiLockChoice;
- attrs.$observe('placeholder', function(placeholder) {
- $select.placeholder = placeholder !== undefined ? placeholder : uiSelectConfig.placeholder;
- });
-
- function setAllowClear(allow) {
- $select.allowClear = (angular.isDefined(allow)) ? (allow === '') ? true : (allow.toLowerCase() === 'true') : false;
- }
-
- attrs.$observe('allowClear', setAllowClear);
- setAllowClear(attrs.allowClear);
-
- if($select.multiple){
- $select.sizeSearchInput();
- }
-
- }
- };
-
- function getAttribute(elem, attribute) {
- if (elem[0].hasAttribute(attribute))
- return elem.attr(attribute);
-
- if (elem[0].hasAttribute('data-' + attribute))
- return elem.attr('data-' + attribute);
-
- if (elem[0].hasAttribute('x-' + attribute))
- return elem.attr('x-' + attribute);
- }
-}]);
-
-uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelectMinErr, $timeout) {
- return {
- restrict: 'EA',
- require: ['^uiSelect', '^ngModel'],
-
- controller: ['$scope','$timeout', function($scope, $timeout){
-
- var ctrl = this,
- $select = $scope.$select,
- ngModel;
-
- if (angular.isUndefined($select.selected))
- $select.selected = [];
-
- //Wait for link fn to inject it
- $scope.$evalAsync(function(){ ngModel = $scope.ngModel; });
-
- ctrl.activeMatchIndex = -1;
-
- ctrl.updateModel = function(){
- ngModel.$setViewValue(Date.now()); //Set timestamp as a unique string to force changes
- ctrl.refreshComponent();
- };
-
- ctrl.refreshComponent = function(){
- //Remove already selected items
- //e.g. When user clicks on a selection, the selected array changes and
- //the dropdown should remove that item
- $select.refreshItems();
- $select.sizeSearchInput();
- };
-
- // Remove item from multiple select
- ctrl.removeChoice = function(index){
-
- var removedChoice = $select.selected[index];
-
- // if the choice is locked, can't remove it
- if(removedChoice._uiSelectChoiceLocked) return;
-
- var locals = {};
- locals[$select.parserResult.itemName] = removedChoice;
-
- $select.selected.splice(index, 1);
- ctrl.activeMatchIndex = -1;
- $select.sizeSearchInput();
-
- // Give some time for scope propagation.
- $timeout(function(){
- $select.onRemoveCallback($scope, {
- $item: removedChoice,
- $model: $select.parserResult.modelMapper($scope, locals)
- });
- });
-
- ctrl.updateModel();
-
- };
-
- ctrl.getPlaceholder = function(){
- //Refactor single?
- if($select.selected && $select.selected.length) return;
- return $select.placeholder;
- };
-
-
- }],
- controllerAs: '$selectMultiple',
-
- link: function(scope, element, attrs, ctrls) {
-
- var $select = ctrls[0];
- var ngModel = scope.ngModel = ctrls[1];
- var $selectMultiple = scope.$selectMultiple;
-
- //$select.selected = raw selected objects (ignoring any property binding)
-
- $select.multiple = true;
- $select.removeSelected = true;
-
- //Input that will handle focus
- $select.focusInput = $select.searchInput;
-
- //Properly check for empty if set to multiple
- ngModel.$isEmpty = function(value) {
- return !value || value.length === 0;
- };
-
- //From view --> model
- ngModel.$parsers.unshift(function () {
- var locals = {},
- result,
- resultMultiple = [];
- for (var j = $select.selected.length - 1; j >= 0; j--) {
- locals = {};
- locals[$select.parserResult.itemName] = $select.selected[j];
- result = $select.parserResult.modelMapper(scope, locals);
- resultMultiple.unshift(result);
- }
- return resultMultiple;
- });
-
- // From model --> view
- ngModel.$formatters.unshift(function (inputValue) {
- var data = $select.parserResult && $select.parserResult.source (scope, { $select : {search:''}}), //Overwrite $search
- locals = {},
- result;
- if (!data) return inputValue;
- var resultMultiple = [];
- var checkFnMultiple = function(list, value){
- if (!list || !list.length) return;
- for (var p = list.length - 1; p >= 0; p--) {
- locals[$select.parserResult.itemName] = list[p];
- result = $select.parserResult.modelMapper(scope, locals);
- if($select.parserResult.trackByExp){
- var propsItemNameMatches = /(\w*)\./.exec($select.parserResult.trackByExp);
- var matches = /\.([^\s]+)/.exec($select.parserResult.trackByExp);
- if(propsItemNameMatches && propsItemNameMatches.length > 0 && propsItemNameMatches[1] == $select.parserResult.itemName){
- if(matches && matches.length>0 && result[matches[1]] == value[matches[1]]){
- resultMultiple.unshift(list[p]);
- return true;
- }
- }
- }
- if (angular.equals(result,value)){
- resultMultiple.unshift(list[p]);
- return true;
- }
- }
- return false;
- };
- if (!inputValue) return resultMultiple; //If ngModel was undefined
- for (var k = inputValue.length - 1; k >= 0; k--) {
- //Check model array of currently selected items
- if (!checkFnMultiple($select.selected, inputValue[k])){
- //Check model array of all items available
- if (!checkFnMultiple(data, inputValue[k])){
- //If not found on previous lists, just add it directly to resultMultiple
- resultMultiple.unshift(inputValue[k]);
- }
- }
- }
- return resultMultiple;
- });
-
- //Watch for external model changes
- scope.$watchCollection(function(){ return ngModel.$modelValue; }, function(newValue, oldValue) {
- if (oldValue != newValue){
- //update the view value with fresh data from items, if there is a valid model value
- if(angular.isDefined(ngModel.$modelValue)) {
- ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters
- }
- $selectMultiple.refreshComponent();
- }
- });
-
- ngModel.$render = function() {
- // Make sure that model value is array
- if(!angular.isArray(ngModel.$viewValue)){
- // Have tolerance for null or undefined values
- if(angular.isUndefined(ngModel.$viewValue) || ngModel.$viewValue === null){
- $select.selected = [];
- } else {
- throw uiSelectMinErr('multiarr', "Expected model value to be array but got '{0}'", ngModel.$viewValue);
- }
- }
- $select.selected = ngModel.$viewValue;
- $selectMultiple.refreshComponent();
- scope.$evalAsync(); //To force $digest
- };
-
- scope.$on('uis:select', function (event, item) {
- if($select.selected.length >= $select.limit) {
- return;
- }
- $select.selected.push(item);
- $selectMultiple.updateModel();
- });
-
- scope.$on('uis:activate', function () {
- $selectMultiple.activeMatchIndex = -1;
- });
-
- scope.$watch('$select.disabled', function(newValue, oldValue) {
- // As the search input field may now become visible, it may be necessary to recompute its size
- if (oldValue && !newValue) $select.sizeSearchInput();
- });
-
- $select.searchInput.on('keydown', function(e) {
- var key = e.which;
- scope.$apply(function() {
- var processed = false;
- // var tagged = false; //Checkme
- if(KEY.isHorizontalMovement(key)){
- processed = _handleMatchSelection(key);
- }
- if (processed && key != KEY.TAB) {
- //TODO Check si el tab selecciona aun correctamente
- //Crear test
- e.preventDefault();
- e.stopPropagation();
- }
- });
- });
- function _getCaretPosition(el) {
- if(angular.isNumber(el.selectionStart)) return el.selectionStart;
- // selectionStart is not supported in IE8 and we don't want hacky workarounds so we compromise
- else return el.value.length;
- }
- // Handles selected options in "multiple" mode
- function _handleMatchSelection(key){
- var caretPosition = _getCaretPosition($select.searchInput[0]),
- length = $select.selected.length,
- // none = -1,
- first = 0,
- last = length-1,
- curr = $selectMultiple.activeMatchIndex,
- next = $selectMultiple.activeMatchIndex+1,
- prev = $selectMultiple.activeMatchIndex-1,
- newIndex = curr;
-
- if(caretPosition > 0 || ($select.search.length && key == KEY.RIGHT)) return false;
-
- $select.close();
-
- function getNewActiveMatchIndex(){
- switch(key){
- case KEY.LEFT:
- // Select previous/first item
- if(~$selectMultiple.activeMatchIndex) return prev;
- // Select last item
- else return last;
- break;
- case KEY.RIGHT:
- // Open drop-down
- if(!~$selectMultiple.activeMatchIndex || curr === last){
- $select.activate();
- return false;
- }
- // Select next/last item
- else return next;
- break;
- case KEY.BACKSPACE:
- // Remove selected item and select previous/first
- if(~$selectMultiple.activeMatchIndex){
- $selectMultiple.removeChoice(curr);
- return prev;
- }
- // Select last item
- else return last;
- break;
- case KEY.DELETE:
- // Remove selected item and select next item
- if(~$selectMultiple.activeMatchIndex){
- $selectMultiple.removeChoice($selectMultiple.activeMatchIndex);
- return curr;
- }
- else return false;
- }
- }
-
- newIndex = getNewActiveMatchIndex();
-
- if(!$select.selected.length || newIndex === false) $selectMultiple.activeMatchIndex = -1;
- else $selectMultiple.activeMatchIndex = Math.min(last,Math.max(first,newIndex));
-
- return true;
- }
-
- $select.searchInput.on('keyup', function(e) {
-
- if ( ! KEY.isVerticalMovement(e.which) ) {
- scope.$evalAsync( function () {
- $select.activeIndex = $select.taggingLabel === false ? -1 : 0;
- });
- }
- // Push a "create new" item into array if there is a search string
- if ( $select.tagging.isActivated && $select.search.length > 0 ) {
-
- // return early with these keys
- if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || KEY.isVerticalMovement(e.which) ) {
- return;
- }
- // always reset the activeIndex to the first item when tagging
- $select.activeIndex = $select.taggingLabel === false ? -1 : 0;
- // taggingLabel === false bypasses all of this
- if ($select.taggingLabel === false) return;
-
- var items = angular.copy( $select.items );
- var stashArr = angular.copy( $select.items );
- var newItem;
- var item;
- var hasTag = false;
- var dupeIndex = -1;
- var tagItems;
- var tagItem;
-
- // case for object tagging via transform `$select.tagging.fct` function
- if ( $select.tagging.fct !== undefined) {
- tagItems = $select.$filter('filter')(items,{'isTag': true});
- if ( tagItems.length > 0 ) {
- tagItem = tagItems[0];
- }
- // remove the first element, if it has the `isTag` prop we generate a new one with each keyup, shaving the previous
- if ( items.length > 0 && tagItem ) {
- hasTag = true;
- items = items.slice(1,items.length);
- stashArr = stashArr.slice(1,stashArr.length);
- }
- newItem = $select.tagging.fct($select.search);
- // verify the new tag doesn't match the value of a possible selection choice or an already selected item.
- if (
- stashArr.some(function (origItem) {
- return angular.equals(origItem, newItem);
- }) ||
- $select.selected.some(function (origItem) {
- return angular.equals(origItem, newItem);
- })
- ) {
- scope.$evalAsync(function () {
- $select.activeIndex = 0;
- $select.items = items;
- });
- return;
- }
- if (newItem) newItem.isTag = true;
- // handle newItem string and stripping dupes in tagging string context
- } else {
- // find any tagging items already in the $select.items array and store them
- tagItems = $select.$filter('filter')(items,function (item) {
- return item.match($select.taggingLabel);
- });
- if ( tagItems.length > 0 ) {
- tagItem = tagItems[0];
- }
- item = items[0];
- // remove existing tag item if found (should only ever be one tag item)
- if ( item !== undefined && items.length > 0 && tagItem ) {
- hasTag = true;
- items = items.slice(1,items.length);
- stashArr = stashArr.slice(1,stashArr.length);
- }
- newItem = $select.search+' '+$select.taggingLabel;
- if ( _findApproxDupe($select.selected, $select.search) > -1 ) {
- return;
- }
- // verify the the tag doesn't match the value of an existing item from
- // the searched data set or the items already selected
- if ( _findCaseInsensitiveDupe(stashArr.concat($select.selected)) ) {
- // if there is a tag from prev iteration, strip it / queue the change
- // and return early
- if ( hasTag ) {
- items = stashArr;
- scope.$evalAsync( function () {
- $select.activeIndex = 0;
- $select.items = items;
- });
- }
- return;
- }
- if ( _findCaseInsensitiveDupe(stashArr) ) {
- // if there is a tag from prev iteration, strip it
- if ( hasTag ) {
- $select.items = stashArr.slice(1,stashArr.length);
- }
- return;
- }
- }
- if ( hasTag ) dupeIndex = _findApproxDupe($select.selected, newItem);
- // dupe found, shave the first item
- if ( dupeIndex > -1 ) {
- items = items.slice(dupeIndex+1,items.length-1);
- } else {
- items = [];
- if (newItem) items.push(newItem);
- items = items.concat(stashArr);
- }
- scope.$evalAsync( function () {
- $select.activeIndex = 0;
- $select.items = items;
-
- if ($select.isGrouped) {
- // update item references in groups, so that indexOf will work after angular.copy
- var itemsWithoutTag = newItem ? items.slice(1) : items;
- $select.setItemsFn(itemsWithoutTag);
- if (newItem) {
- // add tag item as a new group
- $select.items.unshift(newItem);
- $select.groups.unshift({name: '', items: [newItem], tagging: true});
- }
- }
- });
- }
- });
- function _findCaseInsensitiveDupe(arr) {
- if ( arr === undefined || $select.search === undefined ) {
- return false;
- }
- var hasDupe = arr.filter( function (origItem) {
- if ( $select.search.toUpperCase() === undefined || origItem === undefined ) {
- return false;
- }
- return origItem.toUpperCase() === $select.search.toUpperCase();
- }).length > 0;
-
- return hasDupe;
- }
- function _findApproxDupe(haystack, needle) {
- var dupeIndex = -1;
- if(angular.isArray(haystack)) {
- var tempArr = angular.copy(haystack);
- for (var i = 0; i <tempArr.length; i++) {
- // handle the simple string version of tagging
- if ( $select.tagging.fct === undefined ) {
- // search the array for the match
- if ( tempArr[i]+' '+$select.taggingLabel === needle ) {
- dupeIndex = i;
- }
- // handle the object tagging implementation
- } else {
- var mockObj = tempArr[i];
- if (angular.isObject(mockObj)) {
- mockObj.isTag = true;
- }
- if ( angular.equals(mockObj, needle) ) {
- dupeIndex = i;
- }
- }
- }
- }
- return dupeIndex;
- }
-
- $select.searchInput.on('blur', function() {
- $timeout(function() {
- $selectMultiple.activeMatchIndex = -1;
- });
- });
-
- }
- };
-}]);
-
-uis.directive('uiSelectNoChoice',
- ['uiSelectConfig', function (uiSelectConfig) {
- return {
- restrict: 'EA',
- require: '^uiSelect',
- replace: true,
- transclude: true,
- templateUrl: function (tElement) {
- // Gets theme attribute from parent (ui-select)
- var theme = tElement.parent().attr('theme') || uiSelectConfig.theme;
- return theme + '/no-choice.tpl.html';
- }
- };
- }]);
-uis.directive('uiSelectSingle', ['$timeout','$compile', function($timeout, $compile) {
- return {
- restrict: 'EA',
- require: ['^uiSelect', '^ngModel'],
- link: function(scope, element, attrs, ctrls) {
-
- var $select = ctrls[0];
- var ngModel = ctrls[1];
-
- //From view --> model
- ngModel.$parsers.unshift(function (inputValue) {
- var locals = {},
- result;
- locals[$select.parserResult.itemName] = inputValue;
- result = $select.parserResult.modelMapper(scope, locals);
- return result;
- });
-
- //From model --> view
- ngModel.$formatters.unshift(function (inputValue) {
- var data = $select.parserResult && $select.parserResult.source (scope, { $select : {search:''}}), //Overwrite $search
- locals = {},
- result;
- if (data){
- var checkFnSingle = function(d){
- locals[$select.parserResult.itemName] = d;
- result = $select.parserResult.modelMapper(scope, locals);
- return result === inputValue;
- };
- //If possible pass same object stored in $select.selected
- if ($select.selected && checkFnSingle($select.selected)) {
- return $select.selected;
- }
- for (var i = data.length - 1; i >= 0; i--) {
- if (checkFnSingle(data[i])) return data[i];
- }
- }
- return inputValue;
- });
-
- //Update viewValue if model change
- scope.$watch('$select.selected', function(newValue) {
- if (ngModel.$viewValue !== newValue) {
- ngModel.$setViewValue(newValue);
- }
- });
-
- ngModel.$render = function() {
- $select.selected = ngModel.$viewValue;
- };
-
- scope.$on('uis:select', function (event, item) {
- $select.selected = item;
- });
-
- scope.$on('uis:close', function (event, skipFocusser) {
- $timeout(function(){
- $select.focusser.prop('disabled', false);
- if (!skipFocusser) $select.focusser[0].focus();
- },0,false);
- });
-
- scope.$on('uis:activate', function () {
- focusser.prop('disabled', true); //Will reactivate it on .close()
- });
-
- //Idea from: https://github.com/ivaynberg/select2/blob/79b5bf6db918d7560bdd959109b7bcfb47edaf43/select2.js#L1954
- var focusser = angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");
- $compile(focusser)(scope);
- $select.focusser = focusser;
-
- //Input that will handle focus
- $select.focusInput = focusser;
-
- element.parent().append(focusser);
- focusser.bind("focus", function(){
- scope.$evalAsync(function(){
- $select.focus = true;
- });
- });
- focusser.bind("blur", function(){
- scope.$evalAsync(function(){
- $select.focus = false;
- });
- });
- focusser.bind("keydown", function(e){
-
- if (e.which === KEY.BACKSPACE) {
- e.preventDefault();
- e.stopPropagation();
- $select.select(undefined);
- scope.$apply();
- return;
- }
-
- if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC) {
- return;
- }
-
- if (e.which == KEY.DOWN || e.which == KEY.UP || e.which == KEY.ENTER || e.which == KEY.SPACE){
- e.preventDefault();
- e.stopPropagation();
- $select.activate();
- }
-
- scope.$digest();
- });
-
- focusser.bind("keyup input", function(e){
-
- if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || e.which == KEY.ENTER || e.which === KEY.BACKSPACE) {
- return;
- }
-
- $select.activate(focusser.val()); //User pressed some regular key, so we pass it to the search input
- focusser.val('');
- scope.$digest();
-
- });
-
-
- }
- };
-}]);
-
-// Make multiple matches sortable
-uis.directive('uiSelectSort', ['$timeout', 'uiSelectConfig', 'uiSelectMinErr', function($timeout, uiSelectConfig, uiSelectMinErr) {
- return {
- require: ['^^uiSelect', '^ngModel'],
- link: function(scope, element, attrs, ctrls) {
- if (scope[attrs.uiSelectSort] === null) {
- throw uiSelectMinErr('sort', 'Expected a list to sort');
- }
-
- var $select = ctrls[0];
- var $ngModel = ctrls[1];
-
- var options = angular.extend({
- axis: 'horizontal'
- },
- scope.$eval(attrs.uiSelectSortOptions));
-
- var axis = options.axis;
- var draggingClassName = 'dragging';
- var droppingClassName = 'dropping';
- var droppingBeforeClassName = 'dropping-before';
- var droppingAfterClassName = 'dropping-after';
-
- scope.$watch(function(){
- return $select.sortable;
- }, function(newValue){
- if (newValue) {
- element.attr('draggable', true);
- } else {
- element.removeAttr('draggable');
- }
- });
-
- element.on('dragstart', function(event) {
- element.addClass(draggingClassName);
-
- (event.dataTransfer || event.originalEvent.dataTransfer).setData('text', scope.$index.toString());
- });
-
- element.on('dragend', function() {
- removeClass(draggingClassName);
- });
-
- var move = function(from, to) {
- /*jshint validthis: true */
- this.splice(to, 0, this.splice(from, 1)[0]);
- };
-
- var removeClass = function(className) {
- angular.forEach($select.$element.querySelectorAll('.' + className), function(el){
- angular.element(el).removeClass(className);
- });
- };
-
- var dragOverHandler = function(event) {
- event.preventDefault();
-
- var offset = axis === 'vertical' ? event.offsetY || event.layerY || (event.originalEvent ? event.originalEvent.offsetY : 0) : event.offsetX || event.layerX || (event.originalEvent ? event.originalEvent.offsetX : 0);
-
- if (offset < (this[axis === 'vertical' ? 'offsetHeight' : 'offsetWidth'] / 2)) {
- removeClass(droppingAfterClassName);
- element.addClass(droppingBeforeClassName);
-
- } else {
- removeClass(droppingBeforeClassName);
- element.addClass(droppingAfterClassName);
- }
- };
-
- var dropTimeout;
-
- var dropHandler = function(event) {
- event.preventDefault();
-
- var droppedItemIndex = parseInt((event.dataTransfer || event.originalEvent.dataTransfer).getData('text'), 10);
-
- // prevent event firing multiple times in firefox
- $timeout.cancel(dropTimeout);
- dropTimeout = $timeout(function() {
- _dropHandler(droppedItemIndex);
- }, 20);
- };
-
- var _dropHandler = function(droppedItemIndex) {
- var theList = scope.$eval(attrs.uiSelectSort);
- var itemToMove = theList[droppedItemIndex];
- var newIndex = null;
-
- if (element.hasClass(droppingBeforeClassName)) {
- if (droppedItemIndex < scope.$index) {
- newIndex = scope.$index - 1;
- } else {
- newIndex = scope.$index;
- }
- } else {
- if (droppedItemIndex < scope.$index) {
- newIndex = scope.$index;
- } else {
- newIndex = scope.$index + 1;
- }
- }
-
- move.apply(theList, [droppedItemIndex, newIndex]);
-
- $ngModel.$setViewValue(Date.now());
-
- scope.$apply(function() {
- scope.$emit('uiSelectSort:change', {
- array: theList,
- item: itemToMove,
- from: droppedItemIndex,
- to: newIndex
- });
- });
-
- removeClass(droppingClassName);
- removeClass(droppingBeforeClassName);
- removeClass(droppingAfterClassName);
-
- element.off('drop', dropHandler);
- };
-
- element.on('dragenter', function() {
- if (element.hasClass(draggingClassName)) {
- return;
- }
-
- element.addClass(droppingClassName);
-
- element.on('dragover', dragOverHandler);
- element.on('drop', dropHandler);
- });
-
- element.on('dragleave', function(event) {
- if (event.target != element) {
- return;
- }
-
- removeClass(droppingClassName);
- removeClass(droppingBeforeClassName);
- removeClass(droppingAfterClassName);
-
- element.off('dragover', dragOverHandler);
- element.off('drop', dropHandler);
- });
- }
- };
-}]);
-
-/**
- * Parses "repeat" attribute.
- *
- * Taken from AngularJS ngRepeat source code
- * See https://github.com/angular/angular.js/blob/v1.2.15/src/ng/directive/ngRepeat.js#L211
- *
- * Original discussion about parsing "repeat" attribute instead of fully relying on ng-repeat:
- * https://github.com/angular-ui/ui-select/commit/5dd63ad#commitcomment-5504697
- */
-
-uis.service('uisRepeatParser', ['uiSelectMinErr','$parse', function(uiSelectMinErr, $parse) {
- var self = this;
-
- /**
- * Example:
- * expression = "address in addresses | filter: {street: $select.search} track by $index"
- * itemName = "address",
- * source = "addresses | filter: {street: $select.search}",
- * trackByExp = "$index",
- */
- self.parse = function(expression) {
-
-
- var match;
- //var isObjectCollection = /\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)/.test(expression);
- // If an array is used as collection
-
- // if (isObjectCollection){
- // 000000000000000000000000000000111111111000000000000000222222222222220033333333333333333333330000444444444444444444000000000000000055555555555000000000000000000000066666666600000000
- match = expression.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);
-
- // 1 Alias
- // 2 Item
- // 3 Key on (key,value)
- // 4 Value on (key,value)
- // 5 Source expression (including filters)
- // 6 Track by
-
- if (!match) {
- throw uiSelectMinErr('iexp', "Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",
- expression);
- }
-
- var source = match[5],
- filters = '';
-
- // When using (key,value) ui-select requires filters to be extracted, since the object
- // is converted to an array for $select.items
- // (in which case the filters need to be reapplied)
- if (match[3]) {
- // Remove any enclosing parenthesis
- source = match[5].replace(/(^\()|(\)$)/g, '');
- // match all after | but not after ||
- var filterMatch = match[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);
- if(filterMatch && filterMatch[1].trim()) {
- filters = filterMatch[1];
- source = source.replace(filters, '');
- }
- }
-
- return {
- itemName: match[4] || match[2], // (lhs) Left-hand side,
- keyName: match[3], //for (key, value) syntax
- source: $parse(source),
- filters: filters,
- trackByExp: match[6],
- modelMapper: $parse(match[1] || match[4] || match[2]),
- repeatExpression: function (grouped) {
- var expression = this.itemName + ' in ' + (grouped ? '$group.items' : '$select.items');
- if (this.trackByExp) {
- expression += ' track by ' + this.trackByExp;
- }
- return expression;
- }
- };
-
- };
-
- self.getGroupNgRepeatExpression = function() {
- return '$group in $select.groups';
- };
-
-}]);
-
-}());
-angular.module("ui.select").run(["$templateCache", function($templateCache) {$templateCache.put("bootstrap/choices.tpl.html","<ul class=\"ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu\" role=\"listbox\" ng-show=\"$select.open && $select.items.length > 0\"><li class=\"ui-select-choices-group\" id=\"ui-select-choices-{{ $select.generatedId }}\"><div class=\"divider\" ng-show=\"$select.isGrouped && $index > 0\"></div><div ng-show=\"$select.isGrouped\" class=\"ui-select-choices-group-label dropdown-header\" ng-bind=\"$group.name\"></div><div ng-attr-id=\"ui-select-choices-row-{{ $select.generatedId }}-{{$index}}\" class=\"ui-select-choices-row\" ng-class=\"{active: $select.isActive(this), disabled: $select.isDisabled(this)}\" role=\"option\"><a href=\"\" class=\"ui-select-choices-row-inner\"></a></div></li></ul>");
-$templateCache.put("bootstrap/match-multiple.tpl.html","<span class=\"ui-select-match\"><span ng-repeat=\"$item in $select.selected\"><span class=\"ui-select-match-item btn btn-default btn-xs\" tabindex=\"-1\" type=\"button\" ng-disabled=\"$select.disabled\" ng-click=\"$selectMultiple.activeMatchIndex = $index;\" ng-class=\"{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}\" ui-select-sort=\"$select.selected\"><span class=\"close ui-select-match-close\" ng-hide=\"$select.disabled\" ng-click=\"$selectMultiple.removeChoice($index)\">&nbsp;&times;</span> <span uis-transclude-append=\"\"></span></span></span></span>");
-$templateCache.put("bootstrap/match.tpl.html","<div class=\"ui-select-match\" ng-hide=\"$select.open && $select.searchEnabled\" ng-disabled=\"$select.disabled\" ng-class=\"{\'btn-default-focus\':$select.focus}\"><span tabindex=\"-1\" class=\"btn btn-default form-control ui-select-toggle\" aria-label=\"{{ $select.baseTitle }} activate\" ng-disabled=\"$select.disabled\" ng-click=\"$select.activate()\" style=\"outline: 0;\"><span ng-show=\"$select.isEmpty()\" class=\"ui-select-placeholder text-muted\">{{$select.placeholder}}</span> <span ng-hide=\"$select.isEmpty()\" class=\"ui-select-match-text pull-left\" ng-class=\"{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}\" ng-transclude=\"\"></span> <i class=\"caret pull-right\" ng-click=\"$select.toggle($event)\"></i> <a ng-show=\"$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)\" aria-label=\"{{ $select.baseTitle }} clear\" style=\"margin-right: 10px\" ng-click=\"$select.clear($event)\" class=\"btn btn-xs btn-link pull-right\"><i class=\"glyphicon glyphicon-remove\" aria-hidden=\"true\"></i></a></span></div>");
-$templateCache.put("bootstrap/no-choice.tpl.html","<ul class=\"ui-select-no-choice dropdown-menu\" ng-show=\"$select.items.length == 0\"><li ng-transclude=\"\"></li></ul>");
-$templateCache.put("bootstrap/select-multiple.tpl.html","<div class=\"ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control\" ng-class=\"{open: $select.open}\"><div><div class=\"ui-select-match\"></div><input type=\"search\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" class=\"ui-select-search input-xs\" placeholder=\"{{$selectMultiple.getPlaceholder()}}\" ng-disabled=\"$select.disabled\" ng-hide=\"$select.disabled\" ng-click=\"$select.activate()\" ng-model=\"$select.search\" role=\"combobox\" aria-label=\"{{ $select.baseTitle }}\" ondrop=\"return false;\"></div><div class=\"ui-select-choices\"></div></div>");
-$templateCache.put("bootstrap/select.tpl.html","<div class=\"ui-select-container ui-select-bootstrap dropdown\" ng-class=\"{open: $select.open}\"><div class=\"ui-select-match\"></div><input type=\"search\" autocomplete=\"off\" tabindex=\"-1\" aria-expanded=\"true\" aria-label=\"{{ $select.baseTitle }}\" aria-owns=\"ui-select-choices-{{ $select.generatedId }}\" aria-activedescendant=\"ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}\" class=\"form-control ui-select-search\" placeholder=\"{{$select.placeholder}}\" ng-model=\"$select.search\" ng-show=\"$select.searchEnabled && $select.open\"><div class=\"ui-select-choices\"></div><div class=\"ui-select-no-choice\"></div></div>");
-$templateCache.put("select2/choices.tpl.html","<ul tabindex=\"-1\" class=\"ui-select-choices ui-select-choices-content select2-results\"><li class=\"ui-select-choices-group\" ng-class=\"{\'select2-result-with-children\': $select.choiceGrouped($group) }\"><div ng-show=\"$select.choiceGrouped($group)\" class=\"ui-select-choices-group-label select2-result-label\" ng-bind=\"$group.name\"></div><ul role=\"listbox\" id=\"ui-select-choices-{{ $select.generatedId }}\" ng-class=\"{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }\"><li role=\"option\" ng-attr-id=\"ui-select-choices-row-{{ $select.generatedId }}-{{$index}}\" class=\"ui-select-choices-row\" ng-class=\"{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}\"><div class=\"select2-result-label ui-select-choices-row-inner\"></div></li></ul></li></ul>");
-$templateCache.put("select2/match-multiple.tpl.html","<span class=\"ui-select-match\"><li class=\"ui-select-match-item select2-search-choice\" ng-repeat=\"$item in $select.selected\" ng-class=\"{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}\" ui-select-sort=\"$select.selected\"><span uis-transclude-append=\"\"></span> <a href=\"javascript:;\" class=\"ui-select-match-close select2-search-choice-close\" ng-click=\"$selectMultiple.removeChoice($index)\" tabindex=\"-1\"></a></li></span>");
-$templateCache.put("select2/match.tpl.html","<a class=\"select2-choice ui-select-match\" ng-class=\"{\'select2-default\': $select.isEmpty()}\" ng-click=\"$select.toggle($event)\" aria-label=\"{{ $select.baseTitle }} select\"><span ng-show=\"$select.isEmpty()\" class=\"select2-chosen\">{{$select.placeholder}}</span> <span ng-hide=\"$select.isEmpty()\" class=\"select2-chosen\" ng-transclude=\"\"></span> <abbr ng-if=\"$select.allowClear && !$select.isEmpty()\" class=\"select2-search-choice-close\" ng-click=\"$select.clear($event)\"></abbr> <span class=\"select2-arrow ui-select-toggle\"><b></b></span></a>");
-$templateCache.put("select2/select-multiple.tpl.html","<div class=\"ui-select-container ui-select-multiple select2 select2-container select2-container-multi\" ng-class=\"{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}\"><ul class=\"select2-choices\"><span class=\"ui-select-match\"></span><li class=\"select2-search-field\"><input type=\"search\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" role=\"combobox\" aria-expanded=\"true\" aria-owns=\"ui-select-choices-{{ $select.generatedId }}\" aria-label=\"{{ $select.baseTitle }}\" aria-activedescendant=\"ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}\" class=\"select2-input ui-select-search\" placeholder=\"{{$selectMultiple.getPlaceholder()}}\" ng-disabled=\"$select.disabled\" ng-hide=\"$select.disabled\" ng-model=\"$select.search\" ng-click=\"$select.activate()\" style=\"width: 34px;\" ondrop=\"return false;\"></li></ul><div class=\"ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active\" ng-class=\"{\'select2-display-none\': !$select.open || $select.items.length === 0}\"><div class=\"ui-select-choices\"></div></div></div>");
-$templateCache.put("select2/select.tpl.html","<div class=\"ui-select-container select2 select2-container\" ng-class=\"{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}\"><div class=\"ui-select-match\"></div><div class=\"ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active\" ng-class=\"{\'select2-display-none\': !$select.open}\"><div class=\"select2-search\" ng-show=\"$select.searchEnabled\"><input type=\"search\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" role=\"combobox\" aria-expanded=\"true\" aria-owns=\"ui-select-choices-{{ $select.generatedId }}\" aria-label=\"{{ $select.baseTitle }}\" aria-activedescendant=\"ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}\" class=\"ui-select-search select2-input\" ng-model=\"$select.search\"></div><div class=\"ui-select-choices\"></div></div></div>");
-$templateCache.put("selectize/choices.tpl.html","<div ng-show=\"$select.open\" class=\"ui-select-choices ui-select-dropdown selectize-dropdown single\"><div class=\"ui-select-choices-content selectize-dropdown-content\"><div class=\"ui-select-choices-group optgroup\" role=\"listbox\"><div ng-show=\"$select.isGrouped\" class=\"ui-select-choices-group-label optgroup-header\" ng-bind=\"$group.name\"></div><div role=\"option\" class=\"ui-select-choices-row\" ng-class=\"{active: $select.isActive(this), disabled: $select.isDisabled(this)}\"><div class=\"option ui-select-choices-row-inner\" data-selectable=\"\"></div></div></div></div></div>");
-$templateCache.put("selectize/match.tpl.html","<div ng-hide=\"$select.searchEnabled && ($select.open || $select.isEmpty())\" class=\"ui-select-match\" ng-transclude=\"\"></div>");
-$templateCache.put("selectize/select.tpl.html","<div class=\"ui-select-container selectize-control single\" ng-class=\"{\'open\': $select.open}\"><div class=\"selectize-input\" ng-class=\"{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}\" ng-click=\"$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()\"><div class=\"ui-select-match\"></div><input type=\"search\" autocomplete=\"off\" tabindex=\"-1\" class=\"ui-select-search ui-select-toggle\" ng-click=\"$select.toggle($event)\" placeholder=\"{{$select.placeholder}}\" ng-model=\"$select.search\" ng-hide=\"!$select.searchEnabled || ($select.selected && !$select.open)\" ng-disabled=\"$select.disabled\" aria-label=\"{{ $select.baseTitle }}\"></div><div class=\"ui-select-choices\"></div></div>");}]); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/dist/select.min.css b/ecomp-portal-FE/client/bower_components/ui-select/dist/select.min.css
deleted file mode 100644
index 9161faf3..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/dist/select.min.css
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * ui-select
- * http://github.com/angular-ui/ui-select
- * Version: 0.17.1 - 2016-05-16T19:31:33.034Z
- * License: MIT
- */.ui-select-highlight{font-weight:700}.ui-select-offscreen{clip:rect(0 0 0 0)!important;width:1px!important;height:1px!important;border:0!important;margin:0!important;padding:0!important;overflow:hidden!important;position:absolute!important;outline:0!important;left:0!important;top:0!important}.ui-select-choices-row:hover{background-color:#f5f5f5}.ng-dirty.ng-invalid>a.select2-choice{border-color:#D44950}.select2-result-single{padding-left:0}.select-locked>.ui-select-match-close,.select2-locked>.select2-search-choice-close{display:none}body>.select2-container.open{z-index:9999}.ui-select-container[theme=select2].direction-up .ui-select-match{border-radius:0 0 4px 4px}.ui-select-container[theme=select2].direction-up .ui-select-dropdown{border-radius:4px 4px 0 0;border-top-width:1px;border-top-style:solid;box-shadow:0 -4px 8px rgba(0,0,0,.25);margin-top:-4px}.ui-select-container[theme=select2].direction-up .ui-select-dropdown .select2-search{margin-top:4px}.ui-select-container[theme=select2].direction-up.select2-dropdown-open .ui-select-match{border-bottom-color:#5897fb}.selectize-input.selectize-focus{border-color:#007FBB!important}.selectize-control>.selectize-dropdown,.selectize-control>.selectize-input>input{width:100%}.ng-dirty.ng-invalid>div.selectize-input{border-color:#D44950}.ui-select-container[theme=selectize].direction-up .ui-select-dropdown{box-shadow:0 -4px 8px rgba(0,0,0,.25);margin-top:-2px}.btn-default-focus{color:#333;background-color:#EBEBEB;border-color:#ADADAD;text-decoration:none;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ui-select-bootstrap .ui-select-toggle{position:relative}.ui-select-bootstrap .ui-select-toggle>.caret{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.input-group>.ui-select-bootstrap.dropdown{position:static}.input-group>.ui-select-bootstrap>input.ui-select-search.form-control{border-radius:4px 0 0 4px}.input-group>.ui-select-bootstrap>input.ui-select-search.form-control.direction-up{border-radius:4px 0 0 4px!important}.ui-select-bootstrap>.ui-select-match>.btn{text-align:left!important}.ui-select-bootstrap>.ui-select-match>.caret{position:absolute;top:45%;right:15px}.ui-select-bootstrap>.ui-select-choices,.ui-select-bootstrap>.ui-select-no-choice{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:-1px}body>.ui-select-bootstrap.open{z-index:1000}.ui-select-multiple.ui-select-bootstrap{height:auto;padding:3px 3px 0}.ui-select-multiple.ui-select-bootstrap input.ui-select-search{background-color:transparent!important;border:none;outline:0;height:1.666666em;margin-bottom:3px}.ui-select-multiple.ui-select-bootstrap .ui-select-match .close{font-size:1.6em;line-height:.75}.ui-select-multiple.ui-select-bootstrap .ui-select-match-item{outline:0;margin:0 3px 3px 0}.ui-select-multiple .ui-select-match-item{position:relative}.ui-select-multiple .ui-select-match-item.dropping .ui-select-match-close{pointer-events:none}.ui-select-multiple:hover .ui-select-match-item.dropping-before:before{content:"";position:absolute;top:0;right:100%;height:100%;margin-right:2px;border-left:1px solid #428bca}.ui-select-multiple:hover .ui-select-match-item.dropping-after:after{content:"";position:absolute;top:0;left:100%;height:100%;margin-left:2px;border-right:1px solid #428bca}.ui-select-bootstrap .ui-select-choices-row>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.ui-select-bootstrap .ui-select-choices-row>a:focus,.ui-select-bootstrap .ui-select-choices-row>a:hover{text-decoration:none;color:#262626;background-color:#f5f5f5}.ui-select-bootstrap .ui-select-choices-row.active>a{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.ui-select-bootstrap .ui-select-choices-row.active.disabled>a,.ui-select-bootstrap .ui-select-choices-row.disabled>a{color:#777;cursor:not-allowed;background-color:#fff}.ui-select-match.ng-hide-add,.ui-select-search.ng-hide-add{display:none!important}.ui-select-bootstrap.ng-dirty.ng-invalid>button.btn.ui-select-match{border-color:#D44950}.ui-select-container[theme=bootstrap].direction-up .ui-select-dropdown{box-shadow:0 -4px 8px rgba(0,0,0,.25)}
-/*# sourceMappingURL=select.min.css.map */
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/dist/select.min.js b/ecomp-portal-FE/client/bower_components/ui-select/dist/select.min.js
deleted file mode 100644
index c07bf7d9..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/dist/select.min.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * ui-select
- * http://github.com/angular-ui/ui-select
- * Version: 0.17.1 - 2016-05-16T19:31:32.352Z
- * License: MIT
- */
-!function(){"use strict";var e={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(t){var i=t.which;switch(i){case e.COMMAND:case e.SHIFT:case e.CTRL:case e.ALT:return!0}return!!(t.metaKey||t.ctrlKey||t.altKey)},isFunctionKey:function(e){return e=e.which?e.which:e,e>=112&&123>=e},isVerticalMovement:function(t){return~[e.UP,e.DOWN].indexOf(t)},isHorizontalMovement:function(t){return~[e.LEFT,e.RIGHT,e.BACKSPACE,e.DELETE].indexOf(t)},toSeparator:function(t){var i={ENTER:"\n",TAB:" ",SPACE:" "}[t];return i?i:e[t]?void 0:t}};void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(e){return angular.element(this[0].querySelectorAll(e))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(e){for(var t=this[0],i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(i.bind(t)(e))return t;t=t.parentElement}return!1});var t=0,i=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",generateId:function(){return t++},appendToBody:!1}).service("uiSelectMinErr",function(){var e=angular.$$minErr("ui.select");return function(){var t=e.apply(this,arguments),i=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(i)}}).directive("uisTranscludeAppend",function(){return{link:function(e,t,i,c,s){s(e,function(e){t.append(e)})}}}).filter("highlight",function(){function e(e){return(""+e).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i&&t?(""+t).replace(new RegExp(e(i),"gi"),'<span class="ui-select-highlight">$&</span>'):t}}).factory("uisOffset",["$document","$window",function(e,t){return function(i){var c=i[0].getBoundingClientRect();return{width:c.width||i.prop("offsetWidth"),height:c.height||i.prop("offsetHeight"),top:c.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:c.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}]);i.factory("$$uisDebounce",["$timeout",function(e){return function(t,i){var c;return function(){var s=this,l=Array.prototype.slice.call(arguments);c&&e.cancel(c),c=e(function(){t.apply(s,l)},i)}}}]),i.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(e,t,i,c,s){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-choices");var i=t.parent().attr("theme")||e.theme;return i+"/choices.tpl.html"},compile:function(c,l){if(!l.repeat)throw i("repeat","Expected 'repeat' expression.");var n=l.groupBy,a=l.groupFilter;if(n){var r=c.querySelectorAll(".ui-select-choices-group");if(1!==r.length)throw i("rows","Expected 1 .ui-select-choices-group but got '{0}'.",r.length);r.attr("ng-repeat",t.getGroupNgRepeatExpression())}var o=t.parse(l.repeat),u=c.querySelectorAll(".ui-select-choices-row");if(1!==u.length)throw i("rows","Expected 1 .ui-select-choices-row but got '{0}'.",u.length);u.attr("ng-repeat",o.repeatExpression(n)).attr("ng-if","$select.open");var d=c.querySelectorAll(".ui-select-choices-row-inner");if(1!==d.length)throw i("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",d.length);d.attr("uis-transclude-append","");var p=s.document.addEventListener?u:d;return p.attr("ng-click","$select.select("+o.itemName+",$select.skipFocusser,$event)"),function(t,i,c,s){s.parseRepeatAttr(c.repeat,n,a),s.disableChoiceExpression=c.uiDisableChoice,s.onHighlightCallback=c.onHighlight,s.dropdownPosition=c.position?c.position.toLowerCase():e.dropdownPosition,t.$on("$destroy",function(){u.remove()}),t.$watch("$select.search",function(e){e&&!s.open&&s.multiple&&s.activate(!1,!0),s.activeIndex=s.tagging.isActivated?-1:0,!c.minimumInputLength||s.search.length>=c.minimumInputLength?s.refresh(c.refresh):s.items=[]}),c.$observe("refreshDelay",function(){var i=t.$eval(c.refreshDelay);s.refreshDelay=void 0!==i?i:e.refreshDelay})}}}}]),i.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(t,i,c,s,l,n,a,r,o,u,d){function p(e,t,i){if(e.findIndex)return e.findIndex(t,i);for(var c,s=Object(e),l=s.length>>>0,n=0;l>n;n++)if(c=s[n],t.call(i,c,n,s))return n;return-1}function h(){(m.resetSearchInput||void 0===m.resetSearchInput&&r.resetSearchInput)&&(m.search=$,m.selected&&m.items.length&&!m.multiple&&(m.activeIndex=p(m.items,function(e){return angular.equals(this,e)},m.selected)))}function g(e,t){var i,c,s=[];for(i=0;i<t.length;i++)for(c=0;c<e.length;c++)e[c].name==[t[i]]&&s.push(e[c]);return s}function f(t){var i=!0;switch(t){case e.DOWN:!m.open&&m.multiple?m.activate(!1,!0):m.activeIndex<m.items.length-1&&m.activeIndex++;break;case e.UP:!m.open&&m.multiple?m.activate(!1,!0):(m.activeIndex>0||0===m.search.length&&m.tagging.isActivated&&m.activeIndex>-1)&&m.activeIndex--;break;case e.TAB:m.multiple&&!m.open||m.select(m.items[m.activeIndex],!0);break;case e.ENTER:m.open&&(m.tagging.isActivated||m.activeIndex>=0)?m.select(m.items[m.activeIndex],m.skipFocusser):m.activate(!1,!0);break;case e.ESC:m.close();break;default:i=!1}return i}function v(){var e=i.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw a("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!(m.activeIndex<0)){var c=t[m.activeIndex],s=c.offsetTop+c.clientHeight-e[0].scrollTop,l=e[0].offsetHeight;s>l?e[0].scrollTop+=s-l:s<c.clientHeight&&(m.isGrouped&&0===m.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=c.clientHeight-s)}}var m=this,$="";if(m.placeholder=r.placeholder,m.searchEnabled=r.searchEnabled,m.sortable=r.sortable,m.refreshDelay=r.refreshDelay,m.paste=r.paste,m.removeSelected=!1,m.closeOnSelect=!0,m.skipFocusser=!1,m.search=$,m.activeIndex=0,m.items=[],m.open=!1,m.focus=!1,m.disabled=!1,m.selected=void 0,m.dropdownPosition="auto",m.focusser=void 0,m.resetSearchInput=!0,m.multiple=void 0,m.disableChoiceExpression=void 0,m.tagging={isActivated:!1,fct:void 0},m.taggingTokens={isActivated:!1,tokens:void 0},m.lockChoiceExpression=void 0,m.clickTriggeredSelect=!1,m.$filter=s,m.$element=i,m.$animate=function(){try{return u.get("$animate")}catch(e){return null}}(),m.searchInput=i.querySelectorAll("input.ui-select-search"),1!==m.searchInput.length)throw a("searchInput","Expected 1 input.ui-select-search but got '{0}'.",m.searchInput.length);m.isEmpty=function(){return angular.isUndefined(m.selected)||null===m.selected||""===m.selected||m.multiple&&0===m.selected.length},m.activate=function(e,s){if(!m.disabled&&!m.open){s||h(),t.$broadcast("uis:activate"),m.open=!0,m.activeIndex=m.activeIndex>=m.items.length?0:m.activeIndex,-1===m.activeIndex&&m.taggingLabel!==!1&&(m.activeIndex=0);var l=i.querySelectorAll(".ui-select-choices-content"),n=i.querySelectorAll(".ui-select-search");if(m.$animate&&m.$animate.enabled(l[0])){var a=function(t,i){"start"===i&&0===m.items.length?(m.$animate.off("removeClass",n[0],a),c(function(){m.focusSearchInput(e)})):"close"===i&&(m.$animate.off("enter",l[0],a),c(function(){m.focusSearchInput(e)}))};m.items.length>0?m.$animate.on("enter",l[0],a):m.$animate.on("removeClass",n[0],a)}else c(function(){m.focusSearchInput(e),!m.tagging.isActivated&&m.items.length>1&&v()})}},m.focusSearchInput=function(e){m.search=e||m.search,m.searchInput[0].focus()},m.findGroupByName=function(e){return m.groups&&m.groups.filter(function(t){return t.name===e})[0]},m.parseRepeatAttr=function(e,i,c){function s(e){var s=t.$eval(i);if(m.groups=[],angular.forEach(e,function(e){var t=angular.isFunction(s)?s(e):e[s],i=m.findGroupByName(t);i?i.items.push(e):m.groups.push({name:t,items:[e]})}),c){var l=t.$eval(c);angular.isFunction(l)?m.groups=l(m.groups):angular.isArray(l)&&(m.groups=g(m.groups,l))}m.items=[],m.groups.forEach(function(e){m.items=m.items.concat(e.items)})}function l(e){m.items=e}m.setItemsFn=i?s:l,m.parserResult=n.parse(e),m.isGrouped=!!i,m.itemProperty=m.parserResult.itemName;var r=m.parserResult.source,u=function(){var e=r(t);t.$uisSource=Object.keys(e).map(function(t){var i={};return i[m.parserResult.keyName]=t,i.value=e[t],i})};m.parserResult.keyName&&(u(),m.parserResult.source=o("$uisSource"+m.parserResult.filters),t.$watch(r,function(e,t){e!==t&&u()},!0)),m.refreshItems=function(e){e=e||m.parserResult.source(t);var i=m.selected;if(m.isEmpty()||angular.isArray(i)&&!i.length||!m.removeSelected)m.setItemsFn(e);else if(void 0!==e){var c=e.filter(function(e){return i.every(function(t){return!angular.equals(e,t)})});m.setItemsFn(c)}"auto"!==m.dropdownPosition&&"up"!==m.dropdownPosition||t.calculateDropdownPos()},t.$watchCollection(m.parserResult.source,function(e){if(void 0===e||null===e)m.items=[];else{if(!angular.isArray(e))throw a("items","Expected an array but got '{0}'.",e);m.refreshItems(e),angular.isDefined(m.ngModel.$modelValue)&&(m.ngModel.$modelValue=null)}})};var b;m.refresh=function(e){void 0!==e&&(b&&c.cancel(b),b=c(function(){t.$eval(e)},m.refreshDelay))},m.isActive=function(e){if(!m.open)return!1;var t=m.items.indexOf(e[m.itemProperty]),i=t==m.activeIndex;return!i||0>t?!1:(i&&!angular.isUndefined(m.onHighlightCallback)&&e.$eval(m.onHighlightCallback),i)},m.isDisabled=function(e){if(m.open){var t,i=m.items.indexOf(e[m.itemProperty]),c=!1;return i>=0&&!angular.isUndefined(m.disableChoiceExpression)&&(t=m.items[i],c=!!e.$eval(m.disableChoiceExpression),t._uiSelectChoiceDisabled=c),c}},m.select=function(e,i,s){if(void 0===e||!e._uiSelectChoiceDisabled){if(!m.items&&!m.search&&!m.tagging.isActivated)return;if(!e||!e._uiSelectChoiceDisabled){if(m.tagging.isActivated){if(m.taggingLabel===!1)if(m.activeIndex<0){if(e=void 0!==m.tagging.fct?m.tagging.fct(m.search):m.search,!e||angular.equals(m.items[0],e))return}else e=m.items[m.activeIndex];else if(0===m.activeIndex){if(void 0===e)return;if(void 0!==m.tagging.fct&&"string"==typeof e){if(e=m.tagging.fct(e),!e)return}else"string"==typeof e&&(e=e.replace(m.taggingLabel,"").trim())}if(m.selected&&angular.isArray(m.selected)&&m.selected.filter(function(t){return angular.equals(t,e)}).length>0)return void m.close(i)}t.$broadcast("uis:select",e);var l={};l[m.parserResult.itemName]=e,c(function(){m.onSelectCallback(t,{$item:e,$model:m.parserResult.modelMapper(t,l)})}),m.closeOnSelect&&m.close(i),s&&"click"===s.type&&(m.clickTriggeredSelect=!0)}}},m.close=function(e){m.open&&(m.ngModel&&m.ngModel.$setTouched&&m.ngModel.$setTouched(),h(),m.open=!1,t.$broadcast("uis:close",e))},m.setFocus=function(){m.focus||m.focusInput[0].focus()},m.clear=function(e){m.select(void 0),e.stopPropagation(),c(function(){m.focusser[0].focus()},0,!1)},m.toggle=function(e){m.open?(m.close(),e.preventDefault(),e.stopPropagation()):m.activate()},m.isLocked=function(e,t){var i,c=m.selected[t];return c&&!angular.isUndefined(m.lockChoiceExpression)&&(i=!!e.$eval(m.lockChoiceExpression),c._uiSelectChoiceLocked=i),i};var w=null,y=!1;m.sizeSearchInput=function(){var e=m.searchInput[0],i=m.searchInput.parent().parent()[0],s=function(){return i.clientWidth*!!e.offsetParent},l=function(t){if(0===t)return!1;var i=t-e.offsetLeft-10;return 50>i&&(i=t),m.searchInput.css("width",i+"px"),!0};m.searchInput.css("width","10px"),c(function(){null!==w||l(s())||(w=t.$watch(angular.noop,function(){y||(y=!0,t.$$postDigest(function(){y=!1,l(s())&&(w(),w=null)}))}))})},m.searchInput.on("keydown",function(i){var s=i.which;~[e.ENTER,e.ESC].indexOf(s)&&(i.preventDefault(),i.stopPropagation()),t.$apply(function(){var t=!1;if((m.items.length>0||m.tagging.isActivated)&&(f(s),m.taggingTokens.isActivated)){for(var l=0;l<m.taggingTokens.tokens.length;l++)m.taggingTokens.tokens[l]===e.MAP[i.keyCode]&&m.search.length>0&&(t=!0);t&&c(function(){m.searchInput.triggerHandler("tagged");var t=m.search.replace(e.MAP[i.keyCode],"").trim();m.tagging.fct&&(t=m.tagging.fct(t)),t&&m.select(t,!0)})}}),e.isVerticalMovement(s)&&m.items.length>0&&v(),s!==e.ENTER&&s!==e.ESC||(i.preventDefault(),i.stopPropagation())}),m.searchInput.on("paste",function(t){var i;if(i=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(t.originalEvent||t).clipboardData.getData("text/plain"),i=m.search+i,i&&i.length>0)if(m.taggingTokens.isActivated){for(var c=[],s=0;s<m.taggingTokens.tokens.length;s++){var l=e.toSeparator(m.taggingTokens.tokens[s])||m.taggingTokens.tokens[s];if(i.indexOf(l)>-1){c=i.split(l);break}}if(0===c.length&&(c=[i]),c.length>0){var n=m.search;angular.forEach(c,function(e){var t=m.tagging.fct?m.tagging.fct(e):e;t&&m.select(t,!0)}),m.search=n||$,t.preventDefault(),t.stopPropagation()}}else m.paste&&(m.paste(i),m.search=$,t.preventDefault(),t.stopPropagation())}),m.searchInput.on("tagged",function(){c(function(){h()})});var x=l(function(){m.sizeSearchInput()},50);angular.element(d).bind("resize",x),t.$on("$destroy",function(){m.searchInput.off("keyup keydown tagged blur paste"),angular.element(d).off("resize",x)})}]),i.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(e,t,i,c,s,l,n){return{restrict:"EA",templateUrl:function(e,i){var c=i.theme||t.theme;return c+(angular.isDefined(i.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(s,a){var r=/{(.*)}\s*{(.*)}/.exec(a.ngClass);if(r){var o="{"+r[1]+", "+r[2]+"}";a.ngClass=o,s.attr("ng-class",o)}return angular.isDefined(a.multiple)?s.append("<ui-select-multiple/>").removeAttr("multiple"):s.append("<ui-select-single/>"),a.inputId&&(s.querySelectorAll("input.ui-select-search")[0].id=a.inputId),function(s,a,r,o,u){function d(e){if(g.open){var t=!1;if(t=window.jQuery?window.jQuery.contains(a[0],e.target):a[0].contains(e.target),!t&&!g.clickTriggeredSelect){var i;if(g.skipFocusser)i=!0;else{var c=["input","button","textarea","select"],l=angular.element(e.target).controller("uiSelect");i=l&&l!==g,i||(i=~c.indexOf(e.target.tagName.toLowerCase()))}g.close(i),s.$digest()}g.clickTriggeredSelect=!1}}function p(){var t=c(a);m=angular.element('<div class="ui-select-placeholder"></div>'),m[0].style.width=t.width+"px",m[0].style.height=t.height+"px",a.after(m),$=a[0].style.width,e.find("body").append(a),a[0].style.position="absolute",a[0].style.left=t.left+"px",a[0].style.top=t.top+"px",a[0].style.width=t.width+"px"}function h(){null!==m&&(m.replaceWith(a),m=null,a[0].style.position="",a[0].style.left="",a[0].style.top="",a[0].style.width=$,g.setFocus())}var g=o[0],f=o[1];g.generatedId=t.generateId(),g.baseTitle=r.title||"Select box",g.focusserTitle=g.baseTitle+" focus",g.focusserId="focusser-"+g.generatedId,g.closeOnSelect=function(){return angular.isDefined(r.closeOnSelect)?l(r.closeOnSelect)():t.closeOnSelect}(),s.$watch("skipFocusser",function(){var e=s.$eval(r.skipFocusser);g.skipFocusser=void 0!==e?e:t.skipFocusser}),g.onSelectCallback=l(r.onSelect),g.onRemoveCallback=l(r.onRemove),g.limit=angular.isDefined(r.limit)?parseInt(r.limit,10):void 0,g.ngModel=f,g.choiceGrouped=function(e){return g.isGrouped&&e&&e.name},r.tabindex&&r.$observe("tabindex",function(e){g.focusInput.attr("tabindex",e),a.removeAttr("tabindex")}),s.$watch("searchEnabled",function(){var e=s.$eval(r.searchEnabled);g.searchEnabled=void 0!==e?e:t.searchEnabled}),s.$watch("sortable",function(){var e=s.$eval(r.sortable);g.sortable=void 0!==e?e:t.sortable}),r.$observe("disabled",function(){g.disabled=void 0!==r.disabled?r.disabled:!1}),r.$observe("resetSearchInput",function(){var e=s.$eval(r.resetSearchInput);g.resetSearchInput=void 0!==e?e:!0}),r.$observe("paste",function(){g.paste=s.$eval(r.paste)}),r.$observe("tagging",function(){if(void 0!==r.tagging){var e=s.$eval(r.tagging);g.tagging={isActivated:!0,fct:e!==!0?e:void 0}}else g.tagging={isActivated:!1,fct:void 0}}),r.$observe("taggingLabel",function(){void 0!==r.tagging&&("false"===r.taggingLabel?g.taggingLabel=!1:g.taggingLabel=void 0!==r.taggingLabel?r.taggingLabel:"(new)")}),r.$observe("taggingTokens",function(){if(void 0!==r.tagging){var e=void 0!==r.taggingTokens?r.taggingTokens.split("|"):[",","ENTER"];g.taggingTokens={isActivated:!0,tokens:e}}}),angular.isDefined(r.autofocus)&&n(function(){g.setFocus()}),angular.isDefined(r.focusOn)&&s.$on(r.focusOn,function(){n(function(){g.setFocus()})}),e.on("click",d),s.$on("$destroy",function(){e.off("click",d)}),u(s,function(e){var t=angular.element("<div>").append(e),c=t.querySelectorAll(".ui-select-match");if(c.removeAttr("ui-select-match"),c.removeAttr("data-ui-select-match"),1!==c.length)throw i("transcluded","Expected 1 .ui-select-match but got '{0}'.",c.length);a.querySelectorAll(".ui-select-match").replaceWith(c);var s=t.querySelectorAll(".ui-select-choices");if(s.removeAttr("ui-select-choices"),s.removeAttr("data-ui-select-choices"),1!==s.length)throw i("transcluded","Expected 1 .ui-select-choices but got '{0}'.",s.length);a.querySelectorAll(".ui-select-choices").replaceWith(s);var l=t.querySelectorAll(".ui-select-no-choice");l.removeAttr("ui-select-no-choice"),l.removeAttr("data-ui-select-no-choice"),1==l.length&&a.querySelectorAll(".ui-select-no-choice").replaceWith(l)});var v=s.$eval(r.appendToBody);(void 0!==v?v:t.appendToBody)&&(s.$watch("$select.open",function(e){e?p():h()}),s.$on("$destroy",function(){h()}));var m=null,$="",b=null,w="direction-up";s.$watch("$select.open",function(){"auto"!==g.dropdownPosition&&"up"!==g.dropdownPosition||s.calculateDropdownPos()});var y=function(e,t){e=e||c(a),t=t||c(b),b[0].style.position="absolute",b[0].style.top=-1*t.height+"px",a.addClass(w)},x=function(e,t){a.removeClass(w),e=e||c(a),t=t||c(b),b[0].style.position="",b[0].style.top=""};s.calculateDropdownPos=function(){if(g.open){if(b=angular.element(a).querySelectorAll(".ui-select-dropdown"),0===b.length)return;b[0].style.opacity=0,n(function(){if("up"===g.dropdownPosition)y();else{a.removeClass(w);var t=c(a),i=c(b),s=e[0].documentElement.scrollTop||e[0].body.scrollTop;t.top+t.height+i.height>s+e[0].documentElement.clientHeight?y(t,i):x(t,i)}b[0].style.opacity=1})}else{if(null===b||0===b.length)return;b[0].style.position="",b[0].style.top="",a.removeClass(w)}}}}}}]),i.directive("uiSelectMatch",["uiSelectConfig",function(e){function t(e,t){return e[0].hasAttribute(t)?e.attr(t):e[0].hasAttribute("data-"+t)?e.attr("data-"+t):e[0].hasAttribute("x-"+t)?e.attr("x-"+t):void 0}return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(i){i.addClass("ui-select-match");var c=i.parent(),s=t(c,"theme")||e.theme,l=angular.isDefined(t(c,"multiple"));return s+(l?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,i,c,s){function l(e){s.allowClear=angular.isDefined(e)?""===e?!0:"true"===e.toLowerCase():!1}s.lockChoiceExpression=c.uiLockChoice,c.$observe("placeholder",function(t){s.placeholder=void 0!==t?t:e.placeholder}),c.$observe("allowClear",l),l(c.allowClear),s.multiple&&s.sizeSearchInput()}}}]),i.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(t,i){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(e,t){var i,c=this,s=e.$select;angular.isUndefined(s.selected)&&(s.selected=[]),e.$evalAsync(function(){i=e.ngModel}),c.activeMatchIndex=-1,c.updateModel=function(){i.$setViewValue(Date.now()),c.refreshComponent()},c.refreshComponent=function(){s.refreshItems(),s.sizeSearchInput()},c.removeChoice=function(i){var l=s.selected[i];if(!l._uiSelectChoiceLocked){var n={};n[s.parserResult.itemName]=l,s.selected.splice(i,1),c.activeMatchIndex=-1,s.sizeSearchInput(),t(function(){s.onRemoveCallback(e,{$item:l,$model:s.parserResult.modelMapper(e,n)})}),c.updateModel()}},c.getPlaceholder=function(){return s.selected&&s.selected.length?void 0:s.placeholder}}],controllerAs:"$selectMultiple",link:function(c,s,l,n){function a(e){return angular.isNumber(e.selectionStart)?e.selectionStart:e.value.length}function r(t){function i(){switch(t){case e.LEFT:return~h.activeMatchIndex?u:n;case e.RIGHT:return~h.activeMatchIndex&&r!==n?o:(d.activate(),!1);case e.BACKSPACE:return~h.activeMatchIndex?(h.removeChoice(r),u):n;case e.DELETE:return~h.activeMatchIndex?(h.removeChoice(h.activeMatchIndex),r):!1}}var c=a(d.searchInput[0]),s=d.selected.length,l=0,n=s-1,r=h.activeMatchIndex,o=h.activeMatchIndex+1,u=h.activeMatchIndex-1,p=r;return c>0||d.search.length&&t==e.RIGHT?!1:(d.close(),p=i(),d.selected.length&&p!==!1?h.activeMatchIndex=Math.min(n,Math.max(l,p)):h.activeMatchIndex=-1,!0)}function o(e){if(void 0===e||void 0===d.search)return!1;var t=e.filter(function(e){return void 0===d.search.toUpperCase()||void 0===e?!1:e.toUpperCase()===d.search.toUpperCase()}).length>0;return t}function u(e,t){var i=-1;if(angular.isArray(e))for(var c=angular.copy(e),s=0;s<c.length;s++)if(void 0===d.tagging.fct)c[s]+" "+d.taggingLabel===t&&(i=s);else{var l=c[s];angular.isObject(l)&&(l.isTag=!0),angular.equals(l,t)&&(i=s)}return i}var d=n[0],p=c.ngModel=n[1],h=c.$selectMultiple;d.multiple=!0,d.removeSelected=!0,d.focusInput=d.searchInput,p.$isEmpty=function(e){return!e||0===e.length},p.$parsers.unshift(function(){for(var e,t={},i=[],s=d.selected.length-1;s>=0;s--)t={},t[d.parserResult.itemName]=d.selected[s],e=d.parserResult.modelMapper(c,t),i.unshift(e);return i}),p.$formatters.unshift(function(e){var t,i=d.parserResult&&d.parserResult.source(c,{$select:{search:""}}),s={};if(!i)return e;var l=[],n=function(e,i){if(e&&e.length){for(var n=e.length-1;n>=0;n--){if(s[d.parserResult.itemName]=e[n],t=d.parserResult.modelMapper(c,s),d.parserResult.trackByExp){var a=/(\w*)\./.exec(d.parserResult.trackByExp),r=/\.([^\s]+)/.exec(d.parserResult.trackByExp);if(a&&a.length>0&&a[1]==d.parserResult.itemName&&r&&r.length>0&&t[r[1]]==i[r[1]])return l.unshift(e[n]),!0}if(angular.equals(t,i))return l.unshift(e[n]),!0}return!1}};if(!e)return l;for(var a=e.length-1;a>=0;a--)n(d.selected,e[a])||n(i,e[a])||l.unshift(e[a]);return l}),c.$watchCollection(function(){return p.$modelValue},function(e,t){t!=e&&(angular.isDefined(p.$modelValue)&&(p.$modelValue=null),h.refreshComponent())}),p.$render=function(){if(!angular.isArray(p.$viewValue)){if(!angular.isUndefined(p.$viewValue)&&null!==p.$viewValue)throw t("multiarr","Expected model value to be array but got '{0}'",p.$viewValue);d.selected=[]}d.selected=p.$viewValue,h.refreshComponent(),c.$evalAsync()},c.$on("uis:select",function(e,t){d.selected.length>=d.limit||(d.selected.push(t),h.updateModel())}),c.$on("uis:activate",function(){h.activeMatchIndex=-1}),c.$watch("$select.disabled",function(e,t){t&&!e&&d.sizeSearchInput()}),d.searchInput.on("keydown",function(t){var i=t.which;c.$apply(function(){var c=!1;e.isHorizontalMovement(i)&&(c=r(i)),c&&i!=e.TAB&&(t.preventDefault(),t.stopPropagation())})}),d.searchInput.on("keyup",function(t){if(e.isVerticalMovement(t.which)||c.$evalAsync(function(){d.activeIndex=d.taggingLabel===!1?-1:0}),d.tagging.isActivated&&d.search.length>0){if(t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||e.isVerticalMovement(t.which))return;if(d.activeIndex=d.taggingLabel===!1?-1:0,d.taggingLabel===!1)return;var i,s,l,n,a=angular.copy(d.items),r=angular.copy(d.items),p=!1,h=-1;if(void 0!==d.tagging.fct){if(l=d.$filter("filter")(a,{isTag:!0}),l.length>0&&(n=l[0]),a.length>0&&n&&(p=!0,a=a.slice(1,a.length),r=r.slice(1,r.length)),i=d.tagging.fct(d.search),r.some(function(e){return angular.equals(e,i)})||d.selected.some(function(e){return angular.equals(e,i)}))return void c.$evalAsync(function(){d.activeIndex=0,d.items=a});i&&(i.isTag=!0)}else{if(l=d.$filter("filter")(a,function(e){return e.match(d.taggingLabel)}),l.length>0&&(n=l[0]),s=a[0],void 0!==s&&a.length>0&&n&&(p=!0,a=a.slice(1,a.length),r=r.slice(1,r.length)),i=d.search+" "+d.taggingLabel,u(d.selected,d.search)>-1)return;if(o(r.concat(d.selected)))return void(p&&(a=r,c.$evalAsync(function(){d.activeIndex=0,d.items=a})));if(o(r))return void(p&&(d.items=r.slice(1,r.length)))}p&&(h=u(d.selected,i)),h>-1?a=a.slice(h+1,a.length-1):(a=[],i&&a.push(i),a=a.concat(r)),c.$evalAsync(function(){if(d.activeIndex=0,d.items=a,d.isGrouped){var e=i?a.slice(1):a;d.setItemsFn(e),i&&(d.items.unshift(i),d.groups.unshift({name:"",items:[i],tagging:!0}))}})}}),d.searchInput.on("blur",function(){i(function(){h.activeMatchIndex=-1})})}}}]),i.directive("uiSelectNoChoice",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){var i=t.parent().attr("theme")||e.theme;return i+"/no-choice.tpl.html"}}}]),i.directive("uiSelectSingle",["$timeout","$compile",function(t,i){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(c,s,l,n){var a=n[0],r=n[1];r.$parsers.unshift(function(e){var t,i={};return i[a.parserResult.itemName]=e,t=a.parserResult.modelMapper(c,i)}),r.$formatters.unshift(function(e){var t,i=a.parserResult&&a.parserResult.source(c,{$select:{search:""}}),s={};if(i){var l=function(i){return s[a.parserResult.itemName]=i,t=a.parserResult.modelMapper(c,s),t===e};if(a.selected&&l(a.selected))return a.selected;for(var n=i.length-1;n>=0;n--)if(l(i[n]))return i[n]}return e}),c.$watch("$select.selected",function(e){r.$viewValue!==e&&r.$setViewValue(e)}),r.$render=function(){a.selected=r.$viewValue},c.$on("uis:select",function(e,t){a.selected=t}),c.$on("uis:close",function(e,i){t(function(){a.focusser.prop("disabled",!1),i||a.focusser[0].focus()},0,!1)}),c.$on("uis:activate",function(){o.prop("disabled",!0)});var o=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");i(o)(c),a.focusser=o,a.focusInput=o,s.parent().append(o),o.bind("focus",function(){c.$evalAsync(function(){a.focus=!0})}),o.bind("blur",function(){c.$evalAsync(function(){a.focus=!1})}),o.bind("keydown",function(t){return t.which===e.BACKSPACE?(t.preventDefault(),t.stopPropagation(),a.select(void 0),void c.$apply()):void(t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||(t.which!=e.DOWN&&t.which!=e.UP&&t.which!=e.ENTER&&t.which!=e.SPACE||(t.preventDefault(),t.stopPropagation(),a.activate()),c.$digest()))}),o.bind("keyup input",function(t){t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||t.which==e.ENTER||t.which===e.BACKSPACE||(a.activate(o.val()),o.val(""),c.$digest())})}}}]),i.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(e,t,i){return{require:["^^uiSelect","^ngModel"],link:function(t,c,s,l){if(null===t[s.uiSelectSort])throw i("sort","Expected a list to sort");var n=l[0],a=l[1],r=angular.extend({axis:"horizontal"},t.$eval(s.uiSelectSortOptions)),o=r.axis,u="dragging",d="dropping",p="dropping-before",h="dropping-after";t.$watch(function(){return n.sortable},function(e){e?c.attr("draggable",!0):c.removeAttr("draggable")}),c.on("dragstart",function(e){c.addClass(u),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",t.$index.toString())}),c.on("dragend",function(){v(u)});var g,f=function(e,t){this.splice(t,0,this.splice(e,1)[0])},v=function(e){angular.forEach(n.$element.querySelectorAll("."+e),function(t){angular.element(t).removeClass(e)})},m=function(e){e.preventDefault();var t="vertical"===o?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0);t<this["vertical"===o?"offsetHeight":"offsetWidth"]/2?(v(h),c.addClass(p)):(v(p),c.addClass(h))},$=function(t){t.preventDefault();var i=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);e.cancel(g),g=e(function(){b(i)},20)},b=function(e){var i=t.$eval(s.uiSelectSort),l=i[e],n=null;n=c.hasClass(p)?e<t.$index?t.$index-1:t.$index:e<t.$index?t.$index:t.$index+1,f.apply(i,[e,n]),a.$setViewValue(Date.now()),t.$apply(function(){t.$emit("uiSelectSort:change",{array:i,item:l,from:e,to:n})}),v(d),v(p),v(h),c.off("drop",$)};c.on("dragenter",function(){c.hasClass(u)||(c.addClass(d),c.on("dragover",m),c.on("drop",$))}),c.on("dragleave",function(e){e.target==c&&(v(d),v(p),v(h),c.off("dragover",m),c.off("drop",$))})}}}]),i.service("uisRepeatParser",["uiSelectMinErr","$parse",function(e,t){var i=this;i.parse=function(i){var c;if(c=i.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),!c)throw e("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",i);var s=c[5],l="";if(c[3]){s=c[5].replace(/(^\()|(\)$)/g,"");var n=c[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);n&&n[1].trim()&&(l=n[1],s=s.replace(l,""))}return{itemName:c[4]||c[2],keyName:c[3],source:t(s),filters:l,trackByExp:c[6],modelMapper:t(c[1]||c[4]||c[2]),repeatExpression:function(e){var t=this.itemName+" in "+(e?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}},i.getGroupNgRepeatExpression=function(){return"$group in $select.groups"}}])}(),angular.module("ui.select").run(["$templateCache",function(e){e.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" role="listbox" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><a href="" class="ui-select-choices-row-inner"></a></div></li></ul>'),e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),
-e.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div></div>'),e.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="form-control ui-select-search" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.searchEnabled && $select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul role="listbox" id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),e.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),e.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),e.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"></div></div></div>'),e.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="select2-search" ng-show="$select.searchEnabled"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown single"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup" role="listbox"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),e.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match" ng-transclude=""></div>'),e.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.searchEnabled || ($select.selected && !$select.open)" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div></div>')}]);
-//# sourceMappingURL=select.min.js.map
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/app.js b/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/app.js
deleted file mode 100644
index f51f062d..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/app.js
+++ /dev/null
@@ -1 +0,0 @@
-var module = angular.module('ui.select.pages', ['plunkr']);
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/demo.js b/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/demo.js
deleted file mode 100644
index 7aaf3364..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/demo.js
+++ /dev/null
@@ -1,461 +0,0 @@
-'use strict';
-
-var app = angular.module('demo', ['ngSanitize', 'ui.select']);
-
-/**
- * AngularJS default filter with the following expression:
- * "person in people | filter: {name: $select.search, age: $select.search}"
- * performs an AND between 'name: $select.search' and 'age: $select.search'.
- * We want to perform an OR.
- */
-app.filter('propsFilter', function() {
- return function(items, props) {
- var out = [];
-
- if (angular.isArray(items)) {
- var keys = Object.keys(props);
-
- items.forEach(function(item) {
- var itemMatches = false;
-
- for (var i = 0; i < keys.length; i++) {
- var prop = keys[i];
- var text = props[prop].toLowerCase();
- if (item[prop].toString().toLowerCase().indexOf(text) !== -1) {
- itemMatches = true;
- break;
- }
- }
-
- if (itemMatches) {
- out.push(item);
- }
- });
- } else {
- // Let the output be the input untouched
- out = items;
- }
-
- return out;
- };
-});
-
-app.controller('DemoCtrl', function ($scope, $http, $timeout, $interval) {
- var vm = this;
-
- vm.disabled = undefined;
- vm.searchEnabled = undefined;
-
- vm.setInputFocus = function (){
- $scope.$broadcast('UiSelectDemo1');
- };
-
- vm.enable = function() {
- vm.disabled = false;
- };
-
- vm.disable = function() {
- vm.disabled = true;
- };
-
- vm.enableSearch = function() {
- vm.searchEnabled = true;
- };
-
- vm.disableSearch = function() {
- vm.searchEnabled = false;
- };
-
- vm.clear = function() {
- vm.person.selected = undefined;
- vm.address.selected = undefined;
- vm.country.selected = undefined;
- };
-
- vm.someGroupFn = function (item){
-
- if (item.name[0] >= 'A' && item.name[0] <= 'M')
- return 'From A - M';
-
- if (item.name[0] >= 'N' && item.name[0] <= 'Z')
- return 'From N - Z';
-
- };
-
- vm.firstLetterGroupFn = function (item){
- return item.name[0];
- };
-
- vm.reverseOrderFilterFn = function(groups) {
- return groups.reverse();
- };
-
- vm.personAsync = {selected : "wladimir@email.com"};
- vm.peopleAsync = [];
-
- $timeout(function(){
- vm.peopleAsync = [
- { name: 'Adam', email: 'adam@email.com', age: 12, country: 'United States' },
- { name: 'Amalie', email: 'amalie@email.com', age: 12, country: 'Argentina' },
- { name: 'Estefanía', email: 'estefania@email.com', age: 21, country: 'Argentina' },
- { name: 'Adrian', email: 'adrian@email.com', age: 21, country: 'Ecuador' },
- { name: 'Wladimir', email: 'wladimir@email.com', age: 30, country: 'Ecuador' },
- { name: 'Samantha', email: 'samantha@email.com', age: 30, country: 'United States' },
- { name: 'Nicole', email: 'nicole@email.com', age: 43, country: 'Colombia' },
- { name: 'Natasha', email: 'natasha@email.com', age: 54, country: 'Ecuador' },
- { name: 'Michael', email: 'michael@email.com', age: 15, country: 'Colombia' },
- { name: 'Nicolás', email: 'nicole@email.com', age: 43, country: 'Colombia' }
- ];
- },3000);
-
- vm.counter = 0;
- vm.onSelectCallback = function (item, model){
- vm.counter++;
- vm.eventResult = {item: item, model: model};
- };
-
- vm.removed = function (item, model) {
- vm.lastRemoved = {
- item: item,
- model: model
- };
- };
-
- vm.tagTransform = function (newTag) {
- var item = {
- name: newTag,
- email: newTag.toLowerCase()+'@email.com',
- age: 'unknown',
- country: 'unknown'
- };
-
- return item;
- };
-
- vm.peopleObj = {
- '1' : { name: 'Adam', email: 'adam@email.com', age: 12, country: 'United States' },
- '2' : { name: 'Amalie', email: 'amalie@email.com', age: 12, country: 'Argentina' },
- '3' : { name: 'Estefanía', email: 'estefania@email.com', age: 21, country: 'Argentina' },
- '4' : { name: 'Adrian', email: 'adrian@email.com', age: 21, country: 'Ecuador' },
- '5' : { name: 'Wladimir', email: 'wladimir@email.com', age: 30, country: 'Ecuador' },
- '6' : { name: 'Samantha', email: 'samantha@email.com', age: 30, country: 'United States' },
- '7' : { name: 'Nicole', email: 'nicole@email.com', age: 43, country: 'Colombia' },
- '8' : { name: 'Natasha', email: 'natasha@email.com', age: 54, country: 'Ecuador' },
- '9' : { name: 'Michael', email: 'michael@email.com', age: 15, country: 'Colombia' },
- '10' : { name: 'Nicolás', email: 'nicolas@email.com', age: 43, country: 'Colombia' }
- };
-
- vm.person = {};
-
- vm.person.selectedValue = vm.peopleObj[3];
- vm.person.selectedSingle = 'Samantha';
- vm.person.selectedSingleKey = '5';
-
- vm.people = [
- { name: 'Adam', email: 'adam@email.com', age: 12, country: 'United States' },
- { name: 'Amalie', email: 'amalie@email.com', age: 12, country: 'Argentina' },
- { name: 'Estefanía', email: 'estefania@email.com', age: 21, country: 'Argentina' },
- { name: 'Adrian', email: 'adrian@email.com', age: 21, country: 'Ecuador' },
- { name: 'Wladimir', email: 'wladimir@email.com', age: 30, country: 'Ecuador' },
- { name: 'Samantha', email: 'samantha@email.com', age: 30, country: 'United States' },
- { name: 'Nicole', email: 'nicole@email.com', age: 43, country: 'Colombia' },
- { name: 'Natasha', email: 'natasha@email.com', age: 54, country: 'Ecuador' },
- { name: 'Michael', email: 'michael@email.com', age: 15, country: 'Colombia' },
- { name: 'Nicolás', email: 'nicolas@email.com', age: 43, country: 'Colombia' }
- ];
-
- vm.availableColors = ['Red','Green','Blue','Yellow','Magenta','Maroon','Umbra','Turquoise'];
-
- vm.singleDemo = {};
- vm.singleDemo.color = '';
- vm.multipleDemo = {};
- vm.multipleDemo.colors = ['Blue','Red'];
- vm.multipleDemo.colors2 = ['Blue','Red'];
- vm.multipleDemo.selectedPeople = [vm.people[5], vm.people[4]];
- vm.multipleDemo.selectedPeople2 = vm.multipleDemo.selectedPeople;
- vm.multipleDemo.selectedPeopleWithGroupBy = [vm.people[8], vm.people[6]];
- vm.multipleDemo.selectedPeopleSimple = ['samantha@email.com','wladimir@email.com'];
-
- vm.appendToBodyDemo = {
- remainingToggleTime: 0,
- present: true,
- startToggleTimer: function() {
- var scope = vm.appendToBodyDemo;
- var promise = $interval(function() {
- if (scope.remainingTime < 1000) {
- $interval.cancel(promise);
- scope.present = !scope.present;
- scope.remainingTime = 0;
- } else {
- scope.remainingTime -= 1000;
- }
- }, 1000);
- scope.remainingTime = 3000;
- }
- };
-
- vm.address = {};
- vm.refreshAddresses = function(address) {
- var params = {address: address, sensor: false};
- return $http.get(
- 'http://maps.googleapis.com/maps/api/geocode/json',
- {params: params}
- ).then(function(response) {
- vm.addresses = response.data.results;
- });
- };
-
- vm.addPerson = function(item, model){
- if(item.hasOwnProperty('isTag')) {
- delete item.isTag;
- vm.people.push(item);
- }
- }
-
- vm.country = {};
- vm.countries = [ // Taken from https://gist.github.com/unceus/6501985
- {name: 'Afghanistan', code: 'AF'},
- {name: 'Ã…land Islands', code: 'AX'},
- {name: 'Albania', code: 'AL'},
- {name: 'Algeria', code: 'DZ'},
- {name: 'American Samoa', code: 'AS'},
- {name: 'Andorra', code: 'AD'},
- {name: 'Angola', code: 'AO'},
- {name: 'Anguilla', code: 'AI'},
- {name: 'Antarctica', code: 'AQ'},
- {name: 'Antigua and Barbuda', code: 'AG'},
- {name: 'Argentina', code: 'AR'},
- {name: 'Armenia', code: 'AM'},
- {name: 'Aruba', code: 'AW'},
- {name: 'Australia', code: 'AU'},
- {name: 'Austria', code: 'AT'},
- {name: 'Azerbaijan', code: 'AZ'},
- {name: 'Bahamas', code: 'BS'},
- {name: 'Bahrain', code: 'BH'},
- {name: 'Bangladesh', code: 'BD'},
- {name: 'Barbados', code: 'BB'},
- {name: 'Belarus', code: 'BY'},
- {name: 'Belgium', code: 'BE'},
- {name: 'Belize', code: 'BZ'},
- {name: 'Benin', code: 'BJ'},
- {name: 'Bermuda', code: 'BM'},
- {name: 'Bhutan', code: 'BT'},
- {name: 'Bolivia', code: 'BO'},
- {name: 'Bosnia and Herzegovina', code: 'BA'},
- {name: 'Botswana', code: 'BW'},
- {name: 'Bouvet Island', code: 'BV'},
- {name: 'Brazil', code: 'BR'},
- {name: 'British Indian Ocean Territory', code: 'IO'},
- {name: 'Brunei Darussalam', code: 'BN'},
- {name: 'Bulgaria', code: 'BG'},
- {name: 'Burkina Faso', code: 'BF'},
- {name: 'Burundi', code: 'BI'},
- {name: 'Cambodia', code: 'KH'},
- {name: 'Cameroon', code: 'CM'},
- {name: 'Canada', code: 'CA'},
- {name: 'Cape Verde', code: 'CV'},
- {name: 'Cayman Islands', code: 'KY'},
- {name: 'Central African Republic', code: 'CF'},
- {name: 'Chad', code: 'TD'},
- {name: 'Chile', code: 'CL'},
- {name: 'China', code: 'CN'},
- {name: 'Christmas Island', code: 'CX'},
- {name: 'Cocos (Keeling) Islands', code: 'CC'},
- {name: 'Colombia', code: 'CO'},
- {name: 'Comoros', code: 'KM'},
- {name: 'Congo', code: 'CG'},
- {name: 'Congo, The Democratic Republic of the', code: 'CD'},
- {name: 'Cook Islands', code: 'CK'},
- {name: 'Costa Rica', code: 'CR'},
- {name: 'Cote D\'Ivoire', code: 'CI'},
- {name: 'Croatia', code: 'HR'},
- {name: 'Cuba', code: 'CU'},
- {name: 'Cyprus', code: 'CY'},
- {name: 'Czech Republic', code: 'CZ'},
- {name: 'Denmark', code: 'DK'},
- {name: 'Djibouti', code: 'DJ'},
- {name: 'Dominica', code: 'DM'},
- {name: 'Dominican Republic', code: 'DO'},
- {name: 'Ecuador', code: 'EC'},
- {name: 'Egypt', code: 'EG'},
- {name: 'El Salvador', code: 'SV'},
- {name: 'Equatorial Guinea', code: 'GQ'},
- {name: 'Eritrea', code: 'ER'},
- {name: 'Estonia', code: 'EE'},
- {name: 'Ethiopia', code: 'ET'},
- {name: 'Falkland Islands (Malvinas)', code: 'FK'},
- {name: 'Faroe Islands', code: 'FO'},
- {name: 'Fiji', code: 'FJ'},
- {name: 'Finland', code: 'FI'},
- {name: 'France', code: 'FR'},
- {name: 'French Guiana', code: 'GF'},
- {name: 'French Polynesia', code: 'PF'},
- {name: 'French Southern Territories', code: 'TF'},
- {name: 'Gabon', code: 'GA'},
- {name: 'Gambia', code: 'GM'},
- {name: 'Georgia', code: 'GE'},
- {name: 'Germany', code: 'DE'},
- {name: 'Ghana', code: 'GH'},
- {name: 'Gibraltar', code: 'GI'},
- {name: 'Greece', code: 'GR'},
- {name: 'Greenland', code: 'GL'},
- {name: 'Grenada', code: 'GD'},
- {name: 'Guadeloupe', code: 'GP'},
- {name: 'Guam', code: 'GU'},
- {name: 'Guatemala', code: 'GT'},
- {name: 'Guernsey', code: 'GG'},
- {name: 'Guinea', code: 'GN'},
- {name: 'Guinea-Bissau', code: 'GW'},
- {name: 'Guyana', code: 'GY'},
- {name: 'Haiti', code: 'HT'},
- {name: 'Heard Island and Mcdonald Islands', code: 'HM'},
- {name: 'Holy See (Vatican City State)', code: 'VA'},
- {name: 'Honduras', code: 'HN'},
- {name: 'Hong Kong', code: 'HK'},
- {name: 'Hungary', code: 'HU'},
- {name: 'Iceland', code: 'IS'},
- {name: 'India', code: 'IN'},
- {name: 'Indonesia', code: 'ID'},
- {name: 'Iran, Islamic Republic Of', code: 'IR'},
- {name: 'Iraq', code: 'IQ'},
- {name: 'Ireland', code: 'IE'},
- {name: 'Isle of Man', code: 'IM'},
- {name: 'Israel', code: 'IL'},
- {name: 'Italy', code: 'IT'},
- {name: 'Jamaica', code: 'JM'},
- {name: 'Japan', code: 'JP'},
- {name: 'Jersey', code: 'JE'},
- {name: 'Jordan', code: 'JO'},
- {name: 'Kazakhstan', code: 'KZ'},
- {name: 'Kenya', code: 'KE'},
- {name: 'Kiribati', code: 'KI'},
- {name: 'Korea, Democratic People\'s Republic of', code: 'KP'},
- {name: 'Korea, Republic of', code: 'KR'},
- {name: 'Kuwait', code: 'KW'},
- {name: 'Kyrgyzstan', code: 'KG'},
- {name: 'Lao People\'s Democratic Republic', code: 'LA'},
- {name: 'Latvia', code: 'LV'},
- {name: 'Lebanon', code: 'LB'},
- {name: 'Lesotho', code: 'LS'},
- {name: 'Liberia', code: 'LR'},
- {name: 'Libyan Arab Jamahiriya', code: 'LY'},
- {name: 'Liechtenstein', code: 'LI'},
- {name: 'Lithuania', code: 'LT'},
- {name: 'Luxembourg', code: 'LU'},
- {name: 'Macao', code: 'MO'},
- {name: 'Macedonia, The Former Yugoslav Republic of', code: 'MK'},
- {name: 'Madagascar', code: 'MG'},
- {name: 'Malawi', code: 'MW'},
- {name: 'Malaysia', code: 'MY'},
- {name: 'Maldives', code: 'MV'},
- {name: 'Mali', code: 'ML'},
- {name: 'Malta', code: 'MT'},
- {name: 'Marshall Islands', code: 'MH'},
- {name: 'Martinique', code: 'MQ'},
- {name: 'Mauritania', code: 'MR'},
- {name: 'Mauritius', code: 'MU'},
- {name: 'Mayotte', code: 'YT'},
- {name: 'Mexico', code: 'MX'},
- {name: 'Micronesia, Federated States of', code: 'FM'},
- {name: 'Moldova, Republic of', code: 'MD'},
- {name: 'Monaco', code: 'MC'},
- {name: 'Mongolia', code: 'MN'},
- {name: 'Montserrat', code: 'MS'},
- {name: 'Morocco', code: 'MA'},
- {name: 'Mozambique', code: 'MZ'},
- {name: 'Myanmar', code: 'MM'},
- {name: 'Namibia', code: 'NA'},
- {name: 'Nauru', code: 'NR'},
- {name: 'Nepal', code: 'NP'},
- {name: 'Netherlands', code: 'NL'},
- {name: 'Netherlands Antilles', code: 'AN'},
- {name: 'New Caledonia', code: 'NC'},
- {name: 'New Zealand', code: 'NZ'},
- {name: 'Nicaragua', code: 'NI'},
- {name: 'Niger', code: 'NE'},
- {name: 'Nigeria', code: 'NG'},
- {name: 'Niue', code: 'NU'},
- {name: 'Norfolk Island', code: 'NF'},
- {name: 'Northern Mariana Islands', code: 'MP'},
- {name: 'Norway', code: 'NO'},
- {name: 'Oman', code: 'OM'},
- {name: 'Pakistan', code: 'PK'},
- {name: 'Palau', code: 'PW'},
- {name: 'Palestinian Territory, Occupied', code: 'PS'},
- {name: 'Panama', code: 'PA'},
- {name: 'Papua New Guinea', code: 'PG'},
- {name: 'Paraguay', code: 'PY'},
- {name: 'Peru', code: 'PE'},
- {name: 'Philippines', code: 'PH'},
- {name: 'Pitcairn', code: 'PN'},
- {name: 'Poland', code: 'PL'},
- {name: 'Portugal', code: 'PT'},
- {name: 'Puerto Rico', code: 'PR'},
- {name: 'Qatar', code: 'QA'},
- {name: 'Reunion', code: 'RE'},
- {name: 'Romania', code: 'RO'},
- {name: 'Russian Federation', code: 'RU'},
- {name: 'Rwanda', code: 'RW'},
- {name: 'Saint Helena', code: 'SH'},
- {name: 'Saint Kitts and Nevis', code: 'KN'},
- {name: 'Saint Lucia', code: 'LC'},
- {name: 'Saint Pierre and Miquelon', code: 'PM'},
- {name: 'Saint Vincent and the Grenadines', code: 'VC'},
- {name: 'Samoa', code: 'WS'},
- {name: 'San Marino', code: 'SM'},
- {name: 'Sao Tome and Principe', code: 'ST'},
- {name: 'Saudi Arabia', code: 'SA'},
- {name: 'Senegal', code: 'SN'},
- {name: 'Serbia and Montenegro', code: 'CS'},
- {name: 'Seychelles', code: 'SC'},
- {name: 'Sierra Leone', code: 'SL'},
- {name: 'Singapore', code: 'SG'},
- {name: 'Slovakia', code: 'SK'},
- {name: 'Slovenia', code: 'SI'},
- {name: 'Solomon Islands', code: 'SB'},
- {name: 'Somalia', code: 'SO'},
- {name: 'South Africa', code: 'ZA'},
- {name: 'South Georgia and the South Sandwich Islands', code: 'GS'},
- {name: 'Spain', code: 'ES'},
- {name: 'Sri Lanka', code: 'LK'},
- {name: 'Sudan', code: 'SD'},
- {name: 'Suriname', code: 'SR'},
- {name: 'Svalbard and Jan Mayen', code: 'SJ'},
- {name: 'Swaziland', code: 'SZ'},
- {name: 'Sweden', code: 'SE'},
- {name: 'Switzerland', code: 'CH'},
- {name: 'Syrian Arab Republic', code: 'SY'},
- {name: 'Taiwan, Province of China', code: 'TW'},
- {name: 'Tajikistan', code: 'TJ'},
- {name: 'Tanzania, United Republic of', code: 'TZ'},
- {name: 'Thailand', code: 'TH'},
- {name: 'Timor-Leste', code: 'TL'},
- {name: 'Togo', code: 'TG'},
- {name: 'Tokelau', code: 'TK'},
- {name: 'Tonga', code: 'TO'},
- {name: 'Trinidad and Tobago', code: 'TT'},
- {name: 'Tunisia', code: 'TN'},
- {name: 'Turkey', code: 'TR'},
- {name: 'Turkmenistan', code: 'TM'},
- {name: 'Turks and Caicos Islands', code: 'TC'},
- {name: 'Tuvalu', code: 'TV'},
- {name: 'Uganda', code: 'UG'},
- {name: 'Ukraine', code: 'UA'},
- {name: 'United Arab Emirates', code: 'AE'},
- {name: 'United Kingdom', code: 'GB'},
- {name: 'United States', code: 'US'},
- {name: 'United States Minor Outlying Islands', code: 'UM'},
- {name: 'Uruguay', code: 'UY'},
- {name: 'Uzbekistan', code: 'UZ'},
- {name: 'Vanuatu', code: 'VU'},
- {name: 'Venezuela', code: 'VE'},
- {name: 'Vietnam', code: 'VN'},
- {name: 'Virgin Islands, British', code: 'VG'},
- {name: 'Virgin Islands, U.S.', code: 'VI'},
- {name: 'Wallis and Futuna', code: 'WF'},
- {name: 'Western Sahara', code: 'EH'},
- {name: 'Yemen', code: 'YE'},
- {name: 'Zambia', code: 'ZM'},
- {name: 'Zimbabwe', code: 'ZW'}
- ];
-});
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/docs.css b/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/docs.css
deleted file mode 100644
index 98ed6173..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/docs.css
+++ /dev/null
@@ -1,339 +0,0 @@
-/*
- Taken from angular-ui/bootstrap
- See https://github.com/angular-ui/bootstrap/blob/master/misc/demo/assets/demo.css
-*/
-
-body {
- opacity: 1;
- -webkit-transition: opacity 1s ease;
- -moz-transition: opacity 1s ease;
- transition: opacity 1s;
-}
-
-.ng-cloak {
- opacity: 0;
-}
-
-.ng-invalid {
- border: 1px solid red !important;
-}
-
-section {
- padding-top: 30px;
-}
-
-.page-header h1 > small > a {
- color: #999;
-}
-
- .page-header h1 > small > a:hover {
- text-decoration: none;
- }
-
-.footer {
- text-align: center;
- padding: 30px 0;
- margin-top: 70px;
- border-top: 1px solid #e5e5e5;
- background-color: #f5f5f5;
-}
-
-.bs-social {
- margin-top: 20px;
- margin-bottom: 20px;
- text-align: center;
-}
-
-@media (min-width: 768px) {
-
- .bs-social {
- text-align: left;
- }
-}
-
-.nav, .pagination, .carousel, .panel-title a {
- cursor: pointer;
-}
-
-.bs-social-buttons {
- display: inline-block;
- margin-bottom: 0;
- padding-left: 0;
- list-style: none;
-}
-
- .bs-social-buttons li {
- display: inline-block;
- padding: 5px 8px;
- line-height: 1;
- }
-
-@media (max-width: 767px) {
-
- .visible-xs.collapse.in {
- display: block !important;
- }
-
- .visible-xs.collapse {
- display: none !important;
- }
-}
-
-.navbar .collapse {
- border-top: 1px solid #e7e7e7;
- margin-left: -15px;
- margin-right: -15px;
- padding-right: 15px;
- padding-left: 15px;
-}
-
-.show-grid {
- margin-bottom: 15px;
-}
-
-/*
- * Container
- *
- * Tweak to width of container.
- */
-
-/*@media (min-width: 1200px) {
- .container{
- max-width: 970px;
- }
-}*/
-
-/*
- * Tabs
- *
- * Tweaks to the Tabs.
- */
-
-.code .nav-tabs {
- border-bottom: 1px solid #ccc;
-}
-
-.code pre, .code code {
- border-top: none;
- border-top-left-radius: 0;
- border-top-right-radius: 0;
-}
-
-.code .nav-tabs > li.active > a, .code .nav-tabs > li.active > a:hover, .code .nav-tabs > li.active > a:focus {
- background-color: #f8f8f8;
- border: 1px solid #ccc;
- border-bottom-color: transparent;
-}
-
-/*
- * Button Inverse
- *
- * Buttons in the masthead.
- */
-
-.btn-outline-inverse {
- color: #fff;
- background-color: transparent;
- border-color: #cdbfe3;
- margin: 10px;
-}
-
-@media (min-width: 768px) {
-
- .btn-outline-inverse {
- width: auto;
- margin: 20px 5px 20px 0;
- padding: 18px 24px;
- font-size: 21px;
- }
-}
-
-.btn-outline-inverse:hover, .btn-outline-inverse:focus, .btn-outline-inverse:active {
- color: #563d7c;
- text-shadow: none;
- background-color: #fff;
- border-color: #fff;
-}
-
-
-/* Page headers */
-.bs-header {
- padding: 30px 15px 40px; /* side padding builds on .container 15px, so 30px */
- font-size: 16px;
- text-align: center;
- text-shadow: 0 1px 0 rgba(0,0,0,.15);
- color: #cdbfe3;
- background-color: #563d7c;
- background-image: url(header.png);
-}
-
- .bs-header a {
- color: #fff;
- font-weight: normal;
- }
-
- .bs-header h1 {
- color: #fff;
- }
-
- .bs-header p {
- font-weight: 200;
- line-height: 1.4;
- }
-
- .bs-header .container {
- position: relative;
- }
-
-@media (min-width: 768px) {
- .bs-header {
- font-size: 30px;
- text-align: left;
- }
-
- .bs-header h1 {
- font-size: 100px;
- line-height: 1;
- }
-}
-
-@media (min-width: 992px) {
- .bs-header p {
- margin-right: 25%;
- }
-}
-
-.navbar-inner {
- -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.175);
- box-shadow: 0 3px 3px rgba(0,0,0,0.175);
-}
-
-/*
- * Side navigation
- *
- * Scrollspy and affixed enhanced navigation to highlight sections and secondary
- * sections of docs content.
- */
-
-/* By default it's not affixed in mobile views, so undo that */
-.bs-sidebar.affix {
- position: static;
-}
-
-/* First level of nav */
-.bs-sidenav {
- margin-top: 30px;
- margin-bottom: 30px;
- padding-top: 10px;
- padding-bottom: 10px;
- text-shadow: 0 1px 0 #fff;
- background-color: #f7f5fa;
- border-radius: 5px;
-}
-
-/* All levels of nav */
-.bs-sidebar .nav > li > a {
- display: block;
- color: #716b7a;
- padding: 5px 20px;
-}
-
- .bs-sidebar .nav > li > a:hover,
- .bs-sidebar .nav > li > a:focus {
- text-decoration: none;
- background-color: #e5e3e9;
- border-right: 1px solid #dbd8e0;
- }
-
-.bs-sidebar .nav > .active > a,
-.bs-sidebar .nav > .active:hover > a,
-.bs-sidebar .nav > .active:focus > a {
- font-weight: bold;
- color: #563d7c;
- background-color: transparent;
- border-right: 1px solid #563d7c;
-}
-
-/* Nav: second level (shown on .active) */
-.bs-sidebar .nav .nav {
- display: none; /* Hide by default, but at >768px, show it */
- margin-bottom: 8px;
-}
-
- .bs-sidebar .nav .nav > li > a {
- padding-top: 3px;
- padding-bottom: 3px;
- padding-left: 30px;
- font-size: 90%;
- }
-
-/* Show and affix the side nav when space allows it */
-@media (min-width: 992px) {
- .bs-sidebar .nav > .active > ul {
- display: block;
- }
- /* Widen the fixed sidebar */
- .bs-sidebar.affix,
- .bs-sidebar.affix-bottom {
- width: 213px;
- }
-
- .bs-sidebar.affix {
- position: fixed; /* Undo the static from mobile first approach */
- top: 80px;
- }
-
- .bs-sidebar.affix-bottom {
- position: absolute; /* Undo the static from mobile first approach */
- }
-
- .bs-sidebar.affix-bottom .bs-sidenav,
- .bs-sidebar.affix .bs-sidenav {
- margin-top: 0;
- margin-bottom: 0;
- }
-}
-
-@media (min-width: 1200px) {
- /* Widen the fixed sidebar again */
- .bs-sidebar.affix-bottom,
- .bs-sidebar.affix {
- width: 263px;
- }
-}
-
-
-/* Not enough room on mobile for markup tab, js tab, and plunk btn.
- And no one cares about plunk button on a phone anyway */
-@media only screen and (max-device-width: 480px) {
- #plunk-btn {
- display: none;
- }
-}
-
-.navbar-nav .dropdown .navbar-brand {
- max-width: 100%;
- margin-right: inherit;
- margin-left: inherit;
-}
-
-.header-placeholder {
- height: 50px;
-}
-
-@media screen and (min-width: 768px) {
-
- .dropdown.open > .navbar-brand + .dropdown-menu {
- left: 10px;
- }
-
- .header-placeholder {
- height: 50px;
- }
-
- .navbar-nav .dropdown .navbar-brand {
- max-width: 200px;
- margin-right: 5px;
- margin-left: 10px;
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/plunkr.js b/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/plunkr.js
deleted file mode 100644
index deee25ed..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/docs/assets/plunkr.js
+++ /dev/null
@@ -1,110 +0,0 @@
-angular.module('plunkr', [])
-.factory('formPostData', ['$document', function ($document) {
- return function (url, newWindow, fields) {
- /**
- * If the form posts to target="_blank", pop-up blockers can cause it not to work.
- * If a user choses to bypass pop-up blocker one time and click the link, they will arrive at
- * a new default plnkr, not a plnkr with the desired template. Given this undesired behavior,
- * some may still want to open the plnk in a new window by opting-in via ctrl+click. The
- * newWindow param allows for this possibility.
- */
- var target = newWindow ? '_blank' : '_self';
- var form = angular.element('<form style="display: none;" method="post" action="' + url + '" target="' + target + '"></form>');
- angular.forEach(fields, function (value, name) {
- var input = angular.element('<input type="hidden" name="' + name + '">');
- input.attr('value', value);
- form.append(input);
- });
- $document.find('body').append(form);
- form[0].submit();
- form.remove();
- };
-}])
-
-
-.directive('plnkrOpener', ['$q', 'getExampleData', 'formPostData', function ($q, getExampleData, formPostData) {
- return {
- scope: {},
- bindToController: {
- 'examplePath': '@'
- },
- controllerAs: 'plnkr',
- template: '<button ng-click="plnkr.open($event)" class="btn btn-info btn-sm plunk-btn"> <i class="glyphicon glyphicon-edit">&nbsp;</i> Edit in Plunker</button> ',
- controller: [function () {
- var ctrl = this;
-
- ctrl.prepareExampleData = function (examplePath) {
- if (ctrl.prepared) {
- return $q.when(ctrl.prepared);
- } else {
- return getExampleData(examplePath).then(function (data) {
- ctrl.prepared = data;
- });
- }
- };
-
- ctrl.open = function (clickEvent) {
-
- var newWindow = clickEvent.ctrlKey || clickEvent.metaKey;
- var postData = {
- 'tags[0]': "angularjs",
- 'tags[1]': "ui-select",
- 'private': true
- };
-
- // Make sure the example data is available.
- // If an XHR must be made, this might break some pop-up blockers when
- // new window is requested
- ctrl.prepareExampleData(ctrl.examplePath)
- .then(function () {
- angular.forEach(ctrl.prepared, function (file) {
- postData['files[' + file.name + ']'] = file.content;
- });
-
- postData.description = "Angular ui-select http://github.com/angular-ui/ui-select/";
-
- formPostData('http://plnkr.co/edit/?p=preview', newWindow, postData);
- });
- };
-
- // Initialize the example data, so it's ready when clicking the open button.
- // Otherwise pop-up blockers will prevent a new window from opening
- ctrl.prepareExampleData(ctrl.examplePath);
- }]
- };
-}])
-
-.factory('getExampleData', ['$http', '$q', function ($http, $q) {
- return function (exampleFile) {
- // Load the manifest for the example
- var defaultFiles = {
- 'demo.js': './assets/',
- 'select.css': './dist',
- 'select.js': './dist'
- };
- files = angular.copy(defaultFiles);
- files[exampleFile] = './';
-
- var filePromises = [];
-
- angular.forEach(files, function (folder, filename) {
- filePromises.push($http.get(folder + '/' + filename, { transformResponse: [], cache: true })
- .then(function (response) {
-
- var content = response.data;
- // Should only be one html (the example)
- if (filename.match(/.html$/)) {
- filename = "index.html";
- content = content.replace(/.\/assets\//g, './').replace(/.\/dist\//g, './');
- }
-
- return {
- name: filename,
- content: content
- };
- }));
- });
-
- return $q.all(filePromises);
- };
-}]);
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/docs/index.html b/ecomp-portal-FE/client/bower_components/ui-select/docs/index.html
deleted file mode 100644
index 734486bd..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/docs/index.html
+++ /dev/null
@@ -1,191 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" ng-app="ui.select.pages">
-<head>
- <meta charset="utf-8">
- <title>AngularJS ui-select</title>
-
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular-sanitize.js"></script>
-
- <script src="./assets/app.js" type="text/javascript"></script>
- <script src="./assets/plunkr.js" type="text/javascript"></script>
-
- <!-- themes -->
- <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.css">
- <link rel="stylesheet" href="./assets/docs.css" />
-
-</head>
-
-<body>
- <header class="navbar navbar-default navbar-fixed-top navbar-inner">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-3" ng-click="isCollapsed = !isCollapsed">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand visible-xs" href="#">UI Select</a>
- </div>
- <nav class="hidden-xs">
- <ul class="nav navbar-nav">
- <a href="#top" role="button" class="navbar-brand">
- UI Select
- </a>
- <li><a href="#getting_started">Getting started</a></li>
- <li><a href="#documenation">Documentation</a></li>
- <li><a href="#examples">Examples</a></li>
- <!--<li class="dropdown" uib-dropdown>
- <a role="button" class="dropdown-toggle" uib-dropdown-toggle>
- Previous docs <b class="caret"></b>
- </a>
- <ul class="dropdown-menu">
- <li ng-repeat="version in oldDocs">
- <a ng-href="{{version.url}}">{{version.version}}</a>
- </li>
- </ul>
- </li>-->
- </ul>
- </nav>
- <nav class="visible-xs" uib-collapse="!isCollapsed">
- <ul class="nav navbar-nav">
- <li><a href="#getting_started" ng-click="isCollapsed = !isCollapsed">Getting started</a></li>
- <li><a href="#directives_small" ng-click="isCollapsed = !isCollapsed">Directives</a></li>
- </ul>
- </nav>
- </div>
- </header>
- <div class="header-placeholder"></div>
- <div role="main">
- <header class="bs-header text-center" id="overview">
- <div class="container">
-
- <h1>UI Select</h1>
- <p>
- A native <a href="http://angularjs.org">AngularJS</a> implementation of Select2/Selectize by the
- <a href="http://angular-ui.github.io">AngularUI Team</a>
- </p>
-
- <p>
- <a class="btn btn-outline-inverse btn-lg" href="https://github.com/angular-ui/ui-select"><i class="icon-github"></i>Code on Github</a>
- <!--<button type="button" class="btn btn-outline-inverse btn-lg" ng-click="showDownloadModal()">
- <i class="glyphicon glyphicon-download-alt"></i> Download <small>(<%= pkg.version%>)</small>
- </button>-->
- </p>
- </div>
- <div class="bs-social container">
- <ul class="bs-social-buttons">
- <li>
- <iframe src="//ghbtns.com/github-btn.html?user=angular-ui&repo=ui-select&type=watch&count=true"
- allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
- </li>
- <li>
- <iframe src="//ghbtns.com/github-btn.html?user=angular-ui&repo=ui-select&type=fork&count=true"
- allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
- </li>
- <li>
- <a href="https://twitter.com/share" class="twitter-share-button"
- data-hashtags="angularjs">Tweet</a>
- <script>
- !function (d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (!d.getElementById(id)) {
- js = d.createElement(s);
- js.id = id;
- js.src = "//platform.twitter.com/widgets.js";
- fjs.parentNode.insertBefore(js, fjs);
- }
- }(document, "script", "twitter-wjs");</script>
- </li>
- <li>
- <!-- Place this tag where you want the +1 button to render. -->
- <div class="g-plusone" data-size="medium"></div>
-
- <!-- Place this tag after the last +1 button tag. -->
- <script type="text/javascript">
- (function () {
- var po = document.createElement('script');
- po.type = 'text/javascript';
- po.async = true;
- po.src = 'https://apis.google.com/js/plusone.js';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(po, s);
- })();
- </script>
- </li>
- </ul>
- </div>
- </header>
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <section id="getting_started">
- <div class="page-header">
- <h1>Getting started</h1>
- </div>
- <h3>Dependencies</h3>
- <p>
- This repository contains a <strong>native AngularJS</strong> select directive based on
- Bootstrap/Select2/Selectize's CSS. As a result no dependency on jQuery or 3rd-Party
- JavaScript is required. The only <strong>required</strong> dependencies are:
- </p>
- <ul>
- <li>
- <a href="http://angularjs.org" target="_blank">AngularJS</a> (requires AngularJS 1.2.x or higher, tested with 1.5.3).
- </li>
- <li>
- <a href="http://angularjs.org" target="_blank">Angular-Sanitze</a> (the version should match your version of angular.js).
- </li>
- <li>
- The matching CSS for your the theme you wish to use:
- <ul>
- <li>Bootstrap</li>
- <li>Select2</li>
- <li>Selectize</li>
- </ul>
- </li>
- </ul>
-
- <h3>Installation</h3>
- <h4>Install via npm</h4>
- <pre>$ npm install ui-select</pre>
- <h4>Install via bower</h4>
- <pre>$ bower install angular-ui-select</pre>
- <p>
- As soon as you've got all the files downloaded and included in your page you just need to declare
- a dependency on the <code>ui.select</code> <a href="http://docs.angularjs.org/guide/module">module</a>:<br>
- <pre><code>angular.module('myModule', ['ui.select', 'ngSanitize']);</code></pre>
- </p>
-
- </section>
- <section id="documenation">
- <div class="page-header">
- <h1>Documentation</h1>
- </div>
- <h3>Wiki</h3>
- For up to date information please refer to the <a href="https://github.com/angular-ui/ui-select/wiki" target="_blank">Wiki</a>
- <h3>FAQ</h3>
- <p>Please check <a href="https://github.com/angular-ui/ui-select/wiki/FAQs" target="_blank">our FAQ section</a> for common problems / solutions.</p>
- </section>
- <section id="examples">
- <div class="page-header">
- <h1>Examples</h1>
- </div>
- <p>You can fork one of the plunkers from this page to see a working example of what is described here.</p>
-
- <!-- INSERT EXAMPLES HERE -->
- </section>
- </div>
- </div>
- </div><!-- /.container -->
- </div><!-- /.main -->
- <footer class="footer">
- <div class="container">
- <p>Designed and built by all ui-select <a href="https://github.com/angular-ui/ui-select/graphs/contributors" target="_blank">contributors</a>.</p>
- <p>Code licensed under <a href="https://github.com/angular-ui/ui-select/blob/master/LICENSE">MIT License</a>.</p>
- <p><a href="https://github.com/angular-ui/ui-select/issues?state=open">Issues</a></p>
- </div>
- </footer>
-</body>
-</html> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/docs/partials/_footer.html b/ecomp-portal-FE/client/bower_components/ui-select/docs/partials/_footer.html
deleted file mode 100644
index 308b1d01..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/docs/partials/_footer.html
+++ /dev/null
@@ -1,2 +0,0 @@
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/docs/partials/_header.html b/ecomp-portal-FE/client/bower_components/ui-select/docs/partials/_header.html
deleted file mode 100644
index b6bb1e4b..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/docs/partials/_header.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" ng-app="demo">
-<head>
- <meta charset="utf-8">
- <title>AngularJS ui-select</title>
-
- <!--
- IE8 support, see AngularJS Internet Explorer Compatibility http://docs.angularjs.org/guide/ie
- For Firefox 3.6, you will also need to include jQuery and ECMAScript 5 shim
- -->
- <!--[if lt IE 9]>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js"></script>
- <script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/2.2.0/es5-shim.js"></script>
- <script>
- document.createElement('ui-select');
- document.createElement('ui-select-match');
- document.createElement('ui-select-choices');
- </script>
- <![endif]-->
-
- <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.js"></script>
- <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular-sanitize.js"></script>
-
- <!-- ui-select files -->
- <script src="./dist/select.js"></script>
- <link rel="stylesheet" href="./dist/select.css">
-
- <script src="./assets/demo.js"></script>
-
- <!-- themes -->
- <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.css">
- <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/select2/3.4.5/select2.css">
- <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.8.5/css/selectize.default.css">
- <!-- <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.8.5/css/selectize.bootstrap2.css"> -->
- <!--<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.8.5/css/selectize.bootstrap3.css">-->
-
- <style>
- body {
- padding: 15px;
- }
-
- .select2 > .select2-choice.ui-select-match {
- /* Because of the inclusion of Bootstrap */
- height: 29px;
- }
-
- .selectize-control > .selectize-dropdown {
- top: 36px;
- }
- /* Some additional styling to demonstrate that append-to-body helps achieve the proper z-index layering. */
- .select-box {
- background: #fff;
- position: relative;
- z-index: 1;
- }
- .alert-info.positioned {
- margin-top: 1em;
- position: relative;
- z-index: 10000; /* The select2 dropdown has a z-index of 9999 */
- }
- </style>
-</head>
-
-<body class="ng-cloak" ng-controller="DemoCtrl as ctrl">
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/index.js b/ecomp-portal-FE/client/bower_components/ui-select/index.js
deleted file mode 100644
index 1625f861..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-require('./dist/select.js');
-module.exports = 'ui.select';
diff --git a/ecomp-portal-FE/client/bower_components/ui-select/package.json b/ecomp-portal-FE/client/bower_components/ui-select/package.json
deleted file mode 100644
index 323e1508..00000000
--- a/ecomp-portal-FE/client/bower_components/ui-select/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "name": "ui-select",
- "main": "./index.js",
- "author": "http://github.com/angular-ui/ui-select/graphs/contributors",
- "homepage": "http://github.com/angular-ui/ui-select",
- "repository": {
- "url": "git://github.com/angular-ui/ui-select.git"
- },
- "style": "dist/select.css",
- "version": "0.17.1",
- "devDependencies": {
- "angular": "^1.2.18",
- "angular-mocks": "^1.2.18",
- "angular-sanitize": "^1.2.18",
- "conventional-changelog": "^0.5.3",
- "conventional-recommended-bump": "0.0.3",
- "del": "~0.1.1",
- "event-stream": "~3.1.0",
- "gulp": "^3.9.1",
- "gulp-angular-templatecache": "^1.8.0",
- "gulp-bump": "^1.0.0",
- "gulp-conventional-changelog": "^0.7.0",
- "gulp-concat": "^2.6.0",
- "gulp-filenames": "^2.0.0",
- "gulp-git": "^1.4.0",
- "gulp-header": "^1.7.1",
- "gulp-footer": "^1.0.5",
- "gulp-jshint": "^2.0.0",
- "gulp-load-plugins": "^1.1.0",
- "gulp-minify-css": "^1.2.4",
- "gulp-minify-html": "^1.0.6",
- "gulp-plumber": "^0.6.3",
- "gulp-replace": "^0.5.4",
- "gulp-sourcemaps": "^1.6.0",
- "gulp-tag-version": "^1.3.0",
- "gulp-uglify": "^1.5.3",
- "gulp-util": "^2.2.19",
- "jquery": "~1.11",
- "jshint": "^2.9.1",
- "jshint-stylish": "~0.3.0",
- "karma": "^0.12.16",
- "karma-chrome-launcher": "^0.1.3",
- "karma-firefox-launcher": "~0.1",
- "karma-jasmine": "~0.2",
- "karma-ng-html2js-preprocessor": "^0.1.0",
- "karma-phantomjs-launcher": "~0.1.4",
- "karma-coverage": "~0.2",
- "run-sequence": "^1.1.5",
- "title-case": "^1.1.2"
- },
- "scripts": {
- "test": "gulp test"
- },
- "spm": {
- "main": "dist/select.js",
- "output": [
- "dist/select.css"
- ]
- },
- "license": "MIT"
-}
diff --git a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/angular-gridster.js b/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/angular-gridster.js
deleted file mode 100644
index e3f2c00f..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/angular-gridster.js
+++ /dev/null
@@ -1,2240 +0,0 @@
-/*global define:true*/
-(function(root, factory) {
-
- 'use strict';
-
- if (typeof define === 'function' && define.amd) {
- // AMD
- define(['../angular/angular'], factory);
- } else if (typeof exports === 'object') {
- // CommonJS
- module.exports = factory(require('angular'));
- } else {
- // Browser, nothing "exported". Only registered as a module with angular.
- factory(root.angular);
- }
-}(this, function(angular) {
-
- 'use strict';
-
- var ie8 = false;
-
- var getInternetExplorerVersion = function()
- // Returns the version of Internet Explorer or a -1
- // (indicating the use of another browser).
- {
- var rv = -1; // Return value assumes failure.
- if (navigator.appName == 'Microsoft Internet Explorer')
- {
- var ua = navigator.userAgent;
- var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
- if (re.exec(ua) != null)
- rv = parseFloat(RegExp.$1);
- }
- return rv;
- };
-
- var ver = getInternetExplorerVersion();
-
- if ( ver > -1 && ver===8.0){
- ie8 = true;
- }
-
- // This returned angular module 'gridster' is what is exported.
- return angular.module('attGridsterLib', [])
-
- .constant('gridsterConfig', {
- columns: 6, // number of columns in the grid
- pushing: true, // whether to push other items out of the way
- floating: true, // whether to automatically float items up so they stack
- swapping: true, // whether or not to have items switch places instead of push down if they are the same size
- width: 'auto', // width of the grid. "auto" will expand the grid to its parent container
- colWidth: 'auto', // width of grid columns. "auto" will divide the width of the grid evenly among the columns
- rowHeight: 'match', // height of grid rows. 'match' will make it the same as the column width, a numeric value will be interpreted as pixels, '/2' is half the column width, '*5' is five times the column width, etc.
- margins: [10, 10], // margins in between grid items
- outerMargin: false,
- isMobile: false, // toggle mobile view
- mobileBreakPoint: 100, // width threshold to toggle mobile mode
- mobileModeEnabled: true, // whether or not to toggle mobile mode when screen width is less than mobileBreakPoint
- minColumns: 1, // minimum amount of columns the grid can scale down to
- minRows: 1, // minimum amount of rows to show if the grid is empty
- maxRows: 100, // maximum amount of rows in the grid
- defaultSizeX: 1, // default width of an item in columns
- defaultSizeY: 1, // default height of an item in rows
- minSizeX: 1, // minimum column width of an item
- maxSizeX: null, // maximum column width of an item
- minSizeY: 1, // minumum row height of an item
- maxSizeY: null, // maximum row height of an item
- saveGridItemCalculatedHeightInMobile: false, // grid item height in mobile display. true- to use the calculated height by sizeY given
- resizable: { // options to pass to resizable handler
- enabled: false,
- handles: ['s', 'e', 'n', 'w', 'se', 'ne', 'sw', 'nw']
- },
- draggable: { // options to pass to draggable handler
- enabled: true,
- scrollSensitivity: 20, // Distance in pixels from the edge of the viewport after which the viewport should scroll, relative to pointer
- scrollSpeed: 15 // Speed at which the window should scroll once the mouse pointer gets within scrollSensitivity distance
- }
- })
-
- .controller('GridsterCtrl', ['gridsterConfig', '$timeout',
- function(gridsterConfig, $timeout) {
-
- var gridster = this;
-
- /**
- * Create options from gridsterConfig constant
- */
- angular.extend(this, gridsterConfig);
-
- this.resizable = angular.extend({}, gridsterConfig.resizable || {});
- this.draggable = angular.extend({}, gridsterConfig.draggable || {});
-
- var flag = false;
- this.layoutChanged = function() {
- if (flag) {
- return;
- }
- flag = true;
- $timeout(function() {
- flag = false;
- if (gridster.loaded) {
- gridster.floatItemsUp();
- }
- gridster.updateHeight(gridster.movingItem ? gridster.movingItem.sizeY : 0);
- }, 30);
- };
-
- /**
- * A positional array of the items in the grid
- */
- this.grid = [];
-
- /**
- * Clean up after yourself
- */
- this.destroy = function() {
- // empty the grid to cut back on the possibility
- // of circular references
- if (this.grid) {
- this.grid = [];
- }
- this.$element = null;
- };
-
- /**
- * Overrides default options
- *
- * @param {Object} options The options to override
- */
- this.setOptions = function(options) {
- if (!options) {
- return;
- }
-
- options = angular.extend({}, options);
-
- // all this to avoid using jQuery...
- if (options.draggable) {
- angular.extend(this.draggable, options.draggable);
- delete(options.draggable);
- }
- if (options.resizable) {
- angular.extend(this.resizable, options.resizable);
- delete(options.resizable);
- }
-
- angular.extend(this, options);
-
- if (!this.margins || this.margins.length !== 2) {
- this.margins = [0, 0];
- } else {
- for (var x = 0, l = this.margins.length; x < l; ++x) {
- this.margins[x] = parseInt(this.margins[x], 10);
- if (isNaN(this.margins[x])) {
- this.margins[x] = 0;
- }
- }
- }
- };
-
- /**
- * Check if item can occupy a specified position in the grid
- *
- * @param {Object} item The item in question
- * @param {Number} row The row index
- * @param {Number} column The column index
- * @returns {Boolean} True if if item fits
- */
- this.canItemOccupy = function(item, row, column) {
- return row > -1 && column > -1 && item.sizeX + column <= this.columns && item.sizeY + row <= this.maxRows;
- };
-
- /**
- * Set the item in the first suitable position
- *
- * @param {Object} item The item to insert
- */
- this.autoSetItemPosition = function(item) {
- // walk through each row and column looking for a place it will fit
- for (var rowIndex = 0; rowIndex < this.maxRows; ++rowIndex) {
- for (var colIndex = 0; colIndex < this.columns; ++colIndex) {
- // only insert if position is not already taken and it can fit
- var items = this.getItems(rowIndex, colIndex, item.sizeX, item.sizeY, item);
- if (items.length === 0 && this.canItemOccupy(item, rowIndex, colIndex)) {
- this.putItem(item, rowIndex, colIndex);
- return;
- }
- }
- }
- throw new Error('Unable to place item!');
- };
-
- /**
- * Gets items at a specific coordinate
- *
- * @param {Number} row
- * @param {Number} column
- * @param {Number} sizeX
- * @param {Number} sizeY
- * @param {Array} excludeItems An array of items to exclude from selection
- * @returns {Array} Items that match the criteria
- */
- this.getItems = function(row, column, sizeX, sizeY, excludeItems) {
- var items = [];
- if (!sizeX || !sizeY) {
- sizeX = sizeY = 1;
- }
- if (excludeItems && !(excludeItems instanceof Array)) {
- excludeItems = [excludeItems];
- }
- for (var h = 0; h < sizeY; ++h) {
- for (var w = 0; w < sizeX; ++w) {
- var item = this.getItem(row + h, column + w, excludeItems);
- if (item && (!excludeItems || excludeItems.indexOf(item) === -1) && items.indexOf(item) === -1) {
- items.push(item);
- }
- }
- }
- return items;
- };
-
- /**
- * @param {Array} items
- * @returns {Object} An item that represents the bounding box of the items
- */
- this.getBoundingBox = function(items) {
-
- if (items.length === 0) {
- return null;
- }
- if (items.length === 1) {
- return {
- row: items[0].row,
- col: items[0].col,
- sizeY: items[0].sizeY,
- sizeX: items[0].sizeX
- };
- }
-
- var maxRow = 0;
- var maxCol = 0;
- var minRow = 9999;
- var minCol = 9999;
-
- for (var i = 0, l = items.length; i < l; ++i) {
- var item = items[i];
- minRow = Math.min(item.row, minRow);
- minCol = Math.min(item.col, minCol);
- maxRow = Math.max(item.row + item.sizeY, maxRow);
- maxCol = Math.max(item.col + item.sizeX, maxCol);
- }
-
- return {
- row: minRow,
- col: minCol,
- sizeY: maxRow - minRow,
- sizeX: maxCol - minCol
- };
- };
-
-
- /**
- * Removes an item from the grid
- *
- * @param {Object} item
- */
- this.removeItem = function(item) {
- for (var rowIndex = 0, l = this.grid.length; rowIndex < l; ++rowIndex) {
- var columns = this.grid[rowIndex];
- if (!columns) {
- continue;
- }
- var index = columns.indexOf(item);
- if (index !== -1) {
- columns[index] = null;
- break;
- }
- }
- this.layoutChanged();
- };
-
- /**
- * Returns the item at a specified coordinate
- *
- * @param {Number} row
- * @param {Number} column
- * @param {Array} excludeItems Items to exclude from selection
- * @returns {Object} The matched item or null
- */
- this.getItem = function(row, column, excludeItems) {
- if (excludeItems && !(excludeItems instanceof Array)) {
- excludeItems = [excludeItems];
- }
- var sizeY = 1;
- while (row > -1) {
- var sizeX = 1,
- col = column;
- while (col > -1) {
- var items = this.grid[row];
- if (items) {
- var item = items[col];
- if (item && (!excludeItems || excludeItems.indexOf(item) === -1) && item.sizeX >= sizeX && item.sizeY >= sizeY) {
- return item;
- }
- }
- ++sizeX;
- --col;
- }
- --row;
- ++sizeY;
- }
- return null;
- };
-
- /**
- * Insert an array of items into the grid
- *
- * @param {Array} items An array of items to insert
- */
- this.putItems = function(items) {
- for (var i = 0, l = items.length; i < l; ++i) {
- this.putItem(items[i]);
- }
- };
-
- /**
- * Insert a single item into the grid
- *
- * @param {Object} item The item to insert
- * @param {Number} row (Optional) Specifies the items row index
- * @param {Number} column (Optional) Specifies the items column index
- * @param {Array} ignoreItems
- */
- this.putItem = function(item, row, column, ignoreItems) {
- // auto place item if no row specified
- if (typeof row === 'undefined' || row === null) {
- row = item.row;
- column = item.col;
- if (typeof row === 'undefined' || row === null) {
- this.autoSetItemPosition(item);
- return;
- }
- }
-
- // keep item within allowed bounds
- if (!this.canItemOccupy(item, row, column)) {
- column = Math.min(this.columns - item.sizeX, Math.max(0, column));
- row = Math.min(this.maxRows - item.sizeY, Math.max(0, row));
- }
-
- // check if item is already in grid
- if (item.oldRow !== null && typeof item.oldRow !== 'undefined') {
- var samePosition = item.oldRow === row && item.oldColumn === column;
- var inGrid = this.grid[row] && this.grid[row][column] === item;
- if (samePosition && inGrid) {
- item.row = row;
- item.col = column;
- return;
- } else {
- // remove from old position
- var oldRow = this.grid[item.oldRow];
- if (oldRow && oldRow[item.oldColumn] === item) {
- delete oldRow[item.oldColumn];
- }
- }
- }
-
- item.oldRow = item.row = row;
- item.oldColumn = item.col = column;
-
- this.moveOverlappingItems(item, ignoreItems);
-
- if (!this.grid[row]) {
- this.grid[row] = [];
- }
- this.grid[row][column] = item;
-
- if (this.movingItem === item) {
- this.floatItemUp(item);
- }
- this.layoutChanged();
- };
-
- /**
- * Trade row and column if item1 with item2
- *
- * @param {Object} item1
- * @param {Object} item2
- */
- this.swapItems = function(item1, item2) {
- this.grid[item1.row][item1.col] = item2;
- this.grid[item2.row][item2.col] = item1;
-
- var item1Row = item1.row;
- var item1Col = item1.col;
- item1.row = item2.row;
- item1.col = item2.col;
- item2.row = item1Row;
- item2.col = item1Col;
- };
-
- /**
- * Prevents items from being overlapped
- *
- * @param {Object} item The item that should remain
- * @param {Array} ignoreItems
- */
- this.moveOverlappingItems = function(item, ignoreItems) {
- // don't move item, so ignore it
- if (!ignoreItems) {
- ignoreItems = [item];
- } else if (ignoreItems.indexOf(item) === -1) {
- ignoreItems = ignoreItems.slice(0);
- ignoreItems.push(item);
- }
-
- // get the items in the space occupied by the item's coordinates
- var overlappingItems = this.getItems(
- item.row,
- item.col,
- item.sizeX,
- item.sizeY,
- ignoreItems
- );
- this.moveItemsDown(overlappingItems, item.row + item.sizeY, ignoreItems);
- };
-
- /**
- * Moves an array of items to a specified row
- *
- * @param {Array} items The items to move
- * @param {Number} newRow The target row
- * @param {Array} ignoreItems
- */
- this.moveItemsDown = function(items, newRow, ignoreItems) {
- if (!items || items.length === 0) {
- return;
- }
- items.sort(function(a, b) {
- return a.row - b.row;
- });
-
- ignoreItems = ignoreItems ? ignoreItems.slice(0) : [];
- var topRows = {},
- item, i, l;
-
- // calculate the top rows in each column
- for (i = 0, l = items.length; i < l; ++i) {
- item = items[i];
- var topRow = topRows[item.col];
- if (typeof topRow === 'undefined' || item.row < topRow) {
- topRows[item.col] = item.row;
- }
- }
-
- // move each item down from the top row in its column to the row
- for (i = 0, l = items.length; i < l; ++i) {
- item = items[i];
- var rowsToMove = newRow - topRows[item.col];
- this.moveItemDown(item, item.row + rowsToMove, ignoreItems);
- ignoreItems.push(item);
- }
- };
-
- /**
- * Moves an item down to a specified row
- *
- * @param {Object} item The item to move
- * @param {Number} newRow The target row
- * @param {Array} ignoreItems
- */
- this.moveItemDown = function(item, newRow, ignoreItems) {
- if (item.row >= newRow) {
- return;
- }
- while (item.row < newRow) {
- ++item.row;
- this.moveOverlappingItems(item, ignoreItems);
- }
- this.putItem(item, item.row, item.col, ignoreItems);
- };
-
- /**
- * Moves all items up as much as possible
- */
- this.floatItemsUp = function() {
- if (this.floating === false) {
- return;
- }
- for (var rowIndex = 0, l = this.grid.length; rowIndex < l; ++rowIndex) {
- var columns = this.grid[rowIndex];
- if (!columns) {
- continue;
- }
- for (var colIndex = 0, len = columns.length; colIndex < len; ++colIndex) {
- var item = columns[colIndex];
- if (item) {
- this.floatItemUp(item);
- }
- }
- }
- };
-
- /**
- * Float an item up to the most suitable row
- *
- * @param {Object} item The item to move
- */
- this.floatItemUp = function(item) {
- if (this.floating === false) {
- return;
- }
- var colIndex = item.col,
- sizeY = item.sizeY,
- sizeX = item.sizeX,
- bestRow = null,
- bestColumn = null,
- rowIndex = item.row - 1;
-
- while (rowIndex > -1) {
- var items = this.getItems(rowIndex, colIndex, sizeX, sizeY, item);
- if (items.length !== 0) {
- break;
- }
- bestRow = rowIndex;
- bestColumn = colIndex;
- --rowIndex;
- }
- if (bestRow !== null) {
- this.putItem(item, bestRow, bestColumn);
- }
- };
-
- /**
- * Update gridsters height
- *
- * @param {Number} plus (Optional) Additional height to add
- */
- this.updateHeight = function(plus) {
- var maxHeight = this.minRows;
- plus = plus || 0;
- for (var rowIndex = this.grid.length; rowIndex >= 0; --rowIndex) {
- var columns = this.grid[rowIndex];
- if (!columns) {
- continue;
- }
- for (var colIndex = 0, len = columns.length; colIndex < len; ++colIndex) {
- if (columns[colIndex]) {
- maxHeight = Math.max(maxHeight, rowIndex + plus + columns[colIndex].sizeY);
- }
- }
- }
- this.gridHeight = this.maxRows - maxHeight > 0 ? Math.min(this.maxRows, maxHeight) : Math.max(this.maxRows, maxHeight);
- };
-
- /**
- * Returns the number of rows that will fit in given amount of pixels
- *
- * @param {Number} pixels
- * @param {Boolean} ceilOrFloor (Optional) Determines rounding method
- */
- this.pixelsToRows = function(pixels, ceilOrFloor) {
- if (ceilOrFloor === true) {
- return Math.ceil(pixels / this.curRowHeight);
- } else if (ceilOrFloor === false) {
- return Math.floor(pixels / this.curRowHeight);
- }
-
- return Math.round(pixels / this.curRowHeight);
- };
-
- /**
- * Returns the number of columns that will fit in a given amount of pixels
- *
- * @param {Number} pixels
- * @param {Boolean} ceilOrFloor (Optional) Determines rounding method
- * @returns {Number} The number of columns
- */
- this.pixelsToColumns = function(pixels, ceilOrFloor) {
- if (ceilOrFloor === true) {
- return Math.ceil(pixels / this.curColWidth);
- } else if (ceilOrFloor === false) {
- return Math.floor(pixels / this.curColWidth);
- }
-
- return Math.round(pixels / this.curColWidth);
- };
- }
- ])
-
- .directive('gridsterPreview', function() {
- return {
- replace: true,
- scope: true,
- require: '^gridster',
- template: '<div ng-style="previewStyle()" class="gridster-item gridster-preview-holder"></div>',
- link: function(scope, $el, attrs, gridster) {
-
- /**
- * @returns {Object} style object for preview element
- */
- scope.previewStyle = function() {
-
- if (!gridster.movingItem) {
- return {
- display: 'none'
- };
- }
-
- return {
- display: 'block',
- height: (gridster.movingItem.sizeY * gridster.curRowHeight - gridster.margins[0]) + 'px',
- width: (gridster.movingItem.sizeX * gridster.curColWidth - gridster.margins[1]) + 'px',
- top: (gridster.movingItem.row * gridster.curRowHeight + (gridster.outerMargin ? gridster.margins[0] : 0)) + 'px',
- left: (gridster.movingItem.col * gridster.curColWidth + (gridster.outerMargin ? gridster.margins[1] : 0)) + 'px'
- };
- };
- }
- };
- })
-
- /**
- * The gridster directive
- *
- * @param {Function} $timeout
- * @param {Object} $window
- * @param {Object} $rootScope
- * @param {Function} gridsterDebounce
- */
- .directive('gridster', ['$timeout', '$window', '$rootScope', 'gridsterDebounce',
- function($timeout, $window, $rootScope, gridsterDebounce) {
- return {
- scope: true,
- restrict: 'EAC',
- controller: 'GridsterCtrl',
- controllerAs: 'gridster',
- compile: function($tplElem) {
-
- $tplElem.prepend('<div ng-if="gridster.movingItem" gridster-preview></div>');
-
- return function(scope, $elem, attrs, gridster) {
- gridster.loaded = false;
-
- gridster.$element = $elem;
-
- scope.gridster = gridster;
-
- $elem.addClass('gridster');
-
- var isVisible = function(ele) {
- return ele.style.visibility !== 'hidden' && ele.style.display !== 'none';
- };
-
- function refresh(config) {
- gridster.setOptions(config);
-
- if (!isVisible($elem[0])) {
- return;
- }
-
- // resolve "auto" & "match" values
- if (gridster.width === 'auto') {
- gridster.curWidth = $elem[0].offsetWidth || parseInt($elem.css('width'), 10);
- } else {
- gridster.curWidth = gridster.width;
- }
-
- if (gridster.colWidth === 'auto') {
- gridster.curColWidth = (gridster.curWidth + (gridster.outerMargin ? -gridster.margins[1] : gridster.margins[1])) / gridster.columns;
- } else {
- gridster.curColWidth = gridster.colWidth;
- }
-
- gridster.curRowHeight = gridster.rowHeight;
- if (typeof gridster.rowHeight === 'string') {
- if (gridster.rowHeight === 'match') {
- gridster.curRowHeight = Math.round(gridster.curColWidth);
- } else if (gridster.rowHeight.indexOf('*') !== -1) {
- gridster.curRowHeight = Math.round(gridster.curColWidth * gridster.rowHeight.replace('*', '').replace(' ', ''));
- } else if (gridster.rowHeight.indexOf('/') !== -1) {
- gridster.curRowHeight = Math.round(gridster.curColWidth / gridster.rowHeight.replace('/', '').replace(' ', ''));
- }
- }
-
- gridster.isMobile = gridster.mobileModeEnabled && gridster.curWidth <= gridster.mobileBreakPoint;
-
- // loop through all items and reset their CSS
- for (var rowIndex = 0, l = gridster.grid.length; rowIndex < l; ++rowIndex) {
- var columns = gridster.grid[rowIndex];
- if (!columns) {
- continue;
- }
-
- for (var colIndex = 0, len = columns.length; colIndex < len; ++colIndex) {
- if (columns[colIndex]) {
- var item = columns[colIndex];
- item.setElementPosition();
- item.setElementSizeY();
- item.setElementSizeX();
- }
- }
- }
-
- updateHeight();
- }
-
- var optionsKey = attrs.gridster;
- if (optionsKey) {
- scope.$parent.$watch(optionsKey, function(newConfig) {
- refresh(newConfig);
- }, true);
- } else {
- refresh({});
- }
-
- scope.$watch(function() {
- return gridster.loaded;
- }, function() {
- if (gridster.loaded) {
- $elem.addClass('gridster-loaded');
- } else {
- $elem.removeClass('gridster-loaded');
- }
- });
-
- scope.$watch(function() {
- return gridster.isMobile;
- }, function() {
- if (gridster.isMobile) {
- $elem.addClass('gridster-mobile').removeClass('gridster-desktop');
- } else {
- $elem.removeClass('gridster-mobile').addClass('gridster-desktop');
- }
- $rootScope.$broadcast('gridster-mobile-changed', gridster);
- });
-
- scope.$watch(function() {
- return gridster.draggable;
- }, function() {
- $rootScope.$broadcast('gridster-draggable-changed', gridster);
- }, true);
-
- scope.$watch(function() {
- return gridster.resizable;
- }, function() {
- $rootScope.$broadcast('gridster-resizable-changed', gridster);
- }, true);
-
- function updateHeight() {
- if(gridster.gridHeight){ //need to put this check, otherwise fail in IE8
- $elem.css('height', (gridster.gridHeight * gridster.curRowHeight) + (gridster.outerMargin ? gridster.margins[0] : -gridster.margins[0]) + 'px');
- }
- }
-
- scope.$watch(function() {
- return gridster.gridHeight;
- }, updateHeight);
-
- scope.$watch(function() {
- return gridster.movingItem;
- }, function() {
- gridster.updateHeight(gridster.movingItem ? gridster.movingItem.sizeY : 0);
- });
-
- var prevWidth = $elem[0].offsetWidth || parseInt($elem.css('width'), 10);
-
- var resize = function() {
- var width = $elem[0].offsetWidth || parseInt($elem.css('width'), 10);
-
- if (!width || width === prevWidth || gridster.movingItem) {
- return;
- }
- prevWidth = width;
-
- if (gridster.loaded) {
- $elem.removeClass('gridster-loaded');
- }
-
- refresh();
-
- if (gridster.loaded) {
- $elem.addClass('gridster-loaded');
- }
-
- $rootScope.$broadcast('gridster-resized', [width, $elem[0].offsetHeight], gridster);
- };
-
- // track element width changes any way we can
- var onResize = gridsterDebounce(function onResize() {
- resize();
- $timeout(function() {
- scope.$apply();
- });
- }, 100);
-
- scope.$watch(function() {
- return isVisible($elem[0]);
- }, onResize);
-
- // see https://github.com/sdecima/javascript-detect-element-resize
- if (typeof window.addResizeListener === 'function') {
- window.addResizeListener($elem[0], onResize);
- } else {
- scope.$watch(function() {
- return $elem[0].offsetWidth || parseInt($elem.css('width'), 10);
- }, resize);
- }
- var $win = angular.element($window);
- $win.on('resize', onResize);
-
- // be sure to cleanup
- scope.$on('$destroy', function() {
- gridster.destroy();
- $win.off('resize', onResize);
- if (typeof window.removeResizeListener === 'function') {
- window.removeResizeListener($elem[0], onResize);
- }
- });
-
- // allow a little time to place items before floating up
- $timeout(function() {
- scope.$watch('gridster.floating', function() {
- gridster.floatItemsUp();
- });
- gridster.loaded = true;
- }, 100);
- };
- }
- };
- }
- ])
-
- .controller('GridsterItemCtrl', function() {
- this.$element = null;
- this.gridster = null;
- this.row = null;
- this.col = null;
- this.sizeX = null;
- this.sizeY = null;
- this.minSizeX = 0;
- this.minSizeY = 0;
- this.maxSizeX = null;
- this.maxSizeY = null;
-
- this.init = function($element, gridster) {
- this.$element = $element;
- this.gridster = gridster;
- this.sizeX = gridster.defaultSizeX;
- this.sizeY = gridster.defaultSizeY;
- };
-
- this.destroy = function() {
- // set these to null to avoid the possibility of circular references
- this.gridster = null;
- this.$element = null;
- };
-
- /**
- * Returns the items most important attributes
- */
- this.toJSON = function() {
- return {
- row: this.row,
- col: this.col,
- sizeY: this.sizeY,
- sizeX: this.sizeX
- };
- };
-
- this.isMoving = function() {
- return this.gridster.movingItem === this;
- };
-
- /**
- * Set the items position
- *
- * @param {Number} row
- * @param {Number} column
- */
- this.setPosition = function(row, column) {
- this.gridster.putItem(this, row, column);
-
- if (!this.isMoving()) {
- this.setElementPosition();
- }
- };
-
- /**
- * Sets a specified size property
- *
- * @param {String} key Can be either "x" or "y"
- * @param {Number} value The size amount
- * @param {Boolean} preventMove
- */
- this.setSize = function(key, value, preventMove) {
- key = key.toUpperCase();
- var camelCase = 'size' + key,
- titleCase = 'Size' + key;
- if (value === '') {
- return;
- }
- value = parseInt(value, 10);
- if (isNaN(value) || value === 0) {
- value = this.gridster['default' + titleCase];
- }
- var max = key === 'X' ? this.gridster.columns : this.gridster.maxRows;
- if (this['max' + titleCase]) {
- max = Math.min(this['max' + titleCase], max);
- }
- if (this.gridster['max' + titleCase]) {
- max = Math.min(this.gridster['max' + titleCase], max);
- }
- if (key === 'X' && this.cols) {
- max -= this.cols;
- } else if (key === 'Y' && this.rows) {
- max -= this.rows;
- }
-
- var min = 0;
- if (this['min' + titleCase]) {
- min = Math.max(this['min' + titleCase], min);
- }
- if (this.gridster['min' + titleCase]) {
- min = Math.max(this.gridster['min' + titleCase], min);
- }
-
- value = Math.max(Math.min(value, max), min);
-
- var changed = (this[camelCase] !== value || (this['old' + titleCase] && this['old' + titleCase] !== value));
- this['old' + titleCase] = this[camelCase] = value;
-
- if (!this.isMoving()) {
- this['setElement' + titleCase]();
- }
- if (!preventMove && changed) {
- this.gridster.moveOverlappingItems(this);
- this.gridster.layoutChanged();
- }
-
- return changed;
- };
-
- /**
- * Sets the items sizeY property
- *
- * @param {Number} rows
- * @param {Boolean} preventMove
- */
- this.setSizeY = function(rows, preventMove) {
- return this.setSize('Y', rows, preventMove);
- };
-
- /**
- * Sets the items sizeX property
- *
- * @param {Number} columns
- * @param {Boolean} preventMove
- */
- this.setSizeX = function(columns, preventMove) {
- return this.setSize('X', columns, preventMove);
- };
-
- /**
- * Sets an elements position on the page
- */
- this.setElementPosition = function() {
- if (this.gridster.isMobile) {
- this.$element.css({
- marginLeft: this.gridster.margins[0] + 'px',
- marginRight: this.gridster.margins[0] + 'px',
- marginTop: this.gridster.margins[1] + 'px',
- marginBottom: this.gridster.margins[1] + 'px',
- top: '',
- left: ''
- });
- } else {
- this.$element.css({
- margin: 0,
- top: (this.row * this.gridster.curRowHeight + (this.gridster.outerMargin ? this.gridster.margins[0] : 0)) + 'px',
- left: (this.col * this.gridster.curColWidth + (this.gridster.outerMargin ? this.gridster.margins[1] : 0)) + 'px'
- });
- }
- };
-
- /**
- * Sets an elements height
- */
- this.setElementSizeY = function() {
- if (this.gridster.isMobile && !this.gridster.saveGridItemCalculatedHeightInMobile) {
- this.$element.css('height', '');
- } else {
- this.$element.css('height', (this.sizeY * this.gridster.curRowHeight - this.gridster.margins[0]) + 'px');
- }
- };
-
- /**
- * Sets an elements width
- */
- this.setElementSizeX = function() {
- if (this.gridster.isMobile) {
- this.$element.css('width', '');
- } else {
- this.$element.css('width', (this.sizeX * this.gridster.curColWidth - this.gridster.margins[1]) + 'px');
- }
- };
-
- /**
- * Gets an element's width
- */
- this.getElementSizeX = function() {
- return (this.sizeX * this.gridster.curColWidth - this.gridster.margins[1]);
- };
-
- /**
- * Gets an element's height
- */
- this.getElementSizeY = function() {
- return (this.sizeY * this.gridster.curRowHeight - this.gridster.margins[0]);
- };
-
- })
-
- .factory('GridsterTouch', [function() {
- return function GridsterTouch(target, startEvent, moveEvent, endEvent) {
- var lastXYById = {};
-
- // Opera doesn't have Object.keys so we use this wrapper
- var numberOfKeys = function(theObject) {
- if (Object.keys) {
- return Object.keys(theObject).length;
- }
-
- var n = 0,
- key;
- for (key in theObject) {
- ++n;
- }
-
- return n;
- };
-
- // this calculates the delta needed to convert pageX/Y to offsetX/Y because offsetX/Y don't exist in the TouchEvent object or in Firefox's MouseEvent object
- var computeDocumentToElementDelta = function(theElement) {
- var elementLeft = 0;
- var elementTop = 0;
- var oldIEUserAgent = navigator.userAgent.match(/\bMSIE\b/);
-
- for (var offsetElement = theElement; offsetElement != null; offsetElement = offsetElement.offsetParent) {
- // the following is a major hack for versions of IE less than 8 to avoid an apparent problem on the IEBlog with double-counting the offsets
- // this may not be a general solution to IE7's problem with offsetLeft/offsetParent
- if (oldIEUserAgent &&
- (!document.documentMode || document.documentMode < 8) &&
- offsetElement.currentStyle.position === 'relative' && offsetElement.offsetParent && offsetElement.offsetParent.currentStyle.position === 'relative' && offsetElement.offsetLeft === offsetElement.offsetParent.offsetLeft) {
- // add only the top
- elementTop += offsetElement.offsetTop;
- } else {
- elementLeft += offsetElement.offsetLeft;
- elementTop += offsetElement.offsetTop;
- }
- }
-
- return {
- x: elementLeft,
- y: elementTop
- };
- };
-
- // cache the delta from the document to our event target (reinitialized each mousedown/MSPointerDown/touchstart)
- var documentToTargetDelta = computeDocumentToElementDelta(target);
-
- // common event handler for the mouse/pointer/touch models and their down/start, move, up/end, and cancel events
- var doEvent = function(theEvtObj) {
-
- if (theEvtObj.type === 'mousemove' && numberOfKeys(lastXYById) === 0) {
- return;
- }
-
- var prevent = true;
-
- var pointerList = theEvtObj.changedTouches ? theEvtObj.changedTouches : [theEvtObj];
-
- for (var i = 0; i < pointerList.length; ++i) {
- var pointerObj = pointerList[i];
- var pointerId = (typeof pointerObj.identifier !== 'undefined') ? pointerObj.identifier : (typeof pointerObj.pointerId !== 'undefined') ? pointerObj.pointerId : 1;
-
- // use the pageX/Y coordinates to compute target-relative coordinates when we have them (in ie < 9, we need to do a little work to put them there)
- if (typeof pointerObj.pageX === 'undefined') {
-
- // initialize assuming our source element is our target
- if(!ie8){
- pointerObj.pageX = pointerObj.offsetX + documentToTargetDelta.x;
- pointerObj.pageY = pointerObj.offsetY + documentToTargetDelta.y;
- }
- else{
- pointerObj.pageX = pointerObj.clientX;
- pointerObj.pageY = pointerObj.clientY;
- }
-
- if (pointerObj.srcElement.offsetParent === target && document.documentMode && document.documentMode === 8 && pointerObj.type === 'mousedown') {
- // source element is a child piece of VML, we're in IE8, and we've not called setCapture yet - add the origin of the source element
- pointerObj.pageX += pointerObj.srcElement.offsetLeft;
- pointerObj.pageY += pointerObj.srcElement.offsetTop;
- } else if (pointerObj.srcElement !== target && !document.documentMode || document.documentMode < 8) {
- // source element isn't the target (most likely it's a child piece of VML) and we're in a version of IE before IE8 -
- // the offsetX/Y values are unpredictable so use the clientX/Y values and adjust by the scroll offsets of its parents
- // to get the document-relative coordinates (the same as pageX/Y)
- var sx = -2,
- sy = -2; // adjust for old IE's 2-pixel border
- for (var scrollElement = pointerObj.srcElement; scrollElement !== null; scrollElement = scrollElement.parentNode) {
- sx += scrollElement.scrollLeft ? scrollElement.scrollLeft : 0;
- sy += scrollElement.scrollTop ? scrollElement.scrollTop : 0;
- }
-
- pointerObj.pageX = pointerObj.clientX + sx;
- pointerObj.pageY = pointerObj.clientY + sy;
- }
- }
-
-
- var pageX = pointerObj.pageX;
- var pageY = pointerObj.pageY;
-
- if (theEvtObj.type.match(/(start|down)$/i)) {
- // clause for processing MSPointerDown, touchstart, and mousedown
-
- // refresh the document-to-target delta on start in case the target has moved relative to document
- documentToTargetDelta = computeDocumentToElementDelta(target);
-
- // protect against failing to get an up or end on this pointerId
- if (lastXYById[pointerId]) {
- if (endEvent) {
- endEvent({
- target: theEvtObj.target,
- which: theEvtObj.which,
- pointerId: pointerId,
- pageX: pageX,
- pageY: pageY
- });
- }
-
- delete lastXYById[pointerId];
- }
-
- if (startEvent) {
- if (prevent) {
- prevent = startEvent({
- target: theEvtObj.target,
- which: theEvtObj.which,
- pointerId: pointerId,
- pageX: pageX,
- pageY: pageY
- });
- }
- }
-
- // init last page positions for this pointer
- lastXYById[pointerId] = {
- x: pageX,
- y: pageY
- };
-
- // IE pointer model
- if (target.msSetPointerCapture) {
- target.msSetPointerCapture(pointerId);
- } else if (theEvtObj.type === 'mousedown' && numberOfKeys(lastXYById) === 1) {
- if (useSetReleaseCapture) {
- target.setCapture(true);
- } else {
- document.addEventListener('mousemove', doEvent, false);
- document.addEventListener('mouseup', doEvent, false);
- }
- }
- } else if (theEvtObj.type.match(/move$/i)) {
- // clause handles mousemove, MSPointerMove, and touchmove
-
- if (lastXYById[pointerId] && !(lastXYById[pointerId].x === pageX && lastXYById[pointerId].y === pageY)) {
- // only extend if the pointer is down and it's not the same as the last point
-
- if (moveEvent && prevent) {
- prevent = moveEvent({
- target: theEvtObj.target,
- which: theEvtObj.which,
- pointerId: pointerId,
- pageX: pageX,
- pageY: pageY
- });
- }
-
- // update last page positions for this pointer
- lastXYById[pointerId].x = pageX;
- lastXYById[pointerId].y = pageY;
- }
- } else if (lastXYById[pointerId] && theEvtObj.type.match(/(up|end|cancel)$/i)) {
- // clause handles up/end/cancel
-
- if (endEvent && prevent) {
- prevent = endEvent({
- target: theEvtObj.target,
- which: theEvtObj.which,
- pointerId: pointerId,
- pageX: pageX,
- pageY: pageY
- });
- }
-
- // delete last page positions for this pointer
- delete lastXYById[pointerId];
-
- // in the Microsoft pointer model, release the capture for this pointer
- // in the mouse model, release the capture or remove document-level event handlers if there are no down points
- // nothing is required for the iOS touch model because capture is implied on touchstart
- if (target.msReleasePointerCapture) {
- target.msReleasePointerCapture(pointerId);
- } else if (theEvtObj.type === 'mouseup' && numberOfKeys(lastXYById) === 0) {
- if (useSetReleaseCapture) {
- target.releaseCapture();
- } else {
- document.removeEventListener('mousemove', doEvent, false);
- document.removeEventListener('mouseup', doEvent, false);
- }
- }
- }
- }
-
- if (prevent) {
- if (theEvtObj.preventDefault) {
- theEvtObj.preventDefault();
- }
-
- if (theEvtObj.preventManipulation) {
- theEvtObj.preventManipulation();
- }
-
- if (theEvtObj.preventMouseEvent) {
- theEvtObj.preventMouseEvent();
- }
- }
- };
-
- var useSetReleaseCapture = false;
- // saving the settings for contentZooming and touchaction before activation
- var contentZooming, msTouchAction;
-
- this.enable = function() {
-
- if (window.navigator.msPointerEnabled) {
- // Microsoft pointer model
- target.addEventListener('MSPointerDown', doEvent, false);
- target.addEventListener('MSPointerMove', doEvent, false);
- target.addEventListener('MSPointerUp', doEvent, false);
- target.addEventListener('MSPointerCancel', doEvent, false);
-
- // css way to prevent panning in our target area
- if (typeof target.style.msContentZooming !== 'undefined') {
- contentZooming = target.style.msContentZooming;
- target.style.msContentZooming = 'none';
- }
-
- // new in Windows Consumer Preview: css way to prevent all built-in touch actions on our target
- // without this, you cannot touch draw on the element because IE will intercept the touch events
- if (typeof target.style.msTouchAction !== 'undefined') {
- msTouchAction = target.style.msTouchAction;
- target.style.msTouchAction = 'none';
- }
- } else if (target.addEventListener) {
- // iOS touch model
- target.addEventListener('touchstart', doEvent, false);
- target.addEventListener('touchmove', doEvent, false);
- target.addEventListener('touchend', doEvent, false);
- target.addEventListener('touchcancel', doEvent, false);
-
- // mouse model
- target.addEventListener('mousedown', doEvent, false);
-
- // mouse model with capture
- // rejecting gecko because, unlike ie, firefox does not send events to target when the mouse is outside target
- if (target.setCapture && !window.navigator.userAgent.match(/\bGecko\b/)) {
- useSetReleaseCapture = true;
-
- target.addEventListener('mousemove', doEvent, false);
- target.addEventListener('mouseup', doEvent, false);
- }
- } else if (target.attachEvent && target.setCapture) {
- // legacy IE mode - mouse with capture
- useSetReleaseCapture = true;
- target.attachEvent('onmousedown', function() {
- doEvent(window.event);
- window.event.returnValue = false;
- return false;
- });
- target.attachEvent('onmousemove', function() {
- doEvent(window.event);
- window.event.returnValue = false;
- return false;
- });
- target.attachEvent('onmouseup', function() {
- doEvent(window.event);
- window.event.returnValue = false;
- return false;
- });
- }
- };
-
- this.disable = function() {
- if (window.navigator.msPointerEnabled) {
- // Microsoft pointer model
- target.removeEventListener('MSPointerDown', doEvent, false);
- target.removeEventListener('MSPointerMove', doEvent, false);
- target.removeEventListener('MSPointerUp', doEvent, false);
- target.removeEventListener('MSPointerCancel', doEvent, false);
-
- // reset zooming to saved value
- if (contentZooming) {
- target.style.msContentZooming = contentZooming;
- }
-
- // reset touch action setting
- if (msTouchAction) {
- target.style.msTouchAction = msTouchAction;
- }
- } else if (target.removeEventListener) {
- // iOS touch model
- target.removeEventListener('touchstart', doEvent, false);
- target.removeEventListener('touchmove', doEvent, false);
- target.removeEventListener('touchend', doEvent, false);
- target.removeEventListener('touchcancel', doEvent, false);
-
- // mouse model
- target.removeEventListener('mousedown', doEvent, false);
-
- // mouse model with capture
- // rejecting gecko because, unlike ie, firefox does not send events to target when the mouse is outside target
- if (target.setCapture && !window.navigator.userAgent.match(/\bGecko\b/)) {
- useSetReleaseCapture = true;
-
- target.removeEventListener('mousemove', doEvent, false);
- target.removeEventListener('mouseup', doEvent, false);
- }
- } else if (target.detachEvent && target.setCapture) {
- // legacy IE mode - mouse with capture
- useSetReleaseCapture = true;
- target.detachEvent('onmousedown');
- target.detachEvent('onmousemove');
- target.detachEvent('onmouseup');
- }
- };
-
- return this;
- };
- }])
-
- .factory('GridsterDraggable', ['$document', '$timeout', '$window', 'GridsterTouch',
- function($document, $timeout, $window, GridsterTouch) {
- function GridsterDraggable($el, scope, gridster, item, itemOptions) {
-
- var elmX, elmY, elmW, elmH,
-
- mouseX = 0,
- mouseY = 0,
- lastMouseX = 0,
- lastMouseY = 0,
- mOffX = 0,
- mOffY = 0,
-
- minTop = 0,
- maxTop = 9999,
- minLeft = 0,
- realdocument = $document[0];
-
- var originalCol, originalRow;
- var inputTags = ['select', 'input', 'textarea', 'button'];
-
- var gridsterItemDragElement = $el[0].querySelector('[gridster-item-drag]');
- //console.log(gridsterItemDragElement);
- var isDraggableAreaDefined = gridsterItemDragElement?true:false;
- //console.log(isDraggableAreaDefined);
-
- function mouseDown(e) {
-
- if(ie8){
- e.target = window.event.srcElement;
- e.which = window.event.button;
- }
-
- if(isDraggableAreaDefined && (!gridsterItemDragElement.contains(e.target))){
- return false;
- }
-
- if (inputTags.indexOf(e.target.nodeName.toLowerCase()) !== -1) {
- return false;
- }
-
- var $target = angular.element(e.target);
-
- // exit, if a resize handle was hit
- if ($target.hasClass('gridster-item-resizable-handler')) {
- return false;
- }
-
- // exit, if the target has it's own click event
- if ($target.attr('onclick') || $target.attr('ng-click')) {
- return false;
- }
-
- // only works if you have jQuery
- if ($target.closest && $target.closest('.gridster-no-drag').length) {
- return false;
- }
-
- switch (e.which) {
- case 1:
- // left mouse button
- break;
- case 2:
- case 3:
- // right or middle mouse button
- return;
- }
-
- lastMouseX = e.pageX;
- lastMouseY = e.pageY;
-
- elmX = parseInt($el.css('left'), 10);
- elmY = parseInt($el.css('top'), 10);
- elmW = $el[0].offsetWidth;
- elmH = $el[0].offsetHeight;
-
- originalCol = item.col;
- originalRow = item.row;
-
- dragStart(e);
-
- return true;
- }
-
- function mouseMove(e) {
- if (!$el.hasClass('gridster-item-moving') || $el.hasClass('gridster-item-resizing')) {
- return false;
- }
-
- var maxLeft = gridster.curWidth - 1;
-
- // Get the current mouse position.
- mouseX = e.pageX;
- mouseY = e.pageY;
-
- // Get the deltas
- var diffX = mouseX - lastMouseX + mOffX;
- var diffY = mouseY - lastMouseY + mOffY;
- mOffX = mOffY = 0;
-
- // Update last processed mouse positions.
- lastMouseX = mouseX;
- lastMouseY = mouseY;
-
- var dX = diffX,
- dY = diffY;
- if (elmX + dX < minLeft) {
- diffX = minLeft - elmX;
- mOffX = dX - diffX;
- } else if (elmX + elmW + dX > maxLeft) {
- diffX = maxLeft - elmX - elmW;
- mOffX = dX - diffX;
- }
-
- if (elmY + dY < minTop) {
- diffY = minTop - elmY;
- mOffY = dY - diffY;
- } else if (elmY + elmH + dY > maxTop) {
- diffY = maxTop - elmY - elmH;
- mOffY = dY - diffY;
- }
- elmX += diffX;
- elmY += diffY;
-
- // set new position
- $el.css({
- 'top': elmY + 'px',
- 'left': elmX + 'px'
- });
-
- drag(e);
-
- return true;
- }
-
- function mouseUp(e) {
- if (!$el.hasClass('gridster-item-moving') || $el.hasClass('gridster-item-resizing')) {
- return false;
- }
-
- mOffX = mOffY = 0;
-
- dragStop(e);
-
- return true;
- }
-
- function dragStart(event) {
- $el.addClass('gridster-item-moving');
- gridster.movingItem = item;
-
- gridster.updateHeight(item.sizeY);
- scope.$apply(function() {
- if (gridster.draggable && gridster.draggable.start) {
- gridster.draggable.start(event, $el, itemOptions);
- }
- });
- }
-
- function drag(event) {
- var oldRow = item.row,
- oldCol = item.col,
- hasCallback = gridster.draggable && gridster.draggable.drag,
- scrollSensitivity = gridster.draggable.scrollSensitivity,
- scrollSpeed = gridster.draggable.scrollSpeed;
-
- var row = gridster.pixelsToRows(elmY);
- var col = gridster.pixelsToColumns(elmX);
-
- var itemsInTheWay = gridster.getItems(row, col, item.sizeX, item.sizeY, item);
- var hasItemsInTheWay = itemsInTheWay.length !== 0;
-
- if (gridster.swapping === true && hasItemsInTheWay) {
- var boundingBoxItem = gridster.getBoundingBox(itemsInTheWay),
- sameSize = boundingBoxItem.sizeX === item.sizeX && boundingBoxItem.sizeY === item.sizeY,
- sameRow = boundingBoxItem.row === oldRow,
- sameCol = boundingBoxItem.col === oldCol,
- samePosition = boundingBoxItem.row === row && boundingBoxItem.col === col,
- inline = sameRow || sameCol;
-
- if (sameSize && itemsInTheWay.length === 1) {
- if (samePosition) {
- gridster.swapItems(item, itemsInTheWay[0]);
- } else if (inline) {
- return;
- }
- } else if (boundingBoxItem.sizeX <= item.sizeX && boundingBoxItem.sizeY <= item.sizeY && inline) {
- var emptyRow = item.row <= row ? item.row : row + item.sizeY,
- emptyCol = item.col <= col ? item.col : col + item.sizeX,
- rowOffset = emptyRow - boundingBoxItem.row,
- colOffset = emptyCol - boundingBoxItem.col;
-
- for (var i = 0, l = itemsInTheWay.length; i < l; ++i) {
- var itemInTheWay = itemsInTheWay[i];
-
- var itemsInFreeSpace = gridster.getItems(
- itemInTheWay.row + rowOffset,
- itemInTheWay.col + colOffset,
- itemInTheWay.sizeX,
- itemInTheWay.sizeY,
- item
- );
-
- if (itemsInFreeSpace.length === 0) {
- gridster.putItem(itemInTheWay, itemInTheWay.row + rowOffset, itemInTheWay.col + colOffset);
- }
- }
- }
- }
-
- if (gridster.pushing !== false || !hasItemsInTheWay) {
- item.row = row;
- item.col = col;
- }
-
- if(($window.navigator.appName === 'Microsoft Internet Explorer' && !ie8) || $window.navigator.userAgent.indexOf("Firefox")!==-1){
- if (event.pageY - realdocument.documentElement.scrollTop < scrollSensitivity) {
- realdocument.documentElement.scrollTop = realdocument.documentElement.scrollTop - scrollSpeed;
- } else if ($window.innerHeight - (event.pageY - realdocument.documentElement.scrollTop) < scrollSensitivity) {
- realdocument.documentElement.scrollTop = realdocument.documentElement.scrollTop + scrollSpeed;
- }
- }
- else{
- if (event.pageY - realdocument.body.scrollTop < scrollSensitivity) {
- realdocument.body.scrollTop = realdocument.body.scrollTop - scrollSpeed;
- } else if ($window.innerHeight - (event.pageY - realdocument.body.scrollTop) < scrollSensitivity) {
- realdocument.body.scrollTop = realdocument.body.scrollTop + scrollSpeed;
- }
- }
-
-
-
- if (event.pageX - realdocument.body.scrollLeft < scrollSensitivity) {
- realdocument.body.scrollLeft = realdocument.body.scrollLeft - scrollSpeed;
- } else if ($window.innerWidth - (event.pageX - realdocument.body.scrollLeft) < scrollSensitivity) {
- realdocument.body.scrollLeft = realdocument.body.scrollLeft + scrollSpeed;
- }
-
- if (hasCallback || oldRow !== item.row || oldCol !== item.col) {
- scope.$apply(function() {
- if (hasCallback) {
- gridster.draggable.drag(event, $el, itemOptions);
- }
- });
- }
- }
-
- function dragStop(event) {
- $el.removeClass('gridster-item-moving');
- var row = gridster.pixelsToRows(elmY);
- var col = gridster.pixelsToColumns(elmX);
- if (gridster.pushing !== false || gridster.getItems(row, col, item.sizeX, item.sizeY, item).length === 0) {
- item.row = row;
- item.col = col;
- }
- gridster.movingItem = null;
- item.setPosition(item.row, item.col);
-
- scope.$apply(function() {
- if (gridster.draggable && gridster.draggable.stop) {
- gridster.draggable.stop(event, $el, itemOptions);
- }
- });
- }
-
- var enabled = null;
- var $dragHandles = null;
- var unifiedInputs = [];
-
- this.enable = function() {
- if (enabled === true) {
- return;
- }
-
- // disable and timeout required for some template rendering
- $timeout(function() {
- // disable any existing draghandles
- for (var u = 0, ul = unifiedInputs.length; u < ul; ++u) {
- unifiedInputs[u].disable();
- }
- unifiedInputs = [];
-
- if (gridster.draggable && gridster.draggable.handle) {
- $dragHandles = angular.element($el[0].querySelectorAll(gridster.draggable.handle));
- if ($dragHandles.length === 0) {
- // fall back to element if handle not found...
- $dragHandles = $el;
- }
- } else {
- $dragHandles = $el;
- }
-
- for (var h = 0, hl = $dragHandles.length; h < hl; ++h) {
- unifiedInputs[h] = new GridsterTouch($dragHandles[h], mouseDown, mouseMove, mouseUp);
- unifiedInputs[h].enable();
- }
-
- enabled = true;
- });
- };
-
- this.disable = function() {
- if (enabled === false) {
- return;
- }
-
- // timeout to avoid race contition with the enable timeout
- $timeout(function() {
-
- for (var u = 0, ul = unifiedInputs.length; u < ul; ++u) {
- unifiedInputs[u].disable();
- }
-
- unifiedInputs = [];
- enabled = false;
- });
- };
-
- this.toggle = function(enabled) {
- if (enabled) {
- this.enable();
- } else {
- this.disable();
- }
- };
-
- this.destroy = function() {
- this.disable();
- };
- }
-
- return GridsterDraggable;
- }
- ])
-
- .factory('GridsterResizable', ['GridsterTouch', function(GridsterTouch) {
- function GridsterResizable($el, scope, gridster, item, itemOptions) {
-
- function ResizeHandle(handleClass) {
-
- var hClass = handleClass;
-
- var elmX, elmY, elmW, elmH,
-
- mouseX = 0,
- mouseY = 0,
- lastMouseX = 0,
- lastMouseY = 0,
- mOffX = 0,
- mOffY = 0,
-
- minTop = 0,
- maxTop = 9999,
- minLeft = 0;
-
- var getMinHeight = function() {
- return (item.minSizeY ? item.minSizeY : 1) * gridster.curRowHeight - gridster.margins[0];
- };
- var getMinWidth = function() {
- return (item.minSizeX ? item.minSizeX : 1) * gridster.curColWidth - gridster.margins[1];
- };
-
- var originalWidth, originalHeight;
- var savedDraggable;
-
- function mouseDown(e) {
- switch (e.which) {
- case 1:
- // left mouse button
- break;
- case 2:
- case 3:
- // right or middle mouse button
- return;
- }
-
- // save the draggable setting to restore after resize
- savedDraggable = gridster.draggable.enabled;
- if (savedDraggable) {
- gridster.draggable.enabled = false;
- scope.$broadcast('gridster-draggable-changed', gridster);
- }
-
- // Get the current mouse position.
- lastMouseX = e.pageX;
- lastMouseY = e.pageY;
-
- // Record current widget dimensions
- elmX = parseInt($el.css('left'), 10);
- elmY = parseInt($el.css('top'), 10);
- elmW = $el[0].offsetWidth;
- elmH = $el[0].offsetHeight;
-
- originalWidth = item.sizeX;
- originalHeight = item.sizeY;
-
- resizeStart(e);
-
- return true;
- }
-
- function resizeStart(e) {
- $el.addClass('gridster-item-moving');
- $el.addClass('gridster-item-resizing');
-
- gridster.movingItem = item;
-
- item.setElementSizeX();
- item.setElementSizeY();
- item.setElementPosition();
- gridster.updateHeight(1);
-
- scope.$apply(function() {
- // callback
- if (gridster.resizable && gridster.resizable.start) {
- gridster.resizable.start(e, $el, itemOptions); // options is the item model
- }
- });
- }
-
- function mouseMove(e) {
- var maxLeft = gridster.curWidth - 1;
-
- // Get the current mouse position.
- mouseX = e.pageX;
- mouseY = e.pageY;
-
- // Get the deltas
- var diffX = mouseX - lastMouseX + mOffX;
- var diffY = mouseY - lastMouseY + mOffY;
- mOffX = mOffY = 0;
-
- // Update last processed mouse positions.
- lastMouseX = mouseX;
- lastMouseY = mouseY;
-
- var dY = diffY,
- dX = diffX;
-
- if (hClass.indexOf('n') >= 0) {
- if (elmH - dY < getMinHeight()) {
- diffY = elmH - getMinHeight();
- mOffY = dY - diffY;
- } else if (elmY + dY < minTop) {
- diffY = minTop - elmY;
- mOffY = dY - diffY;
- }
- elmY += diffY;
- elmH -= diffY;
- }
- if (hClass.indexOf('s') >= 0) {
- if (elmH + dY < getMinHeight()) {
- diffY = getMinHeight() - elmH;
- mOffY = dY - diffY;
- } else if (elmY + elmH + dY > maxTop) {
- diffY = maxTop - elmY - elmH;
- mOffY = dY - diffY;
- }
- elmH += diffY;
- }
- if (hClass.indexOf('w') >= 0) {
- if (elmW - dX < getMinWidth()) {
- diffX = elmW - getMinWidth();
- mOffX = dX - diffX;
- } else if (elmX + dX < minLeft) {
- diffX = minLeft - elmX;
- mOffX = dX - diffX;
- }
- elmX += diffX;
- elmW -= diffX;
- }
- if (hClass.indexOf('e') >= 0) {
- if (elmW + dX < getMinWidth()) {
- diffX = getMinWidth() - elmW;
- mOffX = dX - diffX;
- } else if (elmX + elmW + dX > maxLeft) {
- diffX = maxLeft - elmX - elmW;
- mOffX = dX - diffX;
- }
- elmW += diffX;
- }
-
- // set new position
- $el.css({
- 'top': elmY + 'px',
- 'left': elmX + 'px',
- 'width': elmW + 'px',
- 'height': elmH + 'px'
- });
-
- resize(e);
-
- return true;
- }
-
- function mouseUp(e) {
- // restore draggable setting to its original state
- if (gridster.draggable.enabled !== savedDraggable) {
- gridster.draggable.enabled = savedDraggable;
- scope.$broadcast('gridster-draggable-changed', gridster);
- }
-
- mOffX = mOffY = 0;
-
- resizeStop(e);
-
- return true;
- }
-
- function resize(e) {
- var oldRow = item.row,
- oldCol = item.col,
- oldSizeX = item.sizeX,
- oldSizeY = item.sizeY,
- hasCallback = gridster.resizable && gridster.resizable.resize;
-
- var col = item.col;
- // only change column if grabbing left edge
- if (['w', 'nw', 'sw'].indexOf(handleClass) !== -1) {
- col = gridster.pixelsToColumns(elmX, false);
- }
-
- var row = item.row;
- // only change row if grabbing top edge
- if (['n', 'ne', 'nw'].indexOf(handleClass) !== -1) {
- row = gridster.pixelsToRows(elmY, false);
- }
-
- var sizeX = item.sizeX;
- // only change row if grabbing left or right edge
- if (['n', 's'].indexOf(handleClass) === -1) {
- sizeX = gridster.pixelsToColumns(elmW, true);
- }
-
- var sizeY = item.sizeY;
- // only change row if grabbing top or bottom edge
- if (['e', 'w'].indexOf(handleClass) === -1) {
- sizeY = gridster.pixelsToRows(elmH, true);
- }
-
- if (gridster.pushing !== false || gridster.getItems(row, col, sizeX, sizeY, item).length === 0) {
- item.row = row;
- item.col = col;
- item.sizeX = sizeX;
- item.sizeY = sizeY;
- }
- var isChanged = item.row !== oldRow || item.col !== oldCol || item.sizeX !== oldSizeX || item.sizeY !== oldSizeY;
-
- if (hasCallback || isChanged) {
- scope.$apply(function() {
- if (hasCallback) {
- gridster.resizable.resize(e, $el, itemOptions); // options is the item model
- }
- });
- }
- }
-
- function resizeStop(e) {
- $el.removeClass('gridster-item-moving');
- $el.removeClass('gridster-item-resizing');
-
- gridster.movingItem = null;
-
- item.setPosition(item.row, item.col);
- item.setSizeY(item.sizeY);
- item.setSizeX(item.sizeX);
-
- scope.$apply(function() {
- if (gridster.resizable && gridster.resizable.stop) {
- gridster.resizable.stop(e, $el, itemOptions); // options is the item model
- }
- });
- }
-
- var $dragHandle = null;
- var unifiedInput;
-
- this.enable = function() {
- if (!$dragHandle) {
- $dragHandle = angular.element('<div class="gridster-item-resizable-handler handle-' + hClass + '"></div>');
- $el.append($dragHandle);
- }
-
- unifiedInput = new GridsterTouch($dragHandle[0], mouseDown, mouseMove, mouseUp);
- unifiedInput.enable();
- };
-
- this.disable = function() {
- if ($dragHandle) {
- $dragHandle.remove();
- $dragHandle = null;
- }
-
- unifiedInput.disable();
- unifiedInput = undefined;
- };
-
- this.destroy = function() {
- this.disable();
- };
- }
-
- var handles = [];
- var handlesOpts = gridster.resizable.handles;
- if (typeof handlesOpts === 'string') {
- handlesOpts = gridster.resizable.handles.split(',');
- }
- var enabled = false;
-
- for (var c = 0, l = handlesOpts.length; c < l; c++) {
- handles.push(new ResizeHandle(handlesOpts[c]));
- }
-
- this.enable = function() {
- if (enabled) {
- return;
- }
- for (var c = 0, l = handles.length; c < l; c++) {
- handles[c].enable();
- }
- enabled = true;
- };
-
- this.disable = function() {
- if (!enabled) {
- return;
- }
- for (var c = 0, l = handles.length; c < l; c++) {
- handles[c].disable();
- }
- enabled = false;
- };
-
- this.toggle = function(enabled) {
- if (enabled) {
- this.enable();
- } else {
- this.disable();
- }
- };
-
- this.destroy = function() {
- for (var c = 0, l = handles.length; c < l; c++) {
- handles[c].destroy();
- }
- };
- }
- return GridsterResizable;
- }])
-
- .factory('gridsterDebounce', function() {
- return function gridsterDebounce(func, wait, immediate) {
- var timeout;
- return function() {
- var context = this,
- args = arguments;
- var later = function() {
- timeout = null;
- if (!immediate) {
- func.apply(context, args);
- }
- };
- var callNow = immediate && !timeout;
- clearTimeout(timeout);
- timeout = setTimeout(later, wait);
- if (callNow) {
- func.apply(context, args);
- }
- };
- };
- })
-
- /**
- * GridsterItem directive
- * @param $parse
- * @param GridsterDraggable
- * @param GridsterResizable
- * @param gridsterDebounce
- */
- .directive('gridsterItem', ['$parse', 'GridsterDraggable', 'GridsterResizable', 'gridsterDebounce',
- function($parse, GridsterDraggable, GridsterResizable, gridsterDebounce) {
- return {
- scope: true,
- restrict: 'EA',
- controller: 'GridsterItemCtrl',
- controllerAs: 'gridsterItem',
- require: ['^gridster', 'gridsterItem'],
- link: function(scope, $el, attrs, controllers) {
- var optionsKey = attrs.gridsterItem,
- options;
-
- var gridster = controllers[0],
- item = controllers[1];
-
- scope.gridster = gridster;
-
-
- // bind the item's position properties
- // options can be an object specified by gridster-item="object"
- // or the options can be the element html attributes object
- if (optionsKey) {
- var $optionsGetter = $parse(optionsKey);
- options = $optionsGetter(scope) || {};
- if (!options && $optionsGetter.assign) {
- options = {
- row: item.row,
- col: item.col,
- sizeX: item.sizeX,
- sizeY: item.sizeY,
- minSizeX: 0,
- minSizeY: 0,
- maxSizeX: null,
- maxSizeY: null
- };
- $optionsGetter.assign(scope, options);
- }
- } else {
- options = attrs;
- }
-
- item.init($el, gridster);
-
- $el.addClass('gridster-item');
-
- var aspects = ['minSizeX', 'maxSizeX', 'minSizeY', 'maxSizeY', 'sizeX', 'sizeY', 'row', 'col'],
- $getters = {};
-
- var expressions = [];
- var aspectFn = function(aspect) {
- var expression;
- if (typeof options[aspect] === 'string') {
- // watch the expression in the scope
- expression = options[aspect];
- } else if (typeof options[aspect.toLowerCase()] === 'string') {
- // watch the expression in the scope
- expression = options[aspect.toLowerCase()];
- } else if (optionsKey) {
- // watch the expression on the options object in the scope
- expression = optionsKey + '.' + aspect;
- } else {
- return;
- }
- expressions.push('"' + aspect + '":' + expression);
- $getters[aspect] = $parse(expression);
-
- // initial set
- var val = $getters[aspect](scope);
- if (typeof val === 'number') {
- item[aspect] = val;
- }
- };
-
- for (var i = 0, l = aspects.length; i < l; ++i) {
- aspectFn(aspects[i]);
- }
-
- var watchExpressions = '{' + expressions.join(',') + '}';
-
- // when the value changes externally, update the internal item object
- scope.$watchCollection(watchExpressions, function(newVals, oldVals) {
- for (var aspect in newVals) {
- var newVal = newVals[aspect];
- var oldVal = oldVals[aspect];
- if (oldVal === newVal) {
- continue;
- }
- newVal = parseInt(newVal, 10);
- if (!isNaN(newVal)) {
- item[aspect] = newVal;
- }
- }
- });
-
- function positionChanged() {
- // call setPosition so the element and gridster controller are updated
- item.setPosition(item.row, item.col);
-
- // when internal item position changes, update externally bound values
- if ($getters.row && $getters.row.assign) {
- $getters.row.assign(scope, item.row);
- }
- if ($getters.col && $getters.col.assign) {
- $getters.col.assign(scope, item.col);
- }
- }
- scope.$watch(function() {
- return item.row + ',' + item.col;
- }, positionChanged);
-
- function sizeChanged() {
- var changedX = item.setSizeX(item.sizeX, true);
- if (changedX && $getters.sizeX && $getters.sizeX.assign) {
- $getters.sizeX.assign(scope, item.sizeX);
- }
- var changedY = item.setSizeY(item.sizeY, true);
- if (changedY && $getters.sizeY && $getters.sizeY.assign) {
- $getters.sizeY.assign(scope, item.sizeY);
- }
-
- if (changedX || changedY) {
- item.gridster.moveOverlappingItems(item);
- gridster.layoutChanged();
- scope.$broadcast('gridster-item-resized', item);
- }
- }
-
- scope.$watch(function() {
- return item.sizeY + ',' + item.sizeX + ',' + item.minSizeX + ',' + item.maxSizeX + ',' + item.minSizeY + ',' + item.maxSizeY;
- }, sizeChanged);
-
- var draggable = new GridsterDraggable($el, scope, gridster, item, options);
- var resizable = new GridsterResizable($el, scope, gridster, item, options);
-
- var updateResizable = function() {
- resizable.toggle(!gridster.isMobile && gridster.resizable && gridster.resizable.enabled);
- };
- updateResizable();
-
- var updateDraggable = function() {
- draggable.toggle(!gridster.isMobile && gridster.draggable && gridster.draggable.enabled);
- };
- updateDraggable();
-
- scope.$on('gridster-draggable-changed', updateDraggable);
- scope.$on('gridster-resizable-changed', updateResizable);
- scope.$on('gridster-resized', updateResizable);
- scope.$on('gridster-mobile-changed', function() {
- updateResizable();
- updateDraggable();
- });
-
- function whichTransitionEvent() {
- var el = document.createElement('div');
- var transitions = {
- 'transition': 'transitionend',
- 'OTransition': 'oTransitionEnd',
- 'MozTransition': 'transitionend',
- 'WebkitTransition': 'webkitTransitionEnd'
- };
- for (var t in transitions) {
- if (el.style[t] !== undefined) {
- return transitions[t];
- }
- }
- }
-
- var debouncedTransitionEndPublisher = gridsterDebounce(function() {
- scope.$apply(function() {
- scope.$broadcast('gridster-item-transition-end', item);
- });
- }, 50);
-
- if(whichTransitionEvent()){ //check for IE8, as it evaluates to null
- $el.on(whichTransitionEvent(), debouncedTransitionEndPublisher);
- }
-
- scope.$broadcast('gridster-item-initialized', item);
-
- return scope.$on('$destroy', function() {
- try {
- resizable.destroy();
- draggable.destroy();
- } catch (e) {}
-
- try {
- gridster.removeItem(item);
- } catch (e) {}
-
- try {
- item.destroy();
- } catch (e) {}
- });
- }
- };
- }
- ])
-
- .directive('gridsterNoDrag', function() {
- return {
- restrict: 'A',
- link: function(scope, $element) {
- $element.addClass('gridster-no-drag');
- }
- };
- })
-
- ;
-
-}));
diff --git a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/css/angular-gridster.css b/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/css/angular-gridster.css
deleted file mode 100644
index a9edba8f..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/css/angular-gridster.css
+++ /dev/null
@@ -1,173 +0,0 @@
-.gridster {
- position: relative;
- margin: auto;
- /* height: 0
- */}
-
-.gridster>ul {
- margin: 0;
- list-style: none;
- padding: 0
-}
-
-.gridster-item {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- list-style: none;
- z-index: 2;
- position: absolute;
- display: none
-}
-
-.gridster-loaded {
- -webkit-transition: height .3s;
- -moz-transition: height .3s;
- -o-transition: height .3s;
- transition: height .3s
-}
-
-.gridster-loaded .gridster-item {
- display: block;
- position: absolute;
- -webkit-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
- -moz-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
- -o-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
- transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
- -webkit-transition-delay: 50ms;
- -moz-transition-delay: 50ms;
- -o-transition-delay: 50ms;
- transition-delay: 50ms
-}
-
-.gridster-loaded .gridster-preview-holder {
- display: none;
- z-index: 1;
- position: absolute;
- background-color: #067ab4;
- /*
- background-color: rgb(6, 122, 180);
- -ms-filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#067ab4', endColorstr='#067ab4'); IE
- opacity: 0.2;
- */
- border-color: #fff;
- -webkit-transition: width .2s, height .3s;
- -moz-transition: width .2s, height .3s;
- -o-transition: width .2s, height .3s;
- transition: width .2s, height .3s;
- -webkit-transition-delay: 50ms;
- -moz-transition-delay: 50ms;
- -o-transition-delay: 50ms;
- transition-delay: 50ms
-}
-
-.gridster-loaded .gridster-item.gridster-item-moving {
- -webkit-transition: none;
- -moz-transition: none;
- -o-transition: none;
- transition: none;
- opacity: 0.9;
-}
-
-.gridster-mobile {
- height: auto !important
-}
-
-.gridster-mobile .gridster-item {
- height: auto;
- position: static;
- float: none
-}
-
-.gridster-item.ng-leave.ng-leave-active {
- opacity: 0
-}
-
-.gridster-item.ng-enter {
- opacity: 1
-}
-
-.gridster-item-moving {
- z-index: 3
-}
-
-.gridster-item-resizable-handler {
- position: absolute;
- font-size: 1px;
- display: block
-}
-
-.handle-se {
- cursor: se-resize;
- width: 0;
- height: 0;
- right: 1px;
- bottom: 1px;
- border-style: solid;
- border-width: 0 0 12px 12px;
- border-color: transparent
-}
-
-.handle-ne {
- cursor: ne-resize;
- width: 12px;
- height: 12px;
- right: 1px;
- top: 1px
-}
-
-.handle-nw {
- cursor: nw-resize;
- width: 12px;
- height: 12px;
- left: 1px;
- top: 1px
-}
-
-.handle-sw {
- cursor: sw-resize;
- width: 12px;
- height: 12px;
- left: 1px;
- bottom: 1px
-}
-
-.handle-e {
- cursor: e-resize;
- width: 12px;
- bottom: 0;
- right: 1px;
- top: 0
-}
-
-.handle-s {
- cursor: s-resize;
- height: 12px;
- right: 0;
- bottom: 1px;
- left: 0
-}
-
-.handle-n {
- cursor: n-resize;
- height: 12px;
- right: 0;
- top: 1px;
- left: 0
-}
-
-.handle-w {
- cursor: w-resize;
- width: 12px;
- left: 1px;
- top: 0;
- bottom: 0
-}
-
-.gridster .gridster-item:hover .gridster-box {
- border: 1.5px solid #B3B2B3
-}
-
-.gridster .gridster-item:hover .handle-se {
- border-color: transparent transparent #ccc
-}
diff --git a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/styles/angular-gridster.css b/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/styles/angular-gridster.css
deleted file mode 100644
index a9edba8f..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/styles/angular-gridster.css
+++ /dev/null
@@ -1,173 +0,0 @@
-.gridster {
- position: relative;
- margin: auto;
- /* height: 0
- */}
-
-.gridster>ul {
- margin: 0;
- list-style: none;
- padding: 0
-}
-
-.gridster-item {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- list-style: none;
- z-index: 2;
- position: absolute;
- display: none
-}
-
-.gridster-loaded {
- -webkit-transition: height .3s;
- -moz-transition: height .3s;
- -o-transition: height .3s;
- transition: height .3s
-}
-
-.gridster-loaded .gridster-item {
- display: block;
- position: absolute;
- -webkit-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
- -moz-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
- -o-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
- transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
- -webkit-transition-delay: 50ms;
- -moz-transition-delay: 50ms;
- -o-transition-delay: 50ms;
- transition-delay: 50ms
-}
-
-.gridster-loaded .gridster-preview-holder {
- display: none;
- z-index: 1;
- position: absolute;
- background-color: #067ab4;
- /*
- background-color: rgb(6, 122, 180);
- -ms-filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#067ab4', endColorstr='#067ab4'); IE
- opacity: 0.2;
- */
- border-color: #fff;
- -webkit-transition: width .2s, height .3s;
- -moz-transition: width .2s, height .3s;
- -o-transition: width .2s, height .3s;
- transition: width .2s, height .3s;
- -webkit-transition-delay: 50ms;
- -moz-transition-delay: 50ms;
- -o-transition-delay: 50ms;
- transition-delay: 50ms
-}
-
-.gridster-loaded .gridster-item.gridster-item-moving {
- -webkit-transition: none;
- -moz-transition: none;
- -o-transition: none;
- transition: none;
- opacity: 0.9;
-}
-
-.gridster-mobile {
- height: auto !important
-}
-
-.gridster-mobile .gridster-item {
- height: auto;
- position: static;
- float: none
-}
-
-.gridster-item.ng-leave.ng-leave-active {
- opacity: 0
-}
-
-.gridster-item.ng-enter {
- opacity: 1
-}
-
-.gridster-item-moving {
- z-index: 3
-}
-
-.gridster-item-resizable-handler {
- position: absolute;
- font-size: 1px;
- display: block
-}
-
-.handle-se {
- cursor: se-resize;
- width: 0;
- height: 0;
- right: 1px;
- bottom: 1px;
- border-style: solid;
- border-width: 0 0 12px 12px;
- border-color: transparent
-}
-
-.handle-ne {
- cursor: ne-resize;
- width: 12px;
- height: 12px;
- right: 1px;
- top: 1px
-}
-
-.handle-nw {
- cursor: nw-resize;
- width: 12px;
- height: 12px;
- left: 1px;
- top: 1px
-}
-
-.handle-sw {
- cursor: sw-resize;
- width: 12px;
- height: 12px;
- left: 1px;
- bottom: 1px
-}
-
-.handle-e {
- cursor: e-resize;
- width: 12px;
- bottom: 0;
- right: 1px;
- top: 0
-}
-
-.handle-s {
- cursor: s-resize;
- height: 12px;
- right: 0;
- bottom: 1px;
- left: 0
-}
-
-.handle-n {
- cursor: n-resize;
- height: 12px;
- right: 0;
- top: 1px;
- left: 0
-}
-
-.handle-w {
- cursor: w-resize;
- width: 12px;
- left: 1px;
- top: 0;
- bottom: 0
-}
-
-.gridster .gridster-item:hover .gridster-box {
- border: 1.5px solid #B3B2B3
-}
-
-.gridster .gridster-item:hover .handle-se {
- border-color: transparent transparent #ccc
-}
diff --git a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/styles/ui-gridster.css b/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/styles/ui-gridster.css
deleted file mode 100644
index 2f8a369a..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/styles/ui-gridster.css
+++ /dev/null
@@ -1,116 +0,0 @@
-/* ui-gridster.css */
-.gridster-container {
- background-color: #EFEFEF;
- color: #fff;
- border: 1px dashed;
- overflow-y: auto;
- overflow-x: hidden; }
-
-/* app css for attGridtser */
-.gridster-item-container {
- background-color: #FFFFFF;
- position: relative;
- margin-left: auto;
- margin-right: auto;
- min-height: 79px;
- height: 100%; }
- .gridster-item-container .gridster-item-header {
- /* gridster-item Header */
- position: relative;
- height: 50px !important;
- border: 1px solid #d3d3d3;
- border-bottom: 0;
- background-color: #E5E5E5;
- white-space: nowrap;
- text-overflow: ellipsis;
- z-index: 1;
- -webkit-border-radius: 2px 2px 0 0;
- -moz-border-radius: 2px 2px 0 0;
- -ms-border-radius: 2px 2px 0 0;
- -o-border-radius: 2px 2px 0 0;
- border-radius: 2px 2px 0 0;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- /* overflow: hidden; ECOMP*/
- /* IE6-8 */ }
- .gridster-item-container .gridster-item-header .gridster-item-handle {
- cursor: move;
- margin: 12px;
- position: absolute;
- top: 0;
- left: 0;
- border: 0;
- vertical-align: middle;
- -ms-interpolation-mode: bicubic;
- display: block; }
- .gridster-item-container .gridster-item-header .gridster-item-header-content {
- line-height: 44px;
- margin-left: 26px;
- font-family: arial;
- /* font-size: 18px; */
- color: #444444;
- float: left; }
- .gridster-item-container .gridster-item-header .gridster-item-sub-header-content {
- position: absolute;
- top: 29.5px;
- left: 26px;
- font-family: clearviewatt;
- font-size: 12px;
- color: #444444; }
- .gridster-item-container .gridster-item-header .gridster-item-header-buttons-container {
- position: absolute;
- right: 10px;
- top: 10px;
- /* overflow: hidden; ECOMP */
- text-align: right;
- height: 30px;
- color: #444444; }
- .gridster-item-container .gridster-item-body {
- /* gridster-item Body */
- position: absolute;
- width: 100%;
- top: 50px;
- left: 0;
- right: 0;
- bottom: 29px;
- border: 1px solid #d3d3d3;
- box-sizing: border-box;
- overflow: auto;
- color: #444444;
- /* text-align: center; */ }
- .gridster-item-container .gridster-item-footer {
- /* gridster-item Footer */
- position: absolute;
- bottom: 0;
- width: 100%;
- height: 29px !important;
- text-align: left;
- cursor: pointer;
- border: 1px solid #d3d3d3;
- border-top: 0;
- background-color: #F2F2F2;
- -webkit-border-radius: 0 0 2px 2px;
- -moz-border-radius: 0 0 2px 2px;
- -ms-border-radius: 0 0 2px 2px;
- -o-border-radius: 0 0 2px 2px;
- border-radius: 0 0 2px 2px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- text-decoration: none;
- /* IE6-8 */ }
- .gridster-item-container .gridster-item-footer:hover {
- background-color: #E5E5E5;
- color: #565656;
- text-decoration: underline; }
- .gridster-item-container .gridster-item-footer .gridster-item-footer-content {
- line-height: 30px;
- font-family: clearviewatt;
- font-size: 12px;
- color: #565656;
- margin: 20px;
- text-decoration: none; }
- .gridster-item-container .gridster-item-footer .gridster-item-footer-content:hover {
- color: #199ddf;
- text-decoration: underline; }
diff --git a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js b/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js
deleted file mode 100644
index 2e77874e..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls-0.0.1.js
+++ /dev/null
@@ -1,86 +0,0 @@
-angular.module("att.gridster", ["att.gridster.tpls", "att.gridster.utilities","att.gridster.gridster"]);
-angular.module("att.gridster.tpls", ["template/gridster/gridster.html"]);
-angular.module('att.gridster.utilities', [])
- .factory('$extendObj', [function () {
- var _extendDeep = function (dst) {
- angular.forEach(arguments, function (obj) {
- if (obj !== dst) {
- angular.forEach(obj, function (value, key) {
- if (dst[key] && dst[key].constructor && dst[key].constructor === Object) {
- _extendDeep(dst[key], value);
- } else {
- dst[key] = value;
- }
- });
- }
- });
- return dst;
- };
- return {
- extendDeep: _extendDeep
-
- };
- }]);
-
-angular.module('att.gridster.gridster', ['attGridsterLib', 'att.gridster.utilities'])
- .constant('attGridsterConfig',
- {
- columns: 3,
- maxRows: 3,
- margins: [10, 10],
- outerMargin: true,
- pushing: true,
- floating: false,
- swapping: true,
- draggable: {
- enabled: true
- }
- })
- .directive('attGridster',['attGridsterConfig', '$extendObj', function (attGridsterConfig, $extendObj) {
- return {
- restrict: 'EA',
- scope: {
- attGridsterOptions : '=?',
- attGridsterItems : '='
- },
- templateUrl: 'template/gridster/gridster.html',
- replace: false,
- controller: ['$scope', '$attrs', function ($scope, $attrs) {
-
- }],
- link: function (scope, element, attrs, ctrl) {
- if (angular.isDefined(scope.attGridsterOptions)) {
- attGridsterConfig = $extendObj.extendDeep(attGridsterConfig, scope.attGridsterOptions);
- }
- scope.attGridsterConfig = attGridsterConfig;
-
- }
- };
- }]);
-angular.module("template/gridster/gridster.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("template/gridster/gridster.html",
- "<div>\n" +
- " <div gridster='attGridsterConfig'>\n" +
- " <div gridster-item=\"item\" ng-repeat=\"item in attGridsterItems\" class=\"gridster-item-container\" >\n" +
- " <div class=\"gridster-item-header\">\n" +
- " <img gridster-item-drag src=\"images/grips.png\" alt='||' class=\"gridster-item-handle\" />\n" +
- " <span class=\"gridster-item-header-content\">Maintenance</span>\n" +
- " <span class=\"gridster-item-sub-header-content\">Sub Header</span>\n" +
- " <div class=\"gridster-item-header-buttons-container\">\n" +
- " <img src=\"images/att-globe-ie8.png\" alt='AT&T' />\n" +
- " </div>\n" +
- " </div>\n" +
- " <div class=\"gridster-item-body\">\n" +
- " <div style=\" width: 100%; height: 221px; font-size: 12px;\">\n" +
- " <br/>{{$index}}<center></center>\n" +
- " <br>\n" +
- " There are no AT&amp;T BusinessDirect tools available. To contact us for help, click the chat icon, and then click Contact Us.\n" +
- " </div>\n" +
- " </div>\n" +
- " <div class=\"gridster-item-footer\">\n" +
- " <a href='#anotherPage' class=\"gridster-item-footer-content\" >Navigate to another page</a>\n" +
- " </div>\n" +
- " </div>\n" +
- " </div>\n" +
- "</div>");
-}]);
diff --git a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls.js b/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls.js
deleted file mode 100644
index 2d5fe2fd..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster-tpls.js
+++ /dev/null
@@ -1,164 +0,0 @@
-/**
-* FileName ui-gridster
-* Version 0.1.0
-* Build number 81850
-* Date 03/14/2016
-*/
-
-
-(function(angular, window){
-angular.module("att.gridster", ["att.gridster.tpls", "att.gridster.utilities","att.gridster.gridster"]);
-angular.module("att.gridster.tpls", ["template/gridster/gridster.html","template/gridster/gridsterItem.html","template/gridster/gridsterItemBody.html","template/gridster/gridsterItemFooter.html","template/gridster/gridsterItemHeader.html"]);
-angular.module('att.gridster.utilities', [])
- .factory('$extendObj', [function() {
- var _extendDeep = function(dst) {
- angular.forEach(arguments, function(obj) {
- if (obj !== dst) {
- angular.forEach(obj, function(value, key) {
- if (dst[key] && dst[key].constructor && dst[key].constructor === Object) {
- _extendDeep(dst[key], value);
- } else {
- dst[key] = value;
- }
- });
- }
- });
- return dst;
- };
- return {
- extendDeep: _extendDeep
- };
- }])
- .filter('unsafe', ['$sce', function($sce) {
- return function(val) {
- return $sce.trustAsHtml(val);
- };
- }]);
-
-angular.module('att.gridster.gridster', ['attGridsterLib', 'att.gridster.utilities', 'ngSanitize'])
- .config(['$compileProvider', function($compileProvider) {
- $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|javascript):/);
- }])
- .constant('attGridsterConfig',
- {
- columns: 3,
- margins: [10, 10],
- outerMargin: true,
- pushing: true,
- floating: true,
- swapping: true,
- draggable: {
- enabled: true
- }
- })
- .directive('attGridster', ['attGridsterConfig', '$extendObj', function(attGridsterConfig, $extendObj) {
- return {
- restrict: 'EA',
- scope: {
- attGridsterOptions: '=?'
- },
- templateUrl: 'template/gridster/gridster.html',
- replace: false,
- transclude: true,
- controller: [function() {}],
- link: function(scope) {
- if (angular.isDefined(scope.attGridsterOptions)) {
- attGridsterConfig = $extendObj.extendDeep(attGridsterConfig, scope.attGridsterOptions);
- }
- scope.attGridsterConfig = attGridsterConfig;
- }
- };
- }])
- .directive('attGridsterItem', ['$timeout', function($timeout) {
- return {
- restrict: 'EA',
- require: ['^attGridster'],
- scope: {
- attGridsterItem: '='
- },
- templateUrl: 'template/gridster/gridsterItem.html',
- replace: false,
- transclude: true,
- controller: [function() {}]
- };
- }])
- .directive('attGridsterItemHeader', [function() {
- return {
- restrict: 'EA',
- require: ['^attGridsterItem'],
- scope: {
- headerText: '@',
- headerIcon: '@',
- subHeaderText: '@?'
- },
- templateUrl: 'template/gridster/gridsterItemHeader.html',
- replace: true,
- transclude: true,
- link: function(scope, element, attr) {
- if (attr.gripsImgPath) {
- scope.gripsImgPath = attr.gripsImgPath;
- } else {
- scope.gripsImgPath = 'images/grips.png';
- }
-
- if (angular.isDefined(scope.subHeaderText) && scope.subHeaderText) {
- angular.element(element[0].querySelector('span.gridster-item-sub-header-content')).attr("tabindex", "0");
- angular.element(element[0].querySelector('span.gridster-item-sub-header-content')).attr("aria-label", scope.subHeaderText);
- }
- }
- };
- }])
- .directive('attGridsterItemBody', [function() {
- return {
- restrict: 'EA',
- require: ['^attGridsterItem'],
- scope: {},
- templateUrl: 'template/gridster/gridsterItemBody.html',
- replace: true,
- transclude: true
- };
- }])
- .directive('attGridsterItemFooter', [function() {
- return {
- restrict: 'EA',
- require: ['^attGridsterItem'],
- scope: {},
- templateUrl: 'template/gridster/gridsterItemFooter.html',
- replace: true,
- transclude: true
- };
- }]);
-angular.module("template/gridster/gridster.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("template/gridster/gridster.html",
- "<div gridster='attGridsterConfig'><div ng-transclude></div></div>");
-}]);
-
-angular.module("template/gridster/gridsterItem.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("template/gridster/gridsterItem.html",
- "<div gridster-item='attGridsterItem' class=\"gridster-item-container\" ng-transclude></div>");
-}]);
-
-angular.module("template/gridster/gridsterItemBody.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("template/gridster/gridsterItemBody.html",
- "<div class=\"gridster-item-body\" ng-transclude></div>");
-}]);
-
-angular.module("template/gridster/gridsterItemFooter.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("template/gridster/gridsterItemFooter.html",
- "<div class=\"gridster-item-footer\" ng-transclude></div>");
-}]);
-
-angular.module("template/gridster/gridsterItemHeader.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("template/gridster/gridsterItemHeader.html",
- "<div class=\"gridster-item-header\">\n" +
- " <img gridster-item-drag ng-src={{gripsImgPath}} alt=\"||\" aria-label=\"Tap or Click to move\" class=\"gridster-item-handle\" />\n" +
-
- " <span class=\"gridster-item-header-content\" tabindex=\"0\" role=\"presentation\" aria-label=\"{{headerText}}\" ng-bind-html=\"headerText | unsafe\"></span>\n" +
- /* " <span class=\"{{headerIcon}}\" style=\"font-size: 40px; color:black; float:left; margin-left:30px; margin-right: -2 0px; line-height: 1.2; \"></span>"+*/
- " <span class=\"gridster-item-sub-header-content\" role=\"presentation\">{{subHeaderText}}</span>\n" +
- " <div class=\"gridster-item-header-buttons-container\" ng-transclude></div>\n" +
- "</div>");
-}]);
-
-return {}
-})(angular, window); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster.js b/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster.js
deleted file mode 100644
index 2d9b8810..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular-att-gridster/ui-gridster.js
+++ /dev/null
@@ -1,131 +0,0 @@
-/**
-* FileName ui-gridster
-* Version 0.1.0
-* Build number 81850
-* Date 03/14/2016
-*/
-
-
-(function(angular, window){
-angular.module("att.gridster", ["att.gridster.utilities","att.gridster.gridster"]);
-angular.module('att.gridster.utilities', [])
- .factory('$extendObj', [function() {
- var _extendDeep = function(dst) {
- angular.forEach(arguments, function(obj) {
- if (obj !== dst) {
- angular.forEach(obj, function(value, key) {
- if (dst[key] && dst[key].constructor && dst[key].constructor === Object) {
- _extendDeep(dst[key], value);
- } else {
- dst[key] = value;
- }
- });
- }
- });
- return dst;
- };
- return {
- extendDeep: _extendDeep
- };
- }])
- .filter('unsafe', ['$sce', function($sce) {
- return function(val) {
- return $sce.trustAsHtml(val);
- };
- }]);
-
-angular.module('att.gridster.gridster', ['attGridsterLib', 'att.gridster.utilities', 'ngSanitize'])
- .config(['$compileProvider', function($compileProvider) {
- $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|javascript):/);
- }])
- .constant('attGridsterConfig',
- {
- columns: 3,
- margins: [10, 10],
- outerMargin: true,
- pushing: true,
- floating: true,
- swapping: true,
- draggable: {
- enabled: true
- }
- })
- .directive('attGridster', ['attGridsterConfig', '$extendObj', function(attGridsterConfig, $extendObj) {
- return {
- restrict: 'EA',
- scope: {
- attGridsterOptions: '=?'
- },
- templateUrl: 'template/gridster/gridster.html',
- replace: false,
- transclude: true,
- controller: [function() {}],
- link: function(scope) {
- if (angular.isDefined(scope.attGridsterOptions)) {
- attGridsterConfig = $extendObj.extendDeep(attGridsterConfig, scope.attGridsterOptions);
- }
- scope.attGridsterConfig = attGridsterConfig;
- }
- };
- }])
- .directive('attGridsterItem', ['$timeout', function($timeout) {
- return {
- restrict: 'EA',
- require: ['^attGridster'],
- scope: {
- attGridsterItem: '='
- },
- templateUrl: 'template/gridster/gridsterItem.html',
- replace: false,
- transclude: true,
- controller: [function() {}]
- };
- }])
- .directive('attGridsterItemHeader', [function() {
- return {
- restrict: 'EA',
- require: ['^attGridsterItem'],
- scope: {
- headerText: '@',
- headerIcon: '@',
- subHeaderText: '@?'
- },
- templateUrl: 'template/gridster/gridsterItemHeader.html',
- replace: true,
- transclude: true,
- link: function(scope, element, attr) {
- if (attr.gripsImgPath) {
- scope.gripsImgPath = attr.gripsImgPath;
- } else {
- scope.gripsImgPath = 'images/grips.png';
- }
-
- if (angular.isDefined(scope.subHeaderText) && scope.subHeaderText) {
- angular.element(element[0].querySelector('span.gridster-item-sub-header-content')).attr("tabindex", "0");
- angular.element(element[0].querySelector('span.gridster-item-sub-header-content')).attr("aria-label", scope.subHeaderText);
- }
- }
- };
- }])
- .directive('attGridsterItemBody', [function() {
- return {
- restrict: 'EA',
- require: ['^attGridsterItem'],
- scope: {},
- templateUrl: 'template/gridster/gridsterItemBody.html',
- replace: true,
- transclude: true
- };
- }])
- .directive('attGridsterItemFooter', [function() {
- return {
- restrict: 'EA',
- require: ['^attGridsterItem'],
- scope: {},
- templateUrl: 'template/gridster/gridsterItemFooter.html',
- replace: true,
- transclude: true
- };
- }]);
-return {}
-})(angular, window); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/CHANGELOG.md b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/CHANGELOG.md
deleted file mode 100644
index 7cd47128..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/CHANGELOG.md
+++ /dev/null
@@ -1,1190 +0,0 @@
-<a name"2.17.0"></a>
-## 2.17.0 (2015-11-23)
-
-
-#### Bug Fixes
-
-* **attSelect:** CATO tweak and cleanup (6d54d467)
-* **devNotes:** devNotes IE 8 html rendering issue fixed (e80121b3)
-* **megamenu:**
- * Removed dead code (306f0afa)
- * accessibility fixes (27226d07)
- * demo with toggle menu (3847451c)
- * CSS tweaks (81becdab)
-
-
-#### Features
-
-* **attSelect:**
- * Removed Dead code. (793e9b37)
- * Fix disabled dropdown CATO + unified styles (e7532e03)
-* **modals:** NVDA now reads the dialog title (e2f771e5)
-
-
-<a name"2.16.0"></a>
-## 2.16.0 (2015-11-18)
-
-
-#### Bug Fixes
-
-* **attBoardStrip:** Clicking fast on prev/next icons doesnt highlight (0fc2dcb1)
-* **attBoardstrip:** Tabindex issue (8aae40fd)
-
-
-#### Features
-
-* **attBoardStrip:**
- * Index bound checking (28389fc6)
- * CATO fixes. (7cf74942)
- * 508 enhancement (c7b2f05c)
- * Unit tests (b1f93771)
- * Refactor variables into constants (8b1fae60)
- * Dev can now set selected board on load. (9fb96882)
- * Added some missing code. (4e1c0a4c)
- * Keyboard Accessibility (9bd74ab0)
-* **attBoardstip:** Cleanup (959c1191)
-* **attBoardstrip:** Remove dead code. (e9551723)
-* **boardStrip:** added animation (bf03b428)
-* **ieshiv:** Added addEventListener for IE6+ (ab0e6f1d)
-* **infiniteScroll:** Fallbacks added (5bba2e7c)
-* **tooltip:** Dev can now override tooltip tabindex (3852a2aa)
-* **utilities:**
- * Merge conflicts (c5ce83f0)
- * Added app.js (9de1b4e2)
- * Cleaned up some code. (f6802757)
-* **utilties:**
- * horizontal scrolls are CATO (b4ebaaba)
- * Updated dev-notes. (50043d90)
-* **utiltites:**
- * threshold is now configurable (94bc9ada)
- * merge conflicts (be0ecb6c)
- * Styles are completed. (5592303c)
-* **whenScrollEnds:**
- * width and height can be overriden. (b9f5cae9)
- * PR comments (60446b68)
- * Merged into one directive again (b9176dd5)
- * added two variants of infinite scroll (7a7a9135)
-
-
-<a name"2.15.0"></a>
-## 2.15.0 (2015-11-17)
-
-
-#### Bug Fixes
-
-* **Freestanding:** focus was not visible on freestanding issue fixed (5f092788)
-* **accordion:** tag was not closed properly (2bf4c421)
-* **attBtnDropdown:** attBtnDropdown NVDA IE issue fixed (b2f6cdf7)
-* **attSelect:**
- * select reset to placeholder if passed -1 (16435973)
- * update test spec (892acc40)
- * change the tag name (86fa9882)
- * attSelect IE nvda issue fixed (f79cc88d)
-* **attTable:**
- * Headers desc col content (e06f9191)
- * Headers now desc if sortable and pattern (945f9812)
-* **checkBoxcss:** Remove unused css (e69b1c68)
-* **docs:** updated demo (91fd5070)
-* **megaMenu:**
- * updated tab scss (3eacda71)
- * Fixed Accessibilty (2e2b7b3a)
-* **path:**
- * bas css path reference (9949745f)
- * change path reference (a6ec368a)
-* **pathRefernce:** Change reference path (430f8840)
-* **referencePath:** images replaces with $att-images-base-path (6779a316)
-* **search:** Search component IE nvda reading issue fixed (bc961800)
-* **searchSelect:**
- * fix for DE164769 (db6f9a27)
- * NVDA fix DE164769 (c981d628)
-* **slider:** NVDA fix DE164780 (45821c48)
-* **tabs:** MegaMenu traingle update(tabs): att-globe image added in MegaMenu (407c8c64)
-
-
-#### Features
-
-* **MegaMenu:**
- * 508 complaint (300e5b16)
- * Accessibility Improvements (313f244f)
-* **attCheckbox:** Minor cleanup (d6ec4657)
-* **icons:** Iconography now has search and is data-driven (1a2c6ea6)
-* **ieShiv:** added directive in ieShiv to fix IE 8 issue (9df315e9)
-
-
-<a name"2.14.0"></a>
-## 2.14.0 (2015-11-03)
-
-
-#### Bug Fixes
-
-* **colorSelector:**
- * Updates as per comment in PR 775 (1741b0d6)
- * Updates as per comment in PR 775 (ed58f26c)
-* **conflict:** merge branch v1.2 into feature/nitesh-messages-revamp (061a92b8)
-* **formField:**
- * made messageType attr optional (19356138)
- * updated form field to consume message-type (b05c414b)
-* **message:**
- * made messageType attr optional (8f82ff63)
- * minor semicolon cleanup (78ddf52f)
- * updated att-messages to expose message-type (dc4fe8ef)
-* **tagBadges:** NVDA fix (b7baf0c6)
-
-
-#### Features
-
-* **Update:**
- * Remove semicolon from meta tag (4e96b643)
- * Update splitIcon remove title (aae56524)
- * Update split buttons role for ul (086bfe6b)
- * Update buttons to follow guided automatics. (3b899c94)
- * color selector removed reserved keyword from html (4b9aa3c6)
- * color selector removed reserved keyword from scope. (13e7f872)
-
-
-<a name"2.13.0"></a>
-## 2.13.0 (2015-10-29)
-
-
-#### Bug Fixes
-
-* **attSelect:**
- * removed dead code. (123e5e13)
- * PR comments (a8c4b64e)
- * Code cleanup (c3fc63bd)
- * Selection under strict filter works in all cases. (e8dac0ad)
- * On open, dropdown now properly selects element (5d9f715a)
- * Keyboard navigation is now aware of filtering (7e00ea20)
-* **attUserMessage:**
- * Removed alt tag (59cc7acd)
- * removed bad attribute (67f69e8a)
-* **build:** Resolve conflict (a74d4d0f)
-* **colorSelector:** Fix for defect DE164655 (db998406)
-* **conflict:**
- * Merged & solved conflicts with v1.2 (ce220d81)
- * Merged & solved conflicts with v1.2 (fe3c0096)
-* **datepicker:**
- * improved NVDA experience (d26b12ef)
- * removed unnecessary id for accessibility (d82230dc)
- * Removed space (7c24ab17)
- * NVDA now reads dates when tabbing through (908c87e0)
-* **forms:**
- * demo.html updated as per feedback from Joe fix(forms): Dev Notes updated (a9dc1af6)
- * demo.html updated (3f31a67b)
- * Cedit card validation updated (b958b3dd)
- * Auto credit card reorganization removed temporarily (64328735)
-* **misc:**
- * added colorSelctorWrapper in IE-shiv (a7ceccfe)
- * Incorporate with the changes as per comment in PR-765 (aa6c5d2f)
-* **modal:**
- * Ensured that other input types can backspace (83f16758)
- * Code cleanup (062f631a)
- * Modals now prevent backspace navigating back. (d22a5a18)
-* **paneSelector:**
- * update changes as per comment in PR-765 (c7e226aa)
- * code clean Up (d0060a67)
- * devnotes updated (d715863d)
- * Code Clean up and test Specs (a312d573)
-* **phoneMask:**
- * textual changes as per Joe comment (0c784a0d)
- * changes in model value on click (821b81c4)
-* **phonemask:**
- * incorporate with the changes as per comment in PR-765 (843b56a3)
- * incorporate with the changes as per comment in PR-765 (3283c5b9)
- * controller updated (ead01692)
-* **select:** fixed dropdown IE8 nvda issue (64a8809e)
-* **stepTracker:**
- * code cleanup (cada1c07)
- * fix for defect DE164808 (a111a45a)
-* **utilities:** console.log statement removed (9d7be007)
-
-
-#### Features
-
-* **DOMHelper:**
- * Simplified code. (375403e7)
- * Return undefined instead of false. (57b7636f)
- * Enhanced DOMHelper to find our directives as well (02217555)
-* **Update:** bugfix/attselect-508-fixes-ss resolving conflicts (55d90b4b)
-* **attSelect:** Removed code not yet used. (96d6ca24)
-* **attUserMessages:** added 508 compliance (7ec3483f)
-* **boardStrip:**
- * updated ie-shiv (e7ea35fa)
- * incorporated review comments (cf3b3ded)
- * updated CSS (f9bf14a9)
- * updated plain CSS to SCSS (dc051d66)
- * updated code per the latest requirements (dae8fb67)
- * updated code per the latest requirements (5fd053a7)
- * updated code per the latest requirements (028ec962)
-* **popover:**
- * Updated code + ehanced DOMHelper (f135582b)
- * Popover now has toggleable close button (930616b5)
-* **resolve:** resolve conflicts with release 1.2 branch (484d2b14)
-* **update:**
- * Update components for E508 compliance guided automatics (9b0deab3)
- * Update components for E508 compliance guided automatics (de7d0058)
- * Update components for E508 compliance (835fda4e)
-* **utilities:**
- * Added DOMHelper for finding first tabable. (a87cfbbe)
- * New service to help gain info about browser (45f01be2)
-* **utiltites:** We can now find first tabable element in all cases. (4afd735c)
-
-
-<a name"2.12.0"></a>
-## 2.12.0 (2015-10-15)
-
-
-#### Bug Fixes
-
-* **attRadio:**
- * added value attr from JS (56e7ae16)
- * reusing variable (069bdcfc)
- * Updated test specs (ef097170)
- * fixed nvda issue (77bfe7a8)
-* **attSelect:** Fixed regression for highlight/focus not synced (32ebad30)
-* **checkboxgroup:** Group now retains previous model states (4c25ceb7)
-* **docs:** updated demo.html (b9020a9a)
-* **paneSelector:**
- * Code CleanUp (3e21470f)
- * Removed chevron from lastPane (285db4c5)
- * fix for sonar issues (dc3a5d20)
-* **phoneMask:** phone mask validation fix (d98ad19c)
-* **popOvers:** updating the partial name (d7e35e39)
-* **styles:**
- * Made property more browser agnostic (26820a1c)
- * Placeholder text is not consistent between browsers. (fd3d3fda)
-* **toggle:**
- * Removed extra spaces (dec78d72)
- * cross browser NVDA issue fixed (9f4fc2d4)
-
-
-#### Features
-
-* **paneSelector:** keyboard Accessibilty in pane selector (9fe8014e)
-
-
-<a name"2.11.1"></a>
-### 2.11.1 (2015-09-30)
-
-
-#### Bug Fixes
-
-* **dragDrop:** dev notes updated (880a5ed9)
-* **formfield:** ie8 issue fixed (c4e938f4)
-* **link:** Keyboard accessibility added in ReadMore link (daaeb954)
-* **select:** Dropdown with no placeholder issue resolved (512cbc74)
-* **tooltip:** Fixed flashing tooltip on click of input field (7338631f)
-
-
-#### Features
-
-* **popovers:** initial commit (dbeec1b4)
-
-
-<a name"2.11.0"></a>
-## 2.11.0 (2015-09-24)
-
-
-#### Bug Fixes
-
-* **Select:** E508 related udpates fix(Search): E508 related udpates (c9a46a3c)
-* **button-minWidth:** update image path and add button min-Width (0f37f646)
-* **dragDrop:** Resolve issue for selecting same file twice (db409be1)
-* **forField:** code beautification (dfca05bc)
-* **formField:**
- * added note for IE fix (ec13e376)
- * note added for IE fix (83f313bf)
- * IE fixes (767e618a)
-
-
-<a name"2.10.0"></a>
-## 2.10.0 (2015-09-18)
-
-
-#### Bug Fixes
-
-* **buttonLoader:** Animation fixes for IE (dbb15915)
-* **checkbox:** Firefox Focus outline issue fixed (384b56cb)
-* **docs:** datepicker filter from date issue fixed (14c09533)
-* **slider:**
- * keyboard focus issue fixed (1cc798ea)
- * keyboard focus issue fixed (63e81d9d)
-* **stepTracker:** ariaLabel added (0b13b316)
-* **textDropdown:** IE issue fixed (d9e9ab90)
-
-
-#### Features
-
-* **modal:** TN selector add/remove all work under filtering. (c2cc992b)
-
-
-<a name"2.9.0"></a>
-## 2.9.0 (2015-09-16)
-
-
-#### Bug Fixes
-
-* **select:** typo (ab0716ff)
-* **splitButtonDropdown:** Commented out tests to get a build (b4ecb630)
-
-
-<a name"2.8.0"></a>
-## 2.8.0 (2015-09-15)
-
-
-#### Bug Fixes
-
-* **attButtonDropdown:**
- * Fixed test (231a3a3f)
- * CATO fixes (8d723500)
-* **attSelect:**
- * revert back my previous changes, wrong branch (39bd919c)
- * added unit test case (b67ec5b7)
-* **datepicker:** updated and cleaned $render function of dateFilter (70e2dad6)
-* **docs:** changed placeholder as option attr for demo (ac22bbaf)
-* **select:** have placeholder as option with no filter (713bf1d3)
-* **stepSlider:**
- * added unit test case (6766f6fd)
- * This is just to add the previous fix given by Mohit to show the lower range valu (d46a12fa)
- * Updated the conversion to truncate values instead of rounding off (10d71136)
- * removed the extra spaces in the dimension so it wont confused devs on why an ext (3667b46f)
- * Replace double quotes with single quotes (233229cd)
- * Replace double quotes with single quotes (24563d2d)
- * I forgot to add the default value in else (630e87ce)
- * Updated test cases as per review comments (062360b0)
- * Updated the code as per review. Created a function for reusability (82f0e9a6)
- * Added conversion of units and values for the tooltip and endDimension (1eeaead9)
- * Added conversion on the slider Tooltip (2ba0a515)
-* **tooltips:** resolved merge conflicts (ac593791)
-
-
-#### Features
-
-* **FormFieldPrv:**
- * ascii codes moved (4b249f7c)
- * sonar and code reveiew (22e88bde)
-* **PreventKeyStrokeDirective:**
- * adding more test cases (04565c16)
- * commiting new file (a5c27cff)
- * commiting some more changes (6db12c74)
-* **attButtonDropdown:**
- * Updated for PR comments (ee282cf9)
- * CATO implemented. (a624dce2)
-* **attFormFieldPrv:** code review changes (2f1cabcd)
-* **hourpicker:** ability to define pre-select day-wise values (ef4c2915)
-* **tooltips:** performance related fix (f4504cdd)
-
-
-<a name"2.7.0"></a>
-## 2.7.0 (2015-09-02)
-
-
-#### Bug Fixes
-
-* **Gruntfile:** Spaces deleted (b65d173c)
-* **Selected:** Code clean up (b99858b9)
-* **docs:**
- * updated demo.js for button and modal (9f2b8fb7)
- * added json condition in partials (7f5e2547)
-* **select:** remove unused css (176b07b0)
-* **tabbedOverlay:** Given spaces between variable (8c141461)
-* **table:**
- * fixed issue for table (2476c028)
- * Added demo.json as 3rd pane for json (bf32862b)
-
-
-#### Features
-
-* **Gruntfile:** added task for json pane (8d5ae0a8)
-* **attSearch:** Updated to latest select code and deprecated (05e86677)
-* **button:** created demo.json (ce6a5ca1)
-* **devNotes:** update devnotes for json (0dd5b43e)
-* **select:**
- * Dev Notes updated for dropdown with disabled items (642e203f)
- * Dropdown with disabled options implemented (2b384c04)
-* **tabbedOverlay:** Created demo.json (3c2b4589)
-
-
-<a name"2.6.0"></a>
-## 2.6.0 (2015-08-25)
-
-
-#### Bug Fixes
-
-* **Leftnav:** extra 'e' removed from bottom of menu (a98a2bdf)
-* **MenuSearch:** cActive variable issue fixed (7dc5d3cc)
-* **Select:** No placeholder - on enter empty selected - fixed fix(Select): No placeholder - s (bdfbd54e)
-* **checkbox:** reverted sonar fix (46ed2e09)
-* **datepicker:** updated dateFilter viewport width to 100% from fixed (98fcfa96)
-* **modal:** Added to controller (f94848fc)
-* **modals:**
- * reverting sonar suggested changes (64b0bac1)
- * reverting sonar suggested changes (4db44dea)
-
-
-#### Features
-
-* **hourpicker:** added attHourpickerValidator directive (a2378b7a)
-* **modals:**
- * documentation update (ff192f1a)
- * focus comes back to original element (39edf55e)
-* **splitIconButton:**
- * remove dead DI (cbe2c0ae)
- * removed logs (fbb28962)
- * CATO + Sonar (2a71d715)
- * Sonar and misc formatting (9e9dfcc3)
-* **tooltips:** tooltips offset and custom aria-label (3a0f59ab)
-
-
-<a name"2.5.0"></a>
-## 2.5.0 (2015-08-18)
-
-
-#### Bug Fixes
-
-* **buttons:** Fix broken spec on phantomjs (c8214655)
-* **utilties:** Comment unit test for phantomjs issue (d2df1eb5)
-
-
-<a name"2.4.0"></a>
-## 2.4.0 (2015-08-17)
-
-
-#### Bug Fixes
-
-* **attSelect:**
- * Fixed viewport shifting (12642663)
- * No filter properly scrolls (a10c7c8a)
- * Remove statesdropdown + fix selection bug (8f751b4e)
- * Fixed hover edge case (d7d35cb5)
-* **docs:**
- * added sample JSON structure. (8f2970f5)
- * update demo.css (c6a18a07)
- * move internal css into demo.css (446062a5)
-* **modal:**
- * number selection DE147479 (931294f9)
- * number selection - filtered selection works again (2fb1a16d)
- * number selection 0th element selectable (1edbceb9)
-* **textDropdown:**
- * CATO Fixes (1b5af417)
- * CATO fixes (5e877d9b)
- * Fix cato issue (11fcaddd)
-
-
-#### Features
-
-* **Build:**
- * moved release notes to generalbuild (9644ec01)
- * Moved ReleaseTask.js to GeneralBuild (03f460ed)
-* **attBtnDropdown:**
- * unit test (ced18db2)
- * Updated styles, CATO/508 (dd246bb2)
-* **attDrawer:**
- * Merge conflicts (d867e5f1)
- * Unit Tests (7532294a)
- * CATO (cea7e85d)
-* **attSelect:**
- * remove log statement (e3914d62)
- * Merge conflicts (c4499b19)
- * Fix demo css (fa2e7de1)
- * Fix unit test issues (788ff03f)
- * merge conflicts (3aebfe33)
- * Fixed test being iit'd (8e79dfd0)
- * Fixed test for focus retention (a05464b6)
- * Merge conflicts (7cface48)
- * Sonar fixes (f7ecc1a8)
- * Remove showInputFilter for CATO (3cfa0084)
- * Focus returns to dropdown after close. (afb6ed86)
- * Now allows jumping to elements without being open (0ac16cab)
- * Search resets if keystrokes are less than 100ms apart (b36c9a31)
- * Searching loops through list elements (6b6a2741)
- * Auto select based on first 2 characters typed (8fdd1926)
- * Added API to remove all filtering + focus fix (ba8ee5af)
-* **attTableMessages:** CATO support (c1431169)
-* **attTimeline:**
- * CATO + documentation update (80d91bff)
- * CATO + documentation update (35533a51)
-* **attUserMessage:** CATO - focus shift + screen reader (86ed26a5)
-* **attUsermessage:** Unit tests (282690bb)
-* **focusOn:** Added unit tests + Sonar improvements (dfbf8f20)
-* **modal:**
- * number selection cato enhancements (5a16d19f)
- * merge conflicts (dc5992b1)
- * number selection - ordering is retained btw lists (6b6f43ab)
- * Number Selection Updates (67de94cc)
- * Number Selection now has shift selection support (61167314)
-* **select:** merge conflicts (356df768)
-* **table:**
- * http call to get jsondata (072b26d6)
- * moved table data to json file (0d68080d)
-* **taboverlay:** http call to get jsondata (e14827af)
-* **textDropdown:** Sonar fixes (6019b7c3)
-* **timeline:** Merge conflicts (1525e9e4)
-
-
-<a name"2.3.0"></a>
-## 2.3.0 (2015-08-07)
-
-
-#### Bug Fixes
-
-* **accordHeader:**
- * events typo (58d8b277)
- * using keymap from utilities now (a115268a)
- * CATO for customizable accordion (290b3516)
-* **modal:** fixed modal scroll issue (1adcd506)
-
-
-#### Features
-
-* **formfield:** Removed unnecessary fields (eb59d54e)
-* **release:** v2.3.0 (d9259235)
-* **statesDropdown:** Updated to allow passing in custom data (1ac882be)
-
-
-<a name"2.2.0"></a>
-## 2.2.0 (2015-08-04)
-
-
-#### Bug Fixes
-
-* **Logs:** To add changelog in bower (765f8ee3)
-* **modal:**
- * Fix number selection IE function (3bd6862c)
- * Ensure close icon is closable (0c5fca50)
- * Added a tabindex on close. (717d1a30)
- * Number selection template redlines (3f1b90f1)
-* **treeView:** fixed $ not found issue (358aa342)
-
-
-#### Features
-
-* **build:** Added a demo specific css file. (0de7cd23)
-* **formfield:** updated form field validations and test spec (c3753141)
-* **modal:** Merge conflicts (df1f16f9)
-* **release:** v2.2.0 (0329259b)
-* **statesDropdown:**
- * CATO fixes + AInspector (3603b9a3)
- * Unit tests + optimization (a6d0bb81)
- * Added new dropdown only for states. (f1f2f135)
- * Unit tests (e05d28a2)
-
-
-<a name"2.1.0"></a>
-## 2.1.0 (2015-07-31)
-
-
-#### Bug Fixes
-
-* **Jenkins:** fixed issues due to structural changes (47442d76)
-* **attBtnDropdown:**
- * Added alt as recommended on review (509950d3)
- * Updated the title from Circle to Click fo r Options (3852fe93)
- * Updated the title from Circle to Click for Options (78324fdb)
-* **megaMenu:** resolved accessibility issue. (83a871c1)
-* **paneSelector:** Resolved issue pane not opening (fbdc21f6)
-* **testSpec:** Updated test specs as per TestSpecHelper (62b3db9c)
-* **testSpecHelper:**
- * Resolved conflicts (b097d746)
- * Resolve conflict (6cf46d10)
-* **testSpecs:** updated test specs for utilities (1e4b80df)
-
-
-#### Features
-
-* **formfield:**
- * updated form field validations (c0ecd815)
- * updated phone mask validation (457a56d1)
-* **release:** v2.1.0 (916578d5)
-* **testSpecHeelper:** testSpecHelper added (3a25124a)
-* **testSpechelper:**
- * apply testspechelper method on all testspec (dd500345)
- * implemented testspechelper method (17a75fad)
-
-
-<a name"1.2.54"></a>
-### 1.2.54 (2015-07-17)
-
-
-#### Bug Fixes
-
-* **AInspector:**
- * Header.Tables,Wigets/Scripts (0e78a531)
- * remove Id attribute from template (95a44e82)
- * Toggle test specs updated (64f159a9)
- * Landmark,links, forms,audio/video (b26d6c07)
-* **Ainspector:**
- * Aria-labels modified (a64a9e0e)
- * incorporate the changes as per comments (0d94f89f)
-* **Banner:** Fixed issues in banner (2745eeae)
-* **ainspector:** landmork issue resolve (4a474168)
-* **boardStrip:** resolve conflict (82b328d5)
-* **build:** Changelog.md updated (7dc18a12)
-* **tab:** made require parentTab optional (7863d026)
-* **table:**
- * reverted arrow-direction and related functionality (6c868ef8)
- * updated highlighting logic for sorting issue fix (f429b595)
-* **typeAhead:** code clean Up (54fc8567)
-
-
-#### Features
-
-* **Jenkins:** changes in ReleaseTask and chan (0a16d2ff)
-* **release:** v1.2.54 (da4d64d8)
-
-
-<a name"1.2.54"></a>
-### 1.2.54 (2015-07-09)
-
-## Features
-
-## Bug Fixes
-
-- **Accessibilty Fixes on whole library as per AInspector ruleset **
-
-
-<a name"1.2.53"></a>
-### 1.2.53 (2015-06-29)
-
-
-#### Features
-
-* **release:** v1.2.53 (3b3f3957)
-
-
-<a name"1.2.52"></a>
-### 1.2.52 (2015-06-26)
-
-
-# 1.2.52
-
-## Features
-
-- **FocusOn**
- - Added a new directive which can shift focus based on some condition.
-
-- **attCarousel**
- - New directive that allows adding of boards with custom images and navigating through them.
-
-- **attTable**
- - Performance enhancement for handling large sets of data. New track-by attribute which, given a unique key in data, will speed up rendering.
-
-- **splitIconButton**
- - Module att.abs.splitButtonDropdown split into two parts - splitButtonDropdown and splitIconButton
-
-- **Scrollbar**
- - Added horizonzal scrollbar functionality to existing scrollbar.
-
-- **Position**
- - Added `att-position` directive with similar functionality of `$position` service.
-
-- **Drag and Drop**
- - Added try catch with broadcast event 'att-file-link-failure', in case user do not follow the guidelines mentioned on Sandbox demo page for IE8/IE9 browser.
-
-## Bug Fixes
-
-- **typeAhead**
- - browser default tooltip issue resolved due to title attribute.
-
-- **attStepSlider**
- - Removed timeout so slider will render without delay
- - Fixed missing realtimeCallback functionality
-
-- **Sonar Fixes related to JS files for following mention Components**
- - Alert
- - Checkbox
- - radio
- - profilecards
- - color-selector
- - typeahed
- - modal
- - formfield
- - treeview
- - videocontrols
- - formfield
- - usermessage
- - Link
- - Buttons
- - steptracker
- - tabs
- - dragdrop
- - breadCrumbs
- - tagBadges
- - tooltips
- - accordion
- - utilities
- - hourpicker
- - dividerlines
- - devNotes
- - position
- - textOverflow
- - videoControls
- - pagination
- - drawer
- - verticalSteptracker
- - message
- - accordion
- - utilities
- - table
- - select
- - loading
- - paneSelector
- - search
- - transition
-
-- **Sonar Fixes related to Test Coverage for following mention Components**
- - Alert
- - Checkbox
- - radio
- - profilecards
- - color-selector
- - typeahed
- - modal
- - formfield
- - treeview
- - videocontrols
- - formfield
- - usermessage
- - Link
- - Buttons
- - steptracker
- - tabs
- - dragdrop
- - breadCrumbs
- - tagBadges
- - tooltips
- - accordion
- - utilities
- - hourpicker
- - dividerlines
- - devNotes
- - position
- - textOverflow
- - videoControls
- - pagination
- - drawer
- - verticalSteptracker
- - message
- - accordion
- - utilities
- - table
- - select
- - loading
- - paneSelector
- - search
- - transition
-
-- **accordion**
- - Code and performance improvements
- - Improvements from accessibility perspective
-
-- **tooltip**
- - Code and performance improvements
- - Removed delay in timeout in tooltipCondition directive
-
-## Breaking Changes
-
-
-
-## Deprecated API
-
-- **typeAhead**
-
- - title attribute is deprecated and title-name attribute is used instead as it is conflicting with html title attribute.
- - for backward compatibility we can still use title attribute, but will be deprecated in future major release.
- - Example:
- -<div type-ahead items="items" title="name"/>(deprecated).
- -<div type-ahead items="items" title-name="name"/>.
-
-# 1.2.48
-
-## Features
-
-- **datepicker**
- - Added child directive for to add date filter custom list
-
-- **attCheckbox**
- - Added code for max selectable checkboxes.
-
-## Bug Fixes
-
-- **Text Dropdown**
- - Highlight fix for CATO.
-
-- **Toggle Switch**
- - Hightlighting fix on focus for CATO.
-
-- **Att Table Body**
- - Decrease timeout
-
-- **Att Step Slider**
- - Increase precision range to fix scale fill not same location as pointer
-
-- **Att Select**
- - Fix bug where user was unable to click on the dropdown default option again
-
-## Breaking Changes
-
-
-## Known Issues
-- **Dropdowns**
- - NVDA reads auto-complete dropdown results as "blank"
-
-
-
-# 1.2.47
-
-## Features
-
-- **Month Filter**
- - Implemented clear months.
-
-## Bug Fixes
-
-- **Toggle**
- - Toggle no longer requires its controller to be named toggleController.
-
-
-## Breaking Changes
-
-
-
-
-# 1.2.46
-
-## Features
-
-- **Month Filter**
- - Implemented two way binding in month filter's model.
- - Resolved disabled month selection issue.
- - Disabled last 6 and 12 months temporarily.
-
-- **Att Flexible Accordion (attAccord)**
- - Create new flexible accordion allowing user to add own markup to header and body
-
-## Bug Fixes
-
-- **attTable**
- -Added scope paramters for arrowDirection and clickFunc to control
- the direction of the highlighted arrows.
-
-- **Split Icon Button Dropdown**
- - NVDA Fix
-
-- **Accordion Multipurpose Expander**
- - Expand/Collapse through Keyboard fixed
- - Customer HTML container added keyboard support
- - att-accessibility directive implemented
-
-- **Accordion**
- - Arrow navigation added for child items in Accordion
-
-- **Dropdown**
- - Item highlight conflict with Keyboard and Mouse hover fixed
-
-- **Datepicker**
- - Updated aria-hidden attribute for accessibility.
-
-- **attCheckbox**
- - Added id attribute that will be wrapped at parent DIV
-
-## Breaking Changes
-
-
-
-
-# 1.2.45
-
-## Features
-
-- **Month Filter**
- - Added calendar icon in month filter.
- - Updated functionality to return current selected string, with from and current month.
-
-- **Pagination**
- - Added click handler
-
-- **Scrolling table demo**
- - Added demo on how to do scrolling table for attTable component
-
-## Bug Fixes
-
-- **Tooltips**
- - Tooltips now float on top of modal.
-
-- **Split Icon Button**
- - Fix NVDA screenreader issue for split icon button.
- - Icon dropdowns now close on mouse click
- - Fixed tab selection issue for split icon buttons in Firefox
- - Tabbing no longer selects the icons in the buttons in IE8
-
-- **TagBadges**
- - Accessibility issues resolved.
-
-- **Accordion Multipurpose Expander**
- - Expand/Collapse through Keyboard fixed
- - Customer HTML container added keyboard support
-
-- **Text Dropdown**
- - Event handler now fires for the selected event
-
-- **Att Step Slider**
- -Add support for updating while dragging
-
-## Breaking Changes
-
-
-
-
-# 1.2.44
-
-## Features
-
-
-
-## Bug Fixes
-
-- **Dropdown**
- - Keyboard navigation issue fixed for IE8
-
-- **Datepicker**
- - Updated monthpicker's look and feel.
-
-- **type Ahead**
- - Added scroll on input, css fixes.
-
-- **Dropdown**
- - Type Ahead Search will not Include Function Keys, Special Keys, Control Keys, Space & Backspace.
- - Dropdown will be scrolled to show selected Item as first item in the list.
- - In case of Dropdown with scrollbar, keyboard navigation will move the list up & down if needed.
- - Backspace will reset the Type ahead filter.
- - Selecting same Item with Enter key bug fixed
-
-## Breaking Changes
-
-
-
-
-# 1.2.43
-
-## Features
-
-
-
-## Bug Fixes
-
-- **Table**
- - Fixed sort ordering issue in IE8.
-
-## Breaking Changes
-
-
-
-
-# 1.2.42
-
-## Features
-
-- **Datepicker**
- - Added monthpicker functionality.
-
-## Bug Fixes
-
-- **Datepicker**
- - Updated accessibility.
- - Accept valid dates with trimmed zero.
-
-- **Utilities**
- - Added lPad and rPad function to javascript String object for padding.
-
-## Breaking Changes
-
-
-
-
-# 1.2.41
-
-## Features
-
-
-
-## Bug Fixes
-
-- **HourPicker**
- - Dropdown overflow issue fixed
- - Auto-scroll failing scenarios with cross-browser compatibility issues.
-
-## Breaking Changes
-
-
-
-
-# 1.2.40
-
-## Features
-
-- **HourPicker**
- - Selected item should be highlighted.
- - Added functionality for auto-scroll to selected item
-
-## Bug Fixes
-
-- **HourPicker**
- - Width fix for dropdown items
-
-## Breaking Changes
-
-
-
-
-# 1.2.38
-
-## Features
-
-- **HourPicker**
- - Added dropdown arrow
-
-## Bug Fixes
-
-- **StepTracker**
- - Labels should respect the case they are given.
- - Labels are now left aligned to the step's circle.
-
-- **utilities**
- - Added validation in `attLimitTo` filter.
-
-- **Datepicker**
- - Updated `datepickerService` and removed `disable-dates` because of issues.
-
-- **Dropdown**
- - Fixed automatically redirecting on opening of dropdown.
-
-## Breaking Changes
-
-
-
-
-# 1.2.37
-
-## Features
-
-
-
-## Bug Fixes
-
-- **StepTracker**
- - Fixed steps looking like ovals instead of circles
- - Fixed wrong highlight color on active steps
- - Added not-allowed cursor for disabled steps
-
-- **hourpicker**
- - Bugfix for reverting to default values for unchecked boxes
-
- - **Split Icon Button**
- - Fix CATO issues
-
- - **TextDropdown**
- - Updated for CATO Compliance.
-
-- **Split Icon Button**
- - Fix CATO issues
-
-- **Datepicker**
- - Updated disable previous and disable next logic.
- - Updated date validation logic.
- - Implemented preserving the last shown month on entering invalid date.
-
-## Breaking Changes
-
-
-
-
-# 1.2.36
-
-## Features
-
-- **StepTracker**
- - Added disable-click attribute for ability to disable all click events for steps.
-
-- **utilities**
- - Added new filter `attLimitTo`.
-
-## Bug Fixes
-
-- **Buttons**
- - Fix on disabled button click issue.
- - Directive code optimization.
-
-- **Datepicker**
- - Date string validation for disabled dates.
- - Update disable previous and disable next issue.
-
-- **attMessage**
- - Assign it to be a child scope, so that multiple `att-message` can be used in a single page.
-
-- **utilities**
- - Added few validation in `att-input-deny`.
-
-- **StepTracker**
- - Fixed size of steps.
- - Fixed roundness of last step.
-
-- **Table**
- - Implemented `attLimitTo` filter for the implementation of views per page, instead of `ng-show`.
-
-- **Toggle**
- - Fixed accessibility issue
-
-- **attStepSlider**
- - scale is now in real values.
- - fixed bugs with cuttoff point failing.
-
-- **attTimeline**
- - updated colors for completed and cancelled steps.
-
-## Breaking Changes
-
-
-
-
-# 1.2.34
-
-## Features
-
-
-
-## Bug Fixes
-
-- **tagBadges**
- - tag with custom color now dynamically changing color.
- - tag with custom color background color issue fixed.
-
-- **Hour Picker**
- - on change of model value in hour picker component, same value is not updating in hour picker component.
-
-## Breaking Changes
-
-
-
-
-# 1.2.33
-
-## Features
-
-- **megaMenu**
- - The swapping functionality for menus is added.
-
-- **Checkbox**
- - checkbox should show title based on value provided.
-
-- **Radio Button**
- - radio button should show title based on value provided.
-
-- **att timeline**
- - timeline component.
-
-## Bug Fixes
-
-
-
-## Breaking Changes
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/README.md b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/README.md
deleted file mode 100644
index 7bbde4ed..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/README.md
+++ /dev/null
@@ -1,70 +0,0 @@
-![att_logo]
-# ABS Angular library
-A framework of [AngularJS] directives that allow for a plug'n'play development experience. This framework is apart of AT&T [QuickStart].
-
-# Installation
-
-The framework requres [NodeJS] to be installed prior to building.
-
-## Build
-
-If on a Windows machine, you can quickly start the build by invoking Build.bat which in turn calls:
-
- grunt --gruntfile ng-Gruntfile.js
- grunt --gruntfile Gruntfile.js
-
-
-If on Linux/Mac machine, you can directly execute the commands above.
-
-## Run the project
-
-### To Run in Netbeans
-1. Right Click on the project
-2. **Categories->Sources**
- * Set the value of "Site Root Folder" to "Production/dist"
-3. **Categories->Run**
- * Set the value of "Start File" to "ng-ui-elements.html"
- * Set the value of "Web Root" to "/"
-
-## How to contribute
-
-### To Add a New Module nModule
-1. Create a file Under the folder *ng-misc* nModule.hbs
- * nModule.hbs to be a copy of ng-misc/module.html
-
-2. open nModule.hbs and replace all the occurance of *module* by *nModule*
-
-3. ADD one entry at the end of the file app\templates\pages\ng-ui-elements.hbs
- * {{globWithContext 'app/templates/partials/ng-ui-elements/nModule.hbs' this}}
-
-### Create the following folder / file structure under the directory app\scripts\ng_js_att
-```javascript
-app\scripts\ng_js_att\nModule\docs
-app\scripts\ng_js_att\nModule\test
-app\scripts\ng_js_att\nModule\nModule.js
-app\scripts\ng_js_att\nModule\docs\demo.html
-app\scripts\ng_js_att\nModule\docs\demo.js
-app\scripts\ng_js_att\nModule\docs\dev-notes.html
-app\scripts\ng_js_att\nModule\test\nModule.spec.js
-```
-
-### Any templates used will go under the following folder app\scripts\ng_js_att_tpls
-General Development Rules:
-
-1. Directive to have only the logic.
-
-2. Styles to be out of the logic.
-
-3. Markup to be into templates.
-
-# Copyright
-PROPRIETARY INFORMATION
-
-_Not for use or disclosure outside of the AT&T family of companies, except under written agreement._
-
-
-[AngularJS]:http://angularjs.org
-[QuickStart]:http://quickstart.att.com
-[NodeJS]:http://nodejs.org
-[att_logo]:http://www.underconsideration.com/speakup/archives/att_new_logo.jpg
-[det_logo]: http://quickstart.web.att.com/images/logo-DETS.png \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.js b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.js
deleted file mode 100644
index 57c53008..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.js
+++ /dev/null
@@ -1,20422 +0,0 @@
-/**
-* FileName att-style-guide
-* Version 2.17.0
-* Build number 5c64ecd381d5984c483cdfaa078a1890
-* Date 11/23/2015
-*/
-
-(function(angular, window){
-angular.module("att.abs", ["att.abs.tpls", "att.abs.utilities","att.abs.position","att.abs.transition","att.abs.accordion","att.abs.alert","att.abs.boardStrip","att.abs.breadCrumbs","att.abs.buttons","att.abs.checkbox","att.abs.colorselector","att.abs.datepicker","att.abs.devNotes","att.abs.dividerLines","att.abs.dragdrop","att.abs.drawer","att.abs.message","att.abs.formField","att.abs.hourpicker","att.abs.iconButtons","att.abs.links","att.abs.loading","att.abs.modal","att.abs.pagination","att.abs.paneSelector","att.abs.tooltip","att.abs.popOvers","att.abs.profileCard","att.abs.progressBars","att.abs.radio","att.abs.scrollbar","att.abs.search","att.abs.select","att.abs.slider","att.abs.splitButtonDropdown","att.abs.splitIconButton","att.abs.stepSlider","att.abs.steptracker","att.abs.table","att.abs.tableMessages","att.abs.tabs","att.abs.tagBadges","att.abs.textOverflow","att.abs.toggle","att.abs.treeview","att.abs.typeAhead","att.abs.verticalSteptracker","att.abs.videoControls"]);
-angular.module("att.abs.tpls", ["app/scripts/ng_js_att_tpls/accordion/accordion.html","app/scripts/ng_js_att_tpls/accordion/accordion_alt.html","app/scripts/ng_js_att_tpls/accordion/attAccord.html","app/scripts/ng_js_att_tpls/accordion/attAccordBody.html","app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html","app/scripts/ng_js_att_tpls/alert/alert.html","app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html","app/scripts/ng_js_att_tpls/boardStrip/attBoard.html","app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html","app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html","app/scripts/ng_js_att_tpls/colorselector/colorselector.html","app/scripts/ng_js_att_tpls/datepicker/dateFilter.html","app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html","app/scripts/ng_js_att_tpls/datepicker/datepicker.html","app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html","app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html","app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html","app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html","app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html","app/scripts/ng_js_att_tpls/formField/creditCardImage.html","app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html","app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html","app/scripts/ng_js_att_tpls/links/readMore.html","app/scripts/ng_js_att_tpls/loading/loading.html","app/scripts/ng_js_att_tpls/modal/backdrop.html","app/scripts/ng_js_att_tpls/modal/tabbedItem.html","app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html","app/scripts/ng_js_att_tpls/modal/window.html","app/scripts/ng_js_att_tpls/pagination/pagination.html","app/scripts/ng_js_att_tpls/paneSelector/innerPane.html","app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html","app/scripts/ng_js_att_tpls/paneSelector/sidePane.html","app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html","app/scripts/ng_js_att_tpls/popOvers/popOvers.html","app/scripts/ng_js_att_tpls/profileCard/addUser.html","app/scripts/ng_js_att_tpls/profileCard/profileCard.html","app/scripts/ng_js_att_tpls/progressBars/progressBars.html","app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html","app/scripts/ng_js_att_tpls/search/search.html","app/scripts/ng_js_att_tpls/select/select.html","app/scripts/ng_js_att_tpls/select/textDropdown.html","app/scripts/ng_js_att_tpls/slider/maxContent.html","app/scripts/ng_js_att_tpls/slider/minContent.html","app/scripts/ng_js_att_tpls/slider/slider.html","app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html","app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html","app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html","app/scripts/ng_js_att_tpls/steptracker/step-tracker.html","app/scripts/ng_js_att_tpls/steptracker/step.html","app/scripts/ng_js_att_tpls/steptracker/timeline.html","app/scripts/ng_js_att_tpls/steptracker/timelineBar.html","app/scripts/ng_js_att_tpls/steptracker/timelineDot.html","app/scripts/ng_js_att_tpls/table/attTable.html","app/scripts/ng_js_att_tpls/table/attTableBody.html","app/scripts/ng_js_att_tpls/table/attTableHeader.html","app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html","app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html","app/scripts/ng_js_att_tpls/tabs/floatingTabs.html","app/scripts/ng_js_att_tpls/tabs/genericTabs.html","app/scripts/ng_js_att_tpls/tabs/menuTab.html","app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html","app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html","app/scripts/ng_js_att_tpls/tabs/submenuTab.html","app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html","app/scripts/ng_js_att_tpls/toggle/demoToggle.html","app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html","app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html","app/scripts/ng_js_att_tpls/videoControls/photoControls.html","app/scripts/ng_js_att_tpls/videoControls/videoControls.html"]);
-angular.module('att.abs.utilities', [])
-
-.filter('unsafe',[ '$sce', function ($sce) {
- return function(val){
- return $sce.trustAsHtml(val);
- };
-}])
-
-.filter('highlight', function () {
- function escapeRegexp(queryToEscape) {
- return queryToEscape.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
- }
- return function (matchItem, query, className) {
- return query && matchItem ? matchItem.replace(new RegExp(escapeRegexp(query), 'gi'), '<span class=\"' + className + '\">$&</span>') : matchItem;
- };
-})
-
-.filter('attLimitTo', function() {
- return function(actualArray, _limit, _begin) {
- var finalArray = [];
- var limit = _limit;
- var begin = _begin;
- if(isNaN(begin)) {
- begin = 0;
- }
- if(actualArray && !isNaN(limit)) {
- finalArray = actualArray.slice(begin, begin+limit);
- } else {
- finalArray = actualArray;
- }
- return finalArray;
- };
-})
-
-.filter('startsWith', function() {
- if (typeof String.prototype.startsWith !== 'function') {
- // see below for better implementation!
- String.prototype.startsWith = function (str){
- return this.indexOf(str) === 0;
- };
- }
-
- return function(items, searchString) {
- if (searchString === undefined || searchString === "") {
- return items;
- }
-
- var filtered = [];
- angular.forEach(items, function(item) {
- if (item.title.toLowerCase().startsWith(searchString.toLowerCase())) {
- filtered.push(item);
- }
- });
- return filtered;
- };
-})
-
-.directive('attInputDeny', [function() {
- return {
- restrict: 'A',
- require: 'ngModel',
- link: function (scope, elem, attr, ctrl) {
- var regexExpression = null;
- attr.$observe('attInputDeny', function (value) {
- if (value) {
- regexExpression = new RegExp(value, 'g');
- }
- });
- elem.bind('input', function () {
- var inputString = ctrl.$viewValue && ctrl.$viewValue.replace(regexExpression, '');
- if (inputString !== ctrl.$viewValue) {
- ctrl.$setViewValue(inputString);
- ctrl.$render();
- scope.$apply();
- }
- });
- }
- };
-}])
-
-.directive('attAccessibilityClick', [function() {
- return {
- restrict: 'A',
- link: function (scope, elem, attr) {
- var keyCode = [];
- attr.$observe('attAccessibilityClick', function (value) {
- if (value) {
- keyCode = value.split(',');
- }
- });
- elem.bind('keydown', function (ev) {
- var keyCodeCondition = function(){
- var flag = false;
- if(!(ev.keyCode)){
- if(ev.which){
- ev.keyCode = ev.which;
- }
- else if(ev.charCode){
- ev.keyCode = ev.charCode;
- }
- }
- if((ev.keyCode && keyCode.indexOf(ev.keyCode.toString()) > -1)){
- flag = true;
- }
- return flag;
- };
- if(keyCode.length > 0 && keyCodeCondition()) {
- elem[0].click();
- ev.preventDefault();
- }
- });
- }
- };
-}])
-
-.directive('attElementFocus', [function() {
- return {
- restrict: 'A',
- link: function(scope, elem, attr) {
- scope.$watch(attr.attElementFocus, function (value) {
- if (value) {
- elem[0].focus();
- }
- });
- }
- };
-}])
-
-.directive('focusOn', ['$timeout',
- function ($timeout) {
- var checkDirectivePrerequisites = function (attrs) {
- if (!attrs.focusOn && attrs.focusOn !== '') {
- throw 'FocusOnCondition missing attribute to evaluate';
- }
- };
- return {
- restrict: 'A',
- link: function (scope, element, attrs) {
- checkDirectivePrerequisites(attrs);
-
- scope.$watch(attrs.focusOn, function (currentValue) {
- if(currentValue) {
- $timeout(function () {
- element[0].focus();
- });
- }
- });
- }
- };
- }
-])
-.constant('whenScrollEndsConstants', {
- 'threshold': 100,
- 'width': 0,
- 'height': 0
-})
-.directive('whenScrollEnds', function(whenScrollEndsConstants, $log) {
- return {
- restrict: 'A',
- link: function (scope, element, attrs) {
- /**
- * Exposed Attributes:
- * threshold - integer - number of pixels before scrollbar hits end that callback is called
- * width - integer - override for element's width (px)
- * height - integer - override for element's height (px)
- * axis - string - x/y for scroll bar axis
- */
- var threshold = parseInt(attrs.threshold, 10) || whenScrollEndsConstants.threshold;
-
- if (!attrs.axis || attrs.axis === '') {
- $log.warn('axis attribute must be defined for whenScrollEnds.');
- return;
- }
-
- if (attrs.axis === 'x') {
- visibleWidth = parseInt(attrs.width, 10) || whenScrollEndsConstants.width;
- if (element.css('width')) {
- visibleWidth = element.css('width').split('px')[0];
- }
-
- element[0].addEventListener('scroll', function() {
- var scrollableWidth = element.prop('scrollWidth');
- if (scrollableWidth === undefined) {
- scrollableWidth = 1;
- }
- var hiddenContentWidth = scrollableWidth - visibleWidth;
-
- if (hiddenContentWidth - element[0].scrollLeft <= threshold) {
- /* Scroll almost at bottom, load more rows */
- scope.$apply(attrs.whenScrollEnds);
- }
- });
- } else if (attrs.axis === 'y') {
- visibleHeight = parseInt(attrs.height, 10) || whenScrollEndsConstants.height;
- if (element.css('width')) {
- visibleHeight = element.css('height').split('px')[0];
- }
-
- element[0].addEventListener('scroll', function() {
- var scrollableHeight = element.prop('scrollHeight');
- if (scrollableHeight === undefined) {
- scrollableHeight = 1;
- }
- var hiddenContentHeight = scrollableHeight - visibleHeight;
-
- if (hiddenContentHeight - element[0].scrollTop <= threshold) {
- /* Scroll almost at bottom, load more rows */
- scope.$apply(attrs.whenScrollEnds);
- }
- });
- }
- }
- };
-})
-
-.directive("validImei", function(){
- return {
- restrict: 'A',
- require: 'ngModel',
- link: function(scope, ele, attrs, ctrl)
- {
- ctrl.$parsers.unshift(function(value)
- {
- if(value){
- scope.valid = false;
- if (!isNaN(value) && value.length === 15)
- {
- var sumImeiVal = 0;
- var posIMEI = [];
- for (var imeiIndex=0; imeiIndex<15; imeiIndex++)
- {
- posIMEI[imeiIndex] = parseInt(value.substring(imeiIndex,imeiIndex + 1),10);
- if (imeiIndex % 2 !== 0)
- {
- posIMEI[imeiIndex] = parseInt((posIMEI[imeiIndex] * 2),10);
- }
- if (posIMEI[imeiIndex] > 9)
- {
- posIMEI[imeiIndex] = parseInt((posIMEI[imeiIndex] % 10),10) + parseInt((posIMEI[imeiIndex] / 10),10);
- }
- sumImeiVal=sumImeiVal+parseInt((posIMEI[imeiIndex]),10);
- }
-
- if((sumImeiVal % 10) === 0)
- {
- scope.valid = true;
- }
- else
- {
- scope.valid = false;
- }
- }
- else
- {
- scope.valid = false;
- }
- ctrl.$setValidity('invalidImei', scope.valid);
- }
- return scope.valid ? value : undefined;
- });
- }
- };
-})
-
-.directive("togglePassword", function(){
- return{
- restrict:'A',
- transclude:false,
- link: function(scope, element, attr, ctrl)
- {
- element.bind("click", function()
- {
- var ipwd = attr.togglePassword;
- element[0].innerHTML = element[0].innerHTML === "Show" ? "Hide" : "Show";
- var e = angular.element(document.querySelector('#' + ipwd))[0].type;
- angular.element(document.querySelector('#' + ipwd))[0].type = e === "password"? "text" : "password";
-
- });
-
- }
- };
-})
-
-.factory('events', function(){
- var _stopPropagation = function(evt){
- if(evt.stopPropagation) {
- evt.stopPropagation();
- } else {
- evt.returnValue = false;
- }
- };
- var _preventDefault = function(evt) {
- if (evt.preventDefault) {
- evt.preventDefault();
- } else {
- evt.returnValue = false;
- }
- }
- return {
- stopPropagation: _stopPropagation,
- preventDefault: _preventDefault
- };
-})
-
-.factory('$documentBind', ['$document', '$timeout', function ($document, $timeout) {
- var _click = function (flag, callbackFunc, scope) {
- scope.$watch(flag, function (val) {
- $timeout(function () {
- if (val) {
- $document.bind('click', callbackFunc);
- } else {
- $document.unbind('click', callbackFunc);
- }
- });
- });
- };
-
- var _event = function (event, flag, callbackFunc, scope, timeoutFlag, timeoutValue) {
- if (timeoutFlag) {
- if (!(timeoutValue)) {
- timeoutValue = 0;
- }
- scope.$watch(flag, function (newVal, oldVal) {
- if (newVal !== oldVal) {
- $timeout(function () {
- if (newVal) {
- $document.bind(event, callbackFunc);
- } else {
- $document.unbind(event, callbackFunc);
- }
- }, timeoutValue);
- }
- });
- } else {
- scope.$watch(flag, function (newVal, oldVal) {
- if (newVal !== oldVal) {
- if (newVal) {
- $document.bind(event, callbackFunc);
- } else {
- $document.unbind(event, callbackFunc);
- }
- }
- });
- }
- };
-
- return {
- click: _click,
- event: _event
- };
-}])
-
-.factory('DOMHelper', function() {
-
- function isTabable(node) {
- var element = angular.element(node);
- var hasTabindex = (parseInt(element.attr('tabindex'), 10) >= 0) ? true : false;
- var tagName = element[0].tagName.toUpperCase();
-
- if (hasTabindex || tagName === 'A' || tagName === 'INPUT' || tagName === 'TEXTAREA') {
- return !(element[0].disabled || element[0].readOnly);
- }
- return false;
- }
-
- function isValidChild(child) {
- return child.nodeType == 1 && child.nodeName != 'SCRIPT' && child.nodeName != 'STYLE';
- }
-
- function traverse(obj) {
- var obj = obj || document.getElementsByTagName('body')[0];
- if (isValidChild(obj) && isTabable(obj)) {
- return obj;
- }
- if (obj.hasChildNodes()) {
- var child = obj.firstChild;
- while(child) {
- var res = traverse(child);
- if(res){
- return res;
- }
- else{
- child = child.nextSibling;
- }
- }
- }
- else{
- return undefined;
- }
- }
-
- var _firstTabableElement = function(el) {
- /* This will return the first tabable element from the parent el */
- var elem = el;
- if (el.hasOwnProperty('length')) {
- elem = el[0];
- }
-
- return traverse(elem);
- };
-
- return {
- firstTabableElement: _firstTabableElement
- };
-})
-
-.factory('keymap', function(){
- return {
- KEY:{
- TAB: 9,
- ENTER: 13,
- ESC: 27,
- SPACE: 32,
- LEFT: 37,
- UP: 38,
- RIGHT: 39,
- DOWN: 40,
- SHIFT: 16,
- CTRL: 17,
- ALT: 18,
- PAGE_UP: 33,
- PAGE_DOWN: 34,
- HOME: 36,
- END: 35,
- BACKSPACE: 8,
- DELETE: 46,
- COMMAND: 91
- },
- MAP: { 91 : "COMMAND", 8 : "BACKSPACE" , 9 : "TAB" , 13 : "ENTER" , 16 : "SHIFT" , 17 : "CTRL" , 18 : "ALT" , 19 : "PAUSEBREAK" , 20 : "CAPSLOCK" , 27 : "ESC" , 32 : "SPACE" , 33 : "PAGE_UP", 34 : "PAGE_DOWN" , 35 : "END" , 36 : "HOME" , 37 : "LEFT" , 38 : "UP" , 39 : "RIGHT" , 40 : "DOWN" , 43 : "+" , 44 : "PRINTSCREEN" , 45 : "INSERT" , 46 : "DELETE", 48 : "0" , 49 : "1" , 50 : "2" , 51 : "3" , 52 : "4" , 53 : "5" , 54 : "6" , 55 : "7" , 56 : "8" , 57 : "9" , 59 : ";", 61 : "=" , 65 : "A" , 66 : "B" , 67 : "C" , 68 : "D" , 69 : "E" , 70 : "F" , 71 : "G" , 72 : "H" , 73 : "I" , 74 : "J" , 75 : "K" , 76 : "L", 77 : "M" , 78 : "N" , 79 : "O" , 80 : "P" , 81 : "Q" , 82 : "R" , 83 : "S" , 84 : "T" , 85 : "U" , 86 : "V" , 87 : "W" , 88 : "X" , 89 : "Y" , 90 : "Z", 96 : "0" , 97 : "1" , 98 : "2" , 99 : "3" , 100 : "4" , 101 : "5" , 102 : "6" , 103 : "7" , 104 : "8" , 105 : "9", 106 : "*" , 107 : "+" , 109 : "-" , 110 : "." , 111 : "/", 112 : "F1" , 113 : "F2" , 114 : "F3" , 115 : "F4" , 116 : "F5" , 117 : "F6" , 118 : "F7" , 119 : "F8" , 120 : "F9" , 121 : "F10" , 122 : "F11" , 123 : "F12", 144 : "NUMLOCK" , 145 : "SCROLLLOCK" , 186 : ";" , 187 : "=" , 188 : "," , 189 : "-" , 190 : "." , 191 : "/" , 192 : "`" , 219 : "[" , 220 : "\\" , 221 : "]" , 222 : "'"
- },
- isControl: function (e) {
- var k = e.keyCode;
- switch (k) {
- case this.KEY.COMMAND:
- case this.KEY.SHIFT:
- case this.KEY.CTRL:
- case this.KEY.ALT:
- return true;
- default:;
- }
-
- if (e.metaKey) {
- return true;
- }
-
- return false;
- },
- isFunctionKey: function (k) {
- k = k.keyCode ? k.keyCode : k;
- return k >= 112 && k <= 123;
- },
- isVerticalMovement: function (k){
- return ~[this.KEY.UP, this.KEY.DOWN].indexOf(k);
- },
- isHorizontalMovement: function (k){
- return ~[this.KEY.LEFT, this.KEY.RIGHT, this.KEY.BACKSPACE, this.KEY.DELETE].indexOf(k);
- },
- isAllowedKey: function (k){
- return (~[this.KEY.SPACE, this.KEY.ESC, this.KEY.ENTER].indexOf(k)) || this.isHorizontalMovement(k) || this.isVerticalMovement(k);
- }
- };
-})
-
-.factory('keyMapAc', function(){
- return {
- keys:{ "32":" ", "33":"!", "34":"\"", "35":"#", "36":"$", "37":"%", "38":"&", "39":"'"
- , "40":"(", "41":")", "42":"*", "43":"+", "44":",", "45":"-", "46":".", "47":"\/", "58":":"
- , "59":";", "60":"<", "61":"=", "62":">", "63":"?", "64":"@", "91":"[", "92":"\\", "93":"]"
- , "94":"^", "95":"_", "96":"`", "123":"{", "124":"|", "125":"}", "126":"~"
- },
- keyRange:{"startNum":"48","endNum":"57","startSmallLetters":"97","endSmallLetters":"122"
- ,"startCapitalLetters":"65","endCapitalLetters":"90"},
- allowedKeys:{TAB:8, BACKSPACE:9, DELETE:16}
- };
-})
-
-.factory('$attElementDetach', function () {
- var _detach = function (element) {
- if (element && element.parentNode) {
- element.parentNode.removeChild(element);
- }
- };
- return _detach;
-})
-
-.factory('$ieVersion', function () {
- var ie = null;
-
- var loadIEVersion = function () {
- var isIE10 = (eval("/*@cc_on!@*/false") && document.documentMode === 10);
- if (isIE10) {
- return 10;
- }
- var v = 3,
- div = document.createElement('div'),
- all = div.getElementsByTagName('i');
- do {
- div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->';
- } while (all[0]);
- return v > 4 ? v : undefined;
- };
-
- return function () {
- if (ie===null) {
- ie = loadIEVersion();
- }
- return ie;
- };
-});
-(function () {
- String.prototype.toSnakeCase = function () {
- return this.replace(/([A-Z])/g, function ($1) {
- return "-" + $1.toLowerCase();
- });
- };
- var concat = function (character, times) {
- character = character || '';
- times = (!isNaN(times) && times) || 0;
- var finalChar = '';
- for (var i = 0; i < times; i++) {
- finalChar += character;
- }
- return finalChar;
- };
-
- // direction: true for left and false for right
- var pad = function (actualString, width, character, direction) {
- actualString = actualString || '';
- width = (!isNaN(width) && width) || 0;
- character = character || '';
- if (width > actualString.length) {
- if (direction) {
- return concat(character, (width - actualString.length)) + actualString;
- } else {
- return actualString + concat(character, (width - actualString.length));
- }
- }
- return actualString;
- };
-
- String.prototype.lPad = function (width, character) {
- return pad(this, width, character, true);
- };
-
- String.prototype.rPad = function (width, character) {
- return pad(this, width, character, false);
- };
-
- if (!Array.prototype.indexOf) {
- Array.prototype.indexOf = function (val) {
- for (var index = 0; index < this.length; index++) {
- if (this[index] === val) {
- return index;
- }
- }
- return -1;
- };
- }
-})();
-
-angular.module('att.abs.position', [])
-
-.factory('$position', ['$document', '$window', function ($document, $window) {
- function getStyle(el, cssprop) {
- if (el.currentStyle) { //IE
- return el.currentStyle[cssprop];
- } else if ($window.getComputedStyle) {
- return $window.getComputedStyle(el)[cssprop];
- }
- // finally try and get inline style
- return el.style[cssprop];
- }
-
- /**
- * Checks if a given element is statically positioned
- * @param element - raw DOM element
- */
- function isStaticPositioned(element) {
- return (getStyle(element, "position") || 'static') === 'static';
- }
-
- /**
- * returns the closest, non-statically positioned parentOffset of a given element
- * @param element
- */
- var parentOffsetEl = function (element) {
- var docDomEl = $document[0];
- var offsetParent = element.offsetParent || docDomEl;
- while (offsetParent && offsetParent !== docDomEl && isStaticPositioned(offsetParent)) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent || docDomEl;
- };
-
- return {
- /**
- * Provides read-only equivalent of jQuery's position function:
- * http://api.jquery.com/position/
- */
- position: function (element) {
- var elBCR = this.offset(element);
- var offsetParentBCR = {
- top: 0,
- left: 0
- };
- var offsetParentEl = parentOffsetEl(element[0]);
- if (offsetParentEl !== $document[0]) {
- offsetParentBCR = this.offset(angular.element(offsetParentEl));
- offsetParentBCR.top += offsetParentEl.clientTop - offsetParentEl.scrollTop;
- offsetParentBCR.left += offsetParentEl.clientLeft - offsetParentEl.scrollLeft;
- }
-
- return {
- width: element.prop('offsetWidth'),
- height: element.prop('offsetHeight'),
- top: elBCR.top - offsetParentBCR.top,
- left: elBCR.left - offsetParentBCR.left
- };
- },
-
- /**
- * Provides read-only equivalent of jQuery's offset function:
- * http://api.jquery.com/offset/
- */
- offset: function (element) {
- var boundingClientRect = element[0].getBoundingClientRect();
- return {
- width: element.prop('offsetWidth'),
- height: element.prop('offsetHeight'),
- top: boundingClientRect.top + ($window.pageYOffset || $document[0].body.scrollTop || $document[0].documentElement.scrollTop),
- left: boundingClientRect.left + ($window.pageXOffset || $document[0].body.scrollLeft || $document[0].documentElement.scrollLeft)
- };
- }
- };
-}])
-
-.factory('$isElement', [function () {
- var isElement = function (currentElem, targetElem, alternateElem) {
- if (currentElem[0] === targetElem[0]) {
- return true;
- } else if (currentElem[0] === alternateElem[0]) {
- return false;
- } else {
- return isElement((currentElem.parent()[0] && currentElem.parent()) || targetElem, targetElem, alternateElem);
- }
- };
-
- return isElement;
-}])
-
-.directive('attPosition', ['$position', function ($position) {
- return {
- restrict: 'A',
- link: function (scope, elem, attr) {
- scope.$watchCollection(function () {
- return $position.position(elem);
- }, function (value) {
- scope[attr.attPosition] = value;
- });
- }
- };
-}]);
-
-/*!
- * VERSION: 1.7.3
- * DATE: 2014-01-14
- * UPDATES AND DOCS AT: http://www.greensock.com
- *
- * @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
- * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
- * Club GreenSock members, the software agreement that was issued with your membership.
- *
- * @author: Jack Doyle, jack@greensock.com
- **/
-(window._gsQueue || (window._gsQueue = [])).push( function() {
-
- "use strict";
-
- var _doc = document.documentElement,
- _window = window,
- _max = function(element, axis) {
- var dim = (axis === "x") ? "Width" : "Height",
- scroll = "scroll" + dim,
- client = "client" + dim,
- body = document.body;
- return (element === _window || element === _doc || element === body) ? Math.max(_doc[scroll], body[scroll]) - (_window["inner" + dim] || Math.max(_doc[client], body[client])) : element[scroll] - element["offset" + dim];
- },
-
- ScrollToPlugin = window._gsDefine.plugin({
- propName: "scrollTo",
- API: 2,
- version:"1.7.3",
-
- //called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.
- init: function(target, value, tween) {
- this._wdw = (target === _window);
- this._target = target;
- this._tween = tween;
- if (typeof(value) !== "object") {
- value = {y:value}; //if we don't receive an object as the parameter, assume the user intends "y".
- }
- this._autoKill = (value.autoKill !== false);
- this.x = this.xPrev = this.getX();
- this.y = this.yPrev = this.getY();
- if (value.x != null) {
- this._addTween(this, "x", this.x, (value.x === "max") ? _max(target, "x") : value.x, "scrollTo_x", true);
- this._overwriteProps.push("scrollTo_x");
- } else {
- this.skipX = true;
- }
- if (value.y != null) {
- this._addTween(this, "y", this.y, (value.y === "max") ? _max(target, "y") : value.y, "scrollTo_y", true);
- this._overwriteProps.push("scrollTo_y");
- } else {
- this.skipY = true;
- }
- return true;
- },
-
- //called each time the values should be updated, and the ratio gets passed as the only parameter (typically it's a value between 0 and 1, but it can exceed those when using an ease like Elastic.easeOut or Back.easeOut, etc.)
- set: function(v) {
- this._super.setRatio.call(this, v);
-
- var x = (this._wdw || !this.skipX) ? this.getX() : this.xPrev,
- y = (this._wdw || !this.skipY) ? this.getY() : this.yPrev,
- yDif = y - this.yPrev,
- xDif = x - this.xPrev;
-
- if (this._autoKill) {
- //note: iOS has a bug that throws off the scroll by several pixels, so we need to check if it's within 7 pixels of the previous one that we set instead of just looking for an exact match.
- if (!this.skipX && (xDif > 7 || xDif < -7) && x < _max(this._target, "x")) {
- this.skipX = true; //if the user scrolls separately, we should stop tweening!
- }
- if (!this.skipY && (yDif > 7 || yDif < -7) && y < _max(this._target, "y")) {
- this.skipY = true; //if the user scrolls separately, we should stop tweening!
- }
- if (this.skipX && this.skipY) {
- this._tween.kill();
- }
- }
- if (this._wdw) {
- _window.scrollTo((!this.skipX) ? this.x : x, (!this.skipY) ? this.y : y);
- } else {
- if (!this.skipY) {
- this._target.scrollTop = this.y;
- }
- if (!this.skipX) {
- this._target.scrollLeft = this.x;
- }
- }
- this.xPrev = this.x;
- this.yPrev = this.y;
- }
-
- }),
- p = ScrollToPlugin.prototype;
-
- ScrollToPlugin.max = _max;
-
- p.getX = function() {
- return (!this._wdw) ? this._target.scrollLeft : (_window.pageXOffset != null) ? _window.pageXOffset : (_doc.scrollLeft != null) ? _doc.scrollLeft : document.body.scrollLeft;
- };
-
- p.getY = function() {
- return (!this._wdw) ? this._target.scrollTop : (_window.pageYOffset != null) ? _window.pageYOffset : (_doc.scrollTop != null) ? _doc.scrollTop : document.body.scrollTop;
- };
-
- p._kill = function(lookup) {
- if (lookup.scrollTo_x) {
- this.skipX = true;
- }
- if (lookup.scrollTo_y) {
- this.skipY = true;
- }
- return this._super._kill.call(this, lookup);
- };
-
-}); if (window._gsDefine) { window._gsQueue.pop()(); }
-/*!
- * VERSION: 1.12.1
- * DATE: 2014-06-26
- * UPDATES AND DOCS AT: http://www.greensock.com
- *
- * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
- *
- * @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
- * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
- * Club GreenSock members, the software agreement that was issued with your membership.
- *
- * @author: Jack Doyle, jack@greensock.com
- **/
-
-(window._gsQueue || (window._gsQueue = [])).push( function() {
-
- "use strict";
-
- window._gsDefine("TweenMax", ["core.Animation","core.SimpleTimeline","TweenLite"], function(Animation, SimpleTimeline, TweenLite) {
-
- var _slice = [].slice,
- TweenMax = function(target, duration, vars) {
- TweenLite.call(this, target, duration, vars);
- this._cycle = 0;
- this._yoyo = (this.vars.yoyo === true);
- this._repeat = this.vars.repeat || 0;
- this._repeatDelay = this.vars.repeatDelay || 0;
- this._dirty = true; //ensures that if there is any repeat, the totalDuration will get recalculated to accurately report it.
- this.render = TweenMax.prototype.render; //speed optimization (avoid prototype lookup on this "hot" method)
- },
- _tinyNum = 0.0000000001,
- TweenLiteInternals = TweenLite._internals,
- _isSelector = TweenLiteInternals.isSelector,
- _isArray = TweenLiteInternals.isArray,
- p = TweenMax.prototype = TweenLite.to({}, 0.1, {}),
- _blankArray = [];
-
- TweenMax.version = "1.12.1";
- p.constructor = TweenMax;
- p.kill()._gc = false;
- TweenMax.killTweensOf = TweenMax.killDelayedCallsTo = TweenLite.killTweensOf;
- TweenMax.getTweensOf = TweenLite.getTweensOf;
- TweenMax.lagSmoothing = TweenLite.lagSmoothing;
- TweenMax.ticker = TweenLite.ticker;
- TweenMax.render = TweenLite.render;
-
- p.invalidate = function() {
- this._yoyo = (this.vars.yoyo === true);
- this._repeat = this.vars.repeat || 0;
- this._repeatDelay = this.vars.repeatDelay || 0;
- this._uncache(true);
- return TweenLite.prototype.invalidate.call(this);
- };
-
- p.updateTo = function(vars, resetDuration) {
- var curRatio = this.ratio, p;
- if (resetDuration && this._startTime < this._timeline._time) {
- this._startTime = this._timeline._time;
- this._uncache(false);
- if (this._gc) {
- this._enabled(true, false);
- } else {
- this._timeline.insert(this, this._startTime - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.
- }
- }
- for (p in vars) {
- this.vars[p] = vars[p];
- }
- if (this._initted) {
- if (resetDuration) {
- this._initted = false;
- } else {
- if (this._gc) {
- this._enabled(true, false);
- }
- if (this._notifyPluginsOfEnabled && this._firstPT) {
- TweenLite._onPluginEvent("_onDisable", this); //in case a plugin like MotionBlur must perform some cleanup tasks
- }
- if (this._time / this._duration > 0.998) { //if the tween has finished (or come extremely close to finishing), we just need to rewind it to 0 and then render it again at the end which forces it to re-initialize (parsing the new vars). We allow tweens that are close to finishing (but haven't quite finished) to work this way too because otherwise, the values are so small when determining where to project the starting values that binary math issues creep in and can make the tween appear to render incorrectly when run backwards.
- var prevTime = this._time;
- this.render(0, true, false);
- this._initted = false;
- this.render(prevTime, true, false);
- } else if (this._time > 0) {
- this._initted = false;
- this._init();
- var inv = 1 / (1 - curRatio),
- pt = this._firstPT, endValue;
- while (pt) {
- endValue = pt.s + pt.c;
- pt.c *= inv;
- pt.s = endValue - pt.c;
- pt = pt._next;
- }
- }
- }
- }
- return this;
- };
-
- p.render = function(time, suppressEvents, force) {
- if (!this._initted) if (this._duration === 0 && this.vars.repeat) { //zero duration tweens that render immediately have render() called from TweenLite's constructor, before TweenMax's constructor has finished setting _repeat, _repeatDelay, and _yoyo which are critical in determining totalDuration() so we need to call invalidate() which is a low-kb way to get those set properly.
- this.invalidate();
- }
- var totalDur = (!this._dirty) ? this._totalDuration : this.totalDuration(),
- prevTime = this._time,
- prevTotalTime = this._totalTime,
- prevCycle = this._cycle,
- duration = this._duration,
- prevRawPrevTime = this._rawPrevTime,
- isComplete, callback, pt, cycleDuration, r, type, pow, rawPrevTime, i;
- if (time >= totalDur) {
- this._totalTime = totalDur;
- this._cycle = this._repeat;
- if (this._yoyo && (this._cycle & 1) !== 0) {
- this._time = 0;
- this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0;
- } else {
- this._time = duration;
- this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1;
- }
- if (!this._reversed) {
- isComplete = true;
- callback = "onComplete";
- }
- if (duration === 0) if (this._initted || !this.vars.lazy || force) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
- if (this._startTime === this._timeline._duration) { //if a zero-duration tween is at the VERY end of a timeline and that timeline renders at its end, it will typically add a tiny bit of cushion to the render time to prevent rounding errors from getting in the way of tweens rendering their VERY end. If we then reverse() that timeline, the zero-duration tween will trigger its onReverseComplete even though technically the playhead didn't pass over it again. It's a very specific edge case we must accommodate.
- time = 0;
- }
- if (time === 0 || prevRawPrevTime < 0 || prevRawPrevTime === _tinyNum) if (prevRawPrevTime !== time) {
- force = true;
- if (prevRawPrevTime > _tinyNum) {
- callback = "onReverseComplete";
- }
- }
- this._rawPrevTime = rawPrevTime = (!suppressEvents || time || prevRawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.
- }
-
- } else if (time < 0.0000001) { //to work around occasional floating point math artifacts, round super small values to 0.
- this._totalTime = this._time = this._cycle = 0;
- this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0;
- if (prevTotalTime !== 0 || (duration === 0 && prevRawPrevTime > 0 && prevRawPrevTime !== _tinyNum)) {
- callback = "onReverseComplete";
- isComplete = this._reversed;
- }
- if (time < 0) {
- this._active = false;
- if (duration === 0) if (this._initted || !this.vars.lazy || force) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
- if (prevRawPrevTime >= 0) {
- force = true;
- }
- this._rawPrevTime = rawPrevTime = (!suppressEvents || time || prevRawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.
- }
- } else if (!this._initted) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.
- force = true;
- }
- } else {
- this._totalTime = this._time = time;
-
- if (this._repeat !== 0) {
- cycleDuration = duration + this._repeatDelay;
- this._cycle = (this._totalTime / cycleDuration) >> 0; //originally _totalTime % cycleDuration but floating point errors caused problems, so I normalized it. (4 % 0.8 should be 0 but Flash reports it as 0.79999999!)
- if (this._cycle !== 0) if (this._cycle === this._totalTime / cycleDuration) {
- this._cycle--; //otherwise when rendered exactly at the end time, it will act as though it is repeating (at the beginning)
- }
- this._time = this._totalTime - (this._cycle * cycleDuration);
- if (this._yoyo) if ((this._cycle & 1) !== 0) {
- this._time = duration - this._time;
- }
- if (this._time > duration) {
- this._time = duration;
- } else if (this._time < 0) {
- this._time = 0;
- }
- }
-
- if (this._easeType) {
- r = this._time / duration;
- type = this._easeType;
- pow = this._easePower;
- if (type === 1 || (type === 3 && r >= 0.5)) {
- r = 1 - r;
- }
- if (type === 3) {
- r *= 2;
- }
- if (pow === 1) {
- r *= r;
- } else if (pow === 2) {
- r *= r * r;
- } else if (pow === 3) {
- r *= r * r * r;
- } else if (pow === 4) {
- r *= r * r * r * r;
- }
-
- if (type === 1) {
- this.ratio = 1 - r;
- } else if (type === 2) {
- this.ratio = r;
- } else if (this._time / duration < 0.5) {
- this.ratio = r / 2;
- } else {
- this.ratio = 1 - (r / 2);
- }
-
- } else {
- this.ratio = this._ease.getRatio(this._time / duration);
- }
-
- }
-
- if (prevTime === this._time && !force && prevCycle === this._cycle) {
- if (prevTotalTime !== this._totalTime) if (this._onUpdate) if (!suppressEvents) { //so that onUpdate fires even during the repeatDelay - as long as the totalTime changed, we should trigger onUpdate.
- this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);
- }
- return;
- } else if (!this._initted) {
- this._init();
- if (!this._initted || this._gc) { //immediateRender tweens typically won't initialize until the playhead advances (_time is greater than 0) in order to ensure that overwriting occurs properly. Also, if all of the tweening properties have been overwritten (which would cause _gc to be true, as set in _init()), we shouldn't continue otherwise an onStart callback could be called for example.
- return;
- } else if (!force && this._firstPT && ((this.vars.lazy !== false && this._duration) || (this.vars.lazy && !this._duration))) { //we stick it in the queue for rendering at the very end of the tick - this is a performance optimization because browsers invalidate styles and force a recalculation if you read, write, and then read style data (so it's better to read/read/read/write/write/write than read/write/read/write/read/write). The down side, of course, is that usually you WANT things to render immediately because you may have code running right after that which depends on the change. Like imagine running TweenLite.set(...) and then immediately after that, creating a nother tween that animates the same property to another value; the starting values of that 2nd tween wouldn't be accurate if lazy is true.
- this._time = prevTime;
- this._totalTime = prevTotalTime;
- this._rawPrevTime = prevRawPrevTime;
- this._cycle = prevCycle;
- TweenLiteInternals.lazyTweens.push(this);
- this._lazy = time;
- return;
- }
- //_ease is initially set to defaultEase, so now that init() has run, _ease is set properly and we need to recalculate the ratio. Overall this is faster than using conditional logic earlier in the method to avoid having to set ratio twice because we only init() once but renderTime() gets called VERY frequently.
- if (this._time && !isComplete) {
- this.ratio = this._ease.getRatio(this._time / duration);
- } else if (isComplete && this._ease._calcEnd) {
- this.ratio = this._ease.getRatio((this._time === 0) ? 0 : 1);
- }
- }
- if (this._lazy !== false) {
- this._lazy = false;
- }
-
- if (!this._active) if (!this._paused && this._time !== prevTime && time >= 0) {
- this._active = true; //so that if the user renders a tween (as opposed to the timeline rendering it), the timeline is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the tween already finished but the user manually re-renders it as halfway done.
- }
- if (prevTotalTime === 0) {
- if (this._initted === 2 && time > 0) {
- //this.invalidate();
- this._init(); //will just apply overwriting since _initted of (2) means it was a from() tween that had immediateRender:true
- }
- if (this._startAt) {
- if (time >= 0) {
- this._startAt.render(time, suppressEvents, force);
- } else if (!callback) {
- callback = "_dummyGS"; //if no callback is defined, use a dummy value just so that the condition at the end evaluates as true because _startAt should render AFTER the normal render loop when the time is negative. We could handle this in a more intuitive way, of course, but the render loop is the MOST important thing to optimize, so this technique allows us to avoid adding extra conditional logic in a high-frequency area.
- }
- }
- if (this.vars.onStart) if (this._totalTime !== 0 || duration === 0) if (!suppressEvents) {
- this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || _blankArray);
- }
- }
-
- pt = this._firstPT;
- while (pt) {
- if (pt.f) {
- pt.t[pt.p](pt.c * this.ratio + pt.s);
- } else {
- pt.t[pt.p] = pt.c * this.ratio + pt.s;
- }
- pt = pt._next;
- }
-
- if (this._onUpdate) {
- if (time < 0) if (this._startAt && this._startTime) { //if the tween is positioned at the VERY beginning (_startTime 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.
- this._startAt.render(time, suppressEvents, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.
- }
- if (!suppressEvents) if (this._totalTime !== prevTotalTime || isComplete) {
- this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);
- }
- }
- if (this._cycle !== prevCycle) if (!suppressEvents) if (!this._gc) if (this.vars.onRepeat) {
- this.vars.onRepeat.apply(this.vars.onRepeatScope || this, this.vars.onRepeatParams || _blankArray);
- }
- if (callback) if (!this._gc) { //check gc because there's a chance that kill() could be called in an onUpdate
- if (time < 0 && this._startAt && !this._onUpdate && this._startTime) { //if the tween is positioned at the VERY beginning (_startTime 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.
- this._startAt.render(time, suppressEvents, force);
- }
- if (isComplete) {
- if (this._timeline.autoRemoveChildren) {
- this._enabled(false, false);
- }
- this._active = false;
- }
- if (!suppressEvents && this.vars[callback]) {
- this.vars[callback].apply(this.vars[callback + "Scope"] || this, this.vars[callback + "Params"] || _blankArray);
- }
- if (duration === 0 && this._rawPrevTime === _tinyNum && rawPrevTime !== _tinyNum) { //the onComplete or onReverseComplete could trigger movement of the playhead and for zero-duration tweens (which must discern direction) that land directly back on their start time, we don't want to fire again on the next render. Think of several addPause()'s in a timeline that forces the playhead to a certain spot, but what if it's already paused and another tween is tweening the "time" of the timeline? Each time it moves [forward] past that spot, it would move back, and since suppressEvents is true, it'd reset _rawPrevTime to _tinyNum so that when it begins again, the callback would fire (so ultimately it could bounce back and forth during that tween). Again, this is a very uncommon scenario, but possible nonetheless.
- this._rawPrevTime = 0;
- }
- }
- };
-
-//---- STATIC FUNCTIONS -----------------------------------------------------------------------------------------------------------
-
- TweenMax.to = function(target, duration, vars) {
- return new TweenMax(target, duration, vars);
- };
-
- TweenMax.from = function(target, duration, vars) {
- vars.runBackwards = true;
- vars.immediateRender = (vars.immediateRender != false);
- return new TweenMax(target, duration, vars);
- };
-
- TweenMax.fromTo = function(target, duration, fromVars, toVars) {
- toVars.startAt = fromVars;
- toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false);
- return new TweenMax(target, duration, toVars);
- };
-
- TweenMax.staggerTo = TweenMax.allTo = function(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
- stagger = stagger || 0;
- var delay = vars.delay || 0,
- a = [],
- finalComplete = function() {
- if (vars.onComplete) {
- vars.onComplete.apply(vars.onCompleteScope || this, arguments);
- }
- onCompleteAll.apply(onCompleteAllScope || this, onCompleteAllParams || _blankArray);
- },
- l, copy, i, p;
- if (!_isArray(targets)) {
- if (typeof(targets) === "string") {
- targets = TweenLite.selector(targets) || targets;
- }
- if (_isSelector(targets)) {
- targets = _slice.call(targets, 0);
- }
- }
- l = targets.length;
- for (i = 0; i < l; i++) {
- copy = {};
- for (p in vars) {
- copy[p] = vars[p];
- }
- copy.delay = delay;
- if (i === l - 1 && onCompleteAll) {
- copy.onComplete = finalComplete;
- }
- a[i] = new TweenMax(targets[i], duration, copy);
- delay += stagger;
- }
- return a;
- };
-
- TweenMax.staggerFrom = TweenMax.allFrom = function(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
- vars.runBackwards = true;
- vars.immediateRender = (vars.immediateRender != false);
- return TweenMax.staggerTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope);
- };
-
- TweenMax.staggerFromTo = TweenMax.allFromTo = function(targets, duration, fromVars, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
- toVars.startAt = fromVars;
- toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false);
- return TweenMax.staggerTo(targets, duration, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope);
- };
-
- TweenMax.delayedCall = function(delay, callback, params, scope, useFrames) {
- return new TweenMax(callback, 0, {delay:delay, onComplete:callback, onCompleteParams:params, onCompleteScope:scope, onReverseComplete:callback, onReverseCompleteParams:params, onReverseCompleteScope:scope, immediateRender:false, useFrames:useFrames, overwrite:0});
- };
-
- TweenMax.set = function(target, vars) {
- return new TweenMax(target, 0, vars);
- };
-
- TweenMax.isTweening = function(target) {
- return (TweenLite.getTweensOf(target, true).length > 0);
- };
-
- var _getChildrenOf = function(timeline, includeTimelines) {
- var a = [],
- cnt = 0,
- tween = timeline._first;
- while (tween) {
- if (tween instanceof TweenLite) {
- a[cnt++] = tween;
- } else {
- if (includeTimelines) {
- a[cnt++] = tween;
- }
- a = a.concat(_getChildrenOf(tween, includeTimelines));
- cnt = a.length;
- }
- tween = tween._next;
- }
- return a;
- },
- getAllTweens = TweenMax.getAllTweens = function(includeTimelines) {
- return _getChildrenOf(Animation._rootTimeline, includeTimelines).concat( _getChildrenOf(Animation._rootFramesTimeline, includeTimelines) );
- };
-
- TweenMax.killAll = function(complete, tweens, delayedCalls, timelines) {
- if (tweens == null) {
- tweens = true;
- }
- if (delayedCalls == null) {
- delayedCalls = true;
- }
- var a = getAllTweens((timelines != false)),
- l = a.length,
- allTrue = (tweens && delayedCalls && timelines),
- isDC, tween, i;
- for (i = 0; i < l; i++) {
- tween = a[i];
- if (allTrue || (tween instanceof SimpleTimeline) || ((isDC = (tween.target === tween.vars.onComplete)) && delayedCalls) || (tweens && !isDC)) {
- if (complete) {
- tween.totalTime(tween._reversed ? 0 : tween.totalDuration());
- } else {
- tween._enabled(false, false);
- }
- }
- }
- };
-
- TweenMax.killChildTweensOf = function(parent, complete) {
- if (parent == null) {
- return;
- }
- var tl = TweenLiteInternals.tweenLookup,
- a, curParent, p, i, l;
- if (typeof(parent) === "string") {
- parent = TweenLite.selector(parent) || parent;
- }
- if (_isSelector(parent)) {
- parent = _slice.call(parent, 0);
- }
- if (_isArray(parent)) {
- i = parent.length;
- while (--i > -1) {
- TweenMax.killChildTweensOf(parent[i], complete);
- }
- return;
- }
- a = [];
- for (p in tl) {
- curParent = tl[p].target.parentNode;
- while (curParent) {
- if (curParent === parent) {
- a = a.concat(tl[p].tweens);
- }
- curParent = curParent.parentNode;
- }
- }
- l = a.length;
- for (i = 0; i < l; i++) {
- if (complete) {
- a[i].totalTime(a[i].totalDuration());
- }
- a[i]._enabled(false, false);
- }
- };
-
- var _changePause = function(pause, tweens, delayedCalls, timelines) {
- tweens = (tweens !== false);
- delayedCalls = (delayedCalls !== false);
- timelines = (timelines !== false);
- var a = getAllTweens(timelines),
- allTrue = (tweens && delayedCalls && timelines),
- i = a.length,
- isDC, tween;
- while (--i > -1) {
- tween = a[i];
- if (allTrue || (tween instanceof SimpleTimeline) || ((isDC = (tween.target === tween.vars.onComplete)) && delayedCalls) || (tweens && !isDC)) {
- tween.paused(pause);
- }
- }
- };
-
- TweenMax.pauseAll = function(tweens, delayedCalls, timelines) {
- _changePause(true, tweens, delayedCalls, timelines);
- };
-
- TweenMax.resumeAll = function(tweens, delayedCalls, timelines) {
- _changePause(false, tweens, delayedCalls, timelines);
- };
-
- TweenMax.globalTimeScale = function(value) {
- var tl = Animation._rootTimeline,
- t = TweenLite.ticker.time;
- if (!arguments.length) {
- return tl._timeScale;
- }
- value = value || _tinyNum; //can't allow zero because it'll throw the math off
- tl._startTime = t - ((t - tl._startTime) * tl._timeScale / value);
- tl = Animation._rootFramesTimeline;
- t = TweenLite.ticker.frame;
- tl._startTime = t - ((t - tl._startTime) * tl._timeScale / value);
- tl._timeScale = Animation._rootTimeline._timeScale = value;
- return value;
- };
-
-
-//---- GETTERS / SETTERS ----------------------------------------------------------------------------------------------------------
-
- p.progress = function(value) {
- return (!arguments.length) ? this._time / this.duration() : this.totalTime( this.duration() * ((this._yoyo && (this._cycle & 1) !== 0) ? 1 - value : value) + (this._cycle * (this._duration + this._repeatDelay)), false);
- };
-
- p.totalProgress = function(value) {
- return (!arguments.length) ? this._totalTime / this.totalDuration() : this.totalTime( this.totalDuration() * value, false);
- };
-
- p.time = function(value, suppressEvents) {
- if (!arguments.length) {
- return this._time;
- }
- if (this._dirty) {
- this.totalDuration();
- }
- if (value > this._duration) {
- value = this._duration;
- }
- if (this._yoyo && (this._cycle & 1) !== 0) {
- value = (this._duration - value) + (this._cycle * (this._duration + this._repeatDelay));
- } else if (this._repeat !== 0) {
- value += this._cycle * (this._duration + this._repeatDelay);
- }
- return this.totalTime(value, suppressEvents);
- };
-
- p.duration = function(value) {
- if (!arguments.length) {
- return this._duration; //don't set _dirty = false because there could be repeats that haven't been factored into the _totalDuration yet. Otherwise, if you create a repeated TweenMax and then immediately check its duration(), it would cache the value and the totalDuration would not be correct, thus repeats wouldn't take effect.
- }
- return Animation.prototype.duration.call(this, value);
- };
-
- p.totalDuration = function(value) {
- if (!arguments.length) {
- if (this._dirty) {
- //instead of Infinity, we use 999999999999 so that we can accommodate reverses
- this._totalDuration = (this._repeat === -1) ? 999999999999 : this._duration * (this._repeat + 1) + (this._repeatDelay * this._repeat);
- this._dirty = false;
- }
- return this._totalDuration;
- }
- return (this._repeat === -1) ? this : this.duration( (value - (this._repeat * this._repeatDelay)) / (this._repeat + 1) );
- };
-
- p.repeat = function(value) {
- if (!arguments.length) {
- return this._repeat;
- }
- this._repeat = value;
- return this._uncache(true);
- };
-
- p.repeatDelay = function(value) {
- if (!arguments.length) {
- return this._repeatDelay;
- }
- this._repeatDelay = value;
- return this._uncache(true);
- };
-
- p.yoyo = function(value) {
- if (!arguments.length) {
- return this._yoyo;
- }
- this._yoyo = value;
- return this;
- };
-
-
- return TweenMax;
-
- }, true);
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * TimelineLite
- * ----------------------------------------------------------------
- */
- window._gsDefine("TimelineLite", ["core.Animation","core.SimpleTimeline","TweenLite"], function(Animation, SimpleTimeline, TweenLite) {
-
- var TimelineLite = function(vars) {
- SimpleTimeline.call(this, vars);
- this._labels = {};
- this.autoRemoveChildren = (this.vars.autoRemoveChildren === true);
- this.smoothChildTiming = (this.vars.smoothChildTiming === true);
- this._sortChildren = true;
- this._onUpdate = this.vars.onUpdate;
- var v = this.vars,
- val, p;
- for (p in v) {
- val = v[p];
- if (_isArray(val)) if (val.join("").indexOf("{self}") !== -1) {
- v[p] = this._swapSelfInParams(val);
- }
- }
- if (_isArray(v.tweens)) {
- this.add(v.tweens, 0, v.align, v.stagger);
- }
- },
- _tinyNum = 0.0000000001,
- _isSelector = TweenLite._internals.isSelector,
- _isArray = TweenLite._internals.isArray,
- _blankArray = [],
- _globals = window._gsDefine.globals,
- _copy = function(vars) {
- var copy = {}, p;
- for (p in vars) {
- copy[p] = vars[p];
- }
- return copy;
- },
- _pauseCallback = function(tween, callback, params, scope) {
- tween._timeline.pause(tween._startTime);
- if (callback) {
- callback.apply(scope || tween._timeline, params || _blankArray);
- }
- },
- _slice = _blankArray.slice,
- p = TimelineLite.prototype = new SimpleTimeline();
-
- TimelineLite.version = "1.12.1";
- p.constructor = TimelineLite;
- p.kill()._gc = false;
-
- p.to = function(target, duration, vars, position) {
- var Engine = (vars.repeat && _globals.TweenMax) || TweenLite;
- return duration ? this.add( new Engine(target, duration, vars), position) : this.set(target, vars, position);
- };
-
- p.from = function(target, duration, vars, position) {
- return this.add( ((vars.repeat && _globals.TweenMax) || TweenLite).from(target, duration, vars), position);
- };
-
- p.fromTo = function(target, duration, fromVars, toVars, position) {
- var Engine = (toVars.repeat && _globals.TweenMax) || TweenLite;
- return duration ? this.add( Engine.fromTo(target, duration, fromVars, toVars), position) : this.set(target, toVars, position);
- };
-
- p.staggerTo = function(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
- var tl = new TimelineLite({onComplete:onCompleteAll, onCompleteParams:onCompleteAllParams, onCompleteScope:onCompleteAllScope, smoothChildTiming:this.smoothChildTiming}),
- i;
- if (typeof(targets) === "string") {
- targets = TweenLite.selector(targets) || targets;
- }
- if (_isSelector(targets)) { //senses if the targets object is a selector. If it is, we should translate it into an array.
- targets = _slice.call(targets, 0);
- }
- stagger = stagger || 0;
- for (i = 0; i < targets.length; i++) {
- if (vars.startAt) {
- vars.startAt = _copy(vars.startAt);
- }
- tl.to(targets[i], duration, _copy(vars), i * stagger);
- }
- return this.add(tl, position);
- };
-
- p.staggerFrom = function(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
- vars.immediateRender = (vars.immediateRender != false);
- vars.runBackwards = true;
- return this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope);
- };
-
- p.staggerFromTo = function(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
- toVars.startAt = fromVars;
- toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false);
- return this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope);
- };
-
- p.call = function(callback, params, scope, position) {
- return this.add( TweenLite.delayedCall(0, callback, params, scope), position);
- };
-
- p.set = function(target, vars, position) {
- position = this._parseTimeOrLabel(position, 0, true);
- if (vars.immediateRender == null) {
- vars.immediateRender = (position === this._time && !this._paused);
- }
- return this.add( new TweenLite(target, 0, vars), position);
- };
-
- TimelineLite.exportRoot = function(vars, ignoreDelayedCalls) {
- vars = vars || {};
- if (vars.smoothChildTiming == null) {
- vars.smoothChildTiming = true;
- }
- var tl = new TimelineLite(vars),
- root = tl._timeline,
- tween, next;
- if (ignoreDelayedCalls == null) {
- ignoreDelayedCalls = true;
- }
- root._remove(tl, true);
- tl._startTime = 0;
- tl._rawPrevTime = tl._time = tl._totalTime = root._time;
- tween = root._first;
- while (tween) {
- next = tween._next;
- if (!ignoreDelayedCalls || !(tween instanceof TweenLite && tween.target === tween.vars.onComplete)) {
- tl.add(tween, tween._startTime - tween._delay);
- }
- tween = next;
- }
- root.add(tl, 0);
- return tl;
- };
-
- p.add = function(value, position, align, stagger) {
- var curTime, l, i, child, tl, beforeRawTime;
- if (typeof(position) !== "number") {
- position = this._parseTimeOrLabel(position, 0, true, value);
- }
- if (!(value instanceof Animation)) {
- if ((value instanceof Array) || (value && value.push && _isArray(value))) {
- align = align || "normal";
- stagger = stagger || 0;
- curTime = position;
- l = value.length;
- for (i = 0; i < l; i++) {
- if (_isArray(child = value[i])) {
- child = new TimelineLite({tweens:child});
- }
- this.add(child, curTime);
- if (typeof(child) !== "string" && typeof(child) !== "function") {
- if (align === "sequence") {
- curTime = child._startTime + (child.totalDuration() / child._timeScale);
- } else if (align === "start") {
- child._startTime -= child.delay();
- }
- }
- curTime += stagger;
- }
- return this._uncache(true);
- } else if (typeof(value) === "string") {
- return this.addLabel(value, position);
- } else if (typeof(value) === "function") {
- value = TweenLite.delayedCall(0, value);
- } else {
- throw("Cannot add " + value + " into the timeline; it is not a tween, timeline, function, or string.");
- }
- }
-
- SimpleTimeline.prototype.add.call(this, value, position);
-
- //if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.
- if (this._gc || this._time === this._duration) if (!this._paused) if (this._duration < this.duration()) {
- //in case any of the ancestors had completed but should now be enabled...
- tl = this;
- beforeRawTime = (tl.rawTime() > value._startTime); //if the tween is placed on the timeline so that it starts BEFORE the current rawTime, we should align the playhead (move the timeline). This is because sometimes users will create a timeline, let it finish, and much later append a tween and expect it to run instead of jumping to its end state. While technically one could argue that it should jump to its end state, that's not what users intuitively expect.
- while (tl._timeline) {
- if (beforeRawTime && tl._timeline.smoothChildTiming) {
- tl.totalTime(tl._totalTime, true); //moves the timeline (shifts its startTime) if necessary, and also enables it.
- } else if (tl._gc) {
- tl._enabled(true, false);
- }
- tl = tl._timeline;
- }
- }
-
- return this;
- };
-
- p.remove = function(value) {
- if (value instanceof Animation) {
- return this._remove(value, false);
- } else if (value instanceof Array || (value && value.push && _isArray(value))) {
- var i = value.length;
- while (--i > -1) {
- this.remove(value[i]);
- }
- return this;
- } else if (typeof(value) === "string") {
- return this.removeLabel(value);
- }
- return this.kill(null, value);
- };
-
- p._remove = function(tween, skipDisable) {
- SimpleTimeline.prototype._remove.call(this, tween, skipDisable);
- var last = this._last;
- if (!last) {
- this._time = this._totalTime = this._duration = this._totalDuration = 0;
- } else if (this._time > last._startTime + last._totalDuration / last._timeScale) {
- this._time = this.duration();
- this._totalTime = this._totalDuration;
- }
- return this;
- };
-
- p.append = function(value, offsetOrLabel) {
- return this.add(value, this._parseTimeOrLabel(null, offsetOrLabel, true, value));
- };
-
- p.insert = p.insertMultiple = function(value, position, align, stagger) {
- return this.add(value, position || 0, align, stagger);
- };
-
- p.appendMultiple = function(tweens, offsetOrLabel, align, stagger) {
- return this.add(tweens, this._parseTimeOrLabel(null, offsetOrLabel, true, tweens), align, stagger);
- };
-
- p.addLabel = function(label, position) {
- this._labels[label] = this._parseTimeOrLabel(position);
- return this;
- };
-
- p.addPause = function(position, callback, params, scope) {
- return this.call(_pauseCallback, ["{self}", callback, params, scope], this, position);
- };
-
- p.removeLabel = function(label) {
- delete this._labels[label];
- return this;
- };
-
- p.getLabelTime = function(label) {
- return (this._labels[label] != null) ? this._labels[label] : -1;
- };
-
- p._parseTimeOrLabel = function(timeOrLabel, offsetOrLabel, appendIfAbsent, ignore) {
- var i;
- //if we're about to add a tween/timeline (or an array of them) that's already a child of this timeline, we should remove it first so that it doesn't contaminate the duration().
- if (ignore instanceof Animation && ignore.timeline === this) {
- this.remove(ignore);
- } else if (ignore && ((ignore instanceof Array) || (ignore.push && _isArray(ignore)))) {
- i = ignore.length;
- while (--i > -1) {
- if (ignore[i] instanceof Animation && ignore[i].timeline === this) {
- this.remove(ignore[i]);
- }
- }
- }
- if (typeof(offsetOrLabel) === "string") {
- return this._parseTimeOrLabel(offsetOrLabel, (appendIfAbsent && typeof(timeOrLabel) === "number" && this._labels[offsetOrLabel] == null) ? timeOrLabel - this.duration() : 0, appendIfAbsent);
- }
- offsetOrLabel = offsetOrLabel || 0;
- if (typeof(timeOrLabel) === "string" && (isNaN(timeOrLabel) || this._labels[timeOrLabel] != null)) { //if the string is a number like "1", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).
- i = timeOrLabel.indexOf("=");
- if (i === -1) {
- if (this._labels[timeOrLabel] == null) {
- return appendIfAbsent ? (this._labels[timeOrLabel] = this.duration() + offsetOrLabel) : offsetOrLabel;
- }
- return this._labels[timeOrLabel] + offsetOrLabel;
- }
- offsetOrLabel = parseInt(timeOrLabel.charAt(i-1) + "1", 10) * Number(timeOrLabel.substr(i+1));
- timeOrLabel = (i > 1) ? this._parseTimeOrLabel(timeOrLabel.substr(0, i-1), 0, appendIfAbsent) : this.duration();
- } else if (timeOrLabel == null) {
- timeOrLabel = this.duration();
- }
- return Number(timeOrLabel) + offsetOrLabel;
- };
-
- p.seek = function(position, suppressEvents) {
- return this.totalTime((typeof(position) === "number") ? position : this._parseTimeOrLabel(position), (suppressEvents !== false));
- };
-
- p.stop = function() {
- return this.paused(true);
- };
-
- p.gotoAndPlay = function(position, suppressEvents) {
- return this.play(position, suppressEvents);
- };
-
- p.gotoAndStop = function(position, suppressEvents) {
- return this.pause(position, suppressEvents);
- };
-
- p.render = function(time, suppressEvents, force) {
- if (this._gc) {
- this._enabled(true, false);
- }
- var totalDur = (!this._dirty) ? this._totalDuration : this.totalDuration(),
- prevTime = this._time,
- prevStart = this._startTime,
- prevTimeScale = this._timeScale,
- prevPaused = this._paused,
- tween, isComplete, next, callback, internalForce;
- if (time >= totalDur) {
- this._totalTime = this._time = totalDur;
- if (!this._reversed) if (!this._hasPausedChild()) {
- isComplete = true;
- callback = "onComplete";
- if (this._duration === 0) if (time === 0 || this._rawPrevTime < 0 || this._rawPrevTime === _tinyNum) if (this._rawPrevTime !== time && this._first) {
- internalForce = true;
- if (this._rawPrevTime > _tinyNum) {
- callback = "onReverseComplete";
- }
- }
- }
- this._rawPrevTime = (this._duration || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.
- time = totalDur + 0.0001; //to avoid occasional floating point rounding errors - sometimes child tweens/timelines were not being fully completed (their progress might be 0.999999999999998 instead of 1 because when _time - tween._startTime is performed, floating point errors would return a value that was SLIGHTLY off). Try (999999999999.7 - 999999999999) * 1 = 0.699951171875 instead of 0.7.
-
- } else if (time < 0.0000001) { //to work around occasional floating point math artifacts, round super small values to 0.
- this._totalTime = this._time = 0;
- if (prevTime !== 0 || (this._duration === 0 && this._rawPrevTime !== _tinyNum && (this._rawPrevTime > 0 || (time < 0 && this._rawPrevTime >= 0)))) {
- callback = "onReverseComplete";
- isComplete = this._reversed;
- }
- if (time < 0) {
- this._active = false;
- if (this._duration === 0) if (this._rawPrevTime >= 0 && this._first) { //zero-duration timelines are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
- internalForce = true;
- }
- this._rawPrevTime = time;
- } else {
- this._rawPrevTime = (this._duration || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.
-
- time = 0; //to avoid occasional floating point rounding errors (could cause problems especially with zero-duration tweens at the very beginning of the timeline)
- if (!this._initted) {
- internalForce = true;
- }
- }
-
- } else {
- this._totalTime = this._time = this._rawPrevTime = time;
- }
- if ((this._time === prevTime || !this._first) && !force && !internalForce) {
- return;
- } else if (!this._initted) {
- this._initted = true;
- }
-
- if (!this._active) if (!this._paused && this._time !== prevTime && time > 0) {
- this._active = true; //so that if the user renders the timeline (as opposed to the parent timeline rendering it), it is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the timeline already finished but the user manually re-renders it as halfway done, for example.
- }
-
- if (prevTime === 0) if (this.vars.onStart) if (this._time !== 0) if (!suppressEvents) {
- this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || _blankArray);
- }
-
- if (this._time >= prevTime) {
- tween = this._first;
- while (tween) {
- next = tween._next; //record it here because the value could change after rendering...
- if (this._paused && !prevPaused) { //in case a tween pauses the timeline when rendering
- break;
- } else if (tween._active || (tween._startTime <= this._time && !tween._paused && !tween._gc)) {
- if (!tween._reversed) {
- tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force);
- } else {
- tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force);
- }
- }
- tween = next;
- }
- } else {
- tween = this._last;
- while (tween) {
- next = tween._prev; //record it here because the value could change after rendering...
- if (this._paused && !prevPaused) { //in case a tween pauses the timeline when rendering
- break;
- } else if (tween._active || (tween._startTime <= prevTime && !tween._paused && !tween._gc)) {
- if (!tween._reversed) {
- tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force);
- } else {
- tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force);
- }
- }
- tween = next;
- }
- }
-
- if (this._onUpdate) if (!suppressEvents) {
- this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);
- }
-
- if (callback) if (!this._gc) if (prevStart === this._startTime || prevTimeScale !== this._timeScale) if (this._time === 0 || totalDur >= this.totalDuration()) { //if one of the tweens that was rendered altered this timeline's startTime (like if an onComplete reversed the timeline), it probably isn't complete. If it is, don't worry, because whatever call altered the startTime would complete if it was necessary at the new time. The only exception is the timeScale property. Also check _gc because there's a chance that kill() could be called in an onUpdate
- if (isComplete) {
- if (this._timeline.autoRemoveChildren) {
- this._enabled(false, false);
- }
- this._active = false;
- }
- if (!suppressEvents && this.vars[callback]) {
- this.vars[callback].apply(this.vars[callback + "Scope"] || this, this.vars[callback + "Params"] || _blankArray);
- }
- }
- };
-
- p._hasPausedChild = function() {
- var tween = this._first;
- while (tween) {
- if (tween._paused || ((tween instanceof TimelineLite) && tween._hasPausedChild())) {
- return true;
- }
- tween = tween._next;
- }
- return false;
- };
-
- p.getChildren = function(nested, tweens, timelines, ignoreBeforeTime) {
- ignoreBeforeTime = ignoreBeforeTime || -9999999999;
- var a = [],
- tween = this._first,
- cnt = 0;
- while (tween) {
- if (tween._startTime < ignoreBeforeTime) {
- //do nothing
- } else if (tween instanceof TweenLite) {
- if (tweens !== false) {
- a[cnt++] = tween;
- }
- } else {
- if (timelines !== false) {
- a[cnt++] = tween;
- }
- if (nested !== false) {
- a = a.concat(tween.getChildren(true, tweens, timelines));
- cnt = a.length;
- }
- }
- tween = tween._next;
- }
- return a;
- };
-
- p.getTweensOf = function(target, nested) {
- var disabled = this._gc,
- a = [],
- cnt = 0,
- tweens, i;
- if (disabled) {
- this._enabled(true, true); //getTweensOf() filters out disabled tweens, and we have to mark them as _gc = true when the timeline completes in order to allow clean garbage collection, so temporarily re-enable the timeline here.
- }
- tweens = TweenLite.getTweensOf(target);
- i = tweens.length;
- while (--i > -1) {
- if (tweens[i].timeline === this || (nested && this._contains(tweens[i]))) {
- a[cnt++] = tweens[i];
- }
- }
- if (disabled) {
- this._enabled(false, true);
- }
- return a;
- };
-
- p._contains = function(tween) {
- var tl = tween.timeline;
- while (tl) {
- if (tl === this) {
- return true;
- }
- tl = tl.timeline;
- }
- return false;
- };
-
- p.shiftChildren = function(amount, adjustLabels, ignoreBeforeTime) {
- ignoreBeforeTime = ignoreBeforeTime || 0;
- var tween = this._first,
- labels = this._labels,
- p;
- while (tween) {
- if (tween._startTime >= ignoreBeforeTime) {
- tween._startTime += amount;
- }
- tween = tween._next;
- }
- if (adjustLabels) {
- for (p in labels) {
- if (labels[p] >= ignoreBeforeTime) {
- labels[p] += amount;
- }
- }
- }
- return this._uncache(true);
- };
-
- p._kill = function(vars, target) {
- if (!vars && !target) {
- return this._enabled(false, false);
- }
- var tweens = (!target) ? this.getChildren(true, true, false) : this.getTweensOf(target),
- i = tweens.length,
- changed = false;
- while (--i > -1) {
- if (tweens[i]._kill(vars, target)) {
- changed = true;
- }
- }
- return changed;
- };
-
- p.clear = function(labels) {
- var tweens = this.getChildren(false, true, true),
- i = tweens.length;
- this._time = this._totalTime = 0;
- while (--i > -1) {
- tweens[i]._enabled(false, false);
- }
- if (labels !== false) {
- this._labels = {};
- }
- return this._uncache(true);
- };
-
- p.invalidate = function() {
- var tween = this._first;
- while (tween) {
- tween.invalidate();
- tween = tween._next;
- }
- return this;
- };
-
- p._enabled = function(enabled, ignoreTimeline) {
- if (enabled === this._gc) {
- var tween = this._first;
- while (tween) {
- tween._enabled(enabled, true);
- tween = tween._next;
- }
- }
- return SimpleTimeline.prototype._enabled.call(this, enabled, ignoreTimeline);
- };
-
- p.duration = function(value) {
- if (!arguments.length) {
- if (this._dirty) {
- this.totalDuration(); //just triggers recalculation
- }
- return this._duration;
- }
- if (this.duration() !== 0 && value !== 0) {
- this.timeScale(this._duration / value);
- }
- return this;
- };
-
- p.totalDuration = function(value) {
- if (!arguments.length) {
- if (this._dirty) {
- var max = 0,
- tween = this._last,
- prevStart = 999999999999,
- prev, end;
- while (tween) {
- prev = tween._prev; //record it here in case the tween changes position in the sequence...
- if (tween._dirty) {
- tween.totalDuration(); //could change the tween._startTime, so make sure the tween's cache is clean before analyzing it.
- }
- if (tween._startTime > prevStart && this._sortChildren && !tween._paused) { //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence
- this.add(tween, tween._startTime - tween._delay);
- } else {
- prevStart = tween._startTime;
- }
- if (tween._startTime < 0 && !tween._paused) { //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.
- max -= tween._startTime;
- if (this._timeline.smoothChildTiming) {
- this._startTime += tween._startTime / this._timeScale;
- }
- this.shiftChildren(-tween._startTime, false, -9999999999);
- prevStart = 0;
- }
- end = tween._startTime + (tween._totalDuration / tween._timeScale);
- if (end > max) {
- max = end;
- }
- tween = prev;
- }
- this._duration = this._totalDuration = max;
- this._dirty = false;
- }
- return this._totalDuration;
- }
- if (this.totalDuration() !== 0) if (value !== 0) {
- this.timeScale(this._totalDuration / value);
- }
- return this;
- };
-
- p.usesFrames = function() {
- var tl = this._timeline;
- while (tl._timeline) {
- tl = tl._timeline;
- }
- return (tl === Animation._rootFramesTimeline);
- };
-
- p.rawTime = function() {
- return this._paused ? this._totalTime : (this._timeline.rawTime() - this._startTime) * this._timeScale;
- };
-
- return TimelineLite;
-
- }, true);
-
-
-
-
-
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * TimelineMax
- * ----------------------------------------------------------------
- */
- window._gsDefine("TimelineMax", ["TimelineLite","TweenLite","easing.Ease"], function(TimelineLite, TweenLite, Ease) {
-
- var TimelineMax = function(vars) {
- TimelineLite.call(this, vars);
- this._repeat = this.vars.repeat || 0;
- this._repeatDelay = this.vars.repeatDelay || 0;
- this._cycle = 0;
- this._yoyo = (this.vars.yoyo === true);
- this._dirty = true;
- },
- _tinyNum = 0.0000000001,
- _blankArray = [],
- _easeNone = new Ease(null, null, 1, 0),
- p = TimelineMax.prototype = new TimelineLite();
-
- p.constructor = TimelineMax;
- p.kill()._gc = false;
- TimelineMax.version = "1.12.1";
-
- p.invalidate = function() {
- this._yoyo = (this.vars.yoyo === true);
- this._repeat = this.vars.repeat || 0;
- this._repeatDelay = this.vars.repeatDelay || 0;
- this._uncache(true);
- return TimelineLite.prototype.invalidate.call(this);
- };
-
- p.addCallback = function(callback, position, params, scope) {
- return this.add( TweenLite.delayedCall(0, callback, params, scope), position);
- };
-
- p.removeCallback = function(callback, position) {
- if (callback) {
- if (position == null) {
- this._kill(null, callback);
- } else {
- var a = this.getTweensOf(callback, false),
- i = a.length,
- time = this._parseTimeOrLabel(position);
- while (--i > -1) {
- if (a[i]._startTime === time) {
- a[i]._enabled(false, false);
- }
- }
- }
- }
- return this;
- };
-
- p.tweenTo = function(position, vars) {
- vars = vars || {};
- var copy = {ease:_easeNone, overwrite:(vars.delay ? 2 : 1), useFrames:this.usesFrames(), immediateRender:false},//note: set overwrite to 1 (true/all) by default unless there's a delay so that we avoid a racing situation that could happen if, for example, an onmousemove creates the same tweenTo() over and over again.
- duration, p, t;
- for (p in vars) {
- copy[p] = vars[p];
- }
- copy.time = this._parseTimeOrLabel(position);
- duration = (Math.abs(Number(copy.time) - this._time) / this._timeScale) || 0.001;
- t = new TweenLite(this, duration, copy);
- copy.onStart = function() {
- t.target.paused(true);
- if (t.vars.time !== t.target.time() && duration === t.duration()) { //don't make the duration zero - if it's supposed to be zero, don't worry because it's already initting the tween and will complete immediately, effectively making the duration zero anyway. If we make duration zero, the tween won't run at all.
- t.duration( Math.abs( t.vars.time - t.target.time()) / t.target._timeScale );
- }
- if (vars.onStart) { //in case the user had an onStart in the vars - we don't want to overwrite it.
- vars.onStart.apply(vars.onStartScope || t, vars.onStartParams || _blankArray);
- }
- };
- return t;
- };
-
- p.tweenFromTo = function(fromPosition, toPosition, vars) {
- vars = vars || {};
- fromPosition = this._parseTimeOrLabel(fromPosition);
- vars.startAt = {onComplete:this.seek, onCompleteParams:[fromPosition], onCompleteScope:this};
- vars.immediateRender = (vars.immediateRender !== false);
- var t = this.tweenTo(toPosition, vars);
- return t.duration((Math.abs( t.vars.time - fromPosition) / this._timeScale) || 0.001);
- };
-
- p.render = function(time, suppressEvents, force) {
- if (this._gc) {
- this._enabled(true, false);
- }
- var totalDur = (!this._dirty) ? this._totalDuration : this.totalDuration(),
- dur = this._duration,
- prevTime = this._time,
- prevTotalTime = this._totalTime,
- prevStart = this._startTime,
- prevTimeScale = this._timeScale,
- prevRawPrevTime = this._rawPrevTime,
- prevPaused = this._paused,
- prevCycle = this._cycle,
- tween, isComplete, next, callback, internalForce, cycleDuration;
- if (time >= totalDur) {
- if (!this._locked) {
- this._totalTime = totalDur;
- this._cycle = this._repeat;
- }
- if (!this._reversed) if (!this._hasPausedChild()) {
- isComplete = true;
- callback = "onComplete";
- if (this._duration === 0) if (time === 0 || prevRawPrevTime < 0 || prevRawPrevTime === _tinyNum) if (prevRawPrevTime !== time && this._first) {
- internalForce = true;
- if (prevRawPrevTime > _tinyNum) {
- callback = "onReverseComplete";
- }
- }
- }
- this._rawPrevTime = (this._duration || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.
- if (this._yoyo && (this._cycle & 1) !== 0) {
- this._time = time = 0;
- } else {
- this._time = dur;
- time = dur + 0.0001; //to avoid occasional floating point rounding errors - sometimes child tweens/timelines were not being fully completed (their progress might be 0.999999999999998 instead of 1 because when _time - tween._startTime is performed, floating point errors would return a value that was SLIGHTLY off). Try (999999999999.7 - 999999999999) * 1 = 0.699951171875 instead of 0.7. We cannot do less then 0.0001 because the same issue can occur when the duration is extremely large like 999999999999 in which case adding 0.00000001, for example, causes it to act like nothing was added.
- }
-
- } else if (time < 0.0000001) { //to work around occasional floating point math artifacts, round super small values to 0.
- if (!this._locked) {
- this._totalTime = this._cycle = 0;
- }
- this._time = 0;
- if (prevTime !== 0 || (dur === 0 && prevRawPrevTime !== _tinyNum && (prevRawPrevTime > 0 || (time < 0 && prevRawPrevTime >= 0)) && !this._locked)) { //edge case for checking time < 0 && prevRawPrevTime >= 0: a zero-duration fromTo() tween inside a zero-duration timeline (yeah, very rare)
- callback = "onReverseComplete";
- isComplete = this._reversed;
- }
- if (time < 0) {
- this._active = false;
- if (dur === 0) if (prevRawPrevTime >= 0 && this._first) { //zero-duration timelines are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
- internalForce = true;
- }
- this._rawPrevTime = time;
- } else {
- this._rawPrevTime = (dur || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.
- time = 0; //to avoid occasional floating point rounding errors (could cause problems especially with zero-duration tweens at the very beginning of the timeline)
- if (!this._initted) {
- internalForce = true;
- }
- }
-
- } else {
- if (dur === 0 && prevRawPrevTime < 0) { //without this, zero-duration repeating timelines (like with a simple callback nested at the very beginning and a repeatDelay) wouldn't render the first time through.
- internalForce = true;
- }
- this._time = this._rawPrevTime = time;
- if (!this._locked) {
- this._totalTime = time;
- if (this._repeat !== 0) {
- cycleDuration = dur + this._repeatDelay;
- this._cycle = (this._totalTime / cycleDuration) >> 0; //originally _totalTime % cycleDuration but floating point errors caused problems, so I normalized it. (4 % 0.8 should be 0 but it gets reported as 0.79999999!)
- if (this._cycle !== 0) if (this._cycle === this._totalTime / cycleDuration) {
- this._cycle--; //otherwise when rendered exactly at the end time, it will act as though it is repeating (at the beginning)
- }
- this._time = this._totalTime - (this._cycle * cycleDuration);
- if (this._yoyo) if ((this._cycle & 1) !== 0) {
- this._time = dur - this._time;
- }
- if (this._time > dur) {
- this._time = dur;
- time = dur + 0.0001; //to avoid occasional floating point rounding error
- } else if (this._time < 0) {
- this._time = time = 0;
- } else {
- time = this._time;
- }
- }
- }
- }
-
- if (this._cycle !== prevCycle) if (!this._locked) {
- /*
- make sure children at the end/beginning of the timeline are rendered properly. If, for example,
- a 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which
- would get transated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there
- could be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So
- we need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must
- ensure that zero-duration tweens at the very beginning or end of the TimelineMax work.
- */
- var backwards = (this._yoyo && (prevCycle & 1) !== 0),
- wrap = (backwards === (this._yoyo && (this._cycle & 1) !== 0)),
- recTotalTime = this._totalTime,
- recCycle = this._cycle,
- recRawPrevTime = this._rawPrevTime,
- recTime = this._time;
-
- this._totalTime = prevCycle * dur;
- if (this._cycle < prevCycle) {
- backwards = !backwards;
- } else {
- this._totalTime += dur;
- }
- this._time = prevTime; //temporarily revert _time so that render() renders the children in the correct order. Without this, tweens won't rewind correctly. We could arhictect things in a "cleaner" way by splitting out the rendering queue into a separate method but for performance reasons, we kept it all inside this method.
-
- this._rawPrevTime = (dur === 0) ? prevRawPrevTime - 0.0001 : prevRawPrevTime;
- this._cycle = prevCycle;
- this._locked = true; //prevents changes to totalTime and skips repeat/yoyo behavior when we recursively call render()
- prevTime = (backwards) ? 0 : dur;
- this.render(prevTime, suppressEvents, (dur === 0));
- if (!suppressEvents) if (!this._gc) {
- if (this.vars.onRepeat) {
- this.vars.onRepeat.apply(this.vars.onRepeatScope || this, this.vars.onRepeatParams || _blankArray);
- }
- }
- if (wrap) {
- prevTime = (backwards) ? dur + 0.0001 : -0.0001;
- this.render(prevTime, true, false);
- }
- this._locked = false;
- if (this._paused && !prevPaused) { //if the render() triggered callback that paused this timeline, we should abort (very rare, but possible)
- return;
- }
- this._time = recTime;
- this._totalTime = recTotalTime;
- this._cycle = recCycle;
- this._rawPrevTime = recRawPrevTime;
- }
-
- if ((this._time === prevTime || !this._first) && !force && !internalForce) {
- if (prevTotalTime !== this._totalTime) if (this._onUpdate) if (!suppressEvents) { //so that onUpdate fires even during the repeatDelay - as long as the totalTime changed, we should trigger onUpdate.
- this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);
- }
- return;
- } else if (!this._initted) {
- this._initted = true;
- }
-
- if (!this._active) if (!this._paused && this._totalTime !== prevTotalTime && time > 0) {
- this._active = true; //so that if the user renders the timeline (as opposed to the parent timeline rendering it), it is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the timeline already finished but the user manually re-renders it as halfway done, for example.
- }
-
- if (prevTotalTime === 0) if (this.vars.onStart) if (this._totalTime !== 0) if (!suppressEvents) {
- this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || _blankArray);
- }
-
- if (this._time >= prevTime) {
- tween = this._first;
- while (tween) {
- next = tween._next; //record it here because the value could change after rendering...
- if (this._paused && !prevPaused) { //in case a tween pauses the timeline when rendering
- break;
- } else if (tween._active || (tween._startTime <= this._time && !tween._paused && !tween._gc)) {
- if (!tween._reversed) {
- tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force);
- } else {
- tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force);
- }
-
- }
- tween = next;
- }
- } else {
- tween = this._last;
- while (tween) {
- next = tween._prev; //record it here because the value could change after rendering...
- if (this._paused && !prevPaused) { //in case a tween pauses the timeline when rendering
- break;
- } else if (tween._active || (tween._startTime <= prevTime && !tween._paused && !tween._gc)) {
- if (!tween._reversed) {
- tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force);
- } else {
- tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force);
- }
- }
- tween = next;
- }
- }
-
- if (this._onUpdate) if (!suppressEvents) {
- this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);
- }
- if (callback) if (!this._locked) if (!this._gc) if (prevStart === this._startTime || prevTimeScale !== this._timeScale) if (this._time === 0 || totalDur >= this.totalDuration()) { //if one of the tweens that was rendered altered this timeline's startTime (like if an onComplete reversed the timeline), it probably isn't complete. If it is, don't worry, because whatever call altered the startTime would complete if it was necessary at the new time. The only exception is the timeScale property. Also check _gc because there's a chance that kill() could be called in an onUpdate
- if (isComplete) {
- if (this._timeline.autoRemoveChildren) {
- this._enabled(false, false);
- }
- this._active = false;
- }
- if (!suppressEvents && this.vars[callback]) {
- this.vars[callback].apply(this.vars[callback + "Scope"] || this, this.vars[callback + "Params"] || _blankArray);
- }
- }
- };
-
- p.getActive = function(nested, tweens, timelines) {
- if (nested == null) {
- nested = true;
- }
- if (tweens == null) {
- tweens = true;
- }
- if (timelines == null) {
- timelines = false;
- }
- var a = [],
- all = this.getChildren(nested, tweens, timelines),
- cnt = 0,
- l = all.length,
- i, tween;
- for (i = 0; i < l; i++) {
- tween = all[i];
- if (tween.isActive()) {
- a[cnt++] = tween;
- }
- }
- return a;
- };
-
-
- p.getLabelAfter = function(time) {
- if (!time) if (time !== 0) { //faster than isNan()
- time = this._time;
- }
- var labels = this.getLabelsArray(),
- l = labels.length,
- i;
- for (i = 0; i < l; i++) {
- if (labels[i].time > time) {
- return labels[i].name;
- }
- }
- return null;
- };
-
- p.getLabelBefore = function(time) {
- if (time == null) {
- time = this._time;
- }
- var labels = this.getLabelsArray(),
- i = labels.length;
- while (--i > -1) {
- if (labels[i].time < time) {
- return labels[i].name;
- }
- }
- return null;
- };
-
- p.getLabelsArray = function() {
- var a = [],
- cnt = 0,
- p;
- for (p in this._labels) {
- a[cnt++] = {time:this._labels[p], name:p};
- }
- a.sort(function(a,b) {
- return a.time - b.time;
- });
- return a;
- };
-
-
-//---- GETTERS / SETTERS -------------------------------------------------------------------------------------------------------
-
- p.progress = function(value) {
- return (!arguments.length) ? this._time / this.duration() : this.totalTime( this.duration() * ((this._yoyo && (this._cycle & 1) !== 0) ? 1 - value : value) + (this._cycle * (this._duration + this._repeatDelay)), false);
- };
-
- p.totalProgress = function(value) {
- return (!arguments.length) ? this._totalTime / this.totalDuration() : this.totalTime( this.totalDuration() * value, false);
- };
-
- p.totalDuration = function(value) {
- if (!arguments.length) {
- if (this._dirty) {
- TimelineLite.prototype.totalDuration.call(this); //just forces refresh
- //Instead of Infinity, we use 999999999999 so that we can accommodate reverses.
- this._totalDuration = (this._repeat === -1) ? 999999999999 : this._duration * (this._repeat + 1) + (this._repeatDelay * this._repeat);
- }
- return this._totalDuration;
- }
- return (this._repeat === -1) ? this : this.duration( (value - (this._repeat * this._repeatDelay)) / (this._repeat + 1) );
- };
-
- p.time = function(value, suppressEvents) {
- if (!arguments.length) {
- return this._time;
- }
- if (this._dirty) {
- this.totalDuration();
- }
- if (value > this._duration) {
- value = this._duration;
- }
- if (this._yoyo && (this._cycle & 1) !== 0) {
- value = (this._duration - value) + (this._cycle * (this._duration + this._repeatDelay));
- } else if (this._repeat !== 0) {
- value += this._cycle * (this._duration + this._repeatDelay);
- }
- return this.totalTime(value, suppressEvents);
- };
-
- p.repeat = function(value) {
- if (!arguments.length) {
- return this._repeat;
- }
- this._repeat = value;
- return this._uncache(true);
- };
-
- p.repeatDelay = function(value) {
- if (!arguments.length) {
- return this._repeatDelay;
- }
- this._repeatDelay = value;
- return this._uncache(true);
- };
-
- p.yoyo = function(value) {
- if (!arguments.length) {
- return this._yoyo;
- }
- this._yoyo = value;
- return this;
- };
-
- p.currentLabel = function(value) {
- if (!arguments.length) {
- return this.getLabelBefore(this._time + 0.00000001);
- }
- return this.seek(value, true);
- };
-
- return TimelineMax;
-
- }, true);
-
-
-
-
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * BezierPlugin
- * ----------------------------------------------------------------
- */
- (function() {
-
- var _RAD2DEG = 180 / Math.PI,
- _r1 = [],
- _r2 = [],
- _r3 = [],
- _corProps = {},
- Segment = function(a, b, c, d) {
- this.a = a;
- this.b = b;
- this.c = c;
- this.d = d;
- this.da = d - a;
- this.ca = c - a;
- this.ba = b - a;
- },
- _correlate = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",
- cubicToQuadratic = function(a, b, c, d) {
- var q1 = {a:a},
- q2 = {},
- q3 = {},
- q4 = {c:d},
- mab = (a + b) / 2,
- mbc = (b + c) / 2,
- mcd = (c + d) / 2,
- mabc = (mab + mbc) / 2,
- mbcd = (mbc + mcd) / 2,
- m8 = (mbcd - mabc) / 8;
- q1.b = mab + (a - mab) / 4;
- q2.b = mabc + m8;
- q1.c = q2.a = (q1.b + q2.b) / 2;
- q2.c = q3.a = (mabc + mbcd) / 2;
- q3.b = mbcd - m8;
- q4.b = mcd + (d - mcd) / 4;
- q3.c = q4.a = (q3.b + q4.b) / 2;
- return [q1, q2, q3, q4];
- },
- _calculateControlPoints = function(a, curviness, quad, basic, correlate) {
- var l = a.length - 1,
- ii = 0,
- cp1 = a[0].a,
- i, p1, p2, p3, seg, m1, m2, mm, cp2, qb, r1, r2, tl;
- for (i = 0; i < l; i++) {
- seg = a[ii];
- p1 = seg.a;
- p2 = seg.d;
- p3 = a[ii+1].d;
-
- if (correlate) {
- r1 = _r1[i];
- r2 = _r2[i];
- tl = ((r2 + r1) * curviness * 0.25) / (basic ? 0.5 : _r3[i] || 0.5);
- m1 = p2 - (p2 - p1) * (basic ? curviness * 0.5 : (r1 !== 0 ? tl / r1 : 0));
- m2 = p2 + (p3 - p2) * (basic ? curviness * 0.5 : (r2 !== 0 ? tl / r2 : 0));
- mm = p2 - (m1 + (((m2 - m1) * ((r1 * 3 / (r1 + r2)) + 0.5) / 4) || 0));
- } else {
- m1 = p2 - (p2 - p1) * curviness * 0.5;
- m2 = p2 + (p3 - p2) * curviness * 0.5;
- mm = p2 - (m1 + m2) / 2;
- }
- m1 += mm;
- m2 += mm;
-
- seg.c = cp2 = m1;
- if (i !== 0) {
- seg.b = cp1;
- } else {
- seg.b = cp1 = seg.a + (seg.c - seg.a) * 0.6; //instead of placing b on a exactly, we move it inline with c so that if the user specifies an ease like Back.easeIn or Elastic.easeIn which goes BEYOND the beginning, it will do so smoothly.
- }
-
- seg.da = p2 - p1;
- seg.ca = cp2 - p1;
- seg.ba = cp1 - p1;
-
- if (quad) {
- qb = cubicToQuadratic(p1, cp1, cp2, p2);
- a.splice(ii, 1, qb[0], qb[1], qb[2], qb[3]);
- ii += 4;
- } else {
- ii++;
- }
-
- cp1 = m2;
- }
- seg = a[ii];
- seg.b = cp1;
- seg.c = cp1 + (seg.d - cp1) * 0.4; //instead of placing c on d exactly, we move it inline with b so that if the user specifies an ease like Back.easeOut or Elastic.easeOut which goes BEYOND the end, it will do so smoothly.
- seg.da = seg.d - seg.a;
- seg.ca = seg.c - seg.a;
- seg.ba = cp1 - seg.a;
- if (quad) {
- qb = cubicToQuadratic(seg.a, cp1, seg.c, seg.d);
- a.splice(ii, 1, qb[0], qb[1], qb[2], qb[3]);
- }
- },
- _parseAnchors = function(values, p, correlate, prepend) {
- var a = [],
- l, i, p1, p2, p3, tmp;
- if (prepend) {
- values = [prepend].concat(values);
- i = values.length;
- while (--i > -1) {
- if (typeof( (tmp = values[i][p]) ) === "string") if (tmp.charAt(1) === "=") {
- values[i][p] = prepend[p] + Number(tmp.charAt(0) + tmp.substr(2)); //accommodate relative values. Do it inline instead of breaking it out into a function for speed reasons
- }
- }
- }
- l = values.length - 2;
- if (l < 0) {
- a[0] = new Segment(values[0][p], 0, 0, values[(l < -1) ? 0 : 1][p]);
- return a;
- }
- for (i = 0; i < l; i++) {
- p1 = values[i][p];
- p2 = values[i+1][p];
- a[i] = new Segment(p1, 0, 0, p2);
- if (correlate) {
- p3 = values[i+2][p];
- _r1[i] = (_r1[i] || 0) + (p2 - p1) * (p2 - p1);
- _r2[i] = (_r2[i] || 0) + (p3 - p2) * (p3 - p2);
- }
- }
- a[i] = new Segment(values[i][p], 0, 0, values[i+1][p]);
- return a;
- },
- bezierThrough = function(values, curviness, quadratic, basic, correlate, prepend) {
- var obj = {},
- props = [],
- first = prepend || values[0],
- i, p, a, j, r, l, seamless, last;
- correlate = (typeof(correlate) === "string") ? ","+correlate+"," : _correlate;
- if (curviness == null) {
- curviness = 1;
- }
- for (p in values[0]) {
- props.push(p);
- }
- //check to see if the last and first values are identical (well, within 0.05). If so, make seamless by appending the second element to the very end of the values array and the 2nd-to-last element to the very beginning (we'll remove those segments later)
- if (values.length > 1) {
- last = values[values.length - 1];
- seamless = true;
- i = props.length;
- while (--i > -1) {
- p = props[i];
- if (Math.abs(first[p] - last[p]) > 0.05) { //build in a tolerance of +/-0.05 to accommodate rounding errors. For example, if you set an object's position to 4.945, Flash will make it 4.9
- seamless = false;
- break;
- }
- }
- if (seamless) {
- values = values.concat(); //duplicate the array to avoid contaminating the original which the user may be reusing for other tweens
- if (prepend) {
- values.unshift(prepend);
- }
- values.push(values[1]);
- prepend = values[values.length - 3];
- }
- }
- _r1.length = _r2.length = _r3.length = 0;
- i = props.length;
- while (--i > -1) {
- p = props[i];
- _corProps[p] = (correlate.indexOf(","+p+",") !== -1);
- obj[p] = _parseAnchors(values, p, _corProps[p], prepend);
- }
- i = _r1.length;
- while (--i > -1) {
- _r1[i] = Math.sqrt(_r1[i]);
- _r2[i] = Math.sqrt(_r2[i]);
- }
- if (!basic) {
- i = props.length;
- while (--i > -1) {
- if (_corProps[p]) {
- a = obj[props[i]];
- l = a.length - 1;
- for (j = 0; j < l; j++) {
- r = a[j+1].da / _r2[j] + a[j].da / _r1[j];
- _r3[j] = (_r3[j] || 0) + r * r;
- }
- }
- }
- i = _r3.length;
- while (--i > -1) {
- _r3[i] = Math.sqrt(_r3[i]);
- }
- }
- i = props.length;
- j = quadratic ? 4 : 1;
- while (--i > -1) {
- p = props[i];
- a = obj[p];
- _calculateControlPoints(a, curviness, quadratic, basic, _corProps[p]); //this method requires that _parseAnchors() and _setSegmentRatios() ran first so that _r1, _r2, and _r3 values are populated for all properties
- if (seamless) {
- a.splice(0, j);
- a.splice(a.length - j, j);
- }
- }
- return obj;
- },
- _parseBezierData = function(values, type, prepend) {
- type = type || "soft";
- var obj = {},
- inc = (type === "cubic") ? 3 : 2,
- soft = (type === "soft"),
- props = [],
- a, b, c, d, cur, i, j, l, p, cnt, tmp;
- if (soft && prepend) {
- values = [prepend].concat(values);
- }
- if (values == null || values.length < inc + 1) { throw "invalid Bezier data"; }
- for (p in values[0]) {
- props.push(p);
- }
- i = props.length;
- while (--i > -1) {
- p = props[i];
- obj[p] = cur = [];
- cnt = 0;
- l = values.length;
- for (j = 0; j < l; j++) {
- a = (prepend == null) ? values[j][p] : (typeof( (tmp = values[j][p]) ) === "string" && tmp.charAt(1) === "=") ? prepend[p] + Number(tmp.charAt(0) + tmp.substr(2)) : Number(tmp);
- if (soft) if (j > 1) if (j < l - 1) {
- cur[cnt++] = (a + cur[cnt-2]) / 2;
- }
- cur[cnt++] = a;
- }
- l = cnt - inc + 1;
- cnt = 0;
- for (j = 0; j < l; j += inc) {
- a = cur[j];
- b = cur[j+1];
- c = cur[j+2];
- d = (inc === 2) ? 0 : cur[j+3];
- cur[cnt++] = tmp = (inc === 3) ? new Segment(a, b, c, d) : new Segment(a, (2 * b + a) / 3, (2 * b + c) / 3, c);
- }
- cur.length = cnt;
- }
- return obj;
- },
- _addCubicLengths = function(a, steps, resolution) {
- var inc = 1 / resolution,
- j = a.length,
- d, d1, s, da, ca, ba, p, i, inv, bez, index;
- while (--j > -1) {
- bez = a[j];
- s = bez.a;
- da = bez.d - s;
- ca = bez.c - s;
- ba = bez.b - s;
- d = d1 = 0;
- for (i = 1; i <= resolution; i++) {
- p = inc * i;
- inv = 1 - p;
- d = d1 - (d1 = (p * p * da + 3 * inv * (p * ca + inv * ba)) * p);
- index = j * resolution + i - 1;
- steps[index] = (steps[index] || 0) + d * d;
- }
- }
- },
- _parseLengthData = function(obj, resolution) {
- resolution = resolution >> 0 || 6;
- var a = [],
- lengths = [],
- d = 0,
- total = 0,
- threshold = resolution - 1,
- segments = [],
- curLS = [], //current length segments array
- p, i, l, index;
- for (p in obj) {
- _addCubicLengths(obj[p], a, resolution);
- }
- l = a.length;
- for (i = 0; i < l; i++) {
- d += Math.sqrt(a[i]);
- index = i % resolution;
- curLS[index] = d;
- if (index === threshold) {
- total += d;
- index = (i / resolution) >> 0;
- segments[index] = curLS;
- lengths[index] = total;
- d = 0;
- curLS = [];
- }
- }
- return {length:total, lengths:lengths, segments:segments};
- },
-
-
-
- BezierPlugin = window._gsDefine.plugin({
- propName: "bezier",
- priority: -1,
- version: "1.3.2",
- API: 2,
- global:true,
-
- //gets called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.
- init: function(target, vars, tween) {
- this._target = target;
- if (vars instanceof Array) {
- vars = {values:vars};
- }
- this._func = {};
- this._round = {};
- this._props = [];
- this._timeRes = (vars.timeResolution == null) ? 6 : parseInt(vars.timeResolution, 10);
- var values = vars.values || [],
- first = {},
- second = values[0],
- autoRotate = vars.autoRotate || tween.vars.orientToBezier,
- p, isFunc, i, j, prepend;
-
- this._autoRotate = autoRotate ? (autoRotate instanceof Array) ? autoRotate : [["x","y","rotation",((autoRotate === true) ? 0 : Number(autoRotate) || 0)]] : null;
- for (p in second) {
- this._props.push(p);
- }
-
- i = this._props.length;
- while (--i > -1) {
- p = this._props[i];
-
- this._overwriteProps.push(p);
- isFunc = this._func[p] = (typeof(target[p]) === "function");
- first[p] = (!isFunc) ? parseFloat(target[p]) : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]();
- if (!prepend) if (first[p] !== values[0][p]) {
- prepend = first;
- }
- }
- this._beziers = (vars.type !== "cubic" && vars.type !== "quadratic" && vars.type !== "soft") ? bezierThrough(values, isNaN(vars.curviness) ? 1 : vars.curviness, false, (vars.type === "thruBasic"), vars.correlate, prepend) : _parseBezierData(values, vars.type, first);
- this._segCount = this._beziers[p].length;
-
- if (this._timeRes) {
- var ld = _parseLengthData(this._beziers, this._timeRes);
- this._length = ld.length;
- this._lengths = ld.lengths;
- this._segments = ld.segments;
- this._l1 = this._li = this._s1 = this._si = 0;
- this._l2 = this._lengths[0];
- this._curSeg = this._segments[0];
- this._s2 = this._curSeg[0];
- this._prec = 1 / this._curSeg.length;
- }
-
- if ((autoRotate = this._autoRotate)) {
- this._initialRotations = [];
- if (!(autoRotate[0] instanceof Array)) {
- this._autoRotate = autoRotate = [autoRotate];
- }
- i = autoRotate.length;
- while (--i > -1) {
- for (j = 0; j < 3; j++) {
- p = autoRotate[i][j];
- this._func[p] = (typeof(target[p]) === "function") ? target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ] : false;
- }
- p = autoRotate[i][2];
- this._initialRotations[i] = this._func[p] ? this._func[p].call(this._target) : this._target[p];
- }
- }
- this._startRatio = tween.vars.runBackwards ? 1 : 0; //we determine the starting ratio when the tween inits which is always 0 unless the tween has runBackwards:true (indicating it's a from() tween) in which case it's 1.
- return true;
- },
-
- //called each time the values should be updated, and the ratio gets passed as the only parameter (typically it's a value between 0 and 1, but it can exceed those when using an ease like Elastic.easeOut or Back.easeOut, etc.)
- set: function(v) {
- var segments = this._segCount,
- func = this._func,
- target = this._target,
- notStart = (v !== this._startRatio),
- curIndex, inv, i, p, b, t, val, l, lengths, curSeg;
- if (!this._timeRes) {
- curIndex = (v < 0) ? 0 : (v >= 1) ? segments - 1 : (segments * v) >> 0;
- t = (v - (curIndex * (1 / segments))) * segments;
- } else {
- lengths = this._lengths;
- curSeg = this._curSeg;
- v *= this._length;
- i = this._li;
- //find the appropriate segment (if the currently cached one isn't correct)
- if (v > this._l2 && i < segments - 1) {
- l = segments - 1;
- while (i < l && (this._l2 = lengths[++i]) <= v) { }
- this._l1 = lengths[i-1];
- this._li = i;
- this._curSeg = curSeg = this._segments[i];
- this._s2 = curSeg[(this._s1 = this._si = 0)];
- } else if (v < this._l1 && i > 0) {
- while (i > 0 && (this._l1 = lengths[--i]) >= v) { }
- if (i === 0 && v < this._l1) {
- this._l1 = 0;
- } else {
- i++;
- }
- this._l2 = lengths[i];
- this._li = i;
- this._curSeg = curSeg = this._segments[i];
- this._s1 = curSeg[(this._si = curSeg.length - 1) - 1] || 0;
- this._s2 = curSeg[this._si];
- }
- curIndex = i;
- //now find the appropriate sub-segment (we split it into the number of pieces that was defined by "precision" and measured each one)
- v -= this._l1;
- i = this._si;
- if (v > this._s2 && i < curSeg.length - 1) {
- l = curSeg.length - 1;
- while (i < l && (this._s2 = curSeg[++i]) <= v) { }
- this._s1 = curSeg[i-1];
- this._si = i;
- } else if (v < this._s1 && i > 0) {
- while (i > 0 && (this._s1 = curSeg[--i]) >= v) { }
- if (i === 0 && v < this._s1) {
- this._s1 = 0;
- } else {
- i++;
- }
- this._s2 = curSeg[i];
- this._si = i;
- }
- t = (i + (v - this._s1) / (this._s2 - this._s1)) * this._prec;
- }
- inv = 1 - t;
-
- i = this._props.length;
- while (--i > -1) {
- p = this._props[i];
- b = this._beziers[p][curIndex];
- val = (t * t * b.da + 3 * inv * (t * b.ca + inv * b.ba)) * t + b.a;
- if (this._round[p]) {
- val = Math.round(val);
- }
- if (func[p]) {
- target[p](val);
- } else {
- target[p] = val;
- }
- }
-
- if (this._autoRotate) {
- var ar = this._autoRotate,
- b2, x1, y1, x2, y2, add, conv;
- i = ar.length;
- while (--i > -1) {
- p = ar[i][2];
- add = ar[i][3] || 0;
- conv = (ar[i][4] === true) ? 1 : _RAD2DEG;
- b = this._beziers[ar[i][0]];
- b2 = this._beziers[ar[i][1]];
-
- if (b && b2) { //in case one of the properties got overwritten.
- b = b[curIndex];
- b2 = b2[curIndex];
-
- x1 = b.a + (b.b - b.a) * t;
- x2 = b.b + (b.c - b.b) * t;
- x1 += (x2 - x1) * t;
- x2 += ((b.c + (b.d - b.c) * t) - x2) * t;
-
- y1 = b2.a + (b2.b - b2.a) * t;
- y2 = b2.b + (b2.c - b2.b) * t;
- y1 += (y2 - y1) * t;
- y2 += ((b2.c + (b2.d - b2.c) * t) - y2) * t;
-
- val = notStart ? Math.atan2(y2 - y1, x2 - x1) * conv + add : this._initialRotations[i];
-
- if (func[p]) {
- target[p](val);
- } else {
- target[p] = val;
- }
- }
- }
- }
- }
- }),
- p = BezierPlugin.prototype;
-
-
- BezierPlugin.bezierThrough = bezierThrough;
- BezierPlugin.cubicToQuadratic = cubicToQuadratic;
- BezierPlugin._autoCSS = true; //indicates that this plugin can be inserted into the "css" object using the autoCSS feature of TweenLite
- BezierPlugin.quadraticToCubic = function(a, b, c) {
- return new Segment(a, (2 * b + a) / 3, (2 * b + c) / 3, c);
- };
-
- BezierPlugin._cssRegister = function() {
- var CSSPlugin = window._gsDefine.globals.CSSPlugin;
- if (!CSSPlugin) {
- return;
- }
- var _internals = CSSPlugin._internals,
- _parseToProxy = _internals._parseToProxy,
- _setPluginRatio = _internals._setPluginRatio,
- CSSPropTween = _internals.CSSPropTween;
- _internals._registerComplexSpecialProp("bezier", {parser:function(t, e, prop, cssp, pt, plugin) {
- if (e instanceof Array) {
- e = {values:e};
- }
- plugin = new BezierPlugin();
- var values = e.values,
- l = values.length - 1,
- pluginValues = [],
- v = {},
- i, p, data;
- if (l < 0) {
- return pt;
- }
- for (i = 0; i <= l; i++) {
- data = _parseToProxy(t, values[i], cssp, pt, plugin, (l !== i));
- pluginValues[i] = data.end;
- }
- for (p in e) {
- v[p] = e[p]; //duplicate the vars object because we need to alter some things which would cause problems if the user plans to reuse the same vars object for another tween.
- }
- v.values = pluginValues;
- pt = new CSSPropTween(t, "bezier", 0, 0, data.pt, 2);
- pt.data = data;
- pt.plugin = plugin;
- pt.setRatio = _setPluginRatio;
- if (v.autoRotate === 0) {
- v.autoRotate = true;
- }
- if (v.autoRotate && !(v.autoRotate instanceof Array)) {
- i = (v.autoRotate === true) ? 0 : Number(v.autoRotate);
- v.autoRotate = (data.end.left != null) ? [["left","top","rotation",i,false]] : (data.end.x != null) ? [["x","y","rotation",i,false]] : false;
- }
- if (v.autoRotate) {
- if (!cssp._transform) {
- cssp._enableTransforms(false);
- }
- data.autoRotate = cssp._target._gsTransform;
- }
- plugin._onInitTween(data.proxy, v, cssp._tween);
- return pt;
- }});
- };
-
- p._roundProps = function(lookup, value) {
- var op = this._overwriteProps,
- i = op.length;
- while (--i > -1) {
- if (lookup[op[i]] || lookup.bezier || lookup.bezierThrough) {
- this._round[op[i]] = value;
- }
- }
- };
-
- p._kill = function(lookup) {
- var a = this._props,
- p, i;
- for (p in this._beziers) {
- if (p in lookup) {
- delete this._beziers[p];
- delete this._func[p];
- i = a.length;
- while (--i > -1) {
- if (a[i] === p) {
- a.splice(i, 1);
- }
- }
- }
- }
- return this._super._kill.call(this, lookup);
- };
-
- }());
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * CSSPlugin
- * ----------------------------------------------------------------
- */
- window._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin","TweenLite"], function(TweenPlugin, TweenLite) {
-
- /** @constructor **/
- var CSSPlugin = function() {
- TweenPlugin.call(this, "css");
- this._overwriteProps.length = 0;
- this.setRatio = CSSPlugin.prototype.setRatio; //speed optimization (avoid prototype lookup on this "hot" method)
- },
- _hasPriority, //turns true whenever a CSSPropTween instance is created that has a priority other than 0. This helps us discern whether or not we should spend the time organizing the linked list or not after a CSSPlugin's _onInitTween() method is called.
- _suffixMap, //we set this in _onInitTween() each time as a way to have a persistent variable we can use in other methods like _parse() without having to pass it around as a parameter and we keep _parse() decoupled from a particular CSSPlugin instance
- _cs, //computed style (we store this in a shared variable to conserve memory and make minification tighter
- _overwriteProps, //alias to the currently instantiating CSSPlugin's _overwriteProps array. We use this closure in order to avoid having to pass a reference around from method to method and aid in minification.
- _specialProps = {},
- p = CSSPlugin.prototype = new TweenPlugin("css");
-
- p.constructor = CSSPlugin;
- CSSPlugin.version = "1.12.1";
- CSSPlugin.API = 2;
- CSSPlugin.defaultTransformPerspective = 0;
- CSSPlugin.defaultSkewType = "compensated";
- p = "px"; //we'll reuse the "p" variable to keep file size down
- CSSPlugin.suffixMap = {top:p, right:p, bottom:p, left:p, width:p, height:p, fontSize:p, padding:p, margin:p, perspective:p, lineHeight:""};
-
-
- var _numExp = /(?:\d|\-\d|\.\d|\-\.\d)+/g,
- _relNumExp = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
- _valuesExp = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, //finds all the values that begin with numbers or += or -= and then a number. Includes suffixes. We use this to split complex values apart like "1px 5px 20px rgb(255,102,51)"
- _NaNExp = /[^\d\-\.]/g,
- _suffixExp = /(?:\d|\-|\+|=|#|\.)*/g,
- _opacityExp = /opacity *= *([^)]*)/i,
- _opacityValExp = /opacity:([^;]*)/i,
- _alphaFilterExp = /alpha\(opacity *=.+?\)/i,
- _rgbhslExp = /^(rgb|hsl)/,
- _capsExp = /([A-Z])/g,
- _camelExp = /-([a-z])/gi,
- _urlExp = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, //for pulling out urls from url(...) or url("...") strings (some browsers wrap urls in quotes, some don't when reporting things like backgroundImage)
- _camelFunc = function(s, g) { return g.toUpperCase(); },
- _horizExp = /(?:Left|Right|Width)/i,
- _ieGetMatrixExp = /(M11|M12|M21|M22)=[\d\-\.e]+/gi,
- _ieSetMatrixExp = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,
- _commasOutsideParenExp = /,(?=[^\)]*(?:\(|$))/gi, //finds any commas that are not within parenthesis
- _DEG2RAD = Math.PI / 180,
- _RAD2DEG = 180 / Math.PI,
- _forcePT = {},
- _doc = document,
- _tempDiv = _doc.createElement("div"),
- _tempImg = _doc.createElement("img"),
- _internals = CSSPlugin._internals = {_specialProps:_specialProps}, //provides a hook to a few internal methods that we need to access from inside other plugins
- _agent = navigator.userAgent,
- _autoRound,
- _reqSafariFix, //we won't apply the Safari transform fix until we actually come across a tween that affects a transform property (to maintain best performance).
-
- _isSafari,
- _isFirefox, //Firefox has a bug that causes 3D transformed elements to randomly disappear unless a repaint is forced after each update on each element.
- _isSafariLT6, //Safari (and Android 4 which uses a flavor of Safari) has a bug that prevents changes to "top" and "left" properties from rendering properly if changed on the same frame as a transform UNLESS we set the element's WebkitBackfaceVisibility to hidden (weird, I know). Doing this for Android 3 and earlier seems to actually cause other problems, though (fun!)
- _ieVers,
- _supportsOpacity = (function() { //we set _isSafari, _ieVers, _isFirefox, and _supportsOpacity all in one function here to reduce file size slightly, especially in the minified version.
- var i = _agent.indexOf("Android"),
- d = _doc.createElement("div"), a;
-
- _isSafari = (_agent.indexOf("Safari") !== -1 && _agent.indexOf("Chrome") === -1 && (i === -1 || Number(_agent.substr(i+8, 1)) > 3));
- _isSafariLT6 = (_isSafari && (Number(_agent.substr(_agent.indexOf("Version/")+8, 1)) < 6));
- _isFirefox = (_agent.indexOf("Firefox") !== -1);
-
- if ((/MSIE ([0-9]{1,}[\.0-9]{0,})/).exec(_agent)) {
- _ieVers = parseFloat( RegExp.$1 );
- }
-
- d.innerHTML = "<a style='top:1px;opacity:.55;'>a</a>";
- a = d.getElementsByTagName("a")[0];
- return a ? /^0.55/.test(a.style.opacity) : false;
- }()),
- _getIEOpacity = function(v) {
- return (_opacityExp.test( ((typeof(v) === "string") ? v : (v.currentStyle ? v.currentStyle.filter : v.style.filter) || "") ) ? ( parseFloat( RegExp.$1 ) / 100 ) : 1);
- },
- _log = function(s) {//for logging messages, but in a way that won't throw errors in old versions of IE.
- if (window.console) {
- //console.log(s);
- }
- },
- _prefixCSS = "", //the non-camelCase vendor prefix like "-o-", "-moz-", "-ms-", or "-webkit-"
- _prefix = "", //camelCase vendor prefix like "O", "ms", "Webkit", or "Moz".
-
- // @private feed in a camelCase property name like "transform" and it will check to see if it is valid as-is or if it needs a vendor prefix. It returns the corrected camelCase property name (i.e. "WebkitTransform" or "MozTransform" or "transform" or null if no such property is found, like if the browser is IE8 or before, "transform" won't be found at all)
- _checkPropPrefix = function(p, e) {
- e = e || _tempDiv;
- var s = e.style,
- a, i;
- if (s[p] !== undefined) {
- return p;
- }
- p = p.charAt(0).toUpperCase() + p.substr(1);
- a = ["O","Moz","ms","Ms","Webkit"];
- i = 5;
- while (--i > -1 && s[a[i]+p] === undefined) { }
- if (i >= 0) {
- _prefix = (i === 3) ? "ms" : a[i];
- _prefixCSS = "-" + _prefix.toLowerCase() + "-";
- return _prefix + p;
- }
- return null;
- },
-
- _getComputedStyle = _doc.defaultView ? _doc.defaultView.getComputedStyle : function() {},
-
- /**
- * @private Returns the css style for a particular property of an element. For example, to get whatever the current "left" css value for an element with an ID of "myElement", you could do:
- * var currentLeft = CSSPlugin.getStyle( document.getElementById("myElement"), "left");
- *
- * @param {!Object} t Target element whose style property you want to query
- * @param {!string} p Property name (like "left" or "top" or "marginTop", etc.)
- * @param {Object=} cs Computed style object. This just provides a way to speed processing if you're going to get several properties on the same element in quick succession - you can reuse the result of the getComputedStyle() call.
- * @param {boolean=} calc If true, the value will not be read directly from the element's "style" property (if it exists there), but instead the getComputedStyle() result will be used. This can be useful when you want to ensure that the browser itself is interpreting the value.
- * @param {string=} dflt Default value that should be returned in the place of null, "none", "auto" or "auto auto".
- * @return {?string} The current property value
- */
- _getStyle = CSSPlugin.getStyle = function(t, p, cs, calc, dflt) {
- var rv;
- if (!_supportsOpacity) if (p === "opacity") { //several versions of IE don't use the standard "opacity" property - they use things like filter:alpha(opacity=50), so we parse that here.
- return _getIEOpacity(t);
- }
- if (!calc && t.style[p]) {
- rv = t.style[p];
- } else if ((cs = cs || _getComputedStyle(t))) {
- rv = cs[p] || cs.getPropertyValue(p) || cs.getPropertyValue(p.replace(_capsExp, "-$1").toLowerCase());
- } else if (t.currentStyle) {
- rv = t.currentStyle[p];
- }
- return (dflt != null && (!rv || rv === "none" || rv === "auto" || rv === "auto auto")) ? dflt : rv;
- },
-
- /**
- * @private Pass the target element, the property name, the numeric value, and the suffix (like "%", "em", "px", etc.) and it will spit back the equivalent pixel number.
- * @param {!Object} t Target element
- * @param {!string} p Property name (like "left", "top", "marginLeft", etc.)
- * @param {!number} v Value
- * @param {string=} sfx Suffix (like "px" or "%" or "em")
- * @param {boolean=} recurse If true, the call is a recursive one. In some browsers (like IE7/8), occasionally the value isn't accurately reported initially, but if we run the function again it will take effect.
- * @return {number} value in pixels
- */
- _convertToPixels = _internals.convertToPixels = function(t, p, v, sfx, recurse) {
- if (sfx === "px" || !sfx) { return v; }
- if (sfx === "auto" || !v) { return 0; }
- var horiz = _horizExp.test(p),
- node = t,
- style = _tempDiv.style,
- neg = (v < 0),
- pix, cache, time;
- if (neg) {
- v = -v;
- }
- if (sfx === "%" && p.indexOf("border") !== -1) {
- pix = (v / 100) * (horiz ? t.clientWidth : t.clientHeight);
- } else {
- style.cssText = "border:0 solid red;position:" + _getStyle(t, "position") + ";line-height:0;";
- if (sfx === "%" || !node.appendChild) {
- node = t.parentNode || _doc.body;
- cache = node._gsCache;
- time = TweenLite.ticker.frame;
- if (cache && horiz && cache.time === time) { //performance optimization: we record the width of elements along with the ticker frame so that we can quickly get it again on the same tick (seems relatively safe to assume it wouldn't change on the same tick)
- return cache.width * v / 100;
- }
- style[(horiz ? "width" : "height")] = v + sfx;
- } else {
- style[(horiz ? "borderLeftWidth" : "borderTopWidth")] = v + sfx;
- }
- node.appendChild(_tempDiv);
- pix = parseFloat(_tempDiv[(horiz ? "offsetWidth" : "offsetHeight")]);
- node.removeChild(_tempDiv);
- if (horiz && sfx === "%" && CSSPlugin.cacheWidths !== false) {
- cache = node._gsCache = node._gsCache || {};
- cache.time = time;
- cache.width = pix / v * 100;
- }
- if (pix === 0 && !recurse) {
- pix = _convertToPixels(t, p, v, sfx, true);
- }
- }
- return neg ? -pix : pix;
- },
- _calculateOffset = _internals.calculateOffset = function(t, p, cs) { //for figuring out "top" or "left" in px when it's "auto". We need to factor in margin with the offsetLeft/offsetTop
- if (_getStyle(t, "position", cs) !== "absolute") { return 0; }
- var dim = ((p === "left") ? "Left" : "Top"),
- v = _getStyle(t, "margin" + dim, cs);
- return t["offset" + dim] - (_convertToPixels(t, p, parseFloat(v), v.replace(_suffixExp, "")) || 0);
- },
-
- // @private returns at object containing ALL of the style properties in camelCase and their associated values.
- _getAllStyles = function(t, cs) {
- var s = {},
- i, tr;
- if ((cs = cs || _getComputedStyle(t, null))) {
- if ((i = cs.length)) {
- while (--i > -1) {
- s[cs[i].replace(_camelExp, _camelFunc)] = cs.getPropertyValue(cs[i]);
- }
- } else { //Opera behaves differently - cs.length is always 0, so we must do a for...in loop.
- for (i in cs) {
- s[i] = cs[i];
- }
- }
- } else if ((cs = t.currentStyle || t.style)) {
- for (i in cs) {
- if (typeof(i) === "string" && s[i] === undefined) {
- s[i.replace(_camelExp, _camelFunc)] = cs[i];
- }
- }
- }
- if (!_supportsOpacity) {
- s.opacity = _getIEOpacity(t);
- }
- tr = _getTransform(t, cs, false);
- s.rotation = tr.rotation;
- s.skewX = tr.skewX;
- s.scaleX = tr.scaleX;
- s.scaleY = tr.scaleY;
- s.x = tr.x;
- s.y = tr.y;
- if (_supports3D) {
- s.z = tr.z;
- s.rotationX = tr.rotationX;
- s.rotationY = tr.rotationY;
- s.scaleZ = tr.scaleZ;
- }
- if (s.filters) {
- delete s.filters;
- }
- return s;
- },
-
- // @private analyzes two style objects (as returned by _getAllStyles()) and only looks for differences between them that contain tweenable values (like a number or color). It returns an object with a "difs" property which refers to an object containing only those isolated properties and values for tweening, and a "firstMPT" property which refers to the first MiniPropTween instance in a linked list that recorded all the starting values of the different properties so that we can revert to them at the end or beginning of the tween - we don't want the cascading to get messed up. The forceLookup parameter is an optional generic object with properties that should be forced into the results - this is necessary for className tweens that are overwriting others because imagine a scenario where a rollover/rollout adds/removes a class and the user swipes the mouse over the target SUPER fast, thus nothing actually changed yet and the subsequent comparison of the properties would indicate they match (especially when px rounding is taken into consideration), thus no tweening is necessary even though it SHOULD tween and remove those properties after the tween (otherwise the inline styles will contaminate things). See the className SpecialProp code for details.
- _cssDif = function(t, s1, s2, vars, forceLookup) {
- var difs = {},
- style = t.style,
- val, p, mpt;
- for (p in s2) {
- if (p !== "cssText") if (p !== "length") if (isNaN(p)) if (s1[p] !== (val = s2[p]) || (forceLookup && forceLookup[p])) if (p.indexOf("Origin") === -1) if (typeof(val) === "number" || typeof(val) === "string") {
- difs[p] = (val === "auto" && (p === "left" || p === "top")) ? _calculateOffset(t, p) : ((val === "" || val === "auto" || val === "none") && typeof(s1[p]) === "string" && s1[p].replace(_NaNExp, "") !== "") ? 0 : val; //if the ending value is defaulting ("" or "auto"), we check the starting value and if it can be parsed into a number (a string which could have a suffix too, like 700px), then we swap in 0 for "" or "auto" so that things actually tween.
- if (style[p] !== undefined) { //for className tweens, we must remember which properties already existed inline - the ones that didn't should be removed when the tween isn't in progress because they were only introduced to facilitate the transition between classes.
- mpt = new MiniPropTween(style, p, style[p], mpt);
- }
- }
- }
- if (vars) {
- for (p in vars) { //copy properties (except className)
- if (p !== "className") {
- difs[p] = vars[p];
- }
- }
- }
- return {difs:difs, firstMPT:mpt};
- },
- _dimensions = {width:["Left","Right"], height:["Top","Bottom"]},
- _margins = ["marginLeft","marginRight","marginTop","marginBottom"],
-
- /**
- * @private Gets the width or height of an element
- * @param {!Object} t Target element
- * @param {!string} p Property name ("width" or "height")
- * @param {Object=} cs Computed style object (if one exists). Just a speed optimization.
- * @return {number} Dimension (in pixels)
- */
- _getDimension = function(t, p, cs) {
- var v = parseFloat((p === "width") ? t.offsetWidth : t.offsetHeight),
- a = _dimensions[p],
- i = a.length;
- cs = cs || _getComputedStyle(t, null);
- while (--i > -1) {
- v -= parseFloat( _getStyle(t, "padding" + a[i], cs, true) ) || 0;
- v -= parseFloat( _getStyle(t, "border" + a[i] + "Width", cs, true) ) || 0;
- }
- return v;
- },
-
- // @private Parses position-related complex strings like "top left" or "50px 10px" or "70% 20%", etc. which are used for things like transformOrigin or backgroundPosition. Optionally decorates a supplied object (recObj) with the following properties: "ox" (offsetX), "oy" (offsetY), "oxp" (if true, "ox" is a percentage not a pixel value), and "oxy" (if true, "oy" is a percentage not a pixel value)
- _parsePosition = function(v, recObj) {
- if (v == null || v === "" || v === "auto" || v === "auto auto") { //note: Firefox uses "auto auto" as default whereas Chrome uses "auto".
- v = "0 0";
- }
- var a = v.split(" "),
- x = (v.indexOf("left") !== -1) ? "0%" : (v.indexOf("right") !== -1) ? "100%" : a[0],
- y = (v.indexOf("top") !== -1) ? "0%" : (v.indexOf("bottom") !== -1) ? "100%" : a[1];
- if (y == null) {
- y = "0";
- } else if (y === "center") {
- y = "50%";
- }
- if (x === "center" || (isNaN(parseFloat(x)) && (x + "").indexOf("=") === -1)) { //remember, the user could flip-flop the values and say "bottom center" or "center bottom", etc. "center" is ambiguous because it could be used to describe horizontal or vertical, hence the isNaN(). If there's an "=" sign in the value, it's relative.
- x = "50%";
- }
- if (recObj) {
- recObj.oxp = (x.indexOf("%") !== -1);
- recObj.oyp = (y.indexOf("%") !== -1);
- recObj.oxr = (x.charAt(1) === "=");
- recObj.oyr = (y.charAt(1) === "=");
- recObj.ox = parseFloat(x.replace(_NaNExp, ""));
- recObj.oy = parseFloat(y.replace(_NaNExp, ""));
- }
- return x + " " + y + ((a.length > 2) ? " " + a[2] : "");
- },
-
- /**
- * @private Takes an ending value (typically a string, but can be a number) and a starting value and returns the change between the two, looking for relative value indicators like += and -= and it also ignores suffixes (but make sure the ending value starts with a number or +=/-= and that the starting value is a NUMBER!)
- * @param {(number|string)} e End value which is typically a string, but could be a number
- * @param {(number|string)} b Beginning value which is typically a string but could be a number
- * @return {number} Amount of change between the beginning and ending values (relative values that have a "+=" or "-=" are recognized)
- */
- _parseChange = function(e, b) {
- return (typeof(e) === "string" && e.charAt(1) === "=") ? parseInt(e.charAt(0) + "1", 10) * parseFloat(e.substr(2)) : parseFloat(e) - parseFloat(b);
- },
-
- /**
- * @private Takes a value and a default number, checks if the value is relative, null, or numeric and spits back a normalized number accordingly. Primarily used in the _parseTransform() function.
- * @param {Object} v Value to be parsed
- * @param {!number} d Default value (which is also used for relative calculations if "+=" or "-=" is found in the first parameter)
- * @return {number} Parsed value
- */
- _parseVal = function(v, d) {
- return (v == null) ? d : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0) + "1", 10) * Number(v.substr(2)) + d : parseFloat(v);
- },
-
- /**
- * @private Translates strings like "40deg" or "40" or 40rad" or "+=40deg" or "270_short" or "-90_cw" or "+=45_ccw" to a numeric radian angle. Of course a starting/default value must be fed in too so that relative values can be calculated properly.
- * @param {Object} v Value to be parsed
- * @param {!number} d Default value (which is also used for relative calculations if "+=" or "-=" is found in the first parameter)
- * @param {string=} p property name for directionalEnd (optional - only used when the parsed value is directional ("_short", "_cw", or "_ccw" suffix). We need a way to store the uncompensated value so that at the end of the tween, we set it to exactly what was requested with no directional compensation). Property name would be "rotation", "rotationX", or "rotationY"
- * @param {Object=} directionalEnd An object that will store the raw end values for directional angles ("_short", "_cw", or "_ccw" suffix). We need a way to store the uncompensated value so that at the end of the tween, we set it to exactly what was requested with no directional compensation.
- * @return {number} parsed angle in radians
- */
- _parseAngle = function(v, d, p, directionalEnd) {
- var min = 0.000001,
- cap, split, dif, result;
- if (v == null) {
- result = d;
- } else if (typeof(v) === "number") {
- result = v;
- } else {
- cap = 360;
- split = v.split("_");
- dif = Number(split[0].replace(_NaNExp, "")) * ((v.indexOf("rad") === -1) ? 1 : _RAD2DEG) - ((v.charAt(1) === "=") ? 0 : d);
- if (split.length) {
- if (directionalEnd) {
- directionalEnd[p] = d + dif;
- }
- if (v.indexOf("short") !== -1) {
- dif = dif % cap;
- if (dif !== dif % (cap / 2)) {
- dif = (dif < 0) ? dif + cap : dif - cap;
- }
- }
- if (v.indexOf("_cw") !== -1 && dif < 0) {
- dif = ((dif + cap * 9999999999) % cap) - ((dif / cap) | 0) * cap;
- } else if (v.indexOf("ccw") !== -1 && dif > 0) {
- dif = ((dif - cap * 9999999999) % cap) - ((dif / cap) | 0) * cap;
- }
- }
- result = d + dif;
- }
- if (result < min && result > -min) {
- result = 0;
- }
- return result;
- },
-
- _colorLookup = {aqua:[0,255,255],
- lime:[0,255,0],
- silver:[192,192,192],
- black:[0,0,0],
- maroon:[128,0,0],
- teal:[0,128,128],
- blue:[0,0,255],
- navy:[0,0,128],
- white:[255,255,255],
- fuchsia:[255,0,255],
- olive:[128,128,0],
- yellow:[255,255,0],
- orange:[255,165,0],
- gray:[128,128,128],
- purple:[128,0,128],
- green:[0,128,0],
- red:[255,0,0],
- pink:[255,192,203],
- cyan:[0,255,255],
- transparent:[255,255,255,0]},
-
- _hue = function(h, m1, m2) {
- h = (h < 0) ? h + 1 : (h > 1) ? h - 1 : h;
- return ((((h * 6 < 1) ? m1 + (m2 - m1) * h * 6 : (h < 0.5) ? m2 : (h * 3 < 2) ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * 255) + 0.5) | 0;
- },
-
- /**
- * @private Parses a color (like #9F0, #FF9900, or rgb(255,51,153)) into an array with 3 elements for red, green, and blue. Also handles rgba() values (splits into array of 4 elements of course)
- * @param {(string|number)} v The value the should be parsed which could be a string like #9F0 or rgb(255,102,51) or rgba(255,0,0,0.5) or it could be a number like 0xFF00CC or even a named color like red, blue, purple, etc.
- * @return {Array.<number>} An array containing red, green, and blue (and optionally alpha) in that order.
- */
- _parseColor = function(v) {
- var c1, c2, c3, h, s, l;
- if (!v || v === "") {
- return _colorLookup.black;
- }
- if (typeof(v) === "number") {
- return [v >> 16, (v >> 8) & 255, v & 255];
- }
- if (v.charAt(v.length - 1) === ",") { //sometimes a trailing commma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)" - in this example "blue," has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.
- v = v.substr(0, v.length - 1);
- }
- if (_colorLookup[v]) {
- return _colorLookup[v];
- }
- if (v.charAt(0) === "#") {
- if (v.length === 4) { //for shorthand like #9F0
- c1 = v.charAt(1),
- c2 = v.charAt(2),
- c3 = v.charAt(3);
- v = "#" + c1 + c1 + c2 + c2 + c3 + c3;
- }
- v = parseInt(v.substr(1), 16);
- return [v >> 16, (v >> 8) & 255, v & 255];
- }
- if (v.substr(0, 3) === "hsl") {
- v = v.match(_numExp);
- h = (Number(v[0]) % 360) / 360;
- s = Number(v[1]) / 100;
- l = Number(v[2]) / 100;
- c2 = (l <= 0.5) ? l * (s + 1) : l + s - l * s;
- c1 = l * 2 - c2;
- if (v.length > 3) {
- v[3] = Number(v[3]);
- }
- v[0] = _hue(h + 1 / 3, c1, c2);
- v[1] = _hue(h, c1, c2);
- v[2] = _hue(h - 1 / 3, c1, c2);
- return v;
- }
- v = v.match(_numExp) || _colorLookup.transparent;
- v[0] = Number(v[0]);
- v[1] = Number(v[1]);
- v[2] = Number(v[2]);
- if (v.length > 3) {
- v[3] = Number(v[3]);
- }
- return v;
- },
- _colorExp = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b"; //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.
-
- for (p in _colorLookup) {
- _colorExp += "|" + p + "\\b";
- }
- _colorExp = new RegExp(_colorExp+")", "gi");
-
- /**
- * @private Returns a formatter function that handles taking a string (or number in some cases) and returning a consistently formatted one in terms of delimiters, quantity of values, etc. For example, we may get boxShadow values defined as "0px red" or "0px 0px 10px rgb(255,0,0)" or "0px 0px 20px 20px #F00" and we need to ensure that what we get back is described with 4 numbers and a color. This allows us to feed it into the _parseComplex() method and split the values up appropriately. The neat thing about this _getFormatter() function is that the dflt defines a pattern as well as a default, so for example, _getFormatter("0px 0px 0px 0px #777", true) not only sets the default as 0px for all distances and #777 for the color, but also sets the pattern such that 4 numbers and a color will always get returned.
- * @param {!string} dflt The default value and pattern to follow. So "0px 0px 0px 0px #777" will ensure that 4 numbers and a color will always get returned.
- * @param {boolean=} clr If true, the values should be searched for color-related data. For example, boxShadow values typically contain a color whereas borderRadius don't.
- * @param {boolean=} collapsible If true, the value is a top/left/right/bottom style one that acts like margin or padding, where if only one value is received, it's used for all 4; if 2 are received, the first is duplicated for 3rd (bottom) and the 2nd is duplicated for the 4th spot (left), etc.
- * @return {Function} formatter function
- */
- var _getFormatter = function(dflt, clr, collapsible, multi) {
- if (dflt == null) {
- return function(v) {return v;};
- }
- var dColor = clr ? (dflt.match(_colorExp) || [""])[0] : "",
- dVals = dflt.split(dColor).join("").match(_valuesExp) || [],
- pfx = dflt.substr(0, dflt.indexOf(dVals[0])),
- sfx = (dflt.charAt(dflt.length - 1) === ")") ? ")" : "",
- delim = (dflt.indexOf(" ") !== -1) ? " " : ",",
- numVals = dVals.length,
- dSfx = (numVals > 0) ? dVals[0].replace(_numExp, "") : "",
- formatter;
- if (!numVals) {
- return function(v) {return v;};
- }
- if (clr) {
- formatter = function(v) {
- var color, vals, i, a;
- if (typeof(v) === "number") {
- v += dSfx;
- } else if (multi && _commasOutsideParenExp.test(v)) {
- a = v.replace(_commasOutsideParenExp, "|").split("|");
- for (i = 0; i < a.length; i++) {
- a[i] = formatter(a[i]);
- }
- return a.join(",");
- }
- color = (v.match(_colorExp) || [dColor])[0];
- vals = v.split(color).join("").match(_valuesExp) || [];
- i = vals.length;
- if (numVals > i--) {
- while (++i < numVals) {
- vals[i] = collapsible ? vals[(((i - 1) / 2) | 0)] : dVals[i];
- }
- }
- return pfx + vals.join(delim) + delim + color + sfx + (v.indexOf("inset") !== -1 ? " inset" : "");
- };
- return formatter;
-
- }
- formatter = function(v) {
- var vals, a, i;
- if (typeof(v) === "number") {
- v += dSfx;
- } else if (multi && _commasOutsideParenExp.test(v)) {
- a = v.replace(_commasOutsideParenExp, "|").split("|");
- for (i = 0; i < a.length; i++) {
- a[i] = formatter(a[i]);
- }
- return a.join(",");
- }
- vals = v.match(_valuesExp) || [];
- i = vals.length;
- if (numVals > i--) {
- while (++i < numVals) {
- vals[i] = collapsible ? vals[(((i - 1) / 2) | 0)] : dVals[i];
- }
- }
- return pfx + vals.join(delim) + sfx;
- };
- return formatter;
- },
-
- /**
- * @private returns a formatter function that's used for edge-related values like marginTop, marginLeft, paddingBottom, paddingRight, etc. Just pass a comma-delimited list of property names related to the edges.
- * @param {!string} props a comma-delimited list of property names in order from top to left, like "marginTop,marginRight,marginBottom,marginLeft"
- * @return {Function} a formatter function
- */
- _getEdgeParser = function(props) {
- props = props.split(",");
- return function(t, e, p, cssp, pt, plugin, vars) {
- var a = (e + "").split(" "),
- i;
- vars = {};
- for (i = 0; i < 4; i++) {
- vars[props[i]] = a[i] = a[i] || a[(((i - 1) / 2) >> 0)];
- }
- return cssp.parse(t, vars, pt, plugin);
- };
- },
-
- // @private used when other plugins must tween values first, like BezierPlugin or ThrowPropsPlugin, etc. That plugin's setRatio() gets called first so that the values are updated, and then we loop through the MiniPropTweens which handle copying the values into their appropriate slots so that they can then be applied correctly in the main CSSPlugin setRatio() method. Remember, we typically create a proxy object that has a bunch of uniquely-named properties that we feed to the sub-plugin and it does its magic normally, and then we must interpret those values and apply them to the css because often numbers must get combined/concatenated, suffixes added, etc. to work with css, like boxShadow could have 4 values plus a color.
- _setPluginRatio = _internals._setPluginRatio = function(v) {
- this.plugin.setRatio(v);
- var d = this.data,
- proxy = d.proxy,
- mpt = d.firstMPT,
- min = 0.000001,
- val, pt, i, str;
- while (mpt) {
- val = proxy[mpt.v];
- if (mpt.r) {
- val = Math.round(val);
- } else if (val < min && val > -min) {
- val = 0;
- }
- mpt.t[mpt.p] = val;
- mpt = mpt._next;
- }
- if (d.autoRotate) {
- d.autoRotate.rotation = proxy.rotation;
- }
- //at the end, we must set the CSSPropTween's "e" (end) value dynamically here because that's what is used in the final setRatio() method.
- if (v === 1) {
- mpt = d.firstMPT;
- while (mpt) {
- pt = mpt.t;
- if (!pt.type) {
- pt.e = pt.s + pt.xs0;
- } else if (pt.type === 1) {
- str = pt.xs0 + pt.s + pt.xs1;
- for (i = 1; i < pt.l; i++) {
- str += pt["xn"+i] + pt["xs"+(i+1)];
- }
- pt.e = str;
- }
- mpt = mpt._next;
- }
- }
- },
-
- /**
- * @private @constructor Used by a few SpecialProps to hold important values for proxies. For example, _parseToProxy() creates a MiniPropTween instance for each property that must get tweened on the proxy, and we record the original property name as well as the unique one we create for the proxy, plus whether or not the value needs to be rounded plus the original value.
- * @param {!Object} t target object whose property we're tweening (often a CSSPropTween)
- * @param {!string} p property name
- * @param {(number|string|object)} v value
- * @param {MiniPropTween=} next next MiniPropTween in the linked list
- * @param {boolean=} r if true, the tweened value should be rounded to the nearest integer
- */
- MiniPropTween = function(t, p, v, next, r) {
- this.t = t;
- this.p = p;
- this.v = v;
- this.r = r;
- if (next) {
- next._prev = this;
- this._next = next;
- }
- },
-
- /**
- * @private Most other plugins (like BezierPlugin and ThrowPropsPlugin and others) can only tween numeric values, but CSSPlugin must accommodate special values that have a bunch of extra data (like a suffix or strings between numeric values, etc.). For example, boxShadow has values like "10px 10px 20px 30px rgb(255,0,0)" which would utterly confuse other plugins. This method allows us to split that data apart and grab only the numeric data and attach it to uniquely-named properties of a generic proxy object ({}) so that we can feed that to virtually any plugin to have the numbers tweened. However, we must also keep track of which properties from the proxy go with which CSSPropTween values and instances. So we create a linked list of MiniPropTweens. Each one records a target (the original CSSPropTween), property (like "s" or "xn1" or "xn2") that we're tweening and the unique property name that was used for the proxy (like "boxShadow_xn1" and "boxShadow_xn2") and whether or not they need to be rounded. That way, in the _setPluginRatio() method we can simply copy the values over from the proxy to the CSSPropTween instance(s). Then, when the main CSSPlugin setRatio() method runs and applies the CSSPropTween values accordingly, they're updated nicely. So the external plugin tweens the numbers, _setPluginRatio() copies them over, and setRatio() acts normally, applying css-specific values to the element.
- * This method returns an object that has the following properties:
- * - proxy: a generic object containing the starting values for all the properties that will be tweened by the external plugin. This is what we feed to the external _onInitTween() as the target
- * - end: a generic object containing the ending values for all the properties that will be tweened by the external plugin. This is what we feed to the external plugin's _onInitTween() as the destination values
- * - firstMPT: the first MiniPropTween in the linked list
- * - pt: the first CSSPropTween in the linked list that was created when parsing. If shallow is true, this linked list will NOT attach to the one passed into the _parseToProxy() as the "pt" (4th) parameter.
- * @param {!Object} t target object to be tweened
- * @param {!(Object|string)} vars the object containing the information about the tweening values (typically the end/destination values) that should be parsed
- * @param {!CSSPlugin} cssp The CSSPlugin instance
- * @param {CSSPropTween=} pt the next CSSPropTween in the linked list
- * @param {TweenPlugin=} plugin the external TweenPlugin instance that will be handling tweening the numeric values
- * @param {boolean=} shallow if true, the resulting linked list from the parse will NOT be attached to the CSSPropTween that was passed in as the "pt" (4th) parameter.
- * @return An object containing the following properties: proxy, end, firstMPT, and pt (see above for descriptions)
- */
- _parseToProxy = _internals._parseToProxy = function(t, vars, cssp, pt, plugin, shallow) {
- var bpt = pt,
- start = {},
- end = {},
- transform = cssp._transform,
- oldForce = _forcePT,
- i, p, xp, mpt, firstPT;
- cssp._transform = null;
- _forcePT = vars;
- pt = firstPT = cssp.parse(t, vars, pt, plugin);
- _forcePT = oldForce;
- //break off from the linked list so the new ones are isolated.
- if (shallow) {
- cssp._transform = transform;
- if (bpt) {
- bpt._prev = null;
- if (bpt._prev) {
- bpt._prev._next = null;
- }
- }
- }
- while (pt && pt !== bpt) {
- if (pt.type <= 1) {
- p = pt.p;
- end[p] = pt.s + pt.c;
- start[p] = pt.s;
- if (!shallow) {
- mpt = new MiniPropTween(pt, "s", p, mpt, pt.r);
- pt.c = 0;
- }
- if (pt.type === 1) {
- i = pt.l;
- while (--i > 0) {
- xp = "xn" + i;
- p = pt.p + "_" + xp;
- end[p] = pt.data[xp];
- start[p] = pt[xp];
- if (!shallow) {
- mpt = new MiniPropTween(pt, xp, p, mpt, pt.rxp[xp]);
- }
- }
- }
- }
- pt = pt._next;
- }
- return {proxy:start, end:end, firstMPT:mpt, pt:firstPT};
- },
-
-
-
- /**
- * @constructor Each property that is tweened has at least one CSSPropTween associated with it. These instances store important information like the target, property, starting value, amount of change, etc. They can also optionally have a number of "extra" strings and numeric values named xs1, xn1, xs2, xn2, xs3, xn3, etc. where "s" indicates string and "n" indicates number. These can be pieced together in a complex-value tween (type:1) that has alternating types of data like a string, number, string, number, etc. For example, boxShadow could be "5px 5px 8px rgb(102, 102, 51)". In that value, there are 6 numbers that may need to tween and then pieced back together into a string again with spaces, suffixes, etc. xs0 is special in that it stores the suffix for standard (type:0) tweens, -OR- the first string (prefix) in a complex-value (type:1) CSSPropTween -OR- it can be the non-tweening value in a type:-1 CSSPropTween. We do this to conserve memory.
- * CSSPropTweens have the following optional properties as well (not defined through the constructor):
- * - l: Length in terms of the number of extra properties that the CSSPropTween has (default: 0). For example, for a boxShadow we may need to tween 5 numbers in which case l would be 5; Keep in mind that the start/end values for the first number that's tweened are always stored in the s and c properties to conserve memory. All additional values thereafter are stored in xn1, xn2, etc.
- * - xfirst: The first instance of any sub-CSSPropTweens that are tweening properties of this instance. For example, we may split up a boxShadow tween so that there's a main CSSPropTween of type:1 that has various xs* and xn* values associated with the h-shadow, v-shadow, blur, color, etc. Then we spawn a CSSPropTween for each of those that has a higher priority and runs BEFORE the main CSSPropTween so that the values are all set by the time it needs to re-assemble them. The xfirst gives us an easy way to identify the first one in that chain which typically ends at the main one (because they're all prepende to the linked list)
- * - plugin: The TweenPlugin instance that will handle the tweening of any complex values. For example, sometimes we don't want to use normal subtweens (like xfirst refers to) to tween the values - we might want ThrowPropsPlugin or BezierPlugin some other plugin to do the actual tweening, so we create a plugin instance and store a reference here. We need this reference so that if we get a request to round values or disable a tween, we can pass along that request.
- * - data: Arbitrary data that needs to be stored with the CSSPropTween. Typically if we're going to have a plugin handle the tweening of a complex-value tween, we create a generic object that stores the END values that we're tweening to and the CSSPropTween's xs1, xs2, etc. have the starting values. We store that object as data. That way, we can simply pass that object to the plugin and use the CSSPropTween as the target.
- * - setRatio: Only used for type:2 tweens that require custom functionality. In this case, we call the CSSPropTween's setRatio() method and pass the ratio each time the tween updates. This isn't quite as efficient as doing things directly in the CSSPlugin's setRatio() method, but it's very convenient and flexible.
- * @param {!Object} t Target object whose property will be tweened. Often a DOM element, but not always. It could be anything.
- * @param {string} p Property to tween (name). For example, to tween element.width, p would be "width".
- * @param {number} s Starting numeric value
- * @param {number} c Change in numeric value over the course of the entire tween. For example, if element.width starts at 5 and should end at 100, c would be 95.
- * @param {CSSPropTween=} next The next CSSPropTween in the linked list. If one is defined, we will define its _prev as the new instance, and the new instance's _next will be pointed at it.
- * @param {number=} type The type of CSSPropTween where -1 = a non-tweening value, 0 = a standard simple tween, 1 = a complex value (like one that has multiple numbers in a comma- or space-delimited string like border:"1px solid red"), and 2 = one that uses a custom setRatio function that does all of the work of applying the values on each update.
- * @param {string=} n Name of the property that should be used for overwriting purposes which is typically the same as p but not always. For example, we may need to create a subtween for the 2nd part of a "clip:rect(...)" tween in which case "p" might be xs1 but "n" is still "clip"
- * @param {boolean=} r If true, the value(s) should be rounded
- * @param {number=} pr Priority in the linked list order. Higher priority CSSPropTweens will be updated before lower priority ones. The default priority is 0.
- * @param {string=} b Beginning value. We store this to ensure that it is EXACTLY what it was when the tween began without any risk of interpretation issues.
- * @param {string=} e Ending value. We store this to ensure that it is EXACTLY what the user defined at the end of the tween without any risk of interpretation issues.
- */
- CSSPropTween = _internals.CSSPropTween = function(t, p, s, c, next, type, n, r, pr, b, e) {
- this.t = t; //target
- this.p = p; //property
- this.s = s; //starting value
- this.c = c; //change value
- this.n = n || p; //name that this CSSPropTween should be associated to (usually the same as p, but not always - n is what overwriting looks at)
- if (!(t instanceof CSSPropTween)) {
- _overwriteProps.push(this.n);
- }
- this.r = r; //round (boolean)
- this.type = type || 0; //0 = normal tween, -1 = non-tweening (in which case xs0 will be applied to the target's property, like tp.t[tp.p] = tp.xs0), 1 = complex-value SpecialProp, 2 = custom setRatio() that does all the work
- if (pr) {
- this.pr = pr;
- _hasPriority = true;
- }
- this.b = (b === undefined) ? s : b;
- this.e = (e === undefined) ? s + c : e;
- if (next) {
- this._next = next;
- next._prev = this;
- }
- },
-
- /**
- * Takes a target, the beginning value and ending value (as strings) and parses them into a CSSPropTween (possibly with child CSSPropTweens) that accommodates multiple numbers, colors, comma-delimited values, etc. For example:
- * sp.parseComplex(element, "boxShadow", "5px 10px 20px rgb(255,102,51)", "0px 0px 0px red", true, "0px 0px 0px rgb(0,0,0,0)", pt);
- * It will walk through the beginning and ending values (which should be in the same format with the same number and type of values) and figure out which parts are numbers, what strings separate the numeric/tweenable values, and then create the CSSPropTweens accordingly. If a plugin is defined, no child CSSPropTweens will be created. Instead, the ending values will be stored in the "data" property of the returned CSSPropTween like: {s:-5, xn1:-10, xn2:-20, xn3:255, xn4:0, xn5:0} so that it can be fed to any other plugin and it'll be plain numeric tweens but the recomposition of the complex value will be handled inside CSSPlugin's setRatio().
- * If a setRatio is defined, the type of the CSSPropTween will be set to 2 and recomposition of the values will be the responsibility of that method.
- *
- * @param {!Object} t Target whose property will be tweened
- * @param {!string} p Property that will be tweened (its name, like "left" or "backgroundColor" or "boxShadow")
- * @param {string} b Beginning value
- * @param {string} e Ending value
- * @param {boolean} clrs If true, the value could contain a color value like "rgb(255,0,0)" or "#F00" or "red". The default is false, so no colors will be recognized (a performance optimization)
- * @param {(string|number|Object)} dflt The default beginning value that should be used if no valid beginning value is defined or if the number of values inside the complex beginning and ending values don't match
- * @param {?CSSPropTween} pt CSSPropTween instance that is the current head of the linked list (we'll prepend to this).
- * @param {number=} pr Priority in the linked list order. Higher priority properties will be updated before lower priority ones. The default priority is 0.
- * @param {TweenPlugin=} plugin If a plugin should handle the tweening of extra properties, pass the plugin instance here. If one is defined, then NO subtweens will be created for any extra properties (the properties will be created - just not additional CSSPropTween instances to tween them) because the plugin is expected to do so. However, the end values WILL be populated in the "data" property, like {s:100, xn1:50, xn2:300}
- * @param {function(number)=} setRatio If values should be set in a custom function instead of being pieced together in a type:1 (complex-value) CSSPropTween, define that custom function here.
- * @return {CSSPropTween} The first CSSPropTween in the linked list which includes the new one(s) added by the parseComplex() call.
- */
- _parseComplex = CSSPlugin.parseComplex = function(t, p, b, e, clrs, dflt, pt, pr, plugin, setRatio) {
- //DEBUG: _log("parseComplex: "+p+", b: "+b+", e: "+e);
- b = b || dflt || "";
- pt = new CSSPropTween(t, p, 0, 0, pt, (setRatio ? 2 : 1), null, false, pr, b, e);
- e += ""; //ensures it's a string
- var ba = b.split(", ").join(",").split(" "), //beginning array
- ea = e.split(", ").join(",").split(" "), //ending array
- l = ba.length,
- autoRound = (_autoRound !== false),
- i, xi, ni, bv, ev, bnums, enums, bn, rgba, temp, cv, str;
- if (e.indexOf(",") !== -1 || b.indexOf(",") !== -1) {
- ba = ba.join(" ").replace(_commasOutsideParenExp, ", ").split(" ");
- ea = ea.join(" ").replace(_commasOutsideParenExp, ", ").split(" ");
- l = ba.length;
- }
- if (l !== ea.length) {
- //DEBUG: _log("mismatched formatting detected on " + p + " (" + b + " vs " + e + ")");
- ba = (dflt || "").split(" ");
- l = ba.length;
- }
- pt.plugin = plugin;
- pt.setRatio = setRatio;
- for (i = 0; i < l; i++) {
- bv = ba[i];
- ev = ea[i];
- bn = parseFloat(bv);
-
- //if the value begins with a number (most common). It's fine if it has a suffix like px
- if (bn || bn === 0) {
- pt.appendXtra("", bn, _parseChange(ev, bn), ev.replace(_relNumExp, ""), (autoRound && ev.indexOf("px") !== -1), true);
-
- //if the value is a color
- } else if (clrs && (bv.charAt(0) === "#" || _colorLookup[bv] || _rgbhslExp.test(bv))) {
- str = ev.charAt(ev.length - 1) === "," ? ")," : ")"; //if there's a comma at the end, retain it.
- bv = _parseColor(bv);
- ev = _parseColor(ev);
- rgba = (bv.length + ev.length > 6);
- if (rgba && !_supportsOpacity && ev[3] === 0) { //older versions of IE don't support rgba(), so if the destination alpha is 0, just use "transparent" for the end color
- pt["xs" + pt.l] += pt.l ? " transparent" : "transparent";
- pt.e = pt.e.split(ea[i]).join("transparent");
- } else {
- if (!_supportsOpacity) { //old versions of IE don't support rgba().
- rgba = false;
- }
- pt.appendXtra((rgba ? "rgba(" : "rgb("), bv[0], ev[0] - bv[0], ",", true, true)
- .appendXtra("", bv[1], ev[1] - bv[1], ",", true)
- .appendXtra("", bv[2], ev[2] - bv[2], (rgba ? "," : str), true);
- if (rgba) {
- bv = (bv.length < 4) ? 1 : bv[3];
- pt.appendXtra("", bv, ((ev.length < 4) ? 1 : ev[3]) - bv, str, false);
- }
- }
-
- } else {
- bnums = bv.match(_numExp); //gets each group of numbers in the beginning value string and drops them into an array
-
- //if no number is found, treat it as a non-tweening value and just append the string to the current xs.
- if (!bnums) {
- pt["xs" + pt.l] += pt.l ? " " + bv : bv;
-
- //loop through all the numbers that are found and construct the extra values on the pt.
- } else {
- enums = ev.match(_relNumExp); //get each group of numbers in the end value string and drop them into an array. We allow relative values too, like +=50 or -=.5
- if (!enums || enums.length !== bnums.length) {
- //DEBUG: _log("mismatched formatting detected on " + p + " (" + b + " vs " + e + ")");
- return pt;
- }
- ni = 0;
- for (xi = 0; xi < bnums.length; xi++) {
- cv = bnums[xi];
- temp = bv.indexOf(cv, ni);
- pt.appendXtra(bv.substr(ni, temp - ni), Number(cv), _parseChange(enums[xi], cv), "", (autoRound && bv.substr(temp + cv.length, 2) === "px"), (xi === 0));
- ni = temp + cv.length;
- }
- pt["xs" + pt.l] += bv.substr(ni);
- }
- }
- }
- //if there are relative values ("+=" or "-=" prefix), we need to adjust the ending value to eliminate the prefixes and combine the values properly.
- if (e.indexOf("=") !== -1) if (pt.data) {
- str = pt.xs0 + pt.data.s;
- for (i = 1; i < pt.l; i++) {
- str += pt["xs" + i] + pt.data["xn" + i];
- }
- pt.e = str + pt["xs" + i];
- }
- if (!pt.l) {
- pt.type = -1;
- pt.xs0 = pt.e;
- }
- return pt.xfirst || pt;
- },
- i = 9;
-
-
- p = CSSPropTween.prototype;
- p.l = p.pr = 0; //length (number of extra properties like xn1, xn2, xn3, etc.
- while (--i > 0) {
- p["xn" + i] = 0;
- p["xs" + i] = "";
- }
- p.xs0 = "";
- p._next = p._prev = p.xfirst = p.data = p.plugin = p.setRatio = p.rxp = null;
-
-
- /**
- * Appends and extra tweening value to a CSSPropTween and automatically manages any prefix and suffix strings. The first extra value is stored in the s and c of the main CSSPropTween instance, but thereafter any extras are stored in the xn1, xn2, xn3, etc. The prefixes and suffixes are stored in the xs0, xs1, xs2, etc. properties. For example, if I walk through a clip value like "rect(10px, 5px, 0px, 20px)", the values would be stored like this:
- * xs0:"rect(", s:10, xs1:"px, ", xn1:5, xs2:"px, ", xn2:0, xs3:"px, ", xn3:20, xn4:"px)"
- * And they'd all get joined together when the CSSPlugin renders (in the setRatio() method).
- * @param {string=} pfx Prefix (if any)
- * @param {!number} s Starting value
- * @param {!number} c Change in numeric value over the course of the entire tween. For example, if the start is 5 and the end is 100, the change would be 95.
- * @param {string=} sfx Suffix (if any)
- * @param {boolean=} r Round (if true).
- * @param {boolean=} pad If true, this extra value should be separated by the previous one by a space. If there is no previous extra and pad is true, it will automatically drop the space.
- * @return {CSSPropTween} returns itself so that multiple methods can be chained together.
- */
- p.appendXtra = function(pfx, s, c, sfx, r, pad) {
- var pt = this,
- l = pt.l;
- pt["xs" + l] += (pad && l) ? " " + pfx : pfx || "";
- if (!c) if (l !== 0 && !pt.plugin) { //typically we'll combine non-changing values right into the xs to optimize performance, but we don't combine them when there's a plugin that will be tweening the values because it may depend on the values being split apart, like for a bezier, if a value doesn't change between the first and second iteration but then it does on the 3rd, we'll run into trouble because there's no xn slot for that value!
- pt["xs" + l] += s + (sfx || "");
- return pt;
- }
- pt.l++;
- pt.type = pt.setRatio ? 2 : 1;
- pt["xs" + pt.l] = sfx || "";
- if (l > 0) {
- pt.data["xn" + l] = s + c;
- pt.rxp["xn" + l] = r; //round extra property (we need to tap into this in the _parseToProxy() method)
- pt["xn" + l] = s;
- if (!pt.plugin) {
- pt.xfirst = new CSSPropTween(pt, "xn" + l, s, c, pt.xfirst || pt, 0, pt.n, r, pt.pr);
- pt.xfirst.xs0 = 0; //just to ensure that the property stays numeric which helps modern browsers speed up processing. Remember, in the setRatio() method, we do pt.t[pt.p] = val + pt.xs0 so if pt.xs0 is "" (the default), it'll cast the end value as a string. When a property is a number sometimes and a string sometimes, it prevents the compiler from locking in the data type, slowing things down slightly.
- }
- return pt;
- }
- pt.data = {s:s + c};
- pt.rxp = {};
- pt.s = s;
- pt.c = c;
- pt.r = r;
- return pt;
- };
-
- /**
- * @constructor A SpecialProp is basically a css property that needs to be treated in a non-standard way, like if it may contain a complex value like boxShadow:"5px 10px 15px rgb(255, 102, 51)" or if it is associated with another plugin like ThrowPropsPlugin or BezierPlugin. Every SpecialProp is associated with a particular property name like "boxShadow" or "throwProps" or "bezier" and it will intercept those values in the vars object that's passed to the CSSPlugin and handle them accordingly.
- * @param {!string} p Property name (like "boxShadow" or "throwProps")
- * @param {Object=} options An object containing any of the following configuration options:
- * - defaultValue: the default value
- * - parser: A function that should be called when the associated property name is found in the vars. This function should return a CSSPropTween instance and it should ensure that it is properly inserted into the linked list. It will receive 4 paramters: 1) The target, 2) The value defined in the vars, 3) The CSSPlugin instance (whose _firstPT should be used for the linked list), and 4) A computed style object if one was calculated (this is a speed optimization that allows retrieval of starting values quicker)
- * - formatter: a function that formats any value received for this special property (for example, boxShadow could take "5px 5px red" and format it to "5px 5px 0px 0px red" so that both the beginning and ending values have a common order and quantity of values.)
- * - prefix: if true, we'll determine whether or not this property requires a vendor prefix (like Webkit or Moz or ms or O)
- * - color: set this to true if the value for this SpecialProp may contain color-related values like rgb(), rgba(), etc.
- * - priority: priority in the linked list order. Higher priority SpecialProps will be updated before lower priority ones. The default priority is 0.
- * - multi: if true, the formatter should accommodate a comma-delimited list of values, like boxShadow could have multiple boxShadows listed out.
- * - collapsible: if true, the formatter should treat the value like it's a top/right/bottom/left value that could be collapsed, like "5px" would apply to all, "5px, 10px" would use 5px for top/bottom and 10px for right/left, etc.
- * - keyword: a special keyword that can [optionally] be found inside the value (like "inset" for boxShadow). This allows us to validate beginning/ending values to make sure they match (if the keyword is found in one, it'll be added to the other for consistency by default).
- */
- var SpecialProp = function(p, options) {
- options = options || {};
- this.p = options.prefix ? _checkPropPrefix(p) || p : p;
- _specialProps[p] = _specialProps[this.p] = this;
- this.format = options.formatter || _getFormatter(options.defaultValue, options.color, options.collapsible, options.multi);
- if (options.parser) {
- this.parse = options.parser;
- }
- this.clrs = options.color;
- this.multi = options.multi;
- this.keyword = options.keyword;
- this.dflt = options.defaultValue;
- this.pr = options.priority || 0;
- },
-
- //shortcut for creating a new SpecialProp that can accept multiple properties as a comma-delimited list (helps minification). dflt can be an array for multiple values (we don't do a comma-delimited list because the default value may contain commas, like rect(0px,0px,0px,0px)). We attach this method to the SpecialProp class/object instead of using a private _createSpecialProp() method so that we can tap into it externally if necessary, like from another plugin.
- _registerComplexSpecialProp = _internals._registerComplexSpecialProp = function(p, options, defaults) {
- if (typeof(options) !== "object") {
- options = {parser:defaults}; //to make backwards compatible with older versions of BezierPlugin and ThrowPropsPlugin
- }
- var a = p.split(","),
- d = options.defaultValue,
- i, temp;
- defaults = defaults || [d];
- for (i = 0; i < a.length; i++) {
- options.prefix = (i === 0 && options.prefix);
- options.defaultValue = defaults[i] || d;
- temp = new SpecialProp(a[i], options);
- }
- },
-
- //creates a placeholder special prop for a plugin so that the property gets caught the first time a tween of it is attempted, and at that time it makes the plugin register itself, thus taking over for all future tweens of that property. This allows us to not mandate that things load in a particular order and it also allows us to log() an error that informs the user when they attempt to tween an external plugin-related property without loading its .js file.
- _registerPluginProp = function(p) {
- if (!_specialProps[p]) {
- var pluginName = p.charAt(0).toUpperCase() + p.substr(1) + "Plugin";
- _registerComplexSpecialProp(p, {parser:function(t, e, p, cssp, pt, plugin, vars) {
- var pluginClass = (window.GreenSockGlobals || window).com.greensock.plugins[pluginName];
- if (!pluginClass) {
- _log("Error: " + pluginName + " js file not loaded.");
- return pt;
- }
- pluginClass._cssRegister();
- return _specialProps[p].parse(t, e, p, cssp, pt, plugin, vars);
- }});
- }
- };
-
-
- p = SpecialProp.prototype;
-
- /**
- * Alias for _parseComplex() that automatically plugs in certain values for this SpecialProp, like its property name, whether or not colors should be sensed, the default value, and priority. It also looks for any keyword that the SpecialProp defines (like "inset" for boxShadow) and ensures that the beginning and ending values have the same number of values for SpecialProps where multi is true (like boxShadow and textShadow can have a comma-delimited list)
- * @param {!Object} t target element
- * @param {(string|number|object)} b beginning value
- * @param {(string|number|object)} e ending (destination) value
- * @param {CSSPropTween=} pt next CSSPropTween in the linked list
- * @param {TweenPlugin=} plugin If another plugin will be tweening the complex value, that TweenPlugin instance goes here.
- * @param {function=} setRatio If a custom setRatio() method should be used to handle this complex value, that goes here.
- * @return {CSSPropTween=} First CSSPropTween in the linked list
- */
- p.parseComplex = function(t, b, e, pt, plugin, setRatio) {
- var kwd = this.keyword,
- i, ba, ea, l, bi, ei;
- //if this SpecialProp's value can contain a comma-delimited list of values (like boxShadow or textShadow), we must parse them in a special way, and look for a keyword (like "inset" for boxShadow) and ensure that the beginning and ending BOTH have it if the end defines it as such. We also must ensure that there are an equal number of values specified (we can't tween 1 boxShadow to 3 for example)
- if (this.multi) if (_commasOutsideParenExp.test(e) || _commasOutsideParenExp.test(b)) {
- ba = b.replace(_commasOutsideParenExp, "|").split("|");
- ea = e.replace(_commasOutsideParenExp, "|").split("|");
- } else if (kwd) {
- ba = [b];
- ea = [e];
- }
- if (ea) {
- l = (ea.length > ba.length) ? ea.length : ba.length;
- for (i = 0; i < l; i++) {
- b = ba[i] = ba[i] || this.dflt;
- e = ea[i] = ea[i] || this.dflt;
- if (kwd) {
- bi = b.indexOf(kwd);
- ei = e.indexOf(kwd);
- if (bi !== ei) {
- e = (ei === -1) ? ea : ba;
- e[i] += " " + kwd;
- }
- }
- }
- b = ba.join(", ");
- e = ea.join(", ");
- }
- return _parseComplex(t, this.p, b, e, this.clrs, this.dflt, pt, this.pr, plugin, setRatio);
- };
-
- /**
- * Accepts a target and end value and spits back a CSSPropTween that has been inserted into the CSSPlugin's linked list and conforms with all the conventions we use internally, like type:-1, 0, 1, or 2, setting up any extra property tweens, priority, etc. For example, if we have a boxShadow SpecialProp and call:
- * this._firstPT = sp.parse(element, "5px 10px 20px rgb(2550,102,51)", "boxShadow", this);
- * It should figure out the starting value of the element's boxShadow, compare it to the provided end value and create all the necessary CSSPropTweens of the appropriate types to tween the boxShadow. The CSSPropTween that gets spit back should already be inserted into the linked list (the 4th parameter is the current head, so prepend to that).
- * @param {!Object} t Target object whose property is being tweened
- * @param {Object} e End value as provided in the vars object (typically a string, but not always - like a throwProps would be an object).
- * @param {!string} p Property name
- * @param {!CSSPlugin} cssp The CSSPlugin instance that should be associated with this tween.
- * @param {?CSSPropTween} pt The CSSPropTween that is the current head of the linked list (we'll prepend to it)
- * @param {TweenPlugin=} plugin If a plugin will be used to tween the parsed value, this is the plugin instance.
- * @param {Object=} vars Original vars object that contains the data for parsing.
- * @return {CSSPropTween} The first CSSPropTween in the linked list which includes the new one(s) added by the parse() call.
- */
- p.parse = function(t, e, p, cssp, pt, plugin, vars) {
- return this.parseComplex(t.style, this.format(_getStyle(t, this.p, _cs, false, this.dflt)), this.format(e), pt, plugin);
- };
-
- /**
- * Registers a special property that should be intercepted from any "css" objects defined in tweens. This allows you to handle them however you want without CSSPlugin doing it for you. The 2nd parameter should be a function that accepts 3 parameters:
- * 1) Target object whose property should be tweened (typically a DOM element)
- * 2) The end/destination value (could be a string, number, object, or whatever you want)
- * 3) The tween instance (you probably don't need to worry about this, but it can be useful for looking up information like the duration)
- *
- * Then, your function should return a function which will be called each time the tween gets rendered, passing a numeric "ratio" parameter to your function that indicates the change factor (usually between 0 and 1). For example:
- *
- * CSSPlugin.registerSpecialProp("myCustomProp", function(target, value, tween) {
- * var start = target.style.width;
- * return function(ratio) {
- * target.style.width = (start + value * ratio) + "px";
- * console.log("set width to " + target.style.width);
- * }
- * }, 0);
- *
- * Then, when I do this tween, it will trigger my special property:
- *
- * TweenLite.to(element, 1, {css:{myCustomProp:100}});
- *
- * In the example, of course, we're just changing the width, but you can do anything you want.
- *
- * @param {!string} name Property name (or comma-delimited list of property names) that should be intercepted and handled by your function. For example, if I define "myCustomProp", then it would handle that portion of the following tween: TweenLite.to(element, 1, {css:{myCustomProp:100}})
- * @param {!function(Object, Object, Object, string):function(number)} onInitTween The function that will be called when a tween of this special property is performed. The function will receive 4 parameters: 1) Target object that should be tweened, 2) Value that was passed to the tween, 3) The tween instance itself (rarely used), and 4) The property name that's being tweened. Your function should return a function that should be called on every update of the tween. That function will receive a single parameter that is a "change factor" value (typically between 0 and 1) indicating the amount of change as a ratio. You can use this to determine how to set the values appropriately in your function.
- * @param {number=} priority Priority that helps the engine determine the order in which to set the properties (default: 0). Higher priority properties will be updated before lower priority ones.
- */
- CSSPlugin.registerSpecialProp = function(name, onInitTween, priority) {
- _registerComplexSpecialProp(name, {parser:function(t, e, p, cssp, pt, plugin, vars) {
- var rv = new CSSPropTween(t, p, 0, 0, pt, 2, p, false, priority);
- rv.plugin = plugin;
- rv.setRatio = onInitTween(t, e, cssp._tween, p);
- return rv;
- }, priority:priority});
- };
-
-
-
-
-
-
-
-
- //transform-related methods and properties
- var _transformProps = ("scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective").split(","),
- _transformProp = _checkPropPrefix("transform"), //the Javascript (camelCase) transform property, like msTransform, WebkitTransform, MozTransform, or OTransform.
- _transformPropCSS = _prefixCSS + "transform",
- _transformOriginProp = _checkPropPrefix("transformOrigin"),
- _supports3D = (_checkPropPrefix("perspective") !== null),
- Transform = _internals.Transform = function() {
- this.skewY = 0;
- },
-
- /**
- * Parses the transform values for an element, returning an object with x, y, z, scaleX, scaleY, scaleZ, rotation, rotationX, rotationY, skewX, and skewY properties. Note: by default (for performance reasons), all skewing is combined into skewX and rotation but skewY still has a place in the transform object so that we can record how much of the skew is attributed to skewX vs skewY. Remember, a skewY of 10 looks the same as a rotation of 10 and skewX of -10.
- * @param {!Object} t target element
- * @param {Object=} cs computed style object (optional)
- * @param {boolean=} rec if true, the transform values will be recorded to the target element's _gsTransform object, like target._gsTransform = {x:0, y:0, z:0, scaleX:1...}
- * @param {boolean=} parse if true, we'll ignore any _gsTransform values that already exist on the element, and force a reparsing of the css (calculated style)
- * @return {object} object containing all of the transform properties/values like {x:0, y:0, z:0, scaleX:1...}
- */
- _getTransform = _internals.getTransform = function(t, cs, rec, parse) {
- if (t._gsTransform && rec && !parse) {
- return t._gsTransform; //if the element already has a _gsTransform, use that. Note: some browsers don't accurately return the calculated style for the transform (particularly for SVG), so it's almost always safest to just use the values we've already applied rather than re-parsing things.
- }
- var tm = rec ? t._gsTransform || new Transform() : new Transform(),
- invX = (tm.scaleX < 0), //in order to interpret things properly, we need to know if the user applied a negative scaleX previously so that we can adjust the rotation and skewX accordingly. Otherwise, if we always interpret a flipped matrix as affecting scaleY and the user only wants to tween the scaleX on multiple sequential tweens, it would keep the negative scaleY without that being the user's intent.
- min = 0.00002,
- rnd = 100000,
- minAngle = 179.99,
- minPI = minAngle * _DEG2RAD,
- zOrigin = _supports3D ? parseFloat(_getStyle(t, _transformOriginProp, cs, false, "0 0 0").split(" ")[2]) || tm.zOrigin || 0 : 0,
- s, m, i, n, dec, scaleX, scaleY, rotation, skewX, difX, difY, difR, difS;
- if (_transformProp) {
- s = _getStyle(t, _transformPropCSS, cs, true);
- } else if (t.currentStyle) {
- //for older versions of IE, we need to interpret the filter portion that is in the format: progid:DXImageTransform.Microsoft.Matrix(M11=6.123233995736766e-17, M12=-1, M21=1, M22=6.123233995736766e-17, sizingMethod='auto expand') Notice that we need to swap b and c compared to a normal matrix.
- s = t.currentStyle.filter.match(_ieGetMatrixExp);
- s = (s && s.length === 4) ? [s[0].substr(4), Number(s[2].substr(4)), Number(s[1].substr(4)), s[3].substr(4), (tm.x || 0), (tm.y || 0)].join(",") : "";
- }
- //split the matrix values out into an array (m for matrix)
- m = (s || "").match(/(?:\-|\b)[\d\-\.e]+\b/gi) || [];
- i = m.length;
- while (--i > -1) {
- n = Number(m[i]);
- m[i] = (dec = n - (n |= 0)) ? ((dec * rnd + (dec < 0 ? -0.5 : 0.5)) | 0) / rnd + n : n; //convert strings to Numbers and round to 5 decimal places to avoid issues with tiny numbers. Roughly 20x faster than Number.toFixed(). We also must make sure to round before dividing so that values like 0.9999999999 become 1 to avoid glitches in browser rendering and interpretation of flipped/rotated 3D matrices. And don't just multiply the number by rnd, floor it, and then divide by rnd because the bitwise operations max out at a 32-bit signed integer, thus it could get clipped at a relatively low value (like 22,000.00000 for example).
- }
- if (m.length === 16) {
-
- //we'll only look at these position-related 6 variables first because if x/y/z all match, it's relatively safe to assume we don't need to re-parse everything which risks losing important rotational information (like rotationX:180 plus rotationY:180 would look the same as rotation:180 - there's no way to know for sure which direction was taken based solely on the matrix3d() values)
- var a13 = m[8], a23 = m[9], a33 = m[10],
- a14 = m[12], a24 = m[13], a34 = m[14];
-
- //we manually compensate for non-zero z component of transformOrigin to work around bugs in Safari
- if (tm.zOrigin) {
- a34 = -tm.zOrigin;
- a14 = a13*a34-m[12];
- a24 = a23*a34-m[13];
- a34 = a33*a34+tm.zOrigin-m[14];
- }
-
- //only parse from the matrix if we MUST because not only is it usually unnecessary due to the fact that we store the values in the _gsTransform object, but also because it's impossible to accurately interpret rotationX, rotationY, rotationZ, scaleX, and scaleY if all are applied, so it's much better to rely on what we store. However, we must parse the first time that an object is tweened. We also assume that if the position has changed, the user must have done some styling changes outside of CSSPlugin, thus we force a parse in that scenario.
- if (!rec || parse || tm.rotationX == null) {
- var a11 = m[0], a21 = m[1], a31 = m[2], a41 = m[3],
- a12 = m[4], a22 = m[5], a32 = m[6], a42 = m[7],
- a43 = m[11],
- angle = Math.atan2(a32, a33),
- xFlip = (angle < -minPI || angle > minPI),
- t1, t2, t3, cos, sin, yFlip, zFlip;
- tm.rotationX = angle * _RAD2DEG;
- //rotationX
- if (angle) {
- cos = Math.cos(-angle);
- sin = Math.sin(-angle);
- t1 = a12*cos+a13*sin;
- t2 = a22*cos+a23*sin;
- t3 = a32*cos+a33*sin;
- a13 = a12*-sin+a13*cos;
- a23 = a22*-sin+a23*cos;
- a33 = a32*-sin+a33*cos;
- a43 = a42*-sin+a43*cos;
- a12 = t1;
- a22 = t2;
- a32 = t3;
- }
- //rotationY
- angle = Math.atan2(a13, a11);
- tm.rotationY = angle * _RAD2DEG;
- if (angle) {
- yFlip = (angle < -minPI || angle > minPI);
- cos = Math.cos(-angle);
- sin = Math.sin(-angle);
- t1 = a11*cos-a13*sin;
- t2 = a21*cos-a23*sin;
- t3 = a31*cos-a33*sin;
- a23 = a21*sin+a23*cos;
- a33 = a31*sin+a33*cos;
- a43 = a41*sin+a43*cos;
- a11 = t1;
- a21 = t2;
- a31 = t3;
- }
- //rotationZ
- angle = Math.atan2(a21, a22);
- tm.rotation = angle * _RAD2DEG;
- if (angle) {
- zFlip = (angle < -minPI || angle > minPI);
- cos = Math.cos(-angle);
- sin = Math.sin(-angle);
- a11 = a11*cos+a12*sin;
- t2 = a21*cos+a22*sin;
- a22 = a21*-sin+a22*cos;
- a32 = a31*-sin+a32*cos;
- a21 = t2;
- }
-
- if (zFlip && xFlip) {
- tm.rotation = tm.rotationX = 0;
- } else if (zFlip && yFlip) {
- tm.rotation = tm.rotationY = 0;
- } else if (yFlip && xFlip) {
- tm.rotationY = tm.rotationX = 0;
- }
-
- tm.scaleX = ((Math.sqrt(a11 * a11 + a21 * a21) * rnd + 0.5) | 0) / rnd;
- tm.scaleY = ((Math.sqrt(a22 * a22 + a23 * a23) * rnd + 0.5) | 0) / rnd;
- tm.scaleZ = ((Math.sqrt(a32 * a32 + a33 * a33) * rnd + 0.5) | 0) / rnd;
- tm.skewX = 0;
- tm.perspective = a43 ? 1 / ((a43 < 0) ? -a43 : a43) : 0;
- tm.x = a14;
- tm.y = a24;
- tm.z = a34;
- }
-
- } else if ((!_supports3D || parse || !m.length || tm.x !== m[4] || tm.y !== m[5] || (!tm.rotationX && !tm.rotationY)) && !(tm.x !== undefined && _getStyle(t, "display", cs) === "none")) { //sometimes a 6-element matrix is returned even when we performed 3D transforms, like if rotationX and rotationY are 180. In cases like this, we still need to honor the 3D transforms. If we just rely on the 2D info, it could affect how the data is interpreted, like scaleY might get set to -1 or rotation could get offset by 180 degrees. For example, do a TweenLite.to(element, 1, {css:{rotationX:180, rotationY:180}}) and then later, TweenLite.to(element, 1, {css:{rotationX:0}}) and without this conditional logic in place, it'd jump to a state of being unrotated when the 2nd tween starts. Then again, we need to honor the fact that the user COULD alter the transforms outside of CSSPlugin, like by manually applying new css, so we try to sense that by looking at x and y because if those changed, we know the changes were made outside CSSPlugin and we force a reinterpretation of the matrix values. Also, in Webkit browsers, if the element's "display" is "none", its calculated style value will always return empty, so if we've already recorded the values in the _gsTransform object, we'll just rely on those.
- var k = (m.length >= 6),
- a = k ? m[0] : 1,
- b = m[1] || 0,
- c = m[2] || 0,
- d = k ? m[3] : 1;
- tm.x = m[4] || 0;
- tm.y = m[5] || 0;
- scaleX = Math.sqrt(a * a + b * b);
- scaleY = Math.sqrt(d * d + c * c);
- rotation = (a || b) ? Math.atan2(b, a) * _RAD2DEG : tm.rotation || 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).
- skewX = (c || d) ? Math.atan2(c, d) * _RAD2DEG + rotation : tm.skewX || 0;
- difX = scaleX - Math.abs(tm.scaleX || 0);
- difY = scaleY - Math.abs(tm.scaleY || 0);
- if (Math.abs(skewX) > 90 && Math.abs(skewX) < 270) {
- if (invX) {
- scaleX *= -1;
- skewX += (rotation <= 0) ? 180 : -180;
- rotation += (rotation <= 0) ? 180 : -180;
- } else {
- scaleY *= -1;
- skewX += (skewX <= 0) ? 180 : -180;
- }
- }
- difR = (rotation - tm.rotation) % 180; //note: matching ranges would be very small (+/-0.0001) or very close to 180.
- difS = (skewX - tm.skewX) % 180;
- //if there's already a recorded _gsTransform in place for the target, we should leave those values in place unless we know things changed for sure (beyond a super small amount). This gets around ambiguous interpretations, like if scaleX and scaleY are both -1, the matrix would be the same as if the rotation was 180 with normal scaleX/scaleY. If the user tweened to particular values, those must be prioritized to ensure animation is consistent.
- if (tm.skewX === undefined || difX > min || difX < -min || difY > min || difY < -min || (difR > -minAngle && difR < minAngle && (difR * rnd) | 0 !== 0) || (difS > -minAngle && difS < minAngle && (difS * rnd) | 0 !== 0)) {
- tm.scaleX = scaleX;
- tm.scaleY = scaleY;
- tm.rotation = rotation;
- tm.skewX = skewX;
- }
- if (_supports3D) {
- tm.rotationX = tm.rotationY = tm.z = 0;
- tm.perspective = parseFloat(CSSPlugin.defaultTransformPerspective) || 0;
- tm.scaleZ = 1;
- }
- }
- tm.zOrigin = zOrigin;
-
- //some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the "e-" towards the end) and would render the object slightly off. So we round to 0 in these cases. The conditional logic here is faster than calling Math.abs(). Also, browsers tend to render a SLIGHTLY rotated object in a fuzzy way, so we need to snap to exactly 0 when appropriate.
- for (i in tm) {
- if (tm[i] < min) if (tm[i] > -min) {
- tm[i] = 0;
- }
- }
- //DEBUG: _log("parsed rotation: "+(tm.rotationX)+", "+(tm.rotationY)+", "+(tm.rotation)+", scale: "+tm.scaleX+", "+tm.scaleY+", "+tm.scaleZ+", position: "+tm.x+", "+tm.y+", "+tm.z+", perspective: "+tm.perspective);
- if (rec) {
- t._gsTransform = tm; //record to the object's _gsTransform which we use so that tweens can control individual properties independently (we need all the properties to accurately recompose the matrix in the setRatio() method)
- }
- return tm;
- },
-
- //for setting 2D transforms in IE6, IE7, and IE8 (must use a "filter" to emulate the behavior of modern day browser transforms)
- _setIETransformRatio = function(v) {
- var t = this.data, //refers to the element's _gsTransform object
- ang = -t.rotation * _DEG2RAD,
- skew = ang + t.skewX * _DEG2RAD,
- rnd = 100000,
- a = ((Math.cos(ang) * t.scaleX * rnd) | 0) / rnd,
- b = ((Math.sin(ang) * t.scaleX * rnd) | 0) / rnd,
- c = ((Math.sin(skew) * -t.scaleY * rnd) | 0) / rnd,
- d = ((Math.cos(skew) * t.scaleY * rnd) | 0) / rnd,
- style = this.t.style,
- cs = this.t.currentStyle,
- filters, val;
- if (!cs) {
- return;
- }
- val = b; //just for swapping the variables an inverting them (reused "val" to avoid creating another variable in memory). IE's filter matrix uses a non-standard matrix configuration (angle goes the opposite way, and b and c are reversed and inverted)
- b = -c;
- c = -val;
- filters = cs.filter;
- style.filter = ""; //remove filters so that we can accurately measure offsetWidth/offsetHeight
- var w = this.t.offsetWidth,
- h = this.t.offsetHeight,
- clip = (cs.position !== "absolute"),
- m = "progid:DXImageTransform.Microsoft.Matrix(M11=" + a + ", M12=" + b + ", M21=" + c + ", M22=" + d,
- ox = t.x,
- oy = t.y,
- dx, dy;
-
- //if transformOrigin is being used, adjust the offset x and y
- if (t.ox != null) {
- dx = ((t.oxp) ? w * t.ox * 0.01 : t.ox) - w / 2;
- dy = ((t.oyp) ? h * t.oy * 0.01 : t.oy) - h / 2;
- ox += dx - (dx * a + dy * b);
- oy += dy - (dx * c + dy * d);
- }
-
- if (!clip) {
- m += ", sizingMethod='auto expand')";
- } else {
- dx = (w / 2);
- dy = (h / 2);
- //translate to ensure that transformations occur around the correct origin (default is center).
- m += ", Dx=" + (dx - (dx * a + dy * b) + ox) + ", Dy=" + (dy - (dx * c + dy * d) + oy) + ")";
- }
- if (filters.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1) {
- style.filter = filters.replace(_ieSetMatrixExp, m);
- } else {
- style.filter = m + " " + filters; //we must always put the transform/matrix FIRST (before alpha(opacity=xx)) to avoid an IE bug that slices part of the object when rotation is applied with alpha.
- }
-
- //at the end or beginning of the tween, if the matrix is normal (1, 0, 0, 1) and opacity is 100 (or doesn't exist), remove the filter to improve browser performance.
- if (v === 0 || v === 1) if (a === 1) if (b === 0) if (c === 0) if (d === 1) if (!clip || m.indexOf("Dx=0, Dy=0") !== -1) if (!_opacityExp.test(filters) || parseFloat(RegExp.$1) === 100) if (filters.indexOf("gradient(" && filters.indexOf("Alpha")) === -1) {
- style.removeAttribute("filter");
- }
-
- //we must set the margins AFTER applying the filter in order to avoid some bugs in IE8 that could (in rare scenarios) cause them to be ignored intermittently (vibration).
- if (!clip) {
- var mult = (_ieVers < 8) ? 1 : -1, //in Internet Explorer 7 and before, the box model is broken, causing the browser to treat the width/height of the actual rotated filtered image as the width/height of the box itself, but Microsoft corrected that in IE8. We must use a negative offset in IE8 on the right/bottom
- marg, prop, dif;
- dx = t.ieOffsetX || 0;
- dy = t.ieOffsetY || 0;
- t.ieOffsetX = Math.round((w - ((a < 0 ? -a : a) * w + (b < 0 ? -b : b) * h)) / 2 + ox);
- t.ieOffsetY = Math.round((h - ((d < 0 ? -d : d) * h + (c < 0 ? -c : c) * w)) / 2 + oy);
- for (i = 0; i < 4; i++) {
- prop = _margins[i];
- marg = cs[prop];
- //we need to get the current margin in case it is being tweened separately (we want to respect that tween's changes)
- val = (marg.indexOf("px") !== -1) ? parseFloat(marg) : _convertToPixels(this.t, prop, parseFloat(marg), marg.replace(_suffixExp, "")) || 0;
- if (val !== t[prop]) {
- dif = (i < 2) ? -t.ieOffsetX : -t.ieOffsetY; //if another tween is controlling a margin, we cannot only apply the difference in the ieOffsets, so we essentially zero-out the dx and dy here in that case. We record the margin(s) later so that we can keep comparing them, making this code very flexible.
- } else {
- dif = (i < 2) ? dx - t.ieOffsetX : dy - t.ieOffsetY;
- }
- style[prop] = (t[prop] = Math.round( val - dif * ((i === 0 || i === 2) ? 1 : mult) )) + "px";
- }
- }
- },
-
- _set3DTransformRatio = _internals.set3DTransformRatio = function(v) {
- var t = this.data, //refers to the element's _gsTransform object
- style = this.t.style,
- angle = t.rotation * _DEG2RAD,
- sx = t.scaleX,
- sy = t.scaleY,
- sz = t.scaleZ,
- perspective = t.perspective,
- a11, a12, a13, a14, a21, a22, a23, a24, a31, a32, a33, a34, a41, a42, a43,
- zOrigin, rnd, cos, sin, t1, t2, t3, t4;
- if (v === 1 || v === 0) if (t.force3D === "auto") if (!t.rotationY && !t.rotationX && sz === 1 && !perspective && !t.z) { //on the final render (which could be 0 for a from tween), if there are no 3D aspects, render in 2D to free up memory and improve performance especially on mobile devices
- _set2DTransformRatio.call(this, v);
- return;
- }
- if (_isFirefox) {
- var n = 0.0001;
- if (sx < n && sx > -n) { //Firefox has a bug (at least in v25) that causes it to render the transparent part of 32-bit PNG images as black when displayed inside an iframe and the 3D scale is very small and doesn't change sufficiently enough between renders (like if you use a Power4.easeInOut to scale from 0 to 1 where the beginning values only change a tiny amount to begin the tween before accelerating). In this case, we force the scale to be 0.00002 instead which is visually the same but works around the Firefox issue.
- sx = sz = 0.00002;
- }
- if (sy < n && sy > -n) {
- sy = sz = 0.00002;
- }
- if (perspective && !t.z && !t.rotationX && !t.rotationY) { //Firefox has a bug that causes elements to have an odd super-thin, broken/dotted black border on elements that have a perspective set but aren't utilizing 3D space (no rotationX, rotationY, or z).
- perspective = 0;
- }
- }
- if (angle || t.skewX) {
- cos = Math.cos(angle);
- sin = Math.sin(angle);
- a11 = cos;
- a21 = sin;
- if (t.skewX) {
- angle -= t.skewX * _DEG2RAD;
- cos = Math.cos(angle);
- sin = Math.sin(angle);
- if (t.skewType === "simple") { //by default, we compensate skewing on the other axis to make it look more natural, but you can set the skewType to "simple" to use the uncompensated skewing that CSS does
- t1 = Math.tan(t.skewX * _DEG2RAD);
- t1 = Math.sqrt(1 + t1 * t1);
- cos *= t1;
- sin *= t1;
- }
- }
- a12 = -sin;
- a22 = cos;
-
- } else if (!t.rotationY && !t.rotationX && sz === 1 && !perspective) { //if we're only translating and/or 2D scaling, this is faster...
- style[_transformProp] = "translate3d(" + t.x + "px," + t.y + "px," + t.z +"px)" + ((sx !== 1 || sy !== 1) ? " scale(" + sx + "," + sy + ")" : "");
- return;
- } else {
- a11 = a22 = 1;
- a12 = a21 = 0;
- }
- a33 = 1;
- a13 = a14 = a23 = a24 = a31 = a32 = a34 = a41 = a42 = 0;
- a43 = (perspective) ? -1 / perspective : 0;
- zOrigin = t.zOrigin;
- rnd = 100000;
- angle = t.rotationY * _DEG2RAD;
- if (angle) {
- cos = Math.cos(angle);
- sin = Math.sin(angle);
- a31 = a33*-sin;
- a41 = a43*-sin;
- a13 = a11*sin;
- a23 = a21*sin;
- a33 *= cos;
- a43 *= cos;
- a11 *= cos;
- a21 *= cos;
- }
- angle = t.rotationX * _DEG2RAD;
- if (angle) {
- cos = Math.cos(angle);
- sin = Math.sin(angle);
- t1 = a12*cos+a13*sin;
- t2 = a22*cos+a23*sin;
- t3 = a32*cos+a33*sin;
- t4 = a42*cos+a43*sin;
- a13 = a12*-sin+a13*cos;
- a23 = a22*-sin+a23*cos;
- a33 = a32*-sin+a33*cos;
- a43 = a42*-sin+a43*cos;
- a12 = t1;
- a22 = t2;
- a32 = t3;
- a42 = t4;
- }
- if (sz !== 1) {
- a13*=sz;
- a23*=sz;
- a33*=sz;
- a43*=sz;
- }
- if (sy !== 1) {
- a12*=sy;
- a22*=sy;
- a32*=sy;
- a42*=sy;
- }
- if (sx !== 1) {
- a11*=sx;
- a21*=sx;
- a31*=sx;
- a41*=sx;
- }
- if (zOrigin) {
- a34 -= zOrigin;
- a14 = a13*a34;
- a24 = a23*a34;
- a34 = a33*a34+zOrigin;
- }
- //we round the x, y, and z slightly differently to allow even larger values.
- a14 = (t1 = (a14 += t.x) - (a14 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a14 : a14;
- a24 = (t1 = (a24 += t.y) - (a24 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a24 : a24;
- a34 = (t1 = (a34 += t.z) - (a34 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a34 : a34;
- style[_transformProp] = "matrix3d(" + [ (((a11 * rnd) | 0) / rnd), (((a21 * rnd) | 0) / rnd), (((a31 * rnd) | 0) / rnd), (((a41 * rnd) | 0) / rnd), (((a12 * rnd) | 0) / rnd), (((a22 * rnd) | 0) / rnd), (((a32 * rnd) | 0) / rnd), (((a42 * rnd) | 0) / rnd), (((a13 * rnd) | 0) / rnd), (((a23 * rnd) | 0) / rnd), (((a33 * rnd) | 0) / rnd), (((a43 * rnd) | 0) / rnd), a14, a24, a34, (perspective ? (1 + (-a34 / perspective)) : 1) ].join(",") + ")";
- },
-
- _set2DTransformRatio = _internals.set2DTransformRatio = function(v) {
- var t = this.data, //refers to the element's _gsTransform object
- targ = this.t,
- style = targ.style,
- ang, skew, rnd, sx, sy;
- if (t.rotationX || t.rotationY || t.z || t.force3D === true || (t.force3D === "auto" && v !== 1 && v !== 0)) { //if a 3D tween begins while a 2D one is running, we need to kick the rendering over to the 3D method. For example, imagine a yoyo-ing, infinitely repeating scale tween running, and then the object gets rotated in 3D space with a different tween.
- this.setRatio = _set3DTransformRatio;
- _set3DTransformRatio.call(this, v);
- return;
- }
- if (!t.rotation && !t.skewX) {
- style[_transformProp] = "matrix(" + t.scaleX + ",0,0," + t.scaleY + "," + t.x + "," + t.y + ")";
- } else {
- ang = t.rotation * _DEG2RAD;
- skew = ang - t.skewX * _DEG2RAD;
- rnd = 100000;
- sx = t.scaleX * rnd;
- sy = t.scaleY * rnd;
- //some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the "e-" towards the end) and would render the object slightly off. So we round to 5 decimal places.
- style[_transformProp] = "matrix(" + (((Math.cos(ang) * sx) | 0) / rnd) + "," + (((Math.sin(ang) * sx) | 0) / rnd) + "," + (((Math.sin(skew) * -sy) | 0) / rnd) + "," + (((Math.cos(skew) * sy) | 0) / rnd) + "," + t.x + "," + t.y + ")";
- }
- };
-
- _registerComplexSpecialProp("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType", {parser:function(t, e, p, cssp, pt, plugin, vars) {
- if (cssp._transform) { return pt; } //only need to parse the transform once, and only if the browser supports it.
- var m1 = cssp._transform = _getTransform(t, _cs, true, vars.parseTransform),
- style = t.style,
- min = 0.000001,
- i = _transformProps.length,
- v = vars,
- endRotations = {},
- m2, skewY, copy, orig, has3D, hasChange, dr;
- if (typeof(v.transform) === "string" && _transformProp) { //for values like transform:"rotate(60deg) scale(0.5, 0.8)"
- copy = _tempDiv.style; //don't use the original target because it might be SVG in which case some browsers don't report computed style correctly.
- copy[_transformProp] = v.transform;
- copy.display = "block"; //if display is "none", the browser often refuses to report the transform properties correctly.
- copy.position = "absolute";
- _doc.body.appendChild(_tempDiv);
- m2 = _getTransform(_tempDiv, null, false);
- _doc.body.removeChild(_tempDiv);
- } else if (typeof(v) === "object") { //for values like scaleX, scaleY, rotation, x, y, skewX, and skewY or transform:{...} (object)
- m2 = {scaleX:_parseVal((v.scaleX != null) ? v.scaleX : v.scale, m1.scaleX),
- scaleY:_parseVal((v.scaleY != null) ? v.scaleY : v.scale, m1.scaleY),
- scaleZ:_parseVal(v.scaleZ, m1.scaleZ),
- x:_parseVal(v.x, m1.x),
- y:_parseVal(v.y, m1.y),
- z:_parseVal(v.z, m1.z),
- perspective:_parseVal(v.transformPerspective, m1.perspective)};
- dr = v.directionalRotation;
- if (dr != null) {
- if (typeof(dr) === "object") {
- for (copy in dr) {
- v[copy] = dr[copy];
- }
- } else {
- v.rotation = dr;
- }
- }
- m2.rotation = _parseAngle(("rotation" in v) ? v.rotation : ("shortRotation" in v) ? v.shortRotation + "_short" : ("rotationZ" in v) ? v.rotationZ : m1.rotation, m1.rotation, "rotation", endRotations);
- if (_supports3D) {
- m2.rotationX = _parseAngle(("rotationX" in v) ? v.rotationX : ("shortRotationX" in v) ? v.shortRotationX + "_short" : m1.rotationX || 0, m1.rotationX, "rotationX", endRotations);
- m2.rotationY = _parseAngle(("rotationY" in v) ? v.rotationY : ("shortRotationY" in v) ? v.shortRotationY + "_short" : m1.rotationY || 0, m1.rotationY, "rotationY", endRotations);
- }
- m2.skewX = (v.skewX == null) ? m1.skewX : _parseAngle(v.skewX, m1.skewX);
-
- //note: for performance reasons, we combine all skewing into the skewX and rotation values, ignoring skewY but we must still record it so that we can discern how much of the overall skew is attributed to skewX vs. skewY. Otherwise, if the skewY would always act relative (tween skewY to 10deg, for example, multiple times and if we always combine things into skewX, we can't remember that skewY was 10 from last time). Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of -10 degrees.
- m2.skewY = (v.skewY == null) ? m1.skewY : _parseAngle(v.skewY, m1.skewY);
- if ((skewY = m2.skewY - m1.skewY)) {
- m2.skewX += skewY;
- m2.rotation += skewY;
- }
- }
-
- if (_supports3D && v.force3D != null) {
- m1.force3D = v.force3D;
- hasChange = true;
- }
-
- m1.skewType = v.skewType || m1.skewType || CSSPlugin.defaultSkewType;
-
- has3D = (m1.force3D || m1.z || m1.rotationX || m1.rotationY || m2.z || m2.rotationX || m2.rotationY || m2.perspective);
- if (!has3D && v.scale != null) {
- m2.scaleZ = 1; //no need to tween scaleZ.
- }
-
- while (--i > -1) {
- p = _transformProps[i];
- orig = m2[p] - m1[p];
- if (orig > min || orig < -min || _forcePT[p] != null) {
- hasChange = true;
- pt = new CSSPropTween(m1, p, m1[p], orig, pt);
- if (p in endRotations) {
- pt.e = endRotations[p]; //directional rotations typically have compensated values during the tween, but we need to make sure they end at exactly what the user requested
- }
- pt.xs0 = 0; //ensures the value stays numeric in setRatio()
- pt.plugin = plugin;
- cssp._overwriteProps.push(pt.n);
- }
- }
-
- orig = v.transformOrigin;
- if (orig || (_supports3D && has3D && m1.zOrigin)) { //if anything 3D is happening and there's a transformOrigin with a z component that's non-zero, we must ensure that the transformOrigin's z-component is set to 0 so that we can manually do those calculations to get around Safari bugs. Even if the user didn't specifically define a "transformOrigin" in this particular tween (maybe they did it via css directly).
- if (_transformProp) {
- hasChange = true;
- p = _transformOriginProp;
- orig = (orig || _getStyle(t, p, _cs, false, "50% 50%")) + ""; //cast as string to avoid errors
- pt = new CSSPropTween(style, p, 0, 0, pt, -1, "transformOrigin");
- pt.b = style[p];
- pt.plugin = plugin;
- if (_supports3D) {
- copy = m1.zOrigin;
- orig = orig.split(" ");
- m1.zOrigin = ((orig.length > 2 && !(copy !== 0 && orig[2] === "0px")) ? parseFloat(orig[2]) : copy) || 0; //Safari doesn't handle the z part of transformOrigin correctly, so we'll manually handle it in the _set3DTransformRatio() method.
- pt.xs0 = pt.e = orig[0] + " " + (orig[1] || "50%") + " 0px"; //we must define a z value of 0px specifically otherwise iOS 5 Safari will stick with the old one (if one was defined)!
- pt = new CSSPropTween(m1, "zOrigin", 0, 0, pt, -1, pt.n); //we must create a CSSPropTween for the _gsTransform.zOrigin so that it gets reset properly at the beginning if the tween runs backward (as opposed to just setting m1.zOrigin here)
- pt.b = copy;
- pt.xs0 = pt.e = m1.zOrigin;
- } else {
- pt.xs0 = pt.e = orig;
- }
-
- //for older versions of IE (6-8), we need to manually calculate things inside the setRatio() function. We record origin x and y (ox and oy) and whether or not the values are percentages (oxp and oyp).
- } else {
- _parsePosition(orig + "", m1);
- }
- }
-
- if (hasChange) {
- cssp._transformType = (has3D || this._transformType === 3) ? 3 : 2; //quicker than calling cssp._enableTransforms();
- }
- return pt;
- }, prefix:true});
-
- _registerComplexSpecialProp("boxShadow", {defaultValue:"0px 0px 0px 0px #999", prefix:true, color:true, multi:true, keyword:"inset"});
-
- _registerComplexSpecialProp("borderRadius", {defaultValue:"0px", parser:function(t, e, p, cssp, pt, plugin) {
- e = this.format(e);
- var props = ["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],
- style = t.style,
- ea1, i, es2, bs2, bs, es, bn, en, w, h, esfx, bsfx, rel, hn, vn, em;
- w = parseFloat(t.offsetWidth);
- h = parseFloat(t.offsetHeight);
- ea1 = e.split(" ");
- for (i = 0; i < props.length; i++) { //if we're dealing with percentages, we must convert things separately for the horizontal and vertical axis!
- if (this.p.indexOf("border")) { //older browsers used a prefix
- props[i] = _checkPropPrefix(props[i]);
- }
- bs = bs2 = _getStyle(t, props[i], _cs, false, "0px");
- if (bs.indexOf(" ") !== -1) {
- bs2 = bs.split(" ");
- bs = bs2[0];
- bs2 = bs2[1];
- }
- es = es2 = ea1[i];
- bn = parseFloat(bs);
- bsfx = bs.substr((bn + "").length);
- rel = (es.charAt(1) === "=");
- if (rel) {
- en = parseInt(es.charAt(0)+"1", 10);
- es = es.substr(2);
- en *= parseFloat(es);
- esfx = es.substr((en + "").length - (en < 0 ? 1 : 0)) || "";
- } else {
- en = parseFloat(es);
- esfx = es.substr((en + "").length);
- }
- if (esfx === "") {
- esfx = _suffixMap[p] || bsfx;
- }
- if (esfx !== bsfx) {
- hn = _convertToPixels(t, "borderLeft", bn, bsfx); //horizontal number (we use a bogus "borderLeft" property just because the _convertToPixels() method searches for the keywords "Left", "Right", "Top", and "Bottom" to determine of it's a horizontal or vertical property, and we need "border" in the name so that it knows it should measure relative to the element itself, not its parent.
- vn = _convertToPixels(t, "borderTop", bn, bsfx); //vertical number
- if (esfx === "%") {
- bs = (hn / w * 100) + "%";
- bs2 = (vn / h * 100) + "%";
- } else if (esfx === "em") {
- em = _convertToPixels(t, "borderLeft", 1, "em");
- bs = (hn / em) + "em";
- bs2 = (vn / em) + "em";
- } else {
- bs = hn + "px";
- bs2 = vn + "px";
- }
- if (rel) {
- es = (parseFloat(bs) + en) + esfx;
- es2 = (parseFloat(bs2) + en) + esfx;
- }
- }
- pt = _parseComplex(style, props[i], bs + " " + bs2, es + " " + es2, false, "0px", pt);
- }
- return pt;
- }, prefix:true, formatter:_getFormatter("0px 0px 0px 0px", false, true)});
- _registerComplexSpecialProp("backgroundPosition", {defaultValue:"0 0", parser:function(t, e, p, cssp, pt, plugin) {
- var bp = "background-position",
- cs = (_cs || _getComputedStyle(t, null)),
- bs = this.format( ((cs) ? _ieVers ? cs.getPropertyValue(bp + "-x") + " " + cs.getPropertyValue(bp + "-y") : cs.getPropertyValue(bp) : t.currentStyle.backgroundPositionX + " " + t.currentStyle.backgroundPositionY) || "0 0"), //Internet Explorer doesn't report background-position correctly - we must query background-position-x and background-position-y and combine them (even in IE10). Before IE9, we must do the same with the currentStyle object and use camelCase
- es = this.format(e),
- ba, ea, i, pct, overlap, src;
- if ((bs.indexOf("%") !== -1) !== (es.indexOf("%") !== -1)) {
- src = _getStyle(t, "backgroundImage").replace(_urlExp, "");
- if (src && src !== "none") {
- ba = bs.split(" ");
- ea = es.split(" ");
- _tempImg.setAttribute("src", src); //set the temp <img>'s src to the background-image so that we can measure its width/height
- i = 2;
- while (--i > -1) {
- bs = ba[i];
- pct = (bs.indexOf("%") !== -1);
- if (pct !== (ea[i].indexOf("%") !== -1)) {
- overlap = (i === 0) ? t.offsetWidth - _tempImg.width : t.offsetHeight - _tempImg.height;
- ba[i] = pct ? (parseFloat(bs) / 100 * overlap) + "px" : (parseFloat(bs) / overlap * 100) + "%";
- }
- }
- bs = ba.join(" ");
- }
- }
- return this.parseComplex(t.style, bs, es, pt, plugin);
- }, formatter:_parsePosition});
- _registerComplexSpecialProp("backgroundSize", {defaultValue:"0 0", formatter:_parsePosition});
- _registerComplexSpecialProp("perspective", {defaultValue:"0px", prefix:true});
- _registerComplexSpecialProp("perspectiveOrigin", {defaultValue:"50% 50%", prefix:true});
- _registerComplexSpecialProp("transformStyle", {prefix:true});
- _registerComplexSpecialProp("backfaceVisibility", {prefix:true});
- _registerComplexSpecialProp("userSelect", {prefix:true});
- _registerComplexSpecialProp("margin", {parser:_getEdgeParser("marginTop,marginRight,marginBottom,marginLeft")});
- _registerComplexSpecialProp("padding", {parser:_getEdgeParser("paddingTop,paddingRight,paddingBottom,paddingLeft")});
- _registerComplexSpecialProp("clip", {defaultValue:"rect(0px,0px,0px,0px)", parser:function(t, e, p, cssp, pt, plugin){
- var b, cs, delim;
- if (_ieVers < 9) { //IE8 and earlier don't report a "clip" value in the currentStyle - instead, the values are split apart into clipTop, clipRight, clipBottom, and clipLeft. Also, in IE7 and earlier, the values inside rect() are space-delimited, not comma-delimited.
- cs = t.currentStyle;
- delim = _ieVers < 8 ? " " : ",";
- b = "rect(" + cs.clipTop + delim + cs.clipRight + delim + cs.clipBottom + delim + cs.clipLeft + ")";
- e = this.format(e).split(",").join(delim);
- } else {
- b = this.format(_getStyle(t, this.p, _cs, false, this.dflt));
- e = this.format(e);
- }
- return this.parseComplex(t.style, b, e, pt, plugin);
- }});
- _registerComplexSpecialProp("textShadow", {defaultValue:"0px 0px 0px #999", color:true, multi:true});
- _registerComplexSpecialProp("autoRound,strictUnits", {parser:function(t, e, p, cssp, pt) {return pt;}}); //just so that we can ignore these properties (not tween them)
- _registerComplexSpecialProp("border", {defaultValue:"0px solid #000", parser:function(t, e, p, cssp, pt, plugin) {
- return this.parseComplex(t.style, this.format(_getStyle(t, "borderTopWidth", _cs, false, "0px") + " " + _getStyle(t, "borderTopStyle", _cs, false, "solid") + " " + _getStyle(t, "borderTopColor", _cs, false, "#000")), this.format(e), pt, plugin);
- }, color:true, formatter:function(v) {
- var a = v.split(" ");
- return a[0] + " " + (a[1] || "solid") + " " + (v.match(_colorExp) || ["#000"])[0];
- }});
- _registerComplexSpecialProp("borderWidth", {parser:_getEdgeParser("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}); //Firefox doesn't pick up on borderWidth set in style sheets (only inline).
- _registerComplexSpecialProp("float,cssFloat,styleFloat", {parser:function(t, e, p, cssp, pt, plugin) {
- var s = t.style,
- prop = ("cssFloat" in s) ? "cssFloat" : "styleFloat";
- return new CSSPropTween(s, prop, 0, 0, pt, -1, p, false, 0, s[prop], e);
- }});
-
- //opacity-related
- var _setIEOpacityRatio = function(v) {
- var t = this.t, //refers to the element's style property
- filters = t.filter || _getStyle(this.data, "filter"),
- val = (this.s + this.c * v) | 0,
- skip;
- if (val === 100) { //for older versions of IE that need to use a filter to apply opacity, we should remove the filter if opacity hits 1 in order to improve performance, but make sure there isn't a transform (matrix) or gradient in the filters.
- if (filters.indexOf("atrix(") === -1 && filters.indexOf("radient(") === -1 && filters.indexOf("oader(") === -1) {
- t.removeAttribute("filter");
- skip = (!_getStyle(this.data, "filter")); //if a class is applied that has an alpha filter, it will take effect (we don't want that), so re-apply our alpha filter in that case. We must first remove it and then check.
- } else {
- t.filter = filters.replace(_alphaFilterExp, "");
- skip = true;
- }
- }
- if (!skip) {
- if (this.xn1) {
- t.filter = filters = filters || ("alpha(opacity=" + val + ")"); //works around bug in IE7/8 that prevents changes to "visibility" from being applied properly if the filter is changed to a different alpha on the same frame.
- }
- if (filters.indexOf("pacity") === -1) { //only used if browser doesn't support the standard opacity style property (IE 7 and 8). We omit the "O" to avoid case-sensitivity issues
- if (val !== 0 || !this.xn1) { //bugs in IE7/8 won't render the filter properly if opacity is ADDED on the same frame/render as "visibility" changes (this.xn1 is 1 if this tween is an "autoAlpha" tween)
- t.filter = filters + " alpha(opacity=" + val + ")"; //we round the value because otherwise, bugs in IE7/8 can prevent "visibility" changes from being applied properly.
- }
- } else {
- t.filter = filters.replace(_opacityExp, "opacity=" + val);
- }
- }
- };
- _registerComplexSpecialProp("opacity,alpha,autoAlpha", {defaultValue:"1", parser:function(t, e, p, cssp, pt, plugin) {
- var b = parseFloat(_getStyle(t, "opacity", _cs, false, "1")),
- style = t.style,
- isAutoAlpha = (p === "autoAlpha");
- if (typeof(e) === "string" && e.charAt(1) === "=") {
- e = ((e.charAt(0) === "-") ? -1 : 1) * parseFloat(e.substr(2)) + b;
- }
- if (isAutoAlpha && b === 1 && _getStyle(t, "visibility", _cs) === "hidden" && e !== 0) { //if visibility is initially set to "hidden", we should interpret that as intent to make opacity 0 (a convenience)
- b = 0;
- }
- if (_supportsOpacity) {
- pt = new CSSPropTween(style, "opacity", b, e - b, pt);
- } else {
- pt = new CSSPropTween(style, "opacity", b * 100, (e - b) * 100, pt);
- pt.xn1 = isAutoAlpha ? 1 : 0; //we need to record whether or not this is an autoAlpha so that in the setRatio(), we know to duplicate the setting of the alpha in order to work around a bug in IE7 and IE8 that prevents changes to "visibility" from taking effect if the filter is changed to a different alpha(opacity) at the same time. Setting it to the SAME value first, then the new value works around the IE7/8 bug.
- style.zoom = 1; //helps correct an IE issue.
- pt.type = 2;
- pt.b = "alpha(opacity=" + pt.s + ")";
- pt.e = "alpha(opacity=" + (pt.s + pt.c) + ")";
- pt.data = t;
- pt.plugin = plugin;
- pt.setRatio = _setIEOpacityRatio;
- }
- if (isAutoAlpha) { //we have to create the "visibility" PropTween after the opacity one in the linked list so that they run in the order that works properly in IE8 and earlier
- pt = new CSSPropTween(style, "visibility", 0, 0, pt, -1, null, false, 0, ((b !== 0) ? "inherit" : "hidden"), ((e === 0) ? "hidden" : "inherit"));
- pt.xs0 = "inherit";
- cssp._overwriteProps.push(pt.n);
- cssp._overwriteProps.push(p);
- }
- return pt;
- }});
-
-
- var _removeProp = function(s, p) {
- if (p) {
- if (s.removeProperty) {
- if (p.substr(0,2) === "ms") { //Microsoft browsers don't conform to the standard of capping the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be "ms-transform" instead of "-ms-transform" for IE9, for example)
- p = "M" + p.substr(1);
- }
- s.removeProperty(p.replace(_capsExp, "-$1").toLowerCase());
- } else { //note: old versions of IE use "removeAttribute()" instead of "removeProperty()"
- s.removeAttribute(p);
- }
- }
- },
- _setClassNameRatio = function(v) {
- this.t._gsClassPT = this;
- if (v === 1 || v === 0) {
- this.t.setAttribute("class", (v === 0) ? this.b : this.e);
- var mpt = this.data, //first MiniPropTween
- s = this.t.style;
- while (mpt) {
- if (!mpt.v) {
- _removeProp(s, mpt.p);
- } else {
- s[mpt.p] = mpt.v;
- }
- mpt = mpt._next;
- }
- if (v === 1 && this.t._gsClassPT === this) {
- this.t._gsClassPT = null;
- }
- } else if (this.t.getAttribute("class") !== this.e) {
- this.t.setAttribute("class", this.e);
- }
- };
- _registerComplexSpecialProp("className", {parser:function(t, e, p, cssp, pt, plugin, vars) {
- var b = t.getAttribute("class") || "", //don't use t.className because it doesn't work consistently on SVG elements; getAttribute("class") and setAttribute("class", value") is more reliable.
- cssText = t.style.cssText,
- difData, bs, cnpt, cnptLookup, mpt;
- pt = cssp._classNamePT = new CSSPropTween(t, p, 0, 0, pt, 2);
- pt.setRatio = _setClassNameRatio;
- pt.pr = -11;
- _hasPriority = true;
- pt.b = b;
- bs = _getAllStyles(t, _cs);
- //if there's a className tween already operating on the target, force it to its end so that the necessary inline styles are removed and the class name is applied before we determine the end state (we don't want inline styles interfering that were there just for class-specific values)
- cnpt = t._gsClassPT;
- if (cnpt) {
- cnptLookup = {};
- mpt = cnpt.data; //first MiniPropTween which stores the inline styles - we need to force these so that the inline styles don't contaminate things. Otherwise, there's a small chance that a tween could start and the inline values match the destination values and they never get cleaned.
- while (mpt) {
- cnptLookup[mpt.p] = 1;
- mpt = mpt._next;
- }
- cnpt.setRatio(1);
- }
- t._gsClassPT = pt;
- pt.e = (e.charAt(1) !== "=") ? e : b.replace(new RegExp("\\s*\\b" + e.substr(2) + "\\b"), "") + ((e.charAt(0) === "+") ? " " + e.substr(2) : "");
- if (cssp._tween._duration) { //if it's a zero-duration tween, there's no need to tween anything or parse the data. In fact, if we switch classes temporarily (which we must do for proper parsing) and the class has a transition applied, it could cause a quick flash to the end state and back again initially in some browsers.
- t.setAttribute("class", pt.e);
- difData = _cssDif(t, bs, _getAllStyles(t), vars, cnptLookup);
- t.setAttribute("class", b);
- pt.data = difData.firstMPT;
- t.style.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).
- pt = pt.xfirst = cssp.parse(t, difData.difs, pt, plugin); //we record the CSSPropTween as the xfirst so that we can handle overwriting propertly (if "className" gets overwritten, we must kill all the properties associated with the className part of the tween, so we can loop through from xfirst to the pt itself)
- }
- return pt;
- }});
-
-
- var _setClearPropsRatio = function(v) {
- if (v === 1 || v === 0) if (this.data._totalTime === this.data._totalDuration && this.data.data !== "isFromStart") { //this.data refers to the tween. Only clear at the END of the tween (remember, from() tweens make the ratio go from 1 to 0, so we can't just check that and if the tween is the zero-duration one that's created internally to render the starting values in a from() tween, ignore that because otherwise, for example, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in).
- var s = this.t.style,
- transformParse = _specialProps.transform.parse,
- a, p, i, clearTransform;
- if (this.e === "all") {
- s.cssText = "";
- clearTransform = true;
- } else {
- a = this.e.split(",");
- i = a.length;
- while (--i > -1) {
- p = a[i];
- if (_specialProps[p]) {
- if (_specialProps[p].parse === transformParse) {
- clearTransform = true;
- } else {
- p = (p === "transformOrigin") ? _transformOriginProp : _specialProps[p].p; //ensures that special properties use the proper browser-specific property name, like "scaleX" might be "-webkit-transform" or "boxShadow" might be "-moz-box-shadow"
- }
- }
- _removeProp(s, p);
- }
- }
- if (clearTransform) {
- _removeProp(s, _transformProp);
- if (this.t._gsTransform) {
- delete this.t._gsTransform;
- }
- }
-
- }
- };
- _registerComplexSpecialProp("clearProps", {parser:function(t, e, p, cssp, pt) {
- pt = new CSSPropTween(t, p, 0, 0, pt, 2);
- pt.setRatio = _setClearPropsRatio;
- pt.e = e;
- pt.pr = -10;
- pt.data = cssp._tween;
- _hasPriority = true;
- return pt;
- }});
-
- p = "bezier,throwProps,physicsProps,physics2D".split(",");
- i = p.length;
- while (i--) {
- _registerPluginProp(p[i]);
- }
-
-
-
-
-
-
-
-
- p = CSSPlugin.prototype;
- p._firstPT = null;
-
- //gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.
- p._onInitTween = function(target, vars, tween) {
- if (!target.nodeType) { //css is only for dom elements
- return false;
- }
- this._target = target;
- this._tween = tween;
- this._vars = vars;
- _autoRound = vars.autoRound;
- _hasPriority = false;
- _suffixMap = vars.suffixMap || CSSPlugin.suffixMap;
- _cs = _getComputedStyle(target, "");
- _overwriteProps = this._overwriteProps;
- var style = target.style,
- v, pt, pt2, first, last, next, zIndex, tpt, threeD;
- if (_reqSafariFix) if (style.zIndex === "") {
- v = _getStyle(target, "zIndex", _cs);
- if (v === "auto" || v === "") {
- //corrects a bug in [non-Android] Safari that prevents it from repainting elements in their new positions if they don't have a zIndex set. We also can't just apply this inside _parseTransform() because anything that's moved in any way (like using "left" or "top" instead of transforms like "x" and "y") can be affected, so it is best to ensure that anything that's tweening has a z-index. Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly. Plus zIndex is less memory-intensive.
- this._addLazySet(style, "zIndex", 0);
- }
- }
-
- if (typeof(vars) === "string") {
- first = style.cssText;
- v = _getAllStyles(target, _cs);
- style.cssText = first + ";" + vars;
- v = _cssDif(target, v, _getAllStyles(target)).difs;
- if (!_supportsOpacity && _opacityValExp.test(vars)) {
- v.opacity = parseFloat( RegExp.$1 );
- }
- vars = v;
- style.cssText = first;
- }
- this._firstPT = pt = this.parse(target, vars, null);
-
- if (this._transformType) {
- threeD = (this._transformType === 3);
- if (!_transformProp) {
- style.zoom = 1; //helps correct an IE issue.
- } else if (_isSafari) {
- _reqSafariFix = true;
- //if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).
- if (style.zIndex === "") {
- zIndex = _getStyle(target, "zIndex", _cs);
- if (zIndex === "auto" || zIndex === "") {
- this._addLazySet(style, "zIndex", 0);
- }
- }
- //Setting WebkitBackfaceVisibility corrects 3 bugs:
- // 1) [non-Android] Safari skips rendering changes to "top" and "left" that are made on the same frame/render as a transform update.
- // 2) iOS Safari sometimes neglects to repaint elements in their new positions. Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly.
- // 3) Safari sometimes displayed odd artifacts when tweening the transform (or WebkitTransform) property, like ghosts of the edges of the element remained. Definitely a browser bug.
- //Note: we allow the user to override the auto-setting by defining WebkitBackfaceVisibility in the vars of the tween.
- if (_isSafariLT6) {
- this._addLazySet(style, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (threeD ? "visible" : "hidden"));
- }
- }
- pt2 = pt;
- while (pt2 && pt2._next) {
- pt2 = pt2._next;
- }
- tpt = new CSSPropTween(target, "transform", 0, 0, null, 2);
- this._linkCSSP(tpt, null, pt2);
- tpt.setRatio = (threeD && _supports3D) ? _set3DTransformRatio : _transformProp ? _set2DTransformRatio : _setIETransformRatio;
- tpt.data = this._transform || _getTransform(target, _cs, true);
- _overwriteProps.pop(); //we don't want to force the overwrite of all "transform" tweens of the target - we only care about individual transform properties like scaleX, rotation, etc. The CSSPropTween constructor automatically adds the property to _overwriteProps which is why we need to pop() here.
- }
-
- if (_hasPriority) {
- //reorders the linked list in order of pr (priority)
- while (pt) {
- next = pt._next;
- pt2 = first;
- while (pt2 && pt2.pr > pt.pr) {
- pt2 = pt2._next;
- }
- if ((pt._prev = pt2 ? pt2._prev : last)) {
- pt._prev._next = pt;
- } else {
- first = pt;
- }
- if ((pt._next = pt2)) {
- pt2._prev = pt;
- } else {
- last = pt;
- }
- pt = next;
- }
- this._firstPT = first;
- }
- return true;
- };
-
-
- p.parse = function(target, vars, pt, plugin) {
- var style = target.style,
- p, sp, bn, en, bs, es, bsfx, esfx, isStr, rel;
- for (p in vars) {
- es = vars[p]; //ending value string
- sp = _specialProps[p]; //SpecialProp lookup.
- if (sp) {
- pt = sp.parse(target, es, p, this, pt, plugin, vars);
-
- } else {
- bs = _getStyle(target, p, _cs) + "";
- isStr = (typeof(es) === "string");
- if (p === "color" || p === "fill" || p === "stroke" || p.indexOf("Color") !== -1 || (isStr && _rgbhslExp.test(es))) { //Opera uses background: to define color sometimes in addition to backgroundColor:
- if (!isStr) {
- es = _parseColor(es);
- es = ((es.length > 3) ? "rgba(" : "rgb(") + es.join(",") + ")";
- }
- pt = _parseComplex(style, p, bs, es, true, "transparent", pt, 0, plugin);
-
- } else if (isStr && (es.indexOf(" ") !== -1 || es.indexOf(",") !== -1)) {
- pt = _parseComplex(style, p, bs, es, true, null, pt, 0, plugin);
-
- } else {
- bn = parseFloat(bs);
- bsfx = (bn || bn === 0) ? bs.substr((bn + "").length) : ""; //remember, bs could be non-numeric like "normal" for fontWeight, so we should default to a blank suffix in that case.
-
- if (bs === "" || bs === "auto") {
- if (p === "width" || p === "height") {
- bn = _getDimension(target, p, _cs);
- bsfx = "px";
- } else if (p === "left" || p === "top") {
- bn = _calculateOffset(target, p, _cs);
- bsfx = "px";
- } else {
- bn = (p !== "opacity") ? 0 : 1;
- bsfx = "";
- }
- }
-
- rel = (isStr && es.charAt(1) === "=");
- if (rel) {
- en = parseInt(es.charAt(0) + "1", 10);
- es = es.substr(2);
- en *= parseFloat(es);
- esfx = es.replace(_suffixExp, "");
- } else {
- en = parseFloat(es);
- esfx = isStr ? es.substr((en + "").length) || "" : "";
- }
-
- if (esfx === "") {
- esfx = (p in _suffixMap) ? _suffixMap[p] : bsfx; //populate the end suffix, prioritizing the map, then if none is found, use the beginning suffix.
- }
-
- es = (en || en === 0) ? (rel ? en + bn : en) + esfx : vars[p]; //ensures that any += or -= prefixes are taken care of. Record the end value before normalizing the suffix because we always want to end the tween on exactly what they intended even if it doesn't match the beginning value's suffix.
-
- //if the beginning/ending suffixes don't match, normalize them...
- if (bsfx !== esfx) if (esfx !== "") if (en || en === 0) if (bn) { //note: if the beginning value (bn) is 0, we don't need to convert units!
- bn = _convertToPixels(target, p, bn, bsfx);
- if (esfx === "%") {
- bn /= _convertToPixels(target, p, 100, "%") / 100;
- if (vars.strictUnits !== true) { //some browsers report only "px" values instead of allowing "%" with getComputedStyle(), so we assume that if we're tweening to a %, we should start there too unless strictUnits:true is defined. This approach is particularly useful for responsive designs that use from() tweens.
- bs = bn + "%";
- }
-
- } else if (esfx === "em") {
- bn /= _convertToPixels(target, p, 1, "em");
-
- //otherwise convert to pixels.
- } else if (esfx !== "px") {
- en = _convertToPixels(target, p, en, esfx);
- esfx = "px"; //we don't use bsfx after this, so we don't need to set it to px too.
- }
- if (rel) if (en || en === 0) {
- es = (en + bn) + esfx; //the changes we made affect relative calculations, so adjust the end value here.
- }
- }
-
- if (rel) {
- en += bn;
- }
-
- if ((bn || bn === 0) && (en || en === 0)) { //faster than isNaN(). Also, previously we required en !== bn but that doesn't really gain much performance and it prevents _parseToProxy() from working properly if beginning and ending values match but need to get tweened by an external plugin anyway. For example, a bezier tween where the target starts at left:0 and has these points: [{left:50},{left:0}] wouldn't work properly because when parsing the last point, it'd match the first (current) one and a non-tweening CSSPropTween would be recorded when we actually need a normal tween (type:0) so that things get updated during the tween properly.
- pt = new CSSPropTween(style, p, bn, en - bn, pt, 0, p, (_autoRound !== false && (esfx === "px" || p === "zIndex")), 0, bs, es);
- pt.xs0 = esfx;
- //DEBUG: _log("tween "+p+" from "+pt.b+" ("+bn+esfx+") to "+pt.e+" with suffix: "+pt.xs0);
- } else if (style[p] === undefined || !es && (es + "" === "NaN" || es == null)) {
- _log("invalid " + p + " tween value: " + vars[p]);
- } else {
- pt = new CSSPropTween(style, p, en || bn || 0, 0, pt, -1, p, false, 0, bs, es);
- pt.xs0 = (es === "none" && (p === "display" || p.indexOf("Style") !== -1)) ? bs : es; //intermediate value should typically be set immediately (end value) except for "display" or things like borderTopStyle, borderBottomStyle, etc. which should use the beginning value during the tween.
- //DEBUG: _log("non-tweening value "+p+": "+pt.xs0);
- }
- }
- }
- if (plugin) if (pt && !pt.plugin) {
- pt.plugin = plugin;
- }
- }
- return pt;
- };
-
-
- //gets called every time the tween updates, passing the new ratio (typically a value between 0 and 1, but not always (for example, if an Elastic.easeOut is used, the value can jump above 1 mid-tween). It will always start and 0 and end at 1.
- p.setRatio = function(v) {
- var pt = this._firstPT,
- min = 0.000001,
- val, str, i;
-
- //at the end of the tween, we set the values to exactly what we received in order to make sure non-tweening values (like "position" or "float" or whatever) are set and so that if the beginning/ending suffixes (units) didn't match and we normalized to px, the value that the user passed in is used here. We check to see if the tween is at its beginning in case it's a from() tween in which case the ratio will actually go from 1 to 0 over the course of the tween (backwards).
- if (v === 1 && (this._tween._time === this._tween._duration || this._tween._time === 0)) {
- while (pt) {
- if (pt.type !== 2) {
- pt.t[pt.p] = pt.e;
- } else {
- pt.setRatio(v);
- }
- pt = pt._next;
- }
-
- } else if (v || !(this._tween._time === this._tween._duration || this._tween._time === 0) || this._tween._rawPrevTime === -0.000001) {
- while (pt) {
- val = pt.c * v + pt.s;
- if (pt.r) {
- val = Math.round(val);
- } else if (val < min) if (val > -min) {
- val = 0;
- }
- if (!pt.type) {
- pt.t[pt.p] = val + pt.xs0;
- } else if (pt.type === 1) { //complex value (one that typically has multiple numbers inside a string, like "rect(5px,10px,20px,25px)"
- i = pt.l;
- if (i === 2) {
- pt.t[pt.p] = pt.xs0 + val + pt.xs1 + pt.xn1 + pt.xs2;
- } else if (i === 3) {
- pt.t[pt.p] = pt.xs0 + val + pt.xs1 + pt.xn1 + pt.xs2 + pt.xn2 + pt.xs3;
- } else if (i === 4) {
- pt.t[pt.p] = pt.xs0 + val + pt.xs1 + pt.xn1 + pt.xs2 + pt.xn2 + pt.xs3 + pt.xn3 + pt.xs4;
- } else if (i === 5) {
- pt.t[pt.p] = pt.xs0 + val + pt.xs1 + pt.xn1 + pt.xs2 + pt.xn2 + pt.xs3 + pt.xn3 + pt.xs4 + pt.xn4 + pt.xs5;
- } else {
- str = pt.xs0 + val + pt.xs1;
- for (i = 1; i < pt.l; i++) {
- str += pt["xn"+i] + pt["xs"+(i+1)];
- }
- pt.t[pt.p] = str;
- }
-
- } else if (pt.type === -1) { //non-tweening value
- pt.t[pt.p] = pt.xs0;
-
- } else if (pt.setRatio) { //custom setRatio() for things like SpecialProps, external plugins, etc.
- pt.setRatio(v);
- }
- pt = pt._next;
- }
-
- //if the tween is reversed all the way back to the beginning, we need to restore the original values which may have different units (like % instead of px or em or whatever).
- } else {
- while (pt) {
- if (pt.type !== 2) {
- pt.t[pt.p] = pt.b;
- } else {
- pt.setRatio(v);
- }
- pt = pt._next;
- }
- }
- };
-
- /**
- * @private
- * Forces rendering of the target's transforms (rotation, scale, etc.) whenever the CSSPlugin's setRatio() is called.
- * Basically, this tells the CSSPlugin to create a CSSPropTween (type 2) after instantiation that runs last in the linked
- * list and calls the appropriate (3D or 2D) rendering function. We separate this into its own method so that we can call
- * it from other plugins like BezierPlugin if, for example, it needs to apply an autoRotation and this CSSPlugin
- * doesn't have any transform-related properties of its own. You can call this method as many times as you
- * want and it won't create duplicate CSSPropTweens.
- *
- * @param {boolean} threeD if true, it should apply 3D tweens (otherwise, just 2D ones are fine and typically faster)
- */
- p._enableTransforms = function(threeD) {
- this._transformType = (threeD || this._transformType === 3) ? 3 : 2;
- this._transform = this._transform || _getTransform(this._target, _cs, true); //ensures that the element has a _gsTransform property with the appropriate values.
- };
-
- var lazySet = function(v) {
- this.t[this.p] = this.e;
- this.data._linkCSSP(this, this._next, null, true); //we purposefully keep this._next even though it'd make sense to null it, but this is a performance optimization, as this happens during the while (pt) {} loop in setRatio() at the bottom of which it sets pt = pt._next, so if we null it, the linked list will be broken in that loop.
- };
- /** @private Gives us a way to set a value on the first render (and only the first render). **/
- p._addLazySet = function(t, p, v) {
- var pt = this._firstPT = new CSSPropTween(t, p, 0, 0, this._firstPT, 2);
- pt.e = v;
- pt.setRatio = lazySet;
- pt.data = this;
- };
-
- /** @private **/
- p._linkCSSP = function(pt, next, prev, remove) {
- if (pt) {
- if (next) {
- next._prev = pt;
- }
- if (pt._next) {
- pt._next._prev = pt._prev;
- }
- if (pt._prev) {
- pt._prev._next = pt._next;
- } else if (this._firstPT === pt) {
- this._firstPT = pt._next;
- remove = true; //just to prevent resetting this._firstPT 5 lines down in case pt._next is null. (optimized for speed)
- }
- if (prev) {
- prev._next = pt;
- } else if (!remove && this._firstPT === null) {
- this._firstPT = pt;
- }
- pt._next = next;
- pt._prev = prev;
- }
- return pt;
- };
-
- //we need to make sure that if alpha or autoAlpha is killed, opacity is too. And autoAlpha affects the "visibility" property.
- p._kill = function(lookup) {
- var copy = lookup,
- pt, p, xfirst;
- if (lookup.autoAlpha || lookup.alpha) {
- copy = {};
- for (p in lookup) { //copy the lookup so that we're not changing the original which may be passed elsewhere.
- copy[p] = lookup[p];
- }
- copy.opacity = 1;
- if (copy.autoAlpha) {
- copy.visibility = 1;
- }
- }
- if (lookup.className && (pt = this._classNamePT)) { //for className tweens, we need to kill any associated CSSPropTweens too; a linked list starts at the className's "xfirst".
- xfirst = pt.xfirst;
- if (xfirst && xfirst._prev) {
- this._linkCSSP(xfirst._prev, pt._next, xfirst._prev._prev); //break off the prev
- } else if (xfirst === this._firstPT) {
- this._firstPT = pt._next;
- }
- if (pt._next) {
- this._linkCSSP(pt._next, pt._next._next, xfirst._prev);
- }
- this._classNamePT = null;
- }
- return TweenPlugin.prototype._kill.call(this, copy);
- };
-
-
-
- //used by cascadeTo() for gathering all the style properties of each child element into an array for comparison.
- var _getChildStyles = function(e, props, targets) {
- var children, i, child, type;
- if (e.slice) {
- i = e.length;
- while (--i > -1) {
- _getChildStyles(e[i], props, targets);
- }
- return;
- }
- children = e.childNodes;
- i = children.length;
- while (--i > -1) {
- child = children[i];
- type = child.type;
- if (child.style) {
- props.push(_getAllStyles(child));
- if (targets) {
- targets.push(child);
- }
- }
- if ((type === 1 || type === 9 || type === 11) && child.childNodes.length) {
- _getChildStyles(child, props, targets);
- }
- }
- };
-
- /**
- * Typically only useful for className tweens that may affect child elements, this method creates a TweenLite
- * and then compares the style properties of all the target's child elements at the tween's start and end, and
- * if any are different, it also creates tweens for those and returns an array containing ALL of the resulting
- * tweens (so that you can easily add() them to a TimelineLite, for example). The reason this functionality is
- * wrapped into a separate static method of CSSPlugin instead of being integrated into all regular className tweens
- * is because it creates entirely new tweens that may have completely different targets than the original tween,
- * so if they were all lumped into the original tween instance, it would be inconsistent with the rest of the API
- * and it would create other problems. For example:
- * - If I create a tween of elementA, that tween instance may suddenly change its target to include 50 other elements (unintuitive if I specifically defined the target I wanted)
- * - We can't just create new independent tweens because otherwise, what happens if the original/parent tween is reversed or pause or dropped into a TimelineLite for tight control? You'd expect that tween's behavior to affect all the others.
- * - Analyzing every style property of every child before and after the tween is an expensive operation when there are many children, so this behavior shouldn't be imposed on all className tweens by default, especially since it's probably rare that this extra functionality is needed.
- *
- * @param {Object} target object to be tweened
- * @param {number} Duration in seconds (or frames for frames-based tweens)
- * @param {Object} Object containing the end values, like {className:"newClass", ease:Linear.easeNone}
- * @return {Array} An array of TweenLite instances
- */
- CSSPlugin.cascadeTo = function(target, duration, vars) {
- var tween = TweenLite.to(target, duration, vars),
- results = [tween],
- b = [],
- e = [],
- targets = [],
- _reservedProps = TweenLite._internals.reservedProps,
- i, difs, p;
- target = tween._targets || tween.target;
- _getChildStyles(target, b, targets);
- tween.render(duration, true);
- _getChildStyles(target, e);
- tween.render(0, true);
- tween._enabled(true);
- i = targets.length;
- while (--i > -1) {
- difs = _cssDif(targets[i], b[i], e[i]);
- if (difs.firstMPT) {
- difs = difs.difs;
- for (p in vars) {
- if (_reservedProps[p]) {
- difs[p] = vars[p];
- }
- }
- results.push( TweenLite.to(targets[i], duration, difs) );
- }
- }
- return results;
- };
-
- TweenPlugin.activate([CSSPlugin]);
- return CSSPlugin;
-
- }, true);
-
-
-
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * RoundPropsPlugin
- * ----------------------------------------------------------------
- */
- (function() {
-
- var RoundPropsPlugin = window._gsDefine.plugin({
- propName: "roundProps",
- priority: -1,
- API: 2,
-
- //called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.
- init: function(target, value, tween) {
- this._tween = tween;
- return true;
- }
-
- }),
- p = RoundPropsPlugin.prototype;
-
- p._onInitAllProps = function() {
- var tween = this._tween,
- rp = (tween.vars.roundProps instanceof Array) ? tween.vars.roundProps : tween.vars.roundProps.split(","),
- i = rp.length,
- lookup = {},
- rpt = tween._propLookup.roundProps,
- prop, pt, next;
- while (--i > -1) {
- lookup[rp[i]] = 1;
- }
- i = rp.length;
- while (--i > -1) {
- prop = rp[i];
- pt = tween._firstPT;
- while (pt) {
- next = pt._next; //record here, because it may get removed
- if (pt.pg) {
- pt.t._roundProps(lookup, true);
- } else if (pt.n === prop) {
- this._add(pt.t, prop, pt.s, pt.c);
- //remove from linked list
- if (next) {
- next._prev = pt._prev;
- }
- if (pt._prev) {
- pt._prev._next = next;
- } else if (tween._firstPT === pt) {
- tween._firstPT = next;
- }
- pt._next = pt._prev = null;
- tween._propLookup[prop] = rpt;
- }
- pt = next;
- }
- }
- return false;
- };
-
- p._add = function(target, p, s, c) {
- this._addTween(target, p, s, s + c, p, true);
- this._overwriteProps.push(p);
- };
-
- }());
-
-
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * AttrPlugin
- * ----------------------------------------------------------------
- */
- window._gsDefine.plugin({
- propName: "attr",
- API: 2,
- version: "0.3.2",
-
- //called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.
- init: function(target, value, tween) {
- var p, start, end;
- if (typeof(target.setAttribute) !== "function") {
- return false;
- }
- this._target = target;
- this._proxy = {};
- this._start = {}; // we record start and end values exactly as they are in case they're strings (not numbers) - we need to be able to revert to them cleanly.
- this._end = {};
- for (p in value) {
- this._start[p] = this._proxy[p] = start = target.getAttribute(p);
- end = this._addTween(this._proxy, p, parseFloat(start), value[p], p);
- this._end[p] = end ? end.s + end.c : value[p];
- this._overwriteProps.push(p);
- }
- return true;
- },
-
- //called each time the values should be updated, and the ratio gets passed as the only parameter (typically it's a value between 0 and 1, but it can exceed those when using an ease like Elastic.easeOut or Back.easeOut, etc.)
- set: function(ratio) {
- this._super.setRatio.call(this, ratio);
- var props = this._overwriteProps,
- i = props.length,
- lookup = (ratio === 1) ? this._end : ratio ? this._proxy : this._start,
- p;
- while (--i > -1) {
- p = props[i];
- this._target.setAttribute(p, lookup[p] + "");
- }
- }
-
- });
-
-
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * DirectionalRotationPlugin
- * ----------------------------------------------------------------
- */
- window._gsDefine.plugin({
- propName: "directionalRotation",
- API: 2,
- version: "0.2.0",
-
- //called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.
- init: function(target, value, tween) {
- if (typeof(value) !== "object") {
- value = {rotation:value};
- }
- this.finals = {};
- var cap = (value.useRadians === true) ? Math.PI * 2 : 360,
- min = 0.000001,
- p, v, start, end, dif, split;
- for (p in value) {
- if (p !== "useRadians") {
- split = (value[p] + "").split("_");
- v = split[0];
- start = parseFloat( (typeof(target[p]) !== "function") ? target[p] : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]() );
- end = this.finals[p] = (typeof(v) === "string" && v.charAt(1) === "=") ? start + parseInt(v.charAt(0) + "1", 10) * Number(v.substr(2)) : Number(v) || 0;
- dif = end - start;
- if (split.length) {
- v = split.join("_");
- if (v.indexOf("short") !== -1) {
- dif = dif % cap;
- if (dif !== dif % (cap / 2)) {
- dif = (dif < 0) ? dif + cap : dif - cap;
- }
- }
- if (v.indexOf("_cw") !== -1 && dif < 0) {
- dif = ((dif + cap * 9999999999) % cap) - ((dif / cap) | 0) * cap;
- } else if (v.indexOf("ccw") !== -1 && dif > 0) {
- dif = ((dif - cap * 9999999999) % cap) - ((dif / cap) | 0) * cap;
- }
- }
- if (dif > min || dif < -min) {
- this._addTween(target, p, start, start + dif, p);
- this._overwriteProps.push(p);
- }
- }
- }
- return true;
- },
-
- //called each time the values should be updated, and the ratio gets passed as the only parameter (typically it's a value between 0 and 1, but it can exceed those when using an ease like Elastic.easeOut or Back.easeOut, etc.)
- set: function(ratio) {
- var pt;
- if (ratio !== 1) {
- this._super.setRatio.call(this, ratio);
- } else {
- pt = this._firstPT;
- while (pt) {
- if (pt.f) {
- pt.t[pt.p](this.finals[pt.p]);
- } else {
- pt.t[pt.p] = this.finals[pt.p];
- }
- pt = pt._next;
- }
- }
- }
-
- })._autoCSS = true;
-
-
-
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * EasePack
- * ----------------------------------------------------------------
- */
- window._gsDefine("easing.Back", ["easing.Ease"], function(Ease) {
-
- var w = (window.GreenSockGlobals || window),
- gs = w.com.greensock,
- _2PI = Math.PI * 2,
- _HALF_PI = Math.PI / 2,
- _class = gs._class,
- _create = function(n, f) {
- var C = _class("easing." + n, function(){}, true),
- p = C.prototype = new Ease();
- p.constructor = C;
- p.getRatio = f;
- return C;
- },
- _easeReg = Ease.register || function(){}, //put an empty function in place just as a safety measure in case someone loads an OLD version of TweenLite.js where Ease.register doesn't exist.
- _wrap = function(name, EaseOut, EaseIn, EaseInOut, aliases) {
- var C = _class("easing."+name, {
- easeOut:new EaseOut(),
- easeIn:new EaseIn(),
- easeInOut:new EaseInOut()
- }, true);
- _easeReg(C, name);
- return C;
- },
- EasePoint = function(time, value, next) {
- this.t = time;
- this.v = value;
- if (next) {
- this.next = next;
- next.prev = this;
- this.c = next.v - value;
- this.gap = next.t - time;
- }
- },
-
- //Back
- _createBack = function(n, f) {
- var C = _class("easing." + n, function(overshoot) {
- this._p1 = (overshoot || overshoot === 0) ? overshoot : 1.70158;
- this._p2 = this._p1 * 1.525;
- }, true),
- p = C.prototype = new Ease();
- p.constructor = C;
- p.getRatio = f;
- p.config = function(overshoot) {
- return new C(overshoot);
- };
- return C;
- },
-
- Back = _wrap("Back",
- _createBack("BackOut", function(p) {
- return ((p = p - 1) * p * ((this._p1 + 1) * p + this._p1) + 1);
- }),
- _createBack("BackIn", function(p) {
- return p * p * ((this._p1 + 1) * p - this._p1);
- }),
- _createBack("BackInOut", function(p) {
- return ((p *= 2) < 1) ? 0.5 * p * p * ((this._p2 + 1) * p - this._p2) : 0.5 * ((p -= 2) * p * ((this._p2 + 1) * p + this._p2) + 2);
- })
- ),
-
-
- //SlowMo
- SlowMo = _class("easing.SlowMo", function(linearRatio, power, yoyoMode) {
- power = (power || power === 0) ? power : 0.7;
- if (linearRatio == null) {
- linearRatio = 0.7;
- } else if (linearRatio > 1) {
- linearRatio = 1;
- }
- this._p = (linearRatio !== 1) ? power : 0;
- this._p1 = (1 - linearRatio) / 2;
- this._p2 = linearRatio;
- this._p3 = this._p1 + this._p2;
- this._calcEnd = (yoyoMode === true);
- }, true),
- p = SlowMo.prototype = new Ease(),
- SteppedEase, RoughEase, _createElastic;
-
- p.constructor = SlowMo;
- p.getRatio = function(p) {
- var r = p + (0.5 - p) * this._p;
- if (p < this._p1) {
- return this._calcEnd ? 1 - ((p = 1 - (p / this._p1)) * p) : r - ((p = 1 - (p / this._p1)) * p * p * p * r);
- } else if (p > this._p3) {
- return this._calcEnd ? 1 - (p = (p - this._p3) / this._p1) * p : r + ((p - r) * (p = (p - this._p3) / this._p1) * p * p * p);
- }
- return this._calcEnd ? 1 : r;
- };
- SlowMo.ease = new SlowMo(0.7, 0.7);
-
- p.config = SlowMo.config = function(linearRatio, power, yoyoMode) {
- return new SlowMo(linearRatio, power, yoyoMode);
- };
-
-
- //SteppedEase
- SteppedEase = _class("easing.SteppedEase", function(steps) {
- steps = steps || 1;
- this._p1 = 1 / steps;
- this._p2 = steps + 1;
- }, true);
- p = SteppedEase.prototype = new Ease();
- p.constructor = SteppedEase;
- p.getRatio = function(p) {
- if (p < 0) {
- p = 0;
- } else if (p >= 1) {
- p = 0.999999999;
- }
- return ((this._p2 * p) >> 0) * this._p1;
- };
- p.config = SteppedEase.config = function(steps) {
- return new SteppedEase(steps);
- };
-
-
- //RoughEase
- RoughEase = _class("easing.RoughEase", function(vars) {
- vars = vars || {};
- var taper = vars.taper || "none",
- a = [],
- cnt = 0,
- points = (vars.points || 20) | 0,
- i = points,
- randomize = (vars.randomize !== false),
- clamp = (vars.clamp === true),
- template = (vars.template instanceof Ease) ? vars.template : null,
- strength = (typeof(vars.strength) === "number") ? vars.strength * 0.4 : 0.4,
- x, y, bump, invX, obj, pnt;
- while (--i > -1) {
- x = randomize ? Math.random() : (1 / points) * i;
- y = template ? template.getRatio(x) : x;
- if (taper === "none") {
- bump = strength;
- } else if (taper === "out") {
- invX = 1 - x;
- bump = invX * invX * strength;
- } else if (taper === "in") {
- bump = x * x * strength;
- } else if (x < 0.5) { //"both" (start)
- invX = x * 2;
- bump = invX * invX * 0.5 * strength;
- } else { //"both" (end)
- invX = (1 - x) * 2;
- bump = invX * invX * 0.5 * strength;
- }
- if (randomize) {
- y += (Math.random() * bump) - (bump * 0.5);
- } else if (i % 2) {
- y += bump * 0.5;
- } else {
- y -= bump * 0.5;
- }
- if (clamp) {
- if (y > 1) {
- y = 1;
- } else if (y < 0) {
- y = 0;
- }
- }
- a[cnt++] = {x:x, y:y};
- }
- a.sort(function(a, b) {
- return a.x - b.x;
- });
-
- pnt = new EasePoint(1, 1, null);
- i = points;
- while (--i > -1) {
- obj = a[i];
- pnt = new EasePoint(obj.x, obj.y, pnt);
- }
-
- this._prev = new EasePoint(0, 0, (pnt.t !== 0) ? pnt : pnt.next);
- }, true);
- p = RoughEase.prototype = new Ease();
- p.constructor = RoughEase;
- p.getRatio = function(p) {
- var pnt = this._prev;
- if (p > pnt.t) {
- while (pnt.next && p >= pnt.t) {
- pnt = pnt.next;
- }
- pnt = pnt.prev;
- } else {
- while (pnt.prev && p <= pnt.t) {
- pnt = pnt.prev;
- }
- }
- this._prev = pnt;
- return (pnt.v + ((p - pnt.t) / pnt.gap) * pnt.c);
- };
- p.config = function(vars) {
- return new RoughEase(vars);
- };
- RoughEase.ease = new RoughEase();
-
-
- //Bounce
- _wrap("Bounce",
- _create("BounceOut", function(p) {
- if (p < 1 / 2.75) {
- return 7.5625 * p * p;
- } else if (p < 2 / 2.75) {
- return 7.5625 * (p -= 1.5 / 2.75) * p + 0.75;
- } else if (p < 2.5 / 2.75) {
- return 7.5625 * (p -= 2.25 / 2.75) * p + 0.9375;
- }
- return 7.5625 * (p -= 2.625 / 2.75) * p + 0.984375;
- }),
- _create("BounceIn", function(p) {
- if ((p = 1 - p) < 1 / 2.75) {
- return 1 - (7.5625 * p * p);
- } else if (p < 2 / 2.75) {
- return 1 - (7.5625 * (p -= 1.5 / 2.75) * p + 0.75);
- } else if (p < 2.5 / 2.75) {
- return 1 - (7.5625 * (p -= 2.25 / 2.75) * p + 0.9375);
- }
- return 1 - (7.5625 * (p -= 2.625 / 2.75) * p + 0.984375);
- }),
- _create("BounceInOut", function(p) {
- var invert = (p < 0.5);
- if (invert) {
- p = 1 - (p * 2);
- } else {
- p = (p * 2) - 1;
- }
- if (p < 1 / 2.75) {
- p = 7.5625 * p * p;
- } else if (p < 2 / 2.75) {
- p = 7.5625 * (p -= 1.5 / 2.75) * p + 0.75;
- } else if (p < 2.5 / 2.75) {
- p = 7.5625 * (p -= 2.25 / 2.75) * p + 0.9375;
- } else {
- p = 7.5625 * (p -= 2.625 / 2.75) * p + 0.984375;
- }
- return invert ? (1 - p) * 0.5 : p * 0.5 + 0.5;
- })
- );
-
-
- //CIRC
- _wrap("Circ",
- _create("CircOut", function(p) {
- return Math.sqrt(1 - (p = p - 1) * p);
- }),
- _create("CircIn", function(p) {
- return -(Math.sqrt(1 - (p * p)) - 1);
- }),
- _create("CircInOut", function(p) {
- return ((p*=2) < 1) ? -0.5 * (Math.sqrt(1 - p * p) - 1) : 0.5 * (Math.sqrt(1 - (p -= 2) * p) + 1);
- })
- );
-
-
- //Elastic
- _createElastic = function(n, f, def) {
- var C = _class("easing." + n, function(amplitude, period) {
- this._p1 = amplitude || 1;
- this._p2 = period || def;
- this._p3 = this._p2 / _2PI * (Math.asin(1 / this._p1) || 0);
- }, true),
- p = C.prototype = new Ease();
- p.constructor = C;
- p.getRatio = f;
- p.config = function(amplitude, period) {
- return new C(amplitude, period);
- };
- return C;
- };
- _wrap("Elastic",
- _createElastic("ElasticOut", function(p) {
- return this._p1 * Math.pow(2, -10 * p) * Math.sin( (p - this._p3) * _2PI / this._p2 ) + 1;
- }, 0.3),
- _createElastic("ElasticIn", function(p) {
- return -(this._p1 * Math.pow(2, 10 * (p -= 1)) * Math.sin( (p - this._p3) * _2PI / this._p2 ));
- }, 0.3),
- _createElastic("ElasticInOut", function(p) {
- return ((p *= 2) < 1) ? -0.5 * (this._p1 * Math.pow(2, 10 * (p -= 1)) * Math.sin( (p - this._p3) * _2PI / this._p2)) : this._p1 * Math.pow(2, -10 *(p -= 1)) * Math.sin( (p - this._p3) * _2PI / this._p2 ) *0.5 + 1;
- }, 0.45)
- );
-
-
- //Expo
- _wrap("Expo",
- _create("ExpoOut", function(p) {
- return 1 - Math.pow(2, -10 * p);
- }),
- _create("ExpoIn", function(p) {
- return Math.pow(2, 10 * (p - 1)) - 0.001;
- }),
- _create("ExpoInOut", function(p) {
- return ((p *= 2) < 1) ? 0.5 * Math.pow(2, 10 * (p - 1)) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
- })
- );
-
-
- //Sine
- _wrap("Sine",
- _create("SineOut", function(p) {
- return Math.sin(p * _HALF_PI);
- }),
- _create("SineIn", function(p) {
- return -Math.cos(p * _HALF_PI) + 1;
- }),
- _create("SineInOut", function(p) {
- return -0.5 * (Math.cos(Math.PI * p) - 1);
- })
- );
-
- _class("easing.EaseLookup", {
- find:function(s) {
- return Ease.map[s];
- }
- }, true);
-
- //register the non-standard eases
- _easeReg(w.SlowMo, "SlowMo", "ease,");
- _easeReg(RoughEase, "RoughEase", "ease,");
- _easeReg(SteppedEase, "SteppedEase", "ease,");
-
- return Back;
-
- }, true);
-
-
-});
-
-
-
-
-
-
-
-
-
-
-
-/*
- * ----------------------------------------------------------------
- * Base classes like TweenLite, SimpleTimeline, Ease, Ticker, etc.
- * ----------------------------------------------------------------
- */
-(function(window) {
-
- "use strict";
- var _globals = window.GreenSockGlobals || window;
- if (_globals.TweenLite) {
- return; //in case the core set of classes is already loaded, don't instantiate twice.
- }
- var _namespace = function(ns) {
- var a = ns.split("."),
- p = _globals, i;
- for (i = 0; i < a.length; i++) {
- p[a[i]] = p = p[a[i]] || {};
- }
- return p;
- },
- gs = _namespace("com.greensock"),
- _tinyNum = 0.0000000001,
- _slice = [].slice,
- _emptyFunc = function() {},
- _isArray = (function() { //works around issues in iframe environments where the Array global isn't shared, thus if the object originates in a different window/iframe, "(obj instanceof Array)" will evaluate false. We added some speed optimizations to avoid Object.prototype.toString.call() unless it's absolutely necessary because it's VERY slow (like 20x slower)
- var toString = Object.prototype.toString,
- array = toString.call([]);
- return function(obj) {
- return obj != null && (obj instanceof Array || (typeof(obj) === "object" && !!obj.push && toString.call(obj) === array));
- };
- }()),
- a, i, p, _ticker, _tickerActive,
- _defLookup = {},
-
- /**
- * @constructor
- * Defines a GreenSock class, optionally with an array of dependencies that must be instantiated first and passed into the definition.
- * This allows users to load GreenSock JS files in any order even if they have interdependencies (like CSSPlugin extends TweenPlugin which is
- * inside TweenLite.js, but if CSSPlugin is loaded first, it should wait to run its code until TweenLite.js loads and instantiates TweenPlugin
- * and then pass TweenPlugin to CSSPlugin's definition). This is all done automatically and internally.
- *
- * Every definition will be added to a "com.greensock" global object (typically window, but if a window.GreenSockGlobals object is found,
- * it will go there as of v1.7). For example, TweenLite will be found at window.com.greensock.TweenLite and since it's a global class that should be available anywhere,
- * it is ALSO referenced at window.TweenLite. However some classes aren't considered global, like the base com.greensock.core.Animation class, so
- * those will only be at the package like window.com.greensock.core.Animation. Again, if you define a GreenSockGlobals object on the window, everything
- * gets tucked neatly inside there instead of on the window directly. This allows you to do advanced things like load multiple versions of GreenSock
- * files and put them into distinct objects (imagine a banner ad uses a newer version but the main site uses an older one). In that case, you could
- * sandbox the banner one like:
- *
- * <script>
- * var gs = window.GreenSockGlobals = {}; //the newer version we're about to load could now be referenced in a "gs" object, like gs.TweenLite.to(...). Use whatever alias you want as long as it's unique, "gs" or "banner" or whatever.
- * </script>
- * <script src="js/greensock/v1.7/TweenMax.js"></script>
- * <script>
- * window.GreenSockGlobals = null; //reset it back to null so that the next load of TweenMax affects the window and we can reference things directly like TweenLite.to(...)
- * </script>
- * <script src="js/greensock/v1.6/TweenMax.js"></script>
- * <script>
- * gs.TweenLite.to(...); //would use v1.7
- * TweenLite.to(...); //would use v1.6
- * </script>
- *
- * @param {!string} ns The namespace of the class definition, leaving off "com.greensock." as that's assumed. For example, "TweenLite" or "plugins.CSSPlugin" or "easing.Back".
- * @param {!Array.<string>} dependencies An array of dependencies (described as their namespaces minus "com.greensock." prefix). For example ["TweenLite","plugins.TweenPlugin","core.Animation"]
- * @param {!function():Object} func The function that should be called and passed the resolved dependencies which will return the actual class for this definition.
- * @param {boolean=} global If true, the class will be added to the global scope (typically window unless you define a window.GreenSockGlobals object)
- */
- Definition = function(ns, dependencies, func, global) {
- this.sc = (_defLookup[ns]) ? _defLookup[ns].sc : []; //subclasses
- _defLookup[ns] = this;
- this.gsClass = null;
- this.func = func;
- var _classes = [];
- this.check = function(init) {
- var i = dependencies.length,
- missing = i,
- cur, a, n, cl;
- while (--i > -1) {
- if ((cur = _defLookup[dependencies[i]] || new Definition(dependencies[i], [])).gsClass) {
- _classes[i] = cur.gsClass;
- missing--;
- } else if (init) {
- cur.sc.push(this);
- }
- }
- if (missing === 0 && func) {
- a = ("com.greensock." + ns).split(".");
- n = a.pop();
- cl = _namespace(a.join("."))[n] = this.gsClass = func.apply(func, _classes);
-
- //exports to multiple environments
- if (global) {
- _globals[n] = cl; //provides a way to avoid global namespace pollution. By default, the main classes like TweenLite, Power1, Strong, etc. are added to window unless a GreenSockGlobals is defined. So if you want to have things added to a custom object instead, just do something like window.GreenSockGlobals = {} before loading any GreenSock files. You can even set up an alias like window.GreenSockGlobals = windows.gs = {} so that you can access everything like gs.TweenLite. Also remember that ALL classes are added to the window.com.greensock object (in their respective packages, like com.greensock.easing.Power1, com.greensock.TweenLite, etc.)
- if (typeof(define) === "function" && define.amd){ //AMD
- define((window.GreenSockAMDPath ? window.GreenSockAMDPath + "/" : "") + ns.split(".").join("/"), [], function() { return cl; });
- } else if (typeof(module) !== "undefined" && module.exports){ //node
- module.exports = cl;
- }
- }
- for (i = 0; i < this.sc.length; i++) {
- this.sc[i].check();
- }
- }
- };
- this.check(true);
- },
-
- //used to create Definition instances (which basically registers a class that has dependencies).
- _gsDefine = window._gsDefine = function(ns, dependencies, func, global) {
- return new Definition(ns, dependencies, func, global);
- },
-
- //a quick way to create a class that doesn't have any dependencies. Returns the class, but first registers it in the GreenSock namespace so that other classes can grab it (other classes might be dependent on the class).
- _class = gs._class = function(ns, func, global) {
- func = func || function() {};
- _gsDefine(ns, [], function(){ return func; }, global);
- return func;
- };
-
- _gsDefine.globals = _globals;
-
-
-
-/*
- * ----------------------------------------------------------------
- * Ease
- * ----------------------------------------------------------------
- */
- var _baseParams = [0, 0, 1, 1],
- _blankArray = [],
- Ease = _class("easing.Ease", function(func, extraParams, type, power) {
- this._func = func;
- this._type = type || 0;
- this._power = power || 0;
- this._params = extraParams ? _baseParams.concat(extraParams) : _baseParams;
- }, true),
- _easeMap = Ease.map = {},
- _easeReg = Ease.register = function(ease, names, types, create) {
- var na = names.split(","),
- i = na.length,
- ta = (types || "easeIn,easeOut,easeInOut").split(","),
- e, name, j, type;
- while (--i > -1) {
- name = na[i];
- e = create ? _class("easing."+name, null, true) : gs.easing[name] || {};
- j = ta.length;
- while (--j > -1) {
- type = ta[j];
- _easeMap[name + "." + type] = _easeMap[type + name] = e[type] = ease.getRatio ? ease : ease[type] || new ease();
- }
- }
- };
-
- p = Ease.prototype;
- p._calcEnd = false;
- p.getRatio = function(p) {
- if (this._func) {
- this._params[0] = p;
- return this._func.apply(null, this._params);
- }
- var t = this._type,
- pw = this._power,
- r = (t === 1) ? 1 - p : (t === 2) ? p : (p < 0.5) ? p * 2 : (1 - p) * 2;
- if (pw === 1) {
- r *= r;
- } else if (pw === 2) {
- r *= r * r;
- } else if (pw === 3) {
- r *= r * r * r;
- } else if (pw === 4) {
- r *= r * r * r * r;
- }
- return (t === 1) ? 1 - r : (t === 2) ? r : (p < 0.5) ? r / 2 : 1 - (r / 2);
- };
-
- //create all the standard eases like Linear, Quad, Cubic, Quart, Quint, Strong, Power0, Power1, Power2, Power3, and Power4 (each with easeIn, easeOut, and easeInOut)
- a = ["Linear","Quad","Cubic","Quart","Quint,Strong"];
- i = a.length;
- while (--i > -1) {
- p = a[i]+",Power"+i;
- _easeReg(new Ease(null,null,1,i), p, "easeOut", true);
- _easeReg(new Ease(null,null,2,i), p, "easeIn" + ((i === 0) ? ",easeNone" : ""));
- _easeReg(new Ease(null,null,3,i), p, "easeInOut");
- }
- _easeMap.linear = gs.easing.Linear.easeIn;
- _easeMap.swing = gs.easing.Quad.easeInOut; //for jQuery folks
-
-
-/*
- * ----------------------------------------------------------------
- * EventDispatcher
- * ----------------------------------------------------------------
- */
- var EventDispatcher = _class("events.EventDispatcher", function(target) {
- this._listeners = {};
- this._eventTarget = target || this;
- });
- p = EventDispatcher.prototype;
-
- p.addEventListener = function(type, callback, scope, useParam, priority) {
- priority = priority || 0;
- var list = this._listeners[type],
- index = 0,
- listener, i;
- if (list == null) {
- this._listeners[type] = list = [];
- }
- i = list.length;
- while (--i > -1) {
- listener = list[i];
- if (listener.c === callback && listener.s === scope) {
- list.splice(i, 1);
- } else if (index === 0 && listener.pr < priority) {
- index = i + 1;
- }
- }
- list.splice(index, 0, {c:callback, s:scope, up:useParam, pr:priority});
- if (this === _ticker && !_tickerActive) {
- _ticker.wake();
- }
- };
-
- p.removeEventListener = function(type, callback) {
- var list = this._listeners[type], i;
- if (list) {
- i = list.length;
- while (--i > -1) {
- if (list[i].c === callback) {
- list.splice(i, 1);
- return;
- }
- }
- }
- };
-
- p.dispatchEvent = function(type) {
- var list = this._listeners[type],
- i, t, listener;
- if (list) {
- i = list.length;
- t = this._eventTarget;
- while (--i > -1) {
- listener = list[i];
- if (listener.up) {
- listener.c.call(listener.s || t, {type:type, target:t});
- } else {
- listener.c.call(listener.s || t);
- }
- }
- }
- };
-
-
-/*
- * ----------------------------------------------------------------
- * Ticker
- * ----------------------------------------------------------------
- */
- var _reqAnimFrame = window.requestAnimationFrame,
- _cancelAnimFrame = window.cancelAnimationFrame,
- _getTime = Date.now || function() {return new Date().getTime();},
- _lastUpdate = _getTime();
-
- //now try to determine the requestAnimationFrame and cancelAnimationFrame functions and if none are found, we'll use a setTimeout()/clearTimeout() polyfill.
- a = ["ms","moz","webkit","o"];
- i = a.length;
- while (--i > -1 && !_reqAnimFrame) {
- _reqAnimFrame = window[a[i] + "RequestAnimationFrame"];
- _cancelAnimFrame = window[a[i] + "CancelAnimationFrame"] || window[a[i] + "CancelRequestAnimationFrame"];
- }
-
- _class("Ticker", function(fps, useRAF) {
- var _self = this,
- _startTime = _getTime(),
- _useRAF = (useRAF !== false && _reqAnimFrame),
- _lagThreshold = 500,
- _adjustedLag = 33,
- _fps, _req, _id, _gap, _nextTime,
- _tick = function(manual) {
- var elapsed = _getTime() - _lastUpdate,
- overlap, dispatch;
- if (elapsed > _lagThreshold) {
- _startTime += elapsed - _adjustedLag;
- }
- _lastUpdate += elapsed;
- _self.time = (_lastUpdate - _startTime) / 1000;
- overlap = _self.time - _nextTime;
- if (!_fps || overlap > 0 || manual === true) {
- _self.frame++;
- _nextTime += overlap + (overlap >= _gap ? 0.004 : _gap - overlap);
- dispatch = true;
- }
- if (manual !== true) { //make sure the request is made before we dispatch the "tick" event so that timing is maintained. Otherwise, if processing the "tick" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.
- _id = _req(_tick);
- }
- if (dispatch) {
- _self.dispatchEvent("tick");
- }
- };
-
- EventDispatcher.call(_self);
- _self.time = _self.frame = 0;
- _self.tick = function() {
- _tick(true);
- };
-
- _self.lagSmoothing = function(threshold, adjustedLag) {
- _lagThreshold = threshold || (1 / _tinyNum); //zero should be interpreted as basically unlimited
- _adjustedLag = Math.min(adjustedLag, _lagThreshold, 0);
- };
-
- _self.sleep = function() {
- if (_id == null) {
- return;
- }
- if (!_useRAF || !_cancelAnimFrame) {
- clearTimeout(_id);
- } else {
- _cancelAnimFrame(_id);
- }
- _req = _emptyFunc;
- _id = null;
- if (_self === _ticker) {
- _tickerActive = false;
- }
- };
-
- _self.wake = function() {
- if (_id !== null) {
- _self.sleep();
- } else if (_self.frame > 10) { //don't trigger lagSmoothing if we're just waking up, and make sure that at least 10 frames have elapsed because of the iOS bug that we work around below with the 1.5-second setTimout().
- _lastUpdate = _getTime() - _lagThreshold + 5;
- }
- _req = (_fps === 0) ? _emptyFunc : (!_useRAF || !_reqAnimFrame) ? function(f) { return setTimeout(f, ((_nextTime - _self.time) * 1000 + 1) | 0); } : _reqAnimFrame;
- if (_self === _ticker) {
- _tickerActive = true;
- }
- _tick(2);
- };
-
- _self.fps = function(value) {
- if (!arguments.length) {
- return _fps;
- }
- _fps = value;
- _gap = 1 / (_fps || 60);
- _nextTime = this.time + _gap;
- _self.wake();
- };
-
- _self.useRAF = function(value) {
- if (!arguments.length) {
- return _useRAF;
- }
- _self.sleep();
- _useRAF = value;
- _self.fps(_fps);
- };
- _self.fps(fps);
-
- //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1.5-second timeout that automatically falls back to setTimeout() if it senses this condition.
- setTimeout(function() {
- if (_useRAF && (!_id || _self.frame < 5)) {
- _self.useRAF(false);
- }
- }, 1500);
- });
-
- p = gs.Ticker.prototype = new gs.events.EventDispatcher();
- p.constructor = gs.Ticker;
-
-
-/*
- * ----------------------------------------------------------------
- * Animation
- * ----------------------------------------------------------------
- */
- var Animation = _class("core.Animation", function(duration, vars) {
- this.vars = vars = vars || {};
- this._duration = this._totalDuration = duration || 0;
- this._delay = Number(vars.delay) || 0;
- this._timeScale = 1;
- this._active = (vars.immediateRender === true);
- this.data = vars.data;
- this._reversed = (vars.reversed === true);
-
- if (!_rootTimeline) {
- return;
- }
- if (!_tickerActive) { //some browsers (like iOS 6 Safari) shut down JavaScript execution when the tab is disabled and they [occasionally] neglect to start up requestAnimationFrame again when returning - this code ensures that the engine starts up again properly.
- _ticker.wake();
- }
-
- var tl = this.vars.useFrames ? _rootFramesTimeline : _rootTimeline;
- tl.add(this, tl._time);
-
- if (this.vars.paused) {
- this.paused(true);
- }
- });
-
- _ticker = Animation.ticker = new gs.Ticker();
- p = Animation.prototype;
- p._dirty = p._gc = p._initted = p._paused = false;
- p._totalTime = p._time = 0;
- p._rawPrevTime = -1;
- p._next = p._last = p._onUpdate = p._timeline = p.timeline = null;
- p._paused = false;
-
-
- //some browsers (like iOS) occasionally drop the requestAnimationFrame event when the user switches to a different tab and then comes back again, so we use a 2-second setTimeout() to sense if/when that condition occurs and then wake() the ticker.
- var _checkTimeout = function() {
- if (_tickerActive && _getTime() - _lastUpdate > 2000) {
- _ticker.wake();
- }
- setTimeout(_checkTimeout, 2000);
- };
- _checkTimeout();
-
-
- p.play = function(from, suppressEvents) {
- if (from != null) {
- this.seek(from, suppressEvents);
- }
- return this.reversed(false).paused(false);
- };
-
- p.pause = function(atTime, suppressEvents) {
- if (atTime != null) {
- this.seek(atTime, suppressEvents);
- }
- return this.paused(true);
- };
-
- p.resume = function(from, suppressEvents) {
- if (from != null) {
- this.seek(from, suppressEvents);
- }
- return this.paused(false);
- };
-
- p.seek = function(time, suppressEvents) {
- return this.totalTime(Number(time), suppressEvents !== false);
- };
-
- p.restart = function(includeDelay, suppressEvents) {
- return this.reversed(false).paused(false).totalTime(includeDelay ? -this._delay : 0, (suppressEvents !== false), true);
- };
-
- p.reverse = function(from, suppressEvents) {
- if (from != null) {
- this.seek((from || this.totalDuration()), suppressEvents);
- }
- return this.reversed(true).paused(false);
- };
-
- p.render = function(time, suppressEvents, force) {
- //stub - we override this method in subclasses.
- };
-
- p.invalidate = function() {
- return this;
- };
-
- p.isActive = function() {
- var tl = this._timeline, //the 2 root timelines won't have a _timeline; they're always active.
- startTime = this._startTime,
- rawTime;
- return (!tl || (!this._gc && !this._paused && tl.isActive() && (rawTime = tl.rawTime()) >= startTime && rawTime < startTime + this.totalDuration() / this._timeScale));
- };
-
- p._enabled = function (enabled, ignoreTimeline) {
- if (!_tickerActive) {
- _ticker.wake();
- }
- this._gc = !enabled;
- this._active = this.isActive();
- if (ignoreTimeline !== true) {
- if (enabled && !this.timeline) {
- this._timeline.add(this, this._startTime - this._delay);
- } else if (!enabled && this.timeline) {
- this._timeline._remove(this, true);
- }
- }
- return false;
- };
-
-
- p._kill = function(vars, target) {
- return this._enabled(false, false);
- };
-
- p.kill = function(vars, target) {
- this._kill(vars, target);
- return this;
- };
-
- p._uncache = function(includeSelf) {
- var tween = includeSelf ? this : this.timeline;
- while (tween) {
- tween._dirty = true;
- tween = tween.timeline;
- }
- return this;
- };
-
- p._swapSelfInParams = function(params) {
- var i = params.length,
- copy = params.concat();
- while (--i > -1) {
- if (params[i] === "{self}") {
- copy[i] = this;
- }
- }
- return copy;
- };
-
-//----Animation getters/setters --------------------------------------------------------
-
- p.eventCallback = function(type, callback, params, scope) {
- if ((type || "").substr(0,2) === "on") {
- var v = this.vars;
- if (arguments.length === 1) {
- return v[type];
- }
- if (callback == null) {
- delete v[type];
- } else {
- v[type] = callback;
- v[type + "Params"] = (_isArray(params) && params.join("").indexOf("{self}") !== -1) ? this._swapSelfInParams(params) : params;
- v[type + "Scope"] = scope;
- }
- if (type === "onUpdate") {
- this._onUpdate = callback;
- }
- }
- return this;
- };
-
- p.delay = function(value) {
- if (!arguments.length) {
- return this._delay;
- }
- if (this._timeline.smoothChildTiming) {
- this.startTime( this._startTime + value - this._delay );
- }
- this._delay = value;
- return this;
- };
-
- p.duration = function(value) {
- if (!arguments.length) {
- this._dirty = false;
- return this._duration;
- }
- this._duration = this._totalDuration = value;
- this._uncache(true); //true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration.
- if (this._timeline.smoothChildTiming) if (this._time > 0) if (this._time < this._duration) if (value !== 0) {
- this.totalTime(this._totalTime * (value / this._duration), true);
- }
- return this;
- };
-
- p.totalDuration = function(value) {
- this._dirty = false;
- return (!arguments.length) ? this._totalDuration : this.duration(value);
- };
-
- p.time = function(value, suppressEvents) {
- if (!arguments.length) {
- return this._time;
- }
- if (this._dirty) {
- this.totalDuration();
- }
- return this.totalTime((value > this._duration) ? this._duration : value, suppressEvents);
- };
-
- p.totalTime = function(time, suppressEvents, uncapped) {
- if (!_tickerActive) {
- _ticker.wake();
- }
- if (!arguments.length) {
- return this._totalTime;
- }
- if (this._timeline) {
- if (time < 0 && !uncapped) {
- time += this.totalDuration();
- }
- if (this._timeline.smoothChildTiming) {
- if (this._dirty) {
- this.totalDuration();
- }
- var totalDuration = this._totalDuration,
- tl = this._timeline;
- if (time > totalDuration && !uncapped) {
- time = totalDuration;
- }
- this._startTime = (this._paused ? this._pauseTime : tl._time) - ((!this._reversed ? time : totalDuration - time) / this._timeScale);
- if (!tl._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.
- this._uncache(false);
- }
- //in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The startTime of that child would get pushed out, but one of the ancestors may have completed.
- if (tl._timeline) {
- while (tl._timeline) {
- if (tl._timeline._time !== (tl._startTime + tl._totalTime) / tl._timeScale) {
- tl.totalTime(tl._totalTime, true);
- }
- tl = tl._timeline;
- }
- }
- }
- if (this._gc) {
- this._enabled(true, false);
- }
- if (this._totalTime !== time || this._duration === 0) {
- this.render(time, suppressEvents, false);
- if (_lazyTweens.length) { //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.
- _lazyRender();
- }
- }
- }
- return this;
- };
-
- p.progress = p.totalProgress = function(value, suppressEvents) {
- return (!arguments.length) ? this._time / this.duration() : this.totalTime(this.duration() * value, suppressEvents);
- };
-
- p.startTime = function(value) {
- if (!arguments.length) {
- return this._startTime;
- }
- if (value !== this._startTime) {
- this._startTime = value;
- if (this.timeline) if (this.timeline._sortChildren) {
- this.timeline.add(this, value - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.
- }
- }
- return this;
- };
-
- p.timeScale = function(value) {
- if (!arguments.length) {
- return this._timeScale;
- }
- value = value || _tinyNum; //can't allow zero because it'll throw the math off
- if (this._timeline && this._timeline.smoothChildTiming) {
- var pauseTime = this._pauseTime,
- t = (pauseTime || pauseTime === 0) ? pauseTime : this._timeline.totalTime();
- this._startTime = t - ((t - this._startTime) * this._timeScale / value);
- }
- this._timeScale = value;
- return this._uncache(false);
- };
-
- p.reversed = function(value) {
- if (!arguments.length) {
- return this._reversed;
- }
- if (value != this._reversed) {
- this._reversed = value;
- this.totalTime(((this._timeline && !this._timeline.smoothChildTiming) ? this.totalDuration() - this._totalTime : this._totalTime), true);
- }
- return this;
- };
-
- p.paused = function(value) {
- if (!arguments.length) {
- return this._paused;
- }
- if (value != this._paused) if (this._timeline) {
- if (!_tickerActive && !value) {
- _ticker.wake();
- }
- var tl = this._timeline,
- raw = tl.rawTime(),
- elapsed = raw - this._pauseTime;
- if (!value && tl.smoothChildTiming) {
- this._startTime += elapsed;
- this._uncache(false);
- }
- this._pauseTime = value ? raw : null;
- this._paused = value;
- this._active = this.isActive();
- if (!value && elapsed !== 0 && this._initted && this.duration()) {
- this.render((tl.smoothChildTiming ? this._totalTime : (raw - this._startTime) / this._timeScale), true, true); //in case the target's properties changed via some other tween or manual update by the user, we should force a render.
- }
- }
- if (this._gc && !value) {
- this._enabled(true, false);
- }
- return this;
- };
-
-
-/*
- * ----------------------------------------------------------------
- * SimpleTimeline
- * ----------------------------------------------------------------
- */
- var SimpleTimeline = _class("core.SimpleTimeline", function(vars) {
- Animation.call(this, 0, vars);
- this.autoRemoveChildren = this.smoothChildTiming = true;
- });
-
- p = SimpleTimeline.prototype = new Animation();
- p.constructor = SimpleTimeline;
- p.kill()._gc = false;
- p._first = p._last = null;
- p._sortChildren = false;
-
- p.add = p.insert = function(child, position, align, stagger) {
- var prevTween, st;
- child._startTime = Number(position || 0) + child._delay;
- if (child._paused) if (this !== child._timeline) { //we only adjust the _pauseTime if it wasn't in this timeline already. Remember, sometimes a tween will be inserted again into the same timeline when its startTime is changed so that the tweens in the TimelineLite/Max are re-ordered properly in the linked list (so everything renders in the proper order).
- child._pauseTime = child._startTime + ((this.rawTime() - child._startTime) / child._timeScale);
- }
- if (child.timeline) {
- child.timeline._remove(child, true); //removes from existing timeline so that it can be properly added to this one.
- }
- child.timeline = child._timeline = this;
- if (child._gc) {
- child._enabled(true, true);
- }
- prevTween = this._last;
- if (this._sortChildren) {
- st = child._startTime;
- while (prevTween && prevTween._startTime > st) {
- prevTween = prevTween._prev;
- }
- }
- if (prevTween) {
- child._next = prevTween._next;
- prevTween._next = child;
- } else {
- child._next = this._first;
- this._first = child;
- }
- if (child._next) {
- child._next._prev = child;
- } else {
- this._last = child;
- }
- child._prev = prevTween;
- if (this._timeline) {
- this._uncache(true);
- }
- return this;
- };
-
- p._remove = function(tween, skipDisable) {
- if (tween.timeline === this) {
- if (!skipDisable) {
- tween._enabled(false, true);
- }
- tween.timeline = null;
-
- if (tween._prev) {
- tween._prev._next = tween._next;
- } else if (this._first === tween) {
- this._first = tween._next;
- }
- if (tween._next) {
- tween._next._prev = tween._prev;
- } else if (this._last === tween) {
- this._last = tween._prev;
- }
-
- if (this._timeline) {
- this._uncache(true);
- }
- }
- return this;
- };
-
- p.render = function(time, suppressEvents, force) {
- var tween = this._first,
- next;
- this._totalTime = this._time = this._rawPrevTime = time;
- while (tween) {
- next = tween._next; //record it here because the value could change after rendering...
- if (tween._active || (time >= tween._startTime && !tween._paused)) {
- if (!tween._reversed) {
- tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force);
- } else {
- tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force);
- }
- }
- tween = next;
- }
- };
-
- p.rawTime = function() {
- if (!_tickerActive) {
- _ticker.wake();
- }
- return this._totalTime;
- };
-
-/*
- * ----------------------------------------------------------------
- * TweenLite
- * ----------------------------------------------------------------
- */
- var TweenLite = _class("TweenLite", function(target, duration, vars) {
- Animation.call(this, duration, vars);
- this.render = TweenLite.prototype.render; //speed optimization (avoid prototype lookup on this "hot" method)
-
- if (target == null) {
- throw "Cannot tween a null target.";
- }
-
- this.target = target = (typeof(target) !== "string") ? target : TweenLite.selector(target) || target;
-
- var isSelector = (target.jquery || (target.length && target !== window && target[0] && (target[0] === window || (target[0].nodeType && target[0].style && !target.nodeType)))),
- overwrite = this.vars.overwrite,
- i, targ, targets;
-
- this._overwrite = overwrite = (overwrite == null) ? _overwriteLookup[TweenLite.defaultOverwrite] : (typeof(overwrite) === "number") ? overwrite >> 0 : _overwriteLookup[overwrite];
-
- if ((isSelector || target instanceof Array || (target.push && _isArray(target))) && typeof(target[0]) !== "number") {
- this._targets = targets = _slice.call(target, 0);
- this._propLookup = [];
- this._siblings = [];
- for (i = 0; i < targets.length; i++) {
- targ = targets[i];
- if (!targ) {
- targets.splice(i--, 1);
- continue;
- } else if (typeof(targ) === "string") {
- targ = targets[i--] = TweenLite.selector(targ); //in case it's an array of strings
- if (typeof(targ) === "string") {
- targets.splice(i+1, 1); //to avoid an endless loop (can't imagine why the selector would return a string, but just in case)
- }
- continue;
- } else if (targ.length && targ !== window && targ[0] && (targ[0] === window || (targ[0].nodeType && targ[0].style && !targ.nodeType))) { //in case the user is passing in an array of selector objects (like jQuery objects), we need to check one more level and pull things out if necessary. Also note that <select> elements pass all the criteria regarding length and the first child having style, so we must also check to ensure the target isn't an HTML node itself.
- targets.splice(i--, 1);
- this._targets = targets = targets.concat(_slice.call(targ, 0));
- continue;
- }
- this._siblings[i] = _register(targ, this, false);
- if (overwrite === 1) if (this._siblings[i].length > 1) {
- _applyOverwrite(targ, this, null, 1, this._siblings[i]);
- }
- }
-
- } else {
- this._propLookup = {};
- this._siblings = _register(target, this, false);
- if (overwrite === 1) if (this._siblings.length > 1) {
- _applyOverwrite(target, this, null, 1, this._siblings);
- }
- }
- if (this.vars.immediateRender || (duration === 0 && this._delay === 0 && this.vars.immediateRender !== false)) {
- this._time = -_tinyNum; //forces a render without having to set the render() "force" parameter to true because we want to allow lazying by default (using the "force" parameter always forces an immediate full render)
- this.render(-this._delay);
- }
- }, true),
- _isSelector = function(v) {
- return (v.length && v !== window && v[0] && (v[0] === window || (v[0].nodeType && v[0].style && !v.nodeType))); //we cannot check "nodeType" if the target is window from within an iframe, otherwise it will trigger a security error in some browsers like Firefox.
- },
- _autoCSS = function(vars, target) {
- var css = {},
- p;
- for (p in vars) {
- if (!_reservedProps[p] && (!(p in target) || p === "transform" || p === "x" || p === "y" || p === "width" || p === "height" || p === "className" || p === "border") && (!_plugins[p] || (_plugins[p] && _plugins[p]._autoCSS))) { //note: <img> elements contain read-only "x" and "y" properties. We should also prioritize editing css width/height rather than the element's properties.
- css[p] = vars[p];
- delete vars[p];
- }
- }
- vars.css = css;
- };
-
- p = TweenLite.prototype = new Animation();
- p.constructor = TweenLite;
- p.kill()._gc = false;
-
-//----TweenLite defaults, overwrite management, and root updates ----------------------------------------------------
-
- p.ratio = 0;
- p._firstPT = p._targets = p._overwrittenProps = p._startAt = null;
- p._notifyPluginsOfEnabled = p._lazy = false;
-
- TweenLite.version = "1.12.1";
- TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);
- TweenLite.defaultOverwrite = "auto";
- TweenLite.ticker = _ticker;
- TweenLite.autoSleep = true;
- TweenLite.lagSmoothing = function(threshold, adjustedLag) {
- _ticker.lagSmoothing(threshold, adjustedLag);
- };
- TweenLite.selector = window.$ || window.jQuery || function(e) { if (window.$) { TweenLite.selector = window.$; return window.$(e); } return window.document ? window.document.getElementById((e.charAt(0) === "#") ? e.substr(1) : e) : e; };
-
- var _lazyTweens = [],
- _lazyLookup = {},
- _internals = TweenLite._internals = {isArray:_isArray, isSelector:_isSelector, lazyTweens:_lazyTweens}, //gives us a way to expose certain private values to other GreenSock classes without contaminating tha main TweenLite object.
- _plugins = TweenLite._plugins = {},
- _tweenLookup = _internals.tweenLookup = {},
- _tweenLookupNum = 0,
- _reservedProps = _internals.reservedProps = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, onCompleteScope:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, onUpdateScope:1, onStart:1, onStartParams:1, onStartScope:1, onReverseComplete:1, onReverseCompleteParams:1, onReverseCompleteScope:1, onRepeat:1, onRepeatParams:1, onRepeatScope:1, easeParams:1, yoyo:1, immediateRender:1, repeat:1, repeatDelay:1, data:1, paused:1, reversed:1, autoCSS:1, lazy:1},
- _overwriteLookup = {none:0, all:1, auto:2, concurrent:3, allOnStart:4, preexisting:5, "true":1, "false":0},
- _rootFramesTimeline = Animation._rootFramesTimeline = new SimpleTimeline(),
- _rootTimeline = Animation._rootTimeline = new SimpleTimeline(),
- _lazyRender = function() {
- var i = _lazyTweens.length;
- _lazyLookup = {};
- while (--i > -1) {
- a = _lazyTweens[i];
- if (a && a._lazy !== false) {
- a.render(a._lazy, false, true);
- a._lazy = false;
- }
- }
- _lazyTweens.length = 0;
- };
-
- _rootTimeline._startTime = _ticker.time;
- _rootFramesTimeline._startTime = _ticker.frame;
- _rootTimeline._active = _rootFramesTimeline._active = true;
- setTimeout(_lazyRender, 1); //on some mobile devices, there isn't a "tick" before code runs which means any lazy renders wouldn't run before the next official "tick".
-
- Animation._updateRoot = TweenLite.render = function() {
- var i, a, p;
- if (_lazyTweens.length) { //if code is run outside of the requestAnimationFrame loop, there may be tweens queued AFTER the engine refreshed, so we need to ensure any pending renders occur before we refresh again.
- _lazyRender();
- }
- _rootTimeline.render((_ticker.time - _rootTimeline._startTime) * _rootTimeline._timeScale, false, false);
- _rootFramesTimeline.render((_ticker.frame - _rootFramesTimeline._startTime) * _rootFramesTimeline._timeScale, false, false);
- if (_lazyTweens.length) {
- _lazyRender();
- }
- if (!(_ticker.frame % 120)) { //dump garbage every 120 frames...
- for (p in _tweenLookup) {
- a = _tweenLookup[p].tweens;
- i = a.length;
- while (--i > -1) {
- if (a[i]._gc) {
- a.splice(i, 1);
- }
- }
- if (a.length === 0) {
- delete _tweenLookup[p];
- }
- }
- //if there are no more tweens in the root timelines, or if they're all paused, make the _timer sleep to reduce load on the CPU slightly
- p = _rootTimeline._first;
- if (!p || p._paused) if (TweenLite.autoSleep && !_rootFramesTimeline._first && _ticker._listeners.tick.length === 1) {
- while (p && p._paused) {
- p = p._next;
- }
- if (!p) {
- _ticker.sleep();
- }
- }
- }
- };
-
- _ticker.addEventListener("tick", Animation._updateRoot);
-
- var _register = function(target, tween, scrub) {
- var id = target._gsTweenID, a, i;
- if (!_tweenLookup[id || (target._gsTweenID = id = "t" + (_tweenLookupNum++))]) {
- _tweenLookup[id] = {target:target, tweens:[]};
- }
- if (tween) {
- a = _tweenLookup[id].tweens;
- a[(i = a.length)] = tween;
- if (scrub) {
- while (--i > -1) {
- if (a[i] === tween) {
- a.splice(i, 1);
- }
- }
- }
- }
- return _tweenLookup[id].tweens;
- },
-
- _applyOverwrite = function(target, tween, props, mode, siblings) {
- var i, changed, curTween, l;
- if (mode === 1 || mode >= 4) {
- l = siblings.length;
- for (i = 0; i < l; i++) {
- if ((curTween = siblings[i]) !== tween) {
- if (!curTween._gc) if (curTween._enabled(false, false)) {
- changed = true;
- }
- } else if (mode === 5) {
- break;
- }
- }
- return changed;
- }
- //NOTE: Add 0.0000000001 to overcome floating point errors that can cause the startTime to be VERY slightly off (when a tween's time() is set for example)
- var startTime = tween._startTime + _tinyNum,
- overlaps = [],
- oCount = 0,
- zeroDur = (tween._duration === 0),
- globalStart;
- i = siblings.length;
- while (--i > -1) {
- if ((curTween = siblings[i]) === tween || curTween._gc || curTween._paused) {
- //ignore
- } else if (curTween._timeline !== tween._timeline) {
- globalStart = globalStart || _checkOverlap(tween, 0, zeroDur);
- if (_checkOverlap(curTween, globalStart, zeroDur) === 0) {
- overlaps[oCount++] = curTween;
- }
- } else if (curTween._startTime <= startTime) if (curTween._startTime + curTween.totalDuration() / curTween._timeScale > startTime) if (!((zeroDur || !curTween._initted) && startTime - curTween._startTime <= 0.0000000002)) {
- overlaps[oCount++] = curTween;
- }
- }
-
- i = oCount;
- while (--i > -1) {
- curTween = overlaps[i];
- if (mode === 2) if (curTween._kill(props, target)) {
- changed = true;
- }
- if (mode !== 2 || (!curTween._firstPT && curTween._initted)) {
- if (curTween._enabled(false, false)) { //if all property tweens have been overwritten, kill the tween.
- changed = true;
- }
- }
- }
- return changed;
- },
-
- _checkOverlap = function(tween, reference, zeroDur) {
- var tl = tween._timeline,
- ts = tl._timeScale,
- t = tween._startTime;
- while (tl._timeline) {
- t += tl._startTime;
- ts *= tl._timeScale;
- if (tl._paused) {
- return -100;
- }
- tl = tl._timeline;
- }
- t /= ts;
- return (t > reference) ? t - reference : ((zeroDur && t === reference) || (!tween._initted && t - reference < 2 * _tinyNum)) ? _tinyNum : ((t += tween.totalDuration() / tween._timeScale / ts) > reference + _tinyNum) ? 0 : t - reference - _tinyNum;
- };
-
-
-//---- TweenLite instance methods -----------------------------------------------------------------------------
-
- p._init = function() {
- var v = this.vars,
- op = this._overwrittenProps,
- dur = this._duration,
- immediate = !!v.immediateRender,
- ease = v.ease,
- i, initPlugins, pt, p, startVars;
- if (v.startAt) {
- if (this._startAt) {
- this._startAt.render(-1, true); //if we've run a startAt previously (when the tween instantiated), we should revert it so that the values re-instantiate correctly particularly for relative tweens. Without this, a TweenLite.fromTo(obj, 1, {x:"+=100"}, {x:"-=100"}), for example, would actually jump to +=200 because the startAt would run twice, doubling the relative change.
- this._startAt.kill();
- }
- startVars = {};
- for (p in v.startAt) { //copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, 1, from, to).fromTo(e, 1, to, from);
- startVars[p] = v.startAt[p];
- }
- startVars.overwrite = false;
- startVars.immediateRender = true;
- startVars.lazy = (immediate && v.lazy !== false);
- startVars.startAt = startVars.delay = null; //no nesting of startAt objects allowed (otherwise it could cause an infinite loop).
- this._startAt = TweenLite.to(this.target, 0, startVars);
- if (immediate) {
- if (this._time > 0) {
- this._startAt = null; //tweens that render immediately (like most from() and fromTo() tweens) shouldn't revert when their parent timeline's playhead goes backward past the startTime because the initial render could have happened anytime and it shouldn't be directly correlated to this tween's startTime. Imagine setting up a complex animation where the beginning states of various objects are rendered immediately but the tween doesn't happen for quite some time - if we revert to the starting values as soon as the playhead goes backward past the tween's startTime, it will throw things off visually. Reversion should only happen in TimelineLite/Max instances where immediateRender was false (which is the default in the convenience methods like from()).
- } else if (dur !== 0) {
- return; //we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a TimelineLite or TimelineMax, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.
- }
- }
- } else if (v.runBackwards && dur !== 0) {
- //from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)
- if (this._startAt) {
- this._startAt.render(-1, true);
- this._startAt.kill();
- this._startAt = null;
- } else {
- pt = {};
- for (p in v) { //copy props into a new object and skip any reserved props, otherwise onComplete or onUpdate or onStart could fire. We should, however, permit autoCSS to go through.
- if (!_reservedProps[p] || p === "autoCSS") {
- pt[p] = v[p];
- }
- }
- pt.overwrite = 0;
- pt.data = "isFromStart"; //we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
- pt.lazy = (immediate && v.lazy !== false);
- pt.immediateRender = immediate; //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
- this._startAt = TweenLite.to(this.target, 0, pt);
- if (!immediate) {
- this._startAt._init(); //ensures that the initial values are recorded
- this._startAt._enabled(false); //no need to have the tween render on the next cycle. Disable it because we'll always manually control the renders of the _startAt tween.
- } else if (this._time === 0) {
- return;
- }
- }
- }
- if (!ease) {
- this._ease = TweenLite.defaultEase;
- } else if (ease instanceof Ease) {
- this._ease = (v.easeParams instanceof Array) ? ease.config.apply(ease, v.easeParams) : ease;
- } else {
- this._ease = (typeof(ease) === "function") ? new Ease(ease, v.easeParams) : _easeMap[ease] || TweenLite.defaultEase;
- }
- this._easeType = this._ease._type;
- this._easePower = this._ease._power;
- this._firstPT = null;
-
- if (this._targets) {
- i = this._targets.length;
- while (--i > -1) {
- if ( this._initProps( this._targets[i], (this._propLookup[i] = {}), this._siblings[i], (op ? op[i] : null)) ) {
- initPlugins = true;
- }
- }
- } else {
- initPlugins = this._initProps(this.target, this._propLookup, this._siblings, op);
- }
-
- if (initPlugins) {
- TweenLite._onPluginEvent("_onInitAllProps", this); //reorders the array in order of priority. Uses a static TweenPlugin method in order to minimize file size in TweenLite
- }
- if (op) if (!this._firstPT) if (typeof(this.target) !== "function") { //if all tweening properties have been overwritten, kill the tween. If the target is a function, it's probably a delayedCall so let it live.
- this._enabled(false, false);
- }
- if (v.runBackwards) {
- pt = this._firstPT;
- while (pt) {
- pt.s += pt.c;
- pt.c = -pt.c;
- pt = pt._next;
- }
- }
- this._onUpdate = v.onUpdate;
- this._initted = true;
- };
-
- p._initProps = function(target, propLookup, siblings, overwrittenProps) {
- var p, i, initPlugins, plugin, pt, v;
- if (target == null) {
- return false;
- }
-
- if (_lazyLookup[target._gsTweenID]) {
- _lazyRender(); //if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)
- }
-
- if (!this.vars.css) if (target.style) if (target !== window && target.nodeType) if (_plugins.css) if (this.vars.autoCSS !== false) { //it's so common to use TweenLite/Max to animate the css of DOM elements, we assume that if the target is a DOM element, that's what is intended (a convenience so that users don't have to wrap things in css:{}, although we still recommend it for a slight performance boost and better specificity). Note: we cannot check "nodeType" on the window inside an iframe.
- _autoCSS(this.vars, target);
- }
- for (p in this.vars) {
- v = this.vars[p];
- if (_reservedProps[p]) {
- if (v) if ((v instanceof Array) || (v.push && _isArray(v))) if (v.join("").indexOf("{self}") !== -1) {
- this.vars[p] = v = this._swapSelfInParams(v, this);
- }
-
- } else if (_plugins[p] && (plugin = new _plugins[p]())._onInitTween(target, this.vars[p], this)) {
-
- //t - target [object]
- //p - property [string]
- //s - start [number]
- //c - change [number]
- //f - isFunction [boolean]
- //n - name [string]
- //pg - isPlugin [boolean]
- //pr - priority [number]
- this._firstPT = pt = {_next:this._firstPT, t:plugin, p:"setRatio", s:0, c:1, f:true, n:p, pg:true, pr:plugin._priority};
- i = plugin._overwriteProps.length;
- while (--i > -1) {
- propLookup[plugin._overwriteProps[i]] = this._firstPT;
- }
- if (plugin._priority || plugin._onInitAllProps) {
- initPlugins = true;
- }
- if (plugin._onDisable || plugin._onEnable) {
- this._notifyPluginsOfEnabled = true;
- }
-
- } else {
- this._firstPT = propLookup[p] = pt = {_next:this._firstPT, t:target, p:p, f:(typeof(target[p]) === "function"), n:p, pg:false, pr:0};
- pt.s = (!pt.f) ? parseFloat(target[p]) : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]();
- pt.c = (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0) + "1", 10) * Number(v.substr(2)) : (Number(v) - pt.s) || 0;
- }
- if (pt) if (pt._next) {
- pt._next._prev = pt;
- }
- }
-
- if (overwrittenProps) if (this._kill(overwrittenProps, target)) { //another tween may have tried to overwrite properties of this tween before init() was called (like if two tweens start at the same time, the one created second will run first)
- return this._initProps(target, propLookup, siblings, overwrittenProps);
- }
- if (this._overwrite > 1) if (this._firstPT) if (siblings.length > 1) if (_applyOverwrite(target, this, propLookup, this._overwrite, siblings)) {
- this._kill(propLookup, target);
- return this._initProps(target, propLookup, siblings, overwrittenProps);
- }
- if (this._firstPT) if ((this.vars.lazy !== false && this._duration) || (this.vars.lazy && !this._duration)) { //zero duration tweens don't lazy render by default; everything else does.
- _lazyLookup[target._gsTweenID] = true;
- }
- return initPlugins;
- };
-
- p.render = function(time, suppressEvents, force) {
- var prevTime = this._time,
- duration = this._duration,
- prevRawPrevTime = this._rawPrevTime,
- isComplete, callback, pt, rawPrevTime;
- if (time >= duration) {
- this._totalTime = this._time = duration;
- this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1;
- if (!this._reversed ) {
- isComplete = true;
- callback = "onComplete";
- }
- if (duration === 0) if (this._initted || !this.vars.lazy || force) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
- if (this._startTime === this._timeline._duration) { //if a zero-duration tween is at the VERY end of a timeline and that timeline renders at its end, it will typically add a tiny bit of cushion to the render time to prevent rounding errors from getting in the way of tweens rendering their VERY end. If we then reverse() that timeline, the zero-duration tween will trigger its onReverseComplete even though technically the playhead didn't pass over it again. It's a very specific edge case we must accommodate.
- time = 0;
- }
- if (time === 0 || prevRawPrevTime < 0 || prevRawPrevTime === _tinyNum) if (prevRawPrevTime !== time) {
- force = true;
- if (prevRawPrevTime > _tinyNum) {
- callback = "onReverseComplete";
- }
- }
- this._rawPrevTime = rawPrevTime = (!suppressEvents || time || prevRawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.
- }
-
- } else if (time < 0.0000001) { //to work around occasional floating point math artifacts, round super small values to 0.
- this._totalTime = this._time = 0;
- this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0;
- if (prevTime !== 0 || (duration === 0 && prevRawPrevTime > 0 && prevRawPrevTime !== _tinyNum)) {
- callback = "onReverseComplete";
- isComplete = this._reversed;
- }
- if (time < 0) {
- this._active = false;
- if (duration === 0) if (this._initted || !this.vars.lazy || force) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
- if (prevRawPrevTime >= 0) {
- force = true;
- }
- this._rawPrevTime = rawPrevTime = (!suppressEvents || time || prevRawPrevTime === time) ? time : _tinyNum; //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.
- }
- } else if (!this._initted) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.
- force = true;
- }
- } else {
- this._totalTime = this._time = time;
-
- if (this._easeType) {
- var r = time / duration, type = this._easeType, pow = this._easePower;
- if (type === 1 || (type === 3 && r >= 0.5)) {
- r = 1 - r;
- }
- if (type === 3) {
- r *= 2;
- }
- if (pow === 1) {
- r *= r;
- } else if (pow === 2) {
- r *= r * r;
- } else if (pow === 3) {
- r *= r * r * r;
- } else if (pow === 4) {
- r *= r * r * r * r;
- }
-
- if (type === 1) {
- this.ratio = 1 - r;
- } else if (type === 2) {
- this.ratio = r;
- } else if (time / duration < 0.5) {
- this.ratio = r / 2;
- } else {
- this.ratio = 1 - (r / 2);
- }
-
- } else {
- this.ratio = this._ease.getRatio(time / duration);
- }
- }
-
- if (this._time === prevTime && !force) {
- return;
- } else if (!this._initted) {
- this._init();
- if (!this._initted || this._gc) { //immediateRender tweens typically won't initialize until the playhead advances (_time is greater than 0) in order to ensure that overwriting occurs properly. Also, if all of the tweening properties have been overwritten (which would cause _gc to be true, as set in _init()), we shouldn't continue otherwise an onStart callback could be called for example.
- return;
- } else if (!force && this._firstPT && ((this.vars.lazy !== false && this._duration) || (this.vars.lazy && !this._duration))) {
- this._time = this._totalTime = prevTime;
- this._rawPrevTime = prevRawPrevTime;
- _lazyTweens.push(this);
- this._lazy = time;
- return;
- }
- //_ease is initially set to defaultEase, so now that init() has run, _ease is set properly and we need to recalculate the ratio. Overall this is faster than using conditional logic earlier in the method to avoid having to set ratio twice because we only init() once but renderTime() gets called VERY frequently.
- if (this._time && !isComplete) {
- this.ratio = this._ease.getRatio(this._time / duration);
- } else if (isComplete && this._ease._calcEnd) {
- this.ratio = this._ease.getRatio((this._time === 0) ? 0 : 1);
- }
- }
- if (this._lazy !== false) { //in case a lazy render is pending, we should flush it because the new render is occuring now (imagine a lazy tween instantiating and then immediately the user calls tween.seek(tween.duration()), skipping to the end - the end render would be forced, and then if we didn't flush the lazy render, it'd fire AFTER the seek(), rendering it at the wrong time.
- this._lazy = false;
- }
- if (!this._active) if (!this._paused && this._time !== prevTime && time >= 0) {
- this._active = true; //so that if the user renders a tween (as opposed to the timeline rendering it), the timeline is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the tween already finished but the user manually re-renders it as halfway done.
- }
- if (prevTime === 0) {
- if (this._startAt) {
- if (time >= 0) {
- this._startAt.render(time, suppressEvents, force);
- } else if (!callback) {
- callback = "_dummyGS"; //if no callback is defined, use a dummy value just so that the condition at the end evaluates as true because _startAt should render AFTER the normal render loop when the time is negative. We could handle this in a more intuitive way, of course, but the render loop is the MOST important thing to optimize, so this technique allows us to avoid adding extra conditional logic in a high-frequency area.
- }
- }
- if (this.vars.onStart) if (this._time !== 0 || duration === 0) if (!suppressEvents) {
- this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || _blankArray);
- }
- }
-
- pt = this._firstPT;
- while (pt) {
- if (pt.f) {
- pt.t[pt.p](pt.c * this.ratio + pt.s);
- } else {
- pt.t[pt.p] = pt.c * this.ratio + pt.s;
- }
- pt = pt._next;
- }
-
- if (this._onUpdate) {
- if (time < 0) if (this._startAt && this._startTime) { //if the tween is positioned at the VERY beginning (_startTime 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.
- this._startAt.render(time, suppressEvents, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.
- }
- if (!suppressEvents) if (this._time !== prevTime || isComplete) {
- this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);
- }
- }
-
- if (callback) if (!this._gc) { //check _gc because there's a chance that kill() could be called in an onUpdate
- if (time < 0 && this._startAt && !this._onUpdate && this._startTime) { //if the tween is positioned at the VERY beginning (_startTime 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.
- this._startAt.render(time, suppressEvents, force);
- }
- if (isComplete) {
- if (this._timeline.autoRemoveChildren) {
- this._enabled(false, false);
- }
- this._active = false;
- }
- if (!suppressEvents && this.vars[callback]) {
- this.vars[callback].apply(this.vars[callback + "Scope"] || this, this.vars[callback + "Params"] || _blankArray);
- }
- if (duration === 0 && this._rawPrevTime === _tinyNum && rawPrevTime !== _tinyNum) { //the onComplete or onReverseComplete could trigger movement of the playhead and for zero-duration tweens (which must discern direction) that land directly back on their start time, we don't want to fire again on the next render. Think of several addPause()'s in a timeline that forces the playhead to a certain spot, but what if it's already paused and another tween is tweening the "time" of the timeline? Each time it moves [forward] past that spot, it would move back, and since suppressEvents is true, it'd reset _rawPrevTime to _tinyNum so that when it begins again, the callback would fire (so ultimately it could bounce back and forth during that tween). Again, this is a very uncommon scenario, but possible nonetheless.
- this._rawPrevTime = 0;
- }
- }
-
- };
-
- p._kill = function(vars, target) {
- if (vars === "all") {
- vars = null;
- }
- if (vars == null) if (target == null || target === this.target) {
- this._lazy = false;
- return this._enabled(false, false);
- }
- target = (typeof(target) !== "string") ? (target || this._targets || this.target) : TweenLite.selector(target) || target;
- var i, overwrittenProps, p, pt, propLookup, changed, killProps, record;
- if ((_isArray(target) || _isSelector(target)) && typeof(target[0]) !== "number") {
- i = target.length;
- while (--i > -1) {
- if (this._kill(vars, target[i])) {
- changed = true;
- }
- }
- } else {
- if (this._targets) {
- i = this._targets.length;
- while (--i > -1) {
- if (target === this._targets[i]) {
- propLookup = this._propLookup[i] || {};
- this._overwrittenProps = this._overwrittenProps || [];
- overwrittenProps = this._overwrittenProps[i] = vars ? this._overwrittenProps[i] || {} : "all";
- break;
- }
- }
- } else if (target !== this.target) {
- return false;
- } else {
- propLookup = this._propLookup;
- overwrittenProps = this._overwrittenProps = vars ? this._overwrittenProps || {} : "all";
- }
-
- if (propLookup) {
- killProps = vars || propLookup;
- record = (vars !== overwrittenProps && overwrittenProps !== "all" && vars !== propLookup && (typeof(vars) !== "object" || !vars._tempKill)); //_tempKill is a super-secret way to delete a particular tweening property but NOT have it remembered as an official overwritten property (like in BezierPlugin)
- for (p in killProps) {
- if ((pt = propLookup[p])) {
- if (pt.pg && pt.t._kill(killProps)) {
- changed = true; //some plugins need to be notified so they can perform cleanup tasks first
- }
- if (!pt.pg || pt.t._overwriteProps.length === 0) {
- if (pt._prev) {
- pt._prev._next = pt._next;
- } else if (pt === this._firstPT) {
- this._firstPT = pt._next;
- }
- if (pt._next) {
- pt._next._prev = pt._prev;
- }
- pt._next = pt._prev = null;
- }
- delete propLookup[p];
- }
- if (record) {
- overwrittenProps[p] = 1;
- }
- }
- if (!this._firstPT && this._initted) { //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.
- this._enabled(false, false);
- }
- }
- }
- return changed;
- };
-
- p.invalidate = function() {
- if (this._notifyPluginsOfEnabled) {
- TweenLite._onPluginEvent("_onDisable", this);
- }
- this._firstPT = null;
- this._overwrittenProps = null;
- this._onUpdate = null;
- this._startAt = null;
- this._initted = this._active = this._notifyPluginsOfEnabled = this._lazy = false;
- this._propLookup = (this._targets) ? {} : [];
- return this;
- };
-
- p._enabled = function(enabled, ignoreTimeline) {
- if (!_tickerActive) {
- _ticker.wake();
- }
- if (enabled && this._gc) {
- var targets = this._targets,
- i;
- if (targets) {
- i = targets.length;
- while (--i > -1) {
- this._siblings[i] = _register(targets[i], this, true);
- }
- } else {
- this._siblings = _register(this.target, this, true);
- }
- }
- Animation.prototype._enabled.call(this, enabled, ignoreTimeline);
- if (this._notifyPluginsOfEnabled) if (this._firstPT) {
- return TweenLite._onPluginEvent((enabled ? "_onEnable" : "_onDisable"), this);
- }
- return false;
- };
-
-
-//----TweenLite static methods -----------------------------------------------------
-
- TweenLite.to = function(target, duration, vars) {
- return new TweenLite(target, duration, vars);
- };
-
- TweenLite.from = function(target, duration, vars) {
- vars.runBackwards = true;
- vars.immediateRender = (vars.immediateRender != false);
- return new TweenLite(target, duration, vars);
- };
-
- TweenLite.fromTo = function(target, duration, fromVars, toVars) {
- toVars.startAt = fromVars;
- toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false);
- return new TweenLite(target, duration, toVars);
- };
-
- TweenLite.delayedCall = function(delay, callback, params, scope, useFrames) {
- return new TweenLite(callback, 0, {delay:delay, onComplete:callback, onCompleteParams:params, onCompleteScope:scope, onReverseComplete:callback, onReverseCompleteParams:params, onReverseCompleteScope:scope, immediateRender:false, useFrames:useFrames, overwrite:0});
- };
-
- TweenLite.set = function(target, vars) {
- return new TweenLite(target, 0, vars);
- };
-
- TweenLite.getTweensOf = function(target, onlyActive) {
- if (target == null) { return []; }
- target = (typeof(target) !== "string") ? target : TweenLite.selector(target) || target;
- var i, a, j, t;
- if ((_isArray(target) || _isSelector(target)) && typeof(target[0]) !== "number") {
- i = target.length;
- a = [];
- while (--i > -1) {
- a = a.concat(TweenLite.getTweensOf(target[i], onlyActive));
- }
- i = a.length;
- //now get rid of any duplicates (tweens of arrays of objects could cause duplicates)
- while (--i > -1) {
- t = a[i];
- j = i;
- while (--j > -1) {
- if (t === a[j]) {
- a.splice(i, 1);
- }
- }
- }
- } else {
- a = _register(target).concat();
- i = a.length;
- while (--i > -1) {
- if (a[i]._gc || (onlyActive && !a[i].isActive())) {
- a.splice(i, 1);
- }
- }
- }
- return a;
- };
-
- TweenLite.killTweensOf = TweenLite.killDelayedCallsTo = function(target, onlyActive, vars) {
- if (typeof(onlyActive) === "object") {
- vars = onlyActive; //for backwards compatibility (before "onlyActive" parameter was inserted)
- onlyActive = false;
- }
- var a = TweenLite.getTweensOf(target, onlyActive),
- i = a.length;
- while (--i > -1) {
- a[i]._kill(vars, target);
- }
- };
-
-
-
-/*
- * ----------------------------------------------------------------
- * TweenPlugin (could easily be split out as a separate file/class, but included for ease of use (so that people don't need to include another <script> call before loading plugins which is easy to forget)
- * ----------------------------------------------------------------
- */
- var TweenPlugin = _class("plugins.TweenPlugin", function(props, priority) {
- this._overwriteProps = (props || "").split(",");
- this._propName = this._overwriteProps[0];
- this._priority = priority || 0;
- this._super = TweenPlugin.prototype;
- }, true);
-
- p = TweenPlugin.prototype;
- TweenPlugin.version = "1.10.1";
- TweenPlugin.API = 2;
- p._firstPT = null;
-
- p._addTween = function(target, prop, start, end, overwriteProp, round) {
- var c, pt;
- if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : parseInt(end.charAt(0) + "1", 10) * Number(end.substr(2)))) {
- this._firstPT = pt = {_next:this._firstPT, t:target, p:prop, s:start, c:c, f:(typeof(target[prop]) === "function"), n:overwriteProp || prop, r:round};
- if (pt._next) {
- pt._next._prev = pt;
- }
- return pt;
- }
- };
-
- p.setRatio = function(v) {
- var pt = this._firstPT,
- min = 0.000001,
- val;
- while (pt) {
- val = pt.c * v + pt.s;
- if (pt.r) {
- val = Math.round(val);
- } else if (val < min) if (val > -min) { //prevents issues with converting very small numbers to strings in the browser
- val = 0;
- }
- if (pt.f) {
- pt.t[pt.p](val);
- } else {
- pt.t[pt.p] = val;
- }
- pt = pt._next;
- }
- };
-
- p._kill = function(lookup) {
- var a = this._overwriteProps,
- pt = this._firstPT,
- i;
- if (lookup[this._propName] != null) {
- this._overwriteProps = [];
- } else {
- i = a.length;
- while (--i > -1) {
- if (lookup[a[i]] != null) {
- a.splice(i, 1);
- }
- }
- }
- while (pt) {
- if (lookup[pt.n] != null) {
- if (pt._next) {
- pt._next._prev = pt._prev;
- }
- if (pt._prev) {
- pt._prev._next = pt._next;
- pt._prev = null;
- } else if (this._firstPT === pt) {
- this._firstPT = pt._next;
- }
- }
- pt = pt._next;
- }
- return false;
- };
-
- p._roundProps = function(lookup, value) {
- var pt = this._firstPT;
- while (pt) {
- if (lookup[this._propName] || (pt.n != null && lookup[ pt.n.split(this._propName + "_").join("") ])) { //some properties that are very plugin-specific add a prefix named after the _propName plus an underscore, so we need to ignore that extra stuff here.
- pt.r = value;
- }
- pt = pt._next;
- }
- };
-
- TweenLite._onPluginEvent = function(type, tween) {
- var pt = tween._firstPT,
- changed, pt2, first, last, next;
- if (type === "_onInitAllProps") {
- //sorts the PropTween linked list in order of priority because some plugins need to render earlier/later than others, like MotionBlurPlugin applies its effects after all x/y/alpha tweens have rendered on each frame.
- while (pt) {
- next = pt._next;
- pt2 = first;
- while (pt2 && pt2.pr > pt.pr) {
- pt2 = pt2._next;
- }
- if ((pt._prev = pt2 ? pt2._prev : last)) {
- pt._prev._next = pt;
- } else {
- first = pt;
- }
- if ((pt._next = pt2)) {
- pt2._prev = pt;
- } else {
- last = pt;
- }
- pt = next;
- }
- pt = tween._firstPT = first;
- }
- while (pt) {
- if (pt.pg) if (typeof(pt.t[type]) === "function") if (pt.t[type]()) {
- changed = true;
- }
- pt = pt._next;
- }
- return changed;
- };
-
- TweenPlugin.activate = function(plugins) {
- var i = plugins.length;
- while (--i > -1) {
- if (plugins[i].API === TweenPlugin.API) {
- _plugins[(new plugins[i]())._propName] = plugins[i];
- }
- }
- return true;
- };
-
- //provides a more concise way to define plugins that have no dependencies besides TweenPlugin and TweenLite, wrapping common boilerplate stuff into one function (added in 1.9.0). You don't NEED to use this to define a plugin - the old way still works and can be useful in certain (rare) situations.
- _gsDefine.plugin = function(config) {
- if (!config || !config.propName || !config.init || !config.API) { throw "illegal plugin definition."; }
- var propName = config.propName,
- priority = config.priority || 0,
- overwriteProps = config.overwriteProps,
- map = {init:"_onInitTween", set:"setRatio", kill:"_kill", round:"_roundProps", initAll:"_onInitAllProps"},
- Plugin = _class("plugins." + propName.charAt(0).toUpperCase() + propName.substr(1) + "Plugin",
- function() {
- TweenPlugin.call(this, propName, priority);
- this._overwriteProps = overwriteProps || [];
- }, (config.global === true)),
- p = Plugin.prototype = new TweenPlugin(propName),
- prop;
- p.constructor = Plugin;
- Plugin.API = config.API;
- for (prop in map) {
- if (typeof(config[prop]) === "function") {
- p[map[prop]] = config[prop];
- }
- }
- Plugin.version = config.version;
- TweenPlugin.activate([Plugin]);
- return Plugin;
- };
-
-
- //now run through all the dependencies discovered and if any are missing, log that to the console as a warning. This is why it's best to have TweenLite load last - it can check all the dependencies for you.
- a = window._gsQueue;
- if (a) {
- for (i = 0; i < a.length; i++) {
- a[i]();
- }
- for (p in _defLookup) {
- if (!_defLookup[p].func) {
- //window.console.log("GSAP encountered missing dependency: com.greensock." + p);
- }
- }
- }
-
- _tickerActive = false; //ensures that the first official animation forces a ticker.tick() to update the time when it is instantiated
-
-})(window);
-
-angular.module('att.abs.transition', [])
-
-.factory('$transition', ['$q', '$timeout', '$rootScope', function($q, $timeout, $rootScope) {
-
- var $transition = function(element, trigger, options) {
- options = options || {};
- var deferred = $q.defer();
- var endEventName = $transition[options.animation ? "animationEndEventName" : "transitionEndEventName"];
-
- var transitionEndHandler = function() {
- $rootScope.$apply(function() {
- element.unbind(endEventName, transitionEndHandler);
- deferred.resolve(element);
- });
- };
-
- if (endEventName) {
- element.bind(endEventName, transitionEndHandler);
- }
-
- // Wrap in a timeout to allow the browser time to update the DOM before the transition is to occur
- $timeout(function() {
- if ( angular.isString(trigger) ) {
- element.addClass(trigger);
- } else if ( angular.isFunction(trigger) ) {
- trigger(element);
- } else if ( angular.isObject(trigger) ) {
- element.css(trigger);
- }
- //If browser does not support transitions, instantly resolve
- if ( !endEventName ) {
- deferred.resolve(element);
- }
- }, 100);
-
- // Add our custom cancel function to the promise that is returned
- // We can call this if we are about to run a new transition, which we know will prevent this transition from ending,
- // i.e. it will therefore never raise a transitionEnd event for that transition
- deferred.promise.cancel = function() {
- if ( endEventName ) {
- element.unbind(endEventName, transitionEndHandler);
- }
- deferred.reject('Transition cancelled');
- };
-
- return deferred.promise;
- };
-
- // Work out the name of the transitionEnd event
- var transElement = document.createElement('trans');
- var transitionEndEventNames = {
- 'WebkitTransition': 'webkitTransitionEnd',
- 'MozTransition': 'transitionend',
- 'OTransition': 'oTransitionEnd',
- 'transition': 'transitionend'
- };
- var animationEndEventNames = {
- 'WebkitTransition': 'webkitAnimationEnd',
- 'MozTransition': 'animationend',
- 'OTransition': 'oAnimationEnd',
- 'transition': 'animationend'
- };
- function findEndEventName(endEventNames) {
- for (var name in endEventNames){
- if (transElement.style[name] !== undefined) {
- return endEventNames[name];
- }
- }
- }
- $transition.transitionEndEventName = findEndEventName(transitionEndEventNames);
- $transition.animationEndEventName = findEndEventName(animationEndEventNames);
- return $transition;
-}])
-
-.factory('$scrollTo', ['$window', function($window) {
- var $scrollTo = function(offsetLeft, offsetTop, duration) {
- TweenMax.to($window, duration || 1, {scrollTo: {y: offsetTop, x: offsetLeft}, ease: Power4.easeOut});
- };
- return $scrollTo;
-}])
-.factory('animation', function(){
- return TweenMax;
-})
-.factory('$progressBar', function(){
-
- //Provides a function to pass in code for closure purposes
- var loadingAnimationCreator = function(onUpdateCallback){
-
- //Use closure to setup some resuable code
- var loadingAnimation = function(callback, duration){
- TweenMax.to({}, duration, {
- onUpdateParams: ["{self}"],
- onUpdate: onUpdateCallback,
- onComplete: callback
- });
- };
- //Returns a function that takes a callback function and a duration for the animation
- return (function(){
- return loadingAnimation;
- })();
- };
-
- return loadingAnimationCreator;
-})
-.factory('$height', function(){
- var heightAnimation = function(element,duration,height,alpha){
- TweenMax.to(element,
- duration,
- {height:height, autoAlpha:alpha},
- 0);
- };
- return heightAnimation;
-});
-angular.module('att.abs.accordion', ['att.abs.utilities', 'att.abs.position', 'att.abs.transition'])
- .constant('accordionConfig', {
- closeOthers: false
- }).controller('AccordionController', ['$scope', '$attrs', 'accordionConfig', '$log',
- function ($scope, $attrs, accordionConfig, $log) {
- // This array keeps track of the accordion groups
- this.groups = [];
- this.index = -1;
- // Keep reference to user's scope to properly assign `is-open`
- this.scope = $scope;
- $scope.forceExpand = false;
- // Ensure that all the groups in this accordion are closed, unless close-others explicitly says not to
- this.closeOthers = function (openGroup) {
- var closeOthers = angular.isDefined($attrs.closeOthers) ? $scope.$eval($attrs.closeOthers) : accordionConfig.closeOthers;
- if (closeOthers && !$scope.forceExpand) {
- angular.forEach(this.groups, function (group) {
- if (group !== openGroup) {
- group.isOpen = false;
- }
- });
- }
- if (this.groups.indexOf(openGroup) === (this.groups.length - 1) && $scope.forceExpand) {
- $scope.forceExpand = false;
- }
- };
- this.expandAll = function () {
- $scope.forceExpand = true;
- angular.forEach(this.groups, function (group) {
- group.isOpen = true;
- });
- };
- this.collapseAll = function () {
- angular.forEach(this.groups, function (group) {
- group.isOpen = false;
- });
- };
- /**function focus @param focusGroup */
- this.focus = function (focusGroup) {
- var self = this;
- angular.forEach(this.groups, function (group, index) {
- if (group !== focusGroup) {
- group.focused = false;
- } else {
- self.index = index;
- group.focused = true;
- }
- });
- };
- /** @param blurGroup*/
- this.blur = function (blurGroup) {
- blurGroup.focused = false;
- this.index = -1;
- $log.log("accordion.blur()", blurGroup);
- };
- /** @param group - the group in current focus @param down - cycling down */
- this.cycle = function (group, down, noRecycle) {
- if (!down) {
- if (this.index <= 0 && !noRecycle) {
- this.index = this.groups.length - 1;
- } else {
- this.index--;
- }
- } else {
- if (this.index === (this.groups.length - 1))
- {
- if (noRecycle) {
- this.index = 0;
- group.focused = false;
- $scope.$apply();
- return;
- }
- else
- {
- this.index = 0;
- }
- } else {
- this.index++;
- }
- }
-
- group.focused = false;
- this.groups[this.index].setFocus = true;
- this.groups[this.index].focused = true;
- $scope.$apply();
- };
- // This is called from the accordion-group directive to add itself to the accordion
- this.addGroup = function (groupScope) {
- var that = this;
- groupScope.index = this.groups.length;
- groupScope.focused = false;
- this.groups.push(groupScope);
-
- if(this.groups.length > 0){
- this.index = 0;
- }
-
- groupScope.$on('$destroy', function () {
- that.removeGroup(groupScope);
- });
- };
- // This is called from the accordion-group directive when to remove itself
- this.removeGroup = function (group) {
- var index = this.groups.indexOf(group);
- if (index !== -1) {
- this.groups.splice(this.groups.indexOf(group), 1);
- }
- };
- }])
-// The accordion directive simply sets up the directive controller and adds an accordion CSS class to itself element.
- .directive('accordion', function () {
- return {
- restrict: 'EA',
- controller: 'AccordionController',
- transclude: true,
- replace: false,
- scope: {
- cClass: '@css',
- expandAll: "=?",
- collapseAll: "=?"
- },
- template: '<div class="{{cClass}}" ng-transclude></div>',
- link: function (scope, elem, attribute, ctrl) {
- scope.$watch("expandAll", function (value) {
- if (value) {
- ctrl.expandAll();
- scope.expandAll = false;
- }
- });
- scope.$watch("collapseAll", function (value) {
- if (value) {
- ctrl.collapseAll();
- scope.collapseAll = false;
- }
- });
- }
- };
- })
-// The accordion-group directive indicates a block of html that will expand and collapse in an accordion
- .directive('accordionGroup', [ function () {
- return {
- // We need this directive to be inside an accordion
- require: ['^accordion', 'accordionGroup'],
- restrict: 'EA',
- // It transcludes the contents of the directive into the template
- transclude: true,
- // The element containing the directive will be replaced with the template
- replace: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/accordion/accordion.html',
- scope: {
- // Create an isolated scope and interpolate the heading attribute onto this scope
- heading: '@',
- isOpen: '=?'
- },
- controller: ['$scope', function ($scope)
- {
- $scope.showicon = true;
- this.setHeading = function (element)
- {
- this.heading = element;
- $scope.showicon = false;
- };
- this.isIsOpen = function ()
- {
- return $scope.isOpen;
- };
- }],
- link: function (scope, element, attrs, ctrl) {
- var accordionCtrl = ctrl[0];
- var accordionGroupCtrl = ctrl[1];
- var keys = {tab: 9, enter: 13, esc: 27, space: 32, pageup: 33, pagedown: 34, end: 35, home: 36, left: 37, up: 38, right: 39, down: 40};
- //not a fix
- var tab = element.children().eq(0);
-
- scope.setFocus = false;
-
- var handleKeydown = function (ev) {
- var boolFlag = true;
- switch (ev.keyCode)
- {
- case keys.enter:
- ev.preventDefault();
- scope.toggle();
- scope.$apply();
- break;
- case keys.up:
- case keys.left:
- ev.preventDefault();
- accordionCtrl.cycle(scope, false);
- break;
- case keys.down:
- case keys.right:
- ev.preventDefault();
- accordionCtrl.cycle(scope, true);
- break;
- default:
- boolFlag = false;
- break;
- }
- ev.stopPropagation();
- return boolFlag;
- };
-
- if (angular.isUndefined(scope.isOpen)) {
- scope.isOpen = false;
- }
-
- tab.bind("keydown", handleKeydown);
-
- accordionCtrl.addGroup(scope);
-
- if (scope.index === 0) {
- scope.focused = true;
- }
-
- accordionGroupCtrl.toggle = scope.toggle = function () {
- scope.isOpen = !scope.isOpen;
- accordionCtrl.focus(scope);
- return scope.isOpen;
- };
-
- scope.$watch('isOpen', function (value) {
- if (value) {
- accordionCtrl.closeOthers(scope);
- }
- });
-
- scope.$watch("focused", function (value) {
- if (!!value) {
- tab.attr("tabindex", "0");
- if(scope.setFocus){
- tab[0].focus();
- }
- }
- else{
- scope.setFocus = false;
- tab.attr("tabindex", "-1");
- }
- });
- }
- };
- }])
-// Use accordion-heading below an accordion-group to provide a heading containing HTML
-// <accordion-group>
-// <accordion-heading>Heading containing HTML - <img src="..."></accordion-heading>
-// </accordion-group>
- .directive('accordionToggle', function () {
- return{
- restrict: 'EA',
- require: '^accordionGroup',
- scope: {
- expandIcon: '@',
- collapseIcon: '@'
- },
- link: function (scope, element, attr, accordionCtrl)
- {
- var setIcon = function (isOpen) {
- if (scope.expandIcon && scope.collapseIcon)
- {
- if (isOpen) {
- element.removeClass(scope.expandIcon);
- element.addClass(scope.collapseIcon);
- }
- else {
- element.removeClass(scope.collapseIcon);
- element.addClass(scope.expandIcon);
- }
- }
- };
- element.bind('click', function ()
- {
- accordionCtrl.toggle();
- scope.$apply();
- });
- scope.$watch(function () {
- return accordionCtrl.isIsOpen();
- }, function (value) {
- setIcon(value);
- });
- }
- };
- }).directive('accordionHeading', function () {
- return {
- restrict: 'EA',
- transclude: true,
- template: '',
- require: '^accordionGroup',
- compile: function (element, attr, transclude) {
- var link = function (scope, element, attr, accordionGroupCtrl) {
- // Pass the heading to the accordion-group controller
- // so that it can be transcluded into the right place in the template
- // [The second parameter to transclude causes the elements to be cloned so that they work in ng-repeat]
- transclude(scope, function (clone) {
- element.append(clone);
- accordionGroupCtrl.setHeading(element);
- });
- };
- return link;
- }
- };
-})
-// Use in the accordion-group template to indicate where you want the heading to be transcluded
-// You must provide the property on the accordion-group controller that will hold the transcluded element
- .directive('accordionTransclude', function () {
- return {
- require: '^accordionGroup',
- link: function (scope, element, attr, controller) {
- scope.$watch(function () {
- return controller[attr.accordionTransclude];
- }, function (heading) {
- if (heading) {
- element.find("span").eq(0).prepend(heading);
- }
- });
- }
- };
- })
- .directive('attGoTop', ['$scrollTo', function ($scrollTo) {
- return {
- restrict: 'A',
- transclude: false,
- link: function (scope, elem, attrs)
- {
- elem.bind('click', function ()
- {
- $scrollTo(0, attrs["attGoTop"]);
- });
- }
- };
- }])
- .directive('attGoTo', ['$anchorScroll', '$location', function ($anchorScroll, $location) {
- return {
- restrict: 'A',
- transclude: false,
- link: function (scope, elem, attrs)
- {
- elem.bind('click', function ()
- {
- var newHash = attrs["attGoTo"];
- if ($location.hash() !== newHash)
- {
- $location.hash(attrs["attGoTo"]);
- }
- else
- {
- $anchorScroll();
- }
- });
- }
- };
- }])
- .directive('freeStanding', function () {
- return {
- restrict: 'EA',
- transclude: true,
- replace: true,
- scope: true,
- template: "<div><span class='att-accordion__freestanding' ng-show='showAccordion'></span>\n" +
- "<div class='section-toggle'>\n" +
- "<button class='section-toggle__button' ng-click='fsToggle()'>\n" +
- " {{btnText}}<i style='font-size:0.875rem' ng-class='{\"icon-chevron-up\": showAccordion,\"icon-chevron-down\": !showAccordion, }'></i> \n" +
- "</button>\n" +
- "</div></div>",
- compile: function (element, attr, transclude)
- {
- var link = function (scope, elem, attrs) {
- scope.content = "";
- transclude(scope, function (clone)
- {
- elem.find("span").append(clone);
- });
- scope.showAccordion = false;
- scope.btnText = scope.showAccordion ? attrs.hideMsg : attrs.showMsg;
- scope.fsToggle = function ()
- {
- scope.showAccordion = !scope.showAccordion;
- scope.btnText = scope.showAccordion ? attrs.hideMsg : attrs.showMsg;
- };
- };
- return link;
- }
- };
- }).directive('expanders', function () {
- return{
- restrict: 'EA',
- replace: true,
- transclude: true,
- template: "<div ng-transclude></div>",
- controller: ['$scope', function ($scope){
- var bodyScope = null;
- this.setScope = function (scope) {
- bodyScope = scope;
- };
- this.toggle = function () {
- $scope.isOpen = bodyScope.isOpen = !bodyScope.isOpen;
- return bodyScope.isOpen;
- };
- }],
- link: function (scope)
- {
- scope.isOpen = false;
- }
- };
-}).directive('expanderHeading', function () {
- return{
- require: "^expanders",
- restrict: 'EA',
- replace: true,
- transclude: true,
- scope: true,
- template: "<div style='padding:10px !important' ng-transclude></div>"
- };
-}).directive('expanderBody', function () {
- return{
- restrict: 'EA',
- require: "^expanders",
- replace: true,
- transclude: true,
- scope: {},
- template: "<div collapse='!isOpen'><div ng-transclude></div></div>",
- link: function (scope, elem, attr, myCtrl) {
- scope.isOpen = false;
- myCtrl.setScope(scope);
- }
- };
-}).directive('expanderToggle', function () {
- return{
- restrict: 'EA',
- require: "^expanders",
- scope: {
- expandIcon: '@',
- collapseIcon: '@'
- },
- link: function (scope, element, attr, myCtrl)
- {
- var isOpen = false;
- var setIcon = function () {
- if (scope.expandIcon && scope.collapseIcon)
- {
- if (isOpen) {
- element.removeClass(scope.expandIcon);
- element.addClass(scope.collapseIcon);
- }
- else {
- element.removeClass(scope.collapseIcon);
- element.addClass(scope.expandIcon);
- }
- }
- };
- element.bind("keydown", function (e) {
- if (e.keyCode === 13)
- {
- scope.toggleit();
- }
- });
- element.bind('click', function ()
- {
- scope.toggleit();
- });
- scope.toggleit = function ()
- {
- isOpen = myCtrl.toggle();
- setIcon();
- scope.$apply();
- };
- setIcon();
- }
- };
-}).directive('collapse', ['$transition', function ($transition) {
- // CSS transitions don't work with height: auto, so we have to manually change the height to a
- // specific value and then once the animation completes, we can reset the height to auto.
- // Unfortunately if you do this while the CSS transitions are specified (i.e. in the CSS class
- // "collapse") then you trigger a change to height 0 in between.
- // The fix is to remove the "collapse" CSS class while changing the height back to auto - phew!
- var props = {
- open: {
- marginTop: null,
- marginBottom: null,
- paddingTop: null,
- paddingBottom: null,
- display: 'block'
- },
- closed: {
- marginTop: 0,
- marginBottom: 0,
- paddingTop: 0,
- paddingBottom: 0,
- display: 'none'
- }
- };
- var fixUpHeight = function (scope, element, height) {
- // We remove the collapse CSS class to prevent a transition when we change to height: auto
- element.removeClass('collapse');
- element.css({height: height});
- //adjusting for any margin or padding
- if (height === 0) {
- element.css(props.closed);
- } else {
- element.css(props.open);
- }
- // It appears that reading offsetWidth makes the browser realise that we have changed the
- // height already :-/
- element.addClass('collapse');
- };
- return {
- link: function (scope, element, attrs) {
- var isCollapsed;
- var initialAnimSkip = true;
- scope.$watch(function () {
- return element[0].scrollHeight;
- }, function () {
- //The listener is called when scrollHeight changes
- //It actually does on 2 scenarios:
- // 1. Parent is set to display none
- // 2. angular bindings inside are resolved
- //When we have a change of scrollHeight we are setting again the correct height if the group is opened
- if (element[0].scrollHeight !== 0 && !isCollapsed) {
- if (initialAnimSkip) {
- fixUpHeight(scope, element, element[0].scrollHeight + 'px');
- } else {
- fixUpHeight(scope, element, 'auto');
- }
- }
- });
- var currentTransition;
- var doTransition = function (change) {
- if (currentTransition) {
- currentTransition.cancel();
- }
- currentTransition = $transition(element, change);
- currentTransition.then(
- function () {
- currentTransition = undefined;
- },
- function () {
- currentTransition = undefined;
- }
- );
- return currentTransition;
- };
- var expand = function () {
- scope.postTransition = true;
- if (initialAnimSkip) {
- initialAnimSkip = false;
- if (!isCollapsed) {
- fixUpHeight(scope, element, 'auto');
- }
- } else {
- doTransition(angular.extend({height: element[0].scrollHeight + 'px'}, props.open))
- .then(function () {
- // This check ensures that we don't accidentally update the height if the user has closed
- // the group while the animation was still running
- if (!isCollapsed)
- {
- fixUpHeight(scope, element, 'auto');
- }
- });
- }
- isCollapsed = false;
- };
- var collapse = function () {
- isCollapsed = true;
- if (initialAnimSkip) {
- initialAnimSkip = false;
- fixUpHeight(scope, element, 0);
- } else {
- fixUpHeight(scope, element, element[0].scrollHeight + 'px');
- doTransition(angular.extend({height: 0}, props.closed)).then(function () {
- scope.postTransition = false;
- });
- }
- };
- scope.$watch(attrs.collapse, function (value) {
- if (value) {
- collapse();
- } else {
- expand();
- }
- });
- }
- };
- }])
- .directive('attAccord', function () {
- return {
- restrict: 'EA',
- transclude: true,
- replace: true,
- scope: {},
- controller: 'AttAccordCtrl',
- templateUrl: 'app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html'
- };
- })
- .controller('AttAccordCtrl', [function () {
- this.type = 'attAccord';
- this.headerCtrl;
- this.bodyCtrl;
- var isOpen = true;
- this.toggleBody = function () {
- if (isOpen) {
- this.expandBody();
- }
- else {
- this.collapseBody();
- }
- isOpen = !isOpen;
- };
- this.expandBody = function () {
- this.bodyCtrl.expand();
- };
- this.collapseBody = function () {
- this.bodyCtrl.collapse();
- };
- }])
- .controller('AttAccordHeaderCtrl', [function () {
- this.type = 'header';
- }])
- .directive('attAccordHeader', ['keymap', 'events', function (keymap, events) {
- return {
- restrict: 'EA',
- transclude: true,
- replace: true,
- require: ['^attAccord', 'attAccordHeader'],
- controller: 'AttAccordHeaderCtrl',
- templateUrl: 'app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html',
- link: function (scope, element, attr, ctrls) {
- var attAccordCtrl = ctrls[0];
- var attAccordHeaderCtrl = ctrls[1];
- attAccordCtrl.headerCtrl = attAccordHeaderCtrl;
- var tab = element.children().eq(0);
-
- scope.clickFunc = function () {
- attAccordCtrl.toggleBody();
- };
-
- var handleKeydown = function (ev) {
- var boolFlag = true;
- switch (ev.keyCode)
- {
- case keymap.KEY.ENTER:
- ev.preventDefault();
- scope.clickFunc();
- scope.$apply();
- break;
- default:
- boolFlag = false;
- break;
- }
- ev.stopPropagation();
- return boolFlag;
- };
-
- if (angular.isUndefined(scope.isOpen)) {
- scope.isOpen = false;
- }
-
- tab.bind("keydown", handleKeydown);
- }
- };
- }])
- .controller('AttAccordBodyCtrl', ['$scope', function ($scope) {
- this.type = 'body';
- this.expand = function () {
- $scope.expand();
- };
- this.collapse = function () {
- $scope.collapse();
- };
- }])
- .directive('attAccordBody', ['$timeout', '$height', function ($timeout, $height) {
- return {
- restrict: 'EA',
- transclude: true,
- replace: true,
- require: ['^attAccord', 'attAccordBody'],
- controller: 'AttAccordBodyCtrl',
- templateUrl: 'app/scripts/ng_js_att_tpls/accordion/attAccordBody.html',
- link: function (scope, element, attr, ctrls) {
- var attAccordCtrl = ctrls[0];
- var attAccordBodyCtrl = ctrls[1];
- attAccordCtrl.bodyCtrl = attAccordBodyCtrl;
- var originalHeight;
- $timeout(function () {
- originalHeight = element[0].offsetHeight;
- $height(element, 0, 0, 0);
- });
- scope.expand = function () {
- $height(element, 0.05, originalHeight, 1);
- };
- scope.collapse = function () {
- $height(element, 0.25, 0, 0);
- };
- }
- };
- }]);
-angular.module('att.abs.alert', [])
-.directive('attAlert', [function()
-{
- return {
- restrict:'EA',
- replace : true,
- transclude : true,
- scope: {
- alertType : "@type",
- showTop : "@topPos",
- showAlert : "="
- },
- templateUrl : 'app/scripts/ng_js_att_tpls/alert/alert.html',
- link: function(scope)
- {
- if(scope.showTop === 'true'){
- scope.cssStyle = {'top':'50px'};
- }
- else{
- scope.cssStyle = {'top':'0px'};
- }
- scope.close = function(){
- scope.showAlert = false;
- };
- }
- };
-}]);
-
-angular.module('att.abs.boardStrip', ['att.abs.utilities'])
-.constant('BoardStripConfig', {
- 'maxVisibleBoards': 4,
- 'boardsToScroll': 1,
- /* These parameters are non-configurable and remain unaltered, until there is a change in corresponding SCSS */
- 'boardLength': 140,
- 'boardMargin': 15
-})
-.directive('attBoard', [function() {
- return {
- restrict: 'AE',
- replace: true,
- transclude: true,
- require: '^attBoardStrip',
- scope : {
- boardIndex : '=',
- boardLabel : '='
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/boardStrip/attBoard.html',
- link: function(scope, element, attrs, ctrls) {
-
- var parentCtrl = ctrls;
-
- scope.getCurrentIndex = function() {
- return parentCtrl.getCurrentIndex();
- };
- scope.selectBoard = function(boardIndex) {
- if (!isNaN(boardIndex)) {
- parentCtrl.setCurrentIndex(boardIndex);
- }
- };
- scope.isInView = function(boardIndex) {
- return parentCtrl.isInView(boardIndex);
- };
- }
- };
-}])
-.directive('attBoardStrip', ['BoardStripConfig', '$timeout', '$ieVersion', function(BoardStripConfig, $timeout, $ieVersion) {
- return {
- restrict: 'AE',
- replace: true,
- transclude: true,
- scope: {
- currentIndex: '=selectedIndex',
- boardsMasterArray : '=',
- onAddBoard : '&?'
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html',
- controller: function($scope) {
- if(!angular.isDefined($scope.boardsMasterArray)){
- $scope.boardsMasterArray = [];
- }
-
- this.rectifyMaxVisibleBoards = function() {
- if (this.maxVisibleIndex >= $scope.boardsMasterArray.length) {
- this.maxVisibleIndex = $scope.boardsMasterArray.length - 1;
- }
-
- if (this.maxVisibleIndex < 0) {
- this.maxVisibleIndex = 0;
- }
- };
-
- this.resetBoardStrip = function(){
- $scope.currentIndex = 0;
-
- this.maxVisibleIndex = BoardStripConfig.maxVisibleBoards-1;
- this.minVisibleIndex = 0;
-
- this.rectifyMaxVisibleBoards();
- };
-
-
- if ($scope.currentIndex > 0) {
- var index = $scope.currentIndex;
- this.resetBoardStrip();
- if (index > $scope.boardsMasterArray.length) {
- $scope.currentIndex = $scope.boardsMasterArray.length-1;
- } else {
- $scope.currentIndex = index;
- }
- } else {
- this.resetBoardStrip();
- }
-
-
- this.getCurrentIndex = function() {
- return $scope.currentIndex;
- };
- this.setCurrentIndex = function(indx) {
- $scope.currentIndex = indx;
- };
-
- this.isInView = function(index) {
- return (index <= this.maxVisibleIndex && index >= this.minVisibleIndex);
- };
-
- this.getBoardsMasterArrayLength = function() {
- return $scope.boardsMasterArray.length;
- };
- },
- link: function(scope, element, attrs, ctrl) {
- var ieVersion = $ieVersion();
-
- var oldTimeout;
- var animationTimeout = 1000;
-
- if(ieVersion && ieVersion < 10) {
- animationTimeout = 0;
- }
-
- var getBoardViewportWidth = function (numberOfVisibleBoards) {
- return numberOfVisibleBoards * (BoardStripConfig.boardLength + BoardStripConfig.boardMargin);
- };
- if(element[0].querySelector(".board-viewport")) {
- angular.element(element[0].querySelector(".board-viewport")).css({"width": getBoardViewportWidth(BoardStripConfig.maxVisibleBoards) + "px"});
- }
-
- var getBoardstripContainerWidth = function (totalNumberOfBoards) {
- return totalNumberOfBoards * (BoardStripConfig.boardLength + BoardStripConfig.boardMargin);
- };
- if(element[0].querySelector(".boardstrip-container")) {
- angular.element(element[0].querySelector(".boardstrip-container")).css({"width": getBoardstripContainerWidth(ctrl.getBoardsMasterArrayLength()) + "px"});
- angular.element(element[0].querySelector(".boardstrip-container")).css({"left": "0px"});
- }
-
- var calculateAndGetBoardstripContainerAdjustment = function () {
-
- var calculatedAdjustmentValue;
-
- if(ctrl.getBoardsMasterArrayLength() <= BoardStripConfig.maxVisibleBoards) {
- calculatedAdjustmentValue = 0;
- }
- else{
- calculatedAdjustmentValue = (ctrl.minVisibleIndex * (BoardStripConfig.boardLength + BoardStripConfig.boardMargin))* -1;
- }
-
- return calculatedAdjustmentValue;
- };
-
- var updateBoardsTabIndex = function(boardArray, minViewIndex, maxViewIndex) {
- for (var i = 0; i < boardArray.length; i++) {
- angular.element(boardArray[i]).attr('tabindex', '-1');
- }
- for (var i = minViewIndex; i <= maxViewIndex; i++) {
- angular.element(boardArray[i]).attr('tabindex', '0');
- }
- };
-
- scope.$watchCollection('boardsMasterArray', function(newVal, oldVal){
- if(newVal !== oldVal){
- /* When a board is removed */
- if(newVal.length < oldVal.length){
- ctrl.resetBoardStrip();
- $timeout(function(){
-
- var currentBoardArray = element[0].querySelectorAll('[att-board]');
- if(currentBoardArray.length !== 0) {
-
- var oldContainerAdjustment = angular.element(element[0].querySelector(".boardstrip-container"))[0].style.left;
- var containerAdjustment = calculateAndGetBoardstripContainerAdjustment();
- if(oldContainerAdjustment !== containerAdjustment+'px') {
- angular.element(element[0].querySelector(".boardstrip-container")).css({"left": containerAdjustment + "px"});
-
- $timeout.cancel(oldTimeout);
- oldTimeout = $timeout(function(){
- currentBoardArray[0].focus();
- }, animationTimeout);
- }
- else{
- currentBoardArray[0].focus();
- }
- }
- else{
- element[0].querySelector('div.boardstrip-item--add').focus();
- }
-
- angular.element(element[0].querySelector(".boardstrip-container")).css({"width": getBoardstripContainerWidth(ctrl.getBoardsMasterArrayLength()) + "px"});
- });
- }
- /* When a board is added */
- else {
- ctrl.maxVisibleIndex = ctrl.getBoardsMasterArrayLength()-1;
- ctrl.minVisibleIndex = Math.max(ctrl.maxVisibleIndex - BoardStripConfig.maxVisibleBoards + 1, 0);
-
- ctrl.setCurrentIndex(ctrl.maxVisibleIndex);
-
- $timeout(function(){
- angular.element(element[0].querySelector(".boardstrip-container")).css({"width": getBoardstripContainerWidth(ctrl.getBoardsMasterArrayLength()) + "px"});
-
- var oldContainerAdjustment = angular.element(element[0].querySelector(".boardstrip-container"))[0].style.left;
- var containerAdjustment = calculateAndGetBoardstripContainerAdjustment();
- var currentBoardArray = element[0].querySelectorAll('[att-board]');
- if(oldContainerAdjustment !== containerAdjustment+'px') {
- angular.element(element[0].querySelector(".boardstrip-container")).css({"left": containerAdjustment + "px"});
-
- $timeout.cancel(oldTimeout);
- oldTimeout = $timeout(function(){
- currentBoardArray[currentBoardArray.length-1].focus();
- }, animationTimeout);
- }
- else{
- currentBoardArray[currentBoardArray.length-1].focus();
- }
- /* Update tabindecies to ensure keyboard navigation behaves correctly */
- updateBoardsTabIndex(currentBoardArray, ctrl.minVisibleIndex, ctrl.maxVisibleIndex);
- });
- }
- }
- });
-
- scope.nextBoard = function() {
- ctrl.maxVisibleIndex += BoardStripConfig.boardsToScroll;
- ctrl.rectifyMaxVisibleBoards();
- ctrl.minVisibleIndex = ctrl.maxVisibleIndex - (BoardStripConfig.maxVisibleBoards-1);
-
- $timeout.cancel(oldTimeout);
- angular.element(element[0].querySelector(".boardstrip-container")).css({"left": calculateAndGetBoardstripContainerAdjustment() + "px"});
-
- $timeout(function(){
- var currentBoardArray = element[0].querySelectorAll('[att-board]');
-
- /* Remove tabindex from non-visible boards */
- updateBoardsTabIndex(currentBoardArray, ctrl.minVisibleIndex, ctrl.maxVisibleIndex);
-
- if (!(scope.isNextBoard())) {
- try {
- currentBoardArray[currentBoardArray.length-1].focus();
- } catch(e) {}
- }
- }, animationTimeout);
- };
- scope.prevBoard = function() {
-
- ctrl.minVisibleIndex -= BoardStripConfig.boardsToScroll;
- if (ctrl.minVisibleIndex < 0) {
- ctrl.minVisibleIndex = 0;
- }
-
- ctrl.maxVisibleIndex = ctrl.minVisibleIndex + BoardStripConfig.maxVisibleBoards-1;
- ctrl.rectifyMaxVisibleBoards();
-
- $timeout.cancel(oldTimeout);
- angular.element(element[0].querySelector(".boardstrip-container")).css({"left": calculateAndGetBoardstripContainerAdjustment() + "px"});
-
- $timeout(function(){
- var currentBoardArray = element[0].querySelectorAll('[att-board]');
-
- /* Remove tabindex from non-visible boards */
- updateBoardsTabIndex(currentBoardArray, ctrl.minVisibleIndex, ctrl.maxVisibleIndex);
-
- if (ctrl.minVisibleIndex === 0) {
- try {
- element[0].querySelector('div.boardstrip-item--add').focus();
- } catch (e) {} /* IE8 may throw exception */
- }
- });
- };
-
- scope.isPrevBoard = function() {
- return (ctrl.minVisibleIndex > 0);
- };
- scope.isNextBoard = function() {
- return (ctrl.getBoardsMasterArrayLength()-1 > ctrl.maxVisibleIndex);
- };
- }
- };
-}])
-.directive('attAddBoard', ['BoardStripConfig', '$parse', '$timeout', function(BoardStripConfig, $parse, $timeout) {
- return {
- restrict: 'AE',
- replace: true,
- require: '^attBoardStrip',
- scope : {
- onAddBoard : '&?'
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html',
- link: function(scope, element, attrs, ctrls) {
- var parentCtrl = ctrls;
- scope.addBoard = function() {
- if (attrs['onAddBoard'] ) {
- scope.onAddBoard = $parse(scope.onAddBoard);
- scope.onAddBoard();
- }
- };
- }
- };
-}])
-.directive('attBoardNavigation', ['keymap', 'events', function(keymap, events) {
- return {
- restrict: 'AE',
- link: function(scope, elem) {
-
- var prevElem = keymap.KEY.LEFT;
- var nextElem = keymap.KEY.RIGHT;
-
- elem.bind('keydown', function (ev) {
-
- if (!(ev.keyCode)) {
- ev.keyCode = ev.which;
- }
-
- switch (ev.keyCode) {
- case nextElem:
- events.preventDefault(ev);
- events.stopPropagation(ev);
-
- if (elem[0].nextElementSibling && parseInt(angular.element(elem[0].nextElementSibling).attr('tabindex')) >= 0) {
- angular.element(elem[0])[0].nextElementSibling.focus();
- } else {
- /* IE8 fix */
- var el = angular.element(elem[0])[0];
- do {
- if (el.nextSibling){
- el = el.nextSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'LI');
-
- if (el.tagName && el.tagName === 'LI' && parseInt(angular.element(el).attr('tabindex')) >= 0){
- el.focus();
- }
- }
-
- break;
- case prevElem:
- events.preventDefault(ev);
- events.stopPropagation(ev);
-
- if (elem[0].previousElementSibling && parseInt(angular.element(elem[0].previousElementSibling).attr('tabindex')) >= 0) {
- angular.element(elem[0])[0].previousElementSibling.focus();
- } else {
- /* IE8 fix */
- var el1 = angular.element(elem[0])[0];
- do {
- if (el1.previousSibling){
- el1 = el1.previousSibling;
- }
- else{
- break;
- }
- } while (el1 && el1.tagName !== 'LI');
-
- if (el1.tagName && el1.tagName === 'LI' && parseInt(angular.element(el).attr('tabindex')) >= 0){
- el1.focus();
- }
- }
- break;
- default:
- break;
- }
- });
- }
- };
-}]);
-
-angular.module('att.abs.breadCrumbs', [])
- .constant("classConstant",{
- "defaultClass" : "breadcrumbs__link",
- "activeClass": "breadcrumbs__link--active"
- })
- .directive('attCrumb', ['classConstant', function(classConstant) {
- return {
- restrict: 'A',
- link: function(scope, elem, attr) {
- elem.addClass(classConstant.defaultClass);
- if(attr.attCrumb === 'active'){
- elem.addClass(classConstant.activeClass);
- }
- if(!elem.hasClass('last')){
- elem.after('<i class="breadcrumbs__item"></i>');
- }
- }
- };
- }
-]);
-angular.module('att.abs.buttons', ['att.abs.position', 'att.abs.utilities'])
- .constant('btnConfig', {
- btnClass: 'button',
- btnPrimaryClass: 'button--primary',
- btnSecondaryClass: 'button--secondary',
- btnDisabledClass: 'button--inactive',
- btnSmallClass: 'button--small'
- })
- .directive('attButton', ['btnConfig', function (btnConfig) {
- return {
- restrict: 'A',
- link: function (scope, element, attrs) {
- element.addClass(btnConfig.btnClass);
- if (attrs.size === 'small') {
- element.addClass(btnConfig.btnSmallClass);
- }
- attrs.$observe('btnType', function (value) {
- if (value === 'primary') {
- element.addClass(btnConfig.btnPrimaryClass);
- element.removeClass(btnConfig.btnSecondaryClass);
- element.removeClass(btnConfig.btnDisabledClass);
- element.removeAttr('disabled');
- } else if (value === 'secondary') {
- element.addClass(btnConfig.btnSecondaryClass);
- element.removeClass(btnConfig.btnPrimaryClass);
- element.removeClass(btnConfig.btnDisabledClass);
- element.removeAttr('disabled');
- } else if (value === 'disabled') {
- element.addClass(btnConfig.btnDisabledClass);
- element.removeClass(btnConfig.btnPrimaryClass);
- element.removeClass(btnConfig.btnSecondaryClass);
- element.attr('disabled', 'disabled');
- }
- });
- }
- };
- }])
- .directive('attButtonLoader', [function () {
- return {
- restrict: 'A',
- replace: false,
- scope: {
- size: '@'
- },
- template: '<div ng-class="{\'button--loading\': size === \'large\',\'button--loading__small\': size === \'small\'}"><i></i><i class="second__loader"></i><i></i></div>',
- link: function (scope, element) {
- element.addClass('button button--inactive');
- }
- };
- }])
- .directive('attButtonHero', [function () {
- return {
- restrict: 'A',
- replace: false,
- transclude: true,
- scope: {
- icon: '@'
- },
- template: '<div class="button--hero__inner"><span ng-transclude></span> <i ng-class="{\'icon-arrow-right\': icon === \'arrow-right\',\'icon-cart\': icon === \'cart\'}"></i></div>',
- link: function (scope, element) {
- element.addClass('button button--hero');
- element.attr("tabindex", "0");
- }
- };
- }])
- .directive('attBtnDropdown', ['$document', '$timeout', '$isElement', '$documentBind', 'keymap', 'events', function ($document, $timeout, $isElement, $documentBind, keymap, events) {
- return {
- restrict: 'EA',
- scope: {
- type: "@dropdowntype"
- },
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html',
- link: function (scope, element) {
- scope.isOpen = false;
- var currentIndex = -1;
- // Capture all the li elements after compilation
- var list = [], button = undefined;
- $timeout(function() {
- list = element.find('li');
- button = element.find('button')[0];
- }, 10);
- var toggle = scope.toggle = function (show) {
- if (angular.isUndefined(show) || show === '') {
- scope.isOpen = !scope.isOpen;
- }
- else {
- scope.isOpen = show;
- }
- };
- var selectNext = function() {
- if (currentIndex+1 < list.length) {
- currentIndex++;
- list[currentIndex].focus();
- }
- };
- var selectPrev = function() {
- if (currentIndex-1 >= 0) {
- currentIndex--;
- list[currentIndex].focus();
- }
- };
- element.bind("keydown", function($event) {
- var keyCode = $event.keyCode;
- if (keymap.isAllowedKey(keyCode) || keymap.isControl($event) || keymap.isFunctionKey($event)) {
- switch (keyCode) {
- case keymap.KEY.ENTER:
- if (currentIndex > 0) {
- button.focus();
- scope.$apply();
- }
- break;
- case keymap.KEY.ESC:
- toggle(false);
- currentIndex = -1;
- button.focus();
- scope.$apply();
- break;
- case keymap.KEY.DOWN:
- selectNext();
- scope.$apply();
- events.preventDefault($event);
- events.stopPropagation($event);
- break;
- case keymap.KEY.UP:
- selectPrev();
- scope.$apply();
- events.preventDefault($event);
- events.stopPropagation($event);
- break;
- default:
- break;
- }
- } else if (keyCode === keymap.KEY.TAB) {
- toggle(false);
- currentIndex = -1;
- scope.$apply();
- }
- });
- var outsideClick = function (e) {
- var isElement = $isElement(angular.element(e.target), element, $document);
- if (!isElement) {
- toggle(false);
- currentIndex = -1;
- for (var i = 0; i < list.length; i++) {
- angular.element(list[i]).removeClass('selected');
- }
- button.focus();
- scope.$apply();
- }
- };
- $documentBind.click('isOpen', outsideClick, scope);
- }
- };
- }]);
-angular.module('att.abs.checkbox', [])
-.constant("attCheckboxConfig", {
- activeClass : "att-checkbox--on",
- disabledClass : "att-checkbox--disabled"
-})
-.directive('checkboxLimit', function () {
-return {
- scope: {
- checkboxLimit:'=',
- selectLimit:'@?',
- maxSelected:'&?'
- },
- restrict: 'A',
- require:'checkboxLimit',
- controller: ['$scope',function($scope)
- {
- $scope.limit=true;
- this.getMaxLimits=function(){
- return $scope.limit;
- };
- this.setMaxLimits=function(value){
- $scope.limit=value;
- };
- this.maxCheckboxSelected=function(){
- $scope.maxSelected();
- };
- }],
- link: function (scope, element, attribute, ctrl) {
- scope.$watch('checkboxLimit', function()
- {
- var countTrue = 0;
- for (var keys in scope.checkboxLimit) {
- if (scope.checkboxLimit.hasOwnProperty(keys) && scope.checkboxLimit[keys]) {
- countTrue = countTrue + 1;
- }
- };
- if(countTrue>=parseInt(scope.selectLimit)){
- ctrl.setMaxLimits(false);
- }
- else{
- ctrl.setMaxLimits(true);
- }
- }, true);
- }
-};
-})
-.directive('attCheckbox', ['$compile', "attCheckboxConfig", function ($compile, attCheckboxConfig) {
- return {
- scope: {},
- restrict: 'A',
- require: ['ngModel','^?checkboxLimit'],
- link: function (scope, element, attribute, ctrl) {
- var ngCtrl = ctrl[0];
- var checkboxLimitCtrl = ctrl[1];
- var parentDiv = $compile('<div tabindex="0" role="checkbox" att-accessibility-click="13,32" aria-label="Checkbox" ng-click="updateModel($event)" class="att-checkbox"></div>')(scope);
- element.css({display:'none'});
- element.wrap(parentDiv);
- element.parent().append('<div class="att-checkbox__indicator"></div>');
- element.parent().attr("title", attribute.title);
- element.parent().attr("aria-label", attribute.title);
- element.parent().attr("id", attribute.id);
- element.removeAttr("id");
- //element.removeAttr("title");
- //model -> UI
- ngCtrl.$render = function () {
- var selected = ngCtrl.$modelValue ? true : false;
- element.parent().toggleClass(attCheckboxConfig.activeClass, selected);
- element.parent().attr("aria-checked", selected);
- };
-
- //ui->model
- scope.updateModel = function (evt) {
- if (!scope.disabled) {
- ngCtrl.$setViewValue(element.parent().hasClass(attCheckboxConfig.activeClass) ? false : true);
- if(checkboxLimitCtrl && !(checkboxLimitCtrl.getMaxLimits())){
- if(!ngCtrl.$modelValue){
- ngCtrl.$render();
- }
- else{
- checkboxLimitCtrl.maxCheckboxSelected();
- ngCtrl.$setViewValue(element.parent().hasClass(attCheckboxConfig.activeClass) ? true : false);
- }
- }
- else{
- ngCtrl.$render();
- }
- }
- evt.preventDefault();
- };
-
- attribute.$observe('disabled', function(val) {
- scope.disabled = (val || val === "disabled" || val === "true");
- element.parent().toggleClass(attCheckboxConfig.disabledClass, scope.disabled);
- element.parent().attr("tabindex", scope.disabled ? "-1" : "0");
- });
- }
- };
-}])
-.directive('checkboxGroup', ['$compile',function($compile) {
- return {
- scope:{
- checkboxGroup: "=",
- checkboxGroupValue: "=?"
- },
- restrict: 'A',
- link: function(scope, element, attribute){
- scope.checkboxState = 'none';
- if (scope.checkboxGroupValue === undefined) {
- scope.checkboxGroupValue = "indeterminate";
- }
- element.css({display:'none'});
- element.wrap($compile('<div tabindex="0" role="checkbox" att-accessibility-click="13,32" ng-click="updateModel($event)" class="att-checkbox"></div>')(scope));
- element.parent().append('<div class="att-checkbox__indicator"></div>');
- element.parent().attr("title", attribute.title);
- element.parent().attr("aria-label", attribute.title);
- scope.$watch('checkboxState', function(val) {
- if (val === 'all') {
- element.parent().addClass('att-checkbox--on');
- element.parent().removeClass('att-checkbox--indeterminate');
- element.parent().attr("aria-checked", true);
- }
- else if (val === 'none') {
- element.parent().removeClass('att-checkbox--on');
- element.parent().removeClass('att-checkbox--indeterminate');
- element.parent().attr("aria-checked", false);
- }
- else if (val === 'indeterminate') {
- element.parent().removeClass('att-checkbox--on');
- element.parent().addClass('att-checkbox--indeterminate');
- element.parent().attr("aria-checked", true);
- }
- });
- scope.updateModel = function(evt){
- if (element.parent().hasClass('att-checkbox--on')) {
- element.parent().removeClass('att-checkbox--on');
- for (var keys in scope.checkboxGroup) {
- if (scope.checkboxGroup.hasOwnProperty(keys)) {
- scope.checkboxGroup[keys] = false;
- }
- };
- }
- else {
- element.parent().addClass('att-checkbox--on');
- for (var key in scope.checkboxGroup) {
- if (scope.checkboxGroup.hasOwnProperty(key)) {
- scope.checkboxGroup[key] = true;
- }
- };
- }
- evt.preventDefault();
- };
- scope.$watch('checkboxGroupValue', function (value) {
- if (value===false) {
- element.parent().removeClass('att-checkbox--on');
- for (var keys in scope.checkboxGroup) {
- if (scope.checkboxGroup.hasOwnProperty(keys)) {
- scope.checkboxGroup[keys] = false;
- }
- };
- }
- else if (value === true){
- element.parent().addClass('att-checkbox--on');
- for (var key in scope.checkboxGroup) {
- if (scope.checkboxGroup.hasOwnProperty(key)) {
- scope.checkboxGroup[key] = true;
- }
- };
- }
- });
- scope.$watch('checkboxGroup', function(){
- var countTrue = 0;
- var countFalse = 0;
- var count = 0;
- for (var keys in scope.checkboxGroup) {
- if (scope.checkboxGroup.hasOwnProperty(keys)) {
- count = count + 1;
- if (scope.checkboxGroup[keys]) {
- countTrue = countTrue + 1;
- }
- else if (!scope.checkboxGroup[keys]) {
- countFalse = countFalse + 1;
- }
- }
- };
- if (count === countTrue) {
- scope.checkboxState = "all";
- scope.checkboxGroupValue=true;
- }
- else if (count === countFalse) {
- scope.checkboxState = "none";
- scope.checkboxGroupValue=false;
- }
- else {
- scope.checkboxState = "indeterminate";
- scope.checkboxGroupValue="indeterminate";
- }
- }, true);
- }
- };
-}]);
-
-angular.module('att.abs.colorselector', [])
- .directive('colorSelectorWrapper', [function() {
- return {
- scope: {
- selected: '=',
- iconColor: '@'
-
- },
- restrict: 'AE',
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/colorselector/colorselector.html',
- link: function(scope) {
- scope.applycolor = {'background-color': scope.iconColor};
- scope.selectedcolor = function(iconColor) {
- scope.selected = iconColor;
- };
- }
- };
- }])
- .directive('colorSelector', ['$compile', function($compile) {
- return{
- restrict: 'A',
- scope: {
- colorSelector: '@',
- ngModel: '='
- },
- link: function(scope, element, attr) {
- element.removeAttr('color-selector');
- var colorTitle = attr.title;
- var wrapcont = angular.element('<color-selector-wrapper selected="ngModel" title="' + colorTitle + '" icon-color="{{colorSelector}}">' + element.prop('outerHTML') + '</color-selector-wrapper>');
- var newWrapcont = $compile(wrapcont)(scope);
- element.replaceWith(newWrapcont);
- }
- };
- }]);
-angular.module('att.abs.datepicker', ['att.abs.position', 'att.abs.utilities'])
-
-.constant('datepickerConfig', {
- dateFormat: 'MM/dd/yyyy',
- dayFormat: 'd',
- monthFormat: 'MMMM',
- yearFormat: 'yyyy',
- dayHeaderFormat: 'EEEE',
- dayTitleFormat: 'MMMM yyyy',
- disableWeekend: false,
- disableSunday: false,
- startingDay: 0,
- minDate: null,
- maxDate: null,
- mode: 0,
- dateFilter: {
- defaultText: 'Select from list'
- },
- datepickerEvalAttributes: ['dateFormat', 'dayFormat', 'monthFormat', 'yearFormat', 'dayHeaderFormat', 'dayTitleFormat', 'disableWeekend', 'disableSunday', 'startingDay', 'mode'],
- datepickerWatchAttributes: ['min', 'max']
-})
-
-.factory('datepickerService', ['datepickerConfig', 'dateFilter', function (datepickerConfig, dateFilter) {
- var setAttributes = function (attr, elem) {
- if (angular.isDefined(attr) && attr !== null && angular.isDefined(elem) && elem !== null) {
- var attributes = datepickerConfig.datepickerEvalAttributes.concat(datepickerConfig.datepickerWatchAttributes);
- for (var key in attr) {
- var val = attr[key];
- if (attributes.indexOf(key) !== -1 && angular.isDefined(val)) {
- elem.attr(key.toSnakeCase(), key);
- }
- }
- }
- };
-
- var bindScope = function (attr, scope) {
- if (angular.isDefined(attr) && attr !== null && angular.isDefined(scope) && scope !== null) {
- var evalFunction = function (key, val) {
- scope[key] = scope.$parent.$eval(val);
- };
-
- var watchFunction = function (key, val) {
- scope.$parent.$watch(val, function (value) {
- scope[key] = value;
- });
- scope.$watch(key, function (value) {
- scope.$parent[val] = value;
- });
- };
-
- var evalAttributes = datepickerConfig.datepickerEvalAttributes;
- var watchAttributes = datepickerConfig.datepickerWatchAttributes;
- for (var key in attr) {
- var val = attr[key];
- if (evalAttributes.indexOf(key) !== -1 && angular.isDefined(val)) {
- evalFunction(key, val);
- } else if (watchAttributes.indexOf(key) !== -1 && angular.isDefined(val)) {
- watchFunction(key, val);
- }
- }
- }
- };
-
- var validateDateString = function (dateString, dateFormat) {
- if (dateString && dateFormat) {
- var delimiter;
- if (dateFormat.indexOf('/') !== -1) {
- delimiter = '/';
- } else if (dateFormat.indexOf('-') !== -1) {
- delimiter = '-';
- } else if (dateFormat.indexOf('.') !== -1) {
- delimiter = '.';
- }
-
- var dateStringArray = dateString.split(delimiter);
- var dateFormatArray = dateFormat.split(delimiter);
- if (dateStringArray.length !== dateFormatArray.length) {
- return false;
- }
-
- for (var i = 0; i < dateStringArray.length; i++) {
- dateStringArray[i] = dateStringArray[i].lPad(dateFormatArray[i].length, '0');
- }
- var intermediateDateString = dateStringArray.join(delimiter);
-
- var actualDateString = dateFilter(new Date(intermediateDateString), dateFormat);
- return intermediateDateString === actualDateString;
- }
- };
-
- return {
- setAttributes: setAttributes,
- bindScope: bindScope,
- validateDateString: validateDateString
- };
-}])
-
-.controller('DatepickerController', ['$scope', '$attrs', 'dateFilter', 'datepickerConfig', function($scope, $attrs, dateFilter, dtConfig) {
- var format = {
- date: getValue($attrs.dateFormat, dtConfig.dateFormat),
- day: getValue($attrs.dayFormat, dtConfig.dayFormat),
- month: getValue($attrs.monthFormat, dtConfig.monthFormat),
- year: getValue($attrs.yearFormat, dtConfig.yearFormat),
- dayHeader: getValue($attrs.dayHeaderFormat, dtConfig.dayHeaderFormat),
- dayTitle: getValue($attrs.dayTitleFormat, dtConfig.dayTitleFormat),
- disableWeekend: getValue($attrs.disableWeekend, dtConfig.disableWeekend),
- disableSunday: getValue($attrs.disableSunday, dtConfig.disableSunday)
- },
- startingDay = getValue($attrs.startingDay, dtConfig.startingDay);
- $scope.mode = getValue($attrs.mode, dtConfig.mode);
-
- $scope.minDate = dtConfig.minDate ? $scope.resetTime(dtConfig.minDate) : null;
- $scope.maxDate = dtConfig.maxDate ? $scope.resetTime(dtConfig.maxDate) : null;
-
- function getValue(value, defaultValue) {
- return angular.isDefined(value) ? $scope.$parent.$eval(value) : defaultValue;
- }
-
- function getDaysInMonth(year, month) {
- return new Date(year, month, 0).getDate();
- }
-
- function getDates(startDate, n) {
- var dates = [];
- var current = startDate, i = 0;
- while (i < n) {
- dates[i++] = new Date(current);
- current.setDate(current.getDate() + 1);
- }
- return dates;
- }
-
- var compare = this.compare = function(date1, date2) {
- return (new Date(date1.getFullYear(), date1.getMonth(), date1.getDate()) - new Date(date2.getFullYear(), date2.getMonth(), date2.getDate()));
- };
-
- function isSelected(dt) {
- if (dt && angular.isDate($scope.currentDate) && compare(dt, $scope.currentDate) === 0) {
- return true;
- }
- return false;
- }
-
- function isFromDate(dt) {
- if (dt && angular.isDate($scope.fromDate) && compare(dt, $scope.fromDate) === 0) {
- return true;
- }
- return false;
- }
-
- function isToDate(dt) {
- if (dt && angular.isDate($scope.fromDate) && angular.isDate($scope.currentDate) && compare(dt, $scope.currentDate) === 0) {
- return true;
- }
- return false;
- }
-
- function isDateRange(dt) {
- if (dt && angular.isDate($scope.fromDate) && angular.isDate($scope.currentDate) && (compare(dt, $scope.fromDate) >= 0) && (compare(dt, $scope.currentDate) <= 0)) {
- return true;
- }
- return false;
- }
-
- function isWeekend(date) {
- if (dateFilter(date, format.dayHeader) === "Saturday" || dateFilter(date, format.dayHeader) === "Sunday") {
- return true;
- }
- return false;
- }
-
- function isToday(date) {
- if (compare(date, $scope.resetTime(new Date())) === 0) {
- return true;
- }
- return false;
- }
- function isFocused(date) {
- if (date && angular.isDate($scope.focusedDate) && compare(date, $scope.focusedDate) === 0) {
- return true;
- }
- return false;
- }
-
- var isDisabled = this.isDisabled = function(date) {
- if (format.disableWeekend === true && (dateFilter(date, format.dayHeader) === "Saturday" || dateFilter(date, format.dayHeader) === "Sunday")) {
- return true;
- }
- if (format.disableSunday === true && (dateFilter(date, format.dayHeader) === "Sunday")) {
- return true;
- }
- return (($scope.minDate && compare(date, $scope.minDate) < 0) || ($scope.maxDate && compare(date, $scope.maxDate) > 0));
- };
-
-
- function isMinDateAvailable(startDate, endDate) {
- return ($scope.minDate && $scope.minDate.getTime() >= startDate.getTime()) && ($scope.minDate.getTime() <= endDate.getTime());
- }
-
- function isMaxDateAvailable(startDate, endDate) {
- return ($scope.maxDate && $scope.maxDate.getTime() >= startDate.getTime()) && ($scope.maxDate.getTime() <= endDate.getTime());
- }
-
- function getLabel(label) {
- if (label)
- {
- var labelObj = {
- pre: label.substr(0, 3),
- post: label
- };
- return labelObj;
- }
- return;
- }
- function makeDate(dateobj) {
- return {date: dateobj.date, label: dateFilter(dateobj.date, dateobj.formatDay), header: dateFilter(dateobj.date, dateobj.formatHeader), focused: !!dateobj.isFocused, selected: !!dateobj.isSelected, from: !!dateobj.isFromDate, to: !!dateobj.isToDate, dateRange: !!dateobj.isDateRange, oldMonth: !!dateobj.oldMonth, nextMonth: !!dateobj.newMonth, disabled: !!dateobj.isDisabled, today: !!dateobj.isToday, weekend: !!dateobj.isWeakend};
- }
-
- this.modes = [
- {
- name: 'day',
- getVisibleDates: function(date, calendar) {
- var year = date.getFullYear(), month = date.getMonth(), firstDayOfMonth = new Date(year, month, 1), lastDayOfMonth = new Date(year, month+1, 0);
- var difference = startingDay - firstDayOfMonth.getDay(),
- numDisplayedFromPreviousMonth = (difference > 0) ? 7 - difference : -difference,
- firstDate = new Date(firstDayOfMonth), numDates = 0;
-
- if (numDisplayedFromPreviousMonth > 0) {
- firstDate.setDate(-numDisplayedFromPreviousMonth + 1);
- numDates += numDisplayedFromPreviousMonth; // Previous
- }
- numDates += getDaysInMonth(year, month + 1); // Current
- numDates += (7 - numDates % 7) % 7; // Next
-
- var days = getDates(firstDate, numDates), labels = [];
- for (var i = 0; i < numDates; i++) {
- var dt = new Date(days[i]);
- days[i] = makeDate({date:dt,
- formatDay:format.day,
- formatHeader:format.dayHeader,
- isFocused:isFocused(dt),
- isSelected:isSelected(dt),
- isFromDate:isFromDate(dt),
- isToDate:isToDate(dt),
- isDateRange:isDateRange(dt),
- oldMonth:(new Date(dt.getFullYear(), dt.getMonth(), 1, 0, 0, 0).getTime() < new Date(year, month, 1, 0, 0, 0).getTime()),
- newMonth:(new Date(dt.getFullYear(), dt.getMonth(), 1, 0, 0, 0).getTime() > new Date(year, month, 1, 0, 0, 0).getTime()),
- isDisabled:isDisabled(dt),
- isToday:isToday(dt),
- isWeakend:isWeekend(dt)});
- }
- for (var j = 0; j < 7; j++) {
- labels[j] = getLabel(dateFilter(days[j].date, format.dayHeader));
- }
- if (calendar === 'top') {
- $scope.disablePrevTop = isMinDateAvailable(firstDayOfMonth, lastDayOfMonth);
- $scope.disableNextTop = isMaxDateAvailable(firstDayOfMonth, lastDayOfMonth);
- } else if (calendar === 'bottom') {
- $scope.disablePrevBottom = isMinDateAvailable(firstDayOfMonth, lastDayOfMonth);
- $scope.disableNextBottom = isMaxDateAvailable(firstDayOfMonth, lastDayOfMonth);
- } else {
- $scope.disablePrevTop = $scope.disablePrevBottom = isMinDateAvailable(firstDayOfMonth, lastDayOfMonth);
- $scope.disableNextTop = $scope.disableNextBottom = isMaxDateAvailable(firstDayOfMonth, lastDayOfMonth);
- }
- $scope.disablePrev = $scope.disablePrevTop || $scope.disablePrevBottom;
- $scope.disableNext = $scope.disableNextTop || $scope.disableNextBottom;
- return {objects: days, title: dateFilter(date, format.dayTitle), labels: labels};
- },
- split: 7,
- step: {months: 1}
- },
- {
- name: 'month',
- getVisibleDates: function(date) {
- var months = [], labels = [], year = date.getFullYear();
- for (var i = 0; i < 12; i++) {
- var dt = new Date(year,i,1);
- months[i] = makeDate({date:dt,
- formatDay:format.month,
- formatHeader:format.month,
- isFocused:isFocused(dt),
- isSelected:isSelected(dt),
- isFromDate:isFromDate(dt),
- isToDate:isToDate(dt),
- isDateRange:isDateRange(dt),
- oldMonth:false,
- newMonth:false,
- isDisabled:isDisabled(dt),
- isToday:isToday(dt),
- isWeakend:false});
- }
- return {objects: months, title: dateFilter(date, format.year), labels: labels};
- },
- split:3,
- step: {years: 1}
- }
- ];
-
-}])
-
-.directive('datepicker', ['$timeout', function ($timeout) {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/datepicker/datepicker.html',
- scope: {
- currentDate: "=?current",
- fromDate: "=?from"
- },
- require: 'datepicker',
- controller: 'DatepickerController',
- link: function(scope, element, attrs, ctrl) {
- var datepickerCtrl = ctrl;
- var selected, calendarSelected = false;
- scope.focusedDate;
-
- scope.resetTime = function(date) {
- var dt;
- if (!isNaN(new Date(date))) {
- dt = new Date(date);
- if(scope.mode === 1){
- dt = new Date(dt.getFullYear(), dt.getMonth());
- }else{
- dt = new Date(dt.getFullYear(), dt.getMonth(), dt.getDate());
- }
- } else {
- return null;
- }
- return dt;
- };
-
- if (attrs.min) {
- scope.$parent.$watch(attrs.min, function(value) {
- scope.minDate = value ? scope.resetTime(value) : null;
- refill();
- });
- }
- if (attrs.max) {
- scope.$parent.$watch(attrs.max, function(value) {
- scope.maxDate = value ? scope.resetTime(value) : null;
- refill();
- });
- }
-
- // Split array into smaller arrays
- function split(arr, size) {
- var arrays = [];
- while (arr.length > 0) {
- arrays.push(arr.splice(0, size));
- }
- return arrays;
- }
- var moveMonth = function(selectedDate, direction) {
- var step = datepickerCtrl.modes[scope.mode].step;
- selectedDate.setDate(1);
- selectedDate.setMonth(selectedDate.getMonth() + direction * (step.months || 0));
- selectedDate.setFullYear(selectedDate.getFullYear() + direction * (step.years || 0));
-
- return selectedDate;
- };
-
- function refill(date) {
- if (angular.isDate(date) && !isNaN(date)) {
- selected = new Date(date);
- } else {
- if (!selected) {
- selected = new Date();
- }
- }
-
- if (selected) {
- var selectedCalendar;
- if(scope.mode === 1){
- selected = new Date();
- selectedCalendar = moveMonth(angular.copy(selected), -1);
- } else {
- selectedCalendar = angular.copy(selected);
- }
-
- var currentMode = datepickerCtrl.modes[scope.mode];
- var currentData = currentMode.getVisibleDates(selectedCalendar, 'top');
- scope.currentRows = split(currentData.objects, currentMode.split);
- scope.currentTitle = currentData.title;
- scope.labels = currentData.labels || [];
-
- var nextData = currentMode.getVisibleDates(moveMonth(angular.copy(selectedCalendar), 1), 'bottom');
- scope.nextRows = split(nextData.objects, currentMode.split);
- scope.nextTitle = nextData.title;
- }
- }
-
- var selectCurrentDate = function(date) {
- var dt = new Date(date.getFullYear(), date.getMonth(), date.getDate());
- scope.currentDate = dt;
- };
-
- var selectFromDate = function(date) {
- var dt = new Date(date.getFullYear(), date.getMonth(), date.getDate());
- scope.fromDate = dt;
- };
-
- scope.select = function(date) {
- calendarSelected = true;
- if(attrs.from) {
- if(!(angular.isDate(scope.fromDate) && angular.isDate(scope.currentDate))) {
- if(angular.isDate(scope.fromDate)) {
- selectCurrentDate(date);
- } else if(!angular.isDate(scope.fromDate)) {
- selectFromDate(date);
- }
- }
- } else {
- selectCurrentDate(date);
- }
- scope.focusedDate = date;
- };
-
- var swapDate = function(fromDate, currentDate) {
- selectFromDate(currentDate);
- $timeout(function () {
- calendarSelected = true;
- scope.focusedDate = currentDate;
- selectCurrentDate(fromDate);
- });
- };
-
- scope.move = function(direction) {
- selected = moveMonth(angular.copy(selected), direction);
- refill();
- };
-
- scope.$watch('currentDate', function (value) {
- if(angular.isDate(value) && !isNaN(value) && datepickerCtrl.isDisabled(value)) {
- scope.currentDate = null;
- return;
- }
-
- if (attrs.from && !isNaN(value) && !isNaN(scope.fromDate) && datepickerCtrl.compare(value, scope.fromDate) < 0) {
- swapDate(scope.fromDate, value);
- return;
- }
-
- if (calendarSelected) {
- refill();
- calendarSelected = false;
- } else {
- if (angular.isDefined(value) && value !== null) {
- refill(value);
- } else {
- refill();
- }
- }
- scope.focusedDate = undefined;
- });
-
- scope.$watch('fromDate', function (value) {
- if(angular.isDate(value) && !isNaN(value) && datepickerCtrl.isDisabled(value)) {
- scope.fromDate = null;
- return;
- }
- if (attrs.from) {
- if (!isNaN(scope.currentDate) && !isNaN(value) && datepickerCtrl.compare(scope.currentDate, value) < 0) {
- swapDate(value, scope.currentDate);
- return;
- }
- if (calendarSelected) {
- refill();
- calendarSelected = false;
- } else {
- if (angular.isDefined(value) && value !== null) {
- refill(value);
- } else {
- refill();
- }
- }
- }
- scope.focusedDate = undefined;
- });
- }
- };
-}])
-.directive('datepickerPopup', ['$document', 'datepickerService', '$isElement', '$documentBind', function($document, datepickerService, $isElement, $documentBind) {
- var link = function (scope, elem, attr) {
- datepickerService.bindScope(attr, scope);
-
- scope.isOpen = false;
-
- var toggle = scope.toggle = function (show) {
- if(show === true || show === false) {
- scope.isOpen = show;
- } else {
- scope.isOpen = !scope.isOpen;
- }
- };
-
- scope.$watch('current', function () {
- toggle(false);
- });
-
- var outsideClick = function (e) {
- var isElement = $isElement(angular.element(e.target), elem, $document);
- if(!isElement) {
- toggle(false);
- scope.$apply();
- }
- };
-
- $documentBind.click('isOpen', outsideClick, scope);
- };
-
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html',
- scope: {
- current: "=current"
- },
- compile: function (elem, attr) {
- var wrapperElement = elem.find('span').eq(1);
- wrapperElement.attr('current', 'current');
- datepickerService.setAttributes(attr, wrapperElement);
-
- return link;
- }
- };
-}])
-
-.directive('attDatepicker', ['$log', function($log) {
- return {
- restrict: 'A',
- require: 'ngModel',
- scope: {},
- controller: ['$scope', '$element', '$attrs', '$compile', 'datepickerConfig', 'datepickerService', function($scope, $element, $attrs, $compile, datepickerConfig, datepickerService) {
- var dateFormatString = angular.isDefined($attrs.dateFormat) ? $scope.$parent.$eval($attrs.dateFormat) : datepickerConfig.dateFormat;
- var selectedDateMessage = '<div class="sr-focus hidden-spoken" tabindex="-1">the date you selected is {{$parent.current | date : \'' + dateFormatString + '\'}}</div>';
-
- $element.removeAttr('att-datepicker');
- $element.removeAttr('ng-model');
- $element.attr('ng-model', '$parent.current');
- $element.attr('aria-describedby', 'datepicker');
- $element.attr('format-date', dateFormatString);
- $element.attr('att-input-deny', '[^0-9\/-]');
- $element.attr('maxlength', 10);
-
- var wrapperElement = angular.element('<div></div>');
- wrapperElement.attr('datepicker-popup', '');
- wrapperElement.attr('current', 'current');
-
- datepickerService.setAttributes($attrs, wrapperElement);
- datepickerService.bindScope($attrs, $scope);
-
- wrapperElement.html('');
- wrapperElement.append($element.prop('outerHTML'));
- if (navigator.userAgent.match(/MSIE 8/) === null) {
- wrapperElement.append(selectedDateMessage);
- }
- var elm = wrapperElement.prop('outerHTML');
- elm = $compile(elm)($scope);
- $element.replaceWith(elm);
- }],
- link: function(scope, elem, attr, ctrl) {
- if (!ctrl) {
- // do nothing if no ng-model
- $log.error("ng-model is required.");
- return;
- }
-
- scope.$watch('current', function(value) {
- ctrl.$setViewValue(value);
- });
- ctrl.$render = function() {
- scope.current = ctrl.$viewValue;
- };
- }
- };
-}])
-
-.directive('formatDate', ['dateFilter', 'datepickerService', function(dateFilter, datepickerService) {
- return {
- restrict: 'A',
- require: 'ngModel',
- link: function(scope, elem, attr, ctrl) {
- var formatDate = "";
- attr.$observe('formatDate', function (value) {
- formatDate = value;
- });
- var dateToString = function(value) {
- if (value) {
- ctrl.$setValidity('invalidDate', true);
- return dateFilter(value, formatDate);
- } else {
- ctrl.$setValidity('invalidDate', false);
- return elem.val();
- }
- };
- var stringToDate = function(value) {
- if(datepickerService.validateDateString(value, formatDate)) {
- ctrl.$setValidity('invalidDate', true);
- return new Date(value);
- } else {
- ctrl.$setValidity('invalidDate', false);
- return null;
- }
- };
- ctrl.$formatters.unshift(dateToString);
- ctrl.$parsers.unshift(stringToDate);
- }
- };
-}])
-
-.directive('attDateFilter', ['$document', 'dateFilter', 'datepickerConfig', 'datepickerService', '$isElement', '$documentBind', function($document, dateFilter, datepickerConfig, datepickerService, $isElement, $documentBind) {
-
- var link = function (scope, elem, attr, ctrl) {
- datepickerService.bindScope(attr, scope);
-
- scope.selectedOption = datepickerConfig.dateFilter.defaultText;
- scope.showDropdownList = false;
- scope.showCalendar = false;
- scope.applyButtonType = "disabled";
-
- scope.currentSelection = "";
- var dateFormatString = angular.isDefined(attr.dateFormat) ? scope.$parent.$eval(attr.dateFormat) : datepickerConfig.dateFormat;
- var inputChange = false;
-
- var setDropdownText = function(value) {
- if(inputChange) {
- return;
- }
-
- var fromDateText = dateFormatString.toUpperCase();
- var currentDateText = dateFormatString.toUpperCase();
-
- if(!isNaN(new Date(scope.fromDate))) {
- fromDateText = dateFilter(scope.fromDate, dateFormatString);
- }
- if(!isNaN(new Date(scope.currentDate))) {
- currentDateText = dateFilter(scope.currentDate, dateFormatString);
- }
-
- if(value === 'Custom Single Date') {
- ctrl.$setValidity('invalidDate', true);
- scope.maxLength = 10;
- scope.selectedOption = currentDateText;
- } else if(value === 'Custom Range') {
- ctrl.$setValidity('invalidDate', true);
- ctrl.$setValidity('invalidDateRange', true);
- scope.maxLength = 21;
- scope.selectedOption = fromDateText + '-' + currentDateText;
- }
- };
-
- var clear = scope.clear = function(partial) {
- scope.fromDate = undefined;
- scope.currentDate = undefined;
- scope.applyButtonType = "disabled";
- if(!partial) {
- ctrl.$setValidity('invalidDate', true);
- ctrl.$setValidity('invalidDateRange', true);
- setDropdownText(scope.currentSelection);
- }
- };
-
- var showCalendar = function() {
- scope.showCalendar = true;
- };
-
- var hideCalendar = function() {
- scope.showCalendar = false;
- if(scope.currentSelection !== 'Custom Single Date' && scope.currentSelection !== 'Custom Range') {
- clear(true);
- }
- };
-
- var showDropdown = scope.showDropdown = function (show) {
- if(show === true || show === false) {
- scope.showDropdownList = show;
- } else {
- scope.showDropdownList = !scope.showDropdownList;
- }
-
- if (!scope.showDropdownList) {
- scope.focusInputButton = true;
- hideCalendar();
- } else {
- if (scope.currentSelection === 'Custom Single Date' || scope.currentSelection === 'Custom Range') {
- showCalendar();
- }
- }
- };
-
- scope.resetTime = function(date) {
- var dt;
- if (!isNaN(new Date(date))) {
- dt = new Date(date);
- } else {
- return null;
- }
- return new Date(dt.getFullYear(), dt.getMonth(), dt.getDate());
- };
-
- scope.getDropdownText = function () {
- inputChange = true;
- var dropdownText = scope.selectedOption;
-
- if (scope.currentSelection === 'Custom Single Date') {
- if (!isNaN(new Date(dropdownText)) && datepickerService.validateDateString(dropdownText, dateFormatString)) {
- ctrl.$setValidity('invalidDate', true);
- scope.fromDate = undefined;
- scope.currentDate = new Date(dropdownText);
- } else {
- ctrl.$setValidity('invalidDate', false);
- clear(true);
- }
- } else if (scope.currentSelection === 'Custom Range') {
- if (dropdownText.indexOf('-') !== -1 && (dropdownText.split('-').length === 2 || dropdownText.split('-').length === 6)) {
- ctrl.$setValidity('invalidDateRange', true);
- var resultDropdownText = dropdownText.split('-');
- if (resultDropdownText.length === 2) {
- resultDropdownText[0] = resultDropdownText[0].trim();
- resultDropdownText[1] = resultDropdownText[1].trim();
- } else if (resultDropdownText.length === 6) {
- var firstDateString = resultDropdownText[0].trim() + '-' + resultDropdownText[1].trim() + '-' + resultDropdownText[2].trim();
- var secondDateString = resultDropdownText[3].trim() + '-' + resultDropdownText[4].trim() + '-' + resultDropdownText[5].trim();
- resultDropdownText[0] = firstDateString;
- resultDropdownText[1] = secondDateString;
- }
-
- if (!isNaN(new Date(resultDropdownText[0])) && !isNaN(new Date(resultDropdownText[1])) && datepickerService.validateDateString(resultDropdownText[0], dateFormatString) && datepickerService.validateDateString(resultDropdownText[1], dateFormatString)) {
- ctrl.$setValidity('invalidDate', true);
- var fromDate = new Date(resultDropdownText[0]);
- var currentDate = new Date(resultDropdownText[1]);
- if(fromDate.getTime() < currentDate.getTime()) {
- ctrl.$setValidity('invalidDateRange', true);
- scope.fromDate = fromDate;
- scope.currentDate = currentDate;
- } else {
- ctrl.$setValidity('invalidDateRange', false);
- clear(true);
- }
- } else {
- ctrl.$setValidity('invalidDate', false);
- clear(true);
- }
- } else {
- ctrl.$setValidity('invalidDateRange', false);
- clear(true);
- }
- }
- };
-
- scope.untrackInputChange = function() {
- inputChange = false;
- };
-
- scope.selectAdvancedOption = function (value, notClearFlag) {
- scope.currentSelection = value;
- if(!notClearFlag){
- clear();
- showCalendar();
- }
- scope.$watch('currentDate', function(val) {
- if(!isNaN(new Date(val))) {
- scope.applyButtonType = "primary";
- setDropdownText(value);
- if (!inputChange) {
- scope.focusApplyButton = true;
- }
- }
- });
- scope.$watch('fromDate', function(val) {
- if(!isNaN(new Date(val))) {
- setDropdownText(value);
- }
- });
- if (value === 'Custom Single Date') {
- scope.focusSingleDateCalendar = true;
- } else if (value === 'Custom Range') {
- scope.focusRangeCalendar = true;
- }
- };
-
- scope.resetFocus = function () {
- scope.focusSingleDateCalendar = false;
- scope.focusRangeCalendar = false;
- scope.focusApplyButton = false;
- };
-
- scope.apply = function() {
- scope.dateRange.selection = scope.selectedOption;
- if(!isNaN(new Date(scope.fromDate))) {
- scope.from = scope.fromDate;
- scope.dateRange.from = scope.fromDate;
- } else {
- scope.from = undefined;
- scope.dateRange.from = undefined;
- }
- if(!isNaN(new Date(scope.currentDate))) {
- scope.current = scope.currentDate;
- scope.dateRange.current = scope.currentDate;
- } else {
- scope.current = undefined;
- scope.dateRange.current = undefined;
- }
-
- showDropdown();
- };
-
- scope.$watchCollection(function() {
- return scope.dateRange;
- }, function(value) {
- if(ctrl) {
- var finalDateRange = angular.copy(value);
- ctrl.$setViewValue(finalDateRange);
- }
- });
-
- ctrl.$render = function () {
- if (ctrl.$viewValue) {
- var inputRange = ctrl.$viewValue;
- scope.selectedOption = inputRange.selection;
- scope.fromDate = inputRange.from;
- scope.currentDate = inputRange.current;
- if (scope.fromDate !== undefined && scope.currentDate !== undefined) {
- scope.selectAdvancedOption('Custom Range', true);
- scope.dateRange.from = scope.fromDate;
- scope.dateRange.current = scope.currentDate;
- } else if (scope.currentDate !== undefined) {
- scope.selectAdvancedOption('Custom Single Date', true);
- scope.dateRange.from = undefined;
- scope.dateRange.current = scope.currentDate;
- }
- }
- };
-
- scope.cancel = function() {
- scope.currentSelection = "";
- scope.selectedOption = datepickerConfig.dateFilter.defaultText;
- showDropdown();
- };
-
- var outsideClick = function (e) {
- var isElement = $isElement(angular.element(e.target), elem, $document);
- if(!isElement) {
- scope.cancel();
- scope.$apply();
- }
- };
- $documentBind.click('showDropdownList', outsideClick, scope);
- };
-
- return {
- restrict: 'EA',
- scope: {
- from: '=?from',
- current: "=?current"
- },
- replace: true,
- require: '?ngModel',
- transclude:true,
- templateUrl: 'app/scripts/ng_js_att_tpls/datepicker/dateFilter.html',
- controller:['$scope', '$element', '$attrs',function($scope){
- $scope.dateRange = {
- selection: undefined,
- from: undefined,
- current: undefined
- };
- this.selectOption = function (fromDate,toDate,caption) {
- $scope.selectedOption = caption;
- $scope.currentSelection =caption;
- $scope.dateRange.selection = caption;
- $scope.dateRange.current = $scope.resetTime(toDate);
- $scope.dateRange.from = $scope.resetTime(fromDate);
- $scope.showDropdown();
- };
- $scope.checkCurrentSelection=this.checkCurrentSelection = function(value) {
- if(value === $scope.currentSelection) {
- return true;
- }
- return false;
- };
- }],
- compile: function(elem, attr) {
- var singleDateCalendar = elem.find('span').eq(4);
- var rangeCalendar = elem.find('span').eq(5);
- rangeCalendar.attr('from', 'fromDate');
- singleDateCalendar.attr('current', 'currentDate');
- rangeCalendar.attr('current', 'currentDate');
- datepickerService.setAttributes(attr, singleDateCalendar);
- datepickerService.setAttributes(attr, rangeCalendar);
-
- return link;
- }
- };
-}])
-.directive('attDateFilterList',function(){
- return{
- restrict:'EA',
- scope:{
- fromDate:'=fromDate',
- toDate:'=toDate',
- caption:'=caption',
- disabled:'=disabled'
- },
- require:'^attDateFilter',
- transclude:true,
- replace:true,
- templateUrl:'app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html',
- link:function(scope,elem,attr,ctrl){
- scope.selectOption=function(fromDate,toDate,caption){
- ctrl.selectOption(fromDate,toDate,caption);
- };
- scope.checkCurrentSelection=ctrl.checkCurrentSelection;
- }
- };
-});
-angular.module('att.abs.devNotes', [])
-
- .directive('attDevNotes', function() {
- return {
- restrict: 'EA',
- transclude: true,
- scope: {},
- controller: function($scope){
- var panes = $scope.panes = [];
- $scope.select = function(pane)
- {
- angular.forEach(panes, function(pane)
- {
- pane.selected = false;
- });
- pane.selected = true;
- };
- this.addPane = function(pane) {
- if (panes.length === 0) {
- $scope.select(pane);
- }
- panes.push(pane);
- };
- },
- template:'<div>'+
- '<ul class="tabs">' +
- '<li ng-repeat="pane in panes" ng-class="{active:pane.selected}">'+
- '<a href="javascript:void(0)" ng-click="select(pane)">{{pane.title}}</a>' +
- '</li>' +
- '</ul>' +
- '<div ng-transclude></div>'+
- '</div>',
- replace: true
- };
- })
-
- .directive('pane', function() {
- return {
- require: '^attDevNotes',
- restrict: 'EA',
- transclude: true,
- scope: {
- title: '@'
- },
- link: function(scope, element, attrs, tabsCtrl) {
- tabsCtrl.addPane(scope);
- },
- template:
- '<div class="tab-pane" ng-class="{active: selected}">' +
- '<pre ng-class="{\'language-markup\':title==\'HTML\',\'language-javascript\':title==\'JavaScript\',\'language-json\':title==\'JSON\'}" class=" line-numbers">' +
- '<code ng-transclude></code>' +
- '</pre>' +
- '</div>',
- replace: true
- };
- });
-
-angular.module('att.abs.dividerLines', [])
- .directive('attDividerLines', [function()
- {
- return {
- scope: {
- attDividerLines: '@'
- },
- restrict: 'A',
- replace: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html',
- link: function(scope, element, attribute)
- {
- scope.lightContainer = attribute.attDividerLines;
- }
- };
- }]);
-
-angular.module('att.abs.dragdrop', [])
- .directive('attFileDrop', ['$parse', function($parse) {
- return {
- restrict: 'A',
- scope: {
- fileModel : '=',
- onDrop : '&',
- attFileDrop : '&'
- },
- controller: ['$scope', '$attrs', function($scope, $attrs){
- if($attrs.attFileDrop!==""){
- $scope.onDrop=$scope.attFileDrop;
- }
- this.onDrop = $scope.onDrop;
- }],
- link: function(scope, element) {
- element.addClass('dragdrop');
- element.bind(
- 'dragover',
- function(e) {
- if(e.originalEvent){
- e.dataTransfer = e.originalEvent.dataTransfer;
- }
- e.dataTransfer.dropEffect = 'move';
- // allows us to drop
- if (e.preventDefault) {
- e.preventDefault();
- }
- element.addClass('dragdrop-over');
- return false;
- }
- );
- element.bind(
- 'dragenter',
- function(e) {
- // allows us to drop
- if (e.preventDefault) {
- e.preventDefault();
- }
- element.addClass('dragdrop-over');
- return false;
- }
- );
- element.bind(
- 'dragleave',
- function() {
- element.removeClass('dragdrop-over');
- return false;
- }
- );
- element.bind(
- 'drop',
- function(e) {
- // Stops some browsers from redirecting.
- if(e.preventDefault) {
- e.preventDefault();
- }
- if (e.stopPropagation) {
- e.stopPropagation();
- }
- if(e.originalEvent){
- e.dataTransfer = e.originalEvent.dataTransfer;
- }
- element.removeClass('dragdrop-over');
- if(e.dataTransfer.files && e.dataTransfer.files.length > 0){
- scope.fileModel = e.dataTransfer.files[0];
- scope.$apply();
- if(typeof scope.onDrop === "function"){
- scope.onDrop = $parse(scope.onDrop);
- scope.onDrop();
- }
- }
- return false;
- }
- );
- }
- };
- }])
- .directive('attFileLink', [ function() {
- return {
- restrict: 'EA',
- require: '^?attFileDrop',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html',
- scope: {
- fileModel : '=?',
- onFileSelect : '&',
- attFileLink : '&'
- },
- controller: ['$scope', '$parse', function($scope, $parse){
- this.setFileModel= function(fileModel){
- if($scope.takeFileModelFromParent){
- $scope.$parent.fileModel = fileModel;
- $scope.$parent.$apply();
- }
- else{
- $scope.fileModel = fileModel;
- $scope.$apply();
- }
- };
- this.callbackFunction= function(){
- if(typeof $scope.onFileSelect === "function"){
- $scope.onFileSelect = $parse($scope.onFileSelect);
- $scope.onFileSelect();
- }
- };
-
- }],
- link: function(scope, element, attr, attFileDropCtrl) {
- scope.takeFileModelFromParent = false;
- if(!(attr.fileModel) && attFileDropCtrl){
- scope.takeFileModelFromParent = true;
- }
- if(attr.attFileLink!==""){
- scope.onFileSelect=scope.attFileLink;
- }
- else if(!(attr.onFileSelect) && attFileDropCtrl){
- scope.onFileSelect = attFileDropCtrl.onDrop;
- }
- }
- };
- }])
- .directive('attFileChange', ['$log','$rootScope',function($log,$rootScope) {
- return {
- restrict: 'A',
- require: '^attFileLink',
- link: function(scope, element, attr, attFileLinkCtrl) {
- element.bind('change',changeFileModel);
- function changeFileModel(e) {
- if (e.target.files && e.target.files.length > 0) {
- attFileLinkCtrl.setFileModel(e.target.files[0]);
- attFileLinkCtrl.callbackFunction();
- }
- else {
- var strFileName = e.target.value;
- try {
- var objFSO = new ActiveXObject("Scripting.FileSystemObject");
- attFileLinkCtrl.setFileModel(objFSO.getFile(strFileName));
- attFileLinkCtrl.callbackFunction();
- }
- catch (e) {
- var errMsg = "Error: Please follow the guidelines of Drag and Drop component on Sandbox demo page.";
- $log.error(errMsg);
- $rootScope.$broadcast('att-file-link-failure', errMsg);
- }
- }
- }
- }
- };
- }]);
-angular.module("att.abs.drawer", ['att.abs.utilities'])
-.directive('attDrawer', ['$document', '$timeout', 'DOMHelper', function ($document, $timeout, DOMHelper) {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- scope: {
- drawerOpen: "=?",
- drawerAutoClose: "&?"
- },
- template: '<div><div class="att-drawer" ng-transclude></div><div ng-class="{\'drawer-backdrop\':drawerOpen}"></div></div>',
- link: function ($scope, element, attrs) {
- var param = {};
- // First Element in Drawer component
- var firstElement = undefined;
- // Element drawer is toggled from
- var drawerLaunchingElement = undefined;
- // Override default parameters
- param.side = attrs.drawerSlide || 'top';
- param.speed = attrs.drawerSpeed || '0.25';
- param.size = attrs.drawerSize || '300px';
- param.zindex = attrs.drawerZindex || 1000;
- param.className = attrs.drawerClass || 'att-drawer';
- var slider = element.eq(0).children()[0];
- var content = angular.element(slider).children()[0];
- slider.className = param.className;
- /* Style setup */
- slider.style.transitionDuration = param.speed + 's';
- slider.style.webkitTransitionDuration = param.speed + 's';
- slider.style.zIndex = param.zindex;
- slider.style.position = 'fixed';
- slider.style.width = 0;
- slider.style.height = 0;
- slider.style.transitionProperty = 'width, height';
- if(param.side==='right' || param.side==='left'){
- slider.style.height = attrs.drawerCustomHeight || '100%';
- slider.style.top = attrs.drawerCustomTop || '0px';
- slider.style.bottom = attrs.drawerCustomBottom || '0px';
- slider.style.right = attrs.drawerCustomRight || '0px';
- }
- else if(param.side==='top' || param.side==='bottom'){
- slider.style.width = attrs.drawerCustomWidth || '100%';
- slider.style.left = attrs.drawerCustomLeft || '0px';
- slider.style.top = attrs.drawerCustomTop || '0px';
- slider.style.right = attrs.drawerCustomRight || '0px';
- }
- $timeout(function() {
- firstElement = DOMHelper.firstTabableElement(element[0]);
- }, 10, false);
- /* Closed */
- function drawerClose(slider, param) {
- if (slider && slider.style.width !== 0 && slider.style.height !== 0){
- content.style.display = 'none';
- if(param.side==='right' || param.side==='left'){
- slider.style.width = '0px';
- }
- else if(param.side==='top' || param.side==='bottom'){
- slider.style.height = '0px';
- }
- }
- $scope.drawerOpen = false;
- // Shift focus
- if (angular.isDefined(drawerLaunchingElement) && drawerLaunchingElement != null) {
- drawerLaunchingElement.focus();
- }
- }
- /* Open */
- function drawerOpen(slider, param) {
- // Before opening drawer, find the focused element
- drawerLaunchingElement = document.activeElement;
- if (slider.style.width !== 0 && slider.style.height !== 0){
- if(param.side==='right' || param.side==='left'){
- slider.style.width = param.size;
- }
- else if(param.side==='top' || param.side==='bottom'){
- slider.style.height = param.size;
- }
- $timeout(function() {
- content.style.display = 'block';
- // Shift focus
- if (angular.isDefined(firstElement) && firstElement != null) {
- firstElement.focus();
- }
- },(param.speed * 1000));
- }
- }
- function isFunction(functionToCheck) {
- var getType = {};
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
- }
- /*
- * Watchers
- * */
- if(attrs.drawerSize) {
- $scope.$watch(function() {
- return attrs.drawerSize;
- }, function(newVal) {
- param.size = newVal;
- if($scope.drawerOpen) {
- drawerOpen(slider,param);
- }
- });
- }
- $scope.$watch("drawerOpen", function (value){
- if (!!value) {
- // Open
- drawerOpen(slider,param);
- } else {
- // Close
- drawerClose(slider,param);
- }
- });
- // close panel on location change
- if($scope.drawerAutoClose) {
- $scope.$on("$locationChangeStart", function(){
- drawerClose(slider, param);
- if(isFunction($scope.drawerAutoClose)) {
- $scope.drawerAutoClose();
- }
- });
- $scope.$on("$stateChangeStart", function(){
- drawerClose(slider, param);
- if(isFunction($scope.drawerAutoClose)) {
- $scope.drawerAutoClose();
- }
- });
- }
- }
- };
- }
-]);
-angular.module('att.abs.message', [])
-
-.directive('attMessages', [function() {
- return {
- restrict: 'EA',
- scope: {
- messageType: '=?'
- },
- controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) {
- $scope.messageScope = [];
- this.registerScope = function(messageScope) {
- $scope.messageScope.push(messageScope);
- };
- $scope.$parent.$watchCollection($attrs['for'], function(errors) {
- for (var key in errors) {
- if (errors[key]) {
- $scope.error = key;
- break;
- } else {
- $scope.error = null;
- }
- }
- for (var i = 0; i < $scope.messageScope.length; i++) {
- if($scope.messageScope[i].when === $scope.error) {
- $scope.messageScope[i].show();
- $scope.setMessageType($scope.messageScope[i].type);
- } else {
- $scope.messageScope[i].hide();
- }
- }
- if($scope.error === null) {
- $scope.setMessageType(null);
- }
- });
- $scope.setMessageType = this.setMessageType = function(messageType) {
- if($attrs.messageType) {
- $scope.messageType = messageType;
- }
- };
- }]
- };
-}])
-
-.directive('attMessage', [function() {
- return {
- restrict: 'EA',
- scope: {},
- require: '^attMessages',
- link: function(scope, elem, attr, ctrl) {
- ctrl.registerScope(scope);
- scope.when = attr.when || attr.attMessage;
- scope.type = attr.type;
- scope.show = function() {
- elem.css({display: 'block'});
- };
- scope.hide = function() {
- elem.css({display: 'none'});
- };
- scope.hide();
- }
- };
-}]);
-
-angular.module('att.abs.formField', ['att.abs.message', 'att.abs.utilities'])
-.directive('attFormField', [function() {
- return {
- priority: 101,
- restrict: 'A',
- controller:function() {
- },
- link: function(scope, elem, attr) {
- elem.wrap('<div class="form-field"></div>');
- elem.parent().append('<label class="form-field__label">' + attr.placeholder || attr.attFormField + '</label>');
- elem.wrap('<div class="form-field-input-container"></div>');
-
- elem.bind('keyup', function() {
- if (this.value !== '') {
- elem.parent().parent().find('label').addClass('form-field__label--show').removeClass('form-field__label--hide');
- } else {
- elem.parent().parent().find('label').addClass('form-field__label--hide').removeClass('form-field__label--show');
- }
- });
-
- elem.bind('blur', function() {
- if (this.value === '') {
- elem.parent().parent().find('label').removeClass('form-field__label--hide');
- }
- });
- }
- };
-}])
-.directive('attFormFieldValidation', ['$compile', '$log', function($compile, $log) {
- return {
- priority: 102,
- scope: {},
- restrict: 'A',
- require: ['?ngModel', '?attFormField'],
- link: function(scope, elem, attr, ctrl) {
- var ngCtrl = ctrl[0];
- var attFormFieldCtrl = ctrl[1];
- scope.valid = "";
- if (!ngCtrl) {
- $log.error("att-form-field-validation :: ng-model directive is required.");
- return;
- }
- if (!attFormFieldCtrl) {
- $log.error("att-form-field-validation :: att-form-field directive is required.");
- return;
- }
-
- elem.parent().append($compile(angular.element('<i class="icon-info-alert error" ng-show="valid===false">&nbsp;</i>'))(scope));
- elem.parent().append($compile(angular.element('<i class="icon-info-success success" ng-show="valid===true">&nbsp;</i>'))(scope));
-
- scope.$watch('valid', function(value) {
- if (value) {
- elem.parent().parent().addClass('success');
- } else if (value === false) {
- elem.parent().parent().addClass('error');
- } else {
- elem.parent().parent().removeClass('success').removeClass('error');
- }
- });
-
- elem.bind('keyup', function() {
- if (ngCtrl.$valid) {
- scope.valid = true;
- } else if (ngCtrl.$invalid) {
- scope.valid = false;
- } else {
- scope.valid = "";
- }
- scope.$apply();
- });
- }
- };
-}])
-.directive('attFormFieldValidationAlert', ['$timeout', function($timeout) {
- return {
- scope: {
- messageType: '=?'
- },
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html',
- link: function(scope, elem, attr, ctrl) {
- scope.showLabel = false;
- scope.hideLabel = false;
- scope.errorMessage = false;
- scope.warningMessage = false;
- var checkMessageType = function() {
- var messageType = scope.messageType;
- if (messageType === 'error') {
- scope.errorMessage = true;
- scope.warningMessage = false;
- } else if (messageType === 'warning') {
- scope.errorMessage = false;
- scope.warningMessage = true;
- } else {
- scope.errorMessage = false;
- scope.warningMessage = false;
- }
- };
- var oldIE = navigator.userAgent.toLowerCase().indexOf('msie 8.0') !== -1;
- elem.find('label').text(elem.find('input').attr('placeholder'));
- elem.find('input').bind('keyup', function() {
- if (this.value !== '') {
- scope.showLabel = true;
- scope.hideLabel = false;
- if (oldIE) {
- elem.find('label').css({top: '-20px'});
- }
- } else {
- scope.showLabel = false;
- scope.hideLabel = true;
- if (oldIE) {
- elem.find('label').css({top: '0px'});
- }
- }
- checkMessageType();
- scope.$apply();
- });
-
- elem.find('input').bind('blur', function() {
- if (this.value === '') {
- scope.showLabel = false;
- scope.hideLabel = false;
- }
- scope.$apply();
- });
- $timeout(function() {
- checkMessageType();
- }, 100);
- }
- };
-}])
-.constant("CoreFormsUiConfig", {
- phoneMask: '(___) ___-____'
- })
-.directive('attPhoneMask', ['$parse', 'CoreFormsUiConfig', function($parse, CoreFormsUiConfig) {
- return {
- require: 'ngModel',
- scope: {
- ngModel: '='
- },
- link: function(scope, iElement, iAttrs, ctrl) {
- var B = navigator.userAgent.toLowerCase(), C = B.indexOf("android") > -1,
- oldIE = B.indexOf('msie 8.0') !== -1;;
- var A = '';
- var validPhoneNumber = false;
- if (C) {
- A = "__________";
- }
- else {
- A = CoreFormsUiConfig.phoneMask;
- }
- iElement.attr("maxlength", A.length);
- var checkValidity = function(unmaskedValue) {
- var valid = false;
- if (unmaskedValue){
- valid = (unmaskedValue.length === 10);}
- ctrl.$setValidity('invalidPhoneNumber', validPhoneNumber);
- ctrl.$setValidity('mask', valid);
- return valid;
- };
-
- var handleKeyup = function() {
- var E,D = ctrl.$modelValue;
- if (!D.length) {
- return;
- }
- var L, K, G, J, I;
- J = [];
- G = A.split("");
- I = G.length;
- L = D.substring(0, A.length);
- K = D.replace(/[^0-9]/g, "").split("");
- for (E = 0; E < I; E++) {
- J.push(G[E] === "_" ? K.shift() : G[E]);
- if (K.length === 0) {
- break;
- }
- }
- D = J.join("");
- if (D === '('){
- D = '';}
- ctrl.$setViewValue(D);
- ctrl.$render();
- return D;
- };
-
-
- // since we are only allowing 0-9, why even let the keypress go forward?
- // also added in delete... in case they want to delete :)
- var handlePress = function(e) {
- if (e.which) {
- if ((e.which < 48 || e.which > 57) && (e.which < 96 || e.which > 105)) {
- if (e.which !== 8 && e.which !== 9 && e.which !== 46 && e.which !== 13 && e.which !== 37 && e.which !== 39 &&
- // Allow: Ctrl+V/v
- (e.ctrlKey !== true && (e.which !== '118' || e.which !== '86'))&&
- // Allow: Ctrl+C/c
- (e.ctrlKey !== true && (e.which !== '99' || e.which !== '67'))&&
- // Allow: Ctrl+X/x
- (e.ctrlKey !== true && (e.which !== '120' || e.which !== '88')))
- {
- e.preventDefault ? e.preventDefault() : e.returnValue = false;
- iElement.attr("aria-label","Only numbers are allowed");
- validPhoneNumber = false;
- }}
- else{
- iElement.removeAttr("aria-label");
- validPhoneNumber = true;
- }
- }
- scope.$apply();
- };
- // i moved this out because i thought i might need focus as well..
- // to handle setting the model as the view changes
- var parser = function(fromViewValue) {
- var letters = /^[A-Za-z]+$/;
- var numbers = /^[0-9]+$/;
- if(fromViewValue.match(letters))
- {validPhoneNumber = false;}
- if(fromViewValue.match(numbers))
- {validPhoneNumber = true;}
- var clean = "";
- if (fromViewValue && fromViewValue.length > 0) {
- clean = fromViewValue.replace(/[^0-9]/g, '');
- }
- checkValidity(clean);
- return clean;
- };
-
- //to handle reading the model and formatting it
- var formatter = function(fromModelView) {
- var input = '';
- checkValidity(fromModelView);
- if (fromModelView){
- input = handleKeyup();}
- return input;
- };
- ctrl.$parsers.push(parser);
- ctrl.$formatters.push(formatter);
- iElement.bind('keyup', handleKeyup);
- iElement.bind('keydown', handlePress);
- iElement.bind('input', function(e){
- handleKeyup(e);
- handlePress(e);
- });
- }
- };
-}])
-.constant('validationTypeInt', {
- validationNum: {'number':'1','text':'2','email':'3'}
- })
-.directive('attFormFieldPrv', [ 'keyMapAc', 'validationTypeInt', function( keyMapAc, validationTypeInt ) {
- return {
- priority: 101,
- restrict: 'AE',
- controller:['$scope', function($scope) {
- this.showHideErrorMessage = function ( booleanValue ){
- if( $scope.$$prevSibling != null && angular.isDefined( $scope.$$prevSibling )
- && angular.isDefined( $scope.$$prevSibling.hideErrorMsg ) ){
- $scope.$$prevSibling.hideErrorMsg = booleanValue;
- $scope.$apply();
- }
- };
- this.findAllowedCharactor = function( keyCode ){
- var keyMapSc = keyMapAc.keys;
- if( angular.isDefined( $scope.allowedSpecialCharacters )
- && angular.isDefined( $scope.allowedSpecialCharacters.length )
- && $scope.allowedSpecialCharacters.length > 0 ){
- var allowedCharList = $scope.allowedSpecialCharacters;
- var charFound = false;
- for( var i=0 ; i < allowedCharList.length ; i++){
- if( allowedCharList[i] === keyMapSc[keyCode] ){
- charFound = true;
- break;
- }
- }
- return charFound;
- }else{
- return false;
- }
- };
- this.validateText = function( validationType, allowedChars, validationInput, outputSpecialChars ){
- if( angular.isDefined( allowedChars ) && allowedChars.length === 0 ){
- var expAlphanumeric = /^[a-zA-Z0-9]*$/i;
- return expAlphanumeric.test( validationInput );
- }else{
- var expAlphanumericSpecialChar = '^[a-zA-Z0-9' + outputSpecialChars + ']*$';
- var regularExp = new RegExp( expAlphanumericSpecialChar, 'i' );
- return regularExp.test( validationInput );
- }
- };
- this.validateNumber = function( validationType, allowedChars, validationInput, outputSpecialChars ){
- if( angular.isDefined( allowedChars ) && allowedChars.length === 0 ){
- var expNumber = /^[0-9\.]+$/;
- return expNumber.test( validationInput );
- }else{
- var expNumberSpecial = '^[0-9\.' + outputSpecialChars + ']*$';
- var regularExp = new RegExp( expNumberSpecial, 'i' );
- return regularExp.test( validationInput );
- }
- };
- this.validateEmail = function( validationType, allowedChars, validationInput, outputSpecialChars ){
- if( angular.isDefined( allowedChars ) && allowedChars.length === 0 ){
- var expEmail = /(([a-zA-Z0-9\-?\.?]+)@(([a-zA-Z0-9\-_]+\.)+)([a-z]{2,3}))+$/;
- return expEmail.test( validationInput );
- }else{
- var expEmailSpecial = '(([a-z' + outputSpecialChars + 'A-Z0-9\-?\.?]+)@(([a-z'
- + outputSpecialChars + 'A-Z0-9\-_]+\.)+)([' + outputSpecialChars + 'a-z]{2,3}))+$';
- var regularExp = new RegExp( expEmailSpecial, 'i' );
- return regularExp.test( validationInput );
- }
- };
- this.validateInput = function( validationType, allowedChars, validationInput ){
- var outputSpecialChars = '';
- var result = false;
- if( angular.isDefined( allowedChars ) && angular.isDefined( allowedChars.length )
- && allowedChars.length > 0 ){
- for( var i = 0; i < allowedChars.length; i++){
- outputSpecialChars += '\\'+allowedChars[i];
- }
- }
- switch ( validationTypeInt.validationNum[ validationType ] ) {
- case validationTypeInt.validationNum["text"]:
- result = this.validateText( validationType, allowedChars, validationInput, outputSpecialChars );
- break;
- case validationTypeInt.validationNum["number"]:
- result = this.validateNumber( validationType, allowedChars, validationInput, outputSpecialChars );
- break;
- case validationTypeInt.validationNum["email"]:
- result = this.validateEmail( validationType, allowedChars, validationInput, outputSpecialChars );
- break;
- default:
- break;
- }
- return result;
- };
- }],
- link: function(scope, elem, attr ) {
- elem.parent().prepend('<label class="form-field__label">' + attr.placeholder + '</label>');
- elem.wrap('<div class="form-field-input-container"></div>');
- elem.parent().parent().find('label').addClass('form-field__label--show');
- }
- };
-}])
-.directive('attFormFieldValidationPrv', [ 'keyMapAc','validationTypeInt' , function( keyMapAc, validationTypeInt ) {
- return {
- priority: 202,
- scope: {
- validationType: '=',
- allowedChars: '='
- },
- restrict: 'A',
- require: ['?ngModel', '^attFormFieldPrv'],
- link: function(scope, elem, attr, ctrl) {
- var attFormFieldCtrl = ctrl[1];
- elem.bind('keyup', function() {
- /* email validation has tobe done on keyup */
- if( attFormFieldCtrl.validateInput( scope.validationType, scope.allowedChars, elem[0].value ) ){
- attFormFieldCtrl.showHideErrorMessage(false);
- }
- else{
- attFormFieldCtrl.showHideErrorMessage(true);
- }
- });
- var keyMapSc = keyMapAc.keyRange;
- var allowedKeys = keyMapAc.allowedKeys;
- var validateTextCode = function( charFound,event ){
- var resultOne = (event.which < keyMapSc['startNum'] || event.which > keyMapSc['endNum'] );
- var resultTwo = (event.which < keyMapSc['startCapitalLetters'] || event.which > keyMapSc['endCapitalLetters'] );
- var resultThree = (event.which < keyMapSc['startSmallLetters'] || event.which > keyMapSc['endSmallLetters'] );
- var result = ( resultOne && resultTwo && resultThree );
- return ( result && ( !charFound ) );
- };
- var validateNumberCode = function( charFound,event ){
- return ( ( event.which < keyMapSc['startNum'] || event.which > keyMapSc['endNum'] ) && ( !charFound ) );
- };
- var validateEmailCode = function( charFound,event ){
- var condOne = String.fromCharCode( event.which ) !== '-' && String.fromCharCode( event.which ) !== '_';
- var condTwo = String.fromCharCode( event.which ) !== '@' && String.fromCharCode( event.which ) !== '.';
- var ifAllowedChars = condOne && condTwo;
- var ifCharRange = validateTextCode( charFound,event );
- return ( ( !charFound ) && ifAllowedChars && ifCharRange );
- };
- var validateSwitch = function( validationTypeSwitch, charFound, event ){
- switch ( validationTypeSwitch ) {
- case validationTypeInt.validationNum["text"]:
- /* 97-122 65-90 48-57 if keyCode is outside range of alphanumeric chars and not found in list then prevent */
- if( validateTextCode( charFound, event ) ){
- return true;
- }
- break;
- case validationTypeInt.validationNum["number"]:
- /* if key code is outside number range and notfound then prevent */
- if( validateNumberCode( charFound, event ) ){
- return true;
- }
- break;
- case validationTypeInt.validationNum["email"]:
- /* if keyCode is outside charactor/number range and not _-@. then prevent */
- if( validateEmailCode( charFound, event ) ){
- return true;
- }
- break;
- default:
- break;
- }
- return false;
- };
- /* key stroke prevention has to be happen on numeric and alphanumeric fields */
- elem.bind('keypress', function( event ){
- if(!(event.which)){
- if(event.keyCode){
- event.which = event.keyCode;
- }
- else if(event.charCode){
- event.which = event.charCode;
- }
- }
- var charFound = attFormFieldCtrl.findAllowedCharactor( event.which );
- var insideCondOne = ( angular.isDefined( scope.validationType ) && scope.validationType !== '');
- var insideCondTwo = ( event.which !== allowedKeys['TAB']
- && event.which !== allowedKeys['BACKSPACE'] && event.which!== allowedKeys['DELETE'] );
- var goInside = insideCondOne && insideCondTwo;
- if( goInside && validateSwitch( validationTypeInt.validationNum[ scope.validationType ], charFound, event ) ){
- event.preventDefault();
- }
- });
- }
- };
-}])
-.directive('attFormFieldValidationAlertPrv', [ function() {
- return {
- restrict: 'A',
- scope : { errorMessage : '=' },
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html',
- link: function( scope ) {
- scope.errorMessage = scope.errorMessage;
- if( angular.isDefined( scope.$parent.hideErrorMsg ) ){
- scope.hideErrorMsg = scope.$parent.hideErrorMsg;
- }
- else{
- scope.hideErrorMsg = true;
- }
- }
- };
-}])
-//Credit card validation directives starts here
-.factory('Cards', [function() {
- var defaultFormat = /(\d{1,4})/g;
- var defaultInputFormat = /(?:^|\s)(\d{4})$/;
- var cards = [
- {
- type: 'discover',
- pattern: /^(6011|65|64[4-9]|622)/,
- format: defaultFormat,
- inputFormat: defaultInputFormat,
- length: [16],
- cvcLength: [3],
- cvcSecurityImg: 'visaI',
- zipLength: [5],
- luhn: true
- },
- {
- type: 'mc',
- pattern: /^5[1-5]/,
- format: defaultFormat,
- inputFormat: defaultInputFormat,
- length: [16],
- cvcLength: [3],
- cvcSecurityImg: 'visaI',
- zipLength: [5],
- luhn: true
- },
- {
- type: 'amex',
- pattern: /^3[47]/,
- format: /(\d{1,4})(\d{1,6})?(\d{1,5})?/,
- inputFormat: /^(\d{4}|\d{4}\s\d{6})$/,
- length: [15],
- cvcLength: [4],
- cvcSecurityImg: 'amexI',
- zipLength: [5],
- luhn: true
- },
- {
- type: 'visa',
- pattern: /^4/,
- format: defaultFormat,
- inputFormat: defaultInputFormat,
- length: [16],
- cvcLength: [3],
- cvcSecurityImg: 'visaI',
- zipLength: [5],
- luhn: true
- }
- ];
-
- var _fromNumber = function(num) {
- var card, i, len;
-
- num = (num + '').replace(/\D/g, '');
-
- for (i = 0, len = cards.length; i < len; i++) {
-
- card = cards[i];
-
- if (card.pattern.test(num)) {
- return card;
- }
-
- }
- };
-
- var _fromType = function(type) {
- var card, i, len;
-
- for (i = 0, len = cards.length; i < len; i++) {
-
- card = cards[i];
-
- if (card.type === type) {
- return card;
- }
-
- }
- };
-
- return {
- fromNumber: function(val) {
- return _fromNumber(val);
- },
- fromType: function(val) {
- return _fromType(val);
- },
- defaultFormat: function() {
- return defaultFormat;
- },
- defaultInputFormat: function() {
- return defaultInputFormat;
- }
- };
-
- }])
-.factory('_Validate', ['Cards', '$parse', function(Cards, $parse) {
- var __indexOf = [].indexOf || function(item)
- {
- for (var i = 0, l = this.length; i < l; i++)
- {
- if (i in this && this[i] === item)
- {
- return i;
- }
- }
- return -1;
- };
-
- var _luhnCheck = function(num) {
- var digit, digits, odd, sum, i, len;
-
- odd = true;
- sum = 0;
- digits = (num + '').split('').reverse();
-
- for (i = 0, len = digits.length; i < len; i++) {
-
- digit = digits[i];
- digit = parseInt(digit, 10);
-
- if ((odd = !odd)) {
- digit *= 2;
- }
-
- if (digit > 9) {
- digit -= 9;
- }
-
- sum += digit;
-
- }
-
- return sum % 10 === 0;
- };
-
- var _validators = {};
-
- _validators['cvc'] = function(cvc, ctrl, scope, attr) {
- var ref, ref1;
-
- // valid if empty - let ng-required handle empty
- if ((angular.isUndefined(cvc)) || (cvc === null) || (cvc.length === 0))
- {
- return true;
- }
-
- if (!/^\d+$/.test(cvc)) {
- return false;
- }
-
- var type;
- if (attr.paymentsTypeModel) {
- var typeModel = $parse(attr.paymentsTypeModel);
- type = typeModel(scope);
- }
-
- if (type)
- {
- ref1 = Cards.fromType(type);
- return (ref = cvc.length, __indexOf.call((ref1 !== null) ? ref1.cvcLength : void 0, ref)) >= 0;
- }
- else
- {
- return cvc.length >= 3 && cvc.length <= 4;
- }
- };
- _validators['zip'] = function(zip, ctrl, scope, attr) {
- var ref, ref1;
-
- // valid if empty - let ng-required handle empty
- if ((angular.isUndefined(zip)) || (zip === null) || (zip.length === 0))
- {
- return true;
- }
-
- if (!/^\d+$/.test(zip)) {
- return false;
- }
-
- var type;
- if (attr.paymentsTypeModel) {
- var typeModel = $parse(attr.paymentsTypeModel);
- type = typeModel(scope);
- }
- if (type)
- {
- ref1 = Cards.fromType(type);
- return (ref = zip.length, __indexOf.call(ref1 !== null ? ref1.zipLength : void 0, ref)) >= 0;
- }
- else
- {
- return zip.length < 6;
- }
- };
- _validators['card'] = function(num, ctrl, scope, attr) {
- var card, ref, typeModel;
-
- if (attr.paymentsTypeModel) {
- typeModel = $parse(attr.paymentsTypeModel);
- }
-
- var clearCard = function() {
- if (typeModel) {
- typeModel.assign(scope, null);
- }
- ctrl.$card = null;
- };
-
- // valid if empty - let ng-required handle empty
- if ((angular.isUndefined(num)) || (num === null) || (num.length === 0)) {
- clearCard();
- return true;
- }
-
- num = (num + '').replace(/\s+|-/g, '');
-
- if (!/^\d+$/.test(num)) {
- clearCard();
- return false;
- }
-
- card = Cards.fromNumber(num);
- if (!card) {
- clearCard();
- return false;
- }
- ctrl.$card = angular.copy(card);
-
- if (typeModel) {
- typeModel.assign(scope, card.type);
- }
-
- ret = (ref = num.length, __indexOf.call(card.length, ref) >= 0) && (card.luhn === false || _luhnCheck(num));
- return ret;
- };
- return function(type, val, ctrl, scope, attr) {
- if (!_validators[type]) {
-
- types = Object.keys(_validators);
-
- errstr = 'Unknown type for validation: "' + type + '". ';
- errstr += 'Should be one of: "' + types.join('", "') + '"';
-
- throw errstr;
- }
- return _validators[type](val, ctrl, scope, attr);
- };
- }])
-.factory('_ValidateWatch', ['_Validate', function(_Validate) {
-
- var _validatorWatches = {};
-
- _validatorWatches['cvc'] = function(type, ctrl, scope, attr) {
- if (attr.paymentsTypeModel) {
- scope.$watch(attr.paymentsTypeModel, function(newVal, oldVal) {
- if (newVal !== oldVal) {
- var valid = _Validate(type, ctrl.$modelValue, ctrl, scope, attr);
- ctrl.$setValidity(type, valid);
- }
- });
- }
- };
- _validatorWatches['zip'] = function(type, ctrl, scope, attr) {
- if (attr.paymentsTypeModel) {
- scope.$watch(attr.paymentsTypeModel, function(newVal, oldVal) {
- if (newVal !== oldVal) {
- var valid = _Validate(type, ctrl.$modelValue, ctrl, scope, attr);
- ctrl.$setValidity(type, valid);
- }
- });
- }
- };
- return function(type, ctrl, scope, attr) {
- if (_validatorWatches[type]) {
- return _validatorWatches[type](type, ctrl, scope, attr);
- }
- };
- }])
-.directive('validateCard', ['$window', '_Validate', '_ValidateWatch', function($window, _Validate, _ValidateWatch) {
- return {
- restrict: 'A',
- require: 'ngModel',
- link: function(scope, elem, attr, ctrl) {
-
- var type = attr.validateCard;
- _ValidateWatch(type, ctrl, scope, attr);
- var validateFn = function(val) {
- var valid = _Validate(type, val, ctrl, scope, attr);
- ctrl.$setValidity(type, valid);
- if (type === 'card')
- {
- if (ctrl.$card === null)
- {
- if ((val == null) || (val === "") || (val === ''))
- {
- scope.invalidCardError = '';
- scope.invalidCard = "";
- }
- else if (val.length >= 1)
- {
- scope.invalidCardError = 'error';
- scope.invalidCard = "The number entered is not a recognized credit card number.";
- }
- }
- else
- {
- if (!valid)
- {
- if (ctrl.$card.length.indexOf(val.length) >= 0)
- {
- scope.invalidCardError = 'error';
- scope.invalidCard = "The number entered is not a recognized credit card number.";
- }
- else
- {
- scope.invalidCardError = '';
- scope.invalidCard = "";
- }
- }
- else
- {
- scope.invalidCardError = '';
- scope.invalidCard = "";
- }
- }
- elem.bind("blur", function()
- {
- if ((!valid) || (ctrl.$card === null))
- {
- scope.invalidCardError = 'error';
- scope.invalidCard = "The number entered is not a recognized credit card number.";
- }
- else
- {
- scope.invalidCardError = '';
- scope.invalidCard = "";
- }
- });
- }
- return valid ? val : undefined;
- };
- ctrl.$formatters.push(validateFn);
- ctrl.$parsers.push(validateFn);
- }
- };
- }])
-.directive('creditCardImage', function() {
- return{
- templateUrl: 'app/scripts/ng_js_att_tpls/formField/creditCardImage.html',
- replace: false,
- transclude: false,
- link: function(scope, element, attr)
- {
- scope.$watch(attr.creditCardImage, function(newVal, oldVal)
- {
- if (newVal !== oldVal)
- {
- scope.cvc = '';
- if (!angular.isUndefined(newVal) && newVal !== null)
- {
- scope.newValCCI = 'show-' + newVal;
- }
- if (newVal === null)
- {
- scope.newValCCI = '';
- }
- }
- });
- }
- };
-})
-.directive('securityCodeImage', ['$document', function($document) {
- return{
- templateUrl: 'app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html',
- replace: false,
- transclude: false,
- link: function(scope, element, attr)
- {
- scope.$watch(attr.securityCodeImage, function(newVal, oldVal)
- {
- if (newVal !== oldVal)
- {
- if (!angular.isUndefined(newVal) && newVal !== null)
- {
- if (newVal === 'amexI')
- {
- scope.newValI = 'ccv2-security-amex';
- scope.newValIAlt = "The 4 digit CVC security code is on the front of the card.";
- scope.cvcPlaceholder = "4 digits";
- scope.cvcMaxlength = 4;
- }
- else if (newVal === 'visaI')
- {
- scope.newValI = 'ccv2-security';
- scope.newValIAlt = "The CVC security code is on the back of your card right after the credit card number.";
- scope.cvcPlaceholder = "3 digits";
- scope.cvcMaxlength = 3;
- }
- }
- if (newVal === null)
- {
- scope.newValI = 'ccv2-security';
- scope.cvcPlaceholder = "3 digits";
- scope.cvcMaxlength = 3;
- scope.newValIAlt = "The CVC security code is on the back of your card right after the credit card number.";
- }
-
- }
- });
- element.bind("click", function(ev) {
- ev.preventDefault();
- if (element.find("button").hasClass("active")) {
- element.find("button").removeClass("active");
- }
- else {
- element.find("button").addClass("active");
- }
- });
-
- var window = angular.element($document);
- window.bind("click", function(ev) {
- var targetClassname = ev.target.className;
- if ((targetClassname !== "btn btn-alt btn-tooltip active")) {
- if (element.find("button").hasClass("active")) {
- element.find("button").removeClass("active");
- }
- }
-
- });
- }
- };
- }]);
-
-angular.module('att.abs.hourpicker', ['att.abs.utilities'])
- .constant('hourpickerConfig', {
- days: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
- customOption: 'Custom'
- })
-
-.controller('hourPickerController', ['$scope', function ($scope) {
-
- $scope.options = [];
- this.setOptions = function (value, fromtime, totime, preselect, uncheckedFromTime, uncheckedToTime) {
- $scope.options.push(value);
-
- if (preselect !== undefined) {
- $scope.preselect = preselect;
- }
-
- var daycount;
-
- if (fromtime !== undefined) {
- $scope.fromtime = fromtime;
- for (daycount in $scope.days) {
- if ($scope.days.hasOwnProperty(daycount)) {
- $scope.FrtimeList[$scope.days[daycount]] = {};
- if (uncheckedFromTime !== undefined) {
- $scope.FrtimeList[$scope.days[daycount]].value = uncheckedFromTime;
- $scope.selectedFromOption[$scope.days[daycount]] = uncheckedFromTime;
- } else {
- $scope.FrtimeList[$scope.days[daycount]].value = fromtime[0].value;
- $scope.selectedFromOption[$scope.days[daycount]] = fromtime[0].value;
- }
- }
- }
- }
- if (totime !== undefined) {
- $scope.totime = totime;
- for (daycount in $scope.days) {
- if ($scope.days.hasOwnProperty(daycount)) {
- $scope.TotimeList[$scope.days[daycount]] = {};
- if (uncheckedToTime !== undefined) {
- $scope.TotimeList[$scope.days[daycount]].value = uncheckedToTime;
- $scope.selectedToOption[$scope.days[daycount]] = uncheckedToTime;
- } else {
- $scope.TotimeList[$scope.days[daycount]].value = totime[0].value;
- $scope.selectedToOption[$scope.days[daycount]] = totime[0].value;
- }
- $scope.showToTimeErrorDay[$scope.days[daycount]] = false;
- }
- }
- }
-
- if (uncheckedFromTime !== undefined) {
- $scope.uncheckedFromTime = uncheckedFromTime;
- }
- if (uncheckedToTime !== undefined) {
- $scope.uncheckedToTime = uncheckedToTime;
- }
- };
-
- this.getSelectedOption = function () {
- return $scope.selectedOption;
- };
-
- this.setToTimeErrorDay = function (day, flag) {
- $scope.showToTimeErrorDay[day] = flag;
- };
-}])
-
-.directive('attHourpickerOption', [function () {
- return {
- restrict: 'EA',
- require: '^attHourpicker',
- scope: {
- option: "=option",
- fromtime: "=fromtime",
- totime: "=totime",
- preselect: "=preselect",
- uncheckedFromTime: "=",
- uncheckedToTime: "="
- },
- link: function (scope, element, attr, ctrl) {
- ctrl.setOptions(scope.option,
- scope.fromtime,
- scope.totime,
- scope.preselect,
- scope.uncheckedFromTime,
- scope.uncheckedToTime);
- }
- };
-}])
-
-.directive('attHourpicker', ["hourpickerConfig", "$document", "$log", "$documentBind", "$timeout", function (hourpickerConfig, $document, $log, $documentBind, $timeout) {
- return {
- require: 'ngModel',
- restrict: 'EA',
- controller: 'hourPickerController',
- transclude: true,
- scope: {
- model: "=ngModel",
- resetFlag: "=?"
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html',
- link: function (scope, element, attr, ctrl) {
- var flag = false;
- scope.isFromDropDownOpen = false;
- scope.isToDropDownOpen = false;
- var dropDownOpenValue = "";
- var custTime = {};
- scope.days = hourpickerConfig.days;
- scope.daysList = {};
- scope.FrtimeList = {};
- scope.FrtimeListDay = {};
- scope.TotimeListDay = {};
- scope.selectedFromOption = {};
- scope.selectedToOption = {};
- scope.TotimeList = {};
- scope.selectedIndex = 0;
- scope.selectedOption = "Select from list";
- scope.customTime = [];
-
- scope.resetFlag = false;
- scope.showToTimeErrorDay = {};
- scope.validatedCustomPreselect = [];
-
- scope.$watch('resetFlag', function (newVal, oldVal) {
- if (newVal !== oldVal) {
- if (newVal && scope.selectedOption === hourpickerConfig.customOption) {
- //disable and reset all days checkbox
- for (day in scope.daysList) {
- if (scope.daysList.hasOwnProperty(day)) {
- scope.daysList[day] = false;
- scope.addSelectedValue(day);
- }
- }
- scope.preselectUpdateFxn(scope.preselect);
- }
- scope.resetFlag = false;
- }
- });
-
- scope.$watch('selCategory', function (value) {
- if (value) {
- ctrl.$setViewValue(value);
- }
- }, true);
-
- scope.updateData = function (value) {
- if (value.constructor === Array) {
- scope.showDaysSelector = true;
- scope.selectedOption = hourpickerConfig.customOption;
- for (var arry in value) {
- if (value.hasOwnProperty(arry)) {
- var day = value[arry].day;
-
- if (typeof value[arry].preEnabled === 'boolean' && value[arry].preEnabled) {
- scope.daysList[day] = true;
- } else {
- scope.daysList[day] = false;
- }
-
- for (var fromcount in scope.fromtime) {
- if (scope.fromtime[fromcount].value === value[arry].FromTime && !scope.uncheckedFromTime) {
- scope.FrtimeList[day].value = scope.fromtime[fromcount].value;
- scope.selectedFromOption[day] = scope.FrtimeList[day].value;
- }
- }
- for (var tocount in scope.totime) {
- if (scope.totime[tocount].value === value[arry].ToTime && !scope.uncheckedToTime) {
- scope.TotimeList[day].value = scope.totime[tocount].value;
- scope.selectedToOption[day] = scope.TotimeList[day].value;
- }
- }
-
- scope.addSelectedValue(day, value[arry].FromTime, value[arry].ToTime);
-
- //for IE8 Fix
- if (parseInt(arry) + 1 === value.length) {
- break;
- }
- }
- }
- } else {
- scope.selectOption(value.day);
- }
- };
-
- scope.$watch('preselect', function (value) {
- scope.preselectUpdateFxn(value);
- });
-
- scope.preselectUpdateFxn = function (value) {
- if (value !== undefined) {
- if (scope.options) {
- value = scope.validatePreselectData(value);
- }
- if (value === "") {
- return;
- }
- scope.updateData(value);
- }
- };
-
- scope.validatePreselectData = function (value) {
- if (value.constructor === Array) {
- for (var arry in value) {
- if (value.hasOwnProperty(arry)) {
- var day = value[arry].day;
- var isDayFound = false;
- var isFrmFound = false;
- var isToFound = false;
- for (var daycount in scope.days) {
- if (scope.days[daycount] === day) {
- isDayFound = true;
- break;
- }
- }
- if (!isDayFound) {
- value.splice(arry, 1);
- continue;
- }
- for (var fromcount in scope.fromtime) {
- if (scope.fromtime[fromcount].value === value[arry].FromTime) {
- isFrmFound = true;
- break;
- }
- }
- if (!isFrmFound) {
- value[arry].FromTime = scope.fromtime[0].value;
- }
- for (var tocount in scope.totime) {
- if (scope.totime[tocount].value === value[arry].ToTime) {
- isToFound = true;
- break;
- }
- }
- if (!isToFound) {
- value[arry].ToTime = scope.totime[0].value;
- }
-
- if (typeof value[arry].preEnabled === 'boolean' && value[arry].preEnabled) {
- value[arry].preEnabled = true;
- } else {
- value[arry].preEnabled = false;
- }
-
- scope.validatedCustomPreselect[day] = {};
- scope.validatedCustomPreselect[day].FromTime = value[arry].FromTime;
- scope.validatedCustomPreselect[day].ToTime = value[arry].ToTime;
-
- //for IE8 Fix
- if (parseInt(arry) + 1 === value.length) {
- break;
- }
- }
- }
- } else {
- var isOptionFound = false;
- for (var optcount in scope.options) {
- if (scope.options[optcount] === value.day) {
- isOptionFound = true;
- break;
- }
- }
- if (!isOptionFound) {
- value = "";
- }
- }
- return value;
- };
-
- scope.selectPrevNextValue = function ($event, arrayValues, currValue) {
-
- var value;
- var index = 0;
- if ($event.keyCode === 38) {
- value = -1;
- } else if ($event.keyCode === 40) {
- value = 1;
- } else {
- return currValue;
- }
-
- if (arrayValues.indexOf(currValue) !== -1) {
- index = arrayValues.indexOf(currValue) + value;
- } else {
- for (var count in arrayValues) {
- if (arrayValues[count].value === currValue) {
- index = parseInt(count) + value;
- break;
- }
- }
- }
-
- if (index === arrayValues.length) {
- index = index - 1;
- } else if (index === -1) {
- index = index + 1;
- }
-
- $event.preventDefault();
- if (arrayValues[index].value) {
- return arrayValues[index].value;
- } else {
- return arrayValues[index];
- }
- };
-
- scope.showDropdown = function () {
- scope.showlist = !scope.showlist;
- flag = !flag;
- };
-
- scope.showfromDayDropdown = function (value) {
- //close dropdown if any other From drop down is opened
- for (count in scope.FrtimeListDay) {
- if (count !== value && scope.FrtimeListDay[count]) {
- scope.FrtimeListDay[count] = false;
- }
- }
- for (count in scope.TotimeListDay) {
- if (scope.TotimeListDay[count]) {
- scope.TotimeListDay[count] = false;
- }
- }
- scope.FrtimeListDay[value] = !scope.FrtimeListDay[value];
- flag = !flag;
- scope.showlist = false;
-
- //save model value so we can close current dropdown on click of other part of the document
- if (scope.FrtimeListDay[value]) {
- scope.isFromDropDownOpen = true;
- dropDownOpenValue = value;
- } else {
- scope.isFromDropDownOpen = false;
- }
-
- $timeout(function () {
- if (scope.FrtimeListDay[value]) {
- var daysContainerDIV = angular.element(element)[0].querySelector(".customdays-width");
- var containerUL = angular.element(daysContainerDIV.querySelector('.select2-container-active')).parent()[0].querySelector("ul");
- var selectedElemTopPos = angular.element(containerUL.querySelector('.selectedItemInDropDown'))[0].offsetTop;
- angular.element(containerUL)[0].scrollTop = selectedElemTopPos;
- }
- });
- };
-
- scope.showtoDayDropdown = function (value) {
- //close dropdown if any other To drop down is opened
- for (count in scope.TotimeListDay) {
- if (count !== value && scope.TotimeListDay[count]) {
- scope.TotimeListDay[count] = false;
- }
- }
- for (count in scope.FrtimeListDay) {
- if (scope.FrtimeListDay[count]) {
- scope.FrtimeListDay[count] = false;
- }
- }
- scope.TotimeListDay[value] = !scope.TotimeListDay[value];
- flag = !flag;
- scope.showlist = false;
-
- //save model value so we can close current dropdown on click of other part of the document
- if (scope.TotimeListDay[value]) {
- scope.isToDropDownOpen = true;
- dropDownOpenValue = value;
-
- } else {
- scope.isToDropDownOpen = false;
- }
-
- $timeout(function () {
- if (scope.TotimeListDay[value]) {
- var daysContainerDIV = angular.element(element)[0].querySelector(".customdays-width");
- var containerUL = angular.element(daysContainerDIV.querySelector('.select2-container-active')).parent()[0].querySelector("ul");
- var selectedElemTopPos = angular.element(containerUL.querySelector('.selectedItemInDropDown'))[0].offsetTop;
- angular.element(containerUL)[0].scrollTop = selectedElemTopPos;
- }
- });
- };
-
- scope.selectFromDayOption = function (day, value) {
- scope.selectedFromOption[day] = value;
- scope.FrtimeList[day].value = value;
- scope.FrtimeListDay[day] = false;
- scope.isFromDropDownOpen = false;
- };
-
- scope.selectToDayOption = function (day, value) {
- scope.selectedToOption[day] = value;
- scope.TotimeList[day].value = value;
- scope.TotimeListDay[day] = false;
- scope.isToDropDownOpen = false;
- };
-
- scope.addSelectedValue = function (value, fromtime, totime) {
- var count, len;
- if (scope.daysList[value] !== undefined && !scope.daysList[value]) {
- for (count = 0, len = scope.customTime.length; count < len; count++) {
- if (scope.customTime[count].day === value) {
- if (scope.uncheckedFromTime) {
- scope.selectedFromOption[scope.customTime[count].day] = scope.uncheckedFromTime;
- } else {
- scope.selectedFromOption[scope.customTime[count].day] = scope.FrtimeList[scope.customTime[count].day].value;
- }
-
- if (scope.uncheckedToTime) {
- scope.selectedToOption[scope.customTime[count].day] = scope.uncheckedToTime;
- } else {
- scope.selectedToOption[scope.customTime[count].day] = scope.TotimeList[scope.customTime[count].day].value;
- }
-
- scope.customTime.splice(count, 1);
- break;
- }
- }
- } else {
- if (scope.selectedFromOption[value] === scope.uncheckedFromTime) {
-
- if (angular.isDefined(scope.validatedCustomPreselect[value])) {
- scope.selectedFromOption[value] = scope.validatedCustomPreselect[value].FromTime;
- fromtime = scope.validatedCustomPreselect[value].FromTime;
- scope.FrtimeList[value].value = scope.validatedCustomPreselect[value].FromTime;
- } else {
- scope.selectedFromOption[value] = scope.fromtime[0].value;
- fromtime = scope.fromtime[0].value;
- scope.FrtimeList[value].value = scope.fromtime[0].value;
- }
-
- }
-
- if (scope.selectedToOption[value] === scope.uncheckedToTime) {
-
- if (angular.isDefined(scope.validatedCustomPreselect[value])) {
- scope.selectedToOption[value] = scope.validatedCustomPreselect[value].ToTime;
- totime = scope.validatedCustomPreselect[value].ToTime;
- scope.TotimeList[value].value = scope.validatedCustomPreselect[value].ToTime;
- } else {
- scope.selectedToOption[value] = scope.totime[0].value;
- totime = scope.totime[0].value;
- scope.TotimeList[value].value = scope.totime[0].value;
- }
- }
-
- custTime["day"] = value;
- custTime["FromTime"] = scope.FrtimeList[value].value;
- custTime["ToTime"] = scope.TotimeList[value].value;
-
- for (count = 0, len = scope.customTime.length; count < len; count++) {
- if (scope.customTime[count].day === value) {
- scope.customTime[count].FromTime = custTime["FromTime"];
- scope.customTime[count].ToTime = custTime["ToTime"];
- break;
- }
- }
- if (count === len) {
- var x = angular.copy(custTime);
- scope.customTime.push(x);
- }
- }
- scope.selCategory = scope.customTime;
- };
-
-
- var outsideClick = function () {
- if (scope.showlist) {
- scope.$apply(function () {
- scope.showlist = false;
- });
- }
- };
-
- $documentBind.click('showlist', outsideClick, scope);
-
- var outsideClickFromDropdown = function () {
- scope.$apply(function () {
- if (scope.isFromDropDownOpen) {
- scope.FrtimeListDay[dropDownOpenValue] = false;
- scope.isFromDropDownOpen = false;
- }
- });
- };
-
- $documentBind.click('isFromDropDownOpen', outsideClickFromDropdown, scope);
-
- var outsideClickToDropdown = function () {
- scope.$apply(function () {
- if (scope.isToDropDownOpen) {
- scope.TotimeListDay[dropDownOpenValue] = false;
- scope.isToDropDownOpen = false;
- }
- });
- };
-
- $documentBind.click('isToDropDownOpen', outsideClickToDropdown, scope);
-
- scope.selectOption = function (sItem) {
-
- if (sItem === hourpickerConfig.customOption) {
- scope.showDaysSelector = true;
- scope.selCategory = scope.customTime;
- } else {
- scope.showDaysSelector = false;
- var fromTime = /[0-9]\s?am/i.exec(sItem);
- var toTime = /[0-9]\s?pm/i.exec(sItem);
- scope.selCategory = {
- day: sItem,
- FromTime: fromTime === null ? 'NA' : fromTime[0],
- ToTime: toTime === null ? 'NA' : toTime[0]
- };
- }
-
- scope.showlist = false;
- flag = false;
- scope.selectedOption = sItem;
- };
- }
- };
-}])
-
-.directive('attHourpickerValidator', ['hourpickerConfig', function (hourpickerConfig) {
- return {
- restrict: 'A',
- require: ['attHourpicker', 'ngModel'],
- link: function (scope, element, attr, ctrl) {
-
- var attHourpickerCtrl = ctrl[0];
- var ngModelCtrl = ctrl[1];
-
- //required format [h:MM tt] like '1:10 PM'
- var convertTimeStrngToMilitaryFormat = function (time) {
- var hours = Number(time.match(/^(\d+)/)[1]);
- var minutes = Number(time.match(/:(\d+)/)[1]);
- var AMPM = (time.match(/\s(.*)$/)[1]).toUpperCase();
- if (AMPM === 'PM' && hours < 12) {
- hours = hours + 12;
- }
- if (AMPM === 'AM' && hours === 12) {
- hours = hours - 12;
- }
- var sHours = hours.toString();
- var sMinutes = minutes.toString();
- if (hours < 10) {
- sHours = '0' + sHours;
- }
- if (minutes < 10) {
- sMinutes = '0' + sMinutes;
- }
- return parseInt(sHours + sMinutes, 10);
- };
-
- var compareTimeStrings = function (fromTimeString, toTimeString) {
- var fromMilitaryTime = convertTimeStrngToMilitaryFormat(fromTimeString);
- var toMilitaryTime = convertTimeStrngToMilitaryFormat(toTimeString);
- return (toMilitaryTime - fromMilitaryTime);
- };
-
- var validateCustomData = function (finalDataModal) {
-
- if (attHourpickerCtrl.getSelectedOption() === hourpickerConfig.customOption) {
-
- var errorDaysCount = 0;
-
- for (var item in finalDataModal) {
- if (finalDataModal.hasOwnProperty(item)) {
- if (compareTimeStrings(finalDataModal[item].FromTime, finalDataModal[item].ToTime) <= 0) {
- attHourpickerCtrl.setToTimeErrorDay(finalDataModal[item].day, true);
- errorDaysCount++;
- } else {
- attHourpickerCtrl.setToTimeErrorDay(finalDataModal[item].day, false);
- }
- }
- }
-
- if (errorDaysCount > 0) {
- //validation error
- ngModelCtrl.$setValidity('validationStatus', false);
- return [];
- } else {
- //validation successful
- ngModelCtrl.$setValidity('validationStatus', true);
- return finalDataModal;
- }
- } else {
- //default case no validation
- ngModelCtrl.$setValidity('validationStatus', true);
- return finalDataModal;
- }
-
- };
-
- ngModelCtrl.$parsers.unshift(validateCustomData);
- }
- };
-}]);
-angular.module('att.abs.iconButtons', [])
- .constant('buttonConfig', {
- activeClass: 'active--button',
- toggleEvent: 'click'
- })
- .directive('attIconBtnRadio', ['buttonConfig', function(buttonConfig) {
- var activeClass = buttonConfig.activeClass || 'active--button';
- var toggleEvent = buttonConfig.toggleEvent || 'click';
- return {
- require: 'ngModel',
- link: function(scope, element, attrs, ngModelCtrl) {
- element.attr("tabindex","0");
- element.append("<span class='hidden-spoken'>"+attrs.attIconBtnRadio+"</span>");
- //model -> UI
- ngModelCtrl.$render = function() {
- element.parent().toggleClass(activeClass, angular.equals(ngModelCtrl.$modelValue, attrs.attIconBtnRadio));
- };
- //ui->model
- element.parent().bind(toggleEvent, function() {
- if (!element.parent().hasClass(activeClass)) {
- scope.$apply(function() {
- ngModelCtrl.$setViewValue(attrs.attIconBtnRadio);
- ngModelCtrl.$render();
- });
- }
- });
- }
- };
- }])
- .directive('attIconBtnCheckbox', ['buttonConfig', function(buttonConfig) {
- var activeClass = buttonConfig.activeClass || 'active--button';
- var toggleEvent = buttonConfig.toggleEvent || 'click';
- return {
- require: 'ngModel',
- link: function(scope, element, attrs, ngModelCtrl) {
- element.attr("tabindex","0");
- element.append("<span class='hidden-spoken'>"+attrs.attIconBtnCheckbox+"</span>");
- function getTrueValue() {
- var trueValue = scope.$eval(attrs.btnCheckboxTrue);
- return angular.isDefined(trueValue) ? trueValue : true;
- }
- function getFalseValue() {
- var falseValue = scope.$eval(attrs.btnCheckboxFalse);
- return angular.isDefined(falseValue) ? falseValue : false;
- }
- //model -> UI
- ngModelCtrl.$render = function() {
- element.parent().toggleClass(activeClass, angular.equals(ngModelCtrl.$modelValue, getTrueValue()));
- };
- //ui->model
- element.parent().bind(toggleEvent, function() {
- scope.$apply(function() {
- ngModelCtrl.$setViewValue(element.parent().hasClass(activeClass) ? getFalseValue() : getTrueValue());
- ngModelCtrl.$render();
- });
- });
- }
- };
- }]);
-
-angular.module('att.abs.links', ['ngSanitize'])
- .directive('attLink', [function() {
- return {
- restrict: 'A',
- link: function(scope, elem) {
- elem.addClass('link');
- if(!(elem.attr('href'))){
- elem.attr("tabindex", "0");
- }
- }
- };
- }])
- .directive('attLinkVisited', [function() {
- return {
- restrict: 'A',
- link: function(scope, elem) {
- elem.addClass('link--visited');
- if(!(elem.attr('href'))){
- elem.attr("tabindex", "0");
- }
- }
- };
- }])
- .directive('attReadmore', ['$timeout',function($timeout) {
- return {
- restrict: 'A',
- scope: {
- lines:"@noOfLines",
- textModel: "=",
- //attribute to use readmore inside accordion
- isOpen: "="
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/links/readMore.html',
- link: function(scope, elem) {
- var height = 1;
- scope.$watch('textModel', function(val){
- if(!val){
- scope.textToDisplay = '';
- scope.readMoreLink = false;
- scope.readLessLink = false;
- scope.readFlag = false;
- }
- else{
- if (typeof String.prototype.trim !== 'function') {
- String.prototype.trim = function() {
- return this.replace(/^\s+|\s+$/g, '');
- };
- }
- scope.textToDisplay = val.trim();
- scope.readFlag = true;
- $timeout(function() {
- var readElem = elem[0].children[0].children[0];
- if(height===1){
- if(window.getComputedStyle){
- height = parseInt(scope.lines) * parseFloat(window.getComputedStyle(readElem,null).getPropertyValue("height"));
- }
- else {
- height = parseInt(scope.lines) * parseFloat(readElem.currentStyle.height);
- }
- scope.elemHeight = height;
- scope.readLinkStyle = {'height': scope.elemHeight + 'px'};
- }
- });
- scope.readMoreLink = true;
- scope.readLessLink = false;
- }
- });
- // Code to use readmore inside accordion
- var parentElem = elem.parent();
- if (parentElem.hasClass('att-accordion__body')) {
- scope.$watch('isOpen', function(val) {
- if (!val) {
- scope.readMoreLink = true;
- scope.readLessLink = false;
- scope.readLinkStyle = {'height': scope.elemHeight + 'px'};
- scope.readFlag = true;
- }
- });
- }
- scope.readMore = function() {
- scope.readMoreLink = false;
- scope.readLessLink = true;
- scope.readLinkStyle = {'height': 'auto'};
- scope.readFlag = false;
- var moreLink = angular.element(elem).children().eq(1).find('a')[0];
- $timeout(function()
- {
- moreLink.focus();
- });
- };
- scope.readLess = function() {
- scope.readMoreLink = true;
- scope.readLessLink = false;
- scope.readLinkStyle = {'height': scope.elemHeight + 'px'};
- scope.readFlag = true;
- var readLessLink = angular.element(elem).children().eq(0).find('a')[0];
- $timeout(function()
- {
- readLessLink.focus();
- });
- };
- }
- };
- }])
- .directive('attLinksList', [function() {
- return {
- restrict: 'A',
- controller: function() {
- },
- link: function(scope, elem) {
- elem.addClass('links-list');
- }
- };
- }])
- .directive('attLinksListItem', [function() {
- return {
- restrict: 'A',
- require: '^attLinksList',
- link: function(scope, elem) {
- elem.addClass('links-list__item');
- if(!(elem.attr('href'))){
- elem.attr("tabindex", "0");
- }
- }
- };
- }]);
-angular.module('att.abs.loading', [])
- .directive('attLoading', ['$window',function($window) {
- return {
- restrict: 'A',
- replace: true,
- scope: {
- icon: '@attLoading',
- progressStatus: '=?',
- colorClass: '=?'
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/loading/loading.html',
- link: function(scope, element) {
- var progressvalue = scope.progressStatus;
- scope.progressStatus = Math.min(100, Math.max(0, progressvalue));
- if($window.navigator.userAgent.indexOf("MSIE 8.")!==-1){
- var shiftX = 0, shiftY = scope.progressStatus * 36;
- element.css({
- 'background-position-x' : shiftX,
- 'background-position-y' : -shiftY
- });
- }
- }
- };
- }]);
-angular.module('att.abs.modal', ['att.abs.utilities'])
-/**
- * A helper, internal data structure that acts as a map but also allows getting / removing
- * elements in the LIFO order
- */
- .factory('$$stackedMap', function () {
- return {
- createNew: function () {
- var stack = [];
-
- return {
- add: function (key, value) {
- stack.push({
- key: key,
- value: value
- });
- },
- get: function (key) {
- for (var i = 0; i < stack.length; i++) {
- if (key === stack[i].key) {
- return stack[i];
- }
- }
- },
- keys: function() {
- var keys = [];
- for (var i = 0; i < stack.length; i++) {
- keys.push(stack[i].key);
- }
- return keys;
- },
- top: function () {
- return stack[stack.length - 1];
- },
- remove: function (key) {
- var idx = -1;
- for (var i = 0; i < stack.length; i++) {
- if (key === stack[i].key) {
- idx = i;
- break;
- }
- }
- return stack.splice(idx, 1)[0];
- },
- removeTop: function () {
- return stack.splice(stack.length - 1, 1)[0];
- },
- length: function () {
- return stack.length;
- }
- };
- }
- };
- })
-
-/**
- * A helper directive for the $modal service. It creates a backdrop element.
- */
- .directive('modalBackdrop', ['$timeout', function ($timeout) {
- return {
- restrict: 'EA',
- replace: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/modal/backdrop.html',
- link: function (scope) {
- scope.animate = false;
- //trigger CSS transitions
- $timeout(function () {
- scope.animate = true;
- });
- }
- };
- }])
-
- .directive('modalWindow', ['$modalStack','$timeout','$document', function ($modalStack,$timeout,$document) {
- return {
- restrict: 'EA',
- scope: {
- index: '@',
- modalTitle: '@?'
- },
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/modal/window.html',
- link: function (scope, element, attrs) {
- scope.windowClass = attrs.windowClass || '';
- if (attrs['modalTitle'] && attrs['modalTitle']!=="") {
- element[0].setAttribute('aria-label', attrs['modalTitle']);
- element[0].removeAttribute('modal-title');
- }
- $timeout(function () {
- // trigger CSS transitions
- scope.focusModalFlag = true;
- scope.animate = true;
- });
- $document.on('focus keydown', function(e){
- if (e.which ===9) {
- String.prototype.contains = function(it) {
- return this.indexOf(it) !== -1;
- };
- if (element[0] !== e.target && !element[0].contains( e.target )) {
- element[0].focus();
- }
- }
- });
- scope.close = function (evt) {
- var modal = $modalStack.getTop();
- if (modal && modal.value.backdrop && modal.value.backdrop != 'static' && (evt.target === evt.currentTarget)) {
- // Check if preventDefault exists due to lack of support for IE8
- if (evt.preventDefault) {
- evt.preventDefault();
- evt.stopPropagation();
- } else {
- evt.returnValue = false;
- }
- $modalStack.dismiss(modal.key, 'backdrop click');
- }
- };
- }
- };
- }])
-
- .factory('$modalStack', ['$document', '$compile', '$rootScope', '$$stackedMap', 'events', 'keymap',
- function ($document, $compile, $rootScope, $$stackedMap, events, keymap) {
- var OPENED_MODAL_CLASS = 'modal-open';
- var backdropjqLiteEl, backdropDomEl;
- var backdropScope = $rootScope.$new(true);
- var openedWindows = $$stackedMap.createNew();
- var $modalStack = {};
- var modalLaunchingElement = undefined;
- function backdropIndex() {
- var topBackdropIndex = -1;
- var opened = openedWindows.keys();
- for (var i = 0; i < opened.length; i++) {
- if (openedWindows.get(opened[i]).value.backdrop) {
- topBackdropIndex = i;
- }
- }
- return topBackdropIndex;
- }
-
- $rootScope.$watch(backdropIndex, function(newBackdropIndex){
- backdropScope.index = newBackdropIndex;
- });
-
- function removeModalWindow(modalInstance) {
-
- var body = $document.find('body').eq(0);
- var html = $document.find('html').eq(0);
- var modalWindow = openedWindows.get(modalInstance).value;
- //clean up the stack
- openedWindows.remove(modalInstance);
- ////remove window DOM element
- modalWindow.modalDomEl.remove();
- body.toggleClass(OPENED_MODAL_CLASS, openedWindows.length() > 0);
- html.css({overflow: 'scroll'});
-
- //remove backdrop if no longer needed
- if (backdropDomEl && backdropIndex() == -1) {
- backdropDomEl.remove();
- backdropDomEl = undefined;
- }
- //destroy scope
- modalWindow.modalScope.$destroy();
-
- // Shift focus
- if (angular.isDefined(modalLaunchingElement) && modalLaunchingElement != null) {
- modalLaunchingElement.focus();
- }
- }
- $document.bind('keydown', function (evt) {
- var modal;
- if (evt.which === 27) {
- modal = openedWindows.top();
- if (modal && modal.value.keyboard) {
- $rootScope.$apply(function () {
- $modalStack.dismiss(modal.key);
- });
- }
- } else if (evt.keyCode === keymap.KEY.BACKSPACE) {
- var doPrevent = false;
- var d = evt.srcElement || evt.target;
- var type;
- if (d.type === undefined) {
- doPrevent = true;
- } else if (d.tagName.toUpperCase() === 'INPUT' &&
- ( (type = d.type.toUpperCase()) === 'TEXT' ||
- type === 'PASSWORD' ||
- type === 'FILE' ||
- type === 'SEARCH' ||
- type === 'EMAIL' ||
- type === 'NUMBER' ||
- type === 'DATE' ||
- type === 'TEL' ||
- type === 'URL' ||
- type === 'TIME')
- || d.tagName.toUpperCase() === 'TEXTAREA') {
- doPrevent = d.readOnly || d.disabled;
- } else {
- doPrevent = true;
- }
- if (doPrevent) {
- events.preventDefault(evt);
- }
- }
- });
-
- $modalStack.open = function (modalInstance, modal) {
- openedWindows.add(modalInstance, {
- deferred: modal.deferred,
- modalScope: modal.scope,
- backdrop: modal.backdrop,
- keyboard: modal.keyboard
- });
-
- //Before opening modal, find the focused element
- modalLaunchingElement = document.activeElement;
-
- var body = $document.find('body').eq(0);
- var html = $document.find('html').eq(0);
-
- if (backdropIndex() >= 0 && !backdropDomEl) {
- backdropjqLiteEl = angular.element('<div modal-backdrop></div>');
- backdropDomEl = $compile(backdropjqLiteEl)(backdropScope);
- body.append(backdropDomEl);
- }
- var angularDomEl = angular.element('<div modal-window></div>');
- angularDomEl.attr('window-class', modal.windowClass);
- angularDomEl.attr('index', openedWindows.length() - 1);
- angularDomEl.attr('modal-title', modal.modalTitle);
- angularDomEl.html(modal.content);
-
- var modalDomEl = $compile(angularDomEl)(modal.scope);
- openedWindows.top().value.modalDomEl = modalDomEl;
- body.append(modalDomEl);
- body.addClass(OPENED_MODAL_CLASS);
- html.css({overflow: 'hidden'});
- };
-
- $modalStack.close = function (modalInstance, result) {
- var modal = openedWindows.get(modalInstance);
- if (modal) {
- modal.value.deferred.resolve(result);
- removeModalWindow(modalInstance);
- }
- };
-
- $modalStack.dismiss = function (modalInstance, reason) {
- var modalWindow = openedWindows.get(modalInstance).value;
- if (modalWindow) {
- modalWindow.deferred.reject(reason);
- removeModalWindow(modalInstance);
- }
- };
-
- $modalStack.getTop = function () {
- return openedWindows.top();
- };
-
- return $modalStack;
- }])
-
- .provider('$modal', function () {
-
- var $modalProvider = {
- options: {
- //can be also false or 'static'
- backdrop: true,
- keyboard: true
- },
- $get: ['$injector', '$rootScope', '$q', '$http', '$templateCache', '$controller', '$modalStack',
- function ($injector, $rootScope, $q, $http, $templateCache, $controller, $modalStack) {
- var $modal = {};
- function getTemplatePromise(options) {
- return options.template ? $q.when(options.template) :
- $http.get(options.templateUrl, {cache: $templateCache}).then(function (result) {
- return result.data;
- });
- }
-
- function getResolvePromises(resolves) {
- var promisesArr = [];
- angular.forEach(resolves, function (value) {
- if (angular.isFunction(value) || angular.isArray(value)) {
- promisesArr.push($q.when($injector.invoke(value)));
- }
- });
- return promisesArr;
- }
- $modal.open = function (modalOptions) {
- var modalResultDeferred = $q.defer();
- var modalOpenedDeferred = $q.defer();
-
- //prepare an instance of a modal to be injected into controllers and returned to a caller
- var modalInstance = {
- result: modalResultDeferred.promise,
- opened: modalOpenedDeferred.promise,
- close: function (result) {
- $modalStack.close(modalInstance, result);
- },
- dismiss: function (reason) {
- $modalStack.dismiss(modalInstance, reason);
- }
- };
- //merge and clean up options
- modalOptions = angular.extend({}, $modalProvider.options, modalOptions);
- modalOptions.resolve = modalOptions.resolve || {};
-
- //verify options
- if (!modalOptions.template && !modalOptions.templateUrl) {
- throw new Error('One of template or templateUrl options is required.');
- }
-
- var templateAndResolvePromise =
- $q.all([getTemplatePromise(modalOptions)].concat(getResolvePromises(modalOptions.resolve)));
- templateAndResolvePromise.then(function(tplAndVars) {
- var modalScope = (modalOptions.scope || $rootScope).$new();
- modalScope.$close = modalInstance.close;
- modalScope.$dismiss = modalInstance.dismiss;
-
- var ctrlInstance, ctrlLocals = {};
- var resolveIter = 1;
-
- //controllers
- if (modalOptions.controller) {
- ctrlLocals.$scope = modalScope;
- ctrlLocals.$modalInstance = modalInstance;
- angular.forEach(modalOptions.resolve, function (value, key) {
- ctrlLocals[key] = tplAndVars[resolveIter++];
- });
-
- ctrlInstance = $controller(modalOptions.controller, ctrlLocals);
- }
-
- $modalStack.open(modalInstance, {
- scope: modalScope,
- deferred: modalResultDeferred,
- content: tplAndVars[0],
- backdrop: modalOptions.backdrop,
- keyboard: modalOptions.keyboard,
- windowClass: modalOptions.windowClass,
- modalTitle: modalOptions.modalTitle
- });
-
- }, function(reason) {
- modalResultDeferred.reject(reason);
- });
-
- templateAndResolvePromise.then(function () {
- modalOpenedDeferred.resolve(true);
- }, function () {
- modalOpenedDeferred.reject(false);
- });
-
- return modalInstance;
- };
-
- return $modal;
- }]
- };
-
- return $modalProvider;
- })
-
-.directive("simpleModal", ["$modal", function($modal) {
- return {
- restrict: 'EA',
- scope: {
- simpleModal: '@',
- backdrop:'@',
- keyboard:'@',
- modalOk:'&',
- modalCancel:'&',
- windowClass:'@',
- controller:'@',
- modalTitle: '@?'
- },
- link: function(scope, elm) {
- elm.bind('click', function(ev) {
- ev.preventDefault();
- if (angular.isDefined(elm.attr("href")) && elm.attr("href") !== "") {
- scope.simpleModal = elm.attr("href");
- }
-
- scope.backdrop === "false" ? scope.backdropclick = 'static' : scope.backdropclick = true;
- scope.keyboard === "false" ? scope.keyboardev = false : scope.keyboardev = true;
-
- $modal.open({
- templateUrl: scope.simpleModal,
- backdrop:scope.backdropclick,
- keyboard:scope.keyboardev,
- windowClass:scope.windowClass,
- controller: scope.controller,
- modalTitle: scope.modalTitle
- }).result.then(scope.modalOk, scope.modalCancel);
- });
- }
- };
- }])
-
-.directive('tabbedItem', ['$modal', '$log',function ($modal, $log){
- return {
- restrict: 'AE',
- replace: true,
- scope: {
- items: "=items",
- controller: "@",
- templateId:"@",
- modalTitle: '@?'
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/modal/tabbedItem.html',
- controller: ['$scope', '$rootScope', '$attrs', function ($scope) {
- $scope.clickTab = function (index) {
- for (var i = 0; i < $scope.items.length; i++) {
- if (i === index) {
- $scope.items[i].isTabOpen = true;
- $scope.items[i].showData = true;
- }
- else {
- $scope.items[i].isTabOpen = false;
- $scope.items[i].showData = false;
- }
- }
- var modalInstance = $modal.open({
- templateUrl: $scope.templateId,
- controller: $scope.controller,
- windowClass: 'tabbedOverlay_modal',
- modalTitle: $scope.modalTitle,
- resolve: {
- items: function () {
- return $scope.items;
- }
- }
- });
- modalInstance.result.then(function (selectedItem) {
- $scope.selected = selectedItem;
- }, function () {
- $log.info('Modal dismissed at: ' + new Date());
- });
- };
- $scope.isActiveTab = function (index) {
- return $scope.items && $scope.items[index] && $scope.items[index].isTabOpen;
- };
- }]
- };
-}])
-
-.directive('tabbedOverlay', [function () {
- return {
- restrict: 'AE',
- replace: true,
- scope: {
- items: "="
- },
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html',
- controller: ['$scope', function ($scope) {
- $scope.clickTab = function (index) {
- for (var i = 0; i < $scope.items.length; i++) {
- if (i === index) {
- $scope.items[i].isTabOpen = true;
- $scope.items[i].showData = true;
- }
- else {
- $scope.items[i].isTabOpen = false;
- $scope.items[i].showData = false;
- }
- }
- };
- $scope.isActiveTab = function (index) {
- return $scope.items && $scope.items[index] && $scope.items[index].isTabOpen;
- };
- }]
- };
-}]);
-angular.module('att.abs.pagination', ['att.abs.utilities'])
-.directive('attPagination', [ function() {
- return {
- restrict: 'EA',
- scope: {
- totalPages: '=',
- currentPage: '=',
- showInput: '=',
- clickHandler: '=?'
- },
- replace: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/pagination/pagination.html',
- link: function(scope) {
- scope.focusedPage;
- scope.$watch('totalPages', function(value) {
- if(angular.isDefined(value) && value !== null){
- scope.pages = [];
- if (value < 1) {
- scope.totalPages = 1;
- return;
- }
- if (value <= 7) {
- for (var i = 1; i <= value; i++) {
- scope.pages.push(i);
- }
- } else if (value > 7) {
- var midVal = Math.ceil(value / 2);
- scope.pages = [midVal - 1, midVal, midVal + 1];
- }
- currentPageChanged(1);
- }
- });
- scope.$watch('currentPage', function(value) {
- currentPageChanged(value);
- });
- var callbackHandler = function(num) {
- if (angular.isFunction(scope.clickHandler)){
- scope.clickHandler(num);
- }
- };
- function currentPageChanged(value) {
- if (angular.isDefined(value) && value !== null) {
- if (!value || value < 1) {
- value = 1;
- }
- if (value > scope.totalPages) {
- value = scope.totalPages;
- }
- if(scope.currentPage !== value) {
- scope.currentPage = value;
- callbackHandler(scope.currentPage);
- }
- if (scope.totalPages > 7) {
- if (value < scope.pages[0] && value > 3) {
- scope.pages = [value, value + 1, value + 2];
- } else if (value > scope.pages[2] && value < scope.totalPages - 2) {
- scope.pages = [value - 2, value - 1, value];
- } else if (value <= 3) {
- scope.pages = [1, 2, 3];
- } else if (value >= scope.totalPages - 2) {
- scope.pages = [scope.totalPages - 2, scope.totalPages - 1, scope.totalPages];
- }
- }
- }
- }
- scope.next = function(event) {
- event.preventDefault();
- if (scope.currentPage < scope.totalPages) {
- scope.currentPage += 1;
- callbackHandler(scope.currentPage);
- }
- };
- scope.prev = function(event) {
- event.preventDefault();
- if (scope.currentPage > 1) {
- scope.currentPage -= 1;
- callbackHandler(scope.currentPage);
- }
- };
- scope.selectPage = function(value, event) {
- event.preventDefault();
- scope.currentPage = value;
- scope.focusedPage = value;
- callbackHandler(scope.currentPage);
- };
- scope.checkSelectedPage = function(value) {
- if(scope.currentPage === value) {
- return true;
- }
- return false;
- };
- scope.isFocused = function(page) {
- return scope.focusedPage === page;
- };
- }
- };
-}]);
-
-angular.module('att.abs.paneSelector',['att.abs.utilities'])
-.constant('paneGroupConstants',{
- SIDE_WIDTH_DEFAULT: '33%',
- INNER_PANE_DEFAULT: '67%',
- SIDE_PANE_ID: 'sidePane',
- NO_DRILL_DOWN: 'none'
-})
-.factory('animation', function(){
- return TweenLite;
-}).directive('attPaneAccessibility',['keymap','$window',function(keymap,$window) {
- return{
- restrict: 'A',
- require: ['^?sidePane','^?innerPane'],
- link: function (scope, elem,attr,ctrl) {
- var sidepaneCtrl = ctrl[0],innerPaneCtrl = ctrl[1],ieFlag=false;
- scope.ie = (function () {
- var undef,v = 3,div = document.createElement('div'),
- all = div.getElementsByTagName('i');
- while (
- div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i>< ![endif]-->',
- all[0]
- );
- return v > 4 ? v : undef;
- }());
- if(scope.ie === 8){
- ieFlag = true;
- }
- else{
- ieFlag = false;
- }
- elem.bind('keydown',function(ev){
- if (keymap.isAllowedKey(ev.keyCode) || keymap.isControl(ev) || keymap.isFunctionKey(ev)) {
- ev.preventDefault();
- ev.stopPropagation();
- var el;
- switch (ev.keyCode) {
- case keymap.KEY.DOWN:
- el = angular.element(elem[0])[0];
- if(el && el.nextElementSibling){
- el.nextElementSibling.focus();
- }
- /*IE8 fix*/
- if(ieFlag){
- do {
- if (el && el.nextSibling){
- el = el.nextSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'DIV');
- el.focus();
- }
- break;
- case keymap.KEY.UP:
- el = angular.element(elem[0])[0];
- if(el && el.previousElementSibling){
- el.previousElementSibling.focus();
- }
- /*IE8 fix*/
- if(ieFlag){
- do {
- if (el && el.previousSibling){
- el = el.previousSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'DIV');
- el.focus();
- }
- break;
- case keymap.KEY.RIGHT:
- if(angular.isDefined(sidepaneCtrl)){
- el = sidepaneCtrl.getElement()[0];
- }
- if(angular.isDefined(innerPaneCtrl)){
- el = innerPaneCtrl.getElement()[0];
- }
- do {
- if (el && el.nextElementSibling){
- el = el.nextElementSibling;
- }
- else{
- break;
- }
- }while(window.getComputedStyle(el, null).getPropertyValue("display") === 'none');
- /*IE8 fix*/
- if(ieFlag){
- do {
- if (el && el.nextSibling){
- el = el.nextSibling;
- }
- else{
- break;
- }
- }while ((el && el.tagName == 'DIV') && el.currentStyle['display'] == 'none');
- }
- if (el){
- el.querySelector("[att-pane-accessibility]").focus();
- }
- break;
- case keymap.KEY.LEFT:
- if(angular.isDefined(sidepaneCtrl)){
- el = sidepaneCtrl.getElement()[0];
- }
- if(angular.isDefined(innerPaneCtrl)){
- el = innerPaneCtrl.getElement()[0];
- }
- do {
- if (el && el.previousElementSibling){
- el = el.previousElementSibling;
- }
- else{
- break;
- }
- }while (window.getComputedStyle(el, null).getPropertyValue("display") == 'none');
-
- /*IE8 fix*/
- if(ieFlag){
- do {
- if (el && el.previousSibling){
- el = el.previousSibling;
- }
- else{
- break;
- }
- }while((el && el.tagName == 'DIV') && el.currentStyle['display'] == 'none');
- }
- if (el){
- el.querySelector("[att-pane-accessibility]").focus();
- }
- break;
- default:
- break;
- }
- }
- });
- }
- };
-}])
-.directive('sideRow', [function(){
- return {
- restrict: 'A',
- replace:true,
- require: ['^sidePane','^paneGroup'],
- link: function(scope,element,attr,ctrls){
- var sidePaneCtrl = ctrls[0];
- var paneGroupCtrl = ctrls[1];
- if(scope.$first){
- /*
- Reset the sidePaneId array if a new
- set of ngRepeat data appeared
- */
- sidePaneCtrl.sidePaneIds = [];
- }
- var paneId =attr['paneId'];
- var drillDownTo = attr['drillDownTo'];
- sidePaneCtrl.sidePaneRows.push({'paneId':paneId, 'drillDownTo':drillDownTo});
- element.on('click', function(){
- sidePaneCtrl.currentSelectedRowPaneId = paneId;
- paneGroupCtrl.slideOutPane(paneId,true);
- });
- }
- };
-}])
-.controller('SidePaneCtrl',['$scope', '$element','animation', 'paneGroupConstants',
- function($scope,$element,animation, paneGroupConstants){
- this.getElement = function(){
- return $element;
- };
- this.sidePaneTracker = {};
- this.currentWidth = paneGroupConstants.SIDE_WIDTH_DEFAULT;
- this.paneId = paneGroupConstants.SIDE_PANE_ID;
- this.currentSelectedRowPaneId;
- this.drillDownToMapper = {};
- this.sidePaneRows = [];
- this.init = function(){
- var sidePaneRows = this.sidePaneRows;
- if(sidePaneRows){
- for(var index in sidePaneRows){
- if (sidePaneRows.hasOwnProperty(index)) {
- var paneId = sidePaneRows[index].paneId;
- var drillDownTo = sidePaneRows[index].drillDownTo;
- this.drillDownToMapper[paneId] = drillDownTo;
- if(index == 0){
- this.currentSelectedRowPaneId = paneId;
- this.sidePaneTracker[paneId] = [];
- }
- }
- }
- }
- };
- this.getSidePanesList = function(){
- return this.sidePaneTracker[this.currentSelectedRowPaneId];
- };
- this.addToSidePanesList = function(newPaneId){
- if(this.sidePaneTracker[this.currentSelectedRowPaneId] === undefined){
- this.sidePaneTracker[this.currentSelectedRowPaneId] = [];
- }
- else if(newPaneId){
- this.sidePaneTracker[this.currentSelectedRowPaneId].push(newPaneId);
- }
- };
- this.setWidth = function(val){
- if(val){
- this.currentWidth = val;
- }
- animation.set($element,{width:this.currentWidth});
- };
- this.resizeWidth = function(val){
- if(val){
- this.currentWidth = val;
- }
- animation.to($element,.5,{width:val});
- };
-
-}])
-.directive('sidePane', ['paneGroupConstants', function(paneGroupConstants){
- return {
- restrict: 'EA',
- transclude: true,
- replace: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/paneSelector/sidePane.html',
- require: ['^paneGroup', 'sidePane'],
- controller: 'SidePaneCtrl',
- scope:{},
- link: function(scope,element,attr, ctrls){
- var paneGroupCtrl = ctrls[0];
- var sidePaneCtrl = ctrls[1];
- paneGroupCtrl.addPaneCtrl(paneGroupConstants.SIDE_PANE_ID, sidePaneCtrl);
- }
- };
-}])
-.directive('drillDownRow', ['$parse', 'paneGroupConstants',function($parse,paneGroupConstants){
- return {
- restrict: 'A',
- replace:true,
- require: ['^innerPane','^paneGroup'],
- link: function(scope,element,attr,ctrls){
- var innerPaneCtrl = ctrls[0];
- var paneGroupCtrl = ctrls[1];
- element.on('click', function(){
- var drillDownTo = innerPaneCtrl.drillDownTo;
- if(innerPaneCtrl.drillDownTo !== paneGroupConstants.NO_DRILL_DOWN){
- paneGroupCtrl.slideOutPane(drillDownTo);
- }
- element[0].focus();
- });
- }
- };
-}])
-.controller('InnerPaneCtrl', ['$scope', '$element','animation', 'paneGroupConstants',
- function($scope,$element,animation,paneGroupConstants){
- this.getElement = function(){
- return $element;
- };
- this.paneId = $scope.paneId;
- this.drillDownTo;
- this.currentWidth = paneGroupConstants.INNER_PANE_DEFAULT;
- this.setWidth = function(val){
- if(val){
- this.currentWidth = val;
- }
- animation.set($element,{width:this.currentWidth});
- };
- this.resizeWidth = function(val,callback){
- animation.to($element,.25,{width:val,onComplete: callback});
- };
- this.displayNone = function(){
- animation.set($element, {display:'none'});
- };
- this.displayBlock = function(){
- animation.set($element,{display:'block'});
- if(this){
- this.hideRightBorder();
- }
- };
- this.floatLeft = function(){
- animation.set($element,{float:'left'});
- };
- this.hideLeftBorder = function(){
- animation.set($element, {borderLeftWidth: '0px'});
- };
- this.showLeftBorder = function(){
- animation.set($element,{borderLeftWidth: '1px'});
- };
- this.hideRightBorder = function(){
- animation.set($element,{borderRightWidth: '0px'});
- };
- this.showRightBorder = function(){
- animation.set($element, {borderRightWidth: '1px'});
- };
- this.slideFromRight = function(){
- animation.set($element, {float:'right'});
- animation.set($element, {width: this.currentWidth});
- };
- this.startOpen = function(){
- return $scope.startOpen;
- };
-}])
-.directive('innerPane', function(){
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/paneSelector/innerPane.html',
- require: ['^paneGroup', 'innerPane'],
- controller: 'InnerPaneCtrl',
- scope:{
- paneId:'@'
- },
- link: function(scope,element,attr,ctrls){
- if(attr.startOpen === ""){
- scope.startOpen = true;
- }
- var paneGroupCtrl = ctrls[0];
- var innerPaneCtrl = ctrls[1];
- paneGroupCtrl.addPaneCtrl(scope.paneId,innerPaneCtrl);
- }
- };
-})
-.controller('PaneGroupCtrl', ['$scope', '$element', 'paneGroupConstants',function($scope,$element,paneGroupConstants){
- this.panes = {};
- this.accountLevelPaneModel = [];
- this.title = $scope.title;
- this.init = function(){
- var sidePane = this.panes[paneGroupConstants.SIDE_PANE_ID];
- if(sidePane){
- sidePane.init();
-
- //Show the other panes that may be set to startOpen
- //numOpen starts at 1 because of the side pane
- var numOpen = 1;
- var key;
- for(key in this.panes){
- if(this.panes[key].startOpen && this.panes[key].startOpen()){
- numOpen++;
- }
- }
- var width;
- if(numOpen >= 3){
- width = ((100/numOpen)) + '%';
- }
- if(this.panes[sidePane.currentSelectedRowPaneId])
- {
- if(width){
- sidePane.setWidth(width);
- this.panes[sidePane.currentSelectedRowPaneId].setWidth(width);
- }
- else{
- sidePane.setWidth();
- this.panes[sidePane.currentSelectedRowPaneId].setWidth();
- }
- this.panes[sidePane.currentSelectedRowPaneId].displayBlock();
- for(key in this.panes){
- if(key !== paneGroupConstants.SIDE_PANE_ID && key !== sidePane.currentSelectedRowPaneId){
- this.panes[key].displayNone();
- }
- this.panes[key].drillDownTo = sidePane.drillDownToMapper[key];
- }
- }
- openOtherPanesOnStart(sidePane, this.panes);
- }
-
- function openOtherPanesOnStart(sidePane, panes){
- //Build an array of the panes that need to be out
- var otherPanesStartOpened = [];
- var index;
- for(index in sidePane.sidePaneRows){
- if (sidePane.sidePaneRows.hasOwnProperty(index)) {
- var pane = sidePane.sidePaneRows[index];
-
- //Skip the first pane row since we handled it in the begining
- if(index > 0 && panes[pane.paneId].startOpen && panes[pane.paneId].startOpen()){
- otherPanesStartOpened.push(pane);
- //Remember the panes that are opened for the first pane row Index
- sidePane.addToSidePanesList(pane.paneId);
- }
- }
- }
-
- if(width){
- for(index in otherPanesStartOpened){
- if (otherPanesStartOpened.hasOwnProperty(index)) {
- var paneId = otherPanesStartOpened[index].paneId;
- var paneCtrl = panes[paneId];
- if(paneCtrl && paneCtrl.setWidth && paneCtrl.displayBlock){
- paneCtrl.setWidth(width);
- paneCtrl.displayBlock();
- }
- }
- }
- }
-
- }
- };
-
- /*
- Resets all the panels to their original positions at the end of a sidebar click
- By setting the sideBar to its default width
- Setting all panes to float left and displaynone
- Setting the pane that was clicked to default width and slide right
- */
-
- this.resetPanes = function(){
- for(var key in this.panes){
- if(this.panes.hasOwnProperty(key)){
- var pane = this.panes[key];
- if(pane && (pane.paneId !== paneGroupConstants.SIDE_PANE_ID)){
- pane.floatLeft();
- pane.displayNone();
- }
- }
- }
-
- if(this.panes[paneGroupConstants.SIDE_PANE_ID]){
- this.panes[paneGroupConstants.SIDE_PANE_ID].setWidth(paneGroupConstants.SIDE_WIDTH_DEFAULT);
- }
- };
-
- this.addPaneCtrl = function(paneId,paneCtrl){
- this.panes[paneId] = paneCtrl;
- };
-
- this._slideOutPane = function(paneId,isFromSidePane){
- this.resetPanes();
- //Check current side pane stack to see how many panes are already open for that side pane choice
- //then add the new pane that needs to be there
- var panesList;
- if(isFromSidePane){
-
- //Check if the side pane id has already been clicked
- if(this.panes[paneGroupConstants.SIDE_PANE_ID]){
- panesList = this.panes[paneGroupConstants.SIDE_PANE_ID].getSidePanesList();
- }
- if(!panesList){
- if(this.panes && this.panes[paneGroupConstants.SIDE_PANE_ID] && this.panes[paneId]){
- this.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId = paneId;
- this.panes[paneGroupConstants.SIDE_PANE_ID].addToSidePanesList();
-
- this.panes[paneId].slideFromRight();
- this.panes[paneId].displayBlock();
-
- this.panes[paneId].setWidth(paneGroupConstants.INNER_PANE_DEFAULT);
- }
- }
- else if(this.panes && this.panes[paneGroupConstants.SIDE_PANE_ID]){
- //Restore the panes based on the panelist
- if(panesList.length === 0 && this.panes[paneId]){
- //Only one pane is out
- this.panes[paneGroupConstants.SIDE_PANE_ID].setWidth(paneGroupConstants.SIDE_WIDTH_DEFAULT);
- this.panes[paneId].displayBlock();
- this.panes[paneId].setWidth(paneGroupConstants.INNER_PANE_DEFAULT);
- }
- else{
- //Multiple panes out
- var numPanes = panesList.length + 2;
- var width = ((100/numPanes)) + '%';
- this.panes[paneGroupConstants.SIDE_PANE_ID].setWidth(width);
-
- //Set the sidePanes pane
- //set the panes children list
- if(this.panes[this.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId]){
- this.panes[this.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId].displayBlock();
- this.panes[this.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId].setWidth(width);
- }
- for(var i in panesList){
- if(this.panes[panesList[i]]){
- this.panes[panesList[i]].displayBlock();
- this.panes[panesList[i]].setWidth(width);
- }
- }
- }
- }
- }
- else{
-
- //Have to check the paneId that was given and where it is drilling down to
- var isPaneInStack = false;
- var stackPaneList;
- if(this.panes[paneGroupConstants.SIDE_PANE_ID]){
- stackPaneList = this.panes[paneGroupConstants.SIDE_PANE_ID].getSidePanesList();
- }
- for(var j in stackPaneList){
- if(stackPaneList.hasOwnProperty(j)){
- var pId = stackPaneList[j];
- if(pId === paneId){
- isPaneInStack = true;
- break;
- }
- }
- }
- if(!isPaneInStack && this.panes[paneGroupConstants.SIDE_PANE_ID]){
- this.panes[paneGroupConstants.SIDE_PANE_ID].addToSidePanesList(paneId);
- }
- var sidePanesListLength;
- if(this.panes[paneGroupConstants.SIDE_PANE_ID]){
- sidePanesListLength = this.panes[paneGroupConstants.SIDE_PANE_ID].getSidePanesList().length;
- }
- var numberPanes = sidePanesListLength + 2;
- var widthToSet = ((100/numberPanes)) + '%';
- if(this.panes[paneGroupConstants.SIDE_PANE_ID]){
- this.panes[paneGroupConstants.SIDE_PANE_ID].setWidth(widthToSet);
- }
- var slideInPaneId;
-
- if(this.panes[paneGroupConstants.SIDE_PANE_ID]){
- slideInPaneId = this.panes[paneGroupConstants.SIDE_PANE_ID].getSidePanesList()[sidePanesListLength - 1];
- }
-
- var that = this;
-
- if(that.panes[paneGroupConstants.SIDE_PANE_ID]){
- panesList = that.panes[paneGroupConstants.SIDE_PANE_ID].getSidePanesList();
- }
-
- for(var p in panesList){
- if(panesList.hasOwnProperty(p)){
- var paneListPaneId = panesList[p];
- var pane = this.panes[paneListPaneId];
- if(paneListPaneId !== slideInPaneId && pane){
- pane.setWidth(widthToSet);
- pane.displayBlock();
- pane.floatLeft();
- }
- }
- }
-
- if(this.panes[this.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId]){
- this.panes[this.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId].displayBlock();
- this.panes[this.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId].showRightBorder();
-
- this.panes[this.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId].resizeWidth(widthToSet,function(){
-
- if(that.panes[slideInPaneId] && that.panes[that.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId]){
- that.panes[that.panes[paneGroupConstants.SIDE_PANE_ID].currentSelectedRowPaneId].hideRightBorder();
- that.panes[slideInPaneId].setWidth(widthToSet);
- that.panes[slideInPaneId].slideFromRight();
- that.panes[slideInPaneId].displayBlock();
- that.panes[slideInPaneId].floatLeft();
- }
-
- });
- }
- }
- };
-
- this.slideOutPane = function(paneId,isFromSidePane){
- this._slideOutPane(paneId,isFromSidePane);
- };
-}])
-.directive('paneGroup', ['$timeout',function($timeout){
- return {
- restrict: 'EA',
- transclude: true,
- replace: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html',
- scope:{
- },
- controller: 'PaneGroupCtrl',
- link: function(scope,element,attr,ctrl){
- $timeout(initialize,100);
- function initialize(){
- ctrl.init();
- }
- }
- };
-}]);
-angular.module('att.abs.tooltip', ['att.abs.position', 'att.abs.utilities', 'ngSanitize'])
- // The default options tooltip and popover.
- .constant('tooltipDefaultOptions', {
- placement: 'above',
- animation: false,
- popupDelay: 0,
- stylett: 'dark',
- appendToBody: true
- })
-
- /**
- * The $tooltip service creates tooltip- and popover-like directives as well as
- * houses global options for them.
- */
- .provider('$tooltip', ['tooltipDefaultOptions', function(tooltipDefaultOptions) {
-
- // Default hide triggers for each show trigger
- var triggerMap = {
- 'mouseenter': 'mouseleave',
- 'click': 'click',
- 'focus': 'blur',
- 'mouseover':'mouseout'
- };
-
- // The options specified to the provider globally.
- var globalOptions = {};
-
- this.options = function(value) {
- angular.extend(globalOptions, value);
- };
-
- /**
- * This allows you to extend the set of trigger mappings available. E.g.:
- *
- * $tooltipProvider.setTriggers( 'openTrigger': 'closeTrigger' );
- */
- this.setTriggers = function(triggers) {
- angular.extend(triggerMap, triggers);
- };
-
- /**
- * This is a helper function for translating camel-case to snake-case.
- */
- function snakeCase(name) {
- var regexp = /[A-Z]/g;
- var separator = '-';
- return name.replace(regexp, function(letter, pos) {
- return (pos ? separator : '') + letter.toLowerCase();
- });
- }
-
- /**
- * Returns the actual instance of the $tooltip service.
- */
- this.$get = ['$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', '$attElementDetach', function($window, $compile, $timeout, $parse, $document, $position, $interpolate, $attElementDetach) {
- return function (type, prefix, defaultTriggerShow) {
- var options = angular.extend({}, tooltipDefaultOptions, globalOptions);
- /**
- * Returns an object of show and hide triggers.
- *
- * If a trigger is supplied,
- * it is used to show the tooltip; otherwise, it will use the `trigger`
- * option passed to the `$tooltipProvider.options` method; else it will
- * default to the trigger supplied to this directive factory.
- *
- * The hide trigger is based on the show trigger. If the `trigger` option
- * was passed to the `$tooltipProvider.options` method, it will use the
- * mapped trigger from `triggerMap` or the passed trigger if the map is
- * undefined; otherwise, it uses the `triggerMap` value of the show
- * trigger; else it will just use the show trigger.
- */
- function getTriggers(trigger) {
- var show = trigger || options.trigger || defaultTriggerShow;
- var hide = triggerMap[show] || show;
- return {
- show: show,
- hide: hide
- };
- }
-
- var directiveName = snakeCase(type);
-
- var startSym = $interpolate.startSymbol();
- var endSym = $interpolate.endSymbol();
-
- return {
- restrict: 'EA',
- scope: true,
- link: function (scope, element, attrs) {
- /* Allows a developer to force element to be non-tabable */
- if (!element.attr('tabindex')) {
- element.attr('tabindex', '0');
- }
-
- var isElementHovered = false;
- element.bind('mouseenter', function(){
- isElementHovered = true;
- element.removeAttr('title');
- });
- element.bind('mouseleave', function(){
- isElementHovered = false;
- setTooltipAriaLabel();
- });
-
- /* We store our attributes on our scope so any user of $tooltip service can access attributes */
- scope.parentAttrs = attrs;
- var template =
- '<div ' + directiveName + '-popup ' +
- 'title="' + startSym + 'tt_title' + endSym + '" ' +
- 'content="' + startSym + 'tt_content' + endSym + '" ' +
- 'placement="' + startSym + 'tt_placement' + endSym + '" ' +
- 'animation="tt_animation()" ' +
- 'is-open="tt_isOpen" ' +
- 'stylett="' + startSym + 'tt_style' + endSym + '" ' +
- '>' +
- '</div>';
-
- var tooltip = $compile(template)(scope);
- var transitionTimeout;
- var popupTimeout;
- var $body;
- var appendToBody = angular.isDefined(options.appendToBody) ? options.appendToBody : false;
- var triggers = getTriggers(undefined);
- var hasRegisteredTriggers = false;
- var hasEnableExp = angular.isDefined(attrs[prefix + 'Enable']);
- var tooltipOffset = 0;
- var tooltipAriaLabelDefined = false;
-
- // By default, the tooltip is not open.
- // add ability to start tooltip opened
- scope.tt_isOpen = false;
-
- //Adding a scope watch, to remove the created popup from DOM, incase it is updated outside the provider code.
- scope.$watch('tt_isOpen', function(newVal, oldVal){
- if(newVal !== oldVal && !newVal){
- $attElementDetach(tooltip[0]);
- }
- });
-
- function toggleTooltipBind() {
- if (!scope.tt_isOpen) {
- showTooltipBind();
- } else {
- hideTooltipBind();
- }
- }
-
- // Show the tooltip with delay if specified, otherwise show it immediately
- function showTooltipBind() {
- if (hasEnableExp && !scope.$eval(attrs[prefix + 'Enable'])) {
- return;
- }
- if (scope.tt_popupDelay) {
- popupTimeout = $timeout(show, scope.tt_popupDelay);
- } else {
- scope.$apply(show);
- }
- }
-
- function hideTooltipBind() {
- scope.$apply(function() {
- hide();
- });
- }
-
- // Show the tooltip popup element.
- function show() {
- var position,
- ttWidth,
- ttHeight,
- ttPosition;
-
- // Don't show empty tooltips.
- if (!scope.tt_content) {
- return;
- }
-
- // If there is a pending remove transition, we must cancel it, lest the
- // tooltip be mysteriously removed.
- if (transitionTimeout) {
- $timeout.cancel(transitionTimeout);
- }
-
- // Set the initial positioning.
- tooltip.css({top: 0, left: 0, display: 'block', 'z-index': 9999});
-
- // Now we add it to the DOM because need some info about it. But it's not
- // visible yet anyway.
- if (appendToBody) {
- $body = $body || $document.find('body');
- $body.append(tooltip);
- } else {
- element.after(tooltip);
- }
-
- // Get the position of the directive element.
- position = appendToBody ? $position.offset(element) : $position.position(element);
-
- // Get the height and width of the tooltip so we can center it.
- ttWidth = tooltip.prop('offsetWidth');
- ttHeight = tooltip.prop('offsetHeight');
-
- // Calculate the tooltip's top and left coordinates to center it with
- // this directive.
- var ttArrowOffset = 10;
- switch (scope.tt_placement) {
- case 'right':
- if(appendToBody){
- ttPosition = {
- top: position.top + position.height / 2 - ttHeight / 2,
- left: (position.left + position.width) + tooltipOffset
- };
- }else{
- ttPosition = {
- top: position.top + position.height / 2 - ttHeight / 2,
- left: (position.left + position.width + ttArrowOffset) + tooltipOffset
- };
- }
- break;
- case 'below':
- if(appendToBody){
- ttPosition = {
- top: (position.top + position.height) + tooltipOffset,
- left: position.left + position.width / 2 - ttWidth / 2
- };
- }else{
- ttPosition = {
- top: (position.top + position.height + ttArrowOffset) + tooltipOffset,
- left: position.left + position.width / 2 - ttWidth / 2
- };
- }
- break;
- case 'left':
- if(appendToBody){
- ttPosition = {
- top: position.top + position.height / 2 - ttHeight / 2,
- left: (position.left - ttWidth) - tooltipOffset
- };
- }else{
- ttPosition = {
- top: position.top + position.height / 2 - ttHeight / 2,
- left: (position.left - ttWidth - ttArrowOffset) - tooltipOffset
- };
- }
- break;
- default:
- if(appendToBody){
- ttPosition = {
- top: (position.top - ttHeight) - tooltipOffset,
- left: position.left + position.width / 2 - ttWidth / 2
- };
- }else{
- ttPosition = {
- top: (position.top - ttHeight - ttArrowOffset) - tooltipOffset,
- left: position.left + position.width / 2 - ttWidth / 2
- };
- }
- break;
- }
-
- ttPosition.top += 'px';
- ttPosition.left += 'px';
-
- // Now set the calculated positioning.
- tooltip.css(ttPosition);
-
- // And show the tooltip.
- scope.tt_isOpen = true;
- }
-
- // Hide the tooltip popup element.
- function hide() {
- // First things first: we don't show it anymore.
- scope.tt_isOpen = false;
-
- //if tooltip is going to be shown after delay, we must cancel this
- $timeout.cancel(popupTimeout);
-
- // And now we remove it from the DOM. However, if we have animation, we
- // need to wait for it to expire beforehand.
- // This is a placeholder for a port of the transitions library.
- if (angular.isDefined(scope.tt_animation) && scope.tt_animation()) {
- transitionTimeout = $timeout(function() {
- $attElementDetach(tooltip[0]);
- }, 500);
- } else {
- $attElementDetach(tooltip[0]);
- }
- }
-
- function setTooltipAriaLabel() {
- element.removeAttr('title');
- if(!isElementHovered){
- if (tooltipAriaLabelDefined) {
- element.attr('title', scope.tooltipAriaLabel);
- } else {
- element.attr('title', scope.tt_content);
- }
- }
- }
-
- /**
- * Observe the relevant attributes.
- */
- attrs.$observe(type, function(val) {
- if (val) {
- scope.tt_content = val;
- setTooltipAriaLabel();
- } else {
- if (scope.tt_isOpen) {
- hide();
- }
- }
- });
-
- attrs.$observe(prefix + 'Title', function(val) {
- scope.tt_title = val;
- });
-
- attrs.$observe(prefix + 'Placement', function(val) {
- scope.tt_placement = angular.isDefined(val) ? val : options.placement;
- });
-
- attrs.$observe(prefix + 'Style', function(val) {
- scope.tt_style = angular.isDefined(val) ? val : options.stylett;
- });
-
- attrs.$observe(prefix + 'Animation', function(val) {
- scope.tt_animation = angular.isDefined(val) ? $parse(val) : function() {
- return options.animation;
- };
- });
-
- attrs.$observe(prefix + 'PopupDelay', function(val) {
- var delay = parseInt(val, 10);
- scope.tt_popupDelay = !isNaN(delay) ? delay : options.popupDelay;
- });
-
- attrs.$observe(prefix + 'Trigger', function(val) {
-
- if (hasRegisteredTriggers) {
- element.unbind(triggers.show, showTooltipBind);
- element.unbind(triggers.hide, hideTooltipBind);
- }
-
- triggers = getTriggers(val);
-
- /* This fixes issue in which a click on input field with trigger as focus
- causes focus to fire following click thus making tooltip flash. */
- if (triggers.show === 'focus') {
- element.bind('focus', showTooltipBind);
- element.bind('blur', hideTooltipBind);
- element.bind('click', function(e) {
- e.stopPropagation();
- });
- } else if (triggers.show === triggers.hide) {
- element.bind(triggers.show, toggleTooltipBind);
- } else {
- element.bind(triggers.show, showTooltipBind);
- element.bind(triggers.hide, hideTooltipBind);
- }
-
- hasRegisteredTriggers = true;
- });
-
- attrs.$observe(prefix + 'AppendToBody', function (val) {
- appendToBody = angular.isDefined(val) ? $parse(val)(scope) : appendToBody;
- });
-
- attrs.$observe(prefix + 'Offset', function (val) {
- tooltipOffset = angular.isDefined(val) ? parseInt(val, 10) : 0;
- });
-
- attrs.$observe(prefix + 'AriaLabel', function (val) {
- if (angular.isDefined(val)) {
- scope.tooltipAriaLabel = val;
- tooltipAriaLabelDefined = true;
- } else {
- tooltipAriaLabelDefined = false;
- }
- setTooltipAriaLabel();
- });
-
- // if a tooltip is attached to <body> we need to remove it on
- // location change as its parent scope will probably not be destroyed
- // by the change.
- if (appendToBody) {
- scope.$on('$locationChangeSuccess', function() {
- if (scope.tt_isOpen) {
- hide();
- }
- });
- }
-
- // Make sure tooltip is destroyed and removed.
- scope.$on('$destroy', function() {
- if (scope.tt_isOpen) {
- hide();
- } else {
- tooltip.remove();
- }
- });
- }
- };
- };
- }];
- }])
-
- .directive('tooltipPopup', ['$document', '$documentBind', function($document, $documentBind) {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- scope: {content: '@', placement: '@', animation: '&', isOpen: '=', stylett: '@'},
- templateUrl: 'app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html',
- link: function(scope, elem) {
- scope.$watch("isOpen", function() {
- scope.isOpen;
- });
- elem.bind('click', function (e) {
- e.stopPropagation();
- });
- var outsideClick = function() {
- scope.$apply(function() {
- scope.isOpen = false;
- });
- };
-
- $documentBind.event('click', 'isOpen', outsideClick, scope, true, 10);
- }
- };
- }])
-
- .directive('tooltip', ['$tooltip', function($tooltip) {
- return $tooltip('tooltip', 'tooltip', 'mouseenter');
- }])
-
- .directive('tooltipCondition', [ '$timeout',function($timeout) {
- return {
- restrict: 'EA',
- replace: true,
- scope:{
- tooltipCondition:"@?"
- },
- template:'<p><span tooltip=\"{{tooltipCondition}}\" ng-if=\"showpop\">{{tooltipCondition}}</span><span id=\"innerElement\" ng-hide=\"showpop\">{{tooltipCondition}}</span></p>',
- link: function(scope, elem, attr){
- scope.showpop=false;
- if(attr.height==='true'){
- $timeout(function () {
- var maxHeight=(elem[0].offsetHeight);
- var elemHeight=elem.children(0)[0].offsetHeight;
- if(elemHeight > maxHeight){
- scope.showpop=true;
- }
- });
- }
- else if(scope.tooltipCondition.length>=25){
- scope.showpop=true;
- }
- }
- };
- }]);
-angular.module('att.abs.popOvers', ['att.abs.tooltip', 'att.abs.utilities', 'ngSanitize'])
- .directive('popover', ['$tooltip', function($tooltip) {
- return $tooltip('popover', 'popover', 'click');
- }])
- .directive('popoverPopup', ['$document', '$documentBind', '$timeout', 'events', 'DOMHelper', function($document, $documentBind, $timeout, events, DOMHelper) {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/popOvers/popOvers.html',
- scope: {content: '@', placement: '@', animation: '&', isOpen: '=', stylett: '@'},
- link: function(scope, elem, attr, ctrl) {
-
- scope.closeable = false;
- try {
- scope.closeable = scope.$parent.parentAttrs['closeable'] === '' ? true : false;
- } catch (e) {}
-
- /* Before opening modal, find the focused element */
- var launchingElement = undefined,
- firstTabableElement = undefined;
-
- var outsideClick = function(evt) {
- scope.$apply(function() {
- scope.isOpen = false;
- });
- };
- var escKeydown = function(evt) {
- if (evt.which === 27 || evt.keyCode === 27) {
- console.log('ESC was pressed!');
- scope.$apply(function() {
- scope.isOpen = false;
- });
- }
- };
-
- $timeout(function() {
- firstTabableElement = DOMHelper.firstTabableElement(elem);
- }, 10, false);
-
- scope.$watch('isOpen', function(value) {
- if (scope.isOpen) {
- launchingElement = document.activeElement;
- /* Focus on first tabbable element */
- if (angular.isDefined(firstTabableElement)) {
- try {
- firstTabableElement.focus();
- } catch(e) {}
- }
- } else {
- if (angular.isDefined(launchingElement)) {
- try {
- launchingElement.focus();
- } catch (e) {} /* IE8 will throw exception */
- }
- }
- });
-
- scope.$watch("stylett", function(value) {
- scope.popOverStyle = value;
- });
-
- scope.$watch("placement", function(value) {
- scope.popOverPlacement = value;
- });
-
- scope.closeMe = function(){
- scope.isOpen = false;
- };
-
- elem.bind('click', function (e) {
- events.stopPropagation(e);
- });
-
- $documentBind.event('click', 'isOpen', outsideClick, scope, true, 10);
- $documentBind.event('keydown', 'isOpen', escKeydown, scope, true, 10);
- }
- };
- }]);
-
-angular.module('att.abs.profileCard', [])
- .constant('profileStatus',{
- status:{
- ACTIVE:{status:"Active",color:"green"},
- DEACTIVATED:{status:"Deactivated",color:"red"},
- LOCKED:{status:"Locked",color:"red"},
- IDLE:{status:"Idle",color:"yellow"},
- PENDING:{status:"Pending",color:"blue"}
- },
- role:"COMPANY ADMINISTRATOR"
- })
- .directive('profileCard',['$http','$q','profileStatus', function($http,$q,profileStatus) {
- return {
- restrict: 'EA',
- replace:'true',
- templateUrl:function(element, attrs){
- if(!attrs.addUser){
- return 'app/scripts/ng_js_att_tpls/profileCard/profileCard.html';
- }
- else{
- return 'app/scripts/ng_js_att_tpls/profileCard/addUser.html';
- }
- },
- scope:{
- profile:'='
- },
- link: function(scope, elem, attr){
- scope.image=true;
- function isImage(src) {
- var deferred = $q.defer();
- var image = new Image();
- image.onerror = function() {
- deferred.reject(false);
- };
- image.onload = function() {
- deferred.resolve(true);
- };
- if(src!==undefined && src.length>0 ){
- image.src = src;
- }else{
- deferred.reject(false);
- }
- return deferred.promise;
- }
- if(!attr.addUser){
- scope.image=false;
- isImage(scope.profile.img).then(function(img) {
- scope.image=img;
- });
- var splitName=(scope.profile.name).split(' ');
- scope.initials='';
- for(var i=0;i<splitName.length;i++){
- scope.initials += splitName[i][0];
- }
- if(scope.profile.role.toUpperCase()===profileStatus.role){
- scope.badge=true;
- }
- var profileState=profileStatus.status[scope.profile.state.toUpperCase()];
- if(profileState) {
- scope.profile.state=profileStatus.status[scope.profile.state.toUpperCase()].status;
- scope.colorIcon=profileStatus.status[scope.profile.state.toUpperCase()].color;
- if(scope.profile.state.toUpperCase()===profileStatus.status.PENDING.status.toUpperCase()||scope.profile.state.toUpperCase()===profileStatus.status.LOCKED.status.toUpperCase()){
- scope.profile.lastLogin=scope.profile.state;
- }
- }
- var today=new Date().getTime();
- var lastlogin=new Date(scope.profile.lastLogin).getTime();
- var diff=(today-lastlogin)/(1000*60*60*24);
- if(diff<=1){
- scope.profile.lastLogin="Today";
- }
- else if(diff<=2){
- scope.profile.lastLogin="Yesterday";
- }
- }
- }
- };
- }]);
-angular.module('att.abs.progressBars', [])
-
-.directive('attProgressBar', [function(){
- return {
- restrict: 'A',
- replace: true,
- templateUrl : 'app/scripts/ng_js_att_tpls/progressBars/progressBars.html'
- };
-}]);
-angular.module('att.abs.radio', [])
- .constant('attRadioConfig', {
- activeClass : "att-radio--on",
- disabledClass : "att-radio--disabled"
- })
-.directive('attRadio', ['$compile','attRadioConfig', function ($compile, attRadioConfig) {
- return {
- scope: {},
- restrict: 'A',
- require: 'ngModel',
- link: function (scope, element, attr, ctrl) {
- var ngCtrl = ctrl;
- scope.radioVal='';
- var parentDiv = angular.element('<div att-accessibility-click="13,32" ng-click="updateModel($event)" class="att-radio"></div>');
- element.attr("value",attr.attRadio);
- element.removeAttr("att-radio");
- element.removeAttr("title");
- element.attr("ng-model","radioVal");
- parentDiv.append(element.prop('outerHTML'));
- parentDiv.append('<div class="att-radio__indicator"></div>');
- parentDiv.attr("title", attr.title);
-
- var elm = parentDiv.prop('outerHTML');
- elm = $compile(elm)(scope);
- element = element.replaceWith(elm);
- var radioElm = elm.find("input");
-
- radioElm.on('focus', function() {
- elm.css("outline","thin dotted #333");
- elm.css("outline","-webkit-focus-ring-color auto 5px");
- });
- radioElm.on('blur', function() {
- elm.css("outline","none");
- });
-
- ngCtrl.$render = function () {
- scope.radioVal = ngCtrl.$modelValue;
- var selected = angular.equals(ngCtrl.$modelValue, attr.attRadio);
- elm.toggleClass(attRadioConfig.activeClass, selected);
- };
-
- scope.updateModel = function () {
- radioElm[0].focus();
- var isActive = elm.hasClass(attRadioConfig.activeClass);
-
- if (!isActive && !scope.disabled) {
- ngCtrl.$setViewValue(isActive ? null : attr.attRadio);
- ngCtrl.$render();
- }
- };
-
- attr.$observe('disabled', function (val) {
- scope.disabled = (val || val === "disabled" || val === "true");
- if (scope.disabled){
- elm.addClass(attRadioConfig.disabledClass);
- elm.attr("tabindex", "-1");
- }
- });
- }
- };
-}]);
-angular.module('att.abs.scrollbar', ['att.abs.position'])
-
-.constant('attScrollbarConstant', {
- defaults: {
- // Vertical or horizontal scrollbar? ( x || y ).
- axis: 'y',
- // Whether navigation pane is required of not.
- navigation: false,
- // Enable or disable the mousewheel.
- wheel: true,
- // How many pixels must the mouswheel scroll at a time.
- wheelSpeed: 40,
- // Lock default scrolling window when there is no more content.
- wheelLock: true,
- //// Enable invert style scrolling
- scrollInvert: false,
- // Set the size of the scrollbar to auto or a fixed number.
- trackSize: false,
- // Set the size of the thumb to auto or a fixed number.
- thumbSize: false,
- // Set to false to hide the scrollbar if not being used
- alwaysVisible: true
- }
-})
-
-.directive('attScrollbar', ['$window', '$timeout', '$parse', '$animate', 'attScrollbarConstant', '$position', function ($window, $timeout, $parse, $animate, attScrollbarConstant, $position) {
- return {
- restrict: 'A',
- scope: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html',
- controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
- var defaults = {
- axis: $attrs.attScrollbar || attScrollbarConstant.defaults.axis,
- navigation: $attrs.navigation || attScrollbarConstant.defaults.navigation,
- wheel: attScrollbarConstant.defaults.wheel,
- wheelSpeed: attScrollbarConstant.defaults.wheelSpeed,
- wheelLock: attScrollbarConstant.defaults.wheelLock,
- scrollInvert: attScrollbarConstant.defaults.scrollInvert,
- trackSize: attScrollbarConstant.defaults.trackSize,
- thumbSize: attScrollbarConstant.defaults.thumbSize,
- alwaysVisible: attScrollbarConstant.defaults.alwaysVisible
- };
- var options = $attrs.scrollbar;
- if (options) {
- options = $parse(options)($scope);
- } else {
- options = {};
- }
- this.options = angular.extend({}, defaults, options);
- this._defaults = defaults;
-
- var self = this,
- $body = angular.element(document.querySelectorAll('body')[0]),
- $document = angular.element(document),
- $viewport = angular.element($element[0].querySelectorAll('.scroll-viewport')[0]),
- $overview = angular.element($element[0].querySelectorAll('.scroll-overview')[0]),
- $scrollbar = angular.element($element[0].querySelectorAll('.scroll-bar')[0]),
- $thumb = angular.element($element[0].querySelectorAll('.scroll-thumb')[0]),
- mousePosition = 0,
- isHorizontal = this.options.axis === 'x',
- hasTouchEvents = false,
- // Modern browsers support "wheel"
- wheelEvent = ("onwheel" in document ? "wheel" :
- // Webkit and IE support at least "mousewheel"
- document.onmousewheel !== undefined ? "mousewheel" :
- // let's assume that remaining browsers are older Firefox
- "DOMMouseScroll"),
- sizeLabel = isHorizontal ? 'width' : 'height',
- sizeLabelCap = sizeLabel.charAt(0).toUpperCase() + sizeLabel.slice(1).toLowerCase(),
- posiLabel = isHorizontal ? 'left' : 'top',
- // moveEvent = document.createEvent('HTMLEvents'),
- restoreVisibilityAfterWheel,
- thumbscrolltouch = false,
- documnetscrolltouch = false;
- if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) {
- hasTouchEvents = true;
- }
-
- //moveEvent.initEvent('move', true, true);
- this.contentPosition = 0;
- this.viewportSize = 0;
- this.contentSize = 0;
- this.contentRatio = 0;
- this.trackSize = 0;
- this.trackRatio = 0;
- this.thumbSize = 0;
- this.thumbPosition = 0;
-
- this.initialize = function () {
- if (!this.options.alwaysVisible) {
- $scrollbar.css('opacity', 0);
- }
- self.update();
- setEvents();
- return self;
- };
-
- this.setSizeData = function () {
- this.viewportSize = $viewport.prop('offset' + sizeLabelCap) || 1;
- this.contentSize = $overview.prop('scroll' + sizeLabelCap) || 1;
- this.contentRatio = this.viewportSize / this.contentSize;
- this.trackSize = this.options.trackSize || this.viewportSize;
- this.thumbSize = Math.min(this.trackSize, Math.max(0, (this.options.thumbSize || (this.trackSize * this.contentRatio))));
- this.trackRatio = this.options.thumbSize ? (this.contentSize - this.viewportSize) / (this.trackSize - this.thumbSize) : (this.contentSize / this.trackSize);
- };
-
- this.update = function (scrollTo) {
- self.setSizeData();
- mousePosition = $scrollbar.prop('offsetTop');
-
- $scrollbar.toggleClass('disable', this.contentRatio >= 1 || isNaN(this.contentRatio));
-
- if (!this.options.alwaysVisible && this.contentRatio < 1 && this.viewportSize > 0) {
- //flash the scrollbar when update happens
- $animate.addClass($scrollbar, 'visible').then(function () {
- $animate.removeClass($scrollbar, 'visible');
- $scope.$digest();
- });
- }
-
- if (scrollTo !== null) {
- if (scrollTo === 'bottom') {
- this.contentPosition = this.contentSize - this.viewportSize;
- } else {
- this.contentPosition = parseInt(scrollTo, 10) || 0;
- }
- }
-
- ensureContentPosition();
- $thumb.css(posiLabel, self.contentPosition / self.trackRatio + 'px');
- $scrollbar.css(sizeLabel, self.trackSize + 'px');
- $thumb.css(sizeLabel, self.thumbSize + 'px');
- $overview.css(posiLabel, -self.contentPosition + 'px');
-
- return this;
- };
-
- fireEvent = function (obj, evt) {
- var fireOnThis = obj;
- var evtObj;
- if (document.createEvent) {
- // alert("FF");
- evtObj = document.createEvent('HTMLEvents');
- evtObj.initEvent(evt, true, false);
- fireOnThis.dispatchEvent(evtObj);
- } else if (document.createEventObject) {
- // alert("IE8");
- evtObj = document.createEventObject();
- fireOnThis.fireEvent('on' + evt, evtObj);
- }
- };
-
- function ensureContentPosition() {
- // if scrollbar is on, ensure the bottom of the content does not go above the bottom of the viewport
- if (self.contentRatio <= 1 && self.contentPosition > self.contentSize - self.viewportSize) {
- self.contentPosition = self.contentSize - self.viewportSize;
- }
- // if scrollbar is off, ensure the top of the content does not go below the top of the viewport
- else if (self.contentRatio > 1 && self.contentPosition > 0) {
- self.contentPosition = 0;
- }
-
- if (self.contentPosition <= 0) {
- $scope.prevAvailable = false;
- } else {
- $scope.prevAvailable = true;
- }
-
- if (self.contentPosition >= (self.contentSize - self.viewportSize)) {
- $scope.nextAvailable = false;
- } else {
- $scope.nextAvailable = true;
- }
- }
-
- function setEvents() {
- if (hasTouchEvents) {
- $viewport.on('touchstart', touchstart);
- $thumb.on('touchstart', touchstart);
- } else {
- $thumb.on('mousedown', start);
- $scrollbar.on('mousedown', drag);
- }
-
- angular.element($window).on('resize', resize);
-
- if (self.options.wheel) {
- $element.on(wheelEvent, wheel);
- }
- }
-
- function resize() {
- self.update();
- }
-
- function touchstart(event) {
- if (1 === event.touches.length) {
- event.stopPropagation();
- start(event.touches[0]);
- }
- }
-
- function start(event) {
- $body.addClass('scroll-no-select');
- $element.addClass('scroll-no-select');
-
- if (!self.options.alwaysVisible) {
- $scrollbar.addClass('visible');
- }
- mousePosition = isHorizontal ? event.clientX : event.clientY;
- self.thumbPosition = parseInt($thumb.css(posiLabel), 10) || 0;
-
- if (hasTouchEvents) {
- documnetscrolltouch = false;
- thumbscrolltouch = false;
- $viewport.on('touchmove', touchdrag);
- $viewport.on('touchend', end);
- $thumb.on('touchmove', touchdragthumb);
- $thumb.on('touchend', end);
- } else {
- $document.on('mousemove', drag);
- $document.on('mouseup', end);
- $thumb.on('mouseup', end);
- }
- }
-
- function wheel(event) {
- if (self.contentRatio >= 1) {
- return;
- }
-
- if (!self.options.alwaysVisible) {
- //cancel removing visibility if wheel event is triggered before the timeout
- if (restoreVisibilityAfterWheel) {
- $timeout.cancel(restoreVisibilityAfterWheel);
- }
- $scrollbar.addClass('visible');
-
- restoreVisibilityAfterWheel = $timeout(function () {
- $scrollbar.removeClass('visible');
- }, 100);
- }
-
- var evntObj = (event && event.originalEvent) || event || $window.event,
- deltaDir = self.options.axis.toUpperCase(),
- delta = {
- X: evntObj.deltaX || 0,
- Y: evntObj.deltaY || 0
- },
- wheelSpeed = evntObj.deltaMode === 0 ? self.options.wheelSpeed : 1;
-
- if (self.options.scrollInvert) {
- wheelSpeed *= -1;
- }
-
- if (wheelEvent === 'mousewheel') {
- delta.Y = -1 * evntObj.wheelDelta / 40;
- if (evntObj.wheelDeltaX) {
- delta.X = -1 * evntObj.wheelDeltaX / 40;
- }
- }
- delta.X *= -1 / wheelSpeed;
- delta.Y *= -1 / wheelSpeed;
-
- var wheelSpeedDelta = delta[deltaDir];
-
- self.contentPosition -= wheelSpeedDelta * self.options.wheelSpeed;
- self.contentPosition = Math.min((self.contentSize - self.viewportSize), Math.max(0, self.contentPosition));
-
- fireEvent($element[0], 'move');
-
- ensureContentPosition();
- $thumb.css(posiLabel, self.contentPosition / self.trackRatio + 'px');
- $overview.css(posiLabel, -self.contentPosition + 'px');
-
- if (self.options.wheelLock || (self.contentPosition !== (self.contentSize - self.viewportSize) && self.contentPosition !== 0)) {
- evntObj.preventDefault();
- }
-
- $scope.$apply();
- }
-
- function touchdrag(event) {
- event.preventDefault();
- documnetscrolltouch = true;
- drag(event.touches[0]);
- }
-
- function touchdragthumb(event) {
- event.preventDefault();
- thumbscrolltouch = true;
- drag(event.touches[0]);
- }
-
- function drag(event) {
- if (self.contentRatio >= 1) {
- return;
- }
-
- var mousePositionNew = isHorizontal ? event.clientX : event.clientY,
- thumbPositionDelta = mousePositionNew - mousePosition;
-
- if ((self.options.scrollInvert && !hasTouchEvents) ||
- (hasTouchEvents && !self.options.scrollInvert)) {
- thumbPositionDelta = mousePosition - mousePositionNew;
- }
- if (documnetscrolltouch && hasTouchEvents) {
- thumbPositionDelta = mousePosition - mousePositionNew;
- }
- if (thumbscrolltouch && hasTouchEvents) {
- thumbPositionDelta = mousePositionNew - mousePosition;
- }
- var thumbPositionNew = Math.min((self.trackSize - self.thumbSize), Math.max(0, self.thumbPosition + thumbPositionDelta));
- self.contentPosition = thumbPositionNew * self.trackRatio;
-
- fireEvent($element[0], 'move');
-
- ensureContentPosition();
- $thumb.css(posiLabel, thumbPositionNew + 'px');
- $overview.css(posiLabel, -self.contentPosition + 'px');
-
- $scope.$apply();
- }
-
- $scope.customScroll = function (direction) {
- if (self.contentRatio >= 1) {
- return;
- }
-
- var customScrollDelta;
- var viewportDimension = $position.position($viewport);
-
- if (isHorizontal) {
- customScrollDelta = viewportDimension.width;
- } else {
- customScrollDelta = viewportDimension.height;
- }
-
- if (direction) {
- self.contentPosition += customScrollDelta;
- } else {
- self.contentPosition -= customScrollDelta;
- }
- self.contentPosition = Math.min((self.contentSize - self.viewportSize), Math.max(0, self.contentPosition));
-
- fireEvent($element[0], 'move');
-
- ensureContentPosition();
- $thumb.css(posiLabel, self.contentPosition / self.trackRatio + 'px');
- $overview.css(posiLabel, -self.contentPosition + 'px');
- };
-
- function end() {
- $body.removeClass('scroll-no-select');
- $element.removeClass('scroll-no-select');
- if (!self.options.alwaysVisible) {
- $scrollbar.removeClass('visible');
- }
- $document.off('mousemove', drag);
- $document.off('mouseup', end);
- $thumb.off('mouseup', end);
- $document.off('touchmove', touchdrag);
- $document.off('ontouchend', end);
- $thumb.off('touchmove', touchdragthumb);
- $thumb.off('touchend', end);
- }
-
- this.cleanup = function () {
- $viewport.off('touchstart', touchstart);
- $thumb.off('mousedown', start);
- $scrollbar.off('mousedown', drag);
- $thumb.off('touchmove', touchdragthumb);
- $thumb.off('touchend', end);
- angular.element($window).off('resize', resize);
- $element.off(wheelEvent, wheel);
- //ensure scrollbar isn't activated
- self.options.alwaysVisible = true;
- end();
- };
- }],
- link: function (scope, iElement, iAttrs, controller) {
- scope.navigation = controller.options.navigation;
- scope.viewportHeight = iAttrs.viewportHeight;
- scope.viewportWidth = iAttrs.viewportWidth;
- scope.scrollbarAxis = controller.options.axis;
- if (scope.scrollbarAxis === 'x') {
- iElement.addClass('horizontal');
- } else if (scope.scrollbarAxis === 'y') {
- iElement.addClass('vertical');
- }
-
- var position = iElement.css('position');
- if (position !== 'relative' && position !== 'absolute') {
- iElement.css('position', 'relative');
- }
-
- scope.$watch(function () {
- $timeout(refreshScrollbar, 100, false);
- });
-
- var refreshScrollbar = function () {
- var $overview = angular.element(iElement[0].querySelectorAll('.scroll-overview')[0]);
- var newValue = $overview.prop('scrollHeight');
- var oldValue = scope.oldValue;
- if (newValue !== oldValue) {
- scope.oldValue = newValue;
- controller.update();
- }
- };
-
- controller.initialize();
- iElement.on('$destroy', function () {
- controller.cleanup();
- });
- }
- };
-}]);
-
-angular.module('att.abs.search', ['att.abs.utilities', 'att.abs.position', 'att.abs.utilities'])
-.directive('attSearch', ['$document', '$filter', '$isElement', '$documentBind', '$timeout', '$log', 'keymap', function($document, $filter, $isElement, $documentBind, $timeout, $log, keymap){
- return{
- restrict: 'A',
- scope:{cName: '=attSearch'},
- transclude: false,
- replace: false,
- require:'ngModel',
- templateUrl: 'app/scripts/ng_js_att_tpls/search/search.html',
- link: function(scope, element, attr, ctrl) {
- scope.selectedIndex = -1;
- scope.selectedOption = attr.placeholder;
- scope.isDisabled = false;
- scope.className = "select2-match";
- scope.showSearch = false;
- scope.showlist = false;
-
- // This is used to jump to elements in list
- var search = '';
- // This is used to ensure searches only persist so many ms.
- var prevSearchDate = new Date();
- // This is used to shift focus back after closing dropdown
- var dropdownElement = undefined;
- // Used to ensure focus on dropdown elements
- var list = [];
- $timeout(function() {
- list = element.find('li');
- }, 10);
-
- $log.warn('attSearch is deprecated, please use attSelect instead. This component will be removed by version 2.7.')
-
- if (attr.noFilter || attr.noFilter === 'true') {
- scope.noFilter = true;
- } else {
- scope.noFilter = false;
- }
- if (attr.placeholderAsOption === 'false') {
- //scope.selectMsg = '';
- scope.selectedOption = attr.placeholder;
- } else {
- scope.selectMsg = attr.placeholder;
- }
- if (attr.startsWithFilter || attr.startsWithFilter === 'true') {
- scope.startsWithFilter = true;
- }
- if (attr.showInputFilter === 'true') {
- scope.showSearch = false;
- $log.warn('showInputFilter functionality has been removed from the library.');
- // This is deprecated
- }
- if (attr.disabled) {
- scope.isDisabled = true;
- }
- dropdownElement = angular.element(element).children().eq(0).find('a')[0];
- var prevIndex = 0;
- var selectOptionFromSearch = function() {
- if (!scope.noFilter) {
- return;
- }
-
- // Find next element that matches search criteria.
- // If no element is found, loop to beginning and search.
- var criteria = search;
- var i = 0;
- for (i = prevIndex; i < scope.cName.length; i++) {
- // Need to ensure we keep searching until all startsWith have passed before looping
- if (scope.cName[i].title.startsWith(criteria) && i !== scope.selectedIndex) {
- scope.selectOption(scope.cName[i], i, scope.showlist);
- prevIndex = i;
- search = '';
- break;
- }
- }
- if ((i >= scope.cName.length || !scope.cName[i+1].title.startsWith(criteria)) && prevIndex > 0) {
- prevIndex = 0;
- }
- };
- scope.showDropdown = function() {
- if (!(attr.disabled)) {
- scope.showlist = !scope.showlist;
- scope.setSelectTop();
- }
- };
- element.bind('keydown', function(e) {
- if (keymap.isAllowedKey(e.keyCode) || keymap.isControl(e) || keymap.isFunctionKey(e)) {
- e.preventDefault();
- e.stopPropagation();
-
- switch (e.keyCode) {
- case keymap.KEY.DOWN:
- scope.selectNext();
- break;
- case keymap.KEY.UP:
- scope.selectPrev();
- search = '';
- break;
- case keymap.KEY.ENTER:
- scope.selectCurrent();
- search = '';
- break;
- case keymap.KEY.BACKSPACE:
- scope.title = '';
- search = '';
- scope.$apply();
- break;
- case keymap.KEY.SPACE:
- if (!scope.noFilter) {
- scope.title += ' ';
- }
- scope.$apply();
- break;
- case keymap.KEY.ESC:
- if (scope.title === '' || scope.title === undefined) {
- scope.showlist = false;
- dropdownElement.focus();
- scope.$apply();
- } else {
- scope.title = '';
- scope.$apply();
- }
- if (scope.noFilter) {
- search = '';
- dropdownElement.focus();
- scope.showlist = false;
- }
- break;
- default:
- break;
- }
- } else {
- if (e.keyCode !== 9)
- {
- if (!scope.noFilter) {
- scope.showlist = true;
- scope.title = scope.title ? scope.title + String.fromCharCode(e.keyCode) : String.fromCharCode(e.keyCode);
- } else {
- var date = new Date();
- var delta = Math.abs(prevSearchDate.getMilliseconds() - date.getMilliseconds());
- prevSearchDate = date;
- if (delta > 100) {
- search = '';
- }
- search = search ? search + String.fromCharCode(e.keyCode) : String.fromCharCode(e.keyCode);
- if (search.length > 2) {
- search = search.substring(0, 2);
- }
- selectOptionFromSearch();
- }
- scope.$apply();
- } else if (e.keyCode === 9) {
- scope.showlist = false;
- scope.title = '';
- scope.$apply();
- }
- }
- });
- scope.selectOption = function(sTitle, sIndex, keepOpen) {
- if (sIndex === -1 || sIndex === '-1') {
- scope.selCategory = '';
- scope.selectedIndex = -1;
- ctrl.$setViewValue('');
- if(attr.placeholderAsOption !== 'false')
- {
- scope.selectedOption = scope.selectMsg;
- }
- } else {
- scope.selCategory = scope.cName[sIndex];
- scope.selectedIndex = sIndex;
- ctrl.$setViewValue(scope.selCategory);
- scope.selectedOption = scope.selCategory.title;
- if (angular.isDefined(list[sIndex])) {
- list[sIndex].focus();
- }
- }
- scope.title = '';
- if (!keepOpen) {
- scope.showlist = false;
- dropdownElement.focus();
- }
- scope.$apply();
- };
- scope.selectCurrent = function() {
- if (scope.showlist) {
- scope.selectOption(scope.selectMsg, scope.selectedIndex, false);
- scope.$apply();
- } else {
- scope.showlist = true;
- scope.setSelectTop();
- scope.$apply();
- }
- };
- scope.hoverIn = function(cItem) {
- scope.selectedIndex = cItem;
- scope.focusme();
- };
- scope.setSelectTop = function() {
- $timeout(function() {
- if (scope.showlist && !scope.noFilter)
- {
- var containerUL = angular.element(element)[0].querySelector(".select2-results");
- if(angular.element(containerUL.querySelector('.select2-result-current'))[0])
- {
- var selectedElemTopPos = angular.element(containerUL.querySelector('.select2-result-current'))[0].offsetTop;
- }
- angular.element(containerUL)[0].scrollTop = selectedElemTopPos;
- }
- });
- };
- scope.setCurrentTop = function() {
- $timeout(function() {
- if (scope.showlist) {
- var containerUL = angular.element(element)[0].querySelector(".select2-results");
- if(angular.element(containerUL.querySelector('.hovstyle'))[0])
- {
- var selectedElemTopPos = angular.element(containerUL.querySelector('.hovstyle'))[0].offsetTop;
- }
- if (selectedElemTopPos < (angular.element(containerUL)[0].scrollTop)) {
- angular.element(containerUL)[0].scrollTop -= 30;
- } else if ((selectedElemTopPos + 30) > (angular.element(containerUL)[0].clientHeight)) {
- angular.element(containerUL)[0].scrollTop += 30;
- }
-
- }
- });
- };
- scope.selectNext = function() {
- if ((scope.selectedIndex + 1) <= (scope.cName.length - 1)) {
- scope.selectedIndex += 1;
- if (!scope.showlist) {
- scope.selectOption(scope.selectMsg, scope.selectedIndex, false);
- }
- scope.focusme();
- scope.$apply();
- }
- scope.setCurrentTop();
- };
- scope.selectPrev = function() {
- if ((scope.selectedIndex - 1) >= 0) {
- scope.selectedIndex -= 1;
- if (!scope.showlist) {
- scope.selectOption(scope.selectMsg, scope.selectedIndex, false);
- }
- scope.focusme();
- scope.$apply();
- } else if (scope.selectedIndex - 1 < 0) {
- // If placeholderAsOption is true or undefined (default), ensure we can select it on up key.
- if (attr.placeholderAsOption === undefined || attr.placeholderAsOption === 'true') {
- scope.selectedIndex = -1;
- } else {
- scope.selectedIndex = 0;
- }
- if (!scope.showlist) {
- scope.selectOption(scope.selectMsg, scope.selectedIndex, false);
- }
- scope.focusme();
- scope.$apply();
- }
- scope.setCurrentTop();
- };
- scope.updateSelection = function(sItem) {
- scope.selectedOption = sItem.title;
- scope.title = "";
- };
- scope.focusme = function() {
- $timeout(function() {
- var list = angular.element(element).find('ul').find('li');
- var index = scope.selectedIndex + 2;
- if (scope.noFilter) {
- index = scope.selectedIndex;
- }
- if (angular.isDefined(list[index])) {
- list[index].focus();
- }
- });
- };
- scope.$watch('selCategory', function(value) {
- if (value) {
- scope.updateSelection(value);
- };
- });
- ctrl.$viewChangeListeners.push(function() {
- scope.$eval(attr.ngChange);
- });
- ctrl.$render = function() {
- scope.selCategory = ctrl.$viewValue;
- };
- var outsideClick = function(e) {
- var isElement = $isElement(angular.element(e.target), element, $document);
- if (!isElement) {
- scope.showlist = false;
- dropdownElement.focus();
- scope.$apply();
- }
- };
- $documentBind.click('showlist', outsideClick, scope);
- }
- };
-}]);
-angular.module('att.abs.select', ['att.abs.utilities', 'att.abs.position', 'att.abs.utilities'])
-.directive('attSelect', ["$document", "$filter", "$isElement", '$documentBind', '$timeout', 'keymap', '$log', function($document, $filter, $isElement, $documentBind, $timeout, keymap, $log) {
- return {
- restrict: 'A',
- scope: {
- cName: '=attSelect'
- },
- transclude: false,
- replace: false,
- require: 'ngModel',
- templateUrl: 'app/scripts/ng_js_att_tpls/select/select.html',
- link: function(scope, element, attr, ctrl) {
- scope.selectedIndex = -1;
- scope.selectedOption = attr.placeholder;
- scope.isDisabled = false;
- scope.className = "select2-match";
- scope.showSearch = false;
- scope.showlist = false;
-
- // This is used to jump to elements in list
- var search = '';
- // This is used to ensure searches only persist so many ms.
- var prevSearchDate = new Date();
- // This is used to shift focus back after closing dropdown
- var dropdownElement = undefined;
- // Used to ensure focus on dropdown elements
- var list = [];
- $timeout(function() {
- list = element.find('li');
- }, 10);
-
- if (attr.noFilter || attr.noFilter === 'true') {
- scope.noFilter = true;
- } else {
- scope.noFilter = false;
- }
- if (attr.placeholderAsOption === 'false') {
- scope.selectedOption = attr.placeholder;
- } else {
- scope.selectMsg = attr.placeholder;
- }
- if (attr.startsWithFilter || attr.startsWithFilter === 'true') {
- scope.startsWithFilter = true;
- }
- if (attr.showInputFilter === 'true') {
- scope.showSearch = false;
- /* This is deprecated */
- $log.warn('showInputFilter functionality has been removed from the library.');
- }
- if (attr.disabled) {
- scope.isDisabled = true;
- }
- var getFilterType = function() {
- if (scope.startsWithFilter) {
- return 'startsWith';
- } else {
- return 'filter';
- }
- };
- dropdownElement = angular.element(element).children().eq(0).find('span')[0];
- var prevIndex = 0;
- var selectOptionFromSearch = function() {
- if (!scope.noFilter) {
- return;
- }
-
- // Find next element that matches search criteria.
- // If no element is found, loop to beginning and search.
- var criteria = search;
- var i = 0;
- for (i = prevIndex; i < scope.cName.length; i++) {
- // Need to ensure we keep searching until all startsWith have passed before looping
- if (scope.cName[i].title.startsWith(criteria) && i !== scope.selectedIndex) {
- scope.selectOption(scope.cName[i], i, scope.showlist);
- prevIndex = i;
- search = '';
- break;
- }
- }
- if ((i >= scope.cName.length || !scope.cName[i+1].title.startsWith(criteria)) && prevIndex > 0) {
- prevIndex = 0;
- }
- };
- scope.showDropdown = function() {
- if (!(attr.disabled)) {
- scope.showlist = !scope.showlist;
- scope.setSelectTop();
- /* Ensure selected element is focused upon opening dropdown */
- scope.focusme();
- }
- };
- element.bind('keydown', function(e) {
- if (keymap.isAllowedKey(e.keyCode) || keymap.isControl(e) || keymap.isFunctionKey(e)) {
- e.preventDefault();
- e.stopPropagation();
-
- switch (e.keyCode) {
- case keymap.KEY.DOWN:
- scope.selectNext();
- break;
- case keymap.KEY.UP:
- scope.selectPrev();
- search = '';
- break;
- case keymap.KEY.ENTER:
- scope.selectCurrent();
- search = '';
- break;
- case keymap.KEY.BACKSPACE:
- scope.title = '';
- search = '';
- scope.$apply();
- break;
- case keymap.KEY.SPACE:
- if (!scope.noFilter) {
- scope.title += ' ';
- }
- scope.$apply();
- break;
- case keymap.KEY.ESC:
- if (scope.title === '' || scope.title === undefined) {
- scope.showlist = false;
- dropdownElement.focus();
- scope.$apply();
- } else {
- scope.title = '';
- scope.$apply();
- }
- if (scope.noFilter) {
- search = '';
- dropdownElement.focus();
- scope.showlist = false;
- }
- break;
- default:
- break;
- }
- } else {
- if (e.keyCode !== keymap.KEY.TAB)
- {
- if (!scope.noFilter) {
- scope.showlist = true;
- scope.title = scope.title ? scope.title + String.fromCharCode(e.keyCode) : String.fromCharCode(e.keyCode);
-
- /* Perform index correction */
- if (scope.title != '') {
- var filteredArray = $filter(getFilterType())(scope.cName, scope.title);
-
- for (var i = 0; i < filteredArray.length; i++) {
- for (var j = 0; j < scope.cName.length; j++) {
- if (!angular.isDefined(scope.cName[scope.selectedIndex])) {
- break;
- }
- if (filteredArray[i]['title'] === scope.cName[scope.selectedIndex]['title']) {
- scope.selectedIndex = i;
- scope.focusme();
- break;
- }
- }
- }
- }
- } else {
- var date = new Date();
- var delta = Math.abs(prevSearchDate.getMilliseconds() - date.getMilliseconds());
- prevSearchDate = date;
- if (delta > 100) {
- search = '';
- }
- search = search ? search + String.fromCharCode(e.keyCode) : String.fromCharCode(e.keyCode);
- if (search.length > 2) {
- search = search.substring(0, 2);
- }
- selectOptionFromSearch();
- }
- scope.$apply();
- } else if (e.keyCode === keymap.KEY.TAB) {
- scope.showlist = false;
- scope.title = '';
- scope.$apply();
- }
- }
- });
- scope.selectOption = function(sTitle, sIndex, keepOpen) {
-
- if (sIndex === -1 || sIndex === '-1') {
- scope.selCategory = '';
- scope.selectedIndex = -1;
- ctrl.$setViewValue('');
- if(attr.placeholderAsOption !== 'false')
- {
- scope.selectedOption = scope.selectMsg;
- }
- }
- else {
- /* Apply filter here to remap the selected index and shift focus*/
- if (scope.title != '') {
- var filteredArray = $filter(getFilterType())(scope.cName, scope.title);
-
- if (angular.isDefined(filteredArray) && angular.isDefined(filteredArray[sIndex]))
- {
- for (var i = 0; i < scope.cName.length; i++) {
- if (filteredArray[sIndex]['title'] === scope.cName[i]['title']) {
- sIndex = i;
- break;
- }
- }
- }
- }
- scope.selCategory = scope.cName[sIndex];
- scope.selectedIndex = sIndex;
- ctrl.$setViewValue(scope.selCategory);
- scope.selectedOption = scope.selCategory.title;
-
- $timeout(function(){
- if (angular.isDefined(list[sIndex])) {
- try{
- list[index].focus();
- } catch (e) {} /* IE8 will throw exception if display:none or not in DOM */
- }
- });
- }
- scope.title = '';
- if (!keepOpen) {
- scope.showlist = false;
- dropdownElement.focus();
- }
- };
- scope.selectCurrent = function() {
- if (scope.showlist) {
- scope.selectOption(scope.selectMsg,scope.selectedIndex,false);
- } else {
- scope.showlist = true;
- scope.setSelectTop();
- }
- scope.$apply();
- };
- scope.hoverIn = function(cItem) {
- scope.selectedIndex = cItem;
- scope.focusme();
- };
- scope.setSelectTop = function() {
- $timeout(function() {
- if (scope.showlist && !scope.noFilter)
- {
- var containerUL = angular.element(element)[0].querySelector(".select2-results");
- if(angular.element(containerUL.querySelector('.select2-result-current'))[0])
- {
- var selectedElemTopPos = angular.element(containerUL.querySelector('.select2-result-current'))[0].offsetTop;
- }
- angular.element(containerUL)[0].scrollTop = selectedElemTopPos;
- }
- });
- };
- scope.setCurrentTop = function() {
- $timeout(function() {
- if (scope.showlist) {
- var containerUL = angular.element(element)[0].querySelector(".select2-results");
- if(angular.element(containerUL.querySelector('.hovstyle'))[0])
- {
- var selectedElemTopPos = angular.element(containerUL.querySelector('.hovstyle'))[0].offsetTop;
- }
- if (selectedElemTopPos < (angular.element(containerUL)[0].scrollTop)) {
- angular.element(containerUL)[0].scrollTop -= 30;
- } else if ((selectedElemTopPos + 30) > (angular.element(containerUL)[0].clientHeight)) {
- angular.element(containerUL)[0].scrollTop += 30;
- }
-
- }
- });
- };
- scope.selectNext = function() {
- var length = scope.cName.length;
-
- if ((scope.selectedIndex + 1) <= (scope.cName.length - 1)) {
- scope.selectedIndex += 1;
- var nextDisabled = scope.cName[scope.selectedIndex].disabled;
- if (nextDisabled) {
- scope.selectedIndex += 1;
- }
- if (!scope.showlist) {
- scope.selectOption(scope.selectMsg, scope.selectedIndex,false);
- }
- scope.focusme();
- scope.$apply();
- }
- scope.setCurrentTop();
- };
- scope.selectPrev = function() {
- if ((scope.selectedIndex - 1) >= 0) {
- scope.selectedIndex -= 1;
- var prevDisabled = scope.cName[scope.selectedIndex].disabled;
- if (prevDisabled) {
- scope.selectedIndex -= 1;
- }
- if (!scope.showlist) {
- scope.selectOption(scope.selectMsg, scope.selectedIndex,false);
- }
- scope.focusme();
- scope.$apply();
- } else if (scope.selectedIndex - 1 < 0) {
- // If placeholderAsOption is true or undefined (default), ensure we can select it on up key.
- if (attr.placeholderAsOption === undefined || attr.placeholderAsOption === 'true') {
- if(attr.placeholder === undefined ){
- scope.selectedIndex = 0;
- }
- else{
- scope.selectedIndex = -1;
- }
- } else {
- scope.selectedIndex = 0;
- }
- if (!scope.showlist) {
- scope.selectOption(scope.selectMsg, scope.selectedIndex,false);
- }
- scope.focusme();
- scope.$apply();
- }
- scope.setCurrentTop();
- };
- scope.updateSelection = function(sItem) {
- scope.selectedOption = sItem.title;
- scope.title = '';
-
- if (sItem.index < 0) {
- scope.selectOption(scope.selectMsg, sItem.index, scope.showlist);
- }
- };
- scope.focusme = function() {
- $timeout(function() {
- var list = angular.element(element).find('ul').find('li');
- var index = scope.selectedIndex + 2;
- if (scope.noFilter) {
- index = scope.selectedIndex;
- }
- if (angular.isDefined(list[index])) {
- try {
- list[index].focus();
- } catch (e) {} /* IE8 will throw exception if display:none or not in DOM */
- }
- });
- };
- scope.$watch('selCategory', function(value) {
- if (value) {
- scope.updateSelection(value);
- };
- });
- ctrl.$viewChangeListeners.push(function() {
- scope.$eval(attr.ngChange);
- });
- ctrl.$render = function() {
- scope.selCategory = ctrl.$viewValue;
- };
- var outsideClick = function(e) {
- var isElement = $isElement(angular.element(e.target), element, $document);
- if (!isElement) {
- scope.showlist = false;
- dropdownElement.focus();
- scope.$apply();
- }
- };
- $documentBind.click('showlist', outsideClick, scope);
- }
- };
-}])
-.directive('textDropdown', ['$document', '$isElement', '$documentBind', "keymap", function($document, $isElement, $documentBind, keymap) {
- return {
- restrict: 'EA',
- replace: true,
- scope: {
- actions: '=actions',
- defaultAction: '=defaultAction',
- onActionClicked: '=?'
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/select/textDropdown.html',
- link: function(scope, element, attr) {
- scope.selectedIndex = 0;
- scope.selectedOption = attr.placeholder;
- scope.isDisabled = false;
- scope.isActionsShown = false;
- var dropdownElement = undefined;
- if (attr.disabled) {
- scope.isDisabled = true;
- }
-
- dropdownElement = element.find('div')[0];
-
- // Set default Action
- if (!angular.isDefined(scope.defaultAction)) {
- scope.currentAction = scope.actions[0];
- scope.selectedIndex = 0;
- } else if (angular.isDefined(scope.defaultAction) || scope.defaultAction !== '') {
- for (var act in scope.actions) {
- if (scope.actions[act] === scope.defaultAction) {
- scope.currentAction = scope.actions[act];
- scope.selectedIndex = scope.actions.indexOf(act);
- scope.isActionsShown = false;
- break;
- }
- }
- } else {
- scope.currentAction = scope.actions[0];
- }
- scope.toggle = function() {
- scope.isActionsShown = !scope.isActionsShown;
- };
- scope.chooseAction = function($event, action, $index) {
- if ($event != null) {
- scope.currentAction = action;
- scope.selectedIndex = $index;
- } else {
- scope.currentAction = scope.actions[scope.selectedIndex];
- }
- if (angular.isFunction(scope.onActionClicked)) {
- scope.onActionClicked(scope.currentAction);
- }
- scope.toggle();
- };
- scope.isCurrentAction = function(action) {
- return (action === scope.currentAction);
- };
- element.bind("keydown", function(e) {
- if (keymap.isAllowedKey(e.keyCode) || keymap.isControl(e) || keymap.isFunctionKey(e)) {
- e.preventDefault();
- e.stopPropagation();
- switch (e.keyCode) {
- case keymap.KEY.DOWN:
- scope.selectNext();
- break;
- case keymap.KEY.UP:
- scope.selectPrev();
- break;
- case keymap.KEY.ENTER:
- scope.selectCurrent();
- break;
- case keymap.KEY.ESC:
- scope.isActionsShown = false;
- dropdownElement.focus();
- scope.$apply();
- break;
- default:
- break;
- }
- scope.$apply();
- return;
- } else if (e.keyCode === keymap.KEY.TAB) {
- scope.isActionsShown = false;
- scope.$apply();
- }
- });
- scope.selectCurrent = function() {
- if (scope.selectedIndex < 0) {
- scope.selectedIndex = 0;
- }
- if (!scope.isActionsShown) {
- scope.toggle();
- } else {
- scope.chooseAction(null, scope.currentAction);
- }
- };
- scope.selectNext = function() {
- if (scope.isActionsShown) {
- if ((scope.selectedIndex + 1) < scope.actions.length) {
- scope.selectedIndex += 1;
- } else {
- scope.selectedIndex = (scope.actions.length - 1);
- }
- scope.$apply();
- }
- };
- scope.selectPrev = function() {
- if (scope.isActionsShown) {
- if ((scope.selectedIndex - 1) >= 0) {
- scope.selectedIndex -= 1;
- } else if (scope.selectedIndex - 1 < 0) {
- scope.selectedIndex = 0;
- }
- scope.$apply();
- }
- };
- scope.hoverIn = function(cItem) {
- scope.selectedIndex = cItem;
- };
- //end cato
- var outsideClick = function(e) {
- var isElement = $isElement(angular.element(e.target), element, $document);
- if (!isElement) {
- scope.toggle();
- scope.$apply();
- }
- };
- $documentBind.click('isActionsShown', outsideClick, scope);
- }
- };
-}]);
-angular.module('att.abs.slider', ['att.abs.position'])
- .constant('sliderDefaultOptions', {
- width: 300,
- step: 1,
- precision: 0,
- disabledWidth: 116
- })
- .directive('attSlider', ['sliderDefaultOptions','$position','$document', function(sliderDefaultOptions,$position,$document)
- {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- scope: {
- floor: "=",
- ceiling: "=",
- step: "@",
- precision: "@",
- width: "@",
- textDisplay: "=",
- value: "=",
- ngModelSingle: '=?',
- ngModelLow: '=?',
- ngModelHigh: '=?',
- ngModelDisabled: '=?'
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/slider/slider.html',
- link: function(scope, elem, attr)
- {
- var minOffset, maxOffset, newOffset, newOffset1, newOffset2, offsetRange, valueRange, start_x = 0, disabledRange, disabled, evFlag = false, minValue, maxValue, range, refLow, refHigh, maxPtr, minPtr, singlePtr, getHandles;
- scope.minPtrOffset = 0;
- scope.maxPtrOffset = 0;
- var disableWidth = sliderDefaultOptions.disabledWidth;
- //Get handles
- var obj = elem.children();
- disabledRange = obj[0].children;
- disabledRange = angular.element(disabledRange[0]);
- getHandles = obj[1].children;
- singlePtr = angular.element(getHandles[0]);
- minPtr = angular.element(getHandles[1]);
- maxPtr = angular.element(getHandles[2]);
- disabled = ((attr.ngModelSingle == null) && (attr.ngModelLow == null) && (attr.ngModelHigh == null)) && (attr.ngModelDisabled != null);
- range = (attr.ngModelSingle == null) && ((attr.ngModelLow != null) && (attr.ngModelHigh != null));
- refLow = 'ngModelLow';
- refHigh = 'ngModelHigh';
- if (!range) {
- minPtr.remove();
- maxPtr.remove();
- }
- else {
- singlePtr.remove();
- }
- if (!disabled) {
- disabledRange.remove();
- }
- else {
- scope.disabledStyle = {width: disableWidth + 'px', zIndex: 1};
- scope.handleStyle = {left: disableWidth + 'px'};
- }
- minValue = parseFloat(scope.floor);
- maxValue = parseFloat(scope.ceiling);
- valueRange = maxValue - minValue;
- minOffset = 0;
- if (attr.width !== undefined) {
- maxOffset = attr.width;
- }
- else {
- if (elem[0].clientWidth !== 0) {
- maxOffset = elem[0].clientWidth;
- }
- else {
- maxOffset = sliderDefaultOptions.width;
- }
- }
- offsetRange = maxOffset - minOffset;
- //Key Down Event
- scope.keyDown = function(ev){
- if(ev.keyCode === 39){
- var elemLeft = $position.position(elem).left;
- if (newOffset){
- if(scope.ref === "ngModelLow"){
- newOffset1 = sliderDefaultOptions.step + newOffset1;
- newOffset = newOffset1;
- }
- else if(scope.ref === "ngModelHigh"){
- newOffset2 = sliderDefaultOptions.step + newOffset2;
- newOffset = newOffset2;
- }
- else{newOffset = sliderDefaultOptions.step + newOffset;}
- }
- else {
- if(range &&scope.ref === "ngModelLow"){
- return;
- }
- else {
- newOffset = sliderDefaultOptions.step + elemLeft;
- newOffset1 = newOffset2 = newOffset;
- }
- }
- }
- else if(ev.keyCode === 37){
- var ptrLeft = $position.position(singlePtr).left;
- if(newOffset){
- if (!(newOffset<=0)){
- if(scope.ref === "ngModelLow"){
- newOffset1 = newOffset1 - sliderDefaultOptions.step;
- newOffset = newOffset1;
- }
- else if(scope.ref === "ngModelHigh"){
- newOffset2 = newOffset2 - sliderDefaultOptions.step;
- newOffset = newOffset2;
- }
- else {
- newOffset = newOffset - sliderDefaultOptions.step;
- newOffset1 = newOffset2 = newOffset;
- }
- }
- }
- else {
- newOffset = ptrLeft - sliderDefaultOptions.step;
- }
- }
- if(newOffset>=0){
- scope.ptrOffset(newOffset);
- }
- };
- //Mouse Down Event
- scope.mouseDown = function(e, ref) {
- scope.ref = ref;
- evFlag = true;
- if (!range){
- if (newOffset)
- {
- start_x = e.clientX - newOffset;
- }
- else {
- start_x = e.clientX;
- }
- } else {
- if (scope.ref === refLow) {
- start_x = e.clientX - scope.minPtrOffset;
- }
- else {
- start_x = e.clientX - scope.maxPtrOffset;
- }
- }
- if (disabled) {
- scope.ref= 'ngModelDisabled';
- scope.disabledStyle = {width: disableWidth + 'px', zIndex: 1};
- }
- };
- // Mouse Move Event
- scope.moveElem = function(ev) {
- if (evFlag) {
- var eventX;
- eventX = ev.clientX;
- newOffset = eventX - start_x;
- scope.ptrOffset(newOffset);
- }
- };
- scope.focus=function(ev,ref){
- console.log(ref);
- scope.ref=ref;
- }
- // Mouse Up Event
- scope.mouseUp = function(ev) {
- evFlag = false;
- minPtr.removeClass('dragging');
- maxPtr.removeClass('dragging');
- singlePtr.removeClass('dragging');
- $document.off('mousemove');
- };
- // key Up Event
- scope.keyUp = function(ev) {
- evFlag = false;
- minPtr.removeClass('dragging');
- maxPtr.removeClass('dragging');
- singlePtr.removeClass('dragging');
- $document.off('mousemove');
- };
- //Function to calculate the current PositionValue
- scope.calStep = function(value, precision, step, floor) {
- var decimals, remainder, roundedValue, steppedValue;
- if (floor === null) {
- floor = 0;
- }
- if (step === null) {
- step = 1 / Math.pow(10, precision);
- }
- remainder = (value - floor) % step;
- steppedValue = remainder > (step / 2) ? value + step - remainder : value - remainder;
- decimals = Math.pow(10, precision);
- roundedValue = steppedValue * decimals / decimals;
- return roundedValue.toFixed(precision);
- };
- //Function to calculate Offset Percent
- scope.percentOffset = function(offset) {
- return ((offset - minOffset) / offsetRange) * 100;
- };
- //Function to calculate Offset position
- scope.ptrOffset = function(newOffset){
- var newPercent, newValue;
- newOffset = Math.max(Math.min(newOffset, maxOffset), minOffset);
- newPercent = scope.percentOffset(newOffset);
- newValue = minValue + (valueRange * newPercent / 100.0);
- if (range) {
- var rangeSliderWidth;
- if (scope.ref === refLow) {
- scope.minHandleStyle = {left: newOffset + "px"};
- scope.minNewVal = newValue;
- scope.minPtrOffset = newOffset;
- minPtr.addClass('dragging');
- if (newValue > scope.maxNewVal) {
- scope.ref = refHigh;
- maxPtr[0].focus();
- scope.maxNewVal = newValue;
- scope.maxPtrOffset = newOffset;
- maxPtr.addClass('dragging');
- minPtr.removeClass('dragging');
- scope.maxHandleStyle = {left: newOffset + "px"};
- }
- }
- else {
- scope.maxHandleStyle = {left: newOffset + "px"};
- scope.maxNewVal = newValue;
- scope.maxPtrOffset = newOffset;
- maxPtr.addClass('dragging');
- if (newValue < scope.minNewVal) {
- scope.ref = refLow;
- minPtr[0].focus();
- scope.minVal = newValue;
- scope.minPtrOffset = newOffset;
- minPtr.addClass('dragging');
- maxPtr.removeClass('dragging');
- scope.minHandleStyle = {left: newOffset + "px"};
- }
- }
- rangeSliderWidth = parseInt(scope.maxPtrOffset) - parseInt(scope.minPtrOffset);
- scope.rangeStyle = {width: rangeSliderWidth + "px", left: scope.minPtrOffset + "px"};
- }
- else {
- if (disabled && newOffset > disableWidth) {
- scope.rangeStyle = {width: newOffset + "px", zIndex: 0};
- }
- else {
- singlePtr.addClass('dragging');
- scope.rangeStyle = {width: newOffset + "px"};
- }
- scope.handleStyle = {left: newOffset + "px"};
- }
- if ((scope.precision === undefined) || (scope.step === undefined)) {
- scope.precision = sliderDefaultOptions.precision;
- scope.step = sliderDefaultOptions.step;
- }
- newValue = scope.calStep(newValue, parseInt(scope.precision), parseFloat(scope.step), parseFloat(scope.floor));
- scope[scope.ref] = newValue;
- };
- }
- };
- }
- ]).directive('attSliderMin',[function()
- {
- return{
- require: '^attSlider',
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/slider/minContent.html'
- };
- }
- ]).directive('attSliderMax',[function()
- {
- return{
- require: '^attSlider',
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/slider/maxContent.html'
- };
- }
- ]);
-angular.module('att.abs.splitButtonDropdown', ['att.abs.utilities','att.abs.position'])
- .directive('attButtonDropdown', ['$document', '$parse', '$documentBind', '$timeout','$isElement', function ($document, $parse, $documentBind, $timeout,$isElement) {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html',
- scope: {
- btnText: "@",
- btnType: "@",
- btnLink: "@",
- btnClick: "&",
- toggleTitle:"@",
- },
- controller: ['$scope', '$element', function ($scope, $element) {
-
- this.cSelected = 0;
- this.closeAndFocusDropdown = function () {
- if ($scope.isDropDownOpen) {
- $scope.$apply(function () {
- $scope.isDropDownOpen = false;
- angular.element($element[0].querySelector('a.dropdown-toggle'))[0].focus();
- });
- }
- };
-
- this.focusNext = function () {
- this.cSelected = this.cSelected + 1 >= this.childScopes.length ?($scope.cycleSelection === true ? 0 : this.childScopes.length-1): this.cSelected +1;
- this.childScopes[this.cSelected].sFlag = true;
- this.resetFlag(this.cSelected);
- };
-
- this.focusPrev = function () {
- this.cSelected = this.cSelected -1 < 0 ? ($scope.cycleSelection === true ? this.childScopes.length-1 : 0) : this.cSelected - 1 ;
- this.childScopes[this.cSelected].sFlag = true;
- this.resetFlag(this.cSelected);
- };
-
- this.childScopes = [];
- this.registerScope = function(childScope)
- {
- this.childScopes.push(childScope);
- };
-
- this.resetFlag = function(index){
- for(var i=0; i < this.childScopes.length; i++)
- {
- if(i !== index)
- {
- this.childScopes[i].sFlag = false;
- }
- }
- };
-
- }],
- link: function (scope, element, attr) {
- scope.isSmall = attr.small === "" ? true : false;
- scope.multiselect = attr.multiselect === ""? true : false;
- scope.cycleSelection = attr.cycleSelection === "" ? true : false;
- scope.isDropDownOpen = false;
- scope.isActionDropdown = false;
-
- if (!(scope.btnText)) {
- scope.isActionDropdown = true;
- }
-
- scope.clickFxn = function () {
- if (typeof scope.btnClick === "function" && !scope.btnLink) {
- scope.btnClick = $parse(scope.btnClick);
- scope.btnClick();
- }
- if(scope.multiselect === true)
- {
- scope.isDropDownOpen = false;
- }
- };
-
- scope.toggleDropdown = function () {
- if (!(scope.btnType === 'disabled')) {
- scope.isDropDownOpen = !scope.isDropDownOpen;
- if (scope.isDropDownOpen) {
- $timeout(function () {
- angular.element(element[0].querySelector('li'))[0].focus();
- });
- }
- }
- };
-
- scope.btnTypeSelector = function (directiveValue, attrValue) {
- if (directiveValue !== "") {
- scope.btnTypeFinal = directiveValue;
- } else {
- scope.btnTypeFinal = attrValue;
- }
- };
-
- var outsideClick = function(e) {
- var isElement = $isElement(angular.element(e.target), element.find('ul').eq(0), $document);
- if (!isElement) {
- scope.isDropDownOpen = false;
- scope.$apply();
- }
- };
-
- $documentBind.click('isDropDownOpen', outsideClick, scope);
-
- attr.$observe('btnType', function (val) {
- scope.btnType = val;
- });
- attr.$observe('attButtonDropdown', function (val) {
- attr.attButtonDropdown = val;
- scope.btnTypeSelector(attr.attButtonDropdown, scope.btnType);
- });
- }
- };
-
- }])
-
-.directive('attButtonDropdownItem', ['$location','keymap', function ($location,keymap) {
- return {
- restrict: 'EA',
- require: ['^attButtonDropdown','?ngModel'],
- replace: true,
- transclude: true,
- templateUrl:'app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html', scope: {
- itemLink: "@"
- },
- link: function (scope, element, attr, ctrl) {
- var rootLink = angular.element(element[0].querySelector('a'));
- scope.sFlag = false;
- ctrl[0].registerScope(scope);
- var clickOnLink = function () {
- if (scope.itemLinkFinal) {
- $location.url(scope.itemLinkFinal);
- }
- };
-
- if(ctrl[1]){
- scope.isSelected = ctrl[1].$viewValue;
- }else{
- scope.isSelected = false;
- }
-
- element.bind('keydown', function(e) {
- if (keymap.isAllowedKey(e.keyCode) || keymap.isControl(e) || keymap.isFunctionKey(e)) {
- e.preventDefault();
- e.stopPropagation();
- switch (e.keyCode) {
- case keymap.KEY.DOWN:
- ctrl[0].focusNext();
- break;
- case keymap.KEY.UP:
- ctrl[0].focusPrev();
- break;
- case keymap.KEY.ENTER:
- scope.selectItem();
- break;
- case keymap.KEY.ESC:
- ctrl[0].closeAndFocusDropdown();
- break;
- default:
- break;
- }
-
- }
- scope.$apply();
- });
-
- scope.selectItem = function()
- {
- if(ctrl[1]){
- scope.$evalAsync(function(){ctrl[1].$setViewValue(!ctrl[1].$viewValue)});
- }
- };
-
- }
- };
- }]);
-
-angular.module('att.abs.splitIconButton', ['att.abs.utilities'])
-.constant('iconStateConstants', {
- MIDDLE: 'middle',
- LEFT: 'left',
- RIGHT: 'right',
- NEXT_TO_DROPDOWN:'next-to-dropdown',
- LEFT_NEXT_TO_DROPDOWN:'left-next-to-dropdown',
- DIR_TYPE: {
- LEFT: 'left',
- RIGHT: 'right',
- BUTTON: 'button'
- },
- SPLIT_ICON_BTN_EVENT_EMITTER_KEY: 'splitIconButtonTap'
-})
-.directive('expandableLine', [function(){
- return {
- restrict: 'EA',
- replace: true,
- priority: 300,
- require: ['^attSplitIconButton', 'expandableLine'],
- controller: ['$scope', function($scope){
- $scope.isActive = false;
- this.setActiveState = function(isActive){
- $scope.isActive = isActive;
- };
- this.isActive = $scope.isActive;
- this.dirType = $scope.dirType;
- }],
- template: '<div ng-class="{\'expand-line-container\': !isActive, \'expand-line-container-active\': isActive}"> <div ng-class="{\'hovered-line\':isActive, \'vertical-line\':!isActive}"> </div></div>',
- scope:{
- dirType: '@'
- },
- link: function(scope,element,attr,ctrls) {
- var attSplitIconButtonCtrl = ctrls[0];
- var expandableLineCtrl = ctrls[1];
- attSplitIconButtonCtrl.addSubCtrl(expandableLineCtrl);
- }
- };
-}])
-.controller('AttSplitIconCtrl', ['$scope', function($scope){
- this.setType = function(type){
- $scope.type = type;
- };
- this.isDropdown = function(isDropdown){
- $scope.isDropdown = isDropdown;
- };
- this.dropDownClicked = function(){
- if($scope.dropDownClicked) {
- $scope.dropDownClicked();
- }
- };
- this.dirType = $scope.dirType;
-}])
-.directive('attSplitIcon', ['$document', '$timeout','iconStateConstants','$documentBind','events', 'keymap',
- function($document,$timeout,iconStateConstants,$documentBind, events, keymap){
- return {
- restrict: 'EA',
- replace: true,
- priority: 200,
- transclude: true,
- require: ['^attSplitIconButton','attSplitIcon'],
- templateUrl: 'app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html',
- scope:{
- icon: '@',
- iconTitle: '@title',
- hoverWatch: '=',
- dropDownWatch: '=',
- dirType: '@'
- },
- controller:'AttSplitIconCtrl',
- link: function(scope,element,attr,ctrls){
- var attSplitIconButtonCtrl = ctrls[0];
- var attSplitIconCtrl = ctrls[1];
- attSplitIconButtonCtrl.addSubCtrl(attSplitIconCtrl);
- scope.iconStateConstants = iconStateConstants;
- var currentIndex = 0;
- var isMyElement = false;
- var listElements;
- scope.isDropdown = false;
- scope.isDropdownOpen = false;
- var outsideClick = function(e) {
- if(scope.isDropdown){
- if (isMyElement) {
- isMyElement = false;
- scope.toggleDropdown();
- } else{
- scope.toggleDropdown(false);
- }
- scope.$apply();
- }
- };
- if(attr.dropDownId && attr.dropDownId !== ''){
- scope.dropDownId = attr.dropDownId;
- scope.isDropdown = true;
- }
- scope.$on(iconStateConstants.SPLIT_ICON_BTN_EVENT_EMITTER_KEY, function(evnt, data){
- if(typeof data === 'boolean' && data) {
- scope.dropDownClicked();
- /*
- Check if the dropdown is open and if we are selecting one
- of the items, so that when pressing enter it will trigger it.
- */
- if(scope.isDropDownOpen) {
- listElements[currentIndex].eq(0).find('a')[0].click();
- }
- } else {
- var e = data;
- //Only trigger the keyboard event if the icon button is a dropdown type
- if(scope.isDropdown) {
- triggerKeyboardEvents(e);
- }
- }
- function triggerKeyboardEvents(e) {
- switch(e.which) {
- case (keymap.KEY.TAB):
- scope.toggleDropdown(false);
- scope.$digest();
- break;
- case (keymap.KEY.ESC):
- outsideClick();
- break;
- case (keymap.KEY.ENTER):
- if (scope.isDropDownOpen) {
- listElementsInit();
- }
- break;
- case (keymap.KEY.UP):
- e.preventDefault();
- events.stopPropagation(e);
- if(scope.isDropDownOpen) {
- scope.previousItemInDropdown();
- }
- break;
- case (keymap.KEY.DOWN):
- e.preventDefault();
- events.stopPropagation(e);
- //Dropdown is open and the user taps down again
- if(scope.isDropDownOpen) {
- //Now we need to go through the rows in the dropdown
- scope.nextItemInDropdown();
- } else {
- isMyElement = true;
- outsideClick();
- listElementsInit();
- }
- break;
- default:
- break;
- }
- }
- function listElementsInit() {
- if(listElements === undefined) {
- listElements = [];
- var liTemps = element.find('li');
- for(var i = 0; i < liTemps.length; i++) {
- listElements.push(liTemps.eq(i));
- }
- listElements[currentIndex].children().eq(0).addClass('selected-item');
- }
- }
- });
- scope.nextItemInDropdown = function(){
- if(listElements && currentIndex < listElements.length - 1){
- currentIndex++;
- listElements[currentIndex - 1].children().eq(0).removeClass('selected-item');
- listElements[currentIndex].children().eq(0).addClass('selected-item');
- }
- };
- scope.previousItemInDropdown = function(){
- if(currentIndex > 0) {
- currentIndex--;
- listElements[currentIndex].children().eq(0).addClass('selected-item');
-
- if(currentIndex + 1 < listElements.length)
- listElements[currentIndex + 1].children().eq(0).removeClass('selected-item');
- }
- };
- scope.$watch('isIconHovered', function(val) {
- scope.hoverWatch = val;
- });
- scope.$watch('type', function(val) {
- function toggleValues(isMiddle,isNextToDropDown,isRight,isLeft,isLeftNextDropdown){
- scope['isMiddle'] = isMiddle;
- scope['isNextToDropDown'] = isNextToDropDown;
- scope['isRight'] = isRight;
- scope['isLeft'] = isLeft;
- scope['isLeftNextDropdown'] = isLeftNextDropdown;
- };
- switch(val) {
- case (scope.iconStateConstants.MIDDLE):
- toggleValues(true,false,false,true,false);
- break;
- case (scope.iconStateConstants.LEFT):
- toggleValues(false,false,false,true,false);
- break;
- case (scope.iconStateConstants.RIGHT):
- toggleValues(false,false,true,false,false);
- break;
- case (scope.iconStateConstants.NEXT_TO_DROPDOWN):
- toggleValues(false,true,true,true,false);
- break;
- case (scope.iconStateConstants.LEFT_NEXT_TO_DROPDOWN):
- toggleValues(false,false,false,true,true);
- break;
- default:
- break;
- }
- });
- scope.dropDownClicked = function() {
- isMyElement = true;
- };
- scope.toggleDropdown = function(val) {
- if(val !== undefined) {
- scope.isDropDownOpen = val;
- } else {
- scope.isDropDownOpen = !scope.isDropDownOpen;
- }
- scope.dropDownWatch = scope.isDropDownOpen;
- };
- $documentBind.click('isDropdown', outsideClick, scope);
- }
- };
-}])
-.controller('AttSplitIconButtonCtrl',['$scope', 'iconStateConstants',function($scope,iconStateConstants){
- this.subCtrls = [];
- $scope.isLeftLineShown=true;
- $scope.isRightLineShown=true;
- $scope.childrenScopes = [];
- var that = this;
-
- function getDirIndex(dirType) {
- var index = -1;
- for(var c in that.subCtrls) {
- var ctrl = that.subCtrls[c];
- if(ctrl.dirType === dirType) {
- index = c;
- break;
- }
- }
- return index;
- }
- this.addSubCtrl = function(sub) {
- this.subCtrls.push(sub);
- };
- this.isLeftLineShown = function(isShown) {
- if(isShown === undefined) {
- return $scope.isLeftLineShown;
- } else {
- $scope.isLeftLineShown = isShown;
- }
- };
- this.isRightLineShown = function(isShown) {
- if(isShown === undefined) {
- return $scope.isRightLineShown;
- } else {
- $scope.isRightLineShown = isShown;
- }
- };
- this.setLeftLineHover = function(isHovered) {
- var leftLineIndex = getDirIndex(iconStateConstants.DIR_TYPE.LEFT);
-
- if($scope.isLeftLineShown && this.subCtrls[leftLineIndex] && this.subCtrls[leftLineIndex].setActiveState) {
- this.subCtrls[leftLineIndex].setActiveState(isHovered);
- }
- };
- this.setRightLineHover = function(isHovered) {
- var rightLineIndex = getDirIndex(iconStateConstants.DIR_TYPE.RIGHT);
- if($scope.isRightLineShown && this.subCtrls[rightLineIndex] && this.subCtrls[rightLineIndex].setActiveState){
- this.subCtrls[rightLineIndex].setActiveState(isHovered);
- }
- };
- this.toggleLines = function(isHovered, buttonGroupCtrl, buttonCtrl, isDropDownOpen) {
- var subIconButtons = buttonGroupCtrl.subIconButtons;
- var subIconButtonsLength = subIconButtons.length;
- var leftLineIndex = getDirIndex(iconStateConstants.DIR_TYPE.LEFT);
- var rightLineIndex = getDirIndex(iconStateConstants.DIR_TYPE.RIGHT);
- function noVerticalLineToggle() {
- for(var i =0; i < subIconButtonsLength; i++) {
- if(subIconButtons[i] === buttonCtrl) {
- if(i + 1 <= subIconButtonsLength - 1 && subIconButtons[i+1].isLeftLineShown()
- && subIconButtons[i+1].subCtrls[leftLineIndex]
- && subIconButtons[i+1].subCtrls[leftLineIndex].setActiveState) {
- subIconButtons[i+1].subCtrls[leftLineIndex].setActiveState(isHovered);
- }
- if(i - 1 >= 0 && subIconButtons[i-1].isRightLineShown()
- && subIconButtons[i-1].subCtrls[rightLineIndex]
- && subIconButtons[i-1].subCtrls[rightLineIndex].setActiveState) {
- subIconButtons[i-1].subCtrls[rightLineIndex].setActiveState(isHovered);
- }
- break;
- }
- }
- }
- if(isDropDownOpen) {
- /*
- If the button is next to the dropdown button then just keep the
- buttons left line or its left neighbors right line toggled on
- If the button is the dropdown button don't do anything
- else do things normally witht the button
- */
- /*if(subIconButtons[subIconButtonsLength-1] === buttonCtrl) {
-
- }
- else */
- if(subIconButtons[subIconButtonsLength-2]==buttonCtrl) {
- if(subIconButtons[subIconButtonsLength-2].isLeftLineShown()) {
- subIconButtons[subIconButtonsLength-2].subCtrls[leftLineIndex].setActiveState(isHovered);
- } else if(subIconButtonsLength - 3 >= 0) {
- if(subIconButtons[subIconButtonsLength-3].isRightLineShown()) {
- subIconButtons[subIconButtonsLength-3].subCtrls[rightLineIndex].setActiveState(isHovered);
- }
- }
- } else {
- noVerticalLineToggle();
-
- if($scope.isLeftLineShown) {
- this.subCtrls[leftLineIndex].setActiveState(isHovered);
- }
- if($scope.isRightLineShown) {
- this.subCtrls[rightLineIndex].setActiveState(isHovered);
- }
- }
- } else { // End of if(isDropDownOpen)
- //Handle Special cases where they aren't showing any vertical lines
- //and the dropdown isn't down
- if(!$scope.isLeftLineShown && !$scope.isRightLineShown) {
- noVerticalLineToggle();
- }
- if($scope.isLeftLineShown && this.subCtrls[leftLineIndex].setActiveState) {
- this.subCtrls[leftLineIndex].setActiveState(isHovered);
- }
- if($scope.isRightLineShown && this.subCtrls[rightLineIndex].setActiveState){
- this.subCtrls[rightLineIndex].setActiveState(isHovered);
- }
- }
- };
- this.setButtonType = function(type){
- var buttonIndex = getDirIndex(iconStateConstants.DIR_TYPE.BUTTON);
- if(this.subCtrls[buttonIndex] && this.subCtrls[buttonIndex].setType) {
- this.subCtrls[buttonIndex].setType(type);
- }
- };
-}])
-.directive('attSplitIconButton', ['$document', 'iconStateConstants', 'keymap',
- function($document, iconStateConstants, keymap){
- return {
- restrict: 'EA',
- replace: true,
- priority: 100,
- transclude: true,
- require: ['^attSplitIconButtonGroup', 'attSplitIconButton'],
- controller: 'AttSplitIconButtonCtrl',
- templateUrl: 'app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html',
- scope:{
- icon: '@',
- title: '@',
- dropDownId: '@'
- },
- link: function(scope,element,attr,ctrls) {
- if(!scope.title) {
- scope.title = scope.icon;
- }
- var attSplitButtonGroupCtrl = ctrls[0];
- var attSplitIconButtonCtrl = ctrls[1];
- attSplitButtonGroupCtrl.addIconButton(attSplitIconButtonCtrl);
- element.bind('keydown', function(e){
- //Check if the key is the up or down key
- if(e.which === keymap.KEY.ESC ||
- e.which === keymap.KEY.DOWN ||
- e.which === keymap.KEY.ENTER ||
- e.which === keymap.KEY.UP ||
- e.which === keymap.KEY.TAB ) {
- scope.clickHandler();
- scope.$broadcast(iconStateConstants.SPLIT_ICON_BTN_EVENT_EMITTER_KEY, e);
- }
- });
- scope.dropDownWatch = false;
- scope.iconStateConstants = iconStateConstants;
- scope.clickHandler = function() {
- attSplitButtonGroupCtrl.hideLeftLineRightButton(attSplitIconButtonCtrl);
- };
- scope.$watch('isHovered', function(val){
- if(val) {
- attSplitIconButtonCtrl.toggleLines(val,attSplitButtonGroupCtrl,attSplitIconButtonCtrl,attSplitButtonGroupCtrl.isDropDownOpen);
- } else{
- attSplitIconButtonCtrl.toggleLines(val,attSplitButtonGroupCtrl,attSplitIconButtonCtrl,attSplitButtonGroupCtrl.isDropDownOpen);
- }
- });
- scope.$watch('dropDownWatch', function(val) {
- attSplitButtonGroupCtrl.isDropDownOpen = val;
- attSplitButtonGroupCtrl.toggleDropdownState(val);
- });
- }
- }
-}])
-.controller('AttSplitIconButtonGroupCtrl', ['$scope','iconStateConstants',function($scope,iconStateConstants){
- this.subIconButtons = [];
- this.addIconButton = function(iconButton){
- this.subIconButtons.push(iconButton);
- };
- this.isDropDownOpen = false;
- this.hideLeftLineRightButton = function(btn){
- var numButtons = this.subIconButtons.length;
- var buttonLeftOfRightMost = this.subIconButtons[numButtons - 2];
- var rightMostButton = this.subIconButtons[numButtons -1];
-
- if (btn != buttonLeftOfRightMost && btn != rightMostButton ){
- rightMostButton.setLeftLineHover(false);
- }
- };
- this.toggleDropdownState = function(isDropDownOpen){
- var numButtons = this.subIconButtons.length;
- if(numButtons > 2) {
- if(isDropDownOpen) {
- if(this.subIconButtons[numButtons - 2].isRightLineShown()) {
- this.subIconButtons[numButtons - 2].setRightLineHover(true);
- } else {
- this.subIconButtons[numButtons - 1].setLeftLineHover(true);
- }
- this.subIconButtons[numButtons - 2].setButtonType(iconStateConstants.NEXT_TO_DROPDOWN);
- } else {
- this.subIconButtons[numButtons - 1].setLeftLineHover(false);
- this.subIconButtons[numButtons - 2].setButtonType(iconStateConstants.MIDDLE);
- }
- } else {
- if(isDropDownOpen) {
- this.subIconButtons[0].setRightLineHover(true);
- this.subIconButtons[0].setButtonType(iconStateConstants.LEFT_NEXT_TO_DROPDOWN);
- } else {
- this.subIconButtons[0].setButtonType(iconStateConstants.LEFT);
- }
- }
- };
-}])
-.directive('attSplitIconButtonGroup', ['$document', '$timeout', 'iconStateConstants' ,function($document,$timeout,iconStateConstants){
- return {
- restrict: 'EA',
- replace: true,
- priority: 50,
- transclude: true,
- require: 'attSplitIconButtonGroup',
- controller: 'AttSplitIconButtonGroupCtrl',
- templateUrl: 'app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html',
- scope:{},
- link: function(scope,element,attr,ctrls){
- $timeout(initialize,100);
- function initialize(){
- var subIconButtonCtrls = ctrls.subIconButtons;
- var leftMostButtonIndex = 0;
- var rightMostButtonIndex =subIconButtonCtrls.length-1;
- //left most button config
- subIconButtonCtrls[leftMostButtonIndex].setButtonType(iconStateConstants.LEFT);
- subIconButtonCtrls[leftMostButtonIndex].isLeftLineShown(false);
- subIconButtonCtrls[leftMostButtonIndex].isRightLineShown(true);
- //right most button config
- subIconButtonCtrls[rightMostButtonIndex].setButtonType(iconStateConstants.RIGHT);
- subIconButtonCtrls[rightMostButtonIndex].isRightLineShown(false);
- subIconButtonCtrls[rightMostButtonIndex].isLeftLineShown(false);
- //middle buttons config
- if(rightMostButtonIndex >= 2) {
- var index = 1;
- while(index < rightMostButtonIndex) {
- subIconButtonCtrls[index].setButtonType(iconStateConstants.MIDDLE);
- subIconButtonCtrls[index].isRightLineShown(false);
- subIconButtonCtrls[index].isLeftLineShown(false);
- index++;
- }
- var skipIndex = 2;
- while(skipIndex <= rightMostButtonIndex){
- if(skipIndex == rightMostButtonIndex) {
- subIconButtonCtrls[skipIndex].isLeftLineShown(true);
- } else {
- subIconButtonCtrls[skipIndex].isRightLineShown(true);
- subIconButtonCtrls[skipIndex].isLeftLineShown(true);
- }
- skipIndex = skipIndex + 2;
- }
- }
- //reposition the dropdown
- var ulElem = element.find('ul');
- if(ulElem.length > 0) {
- var numButtons = rightMostButtonIndex+1;
- if(numButtons > 2) {
- var offset = (numButtons)*34-70+(numButtons/1.5) + 0.5;
- var offSetStr = offset+'px';
- angular.element(ulElem).css('left',offSetStr);
- angular.element(ulElem).css('border-top-left-radius','0px');
- } else {
- angular.element(ulElem).css('left','0px');
- }
- }
- }
- }
- }
-}]);
-
-angular.module('att.abs.stepSlider', ['att.abs.position'])
- .constant('sliderConstants', {
- /*
- The MIT License (MIT)
- Copyright (c) 2013 Julien Valéry
- */
- SLIDER: {
- settings: {
- from: 1,
- to: 40,
- step: 1,
- smooth: true,
- limits: true,
- value: "3",
- dimension: "",
- vertical: false
- },
- className: "jslider",
- selector: ".jslider-"
- },
- EVENTS: {
- },
- COLORS: {
- GREEN: 'green',
- BLUE_HIGHLIGHT: 'blue',
- MAGENTA: 'magenta',
- GOLD: 'gold',
- PURPLE: 'purple',
- DARK_BLUE: 'dark-blue',
- REGULAR: 'regular',
- WHITE: 'white'
- }
- })
- .factory('utils', function () {
- /*
- The MIT License (MIT)
- Copyright (c) 2013 Julien Valéry
- */
- return {
- offset: function (elm) {
- var rawDom = elm[0];
- var _x = 0;
- var _y = 0;
- var body = document.documentElement || document.body;
- var scrollX = window.pageXOffset || body.scrollLeft;
- var scrollY = window.pageYOffset || body.scrollTop;
- _x = rawDom.getBoundingClientRect().left + scrollX;
- _y = rawDom.getBoundingClientRect().top + scrollY;
- return {left: _x, top: _y};
- },
- roundUpToScale: function (mousePrc, scale, cutOffWidth, cutOffIndex) {
- var lowerVal;
- var higherVal;
- var newMousePrc;
- var middle;
-
- for (var index = 1; index < scale.length; index++) {
- lowerVal = scale[index - 1];
- higherVal = scale[index];
- middle = ((higherVal - lowerVal) * .5) + lowerVal;
- /*
- Handles a situation where the user clicks close to the start point of
- the slider but the pointer doesn't move
- */
- if ((lowerVal === 0 && mousePrc <= middle) || checkEquality(lowerVal, mousePrc)) {
- newMousePrc = lowerVal;
- break;
- }
- else if (lowerVal < mousePrc && (mousePrc < higherVal ||
- checkEquality(mousePrc, higherVal)))
- {
- newMousePrc = higherVal;
- break;
- }
- }
- //Check if the newMousePrc is <= the cuttOffPoint
- if (cutOffWidth && newMousePrc < cutOffWidth) {
- return scale[cutOffIndex];
- }
- else {
- return newMousePrc;
- }
- /*
- Checks to see if 2 points are so close that they are
- basically equal.
- */
- function checkEquality(point1, point2) {
- var precision = 0.1;
- if (Math.abs(point2 - point1) <= precision) {
- return true;
- }
- return false;
- }
- },
- valueForDifferentScale: function (from, to, prc, prcToValueMapper) {
- var decimalPrc = prc / 100;
- if (decimalPrc === 0) {
- return from;
- }
- return prcToValueMapper[prc];
- },
- /* converts the default value Kbps to Mbps or Gbps */
- convertToMbpsGbps: function (unitValue, unitLabel, configDecimalPlaces) {
- var defaultDecimalPlaces = 3; /* this is the default decimal places as per business requirements */
- if (configDecimalPlaces) {
- defaultDecimalPlaces = configDecimalPlaces;
- }
-
- if ((unitValue > 1024 && unitValue < 1000000) && angular.equals(unitLabel, 'Kbps')) {
- unitValue = truncator((unitValue/1000), defaultDecimalPlaces);
- unitLabel = 'Mbps';
- } else if ((unitValue > 1024 && unitValue < 1000000) && angular.equals(unitLabel, 'Mbps')){
- unitValue = truncator((unitValue/1000), defaultDecimalPlaces);
- unitLabel = 'Mbps';
- } else if (unitValue <= 1024 && angular.equals(unitLabel, 'Mbps')) {
- unitLabel = 'Kbps';
- } else {
- unitLabel = 'Kbps';
- }
-
- if (unitValue >= 1000000 && angular.equals(unitLabel, 'Kbps')) {
- unitValue = truncator((unitValue/1000000), defaultDecimalPlaces);
- unitLabel = 'Gbps';
- }
- return {
- unitValue: unitValue,
- unitLabel: unitLabel
- };
-
- function truncator(numToTruncate, intDecimalPlaces) {
- var cnvrtdNum = Math.pow(10, intDecimalPlaces);
- return ~~(numToTruncate * cnvrtdNum)/cnvrtdNum;
- }
- },
- getConversionFactorValue: function (value, conversion, firstDimension) {
- /*
- Loop through the conversion array and keep checking the
- startVal
- */
- if (value <= conversion[0].startVal) {
- return{
- scaledVal: value,
- scaledDimension: firstDimension
- };
- }
- var endIndex = 0;
- for (var index in conversion) {
- var c = conversion[index];
- if (value > c.startVal) {
- endIndex = index;
- }
- }
- var scaleFactor = conversion[endIndex].scaleFactor;
- var scaledVal = value / scaleFactor;
- var scaledDimension = conversion[endIndex].dimension;
- return {
- scaledVal: scaledVal,
- scaledDimension: scaledDimension
- };
- }
- };
- })
- .factory('sliderDraggable', ['utils', function (utils) {
- /*
- The MIT License (MIT)
- Copyright (c) 2013 Julien Valéry
- */
- function Draggable() {
- this._init.apply(this, arguments);
- }
- Draggable.prototype.oninit = function () {
- };
- Draggable.prototype.events = function () {
- };
- Draggable.prototype.onmousedown = function () {
- this.ptr.css({position: "absolute"});
- };
- Draggable.prototype.onmousemove = function (evt, x, y) {
- this.ptr.css({left: x, top: y});
- };
- Draggable.prototype.onmouseup = function () {
- };
- Draggable.prototype.isDefault = {
- drag: false,
- clicked: false,
- toclick: true,
- mouseup: false
- };
- Draggable.prototype._init = function () {
- if (arguments.length > 0) {
- this.ptr = arguments[0];
- this.parent = arguments[2];
- if (!this.ptr) {
- return;
- }
- this.is = {};
- angular.extend(this.is, this.isDefault);
- var offset = utils.offset(this.ptr);
- this.d = {
- left: offset.left,
- top: offset.top,
- width: this.ptr[0].clientWidth,
- height: this.ptr[0].clientHeight
- };
- this.oninit.apply(this, arguments);
- this._events();
- }
- };
- Draggable.prototype._getPageCoords = function (event) {
- var value = {};
- if (event.targetTouches && event.targetTouches[0]) {
- value = {x: event.targetTouches[0].pageX, y: event.targetTouches[0].pageY};
- } else {
- value = {x: event.pageX, y: event.pageY};
- }
- return value;
- };
- Draggable.prototype._bindEvent = function (ptr, eventType, handler) {
- if (this.supportTouches_) {
- ptr[0].attachEvent(this.events_[ eventType ], handler);
- }
- else {
- if (ptr.bind) {
- ptr.bind(this.events_[ eventType ], handler);
- }
- }
- };
- Draggable.prototype._events = function () {
- var self = this;
- this.supportTouches_ = 'ontouchend' in document;
- this.events_ = {
- "click": this.supportTouches_ ? "touchstart" : "click",
- "down": this.supportTouches_ ? "touchstart" : "mousedown",
- "move": this.supportTouches_ ? "touchmove" : "mousemove",
- "up": this.supportTouches_ ? "touchend" : "mouseup",
- "mousedown": this.supportTouches_ ? "mousedown" : "mousedown"
- };
- var documentElt = angular.element(window.document);
- this._bindEvent(documentElt, "move", function (event) {
- if (self.is.drag) {
- event.stopPropagation();
- event.preventDefault();
- if (!self.parent.disabled) {
- self._mousemove(event);
- }
- }
- });
- this._bindEvent(documentElt, "down", function (event) {
- if (self.is.drag) {
- event.stopPropagation();
- event.preventDefault();
- }
- });
- this._bindEvent(documentElt, "up", function (event) {
- self._mouseup(event);
- });
- this._bindEvent(this.ptr, "down", function (event) {
- self._mousedown(event);
- return false;
- });
- this._bindEvent(this.ptr, "up", function (event) {
- self._mouseup(event);
- });
- this.events();
- };
- Draggable.prototype._mousedown = function (evt) {
- this.is.drag = true;
- this.is.clicked = false;
- this.is.mouseup = false;
- var coords = this._getPageCoords(evt);
- this.cx = coords.x - this.ptr[0].offsetLeft;
- this.cy = coords.y - this.ptr[0].offsetTop;
- angular.extend(this.d, {
- left: this.ptr[0].offsetLeft,
- top: this.ptr[0].offsetTop,
- width: this.ptr[0].clientWidth,
- height: this.ptr[0].clientHeight
- });
- if (this.outer && this.outer.get(0)) {
- this.outer.css({height: Math.max(this.outer.height(), $(document.body).height()), overflow: "hidden"});
- }
- this.onmousedown(evt);
- };
- Draggable.prototype._mousemove = function (evt) {
- if (this.uid === 0) {
- return;
- }
- this.is.toclick = false;
- var coords = this._getPageCoords(evt);
- this.onmousemove(evt, coords.x - this.cx, coords.y - this.cy);
- };
- Draggable.prototype._mouseup = function (evt) {
- if (this.is.drag) {
- this.is.drag = false;
- if (this.outer && this.outer.get(0)) {
- if ($.browser.mozilla) {
- this.outer.css({overflow: "hidden"});
- } else {
- this.outer.css({overflow: "visible"});
- }
- if ($.browser.msie && $.browser.version === '6.0') {
- this.outer.css({height: "100%"});
- } else {
- this.outer.css({height: "auto"});
- }
- }
- this.onmouseup(evt);
- }
- };
- return Draggable;
- }])
- .factory('sliderPointer', ['sliderDraggable', 'utils', function (Draggable, utils) {
- /*
- The MIT License (MIT)
- Copyright (c) 2013 Julien Valéry
- */
- function SliderPointer() {
- Draggable.apply(this, arguments);
- }
- SliderPointer.prototype = new Draggable();
- SliderPointer.prototype.oninit = function (ptr, id, _constructor) {
- this.uid = id;
- this.parent = _constructor;
- this.value = {};
- this.settings = angular.copy(_constructor.settings);
- };
- SliderPointer.prototype.onmousedown = function (evt) {
- var off = utils.offset(this.parent.domNode);
- var offset = {
- left: off.left,
- top: off.top,
- width: this.parent.domNode[0].clientWidth,
- height: this.parent.domNode[0].clientHeight
- };
- this._parent = {
- offset: offset,
- width: offset.width,
- height: offset.height
- };
- this.ptr.addClass("jslider-pointer-hover");
- this.setIndexOver();
- };
- SliderPointer.prototype.onmousemove = function (evt, x, y) {
- var coords = this._getPageCoords(evt);
- //val is the percent where the slider pointer is located
- var val = this.calc(coords.x);
- if (!this.parent.settings.smooth) {
- val = utils.roundUpToScale(val,
- this.parent.settings.scale,
- this.parent.settings.cutOffWidth,
- this.parent.settings.cutOffIndex);
- }
- var cutOffWidth = this.parent.settings.cutOffWidth;
- if (cutOffWidth && val < cutOffWidth) {
- val = cutOffWidth;
- }
- this._set(val);
- };
- SliderPointer.prototype.onmouseup = function (evt) {
- if (this.settings.callback && angular.isFunction(this.settings.callback)) {
- var val = this.parent.getValue();
- this.settings.callback.call(this.parent, val);
- }
- this.ptr.removeClass("jslider-pointer-hover");
- };
- SliderPointer.prototype.setIndexOver = function () {
- this.parent.setPointersIndex(1);
- this.index(2);
- };
- SliderPointer.prototype.index = function (i) {
- };
- SliderPointer.prototype.limits = function (x) {
- return this.parent.limits(x, this);
- };
- SliderPointer.prototype.calc = function (coords) {
- var diff = coords - this._parent.offset.left;
- var val = this.limits((diff * 100) / this._parent.width);
- return val;
- };
- SliderPointer.prototype.set = function (value, opt_origin) {
- this.value.origin = this.parent.round(value);
- this._set(this.parent.valueToPrc(value, this), opt_origin);
- };
- SliderPointer.prototype._set = function (prc, opt_origin) {
- if (!opt_origin) {
- this.value.origin = this.parent.prcToValue(prc);
- }
- this.value.prc = prc;
- //Sets the location of the SliderPointer
- this.ptr.css({left: prc + '%'});
- this.parent.redraw(this);
- };
- return SliderPointer;
- }])
- .factory('slider', ['sliderPointer', 'sliderConstants', 'utils', function (SliderPointer, sliderConstants, utils) {
- /*
- The MIT License (MIT)
- Copyright (c) 2013 Julien Valéry
- */
- var cutOffDom;
- function Slider() {
- return this.init.apply(this, arguments);
- }
- function changeCutOffWidth(width) {
- cutOffDom.css('width', width);
- }
- ;
- Slider.prototype.changeCutOffWidth = changeCutOffWidth;
- Slider.prototype.init = function (inputNode, templateNode, settings) {
- this.settings = sliderConstants.SLIDER.settings;
- angular.extend(this.settings, angular.copy(settings));
- this.inputNode = inputNode;
- this.inputNode.addClass("ng-hide");
- this.settings.interval = this.settings.to - this.settings.from;
- if (this.settings.calculate && $.isFunction(this.settings.calculate)) {
- this.nice = this.settings.calculate;
- }
- if (this.settings.onstatechange && $.isFunction(this.settings.onstatechange)) {
- this.onstatechange = this.settings.onstatechange;
- }
- this.is = {init: false};
- this.o = {};
- this.create(templateNode);
- };
- Slider.prototype.create = function (templateNode) {
- var $this = this;
- this.domNode = templateNode;
- var off = utils.offset(this.domNode);
- var offset = {
- left: off.left,
- top: off.top,
- width: this.domNode[0].clientWidth,
- height: this.domNode[0].clientHeight
- };
- this.sizes = {domWidth: this.domNode[0].clientWidth, domOffset: offset};
- angular.extend(this.o, {
- pointers: {},
- labels: {
- 0: {
- o: angular.element(this.domNode.find('div')[5])
- },
- 1: {
- o: angular.element(this.domNode.find('div')[6])
- }
- },
- limits: {
- 0: angular.element(this.domNode.find('div')[3]),
- 1: angular.element(this.domNode.find('div')[5])
- }
- });
- angular.extend(this.o.labels[0], {
- value: this.o.labels[0].o.find("span")
- });
- angular.extend(this.o.labels[1], {
- value: this.o.labels[1].o.find("span")
- });
- if (!$this.settings.value.split(";")[1]) {
- this.settings.single = true;
- }
- var domNodeDivs = this.domNode.find('div');
- cutOffDom = angular.element(domNodeDivs[8]);
- if (cutOffDom && cutOffDom.css) {
- cutOffDom.css('width', '0%');
- }
- var pointers = [angular.element(domNodeDivs[1]), angular.element(domNodeDivs[2])];
- angular.forEach(pointers, function (pointer, key) {
- $this.settings = angular.copy($this.settings);
- var value = $this.settings.value.split(';')[key];
- if (value) {
- $this.o.pointers[key] = new SliderPointer(pointer, key, $this);
- var prev = $this.settings.value.split(';')[key - 1];
- if (prev && parseInt(value, 10) < parseInt(prev, 10)) {
- value = prev;
- }
- var value1 = value < $this.settings.from ? $this.settings.from : value;
- value1 = value > $this.settings.to ? $this.settings.to : value;
- $this.o.pointers[key].set(value1, true);
- if (key === 0) {
- $this.domNode.bind('mousedown', $this.clickHandler.apply($this));
- }
- }
- });
- this.o.value = angular.element(this.domNode.find("i")[2]);
- this.is.init = true;
- angular.forEach(this.o.pointers, function (pointer) {
- $this.redraw(pointer);
- });
- };
- Slider.prototype.clickHandler = function () {
- var self = this;
- return function (evt) {
- if (self.disabled) {
- return;
- }
- var className = evt.target.className;
- var targetIdx = 0;
- if (className.indexOf('jslider-pointer-to') > 0) {
- targetIdx = 1;
- }
- var _off = utils.offset(self.domNode);
- var offset = {
- left: _off.left,
- top: _off.top,
- width: self.domNode[0].clientWidth,
- height: self.domNode[0].clientHeight
- };
- targetIdx = 1;
- var targetPtr = self.o.pointers[targetIdx];
- targetPtr._parent = {offset: offset, width: offset.width, height: offset.height};
- targetPtr._mousemove(evt);
- targetPtr.onmouseup();
- return false;
- };
- };
- Slider.prototype.disable = function (bool) {
- this.disabled = bool;
- };
- Slider.prototype.nice = function (value) {
- return value;
- };
- Slider.prototype.onstatechange = function () {
- };
- Slider.prototype.limits = function (x, pointer) {
- if (!this.settings.smooth) {
- var step = this.settings.step * 100 / (this.settings.interval);
- x = Math.round(x / step) * step;
- }
- var another = this.o.pointers[1 - pointer.uid];
- if (another && pointer.uid && x < another.value.prc) {
- x = another.value.prc;
- }
- if (another && !pointer.uid && x > another.value.prc) {
- x = another.value.prc;
- }
- if (x < 0) {
- x = 0;
- }
- if (x > 100) {
- x = 100;
- }
- var val = Math.round(x * 10) / 10;
- return val;
- };
- Slider.prototype.setPointersIndex = function (i) {
- angular.forEach(this.getPointers(), function (pointer, i) {
- pointer.index(i);
- });
- };
- Slider.prototype.getPointers = function () {
- return this.o.pointers;
- };
- Slider.prototype.onresize = function () {
- var self = this;
- this.sizes = {
- domWidth: this.domNode[0].clientWidth,
- domHeight: this.domNode[0].clientHeight,
- domOffset: {
- left: this.domNode[0].offsetLeft,
- top: this.domNode[0].offsetTop,
- width: this.domNode[0].clientWidth,
- height: this.domNode[0].clientHeight
- }
- };
- angular.forEach(this.o.pointers, function (ptr, key) {
- self.redraw(ptr);
- });
- };
- Slider.prototype.update = function () {
- this.onresize();
- this.drawScale();
- };
- Slider.prototype.drawScale = function () {
- };
- Slider.prototype.redraw = function (pointer) {
- if (!this.settings.smooth) {
- var newMousePrc = utils.roundUpToScale(pointer.value.prc,
- this.settings.scale,
- this.settings.cutOffWidth,
- this.settings.cutOffIndex);
- pointer.value.origin = newMousePrc;
- pointer.value.prc = newMousePrc;
- }
-
- if (!this.is.init) {
- return false;
- }
- this.setValue();
- var width = this.o.pointers[1].value.prc;
- var newPos = {left: '0%', width: width + '%'};
- this.o.value.css(newPos);
- var htmlValue = this.nice(pointer.value.origin);
- var scaledDimension = this.settings.firstDimension;
- if (this.settings.stepWithDifferentScale && !this.settings.smooth) {
- htmlValue = utils.valueForDifferentScale(this.settings.from,
- this.settings.to, htmlValue, this.settings.prcToValueMapper);
- }
- //This is the base value before the conversion
- if (this.settings.realtimeCallback && angular.isFunction(this.settings.realtimeCallback)
- && this.settings.cutOffVal !== undefined && pointer.uid === 1) {
- this.settings.realtimeCallback(htmlValue);
- }
- //Need to change this to the correct value for the scale
- if (this.settings.conversion) {
- var conversionObj = utils.getConversionFactorValue(parseInt(htmlValue),
- this.settings.conversion,
- this.settings.firstDimension);
- htmlValue = conversionObj.scaledVal;
- scaledDimension = conversionObj.scaledDimension;
- }
-
- htmlValue = parseFloat(htmlValue);
- var tooltipLabel = utils.convertToMbpsGbps(htmlValue, scaledDimension, this.settings.decimalPlaces);
-
- this.o.labels[pointer.uid].value.html(tooltipLabel.unitValue + ' ' + tooltipLabel.unitLabel);
- //Top tooltip label
- this.redrawLabels(pointer);
- };
- Slider.prototype.redrawLabels = function (pointer) {
- function setPosition(label, sizes, prc) {
- sizes.margin = -sizes.label / 2;
- var domSize = self.sizes.domWidth;
- var label_left = sizes.border + sizes.margin;
- if (label_left < 0) {
- sizes.margin -= label_left;
- }
- if (sizes.border + sizes.label / 2 > domSize) {
- sizes.margin = 0;
- sizes.right = true;
- } else
- sizes.right = false;
- //Adjust the tooltip location
- sizes.margin = -((label.o[0].clientWidth / 2) - label.o[0].clientWidth / 20);
- label.o.css({left: prc + "%", marginLeft: sizes.margin, right: "auto"});
- if (sizes.right)
- label.o.css({left: "auto", right: 0});
- return sizes;
- }
- var self = this;
- var label = this.o.labels[pointer.uid];
- var prc = pointer.value.prc;
- var sizes = {
- label: label.o[0].offsetWidth,
- right: false,
- border: (prc * domSize) / 100
- };
- var another_label = null;
- var another = null;
- if (!this.settings.single) {
- another = this.o.pointers[1 - pointer.uid];
- another_label = this.o.labels[another.uid];
- switch (pointer.uid) {
- case 0:
- if (sizes.border + sizes.label / 2 > another_label.o[0].offsetLeft - this.sizes.domOffset.left) {
- another_label.o.css({visibility: "hidden"});
- another_label.value.html(this.nice(another.value.origin));
- label.o.css({visibility: "hidden"});
- prc = (another.value.prc - prc) / 2 + prc;
- if (another.value.prc !== pointer.value.prc) {
- label.value.html(this.nice(pointer.value.origin) + "&nbsp;&ndash;&nbsp;" + this.nice(another.value.origin));
- sizes.label = label.o[0].clientWidth;
- sizes.border = (prc * domSize) / 100;
- }
- } else {
- another_label.o.css({visibility: "visible"});
- }
- break;
- case 1:
- if (sizes.border - sizes.label / 2 < another_label.o[0].offsetLeft - this.sizes.domOffset.left + another_label.o[0].clientWidth) {
- another_label.o.css({visibility: "hidden"});
- another_label.value.html(this.nice(another.value.origin));
- label.o.css({visibility: "visible"});
- prc = (prc - another.value.prc) / 2 + another.value.prc;
- if (another.value.prc !== pointer.value.prc) {
- label.value.html(this.nice(another.value.origin) + "&nbsp;&ndash;&nbsp;" + this.nice(pointer.value.origin));
- sizes.label = label.o[0].clientWidth;
- sizes.border = (prc * domSize) / 100;
- }
- } else {
- another_label.o.css({visibility: "visible"});
- }
- break;
- }
- }
- sizes = setPosition(label, sizes, prc);
- var domSize = self.sizes.domWidth;
- //This is the 0th pointer
- if (another_label) {
- sizes = {
- label: another_label.o[0].clientWidth,
- right: false,
- border: (another.value.prc * this.sizes.domWidth) / 100
- };
- sizes = setPosition(another_label, sizes, another.value.prc);
- }
- };
- Slider.prototype.redrawLimits = function () {
- if (this.settings.limits) {
- var limits = [true, true];
- for (var key in this.o.pointers) {
- if (!this.settings.single || key === 0) {
- var pointer = this.o.pointers[key];
- var label = this.o.labels[pointer.uid];
- var label_left = label.o[0].offsetLeft - this.sizes.domOffset.left;
- var limit = this.o.limits[0];
- if (label_left < limit[0].clientWidth)
- limits[0] = false;
- limit = this.o.limits[1];
- if (label_left + label.o[0].clientWidth > this.sizes.domWidth - limit[0].clientWidth)
- limits[1] = false;
- }
- }
- for (var i = 0; i < limits.length; i++) {
- if (limits[i]){
- angular.element(this.o.limits[i]).addClass("animate-show");}
- else{
- angular.element(this.o.limits[i]).addClass("animate-hidde");}
- }
- }
- };
- Slider.prototype.setValue = function () {
- var value = this.getValue();
- this.inputNode.attr("value", value);
- this.onstatechange.call(this, value, this.inputNode);
- };
- Slider.prototype.getValue = function () {
- if (!this.is.init){
- return false;}
- var $this = this;
- var value = "";
- angular.forEach(this.o.pointers, function (pointer, key) {
- if (pointer.value.prc !== undefined && !isNaN(pointer.value.prc)) {
- var pointerPrc = pointer.value.prc;
- var myValue = $this.prcToValue(pointerPrc);
- if (!$this.settings.smooth) {
- var myValue = utils.valueForDifferentScale($this.settings.from,
- $this.settings.to,
- pointerPrc,
- $this.settings.prcToValueMapper);
- }
- value += (key > 0 ? ";" : "") + myValue;
- }
- });
- return value;
- };
- Slider.prototype.getPrcValue = function () {
- if (!this.is.init)
- return false;
- var value = "";
- $.each(this.o.pointers, function (i) {
- if (this.value.prc !== undefined && !isNaN(this.value.prc))
- value += (i > 0 ? ";" : "") + this.value.prc;
- });
- return value;
- };
- Slider.prototype.prcToValue = function (prc) {
- var value;
- if (this.settings.heterogeneity && this.settings.heterogeneity.length > 0) {
- var h = this.settings.heterogeneity;
- var _start = 0;
- var _from = this.settings.from;
- for (var i = 0; i <= h.length; i++) {
- var v;
- if (h[i]){
- v = h[i].split("/");}
- else{
- v = [100, this.settings.to];}
- if (prc >= _start && prc <= v[0]) {
- value = _from + ((prc - _start) * (v[1] - _from)) / (v[0] - _start);
- }
- _start = v[0];
- _from = v[1];
- }
- }
- else {
- value = this.settings.from + (prc * this.settings.interval) / 100;
- }
- var roundedValue = this.round(value);
- return roundedValue;
- };
- Slider.prototype.valueToPrc = function (value, pointer) {
- var prc;
- if (this.settings.heterogeneity && this.settings.heterogeneity.length > 0) {
- var h = this.settings.heterogeneity;
- var _start = 0;
- var _from = this.settings.from;
- for (var i = 0; i <= h.length; i++) {
- var v;
- if (h[i])
- v = h[i].split("/");
- else
- v = [100, this.settings.to];
- if (value >= _from && value <= v[1]) {
- prc = pointer.limits(_start + (value - _from) * (v[0] - _start) / (v[1] - _from));
- }
- _start = v[0];
- _from = v[1];
- }
- } else {
- prc = pointer.limits((value - this.settings.from) * 100 / this.settings.interval);
- }
- return prc;
- };
- Slider.prototype.round = function (value) {
- value = Math.round(value / this.settings.step) * this.settings.step;
- if (this.settings.round){
- value = Math.round(value * Math.pow(10, this.settings.round)) / Math.pow(10, this.settings.round);}
- else{
- value = Math.round(value);}
- return value;
- };
- return Slider;
- }])
- .directive('attStepSlider', [
- '$compile', '$templateCache', '$timeout', '$window', 'slider', 'sliderConstants', 'utils',
- function (compile, templateCache, timeout, win, Slider, sliderConstants, utils) {
- /*
- The MIT License (MIT)
- Copyright (c) 2013 Julien Valéry
- */
- var templateUrl = 'app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html';
- return {
- restrict: 'AE',
- require: '?ngModel',
- scope: {
- options: '=',
- cutOff: '='
- },
- priority: 1,
- templateUrl: templateUrl,
- link: function (scope, element, attrs, ngModel) {
- if (!ngModel)
- return;
- scope.mainSliderClass = 'step-slider';
- element.after(compile(templateCache.get(templateUrl))(scope, function (clonedElement, scope) {
- scope.tmplElt = clonedElement;
- }));
- ngModel.$render = function () {
- if (ngModel.$viewValue.split && ngModel.$viewValue.split(";").length === 1) {
- ngModel.$viewValue = '0;' + ngModel.$viewValue;
- } else if (typeof (ngModel.$viewValue) === 'number') {
- ngModel.$viewValue = '0;' + ngModel.$viewValue;
- }
- if (!ngModel.$viewValue && ngModel.$viewValue !== 0) {
- return;
- }
- if (typeof (ngModel.$viewValue) === 'number') {
- ngModel.$viewValue = '' + ngModel.$viewValue;
- }
- if (scope.slider) {
- var firstPointer = '0';
- scope.slider.getPointers()[0].set(firstPointer, true);
- if (ngModel.$viewValue.split(";")[1]) {
- var value = ngModel.$viewValue.split(";")[1];
- if (value.length >= 4) {
- value = value.substring(0, 2);
- }
- if (!scope.options.realtime)
- scope.options.callback(parseFloat(ngModel.$viewValue.split(";")[1]));
- scope.slider.getPointers()[1].set(ngModel.$viewValue.split(";")[1], true);
- }
- }
- };
- var init = function () {
- scope.from = '' + scope.options.from;
- scope.to = '' + scope.options.to;
- if (scope.options.calculate && typeof scope.options.calculate === 'function') {
- scope.from = scope.options.calculate(scope.from);
- scope.to = scope.options.calculate(scope.to);
- }
- scope.showDividers = scope.options.showDividers;
- scope.COLORS = sliderConstants.COLORS;
- scope.sliderColor = scope.options.sliderColor;
- if (!scope.sliderColor)
- scope.sliderColor = sliderConstants.COLORS.REGULAR;
- var scaleArray = scope.options.scale;
- /* Make a copy of the scaleArray before converting it to percentage for the bars */
- var nonPercentScaleArray = [];
- /* Define variable for displaying lower range values */
- var scaledUpValueArray=[];
- /* Create Mapper for the percentage to value */
- var prcToValueMapper = {};
- for (var i in scaleArray) {
- var s = scaleArray[i];
- nonPercentScaleArray.push(s);
- }
- function addScaleArrayStartAndEnd() {
- if (scaleArray[0] !== 0) {
- scaleArray.splice(0, 0, 0);
- }
- if (scaleArray[scaleArray.length - 1] !== 100) {
- scaleArray.splice(scaleArray.length, 0, 100);
- }
- }
- function convertScaleArrayToPercentage() {
- if (scaleArray[scaleArray.length - 1] !== scope.options.to) {
- scaleArray.splice(scaleArray.length, 0, scope.options.to);
- }
-
- if(scope.options.displayScaledvalues){
- for(var i in scaleArray){
- scaledUpValueArray.push(Math.log2(scaleArray[i]));
- }
- var maxScaledUpValue=scaledUpValueArray[scaledUpValueArray.length-1];
- }
-
- for (var i in scaleArray) {
- var prcValue;
- var fromValueCheck = (scaleArray[i] / scope.options.from);
- var toValueCheck = (scaleArray[i] / scope.options.to);
-
- if (scope.options.displayScaledvalues){
- prcValue = (scaledUpValueArray[i] /maxScaledUpValue)*100;
- } else {
- prcValue = ((scaleArray[i] - scope.options.from) / (scope.options.to - scope.options.from)) * 100;
- }
-
- var realValue = scaleArray[i];
-
- if (toValueCheck === 1) {
- prcValue = 100;
- }
- else if (fromValueCheck === 1) {
- prcValue = 0;
- }
- scaleArray[i] = prcValue;
- prcToValueMapper['' + prcValue] = realValue;
- }
- }
- if ((scope.options.from !== 0 || scope.options.to !== 100)
- && scope.options.smooth) {
- /*
- scale array is in real values.
- */
- addScaleArrayStartAndEnd();
- scope.options.stepWithDifferentScale = true;
- }
- else if ((scope.options.from !== 0 || scope.options.to !== 100)
- && !scope.options.smooth) {
- /*
- Case for different from and to values other than 0 and 100
- so we have to do some different calculations
- */
- scope.options.stepWithDifferentScale = true;
- convertScaleArrayToPercentage();
- addScaleArrayStartAndEnd();
- }
- else {
- /*
- This is the normal case where the from and to values are 0 and
- 100 respectively.
- */
- //Check that the scale starts at 0 and 100
- convertScaleArrayToPercentage();
- addScaleArrayStartAndEnd();
- }
- var decimalPlaces = 0;
- if (scope.options.decimalPlaces) {
- decimalPlaces = scope.options.decimalPlaces;
- }
- //Modify the endDimension based on whether converison was passed in
- //Also change the toStr value to scale to the last factor
- scope.endDimension = scope.options.dimension;
- if (scope.options.conversion) {
- //Get the dimension of the last conversion
- var lastIndex = scope.options.conversion.length - 1;
- var lastDimension = scope.options.conversion[lastIndex].dimension;
- var lastScaleFactor = scope.options.conversion[lastIndex].scaleFactor;
- scope.endDimension = ' ' + lastDimension;
-
- var toVal = (scope.to / lastScaleFactor).toFixed(decimalPlaces);
- scope.toStr = toVal;
- } else {
- scope.toStr = scope.options.to;
- }
-
- var tooltipLabel = utils.convertToMbpsGbps(scope.toStr, scope.endDimension, scope.options.decimalPlaces);
- scope.toStr = tooltipLabel.unitValue;
- scope.endDimension = ' ' + tooltipLabel.unitLabel;
-
- var OPTIONS = {
- from: scope.options.from,
- to: scope.options.to,
- step: scope.options.step,
- smooth: scope.options.smooth,
- limits: true,
- stepWithDifferentScale: scope.options.stepWithDifferentScale,
- round: scope.options.round || false,
- value: ngModel.$viewValue,
- scale: scope.options.scale,
- nonPercentScaleArray: nonPercentScaleArray,
- prcToValueMapper: prcToValueMapper,
- firstDimension: scope.options.dimension,
- decimalPlaces: decimalPlaces,
- conversion: scope.options.conversion,
- realtimeCallback: scope.options.callback
- };
- if (angular.isFunction(scope.options.realtime)) {
- OPTIONS.realtimeCallback = function (value) {
- ngModel.$setViewValue(value);
- scope.options.callback(value);
- };
- }
- else {
- OPTIONS.callback = forceApply;
- }
- OPTIONS.calculate = scope.options.calculate || undefined;
- OPTIONS.onstatechange = scope.options.onstatechange || undefined;
- timeout(function () {
- var scaleDiv = scope.tmplElt.find('div')[7];
- if (!OPTIONS.conversion) {
- scope.tmplElt.find('div').eq(6).find('span').eq(0).css('padding-left', '10px');
- scope.tmplElt.find('div').eq(6).find('span').eq(0).css('padding-right', '15px');
- }
- scope.slider = angular.element.slider(element, scope.tmplElt, OPTIONS);
- angular.element(scaleDiv).html(scope.generateScale());
- scope.drawScale(scaleDiv);
- initListener();
- scope.$watch('options.disable', function (val) {
- if (scope.slider) {
- scope.tmplElt.toggleClass('disabled', val);
- scope.slider.disable(val);
- }
- });
- scope.$watch('cutOff', function (cutOffVal) {
- if (cutOffVal && cutOffVal > 0) {
- var cutOffPrc = (cutOffVal - scope.slider.settings.from) / (scope.slider.settings.to -
- scope.slider.settings.from);
- cutOffPrc = cutOffPrc * 100;
- scope.isCutOffSlider = true;
- scope.slider.settings.cutOffWidth = cutOffPrc;
- //cutOffVal is the actual value of the cutoff point
- scope.cutOffVal = cutOffVal;
- if (scope.options.conversion) {
- var convertedVal = utils.getConversionFactorValue(cutOffVal, scope.options.conversion, scope.options.dimension);
- convertedVal.scaledVal = parseFloat(convertedVal.scaledVal).toFixed(scope.options.decimalPlaces);
- scope.cutOffVal = convertedVal.scaledVal + ' ' + convertedVal.scaledDimension;
- }
- scope.slider.settings.cutOffVal = cutOffVal;
- //Calculate the cutOff percentage
- scope.slider.changeCutOffWidth(cutOffPrc + '%');
- var scale = scope.slider.settings.nonPercentScaleArray;
- //Calculate where the cutOff point in relation to the scale array
- for (var i in scale) {
- if (i >= 1) {
- var lowerVal = scale[i - 1];
- var higherVal = scale[i];
- if (cutOffVal > lowerVal && cutOffVal <= higherVal) {
- scope.slider.settings.cutOffIndex = i;
- }
- }
- }
- } else {
- scope.slider.settings.cutOffVal = 0;
- }
- });
- });
- };
- function initListener() {
- angular.element(win).bind('resize', function (event) {
- scope.slider.onresize();
- });
- }
- scope.generateScale = function () {
- if (scope.options.scale && scope.options.scale.length > 0) {
- var str = "";
- var s = scope.options.scale;
- var position = 'left';
- for (var i = 0; i < s.length; i++) {
- if (i !== 0 && i !== s.length - 1) {
- var scaledPosition = ((s[i] - scope.from) / (scope.to - scope.from)) * 100;
- if (scope.options.stepWithDifferentScale && !scope.options.smooth) {
- scaledPosition = s[i];
- }
- str += '<span style="' + position + ': ' + scaledPosition + '%"></span>';
- }
- }
- return str;
- } else
- return "";
- return "";
- };
- scope.drawScale = function (scaleDiv) {
- angular.forEach(angular.element(scaleDiv).find('ins'), function (scaleLabel, key) {
- scaleLabel.style.marginLeft = -scaleLabel.clientWidth / 2;
- });
- };
- var forceApply = function (value) {
- var val = value.split(";")[1];
- scope.$apply(function () {
- ngModel.$setViewValue(parseInt(val));
- });
- if (scope.options.callback) {
- scope.options.callback(parseInt(val));
- }
- };
- scope.$watch('options', function (value) {
- init();
- });
- angular.element.slider = function (inputElement, element, settings) {
- if (!element.data('jslider'))
- element.data('jslider', new Slider(inputElement, element, settings));
- var sliderObj = element.data('jslider');
- return sliderObj;
- };
- }
- };
- }]);
-angular.module('att.abs.steptracker', ['att.abs.transition'])
- .directive('steptracker', ['$timeout', function ($timeout) {
- return {
- // This allows dev's clickHandler to cancel an operation
- priority: 100,
- scope: {
- sdata: "=sdata",
- cstep: "=currentStep",
- clickHandler: '=?',
- disableClick: '=?'
- },
- restrict: 'EA',
- replace: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/steptracker/step-tracker.html',
- link: function (scope, elem) {
- if (scope.disableClick === undefined) {
- scope.disableClick = false;
- }
- $timeout(function () {
- if (scope.cstep < 1) {
- scope.cstep = 1;
- }
- else if (scope.cstep > scope.sdata.length) {
- scope.cstep = scope.sdata.length;
- }
- var divs = elem.find('div');
- var slidertracks = [];
- for (var i in divs) {
- if (divs.eq(i)[0]) {
- var el = divs.eq(i)[0].className;
- if (el.indexOf('track ng-scope') > -1) {
- slidertracks.push(divs.eq(i));
- }
- }
- }
- var currentPage,totalPage,currentTrack = updateCurrentTrack(scope.cstep);
- function updateCurrentTrack(step) {
- // Always return the step-1 because array starts at 0
- return angular.element(slidertracks[step - 1]);
- }
- function updateTrackWidth() {
- if (scope.cstep > 0 && scope.cstep <= scope.sdata.length - 1 && currentPage > 0) {
- var newWidth = ((currentPage / totalPage) * 100) + "%";
- currentTrack = updateCurrentTrack(scope.cstep);
- currentTrack.css('width', newWidth);
- }
- }
- function updatePages() {
- if (scope.cstep <= scope.sdata.length) {
- currentPage = scope.sdata[scope.cstep - 1]['currentPage'];
- totalPage = scope.sdata[scope.cstep - 1]['totalPages'];
- }
- }
- // dynamically add width for steps, depending on the number of steps.
- scope.set_width = function (indexval) {
- var setwidth = (100 / (scope.sdata.length - 1)) + "%";
- // skip last element and add width for all other element
- if ((scope.sdata.length - 1) > indexval) {
- return {'width': setwidth};
- }
- };
- scope.$watch('sdata', function () {
- updatePages();
- var prevStep = scope.cstep;
- // Before anything, ensure currentPage is never below 1
- if (currentPage < 1) {
- currentPage = 1;
- if (scope.cstep !== 1) {
- // Decrease step, current track width is 0%, new step width updates
- scope.cstep--;
- updatePages();
- }
- }
- // Move to next step, reset currentPage, totalPage, and ensure previous steps are completed
- if (currentPage > totalPage) {
- if (scope.cstep > scope.sdata.length - 1) {
- scope.cstep++;
- return;
- } else {
- currentPage = totalPage;
- updateTrackWidth();
- scope.cstep++;
- updatePages();
- updateTrackWidth();
- }
- }
- if (currentPage < 1 && prevStep === scope.cstep) {
- currentPage = 1;
- if (scope.cstep > 1) {
- scope.cstep--;
- scope.sdata[scope.cstep - 1]['currentPage'] = scope.sdata[scope.cstep - 1]['totalPages'];
- scope.sdata[scope.cstep]['currentPage'] = 1;
- }
- }
- updateTrackWidth();
- }, true);
- //add the active class for current step
- scope.activestep = function (index) {
- return (index === scope.cstep - 1);
- };
- //add the done class for finished step
- scope.donesteps = function (index) {
- return (index < scope.cstep - 1);
- };
- //add the last class for final step
- scope.laststep = function (index) {
- return (index === scope.sdata.length - 1);
- };
- scope.isIncomplete = function (index) {
- if (index === scope.cstep - 1) {
- return false;
- }
- if (index >= 0 && index < scope.sdata.length - 1) {
- var step = scope.sdata[index];
- return (step['currentPage'] <= step['totalPages']);
- }
- };
- //click event
- scope.stepclick = function ($event, steps) {
- // If we are decreasing steps, reset all currentPage counts to 1
- if (steps < scope.cstep) {
- for (var i = scope.cstep - 1; i > steps; i--) {
- scope.sdata[i]['currentPage'] = 1;
- }
- scope.sdata[steps]['currentPage']--;
- }
- if (angular.isFunction(scope.clickHandler)) {
- scope.clickHandler($event, steps);
- }
- scope.cstep = steps + 1;
- // In the case we decremented previously from this step, we need to reset currentpage to default
- if (scope.cstep <= scope.sdata.length && scope.sdata[scope.cstep]['currentPage'] < 1) {
- scope.sdata[scope.cstep]['currentPage'] = 1;
- }
- updatePages();
- updateTrackWidth();
- };
- }, 100);
- }
- };
- }
- ])
- .constant('timelineConstants', {
- STEP_TYPE: {
- ALERT: 'alert',
- COMPLETED: 'completed',
- CANCELLED: 'cancelled'
- }
- })
- .controller('AttTimelineCtrl', ['$scope', '$timeout', function ($scope, $timeout) {
- var timelineBarCtrls = [];
- var timelineDotCtrls = [];
- this.numSteps = 0;
- this.isAlternate = function () {
- return $scope.alternate;
- };
- this.addTimelineBarCtrls = function (t) {
- timelineBarCtrls.push(t);
- };
- this.addTimelineDotCtrls = function (b) {
- timelineDotCtrls.push(b);
- };
- $timeout(init, 200);
- function init() {
- function compare(a, b) {
- if (a.order < b.order) {
- return -1;
- }
- if (a.order > b.order) {
- return 1;
- }
- return 0;
- }
- timelineDotCtrls.sort(compare);
- timelineBarCtrls.sort(compare);
- if ($scope.$parent.animate) {
- animateSequence();
- }
- $scope.$watch('trigger', function (val) {
- if (val) {
- $scope.resetTimeline();
- } else {
- $scope.$parent.animate = false;
- }
- });
- }
- function animateSequence() {
- var dotsDuration = .25;
- var timelineBarProgressDuration = .25;
- if (typeof $scope.barAnimateDuration === 'number') {
- timelineBarProgressDuration = $scope.barAnimateDuration;
- }
- var start = createAnimation(0, timelineBarProgressDuration);
- function setToInactiveStates() {
- for (var i in timelineDotCtrls) {
- var dotCtrl = timelineDotCtrls[i];
- if (i % 2 === 0) {
- dotCtrl.unhoveredStateForBelow(.25);
- } else {
- dotCtrl.unhoveredStateForAbove(.25);
- }
- if (dotCtrl.isStop()) {
- break;
- }
- }
- }
- function createAnimation(i, duration) {
- if (i === 0) {
- return function () {
- if (timelineDotCtrls[i + 1].isStop() && timelineDotCtrls[i + 1].isCancelled()) {
- timelineBarCtrls[i].isCancelled(true);
- }
- timelineBarCtrls[i].animate(createAnimation(i + 1, duration), duration);
- };
- } else if (i === timelineBarCtrls.length - 1) {
- return function () {
- //Removes the bolded text from the start
- if (timelineDotCtrls[0].isCurrentStep()) {
- timelineDotCtrls[0].isCurrentStep(false);
- }
- if (timelineDotCtrls[i].isStop()) {
- timelineDotCtrls[i - 1].shrinkAnimate(dotsDuration);
- timelineDotCtrls[i].isCurrentStep(true);
- } else {
- timelineDotCtrls[i - 1].shrinkAnimate(dotsDuration);
- timelineBarCtrls[i].animate(createAnimation(i + 1, duration), duration);
- }
- timelineDotCtrls[i].expandedAnimate(dotsDuration);
- $timeout(function () {
- setToInactiveStates();
- }, 500);
- };
- }
- //End Dot
- else if (i === timelineBarCtrls.length) {
- return function () {
- //Removes the bolded text from the start
- if (timelineDotCtrls[0].isCurrentStep()) {
- timelineDotCtrls[0].isCurrentStep(false);
- }
- timelineDotCtrls[i - 1].shrinkAnimate(dotsDuration);
- timelineDotCtrls[i].expandedAnimate(dotsDuration);
- timelineDotCtrls[i].isCurrentStep(true);
- $timeout(function () {
- setToInactiveStates();
- }, 500);
- };
- }
- else {
- return function () {
- //Removes the bolded text from the start
- if (timelineDotCtrls[0].isCurrentStep()) {
- timelineDotCtrls[0].isCurrentStep(false);
- }
- if (timelineDotCtrls[i].isStop()) {
- timelineDotCtrls[i - 1].shrinkAnimate(dotsDuration);
- timelineDotCtrls[i].expandedAnimate(dotsDuration);
- timelineDotCtrls[i].isCurrentStep(true);
- $timeout(function () {
- setToInactiveStates();
- }, 500);
- } else {
- if (timelineDotCtrls[i + 1].isStop() && timelineDotCtrls[i + 1].isCancelled()) {
- timelineBarCtrls[i].isCancelled(true);
- }
- timelineDotCtrls[i - 1].shrinkAnimate(dotsDuration);
- timelineBarCtrls[i].animate(createAnimation(i + 1, duration), duration);
- timelineDotCtrls[i].expandedAnimate(dotsDuration);
- }
- };
- }
- }
- start();
- }
- }])
- .directive('attTimeline', ['$timeout', '$compile', function ($timeout, $compile) {
- return {
- restrict: 'EA',
- replace: true,
- scope: {
- steps: '=',
- trigger: '=',
- alternate: '=',
- barAnimateDuration: '='
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/steptracker/timeline.html',
- controller: 'AttTimelineCtrl',
- link: function (scope, element, attrs, ctrl) {
- var init = function () {
- var steps = scope.steps;
- var middleSteps = [];
- for (var i = 1; i < steps.length; i++) {
- var aStep = steps[i];
- middleSteps.push(aStep);
- }
- scope.middleSteps = middleSteps;
- //Used in calculating the width of the loading bars
- ctrl.numSteps = steps.length - 1;
- };
- init();
- //Recompile in case of scope changes
- scope.resetTimeline = function () {
- scope.animate = true;
- $compile(element)(scope);
- };
- }
- };
- }])
- .controller('TimelineBarCtrl', ['$scope', function ($scope) {
- this.type = 'timelinebar';
- this.order = parseInt($scope.order);
- this.animate = function (callback, duration) {
- $scope.loadingAnimation(callback, duration);
- };
- this.isCancelled = function (isCancelled) {
- $scope.isCancelled = isCancelled;
- };
- }])
- .directive('timelineBar', ['animation', '$progressBar', function (animation, $progressBar) {
- return {
- restrict: 'EA',
- replace: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/steptracker/timelineBar.html',
- scope: {
- order: '@'
- },
- require: ['^attTimeline', 'timelineBar'],
- controller: 'TimelineBarCtrl',
- link: function (scope, element, attrs, ctrls) {
- var attTimelineCtrl = ctrls[0];
- var timelineBarCtrl = ctrls[1];
- attTimelineCtrl.addTimelineBarCtrls(timelineBarCtrl);
- scope.isCompleted = true;
- var widthPerc = (100 / attTimelineCtrl.numSteps) - 3;
- element.css('width', widthPerc + '%');
- var elem = element.find('div').eq(0);
- animation.set(elem, {opacity: 0.0});
- var updateCallback = function (selfElement) {
- animation.set(elem, {opacity: 1.0});
- animation.set(elem, {
- scaleX: selfElement.progress(),
- transformOrigin: "left"
- });
- };
- scope.loadingAnimation = $progressBar(updateCallback);
- }
- };
- }])
- .controller('TimelineDotCtrl', ['$scope', '$timeout', 'timelineConstants', function ($scope, $timeout, timelineConstants) {
- this.type = 'dot';
- this.order = parseInt($scope.order);
- var self = this;
- $timeout(function () {
- if (self.order !== 0) {
- if (self.order % 2 !== 0) {
- $scope.initializeAboveForAnimation();
- }
- else {
- $scope.initializeBelowForAnimation();
- }
- }
- });
- this.expandedAnimate = function (duration) {
- $scope.setColor();
- $scope.expandedAnimate(duration);
- if (self.order !== 0 && !$scope.isStepsLessThanFive()) {
- if (self.order % 2 !== 0) {
- $scope.expandContentForAbove(duration);
- } else {
- $scope.expandContentForBelow(duration);
- }
- }
- };
- this.unhoveredStateForAbove = function (duration) {
- $scope.unhoveredStateForAbove(duration);
- };
- this.unhoveredStateForBelow = function (duration) {
- $scope.unhoveredStateForBelow(duration);
- };
- this.shrinkAnimate = function (duration) {
- $scope.shrinkAnimate(duration);
- };
- this.setExpanded = function () {
- $scope.setSize(3);
- };
- this.isStop = function () {
- return $scope.isStop;
- };
- this.isCancelled = function () {
- return ($scope.type === timelineConstants.STEP_TYPE.CANCELLED);
- };
- this.isAlert = function () {
- return ($scope.type === timelineConstants.STEP_TYPE.ALERT);
- };
- //Sets the bolded text
- this.isCurrentStep = function (isCurrentStep) {
- if (isCurrentStep !== undefined) {
- $scope.isCurrentStep = isCurrentStep;
- }
- return $scope.isCurrentStep;
- };
- }])
- .directive('timelineDot', ['animation', 'timelineConstants',
- function (animation, timelineConstants) {
- return {
- restrict: 'EA',
- replace: true,
- scope: {
- order: '@',
- title: '@',
- description: '@',
- by: '@',
- date: '@',
- type: '@'
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/steptracker/timelineDot.html',
- require: ['^attTimeline', 'timelineDot'],
- controller: 'TimelineDotCtrl',
- link: function (scope, element, attrs, ctrls) {
- var attTimelineCtrl = ctrls[0];
- var timelineDotCtrl = ctrls[1];
- attTimelineCtrl.addTimelineDotCtrls(timelineDotCtrl);
- scope.numSteps = attTimelineCtrl.numSteps + 1;
- scope.isCurrentStep = false;
- scope.isCompleted = false;
- scope.isStop = false;
- if (scope.type === timelineConstants.STEP_TYPE.ALERT || scope.type === timelineConstants.STEP_TYPE.CANCELLED) {
- scope.isStop = true;
- }
- scope.isInactive = true;
- var divs = element.find('div');
- var biggerCircleElem = divs.eq(0);
- var expandableCircleElem = divs.eq(2);
- var infoboxElem = divs.eq(3);
- var titleElem = divs.eq(5);
- var contentElem = divs.eq(6);
- var dateElem = divs.eq(9);
- function isEmptyStep() {
- if (!scope.description && !scope.by && !scope.date) {
- return true;
- }
- return false;
- }
- scope.isStepsLessThanFive = function () {
- if (scope.numSteps < 5) {
- return true;
- }
- return false;
- };
- scope.titleMouseover = function (num) {
- if (!scope.isStepsLessThanFive() && !isEmptyStep()) {
- if (num === 1 && scope.order % 2 === 0) {
- scope.expandContentForBelow(.25);
- }
- if (num === 2 && scope.order % 2 !== 0) {
- scope.expandContentForAbove(.25);
- }
- }
- };
- scope.titleMouseleave = function () {
- if (scope.order % 2 === 0) {
- scope.unhoveredStateForBelow(.25);
- }
- else {
- scope.unhoveredStateForAbove(.25);
- }
- };
- scope.initializeAboveForAnimation = function () {
- if (!scope.isStepsLessThanFive() && attTimelineCtrl.isAlternate()) {
- animation.set(contentElem, {opacity: 0});
- animation.set(dateElem, {opacity: 0});
- if (!isEmptyStep()) {
- var yOffset = contentElem[0].offsetHeight + dateElem[0].offsetHeight;
- animation.set(titleElem, {'top': yOffset});
- }
- }
- };
- scope.expandContentForAbove = function (duration) {
- if (!scope.isStepsLessThanFive() && attTimelineCtrl.isAlternate()) {
- animation.to(titleElem, duration, {'top': 0});
- animation.to(contentElem, duration, {opacity: 1});
- animation.to(dateElem, duration, {opacity: 1});
- }
- };
- scope.unhoveredStateForAbove = function (duration) {
- if (!scope.isStepsLessThanFive() && attTimelineCtrl.isAlternate()) {
- animation.set(contentElem, {opacity: 0});
- animation.set(dateElem, {opacity: 1});
- var yOffset = contentElem[0].offsetHeight;
- animation.to(titleElem, duration, {'top': yOffset});
- }
- };
- scope.initializeBelowForAnimation = function () {
- if (!scope.isStepsLessThanFive() && attTimelineCtrl.isAlternate()) {
- animation.set(contentElem, {height: '0%', opacity: 0, top: '-20px'});
- animation.set(dateElem, {opacity: 0});
- }
- };
- scope.expandContentForBelow = function (duration) {
- if (!scope.isStepsLessThanFive() && attTimelineCtrl.isAlternate()) {
- animation.set(dateElem, {opacity: 1});
- animation.to(contentElem, duration, {height: 'auto', opacity: 1, top: '0px'});
- }
- };
- scope.unhoveredStateForBelow = function (duration) {
- if (!scope.isStepsLessThanFive() && attTimelineCtrl.isAlternate()) {
- animation.to(contentElem, duration, {height: '0%', opacity: 0, top: '-20px', position: 'relative'});
- animation.set(dateElem, {opacity: 1});
- }
- };
- /*Default Initializaztion*/
- //If the info box is above and the description and date and by are empty then we have do reset its position
- if (isEmptyStep() && (scope.order % 2 !== 0 && attTimelineCtrl.isAlternate())) {
- infoboxElem.css('top', '-47px');
- }
- //Check if the order is odd and set the appropiate above or below and other effects
- if (scope.order % 2 === 0 || !attTimelineCtrl.isAlternate()) {
- scope.isBelowInfoBoxShown = true;
- }
- else {
- scope.isBelowInfoBoxShown = false;
- }
- //modify some css for steps less than 5 and not alternating
- if (scope.isStepsLessThanFive() && !attTimelineCtrl.isAlternate()) {
- animation.set(dateElem, {marginTop: 10});
- }
- //For IE 8 fix
- animation.set(biggerCircleElem, {opacity: '.5'});
- //shrink the expandableCircle to we can expand it later
- animation.set(expandableCircleElem, {opacity: '0.0'});
- animation.set(expandableCircleElem, {scale: .10});
- if (scope.order === 0) {
- animation.set(expandableCircleElem, {opacity: '1.0'});
- animation.set(expandableCircleElem, {scale: 1});
- animation.set(biggerCircleElem, {scale: 3});
- scope.isCurrentStep = true;
- scope.isInactive = false;
- scope.isCompleted = true;
- }
- scope.setColor = function () {
- scope.isInactive = false;
- if (scope.type === timelineConstants.STEP_TYPE.CANCELLED) {
- scope.isCancelled = true;
- }
- else if (scope.type === timelineConstants.STEP_TYPE.ALERT) {
- scope.isAlert = true;
- }
- else {
- scope.isCompleted = true;
- }
- if (!scope.$phase) {
- scope.$apply();
- }
- };
- scope.setSize = function (size) {
- animation.set(biggerCircle, {scale: size});
- };
- scope.setExpandedCircle = function () {
- animation.set(expandableCircleElem, {opacity: '1.0'});
- animation.set(expandableCircleElem, {scale: 1});
- };
- scope.expandedAnimate = function (duration) {
- animation.to(biggerCircleElem, duration, {scale: 3});
- animation.set(expandableCircleElem, {opacity: '1.0'});
- animation.to(expandableCircleElem, duration, {scale: 1});
- };
- scope.shrinkAnimate = function (duration) {
- animation.to(biggerCircleElem, duration, {scale: 1});
- };
- }
- };
- }]);
-angular.module('att.abs.table', ['att.abs.utilities'])
-.constant('tableConfig', {
- //true for descending & false for ascending
- defaultSortPattern: false,
- highlightSearchStringClass: 'tablesorter-search-highlight'
-})
-
-.directive('attTable', ['$filter', function($filter) {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- scope: {
- tableData: "=",
- viewPerPage: "=",
- currentPage: "=",
- totalPage: "=",
- searchCategory: "=",
- searchString: "="
- },
- require: 'attTable',
- templateUrl: 'app/scripts/ng_js_att_tpls/table/attTable.html',
- controller: ['$scope', function($scope) {
- this.headers = [];
- this.currentSortIndex = null;
- this.setIndex = function(headerScope) {
- this.headers.push(headerScope);
- };
- this.getIndex = function(headerName) {
- for (var i = 0; i < this.headers.length; i++) {
- if (this.headers[i].headerName === headerName) {
- return this.headers[i].index;
- }
- }
- return null;
- };
- this.sortData = function(columnIndex, reverse) {
- $scope.$parent.columnIndex = columnIndex;
- $scope.$parent.reverse = reverse;
- this.currentSortIndex = columnIndex;
- $scope.currentPage = 1;
- this.resetSortPattern();
- };
- this.getSearchString = function() {
- return $scope.searchString;
- };
- this.resetSortPattern = function() {
- for(var i = 0; i < this.headers.length; i++) {
- var currentScope = this.headers[i];
- if(currentScope.index !== this.currentSortIndex) {
- currentScope.resetSortPattern();
- }
- }
- };
- }],
- link: function(scope, elem, attr, ctrl) {
- scope.searchCriteria = {};
- scope.$watchCollection('tableData', function(value) {
- if(value && !isNaN(value.length)) {
- scope.totalRows = value.length;
- }
- });
- scope.$watch('currentPage', function(val) {
- scope.$parent.currentPage = val;
- });
- scope.$watch('viewPerPage', function(val) {
- scope.$parent.viewPerPage = val;
- });
- scope.$watch(function() {
- return scope.totalRows / scope.viewPerPage;
- }, function(value) {
- if(!isNaN(value)) {
- scope.totalPage = Math.ceil(value);
- scope.currentPage = 1;
- }
- });
- var searchValCheck = function(val){
- if(angular.isDefined(val) && val !== null && val !== ""){
- return true;
- }
- };
- var setSearchCriteria = function(v1,v2){
- if(searchValCheck(v1) && searchValCheck(v2)){
- var index = ctrl.getIndex(v2);
- scope.searchCriteria = {};
- if (index !== null) {
- scope.searchCriteria[index] = v1;
- }
- }else if(searchValCheck(v1) && (!angular.isDefined(v2) || v2 === null || v2 === "")){
- scope.searchCriteria = {
- $: v1
- };
- }else {
- scope.searchCriteria = {};
- }
- };
- scope.$watch('searchCategory', function(newVal,oldVal) {
- if(newVal !== oldVal){
- setSearchCriteria(scope.searchString,newVal);
- }
- });
- scope.$watch('searchString', function (newVal,oldVal) {
- if(newVal !== oldVal){
- setSearchCriteria(newVal,scope.searchCategory);
- }
- });
- scope.$watchCollection('searchCriteria', function(val) {
- scope.$parent.searchCriteria = val;
- scope.totalRows = scope.tableData && ($filter('filter')(scope.tableData, val, false)).length || 0;
- scope.currentPage = 1;
- });
- }
- };
-}])
-
-.directive('attTableRow', [function() {
- return {
- restrict: 'EA',
- compile: function (elem, attr) {
- if (attr.type === 'header') {
- elem.find('tr').eq(0).addClass('tablesorter-headerRow');
- } else if (attr.type === 'body') {
- var html = elem.children();
- if(attr.rowRepeat){
- if (attr.trackBy) {
- html.attr('ng-repeat', attr.rowRepeat.concat(" | orderBy : columnIndex : reverse | filter : searchCriteria : false | attLimitTo : viewPerPage : viewPerPage*(currentPage-1) track by " + attr.trackBy));
- } else {
- html.attr('ng-repeat', attr.rowRepeat.concat(" | orderBy : columnIndex : reverse | filter : searchCriteria : false | attLimitTo : viewPerPage : viewPerPage*(currentPage-1) track by $index"));
- }
- }
- html.attr('ng-class', "{'alt-row': $even,'normal-row': $odd}");
- elem.append(html);
- }
- }
- };
-}])
-
-.directive('attTableHeader', ['tableConfig', function(tableConfig) {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- scope: {
- sortable: '@',
- defaultSort: '@',
- index: '@key'
- },
- require: '^attTable',
- templateUrl: 'app/scripts/ng_js_att_tpls/table/attTableHeader.html',
- link: function(scope, elem, attr, ctrl) {
- var reverse = tableConfig.defaultSortPattern;
- scope.headerName = elem.text();
- scope.sortPattern = null;
- ctrl.setIndex(scope);
-
- scope.$watch(function() {
- return elem.text();
- }, function(value) {
- scope.headerName = value;
- });
- scope.sort = function(sortType) {
- if(typeof sortType === 'boolean') {
- reverse = sortType;
- }
- ctrl.sortData(scope.index, reverse);
- scope.sortPattern = reverse ? 'desc' : 'asc';
- reverse = !reverse;
- };
- scope.$watch(function() {
- return ctrl.currentSortIndex;
- }, function(value) {
- if (value !== scope.index) {
- scope.sortPattern = null;
- }
- });
- if(scope.sortable !== 'false') {
- if(scope.defaultSort === 'A' || scope.defaultSort === 'a') {
- scope.sort(false);
- } else if(scope.defaultSort === 'D' || scope.defaultSort === 'd') {
- scope.sort(true);
- }
- }
- scope.resetSortPattern = function() {
- reverse = tableConfig.defaultSortPattern;
- };
- }
- };
-}])
-
-.directive('attTableBody', ['$filter', '$timeout', 'tableConfig', function($filter, $timeout, tableConfig) {
- return {
- restrict: 'EA',
- require: '^attTable',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/table/attTableBody.html',
- link: function (scope, elem, attr, ctrl) {
- var highlightSearchStringClass = tableConfig.highlightSearchStringClass;
- var searchString = "";
- var wrapElement = function (elem) {
- var text = elem.text();
- elem.html($filter('highlight')(text, searchString, highlightSearchStringClass));
- };
- var traverse = function (elem) {
- var innerHtml = elem.children();
- if (innerHtml.length > 0) {
- for (var i = 0; i < innerHtml.length; i++) {
- traverse(innerHtml.eq(i));
- }
- } else {
- wrapElement(elem);
- return;
- }
- };
- var clearWrap = function (elem) {
- var elems = elem.find('*');
- for (var i = 0; i < elems.length; i++) {
- if (elems.eq(i).attr('class') && elems.eq(i).attr('class').indexOf(highlightSearchStringClass) !== -1) {
- var text = elems.eq(i).text();
- elems.eq(i).replaceWith(text);
- }
- }
- };
- $timeout(function () {
- var actualHtml = elem.children();
- scope.$watch(function () {
- return ctrl.getSearchString();
- }, function (val) {
- searchString = val;
- clearWrap(elem);
- if (actualHtml.length > 0) {
- traverse(elem);
- } else {
- wrapElement(elem);
- }
- });
- }, 50);
- }
- };
-}]);
-
-angular.module('att.abs.tableMessages', ['att.abs.utilities'])
- .constant('messageConstants', {
- TABLE_MESSAGE_TYPES: {
- noMatching: 1,
- errorLoading: 2,
- magnifySearch: 3,
- isLoading: 4},
- USER_MESSAGE_TYPES: {
- success: 1,
- error: 0
- }
- })
- .directive('attTableMessage', ['messageConstants', function(messageConstants) {
- return {
- restrict: 'AE',
- replace: true,
- transclude: true,
- scope: {
- msgType: '=',
- onRefreshClick: '&'
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html',
- link: function(scope) {
- scope.messageConstants = messageConstants;
- scope.refreshAction = function(evt) {
- scope.onRefreshClick(evt);
- };
- }
- };
- }]).directive('attUserMessage', ['messageConstants', '$timeout', 'DOMHelper', function(messageConstants, $timeout, DOMHelper) {
- return {
- restrict: 'AE',
- replace: true,
- transclude: true,
- scope: {
- thetitle: '=',
- type: '=',
- message: '=',
- trigger: '='
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html',
- link: function(scope, element) {
- var prevActiveElement = undefined;
- var firstElement = undefined;
- scope.messageConstants = messageConstants;
-
- $timeout(function() {
- firstElement = DOMHelper.firstTabableElement(element[0]);
- }, 10);
-
-
- scope.$watch('trigger', function() {
- if (scope.trigger) {
- prevActiveElement = document.activeElement;
- if (angular.isDefined(firstElement)) {
- firstElement.focus();
- }
- } else {
- if (angular.isDefined(prevActiveElement)) {
- prevActiveElement.focus();
- }
- }
- })
-
-
- }
- };
- }]);
-angular.module('att.abs.tabs', ['att.abs.utilities'])
- .directive('attTabs', function () {
- return{
- restrict: 'EA',
- transclude: false,
- replace: true,
- scope: {
- tabs: "=title"
- },
- controller: ['$scope', function ($scope) {
- this.getData = function () {
- return $scope.tabs;
- };
- this.onClickTab = function (tab) {
- $scope.currentTab = tab.url;
- return $scope.currentTab;
- };
- this.isActiveTab = function (tab) {
- return (tab === $scope.currentTab);
- };
- }],
- link: function (scope) {
- for (var i = 0; i < scope.tabs.length; i++) {
- if ((scope.tabs[i].selected) && (scope.tabs[i].url)) {
- scope.currentTab = scope.tabs[i].url;
- }
- }
- }
- };
- })
- .directive('floatingTabs', function () {
- return {
- require: '^attTabs',
- restrict: 'EA',
- transclude: false,
- replace: true,
- scope: {
- size: "@"
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/tabs/floatingTabs.html',
- link: function (scope, elem, attr, attTabsCtrl) {
- scope.tabs = attTabsCtrl.getData();
- scope.onClickTab = attTabsCtrl.onClickTab;
- scope.isActiveTab = attTabsCtrl.isActiveTab;
- }
- };
- })
- .directive('simplifiedTabs', function () {
- return {
- require: '^attTabs',
- restrict: 'EA',
- transclude: false,
- replace: true,
- scope: {
- ctab: "=ngModel"
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html',
- link: function (scope, elem, attr, attTabsCtrl) {
- scope.tabs = attTabsCtrl.getData();
- scope.clickTab = function (tab) {
- scope.ctab = tab.id;
- return scope.ctab;
- };
- scope.isActive = function (tab) {
- return (tab === scope.ctab);
- };
- }
- };
- })
- .directive('genericTabs', ['$state',function ($state) {
- return {
- require: '^attTabs',
- restrict: 'EA',
- transclude: false,
- replace: true,
- scope: {
- ctab: "=ngModel"
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/tabs/genericTabs.html',
- link: function (scope, elem, attr, attTabsCtrl) {
- scope.tabs = attTabsCtrl.getData();
- scope.clickTab = function (tab) {
- if (tab.state!=null) {
- $state.go(tab.state);
- return scope.ctab;
- }
- scope.ctab = tab.id;
- return scope.ctab;
- };
- scope.isActive = function (tab) {
- return (tab === scope.ctab);
- };
- }
- };
- }])
- .directive('skipNavigation', function(){
- return{
- link: function(scope,elem,attr){
- elem.bind('click', function(){
- var skiptoBody = angular.element(elem.parent().parent().parent().parent())[0].querySelector('a.skiptoBody');
- (angular.element(skiptoBody)).attr('tabindex',-1);
- skiptoBody.focus();
- });
-
- }
- }
- })
- .directive('parentTab', [function () {
- return {
- restrict: 'EA',
- scope: {
- menuItems: '=',
- activeSubMenu: '=',
- activeMenu: '='
- },
- controller: ['$scope', function ($scope) {
- $scope.megaMenu = $scope.menuItems;
- $scope.megaMenuTab;
- $scope.megaMenuHoverTab;
- this.setMenu = function () {
- $scope.menuItems = $scope.megaMenu;
- $scope.activeSubMenu.scroll=false;
- for (var i = 0; i < $scope.menuItems.length; i++) {
- if ($scope.menuItems[i].active) {
- $scope.activeMenu = $scope.menuItems[i];
- }
- }
- this.setSubMenuStatus(false);
- $scope.$apply();
- };
- this.setActiveMenu = function () {
- if (!($scope.megaMenuTab === undefined || $scope.megaMenuTab === null)) {
- $scope.menuItems = [$scope.megaMenuTab];
- $scope.megaMenuTab.scroll = true;
- $scope.activeMenu = {};
- $scope.activeSubMenu = $scope.megaMenuTab;
- this.setSubMenuStatus(true);
- }
- else{
- for(var i=0; i<$scope.menuItems.length; i++){
- ($scope.menuItems[i].active = false);
- if($scope.menuItems[i].subItems)
- for(var j=0; j<$scope.menuItems[i].subItems.length; j++){
- $scope.menuItems[i].subItems[j].active = false;
- };
- };
- $scope.menuItems=$scope.megaMenu;
- }
- $scope.$apply();
- };
- var checkSubMenuStatus = false;
- this.setSubMenuStatus = function (value) {
- checkSubMenuStatus = value;
- };
- this.getSubMenuStatus = function () {
- return checkSubMenuStatus;
- };
- this.setActiveMenuTab = function (tab) {
- $scope.megaMenuTab = tab;
- };
- this.setActiveMenuHoverTab = function (tab) {
- $scope.megaMenuHoverTab = tab;
- };
- this.setActiveSubMenuTab = function () {
- $scope.megaMenuTab = $scope.megaMenuHoverTab;
- };
- this.resetMenuTab = function () {
- $scope.megaMenuTab = undefined;
- };
- this.clearSubMenu = function () {
- /* Clears Sub-tems when focus shifts from Sub-menu to Mega menu*/
- $scope.$evalAsync(function(){
- $scope.megaMenuTab = undefined;
- $scope.megaMenuHoverTab = undefined;
- })
- };
- }]
- };
- }])
- .directive('parentmenuTabs', [function () {
- return {
- restrict: 'EA',
- transclude: true,
- replace: true,
- scope: {
- megaMenu: '@',
- menuItems: '='
- },
- controller: ['$scope', function ($scope) {
- this.getMenu = function () {
- return $scope.menuItems;
- };
- this.setMenu = function (menuItem) {
- $scope.menuItems = menuItem;
- };
- }],
- templateUrl: 'app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html'
- };
- }])
-
- .directive('menuTabs', ["$window", "$document",'events','keymap', function (win, $document, events, keymap) {
- return {
- restrict: 'EA',
- transclude: true,
- replace: true,
- require: ['^?parentTab', '^?parentmenuTabs'],
- scope: {
- activeMenu: "=",
- menuItem: "=",
- subMenu: "@",
- subItemActive: "@",
- tabName: "=?",
- tabUrl: "=?"
- },
- templateUrl: function (element, attrs) {
- if (attrs.megaMenu) {
- return 'app/scripts/ng_js_att_tpls/tabs/menuTab.html';
- }
- else {
- return 'app/scripts/ng_js_att_tpls/tabs/submenuTab.html';
- }
- },
- link: function (scope, elem, attr, ctrl) {
- var parentCtrl = ctrl[0];
- var parentmenuCtrl = ctrl[1];
- scope.clickInactive = true;
- scope.showHoverChild = function (e) {
- scope.clickInactive = false;
- scope.hoverChild = ctrl[0].getSubMenuStatus();
- if (e.type === "mouseover" && ctrl[0].getSubMenuStatus())
- {
- scope.showChildren(e);
- }
- };
- scope.showChildren = function (e) {
- scope.parentMenuItems = parentmenuCtrl.getMenu();
- for (var i = 0; i < scope.parentMenuItems.length; i++) {
- scope.parentMenuItems[i].active = false;
- if (scope.parentMenuItems[i].subItems) {
- for (var j = 0; j < scope.parentMenuItems[i].subItems.length; j++) {
- scope.parentMenuItems[i].subItems[j].active = false;
- }
- }
- scope.clickInactive = true;
- }
- scope.menuItem.active = true;
- scope.activeMenu = scope.menuItem;
- e.stopPropagation();
- };
- scope.$watch("subItemActive", function (value) {
- if (value === "true" && scope.subMenu === 'true') {
- parentCtrl.setActiveMenuHoverTab(scope.menuItem);
- }
- });
- scope.showMenuClick = function (e) {
- parentCtrl.setActiveMenuTab(scope.menuItem);
- e.stopPropagation();
- };
- scope.showSubMenuClick = function (e) {
- parentCtrl.setActiveSubMenuTab();
- e.stopPropagation();
- };
- scope.resetMenu = function (e) {
- parentCtrl.resetMenuTab();
- e.stopPropagation();
- };
- function debounce(method, delay) {
- clearTimeout(method._tId);
- method._tId = setTimeout(function () {
- parentCtrl.setMenu();
- }, delay);
- }
- function debounce1(method, delay) {
- clearTimeout(method._tId);
- method._tId = setTimeout(function () {
- parentCtrl.setActiveMenu();
- }, delay);
- }
- $document.bind('scroll', function () {
- if (win.pageYOffset === 0) {
- debounce(parentCtrl.setMenu, 100);
- }
- else if (win.pageYOffset > 1 && win.pageYOffset < 1500) {
- debounce1(parentCtrl.setActiveMenu, 100);
- }
- });
- elem.bind('keydown', function(evt){
- if (!(evt.keyCode)){
- evt.keyCode = evt.which;
- }
- if(evt.keyCode !== keymap.KEY.TAB){
- events.preventDefault(evt);
- events.stopPropagation(evt);
- }
-
- switch (evt.keyCode) {
- case keymap.KEY.ESC:
- var skiptoBody;
- if (!(elem.attr('mega-menu'))) {
- if (elem.attr("sub-menu") === "true") {
- /* condition true when user navigates through Sub-menu*/
-
- skiptoBody = angular.element(elem.parent().parent().parent().parent().parent().parent().parent())[0].querySelector('a.skiptoBody');
- (angular.element(skiptoBody)).attr('tabindex',-1);
- skiptoBody.focus();
- }
- else if (elem.attr("sub-menu") === undefined) {
- skiptoBody = angular.element(elem.parent().parent().parent().parent().parent().parent().parent().parent().parent().parent())[0].querySelector('a.skiptoBody');
- (angular.element(skiptoBody)).attr('tabindex',-1);
- skiptoBody.focus();
- }
- }
- else
- {
- if (elem.attr("menu-item") === "item") {
- /* Works when user on Mega menu*/
-
- skiptoBody = angular.element(elem.parent().parent().parent().parent())[0].querySelector('a.skiptoBody');
- (angular.element(skiptoBody)).attr('tabindex',-1);
- skiptoBody.focus();
- }
- }
- break;
- case keymap.KEY.RIGHT:
- if (!(elem.attr('mega-menu'))) {
- var el = angular.element(elem)[0];
- if (elem.attr("sub-menu") === "true") {
- /* condition true when user navigates through Sub-menu*/
- if(el.nextElementSibling === null){ break;}
- if(el.nextElementSibling){
- el.nextElementSibling.querySelector("a").focus();
- }
- else{
- do{
- if (el && el.nextSibling){
- el = el.nextSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'LI');
- if(el){
- if (el.querySelector("a") == null){}
- else{
- el.querySelector("a").focus();}
- }
- events.preventDefault(evt);
- events.stopPropagation(evt);
- }
- }
- else if (elem.attr("sub-menu") === undefined) {
- if(el.nextElementSibling === null) break;
- if(el.nextElementSibling){
- el.nextElementSibling.querySelector("a").focus();
- }
- else{
- do{
- if (el && el.nextSibling){
- el = el.nextSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'LI');
- if(el){
- if (el.querySelector("a") == null){}
- else{
- el.querySelector("a").focus();}
- }
-
- }
- }
- }
- else
- {
- if (elem.attr("menu-item") === "item") {
- /* When user navigates through on Mega menu*/
-
- var el = angular.element(elem)[0];
-
- if(el.nextElementSibling){
- if(el.nextElementSibling.querySelector("span") == null){
- }
- else {
- el.nextElementSibling.querySelector("span").focus();
- }
- }
- else{
- do{
- if (el && el.nextSibling){
- el = el.nextSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'LI');
- if(el){
- if(el.querySelector("span") === null){}
- else {
- el.querySelector("span").focus();
- }
- }
- events.preventDefault(evt);
- events.stopPropagation(evt);
- }
- }
- }
- break;
- case keymap.KEY.DOWN:
-
-
- if (elem.attr('mega-menu')) {
- /* When user navigates from top menu to Sub-menu*/
- angular.element(elem)[0].querySelectorAll(".megamenu__items")[0].querySelector("a").focus();
- }
- else if(elem.attr("sub-menu") === undefined) {
- /*When user navigates within Sub Items*/
- var el = document.activeElement;
- if(el.nextElementSibling === null) break;
- if(el.nextElementSibling) {
- el.nextElementSibling.focus();
- }else{
- do {
- if (el && el.nextSibling){
- el = el.nextSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'A');
- if(el.attributes !== null){
- el.focus();
- }
- events.stopPropagation(evt);
- }
-
- }
- else if (elem.attr("sub-menu")=== "true" ) {
- /* condition true when user navigates from sub menu to Sub Item*/
- var childItems = angular.element(elem)[0].querySelector("span").querySelector('a');
- if(childItems === null) break;
- childItems.focus();
- }
- break;
-
- case keymap.KEY.LEFT:
-
- if (!(elem.attr('mega-menu'))) {
- var el = angular.element(elem)[0];
- if (elem.attr("sub-menu") === "true") {
- /* condition true when user navigates through Sub-menu*/
- if(el.previousElementSibling === null) break;
- if(el.previousElementSibling){
- el.previousElementSibling.querySelector("a").focus();
- }
- else{
- do{
- if (el && el.previousSibling){
- el = el.previousSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'LI');
- if(el){
- if (el.querySelector("a") == null){}
- else{
- el.querySelector("a").focus();}
- }
- events.preventDefault(evt);
- events.stopPropagation(evt);
- }
-
- /*el.previousElementSibling.querySelector("span").focus();
- events.stopPropagation(evt);
- break;*/
- }
- else if (elem.attr("sub-menu") === undefined) {
- if(el.previousElementSibling === null) break;
- if(el.previousElementSibling){
- el.previousElementSibling.querySelector("a").focus();
- }
- else{
- do{
- if (el && el.previousSibling){
- el = el.previousSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'LI');
- if(el){
- if (el.querySelector("a") == null){}
- else{
- el.querySelector("a").focus();}
- }
- }
- }
- }
- else
- {
- if (elem.attr("menu-item") === "item") {
- /* Works when user on Mega menu*/
-
- var el = angular.element(elem)[0];
- if(el.previousElementSibling){
-
- if(el.previousElementSibling.querySelector("span") === null){
- }
- else {
- el.previousElementSibling.querySelector("span").focus();
- }
-
- }
- else{
- do{
- if (el && el.previousSibling){
- el = el.previousSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'LI');
- if(el){
- if (el.querySelector("span") === null) {
- }
- else {
- el.querySelector("span").focus();
- }
- }
- events.preventDefault(evt);
- events.stopPropagation(evt);
- }
- }
- }
- break;
- case keymap.KEY.UP:
-
- if (elem.attr("sub-menu") === "true") {
- var el = document.activeElement;
- var parent_menu = angular.element(elem.parent().parent().parent().parent())[0].querySelector("span");
- parent_menu.focus();
- parentCtrl.clearSubMenu();
- scope.menuItem.active = false;
- break;
- }
- else if(elem.attr("sub-menu") === undefined) {
- /* condition true when user navigates within Sub Items*/
- var el = document.activeElement;
- var parent_menu = angular.element(elem.parent().parent().parent().parent())[0].querySelector("a");
- if(document.activeElement === angular.element(el).parent().parent()[0].querySelectorAll('a')[0]){
- parent_menu.focus();
- break;
- };
-
- if(el.previousElementSibling) {
- var prev_a = el.previousElementSibling;
- (el.previousElementSibling != null)? el.previousElementSibling.focus(): parent_menu.focus();
- }else{
- do{
- if (el && el.previousSibling){
- el = el.previousSibling;
- }
- else{
- break;
- }
- } while (el && el.tagName !== 'A');
- if(el && (el.nodeType !== 3)){
- el.focus();
- }
- events.preventDefault(evt);
- events.stopPropagation(evt);
- }
-
- break;
- }
- default:
- break;
- }
- });
- }
- };
- }]);
-
-angular.module('att.abs.tagBadges', [])
- .directive('tagBadges', ['$parse', '$timeout', function($parse, $timeout) {
- return {
- restrict: 'EA',
- replace: false,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html',
- scope: {
- styleType: "@",
- onClose: "&"
- },
- link: function(scope, elem, attr) {
- scope.isSmall = false;
- scope.isIcon = false;
- scope.isColor = false;
- scope.display = true;
- scope.isClosable = false;
- scope.isHighlight = false;
- scope.customColor = false;
-
- if (attr.small === "") {
- scope.isSmall = true;
- }
- if (scope.styleType === "icon") {
- scope.isIcon = true;
- }
- else if (scope.styleType === "color") {
- scope.isColor = true;
- if(attr.color !== undefined && attr.color !== "") {
- scope.customColor = true;
- attr.$observe("color", function(val) {
- scope.border_type_borderColor = val;
- scope.background_type_backgroundColor = val;
- scope.background_type_borderColor = val;
- });
- }
- }
- scope.activeHighlight = function(state){
- if(scope.customColor){
- if(state){
- scope.isHighlight = true;
- }
- else{
- scope.isHighlight = false;
- }
- }
- };
- if (attr.closable === "") {
- scope.isClosable = true;
- scope.closeMe = function() {
- scope.display = false;
- $timeout(function(){
- elem.attr("tabindex", "0");
- elem[0].focus();
- elem.bind('blur', function(){
- elem.remove();
- });
- });
- if(attr['onClose']){
- scope.onClose = $parse(scope.onClose);
- scope.onClose();
- }
- };
- }
- }
- };
- }]);
-angular.module('att.abs.textOverflow', [])
- .constant('textDefaultOptions', {
- width: '50%'
- })
-.directive('attTextOverflow', ['textDefaultOptions','$compile',function(textDefaultOptions,$compile)
-{
- return {
- restrict: 'A',
- link: function(scope, elem, attrs)
- {
- var tooltipText = elem.text();
- elem.addClass('text-ellipsis');
- attrs.$observe('attTextOverflow', function(val){
- if(val){
- elem.css({"width":val});
- }
- else{
- elem.css({"width":textDefaultOptions.width});
- }
- });
- if(!(elem.attr('tooltip'))){
- elem.attr("tooltip", tooltipText);
- elem.attr("tooltip-placement", 'above');
- var newElem = angular.element(elem);
- $compile(newElem)(scope);
- }
- }
- };
-}]);
-
-angular.module('att.abs.toggle', ['angular-gestures', 'att.abs.position'])
- .directive('attToggleTemplate', ['$compile', '$log', '$position', function ($compile, $log, $position)
- {
- return{
- restrict: 'A',
- require: 'ngModel',
- transclude: true,
- scope: {
- modelVal: "=ngModel"
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/toggle/demoToggle.html',
- link: function (scope, element, attr) {
- scope.initialDragPosition = 0;
- var dragStatus = 0;
- var switchMovementPath = ($position.offset(element.children().eq(1).children().eq(0)).width - 1);
- var updateModelVal = function () {
- if (scope.attrValue === attr.ngTrueValue || scope.attrValue)
- {
- scope.modelVal = false;
- }
- else
- {
- scope.modelVal = true;
- }
- };
- scope.updateModel = function (env) {
- {
- if (dragStatus !== 1) {
- updateModelVal();
- dragStatus = 0;
- }
- }
- env.preventDefault();
- };
- scope.drag = function (e) {
- dragStatus = 1;
- if (e.type === 'dragstart') {
- scope.initialDragPosition = $position.position(element.children().eq(1)).left;
- element.children().eq(1).addClass('dragging');
- } else if (e.type === 'drag') {
- var left = Math.min(0, Math.max(scope.initialDragPosition + e.gesture.deltaX, -switchMovementPath));
- element.children().eq(1).css({
- left: left + 'px'
- });
- } else if (e.type === 'dragend') {
- var isOn = $position.position(element.children().eq(1)).left > (switchMovementPath * -1) / 2;
- element.children().eq(1).removeClass('dragging');
- TweenMax.to(element.children().eq(1), .1, {left: isOn ? 0 : (switchMovementPath * -1), ease: Power4.easeOut,
- onComplete: function () {
- element.children().eq(1).css({left: ''});
- }});
- if (isOn || (!isOn && e.gesture.direction === "left")) {
- updateModelVal();
- }
- dragStatus = 0;
- }
-
- return false;
- };
-
- scope.directiveValue = attr.attToggleTemplate;
- scope.on = attr.trueValue;
- scope.off = attr.falseValue;
- var switchMovementPathPixels = ((switchMovementPath) * -1) + 'px';
- scope.$watch('modelVal', function (newVal) {
- scope.attrValue = newVal;
- if (newVal === attr.ngTrueValue || newVal) {
- element.children().eq(1).css({
- left: '0px'
- });
- element.addClass('att-checkbox--on');
- var elem = element.find('div').find('div').eq(1);
- elem.attr("aria-checked", true);
- dragStatus = 0;
- } else {
- element.children().eq(1).css({
- left: switchMovementPathPixels
- });
- element.removeClass('att-checkbox--on');
- var elem = element.find('div').find('div').eq(1);
- elem.attr("aria-checked", false);
- dragStatus = 0;
- }
- element.children().eq(1).css({
- left: ''
- });
- });
- }
- };
- }
- ])
-
- .directive('attToggleMain', ['$compile', function ($compile)
- {
- return{
- restrict: 'A',
- require: 'ngModel',
- transclude: true,
- replace: true,
- scope: {
- modelValue: "=ngModel",
- trueValue: "=ngTrueValue",
- falseValue: "=ngFalseValue"
- },
- link: function (scope, element, attr) {
- var html = "";
- var attrVal = "";
- element.removeAttr('att-toggle-main');
- scope.on = attr.ngTrueValue;
- scope.off = attr.ngFalseValue;
- scope.largeValue = attr.attToggleMain;
- if (angular.isDefined(attr.ngTrueValue)) {
- html += ' true-value="{{on}}" false-value="{{off}}"';
- }
- if (scope.largeValue !== undefined)
- {
- attrVal += ' ="{{largeValue}}"';
- }
-
- element.css({display: 'none'});
- var elm = angular.element('<div class="att-switch att-switch-alt" ng-class="{\'large\' : largeValue == \'large\'}" ng-model="modelValue"' + html + ' att-toggle-template' + attrVal + '>' + element.prop('outerHTML') + '</div>');
- elm = $compile(elm)(scope);
- element.replaceWith(elm);
- }
- };
- }]);
-angular.module('att.abs.treeview', [])
- .directive('treeView', function() {
- return{
- restrict: 'A',
- link: function(scope, elem) {
- var el = elem.children('ul li');
- var list = TweenMax.from(el, .2, {display: 'none', paused: true, reversed: true});
- elem.attr("tabindex","0");
- function toggleBranch() {
- if (list.reversed())
- {
- list.play();
- } else
- {
- list.reverse();
- }
- };
- function toggleTree(e) {
- e.stopPropagation();
- if (angular.element(e.target).attr("tree-view") !== undefined)
- {
- if (elem.hasClass('minus'))
- {
- elem.removeClass('minus');
- }
- else
- {
- elem.addClass('minus');
- }
- toggleBranch();
- }
- }
- elem.on('click', function(e) {
- toggleTree(e);
- });
- elem.on('keypress', function (e) {
- var activeCode = e.keyCode ? e.keyCode : e.charCode;
- var keyCode = [13,32];
- if (keyCode.length > 0 && ((activeCode && keyCode.indexOf(activeCode) > -1))) {
- toggleTree(e);
- e.preventDefault();
- }
- });
- }
- };
- });
-
-angular.module('att.abs.typeAhead', ['att.abs.tagBadges'])
-
- .directive('focusMe',['$timeout', '$parse', function($timeout, $parse) {
- return {
- link: function(scope, element, attrs) {
- var model = $parse(attrs.focusMe);
- scope.$watch(model, function(value) {
- if (value) {
- $timeout(function() {
- element[0].focus();
- scope.inputActive=true;
- });
- }
- });
- element.bind('blur', function() {
- model.assign(scope, false);
- scope.inputActive=false;
- scope.$digest();
- });
- }
- };
- }])
-
- .directive('typeAhead', ['$timeout','$log', function($timeout,$log) {
- return {
- restrict: 'EA',
- templateUrl: 'app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html',
- replace: true,
- scope: {
- items: '=',
- title: '@?',
- titleName: '@',
- subtitle: '@',
- model: '=',
- emailIdList:'=',
- emailMessage:'='
- },
- link: function(scope, elem) {
- if(!angular.isDefined(scope.titleName) && angular.isDefined(scope.title)){
- $timeout(function(){
- scope.titleName = scope.title;
- $log.warn("title attribute is deprecated and title-name attribute is used instead as it is conflicting with html title attribute");
- });
- }
- scope.lineItems = [];
- scope.filteredListLength = -1;
- scope.filteredList = [];
- scope.setFocus = function() {
- scope.clickFocus = true;
- };
- scope.setFocus();
- scope.handleSelection = function(selectedItem,emailItem) {
- scope.lineItems.push(selectedItem);
- scope.emailIdList.push(emailItem);
- scope.model = "";
- scope.current = 0;
- scope.selected = true;
- scope.clickFocus = true;
- };
- scope.theMethodToBeCalled = function(index) {
- var tempArr = scope.lineItems.slice();
- scope.emailIdList.splice(index, 1);
- tempArr.splice(index, 1);
- $timeout(function() {
- scope.lineItems = [];
- scope.$apply();
- scope.lineItems = scope.lineItems.concat(tempArr);
- });
- };
-
- scope.current = 0;
- scope.selected = true;
-
- scope.isCurrent = function(index, itemName,itemEmail,dropdownLength) {
- if (scope.current === index) {
- scope.itemName = itemName;
- scope.itemEmail = itemEmail;
- }
- scope.dropdownLength=dropdownLength;
- return scope.current === index;
- };
-
- scope.setCurrent = function(index) {
- scope.current = index;
- };
-
- scope.selectionIndex = function(evt) {
- if (evt.keyCode === 38 && scope.current > 0) {
- evt.preventDefault();
- scope.current = scope.current - 1;
- scope.isCurrent(scope.current);
- } else if (evt.keyCode === 9) {
- scope.selected = true;
- } else if (evt.keyCode === 13 && scope.dropdownLength!==scope.items.length) {
- scope.handleSelection(scope.itemName,scope.itemEmail);
- } else if ((evt.keyCode === 8 && scope.model.length === 0) || evt.keyCode === 46) {
- scope.theMethodToBeCalled(scope.lineItems.length - 1);
- } else if (evt.keyCode === 40 && scope.current < scope.dropdownLength-1) {
- evt.preventDefault();
- scope.current = scope.current + 1;
- scope.isCurrent(scope.current);
- }
- elem[0].querySelector('.list-scrollable').scrollTop = (scope.current - 1) * 35;
- };
- }
- };
- }]);
-angular.module('att.abs.verticalSteptracker', ['ngSanitize'])
- .directive('verticalSteptracker', [ function(){
- return {
- restrict: 'EA',
- transclude: true,
- replace: false,
- scope: {},
- template: '<div class="vertical-nav"><ul ng-transclude arial-label="step list" role="presentation" class="tickets-list-height"></ul></div>',
- link: function () {}
- };
- }])
- .directive('verticalSteptrackerStep',[ function(){
- return {
- restrict: 'EA',
- transclude: true,
- replace: false,
- scope: {
- type: "=type",
- id: "=id"
- },
- templateUrl: 'app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html',
- link: function(){}
- };
- }])
- .directive('attAbsLink',[ function(){
- return{
- restrict: 'EA',
- transclude: true,
- replace: false,
- template: '<span ng-transclude class="view-log"></span>'
- };
- }]);
-angular.module('att.abs.videoControls', [])
- .config(['$compileProvider' , function ($compileProvider) {
- $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|javascript):/);
- }])
- .directive('videoControls', [function() {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/videoControls/videoControls.html'
- };
- }])
- .directive('photoControls', [function() {
- return {
- restrict: 'EA',
- replace: true,
- transclude: true,
- templateUrl: 'app/scripts/ng_js_att_tpls/videoControls/photoControls.html',
- scope: {
- prevLink: "@",
- nextLink: "@"
- },
- link: function(scope, elem, attr) {
- if(!attr['prevLink']){
- scope.prevLink = 'javascript:void(0)';
- }
- if(!attr['nextLink']){
- scope.nextLink = 'javascript:void(0)';
- }
- scope.links = {
- prevLink : scope.prevLink,
- nextLink : scope.nextLink
- };
- }
- };
- }]);
-angular.module("app/scripts/ng_js_att_tpls/accordion/accordion.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/accordion/accordion.html",
- "<div class=\"att-accordion__group tabpanel\" ng-class=\"{'att-accordion__group att-accordion__group--open':isOpen,'att-accordion__group':!isOpen }\">\n" +
- " <a ng-show=\"showicon\" \n" +
- " class=\"toggle-header att-accordion__heading att-accordion__toggle noafter\" \n" +
- " aria-selected=\"{{focused}}\" \n" +
- " aria-controls=\"panel{{index}}\" \n" +
- " aria-expanded=\"{{isOpen}}\" \n" +
- " ng-class=\"{focus: focused, selected: focused}\" \n" +
- " role=\"tab\" \n" +
- " ng-click=\"toggle()\" \n" +
- " accordion-transclude=\"heading\" \n" +
- " style=\"cursor:pointer; text-decoration:none\">\n" +
- " <span>{{heading}}</span>\n" +
- " <i ng-class=\"{'icon-chevron-down':!isOpen,'icon-chevron-up':isOpen }\" class=\"pull-right\"></i>\n" +
- " </a>\n" +
- " <div ng-show=\"!showicon\" \n" +
- " ng-class=\"{focus: focused, selected: focused}\" \n" +
- " style=\"text-decoration:none\" \n" +
- " accordion-transclude=\"heading\" \n" +
- " role=\"tab\" \n" +
- " aria-expanded=\"{{isOpen}}\"\n" +
- " aria-selected=\"{{focused}}\" \n" +
- " aria-controls=\"panel{{index}}\" \n" +
- " class=\"toggle-header att-accordion__heading att-accordion__toggle noafter\">\n" +
- " <span>{{heading}}</span>\n" +
- " </div> \n" +
- " <div aria-label=\"{{heading}}\" \n" +
- " aria-hidden=\"{{!isOpen}}\" \n" +
- " role=\"tabpanel\" \n" +
- " collapse=\"!isOpen\" \n" +
- " class=\"att-accordion__body\" \n" +
- " id=\"panel{{index}}\" \n" +
- " ng-transclude>\n" +
- " </div>\n" +
- " <div class=\"att-accordion__bottom--border\"></div> \n" +
- "</div> ");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/accordion/accordion_alt.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/accordion/accordion_alt.html",
- "<div class=\"att-accordion__group tabpanel\" ng-class=\"{'att-accordion__group att-accordion__group--open':isOpen,'att-accordion__group':!isOpen }\">\n" +
- " <a class=\"toggle-header att-accordion__heading att-accordion__toggle\" \n" +
- " aria-selected=\"{{focused}}\" \n" +
- " aria-controls=\"panel{{index}}\" \n" +
- " ng-class=\"{focus: focused, selected: focused}\" \n" +
- " aria-expanded=\"{{isOpen}}\" \n" +
- " role=\"tab\" \n" +
- " ng-click=\"toggle()\" \n" +
- " accordion-transclude=\"heading\"> \n" +
- " </a>\n" +
- " <span>{{heading}}</span>\n" +
- " <div aria-label=\"{{heading}}\" \n" +
- " aria-hidden=\"{{!isOpen}}\" \n" +
- " role=\"tabpanel\" \n" +
- " collapse=\"!isOpen\" \n" +
- " class=\"att-accordion__body\" \n" +
- " id=\"panel{{index}}\" \n" +
- " ng-transclude>\n" +
- " </div>\n" +
- "</div> ");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/accordion/attAccord.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/accordion/attAccord.html",
- "<div ng-transclude></div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/accordion/attAccordBody.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/accordion/attAccordBody.html",
- "<div ng-transclude></div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html",
- "<div ng-click=\"clickFunc()\">\n" +
- " <div ng-transclude>\n" +
- " <i class=\"icon-chevron-down\"></i>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/alert/alert.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/alert/alert.html",
- "<div class=\"alert\" ng-class=\"{'alert-success': alertType === 'success', 'alert-warning': alertType === 'warning', 'alert-error': alertType === 'error', 'alert-info': alertType === 'info', 'alert-inplace': showTop !== 'true'}\" ng-show=\"showAlert\" ng-style=\"cssStyle\">\n" +
- " <div class=\"container\">\n" +
- " <a href=\"javascript:void(0)\" alt=\"close\" class=\"close-role\" ng-click=\"close()\" tabindex=\"0\" att-accessibility-click=\"32,13\">Dismiss <i class=\"icon-circle-action-close\"></i></a>\n" +
- " <span ng-transclude> </span>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html",
- "<div tabindex=\"0\" att-accessibility-click=\"13,32\" ng-click=\"addBoard()\" aria-label=\"Add Board\" class=\"boardstrip-item--add\">\n" +
- " <i aria-hidden=\"true\" class=\"icon-add centered\"></i>\n" +
- " <br/>\n" +
- " <div class=\"centered\">Add board</div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/boardStrip/attBoard.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/boardStrip/attBoard.html",
- "<li att-board-navigation tabindex=\"0\" aria-label=\"{{boardLabel}}\" att-accessibility-click=\"13,32\" ng-click=\"selectBoard(boardIndex)\" class=\"board-item\" ng-class=\"{'selected': getCurrentIndex()===boardIndex}\">\n" +
- " <div ng-transclude></div>\n" +
- " <div class=\"board-caret\" ng-if=\"getCurrentIndex()===boardIndex\">\n" +
- " <div class=\"board-caret-indicator\"></div>\n" +
- " <div class=\"board-caret-arrow-up\"></div>\n" +
- " </div>\n" +
- "</li>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html",
- "<div class=\"att-boardstrip\">\n" +
- " <div class=\"boardstrip-reel\">\n" +
- " <div class=\"prev-items\" ng-if=\"isPrevBoard()\">\n" +
- " <i tabindex=\"0\" aria-label=\"Scroll Boardstrip Left\" att-accessibility-click=\"13,32\" ng-click=\"prevBoard()\" class=\"arrow icon-arrow-left-circle\"></i>\n" +
- " </div>\n" +
- " <div att-add-board on-add-board=\"onAddBoard()\"></div>\n" +
- " <div class=\"board-viewport\"><ul role=\"presentation\" class=\"boardstrip-container\" ng-transclude></ul></div>\n" +
- " <div class=\"next-items\" ng-if=\"isNextBoard()\">\n" +
- " <i tabindex=\"0\" aria-label=\"Scroll Boardstrip Right\" att-accessibility-click=\"13,32\" ng-click=\"nextBoard()\" class=\"arrow icon-arrow-right-circle\"></i>\n" +
- " </div>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html",
- "<div class=\"att-btn-dropdown\">\n" +
- " <div class=\"buttons-dropdown--small btn-group\" ng-class=\"{'open': isOpen}\" att-accessibility-click=\"13,32\" ng-click=\"toggle()\">\n" +
- " \n" +
- " <button role=\"menu\" class=\"button button--secondary button--small buttons-dropdown__drop dropdown-toggle\" ng-if=\"type==='dots'\" alt=\"Click for Options\" >\n" +
- " \n" +
- " <div class=\"circle\"></div>\n" +
- " <div class=\"circle\"></div>\n" +
- " <div class=\"circle\"></div>\n" +
- " </button>\n" +
- " <button role=\"menu\" class=\"button button--secondary button--small buttons-dropdown__drop dropdown-toggle ng-isolate-scope actions-title\" ng-if=\"type === 'actions'\" alt=\"Actions dropdown Buttons\">Actions</button>\n" +
- " \n" +
- "\n" +
- " <ul ng-class=\"{'dropdown-menu dots-dropdwn': type==='dots', 'dropdown-menu actions-dropdwn': type === 'actions'}\" ng-transclude></ul>\n" +
- " </div>\n" +
- " \n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/colorselector/colorselector.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/colorselector/colorselector.html",
- "<div class=\"att-radio att-color-selector__item\" \n" +
- " ng-class=\"{'att-radio--on': (iconColor === selected)}\">\n" +
- " <div class=\"att-radio__indicator\" tabindex=\"0\" att-accessibility-click=\"32,13\" ng-click=\"selectedcolor(iconColor)\" \n" +
- " ng-style=\"applycolor\" ng-transclude></div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/datepicker/dateFilter.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/datepicker/dateFilter.html",
- "<div class=\"calendar\" ng-class=\"{'monthpicker':mode === 1}\">\n" +
- " <div class=\"select2-container\" ng-class=\"{'select2-container-active select2-dropdown-open': showDropdownList}\" style=\"width: 100%; z-index:0\">\n" +
- " <a tabindex=\"0\" id=\"select2-choice\" class=\"select2-choice\" href=\"javascript:void(0)\" att-element-focus=\"focusInputButton\" ng-show=\"!showCalendar\" att-accessibility-click=\"13,32\" ng-click=\"showDropdown()\" ng-blur=\"focusInputButton=false\">\n" +
- " <span class=\"select2-chosen\" ng-show=\"!showCalendar\">{{selectedOption}}</span>\n" +
- " <input type=\"text\" ng-show=\"showCalendar\" ng-blur=\"untrackInputChange($event)\" att-input-deny=\"[^0-9\\/-]\" maxlength=\"{{maxLength}}\" ng-model=\"selectedOption\" aria-labelledby=\"select2-choice\" ng-change=\"getDropdownText()\" />\n" +
- " <abbr class=\"select2-search-choice-close\"></abbr>\n" +
- " <span ng-class=\"{'select2-arrow': mode !== 1, 'calendar-icon': mode === 1}\"><b></b></span>\n" +
- " </a>\n" +
- " <a id=\"select2-chosen\" class=\"select2-choice\" href=\"javascript:void(0)\" ng-show=\"showCalendar\">\n" +
- " <span class=\"select2-chosen\" ng-show=\"!showCalendar\">{{selectedOption}}</span>\n" +
- " <input type=\"text\" ng-show=\"showCalendar\" ng-blur=\"untrackInputChange($event)\" att-input-deny=\"[^0-9\\/-]\" maxlength=\"{{maxLength}}\" ng-model=\"selectedOption\" aria-labelledby=\"select2-chosen\" ng-change=\"getDropdownText()\" />\n" +
- " <abbr class=\"select2-search-choice-close\"></abbr>\n" +
- " <span tabindex=\"0\" ng-class=\"{'select2-arrow': mode !== 1, 'calendar-icon': mode === 1}\" att-accessibility-click=\"13,32\" ng-click=\"showDropdown()\"><b></b></span>\n" +
- " </a>\n" +
- " </div>\n" +
- " <div class=\"select2-drop select2-drop-active select2-display-none\" ng-style=\"{display: (showDropdownList && 'block') || 'none', 'border-radius': showCalendar && '0 0 0 6px'}\" style=\"width: 100%\">\n" +
- " <div id=\"dateFilterList\" att-scrollbar ><ul class=\"select2-results options\" ng-transclude></ul></div>\n" +
- " <ul class=\"select2-results sttings\" style=\"margin-top:0px\">\n" +
- " <li tabindex=\"0\" class=\"select2-result select2-highlighted greyBorder\" ng-class=\"{'select2-result-current': checkCurrentSelection('Custom Single Date')}\" att-accessibility-click=\"13,32\" ng-click=\"selectAdvancedOption('Custom Single Date')\">\n" +
- " <div class=\"select2-result-label\" ng-if=\"mode !== 1\">Custom Single Date...</div>\n" +
- " <div class=\"select2-result-label\" ng-if=\"mode === 1\">Custom single month...</div>\n" +
- " </li>\n" +
- " <li tabindex=\"0\" class=\"select2-result select2-highlighted\" ng-class=\"{'select2-result-current': checkCurrentSelection('Custom Range')}\" att-accessibility-click=\"13,32\" ng-click=\"selectAdvancedOption('Custom Range')\">\n" +
- " <div class=\"select2-result-label\" ng-if=\"mode !== 1\">Custom Range...</div>\n" +
- " <div class=\"select2-result-label\" ng-if=\"mode === 1\">Custom month range...</div>\n" +
- " </li>\n" +
- " <li class=\"select2-result select2-highlighted btnContainer\" ng-style=\"{display: (showCalendar && 'block') || 'none'}\">\n" +
- " <button tabindex=\"0\" ng-blur=\"resetFocus($event)\" att-element-focus=\"focusApplyButton\" att-button=\"\" btn-type=\"{{applyButtonType}}\" size=\"small\" att-accessibility-click=\"13,32\" ng-click=\"apply()\">Apply</button>\n" +
- " <button tabindex=\"0\" att-button=\"\" btn-type=\"secondary\" size=\"small\" att-accessibility-click=\"13,32\" ng-click=\"cancel()\">Cancel</button>\n" +
- " <div>\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" ng-if=\"mode !== 1\" style=\"text-decoration:underline;\" att-accessibility-click=\"13,32\" ng-click=\"clear()\">Clear Dates</a>\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" ng-if=\"mode === 1\" style=\"text-decoration:underline;\" att-accessibility-click=\"13,32\" ng-click=\"clear()\">Clear Months</a>\n" +
- " </div>\n" +
- " </li>\n" +
- " </ul>\n" +
- " </div>\n" +
- " <div class=\"datepicker-wrapper show-right\" ng-style=\"{display: (showCalendar && 'block') || 'none'}\">\n" +
- " <span datepicker ng-blur=\"resetFocus($event)\" att-element-focus=\"focusSingleDateCalendar\" ng-show=\"checkCurrentSelection('Custom Single Date')\"></span>\n" +
- " <span datepicker ng-blur=\"resetFocus($event)\" att-element-focus=\"focusRangeCalendar\" ng-show=\"checkCurrentSelection('Custom Range')\"></span>\n" +
- " </div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html",
- "<li ng-click=\"!disabled && selectOption(fromDate,toDate,caption)\" att-accessibility-click=\"13,32\" ng-class=\"{'select2-result-current': checkCurrentSelection(caption)}\" class=\"select2-result select2-highlighted ng-scope\" tabindex=\"{{!disabled?'0':'-1'}}\">\n" +
- " <div class=\"select2-result-label\" ng-class=\"{'disabled':disabled}\" ng-transclude></div>\n" +
- "</li>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/datepicker/datepicker.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/datepicker/datepicker.html",
- "<div id=\"datepicker\" class=\"datepicker\" ng-class=\"{'monthpicker': mode === 1}\" aria-hidden=\"false\" role=\"dialog\" tabindex=\"-1\" aria-labelledby=\"datepicker\">\n" +
- " <div class=\"datepicker-days\" style=\"display: block;\">\n" +
- " <table class=\"table-condensed\">\n" +
- " <thead>\n" +
- " <tr>\n" +
- " <th id=\"month\" tabindex=\"0\" class=\"datepicker-switch\" colspan=\"{{(mode !== 1) && (currentRows[0].length - 2) || (currentRows[0].length)}}\" style=\"text-align:left\">{{currentTitle}}</th>\n" +
- " <th ng-if=\"mode !== 1\" id=\"prev\" aria-hidden=\"{{!disablePrev && 'false'|| 'true'}}\" tabindex=\"{{!disablePrev && '0'|| '-1'}}\" att-accessibility-click=\"13,32\" ng-click=\"!disablePrev && move(-1)\">\n" +
- " <div class=\"icons-list\" data-size=\"medium\"><i class=\"icon-arrow-left-circle\" ng-class=\"{'disabled': disablePrev}\" alt=\"Left Arrow\"></i>\n" +
- " </div><span class=\"hidden-spoken\">Previous Month</span>\n" +
- " </th>\n" +
- " <th ng-if=\"mode !== 1\" id=\"next\" aria-hidden=\"{{!disableNext && 'false'|| 'true'}}\" tabindex=\"{{!disableNext && '0'|| '-1'}}\" att-accessibility-click=\"13,32\" ng-click=\"!disableNext && move(1)\">\n" +
- " <div class=\"icons-list\" data-size=\"medium\"><i class=\"icon-arrow-right-circle\" ng-class=\"{'disabled': disableNext}\" alt=\"Right Arrow\"></i>\n" +
- " </div><span class=\"hidden-spoken\">Next Month</span>\n" +
- " </th>\n" +
- " </tr>\n" +
- " <tr ng-if=\"labels.length > 0\">\n" +
- " <th tabindex=\"-1\" class=\"dow weekday\" ng-repeat=\"label in labels\"><span>{{label.pre}}</span></th>\n" +
- " </tr>\n" +
- " </thead>\n" +
- " <tbody>\n" +
- " <tr>\n" +
- " <td id=\"datepickerBody\" att-scrollbar colspan=\"{{currentRows[0].length}}\" style=\"padding: 0px;\" headers=\"\">\n" +
- " <table ng-class=\"{'table-condensed': mode === 0, 'monthtable-condensed': mode === 1}\" style=\"padding: 0px;\">\n" +
- " <thead class=\"hidden-spoken\">\n" +
- " <tr ng-show=\"labels.length > 0\">\n" +
- " <th id=\"{{label.post}}\" tabindex=\"-1\" class=\"dow weekday\" ng-repeat=\"label in labels\"></th>\n" +
- " </tr>\n" +
- " </thead>\n" +
- " <tbody>\n" +
- " <tr ng-repeat=\"row in currentRows\">\n" +
- " <td headers=\"{{(mode === 0) && dt.header || 'month'}}\" att-element-focus=\"dt.focused\" aria-hidden=\"{{(!dt.oldMonth && !dt.nextMonth && !dt.disabled && 'false') || 'true'}}\" tabindex=\"{{(!dt.oldMonth && !dt.nextMonth && !dt.disabled && '0') || '-1'}}\" ng-repeat=\"dt in row\" class=\"days\" ng-class=\"{'active': dt.selected || dt.from || dt.to, 'from': dt.from, 'to': dt.to, 'range': dt.dateRange, 'prev-month ': dt.oldMonth, 'next-month': dt.nextMonth, 'disabled': dt.disabled, 'today': dt.today, 'weekend': dt.weekend}\" ng-click=\"!dt.selected && !dt.from && !dt.to && !dt.disabled && !dt.oldMonth && !dt.nextMonth && select(dt.date)\" att-accessibility-click=\"13,32\" aria-label=\"{{dt.date | date : 'EEEE, MMMM d'}}\"><span class=\"day\">{{dt.label}}</span></td>\n" +
- " </tr>\n" +
- " <tr ng-if=\"mode === 1\" class=\"divider\"><td colspan=\"{{nextRows[0].length}}\"><hr></td></tr>\n" +
- " <tr>\n" +
- " <th id=\"month\" tabindex=\"0\" class=\"datepicker-switch internal\" colspan=\"{{nextRows[0].length}}\" style=\"text-align:left\">{{nextTitle}}</th>\n" +
- " </tr>\n" +
- " <tr ng-repeat=\"row in nextRows\">\n" +
- " <td headers=\"{{(mode === 0) && dt.header || 'month'}}\" att-element-focus=\"dt.focused\" aria-hidden=\"{{(!dt.oldMonth && !dt.nextMonth && !dt.disabled && 'false') || 'true'}}\" tabindex=\"{{(!dt.oldMonth && !dt.nextMonth && !dt.disabled && '0') || '-1'}}\" ng-repeat=\"dt in row\" class=\"days\" ng-class=\"{'active': dt.selected || dt.from || dt.to, 'from': dt.from, 'to': dt.to, 'range': dt.dateRange, 'prev-month ': dt.oldMonth, 'next-month': dt.nextMonth, 'disabled': dt.disabled, 'today': dt.today, 'weekend': dt.weekend}\" ng-click=\"!dt.selected && !dt.from && !dt.to && !dt.disabled && !dt.oldMonth && !dt.nextMonth && select(dt.date)\" att-accessibility-click=\"13,32\" aria-label=\"{{dt.date | date : 'EEEE, MMMM d'}}\"><span class=\"day\">{{dt.label}}</span></td>\n" +
- " </tr>\n" +
- " </tbody>\n" +
- " </table>\n" +
- " </td>\n" +
- " </tr>\n" +
- " </tbody>\n" +
- " </table>\n" +
- " </div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html",
- "<div class=\"calendar\">\n" +
- " <div class=\"box\" ng-class=\"{'active': isOpen}\">\n" +
- " <span ng-transclude></span>\n" +
- " <i class=\"calendar-icon\" tabindex=\"0\" att-accessibility-click=\"13,32\" ng-click=\"toggle()\" alt=\"Calendar Icon\"></i>\n" +
- " </div>\n" +
- " <div class=\"datepicker-wrapper datepicker-wrapper-display-none\" ng-style=\"{display: (isOpen && 'block') || 'none'}\" aria-hidden=\"false\" role=\"dialog\" tabindex=\"-1\">\n" +
- " <span datepicker></span>\n" +
- " </div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html",
- "<div class=\"divider-container\" ng-class=\"{'divider-container-light': lightContainer}\">\n" +
- " <hr ng-class=\"{'divider-light': lightContainer}\">\n" +
- "</div>\n" +
- "\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html",
- "<label class=\"fileContainer\"><span ng-transclude></span><input type=\"file\" att-file-change></label>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html",
- "<div class=\"form-field\" ng-class=\"{'error': errorMessage, 'warning': warningMessage}\">\n" +
- " <label class=\"form-field__label\" ng-class=\"{'form-field__label--show': showLabel, 'form-field__label--hide': hideLabel}\"></label>\n" +
- " <div class=\"form-field-input-container\" ng-transclude></div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html",
- "<div class=\"form-field\" ng-class=\"{'error':hideErrorMsg}\">\n" +
- " <div class=\"form-field-input-container\" ng-transclude></div>\n" +
- " <div class=\"form-field__message error\" type=\"error\" ng-show=\"hideErrorMsg\" >\n" +
- " <i class=\"icon-info-alert\"></i>{{errorMessage}}\n" +
- " </div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/formField/creditCardImage.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/formField/creditCardImage.html",
- "<span class=\"css-sprite pull-right\">\n" +
- "<span class=\"hidden-spoken\">We accept</span>\n" +
- "<ul class=\"{{newValCCI}}\">\n" +
- " <li class=\"css-sprite-mc\"><span class=\"hidden-spoken\">MasterCard</span></li>\n" +
- " <li class=\"css-sprite-visa\"><span class=\"hidden-spoken\">Visa</span></li>\n" +
- " <li class=\"css-sprite-amex\"><span class=\"hidden-spoken\">American Express</span></li>\n" +
- " <li class=\"css-sprite-discover\"><span class=\"hidden-spoken\">Discover</span></li> \n" +
- "</ul>\n" +
- "</span>\n" +
- "<label for=\"ccForm.card\" class=\"pull-left\">Card number</label>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html",
- "<div>\n" +
- "<button type=\"button\" class=\"btn btn-alt btn-tooltip\" style=\"padding-top:16px\" title=\"Help\"><i class=\"hidden-spoken\">Help</i></button>\n" +
- "<div class=\"helpertext\" role=\"tooltip\">\n" +
- "<div class=\"popover-title\"></div>\n" +
- "<div class=\"popover-content\">\n" +
- " <p class=\"text-legal cvc-cc\">\n" +
- " <img ng-src=\"images/{{newValI}}.png\" alt=\"{{newValIAlt}}\">\n" +
- " </p>\n" +
- "</div>\n" +
- "</div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html",
- "<div class=\"hourpicker\">\n" +
- " <div class=\"dropdown-width\">\n" +
- " <div ng-model=\"showlist\" class=\"select2-container topDropDownWidth\" ng-class=\"{'select2-dropdown-open select2-container-active': showlist}\" >\n" +
- " <a class=\"select2-choice\" href=\"javascript:void(0)\" id=\"customSelect\" ng-keydown=\"selectOption(selectPrevNextValue($event,options,selectedOption))\" att-accessibility-click=\"13\" ng-click=\"showDropdown()\">\n" +
- " <span class=\"select2-chosen\">{{selectedOption}}</span>\n" +
- " <span class=\"select2-arrow\"><b></b></span>\n" +
- " </a>\n" +
- " </div> \n" +
- " <div class=\"select2-display-none select2-with-searchbox select2-drop-active show-search resultTopWidth\" ng-show=\"showlist\"> \n" +
- " <ul class=\"select2-results resultTopMargin\" > \n" +
- " <li ng-model=\"ListType\" ng-repeat=\"option in options\" att-accessibility-click=\"13\" ng-click=\"selectOption(option,$index)\" class=\"select2-results-dept-0 select2-result select2-result-selectable\"><div class=\"select2-result-label\"><span >{{option}}</span></div></li> \n" +
- " </ul>\n" +
- " </div>\n" +
- " </div>\n" +
- " <div ng-show=\"showDaysSelector\" class=\"customdays-width\">\n" +
- " <div att-divider-lines class=\"divider-margin-f\"></div> \n" +
- " <div class=\"col-md-3 fromto-margin\">\n" +
- " <div>From</div> <br>\n" +
- " <div>To</div>\n" +
- " </div>\n" +
- " <div ng-repeat=\"day in days\">\n" +
- " <div class=\"col-md-3 col-md-days\">\n" +
- " <div class=\"col-md-1 daysselect-margin\">\n" +
- " <input type=\"checkbox\" ng-model=\"daysList[day]\" title=\"Day selection {{$index}}\" att-checkbox ng-change=\"addSelectedValue(day)\"> \n" +
- " </div>\n" +
- " <span>{{day}}</span><br>\n" +
- " \n" +
- " <div class=\"dropDownMarginBottom\">\n" +
- " <div class=\"select2-container topDropDownWidth\" ng-class=\"{'select2-dropdown-open select2-container-active': FrtimeListDay[day]}\" >\n" +
- " <a class=\"select2-choice selectDropDown\" href=\"javascript:void(0)\" tabindex=\"{{daysList[day] ? '0' : '-1'}}\" att-accessibility-click=\"13\" ng-click=\"daysList[day] && showfromDayDropdown(day)\" ng-class=\"{'select2-chosen-disabled':!daysList[day]}\" ng-keydown=\"daysList[day] && selectFromDayOption(day , selectPrevNextValue($event,fromtime,selectedFromOption[day]));daysList[day] && addSelectedValue(day);\">\n" +
- " <span class=\"select2-chosen dropDownMarginRight\" >{{selectedFromOption[day]}} <i ng-if=\"daysList[day]\" ng-class=\"FrtimeListDay[day] ? 'icon-dropdown-up' : 'icon-dropdown-down'\"></i></span>\n" +
- " </a>\n" +
- " </div> \n" +
- " \n" +
- " <div class=\"select2-display-none select2-with-searchbox select2-drop-active show-search resultFromDropDown\" ng-show=\"FrtimeListDay[day]\"> \n" +
- " <ul class=\"select2-results resultTopMargin\" > \n" +
- " <li ng-click=\"selectFromDayOption(day,time.value);addSelectedValue(day);\" ng-repeat=\"time in fromtime\" class=\"select2-results-dept-0 select2-result select2-result-selectable\"><div class=\"select2-result-label\" ng-class=\"{'selectedItemInDropDown': (time.value==selectedFromOption[day])}\"><span >{{time.value}}</span></div></li> \n" +
- " </ul>\n" +
- " </div>\n" +
- " </div>\n" +
- " \n" +
- " <div class=\"dropDownMarginBottom\">\n" +
- " <div class=\"select2-container topDropDownWidth\" ng-class=\"{'select2-dropdown-open select2-container-active': TotimeListDay[day]}\" >\n" +
- " <a class=\"select2-choice selectDropDown\" href=\"javascript:void(0)\" tabindex=\"{{daysList[day] ? '0' : '-1'}}\" att-accessibility-click=\"13\" ng-click=\"daysList[day] && showtoDayDropdown(day)\" ng-class=\"{'select2-chosen-disabled':!daysList[day], 'selectDropDown-error':daysList[day] && showToTimeErrorDay[day]}\" ng-keydown=\"daysList[day] && selectToDayOption(day , selectPrevNextValue($event,totime,selectedToOption[day]));daysList[day] && addSelectedValue(day);\">\n" +
- " <span class=\"select2-chosen dropDownMarginRight\">{{selectedToOption[day]}} <i ng-if=\"daysList[day]\" ng-class=\"TotimeListDay[day] ? 'icon-dropdown-up' : 'icon-dropdown-down'\" ></i></span>\n" +
- " </a>\n" +
- " </div>\n" +
- " \n" +
- " <div class=\"select2-display-none select2-with-searchbox select2-drop-active show-search resultToDropDown\" ng-show=\"TotimeListDay[day]\"> \n" +
- " <ul class=\"select2-results resultTopMargin\" > \n" +
- " <li ng-click=\"selectToDayOption(day,time.value);addSelectedValue(day);\" ng-repeat=\"time in totime\" class=\"select2-results-dept-0 select2-result select2-result-selectable\"><div class=\"select2-result-label\" ng-class=\"{'selectedItemInDropDown': (time.value==selectedToOption[day])}\"><span >{{time.value}}</span></div></li> \n" +
- " </ul>\n" +
- " </div>\n" +
- " </div>\n" +
- " </div> \n" +
- " </div> \n" +
- " <div att-divider-lines class=\"divider-margin-s\"></div>\n" +
- " </div>\n" +
- " <div ng-transclude></div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/links/readMore.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/links/readMore.html",
- "<div>\n" +
- " <div ng-bind-html=\"textToDisplay\" ng-class=\"{'att--readMore': readFlag, 'att--readLess': !readFlag}\" ng-style=\"readLinkStyle\"></div>\n" +
- " <span class=\"att--readmore__link\" ng-show=\"readMoreLink\">… <a href=\"javascript:void(0);\" ng-click=\"readMore()\" att-accessbility-click=\"32,13\">Read More</a>\n" +
- " </span>\n" +
- "</div>\n" +
- "<span class=\"att--readless__link\" ng-show=\"readLessLink\">\n" +
- " <a href=\"javascript:void(0);\" ng-click=\"readLess()\" att-accessbility-click=\"32,13\">Read Less</a>\n" +
- "</span>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/loading/loading.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/loading/loading.html",
- "<div data-progress=\"{{progressStatus}}\" class=\"{{colorClass}}\" ng-class=\"{'att-loading-count':icon == 'count','loading--small':icon == 'small','loading': icon != 'count'}\" alt=\"Loading\">\n" +
- " <div class=\"att-loading-circle\" ng-if=\"icon == 'count'\">\n" +
- " <div class=\"att-loading-circle__mask att-loading-circle__full\">\n" +
- " <div class=\"att-loading-circle__fill\"></div>\n" +
- " </div>\n" +
- " <div class=\"att-loading-circle__mask att-loading-circle__half\">\n" +
- " <div class=\"att-loading-circle__fill\"></div>\n" +
- " <div class=\"att-loading-circle__fill att-loading-circle__fix\"></div>\n" +
- " </div>\n" +
- " </div>\n" +
- " <div ng-class=\"{'att-loading-inset':icon == 'count','loading__inside':icon != 'count'}\"><div class=\"att-loading-inset__percentage\" ng-if=\"icon == 'count'\" alt=\"Loading with Count\"></div></div>\n" +
- "</div>\n" +
- "\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/modal/backdrop.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/modal/backdrop.html",
- "<div class=\"overlayed\" ng-class=\"{show: animate}\" \n" +
- " ng-style=\"{'z-index': 2000 + index*10,'overflow':'scroll'}\"> \n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/modal/tabbedItem.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/modal/tabbedItem.html",
- "<div>\n" +
- " <ul class=\"tabs_overlay\">\n" +
- " <li ng-repeat=\"item in items\" class=\"tabs_overlay__item two__item\" ng-class=\"{'active':isActiveTab($index)}\" ng-click=\"clickTab($index)\">\n" +
- " <i class=\"{{item.iconClass}}\"></i>\n" +
- " {{item.title}} ({{item.number}})\n" +
- " <a class=\"viewLink\" att-link>Show</a>\n" +
- " </li>\n" +
- " </ul>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html",
- "<div>\n" +
- " <ul class=\"tabs_overlay\">\n" +
- " <li ng-repeat=\"item in items\" class=\"tabs_overlay__item two__item\" ng-class=\"{'active':isActiveTab($index)}\" ng-click=\"clickTab($index)\">\n" +
- " <i class=\"{{item.iconClass}}\"></i>\n" +
- " {{item.title}} ({{item.number}})\n" +
- " <a class=\"viewLink\" att-link>Show</a>\n" +
- " </li>\n" +
- " </ul>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/modal/window.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/modal/window.html",
- "<div tabindex=\"-1\" role=\"dialog\" att-element-focus=\"focusModalFlag\" class=\"modals {{ windowClass }}\" ng-class=\"{show: animate}\" \n" +
- " ng-style=\"{'z-index': 2010 + index*10}\" ng-click=\"close($event)\" ng-transclude> \n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/pagination/pagination.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/pagination/pagination.html",
- "<div class=\"pager\">\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" class=\"pager__item--prev\" att-accessibility-click=\"13,32\" ng-click=\"prev($event)\" ng-if=\"currentPage > 1\"><i class=\"icon-arrow-left\"></i> Previous</a>\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" class=\"pager__item pager__item--link\" ng-if=\"totalPages > 7 && currentPage > 3\" att-accessibility-click=\"13,32\" ng-click=\"selectPage(1, $event)\">1</a>\n" +
- " <span class=\"pager__item\" ng-if=\"totalPages > 7 && currentPage > 3\">...</span>\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" class=\"pager__item pager__item--link\" att-element-focus=\"isFocused(page)\" ng-repeat=\"page in pages\" ng-class=\"{'pager__item--active': checkSelectedPage(page)}\" att-accessibility-click=\"13,32\" ng-click=\"selectPage(page, $event)\">{{page}}</a>\n" +
- " <span class=\"pager__item\" ng-if=\"totalPages > 7 && currentPage < totalPages - 2 && showInput !== true\">...</span>\n" +
- " <span ng-show=\"totalPages > 7 && showInput === true\"><input class=\"pager__item--input\" type=\"text\" placeholder=\"...\" maxlength=\"2\" ng-model=\"currentPage\" aria-label=\"Current page count\"/></span>\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" class=\"pager__item pager__item--link\" ng-if=\"totalPages > 7 && currentPage < totalPages - 2\" att-accessibility-click=\"13,32\" ng-click=\"selectPage(totalPages, $event)\">{{totalPages}}</a>\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" class=\"pager__item--next\" att-accessibility-click=\"13,32\" ng-click=\"next($event)\" ng-if=\"currentPage < totalPages\">Next <i class=\"icon-arrow-right\"></i></a>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/paneSelector/innerPane.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/paneSelector/innerPane.html",
- "<div class='inner-pane' ng-transclude></div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html",
- "<div class='pane-group' ng-transclude></div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/paneSelector/sidePane.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/paneSelector/sidePane.html",
- "<div class='side-pane' ng-transclude></div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html",
- "<div class=\"att-tooltip \" \n" +
- " ng-class=\"{ 'att-tooltip--on': isOpen, \n" +
- " 'att-tooltip--dark att-tooltip--dark--hover':stylett=='dark', \n" +
- " 'att-tooltip--light att-tooltip--light--hover':stylett=='light',\n" +
- " 'att-tooltip--left':placement=='left', \n" +
- " 'att-tooltip--above':placement=='above', \n" +
- " 'att-tooltip--right':placement=='right', \n" +
- " 'att-tooltip--below':placement=='below'}\" \n" +
- " ng-bind-html=\"content | unsafe\" ></div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/popOvers/popOvers.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/popOvers/popOvers.html",
- "<div class=\"att-popover popover-demo\" ng-style=\"{backgroundColor:popOverStyle}\"\n" +
- " ng-class=\"{'att-tooltip--dark':popOverStyle==='grey',\n" +
- " 'att-pop-over--left':popOverPlacement==='left', \n" +
- " 'att-pop-over--bell':popOverPlacement==='bell', \n" +
- " 'att-pop-over--above':popOverPlacement==='above', \n" +
- " 'att-pop-over--right':popOverPlacement==='right'}\" \n" +
- " style='position: absolute; max-width: 490px;'>\n" +
- " <div class=\"pop-over-caret\"\n" +
- " ng-class=\"{'pop-over-caret-border--left':popOverPlacement==='left', \n" +
- " 'pop-over-caret-border--above':popOverPlacement==='above', \n" +
- " 'pop-over-caret-border--right':popOverPlacement==='right', \n" +
- " 'pop-over-caret-border--below':popOverPlacement==='below'}\">\n" +
- " </div>\n" +
- " <div class=\"pop-over-caret\" ng-style=\"popOverPlacement=='below' && {borderBottom:'6px solid ' +popOverStyle}||popOverPlacement=='left' && {borderLeft:'6px solid ' +popOverStyle}||popOverPlacement=='right' && {borderRight:'6px solid ' +popOverStyle}||popOverPlacement=='above' && {borderTop:'6px solid ' +popOverStyle}\"\n" +
- " ng-class=\"{'pop-over-caret--left':popOverPlacement==='left', \n" +
- " 'pop-over-caret--above':popOverPlacement==='above', \n" +
- " 'pop-over-caret--right':popOverPlacement==='right', \n" +
- " 'pop-over-caret--below':popOverPlacement==='below'}\"></div>\n" +
- " \n" +
- " <div class=\"att-popover-content\">\n" +
- " <a ng-if=\"closeable\" href=\"javascript:void(0)\" class=\"icon-close att-popover__close\" ng-click=\"closeMe();$event.preventDefault()\"></a>\n" +
- " <div class=\"popover-packages__container\" ng-include=\"content\"></div>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/profileCard/addUser.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/profileCard/addUser.html",
- "<div class=\"col-md-9 profile-card add-user\">\n" +
- " <div class=\"atcenter\">\n" +
- " <div><i class=\"icon-add\"></i></div>\n" +
- " <span>add User</span>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/profileCard/profileCard.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/profileCard/profileCard.html",
- "<div class=\"col-md-9 profile-card\">\n" +
- " <div class=\"top-block\">\n" +
- " <div class=\"profile-image\">\n" +
- " <img ng-if=\"image\" profile-name=\"{{profile.name}}\" ng-src=\"{{profile.img}}\" alt=\"{{profile.name}}\">\n" +
- " <span ng-hide=\"image\" class=\"default-img\">{{initials}}</span>\n" +
- " <p class=\"name\" tooltip-condition=\"{{profile.name}}\" height=\"true\"></p>\n" +
- " <p class=\"status\">\n" +
- " <span class=\"status-icon\" ng-class=\"{'icon-green':colorIcon==='green','icon-red':colorIcon==='red','icon-blue':colorIcon==='blue','icon-yellow':colorIcon==='yellow'}\"> \n" +
- " </span>\n" +
- " <span>{{profile.state}}<span ng-if=\"badge\" class=\"status-badge\">Admin</span></span>\n" +
- " </p>\n" +
- " </div>\n" +
- " </div>\n" +
- " <div class=\"bottom-block\">\n" +
- " <div class=\"profile-details\">\n" +
- " <label>Username</label>\n" +
- " <p att-text-overflow=\"92%\" tooltip-condition=\"{{profile.userName}}\">{{profile.userName}}</p>\n" +
- " <label>Email</label>\n" +
- " <p att-text-overflow=\"92%\" tooltip-condition=\"{{profile.email}}\">{{profile.email}}</p>\n" +
- " <label>Role</label>\n" +
- " <p att-text-overflow=\"92%\" tooltip-condition=\"{{profile.role}}\">{{profile.role}}</p>\n" +
- " <label>Last Login</label>\n" +
- " <p att-text-overflow=\"92%\" tooltip-condition=\"{{profile.lastLogin}}\">{{profile.lastLogin}}</p>\n" +
- " </div>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/progressBars/progressBars.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/progressBars/progressBars.html",
- "<div class=\"att-progress\">\n" +
- " <div class=\"att-progress-value\">&nbsp;</div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html",
- "<div class=\"scroll-bar\" style=\"position: absolute\">\n" +
- " <div class=\"scroll-thumb\" style=\"position: absolute; overflow: hidden\"></div>\n" +
- "</div>\n" +
- "<div class=\"prev icons-list\" data-size=\"medium\" ng-show=\"navigation && prevAvailable\" ng-style=\"{height: scrollbarAxis === 'x' && position.height + 'px'}\">\n" +
- " <a href=\"javascript:void(0);\" ng-click=\"customScroll(false)\" aria-label=\"Scroll\" aria-hidden=\"true\">\n" +
- " <i ng-class=\"{'icon-chevron-up': (scrollbarAxis === 'y'), 'icon-chevron-left': (scrollbarAxis === 'x')}\"></i>\n" +
- " </a>\n" +
- "</div>\n" +
- "<div class=\"scroll-viewport\" ng-style=\"{height: (scrollbarAxis === 'x' && position.height + 'px') || viewportHeight, width: viewportWidth}\" style=\"position: relative; overflow: hidden\">\n" +
- " <div class=\"scroll-overview\" style=\"position: absolute; display: table; width: 100%\" att-position=\"position\" ng-transclude></div>\n" +
- "</div>\n" +
- "<div class='next icons-list' data-size=\"medium\" ng-show=\"navigation && nextAvailable\" ng-style=\"{height: scrollbarAxis === 'x' && position.height + 'px'}\">\n" +
- " <a href=\"javascript:void(0);\" ng-click=\"customScroll(true)\" aria-label=\"Scroll\" aria-hidden=\"true\">\n" +
- " <i ng-class=\"{'icon-chevron-down': (scrollbarAxis === 'y'), 'icon-chevron-right': (scrollbarAxis === 'x')}\"></i>\n" +
- " </a>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/search/search.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/search/search.html",
- "<div class=\"select2-container show-search\" ng-class=\"{'select2-dropdown-open': (showlist && !isDisabled),'select2-container-disabled':isDisabled, 'select2-container-active': isact}\" ng-init=\"isact=false;\" style=\"width: 100%;\">\n" +
- " <a href=\"javascript:void(0)\" class=\"select2-choice needsclick\" tabindex=\"0\" ng-click=\"showDropdown()\" ng-class=\"{'select2-chosen-disabled':isDisabled}\" role=\"combobox\" aria-expanded=\"{{showlist}}\" aria-owns=\"inList\" aria-label=\"{{selectedOption}} selected\" ng-focus=\"isact=true;\" ng-blur=\"isact=false;\">\n" +
- " <span class=\"select2-chosen needsclick\" aria-hidden = \"true\">{{selectedOption}}</span>\n" +
- " <abbr class=\"select2-search-choice-close needsclick\"></abbr>\n" +
- " <span class=\"select2-arrow needsclick\" role=\"presentation\">\n" +
- " <b role=\"presentation\" class=\"needsclick\"></b>\n" +
- " </span>\n" +
- " </a> \n" +
- " <input class=\"select2-focusser select2-offscreen\" \n" +
- " tabindex=\"-1\" \n" +
- " type=\"text\" \n" +
- " aria-hidden=\"true\" \n" +
- " title=\"hidden\" \n" +
- " aria-haspopup=\"true\" \n" +
- " role=\"button\"> \n" +
- "</div>\n" +
- "\n" +
- "<div class=\"select2-drop select2-with-searchbox select2-drop-auto-width select2-drop-active\" ng-class=\"{'select2-display-none':(!showlist || isDisabled)}\" style=\"width:100%;z-index: 10\">\n" +
- " <div class=\"select2-search\">\n" +
- " <label ng-if=\"!noFilter\" class=\"select2-offscreen\" aria-label=\"Inline Search Field\" aria-hidden=\"true\">Inline Search Field</label>\n" +
- " <input ng-if=\"!noFilter\" ng-model=\"title\" aria-label=\"title\" typeahead=\"c.title for c in cName | filter:$viewValue:startsWith\" type=\"text\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" class=\"select2-input\" aria-autocomplete=\"list\" placeholder=\"\">\n" +
- " </div>\n" +
- " <ul id=\"inList\" class=\"select2-results\" role=\"listbox\">\n" +
- " <li ng-show=\"filteredName.length === 0\" class=\"select2-no-results\" tabindex=\"-1\">No matches found</li>\n" +
- " <li class=\"select2-results-dept-0 select2-result select2-result-selectable\" role=\"presentation\" ng-model=\"ListType\" ng-show=\"selectMsg && filteredName.length > 0\" ng-click=\"selectOption(selectMsg, '-1')\" ng-class=\"{'select2-result-current': selectedOption === selectMsg, 'hovstyle': selectedIndex === -1}\" ng-mouseover=\"hoverIn(-1)\" aria-label=\"{{selectMsg}}\" tabindex=\"-1\">\n" +
- " <div ng-if=\"startsWithFilter\" class=\"select2-result-label\" ng-bind-html=\"selectMsg | unsafe\" role=\"option\">\n" +
- " <span class=\"select2-match\"></span>\n" +
- " </div>\n" +
- " <div ng-if=\"!startsWithFilter\" class=\"select2-result-label\" ng-bind-html=\"selectMsg | highlight:title:className | unsafe\" role=\"option\">\n" +
- " <span class=\"select2-match\"></span>\n" +
- " </div>\n" +
- " </li>\n" +
- "\n" +
- " <li role=\"menuitem\" ng-if=\"startsWithFilter\" class=\"select2-results-dept-0 select2-result select2-result-selectable\" role=\"presentation\" ng-model=\"ListType\" ng-repeat=\"(fIndex, item) in filteredName = (cName | startsWith:title:item)\" ng-class=\"{'select2-result-current': selectedOption === item.title,'hovstyle': selectedIndex === item.index,'disable': item.disabled}\" ng-click=\"item.disabled || selectOption(item.title,item.index)\" ng-mouseover=\"hoverIn(item.index)\" aria-label=\"{{item.title}}\" tabindex=\"-1\">\n" +
- " <div class=\"select2-result-label\" ng-bind-html=\"item.title | unsafe\" role=\"option\">\n" +
- " <span class=\"select2-match\"></span>\n" +
- " </div>\n" +
- " </li>\n" +
- "\n" +
- " <li role=\"menuitem\" ng-if=\"!startsWithFilter\" class=\"select2-results-dept-0 select2-result select2-result-selectable\" role=\"presentation\" ng-model=\"ListType\" ng-repeat=\"(fIndex, item) in filteredName = (cName | filter:title)\" ng-class=\"{'select2-result-current': selectedOption === item.title,'hovstyle': selectedIndex === item.index,'disable': item.disabled}\" ng-click=\"item.disabled || selectOption(item.title,item.index)\" ng-mouseover=\"hoverIn(item.index)\" aria-label=\"{{item.title}}\" tabindex=\"-1\">\n" +
- " <div class=\"select2-result-label\" ng-bind-html=\"item.title | highlight:title:className | unsafe\" role=\"option\">\n" +
- " <span class=\"select2-match\"></span>\n" +
- " </div>\n" +
- " </li>\n" +
- " </ul>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/select/select.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/select/select.html",
- "<div class=\"select2-container show-search\" ng-class=\"{'select2-dropdown-open': (showlist && !isDisabled),'select2-container-disabled': isDisabled, 'select2-container-active': isact}\" ng-init=\"isact=false;\">\n" +
- " <span class=\"select2-choice needsclick\" tabindex=\"{{isDisabled ? -1 : 0}}\" ng-click=\"showDropdown()\" ng-class=\"{'select2-chosen-disabled':isDisabled}\" role=\"combobox\" aria-expanded=\"{{showlist}}\" aria-owns=\"inList\" aria-label=\"{{selectedOption}} selected\" ng-focus=\"isact=true;\" ng-blur=\"isact=false;\">\n" +
- " <span class=\"select2-chosen needsclick\" aria-hidden=\"true\">{{selectedOption}}</span>\n" +
- " <abbr class=\"select2-search-choice-close needsclick\"></abbr>\n" +
- " <span class=\"select2-arrow needsclick\" role=\"presentation\">\n" +
- " <b role=\"presentation\" class=\"needsclick\"></b>\n" +
- " </span>\n" +
- " </span> \n" +
- " <input class=\"select2-focusser select2-offscreen\" \n" +
- " tabindex=\"-1\" \n" +
- " type=\"text\" \n" +
- " aria-hidden=\"true\" \n" +
- " title=\"hidden\" \n" +
- " aria-haspopup=\"true\" \n" +
- " role=\"button\"> \n" +
- "</div>\n" +
- "\n" +
- "<div class=\"select2-drop select2-with-searchbox select2-drop-auto-width select2-drop-active\" ng-class=\"{'select2-display-none':(!showlist || isDisabled)}\" style=\"width:100%;z-index: 10\">\n" +
- " <div class=\"select2-search\">\n" +
- " <label ng-if=\"!noFilter\" class=\"select2-offscreen\" aria-label=\"Inline Search Field\" aria-hidden=\"true\">Inline Search Field</label>\n" +
- " <input ng-if=\"!noFilter\" ng-model=\"title\" aria-label=\"title\" typeahead=\"c.title for c in cName | filter:$viewValue:startsWith\" type=\"text\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" class=\"select2-input\" aria-autocomplete=\"list\" placeholder=\"\">\n" +
- " </div>\n" +
- " <ul id=\"inList\" class=\"select2-results\" role=\"listbox\">\n" +
- " <li ng-if=\"!noFilter\" ng-show=\"filteredName.length === 0\" class=\"select2-no-results\" tabindex=\"-1\">No matches found</li>\n" +
- " <li ng-if=\"!noFilter\" class=\"select2-results-dept-0 select2-result select2-result-selectable\" role=\"presentation\" ng-model=\"ListType\" ng-show=\"selectMsg && filteredName.length > 0\" ng-click=\"selectOption(selectMsg, '-1')\" ng-class=\"{'select2-result-current': selectedOption === selectMsg, 'hovstyle': selectedIndex === -1}\" ng-mouseover=\"hoverIn(-1)\" aria-label=\"{{selectMsg}}\" tabindex=\"-1\">\n" +
- " <div ng-if=\"startsWithFilter\" class=\"select2-result-label\" ng-bind-html=\"selectMsg | unsafe\" role=\"option\">\n" +
- " <span class=\"select2-match\"></span>\n" +
- " </div>\n" +
- " <div ng-if=\"!startsWithFilter\" class=\"select2-result-label\" ng-bind-html=\"selectMsg | highlight:title:className | unsafe\" role=\"option\">\n" +
- " <span class=\"select2-match\"></span>\n" +
- " </div>\n" +
- " </li>\n" +
- "\n" +
- " <li role=\"menuitem\" ng-if=\"startsWithFilter\" class=\"select2-results-dept-0 select2-result select2-result-selectable\" ng-model=\"ListType\" ng-repeat=\"(fIndex, item) in filteredName = (cName | startsWith:title:item)\" ng-class=\"{'select2-result-current': selectedOption === item.title,'hovstyle': selectedIndex === item.index,'disable': item.disabled}\" ng-click=\"item.disabled || selectOption(item.title,item.index)\" ng-mouseover=\"hoverIn(item.index)\" tabindex=\"-1\">\n" +
- " <div class=\"select2-result-label\" ng-bind-html=\"item.title | unsafe\" role=\"option\">\n" +
- " <span class=\"select2-match\"></span>\n" +
- " </div>\n" +
- " </li>\n" +
- "\n" +
- " <li role=\"menuitem\" ng-if=\"!startsWithFilter\" class=\"select2-results-dept-0 select2-result select2-result-selectable\" ng-model=\"ListType\" ng-repeat=\"(fIndex, item) in filteredName = (cName | filter:title)\" ng-class=\"{'select2-result-current': selectedOption === item.title,'hovstyle': selectedIndex === item.index,'disable': item.disabled}\" ng-click=\"item.disabled || selectOption(item.title,item.index)\" ng-mouseover=\"hoverIn(item.index)\" tabindex=\"-1\">\n" +
- " <div class=\"select2-result-label\" ng-bind-html=\"item.title | highlight:title:className | unsafe\" role=\"option\">\n" +
- " <span class=\"select2-match\"></span>\n" +
- " </div>\n" +
- " </li>\n" +
- " </ul>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/select/textDropdown.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/select/textDropdown.html",
- "<div tabindex=\"0\" class=\"text-dropdown\">\n" +
- " <div class=\"dropdown\" ng-class=\"{'not-visible': isActionsShown}\" ng-click=\"toggle()\">\n" +
- " <span class=\"action--selected\" ng-bind=\"currentAction\"></span>\n" +
- " <i ng-class=\"isActionsShown ? 'icon-dropdown-up' : 'icon-dropdown-down'\"></i>\n" +
- " </div>\n" +
- " <ul ng-class=\"isActionsShown ? 'actionsOpened' : 'actionsClosed'\" ng-show=\"isActionsShown\">\n" +
- " <li ng-class=\"{'highlight': selectedIndex==$index}\" ng-repeat=\"action in actions track by $index\" ng-click=\"chooseAction($event, action, $index)\" ng-mouseover=\"hoverIn($index)\">{{action}}<i ng-class=\"{'icon-included-checkmark': isCurrentAction(action)}\" att-accessibility-click=\"13,32\"></i></li>\n" +
- " </ul>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/slider/maxContent.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/slider/maxContent.html",
- "<div class=\"att-slider__label att-slider__label--max att-slider__label--below\" ng-transclude></div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/slider/minContent.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/slider/minContent.html",
- "<div class=\"att-slider__label att-slider__label--min att-slider__label--below\" ng-transclude></div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/slider/slider.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/slider/slider.html",
- "<div class=\"att-slider\" ng-mousemove=\"moveElem($event)\" ng-mouseup=\"mouseUp($event)\">\n" +
- " <div class=\"att-slider__track\">\n" +
- " <div class=\"att-slider__range att-slider__range--disabled\" ng-style=\"disabledStyle\"></div>\n" +
- " <div class=\"att-slider__range\" ng-style=\"rangeStyle\"></div>\n" +
- " </div>\n" +
- " <div class=\"att-slider__handles-container\">\n" +
- " <div role=\"menuitem\" aria-label=\"{{ngModelSingle}}\" class=\"att-slider__handle\" ng-style=\"handleStyle\" ng-mousedown=\"mouseDown($event,'ngModelSingle')\" ng-mousemove=\"moveElem($event)\" ng-mouseup=\"mouseUp($event)\" tabindex=\"0\" ng-keydown=\"keyDown($event,'ngModelSingle')\"></div>\n" +
- " <div role=\"menuitem\" aria-label=\"Minimum Value- {{ngModelLow}}\" class=\"att-slider__handle\" ng-style=\"minHandleStyle\" ng-mousedown=\"mouseDown($event,'ngModelLow')\" ng-focus=\"focus($event,'ngModelLow')\" ng-mousemove=\"moveElem($event)\" ng-mouseup=\"mouseUp($event)\" tabindex=\"0\" ng-keyup=\"keyUp($event,'ngModelLow')\" ng-keydown=\"keyDown($event,'ngModelLow')\"></div>\n" +
- " <div role=\"menuitem\" aria-label=\"Maximum Value- {{ngModelHigh}}\" class=\"att-slider__handle\" ng-style=\"maxHandleStyle\" ng-mousedown=\"mouseDown($event,'ngModelHigh')\" ng-focus=\"focus($event,'ngModelHigh')\" ng-mousemove=\"moveElem($event)\" ng-mouseup=\"mouseUp($event)\" tabindex=\"0\" ng-keyup=\"keyUp($event,'ngModelHigh')\" ng-keydown=\"keyDown($event,'ngModelHigh')\"></div>\n" +
- " </div>\n" +
- " <div ng-transclude></div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html",
- "<div class=\" btn-group\" \n" +
- " ng-class=\"{'buttons-dropdown--large':!isSmall, \n" +
- " 'buttons-dropdown--small':isSmall, \n" +
- " 'action-dropdown':(isActionDropdown), \n" +
- " 'open':isDropDownOpen}\">\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" class=\"button btn buttons-dropdown__split\" \n" +
- " ng-class=\"{'button--primary':(btnType==undefined || btnType=='primary'), \n" +
- " 'button--secondary':btnType=='secondary', \n" +
- " 'button--disabled':btnType=='disabled', \n" +
- " 'button--small':isSmall}\" \n" +
- " ng-if=\"!isActionDropdown\"\n" +
- " ng-click=\"btnType==='disabled'?undefined:clickFxn()\" att-accessibility-click=\"13,32\">{{btnText}}</a>\n" +
- " <a tabindex=\"0\" href=\"javascript:void(0)\" role=\"button\" aria-label=\"Toggle Dropdown\" aria-haspopup=\"true\" class=\"button buttons-dropdown__drop dropdown-toggle\" \n" +
- " ng-class=\"{'button--primary':(btnType==undefined || btnType=='primary'), \n" +
- " 'button--secondary':btnType=='secondary', \n" +
- " 'button--disabled':btnType=='disabled', \n" +
- " 'button--small':isSmall}\" ng-click=\"toggleDropdown()\" att-accessibility-click=\"13,32\">{{toggleTitle}} </a>\n" +
- " <ul class=\"dropdown-menu\" ng-class=\"{'align-right':multiselect ===true}\" aria-expanded=\"{{isDropDownOpen}}\" ng-click=\"hideDropdown()\" role=\"menu\" ng-transclude></ul>\n" +
- "</div> ");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html",
- "<li role=\"menuitem\" att-element-focus=\"sFlag\" tabindex=\"0\" ng-transclude></li>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html",
- "<div class='split-icon-button-container'>\n" +
- "\n" +
- " <div class='split-icon-button' ng-class=\"{'icon-with-chevron': isRight && !isMiddle && !isLeftNextDropdown && !isNextToDropDown, 'split-icon-button-middle':isMiddle, 'split-icon-button-right':isRight, 'split-icon-button-left':isLeft, 'split-icon-button-left-dropdown': isLeftNextDropdown ,'split-icon-button-next-dropdown': isNextToDropDown,'split-icon-button-dropdown': isDropDownOpen,'split-icon-button-hover':isIconHovered || isDropDownOpen}\" ng-mouseover='isIconHovered = true;' ng-mouseleave='isIconHovered = false;' tabindex=\"-1\" att-accessibility-click=\"13,32\" ng-click='dropDownClicked();'>\n" +
- " <a class='{{icon}}' title='{{iconTitle}}' tabindex=\"0\"></a>\n" +
- " <i ng-if=\"isRight && !isMiddle && !isLeftNextDropdown && !isNextToDropDown\" \n" +
- " ng-class=\"isDropDownOpen ? 'icon-dropdown-up' : 'icon-dropdown-down'\"> </i>\n" +
- " </div> \n" +
- "\n" +
- " <ul ng-if='isDropdown' class='dropdown-menu {{dropDownId}}' ng-show='\n" +
- " isDropDownOpen' ng-click='toggleDropdown(false)' role=\"presentation\" ng-transclude>\n" +
- " </ul>\n" +
- "\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html",
- "<div>\n" +
- " <div ng-if='isLeftLineShown' dir-type='{{iconStateConstants.DIR_TYPE.LEFT}}' expandable-line></div>\n" +
- " <div ng-click='clickHandler()' att-split-icon icon='{{icon}}' title='{{title}}' dir-type='{{iconStateConstants.DIR_TYPE.BUTTON}}' hover-watch='isHovered' drop-down-watch='dropDownWatch' drop-down-id='{{dropDownId}}'>\n" +
- " <div ng-transclude>\n" +
- " </div>\n" +
- " </div>\n" +
- " <div ng-if='isRightLineShown' dir-type='{{iconStateConstants.DIR_TYPE.RIGHT}}' expandable-line></div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html",
- "<div ng-transclude>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html",
- "<span ng-class=\"mainSliderClass\">\n" +
- " <table>\n" +
- " <tr>\n" +
- " <td>\n" +
- " <div class=\"jslider-bg\">\n" +
- " <i class=\"l\"></i>\n" +
- " <i class=\"r\"></i>\n" +
- " <i class=\"v\" ng-class=\"{'step-slider-green':sliderColor == COLORS.GREEN, 'step-slider-blue': sliderColor == COLORS.BLUE_HIGHLIGHT, 'step-slider-magenta': sliderColor == COLORS.MAGENTA, 'step-slider-gold': sliderColor == COLORS.GOLD, 'step-slider-purple': sliderColor == COLORS.PURPLE, 'step-slider-dark-blue': sliderColor == COLORS.DARK_BLUE, 'step-slider-regular': sliderColor == COLORS.REGULAR, 'step-slider-white': sliderColor == COLORS.WHITE, 'cutoff-slider': isCutOffSlider}\"></i>\n" +
- " </div>\n" +
- " <div class=\"jslider-pointer\" id=\"left-pointer\"></div>\n" +
- " <div class=\"jslider-pointer jslider-pointer-to\" ng-class=\"{'step-slider-green':sliderColor == COLORS.GREEN, 'step-slider-blue': sliderColor == COLORS.BLUE_HIGHLIGHT, 'step-slider-magenta': sliderColor == COLORS.MAGENTA, 'step-slider-gold': sliderColor == COLORS.GOLD, 'step-slider-purple': sliderColor == COLORS.PURPLE, 'step-slider-dark-blue': sliderColor == COLORS.DARK_BLUE, 'step-slider-regular': sliderColor == COLORS.REGULAR, 'step-slider-white':sliderColor == COLORS.WHITE ,'cutoff-slider': isCutOffSlider}\"></div>\n" +
- " <div class=\"jslider-label\"><span ng-bind=\"from\"></span><span ng-bind=\"options.dimension\"></span></div>\n" +
- " <div class=\"jslider-label jslider-label-to\"><span ng-bind=\"toStr\"></span><span ng-bind=\"endDimension\"></span></div>\n" +
- " <div class=\"jslider-value\" id=\"jslider-value-left\"><span></span>{{options.dimension}}</div>\n" +
- " <div class=\"jslider-value jslider-value-to\"><span></span>{{toolTipDimension}}</div>\n" +
- " <div class=\"jslider-scale\" ng-class=\"{'show-dividers': showDividers, 'cutoff-slider-dividers':isCutOffSlider}\">\n" +
- " </div>\n" +
- " <div class=\"jslider-cutoff\">\n" +
- " <div class=\"jslider-label jslider-label-cutoff\">\n" +
- " <span ng-bind=\"cutOffVal\"></span>\n" +
- " </div>\n" +
- " </div>\n" +
- " </td>\n" +
- " </tr>\n" +
- " </table>\n" +
- "</span>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/steptracker/step-tracker.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/steptracker/step-tracker.html",
- "<div class=\"steptracker1\">\n" +
- " <div class=\"steptracker-bg\">\n" +
- " <div tabindex=\"0\" ng-click=\"stepclick($event, $index);\" att-accessibility-click=\"13,23\" class=\"steptracker-track size-onethird\" ng-repeat=\"step in sdata\"\n" +
- " ng-style=\"set_width($index)\"\n" +
- " ng-class=\"{'last':laststep($index),'done':donesteps($index),'active':activestep($index), 'incomplete': isIncomplete($index), 'disabled': disableClick}\">\n" +
- " <div class=\"circle\">{{($index) + 1}}<span>{{step.title}}</span></div>\n" +
- " <div ng-if=\"!laststep($index)\" class=\"track\"></div>\n" +
- " </div>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/steptracker/step.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/steptracker/step.html",
- "<div class=\"steptracker1\">\n" +
- " <div class=\"steptracker-bg\">\n" +
- " <div class=\"steptracker-track size-onethird\" \n" +
- " ng-class=\"{'last':laststep($index),'done':donesteps($index),'active':activestep($index)}\">\n" +
- " <div class=\"circle\" tabindex=\"0\" \n" +
- " ng-click=\"stepclick($event, $index);\" \n" +
- " att-accessibility-click=\"13,23\">{{($index) + 1}}<span>{{step.title}}</span></div>\n" +
- " <div ng-if=\"!laststep($index)\" class=\"track\"></div>\n" +
- " </div>\n" +
- " </div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/steptracker/timeline.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/steptracker/timeline.html",
- "<div class='att-timeline'>\n" +
- " <div timeline-dot order='0' title='{{steps[0].title}}' description='{{steps[0].description}}' by='{{steps[0].by}}' date='{{steps[0].date}}' type='{{steps[0].type}}'></div>\n" +
- "\n" +
- " <div ng-repeat=\"m in middleSteps track by $index\">\n" +
- " <div timeline-bar order='{{$index}}'></div>\n" +
- " <div timeline-dot order='{{$index + 1}}' title='{{m.title}}' description='{{m.description}}' by='{{m.by}}' date='{{m.date}}' type='{{m.type}}'>\n" +
- " </div>\n" +
- " </div>\n" +
- "\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/steptracker/timelineBar.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/steptracker/timelineBar.html",
- "<div class='timeline-bar'>\n" +
- " <div class='progress-bar' ng-class=\"{'completed-color':isCompleted,'cancelled-color':isCancelled,'alert-color':isAlert}\">\n" +
- " </div>\n" +
- " <hr></hr>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/steptracker/timelineDot.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/steptracker/timelineDot.html",
- "<div class='timeline-dot'>\n" +
- "\n" +
- " <div class='bigger-circle' ng-class=\"{'completed-color':isCompleted,'cancelled-color':isCancelled,'alert-color':isAlert}\">\n" +
- " </div>\n" +
- "\n" +
- " <div class='inactive-circle'>\n" +
- " </div>\n" +
- "\n" +
- " <div class='expandable-circle' ng-class=\"{'completed-color':isCompleted,'cancelled-color':isCancelled,'alert-color':isAlert}\">\n" +
- " </div>\n" +
- "\n" +
- " <div ng-class=\"{'below-info-box':isBelowInfoBoxShown, 'above-info-box': !isBelowInfoBoxShown}\" tabindex=\"0\">\n" +
- " \n" +
- " <div ng-if='isBelowInfoBoxShown' class='vertical-line'>\n" +
- " </div>\n" +
- "\n" +
- " <div class='info-container' ng-init='isContentShown=false'>\n" +
- " <div ng-class=\"{'current-step-title':isCurrentStep, 'title':!isCurrentStep,'completed-color-text':isCompleted,'cancelled-color-text':isCancelled,'alert-color-text':isAlert, 'inactive-color-text':isInactive}\" ng-mouseover='titleMouseover(1)' ng-mouseleave='titleMouseleave()' ng-bind='title' ></div>\n" +
- " <div class='content'>\n" +
- " <div class='description' ng-bind='description'></div>\n" +
- " <div class='submitter' ng-bind='by'></div>\n" +
- " </div>\n" +
- " <div class='date' ng-mouseover='titleMouseover(2)' ng-mouseleave='titleMouseleave()' ng-bind='date'></div>\n" +
- " </div>\n" +
- "\n" +
- " <div ng-if='!isBelowInfoBoxShown' class='vertical-line'>\n" +
- " </div>\n" +
- " </div>\n" +
- "\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/table/attTable.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/table/attTable.html",
- "<table class=\"tablesorter tablesorter-default\" ng-transclude></table>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/table/attTableBody.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/table/attTableBody.html",
- "<td ng-transclude></td>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/table/attTableHeader.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/table/attTableHeader.html",
- "<th role=\"button\" aria-label=\"column header {{headerName}} {{sortable !== 'false' && '' || 'sortable'}} {{sortPattern !== 'null' && '' || sortPattern}}\" tabindex=\"{{sortable !== 'false' && '0' || '-1'}}\" class=\"tablesorter-header\" ng-class=\"{'tablesorter-headerAsc': sortPattern === 'asc', 'tablesorter-headerDesc': sortPattern === 'desc', 'tablesort-sortable': sortable !== 'false', 'sorter-false': sortable === 'false'}\" att-accessibility-click=\"13,32\" ng-click=\"(sortable !== 'false') && sort();\"><div class=\"tablesorter-header-inner\" ng-transclude></div></th>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html",
- "<div class=\"att-table-message\">\n" +
- " <div class=\"message\" ng-if=\"msgType==messageConstants.TABLE_MESSAGE_TYPES.noMatching\">\n" +
- " <div class=\"img-magnify-glass\"></div> \n" +
- " <div>\n" +
- " <div ng-transclude></div>\n" +
- " </div>\n" +
- " </div>\n" +
- " <div class=\"message\" ng-if=\"msgType==messageConstants.TABLE_MESSAGE_TYPES.errorLoading\">\n" +
- " <div class=\"img-oops-exclamation\" tabindex=\"0\" aria-label=\"Oops! The information could not load at this time. Please click link to refresh the page.\"></div> \n" +
- " <div>Oops!</div>\n" +
- " <div>The information could not load at this time.</div>\n" +
- " <div>Please <a href=\"javascript:void(0)\" ng-click=\"refreshAction($event)\">refresh the page</a>\n" +
- " </div>\n" +
- " </div>\n" +
- " <div class=\"message\" ng-if=\"msgType==messageConstants.TABLE_MESSAGE_TYPES.magnifySearch\">\n" +
- " <div class=\"img-magnify-glass\"></div>\n" +
- " <div>\n" +
- " <p class=\"title\" tabindex=\"0\">Please input values to <br/> begin your search.</p>\n" +
- " </div>\n" +
- " </div>\n" +
- " <div class=\"message loading-message\" ng-if=\"msgType==messageConstants.TABLE_MESSAGE_TYPES.isLoading\">\n" +
- " <div class=\"img-loading-dots\"></div>\n" +
- " <div ng-transclude></div>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html",
- "<div class=\"att-user-message\">\n" +
- " <div ng-class=\"type==messageConstants.USER_MESSAGE_TYPES.error && trigger ? 'message-wrapper-error' : 'hidden'\">\n" +
- " <div class=\"message-icon-error\"> <i class=\"icon-info-alert\"></i> </div>\n" +
- "\n" +
- " <div class=\"message-body-wrapper\">\n" +
- " <div class=\"message-title-error\" ng-if=\"thetitle && thetitle.length > 0\"> <span ng-bind=\"thetitle\" tabindex=\"0\" aria-label=\"{{thetitle}}\"></span> </div>\n" +
- " <div class=\"message-msg\" ng-bind=\"message\" ng-if=\"message && message.length > 0\" tabindex=\"0\"></div>\n" +
- " <div class=\"message-bottom\">\n" +
- " <div ng-transclude></div>\n" +
- " </div>\n" +
- " </div>\n" +
- "\n" +
- " </div>\n" +
- " <div ng-class=\"type==messageConstants.USER_MESSAGE_TYPES.success && trigger ? 'message-wrapper-success' : 'hidden'\">\n" +
- " <div class=\"message-icon-success\"> <i class=\"icon-included-checkmark\"></i></div>\n" +
- "\n" +
- " <div class=\"message-body-wrapper\">\n" +
- " <div class=\"message-title-success\" ng-if=\"thetitle && thetitle.length > 0\" >\n" +
- " <span ng-bind=\"thetitle\" tabindex=\"0\" aria-label=\"{{thetitle}}\"></span>\n" +
- " </div>\n" +
- " <div class=\"message-msg\" ng-bind=\"message\" ng-if=\"message && message.length > 0\" tabindex=\"0\"></div>\n" +
- " <div class=\"message-bottom\">\n" +
- " <div ng-transclude></div>\n" +
- " </div>\n" +
- " </div>\n" +
- "\n" +
- " </div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tabs/floatingTabs.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tabs/floatingTabs.html",
- "<ul ng-class=\"{'tabsbid': size === 'large', 'tabsbid--small': size === 'small'}\">\n" +
- " <li ng-repeat=\"tab in tabs\" ng-class=\"{'tabsbid__item tabsbid__item--active': isActiveTab(tab.url), 'tabsbid__item': !isActiveTab(tab.url)}\" ng-click=\"onClickTab(tab)\">\n" +
- " <a class=\"tabsbid__item-link\" href=\"{{tab.url}}\" tabindex=\"0\" att-accessibility-click=\"32,13\">{{tab.title}}</a>\n" +
- " </li>\n" +
- "</ul>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tabs/genericTabs.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tabs/genericTabs.html",
- "<ul ng-class=\"{'tabsbid': size === 'large', 'tabsbid--small': size === 'small'}\">\n" +
- " <li ng-repeat=\"tab in tabs\" ng-class=\"{'tabsbid__item tabsbid__item--active': isActive(tab.id), 'tabsbid__item': !isActive(tab.id),'tabs__item--active': isActive(tab.id)}\" ng-click=\"clickTab(tab)\">\n" +
- " <a class=\"tabsbid__item-link\" href=\"{{tab.url}}\" tabindex=\"0\" att-accessibility-click=\"32,13\">{{tab.title}}</a>\n" +
- " </li>\n" +
- "</ul>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tabs/menuTab.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tabs/menuTab.html",
- "<li class=\"megamenu__item\" ng-mouseover=\"showHoverChild($event)\" ng-class=\"{'tabs__item--active': menuItem.active==true && !hoverChild==true}\">\n" +
- " <span role=\"menuitem\" att-accessibility-click=\"13,32\" tabindex=\"0\" ng-click=\"showChildren($event);!clickInactive||resetMenu($event)\">{{tabName}}</span>\n" +
- " <div ng-transclude></div>\n" +
- "</li>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html",
- "<div ng-class=\"{'megamenu-tabs': megaMenu,'submenu-tabs': !megaMenu}\">\n" +
- " <ul class=\"megamenu__items\" role=\"presentation\" ng-transclude>\n" +
- " </ul>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html",
- "<div class=\"simplified-tabs\">\n" +
- "<ul class=\"simplified-tabs__items\" role=\"tablist\">\n" +
- " <li ng-repeat=\"tab in tabs\" role=\"tab\" class=\"simplified-tabs__item\" ng-class=\"{'tabs__item--active': isActive(tab.id)}\" ng-click=\"clickTab(tab)\" tabindex=\"0\" att-accessibility-click=\"32,13\">{{tab.title}}</li>\n" +
- " <li class=\"tabs__pointer\"></li>\n" +
- "</ul>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tabs/submenuTab.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tabs/submenuTab.html",
- "<li class=\"tabsbid__item megamenu__item\" ng-class=\"{'subMenuHover': menuItem.active==true}\">\n" +
- "<a ng-href=\"{{tabUrl}}\" role=\"menuitem\" ng-if=\"subMenu === true\" ng-mouseover=\"!subMenu || showChildren($event)\" ng-focus=\"!subMenu ||showChildren($event)\" tabindex=\"{{subMenu=='true'?0:-1}}\" ng-click=\"!subMenu ||showMenuClick($event) ; subMenu ||showSubMenuClick($event)\" att-accessibility-click=\"13,32\">{{tabName}}</a>\n" +
- "<a ng-href=\"{{tabUrl}}\" role=\"menuitem\" ng-if=\"!menuItem.leafNode && subMenu !== true\" ng-mouseover=\"!subMenu || showChildren($event)\" ng-focus=\"!subMenu ||showChildren($event)\" tabindex=\"{{subMenu=='true'?0:-1}}\" ng-click=\"!subMenu ||showMenuClick($event) ; subMenu ||showSubMenuClick($event)\" att-accessibility-click=\"13,32\">{{tabName}}</a>\n" +
- "<span ng-transclude></span>\n" +
- "</li>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html",
- "<div class=\"tags__item\" \n" +
- " ng-class=\"{'tags__item--small':isSmall, \n" +
- " 'tags__item--color':isColor, \n" +
- " 'tags__item--cloud':!isClosable && !isColor,'active':applyActiveClass}\"\n" +
- " ng-if=\"display\" \n" +
- " ng-style=\"{borderColor: border_type_borderColor, background: isHighlight?'#bbb':undefined, color: isHighlight?'#444':undefined }\"\n" +
- " ng-mousedown=\"activeHighlight(true)\" role=\"presentation\" ng-mouseup=\"activeHighlight(false)\">\n" +
- " <i class=\"icon-filter tags__item--icon\" ng-if=\"isIcon\">&nbsp;</i>\n" +
- " <i class=\"tags__item--color-icon\" ng-if=\"isColor\" ng-style=\"{backgroundColor: background_type_backgroundColor, borderColor: background_type_borderColor}\"></i>\n" +
- " <span class=\"tags__item--title\" role=\"presentation\" tabindex=0 aria-label=\"tag\" ng-mousedown=\"activeHighlight(true)\" ng-mouseup=\"activeHighlight(false)\" ng-transclude></span>\n" +
- " <a href=\"javascript:void(0)\" title=\"Dismiss Link\" class=\"tags__item--action\" ng-click=\"closeMe();$event.preventDefault()\" ng-if=\"isClosable\"\n" +
- " ng-style=\"{color: (isHighlight && '#444') || '#888' , borderLeft: (isHighlight && '1px solid #444')|| '1px solid #888' }\">\n" +
- " <i class=\"icon-erase\">&nbsp;</i>\n" +
- " </a>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/toggle/demoToggle.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/toggle/demoToggle.html",
- "<span ng-transclude></span>\n" +
- "<div class=\"att-switch-content\" hm-drag = \"drag($event)\" att-accessibility-click=\"13,32\" ng-click=\"updateModel($event)\" hm-dragstart=\"alert('hello')\" hm-dragend=\"drag($event)\" ng-class=\"{'large' : directiveValue == 'large'}\" style=\"-webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\">\n" +
- " <div class=\"att-switch-onText\" ng-style=\"\" ng-class=\"{'icon-included-checkmark ico' : on === undefined,'large' : directiveValue == 'large'}\">{{on}}<span class=\"hidden-spoken\">{{directiveValue}} when checked.</span></div>\n" +
- " <div class=\"att-switch-thumb\" tabindex=\"0\" title=\"Toggle switch\" role=\"checkbox\" ng-class=\"{'large' : directiveValue == 'large'}\"></div>\n" +
- " <div class=\"att-switch-offText\" ng-class=\"{'icon-erase ico' : on === undefined,'large' : directiveValue == 'large'}\">{{off}}<span class=\"hidden-spoken\">{{directiveValue}} when unchecked.</span></div>\n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html",
- "<div class=\"typeahead mainContainerOuter\">\n" +
- " <span class=\"message\">To</span>\n" +
- " <div class='maincontainer' ng-click=\"setFocus()\" ng-focus=\"inputActive=true\" ng-class =\"{'typeahed_active':inputActive || (lineItems.length && inputActive)}\">\n" +
- " <span tag-badges closable ng-repeat =\"lineItem in lineItems track by $index\" on-close=\"theMethodToBeCalled($index)\" >{{lineItem}}</span>\n" +
- " <input type=\"text\" focus-me=\"clickFocus\" ng-focus=\"inputActive=true\" ng-model=\"model\" ng-keydown=\"selected = false; selectionIndex($event)\"/><br/> \n" +
- " </div>\n" +
- " <div ng-hide=\"!model.length || selected\">\n" +
- " <div class=\"filtercontainer list-scrollable\" ng-show=\"( items | filter:model).length\">\n" +
- " <div class=\"item\" ng-repeat=\"item in items| filter:model track by $index\" ng-click=\"handleSelection(item[titleName],item[subtitle])\" att-accessibility-click=\"13,32\" ng-class=\"{active:isCurrent($index,item[titleName],item[subtitle],( items | filter:model).length)}\"ng-mouseenter=\"setCurrent($index)\">\n" +
- " <span class=\"title\" >{{item[titleName]}}</span>\n" +
- " <span class=\"subtitle\">{{item[subtitle]}}</span>\n" +
- " </div> \n" +
- " </div>\n" +
- " </div>\n" +
- " \n" +
- " <div class=\"textAreaEmailContentDiv\">\n" +
- " <span class=\"message\">Message</span>\n" +
- " <textarea rows=\"4\" cols=\"50\" role=\"textarea\" class=\"textAreaEmailContent\" ng-model=\"emailMessage\">To send \n" +
- " a text, picture, or video message1 to an AT&T wireless device from your email:my message.</textarea>\n" +
- " \n" +
- " </div>\n" +
- " \n" +
- "</div>\n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html",
- "<li>\n" +
- " <i ng-class=\"{'icon-tickets-active' : type == 'actual' && id =='Active','icon-tickets-referred' : type == 'actual' && id =='Requested Closed','icon-ticket-regular' : type == 'progress' && id =='In Progress','icon-tickets-contested' : type == 'actual' && id =='Contested','icon-tickets-returned' : type == 'actual' && id =='Deferred','icon-tickets-closed' : type == 'actual' && id =='Ready to Close','icon-tickets-cleared' : type == 'actual' && id =='Cleared'}\"></i>\n" +
- " <span ng-transclude></span>\n" +
- "</li>\n" +
- " \n" +
- "");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/videoControls/photoControls.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/videoControls/photoControls.html",
- "<div>\n" +
- " <a title=\"{{links.prevLink}}\" aria-label=\"Previous Link\" ng-href=\"{{links.prevLink}}\"><i alt=\"previous\" class=\"icon-arrow-left\">&nbsp;</i></a>\n" +
- " <span ng-transclude></span>\n" +
- " <a title=\"{{links.nextLink}}\" aria-label=\"Next Link\" ng-href=\"{{links.nextLink}}\"><i alt=\"next\" class=\"icon-arrow-right\">&nbsp;</i></a>\n" +
- "</div>");
-}]);
-
-angular.module("app/scripts/ng_js_att_tpls/videoControls/videoControls.html", []).run(["$templateCache", function($templateCache) {
- $templateCache.put("app/scripts/ng_js_att_tpls/videoControls/videoControls.html",
- "<div class=\"video-player\">\n" +
- " <div class=\"video-player__control video-player__play-button\">\n" +
- " <a class=\"video-player__button gigant-play\" data-toggle-buttons=\"icon-play, icon-pause\" data-target=\"i\"><i class=\"icon-play\" alt=\"Play/Pause Button\"></i></a>\n" +
- " </div>\n" +
- " <div class=\"video-player__control video-player__track\">\n" +
- "\n" +
- " <div class=\"video-player__track--inner\">\n" +
- " <div class=\"video-player__track--loaded\" style=\"width: 75%\"></div>\n" +
- " <div class=\"video-player__track--played\" style=\"width: 40%\">\n" +
- " <div class=\"att-tooltip att-tooltip--on att-tooltip--dark att-tooltip--above video-player__track-tooltip\" ng-transclude></div>\n" +
- " <div class=\"video-player__track-handle\"></div>\n" +
- " </div>\n" +
- " </div>\n" +
- " </div>\n" +
- " <a class=\"video-player__time\" ng-transclude></a>\n" +
- " <div class=\"video-player__control video-player__volume_icon\">\n" +
- " <a class=\"video-player__button\" data-toggle-buttons=\"icon-volume-mute, icon-volume-up\" data-target=\"i\"><i class=\"icon-volume-up\" alt=\"Volume Button\"></i></a>\n" +
- " </div>\n" +
- " <ul class=\"video-player__control video-player__volume\">\n" +
- " <li class=\"video-player__volume-bar video-player__volume-bar--full\">&nbsp;</li>\n" +
- " <li class=\"video-player__volume-bar video-player__volume-bar--full\">&nbsp;</li>\n" +
- " <li class=\"video-player__volume-bar\">&nbsp;</li>\n" +
- " <li class=\"video-player__volume-bar\">&nbsp;</li>\n" +
- " <li class=\"video-player__volume-bar\">&nbsp;</li>\n" +
- " </ul>\n" +
- " <div class=\"video-player__control video-player__toggle-fullscreen-button\">\n" +
- " <a class=\"video-player__button\" data-toggle-buttons=\"icon-full-screen, icon-normal-screen\" data-target=\"i\"><i class=\"icon-full-screen\" alt=\"Full Screen Button\">&nbsp;</i></a>\n" +
- " </div>\n" +
- "</div>");
-}]);
-
-return {}
-})(angular, window); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.min.js b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.min.js
deleted file mode 100644
index 95d81a26..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.min.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
-* FileName att-style-guide
-* Version 2.17.0
-* Build number 5c64ecd381d5984c483cdfaa078a1890
-* Date 11/23/2015
-*/
-
-(function(angular, window){
-angular.module("att.abs",["att.abs.tpls","att.abs.utilities","att.abs.position","att.abs.transition","att.abs.accordion","att.abs.alert","att.abs.boardStrip","att.abs.breadCrumbs","att.abs.buttons","att.abs.checkbox","att.abs.colorselector","att.abs.datepicker","att.abs.devNotes","att.abs.dividerLines","att.abs.dragdrop","att.abs.drawer","att.abs.message","att.abs.formField","att.abs.hourpicker","att.abs.iconButtons","att.abs.links","att.abs.loading","att.abs.modal","att.abs.pagination","att.abs.paneSelector","att.abs.tooltip","att.abs.popOvers","att.abs.profileCard","att.abs.progressBars","att.abs.radio","att.abs.scrollbar","att.abs.search","att.abs.select","att.abs.slider","att.abs.splitButtonDropdown","att.abs.splitIconButton","att.abs.stepSlider","att.abs.steptracker","att.abs.table","att.abs.tableMessages","att.abs.tabs","att.abs.tagBadges","att.abs.textOverflow","att.abs.toggle","att.abs.treeview","att.abs.typeAhead","att.abs.verticalSteptracker","att.abs.videoControls"]),angular.module("att.abs.tpls",["app/scripts/ng_js_att_tpls/accordion/accordion.html","app/scripts/ng_js_att_tpls/accordion/accordion_alt.html","app/scripts/ng_js_att_tpls/accordion/attAccord.html","app/scripts/ng_js_att_tpls/accordion/attAccordBody.html","app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html","app/scripts/ng_js_att_tpls/alert/alert.html","app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html","app/scripts/ng_js_att_tpls/boardStrip/attBoard.html","app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html","app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html","app/scripts/ng_js_att_tpls/colorselector/colorselector.html","app/scripts/ng_js_att_tpls/datepicker/dateFilter.html","app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html","app/scripts/ng_js_att_tpls/datepicker/datepicker.html","app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html","app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html","app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html","app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html","app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html","app/scripts/ng_js_att_tpls/formField/creditCardImage.html","app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html","app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html","app/scripts/ng_js_att_tpls/links/readMore.html","app/scripts/ng_js_att_tpls/loading/loading.html","app/scripts/ng_js_att_tpls/modal/backdrop.html","app/scripts/ng_js_att_tpls/modal/tabbedItem.html","app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html","app/scripts/ng_js_att_tpls/modal/window.html","app/scripts/ng_js_att_tpls/pagination/pagination.html","app/scripts/ng_js_att_tpls/paneSelector/innerPane.html","app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html","app/scripts/ng_js_att_tpls/paneSelector/sidePane.html","app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html","app/scripts/ng_js_att_tpls/popOvers/popOvers.html","app/scripts/ng_js_att_tpls/profileCard/addUser.html","app/scripts/ng_js_att_tpls/profileCard/profileCard.html","app/scripts/ng_js_att_tpls/progressBars/progressBars.html","app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html","app/scripts/ng_js_att_tpls/search/search.html","app/scripts/ng_js_att_tpls/select/select.html","app/scripts/ng_js_att_tpls/select/textDropdown.html","app/scripts/ng_js_att_tpls/slider/maxContent.html","app/scripts/ng_js_att_tpls/slider/minContent.html","app/scripts/ng_js_att_tpls/slider/slider.html","app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html","app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html","app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html","app/scripts/ng_js_att_tpls/steptracker/step-tracker.html","app/scripts/ng_js_att_tpls/steptracker/step.html","app/scripts/ng_js_att_tpls/steptracker/timeline.html","app/scripts/ng_js_att_tpls/steptracker/timelineBar.html","app/scripts/ng_js_att_tpls/steptracker/timelineDot.html","app/scripts/ng_js_att_tpls/table/attTable.html","app/scripts/ng_js_att_tpls/table/attTableBody.html","app/scripts/ng_js_att_tpls/table/attTableHeader.html","app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html","app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html","app/scripts/ng_js_att_tpls/tabs/floatingTabs.html","app/scripts/ng_js_att_tpls/tabs/genericTabs.html","app/scripts/ng_js_att_tpls/tabs/menuTab.html","app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html","app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html","app/scripts/ng_js_att_tpls/tabs/submenuTab.html","app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html","app/scripts/ng_js_att_tpls/toggle/demoToggle.html","app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html","app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html","app/scripts/ng_js_att_tpls/videoControls/photoControls.html","app/scripts/ng_js_att_tpls/videoControls/videoControls.html"]),angular.module("att.abs.utilities",[]).filter("unsafe",["$sce",function(a){return function(b){return a.trustAsHtml(b)}}]).filter("highlight",function(){function a(a){return a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(b,c,d){return c&&b?b.replace(new RegExp(a(c),"gi"),'<span class="'+d+'">$&</span>'):b}}).filter("attLimitTo",function(){return function(a,b,c){var d=[],e=b,f=c;return isNaN(f)&&(f=0),d=a&&!isNaN(e)?a.slice(f,f+e):a}}).filter("startsWith",function(){return"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(a){return 0===this.indexOf(a)}),function(a,b){if(void 0===b||""===b)return a;var c=[];return angular.forEach(a,function(a){a.title.toLowerCase().startsWith(b.toLowerCase())&&c.push(a)}),c}}).directive("attInputDeny",[function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){var e=null;c.$observe("attInputDeny",function(a){a&&(e=new RegExp(a,"g"))}),b.bind("input",function(){var b=d.$viewValue&&d.$viewValue.replace(e,"");b!==d.$viewValue&&(d.$setViewValue(b),d.$render(),a.$apply())})}}}]).directive("attAccessibilityClick",[function(){return{restrict:"A",link:function(a,b,c){var d=[];c.$observe("attAccessibilityClick",function(a){a&&(d=a.split(","))}),b.bind("keydown",function(a){var c=function(){var b=!1;return a.keyCode||(a.which?a.keyCode=a.which:a.charCode&&(a.keyCode=a.charCode)),a.keyCode&&d.indexOf(a.keyCode.toString())>-1&&(b=!0),b};d.length>0&&c()&&(b[0].click(),a.preventDefault())})}}}]).directive("attElementFocus",[function(){return{restrict:"A",link:function(a,b,c){a.$watch(c.attElementFocus,function(a){a&&b[0].focus()})}}}]).directive("focusOn",["$timeout",function(a){var b=function(a){if(!a.focusOn&&""!==a.focusOn)throw"FocusOnCondition missing attribute to evaluate"};return{restrict:"A",link:function(c,d,e){b(e),c.$watch(e.focusOn,function(b){b&&a(function(){d[0].focus()})})}}}]).constant("whenScrollEndsConstants",{threshold:100,width:0,height:0}).directive("whenScrollEnds",function(a,b){return{restrict:"A",link:function(c,d,e){var f=parseInt(e.threshold,10)||a.threshold;return e.axis&&""!==e.axis?void("x"===e.axis?(visibleWidth=parseInt(e.width,10)||a.width,d.css("width")&&(visibleWidth=d.css("width").split("px")[0]),d[0].addEventListener("scroll",function(){var a=d.prop("scrollWidth");void 0===a&&(a=1);var b=a-visibleWidth;b-d[0].scrollLeft<=f&&c.$apply(e.whenScrollEnds)})):"y"===e.axis&&(visibleHeight=parseInt(e.height,10)||a.height,d.css("width")&&(visibleHeight=d.css("height").split("px")[0]),d[0].addEventListener("scroll",function(){var a=d.prop("scrollHeight");void 0===a&&(a=1);var b=a-visibleHeight;b-d[0].scrollTop<=f&&c.$apply(e.whenScrollEnds)}))):void b.warn("axis attribute must be defined for whenScrollEnds.")}}}).directive("validImei",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){d.$parsers.unshift(function(b){if(b){if(a.valid=!1,isNaN(b)||15!==b.length)a.valid=!1;else{for(var c=0,e=[],f=0;15>f;f++)e[f]=parseInt(b.substring(f,f+1),10),f%2!==0&&(e[f]=parseInt(2*e[f],10)),e[f]>9&&(e[f]=parseInt(e[f]%10,10)+parseInt(e[f]/10,10)),c+=parseInt(e[f],10);c%10===0?a.valid=!0:a.valid=!1}d.$setValidity("invalidImei",a.valid)}return a.valid?b:void 0})}}}).directive("togglePassword",function(){return{restrict:"A",transclude:!1,link:function(a,b,c,d){b.bind("click",function(){var a=c.togglePassword;b[0].innerHTML="Show"===b[0].innerHTML?"Hide":"Show";var d=angular.element(document.querySelector("#"+a))[0].type;angular.element(document.querySelector("#"+a))[0].type="password"===d?"text":"password"})}}}).factory("events",function(){var a=function(a){a.stopPropagation?a.stopPropagation():a.returnValue=!1},b=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1};return{stopPropagation:a,preventDefault:b}}).factory("$documentBind",["$document","$timeout",function(a,b){var c=function(c,d,e){e.$watch(c,function(c){b(function(){c?a.bind("click",d):a.unbind("click",d)})})},d=function(c,d,e,f,g,h){g?(h||(h=0),f.$watch(d,function(d,f){d!==f&&b(function(){d?a.bind(c,e):a.unbind(c,e)},h)})):f.$watch(d,function(b,d){b!==d&&(b?a.bind(c,e):a.unbind(c,e))})};return{click:c,event:d}}]).factory("DOMHelper",function(){function a(a){var b=angular.element(a),c=parseInt(b.attr("tabindex"),10)>=0?!0:!1,d=b[0].tagName.toUpperCase();return c||"A"===d||"INPUT"===d||"TEXTAREA"===d?!(b[0].disabled||b[0].readOnly):!1}function b(a){return 1==a.nodeType&&"SCRIPT"!=a.nodeName&&"STYLE"!=a.nodeName}function c(d){var d=d||document.getElementsByTagName("body")[0];if(b(d)&&a(d))return d;if(!d.hasChildNodes())return void 0;for(var e=d.firstChild;e;){var f=c(e);if(f)return f;e=e.nextSibling}}var d=function(a){var b=a;return a.hasOwnProperty("length")&&(b=a[0]),c(b)};return{firstTabableElement:d}}).factory("keymap",function(){return{KEY:{TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91},MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(a){var b=a.keyCode;switch(b){case this.KEY.COMMAND:case this.KEY.SHIFT:case this.KEY.CTRL:case this.KEY.ALT:return!0}return a.metaKey?!0:!1},isFunctionKey:function(a){return a=a.keyCode?a.keyCode:a,a>=112&&123>=a},isVerticalMovement:function(a){return~[this.KEY.UP,this.KEY.DOWN].indexOf(a)},isHorizontalMovement:function(a){return~[this.KEY.LEFT,this.KEY.RIGHT,this.KEY.BACKSPACE,this.KEY.DELETE].indexOf(a)},isAllowedKey:function(a){return~[this.KEY.SPACE,this.KEY.ESC,this.KEY.ENTER].indexOf(a)||this.isHorizontalMovement(a)||this.isVerticalMovement(a)}}}).factory("keyMapAc",function(){return{keys:{32:" ",33:"!",34:'"',35:"#",36:"$",37:"%",38:"&",39:"'",40:"(",41:")",42:"*",43:"+",44:",",45:"-",46:".",47:"/",58:":",59:";",60:"<",61:"=",62:">",63:"?",64:"@",91:"[",92:"\\",93:"]",94:"^",95:"_",96:"`",123:"{",124:"|",125:"}",126:"~"},keyRange:{startNum:"48",endNum:"57",startSmallLetters:"97",endSmallLetters:"122",startCapitalLetters:"65",endCapitalLetters:"90"},allowedKeys:{TAB:8,BACKSPACE:9,DELETE:16}}}).factory("$attElementDetach",function(){var a=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};return a}).factory("$ieVersion",function(){var ie=null,loadIEVersion=function(){var isIE10=eval("/*@cc_on!@*/false")&&10===document.documentMode;if(isIE10)return 10;var v=3,div=document.createElement("div"),all=div.getElementsByTagName("i");do div.innerHTML="<!--[if gt IE "+ ++v+"]><i></i><![endif]-->";while(all[0]);return v>4?v:void 0};return function(){return null===ie&&(ie=loadIEVersion()),ie}}),function(){String.prototype.toSnakeCase=function(){return this.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})};var a=function(a,b){a=a||"",b=!isNaN(b)&&b||0;for(var c="",d=0;b>d;d++)c+=a;return c},b=function(b,c,d,e){return b=b||"",c=!isNaN(c)&&c||0,d=d||"",c>b.length?e?a(d,c-b.length)+b:b+a(d,c-b.length):b};String.prototype.lPad=function(a,c){return b(this,a,c,!0)},String.prototype.rPad=function(a,c){return b(this,a,c,!1)},Array.prototype.indexOf||(Array.prototype.indexOf=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1})}(),angular.module("att.abs.position",[]).factory("$position",["$document","$window",function(a,b){function c(a,c){return a.currentStyle?a.currentStyle[c]:b.getComputedStyle?b.getComputedStyle(a)[c]:a.style[c]}function d(a){return"static"===(c(a,"position")||"static")}var e=function(b){for(var c=a[0],e=b.offsetParent||c;e&&e!==c&&d(e);)e=e.offsetParent;return e||c};return{position:function(b){var c=this.offset(b),d={top:0,left:0},f=e(b[0]);return f!==a[0]&&(d=this.offset(angular.element(f)),d.top+=f.clientTop-f.scrollTop,d.left+=f.clientLeft-f.scrollLeft),{width:b.prop("offsetWidth"),height:b.prop("offsetHeight"),top:c.top-d.top,left:c.left-d.left}},offset:function(c){var d=c[0].getBoundingClientRect();return{width:c.prop("offsetWidth"),height:c.prop("offsetHeight"),top:d.top+(b.pageYOffset||a[0].body.scrollTop||a[0].documentElement.scrollTop),left:d.left+(b.pageXOffset||a[0].body.scrollLeft||a[0].documentElement.scrollLeft)}}}}]).factory("$isElement",[function(){var a=function(b,c,d){return b[0]===c[0]?!0:b[0]===d[0]?!1:a(b.parent()[0]&&b.parent()||c,c,d)};return a}]).directive("attPosition",["$position",function(a){return{restrict:"A",link:function(b,c,d){b.$watchCollection(function(){return a.position(c)},function(a){b[d.attPosition]=a})}}}]),(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var a=document.documentElement,b=window,c=function(c,d){var e="x"===d?"Width":"Height",f="scroll"+e,g="client"+e,h=document.body;return c===b||c===a||c===h?Math.max(a[f],h[f])-(b["inner"+e]||Math.max(a[g],h[g])):c[f]-c["offset"+e]},d=window._gsDefine.plugin({propName:"scrollTo",API:2,version:"1.7.3",init:function(a,d,e){return this._wdw=a===b,this._target=a,this._tween=e,"object"!=typeof d&&(d={y:d}),this._autoKill=d.autoKill!==!1,this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=d.x?(this._addTween(this,"x",this.x,"max"===d.x?c(a,"x"):d.x,"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=d.y?(this._addTween(this,"y",this.y,"max"===d.y?c(a,"y"):d.y,"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(a){this._super.setRatio.call(this,a);var d=this._wdw||!this.skipX?this.getX():this.xPrev,e=this._wdw||!this.skipY?this.getY():this.yPrev,f=e-this.yPrev,g=d-this.xPrev;this._autoKill&&(!this.skipX&&(g>7||-7>g)&&d<c(this._target,"x")&&(this.skipX=!0),!this.skipY&&(f>7||-7>f)&&e<c(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&this._tween.kill()),this._wdw?b.scrollTo(this.skipX?d:this.x,this.skipY?e:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),e=d.prototype;d.max=c,e.getX=function(){return this._wdw?null!=b.pageXOffset?b.pageXOffset:null!=a.scrollLeft?a.scrollLeft:document.body.scrollLeft:this._target.scrollLeft},e.getY=function(){return this._wdw?null!=b.pageYOffset?b.pageYOffset:null!=a.scrollTop?a.scrollTop:document.body.scrollTop:this._target.scrollTop},e._kill=function(a){return a.scrollTo_x&&(this.skipX=!0),a.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,a)}}),window._gsDefine&&window._gsQueue.pop()(),(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=[].slice,e=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=e.prototype.render},f=1e-10,g=c._internals,h=g.isSelector,i=g.isArray,j=e.prototype=c.to({},.1,{}),k=[];e.version="1.12.1",j.constructor=e,j.kill()._gc=!1,e.killTweensOf=e.killDelayedCallsTo=c.killTweensOf,e.getTweensOf=c.getTweensOf,e.lagSmoothing=c.lagSmoothing,e.ticker=c.ticker,e.render=c.render,j.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),c.prototype.invalidate.call(this)},j.updateTo=function(a,b){var d,e=this.ratio;b&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(d in a)this.vars[d]=a[d];if(this._initted)if(b)this._initted=!1;else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&c._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var f=this._time;this.render(0,!0,!1),this._initted=!1,this.render(f,!0,!1)}else if(this._time>0){this._initted=!1,this._init();for(var g,h=1/(1-e),i=this._firstPT;i;)g=i.s+i.c,i.c*=h,i.s=g-i.c,i=i._next}return this},j.render=function(a,b,c){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var d,e,h,i,j,l,m,n,o=this._dirty?this.totalDuration():this._totalDuration,p=this._time,q=this._totalTime,r=this._cycle,s=this._duration,t=this._rawPrevTime;if(a>=o?(this._totalTime=o,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=s,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(d=!0,e="onComplete"),0===s&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0===a||0>t||t===f)&&t!==a&&(c=!0,t>f&&(e="onReverseComplete")),this._rawPrevTime=n=!b||a||t===a?a:f)):1e-7>a?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==q||0===s&&t>0&&t!==f)&&(e="onReverseComplete",d=this._reversed),0>a?(this._active=!1,0===s&&(this._initted||!this.vars.lazy||c)&&(t>=0&&(c=!0),this._rawPrevTime=n=!b||a||t===a?a:f)):this._initted||(c=!0)):(this._totalTime=this._time=a,0!==this._repeat&&(i=s+this._repeatDelay,this._cycle=this._totalTime/i>>0,0!==this._cycle&&this._cycle===this._totalTime/i&&this._cycle--,this._time=this._totalTime-this._cycle*i,this._yoyo&&0!==(1&this._cycle)&&(this._time=s-this._time),this._time>s?this._time=s:this._time<0&&(this._time=0)),this._easeType?(j=this._time/s,l=this._easeType,m=this._easePower,(1===l||3===l&&j>=.5)&&(j=1-j),3===l&&(j*=2),1===m?j*=j:2===m?j*=j*j:3===m?j*=j*j*j:4===m&&(j*=j*j*j*j),1===l?this.ratio=1-j:2===l?this.ratio=j:this._time/s<.5?this.ratio=j/2:this.ratio=1-j/2):this.ratio=this._ease.getRatio(this._time/s)),p===this._time&&!c&&r===this._cycle)return void(q!==this._totalTime&&this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||k)));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=q,this._rawPrevTime=t,this._cycle=r,g.lazyTweens.push(this),void(this._lazy=a);this._time&&!d?this.ratio=this._ease.getRatio(this._time/s):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&a>=0&&(this._active=!0),0===q&&(2===this._initted&&a>0&&this._init(),this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===s)&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||k))),h=this._firstPT;h;)h.f?h.t[h.p](h.c*this.ratio+h.s):h.t[h.p]=h.c*this.ratio+h.s,h=h._next;this._onUpdate&&(0>a&&this._startAt&&this._startTime&&this._startAt.render(a,b,c),b||(this._totalTime!==q||d)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||k)),this._cycle!==r&&(b||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||k)),e&&(this._gc||(0>a&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this.vars[e].apply(this.vars[e+"Scope"]||this,this.vars[e+"Params"]||k),0===s&&this._rawPrevTime===f&&n!==f&&(this._rawPrevTime=0)))},e.to=function(a,b,c){return new e(a,b,c)},e.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new e(a,b,c)},e.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new e(a,b,d)},e.staggerTo=e.allTo=function(a,b,f,g,j,l,m){g=g||0;var n,o,p,q,r=f.delay||0,s=[],t=function(){f.onComplete&&f.onComplete.apply(f.onCompleteScope||this,arguments),j.apply(m||this,l||k)};for(i(a)||("string"==typeof a&&(a=c.selector(a)||a),h(a)&&(a=d.call(a,0))),n=a.length,p=0;n>p;p++){o={};for(q in f)o[q]=f[q];o.delay=r,p===n-1&&j&&(o.onComplete=t),s[p]=new e(a[p],b,o),r+=g}return s},e.staggerFrom=e.allFrom=function(a,b,c,d,f,g,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,e.staggerTo(a,b,c,d,f,g,h)},e.staggerFromTo=e.allFromTo=function(a,b,c,d,f,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,e.staggerTo(a,b,d,f,g,h,i)},e.delayedCall=function(a,b,c,d,f){return new e(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d,immediateRender:!1,useFrames:f,overwrite:0})},e.set=function(a,b){return new e(a,0,b)},e.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var l=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(l(f,b)),e=d.length),f=f._next;return d},m=e.getAllTweens=function(b){return l(a._rootTimeline,b).concat(l(a._rootFramesTimeline,b))};e.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=m(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},e.killChildTweensOf=function(a,b){if(null!=a){var f,j,k,l,m,n=g.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),h(a)&&(a=d.call(a,0)),i(a))for(l=a.length;--l>-1;)e.killChildTweensOf(a[l],b);else{f=[];for(k in n)for(j=n[k].target.parentNode;j;)j===a&&(f=f.concat(n[k].tweens)),j=j.parentNode;for(m=f.length,l=0;m>l;l++)b&&f[l].totalTime(f[l].totalDuration()),f[l]._enabled(!1,!1)}}};var n=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=m(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return e.pauseAll=function(a,b,c){n(!0,a,b,c)},e.resumeAll=function(a,b,c){n(!1,a,b,c)},e.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||f,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},j.progress=function(a){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},j.totalProgress=function(a){return arguments.length?this.totalTime(this.totalDuration()*a,!1):this._totalTime/this.totalDuration()},j.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},j.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},j.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},j.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},j.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},j.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},e},!0),window._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var c,d,e=this.vars;for(d in e)c=e[d],g(c)&&-1!==c.join("").indexOf("{self}")&&(e[d]=this._swapSelfInParams(c));g(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals.isSelector,g=c._internals.isArray,h=[],i=window._gsDefine.globals,j=function(a){var b,c={};for(b in a)c[b]=a[b];return c},k=function(a,b,c,d){a._timeline.pause(a._startTime),b&&b.apply(d||a._timeline,c||h)},l=h.slice,m=d.prototype=new b;return d.version="1.12.1",m.constructor=d,m.kill()._gc=!1,m.to=function(a,b,d,e){var f=d.repeat&&i.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},m.from=function(a,b,d,e){return this.add((d.repeat&&i.TweenMax||c).from(a,b,d),e)},m.fromTo=function(a,b,d,e,f){var g=e.repeat&&i.TweenMax||c;return b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},m.staggerTo=function(a,b,e,g,h,i,k,m){var n,o=new d({onComplete:i,onCompleteParams:k,onCompleteScope:m,smoothChildTiming:this.smoothChildTiming});for("string"==typeof a&&(a=c.selector(a)||a),f(a)&&(a=l.call(a,0)),g=g||0,n=0;n<a.length;n++)e.startAt&&(e.startAt=j(e.startAt)),o.to(a[n],b,j(e),n*g);return this.add(o,h)},m.staggerFrom=function(a,b,c,d,e,f,g,h){return c.immediateRender=0!=c.immediateRender,c.runBackwards=!0,this.staggerTo(a,b,c,d,e,f,g,h)},m.staggerFromTo=function(a,b,c,d,e,f,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,this.staggerTo(a,b,d,e,f,g,h,i)},m.call=function(a,b,d,e){return this.add(c.delayedCall(0,a,b,d),e)},m.set=function(a,b,d){return d=this._parseTimeOrLabel(d,0,!0),null==b.immediateRender&&(b.immediateRender=d===this._time&&!this._paused),this.add(new c(a,0,b),d)},d.exportRoot=function(a,b){a=a||{},null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var e,f,g=new d(a),h=g._timeline;for(null==b&&(b=!0),h._remove(g,!0),g._startTime=0,g._rawPrevTime=g._time=g._totalTime=h._time,e=h._first;e;)f=e._next,b&&e instanceof c&&e.target===e.vars.onComplete||g.add(e,e._startTime-e._delay),e=f;return h.add(g,0),g},m.add=function(e,f,h,i){var j,k,l,m,n,o;if("number"!=typeof f&&(f=this._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&g(e)){for(h=h||"normal",i=i||0,j=f,k=e.length,l=0;k>l;l++)g(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===h?j=m._startTime+m.totalDuration()/m._timeScale:"start"===h&&(m._startTime-=m.delay())),j+=i;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(this,e,f),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(n=this,o=n.rawTime()>e._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},m.remove=function(b){if(b instanceof a)return this._remove(b,!1);if(b instanceof Array||b&&b.push&&g(b)){for(var c=b.length;--c>-1;)this.remove(b[c]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},m._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>d._startTime+d._totalDuration/d._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},m.insert=m.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},m.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},m.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},m.addPause=function(a,b,c,d){return this.call(k,["{self}",b,c,d],this,a)},m.removeLabel=function(a){return delete this._labels[a],this},m.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},m._parseTimeOrLabel=function(b,c,d,e){var f;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&g(e)))for(f=e.length;--f>-1;)e[f]instanceof a&&e[f].timeline===this&&this.remove(e[f]);if("string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-this.duration():0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=this.duration());else{if(f=b.indexOf("="),-1===f)return null==this._labels[b]?d?this._labels[b]=this.duration()+c:c:this._labels[b]+c;c=parseInt(b.charAt(f-1)+"1",10)*Number(b.substr(f+1)),b=f>1?this._parseTimeOrLabel(b.substr(0,f-1),0,d):this.duration()}return Number(b)+c},m.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(a,b){return this.play(a,b)},m.gotoAndStop=function(a,b){return this.pause(a,b)},m.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,i,j,k=this._dirty?this.totalDuration():this._totalDuration,l=this._time,m=this._startTime,n=this._timeScale,o=this._paused;if(a>=k?(this._totalTime=this._time=k,this._reversed||this._hasPausedChild()||(f=!0,i="onComplete",0===this._duration&&(0===a||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==a&&this._first&&(j=!0,this._rawPrevTime>e&&(i="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=k+1e-4):1e-7>a?(this._totalTime=this._time=0,(0!==l||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>a&&this._rawPrevTime>=0))&&(i="onReverseComplete",f=this._reversed),0>a?(this._active=!1,0===this._duration&&this._rawPrevTime>=0&&this._first&&(j=!0),this._rawPrevTime=a):(this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=0,this._initted||(j=!0))):this._totalTime=this._time=this._rawPrevTime=a,this._time!==l&&this._first||c||j){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==l&&a>0&&(this._active=!0),0===l&&this.vars.onStart&&0!==this._time&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||h)),this._time>=l)for(d=this._first;d&&(g=d._next,!this._paused||o);)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,!this._paused||o);)(d._active||d._startTime<=l&&!d._paused&&!d._gc)&&(d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),
-d=g;this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||h)),i&&(this._gc||(m===this._startTime||n!==this._timeScale)&&(0===this._time||k>=this.totalDuration())&&(f&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[i]&&this.vars[i].apply(this.vars[i+"Scope"]||this,this.vars[i+"Params"]||h)))}},m._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},m.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime<e||(g instanceof c?b!==!1&&(f[h++]=g):(d!==!1&&(f[h++]=g),a!==!1&&(f=f.concat(g.getChildren(!0,b,d)),h=f.length))),g=g._next;return f},m.getTweensOf=function(a,b){var d,e,f=this._gc,g=[],h=0;for(f&&this._enabled(!0,!0),d=c.getTweensOf(a),e=d.length;--e>-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},m._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},m.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},m._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},m.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var a=this._first;a;)a.invalidate(),a=a._next;return this},m._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},m.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalDuration(),e._startTime>f&&this._sortChildren&&!e._paused?this.add(e,e._startTime-e._delay):f=e._startTime,e._startTime<0&&!e._paused&&(d-=e._startTime,this._timeline.smoothChildTiming&&(this._startTime+=e._startTime/this._timeScale),this.shiftChildren(-e._startTime,!1,-9999999999),f=0),c=e._startTime+e._totalDuration/e._timeScale,c>d&&(d=c),e=b;this._duration=this._totalDuration=d,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==a&&this.timeScale(this._totalDuration/a),this},m.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},d},!0),window._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=[],g=new c(null,null,1,0),h=d.prototype=new a;return h.constructor=d,h.kill()._gc=!1,d.version="1.12.1",h.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},h.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},h.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},h.tweenTo=function(a,c){c=c||{};var d,e,h,i={ease:g,overwrite:c.delay?2:1,useFrames:this.usesFrames(),immediateRender:!1};for(e in c)i[e]=c[e];return i.time=this._parseTimeOrLabel(a),d=Math.abs(Number(i.time)-this._time)/this._timeScale||.001,h=new b(this,d,i),i.onStart=function(){h.target.paused(!0),h.vars.time!==h.target.time()&&d===h.duration()&&h.duration(Math.abs(h.vars.time-h.target.time())/h.target._timeScale),c.onStart&&c.onStart.apply(c.onStartScope||h,c.onStartParams||f)},h},h.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],onCompleteScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},h.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,g,h,i,j,k,l=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,n=this._time,o=this._totalTime,p=this._startTime,q=this._timeScale,r=this._rawPrevTime,s=this._paused,t=this._cycle;if(a>=l?(this._locked||(this._totalTime=l,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(g=!0,i="onComplete",0===this._duration&&(0===a||0>r||r===e)&&r!==a&&this._first&&(j=!0,r>e&&(i="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=m,a=m+1e-4)):1e-7>a?(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==n||0===m&&r!==e&&(r>0||0>a&&r>=0)&&!this._locked)&&(i="onReverseComplete",g=this._reversed),0>a?(this._active=!1,0===m&&r>=0&&this._first&&(j=!0),this._rawPrevTime=a):(this._rawPrevTime=m||!b||a||this._rawPrevTime===a?a:e,a=0,this._initted||(j=!0))):(0===m&&0>r&&(j=!0),this._time=this._rawPrevTime=a,this._locked||(this._totalTime=a,0!==this._repeat&&(k=m+this._repeatDelay,this._cycle=this._totalTime/k>>0,0!==this._cycle&&this._cycle===this._totalTime/k&&this._cycle--,this._time=this._totalTime-this._cycle*k,this._yoyo&&0!==(1&this._cycle)&&(this._time=m-this._time),this._time>m?(this._time=m,a=m+1e-4):this._time<0?this._time=a=0:a=this._time))),this._cycle!==t&&!this._locked){var u=this._yoyo&&0!==(1&t),v=u===(this._yoyo&&0!==(1&this._cycle)),w=this._totalTime,x=this._cycle,y=this._rawPrevTime,z=this._time;if(this._totalTime=t*m,this._cycle<t?u=!u:this._totalTime+=m,this._time=n,this._rawPrevTime=0===m?r-1e-4:r,this._cycle=t,this._locked=!0,n=u?0:m,this.render(n,b,0===m),b||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||f),v&&(n=u?m+1e-4:-1e-4,this.render(n,!0,!1)),this._locked=!1,this._paused&&!s)return;this._time=z,this._totalTime=w,this._cycle=x,this._rawPrevTime=y}if(!(this._time!==n&&this._first||c||j))return void(o!==this._totalTime&&this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||f)));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==o&&a>0&&(this._active=!0),0===o&&this.vars.onStart&&0!==this._totalTime&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||f)),this._time>=n)for(d=this._first;d&&(h=d._next,!this._paused||s);)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=h;else for(d=this._last;d&&(h=d._prev,!this._paused||s);)(d._active||d._startTime<=n&&!d._paused&&!d._gc)&&(d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=h;this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||f)),i&&(this._locked||this._gc||(p===this._startTime||q!==this._timeScale)&&(0===this._time||l>=this.totalDuration())&&(g&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[i]&&this.vars[i].apply(this.vars[i+"Scope"]||this,this.vars[i+"Params"]||f)))},h.getActive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getChildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},h.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},h.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].time<a)return b[c].name;return null},h.getLabelsArray=function(){var a,b=[],c=0;for(a in this._labels)b[c++]={time:this._labels[a],name:a};return b.sort(function(a,b){return a.time-b.time}),b},h.progress=function(a){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},h.totalProgress=function(a){return arguments.length?this.totalTime(this.totalDuration()*a,!1):this._totalTime/this.totalDuration()},h.totalDuration=function(b){return arguments.length?-1===this._repeat?this:this.duration((b-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(a.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},h.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},h.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},h.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},h.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},h.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+1e-8)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=function(a,b,c,d){this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},g=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",h=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},i=function(a,e,f,g,i){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,i?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=h(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=h(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},j=function(a,d,e,g){var h,i,j,k,l,m,n=[];if(g)for(a=[g].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=g[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new f(a[0][d],0,0,a[-1>h?0:1][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new f(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new f(a[i][d],0,0,a[i+1][d]),n},k=function(a,f,h,k,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":g,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=j(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!k){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q],d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n])}for(n=w.length,q=h?4:1;--n>-1;)o=w[n],p=v[o],i(p,f,h,k,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},l=function(a,b,c){b=b||"soft";var d,e,g,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length<q+1)throw"invalid Bezier data";for(m in a[0])s.push(m);for(j=s.length;--j>-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],g=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new f(d,e,g,h):new f(d,(2*e+d)/3,(2*e+g)/3,g);i.length=n}return p},m=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},n=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],n=[];for(c in a)m(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,n[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=n,h[f]=j,i=0,n=[]);return{length:j,lengths:h,segments:l}},o=window._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.2",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._round={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},m=i[0],o=b.autoRotate||c.vars.orientToBezier;this._autoRotate=o?o instanceof Array?o:[["x","y","rotation",o===!0?0:Number(o)||0]]:null;for(d in m)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?k(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):l(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=n(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(o=this._autoRotate)for(this._initialRotations=[],o[0]instanceof Array||(this._autoRotate=o=[o]),f=o.length;--f>-1;){for(g=0;3>g;g++)d=o[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=o[f][2],this._initialRotations[f]=this._func[d]?this._func[d].call(this._target):this._target[d]}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segCount,n=this._func,o=this._target,p=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b<this._l1&&e>0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&b<this._l1?this._l1=0:e++,this._l2=k[e],this._li=e,this._curSeg=l=this._segments[e],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(c=e,b-=this._l1,e=this._si,b>this._s2&&e<l.length-1){for(j=l.length-1;j>e&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b<this._s1&&e>0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&b<this._s1?this._s1=0:e++,this._s2=l[e],this._si=e}h=(e+(b-this._s1)/(this._s2-this._s1))*this._prec}else c=0>b?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._round[f]&&(i=Math.round(i)),n[f]?o[f](i):o[f]=i;if(this._autoRotate){var q,r,s,t,u,v,w,x=this._autoRotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?Math.atan2(u-s,t-r)*w+v:this._initialRotations[e],n[f]?o[f](i):o[f]=i)}}}),p=o.prototype;o.bezierThrough=k,o.cubicToQuadratic=h,o._autoCSS=!0,o.quadraticToCubic=function(a,b,c){return new f(a,(2*b+a)/3,(2*b+c)/3,c)},o._cssRegister=function(){var a=window._gsDefine.globals.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new o;var j,k,l,m=b.values,n=m.length-1,p=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),p[j]=l.end;for(k in b)q[k]=b[k];return q.values=p,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform),i._onInitTween(l.proxy,q,g._tween),h}})}},p._roundProps=function(a,b){for(var c=this._overwriteProps,d=c.length;--d>-1;)(a[c[d]]||a.bezier||a.bezierThrough)&&(this._round[c[d]]=b)},p._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);return this._super._kill.call(this,a)}}(),window._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h={},i=g.prototype=new a("css");i.constructor=g,g.version="1.12.1",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",i="px",g.suffixMap={top:i,right:i,bottom:i,left:i,width:i,height:i,fontSize:i,padding:i,margin:i,perspective:i,lineHeight:""};var j,k,l,m,n,o,p=/(?:\d|\-\d|\.\d|\-\.\d)+/g,q=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,r=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,s=/[^\d\-\.]/g,t=/(?:\d|\-|\+|=|#|\.)*/g,u=/opacity *= *([^)]*)/i,v=/opacity:([^;]*)/i,w=/alpha\(opacity *=.+?\)/i,x=/^(rgb|hsl)/,y=/([A-Z])/g,z=/-([a-z])/gi,A=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,B=function(a,b){return b.toUpperCase()},C=/(?:Left|Right|Width)/i,D=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,E=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,F=/,(?=[^\)]*(?:\(|$))/gi,G=Math.PI/180,H=180/Math.PI,I={},J=document,K=J.createElement("div"),L=J.createElement("img"),M=g._internals={_specialProps:h},N=navigator.userAgent,O=function(){var a,b=N.indexOf("Android"),c=J.createElement("div");return l=-1!==N.indexOf("Safari")&&-1===N.indexOf("Chrome")&&(-1===b||Number(N.substr(b+8,1))>3),n=l&&Number(N.substr(N.indexOf("Version/")+8,1))<6,m=-1!==N.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(N)&&(o=parseFloat(RegExp.$1)),c.innerHTML="<a style='top:1px;opacity:.55;'>a</a>",a=c.getElementsByTagName("a")[0],a?/^0.55/.test(a.style.opacity):!1}(),P=function(a){return u.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Q=function(a){window.console},R="",S="",T=function(a,b){b=b||K;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(S=3===d?"ms":c[d],R="-"+S.toLowerCase()+"-",S+a):null},U=J.defaultView?J.defaultView.getComputedStyle:function(){},V=g.getStyle=function(a,b,c,d,e){var f;return O||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||U(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(y,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):P(a)},W=M.convertToPixels=function(a,c,d,e,f){if("px"===e||!e)return d;if("auto"===e||!d)return 0;var h,i,j,k=C.test(c),l=a,m=K.style,n=0>d;if(n&&(d=-d),"%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+V(a,"position")+";line-height:0;","%"!==e&&l.appendChild)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||J.body,i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(K),h=parseFloat(K[k?"offsetWidth":"offsetHeight"]),l.removeChild(K),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=W(a,c,d,e,!0))}return n?-h:h},X=M.calculateOffset=function(a,b,c){if("absolute"!==V(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=V(a,"margin"+d,c);return a["offset"+d]-(W(a,b,parseFloat(e),e.replace(t,""))||0)},Y=function(a,b){var c,d,e={};if(b=b||U(a,null))if(c=b.length)for(;--c>-1;)e[b[c].replace(z,B)]=b.getPropertyValue(b[c]);else for(c in b)e[c]=b[c];else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===e[c]&&(e[c.replace(z,B)]=b[c]);return O||(e.opacity=P(a)),d=ya(a,b,!1),e.rotation=d.rotation,e.skewX=d.skewX,e.scaleX=d.scaleX,e.scaleY=d.scaleY,e.x=d.x,e.y=d.y,wa&&(e.z=d.z,e.rotationX=d.rotationX,e.rotationY=d.rotationY,e.scaleZ=d.scaleZ),e.filters&&delete e.filters,e},Z=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(s,"")?f:0:X(a,g),void 0!==j[g]&&(h=new la(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},$={width:["Left","Right"],height:["Top","Bottom"]},_=["marginLeft","marginRight","marginTop","marginBottom"],aa=function(a,b,c){var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=$[b],f=e.length;for(c=c||U(a,null);--f>-1;)d-=parseFloat(V(a,"padding"+e[f],c,!0))||0,d-=parseFloat(V(a,"border"+e[f]+"Width",c,!0))||0;return d},ba=function(a,b){(null==a||""===a||"auto"===a||"auto auto"===a)&&(a="0 0");var c=a.split(" "),d=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":c[0],e=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":c[1];return null==e?e="0":"center"===e&&(e="50%"),("center"===d||isNaN(parseFloat(d))&&-1===(d+"").indexOf("="))&&(d="50%"),b&&(b.oxp=-1!==d.indexOf("%"),b.oyp=-1!==e.indexOf("%"),b.oxr="="===d.charAt(1),b.oyr="="===e.charAt(1),b.ox=parseFloat(d.replace(s,"")),b.oy=parseFloat(e.replace(s,""))),d+" "+e+(c.length>2?" "+c[2]:"")},ca=function(a,b){return"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)},da=function(a,b){return null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*Number(a.substr(2))+b:parseFloat(a)},ea=function(a,b,c,d){var e,f,g,h,i=1e-6;return null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),g=Number(f[0].replace(s,""))*(-1===a.indexOf("rad")?1:H)-("="===a.charAt(1)?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),i>h&&h>-i&&(h=0),h},fa={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ga=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},ha=function(a){var b,c,d,e,f,g;return a&&""!==a?"number"==typeof a?[a>>16,a>>8&255,255&a]:(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),fa[a]?fa[a]:"#"===a.charAt(0)?(4===a.length&&(b=a.charAt(1),c=a.charAt(2),d=a.charAt(3),a="#"+b+b+c+c+d+d),a=parseInt(a.substr(1),16),[a>>16,a>>8&255,255&a]):"hsl"===a.substr(0,3)?(a=a.match(p),e=Number(a[0])%360/360,f=Number(a[1])/100,g=Number(a[2])/100,c=.5>=g?g*(f+1):g+f-g*f,b=2*g-c,a.length>3&&(a[3]=Number(a[3])),a[0]=ga(e+1/3,b,c),a[1]=ga(e,b,c),a[2]=ga(e-1/3,b,c),a):(a=a.match(p)||fa.transparent,a[0]=Number(a[0]),a[1]=Number(a[1]),a[2]=Number(a[2]),a.length>3&&(a[3]=Number(a[3])),a)):fa.black},ia="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(i in fa)ia+="|"+i+"\\b";ia=new RegExp(ia+")","gi");var ja=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(ia)||[""])[0]:"",g=a.split(f).join("").match(r)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(p,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&F.test(a)){for(o=a.replace(F,"|").split("|"),n=0;n<o.length;n++)o[n]=e(o[n]);return o.join(",")}if(b=(a.match(ia)||[f])[0],m=a.split(b).join("").match(r)||[],n=m.length,k>n--)for(;++n<k;)m[n]=c?m[(n-1)/2|0]:g[n];return h+m.join(j)+j+b+i+(-1!==a.indexOf("inset")?" inset":"")}:function(a){var b,f,m;if("number"==typeof a)a+=l;else if(d&&F.test(a)){for(f=a.replace(F,"|").split("|"),m=0;m<f.length;m++)f[m]=e(f[m]);return f.join(",")}if(b=a.match(r)||[],m=b.length,k>m--)for(;++m<k;)b[m]=c?b[(m-1)/2|0]:g[m];return h+b.join(j)+i}:function(a){return a}},ka=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var i,j=(c+"").split(" ");for(h={},i=0;4>i;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},la=(M._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f=this.data,g=f.proxy,h=f.firstMPT,i=1e-6;h;)b=g[h.v],h.r?b=Math.round(b):i>b&&b>-i&&(b=0),h.t[h.p]=b,h=h._next;if(f.autoRotate&&(f.autoRotate.rotation=g.rotation),1===a)for(h=f.firstMPT;h;){if(c=h.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d<c.l;d++)e+=c["xn"+d]+c["xs"+(d+1)];c.e=e}}else c.e=c.s+c.xs0;h=h._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),ma=(M._parseToProxy=function(a,b,c,d,e,f){var g,h,i,j,k,l=d,m={},n={},o=c._transform,p=I;for(c._transform=null,I=b,d=k=c.parse(a,b,d,e),I=p,f&&(c._transform=o,l&&(l._prev=null,l._prev&&(l._prev._next=null)));d&&d!==l;){if(d.type<=1&&(h=d.p,n[h]=d.s+d.c,m[h]=d.s,f||(j=new la(d,"s",h,j,d.r),d.c=0),1===d.type))for(g=d.l;--g>0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new la(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},M.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ma||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),na=g.parseComplex=function(a,b,c,d,e,f,g,h,i,k){c=c||f||"",g=new ma(a,b,0,0,g,k?2:1,null,!1,h,c,d),d+="";var l,m,n,o,r,s,t,u,v,w,y,z,A=c.split(", ").join(",").split(" "),B=d.split(", ").join(",").split(" "),C=A.length,D=j!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(A=A.join(" ").replace(F,", ").split(" "),B=B.join(" ").replace(F,", ").split(" "),C=A.length),C!==B.length&&(A=(f||"").split(" "),C=A.length),g.plugin=i,g.setRatio=k,l=0;C>l;l++)if(o=A[l],r=B[l],u=parseFloat(o),u||0===u)g.appendXtra("",u,ca(r,u),r.replace(q,""),D&&-1!==r.indexOf("px"),!0);else if(e&&("#"===o.charAt(0)||fa[o]||x.test(o)))z=","===r.charAt(r.length-1)?"),":")",o=ha(o),r=ha(r),v=o.length+r.length>6,v&&!O&&0===r[3]?(g["xs"+g.l]+=g.l?" transparent":"transparent",g.e=g.e.split(B[l]).join("transparent")):(O||(v=!1),g.appendXtra(v?"rgba(":"rgb(",o[0],r[0]-o[0],",",!0,!0).appendXtra("",o[1],r[1]-o[1],",",!0).appendXtra("",o[2],r[2]-o[2],v?",":z,!0),v&&(o=o.length<4?1:o[3],g.appendXtra("",o,(r.length<4?1:r[3])-o,z,!1)));else if(s=o.match(p)){if(t=r.match(q),!t||t.length!==s.length)return g;for(n=0,m=0;m<s.length;m++)y=s[m],w=o.indexOf(y,n),g.appendXtra(o.substr(n,w-n),Number(y),ca(t[m],y),"",D&&"px"===o.substr(w+y.length,2),0===m),n=w+y.length;g["xs"+g.l]+=o.substr(n)}else g["xs"+g.l]+=g.l?" "+o:o;if(-1!==d.indexOf("=")&&g.data){for(z=g.xs0+g.data.s,l=1;l<g.l;l++)z+=g["xs"+l]+g.data["xn"+l];g.e=z+g["xs"+l]}return g.l||(g.type=-1,g.xs0=g.e),g.xfirst||g},oa=9;for(i=ma.prototype,i.l=i.pr=0;--oa>0;)i["xn"+oa]=0,i["xs"+oa]="";i.xs0="",i._next=i._prev=i.xfirst=i.data=i.plugin=i.setRatio=i.rxp=null,i.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&h?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ma(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var pa=function(a,b){b=b||{},this.p=b.prefix?T(a)||a:a,h[a]=h[this.p]=this,this.format=b.formatter||ja(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},qa=M._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;d<f.length;d++)b.prefix=0===d&&b.prefix,b.defaultValue=c[d]||g,e=new pa(f[d],b)},ra=function(a){if(!h[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";qa(a,{parser:function(a,c,d,e,f,g,i){var j=(window.GreenSockGlobals||window).com.greensock.plugins[b];return j?(j._cssRegister(),h[d].parse(a,c,d,e,f,g,i)):(Q("Error: "+b+" js file not loaded."),f)}})}};i=pa.prototype,i.parseComplex=function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this.keyword;if(this.multi&&(F.test(c)||F.test(b)?(h=b.replace(F,"|").split("|"),i=c.replace(F,"|").split("|")):m&&(h=[b],i=[c])),i){for(j=i.length>h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(c=-1===l?i:h,c[g]+=" "+m));b=h.join(", "),c=i.join(", ")}return na(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},i.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(V(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){qa(a,{parser:function(a,d,e,f,g,h,i){var j=new ma(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})};var sa="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective".split(","),ta=T("transform"),ua=R+"transform",va=T("transformOrigin"),wa=null!==T("perspective"),xa=M.Transform=function(){this.skewY=0},ya=M.getTransform=function(a,b,c,d){if(a._gsTransform&&c&&!d)return a._gsTransform;var e,f,h,i,j,k,l,m,n,o,p,q,r,s=c?a._gsTransform||new xa:new xa,t=s.scaleX<0,u=2e-5,v=1e5,w=179.99,x=w*G,y=wa?parseFloat(V(a,va,b,!1,"0 0 0").split(" ")[2])||s.zOrigin||0:0;for(ta?e=V(a,ua,b,!0):a.currentStyle&&(e=a.currentStyle.filter.match(D),e=e&&4===e.length?[e[0].substr(4),Number(e[2].substr(4)),Number(e[1].substr(4)),e[3].substr(4),s.x||0,s.y||0].join(","):""),f=(e||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],h=f.length;--h>-1;)i=Number(f[h]),f[h]=(j=i-(i|=0))?(j*v+(0>j?-.5:.5)|0)/v+i:i;if(16===f.length){var z=f[8],A=f[9],B=f[10],C=f[12],E=f[13],F=f[14];if(s.zOrigin&&(F=-s.zOrigin,C=z*F-f[12],E=A*F-f[13],F=B*F+s.zOrigin-f[14]),!c||d||null==s.rotationX){var I,J,K,L,M,N,O,P=f[0],Q=f[1],R=f[2],S=f[3],T=f[4],U=f[5],W=f[6],X=f[7],Y=f[11],Z=Math.atan2(W,B),$=-x>Z||Z>x;s.rotationX=Z*H,Z&&(L=Math.cos(-Z),M=Math.sin(-Z),I=T*L+z*M,J=U*L+A*M,K=W*L+B*M,z=T*-M+z*L,A=U*-M+A*L,B=W*-M+B*L,Y=X*-M+Y*L,T=I,U=J,W=K),Z=Math.atan2(z,P),s.rotationY=Z*H,Z&&(N=-x>Z||Z>x,L=Math.cos(-Z),M=Math.sin(-Z),I=P*L-z*M,J=Q*L-A*M,K=R*L-B*M,A=Q*M+A*L,B=R*M+B*L,Y=S*M+Y*L,P=I,Q=J,R=K),Z=Math.atan2(Q,U),s.rotation=Z*H,Z&&(O=-x>Z||Z>x,L=Math.cos(-Z),M=Math.sin(-Z),P=P*L+T*M,J=Q*L+U*M,U=Q*-M+U*L,W=R*-M+W*L,Q=J),O&&$?s.rotation=s.rotationX=0:O&&N?s.rotation=s.rotationY=0:N&&$&&(s.rotationY=s.rotationX=0),s.scaleX=(Math.sqrt(P*P+Q*Q)*v+.5|0)/v,s.scaleY=(Math.sqrt(U*U+A*A)*v+.5|0)/v,s.scaleZ=(Math.sqrt(W*W+B*B)*v+.5|0)/v,
-s.skewX=0,s.perspective=Y?1/(0>Y?-Y:Y):0,s.x=C,s.y=E,s.z=F}}else if((!wa||d||!f.length||s.x!==f[4]||s.y!==f[5]||!s.rotationX&&!s.rotationY)&&(void 0===s.x||"none"!==V(a,"display",b))){var _=f.length>=6,aa=_?f[0]:1,ba=f[1]||0,ca=f[2]||0,da=_?f[3]:1;s.x=f[4]||0,s.y=f[5]||0,k=Math.sqrt(aa*aa+ba*ba),l=Math.sqrt(da*da+ca*ca),m=aa||ba?Math.atan2(ba,aa)*H:s.rotation||0,n=ca||da?Math.atan2(ca,da)*H+m:s.skewX||0,o=k-Math.abs(s.scaleX||0),p=l-Math.abs(s.scaleY||0),Math.abs(n)>90&&Math.abs(n)<270&&(t?(k*=-1,n+=0>=m?180:-180,m+=0>=m?180:-180):(l*=-1,n+=0>=n?180:-180)),q=(m-s.rotation)%180,r=(n-s.skewX)%180,(void 0===s.skewX||o>u||-u>o||p>u||-u>p||q>-w&&w>q&&q*v|!1||r>-w&&w>r&&r*v|!1)&&(s.scaleX=k,s.scaleY=l,s.rotation=m,s.skewX=n),wa&&(s.rotationX=s.rotationY=s.z=0,s.perspective=parseFloat(g.defaultTransformPerspective)||0,s.scaleZ=1)}s.zOrigin=y;for(h in s)s[h]<u&&s[h]>-u&&(s[h]=0);return c&&(a._gsTransform=s),s},za=function(a){var b,c,d=this.data,e=-d.rotation*G,f=e+d.skewX*G,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,p,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,w=d.x,x=d.y;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,p=(d.oyp?r*d.oy*.01:d.oy)-r/2,w+=n-(n*h+p*i),x+=p-(n*j+p*k)),s?(n=q/2,p=r/2,v+=", Dx="+(n-(n*h+p*i)+w)+", Dy="+(p-(n*j+p*k)+x)+")"):v+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(E,v):l.filter=v+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===v.indexOf("Dx=0, Dy=0")||u.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>o?1:-1;for(n=d.ieOffsetX||0,p=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+w),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+x),oa=0;4>oa;oa++)z=_[oa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):W(this.t,z,parseFloat(y),y.replace(t,""))||0,A=c!==d[z]?2>oa?-d.ieOffsetX:-d.ieOffsetY:2>oa?n-d.ieOffsetX:p-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===oa||2===oa?1:B)))+"px"}}},Aa=M.set3DTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,n,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation*G,C=z.scaleX,D=z.scaleY,E=z.scaleZ,F=z.perspective;if((1===a||0===a)&&"auto"===z.force3D&&!(z.rotationY||z.rotationX||1!==E||F||z.z))return void Ba.call(this,a);if(m){var H=1e-4;H>C&&C>-H&&(C=E=2e-5),H>D&&D>-H&&(D=E=2e-5),!F||z.z||z.rotationX||z.rotationY||(F=0)}if(B||z.skewX)t=Math.cos(B),u=Math.sin(B),b=t,f=u,z.skewX&&(B-=z.skewX*G,t=Math.cos(B),u=Math.sin(B),"simple"===z.skewType&&(v=Math.tan(z.skewX*G),v=Math.sqrt(1+v*v),t*=v,u*=v)),c=-u,g=t;else{if(!(z.rotationY||z.rotationX||1!==E||F))return void(A[ta]="translate3d("+z.x+"px,"+z.y+"px,"+z.z+"px)"+(1!==C||1!==D?" scale("+C+","+D+")":""));b=g=1,c=f=0}l=1,d=e=h=i=j=k=n=o=p=0,q=F?-1/F:0,r=z.zOrigin,s=1e5,B=z.rotationY*G,B&&(t=Math.cos(B),u=Math.sin(B),j=l*-u,o=q*-u,d=b*u,h=f*u,l*=t,q*=t,b*=t,f*=t),B=z.rotationX*G,B&&(t=Math.cos(B),u=Math.sin(B),v=c*t+d*u,w=g*t+h*u,x=k*t+l*u,y=p*t+q*u,d=c*-u+d*t,h=g*-u+h*t,l=k*-u+l*t,q=p*-u+q*t,c=v,g=w,k=x,p=y),1!==E&&(d*=E,h*=E,l*=E,q*=E),1!==D&&(c*=D,g*=D,k*=D,p*=D),1!==C&&(b*=C,f*=C,j*=C,o*=C),r&&(n-=r,e=d*n,i=h*n,n=l*n+r),e=(v=(e+=z.x)-(e|=0))?(v*s+(0>v?-.5:.5)|0)/s+e:e,i=(v=(i+=z.y)-(i|=0))?(v*s+(0>v?-.5:.5)|0)/s+i:i,n=(v=(n+=z.z)-(n|=0))?(v*s+(0>v?-.5:.5)|0)/s+n:n,A[ta]="matrix3d("+[(b*s|0)/s,(f*s|0)/s,(j*s|0)/s,(o*s|0)/s,(c*s|0)/s,(g*s|0)/s,(k*s|0)/s,(p*s|0)/s,(d*s|0)/s,(h*s|0)/s,(l*s|0)/s,(q*s|0)/s,e,i,n,F?1+-n/F:1].join(",")+")"},Ba=M.set2DTransformRatio=function(a){var b,c,d,e,f,g=this.data,h=this.t,i=h.style;return g.rotationX||g.rotationY||g.z||g.force3D===!0||"auto"===g.force3D&&1!==a&&0!==a?(this.setRatio=Aa,void Aa.call(this,a)):void(g.rotation||g.skewX?(b=g.rotation*G,c=b-g.skewX*G,d=1e5,e=g.scaleX*d,f=g.scaleY*d,i[ta]="matrix("+(Math.cos(b)*e|0)/d+","+(Math.sin(b)*e|0)/d+","+(Math.sin(c)*-f|0)/d+","+(Math.cos(c)*f|0)/d+","+g.x+","+g.y+")"):i[ta]="matrix("+g.scaleX+",0,0,"+g.scaleY+","+g.x+","+g.y+")")};qa("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType",{parser:function(a,b,c,d,f,h,i){if(d._transform)return f;var j,k,l,m,n,o,p,q=d._transform=ya(a,e,!0,i.parseTransform),r=a.style,s=1e-6,t=sa.length,u=i,v={};if("string"==typeof u.transform&&ta)l=K.style,l[ta]=u.transform,l.display="block",l.position="absolute",J.body.appendChild(K),j=ya(K,null,!1),J.body.removeChild(K);else if("object"==typeof u){if(j={scaleX:da(null!=u.scaleX?u.scaleX:u.scale,q.scaleX),scaleY:da(null!=u.scaleY?u.scaleY:u.scale,q.scaleY),scaleZ:da(u.scaleZ,q.scaleZ),x:da(u.x,q.x),y:da(u.y,q.y),z:da(u.z,q.z),perspective:da(u.transformPerspective,q.perspective)},p=u.directionalRotation,null!=p)if("object"==typeof p)for(l in p)u[l]=p[l];else u.rotation=p;j.rotation=ea("rotation"in u?u.rotation:"shortRotation"in u?u.shortRotation+"_short":"rotationZ"in u?u.rotationZ:q.rotation,q.rotation,"rotation",v),wa&&(j.rotationX=ea("rotationX"in u?u.rotationX:"shortRotationX"in u?u.shortRotationX+"_short":q.rotationX||0,q.rotationX,"rotationX",v),j.rotationY=ea("rotationY"in u?u.rotationY:"shortRotationY"in u?u.shortRotationY+"_short":q.rotationY||0,q.rotationY,"rotationY",v)),j.skewX=null==u.skewX?q.skewX:ea(u.skewX,q.skewX),j.skewY=null==u.skewY?q.skewY:ea(u.skewY,q.skewY),(k=j.skewY-q.skewY)&&(j.skewX+=k,j.rotation+=k)}for(wa&&null!=u.force3D&&(q.force3D=u.force3D,o=!0),q.skewType=u.skewType||q.skewType||g.defaultSkewType,n=q.force3D||q.z||q.rotationX||q.rotationY||j.z||j.rotationX||j.rotationY||j.perspective,n||null==u.scale||(j.scaleZ=1);--t>-1;)c=sa[t],m=j[c]-q[c],(m>s||-s>m||null!=I[c])&&(o=!0,f=new ma(q,c,q[c],m,f),c in v&&(f.e=v[c]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return m=u.transformOrigin,(m||wa&&n&&q.zOrigin)&&(ta?(o=!0,c=va,m=(m||V(a,c,e,!1,"50% 50%"))+"",f=new ma(r,c,0,0,f,-1,"transformOrigin"),f.b=r[c],f.plugin=h,wa?(l=q.zOrigin,m=m.split(" "),q.zOrigin=(m.length>2&&(0===l||"0px"!==m[2])?parseFloat(m[2]):l)||0,f.xs0=f.e=m[0]+" "+(m[1]||"50%")+" 0px",f=new ma(q,"zOrigin",0,0,f,-1,f.n),f.b=l,f.xs0=f.e=q.zOrigin):f.xs0=f.e=m):ba(m+"",q)),o&&(d._transformType=n||3===this._transformType?3:2),f},prefix:!0}),qa("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),qa("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;j<y.length;j++)this.p.indexOf("border")&&(y[j]=T(y[j])),m=l=V(a,y[j],e,!1,"0px"),-1!==m.indexOf(" ")&&(l=m.split(" "),m=l[0],l=l[1]),n=k=i[j],o=parseFloat(m),t=m.substr((o+"").length),u="="===n.charAt(1),u?(p=parseInt(n.charAt(0)+"1",10),n=n.substr(2),p*=parseFloat(n),s=n.substr((p+"").length-(0>p?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=W(a,"borderLeft",o,t),w=W(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=W(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=na(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:ja("0px 0px 0px 0px",!1,!0)}),qa("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",p=e||U(a,null),q=this.format((p?o?p.getPropertyValue(n+"-x")+" "+p.getPropertyValue(n+"-y"):p.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&(m=V(a,"backgroundImage").replace(A,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),L.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-L.width:a.offsetHeight-L.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ba}),qa("backgroundSize",{defaultValue:"0 0",formatter:ba}),qa("perspective",{defaultValue:"0px",prefix:!0}),qa("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),qa("transformStyle",{prefix:!0}),qa("backfaceVisibility",{prefix:!0}),qa("userSelect",{prefix:!0}),qa("margin",{parser:ka("marginTop,marginRight,marginBottom,marginLeft")}),qa("padding",{parser:ka("paddingTop,paddingRight,paddingBottom,paddingLeft")}),qa("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>o?(i=a.currentStyle,j=8>o?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(V(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),qa("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),qa("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),qa("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){return this.parseComplex(a.style,this.format(V(a,"borderTopWidth",e,!1,"0px")+" "+V(a,"borderTopStyle",e,!1,"solid")+" "+V(a,"borderTopColor",e,!1,"#000")),this.format(b),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(ia)||["#000"])[0]}}),qa("borderWidth",{parser:ka("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),qa("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ma(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Ca=function(a){var b,c=this.t,d=c.filter||V(this.data,"filter"),e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!V(this.data,"filter")):(c.filter=d.replace(w,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(u,"opacity="+e))};qa("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(V(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===V(a,"visibility",e)&&0!==b&&(h=0),O?f=new ma(i,"opacity",h,b-h,f):(f=new ma(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ca),j&&(f=new ma(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Da=function(a,b){b&&(a.removeProperty?("ms"===b.substr(0,2)&&(b="M"+b.substr(1)),a.removeProperty(b.replace(y,"-$1").toLowerCase())):a.removeAttribute(b))},Ea=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Da(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};qa("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ma(a,d,0,0,g,2),g.setRatio=Ea,g.pr=-11,c=!0,g.b=o,k=Y(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("\\s*\\b"+b.substr(2)+"\\b"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),f._tween._duration&&(a.setAttribute("class",g.e),j=Z(a,k,Y(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)),g}});var Fa=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f=this.t.style,g=h.transform.parse;if("all"===this.e)f.cssText="",e=!0;else for(b=this.e.split(","),d=b.length;--d>-1;)c=b[d],h[c]&&(h[c].parse===g?e=!0:c="transformOrigin"===c?va:h[c].p),Da(f,c);e&&(Da(f,ta),this.t._gsTransform&&delete this.t._gsTransform)}};for(qa("clearProps",{parser:function(a,b,d,e,f){return f=new ma(a,d,0,0,f,2),f.setRatio=Fa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),i="bezier,throwProps,physicsProps,physics2D".split(","),oa=i.length;oa--;)ra(i[oa]);i=g.prototype,i._firstPT=null,i._onInitTween=function(a,b,h){if(!a.nodeType)return!1;this._target=a,this._tween=h,this._vars=b,j=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=U(a,""),f=this._overwriteProps;var i,m,o,p,q,r,s,t,u,w=a.style;if(k&&""===w.zIndex&&(i=V(a,"zIndex",e),("auto"===i||""===i)&&this._addLazySet(w,"zIndex",0)),"string"==typeof b&&(p=w.cssText,i=Y(a,e),w.cssText=p+";"+b,i=Z(a,i,Y(a)).difs,!O&&v.test(b)&&(i.opacity=parseFloat(RegExp.$1)),b=i,w.cssText=p),this._firstPT=m=this.parse(a,b,null),this._transformType){for(u=3===this._transformType,ta?l&&(k=!0,""===w.zIndex&&(s=V(a,"zIndex",e),("auto"===s||""===s)&&this._addLazySet(w,"zIndex",0)),n&&this._addLazySet(w,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(u?"visible":"hidden"))):w.zoom=1,o=m;o&&o._next;)o=o._next;t=new ma(a,"transform",0,0,null,2),this._linkCSSP(t,null,o),t.setRatio=u&&wa?Aa:ta?Ba:za,t.data=this._transform||ya(a,e,!0),f.pop()}if(c){for(;m;){for(r=m._next,o=p;o&&o.pr>m.pr;)o=o._next;(m._prev=o?o._prev:q)?m._prev._next=m:p=m,(m._next=o)?o._prev=m:q=m,m=r}this._firstPT=p}return!0},i.parse=function(a,b,c,f){var g,i,k,l,m,n,o,p,q,r,s=a.style;for(g in b)n=b[g],i=h[g],i?c=i.parse(a,n,g,this,c,f,b):(m=V(a,g,e)+"",q="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||q&&x.test(n)?(q||(n=ha(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=na(s,g,m,n,!0,"transparent",c,0,f)):!q||-1===n.indexOf(" ")&&-1===n.indexOf(",")?(k=parseFloat(m),o=k||0===k?m.substr((k+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(k=aa(a,g,e),o="px"):"left"===g||"top"===g?(k=X(a,g,e),o="px"):(k="opacity"!==g?0:1,o="")),r=q&&"="===n.charAt(1),r?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(t,"")):(l=parseFloat(n),p=q?n.substr((l+"").length)||"":""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(r?l+k:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&k&&(k=W(a,g,k,o),"%"===p?(k/=W(a,g,100,"%")/100,b.strictUnits!==!0&&(m=k+"%")):"em"===p?k/=W(a,g,1,"em"):"px"!==p&&(l=W(a,g,l,p),p="px"),r&&(l||0===l)&&(n=l+k+p)),r&&(l+=k),!k&&0!==k||!l&&0!==l?void 0!==s[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ma(s,g,l||k||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):Q("invalid "+g+" tween value: "+b[g]):(c=new ma(s,g,k,l-k,c,0,g,j!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p)):c=na(s,g,m,n,!0,null,c,0,f)),f&&c&&!c.plugin&&(c.plugin=f);return c},i.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next;else for(;e;)2!==e.type?e.t[e.p]=e.e:e.setRatio(a),e=e._next},i._enableTransforms=function(a){this._transformType=a||3===this._transformType?3:2,this._transform=this._transform||ya(this._target,e,!0)};var Ga=function(a){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};i._addLazySet=function(a,b,c){var d=this._firstPT=new ma(a,b,0,0,this._firstPT,2);d.e=c,d.setRatio=Ga,d.data=this},i._linkCSSP=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next,d=!0),c?c._next=a:d||null!==this._firstPT||(this._firstPT=a),a._next=b,a._prev=c),a},i._kill=function(b){var c,d,e,f=b;if(b.autoAlpha||b.alpha){f={};for(d in b)f[d]=b[d];f.opacity=1,f.autoAlpha&&(f.visibility=1)}return b.className&&(c=this._classNamePT)&&(e=c.xfirst,e&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=c._next),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._classNamePT=null),a.prototype._kill.call(this,f)};var Ha=function(a,b,c){var d,e,f,g;if(a.slice)for(e=a.length;--e>-1;)Ha(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(Y(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Ha(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h=b.to(a,c,d),i=[h],j=[],k=[],l=[],m=b._internals.reservedProps;for(a=h._targets||h.target,Ha(a,j,l),h.render(c,!0),Ha(a,k),h.render(0,!0),h._enabled(!0),e=l.length;--e>-1;)if(f=Z(l[e],j[e],k[e]),f.firstMPT){f=f.difs;for(g in d)m[g]&&(f[g]=d[g]);i.push(b.to(l[e],c,f))}return i},a.activate([g]),g},!0),function(){var a=window._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=a.prototype;b._onInitAllProps=function(){for(var a,b,c,d=this._tween,e=d.vars.roundProps instanceof Array?d.vars.roundProps:d.vars.roundProps.split(","),f=e.length,g={},h=d._propLookup.roundProps;--f>-1;)g[e[f]]=1;for(f=e.length;--f>-1;)for(a=e[f],b=d._firstPT;b;)c=b._next,b.pg?b.t._roundProps(g,!0):b.n===a&&(this._add(b.t,a,b.s,b.c),c&&(c._prev=b._prev),b._prev?b._prev._next=c:d._firstPT===b&&(d._firstPT=c),b._next=b._prev=null,d._propLookup[a]=h),b=c;return!1},b._add=function(a,b,c,d){this._addTween(a,b,c,c+d,b,!0),this._overwriteProps.push(b)}}(),window._gsDefine.plugin({propName:"attr",API:2,version:"0.3.2",init:function(a,b,c){var d,e,f;if("function"!=typeof a.setAttribute)return!1;this._target=a,this._proxy={},this._start={},this._end={};for(d in b)this._start[d]=this._proxy[d]=e=a.getAttribute(d),f=this._addTween(this._proxy,d,parseFloat(e),b[d],d),this._end[d]=f?f.s+f.c:b[d],this._overwriteProps.push(d);return!0},set:function(a){this._super.setRatio.call(this,a);for(var b,c=this._overwriteProps,d=c.length,e=1===a?this._end:a?this._proxy:this._start;--d>-1;)b=c[d],this._target.setAttribute(b,e[b]+"")}}),window._gsDefine.plugin({propName:"directionalRotation",API:2,version:"0.2.0",init:function(a,b,c){"object"!=typeof b&&(b={rotation:b}),this.finals={};var d,e,f,g,h,i,j=b.useRadians===!0?2*Math.PI:360,k=1e-6;for(d in b)"useRadians"!==d&&(i=(b[d]+"").split("_"),e=i[0],f=parseFloat("function"!=typeof a[d]?a[d]:a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]()),g=this.finals[d]="string"==typeof e&&"="===e.charAt(1)?f+parseInt(e.charAt(0)+"1",10)*Number(e.substr(2)):Number(e)||0,h=g-f,i.length&&(e=i.join("_"),-1!==e.indexOf("short")&&(h%=j,h!==h%(j/2)&&(h=0>h?h+j:h-j)),-1!==e.indexOf("_cw")&&0>h?h=(h+9999999999*j)%j-(h/j|0)*j:-1!==e.indexOf("ccw")&&h>0&&(h=(h-9999999999*j)%j-(h/j|0)*j)),(h>k||-k>h)&&(this._addTween(a,d,f,f+h,d),this._overwriteProps.push(d)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,window._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e=window.GreenSockGlobals||window,f=e.com.greensock,g=2*Math.PI,h=Math.PI/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},o=l("Back",n("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getRatio=function(a){var b=a+(.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?Math.random():1/l*n,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("Bounce",j("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("Circ",j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),j("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a||1,this._p2=b||d,this._p3=this._p2/g*(Math.asin(1/this._p1)||0)},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},l("Elastic",d("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*g/this._p2)+1},.3),d("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2))},.3),d("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*g/this._p2)*.5+1},.45)),l("Expo",j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),j("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),l("Sine",j("SineOut",function(a){return Math.sin(a*h)}),j("SineIn",function(a){return-Math.cos(a*h)+1}),j("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),i("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),k(e.SlowMo,"SlowMo","ease,"),k(c,"RoughEase","ease,"),k(b,"SteppedEase","ease,"),o},!0)}),function(a){"use strict";var b=a.GreenSockGlobals||a;if(!b.TweenLite){var c,d,e,f,g,h=function(a){var c,d=a.split("."),e=b;for(c=0;c<d.length;c++)e[d[c]]=e=e[d[c]]||{};return e},i=h("com.greensock"),j=1e-10,k=[].slice,l=function(){},m=function(){var a=Object.prototype.toString,b=a.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&a.call(c)===b)}}(),n={},o=function(c,d,e,f){this.sc=n[c]?n[c].sc:[],n[c]=this,this.gsClass=null,this.func=e;var g=[];this.check=function(i){for(var j,k,l,m,p=d.length,q=p;--p>-1;)(j=n[d[p]]||new o(d[p],[])).gsClass?(g[p]=j.gsClass,q--):i&&j.sc.push(this);if(0===q&&e)for(k=("com.greensock."+c).split("."),l=k.pop(),m=h(k.join("."))[l]=this.gsClass=e.apply(e,g),f&&(b[l]=m,"function"==typeof define&&define.amd?define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+c.split(".").join("/"),[],function(){return m}):"undefined"!=typeof module&&module.exports&&(module.exports=m)),p=0;p<this.sc.length;p++)this.sc[p].check()},this.check(!0)},p=a._gsDefine=function(a,b,c,d){return new o(a,b,c,d)},q=i._class=function(a,b,c){return b=b||function(){},p(a,[],function(){return b},c),b};p.globals=b;var r=[0,0,1,1],s=[],t=q("easing.Ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?r.concat(b):r},!0),u=t.map={},v=t.register=function(a,b,c,d){for(var e,f,g,h,j=b.split(","),k=j.length,l=(c||"easeIn,easeOut,easeInOut").split(",");--k>-1;)for(f=j[k],e=d?q("easing."+f,null,!0):i.easing[f]||{},g=l.length;--g>-1;)h=l[g],u[f+"."+h]=u[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(e=t.prototype,e._calcEnd=!1,e.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},c=["Linear","Quad","Cubic","Quart","Quint,Strong"],d=c.length;--d>-1;)e=c[d]+",Power"+d,v(new t(null,null,1,d),e,"easeOut",!0),v(new t(null,null,2,d),e,"easeIn"+(0===d?",easeNone":"")),v(new t(null,null,3,d),e,"easeInOut");u.linear=i.easing.Linear.easeIn,u.swing=i.easing.Quad.easeInOut;var w=q("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});e=w.prototype,e.addEventListener=function(a,b,c,d,e){e=e||0;var h,i,j=this._listeners[a],k=0;for(null==j&&(this._listeners[a]=j=[]),i=j.length;--i>-1;)h=j[i],h.c===b&&h.s===c?j.splice(i,1):0===k&&h.pr<e&&(k=i+1);j.splice(k,0,{c:b,s:c,up:d,pr:e}),this!==f||g||f.wake()},e.removeEventListener=function(a,b){var c,d=this._listeners[a];if(d)for(c=d.length;--c>-1;)if(d[c].c===b)return void d.splice(c,1)},e.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,c=this._eventTarget;--b>-1;)d=e[b],d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c)};var x=a.requestAnimationFrame,y=a.cancelAnimationFrame,z=Date.now||function(){return(new Date).getTime()},A=z();for(c=["ms","moz","webkit","o"],d=c.length;--d>-1&&!x;)x=a[c[d]+"RequestAnimationFrame"],y=a[c[d]+"CancelAnimationFrame"]||a[c[d]+"CancelRequestAnimationFrame"];q("Ticker",function(a,b){var c,d,e,h,i,k=this,m=z(),n=b!==!1&&x,o=500,p=33,q=function(a){var b,f,g=z()-A;g>o&&(m+=g-p),A+=g,k.time=(A-m)/1e3,b=k.time-i,(!c||b>0||a===!0)&&(k.frame++,i+=b+(b>=h?.004:h-b),f=!0),a!==!0&&(e=d(q)),f&&k.dispatchEvent("tick")};w.call(k),k.time=k.frame=0,k.tick=function(){q(!0)},k.lagSmoothing=function(a,b){o=a||1/j,p=Math.min(b,o,0)},k.sleep=function(){null!=e&&(n&&y?y(e):clearTimeout(e),d=l,e=null,k===f&&(g=!1))},k.wake=function(){null!==e?k.sleep():k.frame>10&&(A=z()-o+5),d=0===c?l:n&&x?x:function(a){return setTimeout(a,1e3*(i-k.time)+1|0)},k===f&&(g=!0),q(2)},k.fps=function(a){return arguments.length?(c=a,h=1/(c||60),i=this.time+h,void k.wake()):c},k.useRAF=function(a){return arguments.length?(k.sleep(),n=a,void k.fps(c)):n},k.fps(a),setTimeout(function(){n&&(!e||k.frame<5)&&k.useRAF(!1)},1500)}),e=i.Ticker.prototype=new i.events.EventDispatcher,e.constructor=i.Ticker;var B=q("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,Q){g||f.wake();var c=this.vars.useFrames?P:Q;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});f=B.ticker=new i.Ticker,e=B.prototype,e._dirty=e._gc=e._initted=e._paused=!1,e._totalTime=e._time=0,e._rawPrevTime=-1,e._next=e._last=e._onUpdate=e._timeline=e.timeline=null,e._paused=!1;var C=function(){g&&z()-A>2e3&&f.wake(),setTimeout(C,2e3)};C(),e.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},e.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},e.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},e.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},e.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},e.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},e.render=function(a,b,c){},e.invalidate=function(){return this},e.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime())>=c&&a<c+this.totalDuration()/this._timeScale},e._enabled=function(a,b){return g||f.wake(),this._gc=!a,this._active=this.isActive(),b!==!0&&(a&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!a&&this.timeline&&this._timeline._remove(this,!0)),!1},e._kill=function(a,b){return this._enabled(!1,!1)},e.kill=function(a,b){return this._kill(a,b),this},e._uncache=function(a){for(var b=a?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this},e._swapSelfInParams=function(a){for(var b=a.length,c=a.concat();--b>-1;)"{self}"===a[b]&&(c[b]=this);return c},e.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=m(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},e.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},e.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0),this):(this._dirty=!1,this._duration)},e.totalDuration=function(a){return this._dirty=!1,arguments.length?this.duration(a):this._totalDuration},e.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(a>this._duration?this._duration:a,b)):this._time},e.totalTime=function(a,b,c){if(g||f.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(this.render(a,b,!1),H.length&&R())}return this},e.progress=e.totalProgress=function(a,b){return arguments.length?this.totalTime(this.duration()*a,b):this._time/this.duration()},e.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,
-this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},e.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||j,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},e.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},e.paused=function(a){if(!arguments.length)return this._paused;if(a!=this._paused&&this._timeline){g||a||f.wake();var b=this._timeline,c=b.rawTime(),d=c-this._pauseTime;!a&&b.smoothChildTiming&&(this._startTime+=d,this._uncache(!1)),this._pauseTime=a?c:null,this._paused=a,this._active=this.isActive(),!a&&0!==d&&this._initted&&this.duration()&&this.render(b.smoothChildTiming?this._totalTime:(c-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!a&&this._enabled(!0,!1),this};var D=q("core.SimpleTimeline",function(a){B.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});e=D.prototype=new B,e.constructor=D,e.kill()._gc=!1,e._first=e._last=null,e._sortChildren=!1,e.add=e.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._timeline&&this._uncache(!0),this},e._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0)),this},e.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},e.rawTime=function(){return g||f.wake(),this._totalTime};var E=q("TweenLite",function(b,c,d){if(B.call(this,c,d),this.render=E.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:E.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?O[E.defaultOverwrite]:"number"==typeof i?i>>0:O[i],(h||b instanceof Array||b.push&&m(b))&&"number"!=typeof b[0])for(this._targets=g=k.call(b,0),this._propLookup=[],this._siblings=[],e=0;e<g.length;e++)f=g[e],f?"string"!=typeof f?f.length&&f!==a&&f[0]&&(f[0]===a||f[0].nodeType&&f[0].style&&!f.nodeType)?(g.splice(e--,1),this._targets=g=g.concat(k.call(f,0))):(this._siblings[e]=S(f,this,!1),1===i&&this._siblings[e].length>1&&T(f,this,null,1,this._siblings[e])):(f=g[e--]=E.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=S(b,this,!1),1===i&&this._siblings.length>1&&T(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-j,this.render(-this._delay))},!0),F=function(b){return b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},G=function(a,b){var c,d={};for(c in a)N[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!K[c]||K[c]&&K[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};e=E.prototype=new B,e.constructor=E,e.kill()._gc=!1,e.ratio=0,e._firstPT=e._targets=e._overwrittenProps=e._startAt=null,e._notifyPluginsOfEnabled=e._lazy=!1,E.version="1.12.1",E.defaultEase=e._ease=new t(null,null,1,1),E.defaultOverwrite="auto",E.ticker=f,E.autoSleep=!0,E.lagSmoothing=function(a,b){f.lagSmoothing(a,b)},E.selector=a.$||a.jQuery||function(b){return a.$?(E.selector=a.$,a.$(b)):a.document?a.document.getElementById("#"===b.charAt(0)?b.substr(1):b):b};var H=[],I={},J=E._internals={isArray:m,isSelector:F,lazyTweens:H},K=E._plugins={},L=J.tweenLookup={},M=0,N=J.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1},O={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},P=B._rootFramesTimeline=new D,Q=B._rootTimeline=new D,R=function(){var a=H.length;for(I={};--a>-1;)c=H[a],c&&c._lazy!==!1&&(c.render(c._lazy,!1,!0),c._lazy=!1);H.length=0};Q._startTime=f.time,P._startTime=f.frame,Q._active=P._active=!0,setTimeout(R,1),B._updateRoot=E.render=function(){var a,b,c;if(H.length&&R(),Q.render((f.time-Q._startTime)*Q._timeScale,!1,!1),P.render((f.frame-P._startTime)*P._timeScale,!1,!1),H.length&&R(),!(f.frame%120)){for(c in L){for(b=L[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete L[c]}if(c=Q._first,(!c||c._paused)&&E.autoSleep&&!P._first&&1===f._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||f.sleep()}}},f.addEventListener("tick",B._updateRoot);var S=function(a,b,c){var d,e,f=a._gsTweenID;if(L[f||(a._gsTweenID=f="t"+M++)]||(L[f]={target:a,tweens:[]}),b&&(d=L[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return L[f].tweens},T=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._enabled(!1,!1)&&(g=!0);else if(5===d)break;return g}var k,l=b._startTime+j,m=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(k=k||U(b,0,o),0===U(h,k,o)&&(m[n++]=h)):h._startTime<=l&&h._startTime+h.totalDuration()/h._timeScale>l&&((o||!h._initted)&&l-h._startTime<=2e-10||(m[n++]=h)));for(f=n;--f>-1;)h=m[f],2===d&&h._kill(c,a)&&(g=!0),(2!==d||!h._firstPT&&h._initted)&&h._enabled(!1,!1)&&(g=!0);return g},U=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*j>f-b?j:(f+=a.totalDuration()/a._timeScale/e)>b+j?0:f-b-j};e._init=function(){var a,b,c,d,e,f=this.vars,g=this._overwrittenProps,h=this._duration,i=!!f.immediateRender,j=f.ease;if(f.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in f.startAt)e[d]=f.startAt[d];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=i&&f.lazy!==!1,e.startAt=e.delay=null,this._startAt=E.to(this.target,0,e),i)if(this._time>0)this._startAt=null;else if(0!==h)return}else if(f.runBackwards&&0!==h)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{c={};for(d in f)N[d]&&"autoCSS"!==d||(c[d]=f[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=i&&f.lazy!==!1,c.immediateRender=i,this._startAt=E.to(this.target,0,c),i){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1)}if(j?j instanceof t?this._ease=f.easeParams instanceof Array?j.config.apply(j,f.easeParams):j:this._ease="function"==typeof j?new t(j,f.easeParams):u[j]||E.defaultEase:this._ease=E.defaultEase,this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(a=this._targets.length;--a>-1;)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],g?g[a]:null)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,g);if(b&&E._onPluginEvent("_onInitAllProps",this),g&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),f.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=f.onUpdate,this._initted=!0},e._initProps=function(b,c,d,e){var f,g,h,i,j,k;if(null==b)return!1;I[b._gsTweenID]&&R(),this.vars.css||b.style&&b!==a&&b.nodeType&&K.css&&this.vars.autoCSS!==!1&&G(this.vars,b);for(f in this.vars){if(k=this.vars[f],N[f])k&&(k instanceof Array||k.push&&m(k))&&-1!==k.join("").indexOf("{self}")&&(this.vars[f]=k=this._swapSelfInParams(k,this));else if(K[f]&&(i=new K[f])._onInitTween(b,this.vars[f],this)){for(this._firstPT=j={_next:this._firstPT,t:i,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:i._priority},g=i._overwriteProps.length;--g>-1;)c[i._overwriteProps[g]]=this._firstPT;(i._priority||i._onInitAllProps)&&(h=!0),(i._onDisable||i._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=c[f]=j={_next:this._firstPT,t:b,p:f,f:"function"==typeof b[f],n:f,pg:!1,pr:0},j.s=j.f?b[f.indexOf("set")||"function"!=typeof b["get"+f.substr(3)]?f:"get"+f.substr(3)]():parseFloat(b[f]),j.c="string"==typeof k&&"="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*Number(k.substr(2)):Number(k)-j.s||0;j&&j._next&&(j._next._prev=j)}return e&&this._kill(e,b)?this._initProps(b,c,d,e):this._overwrite>1&&this._firstPT&&d.length>1&&T(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(I[b._gsTweenID]=!0),h)},e.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,k=this._rawPrevTime;if(a>=i)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete"),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0===a||0>k||k===j)&&k!==a&&(c=!0,k>j&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||k===a?a:j);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&k>0&&k!==j)&&(e="onReverseComplete",d=this._reversed),0>a?(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(k>=0&&(c=!0),this._rawPrevTime=g=!b||a||k===a?a:j)):this._initted||(c=!0);else if(this._totalTime=this._time=a,this._easeType){var l=a/i,m=this._easeType,n=this._easePower;(1===m||3===m&&l>=.5)&&(l=1-l),3===m&&(l*=2),1===n?l*=l:2===n?l*=l*l:3===n?l*=l*l*l:4===n&&(l*=l*l*l*l),1===m?this.ratio=1-l:2===m?this.ratio=l:.5>a/i?this.ratio=l/2:this.ratio=1-l/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=k,H.push(this),void(this._lazy=a);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&this._startTime&&this._startAt.render(a,b,c),b||(this._time!==h||d)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s)),e&&(this._gc||(0>a&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this.vars[e].apply(this.vars[e+"Scope"]||this,this.vars[e+"Params"]||s),0===i&&this._rawPrevTime===j&&g!==j&&(this._rawPrevTime=0)))}},e._kill=function(a,b){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:E.selector(b)||b;var c,d,e,f,g,h,i,j;if((m(b)||F(b))&&"number"!=typeof b[0])for(c=b.length;--c>-1;)this._kill(a,b[c])&&(h=!0);else{if(this._targets){for(c=this._targets.length;--c>-1;)if(b===this._targets[c]){g=this._propLookup[c]||{},this._overwrittenProps=this._overwrittenProps||[],d=this._overwrittenProps[c]=a?this._overwrittenProps[c]||{}:"all";break}}else{if(b!==this.target)return!1;g=this._propLookup,d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(g){i=a||g,j=a!==d&&"all"!==d&&a!==g&&("object"!=typeof a||!a._tempKill);for(e in i)(f=g[e])&&(f.pg&&f.t._kill(i)&&(h=!0),f.pg&&0!==f.t._overwriteProps.length||(f._prev?f._prev._next=f._next:f===this._firstPT&&(this._firstPT=f._next),f._next&&(f._next._prev=f._prev),f._next=f._prev=null),delete g[e]),j&&(d[e]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return h},e.invalidate=function(){return this._notifyPluginsOfEnabled&&E._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=this._lazy=!1,this._propLookup=this._targets?{}:[],this},e._enabled=function(a,b){if(g||f.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=S(d[c],this,!0);else this._siblings=S(this.target,this,!0)}return B.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?E._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},E.to=function(a,b,c){return new E(a,b,c)},E.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new E(a,b,c)},E.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new E(a,b,d)},E.delayedCall=function(a,b,c,d,e){return new E(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d,immediateRender:!1,useFrames:e,overwrite:0})},E.set=function(a,b){return new E(a,0,b)},E.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:E.selector(a)||a;var c,d,e,f;if((m(a)||F(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(E.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=S(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d},E.killTweensOf=E.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=E.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var V=q("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=V.prototype},!0);if(e=V.prototype,V.version="1.10.1",V.API=2,e._firstPT=null,e._addTween=function(a,b,c,d,e,f){var g,h;return null!=d&&(g="number"==typeof d||"="!==d.charAt(1)?Number(d)-c:parseInt(d.charAt(0)+"1",10)*Number(d.substr(2)))?(this._firstPT=h={_next:this._firstPT,t:a,p:b,s:c,c:g,f:"function"==typeof a[b],n:e||b,r:f},h._next&&(h._next._prev=h),h):void 0},e.setRatio=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.c*a+c.s,c.r?b=Math.round(b):d>b&&b>-d&&(b=0),c.f?c.t[c.p](b):c.t[c.p]=b,c=c._next},e._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},e._roundProps=function(a,b){for(var c=this._firstPT;c;)(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])&&(c.r=b),c=c._next},E._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},V.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===V.API&&(K[(new a[b])._propName]=a[b]);return!0},p.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},g=q("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){V.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new V(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,V.activate([g]),g},c=a._gsQueue){for(d=0;d<c.length;d++)c[d]();for(e in n)!n[e].func}g=!1}}(window),angular.module("att.abs.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(a,b,c){function d(a){for(var b in a)if(void 0!==f.style[b])return a[b]}var e=function(d,f,g){g=g||{};var h=a.defer(),i=e[g.animation?"animationEndEventName":"transitionEndEventName"],j=function(){c.$apply(function(){d.unbind(i,j),h.resolve(d)})};return i&&d.bind(i,j),b(function(){angular.isString(f)?d.addClass(f):angular.isFunction(f)?f(d):angular.isObject(f)&&d.css(f),i||h.resolve(d)},100),h.promise.cancel=function(){i&&d.unbind(i,j),h.reject("Transition cancelled")},h.promise},f=document.createElement("trans"),g={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},h={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return e.transitionEndEventName=d(g),e.animationEndEventName=d(h),e}]).factory("$scrollTo",["$window",function(a){var b=function(b,c,d){TweenMax.to(a,d||1,{scrollTo:{y:c,x:b},ease:Power4.easeOut})};return b}]).factory("animation",function(){return TweenMax}).factory("$progressBar",function(){var a=function(a){var b=function(b,c){TweenMax.to({},c,{onUpdateParams:["{self}"],onUpdate:a,onComplete:b})};return function(){return b}()};return a}).factory("$height",function(){var a=function(a,b,c,d){TweenMax.to(a,b,{height:c,autoAlpha:d},0)};return a}),angular.module("att.abs.accordion",["att.abs.utilities","att.abs.position","att.abs.transition"]).constant("accordionConfig",{closeOthers:!1}).controller("AccordionController",["$scope","$attrs","accordionConfig","$log",function(a,b,c,d){this.groups=[],this.index=-1,this.scope=a,a.forceExpand=!1,this.closeOthers=function(d){var e=angular.isDefined(b.closeOthers)?a.$eval(b.closeOthers):c.closeOthers;e&&!a.forceExpand&&angular.forEach(this.groups,function(a){a!==d&&(a.isOpen=!1)}),this.groups.indexOf(d)===this.groups.length-1&&a.forceExpand&&(a.forceExpand=!1)},this.expandAll=function(){a.forceExpand=!0,angular.forEach(this.groups,function(a){a.isOpen=!0})},this.collapseAll=function(){angular.forEach(this.groups,function(a){a.isOpen=!1})},this.focus=function(a){var b=this;angular.forEach(this.groups,function(c,d){c!==a?c.focused=!1:(b.index=d,c.focused=!0)})},this.blur=function(a){a.focused=!1,this.index=-1,d.log("accordion.blur()",a)},this.cycle=function(b,c,d){if(c)if(this.index===this.groups.length-1){if(d)return this.index=0,b.focused=!1,void a.$apply();this.index=0}else this.index++;else this.index<=0&&!d?this.index=this.groups.length-1:this.index--;b.focused=!1,this.groups[this.index].setFocus=!0,this.groups[this.index].focused=!0,a.$apply()},this.addGroup=function(a){var b=this;a.index=this.groups.length,a.focused=!1,this.groups.push(a),this.groups.length>0&&(this.index=0),a.$on("$destroy",function(){b.removeGroup(a)})},this.removeGroup=function(a){var b=this.groups.indexOf(a);-1!==b&&this.groups.splice(this.groups.indexOf(a),1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,scope:{cClass:"@css",expandAll:"=?",collapseAll:"=?"},template:'<div class="{{cClass}}" ng-transclude></div>',link:function(a,b,c,d){a.$watch("expandAll",function(b){b&&(d.expandAll(),a.expandAll=!1)}),a.$watch("collapseAll",function(b){b&&(d.collapseAll(),a.collapseAll=!1)})}}}).directive("accordionGroup",[function(){return{require:["^accordion","accordionGroup"],restrict:"EA",transclude:!0,replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/accordion/accordion.html",scope:{heading:"@",isOpen:"=?"},controller:["$scope",function(a){a.showicon=!0,this.setHeading=function(b){this.heading=b,a.showicon=!1},this.isIsOpen=function(){return a.isOpen}}],link:function(a,b,c,d){var e=d[0],f=d[1],g={tab:9,enter:13,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40},h=b.children().eq(0);a.setFocus=!1;var i=function(b){var c=!0;switch(b.keyCode){case g.enter:b.preventDefault(),a.toggle(),a.$apply();break;case g.up:case g.left:b.preventDefault(),e.cycle(a,!1);break;case g.down:case g.right:b.preventDefault(),e.cycle(a,!0);break;default:c=!1}return b.stopPropagation(),c};angular.isUndefined(a.isOpen)&&(a.isOpen=!1),h.bind("keydown",i),e.addGroup(a),0===a.index&&(a.focused=!0),f.toggle=a.toggle=function(){return a.isOpen=!a.isOpen,e.focus(a),a.isOpen},a.$watch("isOpen",function(b){b&&e.closeOthers(a)}),a.$watch("focused",function(b){b?(h.attr("tabindex","0"),a.setFocus&&h[0].focus()):(a.setFocus=!1,h.attr("tabindex","-1"))})}}}]).directive("accordionToggle",function(){return{restrict:"EA",require:"^accordionGroup",scope:{expandIcon:"@",collapseIcon:"@"},link:function(a,b,c,d){var e=function(c){a.expandIcon&&a.collapseIcon&&(c?(b.removeClass(a.expandIcon),b.addClass(a.collapseIcon)):(b.removeClass(a.collapseIcon),b.addClass(a.expandIcon)))};b.bind("click",function(){d.toggle(),a.$apply()}),a.$watch(function(){return d.isIsOpen()},function(a){e(a)})}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",require:"^accordionGroup",compile:function(a,b,c){var d=function(a,b,d,e){c(a,function(a){b.append(a),e.setHeading(b)})};return d}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(a,b,c,d){a.$watch(function(){return d[c.accordionTransclude]},function(a){a&&b.find("span").eq(0).prepend(a)})}}}).directive("attGoTop",["$scrollTo",function(a){return{restrict:"A",transclude:!1,link:function(b,c,d){c.bind("click",function(){a(0,d.attGoTop)})}}}]).directive("attGoTo",["$anchorScroll","$location",function(a,b){return{restrict:"A",transclude:!1,link:function(c,d,e){d.bind("click",function(){var c=e.attGoTo;b.hash()!==c?b.hash(e.attGoTo):a()})}}}]).directive("freeStanding",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:!0,template:"<div><span class='att-accordion__freestanding' ng-show='showAccordion'></span>\n<div class='section-toggle'>\n<button class='section-toggle__button' ng-click='fsToggle()'>\n {{btnText}}<i style='font-size:0.875rem' ng-class='{\"icon-chevron-up\": showAccordion,\"icon-chevron-down\": !showAccordion, }'></i> \n</button>\n</div></div>",compile:function(a,b,c){var d=function(a,b,d){a.content="",c(a,function(a){b.find("span").append(a)}),a.showAccordion=!1,a.btnText=a.showAccordion?d.hideMsg:d.showMsg,a.fsToggle=function(){a.showAccordion=!a.showAccordion,a.btnText=a.showAccordion?d.hideMsg:d.showMsg}};return d}}}).directive("expanders",function(){return{restrict:"EA",replace:!0,transclude:!0,template:"<div ng-transclude></div>",controller:["$scope",function(a){var b=null;this.setScope=function(a){b=a},this.toggle=function(){return a.isOpen=b.isOpen=!b.isOpen,b.isOpen}}],link:function(a){a.isOpen=!1}}}).directive("expanderHeading",function(){return{require:"^expanders",restrict:"EA",replace:!0,transclude:!0,scope:!0,template:"<div style='padding:10px !important' ng-transclude></div>"}}).directive("expanderBody",function(){return{restrict:"EA",require:"^expanders",replace:!0,transclude:!0,scope:{},template:"<div collapse='!isOpen'><div ng-transclude></div></div>",link:function(a,b,c,d){a.isOpen=!1,d.setScope(a)}}}).directive("expanderToggle",function(){return{restrict:"EA",require:"^expanders",scope:{expandIcon:"@",collapseIcon:"@"},link:function(a,b,c,d){var e=!1,f=function(){a.expandIcon&&a.collapseIcon&&(e?(b.removeClass(a.expandIcon),b.addClass(a.collapseIcon)):(b.removeClass(a.collapseIcon),b.addClass(a.expandIcon)))};b.bind("keydown",function(b){13===b.keyCode&&a.toggleit()}),b.bind("click",function(){a.toggleit()}),a.toggleit=function(){e=d.toggle(),f(),a.$apply()},f()}}}).directive("collapse",["$transition",function(a){var b={open:{marginTop:null,marginBottom:null,paddingTop:null,paddingBottom:null,display:"block"},closed:{marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,display:"none"}},c=function(a,c,d){c.removeClass("collapse"),c.css({height:d}),0===d?c.css(b.closed):c.css(b.open),c.addClass("collapse")};return{link:function(d,e,f){var g,h=!0;d.$watch(function(){return e[0].scrollHeight},function(){0===e[0].scrollHeight||g||(h?c(d,e,e[0].scrollHeight+"px"):c(d,e,"auto"))});var i,j=function(b){return i&&i.cancel(),i=a(e,b),i.then(function(){i=void 0},function(){i=void 0}),i},k=function(){d.postTransition=!0,h?(h=!1,g||c(d,e,"auto")):j(angular.extend({height:e[0].scrollHeight+"px"},b.open)).then(function(){g||c(d,e,"auto")}),g=!1},l=function(){g=!0,h?(h=!1,c(d,e,0)):(c(d,e,e[0].scrollHeight+"px"),j(angular.extend({height:0},b.closed)).then(function(){d.postTransition=!1}))};d.$watch(f.collapse,function(a){a?l():k()})}}}]).directive("attAccord",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{},controller:"AttAccordCtrl",templateUrl:"app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html"}}).controller("AttAccordCtrl",[function(){this.type="attAccord",this.headerCtrl,this.bodyCtrl;var a=!0;this.toggleBody=function(){a?this.expandBody():this.collapseBody(),a=!a},this.expandBody=function(){this.bodyCtrl.expand()},this.collapseBody=function(){this.bodyCtrl.collapse()}}]).controller("AttAccordHeaderCtrl",[function(){this.type="header"}]).directive("attAccordHeader",["keymap","events",function(a,b){return{restrict:"EA",transclude:!0,replace:!0,require:["^attAccord","attAccordHeader"],controller:"AttAccordHeaderCtrl",templateUrl:"app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html",link:function(b,c,d,e){var f=e[0],g=e[1];f.headerCtrl=g;var h=c.children().eq(0);b.clickFunc=function(){f.toggleBody()};var i=function(c){var d=!0;switch(c.keyCode){case a.KEY.ENTER:c.preventDefault(),b.clickFunc(),b.$apply();break;default:d=!1}return c.stopPropagation(),d};angular.isUndefined(b.isOpen)&&(b.isOpen=!1),h.bind("keydown",i)}}}]).controller("AttAccordBodyCtrl",["$scope",function(a){this.type="body",this.expand=function(){a.expand()},this.collapse=function(){a.collapse()}}]).directive("attAccordBody",["$timeout","$height",function(a,b){return{restrict:"EA",transclude:!0,replace:!0,require:["^attAccord","attAccordBody"],controller:"AttAccordBodyCtrl",templateUrl:"app/scripts/ng_js_att_tpls/accordion/attAccordBody.html",link:function(c,d,e,f){var g=f[0],h=f[1];g.bodyCtrl=h;var i;a(function(){i=d[0].offsetHeight,b(d,0,0,0)}),c.expand=function(){b(d,.05,i,1)},c.collapse=function(){b(d,.25,0,0)}}}}]),angular.module("att.abs.alert",[]).directive("attAlert",[function(){return{restrict:"EA",replace:!0,transclude:!0,scope:{alertType:"@type",showTop:"@topPos",showAlert:"="},templateUrl:"app/scripts/ng_js_att_tpls/alert/alert.html",link:function(a){"true"===a.showTop?a.cssStyle={top:"50px"}:a.cssStyle={top:"0px"},a.close=function(){a.showAlert=!1}}}}]),angular.module("att.abs.boardStrip",["att.abs.utilities"]).constant("BoardStripConfig",{maxVisibleBoards:4,boardsToScroll:1,boardLength:140,boardMargin:15}).directive("attBoard",[function(){return{restrict:"AE",replace:!0,transclude:!0,require:"^attBoardStrip",scope:{boardIndex:"=",boardLabel:"="},templateUrl:"app/scripts/ng_js_att_tpls/boardStrip/attBoard.html",link:function(a,b,c,d){var e=d;a.getCurrentIndex=function(){return e.getCurrentIndex()},a.selectBoard=function(a){isNaN(a)||e.setCurrentIndex(a)},a.isInView=function(a){return e.isInView(a)}}}}]).directive("attBoardStrip",["BoardStripConfig","$timeout","$ieVersion",function(a,b,c){return{restrict:"AE",replace:!0,transclude:!0,scope:{currentIndex:"=selectedIndex",boardsMasterArray:"=",onAddBoard:"&?"},templateUrl:"app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html",controller:function(b){if(angular.isDefined(b.boardsMasterArray)||(b.boardsMasterArray=[]),this.rectifyMaxVisibleBoards=function(){this.maxVisibleIndex>=b.boardsMasterArray.length&&(this.maxVisibleIndex=b.boardsMasterArray.length-1),this.maxVisibleIndex<0&&(this.maxVisibleIndex=0)},this.resetBoardStrip=function(){b.currentIndex=0,this.maxVisibleIndex=a.maxVisibleBoards-1,this.minVisibleIndex=0,this.rectifyMaxVisibleBoards()},b.currentIndex>0){var c=b.currentIndex;this.resetBoardStrip(),c>b.boardsMasterArray.length?b.currentIndex=b.boardsMasterArray.length-1:b.currentIndex=c}else this.resetBoardStrip();this.getCurrentIndex=function(){return b.currentIndex},this.setCurrentIndex=function(a){b.currentIndex=a},this.isInView=function(a){return a<=this.maxVisibleIndex&&a>=this.minVisibleIndex},this.getBoardsMasterArrayLength=function(){return b.boardsMasterArray.length}},link:function(d,e,f,g){var h,i=c(),j=1e3;i&&10>i&&(j=0);var k=function(b){return b*(a.boardLength+a.boardMargin)};e[0].querySelector(".board-viewport")&&angular.element(e[0].querySelector(".board-viewport")).css({width:k(a.maxVisibleBoards)+"px"});var l=function(b){return b*(a.boardLength+a.boardMargin)};e[0].querySelector(".boardstrip-container")&&(angular.element(e[0].querySelector(".boardstrip-container")).css({width:l(g.getBoardsMasterArrayLength())+"px"}),angular.element(e[0].querySelector(".boardstrip-container")).css({left:"0px"}));var m=function(){var b;return b=g.getBoardsMasterArrayLength()<=a.maxVisibleBoards?0:g.minVisibleIndex*(a.boardLength+a.boardMargin)*-1},n=function(a,b,c){for(var d=0;d<a.length;d++)angular.element(a[d]).attr("tabindex","-1");for(var d=b;c>=d;d++)angular.element(a[d]).attr("tabindex","0")};d.$watchCollection("boardsMasterArray",function(c,d){c!==d&&(c.length<d.length?(g.resetBoardStrip(),b(function(){var a=e[0].querySelectorAll("[att-board]");if(0!==a.length){var c=angular.element(e[0].querySelector(".boardstrip-container"))[0].style.left,d=m();c!==d+"px"?(angular.element(e[0].querySelector(".boardstrip-container")).css({left:d+"px"}),b.cancel(h),h=b(function(){a[0].focus()},j)):a[0].focus()}else e[0].querySelector("div.boardstrip-item--add").focus();angular.element(e[0].querySelector(".boardstrip-container")).css({width:l(g.getBoardsMasterArrayLength())+"px"})})):(g.maxVisibleIndex=g.getBoardsMasterArrayLength()-1,g.minVisibleIndex=Math.max(g.maxVisibleIndex-a.maxVisibleBoards+1,0),g.setCurrentIndex(g.maxVisibleIndex),b(function(){angular.element(e[0].querySelector(".boardstrip-container")).css({width:l(g.getBoardsMasterArrayLength())+"px"});var a=angular.element(e[0].querySelector(".boardstrip-container"))[0].style.left,c=m(),d=e[0].querySelectorAll("[att-board]");a!==c+"px"?(angular.element(e[0].querySelector(".boardstrip-container")).css({left:c+"px"}),b.cancel(h),h=b(function(){d[d.length-1].focus()},j)):d[d.length-1].focus(),n(d,g.minVisibleIndex,g.maxVisibleIndex)})))}),d.nextBoard=function(){g.maxVisibleIndex+=a.boardsToScroll,g.rectifyMaxVisibleBoards(),g.minVisibleIndex=g.maxVisibleIndex-(a.maxVisibleBoards-1),b.cancel(h),angular.element(e[0].querySelector(".boardstrip-container")).css({left:m()+"px"}),b(function(){var a=e[0].querySelectorAll("[att-board]");if(n(a,g.minVisibleIndex,g.maxVisibleIndex),!d.isNextBoard())try{a[a.length-1].focus()}catch(b){}},j)},d.prevBoard=function(){g.minVisibleIndex-=a.boardsToScroll,g.minVisibleIndex<0&&(g.minVisibleIndex=0),g.maxVisibleIndex=g.minVisibleIndex+a.maxVisibleBoards-1,g.rectifyMaxVisibleBoards(),b.cancel(h),angular.element(e[0].querySelector(".boardstrip-container")).css({left:m()+"px"}),b(function(){var a=e[0].querySelectorAll("[att-board]");if(n(a,g.minVisibleIndex,g.maxVisibleIndex),
-0===g.minVisibleIndex)try{e[0].querySelector("div.boardstrip-item--add").focus()}catch(b){}})},d.isPrevBoard=function(){return g.minVisibleIndex>0},d.isNextBoard=function(){return g.getBoardsMasterArrayLength()-1>g.maxVisibleIndex}}}}]).directive("attAddBoard",["BoardStripConfig","$parse","$timeout",function(a,b,c){return{restrict:"AE",replace:!0,require:"^attBoardStrip",scope:{onAddBoard:"&?"},templateUrl:"app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html",link:function(a,c,d,e){a.addBoard=function(){d.onAddBoard&&(a.onAddBoard=b(a.onAddBoard),a.onAddBoard())}}}}]).directive("attBoardNavigation",["keymap","events",function(a,b){return{restrict:"AE",link:function(c,d){var e=a.KEY.LEFT,f=a.KEY.RIGHT;d.bind("keydown",function(a){switch(a.keyCode||(a.keyCode=a.which),a.keyCode){case f:if(b.preventDefault(a),b.stopPropagation(a),d[0].nextElementSibling&&parseInt(angular.element(d[0].nextElementSibling).attr("tabindex"))>=0)angular.element(d[0])[0].nextElementSibling.focus();else{var c=angular.element(d[0])[0];do{if(!c.nextSibling)break;c=c.nextSibling}while(c&&"LI"!==c.tagName);c.tagName&&"LI"===c.tagName&&parseInt(angular.element(c).attr("tabindex"))>=0&&c.focus()}break;case e:if(b.preventDefault(a),b.stopPropagation(a),d[0].previousElementSibling&&parseInt(angular.element(d[0].previousElementSibling).attr("tabindex"))>=0)angular.element(d[0])[0].previousElementSibling.focus();else{var g=angular.element(d[0])[0];do{if(!g.previousSibling)break;g=g.previousSibling}while(g&&"LI"!==g.tagName);g.tagName&&"LI"===g.tagName&&parseInt(angular.element(c).attr("tabindex"))>=0&&g.focus()}}})}}}]),angular.module("att.abs.breadCrumbs",[]).constant("classConstant",{defaultClass:"breadcrumbs__link",activeClass:"breadcrumbs__link--active"}).directive("attCrumb",["classConstant",function(a){return{restrict:"A",link:function(b,c,d){c.addClass(a.defaultClass),"active"===d.attCrumb&&c.addClass(a.activeClass),c.hasClass("last")||c.after('<i class="breadcrumbs__item"></i>')}}}]),angular.module("att.abs.buttons",["att.abs.position","att.abs.utilities"]).constant("btnConfig",{btnClass:"button",btnPrimaryClass:"button--primary",btnSecondaryClass:"button--secondary",btnDisabledClass:"button--inactive",btnSmallClass:"button--small"}).directive("attButton",["btnConfig",function(a){return{restrict:"A",link:function(b,c,d){c.addClass(a.btnClass),"small"===d.size&&c.addClass(a.btnSmallClass),d.$observe("btnType",function(b){"primary"===b?(c.addClass(a.btnPrimaryClass),c.removeClass(a.btnSecondaryClass),c.removeClass(a.btnDisabledClass),c.removeAttr("disabled")):"secondary"===b?(c.addClass(a.btnSecondaryClass),c.removeClass(a.btnPrimaryClass),c.removeClass(a.btnDisabledClass),c.removeAttr("disabled")):"disabled"===b&&(c.addClass(a.btnDisabledClass),c.removeClass(a.btnPrimaryClass),c.removeClass(a.btnSecondaryClass),c.attr("disabled","disabled"))})}}}]).directive("attButtonLoader",[function(){return{restrict:"A",replace:!1,scope:{size:"@"},template:"<div ng-class=\"{'button--loading': size === 'large','button--loading__small': size === 'small'}\"><i></i><i class=\"second__loader\"></i><i></i></div>",link:function(a,b){b.addClass("button button--inactive")}}}]).directive("attButtonHero",[function(){return{restrict:"A",replace:!1,transclude:!0,scope:{icon:"@"},template:"<div class=\"button--hero__inner\"><span ng-transclude></span> <i ng-class=\"{'icon-arrow-right': icon === 'arrow-right','icon-cart': icon === 'cart'}\"></i></div>",link:function(a,b){b.addClass("button button--hero"),b.attr("tabindex","0")}}}]).directive("attBtnDropdown",["$document","$timeout","$isElement","$documentBind","keymap","events",function(a,b,c,d,e,f){return{restrict:"EA",scope:{type:"@dropdowntype"},replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html",link:function(g,h){g.isOpen=!1;var i=-1,j=[],k=void 0;b(function(){j=h.find("li"),k=h.find("button")[0]},10);var l=g.toggle=function(a){angular.isUndefined(a)||""===a?g.isOpen=!g.isOpen:g.isOpen=a},m=function(){i+1<j.length&&(i++,j[i].focus())},n=function(){i-1>=0&&(i--,j[i].focus())};h.bind("keydown",function(a){var b=a.keyCode;if(e.isAllowedKey(b)||e.isControl(a)||e.isFunctionKey(a))switch(b){case e.KEY.ENTER:i>0&&(k.focus(),g.$apply());break;case e.KEY.ESC:l(!1),i=-1,k.focus(),g.$apply();break;case e.KEY.DOWN:m(),g.$apply(),f.preventDefault(a),f.stopPropagation(a);break;case e.KEY.UP:n(),g.$apply(),f.preventDefault(a),f.stopPropagation(a)}else b===e.KEY.TAB&&(l(!1),i=-1,g.$apply())});var o=function(b){var d=c(angular.element(b.target),h,a);if(!d){l(!1),i=-1;for(var e=0;e<j.length;e++)angular.element(j[e]).removeClass("selected");k.focus(),g.$apply()}};d.click("isOpen",o,g)}}}]),angular.module("att.abs.checkbox",[]).constant("attCheckboxConfig",{activeClass:"att-checkbox--on",disabledClass:"att-checkbox--disabled"}).directive("checkboxLimit",function(){return{scope:{checkboxLimit:"=",selectLimit:"@?",maxSelected:"&?"},restrict:"A",require:"checkboxLimit",controller:["$scope",function(a){a.limit=!0,this.getMaxLimits=function(){return a.limit},this.setMaxLimits=function(b){a.limit=b},this.maxCheckboxSelected=function(){a.maxSelected()}}],link:function(a,b,c,d){a.$watch("checkboxLimit",function(){var b=0;for(var c in a.checkboxLimit)a.checkboxLimit.hasOwnProperty(c)&&a.checkboxLimit[c]&&(b+=1);b>=parseInt(a.selectLimit)?d.setMaxLimits(!1):d.setMaxLimits(!0)},!0)}}}).directive("attCheckbox",["$compile","attCheckboxConfig",function(a,b){return{scope:{},restrict:"A",require:["ngModel","^?checkboxLimit"],link:function(c,d,e,f){var g=f[0],h=f[1],i=a('<div tabindex="0" role="checkbox" att-accessibility-click="13,32" aria-label="Checkbox" ng-click="updateModel($event)" class="att-checkbox"></div>')(c);d.css({display:"none"}),d.wrap(i),d.parent().append('<div class="att-checkbox__indicator"></div>'),d.parent().attr("title",e.title),d.parent().attr("aria-label",e.title),d.parent().attr("id",e.id),d.removeAttr("id"),g.$render=function(){var a=g.$modelValue?!0:!1;d.parent().toggleClass(b.activeClass,a),d.parent().attr("aria-checked",a)},c.updateModel=function(a){c.disabled||(g.$setViewValue(d.parent().hasClass(b.activeClass)?!1:!0),h&&!h.getMaxLimits()&&g.$modelValue?(h.maxCheckboxSelected(),g.$setViewValue(d.parent().hasClass(b.activeClass)?!0:!1)):g.$render()),a.preventDefault()},e.$observe("disabled",function(a){c.disabled=a||"disabled"===a||"true"===a,d.parent().toggleClass(b.disabledClass,c.disabled),d.parent().attr("tabindex",c.disabled?"-1":"0")})}}}]).directive("checkboxGroup",["$compile",function(a){return{scope:{checkboxGroup:"=",checkboxGroupValue:"=?"},restrict:"A",link:function(b,c,d){b.checkboxState="none",void 0===b.checkboxGroupValue&&(b.checkboxGroupValue="indeterminate"),c.css({display:"none"}),c.wrap(a('<div tabindex="0" role="checkbox" att-accessibility-click="13,32" ng-click="updateModel($event)" class="att-checkbox"></div>')(b)),c.parent().append('<div class="att-checkbox__indicator"></div>'),c.parent().attr("title",d.title),c.parent().attr("aria-label",d.title),b.$watch("checkboxState",function(a){"all"===a?(c.parent().addClass("att-checkbox--on"),c.parent().removeClass("att-checkbox--indeterminate"),c.parent().attr("aria-checked",!0)):"none"===a?(c.parent().removeClass("att-checkbox--on"),c.parent().removeClass("att-checkbox--indeterminate"),c.parent().attr("aria-checked",!1)):"indeterminate"===a&&(c.parent().removeClass("att-checkbox--on"),c.parent().addClass("att-checkbox--indeterminate"),c.parent().attr("aria-checked",!0))}),b.updateModel=function(a){if(c.parent().hasClass("att-checkbox--on")){c.parent().removeClass("att-checkbox--on");for(var d in b.checkboxGroup)b.checkboxGroup.hasOwnProperty(d)&&(b.checkboxGroup[d]=!1)}else{c.parent().addClass("att-checkbox--on");for(var e in b.checkboxGroup)b.checkboxGroup.hasOwnProperty(e)&&(b.checkboxGroup[e]=!0)}a.preventDefault()},b.$watch("checkboxGroupValue",function(a){if(a===!1){c.parent().removeClass("att-checkbox--on");for(var d in b.checkboxGroup)b.checkboxGroup.hasOwnProperty(d)&&(b.checkboxGroup[d]=!1)}else if(a===!0){c.parent().addClass("att-checkbox--on");for(var e in b.checkboxGroup)b.checkboxGroup.hasOwnProperty(e)&&(b.checkboxGroup[e]=!0)}}),b.$watch("checkboxGroup",function(){var a=0,c=0,d=0;for(var e in b.checkboxGroup)b.checkboxGroup.hasOwnProperty(e)&&(d+=1,b.checkboxGroup[e]?a+=1:b.checkboxGroup[e]||(c+=1));d===a?(b.checkboxState="all",b.checkboxGroupValue=!0):d===c?(b.checkboxState="none",b.checkboxGroupValue=!1):(b.checkboxState="indeterminate",b.checkboxGroupValue="indeterminate")},!0)}}}]),angular.module("att.abs.colorselector",[]).directive("colorSelectorWrapper",[function(){return{scope:{selected:"=",iconColor:"@"},restrict:"AE",transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/colorselector/colorselector.html",link:function(a){a.applycolor={"background-color":a.iconColor},a.selectedcolor=function(b){a.selected=b}}}}]).directive("colorSelector",["$compile",function(a){return{restrict:"A",scope:{colorSelector:"@",ngModel:"="},link:function(b,c,d){c.removeAttr("color-selector");var e=d.title,f=angular.element('<color-selector-wrapper selected="ngModel" title="'+e+'" icon-color="{{colorSelector}}">'+c.prop("outerHTML")+"</color-selector-wrapper>"),g=a(f)(b);c.replaceWith(g)}}}]),angular.module("att.abs.datepicker",["att.abs.position","att.abs.utilities"]).constant("datepickerConfig",{dateFormat:"MM/dd/yyyy",dayFormat:"d",monthFormat:"MMMM",yearFormat:"yyyy",dayHeaderFormat:"EEEE",dayTitleFormat:"MMMM yyyy",disableWeekend:!1,disableSunday:!1,startingDay:0,minDate:null,maxDate:null,mode:0,dateFilter:{defaultText:"Select from list"},datepickerEvalAttributes:["dateFormat","dayFormat","monthFormat","yearFormat","dayHeaderFormat","dayTitleFormat","disableWeekend","disableSunday","startingDay","mode"],datepickerWatchAttributes:["min","max"]}).factory("datepickerService",["datepickerConfig","dateFilter",function(a,b){var c=function(b,c){if(angular.isDefined(b)&&null!==b&&angular.isDefined(c)&&null!==c){var d=a.datepickerEvalAttributes.concat(a.datepickerWatchAttributes);for(var e in b){var f=b[e];-1!==d.indexOf(e)&&angular.isDefined(f)&&c.attr(e.toSnakeCase(),e)}}},d=function(b,c){if(angular.isDefined(b)&&null!==b&&angular.isDefined(c)&&null!==c){var d=function(a,b){c[a]=c.$parent.$eval(b)},e=function(a,b){c.$parent.$watch(b,function(b){c[a]=b}),c.$watch(a,function(a){c.$parent[b]=a})},f=a.datepickerEvalAttributes,g=a.datepickerWatchAttributes;for(var h in b){var i=b[h];-1!==f.indexOf(h)&&angular.isDefined(i)?d(h,i):-1!==g.indexOf(h)&&angular.isDefined(i)&&e(h,i)}}},e=function(a,c){if(a&&c){var d;-1!==c.indexOf("/")?d="/":-1!==c.indexOf("-")?d="-":-1!==c.indexOf(".")&&(d=".");var e=a.split(d),f=c.split(d);if(e.length!==f.length)return!1;for(var g=0;g<e.length;g++)e[g]=e[g].lPad(f[g].length,"0");var h=e.join(d),i=b(new Date(h),c);return h===i}};return{setAttributes:c,bindScope:d,validateDateString:e}}]).controller("DatepickerController",["$scope","$attrs","dateFilter","datepickerConfig",function(a,b,c,d){function e(b,c){return angular.isDefined(b)?a.$parent.$eval(b):c}function f(a,b){return new Date(a,b,0).getDate()}function g(a,b){for(var c=[],d=a,e=0;b>e;)c[e++]=new Date(d),d.setDate(d.getDate()+1);return c}function h(b){return b&&angular.isDate(a.currentDate)&&0===u(b,a.currentDate)?!0:!1}function i(b){return b&&angular.isDate(a.fromDate)&&0===u(b,a.fromDate)?!0:!1}function j(b){return b&&angular.isDate(a.fromDate)&&angular.isDate(a.currentDate)&&0===u(b,a.currentDate)?!0:!1}function k(b){return b&&angular.isDate(a.fromDate)&&angular.isDate(a.currentDate)&&u(b,a.fromDate)>=0&&u(b,a.currentDate)<=0?!0:!1}function l(a){return"Saturday"===c(a,s.dayHeader)||"Sunday"===c(a,s.dayHeader)?!0:!1}function m(b){return 0===u(b,a.resetTime(new Date))?!0:!1}function n(b){return b&&angular.isDate(a.focusedDate)&&0===u(b,a.focusedDate)?!0:!1}function o(b,c){return a.minDate&&a.minDate.getTime()>=b.getTime()&&a.minDate.getTime()<=c.getTime()}function p(b,c){return a.maxDate&&a.maxDate.getTime()>=b.getTime()&&a.maxDate.getTime()<=c.getTime()}function q(a){if(a){var b={pre:a.substr(0,3),post:a};return b}}function r(a){return{date:a.date,label:c(a.date,a.formatDay),header:c(a.date,a.formatHeader),focused:!!a.isFocused,selected:!!a.isSelected,from:!!a.isFromDate,to:!!a.isToDate,dateRange:!!a.isDateRange,oldMonth:!!a.oldMonth,nextMonth:!!a.newMonth,disabled:!!a.isDisabled,today:!!a.isToday,weekend:!!a.isWeakend}}var s={date:e(b.dateFormat,d.dateFormat),day:e(b.dayFormat,d.dayFormat),month:e(b.monthFormat,d.monthFormat),year:e(b.yearFormat,d.yearFormat),dayHeader:e(b.dayHeaderFormat,d.dayHeaderFormat),dayTitle:e(b.dayTitleFormat,d.dayTitleFormat),disableWeekend:e(b.disableWeekend,d.disableWeekend),disableSunday:e(b.disableSunday,d.disableSunday)},t=e(b.startingDay,d.startingDay);a.mode=e(b.mode,d.mode),a.minDate=d.minDate?a.resetTime(d.minDate):null,a.maxDate=d.maxDate?a.resetTime(d.maxDate):null;var u=this.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate())-new Date(b.getFullYear(),b.getMonth(),b.getDate())},v=this.isDisabled=function(b){return s.disableWeekend!==!0||"Saturday"!==c(b,s.dayHeader)&&"Sunday"!==c(b,s.dayHeader)?s.disableSunday===!0&&"Sunday"===c(b,s.dayHeader)?!0:a.minDate&&u(b,a.minDate)<0||a.maxDate&&u(b,a.maxDate)>0:!0};this.modes=[{name:"day",getVisibleDates:function(b,d){var e=b.getFullYear(),u=b.getMonth(),w=new Date(e,u,1),x=new Date(e,u+1,0),y=t-w.getDay(),z=y>0?7-y:-y,A=new Date(w),B=0;z>0&&(A.setDate(-z+1),B+=z),B+=f(e,u+1),B+=(7-B%7)%7;for(var C=g(A,B),D=[],E=0;B>E;E++){var F=new Date(C[E]);C[E]=r({date:F,formatDay:s.day,formatHeader:s.dayHeader,isFocused:n(F),isSelected:h(F),isFromDate:i(F),isToDate:j(F),isDateRange:k(F),oldMonth:new Date(F.getFullYear(),F.getMonth(),1,0,0,0).getTime()<new Date(e,u,1,0,0,0).getTime(),newMonth:new Date(F.getFullYear(),F.getMonth(),1,0,0,0).getTime()>new Date(e,u,1,0,0,0).getTime(),isDisabled:v(F),isToday:m(F),isWeakend:l(F)})}for(var G=0;7>G;G++)D[G]=q(c(C[G].date,s.dayHeader));return"top"===d?(a.disablePrevTop=o(w,x),a.disableNextTop=p(w,x)):"bottom"===d?(a.disablePrevBottom=o(w,x),a.disableNextBottom=p(w,x)):(a.disablePrevTop=a.disablePrevBottom=o(w,x),a.disableNextTop=a.disableNextBottom=p(w,x)),a.disablePrev=a.disablePrevTop||a.disablePrevBottom,a.disableNext=a.disableNextTop||a.disableNextBottom,{objects:C,title:c(b,s.dayTitle),labels:D}},split:7,step:{months:1}},{name:"month",getVisibleDates:function(a){for(var b=[],d=[],e=a.getFullYear(),f=0;12>f;f++){var g=new Date(e,f,1);b[f]=r({date:g,formatDay:s.month,formatHeader:s.month,isFocused:n(g),isSelected:h(g),isFromDate:i(g),isToDate:j(g),isDateRange:k(g),oldMonth:!1,newMonth:!1,isDisabled:v(g),isToday:m(g),isWeakend:!1})}return{objects:b,title:c(a,s.year),labels:d}},split:3,step:{years:1}}]}]).directive("datepicker",["$timeout",function(a){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/datepicker/datepicker.html",scope:{currentDate:"=?current",fromDate:"=?from"},require:"datepicker",controller:"DatepickerController",link:function(b,c,d,e){function f(a,b){for(var c=[];a.length>0;)c.push(a.splice(0,b));return c}function g(a){if(angular.isDate(a)&&!isNaN(a)?h=new Date(a):h||(h=new Date),h){var c;1===b.mode?(h=new Date,c=k(angular.copy(h),-1)):c=angular.copy(h);var d=i.modes[b.mode],e=d.getVisibleDates(c,"top");b.currentRows=f(e.objects,d.split),b.currentTitle=e.title,b.labels=e.labels||[];var g=d.getVisibleDates(k(angular.copy(c),1),"bottom");b.nextRows=f(g.objects,d.split),b.nextTitle=g.title}}var h,i=e,j=!1;b.focusedDate,b.resetTime=function(a){var c;return isNaN(new Date(a))?null:(c=new Date(a),c=1===b.mode?new Date(c.getFullYear(),c.getMonth()):new Date(c.getFullYear(),c.getMonth(),c.getDate()))},d.min&&b.$parent.$watch(d.min,function(a){b.minDate=a?b.resetTime(a):null,g()}),d.max&&b.$parent.$watch(d.max,function(a){b.maxDate=a?b.resetTime(a):null,g()});var k=function(a,c){var d=i.modes[b.mode].step;return a.setDate(1),a.setMonth(a.getMonth()+c*(d.months||0)),a.setFullYear(a.getFullYear()+c*(d.years||0)),a},l=function(a){var c=new Date(a.getFullYear(),a.getMonth(),a.getDate());b.currentDate=c},m=function(a){var c=new Date(a.getFullYear(),a.getMonth(),a.getDate());b.fromDate=c};b.select=function(a){j=!0,d.from?angular.isDate(b.fromDate)&&angular.isDate(b.currentDate)||(angular.isDate(b.fromDate)?l(a):angular.isDate(b.fromDate)||m(a)):l(a),b.focusedDate=a};var n=function(c,d){m(d),a(function(){j=!0,b.focusedDate=d,l(c)})};b.move=function(a){h=k(angular.copy(h),a),g()},b.$watch("currentDate",function(a){return angular.isDate(a)&&!isNaN(a)&&i.isDisabled(a)?void(b.currentDate=null):d.from&&!isNaN(a)&&!isNaN(b.fromDate)&&i.compare(a,b.fromDate)<0?void n(b.fromDate,a):(j?(g(),j=!1):angular.isDefined(a)&&null!==a?g(a):g(),void(b.focusedDate=void 0))}),b.$watch("fromDate",function(a){if(angular.isDate(a)&&!isNaN(a)&&i.isDisabled(a))return void(b.fromDate=null);if(d.from){if(!isNaN(b.currentDate)&&!isNaN(a)&&i.compare(b.currentDate,a)<0)return void n(a,b.currentDate);j?(g(),j=!1):angular.isDefined(a)&&null!==a?g(a):g()}b.focusedDate=void 0})}}}]).directive("datepickerPopup",["$document","datepickerService","$isElement","$documentBind",function(a,b,c,d){var e=function(e,f,g){b.bindScope(g,e),e.isOpen=!1;var h=e.toggle=function(a){a===!0||a===!1?e.isOpen=a:e.isOpen=!e.isOpen};e.$watch("current",function(){h(!1)});var i=function(b){var d=c(angular.element(b.target),f,a);d||(h(!1),e.$apply())};d.click("isOpen",i,e)};return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html",scope:{current:"=current"},compile:function(a,c){var d=a.find("span").eq(1);return d.attr("current","current"),b.setAttributes(c,d),e}}}]).directive("attDatepicker",["$log",function(a){return{restrict:"A",require:"ngModel",scope:{},controller:["$scope","$element","$attrs","$compile","datepickerConfig","datepickerService",function(a,b,c,d,e,f){var g=angular.isDefined(c.dateFormat)?a.$parent.$eval(c.dateFormat):e.dateFormat,h='<div class="sr-focus hidden-spoken" tabindex="-1">the date you selected is {{$parent.current | date : \''+g+"'}}</div>";b.removeAttr("att-datepicker"),b.removeAttr("ng-model"),b.attr("ng-model","$parent.current"),b.attr("aria-describedby","datepicker"),b.attr("format-date",g),b.attr("att-input-deny","[^0-9/-]"),b.attr("maxlength",10);var i=angular.element("<div></div>");i.attr("datepicker-popup",""),i.attr("current","current"),f.setAttributes(c,i),f.bindScope(c,a),i.html(""),i.append(b.prop("outerHTML")),null===navigator.userAgent.match(/MSIE 8/)&&i.append(h);var j=i.prop("outerHTML");j=d(j)(a),b.replaceWith(j)}],link:function(b,c,d,e){return e?(b.$watch("current",function(a){e.$setViewValue(a)}),void(e.$render=function(){b.current=e.$viewValue})):void a.error("ng-model is required.")}}}]).directive("formatDate",["dateFilter","datepickerService",function(a,b){return{restrict:"A",require:"ngModel",link:function(c,d,e,f){var g="";e.$observe("formatDate",function(a){g=a});var h=function(b){return b?(f.$setValidity("invalidDate",!0),a(b,g)):(f.$setValidity("invalidDate",!1),d.val())},i=function(a){return b.validateDateString(a,g)?(f.$setValidity("invalidDate",!0),new Date(a)):(f.$setValidity("invalidDate",!1),null)};f.$formatters.unshift(h),f.$parsers.unshift(i)}}}]).directive("attDateFilter",["$document","dateFilter","datepickerConfig","datepickerService","$isElement","$documentBind",function(a,b,c,d,e,f){var g=function(g,h,i,j){d.bindScope(i,g),g.selectedOption=c.dateFilter.defaultText,g.showDropdownList=!1,g.showCalendar=!1,g.applyButtonType="disabled",g.currentSelection="";var k=angular.isDefined(i.dateFormat)?g.$parent.$eval(i.dateFormat):c.dateFormat,l=!1,m=function(a){if(!l){var c=k.toUpperCase(),d=k.toUpperCase();isNaN(new Date(g.fromDate))||(c=b(g.fromDate,k)),isNaN(new Date(g.currentDate))||(d=b(g.currentDate,k)),"Custom Single Date"===a?(j.$setValidity("invalidDate",!0),g.maxLength=10,g.selectedOption=d):"Custom Range"===a&&(j.$setValidity("invalidDate",!0),j.$setValidity("invalidDateRange",!0),g.maxLength=21,g.selectedOption=c+"-"+d)}},n=g.clear=function(a){g.fromDate=void 0,g.currentDate=void 0,g.applyButtonType="disabled",a||(j.$setValidity("invalidDate",!0),j.$setValidity("invalidDateRange",!0),m(g.currentSelection))},o=function(){g.showCalendar=!0},p=function(){g.showCalendar=!1,"Custom Single Date"!==g.currentSelection&&"Custom Range"!==g.currentSelection&&n(!0)},q=g.showDropdown=function(a){a===!0||a===!1?g.showDropdownList=a:g.showDropdownList=!g.showDropdownList,g.showDropdownList?("Custom Single Date"===g.currentSelection||"Custom Range"===g.currentSelection)&&o():(g.focusInputButton=!0,p())};g.resetTime=function(a){var b;return isNaN(new Date(a))?null:(b=new Date(a),new Date(b.getFullYear(),b.getMonth(),b.getDate()))},g.getDropdownText=function(){l=!0;var a=g.selectedOption;if("Custom Single Date"===g.currentSelection)!isNaN(new Date(a))&&d.validateDateString(a,k)?(j.$setValidity("invalidDate",!0),g.fromDate=void 0,g.currentDate=new Date(a)):(j.$setValidity("invalidDate",!1),n(!0));else if("Custom Range"===g.currentSelection)if(-1===a.indexOf("-")||2!==a.split("-").length&&6!==a.split("-").length)j.$setValidity("invalidDateRange",!1),n(!0);else{j.$setValidity("invalidDateRange",!0);var b=a.split("-");if(2===b.length)b[0]=b[0].trim(),b[1]=b[1].trim();else if(6===b.length){var c=b[0].trim()+"-"+b[1].trim()+"-"+b[2].trim(),e=b[3].trim()+"-"+b[4].trim()+"-"+b[5].trim();b[0]=c,b[1]=e}if(!isNaN(new Date(b[0]))&&!isNaN(new Date(b[1]))&&d.validateDateString(b[0],k)&&d.validateDateString(b[1],k)){j.$setValidity("invalidDate",!0);var f=new Date(b[0]),h=new Date(b[1]);f.getTime()<h.getTime()?(j.$setValidity("invalidDateRange",!0),g.fromDate=f,g.currentDate=h):(j.$setValidity("invalidDateRange",!1),n(!0))}else j.$setValidity("invalidDate",!1),n(!0)}},g.untrackInputChange=function(){l=!1},g.selectAdvancedOption=function(a,b){g.currentSelection=a,b||(n(),o()),g.$watch("currentDate",function(b){isNaN(new Date(b))||(g.applyButtonType="primary",m(a),l||(g.focusApplyButton=!0))}),g.$watch("fromDate",function(b){isNaN(new Date(b))||m(a)}),"Custom Single Date"===a?g.focusSingleDateCalendar=!0:"Custom Range"===a&&(g.focusRangeCalendar=!0)},g.resetFocus=function(){g.focusSingleDateCalendar=!1,g.focusRangeCalendar=!1,g.focusApplyButton=!1},g.apply=function(){g.dateRange.selection=g.selectedOption,isNaN(new Date(g.fromDate))?(g.from=void 0,g.dateRange.from=void 0):(g.from=g.fromDate,g.dateRange.from=g.fromDate),isNaN(new Date(g.currentDate))?(g.current=void 0,g.dateRange.current=void 0):(g.current=g.currentDate,g.dateRange.current=g.currentDate),q()},g.$watchCollection(function(){return g.dateRange},function(a){if(j){var b=angular.copy(a);j.$setViewValue(b)}}),j.$render=function(){if(j.$viewValue){var a=j.$viewValue;g.selectedOption=a.selection,g.fromDate=a.from,g.currentDate=a.current,void 0!==g.fromDate&&void 0!==g.currentDate?(g.selectAdvancedOption("Custom Range",!0),g.dateRange.from=g.fromDate,g.dateRange.current=g.currentDate):void 0!==g.currentDate&&(g.selectAdvancedOption("Custom Single Date",!0),g.dateRange.from=void 0,g.dateRange.current=g.currentDate)}},g.cancel=function(){g.currentSelection="",g.selectedOption=c.dateFilter.defaultText,q()};var r=function(b){var c=e(angular.element(b.target),h,a);c||(g.cancel(),g.$apply())};f.click("showDropdownList",r,g)};return{restrict:"EA",scope:{from:"=?from",current:"=?current"},replace:!0,require:"?ngModel",transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/datepicker/dateFilter.html",controller:["$scope","$element","$attrs",function(a){a.dateRange={selection:void 0,from:void 0,current:void 0},this.selectOption=function(b,c,d){a.selectedOption=d,a.currentSelection=d,a.dateRange.selection=d,a.dateRange.current=a.resetTime(c),a.dateRange.from=a.resetTime(b),a.showDropdown()},a.checkCurrentSelection=this.checkCurrentSelection=function(b){return b===a.currentSelection?!0:!1}}],compile:function(a,b){var c=a.find("span").eq(4),e=a.find("span").eq(5);return e.attr("from","fromDate"),c.attr("current","currentDate"),e.attr("current","currentDate"),d.setAttributes(b,c),d.setAttributes(b,e),g}}}]).directive("attDateFilterList",function(){return{restrict:"EA",scope:{fromDate:"=fromDate",toDate:"=toDate",caption:"=caption",disabled:"=disabled"},require:"^attDateFilter",transclude:!0,replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html",link:function(a,b,c,d){a.selectOption=function(a,b,c){d.selectOption(a,b,c)},a.checkCurrentSelection=d.checkCurrentSelection}}}),angular.module("att.abs.devNotes",[]).directive("attDevNotes",function(){return{restrict:"EA",transclude:!0,scope:{},controller:function(a){var b=a.panes=[];a.select=function(a){angular.forEach(b,function(a){a.selected=!1}),a.selected=!0},this.addPane=function(c){0===b.length&&a.select(c),b.push(c)}},template:'<div><ul class="tabs"><li ng-repeat="pane in panes" ng-class="{active:pane.selected}"><a href="javascript:void(0)" ng-click="select(pane)">{{pane.title}}</a></li></ul><div ng-transclude></div></div>',replace:!0}}).directive("pane",function(){return{require:"^attDevNotes",restrict:"EA",transclude:!0,scope:{title:"@"},link:function(a,b,c,d){d.addPane(a)},template:'<div class="tab-pane" ng-class="{active: selected}">'+"<pre ng-class=\"{'language-markup':title=='HTML','language-javascript':title=='JavaScript','language-json':title=='JSON'}\" class=\" line-numbers\"><code ng-transclude></code></pre></div>",replace:!0}}),angular.module("att.abs.dividerLines",[]).directive("attDividerLines",[function(){return{scope:{attDividerLines:"@"},restrict:"A",replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html",link:function(a,b,c){a.lightContainer=c.attDividerLines}}}]),angular.module("att.abs.dragdrop",[]).directive("attFileDrop",["$parse",function(a){return{restrict:"A",scope:{fileModel:"=",onDrop:"&",attFileDrop:"&"},controller:["$scope","$attrs",function(a,b){""!==b.attFileDrop&&(a.onDrop=a.attFileDrop),this.onDrop=a.onDrop}],link:function(b,c){c.addClass("dragdrop"),c.bind("dragover",function(a){return a.originalEvent&&(a.dataTransfer=a.originalEvent.dataTransfer),a.dataTransfer.dropEffect="move",a.preventDefault&&a.preventDefault(),c.addClass("dragdrop-over"),!1}),c.bind("dragenter",function(a){return a.preventDefault&&a.preventDefault(),c.addClass("dragdrop-over"),!1}),c.bind("dragleave",function(){return c.removeClass("dragdrop-over"),!1}),c.bind("drop",function(d){return d.preventDefault&&d.preventDefault(),d.stopPropagation&&d.stopPropagation(),d.originalEvent&&(d.dataTransfer=d.originalEvent.dataTransfer),c.removeClass("dragdrop-over"),d.dataTransfer.files&&d.dataTransfer.files.length>0&&(b.fileModel=d.dataTransfer.files[0],b.$apply(),"function"==typeof b.onDrop&&(b.onDrop=a(b.onDrop),b.onDrop())),!1})}}}]).directive("attFileLink",[function(){return{restrict:"EA",require:"^?attFileDrop",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html",scope:{fileModel:"=?",onFileSelect:"&",attFileLink:"&"},controller:["$scope","$parse",function(a,b){this.setFileModel=function(b){a.takeFileModelFromParent?(a.$parent.fileModel=b,a.$parent.$apply()):(a.fileModel=b,a.$apply())},this.callbackFunction=function(){"function"==typeof a.onFileSelect&&(a.onFileSelect=b(a.onFileSelect),a.onFileSelect())}}],link:function(a,b,c,d){a.takeFileModelFromParent=!1,!c.fileModel&&d&&(a.takeFileModelFromParent=!0),""!==c.attFileLink?a.onFileSelect=a.attFileLink:!c.onFileSelect&&d&&(a.onFileSelect=d.onDrop)}}}]).directive("attFileChange",["$log","$rootScope",function(a,b){return{restrict:"A",require:"^attFileLink",link:function(c,d,e,f){function g(c){if(c.target.files&&c.target.files.length>0)f.setFileModel(c.target.files[0]),f.callbackFunction();else{var d=c.target.value;try{var e=new ActiveXObject("Scripting.FileSystemObject");f.setFileModel(e.getFile(d)),f.callbackFunction()}catch(c){var g="Error: Please follow the guidelines of Drag and Drop component on Sandbox demo page.";a.error(g),b.$broadcast("att-file-link-failure",g)}}}d.bind("change",g)}}}]),angular.module("att.abs.drawer",["att.abs.utilities"]).directive("attDrawer",["$document","$timeout","DOMHelper",function(a,b,c){return{restrict:"EA",replace:!0,transclude:!0,scope:{drawerOpen:"=?",drawerAutoClose:"&?"},template:'<div><div class="att-drawer" ng-transclude></div><div ng-class="{\'drawer-backdrop\':drawerOpen}"></div></div>',link:function(a,d,e){function f(b,c){b&&0!==b.style.width&&0!==b.style.height&&(m.style.display="none","right"===c.side||"left"===c.side?b.style.width="0px":("top"===c.side||"bottom"===c.side)&&(b.style.height="0px")),a.drawerOpen=!1,angular.isDefined(k)&&null!=k&&k.focus()}function g(a,c){k=document.activeElement,0!==a.style.width&&0!==a.style.height&&("right"===c.side||"left"===c.side?a.style.width=c.size:("top"===c.side||"bottom"===c.side)&&(a.style.height=c.size),b(function(){m.style.display="block",angular.isDefined(j)&&null!=j&&j.focus()},1e3*c.speed))}function h(a){var b={};return a&&"[object Function]"===b.toString.call(a)}var i={},j=void 0,k=void 0;i.side=e.drawerSlide||"top",i.speed=e.drawerSpeed||"0.25",i.size=e.drawerSize||"300px",i.zindex=e.drawerZindex||1e3,i.className=e.drawerClass||"att-drawer";var l=d.eq(0).children()[0],m=angular.element(l).children()[0];l.className=i.className,l.style.transitionDuration=i.speed+"s",l.style.webkitTransitionDuration=i.speed+"s",l.style.zIndex=i.zindex,l.style.position="fixed",l.style.width=0,l.style.height=0,l.style.transitionProperty="width, height","right"===i.side||"left"===i.side?(l.style.height=e.drawerCustomHeight||"100%",l.style.top=e.drawerCustomTop||"0px",l.style.bottom=e.drawerCustomBottom||"0px",l.style.right=e.drawerCustomRight||"0px"):("top"===i.side||"bottom"===i.side)&&(l.style.width=e.drawerCustomWidth||"100%",l.style.left=e.drawerCustomLeft||"0px",l.style.top=e.drawerCustomTop||"0px",l.style.right=e.drawerCustomRight||"0px"),b(function(){j=c.firstTabableElement(d[0])},10,!1),e.drawerSize&&a.$watch(function(){return e.drawerSize},function(b){i.size=b,a.drawerOpen&&g(l,i)}),a.$watch("drawerOpen",function(a){a?g(l,i):f(l,i)}),a.drawerAutoClose&&(a.$on("$locationChangeStart",function(){f(l,i),h(a.drawerAutoClose)&&a.drawerAutoClose()}),a.$on("$stateChangeStart",function(){f(l,i),h(a.drawerAutoClose)&&a.drawerAutoClose()}))}}}]),angular.module("att.abs.message",[]).directive("attMessages",[function(){return{restrict:"EA",scope:{messageType:"=?"},controller:["$scope","$element","$attrs",function(a,b,c){a.messageScope=[],this.registerScope=function(b){a.messageScope.push(b)},a.$parent.$watchCollection(c["for"],function(b){for(var c in b){if(b[c]){a.error=c;break}a.error=null}for(var d=0;d<a.messageScope.length;d++)a.messageScope[d].when===a.error?(a.messageScope[d].show(),a.setMessageType(a.messageScope[d].type)):a.messageScope[d].hide();null===a.error&&a.setMessageType(null)}),a.setMessageType=this.setMessageType=function(b){c.messageType&&(a.messageType=b)}}]}}]).directive("attMessage",[function(){return{restrict:"EA",scope:{},require:"^attMessages",link:function(a,b,c,d){d.registerScope(a),a.when=c.when||c.attMessage,a.type=c.type,a.show=function(){b.css({display:"block"})},a.hide=function(){b.css({display:"none"})},a.hide()}}}]),angular.module("att.abs.formField",["att.abs.message","att.abs.utilities"]).directive("attFormField",[function(){return{priority:101,restrict:"A",controller:function(){},link:function(a,b,c){b.wrap('<div class="form-field"></div>'),b.parent().append('<label class="form-field__label">'+c.placeholder||c.attFormField+"</label>"),b.wrap('<div class="form-field-input-container"></div>'),b.bind("keyup",function(){""!==this.value?b.parent().parent().find("label").addClass("form-field__label--show").removeClass("form-field__label--hide"):b.parent().parent().find("label").addClass("form-field__label--hide").removeClass("form-field__label--show")}),b.bind("blur",function(){
-""===this.value&&b.parent().parent().find("label").removeClass("form-field__label--hide")})}}}]).directive("attFormFieldValidation",["$compile","$log",function(a,b){return{priority:102,scope:{},restrict:"A",require:["?ngModel","?attFormField"],link:function(c,d,e,f){var g=f[0],h=f[1];return c.valid="",g?h?(d.parent().append(a(angular.element('<i class="icon-info-alert error" ng-show="valid===false">&nbsp;</i>'))(c)),d.parent().append(a(angular.element('<i class="icon-info-success success" ng-show="valid===true">&nbsp;</i>'))(c)),c.$watch("valid",function(a){a?d.parent().parent().addClass("success"):a===!1?d.parent().parent().addClass("error"):d.parent().parent().removeClass("success").removeClass("error")}),void d.bind("keyup",function(){g.$valid?c.valid=!0:g.$invalid?c.valid=!1:c.valid="",c.$apply()})):void b.error("att-form-field-validation :: att-form-field directive is required."):void b.error("att-form-field-validation :: ng-model directive is required.")}}}]).directive("attFormFieldValidationAlert",["$timeout",function(a){return{scope:{messageType:"=?"},restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html",link:function(b,c,d,e){b.showLabel=!1,b.hideLabel=!1,b.errorMessage=!1,b.warningMessage=!1;var f=function(){var a=b.messageType;"error"===a?(b.errorMessage=!0,b.warningMessage=!1):"warning"===a?(b.errorMessage=!1,b.warningMessage=!0):(b.errorMessage=!1,b.warningMessage=!1)},g=-1!==navigator.userAgent.toLowerCase().indexOf("msie 8.0");c.find("label").text(c.find("input").attr("placeholder")),c.find("input").bind("keyup",function(){""!==this.value?(b.showLabel=!0,b.hideLabel=!1,g&&c.find("label").css({top:"-20px"})):(b.showLabel=!1,b.hideLabel=!0,g&&c.find("label").css({top:"0px"})),f(),b.$apply()}),c.find("input").bind("blur",function(){""===this.value&&(b.showLabel=!1,b.hideLabel=!1),b.$apply()}),a(function(){f()},100)}}}]).constant("CoreFormsUiConfig",{phoneMask:"(___) ___-____"}).directive("attPhoneMask",["$parse","CoreFormsUiConfig",function(a,b){return{require:"ngModel",scope:{ngModel:"="},link:function(a,c,d,e){var f=navigator.userAgent.toLowerCase(),g=f.indexOf("android")>-1,h=(-1!==f.indexOf("msie 8.0"),""),i=!1;h=g?"__________":b.phoneMask,c.attr("maxlength",h.length);var j=function(a){var b=!1;return a&&(b=10===a.length),e.$setValidity("invalidPhoneNumber",i),e.$setValidity("mask",b),b},k=function(){var a,b=e.$modelValue;if(b.length){var c,d,f,g,i;for(g=[],f=h.split(""),i=f.length,c=b.substring(0,h.length),d=b.replace(/[^0-9]/g,"").split(""),a=0;i>a&&(g.push("_"===f[a]?d.shift():f[a]),0!==d.length);a++);return b=g.join(""),"("===b&&(b=""),e.$setViewValue(b),e.$render(),b}},l=function(b){b.which&&((b.which<48||b.which>57)&&(b.which<96||b.which>105)?8===b.which||9===b.which||46===b.which||13===b.which||37===b.which||39===b.which||b.ctrlKey===!0||"118"===b.which&&"86"===b.which||b.ctrlKey===!0||"99"===b.which&&"67"===b.which||b.ctrlKey===!0||"120"===b.which&&"88"===b.which||(b.preventDefault?b.preventDefault():b.returnValue=!1,c.attr("aria-label","Only numbers are allowed"),i=!1):(c.removeAttr("aria-label"),i=!0)),a.$apply()},m=function(a){var b=/^[A-Za-z]+$/,c=/^[0-9]+$/;a.match(b)&&(i=!1),a.match(c)&&(i=!0);var d="";return a&&a.length>0&&(d=a.replace(/[^0-9]/g,"")),j(d),d},n=function(a){var b="";return j(a),a&&(b=k()),b};e.$parsers.push(m),e.$formatters.push(n),c.bind("keyup",k),c.bind("keydown",l),c.bind("input",function(a){k(a),l(a)})}}}]).constant("validationTypeInt",{validationNum:{number:"1",text:"2",email:"3"}}).directive("attFormFieldPrv",["keyMapAc","validationTypeInt",function(a,b){return{priority:101,restrict:"AE",controller:["$scope",function(c){this.showHideErrorMessage=function(a){null!=c.$$prevSibling&&angular.isDefined(c.$$prevSibling)&&angular.isDefined(c.$$prevSibling.hideErrorMsg)&&(c.$$prevSibling.hideErrorMsg=a,c.$apply())},this.findAllowedCharactor=function(b){var d=a.keys;if(angular.isDefined(c.allowedSpecialCharacters)&&angular.isDefined(c.allowedSpecialCharacters.length)&&c.allowedSpecialCharacters.length>0){for(var e=c.allowedSpecialCharacters,f=!1,g=0;g<e.length;g++)if(e[g]===d[b]){f=!0;break}return f}return!1},this.validateText=function(a,b,c,d){if(angular.isDefined(b)&&0===b.length){var e=/^[a-zA-Z0-9]*$/i;return e.test(c)}var f="^[a-zA-Z0-9"+d+"]*$",g=new RegExp(f,"i");return g.test(c)},this.validateNumber=function(a,b,c,d){if(angular.isDefined(b)&&0===b.length){var e=/^[0-9\.]+$/;return e.test(c)}var f="^[0-9."+d+"]*$",g=new RegExp(f,"i");return g.test(c)},this.validateEmail=function(a,b,c,d){if(angular.isDefined(b)&&0===b.length){var e=/(([a-zA-Z0-9\-?\.?]+)@(([a-zA-Z0-9\-_]+\.)+)([a-z]{2,3}))+$/;return e.test(c)}var f="(([a-z"+d+"A-Z0-9-?.?]+)@(([a-z"+d+"A-Z0-9-_]+.)+)(["+d+"a-z]{2,3}))+$",g=new RegExp(f,"i");return g.test(c)},this.validateInput=function(a,c,d){var e="",f=!1;if(angular.isDefined(c)&&angular.isDefined(c.length)&&c.length>0)for(var g=0;g<c.length;g++)e+="\\"+c[g];switch(b.validationNum[a]){case b.validationNum.text:f=this.validateText(a,c,d,e);break;case b.validationNum.number:f=this.validateNumber(a,c,d,e);break;case b.validationNum.email:f=this.validateEmail(a,c,d,e)}return f}}],link:function(a,b,c){b.parent().prepend('<label class="form-field__label">'+c.placeholder+"</label>"),b.wrap('<div class="form-field-input-container"></div>'),b.parent().parent().find("label").addClass("form-field__label--show")}}}]).directive("attFormFieldValidationPrv",["keyMapAc","validationTypeInt",function(a,b){return{priority:202,scope:{validationType:"=",allowedChars:"="},restrict:"A",require:["?ngModel","^attFormFieldPrv"],link:function(c,d,e,f){var g=f[1];d.bind("keyup",function(){g.validateInput(c.validationType,c.allowedChars,d[0].value)?g.showHideErrorMessage(!1):g.showHideErrorMessage(!0)});var h=a.keyRange,i=a.allowedKeys,j=function(a,b){var c=b.which<h.startNum||b.which>h.endNum,d=b.which<h.startCapitalLetters||b.which>h.endCapitalLetters,e=b.which<h.startSmallLetters||b.which>h.endSmallLetters,f=c&&d&&e;return f&&!a},k=function(a,b){return(b.which<h.startNum||b.which>h.endNum)&&!a},l=function(a,b){var c="-"!==String.fromCharCode(b.which)&&"_"!==String.fromCharCode(b.which),d="@"!==String.fromCharCode(b.which)&&"."!==String.fromCharCode(b.which),e=c&&d,f=j(a,b);return!a&&e&&f},m=function(a,c,d){switch(a){case b.validationNum.text:if(j(c,d))return!0;break;case b.validationNum.number:if(k(c,d))return!0;break;case b.validationNum.email:if(l(c,d))return!0}return!1};d.bind("keypress",function(a){a.which||(a.keyCode?a.which=a.keyCode:a.charCode&&(a.which=a.charCode));var d=g.findAllowedCharactor(a.which),e=angular.isDefined(c.validationType)&&""!==c.validationType,f=a.which!==i.TAB&&a.which!==i.BACKSPACE&&a.which!==i.DELETE,h=e&&f;h&&m(b.validationNum[c.validationType],d,a)&&a.preventDefault()})}}}]).directive("attFormFieldValidationAlertPrv",[function(){return{restrict:"A",scope:{errorMessage:"="},transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html",link:function(a){a.errorMessage=a.errorMessage,angular.isDefined(a.$parent.hideErrorMsg)?a.hideErrorMsg=a.$parent.hideErrorMsg:a.hideErrorMsg=!0}}}]).factory("Cards",[function(){var a=/(\d{1,4})/g,b=/(?:^|\s)(\d{4})$/,c=[{type:"discover",pattern:/^(6011|65|64[4-9]|622)/,format:a,inputFormat:b,length:[16],cvcLength:[3],cvcSecurityImg:"visaI",zipLength:[5],luhn:!0},{type:"mc",pattern:/^5[1-5]/,format:a,inputFormat:b,length:[16],cvcLength:[3],cvcSecurityImg:"visaI",zipLength:[5],luhn:!0},{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,inputFormat:/^(\d{4}|\d{4}\s\d{6})$/,length:[15],cvcLength:[4],cvcSecurityImg:"amexI",zipLength:[5],luhn:!0},{type:"visa",pattern:/^4/,format:a,inputFormat:b,length:[16],cvcLength:[3],cvcSecurityImg:"visaI",zipLength:[5],luhn:!0}],d=function(a){var b,d,e;for(a=(a+"").replace(/\D/g,""),d=0,e=c.length;e>d;d++)if(b=c[d],b.pattern.test(a))return b},e=function(a){var b,d,e;for(d=0,e=c.length;e>d;d++)if(b=c[d],b.type===a)return b};return{fromNumber:function(a){return d(a)},fromType:function(a){return e(a)},defaultFormat:function(){return a},defaultInputFormat:function(){return b}}}]).factory("_Validate",["Cards","$parse",function(a,b){var c=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1},d=function(a){var b,c,d,e,f,g;for(d=!0,e=0,c=(a+"").split("").reverse(),f=0,g=c.length;g>f;f++)b=c[f],b=parseInt(b,10),(d=!d)&&(b*=2),b>9&&(b-=9),e+=b;return e%10===0},e={};return e.cvc=function(d,e,f,g){var h,i;if(angular.isUndefined(d)||null===d||0===d.length)return!0;if(!/^\d+$/.test(d))return!1;var j;if(g.paymentsTypeModel){var k=b(g.paymentsTypeModel);j=k(f)}return j?(i=a.fromType(j),h=d.length,c.call(null!==i?i.cvcLength:void 0,h)>=0):d.length>=3&&d.length<=4},e.zip=function(d,e,f,g){var h,i;if(angular.isUndefined(d)||null===d||0===d.length)return!0;if(!/^\d+$/.test(d))return!1;var j;if(g.paymentsTypeModel){var k=b(g.paymentsTypeModel);j=k(f)}return j?(i=a.fromType(j),h=d.length,c.call(null!==i?i.zipLength:void 0,h)>=0):d.length<6},e.card=function(e,f,g,h){var i,j,k;h.paymentsTypeModel&&(k=b(h.paymentsTypeModel));var l=function(){k&&k.assign(g,null),f.$card=null};return angular.isUndefined(e)||null===e||0===e.length?(l(),!0):(e=(e+"").replace(/\s+|-/g,""),/^\d+$/.test(e)&&(i=a.fromNumber(e))?(f.$card=angular.copy(i),k&&k.assign(g,i.type),ret=(j=e.length,c.call(i.length,j)>=0&&(i.luhn===!1||d(e))),ret):(l(),!1))},function(a,b,c,d,f){if(!e[a])throw types=Object.keys(e),errstr='Unknown type for validation: "'+a+'". ',errstr+='Should be one of: "'+types.join('", "')+'"',errstr;return e[a](b,c,d,f)}}]).factory("_ValidateWatch",["_Validate",function(a){var b={};return b.cvc=function(b,c,d,e){e.paymentsTypeModel&&d.$watch(e.paymentsTypeModel,function(f,g){if(f!==g){var h=a(b,c.$modelValue,c,d,e);c.$setValidity(b,h)}})},b.zip=function(b,c,d,e){e.paymentsTypeModel&&d.$watch(e.paymentsTypeModel,function(f,g){if(f!==g){var h=a(b,c.$modelValue,c,d,e);c.$setValidity(b,h)}})},function(a,c,d,e){return b[a]?b[a](a,c,d,e):void 0}}]).directive("validateCard",["$window","_Validate","_ValidateWatch",function(a,b,c){return{restrict:"A",require:"ngModel",link:function(a,d,e,f){var g=e.validateCard;c(g,f,a,e);var h=function(c){var h=b(g,c,f,a,e);return f.$setValidity(g,h),"card"===g&&(null===f.$card?null==c||""===c||""===c?(a.invalidCardError="",a.invalidCard=""):c.length>=1&&(a.invalidCardError="error",a.invalidCard="The number entered is not a recognized credit card number."):h?(a.invalidCardError="",a.invalidCard=""):f.$card.length.indexOf(c.length)>=0?(a.invalidCardError="error",a.invalidCard="The number entered is not a recognized credit card number."):(a.invalidCardError="",a.invalidCard=""),d.bind("blur",function(){h&&null!==f.$card?(a.invalidCardError="",a.invalidCard=""):(a.invalidCardError="error",a.invalidCard="The number entered is not a recognized credit card number.")})),h?c:void 0};f.$formatters.push(h),f.$parsers.push(h)}}}]).directive("creditCardImage",function(){return{templateUrl:"app/scripts/ng_js_att_tpls/formField/creditCardImage.html",replace:!1,transclude:!1,link:function(a,b,c){a.$watch(c.creditCardImage,function(b,c){b!==c&&(a.cvc="",angular.isUndefined(b)||null===b||(a.newValCCI="show-"+b),null===b&&(a.newValCCI=""))})}}}).directive("securityCodeImage",["$document",function(a){return{templateUrl:"app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html",replace:!1,transclude:!1,link:function(b,c,d){b.$watch(d.securityCodeImage,function(a,c){a!==c&&(angular.isUndefined(a)||null===a||("amexI"===a?(b.newValI="ccv2-security-amex",b.newValIAlt="The 4 digit CVC security code is on the front of the card.",b.cvcPlaceholder="4 digits",b.cvcMaxlength=4):"visaI"===a&&(b.newValI="ccv2-security",b.newValIAlt="The CVC security code is on the back of your card right after the credit card number.",b.cvcPlaceholder="3 digits",b.cvcMaxlength=3)),null===a&&(b.newValI="ccv2-security",b.cvcPlaceholder="3 digits",b.cvcMaxlength=3,b.newValIAlt="The CVC security code is on the back of your card right after the credit card number."))}),c.bind("click",function(a){a.preventDefault(),c.find("button").hasClass("active")?c.find("button").removeClass("active"):c.find("button").addClass("active")});var e=angular.element(a);e.bind("click",function(a){var b=a.target.className;"btn btn-alt btn-tooltip active"!==b&&c.find("button").hasClass("active")&&c.find("button").removeClass("active")})}}}]),angular.module("att.abs.hourpicker",["att.abs.utilities"]).constant("hourpickerConfig",{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],customOption:"Custom"}).controller("hourPickerController",["$scope",function(a){a.options=[],this.setOptions=function(b,c,d,e,f,g){a.options.push(b),void 0!==e&&(a.preselect=e);var h;if(void 0!==c){a.fromtime=c;for(h in a.days)a.days.hasOwnProperty(h)&&(a.FrtimeList[a.days[h]]={},void 0!==f?(a.FrtimeList[a.days[h]].value=f,a.selectedFromOption[a.days[h]]=f):(a.FrtimeList[a.days[h]].value=c[0].value,a.selectedFromOption[a.days[h]]=c[0].value))}if(void 0!==d){a.totime=d;for(h in a.days)a.days.hasOwnProperty(h)&&(a.TotimeList[a.days[h]]={},void 0!==g?(a.TotimeList[a.days[h]].value=g,a.selectedToOption[a.days[h]]=g):(a.TotimeList[a.days[h]].value=d[0].value,a.selectedToOption[a.days[h]]=d[0].value),a.showToTimeErrorDay[a.days[h]]=!1)}void 0!==f&&(a.uncheckedFromTime=f),void 0!==g&&(a.uncheckedToTime=g)},this.getSelectedOption=function(){return a.selectedOption},this.setToTimeErrorDay=function(b,c){a.showToTimeErrorDay[b]=c}}]).directive("attHourpickerOption",[function(){return{restrict:"EA",require:"^attHourpicker",scope:{option:"=option",fromtime:"=fromtime",totime:"=totime",preselect:"=preselect",uncheckedFromTime:"=",uncheckedToTime:"="},link:function(a,b,c,d){d.setOptions(a.option,a.fromtime,a.totime,a.preselect,a.uncheckedFromTime,a.uncheckedToTime)}}}]).directive("attHourpicker",["hourpickerConfig","$document","$log","$documentBind","$timeout",function(a,b,c,d,e){return{require:"ngModel",restrict:"EA",controller:"hourPickerController",transclude:!0,scope:{model:"=ngModel",resetFlag:"=?"},templateUrl:"app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html",link:function(b,c,f,g){var h=!1;b.isFromDropDownOpen=!1,b.isToDropDownOpen=!1;var i="",j={};b.days=a.days,b.daysList={},b.FrtimeList={},b.FrtimeListDay={},b.TotimeListDay={},b.selectedFromOption={},b.selectedToOption={},b.TotimeList={},b.selectedIndex=0,b.selectedOption="Select from list",b.customTime=[],b.resetFlag=!1,b.showToTimeErrorDay={},b.validatedCustomPreselect=[],b.$watch("resetFlag",function(c,d){if(c!==d){if(c&&b.selectedOption===a.customOption){for(day in b.daysList)b.daysList.hasOwnProperty(day)&&(b.daysList[day]=!1,b.addSelectedValue(day));b.preselectUpdateFxn(b.preselect)}b.resetFlag=!1}}),b.$watch("selCategory",function(a){a&&g.$setViewValue(a)},!0),b.updateData=function(c){if(c.constructor===Array){b.showDaysSelector=!0,b.selectedOption=a.customOption;for(var d in c)if(c.hasOwnProperty(d)){var e=c[d].day;"boolean"==typeof c[d].preEnabled&&c[d].preEnabled?b.daysList[e]=!0:b.daysList[e]=!1;for(var f in b.fromtime)b.fromtime[f].value!==c[d].FromTime||b.uncheckedFromTime||(b.FrtimeList[e].value=b.fromtime[f].value,b.selectedFromOption[e]=b.FrtimeList[e].value);for(var g in b.totime)b.totime[g].value!==c[d].ToTime||b.uncheckedToTime||(b.TotimeList[e].value=b.totime[g].value,b.selectedToOption[e]=b.TotimeList[e].value);if(b.addSelectedValue(e,c[d].FromTime,c[d].ToTime),parseInt(d)+1===c.length)break}}else b.selectOption(c.day)},b.$watch("preselect",function(a){b.preselectUpdateFxn(a)}),b.preselectUpdateFxn=function(a){if(void 0!==a){if(b.options&&(a=b.validatePreselectData(a)),""===a)return;b.updateData(a)}},b.validatePreselectData=function(a){if(a.constructor===Array){for(var c in a)if(a.hasOwnProperty(c)){var d=a[c].day,e=!1,f=!1,g=!1;for(var h in b.days)if(b.days[h]===d){e=!0;break}if(!e){a.splice(c,1);continue}for(var i in b.fromtime)if(b.fromtime[i].value===a[c].FromTime){f=!0;break}f||(a[c].FromTime=b.fromtime[0].value);for(var j in b.totime)if(b.totime[j].value===a[c].ToTime){g=!0;break}if(g||(a[c].ToTime=b.totime[0].value),"boolean"==typeof a[c].preEnabled&&a[c].preEnabled?a[c].preEnabled=!0:a[c].preEnabled=!1,b.validatedCustomPreselect[d]={},b.validatedCustomPreselect[d].FromTime=a[c].FromTime,b.validatedCustomPreselect[d].ToTime=a[c].ToTime,parseInt(c)+1===a.length)break}}else{var k=!1;for(var l in b.options)if(b.options[l]===a.day){k=!0;break}k||(a="")}return a},b.selectPrevNextValue=function(a,b,c){var d,e=0;if(38===a.keyCode)d=-1;else{if(40!==a.keyCode)return c;d=1}if(-1!==b.indexOf(c))e=b.indexOf(c)+d;else for(var f in b)if(b[f].value===c){e=parseInt(f)+d;break}return e===b.length?e-=1:-1===e&&(e+=1),a.preventDefault(),b[e].value?b[e].value:b[e]},b.showDropdown=function(){b.showlist=!b.showlist,h=!h},b.showfromDayDropdown=function(a){for(count in b.FrtimeListDay)count!==a&&b.FrtimeListDay[count]&&(b.FrtimeListDay[count]=!1);for(count in b.TotimeListDay)b.TotimeListDay[count]&&(b.TotimeListDay[count]=!1);b.FrtimeListDay[a]=!b.FrtimeListDay[a],h=!h,b.showlist=!1,b.FrtimeListDay[a]?(b.isFromDropDownOpen=!0,i=a):b.isFromDropDownOpen=!1,e(function(){if(b.FrtimeListDay[a]){var d=angular.element(c)[0].querySelector(".customdays-width"),e=angular.element(d.querySelector(".select2-container-active")).parent()[0].querySelector("ul"),f=angular.element(e.querySelector(".selectedItemInDropDown"))[0].offsetTop;angular.element(e)[0].scrollTop=f}})},b.showtoDayDropdown=function(a){for(count in b.TotimeListDay)count!==a&&b.TotimeListDay[count]&&(b.TotimeListDay[count]=!1);for(count in b.FrtimeListDay)b.FrtimeListDay[count]&&(b.FrtimeListDay[count]=!1);b.TotimeListDay[a]=!b.TotimeListDay[a],h=!h,b.showlist=!1,b.TotimeListDay[a]?(b.isToDropDownOpen=!0,i=a):b.isToDropDownOpen=!1,e(function(){if(b.TotimeListDay[a]){var d=angular.element(c)[0].querySelector(".customdays-width"),e=angular.element(d.querySelector(".select2-container-active")).parent()[0].querySelector("ul"),f=angular.element(e.querySelector(".selectedItemInDropDown"))[0].offsetTop;angular.element(e)[0].scrollTop=f}})},b.selectFromDayOption=function(a,c){b.selectedFromOption[a]=c,b.FrtimeList[a].value=c,b.FrtimeListDay[a]=!1,b.isFromDropDownOpen=!1},b.selectToDayOption=function(a,c){b.selectedToOption[a]=c,b.TotimeList[a].value=c,b.TotimeListDay[a]=!1,b.isToDropDownOpen=!1},b.addSelectedValue=function(a,c,d){var e,f;if(void 0===b.daysList[a]||b.daysList[a]){for(b.selectedFromOption[a]===b.uncheckedFromTime&&(angular.isDefined(b.validatedCustomPreselect[a])?(b.selectedFromOption[a]=b.validatedCustomPreselect[a].FromTime,c=b.validatedCustomPreselect[a].FromTime,b.FrtimeList[a].value=b.validatedCustomPreselect[a].FromTime):(b.selectedFromOption[a]=b.fromtime[0].value,c=b.fromtime[0].value,b.FrtimeList[a].value=b.fromtime[0].value)),b.selectedToOption[a]===b.uncheckedToTime&&(angular.isDefined(b.validatedCustomPreselect[a])?(b.selectedToOption[a]=b.validatedCustomPreselect[a].ToTime,d=b.validatedCustomPreselect[a].ToTime,b.TotimeList[a].value=b.validatedCustomPreselect[a].ToTime):(b.selectedToOption[a]=b.totime[0].value,d=b.totime[0].value,b.TotimeList[a].value=b.totime[0].value)),j.day=a,j.FromTime=b.FrtimeList[a].value,j.ToTime=b.TotimeList[a].value,e=0,f=b.customTime.length;f>e;e++)if(b.customTime[e].day===a){b.customTime[e].FromTime=j.FromTime,b.customTime[e].ToTime=j.ToTime;break}if(e===f){var g=angular.copy(j);b.customTime.push(g)}}else for(e=0,f=b.customTime.length;f>e;e++)if(b.customTime[e].day===a){b.uncheckedFromTime?b.selectedFromOption[b.customTime[e].day]=b.uncheckedFromTime:b.selectedFromOption[b.customTime[e].day]=b.FrtimeList[b.customTime[e].day].value,b.uncheckedToTime?b.selectedToOption[b.customTime[e].day]=b.uncheckedToTime:b.selectedToOption[b.customTime[e].day]=b.TotimeList[b.customTime[e].day].value,b.customTime.splice(e,1);break}b.selCategory=b.customTime};var k=function(){b.showlist&&b.$apply(function(){b.showlist=!1})};d.click("showlist",k,b);var l=function(){b.$apply(function(){b.isFromDropDownOpen&&(b.FrtimeListDay[i]=!1,b.isFromDropDownOpen=!1)})};d.click("isFromDropDownOpen",l,b);var m=function(){b.$apply(function(){b.isToDropDownOpen&&(b.TotimeListDay[i]=!1,b.isToDropDownOpen=!1)})};d.click("isToDropDownOpen",m,b),b.selectOption=function(c){if(c===a.customOption)b.showDaysSelector=!0,b.selCategory=b.customTime;else{b.showDaysSelector=!1;var d=/[0-9]\s?am/i.exec(c),e=/[0-9]\s?pm/i.exec(c);b.selCategory={day:c,FromTime:null===d?"NA":d[0],ToTime:null===e?"NA":e[0]}}b.showlist=!1,h=!1,b.selectedOption=c}}}}]).directive("attHourpickerValidator",["hourpickerConfig",function(a){return{restrict:"A",require:["attHourpicker","ngModel"],link:function(b,c,d,e){var f=e[0],g=e[1],h=function(a){var b=Number(a.match(/^(\d+)/)[1]),c=Number(a.match(/:(\d+)/)[1]),d=a.match(/\s(.*)$/)[1].toUpperCase();"PM"===d&&12>b&&(b+=12),"AM"===d&&12===b&&(b-=12);var e=b.toString(),f=c.toString();return 10>b&&(e="0"+e),10>c&&(f="0"+f),parseInt(e+f,10)},i=function(a,b){var c=h(a),d=h(b);return d-c},j=function(b){if(f.getSelectedOption()===a.customOption){var c=0;for(var d in b)b.hasOwnProperty(d)&&(i(b[d].FromTime,b[d].ToTime)<=0?(f.setToTimeErrorDay(b[d].day,!0),c++):f.setToTimeErrorDay(b[d].day,!1));return c>0?(g.$setValidity("validationStatus",!1),[]):(g.$setValidity("validationStatus",!0),b)}return g.$setValidity("validationStatus",!0),b};g.$parsers.unshift(j)}}}]),angular.module("att.abs.iconButtons",[]).constant("buttonConfig",{activeClass:"active--button",toggleEvent:"click"}).directive("attIconBtnRadio",["buttonConfig",function(a){var b=a.activeClass||"active--button",c=a.toggleEvent||"click";return{require:"ngModel",link:function(a,d,e,f){d.attr("tabindex","0"),d.append("<span class='hidden-spoken'>"+e.attIconBtnRadio+"</span>"),f.$render=function(){d.parent().toggleClass(b,angular.equals(f.$modelValue,e.attIconBtnRadio))},d.parent().bind(c,function(){d.parent().hasClass(b)||a.$apply(function(){f.$setViewValue(e.attIconBtnRadio),f.$render()})})}}}]).directive("attIconBtnCheckbox",["buttonConfig",function(a){var b=a.activeClass||"active--button",c=a.toggleEvent||"click";return{require:"ngModel",link:function(a,d,e,f){function g(){var b=a.$eval(e.btnCheckboxTrue);return angular.isDefined(b)?b:!0}function h(){var b=a.$eval(e.btnCheckboxFalse);return angular.isDefined(b)?b:!1}d.attr("tabindex","0"),d.append("<span class='hidden-spoken'>"+e.attIconBtnCheckbox+"</span>"),f.$render=function(){d.parent().toggleClass(b,angular.equals(f.$modelValue,g()))},d.parent().bind(c,function(){a.$apply(function(){f.$setViewValue(d.parent().hasClass(b)?h():g()),f.$render()})})}}}]),angular.module("att.abs.links",["ngSanitize"]).directive("attLink",[function(){return{restrict:"A",link:function(a,b){b.addClass("link"),b.attr("href")||b.attr("tabindex","0")}}}]).directive("attLinkVisited",[function(){return{restrict:"A",link:function(a,b){b.addClass("link--visited"),b.attr("href")||b.attr("tabindex","0")}}}]).directive("attReadmore",["$timeout",function(a){return{restrict:"A",scope:{lines:"@noOfLines",textModel:"=",isOpen:"="},templateUrl:"app/scripts/ng_js_att_tpls/links/readMore.html",link:function(b,c){var d=1;b.$watch("textModel",function(e){e?("function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),b.textToDisplay=e.trim(),b.readFlag=!0,a(function(){var a=c[0].children[0].children[0];1===d&&(d=window.getComputedStyle?parseInt(b.lines)*parseFloat(window.getComputedStyle(a,null).getPropertyValue("height")):parseInt(b.lines)*parseFloat(a.currentStyle.height),b.elemHeight=d,b.readLinkStyle={height:b.elemHeight+"px"})}),b.readMoreLink=!0,b.readLessLink=!1):(b.textToDisplay="",b.readMoreLink=!1,b.readLessLink=!1,b.readFlag=!1)});var e=c.parent();e.hasClass("att-accordion__body")&&b.$watch("isOpen",function(a){a||(b.readMoreLink=!0,b.readLessLink=!1,b.readLinkStyle={height:b.elemHeight+"px"},b.readFlag=!0)}),b.readMore=function(){b.readMoreLink=!1,b.readLessLink=!0,b.readLinkStyle={height:"auto"},b.readFlag=!1;var d=angular.element(c).children().eq(1).find("a")[0];a(function(){d.focus()})},b.readLess=function(){b.readMoreLink=!0,b.readLessLink=!1,b.readLinkStyle={height:b.elemHeight+"px"},b.readFlag=!0;var d=angular.element(c).children().eq(0).find("a")[0];a(function(){d.focus()})}}}}]).directive("attLinksList",[function(){return{restrict:"A",controller:function(){},link:function(a,b){b.addClass("links-list")}}}]).directive("attLinksListItem",[function(){return{restrict:"A",require:"^attLinksList",link:function(a,b){b.addClass("links-list__item"),b.attr("href")||b.attr("tabindex","0")}}}]),angular.module("att.abs.loading",[]).directive("attLoading",["$window",function(a){return{restrict:"A",replace:!0,scope:{icon:"@attLoading",progressStatus:"=?",colorClass:"=?"},templateUrl:"app/scripts/ng_js_att_tpls/loading/loading.html",link:function(b,c){var d=b.progressStatus;if(b.progressStatus=Math.min(100,Math.max(0,d)),-1!==a.navigator.userAgent.indexOf("MSIE 8.")){var e=0,f=36*b.progressStatus;c.css({"background-position-x":e,"background-position-y":-f})}}}}]),angular.module("att.abs.modal",["att.abs.utilities"]).factory("$$stackedMap",function(){return{createNew:function(){var a=[];return{add:function(b,c){a.push({key:b,value:c})},get:function(b){for(var c=0;c<a.length;c++)if(b===a[c].key)return a[c]},keys:function(){for(var b=[],c=0;c<a.length;c++)b.push(a[c].key);return b},top:function(){return a[a.length-1]},remove:function(b){for(var c=-1,d=0;d<a.length;d++)if(b===a[d].key){c=d;break}return a.splice(c,1)[0]},removeTop:function(){return a.splice(a.length-1,1)[0]},length:function(){return a.length}}}}}).directive("modalBackdrop",["$timeout",function(a){return{restrict:"EA",replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/modal/backdrop.html",link:function(b){b.animate=!1,a(function(){b.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout","$document",function(a,b,c){return{restrict:"EA",scope:{index:"@",modalTitle:"@?"},replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/modal/window.html",link:function(d,e,f){d.windowClass=f.windowClass||"",f.modalTitle&&""!==f.modalTitle&&(e[0].setAttribute("aria-label",f.modalTitle),e[0].removeAttribute("modal-title")),b(function(){d.focusModalFlag=!0,d.animate=!0}),c.on("focus keydown",function(a){9===a.which&&(String.prototype.contains=function(a){return-1!==this.indexOf(a)},e[0]===a.target||e[0].contains(a.target)||e[0].focus())}),d.close=function(b){var c=a.getTop();c&&c.value.backdrop&&"static"!=c.value.backdrop&&b.target===b.currentTarget&&(b.preventDefault?(b.preventDefault(),b.stopPropagation()):b.returnValue=!1,a.dismiss(c.key,"backdrop click"))}}}}]).factory("$modalStack",["$document","$compile","$rootScope","$$stackedMap","events","keymap",function(a,b,c,d,e,f){function g(){for(var a=-1,b=m.keys(),c=0;c<b.length;c++)m.get(b[c]).value.backdrop&&(a=c);return a}function h(b){var c=a.find("body").eq(0),d=a.find("html").eq(0),e=m.get(b).value;m.remove(b),e.modalDomEl.remove(),c.toggleClass(k,m.length()>0),d.css({overflow:"scroll"}),j&&-1==g()&&(j.remove(),j=void 0),e.modalScope.$destroy(),angular.isDefined(o)&&null!=o&&o.focus()}var i,j,k="modal-open",l=c.$new(!0),m=d.createNew(),n={},o=void 0;return c.$watch(g,function(a){l.index=a}),a.bind("keydown",function(a){var b;if(27===a.which)b=m.top(),b&&b.value.keyboard&&c.$apply(function(){n.dismiss(b.key)});else if(a.keyCode===f.KEY.BACKSPACE){var d,g=!1,h=a.srcElement||a.target;g=void 0===h.type?!0:"INPUT"===h.tagName.toUpperCase()&&("TEXT"===(d=h.type.toUpperCase())||"PASSWORD"===d||"FILE"===d||"SEARCH"===d||"EMAIL"===d||"NUMBER"===d||"DATE"===d||"TEL"===d||"URL"===d||"TIME"===d)||"TEXTAREA"===h.tagName.toUpperCase()?h.readOnly||h.disabled:!0,g&&e.preventDefault(a)}}),n.open=function(c,d){m.add(c,{deferred:d.deferred,modalScope:d.scope,backdrop:d.backdrop,keyboard:d.keyboard}),o=document.activeElement;var e=a.find("body").eq(0),f=a.find("html").eq(0);g()>=0&&!j&&(i=angular.element("<div modal-backdrop></div>"),j=b(i)(l),e.append(j));var h=angular.element("<div modal-window></div>");h.attr("window-class",d.windowClass),h.attr("index",m.length()-1),h.attr("modal-title",d.modalTitle),h.html(d.content);var n=b(h)(d.scope);m.top().value.modalDomEl=n,e.append(n),e.addClass(k),f.css({overflow:"hidden"})},n.close=function(a,b){var c=m.get(a);c&&(c.value.deferred.resolve(b),h(a))},n.dismiss=function(a,b){var c=m.get(a).value;c&&(c.deferred.reject(b),h(a))},n.getTop=function(){return m.top()},n}]).provider("$modal",function(){var a={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(b,c,d,e,f,g,h){function i(a){return a.template?d.when(a.template):e.get(a.templateUrl,{cache:f}).then(function(a){return a.data})}function j(a){var c=[];return angular.forEach(a,function(a){(angular.isFunction(a)||angular.isArray(a))&&c.push(d.when(b.invoke(a)))}),c}var k={};return k.open=function(b){var e=d.defer(),f=d.defer(),k={result:e.promise,opened:f.promise,close:function(a){h.close(k,a)},dismiss:function(a){h.dismiss(k,a)}};if(b=angular.extend({},a.options,b),b.resolve=b.resolve||{},!b.template&&!b.templateUrl)throw new Error("One of template or templateUrl options is required.");var l=d.all([i(b)].concat(j(b.resolve)));return l.then(function(a){var d=(b.scope||c).$new();d.$close=k.close,d.$dismiss=k.dismiss;var f,i={},j=1;b.controller&&(i.$scope=d,i.$modalInstance=k,angular.forEach(b.resolve,function(b,c){i[c]=a[j++]}),f=g(b.controller,i)),h.open(k,{scope:d,deferred:e,content:a[0],backdrop:b.backdrop,keyboard:b.keyboard,windowClass:b.windowClass,modalTitle:b.modalTitle})},function(a){e.reject(a)}),l.then(function(){f.resolve(!0)},function(){f.reject(!1)}),k},k}]};return a}).directive("simpleModal",["$modal",function(a){return{restrict:"EA",scope:{simpleModal:"@",backdrop:"@",keyboard:"@",modalOk:"&",modalCancel:"&",windowClass:"@",controller:"@",modalTitle:"@?"},link:function(b,c){c.bind("click",function(d){d.preventDefault(),angular.isDefined(c.attr("href"))&&""!==c.attr("href")&&(b.simpleModal=c.attr("href")),"false"===b.backdrop?b.backdropclick="static":b.backdropclick=!0,"false"===b.keyboard?b.keyboardev=!1:b.keyboardev=!0,a.open({templateUrl:b.simpleModal,backdrop:b.backdropclick,keyboard:b.keyboardev,windowClass:b.windowClass,controller:b.controller,modalTitle:b.modalTitle}).result.then(b.modalOk,b.modalCancel)})}}}]).directive("tabbedItem",["$modal","$log",function(a,b){return{restrict:"AE",replace:!0,scope:{items:"=items",controller:"@",templateId:"@",modalTitle:"@?"},templateUrl:"app/scripts/ng_js_att_tpls/modal/tabbedItem.html",controller:["$scope","$rootScope","$attrs",function(c){c.clickTab=function(d){for(var e=0;e<c.items.length;e++)e===d?(c.items[e].isTabOpen=!0,c.items[e].showData=!0):(c.items[e].isTabOpen=!1,c.items[e].showData=!1);var f=a.open({templateUrl:c.templateId,controller:c.controller,windowClass:"tabbedOverlay_modal",modalTitle:c.modalTitle,resolve:{items:function(){return c.items}}});f.result.then(function(a){c.selected=a},function(){b.info("Modal dismissed at: "+new Date)})},c.isActiveTab=function(a){return c.items&&c.items[a]&&c.items[a].isTabOpen}}]}}]).directive("tabbedOverlay",[function(){return{restrict:"AE",replace:!0,scope:{items:"="},transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html",controller:["$scope",function(a){a.clickTab=function(b){for(var c=0;c<a.items.length;c++)c===b?(a.items[c].isTabOpen=!0,a.items[c].showData=!0):(a.items[c].isTabOpen=!1,a.items[c].showData=!1)},a.isActiveTab=function(b){return a.items&&a.items[b]&&a.items[b].isTabOpen}}]}}]),angular.module("att.abs.pagination",["att.abs.utilities"]).directive("attPagination",[function(){return{restrict:"EA",scope:{totalPages:"=",currentPage:"=",showInput:"=",clickHandler:"=?"},replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/pagination/pagination.html",
-link:function(a){function b(b){angular.isDefined(b)&&null!==b&&((!b||1>b)&&(b=1),b>a.totalPages&&(b=a.totalPages),a.currentPage!==b&&(a.currentPage=b,c(a.currentPage)),a.totalPages>7&&(b<a.pages[0]&&b>3?a.pages=[b,b+1,b+2]:b>a.pages[2]&&b<a.totalPages-2?a.pages=[b-2,b-1,b]:3>=b?a.pages=[1,2,3]:b>=a.totalPages-2&&(a.pages=[a.totalPages-2,a.totalPages-1,a.totalPages])))}a.focusedPage,a.$watch("totalPages",function(c){if(angular.isDefined(c)&&null!==c){if(a.pages=[],1>c)return void(a.totalPages=1);if(7>=c)for(var d=1;c>=d;d++)a.pages.push(d);else if(c>7){var e=Math.ceil(c/2);a.pages=[e-1,e,e+1]}b(1)}}),a.$watch("currentPage",function(a){b(a)});var c=function(b){angular.isFunction(a.clickHandler)&&a.clickHandler(b)};a.next=function(b){b.preventDefault(),a.currentPage<a.totalPages&&(a.currentPage+=1,c(a.currentPage))},a.prev=function(b){b.preventDefault(),a.currentPage>1&&(a.currentPage-=1,c(a.currentPage))},a.selectPage=function(b,d){d.preventDefault(),a.currentPage=b,a.focusedPage=b,c(a.currentPage)},a.checkSelectedPage=function(b){return a.currentPage===b?!0:!1},a.isFocused=function(b){return a.focusedPage===b}}}}]),angular.module("att.abs.paneSelector",["att.abs.utilities"]).constant("paneGroupConstants",{SIDE_WIDTH_DEFAULT:"33%",INNER_PANE_DEFAULT:"67%",SIDE_PANE_ID:"sidePane",NO_DRILL_DOWN:"none"}).factory("animation",function(){return TweenLite}).directive("attPaneAccessibility",["keymap","$window",function(a,b){return{restrict:"A",require:["^?sidePane","^?innerPane"],link:function(b,c,d,e){var f=e[0],g=e[1],h=!1;b.ie=function(){for(var a,b=3,c=document.createElement("div"),d=c.getElementsByTagName("i");c.innerHTML="<!--[if gt IE "+ ++b+"]><i></i>< ![endif]-->",d[0];);return b>4?b:a}(),h=8===b.ie?!0:!1,c.bind("keydown",function(b){if(a.isAllowedKey(b.keyCode)||a.isControl(b)||a.isFunctionKey(b)){b.preventDefault(),b.stopPropagation();var d;switch(b.keyCode){case a.KEY.DOWN:if(d=angular.element(c[0])[0],d&&d.nextElementSibling&&d.nextElementSibling.focus(),h){do{if(!d||!d.nextSibling)break;d=d.nextSibling}while(d&&"DIV"!==d.tagName);d.focus()}break;case a.KEY.UP:if(d=angular.element(c[0])[0],d&&d.previousElementSibling&&d.previousElementSibling.focus(),h){do{if(!d||!d.previousSibling)break;d=d.previousSibling}while(d&&"DIV"!==d.tagName);d.focus()}break;case a.KEY.RIGHT:angular.isDefined(f)&&(d=f.getElement()[0]),angular.isDefined(g)&&(d=g.getElement()[0]);do{if(!d||!d.nextElementSibling)break;d=d.nextElementSibling}while("none"===window.getComputedStyle(d,null).getPropertyValue("display"));if(h)do{if(!d||!d.nextSibling)break;d=d.nextSibling}while(d&&"DIV"==d.tagName&&"none"==d.currentStyle.display);d&&d.querySelector("[att-pane-accessibility]").focus();break;case a.KEY.LEFT:angular.isDefined(f)&&(d=f.getElement()[0]),angular.isDefined(g)&&(d=g.getElement()[0]);do{if(!d||!d.previousElementSibling)break;d=d.previousElementSibling}while("none"==window.getComputedStyle(d,null).getPropertyValue("display"));if(h)do{if(!d||!d.previousSibling)break;d=d.previousSibling}while(d&&"DIV"==d.tagName&&"none"==d.currentStyle.display);d&&d.querySelector("[att-pane-accessibility]").focus()}}})}}}]).directive("sideRow",[function(){return{restrict:"A",replace:!0,require:["^sidePane","^paneGroup"],link:function(a,b,c,d){var e=d[0],f=d[1];a.$first&&(e.sidePaneIds=[]);var g=c.paneId,h=c.drillDownTo;e.sidePaneRows.push({paneId:g,drillDownTo:h}),b.on("click",function(){e.currentSelectedRowPaneId=g,f.slideOutPane(g,!0)})}}}]).controller("SidePaneCtrl",["$scope","$element","animation","paneGroupConstants",function(a,b,c,d){this.getElement=function(){return b},this.sidePaneTracker={},this.currentWidth=d.SIDE_WIDTH_DEFAULT,this.paneId=d.SIDE_PANE_ID,this.currentSelectedRowPaneId,this.drillDownToMapper={},this.sidePaneRows=[],this.init=function(){var a=this.sidePaneRows;if(a)for(var b in a)if(a.hasOwnProperty(b)){var c=a[b].paneId,d=a[b].drillDownTo;this.drillDownToMapper[c]=d,0==b&&(this.currentSelectedRowPaneId=c,this.sidePaneTracker[c]=[])}},this.getSidePanesList=function(){return this.sidePaneTracker[this.currentSelectedRowPaneId]},this.addToSidePanesList=function(a){void 0===this.sidePaneTracker[this.currentSelectedRowPaneId]?this.sidePaneTracker[this.currentSelectedRowPaneId]=[]:a&&this.sidePaneTracker[this.currentSelectedRowPaneId].push(a)},this.setWidth=function(a){a&&(this.currentWidth=a),c.set(b,{width:this.currentWidth})},this.resizeWidth=function(a){a&&(this.currentWidth=a),c.to(b,.5,{width:a})}}]).directive("sidePane",["paneGroupConstants",function(a){return{restrict:"EA",transclude:!0,replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/paneSelector/sidePane.html",require:["^paneGroup","sidePane"],controller:"SidePaneCtrl",scope:{},link:function(b,c,d,e){var f=e[0],g=e[1];f.addPaneCtrl(a.SIDE_PANE_ID,g)}}}]).directive("drillDownRow",["$parse","paneGroupConstants",function(a,b){return{restrict:"A",replace:!0,require:["^innerPane","^paneGroup"],link:function(a,c,d,e){var f=e[0],g=e[1];c.on("click",function(){var a=f.drillDownTo;f.drillDownTo!==b.NO_DRILL_DOWN&&g.slideOutPane(a),c[0].focus()})}}}]).controller("InnerPaneCtrl",["$scope","$element","animation","paneGroupConstants",function(a,b,c,d){this.getElement=function(){return b},this.paneId=a.paneId,this.drillDownTo,this.currentWidth=d.INNER_PANE_DEFAULT,this.setWidth=function(a){a&&(this.currentWidth=a),c.set(b,{width:this.currentWidth})},this.resizeWidth=function(a,d){c.to(b,.25,{width:a,onComplete:d})},this.displayNone=function(){c.set(b,{display:"none"})},this.displayBlock=function(){c.set(b,{display:"block"}),this&&this.hideRightBorder()},this.floatLeft=function(){c.set(b,{"float":"left"})},this.hideLeftBorder=function(){c.set(b,{borderLeftWidth:"0px"})},this.showLeftBorder=function(){c.set(b,{borderLeftWidth:"1px"})},this.hideRightBorder=function(){c.set(b,{borderRightWidth:"0px"})},this.showRightBorder=function(){c.set(b,{borderRightWidth:"1px"})},this.slideFromRight=function(){c.set(b,{"float":"right"}),c.set(b,{width:this.currentWidth})},this.startOpen=function(){return a.startOpen}}]).directive("innerPane",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/paneSelector/innerPane.html",require:["^paneGroup","innerPane"],controller:"InnerPaneCtrl",scope:{paneId:"@"},link:function(a,b,c,d){""===c.startOpen&&(a.startOpen=!0);var e=d[0],f=d[1];e.addPaneCtrl(a.paneId,f)}}}).controller("PaneGroupCtrl",["$scope","$element","paneGroupConstants",function(a,b,c){this.panes={},this.accountLevelPaneModel=[],this.title=a.title,this.init=function(){function a(a,b){var c,d=[];for(c in a.sidePaneRows)if(a.sidePaneRows.hasOwnProperty(c)){var e=a.sidePaneRows[c];c>0&&b[e.paneId].startOpen&&b[e.paneId].startOpen()&&(d.push(e),a.addToSidePanesList(e.paneId))}if(f)for(c in d)if(d.hasOwnProperty(c)){var g=d[c].paneId,h=b[g];h&&h.setWidth&&h.displayBlock&&(h.setWidth(f),h.displayBlock())}}var b=this.panes[c.SIDE_PANE_ID];if(b){b.init();var d,e=1;for(d in this.panes)this.panes[d].startOpen&&this.panes[d].startOpen()&&e++;var f;if(e>=3&&(f=100/e+"%"),this.panes[b.currentSelectedRowPaneId]){f?(b.setWidth(f),this.panes[b.currentSelectedRowPaneId].setWidth(f)):(b.setWidth(),this.panes[b.currentSelectedRowPaneId].setWidth()),this.panes[b.currentSelectedRowPaneId].displayBlock();for(d in this.panes)d!==c.SIDE_PANE_ID&&d!==b.currentSelectedRowPaneId&&this.panes[d].displayNone(),this.panes[d].drillDownTo=b.drillDownToMapper[d]}a(b,this.panes)}},this.resetPanes=function(){for(var a in this.panes)if(this.panes.hasOwnProperty(a)){var b=this.panes[a];b&&b.paneId!==c.SIDE_PANE_ID&&(b.floatLeft(),b.displayNone())}this.panes[c.SIDE_PANE_ID]&&this.panes[c.SIDE_PANE_ID].setWidth(c.SIDE_WIDTH_DEFAULT)},this.addPaneCtrl=function(a,b){this.panes[a]=b},this._slideOutPane=function(a,b){this.resetPanes();var d;if(b)if(this.panes[c.SIDE_PANE_ID]&&(d=this.panes[c.SIDE_PANE_ID].getSidePanesList()),d){if(this.panes&&this.panes[c.SIDE_PANE_ID])if(0===d.length&&this.panes[a])this.panes[c.SIDE_PANE_ID].setWidth(c.SIDE_WIDTH_DEFAULT),this.panes[a].displayBlock(),this.panes[a].setWidth(c.INNER_PANE_DEFAULT);else{var e=d.length+2,f=100/e+"%";this.panes[c.SIDE_PANE_ID].setWidth(f),this.panes[this.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId]&&(this.panes[this.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId].displayBlock(),this.panes[this.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId].setWidth(f));for(var g in d)this.panes[d[g]]&&(this.panes[d[g]].displayBlock(),this.panes[d[g]].setWidth(f))}}else this.panes&&this.panes[c.SIDE_PANE_ID]&&this.panes[a]&&(this.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId=a,this.panes[c.SIDE_PANE_ID].addToSidePanesList(),this.panes[a].slideFromRight(),this.panes[a].displayBlock(),this.panes[a].setWidth(c.INNER_PANE_DEFAULT));else{var h,i=!1;this.panes[c.SIDE_PANE_ID]&&(h=this.panes[c.SIDE_PANE_ID].getSidePanesList());for(var j in h)if(h.hasOwnProperty(j)){var k=h[j];if(k===a){i=!0;break}}!i&&this.panes[c.SIDE_PANE_ID]&&this.panes[c.SIDE_PANE_ID].addToSidePanesList(a);var l;this.panes[c.SIDE_PANE_ID]&&(l=this.panes[c.SIDE_PANE_ID].getSidePanesList().length);var m=l+2,n=100/m+"%";this.panes[c.SIDE_PANE_ID]&&this.panes[c.SIDE_PANE_ID].setWidth(n);var o;this.panes[c.SIDE_PANE_ID]&&(o=this.panes[c.SIDE_PANE_ID].getSidePanesList()[l-1]);var p=this;p.panes[c.SIDE_PANE_ID]&&(d=p.panes[c.SIDE_PANE_ID].getSidePanesList());for(var q in d)if(d.hasOwnProperty(q)){var r=d[q],s=this.panes[r];r!==o&&s&&(s.setWidth(n),s.displayBlock(),s.floatLeft())}this.panes[this.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId]&&(this.panes[this.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId].displayBlock(),this.panes[this.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId].showRightBorder(),this.panes[this.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId].resizeWidth(n,function(){p.panes[o]&&p.panes[p.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId]&&(p.panes[p.panes[c.SIDE_PANE_ID].currentSelectedRowPaneId].hideRightBorder(),p.panes[o].setWidth(n),p.panes[o].slideFromRight(),p.panes[o].displayBlock(),p.panes[o].floatLeft())}))}},this.slideOutPane=function(a,b){this._slideOutPane(a,b)}}]).directive("paneGroup",["$timeout",function(a){return{restrict:"EA",transclude:!0,replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html",scope:{},controller:"PaneGroupCtrl",link:function(b,c,d,e){function f(){e.init()}a(f,100)}}}]),angular.module("att.abs.tooltip",["att.abs.position","att.abs.utilities","ngSanitize"]).constant("tooltipDefaultOptions",{placement:"above",animation:!1,popupDelay:0,stylett:"dark",appendToBody:!0}).provider("$tooltip",["tooltipDefaultOptions",function(a){function b(a){var b=/[A-Z]/g,c="-";return a.replace(b,function(a,b){return(b?c:"")+a.toLowerCase()})}var c={mouseenter:"mouseleave",click:"click",focus:"blur",mouseover:"mouseout"},d={};this.options=function(a){angular.extend(d,a)},this.setTriggers=function(a){angular.extend(c,a)},this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate","$attElementDetach",function(e,f,g,h,i,j,k,l){return function(e,m,n){function o(a){var b=a||p.trigger||n,d=c[b]||b;return{show:b,hide:d}}var p=angular.extend({},a,d),q=b(e),r=k.startSymbol(),s=k.endSymbol();return{restrict:"EA",scope:!0,link:function(a,b,c){function d(){a.tt_isOpen?n():k()}function k(){(!F||a.$eval(c[m+"Enable"]))&&(a.tt_popupDelay?y=g(t,a.tt_popupDelay):a.$apply(t))}function n(){a.$apply(function(){u()})}function t(){var c,d,e,f;if(a.tt_content){x&&g.cancel(x),B.css({top:0,left:0,display:"block","z-index":9999}),C?(z=z||i.find("body"),z.append(B)):b.after(B),c=C?j.offset(b):j.position(b),d=B.prop("offsetWidth"),e=B.prop("offsetHeight");var h=10;switch(a.tt_placement){case"right":f=C?{top:c.top+c.height/2-e/2,left:c.left+c.width+G}:{top:c.top+c.height/2-e/2,left:c.left+c.width+h+G};break;case"below":f=C?{top:c.top+c.height+G,left:c.left+c.width/2-d/2}:{top:c.top+c.height+h+G,left:c.left+c.width/2-d/2};break;case"left":f=C?{top:c.top+c.height/2-e/2,left:c.left-d-G}:{top:c.top+c.height/2-e/2,left:c.left-d-h-G};break;default:f=C?{top:c.top-e-G,left:c.left+c.width/2-d/2}:{top:c.top-e-h-G,left:c.left+c.width/2-d/2}}f.top+="px",f.left+="px",B.css(f),a.tt_isOpen=!0}}function u(){a.tt_isOpen=!1,g.cancel(y),angular.isDefined(a.tt_animation)&&a.tt_animation()?x=g(function(){l(B[0])},500):l(B[0])}function v(){b.removeAttr("title"),w||(H?b.attr("title",a.tooltipAriaLabel):b.attr("title",a.tt_content))}b.attr("tabindex")||b.attr("tabindex","0");var w=!1;b.bind("mouseenter",function(){w=!0,b.removeAttr("title")}),b.bind("mouseleave",function(){w=!1,v()}),a.parentAttrs=c;var x,y,z,A="<div "+q+'-popup title="'+r+"tt_title"+s+'" content="'+r+"tt_content"+s+'" placement="'+r+"tt_placement"+s+'" animation="tt_animation()" is-open="tt_isOpen" stylett="'+r+"tt_style"+s+'" ></div>',B=f(A)(a),C=angular.isDefined(p.appendToBody)?p.appendToBody:!1,D=o(void 0),E=!1,F=angular.isDefined(c[m+"Enable"]),G=0,H=!1;a.tt_isOpen=!1,a.$watch("tt_isOpen",function(a,b){a===b||a||l(B[0])}),c.$observe(e,function(b){b?(a.tt_content=b,v()):a.tt_isOpen&&u()}),c.$observe(m+"Title",function(b){a.tt_title=b}),c.$observe(m+"Placement",function(b){a.tt_placement=angular.isDefined(b)?b:p.placement}),c.$observe(m+"Style",function(b){a.tt_style=angular.isDefined(b)?b:p.stylett}),c.$observe(m+"Animation",function(b){a.tt_animation=angular.isDefined(b)?h(b):function(){return p.animation}}),c.$observe(m+"PopupDelay",function(b){var c=parseInt(b,10);a.tt_popupDelay=isNaN(c)?p.popupDelay:c}),c.$observe(m+"Trigger",function(a){E&&(b.unbind(D.show,k),b.unbind(D.hide,n)),D=o(a),"focus"===D.show?(b.bind("focus",k),b.bind("blur",n),b.bind("click",function(a){a.stopPropagation()})):D.show===D.hide?b.bind(D.show,d):(b.bind(D.show,k),b.bind(D.hide,n)),E=!0}),c.$observe(m+"AppendToBody",function(b){C=angular.isDefined(b)?h(b)(a):C}),c.$observe(m+"Offset",function(a){G=angular.isDefined(a)?parseInt(a,10):0}),c.$observe(m+"AriaLabel",function(b){angular.isDefined(b)?(a.tooltipAriaLabel=b,H=!0):H=!1,v()}),C&&a.$on("$locationChangeSuccess",function(){a.tt_isOpen&&u()}),a.$on("$destroy",function(){a.tt_isOpen?u():B.remove()})}}}}]}]).directive("tooltipPopup",["$document","$documentBind",function(a,b){return{restrict:"EA",replace:!0,transclude:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"=",stylett:"@"},templateUrl:"app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html",link:function(a,c){a.$watch("isOpen",function(){a.isOpen}),c.bind("click",function(a){a.stopPropagation()});var d=function(){a.$apply(function(){a.isOpen=!1})};b.event("click","isOpen",d,a,!0,10)}}}]).directive("tooltip",["$tooltip",function(a){return a("tooltip","tooltip","mouseenter")}]).directive("tooltipCondition",["$timeout",function(a){return{restrict:"EA",replace:!0,scope:{tooltipCondition:"@?"},template:'<p><span tooltip="{{tooltipCondition}}" ng-if="showpop">{{tooltipCondition}}</span><span id="innerElement" ng-hide="showpop">{{tooltipCondition}}</span></p>',link:function(b,c,d){b.showpop=!1,"true"===d.height?a(function(){var a=c[0].offsetHeight,d=c.children(0)[0].offsetHeight;d>a&&(b.showpop=!0)}):b.tooltipCondition.length>=25&&(b.showpop=!0)}}}]),angular.module("att.abs.popOvers",["att.abs.tooltip","att.abs.utilities","ngSanitize"]).directive("popover",["$tooltip",function(a){return a("popover","popover","click")}]).directive("popoverPopup",["$document","$documentBind","$timeout","events","DOMHelper",function(a,b,c,d,e){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/popOvers/popOvers.html",scope:{content:"@",placement:"@",animation:"&",isOpen:"=",stylett:"@"},link:function(a,f,g,h){a.closeable=!1;try{a.closeable=""===a.$parent.parentAttrs.closeable?!0:!1}catch(i){}var j=void 0,k=void 0,l=function(b){a.$apply(function(){a.isOpen=!1})},m=function(b){(27===b.which||27===b.keyCode)&&(console.log("ESC was pressed!"),a.$apply(function(){a.isOpen=!1}))};c(function(){k=e.firstTabableElement(f)},10,!1),a.$watch("isOpen",function(b){if(a.isOpen){if(j=document.activeElement,angular.isDefined(k))try{k.focus()}catch(c){}}else if(angular.isDefined(j))try{j.focus()}catch(c){}}),a.$watch("stylett",function(b){a.popOverStyle=b}),a.$watch("placement",function(b){a.popOverPlacement=b}),a.closeMe=function(){a.isOpen=!1},f.bind("click",function(a){d.stopPropagation(a)}),b.event("click","isOpen",l,a,!0,10),b.event("keydown","isOpen",m,a,!0,10)}}}]),angular.module("att.abs.profileCard",[]).constant("profileStatus",{status:{ACTIVE:{status:"Active",color:"green"},DEACTIVATED:{status:"Deactivated",color:"red"},LOCKED:{status:"Locked",color:"red"},IDLE:{status:"Idle",color:"yellow"},PENDING:{status:"Pending",color:"blue"}},role:"COMPANY ADMINISTRATOR"}).directive("profileCard",["$http","$q","profileStatus",function(a,b,c){return{restrict:"EA",replace:"true",templateUrl:function(a,b){return b.addUser?"app/scripts/ng_js_att_tpls/profileCard/addUser.html":"app/scripts/ng_js_att_tpls/profileCard/profileCard.html"},scope:{profile:"="},link:function(a,d,e){function f(a){var c=b.defer(),d=new Image;return d.onerror=function(){c.reject(!1)},d.onload=function(){c.resolve(!0)},void 0!==a&&a.length>0?d.src=a:c.reject(!1),c.promise}if(a.image=!0,!e.addUser){a.image=!1,f(a.profile.img).then(function(b){a.image=b});var g=a.profile.name.split(" ");a.initials="";for(var h=0;h<g.length;h++)a.initials+=g[h][0];a.profile.role.toUpperCase()===c.role&&(a.badge=!0);var i=c.status[a.profile.state.toUpperCase()];i&&(a.profile.state=c.status[a.profile.state.toUpperCase()].status,a.colorIcon=c.status[a.profile.state.toUpperCase()].color,(a.profile.state.toUpperCase()===c.status.PENDING.status.toUpperCase()||a.profile.state.toUpperCase()===c.status.LOCKED.status.toUpperCase())&&(a.profile.lastLogin=a.profile.state));var j=(new Date).getTime(),k=new Date(a.profile.lastLogin).getTime(),l=(j-k)/864e5;1>=l?a.profile.lastLogin="Today":2>=l&&(a.profile.lastLogin="Yesterday")}}}}]),angular.module("att.abs.progressBars",[]).directive("attProgressBar",[function(){return{restrict:"A",replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/progressBars/progressBars.html"}}]),angular.module("att.abs.radio",[]).constant("attRadioConfig",{activeClass:"att-radio--on",disabledClass:"att-radio--disabled"}).directive("attRadio",["$compile","attRadioConfig",function(a,b){return{scope:{},restrict:"A",require:"ngModel",link:function(c,d,e,f){var g=f;c.radioVal="";var h=angular.element('<div att-accessibility-click="13,32" ng-click="updateModel($event)" class="att-radio"></div>');d.attr("value",e.attRadio),d.removeAttr("att-radio"),d.removeAttr("title"),d.attr("ng-model","radioVal"),h.append(d.prop("outerHTML")),h.append('<div class="att-radio__indicator"></div>'),h.attr("title",e.title);var i=h.prop("outerHTML");i=a(i)(c),d=d.replaceWith(i);var j=i.find("input");j.on("focus",function(){i.css("outline","thin dotted #333"),i.css("outline","-webkit-focus-ring-color auto 5px")}),j.on("blur",function(){i.css("outline","none")}),g.$render=function(){c.radioVal=g.$modelValue;var a=angular.equals(g.$modelValue,e.attRadio);i.toggleClass(b.activeClass,a)},c.updateModel=function(){j[0].focus();var a=i.hasClass(b.activeClass);a||c.disabled||(g.$setViewValue(a?null:e.attRadio),g.$render())},e.$observe("disabled",function(a){c.disabled=a||"disabled"===a||"true"===a,c.disabled&&(i.addClass(b.disabledClass),i.attr("tabindex","-1"))})}}}]),angular.module("att.abs.scrollbar",["att.abs.position"]).constant("attScrollbarConstant",{defaults:{axis:"y",navigation:!1,wheel:!0,wheelSpeed:40,wheelLock:!0,scrollInvert:!1,trackSize:!1,thumbSize:!1,alwaysVisible:!0}}).directive("attScrollbar",["$window","$timeout","$parse","$animate","attScrollbarConstant","$position",function(a,b,c,d,e,f){return{restrict:"A",scope:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html",controller:["$scope","$element","$attrs",function(g,h,i){function j(){w.contentRatio<=1&&w.contentPosition>w.contentSize-w.viewportSize?w.contentPosition=w.contentSize-w.viewportSize:w.contentRatio>1&&w.contentPosition>0&&(w.contentPosition=0),w.contentPosition<=0?g.prevAvailable=!1:g.prevAvailable=!0,w.contentPosition>=w.contentSize-w.viewportSize?g.nextAvailable=!1:g.nextAvailable=!0}function k(){F?(z.on("touchstart",m),C.on("touchstart",m)):(C.on("mousedown",n),B.on("mousedown",r)),angular.element(a).on("resize",l),w.options.wheel&&h.on(G,o)}function l(){w.update()}function m(a){1===a.touches.length&&(a.stopPropagation(),n(a.touches[0]))}function n(a){x.addClass("scroll-no-select"),h.addClass("scroll-no-select"),w.options.alwaysVisible||B.addClass("visible"),D=E?a.clientX:a.clientY,w.thumbPosition=parseInt(C.css(J),10)||0,F?(L=!1,K=!1,z.on("touchmove",p),z.on("touchend",s),C.on("touchmove",q),C.on("touchend",s)):(y.on("mousemove",r),y.on("mouseup",s),C.on("mouseup",s))}function o(c){if(!(w.contentRatio>=1)){w.options.alwaysVisible||(v&&b.cancel(v),B.addClass("visible"),v=b(function(){B.removeClass("visible")},100));var d=c&&c.originalEvent||c||a.event,e=w.options.axis.toUpperCase(),f={X:d.deltaX||0,Y:d.deltaY||0},i=0===d.deltaMode?w.options.wheelSpeed:1;w.options.scrollInvert&&(i*=-1),"mousewheel"===G&&(f.Y=-1*d.wheelDelta/40,d.wheelDeltaX&&(f.X=-1*d.wheelDeltaX/40)),f.X*=-1/i,f.Y*=-1/i;var k=f[e];w.contentPosition-=k*w.options.wheelSpeed,w.contentPosition=Math.min(w.contentSize-w.viewportSize,Math.max(0,w.contentPosition)),fireEvent(h[0],"move"),j(),C.css(J,w.contentPosition/w.trackRatio+"px"),A.css(J,-w.contentPosition+"px"),(w.options.wheelLock||w.contentPosition!==w.contentSize-w.viewportSize&&0!==w.contentPosition)&&d.preventDefault(),g.$apply()}}function p(a){a.preventDefault(),L=!0,r(a.touches[0])}function q(a){a.preventDefault(),K=!0,r(a.touches[0])}function r(a){if(!(w.contentRatio>=1)){var b=E?a.clientX:a.clientY,c=b-D;(w.options.scrollInvert&&!F||F&&!w.options.scrollInvert)&&(c=D-b),L&&F&&(c=D-b),K&&F&&(c=b-D);var d=Math.min(w.trackSize-w.thumbSize,Math.max(0,w.thumbPosition+c));w.contentPosition=d*w.trackRatio,fireEvent(h[0],"move"),j(),C.css(J,d+"px"),A.css(J,-w.contentPosition+"px"),g.$apply()}}function s(){x.removeClass("scroll-no-select"),h.removeClass("scroll-no-select"),w.options.alwaysVisible||B.removeClass("visible"),y.off("mousemove",r),y.off("mouseup",s),C.off("mouseup",s),y.off("touchmove",p),y.off("ontouchend",s),C.off("touchmove",q),C.off("touchend",s)}var t={axis:i.attScrollbar||e.defaults.axis,navigation:i.navigation||e.defaults.navigation,wheel:e.defaults.wheel,wheelSpeed:e.defaults.wheelSpeed,wheelLock:e.defaults.wheelLock,scrollInvert:e.defaults.scrollInvert,trackSize:e.defaults.trackSize,thumbSize:e.defaults.thumbSize,alwaysVisible:e.defaults.alwaysVisible},u=i.scrollbar;u=u?c(u)(g):{},this.options=angular.extend({},t,u),this._defaults=t;var v,w=this,x=angular.element(document.querySelectorAll("body")[0]),y=angular.element(document),z=angular.element(h[0].querySelectorAll(".scroll-viewport")[0]),A=angular.element(h[0].querySelectorAll(".scroll-overview")[0]),B=angular.element(h[0].querySelectorAll(".scroll-bar")[0]),C=angular.element(h[0].querySelectorAll(".scroll-thumb")[0]),D=0,E="x"===this.options.axis,F=!1,G="onwheel"in document?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",H=E?"width":"height",I=H.charAt(0).toUpperCase()+H.slice(1).toLowerCase(),J=E?"left":"top",K=!1,L=!1;("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(F=!0),this.contentPosition=0,this.viewportSize=0,this.contentSize=0,this.contentRatio=0,this.trackSize=0,this.trackRatio=0,this.thumbSize=0,this.thumbPosition=0,this.initialize=function(){return this.options.alwaysVisible||B.css("opacity",0),w.update(),k(),w},this.setSizeData=function(){this.viewportSize=z.prop("offset"+I)||1,this.contentSize=A.prop("scroll"+I)||1,this.contentRatio=this.viewportSize/this.contentSize,this.trackSize=this.options.trackSize||this.viewportSize,this.thumbSize=Math.min(this.trackSize,Math.max(0,this.options.thumbSize||this.trackSize*this.contentRatio)),this.trackRatio=this.options.thumbSize?(this.contentSize-this.viewportSize)/(this.trackSize-this.thumbSize):this.contentSize/this.trackSize},this.update=function(a){return w.setSizeData(),D=B.prop("offsetTop"),B.toggleClass("disable",this.contentRatio>=1||isNaN(this.contentRatio)),!this.options.alwaysVisible&&this.contentRatio<1&&this.viewportSize>0&&d.addClass(B,"visible").then(function(){d.removeClass(B,"visible"),g.$digest()}),null!==a&&("bottom"===a?this.contentPosition=this.contentSize-this.viewportSize:this.contentPosition=parseInt(a,10)||0),j(),C.css(J,w.contentPosition/w.trackRatio+"px"),B.css(H,w.trackSize+"px"),C.css(H,w.thumbSize+"px"),A.css(J,-w.contentPosition+"px"),this},fireEvent=function(a,b){var c,d=a;document.createEvent?(c=document.createEvent("HTMLEvents"),c.initEvent(b,!0,!1),d.dispatchEvent(c)):document.createEventObject&&(c=document.createEventObject(),d.fireEvent("on"+b,c))},g.customScroll=function(a){if(!(w.contentRatio>=1)){var b,c=f.position(z);b=E?c.width:c.height,a?w.contentPosition+=b:w.contentPosition-=b,w.contentPosition=Math.min(w.contentSize-w.viewportSize,Math.max(0,w.contentPosition)),fireEvent(h[0],"move"),j(),C.css(J,w.contentPosition/w.trackRatio+"px"),A.css(J,-w.contentPosition+"px")}},this.cleanup=function(){z.off("touchstart",m),C.off("mousedown",n),B.off("mousedown",r),C.off("touchmove",q),C.off("touchend",s),angular.element(a).off("resize",l),h.off(G,o),w.options.alwaysVisible=!0,s()}}],link:function(a,c,d,e){a.navigation=e.options.navigation,a.viewportHeight=d.viewportHeight,a.viewportWidth=d.viewportWidth,a.scrollbarAxis=e.options.axis,"x"===a.scrollbarAxis?c.addClass("horizontal"):"y"===a.scrollbarAxis&&c.addClass("vertical");var f=c.css("position");"relative"!==f&&"absolute"!==f&&c.css("position","relative"),a.$watch(function(){b(g,100,!1)});var g=function(){var b=angular.element(c[0].querySelectorAll(".scroll-overview")[0]),d=b.prop("scrollHeight"),f=a.oldValue;d!==f&&(a.oldValue=d,e.update())};e.initialize(),c.on("$destroy",function(){e.cleanup()})}}}]),angular.module("att.abs.search",["att.abs.utilities","att.abs.position","att.abs.utilities"]).directive("attSearch",["$document","$filter","$isElement","$documentBind","$timeout","$log","keymap",function(a,b,c,d,e,f,g){return{restrict:"A",scope:{cName:"=attSearch"},transclude:!1,replace:!1,require:"ngModel",templateUrl:"app/scripts/ng_js_att_tpls/search/search.html",link:function(b,h,i,j){b.selectedIndex=-1,b.selectedOption=i.placeholder,b.isDisabled=!1,b.className="select2-match",b.showSearch=!1,b.showlist=!1;var k="",l=new Date,m=void 0,n=[];e(function(){n=h.find("li")},10),f.warn("attSearch is deprecated, please use attSelect instead. This component will be removed by version 2.7."),i.noFilter||"true"===i.noFilter?b.noFilter=!0:b.noFilter=!1,"false"===i.placeholderAsOption?b.selectedOption=i.placeholder:b.selectMsg=i.placeholder,(i.startsWithFilter||"true"===i.startsWithFilter)&&(b.startsWithFilter=!0),"true"===i.showInputFilter&&(b.showSearch=!1,f.warn("showInputFilter functionality has been removed from the library.")),i.disabled&&(b.isDisabled=!0),m=angular.element(h).children().eq(0).find("a")[0];var o=0,p=function(){if(b.noFilter){var a=k,c=0;for(c=o;c<b.cName.length;c++)if(b.cName[c].title.startsWith(a)&&c!==b.selectedIndex){b.selectOption(b.cName[c],c,b.showlist),o=c,k="";break}(c>=b.cName.length||!b.cName[c+1].title.startsWith(a))&&o>0&&(o=0)}};b.showDropdown=function(){i.disabled||(b.showlist=!b.showlist,b.setSelectTop())},h.bind("keydown",function(a){if(g.isAllowedKey(a.keyCode)||g.isControl(a)||g.isFunctionKey(a))switch(a.preventDefault(),a.stopPropagation(),a.keyCode){case g.KEY.DOWN:b.selectNext();break;case g.KEY.UP:b.selectPrev(),k="";break;case g.KEY.ENTER:b.selectCurrent(),k="";break;case g.KEY.BACKSPACE:b.title="",k="",b.$apply();break;case g.KEY.SPACE:b.noFilter||(b.title+=" "),b.$apply();break;case g.KEY.ESC:""===b.title||void 0===b.title?(b.showlist=!1,m.focus(),b.$apply()):(b.title="",b.$apply()),b.noFilter&&(k="",m.focus(),b.showlist=!1)}else if(9!==a.keyCode){if(b.noFilter){var c=new Date,d=Math.abs(l.getMilliseconds()-c.getMilliseconds());l=c,d>100&&(k=""),k=k?k+String.fromCharCode(a.keyCode):String.fromCharCode(a.keyCode),k.length>2&&(k=k.substring(0,2)),p()}else b.showlist=!0,b.title=b.title?b.title+String.fromCharCode(a.keyCode):String.fromCharCode(a.keyCode);b.$apply()}else 9===a.keyCode&&(b.showlist=!1,b.title="",b.$apply())}),b.selectOption=function(a,c,d){-1===c||"-1"===c?(b.selCategory="",b.selectedIndex=-1,j.$setViewValue(""),"false"!==i.placeholderAsOption&&(b.selectedOption=b.selectMsg)):(b.selCategory=b.cName[c],b.selectedIndex=c,j.$setViewValue(b.selCategory),b.selectedOption=b.selCategory.title,angular.isDefined(n[c])&&n[c].focus()),b.title="",d||(b.showlist=!1,m.focus()),b.$apply()},b.selectCurrent=function(){b.showlist?(b.selectOption(b.selectMsg,b.selectedIndex,!1),b.$apply()):(b.showlist=!0,b.setSelectTop(),b.$apply())},b.hoverIn=function(a){b.selectedIndex=a,b.focusme()},b.setSelectTop=function(){e(function(){if(b.showlist&&!b.noFilter){var a=angular.element(h)[0].querySelector(".select2-results");if(angular.element(a.querySelector(".select2-result-current"))[0])var c=angular.element(a.querySelector(".select2-result-current"))[0].offsetTop;angular.element(a)[0].scrollTop=c}})},b.setCurrentTop=function(){e(function(){if(b.showlist){var a=angular.element(h)[0].querySelector(".select2-results");if(angular.element(a.querySelector(".hovstyle"))[0])var c=angular.element(a.querySelector(".hovstyle"))[0].offsetTop;c<angular.element(a)[0].scrollTop?angular.element(a)[0].scrollTop-=30:c+30>angular.element(a)[0].clientHeight&&(angular.element(a)[0].scrollTop+=30)}})},b.selectNext=function(){b.selectedIndex+1<=b.cName.length-1&&(b.selectedIndex+=1,b.showlist||b.selectOption(b.selectMsg,b.selectedIndex,!1),b.focusme(),b.$apply()),b.setCurrentTop()},b.selectPrev=function(){b.selectedIndex-1>=0?(b.selectedIndex-=1,b.showlist||b.selectOption(b.selectMsg,b.selectedIndex,!1),b.focusme(),b.$apply()):b.selectedIndex-1<0&&(void 0===i.placeholderAsOption||"true"===i.placeholderAsOption?b.selectedIndex=-1:b.selectedIndex=0,b.showlist||b.selectOption(b.selectMsg,b.selectedIndex,!1),b.focusme(),b.$apply()),b.setCurrentTop()},b.updateSelection=function(a){b.selectedOption=a.title,b.title=""},b.focusme=function(){e(function(){var a=angular.element(h).find("ul").find("li"),c=b.selectedIndex+2;b.noFilter&&(c=b.selectedIndex),angular.isDefined(a[c])&&a[c].focus()})},b.$watch("selCategory",function(a){a&&b.updateSelection(a)}),j.$viewChangeListeners.push(function(){b.$eval(i.ngChange)}),j.$render=function(){b.selCategory=j.$viewValue};var q=function(d){var e=c(angular.element(d.target),h,a);e||(b.showlist=!1,m.focus(),b.$apply())};d.click("showlist",q,b)}}}]),angular.module("att.abs.select",["att.abs.utilities","att.abs.position","att.abs.utilities"]).directive("attSelect",["$document","$filter","$isElement","$documentBind","$timeout","keymap","$log",function(a,b,c,d,e,f,g){return{restrict:"A",scope:{cName:"=attSelect"},transclude:!1,replace:!1,require:"ngModel",templateUrl:"app/scripts/ng_js_att_tpls/select/select.html",link:function(h,i,j,k){h.selectedIndex=-1,h.selectedOption=j.placeholder,h.isDisabled=!1,h.className="select2-match",h.showSearch=!1,h.showlist=!1;var l="",m=new Date,n=void 0,o=[];e(function(){o=i.find("li")},10),j.noFilter||"true"===j.noFilter?h.noFilter=!0:h.noFilter=!1,"false"===j.placeholderAsOption?h.selectedOption=j.placeholder:h.selectMsg=j.placeholder,(j.startsWithFilter||"true"===j.startsWithFilter)&&(h.startsWithFilter=!0),"true"===j.showInputFilter&&(h.showSearch=!1,g.warn("showInputFilter functionality has been removed from the library.")),j.disabled&&(h.isDisabled=!0);var p=function(){return h.startsWithFilter?"startsWith":"filter"};n=angular.element(i).children().eq(0).find("span")[0];var q=0,r=function(){if(h.noFilter){var a=l,b=0;for(b=q;b<h.cName.length;b++)if(h.cName[b].title.startsWith(a)&&b!==h.selectedIndex){
-h.selectOption(h.cName[b],b,h.showlist),q=b,l="";break}(b>=h.cName.length||!h.cName[b+1].title.startsWith(a))&&q>0&&(q=0)}};h.showDropdown=function(){j.disabled||(h.showlist=!h.showlist,h.setSelectTop(),h.focusme())},i.bind("keydown",function(a){if(f.isAllowedKey(a.keyCode)||f.isControl(a)||f.isFunctionKey(a))switch(a.preventDefault(),a.stopPropagation(),a.keyCode){case f.KEY.DOWN:h.selectNext();break;case f.KEY.UP:h.selectPrev(),l="";break;case f.KEY.ENTER:h.selectCurrent(),l="";break;case f.KEY.BACKSPACE:h.title="",l="",h.$apply();break;case f.KEY.SPACE:h.noFilter||(h.title+=" "),h.$apply();break;case f.KEY.ESC:""===h.title||void 0===h.title?(h.showlist=!1,n.focus(),h.$apply()):(h.title="",h.$apply()),h.noFilter&&(l="",n.focus(),h.showlist=!1)}else if(a.keyCode!==f.KEY.TAB){if(h.noFilter){var c=new Date,d=Math.abs(m.getMilliseconds()-c.getMilliseconds());m=c,d>100&&(l=""),l=l?l+String.fromCharCode(a.keyCode):String.fromCharCode(a.keyCode),l.length>2&&(l=l.substring(0,2)),r()}else if(h.showlist=!0,h.title=h.title?h.title+String.fromCharCode(a.keyCode):String.fromCharCode(a.keyCode),""!=h.title)for(var e=b(p())(h.cName,h.title),g=0;g<e.length;g++)for(var i=0;i<h.cName.length&&angular.isDefined(h.cName[h.selectedIndex]);i++)if(e[g].title===h.cName[h.selectedIndex].title){h.selectedIndex=g,h.focusme();break}h.$apply()}else a.keyCode===f.KEY.TAB&&(h.showlist=!1,h.title="",h.$apply())}),h.selectOption=function(a,c,d){if(-1===c||"-1"===c)h.selCategory="",h.selectedIndex=-1,k.$setViewValue(""),"false"!==j.placeholderAsOption&&(h.selectedOption=h.selectMsg);else{if(""!=h.title){var f=b(p())(h.cName,h.title);if(angular.isDefined(f)&&angular.isDefined(f[c]))for(var g=0;g<h.cName.length;g++)if(f[c].title===h.cName[g].title){c=g;break}}h.selCategory=h.cName[c],h.selectedIndex=c,k.$setViewValue(h.selCategory),h.selectedOption=h.selCategory.title,e(function(){if(angular.isDefined(o[c]))try{o[index].focus()}catch(a){}})}h.title="",d||(h.showlist=!1,n.focus())},h.selectCurrent=function(){h.showlist?h.selectOption(h.selectMsg,h.selectedIndex,!1):(h.showlist=!0,h.setSelectTop()),h.$apply()},h.hoverIn=function(a){h.selectedIndex=a,h.focusme()},h.setSelectTop=function(){e(function(){if(h.showlist&&!h.noFilter){var a=angular.element(i)[0].querySelector(".select2-results");if(angular.element(a.querySelector(".select2-result-current"))[0])var b=angular.element(a.querySelector(".select2-result-current"))[0].offsetTop;angular.element(a)[0].scrollTop=b}})},h.setCurrentTop=function(){e(function(){if(h.showlist){var a=angular.element(i)[0].querySelector(".select2-results");if(angular.element(a.querySelector(".hovstyle"))[0])var b=angular.element(a.querySelector(".hovstyle"))[0].offsetTop;b<angular.element(a)[0].scrollTop?angular.element(a)[0].scrollTop-=30:b+30>angular.element(a)[0].clientHeight&&(angular.element(a)[0].scrollTop+=30)}})},h.selectNext=function(){h.cName.length;if(h.selectedIndex+1<=h.cName.length-1){h.selectedIndex+=1;var a=h.cName[h.selectedIndex].disabled;a&&(h.selectedIndex+=1),h.showlist||h.selectOption(h.selectMsg,h.selectedIndex,!1),h.focusme(),h.$apply()}h.setCurrentTop()},h.selectPrev=function(){if(h.selectedIndex-1>=0){h.selectedIndex-=1;var a=h.cName[h.selectedIndex].disabled;a&&(h.selectedIndex-=1),h.showlist||h.selectOption(h.selectMsg,h.selectedIndex,!1),h.focusme(),h.$apply()}else h.selectedIndex-1<0&&(void 0===j.placeholderAsOption||"true"===j.placeholderAsOption?void 0===j.placeholder?h.selectedIndex=0:h.selectedIndex=-1:h.selectedIndex=0,h.showlist||h.selectOption(h.selectMsg,h.selectedIndex,!1),h.focusme(),h.$apply());h.setCurrentTop()},h.updateSelection=function(a){h.selectedOption=a.title,h.title="",a.index<0&&h.selectOption(h.selectMsg,a.index,h.showlist)},h.focusme=function(){e(function(){var a=angular.element(i).find("ul").find("li"),b=h.selectedIndex+2;if(h.noFilter&&(b=h.selectedIndex),angular.isDefined(a[b]))try{a[b].focus()}catch(c){}})},h.$watch("selCategory",function(a){a&&h.updateSelection(a)}),k.$viewChangeListeners.push(function(){h.$eval(j.ngChange)}),k.$render=function(){h.selCategory=k.$viewValue};var s=function(b){var d=c(angular.element(b.target),i,a);d||(h.showlist=!1,n.focus(),h.$apply())};d.click("showlist",s,h)}}}]).directive("textDropdown",["$document","$isElement","$documentBind","keymap",function(a,b,c,d){return{restrict:"EA",replace:!0,scope:{actions:"=actions",defaultAction:"=defaultAction",onActionClicked:"=?"},templateUrl:"app/scripts/ng_js_att_tpls/select/textDropdown.html",link:function(e,f,g){e.selectedIndex=0,e.selectedOption=g.placeholder,e.isDisabled=!1,e.isActionsShown=!1;var h=void 0;if(g.disabled&&(e.isDisabled=!0),h=f.find("div")[0],angular.isDefined(e.defaultAction))if(angular.isDefined(e.defaultAction)||""!==e.defaultAction){for(var i in e.actions)if(e.actions[i]===e.defaultAction){e.currentAction=e.actions[i],e.selectedIndex=e.actions.indexOf(i),e.isActionsShown=!1;break}}else e.currentAction=e.actions[0];else e.currentAction=e.actions[0],e.selectedIndex=0;e.toggle=function(){e.isActionsShown=!e.isActionsShown},e.chooseAction=function(a,b,c){null!=a?(e.currentAction=b,e.selectedIndex=c):e.currentAction=e.actions[e.selectedIndex],angular.isFunction(e.onActionClicked)&&e.onActionClicked(e.currentAction),e.toggle()},e.isCurrentAction=function(a){return a===e.currentAction},f.bind("keydown",function(a){if(d.isAllowedKey(a.keyCode)||d.isControl(a)||d.isFunctionKey(a)){switch(a.preventDefault(),a.stopPropagation(),a.keyCode){case d.KEY.DOWN:e.selectNext();break;case d.KEY.UP:e.selectPrev();break;case d.KEY.ENTER:e.selectCurrent();break;case d.KEY.ESC:e.isActionsShown=!1,h.focus(),e.$apply()}return void e.$apply()}a.keyCode===d.KEY.TAB&&(e.isActionsShown=!1,e.$apply())}),e.selectCurrent=function(){e.selectedIndex<0&&(e.selectedIndex=0),e.isActionsShown?e.chooseAction(null,e.currentAction):e.toggle()},e.selectNext=function(){e.isActionsShown&&(e.selectedIndex+1<e.actions.length?e.selectedIndex+=1:e.selectedIndex=e.actions.length-1,e.$apply())},e.selectPrev=function(){e.isActionsShown&&(e.selectedIndex-1>=0?e.selectedIndex-=1:e.selectedIndex-1<0&&(e.selectedIndex=0),e.$apply())},e.hoverIn=function(a){e.selectedIndex=a};var j=function(c){var d=b(angular.element(c.target),f,a);d||(e.toggle(),e.$apply())};c.click("isActionsShown",j,e)}}}]),angular.module("att.abs.slider",["att.abs.position"]).constant("sliderDefaultOptions",{width:300,step:1,precision:0,disabledWidth:116}).directive("attSlider",["sliderDefaultOptions","$position","$document",function(a,b,c){return{restrict:"EA",replace:!0,transclude:!0,scope:{floor:"=",ceiling:"=",step:"@",precision:"@",width:"@",textDisplay:"=",value:"=",ngModelSingle:"=?",ngModelLow:"=?",ngModelHigh:"=?",ngModelDisabled:"=?"},templateUrl:"app/scripts/ng_js_att_tpls/slider/slider.html",link:function(d,e,f){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=0,z=!1;d.minPtrOffset=0,d.maxPtrOffset=0;var A=a.disabledWidth,B=e.children();n=B[0].children,n=angular.element(n[0]),x=B[1].children,w=angular.element(x[0]),v=angular.element(x[1]),u=angular.element(x[2]),o=null==f.ngModelSingle&&null==f.ngModelLow&&null==f.ngModelHigh&&null!=f.ngModelDisabled,r=null==f.ngModelSingle&&null!=f.ngModelLow&&null!=f.ngModelHigh,s="ngModelLow",t="ngModelHigh",r?w.remove():(v.remove(),u.remove()),o?(d.disabledStyle={width:A+"px",zIndex:1},d.handleStyle={left:A+"px"}):n.remove(),p=parseFloat(d.floor),q=parseFloat(d.ceiling),m=q-p,g=0,h=void 0!==f.width?f.width:0!==e[0].clientWidth?e[0].clientWidth:a.width,l=h-g,d.keyDown=function(c){if(39===c.keyCode){var f=b.position(e).left;if(i)"ngModelLow"===d.ref?(j=a.step+j,i=j):"ngModelHigh"===d.ref?(k=a.step+k,i=k):i=a.step+i;else{if(r&&"ngModelLow"===d.ref)return;i=a.step+f,j=k=i}}else if(37===c.keyCode){var g=b.position(w).left;i?0>=i||("ngModelLow"===d.ref?(j-=a.step,i=j):"ngModelHigh"===d.ref?(k-=a.step,i=k):(i-=a.step,j=k=i)):i=g-a.step}i>=0&&d.ptrOffset(i)},d.mouseDown=function(a,b){d.ref=b,z=!0,y=r?d.ref===s?a.clientX-d.minPtrOffset:a.clientX-d.maxPtrOffset:i?a.clientX-i:a.clientX,o&&(d.ref="ngModelDisabled",d.disabledStyle={width:A+"px",zIndex:1})},d.moveElem=function(a){if(z){var b;b=a.clientX,i=b-y,d.ptrOffset(i)}},d.focus=function(a,b){console.log(b),d.ref=b},d.mouseUp=function(a){z=!1,v.removeClass("dragging"),u.removeClass("dragging"),w.removeClass("dragging"),c.off("mousemove")},d.keyUp=function(a){z=!1,v.removeClass("dragging"),u.removeClass("dragging"),w.removeClass("dragging"),c.off("mousemove")},d.calStep=function(a,b,c,d){var e,f,g,h;return null===d&&(d=0),null===c&&(c=1/Math.pow(10,b)),f=(a-d)%c,h=f>c/2?a+c-f:a-f,e=Math.pow(10,b),g=h*e/e,g.toFixed(b)},d.percentOffset=function(a){return(a-g)/l*100},d.ptrOffset=function(b){var c,e;if(b=Math.max(Math.min(b,h),g),c=d.percentOffset(b),e=p+m*c/100,r){var f;d.ref===s?(d.minHandleStyle={left:b+"px"},d.minNewVal=e,d.minPtrOffset=b,v.addClass("dragging"),e>d.maxNewVal&&(d.ref=t,u[0].focus(),d.maxNewVal=e,d.maxPtrOffset=b,u.addClass("dragging"),v.removeClass("dragging"),d.maxHandleStyle={left:b+"px"})):(d.maxHandleStyle={left:b+"px"},d.maxNewVal=e,d.maxPtrOffset=b,u.addClass("dragging"),e<d.minNewVal&&(d.ref=s,v[0].focus(),d.minVal=e,d.minPtrOffset=b,v.addClass("dragging"),u.removeClass("dragging"),d.minHandleStyle={left:b+"px"})),f=parseInt(d.maxPtrOffset)-parseInt(d.minPtrOffset),d.rangeStyle={width:f+"px",left:d.minPtrOffset+"px"}}else o&&b>A?d.rangeStyle={width:b+"px",zIndex:0}:(w.addClass("dragging"),d.rangeStyle={width:b+"px"}),d.handleStyle={left:b+"px"};(void 0===d.precision||void 0===d.step)&&(d.precision=a.precision,d.step=a.step),e=d.calStep(e,parseInt(d.precision),parseFloat(d.step),parseFloat(d.floor)),d[d.ref]=e}}}}]).directive("attSliderMin",[function(){return{require:"^attSlider",restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/slider/minContent.html"}}]).directive("attSliderMax",[function(){return{require:"^attSlider",restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/slider/maxContent.html"}}]),angular.module("att.abs.splitButtonDropdown",["att.abs.utilities","att.abs.position"]).directive("attButtonDropdown",["$document","$parse","$documentBind","$timeout","$isElement",function(a,b,c,d,e){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html",scope:{btnText:"@",btnType:"@",btnLink:"@",btnClick:"&",toggleTitle:"@"},controller:["$scope","$element",function(a,b){this.cSelected=0,this.closeAndFocusDropdown=function(){a.isDropDownOpen&&a.$apply(function(){a.isDropDownOpen=!1,angular.element(b[0].querySelector("a.dropdown-toggle"))[0].focus()})},this.focusNext=function(){this.cSelected=this.cSelected+1>=this.childScopes.length?a.cycleSelection===!0?0:this.childScopes.length-1:this.cSelected+1,this.childScopes[this.cSelected].sFlag=!0,this.resetFlag(this.cSelected)},this.focusPrev=function(){this.cSelected=this.cSelected-1<0?a.cycleSelection===!0?this.childScopes.length-1:0:this.cSelected-1,this.childScopes[this.cSelected].sFlag=!0,this.resetFlag(this.cSelected)},this.childScopes=[],this.registerScope=function(a){this.childScopes.push(a)},this.resetFlag=function(a){for(var b=0;b<this.childScopes.length;b++)b!==a&&(this.childScopes[b].sFlag=!1)}}],link:function(f,g,h){f.isSmall=""===h.small?!0:!1,f.multiselect=""===h.multiselect?!0:!1,f.cycleSelection=""===h.cycleSelection?!0:!1,f.isDropDownOpen=!1,f.isActionDropdown=!1,f.btnText||(f.isActionDropdown=!0),f.clickFxn=function(){"function"!=typeof f.btnClick||f.btnLink||(f.btnClick=b(f.btnClick),f.btnClick()),f.multiselect===!0&&(f.isDropDownOpen=!1)},f.toggleDropdown=function(){"disabled"!==f.btnType&&(f.isDropDownOpen=!f.isDropDownOpen,f.isDropDownOpen&&d(function(){angular.element(g[0].querySelector("li"))[0].focus()}))},f.btnTypeSelector=function(a,b){""!==a?f.btnTypeFinal=a:f.btnTypeFinal=b};var i=function(b){var c=e(angular.element(b.target),g.find("ul").eq(0),a);c||(f.isDropDownOpen=!1,f.$apply())};c.click("isDropDownOpen",i,f),h.$observe("btnType",function(a){f.btnType=a}),h.$observe("attButtonDropdown",function(a){h.attButtonDropdown=a,f.btnTypeSelector(h.attButtonDropdown,f.btnType)})}}}]).directive("attButtonDropdownItem",["$location","keymap",function(a,b){return{restrict:"EA",require:["^attButtonDropdown","?ngModel"],replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html",scope:{itemLink:"@"},link:function(a,c,d,e){angular.element(c[0].querySelector("a"));a.sFlag=!1,e[0].registerScope(a);e[1]?a.isSelected=e[1].$viewValue:a.isSelected=!1,c.bind("keydown",function(c){if(b.isAllowedKey(c.keyCode)||b.isControl(c)||b.isFunctionKey(c))switch(c.preventDefault(),c.stopPropagation(),c.keyCode){case b.KEY.DOWN:e[0].focusNext();break;case b.KEY.UP:e[0].focusPrev();break;case b.KEY.ENTER:a.selectItem();break;case b.KEY.ESC:e[0].closeAndFocusDropdown()}a.$apply()}),a.selectItem=function(){e[1]&&a.$evalAsync(function(){e[1].$setViewValue(!e[1].$viewValue)})}}}}]),angular.module("att.abs.splitIconButton",["att.abs.utilities"]).constant("iconStateConstants",{MIDDLE:"middle",LEFT:"left",RIGHT:"right",NEXT_TO_DROPDOWN:"next-to-dropdown",LEFT_NEXT_TO_DROPDOWN:"left-next-to-dropdown",DIR_TYPE:{LEFT:"left",RIGHT:"right",BUTTON:"button"},SPLIT_ICON_BTN_EVENT_EMITTER_KEY:"splitIconButtonTap"}).directive("expandableLine",[function(){return{restrict:"EA",replace:!0,priority:300,require:["^attSplitIconButton","expandableLine"],controller:["$scope",function(a){a.isActive=!1,this.setActiveState=function(b){a.isActive=b},this.isActive=a.isActive,this.dirType=a.dirType}],template:"<div ng-class=\"{'expand-line-container': !isActive, 'expand-line-container-active': isActive}\"> <div ng-class=\"{'hovered-line':isActive, 'vertical-line':!isActive}\"> </div></div>",scope:{dirType:"@"},link:function(a,b,c,d){var e=d[0],f=d[1];e.addSubCtrl(f)}}}]).controller("AttSplitIconCtrl",["$scope",function(a){this.setType=function(b){a.type=b},this.isDropdown=function(b){a.isDropdown=b},this.dropDownClicked=function(){a.dropDownClicked&&a.dropDownClicked()},this.dirType=a.dirType}]).directive("attSplitIcon",["$document","$timeout","iconStateConstants","$documentBind","events","keymap",function(a,b,c,d,e,f){return{restrict:"EA",replace:!0,priority:200,transclude:!0,require:["^attSplitIconButton","attSplitIcon"],templateUrl:"app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html",scope:{icon:"@",iconTitle:"@title",hoverWatch:"=",dropDownWatch:"=",dirType:"@"},controller:"AttSplitIconCtrl",link:function(a,b,g,h){var i=h[0],j=h[1];i.addSubCtrl(j),a.iconStateConstants=c;var k,l=0,m=!1;a.isDropdown=!1,a.isDropdownOpen=!1;var n=function(b){a.isDropdown&&(m?(m=!1,a.toggleDropdown()):a.toggleDropdown(!1),a.$apply())};g.dropDownId&&""!==g.dropDownId&&(a.dropDownId=g.dropDownId,a.isDropdown=!0),a.$on(c.SPLIT_ICON_BTN_EVENT_EMITTER_KEY,function(c,d){function g(b){switch(b.which){case f.KEY.TAB:a.toggleDropdown(!1),a.$digest();break;case f.KEY.ESC:n();break;case f.KEY.ENTER:a.isDropDownOpen&&h();break;case f.KEY.UP:b.preventDefault(),e.stopPropagation(b),a.isDropDownOpen&&a.previousItemInDropdown();break;case f.KEY.DOWN:b.preventDefault(),e.stopPropagation(b),a.isDropDownOpen?a.nextItemInDropdown():(m=!0,n(),h())}}function h(){if(void 0===k){k=[];for(var a=b.find("li"),c=0;c<a.length;c++)k.push(a.eq(c));k[l].children().eq(0).addClass("selected-item")}}if("boolean"==typeof d&&d)a.dropDownClicked(),a.isDropDownOpen&&k[l].eq(0).find("a")[0].click();else{var i=d;a.isDropdown&&g(i)}}),a.nextItemInDropdown=function(){k&&l<k.length-1&&(l++,k[l-1].children().eq(0).removeClass("selected-item"),k[l].children().eq(0).addClass("selected-item"))},a.previousItemInDropdown=function(){l>0&&(l--,k[l].children().eq(0).addClass("selected-item"),l+1<k.length&&k[l+1].children().eq(0).removeClass("selected-item"))},a.$watch("isIconHovered",function(b){a.hoverWatch=b}),a.$watch("type",function(b){function c(b,c,d,e,f){a.isMiddle=b,a.isNextToDropDown=c,a.isRight=d,a.isLeft=e,a.isLeftNextDropdown=f}switch(b){case a.iconStateConstants.MIDDLE:c(!0,!1,!1,!0,!1);break;case a.iconStateConstants.LEFT:c(!1,!1,!1,!0,!1);break;case a.iconStateConstants.RIGHT:c(!1,!1,!0,!1,!1);break;case a.iconStateConstants.NEXT_TO_DROPDOWN:c(!1,!0,!0,!0,!1);break;case a.iconStateConstants.LEFT_NEXT_TO_DROPDOWN:c(!1,!1,!1,!0,!0)}}),a.dropDownClicked=function(){m=!0},a.toggleDropdown=function(b){void 0!==b?a.isDropDownOpen=b:a.isDropDownOpen=!a.isDropDownOpen,a.dropDownWatch=a.isDropDownOpen},d.click("isDropdown",n,a)}}}]).controller("AttSplitIconButtonCtrl",["$scope","iconStateConstants",function(a,b){function c(a){var b=-1;for(var c in d.subCtrls){var e=d.subCtrls[c];if(e.dirType===a){b=c;break}}return b}this.subCtrls=[],a.isLeftLineShown=!0,a.isRightLineShown=!0,a.childrenScopes=[];var d=this;this.addSubCtrl=function(a){this.subCtrls.push(a)},this.isLeftLineShown=function(b){return void 0===b?a.isLeftLineShown:void(a.isLeftLineShown=b)},this.isRightLineShown=function(b){return void 0===b?a.isRightLineShown:void(a.isRightLineShown=b)},this.setLeftLineHover=function(d){var e=c(b.DIR_TYPE.LEFT);a.isLeftLineShown&&this.subCtrls[e]&&this.subCtrls[e].setActiveState&&this.subCtrls[e].setActiveState(d)},this.setRightLineHover=function(d){var e=c(b.DIR_TYPE.RIGHT);a.isRightLineShown&&this.subCtrls[e]&&this.subCtrls[e].setActiveState&&this.subCtrls[e].setActiveState(d)},this.toggleLines=function(d,e,f,g){function h(){for(var a=0;j>a;a++)if(i[a]===f){j-1>=a+1&&i[a+1].isLeftLineShown()&&i[a+1].subCtrls[k]&&i[a+1].subCtrls[k].setActiveState&&i[a+1].subCtrls[k].setActiveState(d),a-1>=0&&i[a-1].isRightLineShown()&&i[a-1].subCtrls[l]&&i[a-1].subCtrls[l].setActiveState&&i[a-1].subCtrls[l].setActiveState(d);break}}var i=e.subIconButtons,j=i.length,k=c(b.DIR_TYPE.LEFT),l=c(b.DIR_TYPE.RIGHT);g?i[j-2]==f?i[j-2].isLeftLineShown()?i[j-2].subCtrls[k].setActiveState(d):j-3>=0&&i[j-3].isRightLineShown()&&i[j-3].subCtrls[l].setActiveState(d):(h(),a.isLeftLineShown&&this.subCtrls[k].setActiveState(d),a.isRightLineShown&&this.subCtrls[l].setActiveState(d)):(a.isLeftLineShown||a.isRightLineShown||h(),a.isLeftLineShown&&this.subCtrls[k].setActiveState&&this.subCtrls[k].setActiveState(d),a.isRightLineShown&&this.subCtrls[l].setActiveState&&this.subCtrls[l].setActiveState(d))},this.setButtonType=function(a){var d=c(b.DIR_TYPE.BUTTON);this.subCtrls[d]&&this.subCtrls[d].setType&&this.subCtrls[d].setType(a)}}]).directive("attSplitIconButton",["$document","iconStateConstants","keymap",function(a,b,c){return{restrict:"EA",replace:!0,priority:100,transclude:!0,require:["^attSplitIconButtonGroup","attSplitIconButton"],controller:"AttSplitIconButtonCtrl",templateUrl:"app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html",scope:{icon:"@",title:"@",dropDownId:"@"},link:function(a,d,e,f){a.title||(a.title=a.icon);var g=f[0],h=f[1];g.addIconButton(h),d.bind("keydown",function(d){(d.which===c.KEY.ESC||d.which===c.KEY.DOWN||d.which===c.KEY.ENTER||d.which===c.KEY.UP||d.which===c.KEY.TAB)&&(a.clickHandler(),a.$broadcast(b.SPLIT_ICON_BTN_EVENT_EMITTER_KEY,d))}),a.dropDownWatch=!1,a.iconStateConstants=b,a.clickHandler=function(){g.hideLeftLineRightButton(h)},a.$watch("isHovered",function(a){a?h.toggleLines(a,g,h,g.isDropDownOpen):h.toggleLines(a,g,h,g.isDropDownOpen)}),a.$watch("dropDownWatch",function(a){g.isDropDownOpen=a,g.toggleDropdownState(a)})}}}]).controller("AttSplitIconButtonGroupCtrl",["$scope","iconStateConstants",function(a,b){this.subIconButtons=[],this.addIconButton=function(a){this.subIconButtons.push(a)},this.isDropDownOpen=!1,this.hideLeftLineRightButton=function(a){var b=this.subIconButtons.length,c=this.subIconButtons[b-2],d=this.subIconButtons[b-1];a!=c&&a!=d&&d.setLeftLineHover(!1)},this.toggleDropdownState=function(a){var c=this.subIconButtons.length;c>2?a?(this.subIconButtons[c-2].isRightLineShown()?this.subIconButtons[c-2].setRightLineHover(!0):this.subIconButtons[c-1].setLeftLineHover(!0),this.subIconButtons[c-2].setButtonType(b.NEXT_TO_DROPDOWN)):(this.subIconButtons[c-1].setLeftLineHover(!1),this.subIconButtons[c-2].setButtonType(b.MIDDLE)):a?(this.subIconButtons[0].setRightLineHover(!0),this.subIconButtons[0].setButtonType(b.LEFT_NEXT_TO_DROPDOWN)):this.subIconButtons[0].setButtonType(b.LEFT)}}]).directive("attSplitIconButtonGroup",["$document","$timeout","iconStateConstants",function(a,b,c){return{restrict:"EA",replace:!0,priority:50,transclude:!0,require:"attSplitIconButtonGroup",controller:"AttSplitIconButtonGroupCtrl",templateUrl:"app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html",scope:{},link:function(a,d,e,f){function g(){var a=f.subIconButtons,b=0,e=a.length-1;if(a[b].setButtonType(c.LEFT),a[b].isLeftLineShown(!1),a[b].isRightLineShown(!0),a[e].setButtonType(c.RIGHT),a[e].isRightLineShown(!1),a[e].isLeftLineShown(!1),e>=2){for(var g=1;e>g;)a[g].setButtonType(c.MIDDLE),a[g].isRightLineShown(!1),a[g].isLeftLineShown(!1),g++;for(var h=2;e>=h;)h==e?a[h].isLeftLineShown(!0):(a[h].isRightLineShown(!0),a[h].isLeftLineShown(!0)),h+=2}var i=d.find("ul");if(i.length>0){var j=e+1;if(j>2){var k=34*j-70+j/1.5+.5,l=k+"px";angular.element(i).css("left",l),angular.element(i).css("border-top-left-radius","0px")}else angular.element(i).css("left","0px")}}b(g,100)}}}]),angular.module("att.abs.stepSlider",["att.abs.position"]).constant("sliderConstants",{SLIDER:{settings:{from:1,to:40,step:1,smooth:!0,limits:!0,value:"3",dimension:"",vertical:!1},className:"jslider",selector:".jslider-"},EVENTS:{},COLORS:{GREEN:"green",BLUE_HIGHLIGHT:"blue",MAGENTA:"magenta",GOLD:"gold",PURPLE:"purple",DARK_BLUE:"dark-blue",REGULAR:"regular",WHITE:"white"}}).factory("utils",function(){return{offset:function(a){var b=a[0],c=0,d=0,e=document.documentElement||document.body,f=window.pageXOffset||e.scrollLeft,g=window.pageYOffset||e.scrollTop;return c=b.getBoundingClientRect().left+f,d=b.getBoundingClientRect().top+g,{left:c,top:d}},roundUpToScale:function(a,b,c,d){function e(a,b){var c=.1;return Math.abs(b-a)<=c?!0:!1}for(var f,g,h,i,j=1;j<b.length;j++){if(f=b[j-1],g=b[j],i=.5*(g-f)+f,0===f&&i>=a||e(f,a)){h=f;break}if(a>f&&(g>a||e(a,g))){h=g;break}}return c&&c>h?b[d]:h},valueForDifferentScale:function(a,b,c,d){var e=c/100;return 0===e?a:d[c]},convertToMbpsGbps:function(a,b,c){function d(a,b){var c=Math.pow(10,b);return~~(a*c)/c}var e=3;return c&&(e=c),a>1024&&1e6>a&&angular.equals(b,"Kbps")?(a=d(a/1e3,e),b="Mbps"):a>1024&&1e6>a&&angular.equals(b,"Mbps")?(a=d(a/1e3,e),b="Mbps"):b=(1024>=a&&angular.equals(b,"Mbps"),"Kbps"),a>=1e6&&angular.equals(b,"Kbps")&&(a=d(a/1e6,e),b="Gbps"),{unitValue:a,unitLabel:b}},getConversionFactorValue:function(a,b,c){if(a<=b[0].startVal)return{scaledVal:a,scaledDimension:c};var d=0;for(var e in b){var f=b[e];a>f.startVal&&(d=e)}var g=b[d].scaleFactor,h=a/g,i=b[d].dimension;return{scaledVal:h,scaledDimension:i}}}}).factory("sliderDraggable",["utils",function(a){function b(){this._init.apply(this,arguments)}return b.prototype.oninit=function(){},b.prototype.events=function(){},b.prototype.onmousedown=function(){this.ptr.css({position:"absolute"})},b.prototype.onmousemove=function(a,b,c){this.ptr.css({left:b,top:c})},b.prototype.onmouseup=function(){},b.prototype.isDefault={drag:!1,clicked:!1,toclick:!0,mouseup:!1},b.prototype._init=function(){if(arguments.length>0){if(this.ptr=arguments[0],this.parent=arguments[2],!this.ptr)return;this.is={},angular.extend(this.is,this.isDefault);var b=a.offset(this.ptr);this.d={left:b.left,top:b.top,width:this.ptr[0].clientWidth,height:this.ptr[0].clientHeight},this.oninit.apply(this,arguments),this._events()}},b.prototype._getPageCoords=function(a){var b={};return b=a.targetTouches&&a.targetTouches[0]?{x:a.targetTouches[0].pageX,y:a.targetTouches[0].pageY}:{x:a.pageX,y:a.pageY}},b.prototype._bindEvent=function(a,b,c){this.supportTouches_?a[0].attachEvent(this.events_[b],c):a.bind&&a.bind(this.events_[b],c)},b.prototype._events=function(){var a=this;this.supportTouches_="ontouchend"in document,this.events_={click:this.supportTouches_?"touchstart":"click",down:this.supportTouches_?"touchstart":"mousedown",move:this.supportTouches_?"touchmove":"mousemove",up:this.supportTouches_?"touchend":"mouseup",mousedown:(this.supportTouches_,"mousedown")};var b=angular.element(window.document);this._bindEvent(b,"move",function(b){a.is.drag&&(b.stopPropagation(),b.preventDefault(),a.parent.disabled||a._mousemove(b))}),this._bindEvent(b,"down",function(b){a.is.drag&&(b.stopPropagation(),b.preventDefault())}),this._bindEvent(b,"up",function(b){a._mouseup(b)}),this._bindEvent(this.ptr,"down",function(b){return a._mousedown(b),!1}),this._bindEvent(this.ptr,"up",function(b){a._mouseup(b)}),this.events()},b.prototype._mousedown=function(a){this.is.drag=!0,this.is.clicked=!1,this.is.mouseup=!1;var b=this._getPageCoords(a);this.cx=b.x-this.ptr[0].offsetLeft,this.cy=b.y-this.ptr[0].offsetTop,angular.extend(this.d,{left:this.ptr[0].offsetLeft,top:this.ptr[0].offsetTop,width:this.ptr[0].clientWidth,height:this.ptr[0].clientHeight}),this.outer&&this.outer.get(0)&&this.outer.css({height:Math.max(this.outer.height(),$(document.body).height()),overflow:"hidden"}),this.onmousedown(a)},b.prototype._mousemove=function(a){if(0!==this.uid){this.is.toclick=!1;var b=this._getPageCoords(a);this.onmousemove(a,b.x-this.cx,b.y-this.cy)}},b.prototype._mouseup=function(a){this.is.drag&&(this.is.drag=!1,this.outer&&this.outer.get(0)&&($.browser.mozilla?this.outer.css({overflow:"hidden"}):this.outer.css({overflow:"visible"}),$.browser.msie&&"6.0"===$.browser.version?this.outer.css({height:"100%"}):this.outer.css({height:"auto"})),this.onmouseup(a))},b}]).factory("sliderPointer",["sliderDraggable","utils",function(a,b){function c(){a.apply(this,arguments)}return c.prototype=new a,c.prototype.oninit=function(a,b,c){this.uid=b,this.parent=c,this.value={},this.settings=angular.copy(c.settings)},c.prototype.onmousedown=function(a){var c=b.offset(this.parent.domNode),d={left:c.left,top:c.top,width:this.parent.domNode[0].clientWidth,height:this.parent.domNode[0].clientHeight};this._parent={offset:d,width:d.width,height:d.height},this.ptr.addClass("jslider-pointer-hover"),this.setIndexOver()},c.prototype.onmousemove=function(a,c,d){var e=this._getPageCoords(a),f=this.calc(e.x);this.parent.settings.smooth||(f=b.roundUpToScale(f,this.parent.settings.scale,this.parent.settings.cutOffWidth,this.parent.settings.cutOffIndex));var g=this.parent.settings.cutOffWidth;g&&g>f&&(f=g),this._set(f)},c.prototype.onmouseup=function(a){if(this.settings.callback&&angular.isFunction(this.settings.callback)){var b=this.parent.getValue();this.settings.callback.call(this.parent,b)}this.ptr.removeClass("jslider-pointer-hover")},c.prototype.setIndexOver=function(){this.parent.setPointersIndex(1),this.index(2)},c.prototype.index=function(a){},c.prototype.limits=function(a){return this.parent.limits(a,this)},c.prototype.calc=function(a){var b=a-this._parent.offset.left,c=this.limits(100*b/this._parent.width);return c},c.prototype.set=function(a,b){this.value.origin=this.parent.round(a),this._set(this.parent.valueToPrc(a,this),b)},c.prototype._set=function(a,b){b||(this.value.origin=this.parent.prcToValue(a)),this.value.prc=a,this.ptr.css({left:a+"%"}),this.parent.redraw(this)},c}]).factory("slider",["sliderPointer","sliderConstants","utils",function(a,b,c){function d(){return this.init.apply(this,arguments)}function e(a){f.css("width",a)}var f;return d.prototype.changeCutOffWidth=e,d.prototype.init=function(a,c,d){this.settings=b.SLIDER.settings,angular.extend(this.settings,angular.copy(d)),this.inputNode=a,this.inputNode.addClass("ng-hide"),this.settings.interval=this.settings.to-this.settings.from,this.settings.calculate&&$.isFunction(this.settings.calculate)&&(this.nice=this.settings.calculate),this.settings.onstatechange&&$.isFunction(this.settings.onstatechange)&&(this.onstatechange=this.settings.onstatechange),this.is={init:!1},this.o={},this.create(c)},d.prototype.create=function(b){var d=this;this.domNode=b;var e=c.offset(this.domNode),g={left:e.left,top:e.top,width:this.domNode[0].clientWidth,height:this.domNode[0].clientHeight};this.sizes={domWidth:this.domNode[0].clientWidth,domOffset:g},angular.extend(this.o,{pointers:{},labels:{0:{o:angular.element(this.domNode.find("div")[5])},1:{o:angular.element(this.domNode.find("div")[6])}},limits:{0:angular.element(this.domNode.find("div")[3]),1:angular.element(this.domNode.find("div")[5])}}),angular.extend(this.o.labels[0],{value:this.o.labels[0].o.find("span")}),angular.extend(this.o.labels[1],{value:this.o.labels[1].o.find("span")}),d.settings.value.split(";")[1]||(this.settings.single=!0);var h=this.domNode.find("div");f=angular.element(h[8]),f&&f.css&&f.css("width","0%");var i=[angular.element(h[1]),angular.element(h[2])];angular.forEach(i,function(b,c){d.settings=angular.copy(d.settings);var e=d.settings.value.split(";")[c];if(e){d.o.pointers[c]=new a(b,c,d);var f=d.settings.value.split(";")[c-1];f&&parseInt(e,10)<parseInt(f,10)&&(e=f);var g=e<d.settings.from?d.settings.from:e;g=e>d.settings.to?d.settings.to:e,d.o.pointers[c].set(g,!0),0===c&&d.domNode.bind("mousedown",d.clickHandler.apply(d))}}),this.o.value=angular.element(this.domNode.find("i")[2]),this.is.init=!0,angular.forEach(this.o.pointers,function(a){d.redraw(a)})},d.prototype.clickHandler=function(){var a=this;return function(b){if(!a.disabled){var d=b.target.className,e=0;d.indexOf("jslider-pointer-to")>0&&(e=1);var f=c.offset(a.domNode),g={left:f.left,top:f.top,width:a.domNode[0].clientWidth,height:a.domNode[0].clientHeight};e=1;var h=a.o.pointers[e];return h._parent={offset:g,width:g.width,height:g.height},h._mousemove(b),h.onmouseup(),!1}}},d.prototype.disable=function(a){this.disabled=a},d.prototype.nice=function(a){return a},d.prototype.onstatechange=function(){},d.prototype.limits=function(a,b){if(!this.settings.smooth){var c=100*this.settings.step/this.settings.interval;a=Math.round(a/c)*c}var d=this.o.pointers[1-b.uid];d&&b.uid&&a<d.value.prc&&(a=d.value.prc),d&&!b.uid&&a>d.value.prc&&(a=d.value.prc),0>a&&(a=0),a>100&&(a=100);var e=Math.round(10*a)/10;return e},d.prototype.setPointersIndex=function(a){angular.forEach(this.getPointers(),function(a,b){a.index(b)})},d.prototype.getPointers=function(){return this.o.pointers},d.prototype.onresize=function(){var a=this;this.sizes={domWidth:this.domNode[0].clientWidth,domHeight:this.domNode[0].clientHeight,domOffset:{left:this.domNode[0].offsetLeft,top:this.domNode[0].offsetTop,width:this.domNode[0].clientWidth,height:this.domNode[0].clientHeight}},angular.forEach(this.o.pointers,function(b,c){a.redraw(b)})},d.prototype.update=function(){this.onresize(),this.drawScale()},d.prototype.drawScale=function(){},d.prototype.redraw=function(a){if(!this.settings.smooth){var b=c.roundUpToScale(a.value.prc,this.settings.scale,this.settings.cutOffWidth,this.settings.cutOffIndex);a.value.origin=b,a.value.prc=b}if(!this.is.init)return!1;this.setValue();var d=this.o.pointers[1].value.prc,e={left:"0%",width:d+"%"};this.o.value.css(e);var f=this.nice(a.value.origin),g=this.settings.firstDimension;if(this.settings.stepWithDifferentScale&&!this.settings.smooth&&(f=c.valueForDifferentScale(this.settings.from,this.settings.to,f,this.settings.prcToValueMapper)),this.settings.realtimeCallback&&angular.isFunction(this.settings.realtimeCallback)&&void 0!==this.settings.cutOffVal&&1===a.uid&&this.settings.realtimeCallback(f),this.settings.conversion){var h=c.getConversionFactorValue(parseInt(f),this.settings.conversion,this.settings.firstDimension);f=h.scaledVal,g=h.scaledDimension}f=parseFloat(f);var i=c.convertToMbpsGbps(f,g,this.settings.decimalPlaces);this.o.labels[a.uid].value.html(i.unitValue+" "+i.unitLabel),this.redrawLabels(a)},d.prototype.redrawLabels=function(a){function b(a,b,d){b.margin=-b.label/2;var e=c.sizes.domWidth,f=b.border+b.margin;return 0>f&&(b.margin-=f),b.border+b.label/2>e?(b.margin=0,b.right=!0):b.right=!1,b.margin=-(a.o[0].clientWidth/2-a.o[0].clientWidth/20),
-a.o.css({left:d+"%",marginLeft:b.margin,right:"auto"}),b.right&&a.o.css({left:"auto",right:0}),b}var c=this,d=this.o.labels[a.uid],e=a.value.prc,f={label:d.o[0].offsetWidth,right:!1,border:e*i/100},g=null,h=null;if(!this.settings.single)switch(h=this.o.pointers[1-a.uid],g=this.o.labels[h.uid],a.uid){case 0:f.border+f.label/2>g.o[0].offsetLeft-this.sizes.domOffset.left?(g.o.css({visibility:"hidden"}),g.value.html(this.nice(h.value.origin)),d.o.css({visibility:"hidden"}),e=(h.value.prc-e)/2+e,h.value.prc!==a.value.prc&&(d.value.html(this.nice(a.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(h.value.origin)),f.label=d.o[0].clientWidth,f.border=e*i/100)):g.o.css({visibility:"visible"});break;case 1:f.border-f.label/2<g.o[0].offsetLeft-this.sizes.domOffset.left+g.o[0].clientWidth?(g.o.css({visibility:"hidden"}),g.value.html(this.nice(h.value.origin)),d.o.css({visibility:"visible"}),e=(e-h.value.prc)/2+h.value.prc,h.value.prc!==a.value.prc&&(d.value.html(this.nice(h.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(a.value.origin)),f.label=d.o[0].clientWidth,f.border=e*i/100)):g.o.css({visibility:"visible"})}f=b(d,f,e);var i=c.sizes.domWidth;g&&(f={label:g.o[0].clientWidth,right:!1,border:h.value.prc*this.sizes.domWidth/100},f=b(g,f,h.value.prc))},d.prototype.redrawLimits=function(){if(this.settings.limits){var a=[!0,!0];for(var b in this.o.pointers)if(!this.settings.single||0===b){var c=this.o.pointers[b],d=this.o.labels[c.uid],e=d.o[0].offsetLeft-this.sizes.domOffset.left,f=this.o.limits[0];e<f[0].clientWidth&&(a[0]=!1),f=this.o.limits[1],e+d.o[0].clientWidth>this.sizes.domWidth-f[0].clientWidth&&(a[1]=!1)}for(var g=0;g<a.length;g++)a[g]?angular.element(this.o.limits[g]).addClass("animate-show"):angular.element(this.o.limits[g]).addClass("animate-hidde")}},d.prototype.setValue=function(){var a=this.getValue();this.inputNode.attr("value",a),this.onstatechange.call(this,a,this.inputNode)},d.prototype.getValue=function(){if(!this.is.init)return!1;var a=this,b="";return angular.forEach(this.o.pointers,function(d,e){if(void 0!==d.value.prc&&!isNaN(d.value.prc)){var f=d.value.prc,g=a.prcToValue(f);if(!a.settings.smooth)var g=c.valueForDifferentScale(a.settings.from,a.settings.to,f,a.settings.prcToValueMapper);b+=(e>0?";":"")+g}}),b},d.prototype.getPrcValue=function(){if(!this.is.init)return!1;var a="";return $.each(this.o.pointers,function(b){void 0===this.value.prc||isNaN(this.value.prc)||(a+=(b>0?";":"")+this.value.prc)}),a},d.prototype.prcToValue=function(a){var b;if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0)for(var c=this.settings.heterogeneity,d=0,e=this.settings.from,f=0;f<=c.length;f++){var g;g=c[f]?c[f].split("/"):[100,this.settings.to],a>=d&&a<=g[0]&&(b=e+(a-d)*(g[1]-e)/(g[0]-d)),d=g[0],e=g[1]}else b=this.settings.from+a*this.settings.interval/100;var h=this.round(b);return h},d.prototype.valueToPrc=function(a,b){var c;if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0)for(var d=this.settings.heterogeneity,e=0,f=this.settings.from,g=0;g<=d.length;g++){var h;h=d[g]?d[g].split("/"):[100,this.settings.to],a>=f&&a<=h[1]&&(c=b.limits(e+(a-f)*(h[0]-e)/(h[1]-f))),e=h[0],f=h[1]}else c=b.limits(100*(a-this.settings.from)/this.settings.interval);return c},d.prototype.round=function(a){return a=Math.round(a/this.settings.step)*this.settings.step,a=this.settings.round?Math.round(a*Math.pow(10,this.settings.round))/Math.pow(10,this.settings.round):Math.round(a)},d}]).directive("attStepSlider",["$compile","$templateCache","$timeout","$window","slider","sliderConstants","utils",function(a,b,c,d,e,f,g){var h="app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html";return{restrict:"AE",require:"?ngModel",scope:{options:"=",cutOff:"="},priority:1,templateUrl:h,link:function(i,j,k,l){function m(){angular.element(d).bind("resize",function(a){i.slider.onresize()})}if(l){i.mainSliderClass="step-slider",j.after(a(b.get(h))(i,function(a,b){b.tmplElt=a})),l.$render=function(){if(l.$viewValue.split&&1===l.$viewValue.split(";").length?l.$viewValue="0;"+l.$viewValue:"number"==typeof l.$viewValue&&(l.$viewValue="0;"+l.$viewValue),(l.$viewValue||0===l.$viewValue)&&("number"==typeof l.$viewValue&&(l.$viewValue=""+l.$viewValue),i.slider)){var a="0";if(i.slider.getPointers()[0].set(a,!0),l.$viewValue.split(";")[1]){var b=l.$viewValue.split(";")[1];b.length>=4&&(b=b.substring(0,2)),i.options.realtime||i.options.callback(parseFloat(l.$viewValue.split(";")[1])),i.slider.getPointers()[1].set(l.$viewValue.split(";")[1],!0)}}};var n=function(){function a(){0!==d[0]&&d.splice(0,0,0),100!==d[d.length-1]&&d.splice(d.length,0,100)}function b(){if(d[d.length-1]!==i.options.to&&d.splice(d.length,0,i.options.to),i.options.displayScaledvalues){for(var a in d)h.push(Math.log2(d[a]));var b=h[h.length-1]}for(var a in d){var c,e=d[a]/i.options.from,f=d[a]/i.options.to;c=i.options.displayScaledvalues?h[a]/b*100:(d[a]-i.options.from)/(i.options.to-i.options.from)*100;var g=d[a];1===f?c=100:1===e&&(c=0),d[a]=c,k[""+c]=g}}i.from=""+i.options.from,i.to=""+i.options.to,i.options.calculate&&"function"==typeof i.options.calculate&&(i.from=i.options.calculate(i.from),i.to=i.options.calculate(i.to)),i.showDividers=i.options.showDividers,i.COLORS=f.COLORS,i.sliderColor=i.options.sliderColor,i.sliderColor||(i.sliderColor=f.COLORS.REGULAR);var d=i.options.scale,e=[],h=[],k={};for(var n in d){var p=d[n];e.push(p)}0===i.options.from&&100===i.options.to||!i.options.smooth?0===i.options.from&&100===i.options.to||i.options.smooth?(b(),a()):(i.options.stepWithDifferentScale=!0,b(),a()):(a(),i.options.stepWithDifferentScale=!0);var q=0;if(i.options.decimalPlaces&&(q=i.options.decimalPlaces),i.endDimension=i.options.dimension,i.options.conversion){var r=i.options.conversion.length-1,s=i.options.conversion[r].dimension,t=i.options.conversion[r].scaleFactor;i.endDimension=" "+s;var u=(i.to/t).toFixed(q);i.toStr=u}else i.toStr=i.options.to;var v=g.convertToMbpsGbps(i.toStr,i.endDimension,i.options.decimalPlaces);i.toStr=v.unitValue,i.endDimension=" "+v.unitLabel;var w={from:i.options.from,to:i.options.to,step:i.options.step,smooth:i.options.smooth,limits:!0,stepWithDifferentScale:i.options.stepWithDifferentScale,round:i.options.round||!1,value:l.$viewValue,scale:i.options.scale,nonPercentScaleArray:e,prcToValueMapper:k,firstDimension:i.options.dimension,decimalPlaces:q,conversion:i.options.conversion,realtimeCallback:i.options.callback};angular.isFunction(i.options.realtime)?w.realtimeCallback=function(a){l.$setViewValue(a),i.options.callback(a)}:w.callback=o,w.calculate=i.options.calculate||void 0,w.onstatechange=i.options.onstatechange||void 0,c(function(){var a=i.tmplElt.find("div")[7];w.conversion||(i.tmplElt.find("div").eq(6).find("span").eq(0).css("padding-left","10px"),i.tmplElt.find("div").eq(6).find("span").eq(0).css("padding-right","15px")),i.slider=angular.element.slider(j,i.tmplElt,w),angular.element(a).html(i.generateScale()),i.drawScale(a),m(),i.$watch("options.disable",function(a){i.slider&&(i.tmplElt.toggleClass("disabled",a),i.slider.disable(a))}),i.$watch("cutOff",function(a){if(a&&a>0){var b=(a-i.slider.settings.from)/(i.slider.settings.to-i.slider.settings.from);if(b=100*b,i.isCutOffSlider=!0,i.slider.settings.cutOffWidth=b,i.cutOffVal=a,i.options.conversion){var c=g.getConversionFactorValue(a,i.options.conversion,i.options.dimension);c.scaledVal=parseFloat(c.scaledVal).toFixed(i.options.decimalPlaces),i.cutOffVal=c.scaledVal+" "+c.scaledDimension}i.slider.settings.cutOffVal=a,i.slider.changeCutOffWidth(b+"%");var d=i.slider.settings.nonPercentScaleArray;for(var e in d)if(e>=1){var f=d[e-1],h=d[e];a>f&&h>=a&&(i.slider.settings.cutOffIndex=e)}}else i.slider.settings.cutOffVal=0})})};i.generateScale=function(){if(i.options.scale&&i.options.scale.length>0){for(var a="",b=i.options.scale,c="left",d=0;d<b.length;d++)if(0!==d&&d!==b.length-1){var e=(b[d]-i.from)/(i.to-i.from)*100;i.options.stepWithDifferentScale&&!i.options.smooth&&(e=b[d]),a+='<span style="'+c+": "+e+'%"></span>'}return a}return""},i.drawScale=function(a){angular.forEach(angular.element(a).find("ins"),function(a,b){a.style.marginLeft=-a.clientWidth/2})};var o=function(a){var b=a.split(";")[1];i.$apply(function(){l.$setViewValue(parseInt(b))}),i.options.callback&&i.options.callback(parseInt(b))};i.$watch("options",function(a){n()}),angular.element.slider=function(a,b,c){b.data("jslider")||b.data("jslider",new e(a,b,c));var d=b.data("jslider");return d}}}}}]),angular.module("att.abs.steptracker",["att.abs.transition"]).directive("steptracker",["$timeout",function(a){return{priority:100,scope:{sdata:"=sdata",cstep:"=currentStep",clickHandler:"=?",disableClick:"=?"},restrict:"EA",replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/steptracker/step-tracker.html",link:function(b,c){void 0===b.disableClick&&(b.disableClick=!1),a(function(){function a(a){return angular.element(g[a-1])}function d(){if(b.cstep>0&&b.cstep<=b.sdata.length-1&&j>0){var c=j/k*100+"%";l=a(b.cstep),l.css("width",c)}}function e(){b.cstep<=b.sdata.length&&(j=b.sdata[b.cstep-1].currentPage,k=b.sdata[b.cstep-1].totalPages)}b.cstep<1?b.cstep=1:b.cstep>b.sdata.length&&(b.cstep=b.sdata.length);var f=c.find("div"),g=[];for(var h in f)if(f.eq(h)[0]){var i=f.eq(h)[0].className;i.indexOf("track ng-scope")>-1&&g.push(f.eq(h))}var j,k,l=a(b.cstep);b.set_width=function(a){var c=100/(b.sdata.length-1)+"%";return b.sdata.length-1>a?{width:c}:void 0},b.$watch("sdata",function(){e();var a=b.cstep;if(1>j&&(j=1,1!==b.cstep&&(b.cstep--,e())),j>k){if(b.cstep>b.sdata.length-1)return void b.cstep++;j=k,d(),b.cstep++,e(),d()}1>j&&a===b.cstep&&(j=1,b.cstep>1&&(b.cstep--,b.sdata[b.cstep-1].currentPage=b.sdata[b.cstep-1].totalPages,b.sdata[b.cstep].currentPage=1)),d()},!0),b.activestep=function(a){return a===b.cstep-1},b.donesteps=function(a){return a<b.cstep-1},b.laststep=function(a){return a===b.sdata.length-1},b.isIncomplete=function(a){if(a===b.cstep-1)return!1;if(a>=0&&a<b.sdata.length-1){var c=b.sdata[a];return c.currentPage<=c.totalPages}},b.stepclick=function(a,c){if(c<b.cstep){for(var f=b.cstep-1;f>c;f--)b.sdata[f].currentPage=1;b.sdata[c].currentPage--}angular.isFunction(b.clickHandler)&&b.clickHandler(a,c),b.cstep=c+1,b.cstep<=b.sdata.length&&b.sdata[b.cstep].currentPage<1&&(b.sdata[b.cstep].currentPage=1),e(),d()}},100)}}}]).constant("timelineConstants",{STEP_TYPE:{ALERT:"alert",COMPLETED:"completed",CANCELLED:"cancelled"}}).controller("AttTimelineCtrl",["$scope","$timeout",function(a,b){function c(){function b(a,b){return a.order<b.order?-1:a.order>b.order?1:0}f.sort(b),e.sort(b),a.$parent.animate&&d(),a.$watch("trigger",function(b){b?a.resetTimeline():a.$parent.animate=!1})}function d(){function c(){for(var a in f){var b=f[a];if(a%2===0?b.unhoveredStateForBelow(.25):b.unhoveredStateForAbove(.25),b.isStop())break}}function d(a,h){return 0===a?function(){f[a+1].isStop()&&f[a+1].isCancelled()&&e[a].isCancelled(!0),e[a].animate(d(a+1,h),h)}:a===e.length-1?function(){f[0].isCurrentStep()&&f[0].isCurrentStep(!1),f[a].isStop()?(f[a-1].shrinkAnimate(g),f[a].isCurrentStep(!0)):(f[a-1].shrinkAnimate(g),e[a].animate(d(a+1,h),h)),f[a].expandedAnimate(g),b(function(){c()},500)}:a===e.length?function(){f[0].isCurrentStep()&&f[0].isCurrentStep(!1),f[a-1].shrinkAnimate(g),f[a].expandedAnimate(g),f[a].isCurrentStep(!0),b(function(){c()},500)}:function(){f[0].isCurrentStep()&&f[0].isCurrentStep(!1),f[a].isStop()?(f[a-1].shrinkAnimate(g),f[a].expandedAnimate(g),f[a].isCurrentStep(!0),b(function(){c()},500)):(f[a+1].isStop()&&f[a+1].isCancelled()&&e[a].isCancelled(!0),f[a-1].shrinkAnimate(g),e[a].animate(d(a+1,h),h),f[a].expandedAnimate(g))}}var g=.25,h=.25;"number"==typeof a.barAnimateDuration&&(h=a.barAnimateDuration);var i=d(0,h);i()}var e=[],f=[];this.numSteps=0,this.isAlternate=function(){return a.alternate},this.addTimelineBarCtrls=function(a){e.push(a)},this.addTimelineDotCtrls=function(a){f.push(a)},b(c,200)}]).directive("attTimeline",["$timeout","$compile",function(a,b){return{restrict:"EA",replace:!0,scope:{steps:"=",trigger:"=",alternate:"=",barAnimateDuration:"="},templateUrl:"app/scripts/ng_js_att_tpls/steptracker/timeline.html",controller:"AttTimelineCtrl",link:function(a,c,d,e){var f=function(){for(var b=a.steps,c=[],d=1;d<b.length;d++){var f=b[d];c.push(f)}a.middleSteps=c,e.numSteps=b.length-1};f(),a.resetTimeline=function(){a.animate=!0,b(c)(a)}}}}]).controller("TimelineBarCtrl",["$scope",function(a){this.type="timelinebar",this.order=parseInt(a.order),this.animate=function(b,c){a.loadingAnimation(b,c)},this.isCancelled=function(b){a.isCancelled=b}}]).directive("timelineBar",["animation","$progressBar",function(a,b){return{restrict:"EA",replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/steptracker/timelineBar.html",scope:{order:"@"},require:["^attTimeline","timelineBar"],controller:"TimelineBarCtrl",link:function(c,d,e,f){var g=f[0],h=f[1];g.addTimelineBarCtrls(h),c.isCompleted=!0;var i=100/g.numSteps-3;d.css("width",i+"%");var j=d.find("div").eq(0);a.set(j,{opacity:0});var k=function(b){a.set(j,{opacity:1}),a.set(j,{scaleX:b.progress(),transformOrigin:"left"})};c.loadingAnimation=b(k)}}}]).controller("TimelineDotCtrl",["$scope","$timeout","timelineConstants",function(a,b,c){this.type="dot",this.order=parseInt(a.order);var d=this;b(function(){0!==d.order&&(d.order%2!==0?a.initializeAboveForAnimation():a.initializeBelowForAnimation())}),this.expandedAnimate=function(b){a.setColor(),a.expandedAnimate(b),0===d.order||a.isStepsLessThanFive()||(d.order%2!==0?a.expandContentForAbove(b):a.expandContentForBelow(b))},this.unhoveredStateForAbove=function(b){a.unhoveredStateForAbove(b)},this.unhoveredStateForBelow=function(b){a.unhoveredStateForBelow(b)},this.shrinkAnimate=function(b){a.shrinkAnimate(b)},this.setExpanded=function(){a.setSize(3)},this.isStop=function(){return a.isStop},this.isCancelled=function(){return a.type===c.STEP_TYPE.CANCELLED},this.isAlert=function(){return a.type===c.STEP_TYPE.ALERT},this.isCurrentStep=function(b){return void 0!==b&&(a.isCurrentStep=b),a.isCurrentStep}}]).directive("timelineDot",["animation","timelineConstants",function(a,b){return{restrict:"EA",replace:!0,scope:{order:"@",title:"@",description:"@",by:"@",date:"@",type:"@"},templateUrl:"app/scripts/ng_js_att_tpls/steptracker/timelineDot.html",require:["^attTimeline","timelineDot"],controller:"TimelineDotCtrl",link:function(c,d,e,f){function g(){return c.description||c.by||c.date?!1:!0}var h=f[0],i=f[1];h.addTimelineDotCtrls(i),c.numSteps=h.numSteps+1,c.isCurrentStep=!1,c.isCompleted=!1,c.isStop=!1,(c.type===b.STEP_TYPE.ALERT||c.type===b.STEP_TYPE.CANCELLED)&&(c.isStop=!0),c.isInactive=!0;var j=d.find("div"),k=j.eq(0),l=j.eq(2),m=j.eq(3),n=j.eq(5),o=j.eq(6),p=j.eq(9);c.isStepsLessThanFive=function(){return c.numSteps<5?!0:!1},c.titleMouseover=function(a){c.isStepsLessThanFive()||g()||(1===a&&c.order%2===0&&c.expandContentForBelow(.25),2===a&&c.order%2!==0&&c.expandContentForAbove(.25))},c.titleMouseleave=function(){c.order%2===0?c.unhoveredStateForBelow(.25):c.unhoveredStateForAbove(.25)},c.initializeAboveForAnimation=function(){if(!c.isStepsLessThanFive()&&h.isAlternate()&&(a.set(o,{opacity:0}),a.set(p,{opacity:0}),!g())){var b=o[0].offsetHeight+p[0].offsetHeight;a.set(n,{top:b})}},c.expandContentForAbove=function(b){!c.isStepsLessThanFive()&&h.isAlternate()&&(a.to(n,b,{top:0}),a.to(o,b,{opacity:1}),a.to(p,b,{opacity:1}))},c.unhoveredStateForAbove=function(b){if(!c.isStepsLessThanFive()&&h.isAlternate()){a.set(o,{opacity:0}),a.set(p,{opacity:1});var d=o[0].offsetHeight;a.to(n,b,{top:d})}},c.initializeBelowForAnimation=function(){!c.isStepsLessThanFive()&&h.isAlternate()&&(a.set(o,{height:"0%",opacity:0,top:"-20px"}),a.set(p,{opacity:0}))},c.expandContentForBelow=function(b){!c.isStepsLessThanFive()&&h.isAlternate()&&(a.set(p,{opacity:1}),a.to(o,b,{height:"auto",opacity:1,top:"0px"}))},c.unhoveredStateForBelow=function(b){!c.isStepsLessThanFive()&&h.isAlternate()&&(a.to(o,b,{height:"0%",opacity:0,top:"-20px",position:"relative"}),a.set(p,{opacity:1}))},g()&&c.order%2!==0&&h.isAlternate()&&m.css("top","-47px"),c.order%2!==0&&h.isAlternate()?c.isBelowInfoBoxShown=!1:c.isBelowInfoBoxShown=!0,c.isStepsLessThanFive()&&!h.isAlternate()&&a.set(p,{marginTop:10}),a.set(k,{opacity:".5"}),a.set(l,{opacity:"0.0"}),a.set(l,{scale:.1}),0===c.order&&(a.set(l,{opacity:"1.0"}),a.set(l,{scale:1}),a.set(k,{scale:3}),c.isCurrentStep=!0,c.isInactive=!1,c.isCompleted=!0),c.setColor=function(){c.isInactive=!1,c.type===b.STEP_TYPE.CANCELLED?c.isCancelled=!0:c.type===b.STEP_TYPE.ALERT?c.isAlert=!0:c.isCompleted=!0,c.$phase||c.$apply()},c.setSize=function(b){a.set(biggerCircle,{scale:b})},c.setExpandedCircle=function(){a.set(l,{opacity:"1.0"}),a.set(l,{scale:1})},c.expandedAnimate=function(b){a.to(k,b,{scale:3}),a.set(l,{opacity:"1.0"}),a.to(l,b,{scale:1})},c.shrinkAnimate=function(b){a.to(k,b,{scale:1})}}}}]),angular.module("att.abs.table",["att.abs.utilities"]).constant("tableConfig",{defaultSortPattern:!1,highlightSearchStringClass:"tablesorter-search-highlight"}).directive("attTable",["$filter",function(a){return{restrict:"EA",replace:!0,transclude:!0,scope:{tableData:"=",viewPerPage:"=",currentPage:"=",totalPage:"=",searchCategory:"=",searchString:"="},require:"attTable",templateUrl:"app/scripts/ng_js_att_tpls/table/attTable.html",controller:["$scope",function(a){this.headers=[],this.currentSortIndex=null,this.setIndex=function(a){this.headers.push(a)},this.getIndex=function(a){for(var b=0;b<this.headers.length;b++)if(this.headers[b].headerName===a)return this.headers[b].index;return null},this.sortData=function(b,c){a.$parent.columnIndex=b,a.$parent.reverse=c,this.currentSortIndex=b,a.currentPage=1,this.resetSortPattern()},this.getSearchString=function(){return a.searchString},this.resetSortPattern=function(){for(var a=0;a<this.headers.length;a++){var b=this.headers[a];b.index!==this.currentSortIndex&&b.resetSortPattern()}}}],link:function(b,c,d,e){b.searchCriteria={},b.$watchCollection("tableData",function(a){a&&!isNaN(a.length)&&(b.totalRows=a.length)}),b.$watch("currentPage",function(a){b.$parent.currentPage=a}),b.$watch("viewPerPage",function(a){b.$parent.viewPerPage=a}),b.$watch(function(){return b.totalRows/b.viewPerPage},function(a){isNaN(a)||(b.totalPage=Math.ceil(a),b.currentPage=1)});var f=function(a){return angular.isDefined(a)&&null!==a&&""!==a?!0:void 0},g=function(a,c){if(f(a)&&f(c)){var d=e.getIndex(c);b.searchCriteria={},null!==d&&(b.searchCriteria[d]=a)}else!f(a)||angular.isDefined(c)&&null!==c&&""!==c?b.searchCriteria={}:b.searchCriteria={$:a}};b.$watch("searchCategory",function(a,c){a!==c&&g(b.searchString,a)}),b.$watch("searchString",function(a,c){a!==c&&g(a,b.searchCategory)}),b.$watchCollection("searchCriteria",function(c){b.$parent.searchCriteria=c,b.totalRows=b.tableData&&a("filter")(b.tableData,c,!1).length||0,b.currentPage=1})}}}]).directive("attTableRow",[function(){return{restrict:"EA",compile:function(a,b){if("header"===b.type)a.find("tr").eq(0).addClass("tablesorter-headerRow");else if("body"===b.type){var c=a.children();b.rowRepeat&&(b.trackBy?c.attr("ng-repeat",b.rowRepeat.concat(" | orderBy : columnIndex : reverse | filter : searchCriteria : false | attLimitTo : viewPerPage : viewPerPage*(currentPage-1) track by "+b.trackBy)):c.attr("ng-repeat",b.rowRepeat.concat(" | orderBy : columnIndex : reverse | filter : searchCriteria : false | attLimitTo : viewPerPage : viewPerPage*(currentPage-1) track by $index"))),c.attr("ng-class","{'alt-row': $even,'normal-row': $odd}"),a.append(c)}}}}]).directive("attTableHeader",["tableConfig",function(a){return{restrict:"EA",replace:!0,transclude:!0,scope:{sortable:"@",defaultSort:"@",index:"@key"},require:"^attTable",templateUrl:"app/scripts/ng_js_att_tpls/table/attTableHeader.html",link:function(b,c,d,e){var f=a.defaultSortPattern;b.headerName=c.text(),b.sortPattern=null,e.setIndex(b),b.$watch(function(){return c.text()},function(a){b.headerName=a}),b.sort=function(a){"boolean"==typeof a&&(f=a),e.sortData(b.index,f),b.sortPattern=f?"desc":"asc",f=!f},b.$watch(function(){return e.currentSortIndex},function(a){a!==b.index&&(b.sortPattern=null)}),"false"!==b.sortable&&("A"===b.defaultSort||"a"===b.defaultSort?b.sort(!1):("D"===b.defaultSort||"d"===b.defaultSort)&&b.sort(!0)),b.resetSortPattern=function(){f=a.defaultSortPattern}}}}]).directive("attTableBody",["$filter","$timeout","tableConfig",function(a,b,c){return{restrict:"EA",require:"^attTable",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/table/attTableBody.html",link:function(d,e,f,g){var h=c.highlightSearchStringClass,i="",j=function(b){var c=b.text();b.html(a("highlight")(c,i,h))},k=function(a){var b=a.children();if(!(b.length>0))return void j(a);for(var c=0;c<b.length;c++)k(b.eq(c))},l=function(a){for(var b=a.find("*"),c=0;c<b.length;c++)if(b.eq(c).attr("class")&&-1!==b.eq(c).attr("class").indexOf(h)){var d=b.eq(c).text();b.eq(c).replaceWith(d)}};b(function(){var a=e.children();d.$watch(function(){return g.getSearchString()},function(b){i=b,l(e),a.length>0?k(e):j(e)})},50)}}}]),angular.module("att.abs.tableMessages",["att.abs.utilities"]).constant("messageConstants",{TABLE_MESSAGE_TYPES:{noMatching:1,errorLoading:2,magnifySearch:3,isLoading:4},USER_MESSAGE_TYPES:{success:1,error:0}}).directive("attTableMessage",["messageConstants",function(a){return{restrict:"AE",replace:!0,transclude:!0,scope:{msgType:"=",onRefreshClick:"&"},templateUrl:"app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html",link:function(b){b.messageConstants=a,b.refreshAction=function(a){b.onRefreshClick(a)}}}}]).directive("attUserMessage",["messageConstants","$timeout","DOMHelper",function(a,b,c){return{restrict:"AE",replace:!0,transclude:!0,scope:{thetitle:"=",type:"=",message:"=",trigger:"="},templateUrl:"app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html",link:function(d,e){var f=void 0,g=void 0;d.messageConstants=a,b(function(){g=c.firstTabableElement(e[0])},10),d.$watch("trigger",function(){d.trigger?(f=document.activeElement,angular.isDefined(g)&&g.focus()):angular.isDefined(f)&&f.focus()})}}}]),angular.module("att.abs.tabs",["att.abs.utilities"]).directive("attTabs",function(){return{restrict:"EA",transclude:!1,replace:!0,scope:{tabs:"=title"},controller:["$scope",function(a){this.getData=function(){return a.tabs},this.onClickTab=function(b){return a.currentTab=b.url,a.currentTab},this.isActiveTab=function(b){return b===a.currentTab}}],link:function(a){for(var b=0;b<a.tabs.length;b++)a.tabs[b].selected&&a.tabs[b].url&&(a.currentTab=a.tabs[b].url)}}}).directive("floatingTabs",function(){return{require:"^attTabs",restrict:"EA",transclude:!1,replace:!0,scope:{size:"@"},templateUrl:"app/scripts/ng_js_att_tpls/tabs/floatingTabs.html",link:function(a,b,c,d){a.tabs=d.getData(),a.onClickTab=d.onClickTab,a.isActiveTab=d.isActiveTab}}}).directive("simplifiedTabs",function(){return{require:"^attTabs",restrict:"EA",transclude:!1,replace:!0,scope:{ctab:"=ngModel"},templateUrl:"app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html",link:function(a,b,c,d){a.tabs=d.getData(),a.clickTab=function(b){return a.ctab=b.id,a.ctab},a.isActive=function(b){return b===a.ctab}}}}).directive("genericTabs",function(){return{require:"^attTabs",restrict:"EA",transclude:!1,replace:!0,scope:{ctab:"=ngModel"},templateUrl:"app/scripts/ng_js_att_tpls/tabs/genericTabs.html",link:function(a,b,c,d){a.tabs=d.getData(),a.clickTab=function(b){return a.ctab=b.id,a.ctab},a.isActive=function(b){return b===a.ctab}}}}).directive("skipNavigation",function(){return{link:function(a,b,c){b.bind("click",function(){var a=angular.element(b.parent().parent().parent().parent())[0].querySelector("a.skiptoBody");angular.element(a).attr("tabindex",-1),a.focus()})}}}).directive("parentTab",[function(){return{restrict:"EA",scope:{menuItems:"=",activeSubMenu:"=",activeMenu:"="},controller:["$scope",function(a){a.megaMenu=a.menuItems,a.megaMenuTab,a.megaMenuHoverTab,this.setMenu=function(){a.menuItems=a.megaMenu,a.activeSubMenu.scroll=!1;for(var b=0;b<a.menuItems.length;b++)a.menuItems[b].active&&(a.activeMenu=a.menuItems[b]);this.setSubMenuStatus(!1),a.$apply()},this.setActiveMenu=function(){if(void 0!==a.megaMenuTab&&null!==a.megaMenuTab)a.menuItems=[a.megaMenuTab],a.megaMenuTab.scroll=!0,a.activeMenu={},a.activeSubMenu=a.megaMenuTab,this.setSubMenuStatus(!0);else{for(var b=0;b<a.menuItems.length;b++)if(a.menuItems[b].active=!1,a.menuItems[b].subItems)for(var c=0;c<a.menuItems[b].subItems.length;c++)a.menuItems[b].subItems[c].active=!1;a.menuItems=a.megaMenu}a.$apply()};var b=!1;this.setSubMenuStatus=function(a){b=a},this.getSubMenuStatus=function(){return b},this.setActiveMenuTab=function(b){a.megaMenuTab=b},this.setActiveMenuHoverTab=function(b){a.megaMenuHoverTab=b},this.setActiveSubMenuTab=function(){a.megaMenuTab=a.megaMenuHoverTab},this.resetMenuTab=function(){a.megaMenuTab=void 0},this.clearSubMenu=function(){a.$evalAsync(function(){a.megaMenuTab=void 0,a.megaMenuHoverTab=void 0})}}]}}]).directive("parentmenuTabs",[function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{megaMenu:"@",menuItems:"="},controller:["$scope",function(a){this.getMenu=function(){return a.menuItems},this.setMenu=function(b){a.menuItems=b}}],templateUrl:"app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html"}}]).directive("menuTabs",["$window","$document","events","keymap",function(a,b,c,d){return{restrict:"EA",transclude:!0,replace:!0,require:["^?parentTab","^?parentmenuTabs"],scope:{activeMenu:"=",menuItem:"=",subMenu:"@",subItemActive:"@",tabName:"=?",tabUrl:"=?"},templateUrl:function(a,b){return b.megaMenu?"app/scripts/ng_js_att_tpls/tabs/menuTab.html":"app/scripts/ng_js_att_tpls/tabs/submenuTab.html"},link:function(e,f,g,h){function i(a,b){clearTimeout(a._tId),a._tId=setTimeout(function(){k.setMenu()},b)}function j(a,b){clearTimeout(a._tId),a._tId=setTimeout(function(){k.setActiveMenu()},b)}var k=h[0],l=h[1];e.clickInactive=!0,e.showHoverChild=function(a){e.clickInactive=!1,e.hoverChild=h[0].getSubMenuStatus(),"mouseover"===a.type&&h[0].getSubMenuStatus()&&e.showChildren(a)},e.showChildren=function(a){e.parentMenuItems=l.getMenu();for(var b=0;b<e.parentMenuItems.length;b++){if(e.parentMenuItems[b].active=!1,e.parentMenuItems[b].subItems)for(var c=0;c<e.parentMenuItems[b].subItems.length;c++)e.parentMenuItems[b].subItems[c].active=!1;e.clickInactive=!0}e.menuItem.active=!0,e.activeMenu=e.menuItem,a.stopPropagation()},e.$watch("subItemActive",function(a){"true"===a&&"true"===e.subMenu&&k.setActiveMenuHoverTab(e.menuItem)}),e.showMenuClick=function(a){k.setActiveMenuTab(e.menuItem),a.stopPropagation()},e.showSubMenuClick=function(a){k.setActiveSubMenuTab(),a.stopPropagation()},e.resetMenu=function(a){k.resetMenuTab(),a.stopPropagation()},b.bind("scroll",function(){0===a.pageYOffset?i(k.setMenu,100):a.pageYOffset>1&&a.pageYOffset<1500&&j(k.setActiveMenu,100)}),f.bind("keydown",function(a){switch(a.keyCode||(a.keyCode=a.which),a.keyCode!==d.KEY.TAB&&(c.preventDefault(a),c.stopPropagation(a)),a.keyCode){case d.KEY.ESC:var b;f.attr("mega-menu")?"item"===f.attr("menu-item")&&(b=angular.element(f.parent().parent().parent().parent())[0].querySelector("a.skiptoBody"),angular.element(b).attr("tabindex",-1),b.focus()):"true"===f.attr("sub-menu")?(b=angular.element(f.parent().parent().parent().parent().parent().parent().parent())[0].querySelector("a.skiptoBody"),angular.element(b).attr("tabindex",-1),b.focus()):void 0===f.attr("sub-menu")&&(b=angular.element(f.parent().parent().parent().parent().parent().parent().parent().parent().parent().parent())[0].querySelector("a.skiptoBody"),angular.element(b).attr("tabindex",-1),b.focus());break;case d.KEY.RIGHT:if(f.attr("mega-menu")){if("item"===f.attr("menu-item")){var g=angular.element(f)[0];if(g.nextElementSibling)null==g.nextElementSibling.querySelector("span")||g.nextElementSibling.querySelector("span").focus();else{do{if(!g||!g.nextSibling)break;g=g.nextSibling}while(g&&"LI"!==g.tagName);g&&(null===g.querySelector("span")||g.querySelector("span").focus()),c.preventDefault(a),c.stopPropagation(a)}}}else{var g=angular.element(f)[0];if("true"===f.attr("sub-menu")){if(null===g.nextElementSibling)break;if(g.nextElementSibling)g.nextElementSibling.querySelector("a").focus();else{do{if(!g||!g.nextSibling)break;g=g.nextSibling}while(g&&"LI"!==g.tagName);g&&(null==g.querySelector("a")||g.querySelector("a").focus()),c.preventDefault(a),c.stopPropagation(a)}}else if(void 0===f.attr("sub-menu")){if(null===g.nextElementSibling)break;if(g.nextElementSibling)g.nextElementSibling.querySelector("a").focus();else{do{if(!g||!g.nextSibling)break;g=g.nextSibling}while(g&&"LI"!==g.tagName);g&&(null==g.querySelector("a")||g.querySelector("a").focus())}}}break;case d.KEY.DOWN:if(f.attr("mega-menu"))angular.element(f)[0].querySelectorAll(".megamenu__items")[0].querySelector("a").focus();else if(void 0===f.attr("sub-menu")){var g=document.activeElement;if(null===g.nextElementSibling)break;if(g.nextElementSibling)g.nextElementSibling.focus();else{do{if(!g||!g.nextSibling)break;g=g.nextSibling}while(g&&"A"!==g.tagName);null!==g.attributes&&g.focus(),c.stopPropagation(a)}}else if("true"===f.attr("sub-menu")){var h=angular.element(f)[0].querySelector("span").querySelector("a");if(null===h)break;h.focus()}break;case d.KEY.LEFT:if(f.attr("mega-menu")){if("item"===f.attr("menu-item")){var g=angular.element(f)[0];if(g.previousElementSibling)null===g.previousElementSibling.querySelector("span")||g.previousElementSibling.querySelector("span").focus();else{do{if(!g||!g.previousSibling)break;g=g.previousSibling}while(g&&"LI"!==g.tagName);g&&(null===g.querySelector("span")||g.querySelector("span").focus()),c.preventDefault(a),c.stopPropagation(a)}}}else{var g=angular.element(f)[0];if("true"===f.attr("sub-menu")){if(null===g.previousElementSibling)break;if(g.previousElementSibling)g.previousElementSibling.querySelector("a").focus();else{do{if(!g||!g.previousSibling)break;g=g.previousSibling}while(g&&"LI"!==g.tagName);g&&(null==g.querySelector("a")||g.querySelector("a").focus()),c.preventDefault(a),c.stopPropagation(a)}}else if(void 0===f.attr("sub-menu")){if(null===g.previousElementSibling)break;if(g.previousElementSibling)g.previousElementSibling.querySelector("a").focus();else{do{if(!g||!g.previousSibling)break;g=g.previousSibling}while(g&&"LI"!==g.tagName);g&&(null==g.querySelector("a")||g.querySelector("a").focus())}}}break;case d.KEY.UP:if("true"===f.attr("sub-menu")){var g=document.activeElement,i=angular.element(f.parent().parent().parent().parent())[0].querySelector("span");i.focus(),k.clearSubMenu(),e.menuItem.active=!1;break}if(void 0===f.attr("sub-menu")){var g=document.activeElement,i=angular.element(f.parent().parent().parent().parent())[0].querySelector("a");if(document.activeElement===angular.element(g).parent().parent()[0].querySelectorAll("a")[0]){i.focus();break}if(g.previousElementSibling){g.previousElementSibling;null!=g.previousElementSibling?g.previousElementSibling.focus():i.focus()}else{do{if(!g||!g.previousSibling)break;g=g.previousSibling}while(g&&"A"!==g.tagName);g&&3!==g.nodeType&&g.focus(),c.preventDefault(a),c.stopPropagation(a)}break}}})}}}]),angular.module("att.abs.tagBadges",[]).directive("tagBadges",["$parse","$timeout",function(a,b){return{restrict:"EA",replace:!1,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html",scope:{styleType:"@",onClose:"&"},link:function(c,d,e){c.isSmall=!1,c.isIcon=!1,c.isColor=!1,c.display=!0,c.isClosable=!1,c.isHighlight=!1,c.customColor=!1,""===e.small&&(c.isSmall=!0),"icon"===c.styleType?c.isIcon=!0:"color"===c.styleType&&(c.isColor=!0,void 0!==e.color&&""!==e.color&&(c.customColor=!0,e.$observe("color",function(a){c.border_type_borderColor=a,c.background_type_backgroundColor=a,c.background_type_borderColor=a}))),c.activeHighlight=function(a){c.customColor&&(a?c.isHighlight=!0:c.isHighlight=!1)},""===e.closable&&(c.isClosable=!0,c.closeMe=function(){c.display=!1,b(function(){
-d.attr("tabindex","0"),d[0].focus(),d.bind("blur",function(){d.remove()})}),e.onClose&&(c.onClose=a(c.onClose),c.onClose())})}}}]),angular.module("att.abs.textOverflow",[]).constant("textDefaultOptions",{width:"50%"}).directive("attTextOverflow",["textDefaultOptions","$compile",function(a,b){return{restrict:"A",link:function(c,d,e){var f=d.text();if(d.addClass("text-ellipsis"),e.$observe("attTextOverflow",function(b){b?d.css({width:b}):d.css({width:a.width})}),!d.attr("tooltip")){d.attr("tooltip",f),d.attr("tooltip-placement","above");var g=angular.element(d);b(g)(c)}}}}]),angular.module("att.abs.toggle",["angular-gestures","att.abs.position"]).directive("attToggleTemplate",["$compile","$log","$position",function(a,b,c){return{restrict:"A",require:"ngModel",transclude:!0,scope:{modelVal:"=ngModel"},templateUrl:"app/scripts/ng_js_att_tpls/toggle/demoToggle.html",link:function(a,b,d){a.initialDragPosition=0;var e=0,f=c.offset(b.children().eq(1).children().eq(0)).width-1,g=function(){a.attrValue===d.ngTrueValue||a.attrValue?a.modelVal=!1:a.modelVal=!0};a.updateModel=function(a){1!==e&&(g(),e=0),a.preventDefault()},a.drag=function(d){if(e=1,"dragstart"===d.type)a.initialDragPosition=c.position(b.children().eq(1)).left,b.children().eq(1).addClass("dragging");else if("drag"===d.type){var h=Math.min(0,Math.max(a.initialDragPosition+d.gesture.deltaX,-f));b.children().eq(1).css({left:h+"px"})}else if("dragend"===d.type){var i=c.position(b.children().eq(1)).left>-1*f/2;b.children().eq(1).removeClass("dragging"),TweenMax.to(b.children().eq(1),.1,{left:i?0:-1*f,ease:Power4.easeOut,onComplete:function(){b.children().eq(1).css({left:""})}}),(i||!i&&"left"===d.gesture.direction)&&g(),e=0}return!1},a.directiveValue=d.attToggleTemplate,a.on=d.trueValue,a.off=d.falseValue;var h=-1*f+"px";a.$watch("modelVal",function(c){if(a.attrValue=c,c===d.ngTrueValue||c){b.children().eq(1).css({left:"0px"}),b.addClass("att-checkbox--on");var f=b.find("div").find("div").eq(1);f.attr("aria-checked",!0),e=0}else{b.children().eq(1).css({left:h}),b.removeClass("att-checkbox--on");var f=b.find("div").find("div").eq(1);f.attr("aria-checked",!1),e=0}b.children().eq(1).css({left:""})})}}}]).directive("attToggleMain",["$compile",function(a){return{restrict:"A",require:"ngModel",transclude:!0,replace:!0,scope:{modelValue:"=ngModel",trueValue:"=ngTrueValue",falseValue:"=ngFalseValue"},link:function(b,c,d){var e="",f="";c.removeAttr("att-toggle-main"),b.on=d.ngTrueValue,b.off=d.ngFalseValue,b.largeValue=d.attToggleMain,angular.isDefined(d.ngTrueValue)&&(e+=' true-value="{{on}}" false-value="{{off}}"'),void 0!==b.largeValue&&(f+=' ="{{largeValue}}"'),c.css({display:"none"});var g=angular.element('<div class="att-switch att-switch-alt" ng-class="{\'large\' : largeValue == \'large\'}" ng-model="modelValue"'+e+" att-toggle-template"+f+">"+c.prop("outerHTML")+"</div>");g=a(g)(b),c.replaceWith(g)}}}]),angular.module("att.abs.treeview",[]).directive("treeView",function(){return{restrict:"A",link:function(a,b){function c(){f.reversed()?f.play():f.reverse()}function d(a){a.stopPropagation(),void 0!==angular.element(a.target).attr("tree-view")&&(b.hasClass("minus")?b.removeClass("minus"):b.addClass("minus"),c())}var e=b.children("ul li"),f=TweenMax.from(e,.2,{display:"none",paused:!0,reversed:!0});b.attr("tabindex","0"),b.on("click",function(a){d(a)}),b.on("keypress",function(a){var b=a.keyCode?a.keyCode:a.charCode,c=[13,32];c.length>0&&b&&c.indexOf(b)>-1&&(d(a),a.preventDefault())})}}}),angular.module("att.abs.typeAhead",["att.abs.tagBadges"]).directive("focusMe",["$timeout","$parse",function(a,b){return{link:function(c,d,e){var f=b(e.focusMe);c.$watch(f,function(b){b&&a(function(){d[0].focus(),c.inputActive=!0})}),d.bind("blur",function(){f.assign(c,!1),c.inputActive=!1,c.$digest()})}}}]).directive("typeAhead",["$timeout","$log",function(a,b){return{restrict:"EA",templateUrl:"app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html",replace:!0,scope:{items:"=",title:"@?",titleName:"@",subtitle:"@",model:"=",emailIdList:"=",emailMessage:"="},link:function(c,d){!angular.isDefined(c.titleName)&&angular.isDefined(c.title)&&a(function(){c.titleName=c.title,b.warn("title attribute is deprecated and title-name attribute is used instead as it is conflicting with html title attribute")}),c.lineItems=[],c.filteredListLength=-1,c.filteredList=[],c.setFocus=function(){c.clickFocus=!0},c.setFocus(),c.handleSelection=function(a,b){c.lineItems.push(a),c.emailIdList.push(b),c.model="",c.current=0,c.selected=!0,c.clickFocus=!0},c.theMethodToBeCalled=function(b){var d=c.lineItems.slice();c.emailIdList.splice(b,1),d.splice(b,1),a(function(){c.lineItems=[],c.$apply(),c.lineItems=c.lineItems.concat(d)})},c.current=0,c.selected=!0,c.isCurrent=function(a,b,d,e){return c.current===a&&(c.itemName=b,c.itemEmail=d),c.dropdownLength=e,c.current===a},c.setCurrent=function(a){c.current=a},c.selectionIndex=function(a){38===a.keyCode&&c.current>0?(a.preventDefault(),c.current=c.current-1,c.isCurrent(c.current)):9===a.keyCode?c.selected=!0:13===a.keyCode&&c.dropdownLength!==c.items.length?c.handleSelection(c.itemName,c.itemEmail):8===a.keyCode&&0===c.model.length||46===a.keyCode?c.theMethodToBeCalled(c.lineItems.length-1):40===a.keyCode&&c.current<c.dropdownLength-1&&(a.preventDefault(),c.current=c.current+1,c.isCurrent(c.current)),d[0].querySelector(".list-scrollable").scrollTop=35*(c.current-1)}}}}]),angular.module("att.abs.verticalSteptracker",["ngSanitize"]).directive("verticalSteptracker",[function(){return{restrict:"EA",transclude:!0,replace:!1,scope:{},template:'<div class="vertical-nav"><ul ng-transclude arial-label="step list" role="presentation" class="tickets-list-height"></ul></div>',link:function(){}}}]).directive("verticalSteptrackerStep",[function(){return{restrict:"EA",transclude:!0,replace:!1,scope:{type:"=type",id:"=id"},templateUrl:"app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html",link:function(){}}}]).directive("attAbsLink",[function(){return{restrict:"EA",transclude:!0,replace:!1,template:'<span ng-transclude class="view-log"></span>'}}]),angular.module("att.abs.videoControls",[]).config(["$compileProvider",function(a){a.aHrefSanitizationWhitelist(/^\s*(https?|javascript):/)}]).directive("videoControls",[function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/videoControls/videoControls.html"}}]).directive("photoControls",[function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/videoControls/photoControls.html",scope:{prevLink:"@",nextLink:"@"},link:function(a,b,c){c.prevLink||(a.prevLink="javascript:void(0)"),c.nextLink||(a.nextLink="javascript:void(0)"),a.links={prevLink:a.prevLink,nextLink:a.nextLink}}}}]),angular.module("app/scripts/ng_js_att_tpls/accordion/accordion.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/accordion/accordion.html",'<div class="att-accordion__group tabpanel" ng-class="{\'att-accordion__group att-accordion__group--open\':isOpen,\'att-accordion__group\':!isOpen }">\n <a ng-show="showicon" \n class="toggle-header att-accordion__heading att-accordion__toggle noafter" \n aria-selected="{{focused}}" \n aria-controls="panel{{index}}" \n aria-expanded="{{isOpen}}" \n ng-class="{focus: focused, selected: focused}" \n role="tab" \n ng-click="toggle()" \n accordion-transclude="heading" \n style="cursor:pointer; text-decoration:none">\n <span>{{heading}}</span>\n <i ng-class="{\'icon-chevron-down\':!isOpen,\'icon-chevron-up\':isOpen }" class="pull-right"></i>\n </a>\n <div ng-show="!showicon" \n ng-class="{focus: focused, selected: focused}" \n style="text-decoration:none" \n accordion-transclude="heading" \n role="tab" \n aria-expanded="{{isOpen}}"\n aria-selected="{{focused}}" \n aria-controls="panel{{index}}" \n class="toggle-header att-accordion__heading att-accordion__toggle noafter">\n <span>{{heading}}</span>\n </div> \n <div aria-label="{{heading}}" \n aria-hidden="{{!isOpen}}" \n role="tabpanel" \n collapse="!isOpen" \n class="att-accordion__body" \n id="panel{{index}}" \n ng-transclude>\n </div>\n <div class="att-accordion__bottom--border"></div> \n</div> ')}]),angular.module("app/scripts/ng_js_att_tpls/accordion/accordion_alt.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/accordion/accordion_alt.html",'<div class="att-accordion__group tabpanel" ng-class="{\'att-accordion__group att-accordion__group--open\':isOpen,\'att-accordion__group\':!isOpen }">\n <a class="toggle-header att-accordion__heading att-accordion__toggle" \n aria-selected="{{focused}}" \n aria-controls="panel{{index}}" \n ng-class="{focus: focused, selected: focused}" \n aria-expanded="{{isOpen}}" \n role="tab" \n ng-click="toggle()" \n accordion-transclude="heading"> \n </a>\n <span>{{heading}}</span>\n <div aria-label="{{heading}}" \n aria-hidden="{{!isOpen}}" \n role="tabpanel" \n collapse="!isOpen" \n class="att-accordion__body" \n id="panel{{index}}" \n ng-transclude>\n </div>\n</div> ')}]),angular.module("app/scripts/ng_js_att_tpls/accordion/attAccord.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/accordion/attAccord.html","<div ng-transclude></div>")}]),angular.module("app/scripts/ng_js_att_tpls/accordion/attAccordBody.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/accordion/attAccordBody.html","<div ng-transclude></div>")}]),angular.module("app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html",'<div ng-click="clickFunc()">\n <div ng-transclude>\n <i class="icon-chevron-down"></i>\n </div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/alert/alert.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/alert/alert.html","<div class=\"alert\" ng-class=\"{'alert-success': alertType === 'success', 'alert-warning': alertType === 'warning', 'alert-error': alertType === 'error', 'alert-info': alertType === 'info', 'alert-inplace': showTop !== 'true'}\" ng-show=\"showAlert\" ng-style=\"cssStyle\">\n <div class=\"container\">\n"+' <a href="javascript:void(0)" alt="close" class="close-role" ng-click="close()" tabindex="0" att-accessibility-click="32,13">Dismiss <i class="icon-circle-action-close"></i></a>\n <span ng-transclude> </span>\n </div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html",'<div tabindex="0" att-accessibility-click="13,32" ng-click="addBoard()" aria-label="Add Board" class="boardstrip-item--add">\n <i aria-hidden="true" class="icon-add centered"></i>\n <br/>\n <div class="centered">Add board</div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/boardStrip/attBoard.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/boardStrip/attBoard.html",'<li att-board-navigation tabindex="0" aria-label="{{boardLabel}}" att-accessibility-click="13,32" ng-click="selectBoard(boardIndex)" class="board-item" ng-class="{\'selected\': getCurrentIndex()===boardIndex}">\n <div ng-transclude></div>\n <div class="board-caret" ng-if="getCurrentIndex()===boardIndex">\n <div class="board-caret-indicator"></div>\n <div class="board-caret-arrow-up"></div>\n </div>\n</li>')}]),angular.module("app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html",'<div class="att-boardstrip">\n <div class="boardstrip-reel">\n <div class="prev-items" ng-if="isPrevBoard()">\n <i tabindex="0" aria-label="Scroll Boardstrip Left" att-accessibility-click="13,32" ng-click="prevBoard()" class="arrow icon-arrow-left-circle"></i>\n </div>\n <div att-add-board on-add-board="onAddBoard()"></div>\n <div class="board-viewport"><ul role="presentation" class="boardstrip-container" ng-transclude></ul></div>\n <div class="next-items" ng-if="isNextBoard()">\n <i tabindex="0" aria-label="Scroll Boardstrip Right" att-accessibility-click="13,32" ng-click="nextBoard()" class="arrow icon-arrow-right-circle"></i>\n </div>\n </div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html",'<div class="att-btn-dropdown">\n <div class="buttons-dropdown--small btn-group" ng-class="{\'open\': isOpen}" att-accessibility-click="13,32" ng-click="toggle()">\n \n <button role="menu" class="button button--secondary button--small buttons-dropdown__drop dropdown-toggle" ng-if="type===\'dots\'" alt="Click for Options" >\n \n <div class="circle"></div>\n <div class="circle"></div>\n <div class="circle"></div>\n </button>\n <button role="menu" class="button button--secondary button--small buttons-dropdown__drop dropdown-toggle ng-isolate-scope actions-title" ng-if="type === \'actions\'" alt="Actions dropdown Buttons">Actions</button>\n \n\n'+" <ul ng-class=\"{'dropdown-menu dots-dropdwn': type==='dots', 'dropdown-menu actions-dropdwn': type === 'actions'}\" ng-transclude></ul>\n </div>\n \n</div>\n")}]),angular.module("app/scripts/ng_js_att_tpls/colorselector/colorselector.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/colorselector/colorselector.html",'<div class="att-radio att-color-selector__item" \n ng-class="{\'att-radio--on\': (iconColor === selected)}">\n <div class="att-radio__indicator" tabindex="0" att-accessibility-click="32,13" ng-click="selectedcolor(iconColor)" \n ng-style="applycolor" ng-transclude></div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/datepicker/dateFilter.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/datepicker/dateFilter.html",'<div class="calendar" ng-class="{\'monthpicker\':mode === 1}">\n <div class="select2-container" ng-class="{\'select2-container-active select2-dropdown-open\': showDropdownList}" style="width: 100%; z-index:0">\n <a tabindex="0" id="select2-choice" class="select2-choice" href="javascript:void(0)" att-element-focus="focusInputButton" ng-show="!showCalendar" att-accessibility-click="13,32" ng-click="showDropdown()" ng-blur="focusInputButton=false">\n <span class="select2-chosen" ng-show="!showCalendar">{{selectedOption}}</span>\n <input type="text" ng-show="showCalendar" ng-blur="untrackInputChange($event)" att-input-deny="[^0-9\\/-]" maxlength="{{maxLength}}" ng-model="selectedOption" aria-labelledby="select2-choice" ng-change="getDropdownText()" />\n <abbr class="select2-search-choice-close"></abbr>\n <span ng-class="{\'select2-arrow\': mode !== 1, \'calendar-icon\': mode === 1}"><b></b></span>\n </a>\n <a id="select2-chosen" class="select2-choice" href="javascript:void(0)" ng-show="showCalendar">\n <span class="select2-chosen" ng-show="!showCalendar">{{selectedOption}}</span>\n <input type="text" ng-show="showCalendar" ng-blur="untrackInputChange($event)" att-input-deny="[^0-9\\/-]" maxlength="{{maxLength}}" ng-model="selectedOption" aria-labelledby="select2-chosen" ng-change="getDropdownText()" />\n <abbr class="select2-search-choice-close"></abbr>\n <span tabindex="0" ng-class="{\'select2-arrow\': mode !== 1, \'calendar-icon\': mode === 1}" att-accessibility-click="13,32" ng-click="showDropdown()"><b></b></span>\n </a>\n </div>\n <div class="select2-drop select2-drop-active select2-display-none" ng-style="{display: (showDropdownList && \'block\') || \'none\', \'border-radius\': showCalendar && \'0 0 0 6px\'}" style="width: 100%">\n <div id="dateFilterList" att-scrollbar ><ul class="select2-results options" ng-transclude></ul></div>\n <ul class="select2-results sttings" style="margin-top:0px">\n <li tabindex="0" class="select2-result select2-highlighted greyBorder" ng-class="{\'select2-result-current\': checkCurrentSelection(\'Custom Single Date\')}" att-accessibility-click="13,32" ng-click="selectAdvancedOption(\'Custom Single Date\')">\n <div class="select2-result-label" ng-if="mode !== 1">Custom Single Date...</div>\n <div class="select2-result-label" ng-if="mode === 1">Custom single month...</div>\n </li>\n <li tabindex="0" class="select2-result select2-highlighted" ng-class="{\'select2-result-current\': checkCurrentSelection(\'Custom Range\')}" att-accessibility-click="13,32" ng-click="selectAdvancedOption(\'Custom Range\')">\n <div class="select2-result-label" ng-if="mode !== 1">Custom Range...</div>\n <div class="select2-result-label" ng-if="mode === 1">Custom month range...</div>\n </li>\n <li class="select2-result select2-highlighted btnContainer" ng-style="{display: (showCalendar && \'block\') || \'none\'}">\n <button tabindex="0" ng-blur="resetFocus($event)" att-element-focus="focusApplyButton" att-button="" btn-type="{{applyButtonType}}" size="small" att-accessibility-click="13,32" ng-click="apply()">Apply</button>\n <button tabindex="0" att-button="" btn-type="secondary" size="small" att-accessibility-click="13,32" ng-click="cancel()">Cancel</button>\n <div>\n <a tabindex="0" href="javascript:void(0)" ng-if="mode !== 1" style="text-decoration:underline;" att-accessibility-click="13,32" ng-click="clear()">Clear Dates</a>\n <a tabindex="0" href="javascript:void(0)" ng-if="mode === 1" style="text-decoration:underline;" att-accessibility-click="13,32" ng-click="clear()">Clear Months</a>\n </div>\n </li>\n </ul>\n </div>\n <div class="datepicker-wrapper show-right" ng-style="{display: (showCalendar && \'block\') || \'none\'}">\n <span datepicker ng-blur="resetFocus($event)" att-element-focus="focusSingleDateCalendar" ng-show="checkCurrentSelection(\'Custom Single Date\')"></span>\n <span datepicker ng-blur="resetFocus($event)" att-element-focus="focusRangeCalendar" ng-show="checkCurrentSelection(\'Custom Range\')"></span>\n </div>\n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html",'<li ng-click="!disabled && selectOption(fromDate,toDate,caption)" att-accessibility-click="13,32" ng-class="{\'select2-result-current\': checkCurrentSelection(caption)}" class="select2-result select2-highlighted ng-scope" tabindex="{{!disabled?\'0\':\'-1\'}}">\n <div class="select2-result-label" ng-class="{\'disabled\':disabled}" ng-transclude></div>\n</li>')}]),angular.module("app/scripts/ng_js_att_tpls/datepicker/datepicker.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/datepicker/datepicker.html",'<div id="datepicker" class="datepicker" ng-class="{\'monthpicker\': mode === 1}" aria-hidden="false" role="dialog" tabindex="-1" aria-labelledby="datepicker">\n <div class="datepicker-days" style="display: block;">\n <table class="table-condensed">\n <thead>\n <tr>\n <th id="month" tabindex="0" class="datepicker-switch" colspan="{{(mode !== 1) && (currentRows[0].length - 2) || (currentRows[0].length)}}" style="text-align:left">{{currentTitle}}</th>\n <th ng-if="mode !== 1" id="prev" aria-hidden="{{!disablePrev && \'false\'|| \'true\'}}" tabindex="{{!disablePrev && \'0\'|| \'-1\'}}" att-accessibility-click="13,32" ng-click="!disablePrev && move(-1)">\n <div class="icons-list" data-size="medium"><i class="icon-arrow-left-circle" ng-class="{\'disabled\': disablePrev}" alt="Left Arrow"></i>\n </div><span class="hidden-spoken">Previous Month</span>\n </th>\n <th ng-if="mode !== 1" id="next" aria-hidden="{{!disableNext && \'false\'|| \'true\'}}" tabindex="{{!disableNext && \'0\'|| \'-1\'}}" att-accessibility-click="13,32" ng-click="!disableNext && move(1)">\n <div class="icons-list" data-size="medium"><i class="icon-arrow-right-circle" ng-class="{\'disabled\': disableNext}" alt="Right Arrow"></i>\n </div><span class="hidden-spoken">Next Month</span>\n </th>\n </tr>\n <tr ng-if="labels.length > 0">\n <th tabindex="-1" class="dow weekday" ng-repeat="label in labels"><span>{{label.pre}}</span></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td id="datepickerBody" att-scrollbar colspan="{{currentRows[0].length}}" style="padding: 0px;" headers="">\n <table ng-class="{\'table-condensed\': mode === 0, \'monthtable-condensed\': mode === 1}" style="padding: 0px;">\n <thead class="hidden-spoken">\n <tr ng-show="labels.length > 0">\n <th id="{{label.post}}" tabindex="-1" class="dow weekday" ng-repeat="label in labels"></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in currentRows">\n <td headers="{{(mode === 0) && dt.header || \'month\'}}" att-element-focus="dt.focused" aria-hidden="{{(!dt.oldMonth && !dt.nextMonth && !dt.disabled && \'false\') || \'true\'}}" tabindex="{{(!dt.oldMonth && !dt.nextMonth && !dt.disabled && \'0\') || \'-1\'}}" ng-repeat="dt in row" class="days" ng-class="{\'active\': dt.selected || dt.from || dt.to, \'from\': dt.from, \'to\': dt.to, \'range\': dt.dateRange, \'prev-month \': dt.oldMonth, \'next-month\': dt.nextMonth, \'disabled\': dt.disabled, \'today\': dt.today, \'weekend\': dt.weekend}" ng-click="!dt.selected && !dt.from && !dt.to && !dt.disabled && !dt.oldMonth && !dt.nextMonth && select(dt.date)" att-accessibility-click="13,32" aria-label="{{dt.date | date : \'EEEE, MMMM d\'}}"><span class="day">{{dt.label}}</span></td>\n </tr>\n <tr ng-if="mode === 1" class="divider"><td colspan="{{nextRows[0].length}}"><hr></td></tr>\n <tr>\n <th id="month" tabindex="0" class="datepicker-switch internal" colspan="{{nextRows[0].length}}" style="text-align:left">{{nextTitle}}</th>\n </tr>\n <tr ng-repeat="row in nextRows">\n'+" <td headers=\"{{(mode === 0) && dt.header || 'month'}}\" att-element-focus=\"dt.focused\" aria-hidden=\"{{(!dt.oldMonth && !dt.nextMonth && !dt.disabled && 'false') || 'true'}}\" tabindex=\"{{(!dt.oldMonth && !dt.nextMonth && !dt.disabled && '0') || '-1'}}\" ng-repeat=\"dt in row\" class=\"days\" ng-class=\"{'active': dt.selected || dt.from || dt.to, 'from': dt.from, 'to': dt.to, 'range': dt.dateRange, 'prev-month ': dt.oldMonth, 'next-month': dt.nextMonth, 'disabled': dt.disabled, 'today': dt.today, 'weekend': dt.weekend}\" ng-click=\"!dt.selected && !dt.from && !dt.to && !dt.disabled && !dt.oldMonth && !dt.nextMonth && select(dt.date)\" att-accessibility-click=\"13,32\" aria-label=\"{{dt.date | date : 'EEEE, MMMM d'}}\"><span class=\"day\">{{dt.label}}</span></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n")}]),angular.module("app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html",'<div class="calendar">\n <div class="box" ng-class="{\'active\': isOpen}">\n <span ng-transclude></span>\n <i class="calendar-icon" tabindex="0" att-accessibility-click="13,32" ng-click="toggle()" alt="Calendar Icon"></i>\n </div>\n <div class="datepicker-wrapper datepicker-wrapper-display-none" ng-style="{display: (isOpen && \'block\') || \'none\'}" aria-hidden="false" role="dialog" tabindex="-1">\n <span datepicker></span>\n </div>\n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html",'<div class="divider-container" ng-class="{\'divider-container-light\': lightContainer}">\n <hr ng-class="{\'divider-light\': lightContainer}">\n</div>\n\n')}]),angular.module("app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html",'<label class="fileContainer"><span ng-transclude></span><input type="file" att-file-change></label>')}]),angular.module("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html",'<div class="form-field" ng-class="{\'error\': errorMessage, \'warning\': warningMessage}">\n <label class="form-field__label" ng-class="{\'form-field__label--show\': showLabel, \'form-field__label--hide\': hideLabel}"></label>\n <div class="form-field-input-container" ng-transclude></div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html",'<div class="form-field" ng-class="{\'error\':hideErrorMsg}">\n <div class="form-field-input-container" ng-transclude></div>\n <div class="form-field__message error" type="error" ng-show="hideErrorMsg" >\n <i class="icon-info-alert"></i>{{errorMessage}}\n </div>\n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/formField/creditCardImage.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/formField/creditCardImage.html",'<span class="css-sprite pull-right">\n<span class="hidden-spoken">We accept</span>\n<ul class="{{newValCCI}}">\n <li class="css-sprite-mc"><span class="hidden-spoken">MasterCard</span></li>\n <li class="css-sprite-visa"><span class="hidden-spoken">Visa</span></li>\n <li class="css-sprite-amex"><span class="hidden-spoken">American Express</span></li>\n <li class="css-sprite-discover"><span class="hidden-spoken">Discover</span></li> \n</ul>\n</span>\n<label for="ccForm.card" class="pull-left">Card number</label>')}]),angular.module("app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html",'<div>\n<button type="button" class="btn btn-alt btn-tooltip" style="padding-top:16px" title="Help"><i class="hidden-spoken">Help</i></button>\n<div class="helpertext" role="tooltip">\n<div class="popover-title"></div>\n<div class="popover-content">\n <p class="text-legal cvc-cc">\n <img ng-src="images/{{newValI}}.png" alt="{{newValIAlt}}">\n </p>\n</div>\n</div>\n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html",'<div class="hourpicker">\n <div class="dropdown-width">\n <div ng-model="showlist" class="select2-container topDropDownWidth" ng-class="{\'select2-dropdown-open select2-container-active\': showlist}" >\n <a class="select2-choice" href="javascript:void(0)" id="customSelect" ng-keydown="selectOption(selectPrevNextValue($event,options,selectedOption))" att-accessibility-click="13" ng-click="showDropdown()">\n <span class="select2-chosen">{{selectedOption}}</span>\n <span class="select2-arrow"><b></b></span>\n </a>\n </div> \n <div class="select2-display-none select2-with-searchbox select2-drop-active show-search resultTopWidth" ng-show="showlist"> \n <ul class="select2-results resultTopMargin" > \n <li ng-model="ListType" ng-repeat="option in options" att-accessibility-click="13" ng-click="selectOption(option,$index)" class="select2-results-dept-0 select2-result select2-result-selectable"><div class="select2-result-label"><span >{{option}}</span></div></li> \n </ul>\n </div>\n </div>\n <div ng-show="showDaysSelector" class="customdays-width">\n <div att-divider-lines class="divider-margin-f"></div> \n <div class="col-md-3 fromto-margin">\n <div>From</div> <br>\n <div>To</div>\n </div>\n <div ng-repeat="day in days">\n <div class="col-md-3 col-md-days">\n <div class="col-md-1 daysselect-margin">\n <input type="checkbox" ng-model="daysList[day]" title="Day selection {{$index}}" att-checkbox ng-change="addSelectedValue(day)"> \n </div>\n <span>{{day}}</span><br>\n \n <div class="dropDownMarginBottom">\n <div class="select2-container topDropDownWidth" ng-class="{\'select2-dropdown-open select2-container-active\': FrtimeListDay[day]}" >\n <a class="select2-choice selectDropDown" href="javascript:void(0)" tabindex="{{daysList[day] ? \'0\' : \'-1\'}}" att-accessibility-click="13" ng-click="daysList[day] && showfromDayDropdown(day)" ng-class="{\'select2-chosen-disabled\':!daysList[day]}" ng-keydown="daysList[day] && selectFromDayOption(day , selectPrevNextValue($event,fromtime,selectedFromOption[day]));daysList[day] && addSelectedValue(day);">\n <span class="select2-chosen dropDownMarginRight" >{{selectedFromOption[day]}} <i ng-if="daysList[day]" ng-class="FrtimeListDay[day] ? \'icon-dropdown-up\' : \'icon-dropdown-down\'"></i></span>\n </a>\n </div> \n \n <div class="select2-display-none select2-with-searchbox select2-drop-active show-search resultFromDropDown" ng-show="FrtimeListDay[day]"> \n <ul class="select2-results resultTopMargin" > \n <li ng-click="selectFromDayOption(day,time.value);addSelectedValue(day);" ng-repeat="time in fromtime" class="select2-results-dept-0 select2-result select2-result-selectable"><div class="select2-result-label" ng-class="{\'selectedItemInDropDown\': (time.value==selectedFromOption[day])}"><span >{{time.value}}</span></div></li> \n </ul>\n </div>\n </div>\n \n <div class="dropDownMarginBottom">\n <div class="select2-container topDropDownWidth" ng-class="{\'select2-dropdown-open select2-container-active\': TotimeListDay[day]}" >\n <a class="select2-choice selectDropDown" href="javascript:void(0)" tabindex="{{daysList[day] ? \'0\' : \'-1\'}}" att-accessibility-click="13" ng-click="daysList[day] && showtoDayDropdown(day)" ng-class="{\'select2-chosen-disabled\':!daysList[day], \'selectDropDown-error\':daysList[day] && showToTimeErrorDay[day]}" ng-keydown="daysList[day] && selectToDayOption(day , selectPrevNextValue($event,totime,selectedToOption[day]));daysList[day] && addSelectedValue(day);">\n <span class="select2-chosen dropDownMarginRight">{{selectedToOption[day]}} <i ng-if="daysList[day]" ng-class="TotimeListDay[day] ? \'icon-dropdown-up\' : \'icon-dropdown-down\'" ></i></span>\n </a>\n </div>\n \n <div class="select2-display-none select2-with-searchbox select2-drop-active show-search resultToDropDown" ng-show="TotimeListDay[day]"> \n <ul class="select2-results resultTopMargin" > \n <li ng-click="selectToDayOption(day,time.value);addSelectedValue(day);" ng-repeat="time in totime" class="select2-results-dept-0 select2-result select2-result-selectable"><div class="select2-result-label" ng-class="{\'selectedItemInDropDown\': (time.value==selectedToOption[day])}"><span >{{time.value}}</span></div></li> \n </ul>\n </div>\n </div>\n </div> \n </div> \n <div att-divider-lines class="divider-margin-s"></div>\n </div>\n <div ng-transclude></div>\n</div>');
-}]),angular.module("app/scripts/ng_js_att_tpls/links/readMore.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/links/readMore.html",'<div>\n <div ng-bind-html="textToDisplay" ng-class="{\'att--readMore\': readFlag, \'att--readLess\': !readFlag}" ng-style="readLinkStyle"></div>\n <span class="att--readmore__link" ng-show="readMoreLink">… <a href="javascript:void(0);" ng-click="readMore()" att-accessbility-click="32,13">Read More</a>\n </span>\n</div>\n<span class="att--readless__link" ng-show="readLessLink">\n <a href="javascript:void(0);" ng-click="readLess()" att-accessbility-click="32,13">Read Less</a>\n</span>')}]),angular.module("app/scripts/ng_js_att_tpls/loading/loading.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/loading/loading.html",'<div data-progress="{{progressStatus}}" class="{{colorClass}}" ng-class="{\'att-loading-count\':icon == \'count\',\'loading--small\':icon == \'small\',\'loading\': icon != \'count\'}" alt="Loading">\n <div class="att-loading-circle" ng-if="icon == \'count\'">\n <div class="att-loading-circle__mask att-loading-circle__full">\n <div class="att-loading-circle__fill"></div>\n </div>\n <div class="att-loading-circle__mask att-loading-circle__half">\n <div class="att-loading-circle__fill"></div>\n <div class="att-loading-circle__fill att-loading-circle__fix"></div>\n </div>\n </div>\n <div ng-class="{\'att-loading-inset\':icon == \'count\',\'loading__inside\':icon != \'count\'}"><div class="att-loading-inset__percentage" ng-if="icon == \'count\'" alt="Loading with Count"></div></div>\n</div>\n\n')}]),angular.module("app/scripts/ng_js_att_tpls/modal/backdrop.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/modal/backdrop.html",'<div class="overlayed" ng-class="{show: animate}" \n'+" ng-style=\"{'z-index': 2000 + index*10,'overflow':'scroll'}\"> \n</div>")}]),angular.module("app/scripts/ng_js_att_tpls/modal/tabbedItem.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/modal/tabbedItem.html",'<div>\n <ul class="tabs_overlay">\n <li ng-repeat="item in items" class="tabs_overlay__item two__item" ng-class="{\'active\':isActiveTab($index)}" ng-click="clickTab($index)">\n <i class="{{item.iconClass}}"></i>\n {{item.title}} ({{item.number}})\n <a class="viewLink" att-link>Show</a>\n </li>\n </ul>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html",'<div>\n <ul class="tabs_overlay">\n <li ng-repeat="item in items" class="tabs_overlay__item two__item" ng-class="{\'active\':isActiveTab($index)}" ng-click="clickTab($index)">\n <i class="{{item.iconClass}}"></i>\n {{item.title}} ({{item.number}})\n <a class="viewLink" att-link>Show</a>\n </li>\n </ul>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/modal/window.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/modal/window.html",'<div tabindex="-1" role="dialog" att-element-focus="focusModalFlag" class="modals {{ windowClass }}" ng-class="{show: animate}" \n ng-style="{\'z-index\': 2010 + index*10}" ng-click="close($event)" ng-transclude> \n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/pagination/pagination.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/pagination/pagination.html",'<div class="pager">\n <a tabindex="0" href="javascript:void(0)" class="pager__item--prev" att-accessibility-click="13,32" ng-click="prev($event)" ng-if="currentPage > 1"><i class="icon-arrow-left"></i> Previous</a>\n <a tabindex="0" href="javascript:void(0)" class="pager__item pager__item--link" ng-if="totalPages > 7 && currentPage > 3" att-accessibility-click="13,32" ng-click="selectPage(1, $event)">1</a>\n <span class="pager__item" ng-if="totalPages > 7 && currentPage > 3">...</span>\n <a tabindex="0" href="javascript:void(0)" class="pager__item pager__item--link" att-element-focus="isFocused(page)" ng-repeat="page in pages" ng-class="{\'pager__item--active\': checkSelectedPage(page)}" att-accessibility-click="13,32" ng-click="selectPage(page, $event)">{{page}}</a>\n <span class="pager__item" ng-if="totalPages > 7 && currentPage < totalPages - 2 && showInput !== true">...</span>\n <span ng-show="totalPages > 7 && showInput === true"><input class="pager__item--input" type="text" placeholder="..." maxlength="2" ng-model="currentPage" aria-label="Current page count"/></span>\n <a tabindex="0" href="javascript:void(0)" class="pager__item pager__item--link" ng-if="totalPages > 7 && currentPage < totalPages - 2" att-accessibility-click="13,32" ng-click="selectPage(totalPages, $event)">{{totalPages}}</a>\n <a tabindex="0" href="javascript:void(0)" class="pager__item--next" att-accessibility-click="13,32" ng-click="next($event)" ng-if="currentPage < totalPages">Next <i class="icon-arrow-right"></i></a>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/paneSelector/innerPane.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/paneSelector/innerPane.html","<div class='inner-pane' ng-transclude></div>")}]),angular.module("app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html","<div class='pane-group' ng-transclude></div>")}]),angular.module("app/scripts/ng_js_att_tpls/paneSelector/sidePane.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/paneSelector/sidePane.html","<div class='side-pane' ng-transclude></div>")}]),angular.module("app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html","<div class=\"att-tooltip \" \n ng-class=\"{ 'att-tooltip--on': isOpen, \n 'att-tooltip--dark att-tooltip--dark--hover':stylett=='dark', \n 'att-tooltip--light att-tooltip--light--hover':stylett=='light',\n 'att-tooltip--left':placement=='left', \n 'att-tooltip--above':placement=='above', \n 'att-tooltip--right':placement=='right', \n 'att-tooltip--below':placement=='below'}\" \n ng-bind-html=\"content | unsafe\" ></div>")}]),angular.module("app/scripts/ng_js_att_tpls/popOvers/popOvers.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/popOvers/popOvers.html","<div class=\"att-popover popover-demo\" ng-style=\"{backgroundColor:popOverStyle}\"\n ng-class=\"{'att-tooltip--dark':popOverStyle==='grey',\n 'att-pop-over--left':popOverPlacement==='left', \n 'att-pop-over--above':popOverPlacement==='above', \n 'att-pop-over--right':popOverPlacement==='right'}\" \n style='position: absolute; max-width: 490px;'>\n <div class=\"pop-over-caret\"\n ng-class=\"{'pop-over-caret-border--left':popOverPlacement==='left', \n 'pop-over-caret-border--above':popOverPlacement==='above', \n 'pop-over-caret-border--right':popOverPlacement==='right', \n 'pop-over-caret-border--below':popOverPlacement==='below'}\">\n </div>\n <div class=\"pop-over-caret\" ng-style=\"popOverPlacement=='below' && {borderBottom:'6px solid ' +popOverStyle}||popOverPlacement=='left' && {borderLeft:'6px solid ' +popOverStyle}||popOverPlacement=='right' && {borderRight:'6px solid ' +popOverStyle}||popOverPlacement=='above' && {borderTop:'6px solid ' +popOverStyle}\"\n ng-class=\"{'pop-over-caret--left':popOverPlacement==='left', \n 'pop-over-caret--above':popOverPlacement==='above', \n 'pop-over-caret--right':popOverPlacement==='right', \n 'pop-over-caret--below':popOverPlacement==='below'}\"></div>\n \n <div class=\"att-popover-content\">\n"+' <a ng-if="closeable" href="javascript:void(0)" class="icon-close att-popover__close" ng-click="closeMe();$event.preventDefault()"></a>\n <div class="popover-packages__container" ng-include="content"></div>\n </div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/profileCard/addUser.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/profileCard/addUser.html",'<div class="col-md-9 profile-card add-user">\n <div class="atcenter">\n <div><i class="icon-add"></i></div>\n <span>add User</span>\n </div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/profileCard/profileCard.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/profileCard/profileCard.html",'<div class="col-md-9 profile-card">\n <div class="top-block">\n <div class="profile-image">\n <img ng-if="image" profile-name="{{profile.name}}" ng-src="{{profile.img}}" alt="{{profile.name}}">\n <span ng-hide="image" class="default-img">{{initials}}</span>\n <p class="name" tooltip-condition="{{profile.name}}" height="true"></p>\n <p class="status">\n <span class="status-icon" ng-class="{\'icon-green\':colorIcon===\'green\',\'icon-red\':colorIcon===\'red\',\'icon-blue\':colorIcon===\'blue\',\'icon-yellow\':colorIcon===\'yellow\'}"> \n </span>\n <span>{{profile.state}}<span ng-if="badge" class="status-badge">Admin</span></span>\n </p>\n </div>\n </div>\n <div class="bottom-block">\n <div class="profile-details">\n <label>Username</label>\n <p att-text-overflow="92%" tooltip-condition="{{profile.userName}}">{{profile.userName}}</p>\n <label>Email</label>\n <p att-text-overflow="92%" tooltip-condition="{{profile.email}}">{{profile.email}}</p>\n <label>Role</label>\n <p att-text-overflow="92%" tooltip-condition="{{profile.role}}">{{profile.role}}</p>\n <label>Last Login</label>\n <p att-text-overflow="92%" tooltip-condition="{{profile.lastLogin}}">{{profile.lastLogin}}</p>\n </div>\n </div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/progressBars/progressBars.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/progressBars/progressBars.html",'<div class="att-progress">\n <div class="att-progress-value">&nbsp;</div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html",'<div class="scroll-bar" style="position: absolute">\n <div class="scroll-thumb" style="position: absolute; overflow: hidden"></div>\n</div>\n<div class="prev icons-list" data-size="medium" ng-show="navigation && prevAvailable" ng-style="{height: scrollbarAxis === \'x\' && position.height + \'px\'}">\n <a href="javascript:void(0);" ng-click="customScroll(false)" aria-label="Scroll" aria-hidden="true">\n <i ng-class="{\'icon-chevron-up\': (scrollbarAxis === \'y\'), \'icon-chevron-left\': (scrollbarAxis === \'x\')}"></i>\n </a>\n</div>\n<div class="scroll-viewport" ng-style="{height: (scrollbarAxis === \'x\' && position.height + \'px\') || viewportHeight, width: viewportWidth}" style="position: relative; overflow: hidden">\n <div class="scroll-overview" style="position: absolute; display: table; width: 100%" att-position="position" ng-transclude></div>\n</div>\n<div class=\'next icons-list\' data-size="medium" ng-show="navigation && nextAvailable" ng-style="{height: scrollbarAxis === \'x\' && position.height + \'px\'}">\n <a href="javascript:void(0);" ng-click="customScroll(true)" aria-label="Scroll" aria-hidden="true">\n'+" <i ng-class=\"{'icon-chevron-down': (scrollbarAxis === 'y'), 'icon-chevron-right': (scrollbarAxis === 'x')}\"></i>\n </a>\n</div>\n")}]),angular.module("app/scripts/ng_js_att_tpls/search/search.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/search/search.html",'<div class="select2-container show-search" ng-class="{\'select2-dropdown-open\': (showlist && !isDisabled),\'select2-container-disabled\':isDisabled, \'select2-container-active\': isact}" ng-init="isact=false;" style="width: 100%;">\n <a href="javascript:void(0)" class="select2-choice needsclick" tabindex="0" ng-click="showDropdown()" ng-class="{\'select2-chosen-disabled\':isDisabled}" role="combobox" aria-expanded="{{showlist}}" aria-owns="inList" aria-label="{{selectedOption}} selected" ng-focus="isact=true;" ng-blur="isact=false;">\n <span class="select2-chosen needsclick" aria-hidden = "true">{{selectedOption}}</span>\n <abbr class="select2-search-choice-close needsclick"></abbr>\n <span class="select2-arrow needsclick" role="presentation">\n <b role="presentation" class="needsclick"></b>\n </span>\n </a> \n <input class="select2-focusser select2-offscreen" \n tabindex="-1" \n type="text" \n aria-hidden="true" \n title="hidden" \n aria-haspopup="true" \n role="button"> \n</div>\n\n<div class="select2-drop select2-with-searchbox select2-drop-auto-width select2-drop-active" ng-class="{\'select2-display-none\':(!showlist || isDisabled)}" style="width:100%;z-index: 10">\n <div class="select2-search">\n <label ng-if="!noFilter" class="select2-offscreen" aria-label="Inline Search Field" aria-hidden="true">Inline Search Field</label>\n <input ng-if="!noFilter" ng-model="title" aria-label="title" typeahead="c.title for c in cName | filter:$viewValue:startsWith" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" aria-autocomplete="list" placeholder="">\n </div>\n <ul id="inList" class="select2-results" role="listbox">\n <li ng-show="filteredName.length === 0" class="select2-no-results" tabindex="-1">No matches found</li>\n <li class="select2-results-dept-0 select2-result select2-result-selectable" role="presentation" ng-model="ListType" ng-show="selectMsg && filteredName.length > 0" ng-click="selectOption(selectMsg, \'-1\')" ng-class="{\'select2-result-current\': selectedOption === selectMsg, \'hovstyle\': selectedIndex === -1}" ng-mouseover="hoverIn(-1)" aria-label="{{selectMsg}}" tabindex="-1">\n <div ng-if="startsWithFilter" class="select2-result-label" ng-bind-html="selectMsg | unsafe" role="option">\n <span class="select2-match"></span>\n </div>\n <div ng-if="!startsWithFilter" class="select2-result-label" ng-bind-html="selectMsg | highlight:title:className | unsafe" role="option">\n <span class="select2-match"></span>\n </div>\n </li>\n\n <li role="menuitem" ng-if="startsWithFilter" class="select2-results-dept-0 select2-result select2-result-selectable" role="presentation" ng-model="ListType" ng-repeat="(fIndex, item) in filteredName = (cName | startsWith:title:item)" ng-class="{\'select2-result-current\': selectedOption === item.title,\'hovstyle\': selectedIndex === item.index,\'disable\': item.disabled}" ng-click="item.disabled || selectOption(item.title,item.index)" ng-mouseover="hoverIn(item.index)" aria-label="{{item.title}}" tabindex="-1">\n <div class="select2-result-label" ng-bind-html="item.title | unsafe" role="option">\n <span class="select2-match"></span>\n </div>\n </li>\n\n <li role="menuitem" ng-if="!startsWithFilter" class="select2-results-dept-0 select2-result select2-result-selectable" role="presentation" ng-model="ListType" ng-repeat="(fIndex, item) in filteredName = (cName | filter:title)" ng-class="{\'select2-result-current\': selectedOption === item.title,\'hovstyle\': selectedIndex === item.index,\'disable\': item.disabled}" ng-click="item.disabled || selectOption(item.title,item.index)" ng-mouseover="hoverIn(item.index)" aria-label="{{item.title}}" tabindex="-1">\n <div class="select2-result-label" ng-bind-html="item.title | highlight:title:className | unsafe" role="option">\n <span class="select2-match"></span>\n </div>\n </li>\n </ul>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/select/select.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/select/select.html",'<div class="select2-container show-search" ng-class="{\'select2-dropdown-open\': (showlist && !isDisabled),\'select2-container-disabled\': isDisabled, \'select2-container-active\': isact}" ng-init="isact=false;">\n <span class="select2-choice needsclick" tabindex="{{isDisabled ? -1 : 0}}" ng-click="showDropdown()" ng-class="{\'select2-chosen-disabled\':isDisabled}" role="combobox" aria-expanded="{{showlist}}" aria-owns="inList" aria-label="{{selectedOption}} selected" ng-focus="isact=true;" ng-blur="isact=false;">\n <span class="select2-chosen needsclick" aria-hidden="true">{{selectedOption}}</span>\n <abbr class="select2-search-choice-close needsclick"></abbr>\n <span class="select2-arrow needsclick" role="presentation">\n <b role="presentation" class="needsclick"></b>\n </span>\n </span> \n <input class="select2-focusser select2-offscreen" \n tabindex="-1" \n type="text" \n aria-hidden="true" \n title="hidden" \n aria-haspopup="true" \n role="button"> \n</div>\n\n<div class="select2-drop select2-with-searchbox select2-drop-auto-width select2-drop-active" ng-class="{\'select2-display-none\':(!showlist || isDisabled)}" style="width:100%;z-index: 10">\n <div class="select2-search">\n <label ng-if="!noFilter" class="select2-offscreen" aria-label="Inline Search Field" aria-hidden="true">Inline Search Field</label>\n <input ng-if="!noFilter" ng-model="title" aria-label="title" typeahead="c.title for c in cName | filter:$viewValue:startsWith" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" aria-autocomplete="list" placeholder="">\n </div>\n <ul id="inList" class="select2-results" role="listbox">\n <li ng-if="!noFilter" ng-show="filteredName.length === 0" class="select2-no-results" tabindex="-1">No matches found</li>\n <li ng-if="!noFilter" class="select2-results-dept-0 select2-result select2-result-selectable" role="presentation" ng-model="ListType" ng-show="selectMsg && filteredName.length > 0" ng-click="selectOption(selectMsg, \'-1\')" ng-class="{\'select2-result-current\': selectedOption === selectMsg, \'hovstyle\': selectedIndex === -1}" ng-mouseover="hoverIn(-1)" aria-label="{{selectMsg}}" tabindex="-1">\n <div ng-if="startsWithFilter" class="select2-result-label" ng-bind-html="selectMsg | unsafe" role="option">\n <span class="select2-match"></span>\n </div>\n <div ng-if="!startsWithFilter" class="select2-result-label" ng-bind-html="selectMsg | highlight:title:className | unsafe" role="option">\n <span class="select2-match"></span>\n </div>\n </li>\n\n <li role="menuitem" ng-if="startsWithFilter" class="select2-results-dept-0 select2-result select2-result-selectable" ng-model="ListType" ng-repeat="(fIndex, item) in filteredName = (cName | startsWith:title:item)" ng-class="{\'select2-result-current\': selectedOption === item.title,\'hovstyle\': selectedIndex === item.index,\'disable\': item.disabled}" ng-click="item.disabled || selectOption(item.title,item.index)" ng-mouseover="hoverIn(item.index)" tabindex="-1">\n <div class="select2-result-label" ng-bind-html="item.title | unsafe" role="option">\n <span class="select2-match"></span>\n </div>\n </li>\n\n <li role="menuitem" ng-if="!startsWithFilter" class="select2-results-dept-0 select2-result select2-result-selectable" ng-model="ListType" ng-repeat="(fIndex, item) in filteredName = (cName | filter:title)" ng-class="{\'select2-result-current\': selectedOption === item.title,\'hovstyle\': selectedIndex === item.index,\'disable\': item.disabled}" ng-click="item.disabled || selectOption(item.title,item.index)" ng-mouseover="hoverIn(item.index)" tabindex="-1">\n <div class="select2-result-label" ng-bind-html="item.title | highlight:title:className | unsafe" role="option">\n <span class="select2-match"></span>\n </div>\n </li>\n </ul>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/select/textDropdown.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/select/textDropdown.html",'<div tabindex="0" class="text-dropdown">\n <div class="dropdown" ng-class="{\'not-visible\': isActionsShown}" ng-click="toggle()">\n <span class="action--selected" ng-bind="currentAction"></span>\n <i ng-class="isActionsShown ? \'icon-dropdown-up\' : \'icon-dropdown-down\'"></i>\n </div>\n <ul ng-class="isActionsShown ? \'actionsOpened\' : \'actionsClosed\'" ng-show="isActionsShown">\n <li ng-class="{\'highlight\': selectedIndex==$index}" ng-repeat="action in actions track by $index" ng-click="chooseAction($event, action, $index)" ng-mouseover="hoverIn($index)">{{action}}<i ng-class="{\'icon-included-checkmark\': isCurrentAction(action)}" att-accessibility-click="13,32"></i></li>\n </ul>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/slider/maxContent.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/slider/maxContent.html",'<div class="att-slider__label att-slider__label--max att-slider__label--below" ng-transclude></div>')}]),angular.module("app/scripts/ng_js_att_tpls/slider/minContent.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/slider/minContent.html",'<div class="att-slider__label att-slider__label--min att-slider__label--below" ng-transclude></div>')}]),angular.module("app/scripts/ng_js_att_tpls/slider/slider.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/slider/slider.html",'<div class="att-slider" ng-mousemove="moveElem($event)" ng-mouseup="mouseUp($event)">\n <div class="att-slider__track">\n <div class="att-slider__range att-slider__range--disabled" ng-style="disabledStyle"></div>\n <div class="att-slider__range" ng-style="rangeStyle"></div>\n </div>\n <div class="att-slider__handles-container">\n <div role="menuitem" aria-label="{{ngModelSingle}}" class="att-slider__handle" ng-style="handleStyle" ng-mousedown="mouseDown($event,\'ngModelSingle\')" ng-mousemove="moveElem($event)" ng-mouseup="mouseUp($event)" tabindex="0" ng-keydown="keyDown($event,\'ngModelSingle\')"></div>\n <div role="menuitem" aria-label="Minimum Value- {{ngModelLow}}" class="att-slider__handle" ng-style="minHandleStyle" ng-mousedown="mouseDown($event,\'ngModelLow\')" ng-focus="focus($event,\'ngModelLow\')" ng-mousemove="moveElem($event)" ng-mouseup="mouseUp($event)" tabindex="0" ng-keyup="keyUp($event,\'ngModelLow\')" ng-keydown="keyDown($event,\'ngModelLow\')"></div>\n <div role="menuitem" aria-label="Maximum Value- {{ngModelHigh}}" class="att-slider__handle" ng-style="maxHandleStyle" ng-mousedown="mouseDown($event,\'ngModelHigh\')" ng-focus="focus($event,\'ngModelHigh\')" ng-mousemove="moveElem($event)" ng-mouseup="mouseUp($event)" tabindex="0" ng-keyup="keyUp($event,\'ngModelHigh\')" ng-keydown="keyDown($event,\'ngModelHigh\')"></div>\n </div>\n <div ng-transclude></div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html",'<div class=" btn-group" \n ng-class="{\'buttons-dropdown--large\':!isSmall, \n \'buttons-dropdown--small\':isSmall, \n \'action-dropdown\':(isActionDropdown), \n \'open\':isDropDownOpen}">\n <a tabindex="0" href="javascript:void(0)" class="button btn buttons-dropdown__split" \n ng-class="{\'button--primary\':(btnType==undefined || btnType==\'primary\'), \n \'button--secondary\':btnType==\'secondary\', \n \'button--disabled\':btnType==\'disabled\', \n \'button--small\':isSmall}" \n ng-if="!isActionDropdown"\n ng-click="btnType===\'disabled\'?undefined:clickFxn()" att-accessibility-click="13,32">{{btnText}}</a>\n <a tabindex="0" href="javascript:void(0)" role="button" aria-label="Toggle Dropdown" aria-haspopup="true" class="button buttons-dropdown__drop dropdown-toggle" \n ng-class="{\'button--primary\':(btnType==undefined || btnType==\'primary\'), \n \'button--secondary\':btnType==\'secondary\', \n \'button--disabled\':btnType==\'disabled\', \n \'button--small\':isSmall}" ng-click="toggleDropdown()" att-accessibility-click="13,32">{{toggleTitle}} </a>\n <ul class="dropdown-menu" ng-class="{\'align-right\':multiselect ===true}" aria-expanded="{{isDropDownOpen}}" ng-click="hideDropdown()" role="menu" ng-transclude></ul>\n</div> ')}]),angular.module("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html",'<li role="menuitem" att-element-focus="sFlag" tabindex="0" ng-transclude></li>')}]),angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html","<div class='split-icon-button-container'>\n\n <div class='split-icon-button' ng-class=\"{'icon-with-chevron': isRight && !isMiddle && !isLeftNextDropdown && !isNextToDropDown, 'split-icon-button-middle':isMiddle, 'split-icon-button-right':isRight, 'split-icon-button-left':isLeft, 'split-icon-button-left-dropdown': isLeftNextDropdown ,'split-icon-button-next-dropdown': isNextToDropDown,'split-icon-button-dropdown': isDropDownOpen,'split-icon-button-hover':isIconHovered || isDropDownOpen}\" ng-mouseover='isIconHovered = true;' ng-mouseleave='isIconHovered = false;' tabindex=\"-1\" att-accessibility-click=\"13,32\" ng-click='dropDownClicked();'>\n <a class='{{icon}}' title='{{iconTitle}}' tabindex=\"0\"></a>\n <i ng-if=\"isRight && !isMiddle && !isLeftNextDropdown && !isNextToDropDown\" \n ng-class=\"isDropDownOpen ? 'icon-dropdown-up' : 'icon-dropdown-down'\"> </i>\n </div> \n\n <ul ng-if='isDropdown' class='dropdown-menu {{dropDownId}}' ng-show='\n isDropDownOpen' ng-click='toggleDropdown(false)' role=\"presentation\" ng-transclude>\n </ul>\n\n</div>")}]),angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html","<div>\n <div ng-if='isLeftLineShown' dir-type='{{iconStateConstants.DIR_TYPE.LEFT}}' expandable-line></div>\n <div ng-click='clickHandler()' att-split-icon icon='{{icon}}' title='{{title}}' dir-type='{{iconStateConstants.DIR_TYPE.BUTTON}}' hover-watch='isHovered' drop-down-watch='dropDownWatch' drop-down-id='{{dropDownId}}'>\n <div ng-transclude>\n </div>\n </div>\n <div ng-if='isRightLineShown' dir-type='{{iconStateConstants.DIR_TYPE.RIGHT}}' expandable-line></div>\n</div>")}]),angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html","<div ng-transclude>\n</div>")}]),angular.module("app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html",'<span ng-class="mainSliderClass">\n <table>\n <tr>\n <td>\n <div class="jslider-bg">\n <i class="l"></i>\n <i class="r"></i>\n <i class="v" ng-class="{\'step-slider-green\':sliderColor == COLORS.GREEN, \'step-slider-blue\': sliderColor == COLORS.BLUE_HIGHLIGHT, \'step-slider-magenta\': sliderColor == COLORS.MAGENTA, \'step-slider-gold\': sliderColor == COLORS.GOLD, \'step-slider-purple\': sliderColor == COLORS.PURPLE, \'step-slider-dark-blue\': sliderColor == COLORS.DARK_BLUE, \'step-slider-regular\': sliderColor == COLORS.REGULAR, \'step-slider-white\': sliderColor == COLORS.WHITE, \'cutoff-slider\': isCutOffSlider}"></i>\n </div>\n <div class="jslider-pointer" id="left-pointer"></div>\n <div class="jslider-pointer jslider-pointer-to" ng-class="{\'step-slider-green\':sliderColor == COLORS.GREEN, \'step-slider-blue\': sliderColor == COLORS.BLUE_HIGHLIGHT, \'step-slider-magenta\': sliderColor == COLORS.MAGENTA, \'step-slider-gold\': sliderColor == COLORS.GOLD, \'step-slider-purple\': sliderColor == COLORS.PURPLE, \'step-slider-dark-blue\': sliderColor == COLORS.DARK_BLUE, \'step-slider-regular\': sliderColor == COLORS.REGULAR, \'step-slider-white\':sliderColor == COLORS.WHITE ,\'cutoff-slider\': isCutOffSlider}"></div>\n <div class="jslider-label"><span ng-bind="from"></span><span ng-bind="options.dimension"></span></div>\n <div class="jslider-label jslider-label-to"><span ng-bind="toStr"></span><span ng-bind="endDimension"></span></div>\n <div class="jslider-value" id="jslider-value-left"><span></span>{{options.dimension}}</div>\n <div class="jslider-value jslider-value-to"><span></span>{{toolTipDimension}}</div>\n <div class="jslider-scale" ng-class="{\'show-dividers\': showDividers, \'cutoff-slider-dividers\':isCutOffSlider}">\n </div>\n <div class="jslider-cutoff">\n <div class="jslider-label jslider-label-cutoff">\n <span ng-bind="cutOffVal"></span>\n </div>\n </div>\n </td>\n </tr>\n </table>\n</span>\n')}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/step-tracker.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/steptracker/step-tracker.html",'<div class="steptracker1">\n <div class="steptracker-bg">\n <div tabindex="0" ng-click="stepclick($event, $index);" att-accessibility-click="13,23" class="steptracker-track size-onethird" ng-repeat="step in sdata"\n ng-style="set_width($index)"\n ng-class="{\'last\':laststep($index),\'done\':donesteps($index),\'active\':activestep($index), \'incomplete\': isIncomplete($index), \'disabled\': disableClick}">\n <div class="circle">{{($index) + 1}}<span>{{step.title}}</span></div>\n <div ng-if="!laststep($index)" class="track"></div>\n </div>\n </div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/step.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/steptracker/step.html",'<div class="steptracker1">\n <div class="steptracker-bg">\n <div class="steptracker-track size-onethird" \n ng-class="{\'last\':laststep($index),\'done\':donesteps($index),\'active\':activestep($index)}">\n <div class="circle" tabindex="0" \n ng-click="stepclick($event, $index);" \n att-accessibility-click="13,23">{{($index) + 1}}<span>{{step.title}}</span></div>\n <div ng-if="!laststep($index)" class="track"></div>\n </div>\n </div>\n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/timeline.html",[]).run(["$templateCache",function(a){
-a.put("app/scripts/ng_js_att_tpls/steptracker/timeline.html","<div class='att-timeline'>\n <div timeline-dot order='0' title='{{steps[0].title}}' description='{{steps[0].description}}' by='{{steps[0].by}}' date='{{steps[0].date}}' type='{{steps[0].type}}'></div>\n\n <div ng-repeat=\"m in middleSteps track by $index\">\n <div timeline-bar order='{{$index}}'></div>\n <div timeline-dot order='{{$index + 1}}' title='{{m.title}}' description='{{m.description}}' by='{{m.by}}' date='{{m.date}}' type='{{m.type}}'>\n </div>\n </div>\n\n</div>")}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/timelineBar.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/steptracker/timelineBar.html","<div class='timeline-bar'>\n <div class='progress-bar' ng-class=\"{'completed-color':isCompleted,'cancelled-color':isCancelled,'alert-color':isAlert}\">\n </div>\n <hr></hr>\n</div>")}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/timelineDot.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/steptracker/timelineDot.html","<div class='timeline-dot'>\n\n <div class='bigger-circle' ng-class=\"{'completed-color':isCompleted,'cancelled-color':isCancelled,'alert-color':isAlert}\">\n </div>\n\n <div class='inactive-circle'>\n </div>\n\n <div class='expandable-circle' ng-class=\"{'completed-color':isCompleted,'cancelled-color':isCancelled,'alert-color':isAlert}\">\n </div>\n\n <div ng-class=\"{'below-info-box':isBelowInfoBoxShown, 'above-info-box': !isBelowInfoBoxShown}\" tabindex=\"0\">\n \n <div ng-if='isBelowInfoBoxShown' class='vertical-line'>\n </div>\n\n <div class='info-container' ng-init='isContentShown=false'>\n <div ng-class=\"{'current-step-title':isCurrentStep, 'title':!isCurrentStep,'completed-color-text':isCompleted,'cancelled-color-text':isCancelled,'alert-color-text':isAlert, 'inactive-color-text':isInactive}\" ng-mouseover='titleMouseover(1)' ng-mouseleave='titleMouseleave()' ng-bind='title' ></div>\n <div class='content'>\n <div class='description' ng-bind='description'></div>\n <div class='submitter' ng-bind='by'></div>\n </div>\n <div class='date' ng-mouseover='titleMouseover(2)' ng-mouseleave='titleMouseleave()' ng-bind='date'></div>\n </div>\n\n <div ng-if='!isBelowInfoBoxShown' class='vertical-line'>\n </div>\n </div>\n\n</div>")}]),angular.module("app/scripts/ng_js_att_tpls/table/attTable.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/table/attTable.html",'<table class="tablesorter tablesorter-default" ng-transclude></table>\n')}]),angular.module("app/scripts/ng_js_att_tpls/table/attTableBody.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/table/attTableBody.html","<td ng-transclude></td>\n")}]),angular.module("app/scripts/ng_js_att_tpls/table/attTableHeader.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/table/attTableHeader.html","<th role=\"button\" aria-label=\"column header {{headerName}} {{sortable !== 'false' && '' || 'sortable'}} {{sortPattern !== 'null' && '' || sortPattern}}\" tabindex=\"{{sortable !== 'false' && '0' || '-1'}}\" class=\"tablesorter-header\" ng-class=\"{'tablesorter-headerAsc': sortPattern === 'asc', 'tablesorter-headerDesc': sortPattern === 'desc', 'tablesort-sortable': sortable !== 'false', 'sorter-false': sortable === 'false'}\" att-accessibility-click=\"13,32\" ng-click=\"(sortable !== 'false') && sort();\"><div class=\"tablesorter-header-inner\" ng-transclude></div></th>")}]),angular.module("app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html",'<div class="att-table-message">\n <div class="message" ng-if="msgType==messageConstants.TABLE_MESSAGE_TYPES.noMatching">\n <div class="img-magnify-glass"></div> \n <div>\n <div ng-transclude></div>\n </div>\n </div>\n <div class="message" ng-if="msgType==messageConstants.TABLE_MESSAGE_TYPES.errorLoading">\n <div class="img-oops-exclamation" tabindex="0" aria-label="Oops! The information could not load at this time. Please click link to refresh the page."></div> \n <div>Oops!</div>\n <div>The information could not load at this time.</div>\n <div>Please <a href="javascript:void(0)" ng-click="refreshAction($event)">refresh the page</a>\n </div>\n </div>\n <div class="message" ng-if="msgType==messageConstants.TABLE_MESSAGE_TYPES.magnifySearch">\n <div class="img-magnify-glass"></div>\n <div>\n <p class="title" tabindex="0">Please input values to <br/> begin your search.</p>\n </div>\n </div>\n <div class="message loading-message" ng-if="msgType==messageConstants.TABLE_MESSAGE_TYPES.isLoading">\n <div class="img-loading-dots"></div>\n <div ng-transclude></div>\n </div>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html",'<div class="att-user-message">\n <div ng-class="type==messageConstants.USER_MESSAGE_TYPES.error && trigger ? \'message-wrapper-error\' : \'hidden\'">\n <div class="message-icon-error"> <i class="icon-info-alert"></i> </div>\n\n <div class="message-body-wrapper">\n <div class="message-title-error" ng-if="thetitle && thetitle.length > 0"> <span ng-bind="thetitle" tabindex="0" aria-label="{{thetitle}}"></span> </div>\n <div class="message-msg" ng-bind="message" ng-if="message && message.length > 0" tabindex="0"></div>\n <div class="message-bottom">\n <div ng-transclude></div>\n </div>\n </div>\n\n </div>\n <div ng-class="type==messageConstants.USER_MESSAGE_TYPES.success && trigger ? \'message-wrapper-success\' : \'hidden\'">\n <div class="message-icon-success"> <i class="icon-included-checkmark"></i></div>\n\n <div class="message-body-wrapper">\n <div class="message-title-success" ng-if="thetitle && thetitle.length > 0" >\n <span ng-bind="thetitle" tabindex="0" aria-label="{{thetitle}}"></span>\n </div>\n <div class="message-msg" ng-bind="message" ng-if="message && message.length > 0" tabindex="0"></div>\n <div class="message-bottom">\n <div ng-transclude></div>\n </div>\n </div>\n\n </div>\n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/floatingTabs.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tabs/floatingTabs.html","<ul ng-class=\"{'tabsbid': size === 'large', 'tabsbid--small': size === 'small'}\">\n <li ng-repeat=\"tab in tabs\" ng-class=\"{'tabsbid__item tabsbid__item--active': isActiveTab(tab.url), 'tabsbid__item': !isActiveTab(tab.url)}\" ng-click=\"onClickTab(tab)\">\n"+' <a class="tabsbid__item-link" href="{{tab.url}}" tabindex="0" att-accessibility-click="32,13">{{tab.title}}</a>\n </li>\n</ul>')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/genericTabs.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tabs/genericTabs.html","<ul ng-class=\"{'tabsbid': size === 'large', 'tabsbid--small': size === 'small'}\">\n <li ng-repeat=\"tab in tabs\" ng-class=\"{'tabsbid__item tabsbid__item--active': isActive(tab.id), 'tabsbid__item': !isActive(tab.id),'tabs__item--active': isActive(tab.id)}\" ng-click=\"clickTab(tab)\">\n"+' <a class="tabsbid__item-link" href="{{tab.url}}" tabindex="0" att-accessibility-click="32,13">{{tab.title}}</a>\n </li>\n</ul>\n')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/menuTab.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tabs/menuTab.html",'<li class="megamenu__item" ng-mouseover="showHoverChild($event)" ng-class="{\'tabs__item--active\': menuItem.active==true && !hoverChild==true}">\n <span role="menuitem" att-accessibility-click="13,32" tabindex="0" ng-click="showChildren($event);!clickInactive||resetMenu($event)">{{tabName}}</span>\n <div ng-transclude></div>\n</li>\n')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html",'<div ng-class="{\'megamenu-tabs\': megaMenu,\'submenu-tabs\': !megaMenu}">\n <ul class="megamenu__items" role="presentation" ng-transclude>\n </ul>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html",'<div class="simplified-tabs">\n<ul class="simplified-tabs__items" role="tablist">\n <li ng-repeat="tab in tabs" role="tab" class="simplified-tabs__item" ng-class="{\'tabs__item--active\': isActive(tab.id)}" ng-click="clickTab(tab)" tabindex="0" att-accessibility-click="32,13">{{tab.title}}</li>\n <li class="tabs__pointer"></li>\n</ul>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/submenuTab.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tabs/submenuTab.html",'<li class="tabsbid__item megamenu__item" ng-class="{\'subMenuHover\': menuItem.active==true}">\n<a ng-href="{{tabUrl}}" role="menuitem" ng-if="subMenu === true" ng-mouseover="!subMenu || showChildren($event)" ng-focus="!subMenu ||showChildren($event)" tabindex="{{subMenu==\'true\'?0:-1}}" ng-click="!subMenu ||showMenuClick($event) ; subMenu ||showSubMenuClick($event)" att-accessibility-click="13,32">{{tabName}}</a>\n<a ng-href="{{tabUrl}}" role="menuitem" ng-if="!menuItem.leafNode && subMenu !== true" ng-mouseover="!subMenu || showChildren($event)" ng-focus="!subMenu ||showChildren($event)" tabindex="{{subMenu==\'true\'?0:-1}}" ng-click="!subMenu ||showMenuClick($event) ; subMenu ||showSubMenuClick($event)" att-accessibility-click="13,32">{{tabName}}</a>\n<span ng-transclude></span>\n</li>\n')}]),angular.module("app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html","<div class=\"tags__item\" \n ng-class=\"{'tags__item--small':isSmall, \n 'tags__item--color':isColor, \n 'tags__item--cloud':!isClosable && !isColor,'active':applyActiveClass}\"\n ng-if=\"display\" \n ng-style=\"{borderColor: border_type_borderColor, background: isHighlight?'#bbb':undefined, color: isHighlight?'#444':undefined }\"\n"+' ng-mousedown="activeHighlight(true)" role="presentation" ng-mouseup="activeHighlight(false)">\n <i class="icon-filter tags__item--icon" ng-if="isIcon">&nbsp;</i>\n <i class="tags__item--color-icon" ng-if="isColor" ng-style="{backgroundColor: background_type_backgroundColor, borderColor: background_type_borderColor}"></i>\n <span class="tags__item--title" role="presentation" tabindex=0 aria-label="tag" ng-mousedown="activeHighlight(true)" ng-mouseup="activeHighlight(false)" ng-transclude></span>\n <a href="javascript:void(0)" title="Dismiss Link" class="tags__item--action" ng-click="closeMe();$event.preventDefault()" ng-if="isClosable"\n ng-style="{color: (isHighlight && \'#444\') || \'#888\' , borderLeft: (isHighlight && \'1px solid #444\')|| \'1px solid #888\' }">\n <i class="icon-erase">&nbsp;</i>\n </a>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/toggle/demoToggle.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/toggle/demoToggle.html",'<span ng-transclude></span>\n<div class="att-switch-content" hm-drag = "drag($event)" att-accessibility-click="13,32" ng-click="updateModel($event)" hm-dragstart="alert(\'hello\')" hm-dragend="drag($event)" ng-class="{\'large\' : directiveValue == \'large\'}" style="-webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">\n <div class="att-switch-onText" ng-style="" ng-class="{\'icon-included-checkmark ico\' : on === undefined,\'large\' : directiveValue == \'large\'}">{{on}}<span class="hidden-spoken">{{directiveValue}} when checked.</span></div>\n <div class="att-switch-thumb" tabindex="0" title="Toggle switch" role="checkbox" ng-class="{\'large\' : directiveValue == \'large\'}"></div>\n <div class="att-switch-offText" ng-class="{\'icon-erase ico\' : on === undefined,\'large\' : directiveValue == \'large\'}">{{off}}<span class="hidden-spoken">{{directiveValue}} when unchecked.</span></div>\n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html",'<div class="typeahead mainContainerOuter">\n <span class="message">To</span>\n <div class=\'maincontainer\' ng-click="setFocus()" ng-focus="inputActive=true" ng-class ="{\'typeahed_active\':inputActive || (lineItems.length && inputActive)}">\n <span tag-badges closable ng-repeat ="lineItem in lineItems track by $index" on-close="theMethodToBeCalled($index)" >{{lineItem}}</span>\n <input type="text" focus-me="clickFocus" ng-focus="inputActive=true" ng-model="model" ng-keydown="selected = false; selectionIndex($event)"/><br/> \n </div>\n <div ng-hide="!model.length || selected">\n <div class="filtercontainer list-scrollable" ng-show="( items | filter:model).length">\n <div class="item" ng-repeat="item in items| filter:model track by $index" ng-click="handleSelection(item[titleName],item[subtitle])" att-accessibility-click="13,32" ng-class="{active:isCurrent($index,item[titleName],item[subtitle],( items | filter:model).length)}"ng-mouseenter="setCurrent($index)">\n <span class="title" >{{item[titleName]}}</span>\n <span class="subtitle">{{item[subtitle]}}</span>\n </div> \n </div>\n </div>\n \n <div class="textAreaEmailContentDiv">\n <span class="message">Message</span>\n <textarea rows="4" cols="50" role="textarea" class="textAreaEmailContent" ng-model="emailMessage">To send \n a text, picture, or video message1 to an AT&T wireless device from your email:my message.</textarea>\n \n </div>\n \n</div>\n')}]),angular.module("app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html","<li>\n <i ng-class=\"{'icon-tickets-active' : type == 'actual' && id =='Active','icon-tickets-referred' : type == 'actual' && id =='Requested Closed','icon-ticket-regular' : type == 'progress' && id =='In Progress','icon-tickets-contested' : type == 'actual' && id =='Contested','icon-tickets-returned' : type == 'actual' && id =='Deferred','icon-tickets-closed' : type == 'actual' && id =='Ready to Close','icon-tickets-cleared' : type == 'actual' && id =='Cleared'}\"></i>\n <span ng-transclude></span>\n</li>\n \n")}]),angular.module("app/scripts/ng_js_att_tpls/videoControls/photoControls.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/videoControls/photoControls.html",'<div>\n <a title="{{links.prevLink}}" aria-label="Previous Link" ng-href="{{links.prevLink}}"><i alt="previous" class="icon-arrow-left">&nbsp;</i></a>\n <span ng-transclude></span>\n <a title="{{links.nextLink}}" aria-label="Next Link" ng-href="{{links.nextLink}}"><i alt="next" class="icon-arrow-right">&nbsp;</i></a>\n</div>')}]),angular.module("app/scripts/ng_js_att_tpls/videoControls/videoControls.html",[]).run(["$templateCache",function(a){a.put("app/scripts/ng_js_att_tpls/videoControls/videoControls.html",'<div class="video-player">\n <div class="video-player__control video-player__play-button">\n <a class="video-player__button gigant-play" data-toggle-buttons="icon-play, icon-pause" data-target="i"><i class="icon-play" alt="Play/Pause Button"></i></a>\n </div>\n <div class="video-player__control video-player__track">\n\n <div class="video-player__track--inner">\n <div class="video-player__track--loaded" style="width: 75%"></div>\n <div class="video-player__track--played" style="width: 40%">\n <div class="att-tooltip att-tooltip--on att-tooltip--dark att-tooltip--above video-player__track-tooltip" ng-transclude></div>\n <div class="video-player__track-handle"></div>\n </div>\n </div>\n </div>\n <a class="video-player__time" ng-transclude></a>\n <div class="video-player__control video-player__volume_icon">\n <a class="video-player__button" data-toggle-buttons="icon-volume-mute, icon-volume-up" data-target="i"><i class="icon-volume-up" alt="Volume Button"></i></a>\n </div>\n <ul class="video-player__control video-player__volume">\n <li class="video-player__volume-bar video-player__volume-bar--full">&nbsp;</li>\n <li class="video-player__volume-bar video-player__volume-bar--full">&nbsp;</li>\n <li class="video-player__volume-bar">&nbsp;</li>\n <li class="video-player__volume-bar">&nbsp;</li>\n <li class="video-player__volume-bar">&nbsp;</li>\n </ul>\n <div class="video-player__control video-player__toggle-fullscreen-button">\n <a class="video-player__button" data-toggle-buttons="icon-full-screen, icon-normal-screen" data-target="i"><i class="icon-full-screen" alt="Full Screen Button">&nbsp;</i></a>\n </div>\n</div>')}]);
-return {}
-})(angular, window); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/base.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/base.css
deleted file mode 100644
index fc4b1c3d..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/base.css
+++ /dev/null
@@ -1 +0,0 @@
-/*! normalize.css v2.1.3 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a{background:0 0}a:active,a:hover{outline:0}h1{margin:.67em 0}b,strong{font-weight:700}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}button,input,select,textarea{margin:0}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{text-shadow:none!important;color:#000!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:2cm .5cm}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:transparent}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.428571429;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:focus,a:hover{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail,.thumbnail{padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:6px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}cite{font-style:normal}.text-muted{color:#999}.text-primary{color:#428bca}.text-primary:hover{color:#3071a9}.text-warning{color:#c09853}.text-warning:hover{color:#a47e3c}.text-danger{color:#b94a48}.text-danger:hover{color:#953b39}.text-success{color:#468847}.text-success:hover{color:#356635}.text-info{color:#3a87ad}.text-info:hover{color:#2d6987}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:700;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#999}h1,h2,h3{margin-top:20px;margin-bottom:10px}h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}h4,h5,h6{margin-top:10px;margin-bottom:10px}h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}.list-inline>li:first-child{padding-left:0}dl{margin-bottom:20px}dd,dt{line-height:1.428571429}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.dl-horizontal dd:after,.dl-horizontal dd:before{content:" ";display:table}.dl-horizontal dd:after{clear:both}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #999}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{font-size:17.5px;font-weight:300;line-height:1.25}blockquote p:last-child{margin-bottom:0}blockquote small{display:block;line-height:1.428571429;color:#999}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right .small,blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right .small:before,blockquote.pull-right small:before{content:''}blockquote.pull-right .small:after,blockquote.pull-right small:after{content:'\00A0 \2014'}blockquote:after,blockquote:before{content:""}address{margin-bottom:20px;font-style:normal;line-height:1.428571429}code,kbd,pre,samp{font-family:Monaco,Menlo,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;white-space:nowrap;border-radius:6px}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.428571429;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:6px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto;padding-left:10px;padding-right:10px}.container:after,.container:before{content:" ";display:table}.container:after{clear:both}.row{margin-left:-10px;margin-right:-10px}.row:after,.row:before{content:" ";display:table}.row:after{clear:both}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-13,.col-lg-14,.col-lg-15,.col-lg-16,.col-lg-17,.col-lg-18,.col-lg-19,.col-lg-2,.col-lg-20,.col-lg-21,.col-lg-22,.col-lg-23,.col-lg-24,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-13,.col-md-14,.col-md-15,.col-md-16,.col-md-17,.col-md-18,.col-md-19,.col-md-2,.col-md-20,.col-md-21,.col-md-22,.col-md-23,.col-md-24,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-13,.col-sm-14,.col-sm-15,.col-sm-16,.col-sm-17,.col-sm-18,.col-sm-19,.col-sm-2,.col-sm-20,.col-sm-21,.col-sm-22,.col-sm-23,.col-sm-24,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-13,.col-xs-14,.col-xs-15,.col-xs-16,.col-xs-17,.col-xs-18,.col-xs-19,.col-xs-2,.col-xs-20,.col-xs-21,.col-xs-22,.col-xs-23,.col-xs-24,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:10px;padding-right:10px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-13,.col-xs-14,.col-xs-15,.col-xs-16,.col-xs-17,.col-xs-18,.col-xs-19,.col-xs-2,.col-xs-20,.col-xs-21,.col-xs-22,.col-xs-23,.col-xs-24,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-1{width:4.1666666667%}.col-xs-2{width:8.3333333333%}.col-xs-3{width:12.5%}.col-xs-4{width:16.6666666667%}.col-xs-5{width:20.8333333333%}.col-xs-6{width:25%}.col-xs-7{width:29.1666666667%}.col-xs-8{width:33.3333333333%}.col-xs-9{width:37.5%}.col-xs-10{width:41.6666666667%}.col-xs-11{width:45.8333333333%}.col-xs-12{width:50%}.col-xs-13{width:54.1666666667%}.col-xs-14{width:58.3333333333%}.col-xs-15{width:62.5%}.col-xs-16{width:66.6666666667%}.col-xs-17{width:70.8333333333%}.col-xs-18{width:75%}.col-xs-19{width:79.1666666667%}.col-xs-20{width:83.3333333333%}.col-xs-21{width:87.5%}.col-xs-22{width:91.6666666667%}.col-xs-23{width:95.8333333333%}.col-xs-24{width:100%}.col-xs-pull-0{right:0}.col-xs-pull-1{right:4.1666666667%}.col-xs-pull-2{right:8.3333333333%}.col-xs-pull-3{right:12.5%}.col-xs-pull-4{right:16.6666666667%}.col-xs-pull-5{right:20.8333333333%}.col-xs-pull-6{right:25%}.col-xs-pull-7{right:29.1666666667%}.col-xs-pull-8{right:33.3333333333%}.col-xs-pull-9{right:37.5%}.col-xs-pull-10{right:41.6666666667%}.col-xs-pull-11{right:45.8333333333%}.col-xs-pull-12{right:50%}.col-xs-pull-13{right:54.1666666667%}.col-xs-pull-14{right:58.3333333333%}.col-xs-pull-15{right:62.5%}.col-xs-pull-16{right:66.6666666667%}.col-xs-pull-17{right:70.8333333333%}.col-xs-pull-18{right:75%}.col-xs-pull-19{right:79.1666666667%}.col-xs-pull-20{right:83.3333333333%}.col-xs-pull-21{right:87.5%}.col-xs-pull-22{right:91.6666666667%}.col-xs-pull-23{right:95.8333333333%}.col-xs-pull-24{right:100%}.col-xs-push-0{left:0}.col-xs-push-1{left:4.1666666667%}.col-xs-push-2{left:8.3333333333%}.col-xs-push-3{left:12.5%}.col-xs-push-4{left:16.6666666667%}.col-xs-push-5{left:20.8333333333%}.col-xs-push-6{left:25%}.col-xs-push-7{left:29.1666666667%}.col-xs-push-8{left:33.3333333333%}.col-xs-push-9{left:37.5%}.col-xs-push-10{left:41.6666666667%}.col-xs-push-11{left:45.8333333333%}.col-xs-push-12{left:50%}.col-xs-push-13{left:54.1666666667%}.col-xs-push-14{left:58.3333333333%}.col-xs-push-15{left:62.5%}.col-xs-push-16{left:66.6666666667%}.col-xs-push-17{left:70.8333333333%}.col-xs-push-18{left:75%}.col-xs-push-19{left:79.1666666667%}.col-xs-push-20{left:83.3333333333%}.col-xs-push-21{left:87.5%}.col-xs-push-22{left:91.6666666667%}.col-xs-push-23{left:95.8333333333%}.col-xs-push-24{left:100%}.col-xs-offset-0{margin-left:0}.col-xs-offset-1{margin-left:4.1666666667%}.col-xs-offset-2{margin-left:8.3333333333%}.col-xs-offset-3{margin-left:12.5%}.col-xs-offset-4{margin-left:16.6666666667%}.col-xs-offset-5{margin-left:20.8333333333%}.col-xs-offset-6{margin-left:25%}.col-xs-offset-7{margin-left:29.1666666667%}.col-xs-offset-8{margin-left:33.3333333333%}.col-xs-offset-9{margin-left:37.5%}.col-xs-offset-10{margin-left:41.6666666667%}.col-xs-offset-11{margin-left:45.8333333333%}.col-xs-offset-12{margin-left:50%}.col-xs-offset-13{margin-left:54.1666666667%}.col-xs-offset-14{margin-left:58.3333333333%}.col-xs-offset-15{margin-left:62.5%}.col-xs-offset-16{margin-left:66.6666666667%}.col-xs-offset-17{margin-left:70.8333333333%}.col-xs-offset-18{margin-left:75%}.col-xs-offset-19{margin-left:79.1666666667%}.col-xs-offset-20{margin-left:83.3333333333%}.col-xs-offset-21{margin-left:87.5%}.col-xs-offset-22{margin-left:91.6666666667%}.col-xs-offset-23{margin-left:95.8333333333%}.col-xs-offset-24{margin-left:100%}@media (min-width:768px){.container{width:740px}.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-13,.col-sm-14,.col-sm-15,.col-sm-16,.col-sm-17,.col-sm-18,.col-sm-19,.col-sm-2,.col-sm-20,.col-sm-21,.col-sm-22,.col-sm-23,.col-sm-24,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-1{width:4.1666666667%}.col-sm-2{width:8.3333333333%}.col-sm-3{width:12.5%}.col-sm-4{width:16.6666666667%}.col-sm-5{width:20.8333333333%}.col-sm-6{width:25%}.col-sm-7{width:29.1666666667%}.col-sm-8{width:33.3333333333%}.col-sm-9{width:37.5%}.col-sm-10{width:41.6666666667%}.col-sm-11{width:45.8333333333%}.col-sm-12{width:50%}.col-sm-13{width:54.1666666667%}.col-sm-14{width:58.3333333333%}.col-sm-15{width:62.5%}.col-sm-16{width:66.6666666667%}.col-sm-17{width:70.8333333333%}.col-sm-18{width:75%}.col-sm-19{width:79.1666666667%}.col-sm-20{width:83.3333333333%}.col-sm-21{width:87.5%}.col-sm-22{width:91.6666666667%}.col-sm-23{width:95.8333333333%}.col-sm-24{width:100%}.col-sm-pull-0{right:0}.col-sm-pull-1{right:4.1666666667%}.col-sm-pull-2{right:8.3333333333%}.col-sm-pull-3{right:12.5%}.col-sm-pull-4{right:16.6666666667%}.col-sm-pull-5{right:20.8333333333%}.col-sm-pull-6{right:25%}.col-sm-pull-7{right:29.1666666667%}.col-sm-pull-8{right:33.3333333333%}.col-sm-pull-9{right:37.5%}.col-sm-pull-10{right:41.6666666667%}.col-sm-pull-11{right:45.8333333333%}.col-sm-pull-12{right:50%}.col-sm-pull-13{right:54.1666666667%}.col-sm-pull-14{right:58.3333333333%}.col-sm-pull-15{right:62.5%}.col-sm-pull-16{right:66.6666666667%}.col-sm-pull-17{right:70.8333333333%}.col-sm-pull-18{right:75%}.col-sm-pull-19{right:79.1666666667%}.col-sm-pull-20{right:83.3333333333%}.col-sm-pull-21{right:87.5%}.col-sm-pull-22{right:91.6666666667%}.col-sm-pull-23{right:95.8333333333%}.col-sm-pull-24{right:100%}.col-sm-push-0{left:0}.col-sm-push-1{left:4.1666666667%}.col-sm-push-2{left:8.3333333333%}.col-sm-push-3{left:12.5%}.col-sm-push-4{left:16.6666666667%}.col-sm-push-5{left:20.8333333333%}.col-sm-push-6{left:25%}.col-sm-push-7{left:29.1666666667%}.col-sm-push-8{left:33.3333333333%}.col-sm-push-9{left:37.5%}.col-sm-push-10{left:41.6666666667%}.col-sm-push-11{left:45.8333333333%}.col-sm-push-12{left:50%}.col-sm-push-13{left:54.1666666667%}.col-sm-push-14{left:58.3333333333%}.col-sm-push-15{left:62.5%}.col-sm-push-16{left:66.6666666667%}.col-sm-push-17{left:70.8333333333%}.col-sm-push-18{left:75%}.col-sm-push-19{left:79.1666666667%}.col-sm-push-20{left:83.3333333333%}.col-sm-push-21{left:87.5%}.col-sm-push-22{left:91.6666666667%}.col-sm-push-23{left:95.8333333333%}.col-sm-push-24{left:100%}.col-sm-offset-0{margin-left:0}.col-sm-offset-1{margin-left:4.1666666667%}.col-sm-offset-2{margin-left:8.3333333333%}.col-sm-offset-3{margin-left:12.5%}.col-sm-offset-4{margin-left:16.6666666667%}.col-sm-offset-5{margin-left:20.8333333333%}.col-sm-offset-6{margin-left:25%}.col-sm-offset-7{margin-left:29.1666666667%}.col-sm-offset-8{margin-left:33.3333333333%}.col-sm-offset-9{margin-left:37.5%}.col-sm-offset-10{margin-left:41.6666666667%}.col-sm-offset-11{margin-left:45.8333333333%}.col-sm-offset-12{margin-left:50%}.col-sm-offset-13{margin-left:54.1666666667%}.col-sm-offset-14{margin-left:58.3333333333%}.col-sm-offset-15{margin-left:62.5%}.col-sm-offset-16{margin-left:66.6666666667%}.col-sm-offset-17{margin-left:70.8333333333%}.col-sm-offset-18{margin-left:75%}.col-sm-offset-19{margin-left:79.1666666667%}.col-sm-offset-20{margin-left:83.3333333333%}.col-sm-offset-21{margin-left:87.5%}.col-sm-offset-22{margin-left:91.6666666667%}.col-sm-offset-23{margin-left:95.8333333333%}.col-sm-offset-24{margin-left:100%}}@media (min-width:992px){.container{width:980px}.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-13,.col-md-14,.col-md-15,.col-md-16,.col-md-17,.col-md-18,.col-md-19,.col-md-2,.col-md-20,.col-md-21,.col-md-22,.col-md-23,.col-md-24,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-1{width:4.1666666667%}.col-md-2{width:8.3333333333%}.col-md-3{width:12.5%}.col-md-4{width:16.6666666667%}.col-md-5{width:20.8333333333%}.col-md-6{width:25%}.col-md-7{width:29.1666666667%}.col-md-8{width:33.3333333333%}.col-md-9{width:37.5%}.col-md-10{width:41.6666666667%}.col-md-11{width:45.8333333333%}.col-md-12{width:50%}.col-md-13{width:54.1666666667%}.col-md-14{width:58.3333333333%}.col-md-15{width:62.5%}.col-md-16{width:66.6666666667%}.col-md-17{width:70.8333333333%}.col-md-18{width:75%}.col-md-19{width:79.1666666667%}.col-md-20{width:83.3333333333%}.col-md-21{width:87.5%}.col-md-22{width:91.6666666667%}.col-md-23{width:95.8333333333%}.col-md-24{width:100%}.col-md-pull-0{right:0}.col-md-pull-1{right:4.1666666667%}.col-md-pull-2{right:8.3333333333%}.col-md-pull-3{right:12.5%}.col-md-pull-4{right:16.6666666667%}.col-md-pull-5{right:20.8333333333%}.col-md-pull-6{right:25%}.col-md-pull-7{right:29.1666666667%}.col-md-pull-8{right:33.3333333333%}.col-md-pull-9{right:37.5%}.col-md-pull-10{right:41.6666666667%}.col-md-pull-11{right:45.8333333333%}.col-md-pull-12{right:50%}.col-md-pull-13{right:54.1666666667%}.col-md-pull-14{right:58.3333333333%}.col-md-pull-15{right:62.5%}.col-md-pull-16{right:66.6666666667%}.col-md-pull-17{right:70.8333333333%}.col-md-pull-18{right:75%}.col-md-pull-19{right:79.1666666667%}.col-md-pull-20{right:83.3333333333%}.col-md-pull-21{right:87.5%}.col-md-pull-22{right:91.6666666667%}.col-md-pull-23{right:95.8333333333%}.col-md-pull-24{right:100%}.col-md-push-0{left:0}.col-md-push-1{left:4.1666666667%}.col-md-push-2{left:8.3333333333%}.col-md-push-3{left:12.5%}.col-md-push-4{left:16.6666666667%}.col-md-push-5{left:20.8333333333%}.col-md-push-6{left:25%}.col-md-push-7{left:29.1666666667%}.col-md-push-8{left:33.3333333333%}.col-md-push-9{left:37.5%}.col-md-push-10{left:41.6666666667%}.col-md-push-11{left:45.8333333333%}.col-md-push-12{left:50%}.col-md-push-13{left:54.1666666667%}.col-md-push-14{left:58.3333333333%}.col-md-push-15{left:62.5%}.col-md-push-16{left:66.6666666667%}.col-md-push-17{left:70.8333333333%}.col-md-push-18{left:75%}.col-md-push-19{left:79.1666666667%}.col-md-push-20{left:83.3333333333%}.col-md-push-21{left:87.5%}.col-md-push-22{left:91.6666666667%}.col-md-push-23{left:95.8333333333%}.col-md-push-24{left:100%}.col-md-offset-0{margin-left:0}.col-md-offset-1{margin-left:4.1666666667%}.col-md-offset-2{margin-left:8.3333333333%}.col-md-offset-3{margin-left:12.5%}.col-md-offset-4{margin-left:16.6666666667%}.col-md-offset-5{margin-left:20.8333333333%}.col-md-offset-6{margin-left:25%}.col-md-offset-7{margin-left:29.1666666667%}.col-md-offset-8{margin-left:33.3333333333%}.col-md-offset-9{margin-left:37.5%}.col-md-offset-10{margin-left:41.6666666667%}.col-md-offset-11{margin-left:45.8333333333%}.col-md-offset-12{margin-left:50%}.col-md-offset-13{margin-left:54.1666666667%}.col-md-offset-14{margin-left:58.3333333333%}.col-md-offset-15{margin-left:62.5%}.col-md-offset-16{margin-left:66.6666666667%}.col-md-offset-17{margin-left:70.8333333333%}.col-md-offset-18{margin-left:75%}.col-md-offset-19{margin-left:79.1666666667%}.col-md-offset-20{margin-left:83.3333333333%}.col-md-offset-21{margin-left:87.5%}.col-md-offset-22{margin-left:91.6666666667%}.col-md-offset-23{margin-left:95.8333333333%}.col-md-offset-24{margin-left:100%}}@media (min-width:768px){.container{width:980px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-13,.col-lg-14,.col-lg-15,.col-lg-16,.col-lg-17,.col-lg-18,.col-lg-19,.col-lg-2,.col-lg-20,.col-lg-21,.col-lg-22,.col-lg-23,.col-lg-24,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-1{width:4.1666666667%}.col-lg-2{width:8.3333333333%}.col-lg-3{width:12.5%}.col-lg-4{width:16.6666666667%}.col-lg-5{width:20.8333333333%}.col-lg-6{width:25%}.col-lg-7{width:29.1666666667%}.col-lg-8{width:33.3333333333%}.col-lg-9{width:37.5%}.col-lg-10{width:41.6666666667%}.col-lg-11{width:45.8333333333%}.col-lg-12{width:50%}.col-lg-13{width:54.1666666667%}.col-lg-14{width:58.3333333333%}.col-lg-15{width:62.5%}.col-lg-16{width:66.6666666667%}.col-lg-17{width:70.8333333333%}.col-lg-18{width:75%}.col-lg-19{width:79.1666666667%}.col-lg-20{width:83.3333333333%}.col-lg-21{width:87.5%}.col-lg-22{width:91.6666666667%}.col-lg-23{width:95.8333333333%}.col-lg-24{width:100%}.col-lg-pull-0{right:0}.col-lg-pull-1{right:4.1666666667%}.col-lg-pull-2{right:8.3333333333%}.col-lg-pull-3{right:12.5%}.col-lg-pull-4{right:16.6666666667%}.col-lg-pull-5{right:20.8333333333%}.col-lg-pull-6{right:25%}.col-lg-pull-7{right:29.1666666667%}.col-lg-pull-8{right:33.3333333333%}.col-lg-pull-9{right:37.5%}.col-lg-pull-10{right:41.6666666667%}.col-lg-pull-11{right:45.8333333333%}.col-lg-pull-12{right:50%}.col-lg-pull-13{right:54.1666666667%}.col-lg-pull-14{right:58.3333333333%}.col-lg-pull-15{right:62.5%}.col-lg-pull-16{right:66.6666666667%}.col-lg-pull-17{right:70.8333333333%}.col-lg-pull-18{right:75%}.col-lg-pull-19{right:79.1666666667%}.col-lg-pull-20{right:83.3333333333%}.col-lg-pull-21{right:87.5%}.col-lg-pull-22{right:91.6666666667%}.col-lg-pull-23{right:95.8333333333%}.col-lg-pull-24{right:100%}.col-lg-push-0{left:0}.col-lg-push-1{left:4.1666666667%}.col-lg-push-2{left:8.3333333333%}.col-lg-push-3{left:12.5%}.col-lg-push-4{left:16.6666666667%}.col-lg-push-5{left:20.8333333333%}.col-lg-push-6{left:25%}.col-lg-push-7{left:29.1666666667%}.col-lg-push-8{left:33.3333333333%}.col-lg-push-9{left:37.5%}.col-lg-push-10{left:41.6666666667%}.col-lg-push-11{left:45.8333333333%}.col-lg-push-12{left:50%}.col-lg-push-13{left:54.1666666667%}.col-lg-push-14{left:58.3333333333%}.col-lg-push-15{left:62.5%}.col-lg-push-16{left:66.6666666667%}.col-lg-push-17{left:70.8333333333%}.col-lg-push-18{left:75%}.col-lg-push-19{left:79.1666666667%}.col-lg-push-20{left:83.3333333333%}.col-lg-push-21{left:87.5%}.col-lg-push-22{left:91.6666666667%}.col-lg-push-23{left:95.8333333333%}.col-lg-push-24{left:100%}.col-lg-offset-0{margin-left:0}.col-lg-offset-1{margin-left:4.1666666667%}.col-lg-offset-2{margin-left:8.3333333333%}.col-lg-offset-3{margin-left:12.5%}.col-lg-offset-4{margin-left:16.6666666667%}.col-lg-offset-5{margin-left:20.8333333333%}.col-lg-offset-6{margin-left:25%}.col-lg-offset-7{margin-left:29.1666666667%}.col-lg-offset-8{margin-left:33.3333333333%}.col-lg-offset-9{margin-left:37.5%}.col-lg-offset-10{margin-left:41.6666666667%}.col-lg-offset-11{margin-left:45.8333333333%}.col-lg-offset-12{margin-left:50%}.col-lg-offset-13{margin-left:54.1666666667%}.col-lg-offset-14{margin-left:58.3333333333%}.col-lg-offset-15{margin-left:62.5%}.col-lg-offset-16{margin-left:66.6666666667%}.col-lg-offset-17{margin-left:70.8333333333%}.col-lg-offset-18{margin-left:75%}.col-lg-offset-19{margin-left:79.1666666667%}.col-lg-offset-20{margin-left:83.3333333333%}.col-lg-offset-21{margin-left:87.5%}.col-lg-offset-22{margin-left:91.6666666667%}.col-lg-offset-23{margin-left:95.8333333333%}.col-lg-offset-24{margin-left:100%}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.428571429;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{float:none;display:table-column}table td[class*=col-],table th[class*=col-]{float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}@media (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}select[multiple],select[size]{height:auto}select optgroup{font-size:inherit;font-style:inherit;font-family:inherit}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}output{display:block;padding-top:7px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:6px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control:-moz-placeholder{color:#999}.form-control::-moz-placeholder{color:#999}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee}textarea.form-control{height:auto}.form-group{margin-bottom:15px}.checkbox,.radio{display:block;min-height:20px;margin-top:10px;margin-bottom:10px;padding-left:20px;vertical-align:middle}.checkbox label,.radio label{display:inline;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{float:left;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline[disabled],.checkbox[disabled],.radio-inline[disabled],.radio[disabled],fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox][disabled],input[type=radio][disabled]{cursor:not-allowed}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn,.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.input-group-sm>.input-group-btn>select.btn,.input-group-sm>select.form-control,.input-group-sm>select.input-group-addon,select.input-sm{height:30px;line-height:30px}.input-group-sm>.input-group-btn>textarea.btn,.input-group-sm>textarea.form-control,.input-group-sm>textarea.input-group-addon,textarea.input-sm{height:auto}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn,.input-lg{height:45px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.input-group-lg>.input-group-btn>select.btn,.input-group-lg>select.form-control,.input-group-lg>select.input-group-addon,select.input-lg{height:45px;line-height:45px}.input-group-lg>.input-group-btn>textarea.btn,.input-group-lg>textarea.form-control,.input-group-lg>textarea.input-group-addon,textarea.input-lg{height:auto}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline{color:#c09853}.has-warning .form-control{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #dbc59e}.has-warning .input-group-addon{color:#c09853;border-color:#c09853;background-color:#fcf8e3}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline{color:#b94a48}.has-error .form-control{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #d59392}.has-error .input-group-addon{color:#b94a48;border-color:#b94a48;background-color:#f2dede}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline{color:#468847}.has-success .form-control{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #7aba7b}.has-success .input-group-addon{color:#468847;border-color:#468847;background-color:#dff0d8}.form-control-static{margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group,.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control,.navbar-form .form-control{display:inline-block}.form-inline .checkbox,.form-inline .radio,.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio],.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{float:none;margin-left:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .form-group{margin-left:-10px;margin-right:-10px}.form-horizontal .form-group:after,.form-horizontal .form-group:before{content:" ";display:table}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-control-static{padding-top:7px}@media (min-width:768px){.form-horizontal .control-label{text-align:right}}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.428571429;border-radius:6px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover,.open .btn-default.dropdown-toggle{color:#333;background-color:#ebebeb;border-color:#adadad}.btn-default.active,.btn-default:active,.open .btn-default.dropdown-toggle{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open .btn-primary.dropdown-toggle{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary.active,.btn-primary:active,.open .btn-primary.dropdown-toggle{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#428bca;border-color:#357ebd}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.active,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open .btn-warning.dropdown-toggle{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open .btn-warning.dropdown-toggle{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.active,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open .btn-danger.dropdown-toggle{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open .btn-danger.dropdown-toggle{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover,.open .btn-success.dropdown-toggle{color:#fff;background-color:#47a447;border-color:#398439}.btn-success.active,.btn-success:active,.open .btn-success.dropdown-toggle{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.active,.btn-info:active,.btn-info:focus,.btn-info:hover,.open .btn-info.dropdown-toggle{color:#fff;background-color:#39b3d7;border-color:#269abc}.btn-info.active,.btn-info:active,.open .btn-info.dropdown-toggle{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-link{color:#428bca;font-weight:400;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#999;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-group-sm>.btn,.btn-group-xs>.btn,.btn-sm,.btn-xs{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;border-bottom:0 dotted}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:6px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.428571429;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#999}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.428571429;color:#999}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0 dotted;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}}.btn-default .caret{border-top-color:#333}.btn-danger .caret,.btn-info .caret,.btn-primary .caret,.btn-success .caret,.btn-warning .caret{border-top-color:#fff}.dropup .btn-default .caret{border-bottom-color:#333}.dropup .btn-danger .caret,.dropup .btn-info .caret,.dropup .btn-primary .caret,.dropup .btn-success .caret,.dropup .btn-warning .caret{border-bottom-color:#fff}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group-vertical>.btn:focus,.btn-group>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar:after,.btn-toolbar:before{content:" ";display:table}.btn-toolbar:after{clear:both}.btn-toolbar .btn-group{float:left}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn+.btn-group,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn-group+.btn-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group-lg.btn-group>.btn+.dropdown-toggle,.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-group-lg>.btn .caret,.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-group-lg>.btn .caret,.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before{content:" ";display:table}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:6px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:6px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child>.btn:last-child,.btn-group-vertical>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified .btn{float:none;display:table-cell;width:1%}[data-toggle=buttons]>.btn>input[type=checkbox],[data-toggle=buttons]>.btn>input[type=radio]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group.col{float:none;padding-left:0;padding-right:0}.input-group .form-control{width:100%;margin-bottom:0}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:6px}.input-group-addon.input-sm,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.input-group-addon.btn{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.input-group-addon.btn{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;white-space:nowrap}.input-group-btn:first-child>.btn{margin-right:-1px}.input-group-btn:last-child>.btn{margin-left:-1px}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-4px}.input-group-btn>.btn:active,.input-group-btn>.btn:hover{z-index:2}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav:after,.nav:before{content:" ";display:table}.nav:after{clear:both}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#999;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#428bca}.nav .open>a .caret,.nav .open>a:focus .caret,.nav .open>a:hover .caret{border-top-color:#2a6496;border-bottom-color:#2a6496}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.428571429;border:1px solid transparent;border-radius:6px 6px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:6px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#428bca}.nav-pills>li.active>a .caret,.nav-pills>li.active>a:focus .caret,.nav-pills>li.active>a:hover .caret{border-top-color:#fff;border-bottom-color:#fff}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified,.nav-tabs.nav-justified{width:100%}.nav-justified>li,.nav-tabs.nav-justified>li{float:none}.nav-justified>li>a,.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li,.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a,.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified,.nav-tabs.nav-justified{border-bottom:0}.nav-tabs-justified>li>a,.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:6px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a,.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:6px 6px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav .caret{border-top-color:#428bca;border-bottom-color:#428bca}.nav a:hover .caret{border-top-color:#2a6496;border-bottom-color:#2a6496}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}.navbar:after,.navbar:before{content:" ";display:table}.navbar:after{clear:both}@media (min-width:768px){.navbar{border-radius:6px}}.navbar-header:after,.navbar-header:before{content:" ";display:table}.navbar-header:after{clear:both}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{max-height:340px;overflow-x:visible;padding-right:10px;padding-left:10px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse:after,.navbar-collapse:before{content:" ";display:table}.navbar-collapse:after{clear:both}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:auto}.navbar-collapse .navbar-nav.navbar-left:first-child{margin-left:-10px}.navbar-collapse .navbar-nav.navbar-right:last-child{margin-right:-10px}.navbar-collapse .navbar-text:last-child{margin-right:0}}.container>.navbar-collapse,.container>.navbar-header{margin-right:-10px;margin-left:-10px}@media (min-width:768px){.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:15px 10px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}@media (min-width:768px){.navbar>.container .navbar-brand{margin-left:-10px}}.navbar-toggle{position:relative;float:right;margin-right:10px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;border:1px solid transparent;border-radius:6px}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -10px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{margin-left:-10px;margin-right:-10px;padding:10px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin-top:8px;margin-bottom:8px}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-nav.pull-right>li>.dropdown-menu,.navbar-nav>li>.dropdown-menu.pull-right{left:auto;right:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-text{float:left;margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{margin-left:10px;margin-right:10px}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#ccc}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.dropdown>a:focus .caret,.navbar-default .navbar-nav>.dropdown>a:hover .caret{border-top-color:#333;border-bottom-color:#333}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background-color:#e7e7e7;color:#555}.navbar-default .navbar-nav>.open>a .caret,.navbar-default .navbar-nav>.open>a:focus .caret,.navbar-default .navbar-nav>.open>a:hover .caret{border-top-color:#555;border-bottom-color:#555}.navbar-default .navbar-nav>.dropdown>a .caret{border-top-color:#777;border-bottom-color:#777}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-inverse{background-color:#222;border-color:#090909}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#090909}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{background-color:#090909;color:#fff}.navbar-inverse .navbar-nav>.dropdown>a:hover .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-nav>.dropdown>a .caret{border-top-color:#999;border-bottom-color:#999}.navbar-inverse .navbar-nav>.open>a .caret,.navbar-inverse .navbar-nav>.open>a:focus .caret,.navbar-inverse .navbar-nav>.open>a:hover .caret{border-top-color:#fff;border-bottom-color:#fff}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#090909}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#999}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#090909}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:6px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.breadcrumb>.active{color:#999}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:6px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.428571429;text-decoration:none;background-color:#fff;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{background-color:#eee}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca;cursor:default}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#999;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}.pager{padding-left:0;margin:20px 0;list-style:none;text-align:center}.pager:after,.pager:before{content:" ";display:table}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#999;background-color:#fff;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.label[href]:focus,.label[href]:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.label-default{background-color:#999}.label-default[href]:focus,.label-default[href]:hover{background-color:gray}.label-primary{background-color:#428bca}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;color:#fff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#999;border-radius:10px}.badge:empty{display:none}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.btn .badge{position:relative;top:-1px}.nav-pills>.active>a>.badge,a.list-group-item.active>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;font-size:21px;font-weight:200;line-height:2.1428571435;color:inherit;background-color:#eee}.jumbotron h1{line-height:1;color:inherit}.jumbotron p{line-height:1.4}.container .jumbotron{border-radius:6px}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-left:60px;padding-right:60px}.jumbotron h1{font-size:63px}}.thumbnail{display:block;margin-bottom:20px}.thumbnail>img{display:block;max-width:100%;height:auto;margin-left:auto;margin-right:auto}.thumbnail .caption{padding:9px;color:#333}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#428bca}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:6px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#468847}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#356635}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#3a87ad}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#2d6987}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#c09853}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#a47e3c}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#b94a48}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#953b39}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:20px;margin-bottom:20px;background-color:#f5f5f5;border-radius:6px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(.25,rgba(255,255,255,.15)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.15)),color-stop(.75,rgba(255,255,255,.15)),color-stop(.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(.25,rgba(255,255,255,.15)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.15)),color-stop(.75,rgba(255,255,255,.15)),color-stop(.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(.25,rgba(255,255,255,.15)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.15)),color-stop(.75,rgba(255,255,255,.15)),color-stop(.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(.25,rgba(255,255,255,.15)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.15)),color-stop(.75,rgba(255,255,255,.15)),color-stop(.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(.25,rgba(255,255,255,.15)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.15)),color-stop(.75,rgba(255,255,255,.15)),color-stop(.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:6px;border-top-left-radius:6px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:6px;border-bottom-left-radius:6px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{text-decoration:none;background-color:#f5f5f5}a.list-group-item.active,a.list-group-item.active:focus,a.list-group-item.active:hover{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}a.list-group-item.active .list-group-item-heading,a.list-group-item.active:focus .list-group-item-heading,a.list-group-item.active:hover .list-group-item-heading{color:inherit}a.list-group-item.active .list-group-item-text,a.list-group-item.active:focus .list-group-item-text,a.list-group-item.active:hover .list-group-item-text{color:#e1edf7}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:6px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-body:after,.panel-body:before{content:" ";display:table}.panel-body:after{clear:both}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0}.panel>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.list-group .list-group-item:last-child{border-bottom:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table,.panel>.table-responsive{margin-bottom:0}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:last-child>td,.panel>.table-bordered>thead>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:last-child>td,.panel>.table-responsive>.table-bordered>thead>tr:last-child>th{border-bottom:0}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:5px;border-top-left-radius:5px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.panel-group .panel{margin-bottom:0;border-radius:6px;overflow:hidden}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-heading>.dropdown .caret{border-color:#333 transparent}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#428bca}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#428bca}.panel-primary>.panel-heading>.dropdown .caret{border-color:#fff transparent}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading>.dropdown .caret{border-color:#468847 transparent}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#c09853;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading>.dropdown .caret{border-color:#c09853 transparent}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#b94a48;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading>.dropdown .caret{border-color:#b94a48 transparent}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ebccd1}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading>.dropdown .caret{border-color:#3a87ad transparent}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:6px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:auto;overflow-y:scroll;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{position:relative;margin-left:auto;margin-right:auto;width:auto;padding:10px;z-index:1050}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1030;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.428571429px}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.428571429}.modal-body{position:relative;padding:20px}.modal-footer{margin-top:15px;padding:19px 20px 20px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer:after,.modal-footer:before{content:" ";display:table}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media screen and (min-width:768px){.modal-dialog{width:600px;padding-top:30px;padding-bottom:30px}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}}.tooltip{position:absolute;z-index:1030;display:block;visibility:visible;font-size:12px;line-height:1.4;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:6px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;right:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px}.popover.top .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.25)}.popover.right .arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff}.popover.bottom .arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px}.popover.bottom .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left .arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{display:block;max-width:100%;height:auto;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:.5;filter:alpha(opacity=50);font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-control.left{background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.5) 0),color-stop(rgba(0,0,0,.0001) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{left:auto;right:0;background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.0001) 0),color-stop(rgba(0,0,0,.5) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:#000 \9;background-color:transparent}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicons-chevron-left,.carousel-control .glyphicons-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs,td.visible-lg,td.visible-md,td.visible-sm,td.visible-xs,th.visible-lg,th.visible-md,th.visible-sm,th.visible-xs,tr.visible-lg,tr.visible-md,tr.visible-sm,tr.visible-xs{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-xs.visible-sm{display:block!important}tr.visible-xs.visible-sm{display:table-row!important}td.visible-xs.visible-sm,th.visible-xs.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:767px){.visible-xs.visible-md{display:block!important}tr.visible-xs.visible-md{display:table-row!important}td.visible-xs.visible-md,th.visible-xs.visible-md{display:table-cell!important}}@media (min-width:768px){.visible-xs.visible-lg{display:block!important}tr.visible-xs.visible-lg{display:table-row!important}td.visible-xs.visible-lg,th.visible-xs.visible-lg{display:table-cell!important}}@media (max-width:767px){.visible-sm.visible-xs{display:block!important}tr.visible-sm.visible-xs{display:table-row!important}td.visible-sm.visible-xs,th.visible-sm.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:767px){.visible-sm.visible-md{display:block!important}tr.visible-sm.visible-md{display:table-row!important}td.visible-sm.visible-md,th.visible-sm.visible-md{display:table-cell!important}}@media (min-width:768px){.visible-sm.visible-lg{display:block!important}tr.visible-sm.visible-lg{display:table-row!important}td.visible-sm.visible-lg,th.visible-sm.visible-lg{display:table-cell!important}}@media (max-width:767px){.visible-md.visible-xs{display:block!important}tr.visible-md.visible-xs{display:table-row!important}td.visible-md.visible-xs,th.visible-md.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-md.visible-sm{display:block!important}tr.visible-md.visible-sm{display:table-row!important}td.visible-md.visible-sm,th.visible-md.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:767px){.visible-md{display:block!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:768px){.visible-md.visible-lg{display:block!important}tr.visible-md.visible-lg{display:table-row!important}td.visible-md.visible-lg,th.visible-md.visible-lg{display:table-cell!important}}@media (max-width:767px){.visible-lg.visible-xs{display:block!important}tr.visible-lg.visible-xs{display:table-row!important}td.visible-lg.visible-xs,th.visible-lg.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-lg.visible-sm{display:block!important}tr.visible-lg.visible-sm{display:table-row!important}td.visible-lg.visible-sm,th.visible-lg.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:767px){.visible-lg.visible-md{display:block!important}tr.visible-lg.visible-md{display:table-row!important}td.visible-lg.visible-md,th.visible-lg.visible-md{display:table-cell!important}}@media (min-width:768px){.visible-lg{display:block!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}.hidden-xs{display:block!important}tr.hidden-xs{display:table-row!important}td.hidden-xs,th.hidden-xs{display:table-cell!important}@media (max-width:767px){.hidden-xs,td.hidden-xs,th.hidden-xs,tr.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-xs.hidden-sm,td.hidden-xs.hidden-sm,th.hidden-xs.hidden-sm,tr.hidden-xs.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:767px){.hidden-xs.hidden-md,td.hidden-xs.hidden-md,th.hidden-xs.hidden-md,tr.hidden-xs.hidden-md{display:none!important}}@media (min-width:768px){.hidden-xs.hidden-lg,td.hidden-xs.hidden-lg,th.hidden-xs.hidden-lg,tr.hidden-xs.hidden-lg{display:none!important}}.hidden-sm{display:block!important}tr.hidden-sm{display:table-row!important}td.hidden-sm,th.hidden-sm{display:table-cell!important}@media (max-width:767px){.hidden-sm.hidden-xs,td.hidden-sm.hidden-xs,th.hidden-sm.hidden-xs,tr.hidden-sm.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm,td.hidden-sm,th.hidden-sm,tr.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:767px){.hidden-sm.hidden-md,td.hidden-sm.hidden-md,th.hidden-sm.hidden-md,tr.hidden-sm.hidden-md{display:none!important}}@media (min-width:768px){.hidden-sm.hidden-lg,td.hidden-sm.hidden-lg,th.hidden-sm.hidden-lg,tr.hidden-sm.hidden-lg{display:none!important}}.hidden-md{display:block!important}tr.hidden-md{display:table-row!important}td.hidden-md,th.hidden-md{display:table-cell!important}@media (max-width:767px){.hidden-md.hidden-xs,td.hidden-md.hidden-xs,th.hidden-md.hidden-xs,tr.hidden-md.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-md.hidden-sm,td.hidden-md.hidden-sm,th.hidden-md.hidden-sm,tr.hidden-md.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:767px){.hidden-md,td.hidden-md,th.hidden-md,tr.hidden-md{display:none!important}}@media (min-width:768px){.hidden-md.hidden-lg,td.hidden-md.hidden-lg,th.hidden-md.hidden-lg,tr.hidden-md.hidden-lg{display:none!important}}.hidden-lg{display:block!important}tr.hidden-lg{display:table-row!important}td.hidden-lg,th.hidden-lg{display:table-cell!important}@media (max-width:767px){.hidden-lg.hidden-xs,td.hidden-lg.hidden-xs,th.hidden-lg.hidden-xs,tr.hidden-lg.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-lg.hidden-sm,td.hidden-lg.hidden-sm,th.hidden-lg.hidden-sm,tr.hidden-lg.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:767px){.hidden-lg.hidden-md,td.hidden-lg.hidden-md,th.hidden-lg.hidden-md,tr.hidden-lg.hidden-md{display:none!important}}@media (min-width:768px){.hidden-lg,td.hidden-lg,th.hidden-lg,tr.hidden-lg{display:none!important}}.visible-print,td.visible-print,th.visible-print,tr.visible-print{display:none!important}@media print{.visible-print{display:block!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}.hidden-print,td.hidden-print,th.hidden-print,tr.hidden-print{display:none!important}}#sidebar-nav>li>a>i{background-color:#999;border-radius:100%;color:transparent;cursor:pointer;display:inline-block;font:0/0 Arial;height:12px;letter-spacing:0;padding:0;margin:0;position:absolute;top:8px;right:4px;vertical-align:middle;width:12px}#sidebar-nav>li>a>i:before{border:1px solid #fff;content:" ";display:block;height:0;left:50%;margin-left:-3px;margin-top:-1px;position:absolute;top:50%;width:6px}#sidebar-nav>li>a>i:after{border:1px solid #fff;content:" ";display:block;height:6px;left:50%;margin-left:-1px;margin-top:-3px;position:absolute;top:50%;width:0}#sidebar-nav>li>a.active>i:after{display:none}.css-sprite ul{height:24px;width:auto;margin:-5px 0 0}.css-sprite-amex,.css-sprite-discover,.css-sprite-mc,.css-sprite-visa,.css-sprite-visa-gift-card{background-image:url(//0.ecom.attccc.com/styles/att/assets3.2.0/images/cc-images-sprite.png?build_date=1429672365397);background-repeat:no-repeat;background-size:164px 48px;width:38px;height:24px;display:inline-block}@media \0screen\,screen\8{.css-sprite-amex,.css-sprite-discover,.css-sprite-mc,.css-sprite-visa,.css-sprite-visa-gift-card{background-image:url(//0.ecom.attccc.com/styles/att/assets3.2.0/images/cc-images-sprite-ie8.png?build_date=1429672365397)}}.css-sprite-mc{background-position:0 -24px}.css-sprite-visa{background-position:-42px -24px}.css-sprite-amex{background-position:-84px -24px}.css-sprite-discover{background-position:-126px -24px}.css-sprite-visa-gift-card{background-position:-168px -24px}.show-mc .css-sprite-mc{background-position:0 0}.show-visa .css-sprite-visa{background-position:-42px 0}.show-amex .css-sprite-amex{background-position:-84px 0}.show-discover .css-sprite-discover{background-position:-126px 0}.show-visa-gift-card .css-sprite-visa-gift-card{background-position:-168px 0}.cvc-amex img,.cvc-cc img{margin:10px -8px 0 0} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/btn.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/btn.css
deleted file mode 100644
index 9a1e2642..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/btn.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";address,blockquote,dd,h1,h2,h3,h4,h5,h6,ol,p,pre,table,ul{margin:0;padding:0;margin-bottom:24px;margin-bottom:1.5rem}html{font-size:1em;line-height:1.5}body{margin:0}h1{font-size:48px;font-size:3rem;line-height:1}h2{font-size:36px;font-size:2.25rem;line-height:1.3333333333}h3{font-size:30px;font-size:1.875rem;line-height:1.6}h4{font-size:24px;font-size:1.5rem;line-height:1}h5{font-size:20px;font-size:1.25rem;line-height:1.2}h6{font-size:18px;font-size:1.125rem;line-height:1.3333333333}dd,ol,ul{margin-left:48px;margin-left:3rem}li>ol,li>ul{margin-bottom:0}code,kbd,pre,samp{font-family:monospace,monospace}blockquote{text-indent:-.41em;quotes:"“" "â€";margin-left:48px;margin-left:3rem}blockquote p:before{content:"“";content:open-quote}blockquote p:after{content:"";content:no-close-quote}blockquote p:last-of-type:after{content:"â€";content:close-quote}q{quotes:"‘" "’" "“" "â€"}q:before{content:"‘";content:open-quote}q:after{content:"’";content:close-quote}q q:before{content:"“";content:open-quote}q q:after{content:"â€";content:close-quote}q:first-child{display:inline-block;text-indent:-.22em}table{width:100%;border-collapse:collapse;border-spacing:0}td,th{padding:12px}#grid{position:absolute;top:0;left:50%;width:980px;margin-left:-490px;counter-reset:section;z-index:9999!important;pointer-events:none;outline:1px solid rgba(0,206,209,.1)}#grid:after{position:fixed;top:0;left:0;content:'Column: 20px Gutter: 20px Margin: 20px';display:block;max-width:90px;padding:3px;background-color:#000;color:#fff;font-size:10px;font-family:monospace;z-index:9999}#grid div.vert{width:20px;outline:solid rgba(0,206,209,.3);outline-width:1px;margin-right:20px;position:relative;background:rgba(255,0,0,.05);counter-increment:section}#grid div.vert.first-line{margin-left:20px}#grid div.vert::after{position:fixed;display:block;text-align:center;color:#fff;width:20px;content:counter(section);top:5px;font-size:8px;font-family:monospace}#grid div.vert:nth-child(24){position:absolute;top:0;right:0}#grid div.vert:nth-child(1),#grid div.vert:nth-child(10),#grid div.vert:nth-child(11),#grid div.vert:nth-child(12),#grid div.vert:nth-child(13),#grid div.vert:nth-child(14),#grid div.vert:nth-child(15),#grid div.vert:nth-child(16),#grid div.vert:nth-child(17),#grid div.vert:nth-child(18),#grid div.vert:nth-child(19),#grid div.vert:nth-child(2),#grid div.vert:nth-child(20),#grid div.vert:nth-child(21),#grid div.vert:nth-child(22),#grid div.vert:nth-child(23),#grid div.vert:nth-child(24),#grid div.vert:nth-child(3),#grid div.vert:nth-child(4),#grid div.vert:nth-child(5),#grid div.vert:nth-child(6),#grid div.vert:nth-child(7),#grid div.vert:nth-child(8),#grid div.vert:nth-child(9){display:inline-block!important}#grid div.vert:nth-child(25),#grid div.vert:nth-child(26),#grid div.vert:nth-child(27),#grid div.vert:nth-child(28),#grid div.vert:nth-child(29),#grid div.vert:nth-child(30),#grid div.vert:nth-child(31){display:none!important}#grid div.horiz{height:10px;border-bottom:1px dotted rgba(100,100,100,.2);margin:0;padding:0}.bg-prime-blue{background-color:#067ab4}.bg-secondary-gray{background-color:#666}.bg-light-blue{background-color:#bcc9d5}.bg-dark-gray{background-color:#444}.bg-dusty-blue{background-color:#97b1cf}.bg-warm-gray{background-color:#cccb9b}.bg-taupe{background-color:#cccb6c}.bg-green-highlight{background-color:#c4d63f}.bg-lime-highlight{background-color:#dad632}.bg-purple-highlight{background-color:#b6539c}.bg-magenta{background-color:#d71481}.bg-blue-highlight{background-color:#4cc8f3}.bg-ochre{background-color:#fab230}.bg-green{background-color:#4fa721}.bg-lime{background-color:#b6bd26}.bg-purple{background-color:#7f0e7c}.bg-burgundy{background-color:#b1103e}.bg-dark-blue{background-color:#0e2875}.bg-gold{background-color:#fd9827}.bg-teal{background-color:#20c6b2}.bg-mint-green{background-color:#9cfecd}.bg-yellow{background-color:#feed35}.bg-white{background-color:#fff}.alt.inline-list>li{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;vertical-align:middle;float:none}.text-upper{text-transform:uppercase!important}body{font-family:arial}.font-showcase h1,.font-showcase h2,.font-showcase h3,.font-showcase h4,.font-showcase h5,.font-showcase h6{font-weight:100;letter-spacing:-1px;margin:10px 0;-webkit-font-smoothing:antialiased}.font-showcase h1{font-family:omnes_att_light;font-size:48px;font-size:3rem;line-height:48px}.font-showcase h2,.price{font-family:omnes_att_light;font-size:36px;font-size:2.25rem;line-height:36px}.font-showcase h3{font-family:arial;font-size:24px;font-size:1.5rem;line-height:28px}.font-showcase h4,.font-showcase h4.font-showcase-font-example,.font-showcase h4.font-showcase-font-name{font-family:arial;font-size:18px;font-size:1.125rem;line-height:22px;-webkit-font-smoothing:antialiased}.font-showcase h5{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.font-showcase h6{font-family:arial;font-size:11px;font-size:.6875rem;line-height:30px;font-weight:100;-webkit-font-smoothing:antialiased}.body-copy,.font-showcase p{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.body-copy-short{font-family:arial;font-size:12px;font-size:.75rem;line-height:15px;-webkit-font-smoothing:antialiased}p [class*=icon]{display:inline-block;vertical-align:middle;margin-top:-4px}.details-label{display:block;font-family:arial;font-size:11px;font-size:.6875rem;line-height:15px}.details-label+.price{line-height:28px}.price{letter-spacing:-1px;-webkit-font-smoothing:antialiased}.price sup{font-size:18px;font-size:1.125rem;vertical-align:baseline;top:-11px;margin:0 2px}.price-alt{font-size:24px;font-size:1.5rem;line-height:24px}.price-alt sup{font-size:12px;font-size:.75rem;top:-8px}.promo-tagline{font-family:omnes_att_medium_italic;font-size:16px;font-size:1rem;line-height:20px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.promo-text{font-family:clearview_att_italic;font-size:12px;font-size:.75rem;line-height:15px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.divider,.divider-dark,hr{border:0;border-bottom:1px solid #d3d3d3}.divider-light{border-color:#e5e5e5}dl{font-family:arial;color:#444;font-size:12px;font-size:.75rem}dt{font-family:arial;font-size:11px;font-size:.6875rem;display:block!important;margin:10px 0 5px!important;width:auto!important;text-transform:uppercase}dt a{font-family:arial;color:#067ab4;text-transform:none}dd{display:inline!important;line-height:20px}[data-highlight]{background-color:#c9e9f9;-webkit-animation:highlight-fade 3s infinite}@-webkit-keyframes highlight-fade{100%,80%{background-color:transparent}}.button--group{vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;display:inline-block;margin-bottom:20px}.button--group .btn{margin-bottom:10px}.bg-light-gray .button,.button{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color .3s ease-out;-moz-transition:background-color .3s ease-out;transition:background-color .3s ease-out;font-size:18px;font-size:1.125rem;vertical-align:middle;line-height:1;text-align:center;cursor:pointer;padding:11px 30px;background-color:#888;color:#f2f2f2;border-radius:6px;position:relative;border:0;text-decoration:none;letter-spacing:0;font-family:}.bg-light-gray .button:hover,.button:hover{background-color:#666;color:#f2f2f2}.bg-light-gray .button:focus,.button:focus{outline:1px solid #39b1ec!important;outline-offset:2px;text-decoration:none}.bg-light-gray .button:active,.button:active{-webkit-transition:background-color 0;-moz-transition:background-color 0;transition:background-color 0;background-color:#bbb;box-shadow:none;color:#f2f2f2}.bg-light-gray .button:visited,.button:visited{color:#fff}.lt-ie9 .bg-light-gray .button,.lt-ie9 .button{min-width:64px}.bg-light-gray .button [class*=icon-],.button [class*=icon-]{display:inline-block;vertical-align:middle}.button--small,[class*=bg-] .button--small{font-size:14px;font-size:.875rem;height:30px;padding:8px 20px}.lt-ie9 .button--small,.lt-ie9 [class*=bg-] .button--small{min-width:85px}.button--disabled,.button:disabled,.button[disabled]{background-color:#d3d3d3;color:#888!important;pointer-events:none;cursor:not-allowed!important}.buttons-dropdown--large .button--disabled,.buttons-dropdown--small .button--disabled{cursor:not-allowed!important;pointer-events:all!important;background-color:#d3d3d3!important}.button--square{border-radius:0;padding-left:15px;padding-right:15px}.button--primary{background-color:#0574AC!important;min-width:100px}.button--primary:hover{background-color:#0091d9!important}.button--primary:active{background-color:#44c8f5!important;color:#fff}.button--primary:focus{color:#fff}.bg-prime-blue .button.button--primary{background-color:#fafafa!important;color:#067ab4;min-width:100px}.bg-prime-blue .button.button--primary:hover{background-color:#CAE0EB!important;color:#067ab4}.bg-prime-blue .button.button--primary:active{background-color:#1792D6!important;color:#fff}.bg-prime-blue .button.button--primary.button--inactive,.bg-prime-blue .button.button--primary:disabled{background-color:#d3d3d3!important;color:#888;cursor:not-allowed!important}.bg-prime-blue .button.button--primary:focus{outline:1px solid #99C4D9!important;outline-offset:2px}.button.button--secondary{background:#fff;border:1px solid #157BB2;color:#067ab4}.button.button--secondary:hover{background:#F7F7F7;border-color:#0091d9;color:#0091d9}.button.button--secondary:active{background:#E5E5E5;border-color:#0574AC;color:#0574AC}.button--hero{background-color:#ef6f00!important;min-width:100px!important;height:40px;overflow:hidden}.button--hero .button--hero__inner{height:60px;-webkit-transition:width 1s,height 1s,-webkit-transform .2s;-moz-transition:width 1s,height 1s,-moz-transform .2s}.button--hero .button--hero__inner [class*=icon-]{line-height:40px;display:block}.button--hero:hover>.button--hero__inner{-webkit-transform:translate(0px,-29px);-moz-transform:translate(0px,-29px);transform:translate(0px,-29px)}.button--hero:active>.button--hero__inner{-webkit-transform:translate(0px,0);-moz-transform:translate(0px,0);transform:translate(0px,0)}.button--hero:hover{background-color:#ef6f00!important}.button--hero:active{background-color:#fcb314!important;color:#fff}.button--hero:focus{color:#fff}.bg-secondary-gray .button.button--secondary:focus{outline:1px solid #BDBDBD!important;outline-offset:2px}.bg-secondary-gray .button.button--secondary:disabled{color:#f2f2f2}.button--icon{font-size:14px;font-size:.875rem;width:30px;height:30px;border-radius:50%;font-family:atticons;line-height:30px;min-width:0;padding:0}.button--icon [class^=icon-]{vertical-align:baseline}.button--large.button--icon{font-size:28px;font-size:1.75rem;width:40px;height:40px;line-height:40px}.button--inactive{background-color:#ddd!important;color:#999!important;cursor:not-allowed!important;min-width:100px}.bg-secondary-gray .button{background-color:#fff}.bg-secondary-gray .button:hover{background-color:#F7F7F7}.bg-secondary-gray .button.button--inactive,.bg-secondary-gray .button:active,.bg-secondary-gray .button:disabled{background-color:#E5E5E5;cursor:not-allowed;pointer-events:all}.bg-light-blue .button{background-color:#626870}.bg-light-blue .button:hover{background-color:#8a939c}.bg-light-blue .button.button--inactive,.bg-light-blue .button:active,.bg-light-blue .button:disabled{background-color:#d7dfe6;cursor:not-allowed;pointer-events:all}.bg-dark-gray .button{background-color:#fff}.bg-dark-gray .button:hover{background-color:#f4f4f4}.bg-dark-gray .button.button--inactive,.bg-dark-gray .button:active,.bg-dark-gray .button:disabled{background-color:#E5E5E5;cursor:not-allowed;pointer-events:all}.bg-dusty-blue .button{background-color:#4e5c6b}.bg-dusty-blue .button:hover{background-color:#6f8298}.bg-dusty-blue .button.button--inactive,.bg-dusty-blue .button:active,.bg-dusty-blue .button:disabled{background-color:#c0d0e2;cursor:not-allowed;pointer-events:all}.bg-warm-gray .button{background-color:#6a6950}.bg-warm-gray .button:hover{background-color:#969572}.bg-warm-gray .button.button--inactive,.bg-warm-gray .button:active,.bg-warm-gray .button:disabled{background-color:#e0dfc3;cursor:not-allowed;pointer-events:all}.bg-taupe .button{background-color:#6a6938}.bg-taupe .button:hover{background-color:#96954f}.bg-taupe .button.button--inactive,.bg-taupe .button:active,.bg-taupe .button:disabled{background-color:#e0dfa6;cursor:not-allowed;pointer-events:all}.bg-green-highlight .button{background-color:#666f20}.bg-green-highlight .button:hover{background-color:#909c2e}.bg-green-highlight .button.button--inactive,.bg-green-highlight .button:active,.bg-green-highlight .button:disabled{background-color:#dce787;cursor:not-allowed;pointer-events:all}.bg-lime-highlight .button{background-color:#726f17}.bg-lime-highlight .button:hover{background-color:#a19c23}.bg-lime-highlight .button.button--inactive,.bg-lime-highlight .button:active,.bg-lime-highlight .button:disabled{background-color:#e9e678;cursor:not-allowed;pointer-events:all}.bg-purple-highlight .button{background-color:#49213e}.bg-purple-highlight .button:hover{background-color:#7a3768}.bg-purple-highlight .button.button--inactive,.bg-purple-highlight .button:active,.bg-purple-highlight .button:disabled{background-color:#d397c4;cursor:not-allowed;pointer-events:all}.bg-magenta .button{background-color:#560333}.bg-magenta .button:hover{background-color:#8f0956}.bg-magenta .button.button--inactive,.bg-magenta .button:active,.bg-magenta .button:disabled{background-color:#eb82bf;cursor:not-allowed;pointer-events:all}.bg-blue-highlight .button{background-color:#27687e}.bg-blue-highlight .button:hover{background-color:#3893b2}.bg-blue-highlight .button.button--inactive,.bg-blue-highlight .button:active,.bg-blue-highlight .button:disabled{background-color:#92def7;cursor:not-allowed;pointer-events:all}.bg-ochre .button{background-color:#825c17}.bg-ochre .button:hover{background-color:#b88222}.bg-ochre .button.button--inactive,.bg-ochre .button:active,.bg-ochre .button:disabled{background-color:#fcd079;cursor:not-allowed;pointer-events:all}.bg-green .button{background-color:#1f430a}.bg-green .button:hover{background-color:#357014}.bg-green .button.button--inactive,.bg-green .button:active,.bg-green .button:disabled{background-color:#96c278;cursor:not-allowed;pointer-events:all}.bg-lime .button{background-color:#5f620f}.bg-lime .button:hover{background-color:#797e16}.bg-lime .button.button--inactive,.bg-lime .button:active,.bg-lime .button:disabled{background-color:#cacd74;cursor:not-allowed;pointer-events:all}.bg-purple .button{background-color:#c149be}.bg-purple .button:hover{background-color:#d259cf}.bg-purple .button.button--inactive,.bg-purple .button:active,.bg-purple .button:disabled{background-color:#ae71ad;cursor:not-allowed;pointer-events:all}.bg-burgundy .button{background-color:#e84575}.bg-burgundy .button:hover{background-color:#f65383}.bg-burgundy .button.button--inactive,.bg-burgundy .button:active,.bg-burgundy .button:disabled{background-color:#c6758d;cursor:not-allowed;pointer-events:all}.bg-dark-blue .button{background-color:#5b75c2}.bg-dark-blue .button:hover{background-color:#6e88d5}.bg-dark-blue .button.button--inactive,.bg-dark-blue .button:active,.bg-dark-blue .button:disabled{background-color:#7582a8;cursor:not-allowed;pointer-events:all}.bg-gold .button{background-color:#844e0f}.bg-gold .button:hover{background-color:#a96517}.bg-gold .button.button--inactive,.bg-gold .button:active,.bg-gold .button:disabled{background-color:#edba74;cursor:not-allowed;pointer-events:all}.bg-teal .button{background-color:#0b685c}.bg-teal .button:hover{background-color:#159183}.bg-teal .button.button--inactive,.bg-teal .button:active,.bg-teal .button:disabled{background-color:#1aab9a;cursor:not-allowed;pointer-events:all}.bg-mint-green .button{background-color:#51846a}.bg-mint-green .button:hover{background-color:#72ba97}.bg-mint-green .button.button--inactive,.bg-mint-green .button:active,.bg-mint-green .button:disabled{background-color:#88dcb2;cursor:not-allowed;pointer-events:all}.bg-yellow .button{background-color:#847c17}.bg-yellow .button:hover{background-color:#baae24}.bg-yellow .button.button--inactive,.bg-yellow .button:active,.bg-yellow .button:disabled{background-color:#dccd2c;cursor:not-allowed;pointer-events:all}.button--bordered{border:1px solid #d4d4d4}.button__scroll-top-right{position:fixed;top:50%;right:-50px;background:#f2f2f2;border:1px solid #888;border-radius:2px;color:#444;cursor:pointer;padding:7px 58px 7px 11px;z-index:3}.csstransitions .button__scroll-top-right{-webkit-transition:right .3s ease-out;-moz-transition:right .3s ease-out;transition:right .3s ease-out;right:-50px}.button__scroll-top-right.visible{right:20px}.button__scroll-top-right:hover{background:#b2b2b2;color:#000}.button__scroll-top-right:active{background:#0574AC;color:#fff}.button__scroll-top-right .icon-arrow-double-right{-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);font-size:14px}.button__scroll-top{background:#f2f2f2;border:1px solid #888;border-radius:2px;color:#444;cursor:pointer;padding:7px 9px;z-index:3}.csstransitions .button__scroll-top{-webkit-transition:right .3s ease-out;-moz-transition:right .3s ease-out;transition:right .3s ease-out;right:-50px}.button__scroll-top.visible{right:20px}.button__scroll-top:hover{background:#b2b2b2;color:#000}.button__scroll-top:active{background:#0574AC;color:#fff}.button__scroll-top .icon-arrow-double-right{-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);font-size:14px}.button--danger{background-color:#ff6151!important}.button--danger:focus,.button--danger:hover{background-color:#eb4539!important}.button--light,.button--light:focus,.button--light:hover{background-color:#fff!important;color:#666}.button.button--link,[class^=bg-] .button.button--link{background:none!important;min-width:0;padding-left:10px;padding-right:10px}.button--loading{display:inline-block;width:100%}.button--loading i{-webkit-animation-name:loading-item;-webkit-animation-duration:1s;-webkit-animation-timing-function:ease-out;-webkit-animation-iteration-count:infinite;-webkit-transform:scale(0,0);-moz-animation-name:loading-item;-moz-animation-duration:1s;-moz-animation-timing-function:ease-out;-moz-animation-iteration-count:infinite;-moz-transform:scale(0,0);animation-name:loading-item;animation-duration:1s;animation-timing-function:ease-out;animation-iteration-count:infinite;transform:scale(0,0);width:8px;height:8px;background:#000;border-radius:50%;float:right;margin-right:6px}.button--loading__small i{-webkit-animation-name:loading-item;-webkit-animation-duration:1s;-webkit-animation-timing-function:ease-out;-webkit-animation-iteration-count:infinite;-webkit-transform:scale(0,0);-moz-animation-name:loading-item;-moz-animation-duration:1s;-moz-animation-timing-function:ease-out;-moz-animation-iteration-count:infinite;-moz-transform:scale(0,0);animation-name:loading-item;animation-duration:1s;animation-timing-function:ease-out;animation-iteration-count:infinite;transform:scale(0,0);width:5px;height:5px;background:#000;border-radius:50%;float:right;margin-right:4px}@-webkit-keyframes loading-item{0%{-webkit-transform:scale(1,1);-moz-transform:scale(1,1);transform:scale(1,1)}20%{-webkit-transform:scale(0.8,.8);-moz-transform:scale(0.8,.8);transform:scale(0.8,.8)}40%,60%{-webkit-transform:scale(0.6,.6);-moz-transform:scale(0.6,.6);transform:scale(0.6,.6)}80%{-webkit-transform:scale(0.8,.8);-moz-transform:scale(0.8,.8);transform:scale(0.8,.8)}100%{-webkit-transform:scale(1,1);-moz-transform:scale(1,1);transform:scale(1,1)}}i:nth-child(3){-webkit-animation-delay:.8s;-moz-animation-delay:.8s;animation-delay:.8s}i:nth-child(2){-webkit-animation-delay:1s;-moz-animation-delay:1s;animation-delay:1s}i:nth-child(1){-webkit-animation-delay:1.2s;-moz-animation-delay:1.2s;animation-delay:1.2s;margin-right:0}.button-secondary,.button.button-secondary{background-color:#666;color:#f2f2f2}.button-secondary:hover,.button.button-secondary:hover{background-color:#888;color:#f2f2f2}.button-secondary:focus,.button.button-secondary:focus{outline:1px solid #d3d3d3;outline-offset:2px;color:#f2f2f2}.button-secondary:active,.button.button-secondary:active{background-color:#666;color:#f2f2f2}.button-secondary:disabled,.button.button-secondary:disabled{background-color:#d3d3d3;color:#888}.buttons-dropdown--large a{font-size:18px;font-size:1.125rem}.buttons-dropdown--large .buttons-dropdown__split{min-width:inherit;padding:11px 29px}.buttons-dropdown--large .buttons-dropdown__drop{padding:11px 12px;min-width:34px;margin-left:1px!important}.buttons-dropdown--large .buttons-dropdown__drop:after{content:"\e6bf";font-family:atticons;font-size:10px;font-size:.625rem}.buttons-dropdown--large ul{min-width:inherit;top:0;left:100%;margin-left:-34px;margin-top:0;border-top-left-radius:0;overflow:hidden;padding:0;border:1px solid #0091d9}.buttons-dropdown--large ul li{text-align:left}.buttons-dropdown--large ul li a{color:#666;padding:10px;font-size:14px;font-size:.875rem;background:#fff}.buttons-dropdown--large ul li a:hover{background-color:#0091d9;color:#f2f2f2}.buttons-dropdown--small a{font-size:14px;font-size:.875rem;font-size:14px}.buttons-dropdown--small .buttons-dropdown__split{min-width:inherit;padding:8px 20px}.buttons-dropdown--small .buttons-dropdown__drop{padding:8px 12px;min-width:34px;margin-left:1px!important}.buttons-dropdown--small .buttons-dropdown__drop:after{content:"\e6bf";font-family:atticons;font-size:10px;font-size:.625rem}.buttons-dropdown--small ul{min-width:inherit;top:0;left:100%;margin-left:-34px;margin-top:0;border-top-left-radius:0;overflow:hidden;padding:0;border:1px solid #0091d9}.buttons-dropdown--small ul li{text-align:left}.buttons-dropdown--small ul li a{color:#666;padding:6px 10px;font-size:12px;font-size:.75rem;background:#fff}.buttons-dropdown--small ul li a:hover{background-color:#0091d9;color:#f2f2f2}.buttons-dropdown--large .button--secondary.buttons-dropdown__drop,.buttons-dropdown--small .button--secondary.buttons-dropdown__drop{margin-left:-1px!important}.action-dropdown-link,.buttons-dropdown--large.action-dropdown.open a,.buttons-dropdown--small.action-dropdown.open a{border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom-color:#AAA;z-index:2}.action-dropdown-list,.buttons-dropdown--large.action-dropdown.open ul,.buttons-dropdown--small.action-dropdown.open ul{border-top-left-radius:6px;border-top-right-radius:0;z-index:1}.buttons-dropdown--small.action-dropdown.open a.buttons-dropdown__drop:after{content:'\e6be'}.buttons-dropdown--small.action-dropdown.open ul{margin-left:-118px;margin-left:-117px\9;margin-top:29px;min-width:118px}.buttons-dropdown--large.action-dropdown.open a.buttons-dropdown__drop:after{content:'\e6be'}.buttons-dropdown--large.action-dropdown.open ul{margin-left:-133px;margin-left:-132px\9;margin-top:41px}.buttons-dropdown--large.action-dropdown a.buttons-dropdown__drop.button--primary{border:1px solid #157bb2}.att-btn-dropdown .btn-group{width:53px;min-width:53px;height:30px;min-height:30px}.att-btn-dropdown .dropdown-menu{border-top-right-radius:0;border-top-left-radius:6px}.att-btn-dropdown ul{min-width:130px;top:29px}.att-btn-dropdown ul li{color:#067AB4}.att-btn-dropdown ul li:focus,.att-btn-dropdown ul li:hover{color:#fff;background-color:#067AB4;cursor:pointer}.att-btn-dropdown ul.dots-dropdwn{left:-45px}.att-btn-dropdown ul.actions-dropdwn{left:3px}.att-btn-dropdown .button.button--secondary,.att-btn-dropdown .buttons-dropdown__drop button{color:#067ab4}.att-btn-dropdown button.button.button--secondary.button--small.buttons-dropdown__drop.dropdown-toggle.actions-title{min-width:100px}.att-btn-dropdown div.open .buttons-dropdown__drop:after{content:"\e6be";color:#067AB4}.att-btn-dropdown div.open button{border-bottom-left-radius:0;border-bottom-right-radius:0}.att-btn-dropdown div.open .circle{background:#067AB4}.att-btn-dropdown .circle{background:#067ab4;border-radius:50%;width:3px;height:3px;display:inline-block;margin-left:1px;margin-bottom:1px;margin-top:5px;float:left}.att-btn-dropdown div.circle:nth-child(1){margin-left:0}.att-btn-dropdown div.circle:nth-child(3){margin-right:3px}.expand-line-container{background-color:#fff;float:left;height:30px;position:relative;border-bottom:1px solid #aaa;border-top:1px solid #aaa}.expand-line-container .vertical-line{width:0;float:left;height:20px;margin-top:4px;border-left:1px solid #067AB4}.expand-line-container-active{background-color:#fff;float:left;height:30px;position:relative;border-bottom:1px solid #057ab4;border-top:1px solid #057ab4}.expand-line-container-active .hovered-line{width:0;float:left;height:29px;margin-top:0;border-left:1px solid #057ab4}.split-icon-button-container{position:relative;text-align:initial}.split-icon-button-container .selected-item{background-color:#0091d9!important;color:#f2f2f2!important}.split-icon-button-container .split-icon-button{background-color:#fff;border:1px solid #067AB4;border-radius:3px;float:left;height:30px;width:34px;cursor:pointer}.split-icon-button-container .split-icon-button a{font-size:15px;margin-left:7px;position:relative;top:8px;color:#067AB4}.split-icon-button-container .split-icon-button-middle{border-radius:0;border-left:0;border-right:0}.split-icon-button-container .split-icon-button-left{border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.split-icon-button-container .split-icon-button-right{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.split-icon-button-container .split-icon-button-next-dropdown{border-radius:0;border-left:0;border-right:0;border-bottom-color:#067AB4}.split-icon-button-container .split-icon-button-left-dropdown{border-bottom-color:#057ab4}.split-icon-button-container .split-icon-button-dropdown{border-bottom-right-radius:0;border-bottom-left-radius:0;border-top:1px solid #067AB4;border-right:1px solid #067AB4;border-bottom:0}.split-icon-button-container .icon-with-chevron{width:45px}.split-icon-button-container .icon-dropdown-down,.split-icon-button-container .icon-dropdown-up{font-size:12px;position:relative;top:5px;right:2px;color:#067AB4}.split-icon-button-container .dropdown-menu{position:absolute;top:28px;left:-36px;display:block;min-width:80px;width:80px;border-top-right-radius:0;border-top:0;border-color:#067AB4;overflow:hidden;padding-top:0;padding-bottom:0}.split-icon-button-container .dropdown-menu li{font-family:arial;font-size:12px;color:#666;line-height:30px;margin-left:0}.split-icon-button-container .dropdown-menu li a{color:#666;padding:6px 10px;background:#fff;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:30px;font-family:arial;white-space:nowrap;display:block}.split-icon-button-container .dropdown-menu li a:hover{background-color:#0091d9;color:#f2f2f2} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/demo.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/demo.css
deleted file mode 100644
index 38519d21..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/demo.css
+++ /dev/null
@@ -1,2 +0,0 @@
-/* AT&T Style Guide Styles */
-.editTNModal{width:624px \9!important;margin:5% auto}.editTNModal .button--disabled,.editTNModal .button--disabled:active,.editTNModal .button--disabled:hover{background-color:#d3d3d3!important}.editTNModal h2{font-weight:400;line-height:36px}.editTNModal h6{line-height:15px;font-size:12px;font-family:arial;font-weight:400;margin-bottom:3px}.editTNModal label{font-size:11px;font-family:arial;margin-bottom:0;font-weight:400}.editTNModal .icon-circle-action-close{font-size:28px}.editTNModal .saveTNs-container button{margin-left:10px}.editTNModal .middleBlock{margin-top:89px}.editTNModal .editSettings{width:85% \9}.editTNModal .editSettings label{font-family:omnes_att_bold}.editTNModal .editSettings .ng-isolate-scope{position:relative}.editTNModal .editSettings .save-cnam-lidb button{margin-left:10px}.editTNModal .editSettings .col-md-16{width:68% \9}.editTNModal .size-threefourth{width:75%}.editTNModal .alt-rows{height:293px;background:#fff;border:1px solid #BBB;margin-left:0;border-radius:5px;overflow-x:hidden;overflow-y:auto}.editTNModal .alt-rows li.even{background-color:#f2f2f2}.editTNModal .alt-rows li.item-selected{background-color:#0091d9}.editTNModal .alt-rows li.item-selected a{color:#fff}.editTNModal .alt-rows li a{display:block;padding:11px 0 11px 10px;font-size:12px;color:#444;line-height:15px}.editTNModal .alt-rows li a:focus{text-decoration:none}.editTNModal .alt-rows .scroll-viewport{height:100%}.editTNModal .leftBlock button,.editTNModal .rightBlock button{min-width:100%!important;padding:8px 10px;width:100%;margin-left:-1px}.editTNModal .leftBlock .form-field input[type=text],.editTNModal .rightBlock .form-field input[type=text]{border-radius:6px 0 0 6px}.editTNModal .middleBlock button{width:110px}.editTNModal .newCNAM span.text-right{display:block;font-size:11px}.margin-bottom20{margin-bottom:20px}.margin-bottom10{margin-bottom:10px}.margin-bottom30{margin-bottom:30px}.margin-bottom40{margin-bottom:40px}.margin-bottom80{margin-bottom:80px}.drawer{margin-left:20%;margin-right:20%}.drawer .title{font-family:arial;font-size:36px;margin:0;border-top:26px solid #fff}.drawer .containerContent{font-family:arial;font-size:14px;margin:0;margin-top:20px;margin-bottom:25px}.drawer .smallText{font-family:arial;font-size:12px;margin:0;margin-bottom:7px}.drawer .textCount{font-family:arial;font-size:12px;text-align:right;margin-right:42%}.drawer .cancelButton{background-color:#000}.drawer .datepicker1{width:200px;height:40px;margin:0;margin-bottom:5px}.att-drawer{background-color:#fff;box-shadow:0 4px 5px rgba(0,0,0,.2),inset 0 1px rgba(0,0,0,.3);-webkit-box-shadow:0 4px 5px rgba(0,0,0,.2),inset 0 1px rgba(0,0,0,.3);-moz-box-shadow:0 4px 5px rgba(0,0,0,.2),inset 0 1px rgba(0,0,0,.3)}.drawer-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(255,255,255,.6);z-index:999}#divider-lines .divider-container{padding:20px 40px;background:#f2f2f2}#divider-lines .divider-container-light{background-color:#fff}#tooltips-and-hints .att-tooltip{z-index:0;margin:0}.popover-packages.att-tooltip{border:0;padding:0}.popover-packages__container{background:#fff}.popover-packages__header{background:#0574ac;height:150px;padding:50px;position:relative;text-align:center;width:100%}.popover-packages__header h3{color:#fff;margin:0}.popover-packages__text-block{background:0 0;overflow:hidden;padding:50px}.popover-packages__text-block-row{float:left;width:100%}.text-block-row__title{float:left;margin-bottom:10px;width:auto}.text-block-row__info{float:right;margin-bottom:10px;width:auto}.popover-packages__text-block-price{float:left;margin-top:30px;width:100%}.text-block-price__title{float:left;font-family:arial;margin-bottom:10px;width:auto}.text-block-price__price{float:right;margin-bottom:10px;position:relative;width:auto}pre.code-preview{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:6px}.popover-demo-container [data-preview-element]{height:auto}.popover-demo{position:relative}.popover-demo.att-popover{max-width:320px}.popover-demo .att-popover-content{display:block!important}.popover-demo .popover-packages__container{background:0 0}.popover-demo .popover-packages__container p{color:#444}.popover-demo .popover-packages__text-block{padding:5px 0 0}.popover-demo .popover-packages__text-block-row p{font-size:12px}.popover-demo hr{border-bottom:1px solid #b2b2b2;margin:10px 0 25px}.price--large{font-size:2.25rem;font-family:omnes_att_light;line-height:36px;word-spacing:2px;letter-spacing:-1px}.price--large sup{font-size:1.125rem;line-height:22px;letter-spacing:0;font-family:omnes_att_light;margin:0 2px;top:-11px;vertical-align:baseline}.price--large sup:nth-child(2):before{clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);content:'.';display:inline;height:1px;overflow:hidden;position:absolute;width:1px}.bg-standard{background-color:#f2f2f2}.margin-top{margin-top:10px} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/dtpk.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/dtpk.css
deleted file mode 100644
index eb03f79b..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/dtpk.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Datepicker for Bootstrap
- *
- * Copyright 2012 Stefan Petre
- * Improvements by Andrew Rowls
- * Licensed under the Apache License v2.0
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- */.jshook-return-focus-here{display:block}.datepicker table tr td.days.range.from .day,.datepicker table tr td.days.range.to .day,.range-inherit{color:#fff;background-color:#067ab4}.greyBorder{border-top:solid 1px #d3d3d3}.datepicker{background-color:#fff;padding:0;border-radius:5px;direction:ltr;outline:0;margin:0;width:300px}.datepicker.datepicker-rtl{direction:rtl}.datepicker .weekday{height:21px;margin:0 auto;font-family:arial;font-size:14px;line-height:20px;color:#444}.datepicker .icons-list{margin-top:0;cursor:pointer}.datepicker .icons-list .disabled{color:#d3d3d3;cursor:default}.datepicker table{padding:16px 10px;border-spacing:0;border-collapse:separate;font-family:arial;width:auto;margin:0}.datepicker table th.datepicker-switch{width:198px;font-size:14px;font-weight:400;line-height:20px;padding-bottom:13px;font-family:arial;color:#444;cursor:default!important}.datepicker table th.datepicker-switch.internal{padding-bottom:5px}.datepicker table tr td.days{background-color:#fff;color:#444;font-size:14px;width:32px;text-align:center;overflow:hidden}.datepicker table tr td.days.weekend{background-color:#f2f2f2}.datepicker table tr td.days.weekend.disabled .day:hover{background-color:#f2f2f2!important}.datepicker table tr td.days.disabled{color:#d3d3d3}.datepicker table tr td.days.disabled .day:hover{background-color:#fff;color:#d3d3d3;outline:0;cursor:default}.datepicker table tr td.days .day{width:30px;height:29;display:block;line-height:28px;border-radius:100%}.datepicker table tr td.days .day:hover{background-color:#bbb;color:#444;cursor:pointer;outline:2px solid #bbb;outline-offset:2px;-moz-outline-radius:100%}.datepicker table tr td.days.active{background-color:#067ab4;color:#fff;border-radius:100%}.datepicker table tr td.days.active .day:hover{cursor:default}.datepicker table tr td.days.range{background-color:#44c8f5}.datepicker table tr td.days.range.from{border-radius:20px 0 0 20px}.datepicker table tr td.days.range.from .day:hover{cursor:default}.datepicker table tr td.days.range.to{border-radius:0 20px 20px 0}.datepicker table tr td.days.range.to .day:hover{cursor:default}.datepicker table tr td.days.range .day{color:#444}.datepicker table tr td.days.range .day:hover{background-color:#bbb;color:#444}.datepicker table tr td.days.next-month,.datepicker table tr td.days.prev-month{color:#fff;opacity:0}.datepicker table tr td.days.next-month .day:hover,.datepicker table tr td.days.prev-month .day:hover{background-color:#fff!important;color:#fff;outline:0;cursor:default;opacity:0}.datepicker table tr td.today{color:#444;text-decoration:underline;-moz-text-decoration-color:#444;text-decoration-color:#444}.datepicker .dow{height:23px;width:31px;font-weight:400;position:relative;border-top:solid 1px #bbb;border-bottom:solid 1px #bbb;margin-top:13px}.datepicker .dow .hidden-spoken{display:block;letter-spacing:-6px;overflow:hidden;position:absolute;top:5px;left:17px}.datepicker .due-date:after{border:2px solid #cf2a2a;border-radius:100%;content:" ";display:block;height:30px;left:3px;position:absolute;top:2px;width:30px;text-indent:-9999px;-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}.datepicker .due-date.old:after{visibility:hidden}.datepicker .due-date.active:after{border-color:#fff}.datepicker .due-date.active.focused{color:#0577b2!important}.datepicker .due-date.active.focused:after{border-color:#cf2a2a!important}.datepicker i.legend-due-date{border:1px solid #ccc;height:20px;width:20px;display:inline-block;margin-right:5px;margin-top:4px;position:absolute;left:0;top:0}.datepicker i.legend-due-date:after{border:1px solid #cf2a2a;border-radius:100%;display:block;content:" ";height:16px;left:1px;position:absolute;top:1px;width:16px;text-indent:-9999px}.datepicker .calendar-legend li{position:relative;padding-left:30px;padding-top:5px;margin-bottom:5px;font-weight:400;font-size:12px}.monthpicker table{width:100%}.monthpicker table tr td.days{width:33%;padding:0}.monthpicker .datepicker-switch{padding:0}.monthpicker table tr td.days.active{border-radius:25px}.monthpicker table tr td.days .day{line-height:20px;width:auto;border-radius:25px}.monthpicker table tr td.days .day:hover{border-radius:20px;-moz-outline-radius:20px}.monthpicker .monthtable-condensed{border-spacing:0 5px}.monthpicker .divider td{padding:0}.monthpicker .divider hr{margin:10px 0}.calendar.monthpicker .btnContainer{margin:8px 0}.calendar.monthpicker ul.select2-results.sttings li:last-child{margin-bottom:0}.calendar.monthpicker .btnContainer div{margin:12px 0}.calendar{position:relative;display:inline-block;width:270px}.calendar .box{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;position:relative;zoom:1;vertical-align:middle;display:inline-block}.calendar .box.active{z-index:0}.calendar .box.active input[type=text]{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border:solid 1px #067ab4;border-bottom:1px solid lightgrey}.calendar .calendar-icon{cursor:pointer;background:url(images/calendar-icon.png) no-repeat right top;width:30px;z-index:100;height:30px;position:absolute;right:3px;top:5px;background-color:#fff;background-size:30px 30px}.calendar .datepicker-wrapper{height:auto;width:302px;border:solid 1px #067ab4;background:none repeat scroll 0 0 #fff;border-radius:0 0 6px 6px;border-top:1px solid lightgrey;margin-top:-2px;z-index:1000;position:absolute;-webkit-box-shadow:rgba(0,0,0,.25) 0 8px 10px -3px;-moz-box-shadow:rgba(0,0,0,.25) 0 8px 10px -3px;box-shadow:rgba(0,0,0,.25) 0 8px 10px -3px}.calendar .datepicker-wrapper.show-right{right:-301px;border-bottom-left-radius:0!important;border-left:1px solid lightgrey;border-top:solid 1px #067ab4;top:41px}.calendar .datepicker-wrapper.datepicker-wrapper-display-none{display:none}.calendar .select2-results{border-radius:0;margin:0;overflow:hidden}.calendar .select2-result:focus{background:#1792D6!important;color:#fff!important}.calendar .select2-results.options{box-shadow:none}.calendar ul.select2-results.options li:last-child{margin-bottom:0}.calendar ul.select2-results.options li .disabled{color:#a0a0a0}.calendar ul.select2-results.sttings li:last-child{margin-bottom:35px}.btnContainer{line-height:14px;margin:9px 0 0;padding:8px 10px}.btnContainer div{margin-top:35px}.datepicker-inline{width:220px}.datepicker-dropdown{top:0;left:0}.datepicker-dropdown:before{content:" ";display:inline-block;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #ccc;border-top:0;border-bottom-color:rgba(0,0,0,.2);position:absolute}.datepicker-dropdown:after{content:" ";display:inline-block;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #fff;border-top:0;position:absolute}.datepicker-dropdown.datepicker-orient-left:after,.datepicker-dropdown.datepicker-orient-left:before{left:58px}.datepicker-dropdown.datepicker-orient-right:after,.datepicker-dropdown.datepicker-orient-right:before{right:58px}.datepicker-dropdown.datepicker-orient-top:before{top:-13px}.datepicker-dropdown.datepicker-orient-top:after{top:-12px}.datepicker-dropdown.datepicker-orient-bottom:before{bottom:-7px;border-bottom:0;border-top:7px solid #999}.datepicker-dropdown.datepicker-orient-bottom:after{bottom:-6px;border-bottom:0;border-top:6px solid #fff}.datepicker>div{display:none}.datepicker.days div.datepicker-days,.datepicker.months div.datepicker-months,.datepicker.years div.datepicker-years{display:block}.datepicker .next{padding-bottom:13px;background-size:10px 15px;background-position:10px 12px;background-repeat:no-repeat;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/Kv4Y595nL7vtWO6YXP4EjSRUzZUXlpqemS0TMzAwOl89k/fcQ/+PAOWnNycMsnJ/AF/GF6FVR6JQJhIlou4U8gViQLmQKhH/V4X8YNicHGX6daxRodV8AfYU5ULhJB8hvPQBDIwMkbj96An3rWxAxCsi+vGitka9zjzJ6/uf6Hwtcim7hTEEiU+b2DI9kciWiLBmj34RswQISkAd0oAo0gS4wAixgDRyAM3AD3iAAhIBIEAOWAy5IAmlABLJBPtgACkEx2AF2g2pwANSBetAEToI2cAZcBFfADXALDIBHQAqGwUswAd6BaQiC8BAVokGqkBakD5lC1hAbWgh5Q0FQOBQDxUOJkBCSQPnQJqgYKoOqoUNQPfQjdBq6CF2D+qAH0CA0Bv0BfYQRmALTYQ3YALaA2bA7HAhHwsvgRHgVnAcXwNvhSrgWPg63whfhG/AALIVfwpMIQMgIA9FGWAgb8URCkFgkAREha5EipAKpRZqQDqQbuY1IkXHkAwaHoWGYGBbGGeOHWYzhYlZh1mJKMNWYY5hWTBfmNmYQM4H5gqVi1bGmWCesP3YJNhGbjS3EVmCPYFuwl7ED2GHsOxwOx8AZ4hxwfrgYXDJuNa4Etw/XjLuA68MN4SbxeLwq3hTvgg/Bc/BifCG+Cn8cfx7fjx/GvyeQCVoEa4IPIZYgJGwkVBAaCOcI/YQRwjRRgahPdCKGEHnEXGIpsY7YQbxJHCZOkxRJhiQXUiQpmbSBVElqIl0mPSa9IZPJOmRHchhZQF5PriSfIF8lD5I/UJQoJhRPShxFQtlOOUq5QHlAeUOlUg2obtRYqpi6nVpPvUR9Sn0vR5Mzl/OX48mtk6uRa5Xrl3slT5TXl3eXXy6fJ18hf0r+pvy4AlHBQMFTgaOwVqFG4bTCPYVJRZqilWKIYppiiWKD4jXFUSW8koGStxJPqUDpsNIlpSEaQtOledK4tE20Otpl2jAdRzek+9OT6cX0H+i99AllJWVb5SjlHOUa5bPKUgbCMGD4M1IZpYyTjLuMj/M05rnP48/bNq9pXv+8KZX5Km4qfJUilWaVAZWPqkxVb9UU1Z2qbapP1DBqJmphatlq+9Uuq43Pp893ns+dXzT/5PyH6rC6iXq4+mr1w+o96pMamhq+GhkaVRqXNMY1GZpumsma5ZrnNMe0aFoLtQRa5VrntV4wlZnuzFRmJbOLOaGtru2nLdE+pN2rPa1jqLNYZ6NOs84TXZIuWzdBt1y3U3dCT0svWC9fr1HvoT5Rn62fpL9Hv1t/ysDQINpgi0GbwaihiqG/YZ5ho+FjI6qRq9Eqo1qjO8Y4Y7ZxivE+41smsImdSZJJjclNU9jU3lRgus+0zwxr5mgmNKs1u8eisNxZWaxG1qA5wzzIfKN5m/krCz2LWIudFt0WXyztLFMt6ywfWSlZBVhttOqw+sPaxJprXWN9x4Zq42Ozzqbd5rWtqS3fdr/tfTuaXbDdFrtOu8/2DvYi+yb7MQc9h3iHvQ732HR2KLuEfdUR6+jhuM7xjOMHJ3snsdNJp9+dWc4pzg3OowsMF/AX1C0YctFx4bgccpEuZC6MX3hwodRV25XjWuv6zE3Xjed2xG3E3dg92f24+ysPSw+RR4vHlKeT5xrPC16Il69XkVevt5L3Yu9q76c+Oj6JPo0+E752vqt9L/hh/QL9dvrd89fw5/rX+08EOASsCegKpARGBFYHPgsyCRIFdQTDwQHBu4IfL9JfJFzUFgJC/EN2hTwJNQxdFfpzGC4sNKwm7Hm4VXh+eHcELWJFREPEu0iPyNLIR4uNFksWd0bJR8VF1UdNRXtFl0VLl1gsWbPkRoxajCCmPRYfGxV7JHZyqffS3UuH4+ziCuPuLjNclrPs2nK15anLz66QX8FZcSoeGx8d3xD/iRPCqeVMrvRfuXflBNeTu4f7kufGK+eN8V34ZfyRBJeEsoTRRJfEXYljSa5JFUnjAk9BteB1sl/ygeSplJCUoykzqdGpzWmEtPi000IlYYqwK10zPSe9L8M0ozBDuspp1e5VE6JA0ZFMKHNZZruYjv5M9UiMJJslg1kLs2qy3mdHZZ/KUcwR5vTkmuRuyx3J88n7fjVmNXd1Z752/ob8wTXuaw6thdauXNu5Tnddwbrh9b7rj20gbUjZ8MtGy41lG99uit7UUaBRsL5gaLPv5sZCuUJR4b0tzlsObMVsFWzt3WazrWrblyJe0fViy+KK4k8l3JLr31l9V/ndzPaE7b2l9qX7d+B2CHfc3em681iZYlle2dCu4F2t5czyovK3u1fsvlZhW3FgD2mPZI+0MqiyvUqvakfVp+qk6oEaj5rmvep7t+2d2sfb17/fbX/TAY0DxQc+HhQcvH/I91BrrUFtxWHc4azDz+ui6rq/Z39ff0TtSPGRz0eFR6XHwo911TvU1zeoN5Q2wo2SxrHjccdv/eD1Q3sTq+lQM6O5+AQ4ITnx4sf4H++eDDzZeYp9qukn/Z/2ttBailqh1tzWibakNml7THvf6YDTnR3OHS0/m/989Iz2mZqzymdLz5HOFZybOZ93fvJCxoXxi4kXhzpXdD66tOTSna6wrt7LgZevXvG5cqnbvfv8VZerZ645XTt9nX297Yb9jdYeu56WX+x+aem172296XCz/ZbjrY6+BX3n+l37L972un3ljv+dGwOLBvruLr57/17cPel93v3RB6kPXj/Mejj9aP1j7OOiJwpPKp6qP6391fjXZqm99Oyg12DPs4hnj4a4Qy//lfmvT8MFz6nPK0a0RupHrUfPjPmM3Xqx9MXwy4yX0+OFvyn+tveV0auffnf7vWdiycTwa9HrmT9K3qi+OfrW9m3nZOjk03dp76anit6rvj/2gf2h+2P0x5Hp7E/4T5WfjT93fAn88ngmbWbm3/eE8/syOll+AAAACXBIWXMAAAsTAAALEwEAmpwYAAABPElEQVRIDa3VvWoCQRiFYY0mRS4otelSxFICFilSqTeQOzFWFhYi2IlFOu8qRVD0vOLA8DG/u35wGGdn5tlhR9fu4/euY2qq/kAZKyelqvpmNtj8du2o9lOpQh9ui2l8jD47XCk9OqXlQIu59dUoYAxrhAK+uZWJtningCNln8DcUBEK+K98KAe3MtGCLpVubA4g9ae8KyUoXyW+WkHUgRqvQicx1AfvglqwNRoCW6ExsDFqXw5Afvmn/+IPBD5zUJ3UDgNr8pdy4LMIfkW53XGnhTJLgQ57ZXamrpjmnGNgI4ybhsDGWAhshVmwNeaDNdhKC2fKGcAWz/BJ2Sglp7nWvC8liOn69VC2aod0MgWW/Vtlh78ZiOEijImAPwrPJFbFGAAgFUOrMCAHhtBqDMS+vtgpNVCyB8BEWxf/bU+NW/VoOgAAAABJRU5ErkJggg==)}@media \0screen\,screen\8{.datepicker .next{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAPCAYAAADd/14OAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMNJREFUeNpiZC3fxAAEykA8CYhbgPg4AxbABMRqQLwBiL2AeCUQG+FSOBWIdaB8WSDeiE0xSGErEL9GEpOBKjZAV3gAiIOwKN6AZBNYIQgcwaJYHog3wxQzIUnAFD9CElOAKjZmZraJRHYKSBEzELshiQkAsToTmudsgDgPTewBEBezoClaB8SiaIp8gfgKEx5FD2GKYJ5xwKLoCRAHwBTBFFZjUeQPxBfQAzwbSedjqKJz2KLwFtSabUAcjk0RCAAEGADBuyhEiJHd4gAAAABJRU5ErkJggg==)}}.datepicker .prev{background-size:10px 15px;background-position:20px 12px;background-repeat:no-repeat;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/Kv4Y595nL7vtWO6YXP4EjSRUzZUXlpqemS0TMzAwOl89k/fcQ/+PAOWnNycMsnJ/AF/GF6FVR6JQJhIlou4U8gViQLmQKhH/V4X8YNicHGX6daxRodV8AfYU5ULhJB8hvPQBDIwMkbj96An3rWxAxCsi+vGitka9zjzJ6/uf6Hwtcim7hTEEiU+b2DI9kciWiLBmj34RswQISkAd0oAo0gS4wAixgDRyAM3AD3iAAhIBIEAOWAy5IAmlABLJBPtgACkEx2AF2g2pwANSBetAEToI2cAZcBFfADXALDIBHQAqGwUswAd6BaQiC8BAVokGqkBakD5lC1hAbWgh5Q0FQOBQDxUOJkBCSQPnQJqgYKoOqoUNQPfQjdBq6CF2D+qAH0CA0Bv0BfYQRmALTYQ3YALaA2bA7HAhHwsvgRHgVnAcXwNvhSrgWPg63whfhG/AALIVfwpMIQMgIA9FGWAgb8URCkFgkAREha5EipAKpRZqQDqQbuY1IkXHkAwaHoWGYGBbGGeOHWYzhYlZh1mJKMNWYY5hWTBfmNmYQM4H5gqVi1bGmWCesP3YJNhGbjS3EVmCPYFuwl7ED2GHsOxwOx8AZ4hxwfrgYXDJuNa4Etw/XjLuA68MN4SbxeLwq3hTvgg/Bc/BifCG+Cn8cfx7fjx/GvyeQCVoEa4IPIZYgJGwkVBAaCOcI/YQRwjRRgahPdCKGEHnEXGIpsY7YQbxJHCZOkxRJhiQXUiQpmbSBVElqIl0mPSa9IZPJOmRHchhZQF5PriSfIF8lD5I/UJQoJhRPShxFQtlOOUq5QHlAeUOlUg2obtRYqpi6nVpPvUR9Sn0vR5Mzl/OX48mtk6uRa5Xrl3slT5TXl3eXXy6fJ18hf0r+pvy4AlHBQMFTgaOwVqFG4bTCPYVJRZqilWKIYppiiWKD4jXFUSW8koGStxJPqUDpsNIlpSEaQtOledK4tE20Otpl2jAdRzek+9OT6cX0H+i99AllJWVb5SjlHOUa5bPKUgbCMGD4M1IZpYyTjLuMj/M05rnP48/bNq9pXv+8KZX5Km4qfJUilWaVAZWPqkxVb9UU1Z2qbapP1DBqJmphatlq+9Uuq43Pp893ns+dXzT/5PyH6rC6iXq4+mr1w+o96pMamhq+GhkaVRqXNMY1GZpumsma5ZrnNMe0aFoLtQRa5VrntV4wlZnuzFRmJbOLOaGtru2nLdE+pN2rPa1jqLNYZ6NOs84TXZIuWzdBt1y3U3dCT0svWC9fr1HvoT5Rn62fpL9Hv1t/ysDQINpgi0GbwaihiqG/YZ5ho+FjI6qRq9Eqo1qjO8Y4Y7ZxivE+41smsImdSZJJjclNU9jU3lRgus+0zwxr5mgmNKs1u8eisNxZWaxG1qA5wzzIfKN5m/krCz2LWIudFt0WXyztLFMt6ywfWSlZBVhttOqw+sPaxJprXWN9x4Zq42Ozzqbd5rWtqS3fdr/tfTuaXbDdFrtOu8/2DvYi+yb7MQc9h3iHvQ732HR2KLuEfdUR6+jhuM7xjOMHJ3snsdNJp9+dWc4pzg3OowsMF/AX1C0YctFx4bgccpEuZC6MX3hwodRV25XjWuv6zE3Xjed2xG3E3dg92f24+ysPSw+RR4vHlKeT5xrPC16Il69XkVevt5L3Yu9q76c+Oj6JPo0+E752vqt9L/hh/QL9dvrd89fw5/rX+08EOASsCegKpARGBFYHPgsyCRIFdQTDwQHBu4IfL9JfJFzUFgJC/EN2hTwJNQxdFfpzGC4sNKwm7Hm4VXh+eHcELWJFREPEu0iPyNLIR4uNFksWd0bJR8VF1UdNRXtFl0VLl1gsWbPkRoxajCCmPRYfGxV7JHZyqffS3UuH4+ziCuPuLjNclrPs2nK15anLz66QX8FZcSoeGx8d3xD/iRPCqeVMrvRfuXflBNeTu4f7kufGK+eN8V34ZfyRBJeEsoTRRJfEXYljSa5JFUnjAk9BteB1sl/ygeSplJCUoykzqdGpzWmEtPi000IlYYqwK10zPSe9L8M0ozBDuspp1e5VE6JA0ZFMKHNZZruYjv5M9UiMJJslg1kLs2qy3mdHZZ/KUcwR5vTkmuRuyx3J88n7fjVmNXd1Z752/ob8wTXuaw6thdauXNu5Tnddwbrh9b7rj20gbUjZ8MtGy41lG99uit7UUaBRsL5gaLPv5sZCuUJR4b0tzlsObMVsFWzt3WazrWrblyJe0fViy+KK4k8l3JLr31l9V/ndzPaE7b2l9qX7d+B2CHfc3em681iZYlle2dCu4F2t5czyovK3u1fsvlZhW3FgD2mPZI+0MqiyvUqvakfVp+qk6oEaj5rmvep7t+2d2sfb17/fbX/TAY0DxQc+HhQcvH/I91BrrUFtxWHc4azDz+ui6rq/Z39ff0TtSPGRz0eFR6XHwo911TvU1zeoN5Q2wo2SxrHjccdv/eD1Q3sTq+lQM6O5+AQ4ITnx4sf4H++eDDzZeYp9qukn/Z/2ttBailqh1tzWibakNml7THvf6YDTnR3OHS0/m/989Iz2mZqzymdLz5HOFZybOZ93fvJCxoXxi4kXhzpXdD66tOTSna6wrt7LgZevXvG5cqnbvfv8VZerZ645XTt9nX297Yb9jdYeu56WX+x+aem172296XCz/ZbjrY6+BX3n+l37L972un3ljv+dGwOLBvruLr57/17cPel93v3RB6kPXj/Mejj9aP1j7OOiJwpPKp6qP6391fjXZqm99Oyg12DPs4hnj4a4Qy//lfmvT8MFz6nPK0a0RupHrUfPjPmM3Xqx9MXwy4yX0+OFvyn+tveV0auffnf7vWdiycTwa9HrmT9K3qi+OfrW9m3nZOjk03dp76anit6rvj/2gf2h+2P0x5Hp7E/4T5WfjT93fAn88ngmbWbm3/eE8/syOll+AAAACXBIWXMAAAsTAAALEwEAmpwYAAABOElEQVRIDa3WsW7CMBAG4AQoQx+InY2hK1XFwMBEeYG+CenEkKES6tZ2YCNzH4gBCdH/rzjLsRz7THzSL5Lo/CnJKSTlw9tXcUcNseYDaZAKMTUyW/oNYjXyfAtXGnTAvYQSbGGt2WL7VfZTQB8mjkG1lxzCbLTQnKEGE3QWA1Owb6jzEFiiYYfYA5AzcX+POPCCnLtAYrzRSyRWxJ6QExt9oGBrNkSqhbHXBXthLtgbs8EsmIDZMAE5Tc0AftFnpsnFvnKH4utJOkZwg7wrVk3Q84M8hnoJXhEtOkVvEJVLzoYKyKvIgtpgFtQFe6M+0EZr7kSqNagukAbv6Qrh6zJWRPfIOAQSuSD8T9SgfIo+YyB6ktCDBtSifDgqLRhD/zE2pYBdqMHYoH3Rs1dKBsW1DWK+a9jwB9DuTqWp5mUgAAAAAElFTkSuQmCC)}@media \0screen\,screen\8{.datepicker .prev{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAPCAYAAADd/14OAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALxJREFUeNpiZC3fxIADWAJxDRDnAfFdFhyKjIB4JRDLArEcEAez4FC0EYhloHwdIJ7KhKbIAE0RCLwG4lZkE0E6N2BRFATER5iQFG0GYnlsikAckEJjqCIFJEWPkBXBFPaiKQKBSciKYAqLgfgBmkJQ2NmgKzwLxL5oikFhtw5ZMcwzV6CKHyIpFkVWjByOIMUBQPwEi2IH9AC/AMT+WBRXM2GJwnNQxY+RbMpmwpEoQIrDgXgb1Dm3AAIMALk+J8MvzLwTAAAAAElFTkSuQmCC)}}.datepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}.datepicker thead tr:first-child th.cw{cursor:default;background-color:transparent}.input-group.date .input-group-addon i{cursor:pointer;width:16px;height:16px}.datepicker.dropdown-menu{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;top:100%;left:0;float:left;display:none;margin-top:5px;width:290px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;color:#333;font-size:13px;line-height:1.428571429;z-index:1050}.datepicker.dropdown-menu td,.datepicker.dropdown-menu th{padding:4px 5px;display:block;position:relative;float:left}.datepicker .text-left{width:100%}.hidden-spoken,.hidden-text-spoken{position:absolute!important;clip:rect(0 0 0 0)!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;border:0!important;letter-spacing:0;line-height:0}#dateFilterList .scroll-viewport{height:120px;width:100%}#dateFilterList .scroll-bar.disable+div.scroll-viewport{width:268px}#dateFilterList .scroll-bar{width:6px;background-color:#fff}#dateFilterList .scroll-thumb{width:4px;background-color:#999}#datepickerBody .scroll-bar{right:-8px;width:6px;background-color:#fff}#datepickerBody .scroll-thumb{width:4px;background-color:#999}#datepickerBody .scroll-viewport{height:218px;width:280px}.monthpicker #datepickerBody .scroll-viewport{height:208px} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/frms.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/frms.css
deleted file mode 100644
index 6f2cb6b2..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/frms.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";address,blockquote,dd,h1,h2,h3,h4,h5,h6,ol,p,pre,table,ul{margin:0;padding:0;margin-bottom:24px;margin-bottom:1.5rem}html{font-size:1em;line-height:1.5}body{margin:0}h1{font-size:48px;font-size:3rem;line-height:1}h2{font-size:36px;font-size:2.25rem;line-height:1.3333333333}h3{font-size:30px;font-size:1.875rem;line-height:1.6}h4{font-size:24px;font-size:1.5rem;line-height:1}h5{font-size:20px;font-size:1.25rem;line-height:1.2}h6{font-size:18px;font-size:1.125rem;line-height:1.3333333333}dd,ol,ul{margin-left:48px;margin-left:3rem}li>ol,li>ul{margin-bottom:0}code,kbd,pre,samp{font-family:monospace,monospace}blockquote{text-indent:-.41em;quotes:"“" "â€";margin-left:48px;margin-left:3rem}blockquote p:before{content:"“";content:open-quote}blockquote p:after{content:"";content:no-close-quote}blockquote p:last-of-type:after{content:"â€";content:close-quote}q{quotes:"‘" "’" "“" "â€"}q:before{content:"‘";content:open-quote}q:after{content:"’";content:close-quote}q q:before{content:"“";content:open-quote}q q:after{content:"â€";content:close-quote}q:first-child{display:inline-block;text-indent:-.22em}table{width:100%;border-collapse:collapse;border-spacing:0}td,th{padding:12px}#grid{position:absolute;top:0;left:50%;width:980px;margin-left:-490px;counter-reset:section;z-index:9999!important;pointer-events:none;outline:1px solid rgba(0,206,209,.1)}#grid:after{position:fixed;top:0;left:0;content:'Column: 20px Gutter: 20px Margin: 20px';display:block;max-width:90px;padding:3px;background-color:#000;color:#fff;font-size:10px;font-family:monospace;z-index:9999}#grid div.vert{width:20px;outline:solid rgba(0,206,209,.3);outline-width:1px;margin-right:20px;position:relative;background:rgba(255,0,0,.05);counter-increment:section}#grid div.vert.first-line{margin-left:20px}#grid div.vert::after{position:fixed;display:block;text-align:center;color:#fff;width:20px;content:counter(section);top:5px;font-size:8px;font-family:monospace}#grid div.vert:nth-child(24){position:absolute;top:0;right:0}#grid div.vert:nth-child(1),#grid div.vert:nth-child(10),#grid div.vert:nth-child(11),#grid div.vert:nth-child(12),#grid div.vert:nth-child(13),#grid div.vert:nth-child(14),#grid div.vert:nth-child(15),#grid div.vert:nth-child(16),#grid div.vert:nth-child(17),#grid div.vert:nth-child(18),#grid div.vert:nth-child(19),#grid div.vert:nth-child(2),#grid div.vert:nth-child(20),#grid div.vert:nth-child(21),#grid div.vert:nth-child(22),#grid div.vert:nth-child(23),#grid div.vert:nth-child(24),#grid div.vert:nth-child(3),#grid div.vert:nth-child(4),#grid div.vert:nth-child(5),#grid div.vert:nth-child(6),#grid div.vert:nth-child(7),#grid div.vert:nth-child(8),#grid div.vert:nth-child(9){display:inline-block!important}#grid div.vert:nth-child(25),#grid div.vert:nth-child(26),#grid div.vert:nth-child(27),#grid div.vert:nth-child(28),#grid div.vert:nth-child(29),#grid div.vert:nth-child(30),#grid div.vert:nth-child(31){display:none!important}#grid div.horiz{height:10px;border-bottom:1px dotted rgba(100,100,100,.2);margin:0;padding:0}.bg-prime-blue{background-color:#067ab4}.bg-secondary-gray{background-color:#666}.bg-light-blue{background-color:#bcc9d5}.bg-dark-gray{background-color:#444}.bg-dusty-blue{background-color:#97b1cf}.bg-warm-gray{background-color:#cccb9b}.bg-taupe{background-color:#cccb6c}.bg-green-highlight{background-color:#c4d63f}.bg-lime-highlight{background-color:#dad632}.bg-purple-highlight{background-color:#b6539c}.bg-magenta{background-color:#d71481}.bg-blue-highlight{background-color:#4cc8f3}.bg-ochre{background-color:#fab230}.bg-green{background-color:#4fa721}.bg-lime{background-color:#b6bd26}.bg-purple{background-color:#7f0e7c}.bg-burgundy{background-color:#b1103e}.bg-dark-blue{background-color:#0e2875}.bg-gold{background-color:#fd9827}.bg-teal{background-color:#20c6b2}.bg-mint-green{background-color:#9cfecd}.bg-yellow{background-color:#feed35}.bg-white{background-color:#fff}.alt.inline-list>li{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;vertical-align:middle;float:none}.text-upper{text-transform:uppercase!important}body{font-family:arial}.font-showcase h1,.font-showcase h2,.font-showcase h3,.font-showcase h4,.font-showcase h5,.font-showcase h6{font-weight:100;letter-spacing:-1px;margin:10px 0;-webkit-font-smoothing:antialiased}.font-showcase h1{font-family:omnes_att_light;font-size:48px;font-size:3rem;line-height:48px}.font-showcase h2,.price{font-family:omnes_att_light;font-size:36px;font-size:2.25rem;line-height:36px}.font-showcase h3{font-family:arial;font-size:24px;font-size:1.5rem;line-height:28px}.font-showcase h4,.font-showcase h4.font-showcase-font-example,.font-showcase h4.font-showcase-font-name{font-family:arial;font-size:18px;font-size:1.125rem;line-height:22px;-webkit-font-smoothing:antialiased}.font-showcase h5{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.font-showcase h6{font-family:arial;font-size:11px;font-size:.6875rem;line-height:30px;font-weight:100;-webkit-font-smoothing:antialiased}.body-copy,.font-showcase p{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.body-copy-short{font-family:arial;font-size:12px;font-size:.75rem;line-height:15px;-webkit-font-smoothing:antialiased}p [class*=icon]{display:inline-block;vertical-align:middle;margin-top:-4px}.details-label{display:block;font-family:arial;font-size:11px;font-size:.6875rem;line-height:15px}.details-label+.price{line-height:28px}.price{letter-spacing:-1px;-webkit-font-smoothing:antialiased}.price sup{font-size:18px;font-size:1.125rem;vertical-align:baseline;top:-11px;margin:0 2px}.price-alt{font-size:24px;font-size:1.5rem;line-height:24px}.price-alt sup{font-size:12px;font-size:.75rem;top:-8px}.promo-tagline{font-family:omnes_att_medium_italic;font-size:16px;font-size:1rem;line-height:20px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.promo-text{font-family:clearview_att_italic;font-size:12px;font-size:.75rem;line-height:15px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.divider,.divider-dark,hr{border:0;border-bottom:1px solid #d3d3d3}.divider-light{border-color:#e5e5e5}dl{font-family:arial;color:#444;font-size:12px;font-size:.75rem}dt{font-family:arial;font-size:11px;font-size:.6875rem;display:block!important;margin:10px 0 5px!important;width:auto!important;text-transform:uppercase}dt a{font-family:arial;color:#067ab4;text-transform:none}dd{display:inline!important;line-height:20px}[data-highlight]{background-color:#c9e9f9;-webkit-animation:highlight-fade 3s infinite}@-webkit-keyframes highlight-fade{100%,80%{background-color:transparent}}.form-field{margin-bottom:10px}.form-field [class^=icon-]{font-size:14px;font-size:.875rem;-webkit-font-smoothing:antialiased;bottom:0;color:#888;height:40px;line-height:40px;pointer-events:none;position:absolute;right:0;text-align:center;margin-right:2px;margin-left:-1px;width:30px;z-index:3}.form-field,.form-field-input-container{position:relative;display:inline-block;width:270px}.form-field .hide-field,.form-field-input-container .hide-field{display:none}.form-field--has-left-icon .select2-choice .select2-chosen,.form-field--has-left-icon input[type=color],.form-field--has-left-icon input[type=date],.form-field--has-left-icon input[type=datetime-local],.form-field--has-left-icon input[type=datetime],.form-field--has-left-icon input[type=email],.form-field--has-left-icon input[type=month],.form-field--has-left-icon input[type=number],.form-field--has-left-icon input[type=password],.form-field--has-left-icon input[type=search],.form-field--has-left-icon input[type=tel],.form-field--has-left-icon input[type=text],.form-field--has-left-icon input[type=time],.form-field--has-left-icon input[type=url],.form-field--has-left-icon input[type=week]{padding-left:31px;padding-right:29px}.form-field .form-field-right-icon{color:#444}.form-field__left-icon{left:0;text-indent:12px;right:auto!important}.form-field .icon-checkbox-checkmark,.form-field .icon-cross{font-size:24px;font-size:1.5rem}.form-field .icon-help,.form-field .icon-help-outline{pointer-events:all}.form-field__label{font-size:12px;font-size:.75rem;visibility:hidden;display:block;font-family:arial;margin-bottom:3px;position:absolute;top:0;-webkit-transition:width 1s,height 1s,-webkit-transform .1s}.form-field__label--show{visibility:visible;-moz-transform:translateX(0px) translateY(-20px);-webkit-transform:translateX(0px) translateY(-20px);-o-transform:translateX(0px) translateY(-20px);-ms-transform:translateX(0px) translateY(-20px);transform:translateX(0px) translateY(-20px)}.form-field__label--hide{visibility:visible;-moz-transform:translateX(0px) translateY(0px);-webkit-transform:translateX(0px) translateY(0px);-o-transform:translateX(0px) translateY(0px);-ms-transform:translateX(0px) translateY(0px);transform:translateX(0px) translateY(0px)}[class^=icon-].success{color:#008a06}[class^=icon-].error{color:#e00000}[class^=icon-].info{color:#0a7cb5}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{font-size:14px;font-size:.875rem;-webkit-transition:all .04 ease-out;-moz-transition:all .04 ease-out;transition:all .04 ease-out;background:#fff;border-radius:6px;border:1px solid #888;color:#444;font-family:arial;width:100%;outline:0;padding:7px 10px;text-transform:none;z-index:0;height:40px;position:relative}input[type=color][disabled],input[type=date][disabled],input[type=datetime-local][disabled],input[type=datetime][disabled],input[type=email][disabled],input[type=month][disabled],input[type=number][disabled],input[type=password][disabled],input[type=search][disabled],input[type=tel][disabled],input[type=text][disabled],input[type=time][disabled],input[type=url][disabled],input[type=week][disabled],select[disabled],textarea[disabled]{border:1px solid #aaa;background:#f2f2f2;color:#a0a0a0;box-shadow:0 0 #d9d9d9 inset}textarea{resize:vertical}select{-webkit-transition-property:all,z-index,background-position;-moz-transition-property:all,z-index,background-position;transition-property:all,z-index,background-position;-webkit-transition-delay:.4s,0,0;-moz-transition-delay:.4s,0,0;transition-delay:.4s,0,0;-webkit-transition-timing-function:ease-out;-moz-transition-timing-function:ease-out;transition-timing-function:ease-out}input[type=color]:hover,input[type=date]:hover,input[type=datetime-local]:hover,input[type=datetime]:hover,input[type=email]:hover,input[type=month]:hover,input[type=number]:hover,input[type=password]:hover,input[type=search]:hover,input[type=tel]:hover,input[type=text]:hover,input[type=time]:hover,input[type=url]:hover,input[type=week]:hover,select:hover,textarea:hover{border:1px solid #444;z-index:1}input[type=color]:hover[disabled],input[type=date]:hover[disabled],input[type=datetime-local]:hover[disabled],input[type=datetime]:hover[disabled],input[type=email]:hover[disabled],input[type=month]:hover[disabled],input[type=number]:hover[disabled],input[type=password]:hover[disabled],input[type=search]:hover[disabled],input[type=tel]:hover[disabled],input[type=text]:hover[disabled],input[type=time]:hover[disabled],input[type=url]:hover[disabled],input[type=week]:hover[disabled],select:hover[disabled],textarea:hover[disabled]{border:1px solid #a0a0a0;background:#f2f2f2;color:#a0a0a0}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border:1px solid #0574AC;color:#444;z-index:1}select{width:100%;position:relative;background-image:url(images/select-arrows.png);background-position:100% -1px;background-repeat:no-repeat;-webkit-appearance:none}.form-field.error input[type=email],.form-field.error input[type=password],.form-field.error input[type=text],.form-field.error select{border:1px solid #e00000}.form-field.warning{color:#444}.form-field.success input[type=email],.form-field.success input[type=password],.form-field.success input[type=text],.form-field.success select{border:1px solid #008a06}.form-field__glued{width:100%;margin-bottom:0}.form-field__glued input[type=email],.form-field__glued input[type=password],.form-field__glued input[type=text],.form-field__glued select{position:relative;margin-top:-1px;border-radius:0}.form-field__glued:first-child input[type=email],.form-field__glued:first-child input[type=password],.form-field__glued:first-child input[type=text],.form-field__glued:first-child select{margin-top:0;border-radius:5px 5px 0 0}.form-field__glued:last-child input[type=email],.form-field__glued:last-child input[type=password],.form-field__glued:last-child input[type=text],.form-field__glued:last-child select{border-radius:0 0 5px 5px}.form-field__glued.pull-left{margin-right:-1px}.form-field__glued.pull-left .select2-choice,.form-field__glued.pull-left input[type=email],.form-field__glued.pull-left input[type=password],.form-field__glued.pull-left input[type=text],.form-field__glued.pull-left select{border-radius:0;margin-top:0}.form-field__glued.pull-left:first-child .select2-choice,.form-field__glued.pull-left:first-child input[type=password],.form-field__glued.pull-left:first-child input[type=text],.form-field__glued.pull-left:first-child select{border-radius:5px 0 0 5px}.form-field__glued.pull-left:last-child .select2-choice,.form-field__glued.pull-left:last-child input[type=password],.form-field__glued.pull-left:last-child input[type=text],.form-field__glued.pull-left:last-child select{border-radius:0 5px 5px 0}::-webkit-input-placeholder{color:#444;opacity:.54}:-moz-placeholder{color:#444;opacity:.54}::-moz-placeholder{color:#444;opacity:.54}:-ms-input-placeholder{color:#444;opacity:.54;-ms-filter:'alpha(Opacity=54)'}[disabled]::-webkit-input-placeholder{color:#888}[disabled]:-moz-placeholder{color:#888}[disabled]::-moz-placeholder{color:#888}[disabled]:-ms-input-placeholder{color:#888}.form-field .form-field__message span{vertical-align:middle}.form-field .form-field__message{border-radius:4px;min-width:150px;max-width:280px;display:block;padding:10px;margin:12px 0 0;font-family:arial;font-size:12px;font-size:.75rem;line-height:10px;color:#666;text-transform:none;background:#fff;position:absolute;z-index:1;-moz-box-sizing:border-box;box-sizing:border-box}.form-field .form-field__message:after{content:'';position:absolute;left:10px;top:-7px;border-style:solid;border-width:0 7px 7px;border-color:transparent transparent #fff}.form-field .form-field__message [class*=icon-]{color:#fff;position:relative;margin-right:9px;line-height:0!important;vertical-align:middle}.form-field .form-field__message.error{color:#fff;background:#e00000}.form-field .form-field__message.error:after{border-bottom:7px solid #e00000}.form-field .form-field__message.warning{color:#444;background:#FCB123}.form-field .form-field__message.warning:after{border-bottom:7px solid #FCB123}.form-field .form-field__message.warning [class*=icon-]{color:#444}.form-field .form-field__message.alert{position:absolute;bottom:-45px;left:0;z-index:1;box-shadow:0 5px 10px 0 rgba(0,0,0,.25)}.form-field .form-field__message.success{color:#fff;background:#008a06}.form-field .form-field__message.success:after{border-bottom:7px solid #008a06}.form-field .form-field__message.info{color:#fff;background:#0a7cb5}.form-field .form-field__message [class^=icon-]{height:30px;line-height:30px}.form-field-loading>[class*=icon-]:not(.form-field-left-icon){opacity:0}.form-field-loading:after{content:'';position:absolute;top:2px;right:5px;width:25px;height:25px;background:url(images/loader.gif) center center no-repeat;background-size:20px}.fix-height{height:110px}.form-field__message-login{width:100%;display:block;position:relative;padding:7px 12px 3px;margin:-1px 0 -1px 0;font-family:arial;font-size:12px;font-size:.75rem;color:#666;text-transform:none;background:#fff;z-index:1;-moz-box-sizing:border-box;box-sizing:border-box}.form-field__message-login:after{content:'';position:absolute;right:10px;top:-7px;border-style:solid;border-width:0 7px 7px;border-color:transparent transparent #fff;z-index:2}.form-field__message-login [class*=icon-]{color:#fff;position:absolute;margin-right:5px}.form-field__message-login.incorrect{color:#fff;background:#e00000;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.form-field__message-login.incorrect:after{border-bottom:7px solid #e00000}.form-field__message-login.unregistered{color:#444;background:#fcb134}.form-field__message-login.unregistered:after{border-bottom:7px solid #fcb134}.form-field__glued:first-child:hover+.form-field__message-login{margin:0 0 -1px 0}.form-field__login-field{width:200px}.form-field__login-field input[type=color],.form-field__login-field input[type=date],.form-field__login-field input[type=datetime-local],.form-field__login-field input[type=datetime],.form-field__login-field input[type=email],.form-field__login-field input[type=month],.form-field__login-field input[type=number],.form-field__login-field input[type=password],.form-field__login-field input[type=search],.form-field__login-field input[type=tel],.form-field__login-field input[type=text],.form-field__login-field input[type=time],.form-field__login-field input[type=url],.form-field__login-field input[type=week],.form-field__login-field select,.form-field__login-field textarea{height:35px;width:200px;font-size:12px;font-size:.75rem}.form-field__login-field [class^=icon-]{height:35px;line-height:35px} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/ie/backgroundsize.min.htc b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/ie/backgroundsize.min.htc
deleted file mode 100644
index baa93ada..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/ie/backgroundsize.min.htc
+++ /dev/null
@@ -1,12 +0,0 @@
-<!-- background-size-polyfill v0.2.0 | (c) 2012-2013 Louis-Rémi Babé | MIT License -->
-<PUBLIC:COMPONENT lightWeight="true">
-<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="o.init()" />
-<PUBLIC:ATTACH EVENT="ondocumentready" ONEVENT="o.init()" />
-<PUBLIC:ATTACH EVENT="onpropertychange" ONEVENT="o.handlePropertychange()" />
-<PUBLIC:ATTACH EVENT="ondetach" ONEVENT="o.restore()" />
-<PUBLIC:ATTACH EVENT="onresize" FOR="window" ONEVENT="o.handleResize()" />
-<PUBLIC:EVENT NAME="onbackgroundupdate" ID="updateEvent" />
-<script type="text/javascript">
-var o;!function(a,b){var c=/url\(["']?(.*?)["']?\)/,d=/^\s\s*/,e=/\s\s*$/,f=/\s\s*/g,g=/%$/,h={top:0,left:0,bottom:1,right:1,center:.5},i=a.document,j="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",k="background-size-polyfill",l=function(){},m=100,n,p,q,r;function s(){var b=i.createElement("div"),c=i.createElement("img"),d=b.style,e=a.style,f=a.currentStyle,g=a.bgsExpando,h=a.firstChild;g&&(g.restore&&(e.backgroundImage=g.restore.backgroundImage,e.position=g.restore.position,e.zIndex=g.restore.zIndex),h&&"DIV"===(h.nodeName||"").toUpperCase()&&h.className===k&&a.removeChild(h)),t(b),b.className=k,d.top=d.right=d.bottom=d.left=0,d.position="fixed",t(c),c.alt="",b.appendChild(c),a.insertBefore(b,a.firstChild),a.bgsExpando=g={wrapper:b,img:c,restore:{backgroundImage:e.backgroundImage,position:e.position,zIndex:e.zIndex},current:{},next:null,processing:!1,loadImg:null,display:!1,changed:!1,ignore:!1,canFixed:"BODY"===a.nodeName.toUpperCase()&&b.offsetHeight>0},d.position="absolute","auto"===f.zIndex&&(e.zIndex=0),"static"===f.position&&(e.position="relative"),o={init:l,handlePropertychange:D,restore:F,handleResize:E},D()}function t(a){var b=a.style;b.position="absolute",b.display="block",b.zIndex=-1,b.overflow="hidden",b.visibility="inherit",b.width=b.height=b.top=b.right=b.bottom=b.left=b.cursor="auto",b.margin=b.padding=b.border=b.outline=b.minWidth=b.minHeight=0,b.background=b.maxWidth=b.maxHeight="none",b.fontSize=b.lineHeight="1em"}function u(a,c,d){var e;c?(e=i.createElement("img"),e.onload=e.onerror=function(){var c=this.width,e=this.height;"error"===b.event.type&&(c=e=0),a.loadImg=this.onload=this.onerror=null,d(c,e)},e.src=c):e={callbackId:b.setTimeout(function(){a.loadImg=null,d(0,0)},0)},a.loadImg=e,e=null}function v(a){var b=o.handlePropertychange;o.handlePropertychange=l,a(),o.handlePropertychange=b}function w(a,b){var c=a.currentStyle.display;return c!==b.display&&(b.display=c,b.changed=!0),"none"!==c}function x(a,b){var d=a.style,e=a.currentStyle,f=b.restore,i=y(e["background-size"]),k=i.split(" "),l={innerWidth:a.offsetWidth-(parseFloat(e.borderLeftWidth)||0)-(parseFloat(e.borderRightWidth)||0),innerHeight:a.offsetHeight-(parseFloat(e.borderTopWidth)||0)-(parseFloat(e.borderBottomWidth)||0),size:i,sizeIsKeyword:"contain"===i||"cover"===i,sizeX:k[0],sizeY:k.length>1?k[1]:"auto",posX:e.backgroundPositionX,posY:e.backgroundPositionY,attachment:e.backgroundAttachment,src:"",imgWidth:0,imgHeight:0};return l.sizeIsKeyword||((parseFloat(l.sizeX)>=0||"auto"===l.sizeX)&&(parseFloat(l.sizeY)>=0||"auto"===l.sizeY)||(l.sizeX=l.sizeY="auto"),g.test(l.sizeX)&&(l.sizeX=(l.innerWidth*parseFloat(l.sizeX)/100||0)+"px"),g.test(l.sizeY)&&(l.sizeY=(l.innerHeight*parseFloat(l.sizeY)/100||0)+"px")),(l.posX in h||g.test(l.posX))&&(l.posX=h[l.posX]||parseFloat(l.posX)/100||0),(l.posY in h||g.test(l.posY))&&(l.posY=h[l.posY]||parseFloat(l.posY)/100||0),(c.exec(d.backgroundImage)||[])[1]===j?v(function(){d.backgroundImage=f.backgroundImage}):f.backgroundImage=d.backgroundImage,l.src=(c.exec(e.backgroundImage)||[])[1],v(function(){d.backgroundImage="url("+j+")"}),l}function y(a){return String(a).replace(d,"").replace(e,"").replace(f," ")}function z(a,c){var d=c.next;function e(){p=b.setTimeout(function(){c.processing=!1,z(a,c)},0)}!c.processing&&d&&(c.next=null,c.processing=!0,u(c,d.src,function(b,f){d.imgWidth=b,d.imgHeight=f,A(c,d)?B(a,c,d,e):e()}))}function A(a,b){var c=a.current,d=!1,e;if(a.changed)a.changed=!1,d=!0;else for(e in b)if(b[e]!==c[e]){d=!0;break}return d}function B(a,c,d,e){var f=c.img,g=f.style,h=d.size,i=d.innerWidth,j=d.innerHeight,k=d.imgWidth,l=d.imgHeight,m=d.posX,n=d.posY,o="number"==typeof m,p="number"==typeof n,s="none",t=0,u=0,v="auto",w="auto",x="px",y="100%",z,A;i&&j&&k&&l&&(c.wrapper.style.position="fixed"===d.attachment&&c.canFixed?"fixed":"absolute",f.src=d.src,d.sizeIsKeyword?(z=i/j,A=k/l,"contain"===h&&A>z||"cover"===h&&z>A?(u=C((j-i/A)*n)+x,v=y):(t=C((i-j*A)*m)+x,w=y),g.left=o?t:m,g.top=p?u:n,g.width=v,g.height=w,s="block"):(g.display="block",g.width=d.sizeX,g.height=d.sizeY,k=f.width,l=f.height,k&&l&&(g.left=o?C((i-k)*m)+x:m,g.top=p?C((j-l)*n)+x:n,s="block"))),g.display=s,c.current=d,q=b.setTimeout(function(){r=b.setTimeout(e,0),updateEvent.fire()},0)}function C(a){var b=0>a;return a=Math.floor(Math.abs(a)),b?-a:a}function D(){var c=a.bgsExpando,d=(b.event||{}).propertyName,e="style.backgroundImage";c.ignore&&(c.ignore=!1,d===e)||(d===e&&a.style.backgroundImage&&(c.ignore=!0),w(a,c)&&(c.next=x(a,c),z(a,c)))}function E(){b.clearTimeout(n),n=b.setTimeout(D,m)}function F(){var c=a.bgsExpando,d,e,f;o={init:l,handlePropertychange:l,restore:l,handleResize:l},b.clearTimeout(n),b.clearTimeout(p),b.clearTimeout(q),b.clearTimeout(r);try{c&&(d=c.loadImg,d&&(d.onload=d.onerror=null,b.clearTimeout(d.callbackId)),e=a.style,f=c.restore,e&&(e.backgroundImage=f.backgroundImage,e.position=f.position,e.zIndex=f.zIndex),a.removeChild(c.wrapper)),a.bgsExpando=null}catch(g){}a=b=i=l=null}o={init:"print"!==i.media?s:l,handlePropertychange:l,restore:l,handleResize:l},"complete"===a.readyState&&o.init()}(element,window);</script>
-<script type="text/vbscript"></script>
-</PUBLIC:COMPONENT>
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/down.png b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/down.png
deleted file mode 100644
index b7a89be8..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/down.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/up.png b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/up.png
deleted file mode 100644
index 6129ecf3..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/up.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/upanddown.png b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/upanddown.png
deleted file mode 100644
index ce9f4e7e..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/images/upanddown.png
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/pages/iconography.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/pages/iconography.css
deleted file mode 100644
index 96e4d933..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/pages/iconography.css
+++ /dev/null
@@ -1,2 +0,0 @@
-/* AT&T Style Guide Styles */
-.icons-list{list-style:none;margin:20px 0 0;padding:0;font-size:0}.icons-list li{font-size:14px;display:inline-block;width:20%;box-sizing:border-box;vertical-align:top;padding:20px;margin-bottom:20px;cursor:default;min-height:130px;position:relative;overflow:hidden;border:1px solid transparent;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out}.icons-list li:hover{background:#fff;color:#199DDF;border-color:#d3d3d3}.icons-list [class*=icon]{display:inline-block;vertical-align:middle;-webkit-transition:font-size .2s ease-out;-moz-transition:font-size .2s ease-out;transition:font-size .2s ease-out}.icons-list[data-size=small] [class*=icon]{font-size:14px}.icons-list[data-size=medium] [class*=icon]{font-size:28px}.icons-list[data-size=large] [class*=icon]{font-size:56px}.icons-list.small-icons [class*=icon]{font-size:56px!important}.icons-list li [class*=icon]:hover{outline:1px dotted #444;color:#199DDF}.icons-list [data-role=title]{font-family:arial;font-size:14px;margin-top:15px;display:block}.icons-list[data-display=list] li{display:block;margin-bottom:0;width:100%;min-height:0}.icons-list[data-display=list] [data-role=title]{display:inline-block;vertical-align:middle;margin:0;margin-left:15px}.icons-list [data-role=css-class]{display:none;font-size:11px;background:rgba(0,0,0,.8);color:#fff;margin-top:10px;text-align:center;box-sizing:border-box;position:absolute;left:0;right:0;bottom:-30px;padding:0 10px;height:25px;padding-top:7px;white-space:nowrap;overflow-x:auto;-webkit-transition:bottom .2s ease-out;-moz-transition:bottom .2s ease-out;transition:bottom .2s ease-out}.icons-list li:hover [data-role=css-class]{bottom:0}.icons-list[data-display=list] [data-role=css-class]{left:auto;top:50%;right:25px;margin-top:-12px;background:#d3d3d3;color:#444;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.show-dev-notes .icons-list [data-role=css-class]{display:block}.icons-list [data-role=css-class]::selection{background:#666}.icons-list[data-display=list] [data-role=css-class]::selection{background:#d3d3d3}.label-icon{display:block}.tabs-icon.tabs>li a{height:40px;line-height:40px;font-size:14px} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/sldr.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/sldr.css
deleted file mode 100644
index 1715a6e2..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/sldr.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";address,blockquote,dd,h1,h2,h3,h4,h5,h6,ol,p,pre,table,ul{margin:0;padding:0;margin-bottom:24px;margin-bottom:1.5rem}html{font-size:1em;line-height:1.5}body{margin:0}h1{font-size:48px;font-size:3rem;line-height:1}h2{font-size:36px;font-size:2.25rem;line-height:1.3333333333}h3{font-size:30px;font-size:1.875rem;line-height:1.6}h4{font-size:24px;font-size:1.5rem;line-height:1}h5{font-size:20px;font-size:1.25rem;line-height:1.2}h6{font-size:18px;font-size:1.125rem;line-height:1.3333333333}dd,ol,ul{margin-left:48px;margin-left:3rem}li>ol,li>ul{margin-bottom:0}code,kbd,pre,samp{font-family:monospace,monospace}blockquote{text-indent:-.41em;quotes:"“" "â€";margin-left:48px;margin-left:3rem}blockquote p:before{content:"“";content:open-quote}blockquote p:after{content:"";content:no-close-quote}blockquote p:last-of-type:after{content:"â€";content:close-quote}q{quotes:"‘" "’" "“" "â€"}q:before{content:"‘";content:open-quote}q:after{content:"’";content:close-quote}q q:before{content:"“";content:open-quote}q q:after{content:"â€";content:close-quote}q:first-child{display:inline-block;text-indent:-.22em}table{width:100%;border-collapse:collapse;border-spacing:0}td,th{padding:12px}#grid{position:absolute;top:0;left:50%;width:980px;margin-left:-490px;counter-reset:section;z-index:9999!important;pointer-events:none;outline:1px solid rgba(0,206,209,.1)}#grid:after{position:fixed;top:0;left:0;content:'Column: 20px Gutter: 20px Margin: 20px';display:block;max-width:90px;padding:3px;background-color:#000;color:#fff;font-size:10px;font-family:monospace;z-index:9999}#grid div.vert{width:20px;outline:solid rgba(0,206,209,.3);outline-width:1px;margin-right:20px;position:relative;background:rgba(255,0,0,.05);counter-increment:section}#grid div.vert.first-line{margin-left:20px}#grid div.vert::after{position:fixed;display:block;text-align:center;color:#fff;width:20px;content:counter(section);top:5px;font-size:8px;font-family:monospace}#grid div.vert:nth-child(24){position:absolute;top:0;right:0}#grid div.vert:nth-child(1),#grid div.vert:nth-child(10),#grid div.vert:nth-child(11),#grid div.vert:nth-child(12),#grid div.vert:nth-child(13),#grid div.vert:nth-child(14),#grid div.vert:nth-child(15),#grid div.vert:nth-child(16),#grid div.vert:nth-child(17),#grid div.vert:nth-child(18),#grid div.vert:nth-child(19),#grid div.vert:nth-child(2),#grid div.vert:nth-child(20),#grid div.vert:nth-child(21),#grid div.vert:nth-child(22),#grid div.vert:nth-child(23),#grid div.vert:nth-child(24),#grid div.vert:nth-child(3),#grid div.vert:nth-child(4),#grid div.vert:nth-child(5),#grid div.vert:nth-child(6),#grid div.vert:nth-child(7),#grid div.vert:nth-child(8),#grid div.vert:nth-child(9){display:inline-block!important}#grid div.vert:nth-child(25),#grid div.vert:nth-child(26),#grid div.vert:nth-child(27),#grid div.vert:nth-child(28),#grid div.vert:nth-child(29),#grid div.vert:nth-child(30),#grid div.vert:nth-child(31){display:none!important}#grid div.horiz{height:10px;border-bottom:1px dotted rgba(100,100,100,.2);margin:0;padding:0}.bg-prime-blue{background-color:#067ab4}.bg-secondary-gray{background-color:#666}.bg-light-blue{background-color:#bcc9d5}.bg-dark-gray{background-color:#444}.bg-dusty-blue{background-color:#97b1cf}.bg-warm-gray{background-color:#cccb9b}.bg-taupe{background-color:#cccb6c}.bg-green-highlight{background-color:#c4d63f}.bg-lime-highlight{background-color:#dad632}.bg-purple-highlight{background-color:#b6539c}.bg-magenta{background-color:#d71481}.bg-blue-highlight{background-color:#4cc8f3}.bg-ochre{background-color:#fab230}.bg-green{background-color:#4fa721}.bg-lime{background-color:#b6bd26}.bg-purple{background-color:#7f0e7c}.bg-burgundy{background-color:#b1103e}.bg-dark-blue{background-color:#0e2875}.bg-gold{background-color:#fd9827}.bg-teal{background-color:#20c6b2}.bg-mint-green{background-color:#9cfecd}.bg-yellow{background-color:#feed35}.bg-white{background-color:#fff}.alt.inline-list>li{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;vertical-align:middle;float:none}.text-upper{text-transform:uppercase!important}body{font-family:arial}.font-showcase h1,.font-showcase h2,.font-showcase h3,.font-showcase h4,.font-showcase h5,.font-showcase h6{font-weight:100;letter-spacing:-1px;margin:10px 0;-webkit-font-smoothing:antialiased}.font-showcase h1{font-family:omnes_att_light;font-size:48px;font-size:3rem;line-height:48px}.font-showcase h2,.price{font-family:omnes_att_light;font-size:36px;font-size:2.25rem;line-height:36px}.font-showcase h3{font-family:arial;font-size:24px;font-size:1.5rem;line-height:28px}.font-showcase h4,.font-showcase h4.font-showcase-font-example,.font-showcase h4.font-showcase-font-name{font-family:arial;font-size:18px;font-size:1.125rem;line-height:22px;-webkit-font-smoothing:antialiased}.font-showcase h5{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.font-showcase h6{font-family:arial;font-size:11px;font-size:.6875rem;line-height:30px;font-weight:100;-webkit-font-smoothing:antialiased}.body-copy,.font-showcase p{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.body-copy-short{font-family:arial;font-size:12px;font-size:.75rem;line-height:15px;-webkit-font-smoothing:antialiased}p [class*=icon]{display:inline-block;vertical-align:middle;margin-top:-4px}.details-label{display:block;font-family:arial;font-size:11px;font-size:.6875rem;line-height:15px}.details-label+.price{line-height:28px}.price{letter-spacing:-1px;-webkit-font-smoothing:antialiased}.price sup{font-size:18px;font-size:1.125rem;vertical-align:baseline;top:-11px;margin:0 2px}.price-alt{font-size:24px;font-size:1.5rem;line-height:24px}.price-alt sup{font-size:12px;font-size:.75rem;top:-8px}.promo-tagline{font-family:omnes_att_medium_italic;font-size:16px;font-size:1rem;line-height:20px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.promo-text{font-family:clearview_att_italic;font-size:12px;font-size:.75rem;line-height:15px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.divider,.divider-dark,hr{border:0;border-bottom:1px solid #d3d3d3}.divider-light{border-color:#e5e5e5}dl{font-family:arial;color:#444;font-size:12px;font-size:.75rem}dt{font-family:arial;font-size:11px;font-size:.6875rem;display:block!important;margin:10px 0 5px!important;width:auto!important;text-transform:uppercase}dt a{font-family:arial;color:#067ab4;text-transform:none}dd{display:inline!important;line-height:20px}[data-highlight]{background-color:#c9e9f9;-webkit-animation:highlight-fade 3s infinite}@-webkit-keyframes highlight-fade{100%,80%{background-color:transparent}}.att-slider{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:10px;margin:120px 0;position:relative}.att-slider:first-child{margin:0}.att-slider__track{position:absolute;top:0;right:0;bottom:0;left:0;background-color:none}.att-slider__range{position:absolute;left:0;-webkit-mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);background:#157BB2;border-radius:5px;height:100%;z-index:1}.att-slider__range--disabled{background-color:#D3D3D3}.att-slider__handles-container{height:100%;position:relative;border:1px solid #888;border-radius:5px}.att-slider__handle{-webkit-transition:background-color .2s ease-out;-moz-transition:background-color .2s ease-out;transition:background-color .2s ease-out;box-shadow:0 0 0 1px #fff;background:#157BB2;border-radius:100%;cursor:pointer;height:16px;margin:-4px 0 0 -7px;position:absolute;width:15px;z-index:1}.att-slider__handle--dragging,.att-slider__handle:hover{z-index:2;background-color:#158BC3}.att-slider__handle--disabled,.att-slider__handle--disabled:hover{box-shadow:none;background:0 0;cursor:default;z-index:1}.att-slider__handle.att-slider-handle-disabled{width:0;margin:0}.att-slider__range.att-slider__range--disabled{border-top-right-radius:0;border-bottom-right-radius:0}.att-slider__handle .att-tooltip--textonly,.att-slider__label{position:absolute;top:-25px;font-size:12px;font-size:.75rem;color:#6f6f6f;font-family:arial;margin:0;text-align:left;z-index:0}.att-slider__label:after{position:absolute;bottom:-5px;background-color:#888;content:'';display:block;height:5px;width:1px}.att-slider__label--max,.att-slider__label--max:after{right:0}.att-slider__label--below{bottom:-34px;top:auto}.att-slider__label--below:after{bottom:auto;top:-7px;left:50%}.att-slider__handle .att-tooltip{white-space:nowrap}.att-slider__handle .att-tooltip--textonly:after{position:absolute;bottom:-5px;left:50%;background-color:#888;border:0;content:'';display:block;height:5px;margin:0 0 0 -1px;width:1px}.step-slider.disabled{opacity:.5}.step-slider.disabled .jslider-value-to{display:none}.step-slider.disabled .jslider-bg i.v,.step-slider.disabled .jslider-pointer-to{background-color:#AAA}.step-slider{display:block;width:100%;height:1em;position:relative;top:.6em;font-family:Arial,sans-serif}.step-slider table{width:100%;border-collapse:collapse;border:0}.step-slider td,.step-slider th{padding:0;vertical-align:top;text-align:left;border:0}.step-slider .step-slider-green{background-color:#4CA90C}.step-slider .step-slider-blue{background-color:#44C8F5}.step-slider .step-slider-magenta{background-color:#DA0081}.step-slider .step-slider-gold{background-color:#F90}.step-slider .step-slider-purple{background-color:#81017E}.step-slider .step-slider-dark-blue{background-color:#0C2577}.step-slider .step-slider-regular{background-color:#0574AC}.step-slider .step-slider-white{background-color:#fff}.step-slider .cutoff-slider{border:1px solid #000!important}.step-slider .cutoff-slider-dividers span{height:7px!important}.step-slider .jslider-label-cutoff{position:relative!important;float:right}.step-slider .jslider-cutoff{position:relative;height:7px;top:0;background-color:#0574AC;border-bottom-left-radius:5px;border-top-left-radius:5px;border-bottom-right-radius:5px;border-top-right-radius:5px}.step-slider .jslider-limitless .jslider-label,.step-slider .jslider-single .jslider-bg .v,.step-slider .jslider-single .jslider-pointer-to,.step-slider .jslider-single .jslider-value-to{display:none}.step-slider .jslider-pointer-to{left:80%;top:-6px}.step-slider .jslider-pointer{border-radius:100%;border:2px solid #fff;top:-5px;width:15px;height:15px;z-index:10;background-position:0 -60px;position:absolute;left:20%;margin-left:-6px;cursor:pointer}.step-slider .jslider-bg{position:relative;height:100%}.step-slider .jslider-bg i{height:5px;position:absolute;width:5px}.step-slider .jslider-bg i.l{height:6px;background-color:#E5E5E5;border-top-left-radius:3px;border-bottom-left-radius:3px;width:50%;background-position:0 0;left:0}.step-slider .jslider-bg i.r{height:6px;background-color:#E5E5E5;border-top-right-radius:3px;border-bottom-right-radius:3px;width:50%;left:50%;background-position:right 0}.step-slider .jslider-bg i.v{border-top-left-radius:3px;border-bottom-left-radius:3px;position:absolute;width:60%;left:20%;top:0;height:5px;background-repeat:repeat-x;background-position:0 -40px}.step-slider .jslider-scale{position:relative;top:9px;z-index:9}.step-slider .jslider-scale span{top:-9px;width:1px;border-left:0;position:absolute;height:5px;font-size:0}.step-slider .show-dividers span{background-color:#FFF}.step-slider .jslider-label{top:15px;font-size:9px;line-height:12px;color:#000;opacity:.4;white-space:nowrap;padding:0 2px;position:absolute;left:0}.step-slider .jslider-label-to{left:auto;right:0}.step-slider #jslider-value-left,.step-slider #left-pointer{display:none}.step-slider .jslider-value{font-size:9px;white-space:nowrap;padding:1px 2px 0;position:absolute;top:-19px;left:20%;background:#fff;line-height:12px;-moz-border-radius:2px;-webkit-border-radius:2px;-o-border-radius:2px;border-radius:2px}.step-slider .jslider-value-to{margin-left:-31px;-webkit-background-clip:border-box;-webkit-background-origin:padding-box;-webkit-background-size:auto;-webkit-box-shadow:rgba(0,0,0,.298039) 0 4px 5px 0;-webkit-transition-delay:0s;-webkit-transition-duration:.2s;-webkit-transition-property:opacity;-webkit-transition-timing-function:ease-out;background-attachment:scroll;background-clip:border-box;background-color:#fefefe;background-image:none;background-origin:padding-box;background-size:auto;border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top-left-radius:5px;border-top-right-radius:5px;box-shadow:rgba(0,0,0,.298039) 0 4px 5px 0;box-sizing:border-box;color:#444;display:block;font-family:arial;font-size:9px;line-height:15px;max-width:215px;opacity:1;padding:5px;position:absolute;z-index:0;top:-38px}.step-slider .jslider-value-to::after{content:'';border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:6px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:transparent;border-left-style:solid;border-left-width:6px;border-right-color:transparent;border-right-style:solid;border-right-width:6px;border-top-color:#fefefe;border-top-style:solid;border-top-width:6px;bottom:-12px;box-sizing:border-box;display:block;height:12px;left:40%;margin-top:-7px;position:absolute;top:auto;width:12px} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/style.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/style.css
deleted file mode 100644
index a831584e..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/style.css
+++ /dev/null
@@ -1 +0,0 @@
-.att-popover .pop-over-caret.pop-over-caret-border--below@charset "UTF-8";[class*=" icon-"],[class^=icon-]{font-family:atticons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-wireless-outline:before{content:"\e600"}.icon-wireless-dashboard:before{content:"\e601"}.icon-website-hosting-outline:before{content:"\e602"}.icon-volume-up:before{content:"\e603"}.icon-volume-mute:before{content:"\e604"}.icon-volume-down:before{content:"\e605"}.icon-video:before{content:"\e606"}.icon-video-tutorials:before{content:"\e607"}.icon-video-tutorials-outline:before{content:"\e608"}.icon-video-outline:before{content:"\e609"}.icon-user:before{content:"\e60a"}.icon-user-small:before{content:"\e60b"}.icon-user-outline:before{content:"\e60c"}.icon-user-large-outline:before{content:"\e60d"}.icon-upgrades:before{content:"\e60e"}.icon-upgrades-outline:before{content:"\e60f"}.icon-unlimited-nights-weekends-outline:before{content:"\e610"}.icon-unlimited-minutes-outline:before{content:"\e611"}.icon-unlimited-messaging-outline:before{content:"\e612"}.icon-unlimited-m2m-outline:before{content:"\e613"}.icon-unlimited-calling:before{content:"\e614"}.icon-tv-packages-outline:before{content:"\e615"}.icon-travel-minutes-outline:before{content:"\e616"}.icon-trash:before{content:"\e617"}.icon-tollfree-outline:before{content:"\e618"}.icon-tiles:before{content:"\e619"}.icon-tiles-small:before{content:"\e61a"}.icon-tickets:before{content:"\e61b"}.icon-tickets-returned:before{content:"\e61c"}.icon-tickets-referred:before{content:"\e61d"}.icon-tickets-outline:before{content:"\e61e"}.icon-tickets-open:before{content:"\e61f"}.icon-tickets-escalate:before{content:"\e620"}.icon-tickets-contested:before{content:"\e621"}.icon-tickets-closed:before{content:"\e622"}.icon-tickets-cleared:before{content:"\e623"}.icon-tickets-arquived:before{content:"\e624"}.icon-tickets-active:before{content:"\e625"}.icon-technical-specifications:before{content:"\e626"}.icon-tech-support:before{content:"\e627"}.icon-tech-support-outline:before{content:"\e628"}.icon-tablet:before{content:"\e629"}.icon-tablet-outline:before{content:"\e62a"}.icon-support:before{content:"\e62b"}.icon-support-outline:before{content:"\e62c"}.icon-star:before{content:"\e62d"}.icon-sort:before{content:"\e62e"}.icon-social-outline:before{content:"\e62f"}.icon-smartphone:before{content:"\e630"}.icon-smartphone-outline:before{content:"\e631"}.icon-signout-outline:before{content:"\e632"}.icon-sign-out:before{content:"\e633"}.icon-shop:before{content:"\e634"}.icon-shop-outline:before{content:"\e635"}.icon-shared-outline:before{content:"\e636"}.icon-shared-minutes-outline:before{content:"\e637"}.icon-share:before{content:"\e638"}.icon-settings:before{content:"\e639"}.icon-send-invoice-outline:before{content:"\e63a"}.icon-see-more:before{content:"\e63b"}.icon-see-less:before{content:"\e63c"}.icon-search:before{content:"\e63d"}.icon-search-small:before{content:"\e63e"}.icon-screen-calls-outline:before{content:"\e63f"}.icon-save-time-outline:before{content:"\e640"}.icon-saas-enablement-outline:before{content:"\e641"}.icon-s-beam:before{content:"\e642"}.icon-s-beam-outline:before{content:"\e643"}.icon-rollover-outline:before{content:"\e644"}.icon-rollover-minutes:before{content:"\e645"}.icon-reviews-outline:before{content:"\e646"}.icon-reports:before{content:"\e647"}.icon-reports-outline:before{content:"\e648"}.icon-recommendation-tool:before{content:"\e649"}.icon-receivers-outline:before{content:"\e64a"}.icon-productivity-outline:before{content:"\e64b"}.icon-print:before{content:"\e64c"}.icon-plus:before{content:"\e64d"}.icon-plus-outline:before{content:"\e64e"}.icon-play:before{content:"\e64f"}.icon-platform-as-service-outline:before{content:"\e650"}.icon-plans:before{content:"\e651"}.icon-plans-outline:before{content:"\e652"}.icon-pie-chart:before{content:"\e653"}.icon-photos:before{content:"\e654"}.icon-photos-outline:before{content:"\e655"}.icon-phone-data-outline:before{content:"\e656"}.icon-payments:before{content:"\e657"}.icon-payments-outline:before{content:"\e658"}.icon-pause:before{content:"\e659"}.icon-password:before{content:"\e65a"}.icon-password-outline:before{content:"\e65b"}.icon-overview:before{content:"\e65c"}.icon-overview-small:before{content:"\e65d"}.icon-overages:before{content:"\e65e"}.icon-overages-outline:before{content:"\e65f"}.icon-outage-outline:before{content:"\e660"}.icon-orders:before{content:"\e661"}.icon-orders-outline:before{content:"\e662"}.icon-optional-applications-outline:before{content:"\e663"}.icon-office-at-hand-outline:before{content:"\e664"}.icon-offers:before{content:"\e665"}.icon-offers-outline:before{content:"\e666"}.icon-notifications:before{content:"\e667"}.icon-notifications-outline:before{content:"\e668"}.icon-normal-screen:before{content:"\e669"}.icon-nights-weekends-outline:before{content:"\e66a"}.icon-new-requests-outline:before{content:"\e66b"}.icon-network:before{content:"\e66c"}.icon-network-dashboard:before{content:"\e66d"}.icon-netbook:before{content:"\e66e"}.icon-netbook-outline:before{content:"\e66f"}.icon-music:before{content:"\e670"}.icon-music-video:before{content:"\e671"}.icon-music-video-outline:before{content:"\e672"}.icon-music-outline:before{content:"\e673"}.icon-modem:before{content:"\e674"}.icon-modem-outline:before{content:"\e675"}.icon-mobile-insurance:before{content:"\e676"}.icon-mobile-insurance-outline:before{content:"\e677"}.icon-mobile-2-mobile-outline:before{content:"\e678"}.icon-missed-calls-outline:before{content:"\e679"}.icon-minutes:before{content:"\e67a"}.icon-minutes-outline:before{content:"\e67b"}.icon-messaging:before{content:"\e67c"}.icon-messaging-toolkit-outline:before{content:"\e67d"}.icon-messaging-outline:before{content:"\e67e"}.icon-messaging-email:before{content:"\e67f"}.icon-messaging-email-outline:before{content:"\e680"}.icon-message-small:before{content:"\e681"}.icon-maintenance:before{content:"\e682"}.icon-location-pin:before{content:"\e683"}.icon-location-pin-small:before{content:"\e684"}.icon-local-search:before{content:"\e685"}.icon-local-long-distance-outline:before{content:"\e686"}.icon-list:before{content:"\e687"}.icon-learn:before{content:"\e688"}.icon-learn-outline:before{content:"\e689"}.icon-laptop:before{content:"\e68a"}.icon-landline:before{content:"\e68b"}.icon-landline-outline:before{content:"\e68c"}.icon-invoices:before{content:"\e68d"}.icon-invoices-outline:before{content:"\e68e"}.icon-inventory:before{content:"\e68f"}.icon-intranet-outline:before{content:"\e690"}.icon-interpreter:before{content:"\e691"}.icon-interpreter-outline:before{content:"\e692"}.icon-internet:before{content:"\e693"}.icon-internet-outline:before{content:"\e694"}.icon-internet-24-outline:before{content:"\e695"}.icon-internet-18-outline:before{content:"\e696"}.icon-international-outline:before{content:"\e697"}.icon-international-long-distance-outline:before{content:"\e698"}.icon-international-data-outline:before{content:"\e699"}.icon-installation-outline:before{content:"\e69a"}.icon-information:before{content:"\e69b"}.icon-info-success:before{content:"\e69c"}.icon-info-alert:before{content:"\e69d"}.icon-info-alert-outline:before{content:"\e69e"}.icon-included-checkmark:before{content:"\e69f"}.icon-included-checkmark-outline:before{content:"\e6a0"}.icon-hotspot:before{content:"\e6a1"}.icon-hotspot-outline:before{content:"\e6a2"}.icon-hotspot-access-outline:before{content:"\e6a3"}.icon-home:before{content:"\e6a4"}.icon-help:before{content:"\e6a5"}.icon-help-outline:before{content:"\e6a6"}.icon-hd:before{content:"\e6a7"}.icon-hd-outline:before{content:"\e6a8"}.icon-hamburger:before{content:"\e6a9"}.icon-group-outline:before{content:"\e6aa"}.icon-gps:before{content:"\e6ab"}.icon-gps-outline:before{content:"\e6ac"}.icon-go-paperless-email-outline:before{content:"\e6ad"}.icon-global-messaging-outline:before{content:"\e6ae"}.icon-gamepad-outline:before{content:"\e6af"}.icon-game-devices:before{content:"\e6b0"}.icon-full-screen:before{content:"\e6b1"}.icon-forward-calls-outline:before{content:"\e6b2"}.icon-forum:before{content:"\e6b3"}.icon-forum-outline:before{content:"\e6b4"}.icon-filter:before{content:"\e6b5"}.icon-extras:before{content:"\e6b6"}.icon-extras-outline:before{content:"\e6b7"}.icon-erase:before{content:"\e6b8"}.icon-envelope:before{content:"\e6b9"}.icon-envelope-outline:before{content:"\e6ba"}.icon-enterprise-messaging-outline:before{content:"\e6bb"}.icon-edit:before{content:"\e6bc"}.icon-duplicate:before{content:"\e6bd"}.icon-dropdown-up:before{content:"\f10d"}.icon-dropdown-down:before{content:"\f104"}.icon-download:before{content:"\e6c0"}.icon-download-outline:before{content:"\e6c1"}.icon-disputes:before{content:"\e6c2"}.icon-detailed-billing:before{content:"\e6c3"}.icon-detailed-billing-outline:before{content:"\e6c4"}.icon-desktop-outline:before{content:"\e6c5"}.icon-data:before{content:"\e6c6"}.icon-data-outline:before{content:"\e6c7"}.icon-data-additional-outline:before{content:"\e6c8"}.icon-compare:before{content:"\e6c9"}.icon-cloud-storage-outline:before{content:"\e6ca"}.icon-cloud-outline:before{content:"\e6cb"}.icon-cloud-computing-outline:before{content:"\e6cc"}.icon-cloud-backup:before{content:"\e6cd"}.icon-cloud-backup-outline:before{content:"\e6ce"}.icon-circle-information-outline:before{content:"\e6cf"}.icon-circle-action-remove:before{content:"\e6d0"}.icon-circle-action-plus-outline:before{content:"\e6d1"}.icon-circle-action-minus-outline:before{content:"\e6d2"}.icon-circle-action-empty:before{content:"\e6d3"}.icon-circle-action-delete-outline:before{content:"\e6d4"}.icon-circle-action-close:before{content:"\e6d5"}.icon-circle-action-check-outline:before{content:"\e6d6"}.icon-circle-action-add:before{content:"\e6d7"}.icon-chip-outline:before{content:"\e6d8"}.icon-chevron-up:before{content:"\e6d9"}.icon-chevron-right:before{content:"\e6da"}.icon-chevron-left:before{content:"\e6db"}.icon-chevron-down:before{content:"\e6dc"}.icon-checkbox-checkmark:before{content:"\e6dd"}.icon-chat:before{content:"\e6de"}.icon-chat-small:before{content:"\e6df"}.icon-case-studies:before{content:"\e6e0"}.icon-cart:before{content:"\e6e1"}.icon-cart-small:before{content:"\e6e2"}.icon-camera:before{content:"\e6e3"}.icon-camera-outline:before{content:"\e6e4"}.icon-calendar-outline:before{content:"\e6e5"}.icon-business:before{content:"\e6e6"}.icon-business-tv:before{content:"\e6e7"}.icon-business-tv-outline:before{content:"\e6e8"}.icon-business-tv-additional-packs-outline:before{content:"\e6e9"}.icon-business-outline:before{content:"\e6ea"}.icon-business-center:before{content:"\e6eb"}.icon-business-center-outline:before{content:"\e6ec"}.icon-bundles:before{content:"\e6ed"}.icon-bundles-outline:before{content:"\e6ee"}.icon-billing:before{content:"\e6ef"}.icon-billing-history-outline:before{content:"\e6f0"}.icon-billing-dashboard:before{content:"\e6f1"}.icon-bd-maps:before{content:"\e6f2"}.icon-basicphone:before{content:"\e6f3"}.icon-basicphone-outline:before{content:"\e6f4"}.icon-barcode-outline:before{content:"\e6f5"}.icon-bar-chart-vertical:before{content:"\e6f6"}.icon-bar-chart-horizontal:before{content:"\e6f7"}.icon-arrow-up:before{content:"\e6f8"}.icon-arrow-up-right:before{content:"\e6f9"}.icon-arrow-up-left:before{content:"\e6fa"}.icon-arrow-up-circle:before{content:"\e6fb"}.icon-arrow-right:before{content:"\e6fc"}.icon-arrow-right-circle:before{content:"\e6fd"}.icon-arrow-left:before{content:"\e6fe"}.icon-arrow-left-circle:before{content:"\e6ff"}.icon-arrow-down:before{content:"\e700"}.icon-arrow-down-right:before{content:"\e701"}.icon-arrow-down-left:before{content:"\e702"}.icon-arrow-down-circle:before{content:"\e703"}.icon-arrow-double-right:before{content:"\e704"}.icon-arrow-double-left:before{content:"\e705"}.icon-apps-media:before{content:"\e706"}.icon-apps-media-outline:before{content:"\e707"}.icon-apps-marketplace:before{content:"\e708"}.icon-apps-marketplace-outline:before{content:"\e709"}.icon-analytics:before{content:"\e70a"}.icon-alt-media-subscription-outline:before{content:"\e70b"}.icon-all-locations:before{content:"\e70c"}.icon-all-devices:before{content:"\e70d"}.icon-all-devices-outline:before{content:"\e70e"}.icon-alarms:before{content:"\e70f"}.icon-alarms-outline:before{content:"\e710"}.icon-address-ip-outline:before{content:"\e711"}.icon-addons:before{content:"\e712"}.icon-addons-outline:before{content:"\e713"}.icon-additional-services:before{content:"\e714"}.icon-additional-minutes-outline:before{content:"\e715"}.icon-add:before{content:"\e716"}.icon-add-widget:before{content:"\e717"}.icon-activity-feed:before{content:"\e718"}.icon-accessories:before{content:"\e719"}.icon-accessories-outline:before{content:"\e71a"}.icon-move:before{content:"\e71b"}.icon-keyboard:before{content:"\e71c"}.icon-social-business-community:before{content:"\e71d"}.icon-social-facebook:before{content:"\e71e"}.icon-social-feed:before{content:"\e71f"}.icon-social-google-plus:before{content:"\e720"}.icon-social-linkedin:before{content:"\e721"}.icon-social-network-exchange:before{content:"\e722"}.icon-social-twitter-bird:before{content:"\e723"}.icon-social-twitter:before{content:"\e724"}.icon-social-youtube:before{content:"\e725"}.icon-cart-small,.icon-chat-small,.icon-location-pin-small,.icon-message-small,.icon-overview-small,.icon-search-small,.icon-user-small{display:inline-block;vertical-align:middle;width:20px;font-size:56px}.icon-cart-small:before,.icon-chat-small:before,.icon-location-pin-small:before,.icon-message-small:before,.icon-overview-small:before,.icon-search-small:before,.icon-user-small:before{margin-left:-18px}@font-face{font-family:full-linear-atticons;src:url(icons/full-linear-atticons.eot?-y1p387);src:url(icons/full-linear-atticons.eot?#iefix-y1p387) format('embedded-opentype'),url(icons/full-linear-atticons.woff?-y1p387) format('woff'),url(icons/full-linear-atticons.ttf?-y1p387) format('truetype'),url(icons/full-linear-atticons.svg?-y1p387#full-linear-atticons) format('svg');font-weight:400;font-style:normal}[class*=" full-linear-icon-"],[class^=full-linear-icon-]{font-family:full-linear-atticons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.full-linear-icon-accessories:before{content:"\e600"}.full-linear-icon-airport:before{content:"\e601"}.full-linear-icon-api:before{content:"\e602"}.full-linear-icon-bus:before{content:"\e603"}.full-linear-icon-business-continuity:before{content:"\e604"}.full-linear-icon-calendar:before{content:"\e605"}.full-linear-icon-cargoship:before{content:"\e607"}.full-linear-icon-cctv:before{content:"\e609"}.full-linear-icon-checklist:before{content:"\e60a"}.full-linear-icon-clipboard:before{content:"\e60b"}.full-linear-icon-cloud-download:before{content:"\e60c"}.full-linear-icon-cloud-upload:before{content:"\e60e"}.full-linear-icon-construction:before{content:"\e60f"}.full-linear-icon-contacts:before{content:"\e610"}.full-linear-icon-costs:before{content:"\e611"}.full-linear-icon-curved-arrow:before{content:"\e612"}.full-linear-icon-data:before{content:"\e613"}.full-linear-icon-database:before{content:"\e614"}.full-linear-icon-desk-phone:before{content:"\e615"}.full-linear-icon-device-ecosystem:before{content:"\e617"}.full-linear-icon-document:before{content:"\e618"}.full-linear-icon-ecommerce:before{content:"\e619"}.full-linear-icon-emergency-vehicle:before{content:"\e61a"}.full-linear-icon-external-storage:before{content:"\e61d"}.full-linear-icon-factory:before{content:"\e61f"}.full-linear-icon-financial:before{content:"\e621"}.full-linear-icon-gateway:before{content:"\e623"}.full-linear-icon-global-network:before{content:"\e624"}.full-linear-icon-government:before{content:"\e627"}.full-linear-icon-growth:before{content:"\e628"}.full-linear-icon-healthcare:before{content:"\e629"}.full-linear-icon-home-security:before{content:"\e62b"}.full-linear-icon-hosting:before{content:"\e62d"}.full-linear-icon-integrated:before{content:"\e62e"}.full-linear-icon-interaction:before{content:"\e630"}.full-linear-icon-lan:before{content:"\e631"}.full-linear-icon-large-building:before{content:"\e632"}.full-linear-icon-manual:before{content:"\e633"}.full-linear-icon-medical-facility:before{content:"\e634"}.full-linear-icon-medium-building:before{content:"\e637"}.full-linear-icon-meter:before{content:"\e638"}.full-linear-icon-mobile-app:before{content:"\e63b"}.full-linear-icon-mobile-workplace:before{content:"\e63d"}.full-linear-icon-network-folder:before{content:"\e63e"}.full-linear-icon-operations:before{content:"\e63f"}.full-linear-icon-person:before{content:"\e643"}.full-linear-icon-pointer:before{content:"\e646"}.full-linear-icon-police:before{content:"\e648"}.full-linear-icon-report:before{content:"\e649"}.full-linear-icon-router:before{content:"\e64a"}.full-linear-icon-sales-report:before{content:"\e64b"}.full-linear-icon-search-find:before{content:"\e64c"}.full-linear-icon-semi-truck:before{content:"\e64f"}.full-linear-icon-server:before{content:"\e650"}.full-linear-icon-settings:before{content:"\e651"}.full-linear-icon-share:before{content:"\e652"}.full-linear-icon-small-building:before{content:"\e653"}.full-linear-icon-stadium:before{content:"\e657"}.full-linear-icon-star:before{content:"\e65a"}.full-linear-icon-straight-arrow:before{content:"\e65b"}.full-linear-icon-tablet:before{content:"\e65d"}.full-linear-icon-tanker-truck:before{content:"\e65f"}.full-linear-icon-telepresence:before{content:"\e660"}.full-linear-icon-time:before{content:"\e663"}.full-linear-icon-train:before{content:"\e664"}.full-linear-icon-transform:before{content:"\e665"}.full-linear-icon-truck:before{content:"\e66a"}.full-linear-icon-two-people:before{content:"\e66c"}.full-linear-icon-ultra-fast:before{content:"\e66d"}.full-linear-icon-upload:before{content:"\e66e"}.full-linear-icon-usa:before{content:"\e66f"}.full-linear-icon-utilities:before{content:"\e671"}.full-linear-icon-uverse-tv:before{content:"\e672"}.full-linear-icon-video-conferencing:before{content:"\e673"}.full-linear-icon-virtual:before{content:"\e675"}.full-linear-icon-warehouse:before{content:"\e678"}.full-linear-icon-web-conferencing:before{content:"\e67a"}.full-linear-icon-wldintl:before{content:"\e67b"}.full-linear-icon-workstation:before{content:"\e67d"}.full-linear-icon-accounts-billing:before{content:"\e606"}.full-linear-icon-airplane:before{content:"\e608"}.full-linear-icon-application:before{content:"\e60d"}.full-linear-icon-business-tv:before{content:"\e616"}.full-linear-icon-camera:before{content:"\e61b"}.full-linear-icon-cart:before{content:"\e61c"}.full-linear-icon-chat:before{content:"\e61e"}.full-linear-icon-city:before{content:"\e620"}.full-linear-icon-cloud:before{content:"\e622"}.full-linear-icon-creditcard:before{content:"\e625"}.full-linear-icon-cruise:before{content:"\e626"}.full-linear-icon-deptstr:before{content:"\e62a"}.full-linear-icon-dining:before{content:"\e62c"}.full-linear-icon-download:before{content:"\e62f"}.full-linear-icon-email:before{content:"\e635"}.full-linear-icon-employee-id:before{content:"\e636"}.full-linear-icon-error:before{content:"\e639"}.full-linear-icon-ethernet:before{content:"\e63a"}.full-linear-icon-faqs:before{content:"\e63c"}.full-linear-icon-featured:before{content:"\e640"}.full-linear-icon-file:before{content:"\e641"}.full-linear-icon-firewall:before{content:"\e642"}.full-linear-icon-flip:before{content:"\e644"}.full-linear-icon-folder:before{content:"\e645"}.full-linear-icon-forum:before{content:"\e647"}.full-linear-icon-gps:before{content:"\e64d"}.full-linear-icon-group:before{content:"\e64e"}.full-linear-icon-home:before{content:"\e654"}.full-linear-icon-hotel:before{content:"\e655"}.full-linear-icon-hotspot:before{content:"\e656"}.full-linear-icon-included-checkmark:before{content:"\e658"}.full-linear-icon-info-alert:before{content:"\e659"}.full-linear-icon-information:before{content:"\e65c"}.full-linear-icon-internet:before{content:"\e65e"}.full-linear-icon-keyboard:before{content:"\e661"}.full-linear-icon-keypad:before{content:"\e662"}.full-linear-icon-laptop:before{content:"\e666"}.full-linear-icon-lightbulb:before{content:"\e667"}.full-linear-icon-location-pin:before{content:"\e668"}.full-linear-icon-lock:before{content:"\e669"}.full-linear-icon-maintenance:before{content:"\e66b"}.full-linear-icon-mobile:before{content:"\e670"}.full-linear-icon-music:before{content:"\e674"}.full-linear-icon-network:before{content:"\e676"}.full-linear-icon-new:before{content:"\e677"}.full-linear-icon-offers:before{content:"\e679"}.full-linear-icon-overview:before{content:"\e67c"}.full-linear-icon-password:before{content:"\e67f"}.full-linear-icon-pdf:before{content:"\e680"}.full-linear-icon-plus:before{content:"\e684"}.full-linear-icon-power-onoff:before{content:"\e686"}.full-linear-icon-print:before{content:"\e687"}.full-linear-icon-protect:before{content:"\e689"}.full-linear-icon-remove:before{content:"\e690"}.full-linear-icon-rental:before{content:"\e692"}.full-linear-icon-restricted:before{content:"\e694"}.full-linear-icon-s-beam:before{content:"\e696"}.full-linear-icon-save:before{content:"\e698"}.full-linear-icon-search-people:before{content:"\e69b"}.full-linear-icon-smartphone:before{content:"\e6a0"}.full-linear-icon-social:before{content:"\e6a2"}.full-linear-icon-sound-message:before{content:"\e6a4"}.full-linear-icon-sports:before{content:"\e6a7"}.full-linear-icon-tech-support:before{content:"\e6aa"}.full-linear-icon-temperature:before{content:"\e6ab"}.full-linear-icon-top-picks:before{content:"\e6ad"}.full-linear-icon-towtruck:before{content:"\e6af"}.full-linear-icon-update:before{content:"\e6b5"}.full-linear-icon-usb-drive:before{content:"\e6b6"}.full-linear-icon-video:before{content:"\e6b7"}.full-linear-icon-voice-data:before{content:"\e6ba"}.full-linear-icon-vpn:before{content:"\f104"}.full-linear-icon-weather:before{content:"\e6c4"}.full-linear-icon-webwindow:before{content:"\e6c5"}.full-linear-icon-wifi:before{content:"\e6c6"}code[class*=language-],pre[class*=language-]{color:#f8f8f2;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono',monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#272822}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.attr-name,.token.builtin,.token.selector,.token.string{color:#a6e22e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value{color:#e6db74}.token.keyword{color:#66d9ef}.token.important,.token.regex{color:#fd971f}.token.important{font-weight:700}.token.entity{cursor:help}pre.line-numbers{position:relative;counter-reset:linenumber}pre.line-numbers>code{position:relative}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.alert,.alert-success{position:fixed;top:0;left:0;right:0;z-index:2;background-color:#e9eee3;color:#444;font-family:arial;font-size:12px;padding:0;border:0;border-radius:0}.alert-warning{background-color:#fff3d9}.alert-error{background-color:#f3e6e5}.alert-info{background-color:#dfeff7}.alert .container{padding:15px 90px 15px 60px}.alert .container:before{content:'\e69c';position:absolute;top:14px;left:25px;font-family:atticons;font-size:14px;color:#6ebb1f}.alert-warning .container:before{content:'\e69d';color:#fcb314}.alert-error .container:before{content:'\e69d';color:#ff4539}.alert-info .container:before{content:'\e69b';color:#067ab4}.alert strong{font-family:arial;font-size:11px;font-weight:100;text-transform:uppercase}.alert a{color:#067ab4}.alert a:hover{color:#199ddf}.alert [data-role=close]{position:absolute;top:13px;right:20px;font-size:11px;height:20px;line-height:23px;border:0}.alert [data-role=close] [class^=icon-]{font-size:20px;width:15px;color:#777;margin:0;vertical-align:middle;display:inline-block;margin-top:-4px;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out}.alert [data-role=close]:hover [class^=icon-]{color:#199DDF}.alert .container,.alert-inplace{position:relative}.alert-inplace{z-index:1}.alert-inplace .container{width:100%}.tabs{display:inline-block;list-style:none;margin:0;padding:0;font-size:0}.tabs>li{padding:0;margin:0;display:inline-block}.tabs>li a{height:30px;width:auto;margin:0 0 0 -1px;padding:0 30px;background:#f2f2f2;border:1px solid #e7e6e6;text-align:center;font-size:11px;font-size:1.1rem;color:#6f6f6f;text-transform:uppercase;line-height:31px;cursor:pointer;display:inline-block}.tabs>li.first a,.tabs>li:first-child a{border-radius:4px 0 0 4px;margin-left:0}.tabs>li.last a,.tabs>li:last-child a{border-radius:0 4px 4px 0}.tabs>li a:hover{background:#e5e5e5;text-decoration:none;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;transition:all .3s ease-out}.tabs>li.active a{background:#f8f8f8;color:#067ab4}.tabs-alt>li a,.tabs-small>li a{padding:0 15px}.tabs-light>li a{background-color:#fff}.tabs-icons>li a,.tabs-icons>li a:hover,.tabs-icons>li.active a{padding:0;border:0;background:0 0;font-size:28px;line-height:36px;margin-right:10px}.tabs-icons>li a i{vertical-align:middle}.tabs-icons>li a:hover{color:#067ab4}.tab-pane{display:none}.tab-pane.active{display:block}.tab-pane.html{padding:20px;border:1px solid #ddd;border-top:10px solid #272822;border-radius:0 0 3px 3px}address,blockquote,dd,h1,h2,h3,h4,h5,h6,ol,p,pre,table,ul{margin:0;padding:0;margin-bottom:24px;margin-bottom:1.5rem}html{font-size:1em;line-height:1.5}h1{font-size:48px;font-size:3rem;line-height:1}h2{line-height:1.3333333333}h3{line-height:1.6}h4{line-height:1}h5{font-size:20px;font-size:1.25rem;line-height:1.2}h6{font-size:18px;font-size:1.125rem;line-height:1.3333333333}dd,ol,ul{margin-left:48px;margin-left:3rem}li>ol,li>ul{margin-bottom:0}code,kbd,pre,samp{font-family:monospace,monospace}blockquote{text-indent:-.41em;quotes:"“" "”";margin-left:48px;margin-left:3rem}blockquote p:before{content:"“";content:open-quote}blockquote p:after{content:"";content:no-close-quote}blockquote p:last-of-type:after{content:"”";content:close-quote}q{quotes:"‘" "’" "“" "”"}q:before{content:"‘";content:open-quote}q:after{content:"’";content:close-quote}q q:before{content:"“";content:open-quote}q q:after{content:"”";content:close-quote}q:first-child{display:inline-block;text-indent:-.22em}table{width:100%;border-collapse:collapse;border-spacing:0}td,th{padding:12px}#grid{position:absolute;top:0;left:50%;width:980px;margin-left:-490px;counter-reset:section;z-index:9999!important;pointer-events:none;outline:1px solid rgba(0,206,209,.1)}#grid:after{position:fixed;top:0;left:0;content:'Column: 20px Gutter: 20px Margin: 20px';display:block;max-width:90px;padding:3px;background-color:#000;color:#fff;font-size:10px;font-family:monospace;z-index:9999}#grid div.vert{width:20px;outline:solid rgba(0,206,209,.3);outline-width:1px;margin-right:20px;position:relative;background:rgba(255,0,0,.05);counter-increment:section}#grid div.vert.first-line{margin-left:20px}#grid div.vert::after{position:fixed;display:block;text-align:center;color:#fff;width:20px;content:counter(section);top:5px;font-size:8px;font-family:monospace}#grid div.vert:nth-child(24){position:absolute;top:0;right:0}#grid div.vert:nth-child(1),#grid div.vert:nth-child(10),#grid div.vert:nth-child(11),#grid div.vert:nth-child(12),#grid div.vert:nth-child(13),#grid div.vert:nth-child(14),#grid div.vert:nth-child(15),#grid div.vert:nth-child(16),#grid div.vert:nth-child(17),#grid div.vert:nth-child(18),#grid div.vert:nth-child(19),#grid div.vert:nth-child(2),#grid div.vert:nth-child(20),#grid div.vert:nth-child(21),#grid div.vert:nth-child(22),#grid div.vert:nth-child(23),#grid div.vert:nth-child(24),#grid div.vert:nth-child(3),#grid div.vert:nth-child(4),#grid div.vert:nth-child(5),#grid div.vert:nth-child(6),#grid div.vert:nth-child(7),#grid div.vert:nth-child(8),#grid div.vert:nth-child(9){display:inline-block!important}#grid div.vert:nth-child(25),#grid div.vert:nth-child(26),#grid div.vert:nth-child(27),#grid div.vert:nth-child(28),#grid div.vert:nth-child(29),#grid div.vert:nth-child(30),#grid div.vert:nth-child(31){display:none!important}#grid div.horiz{height:10px;border-bottom:1px dotted rgba(100,100,100,.2);margin:0;padding:0}.bg-prime-blue{background-color:#067ab4}.bg-secondary-gray{background-color:#666}.bg-light-blue{background-color:#bcc9d5}.bg-dark-gray{background-color:#444}.bg-dusty-blue{background-color:#97b1cf}.bg-warm-gray{background-color:#cccb9b}.bg-taupe{background-color:#cccb6c}.bg-green-highlight{background-color:#c4d63f}.bg-lime-highlight{background-color:#dad632}.bg-purple-highlight{background-color:#b6539c}.bg-magenta{background-color:#d71481}.bg-blue-highlight{background-color:#4cc8f3}.bg-ochre{background-color:#fab230}.bg-green{background-color:#4fa721}.bg-lime{background-color:#b6bd26}.bg-purple{background-color:#7f0e7c}.bg-burgundy{background-color:#b1103e}.bg-dark-blue{background-color:#0e2875}.bg-gold{background-color:#fd9827}.bg-teal{background-color:#20c6b2}.bg-mint-green{background-color:#9cfecd}.bg-yellow{background-color:#feed35}.bg-white{background-color:#fff}html{background:#fff;overflow:auto}body{background-color:#fff;font-size:14px;font-size:.875rem;margin:0;padding:105px 0 20px;position:relative}.alt.inline-list>li{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;vertical-align:middle;float:none}.text-upper{text-transform:uppercase!important}body{font-family:arial}.font-showcase h1,.font-showcase h2,.font-showcase h3,.font-showcase h4,.font-showcase h5,.font-showcase h6{font-weight:100;letter-spacing:-1px;margin:10px 0;-webkit-font-smoothing:antialiased}.font-showcase h1{font-family:omnes_att_light;font-size:48px;font-size:3rem;line-height:48px}.font-showcase h2,.price{font-family:omnes_att_light;font-size:36px;font-size:2.25rem;line-height:36px}.font-showcase h3{font-family:arial;font-size:24px;font-size:1.5rem;line-height:28px}.font-showcase h4,.font-showcase h4.font-showcase-font-example,.font-showcase h4.font-showcase-font-name{font-family:arial;font-size:18px;font-size:1.125rem;line-height:22px;-webkit-font-smoothing:antialiased}.font-showcase h5{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.font-showcase h6{font-family:arial;font-size:11px;font-size:.6875rem;line-height:30px;font-weight:100;-webkit-font-smoothing:antialiased}.body-copy,.font-showcase p{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.body-copy-short{font-family:arial;font-size:12px;font-size:.75rem;line-height:15px;-webkit-font-smoothing:antialiased}p [class*=icon]{display:inline-block;vertical-align:middle;margin-top:-4px}.details-label{display:block;font-family:arial;font-size:11px;font-size:.6875rem;line-height:15px}.details-label+.price{line-height:28px}.price{letter-spacing:-1px;-webkit-font-smoothing:antialiased}.price sup{font-size:18px;font-size:1.125rem;vertical-align:baseline;top:-11px;margin:0 2px}.price-alt{font-size:24px;font-size:1.5rem;line-height:24px}.price-alt sup{font-size:12px;font-size:.75rem;top:-8px}.promo-tagline{font-family:omnes_att_medium_italic;font-size:16px;font-size:1rem;line-height:20px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.promo-text{font-family:clearview_att_italic;font-size:12px;font-size:.75rem;line-height:15px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.divider,.divider-dark,hr{border:0;border-bottom:1px solid #d3d3d3}.divider-light{border-color:#e5e5e5}dl{font-family:arial;color:#444;font-size:12px;font-size:.75rem}dt{font-family:arial;font-size:11px;font-size:.6875rem;display:block!important;margin:10px 0 5px!important;width:auto!important;text-transform:uppercase}dt a{font-family:arial;color:#067ab4;text-transform:none}dd{display:inline!important;line-height:20px}[data-highlight]{background-color:#c9e9f9;-webkit-animation:highlight-fade 3s infinite}@-webkit-keyframes highlight-fade{100%,80%{background-color:transparent}}.changelog .title{border-bottom:1px solid #aaa;margin:50px 0 20px;padding-bottom:10px}.changelog:first-child .title{margin-top:0}.changelog:first-child .title a{color:#333}.changelog .title a:hover{color:#199DDF}.changelog .title a:hover:after{content:'#';margin-left:5px}.changelog .group{margin-bottom:20px}.changelog .changes-list{margin-bottom:30px}.changelog .changes-list li{margin-bottom:10px}.changelog .changes-list li:first-letter{text-transform:capitalize}.changelog .label-info{background-color:#333}.profile-card{height:380px;width:219px;border-radius:3px;margin:10px;border:solid 1px lightgrey;padding:0!important}.profile-card .top-block{padding:15px 20px;background-color:#e5e5e5;height:185px}.profile-card .bottom-block{padding:15px 20px;background-color:#fff}.profile-image{background:#e5e5e5;margin-bottom:15px;text-align:center}.profile-image .default-img,.profile-image img{display:inline-block;width:60px;height:60px;margin-bottom:10px;background-size:cover;text-align:center;background-position:center;border:6px solid #eee;border-radius:99em;-webkit-border-radius:99em;-moz-border-radius:99em;background-color:#eee}.profile-image .default-img{font-family:arial;color:#AAA;size:24px;line-height:22px;padding:15px;width:60px;height:60px}.profile-image .name{font-family:clearview-att_regular;font-size:18px;line-height:22px;color:#444;text-align:center;margin-bottom:5px;overflow:hidden;max-height:43px;word-break:break-word;white-space:normal}.profile-image .status-icon{border-radius:10px;border:1px solid #fff;margin:0 3px 0 0;width:10px;height:10px}.profile-image .status-icon.icon-green{background:#0c0}.profile-image .status-icon.icon-red{background:red}.profile-image .status-icon.icon-blue{background:#00f}.profile-image .status-icon.icon-yellow{background:#ff0}.profile-image .status{font-family:arial;font-size:12px;line-height:15px;text-align:center;margin:0 15px 0 0;color:#444}.profile-image .status .status-badge{margin-left:5px;border:dotted 1px #444;background-color:transparent;font-weight:400;color:#444;height:17px;padding:0 5px;border-radius:4px;font-size:11px}.profile-details{background:#fff}.profile-details label{display:block;font-family:arial;font-size:12px;color:#444;padding:0;margin:0}.profile-details p{margin:0;font-family:arial;font-size:12px;color:#444;padding-bottom:6.5px}.add-user{background:#e5e5e5;border-style:dotted;font:arial;size:18px;line-height:21.6px;color:#666}.add-user i{font-size:30px;padding-bottom:15px}.atcenter{padding-top:150px;text-align:center}.scroll-viewport{overflow:hidden;position:relative}.scroll-overview{position:absolute;left:0;top:0;padding:0;margin:0;width:100%;display:table}.scroll-bar{background-color:#eaeaea;border-radius:5px;position:absolute;z-index:10;-webkit-transition:.6s ease-in-out opacity;transition:.6s ease-in-out opacity}.scroll-bar.disable{display:none}.scroll-bar.visible,.scroll-bar:hover{opacity:1!important}.scroll-thumb{background-color:#067ab4;border-radius:5px;cursor:pointer;overflow:hidden;position:absolute;top:0;left:1px}body.scroll-no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.next,.prev{position:absolute}.vertical .scroll-bar{top:0;right:0;width:8px;height:100%}.vertical .scroll-thumb{height:20px;width:6px}.vertical .prev{top:-70px;left:0}.vertical .next{bottom:-50px;left:0}.horizontal .scroll-bar{left:0;bottom:0;width:100%;height:8px;border-radius:0;background-color:transparent}.horizontal .scroll-thumb{height:6px;width:20px}.horizontal .prev{left:-26px;top:0;height:inherit;background-color:#999;margin:0;z-index:1;width:26px;border-radius:6px 0 0 6px}.horizontal .next{right:-26px;top:0;height:inherit;background-color:#999;margin:0;z-index:1;width:26px;box-shadow:-7px 0 0 rgba(0,0,0,.2);border-radius:0 6px 6px 0}.horizontal .next:hover,.horizontal .prev:hover{background:#067ab4}.horizontal .next a,.horizontal .prev a{background:inherit;display:block;margin-top:-14px;padding-bottom:20px;padding-top:20px;position:absolute;top:50%;border-radius:6px;color:#fff}.horizontal .next a{right:-15px}.horizontal .prev a{left:-15px}.container{padding-left:20px;padding-right:20px}.att--readless__link,.att--readmore__link,.link{-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;transition:all .3s ease-out;font-size:12px;font-size:.75rem;display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;color:#0574AC;cursor:pointer;line-height:15px;border-bottom:solid 1px}.att--readless__link:hover,.att--readmore__link:hover,.link:hover{color:#0091d9;border-bottom:dotted 1px}.link--large{font-size:14px;font-size:.875rem;line-height:20px}.link--right{*zoom:1;float:right}.link--right:after,.link--right:before{content:" ";display:table}.link--right:after{clear:both}.links-list__item,.links-list__item a{font-size:12px;font-size:.75rem;border-top:1px solid #444;cursor:pointer;display:block;line-height:30px}.links-list__item a a:hover,.links-list__item a:hover,.links-list__item:hover{color:#0091d9}.links-list__item a:first-child,.links-list__item:first-child{border:0}.links-list__item,.links-list__item a{color:#444;text-decoration:none}.link--visited,.link:visited{color:#0c2577;border-color:#0c2577;border-bottom:solid 1px}.link--visited:hover,.link:visited:hover{color:#0091d9;border-bottom:dotted 1px}.body-copy .link{font-size:14px;font-size:.875rem;font-family:arial;letter-spacing:0;line-height:17px}.att--readmore__link{margin-left:5px;margin-bottom:10px;-webkit-transition:width 2s ease,height 2s ease;-moz-transition:width 2s ease,height 2s ease;-o-transition:width 2s ease,height 2s ease;transition:width 2s ease,height 2s ease}.show-more-snippet{height:35px;width:300px;overflow:hidden}.wrapper{width:60%;margin:0 auto}.att--readMore{text-overflow:ellipsis;overflow:hidden;margin-bottom:20px;font-size:12px;font-size:.75rem;line-height:2;height:24px}.att--readLess{height:auto;overflow:visible;margin-bottom:20px;font-size:12px;font-size:.75rem;line-height:2}.navbar{position:fixed;top:0;right:0;left:0;z-index:2000;color:#f8f8f8;height:50px;font-size:12px;font-size:.75rem;background:#000;border:0;border-radius:0}.navbar-brand{display:block;line-height:50px;padding:0;font-size:12px;font-size:.75rem;font-weight:400;color:#f8f8f8;margin-left:0!important;padding-left:40px;background:url(images/logo.png) 0 center no-repeat}.nav{list-style:none;margin:0;padding:0}.navbar li{margin:0;float:left}.navbar li:first-child{margin-left:0}.navbar li>a{display:block;height:50px;line-height:50px;padding:0 10px;color:#bbb;-moz-box-sizing:border-box;box-sizing:border-box}.navbar li.active>a{border-bottom:4px solid #FC411E}.navbar li>a:focus,.navbar li>a:hover{background-color:#181818}.navbar li.active>a,.navbar li>a:hover{color:#f8f8f8}.navbar .dropdown{position:relative;margin:0 0 0 10px}.navbar .dropdown:hover>a{-webkit-transition:none;-moz-transition:none;transition:none;background-color:#474747}.navbar .dropdown:hover .dropdown-menu{display:block}.navbar .dropdown-menu{position:absolute;list-style:none;margin:0;padding:0;min-width:120px;display:none;border:0;border-radius:0}.pull-right .dropdown-menu{left:auto;right:0;top:100%;background-color:#474747}.navbar .dropdown-menu li{display:block;float:none;margin:0;width:100%}.navbar .dropdown-menu li a:hover{background-color:#FC411E}.att-tooltip{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:12px;font-size:.75rem;-webkit-transition:opacity .2s ease-out;-moz-transition:opacity .2s ease-out;transition:opacity .2s ease-out;box-shadow:0 4px 5px 0 rgba(0,0,0,.3);-webkit-box-shadow:0 4px 5px 0 rgba(0,0,0,.3);-moz-box-shadow:0 4px 5px 0 rgba(0,0,0,.3);background:#ddd;border-radius:5px;color:#444;display:block;line-height:15px;margin:10px 0 0;max-width:215px;opacity:0;padding:7px 10px;position:absolute;z-index:5}.att-tooltip:after,.att-tooltip:before{position:absolute;left:50%;content:'';margin-left:-7px;border:6px solid transparent}.att-tooltip:before{top:-12px;border-bottom-color:#ccc}.att-tooltip:after{top:-12px;border-bottom-color:#ddd}.att-tooltip--on{opacity:1}.att-tooltip--right{margin:0 0 0 10px}.att-tooltip--right:after,.att-tooltip--right:before{top:50%;left:-5px;margin-top:-7px;border-bottom-color:transparent}.att-tooltip--right:before{border-right-color:#ccc;left:-5px}.att-tooltip--right:after{border-right-color:#ddd}.att-tooltip--left{margin:0 0 0 -10px}.att-tooltip--left:after,.att-tooltip--left:before{top:50%;left:auto;right:-12px;margin-top:-7px;border-bottom-color:transparent}.att-tooltip--left:before{border-left-color:#ccc;right:-12px}.att-tooltip--left:after{border-left-color:#ddd}.att-tooltip--above{margin:-10px 0 0 0}.att-tooltip--above:after,.att-tooltip--above:before{top:auto;bottom:-12px;margin-top:-7px;border-bottom-color:transparent}.att-tooltip--above:before{border-top-color:#ccc;bottom:-12px}.att-tooltip--above:after{border-top-color:#ddd}.att-tooltip--light{background-color:#fefefe}.att-tooltip--light.att-tooltip--above:after{border-top-color:#fefefe}.att-tooltip--light.att-tooltip--below:after{border-bottom-color:#fefefe}.att-tooltip--light.att-tooltip--right:after{border-right-color:#fefefe}.att-tooltip--light.att-tooltip--left:after{border-left-color:#fefefe}.att-tooltip--dark{background-color:#6d6d6d;color:#fefefe}.att-tooltip--dark.att-tooltip--above:after{border-top-color:#6d6d6d}.att-tooltip--dark.att-tooltip--below:after{border-bottom-color:#6d6d6d}.att-tooltip--dark.att-tooltip--right:after{border-right-color:#6d6d6d}.att-tooltip--dark.att-tooltip--left:after{border-left-color:#6d6d6d}.att-tooltip--light--hover:hover{padding:6px 9px;border:1px solid #8d8d8d}.att-tooltip--light--hover:hover.att-tooltip--left:before{border-left-color:#8d8d8d;margin-right:-1px}.att-tooltip--light--hover:hover.att-tooltip--right:before{border-right-color:#8d8d8d;margin-left:-8px}.att-tooltip--light--hover:hover.att-tooltip--above:before{border-top-color:#8d8d8d;margin-bottom:-1px}.att-tooltip--light--hover:hover.att-tooltip--below:before{border-bottom-color:#8d8d8d;margin-top:-1px}.att-tooltip--dark--hover:hover{padding:6px 9px;border:1px solid #404040}.att-tooltip--dark--hover:hover.att-tooltip--left:before{border-left-color:#404040;margin-right:-1px}.att-tooltip--dark--hover:hover.att-tooltip--right:before{border-right-color:#404040;margin-left:-8px}.att-tooltip--dark--hover:hover.att-tooltip--above:before{border-top-color:#404040;margin-bottom:-1px}.att-tooltip--dark--hover:hover.att-tooltip--below:before{border-bottom-color:#404040;margin-top:-1px}.att-tooltip--active--dark{width:60px;min-width:60px;max-width:300px;background-color:#6d6d6d;color:#fff;border:0}.att-tooltip--active--dark:focus{outline:0}.att-tooltip--active--light{width:60px;min-width:60px;max-width:300px;background-color:#fefefe;border:0}.att-tooltip--active--light:focus{outline:0}.att-tooltip--textonly{background:0 0;border-color:transparent;padding:0}.att-tooltip--textonly:after,.att-tooltip--textonly:before{display:none}.button.button--small.att-tooltip--button{min-width:60px!important}.lt-ie9 .pop-over-caret--above{bottom:-5px!important}.lt-ie9 .pop-over-caret-border--above{bottom:-6px!important}.lt-ie9 .pop-over-caret--below{top:-5px!important}.lt-ie9 .pop-over-caret-border--below{top:-6px!important}.lt-ie9 .pop-over-caret--right{left:-5px!important}.lt-ie9 .pop-over-caret-border--right{left:-6px!important}.att-pop-over--above{margin:-10px 0 0 1px!important}.att-pop-over--left{margin:-7px 0 0 -6px!important}.att-pop-over--bell{margin:0; top: 80px !important;}.att-pop-over--right{margin:-7px 0 0 6px!important}.att-popover{border:1px solid #d3d3d3;max-width:490px;padding:19px;pointer-events:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:12px;font-size:.75rem;-webkit-transition:opacity .2s ease-out;-moz-transition:opacity .2s ease-out;transition:opacity .2s ease-out;background:#fff;border-radius:5px;box-shadow:0 5px 6px 0 rgba(0,0,0,.25);color:#444;display:table;line-height:15px;margin:6px 0 0;min-height:29px;position:absolute!important;z-index:5;opacity:1}.att-popover:focus{outline:0}.att-popover .pop-over-caret{width:0;height:0;position:absolute}.att-popover .pop-over-caret.pop-over-caret-border--below{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #d3d3d3;top:-7px;left:50% !important}.att-popover .pop-over-caret.pop-over-caret-border--above{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #d3d3d3;bottom:-7px;left:50%;margin-left:-7px}.att-popover .pop-over-caret.pop-over-caret-border--left{border-top:6px solid transparent;border-left:6px solid #d3d3d3;border-bottom:6px solid transparent;right:-6px;top:50%}.att-popover .pop-over-caret.pop-over-caret-border--right{border-right:6px solid #d3d3d3;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-7px;top:50%}.att-popover .pop-over-caret.pop-over-caret--below{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #f2f2f2;top:-6px;left:50% !important}.att-popover .pop-over-caret.pop-over-caret--above{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #f2f2f2;bottom:-6px;left:50%;margin-left:-7px}.att-popover .pop-over-caret.pop-over-caret--left{border-top:6px solid transparent;border-left:6px solid #f2f2f2;border-bottom:6px solid transparent;right:-5px;top:50%}.att-popover .pop-over-caret.pop-over-caret--right{border-right:6px solid #f2f2f2;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px;top:50%}.att-popover .att--readless__link,.att-popover .att--readmore__link,.att-popover .link{color:#0574AC}.att-popover .att--readless__link:hover,.att-popover .att--readless__link:hover:visited,.att-popover .att--readmore__link:hover,.att-popover .att--readmore__link:hover:visited,.att-popover .link:hover,.att-popover .link:hover:visited{color:#0091d9}.att-popover .att--readless__link--visited,.att-popover .att--readless__link:visited,.att-popover .att--readmore__link--visited,.att-popover .att--readmore__link:visited,.att-popover .link--visited,.att-popover .link:visited{color:#0c2577}.att-popover .att--readless__link--visited:hover,.att-popover .att--readless__link:visited:hover,.att-popover .att--readmore__link--visited:hover,.att-popover .att--readmore__link:visited:hover,.att-popover .link--visited:hover,.att-popover .link:visited:hover{color:#0091d9}.att-tooltip.att-popover{pointer-events:auto}.att-popover-content{display:none!important;text-align:left}.att-popover--with-header.att-tooltip--below:below{display:none}.att-popover--with-header.att-tooltip--below:after{border-bottom-color:#0574AC}.att-popover.att-popover--value-selector{max-width:220px;padding:20px;text-align:center}.att-popover.att-popover--value-selector .att-color-selector__item{width:40px;height:40px;-webkit-transition:none;-moz-transition:none;transition:none;background:0 0;border:0;position:relative}.att-popover.att-popover--value-selector .att-color-selector__item:before{position:absolute;-webkit-transition:border-color .3s ease-out;-moz-transition:border-color .3s ease-out;transition:border-color .3s ease-out;border:3px solid transparent;border-radius:50%;content:''}.att-popover.att-popover--value-selector .att-color-selector__item .att-radio__indicator{-webkit-transform:scale3d(1,1,1);-moz-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);-o-transform:scale3d(1,1,1);transform:scale3d(1,1,1);width:38px;height:38px;border:1px solid #444;border-radius:38px;display:block;-ms-filter:none;filter:none;left:50%;margin:-19px 0 0 -19px;opacity:1;top:50%}.att-popover.att-popover--value-selector .att-radio--on.att-color-selector__item:before{border-color:#0574AC}.att-popover.att-popover--value-selector .att-radio--on.att-color-selector__item .att-radio__indicator{width:28px;height:28px;margin:-14px 0 0 -14px}.att-popover.att-popover--value-selector .att-radio.att-value-selector__item{width:40px;height:40px;background:0 0;border:2px solid transparent;color:#666;padding:1px}.att-popover.att-popover--value-selector .att-radio.att-value-selector__item .att-radio__indicator{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;transition:none;width:40px;height:40px;background:0 0;border:1px solid #666;border-radius:50%;color:#666;-ms-filter:none;filter:none;margin:0;opacity:1;padding-top:5px;position:static}.att-popover.att-popover--value-selector .att-radio--on.att-value-selector__item .att-radio__indicator{background:#0574AC;border-color:#0574AC;color:#fff}.att-popover__close{position:absolute;top:9px;right:9px;font-size:14px;font-size:.875rem;color:#444}.popover-demo .att-popover-content{display:block!important}.popover-demo .popover-packages__container{background:0 0}.popover-demo .popover-packages__container p{color:#444}.popover-demo .popover-packages__text-block{padding:5px 0 0}.popover-demo .popover-packages__text-block-row p{font-size:12px}.popover-demo hr{border-bottom:1px solid #b2b2b2;margin:10px 0 25px}.icon-close:before{content:'\e6d5'}.breadcrumbs{color:#444;height:50px;list-style:none;text-align:right}.breadcrumbs__item{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto}.breadcrumbs__item:before{font-size:11px;font-size:.6875rem;display:inline-block;zoom:1;*display:inline;*vertical-align:auto;content:'>';margin-left:10px;vertical-align:middle}.breadcrumbs__item:first-child:before{display:none}.breadcrumbs__link{font-size:12px;font-size:.75rem;font-family:arial;color:#666;margin-left:10px}.breadcrumbs__link:hover{color:#0574AC;text-decoration:underline}.breadcrumbs__link--active,.breadcrumbs__link--active:hover{color:#444;text-decoration:none}.pager{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;font-size:0;list-style:none;margin:10px 0 0}.pager--dark{background-color:#000;padding:10px 10px 10px 5px}.pager__item{font-size:12px;font-size:.75rem;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;transition:all .3s ease-out;display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;cursor:default;color:#4b4b4b;margin-left:12px;text-align:center;width:33px;height:33px;border-radius:6px;padding:7px}.pager__item [class^=icon-]{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;font-size:12px;font-size:.75rem;color:#888}.pager__item--link{border-radius:50px;border:1px solid transparent;color:#4b4b4b;cursor:pointer}.pager__item--link:hover{background:#b2b2b2;color:#4b4b4b}.pager__item--active{background:#067AB4;color:#fff;cursor:default}.pager__item--active:hover{background:#b2b2b2;color:#4b4b4b}.pager__item--active:focus{color:#fff}.pager__item--input{color:#067ab4;margin-left:12px;padding-left:12px;padding-right:12px;text-align:center;max-width:40px;max-height:29px}.pager__item--next,.pager__item--prev{font-size:12px;cursor:pointer;padding:12px;color:#888}.pager__item--next:hover,.pager__item--prev:hover{background:0 0;border-color:none;color:#0574AC}.pager__item--next:hover [class^=icon-],.pager__item--prev:hover [class^=icon-]{color:#0574AC}.views-per-page__item--active a::after,.views-per-page__item--active:hover a::after{border-bottom-color:#0574ac;border-bottom-width:2px;color:#0574ac;opacity:1}.views-per-page{display:inline-block;font-size:0}.views-per-page__item{display:inline-block;font-size:14px;margin-left:3px;text-align:center;width:33px}.views-per-page__item a{color:#444;outline:0 none;position:relative}.views-per-page__item a:focus::before{opacity:1}.views-per-page__item a::after{border-bottom:1px solid #0091d9;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:18px;transition:all .2s ease-out 0s}.views-per-page__item a::before{border:1px solid #44c8f5;border-radius:0;bottom:auto;content:"";display:inline-block;height:38px;left:50%;margin:-19px;opacity:0;position:absolute;right:auto;top:50%;transform:scale3d(1,1,1);width:38px}.views-per-page__item:hover{cursor:pointer}.views-per-page__item:hover a{color:#0091d9}.views-per-page__item:hover a::after{opacity:1}.views-per-page__item:first-child{margin-left:0;width:auto}.views-per-page__item:first-child:hover{color:#444;cursor:inherit}.views-per-page__item:first-child:hover::after{opacity:0}.lt-ie9 .views-per-page__item a::after,.lt-ie9 .views-per-page__item a::before{content:none}.lt-ie9 .views-per-page__item a:focus::before,.lt-ie9 .views-per-page__item--active a::after,.lt-ie9 .views-per-page__item--active:hover a::after,.lt-ie9 .views-per-page__item:hover a::after{content:""}.views-per-page__item--active a,.views-per-page__item--active:hover a{color:#0574ac}.sidebar{width:230px;padding:15px;background-color:#f2f2f2}.sidebar>.nav{margin-top:30px}.sidebar .nav a{color:#6f6f6f;display:block;padding:2px 0}.sidebar .nav .nav{display:none;margin:0 0 10px}.sidebar .nav .nav a{font-size:12px;font-size:.75rem;color:#999}.sidebar .nav a:hover,.sidebar>.nav .active>a{color:#FC411E;text-decoration:underline}.sidebar>.nav>.active .nav{display:block}.steptracker{padding:0;font-size:0;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.steptracker-bg{padding:0;font-size:0;position:relative}.steptracker-bg:before{content:'';position:absolute;height:4px;background:#e5e5e5;top:50%;right:0;left:0;margin-top:-2px;width:100%}.steptracker-track .circle{display:block;max-width:40px;max-height:40px;padding:11px 0;-moz-box-sizing:border-box;box-sizing:border-box;background:#e5e5e5;border-radius:20px;position:relative;font-size:11px;font-size:.6875rem;line-height:15px;color:#999;text-align:center;border:1px solid transparent;z-index:2}.steptracker-track .circle span{display:block;font-size:10px;font-size:.625rem;line-height:20px;text-align:left;color:#999;position:absolute;height:18px;width:65px;top:18px;left:0;padding-top:20px;cursor:default}.steptracker-track .track{content:'';position:absolute;height:4px;top:50%;left:0;width:0;margin-top:-2px;margin-left:20px;background:#e5e5e5;border-radius:2px;-webkit-transition:all .2s ease-in-out 0s;-moz-transition:all .2s ease-in-out 0s;transition:all .2s ease-in-out 0s}.steptracker-track.incomplete .track{background:#e5e5e5}.steptracker-track.done .track{background:#1b7e28;width:100%}.steptracker-track.active .track{background:#0574ac}.lt-ie9 .steptracker-track .circle span{left:-20px}.steptracker-track .circle,.steptracker-track .circle span{-webkit-transition:background-color .3s ease-out,color .3s ease-out;-moz-transition:background-color .3s ease-out,color .3s ease-out;transition:background-color .3s ease-out,color .3s ease-out}.steptracker-track{display:inline-block;font-size:15px;font-size:.9375rem;position:relative}.steptracker-track.active:before,.steptracker-track.done:before{width:101%}.steptracker-track.last{margin-right:-40px;width:40px}.steptracker-track.done .circle{background:#1b7e28;color:#fff;cursor:pointer}.steptracker-track.done .circle:hover{background:#199ddf;color:#fff}.steptracker-track.done .circle span{color:#444;cursor:pointer}.steptracker-track.incomplete .circle{background:#e5e5e5;color:#999}.steptracker-track.done .circle span:hover{color:#199ddf}.steptracker-track.active .circle{background:#0574ac;color:#fff}.steptracker-track.active .circle:hover{background:#199ddf;color:#fff}.steptracker-track.active .circle span{color:#0574ac}.steptracker-track.disabled{pointer-events:none;cursor:not-allowed}.att-timeline{position:relative}.att-timeline .completed-color{background-color:#1B7E28}.att-timeline .alert-color{background-color:#E00000}.att-timeline .cancelled-color{background-color:#999}.att-timeline .completed-color-text{color:#1B7E28}.att-timeline .alert-color-text{color:#E00000}.att-timeline .cancelled-color-text{color:#666}.att-timeline .inactive-color-text{color:#AAA}.att-timeline .timeline-bar{width:30%;float:left;position:relative}.att-timeline .timeline-bar .progress-bar{width:100%;height:2px;position:relative;z-index:100}.att-timeline .timeline-bar hr{border:0;border-top:2px dotted #AAA;position:relative;top:-20px;z-index:50px}.att-timeline .timeline-dot{width:10px;height:30px;top:-4px;position:relative;float:left}.att-timeline .timeline-dot .bigger-circle{width:10px;height:10px;border-radius:25px;z-index:50;position:absolute;opacity:.5}.att-timeline .timeline-dot .inactive-circle{width:10px;height:10px;border-radius:25px;border:1px solid #AAA;background-color:#fff;z-index:100;position:absolute}.att-timeline .timeline-dot .expandable-circle{width:10px;height:10px;border-radius:25px;z-index:150;position:absolute}.att-timeline .timeline-dot .below-info-box{position:relative;top:10px;left:4.5px;width:auto;min-width:150px}.att-timeline .timeline-dot .below-info-box .vertical-line{border-left:1px solid #AAA;width:1px;height:25px}.att-timeline .timeline-dot .below-info-box .info-container .title{position:relative;font-size:18px;line-height:22px;z-index:100;width:50%;font-family:arial}.att-timeline .timeline-dot .below-info-box .info-container .current-step-title{position:relative;font-size:18px;line-height:22px;z-index:100;width:50%;font-family:arial}.att-timeline .timeline-dot .below-info-box .info-container .content{font-size:14px;color:#444;line-height:20px;position:relative}.att-timeline .timeline-dot .below-info-box .info-container .date{font-size:14px;color:#444;line-height:20px;position:relative;width:100%}.att-timeline .timeline-dot .above-info-box{position:relative;top:-105px;left:3.5px;width:auto;min-width:150px}.att-timeline .timeline-dot .above-info-box .vertical-line{border-left:1px solid #AAA;width:1px;height:25px}.att-timeline .timeline-dot .above-info-box .info-container .title{position:relative;font-size:18px;line-height:22px;z-index:100;width:50%;font-family:arial}.att-timeline .timeline-dot .above-info-box .info-container .current-step-title{position:relative;font-size:18px;line-height:22px;z-index:100;width:50%;font-family:arial}.att-timeline .timeline-dot .above-info-box .info-container .content{font-size:14px;color:#444;line-height:20px;position:relative}.att-timeline .timeline-dot .above-info-box .info-container .date{font-size:14px;color:#444;line-height:20px;position:relative;width:100%}.vertical-nav{padding:11px 0;font-family:arial;font-size:11px}.vertical-nav ul{display:block;margin:0;padding:0 0 0 7px}.vertical-nav ul.tickets-list-height{height:221px;overflow-y:hidden}.vertical-nav ul.tickets-list-height-auto{height:auto}.vertical-nav ul li{display:block;padding:0 0 0 20px;height:41px;border-left:solid 1px #666;margin-top:3px;position:relative}.vertical-nav ul li i{position:absolute;left:-8px;top:2px;background-color:#f2f2f2;outline:3px solid #f2f2f2;outline-offset:0}.vertical-nav ul li i.icon-ticket-regular{border-radius:100%;width:6px;height:6px;background-color:#666;top:3px;left:-4px}.vertical-nav ul li .ticket-title{font-family:arial;font-size:12px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:45%}.vertical-nav ul li .ticket-title-regular{font-family:arial;font-size:11px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:45%}.vertical-nav ul li .ticket-timestamp{font-size:11px;line-height:15px;padding:3px 0}.vertical-nav .view-log{position:absolute;right:0;bottom:4px}.vertical-nav .view-log a{text-decoration:underline}.tags__item{font-size:12px;font-size:.75rem;display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;border-radius:5px;border:1px solid #666;color:#444;margin:3px 5px 3px 0;padding:2px 10px}.tags__item a:hover{color:#666}.tags__item:last-child{margin-right:0}.tags__item:hover{background:#D3D3D3}.tags__item:active{background:#BBB}.tags__item:active>.tag__item--action,.tags__item:active>.tags__item--icon,.tags__item:hover>.tags__item--action,.tags__item:hover>.tags__item--icon{color:#444;border-color:#444}.tags__item.tags__item--color{border:1px solid #118817}.tags__item.tags__item--color .tags__item--title{padding-left:18px}.tags__item.tags__item--color .tags__item--color-icon{background:#118817;border:1px solid #118817;border-radius:100%;cursor:pointer;height:12px;width:12px;margin:6px 0 0;position:absolute;z-index:1}.tags__item.tags__item--color .active{background:#118817;color:#fff}.tags__item.tags__item--color .active>.tags__item--action{color:#fff;border-left:1px solid #fff}.tags__item.tags__item--color .active>.tags__item--color-icon,.tags__item.tags__item--color:hover>.tags__item--color-icon{border:1px solid #fff}.tags__item.tags__item--color:active{background:#118817;color:#fff}.tags__item.tags__item--color:active>.tags__item--action{color:#fff;border-left:1px solid #fff}.tags__item.tags__item--color:active>.tags__item--color-icon{border:1px solid #fff}.tags__item.tags__item--small{height:24px;padding:0 10px}.tags__item.tags__item--cloud .active{background:#157BB2;border-color:#157BB2}.tags__item.tags__item--cloud .active>.tags__item--icon,.tags__item.tags__item--cloud .active>.tags__item--title{color:#fff}.tags__item.tags__item--cloud:active{background:#157BB2;border-color:#157BB2}.tags__item.tags__item--cloud:active>.tags__item--icon,.tags__item.tags__item--cloud:active>.tags__item--title{color:#fff}.tags__item--action,.tags__item--icon,.tags__item--title{-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;transition:all .3s ease-out;font-size:14px;font-size:.875rem;line-height:1.7142857143;vertical-align:middle;margin:0}.tags__item--icon{font-size:14px;font-size:.875rem;line-height:1.7142857143;color:#888}.tags__item--action{border-left:1px solid #888;color:#888;cursor:pointer;margin-left:5px;text-align:center;width:18px}.tags__item--action [class^=icon-]{font-size:14px;font-size:.875rem;display:inline-block;zoom:1;*display:inline;*vertical-align:auto;margin-left:5px;margin-top:-2px;vertical-align:middle;width:14px}.lt-ie9 .tags__item--action [class^=icon-]{margin-top:4px}.att-progress{height:21px;background-color:#ddd;border-radius:21px;position:relative}.att-progress-value{border-radius:27px;background-color:#067ab4;width:0;min-width:21px;height:21px;-webkit-mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);-webkit-animation:att-progress 1s ease-out 0s infinite alternate,att-progress-width 10s ease-out infinite;-moz-animation:att-progress 1s ease-out 0s infinite alternate,att-progress-width 10s ease-out infinite;animation:att-progress 1s ease-out 0s infinite alternate,att-progress-width 10s ease-out infinite}@-webkit-keyframes att-progress{from{background-color:#067ab4}to{background-color:#199ddf}}@-moz-keyframes att-progress{from{background-color:#067ab4}to{background-color:#199ddf}}@keyframes att-progress{from{background-color:#067ab4}to{background-color:#199ddf}}@-webkit-keyframes att-progress-width{0%{width:0}100%,70%{width:100%}}@-moz-keyframes att-progress-width{0%{width:0}100%,70%{width:100%}}@keyframes att-progress-width{0%{width:0}100%,70%{width:100%}}.loader{display:inline-block;vertical-align:middle;background:url(images/loader.gif) center center no-repeat;min-width:75px;min-height:75px}.loading{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto}.loading .loading__inside,.loading:after,.loading:before{-webkit-animation:loading-item 1s infinite ease-out;-moz-animation:loading-item 1s infinite ease-out;animation:loading-item 1s infinite ease-out;width:8px;height:8px;display:inline-block;zoom:1;*display:inline;*vertical-align:auto;background:#000;border-radius:50%;content:'';margin-left:6px;vertical-align:middle}.loading:before{-webkit-animation-delay:1s;-moz-animation-delay:1s;animation-delay:1s;margin-left:0}.loading .loading__inside{-webkit-animation-delay:1.2s;-moz-animation-delay:1.2s;animation-delay:1.2s}.loading:after{-webkit-animation-delay:1.4s;-moz-animation-delay:1.4s;animation-delay:1.4s}.ie .loading{width:46px;height:20px;background:url(images/loading_balls_black.gif) center center no-repeat}.ie .loading .loading__inside,.ie .loading:after,.ie .loading:before{display:none}.loading--small .loading__inside,.loading--small:after,.loading--small:before{width:5px;height:5px;margin-left:4px}.ie .loading--small{width:37px;height:18px;background:url(images/loading_balls_black-small.gif) center center no-repeat}.ie .loading--small.att-loading--blue{background:url(images/loading_balls_blue-small.gif) center center no-repeat}.ie .loading--small.att-loading--white{background:url(images/loading_balls_white-small.gif) center center no-repeat}@-webkit-keyframes loading-item{0%{-webkit-transform:scale(1)}20%{-webkit-transform:scale(.8)}40%,60%{-webkit-transform:scale(.6)}80%{-webkit-transform:scale(.8)}100%{-webkit-transform:scale(1)}}@-moz-keyframes loading-item{0%{-moz-transform:scale(1)}20%{-moz-transform:scale(.8)}40%,60%{-moz-transform:scale(.6)}80%{-moz-transform:scale(.8)}100%{-moz-transform:scale(1)}}@-o-keyframes loading-item{0%{-o-transform:scale(1)}20%{-o-transform:scale(.8)}40%,60%{-o-transform:scale(.6)}80%{-o-transform:scale(.8)}100%{-o-transform:scale(1)}}@keyframes loading-item{0%{transform:scale(1)}20%{transform:scale(.8)}40%,60%{transform:scale(.6)}80%{transform:scale(.8)}100%{transform:scale(1)}}.att-loading-count{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;background-color:transparent;border-radius:50%;height:36px;position:relative;width:36px}.att-loading-count .att-loading-circle__fill,.att-loading-count .att-loading-circle__mask{height:36px;position:absolute;width:36px;-webkit-transition:transform 1s;-moz-transition:transform 1s;transition:transform 1s;-webkit-backface-visibility:hidden;border-radius:50%}.att-loading-count .att-loading-circle__mask{clip:rect(0,36px,36px,18px)}.att-loading-count .att-loading-circle__mask .att-loading-circle__fill{background-color:#444;clip:rect(0,18px,36px,0)}.att-loading-count .att-loading-inset{background-color:#f2f2f2;border-radius:50%;height:32px;left:0;margin-left:2px;margin-top:2px;position:absolute;top:0;width:32px}.lt-ie9 .att-loading-count .att-loading-inset{height:0;width:0}.att-loading-count .att-loading-inset__percentage{position:absolute;top:10px;left:1px;color:#444;font-size:12px;font-weight:800;line-height:1;text-align:center;width:30px}.att-loading-count[data-progress="0"] .att-loading-circle__fill,.att-loading-count[data-progress="0"] .att-loading-circle__fill.att-loading-circle__fix,.att-loading-count[data-progress="0"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}.att-loading-count[data-progress="0"] .att-loading-inset .att-loading-inset__percentage:before{content:"0"}.att-loading-count[data-progress="1"] .att-loading-circle__fill,.att-loading-count[data-progress="1"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(1.8deg);-moz-transform:rotate(1.8deg);-ms-transform:rotate(1.8deg);-o-transform:rotate(1.8deg);transform:rotate(1.8deg)}.att-loading-count[data-progress="1"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(3.6deg);-moz-transform:rotate(3.6deg);-ms-transform:rotate(3.6deg);-o-transform:rotate(3.6deg);transform:rotate(3.6deg)}.att-loading-count[data-progress="1"] .att-loading-inset .att-loading-inset__percentage:before{content:"1"}.att-loading-count[data-progress="2"] .att-loading-circle__fill,.att-loading-count[data-progress="2"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(3.6deg);-moz-transform:rotate(3.6deg);-ms-transform:rotate(3.6deg);-o-transform:rotate(3.6deg);transform:rotate(3.6deg)}.att-loading-count[data-progress="2"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(7.2deg);-moz-transform:rotate(7.2deg);-ms-transform:rotate(7.2deg);-o-transform:rotate(7.2deg);transform:rotate(7.2deg)}.att-loading-count[data-progress="2"] .att-loading-inset .att-loading-inset__percentage:before{content:"2"}.att-loading-count[data-progress="3"] .att-loading-circle__fill,.att-loading-count[data-progress="3"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(5.4deg);-moz-transform:rotate(5.4deg);-ms-transform:rotate(5.4deg);-o-transform:rotate(5.4deg);transform:rotate(5.4deg)}.att-loading-count[data-progress="3"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(10.8deg);-moz-transform:rotate(10.8deg);-ms-transform:rotate(10.8deg);-o-transform:rotate(10.8deg);transform:rotate(10.8deg)}.att-loading-count[data-progress="3"] .att-loading-inset .att-loading-inset__percentage:before{content:"3"}.att-loading-count[data-progress="4"] .att-loading-circle__fill,.att-loading-count[data-progress="4"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(7.2deg);-moz-transform:rotate(7.2deg);-ms-transform:rotate(7.2deg);-o-transform:rotate(7.2deg);transform:rotate(7.2deg)}.att-loading-count[data-progress="4"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(14.4deg);-moz-transform:rotate(14.4deg);-ms-transform:rotate(14.4deg);-o-transform:rotate(14.4deg);transform:rotate(14.4deg)}.att-loading-count[data-progress="4"] .att-loading-inset .att-loading-inset__percentage:before{content:"4"}.att-loading-count[data-progress="5"] .att-loading-circle__fill,.att-loading-count[data-progress="5"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(9deg);-moz-transform:rotate(9deg);-ms-transform:rotate(9deg);-o-transform:rotate(9deg);transform:rotate(9deg)}.att-loading-count[data-progress="5"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(18deg);-moz-transform:rotate(18deg);-ms-transform:rotate(18deg);-o-transform:rotate(18deg);transform:rotate(18deg)}.att-loading-count[data-progress="5"] .att-loading-inset .att-loading-inset__percentage:before{content:"5"}.att-loading-count[data-progress="6"] .att-loading-circle__fill,.att-loading-count[data-progress="6"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(10.8deg);-moz-transform:rotate(10.8deg);-ms-transform:rotate(10.8deg);-o-transform:rotate(10.8deg);transform:rotate(10.8deg)}.att-loading-count[data-progress="6"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(21.6deg);-moz-transform:rotate(21.6deg);-ms-transform:rotate(21.6deg);-o-transform:rotate(21.6deg);transform:rotate(21.6deg)}.att-loading-count[data-progress="6"] .att-loading-inset .att-loading-inset__percentage:before{content:"6"}.att-loading-count[data-progress="7"] .att-loading-circle__fill,.att-loading-count[data-progress="7"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(12.6deg);-moz-transform:rotate(12.6deg);-ms-transform:rotate(12.6deg);-o-transform:rotate(12.6deg);transform:rotate(12.6deg)}.att-loading-count[data-progress="7"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(25.2deg);-moz-transform:rotate(25.2deg);-ms-transform:rotate(25.2deg);-o-transform:rotate(25.2deg);transform:rotate(25.2deg)}.att-loading-count[data-progress="7"] .att-loading-inset .att-loading-inset__percentage:before{content:"7"}.att-loading-count[data-progress="8"] .att-loading-circle__fill,.att-loading-count[data-progress="8"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(14.4deg);-moz-transform:rotate(14.4deg);-ms-transform:rotate(14.4deg);-o-transform:rotate(14.4deg);transform:rotate(14.4deg)}.att-loading-count[data-progress="8"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(28.8deg);-moz-transform:rotate(28.8deg);-ms-transform:rotate(28.8deg);-o-transform:rotate(28.8deg);transform:rotate(28.8deg)}.att-loading-count[data-progress="8"] .att-loading-inset .att-loading-inset__percentage:before{content:"8"}.att-loading-count[data-progress="9"] .att-loading-circle__fill,.att-loading-count[data-progress="9"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(16.2deg);-moz-transform:rotate(16.2deg);-ms-transform:rotate(16.2deg);-o-transform:rotate(16.2deg);transform:rotate(16.2deg)}.att-loading-count[data-progress="9"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(32.4deg);-moz-transform:rotate(32.4deg);-ms-transform:rotate(32.4deg);-o-transform:rotate(32.4deg);transform:rotate(32.4deg)}.att-loading-count[data-progress="9"] .att-loading-inset .att-loading-inset__percentage:before{content:"9"}.att-loading-count[data-progress="10"] .att-loading-circle__fill,.att-loading-count[data-progress="10"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(18deg);-moz-transform:rotate(18deg);-ms-transform:rotate(18deg);-o-transform:rotate(18deg);transform:rotate(18deg)}.att-loading-count[data-progress="10"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(36deg);-moz-transform:rotate(36deg);-ms-transform:rotate(36deg);-o-transform:rotate(36deg);transform:rotate(36deg)}.att-loading-count[data-progress="10"] .att-loading-inset .att-loading-inset__percentage:before{content:"10"}.att-loading-count[data-progress="11"] .att-loading-circle__fill,.att-loading-count[data-progress="11"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(19.8deg);-moz-transform:rotate(19.8deg);-ms-transform:rotate(19.8deg);-o-transform:rotate(19.8deg);transform:rotate(19.8deg)}.att-loading-count[data-progress="11"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(39.6deg);-moz-transform:rotate(39.6deg);-ms-transform:rotate(39.6deg);-o-transform:rotate(39.6deg);transform:rotate(39.6deg)}.att-loading-count[data-progress="11"] .att-loading-inset .att-loading-inset__percentage:before{content:"11"}.att-loading-count[data-progress="12"] .att-loading-circle__fill,.att-loading-count[data-progress="12"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(21.6deg);-moz-transform:rotate(21.6deg);-ms-transform:rotate(21.6deg);-o-transform:rotate(21.6deg);transform:rotate(21.6deg)}.att-loading-count[data-progress="12"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(43.2deg);-moz-transform:rotate(43.2deg);-ms-transform:rotate(43.2deg);-o-transform:rotate(43.2deg);transform:rotate(43.2deg)}.att-loading-count[data-progress="12"] .att-loading-inset .att-loading-inset__percentage:before{content:"12"}.att-loading-count[data-progress="13"] .att-loading-circle__fill,.att-loading-count[data-progress="13"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(23.4deg);-moz-transform:rotate(23.4deg);-ms-transform:rotate(23.4deg);-o-transform:rotate(23.4deg);transform:rotate(23.4deg)}.att-loading-count[data-progress="13"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(46.8deg);-moz-transform:rotate(46.8deg);-ms-transform:rotate(46.8deg);-o-transform:rotate(46.8deg);transform:rotate(46.8deg)}.att-loading-count[data-progress="13"] .att-loading-inset .att-loading-inset__percentage:before{content:"13"}.att-loading-count[data-progress="14"] .att-loading-circle__fill,.att-loading-count[data-progress="14"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(25.2deg);-moz-transform:rotate(25.2deg);-ms-transform:rotate(25.2deg);-o-transform:rotate(25.2deg);transform:rotate(25.2deg)}.att-loading-count[data-progress="14"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(50.4deg);-moz-transform:rotate(50.4deg);-ms-transform:rotate(50.4deg);-o-transform:rotate(50.4deg);transform:rotate(50.4deg)}.att-loading-count[data-progress="14"] .att-loading-inset .att-loading-inset__percentage:before{content:"14"}.att-loading-count[data-progress="15"] .att-loading-circle__fill,.att-loading-count[data-progress="15"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(27deg);-moz-transform:rotate(27deg);-ms-transform:rotate(27deg);-o-transform:rotate(27deg);transform:rotate(27deg)}.att-loading-count[data-progress="15"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(54deg);-moz-transform:rotate(54deg);-ms-transform:rotate(54deg);-o-transform:rotate(54deg);transform:rotate(54deg)}.att-loading-count[data-progress="15"] .att-loading-inset .att-loading-inset__percentage:before{content:"15"}.att-loading-count[data-progress="16"] .att-loading-circle__fill,.att-loading-count[data-progress="16"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(28.8deg);-moz-transform:rotate(28.8deg);-ms-transform:rotate(28.8deg);-o-transform:rotate(28.8deg);transform:rotate(28.8deg)}.att-loading-count[data-progress="16"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(57.6deg);-moz-transform:rotate(57.6deg);-ms-transform:rotate(57.6deg);-o-transform:rotate(57.6deg);transform:rotate(57.6deg)}.att-loading-count[data-progress="16"] .att-loading-inset .att-loading-inset__percentage:before{content:"16"}.att-loading-count[data-progress="17"] .att-loading-circle__fill,.att-loading-count[data-progress="17"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(30.6deg);-moz-transform:rotate(30.6deg);-ms-transform:rotate(30.6deg);-o-transform:rotate(30.6deg);transform:rotate(30.6deg)}.att-loading-count[data-progress="17"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(61.2deg);-moz-transform:rotate(61.2deg);-ms-transform:rotate(61.2deg);-o-transform:rotate(61.2deg);transform:rotate(61.2deg)}.att-loading-count[data-progress="17"] .att-loading-inset .att-loading-inset__percentage:before{content:"17"}.att-loading-count[data-progress="18"] .att-loading-circle__fill,.att-loading-count[data-progress="18"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(32.4deg);-moz-transform:rotate(32.4deg);-ms-transform:rotate(32.4deg);-o-transform:rotate(32.4deg);transform:rotate(32.4deg)}.att-loading-count[data-progress="18"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(64.8deg);-moz-transform:rotate(64.8deg);-ms-transform:rotate(64.8deg);-o-transform:rotate(64.8deg);transform:rotate(64.8deg)}.att-loading-count[data-progress="18"] .att-loading-inset .att-loading-inset__percentage:before{content:"18"}.att-loading-count[data-progress="19"] .att-loading-circle__fill,.att-loading-count[data-progress="19"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(34.2deg);-moz-transform:rotate(34.2deg);-ms-transform:rotate(34.2deg);-o-transform:rotate(34.2deg);transform:rotate(34.2deg)}.att-loading-count[data-progress="19"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(68.4deg);-moz-transform:rotate(68.4deg);-ms-transform:rotate(68.4deg);-o-transform:rotate(68.4deg);transform:rotate(68.4deg)}.att-loading-count[data-progress="19"] .att-loading-inset .att-loading-inset__percentage:before{content:"19"}.att-loading-count[data-progress="20"] .att-loading-circle__fill,.att-loading-count[data-progress="20"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(36deg);-moz-transform:rotate(36deg);-ms-transform:rotate(36deg);-o-transform:rotate(36deg);transform:rotate(36deg)}.att-loading-count[data-progress="20"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(72deg);-moz-transform:rotate(72deg);-ms-transform:rotate(72deg);-o-transform:rotate(72deg);transform:rotate(72deg)}.att-loading-count[data-progress="20"] .att-loading-inset .att-loading-inset__percentage:before{content:"20"}.att-loading-count[data-progress="21"] .att-loading-circle__fill,.att-loading-count[data-progress="21"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(37.8deg);-moz-transform:rotate(37.8deg);-ms-transform:rotate(37.8deg);-o-transform:rotate(37.8deg);transform:rotate(37.8deg)}.att-loading-count[data-progress="21"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(75.6deg);-moz-transform:rotate(75.6deg);-ms-transform:rotate(75.6deg);-o-transform:rotate(75.6deg);transform:rotate(75.6deg)}.att-loading-count[data-progress="21"] .att-loading-inset .att-loading-inset__percentage:before{content:"21"}.att-loading-count[data-progress="22"] .att-loading-circle__fill,.att-loading-count[data-progress="22"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(39.6deg);-moz-transform:rotate(39.6deg);-ms-transform:rotate(39.6deg);-o-transform:rotate(39.6deg);transform:rotate(39.6deg)}.att-loading-count[data-progress="22"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(79.2deg);-moz-transform:rotate(79.2deg);-ms-transform:rotate(79.2deg);-o-transform:rotate(79.2deg);transform:rotate(79.2deg)}.att-loading-count[data-progress="22"] .att-loading-inset .att-loading-inset__percentage:before{content:"22"}.att-loading-count[data-progress="23"] .att-loading-circle__fill,.att-loading-count[data-progress="23"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(41.4deg);-moz-transform:rotate(41.4deg);-ms-transform:rotate(41.4deg);-o-transform:rotate(41.4deg);transform:rotate(41.4deg)}.att-loading-count[data-progress="23"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(82.8deg);-moz-transform:rotate(82.8deg);-ms-transform:rotate(82.8deg);-o-transform:rotate(82.8deg);transform:rotate(82.8deg)}.att-loading-count[data-progress="23"] .att-loading-inset .att-loading-inset__percentage:before{content:"23"}.att-loading-count[data-progress="24"] .att-loading-circle__fill,.att-loading-count[data-progress="24"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(43.2deg);-moz-transform:rotate(43.2deg);-ms-transform:rotate(43.2deg);-o-transform:rotate(43.2deg);transform:rotate(43.2deg)}.att-loading-count[data-progress="24"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(86.4deg);-moz-transform:rotate(86.4deg);-ms-transform:rotate(86.4deg);-o-transform:rotate(86.4deg);transform:rotate(86.4deg)}.att-loading-count[data-progress="24"] .att-loading-inset .att-loading-inset__percentage:before{content:"24"}.att-loading-count[data-progress="25"] .att-loading-circle__fill,.att-loading-count[data-progress="25"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.att-loading-count[data-progress="25"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.att-loading-count[data-progress="25"] .att-loading-inset .att-loading-inset__percentage:before{content:"25"}.att-loading-count[data-progress="26"] .att-loading-circle__fill,.att-loading-count[data-progress="26"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(46.8deg);-moz-transform:rotate(46.8deg);-ms-transform:rotate(46.8deg);-o-transform:rotate(46.8deg);transform:rotate(46.8deg)}.att-loading-count[data-progress="26"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(93.6deg);-moz-transform:rotate(93.6deg);-ms-transform:rotate(93.6deg);-o-transform:rotate(93.6deg);transform:rotate(93.6deg)}.att-loading-count[data-progress="26"] .att-loading-inset .att-loading-inset__percentage:before{content:"26"}.att-loading-count[data-progress="27"] .att-loading-circle__fill,.att-loading-count[data-progress="27"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(48.6deg);-moz-transform:rotate(48.6deg);-ms-transform:rotate(48.6deg);-o-transform:rotate(48.6deg);transform:rotate(48.6deg)}.att-loading-count[data-progress="27"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(97.2deg);-moz-transform:rotate(97.2deg);-ms-transform:rotate(97.2deg);-o-transform:rotate(97.2deg);transform:rotate(97.2deg)}.att-loading-count[data-progress="27"] .att-loading-inset .att-loading-inset__percentage:before{content:"27"}.att-loading-count[data-progress="28"] .att-loading-circle__fill,.att-loading-count[data-progress="28"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(50.4deg);-moz-transform:rotate(50.4deg);-ms-transform:rotate(50.4deg);-o-transform:rotate(50.4deg);transform:rotate(50.4deg)}.att-loading-count[data-progress="28"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(100.8deg);-moz-transform:rotate(100.8deg);-ms-transform:rotate(100.8deg);-o-transform:rotate(100.8deg);transform:rotate(100.8deg)}.att-loading-count[data-progress="28"] .att-loading-inset .att-loading-inset__percentage:before{content:"28"}.att-loading-count[data-progress="29"] .att-loading-circle__fill,.att-loading-count[data-progress="29"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(52.2deg);-moz-transform:rotate(52.2deg);-ms-transform:rotate(52.2deg);-o-transform:rotate(52.2deg);transform:rotate(52.2deg)}.att-loading-count[data-progress="29"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(104.4deg);-moz-transform:rotate(104.4deg);-ms-transform:rotate(104.4deg);-o-transform:rotate(104.4deg);transform:rotate(104.4deg)}.att-loading-count[data-progress="29"] .att-loading-inset .att-loading-inset__percentage:before{content:"29"}.att-loading-count[data-progress="30"] .att-loading-circle__fill,.att-loading-count[data-progress="30"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(54deg);-moz-transform:rotate(54deg);-ms-transform:rotate(54deg);-o-transform:rotate(54deg);transform:rotate(54deg)}.att-loading-count[data-progress="30"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(108deg);-moz-transform:rotate(108deg);-ms-transform:rotate(108deg);-o-transform:rotate(108deg);transform:rotate(108deg)}.att-loading-count[data-progress="30"] .att-loading-inset .att-loading-inset__percentage:before{content:"30"}.att-loading-count[data-progress="31"] .att-loading-circle__fill,.att-loading-count[data-progress="31"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(55.8deg);-moz-transform:rotate(55.8deg);-ms-transform:rotate(55.8deg);-o-transform:rotate(55.8deg);transform:rotate(55.8deg)}.att-loading-count[data-progress="31"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(111.6deg);-moz-transform:rotate(111.6deg);-ms-transform:rotate(111.6deg);-o-transform:rotate(111.6deg);transform:rotate(111.6deg)}.att-loading-count[data-progress="31"] .att-loading-inset .att-loading-inset__percentage:before{content:"31"}.att-loading-count[data-progress="32"] .att-loading-circle__fill,.att-loading-count[data-progress="32"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(57.6deg);-moz-transform:rotate(57.6deg);-ms-transform:rotate(57.6deg);-o-transform:rotate(57.6deg);transform:rotate(57.6deg)}.att-loading-count[data-progress="32"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(115.2deg);-moz-transform:rotate(115.2deg);-ms-transform:rotate(115.2deg);-o-transform:rotate(115.2deg);transform:rotate(115.2deg)}.att-loading-count[data-progress="32"] .att-loading-inset .att-loading-inset__percentage:before{content:"32"}.att-loading-count[data-progress="33"] .att-loading-circle__fill,.att-loading-count[data-progress="33"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(59.4deg);-moz-transform:rotate(59.4deg);-ms-transform:rotate(59.4deg);-o-transform:rotate(59.4deg);transform:rotate(59.4deg)}.att-loading-count[data-progress="33"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(118.8deg);-moz-transform:rotate(118.8deg);-ms-transform:rotate(118.8deg);-o-transform:rotate(118.8deg);transform:rotate(118.8deg)}.att-loading-count[data-progress="33"] .att-loading-inset .att-loading-inset__percentage:before{content:"33"}.att-loading-count[data-progress="34"] .att-loading-circle__fill,.att-loading-count[data-progress="34"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(61.2deg);-moz-transform:rotate(61.2deg);-ms-transform:rotate(61.2deg);-o-transform:rotate(61.2deg);transform:rotate(61.2deg)}.att-loading-count[data-progress="34"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(122.4deg);-moz-transform:rotate(122.4deg);-ms-transform:rotate(122.4deg);-o-transform:rotate(122.4deg);transform:rotate(122.4deg)}.att-loading-count[data-progress="34"] .att-loading-inset .att-loading-inset__percentage:before{content:"34"}.att-loading-count[data-progress="35"] .att-loading-circle__fill,.att-loading-count[data-progress="35"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(63deg);-moz-transform:rotate(63deg);-ms-transform:rotate(63deg);-o-transform:rotate(63deg);transform:rotate(63deg)}.att-loading-count[data-progress="35"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(126deg);-moz-transform:rotate(126deg);-ms-transform:rotate(126deg);-o-transform:rotate(126deg);transform:rotate(126deg)}.att-loading-count[data-progress="35"] .att-loading-inset .att-loading-inset__percentage:before{content:"35"}.att-loading-count[data-progress="36"] .att-loading-circle__fill,.att-loading-count[data-progress="36"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(64.8deg);-moz-transform:rotate(64.8deg);-ms-transform:rotate(64.8deg);-o-transform:rotate(64.8deg);transform:rotate(64.8deg)}.att-loading-count[data-progress="36"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(129.6deg);-moz-transform:rotate(129.6deg);-ms-transform:rotate(129.6deg);-o-transform:rotate(129.6deg);transform:rotate(129.6deg)}.att-loading-count[data-progress="36"] .att-loading-inset .att-loading-inset__percentage:before{content:"36"}.att-loading-count[data-progress="37"] .att-loading-circle__fill,.att-loading-count[data-progress="37"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(66.6deg);-moz-transform:rotate(66.6deg);-ms-transform:rotate(66.6deg);-o-transform:rotate(66.6deg);transform:rotate(66.6deg)}.att-loading-count[data-progress="37"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(133.2deg);-moz-transform:rotate(133.2deg);-ms-transform:rotate(133.2deg);-o-transform:rotate(133.2deg);transform:rotate(133.2deg)}.att-loading-count[data-progress="37"] .att-loading-inset .att-loading-inset__percentage:before{content:"37"}.att-loading-count[data-progress="38"] .att-loading-circle__fill,.att-loading-count[data-progress="38"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(68.4deg);-moz-transform:rotate(68.4deg);-ms-transform:rotate(68.4deg);-o-transform:rotate(68.4deg);transform:rotate(68.4deg)}.att-loading-count[data-progress="38"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(136.8deg);-moz-transform:rotate(136.8deg);-ms-transform:rotate(136.8deg);-o-transform:rotate(136.8deg);transform:rotate(136.8deg)}.att-loading-count[data-progress="38"] .att-loading-inset .att-loading-inset__percentage:before{content:"38"}.att-loading-count[data-progress="39"] .att-loading-circle__fill,.att-loading-count[data-progress="39"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(70.2deg);-moz-transform:rotate(70.2deg);-ms-transform:rotate(70.2deg);-o-transform:rotate(70.2deg);transform:rotate(70.2deg)}.att-loading-count[data-progress="39"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(140.4deg);-moz-transform:rotate(140.4deg);-ms-transform:rotate(140.4deg);-o-transform:rotate(140.4deg);transform:rotate(140.4deg)}.att-loading-count[data-progress="39"] .att-loading-inset .att-loading-inset__percentage:before{content:"39"}.att-loading-count[data-progress="40"] .att-loading-circle__fill,.att-loading-count[data-progress="40"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(72deg);-moz-transform:rotate(72deg);-ms-transform:rotate(72deg);-o-transform:rotate(72deg);transform:rotate(72deg)}.att-loading-count[data-progress="40"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(144deg);-moz-transform:rotate(144deg);-ms-transform:rotate(144deg);-o-transform:rotate(144deg);transform:rotate(144deg)}.att-loading-count[data-progress="40"] .att-loading-inset .att-loading-inset__percentage:before{content:"40"}.att-loading-count[data-progress="41"] .att-loading-circle__fill,.att-loading-count[data-progress="41"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(73.8deg);-moz-transform:rotate(73.8deg);-ms-transform:rotate(73.8deg);-o-transform:rotate(73.8deg);transform:rotate(73.8deg)}.att-loading-count[data-progress="41"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(147.6deg);-moz-transform:rotate(147.6deg);-ms-transform:rotate(147.6deg);-o-transform:rotate(147.6deg);transform:rotate(147.6deg)}.att-loading-count[data-progress="41"] .att-loading-inset .att-loading-inset__percentage:before{content:"41"}.att-loading-count[data-progress="42"] .att-loading-circle__fill,.att-loading-count[data-progress="42"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(75.6deg);-moz-transform:rotate(75.6deg);-ms-transform:rotate(75.6deg);-o-transform:rotate(75.6deg);transform:rotate(75.6deg)}.att-loading-count[data-progress="42"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(151.2deg);-moz-transform:rotate(151.2deg);-ms-transform:rotate(151.2deg);-o-transform:rotate(151.2deg);transform:rotate(151.2deg)}.att-loading-count[data-progress="42"] .att-loading-inset .att-loading-inset__percentage:before{content:"42"}.att-loading-count[data-progress="43"] .att-loading-circle__fill,.att-loading-count[data-progress="43"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(77.4deg);-moz-transform:rotate(77.4deg);-ms-transform:rotate(77.4deg);-o-transform:rotate(77.4deg);transform:rotate(77.4deg)}.att-loading-count[data-progress="43"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(154.8deg);-moz-transform:rotate(154.8deg);-ms-transform:rotate(154.8deg);-o-transform:rotate(154.8deg);transform:rotate(154.8deg)}.att-loading-count[data-progress="43"] .att-loading-inset .att-loading-inset__percentage:before{content:"43"}.att-loading-count[data-progress="44"] .att-loading-circle__fill,.att-loading-count[data-progress="44"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(79.2deg);-moz-transform:rotate(79.2deg);-ms-transform:rotate(79.2deg);-o-transform:rotate(79.2deg);transform:rotate(79.2deg)}.att-loading-count[data-progress="44"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(158.4deg);-moz-transform:rotate(158.4deg);-ms-transform:rotate(158.4deg);-o-transform:rotate(158.4deg);transform:rotate(158.4deg)}.att-loading-count[data-progress="44"] .att-loading-inset .att-loading-inset__percentage:before{content:"44"}.att-loading-count[data-progress="45"] .att-loading-circle__fill,.att-loading-count[data-progress="45"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(81deg);-moz-transform:rotate(81deg);-ms-transform:rotate(81deg);-o-transform:rotate(81deg);transform:rotate(81deg)}.att-loading-count[data-progress="45"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(162deg);-moz-transform:rotate(162deg);-ms-transform:rotate(162deg);-o-transform:rotate(162deg);transform:rotate(162deg)}.att-loading-count[data-progress="45"] .att-loading-inset .att-loading-inset__percentage:before{content:"45"}.att-loading-count[data-progress="46"] .att-loading-circle__fill,.att-loading-count[data-progress="46"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(82.8deg);-moz-transform:rotate(82.8deg);-ms-transform:rotate(82.8deg);-o-transform:rotate(82.8deg);transform:rotate(82.8deg)}.att-loading-count[data-progress="46"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(165.6deg);-moz-transform:rotate(165.6deg);-ms-transform:rotate(165.6deg);-o-transform:rotate(165.6deg);transform:rotate(165.6deg)}.att-loading-count[data-progress="46"] .att-loading-inset .att-loading-inset__percentage:before{content:"46"}.att-loading-count[data-progress="47"] .att-loading-circle__fill,.att-loading-count[data-progress="47"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(84.6deg);-moz-transform:rotate(84.6deg);-ms-transform:rotate(84.6deg);-o-transform:rotate(84.6deg);transform:rotate(84.6deg)}.att-loading-count[data-progress="47"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(169.2deg);-moz-transform:rotate(169.2deg);-ms-transform:rotate(169.2deg);-o-transform:rotate(169.2deg);transform:rotate(169.2deg)}.att-loading-count[data-progress="47"] .att-loading-inset .att-loading-inset__percentage:before{content:"47"}.att-loading-count[data-progress="48"] .att-loading-circle__fill,.att-loading-count[data-progress="48"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(86.4deg);-moz-transform:rotate(86.4deg);-ms-transform:rotate(86.4deg);-o-transform:rotate(86.4deg);transform:rotate(86.4deg)}.att-loading-count[data-progress="48"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(172.8deg);-moz-transform:rotate(172.8deg);-ms-transform:rotate(172.8deg);-o-transform:rotate(172.8deg);transform:rotate(172.8deg)}.att-loading-count[data-progress="48"] .att-loading-inset .att-loading-inset__percentage:before{content:"48"}.att-loading-count[data-progress="49"] .att-loading-circle__fill,.att-loading-count[data-progress="49"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(88.2deg);-moz-transform:rotate(88.2deg);-ms-transform:rotate(88.2deg);-o-transform:rotate(88.2deg);transform:rotate(88.2deg)}.att-loading-count[data-progress="49"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(176.4deg);-moz-transform:rotate(176.4deg);-ms-transform:rotate(176.4deg);-o-transform:rotate(176.4deg);transform:rotate(176.4deg)}.att-loading-count[data-progress="49"] .att-loading-inset .att-loading-inset__percentage:before{content:"49"}.att-loading-count[data-progress="50"] .att-loading-circle__fill,.att-loading-count[data-progress="50"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.att-loading-count[data-progress="50"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.att-loading-count[data-progress="50"] .att-loading-inset .att-loading-inset__percentage:before{content:"50"}.att-loading-count[data-progress="51"] .att-loading-circle__fill,.att-loading-count[data-progress="51"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(91.8deg);-moz-transform:rotate(91.8deg);-ms-transform:rotate(91.8deg);-o-transform:rotate(91.8deg);transform:rotate(91.8deg)}.att-loading-count[data-progress="51"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(183.6deg);-moz-transform:rotate(183.6deg);-ms-transform:rotate(183.6deg);-o-transform:rotate(183.6deg);transform:rotate(183.6deg)}.att-loading-count[data-progress="51"] .att-loading-inset .att-loading-inset__percentage:before{content:"51"}.att-loading-count[data-progress="52"] .att-loading-circle__fill,.att-loading-count[data-progress="52"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(93.6deg);-moz-transform:rotate(93.6deg);-ms-transform:rotate(93.6deg);-o-transform:rotate(93.6deg);transform:rotate(93.6deg)}.att-loading-count[data-progress="52"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(187.2deg);-moz-transform:rotate(187.2deg);-ms-transform:rotate(187.2deg);-o-transform:rotate(187.2deg);transform:rotate(187.2deg)}.att-loading-count[data-progress="52"] .att-loading-inset .att-loading-inset__percentage:before{content:"52"}.att-loading-count[data-progress="53"] .att-loading-circle__fill,.att-loading-count[data-progress="53"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(95.4deg);-moz-transform:rotate(95.4deg);-ms-transform:rotate(95.4deg);-o-transform:rotate(95.4deg);transform:rotate(95.4deg)}.att-loading-count[data-progress="53"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(190.8deg);-moz-transform:rotate(190.8deg);-ms-transform:rotate(190.8deg);-o-transform:rotate(190.8deg);transform:rotate(190.8deg)}.att-loading-count[data-progress="53"] .att-loading-inset .att-loading-inset__percentage:before{content:"53"}.att-loading-count[data-progress="54"] .att-loading-circle__fill,.att-loading-count[data-progress="54"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(97.2deg);-moz-transform:rotate(97.2deg);-ms-transform:rotate(97.2deg);-o-transform:rotate(97.2deg);transform:rotate(97.2deg)}.att-loading-count[data-progress="54"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(194.4deg);-moz-transform:rotate(194.4deg);-ms-transform:rotate(194.4deg);-o-transform:rotate(194.4deg);transform:rotate(194.4deg)}.att-loading-count[data-progress="54"] .att-loading-inset .att-loading-inset__percentage:before{content:"54"}.att-loading-count[data-progress="55"] .att-loading-circle__fill,.att-loading-count[data-progress="55"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(99deg);-moz-transform:rotate(99deg);-ms-transform:rotate(99deg);-o-transform:rotate(99deg);transform:rotate(99deg)}.att-loading-count[data-progress="55"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(198deg);-moz-transform:rotate(198deg);-ms-transform:rotate(198deg);-o-transform:rotate(198deg);transform:rotate(198deg)}.att-loading-count[data-progress="55"] .att-loading-inset .att-loading-inset__percentage:before{content:"55"}.att-loading-count[data-progress="56"] .att-loading-circle__fill,.att-loading-count[data-progress="56"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(100.8deg);-moz-transform:rotate(100.8deg);-ms-transform:rotate(100.8deg);-o-transform:rotate(100.8deg);transform:rotate(100.8deg)}.att-loading-count[data-progress="56"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(201.6deg);-moz-transform:rotate(201.6deg);-ms-transform:rotate(201.6deg);-o-transform:rotate(201.6deg);transform:rotate(201.6deg)}.att-loading-count[data-progress="56"] .att-loading-inset .att-loading-inset__percentage:before{content:"56"}.att-loading-count[data-progress="57"] .att-loading-circle__fill,.att-loading-count[data-progress="57"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(102.6deg);-moz-transform:rotate(102.6deg);-ms-transform:rotate(102.6deg);-o-transform:rotate(102.6deg);transform:rotate(102.6deg)}.att-loading-count[data-progress="57"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(205.2deg);-moz-transform:rotate(205.2deg);-ms-transform:rotate(205.2deg);-o-transform:rotate(205.2deg);transform:rotate(205.2deg)}.att-loading-count[data-progress="57"] .att-loading-inset .att-loading-inset__percentage:before{content:"57"}.att-loading-count[data-progress="58"] .att-loading-circle__fill,.att-loading-count[data-progress="58"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(104.4deg);-moz-transform:rotate(104.4deg);-ms-transform:rotate(104.4deg);-o-transform:rotate(104.4deg);transform:rotate(104.4deg)}.att-loading-count[data-progress="58"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(208.8deg);-moz-transform:rotate(208.8deg);-ms-transform:rotate(208.8deg);-o-transform:rotate(208.8deg);transform:rotate(208.8deg)}.att-loading-count[data-progress="58"] .att-loading-inset .att-loading-inset__percentage:before{content:"58"}.att-loading-count[data-progress="59"] .att-loading-circle__fill,.att-loading-count[data-progress="59"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(106.2deg);-moz-transform:rotate(106.2deg);-ms-transform:rotate(106.2deg);-o-transform:rotate(106.2deg);transform:rotate(106.2deg)}.att-loading-count[data-progress="59"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(212.4deg);-moz-transform:rotate(212.4deg);-ms-transform:rotate(212.4deg);-o-transform:rotate(212.4deg);transform:rotate(212.4deg)}.att-loading-count[data-progress="59"] .att-loading-inset .att-loading-inset__percentage:before{content:"59"}.att-loading-count[data-progress="60"] .att-loading-circle__fill,.att-loading-count[data-progress="60"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(108deg);-moz-transform:rotate(108deg);-ms-transform:rotate(108deg);-o-transform:rotate(108deg);transform:rotate(108deg)}.att-loading-count[data-progress="60"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(216deg);-moz-transform:rotate(216deg);-ms-transform:rotate(216deg);-o-transform:rotate(216deg);transform:rotate(216deg)}.att-loading-count[data-progress="60"] .att-loading-inset .att-loading-inset__percentage:before{content:"60"}.att-loading-count[data-progress="61"] .att-loading-circle__fill,.att-loading-count[data-progress="61"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(109.8deg);-moz-transform:rotate(109.8deg);-ms-transform:rotate(109.8deg);-o-transform:rotate(109.8deg);transform:rotate(109.8deg)}.att-loading-count[data-progress="61"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(219.6deg);-moz-transform:rotate(219.6deg);-ms-transform:rotate(219.6deg);-o-transform:rotate(219.6deg);transform:rotate(219.6deg)}.att-loading-count[data-progress="61"] .att-loading-inset .att-loading-inset__percentage:before{content:"61"}.att-loading-count[data-progress="62"] .att-loading-circle__fill,.att-loading-count[data-progress="62"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(111.6deg);-moz-transform:rotate(111.6deg);-ms-transform:rotate(111.6deg);-o-transform:rotate(111.6deg);transform:rotate(111.6deg)}.att-loading-count[data-progress="62"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(223.2deg);-moz-transform:rotate(223.2deg);-ms-transform:rotate(223.2deg);-o-transform:rotate(223.2deg);transform:rotate(223.2deg)}.att-loading-count[data-progress="62"] .att-loading-inset .att-loading-inset__percentage:before{content:"62"}.att-loading-count[data-progress="63"] .att-loading-circle__fill,.att-loading-count[data-progress="63"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(113.4deg);-moz-transform:rotate(113.4deg);-ms-transform:rotate(113.4deg);-o-transform:rotate(113.4deg);transform:rotate(113.4deg)}.att-loading-count[data-progress="63"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(226.8deg);-moz-transform:rotate(226.8deg);-ms-transform:rotate(226.8deg);-o-transform:rotate(226.8deg);transform:rotate(226.8deg)}.att-loading-count[data-progress="63"] .att-loading-inset .att-loading-inset__percentage:before{content:"63"}.att-loading-count[data-progress="64"] .att-loading-circle__fill,.att-loading-count[data-progress="64"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(115.2deg);-moz-transform:rotate(115.2deg);-ms-transform:rotate(115.2deg);-o-transform:rotate(115.2deg);transform:rotate(115.2deg)}.att-loading-count[data-progress="64"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(230.4deg);-moz-transform:rotate(230.4deg);-ms-transform:rotate(230.4deg);-o-transform:rotate(230.4deg);transform:rotate(230.4deg)}.att-loading-count[data-progress="64"] .att-loading-inset .att-loading-inset__percentage:before{content:"64"}.att-loading-count[data-progress="65"] .att-loading-circle__fill,.att-loading-count[data-progress="65"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(117deg);-moz-transform:rotate(117deg);-ms-transform:rotate(117deg);-o-transform:rotate(117deg);transform:rotate(117deg)}.att-loading-count[data-progress="65"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(234deg);-moz-transform:rotate(234deg);-ms-transform:rotate(234deg);-o-transform:rotate(234deg);transform:rotate(234deg)}.att-loading-count[data-progress="65"] .att-loading-inset .att-loading-inset__percentage:before{content:"65"}.att-loading-count[data-progress="66"] .att-loading-circle__fill,.att-loading-count[data-progress="66"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(118.8deg);-moz-transform:rotate(118.8deg);-ms-transform:rotate(118.8deg);-o-transform:rotate(118.8deg);transform:rotate(118.8deg)}.att-loading-count[data-progress="66"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(237.6deg);-moz-transform:rotate(237.6deg);-ms-transform:rotate(237.6deg);-o-transform:rotate(237.6deg);transform:rotate(237.6deg)}.att-loading-count[data-progress="66"] .att-loading-inset .att-loading-inset__percentage:before{content:"66"}.att-loading-count[data-progress="67"] .att-loading-circle__fill,.att-loading-count[data-progress="67"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(120.6deg);-moz-transform:rotate(120.6deg);-ms-transform:rotate(120.6deg);-o-transform:rotate(120.6deg);transform:rotate(120.6deg)}.att-loading-count[data-progress="67"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(241.2deg);-moz-transform:rotate(241.2deg);-ms-transform:rotate(241.2deg);-o-transform:rotate(241.2deg);transform:rotate(241.2deg)}.att-loading-count[data-progress="67"] .att-loading-inset .att-loading-inset__percentage:before{content:"67"}.att-loading-count[data-progress="68"] .att-loading-circle__fill,.att-loading-count[data-progress="68"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(122.4deg);-moz-transform:rotate(122.4deg);-ms-transform:rotate(122.4deg);-o-transform:rotate(122.4deg);transform:rotate(122.4deg)}.att-loading-count[data-progress="68"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(244.8deg);-moz-transform:rotate(244.8deg);-ms-transform:rotate(244.8deg);-o-transform:rotate(244.8deg);transform:rotate(244.8deg)}.att-loading-count[data-progress="68"] .att-loading-inset .att-loading-inset__percentage:before{content:"68"}.att-loading-count[data-progress="69"] .att-loading-circle__fill,.att-loading-count[data-progress="69"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(124.2deg);-moz-transform:rotate(124.2deg);-ms-transform:rotate(124.2deg);-o-transform:rotate(124.2deg);transform:rotate(124.2deg)}.att-loading-count[data-progress="69"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(248.4deg);-moz-transform:rotate(248.4deg);-ms-transform:rotate(248.4deg);-o-transform:rotate(248.4deg);transform:rotate(248.4deg)}.att-loading-count[data-progress="69"] .att-loading-inset .att-loading-inset__percentage:before{content:"69"}.att-loading-count[data-progress="70"] .att-loading-circle__fill,.att-loading-count[data-progress="70"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(126deg);-moz-transform:rotate(126deg);-ms-transform:rotate(126deg);-o-transform:rotate(126deg);transform:rotate(126deg)}.att-loading-count[data-progress="70"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(252deg);-moz-transform:rotate(252deg);-ms-transform:rotate(252deg);-o-transform:rotate(252deg);transform:rotate(252deg)}.att-loading-count[data-progress="70"] .att-loading-inset .att-loading-inset__percentage:before{content:"70"}.att-loading-count[data-progress="71"] .att-loading-circle__fill,.att-loading-count[data-progress="71"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(127.8deg);-moz-transform:rotate(127.8deg);-ms-transform:rotate(127.8deg);-o-transform:rotate(127.8deg);transform:rotate(127.8deg)}.att-loading-count[data-progress="71"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(255.6deg);-moz-transform:rotate(255.6deg);-ms-transform:rotate(255.6deg);-o-transform:rotate(255.6deg);transform:rotate(255.6deg)}.att-loading-count[data-progress="71"] .att-loading-inset .att-loading-inset__percentage:before{content:"71"}.att-loading-count[data-progress="72"] .att-loading-circle__fill,.att-loading-count[data-progress="72"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(129.6deg);-moz-transform:rotate(129.6deg);-ms-transform:rotate(129.6deg);-o-transform:rotate(129.6deg);transform:rotate(129.6deg)}.att-loading-count[data-progress="72"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(259.2deg);-moz-transform:rotate(259.2deg);-ms-transform:rotate(259.2deg);-o-transform:rotate(259.2deg);transform:rotate(259.2deg)}.att-loading-count[data-progress="72"] .att-loading-inset .att-loading-inset__percentage:before{content:"72"}.att-loading-count[data-progress="73"] .att-loading-circle__fill,.att-loading-count[data-progress="73"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(131.4deg);-moz-transform:rotate(131.4deg);-ms-transform:rotate(131.4deg);-o-transform:rotate(131.4deg);transform:rotate(131.4deg)}.att-loading-count[data-progress="73"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(262.8deg);-moz-transform:rotate(262.8deg);-ms-transform:rotate(262.8deg);-o-transform:rotate(262.8deg);transform:rotate(262.8deg)}.att-loading-count[data-progress="73"] .att-loading-inset .att-loading-inset__percentage:before{content:"73"}.att-loading-count[data-progress="74"] .att-loading-circle__fill,.att-loading-count[data-progress="74"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(133.2deg);-moz-transform:rotate(133.2deg);-ms-transform:rotate(133.2deg);-o-transform:rotate(133.2deg);transform:rotate(133.2deg)}.att-loading-count[data-progress="74"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(266.4deg);-moz-transform:rotate(266.4deg);-ms-transform:rotate(266.4deg);-o-transform:rotate(266.4deg);transform:rotate(266.4deg)}.att-loading-count[data-progress="74"] .att-loading-inset .att-loading-inset__percentage:before{content:"74"}.att-loading-count[data-progress="75"] .att-loading-circle__fill,.att-loading-count[data-progress="75"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(135deg);-moz-transform:rotate(135deg);-ms-transform:rotate(135deg);-o-transform:rotate(135deg);transform:rotate(135deg)}.att-loading-count[data-progress="75"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.att-loading-count[data-progress="75"] .att-loading-inset .att-loading-inset__percentage:before{content:"75"}.att-loading-count[data-progress="76"] .att-loading-circle__fill,.att-loading-count[data-progress="76"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(136.8deg);-moz-transform:rotate(136.8deg);-ms-transform:rotate(136.8deg);-o-transform:rotate(136.8deg);transform:rotate(136.8deg)}.att-loading-count[data-progress="76"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(273.6deg);-moz-transform:rotate(273.6deg);-ms-transform:rotate(273.6deg);-o-transform:rotate(273.6deg);transform:rotate(273.6deg)}.att-loading-count[data-progress="76"] .att-loading-inset .att-loading-inset__percentage:before{content:"76"}.att-loading-count[data-progress="77"] .att-loading-circle__fill,.att-loading-count[data-progress="77"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(138.6deg);-moz-transform:rotate(138.6deg);-ms-transform:rotate(138.6deg);-o-transform:rotate(138.6deg);transform:rotate(138.6deg)}.att-loading-count[data-progress="77"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(277.2deg);-moz-transform:rotate(277.2deg);-ms-transform:rotate(277.2deg);-o-transform:rotate(277.2deg);transform:rotate(277.2deg)}.att-loading-count[data-progress="77"] .att-loading-inset .att-loading-inset__percentage:before{content:"77"}.att-loading-count[data-progress="78"] .att-loading-circle__fill,.att-loading-count[data-progress="78"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(140.4deg);-moz-transform:rotate(140.4deg);-ms-transform:rotate(140.4deg);-o-transform:rotate(140.4deg);transform:rotate(140.4deg)}.att-loading-count[data-progress="78"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(280.8deg);-moz-transform:rotate(280.8deg);-ms-transform:rotate(280.8deg);-o-transform:rotate(280.8deg);transform:rotate(280.8deg)}.att-loading-count[data-progress="78"] .att-loading-inset .att-loading-inset__percentage:before{content:"78"}.att-loading-count[data-progress="79"] .att-loading-circle__fill,.att-loading-count[data-progress="79"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(142.2deg);-moz-transform:rotate(142.2deg);-ms-transform:rotate(142.2deg);-o-transform:rotate(142.2deg);transform:rotate(142.2deg)}.att-loading-count[data-progress="79"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(284.4deg);-moz-transform:rotate(284.4deg);-ms-transform:rotate(284.4deg);-o-transform:rotate(284.4deg);transform:rotate(284.4deg)}.att-loading-count[data-progress="79"] .att-loading-inset .att-loading-inset__percentage:before{content:"79"}.att-loading-count[data-progress="80"] .att-loading-circle__fill,.att-loading-count[data-progress="80"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(144deg);-moz-transform:rotate(144deg);-ms-transform:rotate(144deg);-o-transform:rotate(144deg);transform:rotate(144deg)}.att-loading-count[data-progress="80"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(288deg);-moz-transform:rotate(288deg);-ms-transform:rotate(288deg);-o-transform:rotate(288deg);transform:rotate(288deg)}.att-loading-count[data-progress="80"] .att-loading-inset .att-loading-inset__percentage:before{content:"80"}.att-loading-count[data-progress="81"] .att-loading-circle__fill,.att-loading-count[data-progress="81"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(145.8deg);-moz-transform:rotate(145.8deg);-ms-transform:rotate(145.8deg);-o-transform:rotate(145.8deg);transform:rotate(145.8deg)}.att-loading-count[data-progress="81"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(291.6deg);-moz-transform:rotate(291.6deg);-ms-transform:rotate(291.6deg);-o-transform:rotate(291.6deg);transform:rotate(291.6deg)}.att-loading-count[data-progress="81"] .att-loading-inset .att-loading-inset__percentage:before{content:"81"}.att-loading-count[data-progress="82"] .att-loading-circle__fill,.att-loading-count[data-progress="82"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(147.6deg);-moz-transform:rotate(147.6deg);-ms-transform:rotate(147.6deg);-o-transform:rotate(147.6deg);transform:rotate(147.6deg)}.att-loading-count[data-progress="82"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(295.2deg);-moz-transform:rotate(295.2deg);-ms-transform:rotate(295.2deg);-o-transform:rotate(295.2deg);transform:rotate(295.2deg)}.att-loading-count[data-progress="82"] .att-loading-inset .att-loading-inset__percentage:before{content:"82"}.att-loading-count[data-progress="83"] .att-loading-circle__fill,.att-loading-count[data-progress="83"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(149.4deg);-moz-transform:rotate(149.4deg);-ms-transform:rotate(149.4deg);-o-transform:rotate(149.4deg);transform:rotate(149.4deg)}.att-loading-count[data-progress="83"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(298.8deg);-moz-transform:rotate(298.8deg);-ms-transform:rotate(298.8deg);-o-transform:rotate(298.8deg);transform:rotate(298.8deg)}.att-loading-count[data-progress="83"] .att-loading-inset .att-loading-inset__percentage:before{content:"83"}.att-loading-count[data-progress="84"] .att-loading-circle__fill,.att-loading-count[data-progress="84"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(151.2deg);-moz-transform:rotate(151.2deg);-ms-transform:rotate(151.2deg);-o-transform:rotate(151.2deg);transform:rotate(151.2deg)}.att-loading-count[data-progress="84"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(302.4deg);-moz-transform:rotate(302.4deg);-ms-transform:rotate(302.4deg);-o-transform:rotate(302.4deg);transform:rotate(302.4deg)}.att-loading-count[data-progress="84"] .att-loading-inset .att-loading-inset__percentage:before{content:"84"}.att-loading-count[data-progress="85"] .att-loading-circle__fill,.att-loading-count[data-progress="85"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(153deg);-moz-transform:rotate(153deg);-ms-transform:rotate(153deg);-o-transform:rotate(153deg);transform:rotate(153deg)}.att-loading-count[data-progress="85"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(306deg);-moz-transform:rotate(306deg);-ms-transform:rotate(306deg);-o-transform:rotate(306deg);transform:rotate(306deg)}.att-loading-count[data-progress="85"] .att-loading-inset .att-loading-inset__percentage:before{content:"85"}.att-loading-count[data-progress="86"] .att-loading-circle__fill,.att-loading-count[data-progress="86"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(154.8deg);-moz-transform:rotate(154.8deg);-ms-transform:rotate(154.8deg);-o-transform:rotate(154.8deg);transform:rotate(154.8deg)}.att-loading-count[data-progress="86"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(309.6deg);-moz-transform:rotate(309.6deg);-ms-transform:rotate(309.6deg);-o-transform:rotate(309.6deg);transform:rotate(309.6deg)}.att-loading-count[data-progress="86"] .att-loading-inset .att-loading-inset__percentage:before{content:"86"}.att-loading-count[data-progress="87"] .att-loading-circle__fill,.att-loading-count[data-progress="87"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(156.6deg);-moz-transform:rotate(156.6deg);-ms-transform:rotate(156.6deg);-o-transform:rotate(156.6deg);transform:rotate(156.6deg)}.att-loading-count[data-progress="87"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(313.2deg);-moz-transform:rotate(313.2deg);-ms-transform:rotate(313.2deg);-o-transform:rotate(313.2deg);transform:rotate(313.2deg)}.att-loading-count[data-progress="87"] .att-loading-inset .att-loading-inset__percentage:before{content:"87"}.att-loading-count[data-progress="88"] .att-loading-circle__fill,.att-loading-count[data-progress="88"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(158.4deg);-moz-transform:rotate(158.4deg);-ms-transform:rotate(158.4deg);-o-transform:rotate(158.4deg);transform:rotate(158.4deg)}.att-loading-count[data-progress="88"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(316.8deg);-moz-transform:rotate(316.8deg);-ms-transform:rotate(316.8deg);-o-transform:rotate(316.8deg);transform:rotate(316.8deg)}.att-loading-count[data-progress="88"] .att-loading-inset .att-loading-inset__percentage:before{content:"88"}.att-loading-count[data-progress="89"] .att-loading-circle__fill,.att-loading-count[data-progress="89"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(160.2deg);-moz-transform:rotate(160.2deg);-ms-transform:rotate(160.2deg);-o-transform:rotate(160.2deg);transform:rotate(160.2deg)}.att-loading-count[data-progress="89"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(320.4deg);-moz-transform:rotate(320.4deg);-ms-transform:rotate(320.4deg);-o-transform:rotate(320.4deg);transform:rotate(320.4deg)}.att-loading-count[data-progress="89"] .att-loading-inset .att-loading-inset__percentage:before{content:"89"}.att-loading-count[data-progress="90"] .att-loading-circle__fill,.att-loading-count[data-progress="90"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(162deg);-moz-transform:rotate(162deg);-ms-transform:rotate(162deg);-o-transform:rotate(162deg);transform:rotate(162deg)}.att-loading-count[data-progress="90"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(324deg);-moz-transform:rotate(324deg);-ms-transform:rotate(324deg);-o-transform:rotate(324deg);transform:rotate(324deg)}.att-loading-count[data-progress="90"] .att-loading-inset .att-loading-inset__percentage:before{content:"90"}.att-loading-count[data-progress="91"] .att-loading-circle__fill,.att-loading-count[data-progress="91"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(163.8deg);-moz-transform:rotate(163.8deg);-ms-transform:rotate(163.8deg);-o-transform:rotate(163.8deg);transform:rotate(163.8deg)}.att-loading-count[data-progress="91"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(327.6deg);-moz-transform:rotate(327.6deg);-ms-transform:rotate(327.6deg);-o-transform:rotate(327.6deg);transform:rotate(327.6deg)}.att-loading-count[data-progress="91"] .att-loading-inset .att-loading-inset__percentage:before{content:"91"}.att-loading-count[data-progress="92"] .att-loading-circle__fill,.att-loading-count[data-progress="92"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(165.6deg);-moz-transform:rotate(165.6deg);-ms-transform:rotate(165.6deg);-o-transform:rotate(165.6deg);transform:rotate(165.6deg)}.att-loading-count[data-progress="92"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(331.2deg);-moz-transform:rotate(331.2deg);-ms-transform:rotate(331.2deg);-o-transform:rotate(331.2deg);transform:rotate(331.2deg)}.att-loading-count[data-progress="92"] .att-loading-inset .att-loading-inset__percentage:before{content:"92"}.att-loading-count[data-progress="93"] .att-loading-circle__fill,.att-loading-count[data-progress="93"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(167.4deg);-moz-transform:rotate(167.4deg);-ms-transform:rotate(167.4deg);-o-transform:rotate(167.4deg);transform:rotate(167.4deg)}.att-loading-count[data-progress="93"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(334.8deg);-moz-transform:rotate(334.8deg);-ms-transform:rotate(334.8deg);-o-transform:rotate(334.8deg);transform:rotate(334.8deg)}.att-loading-count[data-progress="93"] .att-loading-inset .att-loading-inset__percentage:before{content:"93"}.att-loading-count[data-progress="94"] .att-loading-circle__fill,.att-loading-count[data-progress="94"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(169.2deg);-moz-transform:rotate(169.2deg);-ms-transform:rotate(169.2deg);-o-transform:rotate(169.2deg);transform:rotate(169.2deg)}.att-loading-count[data-progress="94"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(338.4deg);-moz-transform:rotate(338.4deg);-ms-transform:rotate(338.4deg);-o-transform:rotate(338.4deg);transform:rotate(338.4deg)}.att-loading-count[data-progress="94"] .att-loading-inset .att-loading-inset__percentage:before{content:"94"}.att-loading-count[data-progress="95"] .att-loading-circle__fill,.att-loading-count[data-progress="95"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(171deg);-moz-transform:rotate(171deg);-ms-transform:rotate(171deg);-o-transform:rotate(171deg);transform:rotate(171deg)}.att-loading-count[data-progress="95"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(342deg);-moz-transform:rotate(342deg);-ms-transform:rotate(342deg);-o-transform:rotate(342deg);transform:rotate(342deg)}.att-loading-count[data-progress="95"] .att-loading-inset .att-loading-inset__percentage:before{content:"95"}.att-loading-count[data-progress="96"] .att-loading-circle__fill,.att-loading-count[data-progress="96"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(172.8deg);-moz-transform:rotate(172.8deg);-ms-transform:rotate(172.8deg);-o-transform:rotate(172.8deg);transform:rotate(172.8deg)}.att-loading-count[data-progress="96"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(345.6deg);-moz-transform:rotate(345.6deg);-ms-transform:rotate(345.6deg);-o-transform:rotate(345.6deg);transform:rotate(345.6deg)}.att-loading-count[data-progress="96"] .att-loading-inset .att-loading-inset__percentage:before{content:"96"}.att-loading-count[data-progress="97"] .att-loading-circle__fill,.att-loading-count[data-progress="97"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(174.6deg);-moz-transform:rotate(174.6deg);-ms-transform:rotate(174.6deg);-o-transform:rotate(174.6deg);transform:rotate(174.6deg)}.att-loading-count[data-progress="97"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(349.2deg);-moz-transform:rotate(349.2deg);-ms-transform:rotate(349.2deg);-o-transform:rotate(349.2deg);transform:rotate(349.2deg)}.att-loading-count[data-progress="97"] .att-loading-inset .att-loading-inset__percentage:before{content:"97"}.att-loading-count[data-progress="98"] .att-loading-circle__fill,.att-loading-count[data-progress="98"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(176.4deg);-moz-transform:rotate(176.4deg);-ms-transform:rotate(176.4deg);-o-transform:rotate(176.4deg);transform:rotate(176.4deg)}.att-loading-count[data-progress="98"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(352.8deg);-moz-transform:rotate(352.8deg);-ms-transform:rotate(352.8deg);-o-transform:rotate(352.8deg);transform:rotate(352.8deg)}.att-loading-count[data-progress="98"] .att-loading-inset .att-loading-inset__percentage:before{content:"98"}.att-loading-count[data-progress="99"] .att-loading-circle__fill,.att-loading-count[data-progress="99"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(178.2deg);-moz-transform:rotate(178.2deg);-ms-transform:rotate(178.2deg);-o-transform:rotate(178.2deg);transform:rotate(178.2deg)}.att-loading-count[data-progress="99"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(356.4deg);-moz-transform:rotate(356.4deg);-ms-transform:rotate(356.4deg);-o-transform:rotate(356.4deg);transform:rotate(356.4deg)}.att-loading-count[data-progress="99"] .att-loading-inset .att-loading-inset__percentage:before{content:"99"}.att-loading-count[data-progress="100"] .att-loading-circle__fill,.att-loading-count[data-progress="100"] .att-loading-circle__mask.att-loading-circle__full{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.att-loading-count[data-progress="100"] .att-loading-circle__fill.att-loading-circle__fix{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}.att-loading-count[data-progress="100"] .att-loading-inset .att-loading-inset__percentage:before{content:"100"}@keyframes loadingCounter{0% .att-loading-inset .att-loading-inset__percentage:before{content:"0"}1% .att-loading-inset .att-loading-inset__percentage:before{content:"1"}2% .att-loading-inset .att-loading-inset__percentage:before{content:"2"}3% .att-loading-inset .att-loading-inset__percentage:before{content:"3"}4% .att-loading-inset .att-loading-inset__percentage:before{content:"4"}5% .att-loading-inset .att-loading-inset__percentage:before{content:"5"}6% .att-loading-inset .att-loading-inset__percentage:before{content:"6"}7% .att-loading-inset .att-loading-inset__percentage:before{content:"7"}8% .att-loading-inset .att-loading-inset__percentage:before{content:"8"}9% .att-loading-inset .att-loading-inset__percentage:before{content:"9"}10% .att-loading-inset .att-loading-inset__percentage:before{content:"10"}11% .att-loading-inset .att-loading-inset__percentage:before{content:"11"}12% .att-loading-inset .att-loading-inset__percentage:before{content:"12"}13% .att-loading-inset .att-loading-inset__percentage:before{content:"13"}14% .att-loading-inset .att-loading-inset__percentage:before{content:"14"}15% .att-loading-inset .att-loading-inset__percentage:before{content:"15"}16% .att-loading-inset .att-loading-inset__percentage:before{content:"16"}17% .att-loading-inset .att-loading-inset__percentage:before{content:"17"}18% .att-loading-inset .att-loading-inset__percentage:before{content:"18"}19% .att-loading-inset .att-loading-inset__percentage:before{content:"19"}20% .att-loading-inset .att-loading-inset__percentage:before{content:"20"}21% .att-loading-inset .att-loading-inset__percentage:before{content:"21"}22% .att-loading-inset .att-loading-inset__percentage:before{content:"22"}23% .att-loading-inset .att-loading-inset__percentage:before{content:"23"}24% .att-loading-inset .att-loading-inset__percentage:before{content:"24"}25% .att-loading-inset .att-loading-inset__percentage:before{content:"25"}26% .att-loading-inset .att-loading-inset__percentage:before{content:"26"}27% .att-loading-inset .att-loading-inset__percentage:before{content:"27"}28% .att-loading-inset .att-loading-inset__percentage:before{content:"28"}29% .att-loading-inset .att-loading-inset__percentage:before{content:"29"}30% .att-loading-inset .att-loading-inset__percentage:before{content:"30"}31% .att-loading-inset .att-loading-inset__percentage:before{content:"31"}32% .att-loading-inset .att-loading-inset__percentage:before{content:"32"}33% .att-loading-inset .att-loading-inset__percentage:before{content:"33"}34% .att-loading-inset .att-loading-inset__percentage:before{content:"34"}35% .att-loading-inset .att-loading-inset__percentage:before{content:"35"}36% .att-loading-inset .att-loading-inset__percentage:before{content:"36"}37% .att-loading-inset .att-loading-inset__percentage:before{content:"37"}38% .att-loading-inset .att-loading-inset__percentage:before{content:"38"}39% .att-loading-inset .att-loading-inset__percentage:before{content:"39"}40% .att-loading-inset .att-loading-inset__percentage:before{content:"40"}41% .att-loading-inset .att-loading-inset__percentage:before{content:"41"}42% .att-loading-inset .att-loading-inset__percentage:before{content:"42"}43% .att-loading-inset .att-loading-inset__percentage:before{content:"43"}44% .att-loading-inset .att-loading-inset__percentage:before{content:"44"}45% .att-loading-inset .att-loading-inset__percentage:before{content:"45"}46% .att-loading-inset .att-loading-inset__percentage:before{content:"46"}47% .att-loading-inset .att-loading-inset__percentage:before{content:"47"}48% .att-loading-inset .att-loading-inset__percentage:before{content:"48"}49% .att-loading-inset .att-loading-inset__percentage:before{content:"49"}50% .att-loading-inset .att-loading-inset__percentage:before{content:"50"}51% .att-loading-inset .att-loading-inset__percentage:before{content:"51"}52% .att-loading-inset .att-loading-inset__percentage:before{content:"52"}53% .att-loading-inset .att-loading-inset__percentage:before{content:"53"}54% .att-loading-inset .att-loading-inset__percentage:before{content:"54"}55% .att-loading-inset .att-loading-inset__percentage:before{content:"55"}56% .att-loading-inset .att-loading-inset__percentage:before{content:"56"}57% .att-loading-inset .att-loading-inset__percentage:before{content:"57"}58% .att-loading-inset .att-loading-inset__percentage:before{content:"58"}59% .att-loading-inset .att-loading-inset__percentage:before{content:"59"}60% .att-loading-inset .att-loading-inset__percentage:before{content:"60"}61% .att-loading-inset .att-loading-inset__percentage:before{content:"61"}62% .att-loading-inset .att-loading-inset__percentage:before{content:"62"}63% .att-loading-inset .att-loading-inset__percentage:before{content:"63"}64% .att-loading-inset .att-loading-inset__percentage:before{content:"64"}65% .att-loading-inset .att-loading-inset__percentage:before{content:"65"}66% .att-loading-inset .att-loading-inset__percentage:before{content:"66"}67% .att-loading-inset .att-loading-inset__percentage:before{content:"67"}68% .att-loading-inset .att-loading-inset__percentage:before{content:"68"}69% .att-loading-inset .att-loading-inset__percentage:before{content:"69"}70% .att-loading-inset .att-loading-inset__percentage:before{content:"70"}71% .att-loading-inset .att-loading-inset__percentage:before{content:"71"}72% .att-loading-inset .att-loading-inset__percentage:before{content:"72"}73% .att-loading-inset .att-loading-inset__percentage:before{content:"73"}74% .att-loading-inset .att-loading-inset__percentage:before{content:"74"}75% .att-loading-inset .att-loading-inset__percentage:before{content:"75"}76% .att-loading-inset .att-loading-inset__percentage:before{content:"76"}77% .att-loading-inset .att-loading-inset__percentage:before{content:"77"}78% .att-loading-inset .att-loading-inset__percentage:before{content:"78"}79% .att-loading-inset .att-loading-inset__percentage:before{content:"79"}80% .att-loading-inset .att-loading-inset__percentage:before{content:"80"}81% .att-loading-inset .att-loading-inset__percentage:before{content:"81"}82% .att-loading-inset .att-loading-inset__percentage:before{content:"82"}83% .att-loading-inset .att-loading-inset__percentage:before{content:"83"}84% .att-loading-inset .att-loading-inset__percentage:before{content:"84"}85% .att-loading-inset .att-loading-inset__percentage:before{content:"85"}86% .att-loading-inset .att-loading-inset__percentage:before{content:"86"}87% .att-loading-inset .att-loading-inset__percentage:before{content:"87"}88% .att-loading-inset .att-loading-inset__percentage:before{content:"88"}89% .att-loading-inset .att-loading-inset__percentage:before{content:"89"}90% .att-loading-inset .att-loading-inset__percentage:before{content:"90"}91% .att-loading-inset .att-loading-inset__percentage:before{content:"91"}92% .att-loading-inset .att-loading-inset__percentage:before{content:"92"}93% .att-loading-inset .att-loading-inset__percentage:before{content:"93"}94% .att-loading-inset .att-loading-inset__percentage:before{content:"94"}95% .att-loading-inset .att-loading-inset__percentage:before{content:"95"}96% .att-loading-inset .att-loading-inset__percentage:before{content:"96"}97% .att-loading-inset .att-loading-inset__percentage:before{content:"97"}98% .att-loading-inset .att-loading-inset__percentage:before{content:"98"}99% .att-loading-inset .att-loading-inset__percentage:before{content:"99"}100% .att-loading-inset .att-loading-inset__percentage:before{content:"100"}}.att-loading--dark .att-loading-circle__mask .att-loading-circle__fill,.att-loading--dark .loading__inside,.att-loading--dark:after,.att-loading--dark:before{background:#444}.att-loading--dark .att-loading-inset__percentage{color:#444}.lt-ie9 .att-loading--dark{background:url(images/loading_balls_black.gif) center center no-repeat}.att-loading--blue .att-loading-circle__mask .att-loading-circle__fill,.att-loading--blue .loading__inside,.att-loading--blue:after,.att-loading--blue:before{background:#0574AC}.att-loading--blue .att-loading-inset__percentage{color:#0574AC}.lt-ie9 .att-loading--blue{background:url(images/loading_balls_blue.gif) center center no-repeat}.att-loading--white{background-color:#888}.att-loading--white.att-loading-count .att-loading-inset{background-color:inherit}.att-loading--white .att-loading-circle__mask .att-loading-circle__fill,.att-loading--white .loading__inside,.att-loading--white:after,.att-loading--white:before{background:#fff}.att-loading--white .att-loading-inset__percentage{color:#fff}.lt-ie9 .att-loading--white{background:url(images/loading_balls_white.gif) center center no-repeat}.lt-ie9 .att-loading-count{background:url(images/loading_counter.png);overflow:hidden}.lt-ie9 .att-loading-count .att-loading-inset__percentage:before{margin-left:-2px}.video-player{position:relative}.video-player__control{display:inline-block;margin-right:-5px;background-color:#444}.video-player__button{-webkit-transition:background-color .3s ease-out;-moz-transition:background-color .3s ease-out;transition:background-color .3s ease-out;display:inline-block;zoom:1;*display:inline;*vertical-align:auto;font-size:14px;font-size:.875rem;vertical-align:middle;color:#f2f2f2;text-decoration:none;cursor:pointer}.video-player__button:hover{color:#44c8f5}.video-player__button:active{-webkit-transition-property:none;-moz-transition-property:none;transition-property:none;color:#44c8f5}.video-player__button [class*=icon]{display:inline-block}.video-player__play-button{border-radius:3px 0 0 3px;border-right:1px solid #f2f2f2;padding:10px 24px 5px}.gigant-play{font-size:25px}.video-player__volume_icon{border-left:1px solid #f2f2f2;padding:17px 0 13px 11px;margin:0 -5px 0 -5px}.video-player__toggle-fullscreen-button{padding:17px 0 13px 15px;border-radius:0 3px 3px 0}.video-player__volume{padding:24px 0 17px 8px;font-size:0;background-color:#444;margin-left:0;opacity:1}.video-player__volume_icon:hover .video-player__volume{opacity:0}.video-player__volume-bar{-webkit-animation:video__volume-bar .3s reverse;-moz-animation:video__volume-bar .3s reverse;animation:video__volume-bar .3s reverse;-webkit-transform-origin:center bottom;-moz-transform-origin:center bottom;-ms-transform-origin:center bottom;-o-transform-origin:center bottom;transform-origin:center bottom;display:inline-block;zoom:1;*display:inline;*vertical-align:auto;vertical-align:middle;width:4px;height:14px;background-color:#777;margin:-5px 0 0 7px}.video-player__volume-bar:first-child{margin-left:0}.video-player__volume-bar:hover{-webkit-animation:video__volume-bar .3s 1;-moz-animation:video__volume-bar .3s 1;animation:video__volume-bar .3s 1;-webkit-transform:scaleY(1.3);-moz-transform:scaleY(1.3);-ms-transform:scaleY(1.3);-o-transform:scaleY(1.3);transform:scaleY(1.3);-webkit-transform-origin:center;-moz-transform-origin:center;-ms-transform-origin:center;-o-transform-origin:center;transform-origin:center;background-color:#44c8f5}.video-player__volume-bar--full{background-color:#f2f2f2}@-webkit-keyframes video__volume-bar{0%{-webkit-transform:scaleY(1)}50%{-webkit-transform:scaleY(1.3)}100%{-webkit-transform:scaleY(1)}}@-moz-keyframes video__volume-bar{0%{-moz-transform:scaleY(1)}50%{-moz-transform:scaleY(1.3)}100%{-moz-transform:scaleY(1)}}@-o-keyframes video__volume-bar{0%{-o-transform:scaleY(1)}50%{-o-transform:scaleY(1.3)}100%{-o-transform:scaleY(1)}}@keyframes video__volume-bar{0%{transform:scaleY(1)}50%{transform:scaleY(1.3)}100%{transform:scaleY(1)}}.video-player__track{padding:21px 0 21px 21px;margin-bottom:-19px;width:350px}.video-player__track--inner{position:relative;height:8px;border:1px solid #a0a0a0;border-radius:2px;margin:0}.video-player__track--loaded,.video-player__track--played{position:absolute;height:8px;background-color:#a0a0a0;border-radius:2px;margin:-1px 0 0 -1px;left:1px}.video-player__track--played{background-color:#f2f2f2}.video-player__track--played:hover{background-color:#44c8f5}.video-player__track-tooltip{-webkit-transition:opacity .1s ease-out;-moz-transition:opacity .1s ease-out;transition:opacity .1s ease-out;position:absolute;top:-35px;right:-22px;font-size:12px;font-size:.75rem;opacity:0}.lt-ie9 .video-player__track-tooltip{display:none}.video-player__track--played:hover .video-player__track-tooltip{opacity:1}.lt-ie9 .video-player__track--played:hover .video-player__track-tooltip{display:block}.video-player__track-handle{-webkit-transition:opacity .1s ease-out;-moz-transition:opacity .1s ease-out;transition:opacity .1s ease-out;position:absolute;top:-4px;right:-7px;opacity:0;background:#f2f2f2;width:16px;height:16px;border-radius:50%}.video-player__track--played:hover .video-player__track-handle{opacity:1}.video-player__time{font-size:14px;font-size:.875rem;color:#f2f2f2;padding:18px 20px 15px;background-color:#444}.video-player__time:hover{color:#fff}.alert-inplace .container{padding-right:30px}.alert .close-role{position:absolute;top:13px;right:20px;font-size:11px;height:20px;line-height:23px;border:0}.alert .close-role [class^=icon-]{font-size:20px;width:15px;color:#777;margin:0;vertical-align:middle;display:inline-block;margin-top:-4px;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out}.alert .close-role:hover [class^=icon-]{color:#199DDF}.att-checkbox,.att-radio{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out;display:inline-block;zoom:1;*display:inline;*vertical-align:auto;width:21px;height:21px;background-color:#fff;border-radius:21px;border:1px solid #888;cursor:pointer;line-height:21px;text-align:center;vertical-align:middle}.att-checkbox:hover,.att-radio:hover{border-color:#444}.att-checkbox:active,.att-radio:active{border-color:#0574AC}.att-checkbox{border-radius:3px}.att-checkbox__indicator,.att-radio__indicator{-webkit-transition:all .2s cubic-bezier(0.175,.885,.32,1.275);-moz-transition:all .2s cubic-bezier(0.175,.885,.32,1.275);transition:all .2s cubic-bezier(0.175,.885,.32,1.275);top:50%;left:50%;width:7px;height:7px;background:#0574AC;border-radius:7px;position:initial;margin:6px;-ms-filter:"alpha(Opacity=0)"}.csstransforms .att-checkbox__indicator,.csstransforms .att-radio__indicator{-webkit-transform:scale3d(0,0,0);-moz-transform:scale3d(0,0,0);-ms-transform:scale3d(0,0,0);-o-transform:scale3d(0,0,0);transform:scale3d(0,0,0);opacity:0;display:none}.att-checkbox__indicator{width:21px;height:21px;background:0 0;left:0;margin:0;overflow:hidden;position:relative;top:0}.att-checkbox__indicator:after{content:'\e6dd';position:absolute;display:block;width:21px;left:-18px;color:#0574AC;text-align:center;font-family:atticons;font-size:56px}.att-checkbox--on .att-checkbox__indicator,.att-radio--on .att-radio__indicator{opacity:1;-ms-filter:"alpha(Opacity=100)"}.csstransforms .att-checkbox--on .att-checkbox__indicator,.csstransforms .att-radio--on .att-radio__indicator{-webkit-transform:scale3d(1,1,1);-moz-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);-o-transform:scale3d(1,1,1);transform:scale3d(1,1,1);display:block}.att-checkbox input,.att-radio input{left:-9999px;position:absolute}.att-checkbox.att-checkbox--disabled,.att-radio.att-radio--disabled{background-color:#f2f2f2;border:1px solid #DDD;cursor:not-allowed}.att-checkbox.att-checkbox--disabled:active,.att-checkbox.att-checkbox--disabled:hover,.att-radio.att-radio--disabled:active,.att-radio.att-radio--disabled:hover{border-color:#DDD}.att-radio--disabled .att-radio__indicator,.att-radio--on.att-radio--disabled .att-radio__indicator{background:#DDD}.att-checkbox--disabled .att-checkbox__indicator:after,.att-checkbox--on.att-checkbox--disabled .att-checkbox__indicator:after{color:#DDD}.accordion-color-icon-green{background:green;border-radius:100%;height:12px;width:12px;margin:3px 0 0 10px;position:absolute}.accordion-color-icon-yellow{background:#ff0;border-radius:100%;height:12px;width:12px;margin:3px 0 0 10px;position:absolute}.accordion-color-icon-blue{background:#00f;border-radius:100%;height:12px;width:12px;margin:3px 0 0 10px;position:absolute}.accordion-color-icon-red{background:red;border-radius:100%;height:12px;width:12px;margin:3px 0 0 10px;position:absolute}.show-true{padding-left:20px}.att-checkbox--indeterminate:after{content:'-';position:absolute;top:-2px;font-weight:700;color:#067ab4;font-size:40px;left:2px}.dropdown{position:relative}.dropdown:focus,.dropdown:hover{z-index:1}.dropdown:focus>.dropdown__menu,.dropdown:hover>.dropdown__menu{display:block}.dropdown__caret{font-size:10px;margin-left:5px}.dropdown__menu{position:absolute;top:100%;left:0;background-color:#fff;display:none;list-style:none;min-width:150px;text-align:left;z-index:5}.nav--text-right .dropdown__menu{left:auto;right:0}.dropdown__menu-link{display:block;padding:0 20px}select[data-dropdown]{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;width:auto;opacity:0}.no-js select[data-dropdown]{opacity:1}.att-dropdown{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;position:relative}.att-dropdown select{position:absolute;top:-10000px;left:-10000px;color:transparent;font:0/0 a;text-shadow:none}.att-dropdown__selection{font-size:48px;font-size:3rem;font-family:omnes_att_light;line-height:48px;letter-spacing:-2px;display:block;color:#444;cursor:pointer}.att-dropdown__selection:after{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;font-size:14px;font-size:.875rem;margin-left:10px;vertical-align:middle}.att-dropdown__selection.att-dropdown--focus,.att-dropdown__selection.att-dropdown--focus:visited{color:#444;outline:0}.att-dropdown__items{position:absolute;top:-10000px;left:-10000px;background-color:#0574AC;border-radius:6px;color:#fff;opacity:0;visibility:hidden;list-style:none;z-index:6;min-width:100px;margin:-10px}.att-dropdown__items.att-dropdown--open{visibility:visible;opacity:1;outline:0}.att-dropdown__item{font-size:48px;font-size:3rem;font-family:omnes_att_light;letter-spacing:-2px;cursor:default;display:block;line-height:48px;margin-top:-1px;overflow:hidden;padding:10px 50px 17px 10px;position:relative}.att-dropdown__item:first-child{border-top-left-radius:6px;border-top-right-radius:6px}.att-dropdown__item:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.att-dropdown__item:before{position:absolute;top:0;right:10px;left:10px;content:'';display:block;height:1px;border-top:1px solid #0e2875}.att-dropdown__item:first-child:before{display:none}.att-dropdown__item.att-dropdown__item--active{background-color:#0e2875}.att-dropdown__item.att-dropdown__item--selected:after{font-size:28px;font-size:1.75rem;display:inline-block;vertical-align:middle;margin-top:-2px;margin-left:20px}.att-dropdown--h2 .att-dropdown__item,.att-dropdown--h2 .att-dropdown__selection{font-size:36px;font-size:2.25rem;font-family:omnes_att_light;line-height:36px;letter-spacing:-2px}.att-dropdown--h3 .att-dropdown__item,.att-dropdown--h3 .att-dropdown__selection{font-size:24px;font-size:1.5rem;font-family:arial;line-height:26px;letter-spacing:0}.att-dropdown__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.1);display:none;z-index:5}.select2-container.select2-container-disabled .select2-choice{z-index:0}.select2-container{margin:0;position:relative;display:inline-block;zoom:1;*display:inline;vertical-align:middle;width:100%}.select2-container,.select2-drop,.select2-search,.select2-search input{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.select2-container .select2-choice{overflow:hidden;white-space:nowrap;line-height:26px;color:#444;text-decoration:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select2-container.select2-drop-above .select2-choice{border-bottom-color:#aaa;border-radius:0 0 4px 4px;background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(0.9,#fff));background-image:-webkit-linear-gradient(center bottom,#eee 0,#fff 90%);background-image:-moz-linear-gradient(center bottom,#eee 0,#fff 90%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);background-image:linear,to bottom,#eee 0,#fff 90%}.select2-container.select2-allowclear .select2-choice .select2-chosen{margin-right:42px}.select2-container .select2-choice>.select2-chosen{margin-right:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select2-container .select2-choice abbr{display:none;width:12px;height:12px;position:absolute;right:24px;top:8px;font-size:1px;text-decoration:none;border:0;background:url(select2.png) right top no-repeat;cursor:pointer;outline:0}.select2-container.select2-allowclear .select2-choice abbr{display:inline-block}.select2-container .select2-choice abbr:hover{background-position:right -11px;cursor:pointer}.select2-drop-mask{border:0;margin:0;padding:0;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;background-color:#fff}.select2-drop{width:100%;position:absolute;top:100%;color:#000;border:1px solid #aaa;-webkit-box-shadow:0 4px 5px rgba(0,0,0,.15);box-shadow:0 4px 5px rgba(0,0,0,.15)}.select2-drop.select2-drop-above{margin-top:1px;border-radius:4px 4px 0 0;-webkit-box-shadow:0 -4px 5px rgba(0,0,0,.15);box-shadow:0 -4px 5px rgba(0,0,0,.15)}.select2-drop-active{border:1px solid #5897fb;border-top:0}.select2-drop.select2-drop-above.select2-drop-active{border-top:1px solid #5897fb}.select2-drop-auto-width{border-top:1px solid #aaa;width:auto}.select2-drop-auto-width .select2-search{padding-top:4px}.select2-container .select2-choice .select2-arrow{display:inline-block;height:100%;position:absolute;right:0;top:0;border-radius:0 4px 4px 0}.select2-container .select2-choice .select2-arrow b{display:block;width:100%;height:100%;background:url(select2.png) no-repeat 0 1px}.select2-search{display:inline-block;width:100%;margin:0;padding-left:4px;padding-right:4px;position:relative;z-index:10000;white-space:nowrap}.select2-search input{width:100%;outline:0;font-family:sans-serif;font-size:1em;border:1px solid #aaa;border-radius:0;-webkit-box-shadow:none;box-shadow:none;background:#fff url(select2.png) no-repeat 100% -22px;background:url(select2.png) no-repeat 100% -22px,-webkit-gradient(linear,left bottom,left top,color-stop(0.85,#fff),color-stop(0.99,#eee));background:url(select2.png) no-repeat 100% -22px,-webkit-linear-gradient(center bottom,#fff 85%,#eee 99%);background:url(select2.png) no-repeat 100% -22px,-moz-linear-gradient(center bottom,#fff 85%,#eee 99%);background:url(select2.png) no-repeat 100% -22px,linear,to bottom,#fff 85%,#eee 99% 0 0}.select2-drop.select2-drop-above .select2-search input{margin-top:4px}.select2-search input.select2-active{background:#fff url(select2-spinner.gif) no-repeat 100%;background:url(select2-spinner.gif) no-repeat 100%,-webkit-gradient(linear,left bottom,left top,color-stop(0.85,#fff),color-stop(0.99,#eee));background:url(select2-spinner.gif) no-repeat 100%,-webkit-linear-gradient(center bottom,#fff 85%,#eee 99%);background:url(select2-spinner.gif) no-repeat 100%,-moz-linear-gradient(center bottom,#fff 85%,#eee 99%);background:url(select2-spinner.gif) no-repeat 100%,linear,to bottom,#fff 85%,#eee 99% 0 0}.select2-container-active .select2-choice,.select2-container-active .select2-choices{border:1px solid #5897fb;outline:0;-webkit-box-shadow:0 0 5px rgba(0,0,0,.3);box-shadow:0 0 5px rgba(0,0,0,.3)}.select2-dropdown-open .select2-choice{border-bottom-color:transparent;-webkit-box-shadow:0 1px 0 #fff inset;box-shadow:0 1px 0 #fff inset;background-color:#eee;background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0,#fff),color-stop(0.5,#eee));background-image:-webkit-linear-gradient(center bottom,#fff 0,#eee 50%);background-image:-moz-linear-gradient(center bottom,#fff 0,#eee 50%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);background-image:linear,to top,#fff 0,#eee 50%}.select2-dropdown-open.select2-drop-above .select2-choice,.select2-dropdown-open.select2-drop-above .select2-choices{border:1px solid #5897fb;border-top-color:transparent;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(0.5,#eee));background-image:-webkit-linear-gradient(center top,#fff 0,#eee 50%);background-image:-moz-linear-gradient(center top,#fff 0,#eee 50%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);background-image:linear,to bottom,#fff 0,#eee 50%}.select2-dropdown-open .select2-choice .select2-arrow{background:0 0;border-left:0;filter:none}.select2-dropdown-open .select2-choice .select2-arrow b{background-position:-18px 1px}.select2-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.select2-results{max-height:200px;position:relative;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent}.select2-results ul.select2-result-sub{margin:0;padding-left:0}.select2-results ul.select2-result-sub>li .select2-result-label{padding-left:20px}.select2-results ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:40px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:60px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:80px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:100px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:110px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:120px}.select2-results li{list-style:none;display:list-item;background-image:none}.select2-results li.select2-result-with-children>.select2-result-label{font-weight:700}.select2-results .select2-result-label{padding:3px 7px 4px;margin:0;cursor:pointer;min-height:1em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select2-results .select2-highlighted{background:#3875d7;color:#fff}.select2-results li em{background:#feffde;font-style:normal}.select2-results .select2-highlighted em{background:0 0}.select2-results .select2-highlighted ul{background:#fff;color:#000}.select2-results .select2-no-results,.select2-results .select2-searching,.select2-results .select2-selection-limit{background:#f4f4f4;display:list-item;padding-left:5px}.select2-results .select2-disabled.select2-highlighted{color:#666;background:#f4f4f4;display:list-item;cursor:not-allowed}.select2-results .select2-disabled{background:#f4f4f4;display:list-item;cursor:not-allowed}.select2-results .select2-selected{display:none}.select2-more-results.select2-active{background:#f4f4f4 url(select2-spinner.gif) no-repeat 100%}.select2-more-results{background:#f4f4f4;display:list-item}.select2-container.select2-container-disabled .select2-choice{background-color:#f4f4f4;background-image:none;border:1px solid #ddd;cursor:not-allowed}.select2-container.select2-container-disabled .select2-choice abbr{display:none}.select2-container-multi .select2-choices{height:auto!important;height:1%;margin:0;padding:0;position:relative;border:1px solid #aaa;cursor:text;overflow:hidden;background-color:#fff;background-image:-webkit-gradient(linear,0 0,0 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(top,#eee 1%,#fff 15%);background-image:-moz-linear-gradient(top,#eee 1%,#fff 15%);background-image:linear,to bottom,#eee 1%,#fff 15%}.select2-locked{padding:3px 5px!important}.select2-container-multi .select2-choices{min-height:26px}.select2-container-multi.select2-container-active .select2-choices{border:1px solid #5897fb;outline:0;-webkit-box-shadow:0 0 5px rgba(0,0,0,.3);box-shadow:0 0 5px rgba(0,0,0,.3)}.select2-container-multi .select2-choices li{float:left;list-style:none}html[dir=rtl] .select2-container-multi .select2-choices li{float:right}.select2-container-multi .select2-choices .select2-search-field{margin:0;padding:0;white-space:nowrap}.select2-container-multi .select2-choices .select2-search-field input{padding:5px;margin:1px 0;font-family:sans-serif;font-size:100%;color:#666;outline:0;border:0;-webkit-box-shadow:none;box-shadow:none;background:transparent!important}.select2-container-multi .select2-choices .select2-search-field input.select2-active{background:#fff url(select2-spinner.gif) no-repeat 100%!important}.select2-default{color:#999!important}.select2-container-multi .select2-choices .select2-search-choice{padding:3px 5px 3px 18px;margin:3px 0 3px 5px;position:relative;line-height:13px;color:#333;cursor:default;border:1px solid #aaa;border-radius:3px;-webkit-box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);background-clip:padding-box;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#e4e4e4;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);background-image:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear,to top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%}html[dir=rtl] .select2-container-multi .select2-choices .select2-search-choice{margin-left:0;margin-right:5px}.select2-container-multi .select2-choices .select2-search-choice .select2-chosen{cursor:default}.select2-container-multi .select2-choices .select2-search-choice-focus{background:#d4d4d4}.select2-search-choice-close{display:block;width:12px;height:13px;position:absolute;right:3px;top:4px;font-size:1px;outline:0;background:url(select2.png) right top no-repeat}html[dir=rtl] .select2-search-choice-close{right:auto;left:3px}.select2-container-multi .select2-search-choice-close{left:3px}.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover,.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close{background-position:right -11px}.select2-container-multi.select2-container-disabled .select2-choices{background-color:#f4f4f4;background-image:none;border:1px solid #ddd;cursor:not-allowed}.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice{padding:3px 5px;border:1px solid #ddd;background-image:none;background-color:#f4f4f4}.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close{display:none;background:0 0}.select2-offscreen,.select2-offscreen:focus{clip:rect(0 0 0 0)!important;width:1px!important;height:1px!important;border:0!important;margin:0!important;padding:0!important;overflow:hidden!important;position:absolute!important;outline:0!important;left:0!important;top:0!important}.select2-display-none{display:none}.select2-measure-scrollbar{position:absolute;top:-10000px;left:-10000px;width:100px;height:100px;overflow:scroll}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-resolution:2dppx){.select2-container .select2-choice .select2-arrow b,.select2-container .select2-choice abbr,.select2-search input,.select2-search-choice-close{background-image:url(select2x2.png)!important;background-repeat:no-repeat!important;background-size:60px 40px!important}.select2-search input{background-position:100% -21px!important}}.select2-container .select2-choice{-webkit-transition:border-color .2s ease-out;-moz-transition:border-color .2s ease-out;transition:border-color .2s ease-out;background:#fff;border-radius:6px;display:block;border:1px solid #888;box-shadow:none;filter:none;height:40px;padding:0;position:relative;z-index:5;cursor:pointer}.select2-container-active .select2-choice{border-color:#0091d9;z-index:1}.select2-dropdown-open .select2-choice{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.select2-dropdown-open.select2-drop-above .select2-choice{border-top-left-radius:0!important;border-top-right-radius:0!important}.select2-container .select2-chosen,.select2-container input{font-size:12px;font-size:.75rem;color:#444;height:100%;line-height:39px;padding-left:10px;text-align:left}.select2-container input,.select2-container input:hover{border:0!important;line-height:inherit}.text-separator-subtitle .select2-chosen{font-size:18px;font-size:1.125rem}.hovstyle{background:#1792d6!important;color:#fff!important}.hovstyle.disable{background:transparent!important;color:#c4c4c4!important}.select2-container .select2-choice .select2-arrow,.select2-container.select2-container-disabled .select2-choice .select2-arrow{-webkit-transition:none;-moz-transition:none;transition:none;background:0 0;border:0;filter:none;width:25px;z-index:10}.select2-container .select2-choice .select2-arrow b:after,.select2-container.select2-container-disabled .select2-choice .select2-arrow b:after{font-size:14px;font-size:.875rem;content:'\f104';font-family:"Ionicons";position:absolute;top:0;right:0;width:25px;height:40px;line-height:40px;background:0 0;text-align:center;color:#888}.select2-dropdown-open .select2-choice .select2-arrow b:after{content:'\f10d'}.select2-container.select2-container-disabled .select2-chosen{color:#a0a0a0}.select2-drop{margin-top:-1px;background:#fff;border-top:1px solid #d3d3d3;border-radius:0 0 6px 6px;z-index:4}.select2-drop-mask{z-index:3}.select2-drop.select2-drop-above{border-top:0;border-bottom:1px solid #d3d3d3}.select2-search{height:0;min-height:0;overflow:hidden}.select2-search input{margin:0;padding:7px 10px;height:40px!important;line-height:12px;line-height:1.2rem;min-height:0!important}.select2-results{padding:0;margin:-19px 0 0 0;border-radius:0 0 6px 6px;-webkit-box-shadow:rgba(0,0,0,.25) 0 8px 10px -3px;-moz-box-shadow:rgba(0,0,0,.25) 0 8px 10px -3px;box-shadow:rgba(0,0,0,.25) 0 8px 10px -3px}.select2-drop-above .select2-results{border-radius:6px 6px 0 0}.select2-drop-above.select2-dropdown-open .select2-choice{border-radius:0 0 6px 6px!important;background:#fff}.select2-drop-above.select2-drop{border-radius:6px 6px 0 0;margin-top:0;overflow:hidden}.select2-drop.show-search .select2-search{height:auto;overflow:visible;padding:5px}.select2-drop.show-search .select2-results{margin-top:0}.select2-results .select2-result{background:0 0}.select2-result .select2-result-label{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out;font-size:12px;font-size:.75rem;color:#444;display:block;line-height:14px;margin:0;padding:8px 10px}.select2-result.select2-result-current .select2-result-label{background:#fff;color:#1792D6}.select2-result.select2-result-current .select2-result-label:after{content:'\f121';font-family:"Ionicons";font-size:8px;vertical-align:bottom;margin-left:5px;background:0 0;text-align:center;color:#1792D6}.select2-result-current .select2-result-label{font-family:arial;padding-right:5px;color:#067ab4}.select2-no-results{font-size:12px;font-size:.75rem;color:#777;font-family:arial;line-height:12px;padding:10px}.select2-result-selectable .select2-match,.select2-result-unselectable .select2-match{background-color:#c9e9f9;text-decoration:none}.select2-container .color-circle,.select2-results .color-circle{width:15px;height:15px;display:inline-block;zoom:1;*display:inline;*vertical-align:auto;border-radius:15px;margin-right:10px;vertical-align:middle}.select2-container .option-extra,.select2-results .option-extra{float:right}.select2-container .price,.select2-results .price{color:#888}.select2-container.select--clean{border-color:transparent;background:0 0;width:auto}.select2-container.select--clean .select2-choice{background:0 0;border-color:transparent;height:auto}.select2-container.select--clean .select2-drop{margin-top:5px}.select2-container.select--h1 .select2-chosen{font-size:48px;font-size:3rem;font-family:omnes_att_light;line-height:48px;letter-spacing:-2px}.select2-container.select--h2 .select2-chosen{font-size:36px;font-size:2.25rem;font-family:omnes_att_light;line-height:36px;letter-spacing:-2px}.select2-container.select--h3 .select2-chosen{font-size:24px;font-size:1.5rem;font-family:arial;line-height:26px;letter-spacing:0}.select2-container.select--h4 .select2-chosen{font-size:18px;font-size:1.125rem;font-family:arial;line-height:22px;letter-spacing:0}.select2-drop.select--clean{margin-top:5px}.select2-container .select2-choice .select2-arrow b,.select2-container .select2-choice abbr,.select2-container-multi .select2-choices .select2-search-field input.select2-active,.select2-more-results.select2-active,.select2-search input,.select2-search input.select2-active,.select2-search-choice-close{background-image:none!important}.select2-container.select2--small .select2-choice{height:30px;z-index:1}.select2-container.select2--small .select2-chosen{line-height:29px}.select2-container.select2--small .select2-choice .select2-arrow b:after,.select2-container.select2--small.select2-container-disabled .select2-choice .select2-arrow b:after{height:30px;line-height:30px}.select2-container.select2--small .select2-search input{height:30px!important}.select2-container .select2-choice.select2-chosen-disabled{margin-right:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.75rem;height:100%;line-height:39px;padding-left:10px;text-align:left;color:#c4c4c4;background-color:#e4e4e4;border:1px solid #d4d4d4;cursor:not-allowed}.select2-result.disable .select2-result-label{color:#c4c4c4;cursor:not-allowed}ul.select2-results li:last-child{margin-bottom:10px}.text-dropdown{display:block;font-family:omnes_att_light;font-size:48px;color:#067AB4;line-height:40px}.text-dropdown .not-visible{visibility:hidden}.text-dropdown .actions-opened{display:block;width:auto;position:relative;margin-top:-35px;margin-left:20px}.text-dropdown .actions-opened li i{margin-left:20px}.text-dropdown .actions-closed{display:none}.text-dropdown .action--selected{text-decoration:underline;color:#0574AC}.text-dropdown ul{margin-left:-35px;margin-top:-40px;padding-left:0;position:absolute;list-style-type:none;-moz-border-radius:6px;-webkit-border-radius:6px;border:1px solid #0574AC;box-shadow:0 2px 10px -2px;-webkit-box-shadow:0 2px 10px -2px;-moz-box-shadow:0 2px 10px -2px}.text-dropdown li{white-space:nowrap;height:auto;background-color:#0F7EB6;color:#FFF;font-size:48px;font-family:omnes_att_light;line-height:48px;letter-spacing:-1px;padding-left:20px;cursor:pointer}.text-dropdown li i{margin-left:15px;font-size:30px}.text-dropdown .highlight{background-color:#0F2A7B}.text-dropdown .icon-included-checkmark{color:#fff;font-size:30px}.text-dropdown .dropdown{display:inline-block;cursor:pointer}.text-dropdown .dropdown i{font-size:20px;position:relative;top:-10px}.att-accordion{background:#fff;position:relative;border-radius:6px;border-width:1px;border-color:#888;border-style:solid;overflow:hidden}.att-accordion__freestanding{display:block;min-height:50px;margin-bottom:19px}.att-accordion__group{padding-left:20px;padding-right:20px;margin-top:-1px;position:relative}.att-accordion__group.first,.att-accordion__group:first-child{margin-top:0}.att-accordion__group:hover{background-color:#bbb;z-index:1}.att-accordion__group--open{z-index:1}.att-accordion__group--open.att-accordion__group:hover{background-color:transparent}.att-accordion__inner,.att-accordion__toggle{margin:10px 0;text-transform:none}.att-accordion__toggle{font-size:14px;font-size:.875rem;color:#666;display:inline-block;font-family:arial;position:relative;width:100%}.att-accordion__toggle:after{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out;font-size:14px;font-size:.875rem;position:absolute;top:50%;right:20px;font-family:atticons;content:"\e6dc";height:14px;margin-top:-7px;color:#0574AC}.att-accordion__toggle:hover{color:#0091d9}.att-accordion__toggle.noafter:after{content:none}.att-accordion__toggle.noafter i{color:#067ab4}.att-accordion__group--open .att-accordion__toggle:after{-webkit-transform:rotate(-180deg);-moz-transform:rotate(-180deg);-ms-transform:rotate(-180deg);-o-transform:rotate(-180deg);transform:rotate(-180deg)}.no-csstransforms .att-accordion__heading .att-accordion__toggle:after{-webkit-transition:none;-moz-transition:none;transition:none}.att-accordion__body{display:none;padding-top:0;padding-bottom:14px}.att-accordion__body p{margin-bottom:15px}.att-accordion__inner{padding-top:0}.att-accordion__inner>*{margin:0}.att-accordion__bottom--border{border-bottom:1px solid #888;position:absolute;left:20px;right:20px}.att-accordion--no-box .att-accordion__bottom--border{border-bottom:0}.att-accordion--no-box{background:0 0}.att-accordion--no-box .att-accordion__group{border:0;border-bottom:1px solid #bbb;margin-top:-1px;position:relative;padding-left:0!important;padding-right:0!important}.att-accordion--no-box .att-accordion__group.last,.att-accordion--no-box .att-accordion__group:last-child{border-radius:0}.att-accordion--no-box .att-accordion__group:hover{border-color:#bbb;background-color:transparent}.att-accordion--no-box .att-accordion__group--open{border-color:#bbb}.att-accordion--no-box .att-accordion__toggle:active{color:#0574AC}.att-accordion--no-box .att-accordion__toggle:hover{color:#0091d9}.att-accordion--no-box .att-accordion__group--open .att-accordion__toggle{color:#199DDF}.att-accordion--no-box .att-accordion__inner{margin:10px 0!important;text-transform:none}.att-accordion--no-box .att-accordion__toggle:after{position:absolute;top:50%;right:0}.att-accord-header{width:600px;height:50px;background-color:#f2f2f2;border-left:2px solid gray;border-right:2px solid gray;border-top:2px solid gray;border-bottom:2px solid gray;cursor:pointer}.att-accord-header-closed{border-bottom:0}.att-accord-header i{float:right;margin-right:20px;margin-top:-15px}.att-accord-body-inner-text{margin-left:50px;margin-right:50px;height:32px;border-bottom:1px solid gray}.att-accord-body-inner-end{margin-left:50px;margin-right:50px;height:32px;border-bottom:0}.att-accord-header-child{margin-left:50px;margin-top:14px}.att-accord-body{width:600px;height:100px;background-color:#fff;border-left:2px solid gray;border-right:2px solid gray}.att-accord-body-last{border-bottom:2px solid gray}.hourpicker .customdays-width{width:700px}.hourpicker .dropdown-width{width:32%;position:relative}.hourpicker .col-md-days{width:13.4%;padding-left:0;padding-right:0}.hourpicker .divider-margin-f{margin-top:30px;margin-bottom:20px}.hourpicker .divider-margin-s{margin-top:155px}.hourpicker .fromto-margin{width:6%;margin-top:45px;padding:0}.hourpicker .days-margin{margin-right:3px}.hourpicker .daysselect-margin{margin-bottom:20px;margin-right:25px;padding:0}.hourpicker .topDropDownWidth{width:100%;z-index:0}.hourpicker .resultTopMargin{margin-top:0;max-height:205px}.hourpicker .resultTopWidth{display:block;width:100%;position:absolute;background:#fff;z-index:999}.hourpicker .dropDownMarginBottom{width:80px;margin-bottom:10px}.hourpicker .dropDownMarginRight{margin-right:0!important;line-height:30px}.hourpicker .resultToDropDown{display:block;width:80px;position:absolute;background:#fff;z-index:99;top:111px}.hourpicker .resultFromDropDown{display:block;width:80px;position:absolute;background:#fff;z-index:99;top:71px}.hourpicker .selectDropDown{height:30px!important;width:80px;padding-left:0!important}.hourpicker .selectDropDown.selectDropDown-error{border:red solid 1px}.hourpicker .selectedItemInDropDown{background:#1792D6;color:#fff}.hourpicker .select2-container .select2-chosen{padding-left:4px!important}.hourpicker .select2-result .select2-result-label{padding:8px 3px!important}.hourpicker.hourpicker-error-msg{width:100%;border-radius:4px;display:block;padding:10px;font-family:arial;font-size:12px;font-size:.75rem;line-height:10px;color:#666;text-transform:none;background:#fff;position:absolute;z-index:1;-moz-box-sizing:border-box;box-sizing:border-box;text-align:center}.hourpicker.hourpicker-error-msg [class*=icon-]{color:#fff;position:relative;margin-right:9px;line-height:0!important;vertical-align:middle}.hourpicker.hourpicker-error-msg span{vertical-align:middle}.hourpicker.hourpicker-error-msg.error{color:#fff;background:#e00000}.hourpicker.hourpicker-error-msg.warning{color:#444;background:#FCB123}.hourpicker.hourpicker-error-msg.warning [class*=icon-]{color:#444}.hourpicker.hourpicker-error-msg.success{color:#fff;background:#008a06}.hourpicker.hourpicker-error-msg.info{color:#fff;background:#0a7cb5}.hourpicker.hourpicker-error-msg [class^=icon-]{height:30px;line-height:30px}.att-switch{display:inline-block;vertical-align:middle;width:77px;height:20px;line-height:20px;background-color:#666;border-radius:2px;position:relative;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.att-switch.large{width:83px;height:30px}.ie .att-switch{border:0}.att-switch-content{position:absolute;width:131px;font-size:0;top:0;left:-52px;overflow:hidden;-webkit-transition:left .2s ease-in-out 0;-moz-transition:left .2s ease-in-out 0;transition:left .2s ease-in-out 0}.att-switch-content.large{width:135px}.att-switch-content.dragging{-webkit-transition:left;-moz-transition:left 0;transition:left 0}.att-switch.att-checkbox--on .att-switch-content{left:0}.att-switch-offText,.att-switch-onText,.att-switch-thumb{display:inline-block;vertical-align:middle;font-size:11px;font-size:.6875rem;width:53px;height:21px;text-align:center;cursor:pointer;color:#fafafa;margin:0;-webkit-transition:background-color .2s ease-out,color .2s ease-out;-moz-transition:background-color .2s ease-out,color .2s ease-out;transition:background-color .2s ease-out,color .2s ease-out}.ie .att-switch-thumb,.lt-ie9 .att-switch-offText,.lt-ie9 .att-switch-onText,.lt-ie9 .att-switch-thumb{margin-top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.att-switch-thumb{margin-top:-1px}}.att-switch-thumb{width:23px;height:18px;border-radius:2px;background:#fafafa;top:0;position:relative;overflow:hidden;font-size:12px;font-size:.75rem;color:#afafaf}.att-switch-thumb:focus{color:#0091d9}.att-switch-thumb:after{content:'III';letter-spacing:1px;line-height:17px;position:absolute;left:7px;top:1px}.att-switch-thumb.large{margin-top:1px;width:29px;height:28px}.att-switch-thumb.large:after{font-size:16px;font-size:1rem;content:'III';letter-spacing:1px;line-height:26px;position:absolute;left:7px;top:1px}.att-switch.att-checkbox--on{background:#118817}.att-switch .att-switch-thumb:hover,.att-switch.att-checkbox--on .att-switch-thumb:hover{color:#0091d9}.ico{font-size:15px;font-size:.9375rem;-webkit-font-smoothing:antialiased;color:#fff;line-height:20px;pointer-events:none;width:53px;z-index:3}.att-switch-onText{text-indent:4px}.att-switch-offText{text-indent:-4px}.att-switch input{visibility:hidden;position:absolute;left:-100px}.navbar .dev-notes-toggle{color:#6f6f6f;display:inline-block;vertical-align:middle;height:50px;line-height:49px}.navbar .dev-notes-toggle label{display:inline-block;vertical-align:middle;font-family:'Helvetica Neue LT Std','Helvetica Neue',Helvetica;font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.navbar .att-switch{margin-top:-1px;margin-left:5px;background-color:#333;outline:1px solid #333}.button--search{border-radius:0 5px 5px 0}.form-field.form-field__small input[type=color],.form-field.form-field__small input[type=date],.form-field.form-field__small input[type=datetime-local],.form-field.form-field__small input[type=datetime],.form-field.form-field__small input[type=email],.form-field.form-field__small input[type=month],.form-field.form-field__small input[type=number],.form-field.form-field__small input[type=password],.form-field.form-field__small input[type=search],.form-field.form-field__small input[type=tel],.form-field.form-field__small input[type=text],.form-field.form-field__small input[type=time],.form-field.form-field__small input[type=url],.form-field.form-field__small input[type=week],.form-field.form-field__small select,.form-field.form-field__small textarea{height:30px;font-size:12px;font-size:.75rem}.form-field.form-field__small [class^=icon-]{height:30px;line-height:30px}.att-value-selector{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;font-size:16px;font-size:1rem}.att-value-selector .att-radio{width:48px;height:48px;background:0 0;border:2px solid transparent;color:#bbb;padding:1px}.att-value-selector .att-radio:hover{border-color:#bababa;color:#444}.att-value-selector .att-radio.att-radio--on{border-color:#0574AC;color:#444}.att-value-selector .att-radio__indicator{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;transition:none;width:42px;height:42px;-ms-filter:none;filter:none;background:0 0;border-radius:40px;border:1px solid #bababa;margin:0;opacity:1;padding-top:5px;position:static}.att-value-selector.att-radio--on .att-radio__indicator{-ms-filter:none;filter:none}.att-value-selector__item{text-align:center}.att-value-selector__unit,.att-value-selector__value{font-size:16px;font-size:1rem;display:block;font-family:arial;line-height:18px;margin:0}.att-value-selector__unit{font-size:12px;font-size:.75rem;line-height:12px}.att-color-selector{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;font-size:16px;font-size:1rem}.att-color-selector__item{width:30px;height:30px;-webkit-transition:none;-moz-transition:none;transition:none;margin-bottom:5px;background:0 0;border:0;position:relative}.att-color-selector__item:hover{border:2px solid #999;box-shadow:none}.att-radio.att-color-selector__item:hover>.att-radio__indicator{border:0;margin:-11px 0 0 -11px;width:22px;height:22px;border-radius:22px}.att-radio--on.att-color-selector__item{border:2px solid #157BB2}.att-radio--on.att-color-selector__item .att-radio__indicator{border:0;margin:-11px 0 0 -11px;width:22px;height:22px;border-radius:22px}.att-color-selector .att-radio__indicator,[data-color-selector] .att-radio__indicator{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none;-webkit-transition:none;-moz-transition:none;transition:none;width:30px;height:30px;border:1px solid #474747;border-radius:30px;display:block;left:50%;margin:-16px 0 0 -16px;opacity:1;top:50%;position:absolute;-ms-filter:"alpha(Opacity=100)"}.att-value-selector__popover-toggle{width:40px;height:40px;display:block;white-space:nowrap}.att-value-selector__popover-toggle [class^=icon-]{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;position:static;vertical-align:middle;width:auto}.att-value-selector__popover-toggle--single{cursor:default}.att-value-selector__selected-circle{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;width:40px;height:40px;border-radius:40px;border:2px solid #999;color:#444;text-align:center;vertical-align:middle}.att-value-selector__selected-circle .att-value-selector__value{line-height:14px;margin-top:5px}.att-color-selector .att-value-selector__selected-circle{border:0}.overlayed{position:absolute;top:0;right:0;bottom:0;left:0;background:none repeat scroll 0 0 rgba(242,242,242,.95);z-index:90;display:none}.modals{top:0;bottom:0;left:0;right:0;position:fixed;z-index:100;overflow-x:auto;overflow-y:scroll;display:none}.modal__informative,.modal__warning{background:#fff;width:380px;box-shadow:0 2px 5px 0 #BEBEBE;border:1px solid #E6E6E6;padding:35px;border-radius:5px;margin:5% auto}.modal__informative{color:#157BB2}.modal__informative .modal__header--icon{background:url(images/icon-informative-modal.png) center center no-repeat}.modal__warning{color:#ED6F20}.modal__warning .modal__header--icon{background:url(images/icon-warning-modal.png) center center no-repeat}.modal__header{display:inline-table;position:relative;width:73%}.modal__header h2{width:220px;display:inline-block;margin:0}.modal__header .modal__header--icon{position:absolute;display:inline-block;height:65px;width:110px;bottom:0}.modal__header .modal__header--close{color:#888;font-size:28px;position:absolute;right:-112px;top:-24px;cursor:pointer}.modal__header .modal__header--close:hover{color:#444}.modal__content{padding-top:8px;color:#444}.modal__footer{padding-top:35px}.modal__footer a{margin-right:5px}.modal-open,.modal-open .navbar{padding-right:17px}.custom_modal{background:none repeat scroll 0 0 #f2f2f2;opacity:.91}.custom_modal .modal__header h2{width:inherit;margin-bottom:12px}.custom_modal .modal__warning{color:inherit;padding:0;width:980px;background:0 0;border:0;border-radius:none;box-shadow:none}.custom_modal .modal__content{width:100%;padding-top:11px;display:inline-block}.custom_modal .size-onethird .button--primary{min-width:92px}.custom_modal .size-onethird .button--small{padding:8px 0}.custom_modal .accordian{background-color:#fff;margin:30px 5px 0;padding:0;border:1px solid #bbb;border-radius:3px 3px 0 0;border-bottom:0}.custom_modal .accordianheader{background:none repeat scroll 0 0 #666;color:#fff;padding:11px;border-radius:3px 3px 0 0}.custom_modal .att-accordion__bottom--border{border:0}.custom_modal .att-accordion__body,.custom_modal .att-accordion__heading{top:3px}.custom_modal .att-accordion__heading{padding:12px;margin:0}.custom_modal .att-accordion__body{padding:5px;background-color:#f2f2f2}.custom_modal .icon-chevron-down,.custom_modal .icon-chevron-up{right:24px;position:absolute}.custom_modal .button--square{border-bottom:1px solid #bbb;margin:14px 20px;padding:0}.custom_modal .button--square>label{margin-bottom:14px}.custom_modal .select2-container .select2-choice{height:30px}.custom_modal .select2-chosen{position:relative;top:-4px}.custom_modal .select2-arrow>b{position:relative;top:-6px}.custom_modal .att-accordion--no-box .att-accordion__group--open .att-accordion__toggle{background-color:#44C9F6;color:#444}.custom_modal .att-accordion__toggle{position:static}.custom_modal .acc_checkboxgroup .scroll-viewport{height:250px;width:960px}.att--tree ul{margin:0 0 0 10px!important;padding:0!important;list-style-type:none!important}.att--tree li{font-size:12px;font-size:.75rem;cursor:pointer;position:relative;text-decoration:none;color:#888;padding-left:24px;padding-top:2px}.att--tree li:hover{color:#0091d9}.att--tree__plus:before{font-size:14px;font-size:.875rem;font-family:atticons;content:"\e63b";display:inline-block;margin-right:8px;vertical-align:middle}.att--tree__plus:hover{color:#0091d9}.att--tree__arrow{-moz-box-sizing:border-box;box-sizing:border-box;background:url(images/treearrow.png) no-repeat;display:block;margin-left:-10px}.att--tree a{font-size:12px;font-size:.75rem;cursor:pointer;position:relative;display:inline-block;padding:5px 3px;text-decoration:none;color:#888}.att--tree a:hover{color:#0091d9}.att--tree{width:-webkit-fit-content}.att--tree__plus.minus{color:#39b1ec}.att--tree__plus.minus:before{font-size:14px;font-size:.875rem;font-family:atticons;content:"\e63c";display:inline-block;margin-right:8px;vertical-align:middle}.tablesorter-default{font-size:12px;font-size:.75rem;font-family:arial;width:100%;color:#333;background-color:#fff;margin:10px 0 15px;text-align:left;cursor:pointer}.tablesorter-default th,.tablesorter-default thead td{color:#fff;background-color:#666;border-collapse:collapse;padding:0;font-weight:700}.tablesorter-default tfoot td,.tablesorter-default tfoot th{border:0}.tablesorter-default .tablesorter-header.sorter-false .tablesorter-header-inner{background:0 0;cursor:default}.tablesorter-default .tablesorter-header .tablesorter-header-inner{background-image:url(images/upanddown.png);background-position:center right;background-repeat:no-repeat;cursor:pointer;white-space:normal;display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;padding:12px 16px}.tablesorter-default thead .headerSortUp .tablesorter-header-inner,.tablesorter-default thead .tablesorter-headerAsc .tablesorter-header-inner,.tablesorter-default thead .tablesorter-headerSortUp .tablesorter-header-inner{background-image:url(images/up.png)}.tablesorter-default thead .headerSortDown .tablesorter-header-inner,.tablesorter-default thead .tablesorter-headerDesc .tablesorter-header-inner,.tablesorter-default thead .tablesorter-headerSortDown .tablesorter-header-inner{background-image:url(images/down.png)}.tablesorter-default tfoot .tablesorter-headerAsc,.tablesorter-default tfoot .tablesorter-headerDesc,.tablesorter-default tfoot .tablesorter-headerSortDown,.tablesorter-default tfoot .tablesorter-headerSortUp{border-top:#000 2px solid}.tablesorter-default td{background-color:#fff;border-bottom:#aaa 1px solid;padding:4px;vertical-align:top}.tablesorter-default tbody>tr.even:hover>td,.tablesorter-default tbody>tr.odd:hover>td,.tablesorter-default tbody>tr:hover>td{background:#BBB;color:#000}.tablesorter-default tbody tr.normal-row td{background:#fff;padding:12px 16px}.tablesorter-default tbody tr.alt-row td{background:#f2f2f2;padding:12px 16px}.tablesorter-default tr.odd td{background-color:#dfdfdf}.tablesorter-default tr.even td{background-color:#efefef}.tablesorter-default tr.odd td.primary{background-color:#bfbfbf}.tablesorter-default td.primary,.tablesorter-default tr.even td.primary,.tablesorter-default tr.odd td.secondary{background-color:#d9d9d9}.tablesorter-default td.secondary,.tablesorter-default tr.even td.secondary,.tablesorter-default tr.odd td.tertiary{background-color:#e6e6e6}.tablesorter-default td.tertiary,.tablesorter-default tr.even td.tertiary{background-color:#f2f2f2}caption{background:#fff}.tablesorter-default .tablesorter-filter-row td{background:#eee;border-bottom:#ccc 1px solid;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-default .tablesorter-filter-row .disabled{opacity:.5;cursor:not-allowed}.tablesorter-default .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-default .tablesorter-filter-row.hideme .tablesorter-filter{height:1px;min-height:0;border:0;padding:0;margin:0;opacity:0}.tablesorter-default .tablesorter-filter{width:95%;height:auto;margin:4px;padding:4px;background-color:#fff;border:1px solid #bbb;color:#333;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .filtered{display:none}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}.tablesorter-search-highlight{font-weight:700}.scrolling-table{width:700px}.scrolling-table .scroll-viewport{height:200px!important;width:99.5%!important;background-color:#fff}.scrolling-table .scroll-overview{margin-top:-14px!important}.scrolling-table .scroll-viewport:hover{background-color:#fff}.scrolling-table #att-scroll-table-content{height:200px;position:absolute!important;width:700px;padding-left:0;padding-top:0;padding-bottom:0;padding-right:5px}.icon--button{display:inline-block;margin-left:-6px;background-color:#fff;border:1px solid #888;height:40px;width:40px;line-height:39px;text-align:center;cursor:pointer;font-size:20px}.icon--button a{color:#888}.icon--button.first,.icon--button:first-child{border-radius:6px 0 0 6px}.icon--button.last,.icon--button:last-child{border-radius:0 6px 6px 0}.icon--button:hover{background-color:#bbb}.icon--button:hover>a{color:#444}.icon--button:active{background-color:#0574AC}.icon--button:active>a{color:#fff}.icon--button.active--button{background-color:#0574AC}.icon--button.active--button>a{color:#fff}.icon--button.icon--button__small{height:30px;width:34px;line-height:29px;font-size:14px}.icon--button__single-dropdown{font-size:14px;font-size:.875rem;display:inline-block;background-color:#fff;border:1px solid #888;height:30px;width:53px;line-height:29px;border-radius:6px;cursor:pointer}.icon--button__single-dropdown:after{font-size:14px;font-size:.875rem;font-family:Ionicons;content:"\f104";color:#888;margin-left:-4px}.icon--button__single-dropdown:after:hover:after{color:#444}.icon--button__single-dropdown:after:active:after{content:"\f10d";color:#0091d9}.icon--button__single-dropdown a{color:#888;padding-left:10px}.icon--button__single-dropdown:hover{background-color:#bbb}.icon--button__single-dropdown:hover>a{color:#444}.icon--button__single-dropdown:active{background-color:#fff;border-radius:6px 6px 0 0;border-top:1px solid #0091d9;border-left:1px solid #0091d9;border-right:1px solid #0091d9;border-bottom:1px solid #bbb}.icon--button__single-dropdown:active>a{color:#0574AC}.icon--button__dropdown-list{position:absolute;display:none}.icon--button__dropdown-list ul{left:-webkit-calc("-100% + 52px");left:-moz-calc("-100% + 52px");left:calc("-100% + 52px");position:relative;list-style:none;margin-left:0;margin-top:-1px;padding-left:0;border-radius:6px 0 6px 6px;border:1px solid #0091d9}.icon--button__dropdown-list ul li{font-size:12px;text-align:left;height:30px;padding:0 10px}.icon--button__dropdown-list ul li a{color:#888;line-height:30px;padding:0}.icon--button__dropdown-list ul li:hover{background-color:#0091d9}.icon--button__dropdown-list ul li:hover>a{color:#fff}.section-toggle{border-top:1px solid #888;text-align:center}.section-toggle--disabled{border-top-color:#d3d3d3}.section-toggle__button{font-size:12px;font-size:.75rem;display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;background:#fff;border-radius:0 0 3px 3px;border:1px solid #888;color:#444;cursor:pointer;margin:0 auto;padding:5px 10px;position:relative;text-align:center;top:-1px}.section-toggle__button:hover{border-color:#0091d9}.section-toggle__button:active{outline:0}.section-toggle__button:focus{outline:1px solid #39b1ec;outline-offset:2px;text-decoration:none}.section-toggle__button .icon-chevron-down,.section-toggle__button .icon-chevron-up{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;vertical-align:middle}.section-toggle--disabled .section-toggle__button{display:none}.icons-list{list-style:none;margin:20px 0 0;padding:0;font-size:0}.icons-list li{font-size:14px;display:inline-block;width:20%;box-sizing:border-box;vertical-align:top;padding:20px;margin-bottom:20px;cursor:default;min-height:130px;position:relative;overflow:hidden;border:1px solid transparent;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out}.icons-list li:hover{background:#fff;color:#199DDF;border-color:#d3d3d3}.icons-list [class*=icon]{display:inline-block;vertical-align:middle;-webkit-transition:font-size .2s ease-out;-moz-transition:font-size .2s ease-out;transition:font-size .2s ease-out}.icons-list[data-size=small] [class*=icon]{font-size:14px}.icons-list[data-size=medium] [class*=icon]{font-size:28px}.icons-list[data-size=large] [class*=icon]{font-size:56px}.icons-list.small-icons [class*=icon]{font-size:56px!important}.icons-list li [class*=icon]:hover{outline:1px dotted #444;color:#199DDF}.icons-list [data-role=title]{font-family:arial;font-size:14px;margin-top:15px;display:block}.icons-list[data-display=list] li{display:block;margin-bottom:0;width:100%;min-height:0}.icons-list[data-display=list] [data-role=title]{display:inline-block;vertical-align:middle;margin:0;margin-left:15px}.icons-list [data-role=css-class]{display:none;font-size:11px;background:rgba(0,0,0,.8);color:#fff;margin-top:10px;text-align:center;box-sizing:border-box;position:absolute;left:0;right:0;bottom:-30px;padding:0 10px;height:25px;padding-top:7px;white-space:nowrap;overflow-x:auto;-webkit-transition:bottom .2s ease-out;-moz-transition:bottom .2s ease-out;transition:bottom .2s ease-out}.icons-list li:hover [data-role=css-class]{bottom:0}.icons-list[data-display=list] [data-role=css-class]{left:auto;top:50%;right:25px;margin-top:-12px;background:#d3d3d3;color:#444;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.show-dev-notes .icons-list [data-role=css-class]{display:block}.icons-list [data-role=css-class]::selection{background:#666}.icons-list[data-display=list] [data-role=css-class]::selection{background:#d3d3d3}.label-icon{display:block}.tabs-icon.tabs>li a{height:40px;line-height:40px;font-size:14px}.dragdrop{border:1px dashed #bbb;border-radius:5px;padding:0;text-align:center;color:#bbb;position:relative}.dragdrop-over{background:#0091d9;color:#006496}.dragdrop-over:after{content:"Drop the file";color:#fff;width:80px;height:20px;overflow:hidden;margin:auto;position:absolute;top:0;left:0;bottom:0;right:0}.fileContainer{position:relative;overflow:hidden;display:inline-table;font-weight:400}.fileContainer [type=file]{position:absolute;cursor:inherit;display:block;font-size:0;opacity:0;height:0;width:0;left:0;top:0;-ms-filter:"alpha(Opacity=0)"}.att-table-message .img-magnify-glass{background:url(images/magnify_glass.png) center center no-repeat;height:50px}.att-table-message .img-oops-exclamation{background:url(images/oops-exclamation.png) center center no-repeat;height:50px}.att-table-message .img-loading-dots{background:url(images/loading_dots.gif) center center no-repeat;height:50px}.att-table-message .message{text-align:center;padding-top:40px;border-style:solid;border-width:1px;border-top:0;padding-bottom:45px;border-color:#d2d2d2;width:100%;min-height:220px}.att-table-message .loading-message{background:#f2f2f2;background:rgba(242,242,242,.5)}.att-table-message .error-title{font-family:arial,Fallback,sans-serif;font-size:24px;color:#444;line-height:26px}.att-table-message .title{font-size:24px;color:#444;font-family:arial}.att-user-message .hidden{visibility:hidden}.att-user-message .message-wrapper-success{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;opacity:.95;background-color:#fff;-webkit-box-shadow:0 6px 6px rgba(0,0,0,.25),inset 0 -1px rgba(0,0,0,.3);-moz-box-shadow:0 6px 6px rgba(0,0,0,.25),inset 0 -1px rgba(0,0,0,.3);box-shadow:0 6px 6px rgba(0,0,0,.25),inset 0 -1px rgba(0,0,0,.3);float:right;margin-top:-50px;min-width:220px;max-width:360px;max-height:196px;border:solid #54AD18 1px}.att-user-message .message-wrapper-error{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;opacity:.95;background-color:#fff;-webkit-box-shadow:0 6px 6px rgba(0,0,0,.25),inset 0 -1px rgba(0,0,0,.3);-moz-box-shadow:0 6px 6px rgba(0,0,0,.25),inset 0 -1px rgba(0,0,0,.3);box-shadow:0 6px 6px rgba(0,0,0,.25),inset 0 -1px rgba(0,0,0,.3);float:right;margin-top:-50px;min-width:220px;max-width:360px;max-height:196px;border:solid #FE9E0C 1px}.att-user-message .message-icon-success{float:left;margin-top:10px;margin-left:10px;margin-right:10px;font-size:27px;color:#54AD18}.att-user-message .message-icon-error{float:left;margin-top:10px;margin-left:10px;margin-right:10px;font-size:27px;color:#FE9E0C}.att-user-message .message-title-success{font-family:arial;font-size:18px;line-height:15px;word-wrap:break-word;width:100%;color:#008A06}.att-user-message .message-title-error{font-family:arial;font-size:18px;line-height:15px;word-wrap:break-word;width:100%;color:#EF6F00}.att-user-message .message-body-wrapper{max-width:280px;margin-top:15px;margin-right:20px;margin-bottom:15px;float:left}.att-user-message .message-msg{color:#444;font-family:arial;font-size:12px;line-height:15px;margin-top:3px;margin-bottom:15px;word-wrap:break-word}.text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-ms-text-overflow:ellipsis;display:block;width:45%}.pane-group{height:100%;width:100%;border:1px solid #D3D3D3;border-radius:3px;background-color:#FFF}.pane-group .side-pane{position:relative;width:33%;height:100%;float:left}.pane-group .side-pane .header{padding:20px;font-family:arial;font-size:14px;color:#444;line-height:20px}.pane-group .side-pane .body div{line-height:20px;font-family:arial;font-size:14px;color:#444;padding-top:10px;padding-bottom:10px;padding-left:20px}.pane-group .side-pane .body div:hover{background-color:#067AB4;cursor:pointer;color:#FFF}.pane-group .inner-pane{position:relative;display:none;width:300px;height:100%;border-left-width:1px;border-right-width:1px;border-left-style:solid;border-right-style:solid;border-color:#D3D3D3;float:left}.pane-group .inner-pane .header{padding:20px;font-family:arial;font-size:14px;color:#444;line-height:20px}.pane-group .inner-pane .body div{line-height:20px;font-family:arial;font-size:14px;color:#444;padding-top:10px;padding-bottom:10px;padding-left:20px}.pane-group .inner-pane .body div:hover{background-color:#067AB4;cursor:pointer;color:#FFF}.pane-account-selector{width:940px;height:435px;margin-left:10%}.pane-account-selector .line{margin-left:20px;margin-right:20px}.pane-account-selector .side-pane .body .side-row-selected{background-color:#067AB4;color:#FFF}.pane-account-selector .side-pane .body .side-row-selected .chevron-mark{color:#FFF}.pane-account-selector .side-pane .body .chevron-mark{float:right;margin-right:10px;color:#067AB4}.pane-account-selector .side-pane .body div:hover .chevron-mark{color:#FFF}.pane-account-selector .inner-pane{height:434px}.pane-account-selector .inner-pane .header .form-field{width:100%;min-width:190px;max-width:270px;margin-top:10px}.pane-account-selector .inner-pane .header a{font-size:12px;font-family:arial;text-decoration:underline;color:#067AB4}.pane-account-selector .inner-pane .header .verticalLine{border-left:2px solid #D3D3D3;padding-left:2px;padding-right:4x}.pane-account-selector .inner-pane .body .chevron-mark{float:right;margin-right:20px;margin-left:20px;color:#067AB4}.pane-account-selector .inner-pane .body div:hover .chevron-mark{color:#FFF}.pane-account-selector .inner-pane .body .att-radio,.pane-account-selector .inner-pane .body .att-radio__indicator{padding:0}.pane-account-selector .inner-pane hr{margin-top:0;margin-bottom:0}.att-drawer{background-color:#fff;box-shadow:0 4px 5px rgba(0,0,0,.2),inset 0 1px rgba(0,0,0,.3);-webkit-box-shadow:0 4px 5px rgba(0,0,0,.2),inset 0 1px rgba(0,0,0,.3);-moz-box-shadow:0 4px 5px rgba(0,0,0,.2),inset 0 1px rgba(0,0,0,.3)}.drawer-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(255,255,255,.6);z-index:999}.loading_div{display:block;margin:10px 0}.typeahead span[tag-badges]{margin-right:5px}.typeahead .tag{margin:0}.typeahead.mainContainerOuter{position:relative;margin-top:35px}.typeahead .maincontainer{text-align:left;width:700px;border:1px solid #888;border-radius:5px;background:#FFF;max-height:220px;overflow:auto;padding:8px 10px 7px;margin-top:3px}.typeahead .maincontainer:focus{border:1px solid #0091d9}.typeahead .typeahed_active{border:1px solid #0574ac}.typeahead .maincontainer>br{display:none}.typeahead .maincontiner>span{font-size:15px;display:inline-block;padding-right:10px}.typeahead input{padding:5px!important;font-size:14px!important;outline:0!important;background:transparent!important;width:auto!important;border:0!important;height:25px!important}.typeahead ::-ms-clear{display:none}.typeahead .item{width:100%;box-sizing:border-box;margin:auto;text-align:left;height:30px;background:#FFF;padding:4px}.typeahead .item.title{font-size:18px;font-weight:700}.typeahead .subtitle{font-size:14px;color:#444}.typeahead .active{background-color:#4180C4;color:#f2f2f2}.typeahead .filtercontainer{position:absolute;left:0;margin-top:-5px;max-height:160px;overflow:auto;width:100%;background:#FFF;z-index:999;border-radius:0 0 5px 5px;border:1px solid #0091d9}.typeahead .dynamiccss{width:120px;height:30px;border:2px #000 solid;display:inline;margin-left:2px}.typeahead .textAreaEmailContent{font-size:14px;height:80px;line-height:20px;color:#444;width:700px;font-family:arial;margin-top:3px;padding:10px}.typeahead .btnEmailSend{margin-top:70px}.typeahead .message{font-size:12px;line-height:20px;color:#444;font-family:arial}.typeahead .textAreaEmailContentDiv{margin-top:17px}.att-modal__close.typeahead-close{position:absolute;left:initial;bottom:initial;right:0;top:0;color:#000}.typeahead-modal-container{position:relative;width:700px;margin:30px auto}.typeahead-heading{font-size:36px;line-height:20px;color:#444;font-family:omnes_att_light;margin:0}.typeahead-paragraph{font-size:14px;line-height:20px;color:#444;font-family:arial;margin-top:7px;margin-bottom:0}.typeahead-modal-footer{padding-top:40px}.type_ahead-cancel{margin-left:10px}.tabs_overlay{list-style:none;margin:0;padding:0;font-size:0;display:block;border:1px solid #888;border-radius:3px}.tabs_overlay .tabs_overlay__item{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;font-size:18px;font-size:1.125rem;padding:10px 15px;border-left:1px solid #d3d3d3}.tabs_overlay .tabs_overlay__item.two__item{width:50%}.tabs_overlay .tabs_overlay__item.three__item{width:33.3%}.tabs_overlay .tabs_overlay__item.active{background-color:#0574AC;color:#fff}.tabs_overlay .tabs_overlay__item.active .icon-included-checkmark,.tabs_overlay .tabs_overlay__item.active .icon-orders,.tabs_overlay .tabs_overlay__item.active a.viewLink{color:#fff}.tabs_overlay .tabs_overlay__item a.viewLink{float:right;padding-top:2px;font-size:14px;font-size:.875rem}.tabs_overlay .tabs_overlay__item .icon-orders{color:#0574AC}.tabs_overlay .tabs_overlay__item .icon-included-checkmark{color:#4ca90c}.tabbedOverlay_modal{background:none repeat scroll 0 0 #f2f2f2;opacity:.91}.tabbedOverlay_modal .modal__main{color:inherit;padding:0;width:936px;background:0 0;border:0;border-radius:none;box-shadow:none;margin:5% auto}.tabbedOverlay_modal .modal__content{width:100%;background-color:#fff;display:inline-block;padding:0;margin-top:30px}.tabbedOverlay_modal .modal__content .body__content{padding:20px 8px}.tabbedOverlay_modal .icon-circle-action-close{font-size:28px}.tabbedOverlay_modal .icon-trash{font-size:14px;color:#0574AC;border:solid 1px #0574AC;border-radius:6px;padding:5px}.att-boardstrip{display:inline-block;width:100%;border-bottom:1px solid #9d9d9d;position:relative;padding-top:15px}.att-boardstrip .boardstrip-reel{margin-bottom:15px}.att-boardstrip .boardstrip-item--add{border:1px dashed #CCC!important;background:#F2F2F2;color:#444545;width:140px;height:80px;font-size:12px;font-family:arial;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;position:absolute;left:50px;top:15px}.att-boardstrip .boardstrip-item--add:hover{background-color:#39b1ec;cursor:pointer;color:#fff}.att-boardstrip .boardstrip-item--add i{font-size:30px;margin-left:auto;margin-right:auto}.att-boardstrip .boardstrip-item--add .centered{margin-left:auto;margin-right:auto;margin-top:8px;margin-bottom:-12px;display:block}.att-boardstrip .board-viewport{float:left;margin-left:210px;max-height:95px;position:relative;height:95px;overflow:hidden;width:0}.att-boardstrip .board-viewport .boardstrip-container{width:0;margin-left:0;left:0;position:absolute;list-style:none;-webkit-transition:left 1000ms;-moz-transition:left 1000ms;transition:left 1000ms}.att-boardstrip .board-viewport .board-item{width:140px;height:80px;border:1px solid #000;margin:0 15px 15px 0;background-color:#efefef;border-radius:3px;float:left;overflow:hidden}.att-boardstrip .board-viewport .board-item:focus,.att-boardstrip .board-viewport .board-item:hover{border:2px solid #0091d9;background-color:#fff;cursor:pointer}.att-boardstrip .board-viewport .board-item .board-img{width:61px;height:40px;margin:0 auto}.att-boardstrip .board-viewport .board-item .board-img img{max-width:100%}.att-boardstrip .board-viewport .board-item .title{margin:0 auto;display:block;text-align:center;line-height:16px;color:#555545;font-size:12px;font-family:arial;padding:10px 0}.att-boardstrip .board-viewport .board-item.selected{background-color:#fff;border:2px solid #0091d9}.att-boardstrip .board-viewport .board-item .board-caret{cursor:default;outline:0;position:absolute;bottom:7px}.att-boardstrip .board-viewport .board-item .board-caret .board-caret-indicator{border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #999;width:0;height:0;position:absolute;left:61px;bottom:-7px}.att-boardstrip .board-viewport .board-item .board-caret .board-caret-arrow-up{width:0;height:0;border-style:solid;border-width:0 8px 8px;border-color:transparent transparent #f2f2f2;left:61px;position:absolute}.att-boardstrip .arrow{font-size:32px;cursor:pointer}.att-boardstrip .arrow:hover{color:#0091d9}.att-boardstrip .prev-items{display:inline-block;margin-top:auto;margin-bottom:auto;margin-right:15px;margin-right:15px;position:absolute;left:0;top:36px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.att-boardstrip .next-items{display:inline-block;margin-top:auto;margin-bottom:auto;margin-left:15px;position:absolute;right:0;top:36px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.att-boardstrip .centered{display:table-cell;text-align:center;vertical-align:middle}.content{color:#444}section{margin-bottom:60px}a:hover{text-decoration:none}a:focus{outline:-webkit-focus-ring-color auto 5px}h2,h3,h4{margin:0 0 20px}h2{font-family:'Helvetica Neue',Helvetica;font-size:36px;font-size:2.25rem}h3{font-size:18px;font-size:1.125rem;font-weight:400}h4{font-size:14px;font-size:.875rem;font-weight:600;margin:0}dl{margin:5px 0 20px}dd,dt{display:inline-block;margin:0;width:80px}dd{width:150px}.font-clearview p{font-size:12px;font-size:.75rem;line-height:20px}.row{position:relative}.section-row{padding:20px 0;position:relative}.section-row:first-child{padding-top:0}.section-row:first-child h2{margin-top:-5px}.section-row h4{text-transform:uppercase}.section-description{line-height:20px}.section-row-description{font-size:12px;font-size:.75rem;line-height:18px;margin:5px 0}.section-row-description+.section-row-description{margin-top:20px}.section-buttons,.section-download-button{margin-top:5px;position:absolute;right:10px}.section-image{margin:20px 0;width:100%}.font-face-showcase{font-size:44px;font-size:2.75rem;line-height:54px;margin:20px 0}#pill-buttons{background:url(images/pill-buttons-diagram.png) 360px 50px no-repeat}#pill-buttons h2{margin-top:0}#pill-buttons .section-row .icon-cross{color:#888;font-size:30px;font-size:1.875rem}.colored-buttons-wrapper{margin-bottom:40px}.colored-buttons-container{-webkit-transition:background .3s ease-out;-moz-transition:background .3s ease-out;transition:background .3s ease-out;margin:0 0 20px;overflow:hidden;padding:20px 0}#forms{background:url(images/forms-diagram.png) 360px 100px no-repeat}.switches label{display:inline-block;margin:10px 0 15px;text-align:center;width:100%}.switches .span2{text-align:center}.dev-notes{background:#eaeaea;border-radius:3px;display:none;margin-bottom:50px;padding:20px}.show-dev-notes .dev-notes{display:block}.dev-notes .tabs{margin-top:20px}.dev-notes .tabs li a{background:#aaa;border:0;border-bottom:0;border-radius:0;color:#333;font-family:arial;font-size:10px;font-size:.625rem;height:auto;line-height:18px;margin-left:2px;padding:5px 15px 2px}.dev-notes .tabs li:first-child a{margin-left:0}.dev-notes .tabs li:hover a{background:#181818}.dev-notes .tabs li.active a{background:#272822}.dev-notes .tabs li.active a,.dev-notes .tabs li:hover a{color:#fff}pre.line-numbers{background-color:#272822;border-radius:0 0 3px 3px;border:0;margin:0;padding-bottom:30px;padding-left:50px;padding-top:30px;word-wrap:normal}pre.line-numbers.with-example{border-radius:0 0 3px 3px;overflow:visible;padding-bottom:10px;padding-left:40px;position:relative}pre.notes{padding-top:0;padding-bottom:0}.dev-notes-header{margin:0 0 10px;z-index:10;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}.dev-notes.with-tabs .dev-notes-header{margin:0;padding-bottom:0}.dev-notes .title,.dev-notes p{margin:10px 0 0;color:#777;font-size:12px;font-size:.75rem}.dev-notes p:first-of-type{margin-top:0}.dev-notes .title{font-weight:600;margin:0 0 5px}.dev-notes .title:before{content:'Dev Notes: '}.dev-notes .close{position:absolute;top:0;right:0;color:#777;font-size:12px;font-size:.75rem;padding:7px 0 7px 10px;text-align:right}.dev-notes .close:hover{color:#F9432C}.dev-notes-example-title{margin:0 0 10px;color:#777}.dev-notes-wrapper{margin:0;background:#272822;padding:20px;border-radius:0 3px 3px}.dev-notes-example{margin:0;padding:20px;background:#fff;position:relative;overflow:hidden}.dev-notes-example:last-child{margin-bottom:0}.dev-notes-js-link{position:absolute;right:10px;top:10px;font-family:arial;font-size:10px;font-size:.625rem;color:#444;padding:5px;background:#ddd;border:1px solid #ccc;border-radius:3px}.dev-notes-js-link:hover{background-color:#fff}.navbar .body-color-selector>a{color:#6f6f6f}.navbar .body-color-selector-item{height:50px;padding:0 10px;-moz-box-sizing:border-box;box-sizing:border-box}.navbar .body-color-selector-color{text-indent:-9999px;width:25px;height:25px;border-radius:100%;float:right;margin-top:12px;background-color:#DADADA}.body-color-selector-gray .body-color-selector-color{background-color:#DADADA}.body-color-selector-white .body-color-selector-color{background-color:#fff}.font-showcase-row>[class*=span]:first-child{border-top:1px solid #d3d3d3;padding-top:35px}.font-showcase-row h4{font-family:arial;font-size:12px;font-size:.75rem;font-weight:100;text-transform:uppercase}h4.font-showcase-font-example,h4.font-showcase-font-name{text-transform:none}.font-showcase-info{font-family:arial;font-size:12px;font-size:.75rem;color:#888}.h6 .font-showcase-info{margin-top:-10px}.font-showcase-row .section-row-description{margin-bottom:20px}.font-showcase-row.display-prices .right-col .size-half{margin-bottom:15px}.font-showcase-row .display-prices-small{margin-top:30px}.font-showcase-details .details-label{margin-top:22px}.color-circle{display:inline-block;width:100px;height:100px;border-radius:100%}.next-section-link{margin-top:50px;display:inline-block;text-decoration:none;border-bottom:1px solid transparent}.next-section-link:hover{color:#FC411E;border-bottom-color:#FC411E;text-decoration:none}.next-section-link:after{content:'\e6da';font-family:atticons;font-size:12px;font-size:.75rem;margin-left:5px}#breadcrumbs .section-row{padding-top:0}#breadcrumbs .section-description{margin:0}#photo-video-controls{background:url(../images/video-photo-controls.png) right 60px no-repeat}#photo-video-controls .section-description{margin-bottom:70px}[data-role=actions-bar]{background:#F2F2F2;position:relative;z-index:1;padding-top:0;padding-bottom:25px;margin-bottom:10px;overflow:hidden}[data-role=actions-bar]:after{content:'';position:absolute;display:block;bottom:0;left:10px;right:10px;border-bottom:1px solid #d3d3d3}.color-white [data-role=actions-bar]{background:#fff}[data-role=actions-bar] label{position:relative}[data-role=actions-bar] label span{text-transform:none;font-size:10px;font-size:.625rem}#iconography.affix{position:relative;padding-top:87px}#iconography.affix [data-role=actions-bar]{width:720px;top:50px;z-index:1;position:fixed;padding-top:35px;padding-bottom:25px}#total-icons-found{position:absolute;right:0}#iconography .section-row:first-child h2{margin-bottom:0}.columns{font-size:0}.columns.text-center{margin:0 auto}.col{display:inline-block;vertical-align:top;font-size:14px;font-size:.875rem;box-sizing:border-box}.size-col-10,.size-full{width:100%}.size-twofifths{width:40%}.size-threefifths{width:60%}.size-fourfifths{width:90%}.size-col-1,.size-onetenth{width:10%}.size-col-2,.size-twotenths{width:20%}.size-col-3,.size-threetenths{width:30%}.size-col-4,.size-fourtenths{width:40%}.size-col-5,.size-fivetenths{width:50%}.size-col-6,.size-sixtenths{width:60%}.size-col-7,.size-seventenths{width:70%}.size-col-8,.size-eighttenths{width:80%}.size-col-9,.size-ninetenths{width:90%}.no-margin{margin:0}.pull-right{float:right}.pull-left{float:left}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-uppercase{text-transform:uppercase}.text-underline{text-decoration:underline}.hide{display:none}.show{display:block}.invisible{visibility:hidden}.affix{position:fixed}.font-clearview{font-family:arial}.font-omnes{font-family:arial}.font-omnes-light{font-family:omnes_att_light}.note{font-size:12px;font-size:.75rem;color:#ff3000}.size-full{width:100%}.size-half{width:50%}.size-onethird{width:33.333333%}.size-twothirds{width:66.666666%}.size-onefourth{width:25%}.size-onefifth{width:20%}.size-onesixth{width:16.666666%}.size-oneseventh{width:14.285714%}.size-oneeighth{width:12.5%}.size-onenineth{width:11.111111%}.size-onetenth{width:10%}.bg-color-primary{background-color:#067ab4}.bg-color-primary-hover{background-color:#199ddf}.bg-color-text{background-color:#444}.bg-color-inactive{background-color:#ddd}.bg-color-uielements{background-color:#777}.bg-color-table-hover{background-color:#e5e5e5}.bg-color-subtle-hover{background-color:#bbb}.bg-color-background{background-color:#ddd}.bg-color-buynow{background-color:#ff7200}.bg-color-warning{background-color:#fcb134}.bg-color-error{background-color:#ff4539}.bg-color-success{background-color:#6ebb1f}.text-color-primary{color:#067ab4}.text-color-primary-hover{color:#199ddf}.text-color-text{color:#444}.text-color-inactive{color:#ddd}.text-color-uielements{color:#777}.text-color-table-hover{color:#e5e5e5}.text-color-subtle-hover{color:#bbb}.text-color-background{color:#ddd}.text-color-buynow{color:#ff7200}.text-color-warning{color:#fcb134}.text-color-error{color:#ff4539}.text-color-success{color:#6ebb1f}.align-right{margin-left:0!important;left:-100%!important;right:0!important}.align-left{left:-1px!important;right:0!important;margin-left:0!important;border-top-right-radius:6px!important;border-top-left-radius:0!important}#horizontalScroll{height:80px;width:100px;border:1px solid #000;overflow-y:hidden}#horizontalScroll #dynamicWidth{border:0}#horizontalScroll div{width:40px;height:100%;border:1px dashed #000}#utilities ul{height:80px;width:100px;border:1px solid #000;margin-left:0}#utilities .accessibility-div{min-width:100px;min-height:100px;width:100px;height:100px;border:1px solid #000}#utilities .circle{display:block;max-width:40px;max-height:40px;padding:11px 0;-moz-box-sizing:border-box;box-sizing:border-box;background:#e5e5e5;border-radius:20px;position:relative;line-height:15px;color:#999;text-align:center;border:1px solid transparent;cursor:pointer}#utilities .circle span{display:block;font-size:10px;line-height:10px;text-align:center;color:#999;border:1px solid #999;position:absolute;height:18px;width:65px;top:18px;left:0;padding-top:20px;cursor:pointer}#utilities .color-on-focus:focus{background:#0574AC;border-color:#fff} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/tbs.css b/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/tbs.css
deleted file mode 100644
index 3e01e41b..00000000
--- a/ecomp-portal-FE/client/bower_components_external/angular.att.abs-2.17.0/styles/tbs.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";address,blockquote,dd,h1,h2,h3,h4,h5,h6,ol,p,pre,table,ul{margin:0;padding:0;margin-bottom:24px;margin-bottom:1.5rem}html{font-size:1em;line-height:1.5}body{margin:0}h1{font-size:48px;font-size:3rem;line-height:1}h2{font-size:36px;font-size:2.25rem;line-height:1.3333333333}h3{font-size:30px;font-size:1.875rem;line-height:1.6}h4{font-size:24px;font-size:1.5rem;line-height:1}h5{font-size:20px;font-size:1.25rem;line-height:1.2}h6{font-size:18px;font-size:1.125rem;line-height:1.3333333333}dd,ol,ul{margin-left:48px;margin-left:3rem}li>ol,li>ul{margin-bottom:0}code,kbd,pre,samp{font-family:monospace,monospace}blockquote{text-indent:-.41em;quotes:"“" "â€";margin-left:48px;margin-left:3rem}blockquote p:before{content:"“";content:open-quote}blockquote p:after{content:"";content:no-close-quote}blockquote p:last-of-type:after{content:"â€";content:close-quote}q{quotes:"‘" "’" "“" "â€"}q:before{content:"‘";content:open-quote}q:after{content:"’";content:close-quote}q q:before{content:"“";content:open-quote}q q:after{content:"â€";content:close-quote}q:first-child{display:inline-block;text-indent:-.22em}table{width:100%;border-collapse:collapse;border-spacing:0}td,th{padding:12px}#grid{position:absolute;top:0;left:50%;width:980px;margin-left:-490px;counter-reset:section;z-index:9999!important;pointer-events:none;outline:1px solid rgba(0,206,209,.1)}#grid:after{position:fixed;top:0;left:0;content:'Column: 20px Gutter: 20px Margin: 20px';display:block;max-width:90px;padding:3px;background-color:#000;color:#fff;font-size:10px;font-family:monospace;z-index:9999}#grid div.vert{width:20px;outline:solid rgba(0,206,209,.3);outline-width:1px;margin-right:20px;position:relative;background:rgba(255,0,0,.05);counter-increment:section}#grid div.vert.first-line{margin-left:20px}#grid div.vert::after{position:fixed;display:block;text-align:center;color:#fff;width:20px;content:counter(section);top:5px;font-size:8px;font-family:monospace}#grid div.vert:nth-child(24){position:absolute;top:0;right:0}#grid div.vert:nth-child(1),#grid div.vert:nth-child(10),#grid div.vert:nth-child(11),#grid div.vert:nth-child(12),#grid div.vert:nth-child(13),#grid div.vert:nth-child(14),#grid div.vert:nth-child(15),#grid div.vert:nth-child(16),#grid div.vert:nth-child(17),#grid div.vert:nth-child(18),#grid div.vert:nth-child(19),#grid div.vert:nth-child(2),#grid div.vert:nth-child(20),#grid div.vert:nth-child(21),#grid div.vert:nth-child(22),#grid div.vert:nth-child(23),#grid div.vert:nth-child(24),#grid div.vert:nth-child(3),#grid div.vert:nth-child(4),#grid div.vert:nth-child(5),#grid div.vert:nth-child(6),#grid div.vert:nth-child(7),#grid div.vert:nth-child(8),#grid div.vert:nth-child(9){display:inline-block!important}#grid div.vert:nth-child(25),#grid div.vert:nth-child(26),#grid div.vert:nth-child(27),#grid div.vert:nth-child(28),#grid div.vert:nth-child(29),#grid div.vert:nth-child(30),#grid div.vert:nth-child(31){display:none!important}#grid div.horiz{height:10px;border-bottom:1px dotted rgba(100,100,100,.2);margin:0;padding:0}.bg-prime-blue{background-color:#067ab4}.bg-secondary-gray{background-color:#666}.bg-light-blue{background-color:#bcc9d5}.bg-dark-gray{background-color:#444}.bg-dusty-blue{background-color:#97b1cf}.bg-warm-gray{background-color:#cccb9b}.bg-taupe{background-color:#cccb6c}.bg-green-highlight{background-color:#c4d63f}.bg-lime-highlight{background-color:#dad632}.bg-purple-highlight{background-color:#b6539c}.bg-magenta{background-color:#d71481}.bg-blue-highlight{background-color:#4cc8f3}.bg-ochre{background-color:#fab230}.bg-green{background-color:#4fa721}.bg-lime{background-color:#b6bd26}.bg-purple{background-color:#7f0e7c}.bg-burgundy{background-color:#b1103e}.bg-dark-blue{background-color:#0e2875}.bg-gold{background-color:#fd9827}.bg-teal{background-color:#20c6b2}.bg-mint-green{background-color:#9cfecd}.bg-yellow{background-color:#feed35}.bg-white{background-color:#fff}.alt.inline-list>li{display:inline-block;zoom:1;*display:inline;*vertical-align:auto;vertical-align:middle;float:none}.text-upper{text-transform:uppercase!important}body{font-family:arial}.font-showcase h1,.font-showcase h2,.font-showcase h3,.font-showcase h4,.font-showcase h5,.font-showcase h6{font-weight:100;letter-spacing:-1px;margin:10px 0;-webkit-font-smoothing:antialiased}.font-showcase h1{font-family:omnes_att_light;font-size:48px;font-size:3rem;line-height:48px}.font-showcase h2,.price{font-family:omnes_att_light;font-size:36px;font-size:2.25rem;line-height:36px}.font-showcase h3{font-family:arial;font-size:24px;font-size:1.5rem;line-height:28px}.font-showcase h4,.font-showcase h4.font-showcase-font-example,.font-showcase h4.font-showcase-font-name{font-family:arial;font-size:18px;font-size:1.125rem;line-height:22px;-webkit-font-smoothing:antialiased}.font-showcase h5{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.font-showcase h6{font-family:arial;font-size:11px;font-size:.6875rem;line-height:30px;font-weight:100;-webkit-font-smoothing:antialiased}.body-copy,.font-showcase p{font-family:arial;font-size:14px;font-size:.875rem;line-height:20px;-webkit-font-smoothing:antialiased}.body-copy-short{font-family:arial;font-size:12px;font-size:.75rem;line-height:15px;-webkit-font-smoothing:antialiased}p [class*=icon]{display:inline-block;vertical-align:middle;margin-top:-4px}.details-label{display:block;font-family:arial;font-size:11px;font-size:.6875rem;line-height:15px}.details-label+.price{line-height:28px}.price{letter-spacing:-1px;-webkit-font-smoothing:antialiased}.price sup{font-size:18px;font-size:1.125rem;vertical-align:baseline;top:-11px;margin:0 2px}.price-alt{font-size:24px;font-size:1.5rem;line-height:24px}.price-alt sup{font-size:12px;font-size:.75rem;top:-8px}.promo-tagline{font-family:omnes_att_medium_italic;font-size:16px;font-size:1rem;line-height:20px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.promo-text{font-family:clearview_att_italic;font-size:12px;font-size:.75rem;line-height:15px;display:inline-block;margin-bottom:5px;-webkit-font-smoothing:antialiased}.divider,.divider-dark,hr{border:0;border-bottom:1px solid #d3d3d3}.divider-light{border-color:#e5e5e5}dl{font-family:arial;color:#444;font-size:12px;font-size:.75rem}dt{font-family:arial;font-size:11px;font-size:.6875rem;display:block!important;margin:10px 0 5px!important;width:auto!important;text-transform:uppercase}dt a{font-family:arial;color:#067ab4;text-transform:none}dd{display:inline!important;line-height:20px}[data-highlight]{background-color:#c9e9f9;-webkit-animation:highlight-fade 3s infinite}@-webkit-keyframes highlight-fade{100%,80%{background-color:transparent}}.tabsbid{vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;list-style:none;margin:0;padding:0;font-size:0;display:-webkit-inline-box}.simplified-tabs__item .active{border-bottom:solid 4px #444}.tabsbid--right{float:right}.tabsbid__item{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;padding:0;margin:0}.tabsbid__item-link{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;font-size:14px;font-size:.875rem;background-color:#f2f2f2;border:1px solid #888;color:#666;cursor:pointer;height:40px;line-height:39px;margin:0 0 0 -1px;padding:0 20px;text-align:center;text-decoration:none;text-transform:none;width:auto}.tabsbid__item--first .tabsbid__item-link,.tabsbid__item:first-child .tabsbid__item-link{border-radius:4px 0 0 4px;margin-left:0}.tabsbid__item--last .tabsbid__item-link,.tabsbid__item:last-child .tabsbid__item-link{border-radius:0 4px 4px 0}.tabsbid__item-link:hover{-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;transition:all .3s ease-out;background-color:#b2b2b2;color:#000;text-decoration:none}.tabsbid__item--active .tabsbid__item-link{background-color:#0574AC;border:1px solid #0574AC;color:#fff}.tabsbid--small .tabsbid__item-link{font-size:11px;font-size:.6875rem;padding:0 15px;height:30px;line-height:29px;margin:0 0 0 -5px}.tabsbid--light .tabsbid__item-link{background-color:#fff}.tabsbid--links{text-align:left;border-bottom:1px solid #888}.tabsbid--links .tabsbid__item-link{font-size:14px;font-size:.875rem;background-color:none;border:0;padding:0 15px 0 0}.tabsbid--links .tabsbid__item-link:hover{-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;transition:all .3s ease-out;background:0 0;color:#067ab4;text-decoration:none}.tabsbid--links .tabsbid__item--active .tabsbid__item-link{background:0 0;color:#067ab4}.tabsbid--icons .tabsbid__item--active .tabsbid__item-link,.tabsbid--icons .tabsbid__item-link,.tabsbid--icons .tabsbid__item-link:hover{font-size:28px;font-size:1.75rem;background:0 0;border:0;line-height:36px;margin-right:10px;padding:0}.tabsbid--icons .tabsbid__item-link [class^=icon-]{vertical-align:middle}.tabsbid--icons .tabsbid__item-link:hover{color:#067ab4}.tabsbid__content{width:100%}.tabsbid__pane{display:none}.tabsbid__pane--active{display:block}.tabsbid--image{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;clear:both;float:none;list-style:none;margin:0;padding:20px 0 0;font-size:0}.tabsbid__item--image{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;position:relative}.tabsbid__item--image img{margin:0 auto;opacity:.3}.tabsbid__item--image-title{color:#888}.tabsbid__item--image.tabsbid__item--active img,.tabsbid__item--image:hover img{margin:0 auto;opacity:1}.tabsbid__item--image.tabsbid__item--active .tabsbid__item--image-title,.tabsbid__item--image:hover .tabsbid__item--image-title{color:#067ab4}.tabsbid__item--image .tabsbid__item--image-link,.tabsbid__item--image.tabsbid__item--active{position:relative}.tabsbid__item--image.tabsbid__item--active:after,.tabsbid__item--image.tabsbid__item--active:before{position:absolute;bottom:-24px;left:50%;content:'';margin-left:-8px;border:8px solid transparent;z-index:3}.tabsbid__item--image.tabsbid__item--active:before{bottom:-23px;border-bottom-color:#d3d3d3}.tabsbid__item--image.tabsbid__item--active:after{border-bottom-color:#f2f2f2}.tabsbid__content--image{padding:15px 0;width:100%}.simplified-tabs{background-color:#f2f2f2;position:relative}.simplified-tabs:after{position:absolute;right:0;bottom:0;left:0;border-bottom:1px solid #888;content:''}.simplified-tabs .simplified-tabs__items{border-spacing:30px 0;display:table;list-style:none;margin:0;padding:0;margin-left:-30px;position:relative;table-layout:fixed}.simplified-tabs .simplified-tabs__items:after{position:absolute;right:40px;bottom:0;left:30px;border-bottom:1px solid #888;content:''}.simplified-tabs .simplified-tabs__item{width:auto;height:100%;-webkit-transition:color .15s ease-in-out;-moz-transition:color .15s ease-in-out;transition:color .15s ease-in-out;font-size:14px;font-size:.875rem;display:table-cell;font-family:arial;padding-bottom:17px;position:relative;text-align:center}.simplified-tabs .simplified-tabs__item:before{height:0;width:0;border-color:transparent;border-style:solid;border-width:10px;border-bottom-color:#888;position:absolute;right:0;bottom:0;left:50%;content:'';display:none;margin-left:-11px;z-index:1}.simplified-tabs .simplified-tabs__item:after{height:0;width:0;border-color:transparent;border-style:solid;border-width:10px;border-bottom-color:#f2f2f2;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out;position:absolute;right:0;bottom:-1px;left:50%;content:'';display:none;margin-left:-11px;z-index:1}.simplified-tabs .simplified-tabs__item:hover{color:#0091d9;cursor:pointer}.simplified-tabs .simplified-tabs__item a{color:inherit;outline:0;position:relative}.simplified-tabs .simplified-tabs__item a:before{position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;border:1px solid #39b1ec;content:'';opacity:0}.lt-ie9 .simplified-tabs .simplified-tabs__item a:before{content:none}.simplified-tabs .simplified-tabs__item a:focus:before{opacity:1}.lt-ie9 .simplified-tabs .simplified-tabs__item a:focus:before{content:''}.simplified-tabs .simplified-tabs__item.tabs__item--active{color:#0574AC;font-family:arial}.simplified-tabs .simplified-tabs__item.tabs__item--active:after,.simplified-tabs .simplified-tabs__item.tabs__item--active:before{display:block}.lt-ie9 .simplified-tabs .simplified-tabs__item.tabs__item--active:after,.lt-ie9 .simplified-tabs .simplified-tabs__item.tabs__item--active:before{content:' '}.simplified-tabs+.tabs__content{padding-top:19px}.simplified-tabs .tabs__pointer{width:20px;height:11px;left:-11px}.simplified-tabs .tabs__pointer:before{height:0;width:0;border-color:transparent;border-style:solid;border-width:10px;border-bottom-color:#888;left:-11px}.simplified-tabs .tabs__pointer:after{height:0;width:0;border-color:transparent;border-style:solid;border-width:10px;border-bottom-color:#f2f2f2;left:-11px}.tabs__pointer{width:28px;height:15px;position:absolute;bottom:0;left:-14px;display:none}.tabs__pointer:after,.tabs__pointer:before{content:'';z-index:3}.tabs__pointer:before{height:0;width:0;border-color:transparent;border-style:solid;border-width:14px;border-bottom-color:#6f6f6f;position:absolute;bottom:0;left:-14px}.tabs__pointer:after{height:0;width:0;border-color:transparent;border-style:solid;border-width:14px;border-bottom-color:#f2f2f2;position:absolute;bottom:-1px;left:-14px}.tabs--no-pointer .simplified-tabs__item:after,.tabs--no-pointer .simplified-tabs__item:before,.tabs--no-pointer .tabs__item--image:after,.tabs--no-pointer .tabs__item--image:before{display:none}.gtabs{margin-left:-30px}.gtabs .tabsbid__item{position:relative;bottom:-1px}.gtabs li.tabsbid__item--active{border-bottom:0}.gtabs ul{border-bottom:1px solid #888}.gtabs .tabsbid__item--first .tabsbid__item-link,.tabsbid__item:first-child .tabsbid__item-link{border-radius:4px 0 0}.gtabs .tabsbid__item--last .tabsbid__item-link,.tabsbid__item:last-child .tabsbid__item-link{border-radius:0 4px 0 0}.gtabs .tabsbid__item--active .tabsbid__item-link{background:#f2f2f2;border:1px solid #888;border-bottom:0;color:inherit;z-index:-2}.gtabs .tabsbid__item-link{background:#fff}.gtabs .tabsbid__item-link:hover{background-color:#bbb;color:#000;text-decoration:none}.tabsbid__item a:focus{text-decoration:none}.top-megamenu .megamenu-tabs{background-color:#067ab4;position:relative}.top-megamenu .megamenu-tabs ul{width:980px;margin:0 auto;display:block;list-style:none;padding:0}.top-megamenu .megamenu-tabs ul li{display:inline-block;text-align:left}.megamenu-tabs{background-color:#067ab4;position:relative}.megamenu-tabs ul{width:auto;display:block;list-style:none;padding:0}.megamenu-tabs ul li{display:inline-block;text-align:left}.megamenu-tabs .megamenu__items{border-spacing:30px 0}.megamenu-tabs .megamenu__item{width:auto;height:100%;-webkit-transition:color .15s ease-in-out;-moz-transition:color .15s ease-in-out;transition:color .15s ease-in-out;font-family:arial;font-size:16px;cursor:pointer;padding:13px 0;margin-right:30px;color:#fff}.megamenu-tabs .megamenu__item:hover{color:#0091d9;cursor:pointer}.megamenu-tabs .megamenu__item a{font-size:16px;color:#fff}position:relative .megamenu-tabs .megamenu__item a:focus:before{opacity:1}.lt-ie9 position:relative .megamenu-tabs .megamenu__item a:focus:before{content:''}.megamenu-tabs .megamenu__item.skip{text-align:left;text-indent:-9999px;color:transparent}.megamenu-tabs .megamenu__item.skip:focus{color:#fff;text-indent:0}.megamenu-tabs .megamenu__item.tabs__item--active{color:#fff}.megamenu-tabs .megamenu__item.tabs__item--active:after{height:0;width:0;border-color:transparent;border-style:solid;border-width:10px;border-bottom-color:#fff;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out;content:'';margin-left:12px;z-index:1;position:absolute;top:30px}.lt-ie9 .megamenu-tabs .megamenu__item.tabs__item--active:after{content:' '}.submenu-tabs{background-color:#fff;position:absolute;width:100%;left:0;top:50px;z-index:999;border-bottom:solid 1px #ddd}.submenu-tabs .megamenu__item{width:auto;height:100%;-webkit-transition:color .15s ease-in-out;-moz-transition:color .15s ease-in-out;transition:color .15s ease-in-out;color:#666;border-bottom:3px solid transparent;margin-right:40px;font-family:arial;font-size:16px;cursor:pointer;padding:14px 0 10px}.submenu-tabs .megamenu__item:hover{color:#444;cursor:pointer;font-family:arial}.submenu-tabs .megamenu__item a{font-size:16px;color:#000;position:relative}.submenu-tabs .megamenu__item a:focus:before{opacity:1}.lt-ie9 .submenu-tabs .megamenu__item a:focus:before{content:''}.submenu-tabs .megamenu__item.tabs__item--active{color:#fff;font-family:arial}.submenu-tabs .megamenu__item.tabs__item--active:after,.submenu-tabs .megamenu__item.tabs__item--active:before{display:none}.lt-ie9 .submenu-tabs .megamenu__item.tabs__item--active:after{content:' '}.submenu-tabs .sub__menu{position:absolute;z-index:999;left:0;width:100%;top:50px;background-color:#fff}.submenu-tabs .sub__menu .tabsbid__item{display:inline-block;vertical-align:baseline;zoom:1;*display:inline;*vertical-align:auto;width:auto;float:left;margin:20px 0 0;padding-right:20px}.submenu-tabs .sub__menu .tabsbid__item .links-list__item{border:0;color:#000;font-size:12px;font-family:arial}.submenu-tabs .sub__menu .tabsbid__item .links-list__item:hover{color:#199ddf;border:0}.submenu-tabs .sub__menu .tabsbid__item .title{font-family:arial;font-size:14px}.ie .submenu-tabs .sub__menu{top:51px}.subMenuHover{font-family:arial!important;color:#444!important;border-bottom:3px solid #067ab4!important;cursor:pointer!important}.skiptoBody{position:absolute;top:-1000px;left:-1000px;height:1px;width:1px;text-align:left;overflow:hidden}a.skiptoBody:focus{height:1px;width:1px;text-align:left;overflow:hidden} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/bowser/bowser.js b/ecomp-portal-FE/client/bower_components_external/bowser/bowser.js
deleted file mode 100644
index c496a738..00000000
--- a/ecomp-portal-FE/client/bower_components_external/bowser/bowser.js
+++ /dev/null
@@ -1,559 +0,0 @@
-/*!
- * Bowser - a browser detector
- * https://github.com/ded/bowser
- * MIT License | (c) Dustin Diaz 2015
- */
-
-!function (name, definition) {
- if (typeof module != 'undefined' && module.exports) module.exports = definition()
- else if (typeof define == 'function' && define.amd) define(definition)
- else this[name] = definition()
-}('bowser', function () {
- /**
- * See useragents.js for examples of navigator.userAgent
- */
-
- var t = true
-
- function detect(ua) {
-
- function getFirstMatch(regex) {
- var match = ua.match(regex);
- return (match && match.length > 1 && match[1]) || '';
- }
-
- function getSecondMatch(regex) {
- var match = ua.match(regex);
- return (match && match.length > 1 && match[2]) || '';
- }
-
- var iosdevice = getFirstMatch(/(ipod|iphone|ipad)/i).toLowerCase()
- , likeAndroid = /like android/i.test(ua)
- , android = !likeAndroid && /android/i.test(ua)
- , nexusMobile = /nexus\s*[0-6]\s*/i.test(ua)
- , nexusTablet = !nexusMobile && /nexus\s*[0-9]+/i.test(ua)
- , chromeos = /CrOS/.test(ua)
- , silk = /silk/i.test(ua)
- , sailfish = /sailfish/i.test(ua)
- , tizen = /tizen/i.test(ua)
- , webos = /(web|hpw)os/i.test(ua)
- , windowsphone = /windows phone/i.test(ua)
- , windows = !windowsphone && /windows/i.test(ua)
- , mac = !iosdevice && !silk && /macintosh/i.test(ua)
- , linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua)
- , edgeVersion = getFirstMatch(/edge\/(\d+(\.\d+)?)/i)
- , versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i)
- , tablet = /tablet/i.test(ua)
- , mobile = !tablet && /[^-]mobi/i.test(ua)
- , xbox = /xbox/i.test(ua)
- , result
-
- if (/opera|opr|opios/i.test(ua)) {
- result = {
- name: 'Opera'
- , opera: t
- , version: versionIdentifier || getFirstMatch(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)
- }
- }
- else if (/coast/i.test(ua)) {
- result = {
- name: 'Opera Coast'
- , coast: t
- , version: versionIdentifier || getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i)
- }
- }
- else if (/yabrowser/i.test(ua)) {
- result = {
- name: 'Yandex Browser'
- , yandexbrowser: t
- , version: versionIdentifier || getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)
- }
- }
- else if (/ucbrowser/i.test(ua)) {
- result = {
- name: 'UC Browser'
- , ucbrowser: t
- , version: getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)
- }
- }
- else if (/mxios/i.test(ua)) {
- result = {
- name: 'Maxthon'
- , maxthon: t
- , version: getFirstMatch(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)
- }
- }
- else if (/epiphany/i.test(ua)) {
- result = {
- name: 'Epiphany'
- , epiphany: t
- , version: getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)
- }
- }
- else if (/puffin/i.test(ua)) {
- result = {
- name: 'Puffin'
- , puffin: t
- , version: getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)
- }
- }
- else if (/sleipnir/i.test(ua)) {
- result = {
- name: 'Sleipnir'
- , sleipnir: t
- , version: getFirstMatch(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)
- }
- }
- else if (/k-meleon/i.test(ua)) {
- result = {
- name: 'K-Meleon'
- , kMeleon: t
- , version: getFirstMatch(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)
- }
- }
- else if (windowsphone) {
- result = {
- name: 'Windows Phone'
- , windowsphone: t
- }
- if (edgeVersion) {
- result.msedge = t
- result.version = edgeVersion
- }
- else {
- result.msie = t
- result.version = getFirstMatch(/iemobile\/(\d+(\.\d+)?)/i)
- }
- }
- else if (/msie|trident/i.test(ua)) {
- result = {
- name: 'Internet Explorer'
- , msie: t
- , version: getFirstMatch(/(?:msie |rv:)(\d+(\.\d+)?)/i)
- }
- } else if (chromeos) {
- result = {
- name: 'Chrome'
- , chromeos: t
- , chromeBook: t
- , chrome: t
- , version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)
- }
- } else if (/chrome.+? edge/i.test(ua)) {
- result = {
- name: 'Microsoft Edge'
- , msedge: t
- , version: edgeVersion
- }
- }
- else if (/vivaldi/i.test(ua)) {
- result = {
- name: 'Vivaldi'
- , vivaldi: t
- , version: getFirstMatch(/vivaldi\/(\d+(\.\d+)?)/i) || versionIdentifier
- }
- }
- else if (sailfish) {
- result = {
- name: 'Sailfish'
- , sailfish: t
- , version: getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i)
- }
- }
- else if (/seamonkey\//i.test(ua)) {
- result = {
- name: 'SeaMonkey'
- , seamonkey: t
- , version: getFirstMatch(/seamonkey\/(\d+(\.\d+)?)/i)
- }
- }
- else if (/firefox|iceweasel|fxios/i.test(ua)) {
- result = {
- name: 'Firefox'
- , firefox: t
- , version: getFirstMatch(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)
- }
- if (/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ua)) {
- result.firefoxos = t
- }
- }
- else if (silk) {
- result = {
- name: 'Amazon Silk'
- , silk: t
- , version : getFirstMatch(/silk\/(\d+(\.\d+)?)/i)
- }
- }
- else if (/phantom/i.test(ua)) {
- result = {
- name: 'PhantomJS'
- , phantom: t
- , version: getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i)
- }
- }
- else if (/slimerjs/i.test(ua)) {
- result = {
- name: 'SlimerJS'
- , slimer: t
- , version: getFirstMatch(/slimerjs\/(\d+(\.\d+)?)/i)
- }
- }
- else if (/blackberry|\bbb\d+/i.test(ua) || /rim\stablet/i.test(ua)) {
- result = {
- name: 'BlackBerry'
- , blackberry: t
- , version: versionIdentifier || getFirstMatch(/blackberry[\d]+\/(\d+(\.\d+)?)/i)
- }
- }
- else if (webos) {
- result = {
- name: 'WebOS'
- , webos: t
- , version: versionIdentifier || getFirstMatch(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)
- };
- /touchpad\//i.test(ua) && (result.touchpad = t)
- }
- else if (/bada/i.test(ua)) {
- result = {
- name: 'Bada'
- , bada: t
- , version: getFirstMatch(/dolfin\/(\d+(\.\d+)?)/i)
- };
- }
- else if (tizen) {
- result = {
- name: 'Tizen'
- , tizen: t
- , version: getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i) || versionIdentifier
- };
- }
- else if (/qupzilla/i.test(ua)) {
- result = {
- name: 'QupZilla'
- , qupzilla: t
- , version: getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || versionIdentifier
- }
- }
- else if (/chromium/i.test(ua)) {
- result = {
- name: 'Chromium'
- , chromium: t
- , version: getFirstMatch(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i) || versionIdentifier
- }
- }
- else if (/chrome|crios|crmo/i.test(ua)) {
- result = {
- name: 'Chrome'
- , chrome: t
- , version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)
- }
- }
- else if (android) {
- result = {
- name: 'Android'
- , version: versionIdentifier
- }
- }
- else if (/safari|applewebkit/i.test(ua)) {
- result = {
- name: 'Safari'
- , safari: t
- }
- if (versionIdentifier) {
- result.version = versionIdentifier
- }
- }
- else if (iosdevice) {
- result = {
- name : iosdevice == 'iphone' ? 'iPhone' : iosdevice == 'ipad' ? 'iPad' : 'iPod'
- }
- // WTF: version is not part of user agent in web apps
- if (versionIdentifier) {
- result.version = versionIdentifier
- }
- }
- else if(/googlebot/i.test(ua)) {
- result = {
- name: 'Googlebot'
- , googlebot: t
- , version: getFirstMatch(/googlebot\/(\d+(\.\d+))/i) || versionIdentifier
- }
- }
- else {
- result = {
- name: getFirstMatch(/^(.*)\/(.*) /),
- version: getSecondMatch(/^(.*)\/(.*) /)
- };
- }
-
- // set webkit or gecko flag for browsers based on these engines
- if (!result.msedge && /(apple)?webkit/i.test(ua)) {
- if (/(apple)?webkit\/537\.36/i.test(ua)) {
- result.name = result.name || "Blink"
- result.blink = t
- } else {
- result.name = result.name || "Webkit"
- result.webkit = t
- }
- if (!result.version && versionIdentifier) {
- result.version = versionIdentifier
- }
- } else if (!result.opera && /gecko\//i.test(ua)) {
- result.name = result.name || "Gecko"
- result.gecko = t
- result.version = result.version || getFirstMatch(/gecko\/(\d+(\.\d+)?)/i)
- }
-
- // set OS flags for platforms that have multiple browsers
- if (!result.msedge && (android || result.silk)) {
- result.android = t
- } else if (iosdevice) {
- result[iosdevice] = t
- result.ios = t
- } else if (mac) {
- result.mac = t
- } else if (xbox) {
- result.xbox = t
- } else if (windows) {
- result.windows = t
- } else if (linux) {
- result.linux = t
- }
-
- // OS version extraction
- var osVersion = '';
- if (result.windowsphone) {
- osVersion = getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);
- } else if (iosdevice) {
- osVersion = getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i);
- osVersion = osVersion.replace(/[_\s]/g, '.');
- } else if (android) {
- osVersion = getFirstMatch(/android[ \/-](\d+(\.\d+)*)/i);
- } else if (result.webos) {
- osVersion = getFirstMatch(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);
- } else if (result.blackberry) {
- osVersion = getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i);
- } else if (result.bada) {
- osVersion = getFirstMatch(/bada\/(\d+(\.\d+)*)/i);
- } else if (result.tizen) {
- osVersion = getFirstMatch(/tizen[\/\s](\d+(\.\d+)*)/i);
- }
- if (osVersion) {
- result.osversion = osVersion;
- }
-
- // device type extraction
- var osMajorVersion = osVersion.split('.')[0];
- if (
- tablet
- || nexusTablet
- || iosdevice == 'ipad'
- || (android && (osMajorVersion == 3 || (osMajorVersion >= 4 && !mobile)))
- || result.silk
- ) {
- result.tablet = t
- } else if (
- mobile
- || iosdevice == 'iphone'
- || iosdevice == 'ipod'
- || android
- || nexusMobile
- || result.blackberry
- || result.webos
- || result.bada
- ) {
- result.mobile = t
- }
-
- // Graded Browser Support
- // http://developer.yahoo.com/yui/articles/gbs
- if (result.msedge ||
- (result.msie && result.version >= 10) ||
- (result.yandexbrowser && result.version >= 15) ||
- (result.vivaldi && result.version >= 1.0) ||
- (result.chrome && result.version >= 20) ||
- (result.firefox && result.version >= 20.0) ||
- (result.safari && result.version >= 6) ||
- (result.opera && result.version >= 10.0) ||
- (result.ios && result.osversion && result.osversion.split(".")[0] >= 6) ||
- (result.blackberry && result.version >= 10.1)
- || (result.chromium && result.version >= 20)
- ) {
- result.a = t;
- }
- else if ((result.msie && result.version < 10) ||
- (result.chrome && result.version < 20) ||
- (result.firefox && result.version < 20.0) ||
- (result.safari && result.version < 6) ||
- (result.opera && result.version < 10.0) ||
- (result.ios && result.osversion && result.osversion.split(".")[0] < 6)
- || (result.chromium && result.version < 20)
- ) {
- result.c = t
- } else result.x = t
-
- return result
- }
-
- var bowser = detect(typeof navigator !== 'undefined' ? navigator.userAgent : '')
-
- bowser.test = function (browserList) {
- for (var i = 0; i < browserList.length; ++i) {
- var browserItem = browserList[i];
- if (typeof browserItem=== 'string') {
- if (browserItem in bowser) {
- return true;
- }
- }
- }
- return false;
- }
-
- /**
- * Get version precisions count
- *
- * @example
- * getVersionPrecision("1.10.3") // 3
- *
- * @param {string} version
- * @return {number}
- */
- function getVersionPrecision(version) {
- return version.split(".").length;
- }
-
- /**
- * Array::map polyfill
- *
- * @param {Array} arr
- * @param {Function} iterator
- * @return {Array}
- */
- function map(arr, iterator) {
- var result = [], i;
- if (Array.prototype.map) {
- return Array.prototype.map.call(arr, iterator);
- }
- for (i = 0; i < arr.length; i++) {
- result.push(iterator(arr[i]));
- }
- return result;
- }
-
- /**
- * Calculate browser version weight
- *
- * @example
- * compareVersions(['1.10.2.1', '1.8.2.1.90']) // 1
- * compareVersions(['1.010.2.1', '1.09.2.1.90']); // 1
- * compareVersions(['1.10.2.1', '1.10.2.1']); // 0
- * compareVersions(['1.10.2.1', '1.0800.2']); // -1
- *
- * @param {Array<String>} versions versions to compare
- * @return {Number} comparison result
- */
- function compareVersions(versions) {
- // 1) get common precision for both versions, for example for "10.0" and "9" it should be 2
- var precision = Math.max(getVersionPrecision(versions[0]), getVersionPrecision(versions[1]));
- var chunks = map(versions, function (version) {
- var delta = precision - getVersionPrecision(version);
-
- // 2) "9" -> "9.0" (for precision = 2)
- version = version + new Array(delta + 1).join(".0");
-
- // 3) "9.0" -> ["000000000"", "000000009"]
- return map(version.split("."), function (chunk) {
- return new Array(20 - chunk.length).join("0") + chunk;
- }).reverse();
- });
-
- // iterate in reverse order by reversed chunks array
- while (--precision >= 0) {
- // 4) compare: "000000009" > "000000010" = false (but "9" > "10" = true)
- if (chunks[0][precision] > chunks[1][precision]) {
- return 1;
- }
- else if (chunks[0][precision] === chunks[1][precision]) {
- if (precision === 0) {
- // all version chunks are same
- return 0;
- }
- }
- else {
- return -1;
- }
- }
- }
-
- /**
- * Check if browser is unsupported
- *
- * @example
- * bowser.isUnsupportedBrowser({
- * msie: "10",
- * firefox: "23",
- * chrome: "29",
- * safari: "5.1",
- * opera: "16",
- * phantom: "534"
- * });
- *
- * @param {Object} minVersions map of minimal version to browser
- * @param {Boolean} [strictMode = false] flag to return false if browser wasn't found in map
- * @param {String} [ua] user agent string
- * @return {Boolean}
- */
- function isUnsupportedBrowser(minVersions, strictMode, ua) {
- var _bowser = bowser;
-
- // make strictMode param optional with ua param usage
- if (typeof strictMode === 'string') {
- ua = strictMode;
- strictMode = void(0);
- }
-
- if (strictMode === void(0)) {
- strictMode = false;
- }
- if (ua) {
- _bowser = detect(ua);
- }
-
- var version = "" + _bowser.version;
- for (var browser in minVersions) {
- if (minVersions.hasOwnProperty(browser)) {
- if (_bowser[browser]) {
- // browser version and min supported version.
- return compareVersions([version, minVersions[browser]]) < 0;
- }
- }
- }
-
- return strictMode; // not found
- }
-
- /**
- * Check if browser is supported
- *
- * @param {Object} minVersions map of minimal version to browser
- * @param {Boolean} [strictMode = false] flag to return false if browser wasn't found in map
- * @param {String} [ua] user agent string
- * @return {Boolean}
- */
- function check(minVersions, strictMode, ua) {
- return !isUnsupportedBrowser(minVersions, strictMode, ua);
- }
-
- bowser.isUnsupportedBrowser = isUnsupportedBrowser;
- bowser.compareVersions = compareVersions;
- bowser.check = check;
-
- /*
- * Set our detect method to the main bowser object so we can
- * reuse it to test other user agents.
- * This is needed to implement future tests.
- */
- bowser._detect = detect;
-
- return bowser
-});
diff --git a/ecomp-portal-FE/client/bower_components_external/bowser/useragents.js b/ecomp-portal-FE/client/bower_components_external/bowser/useragents.js
deleted file mode 100644
index dd7fb251..00000000
--- a/ecomp-portal-FE/client/bower_components_external/bowser/useragents.js
+++ /dev/null
@@ -1,1267 +0,0 @@
-/**
- * Example User Agents and their expected bowser objects.
- * Most of them where found at http://www.useragentstring.com/
- *
- * @see test/test.js
- * @author hannes.diercks@jimdo.com
- */
-module.exports.useragents = {
- Chrome: {
- 'Mozilla/5.0 (Linux; Android 5.1.1; Nexus 9 Build/LMY48T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Safari/537.36': {
- chrome: true
- , android: true
- , osversion: '5.1.1'
- , tablet: true
- , version: '47.0'
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Safari/537.36': {
- chrome: true
- , android: true
- , osversion: '4.4.2'
- , tablet: true
- , version: '32.0'
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (Linux; Android 4.3; Galaxy Nexus Build/JWR66Y) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Mobile Safari/537.36': {
- chrome: true
- , android: true
- , osversion: '4.3'
- , mobile: true
- , version: '32.0'
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (Linux; Android 4.1; Galaxy Nexus Build/JRN84D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19': {
- chrome: true
- , android: true
- , osversion: '4.1'
- , mobile: true
- , version: '18.0'
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (Linux; U; Android-4.0.3; en-us; Xoom Build/IML77) AppleWebKit/535.7 (KHTML, like Gecko) CrMo/16.0.912.75 Safari/535.7': {
- chrome: true
- , android: true
- , osversion: '4.0.3'
- , tablet: true
- , version: '16.0'
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (Linux; U; Android-4.0.3; en-us; Galaxy Nexus Build/IML74K) AppleWebKit/535.7 (KHTML, like Gecko) CrMo/16.0.912.75 Mobile Safari/535.7': {
- chrome: true
- , android: true
- , osversion: '4.0.3'
- , mobile: true
- , version: '16.0'
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3': {
- chrome: true
- , iphone: true
- , ios: true
- , osversion: '5.1.1'
- , mobile: true
- , version: '19.0'
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (iPad; U; CPU OS 5_1_1 like Mac OS X; en-us) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3': {
- chrome: true
- , ipad: true
- , ios: true
- , osversion: '5.1.1'
- , tablet: true
- , version: '19.0'
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36': {
- chrome: true
- , version: '30.0'
- , windows: true
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36': {
- chrome: true
- , version: '29.0'
- , windows: true
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (X11; CrOS i686 4319.74.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36': {
- chrome: true
- , chromeBook: true
- , version: '29.0'
- , chromeos: true
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.2 Safari/537.36': {
- chrome: true
- , version: '29.0'
- , windows: true
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36': {
- chrome: true
- , version: '28.0'
- , windows: true
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24': {
- chrome: true
- , version: '11.0'
- , mac: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.462.0 Safari/534.3': {
- chrome: true
- , version: '6.0'
- , linux: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/50.0.2661.95 Mobile/13E238 Safari/601.1.46': {
- chrome: true
- , version: '50.0'
- , osversion: '9.3.1'
- , webkit: true
- , ios: true
- , iphone: true
- , mobile: true
- , a: true
- }
- , 'Mozilla/5.0 (Linux; Android 5.0.2; SM-T705 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.105 Safari/537.36': {
- chrome: true
- , android: true
- , version: '49.0'
- , osversion: '5.0.2'
- , blink: true
- , a: true
- , tablet: true
- }
- , 'Mozilla/5.0 (Linux; Android 6.0.99; Build/NPC91K) AppleWebKit/537.36(KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36': {
- chrome: true
- , android: true
- , tablet: true
- , osversion: '6.0.99'
- , version: '50.0'
- , blink: true
- , a: true
- }
- }
- , 'Amazon Silk': {
- 'Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; KFTT Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.4 Mobile Safari/535.19 Silk-Accelerated=true': {
- name: 'Amazon Silk'
- , silk: true
- , webkit: true
- , android: true
- , osversion: '4.0.3'
- , tablet: true
- , version : '3.4'
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; en-us; KFTT Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.4 Safari/535.19 Silk-Accelerated=true': {
- name: 'Amazon Silk'
- , silk: true
- , webkit: true
- , android: true
- , tablet: true
- , version : '3.4'
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Silk/1.0.13.81_10003810) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 Silk-Accelerated=true': {
- name: 'Amazon Silk'
- , silk: true
- , webkit: true
- , android: true
- , osversion: '2.3.4'
- , tablet: true
- , version : '1.0'
- , x: true
- }
- , 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us; Silk/1.0.22.153_10033210) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 Silk-Accelerated=true': {
- name: 'Amazon Silk'
- , silk: true
- , webkit: true
- , android: true
- , tablet: true
- , version : '1.0'
- , x: true
- }
- }
- , Opera: {
- 'Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.72 Safari/537.36 OPR/19.0.1340.69721': {
- opera: true
- , blink: true
- , android: true
- , osversion: '4.4.2'
- , tablet: true
- , version: '19.0'
- , a: true
- }
- , 'Mozilla/5.0 (Linux; Android 4.3; Galaxy Nexus Build/JWR66Y) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.72 Mobile Safari/537.36 OPR/19.0.1340.69721': {
- opera: true
- , blink: true
- , android: true
- , osversion: '4.3'
- , mobile: true
- , version: '19.0'
- , a: true
- }
- , 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36 OPR/15.0.1147.100': {
- opera: true
- , windows: true
- , blink: true
- , version: '15.0'
- , a: true
- }
- , 'Opera/9.80 (Android 4.3; Linux; Opera Mobi/ADR-1309251116) Presto/2.11.355 Version/12.10': {
- opera: true
- , version: '12.10'
- , android: true
- , osversion: '4.3'
- , mobile: true
- , a: true
- }
- , 'Opera/9.80 (Android 4.4.2; Linux; Opera Tablet/ADR-1309251116) Presto/2.11.355 Version/12.10': {
- opera: true
- , version: '12.10'
- , android: true
- , osversion: '4.4.2'
- , tablet: true
- , a: true
- }
- , 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14': {
- opera: true
- , version: '12.14'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101 Firefox/4.0 Opera 12.14': {
- opera: true
- , version: '12.14'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14': {
- opera: true
- , version: '12.14'
- , windows: true
- , a: true
- }
- , 'Opera/12.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.02': {
- opera: true
- , version: '12.02'
- , windows: true
- , a: true
- }
- , 'Opera/9.80 (X11; Linux i686; U; es-ES) Presto/2.8.131 Version/11.11': {
- opera: true
- , version: '11.11'
- , linux: true
- , a: true
- }
- , 'Opera/9.80 (Macintosh; Intel Mac OS X 10.6.7; U; en) Presto/2.7.62 Version/11.01': {
- opera: true
- , version: '11.01'
- , mac: true
- , a: true
- }
- , 'Opera/9.80 (Windows NT 5.2; U; zh-cn) Presto/2.6.30 Version/10.63': {
- opera: true
- , version: '10.63'
- , windows: true
- , a: true
- }
- , 'Opera/9.80 (X11; Linux i686; U; it) Presto/2.5.24 Version/10.54': {
- opera: true
- , version: '10.54'
- , linux: true
- , a: true
- }
- , 'Opera/9.70 (Linux ppc64 ; U; en) Presto/2.2.1': {
- opera: true
- , version: '9.70'
- , linux: true
- , c: true
- }
- , 'Opera/9.63 (X11; Linux i686)': {
- opera: true
- , version: '9.63'
- , linux: true
- , c: true
- }
- , 'Mozilla/5.0 (X11; Linux i686; U; en) Opera 8.52': {
- opera: true
- , version: '8.52'
- , linux: true
- , c: true
- }
- }
- , 'Opera Coast': {
- 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Coast/5.02.99991 Mobile/13E238 Safari/7534.48.3': {
- coast: true
- , version: '5.02'
- , osversion: '9.3.1'
- , iphone: true
- , ios: true
- , mobile: true
- , a: true
- , webkit: true
- }
- }
- , 'Yandex Browser': {
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 YaBrowser/15.4.2272.3420 (beta) Yowser/2.0 Safari/537.36': {
- yandexbrowser: true
- , blink: true
- , version: '15.4'
- , mac: true
- , a: true
- },
- 'Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 YaBrowser/15.4.2272.3608.00 Mobile Safari/537.36': {
- yandexbrowser: true
- , android: true
- , osversion: '5.1.1'
- , mobile: true
- , version: '15.4'
- , blink: true
- , a: true
- }
- }
- , Safari: {
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13+ (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2': {
- safari: true
- , version: '5.1'
- , mac: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1': {
- safari: true
- , version: '5.0'
- , mac: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5': {
- safari: true
- , version: '5.0'
- , windows: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+': {
- safari: true
- , version: '5.0'
- , linux: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-en) AppleWebKit/533.16 (KHTML, like Gecko) Version/4.1 Safari/533.16': {
- safari: true
- , version: '4.1'
- , windows: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_6_1; en_GB, en_US) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10': {
- safari: true
- , version: '4.0'
- , mac: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; de-de) AppleWebKit/525.28.3 (KHTML, like Gecko) Version/3.2.3 Safari/525.28.3': {
- safari: true
- , version: '3.2'
- , mac: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/11B554a': {
- ios: true
- , osversion: '7.0.4'
- , iphone: true
- , mobile: true
- , webkit: true
- , safari: true
- , a: true
- }
- , 'Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5': {
- ios: true
- , osversion: '4.3.2'
- , version: '5.0'
- , iphone: true
- , mobile: true
- , safari: true
- , webkit: true
- , c: true
- }
- , 'Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3': {
- ios: true
- , version: '3.0'
- , iphone: true
- , mobile: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B5097d Safari/6531.22.7': {
- ios: true
- , osversion: '4.1'
- , version: '4.0'
- , iphone: true
- , mobile: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_2; en-gb) AppleWebKit/526+ (KHTML, like Gecko) Version/3.1 iPhone': {
- ios: true
- , version: '3.1'
- , iphone: true
- , mobile: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_0 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13A344 Safari/601.1': {
- ios: true
- , osversion: '9.0'
- , version: '9.0'
- , iphone: true
- , mobile: true
- , webkit: true
- , safari: true
- , a: true
- }
- , 'Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53': {
- ios: true
- , osversion: '7.0.4'
- , name: 'Safari'
- , version: '7.0'
- , ipad: true
- , tablet: true
- , webkit: true
- , safari: true
- , a: true
- }
- , 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25': {
- ios: true
- , osversion: '6.0'
- , name: 'Safari'
- , version: '6.0'
- , ipad: true
- , tablet: true
- , webkit: true
- , safari: true
- , a: true
- }
- , 'Mozilla/5.0 (iPad; CPU OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko ) Version/5.1 Mobile/9B176 Safari/7534.48.3': {
- ios: true
- , osversion: '5.1'
- , name: 'Safari'
- , version: '5.1'
- , ipad: true
- , tablet: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5': {
- ios: true
- , osversion: '4.3.2'
- , name: 'Safari'
- , version: '5.0'
- , ipad: true
- , tablet: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; es-es) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B360 Safari/531.21.10': {
- ios: true
- , osversion: '3.2'
- , name: 'Safari'
- , version: '4.0'
- , ipad: true
- , tablet: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (iPod touch; CPU iPhone OS 7_0_3 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B511 Safari/9537.53': {
- ios: true
- , osversion: '7.0.3'
- , version: '7.0'
- , ipod: true
- , mobile: true
- , webkit: true
- , safari: true
- , a: true
- }
- , 'Mozilla/5.0 (iPod; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B176 Safari/7534.48.3': {
- ios: true
- , osversion: '5.1'
- , version: '5.1'
- , ipod: true
- , mobile: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5': {
- ios: true
- , osversion: '4.3.3'
- , version: '5.0'
- , ipod: true
- , mobile: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A93 Safari/419.3': {
- ios: true
- , version: '3.0'
- , ipod: true
- , mobile: true
- , webkit: true
- , safari: true
- , c: true
- }
- , 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E238 Safari/601.1': {
- ios: true
- , iphone: true
- , safari: true
- , version: '9.0'
- , mobile: true
- , osversion: '9.3.1'
- , a: true
- , webkit: true
- }
- }
- , 'Internet Explorer': {
- 'Mozilla/5.0 (Windows NT 6.3; Win64; x64; Trident/7.0; MAARJS; rv:11.0) like Gecko': {
- msie: true
- , version: '11.0'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko': {
- msie: true
- , version: '11.0'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; ARM; Touch; WPDesktop)': {
- msie: true
- , version: '10.0'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; Media Center PC 6.0; rv:11.0) like Gecko': {
- msie: true
- , version: '11.0'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (compatible; MSIE 10.6; Windows NT 6.1; Trident/5.0; InfoPath.2; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727) 3gpp-gba UNTRUSTED/1.0': {
- msie: true
- , version: '10.6'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/4.0; InfoPath.2; SV1; .NET CLR 2.0.50727; WOW64)': {
- msie: true
- , version: '10.0'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)': {
- msie: true
- , version: '9.0'
- , windows: true
- , c: true
- }
- , 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)': {
- msie: true
- , version: '8.0'
- , windows: true
- , c: true
- }
- , 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)': {
- msie: true
- , version: '7.0'
- , windows: true
- , c: true
- }
- , 'Mozilla/4.0 (compatible; MSIE 6.1; Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)': {
- msie: true
- , version: '6.1'
- , windows: true
- , c: true
- }
- , 'Mozilla/4.0 (Compatible; Windows NT 5.1; MSIE 6.0) (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)': {
- msie: true
- , version: '6.0'
- , windows: true
- , c: true
- }
- , 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)': {
- msie: true
- , version: '5.01'
- , windows: true
- , c: true
- }
- , 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; Xbox; Xbox One)': {
- xbox: true
- , msie: true
- , version: '10.0'
- , a: true
- }
- }
- , 'Microsoft Edge': {
- 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0': {
- msedge: true
- , version: '12.0'
- , windows: true
- , a: true
- }
- }
- , Firefox: {
- 'Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0': {
- gecko: true
- , firefox: true
- , version: '26.0'
- , mobile: true
- , firefoxos: true
- , a: true
- }
- , 'Mozilla/5.0 (Tablet; rv:26.0) Gecko/26.0 Firefox/26.0': {
- gecko: true
- , firefox: true
- , version: '26.0'
- , tablet: true
- , firefoxos: true
- , a: true
- }
- , 'Mozilla/5.0 (Mobile; LG-D300; rv:18.1) Gecko/18.1 Firefox/18.1': {
- gecko: true
- , firefox: true
- , version: '18.1'
- , mobile: true
- , firefoxos: true
- , c: true
- }
- , 'Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0': {
- gecko: true
- , firefox: true
- , version: '27.0'
- , mobile: true
- , android: true
- , a: true
- }
- , 'Mozilla/5.0 (Android; Tablet; rv:26.0) Gecko/26.0 Firefox/26.0': {
- gecko: true
- , firefox: true
- , version: '26.0'
- , tablet: true
- , android: true
- , a: true
- }
- , 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0': {
- gecko: true
- , firefox: true
- , version: '25.0'
- , windows: true
- , a: true
- }
- , 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0': {
- gecko: true
- , firefox: true
- , version: '24.0'
- , mac: true
- , a: true
- }
- , 'Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0': {
- gecko: true
- , firefox: true
- , version: '21.0'
- , linux: true
- , a: true
- }
- , 'Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20121202 Firefox/17.0 Iceweasel/17.0.1': {
- gecko: true
- , firefox: true
- , version: '17.0'
- , linux: true
- , c: true
- }
- , 'Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120724 Debian Iceweasel/15.0': {
- gecko: true
- , firefox: true
- , version: '15.0'
- , linux: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:15.0) Gecko/20120910144328 Firefox/15.0.2': {
- gecko: true
- , firefox: true
- , version: '15.0'
- , windows: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:2.0.4) Gecko/20120718 AskTbAVR-IDW/3.12.5.17700 Firefox/14.0.1': {
- gecko: true
- , firefox: true
- , version: '14.0'
- , windows: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0 FirePHP/0.6': {
- gecko: true
- , firefox: true
- , version: '6.0'
- , windows: true
- , c: true
- }
- , 'Mozilla/5.0 (X11; Linux x86_64; rv:2.2a1pre) Gecko/20100101 Firefox/4.2a1pre': {
- gecko: true
- , firefox: true
- , version: '4.2'
- , linux: true
- , c: true
- }
- , 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0': {
- gecko: true
- , firefox: true
- , version: '4.0'
- , mac: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2b1) Gecko/20091014 Firefox/3.6b1 GTB5': {
- gecko: true
- , firefox: true
- , version: '3.6'
- , windows: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.15) Gecko/2009101601 Firefox 2.1 (.NET CLR 3.5.30729)': {
- gecko: true
- , firefox: true
- , version: '2.1'
- , windows: true
- , c: true
- }
- , 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20061014 Firefox/1.5.0.7': {
- gecko: true
- , firefox: true
- , version: '1.5'
- , linux: true
- , c: true
- }
- , 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) FxiOS/3.0 Mobile/13E238 Safari/601.1.46': {
- firefox: true
- , version: '3.0'
- , osversion: '9.3.1'
- , ios: true
- , iphone: true
- , mobile: true
- , a: true
- , webkit: true
- }
- }
- , SeaMonkey: {
- 'Mozilla/5.0 (Windows NT 5.2; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1': {
- gecko: true
- , seamonkey: true
- , version: '2.7'
- , windows: true
- , x: true
- }
- , 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1': {
- gecko: true
- , seamonkey: true
- , version: '2.7'
- , mac: true
- , x: true
- }
- , 'Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1': {
- gecko: true
- , seamonkey: true
- , version: '2.7'
- , linux: true
- , x: true
- }
- }
- , BlackBerry: {
- 'Mozilla/5.0 (BB10; Touch) AppleWebKit/537.10+ (KHTML, like Gecko) Version/10.1.0.4633 Mobile Safari/537.10+': {
- blackberry: true
- , version: '10.1'
- , webkit: true
- , mobile: true
- , a: true
- }
- , 'Mozilla/5.0 (BB10; Kbd) AppleWebKit/537.10+ (KHTML, like Gecko) Version/10.1.0.1429 Mobile Safari/537.10+': {
- blackberry: true
- , version: '10.1'
- , webkit: true
- , mobile: true
- , a: true
- }
- , 'Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML, like Gecko) Version/7.2.1.0 Safari/536.2+': {
- blackberry: true
- , osversion: '2.1.0'
- , version: '7.2'
- , webkit: true
- , tablet: true
- , x: true
- }
- , 'Mozilla/5.0 (PlayBook; U; RIM Tablet OS 1.0.0; en-US) AppleWebKit/534.11 (KHTML, like Gecko) Version/7.1.0.7 Safari/534.11': {
- blackberry: true
- , osversion: '1.0.0'
- , version: '7.1'
- , webkit: true
- , tablet: true
- , x: true
- }
- , 'Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.1.0.346 Mobile Safari/534.11+': {
- blackberry: true
- , version: '7.1'
- , webkit: true
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (BlackBerry; U; BlackBerry 9360; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0.530 Mobile Safari/534.11+': {
- blackberry: true
- , version: '7.0'
- , webkit: true
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en-US) AppleWebKit/534.8+ (KHTML, like Gecko) Version/6.0.0.450 Mobile Safari/534.8+': {
- blackberry: true
- , version: '6.0'
- , webkit: true
- , mobile: true
- , x: true
- }
- , 'BlackBerry9800/5.0.0.862 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/331 UNTRUSTED/1.0 3gpp-gba': {
- blackberry: true
- , version: '5.0'
- , mobile: true
- , x: true
- }
- , 'BlackBerry8320/4.5.0.52 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/179': {
- blackberry: true
- , version: '4.5'
- , mobile: true
- , x: true
- }
- , 'BlackBerry8700/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/179': {
- blackberry: true
- , version: '4.1'
- , mobile: true
- , x: true
- }
- }
- , 'Windows Phone': {
- 'Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 920; Vodafone)': {
- windowsphone: true
- , osversion: '8.0'
- , msie: true
- , version: '10.0'
- , mobile: true
- , a: true
- }
- , 'Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 920)': {
- windowsphone: true
- , osversion: '8.0'
- , msie: true
- , version: '10.0'
- , mobile: true
- , a: true
- }
- , 'Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0)': {
- windowsphone: true
- , osversion: '7.5'
- , msie: true
- , version: '9.0'
- , mobile: true
- , c: true
- }
- , 'Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; Nokia;N70)': {
- windowsphone: true
- , osversion: '7.0'
- , msie: true
- , version: '7.0'
- , mobile: true
- , c: true
- }
- , 'Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; DEVICE INFO) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Mobile Safari/537.36 Edge/12.0': {
- windowsphone: true
- , osversion: '10.0'
- , msedge: true
- , version: '12.0'
- , mobile: true
- , a: true
- }
- }
- , WebOS: {
- 'Mozilla/5.0 (hp-tablet; Linux; hpwOS/3.0.5; U; en-US) AppleWebKit/534.6 (KHTML, like Gecko) wOSBrowser/234.83 Safari/534.6 TouchPad/1.0': {
- touchpad: true
- , webos: true
- , osversion: '3.0.5'
- , version: '234.83'
- , webkit: true
- , tablet: true
- , x: true
- }
- , 'Mozilla/5.0 (hp-tablet; Linux; hpwOS/3.0.2; U; en-US) AppleWebKit/534.6 (KHTML, like Gecko) wOSBrowser/234.40.1 Safari/534.6 TouchPad/1.0': {
- touchpad: true
- , webos: true
- , osversion: '3.0.2'
- , version: '234.40'
- , webkit: true
- , tablet: true
- , x: true
- }
- , 'Mozilla/5.0 (hp-tablet; Linux; hpwOS/3.0.0; U; de-DE) AppleWebKit/534.6 (KHTML, like Gecko) wOSBrowser/233.70 Safari/534.6 TouchPad/1.0': {
- touchpad: true
- , webos: true
- , osversion: '3.0.0'
- , version: '233.70'
- , webkit: true
- , tablet: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; webOS/2.1.2; U; xx-xx) AppleWebKit/534.6 (KHTML, like Gecko) webOSBrowser/221.11 Safari/534.6 Pre/3.0': {
- webos: true
- , osversion: '2.1.2'
- , webkit: true
- , version: '221.11'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (webOS/1.4.1.1; U; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Version/1.0 Safari/532.2 Pre/1.0': {
- webos: true
- , osversion: '1.4.1.1'
- , webkit: true
- , version: '1.0'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (webOS/1.0; U; en-US) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/1.0 Safari/525.27.1 Pre/1.0': {
- webos: true
- , osversion: '1.0'
- , webkit: true
- , version: '1.0'
- , mobile: true
- , x: true
- }
- }
- , Android: {
- 'Mozilla/5.0 (Linux; U; Android 4.4.2; de-de; Nexus 7 Build/KOT49H) AppleWebKit/537.16 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.16': {
- android: true
- , osversion: '4.4.2'
- , webkit: true
- , version: 4.0
- , tablet: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Android 4.3; de-de; Galaxy Nexus Build/JWR66Y) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30': {
- android: true
- , osversion: '4.3'
- , webkit: true
- , version: 4.0
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Android 4.2; en-us; Nexus 10 Build/JVP15I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30': {
- android: true
- , osversion: '4.2'
- , webkit: true
- , version: 4.0
- , tablet: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Android 3.2; de-de; A100 Build/HTJ85B) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13': {
- android: true
- , osversion: '3.2'
- , webkit: true
- , version: 4.0
- , tablet: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; T-Mobile G2 Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1': {
- android: true
- , osversion: '2.3.4'
- , webkit: true
- , version: 4.0
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Android 1.6; ar-us; SonyEricssonX10i Build/R2BA026) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1': {
- android: true
- , osversion: '1.6'
- , webkit: true
- , version: 3.1
- , mobile: true
- , x: true
- }
- }
- , Bada: {
- 'Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/S8500XPKJ1; U; Bada/2.0; it-it) AppleWebKit/534.20 (KHTML, like Gecko) Dolfin/3.0 WVGA SMM-MMS/1.2.0 OPN-B': {
- bada: true
- , osversion: '2.0'
- , webkit: true
- , version: '3.0'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/S8500XXJL2; U; Bada/1.2; de-de) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/2.2 Mobile WVGA SMM-MMS/1.2.0 OPN-B': {
- bada: true
- , osversion: '1.2'
- , webkit: true
- , version: '2.2'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/S8500XXJF4; U; Bada/1.0; fr-fr) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/2.0 Mobile WVGA SMM-MMS/1.2.0 OPN-B': {
- bada: true
- , osversion: '1.0'
- , webkit: true
- , version: '2.0'
- , mobile: true
- , x: true
- }
- }
- , Tizen: {
- 'Mozilla/5.0 (Linux; Tizen 2.2; sdk) AppleWebKit/537.3 (KHTML, like Gecko) Version/2.2 Mobile Safari/537.3': {
- tizen: true
- , osversion: '2.2'
- , webkit: true
- , version: '2.2'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; Tizen 2.1; sdk) AppleWebKit/537.3 (KHTML, like Gecko) Version/2.1 Mobile Safari/537.3': {
- tizen: true
- , osversion: '2.1'
- , webkit: true
- , version: '2.1'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Tizen 2.0; en-us) AppleWebKit/537.1 (KHTML, like Gecko) Mobile TizenBrowser/2.0': {
- tizen: true
- , osversion: '2.0'
- , webkit: true
- , version: '2.0'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Tizen/1.0 like Android; en-us; AppleWebKit/534.46 (KHTML, like Gecko) Tizen Browser/1.0 Mobile': {
- tizen: true
- , osversion: '1.0'
- , webkit: true
- , version: '1.0'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-i9500/1.0; U; Tizen/1.0 like Android; en-us) AppleWebKit/534.46 (KHTML, like Gecko) SLP Browser/1.0 Mobile': {
- tizen: true
- , osversion: '1.0'
- , webkit: true
- , version: '1.0'
- , mobile: true
- , x: true
- }
- }
- , Sailfish: {
- 'Mozilla/5.0 (Maemo; Linux; U; Jolla; Sailfish; Mobile; rv:26.0) Gecko/26.0 Firefox/26.0 SailfishBrowser/1.0 like Safari/538.1': {
- sailfish: true
- , gecko: true
- , version: '1.0'
- , mobile: true
- , x: true
- }
- , 'Mozilla/5.0 (Linux; U; Jolla; Sailfish; Mobile; rv:20.0) Gecko/20.0 Firefox/20.0 Sailfish Browser/1.0 like Safari/535.19': {
- sailfish: true
- , gecko: true
- , version: '1.0'
- , mobile: true
- , x: true
- }
- }
- , PhantomJS: {
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.5.0 Safari/534.34': {
- phantom: true
- , webkit: true
- , version: '1.5'
- , mac: true
- , x: true
- }
- }
- , Vivaldi: {
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36 Vivaldi/1.0.303.52' : {
- vivaldi: true
- , version: '1.0'
- , mac: true
- , blink: true
- , a: true
- },
- 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36 Vivaldi/1.0.303.52': {
- vivaldi: true
- , version: '1.0'
- , windows: true
- , blink: true
- , a: true
- }
- }
- , Generic: {
- 'Generic/2.15 libww': {
- name: 'Generic'
- , version: '2.15'
- , x: true
- }
- }
- , Googlebot: {
- 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)': {
- googlebot: true
- , version: '2.1'
- , x: true
- }
- }
- , "UC Browser": {
- 'Mozilla/5.0 (iPad; U; CPU OS 9 like Mac OS X; en-us; iPad4,4) AppleWebKit/534.46 (KHTML, like Gecko) UCBrowser/2.4.0.367 U3/1 Safari/7543.48.3': {
- ucbrowser: true,
- version: '2.4.0.367',
- webkit: true,
- ipad: true,
- ios: true,
- osversion: 9,
- tablet: true,
- a: true
- },
- 'Mozilla/5.0 (Linux; U; Android 4.1.2; en-us; SM-T210R Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30 UCBrowser/2.3.2.300': {
- android: true,
- osversion: '4.1.2',
- tablet: true,
- ucbrowser: true,
- version: '2.3.2.300',
- webkit: true,
- x: true
- }
- , 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X; en-US) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/13E238 UCBrowser/10.7.0.782 Mobile': {
- iphone: true
- , ios: true
- , mobile: true
- , osversion: '9.3.1'
- , version: '10.7.0.782'
- , webkit: true
- , a: true
- , ucbrowser: true
- }
- }
- , "QupZilla": {
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) QupZilla/1.8.2 Safari/538.1': {
- mac: true,
- qupzilla: true,
- version: '1.8.2',
- webkit: true,
- x: true
- },
- 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) QupZilla/1.8.6 Safari/537.21': {
- windows: true,
- qupzilla: true,
- version: '1.8.6',
- webkit: true,
- x: true
- }
- }
- , 'Maxthon': {
- 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E238 Safari/601.1 MXiOS/4.8.6.59': {
- mobile: true
- , ios: true
- , iphone: true
- , version: '4.8.6.59'
- , osversion: '9.3.1'
- , webkit: true
- , maxthon: true
- , a: true
- }
- }
- , 'Epiphany': {
- 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Debian/buildd-unstable (3.18.5-1) Epiphany/3.18.5': {
- epiphany: true
- , x: true
- , webkit: true
- , version: '3.18.5'
- , linux: true
- }
- }
- , 'Puffin': {
- 'Mozilla/5.0 (X11; U; Linux x86_64; zh-TW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36 Puffin/3.7.0IT': {
- linux: true
- , blink: true
- , puffin: true
- , version: '3.7'
- , x: true
- }
- }, 'Sleipnir': {
- 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Sleipnir/6.1.4': {
- sleipnir: true
- , blink: true
- , windows: true
- , x: true
- , version: '6.1.4'
- }
- }
- , 'K-Meleon': {
- 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20140105 Firefox/24.0 K-Meleon/74.0': {
- windows: true
- , kMeleon: true
- , version: '74.0'
- , gecko: true
- , x: true
- }
- }
- , 'Chromium': {
- 'Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36': {
- mobile: true
- , linux: true
- , chromium: true
- , version: '35.0'
- , blink: true
- , a: true
- }
- , 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/50.0.2661.102 Chrome/50.0.2661.102 Safari/537.36': {
- chromium: true
- , a: true
- , version: '50.0'
- , linux: true
- , blink: true
- }
- }
- , 'SlimerJS' : {
- 'Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 SlimerJS/0.7': {
- linux: true
- , slimer: true
- , version: '0.7'
- , gecko: true
- , x: true
- }
- }
-}
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/.gitignore b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/.gitignore
deleted file mode 100644
index 790a4b0b..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-_site
-.sass-cache
-*.scssc
-*.swp \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/LICENSE b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/LICENSE
deleted file mode 100644
index 18ab118e..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Drifty (http://drifty.com/)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/css/ionicons.css b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/css/ionicons.css
deleted file mode 100644
index 885aa6bd..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/css/ionicons.css
+++ /dev/null
@@ -1,1480 +0,0 @@
-@charset "UTF-8";
-/*!
- Ionicons, v2.0.0
- Created by Ben Sperry for the Ionic Framework, http://ionicons.com/
- https://twitter.com/benjsperry https://twitter.com/ionicframework
- MIT License: https://github.com/driftyco/ionicons
-
- Android-style icons originally built by Google’s
- Material Design Icons: https://github.com/google/material-design-icons
- used under CC BY http://creativecommons.org/licenses/by/4.0/
- Modified icons to fit ionicon’s grid from original.
-*/
-@font-face { font-family: "Ionicons"; src: url("../fonts/ionicons.eot?v=2.0.0"); src: url("../fonts/ionicons.eot?v=2.0.0#iefix") format("embedded-opentype"), url("../fonts/ionicons.ttf?v=2.0.0") format("truetype"), url("../fonts/ionicons.woff?v=2.0.0") format("woff"), url("../fonts/ionicons.svg?v=2.0.0#Ionicons") format("svg"); font-weight: normal; font-style: normal; }
-.ion, .ionicons, .ion-alert:before, .ion-alert-circled:before, .ion-android-add:before, .ion-android-add-circle:before, .ion-android-alarm-clock:before, .ion-android-alert:before, .ion-android-apps:before, .ion-android-archive:before, .ion-android-arrow-back:before, .ion-android-arrow-down:before, .ion-android-arrow-dropdown:before, .ion-android-arrow-dropdown-circle:before, .ion-android-arrow-dropleft:before, .ion-android-arrow-dropleft-circle:before, .ion-android-arrow-dropright:before, .ion-android-arrow-dropright-circle:before, .ion-android-arrow-dropup:before, .ion-android-arrow-dropup-circle:before, .ion-android-arrow-forward:before, .ion-android-arrow-up:before, .ion-android-attach:before, .ion-android-bar:before, .ion-android-bicycle:before, .ion-android-boat:before, .ion-android-bookmark:before, .ion-android-bulb:before, .ion-android-bus:before, .ion-android-calendar:before, .ion-android-call:before, .ion-android-camera:before, .ion-android-cancel:before, .ion-android-car:before, .ion-android-cart:before, .ion-android-chat:before, .ion-android-checkbox:before, .ion-android-checkbox-blank:before, .ion-android-checkbox-outline:before, .ion-android-checkbox-outline-blank:before, .ion-android-checkmark-circle:before, .ion-android-clipboard:before, .ion-android-close:before, .ion-android-cloud:before, .ion-android-cloud-circle:before, .ion-android-cloud-done:before, .ion-android-cloud-outline:before, .ion-android-color-palette:before, .ion-android-compass:before, .ion-android-contact:before, .ion-android-contacts:before, .ion-android-contract:before, .ion-android-create:before, .ion-android-delete:before, .ion-android-desktop:before, .ion-android-document:before, .ion-android-done:before, .ion-android-done-all:before, .ion-android-download:before, .ion-android-drafts:before, .ion-android-exit:before, .ion-android-expand:before, .ion-android-favorite:before, .ion-android-favorite-outline:before, .ion-android-film:before, .ion-android-folder:before, .ion-android-folder-open:before, .ion-android-funnel:before, .ion-android-globe:before, .ion-android-hand:before, .ion-android-hangout:before, .ion-android-happy:before, .ion-android-home:before, .ion-android-image:before, .ion-android-laptop:before, .ion-android-list:before, .ion-android-locate:before, .ion-android-lock:before, .ion-android-mail:before, .ion-android-map:before, .ion-android-menu:before, .ion-android-microphone:before, .ion-android-microphone-off:before, .ion-android-more-horizontal:before, .ion-android-more-vertical:before, .ion-android-navigate:before, .ion-android-notifications:before, .ion-android-notifications-none:before, .ion-android-notifications-off:before, .ion-android-open:before, .ion-android-options:before, .ion-android-people:before, .ion-android-person:before, .ion-android-person-add:before, .ion-android-phone-landscape:before, .ion-android-phone-portrait:before, .ion-android-pin:before, .ion-android-plane:before, .ion-android-playstore:before, .ion-android-print:before, .ion-android-radio-button-off:before, .ion-android-radio-button-on:before, .ion-android-refresh:before, .ion-android-remove:before, .ion-android-remove-circle:before, .ion-android-restaurant:before, .ion-android-sad:before, .ion-android-search:before, .ion-android-send:before, .ion-android-settings:before, .ion-android-share:before, .ion-android-share-alt:before, .ion-android-star:before, .ion-android-star-half:before, .ion-android-star-outline:before, .ion-android-stopwatch:before, .ion-android-subway:before, .ion-android-sunny:before, .ion-android-sync:before, .ion-android-textsms:before, .ion-android-time:before, .ion-android-train:before, .ion-android-unlock:before, .ion-android-upload:before, .ion-android-volume-down:before, .ion-android-volume-mute:before, .ion-android-volume-off:before, .ion-android-volume-up:before, .ion-android-walk:before, .ion-android-warning:before, .ion-android-watch:before, .ion-android-wifi:before, .ion-aperture:before, .ion-archive:before, .ion-arrow-down-a:before, .ion-arrow-down-b:before, .ion-arrow-down-c:before, .ion-arrow-expand:before, .ion-arrow-graph-down-left:before, .ion-arrow-graph-down-right:before, .ion-arrow-graph-up-left:before, .ion-arrow-graph-up-right:before, .ion-arrow-left-a:before, .ion-arrow-left-b:before, .ion-arrow-left-c:before, .ion-arrow-move:before, .ion-arrow-resize:before, .ion-arrow-return-left:before, .ion-arrow-return-right:before, .ion-arrow-right-a:before, .ion-arrow-right-b:before, .ion-arrow-right-c:before, .ion-arrow-shrink:before, .ion-arrow-swap:before, .ion-arrow-up-a:before, .ion-arrow-up-b:before, .ion-arrow-up-c:before, .ion-asterisk:before, .ion-at:before, .ion-backspace:before, .ion-backspace-outline:before, .ion-bag:before, .ion-battery-charging:before, .ion-battery-empty:before, .ion-battery-full:before, .ion-battery-half:before, .ion-battery-low:before, .ion-beaker:before, .ion-beer:before, .ion-bluetooth:before, .ion-bonfire:before, .ion-bookmark:before, .ion-bowtie:before, .ion-briefcase:before, .ion-bug:before, .ion-calculator:before, .ion-calendar:before, .ion-camera:before, .ion-card:before, .ion-cash:before, .ion-chatbox:before, .ion-chatbox-working:before, .ion-chatboxes:before, .ion-chatbubble:before, .ion-chatbubble-working:before, .ion-chatbubbles:before, .ion-checkmark:before, .ion-checkmark-circled:before, .ion-checkmark-round:before, .ion-chevron-down:before, .ion-chevron-left:before, .ion-chevron-right:before, .ion-chevron-up:before, .ion-clipboard:before, .ion-clock:before, .ion-close:before, .ion-close-circled:before, .ion-close-round:before, .ion-closed-captioning:before, .ion-cloud:before, .ion-code:before, .ion-code-download:before, .ion-code-working:before, .ion-coffee:before, .ion-compass:before, .ion-compose:before, .ion-connection-bars:before, .ion-contrast:before, .ion-crop:before, .ion-cube:before, .ion-disc:before, .ion-document:before, .ion-document-text:before, .ion-drag:before, .ion-earth:before, .ion-easel:before, .ion-edit:before, .ion-egg:before, .ion-eject:before, .ion-email:before, .ion-email-unread:before, .ion-erlenmeyer-flask:before, .ion-erlenmeyer-flask-bubbles:before, .ion-eye:before, .ion-eye-disabled:before, .ion-female:before, .ion-filing:before, .ion-film-marker:before, .ion-fireball:before, .ion-flag:before, .ion-flame:before, .ion-flash:before, .ion-flash-off:before, .ion-folder:before, .ion-fork:before, .ion-fork-repo:before, .ion-forward:before, .ion-funnel:before, .ion-gear-a:before, .ion-gear-b:before, .ion-grid:before, .ion-hammer:before, .ion-happy:before, .ion-happy-outline:before, .ion-headphone:before, .ion-heart:before, .ion-heart-broken:before, .ion-help:before, .ion-help-buoy:before, .ion-help-circled:before, .ion-home:before, .ion-icecream:before, .ion-image:before, .ion-images:before, .ion-information:before, .ion-information-circled:before, .ion-ionic:before, .ion-ios-alarm:before, .ion-ios-alarm-outline:before, .ion-ios-albums:before, .ion-ios-albums-outline:before, .ion-ios-americanfootball:before, .ion-ios-americanfootball-outline:before, .ion-ios-analytics:before, .ion-ios-analytics-outline:before, .ion-ios-arrow-back:before, .ion-ios-arrow-down:before, .ion-ios-arrow-forward:before, .ion-ios-arrow-left:before, .ion-ios-arrow-right:before, .ion-ios-arrow-thin-down:before, .ion-ios-arrow-thin-left:before, .ion-ios-arrow-thin-right:before, .ion-ios-arrow-thin-up:before, .ion-ios-arrow-up:before, .ion-ios-at:before, .ion-ios-at-outline:before, .ion-ios-barcode:before, .ion-ios-barcode-outline:before, .ion-ios-baseball:before, .ion-ios-baseball-outline:before, .ion-ios-basketball:before, .ion-ios-basketball-outline:before, .ion-ios-bell:before, .ion-ios-bell-outline:before, .ion-ios-body:before, .ion-ios-body-outline:before, .ion-ios-bolt:before, .ion-ios-bolt-outline:before, .ion-ios-book:before, .ion-ios-book-outline:before, .ion-ios-bookmarks:before, .ion-ios-bookmarks-outline:before, .ion-ios-box:before, .ion-ios-box-outline:before, .ion-ios-briefcase:before, .ion-ios-briefcase-outline:before, .ion-ios-browsers:before, .ion-ios-browsers-outline:before, .ion-ios-calculator:before, .ion-ios-calculator-outline:before, .ion-ios-calendar:before, .ion-ios-calendar-outline:before, .ion-ios-camera:before, .ion-ios-camera-outline:before, .ion-ios-cart:before, .ion-ios-cart-outline:before, .ion-ios-chatboxes:before, .ion-ios-chatboxes-outline:before, .ion-ios-chatbubble:before, .ion-ios-chatbubble-outline:before, .ion-ios-checkmark:before, .ion-ios-checkmark-empty:before, .ion-ios-checkmark-outline:before, .ion-ios-circle-filled:before, .ion-ios-circle-outline:before, .ion-ios-clock:before, .ion-ios-clock-outline:before, .ion-ios-close:before, .ion-ios-close-empty:before, .ion-ios-close-outline:before, .ion-ios-cloud:before, .ion-ios-cloud-download:before, .ion-ios-cloud-download-outline:before, .ion-ios-cloud-outline:before, .ion-ios-cloud-upload:before, .ion-ios-cloud-upload-outline:before, .ion-ios-cloudy:before, .ion-ios-cloudy-night:before, .ion-ios-cloudy-night-outline:before, .ion-ios-cloudy-outline:before, .ion-ios-cog:before, .ion-ios-cog-outline:before, .ion-ios-color-filter:before, .ion-ios-color-filter-outline:before, .ion-ios-color-wand:before, .ion-ios-color-wand-outline:before, .ion-ios-compose:before, .ion-ios-compose-outline:before, .ion-ios-contact:before, .ion-ios-contact-outline:before, .ion-ios-copy:before, .ion-ios-copy-outline:before, .ion-ios-crop:before, .ion-ios-crop-strong:before, .ion-ios-download:before, .ion-ios-download-outline:before, .ion-ios-drag:before, .ion-ios-email:before, .ion-ios-email-outline:before, .ion-ios-eye:before, .ion-ios-eye-outline:before, .ion-ios-fastforward:before, .ion-ios-fastforward-outline:before, .ion-ios-filing:before, .ion-ios-filing-outline:before, .ion-ios-film:before, .ion-ios-film-outline:before, .ion-ios-flag:before, .ion-ios-flag-outline:before, .ion-ios-flame:before, .ion-ios-flame-outline:before, .ion-ios-flask:before, .ion-ios-flask-outline:before, .ion-ios-flower:before, .ion-ios-flower-outline:before, .ion-ios-folder:before, .ion-ios-folder-outline:before, .ion-ios-football:before, .ion-ios-football-outline:before, .ion-ios-game-controller-a:before, .ion-ios-game-controller-a-outline:before, .ion-ios-game-controller-b:before, .ion-ios-game-controller-b-outline:before, .ion-ios-gear:before, .ion-ios-gear-outline:before, .ion-ios-glasses:before, .ion-ios-glasses-outline:before, .ion-ios-grid-view:before, .ion-ios-grid-view-outline:before, .ion-ios-heart:before, .ion-ios-heart-outline:before, .ion-ios-help:before, .ion-ios-help-empty:before, .ion-ios-help-outline:before, .ion-ios-home:before, .ion-ios-home-outline:before, .ion-ios-infinite:before, .ion-ios-infinite-outline:before, .ion-ios-information:before, .ion-ios-information-empty:before, .ion-ios-information-outline:before, .ion-ios-ionic-outline:before, .ion-ios-keypad:before, .ion-ios-keypad-outline:before, .ion-ios-lightbulb:before, .ion-ios-lightbulb-outline:before, .ion-ios-list:before, .ion-ios-list-outline:before, .ion-ios-location:before, .ion-ios-location-outline:before, .ion-ios-locked:before, .ion-ios-locked-outline:before, .ion-ios-loop:before, .ion-ios-loop-strong:before, .ion-ios-medical:before, .ion-ios-medical-outline:before, .ion-ios-medkit:before, .ion-ios-medkit-outline:before, .ion-ios-mic:before, .ion-ios-mic-off:before, .ion-ios-mic-outline:before, .ion-ios-minus:before, .ion-ios-minus-empty:before, .ion-ios-minus-outline:before, .ion-ios-monitor:before, .ion-ios-monitor-outline:before, .ion-ios-moon:before, .ion-ios-moon-outline:before, .ion-ios-more:before, .ion-ios-more-outline:before, .ion-ios-musical-note:before, .ion-ios-musical-notes:before, .ion-ios-navigate:before, .ion-ios-navigate-outline:before, .ion-ios-nutrition:before, .ion-ios-nutrition-outline:before, .ion-ios-paper:before, .ion-ios-paper-outline:before, .ion-ios-paperplane:before, .ion-ios-paperplane-outline:before, .ion-ios-partlysunny:before, .ion-ios-partlysunny-outline:before, .ion-ios-pause:before, .ion-ios-pause-outline:before, .ion-ios-paw:before, .ion-ios-paw-outline:before, .ion-ios-people:before, .ion-ios-people-outline:before, .ion-ios-person:before, .ion-ios-person-outline:before, .ion-ios-personadd:before, .ion-ios-personadd-outline:before, .ion-ios-photos:before, .ion-ios-photos-outline:before, .ion-ios-pie:before, .ion-ios-pie-outline:before, .ion-ios-pint:before, .ion-ios-pint-outline:before, .ion-ios-play:before, .ion-ios-play-outline:before, .ion-ios-plus:before, .ion-ios-plus-empty:before, .ion-ios-plus-outline:before, .ion-ios-pricetag:before, .ion-ios-pricetag-outline:before, .ion-ios-pricetags:before, .ion-ios-pricetags-outline:before, .ion-ios-printer:before, .ion-ios-printer-outline:before, .ion-ios-pulse:before, .ion-ios-pulse-strong:before, .ion-ios-rainy:before, .ion-ios-rainy-outline:before, .ion-ios-recording:before, .ion-ios-recording-outline:before, .ion-ios-redo:before, .ion-ios-redo-outline:before, .ion-ios-refresh:before, .ion-ios-refresh-empty:before, .ion-ios-refresh-outline:before, .ion-ios-reload:before, .ion-ios-reverse-camera:before, .ion-ios-reverse-camera-outline:before, .ion-ios-rewind:before, .ion-ios-rewind-outline:before, .ion-ios-rose:before, .ion-ios-rose-outline:before, .ion-ios-search:before, .ion-ios-search-strong:before, .ion-ios-settings:before, .ion-ios-settings-strong:before, .ion-ios-shuffle:before, .ion-ios-shuffle-strong:before, .ion-ios-skipbackward:before, .ion-ios-skipbackward-outline:before, .ion-ios-skipforward:before, .ion-ios-skipforward-outline:before, .ion-ios-snowy:before, .ion-ios-speedometer:before, .ion-ios-speedometer-outline:before, .ion-ios-star:before, .ion-ios-star-half:before, .ion-ios-star-outline:before, .ion-ios-stopwatch:before, .ion-ios-stopwatch-outline:before, .ion-ios-sunny:before, .ion-ios-sunny-outline:before, .ion-ios-telephone:before, .ion-ios-telephone-outline:before, .ion-ios-tennisball:before, .ion-ios-tennisball-outline:before, .ion-ios-thunderstorm:before, .ion-ios-thunderstorm-outline:before, .ion-ios-time:before, .ion-ios-time-outline:before, .ion-ios-timer:before, .ion-ios-timer-outline:before, .ion-ios-toggle:before, .ion-ios-toggle-outline:before, .ion-ios-trash:before, .ion-ios-trash-outline:before, .ion-ios-undo:before, .ion-ios-undo-outline:before, .ion-ios-unlocked:before, .ion-ios-unlocked-outline:before, .ion-ios-upload:before, .ion-ios-upload-outline:before, .ion-ios-videocam:before, .ion-ios-videocam-outline:before, .ion-ios-volume-high:before, .ion-ios-volume-low:before, .ion-ios-wineglass:before, .ion-ios-wineglass-outline:before, .ion-ios-world:before, .ion-ios-world-outline:before, .ion-ipad:before, .ion-iphone:before, .ion-ipod:before, .ion-jet:before, .ion-key:before, .ion-knife:before, .ion-laptop:before, .ion-leaf:before, .ion-levels:before, .ion-lightbulb:before, .ion-link:before, .ion-load-a:before, .ion-load-b:before, .ion-load-c:before, .ion-load-d:before, .ion-location:before, .ion-lock-combination:before, .ion-locked:before, .ion-log-in:before, .ion-log-out:before, .ion-loop:before, .ion-magnet:before, .ion-male:before, .ion-man:before, .ion-map:before, .ion-medkit:before, .ion-merge:before, .ion-mic-a:before, .ion-mic-b:before, .ion-mic-c:before, .ion-minus:before, .ion-minus-circled:before, .ion-minus-round:before, .ion-model-s:before, .ion-monitor:before, .ion-more:before, .ion-mouse:before, .ion-music-note:before, .ion-navicon:before, .ion-navicon-round:before, .ion-navigate:before, .ion-network:before, .ion-no-smoking:before, .ion-nuclear:before, .ion-outlet:before, .ion-paintbrush:before, .ion-paintbucket:before, .ion-paper-airplane:before, .ion-paperclip:before, .ion-pause:before, .ion-person:before, .ion-person-add:before, .ion-person-stalker:before, .ion-pie-graph:before, .ion-pin:before, .ion-pinpoint:before, .ion-pizza:before, .ion-plane:before, .ion-planet:before, .ion-play:before, .ion-playstation:before, .ion-plus:before, .ion-plus-circled:before, .ion-plus-round:before, .ion-podium:before, .ion-pound:before, .ion-power:before, .ion-pricetag:before, .ion-pricetags:before, .ion-printer:before, .ion-pull-request:before, .ion-qr-scanner:before, .ion-quote:before, .ion-radio-waves:before, .ion-record:before, .ion-refresh:before, .ion-reply:before, .ion-reply-all:before, .ion-ribbon-a:before, .ion-ribbon-b:before, .ion-sad:before, .ion-sad-outline:before, .ion-scissors:before, .ion-search:before, .ion-settings:before, .ion-share:before, .ion-shuffle:before, .ion-skip-backward:before, .ion-skip-forward:before, .ion-social-android:before, .ion-social-android-outline:before, .ion-social-angular:before, .ion-social-angular-outline:before, .ion-social-apple:before, .ion-social-apple-outline:before, .ion-social-bitcoin:before, .ion-social-bitcoin-outline:before, .ion-social-buffer:before, .ion-social-buffer-outline:before, .ion-social-chrome:before, .ion-social-chrome-outline:before, .ion-social-codepen:before, .ion-social-codepen-outline:before, .ion-social-css3:before, .ion-social-css3-outline:before, .ion-social-designernews:before, .ion-social-designernews-outline:before, .ion-social-dribbble:before, .ion-social-dribbble-outline:before, .ion-social-dropbox:before, .ion-social-dropbox-outline:before, .ion-social-euro:before, .ion-social-euro-outline:before, .ion-social-facebook:before, .ion-social-facebook-outline:before, .ion-social-foursquare:before, .ion-social-foursquare-outline:before, .ion-social-freebsd-devil:before, .ion-social-github:before, .ion-social-github-outline:before, .ion-social-google:before, .ion-social-google-outline:before, .ion-social-googleplus:before, .ion-social-googleplus-outline:before, .ion-social-hackernews:before, .ion-social-hackernews-outline:before, .ion-social-html5:before, .ion-social-html5-outline:before, .ion-social-instagram:before, .ion-social-instagram-outline:before, .ion-social-javascript:before, .ion-social-javascript-outline:before, .ion-social-linkedin:before, .ion-social-linkedin-outline:before, .ion-social-markdown:before, .ion-social-nodejs:before, .ion-social-octocat:before, .ion-social-pinterest:before, .ion-social-pinterest-outline:before, .ion-social-python:before, .ion-social-reddit:before, .ion-social-reddit-outline:before, .ion-social-rss:before, .ion-social-rss-outline:before, .ion-social-sass:before, .ion-social-skype:before, .ion-social-skype-outline:before, .ion-social-snapchat:before, .ion-social-snapchat-outline:before, .ion-social-tumblr:before, .ion-social-tumblr-outline:before, .ion-social-tux:before, .ion-social-twitch:before, .ion-social-twitch-outline:before, .ion-social-twitter:before, .ion-social-twitter-outline:before, .ion-social-usd:before, .ion-social-usd-outline:before, .ion-social-vimeo:before, .ion-social-vimeo-outline:before, .ion-social-whatsapp:before, .ion-social-whatsapp-outline:before, .ion-social-windows:before, .ion-social-windows-outline:before, .ion-social-wordpress:before, .ion-social-wordpress-outline:before, .ion-social-yahoo:before, .ion-social-yahoo-outline:before, .ion-social-yen:before, .ion-social-yen-outline:before, .ion-social-youtube:before, .ion-social-youtube-outline:before, .ion-soup-can:before, .ion-soup-can-outline:before, .ion-speakerphone:before, .ion-speedometer:before, .ion-spoon:before, .ion-star:before, .ion-stats-bars:before, .ion-steam:before, .ion-stop:before, .ion-thermometer:before, .ion-thumbsdown:before, .ion-thumbsup:before, .ion-toggle:before, .ion-toggle-filled:before, .ion-transgender:before, .ion-trash-a:before, .ion-trash-b:before, .ion-trophy:before, .ion-tshirt:before, .ion-tshirt-outline:before, .ion-umbrella:before, .ion-university:before, .ion-unlocked:before, .ion-upload:before, .ion-usb:before, .ion-videocamera:before, .ion-volume-high:before, .ion-volume-low:before, .ion-volume-medium:before, .ion-volume-mute:before, .ion-wand:before, .ion-waterdrop:before, .ion-wifi:before, .ion-wineglass:before, .ion-woman:before, .ion-wrench:before, .ion-xbox:before { display: inline-block; font-family: "Ionicons"; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; text-rendering: auto; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
-
-.ion-alert:before { content: "\f101"; }
-
-.ion-alert-circled:before { content: "\f100"; }
-
-.ion-android-add:before { content: "\f2c7"; }
-
-.ion-android-add-circle:before { content: "\f359"; }
-
-.ion-android-alarm-clock:before { content: "\f35a"; }
-
-.ion-android-alert:before { content: "\f35b"; }
-
-.ion-android-apps:before { content: "\f35c"; }
-
-.ion-android-archive:before { content: "\f2c9"; }
-
-.ion-android-arrow-back:before { content: "\f2ca"; }
-
-.ion-android-arrow-down:before { content: "\f35d"; }
-
-.ion-android-arrow-dropdown:before { content: "\f35f"; }
-
-.ion-android-arrow-dropdown-circle:before { content: "\f35e"; }
-
-.ion-android-arrow-dropleft:before { content: "\f361"; }
-
-.ion-android-arrow-dropleft-circle:before { content: "\f360"; }
-
-.ion-android-arrow-dropright:before { content: "\f363"; }
-
-.ion-android-arrow-dropright-circle:before { content: "\f362"; }
-
-.ion-android-arrow-dropup:before { content: "\f365"; }
-
-.ion-android-arrow-dropup-circle:before { content: "\f364"; }
-
-.ion-android-arrow-forward:before { content: "\f30f"; }
-
-.ion-android-arrow-up:before { content: "\f366"; }
-
-.ion-android-attach:before { content: "\f367"; }
-
-.ion-android-bar:before { content: "\f368"; }
-
-.ion-android-bicycle:before { content: "\f369"; }
-
-.ion-android-boat:before { content: "\f36a"; }
-
-.ion-android-bookmark:before { content: "\f36b"; }
-
-.ion-android-bulb:before { content: "\f36c"; }
-
-.ion-android-bus:before { content: "\f36d"; }
-
-.ion-android-calendar:before { content: "\f2d1"; }
-
-.ion-android-call:before { content: "\f2d2"; }
-
-.ion-android-camera:before { content: "\f2d3"; }
-
-.ion-android-cancel:before { content: "\f36e"; }
-
-.ion-android-car:before { content: "\f36f"; }
-
-.ion-android-cart:before { content: "\f370"; }
-
-.ion-android-chat:before { content: "\f2d4"; }
-
-.ion-android-checkbox:before { content: "\f374"; }
-
-.ion-android-checkbox-blank:before { content: "\f371"; }
-
-.ion-android-checkbox-outline:before { content: "\f373"; }
-
-.ion-android-checkbox-outline-blank:before { content: "\f372"; }
-
-.ion-android-checkmark-circle:before { content: "\f375"; }
-
-.ion-android-clipboard:before { content: "\f376"; }
-
-.ion-android-close:before { content: "\f2d7"; }
-
-.ion-android-cloud:before { content: "\f37a"; }
-
-.ion-android-cloud-circle:before { content: "\f377"; }
-
-.ion-android-cloud-done:before { content: "\f378"; }
-
-.ion-android-cloud-outline:before { content: "\f379"; }
-
-.ion-android-color-palette:before { content: "\f37b"; }
-
-.ion-android-compass:before { content: "\f37c"; }
-
-.ion-android-contact:before { content: "\f2d8"; }
-
-.ion-android-contacts:before { content: "\f2d9"; }
-
-.ion-android-contract:before { content: "\f37d"; }
-
-.ion-android-create:before { content: "\f37e"; }
-
-.ion-android-delete:before { content: "\f37f"; }
-
-.ion-android-desktop:before { content: "\f380"; }
-
-.ion-android-document:before { content: "\f381"; }
-
-.ion-android-done:before { content: "\f383"; }
-
-.ion-android-done-all:before { content: "\f382"; }
-
-.ion-android-download:before { content: "\f2dd"; }
-
-.ion-android-drafts:before { content: "\f384"; }
-
-.ion-android-exit:before { content: "\f385"; }
-
-.ion-android-expand:before { content: "\f386"; }
-
-.ion-android-favorite:before { content: "\f388"; }
-
-.ion-android-favorite-outline:before { content: "\f387"; }
-
-.ion-android-film:before { content: "\f389"; }
-
-.ion-android-folder:before { content: "\f2e0"; }
-
-.ion-android-folder-open:before { content: "\f38a"; }
-
-.ion-android-funnel:before { content: "\f38b"; }
-
-.ion-android-globe:before { content: "\f38c"; }
-
-.ion-android-hand:before { content: "\f2e3"; }
-
-.ion-android-hangout:before { content: "\f38d"; }
-
-.ion-android-happy:before { content: "\f38e"; }
-
-.ion-android-home:before { content: "\f38f"; }
-
-.ion-android-image:before { content: "\f2e4"; }
-
-.ion-android-laptop:before { content: "\f390"; }
-
-.ion-android-list:before { content: "\f391"; }
-
-.ion-android-locate:before { content: "\f2e9"; }
-
-.ion-android-lock:before { content: "\f392"; }
-
-.ion-android-mail:before { content: "\f2eb"; }
-
-.ion-android-map:before { content: "\f393"; }
-
-.ion-android-menu:before { content: "\f394"; }
-
-.ion-android-microphone:before { content: "\f2ec"; }
-
-.ion-android-microphone-off:before { content: "\f395"; }
-
-.ion-android-more-horizontal:before { content: "\f396"; }
-
-.ion-android-more-vertical:before { content: "\f397"; }
-
-.ion-android-navigate:before { content: "\f398"; }
-
-.ion-android-notifications:before { content: "\f39b"; }
-
-.ion-android-notifications-none:before { content: "\f399"; }
-
-.ion-android-notifications-off:before { content: "\f39a"; }
-
-.ion-android-open:before { content: "\f39c"; }
-
-.ion-android-options:before { content: "\f39d"; }
-
-.ion-android-people:before { content: "\f39e"; }
-
-.ion-android-person:before { content: "\f3a0"; }
-
-.ion-android-person-add:before { content: "\f39f"; }
-
-.ion-android-phone-landscape:before { content: "\f3a1"; }
-
-.ion-android-phone-portrait:before { content: "\f3a2"; }
-
-.ion-android-pin:before { content: "\f3a3"; }
-
-.ion-android-plane:before { content: "\f3a4"; }
-
-.ion-android-playstore:before { content: "\f2f0"; }
-
-.ion-android-print:before { content: "\f3a5"; }
-
-.ion-android-radio-button-off:before { content: "\f3a6"; }
-
-.ion-android-radio-button-on:before { content: "\f3a7"; }
-
-.ion-android-refresh:before { content: "\f3a8"; }
-
-.ion-android-remove:before { content: "\f2f4"; }
-
-.ion-android-remove-circle:before { content: "\f3a9"; }
-
-.ion-android-restaurant:before { content: "\f3aa"; }
-
-.ion-android-sad:before { content: "\f3ab"; }
-
-.ion-android-search:before { content: "\f2f5"; }
-
-.ion-android-send:before { content: "\f2f6"; }
-
-.ion-android-settings:before { content: "\f2f7"; }
-
-.ion-android-share:before { content: "\f2f8"; }
-
-.ion-android-share-alt:before { content: "\f3ac"; }
-
-.ion-android-star:before { content: "\f2fc"; }
-
-.ion-android-star-half:before { content: "\f3ad"; }
-
-.ion-android-star-outline:before { content: "\f3ae"; }
-
-.ion-android-stopwatch:before { content: "\f2fd"; }
-
-.ion-android-subway:before { content: "\f3af"; }
-
-.ion-android-sunny:before { content: "\f3b0"; }
-
-.ion-android-sync:before { content: "\f3b1"; }
-
-.ion-android-textsms:before { content: "\f3b2"; }
-
-.ion-android-time:before { content: "\f3b3"; }
-
-.ion-android-train:before { content: "\f3b4"; }
-
-.ion-android-unlock:before { content: "\f3b5"; }
-
-.ion-android-upload:before { content: "\f3b6"; }
-
-.ion-android-volume-down:before { content: "\f3b7"; }
-
-.ion-android-volume-mute:before { content: "\f3b8"; }
-
-.ion-android-volume-off:before { content: "\f3b9"; }
-
-.ion-android-volume-up:before { content: "\f3ba"; }
-
-.ion-android-walk:before { content: "\f3bb"; }
-
-.ion-android-warning:before { content: "\f3bc"; }
-
-.ion-android-watch:before { content: "\f3bd"; }
-
-.ion-android-wifi:before { content: "\f305"; }
-
-.ion-aperture:before { content: "\f313"; }
-
-.ion-archive:before { content: "\f102"; }
-
-.ion-arrow-down-a:before { content: "\f103"; }
-
-.ion-arrow-down-b:before { content: "\f104"; }
-
-.ion-arrow-down-c:before { content: "\f105"; }
-
-.ion-arrow-expand:before { content: "\f25e"; }
-
-.ion-arrow-graph-down-left:before { content: "\f25f"; }
-
-.ion-arrow-graph-down-right:before { content: "\f260"; }
-
-.ion-arrow-graph-up-left:before { content: "\f261"; }
-
-.ion-arrow-graph-up-right:before { content: "\f262"; }
-
-.ion-arrow-left-a:before { content: "\f106"; }
-
-.ion-arrow-left-b:before { content: "\f107"; }
-
-.ion-arrow-left-c:before { content: "\f108"; }
-
-.ion-arrow-move:before { content: "\f263"; }
-
-.ion-arrow-resize:before { content: "\f264"; }
-
-.ion-arrow-return-left:before { content: "\f265"; }
-
-.ion-arrow-return-right:before { content: "\f266"; }
-
-.ion-arrow-right-a:before { content: "\f109"; }
-
-.ion-arrow-right-b:before { content: "\f10a"; }
-
-.ion-arrow-right-c:before { content: "\f10b"; }
-
-.ion-arrow-shrink:before { content: "\f267"; }
-
-.ion-arrow-swap:before { content: "\f268"; }
-
-.ion-arrow-up-a:before { content: "\f10c"; }
-
-.ion-arrow-up-b:before { content: "\f10d"; }
-
-.ion-arrow-up-c:before { content: "\f10e"; }
-
-.ion-asterisk:before { content: "\f314"; }
-
-.ion-at:before { content: "\f10f"; }
-
-.ion-backspace:before { content: "\f3bf"; }
-
-.ion-backspace-outline:before { content: "\f3be"; }
-
-.ion-bag:before { content: "\f110"; }
-
-.ion-battery-charging:before { content: "\f111"; }
-
-.ion-battery-empty:before { content: "\f112"; }
-
-.ion-battery-full:before { content: "\f113"; }
-
-.ion-battery-half:before { content: "\f114"; }
-
-.ion-battery-low:before { content: "\f115"; }
-
-.ion-beaker:before { content: "\f269"; }
-
-.ion-beer:before { content: "\f26a"; }
-
-.ion-bluetooth:before { content: "\f116"; }
-
-.ion-bonfire:before { content: "\f315"; }
-
-.ion-bookmark:before { content: "\f26b"; }
-
-.ion-bowtie:before { content: "\f3c0"; }
-
-.ion-briefcase:before { content: "\f26c"; }
-
-.ion-bug:before { content: "\f2be"; }
-
-.ion-calculator:before { content: "\f26d"; }
-
-.ion-calendar:before { content: "\f117"; }
-
-.ion-camera:before { content: "\f118"; }
-
-.ion-card:before { content: "\f119"; }
-
-.ion-cash:before { content: "\f316"; }
-
-.ion-chatbox:before { content: "\f11b"; }
-
-.ion-chatbox-working:before { content: "\f11a"; }
-
-.ion-chatboxes:before { content: "\f11c"; }
-
-.ion-chatbubble:before { content: "\f11e"; }
-
-.ion-chatbubble-working:before { content: "\f11d"; }
-
-.ion-chatbubbles:before { content: "\f11f"; }
-
-.ion-checkmark:before { content: "\f122"; }
-
-.ion-checkmark-circled:before { content: "\f120"; }
-
-.ion-checkmark-round:before { content: "\f121"; }
-
-.ion-chevron-down:before { content: "\f123"; }
-
-.ion-chevron-left:before { content: "\f124"; }
-
-.ion-chevron-right:before { content: "\f125"; }
-
-.ion-chevron-up:before { content: "\f126"; }
-
-.ion-clipboard:before { content: "\f127"; }
-
-.ion-clock:before { content: "\f26e"; }
-
-.ion-close:before { content: "\f12a"; }
-
-.ion-close-circled:before { content: "\f128"; }
-
-.ion-close-round:before { content: "\f129"; }
-
-.ion-closed-captioning:before { content: "\f317"; }
-
-.ion-cloud:before { content: "\f12b"; }
-
-.ion-code:before { content: "\f271"; }
-
-.ion-code-download:before { content: "\f26f"; }
-
-.ion-code-working:before { content: "\f270"; }
-
-.ion-coffee:before { content: "\f272"; }
-
-.ion-compass:before { content: "\f273"; }
-
-.ion-compose:before { content: "\f12c"; }
-
-.ion-connection-bars:before { content: "\f274"; }
-
-.ion-contrast:before { content: "\f275"; }
-
-.ion-crop:before { content: "\f3c1"; }
-
-.ion-cube:before { content: "\f318"; }
-
-.ion-disc:before { content: "\f12d"; }
-
-.ion-document:before { content: "\f12f"; }
-
-.ion-document-text:before { content: "\f12e"; }
-
-.ion-drag:before { content: "\f130"; }
-
-.ion-earth:before { content: "\f276"; }
-
-.ion-easel:before { content: "\f3c2"; }
-
-.ion-edit:before { content: "\f2bf"; }
-
-.ion-egg:before { content: "\f277"; }
-
-.ion-eject:before { content: "\f131"; }
-
-.ion-email:before { content: "\f132"; }
-
-.ion-email-unread:before { content: "\f3c3"; }
-
-.ion-erlenmeyer-flask:before { content: "\f3c5"; }
-
-.ion-erlenmeyer-flask-bubbles:before { content: "\f3c4"; }
-
-.ion-eye:before { content: "\f133"; }
-
-.ion-eye-disabled:before { content: "\f306"; }
-
-.ion-female:before { content: "\f278"; }
-
-.ion-filing:before { content: "\f134"; }
-
-.ion-film-marker:before { content: "\f135"; }
-
-.ion-fireball:before { content: "\f319"; }
-
-.ion-flag:before { content: "\f279"; }
-
-.ion-flame:before { content: "\f31a"; }
-
-.ion-flash:before { content: "\f137"; }
-
-.ion-flash-off:before { content: "\f136"; }
-
-.ion-folder:before { content: "\f139"; }
-
-.ion-fork:before { content: "\f27a"; }
-
-.ion-fork-repo:before { content: "\f2c0"; }
-
-.ion-forward:before { content: "\f13a"; }
-
-.ion-funnel:before { content: "\f31b"; }
-
-.ion-gear-a:before { content: "\f13d"; }
-
-.ion-gear-b:before { content: "\f13e"; }
-
-.ion-grid:before { content: "\f13f"; }
-
-.ion-hammer:before { content: "\f27b"; }
-
-.ion-happy:before { content: "\f31c"; }
-
-.ion-happy-outline:before { content: "\f3c6"; }
-
-.ion-headphone:before { content: "\f140"; }
-
-.ion-heart:before { content: "\f141"; }
-
-.ion-heart-broken:before { content: "\f31d"; }
-
-.ion-help:before { content: "\f143"; }
-
-.ion-help-buoy:before { content: "\f27c"; }
-
-.ion-help-circled:before { content: "\f142"; }
-
-.ion-home:before { content: "\f144"; }
-
-.ion-icecream:before { content: "\f27d"; }
-
-.ion-image:before { content: "\f147"; }
-
-.ion-images:before { content: "\f148"; }
-
-.ion-information:before { content: "\f14a"; }
-
-.ion-information-circled:before { content: "\f149"; }
-
-.ion-ionic:before { content: "\f14b"; }
-
-.ion-ios-alarm:before { content: "\f3c8"; }
-
-.ion-ios-alarm-outline:before { content: "\f3c7"; }
-
-.ion-ios-albums:before { content: "\f3ca"; }
-
-.ion-ios-albums-outline:before { content: "\f3c9"; }
-
-.ion-ios-americanfootball:before { content: "\f3cc"; }
-
-.ion-ios-americanfootball-outline:before { content: "\f3cb"; }
-
-.ion-ios-analytics:before { content: "\f3ce"; }
-
-.ion-ios-analytics-outline:before { content: "\f3cd"; }
-
-.ion-ios-arrow-back:before { content: "\f3cf"; }
-
-.ion-ios-arrow-down:before { content: "\f3d0"; }
-
-.ion-ios-arrow-forward:before { content: "\f3d1"; }
-
-.ion-ios-arrow-left:before { content: "\f3d2"; }
-
-.ion-ios-arrow-right:before { content: "\f3d3"; }
-
-.ion-ios-arrow-thin-down:before { content: "\f3d4"; }
-
-.ion-ios-arrow-thin-left:before { content: "\f3d5"; }
-
-.ion-ios-arrow-thin-right:before { content: "\f3d6"; }
-
-.ion-ios-arrow-thin-up:before { content: "\f3d7"; }
-
-.ion-ios-arrow-up:before { content: "\f3d8"; }
-
-.ion-ios-at:before { content: "\f3da"; }
-
-.ion-ios-at-outline:before { content: "\f3d9"; }
-
-.ion-ios-barcode:before { content: "\f3dc"; }
-
-.ion-ios-barcode-outline:before { content: "\f3db"; }
-
-.ion-ios-baseball:before { content: "\f3de"; }
-
-.ion-ios-baseball-outline:before { content: "\f3dd"; }
-
-.ion-ios-basketball:before { content: "\f3e0"; }
-
-.ion-ios-basketball-outline:before { content: "\f3df"; }
-
-.ion-ios-bell:before { content: "\f3e2"; }
-
-.ion-ios-bell-outline:before { content: "\f3e1"; }
-
-.ion-ios-body:before { content: "\f3e4"; }
-
-.ion-ios-body-outline:before { content: "\f3e3"; }
-
-.ion-ios-bolt:before { content: "\f3e6"; }
-
-.ion-ios-bolt-outline:before { content: "\f3e5"; }
-
-.ion-ios-book:before { content: "\f3e8"; }
-
-.ion-ios-book-outline:before { content: "\f3e7"; }
-
-.ion-ios-bookmarks:before { content: "\f3ea"; }
-
-.ion-ios-bookmarks-outline:before { content: "\f3e9"; }
-
-.ion-ios-box:before { content: "\f3ec"; }
-
-.ion-ios-box-outline:before { content: "\f3eb"; }
-
-.ion-ios-briefcase:before { content: "\f3ee"; }
-
-.ion-ios-briefcase-outline:before { content: "\f3ed"; }
-
-.ion-ios-browsers:before { content: "\f3f0"; }
-
-.ion-ios-browsers-outline:before { content: "\f3ef"; }
-
-.ion-ios-calculator:before { content: "\f3f2"; }
-
-.ion-ios-calculator-outline:before { content: "\f3f1"; }
-
-.ion-ios-calendar:before { content: "\f3f4"; }
-
-.ion-ios-calendar-outline:before { content: "\f3f3"; }
-
-.ion-ios-camera:before { content: "\f3f6"; }
-
-.ion-ios-camera-outline:before { content: "\f3f5"; }
-
-.ion-ios-cart:before { content: "\f3f8"; }
-
-.ion-ios-cart-outline:before { content: "\f3f7"; }
-
-.ion-ios-chatboxes:before { content: "\f3fa"; }
-
-.ion-ios-chatboxes-outline:before { content: "\f3f9"; }
-
-.ion-ios-chatbubble:before { content: "\f3fc"; }
-
-.ion-ios-chatbubble-outline:before { content: "\f3fb"; }
-
-.ion-ios-checkmark:before { content: "\f3ff"; }
-
-.ion-ios-checkmark-empty:before { content: "\f3fd"; }
-
-.ion-ios-checkmark-outline:before { content: "\f3fe"; }
-
-.ion-ios-circle-filled:before { content: "\f400"; }
-
-.ion-ios-circle-outline:before { content: "\f401"; }
-
-.ion-ios-clock:before { content: "\f403"; }
-
-.ion-ios-clock-outline:before { content: "\f402"; }
-
-.ion-ios-close:before { content: "\f406"; }
-
-.ion-ios-close-empty:before { content: "\f404"; }
-
-.ion-ios-close-outline:before { content: "\f405"; }
-
-.ion-ios-cloud:before { content: "\f40c"; }
-
-.ion-ios-cloud-download:before { content: "\f408"; }
-
-.ion-ios-cloud-download-outline:before { content: "\f407"; }
-
-.ion-ios-cloud-outline:before { content: "\f409"; }
-
-.ion-ios-cloud-upload:before { content: "\f40b"; }
-
-.ion-ios-cloud-upload-outline:before { content: "\f40a"; }
-
-.ion-ios-cloudy:before { content: "\f410"; }
-
-.ion-ios-cloudy-night:before { content: "\f40e"; }
-
-.ion-ios-cloudy-night-outline:before { content: "\f40d"; }
-
-.ion-ios-cloudy-outline:before { content: "\f40f"; }
-
-.ion-ios-cog:before { content: "\f412"; }
-
-.ion-ios-cog-outline:before { content: "\f411"; }
-
-.ion-ios-color-filter:before { content: "\f414"; }
-
-.ion-ios-color-filter-outline:before { content: "\f413"; }
-
-.ion-ios-color-wand:before { content: "\f416"; }
-
-.ion-ios-color-wand-outline:before { content: "\f415"; }
-
-.ion-ios-compose:before { content: "\f418"; }
-
-.ion-ios-compose-outline:before { content: "\f417"; }
-
-.ion-ios-contact:before { content: "\f41a"; }
-
-.ion-ios-contact-outline:before { content: "\f419"; }
-
-.ion-ios-copy:before { content: "\f41c"; }
-
-.ion-ios-copy-outline:before { content: "\f41b"; }
-
-.ion-ios-crop:before { content: "\f41e"; }
-
-.ion-ios-crop-strong:before { content: "\f41d"; }
-
-.ion-ios-download:before { content: "\f420"; }
-
-.ion-ios-download-outline:before { content: "\f41f"; }
-
-.ion-ios-drag:before { content: "\f421"; }
-
-.ion-ios-email:before { content: "\f423"; }
-
-.ion-ios-email-outline:before { content: "\f422"; }
-
-.ion-ios-eye:before { content: "\f425"; }
-
-.ion-ios-eye-outline:before { content: "\f424"; }
-
-.ion-ios-fastforward:before { content: "\f427"; }
-
-.ion-ios-fastforward-outline:before { content: "\f426"; }
-
-.ion-ios-filing:before { content: "\f429"; }
-
-.ion-ios-filing-outline:before { content: "\f428"; }
-
-.ion-ios-film:before { content: "\f42b"; }
-
-.ion-ios-film-outline:before { content: "\f42a"; }
-
-.ion-ios-flag:before { content: "\f42d"; }
-
-.ion-ios-flag-outline:before { content: "\f42c"; }
-
-.ion-ios-flame:before { content: "\f42f"; }
-
-.ion-ios-flame-outline:before { content: "\f42e"; }
-
-.ion-ios-flask:before { content: "\f431"; }
-
-.ion-ios-flask-outline:before { content: "\f430"; }
-
-.ion-ios-flower:before { content: "\f433"; }
-
-.ion-ios-flower-outline:before { content: "\f432"; }
-
-.ion-ios-folder:before { content: "\f435"; }
-
-.ion-ios-folder-outline:before { content: "\f434"; }
-
-.ion-ios-football:before { content: "\f437"; }
-
-.ion-ios-football-outline:before { content: "\f436"; }
-
-.ion-ios-game-controller-a:before { content: "\f439"; }
-
-.ion-ios-game-controller-a-outline:before { content: "\f438"; }
-
-.ion-ios-game-controller-b:before { content: "\f43b"; }
-
-.ion-ios-game-controller-b-outline:before { content: "\f43a"; }
-
-.ion-ios-gear:before { content: "\f43d"; }
-
-.ion-ios-gear-outline:before { content: "\f43c"; }
-
-.ion-ios-glasses:before { content: "\f43f"; }
-
-.ion-ios-glasses-outline:before { content: "\f43e"; }
-
-.ion-ios-grid-view:before { content: "\f441"; }
-
-.ion-ios-grid-view-outline:before { content: "\f440"; }
-
-.ion-ios-heart:before { content: "\f443"; }
-
-.ion-ios-heart-outline:before { content: "\f442"; }
-
-.ion-ios-help:before { content: "\f446"; }
-
-.ion-ios-help-empty:before { content: "\f444"; }
-
-.ion-ios-help-outline:before { content: "\f445"; }
-
-.ion-ios-home:before { content: "\f448"; }
-
-.ion-ios-home-outline:before { content: "\f447"; }
-
-.ion-ios-infinite:before { content: "\f44a"; }
-
-.ion-ios-infinite-outline:before { content: "\f449"; }
-
-.ion-ios-information:before { content: "\f44d"; }
-
-.ion-ios-information-empty:before { content: "\f44b"; }
-
-.ion-ios-information-outline:before { content: "\f44c"; }
-
-.ion-ios-ionic-outline:before { content: "\f44e"; }
-
-.ion-ios-keypad:before { content: "\f450"; }
-
-.ion-ios-keypad-outline:before { content: "\f44f"; }
-
-.ion-ios-lightbulb:before { content: "\f452"; }
-
-.ion-ios-lightbulb-outline:before { content: "\f451"; }
-
-.ion-ios-list:before { content: "\f454"; }
-
-.ion-ios-list-outline:before { content: "\f453"; }
-
-.ion-ios-location:before { content: "\f456"; }
-
-.ion-ios-location-outline:before { content: "\f455"; }
-
-.ion-ios-locked:before { content: "\f458"; }
-
-.ion-ios-locked-outline:before { content: "\f457"; }
-
-.ion-ios-loop:before { content: "\f45a"; }
-
-.ion-ios-loop-strong:before { content: "\f459"; }
-
-.ion-ios-medical:before { content: "\f45c"; }
-
-.ion-ios-medical-outline:before { content: "\f45b"; }
-
-.ion-ios-medkit:before { content: "\f45e"; }
-
-.ion-ios-medkit-outline:before { content: "\f45d"; }
-
-.ion-ios-mic:before { content: "\f461"; }
-
-.ion-ios-mic-off:before { content: "\f45f"; }
-
-.ion-ios-mic-outline:before { content: "\f460"; }
-
-.ion-ios-minus:before { content: "\f464"; }
-
-.ion-ios-minus-empty:before { content: "\f462"; }
-
-.ion-ios-minus-outline:before { content: "\f463"; }
-
-.ion-ios-monitor:before { content: "\f466"; }
-
-.ion-ios-monitor-outline:before { content: "\f465"; }
-
-.ion-ios-moon:before { content: "\f468"; }
-
-.ion-ios-moon-outline:before { content: "\f467"; }
-
-.ion-ios-more:before { content: "\f46a"; }
-
-.ion-ios-more-outline:before { content: "\f469"; }
-
-.ion-ios-musical-note:before { content: "\f46b"; }
-
-.ion-ios-musical-notes:before { content: "\f46c"; }
-
-.ion-ios-navigate:before { content: "\f46e"; }
-
-.ion-ios-navigate-outline:before { content: "\f46d"; }
-
-.ion-ios-nutrition:before { content: "\f470"; }
-
-.ion-ios-nutrition-outline:before { content: "\f46f"; }
-
-.ion-ios-paper:before { content: "\f472"; }
-
-.ion-ios-paper-outline:before { content: "\f471"; }
-
-.ion-ios-paperplane:before { content: "\f474"; }
-
-.ion-ios-paperplane-outline:before { content: "\f473"; }
-
-.ion-ios-partlysunny:before { content: "\f476"; }
-
-.ion-ios-partlysunny-outline:before { content: "\f475"; }
-
-.ion-ios-pause:before { content: "\f478"; }
-
-.ion-ios-pause-outline:before { content: "\f477"; }
-
-.ion-ios-paw:before { content: "\f47a"; }
-
-.ion-ios-paw-outline:before { content: "\f479"; }
-
-.ion-ios-people:before { content: "\f47c"; }
-
-.ion-ios-people-outline:before { content: "\f47b"; }
-
-.ion-ios-person:before { content: "\f47e"; }
-
-.ion-ios-person-outline:before { content: "\f47d"; }
-
-.ion-ios-personadd:before { content: "\f480"; }
-
-.ion-ios-personadd-outline:before { content: "\f47f"; }
-
-.ion-ios-photos:before { content: "\f482"; }
-
-.ion-ios-photos-outline:before { content: "\f481"; }
-
-.ion-ios-pie:before { content: "\f484"; }
-
-.ion-ios-pie-outline:before { content: "\f483"; }
-
-.ion-ios-pint:before { content: "\f486"; }
-
-.ion-ios-pint-outline:before { content: "\f485"; }
-
-.ion-ios-play:before { content: "\f488"; }
-
-.ion-ios-play-outline:before { content: "\f487"; }
-
-.ion-ios-plus:before { content: "\f48b"; }
-
-.ion-ios-plus-empty:before { content: "\f489"; }
-
-.ion-ios-plus-outline:before { content: "\f48a"; }
-
-.ion-ios-pricetag:before { content: "\f48d"; }
-
-.ion-ios-pricetag-outline:before { content: "\f48c"; }
-
-.ion-ios-pricetags:before { content: "\f48f"; }
-
-.ion-ios-pricetags-outline:before { content: "\f48e"; }
-
-.ion-ios-printer:before { content: "\f491"; }
-
-.ion-ios-printer-outline:before { content: "\f490"; }
-
-.ion-ios-pulse:before { content: "\f493"; }
-
-.ion-ios-pulse-strong:before { content: "\f492"; }
-
-.ion-ios-rainy:before { content: "\f495"; }
-
-.ion-ios-rainy-outline:before { content: "\f494"; }
-
-.ion-ios-recording:before { content: "\f497"; }
-
-.ion-ios-recording-outline:before { content: "\f496"; }
-
-.ion-ios-redo:before { content: "\f499"; }
-
-.ion-ios-redo-outline:before { content: "\f498"; }
-
-.ion-ios-refresh:before { content: "\f49c"; }
-
-.ion-ios-refresh-empty:before { content: "\f49a"; }
-
-.ion-ios-refresh-outline:before { content: "\f49b"; }
-
-.ion-ios-reload:before { content: "\f49d"; }
-
-.ion-ios-reverse-camera:before { content: "\f49f"; }
-
-.ion-ios-reverse-camera-outline:before { content: "\f49e"; }
-
-.ion-ios-rewind:before { content: "\f4a1"; }
-
-.ion-ios-rewind-outline:before { content: "\f4a0"; }
-
-.ion-ios-rose:before { content: "\f4a3"; }
-
-.ion-ios-rose-outline:before { content: "\f4a2"; }
-
-.ion-ios-search:before { content: "\f4a5"; }
-
-.ion-ios-search-strong:before { content: "\f4a4"; }
-
-.ion-ios-settings:before { content: "\f4a7"; }
-
-.ion-ios-settings-strong:before { content: "\f4a6"; }
-
-.ion-ios-shuffle:before { content: "\f4a9"; }
-
-.ion-ios-shuffle-strong:before { content: "\f4a8"; }
-
-.ion-ios-skipbackward:before { content: "\f4ab"; }
-
-.ion-ios-skipbackward-outline:before { content: "\f4aa"; }
-
-.ion-ios-skipforward:before { content: "\f4ad"; }
-
-.ion-ios-skipforward-outline:before { content: "\f4ac"; }
-
-.ion-ios-snowy:before { content: "\f4ae"; }
-
-.ion-ios-speedometer:before { content: "\f4b0"; }
-
-.ion-ios-speedometer-outline:before { content: "\f4af"; }
-
-.ion-ios-star:before { content: "\f4b3"; }
-
-.ion-ios-star-half:before { content: "\f4b1"; }
-
-.ion-ios-star-outline:before { content: "\f4b2"; }
-
-.ion-ios-stopwatch:before { content: "\f4b5"; }
-
-.ion-ios-stopwatch-outline:before { content: "\f4b4"; }
-
-.ion-ios-sunny:before { content: "\f4b7"; }
-
-.ion-ios-sunny-outline:before { content: "\f4b6"; }
-
-.ion-ios-telephone:before { content: "\f4b9"; }
-
-.ion-ios-telephone-outline:before { content: "\f4b8"; }
-
-.ion-ios-tennisball:before { content: "\f4bb"; }
-
-.ion-ios-tennisball-outline:before { content: "\f4ba"; }
-
-.ion-ios-thunderstorm:before { content: "\f4bd"; }
-
-.ion-ios-thunderstorm-outline:before { content: "\f4bc"; }
-
-.ion-ios-time:before { content: "\f4bf"; }
-
-.ion-ios-time-outline:before { content: "\f4be"; }
-
-.ion-ios-timer:before { content: "\f4c1"; }
-
-.ion-ios-timer-outline:before { content: "\f4c0"; }
-
-.ion-ios-toggle:before { content: "\f4c3"; }
-
-.ion-ios-toggle-outline:before { content: "\f4c2"; }
-
-.ion-ios-trash:before { content: "\f4c5"; }
-
-.ion-ios-trash-outline:before { content: "\f4c4"; }
-
-.ion-ios-undo:before { content: "\f4c7"; }
-
-.ion-ios-undo-outline:before { content: "\f4c6"; }
-
-.ion-ios-unlocked:before { content: "\f4c9"; }
-
-.ion-ios-unlocked-outline:before { content: "\f4c8"; }
-
-.ion-ios-upload:before { content: "\f4cb"; }
-
-.ion-ios-upload-outline:before { content: "\f4ca"; }
-
-.ion-ios-videocam:before { content: "\f4cd"; }
-
-.ion-ios-videocam-outline:before { content: "\f4cc"; }
-
-.ion-ios-volume-high:before { content: "\f4ce"; }
-
-.ion-ios-volume-low:before { content: "\f4cf"; }
-
-.ion-ios-wineglass:before { content: "\f4d1"; }
-
-.ion-ios-wineglass-outline:before { content: "\f4d0"; }
-
-.ion-ios-world:before { content: "\f4d3"; }
-
-.ion-ios-world-outline:before { content: "\f4d2"; }
-
-.ion-ipad:before { content: "\f1f9"; }
-
-.ion-iphone:before { content: "\f1fa"; }
-
-.ion-ipod:before { content: "\f1fb"; }
-
-.ion-jet:before { content: "\f295"; }
-
-.ion-key:before { content: "\f296"; }
-
-.ion-knife:before { content: "\f297"; }
-
-.ion-laptop:before { content: "\f1fc"; }
-
-.ion-leaf:before { content: "\f1fd"; }
-
-.ion-levels:before { content: "\f298"; }
-
-.ion-lightbulb:before { content: "\f299"; }
-
-.ion-link:before { content: "\f1fe"; }
-
-.ion-load-a:before { content: "\f29a"; }
-
-.ion-load-b:before { content: "\f29b"; }
-
-.ion-load-c:before { content: "\f29c"; }
-
-.ion-load-d:before { content: "\f29d"; }
-
-.ion-location:before { content: "\f1ff"; }
-
-.ion-lock-combination:before { content: "\f4d4"; }
-
-.ion-locked:before { content: "\f200"; }
-
-.ion-log-in:before { content: "\f29e"; }
-
-.ion-log-out:before { content: "\f29f"; }
-
-.ion-loop:before { content: "\f201"; }
-
-.ion-magnet:before { content: "\f2a0"; }
-
-.ion-male:before { content: "\f2a1"; }
-
-.ion-man:before { content: "\f202"; }
-
-.ion-map:before { content: "\f203"; }
-
-.ion-medkit:before { content: "\f2a2"; }
-
-.ion-merge:before { content: "\f33f"; }
-
-.ion-mic-a:before { content: "\f204"; }
-
-.ion-mic-b:before { content: "\f205"; }
-
-.ion-mic-c:before { content: "\f206"; }
-
-.ion-minus:before { content: "\f209"; }
-
-.ion-minus-circled:before { content: "\f207"; }
-
-.ion-minus-round:before { content: "\f208"; }
-
-.ion-model-s:before { content: "\f2c1"; }
-
-.ion-monitor:before { content: "\f20a"; }
-
-.ion-more:before { content: "\f20b"; }
-
-.ion-mouse:before { content: "\f340"; }
-
-.ion-music-note:before { content: "\f20c"; }
-
-.ion-navicon:before { content: "\f20e"; }
-
-.ion-navicon-round:before { content: "\f20d"; }
-
-.ion-navigate:before { content: "\f2a3"; }
-
-.ion-network:before { content: "\f341"; }
-
-.ion-no-smoking:before { content: "\f2c2"; }
-
-.ion-nuclear:before { content: "\f2a4"; }
-
-.ion-outlet:before { content: "\f342"; }
-
-.ion-paintbrush:before { content: "\f4d5"; }
-
-.ion-paintbucket:before { content: "\f4d6"; }
-
-.ion-paper-airplane:before { content: "\f2c3"; }
-
-.ion-paperclip:before { content: "\f20f"; }
-
-.ion-pause:before { content: "\f210"; }
-
-.ion-person:before { content: "\f213"; }
-
-.ion-person-add:before { content: "\f211"; }
-
-.ion-person-stalker:before { content: "\f212"; }
-
-.ion-pie-graph:before { content: "\f2a5"; }
-
-.ion-pin:before { content: "\f2a6"; }
-
-.ion-pinpoint:before { content: "\f2a7"; }
-
-.ion-pizza:before { content: "\f2a8"; }
-
-.ion-plane:before { content: "\f214"; }
-
-.ion-planet:before { content: "\f343"; }
-
-.ion-play:before { content: "\f215"; }
-
-.ion-playstation:before { content: "\f30a"; }
-
-.ion-plus:before { content: "\f218"; }
-
-.ion-plus-circled:before { content: "\f216"; }
-
-.ion-plus-round:before { content: "\f217"; }
-
-.ion-podium:before { content: "\f344"; }
-
-.ion-pound:before { content: "\f219"; }
-
-.ion-power:before { content: "\f2a9"; }
-
-.ion-pricetag:before { content: "\f2aa"; }
-
-.ion-pricetags:before { content: "\f2ab"; }
-
-.ion-printer:before { content: "\f21a"; }
-
-.ion-pull-request:before { content: "\f345"; }
-
-.ion-qr-scanner:before { content: "\f346"; }
-
-.ion-quote:before { content: "\f347"; }
-
-.ion-radio-waves:before { content: "\f2ac"; }
-
-.ion-record:before { content: "\f21b"; }
-
-.ion-refresh:before { content: "\f21c"; }
-
-.ion-reply:before { content: "\f21e"; }
-
-.ion-reply-all:before { content: "\f21d"; }
-
-.ion-ribbon-a:before { content: "\f348"; }
-
-.ion-ribbon-b:before { content: "\f349"; }
-
-.ion-sad:before { content: "\f34a"; }
-
-.ion-sad-outline:before { content: "\f4d7"; }
-
-.ion-scissors:before { content: "\f34b"; }
-
-.ion-search:before { content: "\f21f"; }
-
-.ion-settings:before { content: "\f2ad"; }
-
-.ion-share:before { content: "\f220"; }
-
-.ion-shuffle:before { content: "\f221"; }
-
-.ion-skip-backward:before { content: "\f222"; }
-
-.ion-skip-forward:before { content: "\f223"; }
-
-.ion-social-android:before { content: "\f225"; }
-
-.ion-social-android-outline:before { content: "\f224"; }
-
-.ion-social-angular:before { content: "\f4d9"; }
-
-.ion-social-angular-outline:before { content: "\f4d8"; }
-
-.ion-social-apple:before { content: "\f227"; }
-
-.ion-social-apple-outline:before { content: "\f226"; }
-
-.ion-social-bitcoin:before { content: "\f2af"; }
-
-.ion-social-bitcoin-outline:before { content: "\f2ae"; }
-
-.ion-social-buffer:before { content: "\f229"; }
-
-.ion-social-buffer-outline:before { content: "\f228"; }
-
-.ion-social-chrome:before { content: "\f4db"; }
-
-.ion-social-chrome-outline:before { content: "\f4da"; }
-
-.ion-social-codepen:before { content: "\f4dd"; }
-
-.ion-social-codepen-outline:before { content: "\f4dc"; }
-
-.ion-social-css3:before { content: "\f4df"; }
-
-.ion-social-css3-outline:before { content: "\f4de"; }
-
-.ion-social-designernews:before { content: "\f22b"; }
-
-.ion-social-designernews-outline:before { content: "\f22a"; }
-
-.ion-social-dribbble:before { content: "\f22d"; }
-
-.ion-social-dribbble-outline:before { content: "\f22c"; }
-
-.ion-social-dropbox:before { content: "\f22f"; }
-
-.ion-social-dropbox-outline:before { content: "\f22e"; }
-
-.ion-social-euro:before { content: "\f4e1"; }
-
-.ion-social-euro-outline:before { content: "\f4e0"; }
-
-.ion-social-facebook:before { content: "\f231"; }
-
-.ion-social-facebook-outline:before { content: "\f230"; }
-
-.ion-social-foursquare:before { content: "\f34d"; }
-
-.ion-social-foursquare-outline:before { content: "\f34c"; }
-
-.ion-social-freebsd-devil:before { content: "\f2c4"; }
-
-.ion-social-github:before { content: "\f233"; }
-
-.ion-social-github-outline:before { content: "\f232"; }
-
-.ion-social-google:before { content: "\f34f"; }
-
-.ion-social-google-outline:before { content: "\f34e"; }
-
-.ion-social-googleplus:before { content: "\f235"; }
-
-.ion-social-googleplus-outline:before { content: "\f234"; }
-
-.ion-social-hackernews:before { content: "\f237"; }
-
-.ion-social-hackernews-outline:before { content: "\f236"; }
-
-.ion-social-html5:before { content: "\f4e3"; }
-
-.ion-social-html5-outline:before { content: "\f4e2"; }
-
-.ion-social-instagram:before { content: "\f351"; }
-
-.ion-social-instagram-outline:before { content: "\f350"; }
-
-.ion-social-javascript:before { content: "\f4e5"; }
-
-.ion-social-javascript-outline:before { content: "\f4e4"; }
-
-.ion-social-linkedin:before { content: "\f239"; }
-
-.ion-social-linkedin-outline:before { content: "\f238"; }
-
-.ion-social-markdown:before { content: "\f4e6"; }
-
-.ion-social-nodejs:before { content: "\f4e7"; }
-
-.ion-social-octocat:before { content: "\f4e8"; }
-
-.ion-social-pinterest:before { content: "\f2b1"; }
-
-.ion-social-pinterest-outline:before { content: "\f2b0"; }
-
-.ion-social-python:before { content: "\f4e9"; }
-
-.ion-social-reddit:before { content: "\f23b"; }
-
-.ion-social-reddit-outline:before { content: "\f23a"; }
-
-.ion-social-rss:before { content: "\f23d"; }
-
-.ion-social-rss-outline:before { content: "\f23c"; }
-
-.ion-social-sass:before { content: "\f4ea"; }
-
-.ion-social-skype:before { content: "\f23f"; }
-
-.ion-social-skype-outline:before { content: "\f23e"; }
-
-.ion-social-snapchat:before { content: "\f4ec"; }
-
-.ion-social-snapchat-outline:before { content: "\f4eb"; }
-
-.ion-social-tumblr:before { content: "\f241"; }
-
-.ion-social-tumblr-outline:before { content: "\f240"; }
-
-.ion-social-tux:before { content: "\f2c5"; }
-
-.ion-social-twitch:before { content: "\f4ee"; }
-
-.ion-social-twitch-outline:before { content: "\f4ed"; }
-
-.ion-social-twitter:before { content: "\f243"; }
-
-.ion-social-twitter-outline:before { content: "\f242"; }
-
-.ion-social-usd:before { content: "\f353"; }
-
-.ion-social-usd-outline:before { content: "\f352"; }
-
-.ion-social-vimeo:before { content: "\f245"; }
-
-.ion-social-vimeo-outline:before { content: "\f244"; }
-
-.ion-social-whatsapp:before { content: "\f4f0"; }
-
-.ion-social-whatsapp-outline:before { content: "\f4ef"; }
-
-.ion-social-windows:before { content: "\f247"; }
-
-.ion-social-windows-outline:before { content: "\f246"; }
-
-.ion-social-wordpress:before { content: "\f249"; }
-
-.ion-social-wordpress-outline:before { content: "\f248"; }
-
-.ion-social-yahoo:before { content: "\f24b"; }
-
-.ion-social-yahoo-outline:before { content: "\f24a"; }
-
-.ion-social-yen:before { content: "\f4f2"; }
-
-.ion-social-yen-outline:before { content: "\f4f1"; }
-
-.ion-social-youtube:before { content: "\f24d"; }
-
-.ion-social-youtube-outline:before { content: "\f24c"; }
-
-.ion-soup-can:before { content: "\f4f4"; }
-
-.ion-soup-can-outline:before { content: "\f4f3"; }
-
-.ion-speakerphone:before { content: "\f2b2"; }
-
-.ion-speedometer:before { content: "\f2b3"; }
-
-.ion-spoon:before { content: "\f2b4"; }
-
-.ion-star:before { content: "\f24e"; }
-
-.ion-stats-bars:before { content: "\f2b5"; }
-
-.ion-steam:before { content: "\f30b"; }
-
-.ion-stop:before { content: "\f24f"; }
-
-.ion-thermometer:before { content: "\f2b6"; }
-
-.ion-thumbsdown:before { content: "\f250"; }
-
-.ion-thumbsup:before { content: "\f251"; }
-
-.ion-toggle:before { content: "\f355"; }
-
-.ion-toggle-filled:before { content: "\f354"; }
-
-.ion-transgender:before { content: "\f4f5"; }
-
-.ion-trash-a:before { content: "\f252"; }
-
-.ion-trash-b:before { content: "\f253"; }
-
-.ion-trophy:before { content: "\f356"; }
-
-.ion-tshirt:before { content: "\f4f7"; }
-
-.ion-tshirt-outline:before { content: "\f4f6"; }
-
-.ion-umbrella:before { content: "\f2b7"; }
-
-.ion-university:before { content: "\f357"; }
-
-.ion-unlocked:before { content: "\f254"; }
-
-.ion-upload:before { content: "\f255"; }
-
-.ion-usb:before { content: "\f2b8"; }
-
-.ion-videocamera:before { content: "\f256"; }
-
-.ion-volume-high:before { content: "\f257"; }
-
-.ion-volume-low:before { content: "\f258"; }
-
-.ion-volume-medium:before { content: "\f259"; }
-
-.ion-volume-mute:before { content: "\f25a"; }
-
-.ion-wand:before { content: "\f358"; }
-
-.ion-waterdrop:before { content: "\f25b"; }
-
-.ion-wifi:before { content: "\f25c"; }
-
-.ion-wineglass:before { content: "\f2b9"; }
-
-.ion-woman:before { content: "\f25d"; }
-
-.ion-wrench:before { content: "\f2ba"; }
-
-.ion-xbox:before { content: "\f30c"; }
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/css/ionicons.min.css b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/css/ionicons.min.css
deleted file mode 100644
index baba9e93..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/css/ionicons.min.css
+++ /dev/null
@@ -1,11 +0,0 @@
-@charset "UTF-8";/*!
- Ionicons, v2.0.0
- Created by Ben Sperry for the Ionic Framework, http://ionicons.com/
- https://twitter.com/benjsperry https://twitter.com/ionicframework
- MIT License: https://github.com/driftyco/ionicons
-
- Android-style icons originally built by Google’s
- Material Design Icons: https://github.com/google/material-design-icons
- used under CC BY http://creativecommons.org/licenses/by/4.0/
- Modified icons to fit ionicon’s grid from original.
-*/@font-face{font-family:"Ionicons";src:url("../fonts/ionicons.eot?v=2.0.0");src:url("../fonts/ionicons.eot?v=2.0.0#iefix") format("embedded-opentype"),url("../fonts/ionicons.ttf?v=2.0.0") format("truetype"),url("../fonts/ionicons.woff?v=2.0.0") format("woff"),url("../fonts/ionicons.svg?v=2.0.0#Ionicons") format("svg");font-weight:normal;font-style:normal}.ion,.ionicons,.ion-alert:before,.ion-alert-circled:before,.ion-android-add:before,.ion-android-add-circle:before,.ion-android-alarm-clock:before,.ion-android-alert:before,.ion-android-apps:before,.ion-android-archive:before,.ion-android-arrow-back:before,.ion-android-arrow-down:before,.ion-android-arrow-dropdown:before,.ion-android-arrow-dropdown-circle:before,.ion-android-arrow-dropleft:before,.ion-android-arrow-dropleft-circle:before,.ion-android-arrow-dropright:before,.ion-android-arrow-dropright-circle:before,.ion-android-arrow-dropup:before,.ion-android-arrow-dropup-circle:before,.ion-android-arrow-forward:before,.ion-android-arrow-up:before,.ion-android-attach:before,.ion-android-bar:before,.ion-android-bicycle:before,.ion-android-boat:before,.ion-android-bookmark:before,.ion-android-bulb:before,.ion-android-bus:before,.ion-android-calendar:before,.ion-android-call:before,.ion-android-camera:before,.ion-android-cancel:before,.ion-android-car:before,.ion-android-cart:before,.ion-android-chat:before,.ion-android-checkbox:before,.ion-android-checkbox-blank:before,.ion-android-checkbox-outline:before,.ion-android-checkbox-outline-blank:before,.ion-android-checkmark-circle:before,.ion-android-clipboard:before,.ion-android-close:before,.ion-android-cloud:before,.ion-android-cloud-circle:before,.ion-android-cloud-done:before,.ion-android-cloud-outline:before,.ion-android-color-palette:before,.ion-android-compass:before,.ion-android-contact:before,.ion-android-contacts:before,.ion-android-contract:before,.ion-android-create:before,.ion-android-delete:before,.ion-android-desktop:before,.ion-android-document:before,.ion-android-done:before,.ion-android-done-all:before,.ion-android-download:before,.ion-android-drafts:before,.ion-android-exit:before,.ion-android-expand:before,.ion-android-favorite:before,.ion-android-favorite-outline:before,.ion-android-film:before,.ion-android-folder:before,.ion-android-folder-open:before,.ion-android-funnel:before,.ion-android-globe:before,.ion-android-hand:before,.ion-android-hangout:before,.ion-android-happy:before,.ion-android-home:before,.ion-android-image:before,.ion-android-laptop:before,.ion-android-list:before,.ion-android-locate:before,.ion-android-lock:before,.ion-android-mail:before,.ion-android-map:before,.ion-android-menu:before,.ion-android-microphone:before,.ion-android-microphone-off:before,.ion-android-more-horizontal:before,.ion-android-more-vertical:before,.ion-android-navigate:before,.ion-android-notifications:before,.ion-android-notifications-none:before,.ion-android-notifications-off:before,.ion-android-open:before,.ion-android-options:before,.ion-android-people:before,.ion-android-person:before,.ion-android-person-add:before,.ion-android-phone-landscape:before,.ion-android-phone-portrait:before,.ion-android-pin:before,.ion-android-plane:before,.ion-android-playstore:before,.ion-android-print:before,.ion-android-radio-button-off:before,.ion-android-radio-button-on:before,.ion-android-refresh:before,.ion-android-remove:before,.ion-android-remove-circle:before,.ion-android-restaurant:before,.ion-android-sad:before,.ion-android-search:before,.ion-android-send:before,.ion-android-settings:before,.ion-android-share:before,.ion-android-share-alt:before,.ion-android-star:before,.ion-android-star-half:before,.ion-android-star-outline:before,.ion-android-stopwatch:before,.ion-android-subway:before,.ion-android-sunny:before,.ion-android-sync:before,.ion-android-textsms:before,.ion-android-time:before,.ion-android-train:before,.ion-android-unlock:before,.ion-android-upload:before,.ion-android-volume-down:before,.ion-android-volume-mute:before,.ion-android-volume-off:before,.ion-android-volume-up:before,.ion-android-walk:before,.ion-android-warning:before,.ion-android-watch:before,.ion-android-wifi:before,.ion-aperture:before,.ion-archive:before,.ion-arrow-down-a:before,.ion-arrow-down-b:before,.ion-arrow-down-c:before,.ion-arrow-expand:before,.ion-arrow-graph-down-left:before,.ion-arrow-graph-down-right:before,.ion-arrow-graph-up-left:before,.ion-arrow-graph-up-right:before,.ion-arrow-left-a:before,.ion-arrow-left-b:before,.ion-arrow-left-c:before,.ion-arrow-move:before,.ion-arrow-resize:before,.ion-arrow-return-left:before,.ion-arrow-return-right:before,.ion-arrow-right-a:before,.ion-arrow-right-b:before,.ion-arrow-right-c:before,.ion-arrow-shrink:before,.ion-arrow-swap:before,.ion-arrow-up-a:before,.ion-arrow-up-b:before,.ion-arrow-up-c:before,.ion-asterisk:before,.ion-at:before,.ion-backspace:before,.ion-backspace-outline:before,.ion-bag:before,.ion-battery-charging:before,.ion-battery-empty:before,.ion-battery-full:before,.ion-battery-half:before,.ion-battery-low:before,.ion-beaker:before,.ion-beer:before,.ion-bluetooth:before,.ion-bonfire:before,.ion-bookmark:before,.ion-bowtie:before,.ion-briefcase:before,.ion-bug:before,.ion-calculator:before,.ion-calendar:before,.ion-camera:before,.ion-card:before,.ion-cash:before,.ion-chatbox:before,.ion-chatbox-working:before,.ion-chatboxes:before,.ion-chatbubble:before,.ion-chatbubble-working:before,.ion-chatbubbles:before,.ion-checkmark:before,.ion-checkmark-circled:before,.ion-checkmark-round:before,.ion-chevron-down:before,.ion-chevron-left:before,.ion-chevron-right:before,.ion-chevron-up:before,.ion-clipboard:before,.ion-clock:before,.ion-close:before,.ion-close-circled:before,.ion-close-round:before,.ion-closed-captioning:before,.ion-cloud:before,.ion-code:before,.ion-code-download:before,.ion-code-working:before,.ion-coffee:before,.ion-compass:before,.ion-compose:before,.ion-connection-bars:before,.ion-contrast:before,.ion-crop:before,.ion-cube:before,.ion-disc:before,.ion-document:before,.ion-document-text:before,.ion-drag:before,.ion-earth:before,.ion-easel:before,.ion-edit:before,.ion-egg:before,.ion-eject:before,.ion-email:before,.ion-email-unread:before,.ion-erlenmeyer-flask:before,.ion-erlenmeyer-flask-bubbles:before,.ion-eye:before,.ion-eye-disabled:before,.ion-female:before,.ion-filing:before,.ion-film-marker:before,.ion-fireball:before,.ion-flag:before,.ion-flame:before,.ion-flash:before,.ion-flash-off:before,.ion-folder:before,.ion-fork:before,.ion-fork-repo:before,.ion-forward:before,.ion-funnel:before,.ion-gear-a:before,.ion-gear-b:before,.ion-grid:before,.ion-hammer:before,.ion-happy:before,.ion-happy-outline:before,.ion-headphone:before,.ion-heart:before,.ion-heart-broken:before,.ion-help:before,.ion-help-buoy:before,.ion-help-circled:before,.ion-home:before,.ion-icecream:before,.ion-image:before,.ion-images:before,.ion-information:before,.ion-information-circled:before,.ion-ionic:before,.ion-ios-alarm:before,.ion-ios-alarm-outline:before,.ion-ios-albums:before,.ion-ios-albums-outline:before,.ion-ios-americanfootball:before,.ion-ios-americanfootball-outline:before,.ion-ios-analytics:before,.ion-ios-analytics-outline:before,.ion-ios-arrow-back:before,.ion-ios-arrow-down:before,.ion-ios-arrow-forward:before,.ion-ios-arrow-left:before,.ion-ios-arrow-right:before,.ion-ios-arrow-thin-down:before,.ion-ios-arrow-thin-left:before,.ion-ios-arrow-thin-right:before,.ion-ios-arrow-thin-up:before,.ion-ios-arrow-up:before,.ion-ios-at:before,.ion-ios-at-outline:before,.ion-ios-barcode:before,.ion-ios-barcode-outline:before,.ion-ios-baseball:before,.ion-ios-baseball-outline:before,.ion-ios-basketball:before,.ion-ios-basketball-outline:before,.ion-ios-bell:before,.ion-ios-bell-outline:before,.ion-ios-body:before,.ion-ios-body-outline:before,.ion-ios-bolt:before,.ion-ios-bolt-outline:before,.ion-ios-book:before,.ion-ios-book-outline:before,.ion-ios-bookmarks:before,.ion-ios-bookmarks-outline:before,.ion-ios-box:before,.ion-ios-box-outline:before,.ion-ios-briefcase:before,.ion-ios-briefcase-outline:before,.ion-ios-browsers:before,.ion-ios-browsers-outline:before,.ion-ios-calculator:before,.ion-ios-calculator-outline:before,.ion-ios-calendar:before,.ion-ios-calendar-outline:before,.ion-ios-camera:before,.ion-ios-camera-outline:before,.ion-ios-cart:before,.ion-ios-cart-outline:before,.ion-ios-chatboxes:before,.ion-ios-chatboxes-outline:before,.ion-ios-chatbubble:before,.ion-ios-chatbubble-outline:before,.ion-ios-checkmark:before,.ion-ios-checkmark-empty:before,.ion-ios-checkmark-outline:before,.ion-ios-circle-filled:before,.ion-ios-circle-outline:before,.ion-ios-clock:before,.ion-ios-clock-outline:before,.ion-ios-close:before,.ion-ios-close-empty:before,.ion-ios-close-outline:before,.ion-ios-cloud:before,.ion-ios-cloud-download:before,.ion-ios-cloud-download-outline:before,.ion-ios-cloud-outline:before,.ion-ios-cloud-upload:before,.ion-ios-cloud-upload-outline:before,.ion-ios-cloudy:before,.ion-ios-cloudy-night:before,.ion-ios-cloudy-night-outline:before,.ion-ios-cloudy-outline:before,.ion-ios-cog:before,.ion-ios-cog-outline:before,.ion-ios-color-filter:before,.ion-ios-color-filter-outline:before,.ion-ios-color-wand:before,.ion-ios-color-wand-outline:before,.ion-ios-compose:before,.ion-ios-compose-outline:before,.ion-ios-contact:before,.ion-ios-contact-outline:before,.ion-ios-copy:before,.ion-ios-copy-outline:before,.ion-ios-crop:before,.ion-ios-crop-strong:before,.ion-ios-download:before,.ion-ios-download-outline:before,.ion-ios-drag:before,.ion-ios-email:before,.ion-ios-email-outline:before,.ion-ios-eye:before,.ion-ios-eye-outline:before,.ion-ios-fastforward:before,.ion-ios-fastforward-outline:before,.ion-ios-filing:before,.ion-ios-filing-outline:before,.ion-ios-film:before,.ion-ios-film-outline:before,.ion-ios-flag:before,.ion-ios-flag-outline:before,.ion-ios-flame:before,.ion-ios-flame-outline:before,.ion-ios-flask:before,.ion-ios-flask-outline:before,.ion-ios-flower:before,.ion-ios-flower-outline:before,.ion-ios-folder:before,.ion-ios-folder-outline:before,.ion-ios-football:before,.ion-ios-football-outline:before,.ion-ios-game-controller-a:before,.ion-ios-game-controller-a-outline:before,.ion-ios-game-controller-b:before,.ion-ios-game-controller-b-outline:before,.ion-ios-gear:before,.ion-ios-gear-outline:before,.ion-ios-glasses:before,.ion-ios-glasses-outline:before,.ion-ios-grid-view:before,.ion-ios-grid-view-outline:before,.ion-ios-heart:before,.ion-ios-heart-outline:before,.ion-ios-help:before,.ion-ios-help-empty:before,.ion-ios-help-outline:before,.ion-ios-home:before,.ion-ios-home-outline:before,.ion-ios-infinite:before,.ion-ios-infinite-outline:before,.ion-ios-information:before,.ion-ios-information-empty:before,.ion-ios-information-outline:before,.ion-ios-ionic-outline:before,.ion-ios-keypad:before,.ion-ios-keypad-outline:before,.ion-ios-lightbulb:before,.ion-ios-lightbulb-outline:before,.ion-ios-list:before,.ion-ios-list-outline:before,.ion-ios-location:before,.ion-ios-location-outline:before,.ion-ios-locked:before,.ion-ios-locked-outline:before,.ion-ios-loop:before,.ion-ios-loop-strong:before,.ion-ios-medical:before,.ion-ios-medical-outline:before,.ion-ios-medkit:before,.ion-ios-medkit-outline:before,.ion-ios-mic:before,.ion-ios-mic-off:before,.ion-ios-mic-outline:before,.ion-ios-minus:before,.ion-ios-minus-empty:before,.ion-ios-minus-outline:before,.ion-ios-monitor:before,.ion-ios-monitor-outline:before,.ion-ios-moon:before,.ion-ios-moon-outline:before,.ion-ios-more:before,.ion-ios-more-outline:before,.ion-ios-musical-note:before,.ion-ios-musical-notes:before,.ion-ios-navigate:before,.ion-ios-navigate-outline:before,.ion-ios-nutrition:before,.ion-ios-nutrition-outline:before,.ion-ios-paper:before,.ion-ios-paper-outline:before,.ion-ios-paperplane:before,.ion-ios-paperplane-outline:before,.ion-ios-partlysunny:before,.ion-ios-partlysunny-outline:before,.ion-ios-pause:before,.ion-ios-pause-outline:before,.ion-ios-paw:before,.ion-ios-paw-outline:before,.ion-ios-people:before,.ion-ios-people-outline:before,.ion-ios-person:before,.ion-ios-person-outline:before,.ion-ios-personadd:before,.ion-ios-personadd-outline:before,.ion-ios-photos:before,.ion-ios-photos-outline:before,.ion-ios-pie:before,.ion-ios-pie-outline:before,.ion-ios-pint:before,.ion-ios-pint-outline:before,.ion-ios-play:before,.ion-ios-play-outline:before,.ion-ios-plus:before,.ion-ios-plus-empty:before,.ion-ios-plus-outline:before,.ion-ios-pricetag:before,.ion-ios-pricetag-outline:before,.ion-ios-pricetags:before,.ion-ios-pricetags-outline:before,.ion-ios-printer:before,.ion-ios-printer-outline:before,.ion-ios-pulse:before,.ion-ios-pulse-strong:before,.ion-ios-rainy:before,.ion-ios-rainy-outline:before,.ion-ios-recording:before,.ion-ios-recording-outline:before,.ion-ios-redo:before,.ion-ios-redo-outline:before,.ion-ios-refresh:before,.ion-ios-refresh-empty:before,.ion-ios-refresh-outline:before,.ion-ios-reload:before,.ion-ios-reverse-camera:before,.ion-ios-reverse-camera-outline:before,.ion-ios-rewind:before,.ion-ios-rewind-outline:before,.ion-ios-rose:before,.ion-ios-rose-outline:before,.ion-ios-search:before,.ion-ios-search-strong:before,.ion-ios-settings:before,.ion-ios-settings-strong:before,.ion-ios-shuffle:before,.ion-ios-shuffle-strong:before,.ion-ios-skipbackward:before,.ion-ios-skipbackward-outline:before,.ion-ios-skipforward:before,.ion-ios-skipforward-outline:before,.ion-ios-snowy:before,.ion-ios-speedometer:before,.ion-ios-speedometer-outline:before,.ion-ios-star:before,.ion-ios-star-half:before,.ion-ios-star-outline:before,.ion-ios-stopwatch:before,.ion-ios-stopwatch-outline:before,.ion-ios-sunny:before,.ion-ios-sunny-outline:before,.ion-ios-telephone:before,.ion-ios-telephone-outline:before,.ion-ios-tennisball:before,.ion-ios-tennisball-outline:before,.ion-ios-thunderstorm:before,.ion-ios-thunderstorm-outline:before,.ion-ios-time:before,.ion-ios-time-outline:before,.ion-ios-timer:before,.ion-ios-timer-outline:before,.ion-ios-toggle:before,.ion-ios-toggle-outline:before,.ion-ios-trash:before,.ion-ios-trash-outline:before,.ion-ios-undo:before,.ion-ios-undo-outline:before,.ion-ios-unlocked:before,.ion-ios-unlocked-outline:before,.ion-ios-upload:before,.ion-ios-upload-outline:before,.ion-ios-videocam:before,.ion-ios-videocam-outline:before,.ion-ios-volume-high:before,.ion-ios-volume-low:before,.ion-ios-wineglass:before,.ion-ios-wineglass-outline:before,.ion-ios-world:before,.ion-ios-world-outline:before,.ion-ipad:before,.ion-iphone:before,.ion-ipod:before,.ion-jet:before,.ion-key:before,.ion-knife:before,.ion-laptop:before,.ion-leaf:before,.ion-levels:before,.ion-lightbulb:before,.ion-link:before,.ion-load-a:before,.ion-load-b:before,.ion-load-c:before,.ion-load-d:before,.ion-location:before,.ion-lock-combination:before,.ion-locked:before,.ion-log-in:before,.ion-log-out:before,.ion-loop:before,.ion-magnet:before,.ion-male:before,.ion-man:before,.ion-map:before,.ion-medkit:before,.ion-merge:before,.ion-mic-a:before,.ion-mic-b:before,.ion-mic-c:before,.ion-minus:before,.ion-minus-circled:before,.ion-minus-round:before,.ion-model-s:before,.ion-monitor:before,.ion-more:before,.ion-mouse:before,.ion-music-note:before,.ion-navicon:before,.ion-navicon-round:before,.ion-navigate:before,.ion-network:before,.ion-no-smoking:before,.ion-nuclear:before,.ion-outlet:before,.ion-paintbrush:before,.ion-paintbucket:before,.ion-paper-airplane:before,.ion-paperclip:before,.ion-pause:before,.ion-person:before,.ion-person-add:before,.ion-person-stalker:before,.ion-pie-graph:before,.ion-pin:before,.ion-pinpoint:before,.ion-pizza:before,.ion-plane:before,.ion-planet:before,.ion-play:before,.ion-playstation:before,.ion-plus:before,.ion-plus-circled:before,.ion-plus-round:before,.ion-podium:before,.ion-pound:before,.ion-power:before,.ion-pricetag:before,.ion-pricetags:before,.ion-printer:before,.ion-pull-request:before,.ion-qr-scanner:before,.ion-quote:before,.ion-radio-waves:before,.ion-record:before,.ion-refresh:before,.ion-reply:before,.ion-reply-all:before,.ion-ribbon-a:before,.ion-ribbon-b:before,.ion-sad:before,.ion-sad-outline:before,.ion-scissors:before,.ion-search:before,.ion-settings:before,.ion-share:before,.ion-shuffle:before,.ion-skip-backward:before,.ion-skip-forward:before,.ion-social-android:before,.ion-social-android-outline:before,.ion-social-angular:before,.ion-social-angular-outline:before,.ion-social-apple:before,.ion-social-apple-outline:before,.ion-social-bitcoin:before,.ion-social-bitcoin-outline:before,.ion-social-buffer:before,.ion-social-buffer-outline:before,.ion-social-chrome:before,.ion-social-chrome-outline:before,.ion-social-codepen:before,.ion-social-codepen-outline:before,.ion-social-css3:before,.ion-social-css3-outline:before,.ion-social-designernews:before,.ion-social-designernews-outline:before,.ion-social-dribbble:before,.ion-social-dribbble-outline:before,.ion-social-dropbox:before,.ion-social-dropbox-outline:before,.ion-social-euro:before,.ion-social-euro-outline:before,.ion-social-facebook:before,.ion-social-facebook-outline:before,.ion-social-foursquare:before,.ion-social-foursquare-outline:before,.ion-social-freebsd-devil:before,.ion-social-github:before,.ion-social-github-outline:before,.ion-social-google:before,.ion-social-google-outline:before,.ion-social-googleplus:before,.ion-social-googleplus-outline:before,.ion-social-hackernews:before,.ion-social-hackernews-outline:before,.ion-social-html5:before,.ion-social-html5-outline:before,.ion-social-instagram:before,.ion-social-instagram-outline:before,.ion-social-javascript:before,.ion-social-javascript-outline:before,.ion-social-linkedin:before,.ion-social-linkedin-outline:before,.ion-social-markdown:before,.ion-social-nodejs:before,.ion-social-octocat:before,.ion-social-pinterest:before,.ion-social-pinterest-outline:before,.ion-social-python:before,.ion-social-reddit:before,.ion-social-reddit-outline:before,.ion-social-rss:before,.ion-social-rss-outline:before,.ion-social-sass:before,.ion-social-skype:before,.ion-social-skype-outline:before,.ion-social-snapchat:before,.ion-social-snapchat-outline:before,.ion-social-tumblr:before,.ion-social-tumblr-outline:before,.ion-social-tux:before,.ion-social-twitch:before,.ion-social-twitch-outline:before,.ion-social-twitter:before,.ion-social-twitter-outline:before,.ion-social-usd:before,.ion-social-usd-outline:before,.ion-social-vimeo:before,.ion-social-vimeo-outline:before,.ion-social-whatsapp:before,.ion-social-whatsapp-outline:before,.ion-social-windows:before,.ion-social-windows-outline:before,.ion-social-wordpress:before,.ion-social-wordpress-outline:before,.ion-social-yahoo:before,.ion-social-yahoo-outline:before,.ion-social-yen:before,.ion-social-yen-outline:before,.ion-social-youtube:before,.ion-social-youtube-outline:before,.ion-soup-can:before,.ion-soup-can-outline:before,.ion-speakerphone:before,.ion-speedometer:before,.ion-spoon:before,.ion-star:before,.ion-stats-bars:before,.ion-steam:before,.ion-stop:before,.ion-thermometer:before,.ion-thumbsdown:before,.ion-thumbsup:before,.ion-toggle:before,.ion-toggle-filled:before,.ion-transgender:before,.ion-trash-a:before,.ion-trash-b:before,.ion-trophy:before,.ion-tshirt:before,.ion-tshirt-outline:before,.ion-umbrella:before,.ion-university:before,.ion-unlocked:before,.ion-upload:before,.ion-usb:before,.ion-videocamera:before,.ion-volume-high:before,.ion-volume-low:before,.ion-volume-medium:before,.ion-volume-mute:before,.ion-wand:before,.ion-waterdrop:before,.ion-wifi:before,.ion-wineglass:before,.ion-woman:before,.ion-wrench:before,.ion-xbox:before{display:inline-block;font-family:"Ionicons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ion-alert:before{content:"\f101"}.ion-alert-circled:before{content:"\f100"}.ion-android-add:before{content:"\f2c7"}.ion-android-add-circle:before{content:"\f359"}.ion-android-alarm-clock:before{content:"\f35a"}.ion-android-alert:before{content:"\f35b"}.ion-android-apps:before{content:"\f35c"}.ion-android-archive:before{content:"\f2c9"}.ion-android-arrow-back:before{content:"\f2ca"}.ion-android-arrow-down:before{content:"\f35d"}.ion-android-arrow-dropdown:before{content:"\f35f"}.ion-android-arrow-dropdown-circle:before{content:"\f35e"}.ion-android-arrow-dropleft:before{content:"\f361"}.ion-android-arrow-dropleft-circle:before{content:"\f360"}.ion-android-arrow-dropright:before{content:"\f363"}.ion-android-arrow-dropright-circle:before{content:"\f362"}.ion-android-arrow-dropup:before{content:"\f365"}.ion-android-arrow-dropup-circle:before{content:"\f364"}.ion-android-arrow-forward:before{content:"\f30f"}.ion-android-arrow-up:before{content:"\f366"}.ion-android-attach:before{content:"\f367"}.ion-android-bar:before{content:"\f368"}.ion-android-bicycle:before{content:"\f369"}.ion-android-boat:before{content:"\f36a"}.ion-android-bookmark:before{content:"\f36b"}.ion-android-bulb:before{content:"\f36c"}.ion-android-bus:before{content:"\f36d"}.ion-android-calendar:before{content:"\f2d1"}.ion-android-call:before{content:"\f2d2"}.ion-android-camera:before{content:"\f2d3"}.ion-android-cancel:before{content:"\f36e"}.ion-android-car:before{content:"\f36f"}.ion-android-cart:before{content:"\f370"}.ion-android-chat:before{content:"\f2d4"}.ion-android-checkbox:before{content:"\f374"}.ion-android-checkbox-blank:before{content:"\f371"}.ion-android-checkbox-outline:before{content:"\f373"}.ion-android-checkbox-outline-blank:before{content:"\f372"}.ion-android-checkmark-circle:before{content:"\f375"}.ion-android-clipboard:before{content:"\f376"}.ion-android-close:before{content:"\f2d7"}.ion-android-cloud:before{content:"\f37a"}.ion-android-cloud-circle:before{content:"\f377"}.ion-android-cloud-done:before{content:"\f378"}.ion-android-cloud-outline:before{content:"\f379"}.ion-android-color-palette:before{content:"\f37b"}.ion-android-compass:before{content:"\f37c"}.ion-android-contact:before{content:"\f2d8"}.ion-android-contacts:before{content:"\f2d9"}.ion-android-contract:before{content:"\f37d"}.ion-android-create:before{content:"\f37e"}.ion-android-delete:before{content:"\f37f"}.ion-android-desktop:before{content:"\f380"}.ion-android-document:before{content:"\f381"}.ion-android-done:before{content:"\f383"}.ion-android-done-all:before{content:"\f382"}.ion-android-download:before{content:"\f2dd"}.ion-android-drafts:before{content:"\f384"}.ion-android-exit:before{content:"\f385"}.ion-android-expand:before{content:"\f386"}.ion-android-favorite:before{content:"\f388"}.ion-android-favorite-outline:before{content:"\f387"}.ion-android-film:before{content:"\f389"}.ion-android-folder:before{content:"\f2e0"}.ion-android-folder-open:before{content:"\f38a"}.ion-android-funnel:before{content:"\f38b"}.ion-android-globe:before{content:"\f38c"}.ion-android-hand:before{content:"\f2e3"}.ion-android-hangout:before{content:"\f38d"}.ion-android-happy:before{content:"\f38e"}.ion-android-home:before{content:"\f38f"}.ion-android-image:before{content:"\f2e4"}.ion-android-laptop:before{content:"\f390"}.ion-android-list:before{content:"\f391"}.ion-android-locate:before{content:"\f2e9"}.ion-android-lock:before{content:"\f392"}.ion-android-mail:before{content:"\f2eb"}.ion-android-map:before{content:"\f393"}.ion-android-menu:before{content:"\f394"}.ion-android-microphone:before{content:"\f2ec"}.ion-android-microphone-off:before{content:"\f395"}.ion-android-more-horizontal:before{content:"\f396"}.ion-android-more-vertical:before{content:"\f397"}.ion-android-navigate:before{content:"\f398"}.ion-android-notifications:before{content:"\f39b"}.ion-android-notifications-none:before{content:"\f399"}.ion-android-notifications-off:before{content:"\f39a"}.ion-android-open:before{content:"\f39c"}.ion-android-options:before{content:"\f39d"}.ion-android-people:before{content:"\f39e"}.ion-android-person:before{content:"\f3a0"}.ion-android-person-add:before{content:"\f39f"}.ion-android-phone-landscape:before{content:"\f3a1"}.ion-android-phone-portrait:before{content:"\f3a2"}.ion-android-pin:before{content:"\f3a3"}.ion-android-plane:before{content:"\f3a4"}.ion-android-playstore:before{content:"\f2f0"}.ion-android-print:before{content:"\f3a5"}.ion-android-radio-button-off:before{content:"\f3a6"}.ion-android-radio-button-on:before{content:"\f3a7"}.ion-android-refresh:before{content:"\f3a8"}.ion-android-remove:before{content:"\f2f4"}.ion-android-remove-circle:before{content:"\f3a9"}.ion-android-restaurant:before{content:"\f3aa"}.ion-android-sad:before{content:"\f3ab"}.ion-android-search:before{content:"\f2f5"}.ion-android-send:before{content:"\f2f6"}.ion-android-settings:before{content:"\f2f7"}.ion-android-share:before{content:"\f2f8"}.ion-android-share-alt:before{content:"\f3ac"}.ion-android-star:before{content:"\f2fc"}.ion-android-star-half:before{content:"\f3ad"}.ion-android-star-outline:before{content:"\f3ae"}.ion-android-stopwatch:before{content:"\f2fd"}.ion-android-subway:before{content:"\f3af"}.ion-android-sunny:before{content:"\f3b0"}.ion-android-sync:before{content:"\f3b1"}.ion-android-textsms:before{content:"\f3b2"}.ion-android-time:before{content:"\f3b3"}.ion-android-train:before{content:"\f3b4"}.ion-android-unlock:before{content:"\f3b5"}.ion-android-upload:before{content:"\f3b6"}.ion-android-volume-down:before{content:"\f3b7"}.ion-android-volume-mute:before{content:"\f3b8"}.ion-android-volume-off:before{content:"\f3b9"}.ion-android-volume-up:before{content:"\f3ba"}.ion-android-walk:before{content:"\f3bb"}.ion-android-warning:before{content:"\f3bc"}.ion-android-watch:before{content:"\f3bd"}.ion-android-wifi:before{content:"\f305"}.ion-aperture:before{content:"\f313"}.ion-archive:before{content:"\f102"}.ion-arrow-down-a:before{content:"\f103"}.ion-arrow-down-b:before{content:"\f104"}.ion-arrow-down-c:before{content:"\f105"}.ion-arrow-expand:before{content:"\f25e"}.ion-arrow-graph-down-left:before{content:"\f25f"}.ion-arrow-graph-down-right:before{content:"\f260"}.ion-arrow-graph-up-left:before{content:"\f261"}.ion-arrow-graph-up-right:before{content:"\f262"}.ion-arrow-left-a:before{content:"\f106"}.ion-arrow-left-b:before{content:"\f107"}.ion-arrow-left-c:before{content:"\f108"}.ion-arrow-move:before{content:"\f263"}.ion-arrow-resize:before{content:"\f264"}.ion-arrow-return-left:before{content:"\f265"}.ion-arrow-return-right:before{content:"\f266"}.ion-arrow-right-a:before{content:"\f109"}.ion-arrow-right-b:before{content:"\f10a"}.ion-arrow-right-c:before{content:"\f10b"}.ion-arrow-shrink:before{content:"\f267"}.ion-arrow-swap:before{content:"\f268"}.ion-arrow-up-a:before{content:"\f10c"}.ion-arrow-up-b:before{content:"\f10d"}.ion-arrow-up-c:before{content:"\f10e"}.ion-asterisk:before{content:"\f314"}.ion-at:before{content:"\f10f"}.ion-backspace:before{content:"\f3bf"}.ion-backspace-outline:before{content:"\f3be"}.ion-bag:before{content:"\f110"}.ion-battery-charging:before{content:"\f111"}.ion-battery-empty:before{content:"\f112"}.ion-battery-full:before{content:"\f113"}.ion-battery-half:before{content:"\f114"}.ion-battery-low:before{content:"\f115"}.ion-beaker:before{content:"\f269"}.ion-beer:before{content:"\f26a"}.ion-bluetooth:before{content:"\f116"}.ion-bonfire:before{content:"\f315"}.ion-bookmark:before{content:"\f26b"}.ion-bowtie:before{content:"\f3c0"}.ion-briefcase:before{content:"\f26c"}.ion-bug:before{content:"\f2be"}.ion-calculator:before{content:"\f26d"}.ion-calendar:before{content:"\f117"}.ion-camera:before{content:"\f118"}.ion-card:before{content:"\f119"}.ion-cash:before{content:"\f316"}.ion-chatbox:before{content:"\f11b"}.ion-chatbox-working:before{content:"\f11a"}.ion-chatboxes:before{content:"\f11c"}.ion-chatbubble:before{content:"\f11e"}.ion-chatbubble-working:before{content:"\f11d"}.ion-chatbubbles:before{content:"\f11f"}.ion-checkmark:before{content:"\f122"}.ion-checkmark-circled:before{content:"\f120"}.ion-checkmark-round:before{content:"\f121"}.ion-chevron-down:before{content:"\f123"}.ion-chevron-left:before{content:"\f124"}.ion-chevron-right:before{content:"\f125"}.ion-chevron-up:before{content:"\f126"}.ion-clipboard:before{content:"\f127"}.ion-clock:before{content:"\f26e"}.ion-close:before{content:"\f12a"}.ion-close-circled:before{content:"\f128"}.ion-close-round:before{content:"\f129"}.ion-closed-captioning:before{content:"\f317"}.ion-cloud:before{content:"\f12b"}.ion-code:before{content:"\f271"}.ion-code-download:before{content:"\f26f"}.ion-code-working:before{content:"\f270"}.ion-coffee:before{content:"\f272"}.ion-compass:before{content:"\f273"}.ion-compose:before{content:"\f12c"}.ion-connection-bars:before{content:"\f274"}.ion-contrast:before{content:"\f275"}.ion-crop:before{content:"\f3c1"}.ion-cube:before{content:"\f318"}.ion-disc:before{content:"\f12d"}.ion-document:before{content:"\f12f"}.ion-document-text:before{content:"\f12e"}.ion-drag:before{content:"\f130"}.ion-earth:before{content:"\f276"}.ion-easel:before{content:"\f3c2"}.ion-edit:before{content:"\f2bf"}.ion-egg:before{content:"\f277"}.ion-eject:before{content:"\f131"}.ion-email:before{content:"\f132"}.ion-email-unread:before{content:"\f3c3"}.ion-erlenmeyer-flask:before{content:"\f3c5"}.ion-erlenmeyer-flask-bubbles:before{content:"\f3c4"}.ion-eye:before{content:"\f133"}.ion-eye-disabled:before{content:"\f306"}.ion-female:before{content:"\f278"}.ion-filing:before{content:"\f134"}.ion-film-marker:before{content:"\f135"}.ion-fireball:before{content:"\f319"}.ion-flag:before{content:"\f279"}.ion-flame:before{content:"\f31a"}.ion-flash:before{content:"\f137"}.ion-flash-off:before{content:"\f136"}.ion-folder:before{content:"\f139"}.ion-fork:before{content:"\f27a"}.ion-fork-repo:before{content:"\f2c0"}.ion-forward:before{content:"\f13a"}.ion-funnel:before{content:"\f31b"}.ion-gear-a:before{content:"\f13d"}.ion-gear-b:before{content:"\f13e"}.ion-grid:before{content:"\f13f"}.ion-hammer:before{content:"\f27b"}.ion-happy:before{content:"\f31c"}.ion-happy-outline:before{content:"\f3c6"}.ion-headphone:before{content:"\f140"}.ion-heart:before{content:"\f141"}.ion-heart-broken:before{content:"\f31d"}.ion-help:before{content:"\f143"}.ion-help-buoy:before{content:"\f27c"}.ion-help-circled:before{content:"\f142"}.ion-home:before{content:"\f144"}.ion-icecream:before{content:"\f27d"}.ion-image:before{content:"\f147"}.ion-images:before{content:"\f148"}.ion-information:before{content:"\f14a"}.ion-information-circled:before{content:"\f149"}.ion-ionic:before{content:"\f14b"}.ion-ios-alarm:before{content:"\f3c8"}.ion-ios-alarm-outline:before{content:"\f3c7"}.ion-ios-albums:before{content:"\f3ca"}.ion-ios-albums-outline:before{content:"\f3c9"}.ion-ios-americanfootball:before{content:"\f3cc"}.ion-ios-americanfootball-outline:before{content:"\f3cb"}.ion-ios-analytics:before{content:"\f3ce"}.ion-ios-analytics-outline:before{content:"\f3cd"}.ion-ios-arrow-back:before{content:"\f3cf"}.ion-ios-arrow-down:before{content:"\f3d0"}.ion-ios-arrow-forward:before{content:"\f3d1"}.ion-ios-arrow-left:before{content:"\f3d2"}.ion-ios-arrow-right:before{content:"\f3d3"}.ion-ios-arrow-thin-down:before{content:"\f3d4"}.ion-ios-arrow-thin-left:before{content:"\f3d5"}.ion-ios-arrow-thin-right:before{content:"\f3d6"}.ion-ios-arrow-thin-up:before{content:"\f3d7"}.ion-ios-arrow-up:before{content:"\f3d8"}.ion-ios-at:before{content:"\f3da"}.ion-ios-at-outline:before{content:"\f3d9"}.ion-ios-barcode:before{content:"\f3dc"}.ion-ios-barcode-outline:before{content:"\f3db"}.ion-ios-baseball:before{content:"\f3de"}.ion-ios-baseball-outline:before{content:"\f3dd"}.ion-ios-basketball:before{content:"\f3e0"}.ion-ios-basketball-outline:before{content:"\f3df"}.ion-ios-bell:before{content:"\f3e2"}.ion-ios-bell-outline:before{content:"\f3e1"}.ion-ios-body:before{content:"\f3e4"}.ion-ios-body-outline:before{content:"\f3e3"}.ion-ios-bolt:before{content:"\f3e6"}.ion-ios-bolt-outline:before{content:"\f3e5"}.ion-ios-book:before{content:"\f3e8"}.ion-ios-book-outline:before{content:"\f3e7"}.ion-ios-bookmarks:before{content:"\f3ea"}.ion-ios-bookmarks-outline:before{content:"\f3e9"}.ion-ios-box:before{content:"\f3ec"}.ion-ios-box-outline:before{content:"\f3eb"}.ion-ios-briefcase:before{content:"\f3ee"}.ion-ios-briefcase-outline:before{content:"\f3ed"}.ion-ios-browsers:before{content:"\f3f0"}.ion-ios-browsers-outline:before{content:"\f3ef"}.ion-ios-calculator:before{content:"\f3f2"}.ion-ios-calculator-outline:before{content:"\f3f1"}.ion-ios-calendar:before{content:"\f3f4"}.ion-ios-calendar-outline:before{content:"\f3f3"}.ion-ios-camera:before{content:"\f3f6"}.ion-ios-camera-outline:before{content:"\f3f5"}.ion-ios-cart:before{content:"\f3f8"}.ion-ios-cart-outline:before{content:"\f3f7"}.ion-ios-chatboxes:before{content:"\f3fa"}.ion-ios-chatboxes-outline:before{content:"\f3f9"}.ion-ios-chatbubble:before{content:"\f3fc"}.ion-ios-chatbubble-outline:before{content:"\f3fb"}.ion-ios-checkmark:before{content:"\f3ff"}.ion-ios-checkmark-empty:before{content:"\f3fd"}.ion-ios-checkmark-outline:before{content:"\f3fe"}.ion-ios-circle-filled:before{content:"\f400"}.ion-ios-circle-outline:before{content:"\f401"}.ion-ios-clock:before{content:"\f403"}.ion-ios-clock-outline:before{content:"\f402"}.ion-ios-close:before{content:"\f406"}.ion-ios-close-empty:before{content:"\f404"}.ion-ios-close-outline:before{content:"\f405"}.ion-ios-cloud:before{content:"\f40c"}.ion-ios-cloud-download:before{content:"\f408"}.ion-ios-cloud-download-outline:before{content:"\f407"}.ion-ios-cloud-outline:before{content:"\f409"}.ion-ios-cloud-upload:before{content:"\f40b"}.ion-ios-cloud-upload-outline:before{content:"\f40a"}.ion-ios-cloudy:before{content:"\f410"}.ion-ios-cloudy-night:before{content:"\f40e"}.ion-ios-cloudy-night-outline:before{content:"\f40d"}.ion-ios-cloudy-outline:before{content:"\f40f"}.ion-ios-cog:before{content:"\f412"}.ion-ios-cog-outline:before{content:"\f411"}.ion-ios-color-filter:before{content:"\f414"}.ion-ios-color-filter-outline:before{content:"\f413"}.ion-ios-color-wand:before{content:"\f416"}.ion-ios-color-wand-outline:before{content:"\f415"}.ion-ios-compose:before{content:"\f418"}.ion-ios-compose-outline:before{content:"\f417"}.ion-ios-contact:before{content:"\f41a"}.ion-ios-contact-outline:before{content:"\f419"}.ion-ios-copy:before{content:"\f41c"}.ion-ios-copy-outline:before{content:"\f41b"}.ion-ios-crop:before{content:"\f41e"}.ion-ios-crop-strong:before{content:"\f41d"}.ion-ios-download:before{content:"\f420"}.ion-ios-download-outline:before{content:"\f41f"}.ion-ios-drag:before{content:"\f421"}.ion-ios-email:before{content:"\f423"}.ion-ios-email-outline:before{content:"\f422"}.ion-ios-eye:before{content:"\f425"}.ion-ios-eye-outline:before{content:"\f424"}.ion-ios-fastforward:before{content:"\f427"}.ion-ios-fastforward-outline:before{content:"\f426"}.ion-ios-filing:before{content:"\f429"}.ion-ios-filing-outline:before{content:"\f428"}.ion-ios-film:before{content:"\f42b"}.ion-ios-film-outline:before{content:"\f42a"}.ion-ios-flag:before{content:"\f42d"}.ion-ios-flag-outline:before{content:"\f42c"}.ion-ios-flame:before{content:"\f42f"}.ion-ios-flame-outline:before{content:"\f42e"}.ion-ios-flask:before{content:"\f431"}.ion-ios-flask-outline:before{content:"\f430"}.ion-ios-flower:before{content:"\f433"}.ion-ios-flower-outline:before{content:"\f432"}.ion-ios-folder:before{content:"\f435"}.ion-ios-folder-outline:before{content:"\f434"}.ion-ios-football:before{content:"\f437"}.ion-ios-football-outline:before{content:"\f436"}.ion-ios-game-controller-a:before{content:"\f439"}.ion-ios-game-controller-a-outline:before{content:"\f438"}.ion-ios-game-controller-b:before{content:"\f43b"}.ion-ios-game-controller-b-outline:before{content:"\f43a"}.ion-ios-gear:before{content:"\f43d"}.ion-ios-gear-outline:before{content:"\f43c"}.ion-ios-glasses:before{content:"\f43f"}.ion-ios-glasses-outline:before{content:"\f43e"}.ion-ios-grid-view:before{content:"\f441"}.ion-ios-grid-view-outline:before{content:"\f440"}.ion-ios-heart:before{content:"\f443"}.ion-ios-heart-outline:before{content:"\f442"}.ion-ios-help:before{content:"\f446"}.ion-ios-help-empty:before{content:"\f444"}.ion-ios-help-outline:before{content:"\f445"}.ion-ios-home:before{content:"\f448"}.ion-ios-home-outline:before{content:"\f447"}.ion-ios-infinite:before{content:"\f44a"}.ion-ios-infinite-outline:before{content:"\f449"}.ion-ios-information:before{content:"\f44d"}.ion-ios-information-empty:before{content:"\f44b"}.ion-ios-information-outline:before{content:"\f44c"}.ion-ios-ionic-outline:before{content:"\f44e"}.ion-ios-keypad:before{content:"\f450"}.ion-ios-keypad-outline:before{content:"\f44f"}.ion-ios-lightbulb:before{content:"\f452"}.ion-ios-lightbulb-outline:before{content:"\f451"}.ion-ios-list:before{content:"\f454"}.ion-ios-list-outline:before{content:"\f453"}.ion-ios-location:before{content:"\f456"}.ion-ios-location-outline:before{content:"\f455"}.ion-ios-locked:before{content:"\f458"}.ion-ios-locked-outline:before{content:"\f457"}.ion-ios-loop:before{content:"\f45a"}.ion-ios-loop-strong:before{content:"\f459"}.ion-ios-medical:before{content:"\f45c"}.ion-ios-medical-outline:before{content:"\f45b"}.ion-ios-medkit:before{content:"\f45e"}.ion-ios-medkit-outline:before{content:"\f45d"}.ion-ios-mic:before{content:"\f461"}.ion-ios-mic-off:before{content:"\f45f"}.ion-ios-mic-outline:before{content:"\f460"}.ion-ios-minus:before{content:"\f464"}.ion-ios-minus-empty:before{content:"\f462"}.ion-ios-minus-outline:before{content:"\f463"}.ion-ios-monitor:before{content:"\f466"}.ion-ios-monitor-outline:before{content:"\f465"}.ion-ios-moon:before{content:"\f468"}.ion-ios-moon-outline:before{content:"\f467"}.ion-ios-more:before{content:"\f46a"}.ion-ios-more-outline:before{content:"\f469"}.ion-ios-musical-note:before{content:"\f46b"}.ion-ios-musical-notes:before{content:"\f46c"}.ion-ios-navigate:before{content:"\f46e"}.ion-ios-navigate-outline:before{content:"\f46d"}.ion-ios-nutrition:before{content:"\f470"}.ion-ios-nutrition-outline:before{content:"\f46f"}.ion-ios-paper:before{content:"\f472"}.ion-ios-paper-outline:before{content:"\f471"}.ion-ios-paperplane:before{content:"\f474"}.ion-ios-paperplane-outline:before{content:"\f473"}.ion-ios-partlysunny:before{content:"\f476"}.ion-ios-partlysunny-outline:before{content:"\f475"}.ion-ios-pause:before{content:"\f478"}.ion-ios-pause-outline:before{content:"\f477"}.ion-ios-paw:before{content:"\f47a"}.ion-ios-paw-outline:before{content:"\f479"}.ion-ios-people:before{content:"\f47c"}.ion-ios-people-outline:before{content:"\f47b"}.ion-ios-person:before{content:"\f47e"}.ion-ios-person-outline:before{content:"\f47d"}.ion-ios-personadd:before{content:"\f480"}.ion-ios-personadd-outline:before{content:"\f47f"}.ion-ios-photos:before{content:"\f482"}.ion-ios-photos-outline:before{content:"\f481"}.ion-ios-pie:before{content:"\f484"}.ion-ios-pie-outline:before{content:"\f483"}.ion-ios-pint:before{content:"\f486"}.ion-ios-pint-outline:before{content:"\f485"}.ion-ios-play:before{content:"\f488"}.ion-ios-play-outline:before{content:"\f487"}.ion-ios-plus:before{content:"\f48b"}.ion-ios-plus-empty:before{content:"\f489"}.ion-ios-plus-outline:before{content:"\f48a"}.ion-ios-pricetag:before{content:"\f48d"}.ion-ios-pricetag-outline:before{content:"\f48c"}.ion-ios-pricetags:before{content:"\f48f"}.ion-ios-pricetags-outline:before{content:"\f48e"}.ion-ios-printer:before{content:"\f491"}.ion-ios-printer-outline:before{content:"\f490"}.ion-ios-pulse:before{content:"\f493"}.ion-ios-pulse-strong:before{content:"\f492"}.ion-ios-rainy:before{content:"\f495"}.ion-ios-rainy-outline:before{content:"\f494"}.ion-ios-recording:before{content:"\f497"}.ion-ios-recording-outline:before{content:"\f496"}.ion-ios-redo:before{content:"\f499"}.ion-ios-redo-outline:before{content:"\f498"}.ion-ios-refresh:before{content:"\f49c"}.ion-ios-refresh-empty:before{content:"\f49a"}.ion-ios-refresh-outline:before{content:"\f49b"}.ion-ios-reload:before{content:"\f49d"}.ion-ios-reverse-camera:before{content:"\f49f"}.ion-ios-reverse-camera-outline:before{content:"\f49e"}.ion-ios-rewind:before{content:"\f4a1"}.ion-ios-rewind-outline:before{content:"\f4a0"}.ion-ios-rose:before{content:"\f4a3"}.ion-ios-rose-outline:before{content:"\f4a2"}.ion-ios-search:before{content:"\f4a5"}.ion-ios-search-strong:before{content:"\f4a4"}.ion-ios-settings:before{content:"\f4a7"}.ion-ios-settings-strong:before{content:"\f4a6"}.ion-ios-shuffle:before{content:"\f4a9"}.ion-ios-shuffle-strong:before{content:"\f4a8"}.ion-ios-skipbackward:before{content:"\f4ab"}.ion-ios-skipbackward-outline:before{content:"\f4aa"}.ion-ios-skipforward:before{content:"\f4ad"}.ion-ios-skipforward-outline:before{content:"\f4ac"}.ion-ios-snowy:before{content:"\f4ae"}.ion-ios-speedometer:before{content:"\f4b0"}.ion-ios-speedometer-outline:before{content:"\f4af"}.ion-ios-star:before{content:"\f4b3"}.ion-ios-star-half:before{content:"\f4b1"}.ion-ios-star-outline:before{content:"\f4b2"}.ion-ios-stopwatch:before{content:"\f4b5"}.ion-ios-stopwatch-outline:before{content:"\f4b4"}.ion-ios-sunny:before{content:"\f4b7"}.ion-ios-sunny-outline:before{content:"\f4b6"}.ion-ios-telephone:before{content:"\f4b9"}.ion-ios-telephone-outline:before{content:"\f4b8"}.ion-ios-tennisball:before{content:"\f4bb"}.ion-ios-tennisball-outline:before{content:"\f4ba"}.ion-ios-thunderstorm:before{content:"\f4bd"}.ion-ios-thunderstorm-outline:before{content:"\f4bc"}.ion-ios-time:before{content:"\f4bf"}.ion-ios-time-outline:before{content:"\f4be"}.ion-ios-timer:before{content:"\f4c1"}.ion-ios-timer-outline:before{content:"\f4c0"}.ion-ios-toggle:before{content:"\f4c3"}.ion-ios-toggle-outline:before{content:"\f4c2"}.ion-ios-trash:before{content:"\f4c5"}.ion-ios-trash-outline:before{content:"\f4c4"}.ion-ios-undo:before{content:"\f4c7"}.ion-ios-undo-outline:before{content:"\f4c6"}.ion-ios-unlocked:before{content:"\f4c9"}.ion-ios-unlocked-outline:before{content:"\f4c8"}.ion-ios-upload:before{content:"\f4cb"}.ion-ios-upload-outline:before{content:"\f4ca"}.ion-ios-videocam:before{content:"\f4cd"}.ion-ios-videocam-outline:before{content:"\f4cc"}.ion-ios-volume-high:before{content:"\f4ce"}.ion-ios-volume-low:before{content:"\f4cf"}.ion-ios-wineglass:before{content:"\f4d1"}.ion-ios-wineglass-outline:before{content:"\f4d0"}.ion-ios-world:before{content:"\f4d3"}.ion-ios-world-outline:before{content:"\f4d2"}.ion-ipad:before{content:"\f1f9"}.ion-iphone:before{content:"\f1fa"}.ion-ipod:before{content:"\f1fb"}.ion-jet:before{content:"\f295"}.ion-key:before{content:"\f296"}.ion-knife:before{content:"\f297"}.ion-laptop:before{content:"\f1fc"}.ion-leaf:before{content:"\f1fd"}.ion-levels:before{content:"\f298"}.ion-lightbulb:before{content:"\f299"}.ion-link:before{content:"\f1fe"}.ion-load-a:before{content:"\f29a"}.ion-load-b:before{content:"\f29b"}.ion-load-c:before{content:"\f29c"}.ion-load-d:before{content:"\f29d"}.ion-location:before{content:"\f1ff"}.ion-lock-combination:before{content:"\f4d4"}.ion-locked:before{content:"\f200"}.ion-log-in:before{content:"\f29e"}.ion-log-out:before{content:"\f29f"}.ion-loop:before{content:"\f201"}.ion-magnet:before{content:"\f2a0"}.ion-male:before{content:"\f2a1"}.ion-man:before{content:"\f202"}.ion-map:before{content:"\f203"}.ion-medkit:before{content:"\f2a2"}.ion-merge:before{content:"\f33f"}.ion-mic-a:before{content:"\f204"}.ion-mic-b:before{content:"\f205"}.ion-mic-c:before{content:"\f206"}.ion-minus:before{content:"\f209"}.ion-minus-circled:before{content:"\f207"}.ion-minus-round:before{content:"\f208"}.ion-model-s:before{content:"\f2c1"}.ion-monitor:before{content:"\f20a"}.ion-more:before{content:"\f20b"}.ion-mouse:before{content:"\f340"}.ion-music-note:before{content:"\f20c"}.ion-navicon:before{content:"\f20e"}.ion-navicon-round:before{content:"\f20d"}.ion-navigate:before{content:"\f2a3"}.ion-network:before{content:"\f341"}.ion-no-smoking:before{content:"\f2c2"}.ion-nuclear:before{content:"\f2a4"}.ion-outlet:before{content:"\f342"}.ion-paintbrush:before{content:"\f4d5"}.ion-paintbucket:before{content:"\f4d6"}.ion-paper-airplane:before{content:"\f2c3"}.ion-paperclip:before{content:"\f20f"}.ion-pause:before{content:"\f210"}.ion-person:before{content:"\f213"}.ion-person-add:before{content:"\f211"}.ion-person-stalker:before{content:"\f212"}.ion-pie-graph:before{content:"\f2a5"}.ion-pin:before{content:"\f2a6"}.ion-pinpoint:before{content:"\f2a7"}.ion-pizza:before{content:"\f2a8"}.ion-plane:before{content:"\f214"}.ion-planet:before{content:"\f343"}.ion-play:before{content:"\f215"}.ion-playstation:before{content:"\f30a"}.ion-plus:before{content:"\f218"}.ion-plus-circled:before{content:"\f216"}.ion-plus-round:before{content:"\f217"}.ion-podium:before{content:"\f344"}.ion-pound:before{content:"\f219"}.ion-power:before{content:"\f2a9"}.ion-pricetag:before{content:"\f2aa"}.ion-pricetags:before{content:"\f2ab"}.ion-printer:before{content:"\f21a"}.ion-pull-request:before{content:"\f345"}.ion-qr-scanner:before{content:"\f346"}.ion-quote:before{content:"\f347"}.ion-radio-waves:before{content:"\f2ac"}.ion-record:before{content:"\f21b"}.ion-refresh:before{content:"\f21c"}.ion-reply:before{content:"\f21e"}.ion-reply-all:before{content:"\f21d"}.ion-ribbon-a:before{content:"\f348"}.ion-ribbon-b:before{content:"\f349"}.ion-sad:before{content:"\f34a"}.ion-sad-outline:before{content:"\f4d7"}.ion-scissors:before{content:"\f34b"}.ion-search:before{content:"\f21f"}.ion-settings:before{content:"\f2ad"}.ion-share:before{content:"\f220"}.ion-shuffle:before{content:"\f221"}.ion-skip-backward:before{content:"\f222"}.ion-skip-forward:before{content:"\f223"}.ion-social-android:before{content:"\f225"}.ion-social-android-outline:before{content:"\f224"}.ion-social-angular:before{content:"\f4d9"}.ion-social-angular-outline:before{content:"\f4d8"}.ion-social-apple:before{content:"\f227"}.ion-social-apple-outline:before{content:"\f226"}.ion-social-bitcoin:before{content:"\f2af"}.ion-social-bitcoin-outline:before{content:"\f2ae"}.ion-social-buffer:before{content:"\f229"}.ion-social-buffer-outline:before{content:"\f228"}.ion-social-chrome:before{content:"\f4db"}.ion-social-chrome-outline:before{content:"\f4da"}.ion-social-codepen:before{content:"\f4dd"}.ion-social-codepen-outline:before{content:"\f4dc"}.ion-social-css3:before{content:"\f4df"}.ion-social-css3-outline:before{content:"\f4de"}.ion-social-designernews:before{content:"\f22b"}.ion-social-designernews-outline:before{content:"\f22a"}.ion-social-dribbble:before{content:"\f22d"}.ion-social-dribbble-outline:before{content:"\f22c"}.ion-social-dropbox:before{content:"\f22f"}.ion-social-dropbox-outline:before{content:"\f22e"}.ion-social-euro:before{content:"\f4e1"}.ion-social-euro-outline:before{content:"\f4e0"}.ion-social-facebook:before{content:"\f231"}.ion-social-facebook-outline:before{content:"\f230"}.ion-social-foursquare:before{content:"\f34d"}.ion-social-foursquare-outline:before{content:"\f34c"}.ion-social-freebsd-devil:before{content:"\f2c4"}.ion-social-github:before{content:"\f233"}.ion-social-github-outline:before{content:"\f232"}.ion-social-google:before{content:"\f34f"}.ion-social-google-outline:before{content:"\f34e"}.ion-social-googleplus:before{content:"\f235"}.ion-social-googleplus-outline:before{content:"\f234"}.ion-social-hackernews:before{content:"\f237"}.ion-social-hackernews-outline:before{content:"\f236"}.ion-social-html5:before{content:"\f4e3"}.ion-social-html5-outline:before{content:"\f4e2"}.ion-social-instagram:before{content:"\f351"}.ion-social-instagram-outline:before{content:"\f350"}.ion-social-javascript:before{content:"\f4e5"}.ion-social-javascript-outline:before{content:"\f4e4"}.ion-social-linkedin:before{content:"\f239"}.ion-social-linkedin-outline:before{content:"\f238"}.ion-social-markdown:before{content:"\f4e6"}.ion-social-nodejs:before{content:"\f4e7"}.ion-social-octocat:before{content:"\f4e8"}.ion-social-pinterest:before{content:"\f2b1"}.ion-social-pinterest-outline:before{content:"\f2b0"}.ion-social-python:before{content:"\f4e9"}.ion-social-reddit:before{content:"\f23b"}.ion-social-reddit-outline:before{content:"\f23a"}.ion-social-rss:before{content:"\f23d"}.ion-social-rss-outline:before{content:"\f23c"}.ion-social-sass:before{content:"\f4ea"}.ion-social-skype:before{content:"\f23f"}.ion-social-skype-outline:before{content:"\f23e"}.ion-social-snapchat:before{content:"\f4ec"}.ion-social-snapchat-outline:before{content:"\f4eb"}.ion-social-tumblr:before{content:"\f241"}.ion-social-tumblr-outline:before{content:"\f240"}.ion-social-tux:before{content:"\f2c5"}.ion-social-twitch:before{content:"\f4ee"}.ion-social-twitch-outline:before{content:"\f4ed"}.ion-social-twitter:before{content:"\f243"}.ion-social-twitter-outline:before{content:"\f242"}.ion-social-usd:before{content:"\f353"}.ion-social-usd-outline:before{content:"\f352"}.ion-social-vimeo:before{content:"\f245"}.ion-social-vimeo-outline:before{content:"\f244"}.ion-social-whatsapp:before{content:"\f4f0"}.ion-social-whatsapp-outline:before{content:"\f4ef"}.ion-social-windows:before{content:"\f247"}.ion-social-windows-outline:before{content:"\f246"}.ion-social-wordpress:before{content:"\f249"}.ion-social-wordpress-outline:before{content:"\f248"}.ion-social-yahoo:before{content:"\f24b"}.ion-social-yahoo-outline:before{content:"\f24a"}.ion-social-yen:before{content:"\f4f2"}.ion-social-yen-outline:before{content:"\f4f1"}.ion-social-youtube:before{content:"\f24d"}.ion-social-youtube-outline:before{content:"\f24c"}.ion-soup-can:before{content:"\f4f4"}.ion-soup-can-outline:before{content:"\f4f3"}.ion-speakerphone:before{content:"\f2b2"}.ion-speedometer:before{content:"\f2b3"}.ion-spoon:before{content:"\f2b4"}.ion-star:before{content:"\f24e"}.ion-stats-bars:before{content:"\f2b5"}.ion-steam:before{content:"\f30b"}.ion-stop:before{content:"\f24f"}.ion-thermometer:before{content:"\f2b6"}.ion-thumbsdown:before{content:"\f250"}.ion-thumbsup:before{content:"\f251"}.ion-toggle:before{content:"\f355"}.ion-toggle-filled:before{content:"\f354"}.ion-transgender:before{content:"\f4f5"}.ion-trash-a:before{content:"\f252"}.ion-trash-b:before{content:"\f253"}.ion-trophy:before{content:"\f356"}.ion-tshirt:before{content:"\f4f7"}.ion-tshirt-outline:before{content:"\f4f6"}.ion-umbrella:before{content:"\f2b7"}.ion-university:before{content:"\f357"}.ion-unlocked:before{content:"\f254"}.ion-upload:before{content:"\f255"}.ion-usb:before{content:"\f2b8"}.ion-videocamera:before{content:"\f256"}.ion-volume-high:before{content:"\f257"}.ion-volume-low:before{content:"\f258"}.ion-volume-medium:before{content:"\f259"}.ion-volume-mute:before{content:"\f25a"}.ion-wand:before{content:"\f358"}.ion-waterdrop:before{content:"\f25b"}.ion-wifi:before{content:"\f25c"}.ion-wineglass:before{content:"\f2b9"}.ion-woman:before{content:"\f25d"}.ion-wrench:before{content:"\f2ba"}.ion-xbox:before{content:"\f30c"}
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.eot b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.eot
deleted file mode 100644
index 92a3f20a..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.eot
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.svg b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.svg
deleted file mode 100644
index 49fc8f36..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.svg
+++ /dev/null
@@ -1,2230 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<!--
-2014-12-4: Created.
--->
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata>
-Created by FontForge 20120731 at Thu Dec 4 09:51:48 2014
- By Adam Bradley
-Created by Adam Bradley with FontForge 2.0 (http://fontforge.sf.net)
-</metadata>
-<defs>
-<font id="Ionicons" horiz-adv-x="448" >
- <font-face
- font-family="Ionicons"
- font-weight="500"
- font-stretch="normal"
- units-per-em="512"
- panose-1="2 0 6 3 0 0 0 0 0 0"
- ascent="448"
- descent="-64"
- bbox="-0.54049 -64 512.487 448"
- underline-thickness="25.6"
- underline-position="-51.2"
- unicode-range="U+F100-F4F7"
- />
- <missing-glyph />
- <glyph glyph-name="ion-alert-circled" unicode="&#xf100;"
-d="M445 26c3 -5 5 -13 2 -18s-8 -8 -14 -8h-418c-6 0 -11 3 -14 8s-1 13 2 18l207 349c3 5 8 9 14 9s11 -4 14 -9zM256 48v48h-64v-48h64zM256 128v144h-64v-144h64z" />
- <glyph glyph-name="ion-alert" unicode="&#xf101;" horiz-adv-x="128"
-d="M128 -32h-128v96h128v-96zM112 128h-96l-16 288h128z" />
- <glyph glyph-name="ion-android-add-circle" unicode="&#xf359;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM315 171v42h-86v86h-42v-86h-86v-42h86v-86h42v86h86z" />
- <glyph glyph-name="ion-android-add" unicode="&#xf2c7;" horiz-adv-x="320"
-d="M320 171h-139v-139h-42v139h-139v42h139v139h42v-139h139v-42z" />
- <glyph glyph-name="ion-android-alarm-clock" unicode="&#xf35a;" horiz-adv-x="428"
-d="M428 323l-28 -33l-98 82l28 33zM125 373l-97 -83l-28 33l97 83zM225 275v0v-111l85 -50l-16 -27l-101 61v127h32zM214 360c106 0 193 -86 193 -191s-87 -191 -193 -191c-107 0 -193 86 -193 191s86 191 193 191zM214 20c82 0 150 66 150 149c0 82 -68 149 -150 149
-s-150 -67 -150 -149s68 -149 150 -149z" />
- <glyph glyph-name="ion-android-alert" unicode="&#xf35b;" horiz-adv-x="416"
-d="M208 400c114 0 208 -94 208 -208s-94 -208 -208 -208s-208 94 -208 208s94 208 208 208zM232 88v40h-48v-40h48zM232 176v128h-48v-128h48z" />
- <glyph glyph-name="ion-android-apps" unicode="&#xf35c;" horiz-adv-x="320"
-d="M0 272v80h80v-80h-80zM120 32v80h80v-80h-80zM0 32v80h80v-80h-80zM0 152v80h80v-80h-80zM120 152v80h80v-80h-80zM240 352h80v-80h-80v80zM120 272v80h80v-80h-80zM240 152v80h80v-80h-80zM240 32v80h80v-80h-80z" />
- <glyph glyph-name="ion-android-archive" unicode="&#xf2c9;" horiz-adv-x="416"
-d="M406 348c7 -7 10 -17 10 -29v-289c0 -25 -21 -46 -46 -46h-324c-25 0 -46 21 -46 46v289c0 12 3 22 10 29l33 39c6 8 16 13 26 13h278c10 0 20 -5 26 -13zM208 65l127 127h-81v46h-92v-46h-81zM49 354h317l-22 23h-277z" />
- <glyph glyph-name="ion-android-arrow-back" unicode="&#xf2ca;" horiz-adv-x="342"
-d="M342 213v-42h-260l119 -120l-30 -30l-171 171l171 171l31 -30l-120 -120h260z" />
- <glyph glyph-name="ion-android-arrow-down" unicode="&#xf35d;" horiz-adv-x="342"
-d="M192 363v-260l120 120l30 -31l-171 -171l-171 171l30 30l120 -119v260h42z" />
- <glyph glyph-name="ion-android-arrow-dropdown-circle" unicode="&#xf35e;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 128l96 96h-192z" />
- <glyph glyph-name="ion-android-arrow-dropdown" unicode="&#xf35f;" horiz-adv-x="256"
-d="M0 256h256l-128 -128z" />
- <glyph glyph-name="ion-android-arrow-dropleft-circle" unicode="&#xf360;" horiz-adv-x="416"
-d="M416 192c0 -115 -93 -208 -208 -208s-208 93 -208 208s93 208 208 208s208 -93 208 -208zM144 192l96 -96v192z" />
- <glyph glyph-name="ion-android-arrow-dropleft" unicode="&#xf361;" horiz-adv-x="128"
-d="M128 320v-256l-128 128z" />
- <glyph glyph-name="ion-android-arrow-dropright-circle" unicode="&#xf362;" horiz-adv-x="416"
-d="M208 -16c-115 0 -208 93 -208 208s93 208 208 208s208 -93 208 -208s-93 -208 -208 -208zM176 96l96 96l-96 96v-192z" />
- <glyph glyph-name="ion-android-arrow-dropright" unicode="&#xf363;" horiz-adv-x="128"
-d="M0 320l128 -128l-128 -128v256z" />
- <glyph glyph-name="ion-android-arrow-dropup-circle" unicode="&#xf364;" horiz-adv-x="416"
-d="M416 192c0 -115 -93 -208 -208 -208s-208 93 -208 208s93 208 208 208s208 -93 208 -208zM304 160l-96 96l-96 -96h192z" />
- <glyph glyph-name="ion-android-arrow-dropup" unicode="&#xf365;" horiz-adv-x="256"
-d="M0 128l128 128l128 -128h-256z" />
- <glyph glyph-name="ion-android-arrow-forward" unicode="&#xf30f;" horiz-adv-x="342"
-d="M0 171v42h260l-119 120l30 30l171 -171l-171 -171l-31 30l120 120h-260z" />
- <glyph glyph-name="ion-android-arrow-up" unicode="&#xf366;" horiz-adv-x="342"
-d="M192 21h-42v260l-120 -119l-30 30l171 171l171 -171l-30 -31l-120 120v-260z" />
- <glyph glyph-name="ion-android-attach" unicode="&#xf367;" horiz-adv-x="235"
-d="M203 320h32v-235c0 -65 -53 -117 -118 -117s-117 52 -117 117v246c0 47 38 85 85 85s86 -38 86 -85v-246c0 -30 -24 -53 -54 -53s-53 23 -53 53v203h32v-203c0 -12 9 -21 21 -21s22 9 22 21v246c0 30 -24 53 -54 53s-53 -23 -53 -53v-246c0 -47 38 -85 85 -85
-s86 38 86 85v235z" />
- <glyph glyph-name="ion-android-bar" unicode="&#xf368;" horiz-adv-x="384"
-d="M171 171l-171 170v43h384v-43l-171 -170v-131h107v-40h-256v40h107v131zM96 299h192l43 42h-278z" />
- <glyph glyph-name="ion-android-bicycle" unicode="&#xf369;"
-d="M299 317c-19 0 -34 14 -34 33s15 34 34 34s33 -15 33 -34s-14 -33 -33 -33zM355 187c51 0 93 -43 93 -94s-42 -93 -93 -93s-94 42 -94 93s43 94 94 94zM355 28c36 0 65 29 65 65s-29 66 -65 66s-66 -30 -66 -66s30 -65 66 -65zM274 224l-30 45l-43 -45l39 -32v-112h-32
-v86l-61 38c-9 6 -19 15 -19 27c0 8 3 17 9 23l72 69c6 6 14 9 22 9c11 0 22 -7 28 -16l34 -60h59v-32h-78zM93 187c51 0 94 -43 94 -94s-43 -93 -94 -93s-93 42 -93 93s42 94 93 94zM93 28c36 0 66 29 66 65s-30 66 -66 66s-65 -30 -65 -66s29 -65 65 -65z" />
- <glyph glyph-name="ion-android-boat" unicode="&#xf36a;"
-d="M52 35l-51 139c-2 6 -1 12 1 17s8 8 13 10l38 13v98c0 23 20 43 43 43h64l16 53h96l16 -53h64c23 0 43 -20 43 -43v-98l38 -13c5 -2 11 -5 13 -10s3 -12 1 -17l-51 -139h-1c-34 0 -65 20 -86 43c-21 -23 -51 -43 -85 -43s-64 19 -85 42c-21 -23 -52 -42 -86 -42h-1z
-M96 312v-84l128 41l128 -41v84h-256zM309 40c0 0 59 -64 107 -64h-21c-30 0 -59 12 -86 26c-53 -28 -117 -28 -170 0c-27 -14 -56 -26 -86 -26h-21c49 0 107 64 107 64c52 -36 118 -36 170 0z" />
- <glyph glyph-name="ion-android-bookmark" unicode="&#xf36b;" horiz-adv-x="288"
-d="M248 384c22 0 40 -18 40 -40v-344l-144 64l-144 -64v344c0 22 18 40 40 40h208z" />
- <glyph glyph-name="ion-android-bulb" unicode="&#xf36c;"
-d="M224 278c-25 0 -50 -10 -68 -28s-28 -43 -28 -68c0 -34 18 -66 48 -83l16 -10v-18v-71h64v71v18l16 10c15 8 27 20 35 34c9 15 13 31 13 49c0 25 -10 50 -28 68s-43 28 -68 28zM245 416v0v-64h-42v64h42zM374 362v0l30 -30l-38 -38l-30 30zM74 362v0l38 -38l-30 -30
-l-38 38zM224 310v0c70 0 128 -58 128 -128c0 -48 -26 -89 -64 -111v-103h-128v103c-38 22 -64 64 -64 111c0 70 58 128 128 128zM448 203v0v-42h-64v42h64zM64 203v0v-42h-64v42h64z" />
- <glyph glyph-name="ion-android-bus" unicode="&#xf36d;" horiz-adv-x="352"
-d="M0 96v204c0 75 82 84 176 84s176 -9 176 -84v-204c0 -18 -14 -24 -27 -36v-39c0 -12 -9 -21 -21 -21h-21c-12 0 -22 9 -22 21v22h-170v-22c0 -12 -10 -21 -22 -21h-21c-12 0 -21 9 -21 21v39c-13 12 -27 17 -27 36zM80 80c18 0 32 14 32 32s-14 32 -32 32
-s-32 -14 -32 -32s14 -32 32 -32zM272 80c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM304 203v106h-256v-106h256z" />
- <glyph glyph-name="ion-android-calendar" unicode="&#xf2d1;" horiz-adv-x="384"
-d="M304 176v-96h-96v96h96zM272 384h48v-32h24c22 0 40 -18 40 -40v-272c0 -22 -18 -40 -40 -40h-304c-22 0 -40 18 -40 40v272c0 22 18 40 40 40h24v32h48v-32h160v32zM344 40v212h-304v-212h304z" />
- <glyph glyph-name="ion-android-call" unicode="&#xf2d2;" horiz-adv-x="384"
-d="M363 117c12 0 21 -9 21 -21v-75c0 -12 -9 -21 -21 -21c-201 0 -363 162 -363 363c0 12 9 21 21 21h75c12 0 21 -9 21 -21c0 -27 4 -52 13 -77c2 -7 0 -16 -5 -21l-47 -47c31 -61 80 -110 141 -141l47 47c5 6 14 7 21 5c23 -7 49 -12 76 -12z" />
- <glyph glyph-name="ion-android-camera" unicode="&#xf2d3;"
-d="M161 168c0 42 21 63 63 63s63 -21 63 -63s-21 -63 -63 -63s-63 21 -63 63zM408 352c11 0 20 -4 28 -12s12 -17 12 -28v-272c0 -11 -4 -20 -12 -28s-17 -12 -28 -12h-368c-11 0 -20 4 -28 12s-12 17 -12 28v272c0 11 4 20 12 28s17 12 28 12h88l32 32h128l32 -32h88z
-M224 56c31 0 57 11 79 33s33 48 33 79s-11 57 -33 79s-48 33 -79 33s-57 -11 -79 -33s-33 -48 -33 -79s11 -57 33 -79s48 -33 79 -33z" />
- <glyph glyph-name="ion-android-cancel" unicode="&#xf36e;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM312 117l-75 75l75 75l-29 29l-75 -75l-75 75l-29 -29l75 -75l-75 -75l29 -29l75 75l75 -75z" />
- <glyph glyph-name="ion-android-car" unicode="&#xf36f;" horiz-adv-x="384"
-d="M339 331l45 -118v-160c0 -12 -9 -21 -21 -21h-22c-12 0 -21 9 -21 21v11h-256v-11c0 -12 -9 -21 -21 -21h-22c-12 0 -21 9 -21 21v160l45 118c4 13 16 21 30 21h234c14 0 26 -8 30 -21zM75 128c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM309 128
-c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM43 235h298l-32 85h-234z" />
- <glyph glyph-name="ion-android-cart" unicode="&#xf370;" horiz-adv-x="416"
-d="M122 70c23 0 41 -18 41 -41s-18 -42 -41 -42s-42 19 -42 42s19 41 42 41zM0 397h68l19 -42h308c11 0 21 -9 21 -20c0 -4 -1 -8 -2 -10l-75 -129c-7 -14 -20 -22 -36 -22h-155l-21 -32s-2 -5 -2 -6c0 -3 2 -5 5 -5h238v-40h-243c-26 0 -45 14 -45 42c0 7 2 15 5 20l31 51
-l-74 151h-42v42zM326 70c23 0 42 -18 42 -41s-19 -42 -42 -42s-41 19 -41 42s18 41 41 41z" />
- <glyph glyph-name="ion-android-chat" unicode="&#xf2d4;" horiz-adv-x="416"
-d="M344 384c4 0 7 -4 7 -8v-214c0 -4 -3 -9 -7 -9h-187l-90 -89v89h-57c-4 0 -10 5 -10 9v214c0 4 6 8 10 8h334zM408 321c4 0 8 -5 8 -9v-214c0 -4 -4 -9 -8 -9h-57v-89l-90 89h-130l39 39h181c18 0 25 10 25 26v167h32z" />
- <glyph glyph-name="ion-android-checkbox-blank" unicode="&#xf371;" horiz-adv-x="384"
-d="M341 384c23 0 43 -20 43 -43v-298c0 -23 -20 -43 -43 -43h-298c-23 0 -43 20 -43 43v298c0 23 20 43 43 43h298z" />
- <glyph glyph-name="ion-android-checkbox-outline-blank" unicode="&#xf372;" horiz-adv-x="384"
-d="M341 341h-298v-298h298v298zM341 384v0c23 0 43 -20 43 -43v-298c0 -23 -20 -43 -43 -43h-298c-23 0 -43 20 -43 43v298c0 23 20 43 43 43h298z" />
- <glyph glyph-name="ion-android-checkbox-outline" unicode="&#xf373;" horiz-adv-x="384"
-d="M105 233l66 -66l183 183l30 -30l-213 -213l-96 96zM341 43v170h43v-170c0 -23 -20 -43 -43 -43h-298c-23 0 -43 20 -43 43v298c0 23 20 43 43 43h213v-43h-213v-298h298z" />
- <glyph glyph-name="ion-android-checkbox" unicode="&#xf374;" horiz-adv-x="384"
-d="M341 384c23 0 43 -20 43 -43v-298c0 -23 -20 -43 -43 -43h-298c-23 0 -43 20 -43 43v298c0 23 20 43 43 43h298zM149 85l192 192l-30 30l-162 -162l-76 77l-30 -30z" />
- <glyph glyph-name="ion-android-checkmark-circle" unicode="&#xf375;" horiz-adv-x="416"
-d="M123 232l64 -64l179 178l29 -29l-208 -208l-93 93zM374 192h42c0 -114 -94 -208 -208 -208s-208 94 -208 208s94 208 208 208c28 0 54 -6 78 -16l-32 -32c-15 4 -30 6 -46 6c-92 0 -166 -74 -166 -166s74 -166 166 -166s166 74 166 166z" />
- <glyph glyph-name="ion-android-clipboard" unicode="&#xf376;" horiz-adv-x="384"
-d="M341 368c23 0 43 -20 43 -43v-314c0 -23 -20 -43 -43 -43h-298c-23 0 -43 20 -43 43v314c0 23 20 43 43 43h87c7 28 32 48 62 48s55 -20 62 -48h87zM192 368c-12 0 -21 -9 -21 -21s9 -22 21 -22s21 10 21 22s-9 21 -21 21zM344 8v320h-40v-72h-224v72h-40v-320h304z" />
- <glyph glyph-name="ion-android-close" unicode="&#xf2d7;" horiz-adv-x="298"
-d="M298 311l-119 -119l119 -119l-30 -30l-119 119l-119 -119l-30 30l119 119l-119 119l30 30l119 -119l119 119z" />
- <glyph glyph-name="ion-android-cloud-circle" unicode="&#xf377;" horiz-adv-x="416"
-d="M208 400c114 0 208 -94 208 -208s-94 -208 -208 -208s-208 94 -208 208s94 208 208 208zM302 109c29 0 52 23 52 52s-23 52 -52 52h-11c0 46 -37 83 -83 83c-38 0 -71 -26 -80 -62h-3c-34 0 -63 -29 -63 -63s29 -62 63 -62h177z" />
- <glyph glyph-name="ion-android-cloud-done" unicode="&#xf378;" horiz-adv-x="480"
-d="M387 231c52 -3 93 -46 93 -99c0 -55 -45 -100 -100 -100h-260c-66 0 -120 54 -120 120c0 62 47 113 107 119c25 48 75 81 133 81c73 0 133 -52 147 -121zM197 85l141 141l-30 30l-111 -111l-44 45l-30 -30z" />
- <glyph glyph-name="ion-android-cloud-outline" unicode="&#xf379;" horiz-adv-x="480"
-d="M387 231c52 -3 93 -46 93 -99c0 -55 -45 -100 -100 -100h-260c-66 0 -120 54 -120 120c0 62 47 113 107 119c25 48 75 81 133 81c73 0 133 -52 147 -121zM380 72c33 0 60 27 60 60s-27 60 -60 60h-30v10c0 61 -49 110 -110 110c-51 0 -93 -34 -106 -80h-14
-c-44 0 -80 -36 -80 -80s36 -80 80 -80h260z" />
- <glyph glyph-name="ion-android-cloud" unicode="&#xf37a;" horiz-adv-x="480"
-d="M387 231c52 -3 93 -46 93 -99c0 -55 -45 -100 -100 -100h-260c-66 0 -120 54 -120 120c0 62 47 113 107 119c25 48 75 81 133 81c73 0 133 -52 147 -121z" />
- <glyph glyph-name="ion-android-color-palette" unicode="&#xf37b;" horiz-adv-x="384"
-d="M192 384c106 0 192 -77 192 -171c0 -59 -48 -106 -107 -106h-38c-18 0 -32 -14 -32 -32c0 -9 3 -17 8 -22s9 -12 9 -21c0 -18 -14 -32 -32 -32c-106 0 -192 86 -192 192s86 192 192 192zM75 192c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM139 277
-c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM245 277c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM309 192c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32z" />
- <glyph glyph-name="ion-android-compass" unicode="&#xf37c;"
-d="M224 217c13 0 25 -12 25 -25s-12 -25 -25 -25s-25 12 -25 25s12 25 25 25zM224 416c123 0 224 -101 224 -224s-101 -224 -224 -224s-224 101 -224 224s101 224 224 224zM273 143l85 183l-183 -85l-85 -183z" />
- <glyph glyph-name="ion-android-contact" unicode="&#xf2d8;" horiz-adv-x="384"
-d="M267 110c59 -18 104 -58 117 -110h-384c13 52 58 92 117 110c22 -13 48 -20 75 -20s53 7 75 20zM192 384c73 0 132 -59 132 -132s-59 -132 -132 -132s-132 59 -132 132s59 132 132 132zM192 153c42 0 78 26 92 63h-184c14 -37 50 -63 92 -63z" />
- <glyph glyph-name="ion-android-contacts" unicode="&#xf2d9;"
-d="M207 104c47 -14 76 -62 87 -104h-294c11 42 40 90 87 104c18 -10 38 -16 60 -16s42 6 60 16zM147 328c58 0 106 -48 106 -106s-48 -106 -106 -106s-106 48 -106 106s48 106 106 106zM147 141c34 0 62 23 74 51h-148c12 -28 40 -51 74 -51zM291 64c-13 20 -34 43 -60 53
-c11 9 21 23 28 35c13 -5 27 -8 42 -8c22 0 42 6 60 16c47 -14 76 -54 87 -96h-157zM275 248c-8 37 -31 69 -63 87c19 29 52 49 89 49c58 0 106 -48 106 -106s-48 -106 -106 -106c-11 0 -22 2 -32 5c3 8 6 16 7 25c8 -3 16 -4 25 -4c34 0 62 22 74 50h-100z" />
- <glyph glyph-name="ion-android-contract" unicode="&#xf37d;" horiz-adv-x="384"
-d="M0 77v51h128v-128h-51v77h-77zM77 307v77h51v-128h-128v51h77zM256 0v128h128v-51h-77v-77h-51zM307 307h77v-51h-128v128h51v-77z" />
- <glyph glyph-name="ion-android-create" unicode="&#xf37e;" horiz-adv-x="384"
-d="M0 80l236 236l80 -80l-236 -236h-80v80zM378 298l-40 -40l-80 80l40 40c9 9 20 9 29 0l51 -51c9 -9 9 -20 0 -29z" />
- <glyph glyph-name="ion-android-delete" unicode="&#xf37f;" horiz-adv-x="320"
-d="M32 43v245h256v-245c0 -23 -20 -43 -43 -43h-170c-23 0 -43 20 -43 43zM320 352v-32h-320v32h80l27 32h106l27 -32h80z" />
- <glyph glyph-name="ion-android-desktop" unicode="&#xf380;"
-d="M405 416c23 0 43 -20 43 -43v-282c0 -23 -20 -43 -43 -43h-138l42 -48v-32h-170v32l42 48h-138c-23 0 -43 20 -43 43v282c0 23 20 43 43 43h362zM405 128v245h-362v-245h362z" />
- <glyph glyph-name="ion-android-document" unicode="&#xf381;" horiz-adv-x="320"
-d="M192 400l128 -128v-248c0 -22 -18 -40 -40 -40h-240c-22 0 -40 18 -40 40v336c0 22 18 40 40 40h152zM176 256h112l-112 112v-112z" />
- <glyph glyph-name="ion-android-done-all" unicode="&#xf382;" horiz-adv-x="512"
-d="M388 308l-140 -139l-31 31l140 139zM481 339l31 -31l-264 -263l-122 123l30 31l92 -91zM0 168l32 31l122 -123l-31 -31z" />
- <glyph glyph-name="ion-android-done" unicode="&#xf383;" horiz-adv-x="384"
-d="M122 108l230 230l32 -31l-262 -261l-122 122l32 31z" />
- <glyph glyph-name="ion-android-download" unicode="&#xf2dd;" horiz-adv-x="480"
-d="M387 231c52 -3 93 -46 93 -99c0 -55 -45 -100 -100 -100h-260c-66 0 -120 54 -120 120c0 62 47 113 107 119c25 48 75 81 133 81c73 0 133 -52 147 -121zM208 180h-68l100 -100l100 100h-68v76h-64v-76z" />
- <glyph glyph-name="ion-android-drafts" unicode="&#xf384;"
-d="M448 246v-203c0 -23 -20 -43 -43 -43h-362c-23 0 -43 20 -43 43v203c0 15 8 30 20 37l204 101l204 -101c13 -7 20 -22 20 -37zM224 144l171 112l-171 85l-171 -85z" />
- <glyph glyph-name="ion-android-exit" unicode="&#xf385;" horiz-adv-x="384"
-d="M151 115l55 56h-206v42h207l-56 56l30 30l107 -107l-107 -107zM341 384c23 0 43 -20 43 -43v-298c0 -23 -20 -43 -43 -43h-298c-23 0 -43 20 -43 43v85h43v-85h298v298h-298v-85h-43v85c0 23 20 43 43 43h298z" />
- <glyph glyph-name="ion-android-expand" unicode="&#xf386;" horiz-adv-x="384"
-d="M333 51v77h51v-128h-128v51h77zM333 333h-77v51h128v-128h-51v77zM51 333v-77h-51v128h128v-51h-77zM51 51h77v-51h-128v128h51v-77z" />
- <glyph glyph-name="ion-android-favorite-outline" unicode="&#xf387;" horiz-adv-x="416"
-d="M302 384c64 0 114 -50 114 -115c0 -80 -71 -144 -178 -242l-30 -27l-30 27c-107 98 -178 162 -178 242c0 65 50 115 114 115c36 0 71 -17 94 -44c23 27 58 44 94 44zM221 55c50 46 94 86 123 122c28 35 40 63 40 92c0 23 -9 44 -24 59s-35 24 -58 24
-c-26 0 -53 -13 -70 -33l-24 -29l-24 29c-17 20 -44 33 -70 33c-23 0 -43 -9 -58 -24s-24 -36 -24 -59c0 -29 12 -57 40 -92c29 -36 73 -76 123 -122l4 -4l9 -8l9 8z" />
- <glyph glyph-name="ion-android-favorite" unicode="&#xf388;" horiz-adv-x="416"
-d="M208 0l-30 27c-107 98 -178 162 -178 242c0 65 50 115 114 115c36 0 71 -17 94 -44c23 27 58 44 94 44c64 0 114 -50 114 -115c0 -80 -71 -144 -178 -242z" />
- <glyph glyph-name="ion-android-film" unicode="&#xf389;" horiz-adv-x="320"
-d="M280 384h40v-384h-40v43h-40v-43h-160v43h-40v-43h-40v384h40v-43h40v43h160v-43h40v43zM80 85v43h-40v-43h40zM80 171v42h-40v-42h40zM80 256v43h-40v-43h40zM280 85v43h-40v-43h40zM280 171v42h-40v-42h40zM280 256v43h-40v-43h40z" />
- <glyph glyph-name="ion-android-folder-open" unicode="&#xf38a;"
-d="M405 304c23 0 43 -20 43 -43v-186c0 -23 -20 -43 -43 -43h-362c-23 0 -43 20 -43 43v234c0 23 20 43 43 43h138l43 -48h181zM416 75v186c0 6 -5 11 -11 11h-373v-197c0 -6 5 -11 11 -11h362c6 0 11 5 11 11z" />
- <glyph glyph-name="ion-android-folder" unicode="&#xf2e0;"
-d="M181 352l43 -48h181c23 0 43 -20 43 -43v-186c0 -23 -20 -43 -43 -43h-362c-23 0 -43 20 -43 43v234c0 23 20 43 43 43h138z" />
- <glyph glyph-name="ion-android-funnel" unicode="&#xf38b;"
-d="M176 48v48h96v-48h-96zM0 336h448v-48h-448v48zM80 167v50h288v-50h-288z" />
- <glyph glyph-name="ion-android-globe" unicode="&#xf38c;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM186 15c6 15 21 29 8 39c-8 7 -16 14 -23 21c-2 2 -11 20 -9 23c5 9 6 14 8 24c3 12 -3 16 -13 22c-15 10 -29 23 -43 34c-7 5 -17 10 -20 19s-5 20 -10 28c-14 20 -12 34 -10 58
-c0 7 -1 16 -2 25c-28 -32 -42 -73 -42 -116c0 -48 18 -92 52 -126c29 -29 65 -46 104 -51zM334 66c23 23 39 51 47 82c-8 -1 -19 2 -19 2s-21 24 -23 45c-2 22 0 39 -3 57c-3 16 -20 31 -27 46c-7 14 -13 28 -20 42c2 -1 5 -2 7 -3c5 1 10 2 14 2c-23 16 -49 25 -76 29v-8
-l4 -9l-14 -13l-9 3l-10 10l-10 12l-14 5c-16 -2 -31 -7 -45 -13v-7c7 3 16 5 23 8c3 1 13 -7 16 -9c-4 -5 -21 -15 -22 -21c0 -2 7 -6 7 -10c0 -6 -1 -11 -1 -17c3 3 20 21 22 21c13 3 35 -19 37 -26s-22 -24 -33 -34c-8 -8 -25 -12 -20 -24c2 -4 10 -20 5 -24
-c-6 -5 -14 9 -17 12c-8 10 -26 7 -38 7c0 -17 -1 -31 15 -43c15 -11 30 -25 47 -33c13 -6 36 7 47 -1c16 -11 29 -21 47 -29c8 -3 33 -20 26 -31c-5 -8 -10 -15 -14 -23s-13 -20 -20 -25c-8 -6 -16 -17 -21 -29c35 7 66 23 92 49z" />
- <glyph glyph-name="ion-android-hand" unicode="&#xf2e3;" horiz-adv-x="414"
-d="M401 174c15 -15 18 -36 3 -51c0 0 -96 -103 -126 -121v0c-28 -21 -65 -34 -100 -34c-55 0 -101 36 -117 85v0v1c0 1 -1 2 -1 3l-58 189c-5 15 2 32 17 37s30 -3 35 -18l34 -88c1 -4 2 -2 2 1l-22 161c-3 15 7 30 22 33s30 -8 33 -23l25 -138c0 -2 2 -2 2 0v177
-c0 15 13 28 28 28s28 -13 28 -28l8 -175c0 -5 3 -4 4 -1l23 135c2 15 16 27 31 25s27 -17 25 -32l-21 -172c-1 -12 -3 -30 2 -36c8 -9 20 -9 31 2l42 42c15 15 35 13 50 -2z" />
- <glyph glyph-name="ion-android-hangout" unicode="&#xf38d;" horiz-adv-x="352"
-d="M176 400c97 0 176 -77 176 -172c0 -91 -76 -196 -176 -244v71c-97 0 -176 78 -176 173s79 172 176 172zM166 217v61h-62v-61h31l-21 -40h31zM248 217v61h-62v-61h31l-20 -40h31z" />
- <glyph glyph-name="ion-android-happy" unicode="&#xf38e;" horiz-adv-x="416"
-d="M208 400c114 0 208 -94 208 -208s-93 -208 -208 -208s-208 94 -208 208s93 208 208 208zM208 26c92 0 166 74 166 166s-74 166 -166 166s-166 -74 -166 -166s74 -166 166 -166zM281 213c-18 0 -31 13 -31 31s13 31 31 31s31 -13 31 -31s-13 -31 -31 -31zM135 213
-c-18 0 -31 13 -31 31s13 31 31 31s31 -13 31 -31s-13 -31 -31 -31zM208 78c-49 0 -89 29 -106 72h212c-17 -43 -57 -72 -106 -72z" />
- <glyph glyph-name="ion-android-home" unicode="&#xf38f;" horiz-adv-x="416"
-d="M160 0h-98v192h-62l208 192l208 -192h-62v-192h-98v128h-96v-128z" />
- <glyph glyph-name="ion-android-image" unicode="&#xf2e4;" horiz-adv-x="384"
-d="M384 43c0 -23 -20 -43 -43 -43h-298c-23 0 -43 20 -43 43v298c0 23 20 43 43 43h298c23 0 43 -20 43 -43v-298zM117 160l-74 -96h298l-96 128l-74 -96z" />
- <glyph glyph-name="ion-android-laptop" unicode="&#xf390;" horiz-adv-x="512"
-d="M437 32h75c0 -23 -64 -32 -96 -32h-320c-32 0 -96 9 -96 32h75c-23 0 -43 20 -43 43v266c0 23 20 43 43 43h362c23 0 43 -20 43 -43v-266c0 -23 -20 -43 -43 -43zM75 341v-272h362v272h-362zM256 13c12 0 21 10 21 22s-9 21 -21 21s-21 -9 -21 -21s9 -22 21 -22z" />
- <glyph glyph-name="ion-android-list" unicode="&#xf391;" horiz-adv-x="384"
-d="M344 384c22 0 40 -18 40 -40v-304c0 -22 -18 -40 -40 -40h-304c-22 0 -40 18 -40 40v304c0 22 18 40 40 40h304zM240 80v48h-160v-48h160zM304 168v48h-224v-48h224zM304 256v48h-224v-48h224z" />
- <glyph glyph-name="ion-android-locate" unicode="&#xf2e9;"
-d="M224 272c44 0 80 -36 80 -80s-36 -80 -80 -80s-80 36 -80 80s36 80 80 80zM415 213h33v-42h-33c-10 -89 -81 -160 -170 -170v-33h-42v33c-89 10 -160 81 -170 170h-33v42h33c10 89 81 160 170 170v33h42v-33c89 -10 160 -81 170 -170zM224 43c82 0 149 67 149 149
-s-67 149 -149 149s-149 -67 -149 -149s67 -149 149 -149z" />
- <glyph glyph-name="ion-android-lock" unicode="&#xf392;" horiz-adv-x="320"
-d="M280 262c22 0 40 -18 40 -40v-200c0 -22 -18 -40 -40 -40h-240c-22 0 -40 18 -40 40v200c0 22 18 40 40 40h20v40c0 55 45 100 100 100s100 -45 100 -100v-40h20zM160 80c22 0 40 18 40 40s-18 40 -40 40s-40 -18 -40 -40s18 -40 40 -40zM222 262v40c0 34 -28 62 -62 62
-s-62 -28 -62 -62v-40h124z" />
- <glyph glyph-name="ion-android-mail" unicode="&#xf2eb;"
-d="M405 368c23 0 43 -20 43 -43v-266c0 -23 -20 -43 -43 -43h-362c-23 0 -43 20 -43 43v266c0 23 20 43 43 43h362zM400 277v43l-176 -117l-176 117v-43l176 -117z" />
- <glyph glyph-name="ion-android-map" unicode="&#xf393;" horiz-adv-x="384"
-d="M373 384c6 0 11 -5 11 -11v-322c0 -5 -3 -9 -7 -10l-121 -41l-128 45s-105 -41 -108 -42s-7 -3 -9 -3c-6 0 -11 5 -11 11v322c0 5 3 9 7 10l121 41l128 -45s103 40 108 42s7 3 9 3zM256 43v254l-128 44v-254z" />
- <glyph glyph-name="ion-android-menu" unicode="&#xf394;" horiz-adv-x="384"
-d="M0 64v43h384v-43h-384zM0 171v42h384v-42h-384zM0 320h384v-43h-384v43z" />
- <glyph glyph-name="ion-android-microphone-off" unicode="&#xf395;" horiz-adv-x="408"
-d="M316 93l58 -58l-58 58l58 -58l34 -33l-24 -24l-95 95c-19 -11 -40 -20 -62 -23v-82h-46v82c-75 10 -137 76 -137 153h39c0 -68 58 -117 121 -117c20 0 40 5 57 14l-32 33c-8 -3 -16 -5 -25 -5c-38 0 -69 31 -69 69v29l-135 134l24 24l111 -110v0l140 -140l5 -5l9 -9z
-M273 197c0 -4 0 -8 -1 -12l-137 137v25c0 38 31 69 69 69s69 -31 69 -69v-150zM365 203c0 -31 -10 -60 -27 -84l-27 28c9 17 15 36 15 56h39zM408 2v0l-34 33z" />
- <glyph glyph-name="ion-android-microphone" unicode="&#xf2ec;" horiz-adv-x="320"
-d="M160 128c-38 0 -69 31 -69 69v150c0 38 31 69 69 69s69 -31 69 -69v-150c0 -38 -31 -69 -69 -69zM281 203h39c0 -78 -62 -142 -137 -153v-82h-46v82c-75 10 -137 75 -137 153h39c0 -69 58 -116 121 -116s121 47 121 116z" />
- <glyph glyph-name="ion-android-more-horizontal" unicode="&#xf396;" horiz-adv-x="320"
-d="M40 232c22 0 40 -18 40 -40s-18 -40 -40 -40s-40 18 -40 40s18 40 40 40zM280 232c22 0 40 -18 40 -40s-18 -40 -40 -40s-40 18 -40 40s18 40 40 40zM160 232c22 0 40 -18 40 -40s-18 -40 -40 -40s-40 18 -40 40s18 40 40 40z" />
- <glyph glyph-name="ion-android-more-vertical" unicode="&#xf397;" horiz-adv-x="80"
-d="M80 312c0 -22 -18 -40 -40 -40s-40 18 -40 40s18 40 40 40s40 -18 40 -40zM80 72c0 -22 -18 -40 -40 -40s-40 18 -40 40s18 40 40 40s40 -18 40 -40zM80 192c0 -22 -18 -40 -40 -40s-40 18 -40 40s18 40 40 40s40 -18 40 -40z" />
- <glyph glyph-name="ion-android-navigate" unicode="&#xf398;" horiz-adv-x="320"
-d="M160 384l160 -369l-15 -15l-145 64l-145 -64l-15 15z" />
- <glyph glyph-name="ion-android-notifications-none" unicode="&#xf399;" horiz-adv-x="352"
-d="M177 328h-2c-6 0 -24 -5 -24 -5c-46 -10 -78 -53 -78 -100v-114v-13l-9 -10l-8 -8h240l-8 8l-9 10v13v114c0 47 -32 90 -78 100c0 0 -17 5 -24 5zM176 400v0c18 0 31 -13 31 -31v-15c59 -14 104 -68 104 -131v-114l41 -42v-21h-352v21l41 42v114c0 63 45 117 104 131v15
-c0 18 13 31 31 31zM217 26v0c0 -23 -18 -42 -41 -42s-41 19 -41 42h82z" />
- <glyph glyph-name="ion-android-notifications-off" unicode="&#xf39a;" horiz-adv-x="364"
-d="M182 -16c-23 0 -41 19 -41 42h82c0 -23 -18 -42 -41 -42zM57 341l295 -295v0l12 -12l-24 -24l-36 36h-298v21l41 41v115c0 23 6 44 16 63l-63 64l24 24l33 -33v0zM317 223v-94l-208 207c13 8 27 15 42 18v15c0 18 13 31 31 31s31 -13 31 -31v-15c59 -14 104 -67 104 -131
-z" />
- <glyph glyph-name="ion-android-notifications" unicode="&#xf39b;" horiz-adv-x="352"
-d="M176 -16c-23 0 -41 19 -41 42h82c0 -23 -18 -42 -41 -42zM311 109l41 -42v-21h-352v21l41 42v114c0 63 45 117 104 131v15c0 18 13 31 31 31s31 -13 31 -31v-15c59 -14 104 -68 104 -131v-114z" />
- <glyph glyph-name="ion-android-open" unicode="&#xf39c;" horiz-adv-x="384"
-d="M341 43v133h43v-133c0 -23 -20 -43 -43 -43h-298c-23 0 -43 20 -43 43v298c0 23 20 43 43 43h133v-43h-133v-298h298zM224 384h160v-160h-43v87l-215 -215l-30 30l215 215h-87v43z" />
- <glyph glyph-name="ion-android-options" unicode="&#xf39d;"
-d="M0 32v32h272v-32h-272zM368 32v32h80v-32h-80zM352 0c0 -18 -14 -32 -32 -32v0c-18 0 -32 14 -32 32v96c0 18 14 32 32 32v0c18 0 32 -14 32 -32v-96zM0 176v32h80v-32h-80zM176 176v32h272v-32h-272zM160 144c0 -18 -14 -32 -32 -32v0c-18 0 -32 14 -32 32v96
-c0 18 14 32 32 32v0c18 0 32 -14 32 -32v-96zM0 320v32h272v-32h-272zM368 320v32h80v-32h-80zM352 288c0 -18 -14 -32 -32 -32v0c-18 0 -32 14 -32 32v96c0 18 14 32 32 32v0c18 0 32 -14 32 -32v-96z" />
- <glyph glyph-name="ion-android-people" unicode="&#xf39e;"
-d="M305 216c-34 0 -61 27 -61 60s27 60 61 60s62 -27 62 -60s-28 -60 -62 -60zM143 216c-34 0 -62 27 -62 60s28 60 62 60s61 -27 61 -60s-27 -60 -61 -60zM143 172c48 0 145 -23 145 -70v-54h-288v54c0 47 95 70 143 70zM305 161c48 0 143 -12 143 -59v-54h-128v54
-c0 30 -9 41 -32 58c7 1 11 1 17 1z" />
- <glyph glyph-name="ion-android-person-add" unicode="&#xf39f;" horiz-adv-x="480"
-d="M288 192c-53 0 -96 43 -96 96s43 96 96 96s96 -43 96 -96s-43 -96 -96 -96zM288 144c64 0 192 -32 192 -96v-48h-384v48c0 64 128 96 192 96zM96 224h64v-32h-64v-64h-32v64h-64v32h64v64h32v-64z" />
- <glyph glyph-name="ion-android-person" unicode="&#xf3a0;" horiz-adv-x="384"
-d="M192 192c-53 0 -96 43 -96 96s43 96 96 96s96 -43 96 -96s-43 -96 -96 -96zM192 144c64 0 192 -32 192 -96v-48h-384v48c0 64 128 96 192 96z" />
- <glyph glyph-name="ion-android-phone-landscape" unicode="&#xf3a1;"
-d="M448 89c0 -23 -19 -41 -41 -41h-366c-22 0 -41 18 -41 41v206c0 23 19 41 41 41h366c22 0 41 -18 41 -41v-206zM80 84h288v216h-288v-216z" />
- <glyph glyph-name="ion-android-phone-portrait" unicode="&#xf3a2;" horiz-adv-x="288"
-d="M247 416c23 0 41 -19 41 -41v-366c0 -22 -18 -41 -41 -41h-206c-23 0 -41 19 -41 41v366c0 22 18 41 41 41h206zM252 48v288h-216v-288h216z" />
- <glyph glyph-name="ion-android-pin" unicode="&#xf3a3;" horiz-adv-x="320"
-d="M160 416c88 0 160 -71 160 -157c0 -118 -160 -291 -160 -291s-160 173 -160 291c0 86 72 157 160 157zM160 203c32 0 57 25 57 56s-25 56 -57 56s-57 -25 -57 -56s25 -56 57 -56z" />
- <glyph glyph-name="ion-android-plane" unicode="&#xf3a4;" horiz-adv-x="384"
-d="M384 112l-160 48v-114l48 -31v-31l-80 16l-80 -16v31l48 31v114l-160 -48v40l160 104v113c0 18 15 31 32 31s32 -13 32 -31v-113l160 -104v-40z" />
- <glyph glyph-name="ion-android-playstore" unicode="&#xf2f0;" horiz-adv-x="416"
-d="M416 296c-19 -214 -13 -312 -13 -312h-390s6 96 -13 312h104c0 57 47 104 104 104s104 -47 104 -104h104zM208 374c-43 0 -78 -35 -78 -78h156c0 43 -35 78 -78 78zM156 50l143 85l-143 84v-169z" />
- <glyph glyph-name="ion-android-print" unicode="&#xf3a5;" horiz-adv-x="416"
-d="M352 288c35 0 64 -29 64 -64v-139h-80v-85h-256v85h-80v139c0 35 29 64 64 64h288zM304 32v128h-192v-128h192zM336 384v0v-80h-256v80h256z" />
- <glyph glyph-name="ion-android-radio-button-off" unicode="&#xf3a6;" horiz-adv-x="416"
-d="M208 400c114 0 208 -94 208 -208s-94 -208 -208 -208s-208 94 -208 208s94 208 208 208zM208 26c92 0 166 74 166 166s-74 166 -166 166s-166 -74 -166 -166s74 -166 166 -166z" />
- <glyph glyph-name="ion-android-radio-button-on" unicode="&#xf3a7;" horiz-adv-x="416"
-d="M208 296c57 0 104 -47 104 -104s-47 -104 -104 -104s-104 47 -104 104s47 104 104 104zM208 400c114 0 208 -94 208 -208s-94 -208 -208 -208s-208 94 -208 208s94 208 208 208zM208 26c92 0 166 74 166 166s-74 166 -166 166s-166 -74 -166 -166s74 -166 166 -166z" />
- <glyph glyph-name="ion-android-refresh" unicode="&#xf3a8;" horiz-adv-x="352"
-d="M176 60c56 0 104 34 123 84h46c-21 -74 -88 -128 -169 -128c-98 0 -176 79 -176 176s79 176 176 176c48 0 92 -20 124 -52l52 52v-154h-154l70 70c-23 24 -56 40 -92 40c-73 0 -132 -59 -132 -132s59 -132 132 -132z" />
- <glyph glyph-name="ion-android-remove-circle" unicode="&#xf3a9;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM315 171v42h-214v-42h214z" />
- <glyph glyph-name="ion-android-remove" unicode="&#xf2f4;" horiz-adv-x="320"
-d="M0 171v42h320v-42h-320z" />
- <glyph glyph-name="ion-android-restaurant" unicode="&#xf3aa;" horiz-adv-x="415"
-d="M116 168l-91 89c-34 33 -34 86 0 119l153 -148zM264 206l-33 -31l150 -145l-30 -30l-150 146l-150 -146l-30 30s163 159 211 207c-15 32 -4 77 31 111c41 40 101 49 132 17c33 -31 24 -89 -17 -129c-34 -34 -80 -45 -114 -30z" />
- <glyph glyph-name="ion-android-sad" unicode="&#xf3ab;" horiz-adv-x="416"
-d="M208 160c45 0 83 -26 102 -64h-204c19 38 57 64 102 64zM208 400c114 0 208 -94 208 -208s-93 -208 -208 -208s-208 94 -208 208s93 208 208 208zM208 26c92 0 166 74 166 166s-74 166 -166 166s-166 -74 -166 -166s74 -166 166 -166zM281 213c-18 0 -31 13 -31 31
-s13 31 31 31s31 -13 31 -31s-13 -31 -31 -31zM135 213c-18 0 -31 13 -31 31s13 31 31 31s31 -13 31 -31s-13 -31 -31 -31z" />
- <glyph glyph-name="ion-android-search" unicode="&#xf2f5;" horiz-adv-x="384"
-d="M274 143l110 -110l-33 -33l-109 110v17l-7 6c-25 -21 -58 -34 -93 -34c-79 0 -142 63 -142 142s63 143 141 143c79 0 142 -64 142 -143c0 -36 -13 -68 -34 -93l7 -5h18zM142 143c55 0 99 43 99 98s-44 99 -99 99s-98 -44 -98 -99s43 -98 98 -98z" />
- <glyph glyph-name="ion-android-send" unicode="&#xf2f6;" horiz-adv-x="416"
-d="M0 0v149l298 43l-298 43v149l416 -192z" />
- <glyph glyph-name="ion-android-settings" unicode="&#xf2f7;" horiz-adv-x="416"
-d="M366 171l47 -34c3 -3 4 -10 2 -14l-43 -71c-2 -4 -7 -7 -12 -5l-54 21c-12 -8 -23 -16 -36 -21l-8 -55c-1 -4 -6 -8 -11 -8h-85c-5 0 -10 3 -11 8l-8 55c-13 5 -25 13 -36 21l-54 -21c-4 -2 -10 1 -12 5l-43 71c-3 5 -2 11 2 14l45 34c0 7 -1 14 -1 21s1 14 1 21l-46 34
-c-3 3 -4 10 -2 14l43 71c2 4 7 7 12 5l54 -21c12 8 23 16 36 21l8 55c1 4 6 8 11 8h85c5 0 10 -4 11 -8l7 -55c13 -5 25 -13 36 -21l53 21c4 2 11 -1 13 -5l43 -71c3 -5 2 -11 -2 -14l-45 -34c0 -7 1 -14 1 -21s0 -15 -1 -21zM207 119c41 0 75 32 75 73s-34 73 -75 73
-s-74 -32 -74 -73s33 -73 74 -73z" />
- <glyph glyph-name="ion-android-share-alt" unicode="&#xf3ac;" horiz-adv-x="384"
-d="M320 104c34 0 62 -28 62 -62s-28 -62 -62 -62s-62 28 -62 62c0 5 1 10 2 14l-152 88c-12 -11 -27 -17 -44 -17c-35 0 -64 29 -64 64s28 64 63 64c17 0 32 -6 44 -17l151 87c-1 5 -2 10 -2 15c0 35 29 64 64 64s64 -29 64 -64s-29 -64 -64 -64c-17 0 -32 6 -44 17
-l-151 -87c1 -5 2 -10 2 -15s-1 -10 -2 -15l153 -88c11 11 26 16 42 16z" />
- <glyph glyph-name="ion-android-share" unicode="&#xf2f8;" horiz-adv-x="384"
-d="M384 200l-160 -147v88c-107 0 -171 -34 -224 -109c21 107 75 214 224 235v85z" />
- <glyph glyph-name="ion-android-star-half" unicode="&#xf3ad;" horiz-adv-x="404"
-d="M404 238l-110 -96l33 -142l-125 75l-125 -75l33 142l-110 96l145 12l57 134l57 -134zM219 103l60 -36l-16 68l-5 19l15 12l53 46l-70 6l-19 2l-8 18l-27 64v-189z" />
- <glyph glyph-name="ion-android-star-outline" unicode="&#xf3ae;" horiz-adv-x="404"
-d="M404 238l-110 -96l33 -142l-125 75l-125 -75l33 142l-110 96l145 12l57 134l57 -134zM219 103l60 -36l-16 68l-5 19l15 12l53 46l-70 6l-19 2l-8 18l-27 64l-27 -64l-8 -18l-19 -2l-70 -6l53 -46l15 -12l-5 -19l-16 -68l60 36l17 10z" />
- <glyph glyph-name="ion-android-star" unicode="&#xf2fc;" horiz-adv-x="404"
-d="M202 75l-125 -75l33 142l-110 96l145 12l57 134l57 -134l145 -12l-110 -96l33 -142z" />
- <glyph glyph-name="ion-android-stopwatch" unicode="&#xf2fd;" horiz-adv-x="384"
-d="M168 141v131h48v-131h-48zM344 278c25 -33 40 -74 40 -118c0 -106 -86 -192 -192 -192s-192 86 -192 192s86 192 192 192c44 0 85 -15 118 -40l31 30l33 -33zM298 54c28 28 44 66 44 106s-16 78 -44 106s-66 44 -106 44s-78 -16 -106 -44s-44 -66 -44 -106
-s16 -78 44 -106s66 -44 106 -44s78 16 106 44zM128 368v48h128v-48h-128z" />
- <glyph glyph-name="ion-android-subway" unicode="&#xf3af;" horiz-adv-x="352"
-d="M176 400c94 0 176 -10 176 -85v-214c0 -42 -33 -74 -75 -74l27 -27v-16h-256v16l27 27c-42 0 -75 32 -75 74v214c0 75 82 85 176 85zM80 64c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM160 208v96h-112v-96h112zM272 64c18 0 32 14 32 32
-s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM304 208v96h-112v-96h112z" />
- <glyph glyph-name="ion-android-sunny" unicode="&#xf3b0;"
-d="M224 288c-25 0 -50 -10 -68 -28s-28 -43 -28 -68s10 -50 28 -68s43 -28 68 -28s50 10 68 28s28 43 28 68s-10 50 -28 68s-43 28 -68 28zM245 416v0v-64h-42v64h42zM374 372v0l30 -30l-38 -38l-30 30zM74 372v0l38 -38l-30 -30l-38 38zM224 320v0c70 0 128 -58 128 -128
-s-58 -128 -128 -128s-128 58 -128 128s58 128 128 128zM448 213v0v-42h-64v42h64zM64 213v0v-42h-64v42h64zM366 80v0l38 -38l-30 -30l-38 38zM82 80v0l30 -30l-38 -38l-30 30zM245 32v0v-64h-42v64h42z" />
- <glyph glyph-name="ion-android-sync" unicode="&#xf3b1;" horiz-adv-x="320"
-d="M160 355c88 0 160 -73 160 -163c0 -32 -9 -62 -25 -87l-29 30c9 17 14 37 14 57c0 67 -54 122 -120 122v-61l-80 82l80 81v-61zM160 70v61l80 -82l-80 -81v61c-88 0 -160 73 -160 163c0 32 9 63 25 87l29 -30c-9 -17 -14 -37 -14 -57c0 -67 54 -122 120 -122z" />
- <glyph glyph-name="ion-android-textsms" unicode="&#xf3b2;" horiz-adv-x="384"
-d="M344 384c22 0 40 -18 40 -40v-240c0 -22 -18 -40 -40 -40h-280l-64 -64v344c0 22 10 40 32 40h312zM134 206v40h-38v-40h38zM211 206v40h-38v-40h38zM288 206v40h-38v-40h38z" />
- <glyph glyph-name="ion-android-time" unicode="&#xf3b3;" horiz-adv-x="426"
-d="M213 405c117 0 213 -96 213 -213s-95 -213 -213 -213s-213 96 -213 213s95 213 213 213zM213 22c94 0 170 76 170 170s-76 170 -170 170s-170 -76 -170 -170s76 -170 170 -170zM224 298v-111l96 -57l-16 -26l-112 67v127h32z" />
- <glyph glyph-name="ion-android-train" unicode="&#xf3b4;" horiz-adv-x="352"
-d="M0 101v214c0 75 82 85 176 85s176 -10 176 -85v-214c0 -42 -33 -74 -75 -74l27 -27v-16h-256v16l27 27c-42 0 -75 32 -75 74zM176 72c22 0 40 18 40 40s-18 40 -40 40s-40 -18 -40 -40s18 -40 40 -40zM304 224v96h-256v-96h256z" />
- <glyph glyph-name="ion-android-unlock" unicode="&#xf3b5;" horiz-adv-x="320"
-d="M280 262c22 0 40 -18 40 -40v-200c0 -22 -18 -40 -40 -40h-240c-22 0 -40 18 -40 40v200c0 22 18 40 40 40h182v40v0c0 34 -28 62 -62 62s-62 -28 -62 -62h-38c0 55 45 100 100 100s100 -45 100 -100v-40h20zM160 80c22 0 40 18 40 40s-18 40 -40 40s-40 -18 -40 -40
-s18 -40 40 -40z" />
- <glyph glyph-name="ion-android-upload" unicode="&#xf3b6;" horiz-adv-x="480"
-d="M387 231c52 -3 93 -46 93 -99c0 -55 -45 -100 -100 -100h-260c-66 0 -120 54 -120 120c0 62 47 113 107 119c25 48 75 81 133 81c73 0 133 -52 147 -121zM272 172h68l-100 100l-100 -100h68v-76h64v76z" />
- <glyph glyph-name="ion-android-volume-down" unicode="&#xf3b7;" horiz-adv-x="288"
-d="M0 256h85l107 112v-352l-107 112h-85v128zM288 192c0 -38 -21 -73 -53 -88v177c32 -16 53 -51 53 -89z" />
- <glyph glyph-name="ion-android-volume-mute" unicode="&#xf3b8;" horiz-adv-x="192"
-d="M0 256h85l107 112v-352l-107 112h-85v128z" />
- <glyph glyph-name="ion-android-volume-off" unicode="&#xf3b9;" horiz-adv-x="384"
-d="M342 192c0 69 -45 128 -107 147v45c85 -20 149 -99 149 -192c0 -35 -8 -68 -24 -96l-32 32c9 19 14 41 14 64zM192 368v-104l-51 51zM357 51v0l24 -24l-24 -24l-40 40c-23 -21 -51 -36 -82 -43v45c19 6 37 15 52 28l-95 95v-152l-107 112h-85v128h85l9 10l-91 91l24 24z
-M288 192c0 -7 0 -15 -2 -22l-51 51v60c32 -16 53 -51 53 -89z" />
- <glyph glyph-name="ion-android-volume-up" unicode="&#xf3ba;" horiz-adv-x="384"
-d="M0 256h85l107 112v-352l-107 112h-85v128zM288 192c0 -38 -21 -73 -53 -88v177c32 -16 53 -51 53 -89zM235 384c85 -20 149 -99 149 -192s-64 -172 -149 -192v45c62 19 106 78 106 147s-44 128 -106 147v45z" />
- <glyph glyph-name="ion-android-walk" unicode="&#xf3bb;" horiz-adv-x="272"
-d="M168 336c-22 0 -40 18 -40 40s18 40 40 40s40 -18 40 -40s-18 -40 -40 -40zM168 216l-20 38l-20 -62l57 -96v-128h-38v96l-50 68l-57 -164h-40l81 320l-41 -16v-80h-40v112l111 38c4 1 10 1 13 1c13 0 23 -6 31 -18l45 -69h72v-40h-104z" />
- <glyph glyph-name="ion-android-warning" unicode="&#xf3bc;"
-d="M0 -16l224 416l224 -416h-448zM248 48v48h-48v-48h48zM248 128v96h-48v-96h48z" />
- <glyph glyph-name="ion-android-watch" unicode="&#xf3bd;" horiz-adv-x="320"
-d="M320 192c0 -51 -24 -96 -61 -125l-19 -115h-160l-19 115c-37 29 -61 74 -61 125s24 96 61 125l19 115h160l19 -115c37 -29 61 -74 61 -125zM40 192c0 -66 54 -120 120 -120s120 54 120 120s-54 120 -120 120s-120 -54 -120 -120z" />
- <glyph glyph-name="ion-android-wifi" unicode="&#xf305;" horiz-adv-x="416"
-d="M208 219c23 0 42 -18 42 -41s-19 -41 -42 -41s-42 18 -42 41s19 41 42 41zM333 178c0 -45 -26 -85 -63 -107l-20 36c25 14 41 40 41 71c0 45 -37 82 -83 82s-83 -37 -83 -82c0 -31 16 -57 41 -71l-20 -36c-37 22 -63 62 -63 107c0 68 56 124 125 124s125 -56 125 -124z
-M208 384c114 0 208 -93 208 -206c0 -76 -42 -142 -104 -178l-21 36c50 28 83 81 83 142c0 91 -74 165 -166 165s-166 -74 -166 -165c0 -61 33 -113 83 -142l-21 -36c-62 36 -104 102 -104 178c0 113 94 206 208 206z" />
- <glyph glyph-name="ion-aperture" unicode="&#xf313;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM360 56c36 36 56 85 56 136s-20 100 -56 136s-85 56 -136 56s-100 -20 -136 -56s-56 -85 -56 -136s20 -100 56 -136s85 -56 136 -56s100 20 136 56zM168 342l56 -86h-147
-c17 40 50 71 91 86zM381 160h-102l72 129c21 -27 33 -60 33 -97c0 -11 -1 -22 -3 -32zM328 314l-49 -90l-78 126c8 1 15 2 23 2c40 0 76 -14 104 -38zM67 224h102l-72 -129c-21 27 -33 60 -33 97c0 11 1 22 3 32zM280 42l-56 86h147c-17 -40 -50 -71 -91 -86zM120 70l49 90
-l78 -126c-8 -1 -15 -2 -23 -2c-40 0 -76 14 -104 38z" />
- <glyph glyph-name="ion-archive" unicode="&#xf102;"
-d="M224 140l-128 116h80v96h96v-96h80zM433 151c11 -6 17 -19 15 -32l-9 -67c-2 -13 -9 -20 -28 -20h-374c-18 0 -26 7 -28 20l-9 67c-2 13 3 26 14 32l72 55h42l-62 -62h50c2 0 5 -1 6 -3l18 -45h168l18 45c1 2 3 3 5 3h51l-62 62h42z" />
- <glyph glyph-name="ion-arrow-down-a" unicode="&#xf103;" horiz-adv-x="384"
-d="M192 -0l-192 192h112v192h160v-192h112z" />
- <glyph glyph-name="ion-arrow-down-b" unicode="&#xf104;" horiz-adv-x="320"
-d="M3 263c-2 2 -3 6 -3 9c0 9 8 16 17 16v0h286v0c9 0 17 -7 17 -16c0 -3 -1 -6 -3 -8l-2 -3l-136 -156c-5 -5 -11 -9 -19 -9s-14 4 -19 9l-136 156z" />
- <glyph glyph-name="ion-arrow-down-c" unicode="&#xf105;" horiz-adv-x="274"
-d="M265 125l-105 -100c-6 -6 -14 -9 -23 -9s-16 3 -22 9l-106 100c-12 12 -12 31 0 43s34 12 46 0l50 -48v217c0 17 14 31 32 31s32 -14 32 -31v-217l50 48c12 12 34 12 46 0s12 -31 0 -43z" />
- <glyph glyph-name="ion-arrow-expand" unicode="&#xf25e;" horiz-adv-x="320"
-d="M178 238l64 64l-50 50h128v-128l-50 50l-64 -64zM178 146l28 28l64 -64l50 50v-128h-128l50 50zM142 146l-64 -64l50 -50h-128v128l50 -50l64 64zM142 238l-28 -28l-64 64l-50 -50v128h128l-50 -50z" />
- <glyph glyph-name="ion-arrow-graph-down-left" unicode="&#xf25f;"
-d="M0 64v160l61 -61l131 141l107 -112l149 128l-149 -203l-107 107l-94 -98l62 -62h-160z" />
- <glyph glyph-name="ion-arrow-graph-down-right" unicode="&#xf260;"
-d="M288 64l62 62l-94 98l-107 -107l-149 203l149 -128l107 112l131 -141l61 61v-160h-160z" />
- <glyph glyph-name="ion-arrow-graph-up-left" unicode="&#xf261;"
-d="M160 320l-62 -62l94 -98l107 107l149 -203l-149 128l-107 -112l-131 141l-61 -61v160h160z" />
- <glyph glyph-name="ion-arrow-graph-up-right" unicode="&#xf262;"
-d="M288 320h160v-160l-61 61l-131 -141l-107 112l-149 -128l149 203l107 -107l94 98z" />
- <glyph glyph-name="ion-arrow-left-a" unicode="&#xf106;" horiz-adv-x="384"
-d="M0 192l192 192v-112h192v-160h-192v-112z" />
- <glyph glyph-name="ion-arrow-left-b" unicode="&#xf107;" horiz-adv-x="192"
-d="M167 349c2 2 6 3 9 3c9 0 16 -8 16 -17v0v-286v0c0 -9 -7 -17 -16 -17c-3 0 -7 1 -9 3l-2 2l-156 136c-5 5 -9 11 -9 19s4 14 9 19l156 136z" />
- <glyph glyph-name="ion-arrow-left-c" unicode="&#xf108;" horiz-adv-x="352"
-d="M109 320c12 12 32 12 44 0s12 -34 0 -46l-49 -50h217c17 0 31 -14 31 -32s-14 -32 -31 -32h-217l48 -50c12 -12 12 -34 0 -46s-31 -12 -43 0l-100 106c-6 6 -9 13 -9 22s3 17 9 23z" />
- <glyph glyph-name="ion-arrow-move" unicode="&#xf263;"
-d="M448 192l-96 -96v76h-109l1 -108h76l-96 -96l-96 96h76v108h-108v-76l-96 96l96 96v-76h108v108h-76l96 96l96 -96h-76v-108h108v76z" />
- <glyph glyph-name="ion-arrow-resize" unicode="&#xf264;" horiz-adv-x="320"
-d="M192 352h128v-128l-50 50l-9 -9l-183 -183l50 -50h-128v128l50 -50l128 128v0l64 64z" />
- <glyph glyph-name="ion-arrow-return-left" unicode="&#xf265;" horiz-adv-x="384"
-d="M128 352v-64h248c4 0 8 -4 8 -8v-240c0 -4 -4 -8 -8 -8h-304c-4 0 -8 4 -8 8v48c0 4 4 8 8 8h248v128h-192v-64l-128 96z" />
- <glyph glyph-name="ion-arrow-return-right" unicode="&#xf266;" horiz-adv-x="384"
-d="M384 256l-128 -96v64h-192v-128h248c4 0 8 -4 8 -8v-48c0 -4 -4 -8 -8 -8h-304c-4 0 -8 4 -8 8v240c0 4 4 8 8 8h248v64z" />
- <glyph glyph-name="ion-arrow-right-a" unicode="&#xf109;" horiz-adv-x="384"
-d="M384 192l-192 -192v112h-192v160h192v112z" />
- <glyph glyph-name="ion-arrow-right-b" unicode="&#xf10a;" horiz-adv-x="192"
-d="M25 35c-2 -2 -6 -3 -9 -3c-9 0 -16 8 -16 17v0v286v0c0 9 7 17 16 17c3 0 6 -1 8 -3l3 -2l156 -136c5 -5 9 -11 9 -19s-4 -14 -9 -19l-156 -136z" />
- <glyph glyph-name="ion-arrow-right-c" unicode="&#xf10b;" horiz-adv-x="352"
-d="M243 320l100 -105c6 -6 9 -14 9 -23s-3 -16 -9 -22l-100 -106c-12 -12 -31 -12 -43 0s-12 34 0 46l48 50h-217c-17 0 -31 14 -31 32s14 32 31 32h217l-49 50c-12 12 -12 34 0 46s32 12 44 0z" />
- <glyph glyph-name="ion-arrow-shrink" unicode="&#xf267;" horiz-adv-x="384"
-d="M384 356l-82 -82l50 -50h-128v128l50 -50l82 82zM384 28l-28 -28l-82 82l-50 -50v128h128l-50 -50zM0 28l82 82l-50 50h128v-128l-50 50l-82 -82zM0 356l28 28l82 -82l50 50v-128h-128l50 50z" />
- <glyph glyph-name="ion-arrow-swap" unicode="&#xf268;" horiz-adv-x="384"
-d="M0 120c0 4 4 8 8 8h248v64l128 -96l-128 -96v64h-248c-4 0 -8 4 -8 8v48zM384 264c0 -4 -4 -8 -8 -8h-248v-64l-128 96l128 96v-64h248c4 0 8 -4 8 -8v-48z" />
- <glyph glyph-name="ion-arrow-up-a" unicode="&#xf10c;" horiz-adv-x="384"
-d="M192 384l192 -192h-112v-192h-160v192h-112z" />
- <glyph glyph-name="ion-arrow-up-b" unicode="&#xf10d;" horiz-adv-x="320"
-d="M317 121c2 -2 3 -6 3 -9c0 -9 -8 -16 -17 -16v0h-286v0c-9 0 -17 7 -17 16c0 3 1 6 3 8l2 3l136 156c5 5 11 9 19 9s14 -4 19 -9l136 -156z" />
- <glyph glyph-name="ion-arrow-up-c" unicode="&#xf10e;" horiz-adv-x="274"
-d="M9 259l105 100c6 6 14 9 23 9s16 -3 22 -9l106 -100c12 -12 12 -31 0 -43s-34 -12 -46 0l-50 48v-217c0 -17 -14 -31 -32 -31s-32 14 -32 31v217l-50 -49c-12 -12 -34 -12 -46 0s-12 32 0 44z" />
- <glyph glyph-name="ion-asterisk" unicode="&#xf314;"
-d="M448 224v-64l-186 10l104 -170l-56 -32l-86 176l-86 -176l-56 32l104 170l-186 -10v64l187 -7l-109 167l60 32l86 -176l86 176l60 -32l-109 -167z" />
- <glyph glyph-name="ion-at" unicode="&#xf10f;"
-d="M422 41c-24 -25 -52 -43 -85 -55s-69 -18 -105 -18c-35 0 -66 6 -95 17s-53 26 -73 46s-36 43 -47 71s-17 58 -17 90s6 62 18 89s29 51 50 71s46 35 74 47c28 11 58 17 90 17c28 0 55 -4 81 -12s49 -20 69 -36s36 -36 48 -60s18 -53 18 -85c0 -24 -3 -46 -10 -64
-s-16 -34 -27 -46s-24 -22 -38 -28s-29 -10 -45 -10s-29 4 -39 12s-15 17 -15 29h-3c-6 -10 -15 -19 -28 -28s-28 -13 -46 -13c-28 0 -49 9 -64 27s-23 42 -23 71c0 17 3 34 9 50s14 31 24 44s23 23 38 31s31 12 49 12c15 0 27 -4 38 -10c10 -6 18 -15 21 -24h1l5 24h54
-l-24 -113c-1 -6 -2 -12 -3 -19s-2 -13 -2 -19c0 -7 1 -13 4 -18s7 -7 15 -7c16 0 29 9 39 26s16 40 16 68c0 24 -4 45 -12 64s-20 34 -34 47s-32 23 -52 29s-41 9 -65 9c-26 0 -49 -4 -70 -13s-39 -22 -54 -38s-27 -34 -35 -56c-8 -21 -13 -44 -13 -69c0 -26 4 -51 13 -72
-s21 -39 37 -54s35 -27 57 -35s46 -12 72 -12c33 0 61 6 85 16s45 25 65 43zM231 260c-10 0 -18 -2 -25 -8s-14 -13 -19 -22s-8 -18 -11 -28s-4 -20 -4 -30c0 -5 0 -10 1 -16c1 -5 3 -10 6 -15s7 -8 12 -11s11 -5 19 -5c11 0 20 3 28 8s14 13 19 21s9 16 11 26s3 19 3 27
-c0 6 0 13 -1 19s-4 12 -7 17s-7 9 -12 12s-12 5 -20 5z" />
- <glyph glyph-name="ion-backspace-outline" unicode="&#xf3be;" horiz-adv-x="512"
-d="M413 116c2 -2 3 -4 3 -6s-1 -4 -3 -6l-21 -22c-2 -2 -4 -2 -6 -2s-4 0 -6 2l-76 77l-76 -77c-2 -2 -4 -2 -6 -2s-4 0 -6 2l-21 22c-2 2 -3 4 -3 6s1 4 3 6l76 76l-77 76c-3 3 -3 9 0 12l22 22c2 2 4 2 6 2s4 0 6 -2l76 -76l76 76c2 2 4 2 6 2s4 0 6 -2l22 -22
-c3 -3 3 -9 0 -12l-77 -76zM499 354c9 -9 13 -20 13 -33v-256c0 -27 -20 -49 -46 -49h-298c-13 0 -24 3 -34 9c-9 5 -16 11 -23 20v0l-1 1l-110 146l110 148c14 19 34 28 58 28h298c13 0 24 -5 33 -14zM480 65v256c0 9 -5 15 -14 15h-298c-11 0 -22 -3 -32 -16l-96 -128
-l96 -128c8 -10 17 -16 32 -16h298c9 0 14 8 14 17z" />
- <glyph glyph-name="ion-backspace" unicode="&#xf3bf;" horiz-adv-x="512"
-d="M499 354c9 -9 13 -20 13 -33v-256c0 -27 -20 -49 -46 -49h-298c-13 0 -24 3 -34 9c-9 5 -16 11 -23 20v0l-1 1l-110 146l110 148c14 19 34 28 58 28h298c13 0 24 -5 33 -14zM413 116l-76 76l77 76c3 3 3 9 0 12l-22 22c-2 2 -4 2 -6 2s-4 0 -6 -2l-76 -76l-76 76
-c-2 2 -4 2 -6 2s-4 0 -6 -2l-22 -22c-3 -3 -3 -9 0 -12l77 -76l-76 -76c-2 -2 -3 -4 -3 -6s1 -4 3 -6l21 -22c2 -2 4 -2 6 -2s4 0 6 2l76 77l76 -77c2 -2 4 -2 6 -2s4 0 6 2l21 22c2 2 3 4 3 6s-1 4 -3 6z" />
- <glyph glyph-name="ion-bag" unicode="&#xf110;"
-d="M416 288l32 -320h-448l32 320h64v4c0 68 56 124 124 124h8c68 0 124 -56 124 -124v-4h64zM128 292v-4h192v4c0 51 -41 92 -92 92v0h-8c-51 0 -92 -41 -92 -92zM36 0h376l-25 256h-35v-36c10 -6 16 -16 16 -28c0 -18 -14 -32 -32 -32s-32 14 -32 32c0 12 6 22 16 28v36
-h-192v-36c10 -6 16 -16 16 -28c0 -18 -14 -32 -32 -32s-32 14 -32 32c0 12 6 22 16 28v36h-35z" />
- <glyph glyph-name="ion-battery-charging" unicode="&#xf111;"
-d="M10 64c-6 0 -10 4 -10 10v236c0 6 4 10 10 10h381c6 0 10 -4 10 -10v-54h37c6 0 10 -4 10 -10v-108c0 -6 -4 -10 -10 -10h-37v-54c0 -6 -4 -10 -10 -10h-381zM225 288l-100 -111h61l-27 -81l100 111h-61z" />
- <glyph glyph-name="ion-battery-empty" unicode="&#xf112;"
-d="M438 256c6 0 10 -4 10 -10v-108c0 -6 -4 -10 -10 -10h-37v-54c0 -6 -4 -10 -10 -10h-381c-6 0 -10 4 -10 10v236c0 6 4 10 10 10h381c6 0 10 -4 10 -10v-54h37zM416 160v64h-15h-32v32v32h-337v-192h337v32v32h32h15z" />
- <glyph glyph-name="ion-battery-full" unicode="&#xf113;"
-d="M438 256c6 0 10 -4 10 -10v-108c0 -6 -4 -10 -10 -10h-37v-54c0 -6 -4 -10 -10 -10h-381c-6 0 -10 4 -10 10v236c0 6 4 10 10 10h381c6 0 10 -4 10 -10v-54h37z" />
- <glyph glyph-name="ion-battery-half" unicode="&#xf114;"
-d="M438 256c6 0 10 -4 10 -10v-108c0 -6 -4 -10 -10 -10h-37v-54c0 -6 -4 -10 -10 -10h-381c-6 0 -10 4 -10 10v236c0 6 4 10 10 10h381c6 0 10 -4 10 -10v-54h37zM416 160v64h-15h-32v32v32h-81l32 -192h49v32v32h32h15z" />
- <glyph glyph-name="ion-battery-low" unicode="&#xf115;"
-d="M10 64c-6 0 -10 4 -10 10v236c0 6 4 10 10 10h381c6 0 10 -4 10 -10v-54h37c6 0 10 -4 10 -10v-108c0 -6 -4 -10 -10 -10h-37v-54c0 -6 -4 -10 -10 -10h-381zM369 288h-209l32 -192h177v32v32h32h15v64h-15h-32v32v32z" />
- <glyph glyph-name="ion-beaker" unicode="&#xf269;" horiz-adv-x="384"
-d="M80 256h240v-224c0 -9 -7 -16 -16 -16h-208c-9 0 -16 7 -16 16v224zM296 104v48c0 4 -4 8 -8 8s-8 -4 -8 -8v-48c0 -4 4 -8 8 -8s8 4 8 8zM288 176c4 0 8 4 8 8s-4 8 -8 8s-8 -4 -8 -8s4 -8 8 -8zM381 416c3 0 3 -2 3 -3s-2 -3 -3 -5s-13 -20 -13 -40v-336
-c0 -35 -29 -64 -64 -64h-208c-35 0 -64 29 -64 64v307c0 32 -2 33 -32 37c0 12 11 40 65 40h316zM336 368c0 5 0 16 1 16h-273c-1 0 -3 0 -4 -1c5 -7 4 -32 4 -44v-307c0 -18 14 -32 32 -32h210c17 0 30 14 30 32v336z" />
- <glyph glyph-name="ion-beer" unicode="&#xf26a;"
-d="M384 288c35 0 64 -29 64 -64v-96c0 -35 -29 -64 -64 -64h-32v-80c0 -9 -7 -16 -16 -16h-256c-9 0 -16 7 -16 16v223c-26 0 -48 22 -48 48v54v1c-10 11 -16 26 -16 42c0 35 29 64 64 64c18 0 34 -8 46 -20c10 12 26 20 43 20c14 0 27 -6 37 -14c12 9 26 14 42 14
-c17 0 34 -6 46 -16c11 10 26 16 42 16c35 0 64 -29 64 -64c0 -24 -18 -44 -32 -48v-16h32zM296 144c4 0 8 3 8 8v0v48c0 4 -4 8 -8 8s-8 -4 -8 -8v-48c0 -3 2 -6 4 -7c1 -1 2 -1 4 -1zM303 220c1 2 1 4 1 6s-1 4 -3 5s-4 1 -6 1s-4 -2 -5 -4s-2 -4 -2 -6s2 -4 4 -5
-s4 -1 6 -1s4 2 5 4zM320 288v32h-20c-3 -8 -7 -16 -13 -23c-13 -16 -33 -25 -55 -25c-26 0 -48 13 -61 33c-6 -2 -12 -3 -18 -3c-12 0 -23 4 -32 10c-2 1 -3 3 -5 4c-1 -2 -2 -3 -3 -5c-5 -6 -11 -10 -17 -14v-32v-9h80c0 4 4 8 8 8s8 -4 8 -8h128v32zM351 343c1 3 1 6 1 9
-c0 18 -14 32 -32 32c-9 0 -17 -4 -23 -10c-2 -2 -6 -5 -16 -6h-8c-6 1 -12 3 -14 5c-7 7 -16 11 -27 11c-9 0 -18 -4 -25 -9l-7 -7c0 -1 0 -1 -1 -2c-3 -3 -7 -5 -11 -5c-5 0 -8 3 -11 6c-1 2 -2 3 -3 5s-3 4 -5 6c-4 4 -10 6 -16 6c-10 0 -18 -9 -25 -16
-c-7 -8 -27 -8 -34 0s-18 16 -30 16c-18 0 -32 -14 -32 -32c0 -2 1 -5 1 -7c2 -9 7 -17 15 -21v-34v-35c0 -9 7 -16 16 -16v26v23v32c10 0 18 4 24 11c2 2 3 4 4 6c0 0 6 10 12 11s20 6 30 -5c4 -5 11 -9 19 -9c3 0 5 1 7 2c3 1 7 2 9 4v0c3 2 6 4 10 4c7 0 12 -4 14 -10
-c0 0 1 -1 1 -2c1 -3 1 -5 3 -8c7 -12 20 -20 35 -20c13 0 25 6 32 16c5 7 8 15 8 24s9 8 9 8h7h48c6 0 13 -3 15 -9zM416 128v96c0 18 -14 32 -32 32h-32v-160h32c18 0 32 14 32 32zM128 280c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM288 280c0 5 3 8 8 8s8 -3 8 -8
-s-3 -8 -8 -8s-8 3 -8 8z" />
- <glyph glyph-name="ion-bluetooth" unicode="&#xf116;" horiz-adv-x="256"
-d="M12 304c16 16 18 13 19 12l68 -65v0v0c2 -2 10 -10 10 -3v156v0v2c0 6 6 10 12 10c4 0 7 -2 9 -4v0s117 -113 122 -117s5 -10 1 -14l-84 -81s-4 -4 -4 -8s4 -8 4 -8l84 -81c4 -4 4 -10 -1 -14s-122 -117 -122 -117v0c-2 -2 -5 -4 -9 -4c-6 0 -12 4 -12 10v2v0v156
-s-8 -1 -10 -3v0v-1l-68 -64c-1 -1 -3 -4 -19 12s-12 17 -11 18s90 86 90 86s4 3 4 8v0c0 5 -4 8 -4 8s-89 85 -90 86s-5 2 11 18zM152 328v-79c0 -8 8 -1 10 1l30 30s3 5 3 7s-1 5 -3 7l-30 30c-2 2 -10 11 -10 4zM152 135v-79s8 2 10 4l30 30c2 2 3 5 3 7s-1 5 -3 7l-30 30
-c-2 2 -10 9 -10 1z" />
- <glyph glyph-name="ion-bonfire" unicode="&#xf315;" horiz-adv-x="384"
-d="M207 97l15 -89c1 -3 1 -5 1 -8c0 -18 -14 -32 -32 -32s-32 14 -32 32c0 2 0 5 1 7l15 92v0c2 7 8 13 16 13s15 -7 16 -15zM242 93v0v0v0zM329 58c9 -8 10 -25 0 -35s-27 -9 -35 0c-1 1 -2 3 -3 4l-49 66c-3 5 -2 11 2 15c5 5 10 5 16 1l64 -47c2 -1 3 -3 5 -4zM309 113v0
-v0v0zM371 126c9 -1 13 -7 13 -19c0 -9 -10 -14 -18 -12l-57 18v0v0c-3 2 -6 5 -5 9s4 7 8 6zM75 113v0v0v0zM75 113v0l-58 -18c-8 -2 -17 3 -17 12c0 12 3 18 12 19l60 2c4 1 7 -2 8 -6s-2 -7 -5 -9v0zM124 109c5 4 11 4 16 -1c4 -4 5 -10 2 -15l-49 -66c-1 -1 -2 -3 -3 -4
-c-10 -10 -25 -10 -35 0s-10 25 0 35c2 2 3 3 5 4zM288 320c0 -32 -9 -58 -50 -86c-37 -26 -94 -46 -110 -106c0 0 -58 24 -48 96s124 106 112 192c24 0 96 -35 96 -96zM288 192c-16 -50 -44 -64 -80 -64c-15 0 -32 9 -43 26c12 15 28 26 47 37c9 5 20 10 29 16
-c21 14 38 31 47 49c5 -15 5 -48 0 -64zM88 288c-6 4 -9 14 -8 27c2 22 34 39 32 69c14 2 31 -3 42 -24c-5 -11 -15 -21 -28 -34s-26 -22 -38 -38z" />
- <glyph glyph-name="ion-bookmark" unicode="&#xf26b;" horiz-adv-x="192"
-d="M184 384c4 0 8 -4 8 -8v-56h-192v56c0 4 4 8 8 8h176zM0 0v304h192v-304l-96 96z" />
- <glyph glyph-name="ion-bowtie" unicode="&#xf3c0;"
-d="M192 236c0 0 8 5 20 7c21 4 39 5 47 -9c10 -17 19 -53 17 -85c-1 -17 -5 -22 -5 -22s-15 -10 -47 -7c-35 3 -40 15 -40 15s5 12 8 43s0 58 0 58zM152 163c-17 -4 -38 -10 -38 -10s45 4 64 9c-4 -21 -10 -34 -10 -34s-83 -80 -116 -80c-28 0 -52 68 -52 144s26 144 52 144
-c35 0 106 -57 128 -97c0 0 3 -16 2 -32c-10 5 -24 10 -44 14c-28 6 -42 3 -42 3s18 -4 57 -17c15 -5 22 -8 29 -10c0 -3 -1 -7 -1 -10c0 -5 0 -10 -1 -15c-5 -2 -15 -6 -28 -9zM396 336c26 0 52 -68 52 -144s-24 -144 -52 -144c-37 0 -104 68 -112 79c0 0 4 5 5 22v9
-c16 -7 70 -13 70 -13s-21 6 -40 11c-13 4 -25 8 -30 10c-1 11 -2 23 -4 33c17 11 69 34 69 34s-15 -2 -35 -9c-14 -5 -29 -11 -37 -14c-3 10 -7 18 -10 24c0 1 -1 4 -1 4v1c22 40 89 97 125 97z" />
- <glyph glyph-name="ion-briefcase" unicode="&#xf26c;"
-d="M240 176v8h208v-176c0 -4 -4 -8 -8 -8h-432c-4 0 -8 4 -8 8v176h208v-8h32zM440 304c4 0 8 -4 8 -8v-96h-208v8h-32v-8h-208v96c0 4 4 8 8 8h120v31c1 28 22 49 51 49h90c30 0 50 -21 51 -49v-31h120zM288 332v1c0 10 -9 19 -19 19h-90c-10 0 -19 -9 -19 -19v-1v-1v-27
-h128v27v1z" />
- <glyph glyph-name="ion-bug" unicode="&#xf2be;"
-d="M343 321c-6 -16 -16 -31 -28 -43c-24 -24 -57 -37 -91 -37s-67 13 -91 37c-12 12 -22 27 -28 43c29 39 72 63 119 63s90 -24 119 -63zM95 305c22 -45 68 -77 121 -80v-225c-40 2 -77 22 -104 54c-7 -6 -10 -9 -13 -15c8 -9 7 -22 -1 -31c-9 -10 -24 -11 -34 -2
-s-11 24 -2 34l3 3s2 1 2 1c4 13 13 25 27 36c-15 26 -26 57 -29 90c-7 0 -12 -2 -17 -3c-1 -13 -11 -23 -24 -23s-24 11 -24 24s11 24 24 24h3c4 2 8 5 12 6c7 2 14 4 25 4c1 23 6 45 13 65c-6 4 -11 7 -15 11c-6 5 -11 13 -14 19c-1 0 -3 1 -4 2c-12 6 -15 21 -9 33
-s21 15 33 9c11 -6 15 -20 10 -31c2 -3 3 -7 4 -8c2 -2 5 -3 8 -5c2 3 3 5 5 8zM424 192c13 0 24 -11 24 -24s-11 -24 -24 -24s-23 10 -24 23c-5 1 -10 3 -17 3c-3 -33 -14 -64 -29 -90c14 -11 23 -23 27 -36c0 0 1 0 2 -1l3 -3c9 -10 8 -25 -2 -34s-25 -8 -34 2
-c-8 9 -9 22 -1 31c-3 6 -6 9 -13 15c-27 -32 -64 -52 -104 -54v225c53 3 99 35 121 80c2 -3 3 -5 5 -8c3 2 6 3 8 5c1 1 2 5 4 8c-5 11 -1 25 10 31c12 6 27 3 33 -9s3 -27 -9 -33c-1 -1 -3 -2 -4 -2c-3 -6 -8 -14 -14 -19c-4 -4 -9 -7 -15 -11c7 -20 12 -42 13 -65
-c11 0 18 -2 25 -4c4 -1 8 -4 12 -6h3z" />
- <glyph glyph-name="ion-calculator" unicode="&#xf26d;" horiz-adv-x="320"
-d="M304 416c9 0 16 -7 16 -16v-416c0 -9 -7 -16 -16 -16h-288c-9 0 -16 7 -16 16v416c0 9 7 16 16 16h288zM48 240v-32h32v32h-32zM48 176v-32h32v32h-32zM48 112v-32h32v32h-32zM144 16v32h-96v-32h96zM144 80v32h-32v-32h32zM144 144v32h-32v-32h32zM144 208v32h-32v-32
-h32zM208 16v32h-32v-32h32zM208 80v32h-32v-32h32zM208 144v32h-32v-32h32zM208 208v32h-32v-32h32zM272 16v96h-32v-96h32zM272 144v32h-32v-32h32zM272 208v32h-32v-32h32zM272 288v80h-224v-80h224z" />
- <glyph glyph-name="ion-calendar" unicode="&#xf117;"
-d="M112 320c-18 0 -32 14 -32 32v32c0 18 14 32 32 32s32 -14 32 -32v-32c0 -18 -14 -32 -32 -32zM336 320c-18 0 -32 14 -32 32v32c0 18 14 32 32 32s32 -14 32 -32v-32c0 -18 -14 -32 -32 -32zM440 384c4 0 8 -4 8 -8v-400c0 -4 -4 -8 -8 -8h-432c-4 0 -8 4 -8 8v400
-c0 4 4 8 8 8h56v-41c0 -22 24 -39 48 -39s48 17 48 39v41h128v-41c0 -22 25 -39 49 -39s47 17 47 39v41h56zM400 16v256h-352v-256h352z" />
- <glyph glyph-name="ion-camera" unicode="&#xf118;" horiz-adv-x="416"
-d="M382 301c18 0 34 -14 34 -33v-202c0 -19 -16 -34 -34 -34h-348c-19 0 -34 15 -34 34v202c0 19 15 33 34 33h69l39 40v0c6 7 15 11 25 11h84c9 0 17 -4 23 -10v0v0v0l41 -41h67zM208 82c51 0 92 42 92 93s-41 93 -92 93s-92 -42 -92 -93s41 -93 92 -93zM376 248
-c8 0 14 6 14 14s-6 14 -14 14s-14 -6 -14 -14s6 -14 14 -14zM208 245c38 0 70 -31 70 -70s-32 -70 -70 -70c-39 0 -70 31 -70 70s31 70 70 70z" />
- <glyph glyph-name="ion-card" unicode="&#xf119;"
-d="M420 352c16 0 28 -12 28 -28v0v-264v0c0 -16 -12 -28 -28 -28h-392c-16 0 -28 12 -28 28v0v0v264v0v0c0 16 12 28 28 28h392zM45 320c-7 0 -12 -5 -13 -12v-20h384v20c-1 7 -6 12 -13 12h-358zM403 64c7 0 12 5 13 12v116h-384v-116c1 -7 6 -12 13 -12h358zM64 128v16
-h192v-16h-192zM64 96v16h96v-16h-96zM320 96v48h64v-48h-64z" />
- <glyph glyph-name="ion-cash" unicode="&#xf316;" horiz-adv-x="512"
-d="M0 352h512v-256h-512v256zM193 128c-20 23 -33 58 -33 96s13 73 33 96h-97c0 -35 -29 -64 -64 -64v-80c27 0 48 -21 48 -48h113zM298 187c3 4 4 9 4 15c0 3 0 5 -1 8s-2 6 -4 8s-4 4 -7 6s-6 4 -10 5c-1 0 -4 1 -7 2s-5 0 -8 1v31c2 -1 5 -2 7 -3c4 -3 6 -7 7 -13h20
-c0 5 -2 9 -4 13s-5 8 -9 11s-9 5 -14 6c-2 1 -5 2 -7 2v9h-18v-9c-2 0 -4 -1 -6 -2c-5 -1 -10 -2 -14 -5s-7 -6 -9 -10s-4 -9 -4 -14c0 -3 0 -5 1 -8s2 -5 4 -7s5 -5 8 -7s7 -4 12 -5c3 -1 6 0 8 -1v-35c-3 1 -6 2 -9 4s-5 4 -6 7s-2 6 -2 9h-20c0 -5 2 -11 4 -16
-c3 -5 6 -8 10 -11s9 -6 15 -7c3 -1 5 -2 8 -2v-9h18v9c3 0 6 1 9 2c5 1 10 2 14 5s7 7 10 11zM480 176v80c-35 0 -64 29 -64 64h-97c20 -23 33 -58 33 -96s-13 -73 -33 -96h113c0 27 22 48 48 48zM64 224c0 21 11 32 32 32s32 -11 32 -32s-11 -32 -32 -32s-32 11 -32 32z
-M384 224c0 21 11 32 32 32s32 -11 32 -32s-11 -32 -32 -32s-32 11 -32 32zM273 213c2 -1 4 -2 6 -4s3 -5 3 -9c0 -2 0 -4 -1 -6s-2 -4 -4 -5s-5 -3 -8 -4c-1 0 -2 -1 -4 -1v31c3 -1 6 -1 8 -2zM236 257c1 2 3 3 5 4s4 2 6 2v-26c-4 1 -7 3 -9 5s-4 4 -4 8c0 3 1 5 2 7zM0 32
-v32h512v-32h-512z" />
- <glyph glyph-name="ion-chatbox-working" unicode="&#xf11a;" horiz-adv-x="416"
-d="M76 48c-42 0 -76 31 -76 71v209c0 40 34 72 76 72h264c42 0 76 -32 76 -72v-209c0 -40 -34 -71 -76 -71h-4v-64s-79 54 -86 59s-7 5 -21 5h-153zM304 256c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32zM208 256c-18 0 -32 -14 -32 -32s14 -32 32 -32
-s32 14 32 32s-14 32 -32 32zM112 256c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32z" />
- <glyph glyph-name="ion-chatbox" unicode="&#xf11b;" horiz-adv-x="416"
-d="M76 48c-42 0 -76 31 -76 71v209c0 40 34 72 76 72h264c42 0 76 -32 76 -72v-209c0 -40 -34 -71 -76 -71h-4v-64s-79 54 -86 59s-7 5 -21 5h-153z" />
- <glyph glyph-name="ion-chatboxes" unicode="&#xf11c;" horiz-adv-x="416"
-d="M246 82l26 -18c-4 -21 -29 -32 -52 -32h-90c-8 0 -11 -2 -13 -3l-53 -45v48h-16c-26 0 -48 16 -48 41v129c0 25 20 45 46 45h2v-101c0 -33 29 -59 64 -59h117c10 0 14 -3 17 -5zM353 400c35 0 63 -27 63 -60v-168c0 -33 -28 -60 -63 -60h-17v-64l-75 60c-2 2 -7 4 -17 4
-h-101c-35 0 -63 27 -63 60v98v70c0 33 21 60 56 60h217z" />
- <glyph glyph-name="ion-chatbubble-working" unicode="&#xf11d;" horiz-adv-x="416"
-d="M208 -1c-115 0 -208 89 -208 200s93 201 208 201s208 -90 208 -201c0 -40 -12 -77 -33 -108c-1 -1 -2 -3 -3 -4v0c-2 -4 -4 -10 -4 -15l22 -88l-84 31c-4 2 -8 2 -12 2s-7 -1 -11 -2v0c-1 0 -1 -1 -2 -1c-25 -10 -52 -15 -81 -15zM304 224c-18 0 -32 -14 -32 -32
-s14 -32 32 -32s32 14 32 32s-14 32 -32 32zM208 224c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32zM112 224c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32z" />
- <glyph glyph-name="ion-chatbubble" unicode="&#xf11e;" horiz-adv-x="416"
-d="M208 -1c-115 0 -208 89 -208 200s93 201 208 201s208 -90 208 -201c0 -40 -12 -77 -33 -108c-1 -1 -2 -3 -3 -4v0c-2 -4 -4 -10 -4 -15l22 -88l-84 31c-4 2 -8 2 -12 2s-7 -1 -11 -2v0c-1 0 -1 -1 -2 -1c-25 -10 -52 -15 -81 -15z" />
- <glyph glyph-name="ion-chatbubbles" unicode="&#xf11f;" horiz-adv-x="416"
-d="M25 57c-1 1 0 2 -1 3c-15 22 -24 49 -24 77c0 42 19 80 49 106c-2 -11 -4 -22 -4 -34c0 -92 78 -168 174 -168c15 0 30 2 44 6c-27 -32 -69 -53 -115 -53c-20 0 -40 5 -58 12h-1v0c-2 1 -5 2 -8 2s-6 -1 -9 -2l-56 -22l12 63c0 4 -1 7 -3 10v0zM242 400
-c96 0 174 -76 174 -168c0 -33 -11 -64 -28 -90c-1 -1 -1 -2 -2 -3v0c-2 -4 -3 -8 -3 -12l17 -74l-69 26c-3 1 -6 2 -10 2c-3 0 -6 -1 -9 -2v0l-2 -1c-8 -3 -16 -5 -24 -7c-14 -4 -29 -6 -44 -6c-96 0 -173 75 -173 167c0 12 1 24 3 35c16 76 86 133 170 133z" />
- <glyph glyph-name="ion-checkmark-circled" unicode="&#xf120;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM339 267c1 1 1 2 1 3s0 3 -1 4l-31 24c-1 1 -3 1 -4 1s-2 0 -3 -1l-111 -143s-44 42 -45 43s-4 3 -6 3s-3 -2 -4 -3l-25 -25l-1 -1c-1 -1 -1 -3 -1 -4s0 -2 1 -3l2 -1
-s78 -75 79 -76s3 -3 5 -3s4 2 5 3z" />
- <glyph glyph-name="ion-checkmark-round" unicode="&#xf121;" horiz-adv-x="416"
-d="M400 376c17 -13 22 -39 9 -57l-207 -302c-13 -18 -37 -22 -54 -9s-137 147 -137 147c-15 16 -15 42 1 58s40 15 55 -2l99 -107l180 263c13 18 37 22 54 9z" />
- <glyph glyph-name="ion-checkmark" unicode="&#xf122;" horiz-adv-x="416"
-d="M414 338c1 -2 2 -4 2 -6s-1 -4 -2 -6l-249 -320c-2 -2 -5 -6 -9 -6s-8 3 -10 5s-141 136 -141 136l-3 3c-1 2 -2 4 -2 6s1 3 2 5l2 2c14 15 42 44 44 46s4 6 8 6s8 -4 10 -6s80 -78 80 -78l200 257c2 2 4 2 6 2s5 -1 7 -2z" />
- <glyph glyph-name="ion-chevron-down" unicode="&#xf123;"
-d="M224 150v0v0l174 167c4 4 12 4 16 0l31 -30c4 -4 4 -12 0 -16l-213 -204c-2 -2 -5 -3 -8 -3s-6 1 -8 3l-213 204c-4 4 -4 12 0 16l31 30c4 4 12 4 16 0z" />
- <glyph glyph-name="ion-chevron-left" unicode="&#xf124;" horiz-adv-x="256"
-d="M86 192l167 -174c4 -4 4 -12 0 -16l-30 -31c-4 -4 -12 -4 -16 0l-204 213c-2 2 -3 5 -3 8s1 6 3 8l204 213c4 4 12 3 16 -1l30 -30c4 -4 4 -12 0 -16l-167 -174v0v0z" />
- <glyph glyph-name="ion-chevron-right" unicode="&#xf125;" horiz-adv-x="256"
-d="M170 192v0v0l-167 174c-4 4 -4 12 0 16l30 30c4 4 12 5 16 1l204 -213c2 -2 3 -5 3 -8s-1 -6 -3 -8l-204 -213c-4 -4 -12 -4 -16 0l-30 31c-4 4 -4 12 0 16z" />
- <glyph glyph-name="ion-chevron-up" unicode="&#xf126;"
-d="M224 234l-174 -167c-4 -4 -12 -4 -16 0l-31 30c-4 4 -4 12 0 16l213 204c2 2 5 3 8 3s6 -1 8 -3l213 -204c4 -4 4 -12 0 -16l-31 -30c-4 -4 -12 -4 -16 0l-174 167v0v0z" />
- <glyph glyph-name="ion-clipboard" unicode="&#xf127;" horiz-adv-x="352"
-d="M80 288c2 20 10 35 28 40l1 1c12 3 21 7 21 20v21c0 26 21 46 46 46s46 -20 46 -46v-21c0 -13 9 -18 21 -21h2c18 -5 25 -20 27 -40h-192zM176 384c-8 0 -13 -6 -13 -14s5 -14 13 -14s14 6 14 14s-6 14 -14 14zM325 384c15 0 27 -12 27 -28v-360c0 -16 -12 -28 -27 -28
-h-149h-148c-15 0 -28 12 -28 28v360c0 16 13 28 28 28h73v-13c0 -11 -9 -19 -19 -19h-37c-7 0 -12 -6 -12 -13v-327c0 -6 5 -12 11 -12h265c6 0 11 6 11 12v327c0 7 -5 13 -12 13h-37c-10 0 -20 8 -20 19v13h74zM64 224v32h112v-32h-112zM64 32v32h160v-32h-160zM64 96v32
-h129v-32h-129zM64 160v32h208v-32h-208z" />
- <glyph glyph-name="ion-clock" unicode="&#xf26e;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM360 56c10 10 19 21 26 33l-27 16l8 14l27 -16c13 25 21 52 22 81h-32v16h32c-1 29 -9 56 -22 81l-27 -16l-8 14l27 16c-7 12 -16 23 -26 33s-21 19 -33 26l-16 -27l-14 8
-l16 27c-25 13 -52 21 -81 22v-32h-16v32c-29 -1 -56 -9 -81 -22l16 -27l-14 -8l-16 27c-12 -7 -23 -16 -33 -26s-19 -21 -26 -33l27 -16l-8 -14l-27 16c-13 -25 -21 -52 -22 -81h32v-16h-32c1 -29 9 -56 22 -81l27 16l8 -14l-27 -16c7 -12 16 -23 26 -33s21 -19 33 -26
-l16 27l14 -8l-16 -27c25 -13 52 -21 81 -22v32h16v-32c29 1 56 9 81 22l-16 27l14 8l16 -27c12 7 23 16 33 26zM368 207v-32h-117c-6 -9 -16 -15 -27 -15c-18 0 -32 14 -32 32c0 12 6 22 16 28v68h32v-68c5 -3 9 -8 12 -13h116z" />
- <glyph glyph-name="ion-close-circled" unicode="&#xf128;"
-d="M224 415c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM332 116l-75 75l76 75c3 3 3 9 0 12l-22 21c-2 2 -4 3 -6 3s-3 -1 -5 -3l-76 -74l-76 74c-2 2 -3 3 -5 3s-4 -1 -6 -3l-21 -21c-3 -3 -3 -9 0 -12l76 -75l-76 -76
-c-2 -1 -2 -3 -2 -5s0 -4 2 -6l21 -22c2 -2 4 -2 6 -2s4 0 6 2l75 76l76 -75c2 -2 3 -3 5 -3s4 1 6 3l21 21c2 1 3 4 3 6s-1 4 -3 6z" />
- <glyph glyph-name="ion-close-round" unicode="&#xf129;" horiz-adv-x="384"
-d="M374 61c14 -14 14 -37 0 -51s-37 -14 -51 0l-131 131l-131 -131c-14 -14 -36 -14 -50 0s-14 37 0 51l130 131l-130 131c-14 14 -14 37 0 51s36 14 50 0l131 -131l131 131c14 14 37 14 51 0s14 -37 0 -51l-131 -131z" />
- <glyph glyph-name="ion-close" unicode="&#xf12a;" horiz-adv-x="384"
-d="M380 61c3 -3 4 -6 4 -10s-1 -7 -4 -10l-38 -37c-3 -3 -5 -4 -9 -4s-7 1 -10 4l-131 131l-131 -131c-3 -3 -5 -4 -9 -4s-7 1 -10 4l-38 37c-3 3 -4 6 -4 10s1 7 4 10l132 131l-132 130c-5 5 -5 15 0 20l37 38c3 2 6 4 10 4s7 -1 10 -4l131 -130l131 130c3 2 6 4 10 4
-s7 -1 10 -4l37 -38c5 -5 5 -14 0 -19l-132 -130z" />
- <glyph glyph-name="ion-closed-captioning" unicode="&#xf317;" horiz-adv-x="512"
-d="M0 384h512v-384h-512v384zM464 192c0 27 0 44 -4 80s-23 56 -59 60s-91 4 -138 4h-7h-7c-47 0 -102 0 -138 -4s-55 -24 -59 -60s-4 -53 -4 -80s2 -47 4 -80s19 -56 59 -60s96 -4 145 -4s105 0 145 4s57 27 59 60s4 53 4 80zM372 164v4h53c0 -27 -7 -48 -19 -62
-s-32 -21 -61 -21c-14 0 -26 2 -36 5s-18 9 -25 17s-12 19 -15 33s-5 30 -5 51s3 39 7 53s9 25 17 33s17 14 27 17s22 5 34 5c25 0 44 -7 57 -21s19 -37 19 -62h-52v1c0 20 -12 33 -27 33s-25 -11 -28 -30c0 0 -2 -11 -2 -29s2 -28 2 -28c1 -17 12 -29 27 -29s27 10 27 29v1z
-M195 164v4h53c0 -27 -7 -48 -19 -62s-32 -21 -61 -21c-14 0 -26 2 -36 5s-18 9 -25 17s-12 19 -15 33s-5 30 -5 51s3 39 7 53s9 25 17 33s17 14 27 17s22 5 34 5c25 0 44 -7 57 -21s19 -37 19 -62h-52v1c0 20 -12 33 -27 33s-25 -11 -28 -30c0 0 -2 -11 -2 -29s2 -28 2 -28
-c1 -17 12 -29 27 -29s27 10 27 29v1z" />
- <glyph glyph-name="ion-cloud" unicode="&#xf12b;"
-d="M366 215c45 0 82 -38 82 -84s-37 -83 -82 -83v0h-276c-49 0 -90 41 -90 91c0 40 26 74 61 86c5 29 29 51 59 51c10 0 18 -3 26 -7c19 40 59 67 105 67c64 0 115 -53 115 -118v-3z" />
- <glyph glyph-name="ion-code-download" unicode="&#xf26f;"
-d="M299 164l-63 -63v0l-1 -1v0l-2 -1v0l-1 -1v0l-2 -1v0h-1v0h-1c-1 0 -3 -1 -4 -1s-3 1 -4 1h-1v0h-1v0l-2 1v0l-1 1v0c-1 1 -2 1 -3 2v0l-63 63c-6 6 -6 17 0 23s18 6 24 0l35 -34v118c0 9 7 17 16 17s16 -8 16 -17v-118l35 34c6 6 18 6 24 0s6 -17 0 -23zM136 56
-c-6 0 -12 2 -17 7l-112 112c-9 9 -9 25 0 34l112 112c9 9 25 9 34 0s9 -25 0 -34l-95 -95l95 -95c9 -9 9 -25 0 -34c-5 -5 -11 -7 -17 -7zM312 56c-6 0 -12 2 -17 7c-9 9 -9 25 0 34l95 95l-95 95c-9 9 -9 25 0 34s25 9 34 0l112 -112c9 -9 9 -25 0 -34l-112 -112
-c-5 -5 -11 -7 -17 -7z" />
- <glyph glyph-name="ion-code-working" unicode="&#xf270;"
-d="M128 192c0 16 8 24 24 24s24 -8 24 -24s-8 -24 -24 -24s-24 8 -24 24zM200 192c0 16 8 24 24 24s24 -8 24 -24s-8 -24 -24 -24s-24 8 -24 24zM272 192c0 16 8 24 24 24s24 -8 24 -24s-8 -24 -24 -24s-24 8 -24 24zM136 56c-7 0 -12 2 -17 7l-112 112c-5 5 -7 10 -7 17
-s2 12 7 17l112 112c5 5 10 7 17 7s12 -2 17 -7s7 -10 7 -17s-2 -12 -7 -17l-95 -95l95 -95c5 -5 7 -10 7 -17s-2 -12 -7 -17s-10 -7 -17 -7zM312 56c-7 0 -12 2 -17 7s-7 10 -7 17s2 12 7 17l95 95l-95 95c-5 5 -7 10 -7 17s2 12 7 17s10 7 17 7s12 -2 17 -7l112 -112
-c5 -5 7 -10 7 -17s-2 -12 -7 -17l-112 -112c-5 -5 -10 -7 -17 -7z" />
- <glyph glyph-name="ion-code" unicode="&#xf271;"
-d="M136 56c-6 0 -12 2 -17 7l-112 112c-9 9 -9 25 0 34l112 112c9 9 25 9 34 0s9 -25 0 -34l-95 -95l95 -95c9 -9 9 -25 0 -34c-5 -5 -11 -7 -17 -7zM312 56c-6 0 -12 2 -17 7c-9 9 -9 25 0 34l95 95l-95 95c-9 9 -9 25 0 34s25 9 34 0l112 -112c9 -9 9 -25 0 -34l-112 -112
-c-5 -5 -11 -7 -17 -7z" />
- <glyph glyph-name="ion-coffee" unicode="&#xf272;" horiz-adv-x="384"
-d="M319 191c37 -7 65 -40 65 -79c0 -20 -8 -39 -21 -54c-15 -17 -37 -26 -61 -26c-8 0 -17 1 -25 3c-6 1 -10 3 -15 5c-11 -15 -23 -25 -32 -33v0c-5 -5 -12 -7 -19 -7h-102c-7 0 -14 2 -19 7v0c-17 15 -41 36 -62 86s-28 91 -28 111s3 20 16 20h101c-5 17 -37 19 -37 46
-c0 17 15 32 28 37c-2 -8 -3 -14 -3 -21c0 -19 39 -30 39 -53c0 -3 0 -6 -1 -9h56c1 5 2 10 2 14c0 36 -56 36 -56 84c0 28 21 55 47 62c-4 -14 -9 -23 -9 -35c0 -32 57 -50 57 -88c0 -13 -5 -25 -12 -37h76c13 0 16 0 16 -20c0 -4 0 -8 -1 -13zM302 64c33 0 50 25 50 48
-s-17 43 -39 47c-4 -19 -11 -42 -21 -66c-4 -9 -8 -17 -12 -25c6 -3 13 -4 22 -4z" />
- <glyph glyph-name="ion-compass" unicode="&#xf273;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224c0 39 10 76 27 108c-16 12 -27 30 -27 52c0 35 29 64 64 64c22 0 40 -11 52 -27c32 17 69 27 108 27zM32 352c0 -10 5 -20 13 -26c13 17 28 32 45 45c-6 8 -16 13 -26 13c-18 0 -32 -14 -32 -32z
-M360 56c36 36 56 85 56 136s-20 100 -56 136s-85 56 -136 56s-100 -20 -136 -56s-56 -85 -56 -136s20 -100 56 -136s85 -56 136 -56s100 20 136 56zM320 320c0 0 -54 -130 -72 -152s-120 -104 -120 -104s54 132 72 152s120 104 120 104z" />
- <glyph glyph-name="ion-compose" unicode="&#xf12c;" horiz-adv-x="384"
-d="M379 348c7 -7 7 -18 0 -25l-32 -31l-55 55l31 32c7 7 18 7 25 0zM282 338l55 -55l-177 -173l-64 -14l14 64zM320 192l32 32v-201c0 -13 -10 -23 -23 -23h-306c-13 0 -23 10 -23 23v306c0 13 10 23 23 23h201l-32 -32h-149c-6 0 -11 -5 -11 -10v-268s4 -10 10 -10h269
-s9 5 9 10v150z" />
- <glyph glyph-name="ion-connection-bars" unicode="&#xf274;" horiz-adv-x="352"
-d="M0 32v64h64v-64h-64zM96 32v128h64v-128h-64zM192 32v224h64v-224h-64zM288 32v320h64v-320h-64z" />
- <glyph glyph-name="ion-contrast" unicode="&#xf275;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM360 56c36 36 56 85 56 136s-20 100 -56 136s-85 56 -136 56v-384c51 0 100 20 136 56z" />
- <glyph glyph-name="ion-crop" unicode="&#xf3c1;"
-d="M320 -32v48h64v-48h-64zM384 96h64v-64h-384v256h-64v64h64v64h64v-320h192v192h-176v64h240v-256z" />
- <glyph glyph-name="ion-cube" unicode="&#xf318;"
-d="M435 280c7 0 13 -6 13 -12v-183c0 -9 -6 -17 -14 -22v-1l-175 -92v-1c-2 -1 -4 -1 -6 -1c-7 0 -13 6 -13 12v185c0 9 5 17 13 22v0l3 2l172 89l2 1c2 1 3 1 5 1zM422 329c0 0 8 -3 8 -9c0 -7 -8 -11 -8 -11l-183 -97l-2 -1c-4 -2 -8 -3 -13 -3s-9 1 -13 3l-2 1l-183 96
-s-8 5 -8 12c0 6 8 9 8 9l181 82s11 5 17 5s17 -5 17 -5zM195 187c8 -5 13 -13 13 -22v-185c0 -6 -6 -12 -13 -12c-2 0 -4 1 -6 2v0l-175 92v1c-8 5 -14 13 -14 22v183c0 6 6 12 13 12c2 0 4 0 5 -1l2 -1l171 -89z" />
- <glyph glyph-name="ion-disc" unicode="&#xf12d;"
-d="M224 289c54 0 97 -43 97 -97s-43 -97 -97 -97s-97 43 -97 97s43 97 97 97zM224 148c24 0 44 20 44 44s-20 44 -44 44s-44 -20 -44 -44s20 -44 44 -44zM224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM224 69
-c68 0 123 55 123 123s-55 123 -123 123s-123 -55 -123 -123s55 -123 123 -123z" />
- <glyph glyph-name="ion-document-text" unicode="&#xf12e;" horiz-adv-x="288"
-d="M286 279c1 -3 2 -6 2 -10v-245c0 -13 -10 -24 -22 -24h-243c-12 0 -23 11 -23 24v336c0 13 11 24 23 24h160c3 0 6 0 9 -2c2 -1 5 -3 7 -5l84 -92c2 -2 2 -4 3 -6zM48 269v-10c0 -1 1 -3 3 -3h71c2 0 3 2 3 3v10c0 2 -1 3 -3 3h-71c-2 0 -3 -1 -3 -3zM48 141v-10
-c0 -1 1 -3 3 -3h123c2 0 2 2 2 3v10c0 2 0 3 -2 3h-123c-2 0 -3 -1 -3 -3zM208 67v10c0 2 0 3 -2 3h-155c-2 0 -3 -1 -3 -3v-10c0 -1 1 -3 3 -3h155c2 0 2 2 2 3zM240 195v10c0 2 0 3 -2 3h-187c-2 0 -3 -1 -3 -3v-10c0 -1 1 -3 3 -3h187c2 0 2 2 2 3zM193 270h60l-71 78
-v-66c0 -6 5 -12 11 -12z" />
- <glyph glyph-name="ion-document" unicode="&#xf12f;" horiz-adv-x="288"
-d="M287 279c1 -3 1 -5 1 -9v-244c0 -13 -9 -26 -21 -26h-243c-12 0 -24 13 -24 26v335c0 13 12 23 24 23h160c3 0 6 0 9 -2c2 -1 5 -2 7 -4l83 -92c2 -2 3 -4 4 -7zM193 337v-63h58zM32 32h224v210h-67c-15 0 -28 13 -28 28v82h-129v-320z" />
- <glyph glyph-name="ion-drag" unicode="&#xf130;" horiz-adv-x="512"
-d="M0 272v32h512v-32h-512zM0 176v32h512v-32h-512zM0 80v32h512v-32h-512z" />
- <glyph glyph-name="ion-earth" unicode="&#xf276;"
-d="M325 322c2 -4 7 -12 3 -15c-3 -2 -10 -2 -13 5s0 11 -5 9s-7 3 -6 4c1 2 3 3 5 4c0 2 -4 8 2 7c4 -1 12 -10 14 -14zM344 277v0v0zM403 251c0 0 -2 0 0 0v0zM224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM141 19l8 -4
-c3 -1 6 -2 10 -3c14 -5 28 -8 43 -10c28 -3 56 -1 83 8c15 5 30 11 43 20c6 4 6 16 10 24c8 16 -2 33 12 47c12 14 4 19 4 34c0 10 8 18 4 29c-1 4 -7 -3 -9 1c-5 7 -21 1 -28 2c-13 2 -24 14 -33 23c-5 5 0 20 1 26c4 15 0 33 19 38c5 1 5 9 10 11c5 1 10 3 15 4
-c9 1 17 -2 26 -2c10 0 14 -5 22 -11c7 -6 13 -3 22 -5c7 0 0 5 -2 8c-3 2 -6 2 -8 2c-16 4 -23 22 -36 30c-6 3 -9 2 -11 0c-1 -1 1 -12 1 -12c-1 -3 -10 -4 -13 -5c-9 -2 -29 17 -15 22c4 1 27 5 24 15c-3 6 2 13 -5 14c-8 1 -7 7 -15 8c-5 1 -5 11 -5 14c0 9 2 6 9 7
-c-17 11 -37 19 -57 24c-1 -3 -5 -12 -8 -12c-5 -1 -6 0 -9 -3c-9 -10 -16 -28 -25 -7c-4 11 5 19 2 28h-6h-3c6 -12 -5 -18 -8 -19c-8 0 -10 5 -17 4c-4 -1 -7 4 -11 2s-13 -8 -14 -12c-3 -12 6 -13 14 -6c6 6 17 12 25 6c6 -5 5 -9 5 -14s-1 -18 -9 -16c-4 1 -7 6 -11 3
-c-8 -7 -18 -6 -29 -9c-10 -2 -16 -6 -25 -9c-8 -3 -11 -4 -12 -12c0 -2 0 -14 -3 -15c-5 -2 -8 22 -22 20c-12 -1 -30 -13 -25 -28c2 -5 28 -3 10 -14c-2 -1 2 -17 2 -20c1 -8 13 -18 21 -10c6 6 6 5 14 2c15 -8 33 -15 45 -27c6 -6 9 -24 17 -28c9 -5 19 -5 26 -14
-c6 -7 -2 -19 -8 -23c-4 -2 -12 -24 -16 -29c-2 -4 -12 -6 -16 -7c-3 0 -7 -9 -9 -11c-7 -7 -8 -13 -17 -19c-18 -12 -22 -23 -18 -44c2 -8 5 -13 11 -16zM100 46l2 -2c7 -6 15 -11 23 -16c-21 21 -23 49 -21 78l3 24c1 3 -4 7 -4 11c0 10 0 5 -8 13c-4 4 -10 11 -12 17
-c-7 16 1 30 10 43c9 14 -7 20 -10 32c-1 6 -7 6 -6 12c1 7 -4 5 -9 9c-12 8 -1 20 -7 26c-43 -70 -36 -162 16 -224c1 -1 0 -1 1 -2h1c3 -4 6 -8 9 -11s7 -6 10 -9z" />
- <glyph glyph-name="ion-easel" unicode="&#xf3c2;"
-d="M48 112v192h352v-192h-352zM432 352c9 0 16 -7 16 -16v-256c0 -9 -7 -16 -16 -16h-416c-9 0 -16 7 -16 16v256c0 9 7 16 16 16h416zM416 96v224h-384v-224h384zM48 -32l29 80h31l-28 -80h-32zM239 416l17 -48h-64l17 48h30zM340 48h31l29 -80h-32zM208 0v48h32v-48h-32z
-" />
- <glyph glyph-name="ion-edit" unicode="&#xf2bf;"
-d="M381 259l-250 -251l-91 91l251 250zM440 360c12 -12 11 -32 -2 -45l-45 -45l-91 91l45 45c13 13 33 14 45 2zM32 85l85 -85l-117 -32z" />
- <glyph glyph-name="ion-egg" unicode="&#xf277;" horiz-adv-x="320"
-d="M160 416c64 0 160 -133 160 -257s-64 -191 -160 -191s-160 67 -160 191s96 257 160 257z" />
- <glyph glyph-name="ion-eject" unicode="&#xf131;" horiz-adv-x="320"
-d="M303 128h-286v0c-10 0 -17 7 -17 16c0 3 1 5 3 8l138 191c5 5 11 9 19 9s14 -4 19 -9l138 -190c2 -3 3 -6 3 -9c0 -9 -7 -16 -17 -16v0zM308 96c7 0 12 -5 12 -12v-40c0 -7 -5 -12 -12 -12h-296c-7 0 -12 5 -12 12v40c0 7 5 12 12 12h296z" />
- <glyph glyph-name="ion-email-unread" unicode="&#xf3c3;" horiz-adv-x="480"
-d="M352 288c0 43 21 64 64 64s64 -21 64 -64s-21 -64 -64 -64s-64 21 -64 64zM209 288h127c0 -17 5 -33 15 -47c-6 -3 -14 -8 -22 -12s-16 -8 -23 -12s-14 -8 -22 -12s-15 -8 -21 -11s-11 -6 -16 -9s-9 -5 -12 -7s-4 -3 -5 -3c-6 -3 -13 -4 -21 -4s-15 1 -21 4
-c-1 1 -15 8 -42 23s-54 29 -81 44s-43 23 -46 25c-7 4 -12 8 -13 11c-1 4 -1 6 1 8s6 2 11 2h191zM277 175c18 11 45 30 83 56c16 -15 34 -23 56 -23v-155c0 -2 -1 -4 -2 -7s-3 -5 -5 -7s-4 -4 -7 -5s-6 -2 -8 -2h-185h-185c-5 0 -11 2 -16 7s-8 9 -8 14v205c0 6 3 8 9 5
-c2 -1 11 -7 26 -17s32 -22 53 -36s39 -26 53 -35l-83 -93c-2 -2 -2 -4 -1 -5c2 -1 4 -1 6 1l98 83c16 -10 25 -16 27 -17c6 -3 13 -4 21 -4s15 1 21 4c2 1 11 7 27 17l98 -83c2 -2 5 -2 6 -1s0 3 -2 5z" />
- <glyph glyph-name="ion-email" unicode="&#xf132;" horiz-adv-x="416"
-d="M19 299c-4 2 -11 7 -13 11c-3 8 1 10 12 10h191h191c11 0 15 -2 12 -10c-2 -4 -9 -9 -13 -11c-11 -6 -163 -89 -169 -92s-12 -4 -21 -4s-15 1 -21 4s-158 86 -169 92zM408 295c9 4 8 -1 8 -5v-205c0 -9 -12 -21 -22 -21h-185h-185c-10 0 -24 12 -24 21v205s0 9 9 5
-c8 -4 83 -56 132 -88l-83 -93c-2 -2 -2 -4 -1 -5s4 -1 6 1l98 83c15 -10 25 -16 27 -17c8 -4 14 -4 21 -4s13 0 21 4c2 1 12 7 27 17l98 -83c2 -2 5 -2 6 -1s0 3 -2 5l-82 93c49 32 123 84 131 88z" />
- <glyph glyph-name="ion-erlenmeyer-flask-bubbles" unicode="&#xf3c4;" horiz-adv-x="384"
-d="M382 21c2 -4 3 -10 0 -14s-8 -7 -13 -7h-177h-178c-5 0 -9 3 -12 7s-2 10 0 14l118 199v150c0 8 6 14 14 14s15 -6 15 -14v-80c4 3 10 5 16 5c15 0 27 -12 27 -27s-12 -26 -27 -26c-6 0 -12 2 -16 5v-31c0 -2 -1 -4 -2 -6l-35 -59h72c-15 6 -26 20 -26 37
-c0 23 19 42 43 42c15 0 27 -8 35 -19c-1 2 -1 3 -1 5v154c0 8 6 14 14 14s15 -6 15 -14v-150zM218 151h53l-31 54c2 -5 3 -11 3 -17c0 -17 -10 -31 -25 -37zM201 319c-12 0 -22 9 -22 21s10 21 22 21s22 -9 22 -21s-10 -21 -22 -21z" />
- <glyph glyph-name="ion-erlenmeyer-flask" unicode="&#xf3c5;" horiz-adv-x="384"
-d="M375 52c6 -9 9 -20 9 -32c0 -28 -16 -52 -63 -52h-258c-47 0 -63 24 -63 52c0 12 3 23 9 32l49 73l49 77c13 20 21 44 21 70v92s-14 34 -16 43c-2 8 1 9 17 9h126c16 0 18 -1 16 -9c-2 -9 -15 -22 -15 -42v-93c0 -26 6 -50 19 -70zM345 7c3 3 7 8 7 14c0 5 -2 10 -4 14
-l-101 150c-16 26 -23 56 -23 87v112h-64v-112c0 -32 -9 -62 -25 -87l-99 -150c-2 -4 -4 -9 -4 -14c0 -6 3 -11 6 -14c4 -4 12 -7 25 -7h258c13 0 20 3 24 7zM325 37c1 -2 3 -6 3 -8c0 -7 -6 -15 -14 -15h-244c-7 0 -14 6 -14 14c0 3 1 6 3 8l81 124h103l82 -124v1zM238 106
-c2 -1 4 -2 6 -2s3 0 5 2c1 2 3 4 3 6s-1 4 -3 6c-1 2 -3 2 -5 2s-4 0 -6 -2c-1 -2 -2 -4 -2 -6s0 -4 2 -6zM285 47c4 2 4 7 2 11l-23 36c-1 2 -4 4 -7 4c-2 0 -3 0 -4 -1c-4 -2 -4 -7 -2 -11l23 -36c1 -2 5 -4 7 -4c1 0 3 0 4 1z" />
- <glyph glyph-name="ion-eye-disabled" unicode="&#xf306;"
-d="M344 290c41 -27 76 -66 104 -100c-51 -54 -124 -135 -224 -135c-36 0 -65 8 -92 22l-77 -77l-23 23l71 71c-36 25 -68 61 -103 98c78 85 142 137 224 137c34 0 64 -9 92 -23l77 78l23 -23zM134 192c0 -19 6 -36 16 -51l27 27c-4 7 -5 15 -5 24c0 29 23 53 52 53h8
-c-5 -6 -8 -13 -8 -21c0 -3 0 -5 1 -8l51 50c-15 11 -33 17 -52 17c-49 0 -90 -41 -90 -91zM224 101c49 0 90 41 90 91c0 19 -6 37 -16 52l-50 -51c3 -1 5 -1 8 -1c8 0 14 3 20 7v-7c0 -29 -23 -53 -52 -53c-9 0 -17 2 -24 6l-28 -27c15 -11 33 -17 52 -17z" />
- <glyph glyph-name="ion-eye" unicode="&#xf133;"
-d="M224 320c99 0 172 -70 224 -129c-51 -50 -124 -127 -224 -127s-157 60 -224 128c78 79 142 128 224 128zM224 101c49 0 90 41 90 91s-41 91 -90 91s-90 -41 -90 -91s41 -91 90 -91zM224 224c0 -18 14 -32 32 -32c8 0 14 3 20 7v-7c0 -29 -23 -53 -52 -53s-52 24 -52 53
-s23 53 52 53h8c-5 -6 -8 -13 -8 -21z" />
- <glyph glyph-name="ion-female" unicode="&#xf278;" horiz-adv-x="256"
-d="M160 164v-68h64v-64h-64v-64h-64v64h-64v64h64v68c-55 14 -96 64 -96 124c0 71 57 128 128 128s128 -57 128 -128c0 -60 -41 -110 -96 -124zM128 208c44 0 80 36 80 80s-36 80 -80 80s-80 -36 -80 -80s36 -80 80 -80z" />
- <glyph glyph-name="ion-filing" unicode="&#xf134;" horiz-adv-x="384"
-d="M317 319c12 0 19 0 19 -20v-28h-288v28c0 20 8 20 20 20h249zM269 352c13 0 19 -1 19 -19h-192c0 18 7 19 20 19h153zM368 278c13 -8 17 -17 15 -41l-17 -184c-4 -21 -16 -21 -24 -21h-300c-8 0 -20 0 -24 21l-17 185c-3 26 1 31 15 40l15 10v-32h321v32z" />
- <glyph glyph-name="ion-film-marker" unicode="&#xf135;" horiz-adv-x="416"
-d="M400 240c9 0 16 -7 16 -15v-210c0 -8 -7 -15 -16 -15h-384c-9 0 -16 7 -16 15v210c0 8 6 14 13 15c-2 2 -3 4 -4 7l-9 45c-2 8 5 16 13 18l370 74c8 2 16 -4 18 -12l9 -46c2 -8 -4 -16 -12 -18l-342 -68h344zM257 46l-20 58l51 36h-62l-20 58l-19 -58h-63l51 -36l-19 -58
-l50 36z" />
- <glyph glyph-name="ion-fireball" unicode="&#xf319;" horiz-adv-x="320"
-d="M297 210c14 -24 23 -52 23 -82c0 -33 -10 -63 -26 -88v0v0c-29 -43 -78 -72 -134 -72c-17 0 -32 1 -46 7s-25 13 -33 25c-11 16 -17 28 -21 52c-6 -25 2 -48 9 -60c-43 26 -69 71 -69 125v4c5 78 65 109 90 151c8 14 13 30 10 48c11 -9 15 -25 15 -39
-c0 -16 -3 -29 -3 -29c4 8 7 18 9 31c6 35 2 85 -37 132l-1 1s7 0 18 -3c95 -16 169 -91 184 -186c2 -12 3 -23 3 -35c0 -16 -2 -32 -5 -47c10 23 13 43 14 55v10z" />
- <glyph glyph-name="ion-flag" unicode="&#xf279;" horiz-adv-x="384"
-d="M362 266c0 0 12 2 22 6c0 -16 -7 -32 -9 -36c-28 -50 -99 -123 -181 -84c-65 31 -92 30 -117 24c-1 0 -2 -1 -3 -1c-3 -1 -15 -5 -26 -1v197c0 16 14 31 33 35c39 7 106 5 148 -74c39 -74 97 -72 133 -66zM24 416c4 0 8 -4 8 -8v-432c0 -4 -4 -8 -8 -8h-16
-c-4 0 -8 4 -8 8v432c0 4 4 8 8 8h16z" />
- <glyph glyph-name="ion-flame" unicode="&#xf31a;" horiz-adv-x="256"
-d="M1 128c-11 109 72 224 159 288c-26 -145 97 -142 96 -288c-1 -120 -105 -160 -128 -160s-114 26 -127 160zM88 80c0 -44 40 -80 40 -80s41 36 41 80s-41 80 -41 80s-40 -36 -40 -80z" />
- <glyph glyph-name="ion-flash-off" unicode="&#xf136;"
-d="M115 -4c-69 38 -115 112 -115 196c0 124 100 224 224 224c24 0 47 -4 68 -11c2 -1 3 -1 5 -2c12 -4 24 -9 35 -15v0c69 -38 116 -112 116 -196c0 -124 -100 -224 -224 -224c-24 0 -47 4 -68 11c-2 1 -3 1 -5 2c-12 4 -24 8 -35 14zM86 291c-20 -28 -32 -62 -32 -99
-c0 -65 36 -121 90 -150c6 -3 13 -7 19 -9c2 -1 3 -1 5 -2c9 -3 19 -5 29 -7c9 -2 18 -2 27 -2c37 0 71 12 99 32l-52 53l36 40l55 -54c20 28 32 62 32 99c0 66 -37 123 -91 151c-6 3 -12 6 -18 8c-2 1 -3 1 -5 2c-9 3 -19 5 -29 7c-9 2 -18 2 -27 2c-37 0 -72 -12 -100 -32
-l53 -52l-36 -41zM178 58l38 113h-85l139 155l-38 -113h85z" />
- <glyph glyph-name="ion-flash" unicode="&#xf137;" horiz-adv-x="320"
-d="M0 160l224 256l-51 -192h147l-224 -256l51 192h-147z" />
- <glyph glyph-name="ion-folder" unicode="&#xf139;" horiz-adv-x="384"
-d="M366 256c18 0 19 -7 18 -18l-12 -186c-1 -11 -3 -20 -21 -20h-317c-18 0 -20 9 -21 20l-13 184c-1 11 0 20 18 20h348zM362 305l2 -33h-344c0 6 4 46 6 63c2 18 8 17 25 17h75c28 0 23 0 37 -15c16 -18 19 -17 41 -17h143c11 0 15 -3 15 -15z" />
- <glyph glyph-name="ion-fork-repo" unicode="&#xf2c0;" horiz-adv-x="320"
-d="M320 368v-64h-48v-48h-64v48h-48v64h48v48h64v-48h48zM208 208h64v-5v0c0 -43 -7 -70 -38 -95c-23 -19 -51 -20 -75 -22c-9 -1 -18 -2 -26 -3c-6 -1 -13 -5 -20 -10c9 -11 15 -25 15 -41c0 -35 -29 -64 -64 -64s-64 29 -64 64c0 24 13 44 32 55v210c-19 11 -32 31 -32 55
-c0 35 29 64 64 64s64 -29 64 -64c0 -24 -13 -44 -32 -55v-160c8 4 18 7 27 9c11 2 21 2 31 3c17 1 33 3 40 9c10 8 14 11 14 50zM64 384c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32zM64 0c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32
-s14 -32 32 -32z" />
- <glyph glyph-name="ion-fork" unicode="&#xf27a;" horiz-adv-x="128"
-d="M78 299v0v0v0zM128 282c0 -26 -15 -48 -37 -58c-12 -6 -11 -11 -11 -11s16 -200 16 -213s-3 -18 -9 -24s-15 -8 -23 -8v0v0c-8 0 -16 2 -22 8s-10 13 -10 24s16 213 16 213s0 6 -11 11c-22 10 -37 32 -37 58c0 43 15 93 24 134h8v-117c0 -6 3 -11 9 -11s9 4 10 10v1
-l9 117h8l10 -117v-1c1 -6 3 -10 9 -10s9 5 9 11v117h8v0c9 -40 24 -91 24 -134z" />
- <glyph glyph-name="ion-forward" unicode="&#xf13a;" horiz-adv-x="384"
-d="M224 150c-102 0 -171 -9 -224 -102c0 0 37 208 224 208v80l160 -144l-160 -134v92z" />
- <glyph glyph-name="ion-funnel" unicode="&#xf31b;"
-d="M224 416c124 0 224 -36 224 -80c0 -8 -3 -15 -9 -22v0c-35 -43 -151 -179 -151 -218v-4v-83v0c0 -23 -29 -41 -64 -41s-64 18 -64 41v0v87c0 39 -117 177 -149 216v0c-7 8 -11 16 -11 24c0 44 100 80 224 80zM224 288c92 0 176 22 176 48s-83 48 -176 48
-s-176 -22 -176 -48s84 -48 176 -48z" />
- <glyph glyph-name="ion-gear-a" unicode="&#xf13d;" horiz-adv-x="384"
-d="M347 192c0 -24 15 -43 37 -56c-4 -13 -10 -26 -16 -38c-25 6 -45 -3 -62 -20s-22 -37 -16 -62c-12 -6 -25 -12 -38 -16c-13 22 -36 37 -60 37s-47 -15 -60 -37c-13 4 -27 10 -39 16c6 25 2 45 -15 62s-37 21 -62 15c-6 12 -12 26 -16 39c22 13 37 36 37 60s-15 43 -37 56
-c4 13 9 26 16 38c25 -6 45 3 62 20s21 37 15 62c12 6 26 12 39 16c13 -22 36 -37 60 -37s47 15 60 37c13 -4 27 -10 39 -16c-6 -25 -2 -45 15 -62s37 -26 62 -20c6 -12 12 -25 16 -38c-22 -13 -37 -32 -37 -56zM192 94c54 0 98 44 98 98s-44 98 -98 98s-98 -44 -98 -98
-s44 -98 98 -98z" />
- <glyph glyph-name="ion-gear-b" unicode="&#xf13e;" horiz-adv-x="384"
-d="M384 154h-44c-4 -14 -10 -27 -17 -39l32 -32l-54 -54l-33 32c-12 -7 -24 -11 -38 -15v-46h-76v46c-13 4 -26 8 -38 15l-33 -32l-54 54l32 32c-7 12 -13 25 -17 39h-44v76h43c4 14 9 29 16 41l-30 30l54 54l29 -29c13 8 27 13 42 17v41h76v-41c15 -4 29 -9 42 -17l29 29
-l54 -54l-30 -30c7 -12 13 -27 16 -41h43v-76zM192 138c30 0 54 24 54 54s-24 54 -54 54s-54 -24 -54 -54s24 -54 54 -54z" />
- <glyph glyph-name="ion-grid" unicode="&#xf13f;" horiz-adv-x="320"
-d="M64 295c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50zM192 295c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50zM320 295c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50zM64 167
-c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50zM192 167c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50zM320 167c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50zM64 39
-c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50zM192 39c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50zM320 39c0 -4 -3 -7 -7 -7h-50c-4 0 -7 3 -7 7v50c0 4 3 7 7 7h50c4 0 7 -3 7 -7v-50z" />
- <glyph glyph-name="ion-hammer" unicode="&#xf27b;" horiz-adv-x="320"
-d="M314 416c3 0 6 -3 6 -6v-84c0 -3 -3 -6 -6 -6h-52c-3 0 -6 3 -6 6v14c-6 5 -16 9 -22 7c-7 -2 -23 -13 -30 -25s-6 -28 -6 -66l8 -2c5 -1 7 -6 7 -9v-70c0 -95 11 -201 11 -201c0 -3 -3 -6 -6 -6h-84c-3 0 -6 3 -6 6c0 0 11 106 11 201v70c0 3 3 8 7 9l7 2
-c0 43 -5 58 -22 74c-18 16 -41 19 -63 17s-51 -35 -58 -45s-10 2 -10 11c1 16 22 60 72 81s91 22 102 22s27 -1 38 -3s16 -18 26 -18c7 0 14 5 18 9v6c0 3 3 6 6 6h52z" />
- <glyph glyph-name="ion-happy-outline" unicode="&#xf3c6;"
-d="M355 158c8 -4 11 -13 7 -21c-24 -46 -78 -73 -138 -73c-62 0 -118 29 -139 74c-4 8 0 17 8 21c2 1 5 1 7 1c6 0 11 -3 14 -9c16 -34 60 -55 110 -55c49 0 92 21 110 56c3 5 8 8 14 8c3 0 5 -1 7 -2zM381 217c5 -7 4 -17 -4 -22c-3 -2 -6 -3 -10 -3c-5 0 -11 2 -14 6
-s-7 10 -17 10s-14 -6 -17 -10s-9 -6 -14 -6c-4 0 -7 1 -10 3c-8 6 -9 15 -3 22c11 14 23 23 44 23s35 -9 45 -23zM157 217c5 -7 4 -17 -4 -22c-3 -2 -6 -3 -10 -3c-5 0 -11 2 -14 6s-7 10 -17 10s-14 -6 -17 -10s-9 -6 -14 -6c-4 0 -7 1 -10 3c-8 6 -9 15 -3 22
-c11 14 23 23 44 23s35 -9 45 -23zM224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM360 56c36 36 56 85 56 136s-20 100 -56 136s-85 56 -136 56s-100 -20 -136 -56s-56 -85 -56 -136s20 -100 56 -136s85 -56 136 -56
-s100 20 136 56z" />
- <glyph glyph-name="ion-happy" unicode="&#xf31c;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM71 195c3 -2 6 -3 10 -3c5 0 11 2 14 6s7 10 17 10s14 -6 17 -10s9 -6 14 -6c4 0 7 1 10 3c8 5 9 15 4 22c-10 14 -24 23 -45 23s-33 -9 -44 -23c-6 -7 -5 -16 3 -22zM362 137
-c4 8 1 17 -7 21c-2 1 -4 2 -7 2c-6 0 -11 -3 -14 -8c-18 -35 -61 -56 -110 -56c-50 0 -94 21 -110 55c-3 6 -8 9 -14 9c-2 0 -5 0 -7 -1c-8 -4 -12 -13 -8 -21c21 -45 77 -74 139 -74c60 0 114 27 138 73zM377 195c8 5 9 15 4 22c-10 14 -24 23 -45 23s-33 -9 -44 -23
-c-6 -7 -5 -16 3 -22c3 -2 6 -3 10 -3c5 0 11 2 14 6s7 10 17 10s14 -6 17 -10s9 -6 14 -6c4 0 7 1 10 3z" />
- <glyph glyph-name="ion-headphone" unicode="&#xf140;" horiz-adv-x="384"
-d="M383 210c3 -51 -3 -130 -13 -162c-20 -67 -40 -80 -72 -80s-58 27 -58 59v106c0 33 23 59 53 59c18 0 34 -9 44 -24c0 0 11 7 13 22s4 34 -5 64s-21 19 -36 38c-2 3 -5 7 -8 10l-10 10c-2 2 -3 3 -5 4c-11 9 -21 17 -34 23c-19 9 -39 13 -60 13s-42 -4 -61 -13
-c-13 -6 -22 -14 -33 -23c-2 -1 -3 -2 -5 -4l-10 -10s-6 -7 -8 -10c-15 -19 -27 -8 -36 -38c-9 -31 -7 -49 -5 -64s13 -22 13 -22c10 15 26 24 44 24c30 0 53 -27 53 -59v-106c0 -32 -26 -59 -58 -59s-52 13 -72 80c-10 32 -16 111 -13 162c3 60 22 108 56 145v0
-c8 8 15 16 24 23s19 13 29 18c25 13 53 20 82 20s57 -7 82 -20c10 -5 19 -11 28 -18s17 -15 25 -23v0c34 -37 53 -85 56 -145z" />
- <glyph glyph-name="ion-heart-broken" unicode="&#xf31d;" horiz-adv-x="416"
-d="M181 160c0 -36 -2 -71 4 -107c2 -10 2 -20 2 -31l-153 159c-45 47 -45 124 0 171c40 41 103 43 144 3c-2 -15 -3 -31 -3 -46c-18 -14 -40 -21 -56 -39l11 7c17 11 15 8 35 14c3 1 8 3 11 5c0 -1 -1 -5 -1 -6c1 -20 11 -39 15 -60c0 -5 1 -10 -1 -15c-8 -17 -7 -37 -8 -55
-zM274 147c8 -18 23 -29 38 -39l-104 -108l-17 18c0 13 -4 26 -4 38c-2 48 10 94 21 142v0c1 -1 2 -1 3 -1c30 -6 52 -24 63 -50zM382 352c46 -47 46 -124 0 -171l-68 -70c-28 24 -42 54 -65 81c-12 13 -26 23 -41 32c-3 13 -8 26 -11 39c-3 12 14 21 16 31c3 12 3 26 3 39
-l19 19c40 42 107 42 147 0z" />
- <glyph glyph-name="ion-heart" unicode="&#xf141;" horiz-adv-x="416"
-d="M382 352c46 -47 46 -124 0 -171l-174 -181l-174 181c-46 47 -46 124 0 171c40 42 107 42 147 0l27 -28l28 28c40 42 106 42 146 0z" />
- <glyph glyph-name="ion-help-buoy" unicode="&#xf27c;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM402 264c-10 24 -23 45 -42 64s-41 32 -65 42l-19 -61c14 -6 27 -15 38 -26s21 -24 27 -38zM224 96c53 0 96 43 96 96s-43 96 -96 96s-96 -43 -96 -96s43 -96 96 -96zM88 328
-c-19 -19 -32 -41 -42 -65l61 -19c6 14 15 27 26 38s24 21 38 27l-19 61c-24 -10 -45 -23 -64 -42zM46 120c10 -24 23 -45 42 -64s41 -32 65 -42l19 61c-14 6 -27 15 -38 26s-21 24 -27 38zM360 56c19 19 32 41 42 65l-61 19c-6 -14 -15 -27 -26 -38s-24 -21 -38 -27l19 -61
-c24 10 45 23 64 42z" />
- <glyph glyph-name="ion-help-circled" unicode="&#xf142;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM244 89c1 18 -12 31 -29 31c-16 0 -30 -11 -30 -29s12 -30 28 -30c17 0 31 10 31 28zM293 217c7 10 12 22 12 36c0 23 -9 40 -25 52c-17 13 -37 18 -62 18
-c-19 0 -34 -4 -47 -13c-19 -13 -28 -34 -28 -68h49c0 9 -1 19 4 27s13 15 26 15s19 -3 25 -11c5 -7 8 -15 8 -23c0 -7 -4 -14 -8 -20c-2 -4 -6 -7 -10 -10c0 0 -26 -15 -35 -30c-7 -11 -9 -24 -10 -41c0 -1 0 -4 4 -4h39s5 3 5 4c0 6 1 15 2 19c2 7 6 12 12 17l14 9
-c12 9 21 17 25 23z" />
- <glyph glyph-name="ion-help" unicode="&#xf143;" horiz-adv-x="256"
-d="M217 371c25 -19 39 -46 39 -83c0 -22 -8 -42 -19 -57c-7 -9 -21 -21 -40 -36l-21 -14c-10 -8 -17 -18 -20 -28c-2 -6 -3 -19 -3 -29c0 -2 -1 -6 -7 -6h-62c-7 0 -7 3 -7 5c1 26 4 49 15 66c15 23 57 48 57 48c6 5 11 9 15 15c7 10 12 21 12 32c0 13 -3 26 -11 36
-c-10 12 -21 18 -41 18s-32 -11 -40 -24s-7 -29 -7 -43h-77c0 54 14 88 44 108c20 14 45 20 75 20c39 0 70 -7 98 -28zM114 78c27 -1 47 -20 46 -48s-22 -46 -49 -45c-26 1 -46 19 -45 47s22 47 48 46z" />
- <glyph glyph-name="ion-home" unicode="&#xf144;" horiz-adv-x="384"
-d="M384 160h-48v-160h-96v128h-96v-128h-96v160h-48l192 224z" />
- <glyph glyph-name="ion-icecream" unicode="&#xf27d;" horiz-adv-x="320"
-d="M32 192h256l-128 -224zM307 275c8 -5 13 -13 13 -23c0 -16 -14 -28 -30 -28h-4h-252h-4c-16 0 -30 13 -30 28c0 10 6 18 14 23c1 0 1 2 2 2c4 3 7 7 8 12v1c-2 6 -2 12 -2 18c0 42 34 76 76 76c8 0 16 -2 23 -4c-3 -12 -4 -31 -4 -31c2 15 11 29 11 29c18 23 46 38 77 38
-c53 0 96 -43 96 -96c0 -11 -2 -21 -5 -30v-1c0 -4 4 -9 8 -12c1 0 2 -2 3 -2z" />
- <glyph glyph-name="ion-image" unicode="&#xf147;"
-d="M336 224c-26 0 -48 22 -48 48s22 48 48 48s48 -22 48 -48s-22 -48 -48 -48zM420 384c16 0 28 -12 28 -28v-328c0 -16 -12 -28 -28 -28h-392c-16 0 -28 12 -28 28v328c0 16 12 28 28 28h392zM317 186l99 -106v260c0 7 -6 12 -13 12h-358c-7 0 -12 -5 -13 -12v-260l126 152
-c4 4 10 8 17 8s13 -2 17 -7l54 -59l4 -4c3 -2 7 -4 11 -4s8 2 12 5l18 16c4 3 8 5 13 5s10 -2 13 -6z" />
- <glyph glyph-name="ion-images" unicode="&#xf148;"
-d="M426 308c13 -1 23 -12 22 -24l-14 -263c-1 -13 -12 -22 -25 -21l-330 16c-13 1 -23 10 -22 23l2 46l-15 -1c-12 -1 -22 7 -23 18l-21 236c-1 11 7 21 19 22l296 24c12 1 22 -7 23 -18l5 -54zM71 302c1 12 11 22 24 22l219 -11l-2 31h-1v1c-1 5 -5 8 -10 8l-261 -22
-c-5 0 -10 -4 -10 -9v0v-1l16 -178l18 25zM405 66l10 198v1v0c0 6 -5 10 -11 10l-58 3l-29 2l-204 9c-6 0 -11 -4 -12 -9v0v-1l-3 -63l-7 -128v-7l6 7l102 109c4 4 8 6 14 6s11 -3 14 -7l43 -49l3 -3c2 -2 6 -4 10 -4s5 1 9 3l17 12c4 3 7 4 11 4s9 -2 11 -5l27 -33zM341 186
-c-20 0 -35 15 -35 35s16 35 35 35c20 0 35 -16 35 -35s-16 -35 -35 -35z" />
- <glyph glyph-name="ion-information-circled" unicode="&#xf149;"
-d="M448 195c2 -124 -97 -225 -221 -227s-225 97 -227 221s97 225 221 227s225 -97 227 -221zM224 336c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32zM268 53v11h-22v172h-66v-12h22v-160h-22v-11h88z" />
- <glyph glyph-name="ion-information" unicode="&#xf14a;" horiz-adv-x="128"
-d="M96 0h32v-16h-128v16h32v240h-32v16h96v-256zM64 304c-27 0 -48 21 -48 48s21 48 48 48s48 -21 48 -48s-21 -48 -48 -48z" />
- <glyph glyph-name="ion-ionic" unicode="&#xf14b;" horiz-adv-x="416"
-d="M376 315c25 -34 40 -77 40 -123c0 -115 -93 -208 -208 -208s-208 93 -208 208s93 208 208 208c46 0 89 -15 123 -40c5 3 11 5 18 5c18 0 32 -14 32 -32c0 -7 -2 -13 -5 -18zM344 56c18 18 31 38 41 61c10 24 15 49 15 75s-5 51 -15 75c-6 13 -13 26 -21 38
-c-4 -2 -10 -4 -15 -4c-18 0 -32 14 -32 32c0 5 2 11 4 15c-12 8 -25 15 -38 21c-24 10 -49 15 -75 15s-51 -5 -75 -15c-23 -10 -43 -23 -61 -41s-31 -38 -41 -61c-10 -24 -15 -49 -15 -75s5 -51 15 -75c10 -23 23 -43 41 -61s38 -31 61 -41c24 -10 49 -15 75 -15s51 5 75 15
-c23 10 43 23 61 41zM112 192c0 64 32 96 96 96s96 -32 96 -96s-32 -96 -96 -96s-96 32 -96 96z" />
- <glyph glyph-name="ion-ios-alarm-outline" unicode="&#xf3c7;" horiz-adv-x="404"
-d="M384 256l-54 52l-9 -9c35 -32 57 -79 57 -130c0 -44 -16 -83 -43 -114l36 -45l-12 -10l-35 43c-32 -30 -75 -49 -122 -49v0v0c-47 0 -90 19 -122 49l-35 -43l-12 10l36 45c-27 31 -43 71 -43 115c0 51 22 97 57 129l-9 9l-54 -52c-12 14 -20 32 -20 52c0 44 35 80 80 82
-h5c20 0 39 -7 54 -18l-54 -52l11 -11c26 19 56 32 90 35v0c0 8 8 16 16 16s15 -8 15 -16v0c34 -3 65 -16 91 -35l11 11l-54 52c15 11 34 18 54 18h5c45 -2 80 -38 80 -82c0 -20 -8 -38 -20 -52zM22 280l91 89c-9 5 -19 7 -32 6c-37 -2 -65 -32 -65 -67c0 -10 2 -19 6 -28z
-M362 172c0 88 -72 158 -160 158s-160 -70 -160 -158s72 -158 160 -158s160 70 160 158zM291 369l91 -89c4 9 6 18 6 28c0 35 -28 65 -65 67c-13 1 -23 -1 -32 -6zM202 288h16v-144h-112v16h96v128z" />
- <glyph glyph-name="ion-ios-alarm" unicode="&#xf3c8;" horiz-adv-x="404"
-d="M385 256l-55 52l-9 -9c35 -32 57 -79 57 -130c0 -44 -16 -83 -43 -114l37 -45l-13 -10l-35 43c-32 -30 -75 -49 -122 -49v0v0c-47 0 -90 19 -122 49l-35 -43l-12 10l36 45c-27 31 -43 70 -43 114c0 51 22 98 57 130l-9 9l-54 -52c-12 14 -20 32 -20 52c0 44 35 80 80 82
-h5c20 0 39 -7 54 -18l-54 -53l11 -10c26 19 56 32 90 35v0c0 8 8 16 16 16s15 -8 15 -16v0c34 -3 65 -16 91 -35l11 11l-54 52c15 11 34 18 54 18h5c45 -2 80 -38 80 -82c0 -20 -7 -38 -19 -52zM218 144v144h-16v-128h-96v-16h112z" />
- <glyph glyph-name="ion-ios-albums-outline" unicode="&#xf3c9;"
-d="M432 304h-416v-288h416v288zM448 320v0v-320h-448v320h448zM40 336v16h368v-16h-368zM72 368v16h304v-16h-304z" />
- <glyph glyph-name="ion-ios-albums" unicode="&#xf3ca;"
-d="M448 320v0v-320h-448v320h448zM40 336v16h368v-16h-368zM72 368v16h304v-16h-304z" />
- <glyph glyph-name="ion-ios-americanfootball-outline" unicode="&#xf3cb;" horiz-adv-x="416"
-d="M331 315c112 -112 81 -327 81 -327s-26 -4 -65 -4c-73 0 -189 12 -262 85c-112 112 -81 327 -81 327s26 4 65 4c73 0 189 -12 262 -85zM17 383c-2 -19 -5 -60 0 -107c1 -8 2 -16 3 -23l127 127c-25 3 -51 5 -78 5v0v0c-22 0 -41 -1 -52 -2zM96 80c30 -30 72 -53 124 -66
-c10 -3 20 -5 31 -7l142 142c-4 22 -10 44 -17 63c-14 37 -32 68 -56 92c-30 30 -72 53 -124 66c-10 3 -20 5 -31 7l-142 -142c4 -22 10 -44 17 -63c14 -37 32 -68 56 -92zM399 1c2 19 5 60 0 107c-1 8 -2 16 -3 23l-127 -127c25 -3 51 -5 78 -5c22 0 41 1 52 2zM259 130
-l-28 -29l-12 12l29 28l-23 23l-28 -29l-12 12l29 28l-23 23l-28 -29l-12 12l29 28l-23 23l-28 -29l-12 12l29 28l-22 23l-29 -29l-11 12l67 67l12 -11l-29 -29l23 -22l28 29l12 -12l-29 -28l23 -23l28 29l12 -12l-29 -28l23 -23l28 29l12 -12l-29 -28l22 -23l29 29l12 -12
-l-29 -28l22 -23l29 29l11 -12l-67 -67l-12 11l29 29z" />
- <glyph glyph-name="ion-ios-americanfootball" unicode="&#xf3cc;" horiz-adv-x="416"
-d="M331 315c112 -112 81 -327 81 -327s-26 -4 -65 -4c-73 0 -189 12 -262 85c-112 112 -81 327 -81 327s26 4 65 4c73 0 189 -12 262 -85zM20 253l3 -18l142 142l-18 3zM219 113l12 -12l28 29l23 -22l-29 -29l12 -11l67 67l-11 12l-29 -29l-22 23l29 28l-12 12l-28 -29
-l-23 23l29 28l-12 12l-28 -29l-23 23l29 28l-12 12l-28 -29l-23 23l29 28l-12 12l-28 -29l-23 22l29 29l-12 11l-67 -67l11 -12l29 29l22 -23l-29 -28l12 -12l28 29l23 -23l-29 -28l12 -12l28 29l23 -23l-29 -28l12 -12l28 29l23 -23zM269 4l127 127l-3 18l-142 -142z" />
- <glyph glyph-name="ion-ios-analytics-outline" unicode="&#xf3cd;"
-d="M224 400c-28 0 -55 -5 -81 -16c-25 -10 -47 -26 -66 -45s-35 -41 -45 -66c-11 -26 -16 -53 -16 -81s5 -55 16 -81c10 -25 26 -47 45 -66s41 -35 66 -45c26 -11 53 -16 81 -16s55 5 81 16c25 10 47 26 66 45s35 41 45 66c11 26 16 53 16 81s-5 55 -16 81
-c-10 25 -26 47 -45 66s-41 35 -66 45c-26 11 -53 16 -81 16zM224 416v0c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM76 128c-25 0 -41 18 -42 19c-3 3 -2 9 1 12s8 2 11 -1c1 -1 15 -17 36 -14c12 2 27 26 38 42c4 6 9 12 12 16
-c17 21 34 23 45 21c24 -3 45 -28 54 -50c7 -18 18 -28 32 -29c15 -1 31 11 43 30c1 2 3 4 4 7c9 17 24 43 52 43c31 0 52 -35 53 -36c2 -4 1 -9 -3 -11s-9 -1 -11 3c0 0 -5 8 -12 15c-6 6 -16 13 -27 13c-18 0 -29 -19 -38 -35c-1 -3 -3 -5 -4 -7c-15 -25 -36 -40 -58 -38
-c-20 1 -36 15 -46 39s-28 39 -41 41c-11 1 -21 -4 -31 -16c-3 -4 -6 -9 -10 -15c-14 -20 -31 -45 -50 -48c-3 0 -5 -1 -8 -1z" />
- <glyph glyph-name="ion-ios-analytics" unicode="&#xf3ce;"
-d="M224 416c124 0 224 -100 224 -224c0 -13 -1 -25 -3 -37c-1 -6 -2 -12 -3 -17c-24 -98 -113 -170 -218 -170c-122 0 -221 98 -224 219v5c0 9 1 17 2 26c13 111 107 198 222 198zM431 168c1 8 1 16 1 24c0 28 -5 55 -16 81c-10 25 -26 47 -45 66s-41 35 -66 45
-c-26 11 -53 16 -81 16s-55 -5 -81 -16c-25 -10 -47 -26 -66 -45s-35 -41 -45 -66c-11 -26 -16 -53 -16 -81v0c14 -21 29 -34 29 -34h1v-1c1 -1 15 -16 36 -13c12 2 27 26 38 42c4 6 9 12 12 16c17 21 34 23 45 21c24 -3 45 -27 54 -50c7 -18 18 -28 32 -29c15 -1 31 9 43 29
-c1 2 3 4 4 7c9 17 24 44 52 44c31 0 52 -35 53 -36c3 -4 9 -12 16 -20z" />
- <glyph glyph-name="ion-ios-arrow-back" unicode="&#xf3cf;" horiz-adv-x="192"
-d="M192 320l-127 -128l127 -128l-32 -32l-160 160v0v0l160 160z" />
- <glyph glyph-name="ion-ios-arrow-down" unicode="&#xf3d0;" horiz-adv-x="320"
-d="M301 288l19 -21l-160 -171l-160 171l19 21l141 -150z" />
- <glyph glyph-name="ion-ios-arrow-forward" unicode="&#xf3d1;" horiz-adv-x="192"
-d="M0 320l32 32l160 -160v0v0l-160 -160l-32 32l127 128z" />
- <glyph glyph-name="ion-ios-arrow-left" unicode="&#xf3d2;" horiz-adv-x="192"
-d="M192 333l-150 -141l150 -141l-21 -19l-171 160l171 160z" />
- <glyph glyph-name="ion-ios-arrow-right" unicode="&#xf3d3;" horiz-adv-x="192"
-d="M0 333l21 19l171 -160l-171 -160l-21 19l150 141z" />
- <glyph glyph-name="ion-ios-arrow-thin-down" unicode="&#xf3d4;" horiz-adv-x="192"
-d="M190 126c2 -2 2 -4 2 -6s0 -4 -2 -6c0 0 -87 -79 -88 -80s-3 -2 -6 -2s-5 1 -6 2s-88 80 -88 80c-3 3 -3 9 0 12s9 3 12 0l74 -67v285c0 4 4 8 8 8s8 -4 8 -8v-285l74 67c3 3 9 3 12 0z" />
- <glyph glyph-name="ion-ios-arrow-thin-left" unicode="&#xf3d5;" horiz-adv-x="320"
-d="M94 98c-2 -2 -4 -2 -6 -2s-4 0 -6 2c0 0 -79 87 -80 88s-2 3 -2 6s1 5 2 6s80 88 80 88c3 3 9 3 12 0s3 -9 0 -12l-67 -74h285c4 0 8 -4 8 -8s-4 -8 -8 -8h-285l67 -74c3 -3 3 -9 0 -12z" />
- <glyph glyph-name="ion-ios-arrow-thin-right" unicode="&#xf3d6;" horiz-adv-x="320"
-d="M226 98c-3 3 -3 9 0 12l67 74h-285c-4 0 -8 4 -8 8s4 8 8 8h285l-67 74c-3 3 -3 9 0 12s9 3 12 0c0 0 79 -87 80 -88s2 -3 2 -6s-1 -5 -2 -6s-80 -88 -80 -88c-2 -2 -4 -2 -6 -2s-4 0 -6 2z" />
- <glyph glyph-name="ion-ios-arrow-thin-up" unicode="&#xf3d7;" horiz-adv-x="192"
-d="M190 258c-3 -3 -9 -3 -12 0l-74 67v-285c0 -4 -4 -8 -8 -8s-8 4 -8 8v285l-74 -67c-3 -3 -9 -3 -12 0s-3 9 0 12c0 0 87 79 88 80s3 2 6 2s5 -1 6 -2s88 -80 88 -80c2 -2 2 -4 2 -6s0 -4 -2 -6z" />
- <glyph glyph-name="ion-ios-arrow-up" unicode="&#xf3d8;" horiz-adv-x="320"
-d="M301 96l-141 150l-141 -150l-19 21l160 171l160 -171z" />
- <glyph glyph-name="ion-ios-at-outline" unicode="&#xf3d9;" horiz-adv-x="255"
-d="M236 127v1h19l-3 -6c-3 -6 -13 -19 -22 -27s-18 -14 -28 -20s-21 -10 -32 -13s-23 -5 -34 -5c-16 0 -33 3 -49 8s-30 13 -43 24c-12 11 -26 29 -34 46c-7 16 -10 33 -10 58c0 18 4 38 11 55c7 16 17 30 29 42s27 21 43 28c15 6 33 9 53 9c16 0 32 -3 46 -8
-c15 -5 28 -12 39 -22s17 -21 24 -35c6 -13 8 -26 8 -44c0 -14 -2 -28 -7 -40s-9 -20 -17 -30c-8 -9 -13 -15 -23 -21c-11 -6 -20 -9 -29 -9c-8 0 -15 2 -20 7c-3 2 -5 6 -6 9c-6 -6 -11 -10 -17 -12c-10 -3 -18 -4 -26 -4s-15 1 -21 4s-12 7 -17 12s-8 11 -11 18
-s-5 14 -5 22c0 12 3 24 7 36v2c4 11 5 16 13 26c8 11 17 19 28 26s24 11 38 11c12 0 21 -3 31 -9c7 -4 12 -10 16 -16l6 17h18l-38 -102c-2 -5 -4 -10 -5 -14s-1 -7 -1 -10c0 -2 1 -4 3 -5s4 -2 8 -2c6 0 11 2 20 7c8 4 12 9 19 17c6 8 10 14 14 25s6 23 6 35
-c0 15 -2 25 -7 36c-6 13 -10 22 -19 30s-20 15 -33 20s-27 7 -42 7c-19 0 -35 -3 -48 -9c-15 -6 -27 -14 -37 -24c-11 -10 -19 -23 -25 -37c-6 -15 -10 -32 -10 -48c0 -22 2 -36 8 -49c6 -15 17 -31 28 -41s24 -18 38 -23s30 -7 46 -7c10 0 20 1 30 4s18 6 27 11
-s17 11 24 18s14 13 19 21zM147 154c4 5 8 12 11 20l21 57c-2 5 -4 10 -7 13c-3 4 -6 6 -10 8c-1 0 -1 1 -2 1c-3 2 -5 3 -9 4c-5 1 -9 2 -13 2c-10 0 -19 -3 -28 -9s-17 -13 -23 -22c-5 -8 -7 -11 -10 -20c0 -1 -1 -3 -1 -4c-4 -11 -5 -20 -5 -30c0 -6 1 -11 3 -16
-s5 -9 8 -13s7 -6 12 -8s9 -3 15 -3c4 0 9 1 14 2c4 1 8 2 12 5s8 7 12 13z" />
- <glyph glyph-name="ion-ios-at" unicode="&#xf3da;" horiz-adv-x="256"
-d="M228 128v0h28c-1 -1 -2 -4 -3 -6c-4 -6 -14 -19 -23 -27s-18 -14 -28 -20s-20 -10 -32 -13c-11 -3 -23 -5 -34 -5c-16 0 -33 3 -49 8s-30 13 -43 24c-12 10 -26 28 -34 46c-7 16 -10 33 -10 58c0 19 4 39 11 55s17 30 29 42s28 21 44 28c15 6 32 9 52 9c16 0 31 -3 46 -8
-s28 -12 39 -22s18 -22 25 -36c6 -14 8 -26 8 -44c0 -14 -2 -28 -7 -40c-4 -11 -9 -20 -17 -30c-7 -9 -14 -16 -24 -22c-12 -6 -21 -9 -30 -9s-16 2 -22 8c-2 1 -3 3 -4 5c-4 -4 -9 -6 -14 -8c-10 -3 -18 -5 -27 -5c-8 0 -16 2 -23 5s-12 7 -17 12s-9 12 -12 19s-4 14 -4 22
-c0 12 2 25 6 37l1 1c4 10 5 17 13 27c8 11 17 20 28 27c12 7 24 10 38 10c12 0 22 -3 33 -9c5 -3 8 -6 12 -10l5 12h25l-39 -104c-2 -5 -3 -9 -4 -13c-1 -3 -1 -7 -1 -9s0 -3 1 -3c0 0 1 -1 5 -1c5 0 11 2 19 7c7 4 10 8 16 16s9 13 13 23s6 20 6 32c0 14 -1 24 -6 34
-c-5 12 -10 21 -18 28c-9 8 -19 14 -31 18s-26 7 -40 7c-18 0 -32 -3 -44 -8c-14 -6 -25 -13 -35 -23s-18 -22 -24 -35c-6 -14 -9 -30 -9 -45c0 -21 3 -34 8 -46c6 -14 16 -30 26 -39s22 -16 35 -21c14 -5 28 -7 43 -7c10 0 20 2 29 4s18 6 26 11s28 20 38 33zM144 157
-c4 5 7 12 10 19l20 55c-1 4 -3 7 -5 9c-3 3 -6 6 -9 8h-1h-1v1c-3 2 -5 2 -8 3c-4 1 -8 1 -12 1c-9 0 -17 -2 -25 -7c-10 -6 -17 -14 -21 -21c-5 -8 -6 -11 -9 -19c0 -1 -1 -2 -1 -3c-3 -10 -6 -19 -6 -28c0 -5 1 -10 3 -14s4 -8 7 -11s7 -6 11 -8s8 -2 13 -2c4 0 8 0 12 1
-v0c4 1 7 2 11 5c3 2 7 5 11 11z" />
- <glyph glyph-name="ion-ios-barcode-outline" unicode="&#xf3db;" horiz-adv-x="416"
-d="M0 64v256h80v-16h-64v-224h64v-16h-80zM336 320h80v-256h-80v16h64v224h-64v16zM64 128v128h16v-128h-16zM336 128v128h16v-128h-16zM272 96v192h16v-192h-16zM128 96v192h16v-192h-16zM199 112v160h16v-160h-16z" />
- <glyph glyph-name="ion-ios-barcode" unicode="&#xf3dc;" horiz-adv-x="416"
-d="M0 320h416v-256h-416v256zM80 128v128h-16v-128h16zM144 96v192h-16v-192h16zM215 112v160h-16v-160h16zM288 96v192h-16v-192h16zM352 128v128h-16v-128h16z" />
- <glyph glyph-name="ion-ios-baseball-outline" unicode="&#xf3dd;" horiz-adv-x="416"
-d="M415 169v-1v0c-11 -97 -90 -174 -187 -183v0h-2c-2 0 -3 -1 -5 -1h-1h-3h-1h-8c-115 0 -208 93 -208 208v8v1v3v1c0 2 1 3 1 5v2v0c9 97 86 176 183 187v0v0c8 1 16 1 24 1c115 0 208 -93 208 -208c0 -7 0 -14 -1 -20v0v-3zM399 192c0 105 -86 191 -191 191
-c-3 0 -5 -1 -8 -1c0 -11 2 -21 4 -31l20 6l5 -15l-21 -7c2 -7 4 -14 7 -21c2 -5 5 -11 8 -16l17 12l9 -13l-19 -13c7 -12 16 -23 26 -33l14 15l12 -12l-15 -15c11 -10 22 -18 34 -25l12 18l14 -9l-12 -17c5 -2 10 -5 15 -7c7 -3 14 -5 22 -7l7 20l15 -5l-6 -19
-c10 -2 20 -4 30 -4c0 3 1 5 1 8zM17 192c0 -105 86 -191 191 -191h4c-1 9 -1 17 -3 26l-22 -7l-5 16l23 7c-2 8 -5 16 -8 24c-2 5 -4 9 -6 14l-20 -13l-9 13l21 14c-7 12 -16 24 -26 35l-17 -17l-11 11l17 17c-10 10 -22 18 -34 25l-14 -21l-14 9l14 20c-5 2 -10 5 -15 7
-c-7 3 -15 6 -23 8l-8 -24l-15 5l7 23c-9 2 -18 2 -27 3v-4zM228 2c88 9 158 78 169 166c-11 1 -23 3 -34 5l-9 -27l-15 5l8 25c-14 4 -28 10 -41 17l-15 -23l-13 9l14 21c-13 8 -26 17 -37 28l-19 -19l-11 11l19 19c-10 11 -19 23 -27 36l-21 -14l-9 13l22 15
-c-7 13 -12 27 -16 41l-25 -8l-5 16l26 8c-2 12 -4 23 -5 35c-88 -11 -157 -81 -166 -169c10 -1 21 -2 31 -4l8 23l15 -5l-7 -22c14 -4 28 -9 42 -16l13 19l14 -9l-13 -18c13 -8 25 -17 36 -28l17 17l11 -11l-17 -17c11 -12 20 -24 28 -37l19 13l9 -14l-20 -13
-c7 -14 12 -28 16 -42l23 7l5 -15l-24 -8c2 -10 3 -20 4 -30z" />
- <glyph glyph-name="ion-ios-baseball" unicode="&#xf3de;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208c0 -8 0 -16 -1 -24v0v0c-12 -104 -100 -184 -207 -184c-115 0 -208 93 -208 208c0 107 80 195 184 207v0v0c8 1 16 1 24 1zM212 1c5 0 11 0 16 1c-1 10 -2 20 -4 30l24 8l-5 15l-23 -7c-4 14 -9 28 -16 42l20 13l-9 14l-19 -13
-c-8 13 -17 25 -28 37l17 17l-11 11l-17 -17c-11 11 -23 20 -36 28l13 18l-14 9l-13 -19c-14 7 -28 12 -42 16l7 22l-15 5l-8 -23c-10 2 -21 3 -31 4c-1 -5 -1 -11 -1 -16c9 -1 18 -1 27 -3l-7 -23l15 -5l8 24c8 -2 16 -5 23 -8c5 -2 10 -5 15 -7l-14 -20l14 -9l14 21
-c12 -7 24 -15 34 -25l-17 -17l11 -11l17 17c10 -11 19 -23 26 -35l-21 -14l9 -13l20 13c2 -5 4 -9 6 -14c3 -8 6 -16 8 -24l-23 -7l5 -16l22 7c2 -8 2 -17 3 -26zM363 173c11 -2 23 -4 34 -5c1 5 1 11 1 16c-10 1 -20 2 -30 4l6 19l-15 5l-7 -20c-8 2 -15 4 -22 7
-c-5 2 -10 5 -15 7l12 17l-14 9l-12 -18c-12 7 -23 15 -34 25l15 15l-12 12l-15 -15c-10 10 -18 21 -25 33l19 13l-9 13l-17 -12c-3 5 -6 11 -8 16c-3 7 -5 14 -7 21l21 7l-5 15l-20 -6c-2 10 -3 20 -4 31c-5 0 -11 0 -16 -1c1 -12 3 -23 5 -35l-26 -8l5 -16l25 8
-c4 -14 9 -28 16 -41l-22 -15l9 -13l21 14c8 -13 17 -25 27 -36l-19 -19l11 -11l19 19c11 -11 24 -20 37 -28l-14 -21l13 -9l15 23c13 -7 27 -13 41 -17l-8 -25l15 -5z" />
- <glyph glyph-name="ion-ios-basketball-outline" unicode="&#xf3df;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM399 192c0 55 -24 105 -62 140c-14 -34 -31 -65 -52 -95c15 -12 31 -21 49 -29c21 -9 43 -14 65 -16v0zM325 343c-32 25 -73 40 -117 40v0c2 -22 6 -44 15 -65
-c10 -25 26 -47 45 -66c2 -1 2 -3 4 -4c20 29 38 60 52 93c0 1 1 1 1 2zM192 382c-51 -4 -96 -29 -128 -65c64 -28 121 -69 169 -119c11 12 21 24 30 37c-40 37 -67 89 -71 147zM233 174c-15 -16 -31 -30 -48 -44c28 -35 45 -79 47 -127c33 4 63 17 88 35
-c-22 50 -51 95 -87 136zM214 178l8 8l-10 10c-46 46 -99 82 -158 108c-18 -25 -31 -55 -35 -88c62 -3 116 -31 155 -74c14 11 27 23 40 36zM18 200c0 -3 -1 -5 -1 -8c0 -45 16 -87 43 -120c36 16 71 36 102 60l-7 7c-19 19 -41 35 -66 45c-22 9 -46 15 -71 16zM71 59
-c35 -36 83 -58 137 -58c3 0 5 1 8 1c-1 25 -6 48 -16 71c-7 17 -17 33 -28 47c-31 -24 -65 -45 -101 -61zM333 48c37 32 61 77 65 128c-46 3 -89 21 -123 48c-10 -13 -20 -26 -31 -38c36 -41 67 -87 89 -138z" />
- <glyph glyph-name="ion-ios-basketball" unicode="&#xf3e0;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM333 48c-22 51 -53 97 -89 138c11 12 21 25 31 38c34 -27 77 -45 123 -48c0 5 1 11 1 16c-22 2 -44 7 -65 16c-18 8 -34 17 -49 29c21 30 38 61 52 95c-4 4 -8 8 -12 11
-c0 -1 -1 -1 -1 -2c-14 -33 -32 -64 -52 -93c-2 1 -2 2 -4 4c-19 19 -35 41 -45 66c-9 21 -13 43 -15 65c-5 0 -11 -1 -16 -1c4 -58 31 -110 71 -147c-9 -13 -19 -25 -30 -37c-48 50 -105 91 -169 119c-4 -4 -7 -9 -10 -13c59 -26 112 -62 158 -108l10 -10l-8 -8
-c-13 -13 -26 -25 -40 -36c-39 43 -93 71 -155 74c-1 -5 -1 -11 -1 -16c25 -1 49 -7 71 -16c25 -10 47 -26 66 -45l7 -7c-31 -24 -66 -44 -102 -60c4 -4 7 -9 11 -13c36 16 70 37 101 61c11 -14 21 -30 28 -47c10 -23 15 -46 16 -71c5 0 11 0 16 1c-2 48 -19 92 -47 127
-c17 14 33 28 48 44c36 -41 65 -86 87 -136c4 3 9 6 13 10z" />
- <glyph glyph-name="ion-ios-bell-outline" unicode="&#xf3e1;" horiz-adv-x="384"
-d="M318 222c0 -114 28 -126 66 -158h-384c38 32 66 44 66 158c0 98 53 130 102 138v2c0 12 11 22 24 22s24 -10 24 -22v-2c49 -7 102 -40 102 -138zM43 80h298c-25 25 -40 58 -40 142c0 46 -13 80 -37 101c-23 19 -52 23 -72 23s-49 -4 -72 -23c-25 -21 -37 -55 -37 -101
-c0 -51 -5 -85 -17 -110c-6 -13 -14 -23 -23 -32zM192 0c-27 0 -49 20 -52 43h104c-3 -23 -25 -43 -52 -43z" />
- <glyph glyph-name="ion-ios-bell" unicode="&#xf3e2;" horiz-adv-x="384"
-d="M318 222c0 -114 28 -126 66 -158h-384c38 32 66 44 66 158c0 98 53 130 102 138v2c0 12 11 22 24 22s24 -10 24 -22v-2c49 -7 102 -40 102 -138zM192 0c-27 0 -49 20 -52 43h104c-3 -23 -25 -43 -52 -43z" />
- <glyph glyph-name="ion-ios-body-outline" unicode="&#xf3e3;" horiz-adv-x="384"
-d="M192 400c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32zM192 416v0c27 0 48 -21 48 -48s-21 -48 -48 -48s-48 21 -48 48s21 48 48 48zM360 304c13 0 24 -11 24 -24s-11 -24 -24 -24h-100c-5 0 -14 -5 -18 -15c-5 -12 -2 -33 1 -51l4 -21v-1v0l32 -172
-c2 -13 -6 -26 -19 -28h-5c-11 0 -22 8 -24 20l-21 120v0s-5 31 -17 31h-2c-12 0 -19 -31 -19 -31v0l-21 -120c-2 -12 -11 -20 -22 -20h-5c-13 2 -21 15 -19 28l32 172v1l4 21c3 18 6 39 1 51c-4 10 -12 15 -18 15h-100c-13 0 -24 11 -24 24s11 24 24 24h336zM24 272
-c-4 0 -8 4 -8 8s4 8 8 8h336c4 0 8 -4 8 -8s-4 -8 -8 -8h-102c-16 0 -26 -15 -30 -24c-5 -13 -6 -32 -1 -61v0v0l3 -19l1 -3l32 -172c0 -3 0 -5 -1 -6s-2 -2 -5 -3h-2c-4 0 -7 2 -8 6l-21 120v0c0 2 -2 10 -5 19c-2 6 -5 11 -8 15c-7 9 -14 11 -20 11h-2
-c-5 0 -13 -2 -20 -11c-3 -4 -6 -9 -8 -15c-4 -9 -6 -17 -6 -18v-1l-21 -120c-1 -4 -3 -6 -7 -6h-2c-3 0 -4 2 -5 3s-2 3 -1 6l32 172v0v1l4 21v0v0c5 29 5 48 0 61c-4 9 -14 24 -32 24z" />
- <glyph glyph-name="ion-ios-body" unicode="&#xf3e4;" horiz-adv-x="384"
-d="M144 368c0 32 16 48 48 48s48 -16 48 -48s-16 -48 -48 -48s-48 16 -48 48zM360 304c7 0 12 -2 17 -7s7 -10 7 -17s-2 -12 -7 -17s-10 -7 -17 -7h-98c-8 -2 -15 -6 -18 -14c-4 -9 -3 -27 1 -52l4 -21v-1v0l30 -172c1 -7 0 -13 -4 -18s-8 -9 -15 -10s-13 0 -18 4
-s-9 9 -10 16l-21 120v-1l-2 9c-1 5 -3 11 -6 16s-6 8 -10 8h-2c-8 0 -14 -11 -18 -33v1l-21 -120c-1 -7 -5 -12 -10 -16s-11 -5 -18 -4s-11 5 -15 10s-5 11 -4 18l30 172v0v1l4 21c4 25 5 43 1 52c-3 8 -10 12 -18 14h-98c-7 0 -12 2 -17 7s-7 10 -7 17s2 12 7 17s10 7 17 7
-h336z" />
- <glyph glyph-name="ion-ios-bolt-outline" unicode="&#xf3e5;" horiz-adv-x="226"
-d="M131 316l-100 -140h65h19l-3 -19l-17 -89l100 140h-65h-19l3 19zM160 384v0l-30 -160h96l-160 -224l30 160h-96z" />
- <glyph glyph-name="ion-ios-bolt" unicode="&#xf3e6;" horiz-adv-x="226"
-d="M160 384v0l-30 -160h96l-160 -224l30 160h-96z" />
- <glyph glyph-name="ion-ios-book-outline" unicode="&#xf3e7;" horiz-adv-x="384"
-d="M284 384c55 0 100 -26 100 -79v-1v-4v-261v-17h-6h-11h-5c-17 30 -44 42 -78 42c-40 0 -74 -28 -82 -64h-20c-8 36 -42 64 -82 64c-34 0 -65 -16 -78 -42h-5h-11h-6v9v264v9v1c0 53 45 79 100 79c41 0 78 -14 92 -44c12 30 51 44 92 44zM184 37v254v13v2
-c-1 43 -39 62 -84 62c-44 0 -81 -19 -84 -61v-1v0v-262h1c19 26 48 36 83 36s66 -17 84 -43zM368 300v14v1c-3 42 -40 53 -84 53c-46 0 -84 -20 -84 -64v-1v-266c18 26 49 43 84 43s66 -10 84 -36v256z" />
- <glyph glyph-name="ion-ios-book" unicode="&#xf3e8;" horiz-adv-x="384"
-d="M100 384c35 0 67 -10 84 -31v-353h-2c-8 36 -42 64 -82 64c-34 0 -65 -16 -78 -42h-5h-11h-6v9v264v9v1c0 53 45 79 100 79zM284 384c55 0 100 -26 100 -79v-1v-4v-261v-17h-6h-11h-5c-17 30 -44 42 -78 42c-40 0 -74 -28 -82 -64h-2v353c17 21 50 31 84 31z" />
- <glyph glyph-name="ion-ios-bookmarks-outline" unicode="&#xf3e9;" horiz-adv-x="418"
-d="M385 384c19 0 33 -13 33 -32v-286c0 -19 -14 -34 -33 -34h-143s-25 -4 -25 -19v-13h-8h-8v13c0 15 -11 19 -25 19h-143c-19 0 -33 15 -33 34v286c0 19 14 32 33 32h150c10 0 20 -5 26 -12v0v0c6 7 16 12 26 12h150zM201 37v309c0 9 -12 22 -25 22h-143
-c-9 0 -16 -7 -16 -16v-286c0 -9 7 -18 16 -18h144c10 0 19 -3 24 -11zM273 368v-100l23 14l9 6l9 -6l23 -14v100h-64zM401 66v286c0 9 -7 16 -16 16h-32v-131l-48 32l-48 -32v131h-15c-13 0 -25 -13 -25 -22v-309c5 9 14 11 24 11h144c9 0 16 9 16 18z" />
- <glyph glyph-name="ion-ios-bookmarks" unicode="&#xf3ea;" horiz-adv-x="418"
-d="M296 283l-23 -15v116h64v-116l-23 15l-9 6zM385 384c19 0 33 -13 33 -32v-286c0 -19 -14 -34 -33 -34h-143s-25 -4 -25 -19v-13h-8h-8v13c0 15 -11 19 -25 19h-143c-19 0 -33 15 -33 34v286c0 19 14 32 33 32h150s18 -8 18 -15v-329l8 -6l8 6v329s10 15 18 15h22v-146
-l48 32l48 -32v146h32z" />
- <glyph glyph-name="ion-ios-box-outline" unicode="&#xf3eb;" horiz-adv-x="320"
-d="M192 208h-1h-63c-9 0 -16 -7 -16 -16s7 -16 16 -16h64c9 0 16 7 16 16s-7 16 -16 16zM192 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32h-64c-18 0 -32 14 -32 32s14 32 32 32h64zM320 336v-80h-16v-208h-288v208h-16v80h320zM288 64v192h-256v-192h256zM304 272v48h-288
-v-48h288z" />
- <glyph glyph-name="ion-ios-box" unicode="&#xf3ec;" horiz-adv-x="320"
-d="M16 48v192h288v-192h-288zM128 208c-9 0 -16 -7 -16 -16s7 -16 16 -16h64c9 0 16 7 16 16s-7 16 -16 16h-64zM0 336h320v-80h-16h-288h-16v80z" />
- <glyph glyph-name="ion-ios-briefcase-outline" unicode="&#xf3ed;" horiz-adv-x="416"
-d="M368 320h48v-320h-416v320h48v16h32v-16h48v30v2c0 18 10 32 29 32h99c19 0 32 -14 32 -32v-2v-30h48v16h32v-16zM144 320v0h128v0v30c0 10 -7 18 -17 18h-97c-11 0 -14 -8 -14 -18v-30zM400 16v224h-384v-224h384zM400 256v48h-32v-16h-32v16h-256v-16h-32v16h-32v-48
-h384z" />
- <glyph glyph-name="ion-ios-briefcase" unicode="&#xf3ee;" horiz-adv-x="416"
-d="M48 320v16h32v-16h-32zM0 0v240h416v-240h-416zM336 320v16h32v-16h-32zM368 320h48v-64h-416v64h48v-32h32v32h48v30v2c0 18 10 32 29 32h99c19 0 32 -14 32 -32v-2v-30h48v-32h32v32zM272 320v30c0 10 -7 18 -17 18h-97c-11 0 -14 -8 -14 -18v-30v0h128v0z" />
- <glyph glyph-name="ion-ios-browsers-outline" unicode="&#xf3ef;" horiz-adv-x="384"
-d="M0 304h304v-304h-304v304zM288 16v272h-272v-272h272zM384 384v-304h-64v16h48v272h-272v-48h-16v64h304z" />
- <glyph glyph-name="ion-ios-browsers" unicode="&#xf3f0;" horiz-adv-x="384"
-d="M0 304h304v-304h-304v304zM80 384h304v-304h-64v240h-240v64z" />
- <glyph glyph-name="ion-ios-calculator-outline" unicode="&#xf3f1;" horiz-adv-x="288"
-d="M32 288v64h224v-64h-224zM48 336v-32h192v32h-192zM256 384c18 0 32 -14 32 -32v-320c0 -18 -14 -32 -32 -32h-224c-18 0 -32 14 -32 32v320c0 18 14 32 32 32h224zM272 32v320c0 9 -7 16 -16 16h-224c-9 0 -16 -7 -16 -16v-320c0 -9 7 -16 16 -16h224c9 0 16 7 16 16z
-M48 208h32h16v-16h-64v64h16v-16v-32zM48 128h32h16v-16h-64v64h16v-16v-32zM48 48h32h16v-16h-64v64h16v-16v-32zM128 208h32h16v-16h-64v64h16v-16v-32zM208 208h32h16v-16h-64v64h16v-16v-32zM128 128h32h16v-16h-64v64h16v-16v-32zM128 48h32h16v-16h-64v64h16v-16v-32z
-M208 48h32h16v-16h-64v144h16v-96v-32z" />
- <glyph glyph-name="ion-ios-calculator" unicode="&#xf3f2;" horiz-adv-x="288"
-d="M256 384c18 0 32 -14 32 -32v-320c0 -18 -14 -32 -32 -32h-224c-18 0 -32 14 -32 32v320c0 18 14 32 32 32h224zM248 168h-48v-128h48v128zM248 248h-48v-48h48v48zM168 88h-48v-48h48v48zM168 168h-48v-48h48v48zM168 248h-48v-48h48v48zM88 88h-48v-48h48v48zM88 168
-h-48v-48h48v48zM88 248h-48v-48h48v48zM40 296h208v48h-208v-48z" />
- <glyph glyph-name="ion-ios-calendar-outline" unicode="&#xf3f3;" horiz-adv-x="384"
-d="M16 336v-64h352v64zM288 352h96v-352h-384v352h96v32h16v-32h160v32h16v-32zM368 16v240h-352v-240h352zM368 272v64h-80v-32h-16v32h-160v-32h-16v32h-80v-64h352z" />
- <glyph glyph-name="ion-ios-calendar" unicode="&#xf3f4;" horiz-adv-x="384"
-d="M0 0v256h384v-256h-384zM384 352v-80h-384v80h96v-48h16v48h160v-48h16v48h96zM96 352v32h16v-32h-16zM272 352v32h16v-32h-16z" />
- <glyph glyph-name="ion-ios-camera-outline" unicode="&#xf3f5;" horiz-adv-x="384"
-d="M354 288c18 0 30 -13 30 -31v-176c0 -18 -12 -33 -30 -33h-320c-18 0 -34 15 -34 33v176c0 18 16 31 34 31h13v16h34v-16h13c32 36 43 48 55 48h88c12 0 23 -12 55 -48h62zM368 81v176c0 9 -5 15 -14 15h-62h-7l-5 3c-3 4 -7 8 -10 11c-12 13 -20 24 -26 30
-c-5 5 -7 4 -7 4h-88s-2 0 -7 -4c-6 -5 -14 -14 -25 -27c-3 -4 -7 -10 -11 -14l-5 -3h-7h-60c-9 0 -18 -7 -18 -15v-176c0 -9 9 -17 18 -17h320c8 0 14 8 14 17zM192 258c47 0 86 -38 86 -85s-39 -85 -86 -85s-86 38 -86 85s39 85 86 85zM192 104c38 0 70 31 70 69
-s-32 69 -70 69s-70 -31 -70 -69s32 -69 70 -69zM288 239v17h17v-17h-17zM160 173c0 21 11 32 32 32s32 -11 32 -32s-11 -32 -32 -32s-32 11 -32 32z" />
- <glyph glyph-name="ion-ios-camera" unicode="&#xf3f6;" horiz-adv-x="384"
-d="M354 288c18 0 30 -13 30 -31v-176c0 -18 -12 -33 -30 -33h-320c-18 0 -34 15 -34 33v176c0 18 16 31 34 31h13v16h34v-16h13c32 36 43 48 55 48h88c12 0 23 -12 55 -48h62zM192 88c47 0 86 38 86 85s-39 85 -86 85s-86 -38 -86 -85s39 -85 86 -85zM305 239v17h-17v-17h17
-zM192 242c38 0 70 -31 70 -69s-32 -69 -70 -69s-70 31 -70 69s32 69 70 69zM192 141c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32z" />
- <glyph glyph-name="ion-ios-cart-outline" unicode="&#xf3f7;" horiz-adv-x="384"
-d="M96 48c13 0 24 -11 24 -24s-11 -24 -24 -24s-24 11 -24 24s11 24 24 24zM96 16c4 0 8 4 8 8s-4 8 -8 8s-8 -4 -8 -8s4 -8 8 -8zM320 48c13 0 24 -11 24 -24s-11 -24 -24 -24s-24 11 -24 24s11 24 24 24zM320 16c4 0 8 4 8 8s-4 8 -8 8s-8 -4 -8 -8s4 -8 8 -8zM384 320
-l-16 -128l-271 -48l5 -30c7 -34 21 -34 26 -34h240v-16h-240c-11 0 -21 5 -28 14c-6 8 -11 19 -13 33l-43 234v0c-2 8 -3 12 -7 16c-6 5 -18 7 -37 7v16c23 0 38 -4 47 -11c7 -6 10 -14 12 -21zM355 206l11 99l-304 31l32 -176z" />
- <glyph glyph-name="ion-ios-cart" unicode="&#xf3f8;" horiz-adv-x="384"
-d="M96 48c13 0 24 -11 24 -24s-11 -24 -24 -24s-24 11 -24 24s11 24 24 24zM320 48c13 0 24 -11 24 -24s-11 -24 -24 -24s-24 11 -24 24s11 24 24 24zM384 320l-16 -128l-271 -48l5 -30c7 -34 21 -34 26 -34h240v-16h-240c-11 0 -21 5 -28 14c-6 8 -11 19 -13 33l-43 234v0
-c-2 8 -3 12 -7 16c-6 5 -18 7 -37 7v16c23 0 38 -4 47 -11c7 -6 10 -14 12 -21z" />
- <glyph glyph-name="ion-ios-chatboxes-outline" unicode="&#xf3f9;" horiz-adv-x="416"
-d="M16 384v-192h96v-16h-112v224h288v-112h-16v96h-256zM128 272h288v-224h-48v-64h-13l-64 64h-163v224zM400 64v192h-256v-192h153l55 -55v55h48z" />
- <glyph glyph-name="ion-ios-chatboxes" unicode="&#xf3fa;" horiz-adv-x="416"
-d="M288 400v-112h-176v-112h-112v224h288zM128 272h288v-224h-48v-64h-13l-64 64h-163v224z" />
- <glyph glyph-name="ion-ios-chatbubble-outline" unicode="&#xf3fb;" horiz-adv-x="384"
-d="M192 336c-97 0 -176 -62 -176 -138c0 -26 10 -51 27 -73c0 -1 0 -2 1 -3s2 -1 2 -2c4 -6 6 -13 6 -20c0 -3 1 -3 -13 -47l39 17v0c2 1 10 4 11 4h1v0c5 2 10 3 16 3c5 0 9 -1 14 -2l1 -1h2c19 -6 41 -10 70 -10c48 0 92 15 125 40c32 25 50 58 50 94
-c0 76 -79 138 -176 138zM192 352v0c106 0 192 -69 192 -154s-85 -150 -191 -150c-27 0 -52 3 -75 11h-2v0c-3 1 -6 2 -10 2s-9 -1 -12 -2h1h-1c-1 0 -9 -4 -10 -4l-50 -22l-2 -1h-3h-3c-6 1 -8 6 -7 10v0s17 57 17 58c0 4 -1 8 -3 11v0v0v0l1 -1l-4 4c-19 24 -30 53 -30 84
-c0 85 86 154 192 154z" />
- <glyph glyph-name="ion-ios-chatbubble" unicode="&#xf3fc;" horiz-adv-x="384"
-d="M192 352v0c106 0 192 -69 192 -154s-85 -150 -191 -150c-27 0 -52 3 -75 11h-2v0c-3 1 -6 2 -10 2s-9 -1 -12 -2h1h-1c-1 0 -9 -4 -10 -4l-50 -22l-2 -1h-3h-3c-6 1 -8 6 -7 10v0s17 57 17 58c0 4 -1 8 -3 11v0v0v0l1 -1l-4 4c-19 24 -30 53 -30 84c0 85 86 154 192 154z
-" />
- <glyph glyph-name="ion-ios-checkmark-empty" unicode="&#xf3fd;" horiz-adv-x="207"
-d="M74 118c-2 -2 -6 -4 -9 -4s-7 2 -9 4l-56 56l18 18l47 -47l125 126l17 -18z" />
- <glyph glyph-name="ion-ios-checkmark-outline" unicode="&#xf3fe;" horiz-adv-x="416"
-d="M292 271l18 -18l-134 -135c-2 -2 -6 -4 -9 -4s-7 2 -9 4l-56 56l18 18l47 -47zM208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1c105 0 191 86 191 191s-86 191 -191 191s-191 -86 -191 -191s86 -191 191 -191z" />
- <glyph glyph-name="ion-ios-checkmark" unicode="&#xf3ff;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM176 118l134 135l-18 18l-125 -126l-47 47l-18 -18l56 -56c2 -2 6 -4 9 -4s7 2 9 4z" />
- <glyph glyph-name="ion-ios-circle-filled" unicode="&#xf400;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1c105 0 191 86 191 191s-86 191 -191 191s-191 -86 -191 -191s86 -191 191 -191zM208 352c88 0 160 -72 160 -160s-72 -160 -160 -160s-160 72 -160 160s72 160 160 160z" />
- <glyph glyph-name="ion-ios-circle-outline" unicode="&#xf401;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1c105 0 191 86 191 191s-86 191 -191 191s-191 -86 -191 -191s86 -191 191 -191z" />
- <glyph glyph-name="ion-ios-clock-outline" unicode="&#xf402;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1c105 0 191 86 191 191s-86 191 -191 191s-191 -86 -191 -191s86 -191 191 -191zM208 192v128h17v-145h-113v17h96z" />
- <glyph glyph-name="ion-ios-clock" unicode="&#xf403;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM225 175v145h-17v-128h-96v-17h113z" />
- <glyph glyph-name="ion-ios-close-empty" unicode="&#xf404;" horiz-adv-x="192"
-d="M180 288l12 -12l-84 -84l84 -84l-12 -12l-84 84l-84 -84l-12 12l84 84l-84 84l12 12l84 -84z" />
- <glyph glyph-name="ion-ios-close-outline" unicode="&#xf405;" horiz-adv-x="416"
-d="M355 339c81 -81 81 -213 0 -294s-213 -81 -294 0s-81 213 0 294s213 81 294 0zM343 57c74 74 74 196 0 270s-196 74 -270 0s-74 -196 0 -270s196 -74 270 0zM292 288l12 -12l-84 -84l84 -84l-12 -12l-84 84l-84 -84l-12 12l84 84l-84 84l12 12l84 -84z" />
- <glyph glyph-name="ion-ios-close" unicode="&#xf406;" horiz-adv-x="416"
-d="M355 339c81 -81 81 -213 0 -294s-213 -81 -294 0s-81 213 0 294s213 81 294 0zM304 108l-84 84l84 84l-12 12l-84 -84l-84 84l-12 -12l84 -84l-84 -84l12 -12l84 84l84 -84z" />
- <glyph glyph-name="ion-ios-cloud-download-outline" unicode="&#xf407;"
-d="M161 67l55 -54v242h16v-242l55 54l12 -12l-75 -73l-74 73zM367 284c45 0 81 -37 81 -82s-37 -82 -82 -82v0h-101v16h97h4c37 0 66 30 66 66s-29 67 -66 67h-15v20c0 55 -46 97 -101 97c-38 0 -73 -22 -90 -56l-6 -14l-14 7c-6 3 -13 5 -20 5c-22 0 -40 -18 -44 -39l-1 -9
-l-9 -3c-30 -10 -50 -36 -50 -67c0 -40 33 -74 74 -74h91v-16h-91c-50 0 -90 40 -90 89c0 39 26 71 61 83c5 28 29 51 59 51c10 0 18 -2 26 -6c19 39 59 65 105 65c64 0 117 -51 117 -115c0 -1 -1 -2 -1 -3z" />
- <glyph glyph-name="ion-ios-cloud-download" unicode="&#xf408;"
-d="M216 13v107h16v-107l55 54l12 -12l-75 -73l-74 73l11 12zM367 284c45 0 81 -37 81 -82s-37 -82 -82 -82h-134v135h-16v-135h-35h-21h-70c-50 0 -90 40 -90 89c0 39 26 71 61 83c5 28 29 51 59 51c10 0 18 -2 26 -6c19 39 59 65 105 65c64 0 117 -51 117 -115
-c0 -1 -1 -2 -1 -3z" />
- <glyph glyph-name="ion-ios-cloud-outline" unicode="&#xf409;"
-d="M367 215c45 0 81 -37 81 -83c0 -45 -37 -84 -82 -84h-276c-50 0 -90 42 -90 92c0 40 26 71 61 83c5 28 29 52 59 52c10 0 18 -2 26 -6c19 39 59 67 105 67c64 0 117 -53 117 -117c0 -1 -1 -3 -1 -4zM366 64c37 0 66 32 66 69s-29 67 -66 67h-15v21c0 56 -46 99 -101 99
-c-38 0 -73 -23 -90 -58l-6 -14l-14 7c-6 3 -13 5 -20 5c-22 0 -40 -17 -44 -39l-1 -9l-9 -3c-30 -10 -50 -37 -50 -69c0 -41 33 -76 74 -76h272h4z" />
- <glyph glyph-name="ion-ios-cloud-upload-outline" unicode="&#xf40a;"
-d="M161 188l-11 11l74 75l75 -75l-12 -11l-55 54v-242h-16v242zM367 264c45 0 81 -39 81 -85s-37 -83 -82 -83v0h-101v16h97h4c37 0 66 30 66 67s-29 70 -66 70l-15 1v20c0 56 -46 99 -101 99c-38 0 -73 -23 -90 -58l-6 -13l-14 6c-6 3 -13 5 -20 5c-22 0 -40 -17 -44 -39
-l-1 -9l-9 -3c-30 -10 -50 -39 -50 -71c0 -41 33 -75 74 -75h91v-16h-91c-50 0 -90 40 -90 90c0 40 26 74 61 86c5 28 29 52 59 52c10 0 18 -2 26 -6c19 39 59 66 105 66c64 0 117 -52 117 -116c0 -1 -1 -3 -1 -4z" />
- <glyph glyph-name="ion-ios-cloud-upload" unicode="&#xf40b;"
-d="M216 0v96h16v-96h-16zM367 264c45 0 81 -39 81 -85s-37 -83 -82 -83h-134v146l55 -54l12 11l-75 75l-74 -75l11 -11l55 54v-146h-35h-31h-60c-50 0 -90 40 -90 90c0 40 26 74 61 86c5 28 29 52 59 52c10 0 18 -2 26 -6c19 39 59 66 105 66c64 0 117 -52 117 -116
-c0 -1 -1 -3 -1 -4z" />
- <glyph glyph-name="ion-ios-cloud" unicode="&#xf40c;"
-d="M367 215c45 0 81 -37 81 -83c0 -45 -37 -84 -82 -84h-276c-50 0 -90 42 -90 92c0 40 26 71 61 83c5 28 29 52 59 52c10 0 18 -2 26 -6c19 39 59 67 105 67c64 0 117 -53 117 -117c0 -1 -1 -3 -1 -4z" />
- <glyph glyph-name="ion-ios-cloudy-night-outline" unicode="&#xf40d;" horiz-adv-x="384"
-d="M125 224c-34 0 -63 -28 -63 -62v-12s1 -10 1 -10c-5 0 -12 -1 -14 -1c-19 -3 -33 -18 -33 -37c0 -10 3 -19 10 -26s16 -11 26 -11h157c27 0 49 22 49 49s-22 50 -49 50c-2 0 -4 -1 -6 -1l-14 -2l-3 14c-3 14 -11 26 -22 35s-25 14 -39 14zM125 240v0c37 0 68 -26 76 -61
-h8c36 0 65 -29 65 -65s-29 -66 -65 -66h-157c-28 0 -52 24 -52 53c0 27 21 51 47 53v8c0 43 35 78 78 78zM361 142c8 0 15 2 23 4c-4 -7 -9 -14 -14 -20c-21 -24 -50 -41 -84 -45c4 6 6 12 8 19c19 4 36 13 50 25c-18 1 -35 6 -50 13c-23 11 -42 29 -56 51
-c-14 21 -22 48 -22 75c0 15 2 30 7 44c-24 -12 -43 -33 -53 -59c-5 2 -12 4 -18 5c14 36 45 65 82 77c8 2 16 4 24 5c-5 -6 -9 -13 -12 -20c-8 -16 -12 -34 -12 -52c0 -32 12 -63 35 -86s54 -36 86 -36h6z" />
- <glyph glyph-name="ion-ios-cloudy-night" unicode="&#xf40e;" horiz-adv-x="384"
-d="M361 142c8 0 15 2 23 4c-4 -7 -9 -15 -14 -21c-21 -24 -50 -40 -84 -44h-3c4 10 7 21 7 32c0 22 -9 43 -24 58c-14 15 -33 23 -53 24c-6 16 -16 29 -29 40c-10 8 -20 13 -32 17v2c14 36 45 65 82 77c8 2 16 4 24 5c-5 -6 -9 -13 -12 -20c-8 -16 -12 -34 -12 -52
-c0 -32 12 -63 35 -86s54 -36 86 -36h6zM125 239v0c37 0 68 -26 76 -61h8c36 0 65 -29 65 -65s-29 -66 -65 -66h-157c-28 0 -52 24 -52 53c0 27 21 51 47 53v7c0 43 35 79 78 79z" />
- <glyph glyph-name="ion-ios-cloudy-outline" unicode="&#xf40f;" horiz-adv-x="274"
-d="M125 272c-34 0 -63 -28 -63 -62v-12s1 -10 1 -10c-6 0 -12 -1 -14 -1c-19 -3 -33 -18 -33 -37c0 -10 3 -19 10 -26s16 -11 26 -11h157c27 0 49 22 49 49s-22 50 -49 50c-2 0 -4 -1 -6 -1l-14 -2l-3 14c-3 14 -11 26 -22 35s-25 14 -39 14zM125 288v0c37 0 68 -26 76 -61
-h8c36 0 65 -29 65 -65s-29 -66 -65 -66h-157c-28 0 -52 24 -52 53c0 27 21 51 47 53v8c0 43 35 78 78 78z" />
- <glyph glyph-name="ion-ios-cloudy" unicode="&#xf410;" horiz-adv-x="274"
-d="M125 288v0c37 0 68 -26 76 -61h8c36 0 65 -29 65 -65s-29 -66 -65 -66h-157c-28 0 -52 24 -52 53c0 27 21 51 47 53v8c0 43 35 78 78 78z" />
- <glyph glyph-name="ion-ios-cog-outline" unicode="&#xf411;" horiz-adv-x="384"
-d="M384 175l-33 -8l-3 -14l27 -20l-12 -30l-34 5l-8 -11l17 -29l-23 -23l-29 17l-10 -7l5 -34l-29 -12l-21 27l-14 -3l-8 -33h-32l-9 33l-13 3l-21 -28l-29 12l4 34l-11 8l-30 -19l-23 23l18 31l-7 11l-35 -5l-12 29l28 22l-2 12l-35 9v32l35 9l2 12l-29 22l12 30l36 -5
-l7 10l-19 32l22 22l32 -19l11 8l-4 35l29 13l22 -29l12 2l9 35h32l9 -35l12 -2l22 28l29 -12l-5 -35l11 -8l30 18l22 -23l-17 -30l7 -10l35 5l12 -30l-28 -21l3 -13l33 -9v-32zM356 127l-26 20l6 33l32 8v7l-32 8l-6 33l26 19l-3 7l-32 -5l-19 27l17 28l-5 6l-28 -17l-28 18
-l5 34l-6 2l-20 -26l-32 6l-8 33h-7l-9 -33l-32 -6l-20 27l-7 -3l5 -34l-28 -18l-9 6l-21 12l-5 -5l18 -30l-18 -27l-33 5l-3 -7l27 -20l-6 -32l-33 -8v-7l33 -9l6 -32l-27 -20l3 -6l33 4l18 -27l-17 -29l5 -6l29 18l28 -18l-5 -33l7 -3l19 27l33 -7l8 -31h8l7 31l33 7
-l20 -26l7 3l-5 32l26 18l28 -16l5 5l-16 27l19 28l32 -4zM192 320c71 0 128 -57 128 -128s-57 -128 -128 -128s-128 57 -128 128s57 128 128 128zM80 192c0 -7 1 -15 2 -22l104 28l28 104c-7 1 -15 2 -22 2c-30 0 -58 -12 -79 -33s-33 -49 -33 -79zM192 80c27 0 53 10 73 27
-l-75 75l-104 -28c6 -15 15 -29 27 -41c21 -21 49 -33 79 -33zM276 118c18 20 28 47 28 74c0 30 -12 58 -33 79c-12 12 -26 22 -42 27l-28 -105z" />
- <glyph glyph-name="ion-ios-cog" unicode="&#xf412;" horiz-adv-x="384"
-d="M229 298c16 -5 30 -15 42 -27c21 -21 33 -49 33 -79c0 -27 -10 -54 -28 -74l-75 75zM214 302l-28 -104l-104 -28c-1 7 -2 15 -2 22c0 30 12 58 33 79s49 33 79 33c7 0 15 -1 22 -2zM86 154l104 28l75 -75c-20 -17 -46 -27 -73 -27c-30 0 -58 12 -79 33
-c-12 12 -21 26 -27 41zM384 175l-33 -8l-3 -14l27 -20l-12 -30l-34 5l-8 -11l17 -29l-23 -23l-29 17l-10 -7l5 -34l-29 -12l-21 27l-14 -3l-8 -33h-32l-9 33l-13 3l-21 -28l-29 12l4 34l-11 8l-30 -19l-23 23l18 31l-7 11l-35 -5l-12 29l28 22l-2 12l-35 9v32l35 9l2 12
-l-29 22l12 30l36 -5l7 10l-19 32l22 22l32 -19l11 8l-4 35l29 13l22 -29l12 2l9 35h32l9 -35l12 -2l22 28l29 -12l-5 -35l11 -8l30 18l22 -23l-17 -30l7 -10l35 5l12 -30l-28 -21l3 -13l33 -9v-32zM192 64c71 0 128 57 128 128s-57 128 -128 128s-128 -57 -128 -128
-s57 -128 128 -128z" />
- <glyph glyph-name="ion-ios-color-filter-outline" unicode="&#xf413;" horiz-adv-x="384"
-d="M302 236c47 -13 82 -57 82 -108c0 -62 -50 -112 -112 -112c-31 0 -60 13 -80 34c-20 -21 -49 -34 -80 -34c-62 0 -112 50 -112 112c0 51 35 95 82 108c-1 7 -2 13 -2 20c0 62 50 112 112 112s112 -50 112 -112c0 -7 -1 -13 -2 -20zM96 256c0 -6 0 -12 1 -17
-c5 1 10 1 15 1c31 0 60 -13 80 -34c20 21 49 34 80 34c5 0 10 0 15 -1c1 5 1 11 1 17c0 53 -43 96 -96 96s-96 -43 -96 -96zM208 128c0 6 0 12 -1 17c-5 -1 -10 -1 -15 -1s-10 0 -15 1c-1 -5 -1 -11 -1 -17c0 -20 6 -38 16 -53c10 15 16 33 16 53zM192 160c3 0 7 1 10 1
-c-3 7 -6 14 -10 20c-4 -6 -7 -13 -10 -20c3 0 7 -1 10 -1zM166 164c4 11 9 21 16 30c-18 18 -43 30 -70 30c-3 0 -7 -1 -10 -1c10 -29 34 -51 64 -59zM202 194c7 -9 12 -19 16 -30c30 8 54 30 64 59c-3 0 -7 1 -10 1c-27 0 -52 -12 -70 -30zM112 32c27 0 52 12 70 30
-c-14 19 -22 41 -22 66c0 7 1 13 2 20c-36 10 -64 37 -76 72c-40 -11 -70 -48 -70 -92c0 -53 43 -96 96 -96zM272 32c53 0 96 43 96 96c0 44 -30 81 -70 92c-12 -35 -40 -62 -76 -72c1 -7 2 -13 2 -20c0 -25 -8 -47 -22 -66c18 -18 43 -30 70 -30z" />
- <glyph glyph-name="ion-ios-color-filter" unicode="&#xf414;" horiz-adv-x="384"
-d="M302 236c47 -13 82 -57 82 -108c0 -62 -50 -112 -112 -112c-31 0 -60 13 -80 34c-20 -21 -49 -34 -80 -34c-62 0 -112 50 -112 112c0 51 35 95 82 108c-1 7 -2 13 -2 20c0 62 50 112 112 112s112 -50 112 -112c0 -7 -1 -13 -2 -20zM192 53l1 -2c3 3 6 7 9 11
-c14 19 22 41 22 66c0 7 -1 13 -2 20c36 10 64 37 76 72c2 5 3 10 4 15c-1 0 -2 1 -3 1v1c-4 1 -8 1 -12 2c-5 1 -10 1 -15 1c-31 0 -60 -13 -80 -34c-20 21 -49 34 -80 34c-5 0 -10 0 -15 -1c-4 -1 -8 -1 -12 -2v-1c-1 0 -2 -1 -3 -1c1 -5 2 -10 4 -15c12 -35 40 -62 76 -72
-c-1 -7 -2 -13 -2 -20c0 -25 8 -47 22 -66c3 -4 6 -8 9 -11zM207 145c1 -5 1 -11 1 -17c0 -20 -6 -38 -16 -53c-10 15 -16 33 -16 53c0 6 0 12 1 17c5 -1 10 -1 15 -1s10 0 15 1zM282 223c-10 -29 -34 -51 -64 -59c-4 11 -9 21 -16 30c18 18 43 30 70 30c3 0 7 -1 10 -1z
-M202 161c-3 0 -7 -1 -10 -1s-7 1 -10 1c3 7 6 14 10 20c4 -6 7 -13 10 -20zM112 224c27 0 52 -12 70 -30c-7 -9 -12 -19 -16 -30c-30 8 -54 30 -64 59c3 0 7 1 10 1z" />
- <glyph glyph-name="ion-ios-color-wand-outline" unicode="&#xf415;" horiz-adv-x="384"
-d="M128 298l256 -256l-34 -34l-256 256zM149 232l201 -201l11 11l-201 202zM120 344v40h16v-40h-16zM120 140v40h16v-40h-16zM216 256v16h40v-16h-40zM0 256v16h40v-16h-40zM47 354l29 -29l-12 -11l-28 28zM76 198l-29 -28l-11 11l28 28zM220 342l-28 -28l-12 11l29 29z" />
- <glyph glyph-name="ion-ios-color-wand" unicode="&#xf416;" horiz-adv-x="396"
-d="M140 289l256 -257l-34 -34l-256 257zM124 322v64h32v-64h-32zM124 118v64h32v-64h-32zM216 238v32h64v-32h-64zM246 336l-45 -45l-23 22l45 46zM34 336l23 23l45 -46l-23 -22zM34 169l45 45l23 -22l-45 -46zM0 238v32h64v-32h-64z" />
- <glyph glyph-name="ion-ios-compose-outline" unicode="&#xf417;" horiz-adv-x="384"
-d="M304 32v208l16 16v-240h-320v304h256l-16 -16h-224v-272h288zM174 164l171 171l11 -11l-180 -180h-32v32l180 180l11 -11l-171 -171zM380 368c2 -3 4 -6 4 -10s-2 -7 -4 -10l-12 -12l-21 21l-11 11v0l12 12c3 2 6 4 10 4s7 -2 10 -4z" />
- <glyph glyph-name="ion-ios-compose" unicode="&#xf418;" horiz-adv-x="384"
-d="M192 128l128 128v-240h-320v304h256l-128 -128v-64h64zM324 356l32 -32l-180 -180h-32v32zM380 368c2 -3 4 -6 4 -10s-2 -7 -4 -10l-12 -12l-21 21l-11 11v0l12 12c3 2 6 4 10 4s7 -2 10 -4z" />
- <glyph glyph-name="ion-ios-contact-outline" unicode="&#xf419;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 383c-105 0 -191 -86 -191 -191c0 -47 17 -89 45 -122c18 8 62 24 90 32c2 1 3 0 3 10c0 11 -1 18 -4 24c-4 8 -7 20 -9 31c-4 5 -10 15 -14 33c-3 16 -1 22 1 28v2
-c1 4 0 23 -3 38c-2 10 1 34 15 52c9 12 27 26 58 28h18c32 -2 49 -16 58 -28c14 -18 17 -42 15 -52c-3 -15 -4 -34 -3 -38c0 0 1 -1 1 -2c2 -6 3 -12 0 -28c-4 -18 -10 -27 -14 -32c-2 -11 -5 -24 -9 -32c-3 -7 -6 -15 -6 -23c0 -10 0 -10 2 -11c27 -8 73 -24 93 -32
-c28 33 45 76 45 122c0 105 -86 191 -191 191z" />
- <glyph glyph-name="ion-ios-contact" unicode="&#xf41a;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1c59 0 111 27 146 69c-20 8 -66 24 -93 32c-2 1 -3 1 -3 11c0 8 4 16 7 23c4 8 7 21 9 32c4 5 10 14 14 32c3 16 2 22 0 28c0 0 -1 1 -1 2c-1 4 0 23 3 38c2 10 -1 34 -15 52
-c-9 12 -26 26 -58 28h-18c-31 -2 -49 -16 -58 -28c-14 -18 -17 -42 -15 -52c3 -15 4 -34 3 -38v-2c-2 -6 -4 -12 -1 -28c4 -18 10 -28 14 -33c2 -11 5 -23 9 -31c3 -6 4 -13 4 -24c0 -10 -1 -9 -3 -10c-28 -8 -72 -24 -90 -32c35 -42 87 -69 146 -69z" />
- <glyph glyph-name="ion-ios-copy-outline" unicode="&#xf41b;" horiz-adv-x="288"
-d="M192 352v-64h64v-16h-80v80h16zM213 384l75 -75v-261h-48v-48h-240v336h48v48h165zM224 16v32h-176v272h-32v-304h208zM272 64v238l-65 66h-143v-304h208z" />
- <glyph glyph-name="ion-ios-copy" unicode="&#xf41c;" horiz-adv-x="288"
-d="M32 32h16h192v-32h-240v336h32v-288v-16zM213 384l75 -75v-261h-48h-192v288v48h165zM256 272v16h-64v64h-16v-80h80z" />
- <glyph glyph-name="ion-ios-crop-strong" unicode="&#xf41d;" horiz-adv-x="384"
-d="M64 336v48h32v-48h-32zM96 96h176v-32h-208v208h32v-176zM336 64v32h48v-32h-48zM0 320h320v-320h-32v288h-288v32z" />
- <glyph glyph-name="ion-ios-crop" unicode="&#xf41e;" horiz-adv-x="384"
-d="M64 336v48h16v-48h-16zM80 80h208v-16h-224v224h16v-208zM336 64v16h48v-16h-48zM0 320h320v-320h-16v304h-304v16z" />
- <glyph glyph-name="ion-ios-download-outline" unicode="&#xf41f;" horiz-adv-x="320"
-d="M192 304h128v-304h-320v304h128v-16h-112v-272h288v272h-112v16zM97 196l55 -55v243h16v-243l55 55l11 -12l-74 -74l-74 74z" />
- <glyph glyph-name="ion-ios-download" unicode="&#xf420;" horiz-adv-x="320"
-d="M168 304h152v-304h-320v304h152v-163l-55 55l-11 -12l74 -74l74 74l-11 12l-55 -55v163zM152 304v80h16v-80h-16z" />
- <glyph glyph-name="ion-ios-drag" unicode="&#xf421;" horiz-adv-x="352"
-d="M0 128v16h352v-16h-352zM0 184v16h352v-16h-352zM0 240v16h352v-16h-352z" />
- <glyph glyph-name="ion-ios-email-outline" unicode="&#xf422;" horiz-adv-x="384"
-d="M0 320h384v-256h-384v256zM192 180l163 124h-326zM16 80h352v214l-115 -88l68 -77l-2 -2l-79 70l-48 -37l-48 37l-79 -70l-2 2l68 77l-115 88v-214z" />
- <glyph glyph-name="ion-ios-email" unicode="&#xf423;" horiz-adv-x="384"
-d="M384 64h-384v242l131 -100l-68 -77l2 -2l79 70l48 -37l48 37l79 -70l2 2l-68 77l131 100v-242zM376 320l-184 -140l-184 140h368z" />
- <glyph glyph-name="ion-ios-eye-outline" unicode="&#xf424;" horiz-adv-x="384"
-d="M383 192l1 -1l-6 -6c-21 -21 -47 -48 -78 -69c-36 -24 -72 -36 -108 -36c-83 0 -130 49 -185 105l-7 7l1 1c39 40 67 64 94 81c32 20 63 30 97 30c83 0 146 -60 191 -112zM192 288c-62 0 -111 -36 -170 -96c24 -24 48 -50 76 -68c30 -20 60 -28 94 -28
-c75 0 133 56 171 95c-26 29 -50 50 -74 66c-32 21 -64 31 -97 31zM192 112c-44 0 -80 36 -80 80s36 80 80 80s80 -36 80 -80s-36 -80 -80 -80zM192 256c-35 0 -64 -29 -64 -64s29 -64 64 -64s64 29 64 64s-29 64 -64 64zM224 192h16v0c0 -26 -22 -48 -48 -48s-48 21 -48 48
-s22 48 48 48v-16c-16 0 -32 -13 -32 -31s15 -33 32 -33s32 14 32 32v0z" />
- <glyph glyph-name="ion-ios-eye" unicode="&#xf425;" horiz-adv-x="384"
-d="M383 192l1 -1l-6 -6c-21 -21 -47 -48 -78 -69c-36 -24 -72 -36 -108 -36c-83 0 -130 49 -185 105l-7 7l1 1c39 40 67 64 94 81c32 20 63 30 97 30c83 0 146 -60 191 -112zM192 112c44 0 80 36 80 80s-36 80 -80 80s-80 -36 -80 -80s36 -80 80 -80zM186 221
-c0 -19 16 -35 35 -35c7 0 14 2 19 6v0c0 -27 -22 -48 -48 -48s-48 21 -48 48s22 48 48 48c-4 -5 -6 -12 -6 -19z" />
- <glyph glyph-name="ion-ios-fastforward-outline" unicode="&#xf426;"
-d="M16 293v-202l184 101zM240 292v0v-78v-27v-95l176 100zM224 320v0l224 -128l-224 -128v123l-224 -123v256l224 -123v123z" />
- <glyph glyph-name="ion-ios-fastforward" unicode="&#xf427;"
-d="M224 320v0l224 -128l-224 -128v123l-224 -123v256l224 -123v123z" />
- <glyph glyph-name="ion-ios-filing-outline" unicode="&#xf428;" horiz-adv-x="352"
-d="M288 320l64 -96v-160h-176h-176v160l64 96h224zM333 224l-45 68v-68h45zM80 304v-80h48c0 -26 22 -48 48 -48s48 22 48 48h48v80h-192zM64 292l-45 -68h45v68zM336 80v128h-98c-7 -28 -32 -48 -62 -48s-55 20 -62 48h-98v-128h160h160z" />
- <glyph glyph-name="ion-ios-filing" unicode="&#xf429;" horiz-adv-x="352"
-d="M176 160c30 0 55 20 62 48h114v-144h-176h-176v144h114c7 -28 32 -48 62 -48zM64 224h-7h-57l64 96v0v-80h16v80h192v-80h16v80v0l64 -96h-56h-8h-16h-8h-40c0 -26 -22 -48 -48 -48s-48 22 -48 48h-39h-9h-16z" />
- <glyph glyph-name="ion-ios-film-outline" unicode="&#xf42a;" horiz-adv-x="400"
-d="M0 360h400v-336h-400v336zM72 40v48h-56v-48h56zM72 104v48h-56v-48h56zM72 168v48h-56v-48h56zM72 232v48h-56v-48h56zM72 296v48h-56v-48h56zM312 40v144h-224v-144h224zM312 200v144h-224v-144h224zM384 40v48h-56v-48h56zM384 104v48h-56v-48h56zM384 168v48h-56v-48
-h56zM384 232v48h-56v-48h56zM384 296v48h-56v-48h56z" />
- <glyph glyph-name="ion-ios-film" unicode="&#xf42b;" horiz-adv-x="400"
-d="M0 360h400v-336h-400v336zM72 40v48h-56v-48h56zM72 104v48h-56v-48h56zM72 168v48h-56v-48h56zM72 232v48h-56v-48h56zM72 296v48h-56v-48h56zM312 184v16h-224v-16h224zM384 40v48h-56v-48h56zM384 104v48h-56v-48h56zM384 168v48h-56v-48h56zM384 232v48h-56v-48h56z
-M384 296v48h-56v-48h56z" />
- <glyph glyph-name="ion-ios-flag-outline" unicode="&#xf42c;" horiz-adv-x="256"
-d="M240 336c6 1 11 1 16 2v-16v-157c-5 -1 -10 -1 -16 -2c-11 -1 -24 -3 -39 -3c-25 0 -47 4 -69 9s-42 13 -64 13c-30 0 -46 -5 -52 -7v-143h-16v142v162v2l3 3c2 1 18 11 65 11c24 0 45 -4 67 -9c21 -4 42 -11 65 -11c15 0 29 3 40 4zM240 179v0v141c-11 -1 -25 -4 -40 -4
-c-25 0 -46 6 -68 11s-42 9 -64 9c-30 0 -46 -5 -52 -7v-137c10 3 26 6 52 6c24 0 45 -8 67 -13c21 -4 43 -9 66 -9c15 0 28 2 39 3z" />
- <glyph glyph-name="ion-ios-flag" unicode="&#xf42d;" horiz-adv-x="256"
-d="M240 336c6 1 11 1 16 2v-16v-157c-5 -1 -10 -1 -16 -2c-11 -1 -24 -3 -39 -3c-25 0 -47 4 -69 9s-42 13 -64 13c-30 0 -46 -5 -52 -7v-143h-16v142v162v2l3 3c2 1 18 11 65 11c24 0 45 -4 67 -9c21 -4 42 -11 65 -11c15 0 29 3 40 4z" />
- <glyph glyph-name="ion-ios-flame-outline" unicode="&#xf42e;" horiz-adv-x="256"
-d="M96 416c87 -64 170 -179 159 -288c-13 -134 -104 -160 -127 -160s-127 40 -128 160c-1 146 122 143 96 288zM128 -24c0 0 40 36 40 80s-40 80 -40 80s-41 -36 -41 -80s41 -80 41 -80zM239 130c5 47 -10 99 -41 151c-22 36 -50 70 -83 99c0 -57 -24 -91 -49 -123
-c-26 -34 -50 -65 -50 -129c0 -25 5 -48 15 -68c8 -17 20 -32 35 -45c8 -7 16 -12 23 -16c-9 16 -18 35 -18 57c0 51 44 90 46 92l11 9l11 -9c2 -2 45 -41 45 -92c0 -23 -9 -44 -19 -60c7 4 13 8 20 14c14 12 25 27 34 44c11 21 17 47 20 76z" />
- <glyph glyph-name="ion-ios-flame" unicode="&#xf42f;" horiz-adv-x="256"
-d="M96 416c87 -64 170 -179 159 -288c-13 -134 -104 -160 -127 -160s-127 40 -128 160c-1 146 122 143 96 288zM128 -24c0 0 40 36 40 80s-40 80 -40 80s-41 -36 -41 -80s41 -80 41 -80z" />
- <glyph glyph-name="ion-ios-flask-outline" unicode="&#xf430;" horiz-adv-x="384"
-d="M373 78c8 -16 11 -32 11 -46c-1 -36 -27 -64 -63 -64h-256c-36 0 -64 27 -65 64c0 14 4 30 12 46l116 195v127h-16v16h16h16v-16v-16h48v-16h-48v-32h32v-16h-32v-32h48v-16h-48v-3l-2 -4l-15 -25h49v-16h-58l-92 -154c-13 -25 -14 -43 -2 -63c9 -14 23 -23 41 -23h256
-c17 0 33 8 41 22c5 8 6 17 6 26c0 12 -2 25 -9 38l-116 195l-3 4v131v16h16h16v-16h-16v-127zM44 73l72 119h153l72 -119c7 -11 10 -24 10 -33c-1 -24 -16 -40 -46 -40h-226c-30 0 -46 12 -46 40c0 9 4 22 11 33zM260 176h-135l-67 -111v0v0c-5 -8 -9 -19 -9 -25
-c0 -13 5 -17 6 -18c4 -4 13 -6 24 -6h226c10 0 18 3 23 7c4 4 7 10 7 18c0 6 -3 16 -8 24v0v0z" />
- <glyph glyph-name="ion-ios-flask" unicode="&#xf431;" horiz-adv-x="384"
-d="M327 65v0c5 -8 8 -18 8 -24c0 -8 -3 -14 -7 -18c-5 -4 -13 -7 -23 -7h-226c-11 0 -20 2 -24 6c-1 1 -6 5 -6 18c0 6 4 17 9 25v0v0l67 111h135l67 -111v0zM373 78c8 -16 11 -32 11 -46c-1 -36 -27 -64 -63 -64h-256c-36 0 -64 27 -65 64c0 14 4 30 12 46l116 195v127h-16
-v16h160v-16h-16v-127zM144 384v-16h48v16h-48zM144 336v-16h32v16h-32zM144 288v-16h48v16h-48zM127 240l-9 -16h58v16h-49zM351 40c0 9 -3 22 -10 33l-72 119h-154l-71 -119c-7 -11 -11 -24 -11 -33c0 -28 16 -40 46 -40h226c30 0 45 16 46 40z" />
- <glyph glyph-name="ion-ios-flower-outline" unicode="&#xf432;"
-d="M363 164c-29 0 -65 7 -93 14c-1 -3 -2 -6 -4 -9c25 -15 56 -36 76 -56c40 -40 53 -68 41 -80c-3 -3 -7 -4 -12 -4c-15 0 -38 15 -68 45c-20 20 -41 51 -56 76c-3 -2 -7 -3 -10 -4c7 -28 15 -64 15 -93c0 -56 -12 -85 -28 -85s-28 29 -28 85c0 29 8 65 15 93
-c-3 1 -7 2 -10 4c-15 -25 -36 -56 -56 -76c-30 -30 -53 -45 -68 -45c-5 0 -9 1 -12 4c-12 12 1 40 41 80c20 20 51 41 76 56c-2 3 -3 6 -4 9c-28 -7 -64 -14 -93 -14c-56 0 -85 12 -85 28s29 28 85 28c29 0 65 -8 93 -15c1 3 2 7 4 10c-25 15 -56 35 -76 55
-c-40 40 -53 68 -41 80c3 3 7 4 12 4c15 0 38 -14 68 -44c20 -20 41 -51 56 -76c3 2 7 3 10 4c-7 28 -15 64 -15 93c0 56 12 85 28 85s28 -29 28 -85c0 -29 -8 -65 -15 -93c3 -1 7 -2 10 -4c15 25 36 56 56 76c30 30 53 44 68 44c5 0 9 -1 12 -4c12 -12 -1 -40 -41 -80
-c-20 -20 -51 -40 -76 -55c2 -3 3 -7 4 -10c28 7 64 15 93 15c56 0 85 -12 85 -28s-29 -28 -85 -28zM288 193v-3c30 -7 56 -10 75 -10c21 0 39 2 52 5c10 3 14 6 16 7c-2 1 -6 4 -16 7c-13 3 -31 5 -52 5c-19 0 -45 -4 -75 -11zM314 299c-14 -14 -30 -35 -46 -61l2 -2
-c26 16 47 32 61 46c15 15 26 28 33 40c5 9 7 14 7 16c-4 0 -22 -4 -57 -39zM178 236l2 2c-16 26 -32 47 -46 61c-35 35 -53 39 -57 39c0 -2 2 -7 7 -16c7 -12 18 -25 33 -40c14 -14 35 -30 61 -46zM85 180c19 0 45 3 75 10v3c-30 7 -56 11 -75 11c-21 0 -39 -2 -52 -5
-c-10 -3 -14 -6 -16 -7c2 -1 5 -4 15 -7c13 -3 32 -5 53 -5zM134 85c14 14 30 35 46 61l-2 2c-26 -16 -47 -32 -61 -46c-15 -15 -26 -29 -33 -41c-5 -9 -7 -14 -7 -16c4 0 22 5 57 40zM270 148l-2 -2c16 -26 32 -47 46 -61c35 -35 53 -40 57 -40c0 2 -2 7 -7 16
-c-7 12 -18 26 -33 41c-14 14 -35 30 -61 46zM217 383c-3 -13 -5 -31 -5 -52c0 -19 4 -45 11 -75h2c7 30 11 56 11 75c0 21 -2 39 -5 52c-3 10 -6 14 -7 16c-1 -2 -4 -6 -7 -16zM231 0c3 13 5 32 5 53c0 19 -4 45 -11 75h-2c-7 -30 -11 -56 -11 -75c0 -21 2 -40 5 -53
-c3 -10 6 -13 7 -15c1 2 4 5 7 15zM224 160c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM313 42c10 -34 7 -53 -5 -58c-2 -1 -3 -1 -5 -1c-11 0 -25 13 -37 35c5 35 -2 76 -2 76s24 -34 49 -52zM302 -1c1 4 2 14 -3 34c-5 4 -10 9 -15 14
-c0 -9 0 -17 -1 -25c10 -16 16 -22 19 -23zM182 365c-6 -35 1 -75 1 -75s-27 35 -48 51c-10 35 -7 54 5 59c2 1 3 1 5 1c11 0 24 -12 37 -36zM164 337c0 9 0 17 1 25c-10 16 -16 21 -19 22c-1 -4 -2 -14 3 -34c5 -4 10 -8 15 -13zM50 149c35 -4 76 2 76 2s-34 -24 -51 -48
-c-12 -4 -26 -6 -35 -6c-13 0 -21 4 -24 11c-5 11 7 25 34 41zM66 117c4 5 8 10 13 15c-9 0 -17 0 -25 1c-16 -10 -21 -16 -22 -19c1 0 4 -1 8 -1c7 0 16 1 26 4zM432 276c5 -11 -7 -26 -34 -42c-35 5 -76 -2 -76 -2s33 25 51 49c13 4 26 5 35 5c13 0 21 -3 24 -10zM394 250
-c16 10 21 16 22 19c-1 0 -4 1 -8 1c-7 0 -16 -1 -26 -4c-4 -5 -8 -9 -13 -14c9 0 17 -1 25 -2zM131 39c31 24 53 55 53 55s-7 -39 -3 -71c-15 -26 -28 -39 -39 -39c-2 0 -4 0 -6 1c-11 5 -13 24 -5 54zM143 1c4 2 12 8 22 26c0 6 -1 13 -1 20c-6 -6 -13 -12 -19 -17
-c-4 -18 -3 -26 -2 -29zM312 398c11 -5 13 -22 5 -54c-29 -21 -53 -55 -53 -55s8 48 3 71c13 25 28 39 39 39c2 0 4 0 6 -1zM303 353c5 18 3 27 2 30c-4 -2 -12 -8 -22 -26c0 -6 1 -14 1 -21c6 6 13 12 19 17zM71 285c18 -24 55 -53 55 -53s-40 7 -70 3c-28 15 -43 32 -38 44
-c3 7 10 11 22 11c8 0 21 -1 31 -5zM33 273c2 -4 8 -12 26 -22c6 0 13 1 20 1c-6 6 -12 12 -17 18c-8 2 -16 4 -22 4c-4 0 -6 -1 -7 -1zM392 149c30 -17 43 -33 38 -45c-3 -7 -10 -10 -22 -10c-8 0 -19 1 -31 5c-20 27 -55 52 -55 52s45 -8 70 -2zM408 110c4 0 6 1 7 1
-c-2 4 -8 12 -26 22c-6 0 -13 -1 -20 -1c6 -6 12 -13 17 -19c8 -2 16 -3 22 -3z" />
- <glyph glyph-name="ion-ios-flower" unicode="&#xf433;"
-d="M363 220c56 0 85 -12 85 -28s-29 -28 -85 -28c-29 0 -65 7 -93 14c-1 -3 -2 -6 -4 -9c25 -15 56 -36 76 -56c40 -40 53 -68 41 -80s-40 1 -80 41c-20 20 -41 51 -56 76c-3 -2 -7 -3 -10 -4c7 -28 15 -64 15 -93c0 -56 -12 -85 -28 -85s-28 29 -28 85c0 29 8 65 15 93
-c-3 1 -7 2 -10 4c-15 -25 -36 -56 -56 -76c-40 -40 -68 -53 -80 -41s1 40 41 80c20 20 51 41 76 56c-2 3 -3 6 -4 9c-28 -7 -64 -14 -93 -14c-56 0 -85 12 -85 28s29 28 85 28c29 0 65 -8 93 -15c1 3 2 7 4 10c-25 15 -56 35 -76 55c-40 40 -53 68 -41 80s40 0 80 -40
-c20 -20 41 -51 56 -76c3 2 6 3 9 4c-7 28 -14 64 -14 93c0 56 12 85 28 85s28 -29 28 -85c0 -29 -7 -65 -14 -93c3 -1 6 -2 9 -4c15 25 36 56 56 76c40 40 68 52 80 40s-1 -40 -41 -80c-20 -20 -51 -40 -76 -55c2 -3 3 -7 4 -10c28 7 64 15 93 15zM264 94c0 0 24 -34 49 -52
-c10 -34 7 -53 -5 -58c-2 -1 -3 -1 -5 -1c-11 0 -25 13 -37 35c5 35 -2 76 -2 76zM183 290c0 0 -27 35 -48 51c-10 35 -7 54 5 59c2 1 3 1 5 1c11 0 24 -12 37 -36c-6 -35 1 -75 1 -75zM126 151c0 0 -34 -24 -51 -48c-12 -4 -26 -6 -35 -6c-13 0 -21 4 -24 11
-c-5 11 7 25 34 41c35 -4 76 2 76 2zM322 232c0 0 33 25 51 49c13 4 26 5 35 5c13 0 21 -3 24 -10c5 -11 -7 -26 -34 -42c-35 5 -76 -2 -76 -2zM131 39c31 24 53 55 53 55s-7 -39 -3 -71c-15 -26 -28 -39 -39 -39c-2 0 -4 0 -6 1c-11 5 -13 24 -5 54zM317 344
-c-29 -21 -53 -55 -53 -55s8 48 3 71c13 25 28 39 39 39c2 0 4 0 6 -1c11 -5 13 -22 5 -54zM56 235c-28 15 -43 32 -38 44c3 7 10 11 22 11c8 0 21 -1 31 -5c18 -24 55 -53 55 -53s-40 7 -70 3zM392 149c30 -17 43 -33 38 -45c-3 -7 -10 -10 -22 -10c-8 0 -19 1 -31 5
-c-20 27 -55 52 -55 52s45 -8 70 -2z" />
- <glyph glyph-name="ion-ios-folder-outline" unicode="&#xf434;"
-d="M425 352c13 0 23 -10 23 -23v-304c0 -14 -10 -25 -23 -25h-400c-13 0 -25 12 -25 25v336c0 13 11 23 25 23h112c8 0 12 -2 17 -7v0l23 -23c2 -2 3 -2 6 -2h242zM25 368c-4 0 -9 -3 -9 -7v-74c3 1 5 1 8 1h400c3 0 5 0 8 -1v42c0 4 -3 7 -7 7h-242c-7 0 -12 2 -17 7
-l-23 23c-2 2 -3 2 -6 2h-112zM432 25v239c0 4 -4 8 -8 8h-400c-4 0 -8 -4 -8 -8v-239c0 -4 5 -9 9 -9h400c4 0 7 5 7 9z" />
- <glyph glyph-name="ion-ios-folder" unicode="&#xf435;"
-d="M440 272c4 0 8 -4 8 -8v-239c0 -14 -10 -25 -23 -25h-400c-13 0 -25 12 -25 25v239c0 4 4 8 8 8h432zM425 352c13 0 23 -10 23 -23v-42c-3 1 -5 1 -8 1h-432c-3 0 -5 0 -8 -1v74c0 13 11 23 25 23h112c8 0 12 -2 17 -7v0l23 -23c2 -2 3 -2 6 -2h242z" />
- <glyph glyph-name="ion-ios-football-outline" unicode="&#xf436;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM249 6c3 1 5 1 8 2l24 64l-20 39v1h-106l-20 -39l25 -65c2 -1 5 -1 7 -2c12 -3 25 -5 38 -5c14 0 30 2 44 5zM41 284c-15 -27 -23 -57 -24 -89l43 37v0zM142 371
-c-36 -14 -68 -38 -90 -69l22 -64l5 -2l49 -23l71 60v58zM277 201l-70 58l-69 -58v-1l18 -72h104l18 72zM399 195c-1 32 -9 63 -24 90l-19 -53v0zM364 302c-22 31 -54 56 -90 69l-58 -40v-58l71 -60l54 24zM18 175c3 -34 15 -66 33 -92l70 -1l21 39l-20 77l-1 1l-49 22z
-M295 82l70 1c18 26 30 58 33 92l-54 46l-50 -23l-20 -77zM207 345l47 32c-15 4 -30 6 -46 6s-32 -2 -47 -6zM118 66l-54 1c20 -23 46 -42 75 -53l-20 50zM277 14c29 11 55 30 75 53l-56 -1l-2 -3z" />
- <glyph glyph-name="ion-ios-football" unicode="&#xf437;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM249 6c3 1 5 1 8 2l24 64l-20 39v1h-106l-20 -39l25 -65c2 -1 5 -1 7 -2c12 -3 25 -5 38 -5c14 0 30 2 44 5zM142 371c-36 -14 -68 -38 -90 -69l22 -64l5 -2l49 -23l71 60v58z
-M364 302c-22 31 -54 56 -90 69l-58 -40v-58l71 -60l54 24zM18 175c3 -34 15 -66 33 -92l70 -1l21 39l-20 77l-1 1l-49 22zM295 82l70 1c18 26 30 58 33 92l-54 46l-50 -23l-20 -77z" />
- <glyph glyph-name="ion-ios-game-controller-a-outline" unicode="&#xf438;"
-d="M163 208c3 0 5 -2 5 -5v-22c0 -3 -2 -5 -5 -5h-35v-35c0 -3 -3 -5 -6 -5h-21c-3 0 -5 2 -5 5v35h-35c-3 0 -5 3 -5 6v21c0 3 2 5 5 5h35v35c0 3 2 5 5 5h22c3 0 5 -2 5 -5v-35h35zM330 169c11 0 20 -8 20 -19s-9 -19 -20 -19s-19 8 -19 19s8 19 19 19zM288 211
-c11 0 19 -8 19 -19s-8 -19 -19 -19s-20 8 -20 19s9 19 20 19zM373 211c11 0 19 -8 19 -19s-8 -19 -19 -19s-20 8 -20 19s9 19 20 19zM330 253c11 0 20 -8 20 -19s-9 -20 -20 -20s-19 9 -19 20s8 19 19 19zM337 286h-226c-26 0 -49 -9 -67 -26s-28 -41 -28 -67s10 -51 28 -68
-s41 -27 67 -27h226c26 0 49 10 67 27s28 42 28 68s-10 50 -28 67s-41 26 -67 26zM337 302v0c61 0 111 -45 111 -109s-50 -111 -111 -111h-226c-61 0 -111 47 -111 111s50 109 111 109h226z" />
- <glyph glyph-name="ion-ios-game-controller-a" unicode="&#xf439;"
-d="M337 302c61 0 111 -45 111 -109s-50 -111 -111 -111h-226c-61 0 -111 47 -111 111s50 109 111 109h226zM168 181v0v22c0 3 -2 5 -5 5h-35v35c0 3 -2 5 -5 5h-22c-3 0 -5 -2 -5 -5v-35h-35c-3 0 -5 -2 -5 -5v-21c0 -3 2 -6 5 -6h35v-35c0 -3 2 -5 5 -5h21c3 0 6 2 6 5v35
-h35c3 0 5 2 5 5zM288 173c11 0 19 8 19 19s-8 19 -19 19s-20 -8 -20 -19s9 -19 20 -19zM330 131c11 0 20 8 20 19s-9 19 -20 19s-19 -8 -19 -19s8 -19 19 -19zM330 214c11 0 20 9 20 20s-9 19 -20 19s-19 -8 -19 -19s8 -20 19 -20zM373 173c11 0 19 8 19 19s-8 19 -19 19
-s-20 -8 -20 -19s9 -19 20 -19z" />
- <glyph glyph-name="ion-ios-game-controller-b-outline" unicode="&#xf43a;"
-d="M276 244c11 0 20 -9 20 -20s-9 -20 -20 -20s-20 9 -20 20s9 20 20 20zM320 200c11 0 20 -9 20 -20s-9 -20 -20 -20s-20 9 -20 20s9 20 20 20zM103 264c22 0 39 -18 39 -40s-17 -40 -39 -40s-39 18 -39 40s17 40 39 40zM103 205c11 0 19 8 19 19s-8 19 -19 19
-s-19 -8 -19 -19s8 -19 19 -19zM320 288c11 0 20 -9 20 -20s-9 -20 -20 -20s-20 9 -20 20s9 20 20 20zM364 244c11 0 20 -9 20 -20s-9 -20 -20 -20s-20 9 -20 20s9 20 20 20zM434 199c21 -88 18 -152 -7 -164c-4 -2 -9 -3 -13 -3c-22 0 -45 24 -68 52c-26 32 -32 33 -110 33
-h-24c-78 0 -84 -1 -110 -33c-23 -28 -46 -52 -68 -52c-4 0 -9 1 -13 3c-25 12 -28 76 -7 164s43 136 88 149c10 3 18 4 26 4c28 0 47 -15 96 -15s68 15 96 15c8 0 16 -1 26 -4c45 -13 67 -61 88 -149zM420 49c10 5 23 48 -1 146c-21 90 -43 128 -78 138c-8 2 -14 3 -21 3
-c-10 0 -19 -2 -30 -5c-16 -4 -36 -10 -66 -10s-50 6 -66 10c-11 3 -20 5 -30 5c-7 0 -13 -1 -21 -3c-35 -10 -57 -48 -78 -138c-24 -98 -11 -141 -1 -146c2 -1 4 -1 6 -1c6 0 14 4 23 12s19 18 32 34s24 28 44 34c17 5 38 5 79 5h24c41 0 62 0 79 -5c20 -6 31 -18 44 -34
-s23 -26 32 -34s17 -12 23 -12c2 0 4 0 6 1z" />
- <glyph glyph-name="ion-ios-game-controller-b" unicode="&#xf43b;"
-d="M103 243c11 0 19 -8 19 -19s-8 -19 -19 -19s-19 8 -19 19s8 19 19 19zM434 199c21 -88 18 -152 -7 -164c-4 -2 -9 -3 -13 -3c-22 0 -45 24 -68 52c-26 32 -32 33 -110 33h-24c-78 0 -84 -1 -110 -33c-23 -28 -46 -52 -68 -52c-4 0 -9 1 -13 3c-25 12 -28 76 -7 164
-s43 136 88 149c10 3 18 4 26 4c28 0 47 -15 96 -15s68 15 96 15c8 0 16 -1 26 -4c45 -13 67 -61 88 -149zM103 184c22 0 39 18 39 40s-17 40 -39 40s-39 -18 -39 -40s17 -40 39 -40zM276 204c11 0 20 9 20 20s-9 20 -20 20s-20 -9 -20 -20s9 -20 20 -20zM320 160
-c11 0 20 9 20 20s-9 20 -20 20s-20 -9 -20 -20s9 -20 20 -20zM320 248c11 0 20 9 20 20s-9 20 -20 20s-20 -9 -20 -20s9 -20 20 -20zM364 204c11 0 20 9 20 20s-9 20 -20 20s-20 -9 -20 -20s9 -20 20 -20z" />
- <glyph glyph-name="ion-ios-gear-outline" unicode="&#xf43c;" horiz-adv-x="384"
-d="M193 288c26 0 50 -10 68 -28s28 -42 28 -68s-10 -50 -28 -68s-42 -28 -68 -28s-50 10 -68 28s-28 42 -28 68s10 50 28 68s42 28 68 28zM193 112c44 0 80 36 80 80s-36 80 -80 80s-80 -36 -80 -80s36 -80 80 -80zM138 365c-10 -3 -20 -7 -30 -12c2 -8 1 -16 0 -24
-c-2 -13 -8 -25 -18 -35c-12 -12 -29 -19 -46 -19c-4 0 -9 0 -13 1c-5 -10 -9 -20 -12 -30c7 -4 12 -10 17 -17c8 -11 12 -24 12 -37s-4 -26 -12 -37c-5 -7 -10 -13 -17 -17c3 -10 7 -20 12 -30c4 1 9 1 13 1c17 0 34 -7 46 -19c10 -10 16 -22 18 -35c1 -8 2 -16 0 -24
-c10 -5 20 -9 30 -12c4 7 10 12 17 17c11 8 24 12 37 12s26 -4 37 -12c7 -5 13 -10 17 -17c10 3 20 7 30 12c-2 8 -1 16 0 24c2 13 8 25 18 35c12 12 29 19 46 19c4 0 9 0 13 -1c5 10 9 20 12 30c-7 4 -12 10 -17 17c-8 11 -12 24 -12 37s4 26 12 37c5 7 10 13 17 17
-c-3 10 -7 20 -12 30c-4 -1 -9 -1 -13 -1c-17 0 -34 7 -46 19c-10 10 -16 22 -18 35c-1 8 -2 16 0 24c-10 5 -20 9 -30 12c-4 -7 -10 -12 -17 -17c-11 -8 -24 -12 -37 -12s-26 4 -37 12c-7 5 -13 10 -17 17zM238 384v0c20 -5 40 -13 57 -24c-8 -18 -5 -40 10 -55
-c10 -10 22 -14 35 -14c7 0 14 1 20 4c11 -17 19 -37 24 -57c-19 -7 -32 -25 -32 -46s14 -39 32 -46c-5 -20 -13 -40 -24 -57c-6 3 -13 4 -20 4c-13 0 -25 -4 -35 -14c-15 -15 -18 -37 -10 -55c-17 -11 -37 -19 -57 -24c-7 18 -25 32 -46 32s-39 -14 -46 -32
-c-20 5 -40 13 -57 24c8 18 5 40 -10 55c-10 10 -22 14 -35 14c-7 0 -14 -1 -20 -4c-11 17 -19 37 -24 57c18 7 32 25 32 46s-13 39 -32 46c5 20 13 40 24 57c6 -3 13 -4 20 -4c13 0 25 4 35 14c15 15 18 37 10 55c17 11 37 19 57 24c7 -19 25 -32 46 -32s39 13 46 32z" />
- <glyph glyph-name="ion-ios-gear" unicode="&#xf43d;" horiz-adv-x="384"
-d="M352 192c0 -21 14 -39 32 -46c-5 -20 -13 -40 -24 -57c-6 3 -13 4 -20 4c-13 0 -25 -4 -35 -14c-15 -15 -18 -37 -10 -55c-17 -11 -37 -19 -57 -24c-7 18 -25 32 -46 32s-39 -14 -46 -32c-20 5 -40 13 -57 24c8 18 5 40 -10 55c-10 10 -22 14 -35 14c-7 0 -14 -1 -20 -4
-c-11 17 -19 37 -24 57c18 7 32 25 32 46s-13 39 -32 46c5 20 13 40 24 57c6 -3 13 -4 20 -4c13 0 25 4 35 14c15 15 18 37 10 55c17 11 37 19 57 24c7 -19 25 -32 46 -32s39 13 46 32c20 -5 40 -13 57 -24c-8 -18 -5 -40 10 -55c10 -10 22 -14 35 -14c7 0 14 1 20 4
-c11 -17 19 -37 24 -57c-19 -7 -32 -25 -32 -46zM193 112c44 0 80 36 80 80s-36 80 -80 80s-80 -36 -80 -80s36 -80 80 -80z" />
- <glyph glyph-name="ion-ios-glasses-outline" unicode="&#xf43e;"
-d="M433 201v0h15v-18h-15c-2 -22 -13 -43 -29 -58c-17 -16 -39 -25 -62 -25c-51 0 -92 41 -92 92v0v0c0 10 -12 22 -26 22s-26 -12 -26 -22v0v0c0 -51 -41 -92 -92 -92c-23 0 -45 9 -62 25c-16 15 -27 36 -29 58h-15v18h15c2 22 13 43 29 59c17 16 39 24 62 24
-c42 0 78 -27 89 -67c7 7 18 12 29 12s22 -5 29 -12c11 40 47 67 89 67c23 0 45 -9 62 -25c16 -15 27 -36 29 -58zM342 115c42 0 77 35 77 77s-35 77 -77 77s-77 -35 -77 -77s35 -77 77 -77zM106 115c42 0 77 35 77 77s-35 77 -77 77s-77 -35 -77 -77s35 -77 77 -77z" />
- <glyph glyph-name="ion-ios-glasses" unicode="&#xf43f;"
-d="M433 201v0h15v-18h-15c-2 -22 -13 -43 -29 -58c-17 -16 -39 -25 -62 -25c-51 0 -92 41 -92 92v0v0c0 10 -12 22 -26 22s-26 -12 -26 -22v0v0c0 -51 -41 -92 -92 -92c-23 0 -45 9 -62 25c-16 15 -27 36 -29 58h-15v18h15c2 22 13 43 29 59c17 16 39 24 62 24
-c42 0 78 -27 89 -67c7 7 18 12 29 12s22 -5 29 -12c11 40 47 67 89 67c23 0 45 -9 62 -25c16 -15 27 -36 29 -58z" />
- <glyph glyph-name="ion-ios-grid-view-outline" unicode="&#xf440;" horiz-adv-x="384"
-d="M384 256h-112v-128h112v-16h-112v-112h-16v112h-128v-112h-16v112h-112v16h112v128h-112v16h112v112h16v-112h128v112h16v-112h112v-16zM256 128v128h-128v-128h128z" />
- <glyph glyph-name="ion-ios-grid-view" unicode="&#xf441;" horiz-adv-x="384"
-d="M128 128v128h128v-128h-128zM0 384h384v-384h-384v384zM352 256v16h-80v80h-16v-80h-128v80h-16v-80h-80v-16h80v-128h-80v-16h80v-80h16v80h128v-80h16v80h80v16h-80v128h80z" />
- <glyph glyph-name="ion-ios-heart-outline" unicode="&#xf442;"
-d="M327 368c69 0 121 -43 121 -116c0 -31 -13 -71 -41 -105s-45 -52 -100 -88s-83 -43 -83 -43s-28 7 -83 43s-72 54 -100 88s-41 74 -41 105c0 73 52 116 121 116c39 0 82 -18 103 -53c21 35 64 53 103 53zM395 157c12 14 22 31 28 49c6 16 9 31 9 46c0 30 -10 56 -29 74
-c-9 8 -20 15 -33 19c-13 5 -28 7 -43 7c-38 0 -73 -18 -89 -45l-14 -23l-14 23c-16 27 -51 45 -89 45c-15 0 -30 -2 -43 -7c-13 -4 -24 -11 -33 -19c-19 -18 -29 -44 -29 -74c0 -15 3 -30 9 -46c6 -18 16 -35 28 -49c27 -32 42 -49 97 -85c40 -27 65 -36 74 -39
-c9 3 34 12 74 39c55 36 70 53 97 85z" />
- <glyph glyph-name="ion-ios-heart" unicode="&#xf443;"
-d="M327 368c69 0 121 -43 121 -116c0 -31 -13 -71 -41 -105s-45 -52 -100 -88s-83 -43 -83 -43s-28 7 -83 43s-72 54 -100 88s-41 74 -41 105c0 73 52 116 121 116c39 0 82 -18 103 -53c21 35 64 53 103 53z" />
- <glyph glyph-name="ion-ios-help-empty" unicode="&#xf444;" horiz-adv-x="128"
-d="M68 82c-9 0 -17 8 -17 17s8 17 17 17s17 -8 17 -17s-8 -17 -17 -17zM102 197c-23 -22 -22 -27 -23 -53h-19c1 28 7 43 30 64c11 10 19 24 19 39c0 24 -19 39 -42 39c-32 0 -49 -16 -48 -46h-19c0 42 25 62 68 62c33 0 60 -20 60 -54c0 -22 -11 -37 -26 -51z" />
- <glyph glyph-name="ion-ios-help-outline" unicode="&#xf445;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1c105 0 191 86 191 191s-86 191 -191 191s-191 -86 -191 -191s86 -191 191 -191zM212 302c33 0 60 -21 60 -55c0 -22 -11 -36 -26 -50c-23 -23 -22 -27 -23 -53h-19
-c1 28 7 43 30 64c11 10 19 23 19 38c0 24 -19 40 -42 40c-32 0 -49 -16 -48 -46h-19c0 42 25 62 68 62zM212 116c9 0 17 -8 17 -17s-8 -17 -17 -17s-17 8 -17 17s8 17 17 17z" />
- <glyph glyph-name="ion-ios-help" unicode="&#xf446;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM212 82c9 0 17 8 17 17s-8 17 -17 17s-17 -8 -17 -17s8 -17 17 -17zM246 197c15 14 26 29 26 51c0 34 -27 54 -60 54c-43 0 -68 -20 -68 -62h19c-1 30 16 46 48 46
-c23 0 42 -15 42 -39c0 -15 -8 -29 -19 -39c-23 -21 -29 -36 -30 -64h19c1 26 0 31 23 53z" />
- <glyph glyph-name="ion-ios-home-outline" unicode="&#xf447;" horiz-adv-x="384"
-d="M192 336l160 -128v-208h-112v128h-96v-128h-112v208zM336 16v184l-144 116l-144 -116v-184h80v128h128v-128h80zM192 384l192 -153l-12 -12l-180 145l-180 -145l-12 12l32 25v96h64v-45zM80 294v42h-32v-67z" />
- <glyph glyph-name="ion-ios-home" unicode="&#xf448;" horiz-adv-x="384"
-d="M192 336l160 -128v-208h-112v128h-96v-128h-112v208zM192 384l192 -153l-12 -12l-180 145l-180 -145l-12 12l32 25v96h64v-45z" />
- <glyph glyph-name="ion-ios-infinite-outline" unicode="&#xf449;"
-d="M419 260c19 -19 29 -43 29 -68s-10 -49 -29 -68c-19 -18 -44 -28 -70 -28s-50 10 -69 28l-126 123c-15 15 -35 22 -56 22s-40 -7 -55 -22c-31 -30 -31 -80 0 -110c15 -15 34 -22 55 -22s41 7 56 22l43 42l13 -14l-42 -41c-19 -18 -44 -28 -70 -28s-50 10 -69 28
-c-19 19 -29 43 -29 68s10 49 29 68c19 18 43 28 69 28s51 -10 70 -28l126 -123c15 -15 34 -22 55 -22s41 7 56 22c31 30 31 80 0 110c-15 15 -35 22 -56 22s-40 -7 -55 -22l-43 -42l-13 14l42 41c19 18 44 28 70 28s50 -10 69 -28z" />
- <glyph glyph-name="ion-ios-infinite" unicode="&#xf44a;" horiz-adv-x="464"
-d="M433 266c20 -20 31 -46 31 -74s-11 -54 -31 -74s-48 -30 -76 -30s-55 10 -75 30l-125 123c-13 13 -32 20 -51 20s-37 -7 -50 -20s-21 -31 -21 -49c0 -19 8 -36 21 -49s31 -20 50 -20s38 7 51 20l39 38l25 -25l-39 -38c-20 -20 -48 -30 -76 -30s-55 10 -75 30
-s-31 46 -31 74s11 54 31 74s47 30 75 30s56 -10 76 -30l125 -123c13 -13 31 -20 50 -20s38 7 51 20s20 31 20 49c0 19 -7 36 -20 49s-32 20 -51 20s-37 -7 -50 -20l-39 -38l-25 25l39 38c20 20 48 30 76 30s55 -10 75 -30z" />
- <glyph glyph-name="ion-ios-information-empty" unicode="&#xf44b;" horiz-adv-x="64"
-d="M8 276c0 13 7 20 20 20s20 -7 20 -20s-7 -20 -20 -20s-20 7 -20 20zM48 104h16v-8h-64v8h16v120h-16v8h48v-128z" />
- <glyph glyph-name="ion-ios-information-outline" unicode="&#xf44c;" horiz-adv-x="416"
-d="M184 276c0 13 7 20 20 20s20 -7 20 -20s-7 -20 -20 -20s-20 7 -20 20zM224 104h16v-8h-64v8h16v120h-16v8h48v-128zM208 400c57 0 106 -20 147 -61s61 -90 61 -147s-20 -106 -61 -147s-90 -61 -147 -61s-106 20 -147 61s-61 90 -61 147s20 106 61 147s90 61 147 61z
-M208 1c53 0 98 19 135 56s56 82 56 135s-19 98 -56 135s-82 56 -135 56s-98 -19 -135 -56s-56 -82 -56 -135s19 -98 56 -135s82 -56 135 -56z" />
- <glyph glyph-name="ion-ios-information" unicode="&#xf44d;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM204 296c-11 0 -20 -9 -20 -20s9 -20 20 -20s20 9 20 20s-9 20 -20 20zM240 96v8h-16v128h-48v-8h16v-120h-16v-8h64z" />
- <glyph glyph-name="ion-ios-ionic-outline" unicode="&#xf44e;" horiz-adv-x="416"
-d="M378 313c24 -34 38 -76 38 -121c0 -115 -92 -208 -207 -208s-209 93 -209 208s94 208 209 208c45 0 86 -14 120 -38c6 5 13 8 21 8c19 0 35 -16 35 -35c0 -8 -2 -16 -7 -22zM350 357c-12 0 -22 -10 -22 -22s10 -22 22 -22s22 10 22 22s-10 22 -22 22zM344 56
-c18 18 31 39 41 62c10 24 15 48 15 74s-5 51 -15 75c-5 13 -12 25 -20 36c-5 -2 -10 -3 -15 -3c-19 0 -35 16 -35 35c0 5 2 11 4 15c-11 8 -23 15 -36 20c-24 10 -49 14 -75 14s-51 -4 -75 -14c-23 -10 -43 -24 -61 -42s-31 -38 -41 -61c-10 -24 -15 -49 -15 -75
-s5 -50 15 -74c10 -23 23 -44 41 -62s38 -31 61 -41c24 -10 49 -15 75 -15s51 5 75 15c23 10 43 23 61 41zM208 288c53 0 96 -43 96 -96s-43 -96 -96 -96s-96 43 -96 96s43 96 96 96zM208 112c44 0 80 36 80 80s-36 80 -80 80s-79 -36 -79 -80s35 -80 79 -80z" />
- <glyph glyph-name="ion-ios-keypad-outline" unicode="&#xf44f;" horiz-adv-x="384"
-d="M331 107c30 0 53 -24 53 -54s-23 -53 -53 -53s-54 23 -54 53s24 54 54 54zM331 16c21 0 37 16 37 37s-16 38 -37 38s-38 -17 -38 -38s17 -37 38 -37zM192 107c30 0 53 -24 53 -54s-23 -53 -53 -53s-53 23 -53 53s23 54 53 54zM192 16c21 0 37 16 37 37s-16 38 -37 38
-s-37 -17 -37 -38s16 -37 37 -37zM53 107c30 0 54 -24 54 -54s-24 -53 -54 -53s-53 23 -53 53s23 54 53 54zM53 16c21 0 38 16 38 37s-17 38 -38 38s-37 -17 -37 -38s16 -37 37 -37zM331 245c30 0 53 -23 53 -53s-23 -53 -53 -53s-54 23 -54 53s24 53 54 53zM331 155
-c21 0 37 16 37 37s-16 37 -37 37s-38 -16 -38 -37s17 -37 38 -37zM192 245c30 0 53 -23 53 -53s-23 -53 -53 -53s-53 23 -53 53s23 53 53 53zM192 155c21 0 37 16 37 37s-16 37 -37 37s-37 -16 -37 -37s16 -37 37 -37zM53 245c30 0 54 -23 54 -53s-24 -53 -54 -53
-s-53 23 -53 53s23 53 53 53zM53 155c21 0 38 16 38 37s-17 37 -38 37s-37 -16 -37 -37s16 -37 37 -37zM331 277c-30 0 -54 24 -54 54s24 53 54 53s53 -23 53 -53s-23 -54 -53 -54zM331 368c-21 0 -38 -16 -38 -37s17 -38 38 -38s37 17 37 38s-16 37 -37 37zM192 384
-c30 0 53 -23 53 -53s-23 -54 -53 -54s-53 24 -53 54s23 53 53 53zM192 293c21 0 37 17 37 38s-16 37 -37 37s-37 -16 -37 -37s16 -38 37 -38zM53 384c30 0 54 -23 54 -53s-24 -54 -54 -54s-53 24 -53 54s23 53 53 53zM53 293c21 0 38 17 38 38s-17 37 -38 37
-s-37 -16 -37 -37s16 -38 37 -38z" />
- <glyph glyph-name="ion-ios-keypad" unicode="&#xf450;" horiz-adv-x="384"
-d="M331 107c30 0 53 -24 53 -54s-23 -53 -53 -53s-54 23 -54 53s24 54 54 54zM192 107c30 0 53 -24 53 -54s-23 -53 -53 -53s-53 23 -53 53s23 54 53 54zM53 107c30 0 54 -24 54 -54s-24 -53 -54 -53s-53 23 -53 53s23 54 53 54zM331 245c30 0 53 -23 53 -53
-s-23 -53 -53 -53s-54 23 -54 53s24 53 54 53zM192 245c30 0 53 -23 53 -53s-23 -53 -53 -53s-53 23 -53 53s23 53 53 53zM53 245c30 0 54 -23 54 -53s-24 -53 -54 -53s-53 23 -53 53s23 53 53 53zM331 277c-30 0 -54 24 -54 54s24 53 54 53s53 -23 53 -53s-23 -54 -53 -54z
-M192 384c30 0 53 -23 53 -53s-23 -54 -53 -54s-53 24 -53 54s23 53 53 53zM53 384c30 0 54 -23 54 -53s-24 -54 -54 -54s-53 24 -53 54s23 53 53 53z" />
- <glyph glyph-name="ion-ios-lightbulb-outline" unicode="&#xf451;" horiz-adv-x="288"
-d="M288 275c0 -31 -13 -59 -30 -83v0c-11 -15 -22 -28 -32 -45c-22 -38 -18 -73 -18 -82v-1h-128v1c0 7 3 44 -19 82c-10 17 -20 30 -31 45v0c-17 24 -30 52 -30 83c0 78 66 141 144 141s144 -63 144 -141zM239 194l6 8c16 22 27 47 27 73c0 33 -16 65 -40 89s-55 36 -88 36
-s-64 -12 -88 -36s-40 -56 -40 -89c0 -26 11 -51 27 -73l19 -26v0c5 -6 9 -13 13 -21c17 -29 21 -58 21 -75h16v112l-32 64h17l31 -64v-112h32v112l31 64h17l-32 -64v-112h16c0 17 4 45 21 75c8 14 16 25 24 36c1 1 1 2 2 3zM112 -32v16h64v-16h-64zM96 0v16h96v-16h-96z
-M96 32v16h96v-16h-96z" />
- <glyph glyph-name="ion-ios-lightbulb" unicode="&#xf452;" horiz-adv-x="288"
-d="M288 275c0 -31 -13 -59 -30 -83v0c-11 -15 -22 -28 -32 -45c-22 -38 -18 -73 -18 -82v-1h-32v128l32 64h-16l-32 -64v-128h-32v128l-31 64h-17l32 -64v-128h-32v1c0 7 3 44 -19 82c-10 17 -20 30 -31 45v0c-17 24 -30 52 -30 83c0 78 66 141 144 141s144 -63 144 -141z
-M112 -32v16h64v-16h-64zM96 0v16h96v-16h-96zM96 32v16h96v-16h-96z" />
- <glyph glyph-name="ion-ios-list-outline" unicode="&#xf453;" horiz-adv-x="384"
-d="M368 368h-352v-352h352v352zM384 384v0v-384h-384v384h384zM128 280v16h192v-16h-192zM128 184v16h192v-16h-192zM128 88v16h192v-16h-192zM64 288c0 11 5 16 16 16s16 -5 16 -16s-5 -16 -16 -16s-16 5 -16 16zM64 192c0 11 5 16 16 16s16 -5 16 -16s-5 -16 -16 -16
-s-16 5 -16 16zM64 96c0 11 5 16 16 16s16 -5 16 -16s-5 -16 -16 -16s-16 5 -16 16z" />
- <glyph glyph-name="ion-ios-list" unicode="&#xf454;" horiz-adv-x="384"
-d="M0 384h384v-384h-384v384zM80 80c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16zM80 176c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16zM80 272c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16zM320 88v16h-192v-16h192zM320 184v16
-h-192v-16h192zM320 280v16h-192v-16h192z" />
- <glyph glyph-name="ion-ios-location-outline" unicode="&#xf455;" horiz-adv-x="288"
-d="M144 400c-34 0 -67 -13 -91 -37s-37 -57 -37 -91c0 -43 24 -107 70 -186c22 -38 44 -72 58 -91c14 19 36 53 58 91c46 79 70 143 70 186c0 34 -13 67 -37 91s-57 37 -91 37zM144 416v0c80 0 144 -64 144 -144c0 -112 -144 -304 -144 -304s-144 192 -144 304
-c0 80 64 144 144 144zM144 336c35 0 64 -29 64 -64s-29 -64 -64 -64s-64 29 -64 64s29 64 64 64zM144 225c26 0 47 21 47 47s-21 47 -47 47s-47 -21 -47 -47s21 -47 47 -47z" />
- <glyph glyph-name="ion-ios-location" unicode="&#xf456;" horiz-adv-x="288"
-d="M144 416c80 0 144 -64 144 -144c0 -112 -144 -304 -144 -304s-144 192 -144 304c0 80 64 144 144 144zM144 225c26 0 47 21 47 47s-21 47 -47 47s-47 -21 -47 -47s21 -47 47 -47z" />
- <glyph glyph-name="ion-ios-locked-outline" unicode="&#xf457;" horiz-adv-x="320"
-d="M264 224h56v-240h-320v240h56v72c0 57 47 104 104 104s104 -47 104 -104v-72zM72 296v-72h176v72c0 49 -39 88 -88 88s-88 -39 -88 -88zM304 0v208h-288v-208h288zM160 160c18 0 32 -14 32 -32c0 -15 -10 -27 -24 -31v-33h-16v33c-14 4 -24 16 -24 31c0 18 14 32 32 32z
-M160 112c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16z" />
- <glyph glyph-name="ion-ios-locked" unicode="&#xf458;" horiz-adv-x="320"
-d="M264 224h56v-240h-320v240h56v72c0 57 47 104 104 104s104 -47 104 -104v-72zM168 97c14 4 24 16 24 31c0 18 -14 32 -32 32s-32 -14 -32 -32c0 -15 10 -27 24 -31v-33h16v33zM248 224v72c0 49 -39 88 -88 88s-88 -39 -88 -88v-72h176zM160 144c9 0 16 -7 16 -16
-s-7 -16 -16 -16s-16 7 -16 16s7 16 16 16z" />
- <glyph glyph-name="ion-ios-loop-strong" unicode="&#xf459;" horiz-adv-x="512"
-d="M256 400c115 0 208 -93 208 -208c0 -14 -1 -28 -4 -42l-1 -4l-24 5l1 4c2 12 4 24 4 37c0 101 -83 184 -184 184c-66 0 -127 -36 -160 -94l-2 -3l-21 11l2 4c37 65 106 106 181 106zM416 102l2 3l21 -11l-2 -4c-37 -65 -106 -106 -181 -106c-115 0 -208 93 -208 208
-c0 14 1 28 4 42l1 4l24 -5l-1 -4c-2 -12 -4 -24 -4 -37c0 -101 83 -184 184 -184c66 0 127 36 160 94zM384 192h128l-64 -64zM0 192l64 64l64 -64h-128z" />
- <glyph glyph-name="ion-ios-loop" unicode="&#xf45a;" horiz-adv-x="489"
-d="M478 192l11 -11l-52 -53l-53 53l10 11l43 -41zM449 192v0v0c0 -7 0 -14 -1 -21l-16 1c1 7 1 14 1 21c-1 103 -85 187 -188 187c-68 0 -131 -37 -164 -96l-14 8c36 64 104 104 178 104c112 0 203 -91 204 -202v0v-2zM409 100l14 -8c-36 -64 -104 -104 -178 -104
-c-111 0 -202 90 -204 200v0v3v1v0c0 7 0 14 1 21l16 -1c-1 -7 -1 -14 -1 -21c0 -103 85 -187 188 -187c68 0 131 37 164 96zM53 256l52 -53l-11 -11l-41 41l-42 -41l-11 11z" />
- <glyph glyph-name="ion-ios-medical-outline" unicode="&#xf45b;" horiz-adv-x="364"
-d="M364 260l-118 -68l118 -68l-32 -56l-118 69v-137h-64v137l-118 -69l-32 56l118 68l-118 68l32 56l118 -69v137h64v-137l118 69zM342 118l-128 74l128 74l-16 28l-128 -74v148h-32v-148l-128 74l-16 -28l128 -74l-128 -74l16 -28l128 74v-148h32v148l128 -74z" />
- <glyph glyph-name="ion-ios-medical" unicode="&#xf45c;" horiz-adv-x="364"
-d="M364 260l-118 -68l118 -68l-32 -56l-118 69v-137h-64v137l-118 -69l-32 56l118 68l-118 68l32 56l118 -69v137h64v-137l118 69z" />
- <glyph glyph-name="ion-ios-medkit-outline" unicode="&#xf45d;" horiz-adv-x="416"
-d="M224 240h-32v-48v-16h-16h-48v-32h48h16v-16v-48h32v48v16h16h48v32h-48h-16v16v48zM240 256v0v-64h64v-64h-64v-64h-64v64h-64v64h64v64h64zM288 320h128v-320h-416v320h128v32c0 18 10 32 29 32h99c19 0 32 -14 32 -32v-32zM144 350v-30h128v30c0 10 -7 18 -17 18h-97
-c-11 0 -14 -8 -14 -18zM400 16v288h-384v-288h384z" />
- <glyph glyph-name="ion-ios-medkit" unicode="&#xf45e;" horiz-adv-x="416"
-d="M224 176h16h48v-32h-48h-16v-16v-48h-32v48v16h-16h-48v32h48h16v16v48h32v-48v-16zM288 320h128v-320h-416v320h128v32c0 18 10 32 29 32h99c19 0 32 -14 32 -32v-32zM144 350v-30h128v30c0 10 -7 18 -17 18h-97c-11 0 -14 -8 -14 -18zM304 128v64h-64v64h-64v-64h-64
-v-64h64v-64h64v64h64z" />
- <glyph glyph-name="ion-ios-mic-off" unicode="&#xf45f;" horiz-adv-x="280"
-d="M266 -32l-258 440l14 8l258 -440zM128 95c-44 0 -79 37 -79 83v118l113 -193c-10 -5 -22 -8 -34 -8zM207 178c0 -10 -2 -19 -5 -28l-136 234c14 20 37 32 62 32c44 0 79 -38 79 -84v-154zM256 176c0 -28 -9 -54 -24 -75l-10 17c11 17 17 36 17 58v80h17v-80zM139 49v0
-v-63h69v-18h-161v18h73v63c-67 5 -120 60 -120 127v80h19v-80c0 -60 50 -109 110 -109c17 0 34 4 48 11l9 -16c-14 -7 -30 -12 -47 -13z" />
- <glyph glyph-name="ion-ios-mic-outline" unicode="&#xf460;" horiz-adv-x="256"
-d="M128 416c44 0 79 -38 79 -84v-154c0 -46 -35 -84 -79 -84s-79 38 -79 84v154c0 46 35 84 79 84zM191 178v154c0 37 -28 68 -63 68s-63 -31 -63 -68v-154c0 -37 28 -68 63 -68s63 31 63 68zM239 256h17v-80c0 -67 -51 -122 -117 -127v-63h69v-18h-161v18h73v63
-c-67 5 -120 60 -120 127v80h19v-80c0 -60 50 -109 110 -109s110 49 110 109v80z" />
- <glyph glyph-name="ion-ios-mic" unicode="&#xf461;" horiz-adv-x="256"
-d="M128 94c-44 0 -79 38 -79 84v154c0 46 35 84 79 84s79 -38 79 -84v-154c0 -46 -35 -84 -79 -84zM239 256h17v-80c0 -67 -51 -122 -117 -127v-63h69v-18h-161v18h73v63c-67 5 -120 60 -120 127v80h19v-80c0 -60 50 -109 110 -109s110 49 110 109v80z" />
- <glyph glyph-name="ion-ios-minus-empty" unicode="&#xf462;" horiz-adv-x="256"
-d="M256 183h-256v17h256v-17z" />
- <glyph glyph-name="ion-ios-minus-outline" unicode="&#xf463;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1c105 0 191 86 191 191s-86 191 -191 191s-191 -86 -191 -191s86 -191 191 -191zM80 183v17h256v-17h-256z" />
- <glyph glyph-name="ion-ios-minus" unicode="&#xf464;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM336 183v17h-256v-17h256z" />
- <glyph glyph-name="ion-ios-monitor-outline" unicode="&#xf465;" horiz-adv-x="480"
-d="M480 64h-176v-16h64v-16h-257v16h64v16h-175v288h480v-288zM16 336v-256h448v256h-448z" />
- <glyph glyph-name="ion-ios-monitor" unicode="&#xf466;" horiz-adv-x="480"
-d="M480 64h-176v-16h64v-16h-257v16h64v16h-175v288h480v-288zM16 336v-256h448v256h-448zM32 96v224h416v-224h-416z" />
- <glyph glyph-name="ion-ios-moon-outline" unicode="&#xf467;" horiz-adv-x="216"
-d="M195 133c7 0 14 1 21 3c-4 -7 -7 -12 -12 -18c-21 -25 -53 -41 -88 -41c-64 0 -116 51 -116 115c0 52 34 96 81 111c7 2 14 3 22 4c-4 -6 -8 -12 -11 -18c-7 -14 -11 -30 -11 -47c0 -29 11 -56 32 -77s48 -32 77 -32h5zM116 93c25 0 48 9 65 24c-65 5 -116 59 -116 125
-c0 14 2 28 6 40c-33 -16 -55 -51 -55 -90c0 -55 45 -99 100 -99z" />
- <glyph glyph-name="ion-ios-moon" unicode="&#xf468;" horiz-adv-x="216"
-d="M195 133c7 0 14 1 21 3c-4 -7 -7 -12 -12 -18c-21 -25 -53 -41 -88 -41c-64 0 -116 51 -116 115c0 52 34 96 81 111c7 2 14 3 22 4c-4 -6 -8 -12 -11 -18c-7 -14 -11 -30 -11 -47c0 -29 11 -56 32 -77s48 -32 77 -32h5z" />
- <glyph glyph-name="ion-ios-more-outline" unicode="&#xf469;" horiz-adv-x="320"
-d="M160 210c-10 0 -18 -8 -18 -18s8 -18 18 -18s18 8 18 18s-8 18 -18 18zM160 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32s-32 14 -32 32s14 32 32 32zM32 210c-10 0 -18 -8 -18 -18s8 -18 18 -18s18 8 18 18s-8 18 -18 18zM32 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32
-s-32 14 -32 32s14 32 32 32zM288 210c-10 0 -18 -8 -18 -18s8 -18 18 -18s18 8 18 18s-8 18 -18 18zM288 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32s-32 14 -32 32s14 32 32 32z" />
- <glyph glyph-name="ion-ios-more" unicode="&#xf46a;" horiz-adv-x="320"
-d="M160 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32s-32 14 -32 32s14 32 32 32zM32 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32s-32 14 -32 32s14 32 32 32zM288 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32s-32 14 -32 32s14 32 32 32z" />
- <glyph glyph-name="ion-ios-musical-note" unicode="&#xf46b;" horiz-adv-x="192"
-d="M192 346v-1v-65c0 -3 -3 -6 -6 -5v0l-73 13v-192c0 -33 1 -80 -51 -82c-48 -2 -62 16 -62 41c0 19 9 39 51 41c22 1 37 1 45 1v273l90 -19l2 -1c2 0 3 -1 4 -3v0v-1v0z" />
- <glyph glyph-name="ion-ios-musical-notes" unicode="&#xf46c;" horiz-adv-x="320"
-d="M320 128c0 -34 4 -80 -49 -82c-49 -2 -62 16 -62 41c0 20 9 39 52 41c23 1 34 2 43 2v160l-191 -32v-161c0 -34 3 -81 -50 -83c-49 -2 -63 17 -63 42c0 20 9 39 52 41c23 1 35 1 44 1v237l224 35v-242z" />
- <glyph glyph-name="ion-ios-navigate-outline" unicode="&#xf46d;" horiz-adv-x="416"
-d="M208 384c-51 0 -99 -21 -135 -57s-57 -84 -57 -135s21 -99 57 -135s84 -57 135 -57s99 21 135 57s57 84 57 135s-21 99 -57 135s-84 57 -135 57zM208 400v0c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM304 288l-96 -224v128h-128z" />
- <glyph glyph-name="ion-ios-navigate" unicode="&#xf46e;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 64l96 224l-224 -96h128v-128z" />
- <glyph glyph-name="ion-ios-nutrition-outline" unicode="&#xf46f;" horiz-adv-x="384"
-d="M294 214v0c6 -6 10 -14 10 -23c0 -11 -5 -20 -13 -26v0s-51 -37 -106 -77l-38 31c-2 2 -4 3 -6 3c-1 0 -2 0 -3 -1v0c-2 -2 -2 -6 1 -10l29 -35l-115 -84c-6 -4 -13 -8 -21 -8c-18 0 -32 14 -32 32c0 7 1 13 4 18v0c2 2 17 25 37 57l21 -17c2 -2 4 -2 6 -2c1 0 3 0 4 1v0
-c2 2 1 6 -2 10l-19 23c27 43 60 96 84 134l36 -30c2 -2 4 -3 6 -3c1 0 2 1 3 2v0c2 2 2 5 -1 9l-33 40c11 18 19 29 19 29v0c6 10 15 16 27 16c9 0 18 -4 24 -10v0l78 -79v0v0zM282 178c4 3 6 8 6 13c0 4 -2 9 -5 12l-5 4v1l-69 69v0l-5 5c-3 3 -8 5 -12 5
-c-6 0 -10 -3 -13 -8l-5 -8c-2 -3 -5 -7 -8 -12l25 -30v0l1 -1c8 -10 8 -22 0 -30l-1 -1l-1 -1c-4 -3 -8 -5 -13 -5s-11 2 -16 6v1h-1l-21 18l-24 -39l-44 -70l12 -14v0v0c8 -10 8 -23 0 -31v0c-4 -4 -9 -6 -15 -6c-5 0 -11 2 -16 6v0v0l-7 5c-3 -5 -5 -9 -8 -13
-c-12 -19 -16 -26 -18 -29c-1 -3 -2 -6 -2 -9c0 -9 7 -16 16 -16c3 0 6 2 11 5l101 74l-18 22h-1v0c-8 10 -8 23 0 31v0v0v0c4 4 10 6 15 6s11 -2 16 -6v0h1l28 -24c49 36 93 68 96 70zM376 333l8 -14l-5 -3l-103 -60l-17 17l71 123l2 4l14 -8l-3 -4l-63 -111l91 53z" />
- <glyph glyph-name="ion-ios-nutrition" unicode="&#xf470;" horiz-adv-x="384"
-d="M295 214v0c6 -6 9 -13 9 -22c0 -11 -5 -20 -13 -26v0s-51 -38 -106 -78l-38 32c-4 3 -8 3 -10 1v0c-2 -2 -2 -6 1 -10l29 -35l-114 -84c-6 -4 -13 -8 -21 -8c-18 0 -32 14 -32 32c0 7 2 13 5 18v0c1 2 16 25 36 57l20 -17c4 -3 8 -3 10 -1v0c2 2 2 6 -1 10l-20 23
-c27 43 60 96 84 134l36 -30c4 -3 8 -3 10 -1v0c2 2 2 6 -1 10l-33 40c11 18 18 29 18 29v0c6 10 16 16 28 16c9 0 18 -4 24 -10v0l78 -79l1 -1v0zM384 309l-103 -59l-28 29l70 121l28 -16l-50 -85l67 38z" />
- <glyph glyph-name="ion-ios-paper-outline" unicode="&#xf471;" horiz-adv-x="384"
-d="M48 384h336v-353c0 -17 -14 -31 -31 -31h-322c-17 0 -31 14 -31 31v305h32v-16h-16v-289c0 -8 7 -15 15 -15h322c8 0 15 7 15 15v337h-304v-320h-16v320v16zM96 320v16h128v-16h-128zM96 240v16h240v-16h-240zM96 160v16h192v-16h-192zM96 80v16h240v-16h-240z" />
- <glyph glyph-name="ion-ios-paper" unicode="&#xf472;" horiz-adv-x="384"
-d="M48 384h336v-353c0 -17 -14 -31 -31 -31h-322c-17 0 -31 14 -31 31v305h32v-288h16v288v32v16zM96 336v-16h128v16h-128zM96 176v-16h192v16h-192zM336 80v16h-240v-16h240zM336 240v16h-240v-16h240z" />
- <glyph glyph-name="ion-ios-paperplane-outline" unicode="&#xf473;" horiz-adv-x="320"
-d="M0 198l320 154l-146 -320l-57 115zM132 152l41 -83l115 249zM286 320l-248 -121l83 -36z" />
- <glyph glyph-name="ion-ios-paperplane" unicode="&#xf474;" horiz-adv-x="320"
-d="M0 198l320 154l-214 -200zM320 352l-146 -320l-52 104z" />
- <glyph glyph-name="ion-ios-partlysunny-outline" unicode="&#xf475;" horiz-adv-x="384"
-d="M144 298v54h16v-54h-16zM0 192v16h55v-16h-55zM44 299l10 11l32 -32l-11 -11zM223 268l-11 11l32 32l11 -11zM56 96l-10 11l31 31l11 -11zM129 153c-4 -3 -8 -7 -12 -12c-23 12 -39 36 -39 63c0 39 32 71 71 71c21 0 40 -10 53 -25c-4 -2 -9 -4 -14 -8
-c-10 11 -23 17 -39 17c-30 0 -55 -25 -55 -55c0 -23 15 -43 35 -51zM235 208c-34 0 -63 -28 -63 -62v-12s1 -10 1 -10c-5 0 -12 -1 -14 -1c-19 -3 -33 -18 -33 -37c0 -10 3 -19 10 -26s16 -11 26 -11h157c27 0 49 22 49 49s-22 50 -49 50c-2 0 -4 -1 -6 -1l-14 -2l-3 14
-c-3 14 -11 26 -22 35s-25 14 -39 14zM235 224v0c37 0 68 -26 76 -61h8c36 0 65 -29 65 -65s-29 -66 -65 -66h-157c-28 0 -52 24 -52 53c0 27 21 51 47 53v8c0 43 35 78 78 78z" />
- <glyph glyph-name="ion-ios-partlysunny" unicode="&#xf476;" horiz-adv-x="384"
-d="M144 298v54h16v-54h-16zM0 192v16h55v-16h-55zM44 299l10 11l32 -32l-11 -11zM223 268l-11 11l32 32l11 -11zM56 96l-10 11l31 31l11 -11zM235 224v0c37 0 68 -26 76 -61h8c36 0 65 -29 65 -65s-29 -66 -65 -66h-157c-28 0 -52 24 -52 53c0 27 21 51 47 53v8
-c0 43 35 78 78 78zM201 252l1 -2v0c-31 -5 -62 -43 -62 -75c0 -2 1 -5 1 -7l-1 -1h-1c-11 -6 -18 -14 -22 -26v1v-1c-23 12 -39 36 -39 63c0 39 32 71 71 71c21 0 39 -9 52 -23z" />
- <glyph glyph-name="ion-ios-pause-outline" unicode="&#xf477;" horiz-adv-x="256"
-d="M63 336h-47v-288h47v288zM79 352v0v-320h-79v320h79zM240 336h-47v-288h47v288zM256 352v0v-320h-79v320h79z" />
- <glyph glyph-name="ion-ios-pause" unicode="&#xf478;" horiz-adv-x="256"
-d="M0 32v320h79v-320h-79zM177 32v320h79v-320h-79z" />
- <glyph glyph-name="ion-ios-paw-outline" unicode="&#xf479;" horiz-adv-x="384"
-d="M380 252c6 -17 5 -38 -3 -57c-10 -25 -31 -43 -51 -43c-5 0 -10 1 -15 3c-22 10 -30 45 -17 79c10 28 31 46 51 46c5 0 10 -1 14 -3c10 -4 17 -13 21 -25zM362 202c6 15 7 31 2 44c-2 5 -5 12 -12 15c-2 1 -4 2 -7 2c-13 0 -28 -15 -36 -36c-9 -25 -6 -50 8 -56
-c2 -1 5 -1 8 -1c14 0 29 13 37 32zM90 234c13 -34 5 -69 -17 -79c-5 -2 -10 -3 -15 -3c-20 0 -41 18 -51 43c-8 19 -9 40 -3 57c4 12 11 21 21 25c4 2 9 3 14 3c20 0 41 -18 51 -46zM67 171c14 6 17 31 8 56c-8 21 -23 36 -36 36c-3 0 -5 -1 -7 -2c-7 -3 -10 -10 -12 -15
-c-5 -13 -4 -29 2 -44c8 -19 23 -32 37 -32c3 0 6 0 8 1zM134 237c-28 1 -52 32 -56 69c-2 23 4 45 16 60c8 10 19 17 31 18h6c27 -1 46 -29 50 -67c3 -24 -1 -48 -13 -63c-8 -9 -17 -15 -28 -16c-2 0 -4 -1 -6 -1zM107 356c-10 -12 -14 -29 -12 -48c3 -29 21 -53 40 -54h3
-c6 1 12 4 17 10c10 12 12 31 10 51c-3 29 -17 52 -35 53h-3c-9 -1 -16 -7 -20 -12zM192 208c64 0 128 -76 128 -149c0 -22 -11 -40 -22 -47c-13 -9 -23 -12 -42 -12c-23 0 -29 8 -40 15c-8 5 -14 10 -24 10s-16 -5 -24 -10c-11 -7 -17 -15 -40 -15c-19 0 -29 3 -42 12
-c-11 7 -22 25 -22 47c0 73 64 149 128 149zM290 27c6 4 14 16 14 32c0 30 -14 64 -36 91c-11 13 -23 24 -36 31c-13 8 -27 11 -40 11s-27 -3 -40 -11c-13 -7 -25 -18 -36 -31c-22 -27 -36 -61 -36 -91c0 -16 8 -28 14 -32c11 -7 18 -10 34 -10c14 0 19 4 26 9c2 1 4 3 6 4
-c9 6 18 12 32 12s23 -6 32 -12c2 -1 4 -3 6 -4c7 -5 12 -9 26 -9c16 0 23 3 34 10zM244 238c-11 1 -20 7 -28 16c-12 15 -16 39 -13 63c4 38 23 66 50 67h7c12 -1 22 -8 30 -18c12 -15 18 -37 16 -60c-4 -37 -28 -67 -56 -68h-6zM219 315c-2 -20 0 -39 10 -51
-c5 -6 11 -9 17 -10h3c19 1 38 25 41 54c2 19 -3 36 -13 48c-4 5 -10 11 -19 12h-4c-18 -1 -32 -24 -35 -53z" />
- <glyph glyph-name="ion-ios-paw" unicode="&#xf47a;" horiz-adv-x="384"
-d="M380 252c6 -17 5 -38 -3 -57c-10 -25 -31 -43 -51 -43c-5 0 -10 1 -15 3c-22 10 -30 45 -17 79c10 28 31 46 51 46c5 0 10 -1 14 -3c10 -4 17 -13 21 -25zM90 234c13 -34 5 -69 -17 -79c-5 -2 -10 -3 -15 -3c-20 0 -41 18 -51 43c-8 19 -9 40 -3 57c4 12 11 21 21 25
-c4 2 9 3 14 3c20 0 41 -18 51 -46zM134 237c-28 1 -52 32 -56 69c-2 23 4 45 16 60c8 10 19 17 31 18h6c27 -1 46 -29 50 -67c3 -24 -1 -48 -13 -63c-8 -9 -17 -15 -28 -16c-2 0 -4 -1 -6 -1zM192 208c64 0 128 -76 128 -149c0 -22 -11 -40 -22 -47c-13 -9 -23 -12 -42 -12
-c-23 0 -29 8 -40 15c-8 5 -14 10 -24 10s-16 -5 -24 -10c-11 -7 -17 -15 -40 -15c-19 0 -29 3 -42 12c-11 7 -22 25 -22 47c0 73 64 149 128 149zM244 238c-11 1 -20 7 -28 16c-12 15 -16 39 -13 63c4 38 23 66 50 67h7c12 -1 22 -8 30 -18c12 -15 18 -37 16 -60
-c-4 -37 -28 -67 -56 -68h-6z" />
- <glyph glyph-name="ion-ios-people-outline" unicode="&#xf47b;"
-d="M224 336v0v0zM317 113c11 -4 -11 4 0 0c28 -10 46 -35 46 -65h-28h-250c0 22 9 42 27 55c15 11 31 12 49 16c7 1 24 5 26 13s1 15 1 23c0 3 0 3 -2 5c-4 4 -6 9 -8 14c-2 8 -3 16 -4 24c-9 -2 -10 16 -12 21c-1 4 -7 24 3 21c-3 5 -4 13 -5 19c-2 13 -2 26 3 39
-c10 26 37 39 64 38c26 -1 51 -16 59 -42c4 -12 3 -26 1 -39c-1 -5 -2 -11 -4 -15c10 3 4 -20 3 -23c-2 -5 -3 -21 -12 -19c-1 -10 -2 -22 -7 -31c-1 -2 -7 -8 -7 -10v-11c0 -5 0 -10 2 -15s10 -7 14 -8c14 -5 27 -5 41 -10zM115 84c-6 -6 9 10 0 0c-6 -6 -10 -12 -12 -20h4
-h238c-4 15 -17 27 -30 33s-28 4 -41 9s-25 9 -28 25c-2 11 -2 22 -2 33c0 2 7 7 8 9c3 5 4 11 5 17c1 5 0 12 4 15c5 4 7 7 9 13c2 8 3 12 -1 19c-3 5 0 8 1 13c3 11 4 24 2 36c-8 37 -62 45 -86 19c-12 -13 -12 -31 -9 -47c1 -6 6 -14 3 -19c-1 -3 -5 -6 -4 -10
-c2 -5 2 -11 4 -16c2 -4 4 -6 7 -8s3 -6 3 -9c1 -7 2 -17 6 -23c3 -4 8 -6 8 -11v-21c-1 -8 -2 -18 -8 -24c-7 -6 -18 -10 -27 -12c-11 -3 -23 -3 -33 -7c-8 -3 -15 -8 -21 -14zM112 126c-15 -7 9 4 0 0c-9 -5 -18 -11 -25 -19c-1 -2 -6 -11 -7 -11h-25h-55c0 20 13 34 31 40
-c6 2 27 4 30 11c2 5 0 11 0 16c-10 -1 -24 1 -32 7c-2 2 3 9 4 12l3 12c1 9 1 19 1 28c0 16 -1 34 8 48c8 13 23 18 38 18c24 0 43 -13 47 -37c3 -16 1 -32 2 -48c0 -8 2 -16 5 -24c1 -2 5 -7 3 -9l-6 -3c-5 -2 -11 -3 -17 -4c-1 0 -8 0 -9 -1s0 -9 0 -11c0 -4 1 -6 5 -7
-c6 -2 19 -3 23 -8c2 -3 1 -5 -2 -5c-8 -1 -15 -1 -22 -5zM71 112c6 10 16 18 26 24c-9 9 -5 26 -4 37c0 2 0 5 2 5h8c6 0 11 1 17 2c-7 23 0 47 -5 70c-3 16 -15 23 -31 23c-17 0 -27 -9 -30 -25c-4 -22 3 -46 -4 -68c9 -1 17 -2 26 -2c1 0 1 -28 1 -29
-c-1 -12 -8 -18 -19 -22c-12 -4 -29 -3 -36 -15h49zM368 96c-2 8 -10 14 -16 19c-8 6 -18 13 -28 15c-3 1 -16 -1 -13 5c2 4 9 5 13 6s15 2 16 7c0 1 1 14 0 14c-6 0 -12 1 -18 2c-4 1 -7 2 -11 4c-6 3 -2 6 0 11c14 32 -10 88 32 105c15 6 34 5 48 -3c15 -9 20 -27 20 -44
-c0 -20 -4 -44 7 -62c2 -3 4 -4 0 -6c-2 -1 -4 -1 -6 -2l-12 -3s-9 -1 -13 -1c0 -4 -2 -13 1 -17c6 -7 21 -7 29 -10c18 -6 31 -20 31 -40h-80zM367 123c4 -4 -5 5 0 0s8 -11 15 -11h16h28c-7 12 -26 11 -38 16c-11 4 -16 12 -17 24c0 2 -1 27 1 27c9 0 18 0 26 1
-c-7 23 1 47 -4 70c-3 15 -15 23 -30 23c-17 0 -28 -8 -31 -25c-4 -23 2 -46 -5 -68c6 -2 12 -2 18 -2s8 1 9 -5c1 -11 5 -28 -4 -37c6 -4 11 -8 16 -13z" />
- <glyph glyph-name="ion-ios-people" unicode="&#xf47c;"
-d="M317 113c11 -4 -11 4 0 0v0zM317 113c28 -10 46 -35 46 -65h-28h-250c0 22 9 42 27 55c15 11 31 12 49 16c7 1 24 5 26 13s1 15 1 23c0 3 0 3 -2 5c-4 4 -6 9 -8 14c-2 8 -3 16 -4 24c-9 -2 -10 16 -12 21c-1 4 -7 24 3 21c-3 5 -4 13 -5 19c-2 13 -2 26 3 39
-c10 26 37 39 64 38c26 -1 51 -16 59 -42c4 -12 3 -26 1 -39c-1 -5 -2 -11 -4 -15c10 3 4 -20 3 -23c-2 -5 -3 -21 -12 -19c-1 -10 -2 -22 -7 -31c-1 -2 -7 -8 -7 -10v-11c0 -5 0 -10 2 -15s10 -7 14 -8c14 -5 27 -5 41 -10zM111 126h2h-1h-1zM111 126c-9 -5 -17 -11 -24 -19
-c-1 -2 -6 -11 -7 -11h-25h-55c0 20 12 34 30 40c6 2 27 4 30 11c2 5 1 11 1 16c-10 -1 -24 1 -32 7c-2 2 3 9 4 12c1 4 2 7 3 11c1 9 1 19 1 28c0 16 -1 35 8 49c8 13 23 18 38 18c24 0 43 -13 47 -37c3 -16 1 -32 2 -48c0 -8 2 -16 5 -24c1 -2 5 -7 3 -9l-6 -3
-c-5 -2 -11 -3 -17 -4c-1 0 -8 0 -9 -1s0 -9 0 -11c0 -4 1 -6 5 -7c6 -2 19 -3 23 -8c2 -3 1 -5 -2 -5c-7 -1 -14 -2 -21 -5c2 1 2 2 -1 0c-8 -4 -4 -2 -1 0zM417 136c18 -6 31 -20 31 -40h-80c-2 8 -10 14 -16 19c-8 6 -18 13 -28 15c-3 1 -16 -1 -13 5c2 4 9 5 13 6
-s15 2 16 7c0 1 1 14 0 14c-6 0 -12 1 -18 2c-4 1 -7 2 -11 4c-6 3 -2 6 0 11c14 32 -10 88 32 105c15 6 34 5 48 -3c15 -9 20 -27 20 -44c0 -20 -4 -44 7 -62c2 -3 4 -4 0 -6c-2 -1 -4 -1 -6 -2l-12 -3s-9 -1 -13 -1c0 -4 -2 -13 1 -17c6 -7 21 -7 29 -10z" />
- <glyph glyph-name="ion-ios-person-outline" unicode="&#xf47d;" horiz-adv-x="320"
-d="M106 246v0v0zM267 84c13 -5 53 -20 53 -52h-160h-160c0 32 40 47 53 52s31 6 43 9c7 2 17 5 20 9s1 41 1 41s-6 10 -9 18s-7 32 -7 32s-7 0 -9 12c-2 13 -6 17 -6 27c0 9 5 10 5 10v0s-4 13 -5 42c-1 34 25 68 74 68s75 -34 74 -68c-1 -29 -5 -42 -5 -42v0s5 -1 5 -10
-c0 -10 -3 -15 -6 -28c-2 -12 -9 -12 -9 -12s-4 -23 -7 -31s-9 -18 -9 -18s-2 -37 1 -41s13 -7 20 -9c12 -3 30 -4 43 -9zM160 48v0h137c-2 3 -4 6 -8 8c-7 5 -16 9 -27 13c-7 2 -17 4 -26 5c-6 1 -10 2 -15 3c-3 1 -21 5 -29 15c-4 5 -6 12 -6 32c0 10 1 20 1 20v4l2 4
-c1 2 6 9 8 15c2 5 5 19 6 28c0 0 0 -1 1 4s8 4 9 8s3 7 5 18s-5 12 -5 17c0 4 1 5 1 5v0c0 1 4 14 4 38c0 13 -5 26 -14 35c-11 11 -25 16 -44 16c-18 0 -34 -5 -45 -16c-9 -9 -13 -22 -13 -35c1 -24 4 -37 4 -38v0s1 -3 0 -6c-1 -5 -6 -5 -4 -16s4 -14 5 -18s8 -3 9 -8
-s1 -4 1 -4c1 -9 4 -23 6 -28c2 -6 6 -13 8 -15l2 -4v-4s1 -10 1 -20c0 -20 -2 -27 -6 -32c-8 -10 -26 -14 -29 -15c-5 -1 -10 -2 -16 -3c-9 -1 -18 -3 -25 -5c-11 -4 -20 -8 -27 -13c-4 -2 -6 -5 -8 -8h137z" />
- <glyph glyph-name="ion-ios-person" unicode="&#xf47e;" horiz-adv-x="320"
-d="M267 84c13 -5 53 -20 53 -52h-160h-160c0 32 40 47 53 52s31 6 43 9c7 2 17 5 20 9s1 41 1 41s-6 10 -9 18s-7 32 -7 32s-7 0 -9 12c-2 13 -6 17 -6 27c0 9 5 10 5 10v0s-4 13 -5 42c-1 34 25 68 74 68s75 -34 74 -68c-1 -29 -5 -42 -5 -42v0s5 -1 5 -10
-c0 -10 -3 -15 -6 -28c-2 -12 -9 -12 -9 -12s-4 -23 -7 -31s-9 -18 -9 -18s-2 -37 1 -41s13 -7 20 -9c12 -3 30 -4 43 -9z" />
- <glyph glyph-name="ion-ios-personadd-outline" unicode="&#xf47f;" horiz-adv-x="320"
-d="M320 295v-14h-25v-25h-14v25h-25v14h25v25h14v-25h25zM106 246v0v0zM267 84c13 -5 53 -20 53 -52h-160h-160c0 32 40 47 53 52s31 6 43 9c7 2 17 5 20 9s1 41 1 41s-6 10 -9 18s-7 32 -7 32s-7 0 -9 12c-2 13 -6 17 -6 27c0 9 5 10 5 10v0s-4 13 -5 42c-1 34 25 68 74 68
-s75 -34 74 -68c-1 -29 -5 -42 -5 -42v0s5 -1 5 -10c0 -10 -3 -15 -6 -28c-2 -12 -9 -12 -9 -12s-4 -23 -7 -31s-9 -18 -9 -18s-2 -37 1 -41s13 -7 20 -9c12 -3 30 -4 43 -9zM160 48v0h137c-2 3 -4 6 -8 8c-7 5 -16 9 -27 13c-7 2 -17 4 -26 5c-6 1 -10 2 -15 3
-c-3 1 -21 5 -29 15c-4 5 -6 12 -6 32c0 10 1 20 1 20v4l2 4c1 2 6 9 8 15c2 5 5 19 6 28c0 0 0 -1 1 4s8 4 9 8s3 7 5 18s-5 12 -5 17c0 4 1 5 1 5v0c0 1 4 14 4 38c0 13 -5 26 -14 35c-11 11 -25 16 -44 16c-18 0 -34 -5 -45 -16c-9 -9 -13 -22 -13 -35c1 -24 4 -37 4 -38
-v0s1 -3 0 -6c-1 -5 -6 -5 -4 -16s4 -14 5 -18s8 -3 9 -8s1 -4 1 -4c1 -9 4 -23 6 -28c2 -6 6 -13 8 -15l2 -4v-4s1 -10 1 -20c0 -20 -2 -27 -6 -32c-8 -10 -26 -14 -29 -15c-5 -1 -10 -2 -16 -3c-9 -1 -18 -3 -25 -5c-11 -4 -20 -8 -27 -13c-4 -2 -6 -5 -8 -8h137z" />
- <glyph glyph-name="ion-ios-personadd" unicode="&#xf480;" horiz-adv-x="320"
-d="M320 295v-14h-25v-25h-14v25h-25v14h25v25h14v-25h25zM267 84c13 -5 53 -20 53 -52h-160h-160c0 32 40 47 53 52s31 6 43 9c7 2 17 5 20 9s1 41 1 41s-6 10 -9 18s-7 32 -7 32s-7 0 -9 12c-2 13 -6 17 -6 27c0 9 5 10 5 10v0s-4 13 -5 42c-1 34 25 68 74 68
-s75 -34 74 -68c-1 -29 -5 -42 -5 -42v0s5 -1 5 -10c0 -10 -3 -15 -6 -28c-2 -12 -9 -12 -9 -12s-4 -23 -7 -31s-9 -18 -9 -18s-2 -37 1 -41s13 -7 20 -9c12 -3 30 -4 43 -9z" />
- <glyph glyph-name="ion-ios-photos-outline" unicode="&#xf481;"
-d="M64 320h384v-320h-384v320zM432 16v288h-352v-288h352zM0 384h384v-48h-16v32h-352v-288h32v-16h-48v320z" />
- <glyph glyph-name="ion-ios-photos" unicode="&#xf482;"
-d="M64 320h384v-320h-384v320zM384 384v-48h-336v-272h-48v320h384z" />
- <glyph glyph-name="ion-ios-pie-outline" unicode="&#xf483;"
-d="M256 367v0v-207v-12l-12 -4l-180 -45c6 -13 13 -25 21 -36c12 -16 25 -30 41 -42c33 -24 73 -37 114 -37c26 0 51 5 75 15c23 10 43 23 61 41s31 38 41 61c10 24 15 49 15 75c0 51 -20 100 -56 136c-32 32 -75 51 -120 55zM240 384v0c115 0 208 -93 208 -208
-s-93 -208 -208 -208c-92 0 -171 60 -198 143l198 49v224zM208 400c-31 -1 -60 -7 -85 -18c-24 -11 -44 -26 -61 -46c-29 -34 -46 -80 -46 -127v0v0c0 -13 3 -46 12 -70l180 46v215zM224 416v0v-244l-205 -52c-19 32 -19 89 -19 89c0 91 58 207 218 207h6z" />
- <glyph glyph-name="ion-ios-pie" unicode="&#xf484;"
-d="M240 384v0c115 0 208 -93 208 -208s-93 -208 -208 -208c-92 0 -171 60 -198 143l198 49v224zM224 416v0v-244l-205 -52c-19 32 -19 89 -19 89c0 91 58 207 218 207h6z" />
- <glyph glyph-name="ion-ios-pint-outline" unicode="&#xf485;" horiz-adv-x="224"
-d="M224 278c0 -98 -32 -101 -32 -181c0 -40 16 -71 16 -99c0 -27 -9 -30 -32 -30h-128c-23 0 -32 2 -32 29c0 28 16 60 16 100c0 80 -32 83 -32 181c0 21 1 89 19 125c4 9 13 13 32 13h122c19 0 28 -4 32 -13c18 -36 19 -104 19 -125zM34 396c-8 -16 -14 -43 -17 -76h190
-c-3 33 -9 60 -17 76c-1 2 -1 1 -2 2c-2 1 -6 2 -15 2h-122c-9 0 -13 -1 -15 -2c-1 -1 -1 0 -2 -2zM191 -15c0 1 1 5 1 13c0 11 -4 23 -7 37c-4 18 -9 39 -9 62c0 41 8 64 16 86c8 23 16 46 16 95c0 9 -1 18 -1 26h-190c0 -8 -1 -17 -1 -26c0 -49 8 -72 16 -95
-c8 -22 16 -45 16 -86c0 -23 -5 -44 -9 -62c-3 -14 -7 -26 -7 -37c0 -8 1 -12 1 -13c2 -1 7 -1 15 -1h128c8 0 13 0 15 1z" />
- <glyph glyph-name="ion-ios-pint" unicode="&#xf486;" horiz-adv-x="224"
-d="M224 278c0 -98 -32 -101 -32 -181c0 -40 16 -71 16 -99c0 -27 -9 -30 -32 -30h-128c-23 0 -32 2 -32 29c0 28 16 60 16 100c0 80 -32 83 -32 181c0 21 1 89 19 125c4 9 13 13 32 13h122c19 0 28 -4 32 -13c18 -36 19 -104 19 -125zM34 396c-8 -16 -14 -43 -17 -76h190
-c-3 33 -9 60 -17 76c-1 2 -1 1 -2 2c-2 1 -6 2 -15 2h-122c-9 0 -13 -1 -15 -2c-1 -1 -1 0 -2 -2z" />
- <glyph glyph-name="ion-ios-play-outline" unicode="&#xf487;" horiz-adv-x="256"
-d="M16 323v-262l210 131zM0 352v0l256 -160l-256 -160v320z" />
- <glyph glyph-name="ion-ios-play" unicode="&#xf488;" horiz-adv-x="256"
-d="M0 352v0l256 -160l-256 -160v320z" />
- <glyph glyph-name="ion-ios-plus-empty" unicode="&#xf489;" horiz-adv-x="256"
-d="M256 183h-120v-119h-17v119h-119v17h119v120h17v-120h120v-17z" />
- <glyph glyph-name="ion-ios-plus-outline" unicode="&#xf48a;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1c105 0 191 86 191 191s-86 191 -191 191s-191 -86 -191 -191s86 -191 191 -191zM216 320v-120h120v-17h-120v-119h-17v119h-119v17h119v120h17z" />
- <glyph glyph-name="ion-ios-plus" unicode="&#xf48b;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM336 183v17h-120v120h-17v-120h-119v-17h119v-119h17v119h120z" />
- <glyph glyph-name="ion-ios-pricetag-outline" unicode="&#xf48c;" horiz-adv-x="416"
-d="M416 416v-160l-256 -288l-160 160l256 288h160zM400 264v136h-136l-240 -272l136 -136zM320 288c-18 0 -32 14 -32 32s14 32 32 32s32 -14 32 -32s-14 -32 -32 -32zM320 336c-9 0 -16 -7 -16 -16s7 -16 16 -16s16 7 16 16s-7 16 -16 16z" />
- <glyph glyph-name="ion-ios-pricetag" unicode="&#xf48d;" horiz-adv-x="416"
-d="M304 320c0 11 5 16 16 16s16 -5 16 -16s-5 -16 -16 -16s-16 5 -16 16zM256 416h160v-160l-256 -288l-160 160zM320 288c9 0 16 4 22 10s10 13 10 22s-4 16 -10 22s-13 10 -22 10s-16 -4 -22 -10s-10 -13 -10 -22s4 -16 10 -22s13 -10 22 -10z" />
- <glyph glyph-name="ion-ios-pricetags-outline" unicode="&#xf48e;"
-d="M416 384h32v-144l-240 -272l-25 24l-23 -24l-160 160l256 288h160v-32zM160 -9l12 12l11 12l217 248v105v16v16h-137l-241 -272zM432 247v121h-16v-112l-221 -253l13 -12zM320 288c-18 0 -32 14 -32 32s14 32 32 32s32 -14 32 -32s-14 -32 -32 -32zM320 336
-c-9 0 -16 -7 -16 -16s7 -16 16 -16s16 7 16 16s-7 16 -16 16z" />
- <glyph glyph-name="ion-ios-pricetags" unicode="&#xf48f;"
-d="M432 384h16v-144l-240 -272l-13 13l237 266v137zM256 416h160v-32v-16v-112l-221 -253l-12 -11l-23 -24l-160 160zM320 288c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM304 320c0 11 5 16 16 16s16 -5 16 -16s-5 -16 -16 -16s-16 5 -16 16z" />
- <glyph glyph-name="ion-ios-printer-outline" unicode="&#xf490;" horiz-adv-x="416"
-d="M384 336c18 0 32 -13 32 -31v-159c0 -18 -14 -32 -32 -32h-48v-114h-256v114h-48c-18 0 -32 14 -32 32v159c0 18 14 31 32 31h32v48h288v-48h32zM80 368v-32h256v32h-256zM320 16v192h-224v-192h224zM400 146v159c0 9 -7 15 -16 15v0h-352c-9 0 -16 -6 -16 -15v-159
-c0 -9 7 -16 16 -16h48v94h256v-94h48c9 0 16 7 16 16z" />
- <glyph glyph-name="ion-ios-printer" unicode="&#xf491;" horiz-adv-x="416"
-d="M80 0v224h256v-224h-256zM80 -0v224h256v-224h-256zM64 352v32h288v-32h-288zM385 336c18 0 31 -14 31 -31v-158c0 -17 -13 -34 -31 -34h-33v126h-288v-126h-31c-18 0 -33 17 -33 34v158c0 17 15 31 33 31h352z" />
- <glyph glyph-name="ion-ios-pulse-strong" unicode="&#xf492;" horiz-adv-x="480"
-d="M432 175c27 0 48 -20 48 -47s-21 -49 -48 -49c-21 0 -38 13 -45 31h-51c-7 0 -13 4 -15 11l-16 47l-50 -173c-2 -7 -8 -11 -15 -11h-1c-7 0 -14 5 -15 12l-51 308l-45 -182c-2 -7 -9 -12 -16 -12h-112v32h99l61 245c2 7 8 13 16 13s15 -7 16 -14l52 -314l45 155
-c2 7 8 11 15 11v0c7 0 13 -4 15 -11l29 -85h38c6 19 25 33 46 33z" />
- <glyph glyph-name="ion-ios-pulse" unicode="&#xf493;"
-d="M416 160c18 0 32 -14 32 -32s-14 -32 -32 -32c-15 0 -27 10 -31 23h-65c-3 0 -7 2 -8 5l-23 72l-57 -198c-1 -3 -4 -6 -8 -6v0c-4 0 -7 3 -8 7l-58 346l-54 -220c-1 -4 -4 -6 -8 -6h-96v16h90l62 251c1 4 4 6 8 6s7 -3 8 -7l58 -349l54 190c1 3 4 5 8 5s7 -2 8 -5l30 -91
-h59c3 14 16 25 31 25z" />
- <glyph glyph-name="ion-ios-rainy-outline" unicode="&#xf494;" horiz-adv-x="288"
-d="M220 269c38 0 68 -33 68 -71c0 -29 -19 -56 -45 -66l-55 -80c-2 -2 -5 -4 -8 -4c-5 0 -8 3 -8 8c0 2 1 4 2 6l46 66v0h-35l-31 -44c-2 -2 -4 -4 -7 -4c-5 0 -9 3 -9 8c0 2 1 3 2 5l25 35h-37l-53 -76c-2 -2 -4 -4 -7 -4c-5 0 -9 3 -9 8c0 2 2 4 3 6l46 66h-36l-32 -44
-c-2 -2 -4 -4 -7 -4c-5 0 -8 3 -8 8c0 2 1 4 2 6l25 34c-29 2 -52 27 -52 56c0 28 22 58 50 60c0 3 -1 5 -1 8c0 46 31 84 82 84c45 0 73 -31 81 -68c3 0 5 1 8 1zM220 146c28 0 52 24 52 52s-24 54 -52 54h-6l-15 -2l-3 15c-3 14 -11 31 -23 40c-12 10 -26 14 -41 14
-c-36 0 -66 -31 -66 -67v-12v-10c-6 0 -12 -2 -14 -2c-20 -3 -35 -23 -35 -43c0 -10 4 -20 11 -27s16 -12 26 -12h124v0v0h42z" />
- <glyph glyph-name="ion-ios-rainy" unicode="&#xf495;" horiz-adv-x="288"
-d="M220 269c38 0 68 -33 68 -71c0 -29 -19 -56 -45 -66l-55 -80c-2 -2 -5 -4 -8 -4c-5 0 -8 3 -8 8c0 2 1 4 2 6l46 66v0h-35l-31 -44c-2 -2 -4 -4 -7 -4c-5 0 -9 3 -9 8c0 2 1 3 2 5l25 35h-37l-53 -76c-2 -2 -4 -4 -7 -4c-5 0 -9 3 -9 8c0 2 2 4 3 6l46 66h-36l-32 -44
-c-2 -2 -4 -4 -7 -4c-5 0 -8 3 -8 8c0 2 1 4 2 6l25 34c-29 2 -52 27 -52 56c0 28 22 58 50 60c0 3 -1 5 -1 8c0 46 31 84 82 84c45 0 73 -31 81 -68c3 0 5 1 8 1z" />
- <glyph glyph-name="ion-ios-recording-outline" unicode="&#xf496;" horiz-adv-x="480"
-d="M370 304c61 0 110 -50 110 -112s-49 -112 -110 -112h-260c-61 0 -110 50 -110 112s49 112 110 112s110 -50 110 -112c0 -40 -21 -75 -53 -95h146c-32 20 -53 55 -53 95c0 62 49 112 110 112zM16 192c0 -53 42 -95 94 -95s93 42 93 95s-41 95 -93 95s-94 -42 -94 -95z
-M370 97c52 0 94 42 94 95s-42 95 -94 95s-93 -42 -93 -95s41 -95 93 -95zM368 240c-26 0 -48 -22 -48 -48s22 -48 48 -48s48 22 48 48s-22 48 -48 48zM368 256v0c35 0 64 -29 64 -64s-29 -64 -64 -64s-64 29 -64 64s29 64 64 64zM112 240c-26 0 -48 -22 -48 -48
-s22 -48 48 -48s48 22 48 48s-22 48 -48 48zM112 256v0c35 0 64 -29 64 -64s-29 -64 -64 -64s-64 29 -64 64s29 64 64 64z" />
- <glyph glyph-name="ion-ios-recording" unicode="&#xf497;" horiz-adv-x="480"
-d="M370 304c61 0 110 -50 110 -112s-49 -112 -110 -112h-260c-61 0 -110 50 -110 112s49 112 110 112s110 -50 110 -112c0 -40 -21 -76 -53 -95h146c-32 19 -53 55 -53 95c0 62 49 112 110 112zM112 128c35 0 64 29 64 64s-29 64 -64 64s-64 -29 -64 -64s29 -64 64 -64z
-M368 128c35 0 64 29 64 64s-29 64 -64 64s-64 -29 -64 -64s29 -64 64 -64zM368 240c26 0 48 -22 48 -48s-22 -48 -48 -48s-48 22 -48 48s22 48 48 48zM112 240c26 0 48 -22 48 -48s-22 -48 -48 -48s-48 22 -48 48s22 48 48 48z" />
- <glyph glyph-name="ion-ios-redo-outline" unicode="&#xf498;" horiz-adv-x="384"
-d="M0 48v32c0 17 -3 83 49 136c35 36 80 53 143 56v80l192 -128l-192 -128v80c-40 -1 -63 -9 -87 -20c-31 -14 -55 -44 -75 -77l-20 -31h-10zM208 256c-201 0 -192 -169 -192 -169c48 81 101 105 192 105v-65l148 97l-148 97v-65z" />
- <glyph glyph-name="ion-ios-redo" unicode="&#xf499;" horiz-adv-x="384"
-d="M0 48v32c0 17 -3 83 49 136c35 36 80 53 143 56v80l192 -128l-192 -128v80c-40 -1 -63 -9 -87 -20c-31 -14 -55 -44 -75 -77l-20 -31h-10z" />
- <glyph glyph-name="ion-ios-refresh-empty" unicode="&#xf49a;" horiz-adv-x="256"
-d="M128 64c-71 0 -128 57 -128 128s57 128 128 128v44l96 -64l-96 -56v56c-60 0 -108 -48 -108 -108s48 -108 108 -108s108 48 108 108h20c0 -71 -57 -128 -128 -128z" />
- <glyph glyph-name="ion-ios-refresh-outline" unicode="&#xf49b;" horiz-adv-x="416"
-d="M316 192v0h20c0 -71 -57 -128 -128 -128s-128 57 -128 128s57 128 128 128v44l96 -64l-96 -56v56c-60 0 -108 -48 -108 -108s48 -108 108 -108s108 48 108 108zM208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 1
-c105 0 191 86 191 191s-86 191 -191 191s-191 -86 -191 -191s86 -191 191 -191z" />
- <glyph glyph-name="ion-ios-refresh" unicode="&#xf49c;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM208 64c71 0 128 57 128 128h-20c0 -60 -48 -108 -108 -108s-108 48 -108 108s48 108 108 108v-56l96 56l-96 64v-44c-71 0 -128 -57 -128 -128s57 -128 128 -128z" />
- <glyph glyph-name="ion-ios-reload" unicode="&#xf49d;"
-d="M192 384c106 0 192 -86 192 -192l55 53l9 -9l-70 -68l-67 68l9 9l51 -52c0 98 -80 178 -179 178s-179 -80 -179 -179s80 -179 179 -179c79 0 146 50 170 121l12 -3c-26 -76 -97 -131 -182 -131c-106 0 -192 86 -192 192s86 192 192 192z" />
- <glyph glyph-name="ion-ios-reverse-camera-outline" unicode="&#xf49e;" horiz-adv-x="384"
-d="M238 129l2 2l11 -12l-2 -2c-16 -14 -36 -21 -57 -21c-45 0 -82 36 -87 78h-30l38 50l39 -50h-31c5 -33 35 -62 71 -62c17 0 33 6 46 17zM252 249c16 -14 25 -37 27 -57h30l-38 -51l-39 51h31c-5 35 -35 64 -71 64c-17 0 -33 -6 -46 -17l-2 -2l-11 12l2 2
-c16 14 36 21 57 21c22 0 44 -8 60 -23zM354 288c18 0 30 -14 30 -31v-176c0 -17 -12 -33 -30 -33h-320c-18 0 -34 16 -34 33v176c0 17 16 31 34 31h13v16h34v-16h13c32 36 43 48 55 48h88c12 0 23 -12 55 -48h62zM368 81v176c0 9 -5 15 -14 15h-62h-6s-4 1 -6 3s-6 8 -9 11
-c-12 13 -21 24 -27 30c-5 5 -7 4 -7 4h-88s-1 0 -6 -4c-6 -5 -15 -14 -26 -27c-3 -4 -8 -11 -11 -14s-4 -3 -6 -3h-6h-60c-9 0 -18 -7 -18 -15v-176c0 -9 9 -17 18 -17h320c8 0 14 8 14 17z" />
- <glyph glyph-name="ion-ios-reverse-camera" unicode="&#xf49f;" horiz-adv-x="384"
-d="M354 288c18 0 30 -14 30 -31v-176c0 -17 -12 -33 -30 -33h-320c-18 0 -34 16 -34 33v176c0 17 16 31 34 31h13v16h34v-16h13c32 36 43 48 55 48h88c12 0 23 -12 55 -48h62zM249 117l2 2l-11 12l-2 -2c-13 -11 -29 -17 -46 -17c-36 0 -66 29 -71 62h31l-39 50l-38 -50h30
-c5 -42 42 -78 87 -78c21 0 41 7 57 21zM271 141l38 51h-30c-2 20 -11 43 -27 57c-16 15 -38 23 -60 23c-21 0 -41 -7 -57 -21l-2 -2l11 -12l2 2c13 11 29 17 46 17c36 0 66 -29 71 -64h-31z" />
- <glyph glyph-name="ion-ios-rewind-outline" unicode="&#xf4a0;"
-d="M432 293l-184 -101l184 -101v202zM208 292v0l-176 -100l176 -100v95v27v78zM224 320v0v-123l224 123v-256l-224 123v-123l-224 128z" />
- <glyph glyph-name="ion-ios-rewind" unicode="&#xf4a1;"
-d="M224 320v0v-123l224 123v-256l-224 123v-123l-224 128z" />
- <glyph glyph-name="ion-ios-rose-outline" unicode="&#xf4a2;" horiz-adv-x="320"
-d="M284 295c-4 -1 -9 -3 -13 -4c-37 -11 -71 -24 -103 -39c-17 -8 -24 -12 -44 -24l-7 -4c-31 -18 -50 -33 -63 -51c-15 -21 -22 -45 -22 -77c0 -16 3 -30 9 -44c6 -13 14 -26 25 -36c23 -21 55 -32 94 -32s71 11 94 32c11 10 19 23 25 36c6 14 9 28 9 44c0 20 -5 40 -11 60
-c-11 40 -23 83 7 139zM320 320v0c-77 -96 -16 -151 -16 -224s-56 -128 -144 -128s-144 55 -144 128s35 109 93 142c25 14 33 19 52 28c30 14 65 28 105 40c17 5 35 10 54 14zM38 325c14 -28 18 -57 19 -83c9 7 20 13 30 20c7 4 14 9 21 13c5 3 10 6 16 9c-5 4 -11 7 -17 11
-c-22 13 -48 23 -69 30zM0 352v0s66 -15 115 -43c15 -8 28 -18 37 -29c-12 -6 -24 -12 -36 -19c-7 -4 -14 -8 -20 -12c-25 -16 -44 -31 -57 -42c5 41 2 98 -39 145zM249 367c-8 -1 -20 -2 -35 -7c-25 -8 -47 -20 -64 -36c8 -6 15 -12 21 -18c29 12 65 26 95 34
-c-5 10 -12 20 -17 27zM256 384v0s26 -32 32 -55c-33 -8 -84 -25 -121 -42l-3 3c-9 11 -22 22 -39 32c52 60 131 62 131 62zM85 394c-6 -10 -10 -20 -14 -28c12 -4 22 -10 36 -17c4 5 9 10 14 14c-13 15 -27 25 -36 31zM80 416v0s35 -16 64 -56c-12 -9 -23 -20 -33 -31
-c-26 13 -40 21 -61 27c5 15 15 38 30 60z" />
- <glyph glyph-name="ion-ios-rose" unicode="&#xf4a3;" horiz-adv-x="320"
-d="M320 320v0c-77 -96 -16 -151 -16 -224s-56 -128 -144 -128s-144 55 -144 128s35 109 93 142c25 14 33 19 52 28c30 14 65 28 105 40c17 5 35 10 54 14zM0 352v0s66 -15 115 -43c15 -8 28 -18 37 -29c-12 -6 -24 -12 -36 -19c-7 -4 -14 -8 -20 -12
-c-25 -16 -44 -31 -57 -42c5 41 2 98 -39 145zM256 384v0s26 -32 32 -55c-33 -8 -84 -25 -121 -42l-3 3c-9 11 -22 22 -39 32c52 60 131 62 131 62zM80 416v0s35 -16 64 -56c-12 -9 -23 -20 -33 -31c-26 13 -40 21 -61 27c5 15 15 38 30 60z" />
- <glyph glyph-name="ion-ios-search-strong" unicode="&#xf4a4;" horiz-adv-x="384"
-d="M280 150l-4 -7l108 -109l-34 -34l-108 109l-7 -5c-24 -15 -53 -25 -83 -25c-84 0 -152 69 -152 153s68 152 152 152s152 -68 152 -152c0 -30 -9 -58 -24 -82zM237 317c-23 23 -53 35 -85 35s-62 -12 -85 -35s-35 -53 -35 -85s12 -62 35 -85s53 -35 85 -35s62 12 85 35
-s36 53 36 85s-13 62 -36 85z" />
- <glyph glyph-name="ion-ios-search" unicode="&#xf4a5;" horiz-adv-x="384"
-d="M384 23l-23 -23l-113 113c-26 -21 -60 -33 -96 -33c-84 0 -152 68 -152 152s68 152 152 152s152 -68 152 -152c0 -36 -12 -69 -33 -95zM56 135c26 -26 60 -39 96 -39s70 14 96 40s40 60 40 96s-14 70 -40 96s-60 40 -96 40s-70 -14 -96 -40s-40 -60 -40 -96
-s14 -71 40 -97z" />
- <glyph glyph-name="ion-ios-settings-strong" unicode="&#xf4a6;"
-d="M0 72h283c6 14 21 24 37 24s31 -10 37 -24h91v-32h-91c-6 -14 -21 -24 -37 -24s-31 10 -37 24h-283zM0 208h91c6 14 21 24 37 24s31 -10 37 -24h283v-32h-283c-6 -14 -21 -24 -37 -24s-31 10 -37 24h-91zM0 344h283c6 14 21 24 37 24s31 -10 37 -24h91v-32h-91
-c-6 -14 -21 -24 -37 -24s-31 10 -37 24h-283z" />
- <glyph glyph-name="ion-ios-settings" unicode="&#xf4a7;"
-d="M320 344c-9 0 -16 -7 -16 -16s7 -16 16 -16s16 7 16 16s-7 16 -16 16zM320 360v0c18 0 32 -14 32 -32s-14 -32 -32 -32s-32 14 -32 32s14 32 32 32zM320 72c-9 0 -16 -7 -16 -16s7 -16 16 -16s16 7 16 16s-7 16 -16 16zM320 88v0c18 0 32 -14 32 -32s-14 -32 -32 -32
-s-32 14 -32 32s14 32 32 32zM128 208c-9 0 -16 -7 -16 -16s7 -16 16 -16s16 7 16 16s-7 16 -16 16zM128 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32s-32 14 -32 32s14 32 32 32zM175 200h273v-16h-273c0 3 1 5 1 8s-1 5 -1 8zM80 192c0 -3 1 -5 1 -8h-81v16h81
-c0 -3 -1 -5 -1 -8zM367 64h81v-16h-81c0 3 1 5 1 8s-1 5 -1 8zM272 56c0 -3 1 -5 1 -8h-273v16h273c0 -3 -1 -5 -1 -8zM367 336h81v-16h-81c0 3 1 5 1 8s-1 5 -1 8zM273 336c0 -3 -1 -5 -1 -8s1 -5 1 -8h-273v16h273z" />
- <glyph glyph-name="ion-ios-shuffle-strong" unicode="&#xf4a8;" horiz-adv-x="384"
-d="M301 296c-85 0 -119 -64 -152 -126c-1 -3 -3 -5 -4 -8l-1 -1c-2 -3 -2 -5 -4 -8c-21 -38 -43 -68 -68 -83c-15 -9 -34 -18 -72 -18v32c45 0 76 18 112 84c2 3 2 6 4 9h1c1 2 3 4 4 7c34 64 76 144 180 144h15l-52 43l21 25l99 -84l-99 -82l-21 24l51 42h-14zM285 154
-l99 -82l-99 -84l-21 25l52 43h-15c-78 0 -122 45 -153 95l18 33c29 -51 64 -96 135 -96h14l-51 42zM112 216c-36 66 -67 84 -112 84v32c38 0 57 -9 72 -18c25 -15 47 -44 67 -81c-7 -11 -13 -22 -19 -33c-1 2 -2 5 -3 7h-1c-2 3 -2 6 -4 9z" />
- <glyph glyph-name="ion-ios-shuffle" unicode="&#xf4a9;" horiz-adv-x="384"
-d="M298 241l-10 12l62 51h-46c-93 0 -129 -75 -164 -139c-2 -3 -3 -6 -5 -9c-20 -37 -41 -61 -65 -75c-14 -8 -33 -17 -70 -17v16c48 0 83 14 121 84c2 3 3 6 5 9c35 65 75 147 178 147h46l-62 52l10 12l86 -72zM135 228c0 -1 1 -2 1 -3c-3 -5 -6 -11 -9 -16c0 1 -1 1 -1 2
-c-2 3 -3 6 -5 9c-38 70 -73 84 -121 84v16c37 0 56 -9 70 -17c24 -14 45 -38 65 -75zM298 143l86 -71l-86 -72l-10 12l62 52h-46c-76 0 -118 45 -149 95c1 2 2 5 3 7c2 3 4 7 6 10c30 -50 67 -96 140 -96h46l-62 51z" />
- <glyph glyph-name="ion-ios-skipbackward-outline" unicode="&#xf4aa;" horiz-adv-x="320"
-d="M0 352h79v-142l241 142v-320l-241 142v-142h-79v320zM80 192l7 -4l217 -128v264v0l-217 -128zM16 336v-288h47v126v8v28v126h-47z" />
- <glyph glyph-name="ion-ios-skipbackward" unicode="&#xf4ab;" horiz-adv-x="320"
-d="M0 352h79v-142l241 142v-320l-241 142v-142h-79v320z" />
- <glyph glyph-name="ion-ios-skipforward-outline" unicode="&#xf4ac;" horiz-adv-x="320"
-d="M241 352h79v-320h-79v142l-241 -142v320l241 -142v142zM233 188l7 4l-7 4l-217 128v0v-264zM304 48v288h-47v-126v-28v-8v-126h47z" />
- <glyph glyph-name="ion-ios-skipforward" unicode="&#xf4ad;" horiz-adv-x="320"
-d="M241 352h79v-320h-79v142l-241 -142v320l241 -142v142z" />
- <glyph glyph-name="ion-ios-snowy" unicode="&#xf4ae;" horiz-adv-x="256"
-d="M252 131c4 -2 5 -7 3 -11s-7 -5 -11 -3l-29 17c-2 -8 -2 -16 0 -24c1 -4 -3 -9 -7 -10s-8 2 -9 6c-2 12 -3 24 1 36l-64 36v-73c11 -3 22 -8 31 -16c3 -3 4 -8 1 -11s-8 -4 -11 -1c-6 5 -13 10 -21 12v-33c0 -4 -4 -8 -8 -8s-8 4 -8 8v33c-8 -2 -15 -7 -21 -12
-c-3 -3 -8 -2 -11 1s-3 8 0 11c9 8 20 13 32 16v73l-65 -36c4 -12 4 -23 2 -35c-1 -4 -5 -8 -9 -7s-8 6 -7 10c2 8 2 16 0 24l-29 -17c-4 -2 -9 -1 -11 3s-1 9 3 11l29 16c-6 6 -13 10 -21 13c-4 1 -6 6 -5 10c2 4 6 6 10 5c12 -4 22 -11 30 -19l65 36l-65 37
-c-8 -9 -18 -15 -30 -19c-4 -1 -9 0 -10 4s1 10 5 11c8 3 15 6 21 12l-29 16c-4 2 -5 7 -3 11s7 5 11 3l29 -16c2 8 2 15 0 23c-1 4 3 9 7 10s8 -2 9 -6c2 -12 1 -25 -2 -36l65 -36v73c-12 3 -23 8 -32 16c-3 3 -3 8 0 11s8 4 11 1c6 -5 13 -10 21 -12v33c0 4 4 8 8 8
-s8 -4 8 -8v-33c8 2 15 7 21 12c3 3 8 2 11 -1s2 -8 -1 -11c-9 -8 -20 -13 -31 -16v-73l64 36c-3 11 -4 24 -2 36c1 4 6 7 10 6s7 -6 6 -10c-2 -8 -1 -15 1 -23l29 16c4 2 9 1 11 -3s1 -9 -3 -11l-29 -16c6 -6 13 -10 21 -13c4 -1 6 -6 5 -10s-6 -6 -10 -5
-c-12 4 -23 10 -31 19l-64 -36l64 -36c8 8 19 15 31 19c4 1 9 -1 10 -5s-1 -9 -5 -10c-8 -3 -15 -7 -21 -13z" />
- <glyph glyph-name="ion-ios-speedometer-outline" unicode="&#xf4af;"
-d="M224 384c124 0 224 -100 224 -224c0 -57 -21 -108 -56 -148c-4 -4 -7 -8 -11 -12l-10 10l-1 2c-19 18 -41 33 -65 43c-26 11 -53 16 -81 16s-55 -5 -81 -16c-24 -10 -46 -25 -65 -43l-1 -2l-10 -10c-4 4 -7 8 -11 12c-35 40 -56 91 -56 148c0 124 100 224 224 224z
-M416 79c10 23 15 48 16 73h-32v16h32c-1 25 -6 50 -16 73c-9 22 -23 42 -39 60l-27 -27l-6 6l-5 5v0h-1l27 27c-18 17 -38 31 -60 40c-23 10 -48 15 -74 16v-38h-16v38c-25 -1 -49 -6 -72 -16c-22 -10 -43 -23 -61 -40l27 -27v0v0l-6 -6l-5 -5l-27 27
-c-16 -18 -30 -38 -39 -60c-10 -23 -15 -49 -16 -74h32v-16h-32c1 -25 6 -49 16 -72c9 -20 20 -39 35 -56c40 40 96 64 157 64s117 -24 157 -64c15 17 26 36 35 56zM336 273l2 -1l-75 -84c6 -8 9 -18 9 -28c0 -26 -22 -48 -48 -48c-10 0 -19 4 -27 9l-13 -12l-11 11l12 12
-c-6 8 -9 18 -9 28c0 26 22 48 48 48c10 0 19 -3 27 -8zM224 128c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32z" />
- <glyph glyph-name="ion-ios-speedometer" unicode="&#xf4b0;"
-d="M385 169v-15h30c-1 -22 -6 -44 -15 -65c-8 -18 -19 -35 -32 -50c-39 37 -90 58 -144 58s-105 -21 -144 -58c-13 15 -24 32 -32 50c-9 21 -14 43 -15 65h28h1v16h-29c1 23 6 45 15 66c9 20 20 38 35 54l25 -24l10 10l1 1v0v0l-25 25c16 15 36 26 56 35c21 9 43 14 66 15
-v-34h14h1v34c23 -1 46 -6 67 -15s39 -20 55 -35l-24 -25l11 -11l25 25c15 -16 26 -35 35 -55c9 -21 14 -43 15 -66h-30v-1zM272 160c0 10 -3 20 -9 28l63 76l-2 1l-73 -65c-8 5 -17 8 -27 8c-26 0 -48 -22 -48 -48c0 -10 3 -20 9 -28l-12 -12l11 -11l13 12c8 -5 17 -9 27 -9
-c26 0 48 22 48 48zM224 384c124 0 224 -100 224 -224c0 -57 -21 -108 -56 -148c-4 -4 -7 -8 -11 -12h-23c-32 39 -80 64 -134 64s-102 -25 -134 -64h-23c-4 4 -7 8 -11 12c-35 40 -56 91 -56 148c0 124 100 224 224 224zM379 27c34 37 52 86 52 136c0 55 -22 106 -61 145
-s-91 60 -146 60s-107 -21 -146 -60s-61 -90 -61 -145c0 -50 18 -99 52 -136l10 -10l1 -1v1l9 9l1 1v0c17 17 38 30 60 39c24 10 48 15 74 15s50 -5 74 -15c22 -9 43 -22 60 -39v0l1 -1l9 -9v-1l1 1zM192 160c0 21 11 32 32 32s32 -11 32 -32s-11 -32 -32 -32s-32 11 -32 32z
-" />
- <glyph glyph-name="ion-ios-star-half" unicode="&#xf4b1;"
-d="M140 143l-140 98h171l53 159l53 -159h171l-140 -98l54 -159l-138 99l-138 -99zM224 347v-244l107 -76l-43 122l108 75h-131z" />
- <glyph glyph-name="ion-ios-star-outline" unicode="&#xf4b2;"
-d="M448 241l-140 -98l54 -159l-138 99l-138 -99l54 159l-140 98h171l53 159l53 -159h171zM331 27l-43 122l108 75h-131l-41 123l-41 -123h-131l108 -75l-43 -122l107 76z" />
- <glyph glyph-name="ion-ios-star" unicode="&#xf4b3;"
-d="M448 241l-140 -98l54 -159l-138 99l-138 -99l54 159l-140 98h171l53 159l53 -159h171z" />
- <glyph glyph-name="ion-ios-stopwatch-outline" unicode="&#xf4b4;" horiz-adv-x="384"
-d="M334 301c32 -35 50 -80 50 -128c0 -104 -86 -189 -192 -189s-192 85 -192 189c0 48 18 94 51 129l1 1h-18l-8 -8l-23 23l41 40l23 -22l-9 -9v-18c31 30 72 50 116 53h2v38h32v-38c43 -4 82 -21 113 -49l5 -5v19l-9 9l23 22l41 -40l-22 -23l-9 8h-18zM192 2
-c96 0 173 77 173 171s-77 171 -173 171c-95 0 -173 -77 -173 -171s77 -171 173 -171zM200 191c14 -4 24 -17 24 -31c0 -15 -10 -26 -24 -30l-8 -18v0l-8 18c-14 4 -24 15 -24 30c0 14 12 27 24 31v129h16v-129z" />
- <glyph glyph-name="ion-ios-stopwatch" unicode="&#xf4b5;" horiz-adv-x="384"
-d="M334 301c32 -35 50 -80 50 -128c0 -104 -86 -189 -192 -189s-192 85 -192 189c0 48 18 94 51 129l1 1h-18l-8 -8l-23 23l41 40l23 -22l-9 -9v-18c31 30 72 50 116 53h2v38h32v-38c43 -4 82 -21 113 -49l5 -5v19l-9 9l23 22l41 -40l-22 -23l-9 8h-18zM200 130
-c14 4 24 15 24 30c0 14 -10 27 -24 31v129h-16v-129c-12 -4 -24 -17 -24 -31c0 -15 10 -26 24 -30l8 -18z" />
- <glyph glyph-name="ion-ios-sunny-outline" unicode="&#xf4b6;" horiz-adv-x="320"
-d="M151 296v56h18v-56h-18zM151 32v60h18v-60h-18zM264 183v18h56v-18h-56zM0 183v18h60v-18h-60zM240 130l34 -34l-12 -12l-33 34zM64 306l34 -33l-12 -12l-34 34zM229 272l33 34l12 -12l-34 -33zM52 96l34 34l11 -12l-33 -34zM160 116c-42 0 -76 34 -76 76s34 76 76 76
-s76 -34 76 -76s-34 -76 -76 -76zM160 251c-32 0 -59 -27 -59 -59s27 -59 59 -59s59 27 59 59s-27 59 -59 59z" />
- <glyph glyph-name="ion-ios-sunny" unicode="&#xf4b7;" horiz-adv-x="320"
-d="M151 296v56h18v-56h-18zM151 32v60h18v-60h-18zM264 183v18h56v-18h-56zM0 183v18h60v-18h-60zM240 130l34 -34l-12 -12l-33 34zM64 306l34 -33l-12 -12l-34 34zM229 272l33 34l12 -12l-34 -33zM52 96l34 34l11 -12l-33 -34zM160 116c-42 0 -76 34 -76 76s34 76 76 76
-s76 -34 76 -76s-34 -76 -76 -76z" />
- <glyph glyph-name="ion-ios-telephone-outline" unicode="&#xf4b8;" horiz-adv-x="352"
-d="M336 112c16 -16 26 -35 0 -66c-25 -30 -42 -30 -64 -30c-24 0 -58 14 -93 40c-32 23 -46 34 -78 67c-34 35 -55 64 -79 107c-27 50 -24 74 -18 92c4 12 14 24 28 33l1 1c6 4 18 12 32 12c13 0 24 -6 34 -18l1 -1c11 -14 24 -31 32 -47c10 -21 10 -38 -1 -53
-c-9 -12 -12 -19 -12 -23s5 -9 13 -18l1 -1c16 -18 20 -23 26 -29c1 -1 3 -2 4 -3l2 -2c7 -7 11 -12 29 -28l1 -1c7 -6 9 -8 12 -8c5 0 16 7 29 15c4 3 11 5 17 5c27 0 68 -29 83 -44zM324 57c19 22 13 31 1 43c-13 14 -50 39 -72 39c-3 0 -6 -1 -8 -2
-c-19 -12 -28 -18 -37 -18s-15 6 -23 13h-1c-19 16 -23 21 -30 29l-2 2c-1 1 -3 2 -4 3c-6 6 -11 12 -27 30v1c-10 11 -17 18 -18 28s5 20 16 34c15 20 -5 48 -31 79l-1 1c-7 8 -14 12 -22 12c-10 0 -18 -6 -23 -9c-1 0 -2 -1 -2 -1c-11 -7 -18 -16 -21 -24
-c-5 -16 -7 -35 17 -79c23 -42 43 -70 76 -104c31 -32 45 -42 76 -64c32 -23 64 -38 84 -38c21 0 32 1 52 25z" />
- <glyph glyph-name="ion-ios-telephone" unicode="&#xf4b9;" horiz-adv-x="352"
-d="M336 112c16 -16 26 -35 0 -66c-25 -30 -42 -30 -64 -30c-24 0 -58 14 -93 40c-32 23 -46 34 -78 67c-34 35 -55 64 -79 107c-27 50 -24 74 -18 92c4 12 14 24 28 33l1 1c6 4 18 12 32 12c13 0 24 -6 34 -18l1 -1c11 -14 24 -31 32 -47c10 -21 10 -38 -1 -53
-c-9 -12 -12 -19 -12 -23s5 -9 13 -18l1 -1c16 -18 20 -23 26 -29c1 -1 3 -2 4 -3l2 -2c7 -7 11 -12 29 -28l1 -1c7 -6 9 -8 12 -8c5 0 16 7 29 15c4 3 11 5 17 5c27 0 68 -29 83 -44z" />
- <glyph glyph-name="ion-ios-tennisball-outline" unicode="&#xf4ba;" horiz-adv-x="416"
-d="M416 192v-8v0c0 -5 0 -11 -1 -16v0c-11 -97 -90 -174 -187 -183v0h-4h-2s-1 -1 -2 -1h-3h-1h-8c-115 0 -208 93 -208 208s93 208 208 208s208 -93 208 -208zM399 192c0 105 -86 191 -191 191c-3 0 -5 -1 -8 -1c1 -24 6 -46 15 -68c10 -26 26 -49 46 -69s43 -36 69 -46
-c22 -9 44 -14 68 -15c0 3 1 5 1 8zM17 192c0 -105 86 -191 191 -191h4c-1 22 -7 45 -15 66c-10 26 -26 48 -46 68s-42 36 -68 46c-21 8 -44 14 -66 15v-4zM228 2c88 9 158 78 169 166c-54 3 -106 25 -147 66s-63 93 -66 147c-88 -11 -157 -81 -166 -169
-c53 -3 105 -25 145 -65s62 -92 65 -145z" />
- <glyph glyph-name="ion-ios-tennisball" unicode="&#xf4bb;" horiz-adv-x="416"
-d="M0 196v0v0v0zM212 -16h1h-1v0zM208 400c115 0 208 -93 208 -208c0 -8 0 -16 -1 -24v0v0c-11 -97 -90 -174 -187 -183v0v0c-6 -1 -13 -1 -20 -1c-115 0 -208 93 -208 208v4v0v0c0 6 0 11 1 16v0v0c9 97 86 176 183 187v0v0c6 1 11 1 16 1v0v0h8zM83 181
-c26 -10 48 -26 68 -46s36 -42 46 -68c8 -21 14 -44 15 -66c5 0 11 0 16 1c-3 53 -25 105 -65 145s-92 62 -145 65c-1 -5 -1 -11 -1 -16c22 -1 45 -7 66 -15zM250 234c41 -41 93 -63 147 -66c1 5 1 11 1 16c-24 1 -46 6 -68 15c-26 10 -49 26 -69 46s-36 43 -46 69
-c-9 22 -14 44 -15 68c-5 0 -11 0 -16 -1c3 -54 25 -106 66 -147z" />
- <glyph glyph-name="ion-ios-thunderstorm-outline" unicode="&#xf4bc;" horiz-adv-x="274"
-d="M193 176l-88 -128l29 96h-52l15 80h72l-16 -48h40zM209 275c36 0 65 -29 65 -65s-29 -66 -65 -66h-8v17h8c27 0 49 22 49 49s-22 50 -49 50h-6l-14 -2l-3 14c-3 14 -11 26 -22 35s-25 13 -39 13c-34 0 -63 -27 -63 -62v-12s1 -9 1 -9c-5 0 -12 -2 -14 -2
-c-19 -3 -33 -18 -33 -37c0 -10 3 -19 10 -26s16 -11 26 -11h11v-17h-11c-28 0 -52 24 -52 53c0 27 21 51 47 53v8c0 43 35 78 78 78c37 0 68 -26 76 -61h8z" />
- <glyph glyph-name="ion-ios-thunderstorm" unicode="&#xf4bd;" horiz-adv-x="274"
-d="M153 176h40l-22 -32l-66 -96l29 96h-52l15 80h72zM84 240h107l-16 -48h18h30l-33 -48h19c36 0 65 30 65 66s-29 65 -65 65h-8c-8 35 -39 61 -76 61c-43 0 -78 -35 -78 -78v-8c-26 -2 -47 -26 -47 -53c0 -29 24 -53 52 -53h14z" />
- <glyph glyph-name="ion-ios-time-outline" unicode="&#xf4be;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM371 45c19 19 35 41 45 66c11 26 16 53 16 81s-5 55 -16 81c-10 25 -26 47 -45 66s-41 35 -66 45c-26 11 -53 16 -81 16s-55 -5 -81 -16c-25 -10 -47 -26 -66 -45
-s-35 -41 -45 -66c-11 -26 -16 -53 -16 -81s5 -55 16 -81c10 -25 26 -47 45 -66s41 -35 66 -45c26 -11 53 -16 81 -16s55 5 81 16c25 10 47 26 66 45zM216 368c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM216 16c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM392 192
-c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM40 192c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM128 344c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM304 40c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM368 280c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8
-zM64 104c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM64 280c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM368 104c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM304 344c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM128 40c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8
-s-8 3 -8 8zM238 200c4 -8 2 -18 -6 -22v-122c0 -4 -4 -8 -8 -8s-8 4 -8 8v122c-2 1 -4 4 -6 6c-3 5 -3 11 0 16l-37 63c-2 4 -1 9 3 11s8 1 10 -3l38 -63c5 0 11 -3 14 -8z" />
- <glyph glyph-name="ion-ios-time" unicode="&#xf4bf;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM224 376c-4 0 -8 -4 -8 -8s4 -8 8 -8s8 4 8 8s-4 8 -8 8zM48 184c4 0 8 4 8 8s-4 8 -8 8s-8 -4 -8 -8s4 -8 8 -8zM76 97c4 2 4 7 2 11s-6 5 -10 3s-5 -7 -3 -11s7 -5 11 -3z
-M78 276c2 4 2 9 -2 11s-9 1 -11 -3s-1 -9 3 -11s8 -1 10 3zM132 351c-4 -2 -5 -7 -3 -11s7 -4 11 -2s5 6 3 10s-7 5 -11 3zM143 36c2 4 1 8 -3 10s-9 2 -11 -2s-1 -9 3 -11s9 -1 11 3zM224 8c4 0 8 4 8 8s-4 8 -8 8s-8 -4 -8 -8s4 -8 8 -8zM232 178c8 4 10 14 6 22
-c-3 5 -9 8 -14 8l-38 64c-2 4 -7 4 -11 2s-4 -7 -2 -11l37 -63c-3 -5 -3 -11 0 -16c2 -2 4 -5 6 -6v-122c0 -4 4 -8 8 -8s8 4 8 8v122zM316 33c4 2 5 7 3 11s-7 4 -11 2s-5 -6 -3 -10s7 -5 11 -3zM319 340c2 4 1 9 -3 11s-9 1 -11 -3s-1 -8 3 -10s9 -2 11 2zM383 100
-c2 4 1 9 -3 11s-8 1 -10 -3s-2 -9 2 -11s9 -1 11 3zM380 273c4 2 5 7 3 11s-7 5 -11 3s-4 -7 -2 -11s6 -5 10 -3zM400 184c4 0 8 4 8 8s-4 8 -8 8s-8 -4 -8 -8s4 -8 8 -8z" />
- <glyph glyph-name="ion-ios-timer-outline" unicode="&#xf4c0;" horiz-adv-x="416"
-d="M189 176l-1 2s-89 118 -86 120s121 -85 121 -85c1 -1 1 -2 2 -3c5 -5 8 -11 8 -18c0 -14 -11 -25 -25 -25c-8 0 -14 3 -19 9zM208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208c0 57 23 109 61 147l12 -12c-35 -35 -56 -82 -56 -135
-c0 -106 85 -191 191 -191s191 85 191 191c0 100 -77 183 -175 191v-95h-16v112v0v0z" />
- <glyph glyph-name="ion-ios-timer" unicode="&#xf4c1;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208s-208 93 -208 208s93 208 208 208zM102 298c-2 -2 86 -120 86 -120l1 -1c5 -6 11 -10 19 -10c14 0 25 11 25 25c0 7 -3 13 -8 18l-3 3c0 0 -117 87 -120 85zM208 1c106 0 192 85 192 191s-86 192 -192 192v-96h16v78
-c88 -9 158 -84 158 -174c0 -96 -78 -174 -174 -174s-175 78 -175 174c0 48 19 92 51 124l-11 12c-35 -35 -56 -83 -56 -136c0 -106 85 -191 191 -191z" />
- <glyph glyph-name="ion-ios-toggle-outline" unicode="&#xf4c2;"
-d="M96 128c-26 0 -48 -22 -48 -48s22 -48 48 -48s48 22 48 48s-22 48 -48 48zM96 144v0c35 0 64 -29 64 -64s-29 -64 -64 -64s-64 29 -64 64s29 64 64 64zM351 160v0h-255c-44 0 -80 -36 -80 -80s36 -80 80 -80h256c44 0 80 36 80 80s-37 80 -81 80zM352 176v0
-c53 0 96 -43 96 -96s-43 -96 -96 -96h-256c-53 0 -96 43 -96 96s43 96 96 96h256zM352 352c-26 0 -48 -22 -48 -48s22 -48 48 -48s48 22 48 48s-22 48 -48 48zM352 368v0c35 0 64 -29 64 -64s-29 -64 -64 -64s-64 29 -64 64s29 64 64 64zM97 384v0c-44 0 -81 -36 -81 -80
-s36 -80 80 -80h256c44 0 80 36 80 80s-36 80 -80 80h-255zM96 400v0h256c53 0 96 -43 96 -96s-43 -96 -96 -96h-256c-53 0 -96 43 -96 96s43 96 96 96z" />
- <glyph glyph-name="ion-ios-toggle" unicode="&#xf4c3;"
-d="M96 128c26 0 48 -22 48 -48s-22 -48 -48 -48s-48 22 -48 48s22 48 48 48zM352 176c53 0 96 -43 96 -96s-43 -96 -96 -96h-256c-53 0 -96 43 -96 96s43 96 96 96h256zM96 16c35 0 64 29 64 64s-29 64 -64 64s-64 -29 -64 -64s29 -64 64 -64zM352 256c-26 0 -48 22 -48 48
-s22 48 48 48s48 -22 48 -48s-22 -48 -48 -48zM96 208c-53 0 -96 43 -96 96s43 96 96 96h256c53 0 96 -43 96 -96s-43 -96 -96 -96h-256zM352 368c-35 0 -64 -29 -64 -64s29 -64 64 -64s64 29 64 64s-29 64 -64 64z" />
- <glyph glyph-name="ion-ios-trash-outline" unicode="&#xf4c4;" horiz-adv-x="288"
-d="M288 335v-15h-20l-24 -291c0 -16 -13 -29 -29 -29h-141c-16 0 -29 13 -29 29l-24 291h-21v15h80v20c0 16 13 29 29 29h70c16 0 29 -13 29 -29v-20h80zM95 355v-20h98v20c0 8 -6 14 -14 14h-70c-8 0 -14 -6 -14 -14zM230 30l23 290h-217l23 -290v0v-1c0 -8 7 -14 15 -14
-h141c8 0 15 6 15 14v1v0zM137 47v241h14v-241h-14zM208 288l-11 -241h-14l10 241h15zM94 288l11 -241h-14l-11 241h14z" />
- <glyph glyph-name="ion-ios-trash" unicode="&#xf4c5;" horiz-adv-x="288"
-d="M208 335h80v-15h-20l-24 -291c0 -16 -13 -29 -29 -29h-141c-16 0 -29 13 -29 29l-24 291h-21v15h80v20c0 16 13 29 29 29h70c16 0 29 -13 29 -29v-20zM95 355v0v-20h98v20c0 8 -6 14 -14 14h-70c-8 0 -14 -6 -14 -14zM91 47h14l-11 241h-14zM151 47v241h-14v-241h14z
-M197 47l11 241h-14l-11 -241h14z" />
- <glyph glyph-name="ion-ios-undo-outline" unicode="&#xf4c6;" horiz-adv-x="384"
-d="M384 80v-32h-10l-20 31c-20 33 -44 63 -75 77c-24 11 -47 19 -87 20v-80l-192 128l192 128v-80c63 -3 108 -21 143 -56c52 -53 49 -119 49 -136zM368 87c0 0 9 169 -192 169v65l-148 -97l148 -97v65c91 0 144 -24 192 -105z" />
- <glyph glyph-name="ion-ios-undo" unicode="&#xf4c7;" horiz-adv-x="384"
-d="M384 80v-32h-10l-20 31c-20 33 -44 63 -75 77c-24 11 -47 19 -87 20v-80l-192 128l192 128v-80c63 -3 108 -21 143 -56c52 -53 49 -119 49 -136z" />
- <glyph glyph-name="ion-ios-unlocked-outline" unicode="&#xf4c8;" horiz-adv-x="320"
-d="M160 160c18 0 32 -14 32 -32c0 -15 -10 -27 -24 -31v-33h-16v33c-14 4 -24 16 -24 31c0 18 14 32 32 32zM160 112c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16zM72 224h248v-240h-320v240h56v72c0 57 47 104 104 104s104 -47 104 -104v-8h-16v8
-c0 49 -39 88 -88 88s-88 -39 -88 -88v-72zM304 0v208h-288v-208h288z" />
- <glyph glyph-name="ion-ios-unlocked" unicode="&#xf4c9;" horiz-adv-x="320"
-d="M160 144c9 0 16 -7 16 -16s-7 -16 -16 -16s-16 7 -16 16s7 16 16 16zM72 224h248v-240h-320v240h56v72c0 57 47 104 104 104s104 -47 104 -104v-8h-16v8c0 49 -39 88 -88 88s-88 -39 -88 -88v-72zM168 97c14 4 24 16 24 31c0 18 -14 32 -32 32s-32 -14 -32 -32
-c0 -15 10 -27 24 -31v-33h16v33z" />
- <glyph glyph-name="ion-ios-upload-outline" unicode="&#xf4ca;" horiz-adv-x="320"
-d="M192 304h128v-304h-320v304h128v-16h-112v-272h288v272h-112v16zM97 330l-11 12l74 74l74 -74l-11 -12l-55 55v-243h-16v243z" />
- <glyph glyph-name="ion-ios-upload" unicode="&#xf4cb;" horiz-adv-x="320"
-d="M168 304h152v-304h-320v304h152v-162h16v162zM168 385v-81h-16v81l-55 -55l-11 12l74 74l74 -74l-11 -12z" />
- <glyph glyph-name="ion-ios-videocam-outline" unicode="&#xf4cc;" horiz-adv-x="418"
-d="M257 320c19 0 33 -14 33 -33v-188c0 -19 -14 -35 -33 -35h-221c-19 0 -36 16 -36 35v188c0 19 17 33 36 33h221zM273 99v188c0 9 -8 16 -17 16h-221c-9 0 -18 -7 -18 -16v-188c0 -9 10 -18 19 -18h221c9 0 16 9 16 18zM320 235l98 53v-192l-98 53v86zM401 258v0l-64 -33
-v-66l64 -33v132z" />
- <glyph glyph-name="ion-ios-videocam" unicode="&#xf4cd;" horiz-adv-x="418"
-d="M257 320c19 0 33 -14 33 -33v-188c0 -19 -14 -35 -33 -35h-221c-19 0 -36 16 -36 35v188c0 19 17 33 36 33h221zM320 235l98 53v-192l-98 53v86z" />
- <glyph glyph-name="ion-ios-volume-high" unicode="&#xf4ce;" horiz-adv-x="320"
-d="M278 320c26 -36 42 -80 42 -128s-16 -92 -42 -128l-14 10c24 33 39 74 39 118s-15 85 -39 118zM224 96l-14 10c18 24 29 54 29 86s-11 62 -29 86l14 10c20 -27 32 -60 32 -96s-12 -69 -32 -96zM177 128l-13 10c12 15 18 34 18 54s-6 39 -18 54l13 10
-c14 -18 22 -40 22 -64s-8 -46 -22 -64zM58 232l70 56v-192l-70 56h-58v80h58z" />
- <glyph glyph-name="ion-ios-volume-low" unicode="&#xf4cf;" horiz-adv-x="128"
-d="M58 232l70 56v-192l-70 56h-58v80h58z" />
- <glyph glyph-name="ion-ios-wineglass-outline" unicode="&#xf4d0;" horiz-adv-x="192"
-d="M104 139v-155h72v-16h-80h-80v16h72v155c0 22 -20 39 -40 55c-8 6 -16 13 -22 19c-27 28 -26 52 -26 71v4c0 44 31 125 32 128h64h64c1 -3 32 -84 32 -128v-4c0 -19 1 -43 -26 -71c-6 -6 -14 -13 -22 -19c-20 -16 -40 -33 -40 -55zM43 400c-5 -16 -20 -63 -25 -96h156
-c-5 33 -20 80 -25 96h-53h-53zM96 175c3 0 5 0 7 2v0c9 11 20 20 31 29c8 6 15 12 20 18c22 23 22 41 22 60v4h-160v-4c0 -19 0 -37 22 -60c5 -6 12 -12 20 -18c11 -9 22 -18 31 -29v0c2 -2 4 -2 7 -2z" />
- <glyph glyph-name="ion-ios-wineglass" unicode="&#xf4d1;" horiz-adv-x="192"
-d="M104 139v-155h72v-16h-80h-80v16h72v155c0 22 -20 39 -40 55c-8 6 -16 13 -22 19c-27 28 -26 52 -26 71v4c0 44 31 125 32 128h64h64c1 -3 32 -84 32 -128v-4c0 -19 1 -43 -26 -71c-6 -6 -14 -13 -22 -19c-20 -16 -40 -33 -40 -55zM43 400c-5 -16 -20 -63 -25 -96h156
-c-5 33 -20 80 -25 96h-53h-53z" />
- <glyph glyph-name="ion-ios-world-outline" unicode="&#xf4d2;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208v0v0v0c-115 0 -208 93 -208 208s93 208 208 208v0v0v0zM216 276v-76h75c-1 31 -5 60 -11 84c-21 -5 -42 -7 -64 -8zM216 292c20 1 41 3 60 8c-14 46 -38 76 -60 82v-90zM200 382c-23 -6 -45 -36 -60 -82
-c19 -5 39 -7 60 -8v90zM200 276c-22 1 -44 3 -65 8c-6 -24 -10 -53 -11 -84h76v76zM108 200c1 32 4 62 11 88c-21 6 -41 15 -59 25c-26 -31 -41 -70 -43 -113h91zM108 184h-91c2 -43 17 -82 43 -113c19 10 38 19 59 25c-7 26 -10 56 -11 88zM124 184c1 -31 5 -60 11 -84
-c21 5 43 8 65 9v75h-76zM200 92c-21 -1 -41 -3 -60 -8c15 -46 37 -76 60 -82v90zM216 2c22 6 46 36 60 82c-19 5 -40 7 -60 8v-90zM216 109c22 -1 43 -4 64 -9c6 24 10 53 11 84h-75v-75zM308 184c-1 -32 -5 -62 -12 -88c21 -6 41 -15 60 -25c26 31 41 70 43 113h-91z
-M308 200v0h91c-2 43 -17 82 -43 113c-19 -10 -38 -19 -59 -25c7 -26 10 -56 11 -88zM344 326c-25 25 -56 44 -91 52c16 -17 29 -43 39 -74c18 6 35 13 52 22zM163 378c-35 -8 -67 -27 -91 -52c16 -9 34 -15 52 -21c10 31 23 56 39 73zM72 58c25 -25 56 -44 91 -52
-c-16 17 -30 43 -40 74c-18 -6 -35 -13 -51 -22zM253 6c35 8 66 27 91 52c-17 9 -34 16 -52 22c-10 -31 -23 -57 -39 -74z" />
- <glyph glyph-name="ion-ios-world" unicode="&#xf4d3;" horiz-adv-x="416"
-d="M208 400c115 0 208 -93 208 -208s-93 -208 -208 -208v0v0v0c-115 0 -208 93 -208 208s93 208 208 208v0v0v0zM208 1c106 0 191 85 191 191s-85 191 -191 191v0v0v0c-106 0 -191 -85 -191 -191s86 -191 191 -191v0v0v0zM274 276c6 -22 9 -48 10 -76h-68v68c20 1 39 4 58 8
-zM216 366c20 -6 41 -34 54 -75c-17 -4 -36 -6 -54 -7v82zM145 291c13 42 35 69 55 75v-82c-19 1 -37 3 -55 7zM333 315c-15 -8 -31 -15 -48 -20c-9 29 -21 52 -36 67c32 -8 61 -24 84 -47zM299 200c-1 29 -4 56 -10 80c19 6 37 14 54 23c23 -28 38 -64 40 -103h-84zM132 200
-c1 28 3 54 9 76c19 -5 39 -7 59 -8v-68h-68zM284 184c-1 -28 -4 -54 -10 -76c-19 5 -38 7 -58 8v68h68zM141 108c-6 22 -8 48 -9 76h68v-68c-20 -1 -40 -3 -59 -8zM200 18c-20 6 -42 33 -55 75c18 4 36 6 55 7v-82zM249 22c15 15 27 38 36 67c17 -5 33 -11 48 -19
-c-23 -23 -52 -40 -84 -48zM167 362c-15 -15 -27 -39 -36 -67c-16 5 -33 11 -48 19c22 23 52 40 84 48zM289 104c6 24 9 51 10 80h84c-2 -39 -17 -75 -40 -103c-17 9 -35 17 -54 23zM216 100c18 -1 37 -3 54 -7c-13 -42 -34 -69 -54 -75v82zM127 280c-6 -24 -11 -51 -11 -80
-h-83c2 39 17 75 40 103c17 -9 35 -17 54 -23zM116 184c1 -29 4 -56 10 -80c-19 -6 -36 -14 -53 -23c-23 28 -38 64 -40 103h83zM83 70c15 8 32 14 48 19c9 -28 21 -52 36 -67c-32 8 -62 25 -84 48z" />
- <glyph glyph-name="ion-ipad" unicode="&#xf1f9;" horiz-adv-x="288"
-d="M0 375c0 5 4 9 9 9h270c5 0 9 -4 9 -9v-366c0 -5 -4 -9 -9 -9h-270c-5 0 -9 4 -9 9v366zM144 10c8 0 14 6 14 14s-7 14 -14 14c-8 0 -14 -6 -14 -14s6 -14 14 -14zM32 329v-275c0 -4 3 -6 6 -6h211c3 0 7 2 7 6v275c0 4 -4 7 -7 7h-211c-3 0 -6 -3 -6 -7z" />
- <glyph glyph-name="ion-iphone" unicode="&#xf1fa;" horiz-adv-x="192"
-d="M168 384c13 0 24 -11 24 -24v-336c0 -13 -11 -24 -24 -24h-144c-13 0 -24 11 -24 24v336c0 13 11 24 24 24h144zM80 348v0c0 -2 2 -4 4 -4h24c2 0 4 2 4 4v0c0 2 -2 4 -4 4h-24c-2 0 -4 -2 -4 -4zM68 352c-2 0 -4 -2 -4 -4s2 -4 4 -4s4 2 4 4s-2 4 -4 4zM96 16
-c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16zM176 64v256h-160v-256h160z" />
- <glyph glyph-name="ion-ipod" unicode="&#xf1fb;" horiz-adv-x="224"
-d="M112 137c18 0 32 -14 32 -32s-14 -32 -32 -32s-32 14 -32 32s14 32 32 32zM196 384c15 0 28 -12 28 -28v-328c0 -16 -13 -28 -28 -28h-168c-15 0 -28 12 -28 28v328c0 16 13 28 28 28h168zM112 32c40 0 72 32 72 72s-32 72 -72 72s-72 -32 -72 -72s32 -72 72 -72z
-M192 221v118c-1 7 -6 12 -12 13h-136c-7 -1 -12 -7 -12 -15v-114c0 -8 6 -15 14 -15h131c8 0 14 5 15 13z" />
- <glyph glyph-name="ion-jet" unicode="&#xf295;" horiz-adv-x="326"
-d="M222 80l-2 -13l53 -58l-18 -27l-74 9l-18 -55l-19 55l-73 -9l-18 27l53 58l-2 13l-104 -35l3 53l114 103s26 173 28 192c5 40 18 55 18 55s13 -15 18 -55c2 -19 28 -192 28 -192l114 -103l3 -53z" />
- <glyph glyph-name="ion-key" unicode="&#xf296;" horiz-adv-x="192"
-d="M144 147c28 -17 48 -48 48 -83c0 -53 -43 -96 -96 -96s-96 43 -96 96c0 36 19 67 48 84c0 0 7 16 12 41c0 4 11 6 11 12v20c0 5 -7 9 -7 11v8v8c0 2 0 4 1 6c0 1 1 1 1 2l2 1l4 4v1c2 2 3 4 3 6c0 1 1 8 1 9c0 3 -2 6 -4 8l-1 1l-4 4v0l-1 1v0c-2 2 -3 5 -3 8v7
-c0 3 2 7 4 9v0l5 5v0c2 2 4 3 4 6v24c0 3 -2 6 -4 8v1l-4 4l-1 1c-2 2 -3 5 -3 8v18c0 11 0 19 9 23c3 1 14 3 23 3c20 0 30 -8 32 -36c0 0 7 -81 9 -143s7 -90 7 -90zM96 0c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32z" />
- <glyph glyph-name="ion-knife" unicode="&#xf297;" horiz-adv-x="64"
-d="M62 416c2 0 2 -1 2 -6v-412c0 -15 -10 -30 -24 -30v0v0c-14 0 -24 15 -24 30c1 19 14 83 16 130v0c1 30 -32 31 -32 70c0 134 35 191 54 214c2 2 5 4 8 4z" />
- <glyph glyph-name="ion-laptop" unicode="&#xf1fc;" horiz-adv-x="512"
-d="M480 342v-262h-448v262c0 6 4 10 10 10h428c6 0 10 -4 10 -10zM448 112v208h-384v-208h384zM0 59v5h512v-5c-70 -20 -116 -27 -256 -27s-186 7 -256 27z" />
- <glyph glyph-name="ion-leaf" unicode="&#xf1fd;" horiz-adv-x="422"
-d="M412 69c18 -3 10 -41 -5 -39c0 0 -21 -1 -63 12c0 0 -16 -19 -39 -30c-26 -12 -118 -33 -197 38c-108 97 -120 354 -100 333c86 -90 197 -47 270 -106c55 -44 88 -127 77 -192c0 0 5 -8 57 -16zM316 65c5 5 10 16 10 24c-161 52 -252 160 -252 160s104 -143 242 -184z
-" />
- <glyph glyph-name="ion-levels" unicode="&#xf298;" horiz-adv-x="350"
-d="M46 349c11 -5 18 -16 18 -29s-7 -24 -18 -29v-275c0 -9 -7 -16 -16 -16s-16 7 -16 16v278c-8 6 -14 15 -14 26s6 20 14 26v22c0 9 7 16 16 16s16 -7 16 -16v-19zM142 155c9 -6 15 -16 15 -27s-6 -21 -15 -27v-85c0 -9 -7 -16 -16 -16s-16 7 -16 16v84
-c-10 5 -17 16 -17 28s7 23 17 28v212c0 9 7 16 16 16s16 -7 16 -16v-213zM238 285c10 -6 16 -16 16 -28s-6 -22 -16 -28v-213c0 -9 -7 -16 -16 -16s-16 7 -16 16v213c-10 6 -16 16 -16 28s6 22 16 28v83c0 9 7 16 16 16s16 -7 16 -16v-83zM350 65c0 -12 -6 -22 -16 -28v-21
-c0 -9 -7 -16 -16 -16s-16 7 -16 16v21c-10 6 -16 16 -16 28s6 22 16 28v275c0 9 7 16 16 16s16 -7 16 -16v-275c10 -6 16 -16 16 -28z" />
- <glyph glyph-name="ion-lightbulb" unicode="&#xf299;" horiz-adv-x="256"
-d="M128 416c71 0 128 -56 128 -124c0 -5 0 -9 -1 -14s-2 -11 -3 -16v-2c-17 -63 -45 -71 -59 -167v-1c-2 -9 -10 -12 -20 -12h-90c-10 0 -18 3 -20 12v1c-14 96 -42 104 -59 167v2c-1 5 -2 11 -3 16s-1 9 -1 14c0 68 57 124 128 124zM190 52v-1c-2 -3 -3 -4 -3 -7s1 -5 3 -8
-v-1c1 -2 2 -3 2 -5s-1 -4 -2 -6v-1c-2 -3 -3 -4 -3 -7s1 -5 3 -8v-1c1 -2 2 -4 2 -6c0 -5 -4 -9 -10 -11h-1c-6 -1 -13 -2 -19 -3h-2c-6 -1 -11 -5 -14 -9v0c-4 -5 -10 -10 -18 -10s-15 6 -19 11v0c-3 4 -7 7 -13 8h-2c-6 1 -13 2 -19 3h-1c-6 2 -10 6 -10 11c0 2 1 4 2 6v1
-c2 2 3 4 3 7s-1 5 -3 8v1c-1 2 -2 4 -2 6s1 3 2 5v1c2 3 3 5 3 8s-1 4 -3 7v1v0c-1 2 -2 4 -2 6c0 4 -1 6 7 6h114c8 0 7 -2 7 -6c0 -2 -1 -4 -2 -6v0z" />
- <glyph glyph-name="ion-link" unicode="&#xf1fe;" horiz-adv-x="384"
-d="M192 240v0v0v0zM304 288c44 0 80 -36 80 -80v-32c0 -44 -36 -80 -80 -80h-112c-33 0 -60 20 -73 48c-4 10 -7 20 -7 32v32h48v-32c0 -18 14 -32 32 -32h112c18 0 32 14 32 32v32c0 18 -14 32 -32 32v0h-16c-6 31 -32 48 -32 48h48zM266 240c4 -10 6 -21 6 -32v-32v0h-48
-v0v32c0 18 -14 32 -32 32v0h-112c-18 0 -32 -14 -32 -32v-32c0 -18 14 -32 32 -32h16c6 -31 32 -48 32 -48h-48c-44 0 -80 36 -80 80v32c0 44 36 80 80 80h112c33 0 62 -20 74 -48z" />
- <glyph glyph-name="ion-load-a" unicode="&#xf29a;" horiz-adv-x="384"
-d="M144 352c0 43 21 64 64 64s64 -21 64 -64s-21 -64 -64 -64s-64 21 -64 64zM0 192c0 32 16 48 48 48s48 -16 48 -48s-16 -48 -48 -48s-48 16 -48 48zM312 304c0 5 3 8 8 8s8 -3 8 -8s-3 -8 -8 -8s-8 3 -8 8zM132 340c10 -10 15 -22 15 -36s-5 -26 -15 -36s-22 -15 -36 -15
-s-26 5 -36 15s-15 22 -15 36s5 26 15 36s22 15 36 15s26 -5 36 -15zM352 192c0 11 5 16 16 16s16 -5 16 -16s-5 -16 -16 -16s-16 5 -16 16zM297 79c0 16 8 24 24 24s24 -8 24 -24s-8 -24 -24 -24s-24 8 -24 24zM176 32c0 21 11 32 32 32s32 -11 32 -32s-11 -32 -32 -32
-s-32 11 -32 32zM56 80c0 27 13 40 40 40s40 -13 40 -40s-13 -40 -40 -40s-40 13 -40 40z" />
- <glyph glyph-name="ion-load-b" unicode="&#xf29b;"
-d="M256 288c0 -18 -14 -32 -32 -32v0c-18 0 -32 14 -32 32v96c0 18 14 32 32 32v0c18 0 32 -14 32 -32v-96zM224 128v0c18 0 32 -14 32 -32v-96c0 -18 -14 -32 -32 -32s-32 14 -32 32v96c0 18 14 32 32 32zM416 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32h-96
-c-18 0 -32 14 -32 32s14 32 32 32h96zM128 224v0c18 0 32 -14 32 -32s-14 -32 -32 -32h-96c-18 0 -32 14 -32 32s14 32 32 32h96zM314 237c-12 -12 -33 -12 -45 0v0c-12 12 -12 34 0 46l68 67c12 12 33 12 45 0v0c12 -12 12 -33 0 -45zM179 147v0c12 -12 12 -33 0 -46
-l-68 -67c-12 -12 -33 -12 -45 0s-12 33 0 45l67 68c12 12 34 12 46 0zM382 79v0c12 -12 12 -33 0 -45s-33 -12 -45 0l-68 68c-12 12 -12 33 0 45s33 12 45 0zM179 282v0c12 -12 12 -33 0 -45s-34 -12 -46 0l-67 68c-12 12 -12 33 0 45s33 12 45 0z" />
- <glyph glyph-name="ion-load-c" unicode="&#xf29c;"
-d="M448 222c0 -3 0 -6 -1 -9c-4 -8 -15 -12 -23 -7c-4 2 -6 7 -7 11c-1 5 -1 9 -2 14c-4 20 -12 40 -22 58c-12 21 -28 41 -47 56c-18 15 -40 26 -62 33c-21 6 -42 9 -64 9h-4c-3 0 -6 -1 -9 -1c-6 0 -14 -1 -20 -2c-13 -2 -25 -6 -37 -11c-21 -8 -40 -20 -57 -35
-s-31 -33 -42 -52c-12 -22 -20 -45 -24 -70c-2 -11 -2 -23 -2 -34c0 -6 0 -11 1 -16c1 -6 2 -13 3 -19c5 -24 14 -47 28 -67c13 -20 29 -38 48 -52c20 -15 42 -26 65 -33c25 -7 50 -9 76 -7c25 2 50 9 73 20c11 5 22 12 32 19s19 15 27 24c4 4 8 9 12 14s7 10 10 15
-c6 10 12 20 17 31c4 8 8 16 11 25c2 4 3 9 4 13s1 7 2 11c1 -9 1 -18 -1 -26c-1 -5 -2 -11 -4 -16c-1 -5 -3 -10 -5 -15c-4 -10 -8 -19 -13 -28c-6 -11 -12 -21 -20 -30s-16 -18 -25 -26c-18 -15 -40 -27 -62 -36c-23 -9 -48 -14 -73 -15s-51 3 -75 11c-23 7 -45 19 -65 33
-c-19 14 -36 31 -50 50c-7 10 -13 20 -18 31s-9 21 -13 33c-6 18 -9 37 -10 56c-1 20 1 39 5 58c5 24 15 47 28 68c12 19 26 35 42 50s35 27 55 36c23 11 48 19 74 21c10 1 19 1 29 1c13 0 26 -2 38 -4c24 -5 47 -14 68 -26s41 -29 57 -48c15 -18 27 -37 36 -58
-c4 -10 7 -21 10 -32c2 -8 5 -17 6 -26z" />
- <glyph glyph-name="ion-load-d" unicode="&#xf29d;" horiz-adv-x="384"
-d="M368 208c9 0 16 -7 16 -16s-7 -16 -16 -16h-80c-9 0 -16 7 -16 16s7 16 16 16h80zM112 192c0 -9 -7 -16 -16 -16h-80c-9 0 -16 7 -16 16s7 16 16 16h80c9 0 16 -7 16 -16zM192 112c9 0 16 -7 16 -16v-80c0 -9 -7 -16 -16 -16s-16 7 -16 16v80c0 9 7 16 16 16zM192 384
-c9 0 16 -7 16 -16v-80c0 -9 -7 -16 -16 -16s-16 7 -16 16v80c0 9 7 16 16 16zM261 232c-4 8 -2 18 6 22l69 40c8 4 18 2 22 -6s2 -18 -6 -22l-69 -40c-8 -4 -18 -2 -22 6zM123 152c4 -8 2 -18 -6 -22l-69 -40c-8 -4 -18 -2 -22 6s-2 18 6 22l69 40c8 4 18 2 22 -6zM254 117
-l40 -69c4 -8 2 -18 -6 -22s-18 -2 -22 6l-40 69c-4 8 -2 18 6 22s18 2 22 -6zM118 352l40 -69c4 -8 2 -18 -6 -22s-18 -2 -22 6l-40 69c-4 8 -2 18 6 22s18 2 22 -6zM232 261c-8 4 -10 14 -6 22l40 69c4 8 14 10 22 6s10 -14 6 -22l-40 -69c-4 -8 -14 -10 -22 -6zM152 123
-c8 -4 10 -14 6 -22l-40 -69c-4 -8 -14 -10 -22 -6s-10 14 -6 22l40 69c4 8 14 10 22 6zM352 118c8 -4 10 -14 6 -22s-14 -10 -22 -6l-69 40c-8 4 -10 14 -6 22s14 10 22 6zM32 266c-8 4 -10 14 -6 22s14 10 22 6l69 -40c8 -4 10 -14 6 -22s-14 -10 -22 -6z" />
- <glyph glyph-name="ion-location" unicode="&#xf1ff;" horiz-adv-x="239"
-d="M119 384c66 0 120 -54 120 -120c0 -115 -120 -264 -120 -264s-119 149 -119 264c0 66 53 120 119 120zM119 206c31 0 57 25 57 56s-26 57 -57 57s-56 -26 -56 -57s25 -56 56 -56z" />
- <glyph glyph-name="ion-lock-combination" unicode="&#xf4d4;" horiz-adv-x="384"
-d="M320 271c39 -35 64 -86 64 -143c0 -106 -86 -192 -192 -192s-192 86 -192 192c0 57 25 108 64 143v49c0 71 57 128 128 128s128 -57 128 -128v-49zM96 320v-26c28 16 61 26 96 26s68 -10 96 -26v26c0 53 -43 96 -96 96s-96 -43 -96 -96zM192 -32c88 0 160 72 160 160
-s-72 160 -160 160s-160 -72 -160 -160s72 -160 160 -160zM192 272c80 0 144 -64 144 -144s-64 -144 -144 -144s-144 64 -144 144s64 144 144 144zM315 95c2 9 4 18 4 29h-7v7h8c0 11 -2 20 -5 30l-25 -7l-4 12l25 8c-4 10 -8 18 -14 26l-11 -8l-4 6l11 8c-6 8 -13 16 -21 22
-l-15 -21l-11 8l15 20c-8 6 -17 11 -27 14l-4 -13l-6 2l5 13c-9 3 -20 5 -29 5v-13v-6h-16v6v13c-11 -1 -19 -2 -29 -5l4 -12l-6 -2l-4 12c-10 -3 -19 -8 -27 -14l15 -20l-10 -8l-15 21c-8 -6 -16 -14 -22 -22l11 -8l-4 -5l-10 8c-6 -8 -10 -17 -14 -27l24 -8l-5 -12l-25 7
-c-3 -10 -3 -19 -3 -30h6v-7h-5c0 -11 2 -20 4 -29l24 7l4 -12l-24 -8c4 -10 8 -19 14 -27l9 7l4 -5l-9 -7c6 -8 13 -16 21 -22l15 21l10 -8l-15 -20c8 -5 17 -11 27 -14l3 11l7 -2l-4 -11c10 -3 18 -4 29 -5v13v6h16v-6v-13c9 1 19 2 29 5l-5 12l6 2l4 -12c10 3 19 8 27 14
-l-15 20l11 8l15 -21c8 6 15 14 21 22l-11 7l4 6l10 -8c6 8 11 17 15 27l-25 8l4 12zM111 128c0 54 27 81 81 81s81 -27 81 -81s-27 -81 -81 -81s-81 27 -81 81z" />
- <glyph glyph-name="ion-locked" unicode="&#xf200;" horiz-adv-x="384"
-d="M22 -32c-12 0 -22 10 -22 22v212c0 12 10 22 22 22h3h19v31c0 42 17 87 43 115s64 46 105 46v0v0c41 0 79 -18 105 -46s43 -73 43 -115v-31h22c12 0 22 -10 22 -22v-212c0 -12 -10 -22 -22 -22h-340zM97 255v-31h17h155h18v31c0 27 -10 61 -28 80v0v1
-c-18 19 -42 29 -67 29v0v0c-25 0 -49 -10 -67 -29v-1v0c-18 -19 -28 -53 -28 -80z" />
- <glyph glyph-name="ion-log-in" unicode="&#xf29e;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224c-96 0 -177 60 -209 144h34c9 -20 23 -40 39 -56c36 -36 85 -56 136 -56s100 20 136 56s56 85 56 136s-20 100 -56 136s-85 56 -136 56s-100 -20 -136 -56c-16 -16 -30 -36 -39 -56h-34c32 84 113 144 209 144z
-M175 124l52 52h-227v32h227l-52 52l22 23l91 -91l-91 -91z" />
- <glyph glyph-name="ion-log-out" unicode="&#xf29f;"
-d="M335 124l52 52h-227v32h227l-52 52l22 23l91 -91l-91 -91zM359 56c3 3 6 5 8 8h41c-40 -58 -108 -96 -184 -96c-124 0 -224 100 -224 224s100 224 224 224c76 0 144 -38 184 -96h-41c-2 3 -5 5 -8 8c-36 36 -84 56 -135 56s-100 -20 -136 -56s-56 -85 -56 -136
-s20 -100 56 -136s85 -56 136 -56s99 20 135 56z" />
- <glyph glyph-name="ion-loop" unicode="&#xf201;" horiz-adv-x="334"
-d="M184 148v-58c49 8 86 50 86 102c0 16 -4 30 -10 44c-3 6 -5 12 -9 17l47 43c1 -1 2 -3 3 -4c21 -28 33 -62 33 -100v-4c-2 -72 -47 -131 -111 -154c-12 -4 -26 -8 -39 -9v-57l-76 67l-26 23l44 39zM0 196c2 72 48 133 113 155c12 4 24 7 37 8v57l76 -67l26 -23l-44 -39
-l-59 -51l1 58c-49 -8 -86 -51 -86 -102c0 -16 4 -31 10 -45c3 -6 5 -11 9 -16l-47 -44c-1 2 -2 3 -3 5c-20 28 -33 63 -33 100v4z" />
- <glyph glyph-name="ion-magnet" unicode="&#xf2a0;" horiz-adv-x="384"
-d="M192 416c115 0 192 -78 192 -200c0 -49 -3 -77 -15 -128c-16 -66 -39 -113 -39 -113v-1c-2 -3 -6 -6 -10 -6c-1 0 -3 1 -4 1l-2 1l-50 20l-2 1c-3 2 -5 5 -5 9c0 1 0 3 1 4v1c7 16 27 59 37 101s13 63 13 108c0 71 -52 122 -116 122s-116 -51 -116 -122
-c0 -45 3 -66 13 -108s30 -85 37 -101v-1c1 -1 1 -3 1 -4c0 -4 -2 -7 -5 -9l-2 -1l-50 -20l-2 -1c-1 0 -3 -1 -4 -1c-4 0 -8 3 -10 6v1s-24 47 -40 113c-12 51 -14 79 -14 128c0 122 77 200 192 200zM109 4c-9 19 -27 59 -36 98l-42 -12c13 -53 30 -92 35 -104l43 17v1z
-M317 -14c5 12 23 51 36 104l-43 12c-9 -39 -26 -79 -35 -98v-1z" />
- <glyph glyph-name="ion-male" unicode="&#xf2a1;"
-d="M448 256l-63 63l-69 -69c22 -30 36 -66 36 -106c0 -97 -79 -176 -176 -176s-176 79 -176 176s79 176 176 176c40 0 76 -14 106 -36l69 69l-63 63h160v-160zM266 54c24 24 38 56 38 90s-14 66 -38 90s-56 38 -90 38s-66 -14 -90 -38s-38 -56 -38 -90s14 -66 38 -90
-s56 -38 90 -38s66 14 90 38z" />
- <glyph glyph-name="ion-man" unicode="&#xf202;" horiz-adv-x="168"
-d="M84 341c-21 0 -37 17 -37 38s16 37 37 37s37 -16 37 -37s-16 -38 -37 -38zM121 333c28 0 47 -24 47 -48v-114c0 -22 -32 -22 -32 0v105h-5v-286c0 -28 -41 -31 -43 0v165h-1h-7v-165c-1 -29 -43 -30 -43 0v286h-6v-105c0 -22 -31 -22 -31 0v114c0 24 19 48 47 48h37h37z
-" />
- <glyph glyph-name="ion-map" unicode="&#xf203;"
-d="M441 311c4 -3 7 -8 7 -14v-281c0 -6 -2 -11 -7 -14c-2 -1 -5 -2 -7 -2c-3 0 -6 0 -8 2l-97 66l-97 -66c-5 -3 -10 -3 -15 0l-97 66l-97 -66c-5 -3 -10 -3 -15 0s-8 8 -8 14v281c0 6 3 11 7 14l105 71c5 3 10 3 15 0l97 -66l98 66c5 3 10 3 15 0zM103 95v242l-71 -50v-242
-zM135 95l73 -49v129l-4 -11c-7 2 -13 6 -20 10l8 13c5 -3 11 -6 16 -8v109l-73 49v-101c4 -2 9 -4 13 -7l-10 -13c-1 1 -2 1 -3 2v-123zM240 46l73 49v109c0 -1 -1 -1 -1 -2l-6 -6l-12 11l6 6c3 3 5 7 8 10l5 -5v119l-73 -49v-112h7l3 -15c-3 0 -6 -1 -9 -1h-1v-114zM416 46
-v242l-71 49v-88c3 1 5 1 8 2l4 -16c-4 -1 -8 -1 -12 -3v-137zM97 227c-3 -1 -11 -5 -14 -7l-11 12c4 3 8 6 12 8c3 2 6 3 9 4l5 -15c-2 -1 1 -1 -1 -2zM265 182c5 3 10 5 15 10l11 -12c-6 -6 -12 -10 -19 -13zM67 192v-1l-15 5v1c2 7 4 13 9 20l13 -9c-4 -5 -5 -10 -7 -16z
-M166 210c3 -4 7 -8 11 -11l-11 -12c-4 4 -8 9 -12 13l-3 3l12 11c1 -1 2 -3 3 -4zM376 218l-11 12l10 10l-10 10l11 12l10 -11l11 11l11 -12l-10 -10l10 -10l-11 -12l-11 11z" />
- <glyph glyph-name="ion-medkit" unicode="&#xf2a2;"
-d="M440 304c4 0 8 -4 8 -8v-288c0 -4 -4 -8 -8 -8h-432c-4 0 -8 4 -8 8v288c0 4 4 8 8 8h120v31c1 28 22 49 51 49h45h45c30 0 50 -21 51 -49v-31h120zM160 331v-27h128v27v1v1c0 10 -9 19 -19 19h-45h-45c-10 0 -19 -9 -19 -19v-1v-1zM320 128v64h-64v64h-64v-64h-64v-64
-h64v-64h64v64h64z" />
- <glyph glyph-name="ion-merge" unicode="&#xf33f;" horiz-adv-x="384"
-d="M320 224c35 0 64 -29 64 -64s-29 -64 -64 -64c-24 0 -44 13 -55 32h-10c-61 0 -115 25 -159 74v-115c19 -11 32 -31 32 -55c0 -35 -29 -64 -64 -64s-64 29 -64 64c0 24 13 44 32 55v210c-19 11 -32 31 -32 55c0 35 29 64 64 64s64 -29 64 -64c0 -19 -8 -37 -22 -49
-c4 -9 17 -35 37 -58c32 -35 70 -53 112 -53h10c11 19 31 32 55 32zM64 384c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32zM64 0c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM320 128c18 0 32 14 32 32s-14 32 -32 32
-s-32 -14 -32 -32s14 -32 32 -32z" />
- <glyph glyph-name="ion-mic-a" unicode="&#xf204;" horiz-adv-x="288"
-d="M0 210c0 10 9 19 20 19s19 -9 19 -19v-14c0 -28 12 -53 31 -72s45 -31 74 -31s55 12 74 31s31 44 31 72v14c0 10 8 19 19 19s20 -9 20 -19v-14c0 -66 -46 -120 -108 -136c-1 0 -3 -1 -4 -1c-6 -2 -10 -7 -12 -13v-58c0 -11 -9 -20 -20 -20v0c-11 0 -20 9 -20 20v58
-c-2 6 -6 11 -12 13c-1 0 -3 1 -4 1c-62 16 -108 70 -108 136v14zM67 340c0 42 34 76 77 76s78 -34 78 -76v-144c0 -42 -35 -75 -78 -75s-77 33 -77 75v144z" />
- <glyph glyph-name="ion-mic-b" unicode="&#xf205;" horiz-adv-x="160"
-d="M80 416c35 0 65 -23 76 -59c6 -18 4 -45 2 -55s-8 -20 -14 -28c-3 -4 -7 -7 -11 -9c-1 0 -1 -1 -2 -1c-3 -1 -6 -2 -10 -3c-12 -3 -25 -5 -39 -5v0h-1h-1v0c-14 0 -29 2 -41 5c-4 1 -7 2 -10 3c-1 0 -1 1 -2 1c-4 2 -8 5 -11 9c-6 8 -12 18 -14 28s-4 37 2 55
-c11 36 41 59 76 59zM119 247c6 0 12 -5 12 -12v-2c-5 -67 -18 -241 -19 -252c0 0 -3 -13 -32 -13v0c-29 0 -32 13 -32 13c-1 11 -13 185 -18 252v2c0 7 5 12 11 12h1c1 0 1 -1 2 -1c2 0 4 -1 6 -1c9 -2 21 -2 31 -2s20 0 29 2c2 0 4 1 6 1c1 0 1 1 2 1h1zM90 166v33
-c0 6 -4 11 -10 11s-10 -5 -10 -11v-33c0 -6 4 -11 10 -11s10 5 10 11z" />
- <glyph glyph-name="ion-mic-c" unicode="&#xf206;" horiz-adv-x="256"
-d="M201 416c30 0 55 -23 55 -52v-28h-59v-37h59v-43h-59v-37h59v-43h-59v-37h59v-42c0 -29 -25 -52 -55 -52h-30v-77h-86v77h-30c-30 0 -55 23 -55 52v42h152v37h-152v43h152v37h-152v43h152v37h-152v28c0 29 25 52 55 52h146z" />
- <glyph glyph-name="ion-minus-circled" unicode="&#xf207;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM352 176v32h-256v-32h256z" />
- <glyph glyph-name="ion-minus-round" unicode="&#xf208;" horiz-adv-x="384"
-d="M353 224c17 0 31 -14 31 -32s-14 -32 -31 -32h-322c-17 0 -31 14 -31 32s14 32 31 32h322z" />
- <glyph glyph-name="ion-minus" unicode="&#xf209;" horiz-adv-x="384"
-d="M0 160v64h384v-64h-384z" />
- <glyph glyph-name="ion-model-s" unicode="&#xf2c1;" horiz-adv-x="512"
-d="M509 57v-8v0v-1v-3v0c0 -3 -1 -5 -1 -7c-1 -12 -2 -18 -6 -20c-3 -2 -6 -2 -10 -2h-43s-10 1 -11 16v8c20 1 39 1 52 0c10 0 13 0 16 6c2 3 2 7 3 11zM3 57c1 -4 1 -8 3 -11c3 -6 6 -6 16 -6c13 1 32 1 52 0v-8c-1 -15 -8 -16 -11 -16h-43s-7 0 -10 2c-4 2 -6 8 -7 20v7
-v0v3v1v0v8zM512 151c0 -31 -2 -58 -2 -68c0 -4 0 -11 -1 -18c-1 -4 -1 -8 -3 -11c-3 -6 -6 -6 -16 -6c-13 1 -32 1 -52 0c-13 0 -27 -2 -39 -2c-30 -1 -21 4 -34 4s-63 -2 -109 -2s-97 2 -110 2s-4 -5 -34 -4c-12 0 -25 2 -38 2c-20 1 -39 1 -52 0c-10 0 -13 0 -16 6
-c-2 3 -2 7 -3 11c-1 7 -1 14 -1 18c0 10 -2 37 -2 68s4 61 6 64c1 2 8 9 26 21s17 10 20 18c-3 1 -5 3 -7 3c-4 0 -4 -3 -12 -3s-24 1 -28 5c-4 3 -5 5 -5 8s2 9 5 13s19 6 27 7s10 0 12 -1c4 -2 3 -22 3 -22l9 -1c5 13 12 41 24 62c13 23 26 30 32 32s10 2 48 6s69 5 96 5
-s58 -1 96 -5s42 -4 48 -6s19 -9 32 -32c12 -21 19 -49 24 -62l9 1s-1 20 3 22c2 1 4 2 12 1s24 -3 27 -7s5 -10 5 -13s-1 -4 -5 -8s-20 -5 -28 -5s-8 3 -12 3c-2 0 -4 -2 -7 -3c3 -8 2 -6 20 -18s25 -19 26 -21c2 -3 6 -33 6 -64zM86 303c-5 -11 -11 -33 -10 -36
-s-1 -5 15 -4s117 3 165 3s149 -2 165 -3s14 1 15 4s-5 25 -10 36s-17 31 -26 37c-2 1 -17 7 -54 9c-34 2 -72 3 -90 3s-56 -1 -90 -3c-37 -2 -52 -8 -54 -9c-7 -4 -21 -26 -26 -37zM123 178c7 2 11 2 11 2s-17 16 -48 25s-49 11 -66 10c0 0 -3 -16 0 -27s8 -10 16 -12
-s13 -5 16 -4s7 4 12 4s29 -4 38 -4s14 4 21 6zM358 99c15 2 34 19 21 33c-18 19 -15 19 -55 24c-35 4 -61 4 -68 4s-33 0 -68 -4c-40 -5 -37 -5 -55 -24c-13 -14 6 -31 21 -33c14 -2 74 -3 102 -3s88 1 102 3zM492 188c3 11 0 27 0 27c-17 1 -35 -1 -66 -10s-48 -26 -48 -26
-s4 1 11 -1s12 -6 21 -6s33 4 38 4s9 -3 12 -4s8 2 16 4s13 1 16 12z" />
- <glyph glyph-name="ion-monitor" unicode="&#xf20a;"
-d="M437 384c6 0 11 -5 11 -11v-266c0 -6 -5 -11 -11 -11h-426c-6 0 -11 5 -11 11v266c0 6 5 11 11 11h426zM416 128v224h-384v-224h384zM270 0h-92c-28 0 -42 3 -30 12s30 16 30 23c0 4 1 45 1 45h45h45s1 -41 1 -45c0 -7 18 -14 30 -23s-2 -12 -30 -12z" />
- <glyph glyph-name="ion-more" unicode="&#xf20b;" horiz-adv-x="384"
-d="M50 144c-28 0 -50 21 -50 48c0 26 22 48 50 48s50 -22 50 -48c0 -27 -22 -48 -50 -48zM192 144c-28 0 -50 21 -50 48c0 26 22 48 50 48s50 -22 50 -48c0 -27 -22 -48 -50 -48zM334 144c-28 0 -50 21 -50 48c0 26 22 48 50 48s50 -22 50 -48c0 -27 -22 -48 -50 -48z" />
- <glyph glyph-name="ion-mouse" unicode="&#xf340;" horiz-adv-x="256"
-d="M128 416h-1h5h-4zM251 255c2 1 2 1 4 1h1v-176c0 -37 -21 -71 -53 -91c-5 -3 -9 -5 -14 -7v-1v0c-18 -9 -39 -13 -61 -13c-71 0 -128 50 -128 112v176h1c2 0 3 0 5 -1v0c34 -13 76 -23 122 -23s88 10 122 23h1zM189 -18c5 2 10 4 14 7c-5 -3 -9 -5 -14 -7v0v-1v1v0z
-M203 -11c-4 -3 -9 -5 -14 -7c5 2 9 4 14 7zM132 416c69 -2 124 -51 124 -112v-23c-2 -2 -4 -4 -6 -5c-1 -1 -3 0 -4 -1c-23 -10 -50 -16 -82 -19h-1h-2c-11 0 -17 0 -17 10v86c0 9 -7 16 -16 16s-16 -7 -16 -16v-85c0 -11 -6 -11 -17 -11h-2c-32 3 -61 9 -84 19v0
-c-1 0 -1 1 -2 1c-3 1 -5 3 -7 5v23c0 61 57 111 127 112h5z" />
- <glyph glyph-name="ion-music-note" unicode="&#xf20c;" horiz-adv-x="384"
-d="M362 416c12 0 22 -9 22 -21v-303s-3 -43 -12 -55v0c-9 -15 -25 -21 -43 -21h-37c-28 0 -52 20 -52 48s24 48 52 48h60v192l-208 -38v-232c0 -8 -3 -27 -13 -41c-1 -2 -2 -3 -3 -5c0 -1 -1 -1 -2 -2v0c-9 -11 -23 -18 -38 -18h-37c-28 0 -51 20 -51 48s23 48 51 48v0h61
-v286c1 14 13 28 27 32l218 33s3 1 5 1z" />
- <glyph glyph-name="ion-navicon-round" unicode="&#xf20d;" horiz-adv-x="384"
-d="M353 224c17 0 31 -14 31 -32s-14 -32 -31 -32h-322c-17 0 -31 14 -31 32s14 32 31 32h322zM353 352c17 0 31 -14 31 -32s-14 -32 -31 -32h-322c-17 0 -31 14 -31 32s14 32 31 32h322zM353 96c17 0 31 -14 31 -32s-14 -32 -31 -32h-322c-17 0 -31 14 -31 32s14 32 31 32
-h322z" />
- <glyph glyph-name="ion-navicon" unicode="&#xf20e;" horiz-adv-x="320"
-d="M0 175v32h320v-32h-320zM0 271v32h320v-32h-320zM0 79v32h320v-32h-320z" />
- <glyph glyph-name="ion-navigate" unicode="&#xf2a3;"
-d="M448 416l-192 -448v256h-256z" />
- <glyph glyph-name="ion-network" unicode="&#xf341;" horiz-adv-x="384"
-d="M384 352c0 -24 -13 -44 -32 -55v-93l-128 -64v-53c19 -11 32 -31 32 -55c0 -35 -29 -64 -64 -64s-64 29 -64 64c0 24 13 44 32 55v53l-128 64v93c-19 11 -32 31 -32 55c0 35 29 64 64 64s64 -29 64 -64c0 -24 -13 -44 -32 -55v-53l96 -48l96 48v53c-19 11 -32 31 -32 55
-c0 35 29 64 64 64s64 -29 64 -64zM64 384c-18 0 -32 -14 -32 -32s14 -32 32 -32s32 14 32 32s-14 32 -32 32zM192 0c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM320 320c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32z" />
- <glyph glyph-name="ion-no-smoking" unicode="&#xf2c2;"
-d="M328 144v48h16v-48h-16zM80 144v48h90l48 -48h-138zM332 388c69 -38 116 -112 116 -196c0 -124 -100 -224 -224 -224c-24 0 -47 4 -68 11c-2 1 -3 1 -5 2c-12 4 -24 9 -35 15h-1c-69 38 -115 112 -115 196c0 124 100 224 224 224c24 0 47 -4 68 -11c2 -1 3 -1 5 -2
-c12 -4 24 -9 35 -15v0zM224 22c37 0 72 12 100 32l-238 238c-20 -28 -32 -63 -32 -100c0 -65 36 -121 90 -150c6 -3 13 -7 19 -9c2 -1 3 -1 5 -2c9 -3 19 -5 29 -7c9 -2 18 -2 27 -2zM362 93c20 28 32 62 32 99c0 66 -37 123 -91 151c-6 3 -12 6 -18 8c-2 1 -3 1 -5 2
-c-9 3 -19 5 -29 7c-9 2 -18 2 -27 2c-37 0 -71 -12 -99 -32zM320 150l-42 42h42v-42zM352 144v48h16v-48h-16zM328 235c16 -7 16 -27 16 -34v-1h-16v1c0 8 -1 17 -7 20c-4 2 -13 4 -39 4h-3c-13 0 -24 0 -33 13c-5 8 -5 19 -2 29c-4 1 -8 1 -12 3c-17 7 -26 20 -26 38
-c0 33 27 44 39 44v-16c-1 0 -23 -2 -23 -28c0 -11 5 -19 16 -23c9 -4 18 -3 18 -3c3 0 6 -2 7 -5s2 -6 0 -8c-5 -7 -7 -18 -4 -22c4 -6 7 -6 20 -6h3c24 0 37 -2 46 -6zM368 200v0h-16c0 28 -4 41 -7 46c-6 10 -14 14 -25 14h-30c-3 0 -5 2 -6 4s-1 6 0 8c0 0 8 18 6 32
-c-1 8 -6 17 -27 17v16c24 0 40 -11 43 -30c2 -11 0 -23 -3 -31h17c16 0 30 -8 39 -22c6 -10 9 -28 9 -54z" />
- <glyph glyph-name="ion-nuclear" unicode="&#xf2a4;"
-d="M176 176c0 32 16 48 48 48s48 -16 48 -48s-16 -48 -48 -48s-48 16 -48 48zM176 176c0 32 16 48 48 48s48 -16 48 -48s-16 -48 -48 -48s-48 16 -48 48zM448 176c0 -27 -5 -53 -15 -78s-23 -47 -40 -66s-36 -35 -59 -48l-79 136c22 12 33 31 33 56h160zM224 240
-c-12 0 -23 -3 -33 -9l-80 138c35 20 73 31 113 31s78 -10 113 -30l-81 -139c-10 6 -21 9 -32 9zM160 176c0 -25 11 -44 33 -56l-79 -136c-35 20 -62 46 -83 80s-31 71 -31 112h160z" />
- <glyph glyph-name="ion-outlet" unicode="&#xf342;"
-d="M338 416c61 0 110 -51 110 -113v-222c0 -62 -49 -113 -110 -113h-228c-61 0 -110 51 -110 113v222c0 62 49 113 110 113h228zM143 197v102c0 11 -9 21 -20 21h-23c-11 0 -19 -9 -20 -20v-2v-101v-1c0 -11 9 -20 20 -20h23c11 0 20 9 20 20v1zM265 52v29
-c0 23 -18 42 -41 42s-41 -19 -41 -42v-29v0c0 -11 9 -20 20 -20h21h21c11 0 20 7 20 18v2zM368 197v102c0 11 -9 21 -20 21h-24c-11 0 -19 -9 -20 -20v-2v-101v-1c0 -11 9 -20 20 -20h24c11 0 20 9 20 20v1z" />
- <glyph glyph-name="ion-paintbrush" unicode="&#xf4d5;"
-d="M118 165c52 0 102 -41 90 -102c-11 -52 -54 -71 -90 -77c-30 -5 -100 0 -118 35c24 9 34 26 34 49c0 49 32 95 84 95zM436 388c13 -13 17 -30 5 -45l-154 -175c2 -9 1 -17 -3 -23l-50 -58v0v0c-2 -2 -4 -2 -6 0c-1 1 -1 2 -1 3v1c2 53 -41 87 -89 90v0h-2s-2 0 -2 1
-c-2 2 -2 4 0 6l59 49c6 4 14 4 23 2l175 154c15 12 32 8 45 -5zM134 188v0v0v0z" />
- <glyph glyph-name="ion-paintbucket" unicode="&#xf4d6;" horiz-adv-x="480"
-d="M112 384l32 32l275 -276l-58 -12l-163 -160l-198 192l152 152zM309 160l-110 110l-110 -110h220zM419 140c0 0 61 -66 61 -99s-27 -60 -61 -60s-60 27 -60 60s60 99 60 99z" />
- <glyph glyph-name="ion-paper-airplane" unicode="&#xf2c3;"
-d="M0 176l448 240l-112 -448l-112 112l-80 -112l-16 160zM319 31l80 323l-322 -173l83 -31l192 154l-128 -176z" />
- <glyph glyph-name="ion-paperclip" unicode="&#xf20f;" horiz-adv-x="160"
-d="M149 293c6 0 11 -5 11 -12v-195c0 -28 -10 -49 -24 -63c-15 -15 -36 -23 -56 -23c-40 0 -80 31 -80 88v234c0 24 11 44 29 54s39 11 57 0s29 -30 29 -54l-1 -225c0 -13 -3 -24 -9 -32s-16 -12 -25 -12c-17 0 -34 15 -34 44v173c0 6 6 12 12 12s11 -6 11 -12v-173
-c0 -14 5 -21 11 -21c2 0 5 2 7 4c3 4 5 10 5 17v225c0 15 -6 28 -17 34s-24 6 -35 0s-17 -19 -17 -34v-234c0 -44 29 -64 57 -64s57 19 57 63v195c0 6 6 11 12 11z" />
- <glyph glyph-name="ion-pause" unicode="&#xf210;" horiz-adv-x="256"
-d="M96 12c0 -7 -5 -12 -12 -12h-72c-7 0 -12 5 -12 12v360c0 7 5 12 12 12h72c7 0 12 -5 12 -12v-360zM244 384c7 0 12 -5 12 -12v-360c0 -7 -5 -12 -12 -12h-72c-7 0 -12 5 -12 12v360c0 7 5 12 12 12h72z" />
- <glyph glyph-name="ion-person-add" unicode="&#xf211;"
-d="M397 120h-42v51h-51v42h51v51h42v-51h51v-42h-51v-51zM384 0h-192h-192s0 26 2 40c2 11 17 25 81 49c63 23 60 12 60 55c0 28 -14 11 -23 64c-4 21 -6 7 -14 40c-4 17 3 19 2 27s-2 16 -4 33c-2 21 18 76 88 76s90 -55 88 -76c-2 -17 -3 -25 -4 -33s6 -10 2 -27
-c-8 -33 -10 -19 -14 -40c-9 -53 -23 -36 -23 -64c0 -43 -3 -32 60 -55c64 -24 79 -38 81 -49c2 -14 2 -40 2 -40z" />
- <glyph glyph-name="ion-person-stalker" unicode="&#xf212;"
-d="M393 123c42 -16 52 -26 53 -33c2 -9 2 -90 2 -90h-98c0 18 0 71 -1 77c-1 10 -1 29 -55 50c-8 3 -14 5 -19 7c18 8 15 15 15 28c0 19 -9 11 -15 47c-2 14 -4 5 -9 28c-3 12 1 12 1 18s-1 10 -2 22c-1 14 11 52 57 52s59 -38 58 -52c-1 -12 -2 -16 -2 -22
-c-1 -6 4 -6 1 -18c-5 -23 -7 -14 -9 -28c-6 -36 -16 -28 -16 -47c0 -29 -2 -23 39 -39zM325 0h-163h-162s0 65 2 77c2 10 15 22 69 43c54 20 50 17 50 55c0 24 -12 8 -20 54c-3 18 -5 7 -11 36c-3 15 2 16 1 23s-2 14 -3 29c-2 19 15 67 74 67s77 -49 75 -67
-c-1 -15 -2 -22 -3 -29s5 -8 2 -23c-6 -29 -9 -18 -12 -36c-8 -46 -20 -30 -20 -54c0 -32 -2 -36 31 -48c6 -2 11 -4 19 -7c54 -21 67 -33 69 -43c1 -6 2 -28 2 -47v-30z" />
- <glyph glyph-name="ion-person" unicode="&#xf213;" horiz-adv-x="384"
-d="M384 0h-192h-192s0 26 2 40c2 11 17 25 81 49c63 23 60 12 60 55c0 28 -14 11 -23 64c-4 21 -6 7 -14 40c-4 17 3 19 2 27s-2 16 -4 33c-2 21 18 76 88 76s90 -55 88 -76c-2 -17 -3 -25 -4 -33s6 -10 2 -27c-8 -33 -10 -19 -14 -40c-9 -53 -23 -36 -23 -64
-c0 -43 -3 -32 60 -55c64 -24 79 -38 81 -49c2 -14 2 -40 2 -40z" />
- <glyph glyph-name="ion-pie-graph" unicode="&#xf2a5;"
-d="M1 192c0 5 -1 11 -1 16c0 115 93 208 208 208c5 0 11 -1 16 -1v-32v-191h-191h-32zM78 46c-26 32 -42 71 -45 114h223v223c43 -3 82 -19 114 -45c47 -38 78 -96 78 -162c0 -115 -93 -208 -208 -208c-66 0 -124 31 -162 78z" />
- <glyph glyph-name="ion-pin" unicode="&#xf2a6;" horiz-adv-x="224"
-d="M188 220c20 -10 36 -31 36 -55c0 -17 -3 -21 -15 -21h-81l-12 -176h-8l-12 176h-81c-12 0 -15 5 -15 21c0 24 16 45 36 55v0c1 0 3 1 4 2c7 4 12 11 14 19l18 118v5c0 7 -4 10 -10 13v0c-1 0 -1 1 -2 1c-7 3 -12 9 -12 17c0 20 6 21 18 21h92c12 0 18 -1 18 -21
-c0 -8 -5 -14 -12 -17c-1 0 -1 -1 -2 -1v0c-6 -3 -10 -6 -10 -13v-5l18 -118c2 -8 7 -15 14 -19c1 -1 3 -2 4 -2v0z" />
- <glyph glyph-name="ion-pinpoint" unicode="&#xf2a7;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM360 56c32 32 51 75 55 120l-63 8v16l63 8c-4 45 -23 88 -55 120s-75 51 -120 55l-8 -63h-16l-8 63c-45 -4 -88 -23 -120 -55s-51 -75 -55 -120l63 -8v-16l-63 -8
-c4 -45 23 -88 55 -120s75 -51 120 -55l8 63h16l8 -63c45 4 88 23 120 55z" />
- <glyph glyph-name="ion-pizza" unicode="&#xf2a8;" horiz-adv-x="352"
-d="M315 318c10 -4 12 -13 9 -20l-148 -330s-143 320 -148 331s2 16 9 19c39 18 90 28 139 28s96 -9 139 -28zM112 256c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM176 109c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM240 224
-c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM342 382c6 -3 10 -6 10 -13c0 -1 0 -3 -1 -5l-8 -19c-3 -5 -8 -9 -14 -9c-1 0 -3 1 -6 2c-41 18 -95 30 -147 30s-102 -11 -147 -30c-3 -1 -4 -2 -6 -2c-6 0 -11 4 -14 9l-8 19s-1 2 -1 5c0 8 6 12 10 14
-c49 21 107 33 166 33s118 -13 166 -34z" />
- <glyph glyph-name="ion-plane" unicode="&#xf214;"
-d="M250 136c0 -7 1 -69 -6 -102c-1 -4 3 -4 5 -7l51 -33c2 -2 3 -8 3 -8l1 -18l-68 16l-12 -32l-12 32l-68 -16l1 18s0 6 2 8l52 33c2 3 6 3 5 7c-7 33 -6 95 -6 102s-8 5 -8 5l-62 -13l-128 -49c0 23 2 26 9 31l183 131s5 63 5 113c0 24 12 78 27 78s27 -54 27 -78
-c0 -53 5 -113 5 -113l183 -131c6 -4 9 -7 9 -31l-128 49l-62 13s-8 2 -8 -5z" />
- <glyph glyph-name="ion-planet" unicode="&#xf343;" horiz-adv-x="512"
-d="M96 182c39 -24 85 -48 134 -69c44 -19 87 -35 126 -46c-27 -22 -62 -35 -100 -35c-85 0 -155 66 -160 150zM107 251c1 4 3 8 5 11c10 21 26 40 44 55c27 22 62 35 100 35c85 0 155 -66 160 -150v-10c0 -21 -4 -41 -11 -59c-1 -4 -3 -8 -5 -11c-6 1 -13 3 -19 5
-c-39 11 -82 26 -126 45c-56 24 -108 52 -148 79zM430 163c57 -35 87 -62 81 -82c-4 -12 -19 -17 -44 -17c-50 0 -136 23 -231 64c-141 61 -246 140 -235 175c4 12 20 20 44 17c22 -3 47 -9 73 -18c-8 -9 -8 -12 -14 -22c-23 5 -44 8 -59 8h-6c2 -2 5 -6 8 -9
-c11 -11 27 -24 46 -37c41 -29 97 -59 156 -85c44 -19 89 -35 128 -46c36 -10 68 -15 90 -15h6c-2 2 -5 6 -8 9c-10 10 -24 22 -41 34c4 11 5 12 6 24z" />
- <glyph glyph-name="ion-play" unicode="&#xf215;" horiz-adv-x="320"
-d="M309 215c7 -6 11 -14 11 -23s-4 -17 -11 -23l-278 -166c-4 -2 -7 -3 -11 -3c-11 0 -20 9 -20 20v0v344v0c0 11 9 20 20 20c4 0 8 -1 11 -3z" />
- <glyph glyph-name="ion-playstation" unicode="&#xf30a;" horiz-adv-x="512"
-d="M400 245c0 -11 0 -22 -2 -33c-2 -10 -5 -20 -10 -28c-4 -7 -10 -13 -18 -17c-7 -4 -16 -6 -24 -6c-13 0 -31 4 -42 9v131v2c0 9 -7 17 -15 17h-1c-9 0 -16 -8 -16 -17v-3v-300l-80 26v358s28 -4 75 -18s67 -21 84 -31c8 -5 15 -11 21 -17c7 -7 13 -14 17 -23
-c8 -16 10 -33 11 -50zM87 90c-4 -2 -8 -3 -11 -6c-1 -1 -3 -3 -2 -5s4 -4 6 -5c6 -2 13 -3 19 -3c7 0 15 0 22 2c5 1 9 3 14 5c30 10 41 12 41 12v-42c-14 -2 -36 -4 -50 -4c-30 -1 -60 4 -88 13c-9 3 -19 6 -27 12c-4 3 -8 8 -10 13c-2 4 -1 9 1 13s5 8 9 11
-c9 6 18 10 28 14c8 4 17 7 26 10c35 12 111 37 111 37v-47s-62 -20 -89 -30zM512 102c0 -5 -2 -9 -5 -13c-6 -7 -14 -11 -22 -15s-17 -8 -26 -11c-54 -19 -171 -59 -171 -59v48s92 30 133 44c6 2 11 4 16 8c2 2 4 3 3 6c-1 2 -4 4 -6 5c-6 2 -13 3 -19 3
-c-10 0 -20 -2 -30 -5c-29 -10 -97 -32 -97 -32v49s45 14 67 16c8 1 23 1 31 1c26 0 54 -3 79 -11c5 -2 8 -3 14 -5c9 -3 18 -8 25 -14c4 -4 8 -9 8 -15z" />
- <glyph glyph-name="ion-plus-circled" unicode="&#xf216;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM352 176v32h-112v112h-32v-112h-112v-32h112v-112h32v112h112z" />
- <glyph glyph-name="ion-plus-round" unicode="&#xf217;" horiz-adv-x="384"
-d="M353 224c17 0 31 -14 31 -32s-14 -32 -31 -32h-129v-129c0 -17 -14 -31 -32 -31s-32 14 -32 31v129h-129c-17 0 -31 14 -31 32s14 32 31 32h129v129c0 17 14 31 32 31s32 -14 32 -31v-129h129z" />
- <glyph glyph-name="ion-plus" unicode="&#xf218;" horiz-adv-x="384"
-d="M384 224v-64h-160v-160h-64v160h-160v64h160v160h64v-160h160z" />
- <glyph glyph-name="ion-podium" unicode="&#xf344;"
-d="M0 0v192h128v-192h-128zM160 0v288h128v-288h-128zM320 0v128h128v-128h-128z" />
- <glyph glyph-name="ion-pound" unicode="&#xf219;"
-d="M93 96h-93v54h101l13 84h-99v54h107l22 128h64l-22 -128h106l22 128h63l-22 -128h93v-54h-102l-12 -84h99v-54h-107l-22 -128h-63l22 128h-107l-22 -128h-63zM177 234l-12 -84h106l12 84h-106v0z" />
- <glyph glyph-name="ion-power" unicode="&#xf2a9;"
-d="M224 192c-18 0 -32 14 -32 32v160c0 18 14 32 32 32s32 -14 32 -32v-160c0 -18 -14 -32 -32 -32zM347 379c61 -40 101 -109 101 -187c0 -124 -100 -224 -224 -224s-224 100 -224 224c0 78 40 147 101 187v0c5 3 11 5 17 5c18 0 32 -14 32 -32c0 -6 -2 -12 -5 -17
-c-2 -3 -4 -6 -7 -8c-1 -1 -3 -2 -4 -3c-8 -6 -16 -12 -23 -19c-30 -30 -47 -70 -47 -113s17 -83 47 -113s70 -47 113 -47s83 17 113 47s47 70 47 113s-17 83 -47 113c-7 7 -15 13 -23 19c-1 1 -3 2 -4 3c-3 2 -5 5 -7 8c-3 5 -5 11 -5 17c0 18 14 32 32 32c6 0 12 -2 17 -5
-v0z" />
- <glyph glyph-name="ion-pricetag" unicode="&#xf2aa;"
-d="M439 187c12 -12 12 -31 0 -43l-165 -167c-11 -11 -30 -11 -42 -1l-3 3l-206 209l-6 5c-6 7 -9 15 -10 24v0v2v0l-7 98v4v0c0 12 4 24 13 33l49 49c8 9 20 13 31 13h4l100 -4v0c12 0 22 -4 30 -12v0l2 -2v0l210 -211v0v0zM112 256c26 0 48 22 48 48s-22 48 -48 48
-s-48 -22 -48 -48s22 -48 48 -48z" />
- <glyph glyph-name="ion-pricetags" unicode="&#xf2ab;"
-d="M440 209c10 -11 11 -28 0 -39l-29 -29c11 11 10 28 0 39v0v0l-190 191v0l-1 1h-1c-8 7 -16 12 -27 12v0l-90 3h-4c-9 0 -19 -3 -26 -10l28 27c8 8 17 12 27 12h4l90 -4v0c11 0 19 -4 27 -11h1l1 -1v0l190 -191v0v0zM396 166v0c11 -11 11 -29 0 -40l-108 -109v1l-26 -27
-l-2 -2l-13 -13c-10 -10 -26 -10 -37 -1l-3 3l-186 188l-5 5c-5 6 -9 14 -10 22v0v2v0l-6 88v3v1c0 11 4 21 12 29l44 45l1 1l1 1c7 6 17 9 26 9h4l90 -3v0c11 0 19 -4 27 -11v0l2 -1v0l189 -191v0zM79 308c-12 -8 -21 -21 -21 -37c0 -24 19 -43 43 -43c16 0 29 9 37 21
-c4 7 7 14 7 22c0 24 -20 44 -44 44c-8 0 -15 -3 -22 -7z" />
- <glyph glyph-name="ion-printer" unicode="&#xf21a;"
-d="M392 320c28 0 56 -19 56 -55v-131c0 -31 -28 -54 -56 -54h-40v-112h-8h-8h-224h-11h-5v112h-40c-28 0 -56 24 -56 62v123c0 38 28 55 56 55h40v64h256v-64h40zM336 -16v176h-224v-176h224zM336 320v48h-224v-48h224zM384 256v16h-17v-16h17zM128 112v16h192v-16h-192z
-M128 64v16h192v-16h-192zM128 16v16h192v-16h-192z" />
- <glyph glyph-name="ion-pull-request" unicode="&#xf345;" horiz-adv-x="384"
-d="M64 384c35 0 64 -29 64 -64c0 -24 -13 -44 -32 -55v-178c19 -11 32 -31 32 -55c0 -35 -29 -64 -64 -64s-64 29 -64 64c0 24 13 44 32 55v178c-19 11 -32 31 -32 55c0 35 29 64 64 64zM64 0c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM64 288
-c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32zM351 88c20 -11 33 -32 33 -56c0 -35 -29 -64 -64 -64s-64 29 -64 64c0 23 12 44 31 55v156c0 16 -4 26 -11 33c-10 9 -26 12 -52 12v-64l-96 96l96 96v-64c42 1 74 -8 96 -29c21 -19 31 -46 31 -80v-155z
-M320 0c18 0 32 14 32 32s-14 32 -32 32s-32 -14 -32 -32s14 -32 32 -32z" />
- <glyph glyph-name="ion-qr-scanner" unicode="&#xf346;" horiz-adv-x="416"
-d="M48 324v-68h-48v68c0 33 28 60 61 60h67v-48h-68c-7 0 -12 -5 -12 -12zM356 384c33 0 60 -27 60 -60v-68h-48v68c0 7 -6 12 -13 12h-67v48h68zM368 61v67h48v-67c0 -33 -27 -61 -60 -61h-68v49h68c7 0 12 5 12 12zM60 49h68v-49h-67c-33 0 -61 28 -61 61v67h48v-67
-c0 -7 5 -12 12 -12z" />
- <glyph glyph-name="ion-quote" unicode="&#xf347;" horiz-adv-x="384"
-d="M128 384c-41 0 -73 -11 -95 -33s-33 -54 -33 -95v-256h160v256h-96c0 23 5 39 15 49s26 15 49 15zM352 384c-41 0 -73 -11 -95 -33s-33 -54 -33 -95v-256h160v256h-96c0 23 5 39 15 49s26 15 49 15z" />
- <glyph glyph-name="ion-radio-waves" unicode="&#xf2ac;"
-d="M160 192c0 43 21 64 64 64s64 -21 64 -64s-21 -64 -64 -64s-64 21 -64 64zM112 192c0 -18 5 -35 13 -50s19 -28 33 -37l-23 -25c-6 5 -13 10 -18 16c-25 26 -37 59 -37 96s12 70 37 96c5 6 12 11 18 16l23 -25c-14 -9 -25 -22 -33 -37s-13 -32 -13 -50zM336 192
-c0 18 -5 35 -13 50s-19 28 -33 37l23 25c6 -5 13 -10 18 -16c25 -26 37 -59 37 -96s-12 -70 -37 -96c-5 -6 -12 -11 -18 -16l-23 25c14 9 25 22 33 37s13 32 13 50zM32 192c0 -27 6 -53 17 -77s27 -43 47 -59l-23 -24c-6 5 -12 10 -17 16c-18 19 -31 41 -41 65
-c-10 25 -15 51 -15 79s5 54 15 79c10 24 23 46 41 65c5 6 11 11 17 16l23 -24c-10 -8 -18 -17 -26 -27s-14 -21 -20 -32s-10 -24 -13 -37s-5 -26 -5 -40zM416 192c0 27 -6 53 -17 77s-27 43 -47 59l23 24c6 -5 12 -10 17 -16c18 -19 31 -41 41 -65c10 -25 15 -51 15 -79
-s-5 -54 -15 -79c-10 -24 -23 -46 -41 -65c-4 -5 -10 -10 -17 -16l-23 24c20 16 36 35 47 59s17 50 17 77z" />
- <glyph glyph-name="ion-record" unicode="&#xf21b;" horiz-adv-x="416"
-d="M208 -16c-115 0 -208 93 -208 208s93 208 208 208s208 -93 208 -208s-93 -208 -208 -208z" />
- <glyph glyph-name="ion-refresh" unicode="&#xf21c;"
-d="M352 96l-104 112h74c-7 65 -64 112 -130 112c-71 0 -128 -57 -128 -128s57 -128 128 -128c28 0 53 8 75 24l6 5l43 -46l-7 -6c-34 -26 -74 -41 -117 -41c-91 0 -167 64 -187 149v0c0 1 -1 2 -1 3v1v2s-1 2 -1 3v1c0 1 -1 3 -1 4v0c-1 6 -2 13 -2 19v1v4v5v5v4v1
-c0 6 1 13 2 19v0c0 1 1 3 1 4v1c0 1 1 1 1 2v3v1c0 1 1 2 1 3v0c20 85 96 149 187 149v0v0c11 0 21 -1 31 -3h2h2c57 -10 106 -47 133 -96c13 -23 21 -49 23 -77h65z" />
- <glyph glyph-name="ion-reply-all" unicode="&#xf21d;" horiz-adv-x="416"
-d="M257 256c153 0 159 -208 159 -208c-51 93 -91 102 -159 102v-92l-152 134l152 144v-80zM0 192l144 136v-57l-82 -79l82 -68v-58z" />
- <glyph glyph-name="ion-reply" unicode="&#xf21e;" horiz-adv-x="384"
-d="M384 48c-53 93 -122 102 -224 102v-92l-160 134l160 144v-80c187 0 224 -208 224 -208z" />
- <glyph glyph-name="ion-ribbon-a" unicode="&#xf348;" horiz-adv-x="352"
-d="M272 416l80 -96l-64 -134c-24 30 -59 49 -99 53zM80 416l83 -177c-40 -4 -75 -23 -99 -53l-64 134zM189 416h67l-53 -112h-27h-27l-53 112h80h13zM176 224c71 0 128 -57 128 -128s-57 -128 -128 -128s-128 57 -128 128s57 128 128 128zM176 0c53 0 96 43 96 96
-s-43 96 -96 96s-96 -43 -96 -96s43 -96 96 -96zM176 184c49 0 88 -39 88 -88s-39 -88 -88 -88s-88 39 -88 88s39 88 88 88z" />
- <glyph glyph-name="ion-ribbon-b" unicode="&#xf349;" horiz-adv-x="384"
-d="M192 376c49 0 88 -39 88 -88s-39 -88 -88 -88s-88 39 -88 88s39 88 88 88zM192 416c71 0 128 -57 128 -128s-57 -128 -128 -128s-128 57 -128 128s57 128 128 128zM192 192c53 0 96 43 96 96s-43 96 -96 96s-96 -43 -96 -96s43 -96 96 -96zM83 194c26 -30 65 -50 109 -50
-c12 0 23 1 34 4l-34 -74l-48 -106l-48 80h-96zM301 194l83 -146h-96l-48 -80l-40 88l45 98c22 9 41 23 56 40z" />
- <glyph glyph-name="ion-sad-outline" unicode="&#xf4d7;"
-d="M367 164c3 -9 -2 -17 -11 -19c-3 -1 -7 0 -10 1c-5 2 -9 5 -11 10s-4 12 -13 15s-14 0 -19 -3c-4 -3 -10 -3 -15 -1c-3 1 -7 3 -9 6c-6 8 -3 17 5 22c15 9 29 13 49 6s29 -21 34 -37zM165 195c8 -5 10 -14 4 -22c-2 -3 -6 -5 -9 -6c-5 -2 -11 -2 -15 1c-5 3 -10 6 -19 3
-s-11 -10 -13 -15s-6 -8 -11 -10c-3 -1 -7 -2 -10 -1c-9 2 -14 10 -11 19c5 16 14 30 34 37s35 3 50 -6zM224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM360 56c36 36 56 85 56 136s-20 100 -56 136s-85 56 -136 56
-s-100 -20 -136 -56s-56 -85 -56 -136s20 -100 56 -136s85 -56 136 -56s100 20 136 56zM317 89c5 -7 3 -17 -4 -22c-3 -2 -6 -3 -9 -3c-5 0 -10 3 -13 7c0 0 -19 25 -67 25s-67 -25 -67 -25c-3 -4 -8 -7 -13 -7c-3 0 -6 1 -9 3c-7 5 -9 15 -4 22c1 2 28 39 93 39
-s92 -37 93 -39z" />
- <glyph glyph-name="ion-sad" unicode="&#xf34a;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM113 156c2 5 4 12 13 15s14 0 19 -3c4 -3 10 -3 15 -1c3 1 7 3 9 6c6 8 4 17 -4 22c-15 9 -30 13 -50 6s-29 -21 -34 -37c-3 -9 2 -17 11 -19c3 -1 7 0 10 1c5 2 9 5 11 10z
-M313 67c7 5 9 15 4 22c-1 2 -28 39 -93 39s-92 -37 -93 -39c-5 -7 -3 -17 4 -22c3 -2 6 -3 9 -3c5 0 10 3 13 7c0 0 19 25 67 25s67 -25 67 -25c3 -4 8 -7 13 -7c3 0 6 1 9 3zM356 145c9 2 14 10 11 19c-5 16 -14 30 -34 37s-34 3 -49 -6c-8 -5 -11 -14 -5 -22
-c2 -3 6 -5 9 -6c5 -2 11 -2 15 1c5 3 10 6 19 3s11 -10 13 -15s6 -8 11 -10c3 -1 7 -2 10 -1z" />
- <glyph glyph-name="ion-scissors" unicode="&#xf34b;" horiz-adv-x="384"
-d="M341 332c-13 -33 -117 -172 -117 -172l-32 -32s-31 -13 -50 -43s-33 -71 -33 -71v0c-7 -26 -28 -46 -53 -46c-31 0 -56 29 -56 64s25 64 56 64c13 0 25 -5 34 -13c2 -1 3 -3 4 -4v0l2 -2c4 -4 7 -2 14 11c8 15 17 35 27 54s38 59 38 59l17 23l144 192
-c23 -20 18 -51 5 -84zM56 0c15 0 28 14 28 32s-13 32 -28 32s-28 -14 -28 -32s13 -32 28 -32zM192 160c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16zM143 183c-30 41 -90 125 -100 149c-13 33 -18 64 5 84l134 -178l-3 -4v0v0l-17 -23v-1v0
-c-1 -1 -10 -13 -19 -27zM328 96c31 0 56 -29 56 -64s-25 -64 -56 -64c-25 0 -47 20 -54 46v0s-13 41 -32 71c-11 17 -26 28 -36 35l29 29l1 1h1c1 1 1 2 2 4c3 -4 5 -9 7 -12c10 -19 20 -39 28 -54c7 -13 10 -15 14 -11c1 1 0 1 1 2h1c1 1 2 3 4 4c9 8 21 13 34 13zM328 0
-c15 0 28 14 28 32s-13 32 -28 32s-28 -14 -28 -32s13 -32 28 -32z" />
- <glyph glyph-name="ion-search" unicode="&#xf21f;" horiz-adv-x="384"
-d="M381 61c4 -4 4 -10 0 -14l-43 -44c-2 -2 -5 -3 -8 -3s-5 1 -7 3l-84 86c-25 -15 -52 -23 -80 -23c-87 0 -159 71 -159 159s72 159 159 159s158 -71 158 -159c0 -27 -7 -54 -21 -78zM159 322c-53 0 -97 -43 -97 -97s44 -97 97 -97s96 43 96 97s-43 97 -96 97z" />
- <glyph glyph-name="ion-settings" unicode="&#xf2ad;" horiz-adv-x="416"
-d="M402 310c10 -6 15 -25 14 -36c-1 -17 -7 -36 -25 -54c-1 -1 -2 -1 -3 -2c-26 -25 -62 -30 -94 -20c-1 1 -2 2 -4 2c-5 1 -10 0 -13 -4l-36 -39c52 -50 107 -96 107 -96c2 -2 2 -5 0 -7l-50 -51c-2 -2 -5 -2 -7 0c0 0 -44 55 -93 107l-92 -98c-14 -16 -40 -15 -55 0
-c-15 16 -15 42 1 56l97 93l-12 12c-2 2 -3 7 -1 10l2 5c-25 26 -36 33 -56 32s-36 -13 -48 -28s-10 -52 -8 -62s-7 -6 -12 0c-9 10 -23 50 -6 93s42 69 48 75s16 15 24 21s21 -1 27 5c4 4 5 11 5 16l-4 4c-2 2 -2 5 0 7l31 31c2 2 5 2 7 0l50 -50c2 -2 2 -6 0 -8l-31 -31
-c-2 -2 -5 -2 -7 0l-8 9c-7 0 -15 -5 -17 -10c-3 -6 -6 -21 -3 -33c3 -11 13 -20 36 -43l5 3c4 2 8 1 10 -1c0 0 1 -2 13 -14l38 37c4 3 5 7 4 13c0 2 0 4 -1 5c-10 33 -6 69 19 96l2 2c18 18 36 25 53 26c10 1 30 -5 35 -15l-48 -48l-2 -3l-1 -1c-1 -1 -1 -2 -1 -4
-s0 -3 1 -5l2 -2l2 -2l41 -42l3 -3l1 -1c1 -1 2 -1 4 -1s3 0 4 1l2 1l2 3z" />
- <glyph glyph-name="ion-share" unicode="&#xf220;" horiz-adv-x="384"
-d="M288 70v59l38 31v-109c0 -11 -8 -19 -19 -19h-288c-11 0 -19 9 -19 19v218c0 11 8 19 19 19h120c-29 -18 -43 -38 -43 -38h-58v-180h250zM256 224c-84 0 -116 -24 -160 -96c0 0 5 164 160 164v60l128 -96l-128 -96v64z" />
- <glyph glyph-name="ion-shuffle" unicode="&#xf221;"
-d="M338 267c-52 0 -83 -43 -120 -92c-41 -55 -88 -120 -171 -120h-47v63h47c52 0 84 47 121 96c41 55 87 116 170 116h29v54l81 -81l-81 -84v48h-29zM121 230c-21 21 -42 35 -74 36c-34 1 -47 0 -47 0v63h47c48 0 83 -20 113 -48c-10 -12 -19 -24 -28 -36
-c-4 -5 -7 -10 -11 -15zM367 118v47l81 -84l-81 -81v54h-29c-50 0 -87 23 -117 53c12 14 22 28 32 41c2 3 5 6 7 9c22 -24 46 -39 78 -39h29z" />
- <glyph glyph-name="ion-skip-backward" unicode="&#xf222;" horiz-adv-x="384"
-d="M12 352h8c7 0 12 -5 12 -12v-113l187 122c2 2 5 3 8 3c8 0 16 -7 16 -17v-63l118 78c2 2 5 2 8 2c8 0 15 -7 15 -17v-286c0 -10 -7 -17 -15 -17c-3 0 -5 1 -8 3l-118 78v-64c0 -10 -8 -17 -16 -17c-3 0 -5 1 -8 3l-187 122v-113c0 -7 -5 -12 -12 -12h-8
-c-7 0 -12 5 -12 12v296c0 7 5 12 12 12z" />
- <glyph glyph-name="ion-skip-forward" unicode="&#xf223;" horiz-adv-x="384"
-d="M372 352c7 0 12 -5 12 -12v-296c0 -7 -5 -12 -12 -12h-8c-7 0 -12 5 -12 12v113l-187 -122c-3 -2 -5 -3 -8 -3c-8 0 -15 7 -15 17v64l-119 -78c-3 -2 -5 -3 -8 -3c-8 0 -15 7 -15 17v286c0 10 7 17 15 17c3 0 6 0 8 -2l119 -78v63c0 10 7 17 15 17c3 0 6 -1 8 -3
-l187 -122v113c0 7 5 12 12 12h8z" />
- <glyph glyph-name="ion-social-android-outline" unicode="&#xf224;" horiz-adv-x="352"
-d="M272 240h-192v-60v-89h24h16v-15v-52c0 -4 4 -8 8 -8s8 4 8 8v52v15h17h49h15v-15v-52c0 -2 1 -4 3 -6h1v0c1 -1 2 -2 4 -2h1v0v0c4 0 7 4 7 8v52v15h17h22v89v60zM288 256v0v-76v-90c0 -7 -3 -15 -10 -15h-29v-51c0 -13 -10 -24 -23 -24v0h-1c-6 0 -11 2 -15 5
-c-5 4 -9 11 -9 19v51h-49v-51c0 -13 -11 -24 -24 -24s-24 11 -24 24v51h-28c-7 0 -12 8 -12 15v90v76h224zM328 256c-4 0 -8 -4 -8 -8v-96c0 -4 4 -8 8 -8s8 4 8 8v96c0 4 -4 8 -8 8zM328 272v0c13 0 24 -11 24 -24v-96c0 -13 -11 -24 -24 -24s-24 11 -24 24v96
-c0 13 11 24 24 24zM24 256c-4 0 -8 -4 -8 -8v-96c0 -4 4 -8 8 -8s8 4 8 8v96c0 4 -4 8 -8 8zM24 272v0c13 0 24 -11 24 -24v-96c0 -13 -11 -24 -24 -24s-24 11 -24 24v96c0 13 11 24 24 24zM175 354c-14 0 -27 -3 -38 -6l-10 -4c-28 -12 -40 -37 -44 -56h186
-c-4 18 -15 43 -44 56l-10 4c-12 4 -25 6 -39 6v0v0h-1zM105 384v0h1l19 -23c13 5 30 9 50 9h1c20 0 36 -4 50 -9l20 23v0s1 -1 2 -1c1 -1 2 -3 2 -3l-19 -22c48 -21 56 -71 57 -86h-224c1 15 9 66 57 87l-19 22c0 1 1 1 2 2zM127 309c-7 0 -14 6 -14 13s6 14 14 14
-c7 0 13 -7 13 -14s-5 -13 -13 -13zM225 309c-7 0 -13 6 -13 13s5 14 13 14c7 0 13 -7 13 -14s-6 -13 -13 -13z" />
- <glyph glyph-name="ion-social-android" unicode="&#xf225;" horiz-adv-x="352"
-d="M64 180v76h224v-76v-90c0 -7 -4 -14 -11 -14h-28v-52c0 -13 -11 -24 -24 -24v0h-1c-6 0 -10 2 -14 5c-5 4 -9 11 -9 19v52h-49v-52c0 -13 -11 -24 -24 -24s-24 11 -24 24v52h-29c-7 0 -11 7 -11 14v90zM328 272c13 0 24 -11 24 -24v-96c0 -13 -11 -24 -24 -24
-s-24 11 -24 24v96c0 13 11 24 24 24zM24 272c13 0 24 -11 24 -24v-96c0 -13 -11 -24 -24 -24s-24 11 -24 24v96c0 13 11 24 24 24zM231 359c48 -21 56 -72 57 -87h-224c1 15 8 66 56 87l-18 22c0 1 0 1 1 2s3 1 3 1l19 -23c14 5 31 9 51 9s36 -4 50 -9l20 23c0 1 1 0 2 -1
-l2 -2zM127 309c8 0 13 6 13 13s-6 14 -13 14c-8 0 -14 -7 -14 -14s7 -13 14 -13zM225 309c7 0 14 6 14 13s-7 14 -14 14c-8 0 -13 -7 -13 -14s6 -13 13 -13z" />
- <glyph glyph-name="ion-social-angular-outline" unicode="&#xf4d8;"
-d="M224 384l-188 -69l39 -230l149 -80l149 80l39 230zM224 416v0l224 -80l-46 -272l-178 -96l-178 96l-46 272zM312 96l-27 56h-122l-27 -56h-40l128 280l128 -280h-40zM182 192h84l-42 89z" />
- <glyph glyph-name="ion-social-angular" unicode="&#xf4d9;"
-d="M182 192l42 89l42 -89h-84zM224 416l224 -80l-46 -272l-178 -96l-178 96l-46 272zM312 96h40l-128 280l-128 -280h40l27 56h122z" />
- <glyph glyph-name="ion-social-apple-outline" unicode="&#xf226;" horiz-adv-x="320"
-d="M238 278c-15 0 -26 -4 -37 -8c-10 -4 -21 -8 -35 -8s-25 4 -37 8c-11 4 -22 8 -34 8c-11 0 -23 -3 -34 -10c-12 -7 -23 -18 -31 -31c-12 -18 -16 -47 -13 -77c3 -34 16 -69 35 -99c13 -21 30 -45 50 -45h1c8 0 13 3 20 6c10 5 23 10 44 10v0c21 0 34 -5 44 -10
-c7 -3 12 -6 19 -6v0c22 0 44 35 52 48c8 12 12 20 17 31c-12 7 -22 16 -30 28c-10 15 -17 33 -18 52c-1 18 2 37 10 53c6 12 14 22 24 30c-14 13 -31 20 -47 20zM238 294v0c25 0 52 -14 71 -39c-63 -36 -53 -128 11 -153c-9 -20 -13 -28 -24 -46c-16 -25 -37 -56 -65 -56h-1
-c-24 0 -31 16 -63 16v0c-33 0 -40 -16 -64 -16h-1c-28 0 -48 28 -64 53c-44 69 -48 150 -21 193c19 30 50 48 78 48c29 0 47 -16 71 -16c23 0 38 16 72 16zM214 364c-11 -5 -21 -13 -28 -22c-4 -5 -9 -13 -13 -23c-1 -3 -2 -6 -2 -9c11 4 21 11 28 21c4 5 12 18 15 33z
-M230 384v0c3 -23 -6 -46 -18 -62c-13 -17 -35 -30 -56 -30h-1c-4 22 6 44 18 60c14 17 37 31 57 32z" />
- <glyph glyph-name="ion-social-apple" unicode="&#xf227;" horiz-adv-x="320"
-d="M238 294v0c25 0 52 -14 71 -39c-63 -36 -53 -128 11 -153c-9 -20 -13 -28 -24 -46c-16 -25 -37 -56 -65 -56h-1c-24 0 -31 16 -63 16v0c-33 0 -40 -16 -64 -16h-1c-28 0 -48 28 -64 53c-44 69 -48 150 -21 193c19 30 50 48 78 48c29 0 47 -16 71 -16c23 0 38 16 72 16z
-M230 384v0c3 -23 -6 -46 -18 -62c-13 -17 -35 -30 -56 -30h-1c-4 22 6 44 18 60c14 17 37 31 57 32z" />
- <glyph glyph-name="ion-social-bitcoin-outline" unicode="&#xf2ae;" horiz-adv-x="320"
-d="M184 400h-8v-48v-16h-16h-32h-16v16v48h-9v-48v-16h-16h-72v-16h13c11 0 19 0 25 -3s10 -7 13 -13s3 -8 3 -20v-178c0 -11 0 -18 -3 -24v-1c-1 -3 -4 -10 -12 -14h-1c-5 -3 -8 -3 -17 -3h-13l-3 -16h67h16v-16v-48h9v48v16h16h32h16v-16v-48h8v49v16h15c23 1 41 5 55 10
-c16 6 28 15 37 26c8 11 12 29 13 42c1 14 -1 29 -4 36s-8 16 -21 23c-7 4 -14 6 -21 8l-46 11l43 19c4 2 7 4 12 9c6 5 9 12 11 16c2 5 4 13 3 22c-1 17 -4 29 -10 37c-7 9 -17 16 -31 21c-12 5 -24 7 -41 8l-15 1v15v47zM200 416v0v-63c20 -1 32 -4 45 -9
-c16 -6 29 -15 38 -27s12 -28 13 -45c1 -10 0 -20 -3 -28s-8 -16 -16 -23c-6 -6 -11 -9 -16 -11c9 -2 17 -6 25 -10c15 -8 24 -18 29 -30c4 -10 6 -30 5 -44c-1 -16 -6 -37 -16 -51c-11 -14 -26 -24 -45 -31c-15 -6 -33 -10 -59 -11v-65h-40v64h-32v-64h-41v64h-87l8 48h28
-c9 0 8 1 11 2s4 3 5 6s1 9 1 18v178c0 9 0 10 -1 12s-3 4 -6 6s-9 2 -18 2h-28v48h87v64h41v-64h32v64h40zM160 298v-74h-32v74h32zM160 176v0v-90h-32v90h32zM200 294v0c6 -2 10 -7 14 -12c4 -6 6 -13 6 -21s-2 -15 -7 -21c-4 -5 -7 -9 -13 -12v66zM200 174v0
-c5 -1 8 -1 12 -3c8 -3 14 -7 19 -13s8 -15 8 -24c0 -11 -2 -19 -10 -26s-13 -11 -23 -15c-2 -1 -4 0 -6 -1v82z" />
- <glyph glyph-name="ion-social-bitcoin" unicode="&#xf2af;" horiz-adv-x="320"
-d="M314 169c4 -10 7 -30 6 -44c-1 -16 -5 -37 -16 -51s-26 -24 -45 -31c-15 -6 -33 -10 -59 -11v-64h-40v64h-32v-64h-41v64h-87l9 48h26c9 0 9 0 12 1s4 4 5 7s2 8 2 17v173c0 9 -1 16 -2 18s-3 4 -6 6s-9 2 -18 2h-28v48h87v64h41v-64h32v64h40v-64c20 -1 33 -4 46 -9
-c16 -6 28 -15 37 -27s12 -28 13 -45c1 -10 0 -20 -3 -28c-2 -8 -8 -16 -16 -23c-6 -6 -11 -9 -16 -11c9 -2 17 -6 25 -10c15 -8 23 -18 28 -30zM128 298v-74h32v74h-32zM128 86h32v90h-32v-90zM200 294v-66c6 3 9 7 13 12c5 6 7 12 7 20s-2 15 -6 21c-4 5 -8 11 -14 13z
-M229 107c8 7 10 15 10 26c0 9 -3 19 -8 25s-12 10 -20 13c-4 2 -6 2 -11 3v-82c2 0 5 1 7 2c10 4 14 6 22 13z" />
- <glyph glyph-name="ion-social-buffer-outline" unicode="&#xf228;" horiz-adv-x="384"
-d="M7 284c-9 4 -9 11 0 15l169 82c4 2 10 3 16 3s12 -1 16 -3l169 -82c9 -4 9 -11 0 -15l-169 -82c-4 -2 -10 -3 -16 -3s-12 1 -16 3zM183 366l-156 -75l156 -75c2 -1 5 -1 9 -1s7 0 9 1l156 75l-156 75c-2 1 -5 2 -9 2s-7 -1 -9 -2zM377 200c9 -4 9 -12 0 -16l-169 -81
-c-4 -2 -10 -4 -16 -4s-12 2 -16 4l-169 81c-9 4 -9 12 0 16c0 0 27 13 33 16c5 3 7 3 13 0s123 -60 123 -60c4 -2 10 -3 16 -3s12 1 16 3c0 0 121 59 125 61s5 2 9 0s35 -17 35 -17zM201 117l156 75l-19 9l-123 -59c-6 -3 -15 -5 -23 -5s-17 2 -23 5l-123 59l-19 -9l156 -75
-c2 -1 5 -2 9 -2s7 1 9 2zM377 100c9 -4 9 -11 0 -15l-169 -82c-4 -2 -10 -3 -16 -3s-12 1 -16 3l-169 82c-9 4 -9 11 0 15c0 0 27 14 33 17c5 3 7 2 13 -1s123 -59 123 -59c4 -2 10 -3 16 -3s12 1 16 3c0 0 121 58 125 60s5 2 9 0s35 -17 35 -17zM201 18l156 75l-19 9
-l-123 -60c-6 -3 -15 -4 -23 -4s-17 1 -23 4l-123 60l-19 -9l156 -75c2 -1 5 -2 9 -2s7 1 9 2z" />
- <glyph glyph-name="ion-social-buffer" unicode="&#xf229;" horiz-adv-x="384"
-d="M7 284c-9 4 -9 11 0 15l169 82c4 2 10 3 16 3s12 -1 16 -3l169 -82c9 -4 9 -11 0 -15l-169 -82c-4 -2 -10 -3 -16 -3s-12 1 -16 3zM377 200c9 -4 9 -12 0 -16l-169 -81c-4 -2 -10 -4 -16 -4s-12 2 -16 4l-169 81c-9 4 -9 12 0 16c0 0 27 13 33 16c5 3 7 3 13 0
-s123 -60 123 -60c4 -2 10 -3 16 -3s12 1 16 3c0 0 121 59 125 61s5 2 9 0s35 -17 35 -17zM377 100c9 -4 9 -11 0 -15l-169 -82c-4 -2 -10 -3 -16 -3s-12 1 -16 3l-169 82c-9 4 -9 11 0 15c0 0 27 14 33 17c5 3 7 2 13 -1s123 -59 123 -59c4 -2 10 -3 16 -3s12 1 16 3
-c0 0 121 58 125 60s5 2 9 0s35 -17 35 -17z" />
- <glyph glyph-name="ion-social-chrome-outline" unicode="&#xf4da;"
-d="M224 416c123 0 224 -101 224 -224s-101 -224 -224 -224s-224 101 -224 224s101 224 224 224zM224 371c-57 0 -109 -27 -141 -68l54 -93c8 40 43 72 87 72h155c-30 54 -89 89 -155 89zM291 192c0 37 -30 67 -67 67s-67 -30 -67 -67s30 -67 67 -67s67 30 67 67zM45 192
-c0 -91 67 -166 154 -177l54 93c-9 -3 -19 -6 -29 -6c-34 0 -61 18 -77 45v0l-78 135c-16 -27 -24 -58 -24 -90zM224 13c99 0 179 80 179 179c0 24 -4 46 -13 67h-108c19 -17 32 -40 32 -67c0 -17 -5 -32 -13 -45v0z" />
- <glyph glyph-name="ion-social-chrome" unicode="&#xf4db;"
-d="M157 192c0 37 30 67 67 67s67 -30 67 -67s-30 -67 -67 -67s-67 30 -67 67zM445 230c2 -12 3 -25 3 -38c0 -106 -74 -195 -174 -218c-10 -2 -20 -4 -30 -5c-7 -1 -13 -1 -20 -1c-8 0 -17 0 -25 1v0v0v0v1l102 177c8 13 13 28 13 45c0 27 -13 50 -32 67h156
-c3 -9 5 -19 7 -29v0c-2 10 -4 20 -7 29v0c3 -9 5 -19 7 -29v0zM224 103c10 0 20 2 29 5l-78 -135v0c-42 9 -79 30 -108 59c-42 41 -67 97 -67 160c0 31 6 61 18 88c7 16 16 31 26 45v0l103 -178c16 -27 43 -44 77 -44zM59 343v0v1c24 26 55 47 90 59c23 8 49 13 75 13
-c73 0 138 -36 179 -90h1c10 -14 18 -29 25 -44v0c-7 15 -15 30 -25 44h-1c10 -14 19 -29 26 -44h-205c-44 0 -79 -32 -87 -72z" />
- <glyph glyph-name="ion-social-codepen-outline" unicode="&#xf4dc;"
-d="M356 244c5 -3 7 -6 7 -12v-81c0 -6 -3 -10 -8 -13c-41 -27 -82 -55 -123 -82c-6 -4 -11 -4 -17 0c-41 27 -81 55 -122 82c-5 3 -8 7 -8 13v80c0 6 3 11 8 14c41 27 81 54 122 81c6 4 11 4 17 0c41 -27 83 -55 124 -82zM236 296v-54c0 -1 1 -2 2 -3c16 -11 31 -21 47 -32
-c1 -1 3 -1 4 0l40 26zM212 295c0 0 -62 -41 -93 -62c14 -9 27 -17 40 -26c1 -1 3 -1 4 0c15 10 31 21 46 31c1 1 3 4 3 6v51zM109 211v-40l30 20zM212 87v53c0 1 -2 3 -3 4c-15 10 -31 21 -46 31c-2 1 -3 1 -5 0l-39 -26c31 -21 93 -62 93 -62zM227 165l39 26s-34 23 -40 27
-c-1 1 -4 0 -5 -1c-5 -3 -9 -6 -14 -9c-8 -6 -25 -17 -25 -17l39 -26c2 -1 4 -1 6 0zM236 87l93 62l-38 26c-2 2 -5 2 -7 0c-15 -10 -30 -21 -45 -31c-2 -2 -3 -3 -3 -6v-51zM338 171v40l-30 -20zM224 384c-51 0 -100 -20 -136 -56s-56 -85 -56 -136s20 -100 56 -136
-s85 -56 136 -56s100 20 136 56s56 85 56 136s-20 100 -56 136s-85 56 -136 56zM224 416v0c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224z" />
- <glyph glyph-name="ion-social-codepen" unicode="&#xf4dd;"
-d="M209 144c1 -1 3 -3 3 -4v-53s-62 41 -93 62l39 26c2 1 3 1 5 0c15 -10 31 -21 46 -31zM163 207c-1 -1 -3 -1 -4 0c-13 9 -26 17 -40 26c31 21 93 62 93 62v-51c0 -2 -2 -5 -3 -6c-15 -10 -31 -21 -46 -31zM238 239c-1 1 -2 2 -2 3v54l93 -63l-40 -26c-1 -1 -3 -1 -4 0
-c-16 11 -31 21 -47 32zM226 218c6 -4 40 -27 40 -27l-39 -26c-2 -1 -4 -1 -6 0l-39 26s17 11 25 17c5 3 9 6 14 9c1 1 4 2 5 1zM109 211l30 -20l-30 -20v40zM224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM363 151v81
-c0 6 -2 9 -7 12c-41 27 -83 55 -124 82c-6 4 -11 4 -17 0c-41 -27 -81 -54 -122 -81c-5 -3 -8 -8 -8 -14v-80c0 -6 3 -10 8 -13c41 -27 81 -55 122 -82c6 -4 11 -4 17 0c41 27 82 55 123 82c5 3 8 7 8 13zM284 175c2 2 5 2 7 0l38 -26l-93 -62v51c0 3 1 4 3 6
-c15 10 30 21 45 31zM338 171l-30 20l30 20v-40z" />
- <glyph glyph-name="ion-social-css3-outline" unicode="&#xf4de;" horiz-adv-x="384"
-d="M291 81l-99 -28l-98 28l-7 78h48l4 -40l53 -15v0v0l54 15l5 64h-112l-4 50h121l4 51h-184l-4 49h241zM0 416h384l-35 -403l-157 -45l-157 45zM319 37l30 347h-314l30 -347l127 -36z" />
- <glyph glyph-name="ion-social-css3" unicode="&#xf4df;" horiz-adv-x="384"
-d="M192 109v0zM0 416h384l-35 -403l-157 -45l-157 45zM291 81l22 252h-241l4 -49h184l-4 -51h-121l4 -50h112l-5 -64l-54 -15v0v0l-53 15l-4 40h-48l7 -78l98 -28z" />
- <glyph glyph-name="ion-social-designernews-outline" unicode="&#xf22a;"
-d="M259 302v-53l-65 103zM0 188zM297 352l151 -119v-201h-248l-200 156h63c46 0 77 33 77 82c0 20 -5 37 -15 51l-3 3l37 -29v-107h41l-2 98l63 -98h36v84v80zM432 48v178l-119 92v1v-47v-83v-17h-15h-37h-9l-4 8l-33 50l1 -42v-16h-16h-41h-16v16v29c-3 -6 -7 -12 -12 -17
-c-8 -9 -18 -16 -30 -21s-24 -7 -38 -7h-16l159 -124h226zM59 298h-1h-3v-57h4c8 0 13 2 17 6c5 6 6 15 6 22c0 26 -12 29 -23 29zM59 314v0c25 0 39 -16 39 -45c0 -28 -14 -44 -40 -44h-19v89h20z" />
- <glyph glyph-name="ion-social-designernews" unicode="&#xf22b;"
-d="M258 303l1 -53l-64 102zM297 352l151 -118v-202h-248l-200 157v0h63c46 0 77 33 77 82c0 20 -5 37 -15 51l-3 3l37 -29v-107h40l-2 99l64 -99h36v83v80zM98 270c0 -28 -14 -44 -40 -44h-19v89h19c26 0 40 -16 40 -45z" />
- <glyph glyph-name="ion-social-dribbble-outline" unicode="&#xf22c;" horiz-adv-x="384"
-d="M192 384c106 0 192 -86 192 -192s-86 -192 -192 -192s-192 86 -192 192s86 192 192 192zM314 296c-17 -25 -47 -47 -85 -64c5 -10 9 -20 13 -31c33 3 75 4 110 2c-2 35 -16 68 -38 93zM192 352c-14 0 -26 -2 -39 -5c23 -23 43 -53 62 -87c34 14 62 33 79 55
-c-28 23 -63 37 -102 37zM120 334c-41 -21 -71 -58 -83 -103h25c44 0 85 6 121 17c-19 34 -40 63 -63 86zM32 200v-8c0 -40 15 -78 40 -106c24 45 67 83 122 106c4 2 8 3 14 4c-3 8 -6 16 -10 24c-40 -13 -88 -20 -138 -21c-9 0 -19 1 -28 1zM192 32c20 0 39 3 57 10
-c-3 25 -8 53 -15 79c-4 17 -10 33 -16 49c-7 -2 -13 -4 -17 -6c-48 -22 -86 -56 -107 -98c27 -21 61 -34 98 -34zM278 58c40 26 68 67 73 116c-30 2 -68 3 -99 0c4 -12 9 -25 12 -38c7 -27 11 -52 14 -78z" />
- <glyph glyph-name="ion-social-dribbble" unicode="&#xf22d;" horiz-adv-x="384"
-d="M192 384c106 0 192 -86 192 -192s-86 -192 -192 -192s-192 86 -192 192s86 192 192 192zM192 32c88 0 160 72 160 160s-72 160 -160 160s-160 -72 -160 -160s72 -160 160 -160zM242 201c-4 11 -8 21 -13 31c25 11 47 24 63 39c15 -19 26 -42 28 -67c-26 0 -55 -1 -78 -3z
-M271 292c-15 -12 -34 -23 -56 -32c-12 22 -24 41 -38 59c5 1 10 1 15 1c30 0 57 -11 79 -28zM142 310c15 -18 28 -39 41 -62c-34 -10 -72 -16 -113 -17c11 36 38 65 72 79zM319 176c-4 -33 -21 -63 -46 -83c-3 14 -5 28 -9 43c-3 13 -8 26 -12 38c21 2 45 3 67 2zM194 192
-c-43 -18 -79 -46 -104 -78c-16 22 -26 49 -26 78v7c49 1 95 8 134 21c4 -8 7 -16 10 -24c-6 -1 -10 -2 -14 -4zM219 170c6 -16 11 -32 15 -49c4 -15 7 -31 10 -46c-16 -7 -34 -11 -52 -11c-31 0 -59 11 -81 29c22 30 53 54 90 71c4 2 11 4 18 6z" />
- <glyph glyph-name="ion-social-dropbox-outline" unicode="&#xf22e;" horiz-adv-x="384"
-d="M113 371l79 -66l-114 -71l-78 63zM27 295l52 -42l86 53l-53 46zM306 235l78 -63l-78 -51v-39l-114 -69l-114 68v39l-78 52l78 63l114 -71l-79 -66l-19 12v-20l98 -59l98 59v20l-19 -12l-79 66zM79 217l-52 -44l85 -55l53 44zM219 162l53 -44l85 56l-52 43zM384 297
-l-78 -63l-114 71l79 66zM219 305l86 -52l52 42l-85 56z" />
- <glyph glyph-name="ion-social-dropbox" unicode="&#xf22f;" horiz-adv-x="384"
-d="M113 371l79 -66l-114 -71l-78 63zM0 172l78 62l114 -70l-79 -66zM192 164l114 70l78 -62l-113 -74zM384 297l-78 -63l-114 71l79 66zM192 150l80 -66l34 22v-25l-114 -68l-114 68v25l34 -22z" />
- <glyph glyph-name="ion-social-euro-outline" unicode="&#xf4e0;" horiz-adv-x="320"
-d="M214 384c-53 0 -91 -9 -115 -27c-22 -16 -33 -40 -33 -74v-11v-17h-16h-34v-16h34h16v-15v-48v-17h-16h-34v-16h34h16v-15v-27c0 -34 11 -58 33 -74c24 -18 62 -27 115 -27c31 0 59 2 88 8l-5 35c-30 -4 -55 -7 -80 -7c-36 0 -59 6 -74 19c-19 16 -21 40 -21 60v13v15h16
-h103l3 16h-106h-16v17v48v15h16h118l2 16h-120h-16v17v2c0 16 2 39 21 55c16 13 39 19 74 19c24 0 51 -3 80 -7l5 35c-29 6 -57 8 -88 8zM214 400v0c35 0 68 -3 106 -12l-9 -65c-37 6 -68 9 -94 9c-64 0 -79 -22 -79 -58v-3h139l-8 -48h-131v-48h124l-7 -48h-117v-12
-c0 -44 15 -63 79 -63c26 0 57 3 94 9l9 -65c-38 -9 -71 -12 -106 -12c-115 0 -164 41 -164 117v26h-50v48h50v48h-50v48h50v12c0 76 49 117 164 117z" />
- <glyph glyph-name="ion-social-euro" unicode="&#xf4e1;" horiz-adv-x="320"
-d="M138 176h124l-7 -48h-117v-13c0 -44 15 -63 79 -63c26 0 56 3 93 9l10 -65c-38 -9 -71 -12 -106 -12c-115 0 -164 41 -164 117v27h-50v48h50v48h-50v48h50v11c0 76 49 117 164 117c35 0 68 -3 106 -12l-10 -65c-37 6 -67 9 -93 9c-64 0 -79 -22 -79 -58v-2h138l-7 -48
-h-131v-48z" />
- <glyph glyph-name="ion-social-facebook-outline" unicode="&#xf230;" horiz-adv-x="192"
-d="M128 256h64l-8 -64h-56v-192h-83v192h-45v64h45v43c0 54 23 85 91 85h56v-64h-34c-27 0 -30 -9 -30 -26v-38zM170 208l4 32h-45h-17v17v37c0 10 1 21 9 30c10 11 25 12 37 12h18v32h-40c-28 0 -49 -6 -60 -18c-10 -11 -15 -27 -15 -51v-43v-16h-15h-30v-32h30h15v-16
-v-176h51v176v16h17h41z" />
- <glyph glyph-name="ion-social-facebook" unicode="&#xf231;" horiz-adv-x="192"
-d="M128 256h64l-8 -64h-56v-192h-83v192h-45v64h45v43c0 54 23 85 91 85h56v-64h-34c-27 0 -30 -9 -30 -26v-38z" />
- <glyph glyph-name="ion-social-foursquare-outline" unicode="&#xf34c;" horiz-adv-x="320"
-d="M302 284c-12 -60 -25 -131 -27 -138zM281 416c35 0 45 -20 37 -57c-3 -16 -10 -44 -16 -75l-27 -137c-3 -13 -8 -35 -39 -35h-72c-3 0 -3 0 -6 -3c-2 -2 -115 -133 -115 -133c-9 -10 -23 -8 -28 -6s-15 8 -15 26v380s10 40 43 40h238zM280 352c6 31 6 32 -24 32h-195
-c-29 0 -29 -3 -29 -28v-297c0 -38 1 -38 3 -38s10 8 29 31c0 0 78 89 79 90c2 2 3 2 6 2h62c26 0 28 6 33 31c4 21 36 177 36 177zM302 284c6 31 13 59 16 75zM233 352c5 0 9 -5 8 -11l-8 -44c-1 -4 -6 -9 -11 -9h-75c-8 0 -8 -5 -8 -13v-6c0 -8 0 -13 8 -13h64
-s11 -6 10 -12s-11 -51 -12 -54s-4 -9 -11 -9h-62c-9 0 -11 -1 -17 -8l-54 -63c-1 -1 -1 -1 -1 0v231c0 5 5 11 11 11h158z" />
- <glyph glyph-name="ion-social-foursquare" unicode="&#xf34d;" horiz-adv-x="320"
-d="M281 416c35 0 45 -20 37 -57c-10 -49 -40 -202 -43 -213c-3 -13 -8 -34 -39 -34h-72c-3 0 -3 0 -6 -3c-2 -2 -115 -133 -115 -133c-9 -10 -23 -8 -28 -6s-15 8 -15 26v380s10 40 43 40h238zM275 146c3 11 33 164 43 213zM267 351c2 9 -5 16 -12 16h-191
-c-9 0 -15 -8 -15 -15v-296c0 -1 1 -1 2 0c0 0 70 84 78 94s11 11 23 11h64c9 0 14 8 15 12s8 43 10 51s-6 16 -13 16h-82c-10 0 -18 8 -18 18v13c0 10 8 17 18 17h96s14 6 15 12z" />
- <glyph glyph-name="ion-social-freebsd-devil" unicode="&#xf2c4;" horiz-adv-x="512"
-d="M503 333c19 -37 8 -81 -20 -108s-60 -33 -60 -33c2 -32 16 -59 -41 -102c-43 -32 2 -90 2 -90c10 -14 23 -19 32 -32h-272s15 14 -7 32c0 0 -20 17 -18 29s6 13 9 15s0 7 0 7l-19 19s-13 -13 -44 -13c-38 0 -65 39 -65 39h46s-6 -8 -7 -13c-1 -4 1 -5 1 -5s11 -6 22 -6
-c17 0 33 12 33 12l-24 22l-15 -4l-16 37l39 -10l-1 -15l28 -18s9 9 7 27s-9 26 -9 26s-4 0 -9 -4s-6 -6 -6 -6l-10 44s43 -19 50 -63c3 -20 -6 -35 -6 -35l17 -10s6 5 17 7s23 2 29 -8s5 -12 4 -19s0 -9 6 -11s6 -6 11 -8s15 -6 21 -2s8 11 8 18v16s-9 8 -32 20
-s-54 22 -66 40s-12 44 0 57c9 10 23 25 26 35c4 14 4 42 4 42s-10 16 -8 40c2 30 22 84 96 114c0 0 -40 -55 -20 -80c0 0 37 11 77 9c31 -2 56 -12 73 -28s25 -23 47 -17s28 17 28 33c0 19 -16 51 -16 51s36 -7 58 -51zM195 245c14 4 21 -11 21 -11c14 25 30 60 22 64
-s-64 -25 -66 -88c0 0 6 31 23 35zM232 230c5 7 34 8 37 -17c4 -35 -24 -57 -24 -57s7 -2 23 2c17 4 43 29 43 70s-21 66 -41 62s-38 -60 -38 -60z" />
- <glyph glyph-name="ion-social-github-outline" unicode="&#xf232;"
-d="M224 416c124 0 224 -103 224 -230c0 -101 -64 -188 -153 -218h-4c-8 0 -12 7 -12 12c0 8 1 31 1 62c0 21 -8 36 -16 43c50 6 103 25 103 113c0 25 -9 46 -23 62c2 6 10 29 -2 61h-5c-8 0 -27 -3 -57 -24c-18 5 -37 8 -56 8s-38 -3 -56 -8c-30 21 -49 24 -57 24h-5
-c-12 -32 -4 -55 -2 -61c-14 -16 -23 -37 -23 -62c0 -88 52 -107 102 -113c-6 -6 -12 -16 -14 -31c-6 -3 -16 -6 -26 -6c-13 0 -28 5 -39 25c0 0 -13 22 -35 24v0c-2 0 -21 0 -1 -14c0 0 15 -8 25 -34c0 0 10 -33 53 -33c7 0 14 0 22 2v-39c0 -5 -3 -11 -11 -11h-4
-c-89 30 -153 116 -153 218c0 127 100 230 224 230zM146 -0c-15 0 -28 4 -38 9c14 -10 28 -17 44 -23v6v8h-6zM157 73c-16 4 -35 10 -52 24c6 -6 11 -11 13 -16c7 -12 14 -17 25 -17c4 0 9 1 12 2c1 2 1 5 2 7zM347 14c17 13 32 28 45 46c26 37 40 80 40 126
-c0 29 -5 58 -16 84c-10 25 -26 48 -45 68s-41 34 -66 45c-26 11 -53 17 -81 17s-55 -6 -81 -17c-25 -11 -47 -25 -66 -45s-35 -42 -45 -68c-11 -26 -16 -55 -16 -84c0 -46 14 -89 40 -126c10 -14 22 -27 35 -38c-7 8 -11 16 -13 22c-7 18 -15 24 -17 25h-2v1
-c-5 3 -20 13 -15 28c3 9 12 15 25 15h1v0v0c13 -1 24 -6 32 -13c-21 19 -37 48 -37 98c0 24 7 47 21 66c-3 13 -6 34 5 62l3 8l7 2c2 0 5 1 10 1c12 0 31 -3 60 -22c17 4 35 6 53 6v0v0c18 0 36 -2 53 -6c29 19 48 22 60 22c5 0 8 -1 10 -1l7 -2l3 -7c11 -27 8 -50 5 -63
-c14 -19 21 -41 21 -66c0 -92 -55 -117 -92 -125c3 -8 5 -18 5 -30v-51v-6c18 7 35 16 51 28z" />
- <glyph glyph-name="ion-social-github" unicode="&#xf233;"
-d="M224 416c124 0 224 -103 224 -230c0 -101 -64 -188 -153 -218h-4c-8 0 -12 7 -12 12c0 8 1 31 1 62c0 21 -8 36 -16 43c50 6 103 25 103 113c0 25 -9 46 -23 62c2 6 10 29 -2 61h-5c-8 0 -27 -3 -57 -24c-18 5 -37 8 -56 8s-38 -3 -56 -8c-30 21 -49 24 -57 24h-5
-c-12 -32 -4 -55 -2 -61c-14 -16 -23 -37 -23 -62c0 -88 52 -107 102 -113c-6 -6 -12 -16 -14 -31c-6 -3 -16 -6 -26 -6c-13 0 -28 5 -39 25c0 0 -13 22 -35 24v0c-2 0 -21 0 -1 -14c0 0 15 -8 25 -34c0 0 10 -33 53 -33c7 0 14 0 22 2v-39c0 -5 -3 -11 -11 -11h-4
-c-89 30 -153 116 -153 218c0 127 100 230 224 230z" />
- <glyph glyph-name="ion-social-google-outline" unicode="&#xf34e;" horiz-adv-x="256"
-d="M191 366c12 -10 37 -30 37 -68c0 -37 -21 -55 -43 -72c-7 -7 -15 -13 -15 -24s8 -17 14 -22l18 -14c23 -19 43 -36 43 -71c0 -47 -47 -95 -135 -95c-74 0 -110 35 -110 72c0 18 10 44 40 62c32 19 75 21 98 23c-7 9 -16 18 -16 34c0 9 2 14 5 20c-6 0 -11 -1 -16 -1
-c-54 0 -85 40 -85 79c0 23 11 48 33 67c29 24 63 28 91 28h106l-33 -18h-32zM155 142c-4 1 -7 1 -12 1s-32 -1 -54 -8c-11 -4 -44 -16 -44 -52s36 -62 91 -62c49 0 75 24 75 55c0 26 -17 39 -56 66zM170 238c12 12 13 28 13 37c0 36 -22 92 -65 92c-13 0 -28 -6 -36 -16
-c-9 -11 -11 -25 -11 -38c0 -34 20 -89 64 -89c13 0 27 6 35 14z" />
- <glyph glyph-name="ion-social-google" unicode="&#xf34f;" horiz-adv-x="288"
-d="M210 172c22 -18 45 -36 45 -73c0 -49 -48 -99 -140 -99c-80 0 -115 39 -115 77c0 10 3 42 42 65c27 16 61 20 85 22c-4 7 -8 16 -8 27c0 4 0 7 1 10h-4c-19 0 -46 4 -67 26c-15 15 -24 36 -24 57c0 26 13 53 35 71v0c32 25 70 29 95 29h133l-60 -33h-13
-c11 -13 23 -31 23 -58c0 -40 -25 -59 -45 -74v-1c-6 -6 -11 -10 -11 -17c0 -6 4 -10 10 -15v0zM85 308c0 -13 4 -33 14 -51c7 -12 20 -27 41 -27c10 0 21 4 28 11c10 10 10 25 10 30c0 18 -6 38 -15 54c-7 13 -20 27 -40 27c-11 0 -22 -5 -29 -13c-6 -7 -9 -18 -9 -31z
-M206 80c0 20 -13 31 -50 56c-3 0 -4 1 -8 1c-6 0 -32 -2 -51 -8c-16 -6 -37 -16 -37 -42c0 -31 32 -51 80 -51c41 0 66 17 66 44z" />
- <glyph glyph-name="ion-social-googleplus-outline" unicode="&#xf234;"
-d="M192 366c12 -10 36 -30 36 -68c0 -37 -21 -55 -43 -72c-7 -7 -15 -13 -15 -24s8 -18 14 -22l18 -14c23 -19 43 -36 43 -71c0 -47 -47 -95 -135 -95c-74 0 -110 35 -110 72c0 18 10 44 40 62c32 19 75 21 98 23c-7 9 -16 18 -16 34c0 9 3 14 5 20c-6 0 -11 -1 -16 -1
-c-54 0 -85 40 -85 79c0 23 10 48 32 67c29 24 64 28 92 28h106l-33 -18h-31zM155 142c-4 0 -7 1 -12 1s-32 -1 -54 -8c-11 -4 -44 -16 -44 -52s36 -62 91 -62c49 0 75 24 75 55c0 26 -17 39 -56 66zM170 238c12 12 13 28 13 37c0 36 -22 92 -65 92c-13 0 -28 -6 -36 -16
-c-9 -11 -11 -24 -11 -37c0 -34 20 -90 64 -90c13 0 27 6 35 14zM448 306v-18h-78v-81h-18v81h-80v18h80v78h18v-78h78z" />
- <glyph glyph-name="ion-social-googleplus" unicode="&#xf235;"
-d="M210 172c22 -18 45 -36 45 -73c0 -49 -47 -99 -139 -99c-80 0 -116 39 -116 77c0 10 3 42 42 65c27 16 61 21 85 23c-4 7 -8 15 -8 26c0 4 0 7 1 10h-4c-19 0 -46 4 -67 26c-15 15 -24 36 -24 57c0 26 13 53 35 71v0c32 25 69 29 94 29h134l-60 -33h-13
-c11 -13 23 -31 23 -58c0 -40 -25 -59 -45 -74v-1c-6 -6 -11 -10 -11 -17c0 -6 4 -10 10 -15v0zM85 308c0 -13 4 -33 14 -51c7 -12 21 -27 41 -27c10 0 21 4 28 11c10 10 10 25 10 30c0 18 -6 37 -15 53c-8 13 -20 28 -40 28c-11 0 -23 -5 -29 -13c-6 -7 -9 -18 -9 -31z
-M206 80c0 20 -13 31 -50 56c-3 0 -4 1 -8 1c-6 0 -31 -2 -50 -8c-16 -6 -38 -16 -38 -42c0 -31 32 -51 80 -51c41 0 66 17 66 44zM370 306h78v-34h-78v-81h-34v81h-80v34h80v78h34v-78z" />
- <glyph glyph-name="ion-social-hackernews-outline" unicode="&#xf236;" horiz-adv-x="384"
-d="M352 352h-320v-320h320v320zM384 384v0v-384h-384v384h384zM233 289h45l-64 -120v-72h-40v72l-66 120h47l40 -84z" />
- <glyph glyph-name="ion-social-hackernews" unicode="&#xf237;" horiz-adv-x="384"
-d="M0 384h384v-384h-384v384zM214 169l64 120h-45l-38 -84l-40 84h-47l66 -120v-72h40v72z" />
- <glyph glyph-name="ion-social-html5-outline" unicode="&#xf4e2;" horiz-adv-x="384"
-d="M0 416h384l-35 -403l-157 -45l-157 45zM319 37l30 347h-314l30 -347l127 -36zM84 184l-13 150h241l-4 -50h-184l4 -51h176l-14 -151l-98 -28l-99 28l-6 77h48l3 -39l54 -15l53 15l6 64h-167z" />
- <glyph glyph-name="ion-social-html5" unicode="&#xf4e3;" horiz-adv-x="384"
-d="M0 416h384l-35 -403l-157 -45l-157 45zM308 284l4 50h-241l13 -150h167l-6 -64l-53 -15l-54 15l-3 39h-48l6 -78l99 -27l98 28l14 151h-176l-4 51h184z" />
- <glyph glyph-name="ion-social-instagram-outline" unicode="&#xf350;" horiz-adv-x="384"
-d="M384 336v-289c0 -26 -22 -47 -48 -47h-288c-26 0 -48 21 -48 47v289c0 26 22 48 48 48h288c26 0 48 -22 48 -48zM192 272c-44 0 -80 -36 -80 -80s36 -80 80 -80s80 36 80 80s-36 80 -80 80zM352 288v48c0 9 -7 16 -16 16h-48c-9 0 -16 -7 -16 -16v-48c0 -9 7 -16 16 -16
-h48c9 0 16 7 16 16zM337 32c9 0 15 7 15 16v176h-52c3 -10 4 -21 4 -32c0 -30 -11 -58 -32 -79s-50 -33 -80 -33s-58 12 -79 33s-33 49 -33 79c0 11 2 22 5 32h-53v-176c0 -9 8 -16 17 -16h288z" />
- <glyph glyph-name="ion-social-instagram" unicode="&#xf351;" horiz-adv-x="384"
-d="M112 192c0 53 27 80 80 80s80 -27 80 -80s-27 -80 -80 -80s-80 27 -80 80zM113 271c-14 -14 -23 -29 -28 -47h-85v112c0 13 4 25 14 34s22 14 35 14h288c13 0 24 -5 33 -14s14 -21 14 -34v-112h-84c-5 18 -14 33 -28 47c-22 22 -49 33 -80 33s-57 -11 -79 -33zM352 300
-v39c0 4 -2 7 -4 9s-5 4 -9 4h-38c-4 0 -7 -2 -9 -4s-4 -5 -4 -9v-39c0 -4 2 -7 4 -9s5 -3 9 -3h38c4 0 7 1 9 3s4 5 4 9zM272 113c22 22 32 48 32 79h80v-144c0 -13 -5 -24 -14 -34s-20 -14 -33 -14h-288c-13 0 -24 4 -34 14s-15 21 -15 34v144h81c0 -31 10 -57 32 -79
-s48 -33 79 -33s58 11 80 33z" />
- <glyph glyph-name="ion-social-javascript-outline" unicode="&#xf4e4;"
-d="M160 344h-48v-196c0 -30 -6 -50 -17 -64c-11 -13 -26 -20 -48 -20c-9 0 -18 1 -25 2l-4 -30c11 -2 25 -4 37 -4c34 0 59 8 76 25c19 18 29 48 29 90v197zM176 360v0v-213c0 -97 -49 -131 -121 -131c-18 0 -40 3 -55 8l8 62c10 -4 24 -6 39 -6c31 0 49 15 49 68v212h80z
-M350 352c-34 0 -62 -9 -82 -26c-19 -15 -28 -36 -28 -60c0 -20 7 -36 21 -51c14 -14 34 -26 61 -36c23 -8 38 -15 48 -24c12 -11 18 -23 18 -38c0 -16 -7 -31 -20 -40c-12 -9 -28 -14 -48 -14c-28 0 -52 8 -70 15l-7 -32c18 -8 44 -14 72 -14c38 0 70 9 90 27
-c18 16 27 38 27 63c0 21 -5 36 -17 50s-31 27 -58 37v0v0c-38 15 -72 28 -72 63c0 14 7 27 19 36c11 9 26 13 45 13c24 0 43 -5 57 -11l10 32c-19 6 -42 10 -66 10zM350 368v0c38 0 65 -7 85 -16l-19 -64c-13 7 -35 17 -67 17s-48 -16 -48 -33c0 -22 19 -31 62 -48
-c58 -22 85 -53 85 -102c0 -57 -42 -106 -133 -106c-38 0 -72 10 -91 21l15 63v0c20 -11 49 -21 81 -21c34 0 52 15 52 38c0 21 -15 33 -55 47c-55 20 -93 52 -93 102c0 58 49 102 126 102z" />
- <glyph glyph-name="ion-social-javascript" unicode="&#xf4e5;"
-d="M176 360v0v-213c0 -97 -49 -131 -121 -131c-18 0 -40 3 -55 8l8 62c10 -4 24 -6 39 -6c31 0 49 15 49 68v212h80zM350 368v0c38 0 65 -7 85 -16l-19 -64c-13 7 -35 17 -67 17s-48 -16 -48 -33c0 -22 19 -31 62 -48c58 -22 85 -53 85 -102c0 -57 -42 -106 -133 -106
-c-38 0 -72 10 -91 21l15 63v0c20 -11 49 -21 81 -21c34 0 52 15 52 38c0 21 -15 33 -55 47c-55 20 -93 52 -93 102c0 58 49 102 126 102z" />
- <glyph glyph-name="ion-social-linkedin-outline" unicode="&#xf238;" horiz-adv-x="384"
-d="M119 64v0h-55v171h55v-171zM93 261v0v0c-18 0 -29 13 -29 29c0 17 12 30 30 30s29 -13 29 -30c0 -16 -12 -29 -30 -29zM257 239c36 0 63 -24 63 -75v-100h-55v94c0 22 -8 37 -28 37c-15 0 -24 -10 -28 -20c-2 -4 -2 -9 -2 -14v-97h-55v171h55v-24c8 11 21 28 50 28z
-M353 384c18 0 31 -13 31 -30v-321c0 -17 -13 -33 -31 -33h-320c-18 0 -33 16 -33 33v321c0 17 15 30 33 30h320zM350 32c1 0 2 1 2 2v316c0 1 -1 2 -2 2h-316s-2 -1 -2 -2v-315s1 -3 3 -3h315z" />
- <glyph glyph-name="ion-social-linkedin" unicode="&#xf239;" horiz-adv-x="384"
-d="M353 384c18 0 31 -13 31 -30v-321c0 -17 -13 -33 -31 -33h-320c-18 0 -33 16 -33 33v321c0 17 15 30 33 30h320zM119 64v171h-55v-171h55zM93 261c18 0 30 13 30 29c0 17 -11 30 -29 30s-30 -13 -30 -30c0 -16 11 -29 29 -29v0zM320 64v100c0 51 -27 75 -63 75
-c-29 0 -42 -17 -50 -28v24h-55v-171h55v97c0 5 0 10 2 14c4 10 13 20 28 20c20 0 28 -15 28 -37v-94h55z" />
- <glyph glyph-name="ion-social-markdown" unicode="&#xf4e6;"
-d="M416 352c18 0 32 -14 32 -32v-256c0 -18 -14 -32 -32 -32h-384c-18 0 -32 14 -32 32v256c0 18 14 32 32 32h384zM252 96v0v192h-56l-42 -68l-42 68h-56v-192h56v96l42 -54l42 54v-96h56zM336 96v0l70 96h-42v96h-56v-96h-42z" />
- <glyph glyph-name="ion-social-nodejs" unicode="&#xf4e7;" horiz-adv-x="384"
-d="M192 -32c-6 0 -12 2 -17 5l-53 32c-8 5 -4 6 -1 7c11 4 14 5 25 12c1 1 3 1 4 0l39 -23c1 -1 4 -1 5 0l156 92c1 1 2 2 2 4v187c0 2 0 4 -2 5l-156 94c-1 1 -3 1 -4 0l-155 -94c-2 -1 -3 -3 -3 -5v-187c0 -2 0 -3 2 -4l40 -24c24 -12 38 1 38 15v183c0 3 2 5 5 5h22
-c3 0 5 -2 5 -5v-183c0 -33 -19 -52 -49 -52c-9 0 -17 1 -37 11l-41 24c-10 6 -17 18 -17 30v190c0 12 7 24 17 30l158 95c10 6 24 6 34 0l158 -95c10 -6 17 -18 17 -30v-190c0 -12 -7 -24 -17 -30l-158 -94c-5 -3 -11 -5 -17 -5v0zM241 96c-65 0 -84 31 -84 59c0 3 1 5 4 5
-h21c2 0 5 -2 5 -4c3 -22 16 -31 54 -31c33 0 47 11 47 29c0 11 -3 18 -55 23c-43 4 -71 15 -71 51c0 33 28 52 73 52c46 0 76 -14 79 -51c0 -1 -1 -2 -2 -3s-2 -2 -3 -2h-20c-2 0 -5 2 -5 4c-4 17 -16 23 -49 23c-36 0 -41 -12 -41 -22c0 -12 5 -16 54 -23s72 -16 72 -51
-c0 -36 -29 -59 -79 -59v0v0z" />
- <glyph glyph-name="ion-social-octocat" unicode="&#xf4e8;"
-d="M146 161c9 0 16 -4 22 -13s10 -20 10 -32s-4 -22 -10 -31s-14 -13 -22 -13c-9 0 -17 4 -23 13s-9 19 -9 31s3 24 9 32c6 9 14 13 23 13zM303 161c9 0 16 -4 22 -13s9 -20 9 -32s-3 -22 -9 -31s-13 -13 -22 -13s-18 4 -24 13s-9 19 -9 31s3 24 9 32c6 9 15 13 24 13z
-M414 276c24 -27 34 -66 34 -96c0 -24 -1 -46 -6 -65c-6 -19 -13 -35 -21 -47c-9 -12 -19 -23 -32 -32s-24 -17 -34 -21s-22 -8 -36 -10c-13 -2 -24 -4 -31 -4c0 0 -28 -1 -64 -1s-64 1 -64 1c-7 0 -18 2 -31 4c-14 2 -26 6 -36 10s-22 12 -34 21c-13 9 -23 20 -32 32
-c-8 12 -15 28 -21 47c-5 19 -6 41 -6 65c0 31 10 70 34 96c0 0 -2 14 0 39s7 48 16 69c30 -3 67 -20 112 -51c15 4 36 6 62 6c28 0 48 -2 62 -6c20 14 39 24 58 33c19 8 33 13 41 15s13 3 13 3c9 -21 14 -44 16 -69s0 -39 0 -39v0zM348 42c28 13 42 40 42 81
-c0 24 -8 43 -26 59c-9 9 -20 13 -32 15s-31 1 -56 -1s-40 -4 -52 -4s-25 2 -42 3s-30 3 -39 3c-10 0 -20 1 -31 -2s-21 -7 -28 -14c-17 -15 -25 -35 -25 -59c0 -41 13 -68 41 -81c27 -13 69 -18 123 -18h2c54 0 95 5 123 18z" />
- <glyph glyph-name="ion-social-pinterest-outline" unicode="&#xf2b0;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224s-224 100 -224 224s100 224 224 224zM360 56c36 36 56 85 56 136s-20 100 -56 136s-85 56 -136 56s-100 -20 -136 -56s-56 -85 -56 -136s20 -100 56 -136c14 -14 31 -25 48 -34c1 6 2 10 3 16c4 18 29 122 29 122
-s-8 15 -8 36c0 33 20 58 44 58c20 0 30 -16 30 -34c0 -20 -13 -51 -20 -79c-6 -24 12 -43 35 -43c42 0 71 54 71 119c0 49 -33 85 -93 85c-68 0 -110 -50 -110 -107c0 -20 6 -33 15 -44c4 -5 5 -6 3 -12c-1 -4 -4 -14 -5 -18c-2 -6 -6 -8 -11 -6c-31 13 -46 48 -46 86
-c0 64 54 140 160 140c86 0 142 -63 142 -129c0 -88 -49 -153 -121 -153c-24 0 -47 13 -55 28c0 0 -12 -52 -15 -62c-2 -6 -4 -13 -7 -19c15 -4 31 -6 47 -6c51 0 100 20 136 56z" />
- <glyph glyph-name="ion-social-pinterest" unicode="&#xf2b1;"
-d="M224 416c124 0 224 -100 224 -224s-100 -224 -224 -224c-22 0 -44 3 -64 9c8 14 18 31 23 48c3 10 16 62 16 62c8 -15 30 -28 54 -28c72 0 121 65 121 153c0 66 -56 129 -142 129c-106 0 -160 -76 -160 -140c0 -39 15 -73 46 -86c5 -2 10 0 12 6c1 4 3 14 4 18
-c2 6 1 7 -3 12c-9 11 -15 24 -15 44c0 57 42 107 110 107c60 0 94 -36 94 -85c0 -65 -29 -119 -71 -119c-24 0 -42 19 -36 43c7 28 20 59 20 79c0 18 -10 34 -30 34c-24 0 -43 -25 -43 -58c0 -21 7 -36 7 -36s-25 -104 -29 -122c-4 -17 -5 -35 -4 -51
-c-79 35 -134 113 -134 205c0 124 100 224 224 224z" />
- <glyph glyph-name="ion-social-python" unicode="&#xf4e9;" horiz-adv-x="384"
-d="M129 199c-29 -5 -49 -30 -49 -57v-43v-3h-15c-29 0 -54 29 -62 69c-2 9 -3 17 -3 27v1c0 53 29 95 65 95h127v16h-96v29c0 26 7 40 46 47c13 2 29 4 45 4s39 -1 55 -4c25 -4 46 -22 46 -47v-57v-31c0 -21 -14 -38 -33 -43c-4 -1 -8 -2 -13 -2h-104h3c-4 0 -8 0 -12 -1z
-M140 321c10 0 17 7 17 17s-7 18 -17 18s-18 -8 -18 -18s8 -17 18 -17zM380 225c3 -10 4 -21 4 -33c0 -16 -3 -30 -7 -43c-11 -31 -33 -53 -58 -53h-127v-16h96v-26c0 -26 -23 -40 -46 -47c-35 -10 -68 -9 -97 0c-25 7 -49 22 -49 47v54v33c0 21 14 36 33 41c4 1 8 2 13 2
-h104c3 0 6 1 9 1c27 4 49 28 49 62v38v3h15c28 0 52 -26 61 -63zM244 65c-10 0 -18 -7 -18 -17s8 -18 18 -18s17 8 17 18s-7 17 -17 17z" />
- <glyph glyph-name="ion-social-reddit-outline" unicode="&#xf23a;" horiz-adv-x="449"
-d="M259 160c0 21 11 31 32 31s32 -10 32 -31s-11 -32 -32 -32s-32 11 -32 32zM127 160c0 21 11 31 32 31s32 -10 32 -31s-11 -32 -32 -32s-32 11 -32 32zM449 197c0 -20 -9 -36 -27 -45c1 -5 1 -9 1 -14c0 -38 -19 -71 -58 -98s-85 -40 -140 -40s-102 13 -141 40
-s-58 59 -58 97c0 5 0 10 1 15c-18 9 -27 24 -27 45c0 14 5 25 15 35s21 15 35 15c13 0 24 -4 33 -13c36 25 79 39 129 41h7l29 98l86 -17c8 19 21 28 41 28c12 0 22 -4 31 -13s13 -20 13 -32s-4 -23 -13 -32s-19 -13 -31 -13s-23 4 -32 13s-13 19 -13 31l-69 14l-24 -77
-c50 -2 94 -16 129 -41c10 9 21 13 34 13c9 0 16 -3 24 -7s14 -10 18 -18s7 -16 7 -25zM375 366c-4 0 -8 -1 -11 -2s-6 -4 -8 -6s-5 -6 -6 -9s-2 -6 -2 -10c0 -8 3 -14 8 -19s12 -8 19 -8c5 0 9 1 13 3s8 6 10 10s4 9 4 14c0 8 -3 14 -8 19s-12 8 -19 8zM18 197
-c0 -11 5 -20 14 -27c7 19 19 37 37 53c-6 4 -12 6 -19 6c-3 0 -7 0 -10 -1s-6 -3 -9 -5s-5 -4 -7 -7s-4 -6 -5 -9s-1 -6 -1 -10zM355 55c34 23 50 51 50 83v9c-1 6 -3 12 -5 18c-6 16 -15 30 -30 43c-5 4 -10 9 -15 12v0c-36 25 -79 37 -130 37s-95 -12 -131 -37v0
-c-5 -3 -10 -8 -15 -12c-15 -13 -24 -27 -30 -43c-2 -6 -4 -12 -5 -18v-9c0 -32 16 -60 50 -83c36 -25 80 -37 131 -37s94 12 130 37zM417 170c9 6 14 16 14 27c0 9 -3 17 -9 23s-13 9 -22 9c-7 0 -14 -2 -20 -6c18 -16 30 -34 37 -53zM289 90l13 -12
-c-20 -20 -45 -30 -77 -30s-58 10 -78 30l13 12c16 -16 38 -24 65 -24s48 8 64 24z" />
- <glyph glyph-name="ion-social-reddit" unicode="&#xf23b;" horiz-adv-x="449"
-d="M449 197c0 -20 -11 -37 -27 -45c1 -5 1 -9 1 -14c0 -76 -89 -138 -199 -138s-198 61 -198 137c0 5 0 10 1 15c-16 8 -27 25 -27 45c0 28 23 50 50 50c13 0 24 -5 33 -13c33 23 79 39 129 41h2l31 103l90 -18c8 14 22 24 39 24v0h1c25 0 44 -20 44 -45s-19 -45 -44 -45h-1
-v0c-23 0 -42 17 -44 40l-67 14l-22 -74c49 -3 93 -17 125 -40c9 8 21 13 34 13c27 0 49 -22 49 -50zM34 177c5 15 15 29 29 41c-4 3 -9 5 -15 5c-14 0 -25 -11 -25 -25c0 -9 4 -17 11 -21zM358 339c0 -9 7 -17 16 -17s17 8 17 17s-8 17 -17 17s-16 -8 -16 -17zM127 160
-c0 -18 14 -32 32 -32s32 14 32 32s-14 31 -32 31s-32 -13 -32 -31zM224 48c48 0 77 29 78 30l-13 12s-25 -24 -65 -24c-41 0 -64 24 -64 24l-13 -12c1 -1 29 -30 77 -30zM291 128c18 0 32 14 32 32s-14 31 -32 31s-32 -13 -32 -31s14 -32 32 -32zM415 176c7 5 11 13 11 22
-c0 14 -11 25 -25 25c-6 0 -11 -2 -15 -5c14 -12 24 -27 29 -42z" />
- <glyph glyph-name="ion-social-rss-outline" unicode="&#xf23c;" horiz-adv-x="384"
-d="M56 112c31 0 56 -25 56 -56s-25 -56 -56 -56s-56 25 -56 56s25 56 56 56zM56 16c22 0 40 18 40 40s-18 40 -40 40s-40 -18 -40 -40s18 -40 40 -40zM0 256c140 0 256 -116 256 -256h-80c0 48 -14 94 -48 128s-80 48 -128 48v80zM240 16c-2 26 -8 52 -19 77
-c-12 28 -30 54 -52 76s-48 40 -76 52c-25 10 -51 16 -77 18v-47c50 -3 92 -22 123 -53s50 -73 53 -123h48zM0 384c212 0 384 -172 384 -384h-80c0 171 -133 304 -304 304v80zM227 228c56 -56 89 -131 93 -212h48c-8 190 -162 344 -352 352v-48c81 -4 155 -36 211 -92z" />
- <glyph glyph-name="ion-social-rss" unicode="&#xf23d;" horiz-adv-x="384"
-d="M56 112c31 0 56 -25 56 -56s-25 -56 -56 -56s-56 25 -56 56s25 56 56 56zM0 256c140 0 256 -116 256 -256h-80c0 48 -14 94 -48 128s-80 48 -128 48v80zM0 384c212 0 384 -172 384 -384h-80c0 171 -133 304 -304 304v80z" />
- <glyph glyph-name="ion-social-sass" unicode="&#xf4ea;" horiz-adv-x="512"
-d="M512 119v-8c-1 -9 -7 -17 -15 -22s-12 -4 -13 -3s1 3 4 5c13 8 17 20 10 33c-5 10 -15 16 -26 20c-24 8 -48 7 -72 0c4 -12 7 -23 -2 -34c-10 -12 -23 -19 -39 -22c-7 -2 -14 2 -15 9c-3 19 17 36 30 47c-7 11 -11 24 -14 37c-15 -17 -31 -40 -26 -61
-c3 -14 -1 -27 -14 -36s-30 -14 -46 -11c-4 1 -6 5 -5 8c2 14 25 32 35 43c2 2 3 4 1 7c-6 12 -10 23 -14 36c-13 -29 -30 -80 -57 -98c-9 -6 -17 -4 -21 5c-3 8 -2 20 -1 29c-6 -13 -11 -27 -20 -38c-7 -8 -24 -7 -30 1c-16 21 -13 50 -5 73l-29 -15c7 -16 8 -32 4 -49
-c-5 -19 -17 -35 -35 -46c-19 -12 -64 -24 -77 4c-7 16 -4 30 6 44c17 24 48 37 74 50c-32 23 -80 42 -96 80c-15 35 17 68 43 89c59 48 166 95 244 59c15 -7 36 -24 31 -52c-4 -24 -13 -39 -28 -54c-32 -32 -152 -77 -176 -15c-1 1 -1 4 1 4c2 -1 20 -15 43 -16
-c17 -1 36 3 52 8c33 11 71 33 80 67c4 13 -2 28 -15 34c-49 24 -116 -4 -159 -26c-33 -17 -84 -45 -82 -87c1 -37 56 -60 81 -82c15 7 42 15 52 27c11 13 26 25 44 26c8 0 14 -3 16 -10c2 -6 1 -11 0 -19c5 4 11 4 15 -1c12 -14 -22 -50 -10 -66c14 14 21 42 30 59
-c4 8 17 51 26 53c7 2 18 4 25 0c2 -1 3 -3 2 -5c-7 -19 -7 -33 3 -52c14 20 29 43 34 67c1 2 3 3 5 4c7 2 18 3 25 0c3 -1 3 -2 2 -5c-7 -22 -6 -38 6 -58c31 11 69 15 97 -5c-3 2 -7 5 0 0c5 -4 3 -2 0 0c12 -8 19 -18 21 -32zM113 94v0c1 7 -1 13 -3 20
-c-24 -8 -66 -35 -64 -62c1 -10 8 -13 17 -12s19 7 27 13c14 11 22 24 23 41zM216 166c1 3 -2 5 -5 4c-29 -8 -43 -57 -33 -81c1 -3 4 -3 6 -1c17 16 28 56 32 78zM286 84c8 -3 27 17 26 27c-8 -9 -18 -18 -26 -27zM367 102c11 6 16 19 12 30c-8 -6 -21 -19 -20 -31
-c0 -2 6 0 8 1z" />
- <glyph glyph-name="ion-social-skype-outline" unicode="&#xf23e;" horiz-adv-x="384"
-d="M106 352c-41 0 -74 -33 -74 -73c0 -13 4 -25 10 -36l6 -11l-2 -12c-2 -10 -3 -20 -3 -30c0 -40 16 -77 44 -105s67 -44 107 -44c9 0 19 1 28 3l11 2l9 -5c11 -6 24 -9 36 -9c41 0 74 33 74 73c0 11 -3 22 -8 32l-5 10l3 11c2 10 3 21 3 32c0 40 -16 77 -44 105
-s-67 43 -107 43c-9 0 -18 0 -26 -2l-12 -2l-10 7c-12 7 -26 11 -40 11zM106 384v0c21 0 40 -6 56 -16c10 2 21 2 32 2c101 0 183 -80 183 -180c0 -13 -1 -27 -4 -39c7 -14 11 -29 11 -46c0 -58 -47 -105 -106 -105c-18 0 -35 4 -50 12c-11 -2 -22 -3 -34 -3
-c-101 0 -183 81 -183 181c0 12 2 24 4 36c-9 16 -15 34 -15 53c0 58 47 105 106 105zM288 104c-8 -12 -21 -21 -37 -28s-36 -10 -58 -10c-26 0 -48 5 -65 14c-12 7 -22 15 -30 26s-12 22 -12 33c0 7 3 12 8 17s11 7 19 7c6 0 12 -2 16 -6s7 -8 10 -15s7 -13 11 -18
-s8 -9 15 -12s16 -5 27 -5c15 0 28 4 37 10s13 13 13 22c0 7 -2 13 -7 17c-5 5 -11 9 -19 11c-8 3 -20 5 -34 8c-19 4 -35 9 -48 14c-13 6 -24 13 -32 23s-11 22 -11 36s4 25 12 36c8 10 20 19 36 25c15 6 34 8 54 8c16 0 30 -1 42 -5s23 -9 31 -15s14 -13 18 -20
-s5 -14 5 -21c0 -6 -2 -12 -7 -17s-11 -8 -19 -8c-7 0 -12 2 -16 5c-3 3 -7 7 -11 14c-5 8 -10 15 -16 20s-17 8 -31 8c-13 0 -23 -3 -31 -8s-12 -11 -12 -18c0 -4 2 -7 4 -10c3 -3 6 -6 11 -8s10 -5 15 -6s13 -3 25 -6c15 -3 28 -6 40 -10s23 -8 32 -14s15 -13 20 -22
-s8 -20 8 -32c0 -15 -5 -28 -13 -40z" />
- <glyph glyph-name="ion-social-skype" unicode="&#xf23f;" horiz-adv-x="384"
-d="M373 151c7 -14 11 -29 11 -46c0 -58 -47 -105 -106 -105c-18 0 -35 4 -50 12c-11 -2 -22 -3 -34 -3c-101 0 -183 81 -183 181c0 12 2 24 4 36c-9 16 -15 34 -15 53c0 58 47 105 106 105c21 0 41 -6 57 -16c10 2 20 2 31 2c101 0 183 -80 183 -180c0 -13 -1 -27 -4 -39z
-M288 104c9 12 12 25 12 40c0 12 -2 23 -7 32s-12 16 -21 22s-19 10 -31 14s-26 7 -41 10c-12 3 -20 5 -25 6s-10 4 -15 6s-7 5 -10 8c-2 3 -4 6 -4 10c0 7 3 13 11 18s19 7 32 7c14 0 25 -2 31 -7s11 -12 16 -20c4 -7 8 -11 11 -14c4 -3 9 -5 16 -5c8 0 13 3 18 8s8 11 8 17
-c0 7 -2 14 -6 21s-10 14 -18 20s-18 11 -30 15s-27 5 -43 5c-20 0 -38 -2 -53 -8c-16 -6 -28 -15 -36 -25c-8 -11 -12 -22 -12 -36s3 -26 11 -36s19 -17 32 -23c13 -5 29 -10 48 -14c14 -3 26 -5 34 -8c8 -2 14 -6 19 -11c5 -4 7 -10 7 -17c0 -9 -4 -17 -13 -23
-s-22 -9 -37 -9c-11 0 -20 2 -27 5s-11 6 -15 11s-8 12 -11 19s-6 11 -10 15s-10 6 -16 6c-8 0 -14 -2 -19 -7s-8 -10 -8 -17c0 -11 4 -22 12 -33s18 -19 30 -26c17 -9 39 -14 65 -14c22 0 42 3 58 10s29 16 37 28z" />
- <glyph glyph-name="ion-social-snapchat-outline" unicode="&#xf4eb;" horiz-adv-x="480"
-d="M240 400v0v0c-71 0 -128 -54 -118 -128c2 -15 3 -32 4 -45c0 0 -2 -5 -12 -5c-6 0 -15 2 -28 7c-2 1 -4 1 -6 1c-8 0 -13 -6 -14 -12c0 -5 4 -11 8 -13c14 -7 47 -10 47 -33s-23 -47 -41 -64s-64 -21 -64 -21s0 -21 32 -29s32 -5 33 -13c2 -15 1 -22 11 -22c2 0 4 1 6 1
-c8 1 20 3 32 3c11 0 23 -2 34 -9c23 -15 41 -34 76 -34s53 19 76 34c11 7 24 9 35 9c12 0 23 -2 31 -3c2 0 4 -1 6 -1c10 0 9 7 11 22c1 8 1 5 33 13s32 29 32 29s-46 4 -64 21s-41 41 -41 64s33 26 47 33c4 2 9 8 9 13c-1 6 -6 12 -14 12c-2 0 -5 0 -7 -1
-c-13 -5 -21 -6 -27 -6c-10 0 -13 4 -13 4c1 13 2 30 4 45c10 74 -47 128 -118 128zM240 416v0c41 0 80 -16 105 -45c24 -28 34 -63 29 -101c-1 -11 -2 -22 -3 -31c4 1 10 2 18 5c4 1 8 2 12 2c16 0 29 -12 30 -27c1 -13 -9 -25 -18 -29c-4 -2 -9 -3 -14 -5
-c-7 -2 -14 -5 -19 -8c-4 -3 -5 -4 -5 -5c0 -16 20 -37 36 -52c11 -10 39 -16 54 -17l15 -1v-14c0 -2 0 -11 -6 -21c-5 -8 -16 -19 -38 -24c-6 -1 -11 -3 -15 -4c-2 -1 -5 -1 -7 -1v-1c-1 -7 -1 -13 -4 -18c-2 -5 -9 -12 -22 -12c-2 0 -6 0 -9 1c-2 0 -3 1 -5 1
-c-7 1 -15 2 -23 2c-10 0 -19 -2 -26 -6c-4 -3 -9 -7 -14 -10c-18 -13 -38 -27 -71 -27s-53 14 -71 27c-5 3 -9 7 -14 10c-7 4 -15 6 -25 6c-8 0 -17 -1 -24 -2c-2 0 -3 -1 -5 -1c-3 -1 -7 -1 -9 -1c-13 0 -20 7 -22 12c-3 5 -3 11 -4 18v1c-2 0 -4 0 -6 1c-4 1 -10 3 -16 4
-c-22 5 -33 16 -38 24c-6 10 -6 18 -6 20v15l15 1c16 1 44 7 54 17c29 27 36 43 36 52c0 1 0 2 -4 5c-5 3 -13 6 -20 8c-5 2 -10 3 -14 5c-9 4 -18 16 -17 29c1 15 14 27 30 27c4 0 8 0 12 -2c8 -3 13 -4 17 -5c-1 9 -2 19 -3 30c-5 38 5 74 29 102c25 29 64 45 105 45v0z
-M240 219c-21 0 -41 8 -56 23c-3 3 -3 9 0 12s9 3 12 0c12 -12 27 -19 44 -19c16 0 32 7 44 19c3 3 9 3 12 0s3 -9 0 -12c-15 -15 -35 -23 -56 -23zM176 296c0 16 5 24 16 24s16 -8 16 -24s-5 -24 -16 -24s-16 8 -16 24zM272 296c0 16 5 24 16 24s16 -8 16 -24
-s-5 -24 -16 -24s-16 8 -16 24z" />
- <glyph glyph-name="ion-social-snapchat" unicode="&#xf4ec;" horiz-adv-x="480"
-d="M480 88c0 -2 0 -11 -6 -21c-5 -8 -16 -19 -38 -24c-6 -1 -11 -3 -15 -4c-2 -1 -5 -1 -7 -1v-1c-1 -7 -1 -13 -4 -18c-2 -5 -9 -12 -22 -12c-2 0 -6 0 -9 1c-2 0 -3 1 -5 1c-7 1 -15 2 -23 2c-10 0 -19 -2 -26 -6c-4 -3 -9 -7 -14 -10c-18 -13 -38 -27 -71 -27
-s-53 14 -71 27c-5 3 -9 7 -14 10c-7 4 -15 6 -25 6c-8 0 -17 -1 -24 -2c-2 0 -3 -1 -5 -1c-3 -1 -7 -1 -9 -1c-13 0 -20 7 -22 12c-3 5 -3 11 -4 18v1c-2 0 -4 0 -6 1c-4 1 -10 3 -16 4c-22 5 -33 16 -38 24c-6 10 -6 18 -6 20v15l15 1c16 1 44 7 54 17c29 27 36 43 36 52
-c0 1 0 2 -4 5c-5 3 -13 6 -20 8c-5 2 -10 3 -14 5c-9 4 -18 16 -17 29c1 15 14 27 30 27c4 0 8 0 12 -2c8 -3 13 -4 17 -5c-1 9 -2 19 -3 30c-5 38 5 74 29 102c25 29 64 45 105 45v0c41 0 80 -16 105 -45c24 -28 34 -63 29 -101c-1 -11 -2 -22 -3 -31c4 1 10 2 18 5
-c4 1 8 2 12 2c16 0 29 -12 30 -27c1 -13 -9 -25 -18 -29c-4 -2 -9 -3 -14 -5c-7 -2 -14 -5 -19 -8c-4 -3 -5 -4 -5 -5c0 -16 20 -37 36 -52c11 -10 39 -16 54 -17l15 -1v-14zM192 320c-9 0 -16 -11 -16 -24s7 -24 16 -24s16 11 16 24s-7 24 -16 24zM296 242c3 3 3 9 0 12
-s-9 3 -12 0c-12 -12 -28 -19 -44 -19c-17 0 -32 7 -44 19c-3 3 -9 3 -12 0s-3 -9 0 -12c15 -15 35 -23 56 -23s41 8 56 23zM288 272c9 0 16 11 16 24s-7 24 -16 24s-16 -11 -16 -24s7 -24 16 -24z" />
- <glyph glyph-name="ion-social-tumblr-outline" unicode="&#xf240;" horiz-adv-x="256"
-d="M193 52c21 0 42 6 63 20v-65c-18 -8 -34 -15 -48 -18s-28 -5 -45 -5c-19 0 -35 2 -50 7c-14 5 -28 12 -38 21s-17 18 -21 28s-6 25 -6 44v140h-48v58c16 5 30 14 42 24s19 21 26 35s11 37 14 59h62v-112h96v-64h-96v-101c0 -24 1 -40 4 -47c2 -7 7 -12 14 -16
-c9 -6 19 -8 31 -8zM240 17v29c-15 -6 -31 -10 -47 -10c-15 0 -28 3 -40 10c-10 6 -17 15 -21 25c-2 6 -4 17 -4 52v117h96v32h-96v112h-32c-2 -16 -7 -36 -14 -50c-8 -16 -17 -29 -30 -40c-11 -9 -23 -17 -36 -23v-31h48v-156c0 -21 2 -32 4 -38c3 -8 10 -15 18 -22
-c9 -8 19 -14 31 -18c13 -4 29 -6 46 -6c16 0 28 2 41 5c11 2 23 6 36 12z" />
- <glyph glyph-name="ion-social-tumblr" unicode="&#xf241;" horiz-adv-x="256"
-d="M193 52c21 0 42 6 63 20v-65c-18 -8 -34 -15 -48 -18s-28 -5 -45 -5c-19 0 -35 2 -50 7c-14 5 -28 12 -38 21s-17 18 -21 28s-6 25 -6 44v140h-48v58c16 5 30 14 42 24s19 21 26 35s11 37 14 59h62v-112h96v-64h-96v-101c0 -24 1 -40 4 -47c2 -7 7 -12 14 -16
-c9 -6 19 -8 31 -8z" />
- <glyph glyph-name="ion-social-tux" unicode="&#xf2c5;" horiz-adv-x="383"
-d="M189 347c2 2 -1 -1 0 0c2 2 4 4 6 5c-3 -2 -5 -4 -7 -8c0 1 0 2 1 3zM361 52c7 -4 23 -11 21 -22c-2 -10 -17 -15 -24 -19c-15 -8 -28 -14 -41 -25c-9 -8 -17 -15 -29 -17c-11 -2 -25 -1 -33 8c-5 5 -7 11 -15 12c-25 5 -54 4 -79 0c-13 -2 -21 -11 -32 -17
-c-10 -5 -20 -5 -30 -1c-13 5 -27 10 -41 13s-29 5 -43 9c-31 8 -5 30 -11 50c-3 12 -10 29 8 30c9 1 27 -1 31 11c2 7 -2 15 2 22s-1 17 1 25c4 18 19 32 25 49c5 14 8 25 18 37c9 11 22 22 29 34c10 18 9 35 8 55c-1 17 -1 33 -2 50c0 33 20 60 58 60h14
-c38 0 63 -32 64 -69c0 -19 -5 -38 5 -67c15 -27 36 -48 52 -73c10 -16 16 -31 20 -49c3 -14 9 -31 7 -45c-1 -6 -2 -9 -4 -11c3 -1 7 -2 9 -5c3 -4 2 -11 0 -26c-1 -8 5 -15 12 -19zM137 -3c2 20 -15 39 -25 56c-10 16 -21 43 -39 52c-8 4 -19 5 -23 -5c-2 -7 0 -19 -2 -22
-c-4 -9 -14 -10 -23 -11c-6 0 -17 0 -17 -8c1 -10 10 -20 7 -30c-2 -7 -8 -12 -8 -19c0 -14 38 -15 47 -17c19 -4 37 -14 57 -16c12 -1 25 7 26 20zM253 62c-2 10 2 -10 0 0s-5 28 1 35c4 5 10 6 17 5c0 4 1 9 3 12c8 13 29 8 39 0l-1 2c-3 4 -8 9 -13 10c0 0 4 12 2 34
-c-4 40 -33 62 -33 62c27 -30 27 -58 27 -72c0 -6 -1 -18 -4 -24c-4 -1 -7 -2 -11 -4c-10 -5 -8 2 -8 10c0 18 -2 36 -7 54c-3 9 -7 17 -13 24c-4 5 -4 9 -5 15c-3 12 -9 22 -16 32c-7 9 -7 17 -5 28c1 7 2 14 -6 17c-6 2 -26 5 -27 14c-1 6 -1 16 5 20c16 14 30 -11 17 -24
-c-3 -3 7 -4 8 -4c4 1 4 7 5 10c1 4 1 9 1 13c0 17 -18 32 -34 21c-6 -4 -9 -11 -10 -17c0 -2 -1 -20 0 -20c-4 0 -7 5 -11 5c-3 0 -7 0 -10 -1c0 0 2 14 -2 22c-4 9 -18 16 -24 4s-3 -25 0 -31s4 -6 4 -6c2 1 5 4 5 4s-6 3 -7 11c-1 9 3 14 7 15s10 -2 12 -8s0 -13 0 -13
-c-7 -6 -30 -18 -22 -28c14 -18 33 -15 52 -9c8 3 18 5 24 12c3 3 11 2 8 -4c-2 -5 -18 -7 -22 -9c-9 -4 -18 -8 -28 -10c-6 -1 -13 -5 -28 9c7 -6 8 -16 17 -20c13 -6 33 9 44 15c1 1 16 5 14 0c-1 -4 -11 -7 -15 -9c-11 -6 -23 -21 -36 -22c-8 -1 -21 16 -25 22
-c-1 1 -5 9 -6 4c-1 -8 2 -14 -3 -21c-6 -9 -11 -18 -13 -29c-1 -6 0 -11 -3 -16c-11 -15 -17 -33 -19 -51c0 -4 3 -43 -5 -41c-18 5 -17 33 -14 47c-3 -12 -8 -30 2 -44c12 -15 99 -55 53 -80c7 -14 14 -25 12 -41c8 7 2 20 -1 28c0 0 17 -12 38 -10c17 2 32 7 46 16
-c6 4 11 9 16 14c1 2 4 6 6 7l1 -11c2 -17 -12 -27 -10 -34c4 8 11 14 13 24c3 12 0 24 -2 36zM155 323v0v-3c2 0 2 5 1 8c-1 4 -3 6 -4 6h-2c3 -2 5 -6 5 -11zM210 335c3 -2 0 0 0 0c3 -2 5 -5 5 -10v-3c2 0 3 4 2 7s-3 6 -5 6h-2zM347 15c24 11 -24 -10 0 0
-c24 11 35 17 20 26c-17 10 -26 13 -26 29c0 5 4 16 2 22c-1 4 -6 5 -9 5c-10 -10 -17 -25 -34 -25c-14 0 -25 11 -28 24c-4 2 -10 1 -13 -4c-6 -12 1 -29 3 -41c2 -18 -4 -35 -2 -53c2 -21 26 -22 40 -13c16 10 29 22 47 30z" />
- <glyph glyph-name="ion-social-twitch-outline" unicode="&#xf4ed;" horiz-adv-x="416"
-d="M32 416h384v-272l-112 -112h-80l-64 -64h-64v64h-96v304zM368 160v208h-304v-272h80v-64l64 64h96zM272 176v129h48v-129h-48zM160 176v129h48v-129h-48z" />
- <glyph glyph-name="ion-social-twitch" unicode="&#xf4ee;" horiz-adv-x="416"
-d="M32 416h384v-272l-112 -112h-80l-64 -64h-64v64h-96v304zM208 176v129h-48v-129h48zM320 176v129h-48v-129h48z" />
- <glyph glyph-name="ion-social-twitter-outline" unicode="&#xf242;" horiz-adv-x="472"
-d="M472 338c-13 -20 -29 -36 -48 -50v-12c0 -128 -98 -276 -276 -276c-55 0 -105 16 -148 44c8 -1 15 -2 23 -2c45 0 87 16 120 42c-42 1 -78 29 -90 67c6 -1 12 -2 18 -2c9 0 18 2 26 4c-44 9 -78 48 -78 95v1c13 -7 28 -12 44 -12c-26 17 -43 47 -43 81c0 18 5 34 13 48
-c48 -59 119 -97 199 -101c-2 7 -2 14 -2 22c0 54 43 97 97 97c28 0 52 -12 70 -31c22 4 43 13 62 24c-7 -23 -23 -42 -43 -54c20 2 39 7 56 15zM414 301c3 2 8 6 11 8c-2 0 -11 -2 -19 -1s-21 5 -21 5s14 13 18 17l11 11c-4 -1 -10 -2 -14 -3l-8 -2l-6 6
-c-15 16 -37 26 -59 26c-45 0 -81 -37 -81 -81c0 -6 1 -12 2 -18l5 -21l-22 1c-42 2 -81 13 -118 32c-28 14 -53 34 -75 56c-1 -6 -2 -13 -2 -19c0 -27 14 -53 36 -68c0 0 33 -23 46 -29c-24 -2 -56 0 -56 0c-8 0 -16 1 -24 3c8 -28 32 -50 62 -56l61 -10l-61 -21
-c-7 -2 -14 -3 -21 -3c15 -20 38 -34 64 -34l45 -1l-35 -28c-18 -14 -38 -25 -60 -33c-10 -3 -19 -6 -29 -8c27 -9 55 -14 84 -14c40 0 78 8 112 24c31 14 58 34 81 60c22 24 38 53 50 84c11 30 17 62 17 92v12l-1 8z" />
- <glyph glyph-name="ion-social-twitter" unicode="&#xf243;" horiz-adv-x="472"
-d="M472 338c-13 -20 -29 -36 -48 -50v-12c0 -128 -98 -276 -276 -276c-55 0 -105 16 -148 44c8 -1 15 -2 23 -2c45 0 87 16 120 42c-42 1 -78 29 -90 67c6 -1 12 -2 18 -2c9 0 18 2 26 4c-44 9 -78 48 -78 95v1c13 -7 28 -12 44 -12c-26 17 -43 47 -43 81c0 18 5 34 13 48
-c48 -59 119 -97 199 -101c-2 7 -2 14 -2 22c0 54 43 97 97 97c28 0 52 -12 70 -31c22 4 43 13 62 24c-7 -23 -23 -42 -43 -54c20 2 39 7 56 15z" />
- <glyph glyph-name="ion-social-usd-outline" unicode="&#xf352;" horiz-adv-x="320"
-d="M125 345c11 2 19 3 19 3v-131l-22 6c-15 5 -27 11 -36 19c-12 10 -19 25 -19 43c0 13 4 24 11 33c6 8 13 14 22 19c7 4 17 6 25 8zM128 238v92c-7 -2 -15 -4 -21 -7c-7 -4 -12 -9 -17 -15s-7 -14 -7 -23c0 -13 4 -24 13 -31c8 -7 20 -12 32 -16zM252 151
-c10 -10 15 -24 15 -42c0 -9 -1 -18 -5 -27s-11 -17 -20 -24c-8 -6 -18 -11 -31 -15c-6 -2 -11 -3 -17 -4s-18 -1 -18 -1v145l20 -5c10 -3 19 -6 28 -9c10 -4 20 -10 28 -18zM247 89c3 7 4 13 4 20c0 14 -3 24 -10 31s-15 11 -23 14s-16 5 -26 8v-107c6 1 10 2 14 3
-c11 3 20 8 27 13s11 11 14 18zM315 145c3 -10 5 -19 5 -29c0 -21 -5 -38 -14 -53s-20 -26 -35 -35s-31 -17 -50 -21c-10 -2 -19 -3 -29 -4v-35h-64v35c-9 1 -19 4 -28 6c-20 5 -36 12 -51 23s-26 24 -35 41c-8 16 -13 34 -14 55h69c0 -12 2 -24 7 -33c5 -10 12 -17 21 -23
-s20 -11 31 -14v120c-8 2 -18 4 -27 6c-17 4 -30 9 -41 16s-20 15 -27 23s-11 17 -14 26s-4 18 -4 28c0 18 4 34 12 48s19 25 33 34s29 16 46 20c7 2 15 3 22 4v33h64v-33c9 -1 16 -4 24 -6c18 -5 34 -12 48 -22s25 -22 33 -37c7 -13 11 -28 12 -46h-69c-3 21 -12 37 -26 46
-c-7 4 -13 8 -22 10v-106c9 -2 16 -4 25 -6c12 -3 22 -6 27 -7c13 -4 23 -9 33 -15c10 -7 18 -14 24 -22s11 -17 14 -27zM293 72c7 12 11 27 11 44c0 8 -1 16 -4 24s-7 15 -12 22s-12 13 -20 19c-8 5 -18 10 -29 13c-5 1 -13 3 -24 6h-1l-4 1c-7 2 -13 4 -21 6l-13 3v137
-s9 -1 19 -4s19 -6 28 -12c15 -9 25 -24 30 -43h38c-2 8 -4 15 -8 22c-7 13 -16 24 -28 32c-12 9 -27 16 -43 20c-8 2 -16 4 -23 5l-13 2v31h-32v-31l-14 -2c-7 -1 -14 -2 -20 -4c-15 -4 -29 -10 -41 -18s-21 -16 -28 -28c-7 -11 -10 -24 -10 -40c0 -8 1 -15 3 -23
-c2 -7 6 -14 11 -21s14 -13 23 -19c10 -6 22 -10 37 -14v0v0c4 -1 8 -2 11 -3c5 -1 11 -3 16 -4l12 -3v-151s-8 1 -20 4s-26 8 -36 15c-11 8 -20 18 -26 30c-4 7 -6 16 -8 24h-36c2 -11 5 -23 10 -32c8 -14 17 -26 30 -35c13 -10 28 -16 46 -21c8 -2 17 -4 26 -5l14 -2v-33
-h32v33l15 1c9 1 17 3 26 5c17 4 32 10 45 18s23 19 31 31z" />
- <glyph glyph-name="ion-social-usd" unicode="&#xf353;" horiz-adv-x="320"
-d="M315 145c3 -10 5 -19 5 -29c0 -21 -5 -38 -14 -53s-20 -26 -35 -35s-31 -17 -50 -21c-10 -2 -19 -3 -29 -4v-35h-64v35c-9 1 -19 4 -28 6c-20 5 -36 12 -51 23s-26 24 -35 41c-8 16 -13 34 -14 55h69c0 -12 2 -24 7 -33c5 -10 12 -17 21 -23s20 -11 31 -14v120
-c-8 2 -18 4 -27 6c-17 4 -30 9 -41 16s-20 15 -27 23s-11 17 -14 26s-4 18 -4 28c0 18 4 34 12 48s19 25 33 34s29 16 46 20c7 2 15 3 22 4v33h64v-33c9 -1 16 -4 24 -6c18 -5 34 -12 48 -22s25 -22 33 -37c7 -13 11 -28 12 -46h-69c-3 21 -12 37 -26 46c-7 4 -13 8 -22 10
-v-106c9 -2 16 -4 25 -6c12 -3 22 -6 27 -7c13 -4 23 -9 33 -15c10 -7 18 -14 24 -22s11 -17 14 -27zM128 238v92c-7 -2 -15 -4 -21 -7c-7 -4 -12 -9 -17 -15s-7 -14 -7 -23c0 -13 4 -24 13 -31c8 -7 20 -12 32 -16zM247 89c3 7 4 13 4 20c0 14 -3 24 -10 31s-15 11 -23 14
-s-16 5 -26 8v-107c6 1 10 2 14 3c11 3 20 8 27 13s11 11 14 18z" />
- <glyph glyph-name="ion-social-vimeo-outline" unicode="&#xf244;"
-d="M445 334c7 -33 1 -66 -13 -97s-31 -59 -51 -87c-26 -36 -52 -71 -85 -101c-19 -18 -41 -35 -66 -44c-10 -4 -19 -5 -27 -5c-17 0 -31 9 -44 27c-14 19 -22 40 -28 63c-12 45 -25 90 -38 134c-4 12 -9 22 -15 33c-3 5 -8 10 -12 14c-2 2 -5 3 -8 3s-6 -1 -9 -3
-c-10 -6 -28 -18 -28 -18l-21 27c26 24 82 71 82 71c11 9 33 25 48 27h8c18 0 32 -7 42 -22c11 -17 15 -37 18 -57c7 -41 12 -82 24 -122c3 -10 7 -20 12 -29c4 -7 9 -10 14 -10c4 0 7 2 11 5s7 6 10 10c20 24 37 52 48 81c3 9 3 17 3 27c0 13 -10 25 -25 26h-7
-c-11 0 -20 -2 -32 -7c6 24 24 62 54 84c20 14 45 20 67 20c10 0 20 -2 27 -4c23 -8 36 -23 41 -46zM418 244c13 30 17 59 11 87c-4 19 -13 28 -30 34c-6 2 -14 3 -22 3c-21 0 -42 -6 -57 -17c-16 -12 -29 -30 -38 -48h6h8c23 -1 39 -19 40 -41c0 -10 0 -22 -4 -34
-c-11 -29 -29 -58 -51 -85c-4 -4 -7 -9 -12 -13c-7 -6 -15 -8 -22 -8c-8 0 -18 3 -27 18c-7 11 -11 22 -14 32c-10 31 -14 64 -19 95c-2 10 -3 19 -5 29c-3 17 -6 36 -16 51c-7 10 -16 15 -28 15h-6c-8 -1 -25 -11 -40 -23c-2 -2 -43 -37 -70 -61l2 -3c5 4 12 7 16 10
-c6 3 12 5 18 5c7 0 13 -3 18 -7c8 -7 13 -12 16 -18c6 -11 12 -24 16 -37c13 -44 26 -88 38 -133c5 -19 13 -41 26 -59s23 -20 31 -20c6 0 13 1 21 4c23 8 43 25 61 41c32 29 57 63 83 99v0c21 28 37 55 50 84z" />
- <glyph glyph-name="ion-social-vimeo" unicode="&#xf245;"
-d="M445 334c7 -33 1 -66 -13 -97s-31 -59 -51 -87c-26 -36 -52 -71 -85 -101c-19 -18 -41 -35 -66 -44c-31 -11 -52 -5 -71 22c-14 19 -22 40 -28 63c-12 45 -25 90 -38 134c-4 12 -9 22 -15 33c-3 5 -8 10 -12 14c-5 4 -11 3 -17 0c-10 -6 -28 -18 -28 -18l-21 27
-c26 24 82 71 82 71c11 9 33 25 48 27c21 3 38 -4 50 -22c11 -17 15 -37 18 -57c7 -41 11 -82 23 -122c3 -10 8 -20 13 -29c7 -11 15 -13 25 -5c4 3 7 6 10 10c20 24 37 52 48 81c3 9 3 17 3 27c0 13 -10 25 -25 26s-24 -1 -39 -7c6 24 24 62 54 84c29 21 71 24 94 16
-s36 -23 41 -46z" />
- <glyph glyph-name="ion-social-whatsapp-outline" unicode="&#xf4ef;"
-d="M178 294c4 -11 15 -39 16 -42s2 -6 0 -10s-3 -6 -6 -9s-6 -7 -9 -9c-3 -3 -6 -6 -3 -12s14 -24 30 -39c21 -20 38 -27 44 -30s9 -3 12 1s15 16 19 21s8 5 13 3s31 -17 37 -20s10 -5 11 -7s0 -13 -5 -26s-28 -24 -38 -25s-11 -8 -67 16s-90 84 -93 88s-22 31 -21 58
-s17 41 22 46s11 7 15 7h10s9 0 13 -11zM228 384c-50 0 -97 -20 -133 -55c-35 -35 -55 -81 -55 -131c0 -34 9 -67 27 -96l8 -13l-5 -14l-19 -57l61 19l13 4l12 -6c28 -15 59 -23 91 -23c50 0 97 19 133 54c35 35 55 82 55 132s-20 96 -55 131c-36 35 -83 55 -133 55zM228 416
-v0c121 0 220 -97 220 -218s-99 -218 -220 -218c-39 0 -74 10 -106 27l-122 -39l40 117c-20 33 -32 72 -32 113c0 121 99 218 220 218z" />
- <glyph glyph-name="ion-social-whatsapp" unicode="&#xf4f0;"
-d="M228 416c121 0 220 -97 220 -218s-99 -218 -220 -218c-39 0 -74 10 -106 27l-122 -39l40 117c-20 33 -32 72 -32 113c0 121 99 218 220 218zM337 115c5 13 6 24 5 26s-5 4 -11 7s-32 18 -37 20s-9 2 -13 -3s-16 -17 -19 -21s-6 -4 -12 -1s-23 10 -44 30
-c-16 15 -27 33 -30 39s0 9 3 12c3 2 6 6 9 9s4 5 6 9s1 7 0 10s-12 31 -16 42s-10 11 -13 11h-10s-10 -2 -15 -7s-21 -19 -22 -46s18 -54 21 -58s37 -64 93 -88s57 -17 67 -16s33 12 38 25z" />
- <glyph glyph-name="ion-social-windows-outline" unicode="&#xf246;"
-d="M432 167h-216v-149l216 -32v181zM448 183v0v-215l-248 36v179h248zM168 167h-152v-120l152 -22v142zM184 183v0v-177l-184 27v150h184zM432 398v0l-216 -31v-152h216v183zM448 416v0v-217h-248v182zM168 360v0l-152 -22v-123h152v145zM184 378v0v-179h-184v153z" />
- <glyph glyph-name="ion-social-windows" unicode="&#xf247;"
-d="M448 183v0v-215l-248 36v179h248zM184 183v0v-177l-184 27v150h184zM448 416v0v-217h-248v182zM184 378v0v-179h-184v153z" />
- <glyph glyph-name="ion-social-wordpress-outline" unicode="&#xf248;" horiz-adv-x="384"
-d="M192 384c106 0 192 -86 192 -192c0 -9 -1 -18 -2 -26c-12 -85 -79 -153 -165 -164c-8 -1 -17 -2 -25 -2c-106 0 -192 86 -192 192s86 192 192 192zM19 192c0 -68 40 -127 98 -155l-83 225c-10 -21 -15 -45 -15 -70zM214 21c12 2 24 4 35 8c0 1 -1 2 -1 3l-53 145l-33 -96
-v0l-19 -55c15 -5 32 -7 49 -7c8 0 15 1 22 2zM216 273l62 -186l17 58c9 22 13 41 13 56c0 21 -7 35 -14 47c-9 14 -17 27 -17 41c0 16 12 30 29 30h2c-31 28 -71 45 -116 45c-60 0 -113 -30 -144 -77c4 0 8 -1 11 -1c18 0 46 3 46 3c9 1 10 -14 1 -15c0 0 -10 -1 -20 -1
-l63 -187l38 113l-27 74c-9 0 -18 1 -18 1c-9 0 -8 16 1 15c0 0 28 -3 45 -3c18 0 46 3 46 3c9 1 11 -14 2 -15c0 0 -10 -1 -20 -1zM279 43c45 26 77 71 84 125c1 8 2 16 2 24c0 30 -8 58 -22 83c1 -6 1 -12 1 -18c0 -18 -3 -37 -13 -62l-39 -113z" />
- <glyph glyph-name="ion-social-wordpress" unicode="&#xf249;" horiz-adv-x="384"
-d="M195 177l53 -146c0 -1 6 -13 9 -19c-3 -1 -5 -2 -8 -3v0c-10 -3 -21 -6 -32 -7c-8 -1 -17 -2 -25 -2c-17 0 -34 2 -50 6v0c-2 0 -3 2 -5 2l25 73v0zM17 268c6 0 7 -1 15 -1l93 -255c-3 1 -5 2 -8 3c-63 27 -109 87 -116 158c-1 6 -1 13 -1 19c0 25 7 53 17 76zM366 273
-c11 -24 18 -52 18 -81c0 -9 -1 -18 -2 -26c-9 -65 -50 -120 -107 -147c-2 -1 -3 -1 -5 -2l22 65l39 113c10 25 13 45 13 62v19v0c-1 18 -10 44 -36 43h-2c-17 0 -29 -14 -29 -30c0 -14 8 -27 17 -41c7 -12 14 -26 14 -47c0 -15 -4 -34 -13 -56l-17 -58l-62 186
-c10 0 20 1 20 1c9 1 7 16 -2 15c0 0 -28 -3 -46 -3c-17 0 -45 3 -45 3c-9 1 -10 -15 -1 -15c0 0 9 -1 18 -1l27 -74l-38 -113l-63 187c10 0 20 2 20 2c9 1 8 15 -1 14c0 0 -28 -2 -46 -2h-34c5 9 11 17 17 25c35 44 90 72 150 72c24 0 48 -5 69 -13c34 -13 63 -36 85 -65
-c2 -2 3 -5 5 -7c6 -8 11 -17 15 -26z" />
- <glyph glyph-name="ion-social-yahoo-outline" unicode="&#xf24a;" horiz-adv-x="320"
-d="M289 380c11 0 21 1 31 4l-128 -213v-171c-10 4 -21 4 -32 4s-22 0 -32 -4v171l-128 213c10 -4 21 -4 32 -4s22 0 32 4l96 -160l96 160c10 -4 22 -4 33 -4zM178 180l111 184h-1c-7 0 -15 0 -24 2l-90 -150l-14 -23l-14 23l-89 150c-9 -2 -17 -2 -25 -2h-1l111 -184l2 -4
-v-5v-151c6 1 11 0 16 0s11 1 16 0v151v5z" />
- <glyph glyph-name="ion-social-yahoo" unicode="&#xf24b;" horiz-adv-x="320"
-d="M289 380c11 0 21 1 31 4l-128 -213v-171c-10 4 -21 4 -32 4s-22 0 -32 -4v171l-128 213c10 -4 21 -4 32 -4s22 0 32 4l96 -160l96 160c10 -4 22 -4 33 -4z" />
- <glyph glyph-name="ion-social-yen-outline" unicode="&#xf4f1;" horiz-adv-x="384"
-d="M384 416l-112 -208h48v-48h-73l-15 -31v-17h88v-48h-88v-96h-80v96h-88v48h88v17l-14 31h-74v48h48l-112 208h80l112 -221l112 221h80zM304 192h-59l13 24l99 184v0h-43l-122 -240l-122 240h-43l99 -184l13 -24h-59v-16h68l20 -44v-36h-88v-16h88v-96h48v96h88v16h-88v37
-l21 43h67v16z" />
- <glyph glyph-name="ion-social-yen" unicode="&#xf4f2;" horiz-adv-x="384"
-d="M384 416l-112 -208h48v-48h-73l-15 -31v-17h88v-48h-88v-96h-80v96h-88v48h88v17l-14 31h-74v48h48l-112 208h80l112 -221l112 221h80z" />
- <glyph glyph-name="ion-social-youtube-outline" unicode="&#xf24c;" horiz-adv-x="512"
-d="M265 352v0h-9h-9c-65 0 -118 -2 -168 -4h-1h-1c-23 0 -42 -22 -42 -49v-1v-1c-2 -34 -3 -70 -3 -105v0v0c0 -35 1 -70 3 -104v-2v-1c0 -14 5 -26 14 -36c8 -9 17 -13 28 -13h1h1c52 -2 108 -4 166 -4h11v0v0h11c58 0 113 2 166 4h1h1c11 0 20 4 28 13c9 10 14 22 14 36v1
-v2c2 34 3 68 3 104v0v0c0 36 -1 71 -3 105v1v2c0 27 -19 49 -42 49h-1h-1c-49 2 -103 3 -168 3zM265 384v0c58 0 115 0 170 -3c41 0 74 -36 74 -81c2 -36 3 -72 3 -108s-1 -71 -3 -107c0 -45 -33 -81 -74 -81c-55 -3 -111 -4 -168 -4h-11h-11c-57 0 -113 1 -168 4
-c-41 0 -74 36 -74 81c-2 36 -3 71 -3 107s2 71 4 107c0 45 32 82 73 82c55 2 112 3 170 3h9h9zM207 94v197l145 -99z" />
- <glyph glyph-name="ion-social-youtube" unicode="&#xf24d;" horiz-adv-x="512"
-d="M509 299c2 -36 3 -71 3 -107s-1 -71 -3 -107c0 -45 -33 -81 -74 -81c-58 -3 -118 -4 -179 -4s-121 1 -179 4c-41 0 -74 36 -74 81c-2 36 -3 71 -3 107s2 71 4 107c0 45 32 81 73 81c55 3 112 4 170 4h9h9c58 0 115 -1 170 -4c41 0 74 -36 74 -81zM207 94l145 98l-145 99
-v-197z" />
- <glyph glyph-name="ion-soup-can-outline" unicode="&#xf4f3;" horiz-adv-x="320"
-d="M160 304c-88 0 -160 29 -160 64s72 64 160 64s160 -29 160 -64s-72 -64 -160 -64zM160 415c-70 0 -126 -19 -126 -43s56 -43 126 -43s126 19 126 43s-56 43 -126 43zM161 288c88 0 158 29 159 64c0 -5 0 -33 -8 -40v-240c0 -35 -64 -64 -152 -64s-152 29 -152 64v240
-c-8 6 -8 40 -8 40c0 -35 73 -64 161 -64zM280 72v80c-18 -10 -43 -17 -72 -21h-2c-6 -20 -24 -35 -46 -35s-40 15 -46 35h-2c-29 4 -54 11 -72 21v-80c1 -2 9 -10 30 -18c24 -9 55 -14 90 -14s67 5 91 14c21 8 29 16 29 18zM280 184v91c-33 -12 -75 -19 -119 -19
-c-45 0 -87 7 -121 19v-91c18 -10 43 -17 73 -21h3c7 17 24 29 44 29s37 -12 44 -29h3c30 4 55 11 73 21zM178 -16zM160 -16h1h-1v0zM312 32l8 -16c0 -7 -3 -14 -8 -20c-21 -26 -81 -44 -152 -44s-131 18 -152 44c-5 6 -8 13 -8 20l8 16v16c0 -35 63 -64 152 -64
-s152 28 152 64v-16z" />
- <glyph glyph-name="ion-soup-can" unicode="&#xf4f4;" horiz-adv-x="320"
-d="M0 368c0 43 53 64 160 64s160 -21 160 -64s-53 -64 -160 -64s-160 21 -160 64zM160 8c-44 0 -80 6 -109 18s-43 28 -43 46v128c0 -9 4 -19 13 -27s21 -15 37 -21s33 -10 54 -13c1 -12 7 -23 16 -31s20 -12 32 -12s23 4 32 12s15 19 16 31c31 4 56 12 75 23s29 24 29 38
-v-128c0 -18 -14 -34 -43 -46s-65 -18 -109 -18zM160 288c44 0 82 6 113 18s47 28 47 46v-8c0 -5 -1 -11 -2 -18s-3 -11 -6 -14v-96c0 -14 -10 -27 -29 -38s-44 -19 -76 -23c-2 11 -8 19 -17 26s-19 11 -30 11s-21 -4 -30 -11s-15 -15 -17 -26c-32 4 -57 12 -76 23
-s-29 24 -29 38v96c-5 5 -8 18 -8 40c0 -18 16 -34 47 -46s69 -18 113 -18zM312 56v-24l8 -16c0 -7 -3 -14 -8 -20c-11 -13 -30 -24 -58 -32s-59 -12 -94 -12s-66 4 -94 12s-47 19 -58 32c-5 6 -8 13 -8 20l8 16v24c0 -18 14 -34 43 -46s65 -18 109 -18s80 6 109 18
-s43 28 43 46z" />
- <glyph glyph-name="ion-speakerphone" unicode="&#xf2b2;"
-d="M39 266c0 -37 20 -69 50 -86c-1 0 -2 1 -3 1s-4 1 -5 1v0c-35 3 -62 33 -69 69c-6 0 -12 7 -12 16c0 8 5 15 11 16c6 42 40 75 81 75h8c-36 -15 -61 -51 -61 -92zM433 357c10 -25 15 -56 15 -88s-5 -63 -15 -88l-3 -9c-6 -14 -15 -26 -24 -34c-10 -10 -22 -19 -34 -20h-3
-c-7 0 -15 2 -22 5c-3 2 -10 5 -10 5c-22 10 -84 28 -115 29c-4 -8 -10 -20 -12 -30c-2 -9 -6 -27 -7 -61c-1 -32 1 -59 3 -82c0 -2 1 -5 1 -7c0 -6 -2 -9 -9 -9h-77c-6 0 -9 3 -9 6v7c2 72 25 140 26 145c2 9 5 17 7 30c2 12 -27 13 -40 24c-29 17 -47 49 -47 86
-c0 41 25 77 59 92h42h19c58 3 114 21 163 50c1 1 3 1 4 2v0c8 4 16 6 24 6c13 0 26 -6 37 -16c9 -9 18 -21 24 -35c1 -3 2 -5 3 -8zM410 180c9 22 15 54 15 89s-6 66 -15 88c-8 18 -19 29 -30 29s-21 -11 -29 -29c-9 -22 -15 -53 -15 -88s6 -67 15 -89c8 -19 18 -33 29 -33
-s22 15 30 33z" />
- <glyph glyph-name="ion-speedometer" unicode="&#xf2b3;"
-d="M312 192l8 -8l-64 -84v-4c0 -18 -14 -32 -32 -32s-32 14 -32 32s14 32 32 32h4zM224 352c124 0 224 -100 224 -224c0 -34 -8 -67 -22 -96h-36c15 27 25 57 26 88h-32v16h32c-1 29 -9 56 -22 81l-27 -15l-8 13l27 16c-8 12 -16 23 -26 33s-21 18 -33 26l-16 -27l-14 8
-l16 27c-25 13 -52 21 -81 22v-32h-16v32c-29 -1 -56 -9 -81 -22l16 -27l-14 -8l-16 27c-12 -8 -23 -16 -33 -26s-19 -21 -26 -33l28 -16l-8 -13l-28 15c-13 -25 -21 -52 -22 -81h32v-16h-32c1 -31 11 -61 26 -88h-36c-14 29 -22 62 -22 96c0 124 100 224 224 224z" />
- <glyph glyph-name="ion-spoon" unicode="&#xf2b4;" horiz-adv-x="128"
-d="M128 288c0 64 -26 128 -64 128s-64 -64 -64 -128v0c1 -25 16 -54 37 -64l1 -1v0c3 -2 10 -6 10 -10c0 0 -16 -199 -16 -210s4 -20 10 -26s14 -9 22 -9v0v0c8 0 16 3 22 9s10 13 10 26s-16 210 -16 210c0 4 7 8 10 10l1 1c22 10 37 38 37 64z" />
- <glyph glyph-name="ion-star" unicode="&#xf24e;"
-d="M448 248l-139 -104l55 -176l-140 112l-140 -112l55 176l-139 104h172l52 168l53 -168h171z" />
- <glyph glyph-name="ion-stats-bars" unicode="&#xf2b5;" horiz-adv-x="352"
-d="M96 32v320h64v-320h-64zM0 32v96h64v-96h-64zM192 32v160h64v-160h-64zM288 32v224h64v-224h-64z" />
- <glyph glyph-name="ion-steam" unicode="&#xf30b;" horiz-adv-x="512"
-d="M480 240c0 -20 -16 -37 -37 -37c-20 0 -37 16 -37 37c0 20 16 37 37 37c20 0 37 -17 37 -37zM443 309c38 0 69 -31 69 -69s-31 -70 -69 -70l-67 -48c-2 -26 -24 -47 -51 -47c-25 0 -46 18 -51 41l-196 78c-8 -5 -16 -7 -26 -7c-28 0 -52 24 -52 52s24 52 52 52
-c25 0 45 -18 50 -41l196 -79c8 5 17 8 27 8c2 0 3 -1 5 -1l43 62c0 38 32 69 70 69zM443 286c-26 0 -47 -20 -47 -46s21 -47 47 -47s46 21 46 47s-20 46 -46 46zM52 277c-21 0 -38 -17 -38 -38s17 -38 38 -38c3 0 5 0 8 1l-16 6v0c-15 7 -22 24 -16 39s24 23 39 17v0l19 -7
-c-6 12 -19 20 -34 20zM325 165c-3 0 -6 -1 -9 -1l16 -6c16 -6 23 -24 17 -40s-23 -23 -39 -17c-6 3 -13 6 -19 8c6 -12 19 -20 34 -20c21 0 38 17 38 38s-17 38 -38 38z" />
- <glyph glyph-name="ion-stop" unicode="&#xf24f;" horiz-adv-x="384"
-d="M373 384c6 0 11 -5 11 -11v-362c0 -6 -5 -11 -11 -11h-362c-6 0 -11 5 -11 11v362c0 6 5 11 11 11h362z" />
- <glyph glyph-name="ion-thermometer" unicode="&#xf2b6;" horiz-adv-x="160"
-d="M127 112c20 -14 33 -38 33 -64c0 -44 -36 -80 -80 -80s-80 36 -80 80c0 27 13 51 33 65v257c0 26 21 46 47 46s47 -20 47 -46v-258zM65 370v-50h30v50c0 8 -7 14 -15 14s-15 -6 -15 -14zM96 160v16h-16v-16h16zM96 192v64h-16v-64h16z" />
- <glyph glyph-name="ion-thumbsdown" unicode="&#xf250;" horiz-adv-x="384"
-d="M24 195c-10 5 -18 17 -18 29c0 14 8 25 20 30c-4 5 -6 12 -6 19c0 14 8 25 20 30c-3 5 -5 11 -5 17c0 18 11 24 35 30s74 12 126 9c23 -1 55 -7 76 -7v32h112v-240h-112v16c-15 -1 -31 -4 -40 -14c-22 -23 -40 -65 -40 -108c0 -19 1 -29 -4 -34c-13 -13 -44 9 -52 37
-c-9 34 -1 62 1 87h-103c-19 0 -34 15 -34 34c0 15 10 29 24 33zM336 352c-9 0 -16 -7 -16 -16s7 -16 16 -16s16 7 16 16s-7 16 -16 16z" />
- <glyph glyph-name="ion-thumbsup" unicode="&#xf251;" horiz-adv-x="384"
-d="M360 189c10 -5 18 -17 18 -29c0 -14 -8 -25 -20 -30c4 -5 6 -12 6 -19c0 -14 -8 -25 -20 -30c3 -5 5 -11 5 -17c0 -18 -11 -24 -35 -30s-74 -12 -126 -9c-23 1 -55 7 -76 7v-32h-112v240h112v-16c15 1 31 4 40 14c22 23 40 65 40 108c0 19 -1 29 4 34c13 13 44 -9 52 -37
-c9 -34 1 -62 -1 -87h103c19 0 34 -15 34 -34c0 -15 -10 -29 -24 -33zM48 32c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16z" />
- <glyph glyph-name="ion-toggle-filled" unicode="&#xf354;"
-d="M320 240c26 0 48 -22 48 -48s-22 -48 -48 -48s-48 22 -48 48s22 48 48 48zM320 320c71 0 128 -57 128 -128s-57 -128 -128 -128h-192c-71 0 -128 57 -128 128s57 128 128 128h192zM320 112c44 0 80 36 80 80s-36 80 -80 80s-80 -36 -80 -80s36 -80 80 -80z" />
- <glyph glyph-name="ion-toggle" unicode="&#xf355;"
-d="M320 288h-192c-53 0 -96 -43 -96 -96s43 -96 96 -96h192c53 0 96 43 96 96s-43 96 -96 96zM320 320v0c71 0 128 -57 128 -128s-57 -128 -128 -128h-192c-71 0 -128 57 -128 128s57 128 128 128h192zM128 240c-26 0 -48 -22 -48 -48s22 -48 48 -48s48 22 48 48
-s-22 48 -48 48zM128 272v0c44 0 80 -36 80 -80s-36 -80 -80 -80s-80 36 -80 80s36 80 80 80z" />
- <glyph glyph-name="ion-transgender" unicode="&#xf4f5;" horiz-adv-x="512"
-d="M368 448h144v-144h-40v76l-101 -100c8 -17 13 -36 13 -56c0 -63 -46 -115 -104 -126v-52h72v-46h-72v-64h-48v64h-72v46h72v52c-59 11 -104 63 -104 126c0 20 5 39 13 56l-22 22l-36 -36l-33 33l36 36l-46 45v-76h-40v144h144v-40h-70l43 -42l36 36l33 -33l-36 -36
-l17 -17c23 22 54 36 89 36c27 0 53 -8 74 -23c0 0 6 -5 15 -13l93 92h-70v40zM256 144c44 0 80 36 80 80s-36 80 -80 80s-80 -36 -80 -80s36 -80 80 -80z" />
- <glyph glyph-name="ion-trash-a" unicode="&#xf252;" horiz-adv-x="352"
-d="M261 320v0h91v-32h-9s-5 -1 -8 -4s-4 -9 -4 -9l-19 -241c-2 -29 -2 -34 -36 -34h-200c-34 0 -34 5 -36 34l-19 242s-1 6 -4 9s-8 3 -8 3h-9v32h91v29c0 19 14 35 34 35h101c20 0 35 -16 35 -35v-29zM112 349v-29h128v29c0 10 -9 15 -19 15h-91c-10 0 -18 -5 -18 -15z
-M104 64h20l-10 192h-21zM187 64v192h-22v-192h22zM249 64l10 192h-20l-11 -192h21z" />
- <glyph glyph-name="ion-trash-b" unicode="&#xf253;" horiz-adv-x="320"
-d="M318 315c3 -12 4 -11 -7 -11h-302c-11 0 -10 -1 -7 11c2 9 4 13 4 13c3 9 9 9 19 11l53 7c7 1 7 1 10 7c9 20 10 31 20 31h103c10 0 12 -11 21 -31c3 -6 3 -6 10 -7l53 -6c10 -2 16 -2 19 -11c0 0 2 -5 4 -14zM283 272c17 0 18 -2 17 -15l-19 -242c-2 -12 -2 -15 -17 -15
-h-208c-15 0 -15 3 -17 15l-19 242c-1 12 0 15 17 15h246z" />
- <glyph glyph-name="ion-trophy" unicode="&#xf356;"
-d="M448 345c0 -25 2 -73 -22 -122c-15 -30 -36 -55 -63 -75c-23 -16 -49 -28 -77 -35c-16 -17 -32 -27 -46 -31v-33s0 -49 99 -49h13v-32h-256v32h13c85 0 97 35 99 46v36c-14 4 -30 14 -46 31c-28 7 -55 19 -77 35c-27 20 -48 45 -63 75c-17 36 -21 71 -22 97v0v11v0v21v0
-h80c-2 35 0 64 0 64h143h1h1h142s2 -29 0 -64h81v-7zM51 237c17 -34 43 -61 77 -78c-22 40 -33 84 -42 135c-1 8 -2 17 -3 26h-51c1 -23 5 -53 19 -83zM397 237c14 30 18 60 19 83h-51c-1 -9 -3 -18 -4 -26c-9 -51 -20 -95 -42 -135c34 17 61 43 78 78z" />
- <glyph glyph-name="ion-tshirt-outline" unicode="&#xf4f6;"
-d="M146 362l-104 -31l11 -32l39 4l38 5l-2 -38l-14 -255h220l-14 255l-2 38l38 -5l39 -4l11 32l-104 31c-6 -8 -13 -14 -21 -19c-15 -10 -34 -15 -57 -15v0v0c-34 1 -59 11 -78 34zM288 400v0l160 -48l-32 -88l-64 8l16 -289h-288l16 289l-64 -8l-32 88l160 48
-c14 -27 31 -39 64 -40c33 0 50 13 64 40z" />
- <glyph glyph-name="ion-tshirt" unicode="&#xf4f7;"
-d="M448 352l-32 -88l-64 8l16 -288h-288l16 288l-64 -8l-32 88l160 48c14 -27 31 -39 64 -40c33 0 50 13 64 40z" />
- <glyph glyph-name="ion-umbrella" unicode="&#xf2b7;"
-d="M344 160v0v0v0zM104 160v0v0v0zM240 399c116 -8 208 -109 208 -227v-12c-4 25 -26 52 -52 52c-29 0 -52 -23 -52 -52v0c0 29 -23 52 -52 52s-49 -12 -52 -45v-135c0 -17 -6 -33 -18 -45s-29 -19 -46 -19c-35 0 -63 29 -63 64c0 9 7 16 16 16s16 -7 16 -16
-c0 -18 14 -32 31 -32c18 0 32 14 32 32v134c-1 24 -26 46 -52 46c-29 0 -52 -23 -52 -52v0c0 29 -23 52 -52 52c-27 0 -49 -26 -52 -52v18c0 118 92 213 208 221v1c0 9 7 16 16 16s16 -7 16 -16v-1z" />
- <glyph glyph-name="ion-university" unicode="&#xf357;"
-d="M224 384l224 -111l-92 -60l-132 -85l-160 102v-198l-32 16v203l-32 21zM358 192l10 -82c-16 -12 -112 -78 -144 -110c-32 32 -128 98 -144 110l9 82l135 -88z" />
- <glyph glyph-name="ion-unlocked" unicode="&#xf254;" horiz-adv-x="384"
-d="M22 -32c-12 0 -22 10 -22 22v212c0 12 10 22 22 22h3h19v31c0 42 17 87 43 115s64 46 105 46v0v0c41 0 79 -18 105 -46c20 -21 33 -51 39 -82h-53c-5 18 -13 35 -24 47v0v1c-18 19 -42 29 -67 29v0v0c-25 0 -49 -10 -67 -29v-1v0c-18 -19 -28 -53 -28 -80v-31h265
-c12 0 22 -10 22 -22v-212c0 -12 -10 -22 -22 -22h-340z" />
- <glyph glyph-name="ion-upload" unicode="&#xf255;"
-d="M366 215c45 0 82 -37 82 -83s-37 -84 -82 -84h-110v80h48l-80 84l-80 -84h48v-80h-102c-49 0 -90 41 -90 91c0 40 26 74 61 86c5 29 29 51 59 51c10 0 18 -3 26 -7c19 40 59 67 105 67c64 0 115 -53 115 -118v-3z" />
- <glyph glyph-name="ion-usb" unicode="&#xf2b8;" horiz-adv-x="256"
-d="M16 228v0v0zM256 320c0 -11 -6 -21 -14 -27v0c-2 -1 -3 -5 -3 -7c-1 -20 -3 -36 -9 -50c-7 -19 -20 -33 -39 -46c-17 -12 -29 -21 -36 -34c-7 -12 -11 -28 -11 -53v-24c0 -7 2 -13 10 -18c4 -2 7 -6 10 -9c8 -9 14 -21 14 -34c0 -28 -22 -50 -50 -50s-50 22 -50 50v1v0
-c0 18 10 33 24 42c5 4 9 5 9 18v0c0 14 -3 17 -10 27s-18 17 -32 26c-19 13 -33 27 -40 46c-6 15 -8 31 -9 39s-2 9 -4 11c-10 6 -16 16 -16 28c0 18 14 32 32 32s32 -14 32 -32c0 -10 -4 -20 -12 -26c-3 -2 -4 -11 -4 -14v0v0c0 -9 3 -18 7 -28c10 -21 45 -44 52 -44
-s8 5 8 12v196s-1 2 -3 4h-1v1v0c-9 6 -15 16 -15 27c0 18 14 32 32 32s32 -14 32 -32c0 -11 -5 -21 -14 -27v0c-2 -2 -2 -3 -2 -5v-140c0 -10 2 -12 8 -11c13 3 48 30 52 43c3 10 6 23 7 41v1c0 2 -2 4 -3 6c-10 6 -16 16 -16 28c0 18 14 32 32 32s32 -14 32 -32zM32 240
-c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16zM128 368c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16zM224 304c9 0 16 7 16 16s-7 16 -16 16s-16 -7 -16 -16s7 -16 16 -16z" />
- <glyph glyph-name="ion-videocamera" unicode="&#xf256;"
-d="M335 263v-66l113 35v-89v-88l-113 35v-65c0 -5 -4 -9 -9 -9h-317c-5 0 -9 4 -9 9v12v55v171c0 5 4 9 9 9h208v38c0 4 -6 10 -10 10h-176v48h178c36 0 65 -29 65 -64v-32h52c5 0 9 -4 9 -9zM226 107c20 0 36 16 36 36s-16 35 -36 35s-36 -15 -36 -35c0 -10 4 -19 11 -26
-h-68c7 7 11 16 11 26c0 20 -16 36 -36 36s-36 -16 -36 -36s16 -36 36 -36h12h95h11z" />
- <glyph glyph-name="ion-volume-high" unicode="&#xf257;"
-d="M199 40l-95 88h-104v128h104l95 88v-304zM255 92l-20 16c17 24 27 52 27 84s-10 60 -27 84l20 16c20 -28 33 -63 33 -100s-13 -72 -33 -100zM322 46l-21 16c27 36 43 81 43 130s-16 94 -43 130l21 16c30 -41 48 -91 48 -146s-18 -105 -48 -146zM365 369l20 15
-c39 -54 63 -120 63 -192s-24 -138 -63 -192l-20 15c36 49 58 111 58 177s-22 128 -58 177z" />
- <glyph glyph-name="ion-volume-low" unicode="&#xf258;" horiz-adv-x="288"
-d="M199 40l-95 88h-104v128h104l95 88v-304zM255 92l-20 16c17 24 28 52 28 84s-11 60 -28 84l20 16c20 -28 33 -63 33 -100s-13 -72 -33 -100z" />
- <glyph glyph-name="ion-volume-medium" unicode="&#xf259;" horiz-adv-x="370"
-d="M199 40l-95 88h-104v128h104l95 88v-304zM255 92l-20 16c17 24 28 52 28 84s-11 60 -28 84l20 16c20 -28 33 -63 33 -100s-13 -72 -33 -100zM322 46l-21 16c27 36 43 81 43 130s-16 94 -43 130l21 16c30 -41 48 -91 48 -146s-18 -105 -48 -146z" />
- <glyph glyph-name="ion-volume-mute" unicode="&#xf25a;"
-d="M224 231l47 51v-180l-47 51h-65v78h65zM332 388c69 -38 116 -112 116 -196c0 -124 -100 -224 -224 -224c-39 0 -76 10 -108 27l-1 1c-69 38 -115 112 -115 196c0 124 100 224 224 224c39 0 75 -10 107 -28h1zM362 93c20 28 33 62 33 99c0 66 -38 123 -92 151
-c-6 3 -11 6 -17 8c-19 7 -40 11 -62 11c-37 0 -71 -12 -99 -32l73 -74h-76l-36 35c-20 -28 -32 -62 -32 -99c0 -65 36 -121 90 -150c6 -3 13 -7 19 -9c19 -7 39 -11 61 -11c37 0 72 12 100 32l-20 20v77z" />
- <glyph glyph-name="ion-wand" unicode="&#xf358;"
-d="M192 208l48 48l48 -48l-48 -48zM0 16l176 176l48 -48l-176 -176zM224 352v64h32v-64h-32zM398 344l-45 -45l-23 22l46 45zM127 299l-45 45l22 22l45 -45zM376 50l-46 45l23 23l45 -46zM384 192v32h64v-32h-64z" />
- <glyph glyph-name="ion-waterdrop" unicode="&#xf25b;" horiz-adv-x="320"
-d="M175 409c40 -41 145 -160 145 -288c0 -85 -72 -153 -160 -153c-56 0 -106 27 -134 69c-6 9 -11 19 -15 29c-7 17 -11 35 -11 55v4c1 67 31 131 64 183c20 31 42 57 59 77c9 10 16 18 22 24l1 1v0c4 3 8 6 14 6c5 0 10 -3 14 -6v0zM160 24c55 0 100 45 100 100
-c0 14 -3 28 -8 40c-17 -65 -70 -116 -136 -130c13 -6 28 -10 44 -10z" />
- <glyph glyph-name="ion-wifi" unicode="&#xf25c;"
-d="M224 352c80 0 156 -30 214 -84l10 -10l-10 -9l-32 -32l-10 -10l-9 9c-44 41 -103 64 -163 64s-119 -23 -163 -64l-9 -9l-10 10l-32 32l-10 9l10 10c58 54 134 84 214 84v0zM365 192l11 -10l-10 -10l-33 -32l-9 -9l-10 8c-25 22 -57 35 -90 35s-65 -13 -90 -35l-10 -8
-l-9 9l-33 32l-10 10l11 10c37 33 83 52 132 54v0h9v0v0c52 0 102 -19 141 -54zM224 32l-10 10l-52 52l-11 10l12 10c17 11 32 20 61 20s47 -9 62 -20l11 -10l-10 -10l-53 -52z" />
- <glyph glyph-name="ion-wineglass" unicode="&#xf2b9;" horiz-adv-x="256"
-d="M167 153c-11 -4 -24 -8 -24 -32v-94c0 -11 4 -19 12 -25c3 -2 7 -4 15 -6c32 -9 48 -16 50 -18c2 -1 4 -3 4 -7c0 0 -14 -3 -96 -3s-96 3 -96 3c0 4 2 6 4 7c2 2 18 9 50 18c8 2 11 4 14 6c8 6 11 14 11 25v94c0 24 -11 28 -22 32s-18 6 -26 11c-12 7 -23 16 -32 26
-c-20 23 -31 52 -31 87c0 50 4 100 8 114s14 25 31 25h178c17 0 27 -11 31 -25s8 -65 8 -115c0 -35 -11 -63 -31 -86c-9 -10 -20 -19 -32 -26c-8 -5 -15 -7 -26 -11zM128 178c26 0 50 11 67 28l6 6c16 18 22 35 23 65s-2 83 -8 107h-177c-7 -35 -8 -80 -7 -108s7 -46 23 -64
-c2 -3 4 -6 7 -8c17 -16 41 -26 66 -26zM208 277c0 -10 -1 -20 -4 -29s-8 -18 -15 -25l-5 -5c-14 -14 -34 -23 -56 -23c-21 0 -41 8 -55 22l-6 6c-7 7 -12 16 -15 25s-3 15 -4 29c-1 9 0 34 1 53c1 10 2 19 3 22h153c1 -6 2 -14 2 -22c1 -21 1 -45 1 -53zM192 269v0v26
-c0 4 -4 8 -8 8s-8 -4 -8 -8v-26c0 -3 1 -6 3 -7c1 -1 3 -1 5 -1c4 0 8 3 8 8zM191 316c1 2 1 4 1 6s-2 4 -4 5s-4 1 -6 1s-4 -1 -5 -3s-1 -4 -1 -6s2 -4 4 -5s4 -1 6 -1s4 1 5 3z" />
- <glyph glyph-name="ion-woman" unicode="&#xf25d;" horiz-adv-x="192"
-d="M30 299c3 12 17 33 42 34h48c24 -1 38 -22 42 -34l29 -104c6 -23 -21 -32 -27 -10l-26 96h-9l46 -169h-43v-127c0 -23 -31 -23 -31 0v127h-10v-127c0 -23 -32 -23 -32 0v127h-42l45 169h-7l-27 -96c-7 -21 -33 -13 -27 10zM133 379c0 -21 -17 -37 -37 -37s-37 16 -37 37
-s17 37 37 37s37 -16 37 -37z" />
- <glyph glyph-name="ion-wrench" unicode="&#xf2ba;"
-d="M430 333c14 -14 19 -31 18 -44s-6 -39 -32 -65s-77 -42 -113 -24c-5 3 -13 5 -21 -3c-10 -9 -202 -215 -202 -215c-17 -19 -48 -18 -66 0s-19 49 0 66c0 0 207 194 215 202s5 16 3 22c-20 47 2 89 24 112c22 24 51 31 65 32c13 1 31 -5 44 -18l-57 -56l10 -56l55 -10z
-M59 5c6 6 6 17 0 23s-16 6 -22 0s-6 -17 0 -23s16 -6 22 0z" />
- <glyph glyph-name="ion-xbox" unicode="&#xf30c;"
-d="M95 200c-49 -72 -50 -139 -50 -143c-28 38 -45 84 -45 135c0 67 30 128 77 169l3 -1c51 -18 93 -68 93 -68s-38 -33 -78 -92zM448 192c0 -51 -17 -97 -45 -135c0 4 -1 71 -50 143c-40 59 -78 92 -78 92s42 50 93 68l3 1c47 -41 77 -102 77 -169zM169 367
-c-37 17 -65 12 -72 10c36 25 80 39 127 39s91 -14 127 -39c-7 2 -35 6 -72 -10c-29 -13 -55 -35 -55 -35s-26 22 -55 35zM327 155c40 -49 54 -85 62 -108l2 -5c-41 -46 -101 -74 -167 -74s-126 28 -167 74l1 5c8 23 23 59 63 108c46 57 103 94 103 94s57 -37 103 -94z" />
- </font>
-</defs></svg>
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.ttf b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.ttf
deleted file mode 100644
index c4e46324..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.ttf
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.woff b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.woff
deleted file mode 100644
index 5f3a14e0..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/fonts/ionicons.woff
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/readme.md b/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/readme.md
deleted file mode 100644
index f530251c..00000000
--- a/ecomp-portal-FE/client/bower_components_external/ionicons-2.0.1/readme.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# Ionicons
-
-
-The premium icon font for [Ionic](http://ionicframework.com/). Designed by [@benjsperry](https://twitter.com/benjsperry).
-
-Note: All brand icons are trademarks of their respective owners. The use of these trademarks does not indicate endorsement of the trademark holder by Drifty, nor vice versa.
-
-Visit [ionicons.com](http://ionicons.com) and check out the search feature, which has keywords identifying common icon names and styles. For example, if you search for “arrow†we call up every icon that could possibly be used as an arrow. We’ve also included each icon’s class name for easy copy/pasting when you’re developing!
-
-We intend for this icon pack to be used with [Ionic](http://ionicframework.com/), but it’s by no means limited to it. Use them wherever you see fit, personal or commercial. They are free to use and licensed under [MIT](http://opensource.org/licenses/MIT).
-
-
-## Getting Started
-
- 1. Download and extract the font pack
- 2. Copy the `ionicons.css` to your project
- 3. Copy the `fonts` folder to your project
- 4. Ensure the font urls within `ionicons.css` properly reference the `fonts` path within your project.
- 5. Include a reference to the `ionicons.css` file from every webpage you need to use it.
-
-Or install with [component](https://github.com/component/component):
-
- $ component install driftyco/ionicons
-
-Or perhaps you're known to use [bower](http://bower.io/)?
-
- $ bower install ionicons
-
-
-## HTML Example
-
-You can use [ionicons.com](http://ionicons.com) to easily find the icon you want to use. Once you've copied the desired icon's CSS classname, simply add the `icon` and icon's classname, such as `ion-home` to an HTML element.
-
- <i class="icon ion-home"></i>
-
-
-## Build Instructions
-
-This repo already comes with all the files built and ready to go, but can also build the fonts from the source. Requires Python, FontForge and Sass:
-
-1) Install FontForge, which is the program that creates the font files from the SVG files:
-
- $ brew install fontforge ttfautohint
-
-2) Install [Sass](http://sass-lang.com/)
-
- $ gem install sass
-
-3) Add or subtract files from the `src/` folder you'd like to be apart of the font files.
-
-4) Modify any settings in the `builder/manifest.json` file. You can change the name of the font-family and CSS classname prefix.
-
-5) Run the build command:
-
- python ./builder/generate.py
-
-
-## License
-
-Ionicons is licensed under the [MIT license](http://opensource.org/licenses/MIT).
diff --git a/ecomp-portal-FE/client/configurations/dev.json b/ecomp-portal-FE/client/configurations/dev.json
deleted file mode 100644
index 46c4858b..00000000
--- a/ecomp-portal-FE/client/configurations/dev.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "api": {
- "userApps": "http://localhost:8080/ecompportal/portalApi/userApps",
- "persUserApps": "http://localhost:8080/ecompportal/portalApi/persUserApps",
- "appCatalog": "http://localhost:8080/ecompportal/portalApi/appCatalog",
- "accountAdmins": "http://localhost:8080/ecompportal/portalApi/accountAdmins",
- "availableApps": "http://localhost:8080/ecompportal/portalApi/availableApps",
- "allAvailableApps": "http://localhost:8080/ecompportal/portalApi/allAvailableApps",
- "userProfile": "http://localhost:8080/ecompportal/portalApi/userProfile",
- "currentUserProfile": "http://localhost:8080/ecompportal/portalApi/currentUserProfile",
- "queryUsers": "http://localhost:8080/ecompportal/portalApi/queryUsers",
- "adminAppsRoles": "http://localhost:8080/ecompportal/portalApi/adminAppsRoles",
- "adminApps": "http://localhost:8080/ecompportal/portalApi/adminApps",
- "appsForSuperAdminAndAccountAdmin": "http://localhost:8080/ecompportal/portalApi/appsForSuperAdminAndAccountAdmin",
- "accountUsers": "http://localhost:8080/ecompportal/portalApi/app/:appId/users",
- "saveNewUser": "http://localhost:8080/ecompportal/portalApi/saveNewUser",
- "userAppRoles": "http://localhost:8080/ecompportal/portalApi/userAppRoles",
- "updateRemoteUserProfile": "http://localhost:8080/ecompportal/portalApi/updateRemoteUserProfile",
- "onboardingApps": "http://localhost:8080/ecompportal/portalApi/onboardingApps",
- "widgets": "http://localhost:8080/ecompportal/portalApi/widgets",
- "widgetsValidation": "http://localhost:8080/ecompportal/portalApi/widgets/validation",
- "functionalMenuForAuthUser": "http://localhost:8080/ecompportal/portalApi/functionalMenuForAuthUser",
- "functionalMenuForEditing": "http://localhost:8080/ecompportal/portalApi/functionalMenuForEditing",
- "functionalMenu": "http://localhost:8080/ecompportal/portalApi/functionalMenu",
- "functionalMenuItemDetails": "http://localhost:8080/ecompportal/portalApi/functionalMenuItemDetails/:menuId",
- "appRoles": "http://localhost:8080/ecompportal/portalApi/appRoles/:appId",
- "functionalMenuItem": "http://localhost:8080/ecompportal/portalApi/functionalMenuItem",
- "regenerateFunctionalMenuAncestors": "http://localhost:8080/ecompportal/portalApi/regenerateFunctionalMenuAncestors",
- "listOfApp": "http://localhost:8080/ecompportal/portalApi/getAppList",
- "setFavoriteItem": "http://localhost:8080/ecompportal/portalApi/setFavoriteItem",
- "getFavoriteItems": "http://localhost:8080/ecompportal/portalApi/getFavoriteItems",
- "removeFavoriteItem": "http://localhost:8080/ecompportal/portalApi/removeFavoriteItem/:menuId",
- "ping": "http://localhost:8080/ecompportal/portalApi/ping",
- "functionalMenuStaticInfo": "http://localhost:8080/ecompportal/portalApi/functionalMenuStaticInfo",
- "resetFunctionalMenuStaticInfo": "http://localhost:8080/ecompportal/portalApi/resetFunctionalMenuStaticInfo",
- "portalAdmins": "http://localhost:8080/ecompportal/portalApi/portalAdmins",
- "portalAdmin": "http://localhost:8080/ecompportal/portalApi/portalAdmin",
- "getKpiDashUserStoriesStats":"http://localhost:8080/ecompportal/portalApi/get_user_stories_stats",
- "getKpiDashUserApiStats":"http://localhost:8080/ecompportal/portalApi/get_user_api_stats",
- "getKpiDashLocStats":"http://localhost:8080/ecompportal/portalApi/get_loc_stats",
- "getKpiDashLocStatsCat":"http://localhost:8080/ecompportal/portalApi/get_loc_stats_cat",
- "getKpiDashServiceSupported":"http://localhost:8080/ecompportal/portalApi/get_kpi_service_supported",
- "getKpiDashPublishedDelivered":"http://localhost:8080/ecompportal/portalApi/execute_get_published_delivered",
- "getKpiDashFeedStats":"http://localhost:8080/ecompportal/portalApi/execute_get_feed_stats",
- "getKpiDashUserApis":"http://localhost:8080/ecompportal/portalApi/get_user_api_stats",
- "getKpiDashGeoMapUrl":"http://localhost:8080/ecompportal/portalApi/get_geo_map_url",
- "getKpiDashRCloudAUrl":"http://localhost:8080/ecompportal/portalApi/get_rcloud_a_url",
- "getKpiDashGeoMapApiUrl":"http://localhost:8080/ecompportal/portalApi/get_geo_map_api_url",
- "getManifest":"http://localhost:8080/ecompportal/portalApi/manifest",
- "getActiveUser": "http://localhost:8080/ecompportal/portalApi/dashboard/activeUsers",
- "getSearchAllByStringResults":"http://localhost:8080/ecompportal/portalApi/dashboard/search",
- "commonWidget": "http://localhost:8080/ecompportal/portalApi/dashboard/widgetData",
- "deleteCommonWidget" : "http://localhost:8080/ecompportal/portalApi/dashboard/deleteData",
- "getContactUS": "http://localhost:8080/ecompportal/portalApi/contactus/list",
- "getAppsAndContacts": "http://localhost:8080/ecompportal/portalApi/contactus/allapps",
- "saveContactUS": "http://localhost:8080/ecompportal/portalApi/contactus/save",
- "deleteContactUS": "http://localhost:8080/ecompportal/portalApi/contactus/delete",
- "getContactUSPortalDetails": "http://localhost:8080/ecompportal/portalApi/contactus/feedback",
- "getAppCategoryFunctions": "http://localhost:8080/ecompportal/portalApi/contactus/functions",
- "onlineUserUpdateRate": "http://localhost:8080/ecompportal/portalApi/dashboard/onlineUserUpdateRate",
- "getWidthThresholdLeftMenu":"http://localhost:8080/ecompportal/portalApi/dashboard/windowWidthThresholdLeftMenu",
- "getWidthThresholdRightMenu":"http://localhost:8080/ecompportal/portalApi/dashboard/windowWidthThresholdRightMenu"
- },
- "cookieDomain": "openecomp.org"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/configurations/devServer.json b/ecomp-portal-FE/client/configurations/devServer.json
deleted file mode 100644
index 0861911a..00000000
--- a/ecomp-portal-FE/client/configurations/devServer.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "api": {
- "userApps": "http://localhost:8080/ecompportal/portalApi/userApps",
- "accountAdmins": "http://localhost:8080/ecompportal/portalApi/accountAdmins",
- "availableApps": "http://localhost:8080/ecompportal/portalApi/availableApps",
- "allAvailableApps": "http://localhost:8080/ecompportal/portalApi/allAvailableApps",
- "userProfile": "http://localhost:8080/ecompportal/portalApi/userProfile",
- "queryUsers": "http://localhost:8080/ecompportal/portalApi/queryUsers",
- "adminAppsRoles": "http://localhost:8080/ecompportal/portalApi/adminAppsRoles",
- "adminApps": "http://localhost:8080/ecompportal/portalApi/adminApps",
- "appsForSuperAdminAndAccountAdmin": "http://localhost:8080/ecompportal/portalApi/appsForSuperAdminAndAccountAdmin",
- "accountUsers": "http://localhost:8080/ecompportal/portalApi/app/:appId/users",
- "userAppRoles": "http://localhost:8080/ecompportal/portalApi/userAppRoles",
- "onboardingApps": "http://localhost:8080/ecompportal/portalApi/onboardingApps",
- "widgets": "http://localhost:8080/ecompportal/portalApi/widgets",
- "widgetsValidation": "http://localhost:8080/ecompportal/portalApi/widgets/validation",
- "functionalMenuForAuthUser": "http://localhost:8080/ecompportal/portalApi/functionalMenuForAuthUser",
- "functionalMenuForEditing": "http://localhost:8080/ecompportal/portalApi/functionalMenuForEditing",
- "functionalMenu": "http://localhost:8080/ecompportal/portalApi/functionalMenu",
- "functionalMenuItemDetails": "http://localhost:8080/ecompportal/portalApi/functionalMenuItemDetails/:menuId",
- "appRoles": "http://localhost:8080/ecompportal/portalApi/appRoles/:appId",
- "functionalMenuItem": "http://localhost:8080/ecompportal/portalApi/functionalMenuItem",
- "regenerateFunctionalMenuAncestors": "http://localhost:8080/ecompportal/portalApi/regenerateFunctionalMenuAncestors",
- "setFavoriteItem": "http://localhost:8080/ecompportal/portalApi/setFavoriteItem",
- "getFavoriteItems": "http://localhost:8080/ecompportal/portalApi/getFavoriteItems",
- "removeFavoriteItem": "http://localhost:8080/ecompportal/portalApi/removeFavoriteItem/:menuId",
- "ping": "http://localhost:8080/ecompportal/portalApi/ping",
- "functionalMenuStaticInfo": "http://localhost:8080/ecompportal/portalApi/functionalMenuStaticInfo",
- "portalAdmins": "http://localhost:8080/ecompportal/portalApi/portalAdmins",
- "portalAdmin": "http://localhost:8080/ecompportal/portalApi/portalAdmin",
- "getKpiDashUserStoriesStats":"http://localhost:8080/ecompportal/portalApi/get_user_stories_stats",
- "getKpiDashUserApiStats":"http://localhost:8080/ecompportal/portalApi/get_user_api_stats",
- "getKpiDashLocStats":"http://localhost:8080/ecompportal/portalApi/get_loc_stats",
- "getKpiDashLocStatsCat":"http://localhost:8080/ecompportal/portalApi/get_loc_stats_cat",
- "getKpiDashServiceSupported":"http://localhost:8080/ecompportal/portalApi/get_kpi_service_supported",
- "getKpiDashPublishedDelivered":"http://localhost:8080/ecompportal/portalApi/execute_get_published_delivered",
- "getKpiDashFeedStats":"http://localhost:8080/ecompportal/portalApi/execute_get_feed_stats",
- "getKpiDashUserApis":"http://localhost:8080/ecompportal/portalApi/get_user_api_stats",
- "getKpiDashGeoMapUrl":"http://localhost:8080/ecompportal/portalApi/get_geo_map_url",
- "getKpiDashRCloudAUrl":"http://localhost:8080/ecompportal/portalApi/get_rcloud_a_url",
- "getKpiDashGeoMapApiUrl":"http://localhost:8080/ecompportal/portalApi/get_geo_map_api_url",
- "getActiveUser": "http://localhost:8080/ecompportal/portalApi/search/activeUsers",
- "getSearchAllByStringResults":"http://localhost:8080/ecompportal/portalApi/search/allPortal",
- "commonWidget": "http://localhost:8080/ecompportal/portalApi/search/widgetData",
- "deleteCommonWidget" : "http://localhost:8080/ecompportal/portalApi/search/deleteData"
- },
- "cookieDomain": "openecomp.org"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/configurations/integ.json b/ecomp-portal-FE/client/configurations/integ.json
deleted file mode 100644
index 0fdea4c0..00000000
--- a/ecomp-portal-FE/client/configurations/integ.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "api": {
- "userApps": "portalApi/userApps",
- "persUserApps": "portalApi/persUserApps",
- "appCatalog": "portalApi/appCatalog",
- "accountAdmins": "portalApi/accountAdmins",
- "availableApps": "portalApi/availableApps",
- "allAvailableApps": "portalApi/allAvailableApps",
- "userProfile": "portalApi/userProfile",
- "currentUserProfile": "portalApi/currentUserProfile",
- "queryUsers": "portalApi/queryUsers",
- "adminAppsRoles": "portalApi/adminAppsRoles",
- "adminApps": "portalApi/adminApps",
- "appsForSuperAdminAndAccountAdmin": "portalApi/appsForSuperAdminAndAccountAdmin",
- "accountUsers": "portalApi/app/:appId/users",
- "saveNewUser": "portalApi/saveNewUser",
- "userAppRoles": "portalApi/userAppRoles",
- "updateRemoteUserProfile": "portalApi/updateRemoteUserProfile",
- "onboardingApps": "portalApi/onboardingApps",
- "widgets": "portalApi/widgets",
- "widgetsValidation": "portalApi/widgets/validation",
- "functionalMenuForAuthUser": "portalApi/functionalMenuForAuthUser",
- "functionalMenuForEditing": "portalApi/functionalMenuForEditing",
- "functionalMenu": "portalApi/functionalMenu",
- "functionalMenuItemDetails": "portalApi/functionalMenuItemDetails/:menuId",
- "appRoles": "portalApi/appRoles/:appId",
- "functionalMenuItem": "portalApi/functionalMenuItem",
- "setFavoriteItem": "portalApi/setFavoriteItem",
- "getFavoriteItems": "portalApi/getFavoriteItems",
- "removeFavoriteItem": "portalApi/removeFavoriteItem/:menuId",
- "regenerateFunctionalMenuAncestors": "portalApi/regenerateFunctionalMenuAncestors",
- "listOfApp": "portalApi/getAppList",
- "ping": "portalApi/ping",
- "functionalMenuStaticInfo": "portalApi/functionalMenuStaticInfo",
- "resetFunctionalMenuStaticInfo": "portalApi/resetFunctionalMenuStaticInfo",
- "portalAdmins": "portalApi/portalAdmins",
- "portalAdmin": "portalApi/portalAdmin",
- "getKpiDashUserStoriesStats":"portalApi/get_user_stories_stats",
- "getKpiDashUserApiStats":"portalApi/get_user_api_stats",
- "getKpiDashLocStats":"portalApi/get_loc_stats",
- "getKpiDashLocStatsCat":"portalApi/get_loc_stats_cat",
- "getKpiDashServiceSupported":"portalApi/get_kpi_service_supported",
- "getKpiDashPublishedDelivered":"portalApi/execute_get_published_delivered",
- "getKpiDashFeedStats":"portalApi/execute_get_feed_stats",
- "getKpiDashUserApis":"portalApi/get_user_api_stats",
- "getKpiDashGeoMapUrl":"portalApi/get_geo_map_url",
- "getKpiDashRCloudAUrl":"portalApi/get_rcloud_a_url",
- "getKpiDashGeoMapApiUrl":"portalApi/get_geo_map_api_url",
- "getManifest":"portalApi/manifest",
- "getActiveUser":"portalApi/dashboard/activeUsers",
- "getSearchAllByStringResults":"portalApi/dashboard/search",
- "commonWidget":"portalApi/dashboard/widgetData",
- "deleteCommonWidget":"portalApi/dashboard/deleteData",
- "getContactUS": "portalApi/contactus/list",
- "getAppsAndContacts": "portalApi/contactus/allapps",
- "saveContactUS": "portalApi/contactus/save",
- "deleteContactUS": "portalApi/contactus/delete",
- "getContactUSPortalDetails": "portalApi/contactus/feedback",
- "getAppCategoryFunctions": "portalApi/contactus/functions",
- "onlineUserUpdateRate": "portalApi/dashboard/onlineUserUpdateRate",
- "getWidthThresholdLeftMenu":"portalApi/dashboard/windowWidthThresholdLeftMenu",
- "getWidthThresholdRightMenu":"portalApi/dashboard/windowWidthThresholdRightMenu"
- },
- "cookieDomain": "openecomp.org"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/configurations/mock.json b/ecomp-portal-FE/client/configurations/mock.json
deleted file mode 100644
index db8442a9..00000000
--- a/ecomp-portal-FE/client/configurations/mock.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "api": {
- "userApps": "http://localhost:9001/ecompportal/portalApi/userApps",
- "accountAdmins": "http://localhost:9001/ecompportal/portalApi/accountAdmins",
- "availableApps": "http://localhost:9001/ecompportal/portalApi/availableApps",
- "allAvailableApps": "http://localhost:9001/ecompportal/portalApi/availableApps",
- "userProfile": "http://localhost:9001/ecompportal/portalApi/userProfile",
- "queryUsers": "http://localhost:9001/ecompportal/portalApi/queryUsers",
- "adminAppsRoles": "http://localhost:9001/ecompportal/portalApi/adminAppsRoles",
- "adminApps": "http://localhost:9001/ecompportal/portalApi/adminApps",
- "appsForSuperAdminAndAccountAdmin": "http://localhost:9001/ecompportal/portalApi/adminApps",
- "accountUsers": "http://localhost:9001/ecompportal/portalApi/app/:appId/users",
- "userAppRoles": "http://localhost:9001/ecompportal/portalApi/userAppRoles",
- "onboardingApps": "http://localhost:9001/ecompportal/portalApi/onboardingApps",
- "widgets": "http://localhost:9001/ecompportal/portalApi/widgets",
- "widgetsValidation": "http://localhost:9001/ecompportal/portalApi/widgets/validation",
- "functionalMenuForAuthUser": "http://localhost:9001/ecompportal/portalApi/functionalMenuForAuthUser",
- "functionalMenuForEditing": "http://localhost:9001/ecompportal/portalApi/functionalMenuForAuthUser",
- "functionalMenu": "http://localhost:9001/ecompportal/portalApi/functionalMenu",
- "functionalMenuItemDetails": "http://localhost:9001/ecompportal/portalApi/functionalMenuItemDetails/:menuId",
- "appRoles": "http://localhost:9001/ecompportal/portalApi/appRoles/:appId",
- "functionalMenuItem": "http://localhost:9001/ecompportal/portalApi/functionalMenuItem",
- "regenerateFunctionalMenuAncestors": "http://localhost:9001/ecompportal/portalApi/functionalMenu",
- "setFavoriteItem": "http://localhost:9001/ecompportal/portalApi/setFavoriteItem",
- "getFavoriteItems": "http://localhost:9001/ecompportal/portalApi/getFavoriteItems",
- "removeFavoriteItem": "http://localhost:9001/ecompportal/portalApi/removeFavoriteItem/:menuId",
- "ping": "http://localhost:9001/ecompportal/portalApi/ping",
- "functionalMenuStaticInfo": "http://localhost:9001/ecompportal/portalApi/functionalMenuStaticInfo",
- "portalAdmins": "http://localhost:9001/ecompportal/portalApi/portalAdmins",
- "portalAdmin": "http://localhost:9001/ecompportal/portalApi/portalAdmin",
- "getKpiDashUserStoriesStats":"http://localhost:9001/ecompportal/portalApi/get_user_stories_stats",
- "getKpiDashUserApiStats":"http://localhost:9001/ecompportal/portalApi/get_user_api_stats",
- "getKpiDashLocStats":"http://localhost:9001/ecompportal/portalApi/get_loc_stats",
- "getKpiDashLocStatsCat":"http://localhost:9001/ecompportal/portalApi/get_loc_stats_cat",
- "getKpiDashServiceSupported":"http://localhost:9001/ecompportal/portalApi/get_kpi_service_supported",
- "getKpiDashPublishedDelivered":"http://localhost:9001/ecompportal/portalApi/execute_get_published_delivered",
- "getKpiDashFeedStats":"http://localhost:9001/ecompportal/portalApi/execute_get_feed_stats",
- "getKpiDashUserApis":"http://localhost:9001/ecompportal/portalApi/get_user_api_stats",
- "getKpiDashGeoMapUrl":"http://localhost:9001/ecompportal/portalApi/get_geo_map_url",
- "getKpiDashRCloudAUrl":"http://localhost:9001/ecompportal/portalApi/get_rcloud_a_url",
- "getKpiDashGeoMapApiUrl":"http://localhost:9001/ecompportal/portalApi/get_geo_map_api_url",
- "getManifest":"http://localhost:9001/ecompportal/portalApi/manifest",
- "getActiveUser": "http://localhost:9001/ecompportal/portalApi/dashboard/activeUsers",
- "getSearchAllByStringResults":"http://localhost:9001/ecompportal/portalApi/dashboard/search",
- "getContactUS": "http://localhost:9001/ecompportal/portalApi/contactus/list",
- "getAppsAndContacts": "http://localhost:9001/ecompportal/portalApi/contactus/allapps",
- "commonWidget": "http://localhost:9001/ecompportal/portalApi/search/widgetData",
- "deleteCommonWidget" : "http://localhost:9001/ecompportal/portalApi/search/deleteData"
- },
- "cookieDomain": "openecomp.org"
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/favicon.ico b/ecomp-portal-FE/client/favicon.ico
deleted file mode 100644
index d2c5e0fc..00000000
--- a/ecomp-portal-FE/client/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/ecomp-portal-FE/client/index.html b/ecomp-portal-FE/client/index.html
deleted file mode 100644
index 607a2f6e..00000000
--- a/ecomp-portal-FE/client/index.html
+++ /dev/null
@@ -1,279 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<!doctype html>
-<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
-<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <link rel="shortcut icon" href="assets/images/1cc621d2.ecomp_logo.png">
- <title></title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width">
- <!--<base href="/ecompportal/">-->
- <!--!!!!!!!!!!!!!!!!!!!!! moved base href from here to script tag in body, please change base href based on your server -->
- <!-- nabil - add this part to gruntfile -->
- <link rel="stylesheet" href="bower_components_external/ionicons-2.0.1/css/ionicons.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/base.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/btn.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/demo.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/dtpk.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/frms.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/sldr.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/style.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/tbs.css">
- <link rel="stylesheet" href="bower_components_external/angular.att.abs-2.17.0/styles/pages/iconography.css">
-
- <link rel="stylesheet" href="bower_components_external/angular-att-gridster/styles/ui-gridster.css">
- <link rel="stylesheet" href="bower_components_external/angular-att-gridster/css/angular-gridster.css">
-
-
- <!-- end -->
-
-<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
-<!-- build:css(client) app/vendor.css -->
-<!-- bower:css -->
-<link rel="stylesheet" href="bower_components/angular-material/angular-material.css" />
-<link rel="stylesheet" href="bower_components/ui-select/dist/select.css" />
-<link rel="stylesheet" href="bower_components/ng-dialog/css/ngDialog.css" />
-<link rel="stylesheet" href="bower_components/ng-dialog/css/ngDialog-theme-default.css" />
-<link rel="stylesheet" href="bower_components/jqTree/jqtree.css" />
-<!-- endbower -->
-<!-- endbuild -->
-
-<!-- kpi dashboard related styles -->
-<!-- kpi start -->
-<!-- kpi end -->
-
-
-<!-- build:css({.tmp,client}) app/app.css -->
-<link rel="stylesheet" href="app/app.css">
-<!-- injector:css -->
-<!-- endinjector -->
-<!-- endbuild -->
-
- <style>
-
- html, body{
- height: 100%;
- overflow:hidden;
- }
-
- </style>
-
-</head>
-<body ng-app="ecompApp">
-<script>
- if (!String.prototype.includes) {
- String.prototype.includes = function(search, start) {
- 'use strict';
- if (typeof start !== 'number') {
- start = 0;
- }
-
- if (start + search.length > this.length) {
- return false;
- } else {
- return this.indexOf(search, start) !== -1;
- }
- };
- }
-
- function nthIndex(str, pat, n){
- var L= str.length, i= -1;
- while(n-- && i++<L){
- i= str.indexOf(pat, i);
- if (i < 0) break;
- }
- return i;
- }
-
-
- var base = window.location.pathname.substring(0, window.location.pathname.indexOf("/",2)+1);
- document.write("<base href='" + base + "' />");
-
-
-
-
-</script>
-
-<script type="text/javascript">
-
- // onLoad='isCascadeFrame(this)'
- if (self != top && !self.window.location.pathname.includes("unKnownError")) {
- var e = document.body;
- var parent = e.parentNode;
- e.parentNode.removeChild(e);
- //var textnode = document.createTextNode("An unknown error has occured. Please contact your system administrator");
- //parent.appendChild(textnode);
- window.location = "unKnownError";
- }
-
-</script>
-
-<!--[if lt IE 7]>
-<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
-<![endif]-->
-
-<!-- Add your site or application content here -->
-<div ui-view="header"></div>
-<div ui-view="tabbar"></div>
-<div ng-show="ContentModel.IsVisible" class="slide">
- <div ui-view="content"></div>
- <div ui-view="sidebar"></div>
- <div ui-view="userbar" style="float:right"></div>
-</div>
-<div ui-view="error"></div>
-<div ui-view="footer"></div>
-
-<!--[if lt IE 9]>
-<script src="../bower_components/es5-shim/es5-shim.js"></script>
-<script src="../bower_components/json3/lib/json3.min.js"></script>
-<![endif]-->
-<!-- build:js({client,node_modules}) app/vendor.js -->
-<!-- bower:js -->
-<script src="bower_components/jquery/dist/jquery.js"></script>
-<script src="bower_components/es5-shim/es5-shim.js"></script>
-<script src="bower_components/angular/angular.js"></script>
-<script src="bower_components/angular-animate/angular-animate.js"></script>
-<script src="bower_components/angular-route/angular-route.js"></script>
-<script src="bower_components/angular-aria/angular-aria.js"></script>
-<script src="bower_components/angular-messages/angular-messages.js"></script>
-<script src="bower_components/angular-material/angular-material.js"></script>
-<script src="bower_components/json3/lib/json3.js"></script>
-<script src="bower_components/angular-resource/angular-resource.js"></script>
-<script src="bower_components/angular-cookies/angular-cookies.js"></script>
-<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
-<script src="bower_components/lodash/lodash.js"></script>
-<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
-<script src="bower_components/ui-select/dist/select.js"></script>
-<script src="bower_components/angular-smart-table/dist/smart-table.js"></script>
-<script src="bower_components/hammerjs/hammer.js"></script>
-<script src="bower_components/angular-gestures/gestures.min.js"></script>
-<script src="bower_components/angular-cache/dist/angular-cache.js"></script>
-<script src="bower_components/ng-dialog/js/ngDialog.js"></script>
-<script src="bower_components/jqTree/tree.jquery.js"></script>
-<script src="bower_components/angular-uuid/uuid.min.js"></script>
-<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
-<script src="bower_components/jquery-mousewheel/jquery.mousewheel.js"></script>
-<script src="bower_components/jquery.newstape/dist/jquery.newstape.min.js"></script>
-<!-- endbower -->
-<!-- endbuild -->
-
-<!-- nabil - add this part to gruntfile -->
-<script src="bower_components_external/angular.att.abs-2.17.0/att-abs-tpls.js"></script>
-<script src="bower_components_external/angular-att-gridster/ui-gridster-tpls.js"></script>
-<script src="bower_components_external/angular-att-gridster/angular-gridster.js"></script>
-<script src="bower_components_external/bowser/bowser.js"></script>
-
-
-<!-- end-->
-
-<!-- build:js(.tmp) app/app.js -->
-
-<script src="app/app.js"></script>
- <!-- injector:js -->
- <script src="app/configurations.js"></script>
- <script src="app/directives/auto-focus/auto-focus.directive.js"></script>
- <script src="app/directives/image-upload/image-upload.directive.js"></script>
- <script src="app/directives/left-menu/left-menu.directive.js"></script>
- <script src="app/directives/multiple-select/multiple-select.directive.js"></script>
- <script src="app/directives/right-click-menu/right-click-menu.directive.js"></script>
- <script src="app/directives/right-click/ng-right-click-directive.js"></script>
- <script src="app/directives/right-menu/right-menu.directive.js"></script>
- <script src="app/directives/scroll-top/scroll-top.directive.js"></script>
- <script src="app/directives/search-users/search-users.controller.js"></script>
- <script src="app/directives/search-users/search-users.directive.js"></script>
- <script src="app/filters/elipsis/elipsis.filter.js"></script>
- <script src="app/filters/trusted-url/trusted-url.filter.js"></script>
- <script src="app/router.js"></script>
- <script src="app/services/admins/admins.service.js"></script>
- <script src="app/services/applications/applications.service.js"></script>
- <script src="app/services/catalog/catalog.service.js"></script>
- <script src="app/services/confirm-box/confirm-box.service.js"></script>
- <script src="app/services/contact-us/contact-us.service.js"></script>
- <script src="app/services/dashboard/dashboard.service.js"></script>
- <script src="app/services/error-messages/error-messages.service.js"></script>
- <script src="app/services/functionalMenu/functionalMenu.service.js"></script>
- <script src="app/services/global-constants/global-constants.js"></script>
- <script src="app/services/kpi-dashboard/kpi-dashboard.service.js"></script>
- <script src="app/services/manifest/manifest.service.js"></script>
- <script src="app/services/menus/menus.service.js"></script>
- <script src="app/services/portal-admins/portal-admins.service.js"></script>
- <script src="app/services/support/getAccess/get-access.service.js"></script>
- <script src="app/services/support/session/session.service.js"></script>
- <script src="app/services/userProfile/userProfile.service.js"></script>
- <script src="app/services/userbar/userbar.update.service.js"></script>
- <script src="app/services/users/users.service.js"></script>
- <script src="app/services/utils/utils.service.js"></script>
- <script src="app/services/widgets/widgets.service.js"></script>
- <script src="app/views/admins/add-admin-dialogs/new-admin.controller.js"></script>
- <script src="app/views/admins/admins.controller.js"></script>
- <script src="app/views/applications/application-details-dialog/application-details.controller.js"></script>
- <script src="app/views/applications/applications.controller.js"></script>
- <script src="app/views/catalog/catalog.controller.js"></script>
- <script src="app/views/catalog/catalogconfirmation.controller.js"></script>
- <script src="app/views/confirmation-box/confirmation-box.controller.js"></script>
- <script src="app/views/dashboard/dashboard-widget.controller.js"></script>
- <script src="app/views/dashboard/dashboard.controller.js"></script>
- <script src="app/views/dashboard/newsticker.controller.js"></script>
- <script src="app/views/errors/error.controller.js"></script>
- <script src="app/views/footer/footer.controller.js"></script>
- <script src="app/views/functionalMenu/functionalMenu-dialog/menu-details.controller.js"></script>
- <script src="app/views/functionalMenu/functionalMenu.controller.js"></script>
- <script src="app/views/functionalMenu/jqTreeContextMenu.js"></script>
- <script src="app/views/header/header.controller.js"></script>
- <script src="app/views/header/user-edit/edit-user.controller.js"></script>
- <script src="app/views/home/applications-home/applications-home.controller.js"></script>
- <script src="app/views/home/widgets-home/widgets-home.controller.js"></script>
- <script src="app/views/portal-admin/new-portal-admin/new-portal-admin.controller.js"></script>
- <script src="app/views/portal-admin/portal-admin-controller.js"></script>
- <script src="app/views/search/search.controller.js"></script>
- <script src="app/views/sidebar/sidebar.controller.js"></script>
- <script src="app/views/support/contact-us/contact-us-manage/contact-us-manage.controller.js"></script>
- <script src="app/views/support/contact-us/contact-us.controller.js"></script>
- <script src="app/views/support/get-access/get-access.controller.js"></script>
- <script src="app/views/tabs/tabs.controller.js"></script>
- <script src="app/views/userbar/userbar.controller.js"></script>
- <script src="app/views/users/new-user-dialogs/new-user.controller.js"></script>
- <script src="app/views/users/users.controller.js"></script>
- <script src="app/views/widgets/widget-details-dialog/widget-details.controller.js"></script>
- <script src="app/views/widgets/widgets.controller.js"></script>
- <!-- endinjector -->
-<!-- endbuild -->
-
- <!-- KPI dashboard related JS start -->
- <script src="kpi-dashboard/controllers/DCAE-controller.js"></script>
- <script src="kpi-dashboard/controllers/Closedloop-controller.js"></script>
- <script src="kpi-dashboard/controllers/ECOMP_Portal-controller.js"></script>
- <script src="kpi-dashboard/controllers/ECOMP-controller.js"></script>
- <script src="kpi-dashboard/controllers/DMaaP-controller.js"></script>
- <script src="kpi-dashboard/controllers/MSO-controller.js"></script>
- <script src="kpi-dashboard/controllers/AAI-controller.js"></script>
- <script src="kpi-dashboard/controllers/APPC-controller.js"></script>
- <script src="kpi-dashboard/controllers/ASDC-controller.js"></script>
- <script src="kpi-dashboard/controllers/Policy-controller.js"></script>
- <script src="kpi-dashboard/controllers/InfrastructurePortal-controller.js"></script>
- <script src="kpi-dashboard/controllers/kpi-whitelist.js"></script>
- <!-- KPI dashboard related JS end -->
-</body>
-</html> \ No newline at end of file
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/AAI-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/AAI-controller.js
deleted file mode 100644
index 09c87dbb..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/AAI-controller.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('AAI_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'A&AI';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'AAI';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('AAI_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'A&AI';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'AAI';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('AAI_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'A&AI';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'AAI';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/APPC-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/APPC-controller.js
deleted file mode 100644
index fc228d78..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/APPC-controller.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('APPC_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'APP-C';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'APPC';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('APPC_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'APP-C';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'APPC';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('APPC_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'APP-C';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'APPC';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/ASDC-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/ASDC-controller.js
deleted file mode 100644
index d389b200..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/ASDC-controller.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('ASDC_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'ASDC';
- $scope.activeTabId = 'KPI';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs($scope.activeToplevelTabId);
-});
-
-app.controller('ASDC_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'ASDC';
- $scope.activeTabId = 'User Defined KPI';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs($scope.activeToplevelTabId);
-});
-
-app.controller('ASDC_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'ASDC';
- $scope.activeTabId = 'Metrics';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs($scope.activeToplevelTabId);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/Closedloop-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/Closedloop-controller.js
deleted file mode 100644
index b845df5c..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/Closedloop-controller.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('Closedloop_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'Closedloop';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'Closedloop';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('Closedloop_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'Closedloop';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'Closedloop';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('Closedloop_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'Closedloop';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'Closedloop';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/DCAE-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/DCAE-controller.js
deleted file mode 100644
index fb62a88f..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/DCAE-controller.js
+++ /dev/null
@@ -1,375 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-//app.controller('DCAE_Ctrl_KPI',
-(function() {
- var DCAE_Ctrl_KPI = function($scope, $http, $log, $uibModal, $modal, KpiDashboardService) {
- $scope.Math = window.Math;
- $scope.activeToplevelTabId = 'DCAE';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'DCAE';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-
- $scope.progressReadinessMap = {
- 'C' : 'Complete',
- 'Y' : 'Yellow',
- 'R' : 'Red',
- 'G' : 'Green',
- 'n' : 'N/A'
- }
-
- $scope.progressReadinessColorMap = {
- 'C' : 'black',
- 'Y' : '#FFCC00',
- 'R' : 'red',
- 'G' : '#00FF00',
- 'n' : 'black'
- }
-
- $scope.selectedIST = null;
- $scope.progressReadinessList = [];
-
- $scope.progressReadinessListIndexMap = {};
- var counter = 0;
- for ( var key in $scope.progressReadinessMap) {
- if ($scope.progressReadinessMap.hasOwnProperty(key)) {
- $scope.progressReadinessList.push({
- 'index' : counter,
- 'value' : key,
- 'title' : $scope.progressReadinessMap[key]
- })
- $scope.progressReadinessListIndexMap[key] = counter
- }
- counter = counter + 1;
- }
- $scope.selectedProgressReadiness1 = $scope.progressReadinessList[0];
-
- // restAPI calls to retrieve all user stories
- KpiDashboardService.getKpiUserStoriesStats().then(
- function(response) {
- $scope.userStories = response.data;
- $scope.releases = [];
-
- if ($scope.userStories) {
- $scope.userStories.forEach(function(item,
- index) {
- $scope.releases.push({
- 'index' : index,
- 'value' : item.releaseKey,
- 'title' : item.releaseKey
- });
- });
- $scope.selectedRelease = $scope.releases[0];
- }
- });
-
- KpiDashboardService.getKpiLocStats()
- .then(
- function(response) {
- $scope.locStats = response.data;
- var arr = $scope.locStats;
- $scope.totalLOC = 0
- $.each(arr, function() {
- $scope.totalLOC += this;
- });
- var sorted = arr.slice().sort(
- function(a, b) {
- return b - a
- })
- $scope.LOCranks = arr.slice().map(
- function(v) {
- return sorted.indexOf(v)
- });
- $scope.sortedLOC = []
- KpiDashboardService.getKpiLocStatsCat()
- .then(
- function(response) {
- $scope.locStatsCat = response.data;
- $scope.locStatsCatRanked = [];
- var OtherPutLast = false
- for (i = 0; i < $scope.LOCranks.length; i++) {
- $scope.locStatsCatRanked[$scope.LOCranks[i]] = $scope.locStatsCat[i];
- $scope.sortedLOC[$scope.LOCranks[i]] = $scope.locStats[i];
- }
-
- $scope.sortedLocArray = [];
- var OthersLoC = null;
-
- for (i = 0; i < $scope.sortedLOC.length; i++) {
- if ($scope.locStatsCatRanked[i]
- .toLowerCase() !== "others") {
- $scope.sortedLocArray
- .push({
- 'category' : $scope.locStatsCatRanked[i],
- 'LOC' : $scope.sortedLOC[i]
- });
- } else {
- OthersLoC = $scope.sortedLOC[i]
- }
- }
- $scope.sortedLocArray
- .push({
- 'category' : 'Others',
- 'LOC' : OthersLoC
- })
- });
- });
-
- KpiDashboardService.getKpiServiceSupported()
- .then(
- function(response) {
- $scope.kpiServiceSupported = response.data;
- });
-
- KpiDashboardService.getKpiPublishedDelivered()
- .then(function(response) {
- $scope.kpiTrafficStatsArray = response.data;
- $scope.kpiTrafficStats = [];
- $scope.kpiTrafficStats.push({
- 'title' : 'Published',
- 'count' : $scope.kpiTrafficStatsArray[0]
- });
- $scope.kpiTrafficStats.push({
- 'title' : 'Delivered',
- 'count' : $scope.kpiTrafficStatsArray[1]
- });
- });
-
- KpiDashboardService.getKpiFeedStats()
- .then(
- function(response) {
- $scope.kpiFeedStatsArray = response.data;
- $scope.kpiFeedStats = [];
- $scope.kpiFeedStats.push({
- 'title' : 'Total Feeds',
- 'count' : $scope.kpiFeedStatsArray[0]
- });
- $scope.kpiFeedStats.push({
- 'title' : 'Active Feeds',
- 'count' : $scope.kpiFeedStatsArray[1]
- });
- $scope.kpiFeedStats.push({
- 'title' : 'Active Subs',
- 'count' : $scope.kpiFeedStatsArray[2]
- });
- });
-
- KpiDashboardService.getKpiUserApiStats()
- .then(
- function(response) {
- $scope.userApis = response.data;
- $scope.userApiTypes = [];
- if ($scope.userApis) {
- $scope.userApis.forEach(function(
- item, index) {
- $scope.userApiTypes.push({
- 'index' : index,
- 'value' : item.apiType,
- 'title' : item.apiType
- });
- });
- $scope.selectedUserApiType = $scope.userApiTypes[0]
- }
- });
-
- $scope.linesOfCode = {
- "TotalLOC" : "2.068M",
- "OpenSource" : "63%",
- "Organic" : "36%",
- "Generated" : "<1%"
- };
-
- $scope.updateUserStory = function(releases, userStories,
- progressReadinessList,
- progressReadinessListIndexMap) {
- var modalInstance = $uibModal
- .open({
- animation : $scope.animationsEnabled,
- templateUrl : 'kpi-dashboard/app/fusion/scripts/view-models/kpidash-page/userstory-edit.html',
- size : 'lg',
- controller : [
- '$scope',
- '$uibModalInstance',
- '$http',
- function($scope, $uibModalInstance,
- $http) {
-
- $scope.AngChangeCalled = function() {
- console
- .log('change called');
- console
- .log($scope.selectedRelease.releaseKey);
- $scope.selectedIST = $scope.progressReadinessList[progressReadinessListIndexMap[$scope.userStories[$scope.selectedRelease.index].istprogressReadiness]];
- $scope.selectedETE = $scope.progressReadinessList[progressReadinessListIndexMap[$scope.userStories[$scope.selectedRelease.index].e2EProgressReadiness]];
- console
- .log("$scope.selectedIST");
- console
- .log($scope.selectedIST);
- console
- .log("$scope.selectedETE");
- console
- .log($scope.selectedETE);
- };
- $scope.releases = releases;
- $scope.userStories = userStories;
- $scope.progressReadinessList = progressReadinessList;
- $scope.progressReadinessListIndexMap = progressReadinessListIndexMap;
- $scope.ok = function() {
- $scope.userStories[$scope.selectedRelease.index].istprogressReadiness = $scope.selectedIST.value;
- $scope.userStories[$scope.selectedRelease.index].e2EProgressReadiness = $scope.selectedETE.value;
- $http
- .post(
- 'portalApi/update_user_stories_stats',
- $scope.userStories[$scope.selectedRelease.index])
- .then(
- function(
- response) {
- $scope.userStories = response.data;
- $scope.releases = [];
- if ($scope.userStories) {
- $scope.userStories
- .forEach(function(
- item,
- index) {
- $scope.releases
- .push({
- 'index' : index,
- 'value' : item.releaseKey,
- 'title' : item.releaseKey
- });
- });
- }
- $uibModalInstance
- .close();
- });
- };
-
- $scope.cancel = function() {
- $uibModalInstance.dismiss();
- };
- } ],
- // End of inner controller
- resolve : {}
- });
- };
-
- $scope.updateUserApi = function(userApiTypes, userApis) {
- // workflowToEdit.active='true';
- var modalInstance = $uibModal
- .open({
- animation : $scope.animationsEnabled,
- templateUrl : 'kpi-dashboard/app/fusion/scripts/view-models/kpidash-page/userapi-edit.html',
- size : 'lg',
- controller : [
- '$scope',
- '$uibModalInstance',
- '$http',
- function($scope, $uibModalInstance,
- $http) {
- $scope.userApiTypes = userApiTypes;
- $scope.userApis = userApis;
- $scope.ok = function() {
- /*
- * var temp =
- * {"id":null,"created":null,"modified":null,"createdId":null,"modifiedId":null,"rowNum":null,"auditUserId":null,"auditTrail":null,"apiType":"Physical
- * APIs","totalApi":2000,"comment":null};
- */
- var temp = $scope.userApis[$scope.selectedUserApiType.apiType.index]
- $http
- .post(
- 'portalApi/update_user_api_stats',
- temp)
- .then(
- function(
- response) {
- $uibModalInstance
- .close();
- /*
- * $http.post('update_user_stories_stats',$scope.userStories[$scope.selectedRelease.releaseKey.index])
- * .then(function(response){
- * $scope.userStories =
- * response.data;
- * $scope.releases
- * =[];
- * if($scope.userStories){
- * $scope.userStories.forEach(function(item,
- * index){
- * $scope.releases.push({'index':
- * index,
- * 'value':
- * item.releaseKey,
- * 'title':item.releaseKey});
- * });
- * $uibModalInstance.close();
- * }
- */
- });
- };
-
- $scope.cancel = function() {
- $uibModalInstance.dismiss();
- };
- } ],
- // End of inner controller
- resolve : {}
- });
- };
- };
-
- DCAE_Ctrl_KPI.$inject = ['$scope','$http', '$log', '$uibModal', '$modal', 'KpiDashboardService'];
- angular.module('ecompApp').controller('DCAE_Ctrl_KPI',DCAE_Ctrl_KPI);
-
-}());
- // });
-
-app.controller('DCAE_Ctrl_UserDefinedKPI', function($scope, $http, $log, KpiDashboardService) {
- $scope.activeToplevelTabId = 'DCAE';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'DCAE';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-
-});
-
-app.controller('DCAE_Ctrl_Metrics', function($scope, $http, $log, $uibModal,
- $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'DCAE';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'DCAE';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-
- KpiDashboardService.getKpiGeoMapUrl()
- .then(function(response) {
- $scope.geoMapUrl = response.data;
- });
-
- KpiDashboardService.getKpiRCloudAUrl()
- .then(function(response) {
- $scope.rcloudAUrl = response.data;
- });
-
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/DMaaP-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/DMaaP-controller.js
deleted file mode 100644
index 50d960ee..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/DMaaP-controller.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('DMaaP_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'DMaaP';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'DMaaP';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('DMaaP_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'DMaaP';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'DMaaP';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('DMaaP_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'DMaaP';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'DMaaP';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/ECOMP-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/ECOMP-controller.js
deleted file mode 100644
index 511687c0..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/ECOMP-controller.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('ECOMP_Ctrl', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'ECOMP';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/ECOMP_Portal-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/ECOMP_Portal-controller.js
deleted file mode 100644
index cc687c39..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/ECOMP_Portal-controller.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('ECOMP_Portal_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'ECOMP Portal';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'ECOMP_Portal';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('ECOMP_Portal_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'ECOMP Portal';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'ECOMP_Portal';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('ECOMP_Portal_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'ECOMP Portal';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'ECOMP_Portal';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/InfrastructurePortal-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/InfrastructurePortal-controller.js
deleted file mode 100644
index 8449dc40..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/InfrastructurePortal-controller.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('InfrastructurePortal_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'i-Portal';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'InfrastructurePortal';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('InfrastructurePortal_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'i-Portal';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'InfrastructurePortal';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('InfrastructurePortal_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'i-Portal';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'InfrastructurePortal';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/MSO-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/MSO-controller.js
deleted file mode 100644
index 40912db8..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/MSO-controller.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('MSO_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'MSO';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'MSO';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('MSO_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'MSO';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'MSO';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('MSO_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'MSO';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'MSO';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/Policy-controller.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/Policy-controller.js
deleted file mode 100644
index bae7a059..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/Policy-controller.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.controller('Policy_Ctrl_KPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'Policy';
- $scope.activeTabId = 'KPI';
- var TabIdforState = 'Policy';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('Policy_Ctrl_UserDefinedKPI', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'Policy';
- $scope.activeTabId = 'User Defined KPI';
- var TabIdforState = 'Policy';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
-
-app.controller('Policy_Ctrl_Metrics', function($scope, $http, $log, $modal, KpiDashboardService) {
- $scope.activeToplevelTabId = 'Policy';
- $scope.activeTabId = 'Metrics';
- var TabIdforState = 'Policy';
- $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
- $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
- $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
- $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/controllers/kpi-whitelist.js b/ecomp-portal-FE/client/kpi-dashboard/controllers/kpi-whitelist.js
deleted file mode 100644
index 64e9977b..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/controllers/kpi-whitelist.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-app.config(function ($sceDelegateProvider) {
- $sceDelegateProvider.resourceUrlWhitelist(['self','https://todourl/**']);
-});
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_KPI.html
deleted file mode 100644
index 160147d2..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for A&AI KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_Metrics.html
deleted file mode 100644
index c0ba5dd8..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for A&AI Metrics page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_UserDefinedKPI.html
deleted file mode 100644
index 4d39506b..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/AAI/AAI_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for A&AI User Defined KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_KPI.html
deleted file mode 100644
index 022125ba..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for APPC KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_Metrics.html
deleted file mode 100644
index bdc6d87a..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for APPC Metrics page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_UserDefinedKPI.html
deleted file mode 100644
index 36963333..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/APPC/APPC_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for APPC User Defined KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_KPI.html
deleted file mode 100644
index 975f389d..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for ASDC KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_Metrics.html
deleted file mode 100644
index cef6fa17..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for ASDC Metrics page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_UserDefinedKPI.html
deleted file mode 100644
index c20cc8a2..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/ASDC/ASDC_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for ASDC User Defined KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_KPI.html
deleted file mode 100644
index f505939e..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Closedloop KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_Metrics.html
deleted file mode 100644
index 08ef81b4..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Closedloop Metrics page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_UserDefinedKPI.html
deleted file mode 100644
index f766604f..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/Closedloop/Closedloop_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Closedloop User Defined KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_KPI.html
deleted file mode 100644
index e25bb458..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_KPI.html
+++ /dev/null
@@ -1,204 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
-<!--<button style="float: left; margin-left: 200px; width: 80%" ng-click="gotoKPIState('root.kpidash_ECOMP')">Hello</button> -->
-<div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-<div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
- <div class="DCAE_KPI_class">
- <div style="float: left; margin-left: 200px; width: 80%">
- <h4>
- <b><font color="6633FF">Open DCAE-2016 Metrics &
- Measurements</font></b>
- </h4>
- <div>
- <div id="dcae_kpi_table_user_stories">
- <div class="pull-left" style="margin-right: 10px;">
- <h3>
- <b><font color="purple">User Stories</font></b>
- </h3>
- </div>
- <!-- <div class="pull-left"
- ng-click="updateUserStory(releases,userStories,progressReadinessList,progressReadinessListIndexMap)"
- style="vertical-align: bottom; font-size: 30px;">
- <a href="javascript:void(0)" class="ion-edit"></a>
- </div> -->
- </div>
- <!-- <table att-table table-data="tableData" view-per-page="viewPerPage"
- current-page="currentPage" search-category="searchCategory"
- search-string="searchString" total-page="totalPage"> -->
- <table>
- <thead type="header">
- <tr class="info">
- <th>Release</th>
- <th>User Stories Delivered / In-Progress</th>
- <th>IST Progress / Readiness</th>
- <th>ETE Progress / Readiness</th>
- <th><div style="float: left; vertical-align: bottom;">Key
- Highlights in Release</div></th>
- </tr>
- </thead>
- <tbody att-table-row type="body">
- <tr ng-repeat="userStory in userStories | orderBy:'releaseKey'">
- <td><b><font color="purple">{{userStory.releaseKey}}</font></b></td>
- <td>{{userStory.delivered}}/{{userStory.inProgress}}
- ({{(userStory.delivered/userStory.inProgress*100)|number:0}}%)</td>
- <td><font
- color={{progressReadinessColorMap[userStory.istprogressReadiness]}}>{{progressReadinessMap[userStory.istprogressReadiness]}}</font></td>
- <td><font
- color={{progressReadinessColorMap[userStory.e2EProgressReadiness]}}>{{progressReadinessMap[userStory.e2EProgressReadiness]}}</font></td>
- <td>{{userStory.keyHighlights}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div id="dcae_kpi_table_lines_of_code">
- <h3>
- <b><font color="green">Lines of Code</font></b>
- </h3>
- <!-- <table att-table table-data="tableData" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage"> -->
- <table>
- <thead att-table-row type="header">
- <tr class="info">
- <th>Total LOC</th>
- <th ng-repeat="singleloc in sortedLocArray">
- {{singleloc.category}}</th>
- <!-- <th>Delete</th> -->
- </tr>
- </thead>
- <tbody att-table-row type="body">
- <tr>
- <td><b><font color="green">{{totalLOC}}</font></b></td>
- <td ng-repeat="singleloc in sortedLocArray"><b><font
- color="green">{{singleloc.LOC}}</font></b></td>
- <!-- <td><div ng-click="" style="font-size:20px;"><a href="javascript:void(0)" class="icon-trash"></a></div></td> -->
- </tr>
- </tbody>
- </table>
- </div>
-
- <div id="dcae_kpi_table_api">
- <div>
- <div class="pull-left" style="margin-right: 10px;">
- <h3>
- <b><font color="66CCFF">API</font></b>
- </h3>
- </div>
- <!-- <div class="pull-left"
- ng-click="updateUserApi(userApiTypes,userApis)"
- style="vertical-align: bottom; font-size: 30px;">
- <a href="javascript:void(0)" class="ion-edit"></a>
- </div> -->
- </div>
- <!-- <h3><b><font color="66CCFF">API</font></b></h3>
- <div ng-click="updateUserApi(userApiTypes,userApis)" style="float:right;font-size:20px;"><a href="javascript:void(0)" class="icon-edit"></a></div> -->
- <!-- <table att-table table-data="tableData" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage"> -->
- <table>
- <thead att-table-row type="header">
- <tr class="info">
- <th ng-repeat="userApi in userApis">{{userApi.apiType}}</th>
- </tr>
- </thead>
- <tbody att-table-row type="body">
- <tr>
- <td ng-repeat="userApi in userApis"><b><font
- color="66CCFF">{{userApi.totalApi}}</font></b></td>
- </tr>
- <tr>
- <td ng-repeat="userApi in userApis"><font color="black">{{userApi.comment}}</font></td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div id="dcae_kpi_services_supported">
- <h3>
- <b><font color="orange">Services Supported</font></b>
- </h3>
- <!-- <table att-table table-data="tableData" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage"> -->
- <table>
- <thead att-table-row type="header">
- <tr class="info">
- <!-- <th>Mobility (in 1607)</th>
- <th>To be Migrated</th> -->
- <th ng-repeat="kpiService in kpiServiceSupported">{{kpiService.serviceType}}</th>
- <!-- <th ng-repeat = "userApi in userApis">{{userApi.apiType}} </th> -->
- </tr>
- </thead>
- <tbody att-table-row type="body">
- <tr>
- <!-- <td ng-repeat = "userApi in userApis"><b><font color="66CCFF">{{userApi.totalApi}}</font></b></td> -->
- <td ng-repeat="kpiService in kpiServiceSupported">{{kpiService.totalCount}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-
-
- <div id="dcae_kpi_dmaap_traffic_stats">
- <h3>
- <b><font color="purple">DMaaP Traffic Stats</font></b>
- </h3>
- <h6>
- <font color="purple">DataRouter</font></b>
- </h6>
- <!-- <table att-table table-data="tableData" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage"> -->
- <table>
- <thead att-table-row type="header">
- <tr class="info">
- <th ng-repeat="trafficStat in kpiTrafficStats">{{trafficStat.title}}</th>
-
- <!-- <th ng-repeat = "userApi in userApis">{{userApi.apiType}} </th> -->
- </tr>
- </thead>
- <tbody att-table-row type="body">
- <tr>
- <!-- <td ng-repeat = "userApi in userApis"><b><font color="66CCFF">{{userApi.totalApi}}</font></b></td> -->
- <td ng-repeat="trafficStat in kpiTrafficStats">{{trafficStat.count}}</td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div id="dcae_kpi_dmaap_feed_stats">
- <h3>
- <b><font color="green">DMaaP Feed Stats</font></b>
- </h3>
- <!-- <table att-table table-data="tableData" view-per-page="viewPerPage" current-page="currentPage" search-category="searchCategory" search-string="searchString" total-page="totalPage"> -->
- <table>
- <thead att-table-row type="header">
- <tr class="info">
- <th ng-repeat="FeedStat in kpiFeedStats">{{FeedStat.title}}</th>
-
- <!-- <th ng-repeat = "userApi in userApis">{{userApi.apiType}} </th> -->
- </tr>
- </thead>
- <tbody att-table-row type="body">
- <tr>
- <!-- <td ng-repeat = "userApi in userApis"><b><font color="66CCFF">{{userApi.totalApi}}</font></b></td> -->
- <td ng-repeat="FeedStat in kpiFeedStats">{{FeedStat.count}}</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_Metrics.html
deleted file mode 100644
index 38f39885..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_Metrics.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
- <div class="DCAE_KPI_class">
- <div style="float:left; margin-top:0px ;margin-left:200px;width:80%">
- <h3><b><font color="6633FF">Geo-map</font></b></h3>
- <div style="width:100%">
- <iframe id="dcae_metrics_geo_map" src={{geoMapUrl}} width="100%" height="400"></iframe>
- </div>
- <table>
- <tr>
- <td width="65%">
- <div style="width:100%; overflow-x:hidden;">
- <h4> Source Code Stats </h4>
- <iframe id="dcae_metrics_source" style="overflow-x:hidden;" src={{rcloudAUrl}} width="100%" height="500"></iframe>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_UserDefinedKPI.html
deleted file mode 100644
index a240c614..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE/DCAE_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for DCAE User Defined KPI.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations.csv b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations.csv
deleted file mode 100644
index bd61cc4b..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations.csv
+++ /dev/null
@@ -1,10 +0,0 @@
-bandwidth,SPEED_STRING,lon,lat,id,popup_note
-155520,,-122.2054,47.7623,NBRKILNB,BOTHELL WA
-155520,,-117.1611,32.7157,NBRKILNB,San Deigo CA
-50000,GE:50M,-96.7970,32.7767,FNTNMO54,Dallas TX
-50000,GE:50M,-96.6706,33.1032,FNTNMO54,Allen TX
-50000,GE:50M,-94.5786,39.0997,LWVLTXXA,Kansas City
-50000,GE:50M,-90.4115,38.7670,YRLNCA11,Bridgeton Missouri
-50000,GE:50M,-83.2219,42.4734,YRLNCA11,Southfield
-50000,GE:50M,-86.8025,33.5207,RSWLGAMA,Birmingham
-50000,GE:50M,-84.22220,34.06110,Alpharetta, GA
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations.html b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations.html
deleted file mode 100644
index 49e1d3a3..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations.html
+++ /dev/null
@@ -1,431 +0,0 @@
-<!DOCTYPE html>
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-
-<html>
-<head>
- <title>DCAE Locations</title>
-
- <link
- rel="stylesheet"
- href="./lib/leaflet.css"
- />
- <script src="./lib/d3.v3.min.js"></script>
-
- <script
- src= "./lib/leaflet.js" >
- </script>
- <style>
- html,body {
- height: 100%;
- width: 100%;
- margin: 0;
- }
-
- #map {
- height: 100%;
- width: 50%;
- position: absolute;
- }
-
- .voronoi {
- fill-opacity: .3;
- stroke: black;
- stroke-width: 2;
- }
-
- .cityhull {
- fill: purple;
- fill-opacity: .5;
- stroke: black;
- stroke-width: 1px;
- }
-
- .point {
- fill: darkred;
- stroke: black;
- stroke-width: 1px;
- }
-
- .wards {
- fill: gray;
- stroke: gray;
- stroke-width: 1px;
- }
-
- .zip {
- fill: none;
- stroke: #CCC;
- stroke-width: .5px;
- }
-
-.d3-tip {
- line-height: 1;
- font-weight: bold;
- padding: 12px;
- background: rgba(0, 0, 0, 0.8);
- color: #fff;
- border-radius: 2px;
-}
-
-/* Creates a small triangle extender for the tooltip */
-.d3-tip:after {
- box-sizing: border-box;
- display: inline;
- font-size: 10px;
- width: 100%;
- line-height: 1;
- color: rgba(0, 0, 0, 0.8);
- content: "\25BC";
- position: absolute;
- text-align: center;
-}
-
-/* Style northward tooltips differently */
-.d3-tip.n:after {
- margin: -1px 0 0 0;
- top: 100%;
- left: 0;
-}
-
-cityname.tooltip {
- position: absolute;
- text-align: center;
- padding: 5px;
- font: 14px 'Raleway',Helvetica,sans-serif;
- color: white;
- background-color: rgba(0,0,0,0.7);
- border: 0px;
- border-radius: 4px;
- pointer-events: none;
- z-index:1;
-}
-
-.canvas {
- vertical-align: middle;
- background: rgba(255,255,255, 0.2);
- box-shadow: inset 0 0 3px 0px #CECECE;
- position: absolute;
- left: 750px;
- top: 0px;
-}
-
-.header rect{
- fill: #0099FF;
-}
-
-.header text{
- fill: white;
- font: 10px sans-serif;
- text-anchor: middle;
-}
-
-.cell rect{
- fill: #66FFFF;
-}
-
-.cell text{
- fill: black;
- font: 10px sans-serif;
- text-anchor: middle;
-}
-
-table.gridtable {
- font-family: verdana,arial,sans-serif;
- font-size:11px;
- color:#333333;
- border-width: 1px;
- border-color: #666666;
- border-collapse: collapse;
-}
-table.gridtable th {
- border-width: 1px;
- padding: 8px;
- border-style: solid;
- border-color: #666666;
- background-color: #dedede;
-}
-table.gridtable td {
- border-width: 1px;
- padding: 8px;
- border-style: solid;
- border-color: #666666;
- background-color: #ffffff;
-}
-
-.dot {
- fill: #c7141a;
-}
-
-.ring {
- fill: none;
- stroke: #c7141a;
-}
-
- #legend {
- position: absolute;
- left: 20px;
- bottom: 20px;
- width: 250px;
- height: 50px;
- background: white;
- border-radius: 5px;
- border: 3px double gray;
- box-shadow: 3px 3px black;
- }
- </style>
-</head>
-<body>
-
- <div id="map" style="width:75%;height:100%;position:absolute;top:2px;"></div>
- <div id="cityDetail" style="width:25%;font-family: verdana,arial,sans-serif;
- font-size:10px;position:absolute;right: 0px">Details for that location</div>
- <div id="legend"></div>
-
-
- <!--<script type="text/javascript">-->
- <!--var req = new XMLHttpRequest();-->
-
-<!--// Feature detection for CORS-->
-<!--if ('withCredentials' in req) {-->
- <!--req.open('GET', 'http://todo_url:8080/dcae-services?vnfLocation=Southfield,MI', true);-->
- <!--// Just like regular ol' XHR-->
- <!--req.onreadystatechange = function() {-->
- <!--if (req.readyState === 4) {-->
- <!--if (req.status >= 200 && req.status < 400) {-->
- <!--// JSON.parse(req.responseText) etc.-->
- <!--} else {-->
- <!--// Handle error case-->
- <!--}-->
- <!--}-->
- <!--};-->
- <!--req.send();-->
-<!--}-->
- <!--</script>-->
-
- <script type="text/javascript">
-
-
-
- var greaterthan75_text = "Existing UEB Prod Instances";
- var greaterthan75_color = "red";
-
- var lessthan50_75_text = "Initial Message Router Prod Instances";
- var lessthan50_75_color = "yellow";
-
- var lessthan50_text = "Existing Atlas Prod Instances";
- var lessthan50_color = "green";
-
- var cityname = d3.select('body').append('cityname')
- .attr('class', 'tooltip')
- .style('opacity', 0);
-
-
-
- //var CSV_URL = "test1.csv";
- // var CSV_URL = "customer_utilization2.csv";
- var CSV_URL = "dcae_locations1.csv";
- var map = L.map('map').setView([39,-99], 4);
- mapLink =
- '<a href="http://mapbox.com">Mapbox</a>';
- L.tileLayer(
- //'http://{s}.tiles.mapbox.com/v3/elijahmeeks.map-azn21pbi/{z}/{x}/{y}.png', {
- 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
- attribution: '&copy; ' + mapLink + ' Contributors',
- maxZoom: 18,
- }).addTo(map);
-
- /* Initialize the SVG layer */
- map._initPathRoot()
-
- /* We simply pick up the SVG from the map object */
- var svg = d3.select("#map").select("svg"),
- g = svg.append("g");
-
- var dispatcher = d3.dispatch('jsonLoad');
-
- // optional dispatcher
-dispatcher.on('jsonLoad', function(data) {
- // triggered afer json is loaded (just if you want to do additional stuff here.)
- console.log(data);
-});
-
- d3.csv(CSV_URL, function(data) {
- // alert(data);
- /* Add a LatLng object to each item in the dataset */
- data.forEach(function(d) {
- //console.log(d);
- d.LatLng = new L.LatLng(d.lat,
- d.lon)
- //alert(d.Latlng);
- })
-
-
- var feature = g.selectAll("circle")
- .data(data)
- .enter().append("circle")
- .attr("id", function(d) {return 'circle_'+removeSpecialCharacters(d.id);} )
- .style("stroke", "black")
- .style("opacity", .6)
- .style("fill", function(d) {/*return p.leaf ? "darkred" : "#FFE6E6"*/ if(d!=null) { var perf = d.bandwidth; if (perf>=50000 && perf <=120000) return lessthan50_75_color; else if (perf> 150001) { console.log("&&&&&&&&&&&&&&&&&&&&" + perf); return greaterthan75_color;} else return lessthan50_color; } })
- //.style("fill", "red")
- .attr("r", 8)
-
- .on("mouseover", function(d){ cityname.transition()
- .style('opacity', 1.0);
- cityname.style("visibility", "visible");
-
- if(d.id) {
- cityname.html(d.id + "<br/>" + d.popup_note) ;
- var td_id = "#tdaddr_"+ removeSpecialCharacters(d.id);
- d3.selectAll(td_id).style('background-color', '#9999ff');
- //console.log(d3.selectAll(td_id));
- }
- var target_x = d3.event.target.cx.animVal.value;
- //console.log("Target_x" + target_x);
- //console.log(d3.select('#d3MapSVG'));
- //console.log(this.getCTM() );
- //console.log(this.getScreenCTM());
- //cityname.transition().style('left', Number(target_x)+Number(d3.select('#d3MapSVG')[0][0].offsetWidth)+ 'px');
- cityname.style('left', Number(this.getScreenCTM().e) + 10 + 'px');
- cityname.style('top', (Number(this.getScreenCTM().f) - 0) + 'px');
- cityname.style('zIndex', '1');
-
- })
-
-.on("click", function(d) {
- var city = d.popup_note;
- console.log(city)
- // d3.text('../../../portalApi/get_geo_map_api_url', function(error, pref_url) {
- /* ajax call to return api call url*/
- var prefix_url="https://todo_url:8080/dcae-services?vnfLocation=";
- d3.json(prefix_url+city, function(error, d) {
- console.log(prefix_url+city);
- d3.selectAll("#cityDetail").text("Total Count: " + d.totalCount + "[" + d.popup_note + "]");
- var out = "";
- out += "Total Count: " + JSON.stringify(d.totalCount, null,4) + " [" + city + "]";
- out += "<table class='gridtable'>";
- out += "<tr><th>Service Id</th><th>Service Name</th><th> VNF Type </th> </tr>";
- d.items.forEach(function(item) {
-
- out += "<tr><td>" +
- item.serviceId +
- "</td><td>" +
- item.typeLink.title +
- "</td><td>" +
- item.vnfType +
- "</td></tr>";
-
- })
- out += "</table>";
- d3.select("#cityDetail").html(out);
- });
-
-
- // });
-})
-.on("mouseout", function(d){ if(d.id) { var td_id = "#tdaddr_"+ removeSpecialCharacters(d.id);
- d3.selectAll(td_id).style('background-color', '#ffffff');
- }
- //console.log("mouseout");
- return cityname.style("visibility", "hidden");} );
-
-
- map.on("viewreset", update);
- update();
-
- function update() {
- feature.attr("transform",
- function(d) {
- return "translate("+
- map.latLngToLayerPoint(d.LatLng).x +","+
- map.latLngToLayerPoint(d.LatLng).y +")";
- }
- )
- }
- })
-
-
-
-var callback = function (error, root) {
- dispatcher.jsonLoad(root);
- console.log(root);
- };
-
-
- function csvJSON(csv){
- //console.log(csv);
-
- //csv1.map(function(csv) {
- //console.log(csv);
-
- var lines=csv.split("\n");
-
- //console.log(lines);
-
- var result = [];
- //console.log("first line header");
- //console.log(lines[0]);
- var headers=lines[0].split(",");
- //console.log(headers);
- //console.log(headers[headers.length-1])
- //headers.splice(headers.length-1);
-
- for(var i=1;i<lines.length;i++){
-
- var obj = {};
- var currentline=lines[i].split(",");
- //console.log(currentline);
-
- for(var j=0;j<headers.length;j++){
- obj[headers[j]] = currentline[j];
- }
-
- result.push(obj);
- //console.log(result);
-
- }
- //console.log(JSON.stringify(result));
- //return result; //JavaScript object
- jsonData = result; //JSON
- //console.log(jsonData)
-
- //refreshTable(null);
- return jsonData;
-}
-
-function isString(o) {
- return typeof o == "string" || (typeof o == "object" && o.constructor === String);
-}
-
- function hyperTrigger(var1, popup_note, bandwidth) {
- var res = var1.split("*");
- alert(res);
- //alert(bandwidth);
- //parent.hyperTrigger2(res[0],res[1],popup_note, bandwidth);
- }
-
- function removeSpecialCharacters(var1) {
- return var1.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, '');
-}
-</script>
-<script src="static/visjs/legend_v2.js"></script>
-</body>
-</html>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations1.csv b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations1.csv
deleted file mode 100644
index 1338b553..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/dcae_locations1.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-bandwidth,SPEED_STRING,lon,lat,id,popup_note
-155520,,-122.2054,47.7623,NBRKILNB,"Bothell,WA"
-50000,GE:50M,-96.6706,33.1032,FNTNMO54,"Allen,TX"
-50000,GE:50M,-90.4115,38.7670,YRLNCA11,"Bridgeton,MO"
-50000,GE:50M,-83.2219,42.4734,YRLNCA11,"Southfield,MI"
-50000,GE:50M,-86.8025,33.5207,RSWLGAMA,"Birmingham,AL"
-50000,GE:50M,-84.22220,34.06110,ALPHGA12,"Alpharetta,GA"
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/d3.v3.min.js b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/d3.v3.min.js
deleted file mode 100644
index a2153dbe..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/d3.v3.min.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-!function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function r(n){return null===n?NaN:+n}function i(n){return!isNaN(n)}function u(n){return{left:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)<0?r=u+1:i=u}return r},right:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)>0?i=u:r=u+1}return r}}}function o(n){return n.length}function a(n){for(var t=1;n*t%1;)t*=10;return t}function l(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function c(){this._=Object.create(null)}function f(n){return(n+="")===bo||n[0]===_o?_o+n:n}function s(n){return(n+="")[0]===_o?n.slice(1):n}function h(n){return f(n)in this._}function p(n){return(n=f(n))in this._&&delete this._[n]}function g(){var n=[];for(var t in this._)n.push(s(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function y(){this._=Object.create(null)}function m(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=wo.length;r>e;++e){var i=wo[e]+t;if(i in n)return i}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,i=-1,u=r.length;++i<u;)(t=r[i].on)&&t.apply(this,arguments);return n}var e=[],r=new c;return t.on=function(t,i){var u,o=r.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,u=e.indexOf(o)).concat(e.slice(u+1)),r.remove(t)),i&&e.push(r.set(t,{on:i})),n)},t}function S(){ao.event.preventDefault()}function k(){for(var n,t=ao.event;n=t.sourceEvent;)t=n;return t}function N(n){for(var t=new _,e=0,r=arguments.length;++e<r;)t[arguments[e]]=w(t);return t.of=function(e,r){return function(i){try{var u=i.sourceEvent=ao.event;i.target=n,ao.event=i,t[i.type].apply(e,r)}finally{ao.event=u}}},t}function E(n){return ko(n,Co),n}function A(n){return"function"==typeof n?n:function(){return No(n,this)}}function C(n){return"function"==typeof n?n:function(){return Eo(n,this)}}function z(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function i(){this.setAttribute(n,t)}function u(){this.setAttributeNS(n.space,n.local,t)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=ao.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?a:o:n.local?u:i}function L(n){return n.trim().replace(/\s+/g," ")}function q(n){return new RegExp("(?:^|\\s+)"+ao.requote(n)+"(?:\\s+|$)","g")}function T(n){return(n+"").trim().split(/^|\s+/)}function R(n,t){function e(){for(var e=-1;++e<i;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);++e<i;)n[e](this,r)}n=T(n).map(D);var i=n.length;return"function"==typeof t?r:e}function D(n){var t=q(n);return function(e,r){if(i=e.classList)return r?i.add(n):i.remove(n);var i=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||e.setAttribute("class",L(i+" "+n))):e.setAttribute("class",L(i.replace(t," ")))}}function P(n,t,e){function r(){this.style.removeProperty(n)}function i(){this.style.setProperty(n,t,e)}function u(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?u:i}function U(n,t){function e(){delete this[n]}function r(){this[n]=t}function i(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?i:r}function j(n){function t(){var t=this.ownerDocument,e=this.namespaceURI;return e===zo&&t.documentElement.namespaceURI===zo?t.createElement(n):t.createElementNS(e,n)}function e(){return this.ownerDocument.createElementNS(n.space,n.local)}return"function"==typeof n?n:(n=ao.ns.qualify(n)).local?e:t}function F(){var n=this.parentNode;n&&n.removeChild(this)}function H(n){return{__data__:n}}function O(n){return function(){return Ao(this,n)}}function I(n){return arguments.length||(n=e),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function Y(n,t){for(var e=0,r=n.length;r>e;e++)for(var i,u=n[e],o=0,a=u.length;a>o;o++)(i=u[o])&&t(i,o,e);return n}function Z(n){return ko(n,qo),n}function V(n){var t,e;return function(r,i,u){var o,a=n[u].update,l=a.length;for(u!=e&&(e=u,t=0),i>=t&&(t=i+1);!(o=a[t])&&++t<l;);return o}}function X(n,t,e){function r(){var t=this[o];t&&(this.removeEventListener(n,t,t.$),delete this[o])}function i(){var i=l(t,co(arguments));r.call(this),this.addEventListener(n,this[o]=i,i.$=e),i._=t}function u(){var t,e=new RegExp("^__on([^.]+)"+ao.requote(n)+"$");for(var r in this)if(t=r.match(e)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}var o="__on"+n,a=n.indexOf("."),l=$;a>0&&(n=n.slice(0,a));var c=To.get(n);return c&&(n=c,l=B),a?t?i:r:t?b:u}function $(n,t){return function(e){var r=ao.event;ao.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{ao.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Do,i="click"+r,u=ao.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==Ro&&(Ro="onselectstart"in e?!1:x(e.style,"userSelect")),Ro){var o=n(e).style,a=o[Ro];o[Ro]="none"}return function(n){if(u.on(r,null),Ro&&(o[Ro]=a),n){var t=function(){u.on(i,null)};u.on(i,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>Po){var u=t(n);if(u.scrollX||u.scrollY){r=ao.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Po=!(o.f||o.e),r.remove()}}return Po?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}function G(){return ao.event.changedTouches[0].identifier}function K(n){return n>0?1:0>n?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nn(n){return n>1?0:-1>n?Fo:Math.acos(n)}function tn(n){return n>1?Io:-1>n?-Io:Math.asin(n)}function en(n){return((n=Math.exp(n))-1/n)/2}function rn(n){return((n=Math.exp(n))+1/n)/2}function un(n){return((n=Math.exp(2*n))-1)/(n+1)}function on(n){return(n=Math.sin(n/2))*n}function an(){}function ln(n,t,e){return this instanceof ln?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof ln?new ln(n.h,n.s,n.l):_n(""+n,wn,ln):new ln(n,t,e)}function cn(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?u+(o-u)*n/60:180>n?o:240>n?u+(o-u)*(240-n)/60:u}function i(n){return Math.round(255*r(n))}var u,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,o=.5>=e?e*(1+t):e+t-e*t,u=2*e-o,new mn(i(n+120),i(n),i(n-120))}function fn(n,t,e){return this instanceof fn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof fn?new fn(n.h,n.c,n.l):n instanceof hn?gn(n.l,n.a,n.b):gn((n=Sn((n=ao.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new fn(n,t,e)}function sn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new hn(e,Math.cos(n*=Yo)*t,Math.sin(n)*t)}function hn(n,t,e){return this instanceof hn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof hn?new hn(n.l,n.a,n.b):n instanceof fn?sn(n.h,n.c,n.l):Sn((n=mn(n)).r,n.g,n.b):new hn(n,t,e)}function pn(n,t,e){var r=(n+16)/116,i=r+t/500,u=r-e/200;return i=vn(i)*na,r=vn(r)*ta,u=vn(u)*ea,new mn(yn(3.2404542*i-1.5371385*r-.4985314*u),yn(-.969266*i+1.8760108*r+.041556*u),yn(.0556434*i-.2040259*r+1.0572252*u))}function gn(n,t,e){return n>0?new fn(Math.atan2(e,t)*Zo,Math.sqrt(t*t+e*e),n):new fn(NaN,NaN,n)}function vn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function dn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function yn(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function mn(n,t,e){return this instanceof mn?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof mn?new mn(n.r,n.g,n.b):_n(""+n,mn,cn):new mn(n,t,e)}function Mn(n){return new mn(n>>16,n>>8&255,255&n)}function xn(n){return Mn(n)+""}function bn(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function _n(n,t,e){var r,i,u,o=0,a=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(Nn(i[0]),Nn(i[1]),Nn(i[2]))}return(u=ua.get(n))?t(u.r,u.g,u.b):(null==n||"#"!==n.charAt(0)||isNaN(u=parseInt(n.slice(1),16))||(4===n.length?(o=(3840&u)>>4,o=o>>4|o,a=240&u,a=a>>4|a,l=15&u,l=l<<4|l):7===n.length&&(o=(16711680&u)>>16,a=(65280&u)>>8,l=255&u)),t(o,a,l))}function wn(n,t,e){var r,i,u=Math.min(n/=255,t/=255,e/=255),o=Math.max(n,t,e),a=o-u,l=(o+u)/2;return a?(i=.5>l?a/(o+u):a/(2-o-u),r=n==o?(t-e)/a+(e>t?6:0):t==o?(e-n)/a+2:(n-t)/a+4,r*=60):(r=NaN,i=l>0&&1>l?0:r),new ln(r,i,l)}function Sn(n,t,e){n=kn(n),t=kn(t),e=kn(e);var r=dn((.4124564*n+.3575761*t+.1804375*e)/na),i=dn((.2126729*n+.7151522*t+.072175*e)/ta),u=dn((.0193339*n+.119192*t+.9503041*e)/ea);return hn(116*i-16,500*(r-i),200*(i-u))}function kn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Nn(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function En(n){return"function"==typeof n?n:function(){return n}}function An(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Cn(t,e,n,r)}}function Cn(n,t,e,r){function i(){var n,t=l.status;if(!t&&Ln(l)||t>=200&&300>t||304===t){try{n=e.call(u,l)}catch(r){return void o.error.call(u,r)}o.load.call(u,n)}else o.error.call(u,l)}var u={},o=ao.dispatch("beforesend","progress","load","error"),a={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(n)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(n){var t=ao.event;ao.event=n;try{o.progress.call(u,l)}finally{ao.event=t}},u.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",u)},u.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",u):t},u.responseType=function(n){return arguments.length?(c=n,u):c},u.response=function(n){return e=n,u},["get","post"].forEach(function(n){u[n]=function(){return u.send.apply(u,[n].concat(co(arguments)))}}),u.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),l.setRequestHeader)for(var f in a)l.setRequestHeader(f,a[f]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=c&&(l.responseType=c),null!=i&&u.on("error",i).on("load",function(n){i(null,n)}),o.beforesend.call(u,l),l.send(null==r?null:r),u},u.abort=function(){return l.abort(),u},ao.rebind(u,o,"on"),null==r?u:u.get(zn(r))}function zn(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function Ln(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qn(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var i=e+t,u={c:n,t:i,n:null};return aa?aa.n=u:oa=u,aa=u,la||(ca=clearTimeout(ca),la=1,fa(Tn)),u}function Tn(){var n=Rn(),t=Dn()-n;t>24?(isFinite(t)&&(clearTimeout(ca),ca=setTimeout(Tn,t)),la=0):(la=1,fa(Tn))}function Rn(){for(var n=Date.now(),t=oa;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function Dn(){for(var n,t=oa,e=1/0;t;)t.c?(t.t<e&&(e=t.t),t=(n=t).n):t=n?n.n=t.n:oa=t.n;return aa=n,e}function Pn(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function Un(n,t){var e=Math.pow(10,3*xo(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}function jn(n){var t=n.decimal,e=n.thousands,r=n.grouping,i=n.currency,u=r&&e?function(n,t){for(var i=n.length,u=[],o=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>t&&(a=Math.max(1,t-l)),u.push(n.substring(i-=a,i+a)),!((l+=a+1)>t));)a=r[o=(o+1)%r.length];return u.reverse().join(e)}:m;return function(n){var e=ha.exec(n),r=e[1]||" ",o=e[2]||">",a=e[3]||"-",l=e[4]||"",c=e[5],f=+e[6],s=e[7],h=e[8],p=e[9],g=1,v="",d="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),p){case"n":s=!0,p="g";break;case"%":g=100,d="%",p="f";break;case"p":g=100,d="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":g=-1,p="r"}"$"===l&&(v=i[0],d=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=pa.get(p)||Fn;var M=c&&s;return function(n){var e=d;if(y&&n%1)return"";var i=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===a?"":a;if(0>g){var l=ao.formatPrefix(n,h);n=l.scale(n),e=l.symbol+d}else n*=g;n=p(n,h);var x,b,_=n.lastIndexOf(".");if(0>_){var w=m?n.lastIndexOf("e"):-1;0>w?(x=n,b=""):(x=n.substring(0,w),b=n.substring(w))}else x=n.substring(0,_),b=t+n.substring(_+1);!c&&s&&(x=u(x,1/0));var S=v.length+x.length+b.length+(M?0:i.length),k=f>S?new Array(S=f-S+1).join(r):"";return M&&(x=u(k+x,k.length?f-b.length:1/0)),i+=v,n=x+b,("<"===o?i+n+k:">"===o?k+i+n:"^"===o?k.substring(0,S>>=1)+i+n+k.substring(S):i+(M?n:k+n))+e}}}function Fn(n){return n+""}function Hn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function On(n,t,e){function r(t){var e=n(t),r=u(e,1);return r-t>t-e?e:r}function i(e){return t(e=n(new va(e-1)),1),e}function u(n,e){return t(n=new va(+n),e),n}function o(n,r,u){var o=i(n),a=[];if(u>1)for(;r>o;)e(o)%u||a.push(new Date(+o)),t(o,1);else for(;r>o;)a.push(new Date(+o)),t(o,1);return a}function a(n,t,e){try{va=Hn;var r=new Hn;return r._=n,o(r,t,e)}finally{va=Date}}n.floor=n,n.round=r,n.ceil=i,n.offset=u,n.range=o;var l=n.utc=In(n);return l.floor=l,l.round=In(r),l.ceil=In(i),l.offset=In(u),l.range=a,n}function In(n){return function(t,e){try{va=Hn;var r=new Hn;return r._=t,n(r,e)._}finally{va=Date}}}function Yn(n){function t(n){function t(t){for(var e,i,u,o=[],a=-1,l=0;++a<r;)37===n.charCodeAt(a)&&(o.push(n.slice(l,a)),null!=(i=ya[e=n.charAt(++a)])&&(e=n.charAt(++a)),(u=A[e])&&(e=u(t,null==i?"e"===e?" ":"0":i)),o.push(e),l=a+1);return o.push(n.slice(l,a)),o.join("")}var r=n.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=e(r,n,t,0);if(i!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var u=null!=r.Z&&va!==Hn,o=new(u?Hn:va);return"j"in r?o.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),u?o._:o},t.toString=function(){return n},t}function e(n,t,e,r){for(var i,u,o,a=0,l=t.length,c=e.length;l>a;){if(r>=c)return-1;if(i=t.charCodeAt(a++),37===i){if(o=t.charAt(a++),u=C[o in ya?t.charAt(a++):o],!u||(r=u(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){_.lastIndex=0;var r=_.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){x.lastIndex=0;var r=x.exec(t.slice(e));return r?(n.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){N.lastIndex=0;var r=N.exec(t.slice(e));return r?(n.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,r){return e(n,A.c.toString(),t,r)}function l(n,t,r){return e(n,A.x.toString(),t,r)}function c(n,t,r){return e(n,A.X.toString(),t,r)}function f(n,t,e){var r=M.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var s=n.dateTime,h=n.date,p=n.time,g=n.periods,v=n.days,d=n.shortDays,y=n.months,m=n.shortMonths;t.utc=function(n){function e(n){try{va=Hn;var t=new va;return t._=n,r(t)}finally{va=Date}}var r=t(n);return e.parse=function(n){try{va=Hn;var t=r.parse(n);return t&&t._}finally{va=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ct;var M=ao.map(),x=Vn(v),b=Xn(v),_=Vn(d),w=Xn(d),S=Vn(y),k=Xn(y),N=Vn(m),E=Xn(m);g.forEach(function(n,t){M.set(n.toLowerCase(),t)});var A={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return m[n.getMonth()]},B:function(n){return y[n.getMonth()]},c:t(s),d:function(n,t){return Zn(n.getDate(),t,2)},e:function(n,t){return Zn(n.getDate(),t,2)},H:function(n,t){return Zn(n.getHours(),t,2)},I:function(n,t){return Zn(n.getHours()%12||12,t,2)},j:function(n,t){return Zn(1+ga.dayOfYear(n),t,3)},L:function(n,t){return Zn(n.getMilliseconds(),t,3)},m:function(n,t){return Zn(n.getMonth()+1,t,2)},M:function(n,t){return Zn(n.getMinutes(),t,2)},p:function(n){return g[+(n.getHours()>=12)]},S:function(n,t){return Zn(n.getSeconds(),t,2)},U:function(n,t){return Zn(ga.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Zn(ga.mondayOfYear(n),t,2)},x:t(h),X:t(p),y:function(n,t){return Zn(n.getFullYear()%100,t,2)},Y:function(n,t){return Zn(n.getFullYear()%1e4,t,4)},Z:at,"%":function(){return"%"}},C={a:r,A:i,b:u,B:o,c:a,d:tt,e:tt,H:rt,I:rt,j:et,L:ot,m:nt,M:it,p:f,S:ut,U:Bn,w:$n,W:Wn,x:l,X:c,y:Gn,Y:Jn,Z:Kn,"%":lt};return t}function Zn(n,t,e){var r=0>n?"-":"",i=(r?-n:n)+"",u=i.length;return r+(e>u?new Array(e-u+1).join(t)+i:i)}function Vn(n){return new RegExp("^(?:"+n.map(ao.requote).join("|")+")","i")}function Xn(n){for(var t=new c,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function $n(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Bn(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e));return r?(n.U=+r[0],e+r[0].length):-1}function Wn(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e));return r?(n.W=+r[0],e+r[0].length):-1}function Jn(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function Gn(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.y=Qn(+r[0]),e+r[0].length):-1}function Kn(n,t,e){return/^[+-]\d{4}$/.test(t=t.slice(e,e+5))?(n.Z=-t,e+5):-1}function Qn(n){return n+(n>68?1900:2e3)}function nt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function tt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function et(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function rt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function it(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function ut(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function ot(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function at(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=xo(t)/60|0,i=xo(t)%60;return e+Zn(r,"0",2)+Zn(i,"0",2)}function lt(n,t,e){Ma.lastIndex=0;var r=Ma.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ct(n){for(var t=n.length,e=-1;++e<t;)n[e][0]=this(n[e][0]);return function(t){for(var e=0,r=n[e];!r[1](t);)r=n[++e];return r[0](t)}}function ft(){}function st(n,t,e){var r=e.s=n+t,i=r-n,u=r-i;e.t=n-u+(t-i)}function ht(n,t){n&&wa.hasOwnProperty(n.type)&&wa[n.type](n,t)}function pt(n,t,e){var r,i=-1,u=n.length-e;for(t.lineStart();++i<u;)r=n[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function gt(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)pt(n[e],t,1);t.polygonEnd()}function vt(){function n(n,t){n*=Yo,t=t*Yo/2+Fo/4;var e=n-r,o=e>=0?1:-1,a=o*e,l=Math.cos(t),c=Math.sin(t),f=u*c,s=i*l+f*Math.cos(a),h=f*o*Math.sin(a);ka.add(Math.atan2(h,s)),r=n,i=l,u=c}var t,e,r,i,u;Na.point=function(o,a){Na.point=n,r=(t=o)*Yo,i=Math.cos(a=(e=a)*Yo/2+Fo/4),u=Math.sin(a)},Na.lineEnd=function(){n(t,e)}}function dt(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function yt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function mt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Mt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function xt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function bt(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function _t(n){return[Math.atan2(n[1],n[0]),tn(n[2])]}function wt(n,t){return xo(n[0]-t[0])<Uo&&xo(n[1]-t[1])<Uo}function St(n,t){n*=Yo;var e=Math.cos(t*=Yo);kt(e*Math.cos(n),e*Math.sin(n),Math.sin(t))}function kt(n,t,e){++Ea,Ca+=(n-Ca)/Ea,za+=(t-za)/Ea,La+=(e-La)/Ea}function Nt(){function n(n,i){n*=Yo;var u=Math.cos(i*=Yo),o=u*Math.cos(n),a=u*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*a)*c+(c=r*o-t*l)*c+(c=t*a-e*o)*c),t*o+e*a+r*l);Aa+=c,qa+=c*(t+(t=o)),Ta+=c*(e+(e=a)),Ra+=c*(r+(r=l)),kt(t,e,r)}var t,e,r;ja.point=function(i,u){i*=Yo;var o=Math.cos(u*=Yo);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(u),ja.point=n,kt(t,e,r)}}function Et(){ja.point=St}function At(){function n(n,t){n*=Yo;var e=Math.cos(t*=Yo),o=e*Math.cos(n),a=e*Math.sin(n),l=Math.sin(t),c=i*l-u*a,f=u*o-r*l,s=r*a-i*o,h=Math.sqrt(c*c+f*f+s*s),p=r*o+i*a+u*l,g=h&&-nn(p)/h,v=Math.atan2(h,p);Da+=g*c,Pa+=g*f,Ua+=g*s,Aa+=v,qa+=v*(r+(r=o)),Ta+=v*(i+(i=a)),Ra+=v*(u+(u=l)),kt(r,i,u)}var t,e,r,i,u;ja.point=function(o,a){t=o,e=a,ja.point=n,o*=Yo;var l=Math.cos(a*=Yo);r=l*Math.cos(o),i=l*Math.sin(o),u=Math.sin(a),kt(r,i,u)},ja.lineEnd=function(){n(t,e),ja.lineEnd=Et,ja.point=St}}function Ct(n,t){function e(e,r){return e=n(e,r),t(e[0],e[1])}return n.invert&&t.invert&&(e.invert=function(e,r){return e=t.invert(e,r),e&&n.invert(e[0],e[1])}),e}function zt(){return!0}function Lt(n,t,e,r,i){var u=[],o=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,e=n[0],r=n[t];if(wt(e,r)){i.lineStart();for(var a=0;t>a;++a)i.point((e=n[a])[0],e[1]);return void i.lineEnd()}var l=new Tt(e,n,null,!0),c=new Tt(e,null,l,!1);l.o=c,u.push(l),o.push(c),l=new Tt(r,n,null,!1),c=new Tt(r,null,l,!0),l.o=c,u.push(l),o.push(c)}}),o.sort(t),qt(u),qt(o),u.length){for(var a=0,l=e,c=o.length;c>a;++a)o[a].e=l=!l;for(var f,s,h=u[0];;){for(var p=h,g=!0;p.v;)if((p=p.n)===h)return;f=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(g)for(var a=0,c=f.length;c>a;++a)i.point((s=f[a])[0],s[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(g){f=p.p.z;for(var a=f.length-1;a>=0;--a)i.point((s=f[a])[0],s[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,f=p.z,g=!g}while(!p.v);i.lineEnd()}}}function qt(n){if(t=n.length){for(var t,e,r=0,i=n[0];++r<t;)i.n=e=n[r],e.p=i,i=e;i.n=e=n[0],e.p=i}}function Tt(n,t,e,r){this.x=n,this.z=t,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Rt(n,t,e,r){return function(i,u){function o(t,e){var r=i(t,e);n(t=r[0],e=r[1])&&u.point(t,e)}function a(n,t){var e=i(n,t);d.point(e[0],e[1])}function l(){m.point=a,d.lineStart()}function c(){m.point=o,d.lineEnd()}function f(n,t){v.push([n,t]);var e=i(n,t);x.point(e[0],e[1])}function s(){x.lineStart(),v=[]}function h(){f(v[0][0],v[0][1]),x.lineEnd();var n,t=x.clean(),e=M.buffer(),r=e.length;if(v.pop(),g.push(v),v=null,r)if(1&t){n=e[0];var i,r=n.length-1,o=-1;if(r>0){for(b||(u.polygonStart(),b=!0),u.lineStart();++o<r;)u.point((i=n[o])[0],i[1]);u.lineEnd()}}else r>1&&2&t&&e.push(e.pop().concat(e.shift())),p.push(e.filter(Dt))}var p,g,v,d=t(u),y=i.invert(r[0],r[1]),m={point:o,lineStart:l,lineEnd:c,polygonStart:function(){m.point=f,m.lineStart=s,m.lineEnd=h,p=[],g=[]},polygonEnd:function(){m.point=o,m.lineStart=l,m.lineEnd=c,p=ao.merge(p);var n=Ot(y,g);p.length?(b||(u.polygonStart(),b=!0),Lt(p,Ut,n,e,u)):n&&(b||(u.polygonStart(),b=!0),u.lineStart(),e(null,null,1,u),u.lineEnd()),b&&(u.polygonEnd(),b=!1),p=g=null},sphere:function(){u.polygonStart(),u.lineStart(),e(null,null,1,u),u.lineEnd(),u.polygonEnd()}},M=Pt(),x=t(M),b=!1;return m}}function Dt(n){return n.length>1}function Pt(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:b,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ut(n,t){return((n=n.x)[0]<0?n[1]-Io-Uo:Io-n[1])-((t=t.x)[0]<0?t[1]-Io-Uo:Io-t[1])}function jt(n){var t,e=NaN,r=NaN,i=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(u,o){var a=u>0?Fo:-Fo,l=xo(u-e);xo(l-Fo)<Uo?(n.point(e,r=(r+o)/2>0?Io:-Io),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(a,r),n.point(u,r),t=0):i!==a&&l>=Fo&&(xo(e-i)<Uo&&(e-=i*Uo),xo(u-a)<Uo&&(u-=a*Uo),r=Ft(e,r,u,o),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(a,r),t=0),n.point(e=u,r=o),i=a},lineEnd:function(){n.lineEnd(),e=r=NaN},clean:function(){return 2-t}}}function Ft(n,t,e,r){var i,u,o=Math.sin(n-e);return xo(o)>Uo?Math.atan((Math.sin(t)*(u=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(t))*Math.sin(n))/(i*u*o)):(t+r)/2}function Ht(n,t,e,r){var i;if(null==n)i=e*Io,r.point(-Fo,i),r.point(0,i),r.point(Fo,i),r.point(Fo,0),r.point(Fo,-i),r.point(0,-i),r.point(-Fo,-i),r.point(-Fo,0),r.point(-Fo,i);else if(xo(n[0]-t[0])>Uo){var u=n[0]<t[0]?Fo:-Fo;i=e*u/2,r.point(-u,i),r.point(0,i),r.point(u,i)}else r.point(t[0],t[1])}function Ot(n,t){var e=n[0],r=n[1],i=[Math.sin(e),-Math.cos(e),0],u=0,o=0;ka.reset();for(var a=0,l=t.length;l>a;++a){var c=t[a],f=c.length;if(f)for(var s=c[0],h=s[0],p=s[1]/2+Fo/4,g=Math.sin(p),v=Math.cos(p),d=1;;){d===f&&(d=0),n=c[d];var y=n[0],m=n[1]/2+Fo/4,M=Math.sin(m),x=Math.cos(m),b=y-h,_=b>=0?1:-1,w=_*b,S=w>Fo,k=g*M;if(ka.add(Math.atan2(k*_*Math.sin(w),v*x+k*Math.cos(w))),u+=S?b+_*Ho:b,S^h>=e^y>=e){var N=mt(dt(s),dt(n));bt(N);var E=mt(i,N);bt(E);var A=(S^b>=0?-1:1)*tn(E[2]);(r>A||r===A&&(N[0]||N[1]))&&(o+=S^b>=0?1:-1)}if(!d++)break;h=y,g=M,v=x,s=n}}return(-Uo>u||Uo>u&&-Uo>ka)^1&o}function It(n){function t(n,t){return Math.cos(n)*Math.cos(t)>u}function e(n){var e,u,l,c,f;return{lineStart:function(){c=l=!1,f=1},point:function(s,h){var p,g=[s,h],v=t(s,h),d=o?v?0:i(s,h):v?i(s+(0>s?Fo:-Fo),h):0;if(!e&&(c=l=v)&&n.lineStart(),v!==l&&(p=r(e,g),(wt(e,p)||wt(g,p))&&(g[0]+=Uo,g[1]+=Uo,v=t(g[0],g[1]))),v!==l)f=0,v?(n.lineStart(),p=r(g,e),n.point(p[0],p[1])):(p=r(e,g),n.point(p[0],p[1]),n.lineEnd()),e=p;else if(a&&e&&o^v){var y;d&u||!(y=r(g,e,!0))||(f=0,o?(n.lineStart(),n.point(y[0][0],y[0][1]),n.point(y[1][0],y[1][1]),n.lineEnd()):(n.point(y[1][0],y[1][1]),n.lineEnd(),n.lineStart(),n.point(y[0][0],y[0][1])))}!v||e&&wt(e,g)||n.point(g[0],g[1]),e=g,l=v,u=d},lineEnd:function(){l&&n.lineEnd(),e=null},clean:function(){return f|(c&&l)<<1}}}function r(n,t,e){var r=dt(n),i=dt(t),o=[1,0,0],a=mt(r,i),l=yt(a,a),c=a[0],f=l-c*c;if(!f)return!e&&n;var s=u*l/f,h=-u*c/f,p=mt(o,a),g=xt(o,s),v=xt(a,h);Mt(g,v);var d=p,y=yt(g,d),m=yt(d,d),M=y*y-m*(yt(g,g)-1);if(!(0>M)){var x=Math.sqrt(M),b=xt(d,(-y-x)/m);if(Mt(b,g),b=_t(b),!e)return b;var _,w=n[0],S=t[0],k=n[1],N=t[1];w>S&&(_=w,w=S,S=_);var E=S-w,A=xo(E-Fo)<Uo,C=A||Uo>E;if(!A&&k>N&&(_=k,k=N,N=_),C?A?k+N>0^b[1]<(xo(b[0]-w)<Uo?k:N):k<=b[1]&&b[1]<=N:E>Fo^(w<=b[0]&&b[0]<=S)){var z=xt(d,(-y+x)/m);return Mt(z,g),[b,_t(z)]}}}function i(t,e){var r=o?n:Fo-n,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var u=Math.cos(n),o=u>0,a=xo(u)>Uo,l=ve(n,6*Yo);return Rt(t,e,l,o?[0,-n]:[-Fo,n-Fo])}function Yt(n,t,e,r){return function(i){var u,o=i.a,a=i.b,l=o.x,c=o.y,f=a.x,s=a.y,h=0,p=1,g=f-l,v=s-c;if(u=n-l,g||!(u>0)){if(u/=g,0>g){if(h>u)return;p>u&&(p=u)}else if(g>0){if(u>p)return;u>h&&(h=u)}if(u=e-l,g||!(0>u)){if(u/=g,0>g){if(u>p)return;u>h&&(h=u)}else if(g>0){if(h>u)return;p>u&&(p=u)}if(u=t-c,v||!(u>0)){if(u/=v,0>v){if(h>u)return;p>u&&(p=u)}else if(v>0){if(u>p)return;u>h&&(h=u)}if(u=r-c,v||!(0>u)){if(u/=v,0>v){if(u>p)return;u>h&&(h=u)}else if(v>0){if(h>u)return;p>u&&(p=u)}return h>0&&(i.a={x:l+h*g,y:c+h*v}),1>p&&(i.b={x:l+p*g,y:c+p*v}),i}}}}}}function Zt(n,t,e,r){function i(r,i){return xo(r[0]-n)<Uo?i>0?0:3:xo(r[0]-e)<Uo?i>0?2:1:xo(r[1]-t)<Uo?i>0?1:0:i>0?3:2}function u(n,t){return o(n.x,t.x)}function o(n,t){var e=i(n,1),r=i(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(a){function l(n){for(var t=0,e=d.length,r=n[1],i=0;e>i;++i)for(var u,o=1,a=d[i],l=a.length,c=a[0];l>o;++o)u=a[o],c[1]<=r?u[1]>r&&Q(c,u,n)>0&&++t:u[1]<=r&&Q(c,u,n)<0&&--t,c=u;return 0!==t}function c(u,a,l,c){var f=0,s=0;if(null==u||(f=i(u,l))!==(s=i(a,l))||o(u,a)<0^l>0){do c.point(0===f||3===f?n:e,f>1?r:t);while((f=(f+l+4)%4)!==s)}else c.point(a[0],a[1])}function f(i,u){return i>=n&&e>=i&&u>=t&&r>=u}function s(n,t){f(n,t)&&a.point(n,t)}function h(){C.point=g,d&&d.push(y=[]),S=!0,w=!1,b=_=NaN}function p(){v&&(g(m,M),x&&w&&E.rejoin(),v.push(E.buffer())),C.point=s,w&&a.lineEnd()}function g(n,t){n=Math.max(-Ha,Math.min(Ha,n)),t=Math.max(-Ha,Math.min(Ha,t));var e=f(n,t);if(d&&y.push([n,t]),S)m=n,M=t,x=e,S=!1,e&&(a.lineStart(),a.point(n,t));else if(e&&w)a.point(n,t);else{var r={a:{x:b,y:_},b:{x:n,y:t}};A(r)?(w||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),k=!1):e&&(a.lineStart(),a.point(n,t),k=!1)}b=n,_=t,w=e}var v,d,y,m,M,x,b,_,w,S,k,N=a,E=Pt(),A=Yt(n,t,e,r),C={point:s,lineStart:h,lineEnd:p,polygonStart:function(){a=E,v=[],d=[],k=!0},polygonEnd:function(){a=N,v=ao.merge(v);var t=l([n,r]),e=k&&t,i=v.length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),c(null,null,1,a),a.lineEnd()),i&&Lt(v,u,t,c,a),a.polygonEnd()),v=d=y=null}};return C}}function Vt(n){var t=0,e=Fo/3,r=ae(n),i=r(t,e);return i.parallels=function(n){return arguments.length?r(t=n[0]*Fo/180,e=n[1]*Fo/180):[t/Fo*180,e/Fo*180]},i}function Xt(n,t){function e(n,t){var e=Math.sqrt(u-2*i*Math.sin(t))/i;return[e*Math.sin(n*=i),o-e*Math.cos(n)]}var r=Math.sin(n),i=(r+Math.sin(t))/2,u=1+r*(2*i-r),o=Math.sqrt(u)/i;return e.invert=function(n,t){var e=o-t;return[Math.atan2(n,e)/i,tn((u-(n*n+e*e)*i*i)/(2*i))]},e}function $t(){function n(n,t){Ia+=i*n-r*t,r=n,i=t}var t,e,r,i;$a.point=function(u,o){$a.point=n,t=r=u,e=i=o},$a.lineEnd=function(){n(t,e)}}function Bt(n,t){Ya>n&&(Ya=n),n>Va&&(Va=n),Za>t&&(Za=t),t>Xa&&(Xa=t)}function Wt(){function n(n,t){o.push("M",n,",",t,u)}function t(n,t){o.push("M",n,",",t),a.point=e}function e(n,t){o.push("L",n,",",t)}function r(){a.point=n}function i(){o.push("Z")}var u=Jt(4.5),o=[],a={point:n,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=r,a.point=n},pointRadius:function(n){return u=Jt(n),a},result:function(){if(o.length){var n=o.join("");return o=[],n}}};return a}function Jt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Gt(n,t){Ca+=n,za+=t,++La}function Kt(){function n(n,r){var i=n-t,u=r-e,o=Math.sqrt(i*i+u*u);qa+=o*(t+n)/2,Ta+=o*(e+r)/2,Ra+=o,Gt(t=n,e=r)}var t,e;Wa.point=function(r,i){Wa.point=n,Gt(t=r,e=i)}}function Qt(){Wa.point=Gt}function ne(){function n(n,t){var e=n-r,u=t-i,o=Math.sqrt(e*e+u*u);qa+=o*(r+n)/2,Ta+=o*(i+t)/2,Ra+=o,o=i*n-r*t,Da+=o*(r+n),Pa+=o*(i+t),Ua+=3*o,Gt(r=n,i=t)}var t,e,r,i;Wa.point=function(u,o){Wa.point=n,Gt(t=r=u,e=i=o)},Wa.lineEnd=function(){n(t,e)}}function te(n){function t(t,e){n.moveTo(t+o,e),n.arc(t,e,o,0,Ho)}function e(t,e){n.moveTo(t,e),a.point=r}function r(t,e){n.lineTo(t,e)}function i(){a.point=t}function u(){n.closePath()}var o=4.5,a={point:t,lineStart:function(){a.point=e},lineEnd:i,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=i,a.point=t},pointRadius:function(n){return o=n,a},result:b};return a}function ee(n){function t(n){return(a?r:e)(n)}function e(t){return ue(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){M=NaN,S.point=u,t.lineStart()}function u(e,r){var u=dt([e,r]),o=n(e,r);i(M,x,m,b,_,w,M=o[0],x=o[1],m=e,b=u[0],_=u[1],w=u[2],a,t),t.point(M,x)}function o(){S.point=e,t.lineEnd()}function l(){
-r(),S.point=c,S.lineEnd=f}function c(n,t){u(s=n,h=t),p=M,g=x,v=b,d=_,y=w,S.point=u}function f(){i(M,x,m,b,_,w,p,g,s,v,d,y,a,t),S.lineEnd=o,o()}var s,h,p,g,v,d,y,m,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=l},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function i(t,e,r,a,l,c,f,s,h,p,g,v,d,y){var m=f-t,M=s-e,x=m*m+M*M;if(x>4*u&&d--){var b=a+p,_=l+g,w=c+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),N=xo(xo(w)-1)<Uo||xo(r-h)<Uo?(r+h)/2:Math.atan2(_,b),E=n(N,k),A=E[0],C=E[1],z=A-t,L=C-e,q=M*z-m*L;(q*q/x>u||xo((m*z+M*L)/x-.5)>.3||o>a*p+l*g+c*v)&&(i(t,e,r,a,l,c,A,C,N,b/=S,_/=S,w,d,y),y.point(A,C),i(A,C,N,b,_,w,f,s,h,p,g,v,d,y))}}var u=.5,o=Math.cos(30*Yo),a=16;return t.precision=function(n){return arguments.length?(a=(u=n*n)>0&&16,t):Math.sqrt(u)},t}function re(n){var t=ee(function(t,e){return n([t*Zo,e*Zo])});return function(n){return le(t(n))}}function ie(n){this.stream=n}function ue(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function oe(n){return ae(function(){return n})()}function ae(n){function t(n){return n=a(n[0]*Yo,n[1]*Yo),[n[0]*h+l,c-n[1]*h]}function e(n){return n=a.invert((n[0]-l)/h,(c-n[1])/h),n&&[n[0]*Zo,n[1]*Zo]}function r(){a=Ct(o=se(y,M,x),u);var n=u(v,d);return l=p-n[0]*h,c=g+n[1]*h,i()}function i(){return f&&(f.valid=!1,f=null),t}var u,o,a,l,c,f,s=ee(function(n,t){return n=u(n,t),[n[0]*h+l,c-n[1]*h]}),h=150,p=480,g=250,v=0,d=0,y=0,M=0,x=0,b=Fa,_=m,w=null,S=null;return t.stream=function(n){return f&&(f.valid=!1),f=le(b(o,s(_(n)))),f.valid=!0,f},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Fa):It((w=+n)*Yo),i()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Zt(n[0][0],n[0][1],n[1][0],n[1][1]):m,i()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(p=+n[0],g=+n[1],r()):[p,g]},t.center=function(n){return arguments.length?(v=n[0]%360*Yo,d=n[1]%360*Yo,r()):[v*Zo,d*Zo]},t.rotate=function(n){return arguments.length?(y=n[0]%360*Yo,M=n[1]%360*Yo,x=n.length>2?n[2]%360*Yo:0,r()):[y*Zo,M*Zo,x*Zo]},ao.rebind(t,s,"precision"),function(){return u=n.apply(this,arguments),t.invert=u.invert&&e,r()}}function le(n){return ue(n,function(t,e){n.point(t*Yo,e*Yo)})}function ce(n,t){return[n,t]}function fe(n,t){return[n>Fo?n-Ho:-Fo>n?n+Ho:n,t]}function se(n,t,e){return n?t||e?Ct(pe(n),ge(t,e)):pe(n):t||e?ge(t,e):fe}function he(n){return function(t,e){return t+=n,[t>Fo?t-Ho:-Fo>t?t+Ho:t,e]}}function pe(n){var t=he(n);return t.invert=he(-n),t}function ge(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*r+a*i;return[Math.atan2(l*u-f*o,a*r-c*i),tn(f*u+l*o)]}var r=Math.cos(n),i=Math.sin(n),u=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*u-l*o;return[Math.atan2(l*u+c*o,a*r+f*i),tn(f*r-a*i)]},e}function ve(n,t){var e=Math.cos(n),r=Math.sin(n);return function(i,u,o,a){var l=o*t;null!=i?(i=de(e,i),u=de(e,u),(o>0?u>i:i>u)&&(i+=o*Ho)):(i=n+o*Ho,u=n-.5*l);for(var c,f=i;o>0?f>u:u>f;f-=l)a.point((c=_t([e,-r*Math.cos(f),-r*Math.sin(f)]))[0],c[1])}}function de(n,t){var e=dt(t);e[0]-=n,bt(e);var r=nn(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Uo)%(2*Math.PI)}function ye(n,t,e){var r=ao.range(n,t-Uo,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function me(n,t,e){var r=ao.range(n,t-Uo,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function Me(n){return n.source}function xe(n){return n.target}function be(n,t,e,r){var i=Math.cos(t),u=Math.sin(t),o=Math.cos(r),a=Math.sin(r),l=i*Math.cos(n),c=i*Math.sin(n),f=o*Math.cos(e),s=o*Math.sin(e),h=2*Math.asin(Math.sqrt(on(r-t)+i*o*on(e-n))),p=1/Math.sin(h),g=h?function(n){var t=Math.sin(n*=h)*p,e=Math.sin(h-n)*p,r=e*l+t*f,i=e*c+t*s,o=e*u+t*a;return[Math.atan2(i,r)*Zo,Math.atan2(o,Math.sqrt(r*r+i*i))*Zo]}:function(){return[n*Zo,t*Zo]};return g.distance=h,g}function _e(){function n(n,i){var u=Math.sin(i*=Yo),o=Math.cos(i),a=xo((n*=Yo)-t),l=Math.cos(a);Ja+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*u-e*o*l)*a),e*u+r*o*l),t=n,e=u,r=o}var t,e,r;Ga.point=function(i,u){t=i*Yo,e=Math.sin(u*=Yo),r=Math.cos(u),Ga.point=n},Ga.lineEnd=function(){Ga.point=Ga.lineEnd=b}}function we(n,t){function e(t,e){var r=Math.cos(t),i=Math.cos(e),u=n(r*i);return[u*i*Math.sin(t),u*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),i=t(r),u=Math.sin(i),o=Math.cos(i);return[Math.atan2(n*u,r*o),Math.asin(r&&e*u/r)]},e}function Se(n,t){function e(n,t){o>0?-Io+Uo>t&&(t=-Io+Uo):t>Io-Uo&&(t=Io-Uo);var e=o/Math.pow(i(t),u);return[e*Math.sin(u*n),o-e*Math.cos(u*n)]}var r=Math.cos(n),i=function(n){return Math.tan(Fo/4+n/2)},u=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(i(t)/i(n)),o=r*Math.pow(i(n),u)/u;return u?(e.invert=function(n,t){var e=o-t,r=K(u)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/u,2*Math.atan(Math.pow(o/r,1/u))-Io]},e):Ne}function ke(n,t){function e(n,t){var e=u-t;return[e*Math.sin(i*n),u-e*Math.cos(i*n)]}var r=Math.cos(n),i=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),u=r/i+n;return xo(i)<Uo?ce:(e.invert=function(n,t){var e=u-t;return[Math.atan2(n,e)/i,u-K(i)*Math.sqrt(n*n+e*e)]},e)}function Ne(n,t){return[n,Math.log(Math.tan(Fo/4+t/2))]}function Ee(n){var t,e=oe(n),r=e.scale,i=e.translate,u=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=i.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var o=u.apply(e,arguments);if(o===e){if(t=null==n){var a=Fo*r(),l=i();u([[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]])}}else t&&(o=null);return o},e.clipExtent(null)}function Ae(n,t){return[Math.log(Math.tan(Fo/4+t/2)),-n]}function Ce(n){return n[0]}function ze(n){return n[1]}function Le(n){for(var t=n.length,e=[0,1],r=2,i=2;t>i;i++){for(;r>1&&Q(n[e[r-2]],n[e[r-1]],n[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function qe(n,t){return n[0]-t[0]||n[1]-t[1]}function Te(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Re(n,t,e,r){var i=n[0],u=e[0],o=t[0]-i,a=r[0]-u,l=n[1],c=e[1],f=t[1]-l,s=r[1]-c,h=(a*(l-c)-s*(i-u))/(s*o-a*f);return[i+h*o,l+h*f]}function De(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Pe(){rr(this),this.edge=this.site=this.circle=null}function Ue(n){var t=cl.pop()||new Pe;return t.site=n,t}function je(n){Be(n),ol.remove(n),cl.push(n),rr(n)}function Fe(n){var t=n.circle,e=t.x,r=t.cy,i={x:e,y:r},u=n.P,o=n.N,a=[n];je(n);for(var l=u;l.circle&&xo(e-l.circle.x)<Uo&&xo(r-l.circle.cy)<Uo;)u=l.P,a.unshift(l),je(l),l=u;a.unshift(l),Be(l);for(var c=o;c.circle&&xo(e-c.circle.x)<Uo&&xo(r-c.circle.cy)<Uo;)o=c.N,a.push(c),je(c),c=o;a.push(c),Be(c);var f,s=a.length;for(f=1;s>f;++f)c=a[f],l=a[f-1],nr(c.edge,l.site,c.site,i);l=a[0],c=a[s-1],c.edge=Ke(l.site,c.site,null,i),$e(l),$e(c)}function He(n){for(var t,e,r,i,u=n.x,o=n.y,a=ol._;a;)if(r=Oe(a,o)-u,r>Uo)a=a.L;else{if(i=u-Ie(a,o),!(i>Uo)){r>-Uo?(t=a.P,e=a):i>-Uo?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var l=Ue(n);if(ol.insert(t,l),t||e){if(t===e)return Be(t),e=Ue(t.site),ol.insert(l,e),l.edge=e.edge=Ke(t.site,l.site),$e(t),void $e(e);if(!e)return void(l.edge=Ke(t.site,l.site));Be(t),Be(e);var c=t.site,f=c.x,s=c.y,h=n.x-f,p=n.y-s,g=e.site,v=g.x-f,d=g.y-s,y=2*(h*d-p*v),m=h*h+p*p,M=v*v+d*d,x={x:(d*m-p*M)/y+f,y:(h*M-v*m)/y+s};nr(e.edge,c,g,x),l.edge=Ke(c,n,null,x),e.edge=Ke(n,g,null,x),$e(t),$e(e)}}function Oe(n,t){var e=n.site,r=e.x,i=e.y,u=i-t;if(!u)return r;var o=n.P;if(!o)return-(1/0);e=o.site;var a=e.x,l=e.y,c=l-t;if(!c)return a;var f=a-r,s=1/u-1/c,h=f/c;return s?(-h+Math.sqrt(h*h-2*s*(f*f/(-2*c)-l+c/2+i-u/2)))/s+r:(r+a)/2}function Ie(n,t){var e=n.N;if(e)return Oe(e,t);var r=n.site;return r.y===t?r.x:1/0}function Ye(n){this.site=n,this.edges=[]}function Ze(n){for(var t,e,r,i,u,o,a,l,c,f,s=n[0][0],h=n[1][0],p=n[0][1],g=n[1][1],v=ul,d=v.length;d--;)if(u=v[d],u&&u.prepare())for(a=u.edges,l=a.length,o=0;l>o;)f=a[o].end(),r=f.x,i=f.y,c=a[++o%l].start(),t=c.x,e=c.y,(xo(r-t)>Uo||xo(i-e)>Uo)&&(a.splice(o,0,new tr(Qe(u.site,f,xo(r-s)<Uo&&g-i>Uo?{x:s,y:xo(t-s)<Uo?e:g}:xo(i-g)<Uo&&h-r>Uo?{x:xo(e-g)<Uo?t:h,y:g}:xo(r-h)<Uo&&i-p>Uo?{x:h,y:xo(t-h)<Uo?e:p}:xo(i-p)<Uo&&r-s>Uo?{x:xo(e-p)<Uo?t:s,y:p}:null),u.site,null)),++l)}function Ve(n,t){return t.angle-n.angle}function Xe(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function $e(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,i=n.site,u=e.site;if(r!==u){var o=i.x,a=i.y,l=r.x-o,c=r.y-a,f=u.x-o,s=u.y-a,h=2*(l*s-c*f);if(!(h>=-jo)){var p=l*l+c*c,g=f*f+s*s,v=(s*p-c*g)/h,d=(l*g-f*p)/h,s=d+a,y=fl.pop()||new Xe;y.arc=n,y.site=i,y.x=v+o,y.y=s+Math.sqrt(v*v+d*d),y.cy=s,n.circle=y;for(var m=null,M=ll._;M;)if(y.y<M.y||y.y===M.y&&y.x<=M.x){if(!M.L){m=M.P;break}M=M.L}else{if(!M.R){m=M;break}M=M.R}ll.insert(m,y),m||(al=y)}}}}function Be(n){var t=n.circle;t&&(t.P||(al=t.N),ll.remove(t),fl.push(t),rr(t),n.circle=null)}function We(n){for(var t,e=il,r=Yt(n[0][0],n[0][1],n[1][0],n[1][1]),i=e.length;i--;)t=e[i],(!Je(t,n)||!r(t)||xo(t.a.x-t.b.x)<Uo&&xo(t.a.y-t.b.y)<Uo)&&(t.a=t.b=null,e.splice(i,1))}function Je(n,t){var e=n.b;if(e)return!0;var r,i,u=n.a,o=t[0][0],a=t[1][0],l=t[0][1],c=t[1][1],f=n.l,s=n.r,h=f.x,p=f.y,g=s.x,v=s.y,d=(h+g)/2,y=(p+v)/2;if(v===p){if(o>d||d>=a)return;if(h>g){if(u){if(u.y>=c)return}else u={x:d,y:l};e={x:d,y:c}}else{if(u){if(u.y<l)return}else u={x:d,y:c};e={x:d,y:l}}}else if(r=(h-g)/(v-p),i=y-r*d,-1>r||r>1)if(h>g){if(u){if(u.y>=c)return}else u={x:(l-i)/r,y:l};e={x:(c-i)/r,y:c}}else{if(u){if(u.y<l)return}else u={x:(c-i)/r,y:c};e={x:(l-i)/r,y:l}}else if(v>p){if(u){if(u.x>=a)return}else u={x:o,y:r*o+i};e={x:a,y:r*a+i}}else{if(u){if(u.x<o)return}else u={x:a,y:r*a+i};e={x:o,y:r*o+i}}return n.a=u,n.b=e,!0}function Ge(n,t){this.l=n,this.r=t,this.a=this.b=null}function Ke(n,t,e,r){var i=new Ge(n,t);return il.push(i),e&&nr(i,n,t,e),r&&nr(i,t,n,r),ul[n.i].edges.push(new tr(i,n,t)),ul[t.i].edges.push(new tr(i,t,n)),i}function Qe(n,t,e){var r=new Ge(n,null);return r.a=t,r.b=e,il.push(r),r}function nr(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function tr(n,t,e){var r=n.a,i=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function er(){this._=null}function rr(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function ir(n,t){var e=t,r=t.R,i=e.U;i?i.L===e?i.L=r:i.R=r:n._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ur(n,t){var e=t,r=t.L,i=e.U;i?i.L===e?i.L=r:i.R=r:n._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function or(n){for(;n.L;)n=n.L;return n}function ar(n,t){var e,r,i,u=n.sort(lr).pop();for(il=[],ul=new Array(n.length),ol=new er,ll=new er;;)if(i=al,u&&(!i||u.y<i.y||u.y===i.y&&u.x<i.x))u.x===e&&u.y===r||(ul[u.i]=new Ye(u),He(u),e=u.x,r=u.y),u=n.pop();else{if(!i)break;Fe(i.arc)}t&&(We(t),Ze(t));var o={cells:ul,edges:il};return ol=ll=il=ul=null,o}function lr(n,t){return t.y-n.y||t.x-n.x}function cr(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function fr(n){return n.x}function sr(n){return n.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function pr(n,t,e,r,i,u){if(!n(t,e,r,i,u)){var o=.5*(e+i),a=.5*(r+u),l=t.nodes;l[0]&&pr(n,l[0],e,r,o,a),l[1]&&pr(n,l[1],o,r,i,a),l[2]&&pr(n,l[2],e,a,o,u),l[3]&&pr(n,l[3],o,a,i,u)}}function gr(n,t,e,r,i,u,o){var a,l=1/0;return function c(n,f,s,h,p){if(!(f>u||s>o||r>h||i>p)){if(g=n.point){var g,v=t-n.x,d=e-n.y,y=v*v+d*d;if(l>y){var m=Math.sqrt(l=y);r=t-m,i=e-m,u=t+m,o=e+m,a=g}}for(var M=n.nodes,x=.5*(f+h),b=.5*(s+p),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:c(n,f,s,x,b);break;case 1:c(n,x,s,h,b);break;case 2:c(n,f,b,x,p);break;case 3:c(n,x,b,h,p)}}}(n,r,i,u,o),a}function vr(n,t){n=ao.rgb(n),t=ao.rgb(t);var e=n.r,r=n.g,i=n.b,u=t.r-e,o=t.g-r,a=t.b-i;return function(n){return"#"+bn(Math.round(e+u*n))+bn(Math.round(r+o*n))+bn(Math.round(i+a*n))}}function dr(n,t){var e,r={},i={};for(e in n)e in t?r[e]=Mr(n[e],t[e]):i[e]=n[e];for(e in t)e in n||(i[e]=t[e]);return function(n){for(e in r)i[e]=r[e](n);return i}}function yr(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function mr(n,t){var e,r,i,u=hl.lastIndex=pl.lastIndex=0,o=-1,a=[],l=[];for(n+="",t+="";(e=hl.exec(n))&&(r=pl.exec(t));)(i=r.index)>u&&(i=t.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:yr(e,r)})),u=pl.lastIndex;return u<t.length&&(i=t.slice(u),a[o]?a[o]+=i:a[++o]=i),a.length<2?l[0]?(t=l[0].x,function(n){return t(n)+""}):function(){return t}:(t=l.length,function(n){for(var e,r=0;t>r;++r)a[(e=l[r]).i]=e.x(n);return a.join("")})}function Mr(n,t){for(var e,r=ao.interpolators.length;--r>=0&&!(e=ao.interpolators[r](n,t)););return e}function xr(n,t){var e,r=[],i=[],u=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(Mr(n[e],t[e]));for(;u>e;++e)i[e]=n[e];for(;o>e;++e)i[e]=t[e];return function(n){for(e=0;a>e;++e)i[e]=r[e](n);return i}}function br(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function _r(n){return function(t){return 1-n(1-t)}}function wr(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function Sr(n){return n*n}function kr(n){return n*n*n}function Nr(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function Er(n){return function(t){return Math.pow(t,n)}}function Ar(n){return 1-Math.cos(n*Io)}function Cr(n){return Math.pow(2,10*(n-1))}function zr(n){return 1-Math.sqrt(1-n*n)}function Lr(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/Ho*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*Ho/t)}}function qr(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function Tr(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Rr(n,t){n=ao.hcl(n),t=ao.hcl(t);var e=n.h,r=n.c,i=n.l,u=t.h-e,o=t.c-r,a=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(u)?(u=0,e=isNaN(e)?t.h:e):u>180?u-=360:-180>u&&(u+=360),function(n){return sn(e+u*n,r+o*n,i+a*n)+""}}function Dr(n,t){n=ao.hsl(n),t=ao.hsl(t);var e=n.h,r=n.s,i=n.l,u=t.h-e,o=t.s-r,a=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(u)?(u=0,e=isNaN(e)?t.h:e):u>180?u-=360:-180>u&&(u+=360),function(n){return cn(e+u*n,r+o*n,i+a*n)+""}}function Pr(n,t){n=ao.lab(n),t=ao.lab(t);var e=n.l,r=n.a,i=n.b,u=t.l-e,o=t.a-r,a=t.b-i;return function(n){return pn(e+u*n,r+o*n,i+a*n)+""}}function Ur(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function jr(n){var t=[n.a,n.b],e=[n.c,n.d],r=Hr(t),i=Fr(t,e),u=Hr(Or(e,t,-i))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*Zo,this.translate=[n.e,n.f],this.scale=[r,u],this.skew=u?Math.atan2(i,u)*Zo:0}function Fr(n,t){return n[0]*t[0]+n[1]*t[1]}function Hr(n){var t=Math.sqrt(Fr(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Or(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Ir(n){return n.length?n.pop()+",":""}function Yr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var i=e.push("translate(",null,",",null,")");r.push({i:i-4,x:yr(n[0],t[0])},{i:i-2,x:yr(n[1],t[1])})}else(t[0]||t[1])&&e.push("translate("+t+")")}function Zr(n,t,e,r){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),r.push({i:e.push(Ir(e)+"rotate(",null,")")-2,x:yr(n,t)})):t&&e.push(Ir(e)+"rotate("+t+")")}function Vr(n,t,e,r){n!==t?r.push({i:e.push(Ir(e)+"skewX(",null,")")-2,x:yr(n,t)}):t&&e.push(Ir(e)+"skewX("+t+")")}function Xr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var i=e.push(Ir(e)+"scale(",null,",",null,")");r.push({i:i-4,x:yr(n[0],t[0])},{i:i-2,x:yr(n[1],t[1])})}else 1===t[0]&&1===t[1]||e.push(Ir(e)+"scale("+t+")")}function $r(n,t){var e=[],r=[];return n=ao.transform(n),t=ao.transform(t),Yr(n.translate,t.translate,e,r),Zr(n.rotate,t.rotate,e,r),Vr(n.skew,t.skew,e,r),Xr(n.scale,t.scale,e,r),n=t=null,function(n){for(var t,i=-1,u=r.length;++i<u;)e[(t=r[i]).i]=t.x(n);return e.join("")}}function Br(n,t){return t=(t-=n=+n)||1/t,function(e){return(e-n)/t}}function Wr(n,t){return t=(t-=n=+n)||1/t,function(e){return Math.max(0,Math.min(1,(e-n)/t))}}function Jr(n){for(var t=n.source,e=n.target,r=Kr(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var u=i.length;e!==r;)i.splice(u,0,e),e=e.parent;return i}function Gr(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Kr(n,t){if(n===t)return n;for(var e=Gr(n),r=Gr(t),i=e.pop(),u=r.pop(),o=null;i===u;)o=i,i=e.pop(),u=r.pop();return o}function Qr(n){n.fixed|=2}function ni(n){n.fixed&=-7}function ti(n){n.fixed|=4,n.px=n.x,n.py=n.y}function ei(n){n.fixed&=-5}function ri(n,t,e){var r=0,i=0;if(n.charge=0,!n.leaf)for(var u,o=n.nodes,a=o.length,l=-1;++l<a;)u=o[l],null!=u&&(ri(u,t,e),n.charge+=u.charge,r+=u.charge*u.cx,i+=u.charge*u.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var c=t*e[n.point.index];n.charge+=n.pointCharge=c,r+=c*n.point.x,i+=c*n.point.y}n.cx=r/n.charge,n.cy=i/n.charge}function ii(n,t){return ao.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=fi,n}function ui(n,t){for(var e=[n];null!=(n=e.pop());)if(t(n),(i=n.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function oi(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(u=n.children)&&(i=u.length))for(var i,u,o=-1;++o<i;)e.push(u[o]);for(;null!=(n=r.pop());)t(n)}function ai(n){return n.children}function li(n){return n.value}function ci(n,t){return t.value-n.value}function fi(n){return ao.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function si(n){return n.x}function hi(n){return n.y}function pi(n,t,e){n.y0=t,n.y=e}function gi(n){return ao.range(n.length)}function vi(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function di(n){for(var t,e=1,r=0,i=n[0][1],u=n.length;u>e;++e)(t=n[e][1])>i&&(r=e,i=t);return r}function yi(n){return n.reduce(mi,0)}function mi(n,t){return n+t[1]}function Mi(n,t){return xi(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function xi(n,t){for(var e=-1,r=+n[0],i=(n[1]-r)/t,u=[];++e<=t;)u[e]=i*e+r;return u}function bi(n){return[ao.min(n),ao.max(n)]}function _i(n,t){return n.value-t.value}function wi(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Si(n,t){n._pack_next=t,t._pack_prev=n}function ki(n,t){var e=t.x-n.x,r=t.y-n.y,i=n.r+t.r;return.999*i*i>e*e+r*r}function Ni(n){function t(n){f=Math.min(n.x-n.r,f),s=Math.max(n.x+n.r,s),h=Math.min(n.y-n.r,h),p=Math.max(n.y+n.r,p)}if((e=n.children)&&(c=e.length)){var e,r,i,u,o,a,l,c,f=1/0,s=-(1/0),h=1/0,p=-(1/0);if(e.forEach(Ei),r=e[0],r.x=-r.r,r.y=0,t(r),c>1&&(i=e[1],i.x=i.r,i.y=0,t(i),c>2))for(u=e[2],zi(r,i,u),t(u),wi(r,u),r._pack_prev=u,wi(u,i),i=r._pack_next,o=3;c>o;o++){zi(r,i,u=e[o]);var g=0,v=1,d=1;for(a=i._pack_next;a!==i;a=a._pack_next,v++)if(ki(a,u)){g=1;break}if(1==g)for(l=r._pack_prev;l!==a._pack_prev&&!ki(l,u);l=l._pack_prev,d++);g?(d>v||v==d&&i.r<r.r?Si(r,i=a):Si(r=l,i),o--):(wi(r,u),i=u,t(u))}var y=(f+s)/2,m=(h+p)/2,M=0;for(o=0;c>o;o++)u=e[o],u.x-=y,u.y-=m,M=Math.max(M,u.r+Math.sqrt(u.x*u.x+u.y*u.y));n.r=M,e.forEach(Ai)}}function Ei(n){n._pack_next=n._pack_prev=n}function Ai(n){delete n._pack_next,delete n._pack_prev}function Ci(n,t,e,r){var i=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,i)for(var u=-1,o=i.length;++u<o;)Ci(i[u],t,e,r)}function zi(n,t,e){var r=n.r+e.r,i=t.x-n.x,u=t.y-n.y;if(r&&(i||u)){var o=t.r+e.r,a=i*i+u*u;o*=o,r*=r;var l=.5+(r-o)/(2*a),c=Math.sqrt(Math.max(0,2*o*(r+a)-(r-=a)*r-o*o))/(2*a);e.x=n.x+l*i+c*u,e.y=n.y+l*u-c*i}else e.x=n.x+r,e.y=n.y}function Li(n,t){return n.parent==t.parent?1:2}function qi(n){var t=n.children;return t.length?t[0]:n.t}function Ti(n){var t,e=n.children;return(t=e.length)?e[t-1]:n.t}function Ri(n,t,e){var r=e/(t.i-n.i);t.c-=r,t.s+=e,n.c+=r,t.z+=e,t.m+=e}function Di(n){for(var t,e=0,r=0,i=n.children,u=i.length;--u>=0;)t=i[u],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Pi(n,t,e){return n.a.parent===t.parent?n.a:e}function Ui(n){return 1+ao.max(n,function(n){return n.y})}function ji(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Fi(n){var t=n.children;return t&&t.length?Fi(t[0]):n}function Hi(n){var t,e=n.children;return e&&(t=e.length)?Hi(e[t-1]):n}function Oi(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Ii(n,t){var e=n.x+t[3],r=n.y+t[0],i=n.dx-t[1]-t[3],u=n.dy-t[0]-t[2];return 0>i&&(e+=i/2,i=0),0>u&&(r+=u/2,u=0),{x:e,y:r,dx:i,dy:u}}function Yi(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Zi(n){return n.rangeExtent?n.rangeExtent():Yi(n.range())}function Vi(n,t,e,r){var i=e(n[0],n[1]),u=r(t[0],t[1]);return function(n){return u(i(n))}}function Xi(n,t){var e,r=0,i=n.length-1,u=n[r],o=n[i];return u>o&&(e=r,r=i,i=e,e=u,u=o,o=e),n[r]=t.floor(u),n[i]=t.ceil(o),n}function $i(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:Sl}function Bi(n,t,e,r){var i=[],u=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++o<=a;)i.push(e(n[o-1],n[o])),u.push(r(t[o-1],t[o]));return function(t){var e=ao.bisect(n,t,1,a)-1;return u[e](i[e](t))}}function Wi(n,t,e,r){function i(){var i=Math.min(n.length,t.length)>2?Bi:Vi,l=r?Wr:Br;return o=i(n,t,l,e),a=i(t,n,l,Mr),u}function u(n){return o(n)}var o,a;return u.invert=function(n){return a(n)},u.domain=function(t){return arguments.length?(n=t.map(Number),i()):n},u.range=function(n){return arguments.length?(t=n,i()):t},u.rangeRound=function(n){return u.range(n).interpolate(Ur)},u.clamp=function(n){return arguments.length?(r=n,i()):r},u.interpolate=function(n){return arguments.length?(e=n,i()):e},u.ticks=function(t){return Qi(n,t)},u.tickFormat=function(t,e){return nu(n,t,e)},u.nice=function(t){return Gi(n,t),i()},u.copy=function(){return Wi(n,t,e,r)},i()}function Ji(n,t){return ao.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Gi(n,t){return Xi(n,$i(Ki(n,t)[2])),Xi(n,$i(Ki(n,t)[2])),n}function Ki(n,t){null==t&&(t=10);var e=Yi(n),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),u=t/r*i;return.15>=u?i*=10:.35>=u?i*=5:.75>=u&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Qi(n,t){return ao.range.apply(ao,Ki(n,t))}function nu(n,t,e){var r=Ki(n,t);if(e){var i=ha.exec(e);if(i.shift(),"s"===i[8]){var u=ao.formatPrefix(Math.max(xo(r[0]),xo(r[1])));return i[7]||(i[7]="."+tu(u.scale(r[2]))),i[8]="f",e=ao.format(i.join("")),function(n){return e(u.scale(n))+u.symbol}}i[7]||(i[7]="."+eu(i[8],r)),e=i.join("")}else e=",."+tu(r[2])+"f";return ao.format(e)}function tu(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function eu(n,t){var e=tu(t[2]);return n in kl?Math.abs(e-tu(Math.max(xo(t[0]),xo(t[1]))))+ +("e"!==n):e-2*("%"===n)}function ru(n,t,e,r){function i(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function u(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(i(t))}return o.invert=function(t){return u(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(i)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(i)),o):t},o.nice=function(){var t=Xi(r.map(i),e?Math:El);return n.domain(t),r=t.map(u),o},o.ticks=function(){var n=Yi(r),o=[],a=n[0],l=n[1],c=Math.floor(i(a)),f=Math.ceil(i(l)),s=t%1?2:t;if(isFinite(f-c)){if(e){for(;f>c;c++)for(var h=1;s>h;h++)o.push(u(c)*h);o.push(u(c))}else for(o.push(u(c));c++<f;)for(var h=s-1;h>0;h--)o.push(u(c)*h);for(c=0;o[c]<a;c++);for(f=o.length;o[f-1]>l;f--);o=o.slice(c,f)}return o},o.tickFormat=function(n,e){if(!arguments.length)return Nl;arguments.length<2?e=Nl:"function"!=typeof e&&(e=ao.format(e));var r=Math.max(1,t*n/o.ticks().length);return function(n){var o=n/u(Math.round(i(n)));return t-.5>o*t&&(o*=t),r>=o?e(n):""}},o.copy=function(){return ru(n.copy(),t,e,r)},Ji(o,n)}function iu(n,t,e){function r(t){return n(i(t))}var i=uu(t),u=uu(1/t);return r.invert=function(t){return u(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(i)),r):e},r.ticks=function(n){return Qi(e,n)},r.tickFormat=function(n,t){return nu(e,n,t)},r.nice=function(n){return r.domain(Gi(e,n))},r.exponent=function(o){return arguments.length?(i=uu(t=o),u=uu(1/t),n.domain(e.map(i)),r):t},r.copy=function(){return iu(n.copy(),t,e)},Ji(r,n)}function uu(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function ou(n,t){function e(e){return u[((i.get(e)||("range"===t.t?i.set(e,n.push(e)):NaN))-1)%u.length]}function r(t,e){return ao.range(n.length).map(function(n){return t+e*n})}var i,u,o;return e.domain=function(r){if(!arguments.length)return n;n=[],i=new c;for(var u,o=-1,a=r.length;++o<a;)i.has(u=r[o])||i.set(u,n.push(u));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(u=n,o=0,t={t:"range",a:arguments},e):u},e.rangePoints=function(i,a){arguments.length<2&&(a=0);var l=i[0],c=i[1],f=n.length<2?(l=(l+c)/2,0):(c-l)/(n.length-1+a);return u=r(l+f*a/2,f),o=0,t={t:"rangePoints",a:arguments},e},e.rangeRoundPoints=function(i,a){arguments.length<2&&(a=0);var l=i[0],c=i[1],f=n.length<2?(l=c=Math.round((l+c)/2),0):(c-l)/(n.length-1+a)|0;return u=r(l+Math.round(f*a/2+(c-l-(n.length-1+a)*f)/2),f),o=0,t={t:"rangeRoundPoints",a:arguments},e},e.rangeBands=function(i,a,l){arguments.length<2&&(a=0),arguments.length<3&&(l=a);var c=i[1]<i[0],f=i[c-0],s=i[1-c],h=(s-f)/(n.length-a+2*l);return u=r(f+h*l,h),c&&u.reverse(),o=h*(1-a),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(i,a,l){arguments.length<2&&(a=0),arguments.length<3&&(l=a);var c=i[1]<i[0],f=i[c-0],s=i[1-c],h=Math.floor((s-f)/(n.length-a+2*l));return u=r(f+Math.round((s-f-(n.length-a)*h)/2),h),c&&u.reverse(),o=Math.round(h*(1-a)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return o},e.rangeExtent=function(){return Yi(t.a[0])},e.copy=function(){return ou(n,t)},e.domain(n)}function au(n,t){function u(){var e=0,r=t.length;for(a=[];++e<r;)a[e-1]=ao.quantile(n,e/r);return o}function o(n){return isNaN(n=+n)?void 0:t[ao.bisect(a,n)]}var a;return o.domain=function(t){return arguments.length?(n=t.map(r).filter(i).sort(e),u()):n},o.range=function(n){return arguments.length?(t=n,u()):t},o.quantiles=function(){return a},o.invertExtent=function(e){return e=t.indexOf(e),0>e?[NaN,NaN]:[e>0?a[e-1]:n[0],e<a.length?a[e]:n[n.length-1]]},o.copy=function(){return au(n,t)},u()}function lu(n,t,e){function r(t){return e[Math.max(0,Math.min(o,Math.floor(u*(t-n))))]}function i(){return u=e.length/(t-n),o=e.length-1,r}var u,o;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],i()):[n,t]},r.range=function(n){return arguments.length?(e=n,i()):e},r.invertExtent=function(t){return t=e.indexOf(t),t=0>t?NaN:t/u+n,[t,t+1/u]},r.copy=function(){return lu(n,t,e)},i()}function cu(n,t){function e(e){return e>=e?t[ao.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return cu(n,t)},e}function fu(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Qi(n,t)},t.tickFormat=function(t,e){return nu(n,t,e)},t.copy=function(){return fu(n)},t}function su(){return 0}function hu(n){return n.innerRadius}function pu(n){return n.outerRadius}function gu(n){return n.startAngle}function vu(n){return n.endAngle}function du(n){return n&&n.padAngle}function yu(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function mu(n,t,e,r,i){var u=n[0]-t[0],o=n[1]-t[1],a=(i?r:-r)/Math.sqrt(u*u+o*o),l=a*o,c=-a*u,f=n[0]+l,s=n[1]+c,h=t[0]+l,p=t[1]+c,g=(f+h)/2,v=(s+p)/2,d=h-f,y=p-s,m=d*d+y*y,M=e-r,x=f*p-h*s,b=(0>y?-1:1)*Math.sqrt(Math.max(0,M*M*m-x*x)),_=(x*y-d*b)/m,w=(-x*d-y*b)/m,S=(x*y+d*b)/m,k=(-x*d+y*b)/m,N=_-g,E=w-v,A=S-g,C=k-v;return N*N+E*E>A*A+C*C&&(_=S,w=k),[[_-l,w-c],[_*e/M,w*e/M]]}function Mu(n){function t(t){function o(){c.push("M",u(n(f),a))}for(var l,c=[],f=[],s=-1,h=t.length,p=En(e),g=En(r);++s<h;)i.call(this,l=t[s],s)?f.push([+p.call(this,l,s),+g.call(this,l,s)]):f.length&&(o(),f=[]);return f.length&&o(),c.length?c.join(""):null}var e=Ce,r=ze,i=zt,u=xu,o=u.key,a=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(i=n,t):i},t.interpolate=function(n){return arguments.length?(o="function"==typeof n?u=n:(u=Tl.get(n)||xu).key,t):o},t.tension=function(n){return arguments.length?(a=n,t):a},t}function xu(n){return n.length>1?n.join("L"):n+"Z"}function bu(n){return n.join("L")+"Z"}function _u(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t<e;)i.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&i.push("H",r[0]),i.join("")}function wu(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t<e;)i.push("V",(r=n[t])[1],"H",r[0]);return i.join("")}function Su(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t<e;)i.push("H",(r=n[t])[0],"V",r[1]);return i.join("")}function ku(n,t){return n.length<4?xu(n):n[1]+Au(n.slice(1,-1),Cu(n,t))}function Nu(n,t){return n.length<3?bu(n):n[0]+Au((n.push(n[0]),n),Cu([n[n.length-2]].concat(n,[n[1]]),t))}function Eu(n,t){return n.length<3?xu(n):n[0]+Au(n,Cu(n,t))}function Au(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return xu(n);var e=n.length!=t.length,r="",i=n[0],u=n[1],o=t[0],a=o,l=1;if(e&&(r+="Q"+(u[0]-2*o[0]/3)+","+(u[1]-2*o[1]/3)+","+u[0]+","+u[1],i=n[1],l=2),t.length>1){a=t[1],u=n[l],l++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(u[0]-a[0])+","+(u[1]-a[1])+","+u[0]+","+u[1];for(var c=2;c<t.length;c++,l++)u=n[l],a=t[c],r+="S"+(u[0]-a[0])+","+(u[1]-a[1])+","+u[0]+","+u[1]}if(e){var f=n[l];r+="Q"+(u[0]+2*a[0]/3)+","+(u[1]+2*a[1]/3)+","+f[0]+","+f[1]}return r}function Cu(n,t){for(var e,r=[],i=(1-t)/2,u=n[0],o=n[1],a=1,l=n.length;++a<l;)e=u,u=o,o=n[a],r.push([i*(o[0]-e[0]),i*(o[1]-e[1])]);return r}function zu(n){if(n.length<3)return xu(n);var t=1,e=n.length,r=n[0],i=r[0],u=r[1],o=[i,i,i,(r=n[1])[0]],a=[u,u,u,r[1]],l=[i,",",u,"L",Ru(Pl,o),",",Ru(Pl,a)];for(n.push(n[e-1]);++t<=e;)r=n[t],o.shift(),o.push(r[0]),a.shift(),a.push(r[1]),Du(l,o,a);return n.pop(),l.push("L",r),l.join("")}function Lu(n){if(n.length<4)return xu(n);for(var t,e=[],r=-1,i=n.length,u=[0],o=[0];++r<3;)t=n[r],u.push(t[0]),o.push(t[1]);for(e.push(Ru(Pl,u)+","+Ru(Pl,o)),--r;++r<i;)t=n[r],u.shift(),u.push(t[0]),o.shift(),o.push(t[1]),Du(e,u,o);return e.join("")}function qu(n){for(var t,e,r=-1,i=n.length,u=i+4,o=[],a=[];++r<4;)e=n[r%i],o.push(e[0]),a.push(e[1]);for(t=[Ru(Pl,o),",",Ru(Pl,a)],--r;++r<u;)e=n[r%i],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Du(t,o,a);return t.join("")}function Tu(n,t){var e=n.length-1;if(e)for(var r,i,u=n[0][0],o=n[0][1],a=n[e][0]-u,l=n[e][1]-o,c=-1;++c<=e;)r=n[c],i=c/e,r[0]=t*r[0]+(1-t)*(u+i*a),r[1]=t*r[1]+(1-t)*(o+i*l);return zu(n)}function Ru(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function Du(n,t,e){n.push("C",Ru(Rl,t),",",Ru(Rl,e),",",Ru(Dl,t),",",Ru(Dl,e),",",Ru(Pl,t),",",Ru(Pl,e))}function Pu(n,t){return(t[1]-n[1])/(t[0]-n[0])}function Uu(n){for(var t=0,e=n.length-1,r=[],i=n[0],u=n[1],o=r[0]=Pu(i,u);++t<e;)r[t]=(o+(o=Pu(i=u,u=n[t+1])))/2;return r[t]=o,r}function ju(n){for(var t,e,r,i,u=[],o=Uu(n),a=-1,l=n.length-1;++a<l;)t=Pu(n[a],n[a+1]),xo(t)<Uo?o[a]=o[a+1]=0:(e=o[a]/t,r=o[a+1]/t,i=e*e+r*r,i>9&&(i=3*t/Math.sqrt(i),o[a]=i*e,o[a+1]=i*r));for(a=-1;++a<=l;)i=(n[Math.min(l,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),u.push([i||0,o[a]*i||0]);return u}function Fu(n){return n.length<3?xu(n):n[0]+Au(n,ju(n))}function Hu(n){for(var t,e,r,i=-1,u=n.length;++i<u;)t=n[i],e=t[0],r=t[1]-Io,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Ou(n){function t(t){function l(){v.push("M",a(n(y),s),f,c(n(d.reverse()),s),"Z")}for(var h,p,g,v=[],d=[],y=[],m=-1,M=t.length,x=En(e),b=En(i),_=e===r?function(){
-return p}:En(r),w=i===u?function(){return g}:En(u);++m<M;)o.call(this,h=t[m],m)?(d.push([p=+x.call(this,h,m),g=+b.call(this,h,m)]),y.push([+_.call(this,h,m),+w.call(this,h,m)])):d.length&&(l(),d=[],y=[]);return d.length&&l(),v.length?v.join(""):null}var e=Ce,r=Ce,i=0,u=ze,o=zt,a=xu,l=a.key,c=a,f="L",s=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(i=u=n,t):u},t.y0=function(n){return arguments.length?(i=n,t):i},t.y1=function(n){return arguments.length?(u=n,t):u},t.defined=function(n){return arguments.length?(o=n,t):o},t.interpolate=function(n){return arguments.length?(l="function"==typeof n?a=n:(a=Tl.get(n)||xu).key,c=a.reverse||a,f=a.closed?"M":"L",t):l},t.tension=function(n){return arguments.length?(s=n,t):s},t}function Iu(n){return n.radius}function Yu(n){return[n.x,n.y]}function Zu(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]-Io;return[e*Math.cos(r),e*Math.sin(r)]}}function Vu(){return 64}function Xu(){return"circle"}function $u(n){var t=Math.sqrt(n/Fo);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Bu(n){return function(){var t,e,r;(t=this[n])&&(r=t[e=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[e]:delete this[n],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Wu(n,t,e){return ko(n,Yl),n.namespace=t,n.id=e,n}function Ju(n,t,e,r){var i=n.id,u=n.namespace;return Y(n,"function"==typeof e?function(n,o,a){n[u][i].tween.set(t,r(e.call(n,n.__data__,o,a)))}:(e=r(e),function(n){n[u][i].tween.set(t,e)}))}function Gu(n){return null==n&&(n=""),function(){this.textContent=n}}function Ku(n){return null==n?"__transition__":"__transition_"+n+"__"}function Qu(n,t,e,r,i){function u(n){var t=v.delay;return f.t=t+l,n>=t?o(n-t):void(f.c=o)}function o(e){var i=g.active,u=g[i];u&&(u.timer.c=null,u.timer.t=NaN,--g.count,delete g[i],u.event&&u.event.interrupt.call(n,n.__data__,u.index));for(var o in g)if(r>+o){var c=g[o];c.timer.c=null,c.timer.t=NaN,--g.count,delete g[o]}f.c=a,qn(function(){return f.c&&a(e||1)&&(f.c=null,f.t=NaN),1},0,l),g.active=r,v.event&&v.event.start.call(n,n.__data__,t),p=[],v.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&p.push(r)}),h=v.ease,s=v.duration}function a(i){for(var u=i/s,o=h(u),a=p.length;a>0;)p[--a].call(n,o);return u>=1?(v.event&&v.event.end.call(n,n.__data__,t),--g.count?delete g[r]:delete n[e],1):void 0}var l,f,s,h,p,g=n[e]||(n[e]={active:0,count:0}),v=g[r];v||(l=i.time,f=qn(u,0,l),v=g[r]={tween:new c,time:l,timer:f,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++g.count)}function no(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function to(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function eo(n){return n.toISOString()}function ro(n,t,e){function r(t){return n(t)}function i(n,e){var r=n[1]-n[0],i=r/e,u=ao.bisect(Kl,i);return u==Kl.length?[t.year,Ki(n.map(function(n){return n/31536e6}),e)[2]]:u?t[i/Kl[u-1]<Kl[u]/i?u-1:u]:[tc,Ki(n,e)[2]]}return r.invert=function(t){return io(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(io)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,io(+e+1),t).length}var u=r.domain(),o=Yi(u),a=null==n?i(o,10):"number"==typeof n&&i(o,n);return a&&(n=a[0],t=a[1]),r.domain(Xi(u,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=io(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=io(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Yi(r.domain()),u=null==n?i(e,10):"number"==typeof n?i(e,n):!n.range&&[{range:n},t];return u&&(n=u[0],t=u[1]),n.range(e[0],io(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return ro(n.copy(),t,e)},Ji(r,n)}function io(n){return new Date(n)}function uo(n){return JSON.parse(n.responseText)}function oo(n){var t=fo.createRange();return t.selectNode(fo.body),t.createContextualFragment(n.responseText)}var ao={version:"3.5.17"},lo=[].slice,co=function(n){return lo.call(n)},fo=this.document;if(fo)try{co(fo.documentElement.childNodes)[0].nodeType}catch(so){co=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),fo)try{fo.createElement("DIV").style.setProperty("opacity",0,"")}catch(ho){var po=this.Element.prototype,go=po.setAttribute,vo=po.setAttributeNS,yo=this.CSSStyleDeclaration.prototype,mo=yo.setProperty;po.setAttribute=function(n,t){go.call(this,n,t+"")},po.setAttributeNS=function(n,t,e){vo.call(this,n,t,e+"")},yo.setProperty=function(n,t,e){mo.call(this,n,t+"",e)}}ao.ascending=e,ao.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},ao.min=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i<u;)if(null!=(r=n[i])&&r>=r){e=r;break}for(;++i<u;)null!=(r=n[i])&&e>r&&(e=r)}else{for(;++i<u;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=r;break}for(;++i<u;)null!=(r=t.call(n,n[i],i))&&e>r&&(e=r)}return e},ao.max=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i<u;)if(null!=(r=n[i])&&r>=r){e=r;break}for(;++i<u;)null!=(r=n[i])&&r>e&&(e=r)}else{for(;++i<u;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=r;break}for(;++i<u;)null!=(r=t.call(n,n[i],i))&&r>e&&(e=r)}return e},ao.extent=function(n,t){var e,r,i,u=-1,o=n.length;if(1===arguments.length){for(;++u<o;)if(null!=(r=n[u])&&r>=r){e=i=r;break}for(;++u<o;)null!=(r=n[u])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++u<o;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=i=r;break}for(;++u<o;)null!=(r=t.call(n,n[u],u))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},ao.sum=function(n,t){var e,r=0,u=n.length,o=-1;if(1===arguments.length)for(;++o<u;)i(e=+n[o])&&(r+=e);else for(;++o<u;)i(e=+t.call(n,n[o],o))&&(r+=e);return r},ao.mean=function(n,t){var e,u=0,o=n.length,a=-1,l=o;if(1===arguments.length)for(;++a<o;)i(e=r(n[a]))?u+=e:--l;else for(;++a<o;)i(e=r(t.call(n,n[a],a)))?u+=e:--l;return l?u/l:void 0},ao.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),i=+n[r-1],u=e-r;return u?i+u*(n[r]-i):i},ao.median=function(n,t){var u,o=[],a=n.length,l=-1;if(1===arguments.length)for(;++l<a;)i(u=r(n[l]))&&o.push(u);else for(;++l<a;)i(u=r(t.call(n,n[l],l)))&&o.push(u);return o.length?ao.quantile(o.sort(e),.5):void 0},ao.variance=function(n,t){var e,u,o=n.length,a=0,l=0,c=-1,f=0;if(1===arguments.length)for(;++c<o;)i(e=r(n[c]))&&(u=e-a,a+=u/++f,l+=u*(e-a));else for(;++c<o;)i(e=r(t.call(n,n[c],c)))&&(u=e-a,a+=u/++f,l+=u*(e-a));return f>1?l/(f-1):void 0},ao.deviation=function(){var n=ao.variance.apply(this,arguments);return n?Math.sqrt(n):n};var Mo=u(e);ao.bisectLeft=Mo.left,ao.bisect=ao.bisectRight=Mo.right,ao.bisector=function(n){return u(1===n.length?function(t,r){return e(n(t),r)}:n)},ao.shuffle=function(n,t,e){(u=arguments.length)<3&&(e=n.length,2>u&&(t=0));for(var r,i,u=e-t;u;)i=Math.random()*u--|0,r=n[u+t],n[u+t]=n[i+t],n[i+t]=r;return n},ao.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},ao.pairs=function(n){for(var t,e=0,r=n.length-1,i=n[0],u=new Array(0>r?0:r);r>e;)u[e]=[t=i,i=n[++e]];return u},ao.transpose=function(n){if(!(i=n.length))return[];for(var t=-1,e=ao.min(n,o),r=new Array(e);++t<e;)for(var i,u=-1,a=r[t]=new Array(i);++u<i;)a[u]=n[u][t];return r},ao.zip=function(){return ao.transpose(arguments)},ao.keys=function(n){var t=[];for(var e in n)t.push(e);return t},ao.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},ao.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},ao.merge=function(n){for(var t,e,r,i=n.length,u=-1,o=0;++u<i;)o+=n[u].length;for(e=new Array(o);--i>=0;)for(r=n[i],t=r.length;--t>=0;)e[--o]=r[t];return e};var xo=Math.abs;ao.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e===1/0)throw new Error("infinite range");var r,i=[],u=a(xo(e)),o=-1;if(n*=u,t*=u,e*=u,0>e)for(;(r=n+e*++o)>t;)i.push(r/u);else for(;(r=n+e*++o)<t;)i.push(r/u);return i},ao.map=function(n,t){var e=new c;if(n instanceof c)n.forEach(function(n,t){e.set(n,t)});else if(Array.isArray(n)){var r,i=-1,u=n.length;if(1===arguments.length)for(;++i<u;)e.set(i,n[i]);else for(;++i<u;)e.set(t.call(n,r=n[i],i),r)}else for(var o in n)e.set(o,n[o]);return e};var bo="__proto__",_o="\x00";l(c,{has:h,get:function(n){return this._[f(n)]},set:function(n,t){return this._[f(n)]=t},remove:p,keys:g,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:s(t),value:this._[t]});return n},size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,s(t),this._[t])}}),ao.nest=function(){function n(t,o,a){if(a>=u.length)return r?r.call(i,o):e?o.sort(e):o;for(var l,f,s,h,p=-1,g=o.length,v=u[a++],d=new c;++p<g;)(h=d.get(l=v(f=o[p])))?h.push(f):d.set(l,[f]);return t?(f=t(),s=function(e,r){f.set(e,n(t,r,a))}):(f={},s=function(e,r){f[e]=n(t,r,a)}),d.forEach(s),f}function t(n,e){if(e>=u.length)return n;var r=[],i=o[e++];return n.forEach(function(n,i){r.push({key:n,values:t(i,e)})}),i?r.sort(function(n,t){return i(n.key,t.key)}):r}var e,r,i={},u=[],o=[];return i.map=function(t,e){return n(e,t,0)},i.entries=function(e){return t(n(ao.map,e,0),0)},i.key=function(n){return u.push(n),i},i.sortKeys=function(n){return o[u.length-1]=n,i},i.sortValues=function(n){return e=n,i},i.rollup=function(n){return r=n,i},i},ao.set=function(n){var t=new y;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},l(y,{has:h,add:function(n){return this._[f(n+="")]=!0,n},remove:p,values:g,size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,s(t))}}),ao.behavior={},ao.rebind=function(n,t){for(var e,r=1,i=arguments.length;++r<i;)n[e=arguments[r]]=M(n,t,t[e]);return n};var wo=["webkit","ms","moz","Moz","o","O"];ao.dispatch=function(){for(var n=new _,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=w(n);return n},_.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},ao.event=null,ao.requote=function(n){return n.replace(So,"\\$&")};var So=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ko={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},No=function(n,t){return t.querySelector(n)},Eo=function(n,t){return t.querySelectorAll(n)},Ao=function(n,t){var e=n.matches||n[x(n,"matchesSelector")];return(Ao=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(No=function(n,t){return Sizzle(n,t)[0]||null},Eo=Sizzle,Ao=Sizzle.matchesSelector),ao.selection=function(){return ao.select(fo.documentElement)};var Co=ao.selection.prototype=[];Co.select=function(n){var t,e,r,i,u=[];n=A(n);for(var o=-1,a=this.length;++o<a;){u.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var l=-1,c=r.length;++l<c;)(i=r[l])?(t.push(e=n.call(i,i.__data__,l,o)),e&&"__data__"in i&&(e.__data__=i.__data__)):t.push(null)}return E(u)},Co.selectAll=function(n){var t,e,r=[];n=C(n);for(var i=-1,u=this.length;++i<u;)for(var o=this[i],a=-1,l=o.length;++a<l;)(e=o[a])&&(r.push(t=co(n.call(e,e.__data__,a,i))),t.parentNode=e);return E(r)};var zo="http://www.w3.org/1999/xhtml",Lo={svg:"http://www.w3.org/2000/svg",xhtml:zo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ao.ns={prefix:Lo,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&"xmlns"!==(e=n.slice(0,t))&&(n=n.slice(t+1)),Lo.hasOwnProperty(e)?{space:Lo[e],local:n}:n}},Co.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=ao.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},Co.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,i=-1;if(t=e.classList){for(;++i<r;)if(!t.contains(n[i]))return!1}else for(t=e.getAttribute("class");++i<r;)if(!q(n[i]).test(t))return!1;return!0}for(t in n)this.each(R(t,n[t]));return this}return this.each(R(n,t))},Co.style=function(n,e,r){var i=arguments.length;if(3>i){if("string"!=typeof n){2>i&&(e="");for(r in n)this.each(P(r,n[r],e));return this}if(2>i){var u=this.node();return t(u).getComputedStyle(u,null).getPropertyValue(n)}r=""}return this.each(P(n,e,r))},Co.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(U(t,n[t]));return this}return this.each(U(n,t))},Co.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},Co.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},Co.append=function(n){return n=j(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},Co.insert=function(n,t){return n=j(n),t=A(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},Co.remove=function(){return this.each(F)},Co.data=function(n,t){function e(n,e){var r,i,u,o=n.length,s=e.length,h=Math.min(o,s),p=new Array(s),g=new Array(s),v=new Array(o);if(t){var d,y=new c,m=new Array(o);for(r=-1;++r<o;)(i=n[r])&&(y.has(d=t.call(i,i.__data__,r))?v[r]=i:y.set(d,i),m[r]=d);for(r=-1;++r<s;)(i=y.get(d=t.call(e,u=e[r],r)))?i!==!0&&(p[r]=i,i.__data__=u):g[r]=H(u),y.set(d,!0);for(r=-1;++r<o;)r in m&&y.get(m[r])!==!0&&(v[r]=n[r])}else{for(r=-1;++r<h;)i=n[r],u=e[r],i?(i.__data__=u,p[r]=i):g[r]=H(u);for(;s>r;++r)g[r]=H(e[r]);for(;o>r;++r)v[r]=n[r]}g.update=p,g.parentNode=p.parentNode=v.parentNode=n.parentNode,a.push(g),l.push(p),f.push(v)}var r,i,u=-1,o=this.length;if(!arguments.length){for(n=new Array(o=(r=this[0]).length);++u<o;)(i=r[u])&&(n[u]=i.__data__);return n}var a=Z([]),l=E([]),f=E([]);if("function"==typeof n)for(;++u<o;)e(r=this[u],n.call(r,r.parentNode.__data__,u));else for(;++u<o;)e(r=this[u],n);return l.enter=function(){return a},l.exit=function(){return f},l},Co.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},Co.filter=function(n){var t,e,r,i=[];"function"!=typeof n&&(n=O(n));for(var u=0,o=this.length;o>u;u++){i.push(t=[]),t.parentNode=(e=this[u]).parentNode;for(var a=0,l=e.length;l>a;a++)(r=e[a])&&n.call(r,r.__data__,a,u)&&t.push(r)}return E(i)},Co.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],i=r.length-1,u=r[i];--i>=0;)(e=r[i])&&(u&&u!==e.nextSibling&&u.parentNode.insertBefore(e,u),u=e);return this},Co.sort=function(n){n=I.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},Co.each=function(n){return Y(this,function(t,e,r){n.call(t,t.__data__,e,r)})},Co.call=function(n){var t=co(arguments);return n.apply(t[0]=this,t),this},Co.empty=function(){return!this.node()},Co.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,i=e.length;i>r;r++){var u=e[r];if(u)return u}return null},Co.size=function(){var n=0;return Y(this,function(){++n}),n};var qo=[];ao.selection.enter=Z,ao.selection.enter.prototype=qo,qo.append=Co.append,qo.empty=Co.empty,qo.node=Co.node,qo.call=Co.call,qo.size=Co.size,qo.select=function(n){for(var t,e,r,i,u,o=[],a=-1,l=this.length;++a<l;){r=(i=this[a]).update,o.push(t=[]),t.parentNode=i.parentNode;for(var c=-1,f=i.length;++c<f;)(u=i[c])?(t.push(r[c]=e=n.call(i.parentNode,u.__data__,c,a)),e.__data__=u.__data__):t.push(null)}return E(o)},qo.insert=function(n,t){return arguments.length<2&&(t=V(this)),Co.insert.call(this,n,t)},ao.select=function(t){var e;return"string"==typeof t?(e=[No(t,fo)],e.parentNode=fo.documentElement):(e=[t],e.parentNode=n(t)),E([e])},ao.selectAll=function(n){var t;return"string"==typeof n?(t=co(Eo(n,fo)),t.parentNode=fo.documentElement):(t=co(n),t.parentNode=null),E([t])},Co.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(X(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(X(n,t,e))};var To=ao.map({mouseenter:"mouseover",mouseleave:"mouseout"});fo&&To.forEach(function(n){"on"+n in fo&&To.remove(n)});var Ro,Do=0;ao.mouse=function(n){return J(n,k())};var Po=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ao.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=k().changedTouches),t)for(var r,i=0,u=t.length;u>i;++i)if((r=t[i]).identifier===e)return J(n,r)},ao.behavior.drag=function(){function n(){this.on("mousedown.drag",u).on("touchstart.drag",o)}function e(n,t,e,u,o){return function(){function a(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],g|=n|e,M=r,p({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:n,dy:e}))}function l(){t(h,v)&&(y.on(u+d,null).on(o+d,null),m(g),p({type:"dragend"}))}var c,f=this,s=ao.event.target.correspondingElement||ao.event.target,h=f.parentNode,p=r.of(f,arguments),g=0,v=n(),d=".drag"+(null==v?"":"-"+v),y=ao.select(e(s)).on(u+d,a).on(o+d,l),m=W(s),M=t(h,v);i?(c=i.apply(f,arguments),c=[c.x-M[0],c.y-M[1]]):c=[0,0],p({type:"dragstart"})}}var r=N(n,"drag","dragstart","dragend"),i=null,u=e(b,ao.mouse,t,"mousemove","mouseup"),o=e(G,ao.touch,m,"touchmove","touchend");return n.origin=function(t){return arguments.length?(i=t,n):i},ao.rebind(n,r,"on")},ao.touches=function(n,t){return arguments.length<2&&(t=k().touches),t?co(t).map(function(t){var e=J(n,t);return e.identifier=t.identifier,e}):[]};var Uo=1e-6,jo=Uo*Uo,Fo=Math.PI,Ho=2*Fo,Oo=Ho-Uo,Io=Fo/2,Yo=Fo/180,Zo=180/Fo,Vo=Math.SQRT2,Xo=2,$o=4;ao.interpolateZoom=function(n,t){var e,r,i=n[0],u=n[1],o=n[2],a=t[0],l=t[1],c=t[2],f=a-i,s=l-u,h=f*f+s*s;if(jo>h)r=Math.log(c/o)/Vo,e=function(n){return[i+n*f,u+n*s,o*Math.exp(Vo*n*r)]};else{var p=Math.sqrt(h),g=(c*c-o*o+$o*h)/(2*o*Xo*p),v=(c*c-o*o-$o*h)/(2*c*Xo*p),d=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-d)/Vo,e=function(n){var t=n*r,e=rn(d),a=o/(Xo*p)*(e*un(Vo*t+d)-en(d));return[i+a*f,u+a*s,o*e/rn(Vo*t+d)]}}return e.duration=1e3*r,e},ao.behavior.zoom=function(){function n(n){n.on(L,s).on(Wo+".zoom",p).on("dblclick.zoom",g).on(R,h)}function e(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function r(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function i(n){k.k=Math.max(A[0],Math.min(A[1],n))}function u(n,t){t=r(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function o(t,e,r,o){t.__chart__={x:k.x,y:k.y,k:k.k},i(Math.pow(2,o)),u(d=e,r),t=ao.select(t),C>0&&(t=t.transition().duration(C)),t.call(n.event)}function a(){b&&b.domain(x.range().map(function(n){return(n-k.x)/k.k}).map(x.invert)),w&&w.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function l(n){z++||n({type:"zoomstart"})}function c(n){a(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function f(n){--z||(n({type:"zoomend"}),d=null)}function s(){function n(){a=1,u(ao.mouse(i),h),c(o)}function r(){s.on(q,null).on(T,null),p(a),f(o)}var i=this,o=D.of(i,arguments),a=0,s=ao.select(t(i)).on(q,n).on(T,r),h=e(ao.mouse(i)),p=W(i);Il.call(i),l(o)}function h(){function n(){var n=ao.touches(g);return p=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=e(n))}),n}function t(){var t=ao.event.target;ao.select(t).on(x,r).on(b,a),_.push(t);for(var e=ao.event.changedTouches,i=0,u=e.length;u>i;++i)d[e[i].identifier]=null;var l=n(),c=Date.now();if(1===l.length){if(500>c-M){var f=l[0];o(g,f,d[f.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),S()}M=c}else if(l.length>1){var f=l[0],s=l[1],h=f[0]-s[0],p=f[1]-s[1];y=h*h+p*p}}function r(){var n,t,e,r,o=ao.touches(g);Il.call(g);for(var a=0,l=o.length;l>a;++a,r=null)if(e=o[a],r=d[e.identifier]){if(t)break;n=e,t=r}if(r){var f=(f=e[0]-n[0])*f+(f=e[1]-n[1])*f,s=y&&Math.sqrt(f/y);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],i(s*p)}M=null,u(n,t),c(v)}function a(){if(ao.event.touches.length){for(var t=ao.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var i in d)return void n()}ao.selectAll(_).on(m,null),w.on(L,s).on(R,h),N(),f(v)}var p,g=this,v=D.of(g,arguments),d={},y=0,m=".zoom-"+ao.event.changedTouches[0].identifier,x="touchmove"+m,b="touchend"+m,_=[],w=ao.select(g),N=W(g);t(),l(v),w.on(L,null).on(R,t)}function p(){var n=D.of(this,arguments);m?clearTimeout(m):(Il.call(this),v=e(d=y||ao.mouse(this)),l(n)),m=setTimeout(function(){m=null,f(n)},50),S(),i(Math.pow(2,.002*Bo())*k.k),u(d,v),c(n)}function g(){var n=ao.mouse(this),t=Math.log(k.k)/Math.LN2;o(this,n,e(n),ao.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,d,y,m,M,x,b,_,w,k={x:0,y:0,k:1},E=[960,500],A=Jo,C=250,z=0,L="mousedown.zoom",q="mousemove.zoom",T="mouseup.zoom",R="touchstart.zoom",D=N(n,"zoomstart","zoom","zoomend");return Wo||(Wo="onwheel"in fo?(Bo=function(){return-ao.event.deltaY*(ao.event.deltaMode?120:1)},"wheel"):"onmousewheel"in fo?(Bo=function(){return ao.event.wheelDelta},"mousewheel"):(Bo=function(){return-ao.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=D.of(this,arguments),t=k;Hl?ao.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},l(n)}).tween("zoom:zoom",function(){var e=E[0],r=E[1],i=d?d[0]:e/2,u=d?d[1]:r/2,o=ao.interpolateZoom([(i-k.x)/k.k,(u-k.y)/k.k,e/k.k],[(i-t.x)/t.k,(u-t.y)/t.k,e/t.k]);return function(t){var r=o(t),a=e/r[2];this.__chart__=k={x:i-r[0]*a,y:u-r[1]*a,k:a},c(n)}}).each("interrupt.zoom",function(){f(n)}).each("end.zoom",function(){f(n)}):(this.__chart__=k,l(n),c(n),f(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},a(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:null},i(+t),a(),n):k.k},n.scaleExtent=function(t){return arguments.length?(A=null==t?Jo:[+t[0],+t[1]],n):A},n.center=function(t){return arguments.length?(y=t&&[+t[0],+t[1]],n):y},n.size=function(t){return arguments.length?(E=t&&[+t[0],+t[1]],n):E},n.duration=function(t){return arguments.length?(C=+t,n):C},n.x=function(t){return arguments.length?(b=t,x=t.copy(),k={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),k={x:0,y:0,k:1},n):w},ao.rebind(n,D,"on")};var Bo,Wo,Jo=[0,1/0];ao.color=an,an.prototype.toString=function(){return this.rgb()+""},ao.hsl=ln;var Go=ln.prototype=new an;Go.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,this.l/n)},Go.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,n*this.l)},Go.rgb=function(){return cn(this.h,this.s,this.l)},ao.hcl=fn;var Ko=fn.prototype=new an;Ko.brighter=function(n){return new fn(this.h,this.c,Math.min(100,this.l+Qo*(arguments.length?n:1)))},Ko.darker=function(n){return new fn(this.h,this.c,Math.max(0,this.l-Qo*(arguments.length?n:1)))},Ko.rgb=function(){return sn(this.h,this.c,this.l).rgb()},ao.lab=hn;var Qo=18,na=.95047,ta=1,ea=1.08883,ra=hn.prototype=new an;ra.brighter=function(n){return new hn(Math.min(100,this.l+Qo*(arguments.length?n:1)),this.a,this.b)},ra.darker=function(n){return new hn(Math.max(0,this.l-Qo*(arguments.length?n:1)),this.a,this.b)},ra.rgb=function(){return pn(this.l,this.a,this.b)},ao.rgb=mn;var ia=mn.prototype=new an;ia.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,i=30;return t||e||r?(t&&i>t&&(t=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new mn(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new mn(i,i,i)},ia.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new mn(n*this.r,n*this.g,n*this.b)},ia.hsl=function(){return wn(this.r,this.g,this.b)},ia.toString=function(){return"#"+bn(this.r)+bn(this.g)+bn(this.b)};var ua=ao.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ua.forEach(function(n,t){ua.set(n,Mn(t))}),ao.functor=En,ao.xhr=An(m),ao.dsv=function(n,t){function e(n,e,u){arguments.length<3&&(u=e,e=null);var o=Cn(n,t,null==e?r:i(e),u);return o.row=function(n){return arguments.length?o.response(null==(e=n)?r:i(n)):e},o}function r(n){return e.parse(n.responseText)}function i(n){return function(t){return e.parse(t.responseText,n)}}function u(t){return t.map(o).join(n)}function o(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),l=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var i=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(i(n),e)}:i})},e.parseRows=function(n,t){function e(){if(f>=c)return o;if(i)return i=!1,u;var t=f;if(34===n.charCodeAt(t)){for(var e=t;e++<c;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}f=e+2;var r=n.charCodeAt(e+1);return 13===r?(i=!0,10===n.charCodeAt(e+2)&&++f):10===r&&(i=!0),n.slice(t+1,e).replace(/""/g,'"')}for(;c>f;){var r=n.charCodeAt(f++),a=1;if(10===r)i=!0;else if(13===r)i=!0,10===n.charCodeAt(f)&&(++f,++a);else if(r!==l)continue;return n.slice(t,f-a)}return n.slice(t)}for(var r,i,u={},o={},a=[],c=n.length,f=0,s=0;(r=e())!==o;){for(var h=[];r!==u&&r!==o;)h.push(r),r=e();t&&null==(h=t(h,s++))||a.push(h)}return a},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new y,i=[];return t.forEach(function(n){for(var t in n)r.has(t)||i.push(r.add(t))}),[i.map(o).join(n)].concat(t.map(function(t){return i.map(function(n){return o(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(u).join("\n")},e},ao.csv=ao.dsv(",","text/csv"),ao.tsv=ao.dsv(" ","text/tab-separated-values");var oa,aa,la,ca,fa=this[x(this,"requestAnimationFrame")]||function(n){setTimeout(n,17)};ao.timer=function(){qn.apply(this,arguments)},ao.timer.flush=function(){Rn(),Dn()},ao.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var sa=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Un);ao.formatPrefix=function(n,t){var e=0;return(n=+n)&&(0>n&&(n*=-1),t&&(n=ao.round(n,Pn(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),sa[8+e/3]};var ha=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,pa=ao.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=ao.round(n,Pn(n,t))).toFixed(Math.max(0,Math.min(20,Pn(n*(1+1e-15),t))))}}),ga=ao.time={},va=Date;Hn.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){da.setUTCDate.apply(this._,arguments)},setDay:function(){da.setUTCDay.apply(this._,arguments)},setFullYear:function(){da.setUTCFullYear.apply(this._,arguments)},setHours:function(){da.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){da.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){da.setUTCMinutes.apply(this._,arguments)},setMonth:function(){da.setUTCMonth.apply(this._,arguments)},setSeconds:function(){da.setUTCSeconds.apply(this._,arguments)},setTime:function(){da.setTime.apply(this._,arguments)}};var da=Date.prototype;ga.year=On(function(n){return n=ga.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ga.years=ga.year.range,ga.years.utc=ga.year.utc.range,ga.day=On(function(n){var t=new va(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ga.days=ga.day.range,ga.days.utc=ga.day.utc.range,ga.dayOfYear=function(n){var t=ga.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ga[n]=On(function(n){return(n=ga.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ga.year(n).getDay();return Math.floor((ga.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ga[n+"s"]=e.range,ga[n+"s"].utc=e.utc.range,ga[n+"OfYear"]=function(n){var e=ga.year(n).getDay();return Math.floor((ga.dayOfYear(n)+(e+t)%7)/7)}}),ga.week=ga.sunday,ga.weeks=ga.sunday.range,ga.weeks.utc=ga.sunday.utc.range,ga.weekOfYear=ga.sundayOfYear;var ya={"-":"",_:" ",0:"0"},ma=/^\s*\d+/,Ma=/^%/;ao.locale=function(n){return{numberFormat:jn(n),timeFormat:Yn(n)}};var xa=ao.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
-shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ao.format=xa.numberFormat,ao.geo={},ft.prototype={s:0,t:0,add:function(n){st(n,this.t,ba),st(ba.s,this.s,this),this.s?this.t+=ba.t:this.s=ba.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ba=new ft;ao.geo.stream=function(n,t){n&&_a.hasOwnProperty(n.type)?_a[n.type](n,t):ht(n,t)};var _a={Feature:function(n,t){ht(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;++r<i;)ht(e[r].geometry,t)}},wa={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){pt(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)pt(e[r],t,0)},Polygon:function(n,t){gt(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)gt(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,i=e.length;++r<i;)ht(e[r],t)}};ao.geo.area=function(n){return Sa=0,ao.geo.stream(n,Na),Sa};var Sa,ka=new ft,Na={sphere:function(){Sa+=4*Fo},point:b,lineStart:b,lineEnd:b,polygonStart:function(){ka.reset(),Na.lineStart=vt},polygonEnd:function(){var n=2*ka;Sa+=0>n?4*Fo+n:n,Na.lineStart=Na.lineEnd=Na.point=b}};ao.geo.bounds=function(){function n(n,t){M.push(x=[f=n,h=n]),s>t&&(s=t),t>p&&(p=t)}function t(t,e){var r=dt([t*Yo,e*Yo]);if(y){var i=mt(y,r),u=[i[1],-i[0],0],o=mt(u,i);bt(o),o=_t(o);var l=t-g,c=l>0?1:-1,v=o[0]*Zo*c,d=xo(l)>180;if(d^(v>c*g&&c*t>v)){var m=o[1]*Zo;m>p&&(p=m)}else if(v=(v+360)%360-180,d^(v>c*g&&c*t>v)){var m=-o[1]*Zo;s>m&&(s=m)}else s>e&&(s=e),e>p&&(p=e);d?g>t?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t):h>=f?(f>t&&(f=t),t>h&&(h=t)):t>g?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t)}else n(t,e);y=r,g=t}function e(){b.point=t}function r(){x[0]=f,x[1]=h,b.point=n,y=null}function i(n,e){if(y){var r=n-g;m+=xo(r)>180?r+(r>0?360:-360):r}else v=n,d=e;Na.point(n,e),t(n,e)}function u(){Na.lineStart()}function o(){i(v,d),Na.lineEnd(),xo(m)>Uo&&(f=-(h=180)),x[0]=f,x[1]=h,y=null}function a(n,t){return(t-=n)<0?t+360:t}function l(n,t){return n[0]-t[0]}function c(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var f,s,h,p,g,v,d,y,m,M,x,b={point:n,lineStart:e,lineEnd:r,polygonStart:function(){b.point=i,b.lineStart=u,b.lineEnd=o,m=0,Na.polygonStart()},polygonEnd:function(){Na.polygonEnd(),b.point=n,b.lineStart=e,b.lineEnd=r,0>ka?(f=-(h=180),s=-(p=90)):m>Uo?p=90:-Uo>m&&(s=-90),x[0]=f,x[1]=h}};return function(n){p=h=-(f=s=1/0),M=[],ao.geo.stream(n,b);var t=M.length;if(t){M.sort(l);for(var e,r=1,i=M[0],u=[i];t>r;++r)e=M[r],c(e[0],i)||c(e[1],i)?(a(i[0],e[1])>a(i[0],i[1])&&(i[1]=e[1]),a(e[0],i[1])>a(i[0],i[1])&&(i[0]=e[0])):u.push(i=e);for(var o,e,g=-(1/0),t=u.length-1,r=0,i=u[t];t>=r;i=e,++r)e=u[r],(o=a(i[1],e[0]))>g&&(g=o,f=e[0],h=i[1])}return M=x=null,f===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[f,s],[h,p]]}}(),ao.geo.centroid=function(n){Ea=Aa=Ca=za=La=qa=Ta=Ra=Da=Pa=Ua=0,ao.geo.stream(n,ja);var t=Da,e=Pa,r=Ua,i=t*t+e*e+r*r;return jo>i&&(t=qa,e=Ta,r=Ra,Uo>Aa&&(t=Ca,e=za,r=La),i=t*t+e*e+r*r,jo>i)?[NaN,NaN]:[Math.atan2(e,t)*Zo,tn(r/Math.sqrt(i))*Zo]};var Ea,Aa,Ca,za,La,qa,Ta,Ra,Da,Pa,Ua,ja={sphere:b,point:St,lineStart:Nt,lineEnd:Et,polygonStart:function(){ja.lineStart=At},polygonEnd:function(){ja.lineStart=Nt}},Fa=Rt(zt,jt,Ht,[-Fo,-Fo/2]),Ha=1e9;ao.geo.clipExtent=function(){var n,t,e,r,i,u,o={stream:function(n){return i&&(i.valid=!1),i=u(n),i.valid=!0,i},extent:function(a){return arguments.length?(u=Zt(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),i&&(i.valid=!1,i=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(ao.geo.conicEqualArea=function(){return Vt(Xt)}).raw=Xt,ao.geo.albers=function(){return ao.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ao.geo.albersUsa=function(){function n(n){var u=n[0],o=n[1];return t=null,e(u,o),t||(r(u,o),t)||i(u,o),t}var t,e,r,i,u=ao.geo.albers(),o=ao.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ao.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=u.scale(),e=u.translate(),r=(n[0]-e[0])/t,i=(n[1]-e[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?a:u).invert(n)},n.stream=function(n){var t=u.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,i){t.point(n,i),e.point(n,i),r.point(n,i)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(u.precision(t),o.precision(t),a.precision(t),n):u.precision()},n.scale=function(t){return arguments.length?(u.scale(t),o.scale(.35*t),a.scale(t),n.translate(u.translate())):u.scale()},n.translate=function(t){if(!arguments.length)return u.translate();var c=u.scale(),f=+t[0],s=+t[1];return e=u.translate(t).clipExtent([[f-.455*c,s-.238*c],[f+.455*c,s+.238*c]]).stream(l).point,r=o.translate([f-.307*c,s+.201*c]).clipExtent([[f-.425*c+Uo,s+.12*c+Uo],[f-.214*c-Uo,s+.234*c-Uo]]).stream(l).point,i=a.translate([f-.205*c,s+.212*c]).clipExtent([[f-.214*c+Uo,s+.166*c+Uo],[f-.115*c-Uo,s+.234*c-Uo]]).stream(l).point,n},n.scale(1070)};var Oa,Ia,Ya,Za,Va,Xa,$a={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Ia=0,$a.lineStart=$t},polygonEnd:function(){$a.lineStart=$a.lineEnd=$a.point=b,Oa+=xo(Ia/2)}},Ba={point:Bt,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Wa={point:Gt,lineStart:Kt,lineEnd:Qt,polygonStart:function(){Wa.lineStart=ne},polygonEnd:function(){Wa.point=Gt,Wa.lineStart=Kt,Wa.lineEnd=Qt}};ao.geo.path=function(){function n(n){return n&&("function"==typeof a&&u.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=i(u)),ao.geo.stream(n,o)),u.result()}function t(){return o=null,n}var e,r,i,u,o,a=4.5;return n.area=function(n){return Oa=0,ao.geo.stream(n,i($a)),Oa},n.centroid=function(n){return Ca=za=La=qa=Ta=Ra=Da=Pa=Ua=0,ao.geo.stream(n,i(Wa)),Ua?[Da/Ua,Pa/Ua]:Ra?[qa/Ra,Ta/Ra]:La?[Ca/La,za/La]:[NaN,NaN]},n.bounds=function(n){return Va=Xa=-(Ya=Za=1/0),ao.geo.stream(n,i(Ba)),[[Ya,Za],[Va,Xa]]},n.projection=function(n){return arguments.length?(i=(e=n)?n.stream||re(n):m,t()):e},n.context=function(n){return arguments.length?(u=null==(r=n)?new Wt:new te(n),"function"!=typeof a&&u.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(u.pointRadius(+t),+t),n):a},n.projection(ao.geo.albersUsa()).context(null)},ao.geo.transform=function(n){return{stream:function(t){var e=new ie(t);for(var r in n)e[r]=n[r];return e}}},ie.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ao.geo.projection=oe,ao.geo.projectionMutator=ae,(ao.geo.equirectangular=function(){return oe(ce)}).raw=ce.invert=ce,ao.geo.rotation=function(n){function t(t){return t=n(t[0]*Yo,t[1]*Yo),t[0]*=Zo,t[1]*=Zo,t}return n=se(n[0]%360*Yo,n[1]*Yo,n.length>2?n[2]*Yo:0),t.invert=function(t){return t=n.invert(t[0]*Yo,t[1]*Yo),t[0]*=Zo,t[1]*=Zo,t},t},fe.invert=ce,ao.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=se(-n[0]*Yo,-n[1]*Yo,0).invert,i=[];return e(null,null,1,{point:function(n,e){i.push(n=t(n,e)),n[0]*=Zo,n[1]*=Zo}}),{type:"Polygon",coordinates:[i]}}var t,e,r=[0,0],i=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=ve((t=+r)*Yo,i*Yo),n):t},n.precision=function(r){return arguments.length?(e=ve(t*Yo,(i=+r)*Yo),n):i},n.angle(90)},ao.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Yo,i=n[1]*Yo,u=t[1]*Yo,o=Math.sin(r),a=Math.cos(r),l=Math.sin(i),c=Math.cos(i),f=Math.sin(u),s=Math.cos(u);return Math.atan2(Math.sqrt((e=s*o)*e+(e=c*f-l*s*a)*e),l*f+c*s*a)},ao.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return ao.range(Math.ceil(u/d)*d,i,d).map(h).concat(ao.range(Math.ceil(c/y)*y,l,y).map(p)).concat(ao.range(Math.ceil(r/g)*g,e,g).filter(function(n){return xo(n%d)>Uo}).map(f)).concat(ao.range(Math.ceil(a/v)*v,o,v).filter(function(n){return xo(n%y)>Uo}).map(s))}var e,r,i,u,o,a,l,c,f,s,h,p,g=10,v=g,d=90,y=360,m=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(u).concat(p(l).slice(1),h(i).reverse().slice(1),p(c).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(u=+t[0][0],i=+t[1][0],c=+t[0][1],l=+t[1][1],u>i&&(t=u,u=i,i=t),c>l&&(t=c,c=l,l=t),n.precision(m)):[[u,c],[i,l]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),n.precision(m)):[[r,a],[e,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],y=+t[1],n):[d,y]},n.minorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],n):[g,v]},n.precision=function(t){return arguments.length?(m=+t,f=ye(a,o,90),s=me(r,e,m),h=ye(c,l,90),p=me(u,i,m),n):m},n.majorExtent([[-180,-90+Uo],[180,90-Uo]]).minorExtent([[-180,-80-Uo],[180,80+Uo]])},ao.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||i.apply(this,arguments)]}}var t,e,r=Me,i=xe;return n.distance=function(){return ao.geo.distance(t||r.apply(this,arguments),e||i.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(i=t,e="function"==typeof t?null:t,n):i},n.precision=function(){return arguments.length?n:0},n},ao.geo.interpolate=function(n,t){return be(n[0]*Yo,n[1]*Yo,t[0]*Yo,t[1]*Yo)},ao.geo.length=function(n){return Ja=0,ao.geo.stream(n,Ga),Ja};var Ja,Ga={sphere:b,point:b,lineStart:_e,lineEnd:b,polygonStart:b,polygonEnd:b},Ka=we(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(ao.geo.azimuthalEqualArea=function(){return oe(Ka)}).raw=Ka;var Qa=we(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},m);(ao.geo.azimuthalEquidistant=function(){return oe(Qa)}).raw=Qa,(ao.geo.conicConformal=function(){return Vt(Se)}).raw=Se,(ao.geo.conicEquidistant=function(){return Vt(ke)}).raw=ke;var nl=we(function(n){return 1/n},Math.atan);(ao.geo.gnomonic=function(){return oe(nl)}).raw=nl,Ne.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Io]},(ao.geo.mercator=function(){return Ee(Ne)}).raw=Ne;var tl=we(function(){return 1},Math.asin);(ao.geo.orthographic=function(){return oe(tl)}).raw=tl;var el=we(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(ao.geo.stereographic=function(){return oe(el)}).raw=el,Ae.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Io]},(ao.geo.transverseMercator=function(){var n=Ee(Ae),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Ae,ao.geom={},ao.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,i=En(e),u=En(r),o=n.length,a=[],l=[];for(t=0;o>t;t++)a.push([+i.call(this,n[t],t),+u.call(this,n[t],t),t]);for(a.sort(qe),t=0;o>t;t++)l.push([a[t][0],-a[t][1]]);var c=Le(a),f=Le(l),s=f[0]===c[0],h=f[f.length-1]===c[c.length-1],p=[];for(t=c.length-1;t>=0;--t)p.push(n[a[c[t]][2]]);for(t=+s;t<f.length-h;++t)p.push(n[a[f[t]][2]]);return p}var e=Ce,r=ze;return arguments.length?t(n):(t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t)},ao.geom.polygon=function(n){return ko(n,rl),n};var rl=ao.geom.polygon.prototype=[];rl.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],i=0;++t<e;)n=r,r=this[t],i+=n[1]*r[0]-n[0]*r[1];return.5*i},rl.centroid=function(n){var t,e,r=-1,i=this.length,u=0,o=0,a=this[i-1];for(arguments.length||(n=-1/(6*this.area()));++r<i;)t=a,a=this[r],e=t[0]*a[1]-a[0]*t[1],u+=(t[0]+a[0])*e,o+=(t[1]+a[1])*e;return[u*n,o*n]},rl.clip=function(n){for(var t,e,r,i,u,o,a=De(n),l=-1,c=this.length-De(this),f=this[c-1];++l<c;){for(t=n.slice(),n.length=0,i=this[l],u=t[(r=t.length-a)-1],e=-1;++e<r;)o=t[e],Te(o,f,i)?(Te(u,f,i)||n.push(Re(u,o,f,i)),n.push(o)):Te(u,f,i)&&n.push(Re(u,o,f,i)),u=o;a&&n.push(n[0]),f=i}return n};var il,ul,ol,al,ll,cl=[],fl=[];Ye.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)n=t[e].edge,n.b&&n.a||t.splice(e,1);return t.sort(Ve),t.length},tr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},er.prototype={insert:function(n,t){var e,r,i;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else this._?(n=or(this._),t.P=null,t.N=n,n.P=n.L=t,e=n):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,n=r):(n===e.R&&(ir(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ur(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,n=r):(n===e.L&&(ur(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ir(this,r))),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r,i=n.U,u=n.L,o=n.R;if(e=u?o?or(o):u:o,i?i.L===n?i.L=e:i.R=e:this._=e,u&&o?(r=e.C,e.C=n.C,e.L=u,u.U=e,e!==o?(i=e.U,e.U=n.U,n=e.R,i.L=n,e.R=o,o.U=e):(e.U=i,i=e,n=e.R)):(r=n.C,n=e),n&&(n.U=i),!r){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,ir(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ur(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,ir(this,i),n=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,ur(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ir(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,ur(this,i),n=this._;break}t.C=!0,n=i,i=i.U}while(!n.C);n&&(n.C=!1)}}},ao.geom.voronoi=function(n){function t(n){var t=new Array(n.length),r=a[0][0],i=a[0][1],u=a[1][0],o=a[1][1];return ar(e(n),a).cells.forEach(function(e,a){var l=e.edges,c=e.site,f=t[a]=l.length?l.map(function(n){var t=n.start();return[t.x,t.y]}):c.x>=r&&c.x<=u&&c.y>=i&&c.y<=o?[[r,o],[u,o],[u,i],[r,i]]:[];f.point=n[a]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(u(n,t)/Uo)*Uo,y:Math.round(o(n,t)/Uo)*Uo,i:t}})}var r=Ce,i=ze,u=r,o=i,a=sl;return n?t(n):(t.links=function(n){return ar(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return ar(e(n)).cells.forEach(function(e,r){for(var i,u,o=e.site,a=e.edges.sort(Ve),l=-1,c=a.length,f=a[c-1].edge,s=f.l===o?f.r:f.l;++l<c;)i=f,u=s,f=a[l].edge,s=f.l===o?f.r:f.l,r<u.i&&r<s.i&&cr(o,u,s)<0&&t.push([n[r],n[u.i],n[s.i]])}),t},t.x=function(n){return arguments.length?(u=En(r=n),t):r},t.y=function(n){return arguments.length?(o=En(i=n),t):i},t.clipExtent=function(n){return arguments.length?(a=null==n?sl:n,t):a===sl?null:a},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):a===sl?null:a&&a[1]},t)};var sl=[[-1e6,-1e6],[1e6,1e6]];ao.geom.delaunay=function(n){return ao.geom.voronoi().triangles(n)},ao.geom.quadtree=function(n,t,e,r,i){function u(n){function u(n,t,e,r,i,u,o,a){if(!isNaN(e)&&!isNaN(r))if(n.leaf){var l=n.x,f=n.y;if(null!=l)if(xo(l-e)+xo(f-r)<.01)c(n,t,e,r,i,u,o,a);else{var s=n.point;n.x=n.y=n.point=null,c(n,s,l,f,i,u,o,a),c(n,t,e,r,i,u,o,a)}else n.x=e,n.y=r,n.point=t}else c(n,t,e,r,i,u,o,a)}function c(n,t,e,r,i,o,a,l){var c=.5*(i+a),f=.5*(o+l),s=e>=c,h=r>=f,p=h<<1|s;n.leaf=!1,n=n.nodes[p]||(n.nodes[p]=hr()),s?i=c:a=c,h?o=f:l=f,u(n,t,e,r,i,o,a,l)}var f,s,h,p,g,v,d,y,m,M=En(a),x=En(l);if(null!=t)v=t,d=e,y=r,m=i;else if(y=m=-(v=d=1/0),s=[],h=[],g=n.length,o)for(p=0;g>p;++p)f=n[p],f.x<v&&(v=f.x),f.y<d&&(d=f.y),f.x>y&&(y=f.x),f.y>m&&(m=f.y),s.push(f.x),h.push(f.y);else for(p=0;g>p;++p){var b=+M(f=n[p],p),_=+x(f,p);v>b&&(v=b),d>_&&(d=_),b>y&&(y=b),_>m&&(m=_),s.push(b),h.push(_)}var w=y-v,S=m-d;w>S?m=d+w:y=v+S;var k=hr();if(k.add=function(n){u(k,n,+M(n,++p),+x(n,p),v,d,y,m)},k.visit=function(n){pr(n,k,v,d,y,m)},k.find=function(n){return gr(k,n[0],n[1],v,d,y,m)},p=-1,null==t){for(;++p<g;)u(k,n[p],s[p],h[p],v,d,y,m);--p}else n.forEach(k.add);return s=h=n=f=null,k}var o,a=Ce,l=ze;return(o=arguments.length)?(a=fr,l=sr,3===o&&(i=e,r=t,e=t=0),u(n)):(u.x=function(n){return arguments.length?(a=n,u):a},u.y=function(n){return arguments.length?(l=n,u):l},u.extent=function(n){return arguments.length?(null==n?t=e=r=i=null:(t=+n[0][0],e=+n[0][1],r=+n[1][0],i=+n[1][1]),u):null==t?null:[[t,e],[r,i]]},u.size=function(n){return arguments.length?(null==n?t=e=r=i=null:(t=e=0,r=+n[0],i=+n[1]),u):null==t?null:[r-t,i-e]},u)},ao.interpolateRgb=vr,ao.interpolateObject=dr,ao.interpolateNumber=yr,ao.interpolateString=mr;var hl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pl=new RegExp(hl.source,"g");ao.interpolate=Mr,ao.interpolators=[function(n,t){var e=typeof t;return("string"===e?ua.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?vr:mr:t instanceof an?vr:Array.isArray(t)?xr:"object"===e&&isNaN(t)?dr:yr)(n,t)}],ao.interpolateArray=xr;var gl=function(){return m},vl=ao.map({linear:gl,poly:Er,quad:function(){return Sr},cubic:function(){return kr},sin:function(){return Ar},exp:function(){return Cr},circle:function(){return zr},elastic:Lr,back:qr,bounce:function(){return Tr}}),dl=ao.map({"in":m,out:_r,"in-out":wr,"out-in":function(n){return wr(_r(n))}});ao.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=vl.get(e)||gl,r=dl.get(r)||m,br(r(e.apply(null,lo.call(arguments,1))))},ao.interpolateHcl=Rr,ao.interpolateHsl=Dr,ao.interpolateLab=Pr,ao.interpolateRound=Ur,ao.transform=function(n){var t=fo.createElementNS(ao.ns.prefix.svg,"g");return(ao.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new jr(e?e.matrix:yl)})(n)},jr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var yl={a:1,b:0,c:0,d:1,e:0,f:0};ao.interpolateTransform=$r,ao.layout={},ao.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(Jr(n[e]));return t}},ao.layout.chord=function(){function n(){var n,c,s,h,p,g={},v=[],d=ao.range(u),y=[];for(e=[],r=[],n=0,h=-1;++h<u;){for(c=0,p=-1;++p<u;)c+=i[h][p];v.push(c),y.push(ao.range(u)),n+=c}for(o&&d.sort(function(n,t){return o(v[n],v[t])}),a&&y.forEach(function(n,t){n.sort(function(n,e){return a(i[t][n],i[t][e])})}),n=(Ho-f*u)/n,c=0,h=-1;++h<u;){for(s=c,p=-1;++p<u;){var m=d[h],M=y[m][p],x=i[m][M],b=c,_=c+=x*n;g[m+"-"+M]={index:m,subindex:M,startAngle:b,endAngle:_,value:x}}r[m]={index:m,startAngle:s,endAngle:c,value:v[m]},c+=f}for(h=-1;++h<u;)for(p=h-1;++p<u;){var w=g[h+"-"+p],S=g[p+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}l&&t()}function t(){e.sort(function(n,t){return l((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var e,r,i,u,o,a,l,c={},f=0;return c.matrix=function(n){return arguments.length?(u=(i=n)&&i.length,e=r=null,c):i},c.padding=function(n){return arguments.length?(f=n,e=r=null,c):f},c.sortGroups=function(n){return arguments.length?(o=n,e=r=null,c):o},c.sortSubgroups=function(n){return arguments.length?(a=n,e=null,c):a},c.sortChords=function(n){return arguments.length?(l=n,e&&t(),c):l},c.chords=function(){return e||n(),e},c.groups=function(){return r||n(),r},c},ao.layout.force=function(){function n(n){return function(t,e,r,i){if(t.point!==n){var u=t.cx-n.x,o=t.cy-n.y,a=i-e,l=u*u+o*o;if(l>a*a/y){if(v>l){var c=t.charge/l;n.px-=u*c,n.py-=o*c}return!0}if(t.point&&l&&v>l){var c=t.pointCharge/l;n.px-=u*c,n.py-=o*c}}return!t.charge}}function t(n){n.px=ao.event.x,n.py=ao.event.y,l.resume()}var e,r,i,u,o,a,l={},c=ao.dispatch("start","tick","end"),f=[1,1],s=.9,h=ml,p=Ml,g=-30,v=xl,d=.1,y=.64,M=[],x=[];return l.tick=function(){if((i*=.99)<.005)return e=null,c.end({type:"end",alpha:i=0}),!0;var t,r,l,h,p,v,y,m,b,_=M.length,w=x.length;for(r=0;w>r;++r)l=x[r],h=l.source,p=l.target,m=p.x-h.x,b=p.y-h.y,(v=m*m+b*b)&&(v=i*o[r]*((v=Math.sqrt(v))-u[r])/v,m*=v,b*=v,p.x-=m*(y=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=b*y,h.x+=m*(y=1-y),h.y+=b*y);if((y=i*d)&&(m=f[0]/2,b=f[1]/2,r=-1,y))for(;++r<_;)l=M[r],l.x+=(m-l.x)*y,l.y+=(b-l.y)*y;if(g)for(ri(t=ao.geom.quadtree(M),i,a),r=-1;++r<_;)(l=M[r]).fixed||t.visit(n(l));for(r=-1;++r<_;)l=M[r],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*s,l.y-=(l.py-(l.py=l.y))*s);c.tick({type:"tick",alpha:i})},l.nodes=function(n){return arguments.length?(M=n,l):M},l.links=function(n){return arguments.length?(x=n,l):x},l.size=function(n){return arguments.length?(f=n,l):f},l.linkDistance=function(n){return arguments.length?(h="function"==typeof n?n:+n,l):h},l.distance=l.linkDistance,l.linkStrength=function(n){return arguments.length?(p="function"==typeof n?n:+n,l):p},l.friction=function(n){return arguments.length?(s=+n,l):s},l.charge=function(n){return arguments.length?(g="function"==typeof n?n:+n,l):g},l.chargeDistance=function(n){return arguments.length?(v=n*n,l):Math.sqrt(v)},l.gravity=function(n){return arguments.length?(d=+n,l):d},l.theta=function(n){return arguments.length?(y=n*n,l):Math.sqrt(y)},l.alpha=function(n){return arguments.length?(n=+n,i?n>0?i=n:(e.c=null,e.t=NaN,e=null,c.end({type:"end",alpha:i=0})):n>0&&(c.start({type:"start",alpha:i=n}),e=qn(l.tick)),l):i},l.start=function(){function n(n,r){if(!e){for(e=new Array(i),l=0;i>l;++l)e[l]=[];for(l=0;c>l;++l){var u=x[l];e[u.source.index].push(u.target),e[u.target.index].push(u.source)}}for(var o,a=e[t],l=-1,f=a.length;++l<f;)if(!isNaN(o=a[l][n]))return o;return Math.random()*r}var t,e,r,i=M.length,c=x.length,s=f[0],v=f[1];for(t=0;i>t;++t)(r=M[t]).index=t,r.weight=0;for(t=0;c>t;++t)r=x[t],"number"==typeof r.source&&(r.source=M[r.source]),"number"==typeof r.target&&(r.target=M[r.target]),++r.source.weight,++r.target.weight;for(t=0;i>t;++t)r=M[t],isNaN(r.x)&&(r.x=n("x",s)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(u=[],"function"==typeof h)for(t=0;c>t;++t)u[t]=+h.call(this,x[t],t);else for(t=0;c>t;++t)u[t]=h;if(o=[],"function"==typeof p)for(t=0;c>t;++t)o[t]=+p.call(this,x[t],t);else for(t=0;c>t;++t)o[t]=p;if(a=[],"function"==typeof g)for(t=0;i>t;++t)a[t]=+g.call(this,M[t],t);else for(t=0;i>t;++t)a[t]=g;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=ao.behavior.drag().origin(m).on("dragstart.force",Qr).on("drag.force",t).on("dragend.force",ni)),arguments.length?void this.on("mouseover.force",ti).on("mouseout.force",ei).call(r):r},ao.rebind(l,c,"on")};var ml=20,Ml=1,xl=1/0;ao.layout.hierarchy=function(){function n(i){var u,o=[i],a=[];for(i.depth=0;null!=(u=o.pop());)if(a.push(u),(c=e.call(n,u,u.depth))&&(l=c.length)){for(var l,c,f;--l>=0;)o.push(f=c[l]),f.parent=u,f.depth=u.depth+1;r&&(u.value=0),u.children=c}else r&&(u.value=+r.call(n,u,u.depth)||0),delete u.children;return oi(i,function(n){var e,i;t&&(e=n.children)&&e.sort(t),r&&(i=n.parent)&&(i.value+=n.value)}),a}var t=ci,e=ai,r=li;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(ui(t,function(n){n.children&&(n.value=0)}),oi(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},ao.layout.partition=function(){function n(t,e,r,i){var u=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,u&&(o=u.length)){var o,a,l,c=-1;for(r=t.value?r/t.value:0;++c<o;)n(a=u[c],e,l=a.value*r,i),e+=l}}function t(n){var e=n.children,r=0;if(e&&(i=e.length))for(var i,u=-1;++u<i;)r=Math.max(r,t(e[u]));return 1+r}function e(e,u){var o=r.call(this,e,u);return n(o[0],0,i[0],i[1]/t(o[0])),o}var r=ao.layout.hierarchy(),i=[1,1];return e.size=function(n){return arguments.length?(i=n,e):i},ii(e,r)},ao.layout.pie=function(){function n(o){var a,l=o.length,c=o.map(function(e,r){return+t.call(n,e,r)}),f=+("function"==typeof r?r.apply(this,arguments):r),s=("function"==typeof i?i.apply(this,arguments):i)-f,h=Math.min(Math.abs(s)/l,+("function"==typeof u?u.apply(this,arguments):u)),p=h*(0>s?-1:1),g=ao.sum(c),v=g?(s-l*p)/g:0,d=ao.range(l),y=[];return null!=e&&d.sort(e===bl?function(n,t){return c[t]-c[n]}:function(n,t){return e(o[n],o[t])}),d.forEach(function(n){y[n]={data:o[n],value:a=c[n],startAngle:f,endAngle:f+=a*v+p,padAngle:h}}),y}var t=Number,e=bl,r=0,i=Ho,u=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(i=t,n):i},n.padAngle=function(t){return arguments.length?(u=t,n):u},n};var bl={};ao.layout.stack=function(){function n(a,l){if(!(h=a.length))return a;var c=a.map(function(e,r){return t.call(n,e,r)}),f=c.map(function(t){return t.map(function(t,e){return[u.call(n,t,e),o.call(n,t,e)]})}),s=e.call(n,f,l);c=ao.permute(c,s),f=ao.permute(f,s);var h,p,g,v,d=r.call(n,f,l),y=c[0].length;for(g=0;y>g;++g)for(i.call(n,c[0][g],v=d[g],f[0][g][1]),p=1;h>p;++p)i.call(n,c[p][g],v+=f[p-1][g][1],f[p][g][1]);return a}var t=m,e=gi,r=vi,i=pi,u=si,o=hi;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:_l.get(t)||gi,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:wl.get(t)||vi,n):r},n.x=function(t){return arguments.length?(u=t,n):u},n.y=function(t){return arguments.length?(o=t,n):o},n.out=function(t){return arguments.length?(i=t,n):i},n};var _l=ao.map({"inside-out":function(n){var t,e,r=n.length,i=n.map(di),u=n.map(yi),o=ao.range(r).sort(function(n,t){return i[n]-i[t]}),a=0,l=0,c=[],f=[];for(t=0;r>t;++t)e=o[t],l>a?(a+=u[e],c.push(e)):(l+=u[e],f.push(e));return f.reverse().concat(c)},reverse:function(n){return ao.range(n.length).reverse()},"default":gi}),wl=ao.map({silhouette:function(n){var t,e,r,i=n.length,u=n[0].length,o=[],a=0,l=[];for(e=0;u>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];r>a&&(a=r),o.push(r)}for(e=0;u>e;++e)l[e]=(a-o[e])/2;return l},wiggle:function(n){var t,e,r,i,u,o,a,l,c,f=n.length,s=n[0],h=s.length,p=[];for(p[0]=l=c=0,e=1;h>e;++e){for(t=0,i=0;f>t;++t)i+=n[t][e][1];for(t=0,u=0,a=s[e][0]-s[e-1][0];f>t;++t){for(r=0,o=(n[t][e][1]-n[t][e-1][1])/(2*a);t>r;++r)o+=(n[r][e][1]-n[r][e-1][1])/a;u+=o*n[t][e][1]}p[e]=l-=i?u/i*a:0,c>l&&(c=l)}for(e=0;h>e;++e)p[e]-=c;return p},expand:function(n){var t,e,r,i=n.length,u=n[0].length,o=1/i,a=[];for(e=0;u>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];if(r)for(t=0;i>t;t++)n[t][e][1]/=r;else for(t=0;i>t;t++)n[t][e][1]=o}for(e=0;u>e;++e)a[e]=0;return a},zero:vi});ao.layout.histogram=function(){function n(n,u){for(var o,a,l=[],c=n.map(e,this),f=r.call(this,c,u),s=i.call(this,f,c,u),u=-1,h=c.length,p=s.length-1,g=t?1:1/h;++u<p;)o=l[u]=[],o.dx=s[u+1]-(o.x=s[u]),o.y=0;if(p>0)for(u=-1;++u<h;)a=c[u],a>=f[0]&&a<=f[1]&&(o=l[ao.bisect(s,a,1,p)-1],o.y+=g,o.push(n[u]));return l}var t=!0,e=Number,r=bi,i=Mi;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=En(t),n):r},n.bins=function(t){return arguments.length?(i="number"==typeof t?function(n){return xi(n,t)}:En(t),n):i},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},ao.layout.pack=function(){function n(n,u){var o=e.call(this,n,u),a=o[0],l=i[0],c=i[1],f=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,oi(a,function(n){n.r=+f(n.value)}),oi(a,Ni),r){var s=r*(t?1:Math.max(2*a.r/l,2*a.r/c))/2;oi(a,function(n){n.r+=s}),oi(a,Ni),oi(a,function(n){n.r-=s})}return Ci(a,l/2,c/2,t?1:1/Math.max(2*a.r/l,2*a.r/c)),o}var t,e=ao.layout.hierarchy().sort(_i),r=0,i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},ii(n,e)},ao.layout.tree=function(){function n(n,i){var f=o.call(this,n,i),s=f[0],h=t(s);if(oi(h,e),h.parent.m=-h.z,ui(h,r),c)ui(s,u);else{var p=s,g=s,v=s;ui(s,function(n){n.x<p.x&&(p=n),n.x>g.x&&(g=n),n.depth>v.depth&&(v=n)});var d=a(p,g)/2-p.x,y=l[0]/(g.x+a(g,p)/2+d),m=l[1]/(v.depth||1);ui(s,function(n){n.x=(n.x+d)*y,n.y=n.depth*m})}return f}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var i,u=t.children,o=0,a=u.length;a>o;++o)r.push((u[o]=i={_:u[o],parent:t,children:(i=u[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Di(n);var u=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+a(n._,r._),n.m=n.z-u):n.z=u}else r&&(n.z=r.z+a(n._,r._));n.parent.A=i(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function i(n,t,e){if(t){for(var r,i=n,u=n,o=t,l=i.parent.children[0],c=i.m,f=u.m,s=o.m,h=l.m;o=Ti(o),i=qi(i),o&&i;)l=qi(l),u=Ti(u),u.a=n,r=o.z+s-i.z-c+a(o._,i._),r>0&&(Ri(Pi(o,n,e),n,r),c+=r,f+=r),s+=o.m,c+=i.m,h+=l.m,f+=u.m;o&&!Ti(u)&&(u.t=o,u.m+=s-f),i&&!qi(l)&&(l.t=i,l.m+=c-h,e=n)}return e}function u(n){n.x*=l[0],n.y=n.depth*l[1]}var o=ao.layout.hierarchy().sort(null).value(null),a=Li,l=[1,1],c=null;return n.separation=function(t){return arguments.length?(a=t,n):a},n.size=function(t){return arguments.length?(c=null==(l=t)?u:null,n):c?null:l},n.nodeSize=function(t){return arguments.length?(c=null==(l=t)?null:u,n):c?l:null},ii(n,o)},ao.layout.cluster=function(){function n(n,u){var o,a=t.call(this,n,u),l=a[0],c=0;oi(l,function(n){var t=n.children;t&&t.length?(n.x=ji(t),n.y=Ui(t)):(n.x=o?c+=e(n,o):0,n.y=0,o=n)});var f=Fi(l),s=Hi(l),h=f.x-e(f,s)/2,p=s.x+e(s,f)/2;return oi(l,i?function(n){n.x=(n.x-l.x)*r[0],n.y=(l.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(p-h)*r[0],n.y=(1-(l.y?n.y/l.y:1))*r[1]}),a}var t=ao.layout.hierarchy().sort(null).value(null),e=Li,r=[1,1],i=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(i=null==(r=t),n):i?null:r},n.nodeSize=function(t){return arguments.length?(i=null!=(r=t),n):i?r:null},ii(n,t)},ao.layout.treemap=function(){function n(n,t){for(var e,r,i=-1,u=n.length;++i<u;)r=(e=n[i]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var u=e.children;if(u&&u.length){var o,a,l,c=s(e),f=[],h=u.slice(),g=1/0,v="slice"===p?c.dx:"dice"===p?c.dy:"slice-dice"===p?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(n(h,c.dx*c.dy/e.value),f.area=0;(l=h.length)>0;)f.push(o=h[l-1]),f.area+=o.area,"squarify"!==p||(a=r(f,v))<=g?(h.pop(),g=a):(f.area-=f.pop().area,i(f,v,c,!1),v=Math.min(c.dx,c.dy),f.length=f.area=0,g=1/0);f.length&&(i(f,v,c,!0),f.length=f.area=0),u.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var u,o=s(t),a=r.slice(),l=[];for(n(a,o.dx*o.dy/t.value),l.area=0;u=a.pop();)l.push(u),l.area+=u.area,null!=u.z&&(i(l,u.z?o.dx:o.dy,o,!a.length),l.length=l.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,i=0,u=1/0,o=-1,a=n.length;++o<a;)(e=n[o].area)&&(u>e&&(u=e),e>i&&(i=e));return r*=r,t*=t,r?Math.max(t*i*g/r,r/(t*u*g)):1/0}function i(n,t,e,r){var i,u=-1,o=n.length,a=e.x,c=e.y,f=t?l(n.area/t):0;
-if(t==e.dx){for((r||f>e.dy)&&(f=e.dy);++u<o;)i=n[u],i.x=a,i.y=c,i.dy=f,a+=i.dx=Math.min(e.x+e.dx-a,f?l(i.area/f):0);i.z=!0,i.dx+=e.x+e.dx-a,e.y+=f,e.dy-=f}else{for((r||f>e.dx)&&(f=e.dx);++u<o;)i=n[u],i.x=a,i.y=c,i.dx=f,c+=i.dy=Math.min(e.y+e.dy-c,f?l(i.area/f):0);i.z=!1,i.dy+=e.y+e.dy-c,e.x+=f,e.dx-=f}}function u(r){var i=o||a(r),u=i[0];return u.x=u.y=0,u.value?(u.dx=c[0],u.dy=c[1]):u.dx=u.dy=0,o&&a.revalue(u),n([u],u.dx*u.dy/u.value),(o?e:t)(u),h&&(o=i),i}var o,a=ao.layout.hierarchy(),l=Math.round,c=[1,1],f=null,s=Oi,h=!1,p="squarify",g=.5*(1+Math.sqrt(5));return u.size=function(n){return arguments.length?(c=n,u):c},u.padding=function(n){function t(t){var e=n.call(u,t,t.depth);return null==e?Oi(t):Ii(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return Ii(t,n)}if(!arguments.length)return f;var r;return s=null==(f=n)?Oi:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,u},u.round=function(n){return arguments.length?(l=n?Math.round:Number,u):l!=Number},u.sticky=function(n){return arguments.length?(h=n,o=null,u):h},u.ratio=function(n){return arguments.length?(g=n,u):g},u.mode=function(n){return arguments.length?(p=n+"",u):p},ii(u,a)},ao.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return n+t*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var n=ao.random.normal.apply(ao,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=ao.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},ao.scale={};var Sl={floor:m,ceil:m};ao.scale.linear=function(){return Wi([0,1],[0,1],Mr,!1)};var kl={s:1,g:1,p:1,r:1,e:1};ao.scale.log=function(){return ru(ao.scale.linear().domain([0,1]),10,!0,[1,10])};var Nl=ao.format(".0e"),El={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};ao.scale.pow=function(){return iu(ao.scale.linear(),1,[0,1])},ao.scale.sqrt=function(){return ao.scale.pow().exponent(.5)},ao.scale.ordinal=function(){return ou([],{t:"range",a:[[]]})},ao.scale.category10=function(){return ao.scale.ordinal().range(Al)},ao.scale.category20=function(){return ao.scale.ordinal().range(Cl)},ao.scale.category20b=function(){return ao.scale.ordinal().range(zl)},ao.scale.category20c=function(){return ao.scale.ordinal().range(Ll)};var Al=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xn),Cl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xn),zl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xn),Ll=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xn);ao.scale.quantile=function(){return au([],[])},ao.scale.quantize=function(){return lu(0,1,[0,1])},ao.scale.threshold=function(){return cu([.5],[0,1])},ao.scale.identity=function(){return fu([0,1])},ao.svg={},ao.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),f=o.apply(this,arguments)-Io,s=a.apply(this,arguments)-Io,h=Math.abs(s-f),p=f>s?0:1;if(n>c&&(g=c,c=n,n=g),h>=Oo)return t(c,p)+(n?t(n,1-p):"")+"Z";var g,v,d,y,m,M,x,b,_,w,S,k,N=0,E=0,A=[];if((y=(+l.apply(this,arguments)||0)/2)&&(d=u===ql?Math.sqrt(n*n+c*c):+u.apply(this,arguments),p||(E*=-1),c&&(E=tn(d/c*Math.sin(y))),n&&(N=tn(d/n*Math.sin(y)))),c){m=c*Math.cos(f+E),M=c*Math.sin(f+E),x=c*Math.cos(s-E),b=c*Math.sin(s-E);var C=Math.abs(s-f-2*E)<=Fo?0:1;if(E&&yu(m,M,x,b)===p^C){var z=(f+s)/2;m=c*Math.cos(z),M=c*Math.sin(z),x=b=null}}else m=M=0;if(n){_=n*Math.cos(s-N),w=n*Math.sin(s-N),S=n*Math.cos(f+N),k=n*Math.sin(f+N);var L=Math.abs(f-s+2*N)<=Fo?0:1;if(N&&yu(_,w,S,k)===1-p^L){var q=(f+s)/2;_=n*Math.cos(q),w=n*Math.sin(q),S=k=null}}else _=w=0;if(h>Uo&&(g=Math.min(Math.abs(c-n)/2,+i.apply(this,arguments)))>.001){v=c>n^p?0:1;var T=g,R=g;if(Fo>h){var D=null==S?[_,w]:null==x?[m,M]:Re([m,M],[S,k],[x,b],[_,w]),P=m-D[0],U=M-D[1],j=x-D[0],F=b-D[1],H=1/Math.sin(Math.acos((P*j+U*F)/(Math.sqrt(P*P+U*U)*Math.sqrt(j*j+F*F)))/2),O=Math.sqrt(D[0]*D[0]+D[1]*D[1]);R=Math.min(g,(n-O)/(H-1)),T=Math.min(g,(c-O)/(H+1))}if(null!=x){var I=mu(null==S?[_,w]:[S,k],[m,M],c,T,p),Y=mu([x,b],[_,w],c,T,p);g===T?A.push("M",I[0],"A",T,",",T," 0 0,",v," ",I[1],"A",c,",",c," 0 ",1-p^yu(I[1][0],I[1][1],Y[1][0],Y[1][1]),",",p," ",Y[1],"A",T,",",T," 0 0,",v," ",Y[0]):A.push("M",I[0],"A",T,",",T," 0 1,",v," ",Y[0])}else A.push("M",m,",",M);if(null!=S){var Z=mu([m,M],[S,k],n,-R,p),V=mu([_,w],null==x?[m,M]:[x,b],n,-R,p);g===R?A.push("L",V[0],"A",R,",",R," 0 0,",v," ",V[1],"A",n,",",n," 0 ",p^yu(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-p," ",Z[1],"A",R,",",R," 0 0,",v," ",Z[0]):A.push("L",V[0],"A",R,",",R," 0 0,",v," ",Z[0])}else A.push("L",_,",",w)}else A.push("M",m,",",M),null!=x&&A.push("A",c,",",c," 0 ",C,",",p," ",x,",",b),A.push("L",_,",",w),null!=S&&A.push("A",n,",",n," 0 ",L,",",1-p," ",S,",",k);return A.push("Z"),A.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=hu,r=pu,i=su,u=ql,o=gu,a=vu,l=du;return n.innerRadius=function(t){return arguments.length?(e=En(t),n):e},n.outerRadius=function(t){return arguments.length?(r=En(t),n):r},n.cornerRadius=function(t){return arguments.length?(i=En(t),n):i},n.padRadius=function(t){return arguments.length?(u=t==ql?ql:En(t),n):u},n.startAngle=function(t){return arguments.length?(o=En(t),n):o},n.endAngle=function(t){return arguments.length?(a=En(t),n):a},n.padAngle=function(t){return arguments.length?(l=En(t),n):l},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Io;return[Math.cos(t)*n,Math.sin(t)*n]},n};var ql="auto";ao.svg.line=function(){return Mu(m)};var Tl=ao.map({linear:xu,"linear-closed":bu,step:_u,"step-before":wu,"step-after":Su,basis:zu,"basis-open":Lu,"basis-closed":qu,bundle:Tu,cardinal:Eu,"cardinal-open":ku,"cardinal-closed":Nu,monotone:Fu});Tl.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Rl=[0,2/3,1/3,0],Dl=[0,1/3,2/3,0],Pl=[0,1/6,2/3,1/6];ao.svg.line.radial=function(){var n=Mu(Hu);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},wu.reverse=Su,Su.reverse=wu,ao.svg.area=function(){return Ou(m)},ao.svg.area.radial=function(){var n=Ou(Hu);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},ao.svg.chord=function(){function n(n,a){var l=t(this,u,n,a),c=t(this,o,n,a);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(e(l,c)?i(l.r,l.p1,l.r,l.p0):i(l.r,l.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,l.r,l.p0))+"Z"}function t(n,t,e,r){var i=t.call(n,e,r),u=a.call(n,i,r),o=l.call(n,i,r)-Io,f=c.call(n,i,r)-Io;return{r:u,a0:o,a1:f,p0:[u*Math.cos(o),u*Math.sin(o)],p1:[u*Math.cos(f),u*Math.sin(f)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>Fo)+",1 "+t}function i(n,t,e,r){return"Q 0,0 "+r}var u=Me,o=xe,a=Iu,l=gu,c=vu;return n.radius=function(t){return arguments.length?(a=En(t),n):a},n.source=function(t){return arguments.length?(u=En(t),n):u},n.target=function(t){return arguments.length?(o=En(t),n):o},n.startAngle=function(t){return arguments.length?(l=En(t),n):l},n.endAngle=function(t){return arguments.length?(c=En(t),n):c},n},ao.svg.diagonal=function(){function n(n,i){var u=t.call(this,n,i),o=e.call(this,n,i),a=(u.y+o.y)/2,l=[u,{x:u.x,y:a},{x:o.x,y:a},o];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=Me,e=xe,r=Yu;return n.source=function(e){return arguments.length?(t=En(e),n):t},n.target=function(t){return arguments.length?(e=En(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},ao.svg.diagonal.radial=function(){var n=ao.svg.diagonal(),t=Yu,e=n.projection;return n.projection=function(n){return arguments.length?e(Zu(t=n)):t},n},ao.svg.symbol=function(){function n(n,r){return(Ul.get(t.call(this,n,r))||$u)(e.call(this,n,r))}var t=Xu,e=Vu;return n.type=function(e){return arguments.length?(t=En(e),n):t},n.size=function(t){return arguments.length?(e=En(t),n):e},n};var Ul=ao.map({circle:$u,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Fl)),e=t*Fl;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});ao.svg.symbolTypes=Ul.keys();var jl=Math.sqrt(3),Fl=Math.tan(30*Yo);Co.transition=function(n){for(var t,e,r=Hl||++Zl,i=Ku(n),u=[],o=Ol||{time:Date.now(),ease:Nr,delay:0,duration:250},a=-1,l=this.length;++a<l;){u.push(t=[]);for(var c=this[a],f=-1,s=c.length;++f<s;)(e=c[f])&&Qu(e,f,i,r,o),t.push(e)}return Wu(u,i,r)},Co.interrupt=function(n){return this.each(null==n?Il:Bu(Ku(n)))};var Hl,Ol,Il=Bu(Ku()),Yl=[],Zl=0;Yl.call=Co.call,Yl.empty=Co.empty,Yl.node=Co.node,Yl.size=Co.size,ao.transition=function(n,t){return n&&n.transition?Hl?n.transition(t):n:ao.selection().transition(n)},ao.transition.prototype=Yl,Yl.select=function(n){var t,e,r,i=this.id,u=this.namespace,o=[];n=A(n);for(var a=-1,l=this.length;++a<l;){o.push(t=[]);for(var c=this[a],f=-1,s=c.length;++f<s;)(r=c[f])&&(e=n.call(r,r.__data__,f,a))?("__data__"in r&&(e.__data__=r.__data__),Qu(e,f,u,i,r[u][i]),t.push(e)):t.push(null)}return Wu(o,u,i)},Yl.selectAll=function(n){var t,e,r,i,u,o=this.id,a=this.namespace,l=[];n=C(n);for(var c=-1,f=this.length;++c<f;)for(var s=this[c],h=-1,p=s.length;++h<p;)if(r=s[h]){u=r[a][o],e=n.call(r,r.__data__,h,c),l.push(t=[]);for(var g=-1,v=e.length;++g<v;)(i=e[g])&&Qu(i,g,a,o,u),t.push(i)}return Wu(l,a,o)},Yl.filter=function(n){var t,e,r,i=[];"function"!=typeof n&&(n=O(n));for(var u=0,o=this.length;o>u;u++){i.push(t=[]);for(var e=this[u],a=0,l=e.length;l>a;a++)(r=e[a])&&n.call(r,r.__data__,a,u)&&t.push(r)}return Wu(i,this.namespace,this.id)},Yl.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):Y(this,null==t?function(t){t[r][e].tween.remove(n)}:function(i){i[r][e].tween.set(n,t)})},Yl.attr=function(n,t){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function i(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(a);return e!==n&&(t=o(e,n),function(n){this.setAttribute(a,t(n))})})}function u(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(a.space,a.local);return e!==n&&(t=o(e,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var o="transform"==n?$r:Mr,a=ao.ns.qualify(n);return Ju(this,"attr."+n,t,a.local?u:i)},Yl.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(i));return r&&function(n){this.setAttribute(i,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(i.space,i.local));return r&&function(n){this.setAttributeNS(i.space,i.local,r(n))}}var i=ao.ns.qualify(n);return this.tween("attr."+n,i.local?r:e)},Yl.style=function(n,e,r){function i(){this.style.removeProperty(n)}function u(e){return null==e?i:(e+="",function(){var i,u=t(this).getComputedStyle(this,null).getPropertyValue(n);return u!==e&&(i=Mr(u,e),function(t){this.style.setProperty(n,i(t),r)})})}var o=arguments.length;if(3>o){if("string"!=typeof n){2>o&&(e="");for(r in n)this.style(r,n[r],e);return this}r=""}return Ju(this,"style."+n,e,u)},Yl.styleTween=function(n,e,r){function i(i,u){var o=e.call(this,i,u,t(this).getComputedStyle(this,null).getPropertyValue(n));return o&&function(t){this.style.setProperty(n,o(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,i)},Yl.text=function(n){return Ju(this,"text",n,Gu)},Yl.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Yl.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=ao.ease.apply(ao,arguments)),Y(this,function(r){r[e][t].ease=n}))},Yl.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:Y(this,"function"==typeof n?function(r,i,u){r[e][t].delay=+n.call(r,r.__data__,i,u)}:(n=+n,function(r){r[e][t].delay=n}))},Yl.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:Y(this,"function"==typeof n?function(r,i,u){r[e][t].duration=Math.max(1,n.call(r,r.__data__,i,u))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Yl.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var i=Ol,u=Hl;try{Hl=e,Y(this,function(t,i,u){Ol=t[r][e],n.call(t,t.__data__,i,u)})}finally{Ol=i,Hl=u}}else Y(this,function(i){var u=i[r][e];(u.event||(u.event=ao.dispatch("start","end","interrupt"))).on(n,t)});return this},Yl.transition=function(){for(var n,t,e,r,i=this.id,u=++Zl,o=this.namespace,a=[],l=0,c=this.length;c>l;l++){a.push(n=[]);for(var t=this[l],f=0,s=t.length;s>f;f++)(e=t[f])&&(r=e[o][i],Qu(e,f,o,u,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Wu(a,o,u)},ao.svg.axis=function(){function n(n){n.each(function(){var n,c=ao.select(this),f=this.__chart__||e,s=this.__chart__=e.copy(),h=null==l?s.ticks?s.ticks.apply(s,a):s.domain():l,p=null==t?s.tickFormat?s.tickFormat.apply(s,a):m:t,g=c.selectAll(".tick").data(h,s),v=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Uo),d=ao.transition(g.exit()).style("opacity",Uo).remove(),y=ao.transition(g.order()).style("opacity",1),M=Math.max(i,0)+o,x=Zi(s),b=c.selectAll(".domain").data([0]),_=(b.enter().append("path").attr("class","domain"),ao.transition(b));v.append("line"),v.append("text");var w,S,k,N,E=v.select("line"),A=y.select("line"),C=g.select("text").text(p),z=v.select("text"),L=y.select("text"),q="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=no,w="x",k="y",S="x2",N="y2",C.attr("dy",0>q?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+q*u+"V0H"+x[1]+"V"+q*u)):(n=to,w="y",k="x",S="y2",N="x2",C.attr("dy",".32em").style("text-anchor",0>q?"end":"start"),_.attr("d","M"+q*u+","+x[0]+"H0V"+x[1]+"H"+q*u)),E.attr(N,q*i),z.attr(k,q*M),A.attr(S,0).attr(N,q*i),L.attr(w,0).attr(k,q*M),s.rangeBand){var T=s,R=T.rangeBand()/2;f=s=function(n){return T(n)+R}}else f.rangeBand?f=s:d.call(n,s,f);v.call(n,f,s),y.call(n,s,s)})}var t,e=ao.scale.linear(),r=Vl,i=6,u=6,o=3,a=[10],l=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Xl?t+"":Vl,n):r},n.ticks=function(){return arguments.length?(a=co(arguments),n):a},n.tickValues=function(t){return arguments.length?(l=t,n):l},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(i=+t,u=+arguments[e-1],n):i},n.innerTickSize=function(t){return arguments.length?(i=+t,n):i},n.outerTickSize=function(t){return arguments.length?(u=+t,n):u},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(){return arguments.length&&n},n};var Vl="bottom",Xl={top:1,right:1,bottom:1,left:1};ao.svg.brush=function(){function n(t){t.each(function(){var t=ao.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",u).on("touchstart.brush",u),o=t.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=t.selectAll(".resize").data(v,m);a.exit().remove(),a.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return $l[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",n.empty()?"none":null);var l,s=ao.transition(t),h=ao.transition(o);c&&(l=Zi(c),h.attr("x",l[0]).attr("width",l[1]-l[0]),r(s)),f&&(l=Zi(f),h.attr("y",l[0]).attr("height",l[1]-l[0]),i(s)),e(s)})}function e(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+s[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",s[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",s[1]-s[0])}function i(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function u(){function u(){32==ao.event.keyCode&&(C||(M=null,L[0]-=s[1],L[1]-=h[1],C=2),S())}function v(){32==ao.event.keyCode&&2==C&&(L[0]+=s[1],L[1]+=h[1],C=0,S())}function d(){var n=ao.mouse(b),t=!1;x&&(n[0]+=x[0],n[1]+=x[1]),C||(ao.event.altKey?(M||(M=[(s[0]+s[1])/2,(h[0]+h[1])/2]),L[0]=s[+(n[0]<M[0])],L[1]=h[+(n[1]<M[1])]):M=null),E&&y(n,c,0)&&(r(k),t=!0),A&&y(n,f,1)&&(i(k),t=!0),t&&(e(k),w({type:"brush",mode:C?"move":"resize"}))}function y(n,t,e){var r,i,u=Zi(t),l=u[0],c=u[1],f=L[e],v=e?h:s,d=v[1]-v[0];return C&&(l-=f,c-=d+f),r=(e?g:p)?Math.max(l,Math.min(c,n[e])):n[e],C?i=(r+=f)+d:(M&&(f=Math.max(l,Math.min(c,2*M[e]-r))),r>f?(i=r,r=f):i=f),v[0]!=r||v[1]!=i?(e?a=null:o=null,v[0]=r,v[1]=i,!0):void 0}function m(){d(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),ao.select("body").style("cursor",null),q.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),z(),w({type:"brushend"})}var M,x,b=this,_=ao.select(ao.event.target),w=l.of(b,arguments),k=ao.select(b),N=_.datum(),E=!/^(n|s)$/.test(N)&&c,A=!/^(e|w)$/.test(N)&&f,C=_.classed("extent"),z=W(b),L=ao.mouse(b),q=ao.select(t(b)).on("keydown.brush",u).on("keyup.brush",v);if(ao.event.changedTouches?q.on("touchmove.brush",d).on("touchend.brush",m):q.on("mousemove.brush",d).on("mouseup.brush",m),k.interrupt().selectAll("*").interrupt(),C)L[0]=s[0]-L[0],L[1]=h[0]-L[1];else if(N){var T=+/w$/.test(N),R=+/^n/.test(N);x=[s[1-T]-L[0],h[1-R]-L[1]],L[0]=s[T],L[1]=h[R]}else ao.event.altKey&&(M=L.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),ao.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),d()}var o,a,l=N(n,"brushstart","brush","brushend"),c=null,f=null,s=[0,0],h=[0,0],p=!0,g=!0,v=Bl[0];return n.event=function(n){n.each(function(){var n=l.of(this,arguments),t={x:s,y:h,i:o,j:a},e=this.__chart__||t;this.__chart__=t,Hl?ao.select(this).transition().each("start.brush",function(){o=e.i,a=e.j,s=e.x,h=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=xr(s,t.x),r=xr(h,t.y);return o=a=null,function(i){s=t.x=e(i),h=t.y=r(i),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,a=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(c=t,v=Bl[!c<<1|!f],n):c},n.y=function(t){return arguments.length?(f=t,v=Bl[!c<<1|!f],n):f},n.clamp=function(t){return arguments.length?(c&&f?(p=!!t[0],g=!!t[1]):c?p=!!t:f&&(g=!!t),n):c&&f?[p,g]:c?p:f?g:null},n.extent=function(t){var e,r,i,u,l;return arguments.length?(c&&(e=t[0],r=t[1],f&&(e=e[0],r=r[0]),o=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(l=e,e=r,r=l),e==s[0]&&r==s[1]||(s=[e,r])),f&&(i=t[0],u=t[1],c&&(i=i[1],u=u[1]),a=[i,u],f.invert&&(i=f(i),u=f(u)),i>u&&(l=i,i=u,u=l),i==h[0]&&u==h[1]||(h=[i,u])),n):(c&&(o?(e=o[0],r=o[1]):(e=s[0],r=s[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(l=e,e=r,r=l))),f&&(a?(i=a[0],u=a[1]):(i=h[0],u=h[1],f.invert&&(i=f.invert(i),u=f.invert(u)),i>u&&(l=i,i=u,u=l))),c&&f?[[e,i],[r,u]]:c?[e,r]:f&&[i,u])},n.clear=function(){return n.empty()||(s=[0,0],h=[0,0],o=a=null),n},n.empty=function(){return!!c&&s[0]==s[1]||!!f&&h[0]==h[1]},ao.rebind(n,l,"on")};var $l={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Bl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Wl=ga.format=xa.timeFormat,Jl=Wl.utc,Gl=Jl("%Y-%m-%dT%H:%M:%S.%LZ");Wl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?eo:Gl,eo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},eo.toString=Gl.toString,ga.second=On(function(n){return new va(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ga.seconds=ga.second.range,ga.seconds.utc=ga.second.utc.range,ga.minute=On(function(n){return new va(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ga.minutes=ga.minute.range,ga.minutes.utc=ga.minute.utc.range,ga.hour=On(function(n){var t=n.getTimezoneOffset()/60;return new va(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ga.hours=ga.hour.range,ga.hours.utc=ga.hour.utc.range,ga.month=On(function(n){return n=ga.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ga.months=ga.month.range,ga.months.utc=ga.month.utc.range;var Kl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ql=[[ga.second,1],[ga.second,5],[ga.second,15],[ga.second,30],[ga.minute,1],[ga.minute,5],[ga.minute,15],[ga.minute,30],[ga.hour,1],[ga.hour,3],[ga.hour,6],[ga.hour,12],[ga.day,1],[ga.day,2],[ga.week,1],[ga.month,1],[ga.month,3],[ga.year,1]],nc=Wl.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",zt]]),tc={range:function(n,t,e){return ao.range(Math.ceil(n/e)*e,+t,e).map(io)},floor:m,ceil:m};Ql.year=ga.year,ga.scale=function(){return ro(ao.scale.linear(),Ql,nc)};var ec=Ql.map(function(n){return[n[0].utc,n[1]]}),rc=Jl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",zt]]);ec.year=ga.year.utc,ga.scale.utc=function(){return ro(ao.scale.linear(),ec,rc)},ao.text=An(function(n){return n.responseText}),ao.json=function(n,t){return Cn(n,"application/json",uo,t)},ao.html=function(n,t){return Cn(n,"text/html",oo,t)},ao.xml=An(function(n){return n.responseXML}),"function"==typeof define&&define.amd?(this.d3=ao,define(ao)):"object"==typeof module&&module.exports?module.exports=ao:this.d3=ao}();
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/leaflet.css b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/leaflet.css
deleted file mode 100644
index 6cbda6cd..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/leaflet.css
+++ /dev/null
@@ -1,497 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-/* required styles */
-
-.leaflet-map-pane,
-.leaflet-tile,
-.leaflet-marker-icon,
-.leaflet-marker-shadow,
-.leaflet-tile-pane,
-.leaflet-tile-container,
-.leaflet-overlay-pane,
-.leaflet-shadow-pane,
-.leaflet-marker-pane,
-.leaflet-popup-pane,
-.leaflet-overlay-pane svg,
-.leaflet-zoom-box,
-.leaflet-image-layer,
-.leaflet-layer {
- position: absolute;
- left: 0;
- top: 0;
- }
-.leaflet-container {
- overflow: hidden;
- -ms-touch-action: none;
- }
-.leaflet-tile,
-.leaflet-marker-icon,
-.leaflet-marker-shadow {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none;
- -webkit-user-drag: none;
- }
-.leaflet-marker-icon,
-.leaflet-marker-shadow {
- display: block;
- }
-/* map is broken in FF if you have max-width: 100% on tiles */
-.leaflet-container img {
- max-width: none !important;
- }
-/* stupid Android 2 doesn't understand "max-width: none" properly */
-.leaflet-container img.leaflet-image-layer {
- max-width: 15000px !important;
- }
-.leaflet-tile {
- filter: inherit;
- visibility: hidden;
- }
-.leaflet-tile-loaded {
- visibility: inherit;
- }
-.leaflet-zoom-box {
- width: 0;
- height: 0;
- }
-/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
-.leaflet-overlay-pane svg {
- -moz-user-select: none;
- }
-
-.leaflet-tile-pane { z-index: 2; }
-.leaflet-objects-pane { z-index: 3; }
-.leaflet-overlay-pane { z-index: 4; }
-.leaflet-shadow-pane { z-index: 5; }
-.leaflet-marker-pane { z-index: 6; }
-.leaflet-popup-pane { z-index: 7; }
-
-.leaflet-vml-shape {
- width: 1px;
- height: 1px;
- }
-.lvml {
- behavior: url(#default#VML);
- display: inline-block;
- position: absolute;
- }
-
-
-/* control positioning */
-
-.leaflet-control {
- position: relative;
- z-index: 7;
- pointer-events: auto;
- }
-.leaflet-top,
-.leaflet-bottom {
- position: absolute;
- z-index: 1000;
- pointer-events: none;
- }
-.leaflet-top {
- top: 0;
- }
-.leaflet-right {
- right: 0;
- }
-.leaflet-bottom {
- bottom: 0;
- }
-.leaflet-left {
- left: 0;
- }
-.leaflet-control {
- float: left;
- clear: both;
- }
-.leaflet-right .leaflet-control {
- float: right;
- }
-.leaflet-top .leaflet-control {
- margin-top: 10px;
- }
-.leaflet-bottom .leaflet-control {
- margin-bottom: 10px;
- }
-.leaflet-left .leaflet-control {
- margin-left: 10px;
- }
-.leaflet-right .leaflet-control {
- margin-right: 10px;
- }
-
-
-/* zoom and fade animations */
-
-.leaflet-fade-anim .leaflet-tile,
-.leaflet-fade-anim .leaflet-popup {
- opacity: 0;
- -webkit-transition: opacity 0.2s linear;
- -moz-transition: opacity 0.2s linear;
- -o-transition: opacity 0.2s linear;
- transition: opacity 0.2s linear;
- }
-.leaflet-fade-anim .leaflet-tile-loaded,
-.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
- opacity: 1;
- }
-
-.leaflet-zoom-anim .leaflet-zoom-animated {
- -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
- -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
- -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
- transition: transform 0.25s cubic-bezier(0,0,0.25,1);
- }
-.leaflet-zoom-anim .leaflet-tile,
-.leaflet-pan-anim .leaflet-tile,
-.leaflet-touching .leaflet-zoom-animated {
- -webkit-transition: none;
- -moz-transition: none;
- -o-transition: none;
- transition: none;
- }
-
-.leaflet-zoom-anim .leaflet-zoom-hide {
- visibility: hidden;
- }
-
-
-/* cursors */
-
-.leaflet-clickable {
- cursor: pointer;
- }
-.leaflet-container {
- cursor: -webkit-grab;
- cursor: -moz-grab;
- }
-.leaflet-popup-pane,
-.leaflet-control {
- cursor: auto;
- }
-.leaflet-dragging .leaflet-container,
-.leaflet-dragging .leaflet-clickable {
- cursor: move;
- cursor: -webkit-grabbing;
- cursor: -moz-grabbing;
- }
-
-
-/* visual tweaks */
-
-.leaflet-container {
- background: #ddd;
- outline: 0;
- }
-.leaflet-container a {
- color: #0078A8;
- }
-.leaflet-container a.leaflet-active {
- outline: 2px solid orange;
- }
-.leaflet-zoom-box {
- border: 2px dotted #38f;
- background: rgba(255,255,255,0.5);
- }
-
-
-/* general typography */
-.leaflet-container {
- font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
- }
-
-
-/* general toolbar styles */
-
-.leaflet-bar {
- box-shadow: 0 1px 5px rgba(0,0,0,0.65);
- border-radius: 4px;
- }
-.leaflet-bar a,
-.leaflet-bar a:hover {
- background-color: #fff;
- border-bottom: 1px solid #ccc;
- width: 26px;
- height: 26px;
- line-height: 26px;
- display: block;
- text-align: center;
- text-decoration: none;
- color: black;
- }
-.leaflet-bar a,
-.leaflet-control-layers-toggle {
- background-position: 50% 50%;
- background-repeat: no-repeat;
- display: block;
- }
-.leaflet-bar a:hover {
- background-color: #f4f4f4;
- }
-.leaflet-bar a:first-child {
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- }
-.leaflet-bar a:last-child {
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- border-bottom: none;
- }
-.leaflet-bar a.leaflet-disabled {
- cursor: default;
- background-color: #f4f4f4;
- color: #bbb;
- }
-
-.leaflet-touch .leaflet-bar a {
- width: 30px;
- height: 30px;
- line-height: 30px;
- }
-
-
-/* zoom control */
-
-.leaflet-control-zoom-in,
-.leaflet-control-zoom-out {
- font: bold 18px 'Lucida Console', Monaco, monospace;
- text-indent: 1px;
- }
-.leaflet-control-zoom-out {
- font-size: 20px;
- }
-
-.leaflet-touch .leaflet-control-zoom-in {
- font-size: 22px;
- }
-.leaflet-touch .leaflet-control-zoom-out {
- font-size: 24px;
- }
-
-
-/* layers control */
-
-.leaflet-control-layers {
- box-shadow: 0 1px 5px rgba(0,0,0,0.4);
- background: #fff;
- border-radius: 5px;
- }
-.leaflet-control-layers-toggle {
- background-image: url(images/layers.png);
- width: 36px;
- height: 36px;
- }
-.leaflet-retina .leaflet-control-layers-toggle {
- background-image: url(images/layers-2x.png);
- background-size: 26px 26px;
- }
-.leaflet-touch .leaflet-control-layers-toggle {
- width: 44px;
- height: 44px;
- }
-.leaflet-control-layers .leaflet-control-layers-list,
-.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
- display: none;
- }
-.leaflet-control-layers-expanded .leaflet-control-layers-list {
- display: block;
- position: relative;
- }
-.leaflet-control-layers-expanded {
- padding: 6px 10px 6px 6px;
- color: #333;
- background: #fff;
- }
-.leaflet-control-layers-selector {
- margin-top: 2px;
- position: relative;
- top: 1px;
- }
-.leaflet-control-layers label {
- display: block;
- }
-.leaflet-control-layers-separator {
- height: 0;
- border-top: 1px solid #ddd;
- margin: 5px -10px 5px -6px;
- }
-
-
-/* attribution and scale controls */
-
-.leaflet-container .leaflet-control-attribution {
- background: #fff;
- background: rgba(255, 255, 255, 0.7);
- margin: 0;
- }
-.leaflet-control-attribution,
-.leaflet-control-scale-line {
- padding: 0 5px;
- color: #333;
- }
-.leaflet-control-attribution a {
- text-decoration: none;
- }
-.leaflet-control-attribution a:hover {
- text-decoration: underline;
- }
-.leaflet-container .leaflet-control-attribution,
-.leaflet-container .leaflet-control-scale {
- font-size: 11px;
- }
-.leaflet-left .leaflet-control-scale {
- margin-left: 5px;
- }
-.leaflet-bottom .leaflet-control-scale {
- margin-bottom: 5px;
- }
-.leaflet-control-scale-line {
- border: 2px solid #777;
- border-top: none;
- line-height: 1.1;
- padding: 2px 5px 1px;
- font-size: 11px;
- white-space: nowrap;
- overflow: hidden;
- -moz-box-sizing: content-box;
- box-sizing: content-box;
-
- background: #fff;
- background: rgba(255, 255, 255, 0.5);
- }
-.leaflet-control-scale-line:not(:first-child) {
- border-top: 2px solid #777;
- border-bottom: none;
- margin-top: -2px;
- }
-.leaflet-control-scale-line:not(:first-child):not(:last-child) {
- border-bottom: 2px solid #777;
- }
-
-.leaflet-touch .leaflet-control-attribution,
-.leaflet-touch .leaflet-control-layers,
-.leaflet-touch .leaflet-bar {
- box-shadow: none;
- }
-.leaflet-touch .leaflet-control-layers,
-.leaflet-touch .leaflet-bar {
- border: 2px solid rgba(0,0,0,0.2);
- background-clip: padding-box;
- }
-
-
-/* popup */
-
-.leaflet-popup {
- position: absolute;
- text-align: center;
- }
-.leaflet-popup-content-wrapper {
- padding: 1px;
- text-align: left;
- border-radius: 12px;
- }
-.leaflet-popup-content {
- margin: 13px 19px;
- line-height: 1.4;
- }
-.leaflet-popup-content p {
- margin: 18px 0;
- }
-.leaflet-popup-tip-container {
- margin: 0 auto;
- width: 40px;
- height: 20px;
- position: relative;
- overflow: hidden;
- }
-.leaflet-popup-tip {
- width: 17px;
- height: 17px;
- padding: 1px;
-
- margin: -10px auto 0;
-
- -webkit-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- transform: rotate(45deg);
- }
-.leaflet-popup-content-wrapper,
-.leaflet-popup-tip {
- background: white;
-
- box-shadow: 0 3px 14px rgba(0,0,0,0.4);
- }
-.leaflet-container a.leaflet-popup-close-button {
- position: absolute;
- top: 0;
- right: 0;
- padding: 4px 4px 0 0;
- text-align: center;
- width: 18px;
- height: 14px;
- font: 16px/14px Tahoma, Verdana, sans-serif;
- color: #c3c3c3;
- text-decoration: none;
- font-weight: bold;
- background: transparent;
- }
-.leaflet-container a.leaflet-popup-close-button:hover {
- color: #999;
- }
-.leaflet-popup-scrolled {
- overflow: auto;
- border-bottom: 1px solid #ddd;
- border-top: 1px solid #ddd;
- }
-
-.leaflet-oldie .leaflet-popup-content-wrapper {
- zoom: 1;
- }
-.leaflet-oldie .leaflet-popup-tip {
- width: 24px;
- margin: 0 auto;
-
- -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
- filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
- }
-.leaflet-oldie .leaflet-popup-tip-container {
- margin-top: -1px;
- }
-
-.leaflet-oldie .leaflet-control-zoom,
-.leaflet-oldie .leaflet-control-layers,
-.leaflet-oldie .leaflet-popup-content-wrapper,
-.leaflet-oldie .leaflet-popup-tip {
- border: 1px solid #999;
- }
-
-
-/* div icon */
-
-.leaflet-div-icon {
- background: #fff;
- border: 1px solid #666;
- }
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/leaflet.js b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/leaflet.js
deleted file mode 100644
index 0a2b8c4f..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/lib/leaflet.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-/*
- Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com
- (c) 2010-2013, Vladimir Agafonkin
- (c) 2010-2011, CloudMade
-*/
-!function(t,e,i){var n=t.L,o={};o.version="0.7","object"==typeof module&&"object"==typeof module.exports?module.exports=o:"function"==typeof define&&define.amd&&define(o),o.noConflict=function(){return t.L=n,this},t.L=o,o.Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;n>i;i++){o=s[i]||{};for(e in o)o.hasOwnProperty(e)&&(t[e]=o[e])}return t},bind:function(t,e){var i=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i||arguments)}},stamp:function(){var t=0,e="_leaflet_id";return function(i){return i[e]=i[e]||++t,i[e]}}(),invokeEach:function(t,e,i){var n,o;if("object"==typeof t){o=Array.prototype.slice.call(arguments,3);for(n in t)e.apply(i,[n,t[n]].concat(o));return!0}return!1},limitExecByInterval:function(t,e,i){var n,o;return function s(){var a=arguments;return n?(o=!0,void 0):(n=!0,setTimeout(function(){n=!1,o&&(s.apply(i,a),o=!1)},e),t.apply(i,a),void 0)}},falseFn:function(){return!1},formatNum:function(t,e){var i=Math.pow(10,e||5);return Math.round(t*i)/i},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},splitWords:function(t){return o.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=o.extend({},t.options,e),t.options},getParamString:function(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")},compileTemplate:function(t,e){return t=t.replace(/"/g,'\\"'),t=t.replace(/\{ *([\w_]+) *\}/g,function(t,i){return'" + o["'+i+'"]'+("function"==typeof e[i]?"(o)":"")+' + "'}),new Function("o",'return "'+t+'";')},template:function(t,e){var i=o.Util._templateCache=o.Util._templateCache||{};return i[t]=i[t]||o.Util.compileTemplate(t,e),i[t](e)},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function e(e){var i,n,o=["webkit","moz","o","ms"];for(i=0;i<o.length&&!n;i++)n=t[o[i]+e];return n}function i(e){var i=+new Date,o=Math.max(0,16-(i-n));return n=i+o,t.setTimeout(e,o)}var n=0,s=t.requestAnimationFrame||e("RequestAnimationFrame")||i,a=t.cancelAnimationFrame||e("CancelAnimationFrame")||e("CancelRequestAnimationFrame")||function(e){t.clearTimeout(e)};o.Util.requestAnimFrame=function(e,n,a,r){return e=o.bind(e,n),a&&s===i?(e(),void 0):s.call(t,e,r)},o.Util.cancelAnimFrame=function(e){e&&a.call(t,e)}}(),o.extend=o.Util.extend,o.bind=o.Util.bind,o.stamp=o.Util.stamp,o.setOptions=o.Util.setOptions,o.Class=function(){},o.Class.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this._initHooks&&this.callInitHooks()},i=function(){};i.prototype=this.prototype;var n=new i;n.constructor=e,e.prototype=n;for(var s in this)this.hasOwnProperty(s)&&"prototype"!==s&&(e[s]=this[s]);t.statics&&(o.extend(e,t.statics),delete t.statics),t.includes&&(o.Util.extend.apply(null,[n].concat(t.includes)),delete t.includes),t.options&&n.options&&(t.options=o.extend({},n.options,t.options)),o.extend(n,t),n._initHooks=[];var a=this;return e.__super__=a.prototype,n.callInitHooks=function(){if(!this._initHooksCalled){a.prototype.callInitHooks&&a.prototype.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=n._initHooks.length;e>t;t++)n._initHooks[t].call(this)}},e},o.Class.include=function(t){o.extend(this.prototype,t)},o.Class.mergeOptions=function(t){o.extend(this.prototype.options,t)},o.Class.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i)};var s="_leaflet_events";o.Mixin={},o.Mixin.Events={addEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addEventListener,this,e,i))return this;var n,a,r,h,l,u,c,d=this[s]=this[s]||{},p=i&&i!==this&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)r={action:e,context:i||this},h=t[n],p?(l=h+"_idx",u=l+"_len",c=d[l]=d[l]||{},c[p]||(c[p]=[],d[u]=(d[u]||0)+1),c[p].push(r)):(d[h]=d[h]||[],d[h].push(r));return this},hasEventListeners:function(t){var e=this[s];return!!e&&(t in e&&e[t].length>0||t+"_idx"in e&&e[t+"_idx_len"]>0)},removeEventListener:function(t,e,i){if(!this[s])return this;if(!t)return this.clearAllEventListeners();if(o.Util.invokeEach(t,this.removeEventListener,this,e,i))return this;var n,a,r,h,l,u,c,d,p,_=this[s],m=i&&i!==this&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)if(r=t[n],u=r+"_idx",c=u+"_len",d=_[u],e){if(h=m&&d?d[m]:_[r]){for(l=h.length-1;l>=0;l--)h[l].action!==e||i&&h[l].context!==i||(p=h.splice(l,1),p[0].action=o.Util.falseFn);i&&d&&0===h.length&&(delete d[m],_[c]--)}}else delete _[r],delete _[u],delete _[c];return this},clearAllEventListeners:function(){return delete this[s],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var i,n,a,r,h,l=o.Util.extend({},e,{type:t,target:this}),u=this[s];if(u[t])for(i=u[t].slice(),n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context,l);r=u[t+"_idx"];for(h in r)if(i=r[h].slice())for(n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context,l);return this},addOneTimeEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addOneTimeEventListener,this,e,i))return this;var n=o.bind(function(){this.removeEventListener(t,e,i).removeEventListener(t,n,i)},this);return this.addEventListener(t,e,i).addEventListener(t,n,i)}},o.Mixin.Events.on=o.Mixin.Events.addEventListener,o.Mixin.Events.off=o.Mixin.Events.removeEventListener,o.Mixin.Events.once=o.Mixin.Events.addOneTimeEventListener,o.Mixin.Events.fire=o.Mixin.Events.fireEvent,function(){var n="ActiveXObject"in t,s=n&&!e.addEventListener,a=navigator.userAgent.toLowerCase(),r=-1!==a.indexOf("webkit"),h=-1!==a.indexOf("chrome"),l=-1!==a.indexOf("phantom"),u=-1!==a.indexOf("android"),c=-1!==a.search("android [23]"),d=-1!==a.indexOf("gecko"),p=typeof orientation!=i+"",_=t.navigator&&t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints&&!t.PointerEvent,m=t.PointerEvent&&t.navigator.pointerEnabled&&t.navigator.maxTouchPoints||_,f="devicePixelRatio"in t&&t.devicePixelRatio>1||"matchMedia"in t&&t.matchMedia("(min-resolution:144dpi)")&&t.matchMedia("(min-resolution:144dpi)").matches,g=e.documentElement,v=n&&"transition"in g.style,y="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix,P="MozPerspective"in g.style,L="OTransition"in g.style,x=!t.L_DISABLE_3D&&(v||y||P||L)&&!l,w=!t.L_NO_TOUCH&&!l&&function(){var t="ontouchstart";if(m||t in g)return!0;var i=e.createElement("div"),n=!1;return i.setAttribute?(i.setAttribute(t,"return;"),"function"==typeof i[t]&&(n=!0),i.removeAttribute(t),i=null,n):!1}();o.Browser={ie:n,ielt9:s,webkit:r,gecko:d&&!r&&!t.opera&&!n,android:u,android23:c,chrome:h,ie3d:v,webkit3d:y,gecko3d:P,opera3d:L,any3d:x,mobile:p,mobileWebkit:p&&r,mobileWebkit3d:p&&y,mobileOpera:p&&t.opera,touch:w,msPointer:_,pointer:m,retina:f}}(),o.Point=function(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e},o.Point.prototype={clone:function(){return new o.Point(this.x,this.y)},add:function(t){return this.clone()._add(o.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(o.point(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},distanceTo:function(t){t=o.point(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=o.point(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=o.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+o.Util.formatNum(this.x)+", "+o.Util.formatNum(this.y)+")"}},o.point=function(t,e,n){return t instanceof o.Point?t:o.Util.isArray(t)?new o.Point(t[0],t[1]):t===i||null===t?t:new o.Point(t,e,n)},o.Bounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.Bounds.prototype={extend:function(t){return t=o.point(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new o.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new o.Point(this.min.x,this.max.y)},getTopRight:function(){return new o.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return t="number"==typeof t[0]||t instanceof o.Point?o.point(t):o.bounds(t),t instanceof o.Bounds?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=o.bounds(t);var e=this.min,i=this.max,n=t.min,s=t.max,a=s.x>=e.x&&n.x<=i.x,r=s.y>=e.y&&n.y<=i.y;return a&&r},isValid:function(){return!(!this.min||!this.max)}},o.bounds=function(t,e){return!t||t instanceof o.Bounds?t:new o.Bounds(t,e)},o.Transformation=function(t,e,i,n){this._a=t,this._b=e,this._c=i,this._d=n},o.Transformation.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new o.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},o.DomUtil={get:function(t){return"string"==typeof t?e.getElementById(t):t},getStyle:function(t,i){var n=t.style[i];if(!n&&t.currentStyle&&(n=t.currentStyle[i]),(!n||"auto"===n)&&e.defaultView){var o=e.defaultView.getComputedStyle(t,null);n=o?o[i]:null}return"auto"===n?null:n},getViewportOffset:function(t){var i,n=0,s=0,a=t,r=e.body,h=e.documentElement;do{if(n+=a.offsetTop||0,s+=a.offsetLeft||0,n+=parseInt(o.DomUtil.getStyle(a,"borderTopWidth"),10)||0,s+=parseInt(o.DomUtil.getStyle(a,"borderLeftWidth"),10)||0,i=o.DomUtil.getStyle(a,"position"),a.offsetParent===r&&"absolute"===i)break;if("fixed"===i){n+=r.scrollTop||h.scrollTop||0,s+=r.scrollLeft||h.scrollLeft||0;break}if("relative"===i&&!a.offsetLeft){var l=o.DomUtil.getStyle(a,"width"),u=o.DomUtil.getStyle(a,"max-width"),c=a.getBoundingClientRect();("none"!==l||"none"!==u)&&(s+=c.left+a.clientLeft),n+=c.top+(r.scrollTop||h.scrollTop||0);break}a=a.offsetParent}while(a);a=t;do{if(a===r)break;n-=a.scrollTop||0,s-=a.scrollLeft||0,a=a.parentNode}while(a);return new o.Point(s,n)},documentIsLtr:function(){return o.DomUtil._docIsLtrCached||(o.DomUtil._docIsLtrCached=!0,o.DomUtil._docIsLtr="ltr"===o.DomUtil.getStyle(e.body,"direction")),o.DomUtil._docIsLtr},create:function(t,i,n){var o=e.createElement(t);return o.className=i,n&&n.appendChild(o),o},hasClass:function(t,e){if(t.classList!==i)return t.classList.contains(e);var n=o.DomUtil._getClass(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)},addClass:function(t,e){if(t.classList!==i)for(var n=o.Util.splitWords(e),s=0,a=n.length;a>s;s++)t.classList.add(n[s]);else if(!o.DomUtil.hasClass(t,e)){var r=o.DomUtil._getClass(t);o.DomUtil._setClass(t,(r?r+" ":"")+e)}},removeClass:function(t,e){t.classList!==i?t.classList.remove(e):o.DomUtil._setClass(t,o.Util.trim((" "+o.DomUtil._getClass(t)+" ").replace(" "+e+" "," ")))},_setClass:function(t,e){t.className.baseVal===i?t.className=e:t.className.baseVal=e},_getClass:function(t){return t.className.baseVal===i?t.className:t.className.baseVal},setOpacity:function(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(o){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}},testProp:function(t){for(var i=e.documentElement.style,n=0;n<t.length;n++)if(t[n]in i)return t[n];return!1},getTranslateString:function(t){var e=o.Browser.webkit3d,i="translate"+(e?"3d":"")+"(",n=(e?",0":"")+")";return i+t.x+"px,"+t.y+"px"+n},getScaleString:function(t,e){var i=o.DomUtil.getTranslateString(e.add(e.multiplyBy(-1*t))),n=" scale("+t+") ";return i+n},setPosition:function(t,e,i){t._leaflet_pos=e,!i&&o.Browser.any3d?(t.style[o.DomUtil.TRANSFORM]=o.DomUtil.getTranslateString(e),o.Browser.mobileWebkit3d&&(t.style.WebkitBackfaceVisibility="hidden")):(t.style.left=e.x+"px",t.style.top=e.y+"px")},getPosition:function(t){return t._leaflet_pos}},o.DomUtil.TRANSFORM=o.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),o.DomUtil.TRANSITION=o.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),o.DomUtil.TRANSITION_END="webkitTransition"===o.DomUtil.TRANSITION||"OTransition"===o.DomUtil.TRANSITION?o.DomUtil.TRANSITION+"End":"transitionend",function(){if("onselectstart"in e)o.extend(o.DomUtil,{disableTextSelection:function(){o.DomEvent.on(t,"selectstart",o.DomEvent.preventDefault)},enableTextSelection:function(){o.DomEvent.off(t,"selectstart",o.DomEvent.preventDefault)}});else{var i=o.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);o.extend(o.DomUtil,{disableTextSelection:function(){if(i){var t=e.documentElement.style;this._userSelect=t[i],t[i]="none"}},enableTextSelection:function(){i&&(e.documentElement.style[i]=this._userSelect,delete this._userSelect)}})}o.extend(o.DomUtil,{disableImageDrag:function(){o.DomEvent.on(t,"dragstart",o.DomEvent.preventDefault)},enableImageDrag:function(){o.DomEvent.off(t,"dragstart",o.DomEvent.preventDefault)}})}(),o.LatLng=function(t,e,n){if(t=parseFloat(t),e=parseFloat(e),isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=t,this.lng=e,n!==i&&(this.alt=parseFloat(n))},o.extend(o.LatLng,{DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,MAX_MARGIN:1e-9}),o.LatLng.prototype={equals:function(t){if(!t)return!1;t=o.latLng(t);var e=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return e<=o.LatLng.MAX_MARGIN},toString:function(t){return"LatLng("+o.Util.formatNum(this.lat,t)+", "+o.Util.formatNum(this.lng,t)+")"},distanceTo:function(t){t=o.latLng(t);var e=6378137,i=o.LatLng.DEG_TO_RAD,n=(t.lat-this.lat)*i,s=(t.lng-this.lng)*i,a=this.lat*i,r=t.lat*i,h=Math.sin(n/2),l=Math.sin(s/2),u=h*h+l*l*Math.cos(a)*Math.cos(r);return 2*e*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))},wrap:function(t,e){var i=this.lng;return t=t||-180,e=e||180,i=(i+e)%(e-t)+(t>i||i===e?e:t),new o.LatLng(this.lat,i)}},o.latLng=function(t,e){return t instanceof o.LatLng?t:o.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new o.LatLng(t[0],t[1],t[2]):null:t===i||null===t?t:"object"==typeof t&&"lat"in t?new o.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===i?null:new o.LatLng(t,e)},o.LatLngBounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=o.latLng(t);return t=null!==e?e:o.latLngBounds(t),t instanceof o.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(t.lat,this._southWest.lat),this._southWest.lng=Math.min(t.lng,this._southWest.lng),this._northEast.lat=Math.max(t.lat,this._northEast.lat),this._northEast.lng=Math.max(t.lng,this._northEast.lng)):(this._southWest=new o.LatLng(t.lat,t.lng),this._northEast=new o.LatLng(t.lat,t.lng)):t instanceof o.LatLngBounds&&(this.extend(t._southWest),this.extend(t._northEast)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new o.LatLngBounds(new o.LatLng(e.lat-n,e.lng-s),new o.LatLng(i.lat+n,i.lng+s))},getCenter:function(){return new o.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new o.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new o.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof o.LatLng?o.latLng(t):o.latLngBounds(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof o.LatLngBounds?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=o.latLngBounds(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),a=s.lat>=e.lat&&n.lat<=i.lat,r=s.lng>=e.lng&&n.lng<=i.lng;return a&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return t?(t=o.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast())):!1},isValid:function(){return!(!this._southWest||!this._northEast)}},o.latLngBounds=function(t,e){return!t||t instanceof o.LatLngBounds?t:new o.LatLngBounds(t,e)},o.Projection={},o.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=t.lng*e,a=n*e;return a=Math.log(Math.tan(Math.PI/4+a/2)),new o.Point(s,a)},unproject:function(t){var e=o.LatLng.RAD_TO_DEG,i=t.x*e,n=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e;return new o.LatLng(n,i)}},o.Projection.LonLat={project:function(t){return new o.Point(t.lng,t.lat)},unproject:function(t){return new o.LatLng(t.y,t.x)}},o.CRS={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},scale:function(t){return 256*Math.pow(2,t)},getSize:function(t){var e=this.scale(t);return o.point(e,e)}},o.CRS.Simple=o.extend({},o.CRS,{projection:o.Projection.LonLat,transformation:new o.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),o.CRS.EPSG3857=o.extend({},o.CRS,{code:"EPSG:3857",projection:o.Projection.SphericalMercator,transformation:new o.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){var e=this.projection.project(t),i=6378137;return e.multiplyBy(i)}}),o.CRS.EPSG900913=o.extend({},o.CRS.EPSG3857,{code:"EPSG:900913"}),o.CRS.EPSG4326=o.extend({},o.CRS,{code:"EPSG:4326",projection:o.Projection.LonLat,transformation:new o.Transformation(1/360,.5,-1/360,.5)}),o.Map=o.Class.extend({includes:o.Mixin.Events,options:{crs:o.CRS.EPSG3857,fadeAnimation:o.DomUtil.TRANSITION&&!o.Browser.android23,trackResize:!0,markerZoomAnimation:o.DomUtil.TRANSITION&&o.Browser.any3d},initialize:function(t,e){e=o.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=o.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==i&&this.setView(o.latLng(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(e.layers)},setView:function(t,e){return e=e===i?this.getZoom():e,this._resetView(o.latLng(t),this._limitZoom(e)),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=this._limitZoom(t),this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t||1),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t||1),e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),a=t instanceof o.Point?t:this.latLngToContainerPoint(t),r=a.subtract(s).multiplyBy(1-1/n),h=this.containerPointToLatLng(s.add(r));return this.setView(h,e,{zoom:i})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():o.latLngBounds(t);var i=o.point(e.paddingTopLeft||e.padding||[0,0]),n=o.point(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n)),a=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),s),h=this.project(t.getNorthEast(),s),l=this.unproject(r.add(h).divideBy(2).add(a),s);return s=e&&e.maxZoom?Math.min(e.maxZoom,s):s,this.setView(l,s,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t){return this.fire("movestart"),this._rawPanBy(o.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t){return t=o.latLngBounds(t),this.options.maxBounds=t,t?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(t,e){var i=this.getCenter(),n=this._limitCenter(i,this._zoom,t);return i.equals(n)?this:this.panTo(n,e)},addLayer:function(t){var e=o.stamp(t);return this._layers[e]?this:(this._layers[e]=t,!t.options||isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[e]=t,this._updateZoomLevels()),this.options.zoomAnimation&&o.TileLayer&&t instanceof o.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(t),this)},removeLayer:function(t){var e=o.stamp(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&this.fire("layerremove",{layer:t}),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels()),this.options.zoomAnimation&&o.TileLayer&&t instanceof o.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this)),this):this},hasLayer:function(t){return t?o.stamp(t)in this._layers:!1},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},invalidateSize:function(t){t=o.extend({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();if(this._sizeChanged=!0,this._initialCenter=null,!this._loaded)return this;var i=this.getSize(),n=e.divideBy(2).round(),s=i.divideBy(2).round(),a=n.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(t){this._container._leaflet=i}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new o.LatLngBounds(e,i)},getMinZoom:function(){return this.options.minZoom===i?this._layersMinZoom===i?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===i?this._layersMaxZoom===i?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=o.latLngBounds(t);var n,s=this.getMinZoom()-(e?1:0),a=this.getMaxZoom(),r=this.getSize(),h=t.getNorthWest(),l=t.getSouthEast(),u=!0;i=o.point(i||[0,0]);do s++,n=this.project(l,s).subtract(this.project(h,s)).add(i),u=e?n.x<r.x||n.y<r.y:r.contains(n);while(u&&a>=s);return u&&e?null:e?s:s-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new o.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var t=this._getTopLeftPoint();return new o.Bounds(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t){var e=this.options.crs;return e.scale(t)/e.scale(this._zoom)},getScaleZoom:function(t){return this._zoom+Math.log(t)/Math.LN2},project:function(t,e){return e=e===i?this._zoom:e,this.options.crs.latLngToPoint(o.latLng(t),e)},unproject:function(t,e){return e=e===i?this._zoom:e,this.options.crs.pointToLatLng(o.point(t),e)},layerPointToLatLng:function(t){var e=o.point(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(o.latLng(t))._round();return e._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(t){return o.point(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return o.point(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(o.point(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(o.latLng(t)))},mouseEventToContainerPoint:function(t){return o.DomEvent.getMousePosition(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=o.DomUtil.get(t);if(!e)throw new Error("Map container not found.");if(e._leaflet)throw new Error("Map container is already initialized.");e._leaflet=!0},_initLayout:function(){var t=this._container;o.DomUtil.addClass(t,"leaflet-container"+(o.Browser.touch?" leaflet-touch":"")+(o.Browser.retina?" leaflet-retina":"")+(o.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var e=o.DomUtil.getStyle(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._mapPane=t.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=t.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),t.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),t.shadowPane=this._createPane("leaflet-shadow-pane"),t.overlayPane=this._createPane("leaflet-overlay-pane"),t.markerPane=this._createPane("leaflet-marker-pane"),t.popupPane=this._createPane("leaflet-popup-pane");var e=" leaflet-zoom-hide";this.options.markerZoomAnimation||(o.DomUtil.addClass(t.markerPane,e),o.DomUtil.addClass(t.shadowPane,e),o.DomUtil.addClass(t.popupPane,e))},_createPane:function(t,e){return o.DomUtil.create("div",t,e||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(t){t=t?o.Util.isArray(t)?t:[t]:[];for(var e=0,i=t.length;i>e;e++)this.addLayer(t[e])},_resetView:function(t,e,i,n){var s=this._zoom!==e;n||(this.fire("movestart"),s&&this.fire("zoomstart")),this._zoom=e,this._initialCenter=t,this._initialTopLeftPoint=this._getNewTopLeftPoint(t),i?this._initialTopLeftPoint._add(this._getMapPanePos()):o.DomUtil.setPosition(this._mapPane,new o.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var a=!this._loaded;this._loaded=!0,a&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("viewreset",{hard:!i}),this.fire("move"),(s||n)&&this.fire("zoomend"),this.fire("moveend",{hard:!i})},_rawPanBy:function(t){o.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,e=1/0,n=-1/0,o=this._getZoomSpan();for(t in this._zoomBoundLayers){var s=this._zoomBoundLayers[t];isNaN(s.options.minZoom)||(e=Math.min(e,s.options.minZoom)),isNaN(s.options.maxZoom)||(n=Math.max(n,s.options.maxZoom))}t===i?this._layersMaxZoom=this._layersMinZoom=i:(this._layersMaxZoom=n,this._layersMinZoom=e),o!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){if(o.DomEvent){e=e||"on",o.DomEvent[e](this._container,"click",this._onMouseClick,this);var i,n,s=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(i=0,n=s.length;n>i;i++)o.DomEvent[e](this._container,s[i],this._fireMouseEvent,this);this.options.trackResize&&o.DomEvent[e](t,"resize",this._onResize,this)}},_onResize:function(){o.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=o.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(t){!this._loaded||!t._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||o.DomEvent._skipped(t)||(this.fire("preclick"),this._fireMouseEvent(t))},_fireMouseEvent:function(t){if(this._loaded&&!o.DomEvent._skipped(t)){var e=t.type;if(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,this.hasEventListeners(e)){"contextmenu"===e&&o.DomEvent.preventDefault(t);var i=this.mouseEventToContainerPoint(t),n=this.containerPointToLayerPoint(i),s=this.layerPointToLatLng(n);this.fire(e,{latlng:s,layerPoint:n,containerPoint:i,originalEvent:t})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var t=0,e=this._handlers.length;e>t;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,this):this.on("load",t,e),this},_layerAdd:function(t){t.onAdd(this),this.fire("layeradd",{layer:t})},_getMapPanePos:function(){return o.DomUtil.getPosition(this._mapPane)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewTopLeftPoint(i,e).add(this._getMapPanePos());return this.project(t,e)._subtract(n)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),s=this.getSize().divideBy(2),a=new o.Bounds(n.subtract(s),n.add(s)),r=this._getBoundsOffset(a,i,e);return this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new o.Bounds(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=this.project(e.getNorthWest(),i).subtract(t.min),s=this.project(e.getSouthEast(),i).subtract(t.max),a=this._rebound(n.x,-s.x),r=this._rebound(n.y,-s.y);return new o.Point(a,r)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom();return Math.max(e,Math.min(i,t))}}),o.map=function(t,e){return new o.Map(t,e)},o.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=this.R_MAJOR,a=this.R_MINOR,r=t.lng*e*s,h=n*e,l=a/s,u=Math.sqrt(1-l*l),c=u*Math.sin(h);c=Math.pow((1-c)/(1+c),.5*u);var d=Math.tan(.5*(.5*Math.PI-h))/c;
-return h=-s*Math.log(d),new o.Point(r,h)},unproject:function(t){for(var e,i=o.LatLng.RAD_TO_DEG,n=this.R_MAJOR,s=this.R_MINOR,a=t.x*i/n,r=s/n,h=Math.sqrt(1-r*r),l=Math.exp(-t.y/n),u=Math.PI/2-2*Math.atan(l),c=15,d=1e-7,p=c,_=.1;Math.abs(_)>d&&--p>0;)e=h*Math.sin(u),_=Math.PI/2-2*Math.atan(l*Math.pow((1-e)/(1+e),.5*h))-u,u+=_;return new o.LatLng(u*i,a)}},o.CRS.EPSG3395=o.extend({},o.CRS,{code:"EPSG:3395",projection:o.Projection.Mercator,transformation:function(){var t=o.Projection.Mercator,e=t.R_MAJOR,i=.5/(Math.PI*e);return new o.Transformation(i,.5,-i,.5)}()}),o.TileLayer=o.Class.extend({includes:o.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:o.Browser.mobile,updateWhenIdle:o.Browser.mobile},initialize:function(t,e){e=o.setOptions(this,e),e.detectRetina&&o.Browser.retina&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomOffset++,e.minZoom>0&&e.minZoom--,this.options.maxZoom--),e.bounds&&(e.bounds=o.latLngBounds(e.bounds)),this._url=t;var i=this.options.subdomains;"string"==typeof i&&(this.options.subdomains=i.split(""))},onAdd:function(t){this._map=t,this._animated=t._zoomAnimated,this._initContainer(),t.on({viewreset:this._reset,moveend:this._update},this),this._animated&&t.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=o.Util.limitExecByInterval(this._update,150,this),t.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this._container.parentNode.removeChild(this._container),t.off({viewreset:this._reset,moveend:this._update},this),this._animated&&t.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||t.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var t=this._map._panes.tilePane;return this._container&&(t.appendChild(this._container),this._setAutoZIndex(t,Math.max)),this},bringToBack:function(){var t=this._map._panes.tilePane;return this._container&&(t.insertBefore(this._container,t.firstChild),this._setAutoZIndex(t,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==i&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t,e){var i,n,o,s=t.children,a=-e(1/0,-1/0);for(n=0,o=s.length;o>n;n++)s[n]!==this._container&&(i=parseInt(s[n].style.zIndex,10),isNaN(i)||(a=e(a,i)));this.options.zIndex=this._container.style.zIndex=(isFinite(a)?a:0)+e(1,-1)},_updateOpacity:function(){var t,e=this._tiles;if(o.Browser.ielt9)for(t in e)o.DomUtil.setOpacity(e[t],this.options.opacity);else o.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane;if(!this._container){if(this._container=o.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var e="leaflet-tile-container";this._bgBuffer=o.DomUtil.create("div",e,this._container),this._tileContainer=o.DomUtil.create("div",e,this._container)}else this._tileContainer=this._container;t.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(t){for(var e in this._tiles)this.fire("tileunload",{tile:this._tiles[e]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&t&&t.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var t=this._map,e=t.getZoom()+this.options.zoomOffset,i=this.options.maxNativeZoom,n=this.options.tileSize;return i&&e>i&&(n=Math.round(t.getZoomScale(e)/t.getZoomScale(i)*n)),n},_update:function(){if(this._map){var t=this._map,e=t.getPixelBounds(),i=t.getZoom(),n=this._getTileSize();if(!(i>this.options.maxZoom||i<this.options.minZoom)){var s=o.bounds(e.min.divideBy(n)._floor(),e.max.divideBy(n)._floor());this._addTilesFromCenterOut(s),(this.options.unloadInvisibleTiles||this.options.reuseTiles)&&this._removeOtherTiles(s)}}},_addTilesFromCenterOut:function(t){var i,n,s,a=[],r=t.getCenter();for(i=t.min.y;i<=t.max.y;i++)for(n=t.min.x;n<=t.max.x;n++)s=new o.Point(n,i),this._tileShouldBeLoaded(s)&&a.push(s);var h=a.length;if(0!==h){a.sort(function(t,e){return t.distanceTo(r)-e.distanceTo(r)});var l=e.createDocumentFragment();for(this._tilesToLoad||this.fire("loading"),this._tilesToLoad+=h,n=0;h>n;n++)this._addTile(a[n],l);this._tileContainer.appendChild(l)}},_tileShouldBeLoaded:function(t){if(t.x+":"+t.y in this._tiles)return!1;var e=this.options;if(!e.continuousWorld){var i=this._getWrapTileNum();if(e.noWrap&&(t.x<0||t.x>=i.x)||t.y<0||t.y>=i.y)return!1}if(e.bounds){var n=e.tileSize,o=t.multiplyBy(n),s=o.add([n,n]),a=this._map.unproject(o),r=this._map.unproject(s);if(e.continuousWorld||e.noWrap||(a=a.wrap(),r=r.wrap()),!e.bounds.intersects([a,r]))return!1}return!0},_removeOtherTiles:function(t){var e,i,n,o;for(o in this._tiles)e=o.split(":"),i=parseInt(e[0],10),n=parseInt(e[1],10),(i<t.min.x||i>t.max.x||n<t.min.y||n>t.max.y)&&this._removeTile(o)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(o.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),o.Browser.android||(e.onload=null,e.src=o.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var i=this._getTilePos(t),n=this._getTile();o.DomUtil.setPosition(n,i,o.Browser.chrome||o.Browser.android23),this._tiles[t.x+":"+t.y]=n,this._loadTile(n,t),n.parentNode!==this._tileContainer&&e.appendChild(n)},_getZoomForUrl:function(){var t=this.options,e=this._map.getZoom();return t.zoomReverse&&(e=t.maxZoom-e),e+=t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e},_getTilePos:function(t){var e=this._map.getPixelOrigin(),i=this._getTileSize();return t.multiplyBy(i).subtract(e)},getTileUrl:function(t){return o.Util.template(this._url,o.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){var t=this._map.options.crs,e=t.getSize(this._map.getZoom());return e.divideBy(this.options.tileSize)},_adjustTilePoint:function(t){var e=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(t.x=(t.x%e.x+e.x)%e.x),this.options.tms&&(t.y=e.y-t.y-1),t.z=this._getZoomForUrl()},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var t=this._unusedTiles.pop();return this._resetTile(t),t}return this._createTile()},_resetTile:function(){},_createTile:function(){var t=o.DomUtil.create("img","leaflet-tile");return t.style.width=t.style.height=this._getTileSize()+"px",t.galleryimg="no",t.onselectstart=t.onmousemove=o.Util.falseFn,o.Browser.ielt9&&this.options.opacity!==i&&o.DomUtil.setOpacity(t,this.options.opacity),o.Browser.mobileWebkit3d&&(t.style.WebkitBackfaceVisibility="hidden"),t},_loadTile:function(t,e){t._layer=this,t.onload=this._tileOnLoad,t.onerror=this._tileOnError,this._adjustTilePoint(e),t.src=this.getTileUrl(e),this.fire("tileloadstart",{tile:t,url:t.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&o.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(o.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var t=this._layer;this.src!==o.Util.emptyImageUrl&&(o.DomUtil.addClass(this,"leaflet-tile-loaded"),t.fire("tileload",{tile:this,url:this.src})),t._tileLoaded()},_tileOnError:function(){var t=this._layer;t.fire("tileerror",{tile:this,url:this.src});var e=t.options.errorTileUrl;e&&(this.src=e),t._tileLoaded()}}),o.tileLayer=function(t,e){return new o.TileLayer(t,e)},o.TileLayer.WMS=o.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(t,e){this._url=t;var i=o.extend({},this.defaultWmsParams),n=e.tileSize||this.options.tileSize;i.width=i.height=e.detectRetina&&o.Browser.retina?2*n:n;for(var s in e)this.options.hasOwnProperty(s)||"crs"===s||(i[s]=e[s]);this.wmsParams=i,o.setOptions(this,e)},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,o.TileLayer.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._map,i=this.options.tileSize,n=t.multiplyBy(i),s=n.add([i,i]),a=this._crs.project(e.unproject(n,t.z)),r=this._crs.project(e.unproject(s,t.z)),h=this._wmsVersion>=1.3&&this._crs===o.CRS.EPSG4326?[r.y,a.x,a.y,r.x].join(","):[a.x,r.y,r.x,a.y].join(","),l=o.Util.template(this._url,{s:this._getSubdomain(t)});return l+o.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+h},setParams:function(t,e){return o.extend(this.wmsParams,t),e||this.redraw(),this}}),o.tileLayer.wms=function(t,e){return new o.TileLayer.WMS(t,e)},o.TileLayer.Canvas=o.TileLayer.extend({options:{async:!1},initialize:function(t){o.setOptions(this,t)},redraw:function(){this._map&&(this._reset({hard:!0}),this._update());for(var t in this._tiles)this._redrawTile(this._tiles[t]);return this},_redrawTile:function(t){this.drawTile(t,t._tilePoint,this._map._zoom)},_createTile:function(){var t=o.DomUtil.create("canvas","leaflet-tile");return t.width=t.height=this.options.tileSize,t.onselectstart=t.onmousemove=o.Util.falseFn,t},_loadTile:function(t,e){t._layer=this,t._tilePoint=e,this._redrawTile(t),this.options.async||this.tileDrawn(t)},drawTile:function(){},tileDrawn:function(t){this._tileOnLoad.call(t)}}),o.tileLayer.canvas=function(t){return new o.TileLayer.Canvas(t)},o.ImageOverlay=o.Class.extend({includes:o.Mixin.Events,options:{opacity:1},initialize:function(t,e,i){this._url=t,this._bounds=o.latLngBounds(e),o.setOptions(this,i)},onAdd:function(t){this._map=t,this._image||this._initImage(),t._panes.overlayPane.appendChild(this._image),t.on("viewreset",this._reset,this),t.options.zoomAnimation&&o.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._image),t.off("viewreset",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var t=this._map._panes.overlayPane;return this._image&&t.insertBefore(this._image,t.firstChild),this},setUrl:function(t){this._url=t,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=o.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&o.Browser.any3d?o.DomUtil.addClass(this._image,"leaflet-zoom-animated"):o.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),o.extend(this._image,{galleryimg:"no",onselectstart:o.Util.falseFn,onmousemove:o.Util.falseFn,onload:o.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(t){var e=this._map,i=this._image,n=e.getZoomScale(t.zoom),s=this._bounds.getNorthWest(),a=this._bounds.getSouthEast(),r=e._latLngToNewLayerPoint(s,t.zoom,t.center),h=e._latLngToNewLayerPoint(a,t.zoom,t.center)._subtract(r),l=r._add(h._multiplyBy(.5*(1-1/n)));i.style[o.DomUtil.TRANSFORM]=o.DomUtil.getTranslateString(l)+" scale("+n+") "},_reset:function(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),i=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);o.DomUtil.setPosition(t,e),t.style.width=i.x+"px",t.style.height=i.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){o.DomUtil.setOpacity(this._image,this.options.opacity)}}),o.imageOverlay=function(t,e,i){return new o.ImageOverlay(t,e,i)},o.Icon=o.Class.extend({options:{className:""},initialize:function(t){o.setOptions(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n;return n=e&&"IMG"===e.tagName?this._createImg(i,e):this._createImg(i),this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i,n=this.options,s=o.point(n[e+"Size"]);i="shadow"===e?o.point(n.shadowAnchor||n.iconAnchor):o.point(n.iconAnchor),!i&&s&&(i=s.divideBy(2,!0)),t.className="leaflet-marker-"+e+" "+n.className,i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,i){return i=i||e.createElement("img"),i.src=t,i},_getIconUrl:function(t){return o.Browser.retina&&this.options[t+"RetinaUrl"]?this.options[t+"RetinaUrl"]:this.options[t+"Url"]}}),o.icon=function(t){return new o.Icon(t)},o.Icon.Default=o.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(t){var e=t+"Url";if(this.options[e])return this.options[e];o.Browser.retina&&"icon"===t&&(t+="-2x");var i=o.Icon.Default.imagePath;if(!i)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return i+"/marker-"+t+".png"}}),o.Icon.Default.imagePath=function(){var t,i,n,o,s,a=e.getElementsByTagName("script"),r=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t=0,i=a.length;i>t;t++)if(n=a[t].src,o=n.match(r))return s=n.split(r)[0],(s?s+"/":"")+"images"}(),o.Marker=o.Class.extend({includes:o.Mixin.Events,options:{icon:new o.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(t,e){o.setOptions(this,e),this._latlng=o.latLng(t)},onAdd:function(t){this._map=t,t.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),t.options.zoomAnimation&&t.options.markerZoomAnimation&&t.on("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),t.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=o.latLng(t),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update(),this},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){if(this._icon){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e=this._map,i=e.options.zoomAnimation&&e.options.markerZoomAnimation,n=i?"leaflet-zoom-animated":"leaflet-zoom-hide",s=t.icon.createIcon(this._icon),a=!1;s!==this._icon&&(this._icon&&this._removeIcon(),a=!0,t.title&&(s.title=t.title),t.alt&&(s.alt=t.alt)),o.DomUtil.addClass(s,n),t.keyboard&&(s.tabIndex="0"),this._icon=s,this._initInteraction(),t.riseOnHover&&o.DomEvent.on(s,"mouseover",this._bringToFront,this).on(s,"mouseout",this._resetZIndex,this);var r=t.icon.createShadow(this._shadow),h=!1;r!==this._shadow&&(this._removeShadow(),h=!0),r&&o.DomUtil.addClass(r,n),this._shadow=r,t.opacity<1&&this._updateOpacity();var l=this._map._panes;a&&l.markerPane.appendChild(this._icon),r&&h&&l.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&o.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(t){o.DomUtil.setPosition(this._icon,t),this._shadow&&o.DomUtil.setPosition(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];o.DomUtil.addClass(t,"leaflet-clickable"),o.DomEvent.on(t,"click",this._onMouseClick,this),o.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;i<e.length;i++)o.DomEvent.on(t,e[i],this._fireMouseEvent,this);o.Handler.MarkerDrag&&(this.dragging=new o.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_onMouseClick:function(t){var e=this.dragging&&this.dragging.moved();(this.hasEventListeners(t.type)||e)&&o.DomEvent.stopPropagation(t),e||(this.dragging&&this.dragging._enabled||!this._map.dragging||!this._map.dragging.moved())&&this.fire(t.type,{originalEvent:t,latlng:this._latlng})},_onKeyPress:function(t){13===t.keyCode&&this.fire("click",{originalEvent:t,latlng:this._latlng})},_fireMouseEvent:function(t){this.fire(t.type,{originalEvent:t,latlng:this._latlng}),"contextmenu"===t.type&&this.hasEventListeners(t.type)&&o.DomEvent.preventDefault(t),"mousedown"!==t.type?o.DomEvent.stopPropagation(t):o.DomEvent.preventDefault(t)},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){o.DomUtil.setOpacity(this._icon,this.options.opacity),this._shadow&&o.DomUtil.setOpacity(this._shadow,this.options.opacity)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}}),o.marker=function(t,e){return new o.Marker(t,e)},o.DivIcon=o.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function(t){var i=t&&"DIV"===t.tagName?t:e.createElement("div"),n=this.options;return i.innerHTML=n.html!==!1?n.html:"",n.bgPos&&(i.style.backgroundPosition=-n.bgPos.x+"px "+-n.bgPos.y+"px"),this._setIconStyles(i,"icon"),i},createShadow:function(){return null}}),o.divIcon=function(t){return new o.DivIcon(t)},o.Map.mergeOptions({closePopupOnClick:!0}),o.Popup=o.Class.extend({includes:o.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function(t,e){o.setOptions(this,t),this._source=e,this._animated=o.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(t){this._map=t,this._container||this._initLayout();var e=t.options.fadeAnimation;e&&o.DomUtil.setOpacity(this._container,0),t._panes.popupPane.appendChild(this._container),t.on(this._getEvents(),this),this.update(),e&&o.DomUtil.setOpacity(this._container,1),this.fire("open"),t.fire("popupopen",{popup:this}),this._source&&this._source.fire("popupopen",{popup:this})},addTo:function(t){return t.addLayer(this),this},openOn:function(t){return t.openPopup(this),this},onRemove:function(t){t._panes.popupPane.removeChild(this._container),o.Util.falseFn(this._container.offsetWidth),t.off(this._getEvents(),this),t.options.fadeAnimation&&o.DomUtil.setOpacity(this._container,0),this._map=null,this.fire("close"),t.fire("popupclose",{popup:this}),this._source&&this._source.fire("popupclose",{popup:this})},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=o.latLng(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},_getEvents:function(){var t={viewreset:this._updatePosition};return this._animated&&(t.zoomanim=this._zoomAnimation),("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,e="leaflet-popup",i=e+" "+this.options.className+" leaflet-zoom-"+(this._animated?"animated":"hide"),n=this._container=o.DomUtil.create("div",i);this.options.closeButton&&(t=this._closeButton=o.DomUtil.create("a",e+"-close-button",n),t.href="#close",t.innerHTML="&#215;",o.DomEvent.disableClickPropagation(t),o.DomEvent.on(t,"click",this._onCloseButtonClick,this));var s=this._wrapper=o.DomUtil.create("div",e+"-content-wrapper",n);o.DomEvent.disableClickPropagation(s),this._contentNode=o.DomUtil.create("div",e+"-content",s),o.DomEvent.disableScrollPropagation(this._contentNode),o.DomEvent.on(s,"contextmenu",o.DomEvent.stopPropagation),this._tipContainer=o.DomUtil.create("div",e+"-tip-container",n),this._tip=o.DomUtil.create("div",e+"-tip",this._tipContainer)},_updateContent:function(){if(this._content){if("string"==typeof this._content)this._contentNode.innerHTML=this._content;else{for(;this._contentNode.hasChildNodes();)this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content)}this.fire("contentupdate")}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,s=this.options.maxHeight,a="leaflet-popup-scrolled";s&&n>s?(e.height=s+"px",o.DomUtil.addClass(t,a)):o.DomUtil.removeClass(t,a),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,i=o.point(this.options.offset);e&&o.DomUtil.setPosition(this._container,t),this._containerBottom=-i.y-(e?0:t.y),this._containerLeft=-Math.round(this._containerWidth/2)+i.x+(e?0:t.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);o.DomUtil.setPosition(this._container,e)},_adjustPan:function(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,i=this._containerWidth,n=new o.Point(this._containerLeft,-e-this._containerBottom);this._animated&&n._add(o.DomUtil.getPosition(this._container));var s=t.layerPointToContainerPoint(n),a=o.point(this.options.autoPanPadding),r=o.point(this.options.autoPanPaddingTopLeft||a),h=o.point(this.options.autoPanPaddingBottomRight||a),l=t.getSize(),u=0,c=0;s.x+i+h.x>l.x&&(u=s.x+i-l.x+h.x),s.x-u-r.x<0&&(u=s.x-r.x),s.y+e+h.y>l.y&&(c=s.y+e-l.y+h.y),s.y-c-r.y<0&&(c=s.y-r.y),(u||c)&&t.fire("autopanstart").panBy([u,c])}},_onCloseButtonClick:function(t){this._close(),o.DomEvent.stop(t)}}),o.popup=function(t,e){return new o.Popup(t,e)},o.Map.include({openPopup:function(t,e,i){if(this.closePopup(),!(t instanceof o.Popup)){var n=t;t=new o.Popup(i).setLatLng(e).setContent(n)}return t._isOpen=!0,this._popup=t,this.addLayer(t)},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&(this.removeLayer(t),t._isOpen=!1),this}}),o.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(t,e){var i=o.point(this.options.icon.options.popupAnchor||[0,0]);return i=i.add(o.Popup.prototype.options.offset),e&&e.offset&&(i=i.add(e.offset)),e=o.extend({offset:i},e),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),t instanceof o.Popup?(o.setOptions(t,e),this._popup=t):this._popup=new o.Popup(e,this).setContent(t),this},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(t){this._popup.setLatLng(t.latlng)}}),o.LayerGroup=o.Class.extend({initialize:function(t){this._layers={};var e,i;if(t)for(e=0,i=t.length;i>e;e++)this.addLayer(t[e])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return t?t in this._layers||this.getLayerId(t)in this._layers:!1},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)i=this._layers[e],i[t]&&i[t].apply(i,n);return this},onAdd:function(t){this._map=t,this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t),this._map=null},addTo:function(t){return t.addLayer(this),this},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var e in this._layers)t.push(this._layers[e]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o.stamp(t)}}),o.layerGroup=function(t){return new o.LayerGroup(t)},o.FeatureGroup=o.LayerGroup.extend({includes:o.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(t){return this.hasLayer(t)?this:("on"in t&&t.on(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.addLayer.call(this,t),this._popupContent&&t.bindPopup&&t.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.off(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.removeLayer.call(this,t),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:t})):this},bindPopup:function(t,e){return this._popupContent=t,this._popupOptions=e,this.invoke("bindPopup",t,e)},openPopup:function(t){for(var e in this._layers){this._layers[e].openPopup(t);break}return this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new o.LatLngBounds;return this.eachLayer(function(e){t.extend(e instanceof o.Marker?e.getLatLng():e.getBounds())}),t},_propagateEvent:function(t){t=o.extend({},t,{layer:t.target,target:this}),this.fire(t.type,t)}}),o.featureGroup=function(t){return new o.FeatureGroup(t)},o.Path=o.Class.extend({includes:[o.Mixin.Events],statics:{CLIP_PADDING:function(){var e=o.Browser.mobile?1280:2e3,i=(e/Math.max(t.outerWidth,t.outerHeight)-1)/2;return Math.max(0,Math.min(.5,i))}()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(t){o.setOptions(this,t)},onAdd:function(t){this._map=t,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),t.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){t._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,o.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),t.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(t){return o.setOptions(this,t),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),o.Map.include({_updatePathViewport:function(){var t=o.Path.CLIP_PADDING,e=this.getSize(),i=o.DomUtil.getPosition(this._mapPane),n=i.multiplyBy(-1)._subtract(e.multiplyBy(t)._round()),s=n.add(e.multiplyBy(1+2*t)._round());this._pathViewport=new o.Bounds(n,s)}}),o.Path.SVG_NS="http://www.w3.org/2000/svg",o.Browser.svg=!(!e.createElementNS||!e.createElementNS(o.Path.SVG_NS,"svg").createSVGRect),o.Path=o.Path.extend({statics:{SVG:o.Browser.svg},bringToFront:function(){var t=this._map._pathRoot,e=this._container;return e&&t.lastChild!==e&&t.appendChild(e),this},bringToBack:function(){var t=this._map._pathRoot,e=this._container,i=t.firstChild;return e&&i!==e&&t.insertBefore(e,i),this},getPathString:function(){},_createElement:function(t){return e.createElementNS(o.Path.SVG_NS,t)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&o.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var t=this.getPathString();t||(t="M0 0"),this._path.setAttribute("d",t)},_initEvents:function(){if(this.options.clickable){(o.Browser.svg||!o.Browser.vml)&&o.DomUtil.addClass(this._path,"leaflet-clickable"),o.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e<t.length;e++)o.DomEvent.on(this._container,t[e],this._fireMouseEvent,this)}},_onMouseClick:function(t){this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(t)},_fireMouseEvent:function(t){if(this.hasEventListeners(t.type)){var e=this._map,i=e.mouseEventToContainerPoint(t),n=e.containerPointToLayerPoint(i),s=e.layerPointToLatLng(n);this.fire(t.type,{latlng:s,layerPoint:n,containerPoint:i,originalEvent:t}),"contextmenu"===t.type&&o.DomEvent.preventDefault(t),"mousemove"!==t.type&&o.DomEvent.stopPropagation(t)
-}}}),o.Map.include({_initPathRoot:function(){this._pathRoot||(this._pathRoot=o.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation&&o.Browser.any3d?(o.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):o.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport())},_animatePathZoom:function(t){var e=this.getZoomScale(t.zoom),i=this._getCenterOffset(t.center)._multiplyBy(-e)._add(this._pathViewport.min);this._pathRoot.style[o.DomUtil.TRANSFORM]=o.DomUtil.getTranslateString(i)+" scale("+e+") ",this._pathZooming=!0},_endPathZoom:function(){this._pathZooming=!1},_updateSvgViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max,n=i.x-e.x,s=i.y-e.y,a=this._pathRoot,r=this._panes.overlayPane;o.Browser.mobileWebkit&&r.removeChild(a),o.DomUtil.setPosition(a,e),a.setAttribute("width",n),a.setAttribute("height",s),a.setAttribute("viewBox",[e.x,e.y,n,s].join(" ")),o.Browser.mobileWebkit&&r.appendChild(a)}}}),o.Path.include({bindPopup:function(t,e){return t instanceof o.Popup?this._popup=t:((!this._popup||e)&&(this._popup=new o.Popup(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded=!1),this},openPopup:function(t){return this._popup&&(t=t||this._latlng||this._latlngs[Math.floor(this._latlngs.length/2)],this._openPopup({latlng:t})),this},closePopup:function(){return this._popup&&this._popup._close(),this},_openPopup:function(t){this._popup.setLatLng(t.latlng),this._map.openPopup(this._popup)}}),o.Browser.vml=!o.Browser.svg&&function(){try{var t=e.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(n){return!1}}(),o.Path=o.Browser.svg||!o.Browser.vml?o.Path:o.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return e.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return e.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");o.DomUtil.addClass(t,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&o.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize="1 1",this._path=this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,e=this._fill,i=this.options,n=this._container;n.stroked=i.stroke,n.filled=i.fill,i.stroke?(t||(t=this._stroke=this._createElement("stroke"),t.endcap="round",n.appendChild(t)),t.weight=i.weight+"px",t.color=i.color,t.opacity=i.opacity,t.dashStyle=i.dashArray?o.Util.isArray(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):"",i.lineCap&&(t.endcap=i.lineCap.replace("butt","flat")),i.lineJoin&&(t.joinstyle=i.lineJoin)):t&&(n.removeChild(t),this._stroke=null),i.fill?(e||(e=this._fill=this._createElement("fill"),n.appendChild(e)),e.color=i.fillColor||i.color,e.opacity=i.fillOpacity):e&&(n.removeChild(e),this._fill=null)},_updatePath:function(){var t=this._container.style;t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),o.Map.include(o.Browser.svg||!o.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var t=this._pathRoot=e.createElement("div");t.className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),o.Browser.canvas=function(){return!!e.createElement("canvas").getContext}(),o.Path=o.Path.SVG&&!t.L_PREFER_CANVAS||!o.Browser.canvas?o.Path:o.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return o.setOptions(this,t),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this._map=null},_requestUpdate:function(){this._map&&!o.Path._updateRequest&&(o.Path._updateRequest=o.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){o.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var t=this.options;t.stroke&&(this._ctx.lineWidth=t.weight,this._ctx.strokeStyle=t.color),t.fill&&(this._ctx.fillStyle=t.fillColor||t.color)},_drawPath:function(){var t,e,i,n,s,a;for(this._ctx.beginPath(),t=0,i=this._parts.length;i>t;t++){for(e=0,n=this._parts[t].length;n>e;e++)s=this._parts[t][e],a=(0===e?"move":"line")+"To",this._ctx[a](s.x,s.y);this instanceof o.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var t=this._ctx,e=this.options;this._drawPath(),t.save(),this._updateStyle(),e.fill&&(t.globalAlpha=e.fillOpacity,t.fill()),e.stroke&&(t.globalAlpha=e.opacity,t.stroke()),t.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onClick,this))},_onClick:function(t){this._containsPoint(t.layerPoint)&&this.fire("click",t)},_onMouseMove:function(t){this._map&&!this._map._animatingZoom&&(this._containsPoint(t.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",t)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",t)))}}),o.Map.include(o.Path.SVG&&!t.L_PREFER_CANVAS||!o.Browser.canvas?{}:{_initPathRoot:function(){var t,i=this._pathRoot;i||(i=this._pathRoot=e.createElement("canvas"),i.style.position="absolute",t=this._canvasCtx=i.getContext("2d"),t.lineCap="round",t.lineJoin="round",this._panes.overlayPane.appendChild(i),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max.subtract(e),n=this._pathRoot;o.DomUtil.setPosition(n,e),n.width=i.x,n.height=i.y,n.getContext("2d").translate(-e.x,-e.y)}}}),o.LineUtil={simplify:function(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=this._reducePoints(t,i),t=this._simplifyDP(t,i)},pointToSegmentDistance:function(t,e,i){return Math.sqrt(this._sqClosestPointOnSegment(t,e,i,!0))},closestPointOnSegment:function(t,e,i){return this._sqClosestPointOnSegment(t,e,i)},_simplifyDP:function(t,e){var n=t.length,o=typeof Uint8Array!=i+""?Uint8Array:Array,s=new o(n);s[0]=s[n-1]=1,this._simplifyDPStep(t,s,e,0,n-1);var a,r=[];for(a=0;n>a;a++)s[a]&&r.push(t[a]);return r},_simplifyDPStep:function(t,e,i,n,o){var s,a,r,h=0;for(a=n+1;o-1>=a;a++)r=this._sqClosestPointOnSegment(t[a],t[n],t[o],!0),r>h&&(s=a,h=r);h>i&&(e[s]=1,this._simplifyDPStep(t,e,i,n,s),this._simplifyDPStep(t,e,i,s,o))},_reducePoints:function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;s>n;n++)this._sqDist(t[n],t[o])>e&&(i.push(t[n]),o=n);return s-1>o&&i.push(t[s-1]),i},clipSegment:function(t,e,i,n){var o,s,a,r=n?this._lastCode:this._getBitCode(t,i),h=this._getBitCode(e,i);for(this._lastCode=h;;){if(!(r|h))return[t,e];if(r&h)return!1;o=r||h,s=this._getEdgeIntersection(t,e,o,i),a=this._getBitCode(s,i),o===r?(t=s,r=a):(e=s,h=a)}},_getEdgeIntersection:function(t,e,i,n){var s=e.x-t.x,a=e.y-t.y,r=n.min,h=n.max;return 8&i?new o.Point(t.x+s*(h.y-t.y)/a,h.y):4&i?new o.Point(t.x+s*(r.y-t.y)/a,r.y):2&i?new o.Point(h.x,t.y+a*(h.x-t.x)/s):1&i?new o.Point(r.x,t.y+a*(r.x-t.x)/s):void 0},_getBitCode:function(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n},_sqClosestPointOnSegment:function(t,e,i,n){var s,a=e.x,r=e.y,h=i.x-a,l=i.y-r,u=h*h+l*l;return u>0&&(s=((t.x-a)*h+(t.y-r)*l)/u,s>1?(a=i.x,r=i.y):s>0&&(a+=h*s,r+=l*s)),h=t.x-a,l=t.y-r,n?h*h+l*l:new o.Point(a,r)}},o.Polyline=o.Path.extend({initialize:function(t,e){o.Path.prototype.initialize.call(this,e),this._latlngs=this._convertLatLngs(t)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var t=0,e=this._latlngs.length;e>t;t++)this._originalPoints[t]=this._map.latLngToLayerPoint(this._latlngs[t])},getPathString:function(){for(var t=0,e=this._parts.length,i="";e>t;t++)i+=this._getPathPartStr(this._parts[t]);return i},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._latlngs=this._convertLatLngs(t),this.redraw()},addLatLng:function(t){return this._latlngs.push(o.latLng(t)),this.redraw()},spliceLatLngs:function(){var t=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),t},closestLayerPoint:function(t){for(var e,i,n=1/0,s=this._parts,a=null,r=0,h=s.length;h>r;r++)for(var l=s[r],u=1,c=l.length;c>u;u++){e=l[u-1],i=l[u];var d=o.LineUtil._sqClosestPointOnSegment(t,e,i,!0);n>d&&(n=d,a=o.LineUtil._sqClosestPointOnSegment(t,e,i))}return a&&(a.distance=Math.sqrt(n)),a},getBounds:function(){return new o.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(t,e){var i,n,s=e?t:[];for(i=0,n=t.length;n>i;i++){if(o.Util.isArray(t[i])&&"number"!=typeof t[i][0])return;s[i]=o.latLng(t[i])}return s},_initEvents:function(){o.Path.prototype._initEvents.call(this)},_getPathPartStr:function(t){for(var e,i=o.Path.VML,n=0,s=t.length,a="";s>n;n++)e=t[n],i&&e._round(),a+=(n?"L":"M")+e.x+" "+e.y;return a},_clipPoints:function(){var t,e,i,n=this._originalPoints,s=n.length;if(this.options.noClip)return this._parts=[n],void 0;this._parts=[];var a=this._parts,r=this._map._pathViewport,h=o.LineUtil;for(t=0,e=0;s-1>t;t++)i=h.clipSegment(n[t],n[t+1],r,t),i&&(a[e]=a[e]||[],a[e].push(i[0]),(i[1]!==n[t+1]||t===s-2)&&(a[e].push(i[1]),e++))},_simplifyPoints:function(){for(var t=this._parts,e=o.LineUtil,i=0,n=t.length;n>i;i++)t[i]=e.simplify(t[i],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),o.Path.prototype._updatePath.call(this))}}),o.polyline=function(t,e){return new o.Polyline(t,e)},o.PolyUtil={},o.PolyUtil.clipPolygon=function(t,e){var i,n,s,a,r,h,l,u,c,d=[1,4,2,8],p=o.LineUtil;for(n=0,l=t.length;l>n;n++)t[n]._code=p._getBitCode(t[n],e);for(a=0;4>a;a++){for(u=d[a],i=[],n=0,l=t.length,s=l-1;l>n;s=n++)r=t[n],h=t[s],r._code&u?h._code&u||(c=p._getEdgeIntersection(h,r,u,e),c._code=p._getBitCode(c,e),i.push(c)):(h._code&u&&(c=p._getEdgeIntersection(h,r,u,e),c._code=p._getBitCode(c,e),i.push(c)),i.push(r));t=i}return t},o.Polygon=o.Polyline.extend({options:{fill:!0},initialize:function(t,e){o.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t)},_initWithHoles:function(t){var e,i,n;if(t&&o.Util.isArray(t[0])&&"number"!=typeof t[0][0])for(this._latlngs=this._convertLatLngs(t[0]),this._holes=t.slice(1),e=0,i=this._holes.length;i>e;e++)n=this._holes[e]=this._convertLatLngs(this._holes[e]),n[0].equals(n[n.length-1])&&n.pop();t=this._latlngs,t.length>=2&&t[0].equals(t[t.length-1])&&t.pop()},projectLatlngs:function(){if(o.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes){var t,e,i,n;for(t=0,i=this._holes.length;i>t;t++)for(this._holePoints[t]=[],e=0,n=this._holes[t].length;n>e;e++)this._holePoints[t][e]=this._map.latLngToLayerPoint(this._holes[t][e])}},setLatLngs:function(t){return t&&o.Util.isArray(t[0])&&"number"!=typeof t[0][0]?(this._initWithHoles(t),this.redraw()):o.Polyline.prototype.setLatLngs.call(this,t)},_clipPoints:function(){var t=this._originalPoints,e=[];if(this._parts=[t].concat(this._holePoints),!this.options.noClip){for(var i=0,n=this._parts.length;n>i;i++){var s=o.PolyUtil.clipPolygon(this._parts[i],this._map._pathViewport);s.length&&e.push(s)}this._parts=e}},_getPathPartStr:function(t){var e=o.Polyline.prototype._getPathPartStr.call(this,t);return e+(o.Browser.svg?"z":"x")}}),o.polygon=function(t,e){return new o.Polygon(t,e)},function(){function t(t){return o.FeatureGroup.extend({initialize:function(t,e){this._layers={},this._options=e,this.setLatLngs(t)},setLatLngs:function(e){var i=0,n=e.length;for(this.eachLayer(function(t){n>i?t.setLatLngs(e[i++]):this.removeLayer(t)},this);n>i;)this.addLayer(new t(e[i++],this._options));return this},getLatLngs:function(){var t=[];return this.eachLayer(function(e){t.push(e.getLatLngs())}),t}})}o.MultiPolyline=t(o.Polyline),o.MultiPolygon=t(o.Polygon),o.multiPolyline=function(t,e){return new o.MultiPolyline(t,e)},o.multiPolygon=function(t,e){return new o.MultiPolygon(t,e)}}(),o.Rectangle=o.Polygon.extend({initialize:function(t,e){o.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=o.latLngBounds(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}),o.rectangle=function(t,e){return new o.Rectangle(t,e)},o.Circle=o.Path.extend({initialize:function(t,e,i){o.Path.prototype.initialize.call(this,i),this._latlng=o.latLng(t),this._mRadius=e},options:{fill:!0},setLatLng:function(t){return this._latlng=o.latLng(t),this.redraw()},setRadius:function(t){return this._mRadius=t,this.redraw()},projectLatlngs:function(){var t=this._getLngRadius(),e=this._latlng,i=this._map.latLngToLayerPoint([e.lat,e.lng-t]);this._point=this._map.latLngToLayerPoint(e),this._radius=Math.max(this._point.x-i.x,1)},getBounds:function(){var t=this._getLngRadius(),e=this._mRadius/40075017*360,i=this._latlng;return new o.LatLngBounds([i.lat-e,i.lng-t],[i.lat+e,i.lng+t])},getLatLng:function(){return this._latlng},getPathString:function(){var t=this._point,e=this._radius;return this._checkIfEmpty()?"":o.Browser.svg?"M"+t.x+","+(t.y-e)+"A"+e+","+e+",0,1,1,"+(t.x-.1)+","+(t.y-e)+" z":(t._round(),e=Math.round(e),"AL "+t.x+","+t.y+" "+e+","+e+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(o.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var t=this._map._pathViewport,e=this._radius,i=this._point;return i.x-e>t.max.x||i.y-e>t.max.y||i.x+e<t.min.x||i.y+e<t.min.y}}),o.circle=function(t,e,i){return new o.Circle(t,e,i)},o.CircleMarker=o.Circle.extend({options:{radius:10,weight:2},initialize:function(t,e){o.Circle.prototype.initialize.call(this,t,null,e),this._radius=this.options.radius},projectLatlngs:function(){this._point=this._map.latLngToLayerPoint(this._latlng)},_updateStyle:function(){o.Circle.prototype._updateStyle.call(this),this.setRadius(this.options.radius)},setLatLng:function(t){o.Circle.prototype.setLatLng.call(this,t),this._popup&&this._popup._isOpen&&this._popup.setLatLng(t)},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}}),o.circleMarker=function(t,e){return new o.CircleMarker(t,e)},o.Polyline.include(o.Path.CANVAS?{_containsPoint:function(t,e){var i,n,s,a,r,h,l,u=this.options.weight/2;for(o.Browser.touch&&(u+=10),i=0,a=this._parts.length;a>i;i++)for(l=this._parts[i],n=0,r=l.length,s=r-1;r>n;s=n++)if((e||0!==n)&&(h=o.LineUtil.pointToSegmentDistance(t,l[s],l[n]),u>=h))return!0;return!1}}:{}),o.Polygon.include(o.Path.CANVAS?{_containsPoint:function(t){var e,i,n,s,a,r,h,l,u=!1;if(o.Polyline.prototype._containsPoint.call(this,t,!0))return!0;for(s=0,h=this._parts.length;h>s;s++)for(e=this._parts[s],a=0,l=e.length,r=l-1;l>a;r=a++)i=e[a],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(u=!u);return u}}:{}),o.Circle.include(o.Path.CANVAS?{_drawPath:function(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(t){var e=this._point,i=this.options.stroke?this.options.weight/2:0;return t.distanceTo(e)<=this._radius+i}}:{}),o.CircleMarker.include(o.Path.CANVAS?{_updateStyle:function(){o.Path.prototype._updateStyle.call(this)}}:{}),o.GeoJSON=o.FeatureGroup.extend({initialize:function(t,e){o.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,s=o.Util.isArray(t)?t:t.features;if(s){for(e=0,i=s.length;i>e;e++)n=s[e],(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(s[e]);return this}var a=this.options;if(!a.filter||a.filter(t)){var r=o.GeoJSON.geometryToLayer(t,a.pointToLayer,a.coordsToLatLng,a);return r.feature=o.GeoJSON.asFeature(t),r.defaultOptions=r.options,this.resetStyle(r),a.onEachFeature&&a.onEachFeature(t,r),this.addLayer(r)}},resetStyle:function(t){var e=this.options.style;e&&(o.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e))},setStyle:function(t){this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),o.extend(o.GeoJSON,{geometryToLayer:function(t,e,i,n){var s,a,r,h,l="Feature"===t.type?t.geometry:t,u=l.coordinates,c=[];switch(i=i||this.coordsToLatLng,l.type){case"Point":return s=i(u),e?e(t,s):new o.Marker(s);case"MultiPoint":for(r=0,h=u.length;h>r;r++)s=i(u[r]),c.push(e?e(t,s):new o.Marker(s));return new o.FeatureGroup(c);case"LineString":return a=this.coordsToLatLngs(u,0,i),new o.Polyline(a,n);case"Polygon":if(2===u.length&&!u[1].length)throw new Error("Invalid GeoJSON object.");return a=this.coordsToLatLngs(u,1,i),new o.Polygon(a,n);case"MultiLineString":return a=this.coordsToLatLngs(u,1,i),new o.MultiPolyline(a,n);case"MultiPolygon":return a=this.coordsToLatLngs(u,2,i),new o.MultiPolygon(a,n);case"GeometryCollection":for(r=0,h=l.geometries.length;h>r;r++)c.push(this.geometryToLayer({geometry:l.geometries[r],type:"Feature",properties:t.properties},e,i,n));return new o.FeatureGroup(c);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(t){return new o.LatLng(t[1],t[0],t[2])},coordsToLatLngs:function(t,e,i){var n,o,s,a=[];for(o=0,s=t.length;s>o;o++)n=e?this.coordsToLatLngs(t[o],e-1,i):(i||this.coordsToLatLng)(t[o]),a.push(n);return a},latLngToCoords:function(t){var e=[t.lng,t.lat];return t.alt!==i&&e.push(t.alt),e},latLngsToCoords:function(t){for(var e=[],i=0,n=t.length;n>i;i++)e.push(o.GeoJSON.latLngToCoords(t[i]));return e},getFeature:function(t,e){return t.feature?o.extend({},t.feature,{geometry:e}):o.GeoJSON.asFeature(e)},asFeature:function(t){return"Feature"===t.type?t:{type:"Feature",properties:{},geometry:t}}});var a={toGeoJSON:function(){return o.GeoJSON.getFeature(this,{type:"Point",coordinates:o.GeoJSON.latLngToCoords(this.getLatLng())})}};o.Marker.include(a),o.Circle.include(a),o.CircleMarker.include(a),o.Polyline.include({toGeoJSON:function(){return o.GeoJSON.getFeature(this,{type:"LineString",coordinates:o.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),o.Polygon.include({toGeoJSON:function(){var t,e,i,n=[o.GeoJSON.latLngsToCoords(this.getLatLngs())];if(n[0].push(n[0][0]),this._holes)for(t=0,e=this._holes.length;e>t;t++)i=o.GeoJSON.latLngsToCoords(this._holes[t]),i.push(i[0]),n.push(i);return o.GeoJSON.getFeature(this,{type:"Polygon",coordinates:n})}}),function(){function t(t){return function(){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON().geometry.coordinates)}),o.GeoJSON.getFeature(this,{type:t,coordinates:e})}}o.MultiPolyline.include({toGeoJSON:t("MultiLineString")}),o.MultiPolygon.include({toGeoJSON:t("MultiPolygon")}),o.LayerGroup.include({toGeoJSON:function(){var e,i=this.feature&&this.feature.geometry,n=[];if(i&&"MultiPoint"===i.type)return t("MultiPoint").call(this);var s=i&&"GeometryCollection"===i.type;return this.eachLayer(function(t){t.toGeoJSON&&(e=t.toGeoJSON(),n.push(s?e.geometry:o.GeoJSON.asFeature(e)))}),s?o.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}})}(),o.geoJson=function(t,e){return new o.GeoJSON(t,e)},o.DomEvent={addListener:function(t,e,i,n){var s,a,r,h=o.stamp(i),l="_leaflet_"+e+h;return t[l]?this:(s=function(e){return i.call(n||t,e||o.DomEvent._getEvent())},o.Browser.pointer&&0===e.indexOf("touch")?this.addPointerListener(t,e,s,h):(o.Browser.touch&&"dblclick"===e&&this.addDoubleTapListener&&this.addDoubleTapListener(t,s,h),"addEventListener"in t?"mousewheel"===e?(t.addEventListener("DOMMouseScroll",s,!1),t.addEventListener(e,s,!1)):"mouseenter"===e||"mouseleave"===e?(a=s,r="mouseenter"===e?"mouseover":"mouseout",s=function(e){return o.DomEvent._checkMouse(t,e)?a(e):void 0},t.addEventListener(r,s,!1)):"click"===e&&o.Browser.android?(a=s,s=function(t){return o.DomEvent._filterClick(t,a)},t.addEventListener(e,s,!1)):t.addEventListener(e,s,!1):"attachEvent"in t&&t.attachEvent("on"+e,s),t[l]=s,this))},removeListener:function(t,e,i){var n=o.stamp(i),s="_leaflet_"+e+n,a=t[s];return a?(o.Browser.pointer&&0===e.indexOf("touch")?this.removePointerListener(t,e,n):o.Browser.touch&&"dblclick"===e&&this.removeDoubleTapListener?this.removeDoubleTapListener(t,n):"removeEventListener"in t?"mousewheel"===e?(t.removeEventListener("DOMMouseScroll",a,!1),t.removeEventListener(e,a,!1)):"mouseenter"===e||"mouseleave"===e?t.removeEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1):t.removeEventListener(e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a),t[s]=null,this):this},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,o.DomEvent._skipped(t),this},disableScrollPropagation:function(t){var e=o.DomEvent.stopPropagation;return o.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e)},disableClickPropagation:function(t){for(var e=o.DomEvent.stopPropagation,i=o.Draggable.START.length-1;i>=0;i--)o.DomEvent.on(t,o.Draggable.START[i],e);return o.DomEvent.on(t,"click",o.DomEvent._fakeStop).on(t,"dblclick",e)},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return o.DomEvent.preventDefault(t).stopPropagation(t)},getMousePosition:function(t,i){var n=e.body,s=e.documentElement,a=o.DomUtil.documentIsLtr()?t.pageX?t.pageX-n.scrollLeft-s.scrollLeft:t.clientX:o.Browser.gecko?t.pageX-n.scrollLeft-s.scrollLeft:t.pageX?t.pageX-n.scrollLeft+s.scrollLeft:t.clientX,r=t.pageY?t.pageY-n.scrollTop-s.scrollTop:t.clientY,h=new o.Point(a,r);if(!i)return h;var l=i.getBoundingClientRect(),u=l.left-i.clientLeft,c=l.top-i.clientTop;return h._subtract(new o.Point(u,c))},getWheelDelta:function(t){var e=0;return t.wheelDelta&&(e=t.wheelDelta/120),t.detail&&(e=-t.detail/3),e},_skipEvents:{},_fakeStop:function(t){o.DomEvent._skipEvents[t.type]=!0},_skipped:function(t){var e=this._skipEvents[t.type];return this._skipEvents[t.type]=!1,e},_checkMouse:function(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(n){return!1}return i!==t},_getEvent:function(){var e=t.event;if(!e)for(var i=arguments.callee.caller;i&&(e=i.arguments[0],!e||t.Event!==e.constructor);)i=i.caller;return e},_filterClick:function(t,e){var i=t.timeStamp||t.originalEvent.timeStamp,n=o.DomEvent._lastClick&&i-o.DomEvent._lastClick;return n&&n>100&&1e3>n||t.target._simulatedClick&&!t._simulated?(o.DomEvent.stop(t),void 0):(o.DomEvent._lastClick=i,e(t))}},o.DomEvent.on=o.DomEvent.addListener,o.DomEvent.off=o.DomEvent.removeListener,o.Draggable=o.Class.extend({includes:o.Mixin.Events,statics:{START:o.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(t,e){this._element=t,this._dragStartTarget=e||t},enable:function(){if(!this._enabled){for(var t=o.Draggable.START.length-1;t>=0;t--)o.DomEvent.on(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var t=o.Draggable.START.length-1;t>=0;t--)o.DomEvent.off(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(t){if(this._moved=!1,!(t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(o.DomEvent.stopPropagation(t),o.Draggable._disabled||(o.DomUtil.disableImageDrag(),o.DomUtil.disableTextSelection(),this._moving)))){var i=t.touches?t.touches[0]:t;this._startPoint=new o.Point(i.clientX,i.clientY),this._startPos=this._newPos=o.DomUtil.getPosition(this._element),o.DomEvent.on(e,o.Draggable.MOVE[t.type],this._onMove,this).on(e,o.Draggable.END[t.type],this._onUp,this)}},_onMove:function(t){if(t.touches&&t.touches.length>1)return this._moved=!0,void 0;var i=t.touches&&1===t.touches.length?t.touches[0]:t,n=new o.Point(i.clientX,i.clientY),s=n.subtract(this._startPoint);(s.x||s.y)&&(o.DomEvent.preventDefault(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=o.DomUtil.getPosition(this._element).subtract(s),o.DomUtil.addClass(e.body,"leaflet-dragging"),o.DomUtil.addClass(t.target||t.srcElement,"leaflet-drag-target")),this._newPos=this._startPos.add(s),this._moving=!0,o.Util.cancelAnimFrame(this._animRequest),this._animRequest=o.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget))},_updatePosition:function(){this.fire("predrag"),o.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(t){o.DomUtil.removeClass(e.body,"leaflet-dragging"),o.DomUtil.removeClass(t.target||t.srcElement,"leaflet-drag-target");for(var i in o.Draggable.MOVE)o.DomEvent.off(e,o.Draggable.MOVE[i],this._onMove).off(e,o.Draggable.END[i],this._onUp);o.DomUtil.enableImageDrag(),o.DomUtil.enableTextSelection(),this._moved&&(o.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),o.Handler=o.Class.extend({initialize:function(t){this._map=t},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),o.Map.mergeOptions({dragging:!0,inertia:!o.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:o.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),o.Map.Drag=o.Handler.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new o.Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),t.on("viewreset",this._onViewReset,this),t.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var t=this._map;t._panAnim&&t._panAnim.stop(),t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var t=this._lastTime=+new Date,e=this._lastPos=this._draggable._newPos;this._positions.push(e),this._times.push(t),t-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var t=this._map.getSize()._divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,a=Math.abs(o+i)<Math.abs(s+i)?o:s;this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,n=+new Date-this._lastTime,s=!i.inertia||n>i.inertiaThreshold||!this._positions[0];if(e.fire("dragend",t),s)e.fire("moveend");else{var a=this._lastPos.subtract(this._positions[0]),r=(this._lastTime+n-this._times[0])/1e3,h=i.easeLinearity,l=a.multiplyBy(h/r),u=l.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,u),d=l.multiplyBy(c/u),p=c/(i.inertiaDeceleration*h),_=d.multiplyBy(-p/2).round();_.x&&_.y?(_=e._limitOffset(_,e.options.maxBounds),o.Util.requestAnimFrame(function(){e.panBy(_,{duration:p,easeLinearity:h,noMoveStart:!0})})):e.fire("moveend")}}}),o.Map.addInitHook("addHandler","dragging",o.Map.Drag),o.Map.mergeOptions({doubleClickZoom:!0}),o.Map.DoubleClickZoom=o.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom()+(t.originalEvent.shiftKey?-1:1);"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}}),o.Map.addInitHook("addHandler","doubleClickZoom",o.Map.DoubleClickZoom),o.Map.mergeOptions({scrollWheelZoom:!0}),o.Map.ScrollWheelZoom=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),o.DomEvent.on(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault),this._delta=0},removeHooks:function(){o.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),o.DomEvent.off(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=o.DomEvent.getWheelDelta(t);this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(40-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o.bind(this._performZoom,this),i),o.DomEvent.preventDefault(t),o.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,i=t.getZoom();e=e>0?Math.ceil(e):Math.floor(e),e=Math.max(Math.min(e,4),-4),e=t._limitZoom(i+e)-i,this._delta=0,this._startTime=null,e&&("center"===t.options.scrollWheelZoom?t.setZoom(i+e):t.setZoomAround(this._lastMousePos,i+e))}}),o.Map.addInitHook("addHandler","scrollWheelZoom",o.Map.ScrollWheelZoom),o.extend(o.DomEvent,{_touchstart:o.Browser.msPointer?"MSPointerDown":o.Browser.pointer?"pointerdown":"touchstart",_touchend:o.Browser.msPointer?"MSPointerUp":o.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(t,i,n){function s(t){var e;if(o.Browser.pointer?(_.push(t.pointerId),e=_.length):e=t.touches.length,!(e>1)){var i=Date.now(),n=i-(r||i);h=t.touches?t.touches[0]:t,l=n>0&&u>=n,r=i}}function a(t){if(o.Browser.pointer){var e=_.indexOf(t.pointerId);if(-1===e)return;_.splice(e,1)}if(l){if(o.Browser.pointer){var n,s={};for(var a in h)n=h[a],s[a]="function"==typeof n?n.bind(h):n;h=s}h.type="dblclick",i(h),r=null}}var r,h,l=!1,u=250,c="_leaflet_",d=this._touchstart,p=this._touchend,_=[];t[c+d+n]=s,t[c+p+n]=a;var m=o.Browser.pointer?e.documentElement:t;return t.addEventListener(d,s,!1),m.addEventListener(p,a,!1),o.Browser.pointer&&m.addEventListener(o.DomEvent.POINTER_CANCEL,a,!1),this},removeDoubleTapListener:function(t,i){var n="_leaflet_";return t.removeEventListener(this._touchstart,t[n+this._touchstart+i],!1),(o.Browser.pointer?e.documentElement:t).removeEventListener(this._touchend,t[n+this._touchend+i],!1),o.Browser.pointer&&e.documentElement.removeEventListener(o.DomEvent.POINTER_CANCEL,t[n+this._touchend+i],!1),this}}),o.extend(o.DomEvent,{POINTER_DOWN:o.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:o.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:o.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:o.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(t,e,i,n){switch(e){case"touchstart":return this.addPointerListenerStart(t,e,i,n);
-case"touchend":return this.addPointerListenerEnd(t,e,i,n);case"touchmove":return this.addPointerListenerMove(t,e,i,n);default:throw"Unknown touch event type"}},addPointerListenerStart:function(t,i,n,s){var a="_leaflet_",r=this._pointers,h=function(t){o.DomEvent.preventDefault(t);for(var e=!1,i=0;i<r.length;i++)if(r[i].pointerId===t.pointerId){e=!0;break}e||r.push(t),t.touches=r.slice(),t.changedTouches=[t],n(t)};if(t[a+"touchstart"+s]=h,t.addEventListener(this.POINTER_DOWN,h,!1),!this._pointerDocumentListener){var l=function(t){for(var e=0;e<r.length;e++)if(r[e].pointerId===t.pointerId){r.splice(e,1);break}};e.documentElement.addEventListener(this.POINTER_UP,l,!1),e.documentElement.addEventListener(this.POINTER_CANCEL,l,!1),this._pointerDocumentListener=!0}return this},addPointerListenerMove:function(t,e,i,n){function o(t){if(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons){for(var e=0;e<a.length;e++)if(a[e].pointerId===t.pointerId){a[e]=t;break}t.touches=a.slice(),t.changedTouches=[t],i(t)}}var s="_leaflet_",a=this._pointers;return t[s+"touchmove"+n]=o,t.addEventListener(this.POINTER_MOVE,o,!1),this},addPointerListenerEnd:function(t,e,i,n){var o="_leaflet_",s=this._pointers,a=function(t){for(var e=0;e<s.length;e++)if(s[e].pointerId===t.pointerId){s.splice(e,1);break}t.touches=s.slice(),t.changedTouches=[t],i(t)};return t[o+"touchend"+n]=a,t.addEventListener(this.POINTER_UP,a,!1),t.addEventListener(this.POINTER_CANCEL,a,!1),this},removePointerListener:function(t,e,i){var n="_leaflet_",o=t[n+e+i];switch(e){case"touchstart":t.removeEventListener(this.POINTER_DOWN,o,!1);break;case"touchmove":t.removeEventListener(this.POINTER_MOVE,o,!1);break;case"touchend":t.removeEventListener(this.POINTER_UP,o,!1),t.removeEventListener(this.POINTER_CANCEL,o,!1)}return this}}),o.Map.mergeOptions({touchZoom:o.Browser.touch&&!o.Browser.android23,bounceAtZoomLimits:!0}),o.Map.TouchZoom=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){o.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var n=i.mouseEventToLayerPoint(t.touches[0]),s=i.mouseEventToLayerPoint(t.touches[1]),a=i._getCenterLayerPoint();this._startCenter=n.add(s)._divideBy(2),this._startDist=n.distanceTo(s),this._moved=!1,this._zooming=!0,this._centerOffset=a.subtract(this._startCenter),i._panAnim&&i._panAnim.stop(),o.DomEvent.on(e,"touchmove",this._onTouchMove,this).on(e,"touchend",this._onTouchEnd,this),o.DomEvent.preventDefault(t)}},_onTouchMove:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&this._zooming){var i=e.mouseEventToLayerPoint(t.touches[0]),n=e.mouseEventToLayerPoint(t.touches[1]);this._scale=i.distanceTo(n)/this._startDist,this._delta=i._add(n)._divideBy(2)._subtract(this._startCenter),1!==this._scale&&(e.options.bounceAtZoomLimits||!(e.getZoom()===e.getMinZoom()&&this._scale<1||e.getZoom()===e.getMaxZoom()&&this._scale>1))&&(this._moved||(o.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved=!0),o.Util.cancelAnimFrame(this._animRequest),this._animRequest=o.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),o.DomEvent.preventDefault(t))}},_updateOnMove:function(){var t=this._map,e=this._getScaleOrigin(),i=t.layerPointToLatLng(e),n=t.getScaleZoom(this._scale);t._animateZoom(i,n,this._startCenter,this._scale,this._delta)},_onTouchEnd:function(){if(!this._moved||!this._zooming)return this._zooming=!1,void 0;var t=this._map;this._zooming=!1,o.DomUtil.removeClass(t._mapPane,"leaflet-touching"),o.Util.cancelAnimFrame(this._animRequest),o.DomEvent.off(e,"touchmove",this._onTouchMove).off(e,"touchend",this._onTouchEnd);var i=this._getScaleOrigin(),n=t.layerPointToLatLng(i),s=t.getZoom(),a=t.getScaleZoom(this._scale)-s,r=a>0?Math.ceil(a):Math.floor(a),h=t._limitZoom(s+r),l=t.getZoomScale(h)/this._scale;t._animateZoom(n,h,i,l)},_getScaleOrigin:function(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t)}}),o.Map.addInitHook("addHandler","touchZoom",o.Map.TouchZoom),o.Map.mergeOptions({tap:!0,tapTolerance:15}),o.Map.Tap=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){o.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(o.DomEvent.preventDefault(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,clearTimeout(this._holdTimeout),void 0;var i=t.touches[0],n=i.target;this._startPos=this._newPos=new o.Point(i.clientX,i.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&o.DomUtil.addClass(n,"leaflet-active"),this._holdTimeout=setTimeout(o.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),o.DomEvent.on(e,"touchmove",this._onMove,this).on(e,"touchend",this._onUp,this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),o.DomEvent.off(e,"touchmove",this._onMove,this).off(e,"touchend",this._onUp,this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],n=i.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&o.DomUtil.removeClass(n,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new o.Point(e.clientX,e.clientY)},_simulateEvent:function(i,n){var o=e.createEvent("MouseEvents");o._simulated=!0,n.target._simulatedClick=!0,o.initMouseEvent(i,!0,!0,t,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(o)}}),o.Browser.touch&&!o.Browser.pointer&&o.Map.addInitHook("addHandler","tap",o.Map.Tap),o.Map.mergeOptions({boxZoom:!0}),o.Map.BoxZoom=o.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._moved=!1},addHooks:function(){o.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){o.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(t){return this._moved=!1,!t.shiftKey||1!==t.which&&1!==t.button?!1:(o.DomUtil.disableTextSelection(),o.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(t),o.DomEvent.on(e,"mousemove",this._onMouseMove,this).on(e,"mouseup",this._onMouseUp,this).on(e,"keydown",this._onKeyDown,this),void 0)},_onMouseMove:function(t){this._moved||(this._box=o.DomUtil.create("div","leaflet-zoom-box",this._pane),o.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var e=this._startLayerPoint,i=this._box,n=this._map.mouseEventToLayerPoint(t),s=n.subtract(e),a=new o.Point(Math.min(n.x,e.x),Math.min(n.y,e.y));o.DomUtil.setPosition(i,a),this._moved=!0,i.style.width=Math.max(0,Math.abs(s.x)-4)+"px",i.style.height=Math.max(0,Math.abs(s.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),o.DomUtil.enableTextSelection(),o.DomUtil.enableImageDrag(),o.DomEvent.off(e,"mousemove",this._onMouseMove).off(e,"mouseup",this._onMouseUp).off(e,"keydown",this._onKeyDown)},_onMouseUp:function(t){this._finish();var e=this._map,i=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(i)){var n=new o.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(i));e.fitBounds(n),e.fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}}),o.Map.addInitHook("addHandler","boxZoom",o.Map.BoxZoom),o.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),o.Map.Keyboard=o.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(t){this._map=t,this._setPanOffset(t.options.keyboardPanOffset),this._setZoomOffset(t.options.keyboardZoomOffset)},addHooks:function(){var t=this._map._container;-1===t.tabIndex&&(t.tabIndex="0"),o.DomEvent.on(t,"focus",this._onFocus,this).on(t,"blur",this._onBlur,this).on(t,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var t=this._map._container;o.DomEvent.off(t,"focus",this._onFocus,this).off(t,"blur",this._onBlur,this).off(t,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var i=e.body,n=e.documentElement,o=i.scrollTop||n.scrollTop,s=i.scrollLeft||n.scrollLeft;this._map._container.focus(),t.scrollTo(s,o)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;i>e;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;i>e;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;i>e;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;i>e;e++)n[o.up[e]]=[0,-1*t]},_setZoomOffset:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;i>e;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;i>e;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){o.DomEvent.on(e,"keydown",this._onKeyDown,this)},_removeHooks:function(){o.DomEvent.off(e,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){var e=t.keyCode,i=this._map;if(e in this._panKeys){if(i._panAnim&&i._panAnim._inProgress)return;i.panBy(this._panKeys[e]),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds)}else{if(!(e in this._zoomKeys))return;i.setZoom(i.getZoom()+this._zoomKeys[e])}o.DomEvent.stop(t)}}),o.Map.addInitHook("addHandler","keyboard",o.Map.Keyboard),o.Handler.MarkerDrag=o.Handler.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new o.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),o.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),o.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var t=this._marker,e=t._shadow,i=o.DomUtil.getPosition(t._icon),n=t._map.layerPointToLatLng(i);e&&o.DomUtil.setPosition(e,i),t._latlng=n,t.fire("move",{latlng:n}).fire("drag")},_onDragEnd:function(t){this._marker.fire("moveend").fire("dragend",t)}}),o.Control=o.Class.extend({options:{position:"topright"},initialize:function(t){o.setOptions(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return o.DomUtil.addClass(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this},removeFrom:function(t){var e=this.getPosition(),i=t._controlCorners[e];return i.removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(t),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),o.control=function(t){return new o.Control(t)},o.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.removeFrom(this),this},_initControlPos:function(){function t(t,s){var a=i+t+" "+i+s;e[t+s]=o.DomUtil.create("div",a,n)}var e=this._controlCorners={},i="leaflet-",n=this._controlContainer=o.DomUtil.create("div",i+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),o.Control.Zoom=o.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=o.DomUtil.create("div",e+" leaflet-bar");return this._map=t,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,e+"-in",i,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,e+"-out",i,this._zoomOut,this),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(t){this._map.zoomIn(t.shiftKey?3:1)},_zoomOut:function(t){this._map.zoomOut(t.shiftKey?3:1)},_createButton:function(t,e,i,n,s,a){var r=o.DomUtil.create("a",i,n);r.innerHTML=t,r.href="#",r.title=e;var h=o.DomEvent.stopPropagation;return o.DomEvent.on(r,"click",h).on(r,"mousedown",h).on(r,"dblclick",h).on(r,"click",o.DomEvent.preventDefault).on(r,"click",s,a).on(r,"click",this._refocusOnMap,a),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";o.DomUtil.removeClass(this._zoomInButton,e),o.DomUtil.removeClass(this._zoomOutButton,e),t._zoom===t.getMinZoom()&&o.DomUtil.addClass(this._zoomOutButton,e),t._zoom===t.getMaxZoom()&&o.DomUtil.addClass(this._zoomInButton,e)}}),o.Map.mergeOptions({zoomControl:!0}),o.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new o.Control.Zoom,this.addControl(this.zoomControl))}),o.control.zoom=function(t){return new o.Control.Zoom(t)},o.Control.Attribution=o.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){o.setOptions(this,t),this._attributions={}},onAdd:function(t){this._container=o.DomUtil.create("div","leaflet-control-attribution"),o.DomEvent.disableClickPropagation(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):void 0},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):void 0},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}},_onLayerAdd:function(t){t.layer.getAttribution&&this.addAttribution(t.layer.getAttribution())},_onLayerRemove:function(t){t.layer.getAttribution&&this.removeAttribution(t.layer.getAttribution())}}),o.Map.mergeOptions({attributionControl:!0}),o.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new o.Control.Attribution).addTo(this))}),o.control.attribution=function(t){return new o.Control.Attribution(t)},o.Control.Scale=o.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(t){this._map=t;var e="leaflet-control-scale",i=o.DomUtil.create("div",e),n=this.options;return this._addScales(n,e,i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=o.DomUtil.create("div",e+"-line",i)),t.imperial&&(this._iScale=o.DomUtil.create("div",e+"-line",i))},_update:function(){var t=this._map.getBounds(),e=t.getCenter().lat,i=6378137*Math.PI*Math.cos(e*Math.PI/180),n=i*(t.getNorthEast().lng-t.getSouthWest().lng)/180,o=this._map.getSize(),s=this.options,a=0;o.x>0&&(a=n*(s.maxWidth/o.x)),this._updateScales(s,a)},_updateScales:function(t,e){t.metric&&e&&this._updateMetric(e),t.imperial&&e&&this._updateImperial(e)},_updateMetric:function(t){var e=this._getRoundNum(t);this._mScale.style.width=this._getScaleWidth(e/t)+"px",this._mScale.innerHTML=1e3>e?e+" m":e/1e3+" km"},_updateImperial:function(t){var e,i,n,o=3.2808399*t,s=this._iScale;o>5280?(e=o/5280,i=this._getRoundNum(e),s.style.width=this._getScaleWidth(i/e)+"px",s.innerHTML=i+" mi"):(n=this._getRoundNum(o),s.style.width=this._getScaleWidth(n/o)+"px",s.innerHTML=n+" ft")},_getScaleWidth:function(t){return Math.round(this.options.maxWidth*t)-10},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),o.control.scale=function(t){return new o.Control.Scale(t)},o.Control.Layers=o.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(t,e,i){o.setOptions(this,i),this._layers={},this._lastZIndex=0,this._handlingClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){return this._initLayout(),this._update(),t.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(t){t.off("layeradd",this._onLayerChange).off("layerremove",this._onLayerChange)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._update(),this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._update(),this},removeLayer:function(t){var e=o.stamp(t);return delete this._layers[e],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=o.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),o.Browser.touch?o.DomEvent.on(e,"click",o.DomEvent.stopPropagation):o.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var i=this._form=o.DomUtil.create("form",t+"-list");if(this.options.collapsed){o.Browser.android||o.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var n=this._layersLink=o.DomUtil.create("a",t+"-toggle",e);n.href="#",n.title="Layers",o.Browser.touch?o.DomEvent.on(n,"click",o.DomEvent.stop).on(n,"click",this._expand,this):o.DomEvent.on(n,"focus",this._expand,this),o.DomEvent.on(i,"click",function(){setTimeout(o.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=o.DomUtil.create("div",t+"-base",i),this._separator=o.DomUtil.create("div",t+"-separator",i),this._overlaysList=o.DomUtil.create("div",t+"-overlays",i),e.appendChild(i)},_addLayer:function(t,e,i){var n=o.stamp(t);this._layers[n]={layer:t,name:e,overlay:i},this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var t,e,i=!1,n=!1;for(t in this._layers)e=this._layers[t],this._addItem(e),n=n||e.overlay,i=i||!e.overlay;this._separator.style.display=n&&i?"":"none"}},_onLayerChange:function(t){var e=this._layers[o.stamp(t.layer)];if(e){this._handlingClick||this._update();var i=e.overlay?"layeradd"===t.type?"overlayadd":"overlayremove":"layeradd"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)}},_createRadioElement:function(t,i){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"';i&&(n+=' checked="checked"'),n+="/>";var o=e.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(t){var i,n=e.createElement("label"),s=this._map.hasLayer(t.layer);t.overlay?(i=e.createElement("input"),i.type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=s):i=this._createRadioElement("leaflet-base-layers",s),i.layerId=o.stamp(t.layer),o.DomEvent.on(i,"click",this._onInputClick,this);var a=e.createElement("span");a.innerHTML=" "+t.name,n.appendChild(i),n.appendChild(a);var r=t.overlay?this._overlaysList:this._baseLayersList;return r.appendChild(n),n},_onInputClick:function(){var t,e,i,n=this._form.getElementsByTagName("input"),o=n.length;for(this._handlingClick=!0,t=0;o>t;t++)e=n[t],i=this._layers[e.layerId],e.checked&&!this._map.hasLayer(i.layer)?this._map.addLayer(i.layer):!e.checked&&this._map.hasLayer(i.layer)&&this._map.removeLayer(i.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){o.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),o.control.layers=function(t,e,i){return new o.Control.Layers(t,e,i)},o.PosAnimation=o.Class.extend({includes:o.Mixin.Events,run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._newPos=e,this.fire("start"),t.style[o.DomUtil.TRANSITION]="all "+(i||.25)+"s cubic-bezier(0,0,"+(n||.5)+",1)",o.DomEvent.on(t,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),o.DomUtil.setPosition(t,e),o.Util.falseFn(t.offsetWidth),this._stepTimer=setInterval(o.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(o.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),o.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var t=this._getPos();return t?(this._el._leaflet_pos=t,this.fire("step"),void 0):(this._onTransitionEnd(),void 0)},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var e,i,n,s=this._el,a=t.getComputedStyle(s);if(o.Browser.any3d){if(n=a[o.DomUtil.TRANSFORM].match(this._transformRe),!n)return;e=parseFloat(n[1]),i=parseFloat(n[2])}else e=parseFloat(a.left),i=parseFloat(a.top);return new o.Point(e,i,!0)},_onTransitionEnd:function(){o.DomEvent.off(this._el,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[o.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),o.Map.include({setView:function(t,e,n){if(e=e===i?this._zoom:this._limitZoom(e),t=this._limitCenter(o.latLng(t),e,this.options.maxBounds),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==i&&(n.zoom=o.extend({animate:n.animate},n.zoom),n.pan=o.extend({animate:n.animate},n.pan));var s=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(s)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},panBy:function(t,e){if(t=o.point(t).round(),e=e||{},!t.x&&!t.y)return this;if(this._panAnim||(this._panAnim=new o.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){o.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t);this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){o.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._floor();return(e&&e.animate)===!0||this.getSize().contains(i)?(this.panBy(i,e),!0):!1}}),o.PosAnimation=o.DomUtil.TRANSITION?o.PosAnimation:o.PosAnimation.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=o.DomUtil.getPosition(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=o.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var t=+new Date-this._startTime,e=1e3*this._duration;e>t?this._runFrame(this._easeOut(t/e)):(this._runFrame(1),this._complete())},_runFrame:function(t){var e=this._startPos.add(this._offset.multiplyBy(t));o.DomUtil.setPosition(this._el,e),this.fire("step")},_complete:function(){o.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),o.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),o.DomUtil.TRANSITION&&o.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&o.DomUtil.TRANSITION&&o.Browser.any3d&&!o.Browser.android23&&!o.Browser.mobileOpera,this._zoomAnimated&&o.DomEvent.on(this._mapPane,o.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),o.Map.include(o.DomUtil.TRANSITION?{_catchTransitionEnd:function(){this._animatingZoom&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n),s=this._getCenterLayerPoint()._add(o);return i.animate===!0||this.getSize().contains(o)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,s,n,null,!0),!0):!1},_animateZoom:function(t,e,i,n,s,a){this._animatingZoom=!0,o.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,o.Draggable&&(o.Draggable._disabled=!0),this.fire("zoomanim",{center:t,zoom:e,origin:i,scale:n,delta:s,backwards:a})},_onZoomTransitionEnd:function(){this._animatingZoom=!1,o.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),o.Draggable&&(o.Draggable._disabled=!1)}}:{}),o.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,i=o.DomUtil.TRANSFORM,n=t.delta?o.DomUtil.getTranslateString(t.delta):e.style[i],s=o.DomUtil.getScaleString(t.scale,t.origin);e.style[i]=t.backwards?s+" "+n:n+" "+s},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility="",t.parentNode.appendChild(t),o.Util.falseFn(e.offsetWidth),this._animating=!1},_clearBgBuffer:function(){var t=this._map;!t||t._animatingZoom||t.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[o.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,e=this._bgBuffer,i=this._getLoadedTilesPercentage(e),n=this._getLoadedTilesPercentage(t);return e&&i>.5&&.5>n?(t.style.visibility="hidden",this._stopLoadingImages(t),void 0):(e.style.visibility="hidden",e.style[o.DomUtil.TRANSFORM]="",this._tileContainer=e,e=this._bgBuffer=t,this._stopLoadingImages(e),clearTimeout(this._clearBgBufferTimer),void 0)},_getLoadedTilesPercentage:function(t){var e,i,n=t.getElementsByTagName("img"),o=0;for(e=0,i=n.length;i>e;e++)n[e].complete&&o++;return o/i},_stopLoadingImages:function(t){var e,i,n,s=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e=0,i=s.length;i>e;e++)n=s[e],n.complete||(n.onload=o.Util.falseFn,n.onerror=o.Util.falseFn,n.src=o.Util.emptyImageUrl,n.parentNode.removeChild(n))}}),o.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(t){if(t=this._locateOptions=o.extend(this._defaultLocateOptions,t),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o.bind(this._handleGeolocationResponse,this),i=o.bind(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,i=t.coords.longitude,n=new o.LatLng(e,i),s=180*t.coords.accuracy/40075017,a=s/Math.cos(o.LatLng.DEG_TO_RAD*e),r=o.latLngBounds([e-s,i-a],[e+s,i+a]),h=this._locateOptions;if(h.setView){var l=Math.min(this.getBoundsZoom(r),h.maxZoom);this.setView(n,l)}var u={latlng:n,bounds:r,timestamp:t.timestamp};for(var c in t.coords)"number"==typeof t.coords[c]&&(u[c]=t.coords[c]);this.fire("locationfound",u)}})}(window,document);
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/static/visjs/legend_v2.js b/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/static/visjs/legend_v2.js
deleted file mode 100644
index 23354334..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DCAE_DASH/static/visjs/legend_v2.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-d3.select('#legend').style.visibility="visible";
- var svg1 = d3.select('#legend').append('svg');
- var g1 = svg1.append("g");
- svg1.attr('width', "100%")
- .attr('height', "100%");
-
- var circle1 = svg1.append("circle")
- .attr("cx", "10")
- .attr("cy", "10")
- .attr("r", "5")
- .attr('fill', greaterthan75_color)
- .attr('stroke', 'black')
- .attr('fill-opacity', 1.0);
-
-
- var text4 = g1.append("text")
- .attr("x", "30")
- .attr("y", "13")
- .attr("font-family", "sans-serif")
- .attr("font-size", "10px");
- text4.text(greaterthan75_text);
- text4.attr("fill", "black");
-
- var circle2 = svg1.append("circle")
- .attr("cx", "10")
- .attr("cy", "25")
- .attr("r", "5")
- .attr('fill', lessthan50_75_color)
- .attr('stroke', 'black')
- .attr('fill-opacity', 1.0);
-
- var text5 = g1.append("text")
- .attr("x", "30")
- .attr("y", "28")
- .attr("font-family", "sans-serif")
- .attr("font-size", "10px");
- text5.text(lessthan50_75_text);
- text5.attr("fill", "black");
-
-
- var circle3 = svg1.append("circle")
- .attr("cx", "10")
- .attr("cy", "40")
- .attr("r", "5")
- .attr('fill', lessthan50_color)
- .attr('stroke', 'black')
- .attr('fill-opacity', 1.0);
-
- var text6 = g1.append("text")
- .attr("x", "30")
- .attr("y", "43")
- .attr("font-family", "sans-serif")
- .attr("font-size", "10px");
- text6.text(lessthan50_text);
- text6.attr("fill", "black");
-
- //var zoom = d3.behavior.zoom().on ("zoom", move);
- var zoom = d3.behavior.zoom()
- .on("zoom",function() {
- //alert(d3.event.scale);
- g.attr("transform","translate("+d3.event.translate.join(",")+")scale("+d3.event.scale+")")
- if(d3.event.scale >= 4) {
- d3.behavior.zoom()
- .scale(d3.event.scale);
- }
- });
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_KPI.html
deleted file mode 100644
index 8d0dc6ac..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for DMaaP KPI page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_Metrics.html
deleted file mode 100644
index d8e47109..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for DMaaP Metrics page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_UserDefinedKPI.html
deleted file mode 100644
index 8ccc1f90..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/DMaaP/DMaaP_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for DMaaP User Defined KPI page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP.html b/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP.html
deleted file mode 100644
index b43b2cce..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for ECOMP.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_KPI.html
deleted file mode 100644
index 127dd236..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for the ECOMP Portal KPI Page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_Metrics.html
deleted file mode 100644
index 0e141989..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for the ECOMP Portal Metrics Page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_UserDefinedKPI.html
deleted file mode 100644
index 8ede5c3d..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/ECOMP_Portal/ECOMP_Portal_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for the ECOMP Portal User Defined KPI Page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_KPI.html
deleted file mode 100644
index 038003b0..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Infrastructure Portal KPI page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_Metrics.html
deleted file mode 100644
index 0dd63c78..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Infrastructure Portal Metrics page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_UserDefinedKPI.html
deleted file mode 100644
index 7706e3c1..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/InfrastructurePortal/InfrastructurePortal_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Infrastructure Portal User Defined KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_KPI.html
deleted file mode 100644
index 40a54d0e..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for the MSO KPI Page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_Metrics.html
deleted file mode 100644
index 7b201701..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for the MSO Metrics Page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_UserDefinedKPI.html
deleted file mode 100644
index 82a44353..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/MSO/MSO_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
- <div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for the MSO User Defined KPI Page.
- </h3>
- </div>
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_KPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_KPI.html
deleted file mode 100644
index 6caa0633..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_KPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Policy KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_Metrics.html b/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_Metrics.html
deleted file mode 100644
index 3556cf1a..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_Metrics.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Policy Metrics page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_UserDefinedKPI.html b/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_UserDefinedKPI.html
deleted file mode 100644
index 77a5dd0c..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/Policy/Policy_UserDefinedKPI.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="kpi-page-main">
- <div ng-include="'kpi-dashboard/views/top-level-tabs.html'"></div>
- <div ng-include="'kpi-dashboard/views/sec-level-tabs.html'"></div>
-
-
-
-<div class="KPI_dash_text_class">
- <div>
- <h3>
- Content to be provided for Policy User Defined KPI page.
- </h3>
- </div>
-</div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/sec-level-tabs.html b/ecomp-portal-FE/client/kpi-dashboard/views/sec-level-tabs.html
deleted file mode 100644
index 6c180218..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/sec-level-tabs.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="sec-level-tabs-class">
-
-<table>
-<div>
- <att-tabs title="gTabs">
- <generic-tabs ng-model='activeTabId'></generic-tabs>
- </att-tabs>
- </div>
-</table>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/top-level-tabs.html b/ecomp-portal-FE/client/kpi-dashboard/views/top-level-tabs.html
deleted file mode 100644
index 821b4a4e..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/top-level-tabs.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="top-level-tabs-class">
-<table>
- <div style="margin-top:100px">
- <div style=" float:left; margin-left:0px; padding-right: 15px;">
- <div style="float:left;">
- <att-tabs title="toplevelgTabs1">
- <generic-tabs ng-model='activeToplevelTabId'></generic-tabs>
- </att-tabs>
- </div>
- </div>
-
- <div style="float:left; padding-right: 15px;">
- <att-tabs title="toplevelgTabs2">
- <generic-tabs ng-model='activeToplevelTabId'></generic-tabs>
- </att-tabs>
- </div>
-
- <div style="float:left;">
- <att-tabs title="toplevelgTabs3">
- <generic-tabs ng-model='activeToplevelTabId'></generic-tabs>
- </att-tabs>
- </div>
- </div>
-</table>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/userapi-edit.html b/ecomp-portal-FE/client/kpi-dashboard/views/userapi-edit.html
deleted file mode 100644
index 0ec3c5b5..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/userapi-edit.html
+++ /dev/null
@@ -1,71 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div>
- <div class="modal-header">
- <h3 class="modal-title">Update API</h3>
- </div>
- <div class="workflow-popup-body">
- <form name="userstoryForm" class="css-form" novalidate>
- <div class="control-group">
-
- <label class="fn-ebz-text large" for="userstoryRelease">API Type: </label>
-
- <div>
- <div class="form-field" att-select="userApiTypes" ng-model="selectedUserApiType.apiType" placeholder="Select an API type"></div>
-
- <div ng-show="userstoryForm.$submitted || userstoryForm.userstoryRelease.$touched">
- <span ng-show="userstoryForm.userstoryRelease.$error.required">Workflow Name is required !!!</span>
- </div>
-
- </div>
- </div>
-
-
- <div class="control-group">
- <label class="fn-ebz-text large" for="workflowKey">API: </label>
- <div>
- <input type="text" id="workflowKey" ng-model="userApis[selectedUserApiType.apiType.index].totalApi" class="fn-ebz-text extra-large"
- name="workflowKey" required="required" placeholder="Production" />
-
- <div ng-show="workflowForm.$submitted || workflowForm.workflowKey.$touched">
- <span ng-show="workflowForm.workflowKey.$error.required">Production is required !!!</span>
- </div>
-
- </div>
- </div>
-
-
- <div class="control-group">
- <label class="fn-ebz-text large" for="workflowRunLink">Comments</label>
- <div class="controls">
- <input type = "text" ng-model = "userApis[selectedUserApiType.apiType.index].comment" id = "workflowRunLink" name = "workflowRunLink" class="fn-ebz-text extra-large"/>
- </div>
-
- </div>
-
-
- <div class="modal-footer">
- <button class="fn-ebz-btn sm" type="button" ng-click="ok()">Save</button>
- <button class="fn-ebz-btn sm" type="button" ng-click="cancel()">Cancel</button>
- </div>
- </form>
- <br />
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/kpi-dashboard/views/userstory-edit.html b/ecomp-portal-FE/client/kpi-dashboard/views/userstory-edit.html
deleted file mode 100644
index e01b3679..00000000
--- a/ecomp-portal-FE/client/kpi-dashboard/views/userstory-edit.html
+++ /dev/null
@@ -1,102 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div>
- <div class="modal-header">
- <h3 class="modal-title">Update User Stories</h3>
- </div>
- <div class="workflow-popup-body">
- <form name="userstoryForm" class="css-form" novalidate>
- <div class="control-group">
-
- <label class="fn-ebz-text large" for="userstoryRelease">Release: </label>
-
- <div>
- <div class="form-field" att-select="releases" ng-model="selectedRelease" ng-change="AngChangeCalled()" placeholder="Select an Option"></div>
-
-
- <div ng-show="userstoryForm.$submitted || userstoryForm.userstoryRelease.$touched">
- <span ng-show="userstoryForm.userstoryRelease.$error.required">Workflow Name is required !!!</span>
- </div>
-
- </div>
- </div>
-
-
-<!-- <div class="control-group">
- <label class="fn-ebz-text large" for="workflowKey">production: </label>
- <div>
- <input type="text" id="workflowKey" ng-model="userStories[selectedRelease.index].productionNumber" class="fn-ebz-text extra-large"
- name="workflowKey" required="required" placeholder="Production" />
-
- <div ng-show="workflowForm.$submitted || workflowForm.workflowKey.$touched">
- <span ng-show="workflowForm.workflowKey.$error.required">Production is required !!!</span>
- </div>
- </div>
- </div>
- -->
-
- <div class="control-group">
- <label class="fn-ebz-text large" for="workflowDescription">User Stories Delivered</label>
- <div class="controls">
- <input type="text" ng-model="userStories[selectedRelease.index].delivered" id = "workflowDescription" name="workflowDescription" class="fn-ebz-text extra-large" placeholder="Lab Only"/>
- </div>
- </div>
-
- <div class="control-group">
- <label class="fn-ebz-text large" for="workflowDescription">User Stories in Progress</label>
- <div class="controls">
- <input type="text" ng-model="userStories[selectedRelease.index].inProgress" class="fn-ebz-text extra-large" placeholder="User Stories in Progress"/>
- </div>
- </div>
-
-<!-- IST -->
- <div class="control-group">
- <label class="fn-ebz-text large" for="workflowDescription">IST Progress / Readiness</label>
- </div>
-
- <div class="form-field" id="ISTProgress" att-select="progressReadinessList" ng-model="selectedIST" placeholder="Select an Option">
- </div>
-<!-- <div class="form-field" id="ISTProgress" att-select="progressReadinessList" ng-change="selectedIST = progressReadinessList[progressReadinessListIndexMap[userStories[selectedRelease.index].istprogressReadiness]]" ng-model="progressReadinessList[progressReadinessListIndexMap[userStories[selectedRelease.index].istprogressReadiness]]" placeholder="Select an Option">
- </div> -->
-
- <div class="control-group">
- <label class="fn-ebz-text large" for="workflowDescription2">ETE Progress / Readiness</label>
- </div>
- <div class="form-field" att-select="progressReadinessList" ng-model="selectedETE" placeholder="Select an Option">
- </div>
-
-<!-- <input type="text" ng-model="userStories[selectedRelease.index].e2EProgressReadiness" class="fn-ebz-text extra-large" placeholder="ETE Progress / Readiness"/>
- </div>
- -->
- <div class="control-group">
- <label class="fn-ebz-text large" for="workflowRunLink">Key Highlights in Release</label>
- <div class="controls">
- <input type = "text" ng-model = "userStories[selectedRelease.index].keyHighlights"/>
- </div>
- </div>
-
- <div class="modal-footer">
- <button class="fn-ebz-btn sm" type="button" ng-click="ok()">Save</button>
- <button class="fn-ebz-btn sm" type="button" ng-click="cancel()">Cancel</button>
- </div>
- </form>
- <br />
- </div>
-</div>
diff --git a/ecomp-portal-FE/client/robots.txt b/ecomp-portal-FE/client/robots.txt
deleted file mode 100644
index 94174950..00000000
--- a/ecomp-portal-FE/client/robots.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# robotstxt.org
-
-User-agent: *
diff --git a/ecomp-portal-FE/client/utils/test-utils/test-utils.js b/ecomp-portal-FE/client/utils/test-utils/test-utils.js
deleted file mode 100644
index 7d03fb97..00000000
--- a/ecomp-portal-FE/client/utils/test-utils/test-utils.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-/**
- * Created by nnaffar on 1/10/16.
- */
-'use strict';
-angular.module('testUtils', [])
- .factory('promisesTestUtils', function utilsFactory($q) {
-
- var setupPromise = function(object, method, data, resolve) {
- spyOn(object, method).and.callFake(function() {
- var deferred = $q.defer();
- if (resolve) {
- deferred.resolve(data);
- } else {
- deferred.reject(data);
- }
-
- return deferred.promise;
- });
- };
-
- var service = {};
-
- service.resolvePromise = function(object, method, data) {
- return setupPromise(object, method, data, true);
- };
-
- service.rejectPromise = function(object, method, data) {
- return setupPromise(object, method, data, false);
- };
-
- return service;
- });